commit f056f1e2ac89cd59dd8b1faf1cb10caa79c22b8c Author: Crom (Thibaut CHARLES) Date: Wed May 16 01:18:54 2018 +0200 Restored website from broken emberJS diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f5604cf --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ + +/node_modules/ +/package-lock.json + +/css/*.map + diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b567c8d --- /dev/null +++ b/Makefile @@ -0,0 +1,3 @@ +all: + npm install sass + node_modules/sass/sass.js scss/main.scss css/main.css diff --git a/css/lightbox.css b/css/lightbox.css new file mode 100644 index 0000000..9a7303a --- /dev/null +++ b/css/lightbox.css @@ -0,0 +1,212 @@ +/* line 7, ../sass/lightbox.sass */ +body:after { + content: url(../img/ui/close.png) url(../img/ui/loading.gif) url(../img/ui/prev.png) url(../img/ui/next.png); + display: none; +} + +/* line 11, ../sass/lightbox.sass */ +.lightboxOverlay { + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + z-index: 9999; + background-color: black; + filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=80); + opacity: 0.8; + display: none; +} + +/* line 20, ../sass/lightbox.sass */ +.lightbox { + position: fixed; + margin-top: auto; + margin-bottom: auto; + left: 0; + width: 100%; + z-index: 10000; + text-align: center; + line-height: 0; + font-weight: normal; +} +/* line 28, ../sass/lightbox.sass */ +.lightbox .lb-image { + display: block; + height: auto; + -webkit-border-radius: 3px; + -moz-border-radius: 3px; + -ms-border-radius: 3px; + -o-border-radius: 3px; + border-radius: 3px; +} +/* line 32, ../sass/lightbox.sass */ +.lightbox a img { + border: none; +} + +/* line 35, ../sass/lightbox.sass */ +.lb-outerContainer { + position: relative; + *zoom: 1; + width: 250px; + height: 250px; + margin: 0 auto; + -webkit-border-radius: 4px; + -moz-border-radius: 4px; + -ms-border-radius: 4px; + -o-border-radius: 4px; + border-radius: 4px; + + border-style: solid; + border-width: 1px; + border-color: #000000; + background-image: url(../img/ui/bgdark.png); + background-position: center; + +} +/* line 38, ../../../../.rvm/gems/ruby-1.9.3-p392/gems/compass-0.12.2/frameworks/compass/stylesheets/compass/utilities/general/_clearfix.scss */ +.lb-outerContainer:after { + content: ""; + display: table; + clear: both; +} + +/* line 44, ../sass/lightbox.sass */ +.lb-container { + padding: 4px; +} + +/* line 47, ../sass/lightbox.sass */ +.lb-loader { + position: absolute; + top: 43%; + left: 0%; + height: 25%; + width: 100%; + text-align: center; + line-height: 0; +} + +/* line 56, ../sass/lightbox.sass */ +.lb-cancel { + display: block; + width: 32px; + height: 32px; + margin: 0 auto; + background: url(../img/ui/loading.gif) no-repeat; +} + +/* line 63, ../sass/lightbox.sass */ +.lb-nav { + position: absolute; + top: 0; + left: 0; + height: 100%; + width: 100%; + z-index: 10; +} + +/* line 71, ../sass/lightbox.sass */ +.lb-container > .nav { + left: 0; +} + +/* line 74, ../sass/lightbox.sass */ +.lb-nav a { + outline: none; +} + +/* line 77, ../sass/lightbox.sass */ +.lb-prev, .lb-next { + width: 49%; + height: 100%; + cursor: pointer; + /* Trick IE into showing hover */ + display: block; +} + +/* line 84, ../sass/lightbox.sass */ +.lb-prev { + left: 0; + float: left; +} +/* line 87, ../sass/lightbox.sass */ +.lb-prev:hover { + background: url(../img/ui/prev.png) left 48% no-repeat; +} + +/* line 90, ../sass/lightbox.sass */ +.lb-next { + right: 0; + float: right; +} +/* line 93, ../sass/lightbox.sass */ +.lb-next:hover { + background: url(../img/ui/next.png) right 48% no-repeat; +} + +/* line 96, ../sass/lightbox.sass */ +.lb-dataContainer { + margin: 0 auto; + padding-top: 5px; + *zoom: 1; + width: 100%; + -moz-border-radius-bottomleft: 4px; + -webkit-border-bottom-left-radius: 4px; + border-bottom-left-radius: 4px; + -moz-border-radius-bottomright: 4px; + -webkit-border-bottom-right-radius: 4px; + border-bottom-right-radius: 4px; +} +/* line 38, ../../../../.rvm/gems/ruby-1.9.3-p392/gems/compass-0.12.2/frameworks/compass/stylesheets/compass/utilities/general/_clearfix.scss */ +.lb-dataContainer:after { + content: ""; + display: table; + clear: both; +} + +/* line 103, ../sass/lightbox.sass */ +.lb-data { + padding: 0 4px; + color: #bbbbbb; +} +/* line 106, ../sass/lightbox.sass */ +.lb-data .lb-details { + width: 85%; + float: left; + text-align: left; + line-height: 1.1em; +} +/* line 111, ../sass/lightbox.sass */ +.lb-data .lb-caption { + font-size: 13px; + font-weight: bold; + line-height: 1em; +} +/* line 115, ../sass/lightbox.sass */ +.lb-data .lb-number { + display: block; + clear: left; + padding-bottom: 1em; + font-size: 12px; + color: #999999; +} +/* line 121, ../sass/lightbox.sass */ +.lb-data .lb-close { + display: block; + float: right; + width: 30px; + height: 30px; + background: url(../img/ui/close.png) top right no-repeat; + text-align: right; + outline: none; + filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=70); + opacity: 0.7; +} +/* line 130, ../sass/lightbox.sass */ +.lb-data .lb-close:hover { + cursor: pointer; + filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100); + opacity: 1; +} diff --git a/css/main.css b/css/main.css new file mode 100644 index 0000000..cb918e0 --- /dev/null +++ b/css/main.css @@ -0,0 +1,714 @@ +@charset "UTF-8"; +nav#left { + position: fixed; + left: -210px; + width: 230px; + top: 0; + bottom: 0; + direction: rtl; + overflow-x: hidden; + overflow-y: auto; + z-index: 1; + border-style: solid; + border-width: 0 1px 0 0; + border-color: #000000; + background-image: url(../img/ui/bggray.png); + -webkit-box-shadow: -4px 0px 10px #202020 inset; + -moz-box-shadow: -4px 0px 10px #202020 inset; + -ms-box-shadow: -4px 0px 10px #202020 inset; + -o-box-shadow: -4px 0px 10px #202020 inset; + box-shadow: -4px 0px 10px #202020 inset; + text-align: center; + font-size: large; + -webkit-transition-property: left; + -moz-transition-property: left; + -ms-transition-property: left; + -o-transition-property: left; + transition-property: left; + -webkit-transition-duration: 0.2s; + -moz-transition-duration: 0.2s; + -ms-transition-duration: 0.2s; + -o-transition-duration: 0.2s; + transition-duration: 0.2s; + -webkit-transition-delay: 0.1s; + -moz-transition-delay: 0.1s; + -ms-transition-delay: 0.1s; + -o-transition-delay: 0.1s; + transition-delay: 0.1s; +} +nav#left .arrow { + position: absolute; + right: 0; + top: 50%; + height: 35px; + -webkit-transition-property: opacity; + -moz-transition-property: opacity; + -ms-transition-property: opacity; + -o-transition-property: opacity; + transition-property: opacity; + -webkit-transition-duration: 0.2s; + -moz-transition-duration: 0.2s; + -ms-transition-duration: 0.2s; + -o-transition-duration: 0.2s; + transition-duration: 0.2s; + -webkit-transition-delay: 0.1s; + -moz-transition-delay: 0.1s; + -ms-transition-delay: 0.1s; + -o-transition-delay: 0.1s; + transition-delay: 0.1s; +} +nav#left figure { + margin: 20px 0 10px 0; +} +nav#left figure figcaption { + color: #FAFAFA; + font-family: "Croissant One", cursive; + font-weight: bold; + font-style: italic; + font-size: 1.2em; + text-decoration: none; +} +nav#left a { + outline: none !important; + display: block; + padding: 5px; + margin: 7px 20px 7px 20px; + background-color: #303030; + border-style: solid; + border-width: 1px; + border-color: #000; + -webkit-border-radius: 3px; + -moz-border-radius: 3px; + -ms-border-radius: 3px; + -o-border-radius: 3px; + border-radius: 3px; + color: #FAFAFA; + font-weight: bold; + text-decoration: none; + text-align: center; + font-size: 1.2em; + -webkit-transition-property: border-color background-color; + -moz-transition-property: border-color background-color; + -ms-transition-property: border-color background-color; + -o-transition-property: border-color background-color; + transition-property: border-color background-color; + -webkit-transition-duration: 0.1s; + -moz-transition-duration: 0.1s; + -ms-transition-duration: 0.1s; + -o-transition-duration: 0.1s; + transition-duration: 0.1s; +} +nav#left a:hover { + background-color: #383838; + border-color: #202020; +} +nav#left a:active, nav#left a.active { + background-color: #215D9C; +} +nav#left a.external:after { + content: "↳ "; +} +nav#left a.external:hover { + border-color: #013D6C; +} +nav#left a.logo { + display: inline-block; + border-style: none; + background: none; +} +nav#left a.logo img { + height: 48px; +} +nav#left footer { + margin-top: 20px; +} + +nav#left:hover, nav#left:active { + left: 0px; +} +nav#left:hover .arrow, nav#left:active .arrow { + opacity: 0; +} + +nav#top { + position: fixed; + display: inline-block; + top: 0px; + height: 190px; + width: 100%; + color: #5F5F5F; + padding: 4px 0px; + overflow: auto; + background-image: url(../img/ui/bgdark.png); + border-style: solid; + border-width: 0 1px 1px 1px; + border-color: #000000; + text-align: center; + white-space: nowrap; + -webkit-transition-property: top; + -moz-transition-property: top; + -ms-transition-property: top; + -o-transition-property: top; + transition-property: top; + -webkit-transition-duration: 0.1s; + -moz-transition-duration: 0.1s; + -ms-transition-duration: 0.1s; + -o-transition-duration: 0.1s; + transition-duration: 0.1s; +} +nav#top .arrow { + position: absolute; + left: calc(50% - 13px); + bottom: 3px; + width: 26px; +} +nav#top a { + outline: none !important; + width: auto; + height: auto; + padding: 5px; + margin: 4px 0px 4px 0px; + display: inline-block; + color: #FAFAFA; + font-family: "Croissant One", cursive; + font-size: 18px; + font-style: italic; + text-decoration: none; + -webkit-text-shadow: 0 0 5px #000000; + -moz-text-shadow: 0 0 5px #000000; + -ms-text-shadow: 0 0 5px #000000; + -o-text-shadow: 0 0 5px #000000; + text-shadow: 0 0 5px #000000; + text-align: center; +} +nav#top a img { + margin: 4px 4px 0 4px; + width: 128px; + height: 128px; + -webkit-border-radius: 10px; + -moz-border-radius: 10px; + -ms-border-radius: 10px; + -o-border-radius: 10px; + border-radius: 10px; + -webkit-box-shadow: 0px 0px 10px #000000; + -moz-box-shadow: 0px 0px 10px #000000; + -ms-box-shadow: 0px 0px 10px #000000; + -o-box-shadow: 0px 0px 10px #000000; + box-shadow: 0px 0px 10px #000000; +} +nav#top a figcaption { + width: 128px; +} +nav#top a:hover { + -webkit-border-radius: 5px; + -moz-border-radius: 5px; + -ms-border-radius: 5px; + -o-border-radius: 5px; + border-radius: 5px; + background-color: rgba(255, 255, 255, 0.15); +} + +nav#top:hover, nav#top:active { + top: 0px !important; +} + +@keyframes UnwrapHeader { + from { + margin-left: 50%; + margin-right: 50%; + } + to { + margin-left: 40px; + margin-right: 40px; + } +} +#section-main { + position: absolute; + left: 20px; + right: 0px; + -webkit-transition-property: left; + -moz-transition-property: left; + -ms-transition-property: left; + -o-transition-property: left; + transition-property: left; + -webkit-transition-duration: 0.2s; + -moz-transition-duration: 0.2s; + -ms-transition-duration: 0.2s; + -o-transition-duration: 0.2s; + transition-duration: 0.2s; + -webkit-transition-delay: 0.1s; + -moz-transition-delay: 0.1s; + -ms-transition-delay: 0.1s; + -o-transition-delay: 0.1s; + transition-delay: 0.1s; +} +#section-main header { + margin: 30px 30px 60px 30px; + color: #FAFAFA; + font-family: "Noto Serif", serif; + font-style: italic; + font-size: 1.3em; + text-align: center; + text-shadow: 0 0 10px #000000; + border-style: solid; + border-width: 0 5px 0 5px; + border-color: #FAFAFA; + border-radius: 20px; + overflow: hidden; + animation: UnwrapHeader 1s; + white-space: nowrap; +} +#section-main article { + margin-left: auto; + margin-right: auto; + padding: 20px; + padding-top: 0; + margin-bottom: 10vh; + color: #202020; + box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5); + border-style: solid; + border-width: 3px; + border-color: #FFFFFF; + border-radius: 20px; + background-color: #FAFAFA; + max-width: 800px; + font-size: 0.6em; + line-height: 1.3em; + -webkit-transition-property: border-radius; + -moz-transition-property: border-radius; + -ms-transition-property: border-radius; + -o-transition-property: border-radius; + transition-property: border-radius; + -webkit-transition-duration: 0.5s; + -moz-transition-duration: 0.5s; + -ms-transition-duration: 0.5s; + -o-transition-duration: 0.5s; + transition-duration: 0.5s; +} +#section-main article h1:first-child { + margin: 0; + margin-left: -23px; + width: 100%; + padding: 20px 23px; + margin-top: -23px; + border-radius: 18px 18px 0 0; + background-color: #215D9C; + background-image: url("../img/ui/stripes.png"); + color: #FAFAFA; + font-family: "Croissant One", cursive; + font-weight: bold; + font-style: italic; + font-size: 1.7em; + text-align: left; + letter-spacing: -0.03em; + -webkit-transition-property: border-radius; + -moz-transition-property: border-radius; + -ms-transition-property: border-radius; + -o-transition-property: border-radius; + transition-property: border-radius; + -webkit-transition-duration: 0.5s; + -moz-transition-duration: 0.5s; + -ms-transition-duration: 0.5s; + -o-transition-duration: 0.5s; + transition-duration: 0.5s; +} +#section-main article h1:first-child img { + border: none; + float: right; + display: inline; + margin: auto; + height: 1em; +} +#section-main article h2 { + margin: 0 -23px; + padding: 10px 23px; + border-top: 1px solid #d5d5d5; + border-bottom: 1px solid #d5d5d5; + background-image: url("../img/ui/stripes.png"); + color: #3A4145; + font-family: "Croissant One", cursive; + font-size: x-large; +} +#section-main article h2 a, #section-main article h2 a:visited { + color: #3A4145; +} +#section-main article h3 { + color: #3A4145; + font-family: "Croissant One", cursive; + padding-left: 10px; + font-size: large; +} +#section-main article hr { + margin-left: -23px; + width: calc(100% + 40px + 6px); + border-style: solid; + border-width: 5px; + border-color: rgba(0, 0, 0, 0.1); + border-radius: 1px; +} +#section-main article blockquote { + position: relative; + padding: 1px 20px; + margin: 10px; + background-color: #eee; + border-radius: 0.2em; + font-style: italic; +} +#section-main article blockquote:after { + display: block; + position: absolute; + content: ""; + width: 0; + top: 20px; + left: -20px; + border-style: solid; + border-width: 15px 20px 15px 0; + border-color: transparent #eee; +} +#section-main article img:not(.raw), #section-main article video:not(.raw), #section-main article iframe:not(.raw) { + max-height: 150px; + width: auto; + vertical-align: middle; + margin: 5px; + border: 3px solid black; + border-radius: 2px; + transition-property: border-color; + transition-duration: 0.3s; +} +#section-main article video { + width: 80%; + height: auto; +} +#section-main article a { + color: #215D9C; +} +#section-main article a img:hover, #section-main article a video:hover, #section-main article a iframe:hover { + border-color: #808080; +} +#section-main article a:hover { + color: #2B7ACC; +} +#section-main article strong { + color: #2F3A45; +} +#section-main article img.nostyle { + height: auto; + border: 0; + border-radius: 0; +} +#section-main article img.fill { + width: 100%; + height: auto; +} +#section-main article .cinema { + margin: 0; + margin-left: -23px; + width: 100%; + padding: 10px 23px; + border-top: 1px solid #000; + border-bottom: 1px solid #000; + color: #FAFAFA; + background-image: url("../img/ui/bgdark.png"); + -webkit-box-shadow: 0px 0px 10px #000 inset; + -moz-box-shadow: 0px 0px 10px #000 inset; + -ms-box-shadow: 0px 0px 10px #000 inset; + -o-box-shadow: 0px 0px 10px #000 inset; + box-shadow: 0px 0px 10px #000 inset; +} +#section-main article .cinema img, #section-main article .cinema video, #section-main article .cinema iframe { + border-width: 1px; + border-radius: 0; + margin: -1px 4px 0px -5px; + border-left: 5px solid #000; + border-right: 5px solid #000; +} +#section-main article .cinema a img:hover, #section-main article .cinema a video:hover, #section-main article .cinema a iframe:hover { + border-color: #333; +} +#section-main article .cinema:first-child { + margin-top: -23px; + padding-top: 20px; + border-radius: 20px 20px 0 0; +} +#section-main article .cinema:last-child { + margin-bottom: -23px; + padding-bottom: 20px; + border-radius: 0 0 20px 20px; +} +#section-main article .markdown > div.content > pre { + margin: 0; + margin-left: -23px; + width: 100%; + padding: 10px 23px; + border-top: 1px solid #000; + border-bottom: 1px solid #000; + color: #FAFAFA; + background-image: url("../img/ui/bggray.png"); + -webkit-box-shadow: 0px 0px 10px #000 inset; + -moz-box-shadow: 0px 0px 10px #000 inset; + -ms-box-shadow: 0px 0px 10px #000 inset; + -o-box-shadow: 0px 0px 10px #000 inset; + box-shadow: 0px 0px 10px #000 inset; +} +#section-main article .markdown > div.content > pre code, #section-main article .markdown > div.content > pre pre { + margin-bottom: 0px; +} +#section-main article figure { + margin-bottom: 15px; +} +#section-main article figure figcaption { + font-size: small; + font-style: italic; + text-decoration: none; +} +#section-main article ul { + margin-top: 5px; +} +#section-main article li { + margin-bottom: 5px; +} +#section-main article a.gototop { + display: block; + width: 100%; + height: 28px; + background-image: url(../img/ui/gototop.svg); + background-position: center; + background-size: contain; + background-repeat: no-repeat; +} +#section-main article .center { + text-align: center; +} + +body[data-width=small] #section-main article { + max-width: 100%; + border-radius: 0; +} +body[data-width=small] #section-main article h1 { + border-radius: 0; +} + +.spacer { + height: 60vh; +} + +/* + +Monokai Sublime style. Derived from Monokai by noformnocontent http://nn.mit-license.org/ + +*/ +.hljs { + display: block; + overflow-x: auto; + padding: 0.5em; + background: #23241f; + -webkit-text-size-adjust: none; +} + +.hljs, +.hljs-tag, +.css .hljs-rule, +.css .hljs-value, +.aspectj .hljs-function, +.css .hljs-function .hljs-preprocessor, +.hljs-pragma { + color: #f8f8f2; +} + +.hljs-strongemphasis, +.hljs-strong, +.hljs-emphasis { + color: #a8a8a2; +} + +.hljs-bullet, +.hljs-blockquote, +.hljs-horizontal_rule, +.hljs-number, +.hljs-regexp, +.alias .hljs-keyword, +.hljs-literal, +.hljs-hexcolor { + color: #ae81ff; +} + +.hljs-tag .hljs-value, +.hljs-code, +.hljs-title, +.css .hljs-class, +.hljs-class .hljs-title:last-child { + color: #a6e22e; +} + +.hljs-link_url { + font-size: 80%; +} + +.hljs-strong, +.hljs-strongemphasis { + font-weight: bold; +} + +.hljs-emphasis, +.hljs-strongemphasis, +.hljs-class .hljs-title:last-child, +.hljs-typename { + font-style: italic; +} + +.hljs-keyword, +.ruby .hljs-class .hljs-keyword:first-child, +.ruby .hljs-function .hljs-keyword, +.hljs-function, +.hljs-change, +.hljs-winutils, +.hljs-flow, +.nginx .hljs-title, +.tex .hljs-special, +.hljs-header, +.hljs-attribute, +.hljs-symbol, +.hljs-symbol .hljs-string, +.hljs-tag .hljs-title, +.hljs-value, +.alias .hljs-keyword:first-child, +.css .hljs-tag, +.css .unit, +.css .hljs-important { + color: #f92672; +} + +.hljs-function .hljs-keyword, +.hljs-class .hljs-keyword:first-child, +.hljs-aspect .hljs-keyword:first-child, +.hljs-constant, +.hljs-typename, +.hljs-name, +.css .hljs-attribute { + color: #66d9ef; +} + +.hljs-variable, +.hljs-params, +.hljs-class .hljs-title, +.hljs-aspect .hljs-title { + color: #f8f8f2; +} + +.hljs-string, +.css .hljs-id, +.hljs-subst, +.hljs-type, +.ruby .hljs-class .hljs-parent, +.hljs-built_in, +.django .hljs-template_tag, +.django .hljs-variable, +.smalltalk .hljs-class, +.django .hljs-filter .hljs-argument, +.smalltalk .hljs-localvars, +.smalltalk .hljs-array, +.hljs-attr_selector, +.hljs-pseudo, +.hljs-addition, +.hljs-stream, +.hljs-envvar, +.apache .hljs-tag, +.apache .hljs-cbracket, +.tex .hljs-command, +.hljs-prompt, +.hljs-link_label, +.hljs-link_url { + color: #e6db74; +} + +.hljs-comment, +.hljs-annotation, +.hljs-decorator, +.hljs-pi, +.hljs-doctype, +.hljs-deletion, +.hljs-shebang, +.apache .hljs-sqbracket, +.tex .hljs-formula { + color: #75715e; +} + +.coffeescript .javascript, +.javascript .xml, +.tex .hljs-formula, +.xml .javascript, +.xml .vbscript, +.xml .css, +.xml .hljs-cdata, +.xml .php, +.php .xml { + opacity: 0.5; +} + +body { + background-image: url(../img/ui/gnome3.jpg); + background-size: 100% 100vh; + background-attachment: fixed; + font-family: "Noto Serif", serif; + font-size: 1.8rem; + color: #3A4145; +} + +/* +===================================================================== + Spécifique aux pages + */ +body[data-page=home] #section-main { + left: 230px; +} +body[data-page=home] nav#left { + left: 0px; +} +body[data-page=home] nav#left .arrow { + opacity: 0; +} + +@media screen and (min-width: 1100px) { + #section-main { + left: 230px; + } + + nav#left { + left: 0px; + } + nav#left .arrow { + opacity: 0; + } +} +body.skills #section-main article .skillexcellent, body.skills #section-main article .skillgood, body.skills #section-main article .skillmed, body.skills #section-main article .skillknown, body.skills #section-main article .skillperso, body.skills #section-main article .skillstudy { + padding: 0 3px 0 3px; + -webkit-border-radius: 5px; + -moz-border-radius: 5px; + -ms-border-radius: 5px; + -o-border-radius: 5px; + border-radius: 5px; +} +body.skills #section-main article .skillexcellent { + background: linear-gradient(#00C107, #00A806); +} +body.skills #section-main article .skillgood { + background: linear-gradient(#73C100, #64A800); +} +body.skills #section-main article .skillmed { + background: linear-gradient(#BAC100, #A2A800); +} +body.skills #section-main article .skillknown { + background: linear-gradient(#C18F00, #A87D00); +} +body.skills #section-main article .skillperso { + border-style: solid; + border-width: 2px; + border-color: #8000FF; +} +body.skills #section-main article .skillstudy { + border-style: solid; + border-width: 2px; + border-color: #9E9E9E; +} + +/*# sourceMappingURL=css/main.css.map */ diff --git a/img/3dengine-1.jpg b/img/3dengine-1.jpg new file mode 100644 index 0000000..8f6b030 Binary files /dev/null and b/img/3dengine-1.jpg differ diff --git a/img/3dengine-2.jpg b/img/3dengine-2.jpg new file mode 100644 index 0000000..89b6d3a Binary files /dev/null and b/img/3dengine-2.jpg differ diff --git a/img/akadoc-1.png b/img/akadoc-1.png new file mode 100644 index 0000000..3162ce0 Binary files /dev/null and b/img/akadoc-1.png differ diff --git a/img/akadoc-2.png b/img/akadoc-2.png new file mode 100644 index 0000000..1d7e230 Binary files /dev/null and b/img/akadoc-2.png differ diff --git a/img/bornearcade-1.jpg b/img/bornearcade-1.jpg new file mode 100644 index 0000000..df0f350 Binary files /dev/null and b/img/bornearcade-1.jpg differ diff --git a/img/bornearcade-2.jpg b/img/bornearcade-2.jpg new file mode 100644 index 0000000..f47522f Binary files /dev/null and b/img/bornearcade-2.jpg differ diff --git a/img/bornearcade-3.jpg b/img/bornearcade-3.jpg new file mode 100644 index 0000000..0915c55 Binary files /dev/null and b/img/bornearcade-3.jpg differ diff --git a/img/bornearcade-4.jpg b/img/bornearcade-4.jpg new file mode 100755 index 0000000..f49e4fc Binary files /dev/null and b/img/bornearcade-4.jpg differ diff --git a/img/bornearcade-5.jpg b/img/bornearcade-5.jpg new file mode 100755 index 0000000..2f1d84d Binary files /dev/null and b/img/bornearcade-5.jpg differ diff --git a/img/burgerquizz-1.jpg b/img/burgerquizz-1.jpg new file mode 100644 index 0000000..f6aa61b Binary files /dev/null and b/img/burgerquizz-1.jpg differ diff --git a/img/burgerquizz-2.jpg b/img/burgerquizz-2.jpg new file mode 100644 index 0000000..0a665a1 Binary files /dev/null and b/img/burgerquizz-2.jpg differ diff --git a/img/clubelec-1.jpg b/img/clubelec-1.jpg new file mode 100644 index 0000000..02c252d Binary files /dev/null and b/img/clubelec-1.jpg differ diff --git a/img/clubelec-2.jpg b/img/clubelec-2.jpg new file mode 100644 index 0000000..da2db73 Binary files /dev/null and b/img/clubelec-2.jpg differ diff --git a/img/drone-1.jpg b/img/drone-1.jpg new file mode 100644 index 0000000..15477f2 Binary files /dev/null and b/img/drone-1.jpg differ diff --git a/img/drone-2.jpg b/img/drone-2.jpg new file mode 100644 index 0000000..8613414 Binary files /dev/null and b/img/drone-2.jpg differ diff --git a/img/facebook.png b/img/facebook.png new file mode 100644 index 0000000..99e1c58 Binary files /dev/null and b/img/facebook.png differ diff --git a/img/fan-controller-1.jpg b/img/fan-controller-1.jpg new file mode 100644 index 0000000..71254fd Binary files /dev/null and b/img/fan-controller-1.jpg differ diff --git a/img/fan-controller-2.jpg b/img/fan-controller-2.jpg new file mode 100644 index 0000000..3814826 Binary files /dev/null and b/img/fan-controller-2.jpg differ diff --git a/img/fan-controller-3.jpg b/img/fan-controller-3.jpg new file mode 100644 index 0000000..ab6f9da Binary files /dev/null and b/img/fan-controller-3.jpg differ diff --git a/img/fan-controller-4.png b/img/fan-controller-4.png new file mode 100644 index 0000000..5e2cf4a Binary files /dev/null and b/img/fan-controller-4.png differ diff --git a/img/genesys-1.jpg b/img/genesys-1.jpg new file mode 100644 index 0000000..50c885d Binary files /dev/null and b/img/genesys-1.jpg differ diff --git a/img/gitcourse-1.jpg b/img/gitcourse-1.jpg new file mode 100644 index 0000000..1515979 Binary files /dev/null and b/img/gitcourse-1.jpg differ diff --git a/img/github.png b/img/github.png new file mode 100644 index 0000000..a7995b3 Binary files /dev/null and b/img/github.png differ diff --git a/img/gitlab.png b/img/gitlab.png new file mode 100644 index 0000000..df1c35d Binary files /dev/null and b/img/gitlab.png differ diff --git a/img/hardenyourcode-1.jpg b/img/hardenyourcode-1.jpg new file mode 100644 index 0000000..7493571 Binary files /dev/null and b/img/hardenyourcode-1.jpg differ diff --git a/img/hardenyourcode-2.png b/img/hardenyourcode-2.png new file mode 100644 index 0000000..bf28b50 Binary files /dev/null and b/img/hardenyourcode-2.png differ diff --git a/img/hardenyourcode-3.png b/img/hardenyourcode-3.png new file mode 100644 index 0000000..e9a897c Binary files /dev/null and b/img/hardenyourcode-3.png differ diff --git a/img/lcda-1.jpg b/img/lcda-1.jpg new file mode 100644 index 0000000..cf20959 Binary files /dev/null and b/img/lcda-1.jpg differ diff --git a/img/lcda-2.jpg b/img/lcda-2.jpg new file mode 100644 index 0000000..704cc90 Binary files /dev/null and b/img/lcda-2.jpg differ diff --git a/img/lcda-3.jpg b/img/lcda-3.jpg new file mode 100644 index 0000000..0624375 Binary files /dev/null and b/img/lcda-3.jpg differ diff --git a/img/lcdaaccounts-1.jpg b/img/lcdaaccounts-1.jpg new file mode 100644 index 0000000..47cff33 Binary files /dev/null and b/img/lcdaaccounts-1.jpg differ diff --git a/img/lcdaaccounts-2.jpg b/img/lcdaaccounts-2.jpg new file mode 100644 index 0000000..7dae094 Binary files /dev/null and b/img/lcdaaccounts-2.jpg differ diff --git a/img/linkedin.png b/img/linkedin.png new file mode 100644 index 0000000..cb68e0f Binary files /dev/null and b/img/linkedin.png differ diff --git a/img/love.svg b/img/love.svg new file mode 100644 index 0000000..2b87e29 --- /dev/null +++ b/img/love.svg @@ -0,0 +1,115 @@ + + + + + + + + + + + image/svg+xml + + Favourites + + + + Luca Ferretti + + + + + + + + + + + + emblem favouries + + + + + + + + + + + + + + + + diff --git a/img/lowres/akadoc-1.png b/img/lowres/akadoc-1.png new file mode 100644 index 0000000..555d1b8 Binary files /dev/null and b/img/lowres/akadoc-1.png differ diff --git a/img/lowres/akadoc-2.png b/img/lowres/akadoc-2.png new file mode 100644 index 0000000..2e0334f Binary files /dev/null and b/img/lowres/akadoc-2.png differ diff --git a/img/lowres/burgerquizz-1.jpg b/img/lowres/burgerquizz-1.jpg new file mode 100644 index 0000000..a4506ae Binary files /dev/null and b/img/lowres/burgerquizz-1.jpg differ diff --git a/img/lowres/clubelec-1.jpg b/img/lowres/clubelec-1.jpg new file mode 100644 index 0000000..2eee4bb Binary files /dev/null and b/img/lowres/clubelec-1.jpg differ diff --git a/img/lowres/clubelec-2.jpg b/img/lowres/clubelec-2.jpg new file mode 100644 index 0000000..1afc5df Binary files /dev/null and b/img/lowres/clubelec-2.jpg differ diff --git a/img/lowres/drone-1.jpg b/img/lowres/drone-1.jpg new file mode 100644 index 0000000..4124390 Binary files /dev/null and b/img/lowres/drone-1.jpg differ diff --git a/img/lowres/drone-2.jpg b/img/lowres/drone-2.jpg new file mode 100644 index 0000000..9ec1386 Binary files /dev/null and b/img/lowres/drone-2.jpg differ diff --git a/img/lowres/fan-controller-1.jpg b/img/lowres/fan-controller-1.jpg new file mode 100644 index 0000000..92e3ede Binary files /dev/null and b/img/lowres/fan-controller-1.jpg differ diff --git a/img/lowres/fan-controller-2.jpg b/img/lowres/fan-controller-2.jpg new file mode 100644 index 0000000..40a24ae Binary files /dev/null and b/img/lowres/fan-controller-2.jpg differ diff --git a/img/lowres/fan-controller-3.jpg b/img/lowres/fan-controller-3.jpg new file mode 100644 index 0000000..0a01795 Binary files /dev/null and b/img/lowres/fan-controller-3.jpg differ diff --git a/img/lowres/fan-controller-4.png b/img/lowres/fan-controller-4.png new file mode 100644 index 0000000..c39a6b9 Binary files /dev/null and b/img/lowres/fan-controller-4.png differ diff --git a/img/lowres/lcda-1.jpg b/img/lowres/lcda-1.jpg new file mode 100644 index 0000000..c360967 Binary files /dev/null and b/img/lowres/lcda-1.jpg differ diff --git a/img/lowres/lcda-2.jpg b/img/lowres/lcda-2.jpg new file mode 100644 index 0000000..d0fab32 Binary files /dev/null and b/img/lowres/lcda-2.jpg differ diff --git a/img/lowres/lcda-3.jpg b/img/lowres/lcda-3.jpg new file mode 100644 index 0000000..a250008 Binary files /dev/null and b/img/lowres/lcda-3.jpg differ diff --git a/img/lowres/lcdaaccounts-1.jpg b/img/lowres/lcdaaccounts-1.jpg new file mode 100644 index 0000000..ff7f205 Binary files /dev/null and b/img/lowres/lcdaaccounts-1.jpg differ diff --git a/img/lowres/lcdaaccounts-2.jpg b/img/lowres/lcdaaccounts-2.jpg new file mode 100644 index 0000000..53889b3 Binary files /dev/null and b/img/lowres/lcdaaccounts-2.jpg differ diff --git a/img/lowres/matrixrun-wiidesktopvr.jpg b/img/lowres/matrixrun-wiidesktopvr.jpg new file mode 100644 index 0000000..27a8a44 Binary files /dev/null and b/img/lowres/matrixrun-wiidesktopvr.jpg differ diff --git a/img/lowres/microtransat-1.jpg b/img/lowres/microtransat-1.jpg new file mode 100644 index 0000000..52e93e9 Binary files /dev/null and b/img/lowres/microtransat-1.jpg differ diff --git a/img/lowres/nwn2-1.jpg b/img/lowres/nwn2-1.jpg new file mode 100644 index 0000000..8ac1fb5 Binary files /dev/null and b/img/lowres/nwn2-1.jpg differ diff --git a/img/lowres/nwn2-2.jpg b/img/lowres/nwn2-2.jpg new file mode 100644 index 0000000..9d0874b Binary files /dev/null and b/img/lowres/nwn2-2.jpg differ diff --git a/img/lowres/nwn2-3.jpg b/img/lowres/nwn2-3.jpg new file mode 100644 index 0000000..0ef2833 Binary files /dev/null and b/img/lowres/nwn2-3.jpg differ diff --git a/img/lowres/rhumroll-1.jpg b/img/lowres/rhumroll-1.jpg new file mode 100644 index 0000000..45908d1 Binary files /dev/null and b/img/lowres/rhumroll-1.jpg differ diff --git a/img/ludum32-1.jpg b/img/ludum32-1.jpg new file mode 100644 index 0000000..ee2c672 Binary files /dev/null and b/img/ludum32-1.jpg differ diff --git a/img/ludum32-2.jpg b/img/ludum32-2.jpg new file mode 100644 index 0000000..46b51c0 Binary files /dev/null and b/img/ludum32-2.jpg differ diff --git a/img/mail.png b/img/mail.png new file mode 100644 index 0000000..0d77718 Binary files /dev/null and b/img/mail.png differ diff --git a/img/matrixrun.svg b/img/matrixrun.svg new file mode 100644 index 0000000..e12b6a2 --- /dev/null +++ b/img/matrixrun.svg @@ -0,0 +1,286 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + Mat R + uN + iX + + + + + + diff --git a/img/me.png b/img/me.png new file mode 100644 index 0000000..1c132fd Binary files /dev/null and b/img/me.png differ diff --git a/img/microtransat-1.jpg b/img/microtransat-1.jpg new file mode 100644 index 0000000..7e9b921 Binary files /dev/null and b/img/microtransat-1.jpg differ diff --git a/img/microtransat-2.jpg b/img/microtransat-2.jpg new file mode 100755 index 0000000..6530248 Binary files /dev/null and b/img/microtransat-2.jpg differ diff --git a/img/microtransat-3.jpg b/img/microtransat-3.jpg new file mode 100755 index 0000000..e13ee5d Binary files /dev/null and b/img/microtransat-3.jpg differ diff --git a/img/microtransat-4.jpg b/img/microtransat-4.jpg new file mode 100755 index 0000000..54a8cc0 Binary files /dev/null and b/img/microtransat-4.jpg differ diff --git a/img/navalwars-1.jpg b/img/navalwars-1.jpg new file mode 100644 index 0000000..bfda92a Binary files /dev/null and b/img/navalwars-1.jpg differ diff --git a/img/navalwars-2.jpg b/img/navalwars-2.jpg new file mode 100644 index 0000000..18929fd Binary files /dev/null and b/img/navalwars-2.jpg differ diff --git a/img/nwn2-1.jpg b/img/nwn2-1.jpg new file mode 100644 index 0000000..4dea577 Binary files /dev/null and b/img/nwn2-1.jpg differ diff --git a/img/nwn2-2.jpg b/img/nwn2-2.jpg new file mode 100644 index 0000000..d8dc323 Binary files /dev/null and b/img/nwn2-2.jpg differ diff --git a/img/nwn2-3.jpg b/img/nwn2-3.jpg new file mode 100644 index 0000000..c2b916f Binary files /dev/null and b/img/nwn2-3.jpg differ diff --git a/img/nwngui-1.jpg b/img/nwngui-1.jpg new file mode 100644 index 0000000..8e25377 Binary files /dev/null and b/img/nwngui-1.jpg differ diff --git a/img/nwngui-2.jpg b/img/nwngui-2.jpg new file mode 100644 index 0000000..9d4a15c Binary files /dev/null and b/img/nwngui-2.jpg differ diff --git a/img/nwnlog-1.png b/img/nwnlog-1.png new file mode 100644 index 0000000..37e26db Binary files /dev/null and b/img/nwnlog-1.png differ diff --git a/img/nwnlog-2.png b/img/nwnlog-2.png new file mode 100644 index 0000000..51e87f4 Binary files /dev/null and b/img/nwnlog-2.png differ diff --git a/img/perso.svg b/img/perso.svg new file mode 100644 index 0000000..f80201e --- /dev/null +++ b/img/perso.svg @@ -0,0 +1,141 @@ + + + + + + + + + + + + + + + image/svg+xml + + User + June 2007 + + + Luca Ferretti <elle.uca@libero.it> + + + + + user + person + contact + + + + + + + + + + + + + + + + + + + + + diff --git a/img/rhumroll-1.jpg b/img/rhumroll-1.jpg new file mode 100644 index 0000000..abcf175 Binary files /dev/null and b/img/rhumroll-1.jpg differ diff --git a/img/school.svg b/img/school.svg new file mode 100644 index 0000000..c6e9943 --- /dev/null +++ b/img/school.svg @@ -0,0 +1,106 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + diff --git a/img/served-1.png b/img/served-1.png new file mode 100644 index 0000000..0eb0ac9 Binary files /dev/null and b/img/served-1.png differ diff --git a/img/served-2.png b/img/served-2.png new file mode 100644 index 0000000..04a03da Binary files /dev/null and b/img/served-2.png differ diff --git a/img/served-3.png b/img/served-3.png new file mode 100644 index 0000000..fa29e77 Binary files /dev/null and b/img/served-3.png differ diff --git a/img/thales-1.jpg b/img/thales-1.jpg new file mode 100644 index 0000000..f6d56f5 Binary files /dev/null and b/img/thales-1.jpg differ diff --git a/img/twitter.png b/img/twitter.png new file mode 100644 index 0000000..df64577 Binary files /dev/null and b/img/twitter.png differ diff --git a/img/ui/arrowleft.svg b/img/ui/arrowleft.svg new file mode 100644 index 0000000..561cc12 --- /dev/null +++ b/img/ui/arrowleft.svg @@ -0,0 +1,75 @@ + + + + + + + + + + + + image/svg+xml + + + + + + + + diff --git a/img/ui/arrowtop.svg b/img/ui/arrowtop.svg new file mode 100644 index 0000000..e821924 --- /dev/null +++ b/img/ui/arrowtop.svg @@ -0,0 +1,75 @@ + + + + + + + + + + + + image/svg+xml + + + + + + + + diff --git a/img/ui/bgdark.png b/img/ui/bgdark.png new file mode 100644 index 0000000..947b448 Binary files /dev/null and b/img/ui/bgdark.png differ diff --git a/img/ui/bggray.png b/img/ui/bggray.png new file mode 100644 index 0000000..1c67bf3 Binary files /dev/null and b/img/ui/bggray.png differ diff --git a/img/ui/close.png.suppr b/img/ui/close.png.suppr new file mode 100644 index 0000000..20baa1d Binary files /dev/null and b/img/ui/close.png.suppr differ diff --git a/img/ui/download.svg b/img/ui/download.svg new file mode 100644 index 0000000..7c0e17e --- /dev/null +++ b/img/ui/download.svg @@ -0,0 +1,112 @@ + + + + + + + + + + image/svg+xml + + + + + Luca Ferretti + + + + + emblem download + + + + + + + + + + + + + + + + + + + + diff --git a/img/ui/gnome3.jpg b/img/ui/gnome3.jpg new file mode 100644 index 0000000..4eb1aaf Binary files /dev/null and b/img/ui/gnome3.jpg differ diff --git a/img/ui/gototop.svg b/img/ui/gototop.svg new file mode 100644 index 0000000..a069566 --- /dev/null +++ b/img/ui/gototop.svg @@ -0,0 +1,75 @@ + + + + + + + + + + + + image/svg+xml + + + + + + + + diff --git a/img/ui/loading.gif.suppr b/img/ui/loading.gif.suppr new file mode 100644 index 0000000..5087c2a Binary files /dev/null and b/img/ui/loading.gif.suppr differ diff --git a/img/ui/next.png.suppr b/img/ui/next.png.suppr new file mode 100644 index 0000000..08365ac Binary files /dev/null and b/img/ui/next.png.suppr differ diff --git a/img/ui/prev.png.suppr b/img/ui/prev.png.suppr new file mode 100644 index 0000000..329fa98 Binary files /dev/null and b/img/ui/prev.png.suppr differ diff --git a/img/ui/stripes.png b/img/ui/stripes.png new file mode 100644 index 0000000..aa92f4c Binary files /dev/null and b/img/ui/stripes.png differ diff --git a/index.html b/index.html new file mode 100644 index 0000000..5f9ce07 --- /dev/null +++ b/index.html @@ -0,0 +1,56 @@ + + + + + + + + + Thibaut CHARLES - Portfolio + + + + + + + + + + + + +
Thibaut CHARLES
Engineer
Software-Linux-Robotics
+
+
+ + + + + + + + diff --git a/js/ChartNew.js b/js/ChartNew.js new file mode 100644 index 0000000..849bcc3 --- /dev/null +++ b/js/ChartNew.js @@ -0,0 +1 @@ +function roundToWithThousands(e,t,n){var r=1*unFormat(e,t);if(typeof r=="number"&&n!="none"){if(n<=0){var i=-n;r=+(Math.round(r+"e+"+i)+"e-"+i)}else{var i=n;var s="1e+"+i;value=+Math.round(r/s)*s}}r=fmtChartJS(e,r,"none");return r}function unFormat(e,t){if((e.decimalSeparator!="."||e.thousandSeparator!="")&&typeof t=="string"){var n=""+t;if(e.thousandSeparator!=""){while(n.indexOf(e.thousandSeparator)>=0)n=""+n.replace(e.thousandSeparator,"")}if(e.decimalSeparator!=".")n=""+n.replace(e.decimalSeparator,".");return 1*n}else{return t}}function fmtChartJSPerso(e,t,n){switch(n){case"SampleJS_Format":if(typeof t=="number")return_value="My Format : "+t.toString()+" $";else return_value=t+"XX";break;case"Change_Month":if(typeof t=="string")return_value=t.toString()+" 2014";else return_value=t.toString()+"YY";break;default:return_value=t;break}return return_value}function fmtChartJS(e,t,n){var r;if(n=="notformatted"){r=t}else if(n=="none"&&typeof t=="number"){if(e.roundNumber!="none"){if(e.roundNumber<=0){var i=-e.roundNumber;t=+(Math.round(t+"e+"+i)+"e-"+i)}else{var i=e.roundNumber;var s="1e+"+i;t=+Math.round(t/s)*s}}if(e.decimalSeparator!="."||e.thousandSeparator!=""){r=t.toString().replace(/\./g,e.decimalSeparator);if(e.thousandSeparator!=""){var o=r;var u="";var a=o.indexOf(e.decimalSeparator);if(a>=0){u=o.substring(a+1,o.length);u=u.split("").reverse().join("");o=o.substring(0,a)}o=o.toString().replace(/\B(?=(\d{3})+(?!\d))/g,e.thousandSeparator);u=u.split("").reverse().join("");r=o;if(u!="")r=r+e.decimalSeparator+u}}else r=t}else if(n!="none"&&n!="notformatted"){r=fmtChartJSPerso(e,t,n)}else{r=t}return r}function tmplbis(e,t){var n=!/\W/.test(e)?cachebis[e]=cachebis[e]||tmplbis(document.getElementById(e).innerHTML):new Function("obj","var p=[],print=function(){p.push.apply(p,arguments);};"+"with(obj){p.push('"+e.replace(/[\r\t\n]/g," ").split("<%").join(" ").replace(/((^|%>)[^\t]*)'/g,"$1\r").replace(/\t=(.*?)%>/g,"',$1,'").split(" ").join("');").split("%>").join("p.push('").split("\r").join("\\'")+"');}return p.join('');");return t?n(t):n}function createCursorDiv(){if(cursorDivCreated==false){var e=document.createElement("divCursor");e.id="divCursor";e.style.position="absolute";document.body.appendChild(e);cursorDivCreated=true}}function checkBrowser(){this.ver=navigator.appVersion;this.dom=document.getElementById?1:0;this.ie5=this.ver.indexOf("MSIE 5")>-1&&this.dom?1:0;this.ie4=document.all&&!this.dom?1:0;this.ns5=this.dom&&parseInt(this.ver)>=5?1:0;this.ns4=document.layers&&!this.dom?1:0;this.bw=this.ie5||this.ie4||this.ns4||this.ns5;return this}function cursorInit(){scrolled=bw.ns4||bw.ns5?"window.pageYOffset":"document.body.scrollTop";if(bw.ns4)document.captureEvents(Event.MOUSEMOVE)}function makeCursorObj(obj,nest){createCursorDiv();nest=!nest?"":"document."+nest+".";this.css=bw.dom?document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+"document.layers."+obj):0;this.moveIt=b_moveIt;cursorInit();return this}function b_moveIt(e,t){this.x=e;this.y=t;this.css.left=this.x+"px";this.css.top=this.y+"px"}function isIE(){var e=navigator.userAgent.toLowerCase();return e.indexOf("msie")!=-1?parseInt(e.split("msie")[1]):false}function mergeChartConfig(e,t){var n={};for(var r in e){n[r]=e[r]}for(var r in t){n[r]=t[r]}return n}function sleep(e){var t=new Date;t.setTime(t.getTime()+e);while((new Date).getTime()=window.pageXOffset&&t+e.width/2<=window.pageXOffset+window.innerWidth&&n+e.height/2>=window.pageYOffset&&n+e.height/2<=window.pageYOffset+window.innerHeight)return true;else return false}function scrollFunction(){for(var e=0;ejsGraphAnnotate[ctx.ChartNewId][i][3]&&distance2*Math.PI){angle-=2*Math.PI}if(anglejsGraphAnnotate[ctx.ChartNewId][i][5]&&anglejsGraphAnnotate[ctx.ChartNewId][i][5]-2*Math.PI&&anglejsGraphAnnotate[ctx.ChartNewId][i][5]+2*Math.PI&&anglejsGraphAnnotate[ctx.ChartNewId][i][1]&&canvas_pos.xjsGraphAnnotate[ctx.ChartNewId][i][4]){v1=fmtChartJS(config,jsGraphAnnotate[ctx.ChartNewId][i][5],config.fmtV1);v2=fmtChartJS(config,jsGraphAnnotate[ctx.ChartNewId][i][6],config.fmtV2);v3=fmtChartJS(config,jsGraphAnnotate[ctx.ChartNewId][i][7],config.fmtV3);v4=fmtChartJS(config,jsGraphAnnotate[ctx.ChartNewId][i][8],config.fmtV4);v5=fmtChartJS(config,jsGraphAnnotate[ctx.ChartNewId][i][9],config.fmtV5);v6=fmtChartJS(config,100*jsGraphAnnotate[ctx.ChartNewId][i][7]/jsGraphAnnotate[ctx.ChartNewId][i][9],config.fmtV6);v6=roundToWithThousands(config,v6,config.roundPct);v7=fmtChartJS(config,jsGraphAnnotate[ctx.ChartNewId][i][1],config.fmtV7);v8=fmtChartJS(config,jsGraphAnnotate[ctx.ChartNewId][i][2],config.fmtV8);v9=fmtChartJS(config,jsGraphAnnotate[ctx.ChartNewId][i][3],config.fmtV9);v10=fmtChartJS(config,jsGraphAnnotate[ctx.ChartNewId][i][4],config.fmtV10);v11=fmtChartJS(config,jsGraphAnnotate[ctx.ChartNewId][i][10],config.fmtV11);v12=fmtChartJS(config,jsGraphAnnotate[ctx.ChartNewId][i][11],config.fmtV12);graphPosX=canvas_pos.x;graphPosY=canvas_pos.y;dispString=tmplbis(config.annotateLabel,{config:config,v1:v1,v2:v2,v3:v3,v4:v4,v5:v5,v6:v6,v7:v7,v8:v8,v9:v9,v10:v10,v11:v11,v12:v12,graphPosX:graphPosX,graphPosY:graphPosY});annotateDIV.innerHTML=dispString;show=true;x=bw.ns4||bw.ns5?event.pageX:event.x;y=bw.ns4||bw.ns5?event.pageY:event.y;if(bw.ie4||bw.ie5)y=y+eval(scrolled);oCursor.moveIt(x+fromLeft,y+fromTop)}}else if(jsGraphAnnotate[ctx.ChartNewId][i][0]=="POINT"){distance=Math.sqrt((canvas_pos.x-jsGraphAnnotate[ctx.ChartNewId][i][1])*(canvas_pos.x-jsGraphAnnotate[ctx.ChartNewId][i][1])+(canvas_pos.y-jsGraphAnnotate[ctx.ChartNewId][i][2])*(canvas_pos.y-jsGraphAnnotate[ctx.ChartNewId][i][2]));if(distance<10){v1=fmtChartJS(config,jsGraphAnnotate[ctx.ChartNewId][i][3],config.fmtV1);v2=fmtChartJS(config,jsGraphAnnotate[ctx.ChartNewId][i][4],config.fmtV2);v3=fmtChartJS(config,jsGraphAnnotate[ctx.ChartNewId][i][5],config.fmtV3);v4=fmtChartJS(config,jsGraphAnnotate[ctx.ChartNewId][i][6],config.fmtV4);v5=fmtChartJS(config,jsGraphAnnotate[ctx.ChartNewId][i][7],config.fmtV5);v6=fmtChartJS(config,jsGraphAnnotate[ctx.ChartNewId][i][8],config.fmtV6);v7=fmtChartJS(config,jsGraphAnnotate[ctx.ChartNewId][i][9],config.fmtV7);v8=fmtChartJS(config,100*jsGraphAnnotate[ctx.ChartNewId][i][5]/jsGraphAnnotate[ctx.ChartNewId][i][9],config.fmtV8);v8=roundToWithThousands(config,v8,config.roundPct);v9=fmtChartJS(config,jsGraphAnnotate[ctx.ChartNewId][i][1],config.fmtV9);v10=fmtChartJS(config,jsGraphAnnotate[ctx.ChartNewId][i][2],config.fmtV10);v11=fmtChartJS(config,jsGraphAnnotate[ctx.ChartNewId][i][10],config.fmtV11);v12=fmtChartJS(config,jsGraphAnnotate[ctx.ChartNewId][i][11],config.fmtV12);graphPosX=canvas_pos.x;graphPosY=canvas_pos.y;dispString=tmplbis(config.annotateLabel,{config:config,v1:v1,v2:v2,v3:v3,v4:v4,v5:v5,v6:v6,v7:v7,v8:v8,v9:v9,v10:v10,v11:v11,v12:v12,graphPosX:graphPosX,graphPosY:graphPosY});annotateDIV.innerHTML=dispString;show=true;x=bw.ns4||bw.ns5?event.pageX:event.x;y=bw.ns4||bw.ns5?event.pageY:event.y;if(bw.ie4||bw.ie5)y=y+eval(scrolled);oCursor.moveIt(x+fromLeft,y+fromTop)}}annotateDIV.style.display=show?"":"none"}}var charJSPersonnalDefaultOptions={};var charJSPersonnalDefaultOptionsLine={};var charJSPersonnalDefaultOptionsRadar={};var charJSPersonnalDefaultOptionsPolarArea={};var charJSPersonnalDefaultOptionsPie={};var charJSPersonnalDefaultOptionsDoughnut={};var charJSPersonnalDefaultOptionsBar={};var charJSPersonnalDefaultOptionsStackedBar={};var charJSPersonnalDefaultOptionsHorizontalBar={};var charJSPersonnalDefaultOptionsHorizontalStackedBar={};var cachebis={};cursorDivCreated=false;bw=new checkBrowser;fromLeft=10;fromTop=10;if(typeof String.prototype.trim!=="function"){String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}}var dynamicDisplay=new Array;var dynamicDisplayList=new Array;var jsGraphAnnotate=new Array;window.Chart=function(e){function v(e,t,n,r){if(!e.logarithmic){var i=n.steps*n.stepValue;var s=t-n.graphMin;var o=N(s/i,1,0);return r*n.steps*o}else{return N(_(t)*r-b(n.graphMin)*r,undefined,0)}}function m(e,t,r,i,s,o,u,a,f,l,c,h,p){function x(){var n=e.animation?N(b(w),null,0):1;if(1*d>=1*N(e.animationSteps,Number.MAX_VALUE,1)||e.animation==false)n=1;else if(n>=1)n=.9999;if(!(isIE()<9&&isIE()!=false)&&e.clearRect)i.clearRect(s,o,u,a);O(i,e,f,l,c,h,false,p,n,d);if(e.scaleOverlay){r(n);t()}else{t();r(n)}O(i,e,f,l,c,h,true,p,n,d)}function T(){d+=m;w+=m*y;if(d==e.animationSteps||e.animation==false)w=1;else if(w>=1)w=.999;x();if(m==-1&&d<=E){if(typeof e.onAnimationComplete=="function")e.onAnimationComplete(i,e,p,0,v);m=1;g(T)}else if(w1)e.animation.StartValue=0;if(e.animationStopValue<0||e.animationStopValue>1)e.animation.StopValue=1;if(e.animationStopValue0&&e.animationStartValue<=1){while(wt){if(lt){return t}}if(T(n)){if(e)[^\t]*)'/g,"$1\r").replace(/\t=(.*?)%>/g,"',$1,'").split(" ").join("');").split("%>").join("p.push('").split("\r").join("\\'")+"');}return p.join('');");return t?n(t):n}function O(t,n,r,i,s,o,u,a,f,l){var c,h,p,d,v,m;for(c=0;cP?q:P}}widestYLabel=1;if(a){if(s!=null){n.font=t.scaleFontStyle+" "+t.scaleFontSize+"px "+t.scaleFontFamily;for(var I=s.length-1;I>=0;I--){if(typeof s[I]=="string"){if(s[I].trim()!=""){var q=n.measureText(fmtChartJS(t,s[I],t.fmtYLabel)).width;widestYLabel=q>widestYLabel?q:widestYLabel}}}}}H=c+t.spaceLeft;B=c+t.spaceRight;if(a){if(typeof t.yAxisLabel!="undefined"){if(t.yAxisLabel.trim()!=""){h=t.yAxisFontSize+t.yAxisLabelSpaceLeft+t.yAxisLabelSpaceRight;yAxisLabelPosLeft=c+t.spaceLeft+t.yAxisLabelSpaceLeft+t.yAxisFontSize;yAxisLabelPosRight=i-c-t.spaceRight-t.yAxisLabelSpaceLeft-t.yAxisFontSize}}if(t.yAxisLeft){if(u==false)H=c+t.spaceLeft+h+widestYLabel+t.yAxisSpaceLeft+t.yAxisSpaceRight;else H=c+t.spaceLeft+h+P+t.yAxisSpaceLeft+t.yAxisSpaceRight}if(t.yAxisRight){if(u==false)B=c+t.spaceRight+h+widestYLabel+t.yAxisSpaceLeft+t.yAxisSpaceRight;else B=c+t.spaceRight+h+P+t.yAxisSpaceLeft+t.yAxisSpaceRight}}availableWidth=i-H-B;if(t.graphTitle.trim()!=""){d=t.graphTitleFontSize+t.graphTitleSpaceBefore+t.graphTitleSpaceAfter;v=c+t.spaceTop+d-t.graphTitleSpaceAfter}if(t.graphSubTitle.trim()!=""){m=t.graphSubTitleFontSize+t.graphSubTitleSpaceBefore+t.graphSubTitleSpaceAfter;g=c+t.spaceTop+d+m-t.graphSubTitleSpaceAfter}if(a){if(typeof t.yAxisUnit!="undefined"){if(t.yAxisUnit.trim()!=""){w=t.yAxisUnitFontSize+t.yAxisUnitSpaceBefore+t.yAxisUnitSpaceAfter;S=c+t.spaceTop+d+m+w-t.yAxisUnitSpaceAfter}}}topNotUsableSize=c+t.spaceTop+d+m+w+t.graphSpaceBefore;if(typeof t.footNote!="undefined"){if(t.footNote.trim()!=""){y=t.footNoteFontSize+t.footNoteSpaceBefore+t.footNoteSpaceAfter;b=r-t.spaceBottom-c-t.footNoteSpaceAfter}}if(typeof t.legend!="undefined"){if(t.legend==true){n.font=t.legendFontStyle+" "+t.legendFontSize+"px "+t.legendFontFamily;if(f){for(var I=e.datasets.length-1;I>=0;I--){if(typeof e.datasets[I].title=="string"){if(e.datasets[I].title.trim()!=""){T++;var q=n.measureText(fmtChartJS(t,e.datasets[I].title,t.fmtLegend)).width;x=q>x?q:x}}}}else{for(var I=e.length-1;I>=0;I--){if(typeof e[I].title=="string"){if(e[I].title.trim()!=""){T++;var q=n.measureText(fmtChartJS(t,e[I].title,t.fmtLegend)).width;x=q>x?q:x}}}}if(T>1){x+=t.legendBlockSize+t.legendSpaceBetweenBoxAndText;availableLegendWidth=i-t.spaceLeft-t.spaceRight-2*c-t.legendSpaceLeftText-t.legendSpaceRightText;if(t.legendBorders==true)availableLegendWidth-=2*t.legendBordersWidth-t.legendBordersSpaceLeft-t.legendBordersSpaceRight;maxLegendOnLine=Math.floor((availableLegendWidth+t.legendSpaceBetweenTextHorizontal)/(x+t.legendSpaceBetweenTextHorizontal));N=Math.ceil(T/maxLegendOnLine);C=Math.ceil(T/N);k=N*(t.legendFontSize+t.legendSpaceBetweenTextVertical)-t.legendSpaceBetweenTextVertical+t.legendSpaceBeforeText+t.legendSpaceAfterText;A=r-c-t.spaceBottom-y-k+t.legendSpaceBeforeText+t.legendFontSize;L=t.spaceLeft+(i-t.spaceLeft-t.spaceRight-C*(x+t.legendSpaceBetweenTextHorizontal)+t.legendSpaceBetweenTextHorizontal)/2;if(t.legendBorders==true){k+=2*t.legendBordersWidth+t.legendBordersSpaceBefore+t.legendBordersSpaceAfter;A-=t.legendBordersWidth+t.legendBordersSpaceAfter;M=Math.floor(r-c-t.spaceBottom-y-k+t.legendBordersWidth/2+t.legendBordersSpaceBefore);O=Math.floor(L-t.legendSpaceLeftText-t.legendBordersWidth/2);legendBorderHeight=Math.ceil(k-t.legendBordersWidth)-t.legendBordersSpaceBefore-t.legendBordersSpaceAfter;legendBorderWidth=Math.ceil(C*(x+t.legendSpaceBetweenTextHorizontal))-t.legendSpaceBetweenTextHorizontal+t.legendBordersWidth+t.legendSpaceRightText+t.legendSpaceLeftText}}}}if(a){if(typeof t.xAxisLabel!="undefined"){if(t.xAxisLabel.trim()!=""){_=t.xAxisFontSize+t.xAxisLabelSpaceBefore+t.xAxisLabelSpaceAfter;xAxisLabelPos=r-c-t.spaceBottom-y-k-t.xAxisLabelSpaceAfter}}}xLabelWidth=0;if(a&&(t.xAxisBottom||t.xAxisTop)){if(u==false){widestLabel=P;nblab=e.labels.length}else{widestLabel=widestYLabel;nblab=s.length}if(t.rotateLabels=="smart"){j=0;if((availableWidth+t.xAxisSpaceBetweenLabels)/nblab180)j=180}if(j>90)j+=180;D=Math.abs(Math.sin(j*Math.PI/180)*widestLabel)+Math.abs(Math.sin((j+90)*Math.PI/180)*t.scaleFontSize)+t.xAxisSpaceBefore+t.xAxisSpaceAfter;F=r-c-t.spaceBottom-y-k-_-(D-t.xAxisSpaceBefore)-t.graphSpaceAfter;xLabelWidth=Math.abs(Math.cos(j*Math.PI/180)*widestLabel)+Math.abs(Math.cos((j+90)*Math.PI/180)*t.scaleFontSize);H=E([H,c+t.spaceLeft+xLabelWidth/2]);B=E([B,c+t.spaceRight+xLabelWidth/2]);availableWidth=i-H-B}if(t.xAxisBottom){bottomNotUsableHeightWithoutXLabels=c+t.spaceBottom+y+k+_;bottomNotUsableHeightWithXLabels=bottomNotUsableHeightWithoutXLabels+D+t.graphSpaceAfter;availableHeight=r-topNotUsableSize-bottomNotUsableHeightWithXLabels}else{bottomNotUsableHeightWithoutXLabels=c+t.spaceBottom+y+k+_;bottomNotUsableHeightWithXLabels=bottomNotUsableHeightWithoutXLabels+t.graphSpaceAfter;availableHeight=r-topNotUsableSize-bottomNotUsableHeightWithXLabels}if(c>0){n.save();n.beginPath();n.lineWidth=2*c;n.strokeStyle=t.canvasBordersColor;n.moveTo(0,0);n.lineTo(0,r);n.lineTo(i,r);n.lineTo(i,0);n.lineTo(0,0);n.stroke();n.restore()}if(d>0){n.save();n.beginPath();n.font=t.graphTitleFontStyle+" "+t.graphTitleFontSize+"px "+t.graphTitleFontFamily;n.fillStyle=t.graphTitleFontColor;n.textAlign="center";n.textBaseline="bottom";n.translate(t.spaceLeft+(i-t.spaceLeft-t.spaceRight)/2,v);n.fillText(t.graphTitle,0,0);n.stroke();n.restore()}if(m>0){n.save();n.beginPath();n.font=t.graphSubTitleFontStyle+" "+t.graphSubTitleFontSize+"px "+t.graphSubTitleFontFamily;n.fillStyle=t.graphSubTitleFontColor;n.textAlign="center";n.textBaseline="bottom";n.translate(t.spaceLeft+(i-t.spaceLeft-t.spaceRight)/2,g);n.fillText(t.graphSubTitle,0,0);n.stroke();n.restore()}if(w>0){if(t.yAxisLeft){n.save();n.beginPath();n.font=t.yAxisUnitFontStyle+" "+t.yAxisUnitFontSize+"px "+t.yAxisUnitFontFamily;n.fillStyle=t.yAxisUnitFontColor;n.textAlign="center";n.textBaseline="bottom";n.translate(H,S);n.fillText(t.yAxisUnit,0,0);n.stroke();n.restore()}if(t.yAxisRight){n.save();n.beginPath();n.font=t.yAxisUnitFontStyle+" "+t.yAxisUnitFontSize+"px "+t.yAxisUnitFontFamily;n.fillStyle=t.yAxisUnitFontColor;n.textAlign="center";n.textBaseline="bottom";n.translate(i-B,S);n.fillText(t.yAxisUnit,0,0);n.stroke();n.restore()}}if(h>0){if(t.yAxisLeft){n.save();n.beginPath();n.font=t.yAxisFontStyle+" "+t.yAxisFontSize+"px "+t.yAxisFontFamily;n.fillStyle=t.yAxisFontColor;n.textAlign="center";n.textBaseline="bottom";n.translate(yAxisLabelPosLeft,topNotUsableSize+availableHeight/2);n.rotate(-(90*(Math.PI/180)));n.fillText(t.yAxisLabel,0,0);n.stroke();n.restore()}if(t.yAxisRight){n.save();n.beginPath();n.font=t.yAxisFontStyle+" "+t.yAxisFontSize+"px "+t.yAxisFontFamily;n.fillStyle=t.yAxisFontColor;n.textAlign="center";n.textBaseline="bottom";n.translate(yAxisLabelPosRight,topNotUsableSize+availableHeight/2);n.rotate(+(90*(Math.PI/180)));n.fillText(t.yAxisLabel,0,0);n.stroke();n.restore()}}if(_>0){if(t.xAxisBottom){n.save();n.beginPath();n.font=t.xAxisFontStyle+" "+t.xAxisFontSize+"px "+t.xAxisFontFamily;n.fillStyle=t.xAxisFontColor;n.textAlign="center";n.textBaseline="bottom";n.translate(H+availableWidth/2,xAxisLabelPos);n.fillText(t.xAxisLabel,0,0);n.stroke();n.restore()}}if(T>1){if(t.legendBorders==true){n.save();n.beginPath();n.lineWidth=t.legendBordersWidth;n.strokeStyle=t.legendBordersColors;n.moveTo(O,M);n.lineTo(O,M+legendBorderHeight);n.lineTo(O+legendBorderWidth,M+legendBorderHeight);n.lineTo(O+legendBorderWidth,M);n.lineTo(O,M);n.lineTo(O+legendBorderWidth,M);n.lineTo(O,M);n.lineTo(O,M+legendBorderHeight);n.stroke();n.restore()}nbcols=C-1;ypos=A-(t.legendFontSize+t.legendSpaceBetweenTextVertical);xpos=0;if(f)fromi=e.datasets.length;else fromi=e.length;for(var I=fromi-1;I>=0;I--){orderi=I;if(o){if(f)orderi=e.datasets.length-I-1;else orderi=e.length-I-1}if(f)tpof=typeof e.datasets[orderi].title;else tpof=typeof e[orderi].title;if(tpof=="string"){if(f)lgtxt=fmtChartJS(t,e.datasets[orderi].title,t.fmtLegend).trim();else lgtxt=fmtChartJS(t,e[orderi].title,t.fmtLegend).trim();if(lgtxt!=""){nbcols++;if(nbcols==C){nbcols=0;xpos=L;ypos+=t.legendFontSize+t.legendSpaceBetweenTextVertical}else{xpos+=x+t.legendSpaceBetweenTextHorizontal}n.save();n.beginPath();if(f){if(typeof e.datasets[orderi].strokeColor=="string")n.strokeStyle=e.datasets[orderi].strokeColor;else n.strokeStyle=t.defaultStrokeColor}else{if(typeof e[orderi].color=="string")n.strokeStyle=e[orderi].color;else n.strokeStyle=t.defaultStrokeColor}if(l){n.lineWidth=1;n.moveTo(xpos,ypos);n.lineTo(xpos+t.legendBlockSize,ypos);n.lineTo(xpos+t.legendBlockSize,ypos-t.legendFontSize);n.lineTo(xpos,ypos-t.legendFontSize);n.lineTo(xpos,ypos);n.closePath();if(f){if(typeof e.datasets[orderi].fillColor=="string")n.fillStyle=e.datasets[orderi].fillColor;else n.fillStyle=t.defaultFillColor}else{if(typeof e[orderi].color=="string")n.fillStyle=e[orderi].color;else n.fillStyle=t.defaultFillColor}n.fill()}else{n.lineWidth=t.datasetStrokeWidth;n.moveTo(xpos+2,ypos-t.legendFontSize/2);n.lineTo(xpos+2+t.legendBlockSize,ypos-t.legendFontSize/2)}n.stroke();n.restore();n.save();n.beginPath();n.font=t.legendFontStyle+" "+t.legendFontSize+"px "+t.legendFontFamily;n.fillStyle=t.legendFontColor;n.textAlign="left";n.textBaseline="bottom";n.translate(xpos+t.legendBlockSize+t.legendSpaceBetweenBoxAndText,ypos);n.fillText(lgtxt,0,0);n.stroke();n.restore()}}}}if(t.footNote.trim()!=""){n.save();n.font=t.footNoteFontStyle+" "+t.footNoteFontSize+"px "+t.footNoteFontFamily;n.fillStyle=t.footNoteFontColor;n.textAlign="center";n.textBaseline="bottom";n.translate(H+availableWidth/2,b);n.fillText(t.footNote,0,0);n.stroke();n.restore()}clrx=H;clrwidth=availableWidth;clry=topNotUsableSize;clrheight=availableHeight;return{leftNotUsableSize:H,rightNotUsableSize:B,availableWidth:availableWidth,topNotUsableSize:topNotUsableSize,bottomNotUsableHeightWithoutXLabels:bottomNotUsableHeightWithoutXLabels,bottomNotUsableHeightWithXLabels:bottomNotUsableHeightWithXLabels,availableHeight:availableHeight,widestXLabel:P,rotateLabels:j,xLabelPos:F,clrx:clrx,clry:clry,clrwidth:clrwidth,clrheight:clrheight}}function _(e){return Math.log(e)/Math.LN10}function D(e,t){if(t.clearRect){s(e);e.clearRect(0,0,r,i)}else{s(e);e.clearRect(0,0,r,i);e.fillStyle=t.savePngBackgroundColor;e.strokeStyle=t.savePngBackgroundColor;e.beginPath();e.moveTo(0,0);e.lineTo(0,e.canvas.height);e.lineTo(e.canvas.width,e.canvas.height);e.lineTo(e.canvas.width,0);e.lineTo(0,0);e.stroke();e.fill()}}function P(e,t,n,r){if(n.annotateDisplay==true){if(cursorDivCreated==false)oCursor=new makeCursorObj("divCursor");if(isIE()<9&&isIE()!=false)e.canvas.attachEvent("on"+n.annotateFunction.split(" ")[0],function(t){if(n.annotateFunction.split(" ")[1]=="left"&&t.which==1||n.annotateFunction.split(" ")[1]=="middle"&&t.which==2||n.annotateFunction.split(" ")[1]=="right"&&t.which==3||typeof n.annotateFunction.split(" ")[1]!="string")doMouseMove(e,n,t)});else e.canvas.addEventListener(n.annotateFunction.split(" ")[0],function(t){if(n.annotateFunction.split(" ")[1]=="left"&&t.which==1||n.annotateFunction.split(" ")[1]=="middle"&&t.which==2||n.annotateFunction.split(" ")[1]=="right"&&t.which==3||typeof n.annotateFunction.split(" ")[1]!="string")doMouseMove(e,n,t)},false)}if(n.savePng){if(isIE()<9&&isIE()!=false)e.canvas.attachEvent("on"+n.savePngFunction.split(" ")[0],function(i){if(n.savePngFunction.split(" ")[1]=="left"&&i.which==1||n.savePngFunction.split(" ")[1]=="middle"&&i.which==2||n.savePngFunction.split(" ")[1]=="right"&&i.which==3||typeof n.savePngFunction.split(" ")[1]!="string")saveCanvas(e,t,n,r)});else e.canvas.addEventListener(n.savePngFunction.split(" ")[0],function(i){if(n.savePngFunction.split(" ")[1]=="left"&&i.which==1||n.savePngFunction.split(" ")[1]=="middle"&&i.which==2||n.savePngFunction.split(" ")[1]=="right"&&i.which==3||typeof n.savePngFunction.split(" ")[1]!="string")saveCanvas(e,t,n,r)},false)}}var t=this;var n={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return-1*e*(e-2)},easeInOutQuad:function(e){if((e/=1/2)<1)return 1/2*e*e;return-1/2*(--e*(e-2)-1)},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return 1*((e=e/1-1)*e*e+1)},easeInOutCubic:function(e){if((e/=1/2)<1)return 1/2*e*e*e;return 1/2*((e-=2)*e*e+2)},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return-1*((e=e/1-1)*e*e*e-1)},easeInOutQuart:function(e){if((e/=1/2)<1)return 1/2*e*e*e*e;return-1/2*((e-=2)*e*e*e-2)},easeInQuint:function(e){return 1*(e/=1)*e*e*e*e},easeOutQuint:function(e){return 1*((e=e/1-1)*e*e*e*e+1)},easeInOutQuint:function(e){if((e/=1/2)<1)return 1/2*e*e*e*e*e;return 1/2*((e-=2)*e*e*e*e+2)},easeInSine:function(e){return-1*Math.cos(e/1*(Math.PI/2))+1},easeOutSine:function(e){return 1*Math.sin(e/1*(Math.PI/2))},easeInOutSine:function(e){return-1/2*(Math.cos(Math.PI*e/1)-1)},easeInExpo:function(e){return e==0?1:1*Math.pow(2,10*(e/1-1))},easeOutExpo:function(e){return e==1?1:1*(-Math.pow(2,-10*e/1)+1)},easeInOutExpo:function(e){if(e==0)return 0;if(e==1)return 1;if((e/=1/2)<1)return 1/2*Math.pow(2,10*(e-1));return 1/2*(-Math.pow(2,-10*--e)+2)},easeInCirc:function(e){if(e>=1)return e;return-1*(Math.sqrt(1-(e/=1)*e)-1)},easeOutCirc:function(e){return 1*Math.sqrt(1-(e=e/1-1)*e)},easeInOutCirc:function(e){if((e/=1/2)<1)return-1/2*(Math.sqrt(1-e*e)-1);return 1/2*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){var t=1.70158;var n=0;var r=1;if(e==0)return 0;if((e/=1)==1)return 1;if(!n)n=1*.3;if(r",inGraphDataAlign:"off-center",inGraphDataVAlign:"off-center",inGraphDataRotate:0,inGraphDataFontFamily:"'Arial'",inGraphDataFontSize:12,inGraphDataFontStyle:"normal",inGraphDataFontColor:"#666",inGraphDataRadiusPosition:3,inGraphDataAnglePosition:2,scaleOverlay:true,scaleOverride:false,scaleSteps:null,scaleStepWidth:null,scaleStartValue:null,scaleShowLine:true,scaleLineColor:"rgba(0,0,0,.1)",scaleLineWidth:1,scaleShowLabels:true,scaleLabel:"<%=value%>",scaleFontFamily:"'Arial'",scaleFontSize:12,scaleFontStyle:"normal",scaleFontColor:"#666",scaleShowLabelBackdrop:true,scaleBackdropColor:"rgba(255,255,255,0.75)",scaleBackdropPaddingY:2,scaleBackdropPaddingX:2,segmentShowStroke:true,segmentStrokeColor:"#fff",segmentStrokeWidth:2,animation:true,animationSteps:100,animationEasing:"easeOutBounce",animateRotate:true,animateScale:false,onAnimationComplete:null,annotateLabel:"<%=(v1 == ''? '' : v1+':')+ v2 + ' (' + v6 + ' %)'%>",startAngle:90};t.PolarArea.defaults=k(t.defaults.commonOptions,t.PolarArea.defaults);t.PolarArea.defaults=k(t.PolarArea.defaults,charJSPersonnalDefaultOptions);t.PolarArea.defaults=k(t.PolarArea.defaults,charJSPersonnalDefaultOptionsPolarArea);var i=r?k(t.PolarArea.defaults,r):t.PolarArea.defaults;return new o(n,i,e)};this.Radar=function(n,r){t.Radar.defaults={inGraphDataShow:false,inGraphDataPaddingRadius:5,inGraphDataTmpl:"<%=v3%>",inGraphDataAlign:"off-center",inGraphDataVAlign:"off-center",inGraphDataRotate:0,inGraphDataFontFamily:"'Arial'",inGraphDataFontSize:12,inGraphDataFontStyle:"normal",inGraphDataFontColor:"#666",inGraphDataRadiusPosition:3,scaleOverlay:false,scaleOverride:false,scaleSteps:null,scaleStepWidth:null,scaleStartValue:null,scaleShowLine:true,scaleLineColor:"rgba(0,0,0,.1)",scaleLineWidth:1,scaleShowLabels:false,scaleLabel:"<%=value%>",scaleFontFamily:"'Arial'",scaleFontSize:12,scaleFontStyle:"normal",scaleFontColor:"#666",scaleShowLabelBackdrop:true,scaleBackdropColor:"rgba(255,255,255,0.75)",scaleBackdropPaddingY:2,scaleBackdropPaddingX:2,angleShowLineOut:true,angleLineColor:"rgba(0,0,0,.1)",angleLineWidth:1,pointLabelFontFamily:"'Arial'",pointLabelFontStyle:"normal",pointLabelFontSize:12,pointLabelFontColor:"#666",pointDot:true,pointDotRadius:3,pointDotStrokeWidth:1,datasetFill:true,datasetStrokeWidth:2,animation:true,animationSteps:60,animationEasing:"easeOutQuart",onAnimationComplete:null,annotateLabel:"<%=(v1 == '' ? '' : v1) + (v1!='' && v2 !='' ? ' - ' : '')+(v2 == '' ? '' : v2)+(v1!='' || v2 !='' ? ':' : '') + v3%>",startAngle:90,graphMaximized:false};t.Radar.defaults=k(t.defaults.commonOptions,t.Radar.defaults);t.Radar.defaults=k(t.Radar.defaults,charJSPersonnalDefaultOptions);t.Radar.defaults=k(t.Radar.defaults,charJSPersonnalDefaultOptionsRadar);var i=r?k(t.Radar.defaults,r):t.Radar.defaults;return new u(n,i,e)};this.Pie=function(n,r){t.Pie.defaults={inGraphDataShow:false,inGraphDataPaddingRadius:5,inGraphDataPaddingAngle:0,inGraphDataTmpl:"<%=(v1 == ''? '' : v1+':')+ v2 + ' (' + v6 + ' %)'%>",inGraphDataAlign:"off-center",inGraphDataVAlign:"off-center",inGraphDataRotate:0,inGraphDataFontFamily:"'Arial'",inGraphDataFontSize:12,inGraphDataFontStyle:"normal",inGraphDataFontColor:"#666",inGraphDataRadiusPosition:3,inGraphDataAnglePosition:2,segmentShowStroke:true,segmentStrokeColor:"#fff",segmentStrokeWidth:2,animation:true,animationSteps:100,animationEasing:"easeOutBounce",animateRotate:true,animateScale:false,onAnimationComplete:null,annotateLabel:"<%=(v1 == ''? '' : v1+':')+ v2 + ' (' + v6 + ' %)'%>",startAngle:90,radiusScale:1};t.Pie.defaults=k(t.defaults.commonOptions,t.Pie.defaults);t.Pie.defaults=k(t.Pie.defaults,charJSPersonnalDefaultOptions);t.Pie.defaults=k(t.Pie.defaults,charJSPersonnalDefaultOptionsPie);var i=r?k(t.Pie.defaults,r):t.Pie.defaults;return new a(n,i,e)};this.Doughnut=function(n,r){t.Doughnut.defaults={inGraphDataShow:false,inGraphDataPaddingRadius:5,inGraphDataPaddingAngle:0,inGraphDataTmpl:"<%=(v1 == ''? '' : v1+':')+ v2 + ' (' + v6 + ' %)'%>",inGraphDataAlign:"off-center",inGraphDataVAlign:"off-center",inGraphDataRotate:0,inGraphDataFontFamily:"'Arial'",inGraphDataFontSize:12,inGraphDataFontStyle:"normal",inGraphDataFontColor:"#666",inGraphDataRadiusPosition:3,inGraphDataAnglePosition:2,segmentShowStroke:true,segmentStrokeColor:"#fff",segmentStrokeWidth:2,percentageInnerCutout:50,animation:true,animationSteps:100,animationEasing:"easeOutBounce",animateRotate:true,animateScale:false,onAnimationComplete:null,annotateLabel:"<%=(v1 == ''? '' : v1+':')+ v2 + ' (' + v6 + ' %)'%>",startAngle:90,radiusScale:1};t.Doughnut.defaults=k(t.defaults.commonOptions,t.Doughnut.defaults);t.Doughnut.defaults=k(t.Doughnut.defaults,charJSPersonnalDefaultOptions);t.Doughnut.defaults=k(t.Doughnut.defaults,charJSPersonnalDefaultOptionsDoughnut);var i=r?k(t.Doughnut.defaults,r):t.Doughnut.defaults;return new f(n,i,e)};this.Line=function(n,r){t.Line.defaults={inGraphDataShow:false,inGraphDataPaddingX:3,inGraphDataPaddingY:3,inGraphDataTmpl:"<%=v3%>",inGraphDataAlign:"left",inGraphDataVAlign:"bottom",inGraphDataRotate:0,inGraphDataFontFamily:"'Arial'",inGraphDataFontSize:12,inGraphDataFontStyle:"normal",inGraphDataFontColor:"#666",scaleOverlay:false,scaleOverride:false,scaleSteps:null,scaleStepWidth:null,scaleStartValue:null,scaleLineColor:"rgba(0,0,0,.1)",scaleLineWidth:1,scaleShowLabels:true,scaleLabel:"<%=value%>",scaleFontFamily:"'Arial'",scaleFontSize:12,scaleFontStyle:"normal",scaleFontColor:"#666",scaleShowGridLines:true,scaleXGridLinesStep:1,scaleYGridLinesStep:1,scaleGridLineColor:"rgba(0,0,0,.05)",scaleGridLineWidth:1,showYAxisMin:true,rotateLabels:"smart",logarithmic:false,scaleTickSizeLeft:5,scaleTickSizeRight:5,scaleTickSizeBottom:5,scaleTickSizeTop:5,bezierCurve:true,pointDot:true,pointDotRadius:4,pointDotStrokeWidth:2,datasetStrokeWidth:2,datasetFill:true,animation:true,animationSteps:60,animationEasing:"easeOutQuart",onAnimationComplete:null,annotateLabel:"<%=(v1 == '' ? '' : v1) + (v1!='' && v2 !='' ? ' - ' : '')+(v2 == '' ? '' : v2)+(v1!='' || v2 !='' ? ':' : '') + v3%>"};t.Line.defaults=k(t.defaults.commonOptions,t.Line.defaults);t.Line.defaults=k(t.defaults.xyAxisCommonOptions,t.Line.defaults);t.Line.defaults=k(t.Line.defaults,charJSPersonnalDefaultOptions);t.Line.defaults=k(t.Line.defaults,charJSPersonnalDefaultOptionsLine);var i=r?k(t.Line.defaults,r):t.Line.defaults;return new l(n,i,e)};this.StackedBar=function(n,r){t.StackedBar.defaults={inGraphDataShow:false,inGraphDataPaddingX:0,inGraphDataPaddingY:-3,inGraphDataTmpl:"<%=v3%>",inGraphDataAlign:"center",inGraphDataVAlign:"top",inGraphDataRotate:0,inGraphDataFontFamily:"'Arial'",inGraphDataFontSize:12,inGraphDataFontStyle:"normal",inGraphDataFontColor:"#666",inGraphDataXPosition:2,inGraphDataYPosition:3,scaleOverlay:false,scaleOverride:false,scaleSteps:null,scaleStepWidth:null,scaleStartValue:null,scaleLineColor:"rgba(0,0,0,.1)",scaleLineWidth:1,scaleShowLabels:true,scaleLabel:"<%=value%>",scaleFontFamily:"'Arial'",scaleFontSize:12,scaleFontStyle:"normal",scaleFontColor:"#666",scaleShowGridLines:true,scaleXGridLinesStep:1,scaleYGridLinesStep:1,scaleGridLineColor:"rgba(0,0,0,.05)",scaleGridLineWidth:1,showYAxisMin:true,rotateLabels:"smart",scaleTickSizeLeft:5,scaleTickSizeRight:5,scaleTickSizeBottom:5,scaleTickSizeTop:5,barShowStroke:true,barStrokeWidth:2,barValueSpacing:5,barDatasetSpacing:1,animation:true,animationSteps:60,animationEasing:"easeOutQuart",onAnimationComplete:null,annotateLabel:"<%=(v1 == '' ? '' : v1) + (v1!='' && v2 !='' ? ' - ' : '')+(v2 == '' ? '' : v2)+(v1!='' || v2 !='' ? ':' : '') + v3 + ' (' + v6 + ' %)'%>"};t.StackedBar.defaults=k(t.defaults.commonOptions,t.StackedBar.defaults);t.StackedBar.defaults=k(t.defaults.xyAxisCommonOptions,t.StackedBar.defaults);t.StackedBar.defaults=k(t.StackedBar.defaults,charJSPersonnalDefaultOptions);t.StackedBar.defaults=k(t.StackedBar.defaults,charJSPersonnalDefaultOptionsStackedBar);var i=r?k(t.StackedBar.defaults,r):t.StackedBar.defaults;return new c(n,i,e)};this.HorizontalStackedBar=function(n,r){t.HorizontalStackedBar.defaults={inGraphDataShow:false,inGraphDataPaddingX:-3,inGraphDataPaddingY:0,inGraphDataTmpl:"<%=v3%>",inGraphDataAlign:"right",inGraphDataVAlign:"middle",inGraphDataRotate:0,inGraphDataFontFamily:"'Arial'",inGraphDataFontSize:12,inGraphDataFontStyle:"normal",inGraphDataFontColor:"#666",inGraphDataXPosition:3,inGraphDataYPosition:2,scaleOverlay:false,scaleOverride:false,scaleSteps:null,scaleStepWidth:null,scaleStartValue:null,scaleLineColor:"rgba(0,0,0,.1)",scaleLineWidth:1,scaleShowLabels:true,scaleLabel:"<%=value%>",scaleFontFamily:"'Arial'",scaleFontSize:12,scaleFontStyle:"normal",scaleFontColor:"#666",scaleShowGridLines:true,scaleXGridLinesStep:1,scaleYGridLinesStep:1,scaleGridLineColor:"rgba(0,0,0,.05)",scaleGridLineWidth:1,scaleTickSizeLeft:5,scaleTickSizeRight:5,scaleTickSizeBottom:5,scaleTickSizeTop:5,showYAxisMin:true,rotateLabels:"smart",barShowStroke:true,barStrokeWidth:2,barValueSpacing:5,barDatasetSpacing:1,animation:true,animationSteps:60,animationEasing:"easeOutQuart",onAnimationComplete:null,annotateLabel:"<%=(v1 == '' ? '' : v1) + (v1!='' && v2 !='' ? ' - ' : '')+(v2 == '' ? '' : v2)+(v1!='' || v2 !='' ? ':' : '') + v3 + ' (' + v6 + ' %)'%>"};t.HorizontalStackedBar.defaults=k(t.defaults.commonOptions,t.HorizontalStackedBar.defaults);t.HorizontalStackedBar.defaults=k(t.defaults.xyAxisCommonOptions,t.HorizontalStackedBar.defaults);t.HorizontalStackedBar.defaults=k(t.HorizontalStackedBar.defaults,charJSPersonnalDefaultOptions);t.HorizontalStackedBar.defaults=k(t.HorizontalStackedBar.defaults,charJSPersonnalDefaultOptionsHorizontalStackedBar);var i=r?k(t.HorizontalStackedBar.defaults,r):t.HorizontalStackedBar.defaults;return new h(n,i,e)};this.Bar=function(n,r){t.Bar.defaults={inGraphDataShow:false,inGraphDataPaddingX:0,inGraphDataPaddingY:3,inGraphDataTmpl:"<%=v3%>",inGraphDataAlign:"center",inGraphDataVAlign:"bottom",inGraphDataRotate:0,inGraphDataFontFamily:"'Arial'",inGraphDataFontSize:12,inGraphDataFontStyle:"normal",inGraphDataFontColor:"#666",inGraphDataXPosition:2,inGraphDataYPosition:3,scaleOverlay:false,scaleOverride:false,scaleSteps:null,scaleStepWidth:null,scaleStartValue:null,scaleLineColor:"rgba(0,0,0,.1)",scaleLineWidth:1,scaleShowLabels:true,scaleLabel:"<%=value%>",scaleFontFamily:"'Arial'",scaleFontSize:12,scaleFontStyle:"normal",scaleFontColor:"#666",scaleShowGridLines:true,scaleXGridLinesStep:1,scaleYGridLinesStep:1,scaleGridLineColor:"rgba(0,0,0,.05)",scaleGridLineWidth:1,showYAxisMin:true,rotateLabels:"smart",logarithmic:false,scaleTickSizeLeft:5,scaleTickSizeRight:5,scaleTickSizeBottom:5,scaleTickSizeTop:5,barShowStroke:true,barStrokeWidth:2,barValueSpacing:5,barDatasetSpacing:1,barBorderRadius:0,animation:true,animationSteps:60,animationEasing:"easeOutQuart",onAnimationComplete:null,annotateLabel:"<%=(v1 == '' ? '' : v1) + (v1!='' && v2 !='' ? ' - ' : '')+(v2 == '' ? '' : v2)+(v1!='' || v2 !='' ? ':' : '') + v3 + ' (' + v6 + ' %)'%>"};t.Bar.defaults=k(t.defaults.commonOptions,t.Bar.defaults);t.Bar.defaults=k(t.defaults.xyAxisCommonOptions,t.Bar.defaults);t.Bar.defaults=k(t.Bar.defaults,charJSPersonnalDefaultOptions);t.Bar.defaults=k(t.Bar.defaults,charJSPersonnalDefaultOptionsBar);var i=r?k(t.Bar.defaults,r):t.Bar.defaults;return new p(n,i,e)};this.HorizontalBar=function(n,r){t.HorizontalBar.defaults={inGraphDataShow:false,inGraphDataPaddingX:3,inGraphDataPaddingY:0,inGraphDataTmpl:"<%=v3%>",inGraphDataAlign:"left",inGraphDataVAlign:"middle",inGraphDataRotate:0,inGraphDataFontFamily:"'Arial'",inGraphDataFontSize:12,inGraphDataFontStyle:"normal",inGraphDataFontColor:"#666",inGraphDataXPosition:3,inGraphDataYPosition:2,scaleOverlay:false,scaleOverride:false,scaleSteps:null,scaleStepWidth:null,scaleStartValue:null,scaleLineColor:"rgba(0,0,0,.1)",scaleLineWidth:1,scaleShowLabels:true,scaleLabel:"<%=value%>",scaleFontFamily:"'Arial'",scaleFontSize:12,scaleFontStyle:"normal",scaleFontColor:"#666",scaleShowGridLines:true,scaleXGridLinesStep:1,scaleYGridLinesStep:1,scaleGridLineColor:"rgba(0,0,0,.05)",scaleGridLineWidth:1,scaleTickSizeLeft:5,scaleTickSizeRight:5,scaleTickSizeBottom:5,scaleTickSizeTop:5,showYAxisMin:true,rotateLabels:"smart",barShowStroke:true,barStrokeWidth:2,barValueSpacing:5,barDatasetSpacing:1,barBorderRadius:0,animation:true,animationSteps:60,animationEasing:"easeOutQuart",onAnimationComplete:null,annotateLabel:"<%=(v1 == '' ? '' : v1) + (v1!='' && v2 !='' ? ' - ' : '')+(v2 == '' ? '' : v2)+(v1!='' || v2 !='' ? ':' : '') + v3 + ' (' + v6 + ' %)'%>"};t.HorizontalBar.defaults=k(t.defaults.commonOptions,t.HorizontalBar.defaults);t.HorizontalBar.defaults=k(t.defaults.xyAxisCommonOptions,t.HorizontalBar.defaults);t.HorizontalBar.defaults=k(t.HorizontalBar.defaults,charJSPersonnalDefaultOptions);t.HorizontalBar.defaults=k(t.HorizontalBar.defaults,charJSPersonnalDefaultOptionsHorizontalBar);var i=r?k(t.HorizontalBar.defaults,r):t.HorizontalBar.defaults;return new d(n,i,e)};t.defaults={};t.defaults.commonOptions={clearRect:true,dynamicDisplay:false,graphSpaceBefore:5,graphSpaceAfter:5,canvasBorders:false,canvasBackgroundColor:"none",canvasBordersWidth:3,canvasBordersColor:"black",graphTitle:"",graphTitleFontFamily:"'Arial'",graphTitleFontSize:24,graphTitleFontStyle:"bold",graphTitleFontColor:"#666",graphTitleSpaceBefore:5,graphTitleSpaceAfter:5,graphSubTitle:"",graphSubTitleFontFamily:"'Arial'",graphSubTitleFontSize:18,graphSubTitleFontStyle:"normal",graphSubTitleFontColor:"#666",graphSubTitleSpaceBefore:5,graphSubTitleSpaceAfter:5,footNote:"",footNoteFontFamily:"'Arial'",footNoteFontSize:8,footNoteFontStyle:"bold",footNoteFontColor:"#666",footNoteSpaceBefore:5,footNoteSpaceAfter:5,legend:false,legendFontFamily:"'Arial'",legendFontSize:12,legendFontStyle:"normal",legendFontColor:"#666",legendBlockSize:15,legendBorders:true,legendBordersWidth:1,legendBordersColors:"#666",legendBordersSpaceBefore:5,legendBordersSpaceAfter:5,legendBordersSpaceLeft:5,legendBordersSpaceRight:5,legendSpaceBeforeText:5,legendSpaceAfterText:5,legendSpaceLeftText:5,legendSpaceRightText:5,legendSpaceBetweenTextVertical:5,legendSpaceBetweenTextHorizontal:5,legendSpaceBetweenBoxAndText:5,annotateDisplay:false,savePng:false,savePngOuput:"NewWindow",savePngFunction:"mousedown right",savePngBackgroundColor:"WHITE",annotateFunction:"mousemove",annotateFontFamily:"'Arial'",annotateBorder:"none",annotateBorderRadius:"2px",annotateBackgroundColor:"rgba(0,0,0,0.8)",annotateFontSize:12,annotateFontColor:"white",annotateFontStyle:"normal",annotatePadding:"3px",annotateClassName:"",crossText:[""],crossTextIter:["all"],crossTextOverlay:[true],crossTextFontFamily:["'Arial'"],crossTextFontSize:[12],crossTextFontStyle:["normal"],crossTextFontColor:["rgba(220,220,220,1)"],crossTextRelativePosX:[2],crossTextRelativePosY:[2],crossTextBaseline:["middle"],crossTextAlign:["center"],crossTextPosX:[0],crossTextPosY:[0],crossTextAngle:[0],crossTextFunction:null,spaceTop:0,spaceBottom:0,spaceRight:0,spaceLeft:0,decimalSeparator:".",thousandSeparator:"",roundNumber:"none",roundPct:-1,fmtV1:"none",fmtV2:"none",fmtV3:"none",fmtV4:"none",fmtV5:"none",fmtV6:"none",fmtV7:"none",fmtV8:"none",fmtV9:"none",fmtV10:"none",fmtV11:"none",fmtV12:"none",fmtV13:"none",fmtXLabel:"none",fmtYLabel:"none",fmtLegend:"none",animationStartValue:0,animationStopValue:1,animationCount:1,animationPauseTime:5,animationBackward:false,defaultStrokeColor:"rgba(220,220,220,1)",defaultFillColor:"rgba(220,220,220,0.5)"};t.defaults.xyAxisCommonOptions={yAxisLeft:true,yAxisRight:false,xAxisBottom:true,xAxisTop:false,xAxisSpaceBetweenLabels:5,yAxisLabel:"",yAxisFontFamily:"'Arial'",yAxisFontSize:16,yAxisFontStyle:"normal",yAxisFontColor:"#666",yAxisLabelSpaceRight:5,yAxisLabelSpaceLeft:5,yAxisSpaceRight:5,yAxisSpaceLeft:5,xAxisLabel:"",xAxisFontFamily:"'Arial'",xAxisFontSize:16,xAxisFontStyle:"normal",xAxisFontColor:"#666",xAxisLabelSpaceBefore:5,xAxisLabelSpaceAfter:5,xAxisSpaceBefore:5,xAxisSpaceAfter:5,yAxisUnit:"",yAxisUnitFontFamily:"'Arial'",yAxisUnitFontSize:8,yAxisUnitFontStyle:"normal",yAxisUnitFontColor:"#666",yAxisUnitSpaceBefore:5,yAxisUnitSpaceAfter:5};var s=function(e){e.clearRect(0,0,r,i)};var o=function(e,t,n){function N(r){var i=-t.startAngle*(Math.PI/180)+2*Math.PI,s=0,a=0,f=1,l=1;a=0;for(var c=0;c2*Math.PI){i-=2*Math.PI}if(t.animation){if(t.animateScale){f=r}if(t.animateRotate){l=r}}if(r>=1){totvalue=0;for(var c=0;c=1){i=-t.startAngle*(Math.PI/180)+2*Math.PI;for(var c=0;c3*Math.PI/2||(posAngle+2*Math.PI)%(2*Math.PI)3*Math.PI/2||(posAngle+2*Math.PI)%(2*Math.PI)Math.PI)n.textBaseline="top";else n.textBaseline="bottom"}else if(t.inGraphDataVAlign=="to-center"){if((posAngle+2*Math.PI)%(2*Math.PI)>Math.PI)n.textBaseline="bottom";else n.textBaseline="top"}else n.textBaseline=t.inGraphDataVAlign;n.font=t.inGraphDataFontStyle+" "+t.inGraphDataFontSize+"px "+t.inGraphDataFontFamily;n.fillStyle=t.inGraphDataFontColor;var h=tmplbis(t.inGraphDataTmpl,{config:t,v1:fmtChartJS(t,lgtxt,t.fmtV1),v2:fmtChartJS(t,1*e[c].value,t.fmtV2),v3:fmtChartJS(t,s,t.fmtV3),v4:fmtChartJS(t,totvalue,t.fmtV4),v5:fmtChartJS(t,a,t.fmtV5),v6:roundToWithThousands(t,fmtChartJS(t,100*e[c].value/totvalue,t.fmtV6),t.roundPct),v7:fmtChartJS(t,p,t.fmtV7),v8:fmtChartJS(t,d,t.fmtV8),v9:fmtChartJS(t,0,t.fmtV9),v10:fmtChartJS(t,v(t,1*e[c].value,u,o),t.fmtV10),v11:fmtChartJS(t,i-a,t.fmtV11),v12:fmtChartJS(t,a,t.fmtV12),v13:fmtChartJS(t,c,t.fmtV13)});n.translate(p+labelRadius*Math.cos(posAngle),d-labelRadius*Math.sin(posAngle));if(t.inGraphDataRotate=="inRadiusAxis")n.rotate(2*Math.PI-posAngle);else if(t.inGraphDataRotate=="inRadiusAxisRotateLabels"){if((posAngle+2*Math.PI)%(2*Math.PI)>Math.PI/2&&(posAngle+2*Math.PI)%(2*Math.PI)<3*Math.PI/2)n.rotate(3*Math.PI-posAngle);else n.rotate(2*Math.PI-posAngle)}else n.rotate(t.inGraphDataRotate*(Math.PI/180));n.fillText(h,0,0);n.restore();x-=a}}}}}function C(){for(var e=0;en){n=1*e[i].value}if(1*e[i].value360){t.startAngle-=360}while(x<0){x+=2*Math.PI}while(x>2*Math.PI){x-=2*Math.PI}t.logarithmic=false;var T=0;jsGraphAnnotate[n.ChartNewId]=new Array;P(n,e,t,"PolarArea");D(n,t);l=k();c=t.scaleShowLabels?t.scaleLabel:"";if(!t.scaleOverride){u=y(t,l.maxSteps,l.minSteps,l.maxValue,l.minValue,c);h=M(e,t,n,i,r,u.labels,true,false,false,false,true)}else{u={steps:t.scaleSteps,stepValue:t.scaleStepWidth,graphMin:t.scaleStartValue,graphMax:t.scaleStartValue+t.scaleSteps*t.scaleStepWidth,labels:[]};w(t,c,u.labels,u.steps,t.scaleStartValue,u.graphMax,t.scaleStepWidth);h=M(e,t,n,i,r,u.labels,true,false,false,false,true)}p=h.leftNotUsableSize+h.availableWidth/2;d=h.topNotUsableSize+h.availableHeight/2;o=Math.floor((S([h.availableHeight,h.availableWidth])/2-5)/u.steps);m(t,C,N,n,h.clrx,h.clry,h.clrwidth,h.clrheight,p,d,p-(S([h.availableHeight,h.availableWidth])/2-5),d+(S([h.availableHeight,h.availableWidth])/2-5),e);};var u=function(e,t,n){function T(r){var i=new Array;var s=new Array;for(var a=0;a=1){if(typeof e.datasets[a].title=="string")lgtxt=e.datasets[a].title.trim();else lgtxt=""}var c=-1;for(var f=0;f=1){if(a==0)divprev=0;else divprev=e.datasets[a].data[f]-e.datasets[a-1].data[f];if(a==e.datasets.length-1)divnext=0;else divnext=e.datasets[a+1].data[f]-e.datasets[a].data[f];if(typeof e.labels[f]=="string")lgtxt2=e.labels[f].trim();else lgtxt2="";jsGraphAnnotate[n.ChartNewId][S++]=["POINT",p+Math.cos(t.startAngle*Math.PI/180-f*l)*v(t,e.datasets[a].data[f],u,o),d-Math.sin(t.startAngle*Math.PI/180-f*l)*v(t,e.datasets[a].data[f],u,o),lgtxt,lgtxt2,1*e.datasets[a].data[f],divprev,divnext,s[f],i[f],a,f]}}}n.closePath();if(t.datasetFill){if(typeof e.datasets[a].fillColor=="string")n.fillStyle=e.datasets[a].fillColor;else n.fillStyle=t.defaultFillColor}else n.fillStyle="rgba(0,0,0,0)";if(typeof e.datasets[a].strokeColor=="string")n.strokeStyle=e.datasets[a].strokeColor;else n.strokeStyle=t.defaultStrokeColor;n.lineWidth=t.datasetStrokeWidth;n.fill();n.stroke();if(t.pointDot){n.beginPath();n.fillStyle=e.datasets[a].pointColor;n.strokeStyle=e.datasets[a].pointStrokeColor;n.lineWidth=t.pointDotStrokeWidth;for(var h=0;h=1&&t.inGraphDataShow){for(var a=0;a3*Math.PI/2||(f*l+2*Math.PI)%(2*Math.PI)3*Math.PI/2||(f*l+2*Math.PI)%(2*Math.PI)Math.PI)n.textBaseline="bottom";else n.textBaseline="top"}else if(t.inGraphDataVAlign=="to-center"){if((f*l+2*Math.PI)%(2*Math.PI)>Math.PI)n.textBaseline="top";else n.textBaseline="bottom"}else n.textBaseline=t.inGraphDataVAlign;n.font=t.inGraphDataFontStyle+" "+t.inGraphDataFontSize+"px "+t.inGraphDataFontFamily;n.fillStyle=t.inGraphDataFontColor;var m;if(t.inGraphDataRadiusPosition==1)m=0+t.inGraphDataPaddingRadius;else if(t.inGraphDataRadiusPosition==2)m=v(t,e.datasets[a].data[f],u,o)/2+t.inGraphDataPaddingRadius;else if(t.inGraphDataRadiusPosition==3)m=v(t,e.datasets[a].data[f],u,o)+t.inGraphDataPaddingRadius;n.translate(p+Math.cos(t.startAngle*Math.PI/180-f*l)*m,d-Math.sin(t.startAngle*Math.PI/180-f*l)*m);if(t.inGraphDataRotate=="inRadiusAxis")n.rotate(f*l);else if(t.inGraphDataRotate=="inRadiusAxisRotateLabels"){if((f*l+2*Math.PI)%(2*Math.PI)>Math.PI/2&&(f*l+2*Math.PI)%(2*Math.PI)<3*Math.PI/2)n.rotate(3*Math.PI+f*l);else n.rotate(2*Math.PI+f*l)}else n.rotate(t.inGraphDataRotate*(Math.PI/180));var g=tmplbis(t.inGraphDataTmpl,{config:t,v1:fmtChartJS(t,lgtxt,t.fmtV1),v2:fmtChartJS(t,lgtxt2,t.fmtV2),v3:fmtChartJS(t,1*e.datasets[a].data[f],t.fmtV3),v4:fmtChartJS(t,divprev,t.fmtV4),v5:fmtChartJS(t,divnext,t.fmtV5),v6:fmtChartJS(t,s[f],t.fmtV6),v7:fmtChartJS(t,i[f],t.fmtV7),v8:roundToWithThousands(t,fmtChartJS(t,100*e.datasets[a].data[f]/i[f],t.fmtV8),t.roundPct),v9:fmtChartJS(t,p+Math.cos(t.startAngle*Math.PI/180-f*l)*v(t,e.datasets[a].data[f],u,o),t.fmtV9),v10:fmtChartJS(t,d-Math.sin(t.startAngle*Math.PI/180-f*l)*v(t,e.datasets[a].data[f],u,o),t.fmtV10),v11:fmtChartJS(t,a,t.fmtV11),v12:fmtChartJS(t,f,t.fmtV12)});n.fillText(g,0,0);n.restore()}}}}}function N(){var r=2*Math.PI/e.datasets[0].data.length;n.save();n.translate(p,d);n.rotate((90-t.startAngle)*Math.PI/180);if(t.angleShowLineOut){n.strokeStyle=t.angleLineColor;n.lineWidth=t.angleLineWidth;for(var i=0;i2*Math.PI)m=m-2*Math.PI;if(m==Math.PI||m==0){n.textAlign="center"}else if(m>Math.PI){n.textAlign="right"}else{n.textAlign="left"}n.textBaseline="middle";n.fillText(e.labels[c],h,-v)}n.restore()}function C(){var r,i,o,u,f,l,c,d;var v=2*Math.PI/e.datasets[0].data.length;var m=t.startAngle*Math.PI/180;n.font=t.pointLabelFontStyle+" "+t.pointLabelFontSize+"px "+t.pointLabelFontFamily;if(!t.graphMaximized){u=h.availableWidth/2;o=h.availableWidth/2;l=1}else{u=h.availableWidth/2;o=h.availableWidth/2;l=40;for(var g=0;g-Math.PI/2||m>3*Math.PI/2){if(i-Math.PI/2||m>3*Math.PI/2){i=(h.availableWidth-r-y)/Math.abs(Math.cos(m))}else if(Math.cos(m!=0)){i=(r-y)/Math.abs(Math.cos(m))}if(ih.availableHeight/2-t.scaleFontSize*2){i=Math.sin(m)*h.availableHeight/2-1.5*t.scaleFontSize;if(ic){c=s;p=r}}s=c-t.scaleFontSize/2;a=x(a,5)}function k(){var n=Number.MIN_VALUE;var r=Number.MAX_VALUE;for(var i=0;in){n=1*e.datasets[i].data[s]}if(1*e.datasets[i].data[s]360){t.startAngle-=360}t.logarithmic=false;var S=0;jsGraphAnnotate[n.ChartNewId]=new Array;P(n,e,t,"Radar");if(!e.labels)e.labels=[];D(n,t);l=k();c=t.scaleShowLabels?t.scaleLabel:"";if(!t.scaleOverride){u=y(t,l.maxSteps,l.minSteps,l.maxValue,l.minValue,c);h=M(e,t,n,i,r,u.labels,true,false,false,true,t.datasetFill)}else{u={steps:t.scaleSteps,stepValue:t.scaleStepWidth,graphMin:t.scaleStartValue,graphMax:t.scaleStartValue+t.scaleSteps*t.scaleStepWidth,labels:[]};w(t,c,u.labels,u.steps,t.scaleStartValue,u.graphMax,t.scaleStepWidth);h=M(e,t,n,i,r,u.labels,true,false,false,true,t.datasetFill)}C();d=h.topNotUsableSize+h.availableHeight/2;o=s/u.steps;m(t,N,T,n,h.clrx,h.clry,h.clrwidth,h.clrheight,p,d,p-s,d+s,e);};var a=function(e,t,n){function d(r){var i=-t.startAngle*(Math.PI/180)+2*Math.PI,o=0,l=1,c=1;var p=t.startAngle*(Math.PI/180)+2*Math.PI;while(i<0){i+=2*Math.PI}while(i>2*Math.PI){i-=2*Math.PI}while(p<0){p+=2*Math.PI}while(p>2*Math.PI){p-=2*Math.PI}if(t.animation){if(t.animateScale){l=r}if(t.animateRotate){c=r}}if(r>=1){totvalue=0;for(var d=0;d=Math.PI*2)v=Math.PI*2-.001;n.beginPath();n.arc(u,a,l*f,i,i+v);n.lineTo(u,a);n.closePath();n.fillStyle=e[d].color;n.fill();i+=v;o+=1*e[d].value;if(t.segmentShowStroke){n.lineWidth=t.segmentStrokeWidth;n.strokeStyle=t.segmentStrokeColor;n.stroke()}if(r>=1){if(typeof e[d].title=="string")lgtxt=e[d].title.trim();else lgtxt="";jsGraphAnnotate[n.ChartNewId][h++]=["ARC",u,a,0,f,i-v,i,lgtxt,1*e[d].value,o,totvalue,v,d];if(t.inGraphDataShow){if(t.inGraphDataAnglePosition==1)posAngle=p+t.inGraphDataPaddingAngle*(Math.PI/180);else if(t.inGraphDataAnglePosition==2)posAngle=p-v/2+t.inGraphDataPaddingAngle*(Math.PI/180);else if(t.inGraphDataAnglePosition==3)posAngle=p-v+t.inGraphDataPaddingAngle*(Math.PI/180);if(t.inGraphDataRadiusPosition==1)labelRadius=0+t.inGraphDataPaddingRadius;else if(t.inGraphDataRadiusPosition==2)labelRadius=f/2+t.inGraphDataPaddingRadius;else if(t.inGraphDataRadiusPosition==3)labelRadius=f+t.inGraphDataPaddingRadius;p-=v;n.save();if(t.inGraphDataAlign=="off-center"){if(t.inGraphDataRotate=="inRadiusAxis"||(posAngle+2*Math.PI)%(2*Math.PI)>3*Math.PI/2||(posAngle+2*Math.PI)%(2*Math.PI)3*Math.PI/2||(posAngle+2*Math.PI)%(2*Math.PI)Math.PI)n.textBaseline="top";else n.textBaseline="bottom"}else if(t.inGraphDataVAlign=="to-center"){if((posAngle+2*Math.PI)%(2*Math.PI)>Math.PI)n.textBaseline="bottom";else n.textBaseline="top"}else n.textBaseline=t.inGraphDataVAlign;n.font=t.inGraphDataFontStyle+" "+t.inGraphDataFontSize+"px "+t.inGraphDataFontFamily;n.fillStyle=t.inGraphDataFontColor;var m=tmplbis(t.inGraphDataTmpl,{config:t,v1:fmtChartJS(t,lgtxt,t.fmtV1),v2:fmtChartJS(t,1*e[d].value,t.fmtV2),v3:fmtChartJS(t,o,t.fmtV3),v4:fmtChartJS(t,totvalue,t.fmtV4),v5:fmtChartJS(t,v,t.fmtV5),v6:roundToWithThousands(t,fmtChartJS(t,100*e[d].value/totvalue,t.fmtV6),t.roundPct),v7:fmtChartJS(t,u,t.fmtV7),v8:fmtChartJS(t,a,t.fmtV8),v9:fmtChartJS(t,0,t.fmtV9),v10:fmtChartJS(t,f,t.fmtV10),v11:fmtChartJS(t,i-v,t.fmtV11),v12:fmtChartJS(t,i,t.fmtV12),v13:fmtChartJS(t,d,t.fmtV13)});n.translate(u+labelRadius*Math.cos(posAngle),a-labelRadius*Math.sin(posAngle));if(t.inGraphDataRotate=="inRadiusAxis")n.rotate(2*Math.PI-posAngle);else if(t.inGraphDataRotate=="inRadiusAxisRotateLabels"){if((posAngle+2*Math.PI)%(2*Math.PI)>Math.PI/2&&(posAngle+2*Math.PI)%(2*Math.PI)<3*Math.PI/2)n.rotate(3*Math.PI-posAngle);else n.rotate(2*Math.PI-posAngle)}else n.rotate(t.inGraphDataRotate*(Math.PI/180));n.fillText(m,0,0);n.restore()}}}}}function v(){var r;var i=-t.startAngle*(Math.PI/180)+2*Math.PI,l=0;while(i<0){i+=2*Math.PI}while(i>2*Math.PI){i-=2*Math.PI}u=o.leftNotUsableSize+o.availableWidth/2;a=o.topNotUsableSize+o.availableHeight/2;f=S([o.availableHeight/2,o.availableWidth/2])-5;if(t.inGraphDataShow&&t.inGraphDataRadiusPosition==3&&t.inGraphDataAlign=="off-center"&&t.inGraphDataRotate==0){f=S([o.availableHeight/2,o.availableWidth/2])-t.inGraphDataFontSize-t.inGraphDataPaddingRadius-5;var c=t.startAngle*(Math.PI/180)+2*Math.PI;while(c<0){c+=2*Math.PI}while(c>2*Math.PI){c-=2*Math.PI}var h=0;for(var p=0;p360){t.startAngle-=360}t.logarithmic=false;var h=0;jsGraphAnnotate[n.ChartNewId]=new Array;P(n,e,t,"Pie");D(n,t);o=M(e,t,n,i,r,null,true,false,false,false,true);for(var p=0;p2*Math.PI){i-=2*Math.PI}if(t.animation){if(t.animateScale){l=r}if(t.animateRotate){c=r}}if(r>=1){totvalue=0;for(var v=0;v=Math.PI*2)m=Math.PI*2-.001;n.beginPath();n.arc(u,a,l*f,i,i+m,false);n.arc(u,a,l*d,i+m,i,true);n.closePath();n.fillStyle=e[v].color;n.fill();i+=m;o+=1*e[v].value;if(t.segmentShowStroke){n.lineWidth=t.segmentStrokeWidth;n.strokeStyle=t.segmentStrokeColor;n.stroke()}if(r>=1){if(typeof e[v].title=="string")lgtxt=e[v].title.trim();else lgtxt="";jsGraphAnnotate[n.ChartNewId][p++]=["ARC",u,a,d,f,i-m,i,lgtxt,1*e[v].value,o,totvalue,m,v];if(t.inGraphDataShow){if(t.inGraphDataAnglePosition==1)posAngle=h+t.inGraphDataPaddingAngle*(Math.PI/180);else if(t.inGraphDataAnglePosition==2)posAngle=h-m/2+t.inGraphDataPaddingAngle*(Math.PI/180);else if(t.inGraphDataAnglePosition==3)posAngle=h-m+t.inGraphDataPaddingAngle*(Math.PI/180);if(t.inGraphDataRadiusPosition==1)labelRadius=d+t.inGraphDataPaddingRadius;else if(t.inGraphDataRadiusPosition==2)labelRadius=d+(f-d)/2+t.inGraphDataPaddingRadius;else if(t.inGraphDataRadiusPosition==3)labelRadius=f+t.inGraphDataPaddingRadius;h-=m;n.save();if(t.inGraphDataAlign=="off-center"){if(t.inGraphDataRotate=="inRadiusAxis"||(posAngle+2*Math.PI)%(2*Math.PI)>3*Math.PI/2||(posAngle+2*Math.PI)%(2*Math.PI)3*Math.PI/2||(posAngle+2*Math.PI)%(2*Math.PI)Math.PI)n.textBaseline="top";else n.textBaseline="bottom"}else if(t.inGraphDataVAlign=="to-center"){if((posAngle+2*Math.PI)%(2*Math.PI)>Math.PI)n.textBaseline="bottom";else n.textBaseline="top"}else n.textBaseline=t.inGraphDataVAlign;n.font=t.inGraphDataFontStyle+" "+t.inGraphDataFontSize+"px "+t.inGraphDataFontFamily;n.fillStyle=t.inGraphDataFontColor;var g=tmplbis(t.inGraphDataTmpl,{config:t,v1:fmtChartJS(t,lgtxt,t.fmtV1),v2:fmtChartJS(t,1*e[v].value,t.fmtV2),v3:fmtChartJS(t,o,t.fmtV3),v4:fmtChartJS(t,totvalue,t.fmtV4),v5:fmtChartJS(t,m,t.fmtV5),v6:roundToWithThousands(t,fmtChartJS(t,100*e[v].value/totvalue,t.fmtV6),t.roundPct),v7:fmtChartJS(t,u,t.fmtV7),v8:fmtChartJS(t,a,t.fmtV8),v9:fmtChartJS(t,d,t.fmtV9),v10:fmtChartJS(t,f,t.fmtV10),v11:fmtChartJS(t,i-m,t.fmtV11),v12:fmtChartJS(t,i,t.fmtV12),v13:fmtChartJS(t,v,t.fmtV13)});n.translate(u+labelRadius*Math.cos(posAngle),a-labelRadius*Math.sin(posAngle));if(t.inGraphDataRotate=="inRadiusAxis")n.rotate(2*Math.PI-posAngle);else if(t.inGraphDataRotate=="inRadiusAxisRotateLabels"){if((posAngle+2*Math.PI)%(2*Math.PI)>Math.PI/2&&(posAngle+2*Math.PI)%(2*Math.PI)<3*Math.PI/2)n.rotate(3*Math.PI-posAngle);else n.rotate(2*Math.PI-posAngle)}else n.rotate(t.inGraphDataRotate*(Math.PI/180));n.fillText(g,0,0);n.restore()}}}}}function y(){var r;var i=-t.startAngle*(Math.PI/180)+2*Math.PI,l=0;while(i<0){i+=2*Math.PI}while(i>2*Math.PI){i-=2*Math.PI}u=o.leftNotUsableSize+o.availableWidth/2;a=o.topNotUsableSize+o.availableHeight/2;f=S([o.availableHeight/2,o.availableWidth/2])-5;if(t.inGraphDataShow&&t.inGraphDataRadiusPosition==3&&t.inGraphDataAlign=="off-center"&&t.inGraphDataRotate==0){f=S([o.availableHeight/2,o.availableWidth/2])-t.inGraphDataFontSize-t.inGraphDataPaddingRadius-5;var c=t.startAngle*(Math.PI/180)+2*Math.PI;while(c<0){c+=2*Math.PI}while(c>2*Math.PI){c-=2*Math.PI}var h=0;for(var p=0;p360){t.startAngle-=360}while(h<0){h+=2*Math.PI}while(h>2*Math.PI){h-=2*Math.PI}t.logarithmic=false;var p=0;jsGraphAnnotate[n.ChartNewId]=new Array;P(n,e,t,"Doughnut");D(n,t);o=M(e,t,n,i,r,null,true,false,false,false,true);y();var d=f*(t.percentageInnerCutout/100);for(var v=0;v=1){if(typeof e.datasets[a].title=="string")lgtxt=e.datasets[a].title.trim();else lgtxt=""}if(typeof e.datasets[a].strokeColor=="string")n.strokeStyle=e.datasets[a].strokeColor;else n.strokeStyle=t.defaultStrokeColor;n.lineWidth=t.datasetStrokeWidth;n.beginPath();for(var f=0;f=1){if(a==0)divprev=e.datasets[a].data[f];else divprev=e.datasets[a].data[f]-e.datasets[a-1].data[f];if(a==e.datasets.length-1)divnext=e.datasets[a].data[f];else divnext=e.datasets[a].data[f]-e.datasets[a+1].data[f];if(typeof e.labels[f]=="string")lgtxt2=e.labels[f].trim();else lgtxt2="";jsGraphAnnotate[n.ChartNewId][N++]=["POINT",T(f),x(a,f),lgtxt,lgtxt2,1*e.datasets[a].data[f],divprev,divnext,s[f],i[f],a,f];if(t.inGraphDataShow){n.save();n.textAlign=t.inGraphDataAlign;n.textBaseline=t.inGraphDataVAlign;n.font=t.inGraphDataFontStyle+" "+t.inGraphDataFontSize+"px "+t.inGraphDataFontFamily;n.fillStyle=t.inGraphDataFontColor;var p=g+h*w,d=S-r*v(t,e.datasets[a].data[f],u,o),m=t.inGraphDataPaddingX,y=t.inGraphDataPaddingY;var b=tmplbis(t.inGraphDataTmpl,{config:t,v1:fmtChartJS(t,lgtxt,t.fmtV1),v2:fmtChartJS(t,lgtxt2,t.fmtV2),v3:fmtChartJS(t,1*e.datasets[a].data[f],t.fmtV3),v4:fmtChartJS(t,divprev,t.fmtV4),v5:fmtChartJS(t,divnext,t.fmtV5),v6:fmtChartJS(t,s[f],t.fmtV6),v7:fmtChartJS(t,i[f],t.fmtV7),v8:roundToWithThousands(t,fmtChartJS(t,100*e.datasets[a].data[f]/i[f],t.fmtV8),t.roundPct),v9:fmtChartJS(t,g,t.fmtV9),v10:fmtChartJS(t,S-v(t,e.datasets[a].data[f],u,o),t.fmtV10),v11:fmtChartJS(t,a,t.fmtV11),v12:fmtChartJS(t,f,t.fmtV12)});n.translate(T(f)+m,x(a,f)-y);n.rotate(t.inGraphDataRotate*(Math.PI/180));n.fillText(b,0,0);n.restore()}}}}n.stroke();if(t.datasetFill){n.lineTo(g+h*(e.datasets[a].data.length-1),S-_);n.lineTo(T(c),S-_);n.lineTo(T(c),x(a,c));n.closePath();if(typeof e.datasets[a].fillColor=="string")n.fillStyle=e.datasets[a].fillColor;else n.fillStyle=t.defaultFillColor;n.fill()}else{n.closePath()}if(t.pointDot){n.fillStyle=e.datasets[a].pointColor;n.strokeStyle=e.datasets[a].pointStrokeColor;n.lineWidth=t.pointDotStrokeWidth;for(var w=0;w0&&r%t.scaleXGridLinesStep==0){n.lineTo(g+r*h,S-T.availableHeight-t.scaleTickSizeTop)}else{n.lineTo(g+r*h,S)}n.stroke()}n.lineWidth=t.scaleLineWidth;n.strokeStyle=t.scaleLineColor;n.beginPath();n.moveTo(g,S+t.scaleTickSizeBottom);n.lineTo(g,S-T.availableHeight-t.scaleTickSizeTop);n.stroke();for(var i=0;i90){n.save();n.textAlign="left"}else if(T.rotateLabels>0){n.save();n.textAlign="right"}else{n.textAlign="center"}n.fillStyle=t.scaleFontColor;if(t.xAxisBottom){for(var r=0;r0){n.translate(g+r*h-t.scaleFontSize/2,T.xLabelPos);n.rotate(-(T.rotateLabels*(Math.PI/180)));n.fillText(fmtChartJS(t,e.labels[r],t.fmtXLabel),0,0)}else{n.fillText(fmtChartJS(t,e.labels[r],t.fmtXLabel),g+r*h,T.xLabelPos)}n.restore()}}}n.textAlign="right";n.textBaseline="middle";for(var i=t.showYAxisMin?-1:0;in){n=1*e.datasets[i].data[s]}if(1*e.datasets[i].data[s]=1){if(typeof e.datasets[l].title=="string")lgtxt=e.datasets[l].title.trim();else lgtxt=""}for(var c=0;c=0)*u.graphMin+1*e.datasets[l].data[c],u,o)+t.barStrokeWidth/2-i[c]);n.lineTo(p+w,b-r*v(t,(s[c]>=0)*u.graphMin+1*e.datasets[l].data[c],u,o)+t.barStrokeWidth/2-i[c]);n.lineTo(p+w,b-i[c]+1);if(t.barShowStroke)n.stroke();n.closePath();n.fill();a[c]+=1*e.datasets[l].data[c];if(r>=1){if(typeof e.labels[c]=="string")lgtxt2=e.labels[c].trim();else lgtxt2="";jsGraphAnnotate[n.ChartNewId][L++]=["RECT",p,b-i[c]+1,p+w,b-v(t,(s[c]>=0)*u.graphMin+1*e.datasets[l].data[c],u,o)+t.barStrokeWidth/2-i[c],lgtxt,lgtxt2,1*e.datasets[l].data[c],a[c],f[c],l,c]}i[c]+=r*v(t,(s[c]>=0)*u.graphMin+1*e.datasets[l].data[c],u,o)-t.barStrokeWidth/2;if(s[c]==-1)s[c]=l}}}if(r>=1&&t.inGraphDataShow){var d=0,m=0;for(var l=0;l=0)*u.graphMin+1*e.datasets[l].data[c],u,o)+t.barStrokeWidth/2)/2-i[c]-t.inGraphDataPaddingY}else if(t.inGraphDataYPosition==3){d=b-v(t,(s[c]>=0)*u.graphMin+1*e.datasets[l].data[c],u,o)+t.barStrokeWidth/2-i[c]-t.inGraphDataPaddingY}n.translate(m,d);n.rotate(t.inGraphDataRotate*(Math.PI/180));n.fillText(y,0,0);n.restore();a[c]+=1+e.datasets[l].data[c];i[c]+=r*v(t,(s[c]>=0)*u.graphMin+1*e.datasets[l].data[c],u,o)-t.barStrokeWidth/2;if(s[c]==-1)s[c]=l}}}}}function H(){n.lineWidth=t.scaleLineWidth;n.strokeStyle=t.scaleLineColor;n.beginPath();n.moveTo(g-t.scaleTickSizeLeft,b);n.lineTo(g+T.availableWidth+t.scaleTickSizeRight,b);n.stroke();for(var r=0;r0&&r%t.scaleXGridLinesStep==0){n.lineTo(g+r*h,b-T.availableHeight-t.scaleTickSizeTop)}else{n.lineTo(g+r*h,b)}n.stroke()}n.lineWidth=t.scaleLineWidth;n.strokeStyle=t.scaleLineColor;n.beginPath();n.moveTo(g,b+t.scaleTickSizeBottom);n.lineTo(g,b-T.availableHeight-t.scaleTickSizeTop);n.stroke();for(var i=t.showYAxisMin?-1:0;i90){n.save();n.textAlign="left"}else if(T.rotateLabels>0){n.save();n.textAlign="right"}else{n.textAlign="center"}n.fillStyle=t.scaleFontColor;if(t.xAxisBottom){for(var r=0;r0){n.translate(g+r*h+w/2-t.scaleFontSize/2,T.xLabelPos);n.rotate(-(T.rotateLabels*(Math.PI/180)));n.fillText(fmtChartJS(t,e.labels[r],t.fmtXLabel),0,0)}else{n.fillText(fmtChartJS(t,e.labels[r],t.fmtXLabel),g+r*h+w/2,T.xLabelPos)}n.restore()}}}n.textAlign="right";n.textBaseline="middle";for(var i=t.showYAxisMin?-1:0;in){n=c}if(c0){if(!(typeof e.datasets[l].data[u]=="undefined")){c+=1*e.datasets[l].data[u];if(c>n){n=c}if(c=1){if(typeof e.datasets[l].title=="string")lgtxt=e.datasets[l].title.trim();else lgtxt=""}for(var c=0;c=0)*u.graphMin+1*e.datasets[l].data[c],u,h)+t.barStrokeWidth/2,p);n.lineTo(v+i[c]+r*_((s[c]>=0)*u.graphMin+1*e.datasets[l].data[c],u,h)+t.barStrokeWidth/2,p+b);n.lineTo(v+i[c]+1,p+b);n.lineTo(v+i[c]+1,p);if(t.barShowStroke)n.stroke();n.closePath();n.fill();a[c]+=1*e.datasets[l].data[c];if(r>=1){if(typeof e.labels[c]=="string")lgtxt2=e.labels[c].trim();else lgtxt2="";jsGraphAnnotate[n.ChartNewId][L++]=["RECT",v+i[c]+1,p+b,v+i[c]+_((s[c]>=0)*u.graphMin+1*e.datasets[l].data[c],u,h)+t.barStrokeWidth/2,p,lgtxt,lgtxt2,1*e.datasets[l].data[c],a[c],f[c],l,c]}i[c]+=r*_((s[c]>=0)*u.graphMin+1*e.datasets[l].data[c],u,h)+t.barStrokeWidth/2;if(s[c]==-1)s[c]=l}}}if(r>=1&&t.inGraphDataShow){var d=0,m=0;for(var l=0;l=0)*u.graphMin+1*e.datasets[l].data[c],u,h)+t.barStrokeWidth/2)/2+t.inGraphDataPaddingX}else if(t.inGraphDataXPosition==3){m=v+i[c]+_((s[c]>=0)*u.graphMin+1*e.datasets[l].data[c],u,h)+t.barStrokeWidth/2+t.inGraphDataPaddingX}if(t.inGraphDataYPosition==1){d=p+b-t.inGraphDataPaddingY}else if(t.inGraphDataYPosition==2){d=p+b/2-t.inGraphDataPaddingY}else if(t.inGraphDataYPosition==3){d=p-t.inGraphDataPaddingY}n.translate(m,d);n.rotate(t.inGraphDataRotate*(Math.PI/180));n.fillText(y,0,0);n.restore();a[c]+=e.datasets[l].data[c];i[c]+=r*_((s[c]>=0)*u.graphMin+1*e.datasets[l].data[c],u,h)+t.barStrokeWidth/2;if(s[c]==-1)s[c]=l}}}}}function B(){n.lineWidth=t.scaleLineWidth;n.strokeStyle=t.scaleLineColor;n.beginPath();n.moveTo(v-t.scaleTickSizeLeft,g);n.lineTo(v+x.availableWidth,g);n.stroke();for(var r=t.showYAxisMin?-1:0;r=0){n.beginPath();n.moveTo(v+r*h,g+t.scaleTickSizeBottom);n.lineWidth=t.scaleGridLineWidth;n.strokeStyle=t.scaleGridLineColor;if(t.scaleShowGridLines&&r>0&&r%t.scaleXGridLinesStep==0){n.lineTo(v+r*h,g-x.availableHeight-t.scaleTickSizeTop)}else{n.lineTo(v+r*h,g)}n.stroke()}}n.lineWidth=t.scaleLineWidth;n.strokeStyle=t.scaleLineColor;n.beginPath();n.moveTo(v,g+t.scaleTickSizeBottom);n.lineTo(v,g-x.availableHeight-t.scaleTickSizeTop);n.stroke();for(var i=0;i90){n.save();n.textAlign="left"}else if(x.rotateLabels>0){n.save();n.textAlign="right"}else{n.textAlign="center"}n.fillStyle=t.scaleFontColor;if(t.xAxisBottom){for(var r=t.showYAxisMin?-1:0;r0){n.translate(v+(r+1)*h-t.scaleFontSize/2,x.xLabelPos);n.rotate(-(x.rotateLabels*(Math.PI/180)));n.fillText(u.labels[r+1],0,0)}else{n.fillText(u.labels[r+1],v+(r+1)*h,x.xLabelPos)}n.restore()}}}n.textAlign="right";n.textBaseline="middle";for(var i=0;in){n=c}if(c0){if(!(typeof e.datasets[l].data[u]=="undefined")){c+=1*e.datasets[l].data[u];if(c>n){n=c}if(c=1){if(typeof e.datasets[c].title=="string")lgtxt=e.datasets[c].title.trim();else lgtxt=""}for(var p=0;p=1){if(typeof e.labels[p]=="string")lgtxt2=e.labels[p].trim();else lgtxt2="";i=x-_;s=x-v(t,1*e.datasets[c].data[p],u,o)+t.barStrokeWidth/2;if(i=1&&t.inGraphDataShow){for(var c=0;c0&&r%t.scaleXGridLinesStep==0){n.lineTo(g+r*h,x-C.availableHeight-t.scaleTickSizeTop)}else{n.lineTo(g+r*h,x)}n.stroke()}n.lineWidth=t.scaleLineWidth;n.strokeStyle=t.scaleLineColor;n.beginPath();n.moveTo(g,x+t.scaleTickSizeBottom);n.lineTo(g,x-C.availableHeight-t.scaleTickSizeTop);n.stroke();for(var i=0;i90){n.save();n.textAlign="left"}else if(C.rotateLabels>0){n.save();n.textAlign="right"}else{n.textAlign="center"}n.fillStyle=t.scaleFontColor;if(t.xAxisBottom){for(var r=0;r0){n.translate(g+r*h+h/2-t.scaleFontSize/2,C.xLabelPos);n.rotate(-(C.rotateLabels*(Math.PI/180)));n.fillText(fmtChartJS(t,e.labels[r],t.fmtXLabel),0,0)}else{n.fillText(fmtChartJS(t,e.labels[r],t.fmtXLabel),g+r*h+h/2,C.xLabelPos)}n.restore()}}}n.textAlign="right";n.textBaseline="middle";for(var i=t.showYAxisMin?-1:0;in){n=1*e.datasets[i].data[s]}if(1*e.datasets[i].data[s]=1){if(typeof e.datasets[a].title=="string")lgtxt=e.datasets[a].title.trim();else lgtxt=""}for(var f=0;f=1){if(typeof e.labels[f]=="string")lgtxt2=e.labels[f].trim();else lgtxt2="";t1=g+A;t2=g+v(t,1*e.datasets[a].data[f],u,h)+t.barStrokeWidth/2;if(t1>t2){t3=t1;t1=t2;t2=t3}jsGraphAnnotate[n.ChartNewId][L++]=["RECT",t1,l+x,t2,l,lgtxt,lgtxt2,1*e.datasets[a].data[f],i[f],s[f],a,f]}}}}if(r>=1&&t.inGraphDataShow){for(var a=0;at2){t3=t1;t1=t2;t2=t3}n.beginPath();var p=0,d=0;if(t.inGraphDataYPosition==1){p=l-t.inGraphDataPaddingY+x}else if(t.inGraphDataYPosition==2){p=l+x/2-t.inGraphDataPaddingY}else if(t.inGraphDataYPosition==3){p=l-t.inGraphDataPaddingY}if(t.inGraphDataXPosition==1){d=g+A+t.inGraphDataPaddingX}else if(t.inGraphDataXPosition==2){d=g+(v(t,1*e.datasets[a].data[f],u,h)+t.barStrokeWidth/2)/2+t.inGraphDataPaddingX}else if(t.inGraphDataXPosition==3){d=g+v(t,1*e.datasets[a].data[f],u,h)+t.barStrokeWidth/2+t.inGraphDataPaddingX}n.translate(d,p);var m=tmplbis(t.inGraphDataTmpl,{config:t,v1:fmtChartJS(t,lgtxt,t.fmtV1),v2:fmtChartJS(t,lgtxt2,t.fmtV2),v3:fmtChartJS(t,1*e.datasets[a].data[f],t.fmtV3),v4:fmtChartJS(t,i[f],t.fmtV4),v5:fmtChartJS(t,s[f],t.fmtV5),v6:roundToWithThousands(t,fmtChartJS(t,100*e.datasets[a].data[f]/s[f],t.fmtV6),t.roundPct),v7:fmtChartJS(t,t1,t.fmtV7),v8:fmtChartJS(t,l+x,t.fmtV8),v9:fmtChartJS(t,t2,t.fmtV9),v10:fmtChartJS(t,l,t.fmtV10),v11:fmtChartJS(t,a,t.fmtV11),v12:fmtChartJS(t,f,t.fmtV12)});n.rotate(t.inGraphDataRotate*(Math.PI/180));n.fillText(m,0,0);n.restore();i[f]+=1*e.datasets[a].data[f]}}}}}function _(e,t,n,r,i,s,o,u){e.beginPath();e.moveTo(n+u,t+o);e.lineTo(n+u,t+r-o);e.quadraticCurveTo(n+u,t+r,n+u,t+r);e.lineTo(n+i-o,t+r);e.quadraticCurveTo(n+i,t+r,n+i,t+r-o);e.lineTo(n+i,t+o);e.quadraticCurveTo(n+i,t,n+i-o,t);e.lineTo(n+u,t);e.quadraticCurveTo(n+u,t,n+u,t+o);if(s)e.stroke();e.closePath();e.fill()}function H(){n.lineWidth=t.scaleLineWidth;n.strokeStyle=t.scaleLineColor;n.beginPath();n.moveTo(g-t.scaleTickSizeLeft,b);n.lineTo(g+N.availableWidth+t.scaleTickSizeRight,b);n.stroke();for(var r=t.showYAxisMin?-1:0;r=0){n.beginPath();n.moveTo(g+r*h,b+t.scaleTickSizeBottom);n.lineWidth=t.scaleGridLineWidth;n.strokeStyle=t.scaleGridLineColor;if(t.scaleShowGridLines&&r>0&&r%t.scaleXGridLinesStep==0){n.lineTo(g+r*h,b-N.availableHeight-t.scaleTickSizeTop)}else{n.lineTo(g+r*h,b)}n.stroke()}}n.lineWidth=t.scaleLineWidth;n.strokeStyle=t.scaleLineColor;n.beginPath();n.moveTo(g,b+t.scaleTickSizeBottom);n.lineTo(g,b-N.availableHeight-t.scaleTickSizeTop);n.stroke();for(var i=0;i90){n.save();n.textAlign="left"}else if(N.rotateLabels>0){n.save();n.textAlign="right"}else{n.textAlign="center"}n.fillStyle=t.scaleFontColor;if(t.xAxisBottom){for(var r=t.showYAxisMin?-1:0;r0){n.translate(g+(r+1)*h-t.scaleFontSize/2,N.xLabelPos);n.rotate(-(N.rotateLabels*(Math.PI/180)));n.fillText(u.labels[r+1],0,0)}else{n.fillText(u.labels[r+1],g+(r+1)*h,N.xLabelPos)}n.restore()}}}n.textAlign="right";n.textBaseline="middle";for(var i=0;in){n=1*e.datasets[i].data[s]}if(1*e.datasets[i].data[s])[^>]*|#([\w-]*))$/,k=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,E=/^[\],:{}\s]*$/,S=/(?:^|:|,)(?:\s*\[)+/g,A=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,j=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,D=/^-ms-/,L=/-([\da-z])/gi,H=function(e,t){return t.toUpperCase()},q=function(e){(a.addEventListener||"load"===e.type||"complete"===a.readyState)&&(_(),x.ready())},_=function(){a.addEventListener?(a.removeEventListener("DOMContentLoaded",q,!1),e.removeEventListener("load",q,!1)):(a.detachEvent("onreadystatechange",q),e.detachEvent("onload",q))};x.fn=x.prototype={jquery:f,constructor:x,init:function(e,n,r){var i,o;if(!e)return this;if("string"==typeof e){if(i="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:N.exec(e),!i||!i[1]&&n)return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e);if(i[1]){if(n=n instanceof x?n[0]:n,x.merge(this,x.parseHTML(i[1],n&&n.nodeType?n.ownerDocument||n:a,!0)),k.test(i[1])&&x.isPlainObject(n))for(i in n)x.isFunction(this[i])?this[i](n[i]):this.attr(i,n[i]);return this}if(o=a.getElementById(i[2]),o&&o.parentNode){if(o.id!==i[2])return r.find(e);this.length=1,this[0]=o}return this.context=a,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):x.isFunction(e)?r.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),x.makeArray(e,this))},selector:"",length:0,toArray:function(){return g.call(this)},get:function(e){return null==e?this.toArray():0>e?this[this.length+e]:this[e]},pushStack:function(e){var t=x.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return x.each(this,e,t)},ready:function(e){return x.ready.promise().done(e),this},slice:function(){return this.pushStack(g.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},map:function(e){return this.pushStack(x.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:h,sort:[].sort,splice:[].splice},x.fn.init.prototype=x.fn,x.extend=x.fn.extend=function(){var e,n,r,i,o,a,s=arguments[0]||{},l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},l=2),"object"==typeof s||x.isFunction(s)||(s={}),u===l&&(s=this,--l);u>l;l++)if(null!=(o=arguments[l]))for(i in o)e=s[i],r=o[i],s!==r&&(c&&r&&(x.isPlainObject(r)||(n=x.isArray(r)))?(n?(n=!1,a=e&&x.isArray(e)?e:[]):a=e&&x.isPlainObject(e)?e:{},s[i]=x.extend(c,a,r)):r!==t&&(s[i]=r));return s},x.extend({expando:"jQuery"+(f+Math.random()).replace(/\D/g,""),noConflict:function(t){return e.$===x&&(e.$=u),t&&e.jQuery===x&&(e.jQuery=l),x},isReady:!1,readyWait:1,holdReady:function(e){e?x.readyWait++:x.ready(!0)},ready:function(e){if(e===!0?!--x.readyWait:!x.isReady){if(!a.body)return setTimeout(x.ready);x.isReady=!0,e!==!0&&--x.readyWait>0||(n.resolveWith(a,[x]),x.fn.trigger&&x(a).trigger("ready").off("ready"))}},isFunction:function(e){return"function"===x.type(e)},isArray:Array.isArray||function(e){return"array"===x.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?c[y.call(e)]||"object":typeof e},isPlainObject:function(e){var n;if(!e||"object"!==x.type(e)||e.nodeType||x.isWindow(e))return!1;try{if(e.constructor&&!v.call(e,"constructor")&&!v.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(r){return!1}if(x.support.ownLast)for(n in e)return v.call(e,n);for(n in e);return n===t||v.call(e,n)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw Error(e)},parseHTML:function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||a;var r=k.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=x.buildFragment([e],t,i),i&&x(i).remove(),x.merge([],r.childNodes))},parseJSON:function(n){return e.JSON&&e.JSON.parse?e.JSON.parse(n):null===n?n:"string"==typeof n&&(n=x.trim(n),n&&E.test(n.replace(A,"@").replace(j,"]").replace(S,"")))?Function("return "+n)():(x.error("Invalid JSON: "+n),t)},parseXML:function(n){var r,i;if(!n||"string"!=typeof n)return null;try{e.DOMParser?(i=new DOMParser,r=i.parseFromString(n,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(n))}catch(o){r=t}return r&&r.documentElement&&!r.getElementsByTagName("parsererror").length||x.error("Invalid XML: "+n),r},noop:function(){},globalEval:function(t){t&&x.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(D,"ms-").replace(L,H)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r,i=0,o=e.length,a=M(e);if(n){if(a){for(;o>i;i++)if(r=t.apply(e[i],n),r===!1)break}else for(i in e)if(r=t.apply(e[i],n),r===!1)break}else if(a){for(;o>i;i++)if(r=t.call(e[i],i,e[i]),r===!1)break}else for(i in e)if(r=t.call(e[i],i,e[i]),r===!1)break;return e},trim:b&&!b.call("\ufeff\u00a0")?function(e){return null==e?"":b.call(e)}:function(e){return null==e?"":(e+"").replace(C,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(M(Object(e))?x.merge(n,"string"==typeof e?[e]:e):h.call(n,e)),n},inArray:function(e,t,n){var r;if(t){if(m)return m.call(t,e,n);for(r=t.length,n=n?0>n?Math.max(0,r+n):n:0;r>n;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,n){var r=n.length,i=e.length,o=0;if("number"==typeof r)for(;r>o;o++)e[i++]=n[o];else while(n[o]!==t)e[i++]=n[o++];return e.length=i,e},grep:function(e,t,n){var r,i=[],o=0,a=e.length;for(n=!!n;a>o;o++)r=!!t(e[o],o),n!==r&&i.push(e[o]);return i},map:function(e,t,n){var r,i=0,o=e.length,a=M(e),s=[];if(a)for(;o>i;i++)r=t(e[i],i,n),null!=r&&(s[s.length]=r);else for(i in e)r=t(e[i],i,n),null!=r&&(s[s.length]=r);return d.apply([],s)},guid:1,proxy:function(e,n){var r,i,o;return"string"==typeof n&&(o=e[n],n=e,e=o),x.isFunction(e)?(r=g.call(arguments,2),i=function(){return e.apply(n||this,r.concat(g.call(arguments)))},i.guid=e.guid=e.guid||x.guid++,i):t},access:function(e,n,r,i,o,a,s){var l=0,u=e.length,c=null==r;if("object"===x.type(r)){o=!0;for(l in r)x.access(e,n,l,r[l],!0,a,s)}else if(i!==t&&(o=!0,x.isFunction(i)||(s=!0),c&&(s?(n.call(e,i),n=null):(c=n,n=function(e,t,n){return c.call(x(e),n)})),n))for(;u>l;l++)n(e[l],r,s?i:i.call(e[l],l,n(e[l],r)));return o?e:c?n.call(e):u?n(e[0],r):a},now:function(){return(new Date).getTime()},swap:function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=a[o];return i}}),x.ready.promise=function(t){if(!n)if(n=x.Deferred(),"complete"===a.readyState)setTimeout(x.ready);else if(a.addEventListener)a.addEventListener("DOMContentLoaded",q,!1),e.addEventListener("load",q,!1);else{a.attachEvent("onreadystatechange",q),e.attachEvent("onload",q);var r=!1;try{r=null==e.frameElement&&a.documentElement}catch(i){}r&&r.doScroll&&function o(){if(!x.isReady){try{r.doScroll("left")}catch(e){return setTimeout(o,50)}_(),x.ready()}}()}return n.promise(t)},x.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){c["[object "+t+"]"]=t.toLowerCase()});function M(e){var t=e.length,n=x.type(e);return x.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}r=x(a),function(e,t){var n,r,i,o,a,s,l,u,c,p,f,d,h,g,m,y,v,b="sizzle"+-new Date,w=e.document,T=0,C=0,N=st(),k=st(),E=st(),S=!1,A=function(e,t){return e===t?(S=!0,0):0},j=typeof t,D=1<<31,L={}.hasOwnProperty,H=[],q=H.pop,_=H.push,M=H.push,O=H.slice,F=H.indexOf||function(e){var t=0,n=this.length;for(;n>t;t++)if(this[t]===e)return t;return-1},B="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",P="[\\x20\\t\\r\\n\\f]",R="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",W=R.replace("w","w#"),$="\\["+P+"*("+R+")"+P+"*(?:([*^$|!~]?=)"+P+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+W+")|)|)"+P+"*\\]",I=":("+R+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+$.replace(3,8)+")*)|.*)\\)|)",z=RegExp("^"+P+"+|((?:^|[^\\\\])(?:\\\\.)*)"+P+"+$","g"),X=RegExp("^"+P+"*,"+P+"*"),U=RegExp("^"+P+"*([>+~]|"+P+")"+P+"*"),V=RegExp(P+"*[+~]"),Y=RegExp("="+P+"*([^\\]'\"]*)"+P+"*\\]","g"),J=RegExp(I),G=RegExp("^"+W+"$"),Q={ID:RegExp("^#("+R+")"),CLASS:RegExp("^\\.("+R+")"),TAG:RegExp("^("+R.replace("w","w*")+")"),ATTR:RegExp("^"+$),PSEUDO:RegExp("^"+I),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+P+"*(even|odd|(([+-]|)(\\d*)n|)"+P+"*(?:([+-]|)"+P+"*(\\d+)|))"+P+"*\\)|)","i"),bool:RegExp("^(?:"+B+")$","i"),needsContext:RegExp("^"+P+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+P+"*((?:-\\d)?\\d*)"+P+"*\\)|)(?=[^-]|$)","i")},K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,et=/^(?:input|select|textarea|button)$/i,tt=/^h\d$/i,nt=/'|\\/g,rt=RegExp("\\\\([\\da-f]{1,6}"+P+"?|("+P+")|.)","ig"),it=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(55296|r>>10,56320|1023&r)};try{M.apply(H=O.call(w.childNodes),w.childNodes),H[w.childNodes.length].nodeType}catch(ot){M={apply:H.length?function(e,t){_.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function at(e,t,n,i){var o,a,s,l,u,c,d,m,y,x;if((t?t.ownerDocument||t:w)!==f&&p(t),t=t||f,n=n||[],!e||"string"!=typeof e)return n;if(1!==(l=t.nodeType)&&9!==l)return[];if(h&&!i){if(o=Z.exec(e))if(s=o[1]){if(9===l){if(a=t.getElementById(s),!a||!a.parentNode)return n;if(a.id===s)return n.push(a),n}else if(t.ownerDocument&&(a=t.ownerDocument.getElementById(s))&&v(t,a)&&a.id===s)return n.push(a),n}else{if(o[2])return M.apply(n,t.getElementsByTagName(e)),n;if((s=o[3])&&r.getElementsByClassName&&t.getElementsByClassName)return M.apply(n,t.getElementsByClassName(s)),n}if(r.qsa&&(!g||!g.test(e))){if(m=d=b,y=t,x=9===l&&e,1===l&&"object"!==t.nodeName.toLowerCase()){c=mt(e),(d=t.getAttribute("id"))?m=d.replace(nt,"\\$&"):t.setAttribute("id",m),m="[id='"+m+"'] ",u=c.length;while(u--)c[u]=m+yt(c[u]);y=V.test(e)&&t.parentNode||t,x=c.join(",")}if(x)try{return M.apply(n,y.querySelectorAll(x)),n}catch(T){}finally{d||t.removeAttribute("id")}}}return kt(e.replace(z,"$1"),t,n,i)}function st(){var e=[];function t(n,r){return e.push(n+=" ")>o.cacheLength&&delete t[e.shift()],t[n]=r}return t}function lt(e){return e[b]=!0,e}function ut(e){var t=f.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ct(e,t){var n=e.split("|"),r=e.length;while(r--)o.attrHandle[n[r]]=t}function pt(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||D)-(~e.sourceIndex||D);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function ft(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function dt(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ht(e){return lt(function(t){return t=+t,lt(function(n,r){var i,o=e([],n.length,t),a=o.length;while(a--)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}s=at.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},r=at.support={},p=at.setDocument=function(e){var n=e?e.ownerDocument||e:w,i=n.defaultView;return n!==f&&9===n.nodeType&&n.documentElement?(f=n,d=n.documentElement,h=!s(n),i&&i.attachEvent&&i!==i.top&&i.attachEvent("onbeforeunload",function(){p()}),r.attributes=ut(function(e){return e.className="i",!e.getAttribute("className")}),r.getElementsByTagName=ut(function(e){return e.appendChild(n.createComment("")),!e.getElementsByTagName("*").length}),r.getElementsByClassName=ut(function(e){return e.innerHTML="
",e.firstChild.className="i",2===e.getElementsByClassName("i").length}),r.getById=ut(function(e){return d.appendChild(e).id=b,!n.getElementsByName||!n.getElementsByName(b).length}),r.getById?(o.find.ID=function(e,t){if(typeof t.getElementById!==j&&h){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},o.filter.ID=function(e){var t=e.replace(rt,it);return function(e){return e.getAttribute("id")===t}}):(delete o.find.ID,o.filter.ID=function(e){var t=e.replace(rt,it);return function(e){var n=typeof e.getAttributeNode!==j&&e.getAttributeNode("id");return n&&n.value===t}}),o.find.TAG=r.getElementsByTagName?function(e,n){return typeof n.getElementsByTagName!==j?n.getElementsByTagName(e):t}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},o.find.CLASS=r.getElementsByClassName&&function(e,n){return typeof n.getElementsByClassName!==j&&h?n.getElementsByClassName(e):t},m=[],g=[],(r.qsa=K.test(n.querySelectorAll))&&(ut(function(e){e.innerHTML="",e.querySelectorAll("[selected]").length||g.push("\\["+P+"*(?:value|"+B+")"),e.querySelectorAll(":checked").length||g.push(":checked")}),ut(function(e){var t=n.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("t",""),e.querySelectorAll("[t^='']").length&&g.push("[*^$]="+P+"*(?:''|\"\")"),e.querySelectorAll(":enabled").length||g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(r.matchesSelector=K.test(y=d.webkitMatchesSelector||d.mozMatchesSelector||d.oMatchesSelector||d.msMatchesSelector))&&ut(function(e){r.disconnectedMatch=y.call(e,"div"),y.call(e,"[s!='']:x"),m.push("!=",I)}),g=g.length&&RegExp(g.join("|")),m=m.length&&RegExp(m.join("|")),v=K.test(d.contains)||d.compareDocumentPosition?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},A=d.compareDocumentPosition?function(e,t){if(e===t)return S=!0,0;var i=t.compareDocumentPosition&&e.compareDocumentPosition&&e.compareDocumentPosition(t);return i?1&i||!r.sortDetached&&t.compareDocumentPosition(e)===i?e===n||v(w,e)?-1:t===n||v(w,t)?1:c?F.call(c,e)-F.call(c,t):0:4&i?-1:1:e.compareDocumentPosition?-1:1}:function(e,t){var r,i=0,o=e.parentNode,a=t.parentNode,s=[e],l=[t];if(e===t)return S=!0,0;if(!o||!a)return e===n?-1:t===n?1:o?-1:a?1:c?F.call(c,e)-F.call(c,t):0;if(o===a)return pt(e,t);r=e;while(r=r.parentNode)s.unshift(r);r=t;while(r=r.parentNode)l.unshift(r);while(s[i]===l[i])i++;return i?pt(s[i],l[i]):s[i]===w?-1:l[i]===w?1:0},n):f},at.matches=function(e,t){return at(e,null,null,t)},at.matchesSelector=function(e,t){if((e.ownerDocument||e)!==f&&p(e),t=t.replace(Y,"='$1']"),!(!r.matchesSelector||!h||m&&m.test(t)||g&&g.test(t)))try{var n=y.call(e,t);if(n||r.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(i){}return at(t,f,null,[e]).length>0},at.contains=function(e,t){return(e.ownerDocument||e)!==f&&p(e),v(e,t)},at.attr=function(e,n){(e.ownerDocument||e)!==f&&p(e);var i=o.attrHandle[n.toLowerCase()],a=i&&L.call(o.attrHandle,n.toLowerCase())?i(e,n,!h):t;return a===t?r.attributes||!h?e.getAttribute(n):(a=e.getAttributeNode(n))&&a.specified?a.value:null:a},at.error=function(e){throw Error("Syntax error, unrecognized expression: "+e)},at.uniqueSort=function(e){var t,n=[],i=0,o=0;if(S=!r.detectDuplicates,c=!r.sortStable&&e.slice(0),e.sort(A),S){while(t=e[o++])t===e[o]&&(i=n.push(o));while(i--)e.splice(n[i],1)}return e},a=at.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=a(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r];r++)n+=a(t);return n},o=at.selectors={cacheLength:50,createPseudo:lt,match:Q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(rt,it),e[3]=(e[4]||e[5]||"").replace(rt,it),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||at.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&at.error(e[0]),e},PSEUDO:function(e){var n,r=!e[5]&&e[2];return Q.CHILD.test(e[0])?null:(e[3]&&e[4]!==t?e[2]=e[4]:r&&J.test(r)&&(n=mt(r,!0))&&(n=r.indexOf(")",r.length-n)-r.length)&&(e[0]=e[0].slice(0,n),e[2]=r.slice(0,n)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(rt,it).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=N[e+" "];return t||(t=RegExp("(^|"+P+")"+e+"("+P+"|$)"))&&N(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==j&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=at.attr(r,e);return null==i?"!="===t:t?(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i+" ").indexOf(n)>-1:"|="===t?i===n||i.slice(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var u,c,p,f,d,h,g=o!==a?"nextSibling":"previousSibling",m=t.parentNode,y=s&&t.nodeName.toLowerCase(),v=!l&&!s;if(m){if(o){while(g){p=t;while(p=p[g])if(s?p.nodeName.toLowerCase()===y:1===p.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&v){c=m[b]||(m[b]={}),u=c[e]||[],d=u[0]===T&&u[1],f=u[0]===T&&u[2],p=d&&m.childNodes[d];while(p=++d&&p&&p[g]||(f=d=0)||h.pop())if(1===p.nodeType&&++f&&p===t){c[e]=[T,d,f];break}}else if(v&&(u=(t[b]||(t[b]={}))[e])&&u[0]===T)f=u[1];else while(p=++d&&p&&p[g]||(f=d=0)||h.pop())if((s?p.nodeName.toLowerCase()===y:1===p.nodeType)&&++f&&(v&&((p[b]||(p[b]={}))[e]=[T,f]),p===t))break;return f-=i,f===r||0===f%r&&f/r>=0}}},PSEUDO:function(e,t){var n,r=o.pseudos[e]||o.setFilters[e.toLowerCase()]||at.error("unsupported pseudo: "+e);return r[b]?r(t):r.length>1?(n=[e,e,"",t],o.setFilters.hasOwnProperty(e.toLowerCase())?lt(function(e,n){var i,o=r(e,t),a=o.length;while(a--)i=F.call(e,o[a]),e[i]=!(n[i]=o[a])}):function(e){return r(e,0,n)}):r}},pseudos:{not:lt(function(e){var t=[],n=[],r=l(e.replace(z,"$1"));return r[b]?lt(function(e,t,n,i){var o,a=r(e,null,i,[]),s=e.length;while(s--)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),!n.pop()}}),has:lt(function(e){return function(t){return at(e,t).length>0}}),contains:lt(function(e){return function(t){return(t.textContent||t.innerText||a(t)).indexOf(e)>-1}}),lang:lt(function(e){return G.test(e||"")||at.error("unsupported lang: "+e),e=e.replace(rt,it).toLowerCase(),function(t){var n;do if(n=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===d},focus:function(e){return e===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeName>"@"||3===e.nodeType||4===e.nodeType)return!1;return!0},parent:function(e){return!o.pseudos.empty(e)},header:function(e){return tt.test(e.nodeName)},input:function(e){return et.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||t.toLowerCase()===e.type)},first:ht(function(){return[0]}),last:ht(function(e,t){return[t-1]}),eq:ht(function(e,t,n){return[0>n?n+t:n]}),even:ht(function(e,t){var n=0;for(;t>n;n+=2)e.push(n);return e}),odd:ht(function(e,t){var n=1;for(;t>n;n+=2)e.push(n);return e}),lt:ht(function(e,t,n){var r=0>n?n+t:n;for(;--r>=0;)e.push(r);return e}),gt:ht(function(e,t,n){var r=0>n?n+t:n;for(;t>++r;)e.push(r);return e})}},o.pseudos.nth=o.pseudos.eq;for(n in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})o.pseudos[n]=ft(n);for(n in{submit:!0,reset:!0})o.pseudos[n]=dt(n);function gt(){}gt.prototype=o.filters=o.pseudos,o.setFilters=new gt;function mt(e,t){var n,r,i,a,s,l,u,c=k[e+" "];if(c)return t?0:c.slice(0);s=e,l=[],u=o.preFilter;while(s){(!n||(r=X.exec(s)))&&(r&&(s=s.slice(r[0].length)||s),l.push(i=[])),n=!1,(r=U.exec(s))&&(n=r.shift(),i.push({value:n,type:r[0].replace(z," ")}),s=s.slice(n.length));for(a in o.filter)!(r=Q[a].exec(s))||u[a]&&!(r=u[a](r))||(n=r.shift(),i.push({value:n,type:a,matches:r}),s=s.slice(n.length));if(!n)break}return t?s.length:s?at.error(e):k(e,l).slice(0)}function yt(e){var t=0,n=e.length,r="";for(;n>t;t++)r+=e[t].value;return r}function vt(e,t,n){var r=t.dir,o=n&&"parentNode"===r,a=C++;return t.first?function(t,n,i){while(t=t[r])if(1===t.nodeType||o)return e(t,n,i)}:function(t,n,s){var l,u,c,p=T+" "+a;if(s){while(t=t[r])if((1===t.nodeType||o)&&e(t,n,s))return!0}else while(t=t[r])if(1===t.nodeType||o)if(c=t[b]||(t[b]={}),(u=c[r])&&u[0]===p){if((l=u[1])===!0||l===i)return l===!0}else if(u=c[r]=[p],u[1]=e(t,n,s)||i,u[1]===!0)return!0}}function bt(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function xt(e,t,n,r,i){var o,a=[],s=0,l=e.length,u=null!=t;for(;l>s;s++)(o=e[s])&&(!n||n(o,r,i))&&(a.push(o),u&&t.push(s));return a}function wt(e,t,n,r,i,o){return r&&!r[b]&&(r=wt(r)),i&&!i[b]&&(i=wt(i,o)),lt(function(o,a,s,l){var u,c,p,f=[],d=[],h=a.length,g=o||Nt(t||"*",s.nodeType?[s]:s,[]),m=!e||!o&&t?g:xt(g,f,e,s,l),y=n?i||(o?e:h||r)?[]:a:m;if(n&&n(m,y,s,l),r){u=xt(y,d),r(u,[],s,l),c=u.length;while(c--)(p=u[c])&&(y[d[c]]=!(m[d[c]]=p))}if(o){if(i||e){if(i){u=[],c=y.length;while(c--)(p=y[c])&&u.push(m[c]=p);i(null,y=[],u,l)}c=y.length;while(c--)(p=y[c])&&(u=i?F.call(o,p):f[c])>-1&&(o[u]=!(a[u]=p))}}else y=xt(y===a?y.splice(h,y.length):y),i?i(null,a,y,l):M.apply(a,y)})}function Tt(e){var t,n,r,i=e.length,a=o.relative[e[0].type],s=a||o.relative[" "],l=a?1:0,c=vt(function(e){return e===t},s,!0),p=vt(function(e){return F.call(t,e)>-1},s,!0),f=[function(e,n,r){return!a&&(r||n!==u)||((t=n).nodeType?c(e,n,r):p(e,n,r))}];for(;i>l;l++)if(n=o.relative[e[l].type])f=[vt(bt(f),n)];else{if(n=o.filter[e[l].type].apply(null,e[l].matches),n[b]){for(r=++l;i>r;r++)if(o.relative[e[r].type])break;return wt(l>1&&bt(f),l>1&&yt(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(z,"$1"),n,r>l&&Tt(e.slice(l,r)),i>r&&Tt(e=e.slice(r)),i>r&&yt(e))}f.push(n)}return bt(f)}function Ct(e,t){var n=0,r=t.length>0,a=e.length>0,s=function(s,l,c,p,d){var h,g,m,y=[],v=0,b="0",x=s&&[],w=null!=d,C=u,N=s||a&&o.find.TAG("*",d&&l.parentNode||l),k=T+=null==C?1:Math.random()||.1;for(w&&(u=l!==f&&l,i=n);null!=(h=N[b]);b++){if(a&&h){g=0;while(m=e[g++])if(m(h,l,c)){p.push(h);break}w&&(T=k,i=++n)}r&&((h=!m&&h)&&v--,s&&x.push(h))}if(v+=b,r&&b!==v){g=0;while(m=t[g++])m(x,y,l,c);if(s){if(v>0)while(b--)x[b]||y[b]||(y[b]=q.call(p));y=xt(y)}M.apply(p,y),w&&!s&&y.length>0&&v+t.length>1&&at.uniqueSort(p)}return w&&(T=k,u=C),x};return r?lt(s):s}l=at.compile=function(e,t){var n,r=[],i=[],o=E[e+" "];if(!o){t||(t=mt(e)),n=t.length;while(n--)o=Tt(t[n]),o[b]?r.push(o):i.push(o);o=E(e,Ct(i,r))}return o};function Nt(e,t,n){var r=0,i=t.length;for(;i>r;r++)at(e,t[r],n);return n}function kt(e,t,n,i){var a,s,u,c,p,f=mt(e);if(!i&&1===f.length){if(s=f[0]=f[0].slice(0),s.length>2&&"ID"===(u=s[0]).type&&r.getById&&9===t.nodeType&&h&&o.relative[s[1].type]){if(t=(o.find.ID(u.matches[0].replace(rt,it),t)||[])[0],!t)return n;e=e.slice(s.shift().value.length)}a=Q.needsContext.test(e)?0:s.length;while(a--){if(u=s[a],o.relative[c=u.type])break;if((p=o.find[c])&&(i=p(u.matches[0].replace(rt,it),V.test(s[0].type)&&t.parentNode||t))){if(s.splice(a,1),e=i.length&&yt(s),!e)return M.apply(n,i),n;break}}}return l(e,f)(i,t,!h,n,V.test(e)),n}r.sortStable=b.split("").sort(A).join("")===b,r.detectDuplicates=S,p(),r.sortDetached=ut(function(e){return 1&e.compareDocumentPosition(f.createElement("div"))}),ut(function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")})||ct("type|href|height|width",function(e,n,r){return r?t:e.getAttribute(n,"type"===n.toLowerCase()?1:2)}),r.attributes&&ut(function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ct("value",function(e,n,r){return r||"input"!==e.nodeName.toLowerCase()?t:e.defaultValue}),ut(function(e){return null==e.getAttribute("disabled")})||ct(B,function(e,n,r){var i;return r?t:(i=e.getAttributeNode(n))&&i.specified?i.value:e[n]===!0?n.toLowerCase():null}),x.find=at,x.expr=at.selectors,x.expr[":"]=x.expr.pseudos,x.unique=at.uniqueSort,x.text=at.getText,x.isXMLDoc=at.isXML,x.contains=at.contains}(e);var O={};function F(e){var t=O[e]={};return x.each(e.match(T)||[],function(e,n){t[n]=!0}),t}x.Callbacks=function(e){e="string"==typeof e?O[e]||F(e):x.extend({},e);var n,r,i,o,a,s,l=[],u=!e.once&&[],c=function(t){for(r=e.memory&&t,i=!0,a=s||0,s=0,o=l.length,n=!0;l&&o>a;a++)if(l[a].apply(t[0],t[1])===!1&&e.stopOnFalse){r=!1;break}n=!1,l&&(u?u.length&&c(u.shift()):r?l=[]:p.disable())},p={add:function(){if(l){var t=l.length;(function i(t){x.each(t,function(t,n){var r=x.type(n);"function"===r?e.unique&&p.has(n)||l.push(n):n&&n.length&&"string"!==r&&i(n)})})(arguments),n?o=l.length:r&&(s=t,c(r))}return this},remove:function(){return l&&x.each(arguments,function(e,t){var r;while((r=x.inArray(t,l,r))>-1)l.splice(r,1),n&&(o>=r&&o--,a>=r&&a--)}),this},has:function(e){return e?x.inArray(e,l)>-1:!(!l||!l.length)},empty:function(){return l=[],o=0,this},disable:function(){return l=u=r=t,this},disabled:function(){return!l},lock:function(){return u=t,r||p.disable(),this},locked:function(){return!u},fireWith:function(e,t){return!l||i&&!u||(t=t||[],t=[e,t.slice?t.slice():t],n?u.push(t):c(t)),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!i}};return p},x.extend({Deferred:function(e){var t=[["resolve","done",x.Callbacks("once memory"),"resolved"],["reject","fail",x.Callbacks("once memory"),"rejected"],["notify","progress",x.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return x.Deferred(function(n){x.each(t,function(t,o){var a=o[0],s=x.isFunction(e[t])&&e[t];i[o[1]](function(){var e=s&&s.apply(this,arguments);e&&x.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[a+"With"](this===r?n.promise():this,s?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?x.extend(e,r):r}},i={};return r.pipe=r.then,x.each(t,function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=0,n=g.call(arguments),r=n.length,i=1!==r||e&&x.isFunction(e.promise)?r:0,o=1===i?e:x.Deferred(),a=function(e,t,n){return function(r){t[e]=this,n[e]=arguments.length>1?g.call(arguments):r,n===s?o.notifyWith(t,n):--i||o.resolveWith(t,n)}},s,l,u;if(r>1)for(s=Array(r),l=Array(r),u=Array(r);r>t;t++)n[t]&&x.isFunction(n[t].promise)?n[t].promise().done(a(t,u,n)).fail(o.reject).progress(a(t,l,s)):--i;return i||o.resolveWith(u,n),o.promise()}}),x.support=function(t){var n,r,o,s,l,u,c,p,f,d=a.createElement("div");if(d.setAttribute("className","t"),d.innerHTML="
a",n=d.getElementsByTagName("*")||[],r=d.getElementsByTagName("a")[0],!r||!r.style||!n.length)return t;s=a.createElement("select"),u=s.appendChild(a.createElement("option")),o=d.getElementsByTagName("input")[0],r.style.cssText="top:1px;float:left;opacity:.5",t.getSetAttribute="t"!==d.className,t.leadingWhitespace=3===d.firstChild.nodeType,t.tbody=!d.getElementsByTagName("tbody").length,t.htmlSerialize=!!d.getElementsByTagName("link").length,t.style=/top/.test(r.getAttribute("style")),t.hrefNormalized="/a"===r.getAttribute("href"),t.opacity=/^0.5/.test(r.style.opacity),t.cssFloat=!!r.style.cssFloat,t.checkOn=!!o.value,t.optSelected=u.selected,t.enctype=!!a.createElement("form").enctype,t.html5Clone="<:nav>"!==a.createElement("nav").cloneNode(!0).outerHTML,t.inlineBlockNeedsLayout=!1,t.shrinkWrapBlocks=!1,t.pixelPosition=!1,t.deleteExpando=!0,t.noCloneEvent=!0,t.reliableMarginRight=!0,t.boxSizingReliable=!0,o.checked=!0,t.noCloneChecked=o.cloneNode(!0).checked,s.disabled=!0,t.optDisabled=!u.disabled;try{delete d.test}catch(h){t.deleteExpando=!1}o=a.createElement("input"),o.setAttribute("value",""),t.input=""===o.getAttribute("value"),o.value="t",o.setAttribute("type","radio"),t.radioValue="t"===o.value,o.setAttribute("checked","t"),o.setAttribute("name","t"),l=a.createDocumentFragment(),l.appendChild(o),t.appendChecked=o.checked,t.checkClone=l.cloneNode(!0).cloneNode(!0).lastChild.checked,d.attachEvent&&(d.attachEvent("onclick",function(){t.noCloneEvent=!1}),d.cloneNode(!0).click());for(f in{submit:!0,change:!0,focusin:!0})d.setAttribute(c="on"+f,"t"),t[f+"Bubbles"]=c in e||d.attributes[c].expando===!1;d.style.backgroundClip="content-box",d.cloneNode(!0).style.backgroundClip="",t.clearCloneStyle="content-box"===d.style.backgroundClip;for(f in x(t))break;return t.ownLast="0"!==f,x(function(){var n,r,o,s="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",l=a.getElementsByTagName("body")[0];l&&(n=a.createElement("div"),n.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",l.appendChild(n).appendChild(d),d.innerHTML="
t
",o=d.getElementsByTagName("td"),o[0].style.cssText="padding:0;margin:0;border:0;display:none",p=0===o[0].offsetHeight,o[0].style.display="",o[1].style.display="none",t.reliableHiddenOffsets=p&&0===o[0].offsetHeight,d.innerHTML="",d.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",x.swap(l,null!=l.style.zoom?{zoom:1}:{},function(){t.boxSizing=4===d.offsetWidth}),e.getComputedStyle&&(t.pixelPosition="1%"!==(e.getComputedStyle(d,null)||{}).top,t.boxSizingReliable="4px"===(e.getComputedStyle(d,null)||{width:"4px"}).width,r=d.appendChild(a.createElement("div")),r.style.cssText=d.style.cssText=s,r.style.marginRight=r.style.width="0",d.style.width="1px",t.reliableMarginRight=!parseFloat((e.getComputedStyle(r,null)||{}).marginRight)),typeof d.style.zoom!==i&&(d.innerHTML="",d.style.cssText=s+"width:1px;padding:1px;display:inline;zoom:1",t.inlineBlockNeedsLayout=3===d.offsetWidth,d.style.display="block",d.innerHTML="
",d.firstChild.style.width="5px",t.shrinkWrapBlocks=3!==d.offsetWidth,t.inlineBlockNeedsLayout&&(l.style.zoom=1)),l.removeChild(n),n=d=o=r=null)}),n=s=l=u=r=o=null,t +}({});var B=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,P=/([A-Z])/g;function R(e,n,r,i){if(x.acceptData(e)){var o,a,s=x.expando,l=e.nodeType,u=l?x.cache:e,c=l?e[s]:e[s]&&s;if(c&&u[c]&&(i||u[c].data)||r!==t||"string"!=typeof n)return c||(c=l?e[s]=p.pop()||x.guid++:s),u[c]||(u[c]=l?{}:{toJSON:x.noop}),("object"==typeof n||"function"==typeof n)&&(i?u[c]=x.extend(u[c],n):u[c].data=x.extend(u[c].data,n)),a=u[c],i||(a.data||(a.data={}),a=a.data),r!==t&&(a[x.camelCase(n)]=r),"string"==typeof n?(o=a[n],null==o&&(o=a[x.camelCase(n)])):o=a,o}}function W(e,t,n){if(x.acceptData(e)){var r,i,o=e.nodeType,a=o?x.cache:e,s=o?e[x.expando]:x.expando;if(a[s]){if(t&&(r=n?a[s]:a[s].data)){x.isArray(t)?t=t.concat(x.map(t,x.camelCase)):t in r?t=[t]:(t=x.camelCase(t),t=t in r?[t]:t.split(" ")),i=t.length;while(i--)delete r[t[i]];if(n?!I(r):!x.isEmptyObject(r))return}(n||(delete a[s].data,I(a[s])))&&(o?x.cleanData([e],!0):x.support.deleteExpando||a!=a.window?delete a[s]:a[s]=null)}}}x.extend({cache:{},noData:{applet:!0,embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return e=e.nodeType?x.cache[e[x.expando]]:e[x.expando],!!e&&!I(e)},data:function(e,t,n){return R(e,t,n)},removeData:function(e,t){return W(e,t)},_data:function(e,t,n){return R(e,t,n,!0)},_removeData:function(e,t){return W(e,t,!0)},acceptData:function(e){if(e.nodeType&&1!==e.nodeType&&9!==e.nodeType)return!1;var t=e.nodeName&&x.noData[e.nodeName.toLowerCase()];return!t||t!==!0&&e.getAttribute("classid")===t}}),x.fn.extend({data:function(e,n){var r,i,o=null,a=0,s=this[0];if(e===t){if(this.length&&(o=x.data(s),1===s.nodeType&&!x._data(s,"parsedAttrs"))){for(r=s.attributes;r.length>a;a++)i=r[a].name,0===i.indexOf("data-")&&(i=x.camelCase(i.slice(5)),$(s,i,o[i]));x._data(s,"parsedAttrs",!0)}return o}return"object"==typeof e?this.each(function(){x.data(this,e)}):arguments.length>1?this.each(function(){x.data(this,e,n)}):s?$(s,e,x.data(s,e)):null},removeData:function(e){return this.each(function(){x.removeData(this,e)})}});function $(e,n,r){if(r===t&&1===e.nodeType){var i="data-"+n.replace(P,"-$1").toLowerCase();if(r=e.getAttribute(i),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:B.test(r)?x.parseJSON(r):r}catch(o){}x.data(e,n,r)}else r=t}return r}function I(e){var t;for(t in e)if(("data"!==t||!x.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}x.extend({queue:function(e,n,r){var i;return e?(n=(n||"fx")+"queue",i=x._data(e,n),r&&(!i||x.isArray(r)?i=x._data(e,n,x.makeArray(r)):i.push(r)),i||[]):t},dequeue:function(e,t){t=t||"fx";var n=x.queue(e,t),r=n.length,i=n.shift(),o=x._queueHooks(e,t),a=function(){x.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return x._data(e,n)||x._data(e,n,{empty:x.Callbacks("once memory").add(function(){x._removeData(e,t+"queue"),x._removeData(e,n)})})}}),x.fn.extend({queue:function(e,n){var r=2;return"string"!=typeof e&&(n=e,e="fx",r--),r>arguments.length?x.queue(this[0],e):n===t?this:this.each(function(){var t=x.queue(this,e,n);x._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&x.dequeue(this,e)})},dequeue:function(e){return this.each(function(){x.dequeue(this,e)})},delay:function(e,t){return e=x.fx?x.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,n){var r,i=1,o=x.Deferred(),a=this,s=this.length,l=function(){--i||o.resolveWith(a,[a])};"string"!=typeof e&&(n=e,e=t),e=e||"fx";while(s--)r=x._data(a[s],e+"queueHooks"),r&&r.empty&&(i++,r.empty.add(l));return l(),o.promise(n)}});var z,X,U=/[\t\r\n\f]/g,V=/\r/g,Y=/^(?:input|select|textarea|button|object)$/i,J=/^(?:a|area)$/i,G=/^(?:checked|selected)$/i,Q=x.support.getSetAttribute,K=x.support.input;x.fn.extend({attr:function(e,t){return x.access(this,x.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){x.removeAttr(this,e)})},prop:function(e,t){return x.access(this,x.prop,e,t,arguments.length>1)},removeProp:function(e){return e=x.propFix[e]||e,this.each(function(){try{this[e]=t,delete this[e]}catch(n){}})},addClass:function(e){var t,n,r,i,o,a=0,s=this.length,l="string"==typeof e&&e;if(x.isFunction(e))return this.each(function(t){x(this).addClass(e.call(this,t,this.className))});if(l)for(t=(e||"").match(T)||[];s>a;a++)if(n=this[a],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(U," "):" ")){o=0;while(i=t[o++])0>r.indexOf(" "+i+" ")&&(r+=i+" ");n.className=x.trim(r)}return this},removeClass:function(e){var t,n,r,i,o,a=0,s=this.length,l=0===arguments.length||"string"==typeof e&&e;if(x.isFunction(e))return this.each(function(t){x(this).removeClass(e.call(this,t,this.className))});if(l)for(t=(e||"").match(T)||[];s>a;a++)if(n=this[a],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(U," "):"")){o=0;while(i=t[o++])while(r.indexOf(" "+i+" ")>=0)r=r.replace(" "+i+" "," ");n.className=e?x.trim(r):""}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):x.isFunction(e)?this.each(function(n){x(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if("string"===n){var t,r=0,o=x(this),a=e.match(T)||[];while(t=a[r++])o.hasClass(t)?o.removeClass(t):o.addClass(t)}else(n===i||"boolean"===n)&&(this.className&&x._data(this,"__className__",this.className),this.className=this.className||e===!1?"":x._data(this,"__className__")||"")})},hasClass:function(e){var t=" "+e+" ",n=0,r=this.length;for(;r>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(U," ").indexOf(t)>=0)return!0;return!1},val:function(e){var n,r,i,o=this[0];{if(arguments.length)return i=x.isFunction(e),this.each(function(n){var o;1===this.nodeType&&(o=i?e.call(this,n,x(this).val()):e,null==o?o="":"number"==typeof o?o+="":x.isArray(o)&&(o=x.map(o,function(e){return null==e?"":e+""})),r=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()],r&&"set"in r&&r.set(this,o,"value")!==t||(this.value=o))});if(o)return r=x.valHooks[o.type]||x.valHooks[o.nodeName.toLowerCase()],r&&"get"in r&&(n=r.get(o,"value"))!==t?n:(n=o.value,"string"==typeof n?n.replace(V,""):null==n?"":n)}}}),x.extend({valHooks:{option:{get:function(e){var t=x.find.attr(e,"value");return null!=t?t:e.text}},select:{get:function(e){var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||0>i,a=o?null:[],s=o?i+1:r.length,l=0>i?s:o?i:0;for(;s>l;l++)if(n=r[l],!(!n.selected&&l!==i||(x.support.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&x.nodeName(n.parentNode,"optgroup"))){if(t=x(n).val(),o)return t;a.push(t)}return a},set:function(e,t){var n,r,i=e.options,o=x.makeArray(t),a=i.length;while(a--)r=i[a],(r.selected=x.inArray(x(r).val(),o)>=0)&&(n=!0);return n||(e.selectedIndex=-1),o}}},attr:function(e,n,r){var o,a,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return typeof e.getAttribute===i?x.prop(e,n,r):(1===s&&x.isXMLDoc(e)||(n=n.toLowerCase(),o=x.attrHooks[n]||(x.expr.match.bool.test(n)?X:z)),r===t?o&&"get"in o&&null!==(a=o.get(e,n))?a:(a=x.find.attr(e,n),null==a?t:a):null!==r?o&&"set"in o&&(a=o.set(e,r,n))!==t?a:(e.setAttribute(n,r+""),r):(x.removeAttr(e,n),t))},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(T);if(o&&1===e.nodeType)while(n=o[i++])r=x.propFix[n]||n,x.expr.match.bool.test(n)?K&&Q||!G.test(n)?e[r]=!1:e[x.camelCase("default-"+n)]=e[r]=!1:x.attr(e,n,""),e.removeAttribute(Q?n:r)},attrHooks:{type:{set:function(e,t){if(!x.support.radioValue&&"radio"===t&&x.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},propFix:{"for":"htmlFor","class":"className"},prop:function(e,n,r){var i,o,a,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return a=1!==s||!x.isXMLDoc(e),a&&(n=x.propFix[n]||n,o=x.propHooks[n]),r!==t?o&&"set"in o&&(i=o.set(e,r,n))!==t?i:e[n]=r:o&&"get"in o&&null!==(i=o.get(e,n))?i:e[n]},propHooks:{tabIndex:{get:function(e){var t=x.find.attr(e,"tabindex");return t?parseInt(t,10):Y.test(e.nodeName)||J.test(e.nodeName)&&e.href?0:-1}}}}),X={set:function(e,t,n){return t===!1?x.removeAttr(e,n):K&&Q||!G.test(n)?e.setAttribute(!Q&&x.propFix[n]||n,n):e[x.camelCase("default-"+n)]=e[n]=!0,n}},x.each(x.expr.match.bool.source.match(/\w+/g),function(e,n){var r=x.expr.attrHandle[n]||x.find.attr;x.expr.attrHandle[n]=K&&Q||!G.test(n)?function(e,n,i){var o=x.expr.attrHandle[n],a=i?t:(x.expr.attrHandle[n]=t)!=r(e,n,i)?n.toLowerCase():null;return x.expr.attrHandle[n]=o,a}:function(e,n,r){return r?t:e[x.camelCase("default-"+n)]?n.toLowerCase():null}}),K&&Q||(x.attrHooks.value={set:function(e,n,r){return x.nodeName(e,"input")?(e.defaultValue=n,t):z&&z.set(e,n,r)}}),Q||(z={set:function(e,n,r){var i=e.getAttributeNode(r);return i||e.setAttributeNode(i=e.ownerDocument.createAttribute(r)),i.value=n+="","value"===r||n===e.getAttribute(r)?n:t}},x.expr.attrHandle.id=x.expr.attrHandle.name=x.expr.attrHandle.coords=function(e,n,r){var i;return r?t:(i=e.getAttributeNode(n))&&""!==i.value?i.value:null},x.valHooks.button={get:function(e,n){var r=e.getAttributeNode(n);return r&&r.specified?r.value:t},set:z.set},x.attrHooks.contenteditable={set:function(e,t,n){z.set(e,""===t?!1:t,n)}},x.each(["width","height"],function(e,n){x.attrHooks[n]={set:function(e,r){return""===r?(e.setAttribute(n,"auto"),r):t}}})),x.support.hrefNormalized||x.each(["href","src"],function(e,t){x.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),x.support.style||(x.attrHooks.style={get:function(e){return e.style.cssText||t},set:function(e,t){return e.style.cssText=t+""}}),x.support.optSelected||(x.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){x.propFix[this.toLowerCase()]=this}),x.support.enctype||(x.propFix.enctype="encoding"),x.each(["radio","checkbox"],function(){x.valHooks[this]={set:function(e,n){return x.isArray(n)?e.checked=x.inArray(x(e).val(),n)>=0:t}},x.support.checkOn||(x.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Z=/^(?:input|select|textarea)$/i,et=/^key/,tt=/^(?:mouse|contextmenu)|click/,nt=/^(?:focusinfocus|focusoutblur)$/,rt=/^([^.]*)(?:\.(.+)|)$/;function it(){return!0}function ot(){return!1}function at(){try{return a.activeElement}catch(e){}}x.event={global:{},add:function(e,n,r,o,a){var s,l,u,c,p,f,d,h,g,m,y,v=x._data(e);if(v){r.handler&&(c=r,r=c.handler,a=c.selector),r.guid||(r.guid=x.guid++),(l=v.events)||(l=v.events={}),(f=v.handle)||(f=v.handle=function(e){return typeof x===i||e&&x.event.triggered===e.type?t:x.event.dispatch.apply(f.elem,arguments)},f.elem=e),n=(n||"").match(T)||[""],u=n.length;while(u--)s=rt.exec(n[u])||[],g=y=s[1],m=(s[2]||"").split(".").sort(),g&&(p=x.event.special[g]||{},g=(a?p.delegateType:p.bindType)||g,p=x.event.special[g]||{},d=x.extend({type:g,origType:y,data:o,handler:r,guid:r.guid,selector:a,needsContext:a&&x.expr.match.needsContext.test(a),namespace:m.join(".")},c),(h=l[g])||(h=l[g]=[],h.delegateCount=0,p.setup&&p.setup.call(e,o,m,f)!==!1||(e.addEventListener?e.addEventListener(g,f,!1):e.attachEvent&&e.attachEvent("on"+g,f))),p.add&&(p.add.call(e,d),d.handler.guid||(d.handler.guid=r.guid)),a?h.splice(h.delegateCount++,0,d):h.push(d),x.event.global[g]=!0);e=null}},remove:function(e,t,n,r,i){var o,a,s,l,u,c,p,f,d,h,g,m=x.hasData(e)&&x._data(e);if(m&&(c=m.events)){t=(t||"").match(T)||[""],u=t.length;while(u--)if(s=rt.exec(t[u])||[],d=g=s[1],h=(s[2]||"").split(".").sort(),d){p=x.event.special[d]||{},d=(r?p.delegateType:p.bindType)||d,f=c[d]||[],s=s[2]&&RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=o=f.length;while(o--)a=f[o],!i&&g!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||r&&r!==a.selector&&("**"!==r||!a.selector)||(f.splice(o,1),a.selector&&f.delegateCount--,p.remove&&p.remove.call(e,a));l&&!f.length&&(p.teardown&&p.teardown.call(e,h,m.handle)!==!1||x.removeEvent(e,d,m.handle),delete c[d])}else for(d in c)x.event.remove(e,d+t[u],n,r,!0);x.isEmptyObject(c)&&(delete m.handle,x._removeData(e,"events"))}},trigger:function(n,r,i,o){var s,l,u,c,p,f,d,h=[i||a],g=v.call(n,"type")?n.type:n,m=v.call(n,"namespace")?n.namespace.split("."):[];if(u=f=i=i||a,3!==i.nodeType&&8!==i.nodeType&&!nt.test(g+x.event.triggered)&&(g.indexOf(".")>=0&&(m=g.split("."),g=m.shift(),m.sort()),l=0>g.indexOf(":")&&"on"+g,n=n[x.expando]?n:new x.Event(g,"object"==typeof n&&n),n.isTrigger=o?2:3,n.namespace=m.join("."),n.namespace_re=n.namespace?RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,n.result=t,n.target||(n.target=i),r=null==r?[n]:x.makeArray(r,[n]),p=x.event.special[g]||{},o||!p.trigger||p.trigger.apply(i,r)!==!1)){if(!o&&!p.noBubble&&!x.isWindow(i)){for(c=p.delegateType||g,nt.test(c+g)||(u=u.parentNode);u;u=u.parentNode)h.push(u),f=u;f===(i.ownerDocument||a)&&h.push(f.defaultView||f.parentWindow||e)}d=0;while((u=h[d++])&&!n.isPropagationStopped())n.type=d>1?c:p.bindType||g,s=(x._data(u,"events")||{})[n.type]&&x._data(u,"handle"),s&&s.apply(u,r),s=l&&u[l],s&&x.acceptData(u)&&s.apply&&s.apply(u,r)===!1&&n.preventDefault();if(n.type=g,!o&&!n.isDefaultPrevented()&&(!p._default||p._default.apply(h.pop(),r)===!1)&&x.acceptData(i)&&l&&i[g]&&!x.isWindow(i)){f=i[l],f&&(i[l]=null),x.event.triggered=g;try{i[g]()}catch(y){}x.event.triggered=t,f&&(i[l]=f)}return n.result}},dispatch:function(e){e=x.event.fix(e);var n,r,i,o,a,s=[],l=g.call(arguments),u=(x._data(this,"events")||{})[e.type]||[],c=x.event.special[e.type]||{};if(l[0]=e,e.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,e)!==!1){s=x.event.handlers.call(this,e,u),n=0;while((o=s[n++])&&!e.isPropagationStopped()){e.currentTarget=o.elem,a=0;while((i=o.handlers[a++])&&!e.isImmediatePropagationStopped())(!e.namespace_re||e.namespace_re.test(i.namespace))&&(e.handleObj=i,e.data=i.data,r=((x.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,l),r!==t&&(e.result=r)===!1&&(e.preventDefault(),e.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,e),e.result}},handlers:function(e,n){var r,i,o,a,s=[],l=n.delegateCount,u=e.target;if(l&&u.nodeType&&(!e.button||"click"!==e.type))for(;u!=this;u=u.parentNode||this)if(1===u.nodeType&&(u.disabled!==!0||"click"!==e.type)){for(o=[],a=0;l>a;a++)i=n[a],r=i.selector+" ",o[r]===t&&(o[r]=i.needsContext?x(r,this).index(u)>=0:x.find(r,this,null,[u]).length),o[r]&&o.push(i);o.length&&s.push({elem:u,handlers:o})}return n.length>l&&s.push({elem:this,handlers:n.slice(l)}),s},fix:function(e){if(e[x.expando])return e;var t,n,r,i=e.type,o=e,s=this.fixHooks[i];s||(this.fixHooks[i]=s=tt.test(i)?this.mouseHooks:et.test(i)?this.keyHooks:{}),r=s.props?this.props.concat(s.props):this.props,e=new x.Event(o),t=r.length;while(t--)n=r[t],e[n]=o[n];return e.target||(e.target=o.srcElement||a),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,s.filter?s.filter(e,o):e},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,n){var r,i,o,s=n.button,l=n.fromElement;return null==e.pageX&&null!=n.clientX&&(i=e.target.ownerDocument||a,o=i.documentElement,r=i.body,e.pageX=n.clientX+(o&&o.scrollLeft||r&&r.scrollLeft||0)-(o&&o.clientLeft||r&&r.clientLeft||0),e.pageY=n.clientY+(o&&o.scrollTop||r&&r.scrollTop||0)-(o&&o.clientTop||r&&r.clientTop||0)),!e.relatedTarget&&l&&(e.relatedTarget=l===e.target?n.toElement:l),e.which||s===t||(e.which=1&s?1:2&s?3:4&s?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==at()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){return this===at()&&this.blur?(this.blur(),!1):t},delegateType:"focusout"},click:{trigger:function(){return x.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):t},_default:function(e){return x.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){e.result!==t&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=x.extend(new x.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?x.event.trigger(i,null,t):x.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},x.removeEvent=a.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){var r="on"+t;e.detachEvent&&(typeof e[r]===i&&(e[r]=null),e.detachEvent(r,n))},x.Event=function(e,n){return this instanceof x.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.returnValue===!1||e.getPreventDefault&&e.getPreventDefault()?it:ot):this.type=e,n&&x.extend(this,n),this.timeStamp=e&&e.timeStamp||x.now(),this[x.expando]=!0,t):new x.Event(e,n)},x.Event.prototype={isDefaultPrevented:ot,isPropagationStopped:ot,isImmediatePropagationStopped:ot,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=it,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=it,e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=it,this.stopPropagation()}},x.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){x.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return(!i||i!==r&&!x.contains(r,i))&&(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),x.support.submitBubbles||(x.event.special.submit={setup:function(){return x.nodeName(this,"form")?!1:(x.event.add(this,"click._submit keypress._submit",function(e){var n=e.target,r=x.nodeName(n,"input")||x.nodeName(n,"button")?n.form:t;r&&!x._data(r,"submitBubbles")&&(x.event.add(r,"submit._submit",function(e){e._submit_bubble=!0}),x._data(r,"submitBubbles",!0))}),t)},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&x.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){return x.nodeName(this,"form")?!1:(x.event.remove(this,"._submit"),t)}}),x.support.changeBubbles||(x.event.special.change={setup:function(){return Z.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(x.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)}),x.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),x.event.simulate("change",this,e,!0)})),!1):(x.event.add(this,"beforeactivate._change",function(e){var t=e.target;Z.test(t.nodeName)&&!x._data(t,"changeBubbles")&&(x.event.add(t,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||x.event.simulate("change",this.parentNode,e,!0)}),x._data(t,"changeBubbles",!0))}),t)},handle:function(e){var n=e.target;return this!==n||e.isSimulated||e.isTrigger||"radio"!==n.type&&"checkbox"!==n.type?e.handleObj.handler.apply(this,arguments):t},teardown:function(){return x.event.remove(this,"._change"),!Z.test(this.nodeName)}}),x.support.focusinBubbles||x.each({focus:"focusin",blur:"focusout"},function(e,t){var n=0,r=function(e){x.event.simulate(t,e.target,x.event.fix(e),!0)};x.event.special[t]={setup:function(){0===n++&&a.addEventListener(e,r,!0)},teardown:function(){0===--n&&a.removeEventListener(e,r,!0)}}}),x.fn.extend({on:function(e,n,r,i,o){var a,s;if("object"==typeof e){"string"!=typeof n&&(r=r||n,n=t);for(a in e)this.on(a,n,r,e[a],o);return this}if(null==r&&null==i?(i=n,r=n=t):null==i&&("string"==typeof n?(i=r,r=t):(i=r,r=n,n=t)),i===!1)i=ot;else if(!i)return this;return 1===o&&(s=i,i=function(e){return x().off(e),s.apply(this,arguments)},i.guid=s.guid||(s.guid=x.guid++)),this.each(function(){x.event.add(this,e,i,r,n)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,n,r){var i,o;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,x(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(o in e)this.off(o,n,e[o]);return this}return(n===!1||"function"==typeof n)&&(r=n,n=t),r===!1&&(r=ot),this.each(function(){x.event.remove(this,e,r,n)})},trigger:function(e,t){return this.each(function(){x.event.trigger(e,t,this)})},triggerHandler:function(e,n){var r=this[0];return r?x.event.trigger(e,n,r,!0):t}});var st=/^.[^:#\[\.,]*$/,lt=/^(?:parents|prev(?:Until|All))/,ut=x.expr.match.needsContext,ct={children:!0,contents:!0,next:!0,prev:!0};x.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if("string"!=typeof e)return this.pushStack(x(e).filter(function(){for(t=0;i>t;t++)if(x.contains(r[t],this))return!0}));for(t=0;i>t;t++)x.find(e,r[t],n);return n=this.pushStack(i>1?x.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},has:function(e){var t,n=x(e,this),r=n.length;return this.filter(function(){for(t=0;r>t;t++)if(x.contains(this,n[t]))return!0})},not:function(e){return this.pushStack(ft(this,e||[],!0))},filter:function(e){return this.pushStack(ft(this,e||[],!1))},is:function(e){return!!ft(this,"string"==typeof e&&ut.test(e)?x(e):e||[],!1).length},closest:function(e,t){var n,r=0,i=this.length,o=[],a=ut.test(e)||"string"!=typeof e?x(e,t||this.context):0;for(;i>r;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(11>n.nodeType&&(a?a.index(n)>-1:1===n.nodeType&&x.find.matchesSelector(n,e))){n=o.push(n);break}return this.pushStack(o.length>1?x.unique(o):o)},index:function(e){return e?"string"==typeof e?x.inArray(this[0],x(e)):x.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){var n="string"==typeof e?x(e,t):x.makeArray(e&&e.nodeType?[e]:e),r=x.merge(this.get(),n);return this.pushStack(x.unique(r))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}});function pt(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}x.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return x.dir(e,"parentNode")},parentsUntil:function(e,t,n){return x.dir(e,"parentNode",n)},next:function(e){return pt(e,"nextSibling")},prev:function(e){return pt(e,"previousSibling")},nextAll:function(e){return x.dir(e,"nextSibling")},prevAll:function(e){return x.dir(e,"previousSibling")},nextUntil:function(e,t,n){return x.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return x.dir(e,"previousSibling",n)},siblings:function(e){return x.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return x.sibling(e.firstChild)},contents:function(e){return x.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:x.merge([],e.childNodes)}},function(e,t){x.fn[e]=function(n,r){var i=x.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=x.filter(r,i)),this.length>1&&(ct[e]||(i=x.unique(i)),lt.test(e)&&(i=i.reverse())),this.pushStack(i)}}),x.extend({filter:function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?x.find.matchesSelector(r,e)?[r]:[]:x.find.matches(e,x.grep(t,function(e){return 1===e.nodeType}))},dir:function(e,n,r){var i=[],o=e[n];while(o&&9!==o.nodeType&&(r===t||1!==o.nodeType||!x(o).is(r)))1===o.nodeType&&i.push(o),o=o[n];return i},sibling:function(e,t){var n=[];for(;e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}});function ft(e,t,n){if(x.isFunction(t))return x.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return x.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(st.test(t))return x.filter(t,e,n);t=x.filter(t,e)}return x.grep(e,function(e){return x.inArray(e,t)>=0!==n})}function dt(e){var t=ht.split("|"),n=e.createDocumentFragment();if(n.createElement)while(t.length)n.createElement(t.pop());return n}var ht="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",gt=/ jQuery\d+="(?:null|\d+)"/g,mt=RegExp("<(?:"+ht+")[\\s/>]","i"),yt=/^\s+/,vt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,bt=/<([\w:]+)/,xt=/\s*$/g,At={option:[1,""],legend:[1,"
","
"],area:[1,"",""],param:[1,"",""],thead:[1,"","
"],tr:[2,"","
"],col:[2,"","
"],td:[3,"","
"],_default:x.support.htmlSerialize?[0,"",""]:[1,"X
","
"]},jt=dt(a),Dt=jt.appendChild(a.createElement("div"));At.optgroup=At.option,At.tbody=At.tfoot=At.colgroup=At.caption=At.thead,At.th=At.td,x.fn.extend({text:function(e){return x.access(this,function(e){return e===t?x.text(this):this.empty().append((this[0]&&this[0].ownerDocument||a).createTextNode(e))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Lt(this,e);t.appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Lt(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){var n,r=e?x.filter(e,this):this,i=0;for(;null!=(n=r[i]);i++)t||1!==n.nodeType||x.cleanData(Ft(n)),n.parentNode&&(t&&x.contains(n.ownerDocument,n)&&_t(Ft(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){var e,t=0;for(;null!=(e=this[t]);t++){1===e.nodeType&&x.cleanData(Ft(e,!1));while(e.firstChild)e.removeChild(e.firstChild);e.options&&x.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return x.clone(this,e,t)})},html:function(e){return x.access(this,function(e){var n=this[0]||{},r=0,i=this.length;if(e===t)return 1===n.nodeType?n.innerHTML.replace(gt,""):t;if(!("string"!=typeof e||Tt.test(e)||!x.support.htmlSerialize&&mt.test(e)||!x.support.leadingWhitespace&&yt.test(e)||At[(bt.exec(e)||["",""])[1].toLowerCase()])){e=e.replace(vt,"<$1>");try{for(;i>r;r++)n=this[r]||{},1===n.nodeType&&(x.cleanData(Ft(n,!1)),n.innerHTML=e);n=0}catch(o){}}n&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=x.map(this,function(e){return[e.nextSibling,e.parentNode]}),t=0;return this.domManip(arguments,function(n){var r=e[t++],i=e[t++];i&&(r&&r.parentNode!==i&&(r=this.nextSibling),x(this).remove(),i.insertBefore(n,r))},!0),t?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t,n){e=d.apply([],e);var r,i,o,a,s,l,u=0,c=this.length,p=this,f=c-1,h=e[0],g=x.isFunction(h);if(g||!(1>=c||"string"!=typeof h||x.support.checkClone)&&Nt.test(h))return this.each(function(r){var i=p.eq(r);g&&(e[0]=h.call(this,r,i.html())),i.domManip(e,t,n)});if(c&&(l=x.buildFragment(e,this[0].ownerDocument,!1,!n&&this),r=l.firstChild,1===l.childNodes.length&&(l=r),r)){for(a=x.map(Ft(l,"script"),Ht),o=a.length;c>u;u++)i=l,u!==f&&(i=x.clone(i,!0,!0),o&&x.merge(a,Ft(i,"script"))),t.call(this[u],i,u);if(o)for(s=a[a.length-1].ownerDocument,x.map(a,qt),u=0;o>u;u++)i=a[u],kt.test(i.type||"")&&!x._data(i,"globalEval")&&x.contains(s,i)&&(i.src?x._evalUrl(i.src):x.globalEval((i.text||i.textContent||i.innerHTML||"").replace(St,"")));l=r=null}return this}});function Lt(e,t){return x.nodeName(e,"table")&&x.nodeName(1===t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function Ht(e){return e.type=(null!==x.find.attr(e,"type"))+"/"+e.type,e}function qt(e){var t=Et.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function _t(e,t){var n,r=0;for(;null!=(n=e[r]);r++)x._data(n,"globalEval",!t||x._data(t[r],"globalEval"))}function Mt(e,t){if(1===t.nodeType&&x.hasData(e)){var n,r,i,o=x._data(e),a=x._data(t,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(r=0,i=s[n].length;i>r;r++)x.event.add(t,n,s[n][r])}a.data&&(a.data=x.extend({},a.data))}}function Ot(e,t){var n,r,i;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!x.support.noCloneEvent&&t[x.expando]){i=x._data(t);for(r in i.events)x.removeEvent(t,r,i.handle);t.removeAttribute(x.expando)}"script"===n&&t.text!==e.text?(Ht(t).text=e.text,qt(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),x.support.html5Clone&&e.innerHTML&&!x.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&Ct.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}}x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){x.fn[e]=function(e){var n,r=0,i=[],o=x(e),a=o.length-1;for(;a>=r;r++)n=r===a?this:this.clone(!0),x(o[r])[t](n),h.apply(i,n.get());return this.pushStack(i)}});function Ft(e,n){var r,o,a=0,s=typeof e.getElementsByTagName!==i?e.getElementsByTagName(n||"*"):typeof e.querySelectorAll!==i?e.querySelectorAll(n||"*"):t;if(!s)for(s=[],r=e.childNodes||e;null!=(o=r[a]);a++)!n||x.nodeName(o,n)?s.push(o):x.merge(s,Ft(o,n));return n===t||n&&x.nodeName(e,n)?x.merge([e],s):s}function Bt(e){Ct.test(e.type)&&(e.defaultChecked=e.checked)}x.extend({clone:function(e,t,n){var r,i,o,a,s,l=x.contains(e.ownerDocument,e);if(x.support.html5Clone||x.isXMLDoc(e)||!mt.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(Dt.innerHTML=e.outerHTML,Dt.removeChild(o=Dt.firstChild)),!(x.support.noCloneEvent&&x.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||x.isXMLDoc(e)))for(r=Ft(o),s=Ft(e),a=0;null!=(i=s[a]);++a)r[a]&&Ot(i,r[a]);if(t)if(n)for(s=s||Ft(e),r=r||Ft(o),a=0;null!=(i=s[a]);a++)Mt(i,r[a]);else Mt(e,o);return r=Ft(o,"script"),r.length>0&&_t(r,!l&&Ft(e,"script")),r=s=i=null,o},buildFragment:function(e,t,n,r){var i,o,a,s,l,u,c,p=e.length,f=dt(t),d=[],h=0;for(;p>h;h++)if(o=e[h],o||0===o)if("object"===x.type(o))x.merge(d,o.nodeType?[o]:o);else if(wt.test(o)){s=s||f.appendChild(t.createElement("div")),l=(bt.exec(o)||["",""])[1].toLowerCase(),c=At[l]||At._default,s.innerHTML=c[1]+o.replace(vt,"<$1>")+c[2],i=c[0];while(i--)s=s.lastChild;if(!x.support.leadingWhitespace&&yt.test(o)&&d.push(t.createTextNode(yt.exec(o)[0])),!x.support.tbody){o="table"!==l||xt.test(o)?""!==c[1]||xt.test(o)?0:s:s.firstChild,i=o&&o.childNodes.length;while(i--)x.nodeName(u=o.childNodes[i],"tbody")&&!u.childNodes.length&&o.removeChild(u)}x.merge(d,s.childNodes),s.textContent="";while(s.firstChild)s.removeChild(s.firstChild);s=f.lastChild}else d.push(t.createTextNode(o));s&&f.removeChild(s),x.support.appendChecked||x.grep(Ft(d,"input"),Bt),h=0;while(o=d[h++])if((!r||-1===x.inArray(o,r))&&(a=x.contains(o.ownerDocument,o),s=Ft(f.appendChild(o),"script"),a&&_t(s),n)){i=0;while(o=s[i++])kt.test(o.type||"")&&n.push(o)}return s=null,f},cleanData:function(e,t){var n,r,o,a,s=0,l=x.expando,u=x.cache,c=x.support.deleteExpando,f=x.event.special;for(;null!=(n=e[s]);s++)if((t||x.acceptData(n))&&(o=n[l],a=o&&u[o])){if(a.events)for(r in a.events)f[r]?x.event.remove(n,r):x.removeEvent(n,r,a.handle); +u[o]&&(delete u[o],c?delete n[l]:typeof n.removeAttribute!==i?n.removeAttribute(l):n[l]=null,p.push(o))}},_evalUrl:function(e){return x.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})}}),x.fn.extend({wrapAll:function(e){if(x.isFunction(e))return this.each(function(t){x(this).wrapAll(e.call(this,t))});if(this[0]){var t=x(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstChild&&1===e.firstChild.nodeType)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return x.isFunction(e)?this.each(function(t){x(this).wrapInner(e.call(this,t))}):this.each(function(){var t=x(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=x.isFunction(e);return this.each(function(n){x(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){x.nodeName(this,"body")||x(this).replaceWith(this.childNodes)}).end()}});var Pt,Rt,Wt,$t=/alpha\([^)]*\)/i,It=/opacity\s*=\s*([^)]*)/,zt=/^(top|right|bottom|left)$/,Xt=/^(none|table(?!-c[ea]).+)/,Ut=/^margin/,Vt=RegExp("^("+w+")(.*)$","i"),Yt=RegExp("^("+w+")(?!px)[a-z%]+$","i"),Jt=RegExp("^([+-])=("+w+")","i"),Gt={BODY:"block"},Qt={position:"absolute",visibility:"hidden",display:"block"},Kt={letterSpacing:0,fontWeight:400},Zt=["Top","Right","Bottom","Left"],en=["Webkit","O","Moz","ms"];function tn(e,t){if(t in e)return t;var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=en.length;while(i--)if(t=en[i]+n,t in e)return t;return r}function nn(e,t){return e=t||e,"none"===x.css(e,"display")||!x.contains(e.ownerDocument,e)}function rn(e,t){var n,r,i,o=[],a=0,s=e.length;for(;s>a;a++)r=e[a],r.style&&(o[a]=x._data(r,"olddisplay"),n=r.style.display,t?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&nn(r)&&(o[a]=x._data(r,"olddisplay",ln(r.nodeName)))):o[a]||(i=nn(r),(n&&"none"!==n||!i)&&x._data(r,"olddisplay",i?n:x.css(r,"display"))));for(a=0;s>a;a++)r=e[a],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[a]||"":"none"));return e}x.fn.extend({css:function(e,n){return x.access(this,function(e,n,r){var i,o,a={},s=0;if(x.isArray(n)){for(o=Rt(e),i=n.length;i>s;s++)a[n[s]]=x.css(e,n[s],!1,o);return a}return r!==t?x.style(e,n,r):x.css(e,n)},e,n,arguments.length>1)},show:function(){return rn(this,!0)},hide:function(){return rn(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){nn(this)?x(this).show():x(this).hide()})}}),x.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Wt(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":x.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,n,r,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,a,s,l=x.camelCase(n),u=e.style;if(n=x.cssProps[l]||(x.cssProps[l]=tn(u,l)),s=x.cssHooks[n]||x.cssHooks[l],r===t)return s&&"get"in s&&(o=s.get(e,!1,i))!==t?o:u[n];if(a=typeof r,"string"===a&&(o=Jt.exec(r))&&(r=(o[1]+1)*o[2]+parseFloat(x.css(e,n)),a="number"),!(null==r||"number"===a&&isNaN(r)||("number"!==a||x.cssNumber[l]||(r+="px"),x.support.clearCloneStyle||""!==r||0!==n.indexOf("background")||(u[n]="inherit"),s&&"set"in s&&(r=s.set(e,r,i))===t)))try{u[n]=r}catch(c){}}},css:function(e,n,r,i){var o,a,s,l=x.camelCase(n);return n=x.cssProps[l]||(x.cssProps[l]=tn(e.style,l)),s=x.cssHooks[n]||x.cssHooks[l],s&&"get"in s&&(a=s.get(e,!0,r)),a===t&&(a=Wt(e,n,i)),"normal"===a&&n in Kt&&(a=Kt[n]),""===r||r?(o=parseFloat(a),r===!0||x.isNumeric(o)?o||0:a):a}}),e.getComputedStyle?(Rt=function(t){return e.getComputedStyle(t,null)},Wt=function(e,n,r){var i,o,a,s=r||Rt(e),l=s?s.getPropertyValue(n)||s[n]:t,u=e.style;return s&&(""!==l||x.contains(e.ownerDocument,e)||(l=x.style(e,n)),Yt.test(l)&&Ut.test(n)&&(i=u.width,o=u.minWidth,a=u.maxWidth,u.minWidth=u.maxWidth=u.width=l,l=s.width,u.width=i,u.minWidth=o,u.maxWidth=a)),l}):a.documentElement.currentStyle&&(Rt=function(e){return e.currentStyle},Wt=function(e,n,r){var i,o,a,s=r||Rt(e),l=s?s[n]:t,u=e.style;return null==l&&u&&u[n]&&(l=u[n]),Yt.test(l)&&!zt.test(n)&&(i=u.left,o=e.runtimeStyle,a=o&&o.left,a&&(o.left=e.currentStyle.left),u.left="fontSize"===n?"1em":l,l=u.pixelLeft+"px",u.left=i,a&&(o.left=a)),""===l?"auto":l});function on(e,t,n){var r=Vt.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function an(e,t,n,r,i){var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;for(;4>o;o+=2)"margin"===n&&(a+=x.css(e,n+Zt[o],!0,i)),r?("content"===n&&(a-=x.css(e,"padding"+Zt[o],!0,i)),"margin"!==n&&(a-=x.css(e,"border"+Zt[o]+"Width",!0,i))):(a+=x.css(e,"padding"+Zt[o],!0,i),"padding"!==n&&(a+=x.css(e,"border"+Zt[o]+"Width",!0,i)));return a}function sn(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=Rt(e),a=x.support.boxSizing&&"border-box"===x.css(e,"boxSizing",!1,o);if(0>=i||null==i){if(i=Wt(e,t,o),(0>i||null==i)&&(i=e.style[t]),Yt.test(i))return i;r=a&&(x.support.boxSizingReliable||i===e.style[t]),i=parseFloat(i)||0}return i+an(e,t,n||(a?"border":"content"),r,o)+"px"}function ln(e){var t=a,n=Gt[e];return n||(n=un(e,t),"none"!==n&&n||(Pt=(Pt||x("