From bb095adf76bddc2f6c5925bcdebb52bff75e6578 Mon Sep 17 00:00:00 2001 From: Alvin Li Date: Wed, 14 Aug 2013 00:05:31 +0800 Subject: * added 'templates/search/search.html' * updated haystack settings * updated 'static' files settings * added 'search function' for 'apps/indicator': IndicatorCategory, Indicator * merged static files of '97suifang-front' by 'mjymjydark' * merged pages of '97suifang-front' by 'mjymjydark' * updated pages to use 'django templates syntax' for the static links TODO: to fix the 'static links' of 'indicator/static/javascripts/*.js' --- 97suifangqa/TODO.txt | 14 + 97suifangqa/apps/indicator/models.py | 8 +- 97suifangqa/apps/indicator/static/ajax/act_index | 1 + .../apps/indicator/static/ajax/close_sub_title | 1 + .../apps/indicator/static/ajax/edit_history_data | 1 + .../apps/indicator/static/ajax/getCardDataChart | 1 + .../apps/indicator/static/ajax/getCardDataTable | 13 + .../apps/indicator/static/css/delete_card_tip.css | 52 + .../indicator/static/css/edit_history_data.css | 102 + .../apps/indicator/static/css/index_desc.css | 56 + .../apps/indicator/static/css/new_delete_index.css | 192 + .../apps/indicator/static/css/normalize.css | 817 +++ .../apps/indicator/static/css/sheet_default.css | 359 ++ 97suifangqa/apps/indicator/static/css/sidebar.css | 206 + 97suifangqa/apps/indicator/static/images/add.png | Bin 0 -> 273 bytes .../apps/indicator/static/images/addicon.png | Bin 0 -> 707 bytes .../apps/indicator/static/images/cancel_edit.png | Bin 0 -> 768 bytes .../apps/indicator/static/images/closed.png | Bin 0 -> 3121 bytes .../apps/indicator/static/images/closed_hover.png | Bin 0 -> 462 bytes .../apps/indicator/static/images/confirm_edit.png | Bin 0 -> 647 bytes 97suifangqa/apps/indicator/static/images/curve.png | Bin 0 -> 1443 bytes .../apps/indicator/static/images/demo_sheet.png | Bin 0 -> 26662 bytes .../indicator/static/images/dialog-default.png | Bin 0 -> 3370 bytes .../apps/indicator/static/images/dialog-hover.png | Bin 0 -> 4967 bytes .../indicator/static/images/last_edit_data.png | Bin 0 -> 2057 bytes 97suifangqa/apps/indicator/static/images/minus.png | Bin 0 -> 261 bytes .../apps/indicator/static/images/minusicon.png | Bin 0 -> 762 bytes .../static/images/nav-ribbon-tail-cut.png | Bin 0 -> 3010 bytes .../apps/indicator/static/images/nodata.png | Bin 0 -> 1393 bytes 97suifangqa/apps/indicator/static/images/pen.png | Bin 0 -> 3184 bytes .../apps/indicator/static/images/pen_large.png | Bin 0 -> 1379 bytes .../apps/indicator/static/images/refresh.png | Bin 0 -> 446 bytes .../apps/indicator/static/images/search.png | Bin 0 -> 525 bytes .../apps/indicator/static/images/slilogo.png | Bin 0 -> 8219 bytes .../static/javascripts/delete_card_tip.js | 18 + .../static/javascripts/edit_history_data.js | 83 + .../indicator/static/javascripts/index_desc.js | 16 + .../indicator/static/javascripts/jquery-1.6.min.js | 16 + .../apps/indicator/static/javascripts/load_card.js | 300 ++ .../static/javascripts/new_delete_index.js | 79 + .../indicator/static/javascripts/sheetdefault.js | 181 + .../apps/indicator/static/javascripts/sidebar.js | 11 + .../static/plugins/datepicker/datepicker.css | 383 ++ .../static/plugins/datepicker/datepicker.js | 5257 ++++++++++++++++++++ .../static/plugins/datepicker/images/calendar.gif | Bin 0 -> 269 bytes .../static/plugins/datepicker/images/calendar.png | Bin 0 -> 261 bytes .../images/ui-bg_glass_100_f6f6f6_1x400.png | Bin 0 -> 104 bytes .../images/ui-bg_glass_100_fdf5ce_1x400.png | Bin 0 -> 125 bytes .../images/ui-bg_glass_65_ffffff_1x400.png | Bin 0 -> 105 bytes .../images/ui-bg_gloss-wave_35_f6a828_500x100.png | Bin 0 -> 3762 bytes .../ui-bg_highlight-soft_100_eeeeee_1x100.png | Bin 0 -> 90 bytes .../ui-bg_highlight-soft_75_ffe45c_1x100.png | Bin 0 -> 129 bytes .../datepicker/images/ui-icons_ef8c08_256x240.png | Bin 0 -> 4369 bytes .../datepicker/images/ui-icons_ffffff_256x240.png | Bin 0 -> 4369 bytes .../static/plugins/datepicker/language-zh-CN.js | 23 + .../static/plugins/highcharts/highcharts-more.js | 50 + .../static/plugins/highcharts/highcharts.js | 277 ++ .../plugins/thickbox/images/loadingAnimation.gif | Bin 0 -> 7347 bytes .../indicator/static/plugins/thickbox/thickbox.css | 135 + .../indicator/static/plugins/thickbox/thickbox.js | 286 ++ .../templates/indicator/NewDeleteIndex.html | 428 ++ .../templates/indicator/SheetDefault.html | 212 + .../indicator/templates/indicator/SideBar.html | 77 + .../apps/indicator/templates/indicator/done.html | 9 + .../apps/indicator/templates/indicator/index.html | 12 + .../templates/indicator/popup/DeleteCardTip.html | 26 + .../templates/indicator/popup/EditHistoryData.html | 42 + .../templates/indicator/popup/IndexDesc.html | 28 + .../templates/indicator/show_category.html | 32 + .../templates/indicator/show_indicator.html | 48 + .../indicator/templates/indicator/show_record.html | 52 + .../apps/indicator/templates/indicator/simple.html | 23 + 97suifangqa/apps/indicator/urls.py | 52 +- 97suifangqa/apps/indicator/views.py | 14 +- 97suifangqa/apps/sciblog/templatetags/tools.py | 7 + 97suifangqa/settings.py | 44 +- 97suifangqa/templates/base.html | 1 + 97suifangqa/templates/index.html | 8 +- 97suifangqa/templates/sciblog/blog_list.html | 2 + 97suifangqa/urls.py | 19 + 80 files changed, 10048 insertions(+), 26 deletions(-) create mode 100644 97suifangqa/TODO.txt create mode 100644 97suifangqa/apps/indicator/static/ajax/act_index create mode 100644 97suifangqa/apps/indicator/static/ajax/close_sub_title create mode 100644 97suifangqa/apps/indicator/static/ajax/edit_history_data create mode 100644 97suifangqa/apps/indicator/static/ajax/getCardDataChart create mode 100644 97suifangqa/apps/indicator/static/ajax/getCardDataTable create mode 100644 97suifangqa/apps/indicator/static/css/delete_card_tip.css create mode 100644 97suifangqa/apps/indicator/static/css/edit_history_data.css create mode 100644 97suifangqa/apps/indicator/static/css/index_desc.css create mode 100644 97suifangqa/apps/indicator/static/css/new_delete_index.css create mode 100644 97suifangqa/apps/indicator/static/css/normalize.css create mode 100644 97suifangqa/apps/indicator/static/css/sheet_default.css create mode 100644 97suifangqa/apps/indicator/static/css/sidebar.css create mode 100644 97suifangqa/apps/indicator/static/images/add.png create mode 100644 97suifangqa/apps/indicator/static/images/addicon.png create mode 100644 97suifangqa/apps/indicator/static/images/cancel_edit.png create mode 100644 97suifangqa/apps/indicator/static/images/closed.png create mode 100644 97suifangqa/apps/indicator/static/images/closed_hover.png create mode 100644 97suifangqa/apps/indicator/static/images/confirm_edit.png create mode 100644 97suifangqa/apps/indicator/static/images/curve.png create mode 100644 97suifangqa/apps/indicator/static/images/demo_sheet.png create mode 100644 97suifangqa/apps/indicator/static/images/dialog-default.png create mode 100644 97suifangqa/apps/indicator/static/images/dialog-hover.png create mode 100644 97suifangqa/apps/indicator/static/images/last_edit_data.png create mode 100644 97suifangqa/apps/indicator/static/images/minus.png create mode 100644 97suifangqa/apps/indicator/static/images/minusicon.png create mode 100644 97suifangqa/apps/indicator/static/images/nav-ribbon-tail-cut.png create mode 100644 97suifangqa/apps/indicator/static/images/nodata.png create mode 100644 97suifangqa/apps/indicator/static/images/pen.png create mode 100644 97suifangqa/apps/indicator/static/images/pen_large.png create mode 100644 97suifangqa/apps/indicator/static/images/refresh.png create mode 100644 97suifangqa/apps/indicator/static/images/search.png create mode 100644 97suifangqa/apps/indicator/static/images/slilogo.png create mode 100644 97suifangqa/apps/indicator/static/javascripts/delete_card_tip.js create mode 100644 97suifangqa/apps/indicator/static/javascripts/edit_history_data.js create mode 100644 97suifangqa/apps/indicator/static/javascripts/index_desc.js create mode 100644 97suifangqa/apps/indicator/static/javascripts/jquery-1.6.min.js create mode 100644 97suifangqa/apps/indicator/static/javascripts/load_card.js create mode 100644 97suifangqa/apps/indicator/static/javascripts/new_delete_index.js create mode 100644 97suifangqa/apps/indicator/static/javascripts/sheetdefault.js create mode 100644 97suifangqa/apps/indicator/static/javascripts/sidebar.js create mode 100644 97suifangqa/apps/indicator/static/plugins/datepicker/datepicker.css create mode 100644 97suifangqa/apps/indicator/static/plugins/datepicker/datepicker.js create mode 100644 97suifangqa/apps/indicator/static/plugins/datepicker/images/calendar.gif create mode 100644 97suifangqa/apps/indicator/static/plugins/datepicker/images/calendar.png create mode 100644 97suifangqa/apps/indicator/static/plugins/datepicker/images/ui-bg_glass_100_f6f6f6_1x400.png create mode 100644 97suifangqa/apps/indicator/static/plugins/datepicker/images/ui-bg_glass_100_fdf5ce_1x400.png create mode 100644 97suifangqa/apps/indicator/static/plugins/datepicker/images/ui-bg_glass_65_ffffff_1x400.png create mode 100644 97suifangqa/apps/indicator/static/plugins/datepicker/images/ui-bg_gloss-wave_35_f6a828_500x100.png create mode 100644 97suifangqa/apps/indicator/static/plugins/datepicker/images/ui-bg_highlight-soft_100_eeeeee_1x100.png create mode 100644 97suifangqa/apps/indicator/static/plugins/datepicker/images/ui-bg_highlight-soft_75_ffe45c_1x100.png create mode 100644 97suifangqa/apps/indicator/static/plugins/datepicker/images/ui-icons_ef8c08_256x240.png create mode 100644 97suifangqa/apps/indicator/static/plugins/datepicker/images/ui-icons_ffffff_256x240.png create mode 100644 97suifangqa/apps/indicator/static/plugins/datepicker/language-zh-CN.js create mode 100644 97suifangqa/apps/indicator/static/plugins/highcharts/highcharts-more.js create mode 100644 97suifangqa/apps/indicator/static/plugins/highcharts/highcharts.js create mode 100644 97suifangqa/apps/indicator/static/plugins/thickbox/images/loadingAnimation.gif create mode 100644 97suifangqa/apps/indicator/static/plugins/thickbox/thickbox.css create mode 100644 97suifangqa/apps/indicator/static/plugins/thickbox/thickbox.js create mode 100644 97suifangqa/apps/indicator/templates/indicator/NewDeleteIndex.html create mode 100644 97suifangqa/apps/indicator/templates/indicator/SheetDefault.html create mode 100644 97suifangqa/apps/indicator/templates/indicator/SideBar.html create mode 100644 97suifangqa/apps/indicator/templates/indicator/done.html create mode 100644 97suifangqa/apps/indicator/templates/indicator/index.html create mode 100644 97suifangqa/apps/indicator/templates/indicator/popup/DeleteCardTip.html create mode 100644 97suifangqa/apps/indicator/templates/indicator/popup/EditHistoryData.html create mode 100644 97suifangqa/apps/indicator/templates/indicator/popup/IndexDesc.html create mode 100644 97suifangqa/apps/indicator/templates/indicator/show_category.html create mode 100644 97suifangqa/apps/indicator/templates/indicator/show_indicator.html create mode 100644 97suifangqa/apps/indicator/templates/indicator/show_record.html create mode 100644 97suifangqa/apps/indicator/templates/indicator/simple.html create mode 100644 97suifangqa/apps/sciblog/templatetags/tools.py (limited to '97suifangqa') diff --git a/97suifangqa/TODO.txt b/97suifangqa/TODO.txt new file mode 100644 index 0000000..0b58585 --- /dev/null +++ b/97suifangqa/TODO.txt @@ -0,0 +1,14 @@ + + +Ref: http://blog.yangyubo.com/2012/07/26/django-staticfiles/ + +真实世界的 Django 项目中,静态资源的管理要更复杂一些,要额外处理的事情包括: + +* Less / CoffeeScript 等自动编译成 CSS/JS +* “压缩” CSS/JS 文件,以提高浏览器加载速度 +* 合并零碎的 CSS/JS 文件,减少浏览器请求,降低服务器请求建立的频率 + +静态资源文件的版本化:浏览器会缓存静态文件,后台代码和静态资源都发生更新后,浏览器很可能从缓存提取过期的静态,导致页面显示异常 + +Django 静态资源管理利器 - django-pipeline 正是用来解决上述问题。正式的 Django 项目须注意并解决这些问题,尤其是处理静态资源的版本化。 + diff --git a/97suifangqa/apps/indicator/models.py b/97suifangqa/apps/indicator/models.py index bd57d87..f64f3db 100644 --- a/97suifangqa/apps/indicator/models.py +++ b/97suifangqa/apps/indicator/models.py @@ -53,8 +53,8 @@ class IndicatorCategory(models.Model): # {{{ return self.__unicode__() def get_absolute_url(self): - # need define url with name='show-category', 'pk' as parameter - return reverse('show-category', + # need define url with name='show_category', 'pk' as parameter + return reverse('show_category', kwargs={'pk': self.id}) # auto generate `pinyin' @@ -131,7 +131,7 @@ class Indicator(models.Model): # {{{ return self.__unicode__() def get_absolute_url(self): - return reverse('show-indicator', + return reverse('show_indicator', kwargs={'pk': self.id}) # auto generate `pinyin' @@ -291,7 +291,7 @@ class IndicatorRecord(models.Model): # {{{ self.user.username, self.indicator.name, self.date) def get_absolute_url(self): - return reverse('show-record', + return reverse('show_record', kwargs={'pk': self.id}) def save(self, **kwargs): diff --git a/97suifangqa/apps/indicator/static/ajax/act_index b/97suifangqa/apps/indicator/static/ajax/act_index new file mode 100644 index 0000000..0f0c913 --- /dev/null +++ b/97suifangqa/apps/indicator/static/ajax/act_index @@ -0,0 +1 @@ +success \ No newline at end of file diff --git a/97suifangqa/apps/indicator/static/ajax/close_sub_title b/97suifangqa/apps/indicator/static/ajax/close_sub_title new file mode 100644 index 0000000..0f0c913 --- /dev/null +++ b/97suifangqa/apps/indicator/static/ajax/close_sub_title @@ -0,0 +1 @@ +success \ No newline at end of file diff --git a/97suifangqa/apps/indicator/static/ajax/edit_history_data b/97suifangqa/apps/indicator/static/ajax/edit_history_data new file mode 100644 index 0000000..0f0c913 --- /dev/null +++ b/97suifangqa/apps/indicator/static/ajax/edit_history_data @@ -0,0 +1 @@ +success \ No newline at end of file diff --git a/97suifangqa/apps/indicator/static/ajax/getCardDataChart b/97suifangqa/apps/indicator/static/ajax/getCardDataChart new file mode 100644 index 0000000..be4657a --- /dev/null +++ b/97suifangqa/apps/indicator/static/ajax/getCardDataChart @@ -0,0 +1 @@ +[6.0, 5.9, 5.5, 4.5, 6.2, 6.5, 5.2, 6.0, 5.9, 5.5, 4.5, 6.2, 6.5, 5.2, 6.0, 5.9, 5.5, 4.5, 6.2, 6.5] \ No newline at end of file diff --git a/97suifangqa/apps/indicator/static/ajax/getCardDataTable b/97suifangqa/apps/indicator/static/ajax/getCardDataTable new file mode 100644 index 0000000..ac9b3f6 --- /dev/null +++ b/97suifangqa/apps/indicator/static/ajax/getCardDataTable @@ -0,0 +1,13 @@ +2013-08-1011:20100x10^4拷贝/mL +2013-08-0911:20100x10^4拷贝/mL +2013-08-0811:20100x10^4拷贝/mL +2013-08-0811:20100x10^4拷贝/mL +2013-08-0711:20100x10^4拷贝/mL +2013-08-0611:20100x10^4拷贝/mL +2013-08-0511:20100x10^4拷贝/mL +2013-08-0411:20100x10^4拷贝/mL +2013-08-0311:20100x10^4拷贝/mL +2013-08-0211:20100x10^4拷贝/mL +2013-08-0111:20100x10^4拷贝/mL +2013-07-3111:20100x10^4拷贝/mL +2013-07-3011:20100x10^4拷贝/mL \ No newline at end of file diff --git a/97suifangqa/apps/indicator/static/css/delete_card_tip.css b/97suifangqa/apps/indicator/static/css/delete_card_tip.css new file mode 100644 index 0000000..89eee88 --- /dev/null +++ b/97suifangqa/apps/indicator/static/css/delete_card_tip.css @@ -0,0 +1,52 @@ +#delete_card_tip_container { + width: 588px; + height: 164px; + background-color: #FFFFFF; + border: 1px solid #94C721; + padding: 0 20px 0 20px; +} +.delete_card_tip_title_line { + height: 42px; + line-height: 42px; + border-bottom: 1px solid #D6D0D6; + width: 588px; +} +.delete_card_tip_title_line .delete_card_tip_title { + font-weight: bold; + color: #4A4A4A; + font-size: 18px; + float: left; +} +.delete_card_tip_title_line .delete_card_tip_close { + float: right; + background: url('../images/closed.png') no-repeat; + height: 11px; + width: 11px; + margin: 15px 0 0 0; + cursor: pointer; +} +.delete_card_tip_content { + height: 55px; + line-height: 55px; + color: #4A4A4A; + font-size: 14px; +} +.delete_card_tip_action { + height: 67px; +} +.delete_card_tip_action .action_confirm_cancel, .delete_card_tip_action .action_confirm_ignore { + background-color: #99CC33; + border-radius: 2px; + width: 75px; + color: white; + cursor: pointer; + height: 22px; + line-height: 22px; + display: inline-block; + text-align: center; + margin-top: 13px; + text-decoration: none; +} +.delete_card_tip_action .action_confirm_cancel { + margin: 0 11px 0 213px; +} \ No newline at end of file diff --git a/97suifangqa/apps/indicator/static/css/edit_history_data.css b/97suifangqa/apps/indicator/static/css/edit_history_data.css new file mode 100644 index 0000000..12bf73b --- /dev/null +++ b/97suifangqa/apps/indicator/static/css/edit_history_data.css @@ -0,0 +1,102 @@ +#edit_history_data_container { + width: 588px; + height: 164px; + background-color: #FFFFFF; + border: 1px solid #94C721; + padding: 0 20px 0 20px; +} +.edit_history_data_title_line { + height: 42px; + line-height: 42px; + border-bottom: 1px solid #D6D0D6; + width: 588px; +} +.edit_history_data_title_line .edit_history_data_title { + font-weight: bold; + color: #4A4A4A; + font-size: 18px; + float: left; +} +.edit_history_data_title_line .edit_history_data_close { + float: right; + background: url('../images/closed.png') no-repeat; + height: 11px; + width: 11px; + margin: 15px 0 0 0; + cursor: pointer; +} +.edit_history_data_content { + color: #4A4A4A; + font-size: 14px; +} +.edit_history_data_content .date_time { + height: 55px; + line-height: 55px; +} +.edit_history_data_content .date_time .time { + margin-left: 27px; +} +.edit_history_data_content .refer_range { + height: 38px; + line-height: 38px; + margin-top: -6px; +} +.edit_history_data_content .edit_data #edit_btn, .edit_history_data_content .editing_data #save_btn { + float: right; + height: 24px; + line-height: 22px; + padding: 1px 26px; +} +.edit_history_data_content .editing_data { + height: 25px; + display: none; +} +.edit_history_data_content .editing_data .input_container { + float: left; +} +.edit_history_data_content .editing_data .input_container label { + position: relative; + top: -1px; +} +.edit_history_data_content .editing_data .input_container input { + color: #5C5C5C; + background-color: #FFFFFF; + border: 1px solid #9C9C9C; +} +.edit_history_data_content .editing_data .input_container .error { + border: 1px solid red; +} +.edit_history_data_content .editing_data .input_container .edit_input_main { + width: 42px; + height: 17px; + line-height: 17px; + padding-top: 2px; + padding-bottom: 2px; +} +.edit_history_data_content .editing_data .input_container .edit_input_sub { + width: 17px; + height: 17px; + line-height: 17px; + padding-top: 2px; + padding-bottom: 2px; +} +.edit_history_data_content .editing_data .add_minus_icon { + float: left; + margin-right: 8px; +} +.edit_history_data_content .editing_data .add_minus_icon .add_icon { + background:url(../images/add.png) no-repeat; + width: 15px; + height: 11px; + border-right: 1px solid #9C9C9C; + cursor: pointer; +} +.edit_history_data_content .editing_data .add_minus_icon .minus_icon { + background:url(../images/minus.png) no-repeat; + width: 15px; + height: 10px; + border-bottom: 1px solid #9C9C9C; + border-right: 1px solid #9C9C9C; + margin-top: 1px; + cursor: pointer; +} diff --git a/97suifangqa/apps/indicator/static/css/index_desc.css b/97suifangqa/apps/indicator/static/css/index_desc.css new file mode 100644 index 0000000..ab042d4 --- /dev/null +++ b/97suifangqa/apps/indicator/static/css/index_desc.css @@ -0,0 +1,56 @@ +#index_desc_container { + width: 588px; + height: 349px; + background-color: #FFFFFF; + border: 1px solid #94C721; + padding: 0 20px 0 20px; +} +.index_desc_title_line { + height: 42px; + line-height: 42px; + border-bottom: 1px solid #D6D0D6; + width: 588px; +} +.index_desc_title_line .index_desc_title { + font-weight: bold; + color: #4A4A4A; + font-size: 18px; + float: left; +} +.index_desc_title_line .index_desc_close { + float: right; + background: url('../images/closed.png') no-repeat; + height: 11px; + width: 11px; + margin: 15px 0 0 0; + cursor: pointer; +} +.index_desc_content { + margin-top: 8px; + height: 223px; + line-height: 20px; + color: #4A4A4A; + font-size: 14px; + letter-spacing: 1px; + overflow: auto; +} +.collection { + background-color: #F7F7F7; + height: 38px; + line-height: 38px; + text-align: center; + cursor: pointer; +} +.go_library { + padding-top: 8px; + height: 28px; +} +.go_library .go_library_btn { + float: right; + height: 25px; + line-height: 21px; + padding-left: 5px; + padding-right: 5px; + padding-bottom: 2px; + padding-top: 2px; +} \ No newline at end of file diff --git a/97suifangqa/apps/indicator/static/css/new_delete_index.css b/97suifangqa/apps/indicator/static/css/new_delete_index.css new file mode 100644 index 0000000..aaee1a6 --- /dev/null +++ b/97suifangqa/apps/indicator/static/css/new_delete_index.css @@ -0,0 +1,192 @@ +#new_delete_container { + float: left; + margin-left: 37px; +} +.new_delete_title { + width: 596px; + height: 26px; +} +.new_delete_title .content { + float: left; + font-weight: bold; + font-size: 20px; + color: #4A4A4A; + height: 26px; + line-height: 26px; +} +.new_delete_title .search { + float: right; + height: 26px; + line-height: 26px; + position: relative; +} +.new_delete_title .search input { + float: left; + height: 20px; + width: 127px; + border: 1px solid #CACACA; + background-color: #FFFFFF; + padding: 0; + border-radius: 2px; + color: #000000; + position: relative; + top: 2px; + margin-right: 2px; +} +.new_delete_title .search input::-moz-placeholder { + color: #9D9D9D; + font-weight: bold; +} +.new_delete_title .search img { + float: right; + position: relative; + top: 2px; + cursor: pointer; +} +.index_navigation { + margin: 10px 0; +} +.index_navigation .index_type { + float: left; + width: 63px; + height: 20px; + text-align: center; + border: 1px solid #B5B5B5; + border-radius: 2px; + margin-right: 11px; +} +.index_navigation .index_type a{ + color: #7E7E7E; + cursor: pointer; + text-decoration: none; +} +.index_navigation #index_all { + margin-right: 0; +} +.index_navigation .selected { + background-color: #99CC33; + border: 1px solid #CCE69C; +} +.index_navigation .selected a { + color: #FFFFFF; +} +.show_indexes { + position: relative; +} +.show_indexes .index_container { + float: left; + width: 252px; + height: 437px; + border: 1px solid #b6b6b6; + z-index: 1; + position: relative; + padding: 6px 12px 0 12px; + overflow: hidden; +} +.show_indexes .add_concerned_icon { + float: left; + height: 0; + width: 0; + border-width: 20px; + border-style: solid; + border-color: #FFFFFF #FFFFFF #FFFFFF #BFBFBF; + overflow: hidden; + margin-top: 191px; + position: relative; + left: 10px; + z-index: 0; +} +.show_indexes .index_container .index_title_container { + border-bottom: 1px solid #BFBFBF; + height: 26px; + line-height: 26px; + margin-bottom: 5px; +} +.show_indexes .index_container .index_title_container .index_title { + font-weight: bold; + font-size: 19px; + color: #4A4A4A; + float: left; +} +.show_indexes .index_container .index_title_container .example_sheet { + float: right; + color: #4A4A4A; + margin-top: 4px; +} +.show_indexes .index_container .index_title_container .index_btn { + float: right; +} +.show_indexes .index_container .index_title_container .index_btn input{ + width: 72px; + height: 24px; + line-height: 24px; + vertical-align: baseline; +} +.index_line { + margin-top: 3px; +} +.index_line .index_name, .index_line .index_category { + float: left; + font-size: 14px; + height: 20px; + line-height: 20px; + color: #4A4A4A; + font-weight: bold; + cursor: pointer; +} +.index_lines .add .icon { + width: 20px; + height: 20px; + float: right; + background: url("../images/addicon.png"); + margin-right: 2px; + cursor: pointer; +} +.index_lines .add .index_name, .index_lines .add .index_category, .index_lines .minus .index_name { + color: #FFFFFF; +} +.index_lines .minus .icon { + width: 20px; + height: 20px; + float: right; + background: url("../images/minusicon.png"); + margin-right: 2px; + cursor: pointer; +} +.index_lines .add, .index_lines .minus { + background: #8FC31F; +} +.index_line .index_name { + width: 185px; +} + +.all_condition .index_all_title { + font-weight: bold; + font-size: 19px; + color: #4A4A4A; + height: 24px; + line-height: 24px; + margin-bottom: 3px; +} +.all_condition .index_all_letter { + margin-bottom: 10px; + line-height: 20px; + height: 40px; +} +.all_condition .index_all_letter div { + float: left; + color: #8F8F8F; + font-size: 15px; + margin-right: 4px; + cursor: pointer; +} +.index_letter_container .index_lines { + margin-bottom: 46px; +} +.index_letter_container .index_lines .letter_title { + font-weight: bold; + font-size: 32px; + color: #4A4A4A; + border-bottom: 1px solid #BFBFBF; + height: 24px; +} \ No newline at end of file diff --git a/97suifangqa/apps/indicator/static/css/normalize.css b/97suifangqa/apps/indicator/static/css/normalize.css new file mode 100644 index 0000000..ab1eadb --- /dev/null +++ b/97suifangqa/apps/indicator/static/css/normalize.css @@ -0,0 +1,817 @@ +/* normalize.css 2012-03-11T12:53 UTC - http://github.com/necolas/normalize.css */ +/* ============================================================================= + Normalize.css is intended to be used as an alternative to CSS resets. + + It is suggested that you read through the normalize.css file and customise it + to meet the design requirements of a project rather including it as a "black + box". @see http://nicolasgallagher.com/about-normalize-css/ + + Also: @see http://meiert.com/en/blog/20080419/reset-style-sheets-are-bad/ + @see http://snook.ca/archives/html_and_css/no_css_reset/ + ========================================================================== */ +/* ============================================================================= + HTML5 display definitions + ========================================================================== */ +/* + * Corrects block display not defined in IE6/7/8/9 & FF3 + */ +/* line 36, ../../../sass/sass/normalize.scss */ +article, +aside, +details, +figcaption, +figure, +footer, +header, +hgroup, +menu, +nav, +section, +summary { + display: block; +} + +/* + * Corrects inline-block display not defined in IE6/7/8/9 & FF3 + */ +/* line 46, ../../../sass/sass/normalize.scss */ +audio, +canvas, +video { + display: inline-block; +} + +/* + * Prevents modern browsers from displaying 'audio' without controls + * Remove excess height in iOS5 devices + */ +/* line 59, ../../../sass/sass/normalize.scss */ +audio:not([controls]) { + display: none; + height: 0; +} + +/* + * Addresses styling for 'hidden' attribute not present in IE7/8/9, FF3, S4 + * Known issue: no IE6 support + */ +/* line 69, ../../../sass/sass/normalize.scss */ +[hidden] { + display: none; +} + +/* ============================================================================= + Base + ========================================================================== */ +/* Instead of relying on the fonts that are available on a user's computer, you + can use web fonts which, like images, are resources downloaded to the user's + browser. Because of the bandwidth and rendering resources required, web fonts + should be used with care. + + Numerous resources for web fonts can be found on Google. Here are a few + websites where you can find Open Source fonts to download: + - http://www.fontsquirrel.com/fontface + - http://www.theleagueofmoveabletype.com + + In order to use these fonts, you will need to convert them into formats + suitable for web fonts. We recommend the free-to-use Font Squirrel's + Font-Face Generator: + http://www.fontsquirrel.com/fontface/generator + + The following is an example @font-face declaration. This font can then be + used in any ruleset using a property like this: font-family: Example, serif; + + Since we're using Sass, you'll need to declare your font faces here, then you + can add them to the font variables in the _base.scss partial. +*/ +/* +@font-face { + font-family: 'Example'; + src: url('../fonts/example.eot'); + src: url('../fonts/example.eot?iefix') format('eot'), + url('../fonts/example.woff') format('woff'), + url('../fonts/example.ttf') format('truetype'), + url('../fonts/example.svg#webfontOkOndcij') format('svg'); + font-weight: normal; + font-style: normal; +} +*/ +/* + * 1. Corrects text resizing oddly in IE6/7 when body font-size is set using em units + * http://clagnut.com/blog/348/#c790 + * 2. Prevents iOS text size adjust after orientation change, without disabling user zoom + * www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/ + */ +/* line 120, ../../../sass/sass/normalize.scss */ +html { + font-size: 87.5%; + /* 1 */ + -webkit-text-size-adjust: 100%; + /* 2 */ + -ms-text-size-adjust: 100%; + /* 2 */ + /* Establishes a vertical rhythm unit using $base-line-height. */ + color: #5c5c5c; + line-height: 1.42857em; +} + +/* + * Addresses font-family inconsistency between 'textarea' and other form elements. + */ +/* line 137, ../../../sass/sass/normalize.scss */ +html, +button, +input, +select, +textarea { + font-family: "TIBch", "ClassicGrotesqueW01-Rg", "Helvetica Neue", Arial, "Hiragino Sans GB", "STHeiti", "WenQuanYi Micro Hei", "Microsoft YaHei", SimSun, sans-serif; +} + +/* + * Addresses margins handled incorrectly in IE6/7 + */ +/* line 145, ../../../sass/sass/normalize.scss */ +body { + margin: 0; +} + +/* ============================================================================= + Links + ========================================================================== */ +/* + * The order of link states are based on Eric Meyer's article: + * http://meyerweb.com/eric/thoughts/2007/06/11/who-ordered-the-link-states + */ +/* line 162, ../../../sass/sass/normalize.scss */ +a { + color: #006699; + text-decoration: none; +} + +/* line 167, ../../../sass/sass/normalize.scss */ +a:visited { + color: #006699; +} + +/* line 172, ../../../sass/sass/normalize.scss */ +a:hover, +a:focus { + text-decoration: underline; +} + +/* + * Addresses outline displayed oddly in Chrome + */ +/* line 184, ../../../sass/sass/normalize.scss */ +a:focus { + outline: thin dotted; +} + +/* + * Improves readability when focused and also mouse hovered in all browsers + * people.opera.com/patrickl/experiments/keyboard/test + */ +/* line 194, ../../../sass/sass/normalize.scss */ +a:hover, +a:active { + outline: 0; +} + +/* ============================================================================= + Typography + + To achieve a pleasant vertical rhythm, we use Compass' Vertical Rhythm mixins + so that the line height of our base font becomes the basic unit of vertical + measurement. We use multiples of that unit to set the top and bottom margins + for our block level elements and to set the line heights of any fonts. + For more information, see http://24ways.org/2006/compose-to-a-vertical-rhythm + ========================================================================== */ +/* + * Addresses font sizes and margins set differently in IE6/7 + * Addresses font sizes within 'section' and 'article' in FF4+, Chrome, S5 + */ +/* line 214, ../../../sass/sass/normalize.scss */ +h1 { + /* Sets the font-size and line-height while keeping a proper vertical rhythm. */ + font-size: 1.57143em; + line-height: 1.36364em; + /* Sets 1 unit of vertical rhythm on the top and bottom margins. */ + margin-top: 0.45455em; + margin-bottom: 0.72727em; +} + +/* line 223, ../../../sass/sass/normalize.scss */ +h2 { + font-size: 1.4em; + line-height: 2.04082em; + margin-top: 0.5102em; + margin-bottom: 0.30612em; +} + +/* line 229, ../../../sass/sass/normalize.scss */ +h3 { + font-size: 1.17em; + line-height: 2.442em; + margin-top: 1.221em; + margin-bottom: 0.3663em; +} + +/* line 235, ../../../sass/sass/normalize.scss */ +h4 { + font-size: 1em; + line-height: 1.42857em; + margin-top: 1.14286em; + margin-bottom: 0.57143em; +} + +/* line 241, ../../../sass/sass/normalize.scss */ +h5 { + font-size: 0.83em; + line-height: 1.72117em; + margin-top: 0.51635em; + margin-bottom: 0.86059em; +} + +/* line 247, ../../../sass/sass/normalize.scss */ +h6 { + font-size: 0.75em; + line-height: 1.90476em; + margin-top: 0.57143em; + margin-bottom: 0.95238em; +} + +/* Thematic break */ +/* line 254, ../../../sass/sass/normalize.scss */ +hr { + height: 1px; + border: 1px solid #666; + padding-bottom: -1px; + margin: 1.42857em 0; +} + +/* + * Addresses styling not present in IE7/8/9, S5, Chrome + */ +/* line 265, ../../../sass/sass/normalize.scss */ +abbr[title] { + border-bottom: 1px dotted; + cursor: help; + white-space: nowrap; +} + +/* + * Addresses style set to 'bolder' in FF3+, S4/5, Chrome +*/ +/* line 276, ../../../sass/sass/normalize.scss */ +b, +strong { + font-weight: bold; +} + +/* line 280, ../../../sass/sass/normalize.scss */ +blockquote { + /* Sets 1 unit of vertical rhythm on the top and bottom margin. */ + margin: 1.42857em 30px; +} + +/* + * Addresses styling not present in S5, Chrome + */ +/* line 289, ../../../sass/sass/normalize.scss */ +dfn { + font-style: italic; +} + +/* + * Addresses styling not present in IE6/7/8/9 + */ +/* line 297, ../../../sass/sass/normalize.scss */ +mark { + background: #ff0; + color: #000; +} + +/* + * Addresses margins set differently in IE6/7 + */ +/* line 307, ../../../sass/sass/normalize.scss */ +p, +pre { + /* Sets 1 unit of vertical rhythm on the top and bottom margin. */ + margin-bottom: 0.71429em; + margin-top: 0; +} + +/* + * Corrects font family set oddly in IE6, S4/5, Chrome + * en.wikipedia.org/wiki/User:Davidgothberg/Test59 + */ +/* line 323, ../../../sass/sass/normalize.scss */ +pre, +code, +kbd, +samp, +tt, +var { + font-family: "Courier New", "DejaVu Sans Mono", monospace, sans-serif, "STHeiti", "WenQuanYi Micro Hei", "Microsoft YaHei", SimSun, sans-serif; + /* The $font-monospace value ends with ", serif". */ + font-size: 1em; + line-height: 1.42857em; +} + +/* + * Improves readability of pre-formatted text in all browsers + */ +/* line 335, ../../../sass/sass/normalize.scss */ +pre { + white-space: pre; + white-space: pre-wrap; + word-wrap: break-word; +} + +/* + * 1. Addresses CSS quotes not supported in IE6/7 + * 2. Addresses quote property not supported in S4 + */ +/* 1 */ +/* line 348, ../../../sass/sass/normalize.scss */ +q { + quotes: none; +} + +/* 2 */ +/* line 355, ../../../sass/sass/normalize.scss */ +q:before, +q:after { + content: ''; + content: none; +} + +/* @todo Determine how big element affects vertical rhythm. */ +/* line 361, ../../../sass/sass/normalize.scss */ +small { + font-size: 75%; +} + +/* + * Prevents sub and sup affecting line-height in all browsers + * gist.github.com/413930 + */ +/* line 371, ../../../sass/sass/normalize.scss */ +sub, +sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; +} + +/* line 378, ../../../sass/sass/normalize.scss */ +sup { + top: -0.5em; +} + +/* line 382, ../../../sass/sass/normalize.scss */ +sub { + bottom: -0.25em; +} + +/* ============================================================================= + Lists + ========================================================================== */ +/* + * Addresses margins set differently in IE6/7 + */ +/* line 399, ../../../sass/sass/normalize.scss */ +dl, +menu, +ol, +ul, +.item-list ul { + /* Sets 1 unit of vertical rhythm on the top and bottom margin. */ + margin: 1.42857em 0; +} + +/* line 404, ../../../sass/sass/normalize.scss */ +.item-list ul li { + /* Drupal override */ + margin: 0; +} + +/* line 408, ../../../sass/sass/normalize.scss */ +dd { + margin: 0 0 0 30px; + /* LTR */ +} + +/* line 413, ../../../sass/sass/normalize.scss */ +ul ul, ul ol, ol ul, ol ol, .item-list ul ul, .item-list ul ol, .item-list ol ul, .item-list ol ol { + margin: 0; + /* Turn off margins on nested lists. */ +} + +/* + * Addresses paddings set differently in IE6/7 + */ +/* line 425, ../../../sass/sass/normalize.scss */ +menu, +ol, +ul, +.item-list ul { + padding: 0 0 0 30px; + /* LTR */ +} + +/* + * Corrects list images handled incorrectly in IE7 + */ +/* line 434, ../../../sass/sass/normalize.scss */ +nav ul, +nav ol { + list-style: none; + list-style-image: none; +} + +/* ============================================================================= + Embedded content + ========================================================================== */ +/* + * 1. Removes border when inside 'a' element in IE6/7/8/9, FF3 + * 2. Improves image quality when scaled in IE7 + * code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/ + */ +/* line 450, ../../../sass/sass/normalize.scss */ +img { + border: 0; + /* 1 */ + -ms-interpolation-mode: bicubic; + /* 2 */ + /* vertical-align: bottom; */ + /* Suppress the space beneath the baseline */ + /* Responsive images */ + /* @todo Add responsive embedded video. */ + max-width: 100%; + height: auto; +} + +/* + * Corrects overflow displayed oddly in IE9 + */ +/* line 466, ../../../sass/sass/normalize.scss */ +svg:not(:root) { + overflow: hidden; +} + +/* ============================================================================= + Figures + ========================================================================== */ +/* + * Addresses margin not present in IE6/7/8/9, S5, O11 + */ +/* line 479, ../../../sass/sass/normalize.scss */ +figure { + margin: 0; +} + +/* ============================================================================= + Forms + ========================================================================== */ +/* + * Corrects margin displayed oddly in IE6/7 + */ +/* line 492, ../../../sass/sass/normalize.scss */ +form { + margin: 0; +} + +/* + * Define consistent border, margin, and padding + */ +/* line 500, ../../../sass/sass/normalize.scss */ +fieldset { + border-color: #c0c0c0; + margin: 0 2px; + /* Apply borders and padding that keep the vertical rhythm. */ + border-top-style: solid; + border-top-width: 0.07143em; + padding-top: 0.42857em; + border-bottom-style: solid; + border-bottom-width: 0.07143em; + padding-bottom: 0.85714em; + border-left-style: solid; + border-left-width: 0.07143em; + padding-left: 0.85714em; + border-right-style: solid; + border-right-width: 0.07143em; + padding-right: 0.85714em; +} + +/* + * 1. Corrects color not being inherited in IE6/7/8/9 + * 2. Corrects text not wrapping in FF3 + * 3. Corrects alignment displayed oddly in IE6/7 + */ +/* line 516, ../../../sass/sass/normalize.scss */ +legend { + border: 0; + /* 1 */ + padding: 0; + white-space: normal; + /* 2 */ +} + +/* + * 1. Corrects font size not being inherited in all browsers + * 2. Addresses margins set differently in IE6/7, FF3+, S5, Chrome + * 3. Improves appearance and consistency in all browsers + */ +/* line 534, ../../../sass/sass/normalize.scss */ +button, +input, +select, +textarea { + font-size: 100%; + /* 1 */ + margin: 0; + /* 2 */ + vertical-align: baseline; + /* 3 */ +} + +/* + * Addresses FF3/4 setting line-height on 'input' using !important in the UA stylesheet + */ +/* line 548, ../../../sass/sass/normalize.scss */ +button, +input { + line-height: normal; + /* 1 */ +} + +/* + * 1. Improves usability and consistency of cursor style between image-type 'input' and others + * 2. Corrects inability to style clickable 'input' types in iOS + * 3. Removes inner spacing in IE7 without affecting normal text inputs + * Known issue: inner spacing remains in IE6 + */ +/* line 562, ../../../sass/sass/normalize.scss */ +button, +input[type="button"], +input[type="reset"], +input[type="submit"] { + cursor: pointer; + /* 1 */ + -webkit-appearance: button; + /* 2 */ +} + +/* line 574, ../../../sass/sass/normalize.scss */ +.button, +button, +input[type="submit"], +input[type="button"], +input[type="reset"] { + cursor: pointer; + -webkit-appearance: none; + background-color: #99cc33; + border: 1px solid #f3f2f0; + -webkit-box-shadow: 0px 0px 2px white; + -moz-box-shadow: 0px 0px 2px white; + box-shadow: 0px 0px 2px white; + -webkit-border-radius: 3px; + -moz-border-radius: 3px; + -ms-border-radius: 3px; + -o-border-radius: 3px; + border-radius: 3px; + color: white; + padding-left: 0.8em; + padding-right: 0.8em; + height: 2.1em; + line-height: 2.1em; + vertical-align: middle; +} +/* line 588, ../../../sass/sass/normalize.scss */ +.button:hover, +button:hover, +input[type="submit"]:hover, +input[type="button"]:hover, +input[type="reset"]:hover { + background-color: #93c431; +} +/* line 591, ../../../sass/sass/normalize.scss */ +.button:active, +button:active, +input[type="submit"]:active, +input[type="button"]:active, +input[type="reset"]:active { + background-color: #8ab82e; + -webkit-box-shadow: inset 0px 0px 10px rgba(85, 85, 85, 0.5); + -moz-box-shadow: inset 0px 0px 10px rgba(85, 85, 85, 0.5); + box-shadow: inset 0px 0px 10px rgba(85, 85, 85, 0.5); +} +/* line 595, ../../../sass/sass/normalize.scss */ +.button.disabled, +button.disabled, +input[type="submit"].disabled, +input[type="button"].disabled, +input[type="reset"].disabled { + cursor: default; +} +/* line 598, ../../../sass/sass/normalize.scss */ +.button.disabled:active, .button.disabled:hover, +button.disabled:active, +button.disabled:hover, +input[type="submit"].disabled:active, +input[type="submit"].disabled:hover, +input[type="button"].disabled:active, +input[type="button"].disabled:hover, +input[type="reset"].disabled:active, +input[type="reset"].disabled:hover { + background-color: #99cc33; + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; +} + +/* line 611, ../../../sass/sass/normalize.scss */ +a.button, +a.button:hover, +a.button:active, +a.button:visited { + text-decoration: none; +} + +/* line 615, ../../../sass/sass/normalize.scss */ +.button { + text-align: center; +} + +/* line 619, ../../../sass/sass/normalize.scss */ +input[type="text"] { + background-color: #8b8885; + border: 1px solid white; + -webkit-box-shadow: 0px 0px 2px white; + -moz-box-shadow: 0px 0px 2px white; + box-shadow: 0px 0px 2px white; + padding-left: 0.5em; + padding-right: 0.5em; + padding-top: 0; + padding-bottom: 0; + line-height: 1.95em; + height: 1.95em; + color: white; +} +/* line 65, ../../../sass/sass/_custom.scss */ +input[type="text"].placeholder { + color: #eeeeee; +} +/* line 68, ../../../sass/sass/_custom.scss */ +input[type="text"]:focus.placeholder { + color: transparent; +} +/* line 65, ../../../sass/sass/_custom.scss */ +input[type="text"].input-placeholder { + color: #eeeeee; +} +/* line 68, ../../../sass/sass/_custom.scss */ +input[type="text"]:focus.input-placeholder { + color: transparent; +} +/* line 65, ../../../sass/sass/_custom.scss */ +input[type="text"]:-moz-placeholder { + color: #eeeeee; +} +/* line 68, ../../../sass/sass/_custom.scss */ +input[type="text"]:focus:-moz-placeholder { + color: transparent; +} +/* line 65, ../../../sass/sass/_custom.scss */ +input[type="text"]::-webkit-input-placeholder { + color: #eeeeee; +} +/* line 68, ../../../sass/sass/_custom.scss */ +input[type="text"]:focus::-webkit-input-placeholder { + color: transparent; +} +/* line 65, ../../../sass/sass/_custom.scss */ +input[type="text"]::-moz-placeholder { + color: #eeeeee; +} +/* line 68, ../../../sass/sass/_custom.scss */ +input[type="text"]:focus::-moz-placeholder { + color: transparent; +} +/* line 65, ../../../sass/sass/_custom.scss */ +input[type="text"]:-ms-input-placeholder { + color: #eeeeee; +} +/* line 68, ../../../sass/sass/_custom.scss */ +input[type="text"]:focus:-ms-input-placeholder { + color: transparent; +} + +/* + * Re-set default cursor for disabled elements + */ +/* line 641, ../../../sass/sass/normalize.scss */ +button[disabled], +input[disabled] { + cursor: default; +} + +/* + * 1. Addresses box sizing set to content-box in IE8/9 + * 2. Removes excess padding in IE8/9 + * 3. Removes excess padding in IE7 + Known issue: excess padding remains in IE6 + */ +/* line 653, ../../../sass/sass/normalize.scss */ +input[type="checkbox"], +input[type="radio"] { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + /* 1 */ + padding: 0; + /* 2 */ +} + +/* + * 1. Addresses appearance set to searchfield in S5, Chrome + * 2. Addresses box-sizing set to border-box in S5, Chrome (include -moz to future-proof) + */ +/* line 667, ../../../sass/sass/normalize.scss */ +input[type="search"] { + -webkit-appearance: textfield; + /* 1 */ + -webkit-box-sizing: content-box; + -moz-box-sizing: content-box; + box-sizing: content-box; + /* 2 */ +} + +/* + * Removes inner padding and search cancel button in S5, Chrome on OS X + */ +/* line 677, ../../../sass/sass/normalize.scss */ +input[type="search"]::-webkit-search-decoration, +input[type="search"]::-webkit-search-cancel-button { + -webkit-appearance: none; +} + +/* + * Removes inner padding and border in FF3+ + * www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/ + */ +/* line 687, ../../../sass/sass/normalize.scss */ +button::-moz-focus-inner, +input::-moz-focus-inner { + border: 0; + padding: 0; +} + +/* + * 1. Removes default vertical scrollbar in IE6/7/8/9 + * 2. Improves readability and alignment in all browsers + */ +/* line 697, ../../../sass/sass/normalize.scss */ +textarea { + overflow: auto; + /* 1 */ + vertical-align: top; + /* 2 */ +} + +/* ============================================================================= + Tables + ========================================================================== */ +/* + * Remove most spacing between table cells + */ +/* line 711, ../../../sass/sass/normalize.scss */ +table { + border-collapse: collapse; + border-spacing: 0; + /* width: 100%; */ + /* Prevent cramped-looking tables */ + /* Add vertical rhythm margins. */ + margin-top: 1.42857em; + margin-bottom: 1.42857em; +} + +/* + * Drupal provides table styling which is only useful for its admin section + * forms, so we override this default CSS. (We set it back in forms.css.) + */ +/* line 725, ../../../sass/sass/normalize.scss */ +th { + text-align: left; + /* LTR */ + padding: 0; + border-bottom: none; +} + +/* line 731, ../../../sass/sass/normalize.scss */ +tbody { + border-top: none; +} \ No newline at end of file diff --git a/97suifangqa/apps/indicator/static/css/sheet_default.css b/97suifangqa/apps/indicator/static/css/sheet_default.css new file mode 100644 index 0000000..aca021c --- /dev/null +++ b/97suifangqa/apps/indicator/static/css/sheet_default.css @@ -0,0 +1,359 @@ +#right_container { + width: 596px; + float: left; + margin-left: 457px; +} +#index_status_container { + width: 596px; +} +.index_title { + color: #4a4a4a; + font-size: 20px; + letter-spacing: 2px; + font-weight: bold; +} +.index_sub_title { + margin-top: 9px; + height: 25px; + line-height: 25px; + background-color: #f3f3f1; +} +.index_sub_title .content { + color: #737173; + float: left; +} +.index_sub_title .close_icon { + background: url('../images/closed.png') no-repeat; + float: right; + height: 11px; + width: 11px; + margin: 7px 7px 0 0; + cursor: pointer; +} +.detail_card_info { + width: 562px; + border: 1px solid #CACACA; + position: relative; + float: left; + margin-top: 9px; + padding: 0 14px 6px 20px; + display: none; +} +.detail_card_info .card_title { + height: 32px; + line-height: 32px; + color: #4b4a48; + font-weight: bold; + font-size: 18px; + padding-bottom: 10px; + border-bottom: 1px solid #CACACA; +} +.detail_card_info .card_title .collapse_btn { + width: 80px; + height: 23px; + line-height: 23px; + font-size: 14px; + vertical-align: baseline; + position: relative; + bottom: -10px; + float: right; +} +.detail_card_info .search_data_div { + margin-top: 9px; + margin-bottom: 17px; + width: 562px; +} +.detail_card_info .search_data_div input[type='button'] { + width: 80px; + height: 23px; + line-height: 23px; + float: left; +} +.detail_card_info .search_data_div .recent_two_week { + margin-left: 4px; +} +.detail_card_info .search_data_div .unselected { + border: 1px solid #9F9F9F; + background: #FFFFFF; + border-radius: 0; + color: #5C5C5C; +} +.detail_card_info .search_data_div .datepicker_container { + position: relative; + float: right; +} +.detail_card_info .search_data_div .end_date_container { + margin-left: 10px; +} +.detail_card_info .search_data_div .datepicker_container .datepicker { + background: #FFFFFF; + border: 1px solid #9C9C9C; + color: #B9B9B9; + width: 107px; + height: 17px; + line-height: 17px; + position: relative; + padding-top: 2px; + padding-bottom: 2px; +} +.detail_card_info .search_data_div .datepicker_container .ui-datepicker-trigger { + position: absolute; + top: 2px; + right: 8px; +} +.detail_card_info .table_div table { + margin-bottom: 0; +} +.detail_card_info .table_div table tr { + height: 34px; +} +.detail_card_info .table_div table tr td { + border: 1px solid #CACACA; + text-align: center; +} +.detail_card_info .table_div table .first_line { + background: #99CC33; + height: 29px; + color: #FFFFFF; +} +.detail_card_info .see_more { + margin-top: 5px; +} +.detail_card_info .see_more .see_more_btn { + float: right; + width: 107px; + height: 24px; + line-height: 24px; +} +.index_card { + width: 278px; + height: 375px; + border: 1px solid #CACACA; + margin-top: 9px; + border-radius: 2px; + padding: 5px 5px 0 8px; + position: relative; +} +.index_card_fir { + float: left; +} +.index_card_sec { + float: right; +} +.index_card .card_title { + height: 40px; + line-height: 40px; + color: #7D7D7D; + font-weight: bold; + font-size: 18px; +} +.index_card .refer_range { + color: #4B4B4B; +} +.index_card .refer_range .refer_text { + margin-right: 5px; +} +.index_card .edit_data, .index_card .editing_data { + height: 25px; + margin-top: 7px; +} +.index_card .edit_data .explain_icon { + margin-right: 2px; + float: right; +} +.index_card .edit_data .small_edit_icon { + float: right; + cursor: pointer; +} +.index_card .edit_data .last_edit_data { + float: left; +} +.index_card .editing_data { + display: none; +} +.index_card .editing_data .input_container { + float: left; +} +.index_card .editing_data .input_container input { + color: #5C5C5C; + background-color: #FFFFFF; + border: 1px solid #9C9C9C; +} +.index_card .editing_data .input_container .error { + border: 1px solid red; +} +.index_card .editing_data .input_container .edit_input_main { + width: 42px; + height: 17px; + line-height: 17px; + padding-top: 2px; + padding-bottom: 2px; +} +.index_card .editing_data .input_container .edit_input_sub { + width: 17px; + height: 17px; + line-height: 17px; + padding-top: 2px; + padding-bottom: 2px; +} +.index_card .editing_data .add_minus_icon { + float: left; + margin-right: 8px; +} +.index_card .editing_data .add_minus_icon .add_icon { + background:url(../images/add.png) no-repeat; + width: 15px; + height: 11px; + border-right: 1px solid #9C9C9C; + cursor: pointer; +} +.index_card .editing_data .add_minus_icon .minus_icon { + background:url(../images/minus.png) no-repeat; + width: 15px; + height: 10px; + border-bottom: 1px solid #9C9C9C; + border-right: 1px solid #9C9C9C; + margin-top: 1px; + cursor: pointer; +} +.index_card .editing_data .cancel_edit_icon { + float: right; + background:url(../images/cancel_edit.png) no-repeat; + width: 23px; + height: 23px; + margin-right: 2px; + cursor: pointer; +} +.index_card .editing_data .confirm_edit_icon { + float: right; + background:url(../images/confirm_edit.png) no-repeat; + width: 23px; + height: 23px; + cursor: pointer; +} +.index_card .refresh_data { + height: 23px; + line-height: 23px; + margin-top: 3px; +} +.index_card .refresh_data .refresh_text { + float: left; + color: #B9B9B9; +} +.index_card .refresh_data .refresh_icon { + float: right; + background: url("../images/refresh.png") no-repeat; + width: 23px; + height: 23px; + cursor: pointer; +} +.index_card .select_date { + width: 148px; + height: 23px; + position: relative; + margin-top: 3px; + display: none; +} +.index_card .select_date .datepicker { + background: #FFFFFF; + border: 1px solid #9C9C9C; + color: #B9B9B9; + width: 131px; + height: 17px; + line-height: 17px; + position: relative; + padding-top: 2px; + padding-bottom: 2px; +} +.index_card .select_date .ui-datepicker-trigger { + position: absolute; + top: 2px; + right: 8px; +} +.index_card .edit_icon_container .edit_icon { + background: url("../images/pen_large.png") no-repeat; + height: 85px; + width: 85px; + float: left; + margin: 40px 0 0 95px; + cursor: pointer; +} +.index_card .edit_icon_container .curve_icon { + background: url("../images/curve.png") no-repeat; + height: 125px; + width: 97px; + float: left; +} +.index_card .edit_text { + color: #4B4B4B; + text-align: center; + height: 20px; + line-height: 20px; + margin-top: 11px; + margin-bottom: 100px; +} +.index_card .chart { + height: 230px; +} +.index_card .card_bottom { + height: 30px; + width: 596px; +} +.index_card .card_bottom .understand_index, .index_card .card_bottom .simulation_sheet, .index_card .card_bottom .detail_history { + float: left; +} +.index_card .card_bottom .understand_index a, .index_card .card_bottom .simulation_sheet a, .index_card .card_bottom .detail_history a { + color: #B9B9B9; + cursor: pointer; + text-decoration: none; +} +.index_card .card_bottom .understand_index { + width: 99px; +} +.index_card .card_bottom .simulation_sheet { + width: 96px; +} +.index_card .card_delete { + background: url('../images/closed.png') no-repeat; + width: 11px; + height: 11px; + position: absolute; + top: 0; + right: 0; + margin: 5px 5px 0 0; + cursor: pointer; +} +.index_card .card_delete_hover { + background: url('../images/closed_hover.png') no-repeat; + width: 15px; + height: 15px; + position: absolute; + top: -3px; + right: -2px; + margin: 5px 5px 0 0; + cursor: pointer; +} +.act_card_container { + width: 293px; + height: 380px; +} +.act_card{ + width: 290px; + height: 96px; + line-height: 96px; + text-align: center; + border: 2px dashed #A0A0A0; + margin-top: 9px; + border-radius: 2px; +} +.act_card a{ + color: #7D7D7D; + text-decoration: none; + font-weight: bold; + font-size: 17px; + letter-spacing: 1px; + cursor: pointer; +} +.move_div_2_left { + float: left; +} \ No newline at end of file diff --git a/97suifangqa/apps/indicator/static/css/sidebar.css b/97suifangqa/apps/indicator/static/css/sidebar.css new file mode 100644 index 0000000..39a6ce0 --- /dev/null +++ b/97suifangqa/apps/indicator/static/css/sidebar.css @@ -0,0 +1,206 @@ +.clear { + clear: both; +} +#sidebar_container{ + padding: 1.5em 0; + z-index: 10; + width: 420px; + height: 720px; + background-color: #F3F3F1; +} + +/* 导航样式 */ +#nav_container { + /*position: absolute;*/ + font-size: 1.07143em; + margin-bottom: 24px; +} +#nav_container .hidden_navs { + width: 174px; + overflow: hidden; +} +#nav_container .hidden_navs, #nav_container .default_nav .tail, #nav_container .head-background, #nav_container .head-background, #nav_container .default_nav .curr_nav { + background-color: #0063A8; + height: 33px; + line-height: 33px; + float: left; +} +#nav_container .hidden_navs ul { + display: block; + margin: 0; + padding: 0; + white-space: nowrap; +} +#nav_container .hidden_navs ul li { + display: block; + float: left; + padding: 0; + text-align: center; +} +#nav_container .default_nav .tail a, #nav_container .hidden_navs ul li a { + color: #FFF; + display: block; + text-decoration: none; +} +#nav_container .hidden_navs ul li a { + border-right: 1px solid #267AB5; + width: 86px; +} +#nav_container .hidden_navs ul li a:hover { + background-color: #00497F; +} +#nav_container .default_nav { + left: 20px; + /* 导航的宽度(86+1)*2 */ + width: 174px; + position: absolute; + background-color: #F3F3F1; +} +#nav_container .default_nav .tail a { + text-align: center; + width: 50px; +} +#nav_container .default_nav .tail-cut { + background: url("../images/nav-ribbon-tail-cut.png") repeat scroll 0 0 transparent; + height: 33px; + width: 19px; + float: left; +} +#nav_container .default_nav .curr_nav { + background-color: #F3F3F1; + margin-left: 12px; +} +#nav_container .head-background { + box-shadow: 20px 0 20px -20px inset; + width: 20px; + color: #FFF; +} + +/* 对比容器样式 */ +#compare_container { + margin-top: 26px; + padding-left: 18px; + width: 383px; +} +#compare_container .post-question .searchdiv .question { + width: 289px; + height: 29px; + border: 1px solid #c1b59d; +} +#compare_container .post-question .searchdiv .submit { + width: 72px; + height: 31px; + border: 1px solid #cce79a; + vertical-align: baseline; + float: right; +} +#compare_container .similar_container { + margin-top: 14px; + margin-left:15px; +} +.vertical_bar_component { + position: relative; + width: 12px; + height: 400px; + float: left; +} +.vertical_bar_component .v_b_c_top { + height: 0; + width: 0; + border-width: 3px; + border-style: solid; + border-color: #898989 #898989 #F3F3F1 #898989; + overflow: hidden; + position: absolute; + z-index: 100; +} +.vertical_bar_component .v_b_c_middle { + position: relative; + top: 3px; + z-index: 99; +} +.vertical_bar_component .v_b_c_middle .v_b_c_middle_top { + height: 0; + width: 0; + border-width: 3px; + border-style: solid; + border-color: #F3F3F1 #F3F3F1 #898989 #F3F3F1; + overflow: hidden; +} +.vertical_bar_component .v_b_c_middle .v_b_c_middle_middle { + width: 6px; + height: 382px; + filter:alpha(opacity=100 finishopacity=100 style=1 startx=0,starty=0,finishx=0,finishy=150) progid:DXImageTransform.Microsoft.gradient(startcolorstr=#898989,endcolorstr=#dbdbdb,gradientType=0); + -ms-filter:alpha(opacity=100 finishopacity=100 style=1 startx=0,starty=0,finishx=0,finishy=150) progid:DXImageTransform.Microsoft.gradient(startcolorstr=#898989,endcolorstr=#dbdbdb,gradientType=0);/*IE8*/ + background:-moz-linear-gradient(top,#898989,#dbdbdb);/*Firefox*/ + background:-webkit-gradient(linear, 0 0, 0 bottom, from(#898989), to(#dbdbdb)));/*chrome Safari*/ + background:-o-linear-gradient(top, #898989,#dbdbdb);/*Opera11*/ +} +.vertical_bar_component .v_b_c_middle .v_b_c_middle_bottom { + height: 0; + width: 0; + border-width: 3px; + border-style: solid; + border-color: #dbdbdb #F3F3F1 #F3F3F1 #F3F3F1; + overflow: hidden; +} +.vertical_bar_component .v_b_c_bottom { + height: 0; + width: 0; + border-width: 3px; + border-style: solid; + border-color: #F3F3F1 #dbdbdb #dbdbdb #dbdbdb; + overflow: hidden; + position: absolute; + z-index: 100; +} +#compare_container .similar_container .similar_content { + margin-left: 15px; + float: left; + padding-top: 10px; +} +#compare_container .similar_container .similar_content .similar_title { + color: #a0a0a0; + font-size: 14px; + margin-bottom: 25px; +} +#compare_container .similar_container .similar_content .specifix_content { + background: url("../images/dialog-default.png") no-repeat; + height: 47px; + width: 343px; + margin-left: -10px; + margin-bottom: 35px; + line-height:47px; +} +.specifix_content .specifix_text { + padding-left: 25px; + font-size: 15px; +} +#compare_container .compare_btn { + border: 1px solid #7da625; + width: 380px; + height: 37px; + border-radius: 3px; + margin-top: 8px; +} +#compare_container .compare_btn .compare_btn_in{ + border: 1px solid #b8db71; + border-bottom: none; + background: #8bb830; + background: -webkit-gradient(linear, left top, left bottom, from(#99cc33), to(#8bb830)); + background: -webkit-linear-gradient(top, #99cc33, #8bb830); + background: -moz-linear-gradient(top, #99cc33, #8bb830); + background: -ms-linear-gradient(top, #99cc33, #8bb830); + background: -o-linear-gradient(top, #99cc33, #8bb830); + width: 378px; + height: 36px; + line-height: 36px; + color: #FFF; + font-size: 18px; + text-align: center; + border-radius: 3px; +} +#compare_container .logo_container { + margin-top: 30px; + text-align: center; +} \ No newline at end of file diff --git a/97suifangqa/apps/indicator/static/images/add.png b/97suifangqa/apps/indicator/static/images/add.png new file mode 100644 index 0000000..bc07c4d Binary files /dev/null and b/97suifangqa/apps/indicator/static/images/add.png differ diff --git a/97suifangqa/apps/indicator/static/images/addicon.png b/97suifangqa/apps/indicator/static/images/addicon.png new file mode 100644 index 0000000..6ebf5eb Binary files /dev/null and b/97suifangqa/apps/indicator/static/images/addicon.png differ diff --git a/97suifangqa/apps/indicator/static/images/cancel_edit.png b/97suifangqa/apps/indicator/static/images/cancel_edit.png new file mode 100644 index 0000000..1cd9303 Binary files /dev/null and b/97suifangqa/apps/indicator/static/images/cancel_edit.png differ diff --git a/97suifangqa/apps/indicator/static/images/closed.png b/97suifangqa/apps/indicator/static/images/closed.png new file mode 100644 index 0000000..6d636c2 Binary files /dev/null and b/97suifangqa/apps/indicator/static/images/closed.png differ diff --git a/97suifangqa/apps/indicator/static/images/closed_hover.png b/97suifangqa/apps/indicator/static/images/closed_hover.png new file mode 100644 index 0000000..519aaed Binary files /dev/null and b/97suifangqa/apps/indicator/static/images/closed_hover.png differ diff --git a/97suifangqa/apps/indicator/static/images/confirm_edit.png b/97suifangqa/apps/indicator/static/images/confirm_edit.png new file mode 100644 index 0000000..31f2658 Binary files /dev/null and b/97suifangqa/apps/indicator/static/images/confirm_edit.png differ diff --git a/97suifangqa/apps/indicator/static/images/curve.png b/97suifangqa/apps/indicator/static/images/curve.png new file mode 100644 index 0000000..309f262 Binary files /dev/null and b/97suifangqa/apps/indicator/static/images/curve.png differ diff --git a/97suifangqa/apps/indicator/static/images/demo_sheet.png b/97suifangqa/apps/indicator/static/images/demo_sheet.png new file mode 100644 index 0000000..91ade62 Binary files /dev/null and b/97suifangqa/apps/indicator/static/images/demo_sheet.png differ diff --git a/97suifangqa/apps/indicator/static/images/dialog-default.png b/97suifangqa/apps/indicator/static/images/dialog-default.png new file mode 100644 index 0000000..74b3632 Binary files /dev/null and b/97suifangqa/apps/indicator/static/images/dialog-default.png differ diff --git a/97suifangqa/apps/indicator/static/images/dialog-hover.png b/97suifangqa/apps/indicator/static/images/dialog-hover.png new file mode 100644 index 0000000..b5b4636 Binary files /dev/null and b/97suifangqa/apps/indicator/static/images/dialog-hover.png differ diff --git a/97suifangqa/apps/indicator/static/images/last_edit_data.png b/97suifangqa/apps/indicator/static/images/last_edit_data.png new file mode 100644 index 0000000..7d13181 Binary files /dev/null and b/97suifangqa/apps/indicator/static/images/last_edit_data.png differ diff --git a/97suifangqa/apps/indicator/static/images/minus.png b/97suifangqa/apps/indicator/static/images/minus.png new file mode 100644 index 0000000..cc8310a Binary files /dev/null and b/97suifangqa/apps/indicator/static/images/minus.png differ diff --git a/97suifangqa/apps/indicator/static/images/minusicon.png b/97suifangqa/apps/indicator/static/images/minusicon.png new file mode 100644 index 0000000..997a034 Binary files /dev/null and b/97suifangqa/apps/indicator/static/images/minusicon.png differ diff --git a/97suifangqa/apps/indicator/static/images/nav-ribbon-tail-cut.png b/97suifangqa/apps/indicator/static/images/nav-ribbon-tail-cut.png new file mode 100644 index 0000000..2a91ad9 Binary files /dev/null and b/97suifangqa/apps/indicator/static/images/nav-ribbon-tail-cut.png differ diff --git a/97suifangqa/apps/indicator/static/images/nodata.png b/97suifangqa/apps/indicator/static/images/nodata.png new file mode 100644 index 0000000..3bb3a61 Binary files /dev/null and b/97suifangqa/apps/indicator/static/images/nodata.png differ diff --git a/97suifangqa/apps/indicator/static/images/pen.png b/97suifangqa/apps/indicator/static/images/pen.png new file mode 100644 index 0000000..18aafdf Binary files /dev/null and b/97suifangqa/apps/indicator/static/images/pen.png differ diff --git a/97suifangqa/apps/indicator/static/images/pen_large.png b/97suifangqa/apps/indicator/static/images/pen_large.png new file mode 100644 index 0000000..ec75b6b Binary files /dev/null and b/97suifangqa/apps/indicator/static/images/pen_large.png differ diff --git a/97suifangqa/apps/indicator/static/images/refresh.png b/97suifangqa/apps/indicator/static/images/refresh.png new file mode 100644 index 0000000..ef833e6 Binary files /dev/null and b/97suifangqa/apps/indicator/static/images/refresh.png differ diff --git a/97suifangqa/apps/indicator/static/images/search.png b/97suifangqa/apps/indicator/static/images/search.png new file mode 100644 index 0000000..303f228 Binary files /dev/null and b/97suifangqa/apps/indicator/static/images/search.png differ diff --git a/97suifangqa/apps/indicator/static/images/slilogo.png b/97suifangqa/apps/indicator/static/images/slilogo.png new file mode 100644 index 0000000..e50c568 Binary files /dev/null and b/97suifangqa/apps/indicator/static/images/slilogo.png differ diff --git a/97suifangqa/apps/indicator/static/javascripts/delete_card_tip.js b/97suifangqa/apps/indicator/static/javascripts/delete_card_tip.js new file mode 100644 index 0000000..099a216 --- /dev/null +++ b/97suifangqa/apps/indicator/static/javascripts/delete_card_tip.js @@ -0,0 +1,18 @@ +$(document).ready(function(){ + //点大叉、继续关注按钮,关闭弹层页面 + $(".delete_card_tip_close, .action_confirm_ignore").bind("click", function(){ + parent.TB_remove(); + return false; + }); + + //取消关注,关闭弹层页面 + $(".action_confirm_cancel").bind("click", function(){ + //TODO + //底层数据层取消关注(ajax) + //console.log(parent.card_2_delete_id); //要取消关注的 卡片id 的获取方法 + + parent.delete_card(); + parent.TB_remove(); + return false; + }); +}); \ No newline at end of file diff --git a/97suifangqa/apps/indicator/static/javascripts/edit_history_data.js b/97suifangqa/apps/indicator/static/javascripts/edit_history_data.js new file mode 100644 index 0000000..e664a39 --- /dev/null +++ b/97suifangqa/apps/indicator/static/javascripts/edit_history_data.js @@ -0,0 +1,83 @@ +$(document).ready(function(){ + $("#edit_btn").bind("click", function(){ + var this_edit_data_div = $(this).parent(); + var data_fir = $(this).siblings(".data_fir").text(); + var data_sec = $(this).siblings(".data_sec").text(); + var this_editing_data_div = this_edit_data_div.siblings(".editing_data"); + var input_container = this_editing_data_div.children(".input_container"); + input_container.children(".edit_input_main").val(parseInt(data_fir)); + input_container.children(".edit_input_sub").val(parseInt(data_sec)); + this_editing_data_div.show(); + this_edit_data_div.hide(); + return false; + }); + //点击指数+1 icon + $(".add_icon").bind("click", function(){ + var this_edit_input_sub = $(this).closest(".editing_data").children(".input_container").children(".edit_input_sub"); + var origin_value = parseInt(this_edit_input_sub.val()); + this_edit_input_sub.val(origin_value+1); + return false; + }); + //点击 指数-1 icon + $(".minus_icon").bind("click", function(){ + var this_edit_input_sub = $(this).closest(".editing_data").children(".input_container").children(".edit_input_sub"); + var origin_value = parseInt(this_edit_input_sub.val()); + var after_value = origin_value-1; + if(after_value >= 0){ + this_edit_input_sub.val(origin_value-1); + } + return false; + }); + //编辑数据的底数验证:只允许两位小数,非空 + $(".edit_input_main").bind("keyup", function(){ + var val = $(this).val(); + val = val.replace(/[^\d.]/g,"");//清除"数字"和"."以外的字符 + val = val.replace(/^\./g,"");//验证第一个字符是数字而不是.. + val = val.replace(/\.{2,}/g,".");//只保留第一个. 清除多余的 + val = val.replace(".","$#$").replace(/\./g,"").replace("$#$","."); + val = val.replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3'); + $(this).val(val); + return false; + }); + //编辑数据的指数验证:只允许整数 + $(".edit_input_sub").bind("keyup", function(){ + $(this).val($(this).val().replace(/[^\d]/g, '')); + return false; + }); + $("#save_btn").bind("click", function(){ + var data_input_fir = $(".edit_input_main"); + var data_input_sec = $(".edit_input_sub"); + var data_input_fir_val = data_input_fir.val(); + var data_input_sec_val = data_input_sec.val(); + + if(data_input_fir_val == '' || data_input_fir_val == 0){ + data_input_fir.addClass("error"); + }else{ + data_input_fir.removeClass("error"); + } + if(data_input_sec_val == ''){ + data_input_sec.addClass("error"); + }else{ + data_input_sec.removeClass("error"); + } + if($(".error").length > 0){ + return false; + } + + var date = new Date(); + var time = date.getTime(); + $.ajax({ + type: 'get', + url: '../../ajax/edit_history_data', + data: 'time='+time, + success: function(data){ + if(data == 'success'){ + parent.TB_remove(); + parent.redraw_chart(parent.detail_chart, "2013-08-04", "2013-08-10"); //这边需要穿过来起始,结束时间,以便刷新图表和表格 + } + } + }); + + return false; + }); +}); \ No newline at end of file diff --git a/97suifangqa/apps/indicator/static/javascripts/index_desc.js b/97suifangqa/apps/indicator/static/javascripts/index_desc.js new file mode 100644 index 0000000..49771ea --- /dev/null +++ b/97suifangqa/apps/indicator/static/javascripts/index_desc.js @@ -0,0 +1,16 @@ +$(document).ready(function(){ + //点大叉、继续关注按钮,关闭弹层页面 + $(".index_desc_close").bind("click", function(){ + parent.TB_remove(); + return false; + }); + + //前往医学知识库 + $(".go_library_btn").bind("click", function(){ + parent.delete_card(); + parent.TB_remove(); + + parent.window.location.href = "http://demo.97suifang.com/blog/1/source"; + return false; + }); +}); \ No newline at end of file diff --git a/97suifangqa/apps/indicator/static/javascripts/jquery-1.6.min.js b/97suifangqa/apps/indicator/static/javascripts/jquery-1.6.min.js new file mode 100644 index 0000000..c72011d --- /dev/null +++ b/97suifangqa/apps/indicator/static/javascripts/jquery-1.6.min.js @@ -0,0 +1,16 @@ +/*! + * jQuery JavaScript Library v1.6 + * http://jquery.com/ + * + * Copyright 2011, John Resig + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * Includes Sizzle.js + * http://sizzlejs.com/ + * Copyright 2011, The Dojo Foundation + * Released under the MIT, BSD, and GPL Licenses. + * + * Date: Mon May 2 13:50:00 2011 -0400 + */ +(function(a,b){function cw(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function ct(a){if(!ch[a]){var b=f("<"+a+">").appendTo("body"),d=b.css("display");b.remove();if(d==="none"||d===""){ci||(ci=c.createElement("iframe"),ci.frameBorder=ci.width=ci.height=0),c.body.appendChild(ci);if(!cj||!ci.createElement)cj=(ci.contentWindow||ci.contentDocument).document,cj.write("");b=cj.createElement(a),cj.body.appendChild(b),d=f.css(b,"display"),c.body.removeChild(ci)}ch[a]=d}return ch[a]}function cs(a,b){var c={};f.each(cn.concat.apply([],cn.slice(0,b)),function(){c[this]=a});return c}function cr(){co=b}function cq(){setTimeout(cr,0);return co=f.now()}function cg(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function cf(){try{return new a.XMLHttpRequest}catch(b){}}function b_(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g=0===c})}function V(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function N(a,b){return(a&&a!=="*"?a+".":"")+b.replace(z,"`").replace(A,"&")}function M(a){var b,c,d,e,g,h,i,j,k,l,m,n,o,p=[],q=[],r=f._data(this,"events");if(!(a.liveFired===this||!r||!r.live||a.target.disabled||a.button&&a.type==="click")){a.namespace&&(n=new RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")),a.liveFired=this;var s=r.live.slice(0);for(i=0;ic)break;a.currentTarget=e.elem,a.data=e.handleObj.data,a.handleObj=e.handleObj,o=e.handleObj.origHandler.apply(e.elem,arguments);if(o===!1||a.isPropagationStopped()){c=e.level,o===!1&&(b=!1);if(a.isImmediatePropagationStopped())break}}return b}}function K(a,c,d){var e=f.extend({},d[0]);e.type=a,e.originalEvent={},e.liveFired=b,f.event.handle.call(c,e),e.isDefaultPrevented()&&d[0].preventDefault()}function E(){return!0}function D(){return!1}function m(a,c,d){var e=c+"defer",g=c+"queue",h=c+"mark",i=f.data(a,e,b,!0);i&&(d==="queue"||!f.data(a,g,b,!0))&&(d==="mark"||!f.data(a,h,b,!0))&&setTimeout(function(){!f.data(a,g,b,!0)&&!f.data(a,h,b,!0)&&(f.removeData(a,e,!0),i.resolve())},0)}function l(a){for(var b in a)if(b!=="toJSON")return!1;return!0}function k(a,c,d){if(d===b&&a.nodeType===1){name="data-"+c.replace(j,"$1-$2").toLowerCase(),d=a.getAttribute(name);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNaN(d)?i.test(d)?f.parseJSON(d):d:parseFloat(d)}catch(e){}f.data(a,c,d)}else d=b}return d}var c=a.document,d=a.navigator,e=a.location,f=function(){function H(){if(!e.isReady){try{c.documentElement.doScroll("left")}catch(a){setTimeout(H,1);return}e.ready()}}var e=function(a,b){return new e.fn.init(a,b,h)},f=a.jQuery,g=a.$,h,i=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/\d/,n=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,o=/^[\],:{}\s]*$/,p=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,q=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,r=/(?:^|:|,)(?:\s*\[)+/g,s=/(webkit)[ \/]([\w.]+)/,t=/(opera)(?:.*version)?[ \/]([\w.]+)/,u=/(msie) ([\w.]+)/,v=/(mozilla)(?:.*? rv:([\w.]+))?/,w=d.userAgent,x,y,z,A=Object.prototype.toString,B=Object.prototype.hasOwnProperty,C=Array.prototype.push,D=Array.prototype.slice,E=String.prototype.trim,F=Array.prototype.indexOf,G={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)==="<"&&a.charAt(a.length-1)===">"&&a.length>=3?g=[null,a,null]:g=i.exec(a);if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=n.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.6",length:0,size:function(){return this.length},toArray:function(){return D.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?C.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),y.done(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(D.apply(this,arguments),"slice",D.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:C,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;y.resolveWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").unbind("ready")}},bindReady:function(){if(!y){y=e._Deferred();if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",z,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",z),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&H()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a&&typeof a=="object"&&"setInterval"in a},isNaN:function(a){return a==null||!m.test(a)||isNaN(a)},type:function(a){return a==null?String(a):G[A.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;if(a.constructor&&!B.call(a,"constructor")&&!B.call(a.constructor.prototype,"isPrototypeOf"))return!1;var c;for(c in a);return c===b||B.call(a,c)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw a},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(o.test(b.replace(p,"@").replace(q,"]").replace(r,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(b,c,d){a.DOMParser?(d=new DOMParser,c=d.parseFromString(b,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b)),d=c.documentElement,(!d||!d.nodeName||d.nodeName==="parsererror")&&e.error("Invalid XML: "+b);return c},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i1?h.call(arguments,0):c,--e||g.resolveWith(g,h.call(b,0))}}var b=arguments,c=0,d=b.length,e=d,g=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred();if(d>1){for(;c
a",b=a.getElementsByTagName("*"),d=a.getElementsByTagName("a")[0];if(!b||!b.length||!d)return{};e=c.createElement("select"),f=e.appendChild(c.createElement("option")),g=a.getElementsByTagName("input")[0],i={leadingWhitespace:a.firstChild.nodeType===3,tbody:!a.getElementsByTagName("tbody").length,htmlSerialize:!!a.getElementsByTagName("link").length,style:/top/.test(d.getAttribute("style")),hrefNormalized:d.getAttribute("href")==="/a",opacity:/^0.55$/.test(d.style.opacity),cssFloat:!!d.style.cssFloat,checkOn:g.value==="on",optSelected:f.selected,getSetAttribute:a.className!=="t",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},g.checked=!0,i.noCloneChecked=g.cloneNode(!0).checked,e.disabled=!0,i.optDisabled=!f.disabled;try{delete a.test}catch(r){i.deleteExpando=!1}!a.addEventListener&&a.attachEvent&&a.fireEvent&&(a.attachEvent("onclick",function click(){i.noCloneEvent=!1,a.detachEvent("onclick",click)}),a.cloneNode(!0).fireEvent("onclick")),g=c.createElement("input"),g.value="t",g.setAttribute("type","radio"),i.radioValue=g.value==="t",g.setAttribute("checked","checked"),a.appendChild(g),j=c.createDocumentFragment(),j.appendChild(a.firstChild),i.checkClone=j.cloneNode(!0).cloneNode(!0).lastChild.checked,a.innerHTML="",a.style.width=a.style.paddingLeft="1px",k=c.createElement("body"),l={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};for(p in l)k.style[p]=l[p];k.appendChild(a),c.documentElement.appendChild(k),i.appendChecked=g.checked,i.boxModel=a.offsetWidth===2,"zoom"in a.style&&(a.style.display="inline",a.style.zoom=1,i.inlineBlockNeedsLayout=a.offsetWidth===2,a.style.display="",a.innerHTML="
",i.shrinkWrapBlocks=a.offsetWidth!==2),a.innerHTML="
t
",m=a.getElementsByTagName("td"),q=m[0].offsetHeight===0,m[0].style.display="",m[1].style.display="none",i.reliableHiddenOffsets=q&&m[0].offsetHeight===0,a.innerHTML="",c.defaultView&&c.defaultView.getComputedStyle&&(h=c.createElement("div"),h.style.width="0",h.style.marginRight="0",a.appendChild(h),i.reliableMarginRight=(parseInt(c.defaultView.getComputedStyle(h,null).marginRight,10)||0)===0),k.innerHTML="",c.documentElement.removeChild(k);if(a.attachEvent)for(p in{submit:1,change:1,focusin:1})o="on"+p,q=o in a,q||(a.setAttribute(o,"return;"),q=typeof a[o]=="function"),i[p+"Bubbles"]=q;return i}(),f.boxModel=f.support.boxModel;var i=/^(?:\{.*\}|\[.*\])$/,j=/([a-z])([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!l(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g=f.expando,h=typeof c=="string",i,j=a.nodeType,k=j?f.cache:a,l=j?a[f.expando]:a[f.expando]&&f.expando;if((!l||e&&l&&!k[l][g])&&h&&d===b)return;l||(j?a[f.expando]=l=++f.uuid:l=f.expando),k[l]||(k[l]={},j||(k[l].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?k[l][g]=f.extend(k[l][g],c):k[l]=f.extend(k[l],c);i=k[l],e&&(i[g]||(i[g]={}),i=i[g]),d!==b&&(i[c]=d);if(c==="events"&&!i[c])return i[g]&&i[g].events;return h?i[c]:i}},removeData:function(b,c,d){if(!!f.acceptData(b)){var e=f.expando,g=b.nodeType,h=g?f.cache:b,i=g?b[f.expando]:f.expando;if(!h[i])return;if(c){var j=d?h[i][e]:h[i];if(j){delete j[c];if(!l(j))return}}if(d){delete h[i][e];if(!l(h[i]))return}var k=h[i][e];f.support.deleteExpando||h!=a?delete h[i]:h[i]=null,k?(h[i]={},g||(h[i].toJSON=f.noop),h[i][e]=k):g&&(f.support.deleteExpando?delete b[f.expando]:b.removeAttribute?b.removeAttribute(f.expando):b[f.expando]=null)}},_data:function(a,b,c){return f.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=f.noData[a.nodeName.toLowerCase()];if(b)return b!==!0&&a.getAttribute("classid")===b}return!0}}),f.fn.extend({data:function(a,c){var d=null;if(typeof a=="undefined"){if(this.length){d=f.data(this[0]);if(this[0].nodeType===1){var e=this[0].attributes,g;for(var h=0,i=e.length;h-1)return!0;return!1},val:function(a){var c,d,e=this[0];if(!arguments.length){if(e){c=f.valHooks[e.nodeName.toLowerCase()]||f.valHooks[e.type];if(c&&"get"in c&&(d=c.get(e,"value"))!==b)return d;return(e.value||"").replace(p,"")}return b}var g=f.isFunction(a);return this.each(function(d){var e=f(this),h;if(this.nodeType===1){g?h=a.call(this,d,e.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.nodeName.toLowerCase()]||f.valHooks[this.type];if(!c||"set"in c&&c.set(this,h,"value")===b)this.value=h}})}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b=a.selectedIndex,c=[],d=a.options,e=a.type==="select-one";if(b<0)return null;for(var g=e?b:0,h=e?b+1:d.length;g=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attrFix:{tabindex:"tabIndex",readonly:"readOnly"},attr:function(a,c,d,e){var g=a.nodeType;if(!a||g===3||g===8||g===2)return b;if(e&&c in f.attrFn)return f(a)[c](d);var h,i,j=g!==1||!f.isXMLDoc(a);c=j&&f.attrFix[c]||c,i=f.attrHooks[c]||(v&&(f.nodeName(a,"form")||u.test(c))?v:b);if(d!==b){if(d===null||d===!1&&!t.test(c)){f.removeAttr(a,c);return b}if(i&&"set"in i&&j&&(h=i.set(a,d,c))!==b)return h;d===!0&&!t.test(c)&&(d=c),a.setAttribute(c,""+d);return d}if(i&&"get"in i&&j)return i.get(a,c);h=a.getAttribute(c);return h===null?b:h},removeAttr:function(a,b){a.nodeType===1&&(b=f.attrFix[b]||b,f.support.getSetAttribute?a.removeAttribute(b):(f.attr(a,b,""),a.removeAttributeNode(a.getAttributeNode(b))))},attrHooks:{type:{set:function(a,b){if(q.test(a.nodeName)&&a.parentNode)f.error("type property can't be changed");else if(!f.support.radioValue&&b==="radio"&&f.nodeName(a,"input")){var c=a.getAttribute("value");a.setAttribute("type",b),c&&(a.value=c);return b}}},tabIndex:{get:function(a){var c=a.getAttributeNode("tabIndex");return c&&c.specified?parseInt(c.value,10):r.test(a.nodeName)||s.test(a.nodeName)&&a.href?0:b}}},propFix:{},prop:function(a,c,d){var e=a.nodeType;if(!a||e===3||e===8||e===2)return b;var g,h,i=e!==1||!f.isXMLDoc(a);c=i&&f.propFix[c]||c,h=f.propHooks[c];return d!==b?h&&"set"in h&&(g=h.set(a,d,c))!==b?g:a[c]=d:h&&"get"in h&&(g=h.get(a,c))!==b?g:a[c]},propHooks:{}}),f.support.getSetAttribute||(f.attrFix=f.extend(f.attrFix,{"for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder"}),v=f.attrHooks.name=f.attrHooks.value=f.valHooks.button={get:function(a,c){var d;if(c==="value"&&!f.nodeName(a,"button"))return a.getAttribute(c);d=a.getAttributeNode(c);return d&&d.specified?d.nodeValue:b},set:function(a,b,c){var d=a.getAttributeNode(c);if(d){d.nodeValue=b;return b}}},f.each(["width","height"],function(a,b){f.attrHooks[b]=f.extend(f.attrHooks[b],{set:function(a,c){if(c===""){a.setAttribute(b,"auto");return c}}})})),f.support.hrefNormalized||f.each(["href","src","width","height"],function(a,c){f.attrHooks[c]=f.extend(f.attrHooks[c],{get:function(a){var d=a.getAttribute(c,2);return d===null?b:d}})}),f.support.style||(f.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||b},set:function(a,b){return a.style.cssText=""+b}}),f.support.optSelected||(f.propHooks.selected=f.extend(f.propHooks.selected,{get:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex)}})),f.support.checkOn||f.each(["radio","checkbox"],function(){f.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}}),f.each(["radio","checkbox"],function(){f.valHooks[this]=f.extend(f.valHooks[this],{set:function(a,b){if(f.isArray(b))return a.checked=f.inArray(f(a).val(),b)>=0}})});var w=Object.prototype.hasOwnProperty,x=/\.(.*)$/,y=/^(?:textarea|input|select)$/i,z=/\./g,A=/ /g,B=/[^\w\s.|`]/g,C=function(a){return a.replace(B,"\\$&")};f.event={add:function(a,c,d,e){if(a.nodeType!==3&&a.nodeType!==8){if(d===!1)d=D;else if(!d)return;var g,h;d.handler&&(g=d,d=g.handler),d.guid||(d.guid=f.guid++);var i=f._data(a);if(!i)return;var j=i.events,k=i.handle;j||(i.events=j={}),k||(i.handle=k=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.handle.apply(k.elem,arguments):b}),k.elem=a,c=c.split(" ");var l,m=0,n;while(l=c[m++]){h=g?f.extend({},g):{handler:d,data:e},l.indexOf(".")>-1?(n=l.split("."),l=n.shift(),h.namespace=n.slice(0).sort().join(".")):(n=[],h.namespace=""),h.type=l,h.guid||(h.guid=d.guid);var o=j[l],p=f.event.special[l]||{};if(!o){o=j[l]=[];if(!p.setup||p.setup.call(a,e,n,k)===!1)a.addEventListener?a.addEventListener(l,k,!1):a.attachEvent&&a.attachEvent("on"+l,k)}p.add&&(p.add.call(a,h),h.handler.guid||(h.handler.guid=d.guid)),o.push(h),f.event.global[l]=!0}a=null}},global:{},remove:function(a,c,d,e){if(a.nodeType!==3&&a.nodeType!==8){d===!1&&(d=D);var g,h,i,j,k=0,l,m,n,o,p,q,r,s=f.hasData(a)&&f._data(a),t=s&&s.events;if(!s||!t)return;c&&c.type&&(d=c.handler,c=c.type);if(!c||typeof c=="string"&&c.charAt(0)==="."){c=c||"";for(h in t)f.event.remove(a,h+c);return}c=c.split(" ");while(h=c[k++]){r=h,q=null,l=h.indexOf(".")<0,m=[],l||(m=h.split("."),h=m.shift(),n=new RegExp("(^|\\.)"+f.map(m.slice(0).sort(),C).join("\\.(?:.*\\.)?")+"(\\.|$)")),p=t[h];if(!p)continue;if(!d){for(j=0;j=0&&(h=h.slice(0,-1),j=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if(!!e&&!f.event.customEvent[h]||!!f.event.global[h]){c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.exclusive=j,c.namespace=i.join("."),c.namespace_re=new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)");if(g||!e)c.preventDefault(),c.stopPropagation();if(!e){f.each(f.cache,function(){var a=f.expando,b=this[a];b&&b.events&&b.events[h]&&f.event.trigger(c,d,b.handle.elem)});return}if(e.nodeType===3||e.nodeType===8)return;c.result=b,c.target=e,d=d?f.makeArray(d):[],d.unshift(c);var k=e,l=h.indexOf(":")<0?"on"+h:"";do{var m=f._data(k,"handle");c.currentTarget=k,m&&m.apply(k,d),l&&f.acceptData(k)&&k[l]&&k[l].apply(k,d)===!1&&(c.result=!1,c.preventDefault()),k=k.parentNode||k.ownerDocument||k===c.target.ownerDocument&&a}while(k&&!c.isPropagationStopped());if(!c.isDefaultPrevented()){var n,o=f.event.special[h]||{};if((!o._default||o._default.call(e.ownerDocument,c)===!1)&&(h!=="click"||!f.nodeName(e,"a"))&&f.acceptData(e)){try{l&&e[h]&&(n=e[l],n&&(e[l]=null),f.event.triggered=h,e[h]())}catch(p){}n&&(e[l]=n),f.event.triggered=b}}return c.result}},handle:function(c){c=f.event.fix(c||a.event);var d=((f._data(this,"events")||{})[c.type]||[]).slice(0),e=!c.exclusive&&!c.namespace,g=Array.prototype.slice.call(arguments,0);g[0]=c,c.currentTarget=this;for(var h=0,i=d.length;h-1?f.map(a.options,function(a){return a.selected}).join("-"):"":f.nodeName(a,"select")&&(c=a.selectedIndex);return c},J=function J(a){var c=a.target,d,e;if(!!y.test(c.nodeName)&&!c.readOnly){d=f._data(c,"_change_data"),e=I(c),(a.type!=="focusout"||c.type!=="radio")&&f._data(c,"_change_data",e);if(d===b||e===d)return;if(d!=null||e)a.type="change",a.liveFired=b,f.event.trigger(a,arguments[1],c)}};f.event.special.change={filters:{focusout:J,beforedeactivate:J,click:function(a){var b=a.target,c=f.nodeName(b,"input")?b.type:"";(c==="radio"||c==="checkbox"||f.nodeName(b,"select"))&&J.call(this,a)},keydown:function(a){var b=a.target,c=f.nodeName(b,"input")?b.type:"";(a.keyCode===13&&!f.nodeName(b,"textarea")||a.keyCode===32&&(c==="checkbox"||c==="radio")||c==="select-multiple")&&J.call(this,a)},beforeactivate:function(a){var b=a.target;f._data(b,"_change_data",I(b))}},setup:function(a,b){if(this.type==="file")return!1;for(var c in H)f.event.add(this,c+".specialChange",H[c]);return y.test(this.nodeName)},teardown:function(a){f.event.remove(this,".specialChange");return y.test(this.nodeName)}},H=f.event.special.change.filters,H.focus=H.beforeactivate}f.support.focusinBubbles||f.each({focus:"focusin",blur:"focusout"},function(a,b){function e(a){var c=f.event.fix(a);c.type=b,c.originalEvent={},f.event.trigger(c,null,c.target),c.isDefaultPrevented()&&a.preventDefault()}var d=0;f.event.special[b]={setup:function(){d++===0&&c.addEventListener(a,e,!0)},teardown:function(){--d===0&&c.removeEventListener(a,e,!0)}}}),f.each(["bind","one"],function(a,c){f.fn[c]=function(a,d,e){var g;if(typeof a=="object"){for(var h in a)this[c](h,d,a[h],e);return this}if(arguments.length===2||d===!1)e=d,d=b;c==="one"?(g=function(a){f(this).unbind(a,g);return e.apply(this,arguments)},g.guid=e.guid||f.guid++):g=e;if(a==="unload"&&c!=="one")this.one(a,d,e);else for(var i=0,j=this.length;i0?this.bind(b,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0)}),function(){function u(a,b,c,d,e,f){for(var g=0,h=d.length;g0){j=i;break}}i=i[a]}d[g]=j}}}function t(a,b,c,d,e,f){for(var g=0,h=d.length;g+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d=0,e=Object.prototype.toString,g=!1,h=!0,i=/\\/g,j=/\W/;[0,0].sort(function(){h=!1;return 0});var k=function(b,d,f,g){f=f||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return f;var i,j,n,o,q,r,s,t,u=!0,w=k.isXML(d),x=[],y=b;do{a.exec(""),i=a.exec(y);if(i){y=i[3],x.push(i[1]);if(i[2]){o=i[3];break}}}while(i);if(x.length>1&&m.exec(b))if(x.length===2&&l.relative[x[0]])j=v(x[0]+x[1],d);else{j=l.relative[x[0]]?[d]:k(x.shift(),d);while(x.length)b=x.shift(),l.relative[b]&&(b+=x.shift()),j=v(b,j)}else{!g&&x.length>1&&d.nodeType===9&&!w&&l.match.ID.test(x[0])&&!l.match.ID.test(x[x.length-1])&&(q=k.find(x.shift(),d,w),d=q.expr?k.filter(q.expr,q.set)[0]:q.set[0]);if(d){q=g?{expr:x.pop(),set:p(g)}:k.find(x.pop(),x.length===1&&(x[0]==="~"||x[0]==="+")&&d.parentNode?d.parentNode:d,w),j=q.expr?k.filter(q.expr,q.set):q.set,x.length>0?n=p(j):u=!1;while(x.length)r=x.pop(),s=r,l.relative[r]?s=x.pop():r="",s==null&&(s=d),l.relative[r](n,s,w)}else n=x=[]}n||(n=j),n||k.error(r||b);if(e.call(n)==="[object Array]")if(!u)f.push.apply(f,n);else if(d&&d.nodeType===1)for(t=0;n[t]!=null;t++)n[t]&&(n[t]===!0||n[t].nodeType===1&&k.contains(d,n[t]))&&f.push(j[t]);else for(t=0;n[t]!=null;t++)n[t]&&n[t].nodeType===1&&f.push(j[t]);else p(n,f);o&&(k(o,h,f,g),k.uniqueSort(f));return f};k.uniqueSort=function(a){if(r){g=h,a.sort(r);if(g)for(var b=1;b0},k.find=function(a,b,c){var d;if(!a)return[];for(var e=0,f=l.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!j.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(i,"")},TAG:function(a,b){return a[1].replace(i,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||k.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&k.error(a[0]);a[0]=d++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(i,"");!f&&l.attrMap[g]&&(a[1]=l.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(i,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=k(b[3],null,null,c);else{var g=k.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(l.match.POS.test(b[0])||l.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!k(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){return a.nodeName.toLowerCase()==="input"&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=l.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||k.getText([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=l.attrHandle[c]?l.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=l.setFilters[e];if(f)return f(a,c,b,d)}}},m=l.match.POS,n=function(a,b){return"\\"+(b-0+1)};for(var o in l.match)l.match[o]=new RegExp(l.match[o].source+/(?![^\[]*\])(?![^\(]*\))/.source),l.leftMatch[o]=new RegExp(/(^(?:.|\r|\n)*?)/.source+l.match[o].source.replace(/\\(\d+)/g,n));var p=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(q){p=function(a,b){var c=0,d=b||[];if(e.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var f=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(l.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},l.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(l.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(l.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=k,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){k=function(b,e,f,g){e=e||c;if(!g&&!k.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return p(e.getElementsByTagName(b),f);if(h[2]&&l.find.CLASS&&e.getElementsByClassName)return p(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return p([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return p([],f);if(i.id===h[3])return p([i],f)}try{return p(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var m=e,n=e.getAttribute("id"),o=n||d,q=e.parentNode,r=/^\s*[+~]/.test(b);n?o=o.replace(/'/g,"\\$&"):e.setAttribute("id",o),r&&q&&(e=e.parentNode);try{if(!r||q)return p(e.querySelectorAll("[id='"+o+"'] "+b),f)}catch(s){}finally{n||m.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)k[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}k.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!k.isXML(a))try{if(e||!l.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return k(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;l.order.splice(1,0,"CLASS"),l.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?k.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?k.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:k.contains=function(){return!1},k.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var v=function(a,b){var c,d=[],e="",f=b.nodeType?[b]:b;while(c=l.match.PSEUDO.exec(a))e+=c[0],a=a.replace(l.match.PSEUDO,"");a=l.relative[a]?a+"*":a;for(var g=0,h=f.length;g0)for(h=g;h0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h,i,j={},k=1;if(g&&a.length){for(d=0,e=a.length;d-1:f(g).is(h))&&c.push({selector:i,elem:g,level:k});g=g.parentNode,k++}}return c}var l=T.test(a)||typeof a!="string"?f(a,b||this.context):0;for(d=0,e=this.length;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a||typeof a=="string")return f.inArray(this[0],a?f(a):this.parent().children());return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(V(c[0])||V(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling(a.parentNode.firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c),g=S.call(arguments);O.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!U[a]?f.unique(e):e,(this.length>1||Q.test(d))&&P.test(a)&&(e=e.reverse());return this.pushStack(e,a,g.join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var X=/ jQuery\d+="(?:\d+|null)"/g,Y=/^\s+/,Z=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,$=/<([\w:]+)/,_=/",""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]};be.optgroup=be.option,be.tbody=be.tfoot=be.colgroup=be.caption=be.thead,be.th=be.td,f.support.htmlSerialize||(be._default=[1,"div
","
"]),f.fn.extend({text:function(a){if(f.isFunction(a))return this.each(function(b){var c=f(this);c.text(a.call(this,b,c.text()))});if(typeof a!="object"&&a!==b)return this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a));return f.text(this)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){f(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f(arguments[0]).toArray());return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(X,""):null;if(typeof a=="string"&&!bb.test(a)&&(f.support.leadingWhitespace||!Y.test(a))&&!be[($.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Z,"<$1>");try{for(var c=0,d=this.length;c1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d=a.cloneNode(!0),e,g,h;if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bh(a,d),e=bi(a),g=bi(d);for(h=0;e[h];++h)bh(e[h],g[h])}if(b){bg(a,d);if(c){e=bi(a),g=bi(d);for(h=0;e[h];++h)bg(e[h],g[h])}}return d},clean:function(a,b,d,e){var g;b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);var h=[];for(var i=0,j;(j=a[i])!=null;i++){typeof j=="number"&&(j+="");if(!j)continue;if(typeof j=="string")if(!ba.test(j))j=b.createTextNode(j);else{j=j.replace(Z,"<$1>");var k=($.exec(j)||["",""])[1].toLowerCase(),l=be[k]||be._default,m=l[0],n=b.createElement("div");n.innerHTML=l[1]+j+l[2];while(m--)n=n.lastChild;if(!f.support.tbody){var o=_.test(j),p=k==="table"&&!o?n.firstChild&&n.firstChild.childNodes:l[1]===""&&!o?n.childNodes:[];for(var q=p.length-1;q>=0;--q)f.nodeName(p[q],"tbody")&&!p[q].childNodes.length&&p[q].parentNode.removeChild(p[q])}!f.support.leadingWhitespace&&Y.test(j)&&n.insertBefore(b.createTextNode(Y.exec(j)[0]),n.firstChild),j=n.childNodes}var r;if(!f.support.appendChecked)if(j[0]&&typeof (r=j.length)=="number")for(i=0;i=0)return b+"px"}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bn.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle;c.zoom=1;var e=f.isNaN(b)?"":"alpha(opacity="+b*100+")",g=d&&d.filter||c.filter||"";c.filter=bm.test(g)?g.replace(bm,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){var c;f.swap(a,{display:"inline-block"},function(){b?c=bx(a,"margin-right","marginRight"):c=a.style.marginRight});return c}})}),c.defaultView&&c.defaultView.getComputedStyle&&(by=function(a,c){var d,e,g;c=c.replace(bp,"-$1").toLowerCase();if(!(e=a.ownerDocument.defaultView))return b;if(g=e.getComputedStyle(a,null))d=g.getPropertyValue(c),d===""&&!f.contains(a.ownerDocument.documentElement,a)&&(d=f.style(a,c));return d}),c.documentElement.currentStyle&&(bz=function(a,b){var c,d=a.currentStyle&&a.currentStyle[b],e=a.runtimeStyle&&a.runtimeStyle[b],f=a.style;!bq.test(d)&&br.test(d)&&(c=f.left,e&&(a.runtimeStyle.left=a.currentStyle.left),f.left=b==="fontSize"?"1em":d||0,d=f.pixelLeft+"px",f.left=c,e&&(a.runtimeStyle.left=e));return d===""?"auto":d}),bx=by||bz,f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)});var bC=/%20/g,bD=/\[\]$/,bE=/\r?\n/g,bF=/#.*$/,bG=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bH=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bI=/^(?:about|app|app\-storage|.+\-extension|file|widget):$/,bJ=/^(?:GET|HEAD)$/,bK=/^\/\//,bL=/\?/,bM=/)<[^<]*)*<\/script>/gi,bN=/^(?:select|textarea)/i,bO=/\s+/,bP=/([?&])_=[^&]*/,bQ=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bR=f.fn.load,bS={},bT={},bU,bV;try{bU=e.href}catch(bW){bU=c.createElement("a"),bU.href="",bU=bU.href}bV=bQ.exec(bU.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bR)return bR.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("
").append(c.replace(bM,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bN.test(this.nodeName)||bH.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bE,"\r\n")}}):{name:b.name,value:c.replace(bE,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.bind(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?f.extend(!0,a,f.ajaxSettings,b):(b=a,a=f.extend(!0,f.ajaxSettings,b));for(var c in{context:1,url:1})c in b?a[c]=b[c]:c in f.ajaxSettings&&(a[c]=f.ajaxSettings[c]);return a},ajaxSettings:{url:bU,isLocal:bI.test(bV[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":"*/*"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML}},ajaxPrefilter:bX(bS),ajaxTransport:bX(bT),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a?4:0;var o,r,u,w=l?b$(d,v,l):b,x,y;if(a>=200&&a<300||a===304){if(d.ifModified){if(x=v.getResponseHeader("Last-Modified"))f.lastModified[k]=x;if(y=v.getResponseHeader("Etag"))f.etag[k]=y}if(a===304)c="notmodified",o=!0;else try{r=b_(d,w),c="success",o=!0}catch(z){c="parsererror",u=z}}else{u=c;if(!c||a)c="error",a<0&&(a=0)}v.status=a,v.statusText=c,o?h.resolveWith(e,[r,c,v]):h.rejectWith(e,[v,c,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.resolveWith(e,[v,c]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f._Deferred(),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bG.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.done,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bF,"").replace(bK,bV[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bO),d.crossDomain==null&&(r=bQ.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bV[1]&&r[2]==bV[2]&&(r[3]||(r[1]==="http:"?80:443))==(bV[3]||(bV[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bY(bS,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bJ.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bL.test(d.url)?"&":"?")+d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bP,"$1_="+x);d.url=y+(y===d.url?(bL.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", */*; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bY(bT,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){status<2?w(-1,z):f.error(z)}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)bZ(g,a[g],c,e);return d.join("&").replace(bC,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var ca=f.now(),cb=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+ca++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=b.contentType==="application/x-www-form-urlencoded"&&typeof b.data=="string";if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(cb.test(b.url)||e&&cb.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(cb,l),b.url===j&&(e&&(k=k.replace(cb,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var cc=a.ActiveXObject?function(){for(var a in ce)ce[a](0,1)}:!1,cd=0,ce;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&cf()||cg()}:cf,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,cc&&delete ce[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n),m.text=h.responseText;try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cd,cc&&(ce||(ce={},f(a).unload(cc)),ce[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var ch={},ci,cj,ck=/^(?:toggle|show|hide)$/,cl=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,cm,cn=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],co,cp=a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(cs("show",3),a,b,c);for(var g=0,h=this.length;g=e.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),e.animatedProperties[this.prop]=!0;for(g in e.animatedProperties)e.animatedProperties[g]!==!0&&(c=!1);if(c){e.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){d.style["overflow"+b]=e.overflow[a]}),e.hide&&f(d).hide();if(e.hide||e.show)for(var i in e.animatedProperties)f.style(d,i,e.orig[i]);e.complete.call(d)}return!1}e.duration==Infinity?this.now=b:(h=b-this.startTime,this.state=h/e.duration,this.pos=f.easing[e.animatedProperties[this.prop]](this.state,h,0,1,e.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a=f.timers,b=a.length;while(b--)a[b]()||a.splice(b,1);a.length||f.fx.stop()},interval:13,stop:function(){clearInterval(cm),cm=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){f.style(a.elem,"opacity",a.now)},_default:function(a){a.elem.style&&a.elem.style[a.prop]!=null?a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit:a.elem[a.prop]=a.now}}}),f.expr&&f.expr.filters&&(f.expr.filters.animated=function(a){return f.grep(f.timers,function(b){return a===b.elem}).length});var cu=/^t(?:able|d|h)$/i,cv=/^(?:body|html)$/i;"getBoundingClientRect"in c.documentElement?f.fn.offset=function(a){var b=this[0],c;if(a)return this.each(function(b){f.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return f.offset.bodyOffset(b);try{c=b.getBoundingClientRect()}catch(d){}var e=b.ownerDocument,g=e.documentElement;if(!c||!f.contains(g,b))return c?{top:c.top,left:c.left}:{top:0,left:0};var h=e.body,i=cw(e),j=g.clientTop||h.clientTop||0,k=g.clientLeft||h.clientLeft||0,l=i.pageYOffset||f.support.boxModel&&g.scrollTop||h.scrollTop,m=i.pageXOffset||f.support.boxModel&&g.scrollLeft||h.scrollLeft,n=c.top+l-j,o=c.left+m-k;return{top:n,left:o}}:f.fn.offset=function(a){var b=this[0];if(a)return this.each(function(b){f.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return f.offset.bodyOffset(b);f.offset.initialize();var c,d=b.offsetParent,e=b,g=b.ownerDocument,h=g.documentElement,i=g.body,j=g.defaultView,k=j?j.getComputedStyle(b,null):b.currentStyle,l=b.offsetTop,m=b.offsetLeft;while((b=b.parentNode)&&b!==i&&b!==h){if(f.offset.supportsFixedPosition&&k.position==="fixed")break;c=j?j.getComputedStyle(b,null):b.currentStyle,l-=b.scrollTop,m-=b.scrollLeft,b===d&&(l+=b.offsetTop,m+=b.offsetLeft,f.offset.doesNotAddBorder&&(!f.offset.doesAddBorderForTableAndCells||!cu.test(b.nodeName))&&(l+=parseFloat(c.borderTopWidth)||0,m+=parseFloat(c.borderLeftWidth)||0),e=d,d=b.offsetParent),f.offset.subtractsBorderForOverflowNotVisible&&c.overflow!=="visible"&&(l+=parseFloat(c.borderTopWidth)||0,m+=parseFloat(c.borderLeftWidth)||0),k=c}if(k.position==="relative"||k.position==="static")l+=i.offsetTop,m+=i.offsetLeft;f.offset.supportsFixedPosition&&k.position==="fixed"&&(l+=Math.max(h.scrollTop,i.scrollTop),m+=Math.max(h.scrollLeft,i.scrollLeft));return{top:l,left:m}},f.offset={initialize:function(){var a=c.body,b=c.createElement("div"),d,e,g,h,i=parseFloat(f.css(a,"marginTop"))||0,j="
";f.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"}),b.innerHTML=j,a.insertBefore(b,a.firstChild),d=b.firstChild,e=d.firstChild,h=d.nextSibling.firstChild.firstChild,this.doesNotAddBorder=e.offsetTop!==5,this.doesAddBorderForTableAndCells=h.offsetTop===5,e.style.position="fixed",e.style.top="20px",this.supportsFixedPosition=e.offsetTop===20||e.offsetTop===15,e.style.position=e.style.top="",d.style.overflow="hidden",d.style.position="relative",this.subtractsBorderForOverflowNotVisible=e.offsetTop===-5,this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==i,a.removeChild(b),f.offset.initialize=f.noop},bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;f.offset.initialize(),f.offset.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(f.css(a,"marginTop"))||0,c+=parseFloat(f.css(a,"marginLeft"))||0);return{top:b,left:c}},setOffset:function(a,b,c){var d=f.css(a,"position");d==="static"&&(a.style.position="relative");var e=f(a),g=e.offset(),h=f.css(a,"top"),i=f.css(a,"left"),j=(d==="absolute"||d==="fixed")&&f.inArray("auto",[h,i])>-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cv.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cv.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each(["Left","Top"],function(a,c){var d="scroll"+c;f.fn[d]=function(c){var e,g;if(c===b){e=this[0];if(!e)return null;g=cw(e);return g?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:f.support.boxModel&&g.document.documentElement[d]||g.document.body[d]:e[d]}return this.each(function(){g=cw(this),g?g.scrollTo(a?f(g).scrollLeft():c,a?c:f(g).scrollTop()):this[d]=c})}}),f.each(["Height","Width"],function(a,c){var d=c.toLowerCase();f.fn["inner"+c]=function(){return this[0]?parseFloat(f.css(this[0],d,"padding")):null},f.fn["outer"+c]=function(a){return this[0]?parseFloat(f.css(this[0],d,a?"margin":"border")):null},f.fn[d]=function(a){var e=this[0];if(!e)return a==null?null:this;if(f.isFunction(a))return this.each(function(b){var c=f(this);c[d](a.call(this,b,c[d]()))});if(f.isWindow(e)){var g=e.document.documentElement["client"+c];return e.document.compatMode==="CSS1Compat"&&g||e.document.body["client"+c]||g}if(e.nodeType===9)return Math.max(e.documentElement["client"+c],e.body["scroll"+c],e.documentElement["scroll"+c],e.body["offset"+c],e.documentElement["offset"+c]);if(a===b){var h=f.css(e,d),i=parseFloat(h);return f.isNaN(i)?h:i}return this.css(d,typeof a=="string"?a:a+"px")}}),a.jQuery=a.$=f})(window); \ No newline at end of file diff --git a/97suifangqa/apps/indicator/static/javascripts/load_card.js b/97suifangqa/apps/indicator/static/javascripts/load_card.js new file mode 100644 index 0000000..bea4f29 --- /dev/null +++ b/97suifangqa/apps/indicator/static/javascripts/load_card.js @@ -0,0 +1,300 @@ +var detail_chart; +$(document).ready(function(){ + var startDate = '2013-07-13'; + startDate = new Date(startDate.replace(/-/g,"/")); + var start_date_UTC_time = startDate.getTime() - startDate.getTimezoneOffset() * 60 * 1000; + var chart3 = new Highcharts.Chart({ + chart: { + renderTo: 'chart_3', + type: 'area', + marginLeft: 15, + height: 223, + spacingTop: 10, + spacingBottom: 0, + overflow: false, + zIndex: 5 + }, + credits: { + enabled: false + }, + title: { + text: ' ' + }, + colors: ['#31B6AD'], + xAxis: { + type: 'datetime', + dateTimeLabelFormats: { + day: '%e/%m' + }, + lineColor: '#CECECE', + gridLineColor: '#EFECEF', + gridLineWidth: 1, + tickWidth: 0, + labels:{ + step: 2, + maxStaggerLines: 1 + }, + tickInterval: (4 * 24 * 3600 * 1000), + tickColor: '#FFFFFF' + }, + yAxis: { + title: { + text: '' + }, + allowDecimals: false, + endOnTick: false, + tickInterval: 1, + lineColor: '#CECECE', + lineWidth: 2, + gridLineColor: '#EFECEF', + gridLineWidth: 1, + minPadding: 0.3, + maxPadding: 1.2 + }, + legend: { + enabled: false + }, + tooltip: { + formatter: function() { + return '' + Highcharts.dateFormat('%b %e', this.x) + '' +'
' + '' + this.y + 'mmol/L' + '' + '
' + 'click for more info'; + }, +// positioner: function (boxWidth, boxHeight, point) { +// return { x: point.plotX+80, y: point.plotY-20 }; +// }, + style: { + padding: '7px' + }, + borderColor: '#EAEAEA' + }, + plotOptions: { + series: { + marker: { + enabled: true, //false false的时候就不会突出显示点 + lineColor: '#31B6AD', + lineWidth: 1, + radius: 3, // 点的大小 + fillColor: '#FFFFFF' // 设置点中间填充的颜色 + }, + fillOpacity: 0.12, + lineWidth: 1, + threshold: null, + shadow: false + } + }, + series: [{ + data: [6.0, 5.9, 5.5, 4.5, 6.2, 6.5, 5.2, 6.0, 5.9, 5.5, 4.5, 6.2, 6.5, 5.2, 6.0, 5.9, 5.5, 4.5, 6.2, 6.5], + pointStart: start_date_UTC_time, + pointInterval:1 * 24 * 3600 * 1000 + }] + }); + + detail_chart = new Highcharts.Chart({ + chart: { + renderTo: 'detail_chart', + type: 'area', + marginLeft: 25, + width: 562, + height: 303, + spacingTop: 10, + spacingBottom: 0, + overflow: false, + zIndex: 5 + }, + credits: { + enabled: false + }, + title: { + text: ' ' + }, + colors: ['#31B6AD'], + xAxis: { + type: 'datetime', + dateTimeLabelFormats: { + day: '%e/%m' + }, + lineColor: '#CECECE', + gridLineColor: '#EFECEF', + gridLineWidth: 1, + tickWidth: 0, + labels:{ + step: 2 + }, + tickInterval: (2 * 24 * 3600 * 1000), + tickColor: '#FFFFFF' + }, + yAxis: { + title: { + text: '' + }, + allowDecimals: true, + endOnTick: false, + tickInterval: 0.5, + lineColor: '#CECECE', + lineWidth: 2, + gridLineColor: '#EFECEF', + gridLineWidth: 1, + minPadding: 0.3, + maxPadding: 1.2, + labels: { + formatter: function() { + var originYValue = this.value+''; + if (originYValue.length == 1){ + originYValue += '.0'; + } + return originYValue; + } + } + }, + legend: { + enabled: false + }, + tooltip: { + formatter: function() { + return '' + Highcharts.dateFormat('%b %e', this.x) + '' +'
' + '' + this.y + 'mmol/L' + '' + '
' + 'click for more info'; + }, +// positioner: function (boxWidth, boxHeight, point) { +// return { x: point.plotX+80, y: point.plotY-20 }; +// }, + style: { + padding: '7px' + }, + borderColor: '#EAEAEA' + }, + plotOptions: { + series: { + marker: { + enabled: true, //false false的时候就不会突出显示点 + lineColor: '#31B6AD', + lineWidth: 1, + radius: 3, // 点的大小 + fillColor: '#FFFFFF', // 设置点中间填充的颜色 + symbol: 'circle' + }, + fillOpacity: 0.12, + lineWidth: 1, + threshold: null, + shadow: false, + point: { + events: { + click: function() { + alert(this.x); + alert(this.y); + TB_show(false, '../pages/popup/EditHistoryData.html?TB_iframe=true&no1_title&transfer_params&height=351&width=630&card_id=3', false); + } + } + } + } + }, + series: [] + }); + + //详细历史记录 + $(".detail_history").bind("click", function(){ + card_detail_id = $(this).closest(".index_card").attr("id").replace('index_card_', ''); + var startDateLog = '2013-08-04'; + var endDateLog = '2013-08-10'; + var date = new Date(); + var time = date.getTime(); + redraw_chart(detail_chart, startDateLog, endDateLog); + $(".act_card_container").addClass("move_div_2_left"); + return false; + }); + + //切换日期 + $(".shift_week").bind("click", function(){ + $(".shift_week").addClass("unselected"); + $(this).removeClass("unselected"); + var startDateLog = $(this).attr("start_date"); + var endDateLog = $(this).attr("end_date"); + redraw_chart(detail_chart, startDateLog, endDateLog); + return false; + }); + + //根据日期搜索 + $("#search_start_date, #search_end_date").bind("change", function(){ + var startDateLog = $("#search_start_date").val(); + var endDateLog = $("#search_end_date").val(); + redraw_chart(detail_chart, startDateLog, endDateLog); + return false; + }); + + //浏览更多 + $(".see_more_btn").bind("click", function(){ + var btn = $(".see_more_btn"); + var end = "2013-08-10"; + get_card_data_table(null, end, false); + return false; + }); + + //收起历史记录 + $(".collapse_btn").bind("click", function(){ + //删除图表数据 + var serieses = detail_chart.series; + for (series_key in serieses){ + serieses[series_key].remove(); + } + //删除表格数据 + $("tr").not(".first_line").remove(); + //隐藏div + $(".detail_card_info").hide(); + //初始化详细卡片id + card_detail_id = 0; + //添加删除div位置初始化 + $(".act_card_container").removeClass("move_div_2_left"); + return false; + }); +}); + +//重画历史记录图表 +function redraw_chart(detail_chart, start, end){ + var date = new Date(); + var time = date.getTime(); + $.ajax({ + type: 'get', + url: '../ajax/getCardDataChart', + data: 'card_detail_id='+card_detail_id+'&start='+start+'&end='+end+'&time='+time, + dataType: 'json', + success: function(dataJson){ //每一天都要有数据,否则x轴刻度时间对不上 + var startDateLogFormat = new Date(start.replace(/-/g,"/")); + var start_date_log_UTC_time = startDateLogFormat.getTime() - startDateLogFormat.getTimezoneOffset() * 60 * 1000; + var pointStart = start_date_log_UTC_time; + var pointInterval = 1 * 24 * 3600 * 1000; + + //设置默认起始结束时间 + $("#search_start_date").datepicker( "setDate", start); + $("#search_end_date").datepicker( "setDate", end); + + //删除chart已有数据 + var serieses = detail_chart.series; + for (series_key in serieses){ + serieses[series_key].remove(); + } + //更新chart数据 + detail_chart.addSeries({ + data: dataJson, + pointStart: start_date_log_UTC_time, + pointInterval: pointInterval + }); + //更新table数据 + get_card_data_table(start, end, true); + //显示 + $(".detail_card_info").show(); + } + }); +} + +function get_card_data_table(start, end, redraw){ + var date = new Date(); + var time = date.getTime(); + $.ajax({ + type: 'get', + url: '../ajax/getCardDataTable', + data: 'card_detail_id='+card_detail_id+'&start='+start+'&end='+end+'&time='+time, + success: function(data){ + if(redraw){ + $("tr").not(".first_line").remove(); + } + $("table").append(data); + } + }); +} \ No newline at end of file diff --git a/97suifangqa/apps/indicator/static/javascripts/new_delete_index.js b/97suifangqa/apps/indicator/static/javascripts/new_delete_index.js new file mode 100644 index 0000000..f3fc5de --- /dev/null +++ b/97suifangqa/apps/indicator/static/javascripts/new_delete_index.js @@ -0,0 +1,79 @@ +$(document).ready(function(){ + $("#search_btn").bind("click", function(){ + var kw = $("#search_kw").val(); + window.location.href = '?kw='+kw; + return false; + }); + $(".left>.index_line, .index_letter_container>.index_lines>.index_line").each(function(){ + classHover($(this), "add"); + }); + $(".right>.index_line").each(function(){ + classHover($(this), "minus"); + }); + $(".add>.icon").live("click", function(){ + var add_icon = $(this); + var index_id = add_icon.closest(".index_line").attr("index_id"); + var date = new Date(); + var time = date.getTime(); + $.ajax({ + type: 'get', + url: '../ajax/act_index', + data: 'index_id='+index_id+'&act=add'+'&time='+time, + success: function(data){ + if(data == 'success'){ + var obj = add_icon.parent(); + var objClone = obj.clone(); + objClone.removeClass("add") + objClone.children(".index_category").remove(); + $(".right").append(objClone); + classHover(objClone, "minus"); + } + } + }); + + return false; + }); + $(".minus>.icon").live("click", function(){ + var minus_icon = $(this); + var index_id = minus_icon.closest(".index_line").attr("index_id"); + var date = new Date(); + var time = date.getTime(); + $.ajax({ + type: 'get', + url: '../ajax/act_index', + data: 'index_id='+index_id+'&act=minus'+'&time='+time, + success: function(data){ + var obj = minus_icon.parent(); + obj.remove(); + } + }); + + return false; + }); + $(".all_condition>.index_all_letter>div").bind("click", function(){ + $(".index_letter_container>.index_lines").hide(); + var letterClass = $(this).text(); + $("."+letterClass).show(); + $("."+letterClass).nextAll().show(); + return false; + }); + $("#submitIndexBtn").bind("click", function(){ + var commit_index = ''; + $(".right>.index_line").each(function(){ + commit_index += $(this).attr("index_id")+','; + }); + $("#commit_index").val(commit_index); + $("#index_form").submit(); + return false; + }); +}); +function classHover(obj, c){ + obj.hover( + function(){ + $(this).addClass(c); + }, + function(){ + $(this).removeClass(c); + } + ); +} \ No newline at end of file diff --git a/97suifangqa/apps/indicator/static/javascripts/sheetdefault.js b/97suifangqa/apps/indicator/static/javascripts/sheetdefault.js new file mode 100644 index 0000000..51bd8fa --- /dev/null +++ b/97suifangqa/apps/indicator/static/javascripts/sheetdefault.js @@ -0,0 +1,181 @@ +var card_2_delete_id; +var card_detail_id; +$(document).ready(function(){ + //不允许input框复制,减少验证粘帖的交互 + $("input[type='text']").bind("paste", function(){ + return false; + }); + + //副标题点大叉 + $("#index_title_closed_icon").bind("click", function(){ + var clostBtn = $(this); + var date = new Date(); + var time = date.getTime(); + $.ajax({ //数据库还是cookie,都可以,建议使用cookie,html中是否显示sub_title也由后端读取的cookie决定 + type: 'get', + url: '../ajax/close_sub_title', + data: 'time='+time, + success: function(data){ + if(data == 'success'){ + clostBtn.parent().remove(); + } + } + }); + + return false; + }); + + //卡片大叉删除交互 + $(".card_delete_icon").hover( + function(){ + $(this).removeClass("card_delete"); + $(this).addClass("card_delete_hover"); + }, + function(){ + $(this).removeClass("card_delete_hover"); + $(this).addClass("card_delete"); + } + ); + $(".card_delete_icon").bind("click", function(){ + card_2_delete_id = $(this).parent().attr("id").replace('index_card_', ''); + }); + + //点击编辑icon + $(".small_edit_icon").bind("click", function(){ + var this_edit_data_div = $(this).parent(); + var this_select_date_div = this_edit_data_div.siblings(".select_date"); + var this_refresh_data_div = this_edit_data_div.siblings(".refresh_data"); + var this_last_edit_data_div = $(this).siblings(".last_edit_data"); + var this_editing_data_div = this_edit_data_div.siblings(".editing_data"); + var input_container = this_editing_data_div.children(".input_container"); + var data_fir = this_last_edit_data_div.children(".data_fir").text(); + var data_sec = this_last_edit_data_div.children(".data_sec").text(); + input_container.children(".edit_input_main").val(parseInt(data_fir)); + input_container.children(".edit_input_sub").val(parseInt(data_sec)); + this_editing_data_div.show(); + this_select_date_div.show(); + this_edit_data_div.hide(); + this_refresh_data_div.hide(); + return false; + }); + //点击指数+1 icon + $(".add_icon").bind("click", function(){ + var this_edit_input_sub = $(this).closest(".editing_data").children(".input_container").children(".edit_input_sub"); + var origin_value = parseInt(this_edit_input_sub.val()); + this_edit_input_sub.val(origin_value+1); + return false; + }); + //点击 指数-1 icon + $(".minus_icon").bind("click", function(){ + var this_edit_input_sub = $(this).closest(".editing_data").children(".input_container").children(".edit_input_sub"); + var origin_value = parseInt(this_edit_input_sub.val()); + var after_value = origin_value-1; + if(after_value >= 0){ + this_edit_input_sub.val(origin_value-1); + } + return false; + }); + //编辑数据的底数验证:只允许两位小数,非空 + $(".edit_input_main").bind("keyup", function(){ + var val = $(this).val(); + val = val.replace(/[^\d.]/g,"");//清除"数字"和"."以外的字符 + val = val.replace(/^\./g,"");//验证第一个字符是数字而不是.. + val = val.replace(/\.{2,}/g,".");//只保留第一个. 清除多余的 + val = val.replace(".","$#$").replace(/\./g,"").replace("$#$","."); + val = val.replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3'); + $(this).val(val); + return false; + }); + //编辑数据的指数验证:只允许整数 + $(".edit_input_sub").bind("keyup", function(){ + $(this).val($(this).val().replace(/[^\d]/g, '')); + return false; + }); + //点击取消icon + $(".cancel_edit_icon").bind("click", function(){ + var input_container = $(this).siblings(".input_container"); + input_container.children(".edit_input_main").val(''); + input_container.children(".edit_input_sub").val(''); + var this_editing_data_div = $(this).parent(); + this_editing_data_div.siblings(".edit_data").show(); + this_editing_data_div.siblings(".refresh_data").show(); + this_editing_data_div.hide(); + this_editing_data_div.siblings(".select_date").hide(); + return false; + }); + //点击提交icon + $(".confirm_edit_icon").bind("click", function(){ + var input_container = $(this).siblings(".input_container"); + var data_input_fir = input_container.children(".edit_input_main"); + var data_input_sec = input_container.children(".edit_input_sub"); + var data_input_fir_val = data_input_fir.val(); + var data_input_sec_val = data_input_sec.val(); + if(data_input_fir_val == '' || data_input_fir_val == 0){ + data_input_fir.addClass("error"); + }else{ + data_input_fir.removeClass("error"); + } + if(data_input_sec_val == ''){ + data_input_sec.addClass("error"); + }else{ + data_input_sec.removeClass("error"); + } + if($(".error").length > 0){ + return false; + } + + //TODO ajax + data_input_fir.val(''); + data_input_sec.val(''); + var this_editing_data_div = $(this).parent(); + var this_select_date_div = this_editing_data_div.siblings(".select_date"); + var this_refresh_data_div = this_editing_data_div.siblings(".refresh_data"); + var this_edit_data_div = this_editing_data_div.siblings(".edit_data"); + var this_last_edit_div = this_edit_data_div.children(".last_edit_data"); + this_last_edit_div.show(); + this_last_edit_div.children(".data_fir").html(data_input_fir_val); + this_last_edit_div.children(".data_sec").html(data_input_sec_val); + this_editing_data_div.hide(); + this_select_date_div.hide(); + this_edit_data_div.show(); + this_refresh_data_div.show(); + + return false; + }); + + //日期控件 + $(".select_date>.datepicker").datepicker({ + showOn: "both", + buttonImage: "../plugins/datepicker/images/calendar.png", + buttonImageOnly: true + }); + + //时间范围控制(开始时间<结束时间) + $("#search_start_date").datepicker({ + showOn: "both", + buttonImage: "../plugins/datepicker/images/calendar.png", + buttonImageOnly: true, + onClose: function( selectedDate ) { + $("#search_end_date").datepicker("option", "minDate", selectedDate); + } + }); + $("#search_end_date").datepicker({ + onClose: function( selectedDate ) { + $("#search_start_date").datepicker("option", "maxDate", selectedDate); + } + }); +}); + +function delete_card(){ + var card = $("#index_card_"+card_2_delete_id); + card.nextAll().each(function(){ + if($(this).hasClass("index_card_fir")){ + $(this).removeClass("index_card_fir"); + $(this).addClass("index_card_sec"); + }else if($(this).hasClass("index_card_sec")){ + $(this).removeClass("index_card_sec"); + $(this).addClass("index_card_fir"); + } + }); + card.remove(); +} \ No newline at end of file diff --git a/97suifangqa/apps/indicator/static/javascripts/sidebar.js b/97suifangqa/apps/indicator/static/javascripts/sidebar.js new file mode 100644 index 0000000..9dd1daf --- /dev/null +++ b/97suifangqa/apps/indicator/static/javascripts/sidebar.js @@ -0,0 +1,11 @@ +$(document).ready(function(){ + ////伸缩式导航,兼容ff、ie + $("#nav_container").hover( + function(){ + $(".default_nav").animate({left: "194px"}, {queue:false, duration:300}); //�������(20px)+�������(86+1=87px)*2=194px + }, + function(){ + $(".default_nav").animate({left: "20px"}, {queue:false, duration:300}); //������� + } + ); +}); \ No newline at end of file diff --git a/97suifangqa/apps/indicator/static/plugins/datepicker/datepicker.css b/97suifangqa/apps/indicator/static/plugins/datepicker/datepicker.css new file mode 100644 index 0000000..5732386 --- /dev/null +++ b/97suifangqa/apps/indicator/static/plugins/datepicker/datepicker.css @@ -0,0 +1,383 @@ +/* + * jQuery UI CSS Framework 1.8.18 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Theming/API + */ + +/* Layout helpers +----------------------------------*/ +.ui-helper-hidden { display: none; } +.ui-helper-hidden-accessible { position: absolute !important; clip: rect(1px 1px 1px 1px); clip: rect(1px,1px,1px,1px); } +.ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; } +.ui-helper-clearfix:before, .ui-helper-clearfix:after { content: ""; display: table; } +.ui-helper-clearfix:after { clear: both; } +.ui-helper-clearfix { zoom: 1; } +.ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); } + + +/* Interaction Cues +----------------------------------*/ +.ui-state-disabled { cursor: default !important; } + + +/* Icons +----------------------------------*/ + +/* states and images */ +.ui-icon { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; } + + +/* Misc visuals +----------------------------------*/ + +/* Overlays */ +.ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } + + +/* + * jQuery UI CSS Framework 1.8.18 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Theming/API + * + * To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Trebuchet%20MS,%20Tahoma,%20Verdana,%20Arial,%20sans-serif&fwDefault=bold&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=f6a828&bgTextureHeader=12_gloss_wave.png&bgImgOpacityHeader=35&borderColorHeader=e78f08&fcHeader=ffffff&iconColorHeader=ffffff&bgColorContent=eeeeee&bgTextureContent=03_highlight_soft.png&bgImgOpacityContent=100&borderColorContent=dddddd&fcContent=333333&iconColorContent=222222&bgColorDefault=f6f6f6&bgTextureDefault=02_glass.png&bgImgOpacityDefault=100&borderColorDefault=cccccc&fcDefault=1c94c4&iconColorDefault=ef8c08&bgColorHover=fdf5ce&bgTextureHover=02_glass.png&bgImgOpacityHover=100&borderColorHover=fbcb09&fcHover=c77405&iconColorHover=ef8c08&bgColorActive=ffffff&bgTextureActive=02_glass.png&bgImgOpacityActive=65&borderColorActive=fbd850&fcActive=eb8f00&iconColorActive=ef8c08&bgColorHighlight=ffe45c&bgTextureHighlight=03_highlight_soft.png&bgImgOpacityHighlight=75&borderColorHighlight=fed22f&fcHighlight=363636&iconColorHighlight=228ef1&bgColorError=b81900&bgTextureError=08_diagonals_thick.png&bgImgOpacityError=18&borderColorError=cd0a0a&fcError=ffffff&iconColorError=ffd27a&bgColorOverlay=666666&bgTextureOverlay=08_diagonals_thick.png&bgImgOpacityOverlay=20&opacityOverlay=50&bgColorShadow=000000&bgTextureShadow=01_flat.png&bgImgOpacityShadow=10&opacityShadow=20&thicknessShadow=5px&offsetTopShadow=-5px&offsetLeftShadow=-5px&cornerRadiusShadow=5px + */ + + +/* Component containers +----------------------------------*/ +.ui-widget { font-family: Trebuchet MS, Tahoma, Verdana, Arial, sans-serif; font-size: 1.1em; } +.ui-widget .ui-widget { font-size: 1em; } +.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: Trebuchet MS, Tahoma, Verdana, Arial, sans-serif; font-size: 1em; } +.ui-widget-content { border: 1px solid #dddddd; background: #eeeeee url(images/ui-bg_highlight-soft_100_eeeeee_1x100.png) 50% top repeat-x; color: #333333; } +.ui-widget-content a { color: #333333; } +.ui-widget-header { border: 1px solid #e78f08; background: #f6a828 url(images/ui-bg_gloss-wave_35_f6a828_500x100.png) 50% 50% repeat-x; color: #ffffff; font-weight: bold; } +.ui-widget-header a { color: #ffffff; } + +/* Interaction states +----------------------------------*/ +.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { border: 1px solid #cccccc; background: #f6f6f6 url(images/ui-bg_glass_100_f6f6f6_1x400.png) 50% 50% repeat-x; font-weight: bold; color: #1c94c4; } +.ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #1c94c4; text-decoration: none; } +.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus { border: 1px solid #fbcb09; background: #fdf5ce url(images/ui-bg_glass_100_fdf5ce_1x400.png) 50% 50% repeat-x; font-weight: bold; color: #c77405; } +.ui-state-hover a, .ui-state-hover a:hover { color: #c77405; text-decoration: none; } +.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active { border: 1px solid #fbd850; background: #ffffff url(images/ui-bg_glass_65_ffffff_1x400.png) 50% 50% repeat-x; font-weight: bold; color: #eb8f00; } +.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #eb8f00; text-decoration: none; } +.ui-widget :active { outline: none; } + +/* Interaction Cues +----------------------------------*/ +.ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight {border: 1px solid #fed22f; background: #ffe45c url(images/ui-bg_highlight-soft_75_ffe45c_1x100.png) 50% top repeat-x; color: #363636; } +.ui-state-highlight a, .ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a { color: #363636; } +.ui-state-error, .ui-widget-content .ui-state-error, .ui-widget-header .ui-state-error {border: 1px solid #cd0a0a; background: #b81900 url(images/ui-bg_diagonals-thick_18_b81900_40x40.png) 50% 50% repeat; color: #ffffff; } +.ui-state-error a, .ui-widget-content .ui-state-error a, .ui-widget-header .ui-state-error a { color: #ffffff; } +.ui-state-error-text, .ui-widget-content .ui-state-error-text, .ui-widget-header .ui-state-error-text { color: #ffffff; } +.ui-priority-primary, .ui-widget-content .ui-priority-primary, .ui-widget-header .ui-priority-primary { font-weight: bold; } +.ui-priority-secondary, .ui-widget-content .ui-priority-secondary, .ui-widget-header .ui-priority-secondary { opacity: .7; filter:Alpha(Opacity=70); font-weight: normal; } +.ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled { opacity: .35; filter:Alpha(Opacity=35); background-image: none; } + +/* Icons +----------------------------------*/ + +/* states and images */ +.ui-icon { width: 16px; height: 16px; background-image: url(images/ui-icons_222222_256x240.png); } +.ui-widget-content .ui-icon {background-image: url(images/ui-icons_222222_256x240.png); } +.ui-widget-header .ui-icon {background-image: url(images/ui-icons_ffffff_256x240.png); } +.ui-state-default .ui-icon { background-image: url(images/ui-icons_ef8c08_256x240.png); } +.ui-state-hover .ui-icon, .ui-state-focus .ui-icon {background-image: url(images/ui-icons_ef8c08_256x240.png); } +.ui-state-active .ui-icon {background-image: url(images/ui-icons_ef8c08_256x240.png); } +.ui-state-highlight .ui-icon {background-image: url(images/ui-icons_228ef1_256x240.png); } +.ui-state-error .ui-icon, .ui-state-error-text .ui-icon {background-image: url(images/ui-icons_ffd27a_256x240.png); } + +/* positioning */ +.ui-icon-carat-1-n { background-position: 0 0; } +.ui-icon-carat-1-ne { background-position: -16px 0; } +.ui-icon-carat-1-e { background-position: -32px 0; } +.ui-icon-carat-1-se { background-position: -48px 0; } +.ui-icon-carat-1-s { background-position: -64px 0; } +.ui-icon-carat-1-sw { background-position: -80px 0; } +.ui-icon-carat-1-w { background-position: -96px 0; } +.ui-icon-carat-1-nw { background-position: -112px 0; } +.ui-icon-carat-2-n-s { background-position: -128px 0; } +.ui-icon-carat-2-e-w { background-position: -144px 0; } +.ui-icon-triangle-1-n { background-position: 0 -16px; } +.ui-icon-triangle-1-ne { background-position: -16px -16px; } +.ui-icon-triangle-1-e { background-position: -32px -16px; } +.ui-icon-triangle-1-se { background-position: -48px -16px; } +.ui-icon-triangle-1-s { background-position: -64px -16px; } +.ui-icon-triangle-1-sw { background-position: -80px -16px; } +.ui-icon-triangle-1-w { background-position: -96px -16px; } +.ui-icon-triangle-1-nw { background-position: -112px -16px; } +.ui-icon-triangle-2-n-s { background-position: -128px -16px; } +.ui-icon-triangle-2-e-w { background-position: -144px -16px; } +.ui-icon-arrow-1-n { background-position: 0 -32px; } +.ui-icon-arrow-1-ne { background-position: -16px -32px; } +.ui-icon-arrow-1-e { background-position: -32px -32px; } +.ui-icon-arrow-1-se { background-position: -48px -32px; } +.ui-icon-arrow-1-s { background-position: -64px -32px; } +.ui-icon-arrow-1-sw { background-position: -80px -32px; } +.ui-icon-arrow-1-w { background-position: -96px -32px; } +.ui-icon-arrow-1-nw { background-position: -112px -32px; } +.ui-icon-arrow-2-n-s { background-position: -128px -32px; } +.ui-icon-arrow-2-ne-sw { background-position: -144px -32px; } +.ui-icon-arrow-2-e-w { background-position: -160px -32px; } +.ui-icon-arrow-2-se-nw { background-position: -176px -32px; } +.ui-icon-arrowstop-1-n { background-position: -192px -32px; } +.ui-icon-arrowstop-1-e { background-position: -208px -32px; } +.ui-icon-arrowstop-1-s { background-position: -224px -32px; } +.ui-icon-arrowstop-1-w { background-position: -240px -32px; } +.ui-icon-arrowthick-1-n { background-position: 0 -48px; } +.ui-icon-arrowthick-1-ne { background-position: -16px -48px; } +.ui-icon-arrowthick-1-e { background-position: -32px -48px; } +.ui-icon-arrowthick-1-se { background-position: -48px -48px; } +.ui-icon-arrowthick-1-s { background-position: -64px -48px; } +.ui-icon-arrowthick-1-sw { background-position: -80px -48px; } +.ui-icon-arrowthick-1-w { background-position: -96px -48px; } +.ui-icon-arrowthick-1-nw { background-position: -112px -48px; } +.ui-icon-arrowthick-2-n-s { background-position: -128px -48px; } +.ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; } +.ui-icon-arrowthick-2-e-w { background-position: -160px -48px; } +.ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; } +.ui-icon-arrowthickstop-1-n { background-position: -192px -48px; } +.ui-icon-arrowthickstop-1-e { background-position: -208px -48px; } +.ui-icon-arrowthickstop-1-s { background-position: -224px -48px; } +.ui-icon-arrowthickstop-1-w { background-position: -240px -48px; } +.ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; } +.ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; } +.ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; } +.ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; } +.ui-icon-arrowreturn-1-w { background-position: -64px -64px; } +.ui-icon-arrowreturn-1-n { background-position: -80px -64px; } +.ui-icon-arrowreturn-1-e { background-position: -96px -64px; } +.ui-icon-arrowreturn-1-s { background-position: -112px -64px; } +.ui-icon-arrowrefresh-1-w { background-position: -128px -64px; } +.ui-icon-arrowrefresh-1-n { background-position: -144px -64px; } +.ui-icon-arrowrefresh-1-e { background-position: -160px -64px; } +.ui-icon-arrowrefresh-1-s { background-position: -176px -64px; } +.ui-icon-arrow-4 { background-position: 0 -80px; } +.ui-icon-arrow-4-diag { background-position: -16px -80px; } +.ui-icon-extlink { background-position: -32px -80px; } +.ui-icon-newwin { background-position: -48px -80px; } +.ui-icon-refresh { background-position: -64px -80px; } +.ui-icon-shuffle { background-position: -80px -80px; } +.ui-icon-transfer-e-w { background-position: -96px -80px; } +.ui-icon-transferthick-e-w { background-position: -112px -80px; } +.ui-icon-folder-collapsed { background-position: 0 -96px; } +.ui-icon-folder-open { background-position: -16px -96px; } +.ui-icon-document { background-position: -32px -96px; } +.ui-icon-document-b { background-position: -48px -96px; } +.ui-icon-note { background-position: -64px -96px; } +.ui-icon-mail-closed { background-position: -80px -96px; } +.ui-icon-mail-open { background-position: -96px -96px; } +.ui-icon-suitcase { background-position: -112px -96px; } +.ui-icon-comment { background-position: -128px -96px; } +.ui-icon-person { background-position: -144px -96px; } +.ui-icon-print { background-position: -160px -96px; } +.ui-icon-trash { background-position: -176px -96px; } +.ui-icon-locked { background-position: -192px -96px; } +.ui-icon-unlocked { background-position: -208px -96px; } +.ui-icon-bookmark { background-position: -224px -96px; } +.ui-icon-tag { background-position: -240px -96px; } +.ui-icon-home { background-position: 0 -112px; } +.ui-icon-flag { background-position: -16px -112px; } +.ui-icon-calendar { background-position: -32px -112px; } +.ui-icon-cart { background-position: -48px -112px; } +.ui-icon-pencil { background-position: -64px -112px; } +.ui-icon-clock { background-position: -80px -112px; } +.ui-icon-disk { background-position: -96px -112px; } +.ui-icon-calculator { background-position: -112px -112px; } +.ui-icon-zoomin { background-position: -128px -112px; } +.ui-icon-zoomout { background-position: -144px -112px; } +.ui-icon-search { background-position: -160px -112px; } +.ui-icon-wrench { background-position: -176px -112px; } +.ui-icon-gear { background-position: -192px -112px; } +.ui-icon-heart { background-position: -208px -112px; } +.ui-icon-star { background-position: -224px -112px; } +.ui-icon-link { background-position: -240px -112px; } +.ui-icon-cancel { background-position: 0 -128px; } +.ui-icon-plus { background-position: -16px -128px; } +.ui-icon-plusthick { background-position: -32px -128px; } +.ui-icon-minus { background-position: -48px -128px; } +.ui-icon-minusthick { background-position: -64px -128px; } +.ui-icon-close { background-position: -80px -128px; } +.ui-icon-closethick { background-position: -96px -128px; } +.ui-icon-key { background-position: -112px -128px; } +.ui-icon-lightbulb { background-position: -128px -128px; } +.ui-icon-scissors { background-position: -144px -128px; } +.ui-icon-clipboard { background-position: -160px -128px; } +.ui-icon-copy { background-position: -176px -128px; } +.ui-icon-contact { background-position: -192px -128px; } +.ui-icon-image { background-position: -208px -128px; } +.ui-icon-video { background-position: -224px -128px; } +.ui-icon-script { background-position: -240px -128px; } +.ui-icon-alert { background-position: 0 -144px; } +.ui-icon-info { background-position: -16px -144px; } +.ui-icon-notice { background-position: -32px -144px; } +.ui-icon-help { background-position: -48px -144px; } +.ui-icon-check { background-position: -64px -144px; } +.ui-icon-bullet { background-position: -80px -144px; } +.ui-icon-radio-off { background-position: -96px -144px; } +.ui-icon-radio-on { background-position: -112px -144px; } +.ui-icon-pin-w { background-position: -128px -144px; } +.ui-icon-pin-s { background-position: -144px -144px; } +.ui-icon-play { background-position: 0 -160px; } +.ui-icon-pause { background-position: -16px -160px; } +.ui-icon-seek-next { background-position: -32px -160px; } +.ui-icon-seek-prev { background-position: -48px -160px; } +.ui-icon-seek-end { background-position: -64px -160px; } +.ui-icon-seek-start { background-position: -80px -160px; } +/* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */ +.ui-icon-seek-first { background-position: -80px -160px; } +.ui-icon-stop { background-position: -96px -160px; } +.ui-icon-eject { background-position: -112px -160px; } +.ui-icon-volume-off { background-position: -128px -160px; } +.ui-icon-volume-on { background-position: -144px -160px; } +.ui-icon-power { background-position: 0 -176px; } +.ui-icon-signal-diag { background-position: -16px -176px; } +.ui-icon-signal { background-position: -32px -176px; } +.ui-icon-battery-0 { background-position: -48px -176px; } +.ui-icon-battery-1 { background-position: -64px -176px; } +.ui-icon-battery-2 { background-position: -80px -176px; } +.ui-icon-battery-3 { background-position: -96px -176px; } +.ui-icon-circle-plus { background-position: 0 -192px; } +.ui-icon-circle-minus { background-position: -16px -192px; } +.ui-icon-circle-close { background-position: -32px -192px; } +.ui-icon-circle-triangle-e { background-position: -48px -192px; } +.ui-icon-circle-triangle-s { background-position: -64px -192px; } +.ui-icon-circle-triangle-w { background-position: -80px -192px; } +.ui-icon-circle-triangle-n { background-position: -96px -192px; } +.ui-icon-circle-arrow-e { background-position: -112px -192px; } +.ui-icon-circle-arrow-s { background-position: -128px -192px; } +.ui-icon-circle-arrow-w { background-position: -144px -192px; } +.ui-icon-circle-arrow-n { background-position: -160px -192px; } +.ui-icon-circle-zoomin { background-position: -176px -192px; } +.ui-icon-circle-zoomout { background-position: -192px -192px; } +.ui-icon-circle-check { background-position: -208px -192px; } +.ui-icon-circlesmall-plus { background-position: 0 -208px; } +.ui-icon-circlesmall-minus { background-position: -16px -208px; } +.ui-icon-circlesmall-close { background-position: -32px -208px; } +.ui-icon-squaresmall-plus { background-position: -48px -208px; } +.ui-icon-squaresmall-minus { background-position: -64px -208px; } +.ui-icon-squaresmall-close { background-position: -80px -208px; } +.ui-icon-grip-dotted-vertical { background-position: 0 -224px; } +.ui-icon-grip-dotted-horizontal { background-position: -16px -224px; } +.ui-icon-grip-solid-vertical { background-position: -32px -224px; } +.ui-icon-grip-solid-horizontal { background-position: -48px -224px; } +.ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; } +.ui-icon-grip-diagonal-se { background-position: -80px -224px; } + + +/* Misc visuals +----------------------------------*/ + +/* Corner radius */ +.ui-corner-all, .ui-corner-top, .ui-corner-left, .ui-corner-tl { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; -khtml-border-top-left-radius: 4px; border-top-left-radius: 4px; } +.ui-corner-all, .ui-corner-top, .ui-corner-right, .ui-corner-tr { -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; -khtml-border-top-right-radius: 4px; border-top-right-radius: 4px; } +.ui-corner-all, .ui-corner-bottom, .ui-corner-left, .ui-corner-bl { -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; -khtml-border-bottom-left-radius: 4px; border-bottom-left-radius: 4px; } +.ui-corner-all, .ui-corner-bottom, .ui-corner-right, .ui-corner-br { -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; -khtml-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px; } + +/* Overlays */ +.ui-widget-overlay { background: #666666 url(images/ui-bg_diagonals-thick_20_666666_40x40.png) 50% 50% repeat; opacity: .50;filter:Alpha(Opacity=50); } +.ui-widget-shadow { margin: -5px 0 0 -5px; padding: 5px; background: #000000 url(images/ui-bg_flat_10_000000_40x100.png) 50% 50% repeat-x; opacity: .20;filter:Alpha(Opacity=20); -moz-border-radius: 5px; -khtml-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px; }/* + * jQuery UI Resizable 1.8.18 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Resizable#theming + */ +.ui-resizable { position: relative;} +.ui-resizable-handle { position: absolute;font-size: 0.1px;z-index: 99999; display: block; } +.ui-resizable-disabled .ui-resizable-handle, .ui-resizable-autohide .ui-resizable-handle { display: none; } +.ui-resizable-n { cursor: n-resize; height: 7px; width: 100%; top: -5px; left: 0; } +.ui-resizable-s { cursor: s-resize; height: 7px; width: 100%; bottom: -5px; left: 0; } +.ui-resizable-e { cursor: e-resize; width: 7px; right: -5px; top: 0; height: 100%; } +.ui-resizable-w { cursor: w-resize; width: 7px; left: -5px; top: 0; height: 100%; } +.ui-resizable-se { cursor: se-resize; width: 12px; height: 12px; right: 1px; bottom: 1px; } +.ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: -5px; bottom: -5px; } +.ui-resizable-nw { cursor: nw-resize; width: 9px; height: 9px; left: -5px; top: -5px; } +.ui-resizable-ne { cursor: ne-resize; width: 9px; height: 9px; right: -5px; top: -5px;}/* + * jQuery UI Selectable 1.8.18 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Selectable#theming + */ +.ui-selectable-helper { position: absolute; z-index: 100; border:1px dotted black; } +/* + * jQuery UI Datepicker 1.8.18 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Datepicker#theming + */ +.ui-datepicker { width: 17em; padding: .2em .2em 0; display: none; } +.ui-datepicker .ui-datepicker-header { position:relative; padding:.2em 0; } +.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next { position:absolute; top: 2px; width: 1.8em; height: 1.8em; } +.ui-datepicker .ui-datepicker-prev-hover, .ui-datepicker .ui-datepicker-next-hover { top: 1px; } +.ui-datepicker .ui-datepicker-prev { left:2px; } +.ui-datepicker .ui-datepicker-next { right:2px; } +.ui-datepicker .ui-datepicker-prev-hover { left:1px; } +.ui-datepicker .ui-datepicker-next-hover { right:1px; } +.ui-datepicker .ui-datepicker-prev span, .ui-datepicker .ui-datepicker-next span { display: block; position: absolute; left: 50%; margin-left: -8px; top: 50%; margin-top: -8px; } +.ui-datepicker .ui-datepicker-title { margin: 0 2.3em; line-height: 1.8em; text-align: center; } +.ui-datepicker .ui-datepicker-title select { font-size:1em; margin:1px 0; } +.ui-datepicker select.ui-datepicker-month-year {width: 100%;} +.ui-datepicker select.ui-datepicker-month, +.ui-datepicker select.ui-datepicker-year { width: 49%;} +.ui-datepicker table {width: 100%; font-size: .9em; border-collapse: collapse; margin:0 0 .4em; } +.ui-datepicker th { padding: .7em .3em; text-align: center; font-weight: bold; border: 0; } +.ui-datepicker td { border: 0; padding: 1px; } +.ui-datepicker td span, .ui-datepicker td a { display: block; padding: .2em; text-align: right; text-decoration: none; } +.ui-datepicker .ui-datepicker-buttonpane { background-image: none; margin: .7em 0 0 0; padding:0 .2em; border-left: 0; border-right: 0; border-bottom: 0; } +.ui-datepicker .ui-datepicker-buttonpane button { float: right; margin: .5em .2em .4em; cursor: pointer; padding: .2em .6em .3em .6em; width:auto; overflow:visible; } +.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current { float:left; } + +/* with multiple calendars */ +.ui-datepicker.ui-datepicker-multi { width:auto; } +.ui-datepicker-multi .ui-datepicker-group { float:left; } +.ui-datepicker-multi .ui-datepicker-group table { width:95%; margin:0 auto .4em; } +.ui-datepicker-multi-2 .ui-datepicker-group { width:50%; } +.ui-datepicker-multi-3 .ui-datepicker-group { width:33.3%; } +.ui-datepicker-multi-4 .ui-datepicker-group { width:25%; } +.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header { border-left-width:0; } +.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header { border-left-width:0; } +.ui-datepicker-multi .ui-datepicker-buttonpane { clear:left; } +.ui-datepicker-row-break { clear:both; width:100%; font-size:0em; } + +/* RTL support */ +.ui-datepicker-rtl { direction: rtl; } +.ui-datepicker-rtl .ui-datepicker-prev { right: 2px; left: auto; } +.ui-datepicker-rtl .ui-datepicker-next { left: 2px; right: auto; } +.ui-datepicker-rtl .ui-datepicker-prev:hover { right: 1px; left: auto; } +.ui-datepicker-rtl .ui-datepicker-next:hover { left: 1px; right: auto; } +.ui-datepicker-rtl .ui-datepicker-buttonpane { clear:right; } +.ui-datepicker-rtl .ui-datepicker-buttonpane button { float: left; } +.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current { float:right; } +.ui-datepicker-rtl .ui-datepicker-group { float:right; } +.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header { border-right-width:0; border-left-width:1px; } +.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header { border-right-width:0; border-left-width:1px; } + +/* IE6 IFRAME FIX (taken from datepicker 1.5.3 */ +.ui-datepicker-cover { + display: none; /*sorry for IE5*/ + display/**/: block; /*sorry for IE5*/ + position: absolute; /*must have*/ + z-index: -1; /*must have*/ + filter: mask(); /*must have*/ + top: -4px; /*must have*/ + left: -4px; /*must have*/ + width: 200px; /*must have*/ + height: 200px; /*must have*/ +} \ No newline at end of file diff --git a/97suifangqa/apps/indicator/static/plugins/datepicker/datepicker.js b/97suifangqa/apps/indicator/static/plugins/datepicker/datepicker.js new file mode 100644 index 0000000..5c4ed85 --- /dev/null +++ b/97suifangqa/apps/indicator/static/plugins/datepicker/datepicker.js @@ -0,0 +1,5257 @@ +/*! + * jQuery UI 1.8.18 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI + */ +(function(a, b) { + function d(b) { + return ! a(b).parents().andSelf().filter(function() { + return a.curCSS(this, "visibility") === "hidden" || a.expr.filters.hidden(this) + }).length + } + function c(b, c) { + var e = b.nodeName.toLowerCase(); + if ("area" === e) { + var f = b.parentNode, + g = f.name, + h; + if (!b.href || !g || f.nodeName.toLowerCase() !== "map") return ! 1; + h = a("img[usemap=#" + g + "]")[0]; + return !! h && d(h) + } + return (/input|select|textarea|button|object/.test(e) ? !b.disabled: "a" == e ? b.href || c: c) && d(b) + } + a.ui = a.ui || {}; + a.ui.version || (a.extend(a.ui, { + version: "1.8.18", + keyCode: { + ALT: 18, + BACKSPACE: 8, + CAPS_LOCK: 20, + COMMA: 188, + COMMAND: 91, + COMMAND_LEFT: 91, + COMMAND_RIGHT: 93, + CONTROL: 17, + DELETE: 46, + DOWN: 40, + END: 35, + ENTER: 13, + ESCAPE: 27, + HOME: 36, + INSERT: 45, + LEFT: 37, + MENU: 93, + NUMPAD_ADD: 107, + NUMPAD_DECIMAL: 110, + NUMPAD_DIVIDE: 111, + NUMPAD_ENTER: 108, + NUMPAD_MULTIPLY: 106, + NUMPAD_SUBTRACT: 109, + PAGE_DOWN: 34, + PAGE_UP: 33, + PERIOD: 190, + RIGHT: 39, + SHIFT: 16, + SPACE: 32, + TAB: 9, + UP: 38, + WINDOWS: 91 + } + }), a.fn.extend({ + propAttr: a.fn.prop || a.fn.attr, + _focus: a.fn.focus, + focus: function(b, c) { + return typeof b == "number" ? this.each(function() { + var d = this; + setTimeout(function() { + a(d).focus(), + c && c.call(d) + }, + b) + }) : this._focus.apply(this, arguments) + }, + scrollParent: function() { + var b; + a.browser.msie && /(static|relative)/.test(this.css("position")) || /absolute/.test(this.css("position")) ? b = this.parents().filter(function() { + return /(relative|absolute|fixed)/.test(a.curCSS(this, "position", 1)) && /(auto|scroll)/.test(a.curCSS(this, "overflow", 1) + a.curCSS(this, "overflow-y", 1) + a.curCSS(this, "overflow-x", 1)) + }).eq(0) : b = this.parents().filter(function() { + return /(auto|scroll)/.test(a.curCSS(this, "overflow", 1) + a.curCSS(this, "overflow-y", 1) + a.curCSS(this, "overflow-x", 1)) + }).eq(0); + return /fixed/.test(this.css("position")) || !b.length ? a(document) : b + }, + zIndex: function(c) { + if (c !== b) return this.css("zIndex", c); + if (this.length) { + var d = a(this[0]), + e, + f; + while (d.length && d[0] !== document) { + e = d.css("position"); + if (e === "absolute" || e === "relative" || e === "fixed") { + f = parseInt(d.css("zIndex"), 10); + if (!isNaN(f) && f !== 0) return f + } + d = d.parent() + } + } + return 0 + }, + disableSelection: function() { + return this.bind((a.support.selectstart ? "selectstart": "mousedown") + ".ui-disableSelection", + function(a) { + a.preventDefault() + }) + }, + enableSelection: function() { + return this.unbind(".ui-disableSelection") + } + }), a.each(["Width", "Height"], + function(c, d) { + function h(b, c, d, f) { + a.each(e, + function() { + c -= parseFloat(a.curCSS(b, "padding" + this, !0)) || 0, + d && (c -= parseFloat(a.curCSS(b, "border" + this + "Width", !0)) || 0), + f && (c -= parseFloat(a.curCSS(b, "margin" + this, !0)) || 0) + }); + return c + } + var e = d === "Width" ? ["Left", "Right"] : ["Top", "Bottom"], + f = d.toLowerCase(), + g = { + innerWidth: a.fn.innerWidth, + innerHeight: a.fn.innerHeight, + outerWidth: a.fn.outerWidth, + outerHeight: a.fn.outerHeight + }; + a.fn["inner" + d] = function(c) { + if (c === b) return g["inner" + d].call(this); + return this.each(function() { + a(this).css(f, h(this, c) + "px") + }) + }, + a.fn["outer" + d] = function(b, c) { + if (typeof b != "number") return g["outer" + d].call(this, b); + return this.each(function() { + a(this).css(f, h(this, b, !0, c) + "px") + }) + } + }), a.extend(a.expr[":"], { + data: function(b, c, d) { + return !! a.data(b, d[3]) + }, + focusable: function(b) { + return c(b, !isNaN(a.attr(b, "tabindex"))) + }, + tabbable: function(b) { + var d = a.attr(b, "tabindex"), + e = isNaN(d); + return (e || d >= 0) && c(b, !e) + } + }), a(function() { + var b = document.body, + c = b.appendChild(c = document.createElement("div")); + c.offsetHeight, + a.extend(c.style, { + minHeight: "100px", + height: "auto", + padding: 0, + borderWidth: 0 + }), + a.support.minHeight = c.offsetHeight === 100, + a.support.selectstart = "onselectstart" in c, + b.removeChild(c).style.display = "none" + }), a.extend(a.ui, { + plugin: { + add: function(b, c, d) { + var e = a.ui[b].prototype; + for (var f in d) e.plugins[f] = e.plugins[f] || [], + e.plugins[f].push([c, d[f]]) + }, + call: function(a, b, c) { + var d = a.plugins[b]; + if ( !! d && !!a.element[0].parentNode) for (var e = 0; e < d.length; e++) a.options[d[e][0]] && d[e][1].apply(a.element, c) + } + }, + contains: function(a, b) { + return document.compareDocumentPosition ? a.compareDocumentPosition(b) & 16 : a !== b && a.contains(b) + }, + hasScroll: function(b, c) { + if (a(b).css("overflow") === "hidden") return ! 1; + var d = c && c === "left" ? "scrollLeft": "scrollTop", + e = !1; + if (b[d] > 0) return ! 0; + b[d] = 1, + e = b[d] > 0, + b[d] = 0; + return e + }, + isOverAxis: function(a, b, c) { + return a > b && a < b + c + }, + isOver: function(b, c, d, e, f, g) { + return a.ui.isOverAxis(b, d, f) && a.ui.isOverAxis(c, e, g) + } + })) +})(jQuery); +/*! + * jQuery UI Widget 1.8.18 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Widget + */ +(function(a, b) { + if (a.cleanData) { + var c = a.cleanData; + a.cleanData = function(b) { + for (var d = 0, + e; (e = b[d]) != null; d++) try { + a(e).triggerHandler("remove") + } catch(f) {} + c(b) + } + } else { + var d = a.fn.remove; + a.fn.remove = function(b, c) { + return this.each(function() { + c || (!b || a.filter(b, [this]).length) && a("*", this).add([this]).each(function() { + try { + a(this).triggerHandler("remove") + } catch(b) {} + }); + return d.call(a(this), b, c) + }) + } + } + a.widget = function(b, c, d) { + var e = b.split(".")[0], + f; + b = b.split(".")[1], + f = e + "-" + b, + d || (d = c, c = a.Widget), + a.expr[":"][f] = function(c) { + return !! a.data(c, b) + }, + a[e] = a[e] || {}, + a[e][b] = function(a, b) { + arguments.length && this._createWidget(a, b) + }; + var g = new c; + g.options = a.extend(!0, {}, + g.options), + a[e][b].prototype = a.extend(!0, g, { + namespace: e, + widgetName: b, + widgetEventPrefix: a[e][b].prototype.widgetEventPrefix || b, + widgetBaseClass: f + }, + d), + a.widget.bridge(b, a[e][b]) + }, + a.widget.bridge = function(c, d) { + a.fn[c] = function(e) { + var f = typeof e == "string", + g = Array.prototype.slice.call(arguments, 1), + h = this; + e = !f && g.length ? a.extend.apply(null, [!0, e].concat(g)) : e; + if (f && e.charAt(0) === "_") return h; + f ? this.each(function() { + var d = a.data(this, c), + f = d && a.isFunction(d[e]) ? d[e].apply(d, g) : d; + if (f !== d && f !== b) { + h = f; + return ! 1 + } + }) : this.each(function() { + var b = a.data(this, c); + b ? b.option(e || {})._init() : a.data(this, c, new d(e, this)) + }); + return h + } + }, + a.Widget = function(a, b) { + arguments.length && this._createWidget(a, b) + }, + a.Widget.prototype = { + widgetName: "widget", + widgetEventPrefix: "", + options: { + disabled: !1 + }, + _createWidget: function(b, c) { + a.data(c, this.widgetName, this), + this.element = a(c), + this.options = a.extend(!0, {}, + this.options, this._getCreateOptions(), b); + var d = this; + this.element.bind("remove." + this.widgetName, + function() { + d.destroy() + }), + this._create(), + this._trigger("create"), + this._init() + }, + _getCreateOptions: function() { + return a.metadata && a.metadata.get(this.element[0])[this.widgetName] + }, + _create: function() {}, + _init: function() {}, + destroy: function() { + this.element.unbind("." + this.widgetName).removeData(this.widgetName), + this.widget().unbind("." + this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass + "-disabled " + "ui-state-disabled") + }, + widget: function() { + return this.element + }, + option: function(c, d) { + var e = c; + if (arguments.length === 0) return a.extend({}, + this.options); + if (typeof c == "string") { + if (d === b) return this.options[c]; + e = {}, + e[c] = d + } + this._setOptions(e); + return this + }, + _setOptions: function(b) { + var c = this; + a.each(b, + function(a, b) { + c._setOption(a, b) + }); + return this + }, + _setOption: function(a, b) { + this.options[a] = b, + a === "disabled" && this.widget()[b ? "addClass": "removeClass"](this.widgetBaseClass + "-disabled" + " " + "ui-state-disabled").attr("aria-disabled", b); + return this + }, + enable: function() { + return this._setOption("disabled", !1) + }, + disable: function() { + return this._setOption("disabled", !0) + }, + _trigger: function(b, c, d) { + var e, f, g = this.options[b]; + d = d || {}, + c = a.Event(c), + c.type = (b === this.widgetEventPrefix ? b: this.widgetEventPrefix + b).toLowerCase(), + c.target = this.element[0], + f = c.originalEvent; + if (f) for (e in f) e in c || (c[e] = f[e]); + this.element.trigger(c, d); + return ! (a.isFunction(g) && g.call(this.element[0], c, d) === !1 || c.isDefaultPrevented()) + } + } +})(jQuery); +/*! + * jQuery UI Mouse 1.8.18 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Mouse + * + * Depends: + * jquery.ui.widget.js + */ +(function(a, b) { + var c = !1; + a(document).mouseup(function(a) { + c = !1 + }), + a.widget("ui.mouse", { + options: { + cancel: ":input,option", + distance: 1, + delay: 0 + }, + _mouseInit: function() { + var b = this; + this.element.bind("mousedown." + this.widgetName, + function(a) { + return b._mouseDown(a) + }).bind("click." + this.widgetName, + function(c) { + if (!0 === a.data(c.target, b.widgetName + ".preventClickEvent")) { + a.removeData(c.target, b.widgetName + ".preventClickEvent"), + c.stopImmediatePropagation(); + return ! 1 + } + }), + this.started = !1 + }, + _mouseDestroy: function() { + this.element.unbind("." + this.widgetName) + }, + _mouseDown: function(b) { + if (!c) { + this._mouseStarted && this._mouseUp(b), + this._mouseDownEvent = b; + var d = this, + e = b.which == 1, + f = typeof this.options.cancel == "string" && b.target.nodeName ? a(b.target).closest(this.options.cancel).length: !1; + if (!e || f || !this._mouseCapture(b)) return ! 0; + this.mouseDelayMet = !this.options.delay, + this.mouseDelayMet || (this._mouseDelayTimer = setTimeout(function() { + d.mouseDelayMet = !0 + }, + this.options.delay)); + if (this._mouseDistanceMet(b) && this._mouseDelayMet(b)) { + this._mouseStarted = this._mouseStart(b) !== !1; + if (!this._mouseStarted) { + b.preventDefault(); + return ! 0 + } + } ! 0 === a.data(b.target, this.widgetName + ".preventClickEvent") && a.removeData(b.target, this.widgetName + ".preventClickEvent"), + this._mouseMoveDelegate = function(a) { + return d._mouseMove(a) + }, + this._mouseUpDelegate = function(a) { + return d._mouseUp(a) + }, + a(document).bind("mousemove." + this.widgetName, this._mouseMoveDelegate).bind("mouseup." + this.widgetName, this._mouseUpDelegate), + b.preventDefault(), + c = !0; + return ! 0 + } + }, + _mouseMove: function(b) { + if (a.browser.msie && !(document.documentMode >= 9) && !b.button) return this._mouseUp(b); + if (this._mouseStarted) { + this._mouseDrag(b); + return b.preventDefault() + } + this._mouseDistanceMet(b) && this._mouseDelayMet(b) && (this._mouseStarted = this._mouseStart(this._mouseDownEvent, b) !== !1, this._mouseStarted ? this._mouseDrag(b) : this._mouseUp(b)); + return ! this._mouseStarted + }, + _mouseUp: function(b) { + a(document).unbind("mousemove." + this.widgetName, this._mouseMoveDelegate).unbind("mouseup." + this.widgetName, this._mouseUpDelegate), + this._mouseStarted && (this._mouseStarted = !1, b.target == this._mouseDownEvent.target && a.data(b.target, this.widgetName + ".preventClickEvent", !0), this._mouseStop(b)); + return ! 1 + }, + _mouseDistanceMet: function(a) { + return Math.max(Math.abs(this._mouseDownEvent.pageX - a.pageX), Math.abs(this._mouseDownEvent.pageY - a.pageY)) >= this.options.distance + }, + _mouseDelayMet: function(a) { + return this.mouseDelayMet + }, + _mouseStart: function(a) {}, + _mouseDrag: function(a) {}, + _mouseStop: function(a) {}, + _mouseCapture: function(a) { + return ! 0 + } + }) +})(jQuery); +/* + * jQuery UI Position 1.8.18 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Position + */ +(function(a, b) { + a.ui = a.ui || {}; + var c = /left|center|right/, + d = /top|center|bottom/, + e = "center", + f = {}, + g = a.fn.position, + h = a.fn.offset; + a.fn.position = function(b) { + if (!b || !b.of) return g.apply(this, arguments); + b = a.extend({}, + b); + var h = a(b.of), + i = h[0], + j = (b.collision || "flip").split(" "), + k = b.offset ? b.offset.split(" ") : [0, 0], + l, + m, + n; + i.nodeType === 9 ? (l = h.width(), m = h.height(), n = { + top: 0, + left: 0 + }) : i.setTimeout ? (l = h.width(), m = h.height(), n = { + top: h.scrollTop(), + left: h.scrollLeft() + }) : i.preventDefault ? (b.at = "left top", l = m = 0, n = { + top: b.of.pageY, + left: b.of.pageX + }) : (l = h.outerWidth(), m = h.outerHeight(), n = h.offset()), + a.each(["my", "at"], + function() { + var a = (b[this] || "").split(" "); + a.length === 1 && (a = c.test(a[0]) ? a.concat([e]) : d.test(a[0]) ? [e].concat(a) : [e, e]), + a[0] = c.test(a[0]) ? a[0] : e, + a[1] = d.test(a[1]) ? a[1] : e, + b[this] = a + }), + j.length === 1 && (j[1] = j[0]), + k[0] = parseInt(k[0], 10) || 0, + k.length === 1 && (k[1] = k[0]), + k[1] = parseInt(k[1], 10) || 0, + b.at[0] === "right" ? n.left += l: b.at[0] === e && (n.left += l / 2), + b.at[1] === "bottom" ? n.top += m: b.at[1] === e && (n.top += m / 2), + n.left += k[0], + n.top += k[1]; + return this.each(function() { + var c = a(this), + d = c.outerWidth(), + g = c.outerHeight(), + h = parseInt(a.curCSS(this, "marginLeft", !0)) || 0, + i = parseInt(a.curCSS(this, "marginTop", !0)) || 0, + o = d + h + (parseInt(a.curCSS(this, "marginRight", !0)) || 0), + p = g + i + (parseInt(a.curCSS(this, "marginBottom", !0)) || 0), + q = a.extend({}, + n), + r; + b.my[0] === "right" ? q.left -= d: b.my[0] === e && (q.left -= d / 2), + b.my[1] === "bottom" ? q.top -= g: b.my[1] === e && (q.top -= g / 2), + f.fractions || (q.left = Math.round(q.left), q.top = Math.round(q.top)), + r = { + left: q.left - h, + top: q.top - i + }, + a.each(["left", "top"], + function(c, e) { + a.ui.position[j[c]] && a.ui.position[j[c]][e](q, { + targetWidth: l, + targetHeight: m, + elemWidth: d, + elemHeight: g, + collisionPosition: r, + collisionWidth: o, + collisionHeight: p, + offset: k, + my: b.my, + at: b.at + }) + }), + a.fn.bgiframe && c.bgiframe(), + c.offset(a.extend(q, { + using: b.using + })) + }) + }, + a.ui.position = { + fit: { + left: function(b, c) { + var d = a(window), + e = c.collisionPosition.left + c.collisionWidth - d.width() - d.scrollLeft(); + b.left = e > 0 ? b.left - e: Math.max(b.left - c.collisionPosition.left, b.left) + }, + top: function(b, c) { + var d = a(window), + e = c.collisionPosition.top + c.collisionHeight - d.height() - d.scrollTop(); + b.top = e > 0 ? b.top - e: Math.max(b.top - c.collisionPosition.top, b.top) + } + }, + flip: { + left: function(b, c) { + if (c.at[0] !== e) { + var d = a(window), + f = c.collisionPosition.left + c.collisionWidth - d.width() - d.scrollLeft(), + g = c.my[0] === "left" ? -c.elemWidth: c.my[0] === "right" ? c.elemWidth: 0, + h = c.at[0] === "left" ? c.targetWidth: -c.targetWidth, + i = -2 * c.offset[0]; + b.left += c.collisionPosition.left < 0 ? g + h + i: f > 0 ? g + h + i: 0 + } + }, + top: function(b, c) { + if (c.at[1] !== e) { + var d = a(window), + f = c.collisionPosition.top + c.collisionHeight - d.height() - d.scrollTop(), + g = c.my[1] === "top" ? -c.elemHeight: c.my[1] === "bottom" ? c.elemHeight: 0, + h = c.at[1] === "top" ? c.targetHeight: -c.targetHeight, + i = -2 * c.offset[1]; + b.top += c.collisionPosition.top < 0 ? g + h + i: f > 0 ? g + h + i: 0 + } + } + } + }, + a.offset.setOffset || (a.offset.setOffset = function(b, c) { / static / .test(a.curCSS(b, "position")) && (b.style.position = "relative"); + var d = a(b), + e = d.offset(), + f = parseInt(a.curCSS(b, "top", !0), 10) || 0, + g = parseInt(a.curCSS(b, "left", !0), 10) || 0, + h = { + top: c.top - e.top + f, + left: c.left - e.left + g + }; + "using" in c ? c.using.call(b, h) : d.css(h) + }, + a.fn.offset = function(b) { + var c = this[0]; + if (!c || !c.ownerDocument) return null; + if (b) return this.each(function() { + a.offset.setOffset(this, b) + }); + return h.call(this) + }), + function() { + var b = document.getElementsByTagName("body")[0], + c = document.createElement("div"), + d, + e, + g, + h, + i; + d = document.createElement(b ? "div": "body"), + g = { + visibility: "hidden", + width: 0, + height: 0, + border: 0, + margin: 0, + background: "none" + }, + b && a.extend(g, { + position: "absolute", + left: "-1000px", + top: "-1000px" + }); + for (var j in g) d.style[j] = g[j]; + d.appendChild(c), + e = b || document.documentElement, + e.insertBefore(d, e.firstChild), + c.style.cssText = "position: absolute; left: 10.7432222px; top: 10.432325px; height: 30px; width: 201px;", + h = a(c).offset(function(a, b) { + return b + }).offset(), + d.innerHTML = "", + e.removeChild(d), + i = h.top + h.left + (b ? 2e3: 0), + f.fractions = i > 21 && i < 22 + } () +})(jQuery); +/* + * jQuery UI Draggable 1.8.18 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Draggables + * + * Depends: + * jquery.ui.core.js + * jquery.ui.mouse.js + * jquery.ui.widget.js + */ +(function(a, b) { + a.widget("ui.draggable", a.ui.mouse, { + widgetEventPrefix: "drag", + options: { + addClasses: !0, + appendTo: "parent", + axis: !1, + + connectToSortable: !1, + containment: !1, + cursor: "auto", + cursorAt: !1, + grid: !1, + handle: !1, + helper: "original", + iframeFix: !1, + opacity: !1, + refreshPositions: !1, + revert: !1, + revertDuration: 500, + scope: "default", + scroll: !0, + scrollSensitivity: 20, + scrollSpeed: 20, + snap: !1, + snapMode: "both", + snapTolerance: 20, + stack: !1, + zIndex: !1 + }, + _create: function() { + this.options.helper == "original" && !/^(?:r|a|f)/.test(this.element.css("position")) && (this.element[0].style.position = "relative"), + this.options.addClasses && this.element.addClass("ui-draggable"), + this.options.disabled && this.element.addClass("ui-draggable-disabled"), + this._mouseInit() + }, + destroy: function() { + if ( !! this.element.data("draggable")) { + this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"), + this._mouseDestroy(); + return this + } + }, + _mouseCapture: function(b) { + var c = this.options; + if (this.helper || c.disabled || a(b.target).is(".ui-resizable-handle")) return ! 1; + this.handle = this._getHandle(b); + if (!this.handle) return ! 1; + c.iframeFix && a(c.iframeFix === !0 ? "iframe": c.iframeFix).each(function() { + a('
').css({ + width: this.offsetWidth + "px", + height: this.offsetHeight + "px", + position: "absolute", + opacity: "0.001", + zIndex: 1e3 + }).css(a(this).offset()).appendTo("body") + }); + return ! 0 + }, + _mouseStart: function(b) { + var c = this.options; + this.helper = this._createHelper(b), + this._cacheHelperProportions(), + a.ui.ddmanager && (a.ui.ddmanager.current = this), + this._cacheMargins(), + this.cssPosition = this.helper.css("position"), + this.scrollParent = this.helper.scrollParent(), + this.offset = this.positionAbs = this.element.offset(), + this.offset = { + top: this.offset.top - this.margins.top, + left: this.offset.left - this.margins.left + }, + a.extend(this.offset, { + click: { + left: b.pageX - this.offset.left, + top: b.pageY - this.offset.top + }, + parent: this._getParentOffset(), + relative: this._getRelativeOffset() + }), + this.originalPosition = this.position = this._generatePosition(b), + this.originalPageX = b.pageX, + this.originalPageY = b.pageY, + c.cursorAt && this._adjustOffsetFromHelper(c.cursorAt), + c.containment && this._setContainment(); + if (this._trigger("start", b) === !1) { + this._clear(); + return ! 1 + } + this._cacheHelperProportions(), + a.ui.ddmanager && !c.dropBehaviour && a.ui.ddmanager.prepareOffsets(this, b), + this.helper.addClass("ui-draggable-dragging"), + this._mouseDrag(b, !0), + a.ui.ddmanager && a.ui.ddmanager.dragStart(this, b); + return ! 0 + }, + _mouseDrag: function(b, c) { + this.position = this._generatePosition(b), + this.positionAbs = this._convertPositionTo("absolute"); + if (!c) { + var d = this._uiHash(); + if (this._trigger("drag", b, d) === !1) { + this._mouseUp({}); + return ! 1 + } + this.position = d.position + } + if (!this.options.axis || this.options.axis != "y") this.helper[0].style.left = this.position.left + "px"; + if (!this.options.axis || this.options.axis != "x") this.helper[0].style.top = this.position.top + "px"; + a.ui.ddmanager && a.ui.ddmanager.drag(this, b); + return ! 1 + }, + _mouseStop: function(b) { + var c = !1; + a.ui.ddmanager && !this.options.dropBehaviour && (c = a.ui.ddmanager.drop(this, b)), + this.dropped && (c = this.dropped, this.dropped = !1); + if ((!this.element[0] || !this.element[0].parentNode) && this.options.helper == "original") return ! 1; + if (this.options.revert == "invalid" && !c || this.options.revert == "valid" && c || this.options.revert === !0 || a.isFunction(this.options.revert) && this.options.revert.call(this.element, c)) { + var d = this; + a(this.helper).animate(this.originalPosition, parseInt(this.options.revertDuration, 10), + function() { + d._trigger("stop", b) !== !1 && d._clear() + }) + } else this._trigger("stop", b) !== !1 && this._clear(); + return ! 1 + }, + _mouseUp: function(b) { + this.options.iframeFix === !0 && a("div.ui-draggable-iframeFix").each(function() { + this.parentNode.removeChild(this) + }), + a.ui.ddmanager && a.ui.ddmanager.dragStop(this, b); + return a.ui.mouse.prototype._mouseUp.call(this, b) + }, + cancel: function() { + this.helper.is(".ui-draggable-dragging") ? this._mouseUp({}) : this._clear(); + return this + }, + _getHandle: function(b) { + var c = !this.options.handle || !a(this.options.handle, this.element).length ? !0 : !1; + a(this.options.handle, this.element).find("*").andSelf().each(function() { + this == b.target && (c = !0) + }); + return c + }, + _createHelper: function(b) { + var c = this.options, + d = a.isFunction(c.helper) ? a(c.helper.apply(this.element[0], [b])) : c.helper == "clone" ? this.element.clone().removeAttr("id") : this.element; + d.parents("body").length || d.appendTo(c.appendTo == "parent" ? this.element[0].parentNode: c.appendTo), + d[0] != this.element[0] && !/(fixed|absolute)/.test(d.css("position")) && d.css("position", "absolute"); + return d + }, + _adjustOffsetFromHelper: function(b) { + typeof b == "string" && (b = b.split(" ")), + a.isArray(b) && (b = { + left: +b[0], + top: +b[1] || 0 + }), + "left" in b && (this.offset.click.left = b.left + this.margins.left), + "right" in b && (this.offset.click.left = this.helperProportions.width - b.right + this.margins.left), + "top" in b && (this.offset.click.top = b.top + this.margins.top), + "bottom" in b && (this.offset.click.top = this.helperProportions.height - b.bottom + this.margins.top) + }, + _getParentOffset: function() { + this.offsetParent = this.helper.offsetParent(); + var b = this.offsetParent.offset(); + this.cssPosition == "absolute" && this.scrollParent[0] != document && a.ui.contains(this.scrollParent[0], this.offsetParent[0]) && (b.left += this.scrollParent.scrollLeft(), b.top += this.scrollParent.scrollTop()); + if (this.offsetParent[0] == document.body || this.offsetParent[0].tagName && this.offsetParent[0].tagName.toLowerCase() == "html" && a.browser.msie) b = { + top: 0, + left: 0 + }; + return { + top: b.top + (parseInt(this.offsetParent.css("borderTopWidth"), 10) || 0), + left: b.left + (parseInt(this.offsetParent.css("borderLeftWidth"), 10) || 0) + } + }, + _getRelativeOffset: function() { + if (this.cssPosition == "relative") { + var a = this.element.position(); + return { + top: a.top - (parseInt(this.helper.css("top"), 10) || 0) + this.scrollParent.scrollTop(), + left: a.left - (parseInt(this.helper.css("left"), 10) || 0) + this.scrollParent.scrollLeft() + } + } + return { + top: 0, + left: 0 + } + }, + _cacheMargins: function() { + this.margins = { + left: parseInt(this.element.css("marginLeft"), 10) || 0, + top: parseInt(this.element.css("marginTop"), 10) || 0, + right: parseInt(this.element.css("marginRight"), 10) || 0, + bottom: parseInt(this.element.css("marginBottom"), 10) || 0 + } + }, + _cacheHelperProportions: function() { + this.helperProportions = { + width: this.helper.outerWidth(), + height: this.helper.outerHeight() + } + }, + _setContainment: function() { + var b = this.options; + b.containment == "parent" && (b.containment = this.helper[0].parentNode); + if (b.containment == "document" || b.containment == "window") this.containment = [b.containment == "document" ? 0 : a(window).scrollLeft() - this.offset.relative.left - this.offset.parent.left, b.containment == "document" ? 0 : a(window).scrollTop() - this.offset.relative.top - this.offset.parent.top, (b.containment == "document" ? 0 : a(window).scrollLeft()) + a(b.containment == "document" ? document: window).width() - this.helperProportions.width - this.margins.left, (b.containment == "document" ? 0 : a(window).scrollTop()) + (a(b.containment == "document" ? document: window).height() || document.body.parentNode.scrollHeight) - this.helperProportions.height - this.margins.top]; + if (!/^(document|window|parent)$/.test(b.containment) && b.containment.constructor != Array) { + var c = a(b.containment), + d = c[0]; + if (!d) return; + var e = c.offset(), + f = a(d).css("overflow") != "hidden"; + this.containment = [(parseInt(a(d).css("borderLeftWidth"), 10) || 0) + (parseInt(a(d).css("paddingLeft"), 10) || 0), (parseInt(a(d).css("borderTopWidth"), 10) || 0) + (parseInt(a(d).css("paddingTop"), 10) || 0), (f ? Math.max(d.scrollWidth, d.offsetWidth) : d.offsetWidth) - (parseInt(a(d).css("borderLeftWidth"), 10) || 0) - (parseInt(a(d).css("paddingRight"), 10) || 0) - this.helperProportions.width - this.margins.left - this.margins.right, (f ? Math.max(d.scrollHeight, d.offsetHeight) : d.offsetHeight) - (parseInt(a(d).css("borderTopWidth"), 10) || 0) - (parseInt(a(d).css("paddingBottom"), 10) || 0) - this.helperProportions.height - this.margins.top - this.margins.bottom], + this.relative_container = c + } else b.containment.constructor == Array && (this.containment = b.containment) + }, + _convertPositionTo: function(b, c) { + c || (c = this.position); + var d = b == "absolute" ? 1 : -1, + e = this.options, + f = this.cssPosition == "absolute" && (this.scrollParent[0] == document || !a.ui.contains(this.scrollParent[0], this.offsetParent[0])) ? this.offsetParent: this.scrollParent, + g = /(html|body)/i.test(f[0].tagName); + return { + top: c.top + this.offset.relative.top * d + this.offset.parent.top * d - (a.browser.safari && a.browser.version < 526 && this.cssPosition == "fixed" ? 0 : (this.cssPosition == "fixed" ? -this.scrollParent.scrollTop() : g ? 0 : f.scrollTop()) * d), + left: c.left + this.offset.relative.left * d + this.offset.parent.left * d - (a.browser.safari && a.browser.version < 526 && this.cssPosition == "fixed" ? 0 : (this.cssPosition == "fixed" ? -this.scrollParent.scrollLeft() : g ? 0 : f.scrollLeft()) * d) + } + }, + _generatePosition: function(b) { + var c = this.options, + d = this.cssPosition == "absolute" && (this.scrollParent[0] == document || !a.ui.contains(this.scrollParent[0], this.offsetParent[0])) ? this.offsetParent: this.scrollParent, + e = /(html|body)/i.test(d[0].tagName), + f = b.pageX, + g = b.pageY; + if (this.originalPosition) { + var h; + if (this.containment) { + if (this.relative_container) { + var i = this.relative_container.offset(); + h = [this.containment[0] + i.left, this.containment[1] + i.top, this.containment[2] + i.left, this.containment[3] + i.top] + } else h = this.containment; + b.pageX - this.offset.click.left < h[0] && (f = h[0] + this.offset.click.left), + b.pageY - this.offset.click.top < h[1] && (g = h[1] + this.offset.click.top), + b.pageX - this.offset.click.left > h[2] && (f = h[2] + this.offset.click.left), + b.pageY - this.offset.click.top > h[3] && (g = h[3] + this.offset.click.top) + } + if (c.grid) { + var j = c.grid[1] ? this.originalPageY + Math.round((g - this.originalPageY) / c.grid[1]) * c.grid[1] : this.originalPageY; + g = h ? j - this.offset.click.top < h[1] || j - this.offset.click.top > h[3] ? j - this.offset.click.top < h[1] ? j + c.grid[1] : j - c.grid[1] : j: j; + var k = c.grid[0] ? this.originalPageX + Math.round((f - this.originalPageX) / c.grid[0]) * c.grid[0] : this.originalPageX; + f = h ? k - this.offset.click.left < h[0] || k - this.offset.click.left > h[2] ? k - this.offset.click.left < h[0] ? k + c.grid[0] : k - c.grid[0] : k: k + } + } + return { + top: g - this.offset.click.top - this.offset.relative.top - this.offset.parent.top + (a.browser.safari && a.browser.version < 526 && this.cssPosition == "fixed" ? 0 : this.cssPosition == "fixed" ? -this.scrollParent.scrollTop() : e ? 0 : d.scrollTop()), + left: f - this.offset.click.left - this.offset.relative.left - this.offset.parent.left + (a.browser.safari && a.browser.version < 526 && this.cssPosition == "fixed" ? 0 : this.cssPosition == "fixed" ? -this.scrollParent.scrollLeft() : e ? 0 : d.scrollLeft()) + } + }, + _clear: function() { + this.helper.removeClass("ui-draggable-dragging"), + this.helper[0] != this.element[0] && !this.cancelHelperRemoval && this.helper.remove(), + this.helper = null, + this.cancelHelperRemoval = !1 + }, + _trigger: function(b, c, d) { + d = d || this._uiHash(), + a.ui.plugin.call(this, b, [c, d]), + b == "drag" && (this.positionAbs = this._convertPositionTo("absolute")); + return a.Widget.prototype._trigger.call(this, b, c, d) + }, + plugins: {}, + _uiHash: function(a) { + return { + helper: this.helper, + position: this.position, + originalPosition: this.originalPosition, + offset: this.positionAbs + } + } + }), + a.extend(a.ui.draggable, { + version: "1.8.18" + }), + a.ui.plugin.add("draggable", "connectToSortable", { + start: function(b, c) { + var d = a(this).data("draggable"), + e = d.options, + f = a.extend({}, + c, { + item: d.element + }); + d.sortables = [], + a(e.connectToSortable).each(function() { + var c = a.data(this, "sortable"); + c && !c.options.disabled && (d.sortables.push({ + instance: c, + shouldRevert: c.options.revert + }), c.refreshPositions(), c._trigger("activate", b, f)) + }) + }, + stop: function(b, c) { + var d = a(this).data("draggable"), + e = a.extend({}, + c, { + item: d.element + }); + a.each(d.sortables, + function() { + this.instance.isOver ? (this.instance.isOver = 0, d.cancelHelperRemoval = !0, this.instance.cancelHelperRemoval = !1, this.shouldRevert && (this.instance.options.revert = !0), this.instance._mouseStop(b), this.instance.options.helper = this.instance.options._helper, d.options.helper == "original" && this.instance.currentItem.css({ + top: "auto", + left: "auto" + })) : (this.instance.cancelHelperRemoval = !1, this.instance._trigger("deactivate", b, e)) + }) + }, + drag: function(b, c) { + var d = a(this).data("draggable"), + e = this, + f = function(b) { + var c = this.offset.click.top, + d = this.offset.click.left, + e = this.positionAbs.top, + f = this.positionAbs.left, + g = b.height, + h = b.width, + i = b.top, + j = b.left; + return a.ui.isOver(e + c, f + d, i, j, g, h) + }; + a.each(d.sortables, + function(f) { + this.instance.positionAbs = d.positionAbs, + this.instance.helperProportions = d.helperProportions, + this.instance.offset.click = d.offset.click, + this.instance._intersectsWith(this.instance.containerCache) ? (this.instance.isOver || (this.instance.isOver = 1, this.instance.currentItem = a(e).clone().removeAttr("id").appendTo(this.instance.element).data("sortable-item", !0), this.instance.options._helper = this.instance.options.helper, this.instance.options.helper = function() { + return c.helper[0] + }, + b.target = this.instance.currentItem[0], this.instance._mouseCapture(b, !0), this.instance._mouseStart(b, !0, !0), this.instance.offset.click.top = d.offset.click.top, this.instance.offset.click.left = d.offset.click.left, this.instance.offset.parent.left -= d.offset.parent.left - this.instance.offset.parent.left, this.instance.offset.parent.top -= d.offset.parent.top - this.instance.offset.parent.top, d._trigger("toSortable", b), d.dropped = this.instance.element, d.currentItem = d.element, this.instance.fromOutside = d), this.instance.currentItem && this.instance._mouseDrag(b)) : this.instance.isOver && (this.instance.isOver = 0, this.instance.cancelHelperRemoval = !0, this.instance.options.revert = !1, this.instance._trigger("out", b, this.instance._uiHash(this.instance)), this.instance._mouseStop(b, !0), this.instance.options.helper = this.instance.options._helper, this.instance.currentItem.remove(), this.instance.placeholder && this.instance.placeholder.remove(), d._trigger("fromSortable", b), d.dropped = !1) + }) + } + }), + a.ui.plugin.add("draggable", "cursor", { + start: function(b, c) { + var d = a("body"), + e = a(this).data("draggable").options; + d.css("cursor") && (e._cursor = d.css("cursor")), + d.css("cursor", e.cursor) + }, + stop: function(b, c) { + var d = a(this).data("draggable").options; + d._cursor && a("body").css("cursor", d._cursor) + } + }), + a.ui.plugin.add("draggable", "opacity", { + start: function(b, c) { + var d = a(c.helper), + e = a(this).data("draggable").options; + d.css("opacity") && (e._opacity = d.css("opacity")), + d.css("opacity", e.opacity) + }, + stop: function(b, c) { + var d = a(this).data("draggable").options; + d._opacity && a(c.helper).css("opacity", d._opacity) + } + }), + a.ui.plugin.add("draggable", "scroll", { + start: function(b, c) { + var d = a(this).data("draggable"); + d.scrollParent[0] != document && d.scrollParent[0].tagName != "HTML" && (d.overflowOffset = d.scrollParent.offset()) + }, + drag: function(b, c) { + var d = a(this).data("draggable"), + e = d.options, + f = !1; + if (d.scrollParent[0] != document && d.scrollParent[0].tagName != "HTML") { + if (!e.axis || e.axis != "x") d.overflowOffset.top + d.scrollParent[0].offsetHeight - b.pageY < e.scrollSensitivity ? d.scrollParent[0].scrollTop = f = d.scrollParent[0].scrollTop + e.scrollSpeed: b.pageY - d.overflowOffset.top < e.scrollSensitivity && (d.scrollParent[0].scrollTop = f = d.scrollParent[0].scrollTop - e.scrollSpeed); + if (!e.axis || e.axis != "y") d.overflowOffset.left + d.scrollParent[0].offsetWidth - b.pageX < e.scrollSensitivity ? d.scrollParent[0].scrollLeft = f = d.scrollParent[0].scrollLeft + e.scrollSpeed: b.pageX - d.overflowOffset.left < e.scrollSensitivity && (d.scrollParent[0].scrollLeft = f = d.scrollParent[0].scrollLeft - e.scrollSpeed) + } else { + if (!e.axis || e.axis != "x") b.pageY - a(document).scrollTop() < e.scrollSensitivity ? f = a(document).scrollTop(a(document).scrollTop() - e.scrollSpeed) : a(window).height() - (b.pageY - a(document).scrollTop()) < e.scrollSensitivity && (f = a(document).scrollTop(a(document).scrollTop() + e.scrollSpeed)); + if (!e.axis || e.axis != "y") b.pageX - a(document).scrollLeft() < e.scrollSensitivity ? f = a(document).scrollLeft(a(document).scrollLeft() - e.scrollSpeed) : a(window).width() - (b.pageX - a(document).scrollLeft()) < e.scrollSensitivity && (f = a(document).scrollLeft(a(document).scrollLeft() + e.scrollSpeed)) + } + f !== !1 && a.ui.ddmanager && !e.dropBehaviour && a.ui.ddmanager.prepareOffsets(d, b) + } + }), + a.ui.plugin.add("draggable", "snap", { + start: function(b, c) { + var d = a(this).data("draggable"), + e = d.options; + d.snapElements = [], + a(e.snap.constructor != String ? e.snap.items || ":data(draggable)": e.snap).each(function() { + var b = a(this), + c = b.offset(); + this != d.element[0] && d.snapElements.push({ + item: this, + width: b.outerWidth(), + height: b.outerHeight(), + top: c.top, + left: c.left + }) + }) + }, + drag: function(b, c) { + var d = a(this).data("draggable"), + e = d.options, + f = e.snapTolerance, + g = c.offset.left, + h = g + d.helperProportions.width, + i = c.offset.top, + j = i + d.helperProportions.height; + for (var k = d.snapElements.length - 1; k >= 0; k--) { + var l = d.snapElements[k].left, + m = l + d.snapElements[k].width, + n = d.snapElements[k].top, + o = n + d.snapElements[k].height; + if (! (l - f < g && g < m + f && n - f < i && i < o + f || l - f < g && g < m + f && n - f < j && j < o + f || l - f < h && h < m + f && n - f < i && i < o + f || l - f < h && h < m + f && n - f < j && j < o + f)) { + d.snapElements[k].snapping && d.options.snap.release && d.options.snap.release.call(d.element, b, a.extend(d._uiHash(), { + snapItem: d.snapElements[k].item + })), + d.snapElements[k].snapping = !1; + continue + } + if (e.snapMode != "inner") { + var p = Math.abs(n - j) <= f, + q = Math.abs(o - i) <= f, + r = Math.abs(l - h) <= f, + s = Math.abs(m - g) <= f; + p && (c.position.top = d._convertPositionTo("relative", { + top: n - d.helperProportions.height, + left: 0 + }).top - d.margins.top), + q && (c.position.top = d._convertPositionTo("relative", { + top: o, + left: 0 + }).top - d.margins.top), + r && (c.position.left = d._convertPositionTo("relative", { + top: 0, + left: l - d.helperProportions.width + }).left - d.margins.left), + s && (c.position.left = d._convertPositionTo("relative", { + top: 0, + left: m + }).left - d.margins.left) + } + var t = p || q || r || s; + if (e.snapMode != "outer") { + var p = Math.abs(n - i) <= f, + q = Math.abs(o - j) <= f, + r = Math.abs(l - g) <= f, + s = Math.abs(m - h) <= f; + p && (c.position.top = d._convertPositionTo("relative", { + top: n, + left: 0 + }).top - d.margins.top), + q && (c.position.top = d._convertPositionTo("relative", { + top: o - d.helperProportions.height, + left: 0 + }).top - d.margins.top), + r && (c.position.left = d._convertPositionTo("relative", { + top: 0, + left: l + }).left - d.margins.left), + s && (c.position.left = d._convertPositionTo("relative", { + top: 0, + left: m - d.helperProportions.width + }).left - d.margins.left) + } ! d.snapElements[k].snapping && (p || q || r || s || t) && d.options.snap.snap && d.options.snap.snap.call(d.element, b, a.extend(d._uiHash(), { + snapItem: d.snapElements[k].item + })), + d.snapElements[k].snapping = p || q || r || s || t + } + } + }), + a.ui.plugin.add("draggable", "stack", { + start: function(b, c) { + var d = a(this).data("draggable").options, + e = a.makeArray(a(d.stack)).sort(function(b, c) { + return (parseInt(a(b).css("zIndex"), 10) || 0) - (parseInt(a(c).css("zIndex"), 10) || 0) + }); + if ( !! e.length) { + var f = parseInt(e[0].style.zIndex) || 0; + a(e).each(function(a) { + this.style.zIndex = f + a + }), + this[0].style.zIndex = f + e.length + } + } + }), + a.ui.plugin.add("draggable", "zIndex", { + start: function(b, c) { + var d = a(c.helper), + e = a(this).data("draggable").options; + d.css("zIndex") && (e._zIndex = d.css("zIndex")), + d.css("zIndex", e.zIndex) + }, + stop: function(b, c) { + var d = a(this).data("draggable").options; + d._zIndex && a(c.helper).css("zIndex", d._zIndex) + } + }) +})(jQuery); +/* + * jQuery UI Droppable 1.8.18 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Droppables + * + * Depends: + * jquery.ui.core.js + * jquery.ui.widget.js + * jquery.ui.mouse.js + * jquery.ui.draggable.js + */ +(function(a, b) { + a.widget("ui.droppable", { + widgetEventPrefix: "drop", + options: { + accept: "*", + activeClass: !1, + addClasses: !0, + greedy: !1, + hoverClass: !1, + scope: "default", + tolerance: "intersect" + }, + _create: function() { + var b = this.options, + c = b.accept; + this.isover = 0, + this.isout = 1, + this.accept = a.isFunction(c) ? c: function(a) { + return a.is(c) + }, + this.proportions = { + width: this.element[0].offsetWidth, + height: this.element[0].offsetHeight + }, + a.ui.ddmanager.droppables[b.scope] = a.ui.ddmanager.droppables[b.scope] || [], + a.ui.ddmanager.droppables[b.scope].push(this), + b.addClasses && this.element.addClass("ui-droppable") + }, + destroy: function() { + var b = a.ui.ddmanager.droppables[this.options.scope]; + for (var c = 0; c < b.length; c++) b[c] == this && b.splice(c, 1); + this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable"); + return this + }, + _setOption: function(b, c) { + b == "accept" && (this.accept = a.isFunction(c) ? c: function(a) { + return a.is(c) + }), + a.Widget.prototype._setOption.apply(this, arguments) + }, + _activate: function(b) { + var c = a.ui.ddmanager.current; + this.options.activeClass && this.element.addClass(this.options.activeClass), + c && this._trigger("activate", b, this.ui(c)) + }, + _deactivate: function(b) { + var c = a.ui.ddmanager.current; + this.options.activeClass && this.element.removeClass(this.options.activeClass), + c && this._trigger("deactivate", b, this.ui(c)) + }, + _over: function(b) { + var c = a.ui.ddmanager.current; !! c && (c.currentItem || c.element)[0] != this.element[0] && this.accept.call(this.element[0], c.currentItem || c.element) && (this.options.hoverClass && this.element.addClass(this.options.hoverClass), this._trigger("over", b, this.ui(c))) + }, + _out: function(b) { + var c = a.ui.ddmanager.current; !! c && (c.currentItem || c.element)[0] != this.element[0] && this.accept.call(this.element[0], c.currentItem || c.element) && (this.options.hoverClass && this.element.removeClass(this.options.hoverClass), this._trigger("out", b, this.ui(c))) + }, + _drop: function(b, c) { + var d = c || a.ui.ddmanager.current; + if (!d || (d.currentItem || d.element)[0] == this.element[0]) return ! 1; + var e = !1; + this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function() { + var b = a.data(this, "droppable"); + if (b.options.greedy && !b.options.disabled && b.options.scope == d.options.scope && b.accept.call(b.element[0], d.currentItem || d.element) && a.ui.intersect(d, a.extend(b, { + offset: b.element.offset() + }), b.options.tolerance)) { + e = !0; + return ! 1 + } + }); + if (e) return ! 1; + if (this.accept.call(this.element[0], d.currentItem || d.element)) { + this.options.activeClass && this.element.removeClass(this.options.activeClass), + this.options.hoverClass && this.element.removeClass(this.options.hoverClass), + this._trigger("drop", b, this.ui(d)); + return this.element + } + return ! 1 + }, + ui: function(a) { + return { + draggable: a.currentItem || a.element, + helper: a.helper, + position: a.position, + offset: a.positionAbs + } + } + }), + a.extend(a.ui.droppable, { + version: "1.8.18" + }), + a.ui.intersect = function(b, c, d) { + if (!c.offset) return ! 1; + var e = (b.positionAbs || b.position.absolute).left, + f = e + b.helperProportions.width, + g = (b.positionAbs || b.position.absolute).top, + h = g + b.helperProportions.height, + i = c.offset.left, + j = i + c.proportions.width, + k = c.offset.top, + l = k + c.proportions.height; + switch (d) { + case "fit": + return i <= e && f <= j && k <= g && h <= l; + case "intersect": + return i < e + b.helperProportions.width / 2 && f - b.helperProportions.width / 2 < j && k < g + b.helperProportions.height / 2 && h - b.helperProportions.height / 2 < l; + case "pointer": + var m = (b.positionAbs || b.position.absolute).left + (b.clickOffset || b.offset.click).left, + n = (b.positionAbs || b.position.absolute).top + (b.clickOffset || b.offset.click).top, + o = a.ui.isOver(n, m, k, i, c.proportions.height, c.proportions.width); + return o; + case "touch": + return (g >= k && g <= l || h >= k && h <= l || g < k && h > l) && (e >= i && e <= j || f >= i && f <= j || e < i && f > j); + default: + return ! 1 + } + }, + a.ui.ddmanager = { + current: null, + droppables: { + "default": [] + }, + prepareOffsets: function(b, c) { + var d = a.ui.ddmanager.droppables[b.options.scope] || [], + e = c ? c.type: null, + f = (b.currentItem || b.element).find(":data(droppable)").andSelf(); + droppablesLoop: for (var g = 0; g < d.length; g++) { + if (d[g].options.disabled || b && !d[g].accept.call(d[g].element[0], b.currentItem || b.element)) continue; + for (var h = 0; h < f.length; h++) if (f[h] == d[g].element[0]) { + d[g].proportions.height = 0; + continue droppablesLoop + } + d[g].visible = d[g].element.css("display") != "none"; + if (!d[g].visible) continue; + e == "mousedown" && d[g]._activate.call(d[g], c), + d[g].offset = d[g].element.offset(), + d[g].proportions = { + width: d[g].element[0].offsetWidth, + height: d[g].element[0].offsetHeight + } + } + }, + drop: function(b, c) { + var d = !1; + a.each(a.ui.ddmanager.droppables[b.options.scope] || [], + function() { ! this.options || (!this.options.disabled && this.visible && a.ui.intersect(b, this, this.options.tolerance) && (d = this._drop.call(this, c) || d), !this.options.disabled && this.visible && this.accept.call(this.element[0], b.currentItem || b.element) && (this.isout = 1, this.isover = 0, this._deactivate.call(this, c))) + }); + return d + }, + dragStart: function(b, c) { + b.element.parents(":not(body,html)").bind("scroll.droppable", + function() { + b.options.refreshPositions || a.ui.ddmanager.prepareOffsets(b, c) + }) + }, + drag: function(b, c) { + b.options.refreshPositions && a.ui.ddmanager.prepareOffsets(b, c), + a.each(a.ui.ddmanager.droppables[b.options.scope] || [], + function() { + if (! (this.options.disabled || this.greedyChild || !this.visible)) { + var d = a.ui.intersect(b, this, this.options.tolerance), + e = !d && this.isover == 1 ? "isout": d && this.isover == 0 ? "isover": null; + if (!e) return; + var f; + if (this.options.greedy) { + var g = this.element.parents(":data(droppable):eq(0)"); + g.length && (f = a.data(g[0], "droppable"), f.greedyChild = e == "isover" ? 1 : 0) + } + f && e == "isover" && (f.isover = 0, f.isout = 1, f._out.call(f, c)), + this[e] = 1, + this[e == "isout" ? "isover": "isout"] = 0, + this[e == "isover" ? "_over": "_out"].call(this, c), + f && e == "isout" && (f.isout = 0, f.isover = 1, f._over.call(f, c)) + } + }) + }, + dragStop: function(b, c) { + b.element.parents(":not(body,html)").unbind("scroll.droppable"), + b.options.refreshPositions || a.ui.ddmanager.prepareOffsets(b, c) + } + } +})(jQuery); +/* + * jQuery UI Resizable 1.8.18 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Resizables + * + * Depends: + * jquery.ui.core.js + * jquery.ui.mouse.js + * jquery.ui.widget.js + */ +(function(a, b) { + a.widget("ui.resizable", a.ui.mouse, { + widgetEventPrefix: "resize", + options: { + alsoResize: !1, + animate: !1, + animateDuration: "slow", + animateEasing: "swing", + aspectRatio: !1, + autoHide: !1, + containment: !1, + ghost: !1, + grid: !1, + handles: "e,s,se", + helper: !1, + maxHeight: null, + maxWidth: null, + minHeight: 10, + minWidth: 10, + zIndex: 1e3 + }, + _create: function() { + var b = this, + c = this.options; + this.element.addClass("ui-resizable"), + a.extend(this, { + _aspectRatio: !!c.aspectRatio, + aspectRatio: c.aspectRatio, + originalElement: this.element, + _proportionallyResizeElements: [], + _helper: c.helper || c.ghost || c.animate ? c.helper || "ui-resizable-helper": null + }), + this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i) && (this.element.wrap(a('
').css({ + position: this.element.css("position"), + width: this.element.outerWidth(), + height: this.element.outerHeight(), + top: this.element.css("top"), + left: this.element.css("left") + })), this.element = this.element.parent().data("resizable", this.element.data("resizable")), this.elementIsWrapper = !0, this.element.css({ + marginLeft: this.originalElement.css("marginLeft"), + marginTop: this.originalElement.css("marginTop"), + marginRight: this.originalElement.css("marginRight"), + marginBottom: this.originalElement.css("marginBottom") + }), this.originalElement.css({ + marginLeft: 0, + marginTop: 0, + marginRight: 0, + marginBottom: 0 + }), this.originalResizeStyle = this.originalElement.css("resize"), this.originalElement.css("resize", "none"), this._proportionallyResizeElements.push(this.originalElement.css({ + position: "static", + zoom: 1, + display: "block" + })), this.originalElement.css({ + margin: this.originalElement.css("margin") + }), this._proportionallyResize()), + this.handles = c.handles || (a(".ui-resizable-handle", this.element).length ? { + n: ".ui-resizable-n", + e: ".ui-resizable-e", + s: ".ui-resizable-s", + w: ".ui-resizable-w", + se: ".ui-resizable-se", + sw: ".ui-resizable-sw", + ne: ".ui-resizable-ne", + nw: ".ui-resizable-nw" + }: "e,s,se"); + if (this.handles.constructor == String) { + this.handles == "all" && (this.handles = "n,e,s,w,se,sw,ne,nw"); + var d = this.handles.split(","); + this.handles = {}; + for (var e = 0; e < d.length; e++) { + var f = a.trim(d[e]), + g = "ui-resizable-" + f, + h = a('
'); + /sw|se|ne|nw/.test(f) && h.css({ + zIndex: ++c.zIndex + }), + "se" == f && h.addClass("ui-icon ui-icon-gripsmall-diagonal-se"), + this.handles[f] = ".ui-resizable-" + f, + this.element.append(h) + } + } + this._renderAxis = function(b) { + b = b || this.element; + for (var c in this.handles) { + this.handles[c].constructor == String && (this.handles[c] = a(this.handles[c], this.element).show()); + if (this.elementIsWrapper && this.originalElement[0].nodeName.match(/textarea|input|select|button/i)) { + var d = a(this.handles[c], this.element), + e = 0; + e = /sw|ne|nw|se|n|s/.test(c) ? d.outerHeight() : d.outerWidth(); + var f = ["padding", /ne|nw|n/.test(c) ? "Top": /se|sw|s/.test(c) ? "Bottom": /^e$/.test(c) ? "Right": "Left"].join(""); + b.css(f, e), + this._proportionallyResize() + } + if (!a(this.handles[c]).length) continue + } + }, + this._renderAxis(this.element), + this._handles = a(".ui-resizable-handle", this.element).disableSelection(), + this._handles.mouseover(function() { + if (!b.resizing) { + if (this.className) var a = this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i); + b.axis = a && a[1] ? a[1] : "se" + } + }), + c.autoHide && (this._handles.hide(), a(this.element).addClass("ui-resizable-autohide").hover(function() { + c.disabled || (a(this).removeClass("ui-resizable-autohide"), b._handles.show()) + }, + function() { + c.disabled || b.resizing || (a(this).addClass("ui-resizable-autohide"), b._handles.hide()) + })), + this._mouseInit() + }, + destroy: function() { + this._mouseDestroy(); + var b = function(b) { + a(b).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove() + }; + if (this.elementIsWrapper) { + b(this.element); + var c = this.element; + c.after(this.originalElement.css({ + position: c.css("position"), + width: c.outerWidth(), + height: c.outerHeight(), + top: c.css("top"), + left: c.css("left") + })).remove() + } + this.originalElement.css("resize", this.originalResizeStyle), + b(this.originalElement); + return this + }, + _mouseCapture: function(b) { + var c = !1; + for (var d in this.handles) a(this.handles[d])[0] == b.target && (c = !0); + return ! this.options.disabled && c + }, + _mouseStart: function(b) { + var d = this.options, + e = this.element.position(), + f = this.element; + this.resizing = !0, + this.documentScroll = { + top: a(document).scrollTop(), + left: a(document).scrollLeft() + }, + (f.is(".ui-draggable") || /absolute/.test(f.css("position"))) && f.css({ + position: "absolute", + top: e.top, + left: e.left + }), + this._renderProxy(); + var g = c(this.helper.css("left")), + h = c(this.helper.css("top")); + d.containment && (g += a(d.containment).scrollLeft() || 0, h += a(d.containment).scrollTop() || 0), + this.offset = this.helper.offset(), + this.position = { + left: g, + top: h + }, + this.size = this._helper ? { + width: f.outerWidth(), + height: f.outerHeight() + }: { + width: f.width(), + height: f.height() + }, + this.originalSize = this._helper ? { + width: f.outerWidth(), + height: f.outerHeight() + }: { + width: f.width(), + height: f.height() + }, + this.originalPosition = { + left: g, + top: h + }, + this.sizeDiff = { + width: f.outerWidth() - f.width(), + height: f.outerHeight() - f.height() + }, + this.originalMousePosition = { + left: b.pageX, + top: b.pageY + }, + this.aspectRatio = typeof d.aspectRatio == "number" ? d.aspectRatio: this.originalSize.width / this.originalSize.height || 1; + var i = a(".ui-resizable-" + this.axis).css("cursor"); + a("body").css("cursor", i == "auto" ? this.axis + "-resize": i), + f.addClass("ui-resizable-resizing"), + this._propagate("start", b); + return ! 0 + }, + _mouseDrag: function(b) { + var c = this.helper, + d = this.options, + e = {}, + f = this, + g = this.originalMousePosition, + h = this.axis, + i = b.pageX - g.left || 0, + j = b.pageY - g.top || 0, + k = this._change[h]; + if (!k) return ! 1; + var l = k.apply(this, [b, i, j]), + m = a.browser.msie && a.browser.version < 7, + n = this.sizeDiff; + this._updateVirtualBoundaries(b.shiftKey); + if (this._aspectRatio || b.shiftKey) l = this._updateRatio(l, b); + l = this._respectSize(l, b), + this._propagate("resize", b), + c.css({ + top: this.position.top + "px", + left: this.position.left + "px", + width: this.size.width + "px", + height: this.size.height + "px" + }), + !this._helper && this._proportionallyResizeElements.length && this._proportionallyResize(), + this._updateCache(l), + this._trigger("resize", b, this.ui()); + return ! 1 + }, + _mouseStop: function(b) { + this.resizing = !1; + var c = this.options, + d = this; + if (this._helper) { + var e = this._proportionallyResizeElements, + f = e.length && /textarea/i.test(e[0].nodeName), + g = f && a.ui.hasScroll(e[0], "left") ? 0 : d.sizeDiff.height, + h = f ? 0 : d.sizeDiff.width, + i = { + width: d.helper.width() - h, + height: d.helper.height() - g + }, + j = parseInt(d.element.css("left"), 10) + (d.position.left - d.originalPosition.left) || null, + k = parseInt(d.element.css("top"), 10) + (d.position.top - d.originalPosition.top) || null; + c.animate || this.element.css(a.extend(i, { + top: k, + left: j + })), + d.helper.height(d.size.height), + d.helper.width(d.size.width), + this._helper && !c.animate && this._proportionallyResize() + } + a("body").css("cursor", "auto"), + this.element.removeClass("ui-resizable-resizing"), + this._propagate("stop", b), + this._helper && this.helper.remove(); + return ! 1 + }, + _updateVirtualBoundaries: function(a) { + var b = this.options, + c, e, f, g, h; + h = { + minWidth: d(b.minWidth) ? b.minWidth: 0, + maxWidth: d(b.maxWidth) ? b.maxWidth: Infinity, + minHeight: d(b.minHeight) ? b.minHeight: 0, + maxHeight: d(b.maxHeight) ? b.maxHeight: Infinity + }; + if (this._aspectRatio || a) c = h.minHeight * this.aspectRatio, + f = h.minWidth / this.aspectRatio, + e = h.maxHeight * this.aspectRatio, + g = h.maxWidth / this.aspectRatio, + c > h.minWidth && (h.minWidth = c), + f > h.minHeight && (h.minHeight = f), + e < h.maxWidth && (h.maxWidth = e), + g < h.maxHeight && (h.maxHeight = g); + this._vBoundaries = h + }, + _updateCache: function(a) { + var b = this.options; + this.offset = this.helper.offset(), + d(a.left) && (this.position.left = a.left), + d(a.top) && (this.position.top = a.top), + d(a.height) && (this.size.height = a.height), + d(a.width) && (this.size.width = a.width) + }, + _updateRatio: function(a, b) { + var c = this.options, + e = this.position, + f = this.size, + g = this.axis; + d(a.height) ? a.width = a.height * this.aspectRatio: d(a.width) && (a.height = a.width / this.aspectRatio), + g == "sw" && (a.left = e.left + (f.width - a.width), a.top = null), + g == "nw" && (a.top = e.top + (f.height - a.height), a.left = e.left + (f.width - a.width)); + return a + }, + _respectSize: function(a, b) { + var c = this.helper, + e = this._vBoundaries, + f = this._aspectRatio || b.shiftKey, + g = this.axis, + h = d(a.width) && e.maxWidth && e.maxWidth < a.width, + i = d(a.height) && e.maxHeight && e.maxHeight < a.height, + j = d(a.width) && e.minWidth && e.minWidth > a.width, + k = d(a.height) && e.minHeight && e.minHeight > a.height; + j && (a.width = e.minWidth), + k && (a.height = e.minHeight), + h && (a.width = e.maxWidth), + i && (a.height = e.maxHeight); + var l = this.originalPosition.left + this.originalSize.width, + m = this.position.top + this.size.height, + n = /sw|nw|w/.test(g), + o = /nw|ne|n/.test(g); + j && n && (a.left = l - e.minWidth), + h && n && (a.left = l - e.maxWidth), + k && o && (a.top = m - e.minHeight), + i && o && (a.top = m - e.maxHeight); + var p = !a.width && !a.height; + p && !a.left && a.top ? a.top = null: p && !a.top && a.left && (a.left = null); + return a + }, + _proportionallyResize: function() { + var b = this.options; + if ( !! this._proportionallyResizeElements.length) { + var c = this.helper || this.element; + for (var d = 0; d < this._proportionallyResizeElements.length; d++) { + var e = this._proportionallyResizeElements[d]; + if (!this.borderDif) { + var f = [e.css("borderTopWidth"), e.css("borderRightWidth"), e.css("borderBottomWidth"), e.css("borderLeftWidth")], + g = [e.css("paddingTop"), e.css("paddingRight"), e.css("paddingBottom"), e.css("paddingLeft")]; + this.borderDif = a.map(f, + function(a, b) { + var c = parseInt(a, 10) || 0, + d = parseInt(g[b], 10) || 0; + return c + d + }) + } + if (a.browser.msie && ( !! a(c).is(":hidden") || !!a(c).parents(":hidden").length)) continue; + e.css({ + height: c.height() - this.borderDif[0] - this.borderDif[2] || 0, + width: c.width() - this.borderDif[1] - this.borderDif[3] || 0 + }) + } + } + }, + _renderProxy: function() { + var b = this.element, + c = this.options; + this.elementOffset = b.offset(); + if (this._helper) { + this.helper = this.helper || a('
'); + var d = a.browser.msie && a.browser.version < 7, + e = d ? 1 : 0, + f = d ? 2 : -1; + this.helper.addClass(this._helper).css({ + width: this.element.outerWidth() + f, + height: this.element.outerHeight() + f, + position: "absolute", + left: this.elementOffset.left - e + "px", + top: this.elementOffset.top - e + "px", + zIndex: ++c.zIndex + }), + this.helper.appendTo("body").disableSelection() + } else this.helper = this.element + }, + _change: { + e: function(a, b, c) { + return { + width: this.originalSize.width + b + } + }, + w: function(a, b, c) { + var d = this.options, + e = this.originalSize, + f = this.originalPosition; + return { + left: f.left + b, + width: e.width - b + } + }, + n: function(a, b, c) { + var d = this.options, + e = this.originalSize, + f = this.originalPosition; + return { + top: f.top + c, + height: e.height - c + } + }, + s: function(a, b, c) { + return { + height: this.originalSize.height + c + } + }, + se: function(b, c, d) { + return a.extend(this._change.s.apply(this, arguments), this._change.e.apply(this, [b, c, d])) + }, + sw: function(b, c, d) { + return a.extend(this._change.s.apply(this, arguments), this._change.w.apply(this, [b, c, d])) + }, + ne: function(b, c, d) { + return a.extend(this._change.n.apply(this, arguments), this._change.e.apply(this, [b, c, d])) + }, + nw: function(b, c, d) { + return a.extend(this._change.n.apply(this, arguments), this._change.w.apply(this, [b, c, d])) + } + }, + _propagate: function(b, c) { + a.ui.plugin.call(this, b, [c, this.ui()]), + b != "resize" && this._trigger(b, c, this.ui()) + }, + plugins: {}, + ui: function() { + return { + originalElement: this.originalElement, + element: this.element, + helper: this.helper, + position: this.position, + size: this.size, + originalSize: this.originalSize, + originalPosition: this.originalPosition + } + } + }), + a.extend(a.ui.resizable, { + version: "1.8.18" + }), + a.ui.plugin.add("resizable", "alsoResize", { + start: function(b, c) { + var d = a(this).data("resizable"), + e = d.options, + f = function(b) { + a(b).each(function() { + var b = a(this); + b.data("resizable-alsoresize", { + width: parseInt(b.width(), 10), + height: parseInt(b.height(), 10), + left: parseInt(b.css("left"), 10), + top: parseInt(b.css("top"), 10) + }) + }) + }; + typeof e.alsoResize == "object" && !e.alsoResize.parentNode ? e.alsoResize.length ? (e.alsoResize = e.alsoResize[0], f(e.alsoResize)) : a.each(e.alsoResize, + function(a) { + f(a) + }) : f(e.alsoResize) + }, + resize: function(b, c) { + var d = a(this).data("resizable"), + e = d.options, + f = d.originalSize, + g = d.originalPosition, + h = { + height: d.size.height - f.height || 0, + width: d.size.width - f.width || 0, + top: d.position.top - g.top || 0, + left: d.position.left - g.left || 0 + }, + i = function(b, d) { + a(b).each(function() { + var b = a(this), + e = a(this).data("resizable-alsoresize"), + f = {}, + g = d && d.length ? d: b.parents(c.originalElement[0]).length ? ["width", "height"] : ["width", "height", "top", "left"]; + a.each(g, + function(a, b) { + var c = (e[b] || 0) + (h[b] || 0); + c && c >= 0 && (f[b] = c || null) + }), + b.css(f) + }) + }; + typeof e.alsoResize == "object" && !e.alsoResize.nodeType ? a.each(e.alsoResize, + function(a, b) { + i(a, b) + }) : i(e.alsoResize) + }, + stop: function(b, c) { + a(this).removeData("resizable-alsoresize") + } + }), + a.ui.plugin.add("resizable", "animate", { + stop: function(b, c) { + var d = a(this).data("resizable"), + e = d.options, + f = d._proportionallyResizeElements, + g = f.length && /textarea/i.test(f[0].nodeName), + h = g && a.ui.hasScroll(f[0], "left") ? 0 : d.sizeDiff.height, + i = g ? 0 : d.sizeDiff.width, + j = { + width: d.size.width - i, + height: d.size.height - h + }, + k = parseInt(d.element.css("left"), 10) + (d.position.left - d.originalPosition.left) || null, + l = parseInt(d.element.css("top"), 10) + (d.position.top - d.originalPosition.top) || null; + d.element.animate(a.extend(j, l && k ? { + top: l, + left: k + }: {}), { + duration: e.animateDuration, + easing: e.animateEasing, + step: function() { + var c = { + width: parseInt(d.element.css("width"), 10), + height: parseInt(d.element.css("height"), 10), + top: parseInt(d.element.css("top"), 10), + left: parseInt(d.element.css("left"), 10) + }; + f && f.length && a(f[0]).css({ + width: c.width, + height: c.height + }), + d._updateCache(c), + d._propagate("resize", b) + } + }) + } + }), + a.ui.plugin.add("resizable", "containment", { + start: function(b, d) { + var e = a(this).data("resizable"), + f = e.options, + g = e.element, + h = f.containment, + i = h instanceof a ? h.get(0) : /parent/.test(h) ? g.parent().get(0) : h; + if ( !! i) { + e.containerElement = a(i); + if (/document/.test(h) || h == document) e.containerOffset = { + left: 0, + top: 0 + }, + e.containerPosition = { + left: 0, + top: 0 + }, + e.parentData = { + element: a(document), + left: 0, + top: 0, + width: a(document).width(), + height: a(document).height() || document.body.parentNode.scrollHeight + }; + else { + var j = a(i), + k = []; + a(["Top", "Right", "Left", "Bottom"]).each(function(a, b) { + k[a] = c(j.css("padding" + b)) + }), + e.containerOffset = j.offset(), + e.containerPosition = j.position(), + e.containerSize = { + height: j.innerHeight() - k[3], + width: j.innerWidth() - k[1] + }; + var l = e.containerOffset, + m = e.containerSize.height, + n = e.containerSize.width, + o = a.ui.hasScroll(i, "left") ? i.scrollWidth: n, + p = a.ui.hasScroll(i) ? i.scrollHeight: m; + e.parentData = { + element: i, + left: l.left, + top: l.top, + width: o, + height: p + } + } + } + }, + resize: function(b, c) { + var d = a(this).data("resizable"), + e = d.options, + f = d.containerSize, + g = d.containerOffset, + h = d.size, + i = d.position, + j = d._aspectRatio || b.shiftKey, + k = { + top: 0, + left: 0 + }, + l = d.containerElement; + l[0] != document && /static/.test(l.css("position")) && (k = g), + i.left < (d._helper ? g.left: 0) && (d.size.width = d.size.width + (d._helper ? d.position.left - g.left: d.position.left - k.left), j && (d.size.height = d.size.width / e.aspectRatio), d.position.left = e.helper ? g.left: 0), + i.top < (d._helper ? g.top: 0) && (d.size.height = d.size.height + (d._helper ? d.position.top - g.top: d.position.top), j && (d.size.width = d.size.height * e.aspectRatio), d.position.top = d._helper ? g.top: 0), + d.offset.left = d.parentData.left + d.position.left, + d.offset.top = d.parentData.top + d.position.top; + var m = Math.abs((d._helper ? d.offset.left - k.left: d.offset.left - k.left) + d.sizeDiff.width), + n = Math.abs((d._helper ? d.offset.top - k.top: d.offset.top - g.top) + d.sizeDiff.height), + o = d.containerElement.get(0) == d.element.parent().get(0), + p = /relative|absolute/.test(d.containerElement.css("position")); + o && p && (m -= d.parentData.left), + m + d.size.width >= d.parentData.width && (d.size.width = d.parentData.width - m, j && (d.size.height = d.size.width / d.aspectRatio)), + n + d.size.height >= d.parentData.height && (d.size.height = d.parentData.height - n, j && (d.size.width = d.size.height * d.aspectRatio)) + }, + stop: function(b, c) { + var d = a(this).data("resizable"), + e = d.options, + f = d.position, + g = d.containerOffset, + h = d.containerPosition, + i = d.containerElement, + j = a(d.helper), + k = j.offset(), + l = j.outerWidth() - d.sizeDiff.width, + m = j.outerHeight() - d.sizeDiff.height; + d._helper && !e.animate && /relative/.test(i.css("position")) && a(this).css({ + left: k.left - h.left - g.left, + width: l, + height: m + }), + d._helper && !e.animate && /static/.test(i.css("position")) && a(this).css({ + left: k.left - h.left - g.left, + width: l, + height: m + }) + } + }), + a.ui.plugin.add("resizable", "ghost", { + start: function(b, c) { + var d = a(this).data("resizable"), + e = d.options, + f = d.size; + d.ghost = d.originalElement.clone(), + d.ghost.css({ + opacity: .25, + display: "block", + position: "relative", + height: f.height, + width: f.width, + margin: 0, + left: 0, + top: 0 + }).addClass("ui-resizable-ghost").addClass(typeof e.ghost == "string" ? e.ghost: ""), + d.ghost.appendTo(d.helper) + }, + resize: function(b, c) { + var d = a(this).data("resizable"), + e = d.options; + d.ghost && d.ghost.css({ + position: "relative", + height: d.size.height, + width: d.size.width + }) + }, + stop: function(b, c) { + var d = a(this).data("resizable"), + e = d.options; + d.ghost && d.helper && d.helper.get(0).removeChild(d.ghost.get(0)) + } + }), + a.ui.plugin.add("resizable", "grid", { + resize: function(b, c) { + var d = a(this).data("resizable"), + e = d.options, + f = d.size, + g = d.originalSize, + h = d.originalPosition, + i = d.axis, + j = e._aspectRatio || b.shiftKey; + e.grid = typeof e.grid == "number" ? [e.grid, e.grid] : e.grid; + var k = Math.round((f.width - g.width) / (e.grid[0] || 1)) * (e.grid[0] || 1), + l = Math.round((f.height - g.height) / (e.grid[1] || 1)) * (e.grid[1] || 1); + /^(se|s|e)$/.test(i) ? (d.size.width = g.width + k, d.size.height = g.height + l) : /^(ne)$/.test(i) ? (d.size.width = g.width + k, d.size.height = g.height + l, d.position.top = h.top - l) : /^(sw)$/.test(i) ? (d.size.width = g.width + k, d.size.height = g.height + l, d.position.left = h.left - k) : (d.size.width = g.width + k, d.size.height = g.height + l, d.position.top = h.top - l, d.position.left = h.left - k) + } + }); + var c = function(a) { + return parseInt(a, 10) || 0 + }, + d = function(a) { + return ! isNaN(parseInt(a, 10)) + } +})(jQuery); +/* + * jQuery UI Selectable 1.8.18 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Selectables + * + * Depends: + * jquery.ui.core.js + * jquery.ui.mouse.js + * jquery.ui.widget.js + */ +(function(a, b) { + a.widget("ui.selectable", a.ui.mouse, { + options: { + appendTo: "body", + autoRefresh: !0, + distance: 0, + filter: "*", + tolerance: "touch" + }, + _create: function() { + var b = this; + this.element.addClass("ui-selectable"), + this.dragged = !1; + var c; + this.refresh = function() { + c = a(b.options.filter, b.element[0]), + c.addClass("ui-selectee"), + c.each(function() { + var b = a(this), + c = b.offset(); + a.data(this, "selectable-item", { + element: this, + $element: b, + left: c.left, + top: c.top, + right: c.left + b.outerWidth(), + bottom: c.top + b.outerHeight(), + startselected: !1, + selected: b.hasClass("ui-selected"), + selecting: b.hasClass("ui-selecting"), + unselecting: b.hasClass("ui-unselecting") + }) + }) + }, + this.refresh(), + this.selectees = c.addClass("ui-selectee"), + this._mouseInit(), + this.helper = a("
") + }, + destroy: function() { + this.selectees.removeClass("ui-selectee").removeData("selectable-item"), + this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable"), + this._mouseDestroy(); + return this + }, + _mouseStart: function(b) { + var c = this; + this.opos = [b.pageX, b.pageY]; + if (!this.options.disabled) { + var d = this.options; + this.selectees = a(d.filter, this.element[0]), + this._trigger("start", b), + a(d.appendTo).append(this.helper), + this.helper.css({ + left: b.clientX, + top: b.clientY, + width: 0, + height: 0 + }), + d.autoRefresh && this.refresh(), + this.selectees.filter(".ui-selected").each(function() { + var d = a.data(this, "selectable-item"); + d.startselected = !0, + !b.metaKey && !b.ctrlKey && (d.$element.removeClass("ui-selected"), d.selected = !1, d.$element.addClass("ui-unselecting"), d.unselecting = !0, c._trigger("unselecting", b, { + unselecting: d.element + })) + }), + a(b.target).parents().andSelf().each(function() { + var d = a.data(this, "selectable-item"); + if (d) { + var e = !b.metaKey && !b.ctrlKey || !d.$element.hasClass("ui-selected"); + d.$element.removeClass(e ? "ui-unselecting": "ui-selected").addClass(e ? "ui-selecting": "ui-unselecting"), + d.unselecting = !e, + d.selecting = e, + d.selected = e, + e ? c._trigger("selecting", b, { + selecting: d.element + }) : c._trigger("unselecting", b, { + unselecting: d.element + }); + return ! 1 + } + }) + } + }, + _mouseDrag: function(b) { + var c = this; + this.dragged = !0; + if (!this.options.disabled) { + var d = this.options, + e = this.opos[0], + f = this.opos[1], + g = b.pageX, + h = b.pageY; + if (e > g) { + var i = g; + g = e, + e = i + } + if (f > h) { + var i = h; + h = f, + f = i + } + this.helper.css({ + left: e, + top: f, + width: g - e, + height: h - f + }), + this.selectees.each(function() { + var i = a.data(this, "selectable-item"); + if ( !! i && i.element != c.element[0]) { + var j = !1; + d.tolerance == "touch" ? j = !(i.left > g || i.right < e || i.top > h || i.bottom < f) : d.tolerance == "fit" && (j = i.left > e && i.right < g && i.top > f && i.bottom < h), + j ? (i.selected && (i.$element.removeClass("ui-selected"), i.selected = !1), i.unselecting && (i.$element.removeClass("ui-unselecting"), i.unselecting = !1), i.selecting || (i.$element.addClass("ui-selecting"), i.selecting = !0, c._trigger("selecting", b, { + selecting: i.element + }))) : (i.selecting && ((b.metaKey || b.ctrlKey) && i.startselected ? (i.$element.removeClass("ui-selecting"), i.selecting = !1, i.$element.addClass("ui-selected"), i.selected = !0) : (i.$element.removeClass("ui-selecting"), i.selecting = !1, i.startselected && (i.$element.addClass("ui-unselecting"), i.unselecting = !0), c._trigger("unselecting", b, { + unselecting: i.element + }))), i.selected && !b.metaKey && !b.ctrlKey && !i.startselected && (i.$element.removeClass("ui-selected"), i.selected = !1, i.$element.addClass("ui-unselecting"), i.unselecting = !0, c._trigger("unselecting", b, { + unselecting: i.element + }))) + } + }); + return ! 1 + } + }, + _mouseStop: function(b) { + var c = this; + this.dragged = !1; + var d = this.options; + a(".ui-unselecting", this.element[0]).each(function() { + var d = a.data(this, "selectable-item"); + d.$element.removeClass("ui-unselecting"), + d.unselecting = !1, + d.startselected = !1, + c._trigger("unselected", b, { + unselected: d.element + }) + }), + a(".ui-selecting", this.element[0]).each(function() { + var d = a.data(this, "selectable-item"); + d.$element.removeClass("ui-selecting").addClass("ui-selected"), + d.selecting = !1, + d.selected = !0, + d.startselected = !0, + c._trigger("selected", b, { + selected: d.element + }) + }), + this._trigger("stop", b), + this.helper.remove(); + return ! 1 + } + }), + a.extend(a.ui.selectable, { + version: "1.8.18" + }) +})(jQuery); +/* + * jQuery UI Sortable 1.8.18 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Sortables + * + * Depends: + * jquery.ui.core.js + * jquery.ui.mouse.js + * jquery.ui.widget.js + */ +(function(a, b) { + a.widget("ui.sortable", a.ui.mouse, { + widgetEventPrefix: "sort", + ready: !1, + options: { + appendTo: "parent", + axis: !1, + connectWith: !1, + containment: !1, + cursor: "auto", + cursorAt: !1, + dropOnEmpty: !0, + forcePlaceholderSize: !1, + forceHelperSize: !1, + grid: !1, + handle: !1, + helper: "original", + items: "> *", + opacity: !1, + placeholder: !1, + revert: !1, + scroll: !0, + scrollSensitivity: 20, + scrollSpeed: 20, + scope: "default", + tolerance: "intersect", + zIndex: 1e3 + }, + _create: function() { + var a = this.options; + this.containerCache = {}, + this.element.addClass("ui-sortable"), + this.refresh(), + this.floating = this.items.length ? a.axis === "x" || /left|right/.test(this.items[0].item.css("float")) || /inline|table-cell/.test(this.items[0].item.css("display")) : !1, + this.offset = this.element.offset(), + this._mouseInit(), + this.ready = !0 + }, + destroy: function() { + a.Widget.prototype.destroy.call(this), + this.element.removeClass("ui-sortable ui-sortable-disabled"), + this._mouseDestroy(); + for (var b = this.items.length - 1; b >= 0; b--) this.items[b].item.removeData(this.widgetName + "-item"); + return this + }, + _setOption: function(b, c) { + b === "disabled" ? (this.options[b] = c, this.widget()[c ? "addClass": "removeClass"]("ui-sortable-disabled")) : a.Widget.prototype._setOption.apply(this, arguments) + }, + _mouseCapture: function(b, c) { + var d = this; + if (this.reverting) return ! 1; + if (this.options.disabled || this.options.type == "static") return ! 1; + this._refreshItems(b); + var e = null, + f = this, + g = a(b.target).parents().each(function() { + if (a.data(this, d.widgetName + "-item") == f) { + e = a(this); + return ! 1 + } + }); + a.data(b.target, d.widgetName + "-item") == f && (e = a(b.target)); + if (!e) return ! 1; + if (this.options.handle && !c) { + var h = !1; + a(this.options.handle, e).find("*").andSelf().each(function() { + this == b.target && (h = !0) + }); + if (!h) return ! 1 + } + this.currentItem = e, + + this._removeCurrentsFromItems(); + return ! 0 + }, + _mouseStart: function(b, c, d) { + var e = this.options, + f = this; + this.currentContainer = this, + this.refreshPositions(), + this.helper = this._createHelper(b), + this._cacheHelperProportions(), + this._cacheMargins(), + this.scrollParent = this.helper.scrollParent(), + this.offset = this.currentItem.offset(), + this.offset = { + top: this.offset.top - this.margins.top, + left: this.offset.left - this.margins.left + }, + this.helper.css("position", "absolute"), + this.cssPosition = this.helper.css("position"), + a.extend(this.offset, { + click: { + left: b.pageX - this.offset.left, + top: b.pageY - this.offset.top + }, + parent: this._getParentOffset(), + relative: this._getRelativeOffset() + }), + this.originalPosition = this._generatePosition(b), + this.originalPageX = b.pageX, + this.originalPageY = b.pageY, + e.cursorAt && this._adjustOffsetFromHelper(e.cursorAt), + this.domPosition = { + prev: this.currentItem.prev()[0], + parent: this.currentItem.parent()[0] + }, + this.helper[0] != this.currentItem[0] && this.currentItem.hide(), + this._createPlaceholder(), + e.containment && this._setContainment(), + e.cursor && (a("body").css("cursor") && (this._storedCursor = a("body").css("cursor")), a("body").css("cursor", e.cursor)), + e.opacity && (this.helper.css("opacity") && (this._storedOpacity = this.helper.css("opacity")), this.helper.css("opacity", e.opacity)), + e.zIndex && (this.helper.css("zIndex") && (this._storedZIndex = this.helper.css("zIndex")), this.helper.css("zIndex", e.zIndex)), + this.scrollParent[0] != document && this.scrollParent[0].tagName != "HTML" && (this.overflowOffset = this.scrollParent.offset()), + this._trigger("start", b, this._uiHash()), + this._preserveHelperProportions || this._cacheHelperProportions(); + if (!d) for (var g = this.containers.length - 1; g >= 0; g--) this.containers[g]._trigger("activate", b, f._uiHash(this)); + a.ui.ddmanager && (a.ui.ddmanager.current = this), + a.ui.ddmanager && !e.dropBehaviour && a.ui.ddmanager.prepareOffsets(this, b), + this.dragging = !0, + this.helper.addClass("ui-sortable-helper"), + this._mouseDrag(b); + return ! 0 + }, + _mouseDrag: function(b) { + this.position = this._generatePosition(b), + this.positionAbs = this._convertPositionTo("absolute"), + this.lastPositionAbs || (this.lastPositionAbs = this.positionAbs); + if (this.options.scroll) { + var c = this.options, + d = !1; + this.scrollParent[0] != document && this.scrollParent[0].tagName != "HTML" ? (this.overflowOffset.top + this.scrollParent[0].offsetHeight - b.pageY < c.scrollSensitivity ? this.scrollParent[0].scrollTop = d = this.scrollParent[0].scrollTop + c.scrollSpeed: b.pageY - this.overflowOffset.top < c.scrollSensitivity && (this.scrollParent[0].scrollTop = d = this.scrollParent[0].scrollTop - c.scrollSpeed), this.overflowOffset.left + this.scrollParent[0].offsetWidth - b.pageX < c.scrollSensitivity ? this.scrollParent[0].scrollLeft = d = this.scrollParent[0].scrollLeft + c.scrollSpeed: b.pageX - this.overflowOffset.left < c.scrollSensitivity && (this.scrollParent[0].scrollLeft = d = this.scrollParent[0].scrollLeft - c.scrollSpeed)) : (b.pageY - a(document).scrollTop() < c.scrollSensitivity ? d = a(document).scrollTop(a(document).scrollTop() - c.scrollSpeed) : a(window).height() - (b.pageY - a(document).scrollTop()) < c.scrollSensitivity && (d = a(document).scrollTop(a(document).scrollTop() + c.scrollSpeed)), b.pageX - a(document).scrollLeft() < c.scrollSensitivity ? d = a(document).scrollLeft(a(document).scrollLeft() - c.scrollSpeed) : a(window).width() - (b.pageX - a(document).scrollLeft()) < c.scrollSensitivity && (d = a(document).scrollLeft(a(document).scrollLeft() + c.scrollSpeed))), + d !== !1 && a.ui.ddmanager && !c.dropBehaviour && a.ui.ddmanager.prepareOffsets(this, b) + } + this.positionAbs = this._convertPositionTo("absolute"); + if (!this.options.axis || this.options.axis != "y") this.helper[0].style.left = this.position.left + "px"; + if (!this.options.axis || this.options.axis != "x") this.helper[0].style.top = this.position.top + "px"; + for (var e = this.items.length - 1; e >= 0; e--) { + var f = this.items[e], + g = f.item[0], + h = this._intersectsWithPointer(f); + if (!h) continue; + if (g != this.currentItem[0] && this.placeholder[h == 1 ? "next": "prev"]()[0] != g && !a.ui.contains(this.placeholder[0], g) && (this.options.type == "semi-dynamic" ? !a.ui.contains(this.element[0], g) : !0)) { + this.direction = h == 1 ? "down": "up"; + if (this.options.tolerance == "pointer" || this._intersectsWithSides(f)) this._rearrange(b, f); + else break; + this._trigger("change", b, this._uiHash()); + break + } + } + this._contactContainers(b), + a.ui.ddmanager && a.ui.ddmanager.drag(this, b), + this._trigger("sort", b, this._uiHash()), + this.lastPositionAbs = this.positionAbs; + return ! 1 + }, + _mouseStop: function(b, c) { + if ( !! b) { + a.ui.ddmanager && !this.options.dropBehaviour && a.ui.ddmanager.drop(this, b); + if (this.options.revert) { + var d = this, + e = d.placeholder.offset(); + d.reverting = !0, + a(this.helper).animate({ + left: e.left - this.offset.parent.left - d.margins.left + (this.offsetParent[0] == document.body ? 0 : this.offsetParent[0].scrollLeft), + top: e.top - this.offset.parent.top - d.margins.top + (this.offsetParent[0] == document.body ? 0 : this.offsetParent[0].scrollTop) + }, + parseInt(this.options.revert, 10) || 500, + function() { + d._clear(b) + }) + } else this._clear(b, c); + return ! 1 + } + }, + cancel: function() { + var b = this; + if (this.dragging) { + this._mouseUp({ + target: null + }), + this.options.helper == "original" ? this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper") : this.currentItem.show(); + for (var c = this.containers.length - 1; c >= 0; c--) this.containers[c]._trigger("deactivate", null, b._uiHash(this)), + this.containers[c].containerCache.over && (this.containers[c]._trigger("out", null, b._uiHash(this)), this.containers[c].containerCache.over = 0) + } + this.placeholder && (this.placeholder[0].parentNode && this.placeholder[0].parentNode.removeChild(this.placeholder[0]), this.options.helper != "original" && this.helper && this.helper[0].parentNode && this.helper.remove(), a.extend(this, { + helper: null, + dragging: !1, + reverting: !1, + _noFinalSort: null + }), this.domPosition.prev ? a(this.domPosition.prev).after(this.currentItem) : a(this.domPosition.parent).prepend(this.currentItem)); + return this + }, + serialize: function(b) { + var c = this._getItemsAsjQuery(b && b.connected), + d = []; + b = b || {}, + a(c).each(function() { + var c = (a(b.item || this).attr(b.attribute || "id") || "").match(b.expression || /(.+)[-=_](.+)/); + c && d.push((b.key || c[1] + "[]") + "=" + (b.key && b.expression ? c[1] : c[2])) + }), + !d.length && b.key && d.push(b.key + "="); + return d.join("&") + }, + toArray: function(b) { + var c = this._getItemsAsjQuery(b && b.connected), + d = []; + b = b || {}, + c.each(function() { + d.push(a(b.item || this).attr(b.attribute || "id") || "") + }); + return d + }, + _intersectsWith: function(a) { + var b = this.positionAbs.left, + c = b + this.helperProportions.width, + d = this.positionAbs.top, + e = d + this.helperProportions.height, + f = a.left, + g = f + a.width, + h = a.top, + i = h + a.height, + j = this.offset.click.top, + k = this.offset.click.left, + l = d + j > h && d + j < i && b + k > f && b + k < g; + return this.options.tolerance == "pointer" || this.options.forcePointerForContainers || this.options.tolerance != "pointer" && this.helperProportions[this.floating ? "width": "height"] > a[this.floating ? "width": "height"] ? l: f < b + this.helperProportions.width / 2 && c - this.helperProportions.width / 2 < g && h < d + this.helperProportions.height / 2 && e - this.helperProportions.height / 2 < i + }, + _intersectsWithPointer: function(b) { + var c = a.ui.isOverAxis(this.positionAbs.top + this.offset.click.top, b.top, b.height), + d = a.ui.isOverAxis(this.positionAbs.left + this.offset.click.left, b.left, b.width), + e = c && d, + f = this._getDragVerticalDirection(), + g = this._getDragHorizontalDirection(); + if (!e) return ! 1; + return this.floating ? g && g == "right" || f == "down" ? 2 : 1 : f && (f == "down" ? 2 : 1) + }, + _intersectsWithSides: function(b) { + var c = a.ui.isOverAxis(this.positionAbs.top + this.offset.click.top, b.top + b.height / 2, b.height), + d = a.ui.isOverAxis(this.positionAbs.left + this.offset.click.left, b.left + b.width / 2, b.width), + e = this._getDragVerticalDirection(), + f = this._getDragHorizontalDirection(); + return this.floating && f ? f == "right" && d || f == "left" && !d: e && (e == "down" && c || e == "up" && !c) + }, + _getDragVerticalDirection: function() { + var a = this.positionAbs.top - this.lastPositionAbs.top; + return a != 0 && (a > 0 ? "down": "up") + }, + _getDragHorizontalDirection: function() { + var a = this.positionAbs.left - this.lastPositionAbs.left; + return a != 0 && (a > 0 ? "right": "left") + }, + refresh: function(a) { + this._refreshItems(a), + this.refreshPositions(); + return this + }, + _connectWith: function() { + var a = this.options; + return a.connectWith.constructor == String ? [a.connectWith] : a.connectWith + }, + _getItemsAsjQuery: function(b) { + var c = this, + d = [], + e = [], + f = this._connectWith(); + if (f && b) for (var g = f.length - 1; g >= 0; g--) { + var h = a(f[g]); + for (var i = h.length - 1; i >= 0; i--) { + var j = a.data(h[i], this.widgetName); + j && j != this && !j.options.disabled && e.push([a.isFunction(j.options.items) ? j.options.items.call(j.element) : a(j.options.items, j.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"), j]) + } + } + e.push([a.isFunction(this.options.items) ? this.options.items.call(this.element, null, { + options: this.options, + item: this.currentItem + }) : a(this.options.items, this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"), this]); + for (var g = e.length - 1; g >= 0; g--) e[g][0].each(function() { + d.push(this) + }); + return a(d) + }, + _removeCurrentsFromItems: function() { + var a = this.currentItem.find(":data(" + this.widgetName + "-item)"); + for (var b = 0; b < this.items.length; b++) for (var c = 0; c < a.length; c++) a[c] == this.items[b].item[0] && this.items.splice(b, 1) + }, + _refreshItems: function(b) { + this.items = [], + this.containers = [this]; + var c = this.items, + d = this, + e = [[a.isFunction(this.options.items) ? this.options.items.call(this.element[0], b, { + item: this.currentItem + }) : a(this.options.items, this.element), this]], + f = this._connectWith(); + if (f && this.ready) for (var g = f.length - 1; g >= 0; g--) { + var h = a(f[g]); + for (var i = h.length - 1; i >= 0; i--) { + var j = a.data(h[i], this.widgetName); + j && j != this && !j.options.disabled && (e.push([a.isFunction(j.options.items) ? j.options.items.call(j.element[0], b, { + item: this.currentItem + }) : a(j.options.items, j.element), j]), this.containers.push(j)) + } + } + for (var g = e.length - 1; g >= 0; g--) { + var k = e[g][1], + l = e[g][0]; + for (var i = 0, + m = l.length; i < m; i++) { + var n = a(l[i]); + n.data(this.widgetName + "-item", k), + c.push({ + item: n, + instance: k, + width: 0, + height: 0, + left: 0, + top: 0 + }) + } + } + }, + refreshPositions: function(b) { + this.offsetParent && this.helper && (this.offset.parent = this._getParentOffset()); + for (var c = this.items.length - 1; c >= 0; c--) { + var d = this.items[c]; + if (d.instance != this.currentContainer && this.currentContainer && d.item[0] != this.currentItem[0]) continue; + var e = this.options.toleranceElement ? a(this.options.toleranceElement, d.item) : d.item; + b || (d.width = e.outerWidth(), d.height = e.outerHeight()); + var f = e.offset(); + d.left = f.left, + d.top = f.top + } + if (this.options.custom && this.options.custom.refreshContainers) this.options.custom.refreshContainers.call(this); + else for (var c = this.containers.length - 1; c >= 0; c--) { + var f = this.containers[c].element.offset(); + this.containers[c].containerCache.left = f.left, + this.containers[c].containerCache.top = f.top, + this.containers[c].containerCache.width = this.containers[c].element.outerWidth(), + this.containers[c].containerCache.height = this.containers[c].element.outerHeight() + } + return this + }, + _createPlaceholder: function(b) { + var c = b || this, + d = c.options; + if (!d.placeholder || d.placeholder.constructor == String) { + var e = d.placeholder; + d.placeholder = { + element: function() { + var b = a(document.createElement(c.currentItem[0].nodeName)).addClass(e || c.currentItem[0].className + " ui-sortable-placeholder").removeClass("ui-sortable-helper")[0]; + e || (b.style.visibility = "hidden"); + return b + }, + update: function(a, b) { + if (!e || !!d.forcePlaceholderSize) b.height() || b.height(c.currentItem.innerHeight() - parseInt(c.currentItem.css("paddingTop") || 0, 10) - parseInt(c.currentItem.css("paddingBottom") || 0, 10)), + b.width() || b.width(c.currentItem.innerWidth() - parseInt(c.currentItem.css("paddingLeft") || 0, 10) - parseInt(c.currentItem.css("paddingRight") || 0, 10)) + } + } + } + c.placeholder = a(d.placeholder.element.call(c.element, c.currentItem)), + c.currentItem.after(c.placeholder), + d.placeholder.update(c, c.placeholder) + }, + _contactContainers: function(b) { + var c = null, + d = null; + for (var e = this.containers.length - 1; e >= 0; e--) { + if (a.ui.contains(this.currentItem[0], this.containers[e].element[0])) continue; + if (this._intersectsWith(this.containers[e].containerCache)) { + if (c && a.ui.contains(this.containers[e].element[0], c.element[0])) continue; + c = this.containers[e], + d = e + } else this.containers[e].containerCache.over && (this.containers[e]._trigger("out", b, this._uiHash(this)), this.containers[e].containerCache.over = 0) + } + if ( !! c) if (this.containers.length === 1) this.containers[d]._trigger("over", b, this._uiHash(this)), + this.containers[d].containerCache.over = 1; + else if (this.currentContainer != this.containers[d]) { + var f = 1e4, + g = null, + h = this.positionAbs[this.containers[d].floating ? "left": "top"]; + for (var i = this.items.length - 1; i >= 0; i--) { + if (!a.ui.contains(this.containers[d].element[0], this.items[i].item[0])) continue; + var j = this.items[i][this.containers[d].floating ? "left": "top"]; + Math.abs(j - h) < f && (f = Math.abs(j - h), g = this.items[i]) + } + if (!g && !this.options.dropOnEmpty) return; + this.currentContainer = this.containers[d], + g ? this._rearrange(b, g, null, !0) : this._rearrange(b, null, this.containers[d].element, !0), + this._trigger("change", b, this._uiHash()), + this.containers[d]._trigger("change", b, this._uiHash(this)), + this.options.placeholder.update(this.currentContainer, this.placeholder), + this.containers[d]._trigger("over", b, this._uiHash(this)), + this.containers[d].containerCache.over = 1 + } + }, + _createHelper: function(b) { + var c = this.options, + d = a.isFunction(c.helper) ? a(c.helper.apply(this.element[0], [b, this.currentItem])) : c.helper == "clone" ? this.currentItem.clone() : this.currentItem; + d.parents("body").length || a(c.appendTo != "parent" ? c.appendTo: this.currentItem[0].parentNode)[0].appendChild(d[0]), + d[0] == this.currentItem[0] && (this._storedCSS = { + width: this.currentItem[0].style.width, + height: this.currentItem[0].style.height, + position: this.currentItem.css("position"), + top: this.currentItem.css("top"), + left: this.currentItem.css("left") + }), + (d[0].style.width == "" || c.forceHelperSize) && d.width(this.currentItem.width()), + (d[0].style.height == "" || c.forceHelperSize) && d.height(this.currentItem.height()); + return d + }, + _adjustOffsetFromHelper: function(b) { + typeof b == "string" && (b = b.split(" ")), + a.isArray(b) && (b = { + left: +b[0], + top: +b[1] || 0 + }), + "left" in b && (this.offset.click.left = b.left + this.margins.left), + "right" in b && (this.offset.click.left = this.helperProportions.width - b.right + this.margins.left), + "top" in b && (this.offset.click.top = b.top + this.margins.top), + "bottom" in b && (this.offset.click.top = this.helperProportions.height - b.bottom + this.margins.top) + }, + _getParentOffset: function() { + this.offsetParent = this.helper.offsetParent(); + var b = this.offsetParent.offset(); + this.cssPosition == "absolute" && this.scrollParent[0] != document && a.ui.contains(this.scrollParent[0], this.offsetParent[0]) && (b.left += this.scrollParent.scrollLeft(), b.top += this.scrollParent.scrollTop()); + if (this.offsetParent[0] == document.body || this.offsetParent[0].tagName && this.offsetParent[0].tagName.toLowerCase() == "html" && a.browser.msie) b = { + top: 0, + left: 0 + }; + return { + top: b.top + (parseInt(this.offsetParent.css("borderTopWidth"), 10) || 0), + left: b.left + (parseInt(this.offsetParent.css("borderLeftWidth"), 10) || 0) + } + }, + _getRelativeOffset: function() { + if (this.cssPosition == "relative") { + var a = this.currentItem.position(); + return { + top: a.top - (parseInt(this.helper.css("top"), 10) || 0) + this.scrollParent.scrollTop(), + left: a.left - (parseInt(this.helper.css("left"), 10) || 0) + this.scrollParent.scrollLeft() + } + } + return { + top: 0, + left: 0 + } + }, + _cacheMargins: function() { + this.margins = { + left: parseInt(this.currentItem.css("marginLeft"), 10) || 0, + top: parseInt(this.currentItem.css("marginTop"), 10) || 0 + } + }, + _cacheHelperProportions: function() { + this.helperProportions = { + width: this.helper.outerWidth(), + height: this.helper.outerHeight() + } + }, + _setContainment: function() { + var b = this.options; + b.containment == "parent" && (b.containment = this.helper[0].parentNode); + if (b.containment == "document" || b.containment == "window") this.containment = [0 - this.offset.relative.left - this.offset.parent.left, 0 - this.offset.relative.top - this.offset.parent.top, a(b.containment == "document" ? document: window).width() - this.helperProportions.width - this.margins.left, (a(b.containment == "document" ? document: window).height() || document.body.parentNode.scrollHeight) - this.helperProportions.height - this.margins.top]; + if (!/^(document|window|parent)$/.test(b.containment)) { + var c = a(b.containment)[0], + d = a(b.containment).offset(), + e = a(c).css("overflow") != "hidden"; + this.containment = [d.left + (parseInt(a(c).css("borderLeftWidth"), 10) || 0) + (parseInt(a(c).css("paddingLeft"), 10) || 0) - this.margins.left, d.top + (parseInt(a(c).css("borderTopWidth"), 10) || 0) + (parseInt(a(c).css("paddingTop"), 10) || 0) - this.margins.top, d.left + (e ? Math.max(c.scrollWidth, c.offsetWidth) : c.offsetWidth) - (parseInt(a(c).css("borderLeftWidth"), 10) || 0) - (parseInt(a(c).css("paddingRight"), 10) || 0) - this.helperProportions.width - this.margins.left, d.top + (e ? Math.max(c.scrollHeight, c.offsetHeight) : c.offsetHeight) - (parseInt(a(c).css("borderTopWidth"), 10) || 0) - (parseInt(a(c).css("paddingBottom"), 10) || 0) - this.helperProportions.height - this.margins.top] + } + }, + _convertPositionTo: function(b, c) { + c || (c = this.position); + var d = b == "absolute" ? 1 : -1, + e = this.options, + f = this.cssPosition == "absolute" && (this.scrollParent[0] == document || !a.ui.contains(this.scrollParent[0], this.offsetParent[0])) ? this.offsetParent: this.scrollParent, + g = /(html|body)/i.test(f[0].tagName); + return { + top: c.top + this.offset.relative.top * d + this.offset.parent.top * d - (a.browser.safari && this.cssPosition == "fixed" ? 0 : (this.cssPosition == "fixed" ? -this.scrollParent.scrollTop() : g ? 0 : f.scrollTop()) * d), + left: c.left + this.offset.relative.left * d + this.offset.parent.left * d - (a.browser.safari && this.cssPosition == "fixed" ? 0 : (this.cssPosition == "fixed" ? -this.scrollParent.scrollLeft() : g ? 0 : f.scrollLeft()) * d) + } + }, + _generatePosition: function(b) { + var c = this.options, + d = this.cssPosition == "absolute" && (this.scrollParent[0] == document || !a.ui.contains(this.scrollParent[0], this.offsetParent[0])) ? this.offsetParent: this.scrollParent, + e = /(html|body)/i.test(d[0].tagName); + this.cssPosition == "relative" && (this.scrollParent[0] == document || this.scrollParent[0] == this.offsetParent[0]) && (this.offset.relative = this._getRelativeOffset()); + var f = b.pageX, + g = b.pageY; + if (this.originalPosition) { + this.containment && (b.pageX - this.offset.click.left < this.containment[0] && (f = this.containment[0] + this.offset.click.left), b.pageY - this.offset.click.top < this.containment[1] && (g = this.containment[1] + this.offset.click.top), b.pageX - this.offset.click.left > this.containment[2] && (f = this.containment[2] + this.offset.click.left), b.pageY - this.offset.click.top > this.containment[3] && (g = this.containment[3] + this.offset.click.top)); + if (c.grid) { + var h = this.originalPageY + Math.round((g - this.originalPageY) / c.grid[1]) * c.grid[1]; + g = this.containment ? h - this.offset.click.top < this.containment[1] || h - this.offset.click.top > this.containment[3] ? h - this.offset.click.top < this.containment[1] ? h + c.grid[1] : h - c.grid[1] : h: h; + var i = this.originalPageX + Math.round((f - this.originalPageX) / c.grid[0]) * c.grid[0]; + f = this.containment ? i - this.offset.click.left < this.containment[0] || i - this.offset.click.left > this.containment[2] ? i - this.offset.click.left < this.containment[0] ? i + c.grid[0] : i - c.grid[0] : i: i + } + } + return { + top: g - this.offset.click.top - this.offset.relative.top - this.offset.parent.top + (a.browser.safari && this.cssPosition == "fixed" ? 0 : this.cssPosition == "fixed" ? -this.scrollParent.scrollTop() : e ? 0 : d.scrollTop()), + left: f - this.offset.click.left - this.offset.relative.left - this.offset.parent.left + (a.browser.safari && this.cssPosition == "fixed" ? 0 : this.cssPosition == "fixed" ? -this.scrollParent.scrollLeft() : e ? 0 : d.scrollLeft()) + } + }, + _rearrange: function(a, b, c, d) { + c ? c[0].appendChild(this.placeholder[0]) : b.item[0].parentNode.insertBefore(this.placeholder[0], this.direction == "down" ? b.item[0] : b.item[0].nextSibling), + this.counter = this.counter ? ++this.counter: 1; + var e = this, + f = this.counter; + window.setTimeout(function() { + f == e.counter && e.refreshPositions(!d) + }, + 0) + }, + _clear: function(b, c) { + this.reverting = !1; + var d = [], + e = this; ! this._noFinalSort && this.currentItem.parent().length && this.placeholder.before(this.currentItem), + this._noFinalSort = null; + if (this.helper[0] == this.currentItem[0]) { + for (var f in this._storedCSS) if (this._storedCSS[f] == "auto" || this._storedCSS[f] == "static") this._storedCSS[f] = ""; + this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper") + } else this.currentItem.show(); + this.fromOutside && !c && d.push(function(a) { + this._trigger("receive", a, this._uiHash(this.fromOutside)) + }), + (this.fromOutside || this.domPosition.prev != this.currentItem.prev().not(".ui-sortable-helper")[0] || this.domPosition.parent != this.currentItem.parent()[0]) && !c && d.push(function(a) { + this._trigger("update", a, this._uiHash()) + }); + if (!a.ui.contains(this.element[0], this.currentItem[0])) { + c || d.push(function(a) { + this._trigger("remove", a, this._uiHash()) + }); + for (var f = this.containers.length - 1; f >= 0; f--) a.ui.contains(this.containers[f].element[0], this.currentItem[0]) && !c && (d.push(function(a) { + return function(b) { + a._trigger("receive", b, this._uiHash(this)) + } + }.call(this, this.containers[f])), d.push(function(a) { + return function(b) { + a._trigger("update", b, this._uiHash(this)) + } + }.call(this, this.containers[f]))) + } + for (var f = this.containers.length - 1; f >= 0; f--) c || d.push(function(a) { + return function(b) { + a._trigger("deactivate", b, this._uiHash(this)) + } + }.call(this, this.containers[f])), + this.containers[f].containerCache.over && (d.push(function(a) { + return function(b) { + a._trigger("out", b, this._uiHash(this)) + } + }.call(this, this.containers[f])), this.containers[f].containerCache.over = 0); + this._storedCursor && a("body").css("cursor", this._storedCursor), + this._storedOpacity && this.helper.css("opacity", this._storedOpacity), + this._storedZIndex && this.helper.css("zIndex", this._storedZIndex == "auto" ? "": this._storedZIndex), + this.dragging = !1; + if (this.cancelHelperRemoval) { + if (!c) { + this._trigger("beforeStop", b, this._uiHash()); + for (var f = 0; f < d.length; f++) d[f].call(this, b); + this._trigger("stop", b, this._uiHash()) + } + return ! 1 + } + c || this._trigger("beforeStop", b, this._uiHash()), + this.placeholder[0].parentNode.removeChild(this.placeholder[0]), + this.helper[0] != this.currentItem[0] && this.helper.remove(), + this.helper = null; + if (!c) { + for (var f = 0; f < d.length; f++) d[f].call(this, b); + this._trigger("stop", b, this._uiHash()) + } + this.fromOutside = !1; + return ! 0 + }, + _trigger: function() { + a.Widget.prototype._trigger.apply(this, arguments) === !1 && this.cancel() + }, + _uiHash: function(b) { + var c = b || this; + return { + helper: c.helper, + placeholder: c.placeholder || a([]), + position: c.position, + originalPosition: c.originalPosition, + offset: c.positionAbs, + item: c.currentItem, + sender: b ? b.element: null + } + } + }), + a.extend(a.ui.sortable, { + version: "1.8.18" + }) +})(jQuery); +/* + * jQuery UI Datepicker 1.8.18 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Datepicker + * + * Depends: + * jquery.ui.core.js + */ +(function($, undefined) { + function isArray(a) { + return a && ($.browser.safari && typeof a == "object" && a.length || a.constructor && a.constructor.toString().match(/\Array\(\)/)) + } + function extendRemove(a, b) { + $.extend(a, b); + for (var c in b) if (b[c] == null || b[c] == undefined) a[c] = b[c]; + return a + } + function bindHover(a) { + var b = "button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a"; + return a.bind("mouseout", + function(a) { + var c = $(a.target).closest(b); ! c.length || c.removeClass("ui-state-hover ui-datepicker-prev-hover ui-datepicker-next-hover") + }).bind("mouseover", + function(c) { + var d = $(c.target).closest(b); ! $.datepicker._isDisabledDatepicker(instActive.inline ? a.parent()[0] : instActive.input[0]) && !!d.length && (d.parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"), d.addClass("ui-state-hover"), d.hasClass("ui-datepicker-prev") && d.addClass("ui-datepicker-prev-hover"), d.hasClass("ui-datepicker-next") && d.addClass("ui-datepicker-next-hover")) + }) + } + function Datepicker() { + this.debug = !1, + this._curInst = null, + this._keyEvent = !1, + this._disabledInputs = [], + this._datepickerShowing = !1, + this._inDialog = !1, + this._mainDivId = "ui-datepicker-div", + this._inlineClass = "ui-datepicker-inline", + this._appendClass = "ui-datepicker-append", + this._triggerClass = "ui-datepicker-trigger", + this._dialogClass = "ui-datepicker-dialog", + this._disableClass = "ui-datepicker-disabled", + this._unselectableClass = "ui-datepicker-unselectable", + this._currentClass = "ui-datepicker-current-day", + this._dayOverClass = "ui-datepicker-days-cell-over", + this.regional = [], + this.regional[""] = { + closeText: "Done", + prevText: "Prev", + nextText: "Next", + currentText: "Today", + monthNames: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], + monthNamesShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], + dayNames: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], + dayNamesShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], + dayNamesMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], + weekHeader: "Wk", + dateFormat: "mm/dd/yy", + firstDay: 0, + isRTL: !1, + showMonthAfterYear: !1, + yearSuffix: "" + }, + this._defaults = { + showOn: "focus", + showAnim: "fadeIn", + showOptions: {}, + defaultDate: null, + appendText: "", + buttonText: "...", + buttonImage: "", + buttonImageOnly: !1, + hideIfNoPrevNext: !1, + navigationAsDateFormat: !1, + gotoCurrent: !1, + changeMonth: !1, + changeYear: !1, + yearRange: "c-10:c+10", + showOtherMonths: !1, + selectOtherMonths: !1, + showWeek: !1, + calculateWeek: this.iso8601Week, + shortYearCutoff: "+10", + minDate: null, + maxDate: null, + duration: "fast", + beforeShowDay: null, + beforeShow: null, + onSelect: null, + onChangeMonthYear: null, + onClose: null, + numberOfMonths: 1, + showCurrentAtPos: 0, + stepMonths: 1, + stepBigMonths: 12, + altField: "", + altFormat: "", + constrainInput: !0, + showButtonPanel: !1, + autoSize: !1, + disabled: !1 + }, + $.extend(this._defaults, this.regional[""]), + this.dpDiv = bindHover($('
')) + } + $.extend($.ui, { + datepicker: { + version: "1.8.18" + } + }); + var PROP_NAME = "datepicker", + dpuuid = (new Date).getTime(), + instActive; + $.extend(Datepicker.prototype, { + markerClassName: "hasDatepicker", + maxRows: 4, + log: function() { + this.debug && console.log.apply("", arguments) + }, + _widgetDatepicker: function() { + return this.dpDiv + }, + setDefaults: function(a) { + extendRemove(this._defaults, a || {}); + return this + }, + _attachDatepicker: function(target, settings) { + var inlineSettings = null; + for (var attrName in this._defaults) { + var attrValue = target.getAttribute("date:" + attrName); + if (attrValue) { + inlineSettings = inlineSettings || {}; + try { + inlineSettings[attrName] = eval(attrValue) + } catch(err) { + inlineSettings[attrName] = attrValue + } + } + } + var nodeName = target.nodeName.toLowerCase(), + inline = nodeName == "div" || nodeName == "span"; + target.id || (this.uuid += 1, target.id = "dp" + this.uuid); + var inst = this._newInst($(target), inline); + inst.settings = $.extend({}, + settings || {}, + inlineSettings || {}), + nodeName == "input" ? this._connectDatepicker(target, inst) : inline && this._inlineDatepicker(target, inst) + }, + _newInst: function(a, b) { + var c = a[0].id.replace(/([^A-Za-z0-9_-])/g, "\\\\$1"); + return { + id: c, + input: a, + selectedDay: 0, + selectedMonth: 0, + selectedYear: 0, + drawMonth: 0, + drawYear: 0, + inline: b, + dpDiv: b ? bindHover($('
')) : this.dpDiv + } + }, + _connectDatepicker: function(a, b) { + var c = $(a); + b.append = $([]), + b.trigger = $([]); + c.hasClass(this.markerClassName) || (this._attachments(c, b), c.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker", + function(a, c, d) { + b.settings[c] = d + }).bind("getData.datepicker", + function(a, c) { + return this._get(b, c) + }), this._autoSize(b), $.data(a, PROP_NAME, b), b.settings.disabled && this._disableDatepicker(a)) + }, + _attachments: function(a, b) { + var c = this._get(b, "appendText"), + d = this._get(b, "isRTL"); + b.append && b.append.remove(), + c && (b.append = $('' + c + ""), a[d ? "before": "after"](b.append)), + a.unbind("focus", this._showDatepicker), + b.trigger && b.trigger.remove(); + var e = this._get(b, "showOn"); (e == "focus" || e == "both") && a.focus(this._showDatepicker); + if (e == "button" || e == "both") { + var f = this._get(b, "buttonText"), + g = this._get(b, "buttonImage"); + b.trigger = $(this._get(b, "buttonImageOnly") ? $("").addClass(this._triggerClass).attr({ + src: g, + alt: f, + title: f + }) : $('').addClass(this._triggerClass).html(g == "" ? f: $("").attr({ + src: g, + alt: f, + title: f + }))), + a[d ? "before": "after"](b.trigger), + b.trigger.click(function() { + $.datepicker._datepickerShowing && $.datepicker._lastInput == a[0] ? $.datepicker._hideDatepicker() : $.datepicker._datepickerShowing && $.datepicker._lastInput != a[0] ? ($.datepicker._hideDatepicker(), $.datepicker._showDatepicker(a[0])) : $.datepicker._showDatepicker(a[0]); + return ! 1 + }) + } + }, + _autoSize: function(a) { + if (this._get(a, "autoSize") && !a.inline) { + var b = new Date(2009, 11, 20), + c = this._get(a, "dateFormat"); + if (c.match(/[DM]/)) { + var d = function(a) { + var b = 0, + c = 0; + for (var d = 0; d < a.length; d++) a[d].length > b && (b = a[d].length, c = d); + return c + }; + b.setMonth(d(this._get(a, c.match(/MM/) ? "monthNames": "monthNamesShort"))), + b.setDate(d(this._get(a, c.match(/DD/) ? "dayNames": "dayNamesShort")) + 20 - b.getDay()) + } + a.input.attr("size", this._formatDate(a, b).length) + } + }, + _inlineDatepicker: function(a, b) { + var c = $(a); + c.hasClass(this.markerClassName) || (c.addClass(this.markerClassName).append(b.dpDiv).bind("setData.datepicker", + function(a, c, d) { + b.settings[c] = d + }).bind("getData.datepicker", + function(a, c) { + return this._get(b, c) + }), $.data(a, PROP_NAME, b), this._setDate(b, this._getDefaultDate(b), !0), this._updateDatepicker(b), this._updateAlternate(b), b.settings.disabled && this._disableDatepicker(a), b.dpDiv.css("display", "block")) + }, + _dialogDatepicker: function(a, b, c, d, e) { + var f = this._dialogInst; + if (!f) { + this.uuid += 1; + var g = "dp" + this.uuid; + this._dialogInput = $(''), + this._dialogInput.keydown(this._doKeyDown), + $("body").append(this._dialogInput), + f = this._dialogInst = this._newInst(this._dialogInput, !1), + f.settings = {}, + $.data(this._dialogInput[0], PROP_NAME, f) + } + extendRemove(f.settings, d || {}), + b = b && b.constructor == Date ? this._formatDate(f, b) : b, + this._dialogInput.val(b), + this._pos = e ? e.length ? e: [e.pageX, e.pageY] : null; + if (!this._pos) { + var h = document.documentElement.clientWidth, + i = document.documentElement.clientHeight, + j = document.documentElement.scrollLeft || document.body.scrollLeft, + k = document.documentElement.scrollTop || document.body.scrollTop; + this._pos = [h / 2 - 100 + j, i / 2 - 150 + k] + } + this._dialogInput.css("left", this._pos[0] + 20 + "px").css("top", this._pos[1] + "px"), + f.settings.onSelect = c, + this._inDialog = !0, + this.dpDiv.addClass(this._dialogClass), + this._showDatepicker(this._dialogInput[0]), + $.blockUI && $.blockUI(this.dpDiv), + $.data(this._dialogInput[0], PROP_NAME, f); + return this + }, + _destroyDatepicker: function(a) { + var b = $(a), + c = $.data(a, PROP_NAME); + if ( !! b.hasClass(this.markerClassName)) { + var d = a.nodeName.toLowerCase(); + $.removeData(a, PROP_NAME), + d == "input" ? (c.append.remove(), c.trigger.remove(), b.removeClass(this.markerClassName).unbind("focus", this._showDatepicker).unbind("keydown", this._doKeyDown).unbind("keypress", this._doKeyPress).unbind("keyup", this._doKeyUp)) : (d == "div" || d == "span") && b.removeClass(this.markerClassName).empty() + } + }, + _enableDatepicker: function(a) { + var b = $(a), + c = $.data(a, PROP_NAME); + if ( !! b.hasClass(this.markerClassName)) { + var d = a.nodeName.toLowerCase(); + if (d == "input") a.disabled = !1, + c.trigger.filter("button").each(function() { + this.disabled = !1 + }).end().filter("img").css({ + opacity: "1.0", + cursor: "" + }); + else if (d == "div" || d == "span") { + var e = b.children("." + this._inlineClass); + e.children().removeClass("ui-state-disabled"), + e.find("select.ui-datepicker-month, select.ui-datepicker-year").removeAttr("disabled") + } + this._disabledInputs = $.map(this._disabledInputs, + function(b) { + return b == a ? null: b + }) + } + }, + _disableDatepicker: function(a) { + var b = $(a), + c = $.data(a, PROP_NAME); + if ( !! b.hasClass(this.markerClassName)) { + var d = a.nodeName.toLowerCase(); + if (d == "input") a.disabled = !0, + c.trigger.filter("button").each(function() { + this.disabled = !0 + }).end().filter("img").css({ + opacity: "0.5", + cursor: "default" + }); + else if (d == "div" || d == "span") { + var e = b.children("." + this._inlineClass); + e.children().addClass("ui-state-disabled"), + e.find("select.ui-datepicker-month, select.ui-datepicker-year").attr("disabled", "disabled") + } + this._disabledInputs = $.map(this._disabledInputs, + function(b) { + return b == a ? null: b + }), + this._disabledInputs[this._disabledInputs.length] = a + } + }, + _isDisabledDatepicker: function(a) { + if (!a) return ! 1; + for (var b = 0; b < this._disabledInputs.length; b++) if (this._disabledInputs[b] == a) return ! 0; + return ! 1 + }, + _getInst: function(a) { + try { + return $.data(a, PROP_NAME) + } catch(b) { + throw "Missing instance data for this datepicker" + } + }, + _optionDatepicker: function(a, b, c) { + var d = this._getInst(a); + if (arguments.length == 2 && typeof b == "string") return b == "defaults" ? $.extend({}, + $.datepicker._defaults) : d ? b == "all" ? $.extend({}, + d.settings) : this._get(d, b) : null; + var e = b || {}; + typeof b == "string" && (e = {}, + e[b] = c); + if (d) { + this._curInst == d && this._hideDatepicker(); + var f = this._getDateDatepicker(a, !0), + g = this._getMinMaxDate(d, "min"), + h = this._getMinMaxDate(d, "max"); + extendRemove(d.settings, e), + g !== null && e.dateFormat !== undefined && e.minDate === undefined && (d.settings.minDate = this._formatDate(d, g)), + h !== null && e.dateFormat !== undefined && e.maxDate === undefined && (d.settings.maxDate = this._formatDate(d, h)), + this._attachments($(a), d), + this._autoSize(d), + this._setDate(d, f), + this._updateAlternate(d), + this._updateDatepicker(d) + } + }, + _changeDatepicker: function(a, b, c) { + this._optionDatepicker(a, b, c) + }, + _refreshDatepicker: function(a) { + var b = this._getInst(a); + b && this._updateDatepicker(b) + }, + _setDateDatepicker: function(a, b) { + var c = this._getInst(a); + c && (this._setDate(c, b), this._updateDatepicker(c), this._updateAlternate(c)) + }, + _getDateDatepicker: function(a, b) { + var c = this._getInst(a); + c && !c.inline && this._setDateFromField(c, b); + return c ? this._getDate(c) : null + }, + _doKeyDown: function(a) { + var b = $.datepicker._getInst(a.target), + c = !0, + d = b.dpDiv.is(".ui-datepicker-rtl"); + b._keyEvent = !0; + if ($.datepicker._datepickerShowing) switch (a.keyCode) { + case 9: + $.datepicker._hideDatepicker(), + c = !1; + break; + case 13: + var e = $("td." + $.datepicker._dayOverClass + ":not(." + $.datepicker._currentClass + ")", b.dpDiv); + e[0] && $.datepicker._selectDay(a.target, b.selectedMonth, b.selectedYear, e[0]); + var f = $.datepicker._get(b, "onSelect"); + if (f) { + var g = $.datepicker._formatDate(b); + f.apply(b.input ? b.input[0] : null, [g, b]) + } else $.datepicker._hideDatepicker(); + return ! 1; + case 27: + $.datepicker._hideDatepicker(); + break; + case 33: + $.datepicker._adjustDate(a.target, a.ctrlKey ? -$.datepicker._get(b, "stepBigMonths") : -$.datepicker._get(b, "stepMonths"), "M"); + break; + case 34: + $.datepicker._adjustDate(a.target, a.ctrlKey ? +$.datepicker._get(b, "stepBigMonths") : +$.datepicker._get(b, "stepMonths"), "M"); + break; + case 35: + (a.ctrlKey || a.metaKey) && $.datepicker._clearDate(a.target), + c = a.ctrlKey || a.metaKey; + break; + case 36: + (a.ctrlKey || a.metaKey) && $.datepicker._gotoToday(a.target), + c = a.ctrlKey || a.metaKey; + break; + case 37: + (a.ctrlKey || a.metaKey) && $.datepicker._adjustDate(a.target, d ? 1 : -1, "D"), + c = a.ctrlKey || a.metaKey, + a.originalEvent.altKey && $.datepicker._adjustDate(a.target, a.ctrlKey ? -$.datepicker._get(b, "stepBigMonths") : -$.datepicker._get(b, "stepMonths"), "M"); + break; + case 38: + (a.ctrlKey || a.metaKey) && $.datepicker._adjustDate(a.target, -7, "D"), + c = a.ctrlKey || a.metaKey; + break; + case 39: + (a.ctrlKey || a.metaKey) && $.datepicker._adjustDate(a.target, d ? -1 : 1, "D"), + c = a.ctrlKey || a.metaKey, + a.originalEvent.altKey && $.datepicker._adjustDate(a.target, a.ctrlKey ? +$.datepicker._get(b, "stepBigMonths") : +$.datepicker._get(b, "stepMonths"), "M"); + break; + case 40: + (a.ctrlKey || a.metaKey) && $.datepicker._adjustDate(a.target, 7, "D"), + c = a.ctrlKey || a.metaKey; + break; + default: + c = !1 + } else a.keyCode == 36 && a.ctrlKey ? $.datepicker._showDatepicker(this) : c = !1; + c && (a.preventDefault(), a.stopPropagation()) + }, + _doKeyPress: function(a) { + var b = $.datepicker._getInst(a.target); + if ($.datepicker._get(b, "constrainInput")) { + var c = $.datepicker._possibleChars($.datepicker._get(b, "dateFormat")), + d = String.fromCharCode(a.charCode == undefined ? a.keyCode: a.charCode); + return a.ctrlKey || a.metaKey || d < " " || !c || c.indexOf(d) > -1 + } + }, + _doKeyUp: function(a) { + var b = $.datepicker._getInst(a.target); + if (b.input.val() != b.lastVal) try { + var c = $.datepicker.parseDate($.datepicker._get(b, "dateFormat"), b.input ? b.input.val() : null, $.datepicker._getFormatConfig(b)); + c && ($.datepicker._setDateFromField(b), $.datepicker._updateAlternate(b), $.datepicker._updateDatepicker(b)) + } catch(a) { + $.datepicker.log(a) + } + return ! 0 + }, + _showDatepicker: function(a) { + a = a.target || a, + a.nodeName.toLowerCase() != "input" && (a = $("input", a.parentNode)[0]); + if (!$.datepicker._isDisabledDatepicker(a) && $.datepicker._lastInput != a) { + var b = $.datepicker._getInst(a); + $.datepicker._curInst && $.datepicker._curInst != b && ($.datepicker._curInst.dpDiv.stop(!0, !0), b && $.datepicker._datepickerShowing && $.datepicker._hideDatepicker($.datepicker._curInst.input[0])); + var c = $.datepicker._get(b, "beforeShow"), + d = c ? c.apply(a, [a, b]) : {}; + if (d === !1) return; + extendRemove(b.settings, d), + b.lastVal = null, + $.datepicker._lastInput = a, + $.datepicker._setDateFromField(b), + $.datepicker._inDialog && (a.value = ""), + $.datepicker._pos || ($.datepicker._pos = $.datepicker._findPos(a), $.datepicker._pos[1] += a.offsetHeight); + var e = !1; + $(a).parents().each(function() { + e |= $(this).css("position") == "fixed"; + return ! e + }), + e && $.browser.opera && ($.datepicker._pos[0] -= document.documentElement.scrollLeft, $.datepicker._pos[1] -= document.documentElement.scrollTop); + var f = { + left: $.datepicker._pos[0], + top: $.datepicker._pos[1] + }; + $.datepicker._pos = null, + b.dpDiv.empty(), + b.dpDiv.css({ + position: "absolute", + display: "block", + top: "-1000px" + }), + $.datepicker._updateDatepicker(b), + f = $.datepicker._checkOffset(b, f, e), + b.dpDiv.css({ + position: $.datepicker._inDialog && $.blockUI ? "static": e ? "fixed": "absolute", + display: "none", + left: f.left + "px", + top: f.top + "px" + }); + if (!b.inline) { + var g = $.datepicker._get(b, "showAnim"), + h = $.datepicker._get(b, "duration"), + i = function() { + var a = b.dpDiv.find("iframe.ui-datepicker-cover"); + if ( !! a.length) { + var c = $.datepicker._getBorders(b.dpDiv); + a.css({ + left: -c[0], + top: -c[1], + width: b.dpDiv.outerWidth(), + height: b.dpDiv.outerHeight() + }) + } + }; + b.dpDiv.zIndex($(a).zIndex() + 1), + $.datepicker._datepickerShowing = !0, + $.effects && $.effects[g] ? b.dpDiv.show(g, $.datepicker._get(b, "showOptions"), h, i) : b.dpDiv[g || "show"](g ? h: null, i), + (!g || !h) && i(), + b.input.is(":visible") && !b.input.is(":disabled") && b.input.focus(), + $.datepicker._curInst = b + } + } + }, + _updateDatepicker: function(a) { + var b = this; + b.maxRows = 4; + var c = $.datepicker._getBorders(a.dpDiv); + instActive = a, + a.dpDiv.empty().append(this._generateHTML(a)); + var d = a.dpDiv.find("iframe.ui-datepicker-cover"); ! d.length || d.css({ + left: -c[0], + top: -c[1], + width: a.dpDiv.outerWidth(), + height: a.dpDiv.outerHeight() + }), + a.dpDiv.find("." + this._dayOverClass + " a").mouseover(); + var e = this._getNumberOfMonths(a), + f = e[1], + g = 17; + a.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""), + f > 1 && a.dpDiv.addClass("ui-datepicker-multi-" + f).css("width", g * f + "em"), + a.dpDiv[(e[0] != 1 || e[1] != 1 ? "add": "remove") + "Class"]("ui-datepicker-multi"), + a.dpDiv[(this._get(a, "isRTL") ? "add": "remove") + "Class"]("ui-datepicker-rtl"), + a == $.datepicker._curInst && $.datepicker._datepickerShowing && a.input && a.input.is(":visible") && !a.input.is(":disabled") && a.input[0] != document.activeElement && a.input.focus(); + if (a.yearshtml) { + var h = a.yearshtml; + setTimeout(function() { + h === a.yearshtml && a.yearshtml && a.dpDiv.find("select.ui-datepicker-year:first").replaceWith(a.yearshtml), + h = a.yearshtml = null + }, + 0) + } + }, + _getBorders: function(a) { + var b = function(a) { + return { + thin: 1, + medium: 2, + thick: 3 + } [a] || a + }; + return [parseFloat(b(a.css("border-left-width"))), parseFloat(b(a.css("border-top-width")))] + }, + _checkOffset: function(a, b, c) { + var d = a.dpDiv.outerWidth(), + e = a.dpDiv.outerHeight(), + f = a.input ? a.input.outerWidth() : 0, + g = a.input ? a.input.outerHeight() : 0, + h = document.documentElement.clientWidth + $(document).scrollLeft(), + i = document.documentElement.clientHeight + $(document).scrollTop(); + b.left -= this._get(a, "isRTL") ? d - f: 0, + b.left -= c && b.left == a.input.offset().left ? $(document).scrollLeft() : 0, + b.top -= c && b.top == a.input.offset().top + g ? $(document).scrollTop() : 0, + b.left -= Math.min(b.left, b.left + d > h && h > d ? Math.abs(b.left + d - h) : 0), + b.top -= Math.min(b.top, b.top + e > i && i > e ? Math.abs(e + g) : 0); + return b + }, + _findPos: function(a) { + var b = this._getInst(a), + c = this._get(b, "isRTL"); + while (a && (a.type == "hidden" || a.nodeType != 1 || $.expr.filters.hidden(a))) a = a[c ? "previousSibling": "nextSibling"]; + var d = $(a).offset(); + return [d.left, d.top] + }, + _hideDatepicker: function(a) { + var b = this._curInst; + if (! (!b || a && b != $.data(a, PROP_NAME)) && this._datepickerShowing) { + var c = this._get(b, "showAnim"), + d = this._get(b, "duration"), + e = this, + f = function() { + $.datepicker._tidyDialog(b), + e._curInst = null + }; + $.effects && $.effects[c] ? b.dpDiv.hide(c, $.datepicker._get(b, "showOptions"), d, f) : b.dpDiv[c == "slideDown" ? "slideUp": c == "fadeIn" ? "fadeOut": "hide"](c ? d: null, f), + c || f(), + this._datepickerShowing = !1; + var g = this._get(b, "onClose"); + g && g.apply(b.input ? b.input[0] : null, [b.input ? b.input.val() : "", b]), + this._lastInput = null, + this._inDialog && (this._dialogInput.css({ + position: "absolute", + left: "0", + top: "-100px" + }), $.blockUI && ($.unblockUI(), $("body").append(this.dpDiv))), + this._inDialog = !1 + } + }, + _tidyDialog: function(a) { + a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar") + }, + _checkExternalClick: function(a) { + if ( !! $.datepicker._curInst) { + var b = $(a.target), + c = $.datepicker._getInst(b[0]); (b[0].id != $.datepicker._mainDivId && b.parents("#" + $.datepicker._mainDivId).length == 0 && !b.hasClass($.datepicker.markerClassName) && !b.closest("." + $.datepicker._triggerClass).length && $.datepicker._datepickerShowing && (!$.datepicker._inDialog || !$.blockUI) || b.hasClass($.datepicker.markerClassName) && $.datepicker._curInst != c) && $.datepicker._hideDatepicker() + } + }, + _adjustDate: function(a, b, c) { + var d = $(a), + e = this._getInst(d[0]); + this._isDisabledDatepicker(d[0]) || (this._adjustInstDate(e, b + (c == "M" ? this._get(e, "showCurrentAtPos") : 0), c), this._updateDatepicker(e)) + }, + _gotoToday: function(a) { + var b = $(a), + c = this._getInst(b[0]); + if (this._get(c, "gotoCurrent") && c.currentDay) c.selectedDay = c.currentDay, + c.drawMonth = c.selectedMonth = c.currentMonth, + c.drawYear = c.selectedYear = c.currentYear; + else { + var d = new Date; + c.selectedDay = d.getDate(), + c.drawMonth = c.selectedMonth = d.getMonth(), + c.drawYear = c.selectedYear = d.getFullYear() + } + this._notifyChange(c), + this._adjustDate(b) + }, + _selectMonthYear: function(a, b, c) { + var d = $(a), + e = this._getInst(d[0]); + e["selected" + (c == "M" ? "Month": "Year")] = e["draw" + (c == "M" ? "Month": "Year")] = parseInt(b.options[b.selectedIndex].value, 10), + this._notifyChange(e), + this._adjustDate(d) + }, + _selectDay: function(a, b, c, d) { + var e = $(a); + if (!$(d).hasClass(this._unselectableClass) && !this._isDisabledDatepicker(e[0])) { + var f = this._getInst(e[0]); + f.selectedDay = f.currentDay = $("a", d).html(), + f.selectedMonth = f.currentMonth = b, + f.selectedYear = f.currentYear = c, + this._selectDate(a, this._formatDate(f, f.currentDay, f.currentMonth, f.currentYear)) + } + }, + _clearDate: function(a) { + var b = $(a), + c = this._getInst(b[0]); + this._selectDate(b, "") + }, + _selectDate: function(a, b) { + var c = $(a), + d = this._getInst(c[0]); + b = b != null ? b: this._formatDate(d), + d.input && d.input.val(b), + this._updateAlternate(d); + var e = this._get(d, "onSelect"); + e ? e.apply(d.input ? d.input[0] : null, [b, d]) : d.input && d.input.trigger("change"), + d.inline ? this._updateDatepicker(d) : (this._hideDatepicker(), this._lastInput = d.input[0], typeof d.input[0] != "object" && d.input.focus(), this._lastInput = null) + }, + _updateAlternate: function(a) { + var b = this._get(a, "altField"); + if (b) { + var c = this._get(a, "altFormat") || this._get(a, "dateFormat"), + d = this._getDate(a), + e = this.formatDate(c, d, this._getFormatConfig(a)); + $(b).each(function() { + $(this).val(e) + }) + } + }, + noWeekends: function(a) { + var b = a.getDay(); + return [b > 0 && b < 6, ""] + }, + iso8601Week: function(a) { + var b = new Date(a.getTime()); + b.setDate(b.getDate() + 4 - (b.getDay() || 7)); + var c = b.getTime(); + b.setMonth(0), + b.setDate(1); + return Math.floor(Math.round((c - b) / 864e5) / 7) + 1 + }, + parseDate: function(a, b, c) { + if (a == null || b == null) throw "Invalid arguments"; + b = typeof b == "object" ? b.toString() : b + ""; + if (b == "") return null; + var d = (c ? c.shortYearCutoff: null) || this._defaults.shortYearCutoff; + d = typeof d != "string" ? d: (new Date).getFullYear() % 100 + parseInt(d, 10); + var e = (c ? c.dayNamesShort: null) || this._defaults.dayNamesShort, + f = (c ? c.dayNames: null) || this._defaults.dayNames, + g = (c ? c.monthNamesShort: null) || this._defaults.monthNamesShort, + h = (c ? c.monthNames: null) || this._defaults.monthNames, + i = -1, + j = -1, + k = -1, + l = -1, + m = !1, + n = function(b) { + var c = s + 1 < a.length && a.charAt(s + 1) == b; + c && s++; + return c + }, + o = function(a) { + var c = n(a), + d = a == "@" ? 14 : a == "!" ? 20 : a == "y" && c ? 4 : a == "o" ? 3 : 2, + e = new RegExp("^\\d{1," + d + "}"), + f = b.substring(r).match(e); + if (!f) throw "Missing number at position " + r; + r += f[0].length; + return parseInt(f[0], 10) + }, + p = function(a, c, d) { + var e = $.map(n(a) ? d: c, + function(a, b) { + return [[b, a]] + }).sort(function(a, b) { + return - (a[1].length - b[1].length) + }), + f = -1; + $.each(e, + function(a, c) { + var d = c[1]; + if (b.substr(r, d.length).toLowerCase() == d.toLowerCase()) { + f = c[0], + r += d.length; + return ! 1 + } + }); + if (f != -1) return f + 1; + throw "Unknown name at position " + r + }, + q = function() { + if (b.charAt(r) != a.charAt(s)) throw "Unexpected literal at position " + r; + r++ + }, + r = 0; + for (var s = 0; s < a.length; s++) if (m) a.charAt(s) == "'" && !n("'") ? m = !1 : q(); + else switch (a.charAt(s)) { + case "d": + k = o("d"); + break; + case "D": + p("D", e, f); + break; + case "o": + l = o("o"); + break; + case "m": + j = o("m"); + break; + case "M": + j = p("M", g, h); + break; + case "y": + i = o("y"); + break; + case "@": + var t = new Date(o("@")); + i = t.getFullYear(), + j = t.getMonth() + 1, + k = t.getDate(); + break; + case "!": + var t = new Date((o("!") - this._ticksTo1970) / 1e4); + i = t.getFullYear(), + j = t.getMonth() + 1, + k = t.getDate(); + break; + case "'": + n("'") ? q() : m = !0; + break; + default: + q() + } + if (r < b.length) throw "Extra/unparsed characters found in date: " + b.substring(r); + i == -1 ? i = (new Date).getFullYear() : i < 100 && (i += (new Date).getFullYear() - (new Date).getFullYear() % 100 + (i <= d ? 0 : -100)); + if (l > -1) { + j = 1, + k = l; + for (;;) { + var u = this._getDaysInMonth(i, j - 1); + if (k <= u) break; + j++, + k -= u + } + } + var t = this._daylightSavingAdjust(new Date(i, j - 1, k)); + if (t.getFullYear() != i || t.getMonth() + 1 != j || t.getDate() != k) throw "Invalid date"; + return t + }, + ATOM: "yy-mm-dd", + COOKIE: "D, dd M yy", + ISO_8601: "yy-mm-dd", + RFC_822: "D, d M y", + RFC_850: "DD, dd-M-y", + RFC_1036: "D, d M y", + RFC_1123: "D, d M yy", + RFC_2822: "D, d M yy", + RSS: "D, d M y", + TICKS: "!", + TIMESTAMP: "@", + W3C: "yy-mm-dd", + _ticksTo1970: (718685 + Math.floor(492.5) - Math.floor(19.7) + Math.floor(4.925)) * 24 * 60 * 60 * 1e7, + formatDate: function(a, b, c) { + if (!b) return ""; + var d = (c ? c.dayNamesShort: null) || this._defaults.dayNamesShort, + e = (c ? c.dayNames: null) || this._defaults.dayNames, + f = (c ? c.monthNamesShort: null) || this._defaults.monthNamesShort, + g = (c ? c.monthNames: null) || this._defaults.monthNames, + h = function(b) { + var c = m + 1 < a.length && a.charAt(m + 1) == b; + c && m++; + return c + }, + i = function(a, b, c) { + var d = "" + b; + if (h(a)) while (d.length < c) d = "0" + d; + return d + }, + j = function(a, b, c, d) { + return h(a) ? d[b] : c[b] + }, + k = "", + l = !1; + if (b) for (var m = 0; m < a.length; m++) if (l) a.charAt(m) == "'" && !h("'") ? l = !1 : k += a.charAt(m); + else switch (a.charAt(m)) { + case "d": + k += i("d", b.getDate(), 2); + break; + case "D": + k += j("D", b.getDay(), d, e); + break; + case "o": + k += i("o", Math.round(((new Date(b.getFullYear(), b.getMonth(), b.getDate())).getTime() - (new Date(b.getFullYear(), 0, 0)).getTime()) / 864e5), 3); + break; + case "m": + k += i("m", b.getMonth() + 1, 2); + break; + case "M": + k += j("M", b.getMonth(), f, g); + break; + case "y": + k += h("y") ? b.getFullYear() : (b.getYear() % 100 < 10 ? "0": "") + b.getYear() % 100; + break; + case "@": + k += b.getTime(); + break; + case "!": + k += b.getTime() * 1e4 + this._ticksTo1970; + break; + case "'": + h("'") ? k += "'": l = !0; + break; + default: + k += a.charAt(m) + } + return k + }, + _possibleChars: function(a) { + var b = "", + c = !1, + d = function(b) { + var c = e + 1 < a.length && a.charAt(e + 1) == b; + c && e++; + return c + }; + for (var e = 0; e < a.length; e++) if (c) a.charAt(e) == "'" && !d("'") ? c = !1 : b += a.charAt(e); + else switch (a.charAt(e)) { + case "d": + case "m": + case "y": + case "@": + b += "0123456789"; + break; + case "D": + case "M": + return null; + case "'": + d("'") ? b += "'": c = !0; + break; + default: + b += a.charAt(e) + } + return b + }, + _get: function(a, b) { + return a.settings[b] !== undefined ? a.settings[b] : this._defaults[b] + }, + _setDateFromField: function(a, b) { + if (a.input.val() != a.lastVal) { + var c = this._get(a, "dateFormat"), + d = a.lastVal = a.input ? a.input.val() : null, + e, + f; + e = f = this._getDefaultDate(a); + var g = this._getFormatConfig(a); + try { + e = this.parseDate(c, d, g) || f + } catch(h) { + this.log(h), + d = b ? "": d + } + a.selectedDay = e.getDate(), + a.drawMonth = a.selectedMonth = e.getMonth(), + a.drawYear = a.selectedYear = e.getFullYear(), + a.currentDay = d ? e.getDate() : 0, + a.currentMonth = d ? e.getMonth() : 0, + a.currentYear = d ? e.getFullYear() : 0, + this._adjustInstDate(a) + } + }, + _getDefaultDate: function(a) { + return this._restrictMinMax(a, this._determineDate(a, this._get(a, "defaultDate"), new Date)) + }, + _determineDate: function(a, b, c) { + var d = function(a) { + var b = new Date; + b.setDate(b.getDate() + a); + return b + }, + e = function(b) { + try { + return $.datepicker.parseDate($.datepicker._get(a, "dateFormat"), b, $.datepicker._getFormatConfig(a)) + } catch(c) {} + var d = (b.toLowerCase().match(/^c/) ? $.datepicker._getDate(a) : null) || new Date, + e = d.getFullYear(), + f = d.getMonth(), + g = d.getDate(), + h = /([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g, + i = h.exec(b); + while (i) { + switch (i[2] || "d") { + case "d": + case "D": + g += parseInt(i[1], 10); + break; + case "w": + case "W": + g += parseInt(i[1], 10) * 7; + break; + case "m": + case "M": + f += parseInt(i[1], 10), + g = Math.min(g, $.datepicker._getDaysInMonth(e, f)); + break; + case "y": + case "Y": + e += parseInt(i[1], 10), + g = Math.min(g, $.datepicker._getDaysInMonth(e, f)) + } + i = h.exec(b) + } + return new Date(e, f, g) + }, + f = b == null || b === "" ? c: typeof b == "string" ? e(b) : typeof b == "number" ? isNaN(b) ? c: d(b) : new Date(b.getTime()); + f = f && f.toString() == "Invalid Date" ? c: f, + f && (f.setHours(0), f.setMinutes(0), f.setSeconds(0), f.setMilliseconds(0)); + return this._daylightSavingAdjust(f) + }, + _daylightSavingAdjust: function(a) { + if (!a) return null; + a.setHours(a.getHours() > 12 ? a.getHours() + 2 : 0); + return a + }, + _setDate: function(a, b, c) { + var d = !b, + e = a.selectedMonth, + f = a.selectedYear, + g = this._restrictMinMax(a, this._determineDate(a, b, new Date)); + a.selectedDay = a.currentDay = g.getDate(), + a.drawMonth = a.selectedMonth = a.currentMonth = g.getMonth(), + a.drawYear = a.selectedYear = a.currentYear = g.getFullYear(), + (e != a.selectedMonth || f != a.selectedYear) && !c && this._notifyChange(a), + this._adjustInstDate(a), + a.input && a.input.val(d ? "": this._formatDate(a)) + }, + _getDate: function(a) { + var b = !a.currentYear || a.input && a.input.val() == "" ? null: this._daylightSavingAdjust(new Date(a.currentYear, a.currentMonth, a.currentDay)); + return b + }, + _generateHTML: function(a) { + var b = new Date; + b = this._daylightSavingAdjust(new Date(b.getFullYear(), b.getMonth(), b.getDate())); + var c = this._get(a, "isRTL"), + d = this._get(a, "showButtonPanel"), + e = this._get(a, "hideIfNoPrevNext"), + f = this._get(a, "navigationAsDateFormat"), + g = this._getNumberOfMonths(a), + h = this._get(a, "showCurrentAtPos"), + i = this._get(a, "stepMonths"), + j = g[0] != 1 || g[1] != 1, + k = this._daylightSavingAdjust(a.currentDay ? new Date(a.currentYear, a.currentMonth, a.currentDay) : new Date(9999, 9, 9)), + l = this._getMinMaxDate(a, "min"), + m = this._getMinMaxDate(a, "max"), + n = a.drawMonth - h, + o = a.drawYear; + n < 0 && (n += 12, o--); + if (m) { + var p = this._daylightSavingAdjust(new Date(m.getFullYear(), m.getMonth() - g[0] * g[1] + 1, m.getDate())); + p = l && p < l ? l: p; + while (this._daylightSavingAdjust(new Date(o, n, 1)) > p) n--, + n < 0 && (n = 11, o--) + } + a.drawMonth = n, + a.drawYear = o; + var q = this._get(a, "prevText"); + q = f ? this.formatDate(q, this._daylightSavingAdjust(new Date(o, n - i, 1)), this._getFormatConfig(a)) : q; + var r = this._canAdjustMonth(a, -1, o, n) ? '' + q + "": e ? "": '' + q + "", + s = this._get(a, "nextText"); + s = f ? this.formatDate(s, this._daylightSavingAdjust(new Date(o, n + i, 1)), this._getFormatConfig(a)) : s; + var t = this._canAdjustMonth(a, 1, o, n) ? '' + s + "": e ? "": '' + s + "", + u = this._get(a, "currentText"), + v = this._get(a, "gotoCurrent") && a.currentDay ? k: b; + u = f ? this.formatDate(u, v, this._getFormatConfig(a)) : u; + var w = a.inline ? "": '", + x = d ? '
' + (c ? w: "") + (this._isInRange(a, v) ? '": "") + (c ? "": w) + "
": "", + y = parseInt(this._get(a, "firstDay"), 10); + y = isNaN(y) ? 0 : y; + var z = this._get(a, "showWeek"), + A = this._get(a, "dayNames"), + B = this._get(a, "dayNamesShort"), + C = this._get(a, "dayNamesMin"), + D = this._get(a, "monthNames"), + E = this._get(a, "monthNamesShort"), + F = this._get(a, "beforeShowDay"), + G = this._get(a, "showOtherMonths"), + H = this._get(a, "selectOtherMonths"), + I = this._get(a, "calculateWeek") || this.iso8601Week, + J = this._getDefaultDate(a), + K = ""; + for (var L = 0; L < g[0]; L++) { + var M = ""; + this.maxRows = 4; + for (var N = 0; N < g[1]; N++) { + var O = this._daylightSavingAdjust(new Date(o, n, a.selectedDay)), + P = " ui-corner-all", + Q = ""; + if (j) { + Q += '
' + (/all|left/.test(P) && L == 0 ? c ? t: r: "") + (/all|right/.test(P) && L == 0 ? c ? r: t: "") + this._generateMonthYearHeader(a, n, o, l, m, L > 0 || N > 0, D, E) + '
' + ""; + var R = z ? '": ""; + for (var S = 0; S < 7; S++) { + var T = (S + y) % 7; + R += "= 5 ? ' class="ui-datepicker-week-end"': "") + ">" + '' + C[T] + "" + } + Q += R + ""; + var U = this._getDaysInMonth(o, n); + o == a.selectedYear && n == a.selectedMonth && (a.selectedDay = Math.min(a.selectedDay, U)); + var V = (this._getFirstDayOfMonth(o, n) - y + 7) % 7, + W = Math.ceil((V + U) / 7), + X = j ? this.maxRows > W ? this.maxRows: W: W; + this.maxRows = X; + var Y = this._daylightSavingAdjust(new Date(o, n, 1 - V)); + for (var Z = 0; Z < X; Z++) { + Q += ""; + var _ = z ? '": ""; + for (var S = 0; S < 7; S++) { + var ba = F ? F.apply(a.input ? a.input[0] : null, [Y]) : [!0, ""], + bb = Y.getMonth() != n, + bc = bb && !H || !ba[0] || l && Y < l || m && Y > m; + _ += '", + Y.setDate(Y.getDate() + 1), + Y = this._daylightSavingAdjust(Y) + } + Q += _ + "" + } + n++, + n > 11 && (n = 0, o++), + Q += "
' + this._get(a, "weekHeader") + "
' + this._get(a, "calculateWeek")(Y) + "" + (bb && !G ? " ": bc ? '' + Y.getDate() + "": '' + Y.getDate() + "") + "
" + (j ? "" + (g[0] > 0 && N == g[1] - 1 ? '
': "") : ""), + M += Q + } + K += M + } + K += x + ($.browser.msie && parseInt($.browser.version, 10) < 7 && !a.inline ? '': ""), + a._keyEvent = !1; + return K + }, + _generateMonthYearHeader: function(a, b, c, d, e, f, g, h) { + var i = this._get(a, "changeMonth"), + j = this._get(a, "changeYear"), + k = this._get(a, "showMonthAfterYear"), + l = '
', + m = ""; + if (f || !i) m += '' + g[b] + ""; + else { + var n = d && d.getFullYear() == c, + o = e && e.getFullYear() == c; + m += '" + } + k || (l += m + (f || !i || !j ? " ": "")); + if (!a.yearshtml) { + a.yearshtml = ""; + if (f || !j) l += '' + c + ""; + else { + var q = this._get(a, "yearRange").split(":"), + r = (new Date).getFullYear(), + s = function(a) { + var b = a.match(/c[+-].*/) ? c + parseInt(a.substring(1), 10) : a.match(/[+-].*/) ? r + parseInt(a, 10) : parseInt(a, 10); + return isNaN(b) ? r: b + }, + t = s(q[0]), + u = Math.max(t, s(q[1] || "")); + t = d ? Math.max(t, d.getFullYear()) : t, + u = e ? Math.min(u, e.getFullYear()) : u, + a.yearshtml += '", + l += a.yearshtml, + a.yearshtml = null + } + } + l += this._get(a, "yearSuffix"), + k && (l += (f || !i || !j ? " ": "") + m), + l += "
"; + return l + }, + _adjustInstDate: function(a, b, c) { + var d = a.drawYear + (c == "Y" ? b: 0), + e = a.drawMonth + (c == "M" ? b: 0), + f = Math.min(a.selectedDay, this._getDaysInMonth(d, e)) + (c == "D" ? b: 0), + g = this._restrictMinMax(a, this._daylightSavingAdjust(new Date(d, e, f))); + a.selectedDay = g.getDate(), + a.drawMonth = a.selectedMonth = g.getMonth(), + a.drawYear = a.selectedYear = g.getFullYear(), + (c == "M" || c == "Y") && this._notifyChange(a) + }, + _restrictMinMax: function(a, b) { + var c = this._getMinMaxDate(a, "min"), + d = this._getMinMaxDate(a, "max"), + e = c && b < c ? c: b; + e = d && e > d ? d: e; + return e + }, + _notifyChange: function(a) { + var b = this._get(a, "onChangeMonthYear"); + b && b.apply(a.input ? a.input[0] : null, [a.selectedYear, a.selectedMonth + 1, a]) + }, + _getNumberOfMonths: function(a) { + var b = this._get(a, "numberOfMonths"); + return b == null ? [1, 1] : typeof b == "number" ? [1, b] : b + }, + _getMinMaxDate: function(a, b) { + return this._determineDate(a, this._get(a, b + "Date"), null) + }, + _getDaysInMonth: function(a, b) { + return 32 - this._daylightSavingAdjust(new Date(a, b, 32)).getDate() + }, + _getFirstDayOfMonth: function(a, b) { + return (new Date(a, b, 1)).getDay() + }, + _canAdjustMonth: function(a, b, c, d) { + var e = this._getNumberOfMonths(a), + f = this._daylightSavingAdjust(new Date(c, d + (b < 0 ? b: e[0] * e[1]), 1)); + b < 0 && f.setDate(this._getDaysInMonth(f.getFullYear(), f.getMonth())); + return this._isInRange(a, f) + }, + _isInRange: function(a, b) { + var c = this._getMinMaxDate(a, "min"), + d = this._getMinMaxDate(a, "max"); + return (!c || b.getTime() >= c.getTime()) && (!d || b.getTime() <= d.getTime()) + }, + _getFormatConfig: function(a) { + var b = this._get(a, "shortYearCutoff"); + b = typeof b != "string" ? b: (new Date).getFullYear() % 100 + parseInt(b, 10); + return { + shortYearCutoff: b, + dayNamesShort: this._get(a, "dayNamesShort"), + dayNames: this._get(a, "dayNames"), + monthNamesShort: this._get(a, "monthNamesShort"), + monthNames: this._get(a, "monthNames") + } + }, + _formatDate: function(a, b, c, d) { + b || (a.currentDay = a.selectedDay, a.currentMonth = a.selectedMonth, a.currentYear = a.selectedYear); + var e = b ? typeof b == "object" ? b: this._daylightSavingAdjust(new Date(d, c, b)) : this._daylightSavingAdjust(new Date(a.currentYear, a.currentMonth, a.currentDay)); + return this.formatDate(this._get(a, "dateFormat"), e, this._getFormatConfig(a)) + } + }), + $.fn.datepicker = function(a) { + if (!this.length) return this; + $.datepicker.initialized || ($(document).mousedown($.datepicker._checkExternalClick).find("body").append($.datepicker.dpDiv), $.datepicker.initialized = !0); + var b = Array.prototype.slice.call(arguments, 1); + if (typeof a == "string" && (a == "isDisabled" || a == "getDate" || a == "widget")) return $.datepicker["_" + a + "Datepicker"].apply($.datepicker, [this[0]].concat(b)); + if (a == "option" && arguments.length == 2 && typeof arguments[1] == "string") return $.datepicker["_" + a + "Datepicker"].apply($.datepicker, [this[0]].concat(b)); + return this.each(function() { + typeof a == "string" ? $.datepicker["_" + a + "Datepicker"].apply($.datepicker, [this].concat(b)) : $.datepicker._attachDatepicker(this, a) + }) + }, + $.datepicker = new Datepicker, + $.datepicker.initialized = !1, + $.datepicker.uuid = (new Date).getTime(), + $.datepicker.version = "1.8.18", + window["DP_jQuery_" + dpuuid] = $ +})(jQuery); +/* + * jQuery UI Effects 1.8.18 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Effects/ + */ +jQuery.effects || +function(a, b) { + function l(b) { + if (!b || typeof b == "number" || a.fx.speeds[b]) return ! 0; + if (typeof b == "string" && !a.effects[b]) return ! 0; + return ! 1 + } + function k(b, c, d, e) { + typeof b == "object" && (e = c, d = null, c = b, b = c.effect), + a.isFunction(c) && (e = c, d = null, c = {}); + if (typeof c == "number" || a.fx.speeds[c]) e = d, + d = c, + c = {}; + a.isFunction(d) && (e = d, d = null), + c = c || {}, + d = d || c.duration, + d = a.fx.off ? 0 : typeof d == "number" ? d: d in a.fx.speeds ? a.fx.speeds[d] : a.fx.speeds._default, + e = e || c.complete; + return [b, c, d, e] + } + function j(a, b) { + var c = { + _: 0 + }, + d; + for (d in b) a[d] != b[d] && (c[d] = b[d]); + return c + } + function i(b) { + var c, d; + for (c in b) d = b[c], + (d == null || a.isFunction(d) || c in g || /scrollbar/.test(c) || !/color/i.test(c) && isNaN(parseFloat(d))) && delete b[c]; + return b + } + function h() { + var a = document.defaultView ? document.defaultView.getComputedStyle(this, null) : this.currentStyle, + b = {}, + c, + d; + if (a && a.length && a[0] && a[a[0]]) { + var e = a.length; + while (e--) c = a[e], + typeof a[c] == "string" && (d = c.replace(/\-(\w)/g, + function(a, b) { + return b.toUpperCase() + }), b[d] = a[c]) + } else for (c in a) typeof a[c] == "string" && (b[c] = a[c]); + return b + } + function d(b, d) { + var e; + do { + e = a.curCSS(b, d); + if (e != "" && e != "transparent" || a.nodeName(b, "body")) break; + d = "backgroundColor" + } while ( b = b . parentNode ); + return c(e) + } + function c(b) { + var c; + if (b && b.constructor == Array && b.length == 3) return b; + if (c = /rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(b)) return [parseInt(c[1], 10), parseInt(c[2], 10), parseInt(c[3], 10)]; + if (c = /rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(b)) return [parseFloat(c[1]) * 2.55, parseFloat(c[2]) * 2.55, parseFloat(c[3]) * 2.55]; + if (c = /#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(b)) return [parseInt(c[1], 16), parseInt(c[2], 16), parseInt(c[3], 16)]; + if (c = /#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(b)) return [parseInt(c[1] + c[1], 16), parseInt(c[2] + c[2], 16), parseInt(c[3] + c[3], 16)]; + if (c = /rgba\(0, 0, 0, 0\)/.exec(b)) return e.transparent; + return e[a.trim(b).toLowerCase()] + } + a.effects = {}, + a.each(["backgroundColor", "borderBottomColor", "borderLeftColor", "borderRightColor", "borderTopColor", "borderColor", "color", "outlineColor"], + function(b, e) { + a.fx.step[e] = function(a) { + a.colorInit || (a.start = d(a.elem, e), a.end = c(a.end), a.colorInit = !0), + a.elem.style[e] = "rgb(" + Math.max(Math.min(parseInt(a.pos * (a.end[0] - a.start[0]) + a.start[0], 10), 255), 0) + "," + Math.max(Math.min(parseInt(a.pos * (a.end[1] - a.start[1]) + a.start[1], 10), 255), 0) + "," + Math.max(Math.min(parseInt(a.pos * (a.end[2] - a.start[2]) + a.start[2], 10), 255), 0) + ")" + } + }); + var e = { + 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], + transparent: [255, 255, 255] + }, + f = ["add", "remove", "toggle"], + g = { + border: 1, + borderBottom: 1, + borderColor: 1, + borderLeft: 1, + borderRight: 1, + borderTop: 1, + borderWidth: 1, + margin: 1, + padding: 1 + }; + a.effects.animateClass = function(b, c, d, e) { + a.isFunction(d) && (e = d, d = null); + return this.queue(function() { + var g = a(this), + k = g.attr("style") || " ", + l = i(h.call(this)), + m, + n = g.attr("class"); + a.each(f, + function(a, c) { + b[c] && g[c + "Class"](b[c]) + }), + m = i(h.call(this)), + g.attr("class", n), + g.animate(j(l, m), { + queue: !1, + duration: c, + easing: d, + complete: function() { + a.each(f, + function(a, c) { + b[c] && g[c + "Class"](b[c]) + }), + typeof g.attr("style") == "object" ? (g.attr("style").cssText = "", g.attr("style").cssText = k) : g.attr("style", k), + e && e.apply(this, arguments), + a.dequeue(this) + } + }) + }) + }, + a.fn.extend({ + _addClass: a.fn.addClass, + addClass: function(b, c, d, e) { + return c ? a.effects.animateClass.apply(this, [{ + add: b + }, + c, d, e]) : this._addClass(b) + }, + _removeClass: a.fn.removeClass, + removeClass: function(b, c, d, e) { + return c ? a.effects.animateClass.apply(this, [{ + remove: b + }, + c, d, e]) : this._removeClass(b) + }, + _toggleClass: a.fn.toggleClass, + toggleClass: function(c, d, e, f, g) { + return typeof d == "boolean" || d === b ? e ? a.effects.animateClass.apply(this, [d ? { + add: c + }: { + remove: c + }, + e, f, g]) : this._toggleClass(c, d) : a.effects.animateClass.apply(this, [{ + toggle: c + }, + d, e, f]) + }, + switchClass: function(b, c, d, e, f) { + return a.effects.animateClass.apply(this, [{ + add: c, + remove: b + }, + d, e, f]) + } + }), + a.extend(a.effects, { + version: "1.8.18", + save: function(a, b) { + for (var c = 0; c < b.length; c++) b[c] !== null && a.data("ec.storage." + b[c], a[0].style[b[c]]) + }, + restore: function(a, b) { + for (var c = 0; c < b.length; c++) b[c] !== null && a.css(b[c], a.data("ec.storage." + b[c])) + }, + setMode: function(a, b) { + b == "toggle" && (b = a.is(":hidden") ? "show": "hide"); + return b + }, + getBaseline: function(a, b) { + var c, d; + switch (a[0]) { + case "top": + c = 0; + break; + case "middle": + c = .5; + break; + case "bottom": + c = 1; + break; + default: + c = a[0] / b.height + } + switch (a[1]) { + case "left": + d = 0; + break; + case "center": + d = .5; + break; + case "right": + d = 1; + break; + default: + d = a[1] / b.width + } + return { + x: d, + y: c + } + }, + createWrapper: function(b) { + if (b.parent().is(".ui-effects-wrapper")) return b.parent(); + var c = { + width: b.outerWidth(!0), + height: b.outerHeight(!0), + "float": b.css("float") + }, + d = a("
").addClass("ui-effects-wrapper").css({ + fontSize: "100%", + background: "transparent", + border: "none", + margin: 0, + padding: 0 + }), + e = document.activeElement; + b.wrap(d), + (b[0] === e || a.contains(b[0], e)) && a(e).focus(), + d = b.parent(), + b.css("position") == "static" ? (d.css({ + position: "relative" + }), b.css({ + position: "relative" + })) : (a.extend(c, { + position: b.css("position"), + zIndex: b.css("z-index") + }), a.each(["top", "left", "bottom", "right"], + function(a, d) { + c[d] = b.css(d), + isNaN(parseInt(c[d], 10)) && (c[d] = "auto") + }), b.css({ + position: "relative", + top: 0, + left: 0, + right: "auto", + bottom: "auto" + })); + return d.css(c).show() + }, + removeWrapper: function(b) { + var c, d = document.activeElement; + if (b.parent().is(".ui-effects-wrapper")) { + c = b.parent().replaceWith(b), + (b[0] === d || a.contains(b[0], d)) && a(d).focus(); + return c + } + return b + }, + setTransition: function(b, c, d, e) { + e = e || {}, + a.each(c, + function(a, c) { + unit = b.cssUnit(c), + unit[0] > 0 && (e[c] = unit[0] * d + unit[1]) + }); + return e + } + }), + a.fn.extend({ + effect: function(b, c, d, e) { + var f = k.apply(this, arguments), + g = { + options: f[1], + duration: f[2], + callback: f[3] + }, + h = g.options.mode, + i = a.effects[b]; + if (a.fx.off || !i) return h ? this[h](g.duration, g.callback) : this.each(function() { + g.callback && g.callback.call(this) + }); + return i.call(this, g) + }, + _show: a.fn.show, + show: function(a) { + if (l(a)) return this._show.apply(this, arguments); + var b = k.apply(this, arguments); + b[1].mode = "show"; + return this.effect.apply(this, b) + }, + _hide: a.fn.hide, + hide: function(a) { + if (l(a)) return this._hide.apply(this, arguments); + var b = k.apply(this, arguments); + b[1].mode = "hide"; + return this.effect.apply(this, b) + }, + __toggle: a.fn.toggle, + toggle: function(b) { + if (l(b) || typeof b == "boolean" || a.isFunction(b)) return this.__toggle.apply(this, arguments); + var c = k.apply(this, arguments); + c[1].mode = "toggle"; + return this.effect.apply(this, c) + }, + cssUnit: function(b) { + var c = this.css(b), + d = []; + a.each(["em", "px", "%", "pt"], + function(a, b) { + c.indexOf(b) > 0 && (d = [parseFloat(c), b]) + }); + return d + } + }), + a.easing.jswing = a.easing.swing, + a.extend(a.easing, { + def: "easeOutQuad", + swing: function(b, c, d, e, f) { + return a.easing[a.easing.def](b, c, d, e, f) + }, + easeInQuad: function(a, b, c, d, e) { + return d * (b /= e) * b + c + }, + easeOutQuad: function(a, b, c, d, e) { + return - d * (b /= e) * (b - 2) + c + }, + easeInOutQuad: function(a, b, c, d, e) { + if ((b /= e / 2) < 1) return d / 2 * b * b + c; + return - d / 2 * (--b * (b - 2) - 1) + c + }, + easeInCubic: function(a, b, c, d, e) { + return d * (b /= e) * b * b + c + }, + easeOutCubic: function(a, b, c, d, e) { + return d * ((b = b / e - 1) * b * b + 1) + c + }, + easeInOutCubic: function(a, b, c, d, e) { + if ((b /= e / 2) < 1) return d / 2 * b * b * b + c; + return d / 2 * ((b -= 2) * b * b + 2) + c + }, + easeInQuart: function(a, b, c, d, e) { + return d * (b /= e) * b * b * b + c + }, + easeOutQuart: function(a, b, c, d, e) { + return - d * ((b = b / e - 1) * b * b * b - 1) + c + }, + easeInOutQuart: function(a, b, c, d, e) { + if ((b /= e / 2) < 1) return d / 2 * b * b * b * b + c; + return - d / 2 * ((b -= 2) * b * b * b - 2) + c + }, + easeInQuint: function(a, b, c, d, e) { + return d * (b /= e) * b * b * b * b + c + }, + easeOutQuint: function(a, b, c, d, e) { + return d * ((b = b / e - 1) * b * b * b * b + 1) + c + }, + easeInOutQuint: function(a, b, c, d, e) { + if ((b /= e / 2) < 1) return d / 2 * b * b * b * b * b + c; + return d / 2 * ((b -= 2) * b * b * b * b + 2) + c + }, + easeInSine: function(a, b, c, d, e) { + return - d * Math.cos(b / e * (Math.PI / 2)) + d + c + }, + easeOutSine: function(a, b, c, d, e) { + return d * Math.sin(b / e * (Math.PI / 2)) + c + }, + easeInOutSine: function(a, b, c, d, e) { + return - d / 2 * (Math.cos(Math.PI * b / e) - 1) + c + }, + easeInExpo: function(a, b, c, d, e) { + return b == 0 ? c: d * Math.pow(2, 10 * (b / e - 1)) + c + }, + easeOutExpo: function(a, b, c, d, e) { + return b == e ? c + d: d * ( - Math.pow(2, -10 * b / e) + 1) + c + }, + easeInOutExpo: function(a, b, c, d, e) { + if (b == 0) return c; + if (b == e) return c + d; + if ((b /= e / 2) < 1) return d / 2 * Math.pow(2, 10 * (b - 1)) + c; + return d / 2 * ( - Math.pow(2, -10 * --b) + 2) + c + }, + easeInCirc: function(a, b, c, d, e) { + return - d * (Math.sqrt(1 - (b /= e) * b) - 1) + c + }, + easeOutCirc: function(a, b, c, d, e) { + return d * Math.sqrt(1 - (b = b / e - 1) * b) + c + }, + easeInOutCirc: function(a, b, c, d, e) { + if ((b /= e / 2) < 1) return - d / 2 * (Math.sqrt(1 - b * b) - 1) + c; + return d / 2 * (Math.sqrt(1 - (b -= 2) * b) + 1) + c + }, + easeInElastic: function(a, b, c, d, e) { + var f = 1.70158, + g = 0, + h = d; + if (b == 0) return c; + if ((b /= e) == 1) return c + d; + g || (g = e * .3); + if (h < Math.abs(d)) { + h = d; + var f = g / 4 + } else var f = g / (2 * Math.PI) * Math.asin(d / h); + return - (h * Math.pow(2, 10 * (b -= 1)) * Math.sin((b * e - f) * 2 * Math.PI / g)) + c + }, + easeOutElastic: function(a, b, c, d, e) { + var f = 1.70158, + g = 0, + h = d; + if (b == 0) return c; + if ((b /= e) == 1) return c + d; + g || (g = e * .3); + if (h < Math.abs(d)) { + h = d; + var f = g / 4 + } else var f = g / (2 * Math.PI) * Math.asin(d / h); + return h * Math.pow(2, -10 * b) * Math.sin((b * e - f) * 2 * Math.PI / g) + d + c + }, + easeInOutElastic: function(a, b, c, d, e) { + var f = 1.70158, + g = 0, + h = d; + if (b == 0) return c; + if ((b /= e / 2) == 2) return c + d; + g || (g = e * .3 * 1.5); + if (h < Math.abs(d)) { + h = d; + var f = g / 4 + } else var f = g / (2 * Math.PI) * Math.asin(d / h); + if (b < 1) return - 0.5 * h * Math.pow(2, 10 * (b -= 1)) * Math.sin((b * e - f) * 2 * Math.PI / g) + c; + return h * Math.pow(2, -10 * (b -= 1)) * Math.sin((b * e - f) * 2 * Math.PI / g) * .5 + d + c + }, + easeInBack: function(a, c, d, e, f, g) { + g == b && (g = 1.70158); + return e * (c /= f) * c * ((g + 1) * c - g) + d + }, + easeOutBack: function(a, c, d, e, f, g) { + g == b && (g = 1.70158); + return e * ((c = c / f - 1) * c * ((g + 1) * c + g) + 1) + d + }, + easeInOutBack: function(a, c, d, e, f, g) { + g == b && (g = 1.70158); + if ((c /= f / 2) < 1) return e / 2 * c * c * (((g *= 1.525) + 1) * c - g) + d; + return e / 2 * ((c -= 2) * c * (((g *= 1.525) + 1) * c + g) + 2) + d + }, + easeInBounce: function(b, c, d, e, f) { + return e - a.easing.easeOutBounce(b, f - c, 0, e, f) + d + }, + easeOutBounce: function(a, b, c, d, e) { + return (b /= e) < 1 / 2.75 ? d * 7.5625 * b * b + c: b < 2 / 2.75 ? d * (7.5625 * (b -= 1.5 / 2.75) * b + .75) + c: b < 2.5 / 2.75 ? d * (7.5625 * (b -= 2.25 / 2.75) * b + .9375) + c: d * (7.5625 * (b -= 2.625 / 2.75) * b + .984375) + c + }, + easeInOutBounce: function(b, c, d, e, f) { + if (c < f / 2) return a.easing.easeInBounce(b, c * 2, 0, e, f) * .5 + d; + return a.easing.easeOutBounce(b, c * 2 - f, 0, e, f) * .5 + e * .5 + d + } + }) +} (jQuery); +/* + * jQuery UI Effects Blind 1.8.18 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Effects/Blind + * + * Depends: + * jquery.effects.core.js + */ +(function(a, b) { + a.effects.blind = function(b) { + return this.queue(function() { + var c = a(this), + d = ["position", "top", "bottom", "left", "right"], + e = a.effects.setMode(c, b.options.mode || "hide"), + f = b.options.direction || "vertical"; + a.effects.save(c, d), + c.show(); + var g = a.effects.createWrapper(c).css({ + overflow: "hidden" + }), + h = f == "vertical" ? "height": "width", + i = f == "vertical" ? g.height() : g.width(); + e == "show" && g.css(h, 0); + var j = {}; + j[h] = e == "show" ? i: 0, + g.animate(j, b.duration, b.options.easing, + function() { + e == "hide" && c.hide(), + a.effects.restore(c, d), + a.effects.removeWrapper(c), + b.callback && b.callback.apply(c[0], arguments), + c.dequeue() + }) + }) + } +})(jQuery); +/* + * jQuery UI Effects Bounce 1.8.18 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Effects/Bounce + * + * Depends: + * jquery.effects.core.js + */ +(function(a, b) { + a.effects.bounce = function(b) { + return this.queue(function() { + var c = a(this), + d = ["position", "top", "bottom", "left", "right"], + e = a.effects.setMode(c, b.options.mode || "effect"), + f = b.options.direction || "up", + g = b.options.distance || 20, + h = b.options.times || 5, + i = b.duration || 250; + /show|hide/.test(e) && d.push("opacity"), + a.effects.save(c, d), + c.show(), + a.effects.createWrapper(c); + var j = f == "up" || f == "down" ? "top": "left", + k = f == "up" || f == "left" ? "pos": "neg", + g = b.options.distance || (j == "top" ? c.outerHeight({ + margin: !0 + }) / 3 : c.outerWidth({ + margin: !0 + }) / 3); + e == "show" && c.css("opacity", 0).css(j, k == "pos" ? -g: g), + e == "hide" && (g = g / (h * 2)), + e != "hide" && h--; + if (e == "show") { + var l = { + opacity: 1 + }; + l[j] = (k == "pos" ? "+=": "-=") + g, + c.animate(l, i / 2, b.options.easing), + g = g / 2, + h-- + } + for (var m = 0; m < h; m++) { + var n = {}, + p = {}; + n[j] = (k == "pos" ? "-=": "+=") + g, + p[j] = (k == "pos" ? "+=": "-=") + g, + c.animate(n, i / 2, b.options.easing).animate(p, i / 2, b.options.easing), + g = e == "hide" ? g * 2 : g / 2 + } + if (e == "hide") { + var l = { + opacity: 0 + }; + l[j] = (k == "pos" ? "-=": "+=") + g, + c.animate(l, i / 2, b.options.easing, + function() { + c.hide(), + a.effects.restore(c, d), + a.effects.removeWrapper(c), + b.callback && b.callback.apply(this, arguments) + }) + } else { + var n = {}, + p = {}; + n[j] = (k == "pos" ? "-=": "+=") + g, + p[j] = (k == "pos" ? "+=": "-=") + g, + c.animate(n, i / 2, b.options.easing).animate(p, i / 2, b.options.easing, + function() { + a.effects.restore(c, d), + a.effects.removeWrapper(c), + b.callback && b.callback.apply(this, arguments) + }) + } + c.queue("fx", + function() { + c.dequeue() + }), + c.dequeue() + }) + } +})(jQuery); +/* + * jQuery UI Effects Clip 1.8.18 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Effects/Clip + * + * Depends: + * jquery.effects.core.js + */ +(function(a, b) { + a.effects.clip = function(b) { + return this.queue(function() { + var c = a(this), + d = ["position", "top", "bottom", "left", "right", "height", "width"], + e = a.effects.setMode(c, b.options.mode || "hide"), + f = b.options.direction || "vertical"; + a.effects.save(c, d), + c.show(); + var g = a.effects.createWrapper(c).css({ + overflow: "hidden" + }), + h = c[0].tagName == "IMG" ? g: c, + i = { + size: f == "vertical" ? "height": "width", + position: f == "vertical" ? "top": "left" + }, + j = f == "vertical" ? h.height() : h.width(); + e == "show" && (h.css(i.size, 0), h.css(i.position, j / 2)); + var k = {}; + k[i.size] = e == "show" ? j: 0, + k[i.position] = e == "show" ? 0 : j / 2, + h.animate(k, { + queue: !1, + duration: b.duration, + easing: b.options.easing, + complete: function() { + e == "hide" && c.hide(), + a.effects.restore(c, d), + a.effects.removeWrapper(c), + b.callback && b.callback.apply(c[0], arguments), + c.dequeue() + } + }) + }) + } +})(jQuery); +/* + * jQuery UI Effects Drop 1.8.18 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Effects/Drop + * + * Depends: + * jquery.effects.core.js + */ +(function(a, b) { + a.effects.drop = function(b) { + return this.queue(function() { + var c = a(this), + d = ["position", "top", "bottom", "left", "right", "opacity"], + e = a.effects.setMode(c, b.options.mode || "hide"), + f = b.options.direction || "left"; + a.effects.save(c, d), + c.show(), + a.effects.createWrapper(c); + var g = f == "up" || f == "down" ? "top": "left", + h = f == "up" || f == "left" ? "pos": "neg", + i = b.options.distance || (g == "top" ? c.outerHeight({ + margin: !0 + }) / 2 : c.outerWidth({ + margin: !0 + }) / 2); + e == "show" && c.css("opacity", 0).css(g, h == "pos" ? -i: i); + var j = { + opacity: e == "show" ? 1 : 0 + }; + j[g] = (e == "show" ? h == "pos" ? "+=": "-=": h == "pos" ? "-=": "+=") + i, + c.animate(j, { + queue: !1, + duration: b.duration, + easing: b.options.easing, + complete: function() { + e == "hide" && c.hide(), + a.effects.restore(c, d), + a.effects.removeWrapper(c), + b.callback && b.callback.apply(this, arguments), + c.dequeue() + } + }) + }) + } +})(jQuery); +/* + * jQuery UI Effects Explode 1.8.18 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Effects/Explode + * + * Depends: + * jquery.effects.core.js + */ +(function(a, b) { + a.effects.explode = function(b) { + return this.queue(function() { + var c = b.options.pieces ? Math.round(Math.sqrt(b.options.pieces)) : 3, + d = b.options.pieces ? Math.round(Math.sqrt(b.options.pieces)) : 3; + b.options.mode = b.options.mode == "toggle" ? a(this).is(":visible") ? "hide": "show": b.options.mode; + var e = a(this).show().css("visibility", "hidden"), + f = e.offset(); + f.top -= parseInt(e.css("marginTop"), 10) || 0, + f.left -= parseInt(e.css("marginLeft"), 10) || 0; + var g = e.outerWidth(!0), + h = e.outerHeight(!0); + for (var i = 0; i < c; i++) for (var j = 0; j < d; j++) e.clone().appendTo("body").wrap("
").css({ + position: "absolute", + visibility: "visible", + left: -j * (g / d), + top: -i * (h / c) + }).parent().addClass("ui-effects-explode").css({ + position: "absolute", + overflow: "hidden", + width: g / d, + height: h / c, + left: f.left + j * (g / d) + (b.options.mode == "show" ? (j - Math.floor(d / 2)) * (g / d) : 0), + top: f.top + i * (h / c) + (b.options.mode == "show" ? (i - Math.floor(c / 2)) * (h / c) : 0), + opacity: b.options.mode == "show" ? 0 : 1 + }).animate({ + left: f.left + j * (g / d) + (b.options.mode == "show" ? 0 : (j - Math.floor(d / 2)) * (g / d)), + top: f.top + i * (h / c) + (b.options.mode == "show" ? 0 : (i - Math.floor(c / 2)) * (h / c)), + opacity: b.options.mode == "show" ? 1 : 0 + }, + b.duration || 500); + setTimeout(function() { + b.options.mode == "show" ? e.css({ + visibility: "visible" + }) : e.css({ + visibility: "visible" + }).hide(), + b.callback && b.callback.apply(e[0]), + e.dequeue(), + a("div.ui-effects-explode").remove() + }, + b.duration || 500) + }) + } +})(jQuery); +/* + * jQuery UI Effects Fade 1.8.18 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Effects/Fade + * + * Depends: + * jquery.effects.core.js + */ +(function(a, b) { + a.effects.fade = function(b) { + return this.queue(function() { + var c = a(this), + d = a.effects.setMode(c, b.options.mode || "hide"); + c.animate({ + opacity: d + }, + { + queue: !1, + duration: b.duration, + easing: b.options.easing, + complete: function() { + b.callback && b.callback.apply(this, arguments), + c.dequeue() + } + }) + }) + } +})(jQuery); +/* + * jQuery UI Effects Fold 1.8.18 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Effects/Fold + * + * Depends: + * jquery.effects.core.js + */ +(function(a, b) { + a.effects.fold = function(b) { + return this.queue(function() { + var c = a(this), + d = ["position", "top", "bottom", "left", "right"], + e = a.effects.setMode(c, b.options.mode || "hide"), + f = b.options.size || 15, + g = !!b.options.horizFirst, + h = b.duration ? b.duration / 2 : a.fx.speeds._default / 2; + a.effects.save(c, d), + c.show(); + var i = a.effects.createWrapper(c).css({ + overflow: "hidden" + }), + j = e == "show" != g, + k = j ? ["width", "height"] : ["height", "width"], + l = j ? [i.width(), i.height()] : [i.height(), i.width()], + m = /([0-9]+)%/.exec(f); + m && (f = parseInt(m[1], 10) / 100 * l[e == "hide" ? 0 : 1]), + e == "show" && i.css(g ? { + height: 0, + width: f + }: { + height: f, + width: 0 + }); + var n = {}, + p = {}; + n[k[0]] = e == "show" ? l[0] : f, + p[k[1]] = e == "show" ? l[1] : 0, + i.animate(n, h, b.options.easing).animate(p, h, b.options.easing, + function() { + e == "hide" && c.hide(), + a.effects.restore(c, d), + a.effects.removeWrapper(c), + b.callback && b.callback.apply(c[0], arguments), + c.dequeue() + }) + }) + } +})(jQuery); +/* + * jQuery UI Effects Highlight 1.8.18 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Effects/Highlight + * + * Depends: + * jquery.effects.core.js + */ +(function(a, b) { + a.effects.highlight = function(b) { + return this.queue(function() { + var c = a(this), + d = ["backgroundImage", "backgroundColor", "opacity"], + e = a.effects.setMode(c, b.options.mode || "show"), + f = { + backgroundColor: c.css("backgroundColor") + }; + e == "hide" && (f.opacity = 0), + a.effects.save(c, d), + c.show().css({ + backgroundImage: "none", + backgroundColor: b.options.color || "#ffff99" + }).animate(f, { + queue: !1, + duration: b.duration, + easing: b.options.easing, + complete: function() { + e == "hide" && c.hide(), + a.effects.restore(c, d), + e == "show" && !a.support.opacity && this.style.removeAttribute("filter"), + b.callback && b.callback.apply(this, arguments), + c.dequeue() + } + }) + }) + } +})(jQuery); +/* + * jQuery UI Effects Pulsate 1.8.18 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Effects/Pulsate + * + * Depends: + * jquery.effects.core.js + */ +(function(a, b) { + a.effects.pulsate = function(b) { + return this.queue(function() { + var c = a(this), + d = a.effects.setMode(c, b.options.mode || "show"); + times = (b.options.times || 5) * 2 - 1, + duration = b.duration ? b.duration / 2 : a.fx.speeds._default / 2, + isVisible = c.is(":visible"), + animateTo = 0, + isVisible || (c.css("opacity", 0).show(), animateTo = 1), + (d == "hide" && isVisible || d == "show" && !isVisible) && times--; + for (var e = 0; e < times; e++) c.animate({ + opacity: animateTo + }, + duration, b.options.easing), + animateTo = (animateTo + 1) % 2; + c.animate({ + opacity: animateTo + }, + duration, b.options.easing, + function() { + animateTo == 0 && c.hide(), + b.callback && b.callback.apply(this, arguments) + }), + c.queue("fx", + function() { + c.dequeue() + }).dequeue() + }) + } +})(jQuery); +/* + * jQuery UI Effects Scale 1.8.18 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Effects/Scale + * + * Depends: + * jquery.effects.core.js + */ +(function(a, b) { + a.effects.puff = function(b) { + return this.queue(function() { + var c = a(this), + d = a.effects.setMode(c, b.options.mode || "hide"), + e = parseInt(b.options.percent, 10) || 150, + f = e / 100, + g = { + height: c.height(), + width: c.width() + }; + a.extend(b.options, { + fade: !0, + mode: d, + percent: d == "hide" ? e: 100, + from: d == "hide" ? g: { + height: g.height * f, + width: g.width * f + } + }), + c.effect("scale", b.options, b.duration, b.callback), + c.dequeue() + }) + }, + a.effects.scale = function(b) { + return this.queue(function() { + var c = a(this), + d = a.extend(!0, {}, + b.options), + e = a.effects.setMode(c, b.options.mode || "effect"), + f = parseInt(b.options.percent, 10) || (parseInt(b.options.percent, 10) == 0 ? 0 : e == "hide" ? 0 : 100), + g = b.options.direction || "both", + h = b.options.origin; + e != "effect" && (d.origin = h || ["middle", "center"], d.restore = !0); + var i = { + height: c.height(), + width: c.width() + }; + c.from = b.options.from || (e == "show" ? { + height: 0, + width: 0 + }: i); + var j = { + y: g != "horizontal" ? f / 100 : 1, + x: g != "vertical" ? f / 100 : 1 + }; + c.to = { + height: i.height * j.y, + width: i.width * j.x + }, + b.options.fade && (e == "show" && (c.from.opacity = 0, c.to.opacity = 1), e == "hide" && (c.from.opacity = 1, c.to.opacity = 0)), + d.from = c.from, + d.to = c.to, + d.mode = e, + c.effect("size", d, b.duration, b.callback), + c.dequeue() + }) + }, + a.effects.size = function(b) { + return this.queue(function() { + var c = a(this), + d = ["position", "top", "bottom", "left", "right", "width", "height", "overflow", "opacity"], + e = ["position", "top", "bottom", "left", "right", "overflow", "opacity"], + f = ["width", "height", "overflow"], + g = ["fontSize"], + h = ["borderTopWidth", "borderBottomWidth", "paddingTop", "paddingBottom"], + i = ["borderLeftWidth", "borderRightWidth", "paddingLeft", "paddingRight"], + j = a.effects.setMode(c, b.options.mode || "effect"), + k = b.options.restore || !1, + l = b.options.scale || "both", + m = b.options.origin, + n = { + height: c.height(), + width: c.width() + }; + c.from = b.options.from || n, + c.to = b.options.to || n; + if (m) { + var p = a.effects.getBaseline(m, n); + c.from.top = (n.height - c.from.height) * p.y, + c.from.left = (n.width - c.from.width) * p.x, + c.to.top = (n.height - c.to.height) * p.y, + c.to.left = (n.width - c.to.width) * p.x + } + var q = { + from: { + y: c.from.height / n.height, + x: c.from.width / n.width + }, + to: { + y: c.to.height / n.height, + x: c.to.width / n.width + } + }; + if (l == "box" || l == "both") q.from.y != q.to.y && (d = d.concat(h), c.from = a.effects.setTransition(c, h, q.from.y, c.from), c.to = a.effects.setTransition(c, h, q.to.y, c.to)), + q.from.x != q.to.x && (d = d.concat(i), c.from = a.effects.setTransition(c, i, q.from.x, c.from), c.to = a.effects.setTransition(c, i, q.to.x, c.to)); (l == "content" || l == "both") && q.from.y != q.to.y && (d = d.concat(g), c.from = a.effects.setTransition(c, g, q.from.y, c.from), c.to = a.effects.setTransition(c, g, q.to.y, c.to)), + a.effects.save(c, k ? d: e), + c.show(), + a.effects.createWrapper(c), + c.css("overflow", "hidden").css(c.from); + if (l == "content" || l == "both") h = h.concat(["marginTop", "marginBottom"]).concat(g), + i = i.concat(["marginLeft", "marginRight"]), + f = d.concat(h).concat(i), + c.find("*[width]").each(function() { + child = a(this), + k && a.effects.save(child, f); + var c = { + height: child.height(), + width: child.width() + }; + child.from = { + height: c.height * q.from.y, + width: c.width * q.from.x + }, + child.to = { + height: c.height * q.to.y, + width: c.width * q.to.x + }, + q.from.y != q.to.y && (child.from = a.effects.setTransition(child, h, q.from.y, child.from), child.to = a.effects.setTransition(child, h, q.to.y, child.to)), + q.from.x != q.to.x && (child.from = a.effects.setTransition(child, i, q.from.x, child.from), child.to = a.effects.setTransition(child, i, q.to.x, child.to)), + child.css(child.from), + child.animate(child.to, b.duration, b.options.easing, + function() { + k && a.effects.restore(child, f) + }) + }); + c.animate(c.to, { + queue: !1, + duration: b.duration, + easing: b.options.easing, + complete: function() { + c.to.opacity === 0 && c.css("opacity", c.from.opacity), + j == "hide" && c.hide(), + a.effects.restore(c, k ? d: e), + a.effects.removeWrapper(c), + b.callback && b.callback.apply(this, arguments), + c.dequeue() + } + }) + }) + } +})(jQuery); +/* + * jQuery UI Effects Shake 1.8.18 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Effects/Shake + * + * Depends: + * jquery.effects.core.js + */ +(function(a, b) { + a.effects.shake = function(b) { + return this.queue(function() { + var c = a(this), + d = ["position", "top", "bottom", "left", "right"], + e = a.effects.setMode(c, b.options.mode || "effect"), + f = b.options.direction || "left", + g = b.options.distance || 20, + h = b.options.times || 3, + i = b.duration || b.options.duration || 140; + a.effects.save(c, d), + c.show(), + a.effects.createWrapper(c); + var j = f == "up" || f == "down" ? "top": "left", + k = f == "up" || f == "left" ? "pos": "neg", + l = {}, + m = {}, + n = {}; + l[j] = (k == "pos" ? "-=": "+=") + g, + m[j] = (k == "pos" ? "+=": "-=") + g * 2, + n[j] = (k == "pos" ? "-=": "+=") + g * 2, + c.animate(l, i, b.options.easing); + for (var p = 1; p < h; p++) c.animate(m, i, b.options.easing).animate(n, i, b.options.easing); + c.animate(m, i, b.options.easing).animate(l, i / 2, b.options.easing, + function() { + a.effects.restore(c, d), + a.effects.removeWrapper(c), + b.callback && b.callback.apply(this, arguments) + }), + c.queue("fx", + function() { + c.dequeue() + }), + c.dequeue() + }) + } +})(jQuery); +/* + * jQuery UI Effects Slide 1.8.18 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Effects/Slide + * + * Depends: + * jquery.effects.core.js + */ +(function(a, b) { + a.effects.slide = function(b) { + return this.queue(function() { + var c = a(this), + d = ["position", "top", "bottom", "left", "right"], + e = a.effects.setMode(c, b.options.mode || "show"), + f = b.options.direction || "left"; + a.effects.save(c, d), + c.show(), + a.effects.createWrapper(c).css({ + overflow: "hidden" + }); + var g = f == "up" || f == "down" ? "top": "left", + h = f == "up" || f == "left" ? "pos": "neg", + i = b.options.distance || (g == "top" ? c.outerHeight({ + margin: !0 + }) : c.outerWidth({ + margin: !0 + })); + e == "show" && c.css(g, h == "pos" ? isNaN(i) ? "-" + i: -i: i); + var j = {}; + j[g] = (e == "show" ? h == "pos" ? "+=": "-=": h == "pos" ? "-=": "+=") + i, + c.animate(j, { + queue: !1, + duration: b.duration, + easing: b.options.easing, + complete: function() { + e == "hide" && c.hide(), + a.effects.restore(c, d), + a.effects.removeWrapper(c), + b.callback && b.callback.apply(this, arguments), + c.dequeue() + } + }) + }) + } +})(jQuery); +/* + * jQuery UI Effects Transfer 1.8.18 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Effects/Transfer + * + * Depends: + * jquery.effects.core.js + */ +(function(a, b) { + a.effects.transfer = function(b) { + return this.queue(function() { + var c = a(this), + d = a(b.options.to), + e = d.offset(), + f = { + top: e.top, + left: e.left, + height: d.innerHeight(), + width: d.innerWidth() + }, + g = c.offset(), + h = a('
').appendTo(document.body).addClass(b.options.className).css({ + top: g.top, + left: g.left, + height: c.innerHeight(), + width: c.innerWidth(), + position: "absolute" + }).animate(f, b.duration, b.options.easing, + function() { + h.remove(), + b.callback && b.callback.apply(c[0], arguments), + c.dequeue() + }) + }) + } +})(jQuery); \ No newline at end of file diff --git a/97suifangqa/apps/indicator/static/plugins/datepicker/images/calendar.gif b/97suifangqa/apps/indicator/static/plugins/datepicker/images/calendar.gif new file mode 100644 index 0000000..d0abaa7 Binary files /dev/null and b/97suifangqa/apps/indicator/static/plugins/datepicker/images/calendar.gif differ diff --git a/97suifangqa/apps/indicator/static/plugins/datepicker/images/calendar.png b/97suifangqa/apps/indicator/static/plugins/datepicker/images/calendar.png new file mode 100644 index 0000000..0245536 Binary files /dev/null and b/97suifangqa/apps/indicator/static/plugins/datepicker/images/calendar.png differ diff --git a/97suifangqa/apps/indicator/static/plugins/datepicker/images/ui-bg_glass_100_f6f6f6_1x400.png b/97suifangqa/apps/indicator/static/plugins/datepicker/images/ui-bg_glass_100_f6f6f6_1x400.png new file mode 100644 index 0000000..9b383f4 Binary files /dev/null and b/97suifangqa/apps/indicator/static/plugins/datepicker/images/ui-bg_glass_100_f6f6f6_1x400.png differ diff --git a/97suifangqa/apps/indicator/static/plugins/datepicker/images/ui-bg_glass_100_fdf5ce_1x400.png b/97suifangqa/apps/indicator/static/plugins/datepicker/images/ui-bg_glass_100_fdf5ce_1x400.png new file mode 100644 index 0000000..a23baad Binary files /dev/null and b/97suifangqa/apps/indicator/static/plugins/datepicker/images/ui-bg_glass_100_fdf5ce_1x400.png differ diff --git a/97suifangqa/apps/indicator/static/plugins/datepicker/images/ui-bg_glass_65_ffffff_1x400.png b/97suifangqa/apps/indicator/static/plugins/datepicker/images/ui-bg_glass_65_ffffff_1x400.png new file mode 100644 index 0000000..42ccba2 Binary files /dev/null and b/97suifangqa/apps/indicator/static/plugins/datepicker/images/ui-bg_glass_65_ffffff_1x400.png differ diff --git a/97suifangqa/apps/indicator/static/plugins/datepicker/images/ui-bg_gloss-wave_35_f6a828_500x100.png b/97suifangqa/apps/indicator/static/plugins/datepicker/images/ui-bg_gloss-wave_35_f6a828_500x100.png new file mode 100644 index 0000000..39d5824 Binary files /dev/null and b/97suifangqa/apps/indicator/static/plugins/datepicker/images/ui-bg_gloss-wave_35_f6a828_500x100.png differ diff --git a/97suifangqa/apps/indicator/static/plugins/datepicker/images/ui-bg_highlight-soft_100_eeeeee_1x100.png b/97suifangqa/apps/indicator/static/plugins/datepicker/images/ui-bg_highlight-soft_100_eeeeee_1x100.png new file mode 100644 index 0000000..f127367 Binary files /dev/null and b/97suifangqa/apps/indicator/static/plugins/datepicker/images/ui-bg_highlight-soft_100_eeeeee_1x100.png differ diff --git a/97suifangqa/apps/indicator/static/plugins/datepicker/images/ui-bg_highlight-soft_75_ffe45c_1x100.png b/97suifangqa/apps/indicator/static/plugins/datepicker/images/ui-bg_highlight-soft_75_ffe45c_1x100.png new file mode 100644 index 0000000..359397a Binary files /dev/null and b/97suifangqa/apps/indicator/static/plugins/datepicker/images/ui-bg_highlight-soft_75_ffe45c_1x100.png differ diff --git a/97suifangqa/apps/indicator/static/plugins/datepicker/images/ui-icons_ef8c08_256x240.png b/97suifangqa/apps/indicator/static/plugins/datepicker/images/ui-icons_ef8c08_256x240.png new file mode 100644 index 0000000..85e63e9 Binary files /dev/null and b/97suifangqa/apps/indicator/static/plugins/datepicker/images/ui-icons_ef8c08_256x240.png differ diff --git a/97suifangqa/apps/indicator/static/plugins/datepicker/images/ui-icons_ffffff_256x240.png b/97suifangqa/apps/indicator/static/plugins/datepicker/images/ui-icons_ffffff_256x240.png new file mode 100644 index 0000000..42f8f99 Binary files /dev/null and b/97suifangqa/apps/indicator/static/plugins/datepicker/images/ui-icons_ffffff_256x240.png differ diff --git a/97suifangqa/apps/indicator/static/plugins/datepicker/language-zh-CN.js b/97suifangqa/apps/indicator/static/plugins/datepicker/language-zh-CN.js new file mode 100644 index 0000000..96194fa --- /dev/null +++ b/97suifangqa/apps/indicator/static/plugins/datepicker/language-zh-CN.js @@ -0,0 +1,23 @@ +/* Chinese initialisation for the jQuery UI date picker plugin. */ +/* Written by Cloudream (cloudream@gmail.com). */ +jQuery(function($){ + $.datepicker.regional['zh-CN'] = { + closeText: '关闭', + prevText: '<上月', + nextText: '下月>', + currentText: '今天', + monthNames: ['一月','二月','三月','四月','五月','六月', + '七月','八月','九月','十月','十一月','十二月'], + monthNamesShort: ['一','二','三','四','五','六', + '七','八','九','十','十一','十二'], + dayNames: ['星期日','星期一','星期二','星期三','星期四','星期五','星期六'], + dayNamesShort: ['周日','周一','周二','周三','周四','周五','周六'], + dayNamesMin: ['日','一','二','三','四','五','六'], + weekHeader: '周', + dateFormat: 'yy-mm-dd', + firstDay: 1, + isRTL: false, + showMonthAfterYear: true, + yearSuffix: '年'}; + $.datepicker.setDefaults($.datepicker.regional['zh-CN']); +}); \ No newline at end of file diff --git a/97suifangqa/apps/indicator/static/plugins/highcharts/highcharts-more.js b/97suifangqa/apps/indicator/static/plugins/highcharts/highcharts-more.js new file mode 100644 index 0000000..1ccdd52 --- /dev/null +++ b/97suifangqa/apps/indicator/static/plugins/highcharts/highcharts-more.js @@ -0,0 +1,50 @@ +/* + Highcharts JS v3.0.4 (2013-08-02) + + (c) 2009-2013 Torstein Hønsi + + License: www.highcharts.com/license +*/ +(function(l,C){function J(a,b,c){this.init.call(this,a,b,c)}function K(a,b,c){a.call(this,b,c);if(this.chart.polar)this.closeSegment=function(a){var c=this.xAxis.center;a.push("L",c[0],c[1])},this.closedStacks=!0}function L(a,b){var c=this.chart,d=this.options.animation,g=this.group,f=this.markerGroup,e=this.xAxis.center,i=c.plotLeft,o=c.plotTop;if(c.polar){if(c.renderer.isSVG)if(d===!0&&(d={}),b){if(c={translateX:e[0]+i,translateY:e[1]+o,scaleX:0.001,scaleY:0.001},g.attr(c),f)f.attrSetters=g.attrSetters, +f.attr(c)}else c={translateX:i,translateY:o,scaleX:1,scaleY:1},g.animate(c,d),f&&f.animate(c,d),this.animate=null}else a.call(this,b)}var P=l.arrayMin,Q=l.arrayMax,r=l.each,F=l.extend,p=l.merge,R=l.map,q=l.pick,v=l.pInt,m=l.getOptions().plotOptions,h=l.seriesTypes,x=l.extendClass,M=l.splat,n=l.wrap,N=l.Axis,u=l.Tick,z=l.Series,t=h.column.prototype,s=Math,D=s.round,A=s.floor,S=s.max,w=function(){};F(J.prototype,{init:function(a,b,c){var d=this,g=d.defaultOptions;d.chart=b;if(b.angular)g.background= +{};d.options=a=p(g,a);(a=a.background)&&r([].concat(M(a)).reverse(),function(a){var b=a.backgroundColor,a=p(d.defaultBackgroundOptions,a);if(b)a.backgroundColor=b;a.color=a.backgroundColor;c.options.plotBands.unshift(a)})},defaultOptions:{center:["50%","50%"],size:"85%",startAngle:0},defaultBackgroundOptions:{shape:"circle",borderWidth:1,borderColor:"silver",backgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"#FFF"],[1,"#DDD"]]},from:Number.MIN_VALUE,innerRadius:0,to:Number.MAX_VALUE, +outerRadius:"105%"}});var G=N.prototype,u=u.prototype,T={getOffset:w,redraw:function(){this.isDirty=!1},render:function(){this.isDirty=!1},setScale:w,setCategories:w,setTitle:w},O={isRadial:!0,defaultRadialGaugeOptions:{labels:{align:"center",x:0,y:null},minorGridLineWidth:0,minorTickInterval:"auto",minorTickLength:10,minorTickPosition:"inside",minorTickWidth:1,plotBands:[],tickLength:10,tickPosition:"inside",tickWidth:2,title:{rotation:0},zIndex:2},defaultRadialXOptions:{gridLineWidth:1,labels:{align:null, +distance:15,x:0,y:null},maxPadding:0,minPadding:0,plotBands:[],showLastLabel:!1,tickLength:0},defaultRadialYOptions:{gridLineInterpolation:"circle",labels:{align:"right",x:-3,y:-2},plotBands:[],showLastLabel:!1,title:{x:4,text:null,rotation:90}},setOptions:function(a){this.options=p(this.defaultOptions,this.defaultRadialOptions,a)},getOffset:function(){G.getOffset.call(this);this.chart.axisOffset[this.side]=0;this.center=this.pane.center=h.pie.prototype.getCenter.call(this.pane)},getLinePath:function(a, +b){var c=this.center,b=q(b,c[2]/2-this.offset);return this.chart.renderer.symbols.arc(this.left+c[0],this.top+c[1],b,b,{start:this.startAngleRad,end:this.endAngleRad,open:!0,innerR:0})},setAxisTranslation:function(){G.setAxisTranslation.call(this);if(this.center&&(this.transA=this.isCircular?(this.endAngleRad-this.startAngleRad)/(this.max-this.min||1):this.center[2]/2/(this.max-this.min||1),this.isXAxis))this.minPixelPadding=this.transA*this.minPointOffset+(this.reversed?(this.endAngleRad-this.startAngleRad)/ +4:0)},beforeSetTickPositions:function(){this.autoConnect&&(this.max+=this.categories&&1||this.pointRange||this.closestPointRange)},setAxisSize:function(){G.setAxisSize.call(this);if(this.center)this.len=this.width=this.height=this.isCircular?this.center[2]*(this.endAngleRad-this.startAngleRad)/2:this.center[2]/2},getPosition:function(a,b){if(!this.isCircular)b=this.translate(a),a=this.min;return this.postTranslate(this.translate(a),q(b,this.center[2]/2)-this.offset)},postTranslate:function(a,b){var c= +this.chart,d=this.center,a=this.startAngleRad+a;return{x:c.plotLeft+d[0]+Math.cos(a)*b,y:c.plotTop+d[1]+Math.sin(a)*b}},getPlotBandPath:function(a,b,c){var d=this.center,g=this.startAngleRad,f=d[2]/2,e=[q(c.outerRadius,"100%"),c.innerRadius,q(c.thickness,10)],i=/%$/,o,k=this.isCircular;this.options.gridLineInterpolation==="polygon"?d=this.getPlotLinePath(a).concat(this.getPlotLinePath(b,!0)):(k||(e[0]=this.translate(a),e[1]=this.translate(b)),e=R(e,function(a){i.test(a)&&(a=v(a,10)*f/100);return a}), +c.shape==="circle"||!k?(a=-Math.PI/2,b=Math.PI*1.5,o=!0):(a=g+this.translate(a),b=g+this.translate(b)),d=this.chart.renderer.symbols.arc(this.left+d[0],this.top+d[1],e[0],e[0],{start:a,end:b,innerR:q(e[1],e[0]-e[2]),open:o}));return d},getPlotLinePath:function(a,b){var c=this.center,d=this.chart,g=this.getPosition(a),f,e,i;this.isCircular?i=["M",c[0]+d.plotLeft,c[1]+d.plotTop,"L",g.x,g.y]:this.options.gridLineInterpolation==="circle"?(a=this.translate(a))&&(i=this.getLinePath(0,a)):(f=d.xAxis[0], +i=[],a=this.translate(a),c=f.tickPositions,f.autoConnect&&(c=c.concat([c[0]])),b&&(c=[].concat(c).reverse()),r(c,function(c,b){e=f.getPosition(c,a);i.push(b?"L":"M",e.x,e.y)}));return i},getTitlePosition:function(){var a=this.center,b=this.chart,c=this.options.title;return{x:b.plotLeft+a[0]+(c.x||0),y:b.plotTop+a[1]-{high:0.5,middle:0.25,low:0}[c.align]*a[2]+(c.y||0)}}};n(G,"init",function(a,b,c){var j;var d=b.angular,g=b.polar,f=c.isX,e=d&&f,i,o;o=b.options;var k=c.pane||0;if(d){if(F(this,e?T:O), +i=!f)this.defaultRadialOptions=this.defaultRadialGaugeOptions}else if(g)F(this,O),this.defaultRadialOptions=(i=f)?this.defaultRadialXOptions:p(this.defaultYAxisOptions,this.defaultRadialYOptions);a.call(this,b,c);if(!e&&(d||g)){a=this.options;if(!b.panes)b.panes=[];this.pane=(j=b.panes[k]=b.panes[k]||new J(M(o.pane)[k],b,this),k=j);k=k.options;b.inverted=!1;o.chart.zoomType=null;this.startAngleRad=b=(k.startAngle-90)*Math.PI/180;this.endAngleRad=o=(q(k.endAngle,k.startAngle+360)-90)*Math.PI/180;this.offset= +a.offset||0;if((this.isCircular=i)&&c.max===C&&o-b===2*Math.PI)this.autoConnect=!0}});n(u,"getPosition",function(a,b,c,d,g){var f=this.axis;return f.getPosition?f.getPosition(c):a.call(this,b,c,d,g)});n(u,"getLabelPosition",function(a,b,c,d,g,f,e,i,o){var k=this.axis,j=f.y,h=f.align,l=(k.translate(this.pos)+k.startAngleRad+Math.PI/2)/Math.PI*180%360;k.isRadial?(a=k.getPosition(this.pos,k.center[2]/2+q(f.distance,-25)),f.rotation==="auto"?d.attr({rotation:l}):j===null&&(j=v(d.styles.lineHeight)*0.9- +d.getBBox().height/2),h===null&&(h=k.isCircular?l>20&&l<160?"left":l>200&&l<340?"right":"center":"center",d.attr({align:h})),a.x+=f.x,a.y+=j):a=a.call(this,b,c,d,g,f,e,i,o);return a});n(u,"getMarkPath",function(a,b,c,d,g,f,e){var i=this.axis;i.isRadial?(a=i.getPosition(this.pos,i.center[2]/2+d),b=["M",b,c,"L",a.x,a.y]):b=a.call(this,b,c,d,g,f,e);return b});m.arearange=p(m.area,{lineWidth:1,marker:null,threshold:null,tooltip:{pointFormat:'{series.name}: {point.low} - {point.high}
'}, +trackByArea:!0,dataLabels:{verticalAlign:null,xLow:0,xHigh:0,yLow:0,yHigh:0}});h.arearange=l.extendClass(h.area,{type:"arearange",pointArrayMap:["low","high"],toYData:function(a){return[a.low,a.high]},pointValKey:"low",getSegments:function(){var a=this;r(a.points,function(b){if(!a.options.connectNulls&&(b.low===null||b.high===null))b.y=null;else if(b.low===null&&b.high!==null)b.y=b.high});z.prototype.getSegments.call(this)},translate:function(){var a=this.yAxis;h.area.prototype.translate.apply(this); +r(this.points,function(b){var c=b.low,d=b.high,g=b.plotY;d===null&&c===null?b.y=null:c===null?(b.plotLow=b.plotY=null,b.plotHigh=a.translate(d,0,1,0,1)):d===null?(b.plotLow=g,b.plotHigh=null):(b.plotLow=g,b.plotHigh=a.translate(d,0,1,0,1))})},getSegmentPath:function(a){var b,c=[],d=a.length,g=z.prototype.getSegmentPath,f,e;e=this.options;var i=e.step;for(b=HighchartsAdapter.grep(a,function(a){return a.plotLow!==null});d--;)f=a[d],f.plotHigh!==null&&c.push({plotX:f.plotX,plotY:f.plotHigh});a=g.call(this, +b);if(i)i===!0&&(i="left"),e.step={left:"right",center:"center",right:"left"}[i];c=g.call(this,c);e.step=i;e=[].concat(a,c);c[0]="L";this.areaPath=this.areaPath.concat(a,c);return e},drawDataLabels:function(){var a=this.data,b=a.length,c,d=[],g=z.prototype,f=this.options.dataLabels,e,i=this.chart.inverted;if(f.enabled||this._hasPointLabels){for(c=b;c--;)e=a[c],e.y=e.high,e.plotY=e.plotHigh,d[c]=e.dataLabel,e.dataLabel=e.dataLabelUpper,e.below=!1,i?(f.align="left",f.x=f.xHigh):f.y=f.yHigh;g.drawDataLabels.apply(this, +arguments);for(c=b;c--;)e=a[c],e.dataLabelUpper=e.dataLabel,e.dataLabel=d[c],e.y=e.low,e.plotY=e.plotLow,e.below=!0,i?(f.align="right",f.x=f.xLow):f.y=f.yLow;g.drawDataLabels.apply(this,arguments)}},alignDataLabel:h.column.prototype.alignDataLabel,getSymbol:h.column.prototype.getSymbol,drawPoints:w});m.areasplinerange=p(m.arearange);h.areasplinerange=x(h.arearange,{type:"areasplinerange",getPointSpline:h.spline.prototype.getPointSpline});m.columnrange=p(m.column,m.arearange,{lineWidth:1,pointRange:null}); +h.columnrange=x(h.arearange,{type:"columnrange",translate:function(){var a=this,b=a.yAxis,c;t.translate.apply(a);r(a.points,function(d){var g=d.shapeArgs,f=a.options.minPointLength,e;d.plotHigh=c=b.translate(d.high,0,1,0,1);d.plotLow=d.plotY;e=c;d=d.plotY-c;d{series.name}
Maximum: {point.high}
Upper quartile: {point.q3}
Median: {point.median}
Lower quartile: {point.q1}
Minimum: {point.low}
'},whiskerLength:"50%",whiskerWidth:2});h.boxplot=x(h.column,{type:"boxplot",pointArrayMap:["low","q1","median","q3","high"],toYData:function(a){return[a.low, +a.q1,a.median,a.q3,a.high]},pointValKey:"high",pointAttrToOptions:{fill:"fillColor",stroke:"color","stroke-width":"lineWidth"},drawDataLabels:w,translate:function(){var a=this.yAxis,b=this.pointArrayMap;h.column.prototype.translate.apply(this);r(this.points,function(c){r(b,function(b){c[b]!==null&&(c[b+"Plot"]=a.translate(c[b],0,1,0,1))})})},drawPoints:function(){var a=this,b=a.points,c=a.options,d=a.chart.renderer,g,f,e,i,o,k,j,h,l,m,n,H,p,E,I,t,w,s,v,u,z,y,x=a.doQuartiles!==!1,B=parseInt(a.options.whiskerLength, +10)/100;r(b,function(b){l=b.graphic;z=b.shapeArgs;n={};E={};t={};y=b.color||a.color;if(b.plotY!==C)if(g=b.pointAttr[b.selected?"selected":""],w=z.width,s=A(z.x),v=s+w,u=D(w/2),f=A(x?b.q1Plot:b.lowPlot),e=A(x?b.q3Plot:b.lowPlot),i=A(b.highPlot),o=A(b.lowPlot),n.stroke=b.stemColor||c.stemColor||y,n["stroke-width"]=q(b.stemWidth,c.stemWidth,c.lineWidth),n.dashstyle=b.stemDashStyle||c.stemDashStyle,E.stroke=b.whiskerColor||c.whiskerColor||y,E["stroke-width"]=q(b.whiskerWidth,c.whiskerWidth,c.lineWidth), +t.stroke=b.medianColor||c.medianColor||y,t["stroke-width"]=q(b.medianWidth,c.medianWidth,c.lineWidth),j=n["stroke-width"]%2/2,h=s+u+j,m=["M",h,e,"L",h,i,"M",h,f,"L",h,o,"z"],x&&(j=g["stroke-width"]%2/2,h=A(h)+j,f=A(f)+j,e=A(e)+j,s+=j,v+=j,H=["M",s,e,"L",s,f,"L",v,f,"L",v,e,"L",s,e,"z"]),B&&(j=E["stroke-width"]%2/2,i+=j,o+=j,p=["M",h-u*B,i,"L",h+u*B,i,"M",h-u*B,o,"L",h+u*B,o]),j=t["stroke-width"]%2/2,k=D(b.medianPlot)+j,I=["M",s,k,"L",v,k,"z"],l)b.stem.animate({d:m}),B&&b.whiskers.animate({d:p}),x&& +b.box.animate({d:H}),b.medianShape.animate({d:I});else{b.graphic=l=d.g().add(a.group);b.stem=d.path(m).attr(n).add(l);if(B)b.whiskers=d.path(p).attr(E).add(l);if(x)b.box=d.path(H).attr(g).add(l);b.medianShape=d.path(I).attr(t).add(l)}})}});m.errorbar=p(m.boxplot,{color:"#000000",grouping:!1,linkedTo:":previous",tooltip:{pointFormat:m.arearange.tooltip.pointFormat},whiskerWidth:null});h.errorbar=x(h.boxplot,{type:"errorbar",pointArrayMap:["low","high"],toYData:function(a){return[a.low,a.high]},pointValKey:"high", +doQuartiles:!1,getColumnMetrics:function(){return this.linkedParent&&this.linkedParent.columnMetrics||h.column.prototype.getColumnMetrics.call(this)}});m.waterfall=p(m.column,{lineWidth:1,lineColor:"#333",dashStyle:"dot",borderColor:"#333"});h.waterfall=x(h.column,{type:"waterfall",upColorProp:"fill",pointArrayMap:["low","y"],pointValKey:"y",init:function(a,b){b.stacking=!0;h.column.prototype.init.call(this,a,b)},translate:function(){var a=this.options,b=this.yAxis,c,d,g,f,e,i,o,k,j;c=a.threshold; +a=a.borderWidth%2/2;h.column.prototype.translate.apply(this);k=c;g=this.points;for(d=0,c=g.length;d0&&!a.color)a.pointAttr=d,a.color=c})},getGraphPath:function(){var a=this.data,b=a.length,c=D(this.options.lineWidth+this.options.borderWidth)%2/2,d=[],g,f,e;for(e=1;e0?(i[f]-a)/(b-a):0.5,h.push(s.ceil(c+e*(d-c))/2);this.radii=h},animate:function(a){var b=this.options.animation;if(!a)r(this.points,function(a){var d=a.graphic,a=a.shapeArgs;d&&a&&(d.attr("r",1),d.animate({r:a.r},b))}),this.animate=null},translate:function(){var a,b=this.data,c,d,g=this.radii;h.scatter.prototype.translate.call(this);for(a=b.length;a--;)c=b[a],d=g?g[a]:0,c.negative=c.z<(this.options.zThreshold||0),d>=this.minPxSize/2?(c.shapeType="circle",c.shapeArgs={x:c.plotX,y:c.plotY, +r:d},c.dlBox={x:c.plotX-d,y:c.plotY-d,width:2*d,height:2*d}):c.shapeArgs=c.plotY=c.dlBox=C},drawLegendSymbol:function(a,b){var c=v(a.itemStyle.fontSize)/2;b.legendSymbol=this.chart.renderer.circle(c,a.baseline-c,c).attr({zIndex:3}).add(b.legendGroup);b.legendSymbol.isMarker=!0},drawPoints:h.column.prototype.drawPoints,alignDataLabel:h.column.prototype.alignDataLabel});N.prototype.beforePadding=function(){var a=this,b=this.len,c=this.chart,d=0,g=b,f=this.isXAxis,e=f?"xData":"yData",i=this.min,h={}, +k=s.min(c.plotWidth,c.plotHeight),j=Number.MAX_VALUE,l=-Number.MAX_VALUE,m=this.max-i,n=b/m,p=[];this.tickPositions&&(r(this.series,function(b){var c=b.options;if(b.type==="bubble"&&b.visible&&(a.allowZoomOutside=!0,p.push(b),f))r(["minSize","maxSize"],function(a){var b=c[a],d=/%$/.test(b),b=v(b);h[a]=d?k*b/100:b}),b.minPxSize=h.minSize,b=b.zData,b.length&&(j=s.min(j,s.max(P(b),c.displayNegative===!1?c.zThreshold:-Number.MAX_VALUE)),l=s.max(l,Q(b)))}),r(p,function(a){var b=a[e],c=b.length,k;f&&a.getRadii(j, +l,h.minSize,h.maxSize);if(m>0)for(;c--;)k=a.radii[c],d=Math.min((b[c]-i)*n-k,d),g=Math.max((b[c]-i)*n+k,g)}),m>0&&q(this.options.min,this.userMin)===C&&q(this.options.max,this.userMax)===C&&(g-=b,n*=(b+d-g)/b,this.min+=d/n,this.max+=g/n))};var y=z.prototype,m=l.Pointer.prototype;y.toXY=function(a){var b,c=this.chart;b=a.plotX;var d=a.plotY;a.rectPlotX=b;a.rectPlotY=d;a.clientX=(b/Math.PI*180+this.xAxis.pane.options.startAngle)%360;b=this.xAxis.postTranslate(a.plotX,this.yAxis.len-d);a.plotX=a.polarPlotX= +b.x-c.plotLeft;a.plotY=a.polarPlotY=b.y-c.plotTop};y.orderTooltipPoints=function(a){if(this.chart.polar&&(a.sort(function(a,c){return a.clientX-c.clientX}),a[0]))a[0].wrappedClientX=a[0].clientX+360,a.push(a[0])};n(h.area.prototype,"init",K);n(h.areaspline.prototype,"init",K);n(h.spline.prototype,"getPointSpline",function(a,b,c,d){var g,f,e,i,h,k,j;if(this.chart.polar){g=c.plotX;f=c.plotY;a=b[d-1];e=b[d+1];this.connectEnds&&(a||(a=b[b.length-2]),e||(e=b[1]));if(a&&e)i=a.plotX,h=a.plotY,b=e.plotX, +k=e.plotY,i=(1.5*g+i)/2.5,h=(1.5*f+h)/2.5,e=(1.5*g+b)/2.5,j=(1.5*f+k)/2.5,b=Math.sqrt(Math.pow(i-g,2)+Math.pow(h-f,2)),k=Math.sqrt(Math.pow(e-g,2)+Math.pow(j-f,2)),i=Math.atan2(h-f,i-g),h=Math.atan2(j-f,e-g),j=Math.PI/2+(i+h)/2,Math.abs(i-j)>Math.PI/2&&(j-=Math.PI),i=g+Math.cos(j)*b,h=f+Math.sin(j)*b,e=g+Math.cos(Math.PI+j)*k,j=f+Math.sin(Math.PI+j)*k,c.rightContX=e,c.rightContY=j;d?(c=["C",a.rightContX||a.plotX,a.rightContY||a.plotY,i||g,h||f,g,f],a.rightContX=a.rightContY=null):c=["M",g,f]}else c= +a.call(this,b,c,d);return c});n(y,"translate",function(a){a.call(this);if(this.chart.polar&&!this.preventPostTranslate)for(var a=this.points,b=a.length;b--;)this.toXY(a[b])});n(y,"getSegmentPath",function(a,b){var c=this.points;if(this.chart.polar&&this.options.connectEnds!==!1&&b[b.length-1]===c[c.length-1]&&c[0].y!==null)this.connectEnds=!0,b=[].concat(b,[c[0]]);return a.call(this,b)});n(y,"animate",L);n(t,"animate",L);n(y,"setTooltipPoints",function(a,b){this.chart.polar&&F(this.xAxis,{tooltipLen:360}); +return a.call(this,b)});n(t,"translate",function(a){var b=this.xAxis,c=this.yAxis.len,d=b.center,g=b.startAngleRad,f=this.chart.renderer,e,h;this.preventPostTranslate=!0;a.call(this);if(b.isRadial){b=this.points;for(h=b.length;h--;)e=b[h],a=e.barX+g,e.shapeType="path",e.shapeArgs={d:f.symbols.arc(d[0],d[1],c-e.plotY,null,{start:a,end:a+e.pointWidth,innerR:c-q(e.yBottom,c)})},this.toXY(e)}});n(t,"alignDataLabel",function(a,b,c,d,g,f){if(this.chart.polar){a=b.rectPlotX/Math.PI*180;if(d.align===null)d.align= +a>20&&a<160?"left":a>200&&a<340?"right":"center";if(d.verticalAlign===null)d.verticalAlign=a<45||a>315?"bottom":a>135&&a<225?"top":"middle";y.alignDataLabel.call(this,b,c,d,g,f)}else a.call(this,b,c,d,g,f)});n(m,"getIndex",function(a,b){var c,d=this.chart,g;d.polar?(g=d.xAxis[0].center,c=b.chartX-g[0]-d.plotLeft,d=b.chartY-g[1]-d.plotTop,c=180-Math.round(Math.atan2(c,d)/Math.PI*180)):c=a.call(this,b);return c});n(m,"getCoordinates",function(a,b){var c=this.chart,d={xAxis:[],yAxis:[]};c.polar?r(c.axes, +function(a){var f=a.isXAxis,e=a.center,h=b.chartX-e[0]-c.plotLeft,e=b.chartY-e[1]-c.plotTop;d[f?"xAxis":"yAxis"].push({axis:a,value:a.translate(f?Math.PI-Math.atan2(h,e):Math.sqrt(Math.pow(h,2)+Math.pow(e,2)),!0)})}):d=a.call(this,b);return d})})(Highcharts); diff --git a/97suifangqa/apps/indicator/static/plugins/highcharts/highcharts.js b/97suifangqa/apps/indicator/static/plugins/highcharts/highcharts.js new file mode 100644 index 0000000..9f2c8cb --- /dev/null +++ b/97suifangqa/apps/indicator/static/plugins/highcharts/highcharts.js @@ -0,0 +1,277 @@ +/* + Highcharts JS v3.0.4 (2013-08-02) + + (c) 2009-2013 Torstein Hønsi + + License: www.highcharts.com/license +*/ +(function(){function r(a,b){var c;a||(a={});for(c in b)a[c]=b[c];return a}function x(){var a,b=arguments.length,c={},d=function(a,b){var c,h;typeof a!=="object"&&(a={});for(h in b)b.hasOwnProperty(h)&&(c=b[h],a[h]=c&&typeof c==="object"&&Object.prototype.toString.call(c)!=="[object Array]"&&typeof c.nodeType!=="number"?d(a[h]||{},c):b[h]);return a};for(a=0;a3?c.length%3:0;return e+(g?c.substr(0,g)+d:"")+c.substr(g).replace(/(\d{3})(?=\d)/g,"$1"+d)+(f?b+P(a-c).toFixed(f).slice(2):"")}function za(a,b){return Array((b||2)+1-String(a).length).join(0)+a}function Bb(a,b,c){var d=a[b];a[b]=function(){var a=Array.prototype.slice.call(arguments);a.unshift(d);return c.apply(this,a)}}function Aa(a,b){for(var c="{",d=!1, +e,f,g,h,i,j=[];(c=a.indexOf(c))!==-1;){e=a.slice(0,c);if(d){f=e.split(":");g=f.shift().split(".");i=g.length;e=b;for(h=0;h-1?h.thousandsSep:"")):e=Xa(f,e)}j.push(e);a=a.slice(c+1);c=(d=!d)?"}":"{"}j.push(a);return j.join("")}function lb(a){return N.pow(10,S(N.log(a)/N.LN10))}function mb(a,b,c,d){var e,c=p(c,1);e=a/c;b||(b=[1,2,2.5,5,10],d&&d.allowDecimals=== +!1&&(c===1?b=[1,2,5,10]:c<=0.1&&(b=[1/c])));for(d=0;d=y[nb]&&(i.setMilliseconds(0),i.setSeconds(j>=y[Ya]?0:k*S(i.getSeconds()/k)));if(j>=y[Ya])i[Fb](j>=y[Qa]?0:k*S(i[ob]()/k));if(j>=y[Qa])i[Gb](j>=y[ra]?0:k*S(i[pb]()/k));if(j>=y[ra])i[qb](j>=y[Ra]?1:k*S(i[Sa]()/k));j>=y[Ra]&&(i[Hb](j>=y[sa]?0:k*S(i[$a]()/k)),h=i[ab]());j>=y[sa]&&(h-=h%k,i[Ib](h));if(j===y[Za])i[qb](i[Sa]()-i[rb]()+ +p(d,1));b=1;h=i[ab]();for(var d=i.getTime(),l=i[$a](),m=i[Sa](),o=g?0:(864E5+i.getTimezoneOffset()*6E4)%864E5;dc&&(c=a[b]);return c}function Ja(a,b){for(var c in a)a[c]&&a[c]!==b&&a[c].destroy&&a[c].destroy(),delete a[c]}function Ta(a){cb||(cb=T(Ba));a&&cb.appendChild(a);cb.innerHTML=""}function ua(a,b){var c="Highcharts error #"+a+": www.highcharts.com/errors/"+a;if(b)throw c;else E.console&&console.log(c)}function ia(a){return parseFloat(a.toPrecision(14))} +function Ka(a,b){Ca=p(a,b.animation)}function Lb(){var a=O.global.useUTC,b=a?"getUTC":"get",c=a?"setUTC":"set";bb=a?Date.UTC:function(a,b,c,g,h,i){return(new Date(a,b,p(c,1),p(g,0),p(h,0),p(i,0))).getTime()};ob=b+"Minutes";pb=b+"Hours";rb=b+"Day";Sa=b+"Date";$a=b+"Month";ab=b+"FullYear";Fb=c+"Minutes";Gb=c+"Hours";qb=c+"Date";Hb=c+"Month";Ib=c+"FullYear"}function va(){}function La(a,b,c,d){this.axis=a;this.pos=b;this.type=c||"";this.isNew=!0;!c&&!d&&this.addLabel()}function tb(a,b){this.axis=a;if(b)this.options= +b,this.id=b.id}function Mb(a,b,c,d,e,f){var g=a.chart.inverted;this.axis=a;this.isNegative=c;this.options=b;this.x=d;this.total=0;this.points={};this.stack=e;this.percent=f==="percent";this.alignOptions={align:b.align||(g?c?"left":"right":"center"),verticalAlign:b.verticalAlign||(g?"middle":c?"bottom":"top"),y:p(b.y,g?4:c?14:-6),x:p(b.x,g?c?-6:6:0)};this.textAlign=b.textAlign||(g?c?"right":"left":"center")}function db(){this.init.apply(this,arguments)}function ub(){this.init.apply(this,arguments)} +function vb(a,b){this.init(a,b)}function wb(a,b){this.init(a,b)}function xb(){this.init.apply(this,arguments)}var v,z=document,E=window,N=Math,s=N.round,S=N.floor,ja=N.ceil,u=N.max,I=N.min,P=N.abs,V=N.cos,ba=N.sin,Ma=N.PI,Ua=Ma*2/360,Da=navigator.userAgent,Nb=E.opera,qa=/msie/i.test(Da)&&!Nb,eb=z.documentMode===8,fb=/AppleWebKit/.test(Da),gb=/Firefox/.test(Da),Ob=/(Mobile|Android|Windows Phone)/.test(Da),wa="http://www.w3.org/2000/svg",Y=!!z.createElementNS&&!!z.createElementNS(wa,"svg").createSVGRect, +Vb=gb&&parseInt(Da.split("Firefox/")[1],10)<4,Z=!Y&&!qa&&!!z.createElement("canvas").getContext,Va,hb=z.documentElement.ontouchstart!==v,Pb={},yb=0,cb,O,Xa,Ca,zb,y,xa=function(){},Ea=[],Ba="div",R="none",Qb="rgba(192,192,192,"+(Y?1.0E-4:0.002)+")",Db="millisecond",nb="second",Ya="minute",Qa="hour",ra="day",Za="week",Ra="month",sa="year",Rb="stroke-width",bb,ob,pb,rb,Sa,$a,ab,Fb,Gb,qb,Hb,Ib,$={};E.Highcharts=E.Highcharts?ua(16,!0):{};Xa=function(a,b,c){if(!t(b)||isNaN(b))return"Invalid date";var a= +p(a,"%Y-%m-%d %H:%M:%S"),d=new Date(b),e,f=d[pb](),g=d[rb](),h=d[Sa](),i=d[$a](),j=d[ab](),k=O.lang,l=k.weekdays,d=r({a:l[g].substr(0,3),A:l[g],d:za(h),e:h,b:k.shortMonths[i],B:k.months[i],m:za(i+1),y:j.toString().substr(2,2),Y:j,H:za(f),I:za(f%12||12),l:f%12||12,M:za(d[ob]()),p:f<12?"AM":"PM",P:f<12?"am":"pm",S:za(d.getSeconds()),L:za(s(b%1E3),3)},Highcharts.dateFormats);for(e in d)for(;a.indexOf("%"+e)!==-1;)a=a.replace("%"+e,typeof d[e]==="function"?d[e](b):d[e]);return c?a.substr(0,1).toUpperCase()+ +a.substr(1):a};Jb.prototype={wrapColor:function(a){if(this.color>=a)this.color=0},wrapSymbol:function(a){if(this.symbol>=a)this.symbol=0}};y=function(){for(var a=0,b=arguments,c=b.length,d={};a-1,f=e?7:3,g,b=b.split(" "),c=[].concat(c),h,i,j=function(a){for(g=a.length;g--;)a[g]==="M"&&a.splice(g+1,0,a[g+1],a[g+2],a[g+1],a[g+2])};e&& +(j(b),j(c));a.isArea&&(h=b.splice(b.length-6,6),i=c.splice(c.length-6,6));if(d<=c.length/f)for(;d--;)c=[].concat(c).splice(0,f).concat(c);a.shift=0;if(b.length)for(a=c.length;b.length{point.key}
',pointFormat:'{series.name}: {point.y}
',shadow:!0,snap:Ob?25:10,style:{color:"#333333",cursor:"default",fontSize:"12px",padding:"8px",whiteSpace:"nowrap"}},credits:{enabled:!0,text:"Highcharts.com",href:"http://www.highcharts.com", +position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#909090",fontSize:"9px"}}};var X=O.plotOptions,W=X.line;Lb();var oa=function(a){var b=[],c,d;(function(a){a&&a.stops?d=Na(a.stops,function(a){return oa(a[1])}):(c=/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(a))?b=[A(c[1]),A(c[2]),A(c[3]),parseFloat(c[4],10)]:(c=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(a))?b=[A(c[1],16),A(c[2],16),A(c[3], +16),1]:(c=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(a))&&(b=[A(c[1]),A(c[2]),A(c[3]),1])})(a);return{get:function(c){var f;d?(f=x(a),f.stops=[].concat(f.stops),n(d,function(a,b){f.stops[b]=[f.stops[b][0],a.get(c)]})):f=b&&!isNaN(b[0])?c==="rgb"?"rgb("+b[0]+","+b[1]+","+b[2]+")":c==="a"?b[3]:"rgba("+b.join(",")+")":a;return f},brighten:function(a){if(d)n(d,function(b){b.brighten(a)});else if(pa(a)&&a!==0){var c;for(c=0;c<3;c++)b[c]+=A(a*255),b[c]<0&&(b[c]=0),b[c]>255&& +(b[c]=255)}return this},rgba:b,setOpacity:function(a){b[3]=a;return this}}};va.prototype={init:function(a,b){this.element=b==="span"?T(b):z.createElementNS(wa,b);this.renderer=a;this.attrSetters={}},opacity:1,animate:function(a,b,c){b=p(b,Ca,!0);Wa(this);if(b){b=x(b);if(c)b.complete=c;Ab(this,a,b)}else this.attr(a),c&&c()},attr:function(a,b){var c,d,e,f,g=this.element,h=g.nodeName.toLowerCase(),i=this.renderer,j,k=this.attrSetters,l=this.shadows,m,o,q=this;da(a)&&t(b)&&(c=a,a={},a[c]=b);if(da(a))c= +a,h==="circle"?c={x:"cx",y:"cy"}[c]||c:c==="strokeWidth"&&(c="stroke-width"),q=w(g,c)||this[c]||0,c!=="d"&&c!=="visibility"&&(q=parseFloat(q));else{for(c in a)if(j=!1,d=a[c],e=k[c]&&k[c].call(this,d,c),e!==!1){e!==v&&(d=e);if(c==="d")d&&d.join&&(d=d.join(" ")),/(NaN| {2}|^$)/.test(d)&&(d="M 0 0");else if(c==="x"&&h==="text")for(e=0;em&&/[ \-]/.test(b.textContent||b.innerText))M(b,{width:m+"px",display:"block",whiteSpace:"normal"}),k=m;m=a.fontMetrics(b.style.fontSize).b;D=o<0&&-k;F=q<0&&-l;ka=o*q<0;D+=q*m*(ka?1-h:h);F-=o*m*(j?ka?h:1-h:1);i&&(D-=k*h*(o<0?-1:1),j&&(F-=l*h*(q<0?-1:1)),M(b,{textAlign:g}));this.xCorr=D;this.yCorr=F}M(b,{left:e+D+"px",top:f+F+"px"});if(fb)l=b.offsetHeight; +this.cTT=Tb}}else this.alignOnAdd=!0},setSpanRotation:function(a){var b={};b[qa?"-ms-transform":fb?"-webkit-transform":gb?"MozTransform":Nb?"-o-transform":""]=b.transform="rotate("+a+"deg)";M(this.element,b)},updateTransform:function(){var a=this.translateX||0,b=this.translateY||0,c=this.scaleX,d=this.scaleY,e=this.inverted,f=this.rotation;e&&(a+=this.attr("width"),b+=this.attr("height"));a=["translate("+a+","+b+")"];e?a.push("rotate(90) scale(-1,1)"):f&&a.push("rotate("+f+" "+(this.x||0)+" "+(this.y|| +0)+")");(t(c)||t(d))&&a.push("scale("+p(c,1)+" "+p(d,1)+")");a.length&&w(this.element,"transform",a.join(" "))},toFront:function(){var a=this.element;a.parentNode.appendChild(a);return this},align:function(a,b,c){var d,e,f,g,h={};e=this.renderer;f=e.alignedObjects;if(a){if(this.alignOptions=a,this.alignByTranslate=b,!c||da(c))this.alignTo=d=c||"renderer",fa(f,this),f.push(this),c=null}else a=this.alignOptions,b=this.alignByTranslate,d=this.alignTo;c=p(c,e[d],e);d=a.align;e=a.verticalAlign;f=(c.x|| +0)+(a.x||0);g=(c.y||0)+(a.y||0);if(d==="right"||d==="center")f+=(c.width-(a.width||0))/{right:1,center:2}[d];h[b?"translateX":"x"]=s(f);if(e==="bottom"||e==="middle")g+=(c.height-(a.height||0))/({bottom:1,middle:2}[e]||1);h[b?"translateY":"y"]=s(g);this[this.placed?"animate":"attr"](h);this.placed=!0;this.alignAttr=h;return this},getBBox:function(){var a=this.bBox,b=this.renderer,c,d=this.rotation;c=this.element;var e=this.styles,f=d*Ua;if(!a){if(c.namespaceURI===wa||b.forExport){try{a=c.getBBox? +r({},c.getBBox()):{width:c.offsetWidth,height:c.offsetHeight}}catch(g){}if(!a||a.width<0)a={width:0,height:0}}else a=this.htmlGetBBox();if(b.isSVG){b=a.width;c=a.height;if(qa&&e&&e.fontSize==="11px"&&c.toPrecision(3)==="22.7")a.height=c=14;if(d)a.width=P(c*ba(f))+P(b*V(f)),a.height=P(c*V(f))+P(b*ba(f))}this.bBox=a}return a},show:function(){return this.attr({visibility:"visible"})},hide:function(){return this.attr({visibility:"hidden"})},fadeOut:function(a){var b=this;b.animate({opacity:0},{duration:a|| +150,complete:function(){b.hide()}})},add:function(a){var b=this.renderer,c=a||b,d=c.element||b.box,e=d.childNodes,f=this.element,g=w(f,"zIndex"),h;if(a)this.parentGroup=a;this.parentInverted=a&&a.inverted;this.textStr!==void 0&&b.buildText(this);if(g)c.handleZ=!0,g=A(g);if(c.handleZ)for(c=0;cg||!t(g)&&t(b))){d.insertBefore(f,a);h=!0;break}h||d.appendChild(f);this.added=!0;C(this,"add");return this},safeRemoveChild:function(a){var b=a.parentNode; +b&&b.removeChild(a)},destroy:function(){var a=this,b=a.element||{},c=a.shadows,d=a.renderer.isSVG&&b.nodeName==="SPAN"&&b.parentNode,e,f;b.onclick=b.onmouseout=b.onmouseover=b.onmousemove=b.point=null;Wa(a);if(a.clipPath)a.clipPath=a.clipPath.destroy();if(a.stops){for(f=0;f/g,'').replace(/<(i|em)>/g,'').replace(//g,"").split(//g),f=b.childNodes,g=/style="([^"]+)"/, +h=/href="(http[^"]+)"/,i=w(b,"x"),j=a.styles,k=j&&j.width&&A(j.width),l=j&&j.lineHeight,m=f.length;m--;)b.removeChild(f[m]);k&&!a.added&&this.box.appendChild(b);e[e.length-1]===""&&e.pop();n(e,function(e,f){var m,p=0,e=e.replace(//g,"|||");m=e.split("|||");n(m,function(e){if(e!==""||m.length===1){var o={},n=z.createElementNS(wa,"tspan"),t;g.test(e)&&(t=e.match(g)[1].replace(/(;| |^)color([ :])/,"$1fill$2"),w(n,"style",t));h.test(e)&&!d&&(w(n,"onclick",'location.href="'+ +e.match(h)[1]+'"'),M(n,{cursor:"pointer"}));e=(e.replace(/<(.|\n)*?>/g,"")||" ").replace(/</g,"<").replace(/>/g,">");if(e!==" "&&(n.appendChild(z.createTextNode(e)),p?o.dx=0:o.x=i,w(n,o),!p&&f&&(!Y&&d&&M(n,{display:"block"}),w(n,"dy",l||c.fontMetrics(/px$/.test(n.style.fontSize)?n.style.fontSize:j.fontSize).h,fb&&n.offsetHeight)),b.appendChild(n),p++,k))for(var e=e.replace(/([^\^])-/g,"$1- ").split(" "),u,s=[];e.length||s.length;)delete a.bBox,u=a.getBBox().width,o=u>k,!o||e.length===1?(e=s, +s=[],e.length&&(n=z.createElementNS(wa,"tspan"),w(n,{dy:l||16,x:i}),t&&w(n,"style",t),b.appendChild(n),u>k&&(k=u))):(n.removeChild(n.firstChild),s.unshift(e.pop())),e.length&&n.appendChild(z.createTextNode(e.join(" ").replace(/- /g,"-")))}})})},button:function(a,b,c,d,e,f,g){var h=this.label(a,b,c,null,null,null,null,null,"button"),i=0,j,k,l,m,o,a={x1:0,y1:0,x2:0,y2:1},e=x({"stroke-width":1,stroke:"#CCCCCC",fill:{linearGradient:a,stops:[[0,"#FEFEFE"],[1,"#F6F6F6"]]},r:2,padding:5,style:{color:"black"}}, +e);l=e.style;delete e.style;f=x(e,{stroke:"#68A",fill:{linearGradient:a,stops:[[0,"#FFF"],[1,"#ACF"]]}},f);m=f.style;delete f.style;g=x(e,{stroke:"#68A",fill:{linearGradient:a,stops:[[0,"#9BD"],[1,"#CDF"]]}},g);o=g.style;delete g.style;J(h.element,qa?"mouseover":"mouseenter",function(){h.attr(f).css(m)});J(h.element,qa?"mouseout":"mouseleave",function(){j=[e,f,g][i];k=[l,m,o][i];h.attr(j).css(k)});h.setState=function(a){(i=a)?a===2&&h.attr(g).css(o):h.attr(e).css(l)};return h.on("click",function(){d.call(h)}).attr(e).css(r({cursor:"default"}, +l))},crispLine:function(a,b){a[1]===a[4]&&(a[1]=a[4]=s(a[1])-b%2/2);a[2]===a[5]&&(a[2]=a[5]=s(a[2])+b%2/2);return a},path:function(a){var b={fill:R};Ha(a)?b.d=a:U(a)&&r(b,a);return this.createElement("path").attr(b)},circle:function(a,b,c){a=U(a)?a:{x:a,y:b,r:c};return this.createElement("circle").attr(a)},arc:function(a,b,c,d,e,f){if(U(a))b=a.y,c=a.r,d=a.innerR,e=a.start,f=a.end,a=a.x;a=this.symbol("arc",a||0,b||0,c||0,c||0,{innerR:d||0,start:e||0,end:f||0});a.r=c;return a},rect:function(a,b,c,d, +e,f){e=U(a)?a.r:e;e=this.createElement("rect").attr({rx:e,ry:e,fill:R});return e.attr(U(a)?a:e.crisp(f,a,b,u(c,0),u(d,0)))},setSize:function(a,b,c){var d=this.alignedObjects,e=d.length;this.width=a;this.height=b;for(this.boxWrapper[p(c,!0)?"animate":"attr"]({width:a,height:b});e--;)d[e].align()},g:function(a){var b=this.createElement("g");return t(a)?b.attr({"class":"highcharts-"+a}):b},image:function(a,b,c,d,e){var f={preserveAspectRatio:R};arguments.length>1&&r(f,{x:b,y:c,width:d,height:e});f=this.createElement("image").attr(f); +f.element.setAttributeNS?f.element.setAttributeNS("http://www.w3.org/1999/xlink","href",a):f.element.setAttribute("hc-svg-href",a);return f},symbol:function(a,b,c,d,e,f){var g,h=this.symbols[a],h=h&&h(s(b),s(c),d,e,f),i=/^url\((.*?)\)$/,j,k;if(h)g=this.path(h),r(g,{symbolName:a,x:b,y:c,width:d,height:e}),f&&r(g,f);else if(i.test(a))k=function(a,b){a.element&&(a.attr({width:b[0],height:b[1]}),a.alignByTranslate||a.translate(s((d-b[0])/2),s((e-b[1])/2)))},j=a.match(i)[1],a=Pb[j],g=this.image(j).attr({x:b, +y:c}),g.isImg=!0,a?k(g,a):(g.attr({width:0,height:0}),T("img",{onload:function(){k(g,Pb[j]=[this.width,this.height])},src:j}));return g},symbols:{circle:function(a,b,c,d){var e=0.166*c;return["M",a+c/2,b,"C",a+c+e,b,a+c+e,b+d,a+c/2,b+d,"C",a-e,b+d,a-e,b,a+c/2,b,"Z"]},square:function(a,b,c,d){return["M",a,b,"L",a+c,b,a+c,b+d,a,b+d,"Z"]},triangle:function(a,b,c,d){return["M",a+c/2,b,"L",a+c,b+d,a,b+d,"Z"]},"triangle-down":function(a,b,c,d){return["M",a,b,"L",a+c,b,a+c/2,b+d,"Z"]},diamond:function(a, +b,c,d){return["M",a+c/2,b,"L",a+c,b+d/2,a+c/2,b+d,a,b+d/2,"Z"]},arc:function(a,b,c,d,e){var f=e.start,c=e.r||c||d,g=e.end-0.001,d=e.innerR,h=e.open,i=V(f),j=ba(f),k=V(g),g=ba(g),e=e.end-f');if(b)c=e||b==="span"||b==="img"?c.join(""):a.prepVML(c),this.element=T(c);this.renderer=a;this.attrSetters={}},add:function(a){var b=this.renderer,c=this.element,d=b.box,d=a?a.element||a:d;a&&a.inverted&&b.invertChild(c,d);d.appendChild(c);this.added=!0;this.alignOnAdd&&!this.deferUpdateTransform&&this.updateTransform();C(this,"add");return this},updateTransform:va.prototype.htmlUpdateTransform,setSpanRotation:function(a,b,c){M(this.element,{filter:a?["progid:DXImageTransform.Microsoft.Matrix(M11=", +c,", M12=",-b,", M21=",b,", M22=",c,", sizingMethod='auto expand')"].join(""):R})},attr:function(a,b){var c,d,e,f=this.element||{},g=f.style,h=f.nodeName,i=this.renderer,j=this.symbolName,k,l=this.shadows,m,o=this.attrSetters,q=this;da(a)&&t(b)&&(c=a,a={},a[c]=b);if(da(a))c=a,q=c==="strokeWidth"||c==="stroke-width"?this.strokeweight:this[c];else for(c in a)if(d=a[c],m=!1,e=o[c]&&o[c].call(this,d,c),e!==!1&&d!==null){e!==v&&(d=e);if(j&&/^(x|y|r|start|end|width|height|innerR|anchorX|anchorY)/.test(c))k|| +(this.symbolAttr(a),k=!0),m=!0;else if(c==="d"){d=d||[];this.d=d.join(" ");e=d.length;m=[];for(var p;e--;)if(pa(d[e]))m[e]=s(d[e]*10)-5;else if(d[e]==="Z")m[e]="x";else if(m[e]=d[e],d.isArc&&(d[e]==="wa"||d[e]==="at"))p=d[e]==="wa"?1:-1,m[e+5]===m[e+7]&&(m[e+7]-=p),m[e+6]===m[e+8]&&(m[e+8]-=p);d=m.join(" ")||"x";f.path=d;if(l)for(e=l.length;e--;)l[e].path=l[e].cutOff?this.cutOffPath(d,l[e].cutOff):d;m=!0}else if(c==="visibility"){if(l)for(e=l.length;e--;)l[e].style[c]=d;h==="DIV"&&(d=d==="hidden"? +"-999em":0,eb||(g[c]=d?"visible":"hidden"),c="top");g[c]=d;m=!0}else if(c==="zIndex")d&&(g[c]=d),m=!0;else if(na(c,["x","y","width","height"])!==-1)this[c]=d,c==="x"||c==="y"?c={x:"left",y:"top"}[c]:d=u(0,d),this.updateClipping?(this[c]=d,this.updateClipping()):g[c]=d,m=!0;else if(c==="class"&&h==="DIV")f.className=d;else if(c==="stroke")d=i.color(d,f,c),c="strokecolor";else if(c==="stroke-width"||c==="strokeWidth")f.stroked=d?!0:!1,c="strokeweight",this[c]=d,pa(d)&&(d+="px");else if(c==="dashstyle")(f.getElementsByTagName("stroke")[0]|| +T(i.prepVML([""]),null,null,f))[c]=d||"solid",this.dashstyle=d,m=!0;else if(c==="fill")if(h==="SPAN")g.color=d;else{if(h!=="IMG")f.filled=d!==R?!0:!1,d=i.color(d,f,c,this),c="fillcolor"}else if(c==="opacity")m=!0;else if(h==="shape"&&c==="rotation")this[c]=f.style[c]=d,f.style.left=-s(ba(d*Ua)+1)+"px",f.style.top=s(V(d*Ua))+"px";else if(c==="translateX"||c==="translateY"||c==="rotation")this[c]=d,this.updateTransform(),m=!0;else if(c==="text")this.bBox=null,f.innerHTML=d,m=!0;m||(eb?f[c]= +d:w(f,c,d))}return q},clip:function(a){var b=this,c;a?(c=a.members,fa(c,b),c.push(b),b.destroyClip=function(){fa(c,b)},a=a.getCSS(b)):(b.destroyClip&&b.destroyClip(),a={clip:eb?"inherit":"rect(auto)"});return b.css(a)},css:va.prototype.htmlCss,safeRemoveChild:function(a){a.parentNode&&Ta(a)},destroy:function(){this.destroyClip&&this.destroyClip();return va.prototype.destroy.apply(this)},on:function(a,b){this.element["on"+a]=function(){var a=E.event;a.target=a.srcElement;b(a)};return this},cutOffPath:function(a, +b){var c,a=a.split(/[ ,]/);c=a.length;if(c===9||c===11)a[c-4]=a[c-2]=A(a[c-2])-10*b;return a.join(" ")},shadow:function(a,b,c){var d=[],e,f=this.element,g=this.renderer,h,i=f.style,j,k=f.path,l,m,o,q;k&&typeof k.value!=="string"&&(k="x");m=k;if(a){o=p(a.width,3);q=(a.opacity||0.15)/o;for(e=1;e<=3;e++){l=o*2+1-2*e;c&&(m=this.cutOffPath(k.value,l+0.5));j=[''];h=T(g.prepVML(j),null, +{left:A(i.left)+p(a.offsetX,1),top:A(i.top)+p(a.offsetY,1)});if(c)h.cutOff=l+1;j=[''];T(g.prepVML(j),null,null,h);b?b.element.appendChild(h):f.parentNode.insertBefore(h,f);d.push(h)}this.shadows=d}return this}};K=ga(va,K);var la={Element:K,isIE8:Da.indexOf("MSIE 8.0")>-1,init:function(a,b,c){var d,e;this.alignedObjects=[];d=this.createElement(Ba);e=d.element;e.style.position="relative";a.appendChild(d.element);this.isVML=!0;this.box=e;this.boxWrapper= +d;this.setSize(b,c,!1);if(!z.namespaces.hcv)z.namespaces.add("hcv","urn:schemas-microsoft-com:vml"),z.createStyleSheet().cssText="hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } "},isHidden:function(){return!this.box.offsetWidth},clipRect:function(a,b,c,d){var e=this.createElement(),f=U(a);return r(e,{members:[],left:f?a.x:a,top:f?a.y:b,width:f?a.width:c,height:f?a.height:d,getCSS:function(a){var b=a.element,c=b.nodeName,a=a.inverted,d=this.top- +(c==="shape"?b.offsetTop:0),e=this.left,b=e+this.width,f=d+this.height,d={clip:"rect("+s(a?e:d)+"px,"+s(a?f:b)+"px,"+s(a?b:f)+"px,"+s(a?d:e)+"px)"};!a&&eb&&c==="DIV"&&r(d,{width:b+"px",height:f+"px"});return d},updateClipping:function(){n(e.members,function(a){a.css(e.getCSS(a))})}})},color:function(a,b,c,d){var e=this,f,g=/^rgba/,h,i,j=R;a&&a.linearGradient?i="gradient":a&&a.radialGradient&&(i="pattern");if(i){var k,l,m=a.linearGradient||a.radialGradient,o,q,p,D,F,u="",a=a.stops,t,s=[],v=function(){h= +[''];T(e.prepVML(h),null,null,b)};o=a[0];t=a[a.length-1];o[0]>0&&a.unshift([0,o[1]]);t[0]<1&&a.push([1,t[1]]);n(a,function(a,b){g.test(a[1])?(f=oa(a[1]),k=f.get("rgb"),l=f.get("a")):(k=a[1],l=1);s.push(a[0]*100+"% "+k);b?(p=l,D=k):(q=l,F=k)});if(c==="fill")if(i==="gradient")c=m.x1||m[0]||0,a=m.y1||m[1]||0,o=m.x2||m[2]||0,m=m.y2||m[3]||0,u='angle="'+(90-N.atan((m-a)/(o-c))*180/Ma)+'"',v(); +else{var j=m.r,r=j*2,G=j*2,H=m.cx,B=m.cy,x=b.radialReference,w,j=function(){x&&(w=d.getBBox(),H+=(x[0]-w.x)/w.width-0.5,B+=(x[1]-w.y)/w.height-0.5,r*=x[2]/w.width,G*=x[2]/w.height);u='src="'+O.global.VMLRadialGradientURL+'" size="'+r+","+G+'" origin="0.5,0.5" position="'+H+","+B+'" color2="'+F+'" ';v()};d.added?j():J(d,"add",j);j=D}else j=k}else if(g.test(a)&&b.tagName!=="IMG")f=oa(a),h=["<",c,' opacity="',f.get("a"),'"/>'],T(this.prepVML(h),null,null,b),j=f.get("rgb");else{j=b.getElementsByTagName(c); +if(j.length)j[0].opacity=1,j[0].type="solid";j=a}return j},prepVML:function(a){var b=this.isIE8,a=a.join("");b?(a=a.replace("/>",' xmlns="urn:schemas-microsoft-com:vml" />'),a=a.indexOf('style="')===-1?a.replace("/>",' style="display:inline-block;behavior:url(#default#VML);" />'):a.replace('style="','style="display:inline-block;behavior:url(#default#VML);')):a=a.replace("<","1&&f.attr({x:b,y:c,width:d,height:e});return f},rect:function(a,b,c,d,e,f){if(U(a))b=a.y,c=a.width,d=a.height,f=a.strokeWidth,a=a.x;var g=this.symbol("rect"); +g.r=e;return g.attr(g.crisp(f,a,b,u(c,0),u(d,0)))},invertChild:function(a,b){var c=b.style;M(a,{flip:"x",left:A(c.width)-1,top:A(c.height)-1,rotation:-90})},symbols:{arc:function(a,b,c,d,e){var f=e.start,g=e.end,h=e.r||c||d,c=e.innerR,d=V(f),i=ba(f),j=V(g),k=ba(g);if(g-f===0)return["x"];f=["wa",a-h,b-h,a+h,b+h,a+h*d,b+h*i,a+h*j,b+h*k];e.open&&!c&&f.push("e","M",a,b);f.push("at",a-c,b-c,a+c,b+c,a+c*j,b+c*k,a+c*d,b+c*i,"x","e");f.isArc=!0;return f},circle:function(a,b,c,d,e){e&&e.isCircle&&(a-=c/2, +b-=d/2);return["wa",a,b,a+c,b+d,a+c,b+d/2,a+c,b+d/2,"e"]},rect:function(a,b,c,d,e){var f=a+c,g=b+d,h;!t(e)||!e.r?f=Fa.prototype.symbols.square.apply(0,arguments):(h=I(e.r,c,d),f=["M",a+h,b,"L",f-h,b,"wa",f-2*h,b,f,b+2*h,f-h,b,f,b+h,"L",f,g-h,"wa",f-2*h,g-2*h,f,g,f,g-h,f-h,g,"L",a+h,g,"wa",a,g-2*h,a+2*h,g,a+h,g,a,g-h,"L",a,b+h,"wa",a,b,a+2*h,b+2*h,a,b+h,a+h,b,"x","e"]);return f}}};Highcharts.VMLRenderer=K=function(){this.init.apply(this,arguments)};K.prototype=x(Fa.prototype,la);Va=K}var Ub;if(Z)Highcharts.CanVGRenderer= +K=function(){wa="http://www.w3.org/1999/xhtml"},K.prototype.symbols={},Ub=function(){function a(){var a=b.length,d;for(d=0;dj&&(c=!1)):h+k>m&&(h=m-k,d&&h+l0&&b.height>0){f=x({align:c&&k&&"center",x:c?!k&& +4:10,verticalAlign:!c&&k&&"middle",y:c?k?16:10:k?6:-4,rotation:c&&!k&&90},f);if(!g)a.label=g=r.text(f.text,0,0,f.useHTML).attr({align:f.textAlign||f.align,rotation:f.rotation,zIndex:F}).css(f.style).add();b=[q[1],q[4],p(q[6],q[1])];q=[q[2],q[5],p(q[7],q[2])];c=Ia(b);k=Ia(q);g.align(f,!1,{x:c,y:k,width:ta(b)-c,height:ta(q)-k});g.show()}else g&&g.hide();return a},destroy:function(){fa(this.axis.plotLinesAndBands,this);delete this.axis;Ja(this)}};Mb.prototype={destroy:function(){Ja(this,this.axis)}, +setTotal:function(a){this.cum=this.total=a},addValue:function(a){this.setTotal(ia(this.total+a))},render:function(a){var b=this.options,c=b.format,c=c?Aa(c,this):b.formatter.call(this);this.label?this.label.attr({text:c,visibility:"hidden"}):this.label=this.axis.chart.renderer.text(c,0,0,b.useHTML).css(b.style).attr({align:this.textAlign,rotation:b.rotation,visibility:"hidden"}).add(a)},cacheExtremes:function(a,b){this.points[a.index]=b},setOffset:function(a,b){var c=this.axis,d=c.chart,e=d.inverted, +f=this.isNegative,g=c.translate(this.percent?100:this.total,0,0,0,1),c=c.translate(0),c=P(g-c),h=d.xAxis[0].translate(this.x)+a,i=d.plotHeight,f={x:e?f?g:g-c:h,y:e?i-h-b:f?i-g-c:i-g,width:e?c:b,height:e?b:c};if(e=this.label)e.align(this.alignOptions,null,f),f=e.alignAttr,e.attr({visibility:this.options.crop===!1||d.isInsidePlot(f.x,f.y)?Y?"inherit":"visible":"hidden"})}};db.prototype={defaultOptions:{dateTimeLabelFormats:{millisecond:"%H:%M:%S.%L",second:"%H:%M:%S",minute:"%H:%M",hour:"%H:%M",day:"%e. %b", +week:"%e. %b",month:"%b '%y",year:"%Y"},endOnTick:!1,gridLineColor:"#C0C0C0",labels:L,lineColor:"#C0D0E0",lineWidth:1,minPadding:0.01,maxPadding:0.01,minorGridLineColor:"#E0E0E0",minorGridLineWidth:1,minorTickColor:"#A0A0A0",minorTickLength:2,minorTickPosition:"outside",startOfWeek:1,startOnTick:!1,tickColor:"#C0D0E0",tickLength:5,tickmarkPlacement:"between",tickPixelInterval:100,tickPosition:"outside",tickWidth:1,title:{align:"middle",style:{color:"#4d759e",fontWeight:"bold"}},type:"linear"},defaultYAxisOptions:{endOnTick:!0, +gridLineWidth:1,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8,y:3},lineWidth:0,maxPadding:0.05,minPadding:0.05,startOnTick:!0,tickWidth:0,title:{rotation:270,text:"Values"},stackLabels:{enabled:!1,formatter:function(){return ya(this.total,-1)},style:L.style}},defaultLeftAxisOptions:{labels:{x:-8,y:null},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:8,y:null},title:{rotation:90}},defaultBottomAxisOptions:{labels:{x:0,y:14},title:{rotation:0}},defaultTopAxisOptions:{labels:{x:0,y:-5}, +title:{rotation:0}},init:function(a,b){var c=b.isX;this.horiz=a.inverted?!c:c;this.xOrY=(this.isXAxis=c)?"x":"y";this.opposite=b.opposite;this.side=this.horiz?this.opposite?0:2:this.opposite?1:3;this.setOptions(b);var d=this.options,e=d.type;this.labelFormatter=d.labels.formatter||this.defaultLabelFormatter;this.userOptions=b;this.minPixelPadding=0;this.chart=a;this.reversed=d.reversed;this.zoomEnabled=d.zoomEnabled!==!1;this.categories=d.categories||e==="category";this.isLog=e==="logarithmic";this.isDatetimeAxis= +e==="datetime";this.isLinked=t(d.linkedTo);this.tickmarkOffset=this.categories&&d.tickmarkPlacement==="between"?0.5:0;this.ticks={};this.minorTicks={};this.plotLinesAndBands=[];this.alternateBands={};this.len=0;this.minRange=this.userMinRange=d.minRange||d.maxZoom;this.range=d.range;this.offset=d.offset||0;this.stacks={};this.oldStacks={};this.stacksMax={};this._stacksTouched=0;this.min=this.max=null;var f,d=this.options.events;na(this,a.axes)===-1&&(a.axes.push(this),a[c?"xAxis":"yAxis"].push(this)); +this.series=this.series||[];if(a.inverted&&c&&this.reversed===v)this.reversed=!0;this.removePlotLine=this.removePlotBand=this.removePlotBandOrLine;for(f in d)J(this,f,d[f]);if(this.isLog)this.val2lin=ma,this.lin2val=ea},setOptions:function(a){this.options=x(this.defaultOptions,this.isXAxis?{}:this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],x(O[this.isXAxis?"xAxis":"yAxis"],a))},update:function(a, +b){var c=this.chart,a=c.options[this.xOrY+"Axis"][this.options.index]=x(this.userOptions,a);this.destroy(!0);this._addedPlotLB=!1;this.init(c,r(a,{events:v}));c.isDirtyBox=!0;p(b,!0)&&c.redraw()},remove:function(a){var b=this.chart,c=this.xOrY+"Axis";n(this.series,function(a){a.remove(!1)});fa(b.axes,this);fa(b[c],this);b.options[c].splice(this.options.index,1);n(b[c],function(a,b){a.options.index=b});this.destroy();b.isDirtyBox=!0;p(a,!0)&&b.redraw()},defaultLabelFormatter:function(){var a=this.axis, +b=this.value,c=a.categories,d=this.dateTimeLabelFormat,e=O.lang.numericSymbols,f=e&&e.length,g,h=a.options.labels.format,a=a.isLog?b:a.tickInterval;if(h)g=Aa(h,this);else if(c)g=b;else if(d)g=Xa(d,b);else if(f&&a>=1E3)for(;f--&&g===v;)c=Math.pow(1E3,f+1),a>=c&&e[f]!==null&&(g=ya(b/c,-1)+e[f]);g===v&&(g=b>=1E3?ya(b,0):ya(b,-1));return g},getSeriesExtremes:function(){var a=this,b=a.chart;a.hasVisibleSeries=!1;a.dataMin=a.dataMax=null;a.stacksMax={};a.buildStacks();n(a.series,function(c){if(c.visible|| +!b.options.chart.ignoreHiddenSeries){var d=c.options,e;e=d.threshold;a.hasVisibleSeries=!0;a.isLog&&e<=0&&(e=null);if(a.isXAxis){if(e=c.xData,e.length)a.dataMin=I(p(a.dataMin,e[0]),Ia(e)),a.dataMax=u(p(a.dataMax,e[0]),ta(e))}else{d=d.stacking;a.usePercentage=d==="percent";if(a.usePercentage)a.dataMin=0,a.dataMax=99;c.getExtremes();d=c.dataMax;c=c.dataMin;if(!a.usePercentage&&t(c)&&t(d))a.dataMin=I(p(a.dataMin,c),c),a.dataMax=u(p(a.dataMax,d),d);if(t(e))if(a.dataMin>=e)a.dataMin=e,a.ignoreMinPadding= +!0;else if(a.dataMaxf+this.width)m=!0}else if(c=f,i=l-this.right,hg+this.height)m=!0;return m&&!d? +null:e.renderer.crispLine(["M",c,h,"L",i,j],b||0)},getPlotBandPath:function(a,b){var c=this.getPlotLinePath(b),d=this.getPlotLinePath(a);d&&c?d.push(c[4],c[5],c[1],c[2]):d=null;return d},getLinearTickPositions:function(a,b,c){for(var d,b=ia(S(b/a)*a),c=ia(ja(c/a)*a),e=[];b<=c;){e.push(b);b=ia(b+a);if(b===d)break;d=b}return e},getLogTickPositions:function(a,b,c,d){var e=this.options,f=this.len,g=[];if(!d)this._minorAutoInterval=null;if(a>=0.5)a=s(a),g=this.getLinearTickPositions(a,b,c);else if(a>= +0.08)for(var f=S(b),h,i,j,k,l,e=a>0.3?[1,2,4]:a>0.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];fb&&(!d||k<=c)&&g.push(k),k>c&&(l=!0),k=j}else if(b=ea(b),c=ea(c),a=e[d?"minorTickInterval":"tickInterval"],a=p(a==="auto"?null:a,this._minorAutoInterval,(c-b)*(e.tickPixelInterval/(d?5:1))/((d?f/this.tickPositions.length:f)||1)),a=mb(a,null,lb(a)),g=Na(this.getLinearTickPositions(a,b,c),ma),!d)this._minorAutoInterval=a/5;if(!d)this.tickInterval=a;return g}, +getMinorTickPositions:function(){var a=this.options,b=this.tickPositions,c=this.minorTickInterval,d=[],e;if(this.isLog){e=b.length;for(a=1;a=this.minRange,f,g,h,i,j;if(this.isXAxis&&this.minRange===v&&!this.isLog)t(a.min)||t(a.max)?this.minRange=null:(n(this.series,function(a){i=a.xData;for(g=j=a.xIncrement?1:i.length-1;g>0;g--)if(h=i[g]-i[g-1],f===v||hb&&(g=0);c=u(c,g);e=u(e,da(h)?0:g/2);f=u(f,h==="on"?0:g);!a.noSharedTooltip&&t(l)&&(d=t(d)?I(d,l):l)}),g=this.ordinalSlope&&d?this.ordinalSlope/d:1,this.minPointOffset=e*=g,this.pointRangePadding=f*=g,this.pointRange=I(c,b),this.closestPointRange= +d;if(a)this.oldTransA=h;this.translationSlope=this.transA=h=this.len/(b+f||1);this.transB=this.horiz?this.left:this.bottom;this.minPixelPadding=h*e},setTickPositions:function(a){var b=this,c=b.chart,d=b.options,e=b.isLog,f=b.isDatetimeAxis,g=b.isXAxis,h=b.isLinked,i=b.options.tickPositioner,j=d.maxPadding,k=d.minPadding,l=d.tickInterval,m=d.minTickInterval,o=d.tickPixelInterval,q=b.categories;h?(b.linkedParent=c[g?"xAxis":"yAxis"][d.linkedTo],c=b.linkedParent.getExtremes(),b.min=p(c.min,c.dataMin), +b.max=p(c.max,c.dataMax),d.type!==b.linkedParent.options.type&&ua(11,1)):(b.min=p(b.userMin,d.min,b.dataMin),b.max=p(b.userMax,d.max,b.dataMax));if(e)!a&&I(b.min,p(b.dataMin,b.min))<=0&&ua(10,1),b.min=ia(ma(b.min)),b.max=ia(ma(b.max));if(b.range&&(b.userMin=b.min=u(b.min,b.max-b.range),b.userMax=b.max,a))b.range=null;b.beforePadding&&b.beforePadding();b.adjustForMinRange();if(!q&&!b.usePercentage&&!h&&t(b.min)&&t(b.max)&&(c=b.max-b.min)){if(!t(d.min)&&!t(b.userMin)&&k&&(b.dataMin<0||!b.ignoreMinPadding))b.min-= +c*k;if(!t(d.max)&&!t(b.userMax)&&j&&(b.dataMax>0||!b.ignoreMaxPadding))b.max+=c*j}b.tickInterval=b.min===b.max||b.min===void 0||b.max===void 0?1:h&&!l&&o===b.linkedParent.options.tickPixelInterval?b.linkedParent.tickInterval:p(l,q?1:(b.max-b.min)*o/(b.len||1));g&&!a&&n(b.series,function(a){a.processData(b.min!==b.oldMin||b.max!==b.oldMax)});b.setAxisTranslation(!0);b.beforeSetTickPositions&&b.beforeSetTickPositions();if(b.postProcessTickInterval)b.tickInterval=b.postProcessTickInterval(b.tickInterval); +if(b.pointRange)b.tickInterval=u(b.pointRange,b.tickInterval);if(!l&&b.tickIntervale&&a.shift(),d.endOnTick?b.max=f:b.max+h(b[d]||0)&& +this.options.alignTicks!==!1)b[d]=c.length;a.maxTicks=b},adjustTickAmount:function(){var a=this._maxTicksKey,b=this.tickPositions,c=this.chart.maxTicks;if(c&&c[a]&&!this.isDatetimeAxis&&!this.categories&&!this.isLinked&&this.options.alignTicks!==!1){var d=this.tickAmount,e=b.length;this.tickAmount=a=c[a];if(e=this.dataMax&&(b=v));this.displayBtn= +a!==v||b!==v;this.setExtremes(a,b,!1,v,{trigger:"zoom"});return!0},setAxisSize:function(){var a=this.chart,b=this.options,c=b.offsetLeft||0,d=b.offsetRight||0,e=this.horiz,f,g;this.left=g=p(b.left,a.plotLeft+c);this.top=f=p(b.top,a.plotTop);this.width=c=p(b.width,a.plotWidth-c+d);this.height=b=p(b.height,a.plotHeight);this.bottom=a.chartHeight-b-f;this.right=a.chartWidth-c-g;this.len=u(e?c:b,0);this.pos=e?g:f},getExtremes:function(){var a=this.isLog;return{min:a?ia(ea(this.min)):this.min,max:a?ia(ea(this.max)): +this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var b=this.isLog,c=b?ea(this.min):this.min,b=b?ea(this.max):this.max;c>a||a===null?a=c:b15&&a<165?"right":a>195&&a<345?"left":"center"},getOffset:function(){var a=this,b=a.chart,c=b.renderer,d=a.options,e=a.tickPositions,f=a.ticks,g=a.horiz,h=a.side,i=b.inverted?[1,0,3,2][h]:h,j,k=0,l,m=0,o=d.title,q=d.labels,ka=0,D=b.axisOffset,F=b.clipOffset,s=[-1,1,1,-1][h],r,w=1,x=p(q.maxStaggerLines,5),Ga,G,H,B;a.hasData=j=a.hasVisibleSeries||t(a.min)&&t(a.max)&&!!e;a.showAxis=b=j||p(d.showEmpty,!0);a.staggerLines=a.horiz&& +q.staggerLines;if(!a.axisGroup)a.gridGroup=c.g("grid").attr({zIndex:d.gridZIndex||1}).add(),a.axisGroup=c.g("axis").attr({zIndex:d.zIndex||2}).add(),a.labelGroup=c.g("axis-labels").attr({zIndex:q.zIndex||7}).add();if(j||a.isLinked){a.labelAlign=p(q.align||a.autoLabelAlign(q.rotation));n(e,function(b){f[b]?f[b].addLabel():f[b]=new La(a,b)});if(a.horiz&&!a.staggerLines&&x&&!q.rotation){for(r=a.reversed?[].concat(e).reverse():e;w1)a.staggerLines=w}n(e,function(b){if(h===0||h===2||{1:"left",3:"right"}[h]===a.labelAlign)ka=u(f[b].getLabelSize(),ka)});if(a.staggerLines)ka*=a.staggerLines,a.labelOffset=ka}else for(r in f)f[r].destroy(),delete f[r];if(o&&o.text&&o.enabled!==!1){if(!a.axisTitle)a.axisTitle=c.text(o.text,0,0,o.useHTML).attr({zIndex:7,rotation:o.rotation||0,align:o.textAlign||{low:"left",middle:"center",high:"right"}[o.align]}).css(o.style).add(a.axisGroup), +a.axisTitle.isNew=!0;if(b)k=a.axisTitle.getBBox()[g?"height":"width"],m=p(o.margin,g?5:10),l=o.offset;a.axisTitle[b?"show":"hide"]()}a.offset=s*p(d.offset,D[h]);a.axisTitleMargin=p(l,ka+m+(h!==2&&ka&&s*d.labels[g?"y":"x"]));D[h]=u(D[h],a.axisTitleMargin+k+s*a.offset);F[i]=u(F[i],d.lineWidth)},getLinePath:function(a){var b=this.chart,c=this.opposite,d=this.offset,e=this.horiz,f=this.left+(c?this.width:0)+d;this.lineTop=d=b.chartHeight-this.bottom-(c?this.height:0)+d;c||(a*=-1);return b.renderer.crispLine(["M", +e?this.left:f,e?d:this.top,"L",e?b.chartWidth-this.right:f,e?d:b.chartHeight-this.bottom],a)},getTitlePosition:function(){var a=this.horiz,b=this.left,c=this.top,d=this.len,e=this.options.title,f=a?b:c,g=this.opposite,h=this.offset,i=A(e.style.fontSize||12),d={low:f+(a?0:d),middle:f+d/2,high:f+(a?d:0)}[e.align],b=(a?c+this.height:b)+(a?1:-1)*(g?-1:1)*this.axisTitleMargin+(this.side===2?i:0);return{x:a?d:b+(g?this.width:0)+h+(e.x||0),y:a?b-(g?this.height:0)+h:d+(e.y||0)}},render:function(){var a=this, +b=a.chart,c=b.renderer,d=a.options,e=a.isLog,f=a.isLinked,g=a.tickPositions,h=a.axisTitle,i=a.stacks,j=a.ticks,k=a.minorTicks,l=a.alternateBands,m=d.stackLabels,o=d.alternateGridColor,q=a.tickmarkOffset,p=d.lineWidth,D,F=b.hasRendered&&t(a.oldMin)&&!isNaN(a.oldMin);D=a.hasData;var u=a.showAxis,s,r;n([j,k,l],function(a){for(var b in a)a[b].isActive=!1});if(D||f)if(a.minorTickInterval&&!a.categories&&n(a.getMinorTickPositions(),function(b){k[b]||(k[b]=new La(a,b,"minor"));F&&k[b].isNew&&k[b].render(null, +!0);k[b].render(null,!1,1)}),g.length&&(n(g.slice(1).concat([g[0]]),function(b,c){c=c===g.length-1?0:c+1;if(!f||b>=a.min&&b<=a.max)j[b]||(j[b]=new La(a,b)),F&&j[b].isNew&&j[b].render(c,!0),j[b].render(c,!1,1)}),q&&a.min===0&&(j[-1]||(j[-1]=new La(a,-1,null,!0)),j[-1].render(-1))),o&&n(g,function(b,c){if(c%2===0&&b1||P(b-f.y)>1))clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){e&&e.move(a,b,c,d)},32)},hide:function(){var a=this,b;clearTimeout(this.hideTimer);if(!this.isHidden)b=this.chart.hoverPoints,this.hideTimer=setTimeout(function(){a.label.fadeOut();a.isHidden=!0},p(this.options.hideDelay,500)),b&&n(b,function(a){a.setState()}),this.chart.hoverPoints=null},hideCrosshairs:function(){n(this.crosshairs,function(a){a&&a.hide()})},getAnchor:function(a, +b){var c,d=this.chart,e=d.inverted,f=d.plotTop,g=0,h=0,i,a=ha(a);c=a[0].tooltipPos;this.followPointer&&b&&(b.chartX===v&&(b=d.pointer.normalize(b)),c=[b.chartX-d.plotLeft,b.chartY-f]);c||(n(a,function(a){i=a.series.yAxis;g+=a.plotX;h+=(a.plotLow?(a.plotLow+a.plotHigh)/2:a.plotY)+(!e&&i?i.top-f:0)}),g/=a.length,h/=a.length,c=[e?d.plotWidth-h:g,this.shared&&!e&&a.length>1&&b?b.chartY-f:e?d.plotHeight-g:h]);return Na(c,s)},getPosition:function(a,b,c){var d=this.chart,e=d.plotLeft,f=d.plotTop,g=d.plotWidth, +h=d.plotHeight,i=p(this.options.distance,12),j=c.plotX,c=c.plotY,d=j+e+(d.inverted?i:-a-i),k=c-b+f+15,l;d<7&&(d=e+u(j,0)+i);d+a>e+g&&(d-=d+a-(e+g),k=c-b+f-i,l=!0);k=k&&c<=k+b&&(k=c+f+i));k+b>f+h&&(k=u(f,f+h-b-i));return{x:d,y:k}},defaultFormatter:function(a){var b=this.points||ha(this),c=b[0].series,d;d=[c.tooltipHeaderFormatter(b[0])];n(b,function(a){c=a.series;d.push(c.tooltipFormatter&&c.tooltipFormatter(a)||a.point.tooltipFormatter(c.tooltipOptions.pointFormat))});d.push(a.options.footerFormat|| +"");return d.join("")},refresh:function(a,b){var c=this.chart,d=this.label,e=this.options,f,g,h,i={},j,k=[];j=e.formatter||this.defaultFormatter;var i=c.hoverPoints,l,m=e.crosshairs;h=this.shared;clearTimeout(this.hideTimer);this.followPointer=ha(a)[0].series.tooltipOptions.followPointer;g=this.getAnchor(a,b);f=g[0];g=g[1];h&&(!a.series||!a.series.noSharedTooltip)?(c.hoverPoints=a,i&&n(i,function(a){a.setState()}),n(a,function(a){a.setState("hover");k.push(a.getLabelConfig())}),i={x:a[0].category, +y:a[0].y},i.points=k,a=a[0]):i=a.getLabelConfig();j=j.call(i,this);i=a.series;h=h||!i.isCartesian||i.tooltipOutsidePlot||c.isInsidePlot(f,g);j===!1||!h?this.hide():(this.isHidden&&(Wa(d),d.attr("opacity",1).show()),d.attr({text:j}),l=e.borderColor||a.color||i.color||"#606060",d.attr({stroke:l}),this.updatePosition({plotX:f,plotY:g}),this.isHidden=!1);if(m){m=ha(m);for(d=m.length;d--;)if(i=a.series,e=i[d?"yAxis":"xAxis"],m[d]&&e)if(h=d?p(a.stackY,a.y):a.x,e.isLog&&(h=ma(h)),i.modifyValue&&(h=i.modifyValue(h)), +e=e.getPlotLinePath(h,1),this.crosshairs[d])this.crosshairs[d].attr({d:e,visibility:"visible"});else{h={"stroke-width":m[d].width||1,stroke:m[d].color||"#C0C0C0",zIndex:m[d].zIndex||2};if(m[d].dashStyle)h.dashstyle=m[d].dashStyle;this.crosshairs[d]=c.renderer.path(e).attr(h).add()}}C(c,"tooltipRefresh",{text:j,x:f+c.plotLeft,y:g+c.plotTop,borderColor:l})},updatePosition:function(a){var b=this.chart,c=this.label,c=(this.options.positioner||this.getPosition).call(this,c.width,c.height,a);this.move(s(c.x), +s(c.y),a.plotX+b.plotLeft,a.plotY+b.plotTop)}};vb.prototype={init:function(a,b){var c=Z?"":b.chart.zoomType,d=a.inverted,e;this.options=b;this.chart=a;this.zoomX=e=/x/.test(c);this.zoomY=c=/y/.test(c);this.zoomHor=e&&!d||c&&d;this.zoomVert=c&&!d||e&&d;this.pinchDown=[];this.lastValidTouch={};if(b.tooltip.enabled)a.tooltip=new ub(a,b.tooltip);this.setDOMEvents()},normalize:function(a){var b,c,a=a||E.event;if(!a.target)a.target=a.srcElement;a=Sb(a);c=a.touches?a.touches.item(0):a;this.chartPosition= +b=Xb(this.chart.container);return r(a,{chartX:s(p(c.pageX,c.clientX)-b.left),chartY:s(p(c.pageY,c.clientY)-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};n(this.chart.axes,function(c){b[c.isXAxis?"xAxis":"yAxis"].push({axis:c,value:c.toValue(a[c.horiz?"chartX":"chartY"])})});return b},getIndex:function(a){var b=this.chart;return b.inverted?b.plotHeight+b.plotTop-a.chartY:a.chartX-b.plotLeft},runPointActions:function(a){var b=this.chart,c=b.series,d=b.tooltip,e,f=b.hoverPoint,g=b.hoverSeries, +h,i,j=b.chartWidth,k=this.getIndex(a);if(d&&this.options.tooltip.shared&&(!g||!g.noSharedTooltip)){e=[];h=c.length;for(i=0;ij&&e.splice(h,1);if(e.length&&e[0].clientX!==this.hoverX)d.refresh(e,a),this.hoverX=e[0].clientX}if(g&&g.tracker){if((b=g.tooltipPoints[k])&&b!==f)b.onMouseOver(a)}else d&& +d.followPointer&&!d.isHidden&&(a=d.getAnchor([{}],a),d.updatePosition({plotX:a[0],plotY:a[1]}))},reset:function(a){var b=this.chart,c=b.hoverSeries,d=b.hoverPoint,e=b.tooltip,b=e&&e.shared?b.hoverPoints:d;(a=a&&e&&b)&&ha(b)[0].plotX===v&&(a=!1);if(a)e.refresh(b);else{if(d)d.onMouseOut();if(c)c.onMouseOut();e&&(e.hide(),e.hideCrosshairs());this.hoverX=null}},scaleGroups:function(a,b){var c=this.chart,d;n(c.series,function(e){d=a||e.getPlotBox();e.xAxis&&e.xAxis.zoomEnabled&&(e.group.attr(d),e.markerGroup&& +(e.markerGroup.attr(d),e.markerGroup.clip(b?c.clipRect:null)),e.dataLabelsGroup&&e.dataLabelsGroup.attr(d))});c.clipRect.attr(b||c.clipBox)},pinchTranslateDirection:function(a,b,c,d,e,f,g){var h=this.chart,i=a?"x":"y",j=a?"X":"Y",k="chart"+j,l=a?"width":"height",m=h["plot"+(a?"Left":"Top")],o,q,p=1,n=h.inverted,u=h.bounds[a?"h":"v"],s=b.length===1,t=b[0][k],r=c[0][k],w=!s&&b[1][k],v=!s&&c[1][k],x,c=function(){!s&&P(t-w)>20&&(p=P(r-v)/P(t-w));q=(m-r)/p+t;o=h["plot"+(a?"Width":"Height")]/p};c();b=q; +bu.max&&(b=u.max-o,x=!0);x?(r-=0.8*(r-g[i][0]),s||(v-=0.8*(v-g[i][1])),c()):g[i]=[r,v];n||(f[i]=q-m,f[l]=o);f=n?1/p:p;e[l]=o;e[i]=b;d[n?a?"scaleY":"scaleX":"scale"+j]=p;d["translate"+j]=f*m+(r-f*t)},pinch:function(a){var b=this,c=b.chart,d=b.pinchDown,e=c.tooltip&&c.tooltip.options.followTouchMove,f=a.touches,g=f.length,h=b.lastValidTouch,i=b.zoomHor||b.pinchHor,j=b.zoomVert||b.pinchVert,k=i||j,l=b.selectionMarker,m={},o={};a.type==="touchstart"&&(e||k)&&a.preventDefault(); +Na(f,function(a){return b.normalize(a)});if(a.type==="touchstart")n(f,function(a,b){d[b]={chartX:a.chartX,chartY:a.chartY}}),h.x=[d[0].chartX,d[1]&&d[1].chartX],h.y=[d[0].chartY,d[1]&&d[1].chartY],n(c.axes,function(a){if(a.zoomEnabled){var b=c.bounds[a.horiz?"h":"v"],d=a.minPixelPadding,e=a.toPixels(a.dataMin),f=a.toPixels(a.dataMax),g=I(e,f),e=u(e,f);b.min=I(a.pos,g-d);b.max=u(a.pos+a.len,e+d)}});else if(d.length){if(!l)b.selectionMarker=l=r({destroy:xa},c.plotBox);i&&b.pinchTranslateDirection(!0, +d,f,m,l,o,h);j&&b.pinchTranslateDirection(!1,d,f,m,l,o,h);b.hasPinched=k;b.scaleGroups(m,o);!k&&e&&g===1&&this.runPointActions(b.normalize(a))}},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,c=b.options.chart,d=a.chartX,a=a.chartY,e=this.zoomHor,f=this.zoomVert,g=b.plotLeft,h=b.plotTop,i=b.plotWidth,j=b.plotHeight,k,l=this.mouseDownX,m=this.mouseDownY;dg+i&&(d= +g+i);ah+j&&(a=h+j);this.hasDragged=Math.sqrt(Math.pow(l-d,2)+Math.pow(m-a,2));if(this.hasDragged>10){k=b.isInsidePlot(l-g,m-h);if(b.hasCartesianSeries&&(this.zoomX||this.zoomY)&&k&&!this.selectionMarker)this.selectionMarker=b.renderer.rect(g,h,e?1:i,f?1:j,0).attr({fill:c.selectionMarkerFill||"rgba(69,114,167,0.25)",zIndex:7}).add();this.selectionMarker&&e&&(e=d-l,this.selectionMarker.attr({width:P(e),x:(e>0?0:e)+l}));this.selectionMarker&&f&&(e=a-m,this.selectionMarker.attr({height:P(e), +y:(e>0?0:e)+m}));k&&!this.selectionMarker&&c.panning&&b.pan(d)}},drop:function(a){var b=this.chart,c=this.hasPinched;if(this.selectionMarker){var d={xAxis:[],yAxis:[],originalEvent:a.originalEvent||a},e=this.selectionMarker,f=e.x,g=e.y,h;if(this.hasDragged||c)n(b.axes,function(a){if(a.zoomEnabled){var b=a.horiz,c=a.toValue(b?f:g),b=a.toValue(b?f+e.width:g+e.height);!isNaN(c)&&!isNaN(b)&&(d[a.xOrY+"Axis"].push({axis:a,min:I(c,b),max:u(c,b)}),h=!0)}}),h&&C(b,"selection",d,function(a){b.zoom(r(a,c?{animation:!1}: +null))});this.selectionMarker=this.selectionMarker.destroy();c&&this.scaleGroups()}if(b)M(b.container,{cursor:b._cursor}),b.cancelClick=this.hasDragged>10,b.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[]},onContainerMouseDown:function(a){a=this.normalize(a);a.preventDefault&&a.preventDefault();this.dragStart(a)},onDocumentMouseUp:function(a){this.drop(a)},onDocumentMouseMove:function(a){var b=this.chart,c=this.chartPosition,d=b.hoverSeries,a=Sb(a);c&&d&&d.isCartesian&&!b.isInsidePlot(a.pageX- +c.left-b.plotLeft,a.pageY-c.top-b.plotTop)&&this.reset()},onContainerMouseLeave:function(){this.reset();this.chartPosition=null},onContainerMouseMove:function(a){var b=this.chart,a=this.normalize(a);a.returnValue=!1;b.mouseIsDown==="mousedown"&&this.drag(a);b.isInsidePlot(a.chartX-b.plotLeft,a.chartY-b.plotTop)&&!b.openMenu&&this.runPointActions(a)},inClass:function(a,b){for(var c;a;){if(c=w(a,"class"))if(c.indexOf(b)!==-1)return!0;else if(c.indexOf("highcharts-container")!==-1)return!1;a=a.parentNode}}, +onTrackerMouseOut:function(a){var b=this.chart.hoverSeries;if(b&&!b.options.stickyTracking&&!this.inClass(a.toElement||a.relatedTarget,"highcharts-tooltip"))b.onMouseOut()},onContainerClick:function(a){var b=this.chart,c=b.hoverPoint,d=b.plotLeft,e=b.plotTop,f=b.inverted,g,h,i,a=this.normalize(a);a.cancelBubble=!0;if(!b.cancelClick)c&&this.inClass(a.target,"highcharts-tracker")?(g=this.chartPosition,h=c.plotX,i=c.plotY,r(c,{pageX:g.left+d+(f?b.plotWidth-i:h),pageY:g.top+e+(f?b.plotHeight-h:i)}),C(c.series, +"click",r(a,{point:c})),b.hoverPoint&&c.firePointEvent("click",a)):(r(a,this.getCoordinates(a)),b.isInsidePlot(a.chartX-d,a.chartY-e)&&C(b,"click",a))},onContainerTouchStart:function(a){var b=this.chart;a.touches.length===1?(a=this.normalize(a),b.isInsidePlot(a.chartX-b.plotLeft,a.chartY-b.plotTop)?(this.runPointActions(a),this.pinch(a)):this.reset()):a.touches.length===2&&this.pinch(a)},onContainerTouchMove:function(a){(a.touches.length===1||a.touches.length===2)&&this.pinch(a)},onDocumentTouchEnd:function(a){this.drop(a)}, +setDOMEvents:function(){var a=this,b=a.chart.container,c;this._events=c=[[b,"onmousedown","onContainerMouseDown"],[b,"onmousemove","onContainerMouseMove"],[b,"onclick","onContainerClick"],[b,"mouseleave","onContainerMouseLeave"],[z,"mousemove","onDocumentMouseMove"],[z,"mouseup","onDocumentMouseUp"]];hb&&c.push([b,"ontouchstart","onContainerTouchStart"],[b,"ontouchmove","onContainerTouchMove"],[z,"touchend","onDocumentTouchEnd"]);n(c,function(b){a["_"+b[2]]=function(c){a[b[2]](c)};b[1].indexOf("on")=== +0?b[0][b[1]]=a["_"+b[2]]:J(b[0],b[1],a["_"+b[2]])})},destroy:function(){var a=this;n(a._events,function(b){b[1].indexOf("on")===0?b[0][b[1]]=null:aa(b[0],b[1],a["_"+b[2]])});delete a._events;clearInterval(a.tooltipTimeout)}};wb.prototype={init:function(a,b){var c=this,d=b.itemStyle,e=p(b.padding,8),f=b.itemMarginTop||0;this.options=b;if(b.enabled)c.baseline=A(d.fontSize)+3+f,c.itemStyle=d,c.itemHiddenStyle=x(d,b.itemHiddenStyle),c.itemMarginTop=f,c.padding=e,c.initialItemX=e,c.initialItemY=e-5,c.maxItemWidth= +0,c.chart=a,c.itemHeight=0,c.lastLineHeight=0,c.render(),J(c.chart,"endResize",function(){c.positionCheckboxes()})},colorizeItem:function(a,b){var c=this.options,d=a.legendItem,e=a.legendLine,f=a.legendSymbol,g=this.itemHiddenStyle.color,c=b?c.itemStyle.color:g,h=b?a.color:g,g=a.options&&a.options.marker,i={stroke:h,fill:h},j;d&&d.css({fill:c,color:c});e&&e.attr({stroke:h});if(f){if(g&&f.isMarker)for(j in g=a.convertAttribs(g),g)d=g[j],d!==v&&(i[j]=d);f.attr(i)}},positionItem:function(a){var b=this.options, +c=b.symbolPadding,b=!b.rtl,d=a._legendItemPos,e=d[0],d=d[1],f=a.checkbox;a.legendGroup&&a.legendGroup.translate(b?e:this.legendWidth-e-2*c-4,d);if(f)f.x=e,f.y=d},destroyItem:function(a){var b=a.checkbox;n(["legendItem","legendLine","legendSymbol","legendGroup"],function(b){a[b]&&(a[b]=a[b].destroy())});b&&Ta(a.checkbox)},destroy:function(){var a=this.group,b=this.box;if(b)this.box=b.destroy();if(a)this.group=a.destroy()},positionCheckboxes:function(a){var b=this.group.alignAttr,c,d=this.clipHeight|| +this.legendHeight;if(b)c=b.translateY,n(this.allItems,function(e){var f=e.checkbox,g;f&&(g=c+f.y+(a||0)+3,M(f,{left:b.translateX+e.legendItemWidth+f.x-20+"px",top:g+"px",display:g>c-6&&g(o||c.chartWidth-2*k-s))b.itemX=s,b.itemY+=n+b.lastLineHeight+q,b.lastLineHeight=0;b.maxItemWidth=u(b.maxItemWidth,e);b.lastItemY=n+b.itemY+q;b.lastLineHeight=u(g,b.lastLineHeight);a._legendItemPos= +[b.itemX,b.itemY];f?b.itemX+=e:(b.itemY+=n+g+q,b.lastLineHeight=g);b.offsetWidth=o||u((f?b.itemX-s-l:e)+k,b.offsetWidth)},render:function(){var a=this,b=a.chart,c=b.renderer,d=a.group,e,f,g,h,i=a.box,j=a.options,k=a.padding,l=j.borderWidth,m=j.backgroundColor;a.itemX=a.initialItemX;a.itemY=a.initialItemY;a.offsetWidth=0;a.lastItemY=0;if(!d)a.group=d=c.g("legend").attr({zIndex:7}).add(),a.contentGroup=c.g().attr({zIndex:1}).add(d),a.scrollGroup=c.g().add(a.contentGroup);a.renderTitle();e=[];n(b.series, +function(a){var b=a.options;b.showInLegend&&!t(b.linkedTo)&&(e=e.concat(a.legendItems||(b.legendType==="point"?a.data:a)))});Kb(e,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});j.reversed&&e.reverse();a.allItems=e;a.display=f=!!e.length;n(e,function(b){a.renderItem(b)});g=j.width||a.offsetWidth;h=a.lastItemY+a.lastLineHeight+a.titleHeight;h=a.handleOverflow(h);if(l||m){g+=k;h+=k;if(i){if(g>0&&h>0)i[i.isNew?"attr":"animate"](i.crisp(null,null,null, +g,h)),i.isNew=!1}else a.box=i=c.rect(0,0,g,h,j.borderRadius,l||0).attr({stroke:j.borderColor,"stroke-width":l||0,fill:m||R}).add(d).shadow(j.shadow),i.isNew=!0;i[f?"show":"hide"]()}a.legendWidth=g;a.legendHeight=h;n(e,function(b){a.positionItem(b)});f&&d.align(r({width:g,height:h},j),!0,"spacingBox");b.isResizing||this.positionCheckboxes()},handleOverflow:function(a){var b=this,c=this.chart,d=c.renderer,e=this.options,f=e.y,f=c.spacingBox.height+(e.verticalAlign==="top"?-f:f)-this.padding,g=e.maxHeight, +h=this.clipRect,i=e.navigation,j=p(i.animation,!0),k=i.arrowSize||12,l=this.nav;e.layout==="horizontal"&&(f/=2);g&&(f=I(f,g));if(a>f&&!e.useHTML){this.clipHeight=c=f-20-this.titleHeight;this.pageCount=ja(a/c);this.currentPage=p(this.currentPage,1);this.fullHeight=a;if(!h)h=b.clipRect=d.clipRect(0,0,9999,0),b.contentGroup.clip(h);h.attr({height:c});if(!l)this.nav=l=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol("triangle",0,0,k,k).on("click",function(){b.scroll(-1,j)}).add(l),this.pager=d.text("", +15,10).css(i.style).add(l),this.down=d.symbol("triangle-down",0,0,k,k).on("click",function(){b.scroll(1,j)}).add(l);b.scroll(0);a=f}else if(l)h.attr({height:c.chartHeight}),l.hide(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0;return a},scroll:function(a,b){var c=this.pageCount,d=this.currentPage+a,e=this.clipHeight,f=this.options.navigation,g=f.activeColor,h=f.inactiveColor,f=this.pager,i=this.padding;d>c&&(d=c);if(d>0)b!==v&&Ka(b,this.chart),this.nav.attr({translateX:i,translateY:e+7+ +this.titleHeight,visibility:"visible"}),this.up.attr({fill:d===1?h:g}).css({cursor:d===1?"default":"pointer"}),f.attr({text:d+"/"+this.pageCount}),this.down.attr({x:18+this.pager.getBBox().width,fill:d===c?h:g}).css({cursor:d===c?"default":"pointer"}),e=-I(e*(d-1),this.fullHeight-e+i)+1,this.scrollGroup.animate({translateY:e}),f.attr({text:d+"/"+c}),this.currentPage=d,this.positionCheckboxes(e)}};xb.prototype={init:function(a,b){var c,d=a.series;a.series=null;c=x(O,a);c.series=a.series=d;var d=c.chart, +e=d.margin,e=U(e)?e:[e,e,e,e];this.optionsMarginTop=p(d.marginTop,e[0]);this.optionsMarginRight=p(d.marginRight,e[1]);this.optionsMarginBottom=p(d.marginBottom,e[2]);this.optionsMarginLeft=p(d.marginLeft,e[3]);e=d.events;this.bounds={h:{},v:{}};this.callback=b;this.isResizing=0;this.options=c;this.axes=[];this.series=[];this.hasCartesianSeries=d.showAxes;var f=this,g;f.index=Ea.length;Ea.push(f);d.reflow!==!1&&J(f,"load",function(){f.initReflow()});if(e)for(g in e)J(f,g,e[g]);f.xAxis=[];f.yAxis=[]; +f.animation=Z?!1:p(d.animation,!0);f.pointCount=0;f.counters=new Jb;f.firstRender()},initSeries:function(a){var b=this.options.chart;(b=$[a.type||b.type||b.defaultSeriesType])||ua(17,!0);b=new b;b.init(this,a);return b},addSeries:function(a,b,c){var d,e=this;a&&(b=p(b,!0),C(e,"addSeries",{options:a},function(){d=e.initSeries(a);e.isDirtyLegend=!0;b&&e.redraw(c)}));return d},addAxis:function(a,b,c,d){var e=b?"xAxis":"yAxis",f=this.options;new db(this,x(a,{index:this[e].length,isX:b}));f[e]=ha(f[e]|| +{});f[e].push(a);p(c,!0)&&this.redraw(d)},isInsidePlot:function(a,b,c){var d=c?b:a,a=c?a:b;return d>=0&&d<=this.plotWidth&&a>=0&&a<=this.plotHeight},adjustTickAmounts:function(){this.options.chart.alignTicks!==!1&&n(this.axes,function(a){a.adjustTickAmount()});this.maxTicks=null},redraw:function(a){var b=this.axes,c=this.series,d=this.pointer,e=this.legend,f=this.isDirtyLegend,g,h,i=this.isDirtyBox,j=c.length,k=j,l=this.renderer,m=l.isHidden(),o=[];Ka(a,this);m&&this.cloneRenderTo();for(this.layOutTitles();k--;)if(a= +c[k],a.options.stacking&&(g=!0,a.isDirty)){h=!0;break}if(h)for(k=j;k--;)if(a=c[k],a.options.stacking)a.isDirty=!0;n(c,function(a){a.isDirty&&a.options.legendType==="point"&&(f=!0)});if(f&&e.options.enabled)e.render(),this.isDirtyLegend=!1;g&&this.getStacks();if(this.hasCartesianSeries){if(!this.isResizing)this.maxTicks=null,n(b,function(a){a.setScale()});this.adjustTickAmounts();this.getMargins();n(b,function(a){if(a.isDirtyExtremes)a.isDirtyExtremes=!1,o.push(function(){C(a,"afterSetExtremes",a.getExtremes())}); +if(a.isDirty||i||g)a.redraw(),i=!0})}i&&this.drawChartBox();n(c,function(a){a.isDirty&&a.visible&&(!a.isCartesian||a.xAxis)&&a.redraw()});d&&d.reset&&d.reset(!0);l.draw();C(this,"redraw");m&&this.cloneRenderTo(!0);n(o,function(a){a.call()})},showLoading:function(a){var b=this.options,c=this.loadingDiv,d=b.loading;if(!c)this.loadingDiv=c=T(Ba,{className:"highcharts-loading"},r(d.style,{zIndex:10,display:R}),this.container),this.loadingSpan=T("span",null,d.labelStyle,c);this.loadingSpan.innerHTML=a|| +b.lang.loading;if(!this.loadingShown)M(c,{opacity:0,display:"",left:this.plotLeft+"px",top:this.plotTop+"px",width:this.plotWidth+"px",height:this.plotHeight+"px"}),Ab(c,{opacity:d.style.opacity},{duration:d.showDuration||0}),this.loadingShown=!0},hideLoading:function(){var a=this.options,b=this.loadingDiv;b&&Ab(b,{opacity:0},{duration:a.loading.hideDuration||100,complete:function(){M(b,{display:R})}});this.loadingShown=!1},get:function(a){var b=this.axes,c=this.series,d,e;for(d=0;dI(e.dataMin,e.min)&&c=18&&a<=25&&(a=15);c&&(c.css({width:(d.width||f)+"px"}).align(r({y:a+e.margin},d),!1,"spacingBox"),!d.floating&&!d.verticalAlign&&(a=ja(a+c.getBBox().height)));this.titleOffset=a},getChartSize:function(){var a=this.options.chart,b=this.renderToClone||this.renderTo;this.containerWidth=ib(b,"width"); +this.containerHeight=ib(b,"height");this.chartWidth=u(0,a.width||this.containerWidth||600);this.chartHeight=u(0,p(a.height,this.containerHeight>19?this.containerHeight:400))},cloneRenderTo:function(a){var b=this.renderToClone,c=this.container;a?b&&(this.renderTo.appendChild(c),Ta(b),delete this.renderToClone):(c&&c.parentNode===this.renderTo&&this.renderTo.removeChild(c),this.renderToClone=b=this.renderTo.cloneNode(0),M(b,{position:"absolute",top:"-9999px",display:"block"}),z.body.appendChild(b), +c&&b.appendChild(c))},getContainer:function(){var a,b=this.options.chart,c,d,e;this.renderTo=a=b.renderTo;e="highcharts-"+yb++;if(da(a))this.renderTo=a=z.getElementById(a);a||ua(13,!0);c=A(w(a,"data-highcharts-chart"));!isNaN(c)&&Ea[c]&&Ea[c].destroy();w(a,"data-highcharts-chart",this.index);a.innerHTML="";a.offsetWidth||this.cloneRenderTo();this.getChartSize();c=this.chartWidth;d=this.chartHeight;this.container=a=T(Ba,{className:"highcharts-container"+(b.className?" "+b.className:""),id:e},r({position:"relative", +overflow:"hidden",width:c+"px",height:d+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)"},b.style),this.renderToClone||a);this._cursor=a.style.cursor;this.renderer=b.forExport?new Fa(a,c,d,!0):new Va(a,c,d);Z&&this.renderer.create(this,a,c,d)},getMargins:function(){var a=this.options.chart,b=a.spacingTop,c=a.spacingRight,d=a.spacingBottom,a=a.spacingLeft,e,f=this.legend,g=this.optionsMarginTop,h=this.optionsMarginLeft,i=this.optionsMarginRight,j=this.optionsMarginBottom, +k=this.options.legend,l=p(k.margin,10),m=k.x,o=k.y,q=k.align,s=k.verticalAlign,r=this.titleOffset;this.resetMargins();e=this.axisOffset;if(r&&!t(g))this.plotTop=u(this.plotTop,r+this.options.title.margin+b);if(f.display&&!k.floating)if(q==="right"){if(!t(i))this.marginRight=u(this.marginRight,f.legendWidth-m+l+c)}else if(q==="left"){if(!t(h))this.plotLeft=u(this.plotLeft,f.legendWidth+m+l+a)}else if(s==="top"){if(!t(g))this.plotTop=u(this.plotTop,f.legendHeight+o+l+b)}else if(s==="bottom"&&!t(j))this.marginBottom= +u(this.marginBottom,f.legendHeight-o+l+d);this.extraBottomMargin&&(this.marginBottom+=this.extraBottomMargin);this.extraTopMargin&&(this.plotTop+=this.extraTopMargin);this.hasCartesianSeries&&n(this.axes,function(a){a.getOffset()});t(h)||(this.plotLeft+=e[3]);t(g)||(this.plotTop+=e[0]);t(j)||(this.marginBottom+=e[2]);t(i)||(this.marginRight+=e[1]);this.setChartSize()},initReflow:function(){function a(a){var g=c.width||ib(d,"width"),h=c.height||ib(d,"height"),a=a?a.target:E;if(!b.hasUserSize&&g&&h&& +(a===E||a===z)){if(g!==b.containerWidth||h!==b.containerHeight)clearTimeout(e),b.reflowTimeout=e=setTimeout(function(){if(b.container)b.setSize(g,h,!1),b.hasUserSize=null},100);b.containerWidth=g;b.containerHeight=h}}var b=this,c=b.options.chart,d=b.renderTo,e;J(E,"resize",a);J(b,"destroy",function(){aa(E,"resize",a)})},setSize:function(a,b,c){var d=this,e,f,g;d.isResizing+=1;g=function(){d&&C(d,"endResize",null,function(){d.isResizing-=1})};Ka(c,d);d.oldChartHeight=d.chartHeight;d.oldChartWidth= +d.chartWidth;if(t(a))d.chartWidth=e=u(0,s(a)),d.hasUserSize=!!e;if(t(b))d.chartHeight=f=u(0,s(b));M(d.container,{width:e+"px",height:f+"px"});d.setChartSize(!0);d.renderer.setSize(e,f,c);d.maxTicks=null;n(d.axes,function(a){a.isDirty=!0;a.setScale()});n(d.series,function(a){a.isDirty=!0});d.isDirtyLegend=!0;d.isDirtyBox=!0;d.getMargins();d.redraw(c);d.oldChartHeight=null;C(d,"resize");Ca===!1?g():setTimeout(g,Ca&&Ca.duration||500)},setChartSize:function(a){var b=this.inverted,c=this.renderer,d=this.chartWidth, +e=this.chartHeight,f=this.options.chart,g=f.spacingTop,h=f.spacingRight,i=f.spacingBottom,j=f.spacingLeft,k=this.clipOffset,l,m,o,q;this.plotLeft=l=s(this.plotLeft);this.plotTop=m=s(this.plotTop);this.plotWidth=o=u(0,s(d-l-this.marginRight));this.plotHeight=q=u(0,s(e-m-this.marginBottom));this.plotSizeX=b?q:o;this.plotSizeY=b?o:q;this.plotBorderWidth=b=f.plotBorderWidth||0;this.spacingBox=c.spacingBox={x:j,y:g,width:d-j-h,height:e-g-i};this.plotBox=c.plotBox={x:l,y:m,width:o,height:q};c=ja(u(b,k[3])/ +2);d=ja(u(b,k[0])/2);this.clipBox={x:c,y:d,width:S(this.plotSizeX-u(b,k[1])/2-c),height:S(this.plotSizeY-u(b,k[2])/2-d)};a||n(this.axes,function(a){a.setAxisSize();a.setAxisTranslation()})},resetMargins:function(){var a=this.options.chart,b=a.spacingRight,c=a.spacingBottom,d=a.spacingLeft;this.plotTop=p(this.optionsMarginTop,a.spacingTop);this.marginRight=p(this.optionsMarginRight,b);this.marginBottom=p(this.optionsMarginBottom,c);this.plotLeft=p(this.optionsMarginLeft,d);this.axisOffset=[0,0,0,0]; +this.clipOffset=[0,0,0,0]},drawChartBox:function(){var a=this.options.chart,b=this.renderer,c=this.chartWidth,d=this.chartHeight,e=this.chartBackground,f=this.plotBackground,g=this.plotBorder,h=this.plotBGImage,i=a.borderWidth||0,j=a.backgroundColor,k=a.plotBackgroundColor,l=a.plotBackgroundImage,m=a.plotBorderWidth||0,o,q=this.plotLeft,p=this.plotTop,n=this.plotWidth,s=this.plotHeight,t=this.plotBox,u=this.clipRect,r=this.clipBox;o=i+(a.shadow?8:0);if(i||j)if(e)e.animate(e.crisp(null,null,null,c- +o,d-o));else{e={fill:j||R};if(i)e.stroke=a.borderColor,e["stroke-width"]=i;this.chartBackground=b.rect(o/2,o/2,c-o,d-o,a.borderRadius,i).attr(e).add().shadow(a.shadow)}if(k)f?f.animate(t):this.plotBackground=b.rect(q,p,n,s,0).attr({fill:k}).add().shadow(a.plotShadow);if(l)h?h.animate(t):this.plotBGImage=b.image(l,q,p,n,s).add();u?u.animate({width:r.width,height:r.height}):this.clipRect=b.clipRect(r);if(m)g?g.animate(g.crisp(null,q,p,n,s)):this.plotBorder=b.rect(q,p,n,s,0,m).attr({stroke:a.plotBorderColor, +"stroke-width":m,zIndex:1}).add();this.isDirtyBox=!1},propFromSeries:function(){var a=this,b=a.options.chart,c,d=a.options.series,e,f;n(["inverted","angular","polar"],function(g){c=$[b.type||b.defaultSeriesType];f=a[g]||b[g]||c&&c.prototype[g];for(e=d&&d.length;!f&&e--;)(c=$[d[e].type])&&c.prototype[g]&&(f=!0);a[g]=f})},render:function(){var a=this,b=a.axes,c=a.renderer,d=a.options,e=d.labels,f=d.credits,g;a.setTitle();a.legend=new wb(a,d.legend);a.getStacks();n(b,function(a){a.setScale()});a.getMargins(); +a.maxTicks=null;n(b,function(a){a.setTickPositions(!0);a.setMaxTicks()});a.adjustTickAmounts();a.getMargins();a.drawChartBox();a.hasCartesianSeries&&n(b,function(a){a.render()});if(!a.seriesGroup)a.seriesGroup=c.g("series-group").attr({zIndex:3}).add();n(a.series,function(a){a.translate();a.setTooltipPoints();a.render()});e.items&&n(e.items,function(b){var d=r(e.style,b.style),f=A(d.left)+a.plotLeft,g=A(d.top)+a.plotTop+12;delete d.left;delete d.top;c.text(b.html,f,g).attr({zIndex:2}).css(d).add()}); +if(f.enabled&&!a.credits)g=f.href,a.credits=c.text(f.text,0,0).on("click",function(){if(g)location.href=g}).attr({align:f.position.align,zIndex:8}).css(f.style).add().align(f.position);a.hasRendered=!0},destroy:function(){var a=this,b=a.axes,c=a.series,d=a.container,e,f=d&&d.parentNode;C(a,"destroy");Ea[a.index]=v;a.renderTo.removeAttribute("data-highcharts-chart");aa(a);for(e=b.length;e--;)b[e]=b[e].destroy();for(e=c.length;e--;)c[e]=c[e].destroy();n("title,subtitle,chartBackground,plotBackground,plotBGImage,plotBorder,seriesGroup,clipRect,credits,pointer,scroller,rangeSelector,legend,resetZoomButton,tooltip,renderer".split(","), +function(b){var c=a[b];c&&c.destroy&&(a[b]=c.destroy())});if(d)d.innerHTML="",aa(d),f&&Ta(d);for(e in a)delete a[e]},isReadyToRender:function(){var a=this;return!Y&&E==E.top&&z.readyState!=="complete"||Z&&!E.canvg?(Z?Ub.push(function(){a.firstRender()},a.options.global.canvasToolsURL):z.attachEvent("onreadystatechange",function(){z.detachEvent("onreadystatechange",a.firstRender);z.readyState==="complete"&&a.firstRender()}),!1):!0},firstRender:function(){var a=this,b=a.options,c=a.callback;if(a.isReadyToRender())a.getContainer(), +C(a,"init"),a.resetMargins(),a.setChartSize(),a.propFromSeries(),a.getAxes(),n(b.series||[],function(b){a.initSeries(b)}),C(a,"beforeRender"),a.pointer=new vb(a,b),a.render(),a.renderer.draw(),c&&c.apply(a,[a]),n(a.callbacks,function(b){b.apply(a,[a])}),a.cloneRenderTo(!0),C(a,"load")}};xb.prototype.callbacks=[];var Pa=function(){};Pa.prototype={init:function(a,b,c){this.series=a;this.applyOptions(b,c);this.pointAttr={};if(a.options.colorByPoint&&(b=a.options.colors||a.chart.options.colors,this.color= +this.color||b[a.colorCounter++],a.colorCounter===b.length))a.colorCounter=0;a.chart.pointCount++;return this},applyOptions:function(a,b){var c=this.series,d=c.pointValKey,a=Pa.prototype.optionsToObject.call(this,a);r(this,a);this.options=this.options?r(this.options,a):a;if(d)this.y=this[d];if(this.x===v&&c)this.x=b===v?c.autoIncrement():b;return this},optionsToObject:function(a){var b,c=this.series,d=c.pointArrayMap||["y"],e=d.length,f=0,g=0;if(typeof a==="number"||a===null)b={y:a};else if(Ha(a)){b= +{};if(a.length>e){c=typeof a[0];if(c==="string")b.name=a[0];else if(c==="number")b.x=a[0];f++}for(;ga+1&&b.push(d.slice(a+1,g)),a=g):g===e-1&&b.push(d.slice(a+1,g+1))});this.segments= +b},setOptions:function(a){var b=this.chart.options,c=b.plotOptions,d=c[this.type];this.userOptions=a;a=x(d,c.series,a);this.tooltipOptions=x(b.tooltip,a.tooltip);d.marker===null&&delete a.marker;return a},getColor:function(){var a=this.options,b=this.userOptions,c=this.chart.options.colors,d=this.chart.counters,e;e=a.color||X[this.type].color;if(!e&&!a.colorByPoint)t(b._colorIndex)?a=b._colorIndex:(b._colorIndex=d.color,a=d.color++),e=c[a];this.color=e;d.wrapColor(c.length)},getSymbol:function(){var a= +this.userOptions,b=this.options.marker,c=this.chart,d=c.options.symbols,c=c.counters;this.symbol=b.symbol;if(!this.symbol)t(a._symbolIndex)?a=a._symbolIndex:(a._symbolIndex=c.symbol,a=c.symbol++),this.symbol=d[a];if(/^url/.test(this.symbol))b.radius=0;c.wrapSymbol(d.length)},drawLegendSymbol:function(a){var b=this.options,c=b.marker,d=a.options,e;e=d.symbolWidth;var f=this.chart.renderer,g=this.legendGroup,a=a.baseline-s(f.fontMetrics(d.itemStyle.fontSize).b*0.3);if(b.lineWidth){d={"stroke-width":b.lineWidth}; +if(b.dashStyle)d.dashstyle=b.dashStyle;this.legendLine=f.path(["M",0,a,"L",e,a]).attr(d).add(g)}if(c&&c.enabled)b=c.radius,this.legendSymbol=e=f.symbol(this.symbol,e/2-b,a-b,2*b,2*b).add(g),e.isMarker=!0},addPoint:function(a,b,c,d){var e=this.options,f=this.data,g=this.graph,h=this.area,i=this.chart,j=this.xData,k=this.yData,l=this.zData,m=this.names,o=g&&g.shift||0,q=e.data;Ka(d,i);c&&n([g,h,this.graphNeg,this.areaNeg],function(a){if(a)a.shift=o+1});if(h)h.isArea=!0;b=p(b,!0);d={series:this};this.pointClass.prototype.applyOptions.apply(d, +[a]);j.push(d.x);k.push(this.toYData?this.toYData(d):d.y);l.push(d.z);if(m)m[d.x]=d.name;q.push(a);e.legendType==="point"&&this.generatePoints();c&&(f[0]&&f[0].remove?f[0].remove(!1):(f.shift(),j.shift(),k.shift(),l.shift(),q.shift()));this.isDirtyData=this.isDirty=!0;b&&(this.getAttribs(),i.redraw())},setData:function(a,b){var c=this.points,d=this.options,e=this.chart,f=null,g=this.xAxis,h=g&&g.categories&&!g.categories.length?[]:null,i;this.xIncrement=null;this.pointRange=g&&g.categories?1:d.pointRange; +this.colorCounter=0;var j=[],k=[],l=[],m=a?a.length:[];i=p(d.turboThreshold,1E3);var o=this.pointArrayMap,o=o&&o.length,q=!!this.toYData;if(i&&m>i){for(i=0;f===null&&ij||this.forceCrop))if(a=h.min,h=h.max,b[d-1]h)b=[],c=[];else if(b[0]h)e=this.cropData(this.xData,this.yData,a,h),b=e.xData,c=e.yData,e=e.start,f=!0;for(h=b.length-1;h>=0;h--)d=b[h]-b[h-1],d>0&&(g===v||d=c){f=u(0,h-1);break}for(;hd){g=h+1;break}return{xData:a.slice(f,g),yData:b.slice(f,g),start:f,end:g}},generatePoints:function(){var a=this.options.data,b=this.data,c,d=this.processedXData,e=this.processedYData,f=this.pointClass,g=d.length, +h=this.cropStart||0,i,j=this.hasGroupedData,k,l=[],m;if(!b&&!j)b=[],b.length=a.length,b=this.data=b;for(m=0;ml[n]&&!m)l[n]=p.total;else if(p.total0),l=this.getExtremesFromAll||this.cropped||(f[d+1]||l)>=k&&(f[d-1]||l)<=a,e&&l)if(e=c.length)for(;e--;)c[e]!==null&&(i[j++]=c[e]);else i[j++]= +c;m=p(m,Ia(i));o=p(o,ta(i))}this.dataMin=m;this.dataMax=o},translate:function(){this.processedXData||this.processData();this.generatePoints();for(var a=this.options,b=a.stacking,c=this.xAxis,d=c.categories,e=this.yAxis,f=this.points,g=f.length,h=!!this.modifyValue,i=a.pointPlacement,j=i==="between"||pa(i),k=a.threshold,a=0;a=0&&c<=d;)i[c++]=f}this.tooltipPoints=i}}, +tooltipHeaderFormatter:function(a){var b=this.tooltipOptions,c=b.xDateFormat,d=b.dateTimeLabelFormats,e=this.xAxis,f=e&&e.options.type==="datetime",b=b.headerFormat,e=e&&e.closestPointRange,g;if(f&&!c)if(e)for(g in y){if(y[g]>=e){c=d[g];break}}else c=d.day;f&&c&&pa(a.key)&&(b=b.replace("{point.key}","{point.key:"+c+"}"));return Aa(b,{point:a,series:this})},onMouseOver:function(){var a=this.chart,b=a.hoverSeries;if(b&&b!==this)b.onMouseOut();this.options.events.mouseOver&&C(this,"mouseOver");this.setState("hover"); +a.hoverSeries=this},onMouseOut:function(){var a=this.options,b=this.chart,c=b.tooltip,d=b.hoverPoint;if(d)d.onMouseOut();this&&a.events.mouseOut&&C(this,"mouseOut");c&&!a.stickyTracking&&(!c.shared||this.noSharedTooltip)&&c.hide();this.setState();b.hoverSeries=null},animate:function(a){var b=this,c=b.chart,d=c.renderer,e;e=b.options.animation;var f=c.clipBox,g=c.inverted,h;if(e&&!U(e))e=X[b.type].animation;h="_sharedClip"+e.duration+e.easing;if(a)a=c[h],e=c[h+"m"],a||(c[h]=a=d.clipRect(r(f,{width:0})), +c[h+"m"]=e=d.clipRect(-99,g?-c.plotLeft:-c.plotTop,99,g?c.chartWidth:c.chartHeight)),b.group.clip(a),b.markerGroup.clip(e),b.sharedClipKey=h;else{if(a=c[h])a.animate({width:c.plotSizeX},e),c[h+"m"].animate({width:c.plotSizeX+99},e);b.animate=null;b.animationTimeout=setTimeout(function(){b.afterAnimate()},e.duration)}},afterAnimate:function(){var a=this.chart,b=this.sharedClipKey,c=this.group;c&&this.options.clip!==!1&&(c.clip(a.clipRect),this.markerGroup.clip());setTimeout(function(){b&&a[b]&&(a[b]= +a[b].destroy(),a[b+"m"]=a[b+"m"].destroy())},100)},drawPoints:function(){var a,b=this.points,c=this.chart,d,e,f,g,h,i,j,k,l=this.options.marker,m,o=this.markerGroup;if(l.enabled||this._hasPointMarkers)for(f=b.length;f--;)if(g=b[f],d=S(g.plotX),e=g.plotY,k=g.graphic,i=g.marker||{},a=l.enabled&&i.enabled===v||i.enabled,m=c.isInsidePlot(s(d),e,c.inverted),a&&e!==v&&!isNaN(e)&&g.y!==null)if(a=g.pointAttr[g.selected?"select":""],h=a.r,i=p(i.symbol,this.symbol),j=i.indexOf("url")===0,k)k.attr({visibility:m? +Y?"inherit":"visible":"hidden"}).animate(r({x:d-h,y:e-h},k.symbolName?{width:2*h,height:2*h}:{}));else{if(m&&(h>0||j))g.graphic=c.renderer.symbol(i,d-h,e-h,2*h,2*h).attr(a).add(o)}else if(k)g.graphic=k.destroy()},convertAttribs:function(a,b,c,d){var e=this.pointAttrToOptions,f,g,h={},a=a||{},b=b||{},c=c||{},d=d||{};for(f in e)g=e[f],h[f]=p(a[g],b[f],c[f],d[f]);return h},getAttribs:function(){var a=this,b=a.options,c=X[a.type].marker?b.marker:b,d=c.states,e=d.hover,f,g=a.color,h={stroke:g,fill:g}, +i=a.points||[],j=[],k,l=a.pointAttrToOptions,m=b.negativeColor,o;b.marker?(e.radius=e.radius||c.radius+2,e.lineWidth=e.lineWidth||c.lineWidth+1):e.color=e.color||oa(e.color||g).brighten(e.brightness).get();j[""]=a.convertAttribs(c,h);n(["hover","select"],function(b){j[b]=a.convertAttribs(d[b],j[""])});a.pointAttr=j;for(g=i.length;g--;){h=i[g];if((c=h.options&&h.options.marker||h.options)&&c.enabled===!1)c.radius=0;if(h.negative&&m)h.color=h.fillColor=m;f=b.colorByPoint||h.color;if(h.options)for(o in l)t(c[l[o]])&& +(f=!0);if(f){c=c||{};k=[];d=c.states||{};f=d.hover=d.hover||{};if(!b.marker)f.color=oa(f.color||h.color).brighten(f.brightness||e.brightness).get();k[""]=a.convertAttribs(r({color:h.color},c),j[""]);k.hover=a.convertAttribs(d.hover,j.hover,k[""]);k.select=a.convertAttribs(d.select,j.select,k[""]);if(h.negative&&b.marker&&m)k[""].fill=k.hover.fill=k.select.fill=a.convertAttribs({fillColor:m}).fill}else k=j;h.pointAttr=k}},update:function(a,b){var c=this.chart,d=this.type,a=x(this.userOptions,{animation:!1, +index:this.index,pointStart:this.xData[0]},{data:this.options.data},a);this.remove(!1);r(this,$[a.type||d].prototype);this.init(c,a);p(b,!0)&&c.redraw(!1)},destroy:function(){var a=this,b=a.chart,c=/AppleWebKit\/533/.test(Da),d,e,f=a.data||[],g,h,i;C(a,"destroy");aa(a);n(["xAxis","yAxis"],function(b){if(i=a[b])fa(i.series,a),i.isDirty=i.forceRedraw=!0});a.legendItem&&a.chart.legend.destroyItem(a);for(e=f.length;e--;)(g=f[e])&&g.destroy&&g.destroy();a.points=null;clearTimeout(a.animationTimeout);n("area,graph,dataLabelsGroup,group,markerGroup,tracker,graphNeg,areaNeg,posClip,negClip".split(","), +function(b){a[b]&&(d=c&&b==="group"?"hide":"destroy",a[b][d]())});if(b.hoverSeries===a)b.hoverSeries=null;fa(b.series,a);for(h in a)delete a[h]},drawDataLabels:function(){var a=this,b=a.options.dataLabels,c=a.points,d,e,f,g;if(b.enabled||a._hasPointLabels)a.dlProcessOptions&&a.dlProcessOptions(b),g=a.plotGroup("dataLabelsGroup","data-labels",a.visible?"visible":"hidden",b.zIndex||6),e=b,n(c,function(c){var i,j=c.dataLabel,k,l,m=c.connector,o=!0;d=c.options&&c.options.dataLabels;i=e.enabled||d&&d.enabled; +if(j&&!i)c.dataLabel=j.destroy();else if(i){b=x(e,d);i=b.rotation;k=c.getLabelConfig();f=b.format?Aa(b.format,k):b.formatter.call(k,b);b.style.color=p(b.color,b.style.color,a.color,"black");if(j)if(t(f))j.attr({text:f}),o=!1;else{if(c.dataLabel=j=j.destroy(),m)c.connector=m.destroy()}else if(t(f)){j={fill:b.backgroundColor,stroke:b.borderColor,"stroke-width":b.borderWidth,r:b.borderRadius||0,rotation:i,padding:b.padding,zIndex:1};for(l in j)j[l]===v&&delete j[l];j=c.dataLabel=a.chart.renderer[i?"text": +"label"](f,0,-999,null,null,null,b.useHTML).attr(j).css(b.style).add(g).shadow(b.shadow)}j&&a.alignDataLabel(c,j,b,null,o)}})},alignDataLabel:function(a,b,c,d,e){var f=this.chart,g=f.inverted,h=p(a.plotX,-999),i=p(a.plotY,-999),a=b.getBBox(),d=r({x:g?f.plotWidth-i:h,y:s(g?f.plotHeight-h:i),width:0,height:0},d);r(c,{width:a.width,height:a.height});c.rotation?(d={align:c.align,x:d.x+c.x+d.width/2,y:d.y+c.y+d.height/2},b[e?"attr":"animate"](d)):(b.align(c,null,d),d=b.alignAttr);b.attr({visibility:c.crop=== +!1||f.isInsidePlot(d.x,d.y)&&f.isInsidePlot(d.x+a.width,d.y+a.height)?f.renderer.isSVG?"inherit":"visible":"hidden"})},getSegmentPath:function(a){var b=this,c=[],d=b.options.step;n(a,function(e,f){var g=e.plotX,h=e.plotY,i;b.getPointSpline?c.push.apply(c,b.getPointSpline(a,e,f)):(c.push(f?"L":"M"),d&&f&&(i=a[f-1],d==="right"?c.push(i.plotX,h):d==="center"?c.push((i.plotX+g)/2,i.plotY,(i.plotX+g)/2,h):c.push(g,i.plotY)),c.push(e.plotX,e.plotY))});return c},getGraphPath:function(){var a=this,b=[],c, +d=[];n(a.segments,function(e){c=a.getSegmentPath(e);e.length>1?b=b.concat(c):d.push(e[0])});a.singlePoints=d;return a.graphPath=b},drawGraph:function(){var a=this,b=this.options,c=[["graph",b.lineColor||this.color]],d=b.lineWidth,e=b.dashStyle,f=this.getGraphPath(),g=b.negativeColor;g&&c.push(["graphNeg",g]);n(c,function(c,g){var j=c[0],k=a[j];if(k)Wa(k),k.animate({d:f});else if(d&&f.length){k={stroke:c[1],"stroke-width":d,zIndex:1};if(e)k.dashstyle=e;a[j]=a.chart.renderer.path(f).attr(k).add(a.group).shadow(!g&& +b.shadow)}})},clipNeg:function(){var a=this.options,b=this.chart,c=b.renderer,d=a.negativeColor||a.negativeFillColor,e,f=this.graph,g=this.area,h=this.posClip,i=this.negClip;e=b.chartWidth;var j=b.chartHeight,k=u(e,j),l=this.yAxis;if(d&&(f||g)){d=s(l.toPixels(a.threshold||0,!0));a={x:0,y:0,width:k,height:d};k={x:0,y:d,width:k,height:k};if(b.inverted)a.height=k.y=b.plotWidth-d,c.isVML&&(a={x:b.plotWidth-d-b.plotLeft,y:0,width:e,height:j},k={x:d+b.plotLeft-e,y:0,width:b.plotLeft+d,height:e});l.reversed? +(b=k,e=a):(b=a,e=k);h?(h.animate(b),i.animate(e)):(this.posClip=h=c.clipRect(b),this.negClip=i=c.clipRect(e),f&&this.graphNeg&&(f.clip(h),this.graphNeg.clip(i)),g&&(g.clip(h),this.areaNeg.clip(i)))}},invertGroups:function(){function a(){var a={width:b.yAxis.len,height:b.xAxis.len};n(["group","markerGroup"],function(c){b[c]&&b[c].attr(a).invert()})}var b=this,c=b.chart;if(b.xAxis)J(c,"resize",a),J(b,"destroy",function(){aa(c,"resize",a)}),a(),b.invertGroups=a},plotGroup:function(a,b,c,d,e){var f=this[a], +g=!f;g&&(this[a]=f=this.chart.renderer.g(b).attr({visibility:c,zIndex:d||0.1}).add(e));f[g?"attr":"animate"](this.getPlotBox());return f},getPlotBox:function(){return{translateX:this.xAxis?this.xAxis.left:this.chart.plotLeft,translateY:this.yAxis?this.yAxis.top:this.chart.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this.chart,b,c=this.options,d=c.animation&&!!this.animate&&a.renderer.isSVG,e=this.visible?"visible":"hidden",f=c.zIndex,g=this.hasRendered,h=a.seriesGroup;b=this.plotGroup("group", +"series",e,f,h);this.markerGroup=this.plotGroup("markerGroup","markers",e,f,h);d&&this.animate(!0);this.getAttribs();b.inverted=this.isCartesian?a.inverted:!1;this.drawGraph&&(this.drawGraph(),this.clipNeg());this.drawDataLabels();this.drawPoints();this.options.enableMouseTracking!==!1&&this.drawTracker();a.inverted&&this.invertGroups();c.clip!==!1&&!this.sharedClipKey&&!g&&b.clip(a.clipRect);d?this.animate():g||this.afterAnimate();this.isDirty=this.isDirtyData=!1;this.hasRendered=!0},redraw:function(){var a= +this.chart,b=this.isDirtyData,c=this.group,d=this.xAxis,e=this.yAxis;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:p(d&&d.left,a.plotLeft),translateY:p(e&&e.top,a.plotTop)}));this.translate();this.setTooltipPoints(!0);this.render();b&&C(this,"updatedData")},setState:function(a){var b=this.options,c=this.graph,d=this.graphNeg,e=b.states,b=b.lineWidth,a=a||"";if(this.state!==a)this.state=a,e[a]&&e[a].enabled===!1||(a&&(b=e[a].lineWidth||b+1),c&&!c.dashstyle&& +(a={"stroke-width":b},c.attr(a),d&&d.attr(a)))},setVisible:function(a,b){var c=this,d=c.chart,e=c.legendItem,f,g=d.options.chart.ignoreHiddenSeries,h=c.visible;f=(c.visible=a=c.userOptions.visible=a===v?!h:a)?"show":"hide";n(["group","dataLabelsGroup","markerGroup","tracker"],function(a){if(c[a])c[a][f]()});if(d.hoverSeries===c)c.onMouseOut();e&&d.legend.colorizeItem(c,a);c.isDirty=!0;c.options.stacking&&n(d.series,function(a){if(a.options.stacking&&a.visible)a.isDirty=!0});n(c.linkedSeries,function(b){b.setVisible(a, +!1)});if(g)d.isDirtyBox=!0;b!==!1&&d.redraw();C(c,f)},show:function(){this.setVisible(!0)},hide:function(){this.setVisible(!1)},select:function(a){this.selected=a=a===v?!this.selected:a;if(this.checkbox)this.checkbox.checked=a;C(this,a?"select":"unselect")},drawTracker:function(){var a=this,b=a.options,c=b.trackByArea,d=[].concat(c?a.areaPath:a.graphPath),e=d.length,f=a.chart,g=f.pointer,h=f.renderer,i=f.options.tooltip.snap,j=a.tracker,k=b.cursor,k=k&&{cursor:k},l=a.singlePoints,m,o=function(){if(f.hoverSeries!== +a)a.onMouseOver()};if(e&&!c)for(m=e+1;m--;)d[m]==="M"&&d.splice(m+1,0,d[m+1]-i,d[m+2],"L"),(m&&d[m]==="M"||m===e)&&d.splice(m,0,"L",d[m-2]+i,d[m-1]);for(m=0;m=0;d--)da&&i>e?(i=u(a,e),k=2*e-i):ig&&k>e?(k=u(g,e),i=2*e-k):kf?l-f:e-(d.translate(b.y,0,1,0,1)<=e?f:0)));b.barX=m;b.pointWidth=g;b.shapeType="rect";b.shapeArgs=b=a.renderer.Element.prototype.crisp.call(0,c,m,o,h,k);c%2&&(b.y-=1,b.height+=1)})},getSymbol:xa,drawLegendSymbol:L.prototype.drawLegendSymbol,drawGraph:xa,drawPoints:function(){var a=this,b=a.options,c=a.chart.renderer, +d;n(a.points,function(e){var f=e.plotY,g=e.graphic;if(f!==v&&!isNaN(f)&&e.y!==null)d=e.shapeArgs,g?(Wa(g),g.animate(x(d))):e.graphic=c[e.shapeType](d).attr(e.pointAttr[e.selected?"select":""]).add(a.group).shadow(b.shadow,null,b.stacking&&!b.borderRadius);else if(g)e.graphic=g.destroy()})},drawTracker:function(){var a=this,b=a.chart,c=b.pointer,d=a.options.cursor,e=d&&{cursor:d},f=function(c){var d=c.target,e;if(b.hoverSeries!==a)a.onMouseOver();for(;d&&!e;)e=d.point,d=d.parentNode;if(e!==v&&e!== +b.hoverPoint)e.onMouseOver(c)};n(a.points,function(a){if(a.graphic)a.graphic.element.point=a;if(a.dataLabel)a.dataLabel.element.point=a});a._hasTracking?a._hasTracking=!0:n(a.trackerGroups,function(b){if(a[b]&&(a[b].addClass("highcharts-tracker").on("mouseover",f).on("mouseout",function(a){c.onTrackerMouseOut(a)}).css(e),hb))a[b].on("touchstart",f)})},alignDataLabel:function(a,b,c,d,e){var f=this.chart,g=f.inverted,h=a.dlBox||a.shapeArgs,i=a.below||a.plotY>p(this.translatedThreshold,f.plotSizeY), +j=p(c.inside,!!this.options.stacking);if(h&&(d=x(h),g&&(d={x:f.plotWidth-d.y-d.height,y:f.plotHeight-d.x-d.width,width:d.height,height:d.width}),!j))g?(d.x+=i?0:d.width,d.width=0):(d.y+=i?d.height:0,d.height=0);c.align=p(c.align,!g||j?"center":i?"right":"left");c.verticalAlign=p(c.verticalAlign,g||j?"middle":i?"top":"bottom");Q.prototype.alignDataLabel.call(this,a,b,c,d,e)},animate:function(a){var b=this.yAxis,c=this.options,d=this.chart.inverted,e={};if(Y)a?(e.scaleY=0.001,a=I(b.pos+b.len,u(b.pos, +b.toPixels(c.threshold))),d?e.translateX=a-b.len:e.translateY=a,this.group.attr(e)):(e.scaleY=1,e[d?"translateX":"translateY"]=b.pos,this.group.animate(e,this.options.animation),this.animate=null)},remove:function(){var a=this,b=a.chart;b.hasRendered&&n(b.series,function(b){if(b.type===a.type)b.isDirty=!0});Q.prototype.remove.apply(a,arguments)}});$.column=K;X.bar=x(X.column);la=ga(K,{type:"bar",inverted:!0});$.bar=la;X.scatter=x(W,{lineWidth:0,tooltip:{headerFormat:'{series.name}
', +pointFormat:"x: {point.x}
y: {point.y}
",followPointer:!0},stickyTracking:!1});la=ga(Q,{type:"scatter",sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["markerGroup"],drawTracker:K.prototype.drawTracker,setTooltipPoints:xa});$.scatter=la;X.pie=x(W,{borderColor:"#FFFFFF",borderWidth:1,center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.name}},ignoreHiddenPoint:!0,legendType:"point",marker:null,size:null, +showInLegend:!1,slicedOffset:10,states:{hover:{brightness:0.1,shadow:!1}},stickyTracking:!1,tooltip:{followPointer:!0}});W={type:"pie",isCartesian:!1,pointClass:ga(Pa,{init:function(){Pa.prototype.init.apply(this,arguments);var a=this,b;if(a.y<0)a.y=null;r(a,{visible:a.visible!==!1,name:p(a.name,"Slice")});b=function(b){a.slice(b.type==="select")};J(a,"select",b);J(a,"unselect",b);return a},setVisible:function(a){var b=this,c=b.series,d=c.chart,e;b.visible=b.options.visible=a=a===v?!b.visible:a;c.options.data[na(b, +c.data)]=b.options;e=a?"show":"hide";n(["graphic","dataLabel","connector","shadowGroup"],function(a){if(b[a])b[a][e]()});b.legendItem&&d.legend.colorizeItem(b,a);if(!c.isDirty&&c.options.ignoreHiddenPoint)c.isDirty=!0,d.redraw()},slice:function(a,b,c){var d=this.series;Ka(c,d.chart);p(b,!0);this.sliced=this.options.sliced=a=t(a)?a:!this.sliced;d.options.data[na(this,d.data)]=this.options;a=a?this.slicedTranslation:{translateX:0,translateY:0};this.graphic.animate(a);this.shadowGroup&&this.shadowGroup.animate(a)}}), +requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],pointAttrToOptions:{stroke:"borderColor","stroke-width":"borderWidth",fill:"color"},getColor:xa,animate:function(a){var b=this,c=b.points,d=b.startAngleRad;if(!a)n(c,function(a){var c=a.graphic,a=a.shapeArgs;c&&(c.attr({r:b.center[3]/2,start:d,end:d}),c.animate({r:a.r,start:a.start,end:a.end},b.options.animation))}),b.animate=null},setData:function(a,b){Q.prototype.setData.call(this,a,!1);this.processData();this.generatePoints(); +p(b,!0)&&this.chart.redraw()},generatePoints:function(){var a,b=0,c,d,e,f=this.options.ignoreHiddenPoint;Q.prototype.generatePoints.call(this);c=this.points;d=c.length;for(a=0;a0.75*k&&(h-=2*Ma);n.slicedTranslation={translateX:s(V(h)*d),translateY:s(ba(h)*d)};f=V(h)*a[2]/2;g=ba(h)*a[2]/2;n.tooltipPos=[a[0]+f*0.7,a[1]+g*0.7];n.half=h0,r,w,v,x,A=[[],[]],z,y,G,H,B,C=[0,0,0,0],I=function(a,b){return b.y-a.y},M=function(a,b){a.sort(function(a,c){return a.angle!==void 0&&(c.angle-a.angle)*b})};if(a.visible&&(e.enabled||a._hasPointLabels)){Q.prototype.drawDataLabels.apply(a);n(b,function(a){a.dataLabel&& +A[a.half].push(a)});for(H=0;!x&&b[H];)x=b[H]&&b[H].dataLabel&&(b[H].dataLabel.getBBox().height||21),H++;for(H=2;H--;){var b=[],L=[],J=A[H],K=J.length,E;M(J,H-0.5);if(l>0){for(B=q-o-l;B<=q+o+l;B+=x)b.push(B);w=b.length;if(K>w){c=[].concat(J);c.sort(I);for(B=K;B--;)c[B].rank=B;for(B=K;B--;)J[B].rank>=w&&J.splice(B,1);K=J.length}for(B=0;B0){if(w=L.pop(),E=w.i,y=w.y,c>y&&b[E+1]!==null||ch-f&&(C[1]=u(s(z+w-h+f),C[1])),y- +x/2<0?C[0]=u(s(-y+x/2),C[0]):y+x/2>d&&(C[2]=u(s(y+x/2-d),C[2]))}}if(ta(C)===0||this.verifyDataLabelOverflow(C))this.placeDataLabels(),t&&g&&n(this.points,function(b){i=b.connector;v=b.labelPos;if((r=b.dataLabel)&&r._pos)G=r._attr.visibility,z=r.connX,y=r.connY,j=k?["M",z+(v[6]==="left"?5:-5),y,"C",z,y,2*v[2]-v[4],2*v[3]-v[5],v[2],v[3],"L",v[4],v[5]]:["M",z+(v[6]==="left"?5:-5),y,"L",v[2],v[3],"L",v[4],v[5]],i?(i.animate({d:j}),i.attr("visibility",G)):b.connector=i=a.chart.renderer.path(j).attr({"stroke-width":g, +stroke:e.connectorColor||b.color||"#606060",visibility:G}).add(a.group);else if(i)b.connector=i.destroy()})}},verifyDataLabelOverflow:function(a){var b=this.center,c=this.options,d=c.center,e=c=c.minSize||80,f;d[0]!==null?e=u(b[2]-u(a[1],a[3]),c):(e=u(b[2]-a[1]-a[3],c),b[0]+=(a[3]-a[1])/2);d[1]!==null?e=u(I(e,b[2]-u(a[0],a[2])),c):(e=u(I(e,b[2]-a[0]-a[2]),c),b[1]+=(a[0]-a[2])/2);e>> global settings needed for thickbox <<<-----------------------------------------------------------*/ +/* ----------------------------------------------------------------------------------------------------------------*/ +*{padding: 0; margin: 0;} + +html, body { +min-height: 100%; +height: auto !important; +height: 100%; +} + +/* ----------------------------------------------------------------------------------------------------------------*/ +/* ---------->>> thickbox specific link and font settings <<<------------------------------------------------------*/ +/* ----------------------------------------------------------------------------------------------------------------*/ +#TB_window { + font: 12px Arial, Helvetica, sans-serif; + color: #333333; +} + +#TB_secondLine { + font: 10px Arial, Helvetica, sans-serif; + color:#666666; +} + +#TB_window a:link {color: #666666;} +#TB_window a:visited {color: #666666;} +#TB_window a:hover {color: #000;} +#TB_window a:active {color: #666666;} +#TB_window a:focus{color: #666666;} + +/* ----------------------------------------------------------------------------------------------------------------*/ +/* ---------->>> thickbox settings <<<-----------------------------------------------------------------------------*/ +/* ----------------------------------------------------------------------------------------------------------------*/ +#TB_overlay { + position: absolute; + z-index:100; + width: 100%; + height: 100%; + top: 0; + left: 0; + min-height:100%; + background-color:#000; + filter:alpha(opacity=60); + -moz-opacity: 0.6; + opacity: 0.6; +} + +#TB_window { + position: absolute; + /*background: #ffffff;*/ + z-index: 102; + color:#000000; + display:none; + /*border: 4px solid #525252;*/ + text-align:left; +} + +#TB_window img { + display:block; + margin: 15px 0 0 15px; + border-right: 1px solid #ccc; + border-bottom: 1px solid #ccc; + border-top: 1px solid #666; + border-left: 1px solid #666; +} + +#TB_caption{ + height:25px; + padding:7px 30px 10px 25px; + float:left; +} + +#TB_closeWindow{ + height:25px; + padding:11px 25px 10px 0; + float:right; +} + +#TB_closeAjaxWindow{ + padding:5px 10px 7px 0; + margin-bottom:1px; + text-align:right; + float:right; +} + +#TB_ajaxWindowTitle{ + float:left; + padding:7px 0 5px 10px; + margin-bottom:1px; +} + +#TB_title{ + background-color:#e8e8e8; + height:27px; +} + +#TB_ajaxContent{ + clear:both; + padding:2px 15px 15px 15px; + overflow:auto; + text-align:left; + line-height:1.4em; +} + +#TB_ajaxContent p{ + padding:5px 0px 5px 0px; +} + +#TB_load{ + position: absolute; + display:none; + height:100px; + width:100px; + z-index:101; +} + +#TB_HideSelect{ + z-index:99; + position:absolute; + top: 0; + left: 0; + width:100%; + height:100%; + background-color:#fff; + border:none; + filter:alpha(opacity=0); + -moz-opacity: 0; + opacity: 0; +} + +#TB_iframeContent{ + border:none; + clear:both; +} + diff --git a/97suifangqa/apps/indicator/static/plugins/thickbox/thickbox.js b/97suifangqa/apps/indicator/static/plugins/thickbox/thickbox.js new file mode 100644 index 0000000..c11bf76 --- /dev/null +++ b/97suifangqa/apps/indicator/static/plugins/thickbox/thickbox.js @@ -0,0 +1,286 @@ +/* + * Thickbox 2.0 - One Box To Rule Them All. + * By Cody Lindley (http://www.codylindley.com) + * Copyright (c) 2006 cody lindley + * Licensed under the MIT License: + * http://www.opensource.org/licenses/mit-license.php + * Thickbox is built on top of the very light weight jQuery library. + */ + +//on page load call TB_init +$(document).ready(TB_init); + +//add thickbox to href elements that have a class of .thickbox +function TB_init(){ + $("a.thickbox").live("click", function(){ + if(this.href == 'javascript:void(0)'){ + return false; + } + var t = this.title || this.name || null; + var g = this.rel || false; + TB_show(t,this.href,g); + this.blur(); + return false; + }); +} + +function TB_show(caption, url, imageGroup) {//function called when the user clicks on a thickbox link + try { + if (document.getElementById("TB_HideSelect") == null) { + $("body").append("
"); + $("#TB_overlay").click(TB_remove); + } + + if(caption==null){caption=""}; + + $(window).scroll(TB_position); + + TB_overlaySize(); + + $("body").append("
"); + TB_load_position(); + + var urlString = /\.jpg|\.jpeg|\.png|\.gif|\.html|\.htm|\.php|\.cfm|\.asp|\.aspx|\.jsp|\.jst|\.rb|\.txt|\.bmp/g; + var urlType = url.toLowerCase().match(urlString); + + if(urlType == '.jpg' || urlType == '.jpeg' || urlType == '.png' || urlType == '.gif' || urlType == '.bmp'){//code to show images + + TB_PrevCaption = ""; + TB_PrevURL = ""; + TB_PrevHTML = ""; + TB_NextCaption = ""; + TB_NextURL = ""; + TB_NextHTML = ""; + TB_imageCount = ""; + TB_FoundURL = false; + if(imageGroup){ + TB_TempArray = $("a[@rel="+imageGroup+"]").get(); + for (TB_Counter = 0; ((TB_Counter < TB_TempArray.length) && (TB_NextHTML == "")); TB_Counter++) { + var urlTypeTemp = TB_TempArray[TB_Counter].href.toLowerCase().match(urlString); + if (!(TB_TempArray[TB_Counter].href == url)) { + if (TB_FoundURL) { + TB_NextCaption = TB_TempArray[TB_Counter].title; + TB_NextURL = TB_TempArray[TB_Counter].href; + TB_NextHTML = "  
Next >
"; + } else { + TB_PrevCaption = TB_TempArray[TB_Counter].title; + TB_PrevURL = TB_TempArray[TB_Counter].href; + TB_PrevHTML = "  < Prev"; + } + } else { + TB_FoundURL = true; + TB_imageCount = "Image " + (TB_Counter + 1) +" of "+ (TB_TempArray.length); + } + } + } + + imgPreloader = new Image(); + imgPreloader.onload = function(){ + + imgPreloader.onload = null; + + // Resizing large images - orginal by Christian Montoya edited by me. + var pagesize = TB_getPageSize(); + var x = pagesize[0] - 150; + var y = pagesize[1] - 150; + var imageWidth = imgPreloader.width; + var imageHeight = imgPreloader.height; + if (imageWidth > x) { + imageHeight = imageHeight * (x / imageWidth); + imageWidth = x; + if (imageHeight > y) { + imageWidth = imageWidth * (y / imageHeight); + imageHeight = y; + } + } else if (imageHeight > y) { + imageWidth = imageWidth * (y / imageHeight); + imageHeight = y; + if (imageWidth > x) { + imageHeight = imageHeight * (x / imageWidth); + imageWidth = x; + } + } + // End Resizing + + TB_WIDTH = imageWidth + 30; + TB_HEIGHT = imageHeight + 60; + $("#TB_window").append(""+caption+"" + "
"+caption+"
" + TB_imageCount + TB_PrevHTML + TB_NextHTML + "
"); + + $("#TB_closeWindowButton").click(TB_remove); + + if (!(TB_PrevHTML == "")) { + function goPrev(){ + if($(document).unclick(goPrev)){$(document).unclick(goPrev)}; + $("#TB_window").remove(); + $("body").append("
"); + $(document).unkeyup(); + TB_show(TB_PrevCaption, TB_PrevURL, imageGroup); + return false; + } + + $("#TB_prev").click(goPrev); + + $(document).keyup( function(e){ var key = e.keyCode; if(key == 37){goPrev()} }); + } + + + + if (!(TB_NextHTML == "")) { + function goNext(){ + $("#TB_window").remove(); + $("body").append("
"); + $(document).unkeyup(); + TB_show(TB_NextCaption, TB_NextURL, imageGroup); + return false; + } + + $("#TB_next").click(goNext); + + $(document).keyup( function(e){ var key = e.keyCode; if(key == 39){goNext()} }); + } + + TB_position(); + $("#TB_load").remove(); + $("#TB_ImageOff").click(TB_remove); + $("#TB_window").css({display:"block"}); //for safari using css instead of show + } + + imgPreloader.src = url; + } + + if(urlType=='.htm'||urlType=='.html'||urlType=='.php'||urlType=='.asp'||urlType=='.aspx'||urlType=='.jsp'||urlType=='.jst'||urlType=='.rb'||urlType=='.txt'||urlType=='.cfm' || (url.indexOf('TB_inline') != -1) || (url.indexOf('TB_iframe') != -1) ){//code to show html pages + + var queryString = url.replace(/^[^\?]+\??/,''); + var params = TB_parseQuery( queryString ); + +// TB_WIDTH = (params['width']*1) + 30; +// TB_HEIGHT = (params['height']*1) + 40; +// ajaxContentW = TB_WIDTH - 30; +// ajaxContentH = TB_HEIGHT - 45; + TB_WIDTH = (params['width']*1); + TB_HEIGHT = (params['height']*1); + ajaxContentW = TB_WIDTH; + ajaxContentH = TB_HEIGHT; + + if(url.indexOf('no_title') != -1){ + $("#TB_window").append("
"+caption+"
"); + TB_HEIGHT += 27; //title height + } + if(url.indexOf('TB_iframe') != -1){ + if(url.indexOf('transfer_params') == -1){ + urlNoQuery = url.substr(0,TB_strpos(url, "?")); + }else{ + urlNoQuery = url; + } + $("#TB_window").append(""); + }else{ + $("#TB_window").append("
"); + } + + $("#TB_closeWindowButton").click(TB_remove); + + if(url.indexOf('TB_inline') != -1){ + $("#TB_ajaxContent").html($('#' + params['inlineId']).html()); + TB_position(); + $("#TB_load").remove(); + $("#TB_window").css({display:"block"}); + }else if(url.indexOf('TB_iframe') != -1){ + TB_position(); + $("#TB_load").remove(); + $("#TB_window").css({display:"block"}); + }else{ + $("#TB_ajaxContent").load(url, function(){ + TB_position(); + $("#TB_load").remove(); + $("#TB_window").css({display:"block"}); + }); + } + + } + + $(window).resize(TB_position); + + } catch(e) { + alert( e ); + } +} + +//helper functions below + +function TB_remove() { + $("#TB_window").fadeOut("fast",function(){$('#TB_window,#TB_overlay,#TB_HideSelect').remove();}); + $("#TB_load").remove(); + //$(document).unkeyup(); + return false; +} + +function TB_position() { + var pagesize = TB_getPageSize(); + var arrayPageScroll = TB_getPageScrollTop(); + $("#TB_window").css({height:TB_HEIGHT+"px",width:TB_WIDTH+"px",left: ((pagesize[0] - TB_WIDTH)/2)+"px", top: (arrayPageScroll[1] + ((pagesize[1]-TB_HEIGHT)/2))+"px" }); + TB_overlaySize(); +} + +function TB_overlaySize(){ + if (window.innerHeight && window.scrollMaxY) { + yScroll = window.innerHeight + window.scrollMaxY; + } else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac + yScroll = document.body.scrollHeight; + } else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari + yScroll = document.body.offsetHeight; + } + $("#TB_overlay").css("height",yScroll +"px"); +} + +function TB_load_position() { + var pagesize = TB_getPageSize(); + var arrayPageScroll = TB_getPageScrollTop(); + + $("#TB_load") + .css({left: ((pagesize[0] - 100)/2)+"px", top: (arrayPageScroll[1] + ((pagesize[1]-100)/2))+"px" }) + .css({display:"block"}); +} + +function TB_parseQuery ( query ) { + var Params = new Object (); + if ( ! query ) return Params; // return empty object + var Pairs = query.split(/[;&]/); + for ( var i = 0; i < Pairs.length; i++ ) { + var KeyVal = Pairs[i].split('='); + if ( ! KeyVal || KeyVal.length != 2 ) continue; + var key = unescape( KeyVal[0] ); + var val = unescape( KeyVal[1] ); + val = val.replace(/\+/g, ' '); + Params[key] = val; + } + return Params; +} + +function TB_getPageScrollTop(){ + var yScrolltop; + if (self.pageYOffset) { + yScrolltop = self.pageYOffset; + } else if (document.documentElement && document.documentElement.scrollTop){ // Explorer 6 Strict + yScrolltop = document.documentElement.scrollTop; + } else if (document.body) {// all other Explorers + yScrolltop = document.body.scrollTop; + } + arrayPageScroll = new Array('',yScrolltop) + return arrayPageScroll; +} + +function TB_getPageSize(){ + var de = document.documentElement; + var w = window.innerWidth || self.innerWidth || (de&&de.clientWidth) || document.body.clientWidth; + var h = window.innerHeight || self.innerHeight || (de&&de.clientHeight) || document.body.clientHeight; + + arrayPageSize = new Array(w,h) + return arrayPageSize; +} + +function TB_strpos(str, ch) { +for (var i = 0; i < str.length; i++) +if (str.substring(i, i+1) == ch) return i; +return -1; +} + diff --git a/97suifangqa/apps/indicator/templates/indicator/NewDeleteIndex.html b/97suifangqa/apps/indicator/templates/indicator/NewDeleteIndex.html new file mode 100644 index 0000000..5c1b568 --- /dev/null +++ b/97suifangqa/apps/indicator/templates/indicator/NewDeleteIndex.html @@ -0,0 +1,428 @@ + +{% load staticfiles %} + + + + 添加或删除关注指标 + + + + + + + + + + +
+
+
添加或删除关注指标
+ +
+
+ +
+
+ + +
+
所有指标
+
+
A
+
B
+
C
+
D
+
E
+
F
+
G
+
H
+
I
+
J
+
K
+
L
+
M
+
N
+
O
+
P
+
Q
+
R
+
S
+
T
+
U
+
V
+
W
+
X
+
Y
+
Z
+
+
+
+
+
A
+
+
乙肝病毒表面抗原
+
两对半
+
+
+
+
+
+
B
+
+
乙肝病毒表面抗原
+
两对半
+
+
+
+
+
+
C
+
+
乙肝病毒表面抗原
+
两对半
+
+
+
+
+
+
D
+
+
乙肝病毒表面抗原
+
两对半
+
+
+
+
+
+
E
+
+
乙肝病毒表面抗原
+
两对半
+
+
+
+
+
+
F
+
+
乙肝病毒表面抗原
+
两对半
+
+
+
+
+
+
G
+
+
乙肝病毒表面抗原
+
两对半
+
+
+
+
+
+
H
+
+
乙肝病毒表面抗原
+
两对半
+
+
+
+
+
+
I
+
+
乙肝病毒表面抗原
+
两对半
+
+
+
+
+
+
J
+
+
乙肝病毒表面抗原
+
两对半
+
+
+
+
+
+
K
+
+
乙肝病毒表面抗原
+
两对半
+
+
+
+
+
+
L
+
+
乙肝病毒表面抗原
+
两对半
+
+
+
+
+
+
M
+
+
乙肝病毒表面抗原
+
两对半
+
+
+
+
+
+
N
+
+
乙肝病毒表面抗原
+
两对半
+
+
+
+
+
+
O
+
+
乙肝病毒表面抗原
+
两对半
+
+
+
+
+
+
P
+
+
乙肝病毒表面抗原
+
两对半
+
+
+
+
+
+
Q
+
+
乙肝病毒表面抗原
+
两对半
+
+
+
+
+
+
R
+
+
乙肝病毒表面抗原
+
两对半
+
+
+
+
+
+
S
+
+
乙肝病毒表面抗原
+
两对半
+
+
+
+
+
+
T
+
+
乙肝病毒表面抗原
+
两对半
+
+
+
+
+
+
U
+
+
乙肝病毒表面抗原
+
两对半
+
+
+
+
+
+
V
+
+
乙肝病毒表面抗原
+
两对半
+
+
+
+
+
+
W
+
+
乙肝病毒表面抗原
+
两对半
+
+
+
+
+
+
X
+
+
乙肝病毒表面抗原
+
两对半
+
+
+
+
+
+
Y
+
+
乙肝病毒表面抗原
+
两对半
+
+
+
+
+
+
Z
+
+
乙肝病毒表面抗原
+
两对半
+
+
+
+
+
+
+ + + + +
+
+
+
+
已关注指标
+
+
+ + +
+
+
+
+
+
+
V-谷丙氨酰转氨酶
+
+
+
+
+
总胆红素
+
+
+
+
+
乙肝病毒表面抗原
+
+
+
+
+
乙肝病毒表面抗体
+
+
+
+
+
乙肝病毒e抗体
+
+
+
+
+
乙肝病毒核算定量(PCR)
+
+
+
+
+
乙肝病毒基因型C型
+
+
+
+
+
乙肝病毒型混合型
+
+
+
+
+
+
+
+
+ + +{# vim: set ts=2 sw=2 tw=0 fenc=utf-8 ft=htmldjango.html: #} diff --git a/97suifangqa/apps/indicator/templates/indicator/SheetDefault.html b/97suifangqa/apps/indicator/templates/indicator/SheetDefault.html new file mode 100644 index 0000000..50d71d7 --- /dev/null +++ b/97suifangqa/apps/indicator/templates/indicator/SheetDefault.html @@ -0,0 +1,212 @@ + +{% load staticfiles %} + + + + 页面4 + + + + + + + + + + + + + + + + +
+
+
指标状态
+ +
+
以下可能是您感兴趣的指标,您可以点击卡片右上角“X”,取消关注。
+
+
+ + + +
+
乙肝病毒核算定量 (PCR)1
+
+ 参考范围 + 100 x 10^4 拷贝 /mL +
+
+ + + +
+
+
+ x 10^ + +
+
+
+
+
+ 拷贝 /mL +
+
+
+
+
+
+
+
+
点击右上角的按钮可以编辑数据
+ + + + + +
+ + +
+
乙肝病毒核算定量 (PCR)2
+
+ 参考范围 + 100 x 10^4 拷贝 /mL +
+
+ + + +
+
+
+ x 10^ + +
+
+
+
+
+ 拷贝 /mL +
+
+
+
+
+
+
+
+
点击右上角的按钮可以编辑数据
+ + + +
+ +
+
乙肝病毒核算定量 (PCR)3
+
+ 参考范围 + 100 x 10^4 拷贝 /mL +
+
+
98 x 10^4 拷贝 /mL
+ + +
+
+
+ x 10^ + +
+
+
+
+
+ 拷贝 /mL +
+
+
+
+
这是2013-07-01 化验单上的记录
+
+
+
+
+ +
+
+ + + +
+ +
+
乙肝病毒核算定量 (PCR)4
+
+ + +
+ + +
+
+ + +
+
+
+
+
+ + + + + + +
日期时间记录
+
+
+
+ + +
+
+ + +{# vim: set ts=2 sw=2 tw=0 fenc=utf-8 ft=htmldjango.html: #} diff --git a/97suifangqa/apps/indicator/templates/indicator/SideBar.html b/97suifangqa/apps/indicator/templates/indicator/SideBar.html new file mode 100644 index 0000000..a6db044 --- /dev/null +++ b/97suifangqa/apps/indicator/templates/indicator/SideBar.html @@ -0,0 +1,77 @@ + +{% load staticfiles %} + + + + demo + + + + + + + + +{# vim: set ts=2 sw=2 tw=0 fenc=utf-8 ft=htmldjango.html: #} diff --git a/97suifangqa/apps/indicator/templates/indicator/done.html b/97suifangqa/apps/indicator/templates/indicator/done.html new file mode 100644 index 0000000..2a11ea8 --- /dev/null +++ b/97suifangqa/apps/indicator/templates/indicator/done.html @@ -0,0 +1,9 @@ + + + DONE + + + +

DONE

+ + diff --git a/97suifangqa/apps/indicator/templates/indicator/index.html b/97suifangqa/apps/indicator/templates/indicator/index.html new file mode 100644 index 0000000..94ab354 --- /dev/null +++ b/97suifangqa/apps/indicator/templates/indicator/index.html @@ -0,0 +1,12 @@ + + + + + 首页 + + + 指标状态 + 关注指标 + + + diff --git a/97suifangqa/apps/indicator/templates/indicator/popup/DeleteCardTip.html b/97suifangqa/apps/indicator/templates/indicator/popup/DeleteCardTip.html new file mode 100644 index 0000000..3aed409 --- /dev/null +++ b/97suifangqa/apps/indicator/templates/indicator/popup/DeleteCardTip.html @@ -0,0 +1,26 @@ + +{% load staticfiles %} + + + + 取消关注卡片提示 + + + + + + +
+
+
提示
+
+
+
取消关注指标后,该指标卡片将从本页面消失,您确定需要取消关注?
+ +
+ + +{# vim: set ts=2 sw=2 tw=0 fenc=utf-8 ft=htmldjango.html: #} diff --git a/97suifangqa/apps/indicator/templates/indicator/popup/EditHistoryData.html b/97suifangqa/apps/indicator/templates/indicator/popup/EditHistoryData.html new file mode 100644 index 0000000..094766d --- /dev/null +++ b/97suifangqa/apps/indicator/templates/indicator/popup/EditHistoryData.html @@ -0,0 +1,42 @@ + +{% load staticfiles %} + + + + 编辑历史数据 + + + + + + +
+
+
乙肝病毒核算定量(PCR)
+
+
+
+
+ 日期:2013-07-16 + 时间:11:20 +
+
参考范围:100 x 10^4 拷贝 /mL
+
您的记录:100 x 10^4 拷贝 /mL
+
+
+ + x 10^ + +
+
+
+
+
+ 拷贝 /mL + +
+
+
+ + +{# vim: set ts=2 sw=2 tw=0 fenc=utf-8 ft=htmldjango.html: #} diff --git a/97suifangqa/apps/indicator/templates/indicator/popup/IndexDesc.html b/97suifangqa/apps/indicator/templates/indicator/popup/IndexDesc.html new file mode 100644 index 0000000..db83f19 --- /dev/null +++ b/97suifangqa/apps/indicator/templates/indicator/popup/IndexDesc.html @@ -0,0 +1,28 @@ + +{% load staticfiles %} + + + + 指标注释 + + + + + + +
+
+
乙肝病毒核算定量(PCR)
+
+
+
+ 乙型肝炎仍是全球最严重的公共卫生问题之一。乙型肝炎病毒核酸DNA是反映乙肝的感染状态和治疗效果的重要指标。HBV DNA的定量检测是目前通过国家认证临床PCR实验室的常规检测项目之一。 +

+ 目前HBV的临床检测从传统的免疫学方法发展到分子生物学方法,这是科技水平的一个重大进步。分子生物学检测经历了早期的PCR凝胶电泳法、半定量法到现在的完全定量法,目前各种定量检测方法日趋成熟,国内以TAQMAN荧光基因探针技术为主流的多种检测试剂盒已开发出来。荧光基因探针PCR?目前HBV的临床检测从传统的免疫学方法发展到分子生物学方法,这是科技水平的一个重大进步。分子生物学检测经历了早期的PCR凝胶电泳法、半定量法到现在的完全定量法,目前各种定量检测方法日趋成熟,国内以TAQMAN荧光基因探针技术为主流的多种检测试剂盒已开发出来。荧光基因探针PCR? +
+
收藏该注释(已有 100 人收藏)
+
+
+ + +{# vim: set ts=2 sw=2 tw=0 fenc=utf-8 ft=htmldjango.html: #} diff --git a/97suifangqa/apps/indicator/templates/indicator/show_category.html b/97suifangqa/apps/indicator/templates/indicator/show_category.html new file mode 100644 index 0000000..1448bb3 --- /dev/null +++ b/97suifangqa/apps/indicator/templates/indicator/show_category.html @@ -0,0 +1,32 @@ + + + IndicatorCategory Details (id={{ object.id }}) + + + +

IndicatorCategory Details (id={{ object.id }})

+ + + + + + + + + + + + + + + + + + + + + + +
name:{{ object.name }}
pinyin:{{ object.pinyin }}
englishName:{{ object.englishName }}
description:{{ object.description }}
addByUser_username:{{ object.addByUser.username }}
+ + diff --git a/97suifangqa/apps/indicator/templates/indicator/show_indicator.html b/97suifangqa/apps/indicator/templates/indicator/show_indicator.html new file mode 100644 index 0000000..0ecd027 --- /dev/null +++ b/97suifangqa/apps/indicator/templates/indicator/show_indicator.html @@ -0,0 +1,48 @@ + + + Indicator Details (id={{ object.id }}) + + + +

Indicator Details (id={{ object.id }})

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
name:{{ object.name }}
pinyin:{{ object.pinyin }}
englishName:{{ object.englishName }}
description:{{ object.description }}
helpText:{{ object.helpText }}
addByUser_username:{{ object.addByUser.username }}
categories_name: + {% for c in object.categories.all %} + {{ c.name }}; + {% endfor %} +
dataType:{{ object.dataType }}
+ + diff --git a/97suifangqa/apps/indicator/templates/indicator/show_record.html b/97suifangqa/apps/indicator/templates/indicator/show_record.html new file mode 100644 index 0000000..49c7918 --- /dev/null +++ b/97suifangqa/apps/indicator/templates/indicator/show_record.html @@ -0,0 +1,52 @@ + + + IndicatorRecord Details (id={{ object.id }}) + + + +

IndicatorRecord Details (id={{ object.id }})

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
indicator_name:{{ object.indicator.name }}
user_username:{{ object.user.username }}
created_at:{{ object.created_at }}
updated_at:{{ object.updated_at }}
date:{{ object.date }}
unit_name:{{ object.unit.name }}
value:{{ object.value }}
val_max:{{ object.val_max }}
val_min:{{ object.val_min }}
notes:{{ object.notes }}
+ + diff --git a/97suifangqa/apps/indicator/templates/indicator/simple.html b/97suifangqa/apps/indicator/templates/indicator/simple.html new file mode 100644 index 0000000..7775ab7 --- /dev/null +++ b/97suifangqa/apps/indicator/templates/indicator/simple.html @@ -0,0 +1,23 @@ + + + {{ action }} {{ object }} + + + +

{{ action }} {{ object }}

+ + {% if form.errors %} +

+ Please correct the error{{ form.errors|pluralize }} below. +

+ {% endif %} + +
{% csrf_token %} + + {{ form.as_table }} +
+ +
+ + + diff --git a/97suifangqa/apps/indicator/urls.py b/97suifangqa/apps/indicator/urls.py index 0b5b12a..dbfc1ae 100644 --- a/97suifangqa/apps/indicator/urls.py +++ b/97suifangqa/apps/indicator/urls.py @@ -21,22 +21,54 @@ urlpatterns = patterns('indicator.views', DetailView.as_view( model=im.IndicatorCategory, template_name='show_category.html'), - name='show-category'), + name='show_category'), # Indicator, name='show-indicator' url(r'^show/indicator/(?P\d+)/$', DetailView.as_view( model=im.Indicator, template_name='show_indicator.html'), - name='show-indicator'), - # IndicatorRecord, name='show-record' - # TODO: howto add '@login_required' - url(r'^show/record/(?P\d+)/$', - DetailView.as_view( - model=im.IndicatorRecord, - template_name='show_record.html'), - name='show-record'), + name='show_indicator'), + ## IndicatorRecord, name='show-record' + ## TODO: howto add '@login_required' + #url(r'^show/record/(?P\d+)/$', + # DetailView.as_view( + # model=im.IndicatorRecord, + # template_name='show_record.html'), + # name='show_record'), ) +## UI pages +urlpatterns += patterns('', + # indicator_index + url(r'^$', + direct_to_template, {'template': 'indicator/index.html'}, + name='indicator_index'), + # indicator_sidebar + url(r'^sidebar/$', + direct_to_template, {'template': 'indicator/SideBar.html'}, + name='indicator_sidebar'), + # indicator_status, 指标状态 + url(r'^status/$', + direct_to_template, {'template': 'indicator/SheetDefault.html'}, + name='indicator_status'), + # follow_indicator, 关注指标 + url(r'^follow/$', + direct_to_template, {'template': 'indicator/NewDeleteIndex.html'}, + name='follow_indicator'), + ## indicator: popup + # DeleteCardTip + url(r'^popup/deletecardtip/$', + direct_to_template, {'template': 'indicator/popup/DeleteCardTip.html'}, + name='indicator_deletecardtip'), + # EditHistoryData + url(r'^popup/edithistorydata/$', + direct_to_template, {'template': 'indicator/popup/EditHistoryData.html'}, + name='indicator_edithistorydata'), + # IndexDesc + url(r'^popup/indexdesc/$', + direct_to_template, {'template': 'indicator/popup/IndexDesc.html'}, + name='indicator_indexdesc'), +) urlpatterns += patterns('indicator.views', ## test @@ -119,6 +151,6 @@ urlpatterns += patterns('indicator.views', urlpatterns += patterns('', ## done - url(r'^done/$', direct_to_template, { 'template': 'done.html' }), + url(r'^done/$', direct_to_template, { 'template': 'indicator/done.html' }), ) diff --git a/97suifangqa/apps/indicator/views.py b/97suifangqa/apps/indicator/views.py index 1175d62..a8ee9dc 100644 --- a/97suifangqa/apps/indicator/views.py +++ b/97suifangqa/apps/indicator/views.py @@ -110,7 +110,7 @@ def get_record_view(request, indicator_id, date_range, **kwargs): ## add_edit_category # {{{ @login_required -def add_edit_category(request, category_id=None, template='simple.html'): +def add_edit_category(request, category_id=None, template='indicator/simple.html'): """ add/edit category: 'models.IndicatorCategory' for 'staff' or 'normal user' @@ -153,7 +153,7 @@ def add_edit_category(request, category_id=None, template='simple.html'): # add_edit_indicator # {{{ @login_required -def add_edit_indicator(request, indicator_id=None, template='simple.html'): +def add_edit_indicator(request, indicator_id=None, template='indicator/simple.html'): """ add/edit indicator: 'models.Indicator' for 'staff' or 'normal user' @@ -194,7 +194,7 @@ def add_edit_indicator(request, indicator_id=None, template='simple.html'): ## add_edit_unit {{{ @login_required -def add_edit_unit(request, unit_id=None, template='simple.html'): +def add_edit_unit(request, unit_id=None, template='indicator/simple.html'): """ add unit for indicator """ @@ -233,7 +233,7 @@ def add_edit_unit(request, unit_id=None, template='simple.html'): ## add_edit_confine {{{ @login_required -def add_edit_confine(request, confine_id=None, template='simple.html'): +def add_edit_confine(request, confine_id=None, template='indicator/simple.html'): """ InnateConfine add confines for indicator @@ -273,7 +273,7 @@ def add_edit_confine(request, confine_id=None, template='simple.html'): ## add_edit_record {{{ @login_required -def add_edit_record(request, record_id=None, template='simple.html'): +def add_edit_record(request, record_id=None, template='indicator/simple.html'): """ add/edit 'IndicatorRecord' @@ -325,7 +325,7 @@ def add_edit_record(request, record_id=None, template='simple.html'): ## modify_record {{{ @login_required -def modify_record(request, record_id=None, template='simple.html'): +def modify_record(request, record_id=None, template='indicator/simple.html'): """ modify an existing IndicatorRecord @@ -373,7 +373,7 @@ def modify_record(request, record_id=None, template='simple.html'): ## add_recordhistory {{{ @login_required -def add_recordhistory(request, record_id, template='simple.html'): +def add_recordhistory(request, record_id, template='indicator/simple.html'): """ add 'RecordHistory' for a record by given diff --git a/97suifangqa/apps/sciblog/templatetags/tools.py b/97suifangqa/apps/sciblog/templatetags/tools.py new file mode 100644 index 0000000..9ed90c2 --- /dev/null +++ b/97suifangqa/apps/sciblog/templatetags/tools.py @@ -0,0 +1,7 @@ +from django import template + +register = template.Library() +@register.filter +def get_range(count, start = 0): + return range(start, start + count) + diff --git a/97suifangqa/settings.py b/97suifangqa/settings.py index b36f4f0..9dd3fc9 100644 --- a/97suifangqa/settings.py +++ b/97suifangqa/settings.py @@ -25,23 +25,55 @@ DATABASES = { FILE_SITE = "http://127.0.0.1:8000" +# Local time zone for this installation. Choices can be found here: +# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name +# although not all choices may be available on all operating systems. +# In a Windows environment this must be set to your system time zone. TIME_ZONE = 'Asia/Shanghai' +# Language code for this installation. All choices can be found here: +# http://www.i18nguy.com/unicode/language-identifiers.html LANGUAGE_CODE = 'zh-cn' SITE_ID = 1 +# If you set this to False, Django will make some optimizations so as not +# to load the internationalization machinery. USE_I18N = True +# If you set this to False, Django will not format dates, numbers and +# calendars according to the current locale. USE_L10N = True +# If you set this to False, Django will not use timezone-aware datetimes. +USE_TZ = True + +# Absolute filesystem path to the directory that will hold user-uploaded files. +# Example: "/home/media/media.lawrence.com/media/" MEDIA_ROOT = path('media') -MEDIA_URL = '/site_media/' +# URL that handles the media served from MEDIA_ROOT. Make sure to use a +# trailing slash. +# Examples: "http://media.lawrence.com/media/", "http://example.com/media/" +# MEDIA_URL = '/site_media/' +MEDIA_URL = '/media/' + +# Absolute path to the directory static files should be collected to. +# Don't put anything in this directory yourself; store your static files +# in apps' "static/" subdirectories and in STATICFILES_DIRS. +# Example: "/home/media/media.lawrence.com/static/" STATIC_ROOT = path('../static') + +# URL prefix for static files. +# Example: "http://media.lawrence.com/static/" STATIC_URL = '/static/' -ADMIN_MEDIA_PREFIX = '/static/admin/' +# URL prefix for admin static files -- CSS, JavaScript and images. +# Make sure to use a trailing slash. +# Examples: "http://foo.com/static/admin/", "/static/admin/". +ADMIN_MEDIA_PREFIX = STATIC_URL + 'admin/' + +# Additional locations of static files STATICFILES_DIRS = ( # Put strings here, like "/home/html/static" or "C:/www/django/static". # Always use forward slashes, even on Windows. @@ -78,11 +110,16 @@ MIDDLEWARE_CLASSES = ( 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', + # Uncomment the next line for simple clickjacking protection: + # 'django.middleware.clickjacking.XFrameOptionsMiddleware', ) ROOT_URLCONF = 'urls' TEMPLATE_DIRS = ( + # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". + # Always use forward slashes, even on Windows. + # Don't forget to use absolute paths, not relative paths. path("templates"), ) @@ -102,7 +139,10 @@ INSTALLED_APPS = ( 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', + # Uncomment the next line to enable the admin: 'django.contrib.admin', + # Uncomment the next line to enable admin documentation: + # 'django.contrib.admindocs', 'haystack', 'profile', 'location', diff --git a/97suifangqa/templates/base.html b/97suifangqa/templates/base.html index 9637182..5c2628f 100644 --- a/97suifangqa/templates/base.html +++ b/97suifangqa/templates/base.html @@ -94,3 +94,4 @@ {% endblock js %} +{# vim: set ts=2 sw=2 tw=0 fenc=utf-8 ft=htmldjango.html: #} diff --git a/97suifangqa/templates/index.html b/97suifangqa/templates/index.html index 32770bd..e23d16a 100644 --- a/97suifangqa/templates/index.html +++ b/97suifangqa/templates/index.html @@ -29,12 +29,14 @@
  • 搜索首页
  • 文章列表
  • 文章详细信息显示
  • -
  • 登录页面
  • -
  • 登出页面
  • -
  • 注册界面
  • +
  • 登录页面
  • +
  • 登出页面
  • +
  • 注册界面
  • 待完成页面: diff --git a/97suifangqa/templates/sciblog/blog_list.html b/97suifangqa/templates/sciblog/blog_list.html index 7e8b7b2..67f2126 100644 --- a/97suifangqa/templates/sciblog/blog_list.html +++ b/97suifangqa/templates/sciblog/blog_list.html @@ -111,3 +111,5 @@ {% endblock %} + +{# vim: set ts=2 sw=2 tw=0 fenc=utf-8 ft=htmldjango: #} diff --git a/97suifangqa/urls.py b/97suifangqa/urls.py index f1b2aeb..fd7d7a9 100644 --- a/97suifangqa/urls.py +++ b/97suifangqa/urls.py @@ -6,8 +6,14 @@ from django.views.generic.simple import direct_to_template from django.contrib.auth import logout, views as auth_views from django.shortcuts import redirect, render_to_response +from django.conf import settings + +# staticfiles +from django.contrib.staticfiles.urls import staticfiles_urlpatterns + admin.autodiscover() + urlpatterns = patterns("", url(r"^admin/", include(admin.site.urls)), (r"^site_media/(?P.*)$", "django.views.static.serve", {"document_root": "./media/"}), @@ -32,6 +38,7 @@ def page_not_found(request): return render_to_response('./templates/404.html') + ## apps/indicator urlpatterns += patterns('', url(r'^indicator/', include('indicator.urls')), @@ -44,3 +51,15 @@ urlpatterns += patterns('', ) +## test 'media' settings +if settings.DEBUG: + urlpatterns += patterns('django.views.static', + # media + url(r'^media/(?P.*)$', + 'serve', + {'document_root': settings.MEDIA_ROOT}), + ) + +## staticfiles +urlpatterns += staticfiles_urlpatterns() + -- cgit v1.2.2