diff --git a/.gitignore b/.gitignore deleted file mode 100755 index 7e4260b..0000000 --- a/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -bin-debug -bin-release -/.git.7z diff --git a/README.md b/README.md deleted file mode 100755 index 4dd3788..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -fchart -====== - -flash actionscript chart diff --git a/config.js b/config.js deleted file mode 100755 index d470f45..0000000 --- a/config.js +++ /dev/null @@ -1,38 +0,0 @@ -;(function(){ -window.JC = window.JC|| {log:function(){}}; -JC.PATH = JC.PATH || scriptPath(); -/** - * requirejs config.js for JC Chart Project - */ -window.requirejs && -requirejs.config( { - baseUrl: JC.PATH - , urlArgs: 'v=20150204' - , paths: { - 'JC.common': 'modules/JC.common/0.3/common' - , 'JC.BaseMVC': 'modules/JC.BaseMVC/0.1/BaseMVC' - - , 'JC.FChart': 'modules/JC.FChart/0.1/FChart' - - , 'JC.FChartNormalData': 'modules/JC.FChartNormalData/0.1/FChart.NormalData' - , 'JC.FChartCircleData': 'modules/JC.FChartCircleData/0.1/FChart.FChartCircleData' - - , 'jquery.mousewheel': 'modules/jquery.mousewheel/3.1.12/jquery.mousewheel' - - , 'plugins.json2': 'modules/JSON/2/JSON' - , 'swfobject': 'modules/swfobject/2.3/swfobject' - , 'SWFObject': 'modules/swfobject/2.3/swfobject' - } -}); -/** - * 取当前脚本标签的 src路径 - * @static - * @return {string} 脚本所在目录的完整路径 - */ -function scriptPath(){ - var _sc = document.getElementsByTagName('script'), _sc = _sc[ _sc.length - 1 ], _path = _sc.getAttribute('src'); - if( /\//.test( _path ) ){ _path = _path.split('/'); _path.pop(); _path = _path.join('/') + '/'; } - else if( /\\/.test( _path ) ){ _path = _path.split('\\'); _path.pop(); _path = _path.join('\\') + '/'; } - return _path; -} -}()); diff --git a/docs/requirejs_compatibility.txt b/docs/requirejs_compatibility.txt deleted file mode 100644 index 1ec2639..0000000 --- a/docs/requirejs_compatibility.txt +++ /dev/null @@ -1,21 +0,0 @@ -;(function(define, _win) { 'use strict'; define( [ 'JChart.Base' ], function(){ -});}( typeof define === 'function' && define.amd ? define : - function ( _name, _require, _cb ) { - typeof _name == 'function' && ( _cb = _name ); - typeof _require == 'function' && ( _cb = _require ); - _cb && _cb(); - } - , window - ) -); - -;(function(define, _win) { 'use strict'; define( [ 'exCanvas', 'JChart.common' ], function(){ -});}( typeof define === 'function' && define.amd ? define : - function ( _name, _require, _cb ) { - typeof _name == 'function' && ( _cb = _name ); - typeof _require == 'function' && ( _cb = _require ); - _cb && _cb(); - } - , window - ) -); diff --git a/docs_api/api.js b/docs_api/api.js deleted file mode 100644 index a7a8292..0000000 --- a/docs_api/api.js +++ /dev/null @@ -1,20 +0,0 @@ -YUI.add("yuidoc-meta", function(Y) { - Y.YUIDoc = { meta: { - "classes": [ - "JC.BaseMVC", - "JC.BaseMVC.Model", - "JC.FChart", - "JC.FChartCircleData", - "JC.FChartNormalData", - "JC.common", - "JC.f", - "window.JSON", - "window.jQuery", - "window.jQuery.mousewheel", - "window.requirejs", - "window.swfobject" - ], - "modules": [], - "allModules": [] -} }; -}); \ No newline at end of file diff --git a/docs_api/assets/css/cssgrids-min.css b/docs_api/assets/css/cssgrids-min.css deleted file mode 100644 index 346a4c2..0000000 --- a/docs_api/assets/css/cssgrids-min.css +++ /dev/null @@ -1,2 +0,0 @@ -/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */ -.yui3-g{letter-spacing:-0.31em;*letter-spacing:normal;*word-spacing:-0.43em;text-rendering:optimizespeed}.opera-only :-o-prefocus,.yui3-g{word-spacing:-0.43em}.yui3-u{display:inline-block;zoom:1;*display:inline;letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto}.yui3-u-1,.yui3-u-1-2,.yui3-u-1-3,.yui3-u-2-3,.yui3-u-1-4,.yui3-u-3-4,.yui3-u-1-5,.yui3-u-2-5,.yui3-u-3-5,.yui3-u-4-5,.yui3-u-1-6,.yui3-u-5-6,.yui3-u-1-8,.yui3-u-3-8,.yui3-u-5-8,.yui3-u-7-8,.yui3-u-1-12,.yui3-u-5-12,.yui3-u-7-12,.yui3-u-11-12,.yui3-u-1-24,.yui3-u-5-24,.yui3-u-7-24,.yui3-u-11-24,.yui3-u-13-24,.yui3-u-17-24,.yui3-u-19-24,.yui3-u-23-24{display:inline-block;zoom:1;*display:inline;letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto}.yui3-u-1{display:block}.yui3-u-1-2{width:50%}.yui3-u-1-3{width:33.33333%}.yui3-u-2-3{width:66.66666%}.yui3-u-1-4{width:25%}.yui3-u-3-4{width:75%}.yui3-u-1-5{width:20%}.yui3-u-2-5{width:40%}.yui3-u-3-5{width:60%}.yui3-u-4-5{width:80%}.yui3-u-1-6{width:16.656%}.yui3-u-5-6{width:83.33%}.yui3-u-1-8{width:12.5%}.yui3-u-3-8{width:37.5%}.yui3-u-5-8{width:62.5%}.yui3-u-7-8{width:87.5%}.yui3-u-1-12{width:8.3333%}.yui3-u-5-12{width:41.6666%}.yui3-u-7-12{width:58.3333%}.yui3-u-11-12{width:91.6666%}.yui3-u-1-24{width:4.1666%}.yui3-u-5-24{width:20.8333%}.yui3-u-7-24{width:29.1666%}.yui3-u-11-24{width:45.8333%}.yui3-u-13-24{width:54.1666%}.yui3-u-17-24{width:70.8333%}.yui3-u-19-24{width:79.1666%}.yui3-u-23-24{width:95.8333%}#yui3-css-stamp.cssgrids{display:none} diff --git a/docs_api/assets/css/external-small.png b/docs_api/assets/css/external-small.png deleted file mode 100644 index 759a1cd..0000000 Binary files a/docs_api/assets/css/external-small.png and /dev/null differ diff --git a/docs_api/assets/css/images/sprite.png b/docs_api/assets/css/images/sprite.png deleted file mode 100644 index 321bc3f..0000000 Binary files a/docs_api/assets/css/images/sprite.png and /dev/null differ diff --git a/docs_api/assets/css/logo.png b/docs_api/assets/css/logo.png deleted file mode 100644 index 609b336..0000000 Binary files a/docs_api/assets/css/logo.png and /dev/null differ diff --git a/docs_api/assets/css/main.css b/docs_api/assets/css/main.css deleted file mode 100644 index d745d44..0000000 --- a/docs_api/assets/css/main.css +++ /dev/null @@ -1,783 +0,0 @@ -/* -Font sizes for all selectors other than the body are given in percentages, -with 100% equal to 13px. To calculate a font size percentage, multiply the -desired size in pixels by 7.6923076923. - -Here's a quick lookup table: - -10px - 76.923% -11px - 84.615% -12px - 92.308% -13px - 100% -14px - 107.692% -15px - 115.385% -16px - 123.077% -17px - 130.769% -18px - 138.462% -19px - 146.154% -20px - 153.846% -*/ - -html { - background: #fff; - color: #333; - overflow-y: scroll; -} - -body { - /*font: 13px/1.4 'Lucida Grande', 'Lucida Sans Unicode', 'DejaVu Sans', 'Bitstream Vera Sans', 'Helvetica', 'Arial', sans-serif;*/ - font: 13px/1.4 'Helvetica', 'Arial', sans-serif; - margin: 0; - padding: 0; -} - -/* -- Links ----------------------------------------------------------------- */ -a { - color: #356de4; - text-decoration: none; -} - -.hidden { - display: none; -} - -a:hover { text-decoration: underline; } - -/* "Jump to Table of Contents" link is shown to assistive tools, but hidden from - sight until it's focused. */ -.jump { - position: absolute; - padding: 3px 6px; - left: -99999px; - top: 0; -} - -.jump:focus { left: 40%; } - -/* -- Paragraphs ------------------------------------------------------------ */ -p { margin: 1.3em 0; } -dd p, td p { margin-bottom: 0; } -dd p:first-child, td p:first-child { margin-top: 0; } - -/* -- Headings -------------------------------------------------------------- */ -h1, h2, h3, h4, h5, h6 { - color: #D98527;/*was #f80*/ - font-family: 'Trebuchet MS', sans-serif; - font-weight: bold; - line-height: 1.1; - margin: 1.1em 0 0.5em; -} - -h1 { - font-size: 184.6%; - color: #30418C; - margin: 0.75em 0 0.5em; -} - -h2 { - font-size: 153.846%; - color: #E48A2B; -} - -h3 { font-size: 138.462%; } - -h4 { - border-bottom: 1px solid #DBDFEA; - color: #E48A2B; - font-size: 115.385%; - font-weight: normal; - padding-bottom: 2px; -} - -h5, h6 { font-size: 107.692%; } - -/* -- Code and examples ----------------------------------------------------- */ -code, kbd, pre, samp { - font-family: Menlo, Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; - font-size: 92.308%; - line-height: 1.35; -} - -p code, p kbd, p samp { - background: #FCFBFA; - border: 1px solid #EFEEED; - padding: 0 3px; -} - -a code, a kbd, a samp, -pre code, pre kbd, pre samp, -table code, table kbd, table samp, -.intro code, .intro kbd, .intro samp, -.toc code, .toc kbd, .toc samp { - background: none; - border: none; - padding: 0; -} - -pre.code, pre.terminal, pre.cmd { - overflow-x: auto; - *overflow-x: scroll; - padding: 0.3em 0.6em; -} - -pre.code { - background: #FCFBFA; - border: 1px solid #EFEEED; - border-left-width: 5px; -} - -pre.terminal, pre.cmd { - background: #F0EFFC; - border: 1px solid #D0CBFB; - border-left: 5px solid #D0CBFB; -} - -/* Don't reduce the font size of // elements inside
-   blocks. */
-pre code, pre kbd, pre samp { font-size: 100%; }
-
-/* Used to denote text that shouldn't be selectable, such as line numbers or
-   shell prompts. Guess which browser this doesn't work in. */
-.noselect {
-    -moz-user-select: -moz-none;
-    -khtml-user-select: none;
-    -webkit-user-select: none;
-    -o-user-select: none;
-    user-select: none;
-}
-
-/* -- Lists ----------------------------------------------------------------- */
-dd { margin: 0.2em 0 0.7em 1em; }
-dl { margin: 1em 0; }
-dt { font-weight: bold; }
-
-/* -- Tables ---------------------------------------------------------------- */
-caption, th { text-align: left; }
-
-table {
-    border-collapse: collapse;
-    width: 100%;
-}
-
-td, th {
-    border: 1px solid #fff;
-    padding: 5px 12px;
-    vertical-align: top;
-}
-
-td { background: #E6E9F5; }
-td dl { margin: 0; }
-td dl dl { margin: 1em 0; }
-td pre:first-child { margin-top: 0; }
-
-th {
-    background: #D2D7E6;/*#97A0BF*/
-    border-bottom: none;
-    border-top: none;
-    color: #000;/*#FFF1D5*/
-    font-family: 'Trebuchet MS', sans-serif;
-    font-weight: bold;
-    line-height: 1.3;
-    white-space: nowrap;
-}
-
-
-/* -- Layout and Content ---------------------------------------------------- */
-#doc {
-    margin: auto;
-    min-width: 1024px;
-}
-
-.content { padding: 0 20px 0 25px; }
-
-.sidebar {
-    padding: 0 15px 0 10px;
-}
-#bd {
-    padding: 7px 0 130px;
-    position: relative;
-    width: 99%;
-}
-
-/* -- Table of Contents ----------------------------------------------------- */
-
-/* The #toc id refers to the single global table of contents, while the .toc
-   class refers to generic TOC lists that could be used throughout the page. */
-
-.toc code, .toc kbd, .toc samp { font-size: 100%; }
-.toc li { font-weight: bold; }
-.toc li li { font-weight: normal; }
-
-/* -- Intro and Example Boxes ----------------------------------------------- */
-/*
-.intro, .example { margin-bottom: 2em; }
-.example {
-    -moz-border-radius: 4px;
-    -webkit-border-radius: 4px;
-    border-radius: 4px;
-    -moz-box-shadow: 0 0 5px #bfbfbf;
-    -webkit-box-shadow: 0 0 5px #bfbfbf;
-    box-shadow: 0 0 5px #bfbfbf;
-    padding: 1em;
-}
-.intro {
-    background: none repeat scroll 0 0 #F0F1F8; border: 1px solid #D4D8EB; padding: 0 1em;
-}
-*/
-
-/* -- Other Styles ---------------------------------------------------------- */
-
-/* These are probably YUI-specific, and should be moved out of Selleck's default
-   theme. */
-
-.button {
-    border: 1px solid #dadada;
-    -moz-border-radius: 3px;
-    -webkit-border-radius: 3px;
-    border-radius: 3px;
-    color: #444;
-    display: inline-block;
-    font-family: Helvetica, Arial, sans-serif;
-    font-size: 92.308%;
-    font-weight: bold;
-    padding: 4px 13px 3px;
-    -moz-text-shadow: 1px 1px 0 #fff;
-    -webkit-text-shadow: 1px 1px 0 #fff;
-    text-shadow: 1px 1px 0 #fff;
-    white-space: nowrap;
-
-    background: #EFEFEF; /* old browsers */
-    background: -moz-linear-gradient(top, #f5f5f5 0%, #efefef 50%, #e5e5e5 51%, #dfdfdf 100%); /* firefox */
-    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f5f5f5), color-stop(50%,#efefef), color-stop(51%,#e5e5e5), color-stop(100%,#dfdfdf)); /* webkit */
-    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f5f5f5', endColorstr='#dfdfdf',GradientType=0 ); /* ie */
-}
-
-.button:hover {
-    border-color: #466899;
-    color: #fff;
-    text-decoration: none;
-    -moz-text-shadow: 1px 1px 0 #222;
-    -webkit-text-shadow: 1px 1px 0 #222;
-    text-shadow: 1px 1px 0 #222;
-
-    background: #6396D8; /* old browsers */
-    background: -moz-linear-gradient(top, #6396D8 0%, #5A83BC 50%, #547AB7 51%, #466899 100%); /* firefox */
-    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#6396D8), color-stop(50%,#5A83BC), color-stop(51%,#547AB7), color-stop(100%,#466899)); /* webkit */
-    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#6396D8', endColorstr='#466899',GradientType=0 ); /* ie */
-}
-
-.newwindow { text-align: center; }
-
-.header .version em {
-    display: block;
-    text-align: right;
-}
-
-
-#classdocs .item {
-    border-bottom: 1px solid #466899;
-    margin: 1em 0;
-    padding: 1.5em;
-}
-
-#classdocs .item .params p,
-    #classdocs .item .returns p,{
-    display: inline;
-}
-
-#classdocs .item em code, #classdocs .item em.comment {
-    color: green;
-}
-
-#classdocs .item em.comment a {
-    color: green;
-    text-decoration: underline;
-}
-
-#classdocs .foundat {
-    font-size: 11px;
-    font-style: normal;
-}
-
-.attrs .emits {
-    margin-left: 2em;
-    padding: .5em;
-    border-left: 1px dashed #ccc;
-}
-
-abbr {
-    border-bottom: 1px dashed #ccc;
-    font-size: 80%;
-    cursor: help;
-}
-
-.prettyprint li.L0, 
-.prettyprint li.L1, 
-.prettyprint li.L2, 
-.prettyprint li.L3, 
-.prettyprint li.L5, 
-.prettyprint li.L6, 
-.prettyprint li.L7, 
-.prettyprint li.L8 {
-    list-style: decimal;
-}
-
-ul li p {
-    margin-top: 0;
-}
-
-.method .name {
-    font-size: 110%;
-}
-
-.apidocs .methods .extends .method,
-.apidocs .properties .extends .property,
-.apidocs .attrs .extends .attr,
-.apidocs .events .extends .event {
-    font-weight: bold;
-}
-
-.apidocs .methods .extends .inherited,
-.apidocs .properties .extends .inherited,
-.apidocs .attrs .extends .inherited,
-.apidocs .events .extends .inherited {
-    font-weight: normal;
-}
-
-#hd {
-    background: whiteSmoke;
-    background: -moz-linear-gradient(top,#DCDBD9 0,#F6F5F3 100%);
-    background: -webkit-gradient(linear,left top,left bottom,color-stop(0%,#DCDBD9),color-stop(100%,#F6F5F3));
-    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#dcdbd9',endColorstr='#F6F5F3',GradientType=0);
-    border-bottom: 1px solid #DFDFDF;
-    padding: 0 15px 1px 20px;
-    margin-bottom: 15px;
-}
-
-#hd img {
-    margin-right: 10px;
-    vertical-align: middle;
-}
-
-
-/* -- API Docs CSS ---------------------------------------------------------- */
-
-/*
-This file is organized so that more generic styles are nearer the top, and more
-specific styles are nearer the bottom of the file. This allows us to take full
-advantage of the cascade to avoid redundant style rules. Please respect this
-convention when making changes.
-*/
-
-/* -- Generic TabView styles ------------------------------------------------ */
-
-/*
-These styles apply to all API doc tabviews. To change styles only for a
-specific tabview, see the other sections below.
-*/
-
-.yui3-js-enabled .apidocs .tabview {
-    visibility: hidden; /* Hide until the TabView finishes rendering. */
-    _visibility: visible;
-}
-
-.apidocs .tabview.yui3-tabview-content { visibility: visible; }
-.apidocs .tabview .yui3-tabview-panel { background: #fff; }
-
-/* -- Generic Content Styles ------------------------------------------------ */
-
-/* Headings */
-h2, h3, h4, h5, h6 {
-    border: none;
-    color: #30418C;
-    font-weight: bold;
-    text-decoration: none;
-}
-
-.link-docs {
-    float: right;
-    font-size: 15px;
-    margin: 4px 4px 6px;
-    padding: 6px 30px 5px;
-}
-
-.apidocs { zoom: 1; }
-
-/* Generic box styles. */
-.apidocs .box {
-    border: 1px solid;
-    border-radius: 3px;
-    margin: 1em 0;
-    padding: 0 1em;
-}
-
-/* A flag is a compact, capsule-like indicator of some kind. It's used to
-   indicate private and protected items, item return types, etc. in an
-   attractive and unobtrusive way. */
-.apidocs .flag {
-    background: #bababa;
-    border-radius: 3px;
-    color: #fff;
-    font-size: 11px;
-    margin: 0 0.5em;
-    padding: 2px 4px 1px;
-}
-
-/* Class/module metadata such as "Uses", "Extends", "Defined in", etc. */
-.apidocs .meta {
-    background: #f9f9f9;
-    border-color: #efefef;
-    color: #555;
-    font-size: 11px;
-    padding: 3px 6px;
-}
-
-.apidocs .meta p { margin: 0; }
-
-/* Deprecation warning. */
-.apidocs .box.deprecated,
-.apidocs .flag.deprecated {
-    background: #fdac9f;
-    border: 1px solid #fd7775;
-}
-
-.apidocs .box.deprecated p { margin: 0.5em 0; }
-.apidocs .flag.deprecated { color: #333; }
-
-/* Module/Class intro description. */
-.apidocs .intro {
-    background: #f0f1f8;
-    border-color: #d4d8eb;
-}
-
-/* Loading spinners. */
-#bd.loading .apidocs,
-#api-list.loading .yui3-tabview-panel {
-    background: #fff url(../img/spinner.gif) no-repeat center 70px;
-    min-height: 150px;
-}
-
-#bd.loading .apidocs .content,
-#api-list.loading .yui3-tabview-panel .apis {
-    display: none;
-}
-
-.apidocs .no-visible-items { color: #666; }
-
-/* Generic inline list. */
-.apidocs ul.inline {
-    display: inline;
-    list-style: none;
-    margin: 0;
-    padding: 0;
-}
-
-.apidocs ul.inline li { display: inline; }
-
-/* Comma-separated list. */
-.apidocs ul.commas li:after { content: ','; }
-.apidocs ul.commas li:last-child:after { content: ''; }
-
-/* Keyboard shortcuts. */
-kbd .cmd { font-family: Monaco, Helvetica; }
-
-/* -- Generic Access Level styles ------------------------------------------- */
-.apidocs .item.protected,
-.apidocs .item.private,
-.apidocs .index-item.protected,
-.apidocs .index-item.deprecated,
-.apidocs .index-item.private {
-    display: none;
-}
-
-.show-deprecated .item.deprecated,
-.show-deprecated .index-item.deprecated,
-.show-protected .item.protected,
-.show-protected .index-item.protected,
-.show-private .item.private,
-.show-private .index-item.private {
-    display: block;
-}
-
-.hide-inherited .item.inherited,
-.hide-inherited .index-item.inherited {
-    display: none;
-}
-
-/* -- Generic Item Index styles --------------------------------------------- */
-.apidocs .index { margin: 1.5em 0 3em; }
-
-.apidocs .index h3 {
-    border-bottom: 1px solid #efefef;
-    color: #333;
-    font-size: 13px;
-    margin: 2em 0 0.6em;
-    padding-bottom: 2px;
-}
-
-.apidocs .index .no-visible-items { margin-top: 2em; }
-
-.apidocs .index-list {
-    border-color: #efefef;
-    font-size: 12px;
-    list-style: none;
-    margin: 0;
-    padding: 0;
-    -moz-column-count: 4;
-    -moz-column-gap: 10px;
-    -moz-column-width: 170px;
-    -ms-column-count: 4;
-    -ms-column-gap: 10px;
-    -ms-column-width: 170px;
-    -o-column-count: 4;
-    -o-column-gap: 10px;
-    -o-column-width: 170px;
-    -webkit-column-count: 4;
-    -webkit-column-gap: 10px;
-    -webkit-column-width: 170px;
-    column-count: 4;
-    column-gap: 10px;
-    column-width: 170px;
-}
-
-.apidocs .no-columns .index-list {
-    -moz-column-count: 1;
-    -ms-column-count: 1;
-    -o-column-count: 1;
-    -webkit-column-count: 1;
-    column-count: 1;
-}
-
-.apidocs .index-item { white-space: nowrap; }
-
-.apidocs .index-item .flag {
-    background: none;
-    border: none;
-    color: #afafaf;
-    display: inline;
-    margin: 0 0 0 0.2em;
-    padding: 0;
-}
-
-/* -- Generic API item styles ----------------------------------------------- */
-.apidocs .args {
-    display: inline;
-    margin: 0 0.5em;
-}
-
-.apidocs .flag.chainable { background: #46ca3b; }
-.apidocs .flag.protected { background: #9b86fc; }
-.apidocs .flag.private { background: #fd6b1b; }
-.apidocs .flag.async { background: #356de4; }
-.apidocs .flag.required { background: #e60923; }
-
-.apidocs .item {
-    border-bottom: 1px solid #efefef;
-    margin: 1.5em 0 2em;
-    padding-bottom: 2em;
-}
-
-.apidocs .item h4,
-.apidocs .item h5,
-.apidocs .item h6 {
-    color: #333;
-    font-family: inherit;
-    font-size: 100%;
-}
-
-.apidocs .item .description p,
-.apidocs .item pre.code {
-    margin: 1em 0 0;
-}
-
-.apidocs .item .meta {
-    background: none;
-    border: none;
-    padding: 0;
-}
-
-.apidocs .item .name {
-    display: inline;
-    font-size: 14px;
-}
-
-.apidocs .item .type,
-.apidocs .item .type a,
-.apidocs .returns-inline {
-    color: #555;
-}
-
-.apidocs .item .type,
-.apidocs .returns-inline {
-    font-size: 11px;
-    margin: 0 0 0 0;
-}
-
-.apidocs .item .type a { border-bottom: 1px dotted #afafaf; }
-.apidocs .item .type a:hover { border: none; }
-
-/* -- Item Parameter List --------------------------------------------------- */
-.apidocs .params-list {
-    list-style: square;
-    margin: 1em 0 0 2em;
-    padding: 0;
-}
-
-.apidocs .param { margin-bottom: 1em; }
-
-.apidocs .param .type,
-.apidocs .param .type a {
-    color: #666;
-}
-
-.apidocs .param .type {
-    margin: 0 0 0 0.5em;
-    *margin-left: 0.5em;
-}
-
-.apidocs .param-name { font-weight: bold; }
-
-/* -- Item "Emits" block ---------------------------------------------------- */
-.apidocs .item .emits {
-    background: #f9f9f9;
-    border-color: #eaeaea;
-}
-
-/* -- Item "Returns" block -------------------------------------------------- */
-.apidocs .item .returns .type,
-.apidocs .item .returns .type a {
-    font-size: 100%;
-    margin: 0;
-}
-
-/* -- Class Constructor block ----------------------------------------------- */
-.apidocs .constructor .item {
-    border: none;
-    padding-bottom: 0;
-}
-
-/* -- File Source View ------------------------------------------------------ */
-.apidocs .file pre.code,
-#doc .apidocs .file pre.prettyprint {
-    background: inherit;
-    border: none;
-    overflow: visible;
-    padding: 0;
-}
-
-.apidocs .L0,
-.apidocs .L1,
-.apidocs .L2,
-.apidocs .L3,
-.apidocs .L4,
-.apidocs .L5,
-.apidocs .L6,
-.apidocs .L7,
-.apidocs .L8,
-.apidocs .L9 {
-    background: inherit;
-}
-
-/* -- Submodule List -------------------------------------------------------- */
-.apidocs .module-submodule-description {
-    font-size: 12px;
-    margin: 0.3em 0 1em;
-}
-
-.apidocs .module-submodule-description p:first-child { margin-top: 0; }
-
-/* -- Sidebar TabView ------------------------------------------------------- */
-#api-tabview { margin-top: 0.6em; }
-
-#api-tabview-filter,
-#api-tabview-panel {
-    border: 1px solid #dfdfdf;
-}
-
-#api-tabview-filter {
-    border-bottom: none;
-    border-top: none;
-    padding: 0.6em 10px 0 10px;
-}
-
-#api-tabview-panel { border-top: none; }
-#api-filter { width: 97%; }
-
-/* -- Content TabView ------------------------------------------------------- */
-#classdocs .yui3-tabview-panel { border: none; }
-
-/* -- Source File Contents -------------------------------------------------- */
-.prettyprint li.L0,
-.prettyprint li.L1,
-.prettyprint li.L2,
-.prettyprint li.L3,
-.prettyprint li.L5,
-.prettyprint li.L6,
-.prettyprint li.L7,
-.prettyprint li.L8 {
-    list-style: decimal;
-}
-
-/* -- API options ----------------------------------------------------------- */
-#api-options {
-    font-size: 11px;
-    margin-top: 2.2em;
-    position: absolute;
-    right: 1.5em;
-}
-
-/*#api-options label { margin-right: 0.6em; }*/
-
-/* -- API list -------------------------------------------------------------- */
-#api-list {
-    margin-top: 1.5em;
-    *zoom: 1;
-}
-
-.apis {
-    font-size: 12px;
-    line-height: 1.4;
-    list-style: none;
-    margin: 0;
-    padding: 0.5em 0 0.5em 0.4em;
-}
-
-.apis a {
-    border: 1px solid transparent;
-    display: block;
-    margin: 0 0 0 -4px;
-    padding: 1px 4px 0;
-    text-decoration: none;
-    _border: none;
-    _display: inline;
-}
-
-.apis a:hover,
-.apis a:focus {
-    background: #E8EDFC;
-    background: -moz-linear-gradient(top, #e8edfc 0%, #becef7 100%);
-    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#E8EDFC), color-stop(100%,#BECEF7));
-    border-color: #AAC0FA;
-    border-radius: 3px;
-    color: #333;
-    outline: none;
-}
-
-.api-list-item a:hover,
-.api-list-item a:focus {
-    font-weight: bold;
-    text-shadow: 1px 1px 1px #fff;
-}
-
-.apis .message { color: #888; }
-.apis .result a { padding: 3px 5px 2px; }
-
-.apis .result .type {
-    right: 4px;
-    top: 7px;
-}
-
-.api-list-item .yui3-highlight {
-    font-weight: bold;
-}
-
diff --git a/docs_api/assets/css/prettify-min.css b/docs_api/assets/css/prettify-min.css
deleted file mode 100644
index d44b3a2..0000000
--- a/docs_api/assets/css/prettify-min.css
+++ /dev/null
@@ -1 +0,0 @@
-.pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px solid #888}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee}
\ No newline at end of file
diff --git a/docs_api/assets/css/tabview.css b/docs_api/assets/css/tabview.css
deleted file mode 100644
index 0daf3e8..0000000
--- a/docs_api/assets/css/tabview.css
+++ /dev/null
@@ -1,2 +0,0 @@
-/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */
-.yui3-tab-panel{display:none}.yui3-tab-panel-selected{display:block}.yui3-tabview-list,.yui3-tab{margin:0;padding:0;list-style:none}.yui3-tabview{position:relative}.yui3-tabview,.yui3-tabview-list,.yui3-tabview-panel,.yui3-tab,.yui3-tab-panel{zoom:1}.yui3-tab{display:inline-block;*display:inline;vertical-align:bottom;cursor:pointer}.yui3-tab-label{display:block;display:inline-block;padding:6px 10px;position:relative;text-decoration:none;vertical-align:bottom}.yui3-skin-sam .yui3-tabview-list{border:solid #2647a0;border-width:0 0 5px;zoom:1}.yui3-skin-sam .yui3-tab{margin:0 .2em 0 0;padding:1px 0 0;zoom:1}.yui3-skin-sam .yui3-tab-selected{margin-bottom:-1px}.yui3-skin-sam .yui3-tab-label{background:#d8d8d8 url(http://p4.qhimg.com/d/inn/5ee31427/sprite.png) repeat-x;border:solid #a3a3a3;border-width:1px 1px 0 1px;color:#000;cursor:pointer;font-size:85%;padding:.3em .75em;text-decoration:none}.yui3-skin-sam .yui3-tab-label:hover,.yui3-skin-sam .yui3-tab-label:focus{background:#bfdaff url(http://p4.qhimg.com/d/inn/5ee31427/sprite.png) repeat-x left -1300px;outline:0}.yui3-skin-sam .yui3-tab-selected .yui3-tab-label,.yui3-skin-sam .yui3-tab-selected .yui3-tab-label:focus,.yui3-skin-sam .yui3-tab-selected .yui3-tab-label:hover{background:#2647a0 url(http://p4.qhimg.com/d/inn/5ee31427/sprite.png) repeat-x left -1400px;color:#fff}.yui3-skin-sam .yui3-tab-selected .yui3-tab-label{padding:.4em .75em}.yui3-skin-sam .yui3-tab-selected .yui3-tab-label{border-color:#243356}.yui3-skin-sam .yui3-tabview-panel{background:#edf5ff}.yui3-skin-sam .yui3-tabview-panel{border:1px solid #808080;border-top-color:#243356;padding:.25em .5em}#yui3-css-stamp.skin-sam-tabview{display:none}
diff --git a/docs_api/assets/css/widget.css b/docs_api/assets/css/widget.css
deleted file mode 100644
index f19f60d..0000000
--- a/docs_api/assets/css/widget.css
+++ /dev/null
@@ -1,2 +0,0 @@
-/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */
-.yui3-widget-hidden{display:none}.yui3-widget-content{overflow:hidden}.yui3-widget-content-expanded{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box;height:100%}.yui3-widget-tmp-forcesize{overflow:hidden!important}#yui3-css-stamp.skin-sam-widget-base{display:none}
diff --git a/docs_api/assets/favicon.png b/docs_api/assets/favicon.png
deleted file mode 100644
index 5a95dda..0000000
Binary files a/docs_api/assets/favicon.png and /dev/null differ
diff --git a/docs_api/assets/img/spinner.gif b/docs_api/assets/img/spinner.gif
deleted file mode 100644
index 44f96ba..0000000
Binary files a/docs_api/assets/img/spinner.gif and /dev/null differ
diff --git a/docs_api/assets/index.html b/docs_api/assets/index.html
deleted file mode 100644
index 487fe15..0000000
--- a/docs_api/assets/index.html
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-    
-        Redirector
-        
-    
-    
-        Click here to redirect
-    
-
diff --git a/docs_api/assets/js/api-filter.js b/docs_api/assets/js/api-filter.js
deleted file mode 100644
index 37aefba..0000000
--- a/docs_api/assets/js/api-filter.js
+++ /dev/null
@@ -1,52 +0,0 @@
-YUI.add('api-filter', function (Y) {
-
-Y.APIFilter = Y.Base.create('apiFilter', Y.Base, [Y.AutoCompleteBase], {
-    // -- Initializer ----------------------------------------------------------
-    initializer: function () {
-        this._bindUIACBase();
-        this._syncUIACBase();
-    },
-    getDisplayName: function(name) {
-
-        Y.each(Y.YUIDoc.meta.allModules, function(i) {
-            if (i.name === name && i.displayName) {
-                name = i.displayName;
-            }
-        });
-
-        return name;
-    }
-
-}, {
-    // -- Attributes -----------------------------------------------------------
-    ATTRS: {
-        resultHighlighter: {
-            value: 'phraseMatch'
-        },
-
-        // May be set to "classes" or "modules".
-        queryType: {
-            value: 'classes'
-        },
-
-        source: {
-            valueFn: function() {
-                var self = this;
-                return function(q) {
-                    var data = Y.YUIDoc.meta[self.get('queryType')],
-                        out = [];
-                    Y.each(data, function(v) {
-                        if (v.toLowerCase().indexOf(q.toLowerCase()) > -1) {
-                            out.push(v);
-                        }
-                    });
-                    return out;
-                };
-            }
-        }
-    }
-});
-
-}, '3.4.0', {requires: [
-    'autocomplete-base', 'autocomplete-highlighters', 'autocomplete-sources'
-]});
diff --git a/docs_api/assets/js/api-list.js b/docs_api/assets/js/api-list.js
deleted file mode 100644
index 88905b5..0000000
--- a/docs_api/assets/js/api-list.js
+++ /dev/null
@@ -1,251 +0,0 @@
-YUI.add('api-list', function (Y) {
-
-var Lang   = Y.Lang,
-    YArray = Y.Array,
-
-    APIList = Y.namespace('APIList'),
-
-    classesNode    = Y.one('#api-classes'),
-    inputNode      = Y.one('#api-filter'),
-    modulesNode    = Y.one('#api-modules'),
-    tabviewNode    = Y.one('#api-tabview'),
-
-    tabs = APIList.tabs = {},
-
-    filter = APIList.filter = new Y.APIFilter({
-        inputNode : inputNode,
-        maxResults: 1000,
-
-        on: {
-            results: onFilterResults
-        }
-    }),
-
-    search = APIList.search = new Y.APISearch({
-        inputNode : inputNode,
-        maxResults: 100,
-
-        on: {
-            clear  : onSearchClear,
-            results: onSearchResults
-        }
-    }),
-
-    tabview = APIList.tabview = new Y.TabView({
-        srcNode  : tabviewNode,
-        panelNode: '#api-tabview-panel',
-        render   : true,
-
-        on: {
-            selectionChange: onTabSelectionChange
-        }
-    }),
-
-    focusManager = APIList.focusManager = tabviewNode.plug(Y.Plugin.NodeFocusManager, {
-        circular   : true,
-        descendants: '#api-filter, .yui3-tab-panel-selected .api-list-item a, .yui3-tab-panel-selected .result a',
-        keys       : {next: 'down:40', previous: 'down:38'}
-    }).focusManager,
-
-    LIST_ITEM_TEMPLATE =
-        '
  • ' + - '{displayName}' + - '
  • '; - -// -- Init --------------------------------------------------------------------- - -// Duckpunch FocusManager's key event handling to prevent it from handling key -// events when a modifier is pressed. -Y.before(function (e, activeDescendant) { - if (e.altKey || e.ctrlKey || e.metaKey || e.shiftKey) { - return new Y.Do.Prevent(); - } -}, focusManager, '_focusPrevious', focusManager); - -Y.before(function (e, activeDescendant) { - if (e.altKey || e.ctrlKey || e.metaKey || e.shiftKey) { - return new Y.Do.Prevent(); - } -}, focusManager, '_focusNext', focusManager); - -// Create a mapping of tabs in the tabview so we can refer to them easily later. -tabview.each(function (tab, index) { - var name = tab.get('label').toLowerCase(); - - tabs[name] = { - index: index, - name : name, - tab : tab - }; -}); - -// Switch tabs on Ctrl/Cmd-Left/Right arrows. -tabviewNode.on('key', onTabSwitchKey, 'down:37,39'); - -// Focus the filter input when the `/` key is pressed. -Y.one(Y.config.doc).on('key', onSearchKey, 'down:83'); - -// Keep the Focus Manager up to date. -inputNode.on('focus', function () { - focusManager.set('activeDescendant', inputNode); -}); - -// Update all tabview links to resolved URLs. -tabview.get('panelNode').all('a').each(function (link) { - link.setAttribute('href', link.get('href')); -}); - -// -- Private Functions -------------------------------------------------------- -function getFilterResultNode() { - return filter.get('queryType') === 'classes' ? classesNode : modulesNode; -} - -// -- Event Handlers ----------------------------------------------------------- -function onFilterResults(e) { - var frag = Y.one(Y.config.doc.createDocumentFragment()), - resultNode = getFilterResultNode(), - typePlural = filter.get('queryType'), - typeSingular = typePlural === 'classes' ? 'class' : 'module'; - - if (e.results.length) { - YArray.each(e.results, function (result) { - frag.append(Lang.sub(LIST_ITEM_TEMPLATE, { - rootPath : APIList.rootPath, - displayName : filter.getDisplayName(result.highlighted), - name : result.text, - typePlural : typePlural, - typeSingular: typeSingular - })); - }); - } else { - frag.append( - '
  • ' + - 'No ' + typePlural + ' found.' + - '
  • ' - ); - } - - resultNode.empty(true); - resultNode.append(frag); - - focusManager.refresh(); -} - -function onSearchClear(e) { - - focusManager.refresh(); -} - -function onSearchKey(e) { - var target = e.target; - - if (target.test('input,select,textarea') - || target.get('isContentEditable')) { - return; - } - - e.preventDefault(); - - inputNode.focus(); - focusManager.refresh(); -} - -function onSearchResults(e) { - var frag = Y.one(Y.config.doc.createDocumentFragment()); - - if (e.results.length) { - YArray.each(e.results, function (result) { - frag.append(result.display); - }); - } else { - frag.append( - '
  • ' + - 'No results found. Maybe you\'ll have better luck with a ' + - 'different query?' + - '
  • ' - ); - } - - - focusManager.refresh(); -} - -function onTabSelectionChange(e) { - var tab = e.newVal, - name = tab.get('label').toLowerCase(); - - tabs.selected = { - index: tab.get('index'), - name : name, - tab : tab - }; - - switch (name) { - case 'classes': // fallthru - case 'modules': - filter.setAttrs({ - minQueryLength: 0, - queryType : name - }); - - search.set('minQueryLength', -1); - - // Only send a request if this isn't the initially-selected tab. - if (e.prevVal) { - filter.sendRequest(filter.get('value')); - } - break; - - case 'everything': - filter.set('minQueryLength', -1); - search.set('minQueryLength', 1); - - if (search.get('value')) { - search.sendRequest(search.get('value')); - } else { - inputNode.focus(); - } - break; - - default: - // WTF? We shouldn't be here! - filter.set('minQueryLength', -1); - search.set('minQueryLength', -1); - } - - if (focusManager) { - setTimeout(function () { - focusManager.refresh(); - }, 1); - } -} - -function onTabSwitchKey(e) { - var currentTabIndex = tabs.selected.index; - - if (!(e.ctrlKey || e.metaKey)) { - return; - } - - e.preventDefault(); - - switch (e.keyCode) { - case 37: // left arrow - if (currentTabIndex > 0) { - tabview.selectChild(currentTabIndex - 1); - inputNode.focus(); - } - break; - - case 39: // right arrow - if (currentTabIndex < (Y.Object.size(tabs) - 2)) { - tabview.selectChild(currentTabIndex + 1); - inputNode.focus(); - } - break; - } -} - -}, '3.4.0', {requires: [ - 'api-filter', 'api-search', 'event-key', 'node-focusmanager', 'tabview' -]}); diff --git a/docs_api/assets/js/api-search.js b/docs_api/assets/js/api-search.js deleted file mode 100644 index 175f6a6..0000000 --- a/docs_api/assets/js/api-search.js +++ /dev/null @@ -1,98 +0,0 @@ -YUI.add('api-search', function (Y) { - -var Lang = Y.Lang, - Node = Y.Node, - YArray = Y.Array; - -Y.APISearch = Y.Base.create('apiSearch', Y.Base, [Y.AutoCompleteBase], { - // -- Public Properties ---------------------------------------------------- - RESULT_TEMPLATE: - '
  • ' + - '' + - '

    {name}

    ' + - '{resultType}' + - '
    {description}
    ' + - '{class}' + - '
    ' + - '
  • ', - - // -- Initializer ---------------------------------------------------------- - initializer: function () { - this._bindUIACBase(); - this._syncUIACBase(); - }, - - // -- Protected Methods ---------------------------------------------------- - _apiResultFilter: function (query, results) { - // Filter components out of the results. - return YArray.filter(results, function (result) { - return result.raw.resultType === 'component' ? false : result; - }); - }, - - _apiResultFormatter: function (query, results) { - return YArray.map(results, function (result) { - var raw = Y.merge(result.raw), // create a copy - desc = raw.description || ''; - - // Convert description to text and truncate it if necessary. - desc = Node.create('
    ' + desc + '
    ').get('text'); - - if (desc.length > 65) { - desc = Y.Escape.html(desc.substr(0, 65)) + ' …'; - } else { - desc = Y.Escape.html(desc); - } - - raw['class'] || (raw['class'] = ''); - raw.description = desc; - - // Use the highlighted result name. - raw.name = result.highlighted; - - return Lang.sub(this.RESULT_TEMPLATE, raw); - }, this); - }, - - _apiTextLocator: function (result) { - return result.displayName || result.name; - } -}, { - // -- Attributes ----------------------------------------------------------- - ATTRS: { - resultFormatter: { - valueFn: function () { - return this._apiResultFormatter; - } - }, - - resultFilters: { - valueFn: function () { - return this._apiResultFilter; - } - }, - - resultHighlighter: { - value: 'phraseMatch' - }, - - resultListLocator: { - value: 'data.results' - }, - - resultTextLocator: { - valueFn: function () { - return this._apiTextLocator; - } - }, - - source: { - value: '/api/v1/search?q={query}&count={maxResults}' - } - } -}); - -}, '3.4.0', {requires: [ - 'autocomplete-base', 'autocomplete-highlighters', 'autocomplete-sources', - 'escape' -]}); diff --git a/docs_api/assets/js/apidocs.js b/docs_api/assets/js/apidocs.js deleted file mode 100644 index c64bb46..0000000 --- a/docs_api/assets/js/apidocs.js +++ /dev/null @@ -1,370 +0,0 @@ -YUI().use( - 'yuidoc-meta', - 'api-list', 'history-hash', 'node-screen', 'node-style', 'pjax', -function (Y) { - -var win = Y.config.win, - localStorage = win.localStorage, - - bdNode = Y.one('#bd'), - - pjax, - defaultRoute, - - classTabView, - selectedTab; - -// Kill pjax functionality unless serving over HTTP. -if (!Y.getLocation().protocol.match(/^https?\:/)) { - Y.Router.html5 = false; -} - -// Create the default route with middleware which enables syntax highlighting -// on the loaded content. -defaultRoute = Y.Pjax.defaultRoute.concat(function (req, res, next) { - prettyPrint(); - bdNode.removeClass('loading'); - - next(); -}); - -pjax = new Y.Pjax({ - container : '#docs-main', - contentSelector: '#docs-main > .content', - linkSelector : '#bd a', - titleSelector : '#xhr-title', - - navigateOnHash: true, - root : '/', - routes : [ - // -- / ---------------------------------------------------------------- - { - path : '/(index.html)?', - callbacks: defaultRoute - }, - - // -- /classes/* ------------------------------------------------------- - { - path : '/classes/:class.html*', - callbacks: [defaultRoute, 'handleClasses'] - }, - - // -- /files/* --------------------------------------------------------- - { - path : '/files/*file', - callbacks: [defaultRoute, 'handleFiles'] - }, - - // -- /modules/* ------------------------------------------------------- - { - path : '/modules/:module.html*', - callbacks: defaultRoute - } - ] -}); - -// -- Utility Functions -------------------------------------------------------- - -pjax.checkVisibility = function (tab) { - tab || (tab = selectedTab); - - if (!tab) { return; } - - var panelNode = tab.get('panelNode'), - visibleItems; - - // If no items are visible in the tab panel due to the current visibility - // settings, display a message to that effect. - visibleItems = panelNode.all('.item,.index-item').some(function (itemNode) { - if (itemNode.getComputedStyle('display') !== 'none') { - return true; - } - }); - - panelNode.all('.no-visible-items').remove(); - - if (!visibleItems) { - if (Y.one('#index .index-item')) { - panelNode.append( - '
    ' + - '

    ' + - 'Some items are not shown due to the current visibility ' + - 'settings. Use the checkboxes at the upper right of this ' + - 'page to change the visibility settings.' + - '

    ' + - '
    ' - ); - } else { - panelNode.append( - '
    ' + - '

    ' + - 'This class doesn\'t provide any methods, properties, ' + - 'attributes, or events.' + - '

    ' + - '
    ' - ); - } - } - - // Hide index sections without any visible items. - Y.all('.index-section').each(function (section) { - var items = 0, - visibleItems = 0; - - section.all('.index-item').each(function (itemNode) { - items += 1; - - if (itemNode.getComputedStyle('display') !== 'none') { - visibleItems += 1; - } - }); - - section.toggleClass('hidden', !visibleItems); - section.toggleClass('no-columns', visibleItems < 4); - }); -}; - -pjax.initClassTabView = function () { - if (!Y.all('#classdocs .api-class-tab').size()) { - return; - } - - if (classTabView) { - classTabView.destroy(); - selectedTab = null; - } - - classTabView = new Y.TabView({ - srcNode: '#classdocs', - - on: { - selectionChange: pjax.onTabSelectionChange - } - }); - - pjax.updateTabState(); - classTabView.render(); -}; - -pjax.initLineNumbers = function () { - var hash = win.location.hash.substring(1), - container = pjax.get('container'), - hasLines, node; - - // Add ids for each line number in the file source view. - container.all('.linenums>li').each(function (lineNode, index) { - lineNode.set('id', 'l' + (index + 1)); - lineNode.addClass('file-line'); - hasLines = true; - }); - - // Scroll to the desired line. - if (hasLines && /^l\d+$/.test(hash)) { - if ((node = container.getById(hash))) { - win.scroll(0, node.getY()); - } - } -}; - -pjax.initRoot = function () { - var terminators = /^(?:classes|files|modules)$/, - parts = pjax._getPathRoot().split('/'), - root = [], - i, len, part; - - for (i = 0, len = parts.length; i < len; i += 1) { - part = parts[i]; - - if (part.match(terminators)) { - // Makes sure the path will end with a "/". - root.push(''); - break; - } - - root.push(part); - } - - pjax.set('root', root.join('/')); -}; - -pjax.updateTabState = function (src) { - var hash = win.location.hash.substring(1), - defaultTab, node, tab, tabPanel; - - function scrollToNode() { - if (node.hasClass('protected')) { - Y.one('#api-show-protected').set('checked', true); - pjax.updateVisibility(); - } - - if (node.hasClass('private')) { - Y.one('#api-show-private').set('checked', true); - pjax.updateVisibility(); - } - - setTimeout(function () { - // For some reason, unless we re-get the node instance here, - // getY() always returns 0. - var node = Y.one('#classdocs').getById(hash); - win.scrollTo(0, node.getY() - 70); - }, 1); - } - - if (!classTabView) { - return; - } - - if (src === 'hashchange' && !hash) { - defaultTab = 'index'; - } else { - if (localStorage) { - defaultTab = localStorage.getItem('tab_' + pjax.getPath()) || - 'index'; - } else { - defaultTab = 'index'; - } - } - - if (hash && (node = Y.one('#classdocs').getById(hash))) { - if ((tabPanel = node.ancestor('.api-class-tabpanel', true))) { - if ((tab = Y.one('#classdocs .api-class-tab.' + tabPanel.get('id')))) { - if (classTabView.get('rendered')) { - Y.Widget.getByNode(tab).set('selected', 1); - } else { - tab.addClass('yui3-tab-selected'); - } - } - } - - // Scroll to the desired element if this is a hash URL. - if (node) { - if (classTabView.get('rendered')) { - scrollToNode(); - } else { - classTabView.once('renderedChange', scrollToNode); - } - } - } else { - tab = Y.one('#classdocs .api-class-tab.' + defaultTab); - - // When the `defaultTab` node isn't found, `localStorage` is stale. - if (!tab && defaultTab !== 'index') { - tab = Y.one('#classdocs .api-class-tab.index'); - } - - if (classTabView.get('rendered')) { - Y.Widget.getByNode(tab).set('selected', 1); - } else { - tab.addClass('yui3-tab-selected'); - } - } -}; - -pjax.updateVisibility = function () { - var container = pjax.get('container'); - - container.toggleClass('hide-inherited', - !Y.one('#api-show-inherited').get('checked')); - - container.toggleClass('show-deprecated', - Y.one('#api-show-deprecated').get('checked')); - - container.toggleClass('show-protected', - Y.one('#api-show-protected').get('checked')); - - container.toggleClass('show-private', - Y.one('#api-show-private').get('checked')); - - pjax.checkVisibility(); -}; - -// -- Route Handlers ----------------------------------------------------------- - -pjax.handleClasses = function (req, res, next) { - var status = res.ioResponse.status; - - // Handles success and local filesystem XHRs. - if (!status || (status >= 200 && status < 300)) { - pjax.initClassTabView(); - } - - next(); -}; - -pjax.handleFiles = function (req, res, next) { - var status = res.ioResponse.status; - - // Handles success and local filesystem XHRs. - if (!status || (status >= 200 && status < 300)) { - pjax.initLineNumbers(); - } - - next(); -}; - -// -- Event Handlers ----------------------------------------------------------- - -pjax.onNavigate = function (e) { - var hash = e.hash, - originTarget = e.originEvent && e.originEvent.target, - tab; - - if (hash) { - tab = originTarget && originTarget.ancestor('.yui3-tab', true); - - if (hash === win.location.hash) { - pjax.updateTabState('hashchange'); - } else if (!tab) { - win.location.hash = hash; - } - - e.preventDefault(); - return; - } - - // Only scroll to the top of the page when the URL doesn't have a hash. - this.set('scrollToTop', !e.url.match(/#.+$/)); - - bdNode.addClass('loading'); -}; - -pjax.onOptionClick = function (e) { - pjax.updateVisibility(); -}; - -pjax.onTabSelectionChange = function (e) { - var tab = e.newVal, - tabId = tab.get('contentBox').getAttribute('href').substring(1); - - selectedTab = tab; - - // If switching from a previous tab (i.e., this is not the default tab), - // replace the history entry with a hash URL that will cause this tab to - // be selected if the user navigates away and then returns using the back - // or forward buttons. - if (e.prevVal && localStorage) { - localStorage.setItem('tab_' + pjax.getPath(), tabId); - } - - pjax.checkVisibility(tab); -}; - -// -- Init --------------------------------------------------------------------- - -pjax.on('navigate', pjax.onNavigate); - -pjax.initRoot(); -pjax.upgrade(); -pjax.initClassTabView(); -pjax.initLineNumbers(); -pjax.updateVisibility(); - -Y.APIList.rootPath = pjax.get('root'); - -Y.one('#api-options').delegate('click', pjax.onOptionClick, 'input'); - -Y.on('hashchange', function (e) { - pjax.updateTabState('hashchange'); -}, win); - -}); diff --git a/docs_api/assets/js/comps1.js b/docs_api/assets/js/comps1.js deleted file mode 100644 index f027c96..0000000 --- a/docs_api/assets/js/comps1.js +++ /dev/null @@ -1,41 +0,0 @@ -/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */ -YUI.add("oop",function(e,t){function a(t,n,i,s,o){if(t&&t[o]&&t!==e)return t[o].call(t,n,i);switch(r.test(t)){case 1:return r[o](t,n,i);case 2:return r[o](e.Array(t,0,!0),n,i);default:return e.Object[o](t,n,i,s)}}var n=e.Lang,r=e.Array,i=Object.prototype,s="_~yuim~_",o=i.hasOwnProperty,u=i.toString;e.augment=function(t,n,r,i,s){var a=t.prototype,f=a&&n,l=n.prototype,c=a||t,h,p,d,v,m;return s=s?e.Array(s):[],f&&(p={},d={},v={},h=function(e,t){if(r||!(t in a))u.call(e)==="[object Function]"?(v[t]=e,p[t]=d[t]=function(){return m(this,e,arguments)}):p[t]=e},m=function(e,t,r){for(var i in v)o.call(v,i)&&e[i]===d[i]&&(e[i]=v[i]);return n.apply(e,s),t.apply(e,r)},i?e.Array.each(i,function(e){e in l&&h(l[e],e)}):e.Object.each(l,h,null,!0)),e.mix(c,p||l,r,i),f||n.apply(c,s),t},e.aggregate=function(t,n,r,i){return e.mix(t,n,r,i,0,!0)},e.extend=function(t,n,r,s){(!n||!t)&&e.error("extend failed, verify dependencies");var o=n.prototype,u=e.Object(o);return t.prototype=u,u.constructor=t,t.superclass=o,n!=Object&&o.constructor==i.constructor&&(o.constructor=n),r&&e.mix(u,r,!0),s&&e.mix(t,s,!0),t},e.each=function(e,t,n,r){return a(e,t,n,r,"each")},e.some=function(e,t,n,r){return a(e,t,n,r,"some")},e.clone=function(t,r,i,o,u,a){if(!n.isObject(t))return t;if(e.instanceOf(t,YUI))return t;var f,l=a||{},c,h=e.each;switch(n.type(t)){case"date":return new Date(t);case"regexp":return t;case"function":return t;case"array":f=[];break;default:if(t[s])return l[t[s]];c=e.guid(),f=r?{}:e.Object(t),t[s]=c,l[c]=t}return!t.addEventListener&&!t.attachEvent&&h(t,function(n,a){(a||a===0)&&(!i||i.call(o||this,n,a,this,t)!==!1)&&a!==s&&a!="prototype"&&(this[a]=e.clone(n,r,i,o,u||t,l))},f),a||(e.Object.each(l,function(e,t){if(e[s])try{delete e[s]}catch(n){e[s]=null}},this),l=null),f},e.bind=function(t,r){var i=arguments.length>2?e.Array(arguments,2,!0):null;return function(){var s=n.isString(t)?r[t]:t,o=i?i.concat(e.Array(arguments,0,!0)):arguments;return s.apply(r||s,o)}},e.rbind=function(t,r){var i=arguments.length>2?e.Array(arguments,2,!0):null;return function(){var s=n.isString(t)?r[t]:t,o=i?e.Array(arguments,0,!0).concat(i):arguments;return s.apply(r||s,o)}}},"3.9.1",{requires:["yui-base"]}); -/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */ -YUI.add("event-custom-base",function(e,t){e.Env.evt={handles:{},plugins:{}};var n=0,r=1,i={objs:null,before:function(t,r,i,s){var o=t,u;return s&&(u=[t,s].concat(e.Array(arguments,4,!0)),o=e.rbind.apply(e,u)),this._inject(n,o,r,i)},after:function(t,n,i,s){var o=t,u;return s&&(u=[t,s].concat(e.Array(arguments,4,!0)),o=e.rbind.apply(e,u)),this._inject(r,o,n,i)},_inject:function(t,n,r,i){var s=e.stamp(r),o,u;return r._yuiaop||(r._yuiaop={}),o=r._yuiaop,o[i]||(o[i]=new e.Do.Method(r,i),r[i]=function(){return o[i].exec.apply(o[i],arguments)}),u=s+e.stamp(n)+i,o[i].register(u,n,t),new e.EventHandle(o[i],u)},detach:function(e){e.detach&&e.detach()},_unload:function(e,t){}};e.Do=i,i.Method=function(e,t){this.obj=e,this.methodName=t,this.method=e[t],this.before={},this.after={}},i.Method.prototype.register=function(e,t,n){n?this.after[e]=t:this.before[e]=t},i.Method.prototype._delete=function(e){delete this.before[e],delete this.after[e]},i.Method.prototype.exec=function(){var t=e.Array(arguments,0,!0),n,r,s,o=this.before,u=this.after,a=!1;for(n in o)if(o.hasOwnProperty(n)){r=o[n].apply(this.obj,t);if(r)switch(r.constructor){case i.Halt:return r.retVal;case i.AlterArgs:t=r.newArgs;break;case i.Prevent:a=!0;break;default:}}a||(r=this.method.apply(this.obj,t)),i.originalRetVal=r,i.currentRetVal=r;for(n in u)if(u.hasOwnProperty(n)){s=u[n].apply(this.obj,t);if(s&&s.constructor==i.Halt)return s.retVal;s&&s.constructor==i.AlterReturn&&(r=s.newRetVal,i.currentRetVal=r)}return r},i.AlterArgs=function(e,t){this.msg=e,this.newArgs=t},i.AlterReturn=function(e,t){this.msg=e,this.newRetVal=t},i.Halt=function(e,t){this.msg=e,this.retVal=t},i.Prevent=function(e){this.msg=e},i.Error=i.Halt;var s=e.Array,o="after",u=["broadcast","monitored","bubbles","context","contextFn","currentTarget","defaultFn","defaultTargetOnly","details","emitFacade","fireOnce","async","host","preventable","preventedFn","queuable","silent","stoppedFn","target","type"],a=s.hash(u),f=Array.prototype.slice,l=9,c="yui:log",h=function(e,t,n){var r;for(r in t)a[r]&&(n||!(r in e))&&(e[r]=t[r]);return e};e.CustomEvent=function(t,n){this._kds=e.CustomEvent.keepDeprecatedSubs,n=n||{},this.id=e.stamp(this),this.type=t,this.context=e,this.logSystem=t==c,this.silent=this.logSystem,this._kds&&(this.subscribers={}),this._subscribers=[],this._kds&&(this.afters={}),this._afters=[],this.preventable=!0,this.bubbles=!0,this.signature=l,this.applyConfig(n,!0)},e.CustomEvent.keepDeprecatedSubs=!1,e.CustomEvent.mixConfigs=h,e.CustomEvent.prototype={constructor:e.CustomEvent,hasSubs:function(e){var t=this._subscribers.length,n=this._afters.length,r=this.sibling;return r&&(t+=r._subscribers.length,n+=r._afters.length),e?e=="after"?n:t:t+n},monitor:function(e){this.monitored=!0;var t=this.id+"|"+this.type+"_"+e,n=f.call(arguments,0);return n[0]=t,this.host.on.apply(this.host,n)},getSubs:function(){var e=this._subscribers,t=this._afters,n=this.sibling;return e=n?e.concat(n._subscribers):e.concat(),t=n?t.concat(n._afters):t.concat(),[e,t]},applyConfig:function(e,t){h(this,e,t)},_on:function(t,n,r,i){var s=new e.Subscriber(t,n,r,i);return this.fireOnce&&this.fired&&(this.async?setTimeout(e.bind(this._notify,this,s,this.firedWith),0):this._notify(s,this.firedWith)),i==o?this._afters.push(s):this._subscribers.push(s),this._kds&&(i==o?this.afters[s.id]=s:this.subscribers[s.id]=s),new e.EventHandle(this,s)},subscribe:function(e,t){var n=arguments.length>2?f.call(arguments,2):null;return this._on(e,t,n,!0)},on:function(e,t){var n=arguments.length>2?f.call(arguments,2):null;return this.monitored&&this.host&&this.host._monitor("attach",this,{args:arguments}),this._on(e,t,n,!0)},after:function(e,t){var n=arguments.length>2?f.call(arguments,2):null;return this._on(e,t,n,o)},detach:function(e,t){if(e&&e.detach)return e.detach();var n,r,i=0,s=this._subscribers,o=this._afters;for(n=s.length;n>=0;n--)r=s[n],r&&(!e||e===r.fn)&&(this._delete(r,s,n),i++);for(n=o.length;n>=0;n--)r=o[n],r&&(!e||e===r.fn)&&(this._delete(r,o,n),i++);return i},unsubscribe:function(){return this.detach.apply(this,arguments)},_notify:function(e,t,n){var r;return r=e.notify(t,this),!1===r||this.stopped>1?!1:!0},log:function(e,t){},fire:function(){if(this.fireOnce&&this.fired)return!0;var e=f.call(arguments,0);return this.fired=!0,this.fireOnce&&(this.firedWith=e),this.emitFacade?this.fireComplex(e):this.fireSimple(e)},fireSimple:function(e){this.stopped=0,this.prevented=0;if(this.hasSubs()){var t=this.getSubs();this._procSubs(t[0],e),this._procSubs(t[1],e)}return this._broadcast(e),this.stopped?!1:!0},fireComplex:function(e){return e[0]=e[0]||{},this.fireSimple(e)},_procSubs:function(e,t,n){var r,i,s;for(i=0,s=e.length;i-1?e:t+d+e}),w=e.cached(function(e,t){var n=e,r,i,s;return p.isString(n)?(s=n.indexOf(m),s>-1&&(i=!0,n=n.substr(m.length)),s=n.indexOf(v),s>-1&&(r=n.substr(0,s),n=n.substr(s+1),n=="*"&&(n=null)),[r,t?b(n,t):n,i,n]):n}),E=function(t){var n=p.isObject(t)?t:{};this._yuievt=this._yuievt||{id:e.guid(),events:{},targets:{},config:n,chain:"chain"in n?n.chain:e.config.chain,bubbling:!1,defaults:{context:n.context||this,host:this,emitFacade:n.emitFacade,fireOnce:n.fireOnce,queuable:n.queuable,monitored:n.monitored,broadcast:n.broadcast,defaultTargetOnly:n.defaultTargetOnly,bubbles:"bubbles"in n?n.bubbles:!0}}};E.prototype={constructor:E,once:function(){var e=this.on.apply(this,arguments);return e.batch(function(e){e.sub&&(e.sub.once=!0)}),e},onceAfter:function(){var e=this.after.apply(this,arguments);return e.batch(function(e){e.sub&&(e.sub.once=!0)}),e},parseType:function(e,t){return w(e,t||this._yuievt.config.prefix)},on:function(t,n,r){var i=this._yuievt,s=w(t,i.config.prefix),o,u,a,l,c,h,d,v=e.Env.evt.handles,g,y,b,E=e.Node,S,x,T;this._monitor("attach",s[1],{args:arguments,category:s[0],after:s[2]});if(p.isObject(t))return p.isFunction(t)?e.Do.before.apply(e.Do,arguments):(o=n,u=r,a=f.call(arguments,0),l=[],p.isArray(t)&&(T=!0),g=t._after,delete t._after,e.each(t,function(e,t){p.isObject(e)&&(o=e.fn||(p.isFunction(e)?e:o),u=e.context||u);var n=g?m:"";a[0]=n+(T?e:t),a[1]=o,a[2]=u,l.push(this.on.apply(this,a))},this),i.chain?this:new e.EventHandle(l));h=s[0],g=s[2],b=s[3];if(E&&e.instanceOf(this,E)&&b in E.DOM_EVENTS)return a=f.call(arguments,0),a.splice(2,0,E.getDOMNode(this)),e.on.apply(e,a);t=s[1];if(e.instanceOf(this,YUI)){y=e.Env.evt.plugins[t],a=f.call(arguments,0),a[0]=b,E&&(S=a[2],e.instanceOf(S,e.NodeList)?S=e.NodeList.getDOMNodes(S):e.instanceOf(S,E)&&(S=E.getDOMNode(S)),x=b in E.DOM_EVENTS,x&&(a[2]=S));if(y)d=y.on.apply(e,a);else if(!t||x)d=e.Event._attach(a)}return d||(c=i.events[t]||this.publish(t),d=c._on(n,r,arguments.length>3?f.call(arguments,3):null,g?"after":!0)),h&&(v[h]=v[h]||{},v[h][t]=v[h][t]||[],v[h][t].push(d)),i.chain?this:d},subscribe:function(){return this.on.apply(this,arguments)},detach:function(t,n,r){var i=this._yuievt.events,s,o=e.Node,u=o&&e.instanceOf(this,o);if(!t&&this!==e){for(s in i)i.hasOwnProperty(s)&&i[s].detach(n,r);return u&&e.Event.purgeElement(o.getDOMNode(this)),this}var a=w(t,this._yuievt.config.prefix),l=p.isArray(a)?a[0]:null,c=a?a[3]:null,h,d=e.Env.evt.handles,v,m,g,y,b=function(e,t,n){var r=e[t],i,s;if(r)for(s=r.length-1;s>=0;--s)i=r[s].evt,(i.host===n||i.el===n)&&r[s].detach()};if(l){m=d[l],t=a[1],v=u?e.Node.getDOMNode(this):this;if(m){if(t)b(m,t,v);else for(s in m)m.hasOwnProperty(s)&&b(m,s,v);return this}}else{if(p.isObject(t)&&t.detach)return t.detach(),this;if(u&&(!c||c in o.DOM_EVENTS))return g=f.call(arguments,0),g[2]=o.getDOMNode(this),e.detach.apply(e,g),this}h=e.Env.evt.plugins[c];if(e.instanceOf(this,YUI)){g=f.call(arguments,0);if(h&&h.detach)return h.detach.apply(e,g),this;if(!t||!h&&o&&t in o.DOM_EVENTS)return g[0]=t,e.Event.detach.apply(e.Event,g),this}return y=i[a[1]],y&&y.detach(n,r),this},unsubscribe:function(){return this.detach.apply(this,arguments)},detachAll:function(e){return this.detach(e)},unsubscribeAll:function(){return this.detachAll.apply(this,arguments)},publish:function(t,n){var r,i,s,o,u=this._yuievt,a=u.config.prefix;return p.isObject(t)?(s={},e.each(t,function(e,t){s[t]=this.publish(t,e||n)},this),s):(t=a?b(t,a):t,r=u.events,i=r[t],this._monitor("publish",t,{args:arguments}),i?n&&i.applyConfig(n,!0):(o=u.defaults,i=new e.CustomEvent(t,o),n&&i.applyConfig(n,!0),r[t]=i),r[t])},_monitor:function(e,t,n){var r,i,s;if(t){typeof t=="string"?(s=t,i=this.getEvent(t,!0)):(i=t,s=t.type);if(this._yuievt.config.monitored&&(!i||i.monitored)||i&&i.monitored)r=s+"_"+e,n.monitored=e,this.fire.call(this,r,n)}},fire:function(e){var t=p.isString(e),n=t?e:e&&e.type,r=this._yuievt,i=r.config.prefix,s,o,u,a=t?f.call(arguments,1):arguments;n=i?b(n,i):n,s=this.getEvent(n,!0),u=this.getSibling(n,s),u&&!s&&(s=this.publish(n)),this._monitor("fire",s||n,{args:a});if(!s){if(r.hasTargets)return this.bubble({type:n},a,this);o=!0}else s.sibling=u,o=s.fire.apply(s,a);return r.chain?this:o},getSibling:function(e,t){var n;return e.indexOf(d)>-1&&(e=y(e),n=this.getEvent(e,!0),n&&(n.applyConfig(t),n.bubbles=!1,n.broadcast=0)),n},getEvent:function(e,t){var n,r;return t||(n=this._yuievt.config.prefix,e=n?b(e,n):e),r=this._yuievt.events,r[e]||null},after:function(t,n){var r=f.call(arguments,0);switch(p.type(t)){case"function":return e.Do.after.apply(e.Do,arguments);case"array":case"object":r[0]._after=!0;break;default:r[0]=m+t}return this.on.apply(this,r)},before:function(){return this.on.apply(this,arguments)}},e.EventTarget=E,e.mix(e,E.prototype),E.call(e,{bubbles:!1}),YUI.Env.globalEvents=YUI.Env.globalEvents||new E,e.Global=YUI.Env.globalEvents},"3.9.1",{requires:["oop"]}); -/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */ -YUI.add("dom-core",function(e,t){var n="nodeType",r="ownerDocument",i="documentElement",s="defaultView",o="parentWindow",u="tagName",a="parentNode",f="previousSibling",l="nextSibling",c="contains",h="compareDocumentPosition",p=[],d=function(){var t=e.config.doc.createElement("div"),n=t.appendChild(e.config.doc.createTextNode("")),r=!1;try{r=t.contains(n)}catch(i){}return r}(),v={byId:function(e,t){return v.allById(e,t)[0]||null},getId:function(e){var t;return e.id&&!e.id.tagName&&!e.id.item?t=e.id:e.attributes&&e.attributes.id&&(t=e.attributes.id.value),t},setId:function(e,t){e.setAttribute?e.setAttribute("id",t):e.id=t},ancestor:function(e,t,n,r){var i=null;return n&&(i=!t||t(e)?e:null),i||v.elementByAxis(e,a,t,null,r)},ancestors:function(e,t,n,r){var i=e,s=[];while(i=v.ancestor(i,t,n,r)){n=!1;if(i){s.unshift(i);if(r&&r(i))return s}}return s},elementByAxis:function(e,t,n,r,i){while(e&&(e=e[t])){if((r||e[u])&&(!n||n(e)))return e;if(i&&i(e))return null}return null},contains:function(e,t){var r=!1;if(!t||!e||!t[n]||!e[n])r=!1;else if(e[c]&&(t[n]===1||d))r=e[c](t);else if(e[h]){if(e===t||!!(e[h](t)&16))r=!0}else r=v._bruteContains(e,t);return r},inDoc:function(e,t){var n=!1,s;return e&&e.nodeType&&(t||(t=e[r]),s=t[i],s&&s.contains&&e.tagName?n=s.contains(e):n=v.contains(s,e)),n},allById:function(t,n){n=n||e.config.doc;var r=[],i=[],s,o;if(n.querySelectorAll)i=n.querySelectorAll('[id="'+t+'"]');else if(n.all){r=n.all(t);if(r){r.nodeName&&(r.id===t?(i.push(r),r=p):r=[r]);if(r.length)for(s=0;o=r[s++];)(o.id===t||o.attributes&&o.attributes.id&&o.attributes.id.value===t)&&i.push(o)}}else i=[v._getDoc(n).getElementById(t)];return i},isWindow:function(e){return!!(e&&e.scrollTo&&e.document)},_removeChildNodes:function(e){while(e.firstChild)e.removeChild(e.firstChild)},siblings:function(e,t){var n=[],r=e;while(r=r[f])r[u]&&(!t||t(r))&&n.unshift(r);r=e;while(r=r[l])r[u]&&(!t||t(r))&&n.push(r);return n},_bruteContains:function(e,t){while(t){if(e===t)return!0;t=t.parentNode}return!1},_getRegExp:function(e,t){return t=t||"",v._regexCache=v._regexCache||{},v._regexCache[e+t]||(v._regexCache[e+t]=new RegExp(e,t)),v._regexCache[e+t]},_getDoc:function(t){var i=e.config.doc;return t&&(i=t[n]===9?t:t[r]||t.document||e.config.doc),i},_getWin:function(t){var n=v._getDoc(t);return n[s]||n[o]||e.config.win},_batch:function(e,t,n,r,i,s){t=typeof t=="string"?v[t]:t;var o,u=0,a,f;if(t&&e)while(a=e[u++])o=o=t.call(v,a,n,r,i,s),typeof o!="undefined"&&(f||(f=[]),f.push(o));return typeof f!="undefined"?f:e},generateID:function(t){var n=t.id;return n||(n=e.stamp(t),t.id=n),n}};e.DOM=v},"3.9.1",{requires:["oop","features"]}); -/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */ -YUI.add("dom-base",function(e,t){var n=e.config.doc.documentElement,r=e.DOM,i="tagName",s="ownerDocument",o="",u=e.Features.add,a=e.Features.test;e.mix(r,{getText:n.textContent!==undefined?function(e){var t="";return e&&(t=e.textContent),t||""}:function(e){var t="";return e&&(t=e.innerText||e.nodeValue),t||""},setText:n.textContent!==undefined?function(e,t){e&&(e.textContent=t)}:function(e,t){"innerText"in e?e.innerText=t:"nodeValue"in e&&(e.nodeValue=t)},CUSTOM_ATTRIBUTES:n.hasAttribute?{htmlFor:"for",className:"class"}:{"for":"htmlFor","class":"className"},setAttribute:function(e,t,n,i){e&&t&&e.setAttribute&&(t=r.CUSTOM_ATTRIBUTES[t]||t,e.setAttribute(t,n,i))},getAttribute:function(e,t,n){n=n!==undefined?n:2;var i="";return e&&t&&e.getAttribute&&(t=r.CUSTOM_ATTRIBUTES[t]||t,i=e.getAttribute(t,n),i===null&&(i="")),i},VALUE_SETTERS:{},VALUE_GETTERS:{},getValue:function(e){var t="",n;return e&&e[i]&&(n=r.VALUE_GETTERS[e[i].toLowerCase()],n?t=n(e):t=e.value),t===o&&(t=o),typeof t=="string"?t:""},setValue:function(e,t){var n;e&&e[i]&&(n=r.VALUE_SETTERS[e[i].toLowerCase()],n?n(e,t):e.value=t)},creators:{}}),u("value-set","select",{test:function(){var t=e.config.doc.createElement("select");return t.innerHTML="",t.value="2",t.value&&t.value==="2"}}),a("value-set","select")||(r.VALUE_SETTERS.select=function(e,t){for(var n=0,i=e.getElementsByTagName("option"),s;s=i[n++];)if(r.getValue(s)===t){s.selected=!0;break}}),e.mix(r.VALUE_GETTERS,{button:function(e){return e.attributes&&e.attributes.value?e.attributes.value.value:""}}),e.mix(r.VALUE_SETTERS,{button:function(e,t){var n=e.attributes.value;n||(n=e[s].createAttribute("value"),e.setAttributeNode(n)),n.value=t}}),e.mix(r.VALUE_GETTERS,{option:function(e){var t=e.attributes;return t.value&&t.value.specified?e.value:e.text},select:function(e){var t=e.value,n=e.options;return n&&n.length&&(e.multiple||e.selectedIndex>-1&&(t=r.getValue(n[e.selectedIndex]))),t}});var f,l,c;e.mix(e.DOM,{hasClass:function(t,n){var r=e.DOM._getRegExp("(?:^|\\s+)"+n+"(?:\\s+|$)");return r.test(t.className)},addClass:function(t,n){e.DOM.hasClass(t,n)||(t.className=e.Lang.trim([t.className,n].join(" ")))},removeClass:function(t,n){n&&l(t,n)&&(t.className=e.Lang.trim(t.className.replace(e.DOM._getRegExp("(?:^|\\s+)"+n+"(?:\\s+|$)")," ")),l(t,n)&&c(t,n))},replaceClass:function(e,t,n){c(e,t),f(e,n)},toggleClass:function(e,t,n){var r=n!==undefined?n:!l(e,t);r?f(e,t):c(e,t)}}),l=e.DOM.hasClass,c=e.DOM.removeClass,f=e.DOM.addClass;var h=/<([a-z]+)/i,r=e.DOM,u=e.Features.add,a=e.Features.test,p={},d=function(t,n){var r=e.config.doc.createElement("div"),i=!0;r.innerHTML=t;if(!r.firstChild||r.firstChild.tagName!==n.toUpperCase())i=!1;return i},v=/(?:\/(?:thead|tfoot|tbody|caption|col|colgroup)>)+\s*"}catch(n){return!1}return t.firstChild&&t.firstChild.nodeName==="TBODY"}}),u("innerhtml-div","tr",{test:function(){return d("","tr")}}),u("innerhtml-div","script",{test:function(){return d("","script")}}),a("innerhtml","table")||(p.tbody=function(t,n){var i=r.create(m+t+g,n),s=e.DOM._children(i,"tbody")[0];return i.children.length>1&&s&&!v.test(t)&&s.parentNode.removeChild(s),i}),a("innerhtml-div","script")||(p.script=function(e,t){var n=t.createElement("div");return n.innerHTML="-"+e,n.removeChild(n.firstChild),n},p.link=p.style=p.script),a("innerhtml-div","tr")||(e.mix(p,{option:function(e,t){return r.create('",t)},tr:function(e,t){return r.create(""+e+"",t)},td:function(e,t){return r.create(""+e+"",t)},col:function(e,t){return r.create(""+e+"",t)},tbody:"table"}),e.mix(p,{legend:"fieldset",th:p.td,thead:p.tbody,tfoot:p.tbody,caption:p.tbody,colgroup:p.tbody,optgroup:p.option})),r.creators=p,e.mix( -e.DOM,{setWidth:function(t,n){e.DOM._setSize(t,"width",n)},setHeight:function(t,n){e.DOM._setSize(t,"height",n)},_setSize:function(e,t,n){n=n>0?n:0;var r=0;e.style[t]=n+"px",r=t==="height"?e.offsetHeight:e.offsetWidth,r>n&&(n-=r-n,n<0&&(n=0),e.style[t]=n+"px")}})},"3.9.1",{requires:["dom-core"]}); -/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */ -YUI.add("selector-native",function(e,t){(function(e){e.namespace("Selector");var t="compareDocumentPosition",n="ownerDocument",r={_types:{esc:{token:"\ue000",re:/\\[:\[\]\(\)#\.\'\>+~"]/gi},attr:{token:"\ue001",re:/(\[[^\]]*\])/g},pseudo:{token:"\ue002",re:/(\([^\)]*\))/g}},useNative:!0,_escapeId:function(e){return e&&(e=e.replace(/([:\[\]\(\)#\.'<>+~"])/g,"\\$1")),e},_compare:"sourceIndex"in e.config.doc.documentElement?function(e,t){var n=e.sourceIndex,r=t.sourceIndex;return n===r?0:n>r?1:-1}:e.config.doc.documentElement[t]?function(e,n){return e[t](n)&4?-1:1}:function(e,t){var r,i,s;return e&&t&&(r=e[n].createRange(),r.setStart(e,0),i=t[n].createRange(),i.setStart(t,0),s=r.compareBoundaryPoints(1,i)),s},_sort:function(t){return t&&(t=e.Array(t,0,!0),t.sort&&t.sort(r._compare)),t},_deDupe:function(e){var t=[],n,r;for(n=0;r=e[n++];)r._found||(t[t.length]=r,r._found=!0);for(n=0;r=t[n++];)r._found=null,r.removeAttribute("_found");return t},query:function(t,n,i,s){n=n||e.config.doc;var o=[],u=e.Selector.useNative&&e.config.doc.querySelector&&!s,a=[[t,n]],f,l,c,h=u?e.Selector._nativeQuery:e.Selector._bruteQuery;if(t&&h){!s&&(!u||n.tagName)&&(a=r._splitQueries(t,n));for(c=0;f=a[c++];)l=h(f[0],f[1],i),i||(l=e.Array(l,0,!0)),l&&(o=o.concat(l));a.length>1&&(o=r._sort(r._deDupe(o)))}return i?o[0]||null:o},_replaceSelector:function(t){var n=e.Selector._parse("esc",t),i,s;return t=e.Selector._replace("esc",t),s=e.Selector._parse("pseudo",t),t=r._replace("pseudo",t),i=e.Selector._parse("attr",t),t=e.Selector._replace("attr",t),{esc:n,attrs:i,pseudos:s,selector:t}},_restoreSelector:function(t){var n=t.selector;return n=e.Selector._restore("attr",n,t.attrs),n=e.Selector._restore("pseudo",n,t.pseudos),n=e.Selector._restore("esc",n,t.esc),n},_replaceCommas:function(t){var n=e.Selector._replaceSelector(t),t=n.selector;return t&&(t=t.replace(/,/g,"\ue007"),n.selector=t,t=e.Selector._restoreSelector(n)),t},_splitQueries:function(t,n){t.indexOf(",")>-1&&(t=e.Selector._replaceCommas(t));var r=t.split("\ue007"),i=[],s="",o,u,a;if(n){n.nodeType===1&&(o=e.Selector._escapeId(e.DOM.getId(n)),o||(o=e.guid(),e.DOM.setId(n,o)),s='[id="'+o+'"] ');for(u=0,a=r.length;u-1&&e.Selector.pseudos&&e.Selector.pseudos.checked)return e.Selector.query(t,n,r,!0);try{return n["querySelector"+(r?"":"All")](t)}catch(i){return e.Selector.query(t,n,r,!0)}},filter:function(t,n){var r=[],i,s;if(t&&n)for(i=0;s=t[i++];)e.Selector.test(s,n)&&(r[r.length]=s);return r},test:function(t,r,i){var s=!1,o=!1,u,a,f,l,c,h,p,d,v;if(t&&t.tagName)if(typeof r=="function")s=r.call(t,t);else{u=r.split(","),!i&&!e.DOM.inDoc(t)&&(a=t.parentNode,a?i=a:(c=t[n].createDocumentFragment(),c.appendChild(t),i=c,o=!0)),i=i||t[n],h=e.Selector._escapeId(e.DOM.getId(t)),h||(h=e.guid(),e.DOM.setId(t,h));for(p=0;v=u[p++];){v+='[id="'+h+'"]',l=e.Selector.query(v,i);for(d=0;f=l[d++];)if(f===t){s=!0;break}if(s)break}o&&c.removeChild(t)}return s},ancestor:function(t,n,r){return e.DOM.ancestor(t,function(t){return e.Selector.test(t,n)},r)},_parse:function(t,n){return n.match(e.Selector._types[t].re)},_replace:function(t,n){var r=e.Selector._types[t];return n.replace(r.re,r.token)},_restore:function(t,n,r){if(r){var i=e.Selector._types[t].token,s,o;for(s=0,o=r.length;s-1?(s=t,t=t.split(n),e.Object.setValue(i,t,r)):typeof i[t]!="undefined"&&(i[t]=r),r},c.DEFAULT_GETTER=function(t){var r=this._stateProxy,i;return t.indexOf&&t.indexOf(n)>-1?i=e.Object.getValue(r,t.split(n)):typeof r[t]!="undefined"&&(i=r[t]),i},e.mix(c.prototype,{DATA_PREFIX:"data-",toString:function(){var e=this[u]+": not bound to a node",t=this._node,n,i,s;return t&&(n=t.attributes,i=n&&n.id?t.getAttribute("id"):null,s=n&&n.className?t.getAttribute("className"):null,e=t[r],i&&(e+="#"+i),s&&(e+="."+s.replace(" ",".")),e+=" "+this[u]),e},get:function(e){var t;return this._getAttr?t=this._getAttr(e):t=this._get(e),t?t=c.scrubVal(t,this):t===null&&(t=null),t},_get:function(e){var t=c.ATTRS[e],n;return t&&t.getter?n=t.getter.call(this):c.re_aria.test(e)?n=this._node.getAttribute(e,2):n=c.DEFAULT_GETTER.apply(this,arguments),n},set:function(e,t){var n=c.ATTRS[e];return this._setAttr?this._setAttr.apply(this,arguments):n&&n.setter?n.setter.call(this,t,e):c.re_aria.test(e)?this._node.setAttribute(e,t):c.DEFAULT_SETTER.apply(this,arguments),this},setAttrs:function(t){return this._setAttrs?this._setAttrs(t):e.Object.each(t,function(e,t){this.set(t,e)},this),this},getAttrs:function(t){var n={};return this._getAttrs?this._getAttrs(t):e.Array.each(t,function(e,t){n[e]=this.get(e)},this),n},compareTo:function(e){var t=this._node;return e&&e._node&&(e=e._node),t===e},inDoc:function(e){var t=this._node;e=e?e._node||e:t[s];if(e.documentElement)return l.contains(e.documentElement,t)},getById:function(t){var n=this._node,r=l.byId(t,n[s]);return r&&l.contains(n,r)?r=e.one(r):r=null,r},ancestor:function(t,n,r){return arguments.length===2&&(typeof n=="string"||typeof n=="function")&&(r=n),e.one(l.ancestor(this._node,h(t),n,h(r)))},ancestors:function(t,n,r){return arguments.length===2&&(typeof n=="string"||typeof n=="function")&&(r=n),e.all(l.ancestors(this._node,h(t),n,h(r)))},previous:function(t,n){return e.one(l.elementByAxis(this._node,"previousSibling",h(t),n))},next:function(t,n){return e.one(l.elementByAxis(this._node,"nextSibling",h(t),n))},siblings:function(t){return e.all(l.siblings(this._node,h(t)))},one:function(t){return e.one(e.Selector.query(t,this._node,!0))},all:function(t){var n=e.all(e.Selector.query(t,this._node));return n._query=t,n._queryRoot=this._node,n},test:function(t){return e.Selector.test(this._node,t)},remove:function(e){var t=this._node;return t&&t.parentNode&&t.parentNode.removeChild(t),e&&this.destroy(),this},replace:function(e){var t=this._node;return typeof e=="string"&&(e=c.create(e)),t.parentNode.replaceChild(c.getDOMNode(e),t),this},replaceChild:function(t,n){return typeof t=="string"&&(t=l.create(t)),e.one(this._node.replaceChild(c.getDOMNode(t),c.getDOMNode(n)))},destroy:function(t){var n=e.config.doc.uniqueID?"uniqueID":"_yuid",r;this.purge(),this.unplug&&this.unplug(),this.clearData(),t&&e.NodeList.each(this.all("*"),function(t){r=c._instances[t[n]],r?r.destroy():e.Event.purgeElement(t)}),this._node=null,this._stateProxy=null,delete c._instances[this._yuid]},invoke:function(e,t,n,r,i,s){var o=this._node,u;return t&&t._node&&(t=t._node),n&&n._node&&(n=n._node),u=o[e](t,n,r,i,s),c.scrubVal(u,this)},swap:e.config.doc.documentElement.swapNode?function(e){this._node.swapNode(c.getDOMNode(e))}:function(e){e=c.getDOMNode(e);var t=this._node,n=e.parentNode,r=e.nextSibling;return r===t?n.insertBefore(t,e):e===t.nextSibling?n.insertBefore(e,t):(t.parentNode.replaceChild(e,t),l.addHTML(n,t,r)),this},hasMethod:function(e){var t=this._node;return!(!(t&&e in t&&typeof t[e]!="unknown")||typeof t[e]!="function"&&String(t[e]).indexOf("function")!==1)},isFragment:function(){return this.get("nodeType")===11},empty:function(){return this.get("childNodes").remove().destroy(!0),this},getDOMNode:function(){return this._node}},!0),e.Node=c,e.one=c.one;var p=function(t){var n=[];t&&(typeof t=="string"?(this._query=t,t=e.Selector.query(t)):t.nodeType||l.isWindow(t)?t=[t]:t._node?t=[t._node]:t[0]&&t[0]._node?(e.Array.each(t,function(e){ -e._node&&n.push(e._node)}),t=n):t=e.Array(t,0,!0)),this._nodes=t||[]};p.NAME="NodeList",p.getDOMNodes=function(e){return e&&e._nodes?e._nodes:e},p.each=function(t,n,r){var i=t._nodes;i&&i.length&&e.Array.each(i,n,r||t)},p.addMethod=function(t,n,r){t&&n&&(p.prototype[t]=function(){var t=[],i=arguments;return e.Array.each(this._nodes,function(s){var o=s.uniqueID&&s.nodeType!==9?"uniqueID":"_yuid",u=e.Node._instances[s[o]],a,f;u||(u=p._getTempNode(s)),a=r||u,f=n.apply(a,i),f!==undefined&&f!==u&&(t[t.length]=f)}),t.length?t:this})},p.importMethod=function(t,n,r){typeof n=="string"?(r=r||n,p.addMethod(n,t[n])):e.Array.each(n,function(e){p.importMethod(t,e)})},p._getTempNode=function(t){var n=p._tempNode;return n||(n=e.Node.create("
    "),p._tempNode=n),n._node=t,n._stateProxy=t,n},e.mix(p.prototype,{_invoke:function(e,t,n){var r=n?[]:this;return this.each(function(i){var s=i[e].apply(i,t);n&&r.push(s)}),r},item:function(t){return e.one((this._nodes||[])[t])},each:function(t,n){var r=this;return e.Array.each(this._nodes,function(i,s){return i=e.one(i),t.call(n||i,i,s,r)}),r},batch:function(t,n){var r=this;return e.Array.each(this._nodes,function(i,s){var o=e.Node._instances[i[u]];return o||(o=p._getTempNode(i)),t.call(n||o,o,s,r)}),r},some:function(t,n){var r=this;return e.Array.some(this._nodes,function(i,s){return i=e.one(i),n=n||i,t.call(n,i,s,r)})},toFrag:function(){return e.one(e.DOM._nl2frag(this._nodes))},indexOf:function(t){return e.Array.indexOf(this._nodes,e.Node.getDOMNode(t))},filter:function(t){return e.all(e.Selector.filter(this._nodes,t))},modulus:function(t,n){n=n||0;var r=[];return p.each(this,function(e,i){i%t===n&&r.push(e)}),e.all(r)},odd:function(){return this.modulus(2,1)},even:function(){return this.modulus(2)},destructor:function(){},refresh:function(){var t,n=this._nodes,r=this._query,i=this._queryRoot;return r&&(i||n&&n[0]&&n[0].ownerDocument&&(i=n[0].ownerDocument),this._nodes=e.Selector.query(r,i)),this},size:function(){return this._nodes.length},isEmpty:function(){return this._nodes.length<1},toString:function(){var e="",t=this[u]+": not bound to any nodes",n=this._nodes,i;return n&&n[0]&&(i=n[0],e+=i[r],i.id&&(e+="#"+i.id),i.className&&(e+="."+i.className.replace(" ",".")),n.length>1&&(e+="...["+n.length+" items]")),e||t},getDOMNodes:function(){return this._nodes}},!0),p.importMethod(e.Node.prototype,["destroy","empty","remove","set"]),p.prototype.get=function(t){var n=[],r=this._nodes,i=!1,s=p._getTempNode,o,u;return r[0]&&(o=e.Node._instances[r[0]._yuid]||s(r[0]),u=o._get(t),u&&u.nodeType&&(i=!0)),e.Array.each(r,function(r){o=e.Node._instances[r._yuid],o||(o=s(r)),u=o._get(t),i||(u=e.Node.scrubVal(u,o)),n.push(u)}),i?e.all(n):n},e.NodeList=p,e.all=function(e){return new p(e)},e.Node.all=e.all;var d=e.NodeList,v=Array.prototype,m={concat:1,pop:0,push:0,shift:0,slice:1,splice:1,unshift:0};e.Object.each(m,function(t,n){d.prototype[n]=function(){var r=[],i=0,s,o;while(typeof (s=arguments[i++])!="undefined")r.push(s._node||s._nodes||s);return o=v[n].apply(this._nodes,r),t?o=e.all(o):o=e.Node.scrubVal(o),o}}),e.Array.each(["removeChild","hasChildNodes","cloneNode","hasAttribute","scrollIntoView","getElementsByTagName","focus","blur","submit","reset","select","createCaption"],function(t){e.Node.prototype[t]=function(e,n,r){var i=this.invoke(t,e,n,r);return i}}),e.Node.prototype.removeAttribute=function(e){var t=this._node;return t&&t.removeAttribute(e,0),this},e.Node.importMethod(e.DOM,["contains","setAttribute","getAttribute","wrap","unwrap","generateID"]),e.NodeList.importMethod(e.Node.prototype,["getAttribute","setAttribute","removeAttribute","unwrap","wrap","generateID"])},"3.9.1",{requires:["dom-core","selector"]}); -/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */ -YUI.add("node-base",function(e,t){var n=["hasClass","addClass","removeClass","replaceClass","toggleClass"];e.Node.importMethod(e.DOM,n),e.NodeList.importMethod(e.Node.prototype,n);var r=e.Node,i=e.DOM;r.create=function(t,n){return n&&n._node&&(n=n._node),e.one(i.create(t,n))},e.mix(r.prototype,{create:r.create,insert:function(e,t){return this._insert(e,t),this},_insert:function(e,t){var n=this._node,r=null;return typeof t=="number"?t=this._node.childNodes[t]:t&&t._node&&(t=t._node),e&&typeof e!="string"&&(e=e._node||e._nodes||e),r=i.addHTML(n,e,t),r},prepend:function(e){return this.insert(e,0)},append:function(e){return this.insert(e,null)},appendChild:function(e){return r.scrubVal(this._insert(e))},insertBefore:function(t,n){return e.Node.scrubVal(this._insert(t,n))},appendTo:function(t){return e.one(t).append(this),this},setContent:function(e){return this._insert(e,"replace"),this},getContent:function(e){return this.get("innerHTML")}}),e.Node.prototype.setHTML=e.Node.prototype.setContent,e.Node.prototype.getHTML=e.Node.prototype.getContent,e.NodeList.importMethod(e.Node.prototype,["append","insert","appendChild","insertBefore","prepend","setContent","getContent","setHTML","getHTML"]);var r=e.Node,i=e.DOM;r.ATTRS={text:{getter:function(){return i.getText(this._node)},setter:function(e){return i.setText(this._node,e),e}},"for":{getter:function(){return i.getAttribute(this._node,"for")},setter:function(e){return i.setAttribute(this._node,"for",e),e}},options:{getter:function(){return this._node.getElementsByTagName("option")}},children:{getter:function(){var t=this._node,n=t.children,r,i,s;if(!n){r=t.childNodes,n=[];for(i=0,s=r.length;i1?this._data[e]=t:this._data=e,this},clearData:function(e){return"_data"in this&&(typeof e!="undefined"?delete this._data[e]:delete this._data),this}}),e.mix(e.NodeList.prototype,{getData:function(e){var t=arguments.length?[e]:[];return this._invoke("getData",t,!0)},setData:function(e,t){var n=arguments.length>1?[e,t]: -[e];return this._invoke("setData",n)},clearData:function(e){var t=arguments.length?[e]:[];return this._invoke("clearData",[e])}})},"3.9.1",{requires:["event-base","node-core","dom-base"]}); -/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */ -(function(){var e=YUI.Env;e._ready||(e._ready=function(){e.DOMReady=!0,e.remove(YUI.config.doc,"DOMContentLoaded",e._ready)},e.add(YUI.config.doc,"DOMContentLoaded",e._ready))})(),YUI.add("event-base",function(e,t){e.publish("domready",{fireOnce:!0,async:!0}),YUI.Env.DOMReady?e.fire("domready"):e.Do.before(function(){e.fire("domready")},YUI.Env,"_ready");var n=e.UA,r={},i={63232:38,63233:40,63234:37,63235:39,63276:33,63277:34,25:9,63272:46,63273:36,63275:35},s=function(t){if(!t)return t;try{t&&3==t.nodeType&&(t=t.parentNode)}catch(n){return null}return e.one(t)},o=function(e,t,n){this._event=e,this._currentTarget=t,this._wrapper=n||r,this.init()};e.extend(o,Object,{init:function(){var e=this._event,t=this._wrapper.overrides,r=e.pageX,o=e.pageY,u,a=this._currentTarget;this.altKey=e.altKey,this.ctrlKey=e.ctrlKey,this.metaKey=e.metaKey,this.shiftKey=e.shiftKey,this.type=t&&t.type||e.type,this.clientX=e.clientX,this.clientY=e.clientY,this.pageX=r,this.pageY=o,u=e.keyCode||e.charCode,n.webkit&&u in i&&(u=i[u]),this.keyCode=u,this.charCode=u,this.which=e.which||e.charCode||u,this.button=this.which,this.target=s(e.target),this.currentTarget=s(a),this.relatedTarget=s(e.relatedTarget);if(e.type=="mousewheel"||e.type=="DOMMouseScroll")this.wheelDelta=e.detail?e.detail*-1:Math.round(e.wheelDelta/80)||(e.wheelDelta<0?-1:1);this._touch&&this._touch(e,a,this._wrapper)},stopPropagation:function(){this._event.stopPropagation(),this._wrapper.stopped=1,this.stopped=1},stopImmediatePropagation:function(){var e=this._event;e.stopImmediatePropagation?e.stopImmediatePropagation():this.stopPropagation(),this._wrapper.stopped=2,this.stopped=2},preventDefault:function(e){var t=this._event;t.preventDefault(),t.returnValue=e||!1,this._wrapper.prevented=1,this.prevented=1},halt:function(e){e?this.stopImmediatePropagation():this.stopPropagation(),this.preventDefault()}}),o.resolve=s,e.DOM2EventFacade=o,e.DOMEventFacade=o,function(){e.Env.evt.dom_wrappers={},e.Env.evt.dom_map={};var t=e.DOM,n=e.Env.evt,r=e.config,i=r.win,s=YUI.Env.add,o=YUI.Env.remove,u=function(){YUI.Env.windowLoaded=!0,e.Event._load(),o(i,"load",u)},a=function(){e.Event._unload()},f="domready",l="~yui|2|compat~",c=function(n){try{return n&&typeof n!="string"&&e.Lang.isNumber(n.length)&&!n.tagName&&!t.isWindow(n)}catch(r){return!1}},h=e.CustomEvent.prototype._delete,p=function(t){var n=h.apply(this,arguments);return this.hasSubs()||e.Event._clean(this),n},d=function(){var r=!1,u=0,h=[],v=n.dom_wrappers,m=null,g=n.dom_map;return{POLL_RETRYS:1e3,POLL_INTERVAL:40,lastError:null,_interval:null,_dri:null,DOMReady:!1,startInterval:function(){d._interval||(d._interval=setInterval(d._poll,d.POLL_INTERVAL))},onAvailable:function(t,n,r,i,s,o){var a=e.Array(t),f,l;for(f=0;f4?n.slice(4):null),h&&a.fire(),p):!1},detach:function(n,r,i,s){var o=e.Array(arguments,0,!0),u,a,f,h,p,m;o[o.length-1]===l&&(u=!0);if(n&&n.detach)return n.detach();typeof i=="string"&&(u?i=t.byId(i):(i=e.Selector.query(i),a=i.length,a<1?i=null:a==1&&(i=i[0])));if(!i)return!1;if(i.detach)return o.splice(2,1),i.detach.apply(i,o);if(c(i)){f=!0;for(h=0,a=i.length;h0),a=[],f=function(t,n){var r,i=n.override;try{n.compat?(n.override?i===!0?r=n.obj:r=i:r=t,n.fn.call(r,n.obj)):(r=n.obj||e.one(t),n.fn.apply(r,e.Lang.isArray(i)?i:[]))}catch(s){}};for(n=0,i=h.length;n4?e.Array(arguments,4,!0):null;return e.Event.onAvailable.call(e.Event,r,n,i,s)}},e.Env.evt.plugins.contentready={on:function(t,n,r,i){var s=arguments.length>4?e.Array(arguments,4,!0):null;return e.Event.onContentReady.call(e.Event,r,n,i,s)}}},"3.9.1",{requires:["event-custom-base"]}); -/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */ -YUI.add("event-delegate",function(e,t){function f(t,r,u,l){var c=n(arguments,0,!0),h=i(u)?u:null,p,d,v,m,g,y,b,w,E;if(s(t)){w=[];if(o(t))for(y=0,b=t.length;y1&&(g=p.shift(),c[0]=t=p.shift()),d=e.Node.DOM_EVENTS[t],s(d)&&d.delegate&&(E=d.delegate.apply(d,arguments));if(!E){if(!t||!r||!u||!l)return;v=h?e.Selector.query(h,null,!0):u,!v&&i(u)&&(E=e.on("available",function(){e.mix(E,e.delegate.apply(e,c),!0)},u)),!E&&v&&(c.splice(2,2,v),E=e.Event._attach(c,{facade:!1}),E.sub.filter=l,E.sub._notify=f.notifySub)}return E&&g&&(m=a[g]||(a[g]={}),m=m[t]||(m[t]=[]),m.push(E)),E}var n=e.Array,r=e.Lang,i=r.isString,s=r.isObject,o=r.isArray,u=e.Selector.test,a=e.Env.evt.handles;f.notifySub=function(t,r,i){r=r.slice(),this.args&&r.push.apply(r,this.args);var s=f._applyFilter(this.filter,r,i),o,u,a,l;if(s){s=n(s),o=r[0]=new e.DOMEventFacade(r[0],i.el,i),o.container=e.one(i.el);for(u=0,a=s.length;u=0;o--)s=n[o],a=s._UNPLUG,a&&e.mix(i,a,!0),u=s._PLUG,u&&e.mix(r,u,!0);for(f in r)r.hasOwnProperty(f)&&(i[f]||this.plug(r[f]));t&&t.plugins&&this.plug(t.plugins)},n.plug=function(t,n,i){var s,o,u,a;if(t!==e.Base){t._PLUG=t._PLUG||{},r.isArray(n)||(i&&(n={fn:n,cfg:i}),n=[n]);for(o=0,u=n.length;o=4.2)i[0]+=s,i[1]+=o}else i=d._getOffset(r)}return i}:function(t){var n=null,s,o,u,a,f;if(t)if(d.inDoc(t)){n=[t.offsetLeft,t.offsetTop],s=t.ownerDocument,o=t,u=e.UA.gecko||e.UA.webkit>519?!0:!1;while(o=o.offsetParent)n[0]+=o.offsetLeft,n[1]+=o.offsetTop,u&&(n=d._calcBorders(o,n));if(d.getStyle(t,r)!=i){o=t;while(o=o.parentNode){a=o.scrollTop,f=o.scrollLeft,e.UA.gecko&&d.getStyle(o,"overflow")!=="visible"&&(n=d._calcBorders(o,n));if(a||f)n[0]-=f,n[1]-=a}n[0]+=d.docScrollX(t,s),n[1]+=d.docScrollY(t,s)}else n[0]+=d.docScrollX(t,s),n[1]+=d.docScrollY(t,s)}else n=d._getOffset(t);return n}}(),getScrollbarWidth:e.cached(function(){var t=e.config.doc,n=t.createElement("div"),r=t.getElementsByTagName("body")[0],i=.1;return r&&(n.style.cssText="position:absolute;visibility:hidden;overflow:scroll;width:20px;",n.appendChild(t.createElement("p")).style.height="1px",r.insertBefore(n,r.firstChild),i=n.offsetWidth-n.clientWidth,r.removeChild(n)),i},null,.1),getX:function(e){return d.getXY(e)[0]},getY:function(e){return d.getXY(e)[1]},setXY:function(e,t,n){var i=d.setStyle,a,f,l,c;e&&t&&(a=d.getStyle(e,r),f=d._getOffset(e),a=="static"&&(a=s,i(e,r,a)),c=d.getXY(e),t[0]!==null&&i(e,o,t[0]-c[0]+f[0]+"px"),t[1]!==null&&i(e,u,t[1]-c[1]+f[1]+"px"),n||(l=d.getXY(e),(l[0]!==t[0]||l[1]!==t[1])&&d.setXY(e,t,!0)))},setX:function(e,t){return d.setXY(e,[t,null])},setY:function(e,t){return d.setXY(e,[null,t])},swapXY:function(e,t){var n=d.getXY(e);d.setXY(e,d.getXY(t)),d.setXY(t,n)},_calcBorders:function(t,n){var r=parseInt(d[p](t,c),10)||0,i=parseInt(d[p](t,l),10)||0;return e.UA.gecko&&v.test(t.tagName)&&(r=0,i=0),n[0]+=i,n[1]+=r,n},_getWinSize:function(r,i){i=i||r?d._getDoc(r):e.config.doc;var s=i.defaultView||i.parentWindow,o=i[n],u=s.innerHeight,a=s.innerWidth,f=i[t];return o&&!e.UA.opera&&(o!="CSS1Compat"&&(f=i.body),u=f.clientHeight,a=f.clientWidth),{height:u,width:a}},_getDocSize:function(r){var i=r?d._getDoc(r):e.config.doc,s=i[t];return i[n]!="CSS1Compat"&&(s=i.body),{height:s.scrollHeight,width:s.scrollWidth}}})})(e),function(e){var t="top",n="right",r="bottom",i="left",s=function(e,s){var o=Math.max(e[t],s[t]),u=Math.min(e[n],s[n]),a=Math.min(e[r],s[r]),f=Math.max(e[i],s[i]),l={};return l[t]=o,l[n]=u,l[r]=a,l[i]=f,l},o=e.DOM;e.mix(o,{region:function(e){var t=o.getXY(e),n=!1;return e&&t&&(n=o._getRegion(t[1],t[0]+e.offsetWidth,t[1]+e.offsetHeight,t[0])),n},intersect:function(u,a,f){var l=f||o.region(u),c={},h=a,p;if(h.tagName)c=o.region(h);else{if(!e.Lang.isObject(a))return!1;c=a}return p=s(c,l),{top:p[t],right:p[n],bottom:p[r],left:p[i],area:(p[r]-p[t])*(p[n]-p[i]),yoff:p[r]-p[t],xoff:p[n]-p[i],inRegion:o.inRegion(u,a,!1,f)}},inRegion:function(u,a,f,l){var c={},h=l||o.region(u),p=a,d;if(p.tagName)c=o.region(p);else{if(!e.Lang.isObject(a))return!1;c=a}return f?h[i]>=c[i]&&h[n]<=c[n]&&h[t]>=c[t]&&h[r]<=c[r]:(d=s(c,h),d[r]>=d[t]&&d[n]>=d[i]?!0:!1)},inViewportRegion:function(e,t,n){return o.inRegion(e,o.viewportRegion(e),t,n)},_getRegion:function(e,s,o,u){var a={};return a[t]=a[1]=e,a[i]=a[0]=u,a[r]=o,a[n]=s,a.width=a[n]-a[i],a.height=a[r]-a[t],a},viewportRegion:function(t){t=t||e.config.doc.documentElement;var n=!1,r,i;return t&&(r=o.docScrollX(t),i=o.docScrollY(t),n=o._getRegion(i,o.winWidth(t)+r,i+o.winHeight(t),r)),n}})}(e)},"3.9.1",{requires:["dom-base","dom-style"]}); -/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */ -YUI.add("node-screen",function(e,t){e.each(["winWidth","winHeight","docWidth","docHeight","docScrollX","docScrollY"],function(t){e.Node.ATTRS[t]={getter:function(){var n=Array.prototype.slice.call(arguments);return n.unshift(e.Node.getDOMNode(this)),e.DOM[t].apply(this,n)}}}),e.Node.ATTRS.scrollLeft={getter:function(){var t=e.Node.getDOMNode(this);return"scrollLeft"in t?t.scrollLeft:e.DOM.docScrollX(t)},setter:function(t){var n=e.Node.getDOMNode(this);n&&("scrollLeft"in n?n.scrollLeft=t:(n.document||n.nodeType===9)&&e.DOM._getWin(n).scrollTo(t,e.DOM.docScrollY(n)))}},e.Node.ATTRS.scrollTop={getter:function(){var t=e.Node.getDOMNode(this);return"scrollTop"in t?t.scrollTop:e.DOM.docScrollY(t)},setter:function(t){var n=e.Node.getDOMNode(this);n&&("scrollTop"in n?n.scrollTop=t:(n.document||n.nodeType===9)&&e.DOM._getWin(n).scrollTo(e.DOM.docScrollX(n),t))}},e.Node.importMethod(e.DOM,["getXY","setXY","getX","setX","getY","setY","swapXY"]),e.Node.ATTRS.region={getter:function(){var t=this.getDOMNode(),n;return t&&!t.tagName&&t.nodeType===9&&(t=t.documentElement),e.DOM.isWindow(t)?n=e.DOM.viewportRegion(t):n=e.DOM.region(t),n}},e.Node.ATTRS.viewportRegion={getter:function(){return e.DOM.viewportRegion(e.Node.getDOMNode(this))}},e.Node.importMethod(e.DOM,"inViewportRegion"),e.Node.prototype.intersect=function(t,n){var r=e.Node.getDOMNode(this);return e.instanceOf(t,e.Node)&&(t=e.Node.getDOMNode(t)),e.DOM.intersect(r,t,n)},e.Node.prototype.inRegion=function(t,n,r){var i=e.Node.getDOMNode(this);return e.instanceOf(t,e.Node)&&(t=e.Node.getDOMNode(t)),e.DOM.inRegion(i,t,n,r)}},"3.9.1",{requires:["dom-screen","node-base"]}); -/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */ -YUI.add("node-style",function(e,t){(function(e){e.mix(e.Node.prototype,{setStyle:function(t,n){return e.DOM.setStyle(this._node,t,n),this},setStyles:function(t){return e.DOM.setStyles(this._node,t),this},getStyle:function(t){return e.DOM.getStyle(this._node,t)},getComputedStyle:function(t){return e.DOM.getComputedStyle(this._node,t)}}),e.NodeList.importMethod(e.Node.prototype,["getStyle","getComputedStyle","setStyle","setStyles"])})(e)},"3.9.1",{requires:["dom-style","node-base"]}); diff --git a/docs_api/assets/js/comps2.js b/docs_api/assets/js/comps2.js deleted file mode 100644 index 4a39db1..0000000 --- a/docs_api/assets/js/comps2.js +++ /dev/null @@ -1,41 +0,0 @@ - -/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */ -YUI.add("array-extras",function(e,t){var n=e.Array,r=e.Lang,i=Array.prototype;n.lastIndexOf=r._isNative(i.lastIndexOf)?function(e,t,n){return n||n===0?e.lastIndexOf(t,n):e.lastIndexOf(t)}:function(e,t,n){var r=e.length,i=r-1;if(n||n===0)i=Math.min(n<0?r+n:n,r);if(i>-1&&r>0)for(;i>-1;--i)if(i in e&&e[i]===t)return i;return-1},n.unique=function(e,t){var n=0,r=e.length,i=[],s,o,u,a;e:for(;n=0;--v){o=t[v];for(s in o)o.hasOwnProperty(s)&&(u=d({},o[s],g),h=u.value,m=u.cloneDefaultValue,h&&(m===undefined&&(f===h.constructor||r.isArray(h))||m===l||m===!0?u.value=e.clone(h):m===c&&(u.value=e.merge(h))),p=null,s.indexOf(i)!==-1&&(p=s.split(i),s=p.shift()),y=b[s],p&&y&&y.value?n.setValue(y.value,p,h):p||(y?(y.valueFn&&a in u&&(y.valueFn=null),d(y,u,g)):b[s]=u))}return b},_initHierarchy:function(e){var t=this._lazyAddAttrs,n,r,i,s,o,a,f,l=this._getClasses(),c=this._getAttrCfgs(),h=l.length-1;for(i=h;i>=0;i--){n=l[i],r=n.prototype,f=n._yuibuild&&n._yuibuild.exts;if(f)for(s=0,o=f.length;s":">",'"':""","'":"'","/":"/","`":"`"},r={html:function(e){return(e+"").replace(/[&<>"'\/`]/g,r._htmlReplacer)},regex:function(e){return(e+"").replace(/[\-$\^*()+\[\]{}|\\,.?\s]/g,"\\$&")},_htmlReplacer:function(e){return n[e]}};r.regexp=r.regex,e.Escape=r},"3.9.1",{requires:["yui-base"]}); -/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */ -YUI.add("event-synthetic",function(e,t){function c(e,t){this.handle=e,this.emitFacade=t}function h(e,t,n){this.handles=[],this.el=e,this.key=n,this.domkey=t}function p(){this._init.apply(this,arguments)}var n=e.CustomEvent,r=e.Env.evt.dom_map,i=e.Array,s=e.Lang,o=s.isObject,u=s.isString,a=s.isArray,f=e.Selector.query,l=function(){};c.prototype.fire=function(t){var n=i(arguments,0,!0),r=this.handle,s=r.evt,u=r.sub,a=u.context,f=u.filter,l=t||{},c;if(this.emitFacade){if(!t||!t.preventDefault)l=s._getFacade(),o(t)&&!t.preventDefault?(e.mix(l,t,!0),n[0]=l):n.unshift(l);l.type=s.type,l.details=n.slice(),f&&(l.container=s.host)}else f&&o(t)&&t.currentTarget&&n.shift();return u.context=a||l.currentTarget||s.host,c=s.fire.apply(s,n),u.context=a,c},h.prototype={constructor:h,type:"_synth",fn:l,capture:!1,register:function(e){e.evt.registry=this,this.handles.push(e)},unregister:function(t){var n=this.handles,i=r[this.domkey],s;for(s=n.length-1;s>=0;--s)if(n[s].sub===t){n.splice(s,1);break}n.length||(delete i[this.key],e.Object.size(i)||delete r[this.domkey])},detachAll:function(){var e=this.handles,t=e.length;while(--t>=0)e[t].detach()}},e.mix(p,{Notifier:c,SynthRegistry:h,getRegistry:function(t,n,i){var s=t._node,o=e.stamp(s),u="event:"+o+n+"_synth",a=r[o];return i&&(a||(a=r[o]={}),a[u]||(a[u]=new h(s,o,u))),a&&a[u]||null},_deleteSub:function(e){if(e&&e.fn){var t=this.eventDef,r=e.filter?"detachDelegate":"detach";this._subscribers=[],n.keepDeprecatedSubs&&(this.subscribers={}),t[r](e.node,e,this.notifier,e.filter),this.registry.unregister(e),delete e.fn,delete e.node,delete e.context}},prototype:{constructor:p,_init:function(){var e=this.publishConfig||(this.publishConfig={});this.emitFacade="emitFacade"in e?e.emitFacade:!0,e.emitFacade=!1},processArgs:l,on:l,detach:l,delegate:l,detachDelegate:l,_on:function(t,n){var r=[],s=t.slice(),o=this.processArgs(t,n),a=t[2],l=n?"delegate":"on",c,h;return c=u(a)?f(a):i(a||e.one(e.config.win)),!c.length&&u(a)?(h=e.on("available",function(){e.mix(h,e[l].apply(e,s),!0)},a),h):(e.Array.each(c,function(i){var s=t.slice(),u;i=e.one(i),i&&(n&&(u=s.splice(3,1)[0]),s.splice(0,4,s[1],s[3]),(!this.preventDups||!this.getSubs(i,t,null,!0))&&r.push(this._subscribe(i,l,s,o,u)))},this),r.length===1?r[0]:new e.EventHandle(r))},_subscribe:function(t,n,r,i,s){var o=new e.CustomEvent(this.type,this.publishConfig),u=o.on.apply(o,r),a=new c(u,this.emitFacade),f=p.getRegistry(t,this.type,!0),l=u.sub;return l.node=t,l.filter=s,i&&this.applyArgExtras(i,l),e.mix(o,{eventDef:this,notifier:a,host:t,currentTarget:t,target:t,el:t._node,_delete:p._deleteSub},!0),u.notifier=a,f.register(u),this[n](t,l,a,s),u},applyArgExtras:function(e,t){t._extra=e},_detach:function(t){var n=t[2],r=u(n)?f(n):i(n),s,o,a,l,c;t.splice(2,1);for(o=0,a=r.length;o=0;--c)l[c].detach()}}},getSubs:function(e,t,n,r){var i=p.getRegistry(e,this.type),s=[],o,u,a,f;if(i){o=i.handles,n||(n=this.subMatch);for(u=0,a=o.length;u0&&o.length>v&&(o.length=v);if(h){c=h.call(this,e,o.concat());if(!c)return;for(p=0,d=c.length;p1&&(o[s-1]=e,e=o.join(n+" ")),e=e+n+" "),this.set(b,e)},_afterSourceTypeChange:function(e){this._rawSource&&this.set("source",this._rawSource)},_afterValueChange:function(e){var t=e.newVal,n=this,r=e.src===T.UI_SRC,i,s,o,u;r||n._inputNode.set(b,t),o=n.get("minQueryLength"),u=n._parseValue(t)||"",o>=0&&u.length>=o?r?(i=n.get("queryDelay"),s=function(){n.fire(S,{inputValue:t,query:u,src:e.src})},i?(clearTimeout(n._delay),n._delay=setTimeout(s,i)):s()):n._set(d,u):(clearTimeout(n._delay),n.fire(E,{prevVal:e.prevVal?n._parseValue(e.prevVal):null,src:e.src}))},_onInputBlur:function(e){var t=this.get(v),n,i,s;if(t&&!this.get("allowTrailingDelimiter")){t=r.trimRight(t),s=i=this._inputNode.get(b);if(t)while((i=r.trimRight(i))&&(n=i.length-t.length)&&i.lastIndexOf(t)===n)i=i.substring(0,n);else i=r.trimRight(i);i!==s&&this.set(b,i)}},_onInputValueChange:function(e){var t=e.newVal;t!==this.get(b)&&this.set(b,t,{src:T.UI_SRC})},_onResponse:function(e,t){e===(this.get(d)||"")&&this._parseResponse(e||"",t.response,t.data)},_defClearFn:function(){this._set(d,null),this._set(g,[])},_defQueryFn:function(e){this.sendRequest(e.query)},_defResultsFn:function(e){this._set(g,e[g])}},T.ATTRS={allowBrowserAutocomplete:{value:!1},allowTrailingDelimiter:{value:!1},enableCache:{lazyAdd:!1,setter:"_setEnableCache",value:!0},inputNode:{setter:e.one,writeOnce:"initOnly"},maxResults:{value:0},minQueryLength:{value:1},query:{readOnly:!0,value:null},queryDelay:{value:100},queryDelimiter:{value:null},requestTemplate:{setter:"_setRequestTemplate",value:null},resultFilters:{setter:"_setResultFilters",value:[]},resultFormatter -:{validator:l,value:null},resultHighlighter:{setter:"_setResultHighlighter",value:null},resultListLocator:{setter:"_setLocator",value:null},results:{readOnly:!0,value:[]},resultTextLocator:{setter:"_setLocator",value:null},source:{setter:"_setSource",value:null},sourceType:{value:null},tokenInput:{readOnly:!0},value:{value:""}},T._buildCfg={aggregates:["SOURCE_TYPES"],statics:["UI_SRC"]},T.SOURCE_TYPES={array:"_createArraySource","function":"_createFunctionSource",object:"_createObjectSource"},T.UI_SRC=e.Widget&&e.Widget.UI_SRC||"ui",e.AutoCompleteBase=T},"3.9.1",{optional:["autocomplete-sources"],requires:["array-extras","base-build","escape","event-valuechange","node-base"]}); -/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */ -YUI.add("classnamemanager",function(e,t){var n="classNamePrefix",r="classNameDelimiter",i=e.config;i[n]=i[n]||"yui3",i[r]=i[r]||"-",e.ClassNameManager=function(){var t=i[n],s=i[r];return{getClassName:e.cached(function(){var n=e.Array(arguments);return n[n.length-1]!==!0?n.unshift(t):n.pop(),n.join(s)})}}()},"3.9.1",{requires:["yui-base"]}); -/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */ -YUI.add("text-data-wordbreak",function(e,t){e.namespace("Text.Data").WordBreak={aletter:"[A-Za-z\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f3\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097f\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c33\u0c35-\u0c39\u0c3d\u0c58\u0c59\u0c60\u0c61\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d60\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u10a0-\u10c5\u10d0-\u10fa\u10fc\u1100-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f4\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f0\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1820-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191c\u1a00-\u1a16\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bc0-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1ce9-\u1cec\u1cee-\u1cf1\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u24b6-\u24e9\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2d00-\u2d25\u2d30-\u2d65\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005\u303b\u303c\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua697\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua78e\ua790\ua791\ua7a0-\ua7a9\ua7fa-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uabc0-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uffa0-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc]",midnumlet:"['\\.\u2018\u2019\u2024\ufe52\uff07\uff0e]",midletter:"[:\u00b7\u00b7\u05f4\u2027\ufe13\ufe55\uff1a]",midnum:"[,;;\u0589\u060c\u060d\u066c\u07f8\u2044\ufe10\ufe14\ufe50\ufe54\uff0c\uff1b]",numeric:"[0-9\u0660-\u0669\u066b\u06f0-\u06f9\u07c0-\u07c9\u0966-\u096f\u09e6-\u09ef\u0a66-\u0a6f\u0ae6-\u0aef\u0b66-\u0b6f\u0be6-\u0bef\u0c66-\u0c6f\u0ce6-\u0cef\u0d66-\u0d6f\u0e50-\u0e59\u0ed0-\u0ed9\u0f20-\u0f29\u1040-\u1049\u1090-\u1099\u17e0-\u17e9\u1810-\u1819\u1946-\u194f\u19d0-\u19d9\u1a80-\u1a89\u1a90-\u1a99\u1b50-\u1b59\u1bb0-\u1bb9\u1c40-\u1c49\u1c50-\u1c59\ua620-\ua629\ua8d0-\ua8d9\ua900-\ua909\ua9d0-\ua9d9\uaa50-\uaa59\uabf0-\uabf9]",cr:"\\r",lf:"\\n",newline:"[ \f\u0085\u2028\u2029]",extend:"[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065f\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u0900-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0c01-\u0c03\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c82\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d02\u0d03\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d82\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f\u109a-\u109d\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b6-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u192b\u1930-\u193b\u19b0-\u19c0\u19c8\u19c9\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f\u1b00-\u1b04\u1b34-\u1b44\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1baa\u1be6-\u1bf3\u1c24-\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf2\u1dc0-\u1de6\u1dfc-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua880\ua881\ua8b4-\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa7b\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe3-\uabea\uabec\uabed\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]" -,format:"[\u00ad\u0600-\u0603\u06dd\u070f\u17b4\u17b5\u200e\u200f\u202a-\u202e\u2060-\u2064\u206a-\u206f\ufeff\ufff9-\ufffb]",katakana:"[\u3031-\u3035\u309b\u309c\u30a0-\u30fa\u30fc-\u30ff\u31f0-\u31ff\u32d0-\u32fe\u3300-\u3357\uff66-\uff9d]",extendnumlet:"[_\u203f\u2040\u2054\ufe33\ufe34\ufe4d-\ufe4f\uff3f]",punctuation:"[!-#%-*,-\\/:;?@\\[-\\]_{}\u00a1\u00ab\u00b7\u00bb\u00bf;\u00b7\u055a-\u055f\u0589\u058a\u05be\u05c0\u05c3\u05c6\u05f3\u05f4\u0609\u060a\u060c\u060d\u061b\u061e\u061f\u066a-\u066d\u06d4\u0700-\u070d\u07f7-\u07f9\u0830-\u083e\u085e\u0964\u0965\u0970\u0df4\u0e4f\u0e5a\u0e5b\u0f04-\u0f12\u0f3a-\u0f3d\u0f85\u0fd0-\u0fd4\u0fd9\u0fda\u104a-\u104f\u10fb\u1361-\u1368\u1400\u166d\u166e\u169b\u169c\u16eb-\u16ed\u1735\u1736\u17d4-\u17d6\u17d8-\u17da\u1800-\u180a\u1944\u1945\u1a1e\u1a1f\u1aa0-\u1aa6\u1aa8-\u1aad\u1b5a-\u1b60\u1bfc-\u1bff\u1c3b-\u1c3f\u1c7e\u1c7f\u1cd3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205e\u207d\u207e\u208d\u208e\u3008\u3009\u2768-\u2775\u27c5\u27c6\u27e6-\u27ef\u2983-\u2998\u29d8-\u29db\u29fc\u29fd\u2cf9-\u2cfc\u2cfe\u2cff\u2d70\u2e00-\u2e2e\u2e30\u2e31\u3001-\u3003\u3008-\u3011\u3014-\u301f\u3030\u303d\u30a0\u30fb\ua4fe\ua4ff\ua60d-\ua60f\ua673\ua67e\ua6f2-\ua6f7\ua874-\ua877\ua8ce\ua8cf\ua8f8-\ua8fa\ua92e\ua92f\ua95f\ua9c1-\ua9cd\ua9de\ua9df\uaa5c-\uaa5f\uaade\uaadf\uabeb\ufd3e\ufd3f\ufe10-\ufe19\ufe30-\ufe52\ufe54-\ufe61\ufe63\ufe68\ufe6a\ufe6b\uff01-\uff03\uff05-\uff0a\uff0c-\uff0f\uff1a\uff1b\uff1f\uff20\uff3b-\uff3d\uff3f\uff5b\uff5d\uff5f-\uff65]"}},"3.9.1",{requires:["yui-base"]}); -/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */ -YUI.add("text-wordbreak",function(e,t){var n=e.Text,r=n.Data.WordBreak,i=0,s=1,o=2,u=3,a=4,f=5,l=6,c=7,h=8,p=9,d=10,v=11,m=12,g=[new RegExp(r.aletter),new RegExp(r.midnumlet),new RegExp(r.midletter),new RegExp(r.midnum),new RegExp(r.numeric),new RegExp(r.cr),new RegExp(r.lf),new RegExp(r.newline),new RegExp(r.extend),new RegExp(r.format),new RegExp(r.katakana),new RegExp(r.extendnumlet)],y="",b=new RegExp("^"+r.punctuation+"$"),w=/\s/,E={getWords:function(e,t){var n=0,r=E._classify(e),i=r.length,s=[],o=[],u,a,f;t||(t={}),t.ignoreCase&&(e=e.toLowerCase()),a=t.includePunctuation,f=t.includeWhitespace;for(;ne.length-1&&t!==0?!1:r===i&&m===i?!1:(g=e[t+2],r!==i||m!==o&&m!==s||g!==i?(n=e[t-1],r!==o&&r!==s||m!==i||n!==i?r!==a&&r!==i||m!==a&&m!==i?r!==u&&r!==s||m!==a||n!==a?r!==a||m!==u&&m!==s||g!==a?r===h||r===p||n===h||n===p||m===h||m===p?!1:r===f&&m===l?!1:r===c||r===f||r===l?!0:m===c||m===f||m===l?!0:r===d&&m===d?!1:m!==v||r!==i&&r!==a&&r!==d&&r!==v?r!==v||m!==i&&m!==a&&m!==d?!0:!1:!1:!1:!1:!1:!1):!1)}};n.WordBreak=E},"3.9.1",{requires:["array-extras","text-data-wordbreak"]}); -/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */ -YUI.add("highlight-base",function(e,t){var n=e.Array,r=e.Escape,i=e.Text.WordBreak,s=e.Lang.isArray,o={},u="(&[^;\\s]*)?",a={_REGEX:u+"(%needles)",_REPLACER:function(e,t,n){return t&&!/\s/.test(n)?e:a._TEMPLATE.replace(/\{s\}/g,n)},_START_REGEX:"^"+u+"(%needles)",_TEMPLATE:'{s}',all:function(e,t,n){var i=[],u,f,l,c,h,p;n||(n=o),u=n.escapeHTML!==!1,h=n.startsWith?a._START_REGEX:a._REGEX,p=n.replacer||a._REPLACER,t=s(t)?t:[t];for(f=0,l=t.length;f=2)&&(!e.UA.android||e.UA.android>=2.4)),p.nativeHashChange=("onhashchange"in a||"onhashchange"in o)&&(!u||u>7),e.mix(p.prototype,{_init:function(e){var t;e=this._config=e||{},this.force=!!e.force,t=this._initialState=this._initialState||e.initialState||null,this.publish(l,{broadcast:2,defaultFn:this._defChangeFn}),t&&this.replace(t)},add:function(){var e=s(arguments,0,!0);return e.unshift(c),this._change.apply(this,e)},addValue:function(e,t,n){var r={};return r[e]=t,this._change(c,r,n)},get:function(t){var n=i._state,s=d(n);return t?s&&r.owns(n,t)?n[t]:undefined:s?e.mix({},n,!0):n},replace:function(){var e=s(arguments,0,!0);return e.unshift(h),this._change.apply(this,e)},replaceValue:function(e,t,n){var r={};return r[e]=t,this._change(h,r,n)},_change:function(t,n,r){return r=r?e.merge(f,r):f,r.merge&&d(n)&&d(i._state)&&(n=e.merge(i._state,n)),this._resolveChanges(t,n,r),this},_fireEvents:function(e,t,n){this.fire(l,{_options:n,changed:t.changed,newVal:t.newState,prevVal:t.prevState,removed:t.removed,src:e}),r.each(t.changed,function(t,n){this._fireChangeEvent(e,n,t)},this),r.each(t.removed,function(t,n){this._fireRemoveEvent(e,n,t)},this)},_fireChangeEvent:function(e,t,n){this.fire(t+"Change",{newVal:n.newVal,prevVal:n.prevVal,src:e})},_fireRemoveEvent:function(e,t,n){this.fire(t+"Remove",{prevVal:n,src:e})},_resolveChanges:function(e,t,n){var s={},o,u=i._state,a={};t||(t={}),n||(n={}),d(t)&&d(u)?(r.each(t,function(e,t){var n=u[t];e!==n&&(s[t]={newVal:e,prevVal:n},o=!0)},this),r.each(u,function(e,n){if(!r.owns(t,n)||t[n]===null)delete t[n],a[n]=e,o=!0},this)):o=t!==u,(o||this.force)&&this._fireEvents(e,{changed:s,newState:t,prevState:u,removed:a},n)},_storeState:function(e,t){i._state=t||{}},_defChangeFn:function(e){this._storeState(e.src,e.newVal,e._options)}},!0),e.HistoryBase=p},"3.9.1",{requires:["event-custom-complex"]}); -/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */ -YUI.add("history-html5",function(e,t){function a(){a.superclass.constructor.apply(this,arguments)}var n=e.HistoryBase,r=e.Lang,i=e.config.win,s=e.config.useHistoryHTML5,o="popstate",u=n.SRC_REPLACE;e.extend(a,n,{_init:function(t){var n=i.history.state;e.Object.isEmpty(n)&&(n=null),t||(t={}),t.initialState&&r.type(t.initialState)==="object"&&r.type(n)==="object"?this._initialState=e.merge(t.initialState,n):this._initialState=n,e.on("popstate",this._onPopState,i,this),a.superclass._init.apply(this,arguments)},_storeState:function(t,n,r){t!==o&&i.history[t===u?"replaceState":"pushState"](n,r.title||e.config.doc.title||"",r.url||null),a.superclass._storeState.apply(this,arguments)},_onPopState:function(e){this._resolveChanges(o,e._event.state||null)}},{NAME:"historyhtml5",SRC_POPSTATE:o}),e.Node.DOM_EVENTS.popstate||(e.Node.DOM_EVENTS.popstate=1),e.HistoryHTML5=a;if(s===!0||s!==!1&&n.html5)e.History=a},"3.9.1",{optional:["json"],requires:["event-base","history-base","node-base"]}); -/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */ -YUI.add("history-hash",function(e,t){function p(){p.superclass.constructor.apply(this,arguments)}var n=e.HistoryBase,r=e.Lang,i=e.Array,s=e.Object,o=YUI.namespace("Env.HistoryHash"),u="hash",a,f,l,c=e.config.win,h=e.config.useHistoryHTML5;e.extend(p,n,{_init:function(t){var n=p.parseHash();t=t||{},this._initialState=t.initialState?e.merge(t.initialState,n):n,e.after("hashchange",e.bind(this._afterHashChange,this),c),p.superclass._init.apply(this,arguments)},_change:function(e,t,n){return s.each(t,function(e,n){r.isValue(e)&&(t[n]=e.toString())}),p.superclass._change.call(this,e,t,n)},_storeState:function(e,t){var r=p.decode,i=p.createHash(t);p.superclass._storeState.apply(this,arguments),e!==u&&r(p.getHash())!==r(i)&&p[e===n.SRC_REPLACE?"replaceHash":"setHash"](i)},_afterHashChange:function(e){this._resolveChanges(u,p.parseHash(e.newHash),{})}},{NAME:"historyHash",SRC_HASH:u,hashPrefix:"",_REGEX_HASH:/([^\?#&]+)=([^&]+)/g,createHash:function(e){var t=p.encode,n=[];return s.each(e,function(e,i){r.isValue(e)&&n.push(t(i)+"="+t(e))}),n.join("&")},decode:function(e){return decodeURIComponent(e.replace(/\+/g," "))},encode:function(e){return encodeURIComponent(e).replace(/%20/g,"+")},getHash:e.UA.gecko?function(){var t=e.getLocation(),n=/#(.*)$/.exec(t.href),r=n&&n[1]||"",i=p.hashPrefix;return i&&r.indexOf(i)===0?r.replace(i,""):r}:function(){var t=e.getLocation(),n=t.hash.substring(1),r=p.hashPrefix;return r&&n.indexOf(r)===0?n.replace(r,""):n},getUrl:function(){return location.href},parseHash:function(e){var t=p.decode,n,i,s,o,u={},a=p.hashPrefix,f;e=r.isValue(e)?e:p.getHash();if(a){f=e.indexOf(a);if(f===0||f===1&&e.charAt(0)==="#")e=e.replace(a,"")}s=e.match(p._REGEX_HASH)||[];for(n=0,i=s.length;n')),e.config.doc.documentElement.appendChild(s),i._updateIframe(t||"#"),e.on("hashchange",function(e){t=e.newHash,i.getIframeHash()!==t&&i._updateIframe(t)},o),e.later(50,null,function(){var e=i.getIframeHash();e!==t&&i.setHash(e)},null,!0)})}},"3.9.1",{requires:["history-hash","node-base"]}); -/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */ -YUI.add("router",function(e,t){function f(){f.superclass.constructor.apply(this,arguments)}var n=e.HistoryHash,r=e.QueryString,i=e.Array,s=e.config.win,o=[],u=[],a="ready";e.Router=e.extend(f,e.Base,{_regexPathParam:/([:*])([\w\-]+)?/g,_regexUrlQuery:/\?([^#]*).*$/,_regexUrlOrigin:/^(?:[^\/#?:]+:\/\/|\/\/)[^\/]*/,initializer:function(t){var n=this;n._html5=n.get("html5"),n._routes=[],n._url=n._getURL(),n._setRoutes(t&&t.routes?t.routes:n.get("routes")),n._html5?(n._history=new e.HistoryHTML5({force:!0}),n._historyEvents=e.after("history:change",n._afterHistoryChange,n)):n._historyEvents=e.on("hashchange",n._afterHistoryChange,s,n),n.publish(a,{defaultFn:n._defReadyFn,fireOnce:!0,preventable:!1}),n.once("initializedChange",function(){e.once("load",function(){setTimeout(function(){n.fire(a,{dispatched:!!n._dispatched})},20)})}),o.push(this)},destructor:function(){var e=i.indexOf(o,this);e>-1&&o.splice(e,1),this._historyEvents&&this._historyEvents.detach()},dispatch:function(){return this.once(a,function(){this._ready=!0;if(this._html5&&this.upgrade())return;this._dispatch(this._getPath(),this._getURL())}),this},getPath:function(){return this._getPath()},hasRoute:function(e){var t;return this._hasSameOrigin(e)?(this._html5||(e=this._upgradeURL(e)),t=this.removeQuery(this.removeRoot(e)),!!this.match(t).length):!1},match:function(e){return i.filter(this._routes,function(t){return e.search(t.regex)>-1})},removeRoot:function(e){var t=this.get("root");return e=e.replace(this._regexUrlOrigin,""),t&&e.indexOf(t)===0&&(e=e.substring(t.length)),e.charAt(0)==="/"?e:"/"+e},removeQuery:function(e){return e.replace(/\?.*$/,"")},replace:function(e){return this._queue(e,!0)},route:function(e,t){t=i.flatten(i(arguments,1,!0));var n=[];return this._routes.push({callbacks:t,keys:n,path:e,regex:this._getRegex(e,n),callback:t[0]}),this},save:function(e){return this._queue(e)},upgrade:function(){if(!this._html5)return!1;var e=this._getHashPath();return e?(this.once(a,function(){this.replace(e)}),!0):!1},_decode:function(e){return decodeURIComponent(e.replace(/\+/g," "))},_dequeue:function(){var t=this,n;return YUI.Env.windowLoaded?(n=u.shift(),n?n():this):(e.once("load",function(){t._dequeue()}),this)},_dispatch:function(t,n,r){var s=this,o=s._decode,u=s.match(t),a=[],f,l,c;return s._dispatching=s._dispatched=!0,!u||!u.length?(s._dispatching=!1,s):(l=s._getRequest(t,n,r),c=s._getResponse(l),l.next=function(n){var r,h,p;if(n)n==="route"?(a=[],l.next()):e.error(n);else if(r=a.shift())typeof r=="string"&&(h=r,r=s[h],r||e.error("Router: Callback not found: "+h,null,"router")),l.pendingCallbacks=a.length,r.call(s,l,c,l.next);else if(p=u.shift())a=p.callbacks.concat(),f=i.map(p.regex.exec(t)||[],o),f.length===p.keys.length+1?l.params=i.hash(p.keys,f.slice(1)):l.params=f.concat(),l.pendingRoutes=u.length,l.next()},l.next(),s._dispatching=!1,s._dequeue())},_getHashPath:function(e){return e||(e=n.getHash()),e&&e.charAt(0)==="/"?this._joinURL(e):""},_getOrigin:function(){var t=e.getLocation();return t.origin||t.protocol+"//"+t.host},_getPath:function(){var t=!this._html5&&this._getHashPath()||e.getLocation().pathname;return this.removeQuery(this.removeRoot(t))},_getPathRoot:function(){var t="/",n=e.getLocation().pathname,r;return n.charAt(n.length-1)===t?n:(r=n.split(t),r.pop(),r.join(t)+t)},_getQuery:function(){var t=e.getLocation(),r,i;return this._html5?t.search.substring(1):(r=n.getHash(),i=r.match(this._regexUrlQuery),r&&i?i[1]:t.search.substring(1))},_getRegex:function(e,t){return e instanceof RegExp?e:e==="*"?/.*/:(e=e.replace(this._regexPathParam,function(e,n,r){return r?(t.push(r),n==="*"?"(.*?)":"([^/#?]*)"):n==="*"?".*":e}),new RegExp("^"+e+"$"))},_getRequest:function(e,t,n){return{path:e,query:this._parseQuery(this._getQuery()),url:t,src:n}},_getResponse:function(e){var t=function(){return e.next.apply(this,arguments)};return t.req=e,t},_getRoutes:function(){return this._routes.concat()},_getURL:function(){var t=e.getLocation().toString();return this._html5||(t=this._upgradeURL(t)),t},_hasSameOrigin:function(t){var n=(t&&t.match(this._regexUrlOrigin)||[])[0];return n&&n.indexOf("//")===0&&(n=e.getLocation().protocol+n),!n||n===this._getOrigin()},_joinURL:function(e){var t=this.get("root");return e=this.removeRoot(e),e.charAt(0)==="/"&&(e=e.substring(1)),t&&t.charAt(t.length-1)==="/"?t+e:t+"/"+e},_normalizePath:function(e){var t="..",n="/",r,i,s,o,u,a;if(!e||e===n)return n;o=e.split(n),a=[];for(r=0,i=o.length;r=3),_instances:o,dispatch:function(){var e,t,n;for(e=0,t=o.length;e=200&&n<300||n===304||n===1223?this.success(e,t):this.failure(e,t)},_rS:function(e,t){var n=this;e.c.readyState===4&&(t.timeout&&n._clearTimeout(e.id),setTimeout(function(){n.complete(e,t),n._result(e,t)},0))},_abort:function(e,t){e&&e.c&&(e.e=t,e.c.abort())},send:function(t,n,i){var s,o,u,a,f,c,h=this,p=t,d={};n=n?e.Object(n):{},s=h._create(n,i),o=n.method?n.method.toUpperCase():"GET",f=n.sync,c=n.data,e.Lang.isObject(c)&&!c.nodeType&&!s.upload&&e.QueryString&&e.QueryString.stringify&&(n.data=c=e.QueryString.stringify(c));if(n.form){if(n.form.upload)return h.upload(s,t,n);c=h._serialize(n.form,c)}c||(c="");if(c)switch(o){case"GET":case"HEAD":case"DELETE":p=h._concat(p,c),c="";break;case"POST":case"PUT":n.headers=e.merge({"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},n.headers)}if(s.xdr)return h.xdr(p,s,n);if(s.notify)return s.c.send(s,t,n);!f&&!s.upload&&(s.c.onreadystatechange=function(){h._rS(s,n)});try{s.c.open(o,p,!f,n.username||null,n.password||null),h._setHeaders(s.c,n.headers||{}),h.start(s,n),n.xdr&&n.xdr.credentials&&l&&(s.c.withCredentials=!0),s.c.send(c);if(f){for(u=0,a=r.length;u-1?"&":"?")+"pjax=1",t+(n||"")})),this._request=e.io(i,{arguments:{route:{req:t,res:n,next:r},url:i},context:this,headers:{"X-PJAX":"true"},timeout:this.get("timeout"),on:{complete:this._onPjaxIOComplete,end:this._onPjaxIOEnd}})},_onPjaxIOComplete:function(e,t,n){var r=this.getContent(t.responseText),i=n.route,s=i.req,o=i.res;s.ioURL=n.url,o.content=r,o.ioResponse=t,i.next()},_onPjaxIOEnd:function(){this._request=null}},n.ATTRS={addPjaxParam:{value:!0},contentSelector:{value:null},titleSelector:{value:"title"},timeout:{value:3e4}},e.PjaxContent=n},"3.9.1",{requires:["io-base","node-base","router"]}); -/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */ -YUI.add("pjax",function(e,t){var n=["loadContent","_defaultRoute"],r="error",i="load";e.Pjax=e.Base.create("pjax",e.Router,[e.PjaxBase,e.PjaxContent],{initializer:function(){this.publish(r,{defaultFn:this._defCompleteFn}),this.publish(i,{defaultFn:this._defCompleteFn})},_defaultRoute:function(e,t,n){var s=t.ioResponse,o=s.status,u=o>=200&&o<300?i:r;this.fire(u,{content:t.content,responseText:s.responseText,status:o,url:e.ioURL}),n()},_defCompleteFn:function(t){var n=this.get("container"),r=t.content;n&&r.node&&n.setHTML(r.node),r.title&&e.config.doc&&(e.config.doc.title=r.title)}},{ATTRS:{container:{value:null,setter:e.one},routes:{value:[{path:"*",callbacks:n}]}},defaultRoute:n})},"3.9.1",{requires:["pjax-base","pjax-content"]}); diff --git a/docs_api/assets/js/comps4.js b/docs_api/assets/js/comps4.js deleted file mode 100644 index e9b91f1..0000000 --- a/docs_api/assets/js/comps4.js +++ /dev/null @@ -1,464 +0,0 @@ - -/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */ -YUI.add("autocomplete-highlighters",function(e,t){var n=e.Array,r=e.Highlight,i=e.mix(e.namespace("AutoCompleteHighlighters"),{charMatch:function(e,t,i){var s=n.unique((i?e:e.toLowerCase()).split(""));return n.map(t,function(e){return r.all(e.text,s,{caseSensitive:i})})},charMatchCase:function(e,t){return i.charMatch(e,t,!0)},phraseMatch:function(e,t,i){return n.map(t,function(t){return r.all(t.text,[e],{caseSensitive:i})})},phraseMatchCase:function(e,t){return i.phraseMatch(e,t,!0)},startsWith:function(e,t,i){return n.map(t,function(t){return r.all(t.text,[e],{caseSensitive:i,startsWith:!0})})},startsWithCase:function(e,t){return i.startsWith(e,t,!0)},subWordMatch:function(t,i,s){var o=e.Text.WordBreak.getUniqueWords(t,{ignoreCase:!s});return n.map(i,function(e){return r.all(e.text,o,{caseSensitive:s})})},subWordMatchCase:function(e,t){return i.subWordMatch(e,t,!0)},wordMatch:function(e,t,i){return n.map(t,function(t){return r.words(t.text,e,{caseSensitive:i})})},wordMatchCase:function(e,t){return i.wordMatch(e,t,!0)}})},"3.9.1",{requires:["array-extras","highlight-base"]}); -/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */ -YUI.add("autocomplete-sources",function(e,t){var n=e.AutoCompleteBase,r=e.Lang,i="_sourceSuccess",s="maxResults",o="requestTemplate",u="resultListLocator";e.mix(n.prototype,{_YQL_SOURCE_REGEX:/^(?:select|set|use)\s+/i,_beforeCreateObjectSource:function(t){return t instanceof e.Node&&t.get("nodeName").toLowerCase()==="select"?this._createSelectSource(t):e.JSONPRequest&&t instanceof e.JSONPRequest?this._createJSONPSource(t):this._createObjectSource(t)},_createIOSource:function(t){function a(n){var o=n.request;if(r._cache&&o in r._cache){r[i](r._cache[o],n);return}s&&s.isInProgress()&&s.abort(),s=e.io(r._getXHRUrl(t,n),{on:{success:function(t,s){var u;try{u=e.JSON.parse(s.responseText)}catch(a){e.error("JSON parse error",a)}u&&(r._cache&&(r._cache[o]=u),r[i](u,n))}}})}var n={type:"io"},r=this,s,o,u;return n.sendRequest=function(t){o=t;if(u)return;u=!0,e.use("io-base","json-parse",function(){n.sendRequest=a,a(o)})},n},_createJSONPSource:function(t){function u(e){var n=e.request,s=e.query;if(r._cache&&n in r._cache){r[i](r._cache[n],e);return}t._config.on.success=function(t){r._cache&&(r._cache[n]=t),r[i](t,e)},t.send(s)}var n={type:"jsonp"},r=this,s,o;return n.sendRequest=function(i){s=i;if(o)return;o=!0,e.use("jsonp",function(){t instanceof e.JSONPRequest||(t=new e.JSONPRequest(t,{format:e.bind(r._jsonpFormatter,r)})),n.sendRequest=u,u(s)})},n},_createSelectSource:function(e){var t=this;return{type:"select",sendRequest:function(n){var r=[];e.get("options").each(function(e){r.push({html:e.get("innerHTML"),index:e.get("index"),node:e,selected:e.get("selected"),text:e.get("text"),value:e.get("value")})}),t[i](r,n)}}},_createStringSource:function(e){return this._YQL_SOURCE_REGEX.test(e)?this._createYQLSource(e):e.indexOf("{callback}")!==-1?this._createJSONPSource(e):this._createIOSource(e)},_createYQLSource:function(t){function c(o){var u=o.query,a=n.get("yqlEnv"),f=n.get(s),c,h,p;p=r.sub(t,{maxResults:f>0?f:1e3,request:o.request,query:u});if(n._cache&&p in n._cache){n[i](n._cache[p],o);return}c=function(e){n._cache&&(n._cache[p]=e),n[i](e,o)},h={proto:n.get("yqlProtocol")},l?(l._callback=c,l._opts=h,l._params.q=p,a&&(l._params.env=a)):l=new e.YQLRequest(p,{on:{success:c},allowCache:!1},a?{env:a}:null,h),l.send()}var n=this,o={type:"yql"},a,f,l;return n.get(u)||n.set(u,n._defaultYQLLocator),o.sendRequest=function(t){a=t,f||(f=!0,e.use("yql",function(){o.sendRequest=c,c(a)}))},o},_defaultYQLLocator:function(t){var n=t&&t.query&&t.query.results,i;return n&&r.isObject(n)?(i=e.Object.values(n)||[],n=i.length===1?i[0]:i,r.isArray(n)||(n=[n])):n=[],n},_getXHRUrl:function(e,t){var n=this.get(s);return t.query!==t.request&&(e+=t.request),r.sub(e,{maxResults:n>0?n:1e3,query:encodeURIComponent(t.query)})},_jsonpFormatter:function(e,t,n){var i=this.get(s),u=this.get(o);return u&&(e+=u(n)),r.sub(e,{callback:t,maxResults:i>0?i:1e3,query:encodeURIComponent(n)})}}),e.mix(n.ATTRS,{yqlEnv:{value:null},yqlProtocol:{value:"http"}}),e.mix(n.SOURCE_TYPES,{io:"_createIOSource",jsonp:"_createJSONPSource",object:"_beforeCreateObjectSource",select:"_createSelectSource",string:"_createStringSource",yql:"_createYQLSource"},!0)},"3.9.1",{optional:["io-base","json-parse","jsonp","yql"],requires:["autocomplete-base"]}); -/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */ -YUI.add("event-key",function(e,t){var n="+alt",r="+ctrl",i="+meta",s="+shift",o=e.Lang.trim,u={KEY_MAP:{enter:13,esc:27,backspace:8,tab:9,pageup:33,pagedown:34},_typeRE:/^(up|down|press):/,_keysRE:/^(?:up|down|press):|\+(alt|ctrl|meta|shift)/g,processArgs:function(t){var n=t.splice(3,1)[0],r=e.Array.hash(n.match(/\+(?:alt|ctrl|meta|shift)\b/g)||[]),i={type:this._typeRE.test(n)?RegExp.$1:null,mods:r,keys:null},s=n.replace(this._keysRE,""),u,a,f,l;if(s){s=s.split(","),i.keys={};for(l=s.length-1;l>=0;--l){u=o(s[l]);if(!u)continue;+u==u?i.keys[u]=r:(f=u.toLowerCase(),this.KEY_MAP[f]?(i.keys[this.KEY_MAP[f]]=r,i.type||(i.type="down")):(u=u.charAt(0),a=u.toUpperCase(),r["+shift"]&&(u=a),i.keys[u.charCodeAt(0)]=u===a?e.merge(r,{"+shift":!0}):r))}}return i.type||(i.type="press"),i},on:function(e,t,o,u){var a=t._extra,f="key"+a.type,l=a.keys,c=u?"delegate":"on";t._detach=e[c](f,function(e){var t=l?l[e.which]:a.mods;t&&(!t[n]||t[n]&&e.altKey)&&(!t[r]||t[r]&&e.ctrlKey)&&(!t[i]||t[i]&&e.metaKey)&&(!t[s]||t[s]&&e.shiftKey)&&o.fire(e)},u)},detach:function(e,t,n){t._detach.detach()}};u.delegate=u.on,u.detachDelegate=u.detach,e.Event.define("key",u,!0)},"3.9.1",{requires:["event-synthetic"]}); -/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */ -YUI.add("attribute-complex",function(e,t){var n=e.Attribute;n.Complex=function(){},n.Complex.prototype={_normAttrVals:n.prototype._normAttrVals,_getAttrInitVal:n.prototype._getAttrInitVal},e.AttributeComplex=n.Complex},"3.9.1",{requires:["attribute-base"]}); -/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */ -YUI.add("plugin",function(e,t){function n(t){!this.hasImpl||!this.hasImpl(e.Plugin.Base)?n.superclass.constructor.apply(this,arguments):n.prototype.initializer.apply(this,arguments)}n.ATTRS={host:{writeOnce:!0}},n.NAME="plugin",n.NS="plugin",e.extend(n,e.Base,{_handles:null,initializer:function(e){this._handles=[]},destructor:function(){if(this._handles)for(var e=0,t=this._handles.length;e0?m:v,t.fireEvent("on"+u,g)):e.error("simulateKeyEvent(): No event simulation framework present.")}function v(t,f,l,c,h,p,d,v,m,g,y,b,w,E,S,x){t||e.error("simulateMouseEvent(): Invalid target."),r(f)?!u[f.toLowerCase()]&&!a[f]&&e.error("simulateMouseEvent(): Event type '"+f+"' not supported."):e.error("simulateMouseEvent(): Event type must be a string."),i(l)||(l=!0),i(c)||(c=f!=="mousemove"),s(h)||(h=e.config.win),o(p)||(p=1),o(d)||(d=0),o(v)||(v=0),o(m)||(m=0),o(g)||(g=0),i(y)||(y=!1),i(b)||(b=!1),i(w)||(w=!1),i(E)||(E=!1),o(S)||(S=0),x=x||null;var T=null;if(n(e.config.doc.createEvent))T=e.config.doc.createEvent("MouseEvents"),T.initMouseEvent?T.initMouseEvent(f,l,c,h,p,d,v,m,g,y,b,w,E,S,x):(T=e.config.doc.createEvent("UIEvents"),T.initEvent(f,l,c),T.view=h,T.detail=p,T.screenX=d,T.screenY=v,T.clientX=m,T.clientY=g,T.ctrlKey=y,T.altKey=b,T.metaKey=E,T.shiftKey=w,T.button=S,T.relatedTarget=x),x&&!T.relatedTarget&&(f==="mouseout"?T.toElement=x:f==="mouseover"&&(T.fromElement=x)),t.dispatchEvent(T);else if(s(e.config.doc.createEventObject)){T=e.config.doc.createEventObject(),T.bubbles=l,T.cancelable=c,T.view=h,T.detail=p,T.screenX=d,T.screenY=v,T.clientX=m,T.clientY=g,T.ctrlKey=y,T.altKey=b,T.metaKey=E,T.shiftKey=w;switch(S){case 0:T.button=1;break;case 1:T.button=4;break;case 2:break;default:T.button=0}T.relatedTarget=x,t.fireEvent("on"+f,T)}else e.error("simulateMouseEvent(): No event simulation framework present.")}function m(t,u,a,f,h,p){t||e.error("simulateUIEvent(): Invalid target."),r(u)?(u=u.toLowerCase(),l[u]||e.error("simulateUIEvent(): Event type '"+u+"' not supported.")):e.error("simulateUIEvent(): Event type must be a string.");var d=null;i(a)||(a=u in c),i(f)||(f=u==="submit"),s(h)||(h=e.config.win),o(p)||(p=1),n(e.config.doc.createEvent)?(d=e.config.doc.createEvent("UIEvents"),d.initUIEvent(u,a,f,h,p),t.dispatchEvent(d)):s(e.config.doc.createEventObject)?(d=e.config.doc.createEventObject(),d.bubbles=a,d.cancelable=f,d.view=h,d.detail=p,t.fireEvent("on"+u,d)):e.error("simulateUIEvent(): No event simulation framework present.")}function g(t,n,r,i,s,o,u,a,f,l,c,h,d,v,m,g){var y;(!e.UA.ios||e.UA.ios<2)&&e.error("simulateGestureEvent(): Native gesture DOM eventframe is not available in this platform."),t||e.error("simulateGestureEvent(): Invalid target."),e.Lang.isString(n)?(n=n.toLowerCase(),p[n]||e.error("simulateTouchEvent(): Event type '"+n+"' not supported.")):e.error("simulateGestureEvent(): Event type must be a string."),e.Lang.isBoolean(r)||(r=!0),e.Lang.isBoolean(i)||(i=!0),e.Lang.isObject(s)||(s=e.config.win),e.Lang.isNumber(o)||(o=2),e.Lang.isNumber(u)||(u=0),e.Lang.isNumber(a)||(a=0),e.Lang.isNumber(f)||(f=0),e.Lang.isNumber(l)||(l=0),e.Lang.isBoolean(c)||(c=!1),e.Lang.isBoolean(h)||(h=!1),e.Lang.isBoolean(d)||(d=!1),e.Lang.isBoolean(v)||(v=!1),e.Lang.isNumber(m)||(m=1),e.Lang.isNumber(g)||(g=0),y=e.config.doc.createEvent("GestureEvent"),y.initGestureEvent(n,r,i,s,o,u,a,f,l,c,h,d,v,t,m,g),t.dispatchEvent(y)}function y(t,n,r,i,s,o,u,a,f,l,c,p,d,v,m,g,y,b,w){var E;t||e.error("simulateTouchEvent(): Invalid target."),e.Lang.isString(n)?(n=n.toLowerCase(),h[n]||e.error("simulateTouchEvent(): Event type '"+n+"' not supported.")):e.error("simulateTouchEvent(): Event type must be a string."),n==="touchstart"||n==="touchmove"?m.length===0&&e.error("simulateTouchEvent(): No touch object in touches"):n==="touchend"&&y.length===0&&e.error("simulateTouchEvent(): No touch object in changedTouches"),e.Lang.isBoolean(r)||(r=!0),e.Lang.isBoolean(i)||(i=n!=="touchcancel"),e.Lang.isObject(s)||(s=e.config.win),e.Lang.isNumber(o)||(o=1),e.Lang.isNumber(u)||(u=0),e.Lang.isNumber(a)||(a=0),e.Lang.isNumber(f)||(f=0),e.Lang.isNumber(l)||(l=0),e.Lang.isBoolean(c)||(c=!1),e.Lang.isBoolean(p)||(p=!1),e.Lang.isBoolean(d)||(d=!1),e.Lang.isBoolean(v)||(v=!1),e.Lang.isNumber(b)||(b=1),e.Lang.isNumber(w)||(w=0),e.Lang.isFunction(e.config.doc.createEvent)?(e.UA.android?e.UA.android<4?(E=e.config.doc.createEvent("MouseEvents"),E.initMouseEvent(n,r,i,s,o,u,a,f,l,c,p,d,v,0,t),E.touches=m,E.targetTouches=g,E.changedTouches=y):(E=e.config.doc.createEvent("TouchEvent"),E.initTouchEvent(m,g,y,n,s,u,a,f,l,c,p,d,v)):e.UA.ios?e.UA.ios>=2?(E=e.config.doc.createEvent("TouchEvent"),E.initTouchEvent(n,r,i,s,o,u,a,f,l,c,p,d,v,m,g,y,b,w)):e.error("simulateTouchEvent(): No touch event simulation framework present for iOS, "+e.UA.ios+"."):e.error("simulateTouchEvent(): Not supported agent yet, "+e.UA.userAgent),t.dispatchEvent(E)):e.error("simulateTouchEvent(): No event simulation framework present.")}var t=e.Lang,n=t.isFunction,r=t.isString,i=t.isBoolean,s=t.isObject,o=t.isNumber,u={click:1,dblclick:1,mouseover:1,mouseout:1,mousedown:1,mouseup:1,mousemove:1,contextmenu:1},a={MSPointerOver:1,MSPointerOut:1,MSPointerDown:1,MSPointerUp:1,MSPointerMove:1},f={keydown:1,keyup:1,keypress:1},l={submit:1,blur:1,change:1,focus:1,resize:1,scroll:1,select:1},c={scroll:1,resize:1,reset:1,submit:1,change:1,select -:1,error:1,abort:1},h={touchstart:1,touchmove:1,touchend:1,touchcancel:1},p={gesturestart:1,gesturechange:1,gestureend:1};e.mix(c,u),e.mix(c,f),e.mix(c,h),e.Event.simulate=function(t,n,r){r=r||{},u[n]||a[n]?v(t,n,r.bubbles,r.cancelable,r.view,r.detail,r.screenX,r.screenY,r.clientX,r.clientY,r.ctrlKey,r.altKey,r.shiftKey,r.metaKey,r.button,r.relatedTarget):f[n]?d(t,n,r.bubbles,r.cancelable,r.view,r.ctrlKey,r.altKey,r.shiftKey,r.metaKey,r.keyCode,r.charCode):l[n]?m(t,n,r.bubbles,r.cancelable,r.view,r.detail):h[n]?e.config.win&&"ontouchstart"in e.config.win&&!e.UA.phantomjs&&!(e.UA.chrome&&e.UA.chrome<6)?y(t,n,r.bubbles,r.cancelable,r.view,r.detail,r.screenX,r.screenY,r.clientX,r.clientY,r.ctrlKey,r.altKey,r.shiftKey,r.metaKey,r.touches,r.targetTouches,r.changedTouches,r.scale,r.rotation):e.error("simulate(): Event '"+n+"' can't be simulated. Use gesture-simulate module instead."):e.UA.ios&&e.UA.ios>=2&&p[n]?g(t,n,r.bubbles,r.cancelable,r.view,r.detail,r.screenX,r.screenY,r.clientX,r.clientY,r.ctrlKey,r.altKey,r.shiftKey,r.metaKey,r.scale,r.rotation):e.error("simulate(): Event '"+n+"' can't be simulated.")}})()},"3.9.1",{requires:["event-base"]}); -/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */ -YUI.add("async-queue",function(e,t){e.AsyncQueue=function(){this._init(),this.add.apply(this,arguments)};var n=e.AsyncQueue,r="execute",i="shift",s="promote",o="remove",u=e.Lang.isObject,a=e.Lang.isFunction;n.defaults=e.mix({autoContinue:!0,iterations:1,timeout:10,until:function(){return this.iterations|=0,this.iterations<=0}},e.config.queueDefaults||{}),e.extend(n,e.EventTarget,{_running:!1,_init:function(){e.EventTarget.call(this,{prefix:"queue",emitFacade:!0}),this._q=[],this.defaults={},this._initEvents()},_initEvents:function(){this.publish({execute:{defaultFn:this._defExecFn,emitFacade:!0},shift:{defaultFn:this._defShiftFn,emitFacade:!0},add:{defaultFn:this._defAddFn,emitFacade:!0},promote:{defaultFn:this._defPromoteFn,emitFacade:!0},remove:{defaultFn:this._defRemoveFn,emitFacade:!0}})},next:function(){var e;while(this._q.length){e=this._q[0]=this._prepare(this._q[0]);if(!e||!e.until())break;this.fire(i,{callback:e}),e=null}return e||null},_defShiftFn:function(e){this.indexOf(e.callback)===0&&this._q.shift()},_prepare:function(t){if(a(t)&&t._prepared)return t;var r=e.merge(n.defaults,{context:this,args:[],_prepared:!0},this.defaults,a(t)?{fn:t}:t),i=e.bind(function(){i._running||i.iterations--,a(i.fn)&&i.fn.apply(i.context||e,e.Array(i.args))},this);return e.mix(i,r)},run:function(){var e,t=!0;for(e=this.next();t&&e&&!this.isRunning();e=this.next())t=e.timeout<0?this._execute(e):this._schedule(e);return e||this.fire("complete"),this},_execute:function(e){this._running=e._running=!0,e.iterations--,this.fire(r,{callback:e});var t=this._running&&e.autoContinue;return this._running=e._running=!1,t},_schedule:function(t){return this._running=e.later(t.timeout,this,function(){this._execute(t)&&this.run()}),!1},isRunning:function(){return!!this._running},_defExecFn:function(e){e.callback()},add:function(){return this.fire("add",{callbacks:e.Array(arguments,0,!0)}),this},_defAddFn:function(t){var n=this._q,r=[];e.Array.each(t.callbacks,function(e){u(e)&&(n.push(e),r.push(e))}),t.added=r},pause:function(){return u(this._running)&&this._running.cancel(),this._running=!1,this},stop:function(){return this._q=[],this.pause()},indexOf:function(e){var t=0,n=this._q.length,r;for(;t-1?this._q[t]:null},promote:function(e){var t={callback:e},n;return this.isRunning()?n=this.after(i,function(){this.fire(s,t),n.detach()},this):this.fire(s,t),this},_defPromoteFn:function(e){var t=this.indexOf(e.callback),n=t>-1?this._q.splice(t,1)[0]:null;e.promoted=n,n&&this._q.unshift(n)},remove:function(e){var t={callback:e},n;return this.isRunning()?n=this.after(i,function(){this.fire(o,t),n.detach()},this):this.fire(o,t),this},_defRemoveFn:function(e){var t=this.indexOf(e.callback);e.removed=t>-1?this._q.splice(t,1)[0]:null},size:function(){return this.isRunning()||this.next(),this._q.length}})},"3.9.1",{requires:["event-custom"]}); -/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */ -YUI.add("gesture-simulate",function(e,t){function T(n){n||e.error(t+": invalid target node"),this.node=n,this.target=e.Node.getDOMNode(n);var r=this.node.getXY(),i=this._getDims();a=r[0]+i[0]/2,f=r[1]+i[1]/2}var t="gesture-simulate",n=e.config.win&&"ontouchstart"in e.config.win&&!e.UA.phantomjs&&!(e.UA.chrome&&e.UA.chrome<6),r={tap:1,doubletap:1,press:1,move:1,flick:1,pinch:1,rotate:1},i={touchstart:1,touchmove:1,touchend:1,touchcancel:1},s=e.config.doc,o,u=20,a,f,l={HOLD_TAP:10,DELAY_TAP:10,HOLD_PRESS:3e3,MIN_HOLD_PRESS:1e3,MAX_HOLD_PRESS:6e4,DISTANCE_MOVE:200,DURATION_MOVE:1e3,MAX_DURATION_MOVE:5e3,MIN_VELOCITY_FLICK:1.3,DISTANCE_FLICK:200,DURATION_FLICK:1e3,MAX_DURATION_FLICK:5e3,DURATION_PINCH:1e3},c="touchstart",h="touchmove",p="touchend",d="gesturestart",v="gesturechange",m="gestureend",g="mouseup",y="mousemove",b="mousedown",w="click",E="dblclick",S="x",x="y";T.prototype={_toRadian:function(e){return e*(Math.PI/180)},_getDims:function(){var e,t,n;return this.target.getBoundingClientRect?(e=this.target.getBoundingClientRect(),"height"in e?n=e.height:n=Math.abs(e.bottom-e.top),"width"in e?t=e.width:t=Math.abs(e.right-e.left)):(e=this.node.get("region"),t=e.width,n=e.height),[t,n]},_calculateDefaultPoint:function(t){var n;return!e.Lang.isArray(t)||t.length===0?t=[a,f]:(t.length==1&&(n=this._getDims[1],t[1]=n/2),t[0]=this.node.getX()+t[0],t[1]=this.node.getY()+t[1]),t},rotate:function(n,r,i,s,o,u,a){var f,l=i,c=s;if(!e.Lang.isNumber(l)||!e.Lang.isNumber(c)||l<0||c<0)f=this.target.offsetWidth=2&&this._simulateEvent(this.target,d,e.merge({scale:k,rotation:O},r))},timeout:0,context:this}),H=Math.floor(o/b),T=(x-S)/H,A=(L-k)/H,_=(M-O)/H,B=function(t){var n=S+T*t,r=N+n*Math.sin(this._toRadian(O+_*t)),i=C-n*Math.cos(this._toRadian(O+_*t)),s=N-n*Math.sin(this._toRadian(O+_*t)),o=C+n*Math.cos(this._toRadian(O+_*t)),u=(r+s)/2,a=(i+o)/2,f,l,c,p;f={pageX:r,pageY:i,clientX:r,clientY:i},l={pageX:s,pageY:o,clientX:s,clientY:o},p=this._createTouchList([e.merge({identifier:E++},f),e.merge({identifier:E++},l)]),c={pageX:u,pageY:a,clientX:u,clientY:a},this._simulateEvent(this.target,h,e.merge({touches:p,targetTouches:p,changedTouches:p,scale:k+A*t,rotation:O+_*t},c)),e.UA.ios>=2&&this._simulateEvent(this.target,v,e.merge({scale:k+A*t,rotation:O+_*t},c))};for(y=0;y=2&&this._simulateEvent(this.target,m,e.merge({scale:L,rotation:M},i)),this._simulateEvent(this.target,p,e.merge({touches:t,targetTouches:t,changedTouches:s,scale:L,rotation:M},i))},context:this}),n&&e.Lang.isFunction(n)&&g.add({fn:n,context:this.node}),g.run()},tap:function(t,r,i,s,o){var u=new e.AsyncQueue,a=this._getEmptyTouchList(),f,h,d,v,m;r=this._calculateDefaultPoint(r);if(!e.Lang.isNumber(i)||i<1)i=1;e.Lang.isNumber(s)||(s=l.HOLD_TAP),e.Lang.isNumber(o)||(o=l.DELAY_TAP),h={pageX:r[0],pageY:r[1],clientX:r[0],clientY:r[1]},f=this._createTouchList([e.merge({identifier:0},h)]),v=function(){this._simulateEvent(this.target,c,e.merge({touches:f,targetTouches:f,changedTouches:f},h))},m=function(){this._simulateEvent(this.target,p,e.merge({touches:a,targetTouches:a,changedTouches:f},h))};for(d=0;d1&&!n&&u.add({fn:function(){this._simulateEvent(this.target,E,h)},context:this}),t&&e.Lang.isFunction(t)&&u.add({fn:t,context:this.node}),u.run()},flick:function(n,r,i,s,o){var u;r=this._calculateDefaultPoint(r),e.Lang.isString(i)?(i=i.toLowerCase(),i!==S&&i!==x&&e.error(t+"(flick): Only x or y axis allowed")):i=S,e.Lang.isNumber(s)||(s=l.DISTANCE_FLICK),e.Lang.isNumber(o)?o>l.MAX_DURATION_FLICK&&(o=l.MAX_DURATION_FLICK):o=l.DURATION_FLICK,Math.abs(s)/ol.MAX_DURATION_MOVE&&(r=l.MAX_DURATION_MOVE):r=l.DURATION_MOVE,i={start:e.clone(n.point),end:[n.point[0]+n.xdist,n.point[1]+n.ydist]},this._move(t,i,r)},_move:function(t,n,r){var i,s,o=u,d,v,m,g=0,y;e.Lang.isNumber(r)?r>l.MAX_DURATION_MOVE&&(r=l.MAX_DURATION_MOVE):r=l.DURATION_MOVE,e.Lang.isObject(n)?(e.Lang.isArray(n.start)||(n.start=[a,f]),e.Lang.isArray(n.end)||(n.end=[a+l.DISTANCE_MOVE,f])):n={start:[a,f],end:[a+l.DISTANCE_MOVE,f]},e.AsyncQueue.defaults.timeout=o,i=new e.AsyncQueue,i.add({fn:function(){var t={pageX:n.start[0],pageY:n.start[1],clientX:n.start[0],clientY:n.start[1]},r=this._createTouchList([e.merge({identifier:g++},t)]);this._simulateEvent(this.target,c,e.merge({touches:r,targetTouches:r,changedTouches:r},t))},timeout:0,context:this}),d=Math.floor(r/o),v=(n.end[0]-n.start[0])/d,m=(n.end[1]-n.start[1])/d,y=function(t){var r=n.start[0]+v*t,i=n.start[1]+m*t,s={pageX:r,pageY:i,clientX:r,clientY:i},o=this._createTouchList([e.merge({identifier:g++},s)]);this._simulateEvent(this.target,h,e.merge({touches:o,targetTouches:o,changedTouches:o},s))};for(s=0;s=4||e.UA.ios&&e.UA.ios>=2?(e.each(n,function(t){t.identifier||(t.identifier=0),t.pageX||(t.pageX=0),t.pageY||(t.pageY=0),t.screenX||(t.screenX=0),t.screenY||(t.screenY=0),r.push(s.createTouch(e.config.win,o.target,t.identifier,t.pageX,t.pageY,t.screenX,t.screenY))}),i=s.createTouchList.apply(s,r)):e.UA.ios&&e.UA.ios<2?e.error(t+": No touch event simulation framework present."):(i=[],e.each(n,function(e){e.identifier||(e.identifier=0),e.clientX||(e.clientX=0),e.clientY||(e.clientY=0),e.pageX||(e.pageX=0),e.pageY||(e.pageY=0),e.screenX||(e.screenX=0),e.screenY||(e.screenY=0),i.push({target:o.target,identifier:e.identifier,clientX:e.clientX,clientY:e.clientY,pageX:e.pageX,pageY:e.pageY,screenX:e.screenX,screenY:e.screenY})}),i.item=function(e){return i[e]}):e.error(t+": Invalid touchPoints passed"),i},_simulateEvent:function(t,r,s){var o;i[r]?n?e.Event.simulate(t,r,s):this._isSingleTouch(s.touches,s.targetTouches,s.changedTouches)?(r={touchstart:b,touchmove:y,touchend:g}[r],s.button=0,s.relatedTarget=null,o=r===g?s.changedTouches:s.touches,s=e.mix(s,{screenX:o.item(0).screenX,screenY:o.item(0).screenY,clientX:o.item(0).clientX,clientY:o.item(0).clientY},!0),e.Event.simulate(t,r,s),r==g&&e.Event.simulate(t,w,s)):e.error("_simulateEvent(): Event '"+r+"' has multi touch objects that can't be simulated in your platform."):e.Event.simulate(t,r,s)},_isSingleTouch:function(e,t,n){return e&&e.length<=1&&t&&t.length<=1&&n&&n.length<=1}},e.GestureSimulation=T,e.GestureSimulation.defaults=l,e.GestureSimulation.GESTURES=r,e.Event.simulateGesture=function(n,i,s,o){n=e.one(n);var u=new e.GestureSimulation(n);i=i.toLowerCase(),!o&&e.Lang.isFunction(s)&&(o=s,s={}),s=s||{};if(r[i])switch(i){case"tap":u.tap(o,s.point,s.times,s.hold,s.delay);break;case"doubletap":u.tap(o,s.point,2);break;case"press":e.Lang.isNumber(s.hold)?s.holdl.MAX_HOLD_PRESS&&(s.hold=l.MAX_HOLD_PRESS):s.hold=l.HOLD_PRESS,u.tap(o,s.point,1,s.hold);break;case"move":u.move(o,s.path,s.duration);break;case"flick":u.flick(o,s.point,s.axis,s.distance,s.duration);break;case"pinch":u.pinch(o,s.center,s.r1,s.r2,s.duration,s.start,s.rotation);break;case"rotate":u.rotate(o,s.center,s.r1,s.r2,s.duration,s.start,s.rotation)}else e.error(t+": Not a supported gesture simulation: "+i)}},"3.9.1",{requires:["async-queue","event-simulate","node-screen"]}); -/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */ -YUI.add("node-event-simulate",function(e,t){e.Node.prototype.simulate=function(t,n){e.Event.simulate(e.Node.getDOMNode(this),t,n)},e.Node.prototype.simulateGesture=function(t,n,r){e.Event.simulateGesture(this,t,n,r)}},"3.9.1",{requires:["node-base","event-simulate","gesture-simulate"]}); -/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */ -YUI.add("node-focusmanager",function(e,t){var n="activeDescendant",r="id",i="disabled",s="tabIndex",o="focused",u="focusClass",a="circular",f="UI",l="key",c=n+"Change",h="host",p={37:!0,38:!0,39:!0,40:!0},d={a:!0,button:!0,input:!0,object:!0},v=e.Lang,m=e.UA,g=function(){g.superclass.constructor.apply(this,arguments)};g.ATTRS={focused:{value:!1,readOnly:!0},descendants:{getter:function(e){return this.get(h).all(e)}},activeDescendant:{setter:function(t){var n=v.isNumber,i=e.Attribute.INVALID_VALUE,s=this._descendantsMap,o=this._descendants,u,a,f;return n(t)?(u=t,a=u):t instanceof e.Node&&s?(u=s[t.get(r)],n(u)?a=u:a=i):a=i,o&&(f=o.item(u),f&&f.get("disabled")&&(a=i)),a}},keys:{value:{next:null,previous:null}},focusClass:{},circular:{value:!0}},e.extend(g,e.Plugin.Base,{_stopped:!0,_descendants:null,_descendantsMap:null,_focusedNode:null,_lastNodeIndex:0,_eventHandlers:null,_initDescendants:function(){var t=this.get("descendants"),o={},u=-1,a,f=this.get(n),l,c,h=0;v.isUndefined(f)&&(f=-1);if(t){a=t.size();for(h=0;h=0&&(r-=1,r===-1&&this.get(a)&&(r=this._lastNodeIndex),i=this._descendants.item(r),i&&(i.get("disabled")?this._focusPrevious(e,r):this.focus(r))),this._preventScroll(e)},_afterActiveDescendantChange:function(e){var t=this._descendants.item(e.prevVal);t&&t.set(s,-1),t=this._descendants.item(e.newVal),t&&t.set(s,0)},initializer:function(e){this.start()},destructor:function(){this.stop(),this.get(h).focusManager=null},focus:function(e){v.isUndefined(e)&&(e=this.get(n)),this.set(n,e,{src:f});var t=this._descendants.item(this.get(n));t&&(t.focus(),m.opera&&t.get("nodeName").toLowerCase()==="button"&&(this._focusTarget=t))},blur:function(){var e;this.get(o)&&(e=this._descendants.item(this.get(n)),e&&(e.blur(),this._removeFocusClass()),this._set(o,!1,{src:f}))},start:function(){this._stopped&&(this._initDescendants(),this._attachEventHandlers(),this._stopped=!1)},stop:function(){this._stopped||(this._detachEventHandlers(),this._descendants=null,this._focusedNode=null,this._lastNodeIndex=0,this._stopped=!0)},refresh:function(){this._initDescendants(),this._eventHandlers||this._attachEventHandlers()}}),g.NAME="nodeFocusManager",g.NS="focusManager",e.namespace("Plugin"),e.Plugin.NodeFocusManager=g},"3.9.1",{requires:["attribute","node","plugin","node-event-simulate","event-key","event-focus"]}); -/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */ -YUI.add("base-pluginhost",function(e,t){var n=e.Base,r=e.Plugin.Host;e.mix(n,r,!1,null,1),n.plug=r.plug,n.unplug=r.unplug},"3.9.1",{requires:["base-base","pluginhost"]}); -/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */ -YUI.add("widget-base",function(e,t){function R(e){var t=this,n,r,i=t.constructor;t._strs={},t._cssPrefix=i.CSS_PREFIX||s(i.NAME.toLowerCase()),e=e||{},R.superclass.constructor.call(t,e),r=t.get(T),r&&(r!==P&&(n=r),t.render(n))}var n=e.Lang,r=e.Node,i=e.ClassNameManager,s=i.getClassName,o,u=e.cached(function(e){return e.substring(0,1).toUpperCase()+e.substring(1)}),a="content",f="visible",l="hidden",c="disabled",h="focused",p="width",d="height",v="boundingBox",m="contentBox",g="parentNode",y="ownerDocument",b="auto",w="srcNode",E="body",S="tabIndex",x="id",T="render",N="rendered",C="destroyed",k="strings",L="
    ",A="Change",O="loading",M="_uiSet",_="",D=function(){},P=!0,H=!1,B,j={},F=[f,c,d,p,h,S],I=e.UA.webkit,q={};R.NAME="widget",B=R.UI_SRC="ui",R.ATTRS=j,j[x]={valueFn:"_guid",writeOnce:P},j[N]={value:H,readOnly:P},j[v]={value:null,setter:"_setBB",writeOnce:P},j[m]={valueFn:"_defaultCB",setter:"_setCB",writeOnce:P},j[S]={value:null,validator:"_validTabIndex"},j[h]={value:H,readOnly:P},j[c]={value:H},j[f]={value:P},j[d]={value:_},j[p]={value:_},j[k]={value:{},setter:"_strSetter",getter:"_strGetter"},j[T]={value:H,writeOnce:P},R.CSS_PREFIX=s(R.NAME.toLowerCase()),R.getClassName=function(){return s.apply(i,[R.CSS_PREFIX].concat(e.Array(arguments),!0))},o=R.getClassName,R.getByNode=function(t){var n,i=o();return t=r.one(t),t&&(t=t.ancestor("."+i,!0),t&&(n=q[e.stamp(t,!0)])),n||null},e.extend(R,e.Base,{getClassName:function(){return s.apply(i,[this._cssPrefix].concat(e.Array(arguments),!0))},initializer:function(t){var n=this.get(v);n instanceof r&&this._mapInstance(e.stamp(n)),this._applyParser&&this._applyParser(t)},_mapInstance:function(e){q[e]=this},destructor:function(){var t=this.get(v),n;t instanceof r&&(n=e.stamp(t,!0),n in q&&delete q[n],this._destroyBox())},destroy:function(e){return this._destroyAllNodes=e,R.superclass.destroy.apply(this)},_destroyBox:function(){var e=this.get(v),t=this.get(m),n=this._destroyAllNodes,r;r=e&&e.compareTo(t),this.UI_EVENTS&&this._destroyUIEvents(),this._unbindUI(e),n?(e.empty(),e.remove(P)):(t&&t.remove(P),r||e.remove(P))},render:function(e){return!this.get(C)&&!this.get(N)&&(this.publish(T,{queuable:H,fireOnce:P,defaultTargetOnly:P,defaultFn:this._defRenderFn}),this.fire(T,{parentNode:e?r.one(e):null})),this},_defRenderFn:function(e){this._parentNode=e.parentNode,this.renderer(),this._set(N,P),this._removeLoadingClassNames()},renderer:function(){var e=this;e._renderUI(),e.renderUI(),e._bindUI(),e.bindUI(),e._syncUI(),e.syncUI()},bindUI:D,renderUI:D,syncUI:D,hide:function(){return this.set(f,H)},show:function(){return this.set(f,P)},focus:function(){return this._set(h,P)},blur:function(){return this._set(h,H)},enable:function(){return this.set(c,H)},disable:function(){return this.set(c,P)},_uiSizeCB:function(e){this.get(m).toggleClass(o(a,"expanded"),e)},_renderBox:function(e){var t=this,n=t.get(m),i=t.get(v),s=t.get(w),o=t.DEF_PARENT_NODE,u=s&&s.get(y)||i.get(y)||n.get(y);s&&!s.compareTo(n)&&!n.inDoc(u)&&s.replace(n),!i.compareTo(n.get(g))&&!i.compareTo(n)&&(n.inDoc(u)&&n.replace(i),i.appendChild(n)),e=e||o&&r.one(o),e?e.appendChild(i):i.inDoc(u)||r.one(E).insert(i,0)},_setBB:function(e){return this._setBox(this.get(x),e,this.BOUNDING_TEMPLATE,!0)},_setCB:function(e){return this.CONTENT_TEMPLATE===null?this.get(v):this._setBox(null,e,this.CONTENT_TEMPLATE,!1)},_defaultCB:function(e){return this.get(w)||null},_setBox:function(t,n,i,s){return n=r.one(n),n||(n=r.create(i),s?this._bbFromTemplate=!0:this._cbFromTemplate=!0),n.get(x)||n.set(x,t||e.guid()),n},_renderUI:function(){this._renderBoxClassNames(),this._renderBox(this._parentNode)},_renderBoxClassNames:function(){var e=this._getClasses(),t,n=this.get(v),r;n.addClass(o());for(r=e.length-3;r>=0;r--)t=e[r],n.addClass(t.CSS_PREFIX||s(t.NAME.toLowerCase()));this.get(m).addClass(this.getClassName(a))},_removeLoadingClassNames:function(){var e=this.get(v),t=this.get(m),n=this.getClassName(O),r=o(O);e.removeClass(r).removeClass(n),t.removeClass(r).removeClass(n)},_bindUI:function(){this._bindAttrUI(this._UI_ATTRS.BIND),this._bindDOM()},_unbindUI:function(e){this._unbindDOM(e)},_bindDOM:function(){var t=this.get(v).get(y),n=R._hDocFocus;n||(n=R._hDocFocus=t.on("focus",this._onDocFocus,this),n.listeners={count:0}),n.listeners[e.stamp(this,!0)]=!0,n.listeners.count++,I&&(this._hDocMouseDown=t.on("mousedown",this._onDocMouseDown,this))},_unbindDOM:function(t){var n=R._hDocFocus,r=e.stamp(this,!0),i,s=this._hDocMouseDown;n&&(i=n.listeners,i[r]&&(delete i[r],i.count--),i.count===0&&(n.detach(),R._hDocFocus=null)),I&&s&&s.detach()},_syncUI:function(){this._syncAttrUI(this._UI_ATTRS.SYNC)},_uiSetHeight:function(e){this._uiSetDim(d,e),this._uiSizeCB(e!==_&&e!==b)},_uiSetWidth:function(e){this._uiSetDim(p,e)},_uiSetDim:function(e,t){this.get(v).setStyle(e,n.isNumber(t)?t+this.DEF_UNIT:t)},_uiSetVisible:function(e){this.get(v).toggleClass(this.getClassName(l),!e)},_uiSetDisabled:function(e){this.get(v).toggleClass(this.getClassName(c),e)},_uiSetFocused:function(e,t){var n=this.get(v);n.toggleClass(this.getClassName(h),e),t!==B&&(e?n.focus():n.blur())},_uiSetTabIndex:function(e){var t=this.get(v);n.isNumber(e)?t.set(S,e):t.removeAttribute(S)},_onDocMouseDown:function(e){this._domFocus&&this._onDocFocus(e)},_onDocFocus:function(e){var t=R.getByNode(e.target),n=R._active;n&&n!==t&&(n._domFocus=!1,n._set(h,!1,{src:B}),R._active=null),t&&(t._domFocus=!0,t._set(h,!0,{src:B}),R._active=t)},toString:function(){return this.name+"["+this.get(x)+"]"},DEF_UNIT:"px",DEF_PARENT_NODE:null,CONTENT_TEMPLATE:L,BOUNDING_TEMPLATE:L,_guid:function(){return e.guid()},_validTabIndex:function(e){return n.isNumber(e)||n.isNull(e)},_bindAttrUI:function(e){var t,n=e.length;for(t=0;t=0;r--)i=t[r].HTML_PARSER,i&&e.mix(n,i,!0);return n}})},"3.9.1",{requires:["widget-base"]}); -/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */ -YUI.add("widget-skin",function(e,t){var n="boundingBox",r="contentBox",i="skin",s=e.ClassNameManager.getClassName;e.Widget.prototype.getSkinName=function(){var e=this.get(r)||this.get(n),t=new RegExp("\\b"+s(i)+"-(\\S+)"),o;return e&&e.ancestor(function(e){return o=e.get("className").match(t),o}),o?o[1]:null}},"3.9.1",{requires:["widget-base"]}); -/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */ -YUI.add("widget-uievents",function(e,t){var n="boundingBox",r=e.Widget,i="render",s=e.Lang,o=":",u=e.Widget._uievts=e.Widget._uievts||{};e.mix(r.prototype,{_destroyUIEvents:function(){var t=e.stamp(this,!0);e.each(u,function(n,r){n.instances[t]&&(delete n.instances[t],e.Object.isEmpty(n.instances)&&(n.handle.detach(),u[r]&&delete u[r]))})},UI_EVENTS:e.Node.DOM_EVENTS,_getUIEventNode:function(){return this.get(n)},_createUIEvent:function(t){var n=this._getUIEventNode(),i=e.stamp(n)+t,s=u[i],o;s||(o=n.delegate(t,function(e){var t=r.getByNode(this);t&&t._filterUIEvent(e)&&t.fire(e.type,{domEvent:e})},"."+e.Widget.getClassName()),u[i]=s={instances:{},handle:o}),s.instances[e.stamp(this)]=1},_filterUIEvent:function(e){return e.currentTarget.compareTo(e.container)||e.container.compareTo(this._getUIEventNode())},_getUIEvent:function(e){if(s.isString(e)){var t=this.parseType(e)[1],n,r;return t&&(n=t.indexOf(o),n>-1&&(t=t.substring(n+o.length)),this.UI_EVENTS[t]&&(r=t)),r}},_initUIEvent:function(e){var t=this._getUIEvent(e),n=this._uiEvtsInitQueue||{};t&&!n[t]&&(this._uiEvtsInitQueue=n[t]=1,this.after(i,function(){this._createUIEvent(t),delete this._uiEvtsInitQueue[t]}))},on:function(e){return this._initUIEvent(e),r.superclass.on.apply(this,arguments)},publish:function(e,t){var n=this._getUIEvent(e);return n&&t&&t.defaultFn&&this._initUIEvent(n),r.superclass.publish.apply(this,arguments)}},!0)},"3.9.1",{requires:["node-event-delegate","widget-base"]}); -/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */ -YUI.add("arraylist",function(e,t){function s(t){t!==undefined?this._items=e.Lang.isArray(t)?t:n(t):this._items=this._items||[]}var n=e.Array,r=n.each,i;i={item:function(e){return this._items[e]},each:function(e,t){return r(this._items,function(n,r){n=this.item(r),e.call(t||n,n,r,this)},this),this},some:function(e,t){return n.some(this._items,function(n,r){return n=this.item(r),e.call(t||n,n,r,this)},this)},indexOf:function(e){return n.indexOf(this._items,e)},size:function(){return this._items.length},isEmpty:function(){return!this.size()},toJSON:function(){return this._items}},i._item=i.item,e.mix(s.prototype,i),e.mix(s,{addMethod:function(e,t){t=n(t),r(t,function(t){e[t]=function(){var e=n(arguments,0,!0),i=[];return r(this._items,function(n,r){n=this._item(r);var s=n[t].apply(n,e);s!==undefined&&s!==n&&(i[r]=s)},this),i.length?i:this}})}}),e.ArrayList=s},"3.9.1",{requires:["yui-base"]}); -/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */ -YUI.add("widget-parent",function(e,t){function s(t){this.publish("addChild",{defaultTargetOnly:!0,defaultFn:this._defAddChildFn}),this.publish("removeChild",{defaultTargetOnly:!0,defaultFn:this._defRemoveChildFn}),this._items=[];var n,r;t&&t.children&&(n=t.children,r=this.after("initializedChange",function(e){this._add(n),r.detach()})),e.after(this._renderChildren,this,"renderUI"),e.after(this._bindUIParent,this,"bindUI"),this.after("selectionChange",this._afterSelectionChange),this.after("selectedChange",this._afterParentSelectedChange),this.after("activeDescendantChange",this._afterActiveDescendantChange),this._hDestroyChild=this.after("*:destroy",this._afterDestroyChild),this.after("*:focusedChange",this._updateActiveDescendant)}var n=e.Lang,r="rendered",i="boundingBox";s.ATTRS={defaultChildType:{setter:function(t){var r=e.Attribute.INVALID_VALUE,i=n.isString(t)?e[t]:t;return n.isFunction(i)&&(r=i),r}},activeDescendant:{readOnly:!0},multiple:{value:!1,validator:n.isBoolean,writeOnce:!0,getter:function(e){var t=this.get("root");return t&&t!=this?t.get("multiple"):e}},selection:{readOnly:!0,setter:"_setSelection",getter:function(t){var r=n.isArray(t)?new e.ArrayList(t):t;return r}},selected:{setter:function(t){var n=t;return t===1&&!this.get("multiple")&&(n=e.Attribute.INVALID_VALUE),n}}},s.prototype={destructor:function(){this._destroyChildren()},_afterDestroyChild:function(e){var t=e.target;t.get("parent")==this&&t.remove()},_afterSelectionChange:function(t){if(t.target==this&&t.src!=this){var n=t.newVal,r=0;n&&(r=2,e.instanceOf(n,e.ArrayList)&&n.size()===this.size()&&(r=1)),this.set("selected",r,{src:this})}},_afterActiveDescendantChange:function(e){var t=this.get("parent");t&&t._set("activeDescendant",e.newVal)},_afterParentSelectedChange:function(e){var t=e.newVal;this==e.target&&e.src!=this&&(t===0||t===1)&&this.each(function(e){e.set("selected",t,{src:this})},this)},_setSelection:function(e){var t=null,n;return this.get("multiple")&&!this.isEmpty()?(n=[],this.each(function(e){e.get("selected")>0&&n.push(e)}),n.length>0&&(t=n)):e.get("selected")>0&&(t=e),t},_updateSelection:function(e){var t=e.target,n;t.get("parent")==this&&(e.src!="_updateSelection"&&(n=this.get("selection"),!this.get("multiple")&&n&&e.newVal>0&&n.set("selected",0,{src:"_updateSelection"}),this._set("selection",t)),e.src==this&&this._set("selection",t,{src:this}))},_updateActiveDescendant:function(e){var t=e.newVal===!0?e.target:null;this._set("activeDescendant",t)},_createChild:function(t){var r=this.get("defaultChildType"),i=t.childType||t.type,s,o,u;return i&&(o=n.isString(i)?e[i]:i),n.isFunction(o)?u=o:r&&(u=r),u?s=new u(t):e.error("Could not create a child instance because its constructor is either undefined or invalid."),s},_defAddChildFn:function(t){var r=t.child,i=t.index,s=this._items;r.get("parent")&&r.remove(),n.isNumber(i)?s.splice(i,0,r):s.push(r),r._set("parent",this),r.addTarget(this),t.index=r.get("index"),r.after("selectedChange",e.bind(this._updateSelection,this))},_defRemoveChildFn:function(e){var t=e.child,n=e.index,r=this._items;t.get("focused")&&t.blur(),t.get("selected")&&t.set("selected",0),r.splice(n,1),t.removeTarget(this),t._oldParent=t.get("parent"),t._set("parent",null)},_add:function(t,r){var i,s,o;return n.isArray(t)?(i=[],e.each(t,function(e,t){s=this._add(e,r+t),s&&i.push(s)},this),i.length>0&&(o=i)):(e.instanceOf(t,e.Widget)?s=t:s=this._createChild(t),s&&this.fire("addChild",{child:s,index:r})&&(o=s)),o},add:function(){var t=this._add.apply(this,arguments),r=t?n.isArray(t)?t:[t]:[];return new e.ArrayList(r)},remove:function(e){var t=this._items[e],n;return t&&this.fire("removeChild",{child:t,index:e})&&(n=t),n},removeAll:function(){var t=[],n;return e.each(this._items.concat(),function(){n=this.remove(0),n&&t.push(n)},this),new e.ArrayList(t)},selectChild:function(e){this.item(e).set("selected",1)},selectAll:function(){this.set("selected",1)},deselectAll:function(){this.set("selected",0)},_uiAddChild:function(e,t){e.render(t);var n=e.get("boundingBox"),s,o=e.next(!1),u;o&&o.get(r)?(s=o.get(i),s.insert(n,"before")):(u=e.previous(!1),u&&u.get(r)?(s=u.get(i),s.insert(n,"after")):t.contains(n)||t.appendChild(n))},_uiRemoveChild:function(e){e.get("boundingBox").remove()},_afterAddChild:function(e){var t=e.child;t.get("parent")==this&&this._uiAddChild(t,this._childrenContainer)},_afterRemoveChild:function(e){var t=e.child;t._oldParent==this&&this._uiRemoveChild(t)},_bindUIParent:function(){this.after("addChild",this._afterAddChild),this.after("removeChild",this._afterRemoveChild)},_renderChildren:function(){var e=this._childrenContainer||this.get("contentBox");this._childrenContainer=e,this.each(function(t){t.render(e)})},_destroyChildren:function(){this._hDestroyChild.detach(),this.each(function(e){e.destroy()})}},e.augment(s,e.ArrayList),e.WidgetParent=s},"3.9.1",{requires:["arraylist","base-build","widget"]}); -/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */ -YUI.add("widget-child",function(e,t){function r(){e.after(this._syncUIChild,this,"syncUI"),e.after(this._bindUIChild,this,"bindUI")}var n=e.Lang;r.ATTRS={selected:{value:0,validator:n.isNumber},index:{readOnly:!0,getter:function(){var e=this.get("parent"),t=-1;return e&&(t=e.indexOf(this)),t}},parent:{readOnly:!0},depth:{readOnly:!0,getter:function(){var e=this.get("parent"),t=this.get("root"),n=-1;while(e){n+=1;if(e==t)break;e=e.get("parent")}return n}},root:{readOnly:!0,getter:function(){var t=function(n){var r=n.get("parent"),i=n.ROOT_TYPE,s=r;return i&&(s=r&&e.instanceOf(r,i)),s?t(r):n};return t(this)}}},r.prototype={ROOT_TYPE:null,_getUIEventNode:function(){var e=this.get("root"),t;return e&&(t=e.get("boundingBox")),t},next:function(e){var t=this.get("parent"),n;return t&&(n=t.item(this.get("index")+1)),!n&&e&&(n=t.item(0)),n},previous:function(e){var t=this.get("parent"),n=this.get("index"),r;return t&&n>0&&(r=t.item([n-1])),!r&&e&&(r=t.item(t.size()-1)),r},remove:function(t){var r,i;return n.isNumber(t)?i=e.WidgetParent.prototype.remove.apply(this,arguments):(r=this.get("parent"),r&&(i=r.remove(this.get("index")))),i},isRoot:function(){return this==this.get("root")},ancestor:function(e){var t=this.get("root"),n;if(this.get("depth")>e){n=this.get("parent");while(n!=t&&n.get("depth")>e)n=n.get("parent")}return n},_uiSetChildSelected:function(e){var t=this.get("boundingBox"),n=this.getClassName("selected");e===0?t.removeClass(n):t.addClass(n)},_afterChildSelectedChange:function(e){this._uiSetChildSelected(e.newVal)},_syncUIChild:function(){this._uiSetChildSelected(this.get("selected"))},_bindUIChild:function(){this.after("selectedChange",this._afterChildSelectedChange)}},e.WidgetChild=r},"3.9.1",{requires:["base-build","widget"]}); -/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */ -YUI.add("tabview-base",function(e,t){var n=e.ClassNameManager.getClassName,r="tabview",i="tab",s="panel",o="selected",u={},a=".",f={tabview:n(r),tabviewPanel:n(r,s),tabviewList:n(r,"list"),tab:n(i),tabLabel:n(i,"label"),tabPanel:n(i,s),selectedTab:n(i,o),selectedPanel:n(i,s,o)},l={tabview:a+f.tabview,tabviewList:"> ul",tab:"> ul > li",tabLabel:"> ul > li > a",tabviewPanel:"> div",tabPanel:"> div > div",selectedTab:"> ul > "+a+f.selectedTab,selectedPanel:"> div "+a+f.selectedPanel},c=function(){this.init.apply(this,arguments)};c.NAME="tabviewBase",c._queries=l,c._classNames=f,e.mix(c.prototype,{init:function(t){t=t||u,this._node=t.host||e.one(t.node),this.refresh()},initClassNames:function(t){e.Object.each(l,function(e,n){if(f[n]){var r=this.all(e);t!==undefined&&(r=r.item(t)),r&&r.addClass(f[n])}},this._node),this._node.addClass(f.tabview)},_select:function(e){var t=this._node,n=t.one(l.selectedTab),r=t.one(l.selectedPanel),i=t.all(l.tab).item(e),s=t.all(l.tabPanel).item(e);n&&n.removeClass(f.selectedTab),r&&r.removeClass(f.selectedPanel),i&&i.addClass(f.selectedTab),s&&s.addClass(f.selectedPanel)},initState:function(){var e=this._node,t=e.one(l.selectedTab),n=t?e.all(l.tab).indexOf(t):0;this._select(n)},_scrubTextNodes:function(){this._node.one(l.tabviewList).get("childNodes").each(function(e){e.get("nodeType")===3&&e.remove()})},refresh:function(){this._scrubTextNodes(),this.initClassNames(),this.initState(),this.initEvents()},tabEventName:"click",initEvents:function(){this._node.delegate(this.tabEventName,this.onTabEvent,l.tab,this)},onTabEvent:function(e){e.preventDefault(),this._select(this._node.all(l.tab).indexOf(e.currentTarget))},destroy:function(){this._node.detach(this.tabEventName)}}),e.TabviewBase=c},"3.9.1",{requires:["node-event-delegate","classnamemanager"]}); -/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */ - - - -/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */ -YUI.add('tabview', function (Y, NAME) { - -/** - * The TabView module - * - * @module tabview - */ - -var _queries = Y.TabviewBase._queries, - _classNames = Y.TabviewBase._classNames, - DOT = '.', - - /** - * Provides a tabbed widget interface - * @param config {Object} Object literal specifying tabview configuration properties. - * - * @class TabView - * @constructor - * @extends Widget - * @uses WidgetParent - */ - TabView = Y.Base.create('tabView', Y.Widget, [Y.WidgetParent], { - _afterChildAdded: function() { - this.get('contentBox').focusManager.refresh(); - }, - - _defListNodeValueFn: function() { - return Y.Node.create(TabView.LIST_TEMPLATE); - }, - - _defPanelNodeValueFn: function() { - return Y.Node.create(TabView.PANEL_TEMPLATE); - }, - - _afterChildRemoved: function(e) { // update the selected tab when removed - var i = e.index, - selection = this.get('selection'); - - if (!selection) { // select previous item if selection removed - selection = this.item(i - 1) || this.item(0); - if (selection) { - selection.set('selected', 1); - } - } - - this.get('contentBox').focusManager.refresh(); - }, - - _initAria: function() { - var contentBox = this.get('contentBox'), - tablist = contentBox.one(_queries.tabviewList); - - if (tablist) { - tablist.setAttrs({ - //'aria-labelledby': - role: 'tablist' - }); - } - }, - - bindUI: function() { - // Use the Node Focus Manager to add keyboard support: - // Pressing the left and right arrow keys will move focus - // among each of the tabs. - - this.get('contentBox').plug(Y.Plugin.NodeFocusManager, { - descendants: DOT + _classNames.tabLabel, - keys: { next: 'down:39', // Right arrow - previous: 'down:37' }, // Left arrow - circular: true - }); - - this.after('render', this._setDefSelection); - this.after('addChild', this._afterChildAdded); - this.after('removeChild', this._afterChildRemoved); - }, - - renderUI: function() { - var contentBox = this.get('contentBox'); - this._renderListBox(contentBox); - this._renderPanelBox(contentBox); - this._childrenContainer = this.get('listNode'); - this._renderTabs(contentBox); - }, - - _setDefSelection: function() { - // If no tab is selected, select the first tab. - var selection = this.get('selection') || this.item(0); - - this.some(function(tab) { - if (tab.get('selected')) { - selection = tab; - return true; - } - }); - if (selection) { - // TODO: why both needed? (via widgetParent/Child)? - this.set('selection', selection); - selection.set('selected', 1); - } - }, - - _renderListBox: function(contentBox) { - var node = this.get('listNode'); - if (!node.inDoc()) { - contentBox.append(node); - } - }, - - _renderPanelBox: function(contentBox) { - var node = this.get('panelNode'); - if (!node.inDoc()) { - contentBox.append(node); - } - }, - - _renderTabs: function(contentBox) { - var tabs = contentBox.all(_queries.tab), - panelNode = this.get('panelNode'), - panels = (panelNode) ? this.get('panelNode').get('children') : null, - tabview = this; - - if (tabs) { // add classNames and fill in Tab fields from markup when possible - tabs.addClass(_classNames.tab); - contentBox.all(_queries.tabLabel).addClass(_classNames.tabLabel); - contentBox.all(_queries.tabPanel).addClass(_classNames.tabPanel); - - tabs.each(function(node, i) { - var panelNode = (panels) ? panels.item(i) : null; - tabview.add({ - boundingBox: node, - contentBox: node.one(DOT + _classNames.tabLabel), - panelNode: panelNode - }); - }); - } - } -}, { - - LIST_TEMPLATE: '
      ', - PANEL_TEMPLATE: '
      ', - - ATTRS: { - defaultChildType: { - value: 'Tab' - }, - - listNode: { - setter: function(node) { - node = Y.one(node); - if (node) { - node.addClass(_classNames.tabviewList); - } - return node; - }, - - valueFn: '_defListNodeValueFn' - }, - - panelNode: { - setter: function(node) { - node = Y.one(node); - if (node) { - node.addClass(_classNames.tabviewPanel); - } - return node; - }, - - valueFn: '_defPanelNodeValueFn' - }, - - tabIndex: { - value: null - //validator: '_validTabIndex' - } - }, - - HTML_PARSER: { - listNode: _queries.tabviewList, - panelNode: _queries.tabviewPanel - } -}); - -Y.TabView = TabView; -var Lang = Y.Lang, - _classNames = Y.TabviewBase._classNames; - -/** - * Provides Tab instances for use with TabView - * @param config {Object} Object literal specifying tabview configuration properties. - * - * @class Tab - * @constructor - * @extends Widget - * @uses WidgetChild - */ -Y.Tab = Y.Base.create('tab', Y.Widget, [Y.WidgetChild], { - BOUNDING_TEMPLATE: '
    • ', - CONTENT_TEMPLATE: '', - PANEL_TEMPLATE: '
      ', - - _uiSetSelectedPanel: function(selected) { - this.get('panelNode').toggleClass(_classNames.selectedPanel, selected); - }, - - _afterTabSelectedChange: function(event) { - this._uiSetSelectedPanel(event.newVal); - }, - - _afterParentChange: function(e) { - if (!e.newVal) { - this._remove(); - } else { - this._add(); - } - }, - - _initAria: function() { - var anchor = this.get('contentBox'), - id = anchor.get('id'), - panel = this.get('panelNode'); - - if (!id) { - id = Y.guid(); - anchor.set('id', id); - } - // Apply the ARIA roles, states and properties to each tab - anchor.set('role', 'tab'); - anchor.get('parentNode').set('role', 'presentation'); - - - // Apply the ARIA roles, states and properties to each panel - panel.setAttrs({ - role: 'tabpanel', - 'aria-labelledby': id - }); - }, - - syncUI: function() { - this.set('label', this.get('label')); - this.set('content', this.get('content')); - this._uiSetSelectedPanel(this.get('selected')); - }, - - bindUI: function() { - this.after('selectedChange', this._afterTabSelectedChange); - this.after('parentChange', this._afterParentChange); - }, - - renderUI: function() { - this._renderPanel(); - this._initAria(); - }, - - _renderPanel: function() { - this.get('parent').get('panelNode') - .appendChild(this.get('panelNode')); - }, - - _add: function() { - var parent = this.get('parent').get('contentBox'), - list = parent.get('listNode'), - panel = parent.get('panelNode'); - - if (list) { - list.appendChild(this.get('boundingBox')); - } - - if (panel) { - panel.appendChild(this.get('panelNode')); - } - }, - - _remove: function() { - this.get('boundingBox').remove(); - this.get('panelNode').remove(); - }, - - _onActivate: function(e) { - if (e.target === this) { - // Prevent the browser from navigating to the URL specified by the - // anchor's href attribute. - e.domEvent.preventDefault(); - e.target.set('selected', 1); - } - }, - - initializer: function() { - this.publish(this.get('triggerEvent'), { - defaultFn: this._onActivate - }); - }, - - _defLabelGetter: function() { - return this.get('contentBox').getHTML(); - }, - - _defLabelSetter: function(label) { - var labelNode = this.get('contentBox'); - if (labelNode.getHTML() !== label) { // Avoid rewriting existing label. - labelNode.setHTML(label); - } - return label; - }, - - _defContentSetter: function(content) { - var panel = this.get('panelNode'); - if (panel.getHTML() !== content) { // Avoid rewriting existing content. - panel.setHTML(content); - } - return content; - }, - - _defContentGetter: function() { - return this.get('panelNode').getHTML(); - }, - - // find panel by ID mapping from label href - _defPanelNodeValueFn: function() { - var href = this.get('contentBox').get('href') || '', - parent = this.get('parent'), - hashIndex = href.indexOf('#'), - panel; - - href = href.substr(hashIndex); - - if (href.charAt(0) === '#') { // in-page nav, find by ID - panel = Y.one(href); - if (panel) { - panel.addClass(_classNames.tabPanel); - } - } - - // use the one found by id, or else try matching indices - if (!panel && parent) { - panel = parent.get('panelNode') - .get('children').item(this.get('index')); - } - - if (!panel) { // create if none found - panel = Y.Node.create(this.PANEL_TEMPLATE); - } - return panel; - } -}, { - ATTRS: { - /** - * @attribute triggerEvent - * @default "click" - * @type String - */ - triggerEvent: { - value: 'click' - }, - - /** - * @attribute label - * @type HTML - */ - label: { - setter: '_defLabelSetter', - getter: '_defLabelGetter' - }, - - /** - * @attribute content - * @type HTML - */ - content: { - setter: '_defContentSetter', - getter: '_defContentGetter' - }, - - /** - * @attribute panelNode - * @type Y.Node - */ - panelNode: { - setter: function(node) { - node = Y.one(node); - if (node) { - node.addClass(_classNames.tabPanel); - } - return node; - }, - valueFn: '_defPanelNodeValueFn' - }, - - tabIndex: { - value: null, - validator: '_validTabIndex' - } - - }, - - HTML_PARSER: { - selected: function() { - var ret = (this.get('boundingBox').hasClass(_classNames.selectedTab)) ? - 1 : 0; - return ret; - } - } - -}); - - -}, '3.9.1', { - "requires": [ - "widget", - "widget-parent", - "widget-child", - "tabview-base", - "node-pluginhost", - "node-focusmanager" - ], - "skinnable": true -}); diff --git a/docs_api/assets/js/yui-min.js b/docs_api/assets/js/yui-min.js deleted file mode 100644 index af1775c..0000000 --- a/docs_api/assets/js/yui-min.js +++ /dev/null @@ -1,16 +0,0 @@ -/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */ -typeof YUI!="undefined"&&(YUI._YUI=YUI);var YUI=function(){var e=0,t=this,n=arguments,r=n.length,i=function(e,t){return e&&e.hasOwnProperty&&e instanceof t},s=typeof YUI_config!="undefined"&&YUI_config;i(t,YUI)?(t._init(),YUI.GlobalConfig&&t.applyConfig(YUI.GlobalConfig),s&&t.applyConfig(s),r||t._setup()):t=new YUI;if(r){for(;e-1&&(n="3.5.0"),e={applyConfig:function(e){e=e||u;var t,n,r=this.config,i=r.modules,s=r.groups,o=r.aliases,a=this.Env._loader;for(n in e)e.hasOwnProperty(n)&&(t=e[n],i&&n=="modules"?E(i,t):o&&n=="aliases"?E(o,t):s&&n=="groups"?E(s,t):n=="win"?(r[n]=t&&t.contentWindow||t,r.doc=r[n]?r[n].document:null):n!="_yuid"&&(r[n]=t));a&&a._config(e)},_config:function(e){this.applyConfig(e)},_init:function(){var e,t,r=this,s=YUI.Env,u=r.Env,a;r.version=n;if(!u){r.Env={core:["get","features","intl-base","yui-log","yui-later","loader-base","loader-rollup","loader-yui3"],loaderExtras:["loader-rollup","loader-yui3"],mods:{},versions:{},base:i,cdn:i+n+"/build/",_idx:0,_used:{},_attached:{},_missed:[],_yidx:0,_uidx:0,_guidp:"y",_loaded:{},_BASE_RE:/(?:\?(?:[^&]*&)*([^&]*))?\b(simpleyui|yui(?:-\w+)?)\/\2(?:-(min|debug))?\.js/,parseBasePath:function(e,t){var n=e.match(t),r,i;return n&&(r=RegExp.leftContext||e.slice(0,e.indexOf(n[0])),i=n[3],n[1]&&(r+="?"+n[1]),r={filter:i,path:r}),r},getBase:s&&s.getBase||function(t){var n=h&&h.getElementsByTagName("script")||[],i=u.cdn,s,o,a,f;for(o=0,a=n.length;o',YUI.Env.cssStampEl=t.firstChild,h.body?h.body.appendChild(YUI.Env.cssStampEl):p.insertBefore(YUI.Env.cssStampEl,p.firstChild)):h&&h.getElementById(o)&&!YUI.Env.cssStampEl&&(YUI.Env.cssStampEl=h.getElementById(o)),r.config.lang=r.config.lang||"en-US",r.config.base=YUI.config.base||r.Env.getBase(r.Env._BASE_RE);if(!e||!"mindebug".indexOf(e))e="min";e=e?"-"+e:e,r.config.loaderPath=YUI.config.loaderPath||"loader/loader"+e+".js"},_setup:function(){var e,t=this,n=[],r=YUI.Env.mods,i=t.config.core||[].concat(YUI.Env.core);for(e=0;e-1){s=o.split(r);for(i=s[0]=="YAHOO"?1:0;ii&&i in t?t[i]:!0);return n},h.indexOf=f._isNative(l.indexOf)?function(e,t,n){return l.indexOf.call(e,t,n)}:function(e,t,n){var r=e.length;n=+n||0,n=(n>0||-1)*Math.floor(Math.abs(n)),n<0&&(n+=r,n<0&&(n=0));for(;n1?Array.prototype.join.call(arguments,d):String(r);if(!(i in t)||n&&t[i]==n)t[i]=e.apply(e,arguments);return t[i]}},e.getLocation=function(){var t=e.config.win;return t&&t.location},e.merge=function(){var e=0,t=arguments.length,n={},r,i;for(;e-1},g.each=function(t,n,r,i){var s;for(s in t)(i||E(t,s))&&n.call(r||e,t[s],s,t);return e},g.some=function(t,n,r,i){var s;for(s in t)if(i||E(t,s))if(n.call(r||e,t[s],s,t))return!0;return!1},g.getValue=function(t,n){if(!f.isObject(t))return m;var r,i=e.Array(n),s=i.length;for(r=0;t!==m&&r=0){for(i=0;u!==m&&i0),t||(typeof process=="object"&&process.versions&&process.versions.node&&(s.os=process.platform,s.nodejs=n(process.versions.node)),YUI.Env.UA=s),s},e.UA=YUI.Env.UA||YUI.Env.parseUA(),e.UA.compareVersions=function(e,t){var n,r,i,s,o,u;if(e===t)return 0;r=(e+"").split("."),s=(t+"").split(".");for(o=0,u=Math.max(r.length,s.length);oi)return 1}return 0},YUI.Env.aliases={anim:["anim-base","anim-color","anim-curve","anim-easing","anim-node-plugin","anim-scroll","anim-xy"],"anim-shape-transform":["anim-shape"],app:["app-base","app-content","app-transitions","lazy-model-list","model","model-list","model-sync-rest","router","view","view-node-map"],attribute:["attribute-base","attribute-complex"],"attribute-events":["attribute-observable"],autocomplete:["autocomplete-base","autocomplete-sources","autocomplete-list","autocomplete-plugin"],axes:["axis-numeric","axis-category","axis-time","axis-stacked"],"axes-base":["axis-numeric-base","axis-category-base","axis-time-base","axis-stacked-base"],base:["base-base","base-pluginhost","base-build"],cache:["cache-base","cache-offline","cache-plugin"],charts:["charts-base"],collection:["array-extras","arraylist","arraylist-add","arraylist-filter","array-invoke"],color:["color-base","color-hsl","color-harmony"],controller:["router"],dataschema:["dataschema-base","dataschema-json","dataschema-xml","dataschema-array","dataschema-text"],datasource:["datasource-local","datasource-io","datasource-get","datasource-function","datasource-cache","datasource-jsonschema","datasource-xmlschema","datasource-arrayschema","datasource-textschema","datasource-polling"],datatable:["datatable-core","datatable-table","datatable-head","datatable-body","datatable-base","datatable-column-widths","datatable-message","datatable-mutable","datatable-sort","datatable-datasource"],datatype:["datatype-date","datatype-number","datatype-xml"],"datatype-date":["datatype-date-parse","datatype-date-format","datatype-date-math"],"datatype-number":["datatype-number-parse","datatype-number-format"],"datatype-xml":["datatype-xml-parse","datatype-xml-format"],dd:["dd-ddm-base","dd-ddm","dd-ddm-drop","dd-drag","dd-proxy","dd-constrain","dd-drop","dd-scroll","dd-delegate"],dom:["dom-base","dom-screen","dom-style","selector-native","selector"],editor:["frame","editor-selection","exec-command","editor-base","editor-para","editor-br","editor-bidi","editor-tab","createlink-base"],event:["event-base","event-delegate","event-synthetic","event-mousewheel","event-mouseenter","event-key","event-focus","event-resize","event-hover","event-outside","event-touch","event-move","event-flick","event-valuechange","event-tap"],"event-custom":["event-custom-base","event-custom-complex"],"event-gestures":["event-flick","event-move"],handlebars:["handlebars-compiler"],highlight:["highlight-base","highlight-accentfold"],history:["history-base","history-hash","history-hash-ie","history-html5"],io:["io-base","io-xdr","io-form","io-upload-iframe","io-queue"],json:["json-parse","json-stringify"],loader:["loader-base","loader-rollup","loader-yui3"],node:["node-base","node-event-delegate","node-pluginhost","node-screen","node-style"],pluginhost:["pluginhost-base","pluginhost-config"],querystring:["querystring-parse","querystring-stringify"],recordset:["recordset-base","recordset-sort","recordset-filter","recordset-indexer"],resize:["resize-base","resize-proxy","resize-constrain"],slider:["slider-base","slider-value-range","clickable-rail","range-slider"],template:["template-base","template-micro"],text:["text-accentfold","text-wordbreak"],widget:["widget-base","widget-htmlparser","widget-skin","widget-uievents"]}},"3.9.1",{use:["yui-base","get","features","intl-base","yui-log","yui-later","loader-base","loader-rollup","loader-yui3"]}),YUI.add("get",function(e,t){var n=e.Lang,r,i,s;e.Get=i={cssOptions:{attributes:{rel:"stylesheet"},doc:e.config.linkDoc||e.config.doc,pollInterval:50},jsOptions:{autopurge:!0,doc:e.config.scriptDoc||e.config.doc},options:{attributes:{charset:"utf-8"},purgethreshold:20},REGEX_CSS:/\.css(?:[?;].*)?$/i,REGEX_JS:/\.js(?:[?;].*)?$/i,_insertCache:{},_pending:null,_purgeNodes:[],_queue:[],abort:function(e){var t,n,r,i,s;if(!e.abort){n=e,s=this._pending,e=null;if(s&&s.transaction.id===n)e=s.transaction,this._pending=null;else for(t=0,i=this._queue.length;t=e&&this._purge(this._purgeNodes)},_getEnv:function(){var t=e.config.doc,n=e.UA;return this._env={async:t&&t.createElement("script").async===!0||n.ie>=10,cssFail:n.gecko>=9||n.compareVersions(n.webkit,535.24)>=0,cssLoad:(!n.gecko&&!n.webkit||n.gecko>=9||n.compareVersions(n.webkit,535.24)>=0)&&!(n.chrome&&n.chrome<=18),preservesScriptOrder:!!(n.gecko||n.opera||n.ie&&n.ie>=10)}},_getTransaction:function(t,r){var i=[],o,u,a,f;n.isArray(t)||(t=[t]),r=e.merge(this.options,r),r.attributes=e.merge(this.options.attributes,r.attributes);for(o=0,u=t.length;o-1&&n.splice(i,1))}}},i.script=i.js,i.Transaction=s=function(t,n){var r=this;r.id=s._lastId+=1,r.data=n.data,r.errors=[],r.nodes=[],r.options=n,r.requests=t,r._callbacks=[],r._queue=[],r._reqsWaiting=0,r.tId=r.id,r.win=n.win||e.config.win},s._lastId=0,s.prototype={_state:"new",abort:function(e){this._pending=null,this._pendingCSS=null,this._pollTimer=clearTimeout(this._pollTimer),this._queue=[],this._reqsWaiting=0,this.errors.push({error:e||"Aborted"}),this._finish()},execute:function(e){var t=this,n=t.requests,r=t._state,i,s,o,u;if(r==="done"){e&&e(t.errors.length?t.errors:null,t);return}e&&t._callbacks.push(e);if(r==="executing")return;t._state="executing",t._queue=o=[],t.options.timeout&&(t._timeout=setTimeout(function(){t.abort("Timeout")},t.options.timeout)),t._reqsWaiting=n.length;for(i=0,s=n.length;i=10?(o.onerror=function(){setTimeout(c,0)},o.onload=function(){setTimeout(h,0)}):(o.onerror=c,o.onload=h),!n.cssFail&&!s&&(f=setTimeout(c,t.timeout||3e3))),this.nodes.push(o),r.parentNode.insertBefore(o,r)},_next:function(){if(this._pending)return;this._queue.length?this._insert(this._queue.shift()):this._reqsWaiting||this._finish()},_poll:function(t){var n=this,r=n._pendingCSS,i=e.UA.webkit,s,o,u,a,f,l;if(t){r||(r=n._pendingCSS=[]),r.push(t);if(n._pollTimer)return}n._pollTimer=null;for(s=0;s=0)if(l[u].href===a){r.splice(s,1),s-=1,n._progress(null,f);break}}else try{o=!!f.node.sheet.cssRules,r.splice(s,1),s-=1,n._progress(null,f)}catch(c){}}r.length&&(n._pollTimer=setTimeout(function(){n._poll.call(n)},n.options.pollInterval))},_progress:function(e,t){var n=this.options;e&&(t.error=e,this.errors.push({error:e,request:t})),t.node._yuiget_finished=t.finished=!0,n.onProgress&&n.onProgress.call(n.context||this,this._getEventData(t)),t.autopurge&&(i._autoPurge(this.options.purgethreshold),i._purgeNodes.push(t.node)),this._pending===t&&(this._pending=null),this._reqsWaiting-=1,this._next()}}},"3.9.1",{requires:["yui-base"]}),YUI.add("features",function(e,t){var n={};e.mix(e.namespace("Features"),{tests:n,add:function(e,t,r){n[e]=n[e]||{},n[e][t]=r},all:function(t,r){var i=n[t],s=[];return i&&e.Object.each(i,function(n,i){s.push(i+":"+(e.Features.test(t,i,r)?1:0))}),s.length?s.join(";"):""},test:function(t,r,i){i=i||[];var s,o,u,a=n[t],f=a&&a[r];return!f||(s=f.result,e.Lang.isUndefined(s)&&(o=f.ua,o&&(s=e.UA[o]),u=f.test,u&&(!o||s)&&(s=u.apply(e,i)),f.result=s)),s}});var r=e.Features.add;r("load","0",{name:"app-transitions-native",test:function(e){var t=e.config.doc,n=t?t.documentElement:null;return n&&n.style?"MozTransition"in n.style||"WebkitTransition"in n.style||"transition"in n.style:!1},trigger:"app-transitions"}),r("load","1",{name:"autocomplete-list-keys",test:function(e){return!e.UA.ios&&!e.UA.android},trigger:"autocomplete-list"}),r("load","2",{name:"dd-gestures",trigger:"dd-drag",ua:"touchEnabled"}),r("load","3",{name:"dom-style-ie",test:function(e){var t=e.Features.test,n=e.Features.add,r=e.config.win,i=e.config.doc,s="documentElement",o=!1;return n("style","computedStyle",{test:function(){return r&&"getComputedStyle"in r}}),n("style","opacity",{test:function(){return i&&"opacity"in i[s].style}}),o=!t("style","opacity" -)&&!t("style","computedStyle"),o},trigger:"dom-style"}),r("load","4",{name:"editor-para-ie",trigger:"editor-para",ua:"ie",when:"instead"}),r("load","5",{name:"event-base-ie",test:function(e){var t=e.config.doc&&e.config.doc.implementation;return t&&!t.hasFeature("Events","2.0")},trigger:"node-base"}),r("load","6",{name:"graphics-canvas",test:function(e){var t=e.config.doc,n=e.config.defaultGraphicEngine&&e.config.defaultGraphicEngine=="canvas",r=t&&t.createElement("canvas"),i=t&&t.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1");return(!i||n)&&r&&r.getContext&&r.getContext("2d")},trigger:"graphics"}),r("load","7",{name:"graphics-canvas-default",test:function(e){var t=e.config.doc,n=e.config.defaultGraphicEngine&&e.config.defaultGraphicEngine=="canvas",r=t&&t.createElement("canvas"),i=t&&t.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1");return(!i||n)&&r&&r.getContext&&r.getContext("2d")},trigger:"graphics"}),r("load","8",{name:"graphics-svg",test:function(e){var t=e.config.doc,n=!e.config.defaultGraphicEngine||e.config.defaultGraphicEngine!="canvas",r=t&&t.createElement("canvas"),i=t&&t.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1");return i&&(n||!r)},trigger:"graphics"}),r("load","9",{name:"graphics-svg-default",test:function(e){var t=e.config.doc,n=!e.config.defaultGraphicEngine||e.config.defaultGraphicEngine!="canvas",r=t&&t.createElement("canvas"),i=t&&t.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1");return i&&(n||!r)},trigger:"graphics"}),r("load","10",{name:"graphics-vml",test:function(e){var t=e.config.doc,n=t&&t.createElement("canvas");return t&&!t.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")&&(!n||!n.getContext||!n.getContext("2d"))},trigger:"graphics"}),r("load","11",{name:"graphics-vml-default",test:function(e){var t=e.config.doc,n=t&&t.createElement("canvas");return t&&!t.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")&&(!n||!n.getContext||!n.getContext("2d"))},trigger:"graphics"}),r("load","12",{name:"history-hash-ie",test:function(e){var t=e.config.doc&&e.config.doc.documentMode;return e.UA.ie&&(!("onhashchange"in e.config.win)||!t||t<8)},trigger:"history-hash"}),r("load","13",{name:"io-nodejs",trigger:"io-base",ua:"nodejs"}),r("load","14",{name:"json-parse-shim",test:function(e){function i(e,t){return e==="ok"?!0:t}var t=e.config.global.JSON,n=Object.prototype.toString.call(t)==="[object JSON]"&&t,r=e.config.useNativeJSONParse!==!1&&!!n;if(r)try{r=n.parse('{"ok":false}',i).ok}catch(s){r=!1}return!r},trigger:"json-parse"}),r("load","15",{name:"json-stringify-shim",test:function(e){var t=e.config.global.JSON,n=Object.prototype.toString.call(t)==="[object JSON]"&&t,r=e.config.useNativeJSONStringify!==!1&&!!n;if(r)try{r="0"===n.stringify(0)}catch(i){r=!1}return!r},trigger:"json-stringify"}),r("load","16",{name:"scrollview-base-ie",trigger:"scrollview-base",ua:"ie"}),r("load","17",{name:"selector-css2",test:function(e){var t=e.config.doc,n=t&&!("querySelectorAll"in t);return n},trigger:"selector"}),r("load","18",{name:"transition-timer",test:function(e){var t=e.config.doc,n=t?t.documentElement:null,r=!0;return n&&n.style&&(r=!("MozTransition"in n.style||"WebkitTransition"in n.style||"transition"in n.style)),r},trigger:"transition"}),r("load","19",{name:"widget-base-ie",trigger:"widget-base",ua:"ie"}),r("load","20",{name:"yql-jsonp",test:function(e){return!e.UA.nodejs&&!e.UA.winjs},trigger:"yql",when:"after"}),r("load","21",{name:"yql-nodejs",trigger:"yql",ua:"nodejs",when:"after"}),r("load","22",{name:"yql-winjs",trigger:"yql",ua:"winjs",when:"after"})},"3.9.1",{requires:["yui-base"]}),YUI.add("intl-base",function(e,t){var n=/[, ]/;e.mix(e.namespace("Intl"),{lookupBestLang:function(t,r){function a(e){var t;for(t=0;t0){o=a(s);if(o)return o;u=s.lastIndexOf("-");if(!(u>=0))break;s=s.substring(0,u),u>=2&&s.charAt(u-2)==="-"&&(s=s.substring(0,u-2))}}return""}})},"3.9.1",{requires:["yui-base"]}),YUI.add("yui-log",function(e,t){var n=e,r="yui:log",i="undefined",s={debug:1,info:1,warn:1,error:1};n.log=function(e,t,o,u){var a,f,l,c,h,p=n,d=p.config,v=p.fire?p:YUI.Env.globalEvents;return d.debug&&(o=o||"",typeof o!="undefined"&&(f=d.logExclude,l=d.logInclude,!l||o in l?l&&o in l?a=!l[o]:f&&o in f&&(a=f[o]):a=1),a||(d.useBrowserConsole&&(c=o?o+": "+e:e,p.Lang.isFunction(d.logFn)?d.logFn.call(p,e,t,o):typeof console!==i&&console.log?(h=t&&console[t]&&t in s?t:"log",console[h](c)):typeof opera!==i&&opera.postError(c)),v&&!u&&(v===p&&!v.getEvent(r)&&v.publish(r,{broadcast:2}),v.fire(r,{msg:e,cat:t,src:o})))),p},n.message=function(){return n.log.apply(n,arguments)}},"3.9.1",{requires:["yui-base"]}),YUI.add("yui-later",function(e,t){var n=[];e.later=function(t,r,i,s,o){t=t||0,s=e.Lang.isUndefined(s)?n:e.Array(s),r=r||e.config.win||e;var u=!1,a=r&&e.Lang.isString(i)?r[i]:i,f=function(){u||(a.apply?a.apply(r,s||n):a(s[0],s[1],s[2],s[3]))},l=o?setInterval(f,t):setTimeout(f,t);return{id:l,interval:o,cancel:function(){u=!0,this.interval?clearInterval(l):clearTimeout(l)}}},e.Lang.later=e.later},"3.9.1",{requires:["yui-base"]}),YUI.add("loader-base",function(e,t){YUI.Env[e.version]||function(){var t=e.version,n="/build/",r=t+n,i=e.Env.base,s="gallery-2013.02.27-21-03",o="2in3",u="4",a="2.9.0",f=i+"combo?",l={version:t,root:r,base:e.Env.base,comboBase:f,skin:{defaultSkin:"sam",base:"assets/skins/",path:"skin.css",after:["cssreset","cssfonts","cssgrids","cssbase","cssreset-context","cssfonts-context"]},groups:{},patterns:{}},c=l.groups,h=function(e,t,r){var s=o+"."+(e||u)+"/"+(t||a)+n,l=r&&r.base?r.base:i,h=r&&r.comboBase?r.comboBase:f;c.yui2.base=l+s,c.yui2.root=s,c.yui2.comboBase=h}, -p=function(e,t){var r=(e||s)+n,o=t&&t.base?t.base:i,u=t&&t.comboBase?t.comboBase:f;c.gallery.base=o+r,c.gallery.root=r,c.gallery.comboBase=u};c[t]={},c.gallery={ext:!1,combine:!0,comboBase:f,update:p,patterns:{"gallery-":{},"lang/gallery-":{},"gallerycss-":{type:"css"}}},c.yui2={combine:!0,ext:!1,comboBase:f,update:h,patterns:{"yui2-":{configFn:function(e){/-skin|reset|fonts|grids|base/.test(e.name)&&(e.type="css",e.path=e.path.replace(/\.js/,".css"),e.path=e.path.replace(/\/yui2-skin/,"/assets/skins/sam/yui2-skin"))}}}},p(),h(),YUI.Env[t]=l}();var n={},r=[],i=1024,s=YUI.Env,o=s._loaded,u="css",a="js",f="intl",l="sam",c=e.version,h="",p=e.Object,d=p.each,v=e.Array,m=s._loaderQueue,g=s[c],y="skin-",b=e.Lang,w=s.mods,E,S=function(e,t,n,r){var i=e+"/"+t;return r||(i+="-min"),i+="."+(n||u),i};YUI.Env._cssLoaded||(YUI.Env._cssLoaded={}),e.Env.meta=g,e.Loader=function(t){var n=this;t=t||{},E=g.md5,n.context=e,n.base=e.Env.meta.base+e.Env.meta.root,n.comboBase=e.Env.meta.comboBase,n.combine=t.base&&t.base.indexOf(n.comboBase.substr(0,20))>-1,n.comboSep="&",n.maxURLLength=i,n.ignoreRegistered=t.ignoreRegistered,n.root=e.Env.meta.root,n.timeout=0,n.forceMap={},n.allowRollup=!1,n.filters={},n.required={},n.patterns={},n.moduleInfo={},n.groups=e.merge(e.Env.meta.groups),n.skin=e.merge(e.Env.meta.skin),n.conditions={},n.config=t,n._internal=!0,n._populateCache(),n.loaded=o[c],n.async=!0,n._inspectPage(),n._internal=!1,n._config(t),n.forceMap=n.force?e.Array.hash(n.force):{},n.testresults=null,e.config.tests&&(n.testresults=e.config.tests),n.sorted=[],n.dirty=!0,n.inserted={},n.skipped={},n.tested={},n.ignoreRegistered&&n._resetModules()},e.Loader.prototype={_populateCache:function(){var t=this,n=g.modules,r=s._renderedMods,i;if(r&&!t.ignoreRegistered){for(i in r)r.hasOwnProperty(i)&&(t.moduleInfo[i]=e.merge(r[i]));r=s._conditions;for(i in r)r.hasOwnProperty(i)&&(t.conditions[i]=e.merge(r[i]))}else for(i in n)n.hasOwnProperty(i)&&t.addModule(n[i],i)},_resetModules:function(){var e=this,t,n,r,i,s;for(t in e.moduleInfo)if(e.moduleInfo.hasOwnProperty(t)){r=e.moduleInfo[t],i=r.name,s=YUI.Env.mods[i]?YUI.Env.mods[i].details:null,s&&(e.moduleInfo[i]._reset=!0,e.moduleInfo[i].requires=s.requires||[],e.moduleInfo[i].optional=s.optional||[],e.moduleInfo[i].supersedes=s.supercedes||[]);if(r.defaults)for(n in r.defaults)r.defaults.hasOwnProperty(n)&&r[n]&&(r[n]=r.defaults[n]);delete r.langCache,delete r.skinCache,r.skinnable&&e._addSkin(e.skin.defaultSkin,r.name)}},REGEX_CSS:/\.css(?:[?;].*)?$/i,FILTER_DEFS:{RAW:{searchExp:"-min\\.js",replaceStr:".js"},DEBUG:{searchExp:"-min\\.js",replaceStr:"-debug.js"},COVERAGE:{searchExp:"-min\\.js",replaceStr:"-coverage.js"}},_inspectPage:function(){var e=this,t,n,r,i,s;for(s in e.moduleInfo)e.moduleInfo.hasOwnProperty(s)&&(t=e.moduleInfo[s],t.type&&t.type===u&&e.isCSSLoaded(t.name)&&(e.loaded[s]=!0));for(s in w)w.hasOwnProperty(s)&&(t=w[s],t.details&&(n=e.moduleInfo[t.name],r=t.details.requires,i=n&&n.requires,n?!n._inspected&&r&&i.length!==r.length&&delete n.expanded:n=e.addModule(t.details,s),n._inspected=!0))},_requires:function(e,t){var n,r,i,s,o=this.moduleInfo,a=o[e],f=o[t];if(!a||!f)return!1;r=a.expanded_map,i=a.after_map;if(i&&t in i)return!0;i=f.after_map;if(i&&e in i)return!1;s=o[t]&&o[t].supersedes;if(s)for(n=0;n-1&&(k=n);if(C&&(C[c]||k&&C[k])){L=c,C[k]&&(L=k);for(n=0;n-1},getModule:function(t){if(!t)return null;var n,r,i,s=this.moduleInfo[t],o=this.patterns;if(!s||s&&s.ext)for(i in o)if(o.hasOwnProperty(i)){n=o[i],n.test||(n.test=this._patternTest);if(n.test(t,i)){r=n;break}}return s?r&&s&&r.configFn&&!s.configFn&&(s.configFn=r.configFn,s.configFn(s)):r&&(n.action?n.action.call(this,t,i):(s=this.addModule(e.merge(r),t),r.configFn&&(s.configFn=r.configFn),s.temp=!0)),s},_rollup:function(){},_reduce:function(e){e=e||this.required;var t,n,r,i,s=this.loadType,o=this.ignore?v.hash(this.ignore):!1;for(t in e)if(e.hasOwnProperty(t)){i=this.getModule(t),((this.loaded[t]||w[t])&&!this.forceMap[t]&&!this.ignoreRegistered||s&&i&&i.type!==s)&&delete e[t],o&&o[t]&&delete e[t],r=i&&i.supersedes;if(r)for(n=0;n0&&(m.running=!0,m.next()())},insert:function(t,n,r){var i=this,s=e.merge(this);delete s.require,delete s.dirty,m.add(function(){i._insert(s,t,n,r)}),this._continue()},loadNext:function(){return},_filter:function(e,t,n){var r=this.filter,i=t&&t in this.filters,s=i&&this.filters[t],o=n||(this.moduleInfo[t]?this.moduleInfo[t].group:null);return o&&this.groups[o]&&this.groups -[o].filter&&(s=this.groups[o].filter,i=!0),e&&(i&&(r=b.isString(s)?this.FILTER_DEFS[s.toUpperCase()]||null:s),r&&(e=e.replace(new RegExp(r.searchExp,"g"),r.replaceStr))),e},_url:function(e,t,n){return this._filter((n||this.base||"")+e,t)},resolve:function(e,t){var r,s,o,f,c,h,p,d,v,m,g,y,w,E,S=[],x,T,N={},C=this,k,A,O=C.ignoreRegistered?{}:C.inserted,M={js:[],jsMods:[],css:[],cssMods:[]},_=C.loadType||"js",D;(C.skin.overrides||C.skin.defaultSkin!==l||C.ignoreRegistered)&&C._resetModules(),e&&C.calculate(),t=t||C.sorted,D=function(e){if(e){c=e.group&&C.groups[e.group]||n,c.async===!1&&(e.async=c.async),f=e.fullpath?C._filter(e.fullpath,t[s]):C._url(e.path,t[s],c.base||e.base);if(e.attributes||e.async===!1)f={url:f,async:e.async},e.attributes&&(f.attributes=e.attributes);M[e.type].push(f),M[e.type+"Mods"].push(e)}},r=t.length,y=C.comboBase,f=y,m={};for(s=0;sA){S=[];for(t=0;tA&&(o=S.pop(),x=w+S.join(k),M[_].push(C._filter(x,null,N[w].group)),S=[],o&&S.push(o));S.length&&(x=w+S.join(k),M[_].push(C._filter(x,null,N[w].group)))}else M[_].push(C._filter(x,null,N[w].group));M[_+"Mods"]=M[_+"Mods"].concat(g)}}return N=null,M},load:function(e){if(!e)return;var t=this,n=t.resolve(!0);t.data=n,t.onEnd=function(){e.apply(t.context||t,arguments)},t.insert()}}},"3.9.1",{requires:["get","features"]}),YUI.add("loader-rollup",function(e,t){e.Loader.prototype._rollup=function(){var e,t,n,r,i=this.required,s,o=this.moduleInfo,u,a,f;if(this.dirty||!this.rollups){this.rollups={};for(e in o)o.hasOwnProperty(e)&&(n=this.getModule(e),n&&n.rollup&&(this.rollups[e]=n))}for(;;){u=!1;for(e in this.rollups)if(this.rollups.hasOwnProperty(e)&&!i[e]&&(!this.loaded[e]||this.forceMap[e])){n=this.getModule(e),r=n.supersedes||[],s=!1;if(!n.rollup)continue;a=0;for(t=0;t=n.rollup;if(s)break}}s&&(i[e]=!0,u=!0,this.getRequires(n))}if(!u)break}}},"3.9.1",{requires:["loader-base"]}),YUI.add("loader-yui3",function(e,t){YUI.Env[e.version].modules=YUI.Env[e.version].modules||{},e.mix(YUI.Env[e.version].modules,{"align-plugin":{requires:["node-screen","node-pluginhost"]},anim:{use:["anim-base","anim-color","anim-curve","anim-easing","anim-node-plugin","anim-scroll","anim-xy"]},"anim-base":{requires:["base-base","node-style"]},"anim-color":{requires:["anim-base"]},"anim-curve":{requires:["anim-xy"]},"anim-easing":{requires:["anim-base"]},"anim-node-plugin":{requires:["node-pluginhost","anim-base"]},"anim-scroll":{requires:["anim-base"]},"anim-shape":{requires:["anim-base","anim-easing","anim-color","matrix"]},"anim-shape-transform":{use:["anim-shape"]},"anim-xy":{requires:["anim-base","node-screen"]},app:{use:["app-base","app-content","app-transitions","lazy-model-list","model","model-list","model-sync-rest","router","view","view-node-map"]},"app-base":{requires:["classnamemanager","pjax-base","router","view"]},"app-content":{requires:["app-base","pjax-content"]},"app-transitions":{requires:["app-base"]},"app-transitions-css":{type:"css"},"app-transitions-native":{condition:{name:"app-transitions-native",test:function(e){var t=e.config.doc,n=t?t.documentElement:null;return n&&n.style?"MozTransition"in n.style||"WebkitTransition"in n.style||"transition"in n.style:!1},trigger:"app-transitions"},requires:["app-transitions","app-transitions-css","parallel","transition"]},"array-extras":{requires:["yui-base"]},"array-invoke":{requires:["yui-base"]},arraylist:{requires:["yui-base"]},"arraylist-add":{requires:["arraylist"]},"arraylist-filter":{requires:["arraylist"]},arraysort:{requires:["yui-base"]},"async-queue":{requires:["event-custom"]},attribute:{use:["attribute-base","attribute-complex"]},"attribute-base":{requires:["attribute-core","attribute-observable","attribute-extras"]},"attribute-complex":{requires:["attribute-base"]},"attribute-core":{requires:["oop"]},"attribute-events":{use:["attribute-observable"]},"attribute-extras":{requires:["oop"]},"attribute-observable":{requires:["event-custom"]},autocomplete:{use:["autocomplete-base","autocomplete-sources","autocomplete-list","autocomplete-plugin"]},"autocomplete-base":{optional:["autocomplete-sources"],requires:["array-extras","base-build","escape","event-valuechange","node-base"]},"autocomplete-filters":{requires:["array-extras","text-wordbreak"]},"autocomplete-filters-accentfold":{requires:["array-extras","text-accentfold","text-wordbreak"]},"autocomplete-highlighters":{requires:["array-extras","highlight-base"]},"autocomplete-highlighters-accentfold":{requires:["array-extras","highlight-accentfold"]},"autocomplete-list":{after:["autocomplete-sources"],lang:["en","es"],requires:["autocomplete-base","event-resize","node-screen","selector-css3","shim-plugin","widget","widget-position","widget-position-align"],skinnable:!0},"autocomplete-list-keys":{condition:{name:"autocomplete-list-keys",test:function(e){return!e.UA.ios&&!e.UA.android},trigger:"autocomplete-list"},requires: -["autocomplete-list","base-build"]},"autocomplete-plugin":{requires:["autocomplete-list","node-pluginhost"]},"autocomplete-sources":{optional:["io-base","json-parse","jsonp","yql"],requires:["autocomplete-base"]},axes:{use:["axis-numeric","axis-category","axis-time","axis-stacked"]},"axes-base":{use:["axis-numeric-base","axis-category-base","axis-time-base","axis-stacked-base"]},axis:{requires:["dom","widget","widget-position","widget-stack","graphics","axis-base"]},"axis-base":{requires:["classnamemanager","datatype-number","datatype-date","base","event-custom"]},"axis-category":{requires:["axis","axis-category-base"]},"axis-category-base":{requires:["axis-base"]},"axis-numeric":{requires:["axis","axis-numeric-base"]},"axis-numeric-base":{requires:["axis-base"]},"axis-stacked":{requires:["axis-numeric","axis-stacked-base"]},"axis-stacked-base":{requires:["axis-numeric-base"]},"axis-time":{requires:["axis","axis-time-base"]},"axis-time-base":{requires:["axis-base"]},base:{use:["base-base","base-pluginhost","base-build"]},"base-base":{requires:["attribute-base","base-core","base-observable"]},"base-build":{requires:["base-base"]},"base-core":{requires:["attribute-core"]},"base-observable":{requires:["attribute-observable"]},"base-pluginhost":{requires:["base-base","pluginhost"]},button:{requires:["button-core","cssbutton","widget"]},"button-core":{requires:["attribute-core","classnamemanager","node-base"]},"button-group":{requires:["button-plugin","cssbutton","widget"]},"button-plugin":{requires:["button-core","cssbutton","node-pluginhost"]},cache:{use:["cache-base","cache-offline","cache-plugin"]},"cache-base":{requires:["base"]},"cache-offline":{requires:["cache-base","json"]},"cache-plugin":{requires:["plugin","cache-base"]},calendar:{lang:["de","en","es","es-AR","fr","it","ja","nb-NO","nl","pt-BR","ru","zh-HANT-TW"],requires:["calendar-base","calendarnavigator"],skinnable:!0},"calendar-base":{lang:["de","en","es","es-AR","fr","it","ja","nb-NO","nl","pt-BR","ru","zh-HANT-TW"],requires:["widget","datatype-date","datatype-date-math","cssgrids"],skinnable:!0},calendarnavigator:{requires:["plugin","classnamemanager","datatype-date","node"],skinnable:!0},charts:{use:["charts-base"]},"charts-base":{requires:["dom","event-mouseenter","event-touch","graphics-group","axes","series-pie","series-line","series-marker","series-area","series-spline","series-column","series-bar","series-areaspline","series-combo","series-combospline","series-line-stacked","series-marker-stacked","series-area-stacked","series-spline-stacked","series-column-stacked","series-bar-stacked","series-areaspline-stacked","series-combo-stacked","series-combospline-stacked"]},"charts-legend":{requires:["charts-base"]},classnamemanager:{requires:["yui-base"]},"clickable-rail":{requires:["slider-base"]},collection:{use:["array-extras","arraylist","arraylist-add","arraylist-filter","array-invoke"]},color:{use:["color-base","color-hsl","color-harmony"]},"color-base":{requires:["yui-base"]},"color-harmony":{requires:["color-hsl"]},"color-hsl":{requires:["color-base"]},"color-hsv":{requires:["color-base"]},console:{lang:["en","es","ja"],requires:["yui-log","widget"],skinnable:!0},"console-filters":{requires:["plugin","console"],skinnable:!0},controller:{use:["router"]},cookie:{requires:["yui-base"]},"createlink-base":{requires:["editor-base"]},cssbase:{after:["cssreset","cssfonts","cssgrids","cssreset-context","cssfonts-context","cssgrids-context"],type:"css"},"cssbase-context":{after:["cssreset","cssfonts","cssgrids","cssreset-context","cssfonts-context","cssgrids-context"],type:"css"},cssbutton:{type:"css"},cssfonts:{type:"css"},"cssfonts-context":{type:"css"},cssgrids:{optional:["cssreset","cssfonts"],type:"css"},"cssgrids-base":{optional:["cssreset","cssfonts"],type:"css"},"cssgrids-responsive":{optional:["cssreset","cssfonts"],requires:["cssgrids","cssgrids-responsive-base"],type:"css"},"cssgrids-units":{optional:["cssreset","cssfonts"],requires:["cssgrids-base"],type:"css"},cssnormalize:{type:"css"},"cssnormalize-context":{type:"css"},cssreset:{type:"css"},"cssreset-context":{type:"css"},dataschema:{use:["dataschema-base","dataschema-json","dataschema-xml","dataschema-array","dataschema-text"]},"dataschema-array":{requires:["dataschema-base"]},"dataschema-base":{requires:["base"]},"dataschema-json":{requires:["dataschema-base","json"]},"dataschema-text":{requires:["dataschema-base"]},"dataschema-xml":{requires:["dataschema-base"]},datasource:{use:["datasource-local","datasource-io","datasource-get","datasource-function","datasource-cache","datasource-jsonschema","datasource-xmlschema","datasource-arrayschema","datasource-textschema","datasource-polling"]},"datasource-arrayschema":{requires:["datasource-local","plugin","dataschema-array"]},"datasource-cache":{requires:["datasource-local","plugin","cache-base"]},"datasource-function":{requires:["datasource-local"]},"datasource-get":{requires:["datasource-local","get"]},"datasource-io":{requires:["datasource-local","io-base"]},"datasource-jsonschema":{requires:["datasource-local","plugin","dataschema-json"]},"datasource-local":{requires:["base"]},"datasource-polling":{requires:["datasource-local"]},"datasource-textschema":{requires:["datasource-local","plugin","dataschema-text"]},"datasource-xmlschema":{requires:["datasource-local","plugin","datatype-xml","dataschema-xml"]},datatable:{use:["datatable-core","datatable-table","datatable-head","datatable-body","datatable-base","datatable-column-widths","datatable-message","datatable-mutable","datatable-sort","datatable-datasource"]},"datatable-base":{requires:["datatable-core","datatable-table","datatable-head","datatable-body","base-build","widget"],skinnable:!0},"datatable-body":{requires:["datatable-core","view","classnamemanager"]},"datatable-column-widths":{requires:["datatable-base"]},"datatable-core":{requires:["escape","model-list","node-event-delegate"]},"datatable-datasource":{requires:["datatable-base","plugin","datasource-local" -]},"datatable-formatters":{requires:["datatable-body","datatype-number-format","datatype-date-format","escape"]},"datatable-head":{requires:["datatable-core","view","classnamemanager"]},"datatable-message":{lang:["en","fr","es"],requires:["datatable-base"],skinnable:!0},"datatable-mutable":{requires:["datatable-base"]},"datatable-scroll":{requires:["datatable-base","datatable-column-widths","dom-screen"],skinnable:!0},"datatable-sort":{lang:["en","fr","es"],requires:["datatable-base"],skinnable:!0},"datatable-table":{requires:["datatable-core","datatable-head","datatable-body","view","classnamemanager"]},datatype:{use:["datatype-date","datatype-number","datatype-xml"]},"datatype-date":{use:["datatype-date-parse","datatype-date-format","datatype-date-math"]},"datatype-date-format":{lang:["ar","ar-JO","ca","ca-ES","da","da-DK","de","de-AT","de-DE","el","el-GR","en","en-AU","en-CA","en-GB","en-IE","en-IN","en-JO","en-MY","en-NZ","en-PH","en-SG","en-US","es","es-AR","es-BO","es-CL","es-CO","es-EC","es-ES","es-MX","es-PE","es-PY","es-US","es-UY","es-VE","fi","fi-FI","fr","fr-BE","fr-CA","fr-FR","hi","hi-IN","id","id-ID","it","it-IT","ja","ja-JP","ko","ko-KR","ms","ms-MY","nb","nb-NO","nl","nl-BE","nl-NL","pl","pl-PL","pt","pt-BR","ro","ro-RO","ru","ru-RU","sv","sv-SE","th","th-TH","tr","tr-TR","vi","vi-VN","zh-Hans","zh-Hans-CN","zh-Hant","zh-Hant-HK","zh-Hant-TW"]},"datatype-date-math":{requires:["yui-base"]},"datatype-date-parse":{},"datatype-number":{use:["datatype-number-parse","datatype-number-format"]},"datatype-number-format":{},"datatype-number-parse":{},"datatype-xml":{use:["datatype-xml-parse","datatype-xml-format"]},"datatype-xml-format":{},"datatype-xml-parse":{},dd:{use:["dd-ddm-base","dd-ddm","dd-ddm-drop","dd-drag","dd-proxy","dd-constrain","dd-drop","dd-scroll","dd-delegate"]},"dd-constrain":{requires:["dd-drag"]},"dd-ddm":{requires:["dd-ddm-base","event-resize"]},"dd-ddm-base":{requires:["node","base","yui-throttle","classnamemanager"]},"dd-ddm-drop":{requires:["dd-ddm"]},"dd-delegate":{requires:["dd-drag","dd-drop-plugin","event-mouseenter"]},"dd-drag":{requires:["dd-ddm-base"]},"dd-drop":{requires:["dd-drag","dd-ddm-drop"]},"dd-drop-plugin":{requires:["dd-drop"]},"dd-gestures":{condition:{name:"dd-gestures",trigger:"dd-drag",ua:"touchEnabled"},requires:["dd-drag","event-synthetic","event-gestures"]},"dd-plugin":{optional:["dd-constrain","dd-proxy"],requires:["dd-drag"]},"dd-proxy":{requires:["dd-drag"]},"dd-scroll":{requires:["dd-drag"]},dial:{lang:["en","es"],requires:["widget","dd-drag","event-mouseenter","event-move","event-key","transition","intl"],skinnable:!0},dom:{use:["dom-base","dom-screen","dom-style","selector-native","selector"]},"dom-base":{requires:["dom-core"]},"dom-core":{requires:["oop","features"]},"dom-deprecated":{requires:["dom-base"]},"dom-screen":{requires:["dom-base","dom-style"]},"dom-style":{requires:["dom-base"]},"dom-style-ie":{condition:{name:"dom-style-ie",test:function(e){var t=e.Features.test,n=e.Features.add,r=e.config.win,i=e.config.doc,s="documentElement",o=!1;return n("style","computedStyle",{test:function(){return r&&"getComputedStyle"in r}}),n("style","opacity",{test:function(){return i&&"opacity"in i[s].style}}),o=!t("style","opacity")&&!t("style","computedStyle"),o},trigger:"dom-style"},requires:["dom-style"]},dump:{requires:["yui-base"]},editor:{use:["frame","editor-selection","exec-command","editor-base","editor-para","editor-br","editor-bidi","editor-tab","createlink-base"]},"editor-base":{requires:["base","frame","node","exec-command","editor-selection"]},"editor-bidi":{requires:["editor-base"]},"editor-br":{requires:["editor-base"]},"editor-lists":{requires:["editor-base"]},"editor-para":{requires:["editor-para-base"]},"editor-para-base":{requires:["editor-base"]},"editor-para-ie":{condition:{name:"editor-para-ie",trigger:"editor-para",ua:"ie",when:"instead"},requires:["editor-para-base"]},"editor-selection":{requires:["node"]},"editor-tab":{requires:["editor-base"]},escape:{requires:["yui-base"]},event:{after:["node-base"],use:["event-base","event-delegate","event-synthetic","event-mousewheel","event-mouseenter","event-key","event-focus","event-resize","event-hover","event-outside","event-touch","event-move","event-flick","event-valuechange","event-tap"]},"event-base":{after:["node-base"],requires:["event-custom-base"]},"event-base-ie":{after:["event-base"],condition:{name:"event-base-ie",test:function(e){var t=e.config.doc&&e.config.doc.implementation;return t&&!t.hasFeature("Events","2.0")},trigger:"node-base"},requires:["node-base"]},"event-contextmenu":{requires:["event-synthetic","dom-screen"]},"event-custom":{use:["event-custom-base","event-custom-complex"]},"event-custom-base":{requires:["oop"]},"event-custom-complex":{requires:["event-custom-base"]},"event-delegate":{requires:["node-base"]},"event-flick":{requires:["node-base","event-touch","event-synthetic"]},"event-focus":{requires:["event-synthetic"]},"event-gestures":{use:["event-flick","event-move"]},"event-hover":{requires:["event-mouseenter"]},"event-key":{requires:["event-synthetic"]},"event-mouseenter":{requires:["event-synthetic"]},"event-mousewheel":{requires:["node-base"]},"event-move":{requires:["node-base","event-touch","event-synthetic"]},"event-outside":{requires:["event-synthetic"]},"event-resize":{requires:["node-base","event-synthetic"]},"event-simulate":{requires:["event-base"]},"event-synthetic":{requires:["node-base","event-custom-complex"]},"event-tap":{requires:["node-base","event-base","event-touch","event-synthetic"]},"event-touch":{requires:["node-base"]},"event-valuechange":{requires:["event-focus","event-synthetic"]},"exec-command":{requires:["frame"]},features:{requires:["yui-base"]},file:{requires:["file-flash","file-html5"]},"file-flash":{requires:["base"]},"file-html5":{requires:["base"]},frame:{requires:["base","node","selector-css3","yui-throttle"]},"gesture-simulate":{requires:["async-queue","event-simulate","node-screen"]},get:{requires -:["yui-base"]},graphics:{requires:["node","event-custom","pluginhost","matrix","classnamemanager"]},"graphics-canvas":{condition:{name:"graphics-canvas",test:function(e){var t=e.config.doc,n=e.config.defaultGraphicEngine&&e.config.defaultGraphicEngine=="canvas",r=t&&t.createElement("canvas"),i=t&&t.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1");return(!i||n)&&r&&r.getContext&&r.getContext("2d")},trigger:"graphics"},requires:["graphics"]},"graphics-canvas-default":{condition:{name:"graphics-canvas-default",test:function(e){var t=e.config.doc,n=e.config.defaultGraphicEngine&&e.config.defaultGraphicEngine=="canvas",r=t&&t.createElement("canvas"),i=t&&t.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1");return(!i||n)&&r&&r.getContext&&r.getContext("2d")},trigger:"graphics"}},"graphics-group":{requires:["graphics"]},"graphics-svg":{condition:{name:"graphics-svg",test:function(e){var t=e.config.doc,n=!e.config.defaultGraphicEngine||e.config.defaultGraphicEngine!="canvas",r=t&&t.createElement("canvas"),i=t&&t.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1");return i&&(n||!r)},trigger:"graphics"},requires:["graphics"]},"graphics-svg-default":{condition:{name:"graphics-svg-default",test:function(e){var t=e.config.doc,n=!e.config.defaultGraphicEngine||e.config.defaultGraphicEngine!="canvas",r=t&&t.createElement("canvas"),i=t&&t.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1");return i&&(n||!r)},trigger:"graphics"}},"graphics-vml":{condition:{name:"graphics-vml",test:function(e){var t=e.config.doc,n=t&&t.createElement("canvas");return t&&!t.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")&&(!n||!n.getContext||!n.getContext("2d"))},trigger:"graphics"},requires:["graphics"]},"graphics-vml-default":{condition:{name:"graphics-vml-default",test:function(e){var t=e.config.doc,n=t&&t.createElement("canvas");return t&&!t.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")&&(!n||!n.getContext||!n.getContext("2d"))},trigger:"graphics"}},handlebars:{use:["handlebars-compiler"]},"handlebars-base":{requires:[]},"handlebars-compiler":{requires:["handlebars-base"]},highlight:{use:["highlight-base","highlight-accentfold"]},"highlight-accentfold":{requires:["highlight-base","text-accentfold"]},"highlight-base":{requires:["array-extras","classnamemanager","escape","text-wordbreak"]},history:{use:["history-base","history-hash","history-hash-ie","history-html5"]},"history-base":{requires:["event-custom-complex"]},"history-hash":{after:["history-html5"],requires:["event-synthetic","history-base","yui-later"]},"history-hash-ie":{condition:{name:"history-hash-ie",test:function(e){var t=e.config.doc&&e.config.doc.documentMode;return e.UA.ie&&(!("onhashchange"in e.config.win)||!t||t<8)},trigger:"history-hash"},requires:["history-hash","node-base"]},"history-html5":{optional:["json"],requires:["event-base","history-base","node-base"]},imageloader:{requires:["base-base","node-style","node-screen"]},intl:{requires:["intl-base","event-custom"]},"intl-base":{requires:["yui-base"]},io:{use:["io-base","io-xdr","io-form","io-upload-iframe","io-queue"]},"io-base":{requires:["event-custom-base","querystring-stringify-simple"]},"io-form":{requires:["io-base","node-base"]},"io-nodejs":{condition:{name:"io-nodejs",trigger:"io-base",ua:"nodejs"},requires:["io-base"]},"io-queue":{requires:["io-base","queue-promote"]},"io-upload-iframe":{requires:["io-base","node-base"]},"io-xdr":{requires:["io-base","datatype-xml-parse"]},json:{use:["json-parse","json-stringify"]},"json-parse":{requires:["yui-base"]},"json-parse-shim":{condition:{name:"json-parse-shim",test:function(e){function i(e,t){return e==="ok"?!0:t}var t=e.config.global.JSON,n=Object.prototype.toString.call(t)==="[object JSON]"&&t,r=e.config.useNativeJSONParse!==!1&&!!n;if(r)try{r=n.parse('{"ok":false}',i).ok}catch(s){r=!1}return!r},trigger:"json-parse"},requires:["json-parse"]},"json-stringify":{requires:["yui-base"]},"json-stringify-shim":{condition:{name:"json-stringify-shim",test:function(e){var t=e.config.global.JSON,n=Object.prototype.toString.call(t)==="[object JSON]"&&t,r=e.config.useNativeJSONStringify!==!1&&!!n;if(r)try{r="0"===n.stringify(0)}catch(i){r=!1}return!r},trigger:"json-stringify"},requires:["json-stringify"]},jsonp:{requires:["get","oop"]},"jsonp-url":{requires:["jsonp"]},"lazy-model-list":{requires:["model-list"]},loader:{use:["loader-base","loader-rollup","loader-yui3"]},"loader-base":{requires:["get","features"]},"loader-rollup":{requires:["loader-base"]},"loader-yui3":{requires:["loader-base"]},matrix:{requires:["yui-base"]},model:{requires:["base-build","escape","json-parse"]},"model-list":{requires:["array-extras","array-invoke","arraylist","base-build","escape","json-parse","model"]},"model-sync-rest":{requires:["model","io-base","json-stringify"]},node:{use:["node-base","node-event-delegate","node-pluginhost","node-screen","node-style"]},"node-base":{requires:["event-base","node-core","dom-base"]},"node-core":{requires:["dom-core","selector"]},"node-deprecated":{requires:["node-base"]},"node-event-delegate":{requires:["node-base","event-delegate"]},"node-event-html5":{requires:["node-base"]},"node-event-simulate":{requires:["node-base","event-simulate","gesture-simulate"]},"node-flick":{requires:["classnamemanager","transition","event-flick","plugin"],skinnable:!0},"node-focusmanager":{requires:["attribute","node","plugin","node-event-simulate","event-key","event-focus"]},"node-load":{requires:["node-base","io-base"]},"node-menunav":{requires:["node","classnamemanager","plugin","node-focusmanager"],skinnable:!0},"node-pluginhost":{requires:["node-base","pluginhost"]},"node-screen":{requires:["dom-screen","node-base"]},"node-scroll-info":{requires:["base-build","dom-screen","event-resize","node-pluginhost","plugin"]},"node-style":{requires:["dom-style" -,"node-base"]},oop:{requires:["yui-base"]},overlay:{requires:["widget","widget-stdmod","widget-position","widget-position-align","widget-stack","widget-position-constrain"],skinnable:!0},panel:{requires:["widget","widget-autohide","widget-buttons","widget-modality","widget-position","widget-position-align","widget-position-constrain","widget-stack","widget-stdmod"],skinnable:!0},parallel:{requires:["yui-base"]},pjax:{requires:["pjax-base","pjax-content"]},"pjax-base":{requires:["classnamemanager","node-event-delegate","router"]},"pjax-content":{requires:["io-base","node-base","router"]},"pjax-plugin":{requires:["node-pluginhost","pjax","plugin"]},plugin:{requires:["base-base"]},pluginhost:{use:["pluginhost-base","pluginhost-config"]},"pluginhost-base":{requires:["yui-base"]},"pluginhost-config":{requires:["pluginhost-base"]},profiler:{requires:["yui-base"]},promise:{requires:["timers"]},querystring:{use:["querystring-parse","querystring-stringify"]},"querystring-parse":{requires:["yui-base","array-extras"]},"querystring-parse-simple":{requires:["yui-base"]},"querystring-stringify":{requires:["yui-base"]},"querystring-stringify-simple":{requires:["yui-base"]},"queue-promote":{requires:["yui-base"]},"range-slider":{requires:["slider-base","slider-value-range","clickable-rail"]},recordset:{use:["recordset-base","recordset-sort","recordset-filter","recordset-indexer"]},"recordset-base":{requires:["base","arraylist"]},"recordset-filter":{requires:["recordset-base","array-extras","plugin"]},"recordset-indexer":{requires:["recordset-base","plugin"]},"recordset-sort":{requires:["arraysort","recordset-base","plugin"]},resize:{use:["resize-base","resize-proxy","resize-constrain"]},"resize-base":{requires:["base","widget","event","oop","dd-drag","dd-delegate","dd-drop"],skinnable:!0},"resize-constrain":{requires:["plugin","resize-base"]},"resize-plugin":{optional:["resize-constrain"],requires:["resize-base","plugin"]},"resize-proxy":{requires:["plugin","resize-base"]},router:{optional:["querystring-parse"],requires:["array-extras","base-build","history"]},scrollview:{requires:["scrollview-base","scrollview-scrollbars"]},"scrollview-base":{requires:["widget","event-gestures","event-mousewheel","transition"],skinnable:!0},"scrollview-base-ie":{condition:{name:"scrollview-base-ie",trigger:"scrollview-base",ua:"ie"},requires:["scrollview-base"]},"scrollview-list":{requires:["plugin","classnamemanager"],skinnable:!0},"scrollview-paginator":{requires:["plugin","classnamemanager"]},"scrollview-scrollbars":{requires:["classnamemanager","transition","plugin"],skinnable:!0},selector:{requires:["selector-native"]},"selector-css2":{condition:{name:"selector-css2",test:function(e){var t=e.config.doc,n=t&&!("querySelectorAll"in t);return n},trigger:"selector"},requires:["selector-native"]},"selector-css3":{requires:["selector-native","selector-css2"]},"selector-native":{requires:["dom-base"]},"series-area":{requires:["series-cartesian","series-fill-util"]},"series-area-stacked":{requires:["series-stacked","series-area"]},"series-areaspline":{requires:["series-area","series-curve-util"]},"series-areaspline-stacked":{requires:["series-stacked","series-areaspline"]},"series-bar":{requires:["series-marker","series-histogram-base"]},"series-bar-stacked":{requires:["series-stacked","series-bar"]},"series-base":{requires:["graphics","axis-base"]},"series-candlestick":{requires:["series-range"]},"series-cartesian":{requires:["series-base"]},"series-column":{requires:["series-marker","series-histogram-base"]},"series-column-stacked":{requires:["series-stacked","series-column"]},"series-combo":{requires:["series-cartesian","series-line-util","series-plot-util","series-fill-util"]},"series-combo-stacked":{requires:["series-stacked","series-combo"]},"series-combospline":{requires:["series-combo","series-curve-util"]},"series-combospline-stacked":{requires:["series-combo-stacked","series-curve-util"]},"series-curve-util":{},"series-fill-util":{},"series-histogram-base":{requires:["series-cartesian","series-plot-util"]},"series-line":{requires:["series-cartesian","series-line-util"]},"series-line-stacked":{requires:["series-stacked","series-line"]},"series-line-util":{},"series-marker":{requires:["series-cartesian","series-plot-util"]},"series-marker-stacked":{requires:["series-stacked","series-marker"]},"series-ohlc":{requires:["series-range"]},"series-pie":{requires:["series-base","series-plot-util"]},"series-plot-util":{},"series-range":{requires:["series-cartesian"]},"series-spline":{requires:["series-line","series-curve-util"]},"series-spline-stacked":{requires:["series-stacked","series-spline"]},"series-stacked":{requires:["axis-stacked"]},"shim-plugin":{requires:["node-style","node-pluginhost"]},slider:{use:["slider-base","slider-value-range","clickable-rail","range-slider"]},"slider-base":{requires:["widget","dd-constrain","event-key"],skinnable:!0},"slider-value-range":{requires:["slider-base"]},sortable:{requires:["dd-delegate","dd-drop-plugin","dd-proxy"]},"sortable-scroll":{requires:["dd-scroll","sortable"]},stylesheet:{requires:["yui-base"]},substitute:{optional:["dump"],requires:["yui-base"]},swf:{requires:["event-custom","node","swfdetect","escape"]},swfdetect:{requires:["yui-base"]},tabview:{requires:["widget","widget-parent","widget-child","tabview-base","node-pluginhost","node-focusmanager"],skinnable:!0},"tabview-base":{requires:["node-event-delegate","classnamemanager"]},"tabview-plugin":{requires:["tabview-base"]},template:{use:["template-base","template-micro"]},"template-base":{requires:["yui-base"]},"template-micro":{requires:["escape"]},test:{requires:["event-simulate","event-custom","json-stringify"]},"test-console":{requires:["console-filters","test","array-extras"],skinnable:!0},text:{use:["text-accentfold","text-wordbreak"]},"text-accentfold":{requires:["array-extras","text-data-accentfold"]},"text-data-accentfold":{requires:["yui-base"]},"text-data-wordbreak":{requires:["yui-base" -]},"text-wordbreak":{requires:["array-extras","text-data-wordbreak"]},timers:{requires:["yui-base"]},transition:{requires:["node-style"]},"transition-timer":{condition:{name:"transition-timer",test:function(e){var t=e.config.doc,n=t?t.documentElement:null,r=!0;return n&&n.style&&(r=!("MozTransition"in n.style||"WebkitTransition"in n.style||"transition"in n.style)),r},trigger:"transition"},requires:["transition"]},tree:{requires:["base-build","tree-node"]},"tree-labelable":{requires:["tree"]},"tree-lazy":{requires:["base-pluginhost","plugin","tree"]},"tree-node":{},"tree-openable":{requires:["tree"]},"tree-selectable":{requires:["tree"]},uploader:{requires:["uploader-html5","uploader-flash"]},"uploader-flash":{requires:["swf","widget","base","cssbutton","node","event-custom","file-flash","uploader-queue"]},"uploader-html5":{requires:["widget","node-event-simulate","file-html5","uploader-queue"]},"uploader-queue":{requires:["base"]},view:{requires:["base-build","node-event-delegate"]},"view-node-map":{requires:["view"]},widget:{use:["widget-base","widget-htmlparser","widget-skin","widget-uievents"]},"widget-anim":{requires:["anim-base","plugin","widget"]},"widget-autohide":{requires:["base-build","event-key","event-outside","widget"]},"widget-base":{requires:["attribute","base-base","base-pluginhost","classnamemanager","event-focus","node-base","node-style"],skinnable:!0},"widget-base-ie":{condition:{name:"widget-base-ie",trigger:"widget-base",ua:"ie"},requires:["widget-base"]},"widget-buttons":{requires:["button-plugin","cssbutton","widget-stdmod"]},"widget-child":{requires:["base-build","widget"]},"widget-htmlparser":{requires:["widget-base"]},"widget-locale":{requires:["widget-base"]},"widget-modality":{requires:["base-build","event-outside","widget"],skinnable:!0},"widget-parent":{requires:["arraylist","base-build","widget"]},"widget-position":{requires:["base-build","node-screen","widget"]},"widget-position-align":{requires:["widget-position"]},"widget-position-constrain":{requires:["widget-position"]},"widget-skin":{requires:["widget-base"]},"widget-stack":{requires:["base-build","widget"],skinnable:!0},"widget-stdmod":{requires:["base-build","widget"]},"widget-uievents":{requires:["node-event-delegate","widget-base"]},yql:{requires:["oop"]},"yql-jsonp":{condition:{name:"yql-jsonp",test:function(e){return!e.UA.nodejs&&!e.UA.winjs},trigger:"yql",when:"after"},requires:["jsonp","jsonp-url"]},"yql-nodejs":{condition:{name:"yql-nodejs",trigger:"yql",ua:"nodejs",when:"after"}},"yql-winjs":{condition:{name:"yql-winjs",trigger:"yql",ua:"winjs",when:"after"}},yui:{},"yui-base":{},"yui-later":{requires:["yui-base"]},"yui-log":{requires:["yui-base"]},"yui-throttle":{requires:["yui-base"]}}),YUI.Env[e.version].md5="660f328e92276f36e9abfafb02169183"},"3.9.1",{requires:["loader-base"]}),YUI.add("yui",function(e,t){},"3.9.1",{use:["yui-base","get","features","intl-base","yui-log","yui-later","loader-base","loader-rollup","loader-yui3"]}); diff --git a/docs_api/assets/js/yui-prettify.js b/docs_api/assets/js/yui-prettify.js deleted file mode 100644 index 18de864..0000000 --- a/docs_api/assets/js/yui-prettify.js +++ /dev/null @@ -1,17 +0,0 @@ -YUI().use('node', function(Y) { - var code = Y.all('.prettyprint.linenums'); - if (code.size()) { - code.each(function(c) { - var lis = c.all('ol li'), - l = 1; - lis.each(function(n) { - n.prepend(''); - l++; - }); - }); - var h = location.hash; - location.hash = ''; - h = h.replace('LINE_', 'LINENUM_'); - location.hash = h; - } -}); diff --git a/docs_api/assets/vendor/prettify/CHANGES.html b/docs_api/assets/vendor/prettify/CHANGES.html deleted file mode 100644 index b50b841..0000000 --- a/docs_api/assets/vendor/prettify/CHANGES.html +++ /dev/null @@ -1,130 +0,0 @@ - - - - Change Log - - - README - -

      Known Issues

      -
        -
      • Perl formatting is really crappy. Partly because the author is lazy and - partly because Perl is - hard to parse. -
      • On some browsers, <code> elements with newlines in the text - which use CSS to specify white-space:pre will have the newlines - improperly stripped if the element is not attached to the document at the time - the stripping is done. Also, on IE 6, all newlines will be stripped from - <code> elements because of the way IE6 produces - innerHTML. Workaround: use <pre> for code with - newlines. -
      - -

      Change Log

      -

      29 March 2007

      -
        -
      • Added tests for PHP support - to address - issue 3. -
      • Fixed - bug: prettyPrintOne was not halting. This was not - reachable through the normal entry point. -
      • Fixed - bug: recursing into a script block or PHP tag that was not properly - closed would not silently drop the content. - (test) -
      • Fixed - bug: was eating tabs - (test) -
      • Fixed entity handling so that the caveat -
        -

        Caveats: please properly escape less-thans. x&lt;y - instead of x<y, and use " instead of - &quot; for string delimiters.

        -
        - is no longer applicable. -
      • Added noisefree's C# - patch -
      • Added a distribution that has comments and - whitespace removed to reduce download size from 45.5kB to 12.8kB. -
      -

      4 Jul 2008

      -
        -
      • Added language specific formatters that are triggered by the presence - of a lang-<language-file-extension>
      • -
      • Fixed bug: python handling of '''string''' -
      • Fixed bug: / in regex [charsets] should not end regex -
      -

      5 Jul 2008

      -
      -

      14 Jul 2008

      - -

      6 Jan 2009

      - -

      21 May 2009

      - -

      14 August 2009

      - -

      3 October 2009

      - -

      19 July 2010

      - - - diff --git a/docs_api/assets/vendor/prettify/COPYING b/docs_api/assets/vendor/prettify/COPYING deleted file mode 100644 index d645695..0000000 --- a/docs_api/assets/vendor/prettify/COPYING +++ /dev/null @@ -1,202 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/docs_api/assets/vendor/prettify/README.html b/docs_api/assets/vendor/prettify/README.html deleted file mode 100644 index c6fe1a3..0000000 --- a/docs_api/assets/vendor/prettify/README.html +++ /dev/null @@ -1,203 +0,0 @@ - - - - - Javascript code prettifier - - - - - - - - - - Languages : CH -

      Javascript code prettifier

      - -

      Setup

      -
        -
      1. Download a distribution -
      2. Include the script and stylesheets in your document - (you will need to make sure the css and js file are on your server, and - adjust the paths in the script and link tag) -
        -<link href="prettify.css" type="text/css" rel="stylesheet" />
        -<script type="text/javascript" src="prettify.js"></script>
        -
      3. Add onload="prettyPrint()" to your - document's body tag. -
      4. Modify the stylesheet to get the coloring you prefer
      5. -
      - -

      Usage

      -

      Put code snippets in - <pre class="prettyprint">...</pre> - or <code class="prettyprint">...</code> - and it will automatically be pretty printed. - - - - -
      The original - Prettier -
      class Voila {
      -public:
      -  // Voila
      -  static const string VOILA = "Voila";
      -
      -  // will not interfere with embedded tags.
      -}
      - -
      class Voila {
      -public:
      -  // Voila
      -  static const string VOILA = "Voila";
      -
      -  // will not interfere with embedded tags.
      -}
      -
      - -

      FAQ

      -

      Which languages does it work for?

      -

      The comments in prettify.js are authoritative but the lexer - should work on a number of languages including C and friends, - Java, Python, Bash, SQL, HTML, XML, CSS, Javascript, and Makefiles. - It works passably on Ruby, PHP, VB, and Awk and a decent subset of Perl - and Ruby, but, because of commenting conventions, doesn't work on - Smalltalk, or CAML-like languages.

      - -

      LISPy languages are supported via an extension: - lang-lisp.js.

      -

      And similarly for - CSS, - Haskell, - Lua, - OCAML, SML, F#, - Visual Basic, - SQL, - Protocol Buffers, and - WikiText.. - -

      If you'd like to add an extension for your favorite language, please - look at src/lang-lisp.js and file an - issue including your language extension, and a testcase.

      - -

      How do I specify which language my code is in?

      -

      You don't need to specify the language since prettyprint() - will guess. You can specify a language by specifying the language extension - along with the prettyprint class like so:

      -
      <pre class="prettyprint lang-html">
      -  The lang-* class specifies the language file extensions.
      -  File extensions supported by default include
      -    "bsh", "c", "cc", "cpp", "cs", "csh", "cyc", "cv", "htm", "html",
      -    "java", "js", "m", "mxml", "perl", "pl", "pm", "py", "rb", "sh",
      -    "xhtml", "xml", "xsl".
      -</pre>
      - -

      It doesn't work on <obfuscated code sample>?

      -

      Yes. Prettifying obfuscated code is like putting lipstick on a pig - — i.e. outside the scope of this tool.

      - -

      Which browsers does it work with?

      -

      It's been tested with IE 6, Firefox 1.5 & 2, and Safari 2.0.4. - Look at the test page to see if it - works in your browser.

      - -

      What's changed?

      -

      See the change log

      - -

      Why doesn't Prettyprinting of strings work on WordPress?

      -

      Apparently wordpress does "smart quoting" which changes close quotes. - This causes end quotes to not match up with open quotes. -

      This breaks prettifying as well as copying and pasting of code samples. - See - WordPress's help center for info on how to stop smart quoting of code - snippets.

      - -

      How do I put line numbers in my code?

      -

      You can use the linenums class to turn on line - numbering. If your code doesn't start at line number 1, you can - add a colon and a line number to the end of that class as in - linenums:52. - -

      For example -

      <pre class="prettyprint linenums:4"
      ->// This is line 4.
      -foo();
      -bar();
      -baz();
      -boo();
      -far();
      -faz();
      -<pre>
      - produces -
      // This is line 4.
      -foo();
      -bar();
      -baz();
      -boo();
      -far();
      -faz();
      -
      - -

      How do I prevent a portion of markup from being marked as code?

      -

      You can use the nocode class to identify a span of markup - that is not code. -

      <pre class=prettyprint>
      -int x = foo();  /* This is a comment  <span class="nocode">This is not code</span>
      -  Continuation of comment */
      -int y = bar();
      -</pre>
      -produces -
      -int x = foo();  /* This is a comment  This is not code
      -  Continuation of comment */
      -int y = bar();
      -
      - -

      For a more complete example see the issue22 - testcase.

      - -

      I get an error message "a is not a function" or "opt_whenDone is not a function"

      -

      If you are calling prettyPrint via an event handler, wrap it in a function. - Instead of doing -

      - addEventListener('load', prettyPrint, false); -
      - wrap it in a closure like -
      - addEventListener('load', function (event) { prettyPrint() }, false); -
      - so that the browser does not pass an event object to prettyPrint which - will confuse it. - -


      - - - - diff --git a/docs_api/assets/vendor/prettify/prettify-min.css b/docs_api/assets/vendor/prettify/prettify-min.css deleted file mode 100644 index d44b3a2..0000000 --- a/docs_api/assets/vendor/prettify/prettify-min.css +++ /dev/null @@ -1 +0,0 @@ -.pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px solid #888}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee} \ No newline at end of file diff --git a/docs_api/assets/vendor/prettify/prettify-min.js b/docs_api/assets/vendor/prettify/prettify-min.js deleted file mode 100644 index 4845d05..0000000 --- a/docs_api/assets/vendor/prettify/prettify-min.js +++ /dev/null @@ -1 +0,0 @@ -window.PR_SHOULD_USE_CONTINUATION=true;var prettyPrintOne;var prettyPrint;(function(){var O=window;var j=["break,continue,do,else,for,if,return,while"];var v=[j,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"];var q=[v,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"];var m=[q,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"];var y=[q,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"];var T=[y,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,let,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var,virtual,where"];var s="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes";var x=[q,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"];var t="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END";var J=[j,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"];var g=[j,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"];var I=[j,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"];var B=[m,T,x,t+J,g,I];var f=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)\b/;var D="str";var A="kwd";var k="com";var Q="typ";var H="lit";var M="pun";var G="pln";var n="tag";var F="dec";var K="src";var R="atn";var o="atv";var P="nocode";var N="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function l(ab){var af=0;var U=false;var ae=false;for(var X=0,W=ab.length;X122)){if(!(am<65||ai>90)){ah.push([Math.max(65,ai)|32,Math.min(am,90)|32])}if(!(am<97||ai>122)){ah.push([Math.max(97,ai)&~32,Math.min(am,122)&~32])}}}}ah.sort(function(aw,av){return(aw[0]-av[0])||(av[1]-aw[1])});var ak=[];var aq=[];for(var at=0;atau[0]){if(au[1]+1>au[0]){ao.push("-")}ao.push(V(au[1]))}}ao.push("]");return ao.join("")}function Y(an){var al=an.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g"));var aj=al.length;var ap=[];for(var am=0,ao=0;am=2&&ak==="["){al[am]=Z(ai)}else{if(ak!=="\\"){al[am]=ai.replace(/[a-zA-Z]/g,function(aq){var ar=aq.charCodeAt(0);return"["+String.fromCharCode(ar&~32,ar|32)+"]"})}}}}return al.join("")}var ac=[];for(var X=0,W=ab.length;X=0;){U[ae.charAt(ag)]=aa}}var ah=aa[1];var ac=""+ah;if(!ai.hasOwnProperty(ac)){aj.push(ah);ai[ac]=null}}aj.push(/[\0-\uffff]/);X=l(aj)})();var Z=V.length;var Y=function(aj){var ab=aj.sourceCode,aa=aj.basePos;var af=[aa,G];var ah=0;var ap=ab.match(X)||[];var al={};for(var ag=0,at=ap.length;ag=5&&"lang-"===ar.substring(0,5);if(ao&&!(ak&&typeof ak[1]==="string")){ao=false;ar=K}if(!ao){al[ai]=ar}}var ad=ah;ah+=ai.length;if(!ao){af.push(aa+ad,ar)}else{var an=ak[1];var am=ai.indexOf(an);var ae=am+an.length;if(ak[2]){ae=ai.length-ak[2].length;am=ae-an.length}var au=ar.substring(5);C(aa+ad,ai.substring(0,am),Y,af);C(aa+ad+am,an,r(au,an),af);C(aa+ad+ae,ai.substring(ae),Y,af)}}aj.decorations=af};return Y}function i(V){var Y=[],U=[];if(V.tripleQuotedStrings){Y.push([D,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,"'\""])}else{if(V.multiLineStrings){Y.push([D,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"])}else{Y.push([D,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,"\"'"])}}if(V.verbatimStrings){U.push([D,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null])}var ab=V.hashComments;if(ab){if(V.cStyleComments){if(ab>1){Y.push([k,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"])}else{Y.push([k,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"])}U.push([D,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])}else{Y.push([k,/^#[^\r\n]*/,null,"#"])}}if(V.cStyleComments){U.push([k,/^\/\/[^\r\n]*/,null]);U.push([k,/^\/\*[\s\S]*?(?:\*\/|$)/,null])}if(V.regexLiterals){var aa=("/(?=[^/*])(?:[^/\\x5B\\x5C]|\\x5C[\\s\\S]|\\x5B(?:[^\\x5C\\x5D]|\\x5C[\\s\\S])*(?:\\x5D|$))+/");U.push(["lang-regex",new RegExp("^"+N+"("+aa+")")])}var X=V.types;if(X){U.push([Q,X])}var W=(""+V.keywords).replace(/^ | $/g,"");if(W.length){U.push([A,new RegExp("^(?:"+W.replace(/[\s,]+/g,"|")+")\\b"),null])}Y.push([G,/^\s+/,null," \r\n\t\xA0"]);var Z=/^.[^\s\w\.$@\'\"\`\/\\]*/;U.push([H,/^@[a-z_$][a-z_$@0-9]*/i,null],[Q,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[G,/^[a-z_$][a-z_$@0-9]*/i,null],[H,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[G,/^\\[\s\S]?/,null],[M,Z,null]);return h(Y,U)}var L=i({keywords:B,hashComments:true,cStyleComments:true,multiLineStrings:true,regexLiterals:true});function S(W,ah,aa){var V=/(?:^|\s)nocode(?:\s|$)/;var ac=/\r\n?|\n/;var ad=W.ownerDocument;var ag=ad.createElement("li");while(W.firstChild){ag.appendChild(W.firstChild)}var X=[ag];function af(am){switch(am.nodeType){case 1:if(V.test(am.className)){break}if("br"===am.nodeName){ae(am);if(am.parentNode){am.parentNode.removeChild(am)}}else{for(var ao=am.firstChild;ao;ao=ao.nextSibling){af(ao)}}break;case 3:case 4:if(aa){var an=am.nodeValue;var ak=an.match(ac);if(ak){var aj=an.substring(0,ak.index);am.nodeValue=aj;var ai=an.substring(ak.index+ak[0].length);if(ai){var al=am.parentNode;al.insertBefore(ad.createTextNode(ai),am.nextSibling)}ae(am);if(!aj){am.parentNode.removeChild(am)}}}break}}function ae(al){while(!al.nextSibling){al=al.parentNode;if(!al){return}}function aj(am,at){var ar=at?am.cloneNode(false):am;var ap=am.parentNode;if(ap){var aq=aj(ap,1);var ao=am.nextSibling;aq.appendChild(ar);for(var an=ao;an;an=ao){ao=an.nextSibling;aq.appendChild(an)}}return ar}var ai=aj(al.nextSibling,0);for(var ak;(ak=ai.parentNode)&&ak.nodeType===1;){ai=ak}X.push(ai)}for(var Z=0;Z=U){aj+=2}if(Y>=ar){ac+=2}}}finally{if(au){au.style.display=ak}}}var u={};function d(W,X){for(var U=X.length;--U>=0;){var V=X[U];if(!u.hasOwnProperty(V)){u[V]=W}else{if(O.console){console.warn("cannot override language handler %s",V)}}}}function r(V,U){if(!(V&&u.hasOwnProperty(V))){V=/^\s*]*(?:>|$)/],[k,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[M,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]);d(h([[G,/^[\s]+/,null," \t\r\n"],[o,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,"\"'"]],[[n,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[R,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[M,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]);d(h([],[[o,/^[\s\S]+/]]),["uq.val"]);d(i({keywords:m,hashComments:true,cStyleComments:true,types:f}),["c","cc","cpp","cxx","cyc","m"]);d(i({keywords:"null,true,false"}),["json"]);d(i({keywords:T,hashComments:true,cStyleComments:true,verbatimStrings:true,types:f}),["cs"]);d(i({keywords:y,cStyleComments:true}),["java"]);d(i({keywords:I,hashComments:true,multiLineStrings:true}),["bsh","csh","sh"]);d(i({keywords:J,hashComments:true,multiLineStrings:true,tripleQuotedStrings:true}),["cv","py"]);d(i({keywords:t,hashComments:true,multiLineStrings:true,regexLiterals:true}),["perl","pl","pm"]);d(i({keywords:g,hashComments:true,multiLineStrings:true,regexLiterals:true}),["rb"]);d(i({keywords:x,cStyleComments:true,regexLiterals:true}),["js"]);d(i({keywords:s,hashComments:3,cStyleComments:true,multilineStrings:true,tripleQuotedStrings:true,regexLiterals:true}),["coffee"]);d(h([],[[D,/^[\s\S]+/]]),["regex"]);function e(X){var W=X.langExtension;try{var U=b(X.sourceNode,X.pre);var V=U.sourceCode;X.sourceCode=V;X.spans=U.spans;X.basePos=0;r(W,V)(X);E(X)}catch(Y){if(O.console){console.log(Y&&Y.stack?Y.stack:Y)}}}function z(Y,X,W){var U=document.createElement("pre");U.innerHTML=Y;if(W){S(U,W,true)}var V={langExtension:X,numberLines:W,sourceNode:U,pre:1};e(V);return U.innerHTML}function c(aj){function ab(al){return document.getElementsByTagName(al)}var ah=[ab("pre"),ab("code"),ab("xmp")];var V=[];for(var ae=0;ae]*(?:>|$)/],[PR.PR_COMMENT,/^<\!--[\s\S]*?(?:-\->|$)/],[PR.PR_PUNCTUATION,/^(?:<[%?]|[%?]>)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-handlebars",/^]*type\s*=\s*['"]?text\/x-handlebars-template['"]?\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i],[PR.PR_DECLARATION,/^{{[#^>/]?\s*[\w.][^}]*}}/],[PR.PR_DECLARATION,/^{{&?\s*[\w.][^}]*}}/],[PR.PR_DECLARATION,/^{{{>?\s*[\w.][^}]*}}}/],[PR.PR_COMMENT,/^{{![^}]*}}/]]),["handlebars","hbs"]);PR.registerLangHandler(PR.createSimpleLexer([[PR.PR_PLAIN,/^[ \t\r\n\f]+/,null," \t\r\n\f"]],[[PR.PR_STRING,/^\"(?:[^\n\r\f\\\"]|\\(?:\r\n?|\n|\f)|\\[\s\S])*\"/,null],[PR.PR_STRING,/^\'(?:[^\n\r\f\\\']|\\(?:\r\n?|\n|\f)|\\[\s\S])*\'/,null],["lang-css-str",/^url\(([^\)\"\']*)\)/i],[PR.PR_KEYWORD,/^(?:url|rgb|\!important|@import|@page|@media|@charset|inherit)(?=[^\-\w]|$)/i,null],["lang-css-kw",/^(-?(?:[_a-z]|(?:\\[0-9a-f]+ ?))(?:[_a-z0-9\-]|\\(?:\\[0-9a-f]+ ?))*)\s*:/i],[PR.PR_COMMENT,/^\/\*[^*]*\*+(?:[^\/*][^*]*\*+)*\//],[PR.PR_COMMENT,/^(?:)/],[PR.PR_LITERAL,/^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i],[PR.PR_LITERAL,/^#(?:[0-9a-f]{3}){1,2}/i],[PR.PR_PLAIN,/^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i],[PR.PR_PUNCTUATION,/^[^\s\w\'\"]+/]]),["css"]);PR.registerLangHandler(PR.createSimpleLexer([],[[PR.PR_KEYWORD,/^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i]]),["css-kw"]);PR.registerLangHandler(PR.createSimpleLexer([],[[PR.PR_STRING,/^[^\)\"\']+/]]),["css-str"]); \ No newline at end of file diff --git a/docs_api/classes/.window.html b/docs_api/classes/.window.html deleted file mode 100644 index 48d72e3..0000000 --- a/docs_api/classes/.window.html +++ /dev/null @@ -1,1768 +0,0 @@ - - - - - .window - FChart - - - - - - - - - - - - - -
      -
      -
      -

      -
      -
      - API Docs for: 0.2 -
      -
      -
      - -
      -
      - Show: - - - - -
      -
      -
      -
      -

      .window Class

      - -
      -

      全局函数

      -
      -
      - -
      -
      -

      Item Index

      -
      -

      Methods

      - -
      -
      -

      Properties

      - -
      -
      -
      -

      Methods

      -
      -

      addUrlParams

      -
      - (
        -
      • - _url -
      • -
      • - _params -
      • -
      ) -
      - - - - static - -
      -

      添加URL参数 -
      require: delUrlParam

      -
      -
      -

      Parameters:

      - -
      -
      -

      Returns:

      -
      -

      string

      -
      -
      -
      -

      Example:

      -
      -
         var url = addUrlParams( location.href, {'key1': 'key1value', 'key2': 'key2value' } );
      -
      -
      -
      -
      -

      cloneDate

      -
      - (
        -
      • - _date -
      • -
      ) -
      - - Date - - static - -
      -

      克隆日期对象

      -
      -
      -

      Parameters:

      -
        -
      • - _date - Date -
        -

        需要克隆的日期

        -
        -
      • -
      -
      -
      -

      Returns:

      -
      - Date: -

      需要克隆的日期对象

      -
      -
      -
      -
      -

      dateDetect

      -
      - (
        -
      • - _dateStr -
      • -
      ) -
      - - Date | Null - - static - -
      -

      日期占位符识别功能

      -
      -
      -

      Parameters:

      -
        -
      • - _dateStr - String -
        -

        如果 起始字符为 NOW, 那么将视为当前日期

        -
        -
      • -
      -
      -
      -

      Returns:

      -
      - Date | Null: -
      -
      -
      -

      Example:

      -
      -
       dateDetect( 'now' ); //2014-10-02
      - dateDetect( 'now,3d' ); //2013-10-05
      - dateDetect( 'now,-3d' ); //2013-09-29
      - dateDetect( 'now,2w' ); //2013-10-16
      - dateDetect( 'now,-2m' ); //2013-08-02
      - dateDetect( 'now,4y' ); //2017-10-02
      - dateDetect( 'now,1d,1w,1m,1y' ); //2014-11-10
      -
      -
      -
      -
      -

      delUrlParam

      -
      - (
        -
      • - _url -
      • -
      • - _key -
      • -
      ) -
      - - - - static - -
      -

      删除URL参数

      -
      -
      -

      Parameters:

      - -
      -
      -

      Returns:

      -
      -

      string

      -
      -
      -
      -

      Example:

      -
      -
         var url = delUrlParam( location.href, 'tag' );
      -
      -
      -
      -
      -

      easyEffect

      -
      - (
        -
      • - _cb -
      • -
      • - _maxVal -
      • -
      • - _startVal -
      • -
      • - _duration -
      • -
      • - _stepMs -
      • -
      ) -
      - - - - static - -
      -

      缓动函数, 动画效果为按时间缓动 -
      这个函数只考虑递增, 你如果需要递减的话, 在回调里用 _maxVal - _stepval

      -
      -
      -

      Parameters:

      -
        -
      • - _cb - Function -
        -

        缓动运动时的回调

        -
        -
      • -
      • - _maxVal - Number -
        -

        缓动的最大值, default = 200

        -
        -
      • -
      • - _startVal - Number -
        -

        缓动的起始值, default = 0

        -
        -
      • -
      • - _duration - Number -
        -

        缓动的总时间, 单位毫秒, default = 200

        -
        -
      • -
      • - _stepMs - Number -
        -

        缓动的间隔, 单位毫秒, default = 2

        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      interval

      -
      -
      -
      -

      Example:

      -
      -
         $(document).ready(function(){
      -       window.js_output = $('span.js_output');
      -       window.ls = [];
      -       window.EFF_INTERVAL = easyEffect( effectcallback, 100);
      -   });
      -   function effectcallback( _stepval, _done ){
      -       js_output.html( _stepval );
      -       ls.push( _stepval );
      -       !_done && js_output.html( _stepval );
      -       _done && js_output.html( _stepval + '<br />' + ls.join() );
      -   }
      -
      -
      -
      -
      -

      formatISODate

      -
      - (
        -
      • - _date -
      • -
      • - _split -
      • -
      ) -
      - - - - static - -
      -

      格式化日期为 YYYY-mm-dd 格式 -
      require: pad_char_f

      -
      -
      -

      Parameters:

      -
        -
      • - _date - Date -
        -

        要格式化日期的日期对象

        -
        -
      • -
      • - _split - String | Undefined -
        -

        定义年月日的分隔符, 默认为 '-'

        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      string

      -
      -
      -
      -
      -

      funcName

      -
      - (
        -
      • - _func -
      • -
      ) -
      - - - - static - -
      -

      取函数名 ( 匿名函数返回空 )

      -
      -
      -

      Parameters:

      - -
      -
      -

      Returns:

      -
      -

      string

      -
      -
      -
      -
      -

      getJqParent

      -
      - (
        -
      • - _selector -
      • -
      • - _filter -
      • -
      ) -
      - - - - static - -
      -

      获取 selector 的指定父级标签

      -
      -
      -

      Parameters:

      -
        -
      • - _selector - Selector -
        -
        -
      • -
      • - _filter - Selector -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      selector

      -
      -
      -
      -
      -

      getUrlParam

      -
      - (
        -
      • - _url -
      • -
      • - _key -
      • -
      ) -
      - - - - static - -
      -

      取URL参数的值

      -
      -
      -

      Parameters:

      - -
      -
      -

      Returns:

      -
      -

      string

      -
      -
      -
      -

      Example:

      -
      -
         var defaultTag = getUrlParam(location.href, 'tag');  
      -
      -
      -
      -
      -

      getUrlParams

      -
      - (
        -
      • - _url -
      • -
      • - _key -
      • -
      ) -
      - - - - static - -
      -

      取URL参数的值, 这个方法返回数组 -
      与 getUrlParam 的区别是可以获取 checkbox 的所有值

      -
      -
      -

      Parameters:

      - -
      -
      -

      Returns:

      -
      -

      Array

      -
      -
      -
      -

      Example:

      -
      -
         var params = getUrlParams(location.href, 'tag');  
      -
      -
      -
      -
      -

      hasUrlParam

      -
      - (
        -
      • - _url -
      • -
      • - _key -
      • -
      ) -
      - - - - static - -
      -

      判断URL中是否有某个get参数

      -
      -
      -

      Parameters:

      - -
      -
      -

      Returns:

      -
      -

      bool

      -
      -
      -
      -

      Example:

      -
      -
       var bool = hasUrlParam( 'getkey' );
      -
      -
      -
      -
      -

      httpRequire

      -
      - (
        -
      • - _msg -
      • -
      ) -
      - - - - static - -
      -

      提示需要 HTTP 环境

      -
      -
      -

      Parameters:

      -
        -
      • - _msg - String -
        -

        要提示的文字, 默认 "本示例需要HTTP环境'

        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      bool 如果是HTTP环境返回true, 否则返回false

      -
      -
      -
      -
      -

      isSameDay

      -
      - (
        -
      • - _d1 -
      • -
      • - _d2 -
      • -
      ) -
      - - Bool - - static - -
      -

      判断两个日期是否为同一天

      -
      -
      -

      Parameters:

      -
        -
      • - _d1 - Date -
        -

        需要判断的日期1

        -
        -
      • -
      • - _d2 - Date -
        -

        需要判断的日期2

        -
        -
      • -
      -
      -
      -

      Returns:

      -
      - Bool: -
      -
      -
      -
      -

      isSameMonth

      -
      - (
        -
      • - _d1 -
      • -
      • - _d2 -
      • -
      ) -
      - - Bool - - static - -
      -

      判断两个日期是否为同一月份

      -
      -
      -

      Parameters:

      -
        -
      • - _d1 - Date -
        -

        需要判断的日期1

        -
        -
      • -
      • - _d2 - Date -
        -

        需要判断的日期2

        -
        -
      • -
      -
      -
      -

      Returns:

      -
      - Bool: -
      -
      -
      -
      -

      jcAutoInitComps

      -
      - (
        -
      • - _selector -
      • -
      ) -
      - static - -
      -

      动态添加内容时, 初始化可识别的组件

      -

      -
      目前会自动识别的组件,
      -
      - Bizs.CommonModify, JC.Panel, JC.Dialog -
      自动识别的组件不用显式调用 jcAutoInitComps 去识别可识别的组件 -
      -

      -

      -
      可识别的组件
      -
      - JC.AutoSelect, JC.Calendar, JC.AutoChecked, JC.AjaxUpload, JC.Placeholder -
      Bizs.DisableLogic, Bizs.FormLogic -
      -

      -
      -
      -

      Parameters:

      -
        -
      • - _selector - Selector -
        -
        -
      • -
      -
      -
      -
      -

      maxDayOfMonth

      -
      - (
        -
      • - _date -
      • -
      ) -
      - - Int - - static - -
      -

      取得一个月份中最大的一天

      -
      -
      -

      Parameters:

      -
        -
      • - _date - Date -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      - Int: -

      月份中最大的一天

      -
      -
      -
      -
      -

      mousewheelEvent

      -
      - (
        -
      • - _cb -
      • -
      • - _detach -
      • -
      ) -
      - static - -
      -

      绑定或清除 mousewheel 事件

      -
      -
      -

      Parameters:

      -
        -
      • - _cb - Function -
        -
        -
      • -
      • - _detach - Bool -
        -
        -
      • -
      -
      -
      -
      -

      padChar

      -
      - (
        -
      • - _str -
      • -
      • - _len -
      • -
      • - _char -
      • -
      ) -
      - - - - static - -
      -

      js 附加字串函数

      -
      -
      -

      Parameters:

      -
        -
      • - _str - String -
        -
        -
      • -
      • - _len - Intl -
        -
        -
      • -
      • - _char - String -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      string

      -
      -
      -
      -
      -

      parentSelector

      -
      - (
        -
      • - _item -
      • -
      • - _selector -
      • -
      • - _finder -
      • -
      ) -
      - - - - static - -
      -

      扩展 jquery 选择器 -
      扩展起始字符的 '/' 符号为 jquery 父节点选择器 -
      扩展起始字符的 '|' 符号为 jquery 子节点选择器 -
      扩展起始字符的 '(' 符号为 jquery 父节点查找识别符( getJqParent )

      -
      -
      -

      Parameters:

      -
        -
      • - _item - Selector -
        -
        -
      • -
      • - _selector - String -
        -
        -
      • -
      • - _finder - Selector -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      selector

      -
      -
      -
      -
      -

      parseBool

      -
      - (
        -
      • - _input -
      • -
      ) -
      - - - - static - -
      -

      把输入值转换为布尔值

      -
      -
      -

      Parameters:

      -
        -
      • - _input - -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      bool

      -
      -
      -
      -
      -

      parseFinance

      -
      - (
        -
      • - _i -
      • -
      • - _dot, -
      • -
      ) -
      - - - - static - -
      -

      取小数点的N位 -
      JS 解析 浮点数的时候,经常出现各种不可预知情况,这个函数就是为了解决这个问题

      -
      -
      -

      Parameters:

      -
        -
      • - _i - Number -
        -
        -
      • -
      • - _dot, - Int -
        -

        default = 2

        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      number

      -
      -
      -
      -
      -

      parseISODate

      -
      - (
        -
      • - _datestr -
      • -
      ) -
      - - - - static - -
      -

      从 ISODate 字符串解析日期对象

      -
      -
      -

      Parameters:

      -
        -
      • - _datestr - String -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      date

      -
      -
      -
      -
      -

      printf

      -
      - (
        -
      • - _str -
      • -
      ) -
      - - - - static - -
      -

      按格式输出字符串

      -
      -
      -

      Parameters:

      - -
      -
      -

      Returns:

      -
      -

      string

      -
      -
      -
      -

      Example:

      -
      -
       printf( 'asdfasdf{0}sdfasdf{1}', '000', 1111 );
      - //return asdfasdf000sdfasdf1111
      -
      -
      -
      -
      -

      pureDate

      -
      - (
        -
      • - _d -
      • -
      ) -
      - - - - -
      -

      获取不带 时分秒的 日期对象

      -
      -
      -

      Parameters:

      -
        -
      • - _d - Date -
        -

        可选参数, 如果为空 = new Date

        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      Date

      -
      -
      -
      -
      -

      reloadPage

      -
      - (
        -
      • - $url -
      • -
      • - $nornd -
      • -
      • - $delayms -
      • -
      ) -
      - static - -
      -

      重载页面 -
      require: removeUrlSharp -
      require: addUrlParams

      -
      -
      -

      Parameters:

      -
        -
      • - $url - String -
        -
        -
      • -
      • - $nornd - Bool -
        -
        -
      • -
      • - $delayms - Int -
        -
        -
      • -
      -
      -
      -
      -

      removeUrlSharp

      -
      - (
        -
      • - $url -
      • -
      • - $nornd -
      • -
      ) -
      - - - - static - -
      -

      删除 URL 的锚点 -
      require: addUrlParams

      -
      -
      -

      Parameters:

      -
        -
      • - $url - String -
        -
        -
      • -
      • - $nornd - Bool -
        -

        是否不添加随机参数

        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      string

      -
      -
      -
      -
      -

      scriptContent

      -
      - (
        -
      • - _selector -
      • -
      ) -
      - - - - static - -
      -

      获取脚本模板的内容

      -
      -
      -

      Parameters:

      -
        -
      • - _selector - Selector -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      string

      -
      -
      -
      -
      -

      scriptPath

      - () - - String - - static - -
      -

      取当前脚本标签的 src路径

      -
      -
      -

      Returns:

      -
      - String: -

      脚本所在目录的完整路径

      -
      -
      -
      -
      -

      sliceArgs

      -
      - (
        -
      • - args -
      • -
      ) -
      - - - - static - -
      -

      把函数的参数转为数组

      -
      -
      -

      Parameters:

      -
        -
      • - args - Arguments -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      Array

      -
      -
      -
      -
      -

      urlDetect

      -
      - (
        -
      • - _url -
      • -
      ) -
      - - - - static - -
      -

      URL 占位符识别功能

      -
      -
      -

      Parameters:

      -
        -
      • - _url - String -
        -

        如果 起始字符为 URL, 那么 URL 将祝为本页的URL

        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      string

      -
      -
      -
      -

      Example:

      -
      -
       urlDetect( '?test' ); //output: ?test
      - urlDetect( 'URL,a=1&b=2' ); //output: your.com?a=1&b=2
      - urlDetect( 'URL,a=1,b=2' ); //output: your.com?a=1&b=2
      - urlDetect( 'URLa=1&b=2' ); //output: your.com?a=1&b=2
      -
      -
      -
      -
      -
      -

      Properties

      -
      -

      $.support.isFixed

      - Bool - static - -
      -

      判断是否支持 CSS position: fixed

      -
      -
      -
      -

      ZINDEX_COUNT

      - Int - static - -
      -

      全局 css z-index 控制属性

      -
      -

      Default: 50001

      -
      -
      -
      -
      -
      -
      -
      -
      -
      -
      - - - - - - - - - - \ No newline at end of file diff --git a/docs_api/classes/JC.BaseMVC.Model.html b/docs_api/classes/JC.BaseMVC.Model.html deleted file mode 100644 index e58006b..0000000 --- a/docs_api/classes/JC.BaseMVC.Model.html +++ /dev/null @@ -1,1100 +0,0 @@ - - - - - JC.BaseMVC.Model - FChart - - - - - - - - - - - - - -
      -
      -
      -

      -
      -
      - API Docs for: 0.2 -
      -
      -
      - -
      -
      - Show: - - - - -
      -
      -
      -
      -

      JC.BaseMVC.Model Class

      - -
      -

      MVC Model 类( 仅供扩展用 ) -
      这个类默认已经包含在lib.js里面, 不需要显式引用

      -

      JC Project Site -| API docs -| demo link

      -

      see also: JC.BaseMVC

      -
      -
      -

      Constructor

      -
      -

      JC.BaseMVC.Model

      -
      - (
        -
      • - _selector -
      • -
      ) -
      - -
      -
      -
      -

      Parameters:

      -
        -
      • - _selector - Selector | String -
        -
        -
      • -
      -
      -
      -
      -
      - -
      -
      -

      Item Index

      -
      -

      Methods

      - -
      -
      -

      Properties

      - -
      -
      -
      -

      Methods

      -
      -

      attrProp

      -
      - (
        -
      • - _selector -
      • -
      • - _key -
      • -
      ) -
      - - - - -
      -

      读取 html 属性值 -
      这个跟 stringProp 的区别是不会强制转换为小写

      -
      -
      -

      Parameters:

      -
        -
      • - _selector - Selector | String -
        -

        如果 _key 为空将视 _selector 为 _key, _selector 为 this.selector()

        -
        -
      • -
      • - _key - String -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      string

      -
      -
      -
      -
      -

      boolProp

      -
      - (
        -
      • - _selector -
      • -
      • - _key -
      • -
      • - _defalut -
      • -
      ) -
      - - Bool | Undefined - - -
      -

      读取 boolean 属性的值

      -
      -
      -

      Parameters:

      -
        -
      • - _selector - Selector | String -
        -

        如果 _key 为空将视 _selector 为 _key, _selector 为 this.selector()

        -
        -
      • -
      • - _key - String | Bool -
        -
        -
      • -
      • - _defalut - Bool -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      - Bool | Undefined: -
      -
      -
      -
      -

      callbackProp

      -
      - (
        -
      • - _selector -
      • -
      • - _key -
      • -
      ) -
      - - Function | Undefined - - -
      -

      读取 callback 属性的值

      -
      -
      -

      Parameters:

      -
        -
      • - _selector - Selector | String -
        -

        如果 _key 为空将视 _selector 为 _key, _selector 为 this.selector()

        -
        -
      • -
      • - _key - String -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      - Function | Undefined: -
      -
      -
      -
      -

      floatProp

      -
      - (
        -
      • - _selector -
      • -
      • - _key -
      • -
      ) -
      - - - - -
      -

      读取 float 属性的值

      -
      -
      -

      Parameters:

      -
        -
      • - _selector - Selector | String -
        -

        如果 _key 为空将视 _selector 为 _key, _selector 为 this.selector()

        -
        -
      • -
      • - _key - String -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      float

      -
      -
      -
      -
      -

      intProp

      -
      - (
        -
      • - _selector -
      • -
      • - _key -
      • -
      ) -
      - - - - -
      -

      读取 int 属性的值

      -
      -
      -

      Parameters:

      -
        -
      • - _selector - Selector | String -
        -

        如果 _key 为空将视 _selector 为 _key, _selector 为 this.selector()

        -
        -
      • -
      • - _key - String -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      int

      -
      -
      -
      -
      -

      is

      -
      - (
        -
      • - _selector -
      • -
      • - _key -
      • -
      ) -
      - - - - -
      -

      判断 _selector 是否具体某种特征

      -
      -
      -

      Parameters:

      -
        -
      • - _selector - Selector | String -
        -

        如果 _key 为空将视 _selector 为 _key, _selector 为 this.selector()

        -
        -
      • -
      • - _key - String -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      bool

      -
      -
      -
      -
      -

      jsonProp

      -
      - (
        -
      • - _selector -
      • -
      • - _key -
      • -
      ) -
      - - Json | null - - -
      -

      获取 selector 属性的 json 数据

      -
      -
      -

      Parameters:

      -
        -
      • - _selector - Selector | String -
        -

        如果 _key 为空将视 _selector 为 _key, _selector 为 this.selector()

        -
        -
      • -
      • - _key - String -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      - Json | null: -
      -
      -
      -
      -

      notification

      -
      - (
        -
      • - _evtName -
      • -
      • - _args -
      • -
      ) -
      - -
      -

      通知选择器有新事件

      -
      -
      -

      Parameters:

      -
        -
      • - _evtName - String -
        -
        -
      • -
      • - _args - | Array -
        -
        -
      • -
      -
      -
      -
      -

      notificationHandler

      -
      - (
        -
      • - _evtName -
      • -
      • - _args -
      • -
      ) -
      - - - - -
      -

      通知选择器有新事件

      -
      -
      -

      Parameters:

      -
        -
      • - _evtName - String -
        -
        -
      • -
      • - _args - | Array -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      - : -
      -
      -
      -
      -

      on

      -
      - (
        -
      • - _evtName -
      • -
      • - _cb -
      • -
      ) -
      - -
      -

      使用 jquery on 为 controler 绑定事件

      -
      -
      -

      Parameters:

      - -
      -
      -
      -

      scriptDataProp

      -
      - (
        -
      • - _selector -
      • -
      • - _key -
      • -
      ) -
      - - - - -
      -

      获取 脚本数据 jquery 选择器

      -
      -
      -

      Parameters:

      -
        -
      • - _selector - Selector | String -
        -

        如果 _key 为空将视 _selector 为 _key, _selector 为 this.selector()

        -
        -
      • -
      • - _key - String -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      object

      -
      -
      -
      -
      -

      scriptTplProp

      -
      - (
        -
      • - _selector -
      • -
      • - _key -
      • -
      ) -
      - - - - -
      -

      获取 脚本模板 jquery 选择器

      -
      -
      -

      Parameters:

      -
        -
      • - _selector - Selector | String -
        -

        如果 _key 为空将视 _selector 为 _key, _selector 为 this.selector()

        -
        -
      • -
      • - _key - String -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      string

      -
      -
      -
      -
      -

      selector

      -
      - (
        -
      • - _setter -
      • -
      ) -
      - - - - -
      -

      初始化的 jq 选择器

      -
      -
      -

      Parameters:

      -
        -
      • - _setter - Selector -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      selector

      -
      -
      -
      -
      -

      selectorProp

      -
      - (
        -
      • - _selector -
      • -
      • - _key -
      • -
      ) -
      - - - - -
      -

      获取 selector 属性的 jquery 选择器

      -
      -
      -

      Parameters:

      -
        -
      • - _selector - Selector | String -
        -

        如果 _key 为空将视 _selector 为 _key, _selector 为 this.selector()

        -
        -
      • -
      • - _key - String -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      bool

      -
      -
      -
      -
      -

      stringProp

      -
      - (
        -
      • - _selector -
      • -
      • - _key -
      • -
      ) -
      - - - - -
      -

      读取 string 属性的值

      -
      -
      -

      Parameters:

      -
        -
      • - _selector - Selector | String -
        -

        如果 _key 为空将视 _selector 为 _key, _selector 为 this.selector()

        -
        -
      • -
      • - _key - String -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      string

      -
      -
      -
      -
      -

      trigger

      -
      - (
        -
      • - _evtName -
      • -
      • - _args -
      • -
      ) -
      - - - - -
      -

      使用 jquery trigger 触发 controler 绑定事件( 有换回数据 )

      -
      -
      -

      Parameters:

      -
        -
      • - _evtName - String -
        -
        -
      • -
      • - _args - | Array -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      - : -
      -
      -
      -
      -

      trigger

      -
      - (
        -
      • - _evtName -
      • -
      • - _args -
      • -
      ) -
      - -
      -

      使用 jquery trigger 触发 controler 绑定事件

      -
      -
      -

      Parameters:

      -
        -
      • - _evtName - String -
        -
        -
      • -
      • - _args - | Array -
        -
        -
      • -
      -
      -
      -
      -

      windowProp

      -
      - (
        -
      • - _selector -
      • -
      • - _key -
      • -
      ) -
      - - Window variable - - -
      -

      获取与属性名匹配的 window 变量

      -
      -
      -

      Parameters:

      -
        -
      • - _selector - Selector | String -
        -

        如果 _key 为空将视 _selector 为 _key, _selector 为 this.selector()

        -
        -
      • -
      • - _key - String -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      - Window variable: -
      -
      -
      -
      -
      -

      Properties

      -
      -

      _instanceName

      - String - private - static - -
      -

      设置 selector 实例引用的 data 属性名

      -
      -

      Default: BaseMVCIns

      -
      -
      -
      -
      -
      -
      -
      -
      -
      -
      - - - - - - - - - - \ No newline at end of file diff --git a/docs_api/classes/JC.BaseMVC.html b/docs_api/classes/JC.BaseMVC.html deleted file mode 100644 index fbeaf1d..0000000 --- a/docs_api/classes/JC.BaseMVC.html +++ /dev/null @@ -1,765 +0,0 @@ - - - - - JC.BaseMVC - FChart - - - - - - - - - - - - - -
      -
      -
      -

      -
      -
      - API Docs for: 0.2 -
      -
      -
      - -
      -
      - Show: - - - - -
      -
      -
      -
      -

      JC.BaseMVC Class

      - -
      -

      MVC 抽象类 ( 仅供扩展用, 这个类不能实例化)

      -

      require: - JC.common -

      -

      JC Project Site -| API docs -| demo link

      -
      -
      -

      Constructor

      -
      -

      JC.BaseMVC

      -
      - (
        -
      • - _selector -
      • -
      ) -
      - -
      -
      -
      -

      Parameters:

      -
        -
      • - _selector - Selector | String -
        -
        -
      • -
      -
      -
      -
      -
      - -
      -
      -

      Item Index

      -
      -

      Methods

      - -
      -
      -

      Properties

      - -
      -
      -
      -

      Methods

      -
      -

      _beforeInit

      - () - private - -
      -

      初始化之前调用的方法

      -
      -
      -
      -

      _init

      -
      - (
        -
      • - _selector -
      • -
      ) -
      - private - -
      -

      内部初始化方法

      -
      -
      -

      Parameters:

      -
        -
      • - _selector - Selector -
        -
        -
      • -
      -
      -
      -
      -

      _inited

      - () - private - -
      -

      内部初始化完毕时, 调用的方法

      -
      -
      -
      -

      _initHanlderEvent

      - () - private - -
      -

      内部事件初始化方法

      -
      -
      -
      -

      build

      -
      - (
        -
      • - _outClass -
      • -
      ) -
      - static - -
      -

      复制 BaseMVC 的所有方法到 _outClass

      -
      -
      -

      Parameters:

      -
        -
      • - _outClass - Class -
        -
        -
      • -
      -
      -
      -
      -

      buildClass

      -
      - (
        -
      • - _inClass -
      • -
      • - _outClass -
      • -
      ) -
      - static - -
      -

      复制 _inClass 的所有方法到 _outClass

      -
      -
      -

      Parameters:

      -
        -
      • - _inClass - Class -
        -
        -
      • -
      • - _outClass - Class -
        -
        -
      • -
      -
      -
      -
      -

      buildModel

      -
      - (
        -
      • - _outClass -
      • -
      ) -
      - static - -
      -

      为 _outClass 生成一个通用 Model 类

      -
      -
      -

      Parameters:

      -
        -
      • - _outClass - Class -
        -
        -
      • -
      -
      -
      -
      -

      buildView

      -
      - (
        -
      • - _outClass -
      • -
      ) -
      - static - -
      -

      为 _outClass 生成一个通用 View 类

      -
      -
      -

      Parameters:

      -
        -
      • - _outClass - Class -
        -
        -
      • -
      -
      -
      -
      -

      getInstance

      -
      - (
        -
      • - _selector -
      • -
      • - _staticClass -
      • -
      • - _classInstance -
      • -
      ) -
      - - ClassInstance | null - - static - -
      -

      获取或设置组件实例

      -
      -
      -

      Parameters:

      -
        -
      • - _selector - Selector -
        -
        -
      • -
      • - _staticClass - Class -
        -
        -
      • -
      • - _classInstance - ClassInstance -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      - ClassInstance | null: -
      -
      -
      -
      -

      notification

      -
      - (
        -
      • - _evtName -
      • -
      • - _args -
      • -
      ) -
      - -
      -

      通知选择器有新事件 -
      JC 组件以后不会在 HTML 属性里放回调, 改为触发 selector 的事件

      -
      -
      -

      Parameters:

      -
        -
      • - _evtName - String -
        -
        -
      • -
      • - _args - | Array -
        -
        -
      • -
      -
      -
      -
      -

      notificationHandler

      -
      - (
        -
      • - _evtName -
      • -
      • - _args -
      • -
      ) -
      - - - - -
      -

      通知选择器有新事件, 有返回结果 -
      JC 组件以后不会在 HTML 属性里放回调, 改为触发 selector 的事件

      -
      -
      -

      Parameters:

      -
        -
      • - _evtName - String -
        -
        -
      • -
      • - _args - | Array -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      - : -
      -
      -
      -
      -

      on

      -
      - (
        -
      • - _evtName -
      • -
      • - _cb -
      • -
      ) -
      - - - - -
      -

      使用 jquery on 绑定事件

      -
      -
      -

      Parameters:

      - -
      -
      -

      Returns:

      -
      -

      BaseMVCInstance

      -
      -
      -
      -
      -

      selector

      - () - - - - -
      -

      获取 显示 BaseMVC 的触发源选择器, 比如 a 标签

      -
      -
      -

      Returns:

      -
      -

      selector

      -
      -
      -
      -
      -

      trigger

      -
      - (
        -
      • - _evtName -
      • -
      • - _args -
      • -
      ) -
      - - - - -
      -

      使用 jquery trigger 触发绑定事件

      -
      -
      -

      Parameters:

      -
        -
      • - _evtName - String -
        -
        -
      • -
      • - _args - | Array -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      BaseMVCInstance

      -
      -
      -
      -
      -

      triggerHandler

      -
      - (
        -
      • - _evtName -
      • -
      • - _args -
      • -
      ) -
      - - - - -
      -

      使用 jquery triggerHandler 触发绑定事件

      -
      -
      -

      Parameters:

      -
        -
      • - _evtName - String -
        -
        -
      • -
      • - _args - | Array -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      - : -
      -
      -
      -
      -
      -

      Properties

      -
      -

      autoInit

      - Bool - static - -
      -

      是否自动初始化

      -
      -

      Default: true

      -
      -
      -
      -
      -
      -
      -
      -
      -
      -
      - - - - - - - - - - \ No newline at end of file diff --git a/docs_api/classes/JC.FChart.html b/docs_api/classes/JC.FChart.html deleted file mode 100644 index 9cfa4b0..0000000 --- a/docs_api/classes/JC.FChart.html +++ /dev/null @@ -1,787 +0,0 @@ - - - - - JC.FChart - FChart - - - - - - - - - - - - - -
      -
      -
      -

      -
      -
      - API Docs for: 0.2 -
      -
      -
      - -
      -
      - Show: - - - - -
      -
      -
      -
      -

      JC.FChart Class

      -
      -
      - Extends JC.BaseMVC -
      - -
      -
      -

      JC.FChart - flash 图表组件

      -

      require: - JC.BaseMVC - , SWFObject - , JSON2 - , jQuery.mousewheel -

      -

      JC Project Site - | API docs - | demo link

      -

      页面只要引用本脚本, 默认会处理 div class="js_compFChart"

      -

      可用的 HTML attribute

      -
      -
      chartScriptData = script tpl selector
      -
      图表的脚本模板数据
      -
      chartDataVar = json object name
      -
      图表的json数据名, window变量域
      -
      chartWidth = number, default = 100%
      -
      图表的宽度
      -
      chartHeight = number, default = 400
      -
      图表的高度
      -
      chartScroll = bool, default = true
      -
      图表是否响应鼠标滚动
      -
      -
      -
      -

      Constructor

      -
      -

      JC.FChart

      -
      - (
        -
      • - _selector -
      • -
      ) -
      - -
      -
      -
      -

      Parameters:

      -
        -
      • - _selector - Selector | String -
        -
        -
      • -
      -
      -
      -

      Example:

      -
      -
      -   <div class="js_compFChart"
      -       chartScriptData="|script"
      -       chartWidth="600"
      -       chartHeight="400"
      -       >
      -       <script type="text/template">
      -           {
      -               chart: {
      -                   type: 'bar' 
      -               }, 
      -               title: {
      -                   text:'Chart Title'
      -               },
      -               subtitle: {
      -                   text: 'sub title'
      -               }, 
      -               xAxis: {
      -                   categories: [ '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12' ]
      -               }, 
      -               yAxis: {
      -                   title: {
      -                       text: '(Vertical Title - 中文)'
      -                   }
      -               },
      -               series:[{
      -                   name: 'Temperature'
      -                   , data: [-50, 0, 3, -20, -20, 27, 28, 32, 30, 25, 15, -58]
      -                   , style: { 'stroke': '#ff7100' } 
      -                   , pointStyle: {}
      -               }, {
      -                   name: 'Rainfall',
      -                   data: [20, 21, 20, 100, 200, 210, 220, 100, 20, 10, 20, 10]
      -               }],
      -               credits: {
      -                   enabled: true
      -                   , text: 'fchart.openjavascript.org'
      -                   , href: 'http://fchart.openjavascript.org/'
      -               },
      -               displayAllLabel: true,
      -               legend: {
      -                   enabled: false
      -               }
      -           }
      -       </script>
      -   </div>
      -
      -
      -
      -
      -
      -
      - -
      -
      -

      Item Index

      -
      -

      Methods

      - -
      -
      -

      Properties

      - -
      -
      -
      -

      Methods

      -
      -

      _beforeInit

      - () - private - -
      -

      初始化之前调用的方法

      -
      -
      -
      -

      _init

      -
      - (
        -
      • - _selector -
      • -
      ) -
      - private - -
      -

      内部初始化方法

      -
      -
      -

      Parameters:

      -
        -
      • - _selector - Selector -
        -
        -
      • -
      -
      -
      -
      -

      _inited

      - () - private - -
      -

      内部初始化完毕时, 调用的方法

      -
      -
      -
      -

      _initHanlderEvent

      - () - private - -
      -

      内部事件初始化方法

      -
      -
      -
      -

      init

      -
      - (
        -
      • - _selector -
      • -
      ) -
      - - Array of FChartInstance - - static - -
      -

      初始化可识别的 FChart 实例

      -
      -
      -

      Parameters:

      -
        -
      • - _selector - Selector -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      - Array of FChartInstance: -
      -
      -
      -
      -

      notification

      -
      - (
        -
      • - _evtName -
      • -
      • - _args -
      • -
      ) -
      - -
      -

      通知选择器有新事件 -
      JC 组件以后不会在 HTML 属性里放回调, 改为触发 selector 的事件

      -
      -
      -

      Parameters:

      -
        -
      • - _evtName - String -
        -
        -
      • -
      • - _args - | Array -
        -
        -
      • -
      -
      -
      -
      -

      notificationHandler

      -
      - (
        -
      • - _evtName -
      • -
      • - _args -
      • -
      ) -
      - - - - -
      -

      通知选择器有新事件, 有返回结果 -
      JC 组件以后不会在 HTML 属性里放回调, 改为触发 selector 的事件

      -
      -
      -

      Parameters:

      -
        -
      • - _evtName - String -
        -
        -
      • -
      • - _args - | Array -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      - : -
      -
      -
      -
      -

      on

      -
      - (
        -
      • - _evtName -
      • -
      • - _cb -
      • -
      ) -
      - - - - -
      -

      使用 jquery on 绑定事件

      -
      -
      -

      Parameters:

      - -
      -
      -

      Returns:

      -
      -

      BaseMVCInstance

      -
      -
      -
      -
      -

      selector

      - () - - - - -
      -

      获取 显示 BaseMVC 的触发源选择器, 比如 a 标签

      -
      -
      -

      Returns:

      -
      -

      selector

      -
      -
      -
      -
      -

      trigger

      -
      - (
        -
      • - _evtName -
      • -
      • - _args -
      • -
      ) -
      - - - - -
      -

      使用 jquery trigger 触发绑定事件

      -
      -
      -

      Parameters:

      -
        -
      • - _evtName - String -
        -
        -
      • -
      • - _args - | Array -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      BaseMVCInstance

      -
      -
      -
      -
      -

      triggerHandler

      -
      - (
        -
      • - _evtName -
      • -
      • - _args -
      • -
      ) -
      - - - - -
      -

      使用 jquery triggerHandler 触发绑定事件

      -
      -
      -

      Parameters:

      -
        -
      • - _evtName - String -
        -
        -
      • -
      • - _args - | Array -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      - : -
      -
      -
      -
      -

      update

      -
      - (
        -
      • - object -
      • -
      ) -
      - -
      -

      更新数据

      -
      -
      -

      Parameters:

      -
        -
      • - object - Object -
        -

        _data

        -
        -
      • -
      -
      -
      -
      -
      -

      Properties

      -
      -

      Model.FLASH_PATH

      - String - static - -
      -

      flash swf 路径 -
      {0} = JC.PATH -
      {1} = chart file name

      -
      -

      Default: {0}/flash/pub/charts/{1}.swf

      -
      -
      -

      Model.SWF_FILE_MAP

      - Object - static - -
      -

      flash swf 路径映射 -
      你还可以使用其他属性进行定义路径映射

      -
       1. window.FCHART_SWF_FILE_MAP
      - 2. JC.FCHART_SWF_FILE_MAP
      -
      -

      Default: null

      -
      -

      Example:

      -
      -
         requirejs( [ 'JC.FChart' ], function( FChart ){
      -       FChart['Model'].SWF_FILE_MAP = {
      -           'bar': 'http://fchart.openjavascript.org/modules/JC.FChart/0.1/swf/Histogram.swf'
      -           , 'vbar': 'http://fchart.openjavascript.org/modules/JC.FChart/0.1/swf/VHistogram.swf'
      -           , 'line': 'http://fchart.openjavascript.org/modules/JC.FChart/0.1/swf/CurveGram.swf'
      -           , 'stack': 'http://fchart.openjavascript.org/modules/JC.FChart/0.1/swf/Stack.swf'
      -           , 'mix': 'http://fchart.openjavascript.org/modules/JC.FChart/0.1/swf/MixChart.swf'
      -           , 'column': 'http://fchart.openjavascript.org/modules/JC.FChart/0.1/swf/ZHistogram.swf'
      -           , 'hcolumn': 'http://fchart.openjavascript.org/modules/JC.FChart/0.1/swf/VZHistogram.swf'
      -       };
      -   });
      -
      -
      -
      -
      -

      Model.TYPE_MAP

      - Object - static - -
      -

      图表类型映射 -
      曲线图: line, curvegram -
      柱状图: bar, histogram -
      垂直柱状图: var, vhistogram -
      饼状图: pie, piegraph -
      圆环图: dount -
      评分球: rate

      -
      -
      -
      -

      Model.VERSION

      - String - static - -
      -

      flash swf 缓存版本控制

      -
      -

      Default: requirejs.s.contexts._.config.urlArgs || 'v=' + JC.pathPostfix || 'v=fchart'

      -
      -
      -
      -
      -
      -
      -
      -
      -
      -
      - - - - - - - - - - \ No newline at end of file diff --git a/docs_api/classes/JC.FChartCircleData.html b/docs_api/classes/JC.FChartCircleData.html deleted file mode 100644 index d4fc1e9..0000000 --- a/docs_api/classes/JC.FChartCircleData.html +++ /dev/null @@ -1,1228 +0,0 @@ - - - - - JC.FChartCircleData - FChart - - - - - - - - - - - - - -
      -
      -
      -

      -
      -
      - API Docs for: 0.2 -
      -
      -
      - -
      -
      - Show: - - - - -
      -
      -
      -
      -

      JC.FChartCircleData Class

      - -
      -

      JChart 图表数据( 曲线图、环状图、管状图 )

      -

      JChart Project Site - | API docs -

      -

      -
      -
      -
      -
      -
      -
      -

      Constructor

      -
      -

      JC.FChartCircleData

      - () - static - -
      -
      -
      -

      Example:

      -
      -

      显示 两块数据[ 曲线图、环状图、管状图 ]的图表数据

      -
      {
      -   chart: {
      -       type: 'pie' 
      -   } 
      -   , series:[{
      -       data: [
      -           ['全体覆盖率',   60],
      -           ['样本覆盖率',   20]
      -       ]
      -   }]
      -   , colors: [ 
      -       0x00ABEF
      -       , 0xFF6297
      -       , 0x09c100
      -       , 0x0c76c4                 
      -       , 0xff0619
      -       , 0xFFBF00            
      -       , 0xff7100    
      -       , 0xff06b3
      -       , 0x41e2e6            
      -       , 0xc3e2a4    
      -       , 0xffb2bc
      -       , 0xdbb8fd
      -   ]
      -}
      -
      -
      -
      -
      -
      - -
      - -
      -

      Properties

      -
      -

      chart

      - Object - -
      -

      图表背景的设置数据

      -
      -
      -
      -

      chart.bgAlpha

      - Number 0.01 ~ 1 - -
      -

      图表的背景色透明度

      -
      -

      Default: 0.13

      -
      -
      -

      chart.bgColor

      - Hex color - -
      -

      图表的背景颜色

      -
      -

      Default: 0xcccccc

      -
      -
      -

      chart.graphicHeight

      - Number - -
      -

      图表数据显示块的高度 -
      有时需要把多个数据图表显示一样的视觉高度, 但是其他图表的 水平label高度不一样, 就会导致视觉上的不同 -
      这个属性就是为了解决这个问题, 把图表数据显示块设置为统一的高度

      -
      -

      Default: 0, 0 = auto

      -
      -
      -

      chart.type

      - String - -
      -

      图表的类型 -
      see also: JC.FChart.Model.TYPE_MAP

      -
      -

      Default: empty

      -
      -
      -

      colors

      - Array of hex colors - -
      -

      数据项的显示颜色

      -
      -

      Default: : [0x03ACEF, 0x5DC979, 0x09c100, 0x0c76c4 , 0xff0619, 0xFFBF00, 0xff7100, 0xff06b3, 0x41e2e6, 0xc3e2a4, 0xffb2bc, 0xdbb8fd]

      -
      -
      -

      dataLabels

      - Object - -
      -

      数据点 label 的设置数据

      -
      -
      -
      -

      dataLabels.enabled

      - Boolean - -
      -

      每个数据点是否显示数值文本

      -
      -

      Default: false

      -
      -

      Example:

      -
      -

      enabled: false

      -
      -
      -
      -
      -

      dataLabels.format

      - String - -
      -

      格式化显示数值文本

      -
      -

      Default: '{0}'

      -
      -

      Example:

      -
      -

      format: '{0}%'

      -
      -
      -
      -
      -

      displayAllLabel

      - Boolean - -
      -

      是否显示所有横向 label -
      如果非真, 而且长度大于4, 将按横向坐标的长度切分为4个显示坐标

      -
      -

      Default: true

      -
      -
      -

      hline

      - Object - -
      -

      横向背景线的设置数据

      -
      -
      -
      -

      hline.enabled

      - Boolean - -
      -

      是否显示横向背景线

      -
      -

      Default: true

      -
      -

      Example:

      -
      -

      enabled: true

      -
      -
      -
      -
      -

      hoverBg

      - Object - -
      -

      数据项的鼠标划过的背景设置 -
      目前这个属性仅对 柱状图 生效

      -
      -
      -
      -

      hoverBg.enabled

      - Boolean - -
      -

      数据项鼠标划过是否显示背景色

      -
      -

      Default: false

      -
      -

      Example:

      -
      -

      enabled: false

      -
      -
      -
      -
      -

      hoverBg.style

      - Object - -
      -

      数据项背景色的样式定义

      -
      -

      Default: { borderColor: 0xB4B4B4, bgColor: 0xF0F0F0, borderWidth: 0 }

      -
      -
      -

      isItemPercent

      - Boolean - -
      -

      图表数值是否按 series 数据点 的总数值划分百分比

      -
      -

      Default: false

      -
      -

      Example:

      -
      -

      isItemPercent: false

      -
      -
      -
      -
      -

      isPercent

      - Boolean - -
      -

      图表数值是否按总数值=100划分百分比

      -
      -

      Default: false

      -
      -

      Example:

      -
      -

      isPercent: false

      -
      -
      -
      -
      -

      itemBg

      - Object - -
      -

      数据项的背景设置 -
      目前这个属性仅对 柱状图 生效

      -
      -
      -
      -

      itemBg.enabled

      - Boolean - -
      -

      数据项是否显示背景色

      -
      -

      Default: false

      -
      -

      Example:

      -
      -

      enabled: false

      -
      -
      -
      -
      -

      itemBg.style

      - Object - -
      -

      数据项背景色的样式定义

      -
      -

      Default: { borderColor: 0xB4B4B4, bgColor: 0xF0F0F0, borderWidth: 0 }

      -
      -
      -

      maxItem

      - Object - -
      -

      最大数据的显示设置 -
      目前这个属性仅对 柱状图 生效

      -
      -
      -
      -

      maxItem.style

      - Object - -
      -
      -

      Default: null

      -
      -

      Example:

      -
      -
       style: { color: 0x5DC979, size: 18 }
      -
      -
      -
      -
      -

      plotOptions

      - Object - -
      -

      不同 圆环图的设置数据

      -
      -
      -
      -

      plotOptions.ndount

      - Object - -
      -

      NDount 的设置数据

      -
      -
      -
      -

      plotOptions.ndount.cdataLabels

      - Object - -
      -

      NDount的圆环中的文本显示设置

      -
      -
      -
      -

      plotOptions.ndount.cdataLabels.enabled

      - Boolean - -
      -

      是否显示 NDount的圆环中的文本

      -
      -

      Default: false

      -
      -
      -

      radiusStep

      - Int - -
      -

      设置圆环的环宽 -
      仅对 NDount 生效

      -
      -

      Default: 10

      -
      -
      -

      series

      - Array of Object - -
      -

      展现的数据 -
      series 数组只有索引0数据 -
      series 索引0 里的 data 应该是个两维数组, 或者 数组里的数据为 object: { name: String, y: Number }

      -
      -

      Default: null

      -
      -

      Example:

      -
      -
      series:[{
      -   data: [
      -       ['全体覆盖率',   60],
      -       ['样本覆盖率',   20]
      -   ]
      -}]
      -
      series:[{
      -   data: [
      -       { name:'全体覆盖率',   y:60],
      -       [ name:'样本覆盖率',   y:20]
      -   ]
      -}]
      -
      -
      -
      -
      -

      toggleBg

      - Object - -
      -

      数据项的背景区分设置 -
      目前这个属性仅对 曲线图 生效

      -
      -
      -
      -

      toggleBg.enabled

      - Boolean - -
      -

      数据项是否每隔一个数据显示不同的背景色

      -
      -

      Default: false

      -
      -

      Example:

      -
      -

      enabled: false

      -
      -
      -
      -
      -

      toggleBg.style

      - Object - -
      -

      数据项背景色的样式定义( pending )

      -
      -

      Default: { borderColor: 0xEDF1F3, bgColor: 0xEDF1F3, borderWidth: 0, thickness: 1 }

      -
      -
      -

      tooltip

      - Object - -
      -

      tips 设置数据 -
      tips 的主标题默认为 xAxis.categories 对应索引的数据 -
      如果想重定义主标题, 请设置 tooltip.header 属性

      -
      -
      -
      -

      tooltip.afterSeries

      - Array of Object - -
      -

      tips 的扩展字段( 在行底显示扩展的字段 ) -
      series 每条数据里的 data 属性, 长度应该与 xAxis.categories 的长度相等

      -
      -

      Default: null

      -
      -

      Example:

      -
      -
      "afterSerial": [
      -   {
      -       "name": "区分度"
      -       , "data": [ 
      -           1.04, 1.05, 1.06, 1.07, 1.08, 1.09
      -           , 2.01, 2.02, 2.03, 2.04, 2.05, 2.06
      -           , 3.09, 3.08, 3.07, 3.06, 3.05, 3.04
      -           , 4.11
      -       ]
      -   }
      -]
      -
      -
      -
      -
      -

      tooltip.enabled

      - Boolean - -
      -

      是否显示 tips

      -
      -

      Default: true

      -
      -

      Example:

      -
      -

      enabled: true

      -
      -
      -
      -
      -

      tooltip.header

      - Array of String - -
      -

      tips 主标题的显示数据 -
      如果不显式声明 tooltip.header, 默认数据为 xAxis.categories

      -
      -

      Default: null

      -
      -

      Example:

      -
      -

      header: [ '2014/02/24', '2014/02/25', '2014/02/26', '2014/02/27', '2014/02/28', '2014/02/29', '2014/03/01' ]

      -
      -
      -
      -
      -

      tooltip.headerFormat

      - String - -
      -

      tips 主标题的显示格式

      -
      -

      Default: '{0}'

      -
      -

      Example:

      -
      -

      headerFormat: '{0} right title'

      -
      -
      -
      -
      -

      tooltip.pointFormat

      - String - -
      -

      tips 坐数值的显示格式

      -
      -

      Default: '{0}'

      -
      -

      Example:

      -
      -

      pointFormat: '{0}%'

      -
      -
      -
      -
      -

      tooltip.series

      - Array of Object - -
      -

      tips 的扩展字段( 在行首显示扩展的字段 ) -
      series 每条数据里的 data 属性, 长度应该与 xAxis.categories 的长度相等

      -
      -

      Default: null

      -
      -

      Example:

      -
      -

      "serial": [
      -   {
      -       "name": "总体"
      -       , "data": [ 
      -           1000, 2000, 3000, 4000, 5000, 6000
      -           , 1000, 2000, 3000, 4000, 5000, 6000 
      -           , 1000, 2000, 3000, 4000, 5000, 6000 
      -           , 7000
      -       ]
      -   }

      -
      -
      -
      -
      -

      vline

      - Object - -
      -

      纵向背景线的设置数据

      -
      -
      -
      -

      vline.enabled

      - Boolean - -
      -

      是否显示纵向背景线

      -
      -

      Default: true

      -
      -

      Example:

      -
      -

      enabled: true

      -
      -
      -
      -
      -

      xAxis

      - Object - -
      -

      横向坐标设置数据

      -
      -
      -
      -

      xAxis.categories

      - Array of String - -
      -

      横向坐标的显示数据 -
      这些数据默认也用于显示 tips 的主标题, 如果想重定义 tips 的主标题, 请设置 tooltip.header 属性

      -
      -

      Default: null

      -
      -

      Example:

      -
      -

      categories: [ '02/24', '02/25', '02/26', '02/27', '02/28', '02/29', '03/01' ]

      -
      -
      -
      -
      -

      xAxis.enabled

      - Boolean - -
      -

      是否显示横向坐标( pending )

      -
      -

      Default: true

      -
      -

      Example:

      -
      -

      enabled: false

      -
      -
      -
      -
      -

      xAxis.format

      - String - -
      -

      横向坐标显示数据格式化显示

      -
      -

      Default: '{0}'

      -
      -

      Example:

      -
      -

      format: '{0}%'

      -
      -
      -
      -
      -

      xAxis.wordwrap

      - Boolean - -
      -

      横向坐标显示数据是否自动换行

      -
      -

      Default: true

      -
      -

      Example:

      -
      -

      wordwrap: true

      -
      -
      -
      -
      -

      yAxis

      - Object - -
      -

      纵向坐标设置数据

      -
      -
      -
      -

      yAxis.enabled

      - Boolean - -
      -

      是否显示纵向坐标

      -
      -

      Default: true

      -
      -

      Example:

      -
      -

      enabled: true

      -
      -
      -
      -
      -

      yAxis.format

      - String - -
      -

      纵向坐标显示数据格式化显示

      -
      -

      Default: '{0}'

      -
      -

      Example:

      -
      -

      format: '{0}%'

      -
      -
      -
      -
      -

      yAxis.maxvalue

      - Number - -
      -

      自定义纵向坐标的最大值 -
      0 = auto -
      显示百分比的时候, 应该设置为 100

      -
      -

      Default: 0

      -
      -

      Example:

      -
      -

      maxvalue: 0

      -
      -
      -
      -
      -

      yAxis.rate

      - Array of Number - -
      -

      纵向坐标的切分粒度

      -
      -

      Default: auto

      -
      -

      Example:

      -
      -

      rate: [ 1, .8, .6, .4, .2, .0 ]

      -
      -
      -
      -
      -
      -
      -
      -
      -
      -
      -
      -
      - - - - - - - - - - \ No newline at end of file diff --git a/docs_api/classes/JC.FChartNormalData.html b/docs_api/classes/JC.FChartNormalData.html deleted file mode 100644 index be6c7c9..0000000 --- a/docs_api/classes/JC.FChartNormalData.html +++ /dev/null @@ -1,1168 +0,0 @@ - - - - - JC.FChartNormalData - FChart - - - - - - - - - - - - - -
      -
      -
      -

      -
      -
      - API Docs for: 0.2 -
      -
      -
      - -
      -
      - Show: - - - - -
      -
      -
      -
      -

      JC.FChartNormalData Class

      - -
      -

      JChart 图表数据( 曲线图、柱状图 )

      -

      JChart Project Site - | API docs -

      -

      -
      -
      -
      -
      -
      -
      -

      Constructor

      -
      -

      JC.FChartNormalData

      - () - static - -
      -
      -
      -

      Example:

      -
      -

      显示 两条[曲线|柱状]的图表数据

      -
      {
      -   chart: {
      -       type: 'line'
      -       , bgColor: 0xffffff
      -       , bgAlpha: 1
      -   }
      -   , xAxis: {
      -       categories: [ '02/24', '02/25', '02/26', '02/27', '02/28', '02/29', '03/01' ]
      -   }
      -   , yAxis: {
      -       format: '{0}%'
      -       , maxvalue: 100
      -   }
      -   , series:[{
      -       name: '目标PV'
      -       , data: [ 70, 49, 76, 30, 55, 26, 78 ]
      -   }, {
      -       name: '目标UV',
      -       data: [ 48, 62, 50, 50, 30, 40, 35 ]
      -   }]
      -   , tooltip: {        
      -       enabled: true
      -       , "headerFormat": "{0}"            
      -       , "pointFormat": "{0} %"
      -   }
      -   , displayAllLabel: true
      -   , legend: {
      -       enabled: false
      -   }
      -   , dataLabels: {
      -       enabled: true
      -       , format: '{0}%'
      -   }
      -   , vline: {
      -       //enabled: false
      -   }
      -   , hline: {
      -       //enabled: true
      -   }
      -   , colors: [
      -       0x03ACEF
      -       , 0x5DC979
      -       , 0x09c100
      -       , 0x0c76c4                 
      -       , 0xff0619
      -       , 0xFFBF00            
      -       , 0xff7100    
      -       , 0xff06b3
      -       , 0x41e2e6            
      -       , 0xc3e2a4    
      -       , 0xffb2bc
      -       , 0xdbb8fd
      -   ]                    
      -   , hoverBg: {
      -       enabled: true        
      -       , style: {
      -           borderColor: 0xB4B4B4
      -           , borderWidth: 2
      -           , bgColor: 0xF0F0F0
      -       }                                        
      -   }
      -}
      -
      -
      -
      -
      -
      - -
      - -
      -

      Properties

      -
      -

      chart

      - Object - -
      -

      图表背景的设置数据

      -
      -
      -
      -

      chart.bgAlpha

      - Number 0.01 ~ 1 - -
      -

      图表的背景色透明度

      -
      -

      Default: 0.13

      -
      -
      -

      chart.bgColor

      - Hex color - -
      -

      图表的背景颜色

      -
      -

      Default: 0xcccccc

      -
      -
      -

      chart.graphicHeight

      - Number - -
      -

      图表数据显示块的高度 -
      有时需要把多个数据图表显示一样的视觉高度, 但是其他图表的 水平label高度不一样, 就会导致视觉上的不同 -
      这个属性就是为了解决这个问题, 把图表数据显示块设置为统一的高度

      -
      -

      Default: 0, 0 = auto

      -
      -
      -

      chart.type

      - String - -
      -

      图表的类型 -
      see also: JC.FChart.Model.TYPE_MAP

      -
      -

      Default: empty

      -
      -
      -

      colors

      - Array of hex colors - -
      -

      数据项的显示颜色

      -
      -

      Default: : [0x03ACEF, 0x5DC979, 0x09c100, 0x0c76c4 , 0xff0619, 0xFFBF00, 0xff7100, 0xff06b3, 0x41e2e6, 0xc3e2a4, 0xffb2bc, 0xdbb8fd]

      -
      -
      -

      dataLabels

      - Object - -
      -

      数据点 label 的设置数据

      -
      -
      -
      -

      dataLabels.enabled

      - Boolean - -
      -

      每个数据点是否显示数值文本

      -
      -

      Default: false

      -
      -

      Example:

      -
      -

      enabled: false

      -
      -
      -
      -
      -

      dataLabels.format

      - String - -
      -

      格式化显示数值文本

      -
      -

      Default: '{0}'

      -
      -

      Example:

      -
      -

      format: '{0}%'

      -
      -
      -
      -
      -

      displayAllLabel

      - Boolean - -
      -

      是否显示所有横向 label -
      如果非真, 而且长度大于4, 将按横向坐标的长度切分为4个显示坐标

      -
      -

      Default: true

      -
      -
      -

      hline

      - Object - -
      -

      横向背景线的设置数据

      -
      -
      -
      -

      hline.enabled

      - Boolean - -
      -

      是否显示横向背景线

      -
      -

      Default: true

      -
      -

      Example:

      -
      -

      enabled: true

      -
      -
      -
      -
      -

      hoverBg

      - Object - -
      -

      数据项的鼠标划过的背景设置 -
      目前这个属性仅对 柱状图 生效

      -
      -
      -
      -

      hoverBg.enabled

      - Boolean - -
      -

      数据项鼠标划过是否显示背景色

      -
      -

      Default: false

      -
      -

      Example:

      -
      -

      enabled: false

      -
      -
      -
      -
      -

      hoverBg.style

      - Object - -
      -

      数据项背景色的样式定义

      -
      -

      Default: { borderColor: 0xB4B4B4, bgColor: 0xF0F0F0, borderWidth: 0 }

      -
      -
      -

      isItemPercent

      - Boolean - -
      -

      图表数值是否按 series 数据点 的总数值划分百分比

      -
      -

      Default: false

      -
      -

      Example:

      -
      -

      isItemPercent: false

      -
      -
      -
      -
      -

      isPercent

      - Boolean - -
      -

      图表数值是否按总数值=100划分百分比

      -
      -

      Default: false

      -
      -

      Example:

      -
      -

      isPercent: false

      -
      -
      -
      -
      -

      itemBg

      - Object - -
      -

      数据项的背景设置 -
      目前这个属性仅对 柱状图 生效

      -
      -
      -
      -

      itemBg.enabled

      - Boolean - -
      -

      数据项是否显示背景色

      -
      -

      Default: false

      -
      -

      Example:

      -
      -

      enabled: false

      -
      -
      -
      -
      -

      itemBg.style

      - Object - -
      -

      数据项背景色的样式定义

      -
      -

      Default: { borderColor: 0xB4B4B4, bgColor: 0xF0F0F0, borderWidth: 0 }

      -
      -
      -

      maxItem

      - Object - -
      -

      最大数据的显示设置 -
      目前这个属性仅对 柱状图 生效

      -
      -
      -
      -

      maxItem.style

      - Object - -
      -
      -

      Default: null

      -
      -

      Example:

      -
      -
       style: { color: 0x5DC979, size: 18 }
      -
      -
      -
      -
      -

      series

      - Array of Object - -
      -

      展现的数据 -
      series 每条数据里的 data 属性, 长度应该与 xAxis.categories 的长度相等 -
      显示数值如果为百分比的话, 需要设置 yAxis.maxvalue = 100

      -
      -

      Default: null

      -
      -

      Example:

      -
      -
      series:[{
      -       name: '目标PV'
      -       , data: [ 70, 49, 76, 30, 55, 26, 78 ]
      -   }, {
      -       name: '目标UV',
      -       data: [ 48, 62, 50, 50, 30, 40, 35 ]
      -   }]
      -
      -
      -
      -
      -

      toggleBg

      - Object - -
      -

      数据项的背景区分设置 -
      目前这个属性仅对 曲线图 生效

      -
      -
      -
      -

      toggleBg.enabled

      - Boolean - -
      -

      数据项是否每隔一个数据显示不同的背景色

      -
      -

      Default: false

      -
      -

      Example:

      -
      -

      enabled: false

      -
      -
      -
      -
      -

      toggleBg.style

      - Object - -
      -

      数据项背景色的样式定义( pending )

      -
      -

      Default: { borderColor: 0xEDF1F3, bgColor: 0xEDF1F3, borderWidth: 0, thickness: 1 }

      -
      -
      -

      tooltip

      - Object - -
      -

      tips 设置数据 -
      tips 的主标题默认为 xAxis.categories 对应索引的数据 -
      如果想重定义主标题, 请设置 tooltip.header 属性

      -
      -
      -
      -

      tooltip.afterSeries

      - Array of Object - -
      -

      tips 的扩展字段( 在行底显示扩展的字段 ) -
      series 每条数据里的 data 属性, 长度应该与 xAxis.categories 的长度相等

      -
      -

      Default: null

      -
      -

      Example:

      -
      -
      "afterSerial": [
      -   {
      -       "name": "区分度"
      -       , "data": [ 
      -           1.04, 1.05, 1.06, 1.07, 1.08, 1.09
      -           , 2.01, 2.02, 2.03, 2.04, 2.05, 2.06
      -           , 3.09, 3.08, 3.07, 3.06, 3.05, 3.04
      -           , 4.11
      -       ]
      -   }
      -]
      -
      -
      -
      -
      -

      tooltip.enabled

      - Boolean - -
      -

      是否显示 tips

      -
      -

      Default: true

      -
      -

      Example:

      -
      -

      enabled: true

      -
      -
      -
      -
      -

      tooltip.header

      - Array of String - -
      -

      tips 主标题的显示数据 -
      如果不显式声明 tooltip.header, 默认数据为 xAxis.categories

      -
      -

      Default: null

      -
      -

      Example:

      -
      -

      header: [ '2014/02/24', '2014/02/25', '2014/02/26', '2014/02/27', '2014/02/28', '2014/02/29', '2014/03/01' ]

      -
      -
      -
      -
      -

      tooltip.headerFormat

      - String - -
      -

      tips 主标题的显示格式

      -
      -

      Default: '{0}'

      -
      -

      Example:

      -
      -

      headerFormat: '{0} right title'

      -
      -
      -
      -
      -

      tooltip.pointFormat

      - String - -
      -

      tips 坐数值的显示格式

      -
      -

      Default: '{0}'

      -
      -

      Example:

      -
      -

      pointFormat: '{0}%'

      -
      -
      -
      -
      -

      tooltip.series

      - Array of Object - -
      -

      tips 的扩展字段( 在行首显示扩展的字段 ) -
      series 每条数据里的 data 属性, 长度应该与 xAxis.categories 的长度相等

      -
      -

      Default: null

      -
      -

      Example:

      -
      -

      "serial": [
      -   {
      -       "name": "总体"
      -       , "data": [ 
      -           1000, 2000, 3000, 4000, 5000, 6000
      -           , 1000, 2000, 3000, 4000, 5000, 6000 
      -           , 1000, 2000, 3000, 4000, 5000, 6000 
      -           , 7000
      -       ]
      -   }

      -
      -
      -
      -
      -

      vline

      - Object - -
      -

      纵向背景线的设置数据

      -
      -
      -
      -

      vline.enabled

      - Boolean - -
      -

      是否显示纵向背景线

      -
      -

      Default: true

      -
      -

      Example:

      -
      -

      enabled: true

      -
      -
      -
      -
      -

      xAxis

      - Object - -
      -

      横向坐标设置数据

      -
      -
      -
      -

      xAxis.categories

      - Array of String - -
      -

      横向坐标的显示数据 -
      这些数据默认也用于显示 tips 的主标题, 如果想重定义 tips 的主标题, 请设置 tooltip.header 属性

      -
      -

      Default: null

      -
      -

      Example:

      -
      -

      categories: [ '02/24', '02/25', '02/26', '02/27', '02/28', '02/29', '03/01' ]

      -
      -
      -
      -
      -

      xAxis.enabled

      - Boolean - -
      -

      是否显示横向坐标( pending )

      -
      -

      Default: true

      -
      -

      Example:

      -
      -

      enabled: false

      -
      -
      -
      -
      -

      xAxis.format

      - String - -
      -

      横向坐标显示数据格式化显示

      -
      -

      Default: '{0}'

      -
      -

      Example:

      -
      -

      format: '{0}%'

      -
      -
      -
      -
      -

      xAxis.wordwrap

      - Boolean - -
      -

      横向坐标显示数据是否自动换行

      -
      -

      Default: true

      -
      -

      Example:

      -
      -

      wordwrap: true

      -
      -
      -
      -
      -

      yAxis

      - Object - -
      -

      纵向坐标设置数据

      -
      -
      -
      -

      yAxis.enabled

      - Boolean - -
      -

      是否显示纵向坐标

      -
      -

      Default: true

      -
      -

      Example:

      -
      -

      enabled: true

      -
      -
      -
      -
      -

      yAxis.format

      - String - -
      -

      纵向坐标显示数据格式化显示

      -
      -

      Default: '{0}'

      -
      -

      Example:

      -
      -

      format: '{0}%'

      -
      -
      -
      -
      -

      yAxis.maxvalue

      - Number - -
      -

      自定义纵向坐标的最大值 -
      0 = auto -
      显示百分比的时候, 应该设置为 100

      -
      -

      Default: 0

      -
      -

      Example:

      -
      -

      maxvalue: 0

      -
      -
      -
      -
      -

      yAxis.rate

      - Array of Number - -
      -

      纵向坐标的切分粒度

      -
      -

      Default: auto

      -
      -

      Example:

      -
      -

      rate: [ 1, .8, .6, .4, .2, .0 ]

      -
      -
      -
      -
      -
      -
      -
      -
      -
      -
      -
      -
      - - - - - - - - - - \ No newline at end of file diff --git a/docs_api/classes/JC.common.html b/docs_api/classes/JC.common.html deleted file mode 100644 index 676fa14..0000000 --- a/docs_api/classes/JC.common.html +++ /dev/null @@ -1,5855 +0,0 @@ - - - - - JC.common - FChart - - - - - - - - - - - - - -
      -
      -
      -

      -
      -
      - API Docs for: 0.2 -
      -
      -
      - -
      -
      - Show: - - - - -
      -
      -
      -
      -

      JC.common Class

      - -
      -

      JC 组件通用静态方法和属性 ( JC.common, 别名: JC.f ) -
      所有 JC 组件都会依赖这个静态类

      -

      require: jQuery

      -

      JC Project Site -| API docs -| demo link

      -
      -
      - -
      -
      -

      Item Index

      -
      -

      Methods

      - -
      -
      -

      Properties

      - -
      -
      -
      -

      Methods

      -
      -

      addAutoInit

      -
      - (
        -
      • - _class -
      • -
      ) -
      - static - -
      -

      添加需要自动识别的组件

      -
      -
      -

      Parameters:

      -
        -
      • - _class - Class -
        -
        -
      • -
      -
      -
      -

      Example:

      -
      -
       JC.f.addAutoInit( JC.Calendar );
      -
      -
      -
      -
      -

      addUrlParams

      -
      - (
        -
      • - _url -
      • -
      • - _params -
      • -
      ) -
      - - - - static - -
      -

      添加URL参数 -
      require: delUrlParam, filterXSS

      -
      -
      -

      Parameters:

      - -
      -
      -

      Returns:

      -
      -

      string

      -
      -
      -
      -

      Example:

      -
      -
             var url = addUrlParams( location.href, {'key1': 'key1value', 'key2': 'key2value' } );
      -
      -
      -
      -
      -

      addUrlParams

      -
      - (
        -
      • - _url -
      • -
      • - _params -
      • -
      ) -
      - - - - static - -
      -

      添加URL参数 -
      require: delUrlParam, filterXSS

      -
      -
      -

      Parameters:

      - -
      -
      -

      Returns:

      -
      -

      string

      -
      -
      -
      -

      Example:

      -
      -
             var url = addUrlParams( location.href, {'key1': 'key1value', 'key2': 'key2value' } );
      -
      -
      -
      -
      -

      arrayId

      -
      - (
        -
      • - _ar -
      • -
      ) -
      - - - - static - -
      -

      一维数组去重

      -
      -
      -

      Parameters:

      -
        -
      • - _ar - Array -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      Array

      -
      -
      -
      -
      -

      arrayId

      -
      - (
        -
      • - _ar -
      • -
      ) -
      - - - - static - -
      -

      一维数组去重

      -
      -
      -

      Parameters:

      -
        -
      • - _ar - Array -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      Array

      -
      -
      -
      -
      -

      autoInit

      -
      - (
        -
      • - _selector -
      • -
      ) -
      - static - -
      -

      执行自动识别的组件

      -
      -
      -

      Parameters:

      -
        -
      • - _selector - Selector -
        -
        -
      • -
      -
      -
      -
      -

      cloneDate

      -
      - (
        -
      • - _date -
      • -
      ) -
      - - Date - - static - -
      -

      克隆日期对象

      -
      -
      -

      Parameters:

      -
        -
      • - _date - Date -
        -

        需要克隆的日期

        -
        -
      • -
      -
      -
      -

      Returns:

      -
      - Date: -
      -
      -
      -
      -

      cloneDate

      -
      - (
        -
      • - _date -
      • -
      ) -
      - - Date - - static - -
      -

      克隆日期对象

      -
      -
      -

      Parameters:

      -
        -
      • - _date - Date -
        -

        需要克隆的日期

        -
        -
      • -
      -
      -
      -

      Returns:

      -
      - Date: -
      -
      -
      -
      -

      cloneObject

      -
      - (
        -
      • - _inObj -
      • -
      ) -
      - - - - static - -
      -

      深度克隆对象

      -
      -
      -

      Parameters:

      - -
      -
      -

      Returns:

      -
      -

      Object

      -
      -
      -
      -
      -

      cloneObject

      -
      - (
        -
      • - _inObj -
      • -
      ) -
      - - - - static - -
      -

      深度克隆对象

      -
      -
      -

      Parameters:

      - -
      -
      -

      Returns:

      -
      -

      Object

      -
      -
      -
      -
      -

      dateDetect

      -
      - (
        -
      • - _dateStr -
      • -
      ) -
      - - Date | Null - - static - -
      -

      日期占位符识别功能

      -
      -
      -

      Parameters:

      -
        -
      • - _dateStr - String -
        -

        如果起始字符为 NOW, 那么将视为当前日期 - , 如果起始字符为 NOWFirst, 那么将视为当前月的1号

        -
        -
      • -
      -
      -
      -

      Returns:

      -
      - Date | Null: -
      -
      -
      -

      Example:

      -
      -
       dateDetect( 'now' ); //2014-10-02
      - dateDetect( 'now,3d' ); //2013-10-05
      - dateDetect( 'now,-3d' ); //2013-09-29
      - dateDetect( 'now,2w' ); //2013-10-16
      - dateDetect( 'now,-2m' ); //2013-08-02
      - dateDetect( 'now,4y' ); //2017-10-02
      - dateDetect( 'now,1d,1w,1m,1y' ); //2014-11-10
      -
      -
      -
      -
      -

      dateDetect

      -
      - (
        -
      • - _dateStr -
      • -
      ) -
      - - Date | Null - - static - -
      -

      日期占位符识别功能

      -
      -
      -

      Parameters:

      -
        -
      • - _dateStr - String -
        -

        如果起始字符为 NOW, 那么将视为当前日期 - , 如果起始字符为 NOWFirst, 那么将视为当前月的1号

        -
        -
      • -
      -
      -
      -

      Returns:

      -
      - Date | Null: -
      -
      -
      -

      Example:

      -
      -
       dateDetect( 'now' ); //2014-10-02
      - dateDetect( 'now,3d' ); //2013-10-05
      - dateDetect( 'now,-3d' ); //2013-09-29
      - dateDetect( 'now,2w' ); //2013-10-16
      - dateDetect( 'now,-2m' ); //2013-08-02
      - dateDetect( 'now,4y' ); //2017-10-02
      - dateDetect( 'now,1d,1w,1m,1y' ); //2014-11-10
      -
      -
      -
      -
      -

      dateFormat

      -
      - (
        -
      • - _date -
      • -
      • - _format -
      • -
      ) -
      - - - - static - -
      -

      日期格式化 (具体格式请查看 PHP Date Formats)

      -
      -
      -

      Parameters:

      -
        -
      • - _date - Date -
        -

        default = now

        -
        -
      • -
      • - _format - String -
        -

        default = "YY-MM-DD"

        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      string

      -
      -
      -
      -
      -

      dateFormat

      -
      - (
        -
      • - _date -
      • -
      • - _format -
      • -
      ) -
      - - - - static - -
      -

      日期格式化 (具体格式请查看 PHP Date Formats)

      -
      -
      -

      Parameters:

      -
        -
      • - _date - Date -
        -

        default = now

        -
        -
      • -
      • - _format - String -
        -

        default = "YY-MM-DD"

        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      string

      -
      -
      -
      -
      -

      dayOfSeason

      -
      - (
        -
      • - _date -
      • -
      ) -
      - - - - static - -
      -

      取某一天所在季度的开始结束日期,以及第几个Q

      -
      -
      -

      Parameters:

      -
        -
      • - _date - Iso date -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      Object

      -
      -
      -
      -
      -

      dayOfSeason

      -
      - (
        -
      • - _date -
      • -
      ) -
      - - - - static - -
      -

      取某一天所在季度的开始结束日期,以及第几个Q

      -
      -
      -

      Parameters:

      -
        -
      • - _date - Iso date -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      Object

      -
      -
      -
      -
      -

      dayOfWeek

      -
      - (
        -
      • - _date -
      • -
      • - _dayOffset -
      • -
      ) -
      - - - - static - -
      -

      取某一天所在星期的开始结束日期,以及第几个星期

      -
      -
      -

      Parameters:

      -
        -
      • - _date - Iso date -
        -
        -
      • -
      • - _dayOffset - Int -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      Object

      -
      -
      -
      -
      -

      dayOfWeek

      -
      - (
        -
      • - _date -
      • -
      • - _dayOffset -
      • -
      ) -
      - - - - static - -
      -

      取某一天所在星期的开始结束日期,以及第几个星期

      -
      -
      -

      Parameters:

      -
        -
      • - _date - Iso date -
        -
        -
      • -
      • - _dayOffset - Int -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      Object

      -
      -
      -
      -
      -

      delUrlParam

      -
      - (
        -
      • - _url -
      • -
      • - _key -
      • -
      ) -
      - - - - static - -
      -

      删除URL参数 -
      require: filterXSS

      -
      -
      -

      Parameters:

      - -
      -
      -

      Returns:

      -
      -

      string

      -
      -
      -
      -

      Example:

      -
      -
             var url = delUrlParam( location.href, 'tag' );
      -
      -
      -
      -
      -

      delUrlParam

      -
      - (
        -
      • - _url -
      • -
      • - _key -
      • -
      ) -
      - - - - static - -
      -

      删除URL参数 -
      require: filterXSS

      -
      -
      -

      Parameters:

      - -
      -
      -

      Returns:

      -
      -

      string

      -
      -
      -
      -

      Example:

      -
      -
             var url = delUrlParam( location.href, 'tag' );
      -
      -
      -
      -
      -

      delUrlParams

      -
      - (
        -
      • - _url -
      • -
      • - _keys -
      • -
      ) -
      - - - - static - -
      -

      批量删除URL参数 -
      require: delUrlParam

      -
      -
      -

      Parameters:

      - -
      -
      -

      Returns:

      -
      -

      string

      -
      -
      -
      -

      Example:

      -
      -
             var url = delUrlParam( location.href, [ 'k1', 'k2' ] );
      -
      -
      -
      -
      -

      delUrlParams

      -
      - (
        -
      • - _url -
      • -
      • - _keys -
      • -
      ) -
      - - - - static - -
      -

      批量删除URL参数 -
      require: delUrlParam

      -
      -
      -

      Parameters:

      - -
      -
      -

      Returns:

      -
      -

      string

      -
      -
      -
      -

      Example:

      -
      -
             var url = delUrlParam( location.href, [ 'k1', 'k2' ] );
      -
      -
      -
      -
      -

      docSize

      -
      - (
        -
      • - _doc -
      • -
      ) -
      - - - - static - -
      -

      获取 document 的 相关大小

      -
      -
      -

      Parameters:

      -
        -
      • - _doc - Document -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      Object

      -
      -
      -
      -
      -

      docSize

      -
      - (
        -
      • - _doc -
      • -
      ) -
      - - - - static - -
      -

      获取 document 的 相关大小

      -
      -
      -

      Parameters:

      -
        -
      • - _doc - Document -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      Object

      -
      -
      -
      -
      -

      easyEffect

      -
      - (
        -
      • - _cb -
      • -
      • - _maxVal -
      • -
      • - _startVal -
      • -
      • - _duration -
      • -
      • - _stepMs -
      • -
      ) -
      - - - - static - -
      -

      缓动函数, 动画效果为按时间缓动 -
      这个函数只考虑递增, 你如果需要递减的话, 在回调里用 _maxVal - _stepval

      -
      -
      -

      Parameters:

      -
        -
      • - _cb - Function -
        -

        缓动运动时的回调

        -
        -
      • -
      • - _maxVal - Number -
        -

        缓动的最大值, default = 200

        -
        -
      • -
      • - _startVal - Number -
        -

        缓动的起始值, default = 0

        -
        -
      • -
      • - _duration - Number -
        -

        缓动的总时间, 单位毫秒, default = 200

        -
        -
      • -
      • - _stepMs - Number -
        -

        缓动的间隔, 单位毫秒, default = 2

        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      interval

      -
      -
      -
      -

      Example:

      -
      -
             $(document).ready(function(){
      -           window.js_output = $('span.js_output');
      -           window.ls = [];
      -           window.EFF_INTERVAL = easyEffect( effectcallback, 100);
      -       });
      -       function effectcallback( _stepval, _done ){
      -           js_output.html( _stepval );
      -           ls.push( _stepval );
      -           !_done && js_output.html( _stepval );
      -           _done && js_output.html( _stepval + '<br />' + ls.join() );
      -       }
      -
      -
      -
      -
      -

      easyEffect

      -
      - (
        -
      • - _cb -
      • -
      • - _maxVal -
      • -
      • - _startVal -
      • -
      • - _duration -
      • -
      • - _stepMs -
      • -
      ) -
      - - - - static - -
      -

      缓动函数, 动画效果为按时间缓动 -
      这个函数只考虑递增, 你如果需要递减的话, 在回调里用 _maxVal - _stepval

      -
      -
      -

      Parameters:

      -
        -
      • - _cb - Function -
        -

        缓动运动时的回调

        -
        -
      • -
      • - _maxVal - Number -
        -

        缓动的最大值, default = 200

        -
        -
      • -
      • - _startVal - Number -
        -

        缓动的起始值, default = 0

        -
        -
      • -
      • - _duration - Number -
        -

        缓动的总时间, 单位毫秒, default = 200

        -
        -
      • -
      • - _stepMs - Number -
        -

        缓动的间隔, 单位毫秒, default = 2

        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      interval

      -
      -
      -
      -

      Example:

      -
      -
             $(document).ready(function(){
      -           window.js_output = $('span.js_output');
      -           window.ls = [];
      -           window.EFF_INTERVAL = easyEffect( effectcallback, 100);
      -       });
      -       function effectcallback( _stepval, _done ){
      -           js_output.html( _stepval );
      -           ls.push( _stepval );
      -           !_done && js_output.html( _stepval );
      -           _done && js_output.html( _stepval + '<br />' + ls.join() );
      -       }
      -
      -
      -
      -
      -

      encoder

      -
      - (
        -
      • - _selector -
      • -
      ) -
      - - Encode function - - static - -
      -

      URL 请求时, 获取对URL参数进行编码的函数

      -
      -
      -

      Parameters:

      -
        -
      • - _selector - Selector -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      - Encode function: -

      default encodeURIComponent

      -
      -
      -
      -
      -

      encoder

      -
      - (
        -
      • - _selector -
      • -
      ) -
      - - Encode function - - static - -
      -

      URL 请求时, 获取对URL参数进行编码的函数

      -
      -
      -

      Parameters:

      -
        -
      • - _selector - Selector -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      - Encode function: -

      default encodeURIComponent

      -
      -
      -
      -
      -

      extendObject

      -
      - (
        -
      • - _source -
      • -
      • - _new -
      • -
      • - _overwrite -
      • -
      ) -
      - - - - static - -
      -

      扩展对象属性

      -
      -
      -

      Parameters:

      -
        -
      • - _source - Object -
        -
        -
      • -
      • - _new - Object -
        -
        -
      • -
      • - _overwrite - Bool -
        -

        是否覆盖已有属性, default = true

        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      object

      -
      -
      -
      -
      -

      extendObject

      -
      - (
        -
      • - _source -
      • -
      • - _new -
      • -
      • - _overwrite -
      • -
      ) -
      - - - - static - -
      -

      扩展对象属性

      -
      -
      -

      Parameters:

      -
        -
      • - _source - Object -
        -
        -
      • -
      • - _new - Object -
        -
        -
      • -
      • - _overwrite - Bool -
        -

        是否覆盖已有属性, default = true

        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      object

      -
      -
      -
      -
      -

      filterXSS

      -
      - (
        -
      • - _s -
      • -
      ) -
      - - - - static - -
      -

      xss 过滤函数

      -
      -
      -

      Parameters:

      - -
      -
      -

      Returns:

      -
      -

      string

      -
      -
      -
      -
      -

      filterXSS

      -
      - (
        -
      • - _s -
      • -
      ) -
      - - - - static - -
      -

      xss 过滤函数

      -
      -
      -

      Parameters:

      - -
      -
      -

      Returns:

      -
      -

      string

      -
      -
      -
      -
      -

      formatISODate

      -
      - (
        -
      • - _date -
      • -
      • - _split -
      • -
      ) -
      - - - - static - -
      -

      格式化日期为 YYYY-mm-dd 格式 -
      require: pad_char_f

      -
      -
      -

      Parameters:

      -
        -
      • - _date - Date -
        -

        要格式化日期的日期对象

        -
        -
      • -
      • - _split - String | Undefined -
        -

        定义年月日的分隔符, 默认为 '-'

        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      string

      -
      -
      -
      -
      -

      formatISODate

      -
      - (
        -
      • - _date -
      • -
      • - _split -
      • -
      ) -
      - - - - static - -
      -

      格式化日期为 YYYY-mm-dd 格式 -
      require: pad_char_f

      -
      -
      -

      Parameters:

      -
        -
      • - _date - Date -
        -

        要格式化日期的日期对象

        -
        -
      • -
      • - _split - String | Undefined -
        -

        定义年月日的分隔符, 默认为 '-'

        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      string

      -
      -
      -
      -
      -

      funcName

      -
      - (
        -
      • - _func -
      • -
      ) -
      - - - - static - -
      -

      取函数名 ( 匿名函数返回空 )

      -
      -
      -

      Parameters:

      - -
      -
      -

      Returns:

      -
      -

      string

      -
      -
      -
      -
      -

      funcName

      -
      - (
        -
      • - _func -
      • -
      ) -
      - - - - static - -
      -

      取函数名 ( 匿名函数返回空 )

      -
      -
      -

      Parameters:

      - -
      -
      -

      Returns:

      -
      -

      string

      -
      -
      -
      -
      -

      getJqParent

      -
      - (
        -
      • - _selector -
      • -
      • - _filter -
      • -
      ) -
      - - - - static - -
      -

      获取 selector 的指定父级标签

      -
      -
      -

      Parameters:

      -
        -
      • - _selector - Selector -
        -
        -
      • -
      • - _filter - Selector -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      selector

      -
      -
      -
      -
      -

      getJqParent

      -
      - (
        -
      • - _selector -
      • -
      • - _filter -
      • -
      ) -
      - - - - static - -
      -

      获取 selector 的指定父级标签

      -
      -
      -

      Parameters:

      -
        -
      • - _selector - Selector -
        -
        -
      • -
      • - _filter - Selector -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      selector

      -
      -
      -
      -
      -

      getUrlParam

      -
      - (
        -
      • - _url -
      • -
      • - _key -
      • -
      ) -
      - - - - static - -
      -

      取URL参数的值 -
      require: filterXSS

      -
      -
      -

      Parameters:

      - -
      -
      -

      Returns:

      -
      -

      string

      -
      -
      -
      -

      Example:

      -
      -
             var defaultTag = getUrlParam(location.href, 'tag');  
      -
      -
      -
      -
      -

      getUrlParam

      -
      - (
        -
      • - _url -
      • -
      • - _key -
      • -
      ) -
      - - - - static - -
      -

      取URL参数的值 -
      require: filterXSS

      -
      -
      -

      Parameters:

      - -
      -
      -

      Returns:

      -
      -

      string

      -
      -
      -
      -

      Example:

      -
      -
             var defaultTag = getUrlParam(location.href, 'tag');  
      -
      -
      -
      -
      -

      getUrlParams

      -
      - (
        -
      • - _url -
      • -
      • - _key -
      • -
      ) -
      - - - - static - -
      -

      取URL参数的值, 这个方法返回数组 -
      与 getUrlParam 的区别是可以获取 checkbox 的所有值 -
      require: filterXSS

      -
      -
      -

      Parameters:

      - -
      -
      -

      Returns:

      -
      -

      Array

      -
      -
      -
      -

      Example:

      -
      -
             var params = getUrlParams(location.href, 'tag');  
      -
      -
      -
      -
      -

      getUrlParams

      -
      - (
        -
      • - _url -
      • -
      • - _key -
      • -
      ) -
      - - - - static - -
      -

      取URL参数的值, 这个方法返回数组 -
      与 getUrlParam 的区别是可以获取 checkbox 的所有值 -
      require: filterXSS

      -
      -
      -

      Parameters:

      - -
      -
      -

      Returns:

      -
      -

      Array

      -
      -
      -
      -

      Example:

      -
      -
             var params = getUrlParams(location.href, 'tag');  
      -
      -
      -
      -
      -

      gid

      - () - - - - static - -
      -

      生成全局唯一ID

      -
      -
      -

      Returns:

      -
      -

      string

      -
      -
      -
      -
      -

      gid

      - () - - - - static - -
      -

      生成全局唯一ID

      -
      -
      -

      Returns:

      -
      -

      string

      -
      -
      -
      -
      -

      hasUrlParam

      -
      - (
        -
      • - _url -
      • -
      • - _key -
      • -
      ) -
      - - - - static - -
      -

      判断URL中是否有某个get参数

      -
      -
      -

      Parameters:

      - -
      -
      -

      Returns:

      -
      -

      bool

      -
      -
      -
      -

      Example:

      -
      -
       var bool = hasUrlParam( 'getkey' );
      -
      -
      -
      -
      -

      hasUrlParam

      -
      - (
        -
      • - _url -
      • -
      • - _key -
      • -
      ) -
      - - - - static - -
      -

      判断URL中是否有某个get参数

      -
      -
      -

      Parameters:

      - -
      -
      -

      Returns:

      -
      -

      bool

      -
      -
      -
      -

      Example:

      -
      -
       var bool = hasUrlParam( 'getkey' );
      -
      -
      -
      -
      -

      httpRequire

      -
      - (
        -
      • - _msg -
      • -
      ) -
      - - - - static - -
      -

      提示需要 HTTP 环境

      -
      -
      -

      Parameters:

      -
        -
      • - _msg - String -
        -

        要提示的文字, 默认 "本示例需要HTTP环境'

        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      bool 如果是HTTP环境返回true, 否则返回false

      -
      -
      -
      -
      -

      httpRequire

      -
      - (
        -
      • - _msg -
      • -
      ) -
      - - - - static - -
      -

      提示需要 HTTP 环境

      -
      -
      -

      Parameters:

      -
        -
      • - _msg - String -
        -

        要提示的文字, 默认 "本示例需要HTTP环境'

        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      bool 如果是HTTP环境返回true, 否则返回false

      -
      -
      -
      -
      -

      isSameDay

      -
      - (
        -
      • - _d1 -
      • -
      • - _d2 -
      • -
      ) -
      - - Bool - - static - -
      -

      判断两个日期是否为同一天

      -
      -
      -

      Parameters:

      -
        -
      • - _d1 - Date -
        -

        需要判断的日期1

        -
        -
      • -
      • - _d2 - Date -
        -

        需要判断的日期2

        -
        -
      • -
      -
      -
      -

      Returns:

      -
      - Bool: -
      -
      -
      -
      -

      isSameDay

      -
      - (
        -
      • - _d1 -
      • -
      • - _d2 -
      • -
      ) -
      - - Bool - - static - -
      -

      判断两个日期是否为同一天

      -
      -
      -

      Parameters:

      -
        -
      • - _d1 - Date -
        -

        需要判断的日期1

        -
        -
      • -
      • - _d2 - Date -
        -

        需要判断的日期2

        -
        -
      • -
      -
      -
      -

      Returns:

      -
      - Bool: -
      -
      -
      -
      -

      isSameMonth

      -
      - (
        -
      • - _d1 -
      • -
      • - _d2 -
      • -
      ) -
      - - Bool - - static - -
      -

      判断两个日期是否为同一月份

      -
      -
      -

      Parameters:

      -
        -
      • - _d1 - Date -
        -

        需要判断的日期1

        -
        -
      • -
      • - _d2 - Date -
        -

        需要判断的日期2

        -
        -
      • -
      -
      -
      -

      Returns:

      -
      - Bool: -
      -
      -
      -
      -

      isSameMonth

      -
      - (
        -
      • - _d1 -
      • -
      • - _d2 -
      • -
      ) -
      - - Bool - - static - -
      -

      判断两个日期是否为同一月份

      -
      -
      -

      Parameters:

      -
        -
      • - _d1 - Date -
        -

        需要判断的日期1

        -
        -
      • -
      • - _d2 - Date -
        -

        需要判断的日期2

        -
        -
      • -
      -
      -
      -

      Returns:

      -
      - Bool: -
      -
      -
      -
      -

      isSameSeason

      -
      - (
        -
      • - _d1 -
      • -
      • - _d2 -
      • -
      ) -
      - - Bool - - static - -
      -

      判断两个日期是否为同一季度

      -
      -
      -

      Parameters:

      -
        -
      • - _d1 - Date -
        -

        需要判断的日期1

        -
        -
      • -
      • - _d2 - Date -
        -

        需要判断的日期2

        -
        -
      • -
      -
      -
      -

      Returns:

      -
      - Bool: -
      -
      -
      -
      -

      isSameSeason

      -
      - (
        -
      • - _d1 -
      • -
      • - _d2 -
      • -
      ) -
      - - Bool - - static - -
      -

      判断两个日期是否为同一季度

      -
      -
      -

      Parameters:

      -
        -
      • - _d1 - Date -
        -

        需要判断的日期1

        -
        -
      • -
      • - _d2 - Date -
        -

        需要判断的日期2

        -
        -
      • -
      -
      -
      -

      Returns:

      -
      - Bool: -
      -
      -
      -
      -

      isSameWeek

      -
      - (
        -
      • - _d1 -
      • -
      • - _d2 -
      • -
      ) -
      - - Bool - - static - -
      -

      判断两个日期是否为同一季度

      -
      -
      -

      Parameters:

      -
        -
      • - _d1 - Date -
        -

        需要判断的日期1

        -
        -
      • -
      • - _d2 - Date -
        -

        需要判断的日期2

        -
        -
      • -
      -
      -
      -

      Returns:

      -
      - Bool: -
      -
      -
      -
      -

      isSameWeek

      -
      - (
        -
      • - _d1 -
      • -
      • - _d2 -
      • -
      ) -
      - - Bool - - static - -
      -

      判断两个日期是否为同一季度

      -
      -
      -

      Parameters:

      -
        -
      • - _d1 - Date -
        -

        需要判断的日期1

        -
        -
      • -
      • - _d2 - Date -
        -

        需要判断的日期2

        -
        -
      • -
      -
      -
      -

      Returns:

      -
      - Bool: -
      -
      -
      -
      -

      isSameYear

      -
      - (
        -
      • - _d1 -
      • -
      • - _d2 -
      • -
      ) -
      - - Bool - - static - -
      -

      判断两个日期是否为同一年

      -
      -
      -

      Parameters:

      -
        -
      • - _d1 - Date -
        -

        需要判断的日期1

        -
        -
      • -
      • - _d2 - Date -
        -

        需要判断的日期2

        -
        -
      • -
      -
      -
      -

      Returns:

      -
      - Bool: -
      -
      -
      -
      -

      isSameYear

      -
      - (
        -
      • - _d1 -
      • -
      • - _d2 -
      • -
      ) -
      - - Bool - - static - -
      -

      判断两个日期是否为同一年

      -
      -
      -

      Parameters:

      -
        -
      • - _d1 - Date -
        -

        需要判断的日期1

        -
        -
      • -
      • - _d2 - Date -
        -

        需要判断的日期2

        -
        -
      • -
      -
      -
      -

      Returns:

      -
      - Bool: -
      -
      -
      -
      -

      jcAutoInitComps

      -
      - (
        -
      • - _selector -
      • -
      ) -
      - static - -
      -

      动态添加内容时, 初始化可识别的组件

      -

      -
      目前会自动识别的组件
      -
      - Bizs.CommonModify, JC.Panel, JC.Dialog -
      自动识别的组件不用显式调用 jcAutoInitComps 去识别可识别的组件 -
      -

      -

      -
      可识别的组件
      -
      - JC.AutoSelect, JC.AutoChecked, JC.AjaxUpload, JC.Calendar - , JC.Drag, JC.DCalendar, JC.Placeholder, JC.TableFreeze, JC.ImageCutter, JC.Tab -
      Bizs.DisableLogic, Bizs.FormLogic, Bizs.MoneyTips, Bizs.AutoSelectComplete -
      -

      -
      -
      -

      Parameters:

      -
        -
      • - _selector - Selector -
        -
        -
      • -
      -
      -
      -
      -

      maxDayOfMonth

      -
      - (
        -
      • - _date -
      • -
      ) -
      - - Int - - static - -
      -

      取得一个月份中最大的一天

      -
      -
      -

      Parameters:

      -
        -
      • - _date - Date -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      - Int: -

      月份中最大的一天

      -
      -
      -
      -
      -

      maxDayOfMonth

      -
      - (
        -
      • - _date -
      • -
      ) -
      - - Int - - static - -
      -

      取得一个月份中最大的一天

      -
      -
      -

      Parameters:

      -
        -
      • - _date - Date -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      - Int: -

      月份中最大的一天

      -
      -
      -
      -
      -

      moneyFormat

      -
      - (
        -
      • - _number -
      • -
      • - _len -
      • -
      • - _floatLen -
      • -
      • - _splitSymbol -
      • -
      ) -
      - - - - static - -
      -

      逗号格式化金额

      -
      -
      -

      Parameters:

      -
        -
      • - _number - Int | String -
        -
        -
      • -
      • - _len - Int -
        -
        -
      • -
      • - _floatLen - Int -
        -
        -
      • -
      • - _splitSymbol - Int -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      string

      -
      -
      -
      -
      -

      moneyFormat

      -
      - (
        -
      • - _number -
      • -
      • - _len -
      • -
      • - _floatLen -
      • -
      • - _splitSymbol -
      • -
      ) -
      - - - - static - -
      -

      逗号格式化金额

      -
      -
      -

      Parameters:

      -
        -
      • - _number - Int | String -
        -
        -
      • -
      • - _len - Int -
        -
        -
      • -
      • - _floatLen - Int -
        -
        -
      • -
      • - _splitSymbol - Int -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      string

      -
      -
      -
      -
      -

      mousewheelEvent

      -
      - (
        -
      • - _cb -
      • -
      • - _detach -
      • -
      • - _selector -
      • -
      ) -
      - static - -
      -

      绑定或清除 mousewheel 事件

      -
      -
      -

      Parameters:

      -
        -
      • - _cb - Function -
        -
        -
      • -
      • - _detach - Bool -
        -
        -
      • -
      • - _selector - Selector -
        -

        default = document

        -
        -
      • -
      -
      -
      -
      -

      mousewheelEvent

      -
      - (
        -
      • - _cb -
      • -
      • - _detach -
      • -
      • - _selector -
      • -
      ) -
      - static - -
      -

      绑定或清除 mousewheel 事件

      -
      -
      -

      Parameters:

      -
        -
      • - _cb - Function -
        -
        -
      • -
      • - _detach - Bool -
        -
        -
      • -
      • - _selector - Selector -
        -

        default = document

        -
        -
      • -
      -
      -
      -
      -

      padChar

      -
      - (
        -
      • - _str -
      • -
      • - _len -
      • -
      • - _char -
      • -
      ) -
      - - - - static - -
      -

      js 附加字串函数

      -
      -
      -

      Parameters:

      -
        -
      • - _str - String -
        -
        -
      • -
      • - _len - Intl -
        -
        -
      • -
      • - _char - String -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      string

      -
      -
      -
      -
      -

      padChar

      -
      - (
        -
      • - _str -
      • -
      • - _len -
      • -
      • - _char -
      • -
      ) -
      - - - - static - -
      -

      js 附加字串函数

      -
      -
      -

      Parameters:

      -
        -
      • - _str - String -
        -
        -
      • -
      • - _len - Intl -
        -
        -
      • -
      • - _char - String -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      string

      -
      -
      -
      -
      -

      parentSelector

      -
      - (
        -
      • - _item -
      • -
      • - _selector -
      • -
      • - _finder -
      • -
      ) -
      - - - - static - -
      -

      扩展 jquery 选择器 -
      扩展起始字符的 '/' 符号为 jquery 父节点选择器 -
      扩展起始字符的 '|' 符号为 jquery 子节点选择器 -
      扩展起始字符的 '(' 符号为 jquery 父节点查找识别符( getJqParent )

      -
      -
      -

      Parameters:

      -
        -
      • - _item - Selector -
        -
        -
      • -
      • - _selector - String -
        -
        -
      • -
      • - _finder - Selector -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      selector

      -
      -
      -
      -
      -

      parentSelector

      -
      - (
        -
      • - _item -
      • -
      • - _selector -
      • -
      • - _finder -
      • -
      ) -
      - - - - static - -
      -

      扩展 jquery 选择器 -
      扩展起始字符的 '/' 符号为 jquery 父节点选择器 -
      扩展起始字符的 '|' 符号为 jquery 子节点选择器 -
      扩展起始字符的 '(' 符号为 jquery 父节点查找识别符( getJqParent )

      -
      -
      -

      Parameters:

      -
        -
      • - _item - Selector -
        -
        -
      • -
      • - _selector - String -
        -
        -
      • -
      • - _finder - Selector -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      selector

      -
      -
      -
      -
      -

      parseBool

      -
      - (
        -
      • - _input -
      • -
      ) -
      - - - - static - -
      -

      把输入值转换为布尔值

      -
      -
      -

      Parameters:

      -
        -
      • - _input - -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      bool

      -
      -
      -
      -
      -

      parseBool

      -
      - (
        -
      • - _input -
      • -
      ) -
      - - - - static - -
      -

      把输入值转换为布尔值

      -
      -
      -

      Parameters:

      -
        -
      • - _input - -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      bool

      -
      -
      -
      -
      -

      parseDate

      -
      - (
        -
      • - _date -
      • -
      • - _selector -
      • -
      • - _forceISO -
      • -
      ) -
      - - Date | Null - - static - -
      -

      从日期字符串解析日期对象 -
      兼容 JC.Calendar 日期格式

      -
      -
      -

      Parameters:

      -
        -
      • - _date - Date -
        -
        -
      • -
      • - _selector - Selector -
        -

        如果 _selector 为真, 则尝试从 _selector 的 html 属性 dateParse 对日期进行格式化

        -
        -
      • -
      • - _forceISO - Boolean -
        -

        是否强制转换为ISO日期

        -
        -
      • -
      -
      -
      -

      Returns:

      -
      - Date | Null: -
      -
      -
      -
      -

      parseDate

      -
      - (
        -
      • - _date -
      • -
      • - _selector -
      • -
      • - _forceISO -
      • -
      ) -
      - - Date | Null - - static - -
      -

      从日期字符串解析日期对象 -
      兼容 JC.Calendar 日期格式

      -
      -
      -

      Parameters:

      -
        -
      • - _date - Date -
        -
        -
      • -
      • - _selector - Selector -
        -

        如果 _selector 为真, 则尝试从 _selector 的 html 属性 dateParse 对日期进行格式化

        -
        -
      • -
      • - _forceISO - Boolean -
        -

        是否强制转换为ISO日期

        -
        -
      • -
      -
      -
      -

      Returns:

      -
      - Date | Null: -
      -
      -
      -
      -

      parseFinance

      -
      - (
        -
      • - _i -
      • -
      • - _dot -
      • -
      ) -
      - - - - static - -
      -

      取小数点的N位 -
      JS 解析 浮点数的时候,经常出现各种不可预知情况,这个函数就是为了解决这个问题

      -
      -
      -

      Parameters:

      -
        -
      • - _i - Number -
        -
        -
      • -
      • - _dot - Int -
        -

        default = 2

        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      number

      -
      -
      -
      -
      -

      parseFinance

      -
      - (
        -
      • - _i -
      • -
      • - _dot -
      • -
      ) -
      - - - - static - -
      -

      取小数点的N位 -
      JS 解析 浮点数的时候,经常出现各种不可预知情况,这个函数就是为了解决这个问题

      -
      -
      -

      Parameters:

      -
        -
      • - _i - Number -
        -
        -
      • -
      • - _dot - Int -
        -

        default = 2

        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      number

      -
      -
      -
      -
      -

      parseISODate

      -
      - (
        -
      • - _datestr -
      • -
      ) -
      - - - - static - -
      -

      从 ISODate 字符串解析日期对象

      -
      -
      -

      Parameters:

      -
        -
      • - _datestr - String -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      date

      -
      -
      -
      -
      -

      parseISODate

      -
      - (
        -
      • - _datestr -
      • -
      ) -
      - - - - static - -
      -

      从 ISODate 字符串解析日期对象

      -
      -
      -

      Parameters:

      -
        -
      • - _datestr - String -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      date

      -
      -
      -
      -
      -

      printf

      -
      - (
        -
      • - _str -
      • -
      ) -
      - - - - static - -
      -

      按格式输出字符串

      -
      -
      -

      Parameters:

      - -
      -
      -

      Returns:

      -
      -

      string

      -
      -
      -
      -

      Example:

      -
      -
       printf( 'asdfasdf{0}sdfasdf{1}', '000', 1111 );
      - //return asdfasdf000sdfasdf1111
      -
      -
      -
      -
      -

      printf

      -
      - (
        -
      • - _str -
      • -
      ) -
      - - - - static - -
      -

      按格式输出字符串

      -
      -
      -

      Parameters:

      - -
      -
      -

      Returns:

      -
      -

      string

      -
      -
      -
      -

      Example:

      -
      -
       printf( 'asdfasdf{0}sdfasdf{1}', '000', 1111 );
      - //return asdfasdf000sdfasdf1111
      -
      -
      -
      -
      -

      printKey

      -
      - (
        -
      • - _str -
      • -
      • - _keys -
      • -
      ) -
      - - - - static - -
      -

      按格式输出字符串

      -
      -
      -

      Parameters:

      - -
      -
      -

      Returns:

      -
      -

      string

      -
      -
      -
      -

      Example:

      -
      -
       JC.f.printKey( 'asdfasdf{key1}sdfasdf{key2},{0}', { 'key1': '000', 'key2': 1111, '0': 222 );
      - //return asdfasdf000sdfasdf1111,222
      -
      -
      -
      -
      -

      printKey

      -
      - (
        -
      • - _str -
      • -
      • - _keys -
      • -
      ) -
      - - - - static - -
      -

      按格式输出字符串

      -
      -
      -

      Parameters:

      - -
      -
      -

      Returns:

      -
      -

      string

      -
      -
      -
      -

      Example:

      -
      -
       JC.f.printKey( 'asdfasdf{key1}sdfasdf{key2},{0}', { 'key1': '000', 'key2': 1111, '0': 222 );
      - //return asdfasdf000sdfasdf1111,222
      -
      -
      -
      -
      -

      pureDate

      -
      - (
        -
      • - _d -
      • -
      ) -
      - - - - static - -
      -

      获取不带 时分秒的 日期对象

      -
      -
      -

      Parameters:

      -
        -
      • - _d - Date -
        -

        可选参数, 如果为空 = new Date

        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      Date

      -
      -
      -
      -
      -

      pureDate

      -
      - (
        -
      • - _d -
      • -
      ) -
      - - - - -
      -

      获取不带 时分秒的 日期对象

      -
      -
      -

      Parameters:

      -
        -
      • - _d - Date -
        -

        可选参数, 如果为空 = new Date

        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      Date

      -
      -
      -
      -
      -

      relativePath

      -
      - (
        -
      • - _path -
      • -
      • - _url -
      • -
      ) -
      - - - - static - -
      -

      把 URL 相对路径 转换为 绝对路径

      -
      -
      -

      Parameters:

      - -
      -
      -

      Returns:

      -
      -

      string

      -
      -
      -
      -
      -

      relativePath

      -
      - (
        -
      • - _path -
      • -
      • - _url -
      • -
      ) -
      - - - - static - -
      -

      把 URL 相对路径 转换为 绝对路径

      -
      -
      -

      Parameters:

      - -
      -
      -

      Returns:

      -
      -

      string

      -
      -
      -
      -
      -

      reloadPage

      -
      - (
        -
      • - _url -
      • -
      • - _nornd -
      • -
      • - _delayms -
      • -
      ) -
      - static - -
      -

      重载页面 -
      require: removeUrlSharp, addUrlParams, filterXSS

      -
      -
      -

      Parameters:

      -
        -
      • - _url - String -
        -
        -
      • -
      • - _nornd - Bool -
        -
        -
      • -
      • - _delayms - Int -
        -
        -
      • -
      -
      -
      -
      -

      reloadPage

      -
      - (
        -
      • - _url -
      • -
      • - _nornd -
      • -
      • - _delayms -
      • -
      ) -
      - static - -
      -

      重载页面 -
      require: removeUrlSharp, addUrlParams, filterXSS

      -
      -
      -

      Parameters:

      -
        -
      • - _url - String -
        -
        -
      • -
      • - _nornd - Bool -
        -
        -
      • -
      • - _delayms - Int -
        -
        -
      • -
      -
      -
      -
      -

      removeUrlSharp

      -
      - (
        -
      • - _url -
      • -
      • - _nornd -
      • -
      • - _rndName -
      • -
      ) -
      - - - - static - -
      -

      删除 URL 的锚点 -
      require: addUrlParams, filterXSS

      -
      -
      -

      Parameters:

      -
        -
      • - _url - String -
        -
        -
      • -
      • - _nornd - Bool -
        -

        是否不添加随机参数

        -
        -
      • -
      • - _rndName - String -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      string

      -
      -
      -
      -
      -

      removeUrlSharp

      -
      - (
        -
      • - _url -
      • -
      • - _nornd -
      • -
      • - _rndName -
      • -
      ) -
      - - - - static - -
      -

      删除 URL 的锚点 -
      require: addUrlParams, filterXSS

      -
      -
      -

      Parameters:

      -
        -
      • - _url - String -
        -
        -
      • -
      • - _nornd - Bool -
        -

        是否不添加随机参数

        -
        -
      • -
      • - _rndName - String -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      string

      -
      -
      -
      -
      -

      safeTimeout

      -
      - (
        -
      • - _timeout -
      • -
      • - _obj -
      • -
      • - _name -
      • -
      • - _ms -
      • -
      ) -
      - - - - static - -
      -

      timeout 控制逻辑, 避免相同功能的 setTimeout 重复执行

      -
      -
      -

      Parameters:

      -
        -
      • - _timeout - Timeout | Function -
        -
        -
      • -
      • - _obj - Object -
        -

        default = window.TIMEOUT_HOST || {}

        -
        -
      • -
      • - _name - String -
        -

        default = 'NORMAL'

        -
        -
      • -
      • - _ms - Int -
        -

        default = 50

        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      object

      -
      -
      -
      -
      -

      safeTimeout

      -
      - (
        -
      • - _timeout -
      • -
      • - _obj -
      • -
      • - _name -
      • -
      • - _ms -
      • -
      ) -
      - - - - static - -
      -

      timeout 控制逻辑, 避免相同功能的 setTimeout 重复执行

      -
      -
      -

      Parameters:

      -
        -
      • - _timeout - Timeout | Function -
        -
        -
      • -
      • - _obj - Object -
        -

        default = window.TIMEOUT_HOST || {}

        -
        -
      • -
      • - _name - String -
        -

        default = 'NORMAL'

        -
        -
      • -
      • - _ms - Int -
        -

        default = 50

        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      object

      -
      -
      -
      -
      -

      scriptContent

      -
      - (
        -
      • - _selector -
      • -
      ) -
      - - - - static - -
      -

      获取脚本模板的内容

      -
      -
      -

      Parameters:

      -
        -
      • - _selector - Selector -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      string

      -
      -
      -
      -
      -

      scriptContent

      -
      - (
        -
      • - _selector -
      • -
      ) -
      - - - - static - -
      -

      获取脚本模板的内容

      -
      -
      -

      Parameters:

      -
        -
      • - _selector - Selector -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      string

      -
      -
      -
      -
      -

      scriptPath

      - () - - String - - static - -
      -

      取当前脚本标签的 src路径

      -
      -
      -

      Returns:

      -
      - String: -

      脚本所在目录的完整路径

      -
      -
      -
      -
      -

      scriptPath

      - () - - String - - static - -
      -

      取当前脚本标签的 src路径

      -
      -
      -

      Returns:

      -
      - String: -

      脚本所在目录的完整路径

      -
      -
      -
      -
      -

      seasonOfYear

      -
      - (
        -
      • - _year -
      • -
      ) -
      - - - - static - -
      -

      取一年中所有的季度, 及其开始结束日期

      -
      -
      -

      Parameters:

      -
        -
      • - _year - Int -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      Array

      -
      -
      -
      -
      -

      seasonOfYear

      -
      - (
        -
      • - _year -
      • -
      ) -
      - - - - static - -
      -

      取一年中所有的季度, 及其开始结束日期

      -
      -
      -

      Parameters:

      -
        -
      • - _year - Int -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      Array

      -
      -
      -
      -
      -

      sliceArgs

      -
      - (
        -
      • - args -
      • -
      ) -
      - - - - static - -
      -

      把函数的参数转为数组

      -
      -
      -

      Parameters:

      -
        -
      • - args - Arguments -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      Array

      -
      -
      -
      -
      -

      sliceArgs

      -
      - (
        -
      • - args -
      • -
      ) -
      - - - - static - -
      -

      把函数的参数转为数组

      -
      -
      -

      Parameters:

      -
        -
      • - args - Arguments -
        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      Array

      -
      -
      -
      -
      -

      urlDetect

      -
      - (
        -
      • - _url -
      • -
      ) -
      - - - - static - -
      -

      URL 占位符识别功能 -
      require: addUrlParams, filterXSS

      -
      -
      -

      Parameters:

      -
        -
      • - _url - String -
        -

        如果 起始字符为 URL, 那么 URL 将祝为本页的URL

        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      string

      -
      -
      -
      -

      Example:

      -
      -
       urlDetect( '?test' ); //output: ?test
      - urlDetect( 'URL,a=1&b=2' ); //output: your.com?a=1&b=2
      - urlDetect( 'URL,a=1,b=2' ); //output: your.com?a=1&b=2
      - urlDetect( 'URLa=1&b=2' ); //output: your.com?a=1&b=2
      -
      -
      -
      -
      -

      urlDetect

      -
      - (
        -
      • - _url -
      • -
      ) -
      - - - - static - -
      -

      URL 占位符识别功能 -
      require: addUrlParams, filterXSS

      -
      -
      -

      Parameters:

      -
        -
      • - _url - String -
        -

        如果 起始字符为 URL, 那么 URL 将祝为本页的URL

        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      string

      -
      -
      -
      -

      Example:

      -
      -
       urlDetect( '?test' ); //output: ?test
      - urlDetect( 'URL,a=1&b=2' ); //output: your.com?a=1&b=2
      - urlDetect( 'URL,a=1,b=2' ); //output: your.com?a=1&b=2
      - urlDetect( 'URLa=1&b=2' ); //output: your.com?a=1&b=2
      -
      -
      -
      -
      -

      urlHostName

      -
      - (
        -
      • - _url -
      • -
      ) -
      - - - - static - -
      -

      取 URL 的 host name

      -
      -
      -

      Parameters:

      - -
      -
      -

      Returns:

      -
      -

      string

      -
      -
      -
      -
      -

      urlHostName

      -
      - (
        -
      • - _url -
      • -
      ) -
      - - - - static - -
      -

      取 URL 的 host name

      -
      -
      -

      Parameters:

      - -
      -
      -

      Returns:

      -
      -

      string

      -
      -
      -
      -
      -

      weekOfYear

      -
      - (
        -
      • - _year -
      • -
      • - _dayOffset -
      • -
      ) -
      - - - - static - -
      -

      取一年中所有的星期, 及其开始结束日期

      -
      -
      -

      Parameters:

      -
        -
      • - _year - Int -
        -
        -
      • -
      • - _dayOffset - Int -
        -

        每周的默认开始为周几, 默认0(周一)

        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      Array

      -
      -
      -
      -
      -

      weekOfYear

      -
      - (
        -
      • - _year -
      • -
      • - _dayOffset -
      • -
      ) -
      - - - - static - -
      -

      取一年中所有的星期, 及其开始结束日期

      -
      -
      -

      Parameters:

      -
        -
      • - _year - Int -
        -
        -
      • -
      • - _dayOffset - Int -
        -

        每周的默认开始为周几, 默认0(周一)

        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      Array

      -
      -
      -
      -
      -

      winSize

      -
      - (
        -
      • - _win, -
      • -
      ) -
      - - - - static - -
      -

      获取 window 的 相关大小

      -
      -
      -

      Parameters:

      -
        -
      • - _win, - Window -
        -

        default = window

        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      Object

      -
      -
      -
      -
      -

      winSize

      -
      - (
        -
      • - _win, -
      • -
      ) -
      - - - - static - -
      -

      获取 window 的 相关大小

      -
      -
      -

      Parameters:

      -
        -
      • - _win, - Window -
        -

        default = window

        -
        -
      • -
      -
      -
      -

      Returns:

      -
      -

      Object

      -
      -
      -
      -
      -
      -

      Properties

      -
      -

      _AUTO_INIT_DATA

      - Object - protected - -
      -

      保存需要自动识别的组件

      -
      -
      -
      -

      ZINDEX_COUNT

      - Int - static - -
      -

      全局 css z-index 控制属性 -
      注意: 这个变量是 window.ZINDEX_COUNT

      -
      -

      Default: 50001

      -
      -
      -

      ZINDEX_COUNT

      - Int - static - -
      -

      全局 css z-index 控制属性 -
      注意: 这个变量是 window.ZINDEX_COUNT

      -
      -

      Default: 50001

      -
      -
      -
      -
      -
      -
      -
      -
      -
      -
      - - - - - - - - - - \ No newline at end of file diff --git a/docs_api/classes/JC.f.html b/docs_api/classes/JC.f.html deleted file mode 100644 index cc34a1c..0000000 --- a/docs_api/classes/JC.f.html +++ /dev/null @@ -1,122 +0,0 @@ - - - - - JC.f - FChart - - - - - - - - - - - - - -
      -
      -
      -

      -
      -
      - API Docs for: 0.2 -
      -
      -
      - -
      -
      - Show: - - - - -
      -
      -
      -
      -

      JC.f Class

      - -
      -

      JC.f 是 JC.common 的别名 -
      具体使用请见 JC.common

      -
      -
      - -
      -
      -

      Item Index

      -
      -
      -
      -
      -
      -
      -
      -
      -
      - - - - - - - - - - \ No newline at end of file diff --git a/docs_api/classes/index.html b/docs_api/classes/index.html deleted file mode 100644 index 1d37e1b..0000000 --- a/docs_api/classes/index.html +++ /dev/null @@ -1,10 +0,0 @@ - - - - Redirector - - - - Click here to redirect - - \ No newline at end of file diff --git a/docs_api/classes/window.JSON.html b/docs_api/classes/window.JSON.html deleted file mode 100644 index 43cabcd..0000000 --- a/docs_api/classes/window.JSON.html +++ /dev/null @@ -1,125 +0,0 @@ - - - - - window.JSON - FChart - - - - - - - - - - - - - -
      -
      -
      -

      -
      -
      - API Docs for: 0.2 -
      -
      -
      - -
      -
      - Show: - - - - -
      -
      -
      -
      -

      window.JSON Class

      -
      -
      - Defined in: ../modules/JSON/2/JSON.js:1 -
      -
      -
      -

      json2.js -
      JSON is a light-weight, language independent, data interchange format.

      -

      source -| docs -

      -
      -
      - -
      -
      -

      Item Index

      -
      -
      -
      -
      -
      -
      -
      -
      -
      - - - - - - - - - - \ No newline at end of file diff --git a/docs_api/classes/window.jQuery.html b/docs_api/classes/window.jQuery.html deleted file mode 100644 index 37cc6b2..0000000 --- a/docs_api/classes/window.jQuery.html +++ /dev/null @@ -1,128 +0,0 @@ - - - - - window.jQuery - FChart - - - - - - - - - - - - - -
      -
      -
      -

      -
      -
      - API Docs for: 0.2 -
      -
      -
      - -
      -
      - Show: - - - - -
      -
      -
      -
      -

      window.jQuery Class

      -
      -
      - Defined in: ../lib.js:2062 -
      -
      -
      -

      jQuery JavaScript Library v1.9.1

      -
      http://jquery.com/
      -Includes Sizzle.js
      -http://sizzlejs.com/
      -Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors
      -Released under the MIT license
      -http://jquery.org/license
      -Date: 2013-2-4
      -
      -
      - -
      -
      -

      Item Index

      -
      -
      -
      -
      -
      -
      -
      -
      -
      - - - - - - - - - - \ No newline at end of file diff --git a/docs_api/classes/window.jQuery.mousewheel.html b/docs_api/classes/window.jQuery.mousewheel.html deleted file mode 100644 index 825e4cf..0000000 --- a/docs_api/classes/window.jQuery.mousewheel.html +++ /dev/null @@ -1,122 +0,0 @@ - - - - - window.jQuery.mousewheel - FChart - - - - - - - - - - - - - -
      -
      -
      -

      -
      -
      - API Docs for: 0.2 -
      -
      -
      - -
      -
      - Show: - - - - -
      -
      -
      -
      -

      window.jQuery.mousewheel Class

      - - -
      - -
      -
      -

      Item Index

      -
      -
      -
      -
      -
      -
      -
      -
      -
      - - - - - - - - - - \ No newline at end of file diff --git a/docs_api/classes/window.requirejs.html b/docs_api/classes/window.requirejs.html deleted file mode 100644 index 4a83c32..0000000 --- a/docs_api/classes/window.requirejs.html +++ /dev/null @@ -1,122 +0,0 @@ - - - - - window.requirejs - FChart - - - - - - - - - - - - - -
      -
      -
      -

      -
      -
      - API Docs for: 0.2 -
      -
      -
      - -
      -
      - Show: - - - - -
      -
      -
      -
      -

      window.requirejs Class

      -
      -
      - Defined in: ../lib.js:1 -
      -
      -
      -

      RequireJS 2.1.8

      -
      http://github.com/jrburke/requirejs
      -
      -
      - -
      -
      -

      Item Index

      -
      -
      -
      -
      -
      -
      -
      -
      -
      - - - - - - - - - - \ No newline at end of file diff --git a/docs_api/classes/window.swfobject.html b/docs_api/classes/window.swfobject.html deleted file mode 100644 index 62fba98..0000000 --- a/docs_api/classes/window.swfobject.html +++ /dev/null @@ -1,127 +0,0 @@ - - - - - window.swfobject - FChart - - - - - - - - - - - - - -
      -
      -
      -

      -
      -
      - API Docs for: 0.2 -
      -
      -
      - -
      -
      - Show: - - - - -
      -
      -
      -
      -

      window.swfobject Class

      - -
      -

      swfobject v2.3 -
      An open source Javascript framework for detecting the Adobe Flash Player plugin and embedding Flash (swf) files.

      -

      source -| docs -| demo link -| html generator -

      -
      -
      - -
      -
      -

      Item Index

      -
      -
      -
      -
      -
      -
      -
      -
      -
      - - - - - - - - - - \ No newline at end of file diff --git a/docs_api/data.json b/docs_api/data.json deleted file mode 100644 index 36c6636..0000000 --- a/docs_api/data.json +++ /dev/null @@ -1,6497 +0,0 @@ -{ - "project": { - "name": "FChart", - "description": "flash actionscript chart", - "version": "0.2", - "url": "http://fchart.openjavascript.org/", - "logo": "jc_logo.png" - }, - "files": { - "../modules/JC.BaseMVC/0.1/BaseMVC.js": { - "name": "../modules/JC.BaseMVC/0.1/BaseMVC.js", - "modules": {}, - "classes": { - "JC.BaseMVC": 1, - "JC.BaseMVC.Model": 1 - }, - "fors": {}, - "namespaces": { - "JC": 1 - } - }, - "../modules/JC.FChart/0.1/FChart.js": { - "name": "../modules/JC.FChart/0.1/FChart.js", - "modules": {}, - "classes": { - "JC.FChart": 1 - }, - "fors": {}, - "namespaces": { - "JC": 1 - } - }, - "../modules/JC.FChartCircleData/0.1/FChartCircleData.js": { - "name": "../modules/JC.FChartCircleData/0.1/FChartCircleData.js", - "modules": {}, - "classes": { - "JC.FChartCircleData": 1 - }, - "fors": {}, - "namespaces": { - "JC": 1 - } - }, - "../modules/JC.FChartNormalData/0.1/FChartNormalData.js": { - "name": "../modules/JC.FChartNormalData/0.1/FChartNormalData.js", - "modules": {}, - "classes": { - "JC.FChartNormalData": 1 - }, - "fors": {}, - "namespaces": { - "JC": 1 - } - }, - "../modules/JC.common/0.1/common.js": { - "name": "../modules/JC.common/0.1/common.js", - "modules": {}, - "classes": { - ".window": 1 - }, - "fors": {}, - "namespaces": {} - }, - "../modules/JC.common/0.2/common.js": { - "name": "../modules/JC.common/0.2/common.js", - "modules": {}, - "classes": {}, - "fors": {}, - "namespaces": {} - }, - "../modules/JC.common/0.3/common.js": { - "name": "../modules/JC.common/0.3/common.js", - "modules": {}, - "classes": { - "JC.f": 1, - "JC.common": 1 - }, - "fors": {}, - "namespaces": {} - }, - "../modules/JSON/2/JSON.js": { - "name": "../modules/JSON/2/JSON.js", - "modules": {}, - "classes": { - "window.JSON": 1 - }, - "fors": {}, - "namespaces": { - "window": 1 - } - }, - "../modules/jquery.mousewheel/3.1.12/jquery.mousewheel.js": { - "name": "../modules/jquery.mousewheel/3.1.12/jquery.mousewheel.js", - "modules": {}, - "classes": { - "window.jQuery.mousewheel": 1 - }, - "fors": {}, - "namespaces": { - "window.jQuery": 1 - } - }, - "../modules/swfobject/2.3/swfobject.js": { - "name": "../modules/swfobject/2.3/swfobject.js", - "modules": {}, - "classes": { - "window.swfobject": 1 - }, - "fors": {}, - "namespaces": { - "window": 1 - } - }, - "../config.js": { - "name": "../config.js", - "modules": {}, - "classes": {}, - "fors": {}, - "namespaces": {} - }, - "../lib.js": { - "name": "../lib.js", - "modules": {}, - "classes": { - "window.requirejs": 1, - "window.jQuery": 1 - }, - "fors": {}, - "namespaces": { - "window": 1 - } - }, - "../nginx_config.js": { - "name": "../nginx_config.js", - "modules": {}, - "classes": {}, - "fors": {}, - "namespaces": {} - } - }, - "modules": {}, - "classes": { - "JC.BaseMVC": { - "name": "JC.BaseMVC", - "shortname": "JC.BaseMVC", - "classitems": [], - "plugins": [], - "extensions": [], - "plugin_for": [], - "extension_for": [], - "namespace": "JC", - "file": "../modules/JC.BaseMVC/0.1/BaseMVC.js", - "line": 3, - "description": "MVC 抽象类 ( 仅供扩展用, 这个类不能实例化)\n

      require: \n JC.common\n

      \n

      JC Project Site\n| API docs\n| demo link

      ", - "is_constructor": 1, - "params": [ - { - "name": "_selector", - "description": "", - "type": "Selector|string" - } - ], - "version": "dev 0.1 2013-09-07", - "author": "qiushaowei | 75 Team" - }, - "JC.BaseMVC.Model": { - "name": "JC.BaseMVC.Model", - "shortname": "JC.BaseMVC.Model", - "classitems": [], - "plugins": [], - "extensions": [], - "plugin_for": [], - "extension_for": [], - "namespace": "JC", - "file": "../modules/JC.BaseMVC/0.1/BaseMVC.js", - "line": 249, - "description": "MVC Model 类( 仅供扩展用 )\n
      这个类默认已经包含在lib.js里面, 不需要显式引用\n

      JC Project Site\n| API docs\n| demo link

      \n

      see also: JC.BaseMVC

      ", - "is_constructor": 1, - "params": [ - { - "name": "_selector", - "description": "", - "type": "Selector|string" - } - ], - "version": "dev 0.1 2013-09-11", - "author": "qiushaowei | 75 Team" - }, - "JC.FChart": { - "name": "JC.FChart", - "shortname": "JC.FChart", - "classitems": [], - "plugins": [], - "extensions": [], - "plugin_for": [], - "extension_for": [], - "namespace": "JC", - "file": "../modules/JC.FChart/0.1/FChart.js", - "line": 7, - "description": "JC.FChart - flash 图表组件\n\n

      require:\n JC.BaseMVC\n , SWFObject\n , JSON2\n , jQuery.mousewheel\n

      \n\n

      JC Project Site\n | API docs\n | demo link

      \n \n

      页面只要引用本脚本, 默认会处理 div class=\"js_compFChart\"

      \n\n

      可用的 HTML attribute

      \n\n
      \n
      chartScriptData = script tpl selector
      \n
      图表的脚本模板数据
      \n\n
      chartDataVar = json object name
      \n
      图表的json数据名, window变量域
      \n\n
      chartWidth = number, default = 100%
      \n
      图表的宽度
      \n\n
      chartHeight = number, default = 400
      \n
      图表的高度
      \n\n
      chartScroll = bool, default = true
      \n
      图表是否响应鼠标滚动
      \n
      ", - "extends": "JC.BaseMVC", - "is_constructor": 1, - "params": [ - { - "name": "_selector", - "description": "", - "type": "Selector|string" - } - ], - "version": "dev 0.1 2014-09-09", - "author": "qiushaowei | 75 Team", - "example": [ - "\n
      \n   <div class=\"js_compFChart\"\n       chartScriptData=\"|script\"\n       chartWidth=\"600\"\n       chartHeight=\"400\"\n       >\n       <script type=\"text/template\">\n           {\n               chart: {\n                   type: 'bar' \n               }, \n               title: {\n                   text:'Chart Title'\n               },\n               subtitle: {\n                   text: 'sub title'\n               }, \n               xAxis: {\n                   categories: [ '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12' ]\n               }, \n               yAxis: {\n                   title: {\n                       text: '(Vertical Title - 中文)'\n                   }\n               },\n               series:[{\n                   name: 'Temperature'\n                   , data: [-50, 0, 3, -20, -20, 27, 28, 32, 30, 25, 15, -58]\n                   , style: { 'stroke': '#ff7100' } \n                   , pointStyle: {}\n               }, {\n                   name: 'Rainfall',\n                   data: [20, 21, 20, 100, 200, 210, 220, 100, 20, 10, 20, 10]\n               }],\n               credits: {\n                   enabled: true\n                   , text: 'fchart.openjavascript.org'\n                   , href: 'http://fchart.openjavascript.org/'\n               },\n               displayAllLabel: true,\n               legend: {\n                   enabled: false\n               }\n           }\n       </script>\n   </div>\n
      " - ] - }, - "JC.FChartCircleData": { - "name": "JC.FChartCircleData", - "shortname": "JC.FChartCircleData", - "classitems": [], - "plugins": [], - "extensions": [], - "plugin_for": [], - "extension_for": [], - "namespace": "JC", - "file": "../modules/JC.FChartCircleData/0.1/FChartCircleData.js", - "line": 2, - "description": "JChart 图表数据( 曲线图、环状图、管状图 )\n\n

      JChart Project Site\n | API docs\n

      \n

      \n
      \n
      \n
      \n
      ", - "extends": "JC.FChartNormalData", - "is_constructor": 1, - "static": 1, - "version": "dev 0.1 2014-08-28", - "author": "qiushaowei | 75 Team", - "example": [ - "\n

      显示 两块数据[ 曲线图、环状图、管状图 ]的图表数据

      \n
      {\n   chart: {\n       type: 'pie' \n   } \n\n   , series:[{\n       data: [\n           ['全体覆盖率',   60],\n           ['样本覆盖率',   20]\n       ]\n   }]\n   \n   , colors: [ \n       0x00ABEF\n       , 0xFF6297\n       \n       , 0x09c100\n       , 0x0c76c4 \t\t\t\t\n       , 0xff0619\n       \n       , 0xFFBF00\t\t\t\n       , 0xff7100\t\n       , 0xff06b3\n       \n       , 0x41e2e6\t\t\t\n       , 0xc3e2a4\t\n       , 0xffb2bc\n       \n       , 0xdbb8fd\n   ]\n}
      " - ] - }, - "JC.FChartNormalData": { - "name": "JC.FChartNormalData", - "shortname": "JC.FChartNormalData", - "classitems": [], - "plugins": [], - "extensions": [], - "plugin_for": [], - "extension_for": [], - "namespace": "JC", - "file": "../modules/JC.FChartNormalData/0.1/FChartNormalData.js", - "line": 2, - "description": "JChart 图表数据( 曲线图、柱状图 )\n\n

      JChart Project Site\n | API docs\n

      \n

      \n
      \n
      \n
      \n
      ", - "is_constructor": 1, - "static": 1, - "version": "dev 0.1 2014-08-28", - "author": "qiushaowei | 75 Team", - "example": [ - "\n

      显示 两条[曲线|柱状]的图表数据

      \n
      {\n   chart: {\n       type: 'line'\n       , bgColor: 0xffffff\n       , bgAlpha: 1\n   }\n   , xAxis: {\n       categories: [ '02/24', '02/25', '02/26', '02/27', '02/28', '02/29', '03/01' ]\n   }\n   , yAxis: {\n       format: '{0}%'\n       , maxvalue: 100\n   }\n   , series:[{\n       name: '目标PV'\n       , data: [ 70, 49, 76, 30, 55, 26, 78 ]\n   }, {\n       name: '目标UV',\n       data: [ 48, 62, 50, 50, 30, 40, 35 ]\n   }]\n   , tooltip: {\t\t\n       enabled: true\n       , \"headerFormat\": \"{0}\"\t\t\t\n       , \"pointFormat\": \"{0} %\"\n       \n   }\n   , displayAllLabel: true\n   , legend: {\n       enabled: false\n   }\n   , dataLabels: {\n       enabled: true\n       , format: '{0}%'\n   }\n   , vline: {\n       //enabled: false\n   }\n   , hline: {\n       //enabled: true\n   }\n   , colors: [\n       0x03ACEF\n       , 0x5DC979\n       , 0x09c100\n       , 0x0c76c4 \t\t\t\t\n       , 0xff0619\n       \n       , 0xFFBF00\t\t\t\n       , 0xff7100\t\n       , 0xff06b3\n       \n       , 0x41e2e6\t\t\t\n       , 0xc3e2a4\t\n       , 0xffb2bc\n       \n       , 0xdbb8fd\n   ]    \t\t\t\t\n   , hoverBg: {\n       enabled: true\t\t\n       , style: {\n           borderColor: 0xB4B4B4\n           , borderWidth: 2\n           , bgColor: 0xF0F0F0\n       }\t\t\t\t\t\t\t\t\t\t\n   }\n}
      " - ] - }, - ".window": { - "name": ".window", - "shortname": ".window", - "classitems": [], - "plugins": [], - "extensions": [], - "plugin_for": [], - "extension_for": [], - "namespace": "", - "file": "../modules/JC.common/0.1/common.js", - "line": 2, - "description": "全局函数", - "static": 1 - }, - "JC.f": { - "name": "JC.f", - "shortname": "JC.f", - "classitems": [], - "plugins": [], - "extensions": [], - "plugin_for": [], - "extension_for": [], - "namespace": "", - "file": "../modules/JC.common/0.3/common.js", - "line": 34, - "description": "JC.f 是 JC.common 的别名\n
      具体使用请见 JC.common

      ", - "static": 1 - }, - "JC.common": { - "name": "JC.common", - "shortname": "JC.common", - "classitems": [], - "plugins": [], - "extensions": [], - "plugin_for": [], - "extension_for": [], - "namespace": "", - "file": "../modules/JC.common/0.3/common.js", - "line": 40, - "description": "JC 组件通用静态方法和属性 ( JC.common, 别名: JC.f )\n
      所有 JC 组件都会依赖这个静态类\n

      require: jQuery

      \n

      JC Project Site\n| API docs\n| demo link

      ", - "static": 1, - "version": "dev 0.1 2013-07-04", - "author": "qiushaowei | 360 75 Team" - }, - "window.JSON": { - "name": "window.JSON", - "shortname": "window.JSON", - "classitems": [], - "plugins": [], - "extensions": [], - "plugin_for": [], - "extension_for": [], - "namespace": "window", - "file": "../modules/JSON/2/JSON.js", - "line": 1, - "description": "json2.js \n
      JSON is a light-weight, language independent, data interchange format.\n

      source\n| docs\n

      ", - "version": "2.0" - }, - "window.jQuery.mousewheel": { - "name": "window.jQuery.mousewheel", - "shortname": "window.jQuery.mousewheel", - "classitems": [], - "plugins": [], - "extensions": [], - "plugin_for": [], - "extension_for": [], - "namespace": "window.jQuery", - "file": "../modules/jquery.mousewheel/3.1.12/jquery.mousewheel.js", - "line": 9, - "description": "jquery.mousewheel 3.1.12\n
      https://github.com/brandonaaron/jquery-mousewheel",
      -            "global": ""
      -        },
      -        "window.swfobject": {
      -            "name": "window.swfobject",
      -            "shortname": "window.swfobject",
      -            "classitems": [],
      -            "plugins": [],
      -            "extensions": [],
      -            "plugin_for": [],
      -            "extension_for": [],
      -            "namespace": "window",
      -            "file": "../modules/swfobject/2.3/swfobject.js",
      -            "line": 1,
      -            "description": "swfobject v2.3\n
      An open source Javascript framework for detecting the Adobe Flash Player plugin and embedding Flash (swf) files.\n

      source\n| docs\n| demo link\n| html generator\n

      ", - "version": "2.3" - }, - "window.requirejs": { - "name": "window.requirejs", - "shortname": "window.requirejs", - "classitems": [], - "plugins": [], - "extensions": [], - "plugin_for": [], - "extension_for": [], - "namespace": "window", - "file": "../lib.js", - "line": 1, - "description": "RequireJS 2.1.8 \n
      http://github.com/jrburke/requirejs
      ", - "global": "" - }, - "window.jQuery": { - "name": "window.jQuery", - "shortname": "window.jQuery", - "classitems": [], - "plugins": [], - "extensions": [], - "plugin_for": [], - "extension_for": [], - "namespace": "window", - "file": "../lib.js", - "line": 2062, - "description": "jQuery JavaScript Library v1.9.1\n
      http://jquery.com/\n\nIncludes Sizzle.js\nhttp://sizzlejs.com/\n\nCopyright 2005, 2012 jQuery Foundation, Inc. and other contributors\nReleased under the MIT license\nhttp://jquery.org/license\nDate: 2013-2-4
      ", - "global": "" - } - }, - "classitems": [ - { - "file": "../modules/JC.BaseMVC/0.1/BaseMVC.js", - "line": 31, - "description": "内部初始化方法", - "itemtype": "method", - "name": "_init", - "params": [ - { - "name": "_selector", - "description": "", - "type": "Selector" - } - ], - "access": "private", - "tagname": "", - "class": "JC.BaseMVC", - "namespace": "JC" - }, - { - "file": "../modules/JC.BaseMVC/0.1/BaseMVC.js", - "line": 60, - "description": "初始化之前调用的方法", - "itemtype": "method", - "name": "_beforeInit", - "access": "private", - "tagname": "", - "class": "JC.BaseMVC", - "namespace": "JC" - }, - { - "file": "../modules/JC.BaseMVC/0.1/BaseMVC.js", - "line": 68, - "description": "内部事件初始化方法", - "itemtype": "method", - "name": "_initHanlderEvent", - "access": "private", - "tagname": "", - "class": "JC.BaseMVC", - "namespace": "JC" - }, - { - "file": "../modules/JC.BaseMVC/0.1/BaseMVC.js", - "line": 76, - "description": "内部初始化完毕时, 调用的方法", - "itemtype": "method", - "name": "_inited", - "access": "private", - "tagname": "", - "class": "JC.BaseMVC", - "namespace": "JC" - }, - { - "file": "../modules/JC.BaseMVC/0.1/BaseMVC.js", - "line": 84, - "description": "获取 显示 BaseMVC 的触发源选择器, 比如 a 标签", - "itemtype": "method", - "name": "selector", - "return": { - "description": "selector" - }, - "class": "JC.BaseMVC", - "namespace": "JC" - }, - { - "file": "../modules/JC.BaseMVC/0.1/BaseMVC.js", - "line": 90, - "description": "使用 jquery on 绑定事件", - "itemtype": "method", - "name": "on", - "type": "String", - "params": [ - { - "name": "_evtName", - "description": "", - "type": "String" - }, - { - "name": "_cb", - "description": "", - "type": "Function" - } - ], - "return": { - "description": "BaseMVCInstance" - }, - "class": "JC.BaseMVC", - "namespace": "JC" - }, - { - "file": "../modules/JC.BaseMVC/0.1/BaseMVC.js", - "line": 98, - "description": "使用 jquery trigger 触发绑定事件", - "itemtype": "method", - "name": "trigger", - "type": "String", - "params": [ - { - "name": "_evtName", - "description": "", - "type": "String" - }, - { - "name": "_args", - "description": "", - "type": "*|Array" - } - ], - "return": { - "description": "BaseMVCInstance" - }, - "class": "JC.BaseMVC", - "namespace": "JC" - }, - { - "file": "../modules/JC.BaseMVC/0.1/BaseMVC.js", - "line": 106, - "description": "使用 jquery triggerHandler 触发绑定事件", - "itemtype": "method", - "name": "triggerHandler", - "type": "String", - "params": [ - { - "name": "_evtName", - "description": "", - "type": "String" - }, - { - "name": "_args", - "description": "", - "type": "*|Array" - } - ], - "return": { - "description": "", - "type": "*" - }, - "class": "JC.BaseMVC", - "namespace": "JC" - }, - { - "file": "../modules/JC.BaseMVC/0.1/BaseMVC.js", - "line": 114, - "description": "通知选择器有新事件\n
      JC 组件以后不会在 HTML 属性里放回调, 改为触发 selector 的事件", - "itemtype": "method", - "name": "notification", - "params": [ - { - "name": "_evtName", - "description": "", - "type": "String" - }, - { - "name": "_args", - "description": "", - "type": "*|Array" - } - ], - "class": "JC.BaseMVC", - "namespace": "JC" - }, - { - "file": "../modules/JC.BaseMVC/0.1/BaseMVC.js", - "line": 125, - "description": "通知选择器有新事件, 有返回结果\n
      JC 组件以后不会在 HTML 属性里放回调, 改为触发 selector 的事件", - "itemtype": "method", - "name": "notificationHandler", - "params": [ - { - "name": "_evtName", - "description": "", - "type": "String" - }, - { - "name": "_args", - "description": "", - "type": "*|Array" - } - ], - "return": { - "description": "", - "type": "*" - }, - "class": "JC.BaseMVC", - "namespace": "JC" - }, - { - "file": "../modules/JC.BaseMVC/0.1/BaseMVC.js", - "line": 139, - "description": "获取或设置组件实例", - "itemtype": "method", - "name": "getInstance", - "params": [ - { - "name": "_selector", - "description": "", - "type": "Selector" - }, - { - "name": "_staticClass", - "description": "", - "type": "Class" - }, - { - "name": "_classInstance", - "description": "", - "type": "ClassInstance" - } - ], - "static": 1, - "return": { - "description": "", - "type": "ClassInstance | null" - }, - "class": "JC.BaseMVC", - "namespace": "JC" - }, - { - "file": "../modules/JC.BaseMVC/0.1/BaseMVC.js", - "line": 166, - "description": "是否自动初始化", - "itemtype": "property", - "name": "autoInit", - "type": "bool", - "default": "true", - "static": 1, - "class": "JC.BaseMVC", - "namespace": "JC" - }, - { - "file": "../modules/JC.BaseMVC/0.1/BaseMVC.js", - "line": 174, - "description": "复制 BaseMVC 的所有方法到 _outClass", - "itemtype": "method", - "name": "build", - "params": [ - { - "name": "_outClass", - "description": "", - "type": "Class" - } - ], - "static": 1, - "class": "JC.BaseMVC", - "namespace": "JC" - }, - { - "file": "../modules/JC.BaseMVC/0.1/BaseMVC.js", - "line": 192, - "description": "复制 _inClass 的所有方法到 _outClass", - "itemtype": "method", - "name": "buildClass", - "params": [ - { - "name": "_inClass", - "description": "", - "type": "Class" - }, - { - "name": "_outClass", - "description": "", - "type": "Class" - } - ], - "static": 1, - "class": "JC.BaseMVC", - "namespace": "JC" - }, - { - "file": "../modules/JC.BaseMVC/0.1/BaseMVC.js", - "line": 221, - "description": "为 _outClass 生成一个通用 Model 类", - "itemtype": "method", - "name": "buildModel", - "params": [ - { - "name": "_outClass", - "description": "", - "type": "Class" - } - ], - "static": 1, - "class": "JC.BaseMVC", - "namespace": "JC" - }, - { - "file": "../modules/JC.BaseMVC/0.1/BaseMVC.js", - "line": 234, - "description": "为 _outClass 生成一个通用 View 类", - "itemtype": "method", - "name": "buildView", - "params": [ - { - "name": "_outClass", - "description": "", - "type": "Class" - } - ], - "static": 1, - "class": "JC.BaseMVC", - "namespace": "JC" - }, - { - "file": "../modules/JC.BaseMVC/0.1/BaseMVC.js", - "line": 244, - "description": "初始化 BaseMVC Model 类 和 View 类", - "class": "JC.BaseMVC", - "namespace": "JC" - }, - { - "file": "../modules/JC.BaseMVC/0.1/BaseMVC.js", - "line": 264, - "description": "设置 selector 实例引用的 data 属性名", - "itemtype": "property", - "name": "_instanceName", - "type": "string", - "default": "BaseMVCIns", - "access": "private", - "tagname": "", - "static": 1, - "class": "JC.BaseMVC.Model", - "namespace": "JC" - }, - { - "file": "../modules/JC.BaseMVC/0.1/BaseMVC.js", - "line": 278, - "description": "使用 jquery on 为 controler 绑定事件", - "itemtype": "method", - "name": "on", - "type": "String", - "params": [ - { - "name": "_evtName", - "description": "", - "type": "String" - }, - { - "name": "_cb", - "description": "", - "type": "Function" - } - ], - "class": "JC.BaseMVC.Model", - "namespace": "JC" - }, - { - "file": "../modules/JC.BaseMVC/0.1/BaseMVC.js", - "line": 289, - "description": "使用 jquery trigger 触发 controler 绑定事件", - "itemtype": "method", - "name": "trigger", - "type": "String", - "params": [ - { - "name": "_evtName", - "description": "", - "type": "String" - }, - { - "name": "_args", - "description": "", - "type": "*|Array" - } - ], - "class": "JC.BaseMVC.Model", - "namespace": "JC" - }, - { - "file": "../modules/JC.BaseMVC/0.1/BaseMVC.js", - "line": 303, - "description": "使用 jquery trigger 触发 controler 绑定事件( 有换回数据 )", - "itemtype": "method", - "name": "trigger", - "type": "String", - "params": [ - { - "name": "_evtName", - "description": "", - "type": "String" - }, - { - "name": "_args", - "description": "", - "type": "*|Array" - } - ], - "return": { - "description": "", - "type": "*" - }, - "class": "JC.BaseMVC.Model", - "namespace": "JC" - }, - { - "file": "../modules/JC.BaseMVC/0.1/BaseMVC.js", - "line": 317, - "description": "通知选择器有新事件", - "itemtype": "method", - "name": "notification", - "params": [ - { - "name": "_evtName", - "description": "", - "type": "String" - }, - { - "name": "_args", - "description": "", - "type": "*|Array" - } - ], - "class": "JC.BaseMVC.Model", - "namespace": "JC" - }, - { - "file": "../modules/JC.BaseMVC/0.1/BaseMVC.js", - "line": 329, - "description": "通知选择器有新事件", - "itemtype": "method", - "name": "notificationHandler", - "params": [ - { - "name": "_evtName", - "description": "", - "type": "String" - }, - { - "name": "_args", - "description": "", - "type": "*|Array" - } - ], - "return": { - "description": "", - "type": "*" - }, - "class": "JC.BaseMVC.Model", - "namespace": "JC" - }, - { - "file": "../modules/JC.BaseMVC/0.1/BaseMVC.js", - "line": 344, - "description": "初始化的 jq 选择器", - "itemtype": "method", - "name": "selector", - "params": [ - { - "name": "_setter", - "description": "", - "type": "Selector" - } - ], - "return": { - "description": "selector" - }, - "class": "JC.BaseMVC.Model", - "namespace": "JC" - }, - { - "file": "../modules/JC.BaseMVC/0.1/BaseMVC.js", - "line": 355, - "description": "读取 int 属性的值", - "itemtype": "method", - "name": "intProp", - "params": [ - { - "name": "_selector", - "description": "如果 _key 为空将视 _selector 为 _key, _selector 为 this.selector()", - "type": "Selector|string" - }, - { - "name": "_key", - "description": "", - "type": "String" - } - ], - "return": { - "description": "int" - }, - "class": "JC.BaseMVC.Model", - "namespace": "JC" - }, - { - "file": "../modules/JC.BaseMVC/0.1/BaseMVC.js", - "line": 376, - "description": "读取 float 属性的值", - "itemtype": "method", - "name": "floatProp", - "params": [ - { - "name": "_selector", - "description": "如果 _key 为空将视 _selector 为 _key, _selector 为 this.selector()", - "type": "Selector|string" - }, - { - "name": "_key", - "description": "", - "type": "String" - } - ], - "return": { - "description": "float" - }, - "class": "JC.BaseMVC.Model", - "namespace": "JC" - }, - { - "file": "../modules/JC.BaseMVC/0.1/BaseMVC.js", - "line": 397, - "description": "读取 string 属性的值", - "itemtype": "method", - "name": "stringProp", - "params": [ - { - "name": "_selector", - "description": "如果 _key 为空将视 _selector 为 _key, _selector 为 this.selector()", - "type": "Selector|string" - }, - { - "name": "_key", - "description": "", - "type": "String" - } - ], - "return": { - "description": "string" - }, - "class": "JC.BaseMVC.Model", - "namespace": "JC" - }, - { - "file": "../modules/JC.BaseMVC/0.1/BaseMVC.js", - "line": 415, - "description": "读取 html 属性值\n
      这个跟 stringProp 的区别是不会强制转换为小写", - "itemtype": "method", - "name": "attrProp", - "params": [ - { - "name": "_selector", - "description": "如果 _key 为空将视 _selector 为 _key, _selector 为 this.selector()", - "type": "Selector|string" - }, - { - "name": "_key", - "description": "", - "type": "String" - } - ], - "return": { - "description": "string" - }, - "class": "JC.BaseMVC.Model", - "namespace": "JC" - }, - { - "file": "../modules/JC.BaseMVC/0.1/BaseMVC.js", - "line": 438, - "description": "读取 boolean 属性的值", - "itemtype": "method", - "name": "boolProp", - "params": [ - { - "name": "_selector", - "description": "如果 _key 为空将视 _selector 为 _key, _selector 为 this.selector()", - "type": "Selector|string" - }, - { - "name": "_key", - "description": "", - "type": "String|bool" - }, - { - "name": "_defalut", - "description": "", - "type": "Bool" - } - ], - "return": { - "description": "", - "type": "Bool|undefined" - }, - "class": "JC.BaseMVC.Model", - "namespace": "JC" - }, - { - "file": "../modules/JC.BaseMVC/0.1/BaseMVC.js", - "line": 464, - "description": "读取 callback 属性的值", - "itemtype": "method", - "name": "callbackProp", - "params": [ - { - "name": "_selector", - "description": "如果 _key 为空将视 _selector 为 _key, _selector 为 this.selector()", - "type": "Selector|string" - }, - { - "name": "_key", - "description": "", - "type": "String" - } - ], - "return": { - "description": "", - "type": "Function|undefined" - }, - "class": "JC.BaseMVC.Model", - "namespace": "JC" - }, - { - "file": "../modules/JC.BaseMVC/0.1/BaseMVC.js", - "line": 487, - "description": "获取与属性名匹配的 window 变量", - "itemtype": "method", - "name": "windowProp", - "params": [ - { - "name": "_selector", - "description": "如果 _key 为空将视 _selector 为 _key, _selector 为 this.selector()", - "type": "Selector|string" - }, - { - "name": "_key", - "description": "", - "type": "String" - } - ], - "return": { - "description": "", - "type": "Window variable" - }, - "class": "JC.BaseMVC.Model", - "namespace": "JC" - }, - { - "file": "../modules/JC.BaseMVC/0.1/BaseMVC.js", - "line": 498, - "description": "获取 selector 属性的 jquery 选择器", - "itemtype": "method", - "name": "selectorProp", - "params": [ - { - "name": "_selector", - "description": "如果 _key 为空将视 _selector 为 _key, _selector 为 this.selector()", - "type": "Selector|string" - }, - { - "name": "_key", - "description": "", - "type": "String" - } - ], - "return": { - "description": "bool" - }, - "class": "JC.BaseMVC.Model", - "namespace": "JC" - }, - { - "file": "../modules/JC.BaseMVC/0.1/BaseMVC.js", - "line": 521, - "description": "获取 脚本模板 jquery 选择器", - "itemtype": "method", - "name": "scriptTplProp", - "params": [ - { - "name": "_selector", - "description": "如果 _key 为空将视 _selector 为 _key, _selector 为 this.selector()", - "type": "Selector|string" - }, - { - "name": "_key", - "description": "", - "type": "String" - } - ], - "return": { - "description": "string" - }, - "class": "JC.BaseMVC.Model", - "namespace": "JC" - }, - { - "file": "../modules/JC.BaseMVC/0.1/BaseMVC.js", - "line": 546, - "description": "获取 脚本数据 jquery 选择器", - "itemtype": "method", - "name": "scriptDataProp", - "params": [ - { - "name": "_selector", - "description": "如果 _key 为空将视 _selector 为 _key, _selector 为 this.selector()", - "type": "Selector|string" - }, - { - "name": "_key", - "description": "", - "type": "String" - } - ], - "return": { - "description": "object" - }, - "class": "JC.BaseMVC.Model", - "namespace": "JC" - }, - { - "file": "../modules/JC.BaseMVC/0.1/BaseMVC.js", - "line": 568, - "description": "获取 selector 属性的 json 数据", - "itemtype": "method", - "name": "jsonProp", - "params": [ - { - "name": "_selector", - "description": "如果 _key 为空将视 _selector 为 _key, _selector 为 this.selector()", - "type": "Selector|string" - }, - { - "name": "_key", - "description": "", - "type": "String" - } - ], - "return": { - "description": "", - "type": "Json | null" - }, - "class": "JC.BaseMVC.Model", - "namespace": "JC" - }, - { - "file": "../modules/JC.BaseMVC/0.1/BaseMVC.js", - "line": 592, - "description": "判断 _selector 是否具体某种特征", - "itemtype": "method", - "name": "is", - "params": [ - { - "name": "_selector", - "description": "如果 _key 为空将视 _selector 为 _key, _selector 为 this.selector()", - "type": "Selector|string" - }, - { - "name": "_key", - "description": "", - "type": "String" - } - ], - "return": { - "description": "bool" - }, - "class": "JC.BaseMVC.Model", - "namespace": "JC" - }, - { - "file": "../modules/JC.BaseMVC/0.1/BaseMVC.js", - "line": 621, - "description": "使用 jquery on 为 controler 绑定事件", - "class": "JC.BaseMVC.Model", - "namespace": "JC" - }, - { - "file": "../modules/JC.BaseMVC/0.1/BaseMVC.js", - "line": 629, - "description": "使用 jquery trigger 触发 controler 绑定事件", - "class": "JC.BaseMVC.Model", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChart/0.1/FChart.js", - "line": 117, - "description": "初始化可识别的 FChart 实例", - "itemtype": "method", - "name": "init", - "params": [ - { - "name": "_selector", - "description": "", - "type": "Selector" - } - ], - "static": 1, - "return": { - "description": "", - "type": "Array of FChartInstance" - }, - "class": "JC.FChart", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChart/0.1/FChart.js", - "line": 195, - "description": "更新数据", - "itemtype": "method", - "name": "update", - "params": [ - { - "name": "object", - "description": "_data" - } - ], - "class": "JC.FChart", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChart/0.1/FChart.js", - "line": 205, - "class": "JC.FChart", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChart/0.1/FChart.js", - "line": 219, - "description": "flash swf 路径映射\n
      你还可以使用其他属性进行定义路径映射\n 1. window.FCHART_SWF_FILE_MAP\n 2. JC.FCHART_SWF_FILE_MAP", - "itemtype": "property", - "name": "Model.SWF_FILE_MAP", - "type": "{object}", - "default": "null", - "static": 1, - "example": [ - "\n requirejs( [ 'JC.FChart' ], function( FChart ){\n FChart['Model'].SWF_FILE_MAP = {\n 'bar': 'http://fchart.openjavascript.org/modules/JC.FChart/0.1/swf/Histogram.swf'\n , 'vbar': 'http://fchart.openjavascript.org/modules/JC.FChart/0.1/swf/VHistogram.swf'\n , 'line': 'http://fchart.openjavascript.org/modules/JC.FChart/0.1/swf/CurveGram.swf'\n , 'stack': 'http://fchart.openjavascript.org/modules/JC.FChart/0.1/swf/Stack.swf'\n , 'mix': 'http://fchart.openjavascript.org/modules/JC.FChart/0.1/swf/MixChart.swf'\n\n , 'column': 'http://fchart.openjavascript.org/modules/JC.FChart/0.1/swf/ZHistogram.swf'\n , 'hcolumn': 'http://fchart.openjavascript.org/modules/JC.FChart/0.1/swf/VZHistogram.swf'\n };\n });" - ], - "class": "JC.FChart", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChart/0.1/FChart.js", - "line": 244, - "description": "flash swf 路径\n
      {0} = JC.PATH\n
      {1} = chart file name", - "itemtype": "property", - "name": "Model.FLASH_PATH", - "type": "{string}", - "default": "{0}/flash/pub/charts/{1}.swf", - "static": 1, - "class": "JC.FChart", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChart/0.1/FChart.js", - "line": 255, - "description": "flash swf 缓存版本控制", - "itemtype": "property", - "name": "Model.VERSION", - "type": "{string}", - "default": "requirejs.s.contexts._.config.urlArgs || 'v=' + JC.pathPostfix || 'v=fchart'", - "static": 1, - "class": "JC.FChart", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChart/0.1/FChart.js", - "line": 272, - "description": "图表类型映射\n
      曲线图: line, curvegram\n
      柱状图: bar, histogram\n
      垂直柱状图: var, vhistogram\n
      饼状图: pie, piegraph\n
      圆环图: dount\n
      评分球: rate", - "itemtype": "property", - "name": "Model.TYPE_MAP", - "type": "{object}", - "static": 1, - "class": "JC.FChart", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChart/0.1/FChart.js", - "line": 337, - "description": "解析图表默认数据", - "class": "JC.FChart", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChart/0.1/FChart.js", - "line": 359, - "description": "保存图表数据", - "class": "JC.FChart", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChart/0.1/FChart.js", - "line": 370, - "description": "图表宽度", - "class": "JC.FChart", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChart/0.1/FChart.js", - "line": 381, - "description": "图表高度", - "class": "JC.FChart", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChart/0.1/FChart.js", - "line": 392, - "description": "图表宽度", - "class": "JC.FChart", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChart/0.1/FChart.js", - "line": 403, - "description": "设置或保存图表的宽高", - "class": "JC.FChart", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChart/0.1/FChart.js", - "line": 411, - "description": "图表画布", - "class": "JC.FChart", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChart/0.1/FChart.js", - "line": 417, - "description": "画布圆角弧度", - "class": "JC.FChart", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChart/0.1/FChart.js", - "line": 421, - "description": "清除图表数据", - "class": "JC.FChart", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChart/0.1/FChart.js", - "line": 438, - "description": "清除图表状态", - "class": "JC.FChart", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChart/0.1/FChart.js", - "line": 519, - "description": "渲染图表外观", - "class": "JC.FChart", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChart/0.1/FChart.js", - "line": 559, - "description": "图表高度", - "class": "JC.FChart", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChart/0.1/FChart.js", - "line": 563, - "description": "图表高度", - "class": "JC.FChart", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChart/0.1/FChart.js", - "line": 567, - "description": "图表画布", - "class": "JC.FChart", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChart/0.1/FChart.js", - "line": 571, - "description": "初始化的选择器", - "class": "JC.FChart", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChart/0.1/FChart.js", - "line": 578, - "description": "清除图表数据", - "class": "JC.FChart", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChart/0.1/FChart.js", - "line": 588, - "description": "清除图表状态", - "class": "JC.FChart", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChart/0.1/FChart.js", - "line": 594, - "description": "更新图表数据", - "class": "JC.FChart", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChartCircleData/0.1/FChartCircleData.js", - "line": 57, - "description": "展现的数据\n
      series 数组只有索引0数据\n
      series 索引0 里的 data 应该是个两维数组, 或者 数组里的数据为 object: { name: String, y: Number }", - "itemtype": "property", - "name": "series", - "type": "{Array of Object}", - "default": "null", - "example": [ - "\n\n
      series:[{\n   data: [\n       ['全体覆盖率',   60],\n       ['样本覆盖率',   20]\n   ]\n}]
      \n
      series:[{\n   data: [\n       { name:'全体覆盖率',   y:60],\n       [ name:'样本覆盖率',   y:20]\n   ]\n}]
      \n" - ], - "class": "JC.FChartCircleData", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChartCircleData/0.1/FChartCircleData.js", - "line": 81, - "description": "图表数值是否按总数值=100划分百分比", - "itemtype": "property", - "name": "isPercent", - "type": "{Boolean}", - "default": "false", - "example": [ - " \n isPercent: false" - ], - "class": "JC.FChartCircleData", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChartCircleData/0.1/FChartCircleData.js", - "line": 90, - "description": "设置圆环的环宽\n
      仅对 NDount 生效", - "itemtype": "property", - "name": "radiusStep", - "default": "10", - "type": "int", - "class": "JC.FChartCircleData", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChartCircleData/0.1/FChartCircleData.js", - "line": 98, - "description": "不同 圆环图的设置数据", - "itemtype": "property", - "name": "plotOptions", - "type": "{Object}", - "class": "JC.FChartCircleData", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChartCircleData/0.1/FChartCircleData.js", - "line": 104, - "description": "NDount 的设置数据", - "itemtype": "property", - "name": "plotOptions.ndount", - "type": "{Object}", - "class": "JC.FChartCircleData", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChartCircleData/0.1/FChartCircleData.js", - "line": 110, - "description": "NDount的圆环中的文本显示设置", - "itemtype": "property", - "name": "plotOptions.ndount.cdataLabels", - "type": "{Object}", - "class": "JC.FChartCircleData", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChartCircleData/0.1/FChartCircleData.js", - "line": 116, - "description": "是否显示 NDount的圆环中的文本", - "itemtype": "property", - "name": "plotOptions.ndount.cdataLabels.enabled", - "type": "Boolean", - "default": "false", - "class": "JC.FChartCircleData", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChartNormalData/0.1/FChartNormalData.js", - "line": 91, - "description": "图表背景的设置数据", - "itemtype": "property", - "name": "chart", - "type": "{object}", - "class": "JC.FChartNormalData", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChartNormalData/0.1/FChartNormalData.js", - "line": 97, - "description": "图表的类型\n
      see also: JC.FChart.Model.TYPE_MAP", - "itemtype": "property", - "name": "chart.type", - "type": "{string}", - "default": "empty", - "class": "JC.FChartNormalData", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChartNormalData/0.1/FChartNormalData.js", - "line": 105, - "description": "图表的背景颜色", - "itemtype": "property", - "name": "chart.bgColor", - "type": "{hex color}", - "default": "0xcccccc", - "class": "JC.FChartNormalData", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChartNormalData/0.1/FChartNormalData.js", - "line": 112, - "description": "图表的背景色透明度", - "itemtype": "property", - "name": "chart.bgAlpha", - "type": "{Number} 0.01 ~ 1", - "default": "0.13", - "class": "JC.FChartNormalData", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChartNormalData/0.1/FChartNormalData.js", - "line": 119, - "description": "图表数据显示块的高度\n
      有时需要把多个数据图表显示一样的视觉高度, 但是其他图表的 水平label高度不一样, 就会导致视觉上的不同\n
      这个属性就是为了解决这个问题, 把图表数据显示块设置为统一的高度", - "itemtype": "property", - "name": "chart.graphicHeight", - "type": "{Number}", - "default": "0, 0 = auto", - "class": "JC.FChartNormalData", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChartNormalData/0.1/FChartNormalData.js", - "line": 129, - "description": "横向坐标设置数据", - "itemtype": "property", - "name": "xAxis", - "type": "{object}", - "class": "JC.FChartNormalData", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChartNormalData/0.1/FChartNormalData.js", - "line": 135, - "description": "是否显示横向坐标( pending )", - "itemtype": "property", - "name": "xAxis.enabled", - "type": "{Boolean}", - "default": "true", - "example": [ - " \n enabled: false" - ], - "class": "JC.FChartNormalData", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChartNormalData/0.1/FChartNormalData.js", - "line": 144, - "description": "横向坐标的显示数据\n
      这些数据默认也用于显示 tips 的主标题, 如果想重定义 tips 的主标题, 请设置 tooltip.header 属性", - "itemtype": "property", - "name": "xAxis.categories", - "type": "{Array of String}", - "default": "null", - "example": [ - " \n categories: [ '02/24', '02/25', '02/26', '02/27', '02/28', '02/29', '03/01' ]" - ], - "class": "JC.FChartNormalData", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChartNormalData/0.1/FChartNormalData.js", - "line": 154, - "description": "横向坐标显示数据是否自动换行", - "itemtype": "property", - "name": "xAxis.wordwrap", - "type": "{Boolean}", - "default": "true", - "example": [ - " \n wordwrap: true" - ], - "class": "JC.FChartNormalData", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChartNormalData/0.1/FChartNormalData.js", - "line": 163, - "description": "横向坐标显示数据格式化显示", - "itemtype": "property", - "name": "xAxis.format", - "type": "{String}", - "default": "'{0}'", - "example": [ - " \n format: '{0}%'" - ], - "class": "JC.FChartNormalData", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChartNormalData/0.1/FChartNormalData.js", - "line": 173, - "description": "纵向坐标设置数据", - "itemtype": "property", - "name": "yAxis", - "type": "{object}", - "class": "JC.FChartNormalData", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChartNormalData/0.1/FChartNormalData.js", - "line": 179, - "description": "是否显示纵向坐标", - "itemtype": "property", - "name": "yAxis.enabled", - "type": "{Boolean}", - "default": "true", - "example": [ - " \n enabled: true" - ], - "class": "JC.FChartNormalData", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChartNormalData/0.1/FChartNormalData.js", - "line": 188, - "description": "纵向坐标显示数据格式化显示", - "itemtype": "property", - "name": "yAxis.format", - "type": "{String}", - "default": "'{0}'", - "example": [ - " \n format: '{0}%'" - ], - "class": "JC.FChartNormalData", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChartNormalData/0.1/FChartNormalData.js", - "line": 197, - "description": "自定义纵向坐标的最大值\n
      0 = auto\n
      显示百分比的时候, 应该设置为 100", - "itemtype": "property", - "name": "yAxis.maxvalue", - "type": "{Number}", - "default": "0", - "example": [ - " \n maxvalue: 0" - ], - "class": "JC.FChartNormalData", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChartNormalData/0.1/FChartNormalData.js", - "line": 208, - "description": "纵向坐标的切分粒度", - "itemtype": "property", - "name": "yAxis.rate", - "type": "{Array of Number}", - "default": "auto", - "example": [ - " \n rate: [ 1, .8, .6, .4, .2, .0 ]" - ], - "class": "JC.FChartNormalData", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChartNormalData/0.1/FChartNormalData.js", - "line": 218, - "description": "展现的数据\n
      series 每条数据里的 data 属性, 长度应该与 xAxis.categories 的长度相等\n
      显示数值如果为百分比的话, 需要设置 yAxis.maxvalue = 100", - "itemtype": "property", - "name": "series", - "type": "{Array of Object}", - "default": "null", - "example": [ - "\n\n
      series:[{\n       name: '目标PV'\n       , data: [ 70, 49, 76, 30, 55, 26, 78 ]\n   }, {\n       name: '目标UV',\n       data: [ 48, 62, 50, 50, 30, 40, 35 ]\n   }]
      " - ], - "class": "JC.FChartNormalData", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChartNormalData/0.1/FChartNormalData.js", - "line": 236, - "description": "tips 设置数据 \n
      tips 的主标题默认为 xAxis.categories 对应索引的数据\n
      如果想重定义主标题, 请设置 tooltip.header 属性", - "itemtype": "property", - "name": "tooltip", - "type": "{object}", - "class": "JC.FChartNormalData", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChartNormalData/0.1/FChartNormalData.js", - "line": 244, - "description": "是否显示 tips", - "itemtype": "property", - "name": "tooltip.enabled", - "type": "{Boolean}", - "default": "true", - "example": [ - " \n enabled: true" - ], - "class": "JC.FChartNormalData", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChartNormalData/0.1/FChartNormalData.js", - "line": 253, - "description": "tips 主标题的显示格式", - "itemtype": "property", - "name": "tooltip.headerFormat", - "type": "{String}", - "default": "'{0}'", - "example": [ - " \n headerFormat: '{0} right title'" - ], - "class": "JC.FChartNormalData", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChartNormalData/0.1/FChartNormalData.js", - "line": 262, - "description": "tips 坐数值的显示格式", - "itemtype": "property", - "name": "tooltip.pointFormat", - "type": "{String}", - "default": "'{0}'", - "example": [ - " \n pointFormat: '{0}%'" - ], - "class": "JC.FChartNormalData", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChartNormalData/0.1/FChartNormalData.js", - "line": 271, - "description": "tips 主标题的显示数据\n
      如果不显式声明 tooltip.header, 默认数据为 xAxis.categories", - "itemtype": "property", - "name": "tooltip.header", - "type": "{Array of String}", - "default": "null", - "example": [ - " \n header: [ '2014/02/24', '2014/02/25', '2014/02/26', '2014/02/27', '2014/02/28', '2014/02/29', '2014/03/01' ]" - ], - "class": "JC.FChartNormalData", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChartNormalData/0.1/FChartNormalData.js", - "line": 281, - "description": "tips 的扩展字段( 在行首显示扩展的字段 )\n
      series 每条数据里的 data 属性, 长度应该与 xAxis.categories 的长度相等", - "itemtype": "property", - "name": "tooltip.series", - "type": "{Array of Object}", - "default": "null", - "example": [ - "\n\n
      \"serial\": [\n   {\n       \"name\": \"总体\"\n       , \"data\": [ \n           1000, 2000, 3000, 4000, 5000, 6000\n           , 1000, 2000, 3000, 4000, 5000, 6000 \n           , 1000, 2000, 3000, 4000, 5000, 6000 \n           , 7000\n       ]\n   }"
      -            ],
      -            "class": "JC.FChartNormalData",
      -            "namespace": "JC"
      -        },
      -        {
      -            "file": "../modules/JC.FChartNormalData/0.1/FChartNormalData.js",
      -            "line": 301,
      -            "description": "tips 的扩展字段( 在行底显示扩展的字段 )\n
      series 每条数据里的 data 属性, 长度应该与 xAxis.categories 的长度相等", - "itemtype": "property", - "name": "tooltip.afterSeries", - "type": "{Array of Object}", - "default": "null", - "example": [ - "\n\n
      \"afterSerial\": [\n   {\n       \"name\": \"区分度\"\n       , \"data\": [ \n           1.04, 1.05, 1.06, 1.07, 1.08, 1.09\n           , 2.01, 2.02, 2.03, 2.04, 2.05, 2.06\n           , 3.09, 3.08, 3.07, 3.06, 3.05, 3.04\n           , 4.11\n       ]\n   }\n]
      " - ], - "class": "JC.FChartNormalData", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChartNormalData/0.1/FChartNormalData.js", - "line": 323, - "description": "是否显示所有横向 label\n
      如果非真, 而且长度大于4, 将按横向坐标的长度切分为4个显示坐标", - "itemtype": "property", - "name": "displayAllLabel", - "type": "{Boolean}", - "default": "true", - "class": "JC.FChartNormalData", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChartNormalData/0.1/FChartNormalData.js", - "line": 331, - "description": "数据点 label 的设置数据", - "itemtype": "property", - "name": "dataLabels", - "type": "{object}", - "class": "JC.FChartNormalData", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChartNormalData/0.1/FChartNormalData.js", - "line": 337, - "description": "每个数据点是否显示数值文本", - "itemtype": "property", - "name": "dataLabels.enabled", - "type": "{Boolean}", - "default": "false", - "example": [ - " \n enabled: false" - ], - "class": "JC.FChartNormalData", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChartNormalData/0.1/FChartNormalData.js", - "line": 346, - "description": "格式化显示数值文本", - "itemtype": "property", - "name": "dataLabels.format", - "type": "{String}", - "default": "'{0}'", - "example": [ - " \n format: '{0}%'" - ], - "class": "JC.FChartNormalData", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChartNormalData/0.1/FChartNormalData.js", - "line": 356, - "description": "纵向背景线的设置数据", - "itemtype": "property", - "name": "vline", - "type": "{object}", - "class": "JC.FChartNormalData", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChartNormalData/0.1/FChartNormalData.js", - "line": 362, - "description": "是否显示纵向背景线", - "itemtype": "property", - "name": "vline.enabled", - "type": "{Boolean}", - "default": "true", - "example": [ - " \n enabled: true" - ], - "class": "JC.FChartNormalData", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChartNormalData/0.1/FChartNormalData.js", - "line": 372, - "description": "横向背景线的设置数据", - "itemtype": "property", - "name": "hline", - "type": "{object}", - "class": "JC.FChartNormalData", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChartNormalData/0.1/FChartNormalData.js", - "line": 378, - "description": "是否显示横向背景线", - "itemtype": "property", - "name": "hline.enabled", - "type": "{Boolean}", - "default": "true", - "example": [ - " \n enabled: true" - ], - "class": "JC.FChartNormalData", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChartNormalData/0.1/FChartNormalData.js", - "line": 388, - "description": "数据项的显示颜色", - "itemtype": "property", - "name": "colors", - "type": "{Array of hex colors}", - "default": ": [0x03ACEF, 0x5DC979, 0x09c100, 0x0c76c4 , 0xff0619, 0xFFBF00, 0xff7100, 0xff06b3, 0x41e2e6, 0xc3e2a4, 0xffb2bc, 0xdbb8fd]", - "class": "JC.FChartNormalData", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChartNormalData/0.1/FChartNormalData.js", - "line": 409, - "description": "数据项的背景设置\n
      目前这个属性仅对 柱状图 生效", - "itemtype": "property", - "name": "itemBg", - "type": "{object}", - "class": "JC.FChartNormalData", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChartNormalData/0.1/FChartNormalData.js", - "line": 416, - "description": "数据项是否显示背景色", - "itemtype": "property", - "name": "itemBg.enabled", - "type": "{Boolean}", - "default": "false", - "example": [ - " \n enabled: false" - ], - "class": "JC.FChartNormalData", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChartNormalData/0.1/FChartNormalData.js", - "line": 425, - "description": "数据项背景色的样式定义", - "itemtype": "property", - "name": "itemBg.style", - "type": "{object}", - "default": "{ borderColor: 0xB4B4B4, bgColor: 0xF0F0F0, borderWidth: 0 }", - "class": "JC.FChartNormalData", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChartNormalData/0.1/FChartNormalData.js", - "line": 433, - "description": "数据项的鼠标划过的背景设置\n
      目前这个属性仅对 柱状图 生效", - "itemtype": "property", - "name": "hoverBg", - "type": "{object}", - "class": "JC.FChartNormalData", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChartNormalData/0.1/FChartNormalData.js", - "line": 440, - "description": "数据项鼠标划过是否显示背景色", - "itemtype": "property", - "name": "hoverBg.enabled", - "type": "{Boolean}", - "default": "false", - "example": [ - " \n enabled: false" - ], - "class": "JC.FChartNormalData", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChartNormalData/0.1/FChartNormalData.js", - "line": 449, - "description": "数据项背景色的样式定义", - "itemtype": "property", - "name": "hoverBg.style", - "type": "{object}", - "default": "{ borderColor: 0xB4B4B4, bgColor: 0xF0F0F0, borderWidth: 0 }", - "class": "JC.FChartNormalData", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChartNormalData/0.1/FChartNormalData.js", - "line": 457, - "description": "最大数据的显示设置\n
      目前这个属性仅对 柱状图 生效", - "itemtype": "property", - "name": "maxItem", - "type": "{object}", - "class": "JC.FChartNormalData", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChartNormalData/0.1/FChartNormalData.js", - "line": 464, - "itemtype": "property", - "name": "maxItem.style", - "type": "{object}", - "default": "null", - "example": [ - " style: { color: 0x5DC979, size: 18 }" - ], - "class": "JC.FChartNormalData", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChartNormalData/0.1/FChartNormalData.js", - "line": 472, - "description": "数据项的背景区分设置\n
      目前这个属性仅对 曲线图 生效", - "itemtype": "property", - "name": "toggleBg", - "type": "{object}", - "class": "JC.FChartNormalData", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChartNormalData/0.1/FChartNormalData.js", - "line": 479, - "description": "数据项是否每隔一个数据显示不同的背景色", - "itemtype": "property", - "name": "toggleBg.enabled", - "type": "{Boolean}", - "default": "false", - "example": [ - " \n enabled: false" - ], - "class": "JC.FChartNormalData", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChartNormalData/0.1/FChartNormalData.js", - "line": 488, - "description": "数据项背景色的样式定义( pending )", - "itemtype": "property", - "name": "toggleBg.style", - "type": "{object}", - "default": "{ borderColor: 0xEDF1F3, bgColor: 0xEDF1F3, borderWidth: 0, thickness: 1 }", - "class": "JC.FChartNormalData", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChartNormalData/0.1/FChartNormalData.js", - "line": 496, - "description": "图表数值是否按总数值=100划分百分比", - "itemtype": "property", - "name": "isPercent", - "type": "{Boolean}", - "default": "false", - "example": [ - " \n isPercent: false" - ], - "class": "JC.FChartNormalData", - "namespace": "JC" - }, - { - "file": "../modules/JC.FChartNormalData/0.1/FChartNormalData.js", - "line": 505, - "description": "图表数值是否按 series 数据点 的总数值划分百分比", - "itemtype": "property", - "name": "isItemPercent", - "type": "{Boolean}", - "default": "false", - "example": [ - " \n isItemPercent: false" - ], - "class": "JC.FChartNormalData", - "namespace": "JC" - }, - { - "file": "../modules/JC.common/0.1/common.js", - "line": 9, - "description": "如果 console 不可用, 则生成一个模拟的 console 对象", - "class": ".window" - }, - { - "file": "../modules/JC.common/0.1/common.js", - "line": 15, - "description": "声明主要命名空间, 方便迁移", - "class": ".window" - }, - { - "file": "../modules/JC.common/0.1/common.js", - "line": 22, - "description": "全局 css z-index 控制属性", - "itemtype": "property", - "name": "ZINDEX_COUNT", - "type": "int", - "default": "50001", - "static": 1, - "class": ".window" - }, - { - "file": "../modules/JC.common/0.1/common.js", - "line": 30, - "description": "把函数的参数转为数组", - "itemtype": "method", - "name": "sliceArgs", - "params": [ - { - "name": "args", - "description": "", - "type": "Arguments" - } - ], - "return": { - "description": "Array" - }, - "static": 1, - "class": ".window" - }, - { - "file": "../modules/JC.common/0.1/common.js", - "line": 44, - "description": "按格式输出字符串", - "itemtype": "method", - "name": "printf", - "static": 1, - "params": [ - { - "name": "_str", - "description": "", - "type": "String" - } - ], - "return": { - "description": "string" - }, - "example": [ - "\n printf( 'asdfasdf{0}sdfasdf{1}', '000', 1111 );\n //return asdfasdf000sdfasdf1111" - ], - "class": ".window" - }, - { - "file": "../modules/JC.common/0.1/common.js", - "line": 60, - "description": "判断URL中是否有某个get参数", - "itemtype": "method", - "name": "hasUrlParam", - "static": 1, - "params": [ - { - "name": "_url", - "description": "", - "type": "String" - }, - { - "name": "_key", - "description": "", - "type": "String" - } - ], - "return": { - "description": "bool" - }, - "example": [ - "\n var bool = hasUrlParam( 'getkey' );" - ], - "class": ".window" - }, - { - "file": "../modules/JC.common/0.1/common.js", - "line": 82, - "description": "添加URL参数\n
      require: delUrlParam", - "itemtype": "method", - "name": "addUrlParams", - "static": 1, - "params": [ - { - "name": "_url", - "description": "", - "type": "String" - }, - { - "name": "_params", - "description": "", - "type": "Object" - } - ], - "return": { - "description": "string" - }, - "example": [ - "\n var url = addUrlParams( location.href, {'key1': 'key1value', 'key2': 'key2value' } );" - ], - "class": ".window" - }, - { - "file": "../modules/JC.common/0.1/common.js", - "line": 108, - "description": "取URL参数的值", - "itemtype": "method", - "name": "getUrlParam", - "static": 1, - "params": [ - { - "name": "_url", - "description": "", - "type": "String" - }, - { - "name": "_key", - "description": "", - "type": "String" - } - ], - "return": { - "description": "string" - }, - "example": [ - "\n var defaultTag = getUrlParam(location.href, 'tag'); " - ], - "class": ".window" - }, - { - "file": "../modules/JC.common/0.1/common.js", - "line": 135, - "description": "取URL参数的值, 这个方法返回数组\n
      与 getUrlParam 的区别是可以获取 checkbox 的所有值", - "itemtype": "method", - "name": "getUrlParams", - "static": 1, - "params": [ - { - "name": "_url", - "description": "", - "type": "String" - }, - { - "name": "_key", - "description": "", - "type": "String" - } - ], - "return": { - "description": "Array" - }, - "example": [ - "\n var params = getUrlParams(location.href, 'tag'); " - ], - "class": ".window" - }, - { - "file": "../modules/JC.common/0.1/common.js", - "line": 164, - "description": "删除URL参数", - "itemtype": "method", - "name": "delUrlParam", - "static": 1, - "params": [ - { - "name": "_url", - "description": "", - "type": "String" - }, - { - "name": "_key", - "description": "", - "type": "String" - } - ], - "return": { - "description": "string" - }, - "example": [ - "\n var url = delUrlParam( location.href, 'tag' );" - ], - "class": ".window" - }, - { - "file": "../modules/JC.common/0.1/common.js", - "line": 192, - "description": "提示需要 HTTP 环境", - "itemtype": "method", - "name": "httpRequire", - "static": 1, - "params": [ - { - "name": "_msg", - "description": "要提示的文字, 默认 \"本示例需要HTTP环境'", - "type": "String" - } - ], - "return": { - "description": "bool 如果是HTTP环境返回true, 否则返回false" - }, - "class": ".window" - }, - { - "file": "../modules/JC.common/0.1/common.js", - "line": 207, - "description": "删除 URL 的锚点\n
      require: addUrlParams", - "itemtype": "method", - "name": "removeUrlSharp", - "static": 1, - "params": [ - { - "name": "$url", - "description": "", - "type": "String" - }, - { - "name": "$nornd", - "description": "是否不添加随机参数", - "type": "Bool" - } - ], - "return": { - "description": "string" - }, - "class": ".window" - }, - { - "file": "../modules/JC.common/0.1/common.js", - "line": 221, - "description": "重载页面\n
      require: removeUrlSharp\n
      require: addUrlParams", - "itemtype": "method", - "name": "reloadPage", - "static": 1, - "params": [ - { - "name": "$url", - "description": "", - "type": "String" - }, - { - "name": "$nornd", - "description": "", - "type": "Bool" - }, - { - "name": "$delayms", - "description": "", - "type": "Int" - } - ], - "class": ".window" - }, - { - "file": "../modules/JC.common/0.1/common.js", - "line": 239, - "description": "取小数点的N位\n
      JS 解析 浮点数的时候,经常出现各种不可预知情况,这个函数就是为了解决这个问题", - "itemtype": "method", - "name": "parseFinance", - "static": 1, - "params": [ - { - "name": "_i", - "description": "", - "type": "Number" - }, - { - "name": "_dot,", - "description": "default = 2", - "type": "Int" - } - ], - "return": { - "description": "number" - }, - "class": ".window" - }, - { - "file": "../modules/JC.common/0.1/common.js", - "line": 256, - "description": "js 附加字串函数", - "itemtype": "method", - "name": "padChar", - "static": 1, - "params": [ - { - "name": "_str", - "description": "", - "type": "String" - }, - { - "name": "_len", - "description": "", - "type": "Intl" - }, - { - "name": "_char", - "description": "", - "type": "String" - } - ], - "return": { - "description": "string" - }, - "class": ".window" - }, - { - "file": "../modules/JC.common/0.1/common.js", - "line": 272, - "description": "格式化日期为 YYYY-mm-dd 格式\n
      require: pad\\_char\\_f", - "itemtype": "method", - "name": "formatISODate", - "static": 1, - "params": [ - { - "name": "_date", - "description": "要格式化日期的日期对象", - "type": "Date" - }, - { - "name": "_split", - "description": "定义年月日的分隔符, 默认为 '-'", - "type": "String|undefined" - } - ], - "return": { - "description": "string" - }, - "class": ".window" - }, - { - "file": "../modules/JC.common/0.1/common.js", - "line": 286, - "description": "从 ISODate 字符串解析日期对象", - "itemtype": "method", - "name": "parseISODate", - "static": 1, - "params": [ - { - "name": "_datestr", - "description": "", - "type": "String" - } - ], - "return": { - "description": "date" - }, - "class": ".window" - }, - { - "file": "../modules/JC.common/0.1/common.js", - "line": 304, - "description": "获取不带 时分秒的 日期对象", - "itemtype": "method", - "name": "pureDate", - "params": [ - { - "name": "_d", - "description": "可选参数, 如果为空 = new Date", - "type": "Date" - } - ], - "return": { - "description": "Date" - }, - "class": ".window" - }, - { - "file": "../modules/JC.common/0.1/common.js", - "line": 316, - "description": "克隆日期对象", - "itemtype": "method", - "name": "cloneDate", - "static": 1, - "params": [ - { - "name": "_date", - "description": "需要克隆的日期", - "type": "Date" - } - ], - "return": { - "description": "需要克隆的日期对象", - "type": "Date" - }, - "class": ".window" - }, - { - "file": "../modules/JC.common/0.1/common.js", - "line": 324, - "description": "判断两个日期是否为同一天", - "itemtype": "method", - "name": "isSameDay", - "static": 1, - "params": [ - { - "name": "_d1", - "description": "需要判断的日期1", - "type": "Date" - }, - { - "name": "_d2", - "description": "需要判断的日期2", - "type": "Date" - } - ], - "return": { - "description": "", - "type": "Bool" - }, - "class": ".window" - }, - { - "file": "../modules/JC.common/0.1/common.js", - "line": 336, - "description": "判断两个日期是否为同一月份", - "itemtype": "method", - "name": "isSameMonth", - "static": 1, - "params": [ - { - "name": "_d1", - "description": "需要判断的日期1", - "type": "Date" - }, - { - "name": "_d2", - "description": "需要判断的日期2", - "type": "Date" - } - ], - "return": { - "description": "", - "type": "Bool" - }, - "class": ".window" - }, - { - "file": "../modules/JC.common/0.1/common.js", - "line": 348, - "description": "取得一个月份中最大的一天", - "itemtype": "method", - "name": "maxDayOfMonth", - "static": 1, - "params": [ - { - "name": "_date", - "description": "", - "type": "Date" - } - ], - "return": { - "description": "月份中最大的一天", - "type": "Int" - }, - "class": ".window" - }, - { - "file": "../modules/JC.common/0.1/common.js", - "line": 361, - "description": "取当前脚本标签的 src路径", - "itemtype": "method", - "name": "scriptPath", - "static": 1, - "return": { - "description": "脚本所在目录的完整路径", - "type": "String" - }, - "class": ".window" - }, - { - "file": "../modules/JC.common/0.1/common.js", - "line": 373, - "description": "缓动函数, 动画效果为按时间缓动 \n
      这个函数只考虑递增, 你如果需要递减的话, 在回调里用 _maxVal - _stepval", - "itemtype": "method", - "name": "easyEffect", - "static": 1, - "params": [ - { - "name": "_cb", - "description": "缓动运动时的回调", - "type": "Function" - }, - { - "name": "_maxVal", - "description": "缓动的最大值, default = 200", - "type": "Number" - }, - { - "name": "_startVal", - "description": "缓动的起始值, default = 0", - "type": "Number" - }, - { - "name": "_duration", - "description": "缓动的总时间, 单位毫秒, default = 200", - "type": "Number" - }, - { - "name": "_stepMs", - "description": "缓动的间隔, 单位毫秒, default = 2", - "type": "Number" - } - ], - "return": { - "description": "interval" - }, - "example": [ - "\n $(document).ready(function(){\n window.js_output = $('span.js_output');\n window.ls = [];\n window.EFF_INTERVAL = easyEffect( effectcallback, 100);\n });\n\n function effectcallback( _stepval, _done ){\n js_output.html( _stepval );\n ls.push( _stepval );\n\n !_done && js_output.html( _stepval );\n _done && js_output.html( _stepval + '
      ' + ls.join() );\n }" - ], - "class": ".window" - }, - { - "file": "../modules/JC.common/0.1/common.js", - "line": 426, - "description": "把输入值转换为布尔值", - "itemtype": "method", - "name": "parseBool", - "params": [ - { - "name": "_input", - "description": "", - "type": "*" - } - ], - "return": { - "description": "bool" - }, - "static": 1, - "class": ".window" - }, - { - "file": "../modules/JC.common/0.1/common.js", - "line": 445, - "description": "判断是否支持 CSS position: fixed", - "itemtype": "property", - "name": "$.support.isFixed", - "type": "bool", - "require": "jquery", - "static": 1, - "class": ".window" - }, - { - "file": "../modules/JC.common/0.1/common.js", - "line": 474, - "description": "绑定或清除 mousewheel 事件", - "itemtype": "method", - "name": "mousewheelEvent", - "params": [ - { - "name": "_cb", - "description": "", - "type": "Function" - }, - { - "name": "_detach", - "description": "", - "type": "Bool" - } - ], - "static": 1, - "class": ".window" - }, - { - "file": "../modules/JC.common/0.1/common.js", - "line": 496, - "description": "获取 selector 的指定父级标签", - "itemtype": "method", - "name": "getJqParent", - "params": [ - { - "name": "_selector", - "description": "", - "type": "Selector" - }, - { - "name": "_filter", - "description": "", - "type": "Selector" - } - ], - "return": { - "description": "selector" - }, - "require": "jquery", - "static": 1, - "class": ".window" - }, - { - "file": "../modules/JC.common/0.1/common.js", - "line": 522, - "description": "扩展 jquery 选择器\n
      扩展起始字符的 '/' 符号为 jquery 父节点选择器\n
      扩展起始字符的 '|' 符号为 jquery 子节点选择器\n
      扩展起始字符的 '(' 符号为 jquery 父节点查找识别符( getJqParent )", - "itemtype": "method", - "name": "parentSelector", - "params": [ - { - "name": "_item", - "description": "", - "type": "Selector" - }, - { - "name": "_selector", - "description": "", - "type": "String" - }, - { - "name": "_finder", - "description": "", - "type": "Selector" - } - ], - "return": { - "description": "selector" - }, - "require": "jquery", - "static": 1, - "class": ".window" - }, - { - "file": "../modules/JC.common/0.1/common.js", - "line": 590, - "description": "获取脚本模板的内容", - "itemtype": "method", - "name": "scriptContent", - "params": [ - { - "name": "_selector", - "description": "", - "type": "Selector" - } - ], - "return": { - "description": "string" - }, - "static": 1, - "class": ".window" - }, - { - "file": "../modules/JC.common/0.1/common.js", - "line": 605, - "description": "取函数名 ( 匿名函数返回空 )", - "itemtype": "method", - "name": "funcName", - "params": [ - { - "name": "_func", - "description": "", - "type": "Function" - } - ], - "return": { - "description": "string" - }, - "static": 1, - "class": ".window" - }, - { - "file": "../modules/JC.common/0.1/common.js", - "line": 620, - "description": "动态添加内容时, 初始化可识别的组件\n
      \n
      目前会自动识别的组件,
      \n
      \n Bizs.CommonModify, JC.Panel, JC.Dialog\n
      自动识别的组件不用显式调用 jcAutoInitComps 去识别可识别的组件\n
      \n\n
      \n
      可识别的组件
      \n
      \n JC.AutoSelect, JC.Calendar, JC.AutoChecked, JC.AjaxUpload, JC.Placeholder\n
      Bizs.DisableLogic, Bizs.FormLogic\n
      \n", - "itemtype": "method", - "name": "jcAutoInitComps", - "params": [ - { - "name": "_selector", - "description": "", - "type": "Selector" - } - ], - "static": 1, - "class": ".window" - }, - { - "file": "../modules/JC.common/0.1/common.js", - "line": 644, - "description": "联动下拉框", - "class": ".window" - }, - { - "file": "../modules/JC.common/0.1/common.js", - "line": 648, - "description": "日历组件", - "class": ".window" - }, - { - "file": "../modules/JC.common/0.1/common.js", - "line": 652, - "description": "全选反选", - "class": ".window" - }, - { - "file": "../modules/JC.common/0.1/common.js", - "line": 656, - "description": "Ajax 上传", - "class": ".window" - }, - { - "file": "../modules/JC.common/0.1/common.js", - "line": 660, - "description": "Placeholder 占位符", - "class": ".window" - }, - { - "file": "../modules/JC.common/0.1/common.js", - "line": 666, - "description": "disable / enable", - "class": ".window" - }, - { - "file": "../modules/JC.common/0.1/common.js", - "line": 670, - "description": "表单提交逻辑", - "class": ".window" - }, - { - "file": "../modules/JC.common/0.1/common.js", - "line": 675, - "description": "URL 占位符识别功能", - "itemtype": "method", - "name": "urlDetect", - "params": [ - { - "name": "_url", - "description": "如果 起始字符为 URL, 那么 URL 将祝为本页的URL", - "type": "String" - } - ], - "return": { - "description": "string" - }, - "static": 1, - "example": [ - "\n urlDetect( '?test' ); //output: ?test\n\n urlDetect( 'URL,a=1&b=2' ); //output: your.com?a=1&b=2\n urlDetect( 'URL,a=1,b=2' ); //output: your.com?a=1&b=2\n urlDetect( 'URLa=1&b=2' ); //output: your.com?a=1&b=2" - ], - "class": ".window" - }, - { - "file": "../modules/JC.common/0.1/common.js", - "line": 714, - "description": "日期占位符识别功能", - "itemtype": "method", - "name": "dateDetect", - "params": [ - { - "name": "_dateStr", - "description": "如果 起始字符为 NOW, 那么将视为当前日期", - "type": "String" - } - ], - "return": { - "description": "", - "type": "Date|null" - }, - "static": 1, - "example": [ - "\n dateDetect( 'now' ); //2014-10-02\n dateDetect( 'now,3d' ); //2013-10-05\n dateDetect( 'now,-3d' ); //2013-09-29\n dateDetect( 'now,2w' ); //2013-10-16\n dateDetect( 'now,-2m' ); //2013-08-02\n dateDetect( 'now,4y' ); //2017-10-02\n\n dateDetect( 'now,1d,1w,1m,1y' ); //2014-11-10" - ], - "class": ".window" - }, - { - "file": "../modules/JC.common/0.1/common.js", - "line": 773, - "description": "inject jquery val func, for hidden change event", - "class": ".window" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 4, - "description": "如果 console 不可用, 生成一个模拟的 console 对象", - "class": "JC.f" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 16, - "description": "声明主要命名空间, 方便迁移", - "class": "JC.f" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 114, - "description": "判断 JC.common 是否需要向后兼容, 如果需要的话, 向 window 添加全局静态函数", - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 137, - "description": "jquery 1.9.1 默认 string 没有 trim 方法, 这里对 string 原型添加一个默认的 trim 方法", - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 141, - "description": "兼容 低版本 ie Array 的 indexOf 方法", - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 173, - "description": "全局 css z-index 控制属性\n
      注意: 这个变量是 window.ZINDEX_COUNT", - "itemtype": "property", - "name": "ZINDEX_COUNT", - "type": "int", - "default": "50001", - "static": 1, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 191, - "description": "一维数组去重", - "itemtype": "method", - "name": "arrayId", - "params": [ - { - "name": "_ar", - "description": "", - "type": "Array" - } - ], - "return": { - "description": "Array" - }, - "static": 1, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 210, - "description": "生成全局唯一ID", - "itemtype": "method", - "name": "gid", - "return": { - "description": "string" - }, - "static": 1, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 221, - "description": "把函数的参数转为数组", - "itemtype": "method", - "name": "sliceArgs", - "params": [ - { - "name": "args", - "description": "", - "type": "Arguments" - } - ], - "return": { - "description": "Array" - }, - "static": 1, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 235, - "description": "取 URL 的 host name", - "itemtype": "method", - "name": "urlHostName", - "params": [ - { - "name": "_url", - "description": "", - "type": "String" - } - ], - "return": { - "description": "string" - }, - "static": 1, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 251, - "description": "把 URL 相对路径 转换为 绝对路径", - "itemtype": "method", - "name": "relativePath", - "params": [ - { - "name": "_path", - "description": "", - "type": "String" - }, - { - "name": "_url", - "description": "", - "type": "String" - } - ], - "return": { - "description": "string" - }, - "static": 1, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 279, - "description": "按格式输出字符串", - "itemtype": "method", - "name": "printf", - "static": 1, - "params": [ - { - "name": "_str", - "description": "", - "type": "String" - } - ], - "return": { - "description": "string" - }, - "example": [ - "\n printf( 'asdfasdf{0}sdfasdf{1}', '000', 1111 );\n //return asdfasdf000sdfasdf1111" - ], - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 295, - "description": "按格式输出字符串", - "itemtype": "method", - "name": "printKey", - "static": 1, - "params": [ - { - "name": "_str", - "description": "", - "type": "String" - }, - { - "name": "_keys", - "description": "", - "type": "Object" - } - ], - "return": { - "description": "string" - }, - "example": [ - "\n JC.f.printKey( 'asdfasdf{key1}sdfasdf{key2},{0}', { 'key1': '000', 'key2': 1111, '0': 222 );\n //return asdfasdf000sdfasdf1111,222" - ], - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 313, - "description": "判断URL中是否有某个get参数", - "itemtype": "method", - "name": "hasUrlParam", - "params": [ - { - "name": "_url", - "description": "", - "type": "String" - }, - { - "name": "_key", - "description": "", - "type": "String" - } - ], - "return": { - "description": "bool" - }, - "static": 1, - "example": [ - "\n var bool = hasUrlParam( 'getkey' );" - ], - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 335, - "description": "添加URL参数\n
      require: delUrlParam, filterXSS", - "itemtype": "method", - "name": "addUrlParams", - "params": [ - { - "name": "_url", - "description": "", - "type": "String" - }, - { - "name": "_params", - "description": "", - "type": "Object" - } - ], - "return": { - "description": "string" - }, - "static": 1, - "example": [ - "\n var url = addUrlParams( location.href, {'key1': 'key1value', 'key2': 'key2value' } );" - ], - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 361, - "description": "xss 过滤函数", - "itemtype": "method", - "name": "filterXSS", - "params": [ - { - "name": "_s", - "description": "", - "type": "String" - } - ], - "return": { - "description": "string" - }, - "static": 1, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 376, - "description": "取URL参数的值\n
      require: filterXSS", - "itemtype": "method", - "name": "getUrlParam", - "params": [ - { - "name": "_url", - "description": "", - "type": "String" - }, - { - "name": "_key", - "description": "", - "type": "String" - } - ], - "return": { - "description": "string" - }, - "static": 1, - "example": [ - "\n var defaultTag = getUrlParam(location.href, 'tag'); " - ], - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 404, - "description": "取URL参数的值, 这个方法返回数组\n
      与 getUrlParam 的区别是可以获取 checkbox 的所有值\n
      require: filterXSS", - "itemtype": "method", - "name": "getUrlParams", - "params": [ - { - "name": "_url", - "description": "", - "type": "String" - }, - { - "name": "_key", - "description": "", - "type": "String" - } - ], - "return": { - "description": "Array" - }, - "static": 1, - "example": [ - "\n var params = getUrlParams(location.href, 'tag'); " - ], - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 435, - "description": "删除URL参数\n
      require: filterXSS", - "itemtype": "method", - "name": "delUrlParam", - "params": [ - { - "name": "_url", - "description": "", - "type": "String" - }, - { - "name": "_key", - "description": "", - "type": "String" - } - ], - "return": { - "description": "string" - }, - "static": 1, - "example": [ - "\n var url = delUrlParam( location.href, 'tag' );" - ], - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 465, - "description": "批量删除URL参数\n
      require: delUrlParam", - "itemtype": "method", - "name": "delUrlParams", - "params": [ - { - "name": "_url", - "description": "", - "type": "String" - }, - { - "name": "_keys", - "description": "", - "type": "Array" - } - ], - "return": { - "description": "string" - }, - "static": 1, - "example": [ - "\n var url = delUrlParam( location.href, [ 'k1', 'k2' ] );" - ], - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 481, - "description": "提示需要 HTTP 环境", - "itemtype": "method", - "name": "httpRequire", - "static": 1, - "params": [ - { - "name": "_msg", - "description": "要提示的文字, 默认 \"本示例需要HTTP环境'", - "type": "String" - } - ], - "return": { - "description": "bool 如果是HTTP环境返回true, 否则返回false" - }, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 496, - "description": "删除 URL 的锚点\n
      require: addUrlParams, filterXSS", - "itemtype": "method", - "name": "removeUrlSharp", - "static": 1, - "params": [ - { - "name": "_url", - "description": "", - "type": "String" - }, - { - "name": "_nornd", - "description": "是否不添加随机参数", - "type": "Bool" - }, - { - "name": "_rndName", - "description": "", - "type": "String" - } - ], - "return": { - "description": "string" - }, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 518, - "description": "重载页面\n
      require: removeUrlSharp, addUrlParams, filterXSS", - "itemtype": "method", - "name": "reloadPage", - "static": 1, - "params": [ - { - "name": "_url", - "description": "", - "type": "String" - }, - { - "name": "_nornd", - "description": "", - "type": "Bool" - }, - { - "name": "_delayms", - "description": "", - "type": "Int" - } - ], - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 539, - "description": "取小数点的N位\n
      JS 解析 浮点数的时候,经常出现各种不可预知情况,这个函数就是为了解决这个问题", - "itemtype": "method", - "name": "parseFinance", - "static": 1, - "params": [ - { - "name": "_i", - "description": "", - "type": "Number" - }, - { - "name": "_dot", - "description": "default = 2", - "type": "Int" - } - ], - "return": { - "description": "number" - }, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 554, - "description": "js 附加字串函数", - "itemtype": "method", - "name": "padChar", - "static": 1, - "params": [ - { - "name": "_str", - "description": "", - "type": "String" - }, - { - "name": "_len", - "description": "", - "type": "Intl" - }, - { - "name": "_char", - "description": "", - "type": "String" - } - ], - "return": { - "description": "string" - }, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 570, - "description": "格式化日期为 YYYY-mm-dd 格式\n
      require: pad\\_char\\_f", - "itemtype": "method", - "name": "formatISODate", - "static": 1, - "params": [ - { - "name": "_date", - "description": "要格式化日期的日期对象", - "type": "Date" - }, - { - "name": "_split", - "description": "定义年月日的分隔符, 默认为 '-'", - "type": "String|undefined" - } - ], - "return": { - "description": "string" - }, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 584, - "description": "从 ISODate 字符串解析日期对象", - "itemtype": "method", - "name": "parseISODate", - "static": 1, - "params": [ - { - "name": "_datestr", - "description": "", - "type": "String" - } - ], - "return": { - "description": "date" - }, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 607, - "description": "从日期字符串解析日期对象\n
      兼容 JC.Calendar 日期格式", - "itemtype": "method", - "name": "parseDate", - "params": [ - { - "name": "_date", - "description": "", - "type": "Date" - }, - { - "name": "_selector", - "description": "如果 _selector 为真, 则尝试从 _selector 的 html 属性 dateParse 对日期进行格式化", - "type": "Selector" - }, - { - "name": "_forceISO", - "description": "是否强制转换为ISO日期", - "type": "Boolean" - } - ], - "return": { - "description": "", - "type": "Date|null" - }, - "static": 1, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 631, - "description": "获取不带 时分秒的 日期对象", - "itemtype": "method", - "name": "pureDate", - "params": [ - { - "name": "_d", - "description": "可选参数, 如果为空 = new Date", - "type": "Date" - } - ], - "return": { - "description": "Date" - }, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 643, - "description": "克隆日期对象", - "itemtype": "method", - "name": "cloneDate", - "static": 1, - "params": [ - { - "name": "_date", - "description": "需要克隆的日期", - "type": "Date" - } - ], - "return": { - "description": "", - "type": "Date" - }, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 651, - "description": "判断两个日期是否为同一天", - "itemtype": "method", - "name": "isSameDay", - "static": 1, - "params": [ - { - "name": "_d1", - "description": "需要判断的日期1", - "type": "Date" - }, - { - "name": "_d2", - "description": "需要判断的日期2", - "type": "Date" - } - ], - "return": { - "description": "", - "type": "Bool" - }, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 663, - "description": "判断两个日期是否为同一月份", - "itemtype": "method", - "name": "isSameMonth", - "static": 1, - "params": [ - { - "name": "_d1", - "description": "需要判断的日期1", - "type": "Date" - }, - { - "name": "_d2", - "description": "需要判断的日期2", - "type": "Date" - } - ], - "return": { - "description": "", - "type": "Bool" - }, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 676, - "description": "判断两个日期是否为同一季度", - "itemtype": "method", - "name": "isSameWeek", - "static": 1, - "params": [ - { - "name": "_d1", - "description": "需要判断的日期1", - "type": "Date" - }, - { - "name": "_d2", - "description": "需要判断的日期2", - "type": "Date" - } - ], - "return": { - "description": "", - "type": "Bool" - }, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 707, - "description": "判断两个日期是否为同一季度", - "itemtype": "method", - "name": "isSameSeason", - "static": 1, - "params": [ - { - "name": "_d1", - "description": "需要判断的日期1", - "type": "Date" - }, - { - "name": "_d2", - "description": "需要判断的日期2", - "type": "Date" - } - ], - "return": { - "description": "", - "type": "Bool" - }, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 739, - "description": "判断两个日期是否为同一年", - "itemtype": "method", - "name": "isSameYear", - "static": 1, - "params": [ - { - "name": "_d1", - "description": "需要判断的日期1", - "type": "Date" - }, - { - "name": "_d2", - "description": "需要判断的日期2", - "type": "Date" - } - ], - "return": { - "description": "", - "type": "Bool" - }, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 751, - "description": "取一年中所有的星期, 及其开始结束日期", - "itemtype": "method", - "name": "weekOfYear", - "static": 1, - "params": [ - { - "name": "_year", - "description": "", - "type": "Int" - }, - { - "name": "_dayOffset", - "description": "每周的默认开始为周几, 默认0(周一)", - "type": "Int" - } - ], - "return": { - "description": "Array" - }, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 763, - "description": "元旦开始的第一个星期一开始的一周为政治经济上的第一周", - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 788, - "description": "取一年中所有的季度, 及其开始结束日期", - "itemtype": "method", - "name": "seasonOfYear", - "static": 1, - "params": [ - { - "name": "_year", - "description": "", - "type": "Int" - } - ], - "return": { - "description": "Array" - }, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 824, - "description": "取某一天所在星期的开始结束日期,以及第几个星期", - "itemtype": "method", - "name": "dayOfWeek", - "static": 1, - "params": [ - { - "name": "_date", - "description": "", - "type": "Iso date" - }, - { - "name": "_dayOffset", - "description": "", - "type": "Int" - } - ], - "return": { - "description": "Object" - }, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 853, - "description": "取某一天所在季度的开始结束日期,以及第几个Q", - "itemtype": "method", - "name": "dayOfSeason", - "static": 1, - "params": [ - { - "name": "_date", - "description": "", - "type": "Iso date" - } - ], - "return": { - "description": "Object" - }, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 880, - "description": "取得一个月份中最大的一天", - "itemtype": "method", - "name": "maxDayOfMonth", - "static": 1, - "params": [ - { - "name": "_date", - "description": "", - "type": "Date" - } - ], - "return": { - "description": "月份中最大的一天", - "type": "Int" - }, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 893, - "description": "取当前脚本标签的 src路径", - "itemtype": "method", - "name": "scriptPath", - "static": 1, - "return": { - "description": "脚本所在目录的完整路径", - "type": "String" - }, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 905, - "description": "缓动函数, 动画效果为按时间缓动 \n
      这个函数只考虑递增, 你如果需要递减的话, 在回调里用 _maxVal - _stepval", - "itemtype": "method", - "name": "easyEffect", - "static": 1, - "params": [ - { - "name": "_cb", - "description": "缓动运动时的回调", - "type": "Function" - }, - { - "name": "_maxVal", - "description": "缓动的最大值, default = 200", - "type": "Number" - }, - { - "name": "_startVal", - "description": "缓动的起始值, default = 0", - "type": "Number" - }, - { - "name": "_duration", - "description": "缓动的总时间, 单位毫秒, default = 200", - "type": "Number" - }, - { - "name": "_stepMs", - "description": "缓动的间隔, 单位毫秒, default = 2", - "type": "Number" - } - ], - "return": { - "description": "interval" - }, - "example": [ - "\n $(document).ready(function(){\n window.js_output = $('span.js_output');\n window.ls = [];\n window.EFF_INTERVAL = easyEffect( effectcallback, 100);\n });\n\n function effectcallback( _stepval, _done ){\n js_output.html( _stepval );\n ls.push( _stepval );\n\n !_done && js_output.html( _stepval );\n _done && js_output.html( _stepval + '
      ' + ls.join() );\n }" - ], - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 959, - "description": "把输入值转换为布尔值", - "itemtype": "method", - "name": "parseBool", - "params": [ - { - "name": "_input", - "description": "", - "type": "*" - } - ], - "return": { - "description": "bool" - }, - "static": 1, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 978, - "description": "绑定或清除 mousewheel 事件", - "itemtype": "method", - "name": "mousewheelEvent", - "params": [ - { - "name": "_cb", - "description": "", - "type": "Function" - }, - { - "name": "_detach", - "description": "", - "type": "Bool" - }, - { - "name": "_selector", - "description": "default = document", - "type": "Selector" - } - ], - "static": 1, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 1002, - "description": "获取 selector 的指定父级标签", - "itemtype": "method", - "name": "getJqParent", - "params": [ - { - "name": "_selector", - "description": "", - "type": "Selector" - }, - { - "name": "_filter", - "description": "", - "type": "Selector" - } - ], - "return": { - "description": "selector" - }, - "require": "jquery", - "static": 1, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 1028, - "description": "扩展 jquery 选择器\n
      扩展起始字符的 '/' 符号为 jquery 父节点选择器\n
      扩展起始字符的 '|' 符号为 jquery 子节点选择器\n
      扩展起始字符的 '(' 符号为 jquery 父节点查找识别符( getJqParent )", - "itemtype": "method", - "name": "parentSelector", - "params": [ - { - "name": "_item", - "description": "", - "type": "Selector" - }, - { - "name": "_selector", - "description": "", - "type": "String" - }, - { - "name": "_finder", - "description": "", - "type": "Selector" - } - ], - "return": { - "description": "selector" - }, - "require": "jquery", - "static": 1, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 1096, - "description": "获取脚本模板的内容", - "itemtype": "method", - "name": "scriptContent", - "params": [ - { - "name": "_selector", - "description": "", - "type": "Selector" - } - ], - "return": { - "description": "string" - }, - "static": 1, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 1111, - "description": "取函数名 ( 匿名函数返回空 )", - "itemtype": "method", - "name": "funcName", - "params": [ - { - "name": "_func", - "description": "", - "type": "Function" - } - ], - "return": { - "description": "string" - }, - "static": 1, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 1126, - "description": "动态添加内容时, 初始化可识别的组件\n
      \n
      目前会自动识别的组件
      \n
      \n Bizs.CommonModify, JC.Panel, JC.Dialog\n
      自动识别的组件不用显式调用 jcAutoInitComps 去识别可识别的组件\n
      \n\n
      \n
      可识别的组件
      \n
      \n JC.AutoSelect, JC.AutoChecked, JC.AjaxUpload, JC.Calendar\n , JC.Drag, JC.DCalendar, JC.Placeholder, JC.TableFreeze, JC.ImageCutter, JC.Tab\n
      Bizs.DisableLogic, Bizs.FormLogic, Bizs.MoneyTips, Bizs.AutoSelectComplete\n
      \n", - "itemtype": "method", - "name": "jcAutoInitComps", - "params": [ - { - "name": "_selector", - "description": "", - "type": "Selector" - } - ], - "static": 1, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 1151, - "description": "联动下拉框", - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 1155, - "description": "日历组件", - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 1159, - "description": "双日历组件", - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 1163, - "description": "全选反选", - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 1167, - "description": "Ajax 上传", - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 1171, - "description": "占位符", - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 1175, - "description": "表格冻结", - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 1179, - "description": "拖曳", - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 1183, - "description": "图片裁切", - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 1191, - "description": "disable / enable", - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 1195, - "description": "表单提交逻辑", - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 1199, - "description": "格式化金额", - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 1203, - "description": "自动完成", - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 1210, - "description": "排期日期展示", - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 1215, - "description": "URL 占位符识别功能\n
      require: addUrlParams, filterXSS", - "itemtype": "method", - "name": "urlDetect", - "params": [ - { - "name": "_url", - "description": "如果 起始字符为 URL, 那么 URL 将祝为本页的URL", - "type": "String" - } - ], - "return": { - "description": "string" - }, - "static": 1, - "example": [ - "\n urlDetect( '?test' ); //output: ?test\n\n urlDetect( 'URL,a=1&b=2' ); //output: your.com?a=1&b=2\n urlDetect( 'URL,a=1,b=2' ); //output: your.com?a=1&b=2\n urlDetect( 'URLa=1&b=2' ); //output: your.com?a=1&b=2" - ], - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 1256, - "description": "日期占位符识别功能", - "itemtype": "method", - "name": "dateDetect", - "params": [ - { - "name": "_dateStr", - "description": "如果起始字符为 NOW, 那么将视为当前日期\n , 如果起始字符为 NOWFirst, 那么将视为当前月的1号", - "type": "String" - } - ], - "return": { - "description": "", - "type": "Date|null" - }, - "static": 1, - "example": [ - "\n dateDetect( 'now' ); //2014-10-02\n dateDetect( 'now,3d' ); //2013-10-05\n dateDetect( 'now,-3d' ); //2013-09-29\n dateDetect( 'now,2w' ); //2013-10-16\n dateDetect( 'now,-2m' ); //2013-08-02\n dateDetect( 'now,4y' ); //2017-10-02\n\n dateDetect( 'now,1d,1w,1m,1y' ); //2014-11-10" - ], - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 1325, - "description": "inject jquery val func, for hidden change event", - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 1343, - "description": "逗号格式化金额", - "itemtype": "method", - "name": "moneyFormat", - "params": [ - { - "name": "_number", - "description": "", - "type": "Int|string" - }, - { - "name": "_len", - "description": "", - "type": "Int" - }, - { - "name": "_floatLen", - "description": "", - "type": "Int" - }, - { - "name": "_splitSymbol", - "description": "", - "type": "Int" - } - ], - "return": { - "description": "string" - }, - "static": 1, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 1398, - "description": "日期格式化 (具体格式请查看 PHP Date Formats)", - "itemtype": "method", - "name": "dateFormat", - "params": [ - { - "name": "_date", - "description": "default = now", - "type": "Date" - }, - { - "name": "_format", - "description": "default = \"YY-MM-DD\"", - "type": "String" - } - ], - "return": { - "description": "string" - }, - "static": 1, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 1479, - "description": "扩展对象属性", - "itemtype": "method", - "name": "extendObject", - "params": [ - { - "name": "_source", - "description": "", - "type": "Object" - }, - { - "name": "_new", - "description": "", - "type": "Object" - }, - { - "name": "_overwrite", - "description": "是否覆盖已有属性, default = true", - "type": "Bool" - } - ], - "return": { - "description": "object" - }, - "static": 1, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 1501, - "description": "timeout 控制逻辑, 避免相同功能的 setTimeout 重复执行", - "itemtype": "method", - "name": "safeTimeout", - "params": [ - { - "name": "_timeout", - "description": "", - "type": "Timeout|function" - }, - { - "name": "_obj", - "description": "default = window.TIMEOUT_HOST || {}", - "type": "Object" - }, - { - "name": "_name", - "description": "default = 'NORMAL'", - "type": "String" - }, - { - "name": "_ms", - "description": "default = 50", - "type": "Int" - } - ], - "return": { - "description": "object" - }, - "static": 1, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 1522, - "description": "URL 请求时, 获取对URL参数进行编码的函数", - "itemtype": "method", - "name": "encoder", - "params": [ - { - "name": "_selector", - "description": "", - "type": "Selector" - } - ], - "return": { - "description": "default encodeURIComponent", - "type": "Encode function" - }, - "static": 1, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 1540, - "description": "深度克隆对象", - "itemtype": "method", - "name": "cloneObject", - "params": [ - { - "name": "_inObj", - "description": "", - "type": "Object" - } - ], - "return": { - "description": "Object" - }, - "static": 1, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 1583, - "description": "获取 document 的 相关大小", - "itemtype": "method", - "name": "docSize", - "params": [ - { - "name": "_doc", - "description": "", - "type": "Document" - } - ], - "return": { - "description": "Object" - }, - "static": 1, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.2/common.js", - "line": 1612, - "description": "获取 window 的 相关大小", - "itemtype": "method", - "name": "winSize", - "params": [ - { - "name": "_win,", - "description": "default = window", - "type": "Window" - } - ], - "return": { - "description": "Object" - }, - "static": 1, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 4, - "description": "如果 console 不可用, 生成一个模拟的 console 对象", - "class": "JC.f" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 16, - "description": "声明主要命名空间, 方便迁移", - "class": "JC.f" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 84, - "description": "保存需要自动识别的组件", - "itemtype": "property", - "name": "_AUTO_INIT_DATA", - "type": "Object", - "access": "protected", - "tagname": "", - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 123, - "description": "判断 JC.common 是否需要向后兼容, 如果需要的话, 向 window 添加全局静态函数", - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 146, - "description": "jquery 1.9.1 默认 string 没有 trim 方法, 这里对 string 原型添加一个默认的 trim 方法", - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 150, - "description": "兼容 低版本 ie Array 的 indexOf 方法", - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 182, - "description": "全局 css z-index 控制属性\n
      注意: 这个变量是 window.ZINDEX_COUNT", - "itemtype": "property", - "name": "ZINDEX_COUNT", - "type": "int", - "default": "50001", - "static": 1, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 200, - "description": "一维数组去重", - "itemtype": "method", - "name": "arrayId", - "params": [ - { - "name": "_ar", - "description": "", - "type": "Array" - } - ], - "return": { - "description": "Array" - }, - "static": 1, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 219, - "description": "生成全局唯一ID", - "itemtype": "method", - "name": "gid", - "return": { - "description": "string" - }, - "static": 1, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 230, - "description": "把函数的参数转为数组", - "itemtype": "method", - "name": "sliceArgs", - "params": [ - { - "name": "args", - "description": "", - "type": "Arguments" - } - ], - "return": { - "description": "Array" - }, - "static": 1, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 244, - "description": "取 URL 的 host name", - "itemtype": "method", - "name": "urlHostName", - "params": [ - { - "name": "_url", - "description": "", - "type": "String" - } - ], - "return": { - "description": "string" - }, - "static": 1, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 260, - "description": "把 URL 相对路径 转换为 绝对路径", - "itemtype": "method", - "name": "relativePath", - "params": [ - { - "name": "_path", - "description": "", - "type": "String" - }, - { - "name": "_url", - "description": "", - "type": "String" - } - ], - "return": { - "description": "string" - }, - "static": 1, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 288, - "description": "按格式输出字符串", - "itemtype": "method", - "name": "printf", - "static": 1, - "params": [ - { - "name": "_str", - "description": "", - "type": "String" - } - ], - "return": { - "description": "string" - }, - "example": [ - "\n printf( 'asdfasdf{0}sdfasdf{1}', '000', 1111 );\n //return asdfasdf000sdfasdf1111" - ], - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 304, - "description": "按格式输出字符串", - "itemtype": "method", - "name": "printKey", - "static": 1, - "params": [ - { - "name": "_str", - "description": "", - "type": "String" - }, - { - "name": "_keys", - "description": "", - "type": "Object" - } - ], - "return": { - "description": "string" - }, - "example": [ - "\n JC.f.printKey( 'asdfasdf{key1}sdfasdf{key2},{0}', { 'key1': '000', 'key2': 1111, '0': 222 );\n //return asdfasdf000sdfasdf1111,222" - ], - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 322, - "description": "判断URL中是否有某个get参数", - "itemtype": "method", - "name": "hasUrlParam", - "params": [ - { - "name": "_url", - "description": "", - "type": "String" - }, - { - "name": "_key", - "description": "", - "type": "String" - } - ], - "return": { - "description": "bool" - }, - "static": 1, - "example": [ - "\n var bool = hasUrlParam( 'getkey' );" - ], - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 344, - "description": "添加URL参数\n
      require: delUrlParam, filterXSS", - "itemtype": "method", - "name": "addUrlParams", - "params": [ - { - "name": "_url", - "description": "", - "type": "String" - }, - { - "name": "_params", - "description": "", - "type": "Object" - } - ], - "return": { - "description": "string" - }, - "static": 1, - "example": [ - "\n var url = addUrlParams( location.href, {'key1': 'key1value', 'key2': 'key2value' } );" - ], - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 370, - "description": "xss 过滤函数", - "itemtype": "method", - "name": "filterXSS", - "params": [ - { - "name": "_s", - "description": "", - "type": "String" - } - ], - "return": { - "description": "string" - }, - "static": 1, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 385, - "description": "取URL参数的值\n
      require: filterXSS", - "itemtype": "method", - "name": "getUrlParam", - "params": [ - { - "name": "_url", - "description": "", - "type": "String" - }, - { - "name": "_key", - "description": "", - "type": "String" - } - ], - "return": { - "description": "string" - }, - "static": 1, - "example": [ - "\n var defaultTag = getUrlParam(location.href, 'tag'); " - ], - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 413, - "description": "取URL参数的值, 这个方法返回数组\n
      与 getUrlParam 的区别是可以获取 checkbox 的所有值\n
      require: filterXSS", - "itemtype": "method", - "name": "getUrlParams", - "params": [ - { - "name": "_url", - "description": "", - "type": "String" - }, - { - "name": "_key", - "description": "", - "type": "String" - } - ], - "return": { - "description": "Array" - }, - "static": 1, - "example": [ - "\n var params = getUrlParams(location.href, 'tag'); " - ], - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 444, - "description": "删除URL参数\n
      require: filterXSS", - "itemtype": "method", - "name": "delUrlParam", - "params": [ - { - "name": "_url", - "description": "", - "type": "String" - }, - { - "name": "_key", - "description": "", - "type": "String" - } - ], - "return": { - "description": "string" - }, - "static": 1, - "example": [ - "\n var url = delUrlParam( location.href, 'tag' );" - ], - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 474, - "description": "批量删除URL参数\n
      require: delUrlParam", - "itemtype": "method", - "name": "delUrlParams", - "params": [ - { - "name": "_url", - "description": "", - "type": "String" - }, - { - "name": "_keys", - "description": "", - "type": "Array" - } - ], - "return": { - "description": "string" - }, - "static": 1, - "example": [ - "\n var url = delUrlParam( location.href, [ 'k1', 'k2' ] );" - ], - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 490, - "description": "提示需要 HTTP 环境", - "itemtype": "method", - "name": "httpRequire", - "static": 1, - "params": [ - { - "name": "_msg", - "description": "要提示的文字, 默认 \"本示例需要HTTP环境'", - "type": "String" - } - ], - "return": { - "description": "bool 如果是HTTP环境返回true, 否则返回false" - }, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 505, - "description": "删除 URL 的锚点\n
      require: addUrlParams, filterXSS", - "itemtype": "method", - "name": "removeUrlSharp", - "static": 1, - "params": [ - { - "name": "_url", - "description": "", - "type": "String" - }, - { - "name": "_nornd", - "description": "是否不添加随机参数", - "type": "Bool" - }, - { - "name": "_rndName", - "description": "", - "type": "String" - } - ], - "return": { - "description": "string" - }, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 527, - "description": "重载页面\n
      require: removeUrlSharp, addUrlParams, filterXSS", - "itemtype": "method", - "name": "reloadPage", - "static": 1, - "params": [ - { - "name": "_url", - "description": "", - "type": "String" - }, - { - "name": "_nornd", - "description": "", - "type": "Bool" - }, - { - "name": "_delayms", - "description": "", - "type": "Int" - } - ], - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 548, - "description": "取小数点的N位\n
      JS 解析 浮点数的时候,经常出现各种不可预知情况,这个函数就是为了解决这个问题", - "itemtype": "method", - "name": "parseFinance", - "static": 1, - "params": [ - { - "name": "_i", - "description": "", - "type": "Number" - }, - { - "name": "_dot", - "description": "default = 2", - "type": "Int" - } - ], - "return": { - "description": "number" - }, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 563, - "description": "js 附加字串函数", - "itemtype": "method", - "name": "padChar", - "static": 1, - "params": [ - { - "name": "_str", - "description": "", - "type": "String" - }, - { - "name": "_len", - "description": "", - "type": "Intl" - }, - { - "name": "_char", - "description": "", - "type": "String" - } - ], - "return": { - "description": "string" - }, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 579, - "description": "格式化日期为 YYYY-mm-dd 格式\n
      require: pad\\_char\\_f", - "itemtype": "method", - "name": "formatISODate", - "static": 1, - "params": [ - { - "name": "_date", - "description": "要格式化日期的日期对象", - "type": "Date" - }, - { - "name": "_split", - "description": "定义年月日的分隔符, 默认为 '-'", - "type": "String|undefined" - } - ], - "return": { - "description": "string" - }, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 593, - "description": "从 ISODate 字符串解析日期对象", - "itemtype": "method", - "name": "parseISODate", - "static": 1, - "params": [ - { - "name": "_datestr", - "description": "", - "type": "String" - } - ], - "return": { - "description": "date" - }, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 616, - "description": "从日期字符串解析日期对象\n
      兼容 JC.Calendar 日期格式", - "itemtype": "method", - "name": "parseDate", - "params": [ - { - "name": "_date", - "description": "", - "type": "Date" - }, - { - "name": "_selector", - "description": "如果 _selector 为真, 则尝试从 _selector 的 html 属性 dateParse 对日期进行格式化", - "type": "Selector" - }, - { - "name": "_forceISO", - "description": "是否强制转换为ISO日期", - "type": "Boolean" - } - ], - "return": { - "description": "", - "type": "Date|null" - }, - "static": 1, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 640, - "description": "获取不带 时分秒的 日期对象", - "itemtype": "method", - "name": "pureDate", - "params": [ - { - "name": "_d", - "description": "可选参数, 如果为空 = new Date", - "type": "Date" - } - ], - "return": { - "description": "Date" - }, - "static": 1, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 653, - "description": "克隆日期对象", - "itemtype": "method", - "name": "cloneDate", - "static": 1, - "params": [ - { - "name": "_date", - "description": "需要克隆的日期", - "type": "Date" - } - ], - "return": { - "description": "", - "type": "Date" - }, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 661, - "description": "判断两个日期是否为同一天", - "itemtype": "method", - "name": "isSameDay", - "static": 1, - "params": [ - { - "name": "_d1", - "description": "需要判断的日期1", - "type": "Date" - }, - { - "name": "_d2", - "description": "需要判断的日期2", - "type": "Date" - } - ], - "return": { - "description": "", - "type": "Bool" - }, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 673, - "description": "判断两个日期是否为同一月份", - "itemtype": "method", - "name": "isSameMonth", - "static": 1, - "params": [ - { - "name": "_d1", - "description": "需要判断的日期1", - "type": "Date" - }, - { - "name": "_d2", - "description": "需要判断的日期2", - "type": "Date" - } - ], - "return": { - "description": "", - "type": "Bool" - }, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 686, - "description": "判断两个日期是否为同一季度", - "itemtype": "method", - "name": "isSameWeek", - "static": 1, - "params": [ - { - "name": "_d1", - "description": "需要判断的日期1", - "type": "Date" - }, - { - "name": "_d2", - "description": "需要判断的日期2", - "type": "Date" - } - ], - "return": { - "description": "", - "type": "Bool" - }, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 717, - "description": "判断两个日期是否为同一季度", - "itemtype": "method", - "name": "isSameSeason", - "static": 1, - "params": [ - { - "name": "_d1", - "description": "需要判断的日期1", - "type": "Date" - }, - { - "name": "_d2", - "description": "需要判断的日期2", - "type": "Date" - } - ], - "return": { - "description": "", - "type": "Bool" - }, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 749, - "description": "判断两个日期是否为同一年", - "itemtype": "method", - "name": "isSameYear", - "static": 1, - "params": [ - { - "name": "_d1", - "description": "需要判断的日期1", - "type": "Date" - }, - { - "name": "_d2", - "description": "需要判断的日期2", - "type": "Date" - } - ], - "return": { - "description": "", - "type": "Bool" - }, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 761, - "description": "取一年中所有的星期, 及其开始结束日期", - "itemtype": "method", - "name": "weekOfYear", - "static": 1, - "params": [ - { - "name": "_year", - "description": "", - "type": "Int" - }, - { - "name": "_dayOffset", - "description": "每周的默认开始为周几, 默认0(周一)", - "type": "Int" - } - ], - "return": { - "description": "Array" - }, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 773, - "description": "元旦开始的第一个星期一开始的一周为政治经济上的第一周", - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 798, - "description": "取一年中所有的季度, 及其开始结束日期", - "itemtype": "method", - "name": "seasonOfYear", - "static": 1, - "params": [ - { - "name": "_year", - "description": "", - "type": "Int" - } - ], - "return": { - "description": "Array" - }, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 834, - "description": "取某一天所在星期的开始结束日期,以及第几个星期", - "itemtype": "method", - "name": "dayOfWeek", - "static": 1, - "params": [ - { - "name": "_date", - "description": "", - "type": "Iso date" - }, - { - "name": "_dayOffset", - "description": "", - "type": "Int" - } - ], - "return": { - "description": "Object" - }, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 863, - "description": "取某一天所在季度的开始结束日期,以及第几个Q", - "itemtype": "method", - "name": "dayOfSeason", - "static": 1, - "params": [ - { - "name": "_date", - "description": "", - "type": "Iso date" - } - ], - "return": { - "description": "Object" - }, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 890, - "description": "取得一个月份中最大的一天", - "itemtype": "method", - "name": "maxDayOfMonth", - "static": 1, - "params": [ - { - "name": "_date", - "description": "", - "type": "Date" - } - ], - "return": { - "description": "月份中最大的一天", - "type": "Int" - }, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 903, - "description": "取当前脚本标签的 src路径", - "itemtype": "method", - "name": "scriptPath", - "static": 1, - "return": { - "description": "脚本所在目录的完整路径", - "type": "String" - }, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 915, - "description": "缓动函数, 动画效果为按时间缓动 \n
      这个函数只考虑递增, 你如果需要递减的话, 在回调里用 _maxVal - _stepval", - "itemtype": "method", - "name": "easyEffect", - "static": 1, - "params": [ - { - "name": "_cb", - "description": "缓动运动时的回调", - "type": "Function" - }, - { - "name": "_maxVal", - "description": "缓动的最大值, default = 200", - "type": "Number" - }, - { - "name": "_startVal", - "description": "缓动的起始值, default = 0", - "type": "Number" - }, - { - "name": "_duration", - "description": "缓动的总时间, 单位毫秒, default = 200", - "type": "Number" - }, - { - "name": "_stepMs", - "description": "缓动的间隔, 单位毫秒, default = 2", - "type": "Number" - } - ], - "return": { - "description": "interval" - }, - "example": [ - "\n $(document).ready(function(){\n window.js_output = $('span.js_output');\n window.ls = [];\n window.EFF_INTERVAL = easyEffect( effectcallback, 100);\n });\n\n function effectcallback( _stepval, _done ){\n js_output.html( _stepval );\n ls.push( _stepval );\n\n !_done && js_output.html( _stepval );\n _done && js_output.html( _stepval + '
      ' + ls.join() );\n }" - ], - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 969, - "description": "把输入值转换为布尔值", - "itemtype": "method", - "name": "parseBool", - "params": [ - { - "name": "_input", - "description": "", - "type": "*" - } - ], - "return": { - "description": "bool" - }, - "static": 1, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 988, - "description": "绑定或清除 mousewheel 事件", - "itemtype": "method", - "name": "mousewheelEvent", - "params": [ - { - "name": "_cb", - "description": "", - "type": "Function" - }, - { - "name": "_detach", - "description": "", - "type": "Bool" - }, - { - "name": "_selector", - "description": "default = document", - "type": "Selector" - } - ], - "static": 1, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 1012, - "description": "获取 selector 的指定父级标签", - "itemtype": "method", - "name": "getJqParent", - "params": [ - { - "name": "_selector", - "description": "", - "type": "Selector" - }, - { - "name": "_filter", - "description": "", - "type": "Selector" - } - ], - "return": { - "description": "selector" - }, - "require": "jquery", - "static": 1, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 1038, - "description": "扩展 jquery 选择器\n
      扩展起始字符的 '/' 符号为 jquery 父节点选择器\n
      扩展起始字符的 '|' 符号为 jquery 子节点选择器\n
      扩展起始字符的 '(' 符号为 jquery 父节点查找识别符( getJqParent )", - "itemtype": "method", - "name": "parentSelector", - "params": [ - { - "name": "_item", - "description": "", - "type": "Selector" - }, - { - "name": "_selector", - "description": "", - "type": "String" - }, - { - "name": "_finder", - "description": "", - "type": "Selector" - } - ], - "return": { - "description": "selector" - }, - "require": "jquery", - "static": 1, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 1106, - "description": "获取脚本模板的内容", - "itemtype": "method", - "name": "scriptContent", - "params": [ - { - "name": "_selector", - "description": "", - "type": "Selector" - } - ], - "return": { - "description": "string" - }, - "static": 1, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 1121, - "description": "取函数名 ( 匿名函数返回空 )", - "itemtype": "method", - "name": "funcName", - "params": [ - { - "name": "_func", - "description": "", - "type": "Function" - } - ], - "return": { - "description": "string" - }, - "static": 1, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 1136, - "description": "执行自动识别的组件", - "itemtype": "method", - "name": "autoInit", - "params": [ - { - "name": "_selector", - "description": "", - "type": "Selector" - } - ], - "static": 1, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 1153, - "description": "添加需要自动识别的组件", - "itemtype": "method", - "name": "addAutoInit", - "params": [ - { - "name": "_class", - "description": "", - "type": "Class" - } - ], - "static": 1, - "example": [ - "\n JC.f.addAutoInit( JC.Calendar );" - ], - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 1172, - "description": "jcAutoInitComps 不久后将被清除\n请使用 JC.f.autoInit 和 JC.f.addAutoInit", - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 1180, - "description": "联动下拉框", - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 1184, - "description": "日历组件", - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 1188, - "description": "双日历组件", - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 1192, - "description": "全选反选", - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 1196, - "description": "Ajax 上传", - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 1200, - "description": "占位符", - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 1204, - "description": "表格冻结", - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 1208, - "description": "拖曳", - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 1212, - "description": "图片裁切", - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 1220, - "description": "disable / enable", - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 1224, - "description": "表单提交逻辑", - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 1228, - "description": "格式化金额", - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 1232, - "description": "自动完成", - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 1239, - "description": "排期日期展示", - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 1245, - "description": "URL 占位符识别功能\n
      require: addUrlParams, filterXSS", - "itemtype": "method", - "name": "urlDetect", - "params": [ - { - "name": "_url", - "description": "如果 起始字符为 URL, 那么 URL 将祝为本页的URL", - "type": "String" - } - ], - "return": { - "description": "string" - }, - "static": 1, - "example": [ - "\n urlDetect( '?test' ); //output: ?test\n\n urlDetect( 'URL,a=1&b=2' ); //output: your.com?a=1&b=2\n urlDetect( 'URL,a=1,b=2' ); //output: your.com?a=1&b=2\n urlDetect( 'URLa=1&b=2' ); //output: your.com?a=1&b=2" - ], - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 1286, - "description": "日期占位符识别功能", - "itemtype": "method", - "name": "dateDetect", - "params": [ - { - "name": "_dateStr", - "description": "如果起始字符为 NOW, 那么将视为当前日期\n , 如果起始字符为 NOWFirst, 那么将视为当前月的1号", - "type": "String" - } - ], - "return": { - "description": "", - "type": "Date|null" - }, - "static": 1, - "example": [ - "\n dateDetect( 'now' ); //2014-10-02\n dateDetect( 'now,3d' ); //2013-10-05\n dateDetect( 'now,-3d' ); //2013-09-29\n dateDetect( 'now,2w' ); //2013-10-16\n dateDetect( 'now,-2m' ); //2013-08-02\n dateDetect( 'now,4y' ); //2017-10-02\n\n dateDetect( 'now,1d,1w,1m,1y' ); //2014-11-10" - ], - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 1355, - "description": "inject jquery val func, for hidden change event", - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 1373, - "description": "逗号格式化金额", - "itemtype": "method", - "name": "moneyFormat", - "params": [ - { - "name": "_number", - "description": "", - "type": "Int|string" - }, - { - "name": "_len", - "description": "", - "type": "Int" - }, - { - "name": "_floatLen", - "description": "", - "type": "Int" - }, - { - "name": "_splitSymbol", - "description": "", - "type": "Int" - } - ], - "return": { - "description": "string" - }, - "static": 1, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 1428, - "description": "日期格式化 (具体格式请查看 PHP Date Formats)", - "itemtype": "method", - "name": "dateFormat", - "params": [ - { - "name": "_date", - "description": "default = now", - "type": "Date" - }, - { - "name": "_format", - "description": "default = \"YY-MM-DD\"", - "type": "String" - } - ], - "return": { - "description": "string" - }, - "static": 1, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 1509, - "description": "扩展对象属性", - "itemtype": "method", - "name": "extendObject", - "params": [ - { - "name": "_source", - "description": "", - "type": "Object" - }, - { - "name": "_new", - "description": "", - "type": "Object" - }, - { - "name": "_overwrite", - "description": "是否覆盖已有属性, default = true", - "type": "Bool" - } - ], - "return": { - "description": "object" - }, - "static": 1, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 1531, - "description": "timeout 控制逻辑, 避免相同功能的 setTimeout 重复执行", - "itemtype": "method", - "name": "safeTimeout", - "params": [ - { - "name": "_timeout", - "description": "", - "type": "Timeout|function" - }, - { - "name": "_obj", - "description": "default = window.TIMEOUT_HOST || {}", - "type": "Object" - }, - { - "name": "_name", - "description": "default = 'NORMAL'", - "type": "String" - }, - { - "name": "_ms", - "description": "default = 50", - "type": "Int" - } - ], - "return": { - "description": "object" - }, - "static": 1, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 1552, - "description": "URL 请求时, 获取对URL参数进行编码的函数", - "itemtype": "method", - "name": "encoder", - "params": [ - { - "name": "_selector", - "description": "", - "type": "Selector" - } - ], - "return": { - "description": "default encodeURIComponent", - "type": "Encode function" - }, - "static": 1, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 1570, - "description": "深度克隆对象", - "itemtype": "method", - "name": "cloneObject", - "params": [ - { - "name": "_inObj", - "description": "", - "type": "Object" - } - ], - "return": { - "description": "Object" - }, - "static": 1, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 1613, - "description": "获取 document 的 相关大小", - "itemtype": "method", - "name": "docSize", - "params": [ - { - "name": "_doc", - "description": "", - "type": "Document" - } - ], - "return": { - "description": "Object" - }, - "static": 1, - "class": "JC.common" - }, - { - "file": "../modules/JC.common/0.3/common.js", - "line": 1642, - "description": "获取 window 的 相关大小", - "itemtype": "method", - "name": "winSize", - "params": [ - { - "name": "_win,", - "description": "default = window", - "type": "Window" - } - ], - "return": { - "description": "Object" - }, - "static": 1, - "class": "JC.common" - }, - { - "file": "../config.js", - "line": 4, - "description": "requirejs config.js for JC Chart Project", - "class": "window.requirejs", - "namespace": "window" - }, - { - "file": "../config.js", - "line": 27, - "description": "取当前脚本标签的 src路径", - "static": 1, - "return": { - "description": "脚本所在目录的完整路径", - "type": "String" - }, - "class": "window.requirejs", - "namespace": "window" - }, - { - "file": "../lib.js", - "line": 8, - "license": "RequireJS 2.1.8 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.\nAvailable via the MIT or new BSD license.\nsee: http://github.com/jrburke/requirejs for details", - "class": "window.requirejs", - "namespace": "window" - }, - { - "file": "../lib.js", - "line": 56, - "description": "Helper function for iterating over an array. If the func returns\na true value, it will break out of the loop.", - "class": "window.requirejs", - "namespace": "window" - }, - { - "file": "../lib.js", - "line": 71, - "description": "Helper function for iterating over an array backwards. If the func\nreturns a true value, it will break out of the loop.", - "class": "window.requirejs", - "namespace": "window" - }, - { - "file": "../lib.js", - "line": 94, - "description": "Cycles over properties in an object and calls a function for each\nproperty value. If the function returns a truthy value, then the\niteration is stopped.", - "class": "window.requirejs", - "namespace": "window" - }, - { - "file": "../lib.js", - "line": 110, - "description": "Simple function to mix in properties from source into target,\nbut only if target does not already have a property of the same name.", - "class": "window.requirejs", - "namespace": "window" - }, - { - "file": "../lib.js", - "line": 161, - "description": "Constructs an error with a pointer to an URL with more information.", - "params": [ - { - "name": "id", - "description": "the error ID that maps to an ID on a web page.", - "type": "String" - }, - { - "name": "message", - "description": "human readable error.", - "type": "String" - }, - { - "name": "err", - "description": "the original error, if there is one.", - "type": "Error", - "optional": true - } - ], - "return": { - "description": "", - "type": "Error" - }, - "class": "window.requirejs", - "namespace": "window" - }, - { - "file": "../lib.js", - "line": 227, - "description": "Trims the . and .. from an array of path segments.\nIt will keep a leading path segment if a .. will become\nthe first path segment, to help with module name lookups,\nwhich act like paths, but can be remapped. But the end result,\nall paths that use this function should look normalized.\nNOTE: this method MODIFIES the input array.", - "params": [ - { - "name": "ary", - "description": "the array of path segments.", - "type": "Array" - } - ], - "class": "window.requirejs", - "namespace": "window" - }, - { - "file": "../lib.js", - "line": 260, - "description": "Given a relative module name, like ./something, normalize it to\na real name that can be mapped to a path.", - "params": [ - { - "name": "name", - "description": "the relative name", - "type": "String" - }, - { - "name": "baseName", - "description": "a real name that the name arg is relative\nto.", - "type": "String" - }, - { - "name": "applyMap", - "description": "apply the map config to the value. Should\nonly be done if this normalization is for a dependency ID.", - "type": "Boolean" - } - ], - "return": { - "description": "normalized name", - "type": "String" - }, - "class": "window.requirejs", - "namespace": "window" - }, - { - "file": "../lib.js", - "line": 406, - "description": "Creates a module mapping that includes plugin prefix, module\nname, and path. If parentModuleMap is provided it will\nalso normalize the name via require.normalize()", - "params": [ - { - "name": "name", - "description": "the module name", - "type": "String" - }, - { - "name": "parentModuleMap", - "description": "parent module map\nfor the module name, used to resolve relative names.", - "type": "String", - "optional": true - }, - { - "name": "isNormalized:", - "description": "is the ID already normalized.\nThis is true if this call is done for a define() module ID.", - "type": "Boolean" - }, - { - "name": "applyMap:", - "description": "apply the map config to the ID.\nShould only be true if this map is for a dependency.", - "type": "Boolean" - } - ], - "return": { - "description": "", - "type": "Object" - }, - "class": "window.requirejs", - "namespace": "window" - }, - { - "file": "../lib.js", - "line": 548, - "description": "Internal method to transfer globalQueue items to this context's\ndefQueue.", - "class": "window.requirejs", - "namespace": "window" - }, - { - "file": "../lib.js", - "line": 836, - "description": "Checks if the module is ready to define itself, and if so,\ndefine it.", - "class": "window.requirejs", - "namespace": "window" - }, - { - "file": "../lib.js", - "line": 1195, - "description": "Given an event from a script node, get the requirejs info from it,\nand then removes the event listeners on the node.", - "params": [ - { - "name": "evt", - "description": "", - "type": "Event" - } - ], - "return": { - "description": "", - "type": "Object" - }, - "class": "window.requirejs", - "namespace": "window" - }, - { - "file": "../lib.js", - "line": 1248, - "description": "Set a configuration for the context.", - "params": [ - { - "name": "cfg", - "description": "config object to integrate.", - "type": "Object" - } - ], - "class": "window.requirejs", - "namespace": "window" - }, - { - "file": "../lib.js", - "line": 1432, - "description": "Converts a module name + .extension into an URL path.\n*Requires* the use of a module name. It does not support using\nplain URLs like nameToUrl.", - "class": "window.requirejs", - "namespace": "window" - }, - { - "file": "../lib.js", - "line": 1494, - "description": "Called to enable a module if it is still in the registry\nawaiting enablement. A second arg, parent, the parent module,\nis passed in for context, when this method is overriden by\nthe optimizer. Not shown here to keep code compact.", - "class": "window.requirejs", - "namespace": "window" - }, - { - "file": "../lib.js", - "line": 1507, - "description": "Internal method used by environment adapters to complete a load event.\nA load event could be a script load or just a load pass from a synchronous\nload call.", - "params": [ - { - "name": "moduleName", - "description": "the name of the module to potentially complete.", - "type": "String" - } - ], - "class": "window.requirejs", - "namespace": "window" - }, - { - "file": "../lib.js", - "line": 1563, - "description": "Converts a module name to a file path. Supports cases where\nmoduleName may actually be just an URL.\nNote that it **does not** call normalize on the moduleName,\nit is assumed to have already been normalized. This is an\ninternal API, not a public one. Use toUrl for the public API.", - "class": "window.requirejs", - "namespace": "window" - }, - { - "file": "../lib.js", - "line": 1634, - "description": "Executes a module callback function. Broken out as a separate function\nsolely to allow the build system to sequence the files in the built\nlayer in the right sequence.", - "access": "private", - "tagname": "", - "class": "window.requirejs", - "namespace": "window" - }, - { - "file": "../lib.js", - "line": 1645, - "description": "callback for script loads, used to check status of loading.", - "params": [ - { - "name": "evt", - "description": "the event from the browser for the script\nthat was loaded.", - "type": "Event" - } - ], - "class": "window.requirejs", - "namespace": "window" - }, - { - "file": "../lib.js", - "line": 1667, - "description": "Callback for script errors.", - "class": "window.requirejs", - "namespace": "window" - }, - { - "file": "../lib.js", - "line": 1682, - "description": "Main entry point.\n\nIf the only argument to require is a string, then the module that\nis represented by that string is fetched for the appropriate context.\n\nIf the first argument is an array, then it will be treated as an array\nof dependency string names to fetch. An optional function callback can\nbe specified to execute when all of those dependencies are available.\n\nMake a local req variable to help Caja compliance (it assumes things\non a require that are not standardized), and to give a short\nname for minification/local scope use.", - "class": "window.requirejs", - "namespace": "window" - }, - { - "file": "../lib.js", - "line": 1732, - "description": "Support require.config() to make it easier to cooperate with other\nAMD loaders on globally agreed names.", - "class": "window.requirejs", - "namespace": "window" - }, - { - "file": "../lib.js", - "line": 1740, - "description": "Execute something after the current tick\nof the event loop. Override for other envs\nthat have a better solution than setTimeout.", - "params": [ - { - "name": "fn", - "description": "function to execute later.", - "type": "Function" - } - ], - "class": "window.requirejs", - "namespace": "window" - }, - { - "file": "../lib.js", - "line": 1750, - "description": "Export require as a global, but only if it does not already exist.", - "class": "window.requirejs", - "namespace": "window" - }, - { - "file": "../lib.js", - "line": 1797, - "description": "Any errors that require explicitly generates will be passed to this\nfunction. Intercept/override it if you want custom error handling.", - "params": [ - { - "name": "err", - "description": "the error object.", - "type": "Error" - } - ], - "class": "window.requirejs", - "namespace": "window" - }, - { - "file": "../lib.js", - "line": 1804, - "description": "Creates the node for the load command. Only used in browser envs.", - "class": "window.requirejs", - "namespace": "window" - }, - { - "file": "../lib.js", - "line": 1817, - "description": "Does the request to load a module for the browser case.\nMake this a separate function to allow other environments\nto override it.", - "params": [ - { - "name": "context", - "description": "the require context to find state.", - "type": "Object" - }, - { - "name": "moduleName", - "description": "the name of the module.", - "type": "String" - }, - { - "name": "url", - "description": "the URL to the module.", - "type": "Object" - } - ], - "class": "window.requirejs", - "namespace": "window" - }, - { - "file": "../lib.js", - "line": 1973, - "description": "The function that handles definitions of modules. Differs from\nrequire() in that a string for the module should be the first argument,\nand the function to execute after dependencies are loaded should\nreturn a value to define the module corresponding to the first argument's\nname.", - "class": "window.requirejs", - "namespace": "window" - }, - { - "file": "../lib.js", - "line": 2047, - "description": "Executes the text. Normally just uses eval, but can be modified\nto use a better, environment-specific call. Only used for transpiling\nloader plugins, not for plain JS modules.", - "params": [ - { - "name": "text", - "description": "the text to execute/evaluate.", - "type": "String" - } - ], - "class": "window.requirejs", - "namespace": "window" - }, - { - "file": "../nginx_config.js", - "line": 7, - "description": "requirejs config.js for JC Project", - "class": "", - "namespace": "window" - }, - { - "file": "../nginx_config.js", - "line": 70, - "description": "取当前脚本标签的 src路径", - "static": 1, - "return": { - "description": "脚本所在目录的完整路径", - "type": "String" - }, - "class": "", - "namespace": "window" - } - ], - "warnings": [ - { - "message": "unknown tag: version", - "line": " ../modules/JC.BaseMVC/0.1/BaseMVC.js:3" - }, - { - "message": "unknown tag: version", - "line": " ../modules/JC.BaseMVC/0.1/BaseMVC.js:249" - }, - { - "message": "unknown tag: version", - "line": " ../modules/JC.FChart/0.1/FChart.js:7" - }, - { - "message": "unknown tag: version", - "line": " ../modules/JC.FChartCircleData/0.1/FChartCircleData.js:2" - }, - { - "message": "unknown tag: version", - "line": " ../modules/JC.FChartNormalData/0.1/FChartNormalData.js:2" - }, - { - "message": "unknown tag: require", - "line": " ../modules/JC.common/0.1/common.js:445" - }, - { - "message": "unknown tag: require", - "line": " ../modules/JC.common/0.1/common.js:496" - }, - { - "message": "unknown tag: require", - "line": " ../modules/JC.common/0.1/common.js:522" - }, - { - "message": "unknown tag: version", - "line": " ../modules/JC.common/0.2/common.js:40" - }, - { - "message": "unknown tag: version", - "line": " ../modules/JC.common/0.2/common.js:40" - }, - { - "message": "unknown tag: require", - "line": " ../modules/JC.common/0.2/common.js:1002" - }, - { - "message": "unknown tag: require", - "line": " ../modules/JC.common/0.2/common.js:1028" - }, - { - "message": "unknown tag: version", - "line": " ../modules/JC.common/0.3/common.js:40" - }, - { - "message": "unknown tag: version", - "line": " ../modules/JC.common/0.3/common.js:40" - }, - { - "message": "unknown tag: version", - "line": " ../modules/JC.common/0.3/common.js:40" - }, - { - "message": "unknown tag: require", - "line": " ../modules/JC.common/0.3/common.js:1012" - }, - { - "message": "unknown tag: require", - "line": " ../modules/JC.common/0.3/common.js:1038" - }, - { - "message": "unknown tag: version", - "line": " ../modules/JSON/2/JSON.js:1" - }, - { - "message": "unknown tag: version", - "line": " ../modules/swfobject/2.3/swfobject.js:1" - }, - { - "message": "unknown tag: license", - "line": " ../lib.js:8" - }, - { - "message": "replacing incorrect tag: returns with return", - "line": " ../lib.js:161" - }, - { - "message": "replacing incorrect tag: returns with return", - "line": " ../lib.js:260" - }, - { - "message": "replacing incorrect tag: returns with return", - "line": " ../lib.js:406" - }, - { - "message": "replacing incorrect tag: returns with return", - "line": " ../lib.js:1195" - }, - { - "message": "Missing item type\n初始化 BaseMVC Model 类 和 View 类", - "line": " ../modules/JC.BaseMVC/0.1/BaseMVC.js:244" - }, - { - "message": "Missing item type\n使用 jquery on 为 controler 绑定事件", - "line": " ../modules/JC.BaseMVC/0.1/BaseMVC.js:621" - }, - { - "message": "Missing item type\n使用 jquery trigger 触发 controler 绑定事件", - "line": " ../modules/JC.BaseMVC/0.1/BaseMVC.js:629" - }, - { - "message": "Missing item type", - "line": " ../modules/JC.FChart/0.1/FChart.js:205" - }, - { - "message": "Missing item type\n解析图表默认数据", - "line": " ../modules/JC.FChart/0.1/FChart.js:337" - }, - { - "message": "Missing item type\n保存图表数据", - "line": " ../modules/JC.FChart/0.1/FChart.js:359" - }, - { - "message": "Missing item type\n图表宽度", - "line": " ../modules/JC.FChart/0.1/FChart.js:370" - }, - { - "message": "Missing item type\n图表高度", - "line": " ../modules/JC.FChart/0.1/FChart.js:381" - }, - { - "message": "Missing item type\n图表宽度", - "line": " ../modules/JC.FChart/0.1/FChart.js:392" - }, - { - "message": "Missing item type\n设置或保存图表的宽高", - "line": " ../modules/JC.FChart/0.1/FChart.js:403" - }, - { - "message": "Missing item type\n图表画布", - "line": " ../modules/JC.FChart/0.1/FChart.js:411" - }, - { - "message": "Missing item type\n画布圆角弧度", - "line": " ../modules/JC.FChart/0.1/FChart.js:417" - }, - { - "message": "Missing item type\n清除图表数据", - "line": " ../modules/JC.FChart/0.1/FChart.js:421" - }, - { - "message": "Missing item type\n清除图表状态", - "line": " ../modules/JC.FChart/0.1/FChart.js:438" - }, - { - "message": "Missing item type\n渲染图表外观", - "line": " ../modules/JC.FChart/0.1/FChart.js:519" - }, - { - "message": "Missing item type\n图表高度", - "line": " ../modules/JC.FChart/0.1/FChart.js:559" - }, - { - "message": "Missing item type\n图表高度", - "line": " ../modules/JC.FChart/0.1/FChart.js:563" - }, - { - "message": "Missing item type\n图表画布", - "line": " ../modules/JC.FChart/0.1/FChart.js:567" - }, - { - "message": "Missing item type\n初始化的选择器", - "line": " ../modules/JC.FChart/0.1/FChart.js:571" - }, - { - "message": "Missing item type\n清除图表数据", - "line": " ../modules/JC.FChart/0.1/FChart.js:578" - }, - { - "message": "Missing item type\n清除图表状态", - "line": " ../modules/JC.FChart/0.1/FChart.js:588" - }, - { - "message": "Missing item type\n更新图表数据", - "line": " ../modules/JC.FChart/0.1/FChart.js:594" - }, - { - "message": "Missing item type\n如果 console 不可用, 则生成一个模拟的 console 对象", - "line": " ../modules/JC.common/0.1/common.js:9" - }, - { - "message": "Missing item type\n声明主要命名空间, 方便迁移", - "line": " ../modules/JC.common/0.1/common.js:15" - }, - { - "message": "Missing item type\n联动下拉框", - "line": " ../modules/JC.common/0.1/common.js:644" - }, - { - "message": "Missing item type\n日历组件", - "line": " ../modules/JC.common/0.1/common.js:648" - }, - { - "message": "Missing item type\n全选反选", - "line": " ../modules/JC.common/0.1/common.js:652" - }, - { - "message": "Missing item type\nAjax 上传", - "line": " ../modules/JC.common/0.1/common.js:656" - }, - { - "message": "Missing item type\nPlaceholder 占位符", - "line": " ../modules/JC.common/0.1/common.js:660" - }, - { - "message": "Missing item type\ndisable / enable", - "line": " ../modules/JC.common/0.1/common.js:666" - }, - { - "message": "Missing item type\n表单提交逻辑", - "line": " ../modules/JC.common/0.1/common.js:670" - }, - { - "message": "Missing item type\ninject jquery val func, for hidden change event", - "line": " ../modules/JC.common/0.1/common.js:773" - }, - { - "message": "Missing item type\n如果 console 不可用, 生成一个模拟的 console 对象", - "line": " ../modules/JC.common/0.2/common.js:4" - }, - { - "message": "Missing item type\n声明主要命名空间, 方便迁移", - "line": " ../modules/JC.common/0.2/common.js:16" - }, - { - "message": "Missing item type\n判断 JC.common 是否需要向后兼容, 如果需要的话, 向 window 添加全局静态函数", - "line": " ../modules/JC.common/0.2/common.js:114" - }, - { - "message": "Missing item type\njquery 1.9.1 默认 string 没有 trim 方法, 这里对 string 原型添加一个默认的 trim 方法", - "line": " ../modules/JC.common/0.2/common.js:137" - }, - { - "message": "Missing item type\n兼容 低版本 ie Array 的 indexOf 方法", - "line": " ../modules/JC.common/0.2/common.js:141" - }, - { - "message": "Missing item type\n元旦开始的第一个星期一开始的一周为政治经济上的第一周", - "line": " ../modules/JC.common/0.2/common.js:763" - }, - { - "message": "Missing item type\n联动下拉框", - "line": " ../modules/JC.common/0.2/common.js:1151" - }, - { - "message": "Missing item type\n日历组件", - "line": " ../modules/JC.common/0.2/common.js:1155" - }, - { - "message": "Missing item type\n双日历组件", - "line": " ../modules/JC.common/0.2/common.js:1159" - }, - { - "message": "Missing item type\n全选反选", - "line": " ../modules/JC.common/0.2/common.js:1163" - }, - { - "message": "Missing item type\nAjax 上传", - "line": " ../modules/JC.common/0.2/common.js:1167" - }, - { - "message": "Missing item type\n占位符", - "line": " ../modules/JC.common/0.2/common.js:1171" - }, - { - "message": "Missing item type\n表格冻结", - "line": " ../modules/JC.common/0.2/common.js:1175" - }, - { - "message": "Missing item type\n拖曳", - "line": " ../modules/JC.common/0.2/common.js:1179" - }, - { - "message": "Missing item type\n图片裁切", - "line": " ../modules/JC.common/0.2/common.js:1183" - }, - { - "message": "Missing item type\ndisable / enable", - "line": " ../modules/JC.common/0.2/common.js:1191" - }, - { - "message": "Missing item type\n表单提交逻辑", - "line": " ../modules/JC.common/0.2/common.js:1195" - }, - { - "message": "Missing item type\n格式化金额", - "line": " ../modules/JC.common/0.2/common.js:1199" - }, - { - "message": "Missing item type\n自动完成", - "line": " ../modules/JC.common/0.2/common.js:1203" - }, - { - "message": "Missing item type\n排期日期展示", - "line": " ../modules/JC.common/0.2/common.js:1210" - }, - { - "message": "Missing item type\ninject jquery val func, for hidden change event", - "line": " ../modules/JC.common/0.2/common.js:1325" - }, - { - "message": "Missing item type\n如果 console 不可用, 生成一个模拟的 console 对象", - "line": " ../modules/JC.common/0.3/common.js:4" - }, - { - "message": "Missing item type\n声明主要命名空间, 方便迁移", - "line": " ../modules/JC.common/0.3/common.js:16" - }, - { - "message": "Missing item type\n判断 JC.common 是否需要向后兼容, 如果需要的话, 向 window 添加全局静态函数", - "line": " ../modules/JC.common/0.3/common.js:123" - }, - { - "message": "Missing item type\njquery 1.9.1 默认 string 没有 trim 方法, 这里对 string 原型添加一个默认的 trim 方法", - "line": " ../modules/JC.common/0.3/common.js:146" - }, - { - "message": "Missing item type\n兼容 低版本 ie Array 的 indexOf 方法", - "line": " ../modules/JC.common/0.3/common.js:150" - }, - { - "message": "Missing item type\n元旦开始的第一个星期一开始的一周为政治经济上的第一周", - "line": " ../modules/JC.common/0.3/common.js:773" - }, - { - "message": "Missing item type\njcAutoInitComps 不久后将被清除\n请使用 JC.f.autoInit 和 JC.f.addAutoInit", - "line": " ../modules/JC.common/0.3/common.js:1172" - }, - { - "message": "Missing item type\n联动下拉框", - "line": " ../modules/JC.common/0.3/common.js:1180" - }, - { - "message": "Missing item type\n日历组件", - "line": " ../modules/JC.common/0.3/common.js:1184" - }, - { - "message": "Missing item type\n双日历组件", - "line": " ../modules/JC.common/0.3/common.js:1188" - }, - { - "message": "Missing item type\n全选反选", - "line": " ../modules/JC.common/0.3/common.js:1192" - }, - { - "message": "Missing item type\nAjax 上传", - "line": " ../modules/JC.common/0.3/common.js:1196" - }, - { - "message": "Missing item type\n占位符", - "line": " ../modules/JC.common/0.3/common.js:1200" - }, - { - "message": "Missing item type\n表格冻结", - "line": " ../modules/JC.common/0.3/common.js:1204" - }, - { - "message": "Missing item type\n拖曳", - "line": " ../modules/JC.common/0.3/common.js:1208" - }, - { - "message": "Missing item type\n图片裁切", - "line": " ../modules/JC.common/0.3/common.js:1212" - }, - { - "message": "Missing item type\ndisable / enable", - "line": " ../modules/JC.common/0.3/common.js:1220" - }, - { - "message": "Missing item type\n表单提交逻辑", - "line": " ../modules/JC.common/0.3/common.js:1224" - }, - { - "message": "Missing item type\n格式化金额", - "line": " ../modules/JC.common/0.3/common.js:1228" - }, - { - "message": "Missing item type\n自动完成", - "line": " ../modules/JC.common/0.3/common.js:1232" - }, - { - "message": "Missing item type\n排期日期展示", - "line": " ../modules/JC.common/0.3/common.js:1239" - }, - { - "message": "Missing item type\ninject jquery val func, for hidden change event", - "line": " ../modules/JC.common/0.3/common.js:1355" - }, - { - "message": "Missing item type\nrequirejs config.js for JC Chart Project", - "line": " ../config.js:4" - }, - { - "message": "Missing item type\n取当前脚本标签的 src路径", - "line": " ../config.js:27" - }, - { - "message": "Missing item type", - "line": " ../lib.js:8" - }, - { - "message": "Missing item type\nHelper function for iterating over an array. If the func returns\na true value, it will break out of the loop.", - "line": " ../lib.js:56" - }, - { - "message": "Missing item type\nHelper function for iterating over an array backwards. If the func\nreturns a true value, it will break out of the loop.", - "line": " ../lib.js:71" - }, - { - "message": "Missing item type\nCycles over properties in an object and calls a function for each\nproperty value. If the function returns a truthy value, then the\niteration is stopped.", - "line": " ../lib.js:94" - }, - { - "message": "Missing item type\nSimple function to mix in properties from source into target,\nbut only if target does not already have a property of the same name.", - "line": " ../lib.js:110" - }, - { - "message": "Missing item type\nConstructs an error with a pointer to an URL with more information.", - "line": " ../lib.js:161" - }, - { - "message": "Missing item type\nTrims the . and .. from an array of path segments.\nIt will keep a leading path segment if a .. will become\nthe first path segment, to help with module name lookups,\nwhich act like paths, but can be remapped. But the end result,\nall paths that use this function should look normalized.\nNOTE: this method MODIFIES the input array.", - "line": " ../lib.js:227" - }, - { - "message": "Missing item type\nGiven a relative module name, like ./something, normalize it to\na real name that can be mapped to a path.", - "line": " ../lib.js:260" - }, - { - "message": "Missing item type\nCreates a module mapping that includes plugin prefix, module\nname, and path. If parentModuleMap is provided it will\nalso normalize the name via require.normalize()", - "line": " ../lib.js:406" - }, - { - "message": "Missing item type\nInternal method to transfer globalQueue items to this context's\ndefQueue.", - "line": " ../lib.js:548" - }, - { - "message": "Missing item type\nChecks if the module is ready to define itself, and if so,\ndefine it.", - "line": " ../lib.js:836" - }, - { - "message": "Missing item type\nGiven an event from a script node, get the requirejs info from it,\nand then removes the event listeners on the node.", - "line": " ../lib.js:1195" - }, - { - "message": "Missing item type\nSet a configuration for the context.", - "line": " ../lib.js:1248" - }, - { - "message": "Missing item type\nConverts a module name + .extension into an URL path.\n*Requires* the use of a module name. It does not support using\nplain URLs like nameToUrl.", - "line": " ../lib.js:1432" - }, - { - "message": "Missing item type\nCalled to enable a module if it is still in the registry\nawaiting enablement. A second arg, parent, the parent module,\nis passed in for context, when this method is overriden by\nthe optimizer. Not shown here to keep code compact.", - "line": " ../lib.js:1494" - }, - { - "message": "Missing item type\nInternal method used by environment adapters to complete a load event.\nA load event could be a script load or just a load pass from a synchronous\nload call.", - "line": " ../lib.js:1507" - }, - { - "message": "Missing item type\nConverts a module name to a file path. Supports cases where\nmoduleName may actually be just an URL.\nNote that it **does not** call normalize on the moduleName,\nit is assumed to have already been normalized. This is an\ninternal API, not a public one. Use toUrl for the public API.", - "line": " ../lib.js:1563" - }, - { - "message": "Missing item type\nExecutes a module callback function. Broken out as a separate function\nsolely to allow the build system to sequence the files in the built\nlayer in the right sequence.", - "line": " ../lib.js:1634" - }, - { - "message": "Missing item type\ncallback for script loads, used to check status of loading.", - "line": " ../lib.js:1645" - }, - { - "message": "Missing item type\nCallback for script errors.", - "line": " ../lib.js:1667" - }, - { - "message": "Missing item type\nMain entry point.\n\nIf the only argument to require is a string, then the module that\nis represented by that string is fetched for the appropriate context.\n\nIf the first argument is an array, then it will be treated as an array\nof dependency string names to fetch. An optional function callback can\nbe specified to execute when all of those dependencies are available.\n\nMake a local req variable to help Caja compliance (it assumes things\non a require that are not standardized), and to give a short\nname for minification/local scope use.", - "line": " ../lib.js:1682" - }, - { - "message": "Missing item type\nSupport require.config() to make it easier to cooperate with other\nAMD loaders on globally agreed names.", - "line": " ../lib.js:1732" - }, - { - "message": "Missing item type\nExecute something after the current tick\nof the event loop. Override for other envs\nthat have a better solution than setTimeout.", - "line": " ../lib.js:1740" - }, - { - "message": "Missing item type\nExport require as a global, but only if it does not already exist.", - "line": " ../lib.js:1750" - }, - { - "message": "Missing item type\nAny errors that require explicitly generates will be passed to this\nfunction. Intercept/override it if you want custom error handling.", - "line": " ../lib.js:1797" - }, - { - "message": "Missing item type\nCreates the node for the load command. Only used in browser envs.", - "line": " ../lib.js:1804" - }, - { - "message": "Missing item type\nDoes the request to load a module for the browser case.\nMake this a separate function to allow other environments\nto override it.", - "line": " ../lib.js:1817" - }, - { - "message": "Missing item type\nThe function that handles definitions of modules. Differs from\nrequire() in that a string for the module should be the first argument,\nand the function to execute after dependencies are loaded should\nreturn a value to define the module corresponding to the first argument's\nname.", - "line": " ../lib.js:1973" - }, - { - "message": "Missing item type\nExecutes the text. Normally just uses eval, but can be modified\nto use a better, environment-specific call. Only used for transpiling\nloader plugins, not for plain JS modules.", - "line": " ../lib.js:2047" - }, - { - "message": "Missing item type\nrequirejs config.js for JC Project", - "line": " ../nginx_config.js:7" - }, - { - "message": "Missing item type\n取当前脚本标签的 src路径", - "line": " ../nginx_config.js:70" - } - ] -} \ No newline at end of file diff --git a/docs_api/files/.._config.js.html b/docs_api/files/.._config.js.html deleted file mode 100644 index 9a58dfe..0000000 --- a/docs_api/files/.._config.js.html +++ /dev/null @@ -1,176 +0,0 @@ - - - - - ../config.js - FChart - - - - - - - - - - - - - - -
      -
      -
      - -

      - -
      -
      - API Docs for: 0.2 -
      -
      -
      - -
      - -
      -
      -
      - Show: - - - - - - - -
      - - -
      -
      -
      -

      File: ../config.js

      - -
      -
      -;(function(){
      -window.JC = window.JC|| {log:function(){}};
      -JC.PATH = JC.PATH || scriptPath();
      -/**
      - * requirejs config.js for JC Chart Project
      - */
      -window.requirejs && 
      -requirejs.config( {
      -    baseUrl: JC.PATH
      -    , urlArgs: 'v=20150204'
      -    , paths: {
      -        'JC.common': 'modules/JC.common/0.3/common'
      -        , 'JC.BaseMVC': 'modules/JC.BaseMVC/0.1/BaseMVC'
      -
      -        , 'JC.FChart': 'modules/JC.FChart/0.1/FChart'
      -
      -        , 'JC.FChartNormalData': 'modules/JC.FChartNormalData/0.1/FChart.NormalData'
      -        , 'JC.FChartCircleData': 'modules/JC.FChartCircleData/0.1/FChart.FChartCircleData'
      -
      -        , 'jquery.mousewheel': 'modules/jquery.mousewheel/3.1.12/jquery.mousewheel'
      -
      -        , 'plugins.json2': 'modules/JSON/2/JSON'
      -        , 'swfobject': 'modules/swfobject/2.3/swfobject'
      -        , 'SWFObject': 'modules/swfobject/2.3/swfobject'
      -    }
      -});
      -/**
      - * 取当前脚本标签的 src路径 
      - * @static
      - * @return  {string} 脚本所在目录的完整路径
      - */
      -function scriptPath(){
      -    var _sc = document.getElementsByTagName('script'), _sc = _sc[ _sc.length - 1 ], _path = _sc.getAttribute('src');
      -    if( /\//.test( _path ) ){ _path = _path.split('/'); _path.pop(); _path = _path.join('/') + '/'; }
      -    else if( /\\/.test( _path ) ){ _path = _path.split('\\'); _path.pop(); _path = _path.join('\\') + '/'; }
      -    return _path;
      -}
      -}());
      -
      -    
      -
      - -
      -
      -
      -
      -
      -
      - - - - - - - - - - diff --git a/docs_api/files/.._lib.js.html b/docs_api/files/.._lib.js.html deleted file mode 100644 index ef656fe..0000000 --- a/docs_api/files/.._lib.js.html +++ /dev/null @@ -1,2218 +0,0 @@ - - - - - ../lib.js - FChart - - - - - - - - - - - - - - -
      -
      -
      - -

      - -
      -
      - API Docs for: 0.2 -
      -
      -
      - -
      - -
      -
      -
      - Show: - - - - - - - -
      - - -
      -
      -
      -

      File: ../lib.js

      - -
      -
      -/**
      - * RequireJS 2.1.8 
      - * <pre>http://github.com/jrburke/requirejs</pre>
      - * @class requirejs
      - * @namespace   window
      - * @global
      - */
      -/** vim: et:ts=4:sw=4:sts=4
      - * @license RequireJS 2.1.8 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
      - * Available via the MIT or new BSD license.
      - * see: http://github.com/jrburke/requirejs for details
      - */
      -//Not using strict: uneven strict support in browsers, #392, and causes
      -//problems with requirejs.exec()/transpiler plugins that may not be strict.
      -/*jslint regexp: true, nomen: true, sloppy: true */
      -/*global window, navigator, document, importScripts, setTimeout, opera */
      -
      -var requirejs, require, define;
      -(function (global) {
      -    var req, s, head, baseElement, dataMain, src,
      -        interactiveScript, currentlyAddingScript, mainScript, subPath,
      -        version = '2.1.8',
      -        commentRegExp = /(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,
      -        cjsRequireRegExp = /[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,
      -        jsSuffixRegExp = /\.js$/,
      -        currDirRegExp = /^\.\//,
      -        op = Object.prototype,
      -        ostring = op.toString,
      -        hasOwn = op.hasOwnProperty,
      -        ap = Array.prototype,
      -        apsp = ap.splice,
      -        isBrowser = !!(typeof window !== 'undefined' && navigator && window.document),
      -        isWebWorker = !isBrowser && typeof importScripts !== 'undefined',
      -        //PS3 indicates loaded and complete, but need to wait for complete
      -        //specifically. Sequence is 'loading', 'loaded', execution,
      -        // then 'complete'. The UA check is unfortunate, but not sure how
      -        //to feature test w/o causing perf issues.
      -        readyRegExp = isBrowser && navigator.platform === 'PLAYSTATION 3' ?
      -                      /^complete$/ : /^(complete|loaded)$/,
      -        defContextName = '_',
      -        //Oh the tragedy, detecting opera. See the usage of isOpera for reason.
      -        isOpera = typeof opera !== 'undefined' && opera.toString() === '[object Opera]',
      -        contexts = {},
      -        cfg = {},
      -        globalDefQueue = [],
      -        useInteractive = false;
      -
      -    function isFunction(it) {
      -        return ostring.call(it) === '[object Function]';
      -    }
      -
      -    function isArray(it) {
      -        return ostring.call(it) === '[object Array]';
      -    }
      -
      -    /**
      -     * Helper function for iterating over an array. If the func returns
      -     * a true value, it will break out of the loop.
      -     */
      -    function each(ary, func) {
      -        if (ary) {
      -            var i;
      -            for (i = 0; i < ary.length; i += 1) {
      -                if (ary[i] && func(ary[i], i, ary)) {
      -                    break;
      -                }
      -            }
      -        }
      -    }
      -
      -    /**
      -     * Helper function for iterating over an array backwards. If the func
      -     * returns a true value, it will break out of the loop.
      -     */
      -    function eachReverse(ary, func) {
      -        if (ary) {
      -            var i;
      -            for (i = ary.length - 1; i > -1; i -= 1) {
      -                if (ary[i] && func(ary[i], i, ary)) {
      -                    break;
      -                }
      -            }
      -        }
      -    }
      -
      -    function hasProp(obj, prop) {
      -        return hasOwn.call(obj, prop);
      -    }
      -
      -    function getOwn(obj, prop) {
      -        return hasProp(obj, prop) && obj[prop];
      -    }
      -
      -    /**
      -     * Cycles over properties in an object and calls a function for each
      -     * property value. If the function returns a truthy value, then the
      -     * iteration is stopped.
      -     */
      -    function eachProp(obj, func) {
      -        var prop;
      -        for (prop in obj) {
      -            if (hasProp(obj, prop)) {
      -                if (func(obj[prop], prop)) {
      -                    break;
      -                }
      -            }
      -        }
      -    }
      -
      -    /**
      -     * Simple function to mix in properties from source into target,
      -     * but only if target does not already have a property of the same name.
      -     */
      -    function mixin(target, source, force, deepStringMixin) {
      -        if (source) {
      -            eachProp(source, function (value, prop) {
      -                if (force || !hasProp(target, prop)) {
      -                    if (deepStringMixin && typeof value !== 'string') {
      -                        if (!target[prop]) {
      -                            target[prop] = {};
      -                        }
      -                        mixin(target[prop], value, force, deepStringMixin);
      -                    } else {
      -                        target[prop] = value;
      -                    }
      -                }
      -            });
      -        }
      -        return target;
      -    }
      -
      -    //Similar to Function.prototype.bind, but the 'this' object is specified
      -    //first, since it is easier to read/figure out what 'this' will be.
      -    function bind(obj, fn) {
      -        return function () {
      -            return fn.apply(obj, arguments);
      -        };
      -    }
      -
      -    function scripts() {
      -        return document.getElementsByTagName('script');
      -    }
      -
      -    function defaultOnError(err) {
      -        throw err;
      -    }
      -
      -    //Allow getting a global that expressed in
      -    //dot notation, like 'a.b.c'.
      -    function getGlobal(value) {
      -        if (!value) {
      -            return value;
      -        }
      -        var g = global;
      -        each(value.split('.'), function (part) {
      -            g = g[part];
      -        });
      -        return g;
      -    }
      -
      -    /**
      -     * Constructs an error with a pointer to an URL with more information.
      -     * @param {String} id the error ID that maps to an ID on a web page.
      -     * @param {String} message human readable error.
      -     * @param {Error} [err] the original error, if there is one.
      -     *
      -     * @returns {Error}
      -     */
      -    function makeError(id, msg, err, requireModules) {
      -        var e = new Error(msg + '\nhttp://requirejs.org/docs/errors.html#' + id);
      -        e.requireType = id;
      -        e.requireModules = requireModules;
      -        if (err) {
      -            e.originalError = err;
      -        }
      -        return e;
      -    }
      -
      -    if (typeof define !== 'undefined') {
      -        //If a define is already in play via another AMD loader,
      -        //do not overwrite.
      -        return;
      -    }
      -
      -    if (typeof requirejs !== 'undefined') {
      -        if (isFunction(requirejs)) {
      -            //Do not overwrite and existing requirejs instance.
      -            return;
      -        }
      -        cfg = requirejs;
      -        requirejs = undefined;
      -    }
      -
      -    //Allow for a require config object
      -    if (typeof require !== 'undefined' && !isFunction(require)) {
      -        //assume it is a config object.
      -        cfg = require;
      -        require = undefined;
      -    }
      -
      -    function newContext(contextName) {
      -        var inCheckLoaded, Module, context, handlers,
      -            checkLoadedTimeoutId,
      -            config = {
      -                //Defaults. Do not set a default for map
      -                //config to speed up normalize(), which
      -                //will run faster if there is no default.
      -                waitSeconds: 7,
      -                baseUrl: './',
      -                paths: {},
      -                pkgs: {},
      -                shim: {},
      -                config: {}
      -            },
      -            registry = {},
      -            //registry of just enabled modules, to speed
      -            //cycle breaking code when lots of modules
      -            //are registered, but not activated.
      -            enabledRegistry = {},
      -            undefEvents = {},
      -            defQueue = [],
      -            defined = {},
      -            urlFetched = {},
      -            requireCounter = 1,
      -            unnormalizedCounter = 1;
      -
      -        /**
      -         * Trims the . and .. from an array of path segments.
      -         * It will keep a leading path segment if a .. will become
      -         * the first path segment, to help with module name lookups,
      -         * which act like paths, but can be remapped. But the end result,
      -         * all paths that use this function should look normalized.
      -         * NOTE: this method MODIFIES the input array.
      -         * @param {Array} ary the array of path segments.
      -         */
      -        function trimDots(ary) {
      -            var i, part;
      -            for (i = 0; ary[i]; i += 1) {
      -                part = ary[i];
      -                if (part === '.') {
      -                    ary.splice(i, 1);
      -                    i -= 1;
      -                } else if (part === '..') {
      -                    if (i === 1 && (ary[2] === '..' || ary[0] === '..')) {
      -                        //End of the line. Keep at least one non-dot
      -                        //path segment at the front so it can be mapped
      -                        //correctly to disk. Otherwise, there is likely
      -                        //no path mapping for a path starting with '..'.
      -                        //This can still fail, but catches the most reasonable
      -                        //uses of ..
      -                        break;
      -                    } else if (i > 0) {
      -                        ary.splice(i - 1, 2);
      -                        i -= 2;
      -                    }
      -                }
      -            }
      -        }
      -
      -        /**
      -         * Given a relative module name, like ./something, normalize it to
      -         * a real name that can be mapped to a path.
      -         * @param {String} name the relative name
      -         * @param {String} baseName a real name that the name arg is relative
      -         * to.
      -         * @param {Boolean} applyMap apply the map config to the value. Should
      -         * only be done if this normalization is for a dependency ID.
      -         * @returns {String} normalized name
      -         */
      -        function normalize(name, baseName, applyMap) {
      -            var pkgName, pkgConfig, mapValue, nameParts, i, j, nameSegment,
      -                foundMap, foundI, foundStarMap, starI,
      -                baseParts = baseName && baseName.split('/'),
      -                normalizedBaseParts = baseParts,
      -                map = config.map,
      -                starMap = map && map['*'];
      -
      -            //Adjust any relative paths.
      -            if (name && name.charAt(0) === '.') {
      -                //If have a base name, try to normalize against it,
      -                //otherwise, assume it is a top-level require that will
      -                //be relative to baseUrl in the end.
      -                if (baseName) {
      -                    if (getOwn(config.pkgs, baseName)) {
      -                        //If the baseName is a package name, then just treat it as one
      -                        //name to concat the name with.
      -                        normalizedBaseParts = baseParts = [baseName];
      -                    } else {
      -                        //Convert baseName to array, and lop off the last part,
      -                        //so that . matches that 'directory' and not name of the baseName's
      -                        //module. For instance, baseName of 'one/two/three', maps to
      -                        //'one/two/three.js', but we want the directory, 'one/two' for
      -                        //this normalization.
      -                        normalizedBaseParts = baseParts.slice(0, baseParts.length - 1);
      -                    }
      -
      -                    name = normalizedBaseParts.concat(name.split('/'));
      -                    trimDots(name);
      -
      -                    //Some use of packages may use a . path to reference the
      -                    //'main' module name, so normalize for that.
      -                    pkgConfig = getOwn(config.pkgs, (pkgName = name[0]));
      -                    name = name.join('/');
      -                    if (pkgConfig && name === pkgName + '/' + pkgConfig.main) {
      -                        name = pkgName;
      -                    }
      -                } else if (name.indexOf('./') === 0) {
      -                    // No baseName, so this is ID is resolved relative
      -                    // to baseUrl, pull off the leading dot.
      -                    name = name.substring(2);
      -                }
      -            }
      -
      -            //Apply map config if available.
      -            if (applyMap && map && (baseParts || starMap)) {
      -                nameParts = name.split('/');
      -
      -                for (i = nameParts.length; i > 0; i -= 1) {
      -                    nameSegment = nameParts.slice(0, i).join('/');
      -
      -                    if (baseParts) {
      -                        //Find the longest baseName segment match in the config.
      -                        //So, do joins on the biggest to smallest lengths of baseParts.
      -                        for (j = baseParts.length; j > 0; j -= 1) {
      -                            mapValue = getOwn(map, baseParts.slice(0, j).join('/'));
      -
      -                            //baseName segment has config, find if it has one for
      -                            //this name.
      -                            if (mapValue) {
      -                                mapValue = getOwn(mapValue, nameSegment);
      -                                if (mapValue) {
      -                                    //Match, update name to the new value.
      -                                    foundMap = mapValue;
      -                                    foundI = i;
      -                                    break;
      -                                }
      -                            }
      -                        }
      -                    }
      -
      -                    if (foundMap) {
      -                        break;
      -                    }
      -
      -                    //Check for a star map match, but just hold on to it,
      -                    //if there is a shorter segment match later in a matching
      -                    //config, then favor over this star map.
      -                    if (!foundStarMap && starMap && getOwn(starMap, nameSegment)) {
      -                        foundStarMap = getOwn(starMap, nameSegment);
      -                        starI = i;
      -                    }
      -                }
      -
      -                if (!foundMap && foundStarMap) {
      -                    foundMap = foundStarMap;
      -                    foundI = starI;
      -                }
      -
      -                if (foundMap) {
      -                    nameParts.splice(0, foundI, foundMap);
      -                    name = nameParts.join('/');
      -                }
      -            }
      -
      -            return name;
      -        }
      -
      -        function removeScript(name) {
      -            if (isBrowser) {
      -                each(scripts(), function (scriptNode) {
      -                    if (scriptNode.getAttribute('data-requiremodule') === name &&
      -                            scriptNode.getAttribute('data-requirecontext') === context.contextName) {
      -                        scriptNode.parentNode.removeChild(scriptNode);
      -                        return true;
      -                    }
      -                });
      -            }
      -        }
      -
      -        function hasPathFallback(id) {
      -            var pathConfig = getOwn(config.paths, id);
      -            if (pathConfig && isArray(pathConfig) && pathConfig.length > 1) {
      -                removeScript(id);
      -                //Pop off the first array value, since it failed, and
      -                //retry
      -                pathConfig.shift();
      -                context.require.undef(id);
      -                context.require([id]);
      -                return true;
      -            }
      -        }
      -
      -        //Turns a plugin!resource to [plugin, resource]
      -        //with the plugin being undefined if the name
      -        //did not have a plugin prefix.
      -        function splitPrefix(name) {
      -            var prefix,
      -                index = name ? name.indexOf('!') : -1;
      -            if (index > -1) {
      -                prefix = name.substring(0, index);
      -                name = name.substring(index + 1, name.length);
      -            }
      -            return [prefix, name];
      -        }
      -
      -        /**
      -         * Creates a module mapping that includes plugin prefix, module
      -         * name, and path. If parentModuleMap is provided it will
      -         * also normalize the name via require.normalize()
      -         *
      -         * @param {String} name the module name
      -         * @param {String} [parentModuleMap] parent module map
      -         * for the module name, used to resolve relative names.
      -         * @param {Boolean} isNormalized: is the ID already normalized.
      -         * This is true if this call is done for a define() module ID.
      -         * @param {Boolean} applyMap: apply the map config to the ID.
      -         * Should only be true if this map is for a dependency.
      -         *
      -         * @returns {Object}
      -         */
      -        function makeModuleMap(name, parentModuleMap, isNormalized, applyMap) {
      -            var url, pluginModule, suffix, nameParts,
      -                prefix = null,
      -                parentName = parentModuleMap ? parentModuleMap.name : null,
      -                originalName = name,
      -                isDefine = true,
      -                normalizedName = '';
      -
      -            //If no name, then it means it is a require call, generate an
      -            //internal name.
      -            if (!name) {
      -                isDefine = false;
      -                name = '_@r' + (requireCounter += 1);
      -            }
      -
      -            nameParts = splitPrefix(name);
      -            prefix = nameParts[0];
      -            name = nameParts[1];
      -
      -            if (prefix) {
      -                prefix = normalize(prefix, parentName, applyMap);
      -                pluginModule = getOwn(defined, prefix);
      -            }
      -
      -            //Account for relative paths if there is a base name.
      -            if (name) {
      -                if (prefix) {
      -                    if (pluginModule && pluginModule.normalize) {
      -                        //Plugin is loaded, use its normalize method.
      -                        normalizedName = pluginModule.normalize(name, function (name) {
      -                            return normalize(name, parentName, applyMap);
      -                        });
      -                    } else {
      -                        normalizedName = normalize(name, parentName, applyMap);
      -                    }
      -                } else {
      -                    //A regular module.
      -                    normalizedName = normalize(name, parentName, applyMap);
      -
      -                    //Normalized name may be a plugin ID due to map config
      -                    //application in normalize. The map config values must
      -                    //already be normalized, so do not need to redo that part.
      -                    nameParts = splitPrefix(normalizedName);
      -                    prefix = nameParts[0];
      -                    normalizedName = nameParts[1];
      -                    isNormalized = true;
      -
      -                    url = context.nameToUrl(normalizedName);
      -                }
      -            }
      -
      -            //If the id is a plugin id that cannot be determined if it needs
      -            //normalization, stamp it with a unique ID so two matching relative
      -            //ids that may conflict can be separate.
      -            suffix = prefix && !pluginModule && !isNormalized ?
      -                     '_unnormalized' + (unnormalizedCounter += 1) :
      -                     '';
      -
      -            return {
      -                prefix: prefix,
      -                name: normalizedName,
      -                parentMap: parentModuleMap,
      -                unnormalized: !!suffix,
      -                url: url,
      -                originalName: originalName,
      -                isDefine: isDefine,
      -                id: (prefix ?
      -                        prefix + '!' + normalizedName :
      -                        normalizedName) + suffix
      -            };
      -        }
      -
      -        function getModule(depMap) {
      -            var id = depMap.id,
      -                mod = getOwn(registry, id);
      -
      -            if (!mod) {
      -                mod = registry[id] = new context.Module(depMap);
      -            }
      -
      -            return mod;
      -        }
      -
      -        function on(depMap, name, fn) {
      -            var id = depMap.id,
      -                mod = getOwn(registry, id);
      -
      -            if (hasProp(defined, id) &&
      -                    (!mod || mod.defineEmitComplete)) {
      -                if (name === 'defined') {
      -                    fn(defined[id]);
      -                }
      -            } else {
      -                mod = getModule(depMap);
      -                if (mod.error && name === 'error') {
      -                    fn(mod.error);
      -                } else {
      -                    mod.on(name, fn);
      -                }
      -            }
      -        }
      -
      -        function onError(err, errback) {
      -            var ids = err.requireModules,
      -                notified = false;
      -
      -            if (errback) {
      -                errback(err);
      -            } else {
      -                each(ids, function (id) {
      -                    var mod = getOwn(registry, id);
      -                    if (mod) {
      -                        //Set error on module, so it skips timeout checks.
      -                        mod.error = err;
      -                        if (mod.events.error) {
      -                            notified = true;
      -                            mod.emit('error', err);
      -                        }
      -                    }
      -                });
      -
      -                if (!notified) {
      -                    req.onError(err);
      -                }
      -            }
      -        }
      -
      -        /**
      -         * Internal method to transfer globalQueue items to this context's
      -         * defQueue.
      -         */
      -        function takeGlobalQueue() {
      -            //Push all the globalDefQueue items into the context's defQueue
      -            if (globalDefQueue.length) {
      -                //Array splice in the values since the context code has a
      -                //local var ref to defQueue, so cannot just reassign the one
      -                //on context.
      -                apsp.apply(defQueue,
      -                           [defQueue.length - 1, 0].concat(globalDefQueue));
      -                globalDefQueue = [];
      -            }
      -        }
      -
      -        handlers = {
      -            'require': function (mod) {
      -                if (mod.require) {
      -                    return mod.require;
      -                } else {
      -                    return (mod.require = context.makeRequire(mod.map));
      -                }
      -            },
      -            'exports': function (mod) {
      -                mod.usingExports = true;
      -                if (mod.map.isDefine) {
      -                    if (mod.exports) {
      -                        return mod.exports;
      -                    } else {
      -                        return (mod.exports = defined[mod.map.id] = {});
      -                    }
      -                }
      -            },
      -            'module': function (mod) {
      -                if (mod.module) {
      -                    return mod.module;
      -                } else {
      -                    return (mod.module = {
      -                        id: mod.map.id,
      -                        uri: mod.map.url,
      -                        config: function () {
      -                            var c,
      -                                pkg = getOwn(config.pkgs, mod.map.id);
      -                            // For packages, only support config targeted
      -                            // at the main module.
      -                            c = pkg ? getOwn(config.config, mod.map.id + '/' + pkg.main) :
      -                                      getOwn(config.config, mod.map.id);
      -                            return  c || {};
      -                        },
      -                        exports: defined[mod.map.id]
      -                    });
      -                }
      -            }
      -        };
      -
      -        function cleanRegistry(id) {
      -            //Clean up machinery used for waiting modules.
      -            delete registry[id];
      -            delete enabledRegistry[id];
      -        }
      -
      -        function breakCycle(mod, traced, processed) {
      -            var id = mod.map.id;
      -
      -            if (mod.error) {
      -                mod.emit('error', mod.error);
      -            } else {
      -                traced[id] = true;
      -                each(mod.depMaps, function (depMap, i) {
      -                    var depId = depMap.id,
      -                        dep = getOwn(registry, depId);
      -
      -                    //Only force things that have not completed
      -                    //being defined, so still in the registry,
      -                    //and only if it has not been matched up
      -                    //in the module already.
      -                    if (dep && !mod.depMatched[i] && !processed[depId]) {
      -                        if (getOwn(traced, depId)) {
      -                            mod.defineDep(i, defined[depId]);
      -                            mod.check(); //pass false?
      -                        } else {
      -                            breakCycle(dep, traced, processed);
      -                        }
      -                    }
      -                });
      -                processed[id] = true;
      -            }
      -        }
      -
      -        function checkLoaded() {
      -            var map, modId, err, usingPathFallback,
      -                waitInterval = config.waitSeconds * 1000,
      -                //It is possible to disable the wait interval by using waitSeconds of 0.
      -                expired = waitInterval && (context.startTime + waitInterval) < new Date().getTime(),
      -                noLoads = [],
      -                reqCalls = [],
      -                stillLoading = false,
      -                needCycleCheck = true;
      -
      -            //Do not bother if this call was a result of a cycle break.
      -            if (inCheckLoaded) {
      -                return;
      -            }
      -
      -            inCheckLoaded = true;
      -
      -            //Figure out the state of all the modules.
      -            eachProp(enabledRegistry, function (mod) {
      -                map = mod.map;
      -                modId = map.id;
      -
      -                //Skip things that are not enabled or in error state.
      -                if (!mod.enabled) {
      -                    return;
      -                }
      -
      -                if (!map.isDefine) {
      -                    reqCalls.push(mod);
      -                }
      -
      -                if (!mod.error) {
      -                    //If the module should be executed, and it has not
      -                    //been inited and time is up, remember it.
      -                    if (!mod.inited && expired) {
      -                        if (hasPathFallback(modId)) {
      -                            usingPathFallback = true;
      -                            stillLoading = true;
      -                        } else {
      -                            noLoads.push(modId);
      -                            removeScript(modId);
      -                        }
      -                    } else if (!mod.inited && mod.fetched && map.isDefine) {
      -                        stillLoading = true;
      -                        if (!map.prefix) {
      -                            //No reason to keep looking for unfinished
      -                            //loading. If the only stillLoading is a
      -                            //plugin resource though, keep going,
      -                            //because it may be that a plugin resource
      -                            //is waiting on a non-plugin cycle.
      -                            return (needCycleCheck = false);
      -                        }
      -                    }
      -                }
      -            });
      -
      -            if (expired && noLoads.length) {
      -                //If wait time expired, throw error of unloaded modules.
      -                err = makeError('timeout', 'Load timeout for modules: ' + noLoads, null, noLoads);
      -                err.contextName = context.contextName;
      -                return onError(err);
      -            }
      -
      -            //Not expired, check for a cycle.
      -            if (needCycleCheck) {
      -                each(reqCalls, function (mod) {
      -                    breakCycle(mod, {}, {});
      -                });
      -            }
      -
      -            //If still waiting on loads, and the waiting load is something
      -            //other than a plugin resource, or there are still outstanding
      -            //scripts, then just try back later.
      -            if ((!expired || usingPathFallback) && stillLoading) {
      -                //Something is still waiting to load. Wait for it, but only
      -                //if a timeout is not already in effect.
      -                if ((isBrowser || isWebWorker) && !checkLoadedTimeoutId) {
      -                    checkLoadedTimeoutId = setTimeout(function () {
      -                        checkLoadedTimeoutId = 0;
      -                        checkLoaded();
      -                    }, 50);
      -                }
      -            }
      -
      -            inCheckLoaded = false;
      -        }
      -
      -        Module = function (map) {
      -            this.events = getOwn(undefEvents, map.id) || {};
      -            this.map = map;
      -            this.shim = getOwn(config.shim, map.id);
      -            this.depExports = [];
      -            this.depMaps = [];
      -            this.depMatched = [];
      -            this.pluginMaps = {};
      -            this.depCount = 0;
      -
      -            /* this.exports this.factory
      -               this.depMaps = [],
      -               this.enabled, this.fetched
      -            */
      -        };
      -
      -        Module.prototype = {
      -            init: function (depMaps, factory, errback, options) {
      -                options = options || {};
      -
      -                //Do not do more inits if already done. Can happen if there
      -                //are multiple define calls for the same module. That is not
      -                //a normal, common case, but it is also not unexpected.
      -                if (this.inited) {
      -                    return;
      -                }
      -
      -                this.factory = factory;
      -
      -                if (errback) {
      -                    //Register for errors on this module.
      -                    this.on('error', errback);
      -                } else if (this.events.error) {
      -                    //If no errback already, but there are error listeners
      -                    //on this module, set up an errback to pass to the deps.
      -                    errback = bind(this, function (err) {
      -                        this.emit('error', err);
      -                    });
      -                }
      -
      -                //Do a copy of the dependency array, so that
      -                //source inputs are not modified. For example
      -                //"shim" deps are passed in here directly, and
      -                //doing a direct modification of the depMaps array
      -                //would affect that config.
      -                this.depMaps = depMaps && depMaps.slice(0);
      -
      -                this.errback = errback;
      -
      -                //Indicate this module has be initialized
      -                this.inited = true;
      -
      -                this.ignore = options.ignore;
      -
      -                //Could have option to init this module in enabled mode,
      -                //or could have been previously marked as enabled. However,
      -                //the dependencies are not known until init is called. So
      -                //if enabled previously, now trigger dependencies as enabled.
      -                if (options.enabled || this.enabled) {
      -                    //Enable this module and dependencies.
      -                    //Will call this.check()
      -                    this.enable();
      -                } else {
      -                    this.check();
      -                }
      -            },
      -
      -            defineDep: function (i, depExports) {
      -                //Because of cycles, defined callback for a given
      -                //export can be called more than once.
      -                if (!this.depMatched[i]) {
      -                    this.depMatched[i] = true;
      -                    this.depCount -= 1;
      -                    this.depExports[i] = depExports;
      -                }
      -            },
      -
      -            fetch: function () {
      -                if (this.fetched) {
      -                    return;
      -                }
      -                this.fetched = true;
      -
      -                context.startTime = (new Date()).getTime();
      -
      -                var map = this.map;
      -
      -                //If the manager is for a plugin managed resource,
      -                //ask the plugin to load it now.
      -                if (this.shim) {
      -                    context.makeRequire(this.map, {
      -                        enableBuildCallback: true
      -                    })(this.shim.deps || [], bind(this, function () {
      -                        return map.prefix ? this.callPlugin() : this.load();
      -                    }));
      -                } else {
      -                    //Regular dependency.
      -                    return map.prefix ? this.callPlugin() : this.load();
      -                }
      -            },
      -
      -            load: function () {
      -                var url = this.map.url;
      -
      -                //Regular dependency.
      -                if (!urlFetched[url]) {
      -                    urlFetched[url] = true;
      -                    context.load(this.map.id, url);
      -                }
      -            },
      -
      -            /**
      -             * Checks if the module is ready to define itself, and if so,
      -             * define it.
      -             */
      -            check: function () {
      -                if (!this.enabled || this.enabling) {
      -                    return;
      -                }
      -
      -                var err, cjsModule,
      -                    id = this.map.id,
      -                    depExports = this.depExports,
      -                    exports = this.exports,
      -                    factory = this.factory;
      -
      -                if (!this.inited) {
      -                    this.fetch();
      -                } else if (this.error) {
      -                    this.emit('error', this.error);
      -                } else if (!this.defining) {
      -                    //The factory could trigger another require call
      -                    //that would result in checking this module to
      -                    //define itself again. If already in the process
      -                    //of doing that, skip this work.
      -                    this.defining = true;
      -
      -                    if (this.depCount < 1 && !this.defined) {
      -                        if (isFunction(factory)) {
      -                            //If there is an error listener, favor passing
      -                            //to that instead of throwing an error. However,
      -                            //only do it for define()'d  modules. require
      -                            //errbacks should not be called for failures in
      -                            //their callbacks (#699). However if a global
      -                            //onError is set, use that.
      -                            if ((this.events.error && this.map.isDefine) ||
      -                                req.onError !== defaultOnError) {
      -                                try {
      -                                    exports = context.execCb(id, factory, depExports, exports);
      -                                } catch (e) {
      -                                    err = e;
      -                                }
      -                            } else {
      -                                exports = context.execCb(id, factory, depExports, exports);
      -                            }
      -
      -                            if (this.map.isDefine) {
      -                                //If setting exports via 'module' is in play,
      -                                //favor that over return value and exports. After that,
      -                                //favor a non-undefined return value over exports use.
      -                                cjsModule = this.module;
      -                                if (cjsModule &&
      -                                        cjsModule.exports !== undefined &&
      -                                        //Make sure it is not already the exports value
      -                                        cjsModule.exports !== this.exports) {
      -                                    exports = cjsModule.exports;
      -                                } else if (exports === undefined && this.usingExports) {
      -                                    //exports already set the defined value.
      -                                    exports = this.exports;
      -                                }
      -                            }
      -
      -                            if (err) {
      -                                err.requireMap = this.map;
      -                                err.requireModules = this.map.isDefine ? [this.map.id] : null;
      -                                err.requireType = this.map.isDefine ? 'define' : 'require';
      -                                return onError((this.error = err));
      -                            }
      -
      -                        } else {
      -                            //Just a literal value
      -                            exports = factory;
      -                        }
      -
      -                        this.exports = exports;
      -
      -                        if (this.map.isDefine && !this.ignore) {
      -                            defined[id] = exports;
      -
      -                            if (req.onResourceLoad) {
      -                                req.onResourceLoad(context, this.map, this.depMaps);
      -                            }
      -                        }
      -
      -                        //Clean up
      -                        cleanRegistry(id);
      -
      -                        this.defined = true;
      -                    }
      -
      -                    //Finished the define stage. Allow calling check again
      -                    //to allow define notifications below in the case of a
      -                    //cycle.
      -                    this.defining = false;
      -
      -                    if (this.defined && !this.defineEmitted) {
      -                        this.defineEmitted = true;
      -                        this.emit('defined', this.exports);
      -                        this.defineEmitComplete = true;
      -                    }
      -
      -                }
      -            },
      -
      -            callPlugin: function () {
      -                var map = this.map,
      -                    id = map.id,
      -                    //Map already normalized the prefix.
      -                    pluginMap = makeModuleMap(map.prefix);
      -
      -                //Mark this as a dependency for this plugin, so it
      -                //can be traced for cycles.
      -                this.depMaps.push(pluginMap);
      -
      -                on(pluginMap, 'defined', bind(this, function (plugin) {
      -                    var load, normalizedMap, normalizedMod,
      -                        name = this.map.name,
      -                        parentName = this.map.parentMap ? this.map.parentMap.name : null,
      -                        localRequire = context.makeRequire(map.parentMap, {
      -                            enableBuildCallback: true
      -                        });
      -
      -                    //If current map is not normalized, wait for that
      -                    //normalized name to load instead of continuing.
      -                    if (this.map.unnormalized) {
      -                        //Normalize the ID if the plugin allows it.
      -                        if (plugin.normalize) {
      -                            name = plugin.normalize(name, function (name) {
      -                                return normalize(name, parentName, true);
      -                            }) || '';
      -                        }
      -
      -                        //prefix and name should already be normalized, no need
      -                        //for applying map config again either.
      -                        normalizedMap = makeModuleMap(map.prefix + '!' + name,
      -                                                      this.map.parentMap);
      -                        on(normalizedMap,
      -                            'defined', bind(this, function (value) {
      -                                this.init([], function () { return value; }, null, {
      -                                    enabled: true,
      -                                    ignore: true
      -                                });
      -                            }));
      -
      -                        normalizedMod = getOwn(registry, normalizedMap.id);
      -                        if (normalizedMod) {
      -                            //Mark this as a dependency for this plugin, so it
      -                            //can be traced for cycles.
      -                            this.depMaps.push(normalizedMap);
      -
      -                            if (this.events.error) {
      -                                normalizedMod.on('error', bind(this, function (err) {
      -                                    this.emit('error', err);
      -                                }));
      -                            }
      -                            normalizedMod.enable();
      -                        }
      -
      -                        return;
      -                    }
      -
      -                    load = bind(this, function (value) {
      -                        this.init([], function () { return value; }, null, {
      -                            enabled: true
      -                        });
      -                    });
      -
      -                    load.error = bind(this, function (err) {
      -                        this.inited = true;
      -                        this.error = err;
      -                        err.requireModules = [id];
      -
      -                        //Remove temp unnormalized modules for this module,
      -                        //since they will never be resolved otherwise now.
      -                        eachProp(registry, function (mod) {
      -                            if (mod.map.id.indexOf(id + '_unnormalized') === 0) {
      -                                cleanRegistry(mod.map.id);
      -                            }
      -                        });
      -
      -                        onError(err);
      -                    });
      -
      -                    //Allow plugins to load other code without having to know the
      -                    //context or how to 'complete' the load.
      -                    load.fromText = bind(this, function (text, textAlt) {
      -                        /*jslint evil: true */
      -                        var moduleName = map.name,
      -                            moduleMap = makeModuleMap(moduleName),
      -                            hasInteractive = useInteractive;
      -
      -                        //As of 2.1.0, support just passing the text, to reinforce
      -                        //fromText only being called once per resource. Still
      -                        //support old style of passing moduleName but discard
      -                        //that moduleName in favor of the internal ref.
      -                        if (textAlt) {
      -                            text = textAlt;
      -                        }
      -
      -                        //Turn off interactive script matching for IE for any define
      -                        //calls in the text, then turn it back on at the end.
      -                        if (hasInteractive) {
      -                            useInteractive = false;
      -                        }
      -
      -                        //Prime the system by creating a module instance for
      -                        //it.
      -                        getModule(moduleMap);
      -
      -                        //Transfer any config to this other module.
      -                        if (hasProp(config.config, id)) {
      -                            config.config[moduleName] = config.config[id];
      -                        }
      -
      -                        try {
      -                            req.exec(text);
      -                        } catch (e) {
      -                            return onError(makeError('fromtexteval',
      -                                             'fromText eval for ' + id +
      -                                            ' failed: ' + e,
      -                                             e,
      -                                             [id]));
      -                        }
      -
      -                        if (hasInteractive) {
      -                            useInteractive = true;
      -                        }
      -
      -                        //Mark this as a dependency for the plugin
      -                        //resource
      -                        this.depMaps.push(moduleMap);
      -
      -                        //Support anonymous modules.
      -                        context.completeLoad(moduleName);
      -
      -                        //Bind the value of that module to the value for this
      -                        //resource ID.
      -                        localRequire([moduleName], load);
      -                    });
      -
      -                    //Use parentName here since the plugin's name is not reliable,
      -                    //could be some weird string with no path that actually wants to
      -                    //reference the parentName's path.
      -                    plugin.load(map.name, localRequire, load, config);
      -                }));
      -
      -                context.enable(pluginMap, this);
      -                this.pluginMaps[pluginMap.id] = pluginMap;
      -            },
      -
      -            enable: function () {
      -                enabledRegistry[this.map.id] = this;
      -                this.enabled = true;
      -
      -                //Set flag mentioning that the module is enabling,
      -                //so that immediate calls to the defined callbacks
      -                //for dependencies do not trigger inadvertent load
      -                //with the depCount still being zero.
      -                this.enabling = true;
      -
      -                //Enable each dependency
      -                each(this.depMaps, bind(this, function (depMap, i) {
      -                    var id, mod, handler;
      -
      -                    if (typeof depMap === 'string') {
      -                        //Dependency needs to be converted to a depMap
      -                        //and wired up to this module.
      -                        depMap = makeModuleMap(depMap,
      -                                               (this.map.isDefine ? this.map : this.map.parentMap),
      -                                               false,
      -                                               !this.skipMap);
      -                        this.depMaps[i] = depMap;
      -
      -                        handler = getOwn(handlers, depMap.id);
      -
      -                        if (handler) {
      -                            this.depExports[i] = handler(this);
      -                            return;
      -                        }
      -
      -                        this.depCount += 1;
      -
      -                        on(depMap, 'defined', bind(this, function (depExports) {
      -                            this.defineDep(i, depExports);
      -                            this.check();
      -                        }));
      -
      -                        if (this.errback) {
      -                            on(depMap, 'error', bind(this, this.errback));
      -                        }
      -                    }
      -
      -                    id = depMap.id;
      -                    mod = registry[id];
      -
      -                    //Skip special modules like 'require', 'exports', 'module'
      -                    //Also, don't call enable if it is already enabled,
      -                    //important in circular dependency cases.
      -                    if (!hasProp(handlers, id) && mod && !mod.enabled) {
      -                        context.enable(depMap, this);
      -                    }
      -                }));
      -
      -                //Enable each plugin that is used in
      -                //a dependency
      -                eachProp(this.pluginMaps, bind(this, function (pluginMap) {
      -                    var mod = getOwn(registry, pluginMap.id);
      -                    if (mod && !mod.enabled) {
      -                        context.enable(pluginMap, this);
      -                    }
      -                }));
      -
      -                this.enabling = false;
      -
      -                this.check();
      -            },
      -
      -            on: function (name, cb) {
      -                var cbs = this.events[name];
      -                if (!cbs) {
      -                    cbs = this.events[name] = [];
      -                }
      -                cbs.push(cb);
      -            },
      -
      -            emit: function (name, evt) {
      -                each(this.events[name], function (cb) {
      -                    cb(evt);
      -                });
      -                if (name === 'error') {
      -                    //Now that the error handler was triggered, remove
      -                    //the listeners, since this broken Module instance
      -                    //can stay around for a while in the registry.
      -                    delete this.events[name];
      -                }
      -            }
      -        };
      -
      -        function callGetModule(args) {
      -            //Skip modules already defined.
      -            if (!hasProp(defined, args[0])) {
      -                getModule(makeModuleMap(args[0], null, true)).init(args[1], args[2]);
      -            }
      -        }
      -
      -        function removeListener(node, func, name, ieName) {
      -            //Favor detachEvent because of IE9
      -            //issue, see attachEvent/addEventListener comment elsewhere
      -            //in this file.
      -            if (node.detachEvent && !isOpera) {
      -                //Probably IE. If not it will throw an error, which will be
      -                //useful to know.
      -                if (ieName) {
      -                    node.detachEvent(ieName, func);
      -                }
      -            } else {
      -                node.removeEventListener(name, func, false);
      -            }
      -        }
      -
      -        /**
      -         * Given an event from a script node, get the requirejs info from it,
      -         * and then removes the event listeners on the node.
      -         * @param {Event} evt
      -         * @returns {Object}
      -         */
      -        function getScriptData(evt) {
      -            //Using currentTarget instead of target for Firefox 2.0's sake. Not
      -            //all old browsers will be supported, but this one was easy enough
      -            //to support and still makes sense.
      -            var node = evt.currentTarget || evt.srcElement;
      -
      -            //Remove the listeners once here.
      -            removeListener(node, context.onScriptLoad, 'load', 'onreadystatechange');
      -            removeListener(node, context.onScriptError, 'error');
      -
      -            return {
      -                node: node,
      -                id: node && node.getAttribute('data-requiremodule')
      -            };
      -        }
      -
      -        function intakeDefines() {
      -            var args;
      -
      -            //Any defined modules in the global queue, intake them now.
      -            takeGlobalQueue();
      -
      -            //Make sure any remaining defQueue items get properly processed.
      -            while (defQueue.length) {
      -                args = defQueue.shift();
      -                if (args[0] === null) {
      -                    return onError(makeError('mismatch', 'Mismatched anonymous define() module: ' + args[args.length - 1]));
      -                } else {
      -                    //args are id, deps, factory. Should be normalized by the
      -                    //define() function.
      -                    callGetModule(args);
      -                }
      -            }
      -        }
      -
      -        context = {
      -            config: config,
      -            contextName: contextName,
      -            registry: registry,
      -            defined: defined,
      -            urlFetched: urlFetched,
      -            defQueue: defQueue,
      -            Module: Module,
      -            makeModuleMap: makeModuleMap,
      -            nextTick: req.nextTick,
      -            onError: onError,
      -
      -            /**
      -             * Set a configuration for the context.
      -             * @param {Object} cfg config object to integrate.
      -             */
      -            configure: function (cfg) {
      -                //Make sure the baseUrl ends in a slash.
      -                if (cfg.baseUrl) {
      -                    if (cfg.baseUrl.charAt(cfg.baseUrl.length - 1) !== '/') {
      -                        cfg.baseUrl += '/';
      -                    }
      -                }
      -
      -                //Save off the paths and packages since they require special processing,
      -                //they are additive.
      -                var pkgs = config.pkgs,
      -                    shim = config.shim,
      -                    objs = {
      -                        paths: true,
      -                        config: true,
      -                        map: true
      -                    };
      -
      -                eachProp(cfg, function (value, prop) {
      -                    if (objs[prop]) {
      -                        if (prop === 'map') {
      -                            if (!config.map) {
      -                                config.map = {};
      -                            }
      -                            mixin(config[prop], value, true, true);
      -                        } else {
      -                            mixin(config[prop], value, true);
      -                        }
      -                    } else {
      -                        config[prop] = value;
      -                    }
      -                });
      -
      -                //Merge shim
      -                if (cfg.shim) {
      -                    eachProp(cfg.shim, function (value, id) {
      -                        //Normalize the structure
      -                        if (isArray(value)) {
      -                            value = {
      -                                deps: value
      -                            };
      -                        }
      -                        if ((value.exports || value.init) && !value.exportsFn) {
      -                            value.exportsFn = context.makeShimExports(value);
      -                        }
      -                        shim[id] = value;
      -                    });
      -                    config.shim = shim;
      -                }
      -
      -                //Adjust packages if necessary.
      -                if (cfg.packages) {
      -                    each(cfg.packages, function (pkgObj) {
      -                        var location;
      -
      -                        pkgObj = typeof pkgObj === 'string' ? { name: pkgObj } : pkgObj;
      -                        location = pkgObj.location;
      -
      -                        //Create a brand new object on pkgs, since currentPackages can
      -                        //be passed in again, and config.pkgs is the internal transformed
      -                        //state for all package configs.
      -                        pkgs[pkgObj.name] = {
      -                            name: pkgObj.name,
      -                            location: location || pkgObj.name,
      -                            //Remove leading dot in main, so main paths are normalized,
      -                            //and remove any trailing .js, since different package
      -                            //envs have different conventions: some use a module name,
      -                            //some use a file name.
      -                            main: (pkgObj.main || 'main')
      -                                  .replace(currDirRegExp, '')
      -                                  .replace(jsSuffixRegExp, '')
      -                        };
      -                    });
      -
      -                    //Done with modifications, assing packages back to context config
      -                    config.pkgs = pkgs;
      -                }
      -
      -                //If there are any "waiting to execute" modules in the registry,
      -                //update the maps for them, since their info, like URLs to load,
      -                //may have changed.
      -                eachProp(registry, function (mod, id) {
      -                    //If module already has init called, since it is too
      -                    //late to modify them, and ignore unnormalized ones
      -                    //since they are transient.
      -                    if (!mod.inited && !mod.map.unnormalized) {
      -                        mod.map = makeModuleMap(id);
      -                    }
      -                });
      -
      -                //If a deps array or a config callback is specified, then call
      -                //require with those args. This is useful when require is defined as a
      -                //config object before require.js is loaded.
      -                if (cfg.deps || cfg.callback) {
      -                    context.require(cfg.deps || [], cfg.callback);
      -                }
      -            },
      -
      -            makeShimExports: function (value) {
      -                function fn() {
      -                    var ret;
      -                    if (value.init) {
      -                        ret = value.init.apply(global, arguments);
      -                    }
      -                    return ret || (value.exports && getGlobal(value.exports));
      -                }
      -                return fn;
      -            },
      -
      -            makeRequire: function (relMap, options) {
      -                options = options || {};
      -
      -                function localRequire(deps, callback, errback) {
      -                    var id, map, requireMod;
      -
      -                    if (options.enableBuildCallback && callback && isFunction(callback)) {
      -                        callback.__requireJsBuild = true;
      -                    }
      -
      -                    if (typeof deps === 'string') {
      -                        if (isFunction(callback)) {
      -                            //Invalid call
      -                            return onError(makeError('requireargs', 'Invalid require call'), errback);
      -                        }
      -
      -                        //If require|exports|module are requested, get the
      -                        //value for them from the special handlers. Caveat:
      -                        //this only works while module is being defined.
      -                        if (relMap && hasProp(handlers, deps)) {
      -                            return handlers[deps](registry[relMap.id]);
      -                        }
      -
      -                        //Synchronous access to one module. If require.get is
      -                        //available (as in the Node adapter), prefer that.
      -                        if (req.get) {
      -                            return req.get(context, deps, relMap, localRequire);
      -                        }
      -
      -                        //Normalize module name, if it contains . or ..
      -                        map = makeModuleMap(deps, relMap, false, true);
      -                        id = map.id;
      -
      -                        if (!hasProp(defined, id)) {
      -                            return onError(makeError('notloaded', 'Module name "' +
      -                                        id +
      -                                        '" has not been loaded yet for context: ' +
      -                                        contextName +
      -                                        (relMap ? '' : '. Use require([])')));
      -                        }
      -                        return defined[id];
      -                    }
      -
      -                    //Grab defines waiting in the global queue.
      -                    intakeDefines();
      -
      -                    //Mark all the dependencies as needing to be loaded.
      -                    context.nextTick(function () {
      -                        //Some defines could have been added since the
      -                        //require call, collect them.
      -                        intakeDefines();
      -
      -                        requireMod = getModule(makeModuleMap(null, relMap));
      -
      -                        //Store if map config should be applied to this require
      -                        //call for dependencies.
      -                        requireMod.skipMap = options.skipMap;
      -
      -                        requireMod.init(deps, callback, errback, {
      -                            enabled: true
      -                        });
      -
      -                        checkLoaded();
      -                    });
      -
      -                    return localRequire;
      -                }
      -
      -                mixin(localRequire, {
      -                    isBrowser: isBrowser,
      -
      -                    /**
      -                     * Converts a module name + .extension into an URL path.
      -                     * *Requires* the use of a module name. It does not support using
      -                     * plain URLs like nameToUrl.
      -                     */
      -                    toUrl: function (moduleNamePlusExt) {
      -                        var ext,
      -                            index = moduleNamePlusExt.lastIndexOf('.'),
      -                            segment = moduleNamePlusExt.split('/')[0],
      -                            isRelative = segment === '.' || segment === '..';
      -
      -                        //Have a file extension alias, and it is not the
      -                        //dots from a relative path.
      -                        if (index !== -1 && (!isRelative || index > 1)) {
      -                            ext = moduleNamePlusExt.substring(index, moduleNamePlusExt.length);
      -                            moduleNamePlusExt = moduleNamePlusExt.substring(0, index);
      -                        }
      -
      -                        return context.nameToUrl(normalize(moduleNamePlusExt,
      -                                                relMap && relMap.id, true), ext,  true);
      -                    },
      -
      -                    defined: function (id) {
      -                        return hasProp(defined, makeModuleMap(id, relMap, false, true).id);
      -                    },
      -
      -                    specified: function (id) {
      -                        id = makeModuleMap(id, relMap, false, true).id;
      -                        return hasProp(defined, id) || hasProp(registry, id);
      -                    }
      -                });
      -
      -                //Only allow undef on top level require calls
      -                if (!relMap) {
      -                    localRequire.undef = function (id) {
      -                        //Bind any waiting define() calls to this context,
      -                        //fix for #408
      -                        takeGlobalQueue();
      -
      -                        var map = makeModuleMap(id, relMap, true),
      -                            mod = getOwn(registry, id);
      -
      -                        delete defined[id];
      -                        delete urlFetched[map.url];
      -                        delete undefEvents[id];
      -
      -                        if (mod) {
      -                            //Hold on to listeners in case the
      -                            //module will be attempted to be reloaded
      -                            //using a different config.
      -                            if (mod.events.defined) {
      -                                undefEvents[id] = mod.events;
      -                            }
      -
      -                            cleanRegistry(id);
      -                        }
      -                    };
      -                }
      -
      -                return localRequire;
      -            },
      -
      -            /**
      -             * Called to enable a module if it is still in the registry
      -             * awaiting enablement. A second arg, parent, the parent module,
      -             * is passed in for context, when this method is overriden by
      -             * the optimizer. Not shown here to keep code compact.
      -             */
      -            enable: function (depMap) {
      -                var mod = getOwn(registry, depMap.id);
      -                if (mod) {
      -                    getModule(depMap).enable();
      -                }
      -            },
      -
      -            /**
      -             * Internal method used by environment adapters to complete a load event.
      -             * A load event could be a script load or just a load pass from a synchronous
      -             * load call.
      -             * @param {String} moduleName the name of the module to potentially complete.
      -             */
      -            completeLoad: function (moduleName) {
      -                var found, args, mod,
      -                    shim = getOwn(config.shim, moduleName) || {},
      -                    shExports = shim.exports;
      -
      -                takeGlobalQueue();
      -
      -                while (defQueue.length) {
      -                    args = defQueue.shift();
      -                    if (args[0] === null) {
      -                        args[0] = moduleName;
      -                        //If already found an anonymous module and bound it
      -                        //to this name, then this is some other anon module
      -                        //waiting for its completeLoad to fire.
      -                        if (found) {
      -                            break;
      -                        }
      -                        found = true;
      -                    } else if (args[0] === moduleName) {
      -                        //Found matching define call for this script!
      -                        found = true;
      -                    }
      -
      -                    callGetModule(args);
      -                }
      -
      -                //Do this after the cycle of callGetModule in case the result
      -                //of those calls/init calls changes the registry.
      -                mod = getOwn(registry, moduleName);
      -
      -                if (!found && !hasProp(defined, moduleName) && mod && !mod.inited) {
      -                    if (config.enforceDefine && (!shExports || !getGlobal(shExports))) {
      -                        if (hasPathFallback(moduleName)) {
      -                            return;
      -                        } else {
      -                            return onError(makeError('nodefine',
      -                                             'No define call for ' + moduleName,
      -                                             null,
      -                                             [moduleName]));
      -                        }
      -                    } else {
      -                        //A script that does not call define(), so just simulate
      -                        //the call for it.
      -                        callGetModule([moduleName, (shim.deps || []), shim.exportsFn]);
      -                    }
      -                }
      -
      -                checkLoaded();
      -            },
      -
      -            /**
      -             * Converts a module name to a file path. Supports cases where
      -             * moduleName may actually be just an URL.
      -             * Note that it **does not** call normalize on the moduleName,
      -             * it is assumed to have already been normalized. This is an
      -             * internal API, not a public one. Use toUrl for the public API.
      -             */
      -            nameToUrl: function (moduleName, ext, skipExt) {
      -                var paths, pkgs, pkg, pkgPath, syms, i, parentModule, url,
      -                    parentPath;
      -
      -                //If a colon is in the URL, it indicates a protocol is used and it is just
      -                //an URL to a file, or if it starts with a slash, contains a query arg (i.e. ?)
      -                //or ends with .js, then assume the user meant to use an url and not a module id.
      -                //The slash is important for protocol-less URLs as well as full paths.
      -                if (req.jsExtRegExp.test(moduleName)) {
      -                    //Just a plain path, not module name lookup, so just return it.
      -                    //Add extension if it is included. This is a bit wonky, only non-.js things pass
      -                    //an extension, this method probably needs to be reworked.
      -                    url = moduleName + (ext || '');
      -                } else {
      -                    //A module that needs to be converted to a path.
      -                    paths = config.paths;
      -                    pkgs = config.pkgs;
      -
      -                    syms = moduleName.split('/');
      -                    //For each module name segment, see if there is a path
      -                    //registered for it. Start with most specific name
      -                    //and work up from it.
      -                    for (i = syms.length; i > 0; i -= 1) {
      -                        parentModule = syms.slice(0, i).join('/');
      -                        pkg = getOwn(pkgs, parentModule);
      -                        parentPath = getOwn(paths, parentModule);
      -                        if (parentPath) {
      -                            //If an array, it means there are a few choices,
      -                            //Choose the one that is desired
      -                            if (isArray(parentPath)) {
      -                                parentPath = parentPath[0];
      -                            }
      -                            syms.splice(0, i, parentPath);
      -                            break;
      -                        } else if (pkg) {
      -                            //If module name is just the package name, then looking
      -                            //for the main module.
      -                            if (moduleName === pkg.name) {
      -                                pkgPath = pkg.location + '/' + pkg.main;
      -                            } else {
      -                                pkgPath = pkg.location;
      -                            }
      -                            syms.splice(0, i, pkgPath);
      -                            break;
      -                        }
      -                    }
      -
      -                    //Join the path parts together, then figure out if baseUrl is needed.
      -                    url = syms.join('/');
      -                    url += (ext || (/\?/.test(url) || skipExt ? '' : '.js'));
      -                    url = (url.charAt(0) === '/' || url.match(/^[\w\+\.\-]+:/) ? '' : config.baseUrl) + url;
      -                }
      -
      -                return config.urlArgs ? url +
      -                                        ((url.indexOf('?') === -1 ? '?' : '&') +
      -                                         config.urlArgs) : url;
      -            },
      -
      -            //Delegates to req.load. Broken out as a separate function to
      -            //allow overriding in the optimizer.
      -            load: function (id, url) {
      -                req.load(context, id, url);
      -            },
      -
      -            /**
      -             * Executes a module callback function. Broken out as a separate function
      -             * solely to allow the build system to sequence the files in the built
      -             * layer in the right sequence.
      -             *
      -             * @private
      -             */
      -            execCb: function (name, callback, args, exports) {
      -                return callback.apply(exports, args);
      -            },
      -
      -            /**
      -             * callback for script loads, used to check status of loading.
      -             *
      -             * @param {Event} evt the event from the browser for the script
      -             * that was loaded.
      -             */
      -            onScriptLoad: function (evt) {
      -                //Using currentTarget instead of target for Firefox 2.0's sake. Not
      -                //all old browsers will be supported, but this one was easy enough
      -                //to support and still makes sense.
      -                if (evt.type === 'load' ||
      -                        (readyRegExp.test((evt.currentTarget || evt.srcElement).readyState))) {
      -                    //Reset interactive script so a script node is not held onto for
      -                    //to long.
      -                    interactiveScript = null;
      -
      -                    //Pull out the name of the module and the context.
      -                    var data = getScriptData(evt);
      -                    context.completeLoad(data.id);
      -                }
      -            },
      -
      -            /**
      -             * Callback for script errors.
      -             */
      -            onScriptError: function (evt) {
      -                var data = getScriptData(evt);
      -                if (!hasPathFallback(data.id)) {
      -                    return onError(makeError('scripterror', 'Script error for: ' + data.id, evt, [data.id]));
      -                }
      -            }
      -        };
      -
      -        context.require = context.makeRequire();
      -        return context;
      -    }
      -
      -    /**
      -     * Main entry point.
      -     *
      -     * If the only argument to require is a string, then the module that
      -     * is represented by that string is fetched for the appropriate context.
      -     *
      -     * If the first argument is an array, then it will be treated as an array
      -     * of dependency string names to fetch. An optional function callback can
      -     * be specified to execute when all of those dependencies are available.
      -     *
      -     * Make a local req variable to help Caja compliance (it assumes things
      -     * on a require that are not standardized), and to give a short
      -     * name for minification/local scope use.
      -     */
      -    req = requirejs = function (deps, callback, errback, optional) {
      -
      -        //Find the right context, use default
      -        var context, config,
      -            contextName = defContextName;
      -
      -        // Determine if have config object in the call.
      -        if (!isArray(deps) && typeof deps !== 'string') {
      -            // deps is a config object
      -            config = deps;
      -            if (isArray(callback)) {
      -                // Adjust args if there are dependencies
      -                deps = callback;
      -                callback = errback;
      -                errback = optional;
      -            } else {
      -                deps = [];
      -            }
      -        }
      -
      -        if (config && config.context) {
      -            contextName = config.context;
      -        }
      -
      -        context = getOwn(contexts, contextName);
      -        if (!context) {
      -            context = contexts[contextName] = req.s.newContext(contextName);
      -        }
      -
      -        if (config) {
      -            context.configure(config);
      -        }
      -
      -        return context.require(deps, callback, errback);
      -    };
      -
      -    /**
      -     * Support require.config() to make it easier to cooperate with other
      -     * AMD loaders on globally agreed names.
      -     */
      -    req.config = function (config) {
      -        return req(config);
      -    };
      -
      -    /**
      -     * Execute something after the current tick
      -     * of the event loop. Override for other envs
      -     * that have a better solution than setTimeout.
      -     * @param  {Function} fn function to execute later.
      -     */
      -    req.nextTick = typeof setTimeout !== 'undefined' ? function (fn) {
      -        setTimeout(fn, 4);
      -    } : function (fn) { fn(); };
      -
      -    /**
      -     * Export require as a global, but only if it does not already exist.
      -     */
      -    if (!require) {
      -        require = req;
      -    }
      -
      -    req.version = version;
      -
      -    //Used to filter out dependencies that are already paths.
      -    req.jsExtRegExp = /^\/|:|\?|\.js$/;
      -    req.isBrowser = isBrowser;
      -    s = req.s = {
      -        contexts: contexts,
      -        newContext: newContext
      -    };
      -
      -    //Create default context.
      -    req({});
      -
      -    //Exports some context-sensitive methods on global require.
      -    each([
      -        'toUrl',
      -        'undef',
      -        'defined',
      -        'specified'
      -    ], function (prop) {
      -        //Reference from contexts instead of early binding to default context,
      -        //so that during builds, the latest instance of the default context
      -        //with its config gets used.
      -        req[prop] = function () {
      -            var ctx = contexts[defContextName];
      -            return ctx.require[prop].apply(ctx, arguments);
      -        };
      -    });
      -
      -    if (isBrowser) {
      -        head = s.head = document.getElementsByTagName('head')[0];
      -        //If BASE tag is in play, using appendChild is a problem for IE6.
      -        //When that browser dies, this can be removed. Details in this jQuery bug:
      -        //http://dev.jquery.com/ticket/2709
      -        baseElement = document.getElementsByTagName('base')[0];
      -        if (baseElement) {
      -            head = s.head = baseElement.parentNode;
      -        }
      -    }
      -
      -    /**
      -     * Any errors that require explicitly generates will be passed to this
      -     * function. Intercept/override it if you want custom error handling.
      -     * @param {Error} err the error object.
      -     */
      -    req.onError = defaultOnError;
      -
      -    /**
      -     * Creates the node for the load command. Only used in browser envs.
      -     */
      -    req.createNode = function (config, moduleName, url) {
      -        var node = config.xhtml ?
      -                document.createElementNS('http://www.w3.org/1999/xhtml', 'html:script') :
      -                document.createElement('script');
      -        node.type = config.scriptType || 'text/javascript';
      -        node.charset = 'utf-8';
      -        node.async = true;
      -        return node;
      -    };
      -
      -    /**
      -     * Does the request to load a module for the browser case.
      -     * Make this a separate function to allow other environments
      -     * to override it.
      -     *
      -     * @param {Object} context the require context to find state.
      -     * @param {String} moduleName the name of the module.
      -     * @param {Object} url the URL to the module.
      -     */
      -    req.load = function (context, moduleName, url) {
      -        var config = (context && context.config) || {},
      -            node;
      -        if (isBrowser) {
      -            //In the browser so use a script tag
      -            node = req.createNode(config, moduleName, url);
      -
      -            node.setAttribute('data-requirecontext', context.contextName);
      -            node.setAttribute('data-requiremodule', moduleName);
      -
      -            //Set up load listener. Test attachEvent first because IE9 has
      -            //a subtle issue in its addEventListener and script onload firings
      -            //that do not match the behavior of all other browsers with
      -            //addEventListener support, which fire the onload event for a
      -            //script right after the script execution. See:
      -            //https://connect.microsoft.com/IE/feedback/details/648057/script-onload-event-is-not-fired-immediately-after-script-execution
      -            //UNFORTUNATELY Opera implements attachEvent but does not follow the script
      -            //script execution mode.
      -            if (node.attachEvent &&
      -                    //Check if node.attachEvent is artificially added by custom script or
      -                    //natively supported by browser
      -                    //read https://github.com/jrburke/requirejs/issues/187
      -                    //if we can NOT find [native code] then it must NOT natively supported.
      -                    //in IE8, node.attachEvent does not have toString()
      -                    //Note the test for "[native code" with no closing brace, see:
      -                    //https://github.com/jrburke/requirejs/issues/273
      -                    !(node.attachEvent.toString && node.attachEvent.toString().indexOf('[native code') < 0) &&
      -                    !isOpera) {
      -                //Probably IE. IE (at least 6-8) do not fire
      -                //script onload right after executing the script, so
      -                //we cannot tie the anonymous define call to a name.
      -                //However, IE reports the script as being in 'interactive'
      -                //readyState at the time of the define call.
      -                useInteractive = true;
      -
      -                node.attachEvent('onreadystatechange', context.onScriptLoad);
      -                //It would be great to add an error handler here to catch
      -                //404s in IE9+. However, onreadystatechange will fire before
      -                //the error handler, so that does not help. If addEventListener
      -                //is used, then IE will fire error before load, but we cannot
      -                //use that pathway given the connect.microsoft.com issue
      -                //mentioned above about not doing the 'script execute,
      -                //then fire the script load event listener before execute
      -                //next script' that other browsers do.
      -                //Best hope: IE10 fixes the issues,
      -                //and then destroys all installs of IE 6-9.
      -                //node.attachEvent('onerror', context.onScriptError);
      -            } else {
      -                node.addEventListener('load', context.onScriptLoad, false);
      -                node.addEventListener('error', context.onScriptError, false);
      -            }
      -            node.src = url;
      -
      -            //For some cache cases in IE 6-8, the script executes before the end
      -            //of the appendChild execution, so to tie an anonymous define
      -            //call to the module name (which is stored on the node), hold on
      -            //to a reference to this node, but clear after the DOM insertion.
      -            currentlyAddingScript = node;
      -            if (baseElement) {
      -                head.insertBefore(node, baseElement);
      -            } else {
      -                head.appendChild(node);
      -            }
      -            currentlyAddingScript = null;
      -
      -            return node;
      -        } else if (isWebWorker) {
      -            try {
      -                //In a web worker, use importScripts. This is not a very
      -                //efficient use of importScripts, importScripts will block until
      -                //its script is downloaded and evaluated. However, if web workers
      -                //are in play, the expectation that a build has been done so that
      -                //only one script needs to be loaded anyway. This may need to be
      -                //reevaluated if other use cases become common.
      -                importScripts(url);
      -
      -                //Account for anonymous modules
      -                context.completeLoad(moduleName);
      -            } catch (e) {
      -                context.onError(makeError('importscripts',
      -                                'importScripts failed for ' +
      -                                    moduleName + ' at ' + url,
      -                                e,
      -                                [moduleName]));
      -            }
      -        }
      -    };
      -
      -    function getInteractiveScript() {
      -        if (interactiveScript && interactiveScript.readyState === 'interactive') {
      -            return interactiveScript;
      -        }
      -
      -        eachReverse(scripts(), function (script) {
      -            if (script.readyState === 'interactive') {
      -                return (interactiveScript = script);
      -            }
      -        });
      -        return interactiveScript;
      -    }
      -
      -    //Look for a data-main script attribute, which could also adjust the baseUrl.
      -    if (isBrowser) {
      -        //Figure out baseUrl. Get it from the script tag with require.js in it.
      -        eachReverse(scripts(), function (script) {
      -            //Set the 'head' where we can append children by
      -            //using the script's parent.
      -            if (!head) {
      -                head = script.parentNode;
      -            }
      -
      -            //Look for a data-main attribute to set main script for the page
      -            //to load. If it is there, the path to data main becomes the
      -            //baseUrl, if it is not already set.
      -            dataMain = script.getAttribute('data-main');
      -            if (dataMain) {
      -                //Preserve dataMain in case it is a path (i.e. contains '?')
      -                mainScript = dataMain;
      -
      -                //Set final baseUrl if there is not already an explicit one.
      -                if (!cfg.baseUrl) {
      -                    //Pull off the directory of data-main for use as the
      -                    //baseUrl.
      -                    src = mainScript.split('/');
      -                    mainScript = src.pop();
      -                    subPath = src.length ? src.join('/')  + '/' : './';
      -
      -                    cfg.baseUrl = subPath;
      -                }
      -
      -                //Strip off any trailing .js since mainScript is now
      -                //like a module name.
      -                mainScript = mainScript.replace(jsSuffixRegExp, '');
      -
      -                 //If mainScript is still a path, fall back to dataMain
      -                if (req.jsExtRegExp.test(mainScript)) {
      -                    mainScript = dataMain;
      -                }
      -
      -                //Put the data-main script in the files to load.
      -                cfg.deps = cfg.deps ? cfg.deps.concat(mainScript) : [mainScript];
      -
      -                return true;
      -            }
      -        });
      -    }
      -
      -    /**
      -     * The function that handles definitions of modules. Differs from
      -     * require() in that a string for the module should be the first argument,
      -     * and the function to execute after dependencies are loaded should
      -     * return a value to define the module corresponding to the first argument's
      -     * name.
      -     */
      -    define = function (name, deps, callback) {
      -        var node, context;
      -
      -        //Allow for anonymous modules
      -        if (typeof name !== 'string') {
      -            //Adjust args appropriately
      -            callback = deps;
      -            deps = name;
      -            name = null;
      -        }
      -
      -        //This module may not have dependencies
      -        if (!isArray(deps)) {
      -            callback = deps;
      -            deps = null;
      -        }
      -
      -        //If no name, and callback is a function, then figure out if it a
      -        //CommonJS thing with dependencies.
      -        if (!deps && isFunction(callback)) {
      -            deps = [];
      -            //Remove comments from the callback string,
      -            //look for require calls, and pull them into the dependencies,
      -            //but only if there are function args.
      -            if (callback.length) {
      -                callback
      -                    .toString()
      -                    .replace(commentRegExp, '')
      -                    .replace(cjsRequireRegExp, function (match, dep) {
      -                        deps.push(dep);
      -                    });
      -
      -                //May be a CommonJS thing even without require calls, but still
      -                //could use exports, and module. Avoid doing exports and module
      -                //work though if it just needs require.
      -                //REQUIRES the function to expect the CommonJS variables in the
      -                //order listed below.
      -                deps = (callback.length === 1 ? ['require'] : ['require', 'exports', 'module']).concat(deps);
      -            }
      -        }
      -
      -        //If in IE 6-8 and hit an anonymous define() call, do the interactive
      -        //work.
      -        if (useInteractive) {
      -            node = currentlyAddingScript || getInteractiveScript();
      -            if (node) {
      -                if (!name) {
      -                    name = node.getAttribute('data-requiremodule');
      -                }
      -                context = contexts[node.getAttribute('data-requirecontext')];
      -            }
      -        }
      -
      -        //Always save off evaluating the def call until the script onload handler.
      -        //This allows multiple modules to be in a file without prematurely
      -        //tracing dependencies, and allows for anonymous module support,
      -        //where the module name is not known until the script onload event
      -        //occurs. If no context, use the global queue, and get it processed
      -        //in the onscript load callback.
      -        (context ? context.defQueue : globalDefQueue).push([name, deps, callback]);
      -    };
      -
      -    define.amd = {
      -        jQuery: true
      -    };
      -
      -
      -    /**
      -     * Executes the text. Normally just uses eval, but can be modified
      -     * to use a better, environment-specific call. Only used for transpiling
      -     * loader plugins, not for plain JS modules.
      -     * @param {String} text the text to execute/evaluate.
      -     */
      -    req.exec = function (text) {
      -        /*jslint evil: true */
      -        return eval(text);
      -    };
      -
      -    //Set up with config info.
      -    req(cfg);
      -}(this));
      -;
      -/**
      - * jQuery JavaScript Library v1.9.1
      - * <pre>http://jquery.com/
      - *
      - * Includes Sizzle.js
      - * http://sizzlejs.com/
      - *
      - * Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors
      - * Released under the MIT license
      - * http://jquery.org/license
      - * Date: 2013-2-4</pre>
      - * @class jQuery
      - * @namespace   window
      - * @global
      - */
      -
      -(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return new b.fn.init(e,t,r)},x=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,w=/\S+/g,T=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,N=/^(?:(<[\w\W]+>)[^>]*|#([\w-]*))$/,C=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,k=/^[\],:{}\s]*$/,E=/(?:^|:|,)(?:\s*\[)+/g,S=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,A=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,j=/^-ms-/,D=/-([\da-z])/gi,L=function(e,t){return t.toUpperCase()},H=function(e){(o.addEventListener||"load"===e.type||"complete"===o.readyState)&&(q(),b.ready())},q=function(){o.addEventListener?(o.removeEventListener("DOMContentLoaded",H,!1),e.removeEventListener("load",H,!1)):(o.detachEvent("onreadystatechange",H),e.detachEvent("onload",H))};b.fn=b.prototype={jquery:p,constructor:b,init:function(e,n,r){var i,a;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 b?n[0]:n,b.merge(this,b.parseHTML(i[1],n&&n.nodeType?n.ownerDocument||n:o,!0)),C.test(i[1])&&b.isPlainObject(n))for(i in n)b.isFunction(this[i])?this[i](n[i]):this.attr(i,n[i]);return this}if(a=o.getElementById(i[2]),a&&a.parentNode){if(a.id!==i[2])return r.find(e);this.length=1,this[0]=a}return this.context=o,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):b.isFunction(e)?r.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),b.makeArray(e,this))},selector:"",length:0,size:function(){return this.length},toArray:function(){return h.call(this)},get:function(e){return null==e?this.toArray():0>e?this[this.length+e]:this[e]},pushStack:function(e){var t=b.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return b.each(this,e,t)},ready:function(e){return b.ready.promise().done(e),this},slice:function(){return this.pushStack(h.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(b.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:d,sort:[].sort,splice:[].splice},b.fn.init.prototype=b.fn,b.extend=b.fn.extend=function(){var e,n,r,i,o,a,s=arguments[0]||{},u=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},u=2),"object"==typeof s||b.isFunction(s)||(s={}),l===u&&(s=this,--u);l>u;u++)if(null!=(o=arguments[u]))for(i in o)e=s[i],r=o[i],s!==r&&(c&&r&&(b.isPlainObject(r)||(n=b.isArray(r)))?(n?(n=!1,a=e&&b.isArray(e)?e:[]):a=e&&b.isPlainObject(e)?e:{},s[i]=b.extend(c,a,r)):r!==t&&(s[i]=r));return s},b.extend({noConflict:function(t){return e.$===b&&(e.$=u),t&&e.jQuery===b&&(e.jQuery=s),b},isReady:!1,readyWait:1,holdReady:function(e){e?b.readyWait++:b.ready(!0)},ready:function(e){if(e===!0?!--b.readyWait:!b.isReady){if(!o.body)return setTimeout(b.ready);b.isReady=!0,e!==!0&&--b.readyWait>0||(n.resolveWith(o,[b]),b.fn.trigger&&b(o).trigger("ready").off("ready"))}},isFunction:function(e){return"function"===b.type(e)},isArray:Array.isArray||function(e){return"array"===b.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?l[m.call(e)]||"object":typeof e},isPlainObject:function(e){if(!e||"object"!==b.type(e)||e.nodeType||b.isWindow(e))return!1;try{if(e.constructor&&!y.call(e,"constructor")&&!y.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}var r;for(r in e);return r===t||y.call(e,r)},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||o;var r=C.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=b.buildFragment([e],t,i),i&&b(i).remove(),b.merge([],r.childNodes))},parseJSON:function(n){return e.JSON&&e.JSON.parse?e.JSON.parse(n):null===n?n:"string"==typeof n&&(n=b.trim(n),n&&k.test(n.replace(S,"@").replace(A,"]").replace(E,"")))?Function("return "+n)():(b.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||b.error("Invalid XML: "+n),r},noop:function(){},globalEval:function(t){t&&b.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(j,"ms-").replace(D,L)},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:v&&!v.call("\ufeff\u00a0")?function(e){return null==e?"":v.call(e)}:function(e){return null==e?"":(e+"").replace(T,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(M(Object(e))?b.merge(n,"string"==typeof e?[e]:e):d.call(n,e)),n},inArray:function(e,t,n){var r;if(t){if(g)return g.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 f.apply([],s)},guid:1,proxy:function(e,n){var r,i,o;return"string"==typeof n&&(o=e[n],n=e,e=o),b.isFunction(e)?(r=h.call(arguments,2),i=function(){return e.apply(n||this,r.concat(h.call(arguments)))},i.guid=e.guid=e.guid||b.guid++,i):t},access:function(e,n,r,i,o,a,s){var u=0,l=e.length,c=null==r;if("object"===b.type(r)){o=!0;for(u in r)b.access(e,n,u,r[u],!0,a,s)}else if(i!==t&&(o=!0,b.isFunction(i)||(s=!0),c&&(s?(n.call(e,i),n=null):(c=n,n=function(e,t,n){return c.call(b(e),n)})),n))for(;l>u;u++)n(e[u],r,s?i:i.call(e[u],u,n(e[u],r)));return o?e:c?n.call(e):l?n(e[0],r):a},now:function(){return(new Date).getTime()}}),b.ready.promise=function(t){if(!n)if(n=b.Deferred(),"complete"===o.readyState)setTimeout(b.ready);else if(o.addEventListener)o.addEventListener("DOMContentLoaded",H,!1),e.addEventListener("load",H,!1);else{o.attachEvent("onreadystatechange",H),e.attachEvent("onload",H);var r=!1;try{r=null==e.frameElement&&o.documentElement}catch(i){}r&&r.doScroll&&function a(){if(!b.isReady){try{r.doScroll("left")}catch(e){return setTimeout(a,50)}q(),b.ready()}}()}return n.promise(t)},b.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){l["[object "+t+"]"]=t.toLowerCase()});function M(e){var t=e.length,n=b.type(e);return b.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}r=b(o);var _={};function F(e){var t=_[e]={};return b.each(e.match(w)||[],function(e,n){t[n]=!0}),t}b.Callbacks=function(e){e="string"==typeof e?_[e]||F(e):b.extend({},e);var n,r,i,o,a,s,u=[],l=!e.once&&[],c=function(t){for(r=e.memory&&t,i=!0,a=s||0,s=0,o=u.length,n=!0;u&&o>a;a++)if(u[a].apply(t[0],t[1])===!1&&e.stopOnFalse){r=!1;break}n=!1,u&&(l?l.length&&c(l.shift()):r?u=[]:p.disable())},p={add:function(){if(u){var t=u.length;(function i(t){b.each(t,function(t,n){var r=b.type(n);"function"===r?e.unique&&p.has(n)||u.push(n):n&&n.length&&"string"!==r&&i(n)})})(arguments),n?o=u.length:r&&(s=t,c(r))}return this},remove:function(){return u&&b.each(arguments,function(e,t){var r;while((r=b.inArray(t,u,r))>-1)u.splice(r,1),n&&(o>=r&&o--,a>=r&&a--)}),this},has:function(e){return e?b.inArray(e,u)>-1:!(!u||!u.length)},empty:function(){return u=[],this},disable:function(){return u=l=r=t,this},disabled:function(){return!u},lock:function(){return l=t,r||p.disable(),this},locked:function(){return!l},fireWith:function(e,t){return t=t||[],t=[e,t.slice?t.slice():t],!u||i&&!l||(n?l.push(t):c(t)),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!i}};return p},b.extend({Deferred:function(e){var t=[["resolve","done",b.Callbacks("once memory"),"resolved"],["reject","fail",b.Callbacks("once memory"),"rejected"],["notify","progress",b.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return b.Deferred(function(n){b.each(t,function(t,o){var a=o[0],s=b.isFunction(e[t])&&e[t];i[o[1]](function(){var e=s&&s.apply(this,arguments);e&&b.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?b.extend(e,r):r}},i={};return r.pipe=r.then,b.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=h.call(arguments),r=n.length,i=1!==r||e&&b.isFunction(e.promise)?r:0,o=1===i?e:b.Deferred(),a=function(e,t,n){return function(r){t[e]=this,n[e]=arguments.length>1?h.call(arguments):r,n===s?o.notifyWith(t,n):--i||o.resolveWith(t,n)}},s,u,l;if(r>1)for(s=Array(r),u=Array(r),l=Array(r);r>t;t++)n[t]&&b.isFunction(n[t].promise)?n[t].promise().done(a(t,l,n)).fail(o.reject).progress(a(t,u,s)):--i;return i||o.resolveWith(l,n),o.promise()}}),b.support=function(){var t,n,r,a,s,u,l,c,p,f,d=o.createElement("div");if(d.setAttribute("className","t"),d.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",n=d.getElementsByTagName("*"),r=d.getElementsByTagName("a")[0],!n||!r||!n.length)return{};s=o.createElement("select"),l=s.appendChild(o.createElement("option")),a=d.getElementsByTagName("input")[0],r.style.cssText="top:1px;float:left;opacity:.5",t={getSetAttribute:"t"!==d.className,leadingWhitespace:3===d.firstChild.nodeType,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/top/.test(r.getAttribute("style")),hrefNormalized:"/a"===r.getAttribute("href"),opacity:/^0.5/.test(r.style.opacity),cssFloat:!!r.style.cssFloat,checkOn:!!a.value,optSelected:l.selected,enctype:!!o.createElement("form").enctype,html5Clone:"<:nav></:nav>"!==o.createElement("nav").cloneNode(!0).outerHTML,boxModel:"CSS1Compat"===o.compatMode,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1},a.checked=!0,t.noCloneChecked=a.cloneNode(!0).checked,s.disabled=!0,t.optDisabled=!l.disabled;try{delete d.test}catch(h){t.deleteExpando=!1}a=o.createElement("input"),a.setAttribute("value",""),t.input=""===a.getAttribute("value"),a.value="t",a.setAttribute("type","radio"),t.radioValue="t"===a.value,a.setAttribute("checked","t"),a.setAttribute("name","t"),u=o.createDocumentFragment(),u.appendChild(a),t.appendChecked=a.checked,t.checkClone=u.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;return d.style.backgroundClip="content-box",d.cloneNode(!0).style.backgroundClip="",t.clearCloneStyle="content-box"===d.style.backgroundClip,b(function(){var n,r,a,s="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",u=o.getElementsByTagName("body")[0];u&&(n=o.createElement("div"),n.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",u.appendChild(n).appendChild(d),d.innerHTML="<table><tr><td></td><td>t</td></tr></table>",a=d.getElementsByTagName("td"),a[0].style.cssText="padding:0;margin:0;border:0;display:none",p=0===a[0].offsetHeight,a[0].style.display="",a[1].style.display="none",t.reliableHiddenOffsets=p&&0===a[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%;",t.boxSizing=4===d.offsetWidth,t.doesNotIncludeMarginInBodyOffset=1!==u.offsetTop,e.getComputedStyle&&(t.pixelPosition="1%"!==(e.getComputedStyle(d,null)||{}).top,t.boxSizingReliable="4px"===(e.getComputedStyle(d,null)||{width:"4px"}).width,r=d.appendChild(o.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="<div></div>",d.firstChild.style.width="5px",t.shrinkWrapBlocks=3!==d.offsetWidth,t.inlineBlockNeedsLayout&&(u.style.zoom=1)),u.removeChild(n),n=d=a=r=null)}),n=s=u=l=r=a=null,t}();var O=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,B=/([A-Z])/g;function P(e,n,r,i){if(b.acceptData(e)){var o,a,s=b.expando,u="string"==typeof n,l=e.nodeType,p=l?b.cache:e,f=l?e[s]:e[s]&&s;if(f&&p[f]&&(i||p[f].data)||!u||r!==t)return f||(l?e[s]=f=c.pop()||b.guid++:f=s),p[f]||(p[f]={},l||(p[f].toJSON=b.noop)),("object"==typeof n||"function"==typeof n)&&(i?p[f]=b.extend(p[f],n):p[f].data=b.extend(p[f].data,n)),o=p[f],i||(o.data||(o.data={}),o=o.data),r!==t&&(o[b.camelCase(n)]=r),u?(a=o[n],null==a&&(a=o[b.camelCase(n)])):a=o,a}}function R(e,t,n){if(b.acceptData(e)){var r,i,o,a=e.nodeType,s=a?b.cache:e,u=a?e[b.expando]:b.expando;if(s[u]){if(t&&(o=n?s[u]:s[u].data)){b.isArray(t)?t=t.concat(b.map(t,b.camelCase)):t in o?t=[t]:(t=b.camelCase(t),t=t in o?[t]:t.split(" "));for(r=0,i=t.length;i>r;r++)delete o[t[r]];if(!(n?$:b.isEmptyObject)(o))return}(n||(delete s[u].data,$(s[u])))&&(a?b.cleanData([e],!0):b.support.deleteExpando||s!=s.window?delete s[u]:s[u]=null)}}}b.extend({cache:{},expando:"jQuery"+(p+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(e){return e=e.nodeType?b.cache[e[b.expando]]:e[b.expando],!!e&&!$(e)},data:function(e,t,n){return P(e,t,n)},removeData:function(e,t){return R(e,t)},_data:function(e,t,n){return P(e,t,n,!0)},_removeData:function(e,t){return R(e,t,!0)},acceptData:function(e){if(e.nodeType&&1!==e.nodeType&&9!==e.nodeType)return!1;var t=e.nodeName&&b.noData[e.nodeName.toLowerCase()];return!t||t!==!0&&e.getAttribute("classid")===t}}),b.fn.extend({data:function(e,n){var r,i,o=this[0],a=0,s=null;if(e===t){if(this.length&&(s=b.data(o),1===o.nodeType&&!b._data(o,"parsedAttrs"))){for(r=o.attributes;r.length>a;a++)i=r[a].name,i.indexOf("data-")||(i=b.camelCase(i.slice(5)),W(o,i,s[i]));b._data(o,"parsedAttrs",!0)}return s}return"object"==typeof e?this.each(function(){b.data(this,e)}):b.access(this,function(n){return n===t?o?W(o,e,b.data(o,e)):null:(this.each(function(){b.data(this,e,n)}),t)},null,n,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){b.removeData(this,e)})}});function W(e,n,r){if(r===t&&1===e.nodeType){var i="data-"+n.replace(B,"-$1").toLowerCase();if(r=e.getAttribute(i),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:O.test(r)?b.parseJSON(r):r}catch(o){}b.data(e,n,r)}else r=t}return r}function $(e){var t;for(t in e)if(("data"!==t||!b.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}b.extend({queue:function(e,n,r){var i;return e?(n=(n||"fx")+"queue",i=b._data(e,n),r&&(!i||b.isArray(r)?i=b._data(e,n,b.makeArray(r)):i.push(r)),i||[]):t},dequeue:function(e,t){t=t||"fx";var n=b.queue(e,t),r=n.length,i=n.shift(),o=b._queueHooks(e,t),a=function(){b.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),o.cur=i,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 b._data(e,n)||b._data(e,n,{empty:b.Callbacks("once memory").add(function(){b._removeData(e,t+"queue"),b._removeData(e,n)})})}}),b.fn.extend({queue:function(e,n){var r=2;return"string"!=typeof e&&(n=e,e="fx",r--),r>arguments.length?b.queue(this[0],e):n===t?this:this.each(function(){var t=b.queue(this,e,n);b._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&b.dequeue(this,e)})},dequeue:function(e){return this.each(function(){b.dequeue(this,e)})},delay:function(e,t){return e=b.fx?b.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=b.Deferred(),a=this,s=this.length,u=function(){--i||o.resolveWith(a,[a])};"string"!=typeof e&&(n=e,e=t),e=e||"fx";while(s--)r=b._data(a[s],e+"queueHooks"),r&&r.empty&&(i++,r.empty.add(u));return u(),o.promise(n)}});var I,z,X=/[\t\r\n]/g,U=/\r/g,V=/^(?:input|select|textarea|button|object)$/i,Y=/^(?:a|area)$/i,J=/^(?:checked|selected|autofocus|autoplay|async|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped)$/i,G=/^(?:checked|selected)$/i,Q=b.support.getSetAttribute,K=b.support.input;b.fn.extend({attr:function(e,t){return b.access(this,b.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){b.removeAttr(this,e)})},prop:function(e,t){return b.access(this,b.prop,e,t,arguments.length>1)},removeProp:function(e){return e=b.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,u="string"==typeof e&&e;if(b.isFunction(e))return this.each(function(t){b(this).addClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(w)||[];s>a;a++)if(n=this[a],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(X," "):" ")){o=0;while(i=t[o++])0>r.indexOf(" "+i+" ")&&(r+=i+" ");n.className=b.trim(r)}return this},removeClass:function(e){var t,n,r,i,o,a=0,s=this.length,u=0===arguments.length||"string"==typeof e&&e;if(b.isFunction(e))return this.each(function(t){b(this).removeClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(w)||[];s>a;a++)if(n=this[a],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(X," "):"")){o=0;while(i=t[o++])while(r.indexOf(" "+i+" ")>=0)r=r.replace(" "+i+" "," ");n.className=e?b.trim(r):""}return this},toggleClass:function(e,t){var n=typeof e,r="boolean"==typeof t;return b.isFunction(e)?this.each(function(n){b(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if("string"===n){var o,a=0,s=b(this),u=t,l=e.match(w)||[];while(o=l[a++])u=r?u:!s.hasClass(o),s[u?"addClass":"removeClass"](o)}else(n===i||"boolean"===n)&&(this.className&&b._data(this,"__className__",this.className),this.className=this.className||e===!1?"":b._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(X," ").indexOf(t)>=0)return!0;return!1},val:function(e){var n,r,i,o=this[0];{if(arguments.length)return i=b.isFunction(e),this.each(function(n){var o,a=b(this);1===this.nodeType&&(o=i?e.call(this,n,a.val()):e,null==o?o="":"number"==typeof o?o+="":b.isArray(o)&&(o=b.map(o,function(e){return null==e?"":e+""})),r=b.valHooks[this.type]||b.valHooks[this.nodeName.toLowerCase()],r&&"set"in r&&r.set(this,o,"value")!==t||(this.value=o))});if(o)return r=b.valHooks[o.type]||b.valHooks[o.nodeName.toLowerCase()],r&&"get"in r&&(n=r.get(o,"value"))!==t?n:(n=o.value,"string"==typeof n?n.replace(U,""):null==n?"":n)}}}),b.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||0>i,a=o?null:[],s=o?i+1:r.length,u=0>i?s:o?i:0;for(;s>u;u++)if(n=r[u],!(!n.selected&&u!==i||(b.support.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&b.nodeName(n.parentNode,"optgroup"))){if(t=b(n).val(),o)return t;a.push(t)}return a},set:function(e,t){var n=b.makeArray(t);return b(e).find("option").each(function(){this.selected=b.inArray(b(this).val(),n)>=0}),n.length||(e.selectedIndex=-1),n}}},attr:function(e,n,r){var o,a,s,u=e.nodeType;if(e&&3!==u&&8!==u&&2!==u)return typeof e.getAttribute===i?b.prop(e,n,r):(a=1!==u||!b.isXMLDoc(e),a&&(n=n.toLowerCase(),o=b.attrHooks[n]||(J.test(n)?z:I)),r===t?o&&a&&"get"in o&&null!==(s=o.get(e,n))?s:(typeof e.getAttribute!==i&&(s=e.getAttribute(n)),null==s?t:s):null!==r?o&&a&&"set"in o&&(s=o.set(e,r,n))!==t?s:(e.setAttribute(n,r+""),r):(b.removeAttr(e,n),t))},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(w);if(o&&1===e.nodeType)while(n=o[i++])r=b.propFix[n]||n,J.test(n)?!Q&&G.test(n)?e[b.camelCase("default-"+n)]=e[r]=!1:e[r]=!1:b.attr(e,n,""),e.removeAttribute(Q?n:r)},attrHooks:{type:{set:function(e,t){if(!b.support.radioValue&&"radio"===t&&b.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(e,n,r){var i,o,a,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return a=1!==s||!b.isXMLDoc(e),a&&(n=b.propFix[n]||n,o=b.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 n=e.getAttributeNode("tabindex");return n&&n.specified?parseInt(n.value,10):V.test(e.nodeName)||Y.test(e.nodeName)&&e.href?0:t}}}}),z={get:function(e,n){var r=b.prop(e,n),i="boolean"==typeof r&&e.getAttribute(n),o="boolean"==typeof r?K&&Q?null!=i:G.test(n)?e[b.camelCase("default-"+n)]:!!i:e.getAttributeNode(n);return o&&o.value!==!1?n.toLowerCase():t},set:function(e,t,n){return t===!1?b.removeAttr(e,n):K&&Q||!G.test(n)?e.setAttribute(!Q&&b.propFix[n]||n,n):e[b.camelCase("default-"+n)]=e[n]=!0,n}},K&&Q||(b.attrHooks.value={get:function(e,n){var r=e.getAttributeNode(n);return b.nodeName(e,"input")?e.defaultValue:r&&r.specified?r.value:t},set:function(e,n,r){return b.nodeName(e,"input")?(e.defaultValue=n,t):I&&I.set(e,n,r)}}),Q||(I=b.valHooks.button={get:function(e,n){var r=e.getAttributeNode(n);return r&&("id"===n||"name"===n||"coords"===n?""!==r.value:r.specified)?r.value:t},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}},b.attrHooks.contenteditable={get:I.get,set:function(e,t,n){I.set(e,""===t?!1:t,n)}},b.each(["width","height"],function(e,n){b.attrHooks[n]=b.extend(b.attrHooks[n],{set:function(e,r){return""===r?(e.setAttribute(n,"auto"),r):t}})})),b.support.hrefNormalized||(b.each(["href","src","width","height"],function(e,n){b.attrHooks[n]=b.extend(b.attrHooks[n],{get:function(e){var r=e.getAttribute(n,2);return null==r?t:r}})}),b.each(["href","src"],function(e,t){b.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}})),b.support.style||(b.attrHooks.style={get:function(e){return e.style.cssText||t},set:function(e,t){return e.style.cssText=t+""}}),b.support.optSelected||(b.propHooks.selected=b.extend(b.propHooks.selected,{get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}})),b.support.enctype||(b.propFix.enctype="encoding"),b.support.checkOn||b.each(["radio","checkbox"],function(){b.valHooks[this]={get:function(e){return null===e.getAttribute("value")?"on":e.value}}}),b.each(["radio","checkbox"],function(){b.valHooks[this]=b.extend(b.valHooks[this],{set:function(e,n){return b.isArray(n)?e.checked=b.inArray(b(e).val(),n)>=0:t}})});var Z=/^(?:input|select|textarea)$/i,et=/^key/,tt=/^(?:mouse|contextmenu)|click/,nt=/^(?:focusinfocus|focusoutblur)$/,rt=/^([^.]*)(?:\.(.+)|)$/;function it(){return!0}function ot(){return!1}b.event={global:{},add:function(e,n,r,o,a){var s,u,l,c,p,f,d,h,g,m,y,v=b._data(e);if(v){r.handler&&(c=r,r=c.handler,a=c.selector),r.guid||(r.guid=b.guid++),(u=v.events)||(u=v.events={}),(f=v.handle)||(f=v.handle=function(e){return typeof b===i||e&&b.event.triggered===e.type?t:b.event.dispatch.apply(f.elem,arguments)},f.elem=e),n=(n||"").match(w)||[""],l=n.length;while(l--)s=rt.exec(n[l])||[],g=y=s[1],m=(s[2]||"").split(".").sort(),p=b.event.special[g]||{},g=(a?p.delegateType:p.bindType)||g,p=b.event.special[g]||{},d=b.extend({type:g,origType:y,data:o,handler:r,guid:r.guid,selector:a,needsContext:a&&b.expr.match.needsContext.test(a),namespace:m.join(".")},c),(h=u[g])||(h=u[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),b.event.global[g]=!0;e=null}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,p,f,d,h,g,m=b.hasData(e)&&b._data(e);if(m&&(c=m.events)){t=(t||"").match(w)||[""],l=t.length;while(l--)if(s=rt.exec(t[l])||[],d=g=s[1],h=(s[2]||"").split(".").sort(),d){p=b.event.special[d]||{},d=(r?p.delegateType:p.bindType)||d,f=c[d]||[],s=s[2]&&RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),u=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));u&&!f.length&&(p.teardown&&p.teardown.call(e,h,m.handle)!==!1||b.removeEvent(e,d,m.handle),delete c[d])}else for(d in c)b.event.remove(e,d+t[l],n,r,!0);b.isEmptyObject(c)&&(delete m.handle,b._removeData(e,"events"))}},trigger:function(n,r,i,a){var s,u,l,c,p,f,d,h=[i||o],g=y.call(n,"type")?n.type:n,m=y.call(n,"namespace")?n.namespace.split("."):[];if(l=f=i=i||o,3!==i.nodeType&&8!==i.nodeType&&!nt.test(g+b.event.triggered)&&(g.indexOf(".")>=0&&(m=g.split("."),g=m.shift(),m.sort()),u=0>g.indexOf(":")&&"on"+g,n=n[b.expando]?n:new b.Event(g,"object"==typeof n&&n),n.isTrigger=!0,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]:b.makeArray(r,[n]),p=b.event.special[g]||{},a||!p.trigger||p.trigger.apply(i,r)!==!1)){if(!a&&!p.noBubble&&!b.isWindow(i)){for(c=p.delegateType||g,nt.test(c+g)||(l=l.parentNode);l;l=l.parentNode)h.push(l),f=l;f===(i.ownerDocument||o)&&h.push(f.defaultView||f.parentWindow||e)}d=0;while((l=h[d++])&&!n.isPropagationStopped())n.type=d>1?c:p.bindType||g,s=(b._data(l,"events")||{})[n.type]&&b._data(l,"handle"),s&&s.apply(l,r),s=u&&l[u],s&&b.acceptData(l)&&s.apply&&s.apply(l,r)===!1&&n.preventDefault();if(n.type=g,!(a||n.isDefaultPrevented()||p._default&&p._default.apply(i.ownerDocument,r)!==!1||"click"===g&&b.nodeName(i,"a")||!b.acceptData(i)||!u||!i[g]||b.isWindow(i))){f=i[u],f&&(i[u]=null),b.event.triggered=g;try{i[g]()}catch(v){}b.event.triggered=t,f&&(i[u]=f)}return n.result}},dispatch:function(e){e=b.event.fix(e);var n,r,i,o,a,s=[],u=h.call(arguments),l=(b._data(this,"events")||{})[e.type]||[],c=b.event.special[e.type]||{};if(u[0]=e,e.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,e)!==!1){s=b.event.handlers.call(this,e,l),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=((b.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,u),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=[],u=n.delegateCount,l=e.target;if(u&&l.nodeType&&(!e.button||"click"!==e.type))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(l.disabled!==!0||"click"!==e.type)){for(o=[],a=0;u>a;a++)i=n[a],r=i.selector+" ",o[r]===t&&(o[r]=i.needsContext?b(r,this).index(l)>=0:b.find(r,this,null,[l]).length),o[r]&&o.push(i);o.length&&s.push({elem:l,handlers:o})}return n.length>u&&s.push({elem:this,handlers:n.slice(u)}),s},fix:function(e){if(e[b.expando])return e;var t,n,r,i=e.type,a=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 b.Event(a),t=r.length;while(t--)n=r[t],e[n]=a[n];return e.target||(e.target=a.srcElement||o),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,s.filter?s.filter(e,a):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,a,s=n.button,u=n.fromElement;return null==e.pageX&&null!=n.clientX&&(i=e.target.ownerDocument||o,a=i.documentElement,r=i.body,e.pageX=n.clientX+(a&&a.scrollLeft||r&&r.scrollLeft||0)-(a&&a.clientLeft||r&&r.clientLeft||0),e.pageY=n.clientY+(a&&a.scrollTop||r&&r.scrollTop||0)-(a&&a.clientTop||r&&r.clientTop||0)),!e.relatedTarget&&u&&(e.relatedTarget=u===e.target?n.toElement:u),e.which||s===t||(e.which=1&s?1:2&s?3:4&s?2:0),e}},special:{load:{noBubble:!0},click:{trigger:function(){return b.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):t}},focus:{trigger:function(){if(this!==o.activeElement&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){return this===o.activeElement&&this.blur?(this.blur(),!1):t},delegateType:"focusout"},beforeunload:{postDispatch:function(e){e.result!==t&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=b.extend(new b.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?b.event.trigger(i,null,t):b.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},b.removeEvent=o.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))},b.Event=function(e,n){return this instanceof b.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&&b.extend(this,n),this.timeStamp=e&&e.timeStamp||b.now(),this[b.expando]=!0,t):new b.Event(e,n)},b.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()}},b.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){b.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;
      -return(!i||i!==r&&!b.contains(r,i))&&(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),b.support.submitBubbles||(b.event.special.submit={setup:function(){return b.nodeName(this,"form")?!1:(b.event.add(this,"click._submit keypress._submit",function(e){var n=e.target,r=b.nodeName(n,"input")||b.nodeName(n,"button")?n.form:t;r&&!b._data(r,"submitBubbles")&&(b.event.add(r,"submit._submit",function(e){e._submit_bubble=!0}),b._data(r,"submitBubbles",!0))}),t)},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&b.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){return b.nodeName(this,"form")?!1:(b.event.remove(this,"._submit"),t)}}),b.support.changeBubbles||(b.event.special.change={setup:function(){return Z.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(b.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)}),b.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),b.event.simulate("change",this,e,!0)})),!1):(b.event.add(this,"beforeactivate._change",function(e){var t=e.target;Z.test(t.nodeName)&&!b._data(t,"changeBubbles")&&(b.event.add(t,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||b.event.simulate("change",this.parentNode,e,!0)}),b._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 b.event.remove(this,"._change"),!Z.test(this.nodeName)}}),b.support.focusinBubbles||b.each({focus:"focusin",blur:"focusout"},function(e,t){var n=0,r=function(e){b.event.simulate(t,e.target,b.event.fix(e),!0)};b.event.special[t]={setup:function(){0===n++&&o.addEventListener(e,r,!0)},teardown:function(){0===--n&&o.removeEventListener(e,r,!0)}}}),b.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 b().off(e),s.apply(this,arguments)},i.guid=s.guid||(s.guid=b.guid++)),this.each(function(){b.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,b(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(){b.event.remove(this,e,r,n)})},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},trigger:function(e,t){return this.each(function(){b.event.trigger(e,t,this)})},triggerHandler:function(e,n){var r=this[0];return r?b.event.trigger(e,n,r,!0):t}}),function(e,t){var n,r,i,o,a,s,u,l,c,p,f,d,h,g,m,y,v,x="sizzle"+-new Date,w=e.document,T={},N=0,C=0,k=it(),E=it(),S=it(),A=typeof t,j=1<<31,D=[],L=D.pop,H=D.push,q=D.slice,M=D.indexOf||function(e){var t=0,n=this.length;for(;n>t;t++)if(this[t]===e)return t;return-1},_="[\\x20\\t\\r\\n\\f]",F="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",O=F.replace("w","w#"),B="([*^$|!~]?=)",P="\\["+_+"*("+F+")"+_+"*(?:"+B+_+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+O+")|)|)"+_+"*\\]",R=":("+F+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+P.replace(3,8)+")*)|.*)\\)|)",W=RegExp("^"+_+"+|((?:^|[^\\\\])(?:\\\\.)*)"+_+"+$","g"),$=RegExp("^"+_+"*,"+_+"*"),I=RegExp("^"+_+"*([\\x20\\t\\r\\n\\f>+~])"+_+"*"),z=RegExp(R),X=RegExp("^"+O+"$"),U={ID:RegExp("^#("+F+")"),CLASS:RegExp("^\\.("+F+")"),NAME:RegExp("^\\[name=['\"]?("+F+")['\"]?\\]"),TAG:RegExp("^("+F.replace("w","w*")+")"),ATTR:RegExp("^"+P),PSEUDO:RegExp("^"+R),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+_+"*(even|odd|(([+-]|)(\\d*)n|)"+_+"*(?:([+-]|)"+_+"*(\\d+)|))"+_+"*\\)|)","i"),needsContext:RegExp("^"+_+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+_+"*((?:-\\d)?\\d*)"+_+"*\\)|)(?=[^-]|$)","i")},V=/[\x20\t\r\n\f]*[+~]/,Y=/^[^{]+\{\s*\[native code/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,G=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,K=/'|\\/g,Z=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,et=/\\([\da-fA-F]{1,6}[\x20\t\r\n\f]?|.)/g,tt=function(e,t){var n="0x"+t-65536;return n!==n?t:0>n?String.fromCharCode(n+65536):String.fromCharCode(55296|n>>10,56320|1023&n)};try{q.call(w.documentElement.childNodes,0)[0].nodeType}catch(nt){q=function(e){var t,n=[];while(t=this[e++])n.push(t);return n}}function rt(e){return Y.test(e+"")}function it(){var e,t=[];return e=function(n,r){return t.push(n+=" ")>i.cacheLength&&delete e[t.shift()],e[n]=r}}function ot(e){return e[x]=!0,e}function at(e){var t=p.createElement("div");try{return e(t)}catch(n){return!1}finally{t=null}}function st(e,t,n,r){var i,o,a,s,u,l,f,g,m,v;if((t?t.ownerDocument||t:w)!==p&&c(t),t=t||p,n=n||[],!e||"string"!=typeof e)return n;if(1!==(s=t.nodeType)&&9!==s)return[];if(!d&&!r){if(i=J.exec(e))if(a=i[1]){if(9===s){if(o=t.getElementById(a),!o||!o.parentNode)return n;if(o.id===a)return n.push(o),n}else if(t.ownerDocument&&(o=t.ownerDocument.getElementById(a))&&y(t,o)&&o.id===a)return n.push(o),n}else{if(i[2])return H.apply(n,q.call(t.getElementsByTagName(e),0)),n;if((a=i[3])&&T.getByClassName&&t.getElementsByClassName)return H.apply(n,q.call(t.getElementsByClassName(a),0)),n}if(T.qsa&&!h.test(e)){if(f=!0,g=x,m=t,v=9===s&&e,1===s&&"object"!==t.nodeName.toLowerCase()){l=ft(e),(f=t.getAttribute("id"))?g=f.replace(K,"\\$&"):t.setAttribute("id",g),g="[id='"+g+"'] ",u=l.length;while(u--)l[u]=g+dt(l[u]);m=V.test(e)&&t.parentNode||t,v=l.join(",")}if(v)try{return H.apply(n,q.call(m.querySelectorAll(v),0)),n}catch(b){}finally{f||t.removeAttribute("id")}}}return wt(e.replace(W,"$1"),t,n,r)}a=st.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},c=st.setDocument=function(e){var n=e?e.ownerDocument||e:w;return n!==p&&9===n.nodeType&&n.documentElement?(p=n,f=n.documentElement,d=a(n),T.tagNameNoComments=at(function(e){return e.appendChild(n.createComment("")),!e.getElementsByTagName("*").length}),T.attributes=at(function(e){e.innerHTML="<select></select>";var t=typeof e.lastChild.getAttribute("multiple");return"boolean"!==t&&"string"!==t}),T.getByClassName=at(function(e){return e.innerHTML="<div class='hidden e'></div><div class='hidden'></div>",e.getElementsByClassName&&e.getElementsByClassName("e").length?(e.lastChild.className="e",2===e.getElementsByClassName("e").length):!1}),T.getByName=at(function(e){e.id=x+0,e.innerHTML="<a name='"+x+"'></a><div name='"+x+"'></div>",f.insertBefore(e,f.firstChild);var t=n.getElementsByName&&n.getElementsByName(x).length===2+n.getElementsByName(x+0).length;return T.getIdNotName=!n.getElementById(x),f.removeChild(e),t}),i.attrHandle=at(function(e){return e.innerHTML="<a href='#'></a>",e.firstChild&&typeof e.firstChild.getAttribute!==A&&"#"===e.firstChild.getAttribute("href")})?{}:{href:function(e){return e.getAttribute("href",2)},type:function(e){return e.getAttribute("type")}},T.getIdNotName?(i.find.ID=function(e,t){if(typeof t.getElementById!==A&&!d){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},i.filter.ID=function(e){var t=e.replace(et,tt);return function(e){return e.getAttribute("id")===t}}):(i.find.ID=function(e,n){if(typeof n.getElementById!==A&&!d){var r=n.getElementById(e);return r?r.id===e||typeof r.getAttributeNode!==A&&r.getAttributeNode("id").value===e?[r]:t:[]}},i.filter.ID=function(e){var t=e.replace(et,tt);return function(e){var n=typeof e.getAttributeNode!==A&&e.getAttributeNode("id");return n&&n.value===t}}),i.find.TAG=T.tagNameNoComments?function(e,n){return typeof n.getElementsByTagName!==A?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},i.find.NAME=T.getByName&&function(e,n){return typeof n.getElementsByName!==A?n.getElementsByName(name):t},i.find.CLASS=T.getByClassName&&function(e,n){return typeof n.getElementsByClassName===A||d?t:n.getElementsByClassName(e)},g=[],h=[":focus"],(T.qsa=rt(n.querySelectorAll))&&(at(function(e){e.innerHTML="<select><option selected=''></option></select>",e.querySelectorAll("[selected]").length||h.push("\\["+_+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),e.querySelectorAll(":checked").length||h.push(":checked")}),at(function(e){e.innerHTML="<input type='hidden' i=''/>",e.querySelectorAll("[i^='']").length&&h.push("[*^$]="+_+"*(?:\"\"|'')"),e.querySelectorAll(":enabled").length||h.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),h.push(",.*:")})),(T.matchesSelector=rt(m=f.matchesSelector||f.mozMatchesSelector||f.webkitMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&at(function(e){T.disconnectedMatch=m.call(e,"div"),m.call(e,"[s!='']:x"),g.push("!=",R)}),h=RegExp(h.join("|")),g=RegExp(g.join("|")),y=rt(f.contains)||f.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},v=f.compareDocumentPosition?function(e,t){var r;return e===t?(u=!0,0):(r=t.compareDocumentPosition&&e.compareDocumentPosition&&e.compareDocumentPosition(t))?1&r||e.parentNode&&11===e.parentNode.nodeType?e===n||y(w,e)?-1:t===n||y(w,t)?1:0:4&r?-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 u=!0,0;if(!o||!a)return e===n?-1:t===n?1:o?-1:a?1:0;if(o===a)return ut(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?ut(s[i],l[i]):s[i]===w?-1:l[i]===w?1:0},u=!1,[0,0].sort(v),T.detectDuplicates=u,p):p},st.matches=function(e,t){return st(e,null,null,t)},st.matchesSelector=function(e,t){if((e.ownerDocument||e)!==p&&c(e),t=t.replace(Z,"='$1']"),!(!T.matchesSelector||d||g&&g.test(t)||h.test(t)))try{var n=m.call(e,t);if(n||T.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(r){}return st(t,p,null,[e]).length>0},st.contains=function(e,t){return(e.ownerDocument||e)!==p&&c(e),y(e,t)},st.attr=function(e,t){var n;return(e.ownerDocument||e)!==p&&c(e),d||(t=t.toLowerCase()),(n=i.attrHandle[t])?n(e):d||T.attributes?e.getAttribute(t):((n=e.getAttributeNode(t))||e.getAttribute(t))&&e[t]===!0?t:n&&n.specified?n.value:null},st.error=function(e){throw Error("Syntax error, unrecognized expression: "+e)},st.uniqueSort=function(e){var t,n=[],r=1,i=0;if(u=!T.detectDuplicates,e.sort(v),u){for(;t=e[r];r++)t===e[r-1]&&(i=n.push(r));while(i--)e.splice(n[i],1)}return e};function ut(e,t){var n=t&&e,r=n&&(~t.sourceIndex||j)-(~e.sourceIndex||j);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function lt(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function ct(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function pt(e){return ot(function(t){return t=+t,ot(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]))})})}o=st.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+=o(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r];r++)n+=o(t);return n},i=st.selectors={cacheLength:50,createPseudo:ot,match:U,find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(et,tt),e[3]=(e[4]||e[5]||"").replace(et,tt),"~="===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]||st.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]&&st.error(e[0]),e},PSEUDO:function(e){var t,n=!e[5]&&e[2];return U.CHILD.test(e[0])?null:(e[4]?e[2]=e[4]:n&&z.test(n)&&(t=ft(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){return"*"===e?function(){return!0}:(e=e.replace(et,tt).toLowerCase(),function(t){return t.nodeName&&t.nodeName.toLowerCase()===e})},CLASS:function(e){var t=k[e+" "];return t||(t=RegExp("(^|"+_+")"+e+"("+_+"|$)"))&&k(e,function(e){return t.test(e.className||typeof e.getAttribute!==A&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=st.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,u){var l,c,p,f,d,h,g=o!==a?"nextSibling":"previousSibling",m=t.parentNode,y=s&&t.nodeName.toLowerCase(),v=!u&&!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[x]||(m[x]={}),l=c[e]||[],d=l[0]===N&&l[1],f=l[0]===N&&l[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]=[N,d,f];break}}else if(v&&(l=(t[x]||(t[x]={}))[e])&&l[0]===N)f=l[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[x]||(p[x]={}))[e]=[N,f]),p===t))break;return f-=i,f===r||0===f%r&&f/r>=0}}},PSEUDO:function(e,t){var n,r=i.pseudos[e]||i.setFilters[e.toLowerCase()]||st.error("unsupported pseudo: "+e);return r[x]?r(t):r.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?ot(function(e,n){var i,o=r(e,t),a=o.length;while(a--)i=M.call(e,o[a]),e[i]=!(n[i]=o[a])}):function(e){return r(e,0,n)}):r}},pseudos:{not:ot(function(e){var t=[],n=[],r=s(e.replace(W,"$1"));return r[x]?ot(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:ot(function(e){return function(t){return st(e,t).length>0}}),contains:ot(function(e){return function(t){return(t.textContent||t.innerText||o(t)).indexOf(e)>-1}}),lang:ot(function(e){return X.test(e||"")||st.error("unsupported lang: "+e),e=e.replace(et,tt).toLowerCase(),function(t){var n;do if(n=d?t.getAttribute("xml:lang")||t.getAttribute("lang"):t.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===f},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.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!i.pseudos.empty(e)},header:function(e){return Q.test(e.nodeName)},input:function(e){return G.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:pt(function(){return[0]}),last:pt(function(e,t){return[t-1]}),eq:pt(function(e,t,n){return[0>n?n+t:n]}),even:pt(function(e,t){var n=0;for(;t>n;n+=2)e.push(n);return e}),odd:pt(function(e,t){var n=1;for(;t>n;n+=2)e.push(n);return e}),lt:pt(function(e,t,n){var r=0>n?n+t:n;for(;--r>=0;)e.push(r);return e}),gt:pt(function(e,t,n){var r=0>n?n+t:n;for(;t>++r;)e.push(r);return e})}};for(n in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[n]=lt(n);for(n in{submit:!0,reset:!0})i.pseudos[n]=ct(n);function ft(e,t){var n,r,o,a,s,u,l,c=E[e+" "];if(c)return t?0:c.slice(0);s=e,u=[],l=i.preFilter;while(s){(!n||(r=$.exec(s)))&&(r&&(s=s.slice(r[0].length)||s),u.push(o=[])),n=!1,(r=I.exec(s))&&(n=r.shift(),o.push({value:n,type:r[0].replace(W," ")}),s=s.slice(n.length));for(a in i.filter)!(r=U[a].exec(s))||l[a]&&!(r=l[a](r))||(n=r.shift(),o.push({value:n,type:a,matches:r}),s=s.slice(n.length));if(!n)break}return t?s.length:s?st.error(e):E(e,u).slice(0)}function dt(e){var t=0,n=e.length,r="";for(;n>t;t++)r+=e[t].value;return r}function ht(e,t,n){var i=t.dir,o=n&&"parentNode"===i,a=C++;return t.first?function(t,n,r){while(t=t[i])if(1===t.nodeType||o)return e(t,n,r)}:function(t,n,s){var u,l,c,p=N+" "+a;if(s){while(t=t[i])if((1===t.nodeType||o)&&e(t,n,s))return!0}else while(t=t[i])if(1===t.nodeType||o)if(c=t[x]||(t[x]={}),(l=c[i])&&l[0]===p){if((u=l[1])===!0||u===r)return u===!0}else if(l=c[i]=[p],l[1]=e(t,n,s)||r,l[1]===!0)return!0}}function gt(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 mt(e,t,n,r,i){var o,a=[],s=0,u=e.length,l=null!=t;for(;u>s;s++)(o=e[s])&&(!n||n(o,r,i))&&(a.push(o),l&&t.push(s));return a}function yt(e,t,n,r,i,o){return r&&!r[x]&&(r=yt(r)),i&&!i[x]&&(i=yt(i,o)),ot(function(o,a,s,u){var l,c,p,f=[],d=[],h=a.length,g=o||xt(t||"*",s.nodeType?[s]:s,[]),m=!e||!o&&t?g:mt(g,f,e,s,u),y=n?i||(o?e:h||r)?[]:a:m;if(n&&n(m,y,s,u),r){l=mt(y,d),r(l,[],s,u),c=l.length;while(c--)(p=l[c])&&(y[d[c]]=!(m[d[c]]=p))}if(o){if(i||e){if(i){l=[],c=y.length;while(c--)(p=y[c])&&l.push(m[c]=p);i(null,y=[],l,u)}c=y.length;while(c--)(p=y[c])&&(l=i?M.call(o,p):f[c])>-1&&(o[l]=!(a[l]=p))}}else y=mt(y===a?y.splice(h,y.length):y),i?i(null,a,y,u):H.apply(a,y)})}function vt(e){var t,n,r,o=e.length,a=i.relative[e[0].type],s=a||i.relative[" "],u=a?1:0,c=ht(function(e){return e===t},s,!0),p=ht(function(e){return M.call(t,e)>-1},s,!0),f=[function(e,n,r){return!a&&(r||n!==l)||((t=n).nodeType?c(e,n,r):p(e,n,r))}];for(;o>u;u++)if(n=i.relative[e[u].type])f=[ht(gt(f),n)];else{if(n=i.filter[e[u].type].apply(null,e[u].matches),n[x]){for(r=++u;o>r;r++)if(i.relative[e[r].type])break;return yt(u>1&&gt(f),u>1&&dt(e.slice(0,u-1)).replace(W,"$1"),n,r>u&&vt(e.slice(u,r)),o>r&&vt(e=e.slice(r)),o>r&&dt(e))}f.push(n)}return gt(f)}function bt(e,t){var n=0,o=t.length>0,a=e.length>0,s=function(s,u,c,f,d){var h,g,m,y=[],v=0,b="0",x=s&&[],w=null!=d,T=l,C=s||a&&i.find.TAG("*",d&&u.parentNode||u),k=N+=null==T?1:Math.random()||.1;for(w&&(l=u!==p&&u,r=n);null!=(h=C[b]);b++){if(a&&h){g=0;while(m=e[g++])if(m(h,u,c)){f.push(h);break}w&&(N=k,r=++n)}o&&((h=!m&&h)&&v--,s&&x.push(h))}if(v+=b,o&&b!==v){g=0;while(m=t[g++])m(x,y,u,c);if(s){if(v>0)while(b--)x[b]||y[b]||(y[b]=L.call(f));y=mt(y)}H.apply(f,y),w&&!s&&y.length>0&&v+t.length>1&&st.uniqueSort(f)}return w&&(N=k,l=T),x};return o?ot(s):s}s=st.compile=function(e,t){var n,r=[],i=[],o=S[e+" "];if(!o){t||(t=ft(e)),n=t.length;while(n--)o=vt(t[n]),o[x]?r.push(o):i.push(o);o=S(e,bt(i,r))}return o};function xt(e,t,n){var r=0,i=t.length;for(;i>r;r++)st(e,t[r],n);return n}function wt(e,t,n,r){var o,a,u,l,c,p=ft(e);if(!r&&1===p.length){if(a=p[0]=p[0].slice(0),a.length>2&&"ID"===(u=a[0]).type&&9===t.nodeType&&!d&&i.relative[a[1].type]){if(t=i.find.ID(u.matches[0].replace(et,tt),t)[0],!t)return n;e=e.slice(a.shift().value.length)}o=U.needsContext.test(e)?0:a.length;while(o--){if(u=a[o],i.relative[l=u.type])break;if((c=i.find[l])&&(r=c(u.matches[0].replace(et,tt),V.test(a[0].type)&&t.parentNode||t))){if(a.splice(o,1),e=r.length&&dt(a),!e)return H.apply(n,q.call(r,0)),n;break}}}return s(e,p)(r,t,d,n,V.test(e)),n}i.pseudos.nth=i.pseudos.eq;function Tt(){}i.filters=Tt.prototype=i.pseudos,i.setFilters=new Tt,c(),st.attr=b.attr,b.find=st,b.expr=st.selectors,b.expr[":"]=b.expr.pseudos,b.unique=st.uniqueSort,b.text=st.getText,b.isXMLDoc=st.isXML,b.contains=st.contains}(e);var at=/Until$/,st=/^(?:parents|prev(?:Until|All))/,ut=/^.[^:#\[\.,]*$/,lt=b.expr.match.needsContext,ct={children:!0,contents:!0,next:!0,prev:!0};b.fn.extend({find:function(e){var t,n,r,i=this.length;if("string"!=typeof e)return r=this,this.pushStack(b(e).filter(function(){for(t=0;i>t;t++)if(b.contains(r[t],this))return!0}));for(n=[],t=0;i>t;t++)b.find(e,this[t],n);return n=this.pushStack(i>1?b.unique(n):n),n.selector=(this.selector?this.selector+" ":"")+e,n},has:function(e){var t,n=b(e,this),r=n.length;return this.filter(function(){for(t=0;r>t;t++)if(b.contains(this,n[t]))return!0})},not:function(e){return this.pushStack(ft(this,e,!1))},filter:function(e){return this.pushStack(ft(this,e,!0))},is:function(e){return!!e&&("string"==typeof e?lt.test(e)?b(e,this.context).index(this[0])>=0:b.filter(e,this).length>0:this.filter(e).length>0)},closest:function(e,t){var n,r=0,i=this.length,o=[],a=lt.test(e)||"string"!=typeof e?b(e,t||this.context):0;for(;i>r;r++){n=this[r];while(n&&n.ownerDocument&&n!==t&&11!==n.nodeType){if(a?a.index(n)>-1:b.find.matchesSelector(n,e)){o.push(n);break}n=n.parentNode}}return this.pushStack(o.length>1?b.unique(o):o)},index:function(e){return e?"string"==typeof e?b.inArray(this[0],b(e)):b.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?b(e,t):b.makeArray(e&&e.nodeType?[e]:e),r=b.merge(this.get(),n);return this.pushStack(b.unique(r))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),b.fn.andSelf=b.fn.addBack;function pt(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}b.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return b.dir(e,"parentNode")},parentsUntil:function(e,t,n){return b.dir(e,"parentNode",n)},next:function(e){return pt(e,"nextSibling")},prev:function(e){return pt(e,"previousSibling")},nextAll:function(e){return b.dir(e,"nextSibling")},prevAll:function(e){return b.dir(e,"previousSibling")},nextUntil:function(e,t,n){return b.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return b.dir(e,"previousSibling",n)},siblings:function(e){return b.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return b.sibling(e.firstChild)},contents:function(e){return b.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:b.merge([],e.childNodes)}},function(e,t){b.fn[e]=function(n,r){var i=b.map(this,t,n);return at.test(e)||(r=n),r&&"string"==typeof r&&(i=b.filter(r,i)),i=this.length>1&&!ct[e]?b.unique(i):i,this.length>1&&st.test(e)&&(i=i.reverse()),this.pushStack(i)}}),b.extend({filter:function(e,t,n){return n&&(e=":not("+e+")"),1===t.length?b.find.matchesSelector(t[0],e)?[t[0]]:[]:b.find.matches(e,t)},dir:function(e,n,r){var i=[],o=e[n];while(o&&9!==o.nodeType&&(r===t||1!==o.nodeType||!b(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(t=t||0,b.isFunction(t))return b.grep(e,function(e,r){var i=!!t.call(e,r,e);return i===n});if(t.nodeType)return b.grep(e,function(e){return e===t===n});if("string"==typeof t){var r=b.grep(e,function(e){return 1===e.nodeType});if(ut.test(t))return b.filter(t,r,!n);t=b.filter(t,r)}return b.grep(e,function(e){return b.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=/<tbody/i,wt=/<|&#?\w+;/,Tt=/<(?:script|style|link)/i,Nt=/^(?:checkbox|radio)$/i,Ct=/checked\s*(?:[^=]|=\s*.checked.)/i,kt=/^$|\/(?:java|ecma)script/i,Et=/^true\/(.*)/,St=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,At={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:b.support.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},jt=dt(o),Dt=jt.appendChild(o.createElement("div"));At.optgroup=At.option,At.tbody=At.tfoot=At.colgroup=At.caption=At.thead,At.th=At.td,b.fn.extend({text:function(e){return b.access(this,function(e){return e===t?b.text(this):this.empty().append((this[0]&&this[0].ownerDocument||o).createTextNode(e))},null,e,arguments.length)},wrapAll:function(e){if(b.isFunction(e))return this.each(function(t){b(this).wrapAll(e.call(this,t))});if(this[0]){var t=b(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 b.isFunction(e)?this.each(function(t){b(this).wrapInner(e.call(this,t))}):this.each(function(){var t=b(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=b.isFunction(e);return this.each(function(n){b(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){b.nodeName(this,"body")||b(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(e){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&this.appendChild(e)})},prepend:function(){return this.domManip(arguments,!0,function(e){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&this.insertBefore(e,this.firstChild)})},before:function(){return this.domManip(arguments,!1,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,!1,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){var n,r=0;for(;null!=(n=this[r]);r++)(!e||b.filter(e,[n]).length>0)&&(t||1!==n.nodeType||b.cleanData(Ot(n)),n.parentNode&&(t&&b.contains(n.ownerDocument,n)&&Mt(Ot(n,"script")),n.parentNode.removeChild(n)));return this},empty:function(){var e,t=0;for(;null!=(e=this[t]);t++){1===e.nodeType&&b.cleanData(Ot(e,!1));while(e.firstChild)e.removeChild(e.firstChild);e.options&&b.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 b.clone(this,e,t)})},html:function(e){return b.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)||!b.support.htmlSerialize&&mt.test(e)||!b.support.leadingWhitespace&&yt.test(e)||At[(bt.exec(e)||["",""])[1].toLowerCase()])){e=e.replace(vt,"<$1></$2>");try{for(;i>r;r++)n=this[r]||{},1===n.nodeType&&(b.cleanData(Ot(n,!1)),n.innerHTML=e);n=0}catch(o){}}n&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(e){var t=b.isFunction(e);return t||"string"==typeof e||(e=b(e).not(this).detach()),this.domManip([e],!0,function(e){var t=this.nextSibling,n=this.parentNode;n&&(b(this).remove(),n.insertBefore(e,t))})},detach:function(e){return this.remove(e,!0)},domManip:function(e,n,r){e=f.apply([],e);var i,o,a,s,u,l,c=0,p=this.length,d=this,h=p-1,g=e[0],m=b.isFunction(g);if(m||!(1>=p||"string"!=typeof g||b.support.checkClone)&&Ct.test(g))return this.each(function(i){var o=d.eq(i);m&&(e[0]=g.call(this,i,n?o.html():t)),o.domManip(e,n,r)});if(p&&(l=b.buildFragment(e,this[0].ownerDocument,!1,this),i=l.firstChild,1===l.childNodes.length&&(l=i),i)){for(n=n&&b.nodeName(i,"tr"),s=b.map(Ot(l,"script"),Ht),a=s.length;p>c;c++)o=l,c!==h&&(o=b.clone(o,!0,!0),a&&b.merge(s,Ot(o,"script"))),r.call(n&&b.nodeName(this[c],"table")?Lt(this[c],"tbody"):this[c],o,c);if(a)for(u=s[s.length-1].ownerDocument,b.map(s,qt),c=0;a>c;c++)o=s[c],kt.test(o.type||"")&&!b._data(o,"globalEval")&&b.contains(u,o)&&(o.src?b.ajax({url:o.src,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0}):b.globalEval((o.text||o.textContent||o.innerHTML||"").replace(St,"")));l=i=null}return this}});function Lt(e,t){return e.getElementsByTagName(t)[0]||e.appendChild(e.ownerDocument.createElement(t))}function Ht(e){var t=e.getAttributeNode("type");return e.type=(t&&t.specified)+"/"+e.type,e}function qt(e){var t=Et.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function Mt(e,t){var n,r=0;for(;null!=(n=e[r]);r++)b._data(n,"globalEval",!t||b._data(t[r],"globalEval"))}function _t(e,t){if(1===t.nodeType&&b.hasData(e)){var n,r,i,o=b._data(e),a=b._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++)b.event.add(t,n,s[n][r])}a.data&&(a.data=b.extend({},a.data))}}function Ft(e,t){var n,r,i;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!b.support.noCloneEvent&&t[b.expando]){i=b._data(t);for(r in i.events)b.removeEvent(t,r,i.handle);t.removeAttribute(b.expando)}"script"===n&&t.text!==e.text?(Ht(t).text=e.text,qt(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),b.support.html5Clone&&e.innerHTML&&!b.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&Nt.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)}}b.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){b.fn[e]=function(e){var n,r=0,i=[],o=b(e),a=o.length-1;for(;a>=r;r++)n=r===a?this:this.clone(!0),b(o[r])[t](n),d.apply(i,n.get());return this.pushStack(i)}});function Ot(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||b.nodeName(o,n)?s.push(o):b.merge(s,Ot(o,n));return n===t||n&&b.nodeName(e,n)?b.merge([e],s):s}function Bt(e){Nt.test(e.type)&&(e.defaultChecked=e.checked)}b.extend({clone:function(e,t,n){var r,i,o,a,s,u=b.contains(e.ownerDocument,e);if(b.support.html5Clone||b.isXMLDoc(e)||!mt.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(Dt.innerHTML=e.outerHTML,Dt.removeChild(o=Dt.firstChild)),!(b.support.noCloneEvent&&b.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||b.isXMLDoc(e)))for(r=Ot(o),s=Ot(e),a=0;null!=(i=s[a]);++a)r[a]&&Ft(i,r[a]);if(t)if(n)for(s=s||Ot(e),r=r||Ot(o),a=0;null!=(i=s[a]);a++)_t(i,r[a]);else _t(e,o);return r=Ot(o,"script"),r.length>0&&Mt(r,!u&&Ot(e,"script")),r=s=i=null,o},buildFragment:function(e,t,n,r){var i,o,a,s,u,l,c,p=e.length,f=dt(t),d=[],h=0;for(;p>h;h++)if(o=e[h],o||0===o)if("object"===b.type(o))b.merge(d,o.nodeType?[o]:o);else if(wt.test(o)){s=s||f.appendChild(t.createElement("div")),u=(bt.exec(o)||["",""])[1].toLowerCase(),c=At[u]||At._default,s.innerHTML=c[1]+o.replace(vt,"<$1></$2>")+c[2],i=c[0];while(i--)s=s.lastChild;if(!b.support.leadingWhitespace&&yt.test(o)&&d.push(t.createTextNode(yt.exec(o)[0])),!b.support.tbody){o="table"!==u||xt.test(o)?"<table>"!==c[1]||xt.test(o)?0:s:s.firstChild,i=o&&o.childNodes.length;while(i--)b.nodeName(l=o.childNodes[i],"tbody")&&!l.childNodes.length&&o.removeChild(l)
      -}b.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),b.support.appendChecked||b.grep(Ot(d,"input"),Bt),h=0;while(o=d[h++])if((!r||-1===b.inArray(o,r))&&(a=b.contains(o.ownerDocument,o),s=Ot(f.appendChild(o),"script"),a&&Mt(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,u=b.expando,l=b.cache,p=b.support.deleteExpando,f=b.event.special;for(;null!=(n=e[s]);s++)if((t||b.acceptData(n))&&(o=n[u],a=o&&l[o])){if(a.events)for(r in a.events)f[r]?b.event.remove(n,r):b.removeEvent(n,r,a.handle);l[o]&&(delete l[o],p?delete n[u]:typeof n.removeAttribute!==i?n.removeAttribute(u):n[u]=null,c.push(o))}}});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("^("+x+")(.*)$","i"),Yt=RegExp("^("+x+")(?!px)[a-z%]+$","i"),Jt=RegExp("^([+-])=("+x+")","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"===b.css(e,"display")||!b.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]=b._data(r,"olddisplay"),n=r.style.display,t?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&nn(r)&&(o[a]=b._data(r,"olddisplay",un(r.nodeName)))):o[a]||(i=nn(r),(n&&"none"!==n||!i)&&b._data(r,"olddisplay",i?n:b.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}b.fn.extend({css:function(e,n){return b.access(this,function(e,n,r){var i,o,a={},s=0;if(b.isArray(n)){for(o=Rt(e),i=n.length;i>s;s++)a[n[s]]=b.css(e,n[s],!1,o);return a}return r!==t?b.style(e,n,r):b.css(e,n)},e,n,arguments.length>1)},show:function(){return rn(this,!0)},hide:function(){return rn(this)},toggle:function(e){var t="boolean"==typeof e;return this.each(function(){(t?e:nn(this))?b(this).show():b(this).hide()})}}),b.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,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":b.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,n,r,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,a,s,u=b.camelCase(n),l=e.style;if(n=b.cssProps[u]||(b.cssProps[u]=tn(l,u)),s=b.cssHooks[n]||b.cssHooks[u],r===t)return s&&"get"in s&&(o=s.get(e,!1,i))!==t?o:l[n];if(a=typeof r,"string"===a&&(o=Jt.exec(r))&&(r=(o[1]+1)*o[2]+parseFloat(b.css(e,n)),a="number"),!(null==r||"number"===a&&isNaN(r)||("number"!==a||b.cssNumber[u]||(r+="px"),b.support.clearCloneStyle||""!==r||0!==n.indexOf("background")||(l[n]="inherit"),s&&"set"in s&&(r=s.set(e,r,i))===t)))try{l[n]=r}catch(c){}}},css:function(e,n,r,i){var o,a,s,u=b.camelCase(n);return n=b.cssProps[u]||(b.cssProps[u]=tn(e.style,u)),s=b.cssHooks[n]||b.cssHooks[u],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||b.isNumeric(o)?o||0:a):a},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}}),e.getComputedStyle?(Rt=function(t){return e.getComputedStyle(t,null)},Wt=function(e,n,r){var i,o,a,s=r||Rt(e),u=s?s.getPropertyValue(n)||s[n]:t,l=e.style;return s&&(""!==u||b.contains(e.ownerDocument,e)||(u=b.style(e,n)),Yt.test(u)&&Ut.test(n)&&(i=l.width,o=l.minWidth,a=l.maxWidth,l.minWidth=l.maxWidth=l.width=u,u=s.width,l.width=i,l.minWidth=o,l.maxWidth=a)),u}):o.documentElement.currentStyle&&(Rt=function(e){return e.currentStyle},Wt=function(e,n,r){var i,o,a,s=r||Rt(e),u=s?s[n]:t,l=e.style;return null==u&&l&&l[n]&&(u=l[n]),Yt.test(u)&&!zt.test(n)&&(i=l.left,o=e.runtimeStyle,a=o&&o.left,a&&(o.left=e.currentStyle.left),l.left="fontSize"===n?"1em":u,u=l.pixelLeft+"px",l.left=i,a&&(o.left=a)),""===u?"auto":u});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+=b.css(e,n+Zt[o],!0,i)),r?("content"===n&&(a-=b.css(e,"padding"+Zt[o],!0,i)),"margin"!==n&&(a-=b.css(e,"border"+Zt[o]+"Width",!0,i))):(a+=b.css(e,"padding"+Zt[o],!0,i),"padding"!==n&&(a+=b.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=b.support.boxSizing&&"border-box"===b.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&&(b.support.boxSizingReliable||i===e.style[t]),i=parseFloat(i)||0}return i+an(e,t,n||(a?"border":"content"),r,o)+"px"}function un(e){var t=o,n=Gt[e];return n||(n=ln(e,t),"none"!==n&&n||(Pt=(Pt||b("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(t.documentElement),t=(Pt[0].contentWindow||Pt[0].contentDocument).document,t.write("<!doctype html><html><body>"),t.close(),n=ln(e,t),Pt.detach()),Gt[e]=n),n}function ln(e,t){var n=b(t.createElement(e)).appendTo(t.body),r=b.css(n[0],"display");return n.remove(),r}b.each(["height","width"],function(e,n){b.cssHooks[n]={get:function(e,r,i){return r?0===e.offsetWidth&&Xt.test(b.css(e,"display"))?b.swap(e,Qt,function(){return sn(e,n,i)}):sn(e,n,i):t},set:function(e,t,r){var i=r&&Rt(e);return on(e,t,r?an(e,n,r,b.support.boxSizing&&"border-box"===b.css(e,"boxSizing",!1,i),i):0)}}}),b.support.opacity||(b.cssHooks.opacity={get:function(e,t){return It.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=b.isNumeric(t)?"alpha(opacity="+100*t+")":"",o=r&&r.filter||n.filter||"";n.zoom=1,(t>=1||""===t)&&""===b.trim(o.replace($t,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||r&&!r.filter)||(n.filter=$t.test(o)?o.replace($t,i):o+" "+i)}}),b(function(){b.support.reliableMarginRight||(b.cssHooks.marginRight={get:function(e,n){return n?b.swap(e,{display:"inline-block"},Wt,[e,"marginRight"]):t}}),!b.support.pixelPosition&&b.fn.position&&b.each(["top","left"],function(e,n){b.cssHooks[n]={get:function(e,r){return r?(r=Wt(e,n),Yt.test(r)?b(e).position()[n]+"px":r):t}}})}),b.expr&&b.expr.filters&&(b.expr.filters.hidden=function(e){return 0>=e.offsetWidth&&0>=e.offsetHeight||!b.support.reliableHiddenOffsets&&"none"===(e.style&&e.style.display||b.css(e,"display"))},b.expr.filters.visible=function(e){return!b.expr.filters.hidden(e)}),b.each({margin:"",padding:"",border:"Width"},function(e,t){b.cssHooks[e+t]={expand:function(n){var r=0,i={},o="string"==typeof n?n.split(" "):[n];for(;4>r;r++)i[e+Zt[r]+t]=o[r]||o[r-2]||o[0];return i}},Ut.test(e)||(b.cssHooks[e+t].set=on)});var cn=/%20/g,pn=/\[\]$/,fn=/\r?\n/g,dn=/^(?:submit|button|image|reset|file)$/i,hn=/^(?:input|select|textarea|keygen)/i;b.fn.extend({serialize:function(){return b.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=b.prop(this,"elements");return e?b.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!b(this).is(":disabled")&&hn.test(this.nodeName)&&!dn.test(e)&&(this.checked||!Nt.test(e))}).map(function(e,t){var n=b(this).val();return null==n?null:b.isArray(n)?b.map(n,function(e){return{name:t.name,value:e.replace(fn,"\r\n")}}):{name:t.name,value:n.replace(fn,"\r\n")}}).get()}}),b.param=function(e,n){var r,i=[],o=function(e,t){t=b.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(n===t&&(n=b.ajaxSettings&&b.ajaxSettings.traditional),b.isArray(e)||e.jquery&&!b.isPlainObject(e))b.each(e,function(){o(this.name,this.value)});else for(r in e)gn(r,e[r],n,o);return i.join("&").replace(cn,"+")};function gn(e,t,n,r){var i;if(b.isArray(t))b.each(t,function(t,i){n||pn.test(e)?r(e,i):gn(e+"["+("object"==typeof i?t:"")+"]",i,n,r)});else if(n||"object"!==b.type(t))r(e,t);else for(i in t)gn(e+"["+i+"]",t[i],n,r)}b.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){b.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),b.fn.hover=function(e,t){return this.mouseenter(e).mouseleave(t||e)};var mn,yn,vn=b.now(),bn=/\?/,xn=/#.*$/,wn=/([?&])_=[^&]*/,Tn=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Nn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Cn=/^(?:GET|HEAD)$/,kn=/^\/\//,En=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,Sn=b.fn.load,An={},jn={},Dn="*/".concat("*");try{yn=a.href}catch(Ln){yn=o.createElement("a"),yn.href="",yn=yn.href}mn=En.exec(yn.toLowerCase())||[];function Hn(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(w)||[];if(b.isFunction(n))while(r=o[i++])"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function qn(e,n,r,i){var o={},a=e===jn;function s(u){var l;return o[u]=!0,b.each(e[u]||[],function(e,u){var c=u(n,r,i);return"string"!=typeof c||a||o[c]?a?!(l=c):t:(n.dataTypes.unshift(c),s(c),!1)}),l}return s(n.dataTypes[0])||!o["*"]&&s("*")}function Mn(e,n){var r,i,o=b.ajaxSettings.flatOptions||{};for(i in n)n[i]!==t&&((o[i]?e:r||(r={}))[i]=n[i]);return r&&b.extend(!0,e,r),e}b.fn.load=function(e,n,r){if("string"!=typeof e&&Sn)return Sn.apply(this,arguments);var i,o,a,s=this,u=e.indexOf(" ");return u>=0&&(i=e.slice(u,e.length),e=e.slice(0,u)),b.isFunction(n)?(r=n,n=t):n&&"object"==typeof n&&(a="POST"),s.length>0&&b.ajax({url:e,type:a,dataType:"html",data:n}).done(function(e){o=arguments,s.html(i?b("<div>").append(b.parseHTML(e)).find(i):e)}).complete(r&&function(e,t){s.each(r,o||[e.responseText,t,e])}),this},b.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){b.fn[t]=function(e){return this.on(t,e)}}),b.each(["get","post"],function(e,n){b[n]=function(e,r,i,o){return b.isFunction(r)&&(o=o||i,i=r,r=t),b.ajax({url:e,type:n,dataType:o,data:r,success:i})}}),b.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:yn,type:"GET",isLocal:Nn.test(mn[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Dn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":e.String,"text html":!0,"text json":b.parseJSON,"text xml":b.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Mn(Mn(e,b.ajaxSettings),t):Mn(b.ajaxSettings,e)},ajaxPrefilter:Hn(An),ajaxTransport:Hn(jn),ajax:function(e,n){"object"==typeof e&&(n=e,e=t),n=n||{};var r,i,o,a,s,u,l,c,p=b.ajaxSetup({},n),f=p.context||p,d=p.context&&(f.nodeType||f.jquery)?b(f):b.event,h=b.Deferred(),g=b.Callbacks("once memory"),m=p.statusCode||{},y={},v={},x=0,T="canceled",N={readyState:0,getResponseHeader:function(e){var t;if(2===x){if(!c){c={};while(t=Tn.exec(a))c[t[1].toLowerCase()]=t[2]}t=c[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===x?a:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return x||(e=v[n]=v[n]||e,y[e]=t),this},overrideMimeType:function(e){return x||(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>x)for(t in e)m[t]=[m[t],e[t]];else N.always(e[N.status]);return this},abort:function(e){var t=e||T;return l&&l.abort(t),k(0,t),this}};if(h.promise(N).complete=g.add,N.success=N.done,N.error=N.fail,p.url=((e||p.url||yn)+"").replace(xn,"").replace(kn,mn[1]+"//"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=b.trim(p.dataType||"*").toLowerCase().match(w)||[""],null==p.crossDomain&&(r=En.exec(p.url.toLowerCase()),p.crossDomain=!(!r||r[1]===mn[1]&&r[2]===mn[2]&&(r[3]||("http:"===r[1]?80:443))==(mn[3]||("http:"===mn[1]?80:443)))),p.data&&p.processData&&"string"!=typeof p.data&&(p.data=b.param(p.data,p.traditional)),qn(An,p,n,N),2===x)return N;u=p.global,u&&0===b.active++&&b.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Cn.test(p.type),o=p.url,p.hasContent||(p.data&&(o=p.url+=(bn.test(o)?"&":"?")+p.data,delete p.data),p.cache===!1&&(p.url=wn.test(o)?o.replace(wn,"$1_="+vn++):o+(bn.test(o)?"&":"?")+"_="+vn++)),p.ifModified&&(b.lastModified[o]&&N.setRequestHeader("If-Modified-Since",b.lastModified[o]),b.etag[o]&&N.setRequestHeader("If-None-Match",b.etag[o])),(p.data&&p.hasContent&&p.contentType!==!1||n.contentType)&&N.setRequestHeader("Content-Type",p.contentType),N.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Dn+"; q=0.01":""):p.accepts["*"]);for(i in p.headers)N.setRequestHeader(i,p.headers[i]);if(p.beforeSend&&(p.beforeSend.call(f,N,p)===!1||2===x))return N.abort();T="abort";for(i in{success:1,error:1,complete:1})N[i](p[i]);if(l=qn(jn,p,n,N)){N.readyState=1,u&&d.trigger("ajaxSend",[N,p]),p.async&&p.timeout>0&&(s=setTimeout(function(){N.abort("timeout")},p.timeout));try{x=1,l.send(y,k)}catch(C){if(!(2>x))throw C;k(-1,C)}}else k(-1,"No Transport");function k(e,n,r,i){var c,y,v,w,T,C=n;2!==x&&(x=2,s&&clearTimeout(s),l=t,a=i||"",N.readyState=e>0?4:0,r&&(w=_n(p,N,r)),e>=200&&300>e||304===e?(p.ifModified&&(T=N.getResponseHeader("Last-Modified"),T&&(b.lastModified[o]=T),T=N.getResponseHeader("etag"),T&&(b.etag[o]=T)),204===e?(c=!0,C="nocontent"):304===e?(c=!0,C="notmodified"):(c=Fn(p,w),C=c.state,y=c.data,v=c.error,c=!v)):(v=C,(e||!C)&&(C="error",0>e&&(e=0))),N.status=e,N.statusText=(n||C)+"",c?h.resolveWith(f,[y,C,N]):h.rejectWith(f,[N,C,v]),N.statusCode(m),m=t,u&&d.trigger(c?"ajaxSuccess":"ajaxError",[N,p,c?y:v]),g.fireWith(f,[N,C]),u&&(d.trigger("ajaxComplete",[N,p]),--b.active||b.event.trigger("ajaxStop")))}return N},getScript:function(e,n){return b.get(e,t,n,"script")},getJSON:function(e,t,n){return b.get(e,t,n,"json")}});function _n(e,n,r){var i,o,a,s,u=e.contents,l=e.dataTypes,c=e.responseFields;for(s in c)s in r&&(n[c[s]]=r[s]);while("*"===l[0])l.shift(),o===t&&(o=e.mimeType||n.getResponseHeader("Content-Type"));if(o)for(s in u)if(u[s]&&u[s].test(o)){l.unshift(s);break}if(l[0]in r)a=l[0];else{for(s in r){if(!l[0]||e.converters[s+" "+l[0]]){a=s;break}i||(i=s)}a=a||i}return a?(a!==l[0]&&l.unshift(a),r[a]):t}function Fn(e,t){var n,r,i,o,a={},s=0,u=e.dataTypes.slice(),l=u[0];if(e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u[1])for(i in e.converters)a[i.toLowerCase()]=e.converters[i];for(;r=u[++s];)if("*"!==r){if("*"!==l&&l!==r){if(i=a[l+" "+r]||a["* "+r],!i)for(n in a)if(o=n.split(" "),o[1]===r&&(i=a[l+" "+o[0]]||a["* "+o[0]])){i===!0?i=a[n]:a[n]!==!0&&(r=o[0],u.splice(s--,0,r));break}if(i!==!0)if(i&&e["throws"])t=i(t);else try{t=i(t)}catch(c){return{state:"parsererror",error:i?c:"No conversion from "+l+" to "+r}}}l=r}return{state:"success",data:t}}b.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return b.globalEval(e),e}}}),b.ajaxPrefilter("script",function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),b.ajaxTransport("script",function(e){if(e.crossDomain){var n,r=o.head||b("head")[0]||o.documentElement;return{send:function(t,i){n=o.createElement("script"),n.async=!0,e.scriptCharset&&(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=function(e,t){(t||!n.readyState||/loaded|complete/.test(n.readyState))&&(n.onload=n.onreadystatechange=null,n.parentNode&&n.parentNode.removeChild(n),n=null,t||i(200,"success"))},r.insertBefore(n,r.firstChild)},abort:function(){n&&n.onload(t,!0)}}}});var On=[],Bn=/(=)\?(?=&|$)|\?\?/;b.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=On.pop()||b.expando+"_"+vn++;return this[e]=!0,e}}),b.ajaxPrefilter("json jsonp",function(n,r,i){var o,a,s,u=n.jsonp!==!1&&(Bn.test(n.url)?"url":"string"==typeof n.data&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&Bn.test(n.data)&&"data");return u||"jsonp"===n.dataTypes[0]?(o=n.jsonpCallback=b.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,u?n[u]=n[u].replace(Bn,"$1"+o):n.jsonp!==!1&&(n.url+=(bn.test(n.url)?"&":"?")+n.jsonp+"="+o),n.converters["script json"]=function(){return s||b.error(o+" was not called"),s[0]},n.dataTypes[0]="json",a=e[o],e[o]=function(){s=arguments},i.always(function(){e[o]=a,n[o]&&(n.jsonpCallback=r.jsonpCallback,On.push(o)),s&&b.isFunction(a)&&a(s[0]),s=a=t}),"script"):t});var Pn,Rn,Wn=0,$n=e.ActiveXObject&&function(){var e;for(e in Pn)Pn[e](t,!0)};function In(){try{return new e.XMLHttpRequest}catch(t){}}function zn(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}b.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&In()||zn()}:In,Rn=b.ajaxSettings.xhr(),b.support.cors=!!Rn&&"withCredentials"in Rn,Rn=b.support.ajax=!!Rn,Rn&&b.ajaxTransport(function(n){if(!n.crossDomain||b.support.cors){var r;return{send:function(i,o){var a,s,u=n.xhr();if(n.username?u.open(n.type,n.url,n.async,n.username,n.password):u.open(n.type,n.url,n.async),n.xhrFields)for(s in n.xhrFields)u[s]=n.xhrFields[s];n.mimeType&&u.overrideMimeType&&u.overrideMimeType(n.mimeType),n.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");try{for(s in i)u.setRequestHeader(s,i[s])}catch(l){}u.send(n.hasContent&&n.data||null),r=function(e,i){var s,l,c,p;try{if(r&&(i||4===u.readyState))if(r=t,a&&(u.onreadystatechange=b.noop,$n&&delete Pn[a]),i)4!==u.readyState&&u.abort();else{p={},s=u.status,l=u.getAllResponseHeaders(),"string"==typeof u.responseText&&(p.text=u.responseText);try{c=u.statusText}catch(f){c=""}s||!n.isLocal||n.crossDomain?1223===s&&(s=204):s=p.text?200:404}}catch(d){i||o(-1,d)}p&&o(s,c,p,l)},n.async?4===u.readyState?setTimeout(r):(a=++Wn,$n&&(Pn||(Pn={},b(e).unload($n)),Pn[a]=r),u.onreadystatechange=r):r()},abort:function(){r&&r(t,!0)}}}});var Xn,Un,Vn=/^(?:toggle|show|hide)$/,Yn=RegExp("^(?:([+-])=|)("+x+")([a-z%]*)$","i"),Jn=/queueHooks$/,Gn=[nr],Qn={"*":[function(e,t){var n,r,i=this.createTween(e,t),o=Yn.exec(t),a=i.cur(),s=+a||0,u=1,l=20;if(o){if(n=+o[2],r=o[3]||(b.cssNumber[e]?"":"px"),"px"!==r&&s){s=b.css(i.elem,e,!0)||n||1;do u=u||".5",s/=u,b.style(i.elem,e,s+r);while(u!==(u=i.cur()/a)&&1!==u&&--l)}i.unit=r,i.start=s,i.end=o[1]?s+(o[1]+1)*n:n}return i}]};function Kn(){return setTimeout(function(){Xn=t}),Xn=b.now()}function Zn(e,t){b.each(t,function(t,n){var r=(Qn[t]||[]).concat(Qn["*"]),i=0,o=r.length;for(;o>i;i++)if(r[i].call(e,t,n))return})}function er(e,t,n){var r,i,o=0,a=Gn.length,s=b.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;var t=Xn||Kn(),n=Math.max(0,l.startTime+l.duration-t),r=n/l.duration||0,o=1-r,a=0,u=l.tweens.length;for(;u>a;a++)l.tweens[a].run(o);return s.notifyWith(e,[l,o,n]),1>o&&u?n:(s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:b.extend({},t),opts:b.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:Xn||Kn(),duration:n.duration,tweens:[],createTween:function(t,n){var r=b.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(i)return this;for(i=!0;r>n;n++)l.tweens[n].run(1);return t?s.resolveWith(e,[l,t]):s.rejectWith(e,[l,t]),this}}),c=l.props;for(tr(c,l.opts.specialEasing);a>o;o++)if(r=Gn[o].call(l,e,c,l.opts))return r;return Zn(l,c),b.isFunction(l.opts.start)&&l.opts.start.call(e,l),b.fx.timer(b.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}function tr(e,t){var n,r,i,o,a;for(i in e)if(r=b.camelCase(i),o=t[r],n=e[i],b.isArray(n)&&(o=n[1],n=e[i]=n[0]),i!==r&&(e[r]=n,delete e[i]),a=b.cssHooks[r],a&&"expand"in a){n=a.expand(n),delete e[r];for(i in n)i in e||(e[i]=n[i],t[i]=o)}else t[r]=o}b.Animation=b.extend(er,{tweener:function(e,t){b.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");var n,r=0,i=e.length;for(;i>r;r++)n=e[r],Qn[n]=Qn[n]||[],Qn[n].unshift(t)},prefilter:function(e,t){t?Gn.unshift(e):Gn.push(e)}});function nr(e,t,n){var r,i,o,a,s,u,l,c,p,f=this,d=e.style,h={},g=[],m=e.nodeType&&nn(e);n.queue||(c=b._queueHooks(e,"fx"),null==c.unqueued&&(c.unqueued=0,p=c.empty.fire,c.empty.fire=function(){c.unqueued||p()}),c.unqueued++,f.always(function(){f.always(function(){c.unqueued--,b.queue(e,"fx").length||c.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],"inline"===b.css(e,"display")&&"none"===b.css(e,"float")&&(b.support.inlineBlockNeedsLayout&&"inline"!==un(e.nodeName)?d.zoom=1:d.display="inline-block")),n.overflow&&(d.overflow="hidden",b.support.shrinkWrapBlocks||f.always(function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]}));for(i in t)if(a=t[i],Vn.exec(a)){if(delete t[i],u=u||"toggle"===a,a===(m?"hide":"show"))continue;g.push(i)}if(o=g.length){s=b._data(e,"fxshow")||b._data(e,"fxshow",{}),"hidden"in s&&(m=s.hidden),u&&(s.hidden=!m),m?b(e).show():f.done(function(){b(e).hide()}),f.done(function(){var t;b._removeData(e,"fxshow");for(t in h)b.style(e,t,h[t])});for(i=0;o>i;i++)r=g[i],l=f.createTween(r,m?s[r]:0),h[r]=s[r]||b.style(e,r),r in s||(s[r]=l.start,m&&(l.end=l.start,l.start="width"===r||"height"===r?1:0))}}function rr(e,t,n,r,i){return new rr.prototype.init(e,t,n,r,i)}b.Tween=rr,rr.prototype={constructor:rr,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(b.cssNumber[n]?"":"px")},cur:function(){var e=rr.propHooks[this.prop];return e&&e.get?e.get(this):rr.propHooks._default.get(this)},run:function(e){var t,n=rr.propHooks[this.prop];return this.pos=t=this.options.duration?b.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):rr.propHooks._default.set(this),this}},rr.prototype.init.prototype=rr.prototype,rr.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=b.css(e.elem,e.prop,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){b.fx.step[e.prop]?b.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[b.cssProps[e.prop]]||b.cssHooks[e.prop])?b.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},rr.propHooks.scrollTop=rr.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},b.each(["toggle","show","hide"],function(e,t){var n=b.fn[t];b.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ir(t,!0),e,r,i)}}),b.fn.extend({fadeTo:function(e,t,n,r){return this.filter(nn).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=b.isEmptyObject(e),o=b.speed(t,n,r),a=function(){var t=er(this,b.extend({},e),o);a.finish=function(){t.stop(!0)},(i||b._data(this,"finish"))&&t.stop(!0)};return a.finish=a,i||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(e,n,r){var i=function(e){var t=e.stop;delete e.stop,t(r)};return"string"!=typeof e&&(r=n,n=e,e=t),n&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,n=null!=e&&e+"queueHooks",o=b.timers,a=b._data(this);if(n)a[n]&&a[n].stop&&i(a[n]);else for(n in a)a[n]&&a[n].stop&&Jn.test(n)&&i(a[n]);for(n=o.length;n--;)o[n].elem!==this||null!=e&&o[n].queue!==e||(o[n].anim.stop(r),t=!1,o.splice(n,1));(t||!r)&&b.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=b._data(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=b.timers,a=r?r.length:0;for(n.finish=!0,b.queue(this,e,[]),i&&i.cur&&i.cur.finish&&i.cur.finish.call(this),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;a>t;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}});function ir(e,t){var n,r={height:e},i=0;for(t=t?1:0;4>i;i+=2-t)n=Zt[i],r["margin"+n]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}b.each({slideDown:ir("show"),slideUp:ir("hide"),slideToggle:ir("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){b.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),b.speed=function(e,t,n){var r=e&&"object"==typeof e?b.extend({},e):{complete:n||!n&&t||b.isFunction(e)&&e,duration:e,easing:n&&t||t&&!b.isFunction(t)&&t};return r.duration=b.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in b.fx.speeds?b.fx.speeds[r.duration]:b.fx.speeds._default,(null==r.queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){b.isFunction(r.old)&&r.old.call(this),r.queue&&b.dequeue(this,r.queue)},r},b.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},b.timers=[],b.fx=rr.prototype.init,b.fx.tick=function(){var e,n=b.timers,r=0;for(Xn=b.now();n.length>r;r++)e=n[r],e()||n[r]!==e||n.splice(r--,1);n.length||b.fx.stop(),Xn=t},b.fx.timer=function(e){e()&&b.timers.push(e)&&b.fx.start()},b.fx.interval=13,b.fx.start=function(){Un||(Un=setInterval(b.fx.tick,b.fx.interval))},b.fx.stop=function(){clearInterval(Un),Un=null},b.fx.speeds={slow:600,fast:200,_default:400},b.fx.step={},b.expr&&b.expr.filters&&(b.expr.filters.animated=function(e){return b.grep(b.timers,function(t){return e===t.elem}).length}),b.fn.offset=function(e){if(arguments.length)return e===t?this:this.each(function(t){b.offset.setOffset(this,e,t)});var n,r,o={top:0,left:0},a=this[0],s=a&&a.ownerDocument;if(s)return n=s.documentElement,b.contains(n,a)?(typeof a.getBoundingClientRect!==i&&(o=a.getBoundingClientRect()),r=or(s),{top:o.top+(r.pageYOffset||n.scrollTop)-(n.clientTop||0),left:o.left+(r.pageXOffset||n.scrollLeft)-(n.clientLeft||0)}):o},b.offset={setOffset:function(e,t,n){var r=b.css(e,"position");"static"===r&&(e.style.position="relative");var i=b(e),o=i.offset(),a=b.css(e,"top"),s=b.css(e,"left"),u=("absolute"===r||"fixed"===r)&&b.inArray("auto",[a,s])>-1,l={},c={},p,f;u?(c=i.position(),p=c.top,f=c.left):(p=parseFloat(a)||0,f=parseFloat(s)||0),b.isFunction(t)&&(t=t.call(e,n,o)),null!=t.top&&(l.top=t.top-o.top+p),null!=t.left&&(l.left=t.left-o.left+f),"using"in t?t.using.call(e,l):i.css(l)}},b.fn.extend({position:function(){if(this[0]){var e,t,n={top:0,left:0},r=this[0];return"fixed"===b.css(r,"position")?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),b.nodeName(e[0],"html")||(n=e.offset()),n.top+=b.css(e[0],"borderTopWidth",!0),n.left+=b.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-b.css(r,"marginTop",!0),left:t.left-n.left-b.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||o.documentElement;while(e&&!b.nodeName(e,"html")&&"static"===b.css(e,"position"))e=e.offsetParent;return e||o.documentElement})}}),b.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var r=/Y/.test(n);b.fn[e]=function(i){return b.access(this,function(e,i,o){var a=or(e);return o===t?a?n in a?a[n]:a.document.documentElement[i]:e[i]:(a?a.scrollTo(r?b(a).scrollLeft():o,r?o:b(a).scrollTop()):e[i]=o,t)},e,i,arguments.length,null)}});function or(e){return b.isWindow(e)?e:9===e.nodeType?e.defaultView||e.parentWindow:!1}b.each({Height:"height",Width:"width"},function(e,n){b.each({padding:"inner"+e,content:n,"":"outer"+e},function(r,i){b.fn[i]=function(i,o){var a=arguments.length&&(r||"boolean"!=typeof i),s=r||(i===!0||o===!0?"margin":"border");return b.access(this,function(n,r,i){var o;return b.isWindow(n)?n.document.documentElement["client"+e]:9===n.nodeType?(o=n.documentElement,Math.max(n.body["scroll"+e],o["scroll"+e],n.body["offset"+e],o["offset"+e],o["client"+e])):i===t?b.css(n,r,s):b.style(n,r,i,s)},n,a?i:t,a,null)}})}),e.jQuery=e.$=b,"function"==typeof define&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return b})})(window);
      -
      -    
      -
      - -
      -
      -
      -
      -
      -
      - - - - - - - - - - diff --git a/docs_api/files/.._modules_JC.BaseMVC_0.1_BaseMVC.js.html b/docs_api/files/.._modules_JC.BaseMVC_0.1_BaseMVC.js.html deleted file mode 100644 index e29f3c6..0000000 --- a/docs_api/files/.._modules_JC.BaseMVC_0.1_BaseMVC.js.html +++ /dev/null @@ -1,804 +0,0 @@ - - - - - ../modules/JC.BaseMVC/0.1/BaseMVC.js - FChart - - - - - - - - - - - - - - -
      -
      -
      - -

      - -
      -
      - API Docs for: 0.2 -
      -
      -
      - -
      - -
      -
      -
      - Show: - - - - - - - -
      - - -
      -
      -
      -

      File: ../modules/JC.BaseMVC/0.1/BaseMVC.js

      - -
      -
      -;(function(define, _win) { 'use strict'; define( 'JC.BaseMVC', [ 'JC.common' ], function(){
      -    window.BaseMVC = JC.BaseMVC = BaseMVC;
      -    /**
      -     * MVC 抽象类 ( <b>仅供扩展用, 这个类不能实例化</b>)
      -     * <p><b>require</b>: 
      -     *      <a href='JC.common.html'>JC.common</a>
      -     * </p>
      -     * <p><a href='https://github.com/openjavascript/jquerycomps' target='_blank'>JC Project Site</a>
      -     * | <a href='http://jc2.openjavascript.org/docs_api/classes/JC.BaseMVC.html' target='_blank'>API docs</a>
      -     * | <a href='../../modules/JC.BaseMVC/0.1/_demo' target='_blank'>demo link</a></p>
      -     * @namespace   JC
      -     * @class       BaseMVC
      -     * @constructor
      -     * @param   {selector|string}   _selector   
      -     * @version dev 0.1 2013-09-07
      -     * @author  qiushaowei   <suches@btbtd.org> | 75 Team
      -     */
      -    function BaseMVC( _selector ){
      -        throw new Error( "JC.BaseMVC is an abstract class, can't initialize!" );
      -
      -        if( BaseMVC.getInstance( _selector ) ) return BaseMVC.getInstance( _selector );
      -        BaseMVC.getInstance( _selector, this );
      -
      -        this._model = new BaseMVC.Model( _selector );
      -        this._view = new BaseMVC.View( this._model );
      -
      -        this._init( );
      -    }
      -    
      -    BaseMVC.prototype = {
      -        /**
      -         * 内部初始化方法
      -         * @method  _init
      -         * @param   {selector}  _selector
      -         * @private
      -         */
      -        _init:
      -            function(){
      -                var _p = this;
      -
      -                $( [ _p._view, _p._model ] ).on('BindEvent', function( _evt, _evtName, _cb ){
      -                    _p.on( _evtName, _cb );
      -                });
      -
      -                $([ _p._view, _p._model ] ).on('TriggerEvent', function( _evt, _evtName ){
      -                    var _data = JC.f.sliceArgs( arguments ).slice( 2 );
      -                    return _p.triggerHandler( _evtName, _data );
      -                });
      -
      -                _p._beforeInit();
      -                _p._initHanlderEvent();
      -
      -                _p._model.init();
      -                _p._view && _p._view.init();
      -
      -                _p._inited();
      -
      -                return _p;
      -            }    
      -        /**
      -         * 初始化之前调用的方法
      -         * @method  _beforeInit
      -         * @private
      -         */
      -        , _beforeInit:
      -            function(){
      -            }
      -        /**
      -         * 内部事件初始化方法
      -         * @method  _initHanlderEvent
      -         * @private
      -         */
      -        , _initHanlderEvent:
      -            function(){
      -            }
      -        /**
      -         * 内部初始化完毕时, 调用的方法
      -         * @method  _inited
      -         * @private
      -         */
      -        , _inited:
      -            function(){
      -            }
      -        /**
      -         * 获取 显示 BaseMVC 的触发源选择器, 比如 a 标签
      -         * @method  selector
      -         * @return  selector
      -         */ 
      -        , selector: function(){ return this._model.selector(); }
      -        /**
      -         * 使用 jquery on 绑定事件
      -         * @method  {string}    on
      -         * @param   {string}    _evtName
      -         * @param   {function}  _cb
      -         * @return  BaseMVCInstance
      -         */
      -        , on: function( _evtName, _cb ){ $(this).on(_evtName, _cb ); return this;}
      -        /**
      -         * 使用 jquery trigger 触发绑定事件
      -         * @method  {string}    trigger
      -         * @param   {string}    _evtName
      -         * @param   {*|Array}   _args      
      -         * @return  BaseMVCInstance
      -         */
      -        , trigger: function( _evtName, _data ){ $(this).trigger( _evtName, _data ); return this;}
      -        /**
      -         * 使用 jquery triggerHandler 触发绑定事件
      -         * @method  {string}    triggerHandler
      -         * @param   {string}    _evtName
      -         * @param   {*|Array}   _args      
      -         * @return  {*}
      -         */
      -        , triggerHandler: function( _evtName, _data ){ return $(this).triggerHandler( _evtName, _data ); }
      -        /**
      -         * 通知选择器有新事件
      -         * <br />JC 组件以后不会在 HTML 属性里放回调, 改为触发 selector 的事件
      -         * @method  notification
      -         * @param   {string}    _evtName
      -         * @param   {*|Array}   _args      
      -         */
      -        , notification:
      -            function( _evtName, _args ){
      -                this._model.notification( _evtName, _args );
      -            }
      -        /**
      -         * 通知选择器有新事件, 有返回结果
      -         * <br />JC 组件以后不会在 HTML 属性里放回调, 改为触发 selector 的事件
      -         * @method  notificationHandler
      -         * @param   {string}    _evtName
      -         * @param   {*|Array}   _args      
      -         * @return  {*}
      -         */
      -        , notificationHandler:
      -            function( _evtName, _args ){
      -                return this._model.notificationHandler( _evtName, _args );
      -            }
      -
      -    }
      -    /**
      -     * 获取或设置组件实例
      -     * @method  getInstance
      -     * @param   {selector}      _selector
      -     * @param   {Class}         _staticClass
      -     * @param   {ClassInstance} _classInstance
      -     * @static
      -     * @return  {ClassInstance | null}
      -     */
      -    BaseMVC.getInstance =
      -        function( _selector, _staticClass, _classInstance ){
      -            typeof _selector == 'string' 
      -                && !/</.test( _selector ) 
      -                && ( _selector = $(_selector) )
      -                ;
      -
      -            typeof _selector == 'object' && ( _selector = $( _selector ) );
      -
      -            if( !(_selector && _selector.length ) || ( typeof _selector == 'string' ) ) return null;
      -
      -            _staticClass.Model._instanceName = _staticClass.Model._instanceName || 'CommonIns';
      -
      -            typeof _classInstance != 'undefined' 
      -                && _selector.data( _staticClass.Model._instanceName, _classInstance );
      -
      -            return _selector.data( _staticClass.Model._instanceName);
      -        };
      -    /**
      -     * 是否自动初始化
      -     * @property    autoInit
      -     * @type        bool
      -     * @default     true
      -     * @static
      -     */
      -    BaseMVC.autoInit = true;
      -    /**
      -     * 复制 BaseMVC 的所有方法到 _outClass
      -     * @method  build
      -     * @param   {Class} _outClass
      -     * @static
      -     */
      -    BaseMVC.build =
      -        function( _outClass, _srcClass ){
      -            _srcClass = _srcClass || BaseMVC;
      -            typeof _srcClass == 'string' && ( _srcClass = BaseMVC );
      -
      -            BaseMVC.buildModel( _outClass );
      -            BaseMVC.buildView( _outClass );
      -
      -            BaseMVC.buildClass( _srcClass, _outClass );
      -            _srcClass.Model && BaseMVC.buildClass( _srcClass.Model, _outClass.Model );
      -            _srcClass.View && BaseMVC.buildClass( _srcClass.View, _outClass.View );
      -        };
      -    /**
      -     * 复制 _inClass 的所有方法到 _outClass
      -     * @method  buildClass
      -     * @param   {Class}     _inClass
      -     * @param   {Class}     _outClass
      -     * @static
      -     */
      -    BaseMVC.buildClass = 
      -        function( _inClass, _outClass ){
      -            if( !( _inClass && _outClass ) ) return;
      -            var _k
      -                , _fStr, _tmp
      -                ;
      -
      -            if( _outClass ){
      -                for( _k in _inClass ){ 
      -                    if( !_outClass[_k] ){
      -                        //ignore static function
      -                        if( _inClass[_k].constructor == Function ){
      -                        }else{//clone static property
      -                            _outClass[_k] = _inClass[_k];
      -                        }
      -                    }
      -                }
      -
      -                for( _k in _inClass.prototype ) 
      -                    !_outClass.prototype[_k] && ( _outClass.prototype[_k] = _inClass.prototype[_k] );
      -            }
      -        };
      -    /**
      -     * 为 _outClass 生成一个通用 Model 类
      -     * @method  buildModel
      -     * @param   {Class} _outClass
      -     * @static
      -     */
      -    BaseMVC.buildModel =
      -        function( _outClass ){
      -            !_outClass.Model && ( 
      -                        _outClass.Model = function( _selector ){ this._selector = _selector; }
      -                        , _outClass.Model._instanceName = 'CommonIns'
      -                    );
      -        }
      -    /**
      -     * 为 _outClass 生成一个通用 View 类
      -     * @method  buildView
      -     * @param   {Class} _outClass
      -     * @static
      -     */
      -    BaseMVC.buildView =
      -        function( _outClass ){
      -            !_outClass.View && ( _outClass.View = function( _model ){ this._model = _model; } );
      -        }
      -    /**
      -     * 初始化 BaseMVC Model 类 和 View 类
      -     */
      -    BaseMVC.buildModel( BaseMVC );
      -    BaseMVC.buildView( BaseMVC );
      -    /**
      -     * MVC Model 类( <b>仅供扩展用</b> )
      -     * <br />这个类默认已经包含在lib.js里面, 不需要显式引用
      -     * <p><a href='https://github.com/openjavascript/jquerycomps' target='_blank'>JC Project Site</a>
      -     * | <a href='http://jc2.openjavascript.org/docs_api/classes/JC.BaseMVC.Model.html' target='_blank'>API docs</a>
      -     * | <a href='../../modules/JC.BaseMVC/0.1/_demo' target='_blank'>demo link</a></p>
      -     * <p><b>see also</b>: <a href='JC.BaseMVC.html'>JC.BaseMVC</a></p>
      -     * @namespace JC
      -     * @class BaseMVC.Model
      -     * @constructor
      -     * @param   {selector|string}   _selector   
      -     * @version dev 0.1 2013-09-11
      -     * @author  qiushaowei   <suches@btbtd.org> | 75 Team
      -     */
      -    //BaseMVC.buildModel( BaseMVC );
      -    /**
      -     * 设置 selector 实例引用的 data 属性名
      -     * @property    _instanceName
      -     * @type        string
      -     * @default     BaseMVCIns
      -     * @private
      -     * @static
      -     */
      -    BaseMVC.Model._instanceName = 'BaseMVCIns';
      -    JC.f.extendObject( BaseMVC.Model.prototype, {
      -        init:
      -            function(){
      -                return this;
      -            }
      -        /**
      -         * 使用 jquery on 为 controler 绑定事件
      -         * @method  {string}    on
      -         * @param   {string}    _evtName
      -         * @param   {function}  _cb
      -         */
      -        , on:
      -            function(){
      -                $( this ).trigger( 'BindEvent', JC.f.sliceArgs( arguments ) );
      -                return this;
      -            }
      -        /**
      -         * 使用 jquery trigger 触发 controler 绑定事件
      -         * @method  {string}    trigger
      -         * @param   {string}    _evtName
      -         * @param   {*|Array}   _args      
      -         */
      -        , trigger:
      -            function( _evtName, _args ){
      -                _args = _args || [];
      -                !jQuery.isArray( _args ) && ( _args = [ _args ] );
      -                _args.unshift( _evtName );
      -                $( this ).trigger( 'TriggerEvent', _args );
      -                return this;
      -            }
      -        /**
      -         * 使用 jquery trigger 触发 controler 绑定事件( 有换回数据 )
      -         * @method  {string}    trigger
      -         * @param   {string}    _evtName
      -         * @param   {*|Array}   _args      
      -         * @return  {*}
      -         */
      -        , triggerHandler:
      -            function( _evtName, _args ){
      -                _args = _args || [];
      -                !jQuery.isArray( _args ) && ( _args = [ _args ] );
      -                _args.unshift( _evtName );
      -                return $( this ).trigger( 'TriggerEvent', _args );
      -            }
      -        /**
      -         * 通知选择器有新事件
      -         * @method  notification
      -         * @param   {string}    _evtName
      -         * @param   {*|Array}   _args      
      -         */
      -        , notification:
      -            function( _evtName, _args ){
      -                this.selector() 
      -                    && this.selector().length 
      -                    && this.selector().trigger( _evtName, _args );
      -            }
      -        /**
      -         * 通知选择器有新事件
      -         * @method  notificationHandler
      -         * @param   {string}    _evtName
      -         * @param   {*|Array}   _args      
      -         * @return  {*}
      -         */
      -        , notificationHandler:
      -            function( _evtName, _args ){
      -                var _r;
      -                this.selector() 
      -                    && this.selector().length 
      -                    && ( _r = this.selector().triggerHandler( _evtName, _args ) );
      -                return _r;
      -            }
      -        /**
      -         * 初始化的 jq 选择器
      -         * @method  selector
      -         * @param   {selector}  _setter
      -         * @return  selector
      -         */
      -        , selector: 
      -            function( _setter ){ 
      -                typeof _setter != 'undefined' && ( this._selector = _setter );
      -                return this._selector; 
      -            }
      -        /**
      -         * 读取 int 属性的值
      -         * @method  intProp
      -         * @param   {selector|string}  _selector    如果 _key 为空将视 _selector 为 _key, _selector 为 this.selector()
      -         * @param   {string}           _key
      -         * @return  int
      -         */
      -        , intProp:
      -            function( _selector, _key ){
      -                if( typeof _key == 'undefined' ){
      -                    _key = _selector;
      -                    _selector = this.selector();
      -                }else{
      -                    _selector && ( _selector = $( _selector ) );
      -                }
      -                var _r = 0;
      -                _selector 
      -                    && _selector.is( '[' + _key + ']' ) 
      -                    && ( _r = parseInt( _selector.attr( _key ).trim(), 10 ) || _r );
      -                return _r;
      -            }
      -        /**
      -         * 读取 float 属性的值
      -         * @method  floatProp
      -         * @param   {selector|string}  _selector    如果 _key 为空将视 _selector 为 _key, _selector 为 this.selector()
      -         * @param   {string}           _key
      -         * @return  float
      -         */
      -        , floatProp:
      -            function( _selector, _key ){
      -                if( typeof _key == 'undefined' ){
      -                    _key = _selector;
      -                    _selector = this.selector();
      -                }else{
      -                    _selector && ( _selector = $( _selector ) );
      -                }
      -                var _r = 0;
      -                _selector 
      -                    && _selector.is( '[' + _key + ']' ) 
      -                    && ( _r = parseFloat( _selector.attr( _key ).trim() ) || _r );
      -                return _r;
      -            }
      -        /**
      -         * 读取 string 属性的值
      -         * @method  stringProp
      -         * @param   {selector|string}  _selector    如果 _key 为空将视 _selector 为 _key, _selector 为 this.selector()
      -         * @param   {string}           _key
      -         * @return  string
      -         */
      -        , stringProp:
      -            function( _selector, _key ){
      -                if( typeof _key == 'undefined' ){
      -                    _key = _selector;
      -                    _selector = this.selector();
      -                }else{
      -                    _selector && ( _selector = $( _selector ) );
      -                }
      -                var _r = ( this.attrProp( _selector, _key ) || '' ).toLowerCase();
      -                return _r;
      -            }
      -        /**
      -         * 读取 html 属性值
      -         * <br />这个跟 stringProp 的区别是不会强制转换为小写
      -         * @method  attrProp
      -         * @param   {selector|string}  _selector    如果 _key 为空将视 _selector 为 _key, _selector 为 this.selector()
      -         * @param   {string}           _key
      -         * @return  string
      -         */
      -        , attrProp:
      -            function( _selector, _key ){
      -                if( typeof _key == 'undefined' ){
      -                    _key = _selector;
      -                    _selector = this.selector();
      -                }else{
      -                    _selector && ( _selector = $( _selector ) );
      -                }
      -                var _r = '';
      -                _selector
      -                    && _selector.is( '[' + _key + ']' ) 
      -                    && ( ( _r = _selector.attr( _key ) || '' ).trim() );
      -                return _r;
      -            }
      -
      -        /**
      -         * 读取 boolean 属性的值
      -         * @method  boolProp
      -         * @param   {selector|string}  _selector    如果 _key 为空将视 _selector 为 _key, _selector 为 this.selector()
      -         * @param   {string|bool}       _key
      -         * @param   {bool}              _defalut
      -         * @return  {bool|undefined}
      -         */
      -        , boolProp:
      -            function( _selector, _key, _defalut ){
      -                if( typeof _key == 'boolean' ){
      -                    _defalut = _key;
      -                    _key = _selector;
      -                    _selector = this.selector();
      -                }else if( typeof _key == 'undefined' ){
      -                    _key = _selector;
      -                    _selector = this.selector();
      -                }else{
      -                    _selector && ( _selector = $( _selector ) );
      -                }
      -                var _r = undefined;
      -                _selector
      -                    && _selector.is( '[' + _key + ']' ) 
      -                    && ( _r = JC.f.parseBool( _selector.attr( _key ).trim() ) );
      -                return _r;
      -            }
      -        /**
      -         * 读取 callback 属性的值
      -         * @method  callbackProp
      -         * @param   {selector|string}  _selector    如果 _key 为空将视 _selector 为 _key, _selector 为 this.selector()
      -         * @param   {string}           _key
      -         * @return  {function|undefined}
      -         */
      -        , callbackProp:
      -            function( _selector, _key ){
      -                if( typeof _key == 'undefined' ){
      -                    _key = _selector;
      -                    _selector = this.selector();
      -                }else{
      -                    _selector && ( _selector = $( _selector ) );
      -                }
      -                var _r, _tmp;
      -                _selector 
      -                    && _selector.is( '[' + _key + ']' )
      -                    && ( _tmp = window[ _selector.attr( _key ) ] )
      -                    && ( _r = _tmp )
      -                    ;
      -                return _r;
      -            }
      -        /**
      -         * 获取与属性名匹配的 window 变量 
      -         * @method  windowProp
      -         * @param   {selector|string}  _selector    如果 _key 为空将视 _selector 为 _key, _selector 为 this.selector()
      -         * @param   {string}           _key
      -         * @return  {window variable}
      -         */
      -        , windowProp:
      -            function(){
      -                return this.callbackProp.apply( this, JC.f.sliceArgs( arguments ) );
      -            }
      -        /**
      -         * 获取 selector 属性的 jquery 选择器
      -         * @method  selectorProp
      -         * @param   {selector|string}  _selector    如果 _key 为空将视 _selector 为 _key, _selector 为 this.selector()
      -         * @param   {string}           _key
      -         * @return  bool
      -         */
      -        , selectorProp:
      -            function( _selector, _key ){
      -                var _r;
      -                if( typeof _key == 'undefined' ){
      -                    _key = _selector;
      -                    _selector = this.selector();
      -                }else{
      -                    _selector && ( _selector = $( _selector ) );
      -                }
      -
      -                _selector
      -                    && _selector.is( '[' + _key + ']' ) 
      -                    && ( _r = JC.f.parentSelector( _selector, _selector.attr( _key ) ) );
      -
      -                return _r;
      -            }
      -        /**
      -         * 获取 脚本模板 jquery 选择器
      -         * @method  scriptTplProp
      -         * @param   {selector|string}  _selector    如果 _key 为空将视 _selector 为 _key, _selector 为 this.selector()
      -         * @param   {string}           _key
      -         * @return  string
      -         */
      -        , scriptTplProp:
      -            function( _selector, _key ){
      -                var _r = '', _tmp;
      -                if( typeof _key == 'undefined' ){
      -                    _key = _selector;
      -                    _selector = this.selector();
      -                }else{
      -                    _selector && ( _selector = $( _selector ) );
      -                }
      -
      -                _selector
      -                    && _selector.is( '[' + _key + ']' ) 
      -                    && ( _tmp = JC.f.parentSelector( _selector, _selector.attr( _key ) ) )
      -                    && _tmp.length 
      -                    && ( _r = JC.f.scriptContent( _tmp ) );
      -
      -                return _r;
      -            }
      -        /**
      -         * 获取 脚本数据 jquery 选择器
      -         * @method  scriptDataProp
      -         * @param   {selector|string}  _selector    如果 _key 为空将视 _selector 为 _key, _selector 为 this.selector()
      -         * @param   {string}           _key
      -         * @return  object
      -         */
      -        , scriptDataProp:
      -            function( _selector, _key ){
      -                var _r = null, _tmp;
      -                _tmp = this.scriptTplProp( _selector, _key );
      -
      -                if( _tmp ){
      -                    _tmp = _tmp.replace( /^[\s]*?\/\/[\s\S]*?[\r\n]/gm, '' );
      -                    _tmp = _tmp.replace( /[\r\n]/g, '' );
      -                    _tmp = _tmp.replace( /\}[\s]*?,[\s]*?\}$/g, '}}');
      -                    _r = eval( '(' + _tmp + ')' );
      -                }
      -
      -                return _r;
      -            }
      -
      -        /**
      -         * 获取 selector 属性的 json 数据
      -         * @method  jsonProp
      -         * @param   {selector|string}  _selector    如果 _key 为空将视 _selector 为 _key, _selector 为 this.selector()
      -         * @param   {string}           _key
      -         * @return  {json | null}
      -         */
      -        , jsonProp:
      -            function( _selector, _key ){
      -                var _r;
      -                if( typeof _key == 'undefined' ){
      -                    _key = _selector;
      -                    _selector = this.selector();
      -                }else{
      -                    _selector && ( _selector = $( _selector ) );
      -                }
      -
      -                _selector
      -                    && _selector.is( '[' + _key + ']' ) 
      -                    && ( _r = eval( '(' + _selector.attr( _key ) + ')' ) );
      -
      -                return _r;
      -            }
      -
      -        /**
      -         * 判断 _selector 是否具体某种特征
      -         * @method  is
      -         * @param   {selector|string}  _selector    如果 _key 为空将视 _selector 为 _key, _selector 为 this.selector()
      -         * @param   {string}           _key
      -         * @return  bool
      -         */
      -        , is:
      -            function( _selector, _key ){
      -                if( typeof _key == 'undefined' ){
      -                    _key = _selector;
      -                    _selector = this.selector();
      -                }else{
      -                    _selector && ( _selector = $( _selector ) );
      -                }
      -
      -                return _selector && _selector.is( _key );
      -            }
      -    });
      -    
      -    JC.f.extendObject( BaseMVC.View.prototype, {
      -        init:
      -            function() {
      -                return this;
      -            }
      -        , selector:
      -            function(){
      -                return this._model.selector();
      -            }
      -        /**
      -         * 使用 jquery on 为 controler 绑定事件
      -         */
      -        , on:
      -            function(){
      -                $( this ).trigger( 'BindEvent', JC.f.sliceArgs( arguments ) );
      -                return this;
      -            }
      -        /**
      -         * 使用 jquery trigger 触发 controler 绑定事件
      -         */
      -        , trigger:
      -            function( _evtName, _args ){
      -                _args = _args || [];
      -                !jQuery.isArray( _args ) && ( _args = [ _args ] );
      -                _args.unshift( _evtName );
      -                $( this ).trigger( 'TriggerEvent', _args );
      -                return this;
      -            }
      -        , triggerHandler:
      -            function( _evtName, _args ){
      -                _args = _args || [];
      -                !jQuery.isArray( _args ) && ( _args = [ _args ] );
      -                _args.unshift( _evtName );
      -                return $( this ).trigger( 'TriggerEvent', _args );
      -            }
      -        , notification:
      -            function( _evtName, _args ){
      -                this._model.notification( _evtName, _args );
      -            }
      -        , notificationHandler:
      -            function( _evtName, _args ){
      -                return this._model.notificationHandler( _evtName, _args );
      -            }
      -    });
      -
      -    return JC.BaseMVC;
      -});}( typeof define === 'function' && define.amd ? define : 
      -        function ( _name, _require, _cb ) { 
      -            typeof _name == 'function' && ( _cb = _name );
      -            typeof _require == 'function' && ( _cb = _require ); 
      -            _cb && _cb(); 
      -        }
      -        , window
      -    )
      -);
      -
      -    
      -
      - -
      -
      -
      -
      -
      -
      - - - - - - - - - - diff --git a/docs_api/files/.._modules_JC.FChartCircleData_0.1_FChartCircleData.js.html b/docs_api/files/.._modules_JC.FChartCircleData_0.1_FChartCircleData.js.html deleted file mode 100644 index 7e4a59c..0000000 --- a/docs_api/files/.._modules_JC.FChartCircleData_0.1_FChartCircleData.js.html +++ /dev/null @@ -1,276 +0,0 @@ - - - - - ../modules/JC.FChartCircleData/0.1/FChartCircleData.js - FChart - - - - - - - - - - - - - - -
      -
      -
      - -

      - -
      -
      - API Docs for: 0.2 -
      -
      -
      - -
      - -
      -
      -
      - Show: - - - - - - - -
      - - -
      -
      -
      -

      File: ../modules/JC.FChartCircleData/0.1/FChartCircleData.js

      - -
      -
      -;(function(define, _win) { 'use strict'; define( [ 'JC.FChartNormalData' ], function(){
      -/**
      - * JChart 图表数据( 曲线图、环状图、管状图 )
      - *
      - * <p><a href='https://github.com/openjavascript/fchart' target='_blank'>JChart Project Site</a>
      - *   | <a href='http://fchart.openjavascript.org/docs_api/classes/JC.FChartCircleData.html' target='_blank'>API docs</a>
      - *  </p>
      - * <h2></h2>
      - * <dl>
      - *    <dt></dt>
      - *    <dd><dd>
      - * </dl> 
      - *
      - * @namespace   JC
      - * @class       FChartCircleData
      - * @extends     JC.FChartNormalData
      - * @constructor
      - * @static
      - * @version dev 0.1 2014-08-28
      - * @author  qiushaowei <suches@btbtd.org> | 75 Team
      - * @example
      -<h2>显示 两块数据[ 曲线图、环状图、管状图 ]的图表数据</h2>
      -<pre>{
      -    chart: {
      -        type: 'pie' 
      -    } 
      -
      -    , series:[{
      -        data: [
      -            ['全体覆盖率',   60],
      -            ['样本覆盖率',   20]
      -        ]
      -    }]
      -    
      -    , colors: [ 
      -        0x00ABEF
      -        , 0xFF6297
      -        
      -        , 0x09c100
      -        , 0x0c76c4 				
      -        , 0xff0619
      -        
      -        , 0xFFBF00			
      -        , 0xff7100	
      -        , 0xff06b3
      -        
      -        , 0x41e2e6			
      -        , 0xc3e2a4	
      -        , 0xffb2bc
      -        
      -        , 0xdbb8fd
      -    ]
      -}</pre>
      - */
      -
      -    JChart.FChartCircleData = JC.f.cloneObject( JC.FChartNormalData, {
      -        /**
      -         * 展现的数据
      -         * <br />series 数组只有索引0数据
      -         * <br />series 索引0 里的 data 应该是个两维数组, 或者 数组里的数据为 object: { name: String, y: Number }
      -         * @property    series
      -         * @type        {Array of Object}
      -         * @default     null
      -         * @example
      -         * 
      -<pre>series:[{
      -    data: [
      -        ['全体覆盖率',   60],
      -        ['样本覆盖率',   20]
      -    ]
      -}]</pre>
      -<pre>series:[{
      -    data: [
      -        { name:'全体覆盖率',   y:60],
      -        [ name:'样本覆盖率',   y:20]
      -    ]
      -}]</pre>
      -
      -         */
      -        series: null
      -        /**
      -         * 图表数值是否按总数值=100划分百分比
      -         * @property    isPercent
      -         * @type        {Boolean}
      -         * @default     false
      -         * @example 
      -         *  isPercent: false
      -         */
      -        , isPercent: false
      -        /**
      -         * 设置圆环的环宽
      -         * <br /> 仅对 NDount 生效
      -         * @property radiusStep
      -         * @default 10
      -         * @type int
      -         */
      -        , radiusStep: 10
      -        /**
      -         * 不同 圆环图的设置数据
      -         * @property plotOptions
      -         * @type {Object}
      -         */
      -        , plotOptions: {
      -            /**
      -             * NDount 的设置数据
      -             * @property plotOptions.ndount
      -             * @type {Object}
      -             */
      -            ndount: {
      -                /**
      -                 * NDount的圆环中的文本显示设置
      -                 * @property plotOptions.ndount.cdataLabels
      -                 * @type {Object}
      -                 */
      -                cdataLabels: {
      -                    /**
      -                     * 是否显示 NDount的圆环中的文本
      -                     * @property plotOptions.ndount.cdataLabels.enabled
      -                     * @type Boolean
      -                     * @default false
      -                     */
      -                    enabled: false
      -                }
      -            }
      -        }
      -
      -    });
      -
      -    return FChartCircleData;
      -});}( typeof define === 'function' && define.amd ? define : 
      -        function ( _name, _require, _cb ) { 
      -            typeof _name == 'function' && ( _cb = _name );
      -            typeof _require == 'function' && ( _cb = _require ); 
      -            _cb && _cb(); 
      -        }
      -        , window
      -    )
      -);
      -
      -    
      -
      - -
      -
      -
      -
      -
      -
      - - - - - - - - - - diff --git a/docs_api/files/.._modules_JC.FChartNormalData_0.1_FChartNormalData.js.html b/docs_api/files/.._modules_JC.FChartNormalData_0.1_FChartNormalData.js.html deleted file mode 100644 index b26256e..0000000 --- a/docs_api/files/.._modules_JC.FChartNormalData_0.1_FChartNormalData.js.html +++ /dev/null @@ -1,664 +0,0 @@ - - - - - ../modules/JC.FChartNormalData/0.1/FChartNormalData.js - FChart - - - - - - - - - - - - - - -
      -
      -
      - -

      - -
      -
      - API Docs for: 0.2 -
      -
      -
      - -
      - -
      -
      -
      - Show: - - - - - - - -
      - - -
      -
      -
      -

      File: ../modules/JC.FChartNormalData/0.1/FChartNormalData.js

      - -
      -
      - ;(function(define, _win) { 'use strict'; define( [], function(){
      -/**
      - * JChart 图表数据( 曲线图、柱状图 )
      - *
      - * <p><a href='https://github.com/openjavascript/fchart' target='_blank'>JChart Project Site</a>
      - *   | <a href='http://fchart.openjavascript.org/docs_api/classes/JC.FChartNormalData.html' target='_blank'>API docs</a>
      - *  </p>
      - * <h2></h2>
      - * <dl>
      - *    <dt></dt>
      - *    <dd><dd>
      - * </dl> 
      - *
      - * @namespace   JC
      - * @class       FChartNormalData
      - * @constructor
      - * @static
      - * @version dev 0.1 2014-08-28
      - * @author  qiushaowei <suches@btbtd.org> | 75 Team
      - * @example
      -<h2>显示 两条[曲线|柱状]的图表数据</h2>
      -<pre>{
      -    chart: {
      -        type: 'line'
      -        , bgColor: 0xffffff
      -        , bgAlpha: 1
      -    }
      -    , xAxis: {
      -        categories: [ '02/24', '02/25', '02/26', '02/27', '02/28', '02/29', '03/01' ]
      -    }
      -    , yAxis: {
      -        format: '{0}%'
      -        , maxvalue: 100
      -    }
      -    , series:[{
      -        name: '目标PV'
      -        , data: [ 70, 49, 76, 30, 55, 26, 78 ]
      -    }, {
      -        name: '目标UV',
      -        data: [ 48, 62, 50, 50, 30, 40, 35 ]
      -    }]
      -    , tooltip: {		
      -        enabled: true
      -        , "headerFormat": "{0}"			
      -        , "pointFormat": "{0} %"
      -        
      -    }
      -    , displayAllLabel: true
      -    , legend: {
      -        enabled: false
      -    }
      -    , dataLabels: {
      -        enabled: true
      -        , format: '{0}%'
      -    }
      -    , vline: {
      -        //enabled: false
      -    }
      -    , hline: {
      -        //enabled: true
      -    }
      -    , colors: [
      -        0x03ACEF
      -        , 0x5DC979
      -        , 0x09c100
      -        , 0x0c76c4 				
      -        , 0xff0619
      -        
      -        , 0xFFBF00			
      -        , 0xff7100	
      -        , 0xff06b3
      -        
      -        , 0x41e2e6			
      -        , 0xc3e2a4	
      -        , 0xffb2bc
      -        
      -        , 0xdbb8fd
      -    ]    				
      -    , hoverBg: {
      -        enabled: true		
      -        , style: {
      -            borderColor: 0xB4B4B4
      -            , borderWidth: 2
      -            , bgColor: 0xF0F0F0
      -        }										
      -    }
      -}</pre>
      - */
      -
      -    JChart.FChartNormalData = {
      -        /**
      -         * 图表背景的设置数据
      -         * @property    chart
      -         * @type        {object}
      -         */
      -        chart: {
      -            /**
      -             * 图表的类型
      -             * <br />see also: <a href="JC.FChart.html#property_Model.TYPE_MAP">JC&#46;FChart&#46;Model.TYPE_MAP</a>
      -             * @property    chart.type
      -             * @type        {string}
      -             * @default     empty
      -             */
      -            type: ''
      -            /**
      -             * 图表的背景颜色
      -             * @property    chart.bgColor
      -             * @type        {hex color}
      -             * @default     0xcccccc
      -             */
      -            , bgColor: 0xcccccc
      -            /**
      -             * 图表的背景色透明度
      -             * @property    chart.bgAlpha
      -             * @type        {Number}     0.01 ~ 1
      -             * @default     0.13
      -             */
      -            , bgAlpha: .13
      -            /**
      -             * 图表数据显示块的高度
      -             * <br />有时需要把多个数据图表显示一样的视觉高度, 但是其他图表的 水平label高度不一样, 就会导致视觉上的不同
      -             * <br />这个属性就是为了解决这个问题, 把图表数据显示块设置为统一的高度
      -             * @property    chart.graphicHeight
      -             * @type        {Number}     
      -             * @default     0,     0 = auto
      -             */
      -            , graphicHeight: 0
      -        }
      -        /**
      -         * 横向坐标设置数据
      -         * @property    xAxis
      -         * @type        {object}
      -         */
      -        , xAxis: {
      -            /**
      -             * 是否显示横向坐标( pending )
      -             * @property    xAxis.enabled
      -             * @type        {Boolean}
      -             * @default     true
      -             * @example 
      -             *  enabled: false
      -             */
      -            enabled: true
      -            /**
      -             * 横向坐标的显示数据
      -             * <br />这些数据默认也用于显示 tips 的主标题, 如果想重定义 tips 的主标题, 请设置 tooltip.header 属性
      -             * @property    xAxis.categories
      -             * @type        {Array of String}
      -             * @default     null
      -             * @example 
      -             *  categories: [ '02/24', '02/25', '02/26', '02/27', '02/28', '02/29', '03/01' ]
      -             */
      -            , categories: null
      -            /**
      -             * 横向坐标显示数据是否自动换行 
      -             * @property    xAxis.wordwrap
      -             * @type        {Boolean}
      -             * @default     true
      -             * @example 
      -             *  wordwrap: true
      -             */
      -            , wordwrap: true
      -            /**
      -             * 横向坐标显示数据格式化显示
      -             * @property    xAxis.format
      -             * @type        {String}
      -             * @default     '{0}'
      -             * @example 
      -             *  format: '{0}%'
      -             */
      -            , format: '{0}'
      -       }
      -        /**
      -         * 纵向坐标设置数据
      -         * @property    yAxis
      -         * @type        {object}
      -         */
      -        , yAxis: {
      -            /**
      -             * 是否显示纵向坐标
      -             * @property    yAxis.enabled
      -             * @type        {Boolean}
      -             * @default     true
      -             * @example 
      -             *  enabled: true
      -             */
      -            enabled: true
      -            /**
      -             * 纵向坐标显示数据格式化显示
      -             * @property    yAxis.format
      -             * @type        {String}
      -             * @default     '{0}'
      -             * @example 
      -             *  format: '{0}%'
      -             */
      -            , format: '{0}'
      -            /**
      -             * 自定义纵向坐标的最大值
      -             * <br /> 0 = auto
      -             * <br /> 显示百分比的时候, 应该设置为 100
      -             * @property    yAxis.maxvalue
      -             * @type        {Number}
      -             * @default     0
      -             * @example 
      -             *  maxvalue: 0
      -             */
      -            , maxvalue: 0
      -            /**
      -             * 纵向坐标的切分粒度
      -             * @property    yAxis.rate
      -             * @type        {Array of Number}
      -             * @default     auto
      -             * @example 
      -             *  rate: [ 1, .8, .6, .4, .2, .0 ]
      -             */
      -            , rate: null
      -       }
      -        /**
      -         * 展现的数据
      -         * <br />series 每条数据里的 data 属性, 长度应该与 xAxis.categories 的长度相等
      -         * <br />显示数值如果为百分比的话, 需要设置 yAxis.maxvalue = 100
      -         * @property    series
      -         * @type        {Array of Object}
      -         * @default     null
      -         * @example
      -         * 
      -<pre>series:[{
      -        name: '目标PV'
      -        , data: [ 70, 49, 76, 30, 55, 26, 78 ]
      -    }, {
      -        name: '目标UV',
      -        data: [ 48, 62, 50, 50, 30, 40, 35 ]
      -    }]</pre>
      -         */
      -        , series: null
      -        /**
      -         * tips 设置数据 
      -         * <br /> tips 的主标题默认为 xAxis.categories 对应索引的数据
      -         * <br /> 如果想重定义主标题, 请设置 tooltip.header 属性
      -         * @property    tooltip
      -         * @type        {object}
      -         */
      -        , tooltip: {
      -            /**
      -             * 是否显示 tips
      -             * @property    tooltip.enabled
      -             * @type        {Boolean}
      -             * @default     true
      -             * @example 
      -             *  enabled: true
      -             */
      -            enabled: true
      -            /**
      -             * tips 主标题的显示格式
      -             * @property    tooltip.headerFormat
      -             * @type        {String}
      -             * @default     '{0}'
      -             * @example 
      -             *  headerFormat: '{0}             right title'
      -             */
      -            , headerFormat: '{0}'
      -            /**
      -             * tips 坐数值的显示格式
      -             * @property    tooltip.pointFormat
      -             * @type        {String}
      -             * @default     '{0}'
      -             * @example 
      -             *  pointFormat: '{0}%'
      -             */
      -            , pointFormat: '{0}'
      -            /**
      -             * tips 主标题的显示数据
      -             * <br />如果不显式声明 tooltip.header, 默认数据为 xAxis.categories
      -             * @property    tooltip.header
      -             * @type        {Array of String}
      -             * @default     null
      -             * @example 
      -             *  header: [ '2014/02/24', '2014/02/25', '2014/02/26', '2014/02/27', '2014/02/28', '2014/02/29', '2014/03/01' ]
      -             */
      -            , header: null
      -            /**
      -             * tips 的扩展字段( 在行首显示扩展的字段 )
      -             * <br />series 每条数据里的 data 属性, 长度应该与 xAxis.categories 的长度相等
      -             * @property    tooltip.series
      -             * @type        {Array of Object}
      -             * @default     null
      -             * @example
      -             * 
      -<pre>"serial": [
      -    {
      -        "name": "总体"
      -        , "data": [ 
      -            1000, 2000, 3000, 4000, 5000, 6000
      -            , 1000, 2000, 3000, 4000, 5000, 6000 
      -            , 1000, 2000, 3000, 4000, 5000, 6000 
      -            , 7000
      -        ]
      -    }
      -]</pre>     */
      -            , series: null
      -            /**
      -             * tips 的扩展字段( 在行底显示扩展的字段 )
      -             * <br />series 每条数据里的 data 属性, 长度应该与 xAxis.categories 的长度相等
      -             * @property    tooltip.afterSeries
      -             * @type        {Array of Object}
      -             * @default     null
      -             * @example
      -             * 
      -<pre>"afterSerial": [
      -    {
      -        "name": "区分度"
      -        , "data": [ 
      -            1.04, 1.05, 1.06, 1.07, 1.08, 1.09
      -            , 2.01, 2.02, 2.03, 2.04, 2.05, 2.06
      -            , 3.09, 3.08, 3.07, 3.06, 3.05, 3.04
      -            , 4.11
      -        ]
      -    }
      -]</pre>
      -             */
      -            , afterSeries: null
      -        }
      -        /**
      -         * 是否显示所有横向 label
      -         * <br />如果非真, 而且长度大于4, 将按横向坐标的长度切分为4个显示坐标
      -         * @property    displayAllLabel
      -         * @type        {Boolean}
      -         * @default     true
      -         */
      -        , displayAllLabel: true
      -        /**
      -         * 数据点 label 的设置数据
      -         * @property    dataLabels
      -         * @type        {object}
      -         */
      -        , dataLabels: {
      -            /**
      -             * 每个数据点是否显示数值文本
      -             * @property    dataLabels.enabled
      -             * @type        {Boolean}
      -             * @default     false
      -             * @example 
      -             *  enabled: false
      -             */
      -            enabled: false
      -            /**
      -             * 格式化显示数值文本
      -             * @property    dataLabels.format
      -             * @type        {String}
      -             * @default     '{0}'
      -             * @example 
      -             *  format: '{0}%'
      -             */
      -            , format: '{0}'
      -        }
      -        /**
      -         * 纵向背景线的设置数据
      -         * @property    vline
      -         * @type        {object}
      -         */
      -        , vline: {
      -            /**
      -             * 是否显示纵向背景线
      -             * @property    vline.enabled
      -             * @type        {Boolean}
      -             * @default     true
      -             * @example 
      -             *  enabled: true
      -             */
      -            enabled: true
      -        }
      -        /**
      -         * 横向背景线的设置数据
      -         * @property    hline
      -         * @type        {object}
      -         */
      -        , hline: {
      -            /**
      -             * 是否显示横向背景线
      -             * @property    hline.enabled
      -             * @type        {Boolean}
      -             * @default     true
      -             * @example 
      -             *  enabled: true
      -             */
      -            enabled: true
      -        }
      -        /**
      -         * 数据项的显示颜色
      -         * @property    colors
      -         * @type        {Array of hex colors}
      -         * @default:    [0x03ACEF, 0x5DC979, 0x09c100, 0x0c76c4 , 0xff0619, 0xFFBF00, 0xff7100, 0xff06b3, 0x41e2e6, 0xc3e2a4, 0xffb2bc, 0xdbb8fd]    
      -         */
      -        , colors: [
      -            0x09c100, 
      -            0x0c76c4, 				
      -            0xff0619,
      -            
      -            0xFFBF00, 			
      -            0xff7100,	
      -            0xff06b3, 
      -            
      -            0x41e2e6,			
      -            0xc3e2a4,	
      -            0xffb2bc,
      -            
      -            0xdbb8fd
      -        ]
      -        /**
      -         * 数据项的背景设置
      -         * <br /> 目前这个属性仅对 柱状图 生效
      -         * @property    itemBg
      -         * @type        {object}
      -         */
      -        , itemBg: {
      -            /**
      -             * 数据项是否显示背景色
      -             * @property    itemBg.enabled
      -             * @type        {Boolean}
      -             * @default     false
      -             * @example 
      -             *  enabled: false
      -             */
      -            enabled: false
      -            /**
      -             * 数据项背景色的样式定义
      -             * @property    itemBg.style
      -             * @type        {object}
      -             * @default     { borderColor: 0xB4B4B4, bgColor: 0xF0F0F0, borderWidth: 0 }
      -             */
      -            , style: { borderColor: 0xEDF1F3, bgColor: 0xEDF1F3, borderWidth: 0 }
      -        }
      -        /**
      -         * 数据项的鼠标划过的背景设置
      -         * <br /> 目前这个属性仅对 柱状图 生效
      -         * @property    hoverBg
      -         * @type        {object}
      -         */
      -        , hoverBg: {
      -            /**
      -             * 数据项鼠标划过是否显示背景色
      -             * @property    hoverBg.enabled
      -             * @type        {Boolean}
      -             * @default     false
      -             * @example 
      -             *  enabled: false
      -             */
      -            enabled: false
      -            /**
      -             * 数据项背景色的样式定义
      -             * @property    hoverBg.style
      -             * @type        {object}
      -             * @default     { borderColor: 0xB4B4B4, bgColor: 0xF0F0F0, borderWidth: 0 }
      -             */
      -            , style: { borderColor: 0xB4B4B4, bgColor: 0xF0F0F0, borderWidth: 2 }
      -        }
      -        /**
      -         * 最大数据的显示设置
      -         * <br /> 目前这个属性仅对 柱状图 生效
      -         * @property    maxItem
      -         * @type        {object}
      -         */
      -        , maxItem: {
      -            /**
      -             * @property    maxItem.style
      -             * @type        {object}
      -             * @default     null
      -             * @example     style: { color: 0x5DC979, size: 18 }
      -             */
      -            style: null
      -        }
      -        /**
      -         * 数据项的背景区分设置
      -         * <br /> 目前这个属性仅对 曲线图 生效
      -         * @property    toggleBg
      -         * @type        {object}
      -         */
      -        , toggleBg: {
      -            /**
      -             * 数据项是否每隔一个数据显示不同的背景色
      -             * @property    toggleBg.enabled
      -             * @type        {Boolean}
      -             * @default     false
      -             * @example 
      -             *  enabled: false
      -             */
      -            enabled: false
      -            /**
      -             * 数据项背景色的样式定义( pending )
      -             * @property    toggleBg.style
      -             * @type        {object}
      -             * @default     { borderColor: 0xEDF1F3, bgColor: 0xEDF1F3, borderWidth: 0, thickness: 1 }
      -             */
      -            , style: { borderColor: 0xEDF1F3, bgColor: 0xEDF1F3, borderWidth: 0, thickness: 1 }
      -        }
      -        /**
      -         * 图表数值是否按总数值=100划分百分比
      -         * @property    isPercent
      -         * @type        {Boolean}
      -         * @default     false
      -         * @example 
      -         *  isPercent: false
      -         */
      -        , isPercent: false
      -        /**
      -         * 图表数值是否按 series 数据点 的总数值划分百分比
      -         * @property    isItemPercent
      -         * @type        {Boolean}
      -         * @default     false
      -         * @example 
      -         *  isItemPercent: false
      -         */
      -        , isItemPercent: false
      -
      -    };
      -
      -    return FChartNormalData;
      -});}( typeof define === 'function' && define.amd ? define : 
      -        function ( _name, _require, _cb ) { 
      -            typeof _name == 'function' && ( _cb = _name );
      -            typeof _require == 'function' && ( _cb = _require ); 
      -            _cb && _cb(); 
      -        }
      -        , window
      -    )
      -);
      -
      -    
      -
      - -
      -
      -
      -
      -
      -
      - - - - - - - - - - diff --git a/docs_api/files/.._modules_JC.FChart_0.1_FChart.js.html b/docs_api/files/.._modules_JC.FChart_0.1_FChart.js.html deleted file mode 100644 index 162b635..0000000 --- a/docs_api/files/.._modules_JC.FChart_0.1_FChart.js.html +++ /dev/null @@ -1,761 +0,0 @@ - - - - - ../modules/JC.FChart/0.1/FChart.js - FChart - - - - - - - - - - - - - - -
      -
      -
      - -

      - -
      -
      - API Docs for: 0.2 -
      -
      -
      - -
      - -
      -
      -
      - Show: - - - - - - - -
      - - -
      -
      -
      -

      File: ../modules/JC.FChart/0.1/FChart.js

      - -
      -
      -;(function(define, _win) { 'use strict'; define( 'JC.FChart', [ 'JC.BaseMVC', 'swfobject', 'plugins.json2', 'jquery.mousewheel'  ], function(){
      -
      -JC.use && !window.swfobject && JC.use( 'plugins.swfobject' );
      -JC.use && !window.JSON && JC.use( 'plugins.jsons' );
      -JC.use && !jQuery.event.special.mousewheel && JC.use( 'plugins.jquery.mousewheel' );
      -
      -/**
      - * JC.FChart - flash 图表组件
      - *
      - *  <p><b>require</b>:
      - *      <a href='JC.BaseMVC.html'>JC.BaseMVC</a>
      - *      , <a href='window.swfobject.html'>SWFObject</a>
      - *      , <a href='window.JSON.html'>JSON2</a>
      - *      , <a href='window.jQuery.mousewheel.html'>jQuery.mousewheel</a>
      - *  </p>
      - *
      - *  <p><a href='https://github.com/openjavascript/fchart' target='_blank'>JC Project Site</a>
      - *      | <a href='http://fchart.openjavascript.org/docs_api/classes/JC.FChart.html' target='_blank'>API docs</a>
      - *      | <a href='../../modules/JC.FChart/0.1/_demo?target=_blank' target='_blank'>demo link</a></p>
      - *  
      - *  <h2>页面只要引用本脚本, 默认会处理 div class="js_compFChart"</h2>
      - *
      - *  <h2>可用的 HTML attribute</h2>
      - *
      - *  <dl>
      - *      <dt>chartScriptData = script tpl selector</dt>
      - *      <dd>图表的脚本模板数据<dd>
      - *
      - *      <dt>chartDataVar = json object name</dt>
      - *      <dd>图表的json数据名, <b>window变量域</b><dd>
      - *
      - *      <dt>chartWidth = number, default = 100%</dt>
      - *      <dd>图表的宽度</dd>
      - *
      - *      <dt>chartHeight = number, default = 400</dt>
      - *      <dd>图表的高度</dd>
      - *
      - *      <dt>chartScroll = bool, default = true</dt>
      - *      <dd>图表是否响应鼠标滚动</dd>
      - *  </dl> 
      - *
      - * @namespace   JC
      - * @class       FChart
      - * @extends     JC.BaseMVC
      - * @constructor
      - * @param   {selector|string}   _selector   
      - * @version dev 0.1 2014-09-09
      - * @author  qiushaowei <suches@btbtd.org> | 75 Team
      - * @example
      -<pre>
      -    &lt;div class="js_compFChart"
      -        chartScriptData="|script"
      -        chartWidth="600"
      -        chartHeight="400"
      -        >
      -        &lt;script type="text/template">
      -            {
      -                chart: {
      -                    type: 'bar' 
      -                }, 
      -                title: {
      -                    text:'Chart Title'
      -                },
      -                subtitle: {
      -                    text: 'sub title'
      -                }, 
      -                xAxis: {
      -                    categories: [ '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12' ]
      -                }, 
      -                yAxis: {
      -                    title: {
      -                        text: '(Vertical Title - 中文)'
      -                    }
      -                },
      -                series:[{
      -                    name: 'Temperature'
      -                    , data: [-50, 0, 3, -20, -20, 27, 28, 32, 30, 25, 15, -58]
      -                    , style: { 'stroke': '#ff7100' } 
      -                    , pointStyle: {}
      -                }, {
      -                    name: 'Rainfall',
      -                    data: [20, 21, 20, 100, 200, 210, 220, 100, 20, 10, 20, 10]
      -                }],
      -                credits: {
      -                    enabled: true
      -                    , text: 'fchart.openjavascript.org'
      -                    , href: 'http://fchart.openjavascript.org/'
      -                },
      -                displayAllLabel: true,
      -                legend: {
      -                    enabled: false
      -                }
      -            }
      -        &lt;/script>
      -    &lt;/div>
      -</pre>
      - */
      -    var _jdoc = $( document ), _jwin = $( window );
      -
      -    JC.FChart = FChart;
      -
      -    function FChart( _selector ){
      -        _selector && ( _selector = $( _selector ) );
      -
      -        if( JC.BaseMVC.getInstance( _selector, FChart ) ) 
      -            return JC.BaseMVC.getInstance( _selector, FChart );
      -
      -        JC.BaseMVC.getInstance( _selector, FChart, this );
      -
      -        this._model = new FChart.Model( _selector );
      -        this._view = new FChart.View( this._model );
      -
      -        this._init();
      -
      -        //JC.log( FChart.Model._instanceName, 'all inited', new Date().getTime() );
      -    }
      -    /**
      -     * 初始化可识别的 FChart 实例
      -     * @method  init
      -     * @param   {selector}      _selector
      -     * @static
      -     * @return  {Array of FChartInstance}
      -     */
      -    FChart.init =
      -        function( _selector ){
      -            var _r = [];
      -            _selector = $( _selector || document );
      -
      -            if( _selector.length ){
      -                if( _selector.hasClass( 'js_compFChart' )  ){
      -                    _r.push( new FChart( _selector ) );
      -                }else{
      -                    _selector.find( 'div.js_compFChart' ).each( function(){
      -                        _r.push( new FChart( this ) );
      -                    });
      -                }
      -            }
      -            return _r;
      -        };
      -
      -    JC.BaseMVC.build( FChart );
      -
      -    JC.f.extendObject( FChart.prototype, {
      -        _beforeInit:
      -            function(){
      -                //JC.log( 'FChart _beforeInit', new Date().getTime() );
      -            }
      -
      -        , _initHanlderEvent:
      -            function(){
      -                var _p = this;
      -
      -                _p.on( 'inited', function(){
      -                   var _data = _p._model.parseInitData();
      -
      -                    if( _data ){
      -                        _p.trigger( FChart.Model.UPDATE_CHART_DATA, [ _data ] );
      -                    }
      -                    _p._model.height() && _p.selector().css( { 'height': _p._model.height() } );
      -
      -                    if( !_p._model.chartScroll() || _p._model.type().toLowerCase() == 'map' ){
      -                        _p.selector().on( 'mousewheel', function( _evt ){
      -                            var _swf = $( '#' + _p.gid() );
      -                            if( _evt.deltaY && _swf &&  _swf.prop( 'apiReady' ) && _swf.prop( 'updateMouseWheel' ) ){
      -                                _swf[0].updateMouseWheel( _evt.deltaY );
      -                            }
      -                            return false;
      -                        });
      -                    }
      -
      -                });
      -
      -                _p.on( FChart.Model.UPDATE_CHART_DATA, function( _evt, _data ){
      -                    _p.trigger( FChart.Model.CLEAR );
      -                    _p._view.update( _data );
      -                    _p._model.chartSize( { width: _p._model.width(), height: _p._model.height() } );
      -                });
      -
      -                _p.on( FChart.Model.CLEAR, function( _evt ){
      -                    _p.trigger( FChart.Model.CLEAR_STATUS );
      -                    _p._view && _p._view.clear();
      -                    //_p._model.clear && _p._model.clear();
      -                });
      -
      -
      -                _p._model.chartSize( { width: _p._model.width(), height: _p._model.height() } );
      -
      -            }
      -
      -        , _inited:
      -            function(){
      -                //JC.log( 'FChart _inited', new Date().getTime() );
      -                this.trigger( 'inited' );
      -            }
      -        /**
      -         * 更新数据
      -         * @method update
      -         * @param   object  _data
      -         */
      -        , update:
      -            function( _data ){
      -                this.trigger( FChart.Model.UPDATE_CHART_DATA, _data );
      -                return this;
      -            }
      -        /**
      -         *
      -         */
      -        , gid: function(){ return this._model.gid(); }
      -
      -    });
      -
      -    FChart.Model._instanceName = 'JCFChart';
      -
      -    FChart.Model.INS_COUNT = 1;
      -    FChart.Model.CLEAR = 'clear';
      -    FChart.Model.CLEAR_STATUS = 'clear_status';
      -    FChart.Model.UPDATE_CHART_DATA = 'update_data';
      -
      -    /**
      -     * flash swf 路径映射
      -     * <br />你还可以使用其他属性进行定义路径映射
      -     *      1. window.FCHART_SWF_FILE_MAP
      -     *      2. JC.FCHART_SWF_FILE_MAP
      -     * @property    Model.SWF_FILE_MAP
      -     * @type        {object}
      -     * @default     null
      -     * @static
      -     * @example
      -        requirejs( [ 'JC.FChart' ], function( FChart ){
      -            FChart['Model'].SWF_FILE_MAP = {
      -                'bar': 'http://fchart.openjavascript.org/modules/JC.FChart/0.1/swf/Histogram.swf'
      -                , 'vbar': 'http://fchart.openjavascript.org/modules/JC.FChart/0.1/swf/VHistogram.swf'
      -                , 'line': 'http://fchart.openjavascript.org/modules/JC.FChart/0.1/swf/CurveGram.swf'
      -                , 'stack': 'http://fchart.openjavascript.org/modules/JC.FChart/0.1/swf/Stack.swf'
      -                , 'mix': 'http://fchart.openjavascript.org/modules/JC.FChart/0.1/swf/MixChart.swf'
      -
      -                , 'column': 'http://fchart.openjavascript.org/modules/JC.FChart/0.1/swf/ZHistogram.swf'
      -                , 'hcolumn': 'http://fchart.openjavascript.org/modules/JC.FChart/0.1/swf/VZHistogram.swf'
      -            };
      -        });
      -     */
      -    FChart.Model.SWF_FILE_MAP = null;
      -
      -    /**
      -     * flash swf 路径
      -     * <br />{0} = JC.PATH
      -     * <br />{1} = chart file name
      -     * @property    Model.FLASH_PATH
      -     * @type        {string}
      -     * @default     {0}/flash/pub/charts/{1}.swf
      -     * @static
      -     */
      -    FChart.Model.FLASH_PATH = '{0}/swf/{1}.swf?{2}';
      -
      -    /**
      -     * flash swf 缓存版本控制
      -     * @property    Model.VERSION
      -     * @type        {string}
      -     * @default     requirejs.s.contexts._.config.urlArgs || 'v=' + JC.pathPostfix || 'v=fchart'
      -     * @static
      -     */
      -    FChart.Model.VERSION = 'fchart';
      -    JC.pathPostfix && ( FChart.Model.VERSION = 'v=' + JC.pathPostfix );
      -    window.requirejs 
      -        && window.requirejs.s
      -        && window.requirejs.s.contexts
      -        && window.requirejs.s.contexts._
      -        && window.requirejs.s.contexts._.config
      -        && window.requirejs.s.contexts._.config.urlArgs
      -        && ( FChart.Model.VERSION = window.requirejs.s.contexts._.config.urlArgs );
      -
      -    /**
      -     * 图表类型映射
      -     * <br />曲线图: line, curvegram
      -     * <br />柱状图: bar, histogram
      -     * <br />垂直柱状图: var, vhistogram
      -     * <br />饼状图: pie, piegraph
      -     * <br />圆环图: dount
      -     * <br />评分球: rate
      -     * @property    Model.TYPE_MAP
      -     * @type        {object}
      -     * @static
      -     */
      -    FChart.Model.TYPE_MAP = {
      -        'line': 'CurveGram'
      -        , 'curvegram': 'CurveGram'
      -
      -        , 'bar': 'Histogram'
      -        , 'histogram': 'Histogram'
      -
      -        , 'vbar': 'VHistogram'
      -        , 'hbar': 'VHistogram'
      -        , 'vhistogram': 'VHistogram'
      -
      -        , 'column': 'ZHistogram'
      -        , 'zbar': 'ZHistogram'
      -        , 'zhistogram': 'ZHistogram'
      -
      -
      -        , 'hcolumn': 'VZHistogram'
      -
      -        , 'mix': 'MixChart'
      -
      -        , 'map': 'Map'
      -
      -        , 'trend': 'Trend'
      -        , 'Trend': 'Trend'
      -
      -        , 'pie': 'PieGraph'
      -        , 'piegraph': 'PieGraph'
      -
      -        , 'dount': 'Dount'
      -
      -        , 'ddount': 'DDount'
      -        , 'ndount': 'NDount'
      -
      -        , 'stack': 'Stack'
      -        , 'hstack': 'HStack'
      -
      -        , 'rate': 'Rate'
      -    };
      -
      -
      -    JC.f.extendObject( FChart.Model.prototype, {
      -        init:
      -            function(){
      -                //JC.log( 'FChart.Model.init:', new Date().getTime() );
      -                this._gid = 'jchart_gid_' + ( FChart.Model.INS_COUNT++ );
      -                this.afterInit && this.afterInit();
      -            }
      -        , chartScroll:
      -            function(){
      -                var _r = true;
      -                this.is( '[chartScroll]' ) && ( _r = this.boolProp( 'chartScroll' ) );
      -                return _r;
      -            }
      -        /**
      -         * 解析图表默认数据
      -         */
      -        , parseInitData:
      -            function(){
      -                var _p = this, _data;
      -                if( _p.selector().attr( 'chartScriptData' ) ){
      -                    _data = _p.selectorProp( 'chartScriptData' ).html();
      -                }else if( _p.selector().is( '[chartDataVar]' ) ){
      -                    _data = _p.windowProp( 'chartDataVar' );
      -                    _data && ( _data = JSON.stringify( _data ) );
      -                }
      -
      -                if( _data ){
      -                    _data = _data.replace( /^[\s]*?\/\/[\s\S]*?[\r\n]/gm, '' );
      -                    _data = _data.replace( /[\r\n]/g, '' );
      -                    _data = _data.replace( /\}[\s]*?,[\s]*?\}$/g, '}}');
      -                    _data = eval( '(' + _data + ')' );
      -                }
      -
      -                return _data;
      -            }
      -        /**
      -         * 保存图表数据
      -         */
      -        , data:
      -            function( _data ){
      -                typeof _data != 'undefined' && ( this._data = _data );
      -                return this._data;
      -            }
      -
      -        , gid: function(){ return this._gid; }
      -
      -        /**
      -         * 图表宽度
      -         */
      -        , width:
      -            function(){
      -                if( typeof this._width == 'undefined' ){
      -                    this._width = this.selector().prop( 'offsetWidth' );
      -                    this.is( '[chartWidth]' ) && ( this._width = this.intProp( 'chartWidth' ) || this._width );
      -                }
      -                return this._width
      -            }
      -        /**
      -         * 图表高度
      -         */
      -        , height:
      -            function(){
      -                if( typeof this._height == 'undefined' ){
      -                    this._height = this.selector().prop( 'offsetHeight' ) || 400;
      -                    this.is( '[chartHeight]' ) && ( this._height = this.intProp( 'chartHeight' ) || this._height );
      -                }
      -                return this._height;
      -            }
      -        /**
      -         * 图表宽度
      -         */
      -        , sourceWidth:
      -            function(){
      -                if( typeof this._sourceWidth== 'undefined' ){
      -                    this.is( '[chartWidth]' ) && ( this._sourceWidth = this.intProp( 'chartWidth' ) || this._sourceWidth );
      -                }
      -                return this._sourceWidth || '100%';
      -            }
      -
      -        /**
      -         * 设置或保存图表的宽高
      -         */
      -        , chartSize:
      -            function( _setter ){
      -                typeof _setter != 'undefined' && ( this._chartSize = _setter );
      -                return this._chartSize;
      -            }
      -        /**
      -         * 图表画布
      -         */
      -        , stage:
      -            function(){
      -            }
      -        /**
      -         * 画布圆角弧度 
      -         */
      -        , stageCorner: function(){ return 18; }
      -        /**
      -         * 清除图表数据
      -         */
      -        , clear: 
      -            function(){
      -                var _p = this, _k;
      -                for( _k in _p ){
      -                    //JC.log( _k, JC.f.ts() );
      -                    if( /^\_/.test( _k ) ){
      -                        if( _k == '_selector' ) continue;
      -                        if( _k == '_gid' ) continue;
      -                        _p[ _k ] = undefined;
      -                    }
      -                }
      -                //JC.log( 'JChart.Base clear', JC.f.ts() );
      -                _p.afterClear && _p.afterClear();
      -            }
      -        /**
      -         * 清除图表状态
      -         */
      -        , clearStatus:
      -            function(){
      -            }
      -
      -        , chartType:
      -            function(){
      -                var _r = '';
      -                this.data() 
      -                    && this.data().chart
      -                    && this.data().chart.type
      -                    && ( _r = this.data().chart.type )
      -                return (_r||'').toString().toLowerCase();
      -            }
      -        , typeMap: function( _type ){ return FChart.Model.TYPE_MAP[ _type ]; }
      -        , type: function(){ return this.typeMap( this.chartType() ) || ''; }
      -        , path:
      -            function(){
      -                var _path = JC.FCHART_PATH;
      -                if( !_path ){
      -                    if( JC.use ){
      -                         _path = JC.PATH + '/comps/FChart/';
      -                    }else{
      -                         _path = JC.PATH + '/modules/JC.FChart/0.1/';
      -                    }
      -                }
      -                var _p = this
      -                    , _r = JC.f.printf( _p.attrProp( 'chartPath' ) || FChart.Model.FLASH_PATH
      -                        , _path
      -                        , _p.type() 
      -                        , FChart.Model.VERSION 
      -                    );
      -
      -                _r = this.checkFileMap() || _r;
      -
      -
      -                return _r;
      -            }
      -       
      -        , checkFileMap:
      -            function(){
      -                var _r = '';
      -                if( window.FCHART_SWF_FILE_MAP ){
      -                   this.chartType() in window.FCHART_SWF_FILE_MAP 
      -                       && ( _r = window.FCHART_SWF_FILE_MAP[ this.chartType() ] );
      -
      -                   this.type() in window.FCHART_SWF_FILE_MAP 
      -                       && ( _r = window.FCHART_SWF_FILE_MAP[ this.type() ] );
      -                }
      -
      -
      -                if( JC.FCHART_SWF_FILE_MAP ){
      -                   this.chartType() in JC.FCHART_SWF_FILE_MAP 
      -                       && ( _r = JC.FCHART_SWF_FILE_MAP[ this.chartType() ] );
      -
      -                   this.type() in JC.FCHART_SWF_FILE_MAP 
      -                       && ( _r = JC.FCHART_SWF_FILE_MAP[ this.type() ] );
      -                }
      -
      -                if( FChart.Model.SWF_FILE_MAP ){
      -                   this.chartType() in FChart.Model.SWF_FILE_MAP 
      -                       && ( _r = FChart.Model.SWF_FILE_MAP[ this.chartType() ] );
      -
      -                   this.type() in FChart.Model.SWF_FILE_MAP 
      -                       && ( _r = FChart.Model.SWF_FILE_MAP[ this.type() ] );
      -                }
      -
      -                _r && ( _r = JC.f.printf( '{0}?v={1}', _r, FChart.Model.VERSION ) );
      -
      -                return _r;
      -            }
      -    });
      -
      -    JC.f.extendObject( FChart.View.prototype, {
      -        init:
      -            function(){
      -                //JC.log( 'FChart.View.init:', new Date().getTime() );
      -                var _p = this;
      -            }
      -        /**
      -         * 渲染图表外观
      -         */
      -        , draw: 
      -            function( _data ){
      -                if( !this._model.type() ) return;
      -                var _p = this
      -                    , _path =  _p._model.path()
      -                    , _fpath =  _path.replace( /([^\:]|)[\/]+/g, '$1/' )
      -                    , _element = $( '#' + _p._model.gid() )
      -                    , _dataStr = JSON.stringify( _data ) 
      -                    ; 
      -
      -                if( !$( '#' +  _p._model.gid() ).length ){
      -                    _element = $( JC.f.printf( '<span id="{0}"></span>', _p._model.gid() ) );
      -                    _element.appendTo( _p.selector() );
      -                }
      -
      -                var _flashVar = { 'chart': encodeURIComponent( _dataStr ) }
      -                    , _flashParams = { 
      -                        'wmode': 'transparent'
      -                        , 'allowScriptAccess' : 'always' 
      -                    }
      -                    , _flashAttrs = { 'id': _p._model.gid(), 'name': _p._model.gid() }
      -                    ;
      -
      -                swfobject.embedSWF( 
      -                    _fpath
      -                    , _p._model.gid()
      -                    , _p._model.sourceWidth()
      -                    , _p._model.height()
      -                    , '10' 
      -                    , ''
      -                    , _flashVar
      -                    , _flashParams
      -                    , _flashAttrs
      -                );
      -
      -            }
      -
      -        /**
      -         * 图表高度
      -         */
      -        , width: function(){ return this._model.width(); }
      -        /**
      -         * 图表高度
      -         */
      -        , height: function(){ return this._model.height(); }
      -        /**
      -         * 图表画布
      -         */
      -        , stage: function(){ return this._model.stage(); }
      -        /**
      -         * 初始化的选择器
      -         */
      -        , selector:
      -            function(){
      -                return this._model.selector();
      -            }
      -        /**
      -         * 清除图表数据
      -         */
      -        , clear: 
      -            function(){
      -                var _p = this;
      -                if( !_p._model._stage ) return;
      -                $( _p._model._stage.canvas ).remove();
      -                _p._model._stage = undefined;
      -            }
      -        /**
      -         * 清除图表状态
      -         */
      -        , clearStatus:
      -            function(){
      -            }
      -        /**
      -         * 更新图表数据
      -         */
      -        , update: 
      -            function( _data ){
      -                var _p = this;
      -                _p.clear();
      -                _p._model.clear();
      -                _p._model.data( _data );
      -                _p.draw( _data );
      -            }
      -    });
      -
      -    _jdoc.ready( function(){
      -        JC.f.safeTimeout( function(){
      -            FChart.autoInit && FChart.init();
      -        }, null, 'winFCHARTInit', 1 );
      -    });
      -
      -    return JC.FChart;
      -});}( typeof define === 'function' && define.amd ? define : 
      -        function ( _name, _require, _cb ) { 
      -            typeof _name == 'function' && ( _cb = _name );
      -            typeof _require == 'function' && ( _cb = _require ); 
      -            _cb && _cb(); 
      -        }
      -        , window
      -    )
      -);
      -
      -
      -    
      -
      - -
      -
      -
      -
      -
      -
      - - - - - - - - - - diff --git a/docs_api/files/.._modules_JC.common_0.1_common.js.html b/docs_api/files/.._modules_JC.common_0.1_common.js.html deleted file mode 100644 index 5f32466..0000000 --- a/docs_api/files/.._modules_JC.common_0.1_common.js.html +++ /dev/null @@ -1,928 +0,0 @@ - - - - - ../modules/JC.common/0.1/common.js - FChart - - - - - - - - - - - - - - -
      -
      -
      - -

      - -
      -
      - API Docs for: 0.2 -
      -
      -
      - -
      - -
      -
      -
      - Show: - - - - - - - -
      - - -
      -
      -
      -

      File: ../modules/JC.common/0.1/common.js

      - -
      -
      -;
      -/**
      - * 全局函数
      - * @namespace 
      - * @class   window
      - * @static
      - */
      -!String.prototype.trim && ( String.prototype.trim = function(){ return $.trim( this ); } );
      -/**
      - * 如果 console 不可用, 则生成一个模拟的 console 对象
      - */
      -if( !window.console ) window.console = { log:function(){
      -    window.status = [].slice.apply( arguments ).join(' ');
      -}};
      -/**
      - * 声明主要命名空间, 方便迁移
      - */
      -window.JC = window.JC || {};
      -JC.log = function(){ JC.debug && window.console && console.log( sliceArgs( arguments ).join(' ') ); };
      -JC.PATH = JC.PATH || scriptPath();
      -window.Bizs = window.Bizs || {};
      -/**
      - * 全局 css z-index 控制属性
      - * @property    ZINDEX_COUNT
      - * @type        int
      - * @default     50001
      - * @static
      - */
      -window.ZINDEX_COUNT = window.ZINDEX_COUNT || 50001;
      -/**
      - * 把函数的参数转为数组
      - * @method  sliceArgs
      - * @param   {arguments}     args
      - * @return Array
      - * @static
      - */
      -function sliceArgs( _arg ){
      -    var _r = [], _i, _len;
      -    for( _i = 0, _len = _arg.length; _i < _len; _i++){
      -        _r.push( _arg[_i] );
      -    }
      -    return _r;
      -}
      - /**
      - * 按格式输出字符串
      - * @method printf
      - * @static
      - * @param   {string}    _str
      - * @return  string
      - * @example
      - *      printf( 'asdfasdf{0}sdfasdf{1}', '000', 1111 );
      - *      //return asdfasdf000sdfasdf1111
      - */
      -function printf( _str ){
      -    for(var i = 1, _len = arguments.length; i < _len; i++){
      -        _str = _str.replace( new RegExp('\\{'+( i - 1 )+'\\}', 'g'), arguments[i] );
      -    }
      -    return _str;
      -}
      -/**
      - * 判断URL中是否有某个get参数
      - * @method  hasUrlParam
      - * @static
      - * @param   {string}    _url
      - * @param   {string}    _key
      - * @return  bool
      - * @example
      - *      var bool = hasUrlParam( 'getkey' );
      - */
      -function hasUrlParam( _url, _key ){
      -    var _r = false;
      -    if( !_key ){ _key = _url; _url = location.href; }
      -    if( /\?/.test( _url ) ){
      -        _url = _url.split( '?' ); _url = _url[ _url.length - 1 ];
      -        _url = _url.split('&');
      -        for( var i = 0, j = _url.length; i < j; i++ ){
      -            if( _url[i].split('=')[0].toLowerCase() == _key.toLowerCase() ){ _r = true; break; };
      -        }
      -    }
      -    return _r;
      -}
      -/**
      - * 添加URL参数
      - * <br /><b>require:</b> delUrlParam
      - * @method  addUrlParams
      - * @static
      - * @param   {string}    _url
      - * @param   {object}    _params
      - * @return  string
      - * @example
      -        var url = addUrlParams( location.href, {'key1': 'key1value', 'key2': 'key2value' } );
      - */ 
      -function addUrlParams( _url, _params ){
      -    var sharp = '';
      -    !_params && ( _params = _url, _url = location.href );
      -    _url.indexOf('#') > -1 && ( sharp = _url.split('#')[1], _url = _url.split('#')[0] );
      -    for( var k in _params ){
      -        _url = delUrlParam(_url, k);
      -        _url.indexOf('?') > -1 
      -            ? _url += '&' + k +'=' + _params[k]
      -            : _url += '?' + k +'=' + _params[k];
      -    }
      -    sharp && ( _url += '#' + sharp );
      -    _url = _url.replace(/\?\&/g, '?' );
      -    return _url;   
      -
      -}
      -/**
      - * 取URL参数的值
      - * @method  getUrlParam
      - * @static
      - * @param   {string}    _url
      - * @param   {string}    _key
      - * @return  string
      - * @example
      -        var defaultTag = getUrlParam(location.href, 'tag');  
      - */ 
      -function getUrlParam( _url, _key ){
      -    var result = '', paramAr, i, items;
      -    !_key && ( _key = _url, _url = location.href );
      -    _url.indexOf('#') > -1 && ( _url = _url.split('#')[0] );
      -    if( _url.indexOf('?') > -1 ){
      -        paramAr = _url.split('?')[1].split('&');
      -        for( i = 0; i < paramAr.length; i++ ){
      -            items = paramAr[i].split('=');
      -            items[0] = items[0].replace(/^\s+|\s+$/g, '');
      -            if( items[0].toLowerCase() == _key.toLowerCase() ){
      -                result = items[1];
      -                break;
      -            } 
      -        }
      -    }
      -    return result;
      -}
      -/**
      - * 取URL参数的值, 这个方法返回数组
      - * <br />与 getUrlParam 的区别是可以获取 checkbox 的所有值
      - * @method  getUrlParams
      - * @static
      - * @param   {string}    _url
      - * @param   {string}    _key
      - * @return  Array
      - * @example
      -        var params = getUrlParams(location.href, 'tag');  
      - */ 
      -function getUrlParams( _url, _key ){
      -    var _r = [], _params, i, j, _items;
      -    !_key && ( _key = _url, _url = location.href );
      -    _url = _url.replace(/[\?]+/g, '?').split('?');
      -    if( _url.length > 1 ){
      -        _url = _url[1];
      -        _params = _url.split('&');
      -        if( _params.length ){
      -            for( i = 0, j = _params.length; i < j; i++ ){
      -                _items = _params[i].split('=');
      -                if( _items[0].trim() == _key ){
      -                    _r.push( _items[1] || '' );
      -                }
      -            }
      -        }
      -    }
      -    return _r;
      -}
      -/**
      - * 删除URL参数
      - * @method  delUrlParam
      - * @static
      - * @param  {string}    _url
      - * @param  {string}    _key
      - * @return  string
      - * @example
      -        var url = delUrlParam( location.href, 'tag' );
      - */ 
      -function delUrlParam( _url, _key ){
      -    var sharp = '', params, tmpParams = [], i, item;
      -    !_key && ( _key = _url, _url = location.href );
      -    _url.indexOf('#') > -1 && ( sharp = _url.split('#')[1], _url = _url.split('#')[0] );
      -    if( _url.indexOf('?') > -1 ){
      -        params = _url.split('?')[1].split('&');
      -        _url = _url.split('?')[0];
      -        for( i = 0; i < params.length; i++ ){
      -            var items = params[i].split('=');
      -            items[0] = items[0].replace(/^\s+|\s+$/g, '');
      -            if( items[0].toLowerCase() == _key.toLowerCase() ) continue;
      -            tmpParams.push( items.join('=') )
      -        }
      -        _url += '?' + tmpParams.join('&');
      -    }
      -    sharp && ( _url += '#' + sharp );
      -    return _url;
      -}
      -/**
      - * 提示需要 HTTP 环境
      - * @method  httpRequire
      - * @static
      - * @param  {string}  _msg   要提示的文字, 默认 "本示例需要HTTP环境'
      - * @return  bool     如果是HTTP环境返回true, 否则返回false
      - */
      -function httpRequire( _msg ){
      -    _msg = _msg || '本示例需要HTTP环境';
      -    if( /file\:|\\/.test( location.href ) ){
      -        alert( _msg );
      -        return false;
      -    }
      -    return true;
      -}
      -/**
      - * 删除 URL 的锚点
      - * <br /><b>require:</b> addUrlParams
      - * @method removeUrlSharp
      - * @static
      - * @param   {string}    $url
      - * @param   {bool}      $nornd      是否不添加随机参数
      - * @return  string
      - */
      -function removeUrlSharp($url, $nornd){   
      -    var url = $url.replace(/\#[\s\S]*/, '');
      -    !$nornd && (url = addUrlParams( url, { "rnd": new Date().getTime() } ) );
      -    return url;
      -}
      -/**
      - * 重载页面
      - * <br /><b>require:</b> removeUrlSharp
      - * <br /><b>require:</b> addUrlParams
      - * @method reloadPage
      - * @static
      - * @param   {string}    $url
      - * @param   {bool}      $nornd
      - * @param   {int}       $delayms
      - */ 
      -function reloadPage( _url, _nornd, _delayMs  ){
      -    _delayMs = _delayMs || 0;
      -    setTimeout( function(){
      -        _url = removeUrlSharp( _url || location.href, _nornd );
      -        !_nornd && ( _url = addUrlParams( _url, { 'rnd': new Date().getTime() } ) );
      -        location.href = _url;
      -    }, _delayMs);
      -}
      -/**
      - * 取小数点的N位
      - * <br />JS 解析 浮点数的时候,经常出现各种不可预知情况,这个函数就是为了解决这个问题
      - * @method  parseFinance
      - * @static
      - * @param   {number}    _i
      - * @param   {int}       _dot, default = 2
      - * @return  number
      - */
      -function parseFinance( _i, _dot ){
      -    _i = parseFloat( _i ) || 0;
      -    _dot = _dot || 2;
      -    if( _i && _dot ) {
      -        _i = parseFloat( _i.toFixed( _dot ) );
      -    }
      -    return _i;
      -}
      -/**
      - * js 附加字串函数
      - * @method  padChar
      - * @static
      - * @param   {string}    _str
      - * @param   {intl}      _len
      - * @param   {string}    _char
      - * @return  string
      - */
      -function padChar( _str, _len, _char ){
      -	_len  = _len || 2; _char = _char || "0"; 
      -	_str += '';
      -	if( _str.length >= _len ) return _str;
      -	_str = new Array( _len + 1 ).join( _char ) + _str
      -	return _str.slice( _str.length - _len );
      -}
      -/**
      - * 格式化日期为 YYYY-mm-dd 格式
      - * <br /><b>require</b>: pad\_char\_f
      - * @method  formatISODate
      - * @static
      - * @param   {date}                  _date       要格式化日期的日期对象
      - * @param   {string|undefined}      _split      定义年月日的分隔符, 默认为 '-'
      - * @return  string
      - *
      - */
      -function formatISODate( _date, _split ){
      -	_date = _date || new Date(); typeof _split == 'undefined' && ( _split = '-' );
      -	return [ _date.getFullYear(), padChar( _date.getMonth() + 1 ), padChar( _date.getDate() ) ].join(_split);
      -}
      -/**
      - * 从 ISODate 字符串解析日期对象
      - * @method  parseISODate
      - * @static
      - * @param   {string}    _datestr
      - * @return  date
      - */
      -function parseISODate( _datestr ){
      -    if( !_datestr ) return;
      -    _datestr = _datestr.replace( /[^\d]+/g, '');
      -    var _r;
      -    if( _datestr.length === 8 ){
      -        _r = new Date( _datestr.slice( 0, 4 )
      -                        , parseInt( _datestr.slice( 4, 6 ), 10 ) - 1
      -                        , parseInt( _datestr.slice( 6 ), 10 ) );
      -    }
      -    return _r;
      -}
      -/**
      - * 获取不带 时分秒的 日期对象
      - * @method  pureDate
      - * @param   {Date}  _d   可选参数, 如果为空 = new Date
      - * @return  Date
      - */
      -function pureDate( _d ){
      -    var _r;
      -    _d = _d || new Date();
      -    _r = new Date( _d.getFullYear(), _d.getMonth(), _d.getDate() );
      -    return _r;
      -}
      -/**
      -* 克隆日期对象
      -* @method  cloneDate
      -* @static
      -* @param   {Date}  _date   需要克隆的日期
      -* @return  {Date}  需要克隆的日期对象
      -*/
      -function cloneDate( _date ){ var d = new Date(); d.setTime( _date.getTime() ); return d; }
      -/**
      - * 判断两个日期是否为同一天
      - * @method  isSameDay
      - * @static
      - * @param   {Date}  _d1     需要判断的日期1
      - * @param   {Date}  _d2     需要判断的日期2
      - * @return {bool}
      - */
      -function isSameDay( _d1, _d2 ){
      -    return [_d1.getFullYear(), _d1.getMonth(), _d1.getDate()].join() === [
      -            _d2.getFullYear(), _d2.getMonth(), _d2.getDate()].join()
      -}
      -/**
      - * 判断两个日期是否为同一月份
      - * @method  isSameMonth
      - * @static
      - * @param   {Date}  _d1     需要判断的日期1
      - * @param   {Date}  _d2     需要判断的日期2
      - * @return {bool}
      - */
      -function isSameMonth( _d1, _d2 ){
      -    return [_d1.getFullYear(), _d1.getMonth()].join() === [
      -            _d2.getFullYear(), _d2.getMonth()].join()
      -}
      -/**
      - * 取得一个月份中最大的一天
      - * @method  maxDayOfMonth
      - * @static
      - * @param   {Date}  _date
      - * @return {int} 月份中最大的一天
      - */
      -function maxDayOfMonth( _date ){
      -    var _r, _d = new Date( _date.getFullYear(), _date.getMonth() + 1 );
      -        _d.setDate( _d.getDate() - 1 );
      -        _r = _d.getDate();
      -    return _r;
      -}
      -/**
      - * 取当前脚本标签的 src路径 
      - * @method  scriptPath
      - * @static
      - * @return  {string} 脚本所在目录的完整路径
      - */
      -function scriptPath(){
      -    var _sc = document.getElementsByTagName('script'), _sc = _sc[ _sc.length - 1 ], _path = _sc.getAttribute('src');
      -    if( /\//.test( _path ) ){ _path = _path.split('/'); _path.pop(); _path = _path.join('/') + '/'; }
      -    else if( /\\/.test( _path ) ){ _path = _path.split('\\'); _path.pop(); _path = _path.join('\\') + '/'; }
      -    return _path;
      -}
      -/**
      - * 缓动函数, 动画效果为按时间缓动 
      - * <br />这个函数只考虑递增, 你如果需要递减的话, 在回调里用 _maxVal - _stepval 
      - * @method  easyEffect
      - * @static
      - * @param   {function}  _cb         缓动运动时的回调
      - * @param   {number}    _maxVal     缓动的最大值, default = 200
      - * @param   {number}    _startVal   缓动的起始值, default = 0
      - * @param   {number}    _duration   缓动的总时间, 单位毫秒, default = 200
      - * @param   {number}    _stepMs     缓动的间隔, 单位毫秒, default = 2
      - * @return  interval
      - * @example
      -        $(document).ready(function(){
      -            window.js_output = $('span.js_output');
      -            window.ls = [];
      -            window.EFF_INTERVAL = easyEffect( effectcallback, 100);
      -        });
      -
      -        function effectcallback( _stepval, _done ){
      -            js_output.html( _stepval );
      -            ls.push( _stepval );
      -
      -            !_done && js_output.html( _stepval );
      -            _done && js_output.html( _stepval + '<br />' + ls.join() );
      -        }
      - */
      -function easyEffect( _cb, _maxVal, _startVal, _duration, _stepMs ){
      -    var _beginDate = new Date(), _timepass
      -        , _maxVal = _maxVal || 200
      -        , _startVal = _startVal || 0
      -        , _maxVal = _maxVal - _startVal 
      -        , _tmp = 0
      -        , _done
      -        , _duration = _duration || 200
      -        , _stepMs = _stepMs || 2
      -        ;
      -    //JC.log( '_maxVal:', _maxVal, '_startVal:', _startVal, '_duration:', _duration, '_stepMs:', _stepMs );
      -
      -    var _interval = setInterval(
      -        function(){
      -            _timepass = new Date() - _beginDate;
      -            _tmp = _timepass / _duration * _maxVal;
      -            _tmp;
      -            if( _tmp >= _maxVal ){
      -                _tmp = _maxVal;
      -                _done = true;
      -                clearInterval( _interval );
      -            }
      -            _cb && _cb( _tmp + _startVal, _done );
      -        }, _stepMs );
      -
      -    return _interval;
      -}
      -/**
      - * 把输入值转换为布尔值
      - * @method parseBool
      - * @param   {*} _input
      - * @return bool
      - * @static
      - */
      -function parseBool( _input ){
      -    if( typeof _input == 'string' ){
      -        _input = _input.replace( /[\s]/g, '' ).toLowerCase();
      -        if( _input && ( _input == 'false' 
      -                        || _input == '0' 
      -                        || _input == 'null'
      -                        || _input == 'undefined'
      -       )) _input = false;
      -       else if( _input ) _input = true;
      -    }
      -    return !!_input;
      -}
      -/**
      - * 判断是否支持 CSS position: fixed
      - * @property    $.support.isFixed
      - * @type        bool
      - * @require jquery
      - * @static
      - */
      -window.jQuery && jQuery.support && (jQuery.support.isFixed = (function ($){
      -    try{
      -        var r, contain = $( document.documentElement ),
      -            el = $( "<div style='position:fixed;top:100px;visibility:hidden;'>x</div>" ).appendTo( contain ),
      -            originalHeight = contain[ 0 ].style.height,
      -            w = window;
      -        
      -        contain.height( screen.height * 2 + "px" );
      -     
      -        w.scrollTo( 0, 100 );
      -     
      -        r = el[ 0 ].getBoundingClientRect().top === 100;
      -     
      -        contain.height( originalHeight );
      -     
      -        el.remove();
      -     
      -        w.scrollTo( 0, 0 );
      -     
      -        return r;
      -    }catch(ex){}
      -})(jQuery));
      -/**
      - * 绑定或清除 mousewheel 事件
      - * @method  mousewheelEvent
      - * @param   {function}  _cb
      - * @param   {bool}      _detach
      - * @static
      - */
      -function mousewheelEvent( _cb, _detach ){
      -    var _evt =  (/Firefox/i.test(navigator.userAgent))
      -        ? "DOMMouseScroll" 
      -        : "mousewheel"
      -        ;
      -    document.attachEvent && ( _evt = 'on' + _evt );
      -
      -    if( _detach ){
      -        document.detachEvent && document.detachEvent( _evt, _cb )
      -        document.removeEventListener && document.removeEventListener( _evt, _cb );
      -    }else{
      -        document.attachEvent && document.attachEvent( _evt, _cb )
      -        document.addEventListener && document.addEventListener( _evt, _cb );
      -    }
      -}
      -/**
      - * 获取 selector 的指定父级标签
      - * @method  getJqParent
      - * @param   {selector}  _selector
      - * @param   {selector}  _filter
      - * @return selector
      - * @require jquery
      - * @static
      - */
      -function getJqParent( _selector, _filter ){
      -    _selector = $(_selector);
      -    var _r;
      -
      -    if( _filter ){
      -        while( (_selector = _selector.parent()).length ){
      -            if( _selector.is( _filter ) ){
      -                _r = _selector;
      -                break;
      -            }
      -        }
      -    }else{
      -        _r = _selector.parent();
      -    }
      -
      -    return _r;
      -}
      -/**
      - * 扩展 jquery 选择器
      - * <br />扩展起始字符的 '/' 符号为 jquery 父节点选择器
      - * <br />扩展起始字符的 '|' 符号为 jquery 子节点选择器
      - * <br />扩展起始字符的 '(' 符号为 jquery 父节点查找识别符( getJqParent )
      - * @method  parentSelector
      - * @param   {selector}  _item
      - * @param   {String}    _selector
      - * @param   {selector}  _finder
      - * @return  selector
      - * @require jquery
      - * @static
      - */
      -function parentSelector( _item, _selector, _finder ){
      -    _item && ( _item = $( _item ) );
      -    if( /\,/.test( _selector ) ){
      -        var _multiSelector = [], _tmp;
      -        _selector = _selector.split(',');
      -        $.each( _selector, function( _ix, _subSelector ){
      -            _subSelector = _subSelector.trim();
      -            _tmp = parentSelector( _item, _subSelector, _finder );
      -            _tmp && _tmp.length 
      -                &&  ( 
      -                        ( _tmp.each( function(){ _multiSelector.push( $(this) ) } ) )
      -                    );
      -        });
      -        return $( _multiSelector );
      -    }
      -    var _pntChildRe = /^([\/]+)/, _childRe = /^([\|]+)/, _pntRe = /^([<\(]+)/;
      -    if( _pntChildRe.test( _selector ) ){
      -        _selector = _selector.replace( _pntChildRe, function( $0, $1 ){
      -            for( var i = 0, j = $1.length; i < j; i++ ){
      -                _item = _item.parent();
      -            }
      -            _finder = _item;
      -            return '';
      -        });
      -        _selector = _selector.trim();
      -        return _selector ? _finder.find( _selector ) : _finder;
      -    }else if( _childRe.test( _selector ) ){
      -        _selector = _selector.replace( _childRe, function( $0, $1 ){
      -            for( var i = 1, j = $1.length; i < j; i++ ){
      -                _item = _item.parent();
      -            }
      -            _finder = _item;
      -            return '';
      -        });
      -        _selector = _selector.trim();
      -        return _selector ? _finder.find( _selector ) : _finder;
      -    }else if( _pntRe.test( _selector ) ){
      -        _selector = _selector.replace( _pntRe, '' ).trim();
      -        if( _selector ){
      -            if( /[\s]/.test( _selector ) ){
      -                var _r;
      -                _selector.replace( /^([^\s]+)([\s\S]+)/, function( $0, $1, $2 ){
      -                    _r = getJqParent( _item, $1 ).find( $2.trim() );
      -                });
      -                return _r || _selector;
      -            }else{
      -                return getJqParent( _item, _selector );
      -            }
      -        }else{
      -            return _item.parent();
      -        }
      -    }else{
      -        return _finder ? _finder.find( _selector ) : jQuery( _selector );
      -    }
      -}
      -/**
      - * 获取脚本模板的内容
      - * @method  scriptContent
      - * @param   {selector}  _selector
      - * @return  string
      - * @static
      - */
      -function scriptContent( _selector ){
      -    var _r = '';
      -    _selector 
      -        && ( _selector = $( _selector ) ).length 
      -        && ( _r = _selector.html().trim().replace( /[\r\n]/g, '') )
      -        ;
      -    return _r;
      -}
      -/**
      - * 取函数名 ( 匿名函数返回空 )
      - * @method  funcName
      - * @param   {function}  _func
      - * @return  string
      - * @static
      - */
      -function funcName(_func){
      -  var _re = /^function\s+([^()]+)[\s\S]*/
      -      , _r = ''
      -      , _fStr = _func.toString();    
      -  //JC.log( _fStr );
      -  _re.test( _fStr ) && ( _r = _fStr.replace( _re, '$1' ) );
      -  return _r.trim();
      -}
      -/**
      - * 动态添加内容时, 初始化可识别的组件
      - * <dl>
      - *      <dt>目前会自动识别的组件,  </dt>
      - *      <dd>
      - *          Bizs.CommonModify, JC.Panel, JC.Dialog
      - *          <br /><b>自动识别的组件不用显式调用  jcAutoInitComps 去识别可识别的组件</b>
      - *      </dd>
      - * </d>
      - * <dl>
      - *      <dt>可识别的组件</dt>
      - *      <dd>
      - *          JC.AutoSelect, JC.Calendar, JC.AutoChecked, JC.AjaxUpload, JC.Placeholder
      - *          <br />Bizs.DisableLogic, Bizs.FormLogic
      - *      </dd>
      - * </d>
      - * @method  jcAutoInitComps
      - * @param   {selector}  _selector
      - * @static
      - */
      -function jcAutoInitComps( _selector ){
      -    _selector = $( _selector || document );
      -    
      -    if( !( _selector && _selector.length && window.JC ) ) return;
      -    /**
      -     * 联动下拉框
      -     */
      -    JC.AutoSelect && JC.AutoSelect( _selector );
      -    /**
      -     * 日历组件
      -     */
      -    JC.Calendar && JC.Calendar.initTrigger( _selector );
      -    /**
      -     * 全选反选
      -     */
      -    JC.AutoChecked && JC.AutoChecked( _selector );
      -    /**
      -     * Ajax 上传
      -     */
      -    JC.AjaxUpload && JC.AjaxUpload.init( _selector );
      -    /**
      -     * Placeholder 占位符
      -     */
      -    JC.Placeholder && JC.Placeholder.init( _selector );
      -
      -    if( !window.Bizs ) return;
      -    /**
      -     * disable / enable
      -     */
      -    Bizs.DisableLogic && Bizs.DisableLogic.init( _selector );
      -    /**
      -     * 表单提交逻辑
      -     */
      -    Bizs.FormLogic && Bizs.FormLogic.init( _selector );
      -}
      -/**
      - * URL 占位符识别功能
      - * @method  urlDetect
      - * @param   {String}    _url    如果 起始字符为 URL, 那么 URL 将祝为本页的URL
      - * @return  string
      - * @static
      - * @example
      - *      urlDetect( '?test' ); //output: ?test
      - *
      - *      urlDetect( 'URL,a=1&b=2' ); //output: your.com?a=1&b=2
      - *      urlDetect( 'URL,a=1,b=2' ); //output: your.com?a=1&b=2
      - *      urlDetect( 'URLa=1&b=2' ); //output: your.com?a=1&b=2
      - */
      -function urlDetect( _url ){
      -    _url = _url || '';
      -    var _r = _url, _tmp, i, j;
      -    if( /^URL/.test( _url ) ){
      -        _tmp = _url.replace( /^URL/, '' ).replace( /[\s]*,[\s]*/g, ',' ).trim().split(',');
      -        _url = location.href;
      -        var _d = {}, _concat = [];
      -        if( _tmp.length ){
      -            for( i = 0, j = _tmp.length; i < j; i ++ ){
      -                 /\&/.test( _tmp[i] )
      -                     ? ( _concat = _concat.concat( _tmp[i].split('&') ) )
      -                     : ( _concat = _concat.concat( _tmp[i] ) )
      -                     ;
      -            }
      -            _tmp = _concat;
      -        }
      -        for( i = 0, j = _tmp.length; i < j; i++ ){
      -            _items = _tmp[i].replace(/[\s]+/g, '').split( '=' );
      -            if( !_items[0] ) continue;
      -            _d[ _items[0] ] = _items[1] || '';
      -        }
      -        _url = addUrlParams( _url, _d );
      -        _r = _url;
      -    }
      -    return _r;
      -}
      -/**
      - * 日期占位符识别功能
      - * @method  dateDetect
      - * @param   {String}    _dateStr    如果 起始字符为 NOW, 那么将视为当前日期
      - * @return  {date|null}
      - * @static
      - * @example
      - *      dateDetect( 'now' ); //2014-10-02
      - *      dateDetect( 'now,3d' ); //2013-10-05
      - *      dateDetect( 'now,-3d' ); //2013-09-29
      - *      dateDetect( 'now,2w' ); //2013-10-16
      - *      dateDetect( 'now,-2m' ); //2013-08-02
      - *      dateDetect( 'now,4y' ); //2017-10-02
      - *
      - *      dateDetect( 'now,1d,1w,1m,1y' ); //2014-11-10
      - */
      -function dateDetect( _dateStr ){
      -    var _r = null   
      -        , _re = /^now/i
      -        , _d, _ar, _item
      -        ;
      -    if( _dateStr && typeof _dateStr == 'string' ){
      -        if( _re.test( _dateStr ) ){
      -            _d = new Date();
      -            _dateStr = _dateStr.replace( _re, '' ).replace(/[\s]+/g, '');
      -            _ar = _dateStr.split(',');
      -
      -            var _red = /d$/i
      -                , _rew = /w$/i
      -                , _rem = /m$/i
      -                , _rey = /y$/i
      -                ;
      -            for( var i = 0, j = _ar.length; i < j; i++ ){
      -                _item = _ar[i] || '';
      -                if( !_item ) continue;
      -                _item = _item.replace( /[^\-\ddwmy]+/gi, '' );
      -
      -                if( _red.test( _item ) ){
      -                    _item = parseInt( _item.replace( _red, '' ), 10 );
      -                    _item && _d.setDate( _d.getDate() + _item );
      -                }else if( _rew.test( _item ) ){
      -                    _item = parseInt( _item.replace( _rew, '' ), 10 );
      -                    _item && _d.setDate( _d.getDate() + _item * 7 );
      -                }else if( _rem.test( _item ) ){
      -                    _item = parseInt( _item.replace( _rem, '' ), 10 );
      -                    _item && _d.setMonth( _d.getMonth() + _item );
      -                }else if( _rey.test( _item ) ){
      -                    _item = parseInt( _item.replace( _rey, '' ), 10 );
      -                    _item && _d.setFullYear( _d.getFullYear() + _item );
      -                }
      -            }
      -            _r = _d;
      -        }else{
      -            _r = parseISODate( _dateStr );
      -        }
      -    }
      -    return _r;
      -}
      -;(function(){
      -    /**
      -     * inject jquery val func, for hidden change event
      -     */
      -    if( !window.jQuery ) return;
      -    var _oldVal = $.fn.val;
      -    $.fn.val = 
      -        function(){
      -            var _r = _oldVal.apply( this, arguments ), _p = this;
      -            if( 
      -                arguments.length
      -                && ( this.prop('nodeName') || '').toLowerCase() == 'input' 
      -                && ( this.attr('type') || '' ).toLowerCase() == 'hidden'
      -            ){
      -                setTimeout( function(){ _p.trigger( 'change' ); }, 1 );
      -            }
      -            return _r;
      -        };
      -}());
      -
      -    
      -
      - -
      -
      -
      -
      -
      -
      - - - - - - - - - - diff --git a/docs_api/files/.._modules_JC.common_0.2_common.js.html b/docs_api/files/.._modules_JC.common_0.2_common.js.html deleted file mode 100644 index 94d5add..0000000 --- a/docs_api/files/.._modules_JC.common_0.2_common.js.html +++ /dev/null @@ -1,1782 +0,0 @@ - - - - - ../modules/JC.common/0.2/common.js - FChart - - - - - - - - - - - - - - -
      -
      -
      - -

      - -
      -
      - API Docs for: 0.2 -
      -
      -
      - -
      - -
      -
      -
      - Show: - - - - - - - -
      - - -
      -
      -
      -

      File: ../modules/JC.common/0.2/common.js

      - -
      -
      -;(function(define, _win) { 'use strict'; define( 'JC.Common', [], function(){
      -    window.JWIN = window.JWIN || $( window );
      -    window.JDOC = window.JDOC || $( document );
      -    /**
      -     * 如果 console 不可用, 生成一个模拟的 console 对象
      -     */
      -    !window.console && ( window.console = { 
      -        log: function(){ window.status = sliceArgs( arguments ).join(' '); }
      -    });
      -    !console.dir && (
      -        console.dir = function(){}
      -    );
      -    !console.error && (
      -        console.error = function(){}
      -    );
      -    /**
      -     * 声明主要命名空间, 方便迁移
      -     */
      -    window.JC = window.JC || {};
      -    JC.log = function(){ JC.debug && console.log( sliceArgs( arguments ).join(' ') ); };
      -    JC.dir = function(){ 
      -        JC.debug && $.each( sliceArgs( arguments ), function( _ix, _item ){ console.dir( _item )} );
      -    };
      -    JC.error = function(){ 
      -        JC.debug && $.each( sliceArgs( arguments ), function( _ix, _item ){ console.error( _item )} );
      -    };
      -    JC.clear = function(){ 
      -        console.clear && console.clear();
      -    };
      -
      -    JC.PATH = JC.PATH || scriptPath();
      -
      -    window.Bizs = window.Bizs || {};
      -    /**
      -     * JC.f 是 JC.common 的别名
      -     * <br />具体使用请见 <a href='JC.common.html'>JC.common</a></p>
      -     * @class JC.f
      -     * @static
      -     */
      -    /**
      -     * JC 组件通用静态方法和属性 ( JC.common, <b>别名: JC.f</b> )
      -     * <br />所有 JC 组件都会依赖这个静态类
      -     * <p><b>require</b>: <a href='window.jQuery.html'>jQuery</a></p>
      -     * <p><a href='https://github.com/openjavascript/jquerycomps' target='_blank'>JC Project Site</a>
      -     * | <a href='http://jc2.openjavascript.org/docs_api/classes/JC.common.html' target='_blank'>API docs</a>
      -     * | <a href='../../modules/JC.common/0.2/_demo/' target='_blank'>demo link</a></p>
      -     * @class JC.common
      -     * @static
      -     * @version dev 0.2 2013-11-06 
      -     * @version dev 0.1 2013-07-04
      -     * @author  qiushaowei   <suches@btbtd.org> | 360 75 Team
      -     */
      -    JC.common = JC.f = {
      -        "addUrlParams": addUrlParams
      -        , "cloneDate": cloneDate
      -        , "dateDetect": dateDetect
      -        , "delUrlParam": delUrlParam
      -        , "delUrlParams": delUrlParams
      -        , "easyEffect": easyEffect
      -        , "filterXSS": filterXSS
      -        , "formatISODate": formatISODate
      -        , "funcName": funcName
      -        , "getJqParent": getJqParent
      -
      -        , "getUrlParam": getUrlParam
      -        , "getUrlParams": getUrlParams
      -        , "hasUrlParam": hasUrlParam
      -        , 'urlHostName': urlHostName
      -        , "httpRequire": httpRequire
      -        , "isSameDay": isSameDay
      -        , "isSameWeek": isSameWeek
      -        , "isSameMonth": isSameMonth
      -        , "isSameSeason": isSameSeason
      -        , "isSameYear": isSameYear
      -        , "weekOfYear": weekOfYear
      -        , "seasonOfYear": seasonOfYear
      -        , "dayOfWeek": dayOfWeek
      -        , "dayOfSeason": dayOfSeason
      -        , "jcAutoInitComps": jcAutoInitComps
      -        , "autoInit": jcAutoInitComps
      -        , "addAutoInit": function(){}
      -
      -        , "maxDayOfMonth": maxDayOfMonth
      -        , "mousewheelEvent": mousewheelEvent
      -        , "padChar": padChar
      -        , "parentSelector": parentSelector
      -        , "parseBool": parseBool
      -        , "parseFinance": parseFinance
      -        , "parseISODate": parseISODate
      -        , "parseDate": parseDate
      -        , "printf": printf
      -        , "printKey": printKey
      -        , "cloneObject": cloneObject
      -
      -        , "pureDate": pureDate
      -        , "reloadPage": reloadPage
      -        , "removeUrlSharp": removeUrlSharp
      -        , "relativePath": relativePath
      -        , "scriptContent": scriptContent
      -        , "scriptPath": scriptPath
      -        , "sliceArgs": sliceArgs
      -        , "urlDetect": urlDetect
      -        , "moneyFormat": moneyFormat
      -        , "dateFormat": dateFormat
      -        , "extendObject": extendObject
      -        , "safeTimeout": safeTimeout
      -        , "encoder": encoder
      -        , "fixPath": fixPath
      -        , "arrayId": arrayId
      -        , "docSize": docSize
      -        , "winSize": winSize
      -        , "gid": gid
      -
      -        /**
      -         * 判断 JC.common 是否需要向后兼容, 如果需要的话, 向 window 添加全局静态函数
      -         */
      -        , "backward":
      -            function( _setter ){
      -                if( window.JC_BACKWARD || _setter ){
      -                    for( var k in JC.common ){
      -                        if( k == 'backward' ) continue;
      -                        window[ k ] = window[ k ] || JC.common[ k ];
      -                    }
      -                }
      -            }
      -        , "has_url_param": hasUrlParam
      -        , "add_url_params": addUrlParams
      -        , "get_url_param": getUrlParam
      -        , "del_url_param": delUrlParam
      -        , "reload_page": reloadPage
      -        , "parse_finance_num": parseFinance
      -        , "pad_char_f": padChar
      -        , "script_path_f": scriptPath
      -        , "ts": function(){ return new Date().getTime(); }
      -    };
      -    JC.f.backward();
      -    /**
      -     * jquery 1.9.1 默认 string 没有 trim 方法, 这里对 string 原型添加一个默认的 trim 方法
      -     */
      -    !String.prototype.trim && ( String.prototype.trim = function(){ return $.trim( this ); } );
      -    /**
      -     * 兼容 低版本 ie Array 的 indexOf 方法
      -     */
      -    !Array.prototype.indexOf 
      -        && ( Array.prototype.indexOf =
      -            function( _v ){
      -                var _r = -1;
      -                $.each( this, function( _ix, _item ){
      -                    if( _item == _v ){
      -                        _r = _ix;
      -                        return false;
      -                    }
      -                });
      -                return _r;
      -            });
      -
      -    !Array.prototype.first 
      -        && ( Array.prototype.first = 
      -            function(){
      -                var _r;
      -                this.length && ( _r = this[0] );
      -                return _r;
      -        });
      -
      -    !Array.prototype.last
      -        && ( Array.prototype.last = 
      -            function(){
      -                var _r;
      -                this.length && ( _r = this[ this.length - 1] );
      -                return _r;
      -        });
      -
      -    /**
      -     * 全局 css z-index 控制属性
      -     * <br /> <b>注意</b>: 这个变量是 window.ZINDEX_COUNT
      -     * @property    ZINDEX_COUNT
      -     * @type        int
      -     * @default     50001
      -     * @static
      -     */
      -    window.ZINDEX_COUNT = window.ZINDEX_COUNT || 50001;
      -
      -    function fixPath( _url ){
      -        if( /\\/.test( _url ) ){
      -            _url = _url.replace( /[\\]+/g, '\\' );
      -        }else{
      -            _url = _url.replace( /[\/]+/g, '/' );
      -        }
      -        return _url;
      -    }
      -    /**
      -     * 一维数组去重
      -     * @method  arrayId
      -     * @param   {Array}     _ar
      -     * @return Array
      -     * @static
      -     */
      -    function arrayId( _ar ){
      -        var _r = [], _k = {};
      -        
      -        for( var i = 0, j = _ar.length; i < j; i++ ){
      -            if( !(_ar[i] in _k) ){
      -                _r.push( _ar[i] );
      -                _k[ _ar[i] ] = _ar[i];
      -            }
      -        }
      -        
      -        return _r;
      -    }
      -    /**
      -     * 生成全局唯一ID
      -     * @method  gid
      -     * @return string
      -     * @static
      -     */
      -    function gid(){
      -        return 'jc_gid_' + JC.f.ts() + '_' + (JC.GID_COUNT++);
      -    }
      -    JC.GID_COUNT = 1;
      -
      -    /**
      -     * 把函数的参数转为数组
      -     * @method  sliceArgs
      -     * @param   {arguments}     args
      -     * @return Array
      -     * @static
      -     */
      -    function sliceArgs( _arg ){
      -        var _r = [], _i, _len;
      -        for( _i = 0, _len = _arg.length; _i < _len; _i++){
      -            _r.push( _arg[_i] );
      -        }
      -        return _r;
      -    }
      -    /**
      -     * 取 URL 的 host name
      -     * @method  urlHostName
      -     * @param   {string}    _url
      -     * @return  string
      -     * @static
      -     */
      -    function urlHostName( _url ){
      -        var _r = '', _url = _url || location.href;
      -        if( /\:\/\//.test( _url ) ){
      -            _url.replace( /^.*?\:\/\/([^\/]+)/, function( $0, $1 ){
      -                _r = $1;
      -            });
      -        }
      -        return _r;
      -    }
      -    /**
      -     * 把 URL 相对路径 转换为 绝对路径
      -     * @method  relativePath
      -     * @param   {string}    _path
      -     * @param   {string}    _url
      -     * @return  string
      -     * @static
      -     */
      -    function relativePath( _path, _url ){
      -        _url = _url || document.URL;
      -        _url = _url.replace(/^.*?\:\/\/[^\/]+/, "").replace(/[^\/]+$/, "");
      -        if(!_path){return _url;}  
      -        if(!/\/$/.test(_url)){_url += "/";}
      -
      -        if(/(^\.\.\/|^\.\/)/.test(_path)){
      -            var Re = new RegExp("^\\.\\.\\/"), iCount = 0;    
      -            while(Re.exec(_path)!=null){
      -                _path = _path.replace(Re, "");
      -                iCount++;
      -            }       
      -            for(var i=0; i<iCount; i++){_url = _url.replace(/[^\/]+\/$/, "");}    
      -            if(_url=="") return "/";  
      -            _path = _path.replace(/^\.\//, ""); 
      -            _path.replace( /\/\/$/, '/' );
      -            return _url+_path;
      -        }   
      -        return _path;
      -    }
      -     /**
      -     * 按格式输出字符串
      -     * @method printf
      -     * @static
      -     * @param   {string}    _str
      -     * @return  string
      -     * @example
      -     *      printf( 'asdfasdf{0}sdfasdf{1}', '000', 1111 );
      -     *      //return asdfasdf000sdfasdf1111
      -     */
      -    function printf( _str ){
      -        for(var i = 1, _len = arguments.length; i < _len; i++){
      -            _str = _str.replace( new RegExp('\\{'+( i - 1 )+'\\}', 'g'), arguments[i] );
      -        }
      -        return _str;
      -    }
      -     /**
      -     * 按格式输出字符串
      -     * @method printKey
      -     * @static
      -     * @param   {string}    _str
      -     * @param   {object}    _keys
      -     * @return  string
      -     * @example
      -     *      JC.f.printKey( 'asdfasdf{key1}sdfasdf{key2},{0}', { 'key1': '000', 'key2': 1111, '0': 222 );
      -     *      //return asdfasdf000sdfasdf1111,222
      -     */
      -    function printKey( _str, _keys ){
      -        for( var k in _keys ){
      -            _str = _str.replace( new RegExp('\\{'+( k )+'\\}', 'g'), _keys[k] );
      -        }
      -        return _str;
      -    }
      -
      -    /**
      -     * 判断URL中是否有某个get参数
      -     * @method  hasUrlParam
      -     * @param   {string}    _url
      -     * @param   {string}    _key
      -     * @return  bool
      -     * @static
      -     * @example
      -     *      var bool = hasUrlParam( 'getkey' );
      -     */
      -    function hasUrlParam( _url, _key ){
      -        var _r = false;
      -        if( !_key ){ _key = _url; _url = location.href; }
      -        if( /\?/.test( _url ) ){
      -            _url = _url.split( '?' ); _url = _url[ _url.length - 1 ];
      -            _url = _url.split('&');
      -            for( var i = 0, j = _url.length; i < j; i++ ){
      -                if( _url[i].split('=')[0].toLowerCase() == _key.toLowerCase() ){ _r = true; break; };
      -            }
      -        }
      -        return _r;
      -    }
      -    /**
      -     * 添加URL参数
      -     * <br /><b>require:</b> delUrlParam, filterXSS
      -     * @method  addUrlParams
      -     * @param   {string}    _url
      -     * @param   {object}    _params
      -     * @return  string
      -     * @static
      -     * @example
      -            var url = addUrlParams( location.href, {'key1': 'key1value', 'key2': 'key2value' } );
      -     */ 
      -    function addUrlParams( _url, _params ){
      -        var sharp = '';
      -        !_params && ( _params = _url, _url = location.href );
      -        _url.indexOf('#') > -1 && ( sharp = _url.split('#')[1], _url = _url.split('#')[0] );
      -        for( var k in _params ){
      -            _url = delUrlParam(_url, k);
      -            _url.indexOf('?') > -1 
      -                ? _url += '&' + k +'=' + _params[k]
      -                : _url += '?' + k +'=' + _params[k];
      -        }
      -        sharp && ( _url += '#' + sharp );
      -        _url = filterXSS( _url.replace(/\?\&/g, '?' ) );
      -        return _url;   
      -
      -    }
      -    /**
      -     * xss 过滤函数
      -     * @method filterXSS
      -     * @param   {string}    _s
      -     * @return string
      -     * @static
      -     */
      -    function filterXSS( _s ){
      -        _s && (
      -            _s = _s
      -                    .replace( /</g, '&lt;' )
      -                    .replace( />/g, '&gt;' )
      -        );
      -        return _s;
      -    }
      -    /**
      -     * 取URL参数的值
      -     * <br /><b>require:</b> filterXSS
      -     * @method  getUrlParam
      -     * @param   {string}    _url
      -     * @param   {string}    _key
      -     * @return  string
      -     * @static
      -     * @example
      -            var defaultTag = getUrlParam(location.href, 'tag');  
      -     */ 
      -    function getUrlParam( _url, _key ){
      -        var _r = '', _ar, i, _items;
      -        !_key && ( _key = _url, _url = location.href );
      -        _url.indexOf('#') > -1 && ( _url = _url.split('#')[0] );
      -        if( _url.indexOf('?') > -1 ){
      -            _ar = _url.split('?')[1].split('&');
      -            for( i = 0; i < _ar.length; i++ ){
      -                _items = _ar[i].split('=');
      -                _items[0] = decodeURIComponent( _items[0] || '' ).replace(/^\s+|\s+$/g, '');
      -                if( _items[0].toLowerCase() == _key.toLowerCase() ){
      -                    _r = filterXSS( _items[1] || '' );
      -                    break;
      -                } 
      -            }
      -        }
      -        return _r;
      -    }
      -    /**
      -     * 取URL参数的值, 这个方法返回数组
      -     * <br />与 getUrlParam 的区别是可以获取 checkbox 的所有值
      -     * <br /><b>require:</b> filterXSS
      -     * @method  getUrlParams
      -     * @param   {string}    _url
      -     * @param   {string}    _key
      -     * @return  Array
      -     * @static
      -     * @example
      -            var params = getUrlParams(location.href, 'tag');  
      -     */ 
      -    function getUrlParams( _url, _key ){
      -        var _r = [], _params, i, j, _items;
      -        !_key && ( _key = _url, _url = location.href );
      -        _url = _url.replace(/[\?]+/g, '?').split('?');
      -        if( _url.length > 1 ){
      -            _url = _url[1];
      -            _params = _url.split('&');
      -            if( _params.length ){
      -                for( i = 0, j = _params.length; i < j; i++ ){
      -                    _items = _params[i].split('=');
      -                    _items[0] = decodeURIComponent( _items[0] ) || '';
      -                    if( _items[0].trim() == _key ){
      -                        _r.push( filterXSS( _items[1] || '' ) );
      -                    }
      -                }
      -            }
      -        }
      -        return _r;
      -    }
      -    /**
      -     * 删除URL参数
      -     * <br /><b>require:</b> filterXSS
      -     * @method  delUrlParam
      -     * @param  {string}    _url
      -     * @param  {string}    _key
      -     * @return  string
      -     * @static
      -     * @example
      -            var url = delUrlParam( location.href, 'tag' );
      -     */ 
      -    function delUrlParam( _url, _key ){
      -        var sharp = '', params, tmpParams = [], i, item;
      -        !_key && ( _key = _url, _url = location.href );
      -        _url.indexOf('#') > -1 && ( sharp = _url.split('#')[1], _url = _url.split('#')[0] );
      -        if( _url.indexOf('?') > -1 ){
      -            params = _url.split('?')[1].split('&');
      -            _url = _url.split('?')[0];
      -            for( i = 0; i < params.length; i++ ){
      -                var items = params[i].split('=');
      -                items[0] = items[0].replace(/^\s+|\s+$/g, '');
      -                if( items[0].toLowerCase() == _key.toLowerCase() ) continue;
      -                tmpParams.push( items.join('=') )
      -            }
      -            _url += '?' + tmpParams.join('&');
      -        }
      -        sharp && ( _url += '#' + sharp );
      -       _url = filterXSS( _url );
      -        return _url;
      -    }
      -    /**
      -     * 批量删除URL参数
      -     * <br /><b>require:</b> delUrlParam
      -     * @method  delUrlParams
      -     * @param  {string}    _url
      -     * @param  {Array}    _keys
      -     * @return  string
      -     * @static
      -     * @example
      -            var url = delUrlParam( location.href, [ 'k1', 'k2' ] );
      -     */ 
      -    function delUrlParams( _url, _keys ){
      -        !_keys && ( _keys = _url, _url = location.href );
      -        for( var k in _keys ) _url = delUrlParam( _url, _keys[ k ] );
      -        return _url;
      -    }
      -    /**
      -     * 提示需要 HTTP 环境
      -     * @method  httpRequire
      -     * @static
      -     * @param  {string}  _msg   要提示的文字, 默认 "本示例需要HTTP环境'
      -     * @return  bool     如果是HTTP环境返回true, 否则返回false
      -     */
      -    function httpRequire( _msg ){
      -        _msg = _msg || '本示例需要HTTP环境';
      -        if( /file\:|\\/.test( location.href ) ){
      -            alert( _msg );
      -            return false;
      -        }
      -        return true;
      -    }
      -    /**
      -     * 删除 URL 的锚点
      -     * <br /><b>require:</b> addUrlParams, filterXSS
      -     * @method removeUrlSharp
      -     * @static
      -     * @param   {string}    _url
      -     * @param   {bool}      _nornd      是否不添加随机参数
      -     * @param   {string}    _rndName
      -     * @return  string
      -     */
      -    function removeUrlSharp( _url, _nornd, _rndName ){   
      -        !_url && ( _url = location.href );
      -        _url = _url.replace(/\#[\s\S]*/, '');
      -        _rndName = _rndName || 'rnd';
      -        var _rndO;
      -        !_nornd && ( _rndO = {}
      -                        , _rndO[ _rndName ] = new Date().getTime()
      -                        , _url = addUrlParams( _url, _rndO ) 
      -        );
      -        _url = filterXSS( _url );
      -        return _url;
      -    }
      -    /**
      -     * 重载页面
      -     * <br /><b>require:</b> removeUrlSharp, addUrlParams, filterXSS
      -     * @method reloadPage
      -     * @static
      -     * @param   {string}    _url
      -     * @param   {bool}      _nornd
      -     * @param   {int}       _delayms
      -     */ 
      -    function reloadPage( _url, _nornd, _delayMs  ){
      -        _delayMs = _delayMs || 0;
      -
      -        _url = removeUrlSharp( _url || location.href, _nornd );
      -        !_nornd && ( _url = addUrlParams( _url, { 'rnd': new Date().getTime() } ) );
      -        _url = filterXSS( _url );
      -
      -        setTimeout( function(){
      -            location.href = _url;
      -        }, _delayMs);
      -        return _url;
      -    }
      -    /**
      -     * 取小数点的N位
      -     * <br />JS 解析 浮点数的时候,经常出现各种不可预知情况,这个函数就是为了解决这个问题
      -     * @method  parseFinance
      -     * @static
      -     * @param   {number}    _i
      -     * @param   {int}       _dot  default = 2
      -     * @return  number
      -     */
      -    function parseFinance( _i, _dot ){
      -        _i = parseFloat( _i ) || 0;
      -        typeof _dot == 'undefined' && ( _dot = 2 );
      -        _i && ( _i = parseFloat( _i.toFixed( _dot ) ) );
      -        return _i;
      -    }
      -    /**
      -     * js 附加字串函数
      -     * @method  padChar
      -     * @static
      -     * @param   {string}    _str
      -     * @param   {intl}      _len
      -     * @param   {string}    _char
      -     * @return  string
      -     */
      -    function padChar( _str, _len, _char ){
      -        _len  = _len || 2; _char = _char || "0"; 
      -        _str += '';
      -        if( _str.length >= _len ) return _str;
      -        _str = new Array( _len + 1 ).join( _char ) + _str
      -        return _str.slice( _str.length - _len );
      -    }
      -    /**
      -     * 格式化日期为 YYYY-mm-dd 格式
      -     * <br /><b>require</b>: pad\_char\_f
      -     * @method  formatISODate
      -     * @static
      -     * @param   {date}                  _date       要格式化日期的日期对象
      -     * @param   {string|undefined}      _split      定义年月日的分隔符, 默认为 '-'
      -     * @return  string
      -     *
      -     */
      -    function formatISODate( _date, _split ){
      -        _date = _date || new Date(); typeof _split == 'undefined' && ( _split = '-' );
      -        return [ _date.getFullYear(), padChar( _date.getMonth() + 1 ), padChar( _date.getDate() ) ].join(_split);
      -    }
      -    /**
      -     * 从 ISODate 字符串解析日期对象
      -     * @method  parseISODate
      -     * @static
      -     * @param   {string}    _datestr
      -     * @return  date
      -     */
      -    function parseISODate( _datestr ){
      -        if( !_datestr ) return;
      -        _datestr = _datestr.replace( /[^\d]+/g, '');
      -        var _r;
      -        if( _datestr.length === 8 ){
      -            _r = new Date( _datestr.slice( 0, 4 )
      -                            , parseInt( _datestr.slice( 4, 6 ), 10 ) - 1
      -                            , parseInt( _datestr.slice( 6 ), 10 ) );
      -        }else if( _datestr.length === 6 ){
      -            _r = new Date( _datestr.slice( 0, 4 )
      -                            , parseInt( _datestr.slice( 4, 6 ), 10 ) - 1
      -                            , 1 );
      -        }
      -
      -        return _r;
      -    }
      -    /**
      -     * 从日期字符串解析日期对象
      -     * <br />兼容 JC.Calendar 日期格式
      -     * @method  parseDate
      -     * @param   {date}      _date
      -     * @param   {selector}  _selector   如果 _selector 为真, 则尝试从 _selector 的 html 属性 dateParse 对日期进行格式化
      -     * @param   {boolean}   _forceISO   是否强制转换为ISO日期
      -     * @return  {date|null}
      -     * @static
      -     */
      -    function parseDate( _date, _selector, _forceISO ){
      -        if( !_date ) return null;
      -        var _parse = parseISODate;
      -            
      -        _selector && !_forceISO
      -            && ( _selector = $( _selector ) ).length
      -            && _selector.attr( 'dateParse' )
      -            && ( _parse = window[ _selector.attr( 'dateParse' ) ] || _parse )
      -            ;
      -        _date = _parse( _date );
      -        _date && _date.start && ( _date = _date.start );
      -        return _date;
      -    }
      -
      -    /**
      -     * 获取不带 时分秒的 日期对象
      -     * @method  pureDate
      -     * @param   {Date}  _d   可选参数, 如果为空 = new Date
      -     * @return  Date
      -     */
      -    function pureDate( _d ){
      -        var _r;
      -        _d = _d || new Date();
      -        _r = new Date( _d.getFullYear(), _d.getMonth(), _d.getDate() );
      -        return _r;
      -    }
      -    /**
      -    * 克隆日期对象
      -    * @method  cloneDate
      -    * @static
      -    * @param   {Date}  _date   需要克隆的日期
      -    * @return  {Date}
      -    */
      -    function cloneDate( _date ){ var d = new Date(); d.setTime( _date.getTime() ); return d; }
      -    /**
      -     * 判断两个日期是否为同一天
      -     * @method  isSameDay
      -     * @static
      -     * @param   {Date}  _d1     需要判断的日期1
      -     * @param   {Date}  _d2     需要判断的日期2
      -     * @return {bool}
      -     */
      -    function isSameDay( _d1, _d2 ){
      -        return [_d1.getFullYear(), _d1.getMonth(), _d1.getDate()].join() === [
      -                _d2.getFullYear(), _d2.getMonth(), _d2.getDate()].join()
      -    }
      -    /**
      -     * 判断两个日期是否为同一月份
      -     * @method  isSameMonth
      -     * @static
      -     * @param   {Date}  _d1     需要判断的日期1
      -     * @param   {Date}  _d2     需要判断的日期2
      -     * @return {bool}
      -     */
      -    function isSameMonth( _d1, _d2 ){
      -        return [_d1.getFullYear(), _d1.getMonth()].join() === [
      -                _d2.getFullYear(), _d2.getMonth()].join()
      -    }
      -
      -    /**
      -     * 判断两个日期是否为同一季度
      -     * @method  isSameWeek
      -     * @static
      -     * @param   {Date}  _d1     需要判断的日期1
      -     * @param   {Date}  _d2     需要判断的日期2
      -     * @return {bool}
      -     */
      -    function isSameWeek( _d1, _d2 ){
      -        var _weeks = [],
      -            _r = false,
      -            i = 0,
      -            l;
      -
      -        _weeks = weekOfYear(_d1.getFullYear());
      -        
      -        _d1 = _d1.getTime();
      -        _d2 = _d2.getTime();
      -
      -        for ( i = 0, l = _weeks.length; i < l; i++ ) {
      -            if ( (_d1 >= _weeks[i].start && _d1 <= _weeks[i].end) 
      -                && ( _d2 >= _weeks[i].start && _d2 <= _weeks[i].end ) 
      -                ) {
      -                console.log(i, _d1, _weeks[i]);
      -                return true;
      -            }  
      -        }
      -
      -        return _r;
      -    }
      -
      -    /**
      -     * 判断两个日期是否为同一季度
      -     * @method  isSameSeason
      -     * @static
      -     * @param   {Date}  _d1     需要判断的日期1
      -     * @param   {Date}  _d2     需要判断的日期2
      -     * @return {bool}
      -     */
      -    function isSameSeason( _d1, _d2 ){
      -        var _seasons = [],
      -            _r = false,
      -            i = 0,
      -            l ;
      -
      -        if ( !isSameYear( _d1, _d2 ) ) {
      -            return false;
      -        }
      -
      -        _seasons = seasonOfYear( _d1.getFullYear() );
      -        _d1 = _d1.getTime();
      -        _d2 = _d2.getTime();
      -        
      -        for (i = 0, l = _seasons.length ; i < l; i++ ) {
      -            if ( (_d1 >= _seasons[i].start && _d1 <= _seasons[i].end) 
      -                && ( _d2 >= _seasons[i].start && _d2 <= _seasons[i].end ) ) {
      -                return true;
      -            }     
      -        }
      -
      -        return _r;
      -    }
      -
      -    /**
      -     * 判断两个日期是否为同一年
      -     * @method  isSameYear
      -     * @static
      -     * @param   {Date}  _d1     需要判断的日期1
      -     * @param   {Date}  _d2     需要判断的日期2
      -     * @return {bool}
      -     */
      -    function isSameYear( _d1, _d2 ) {
      -        return _d1.getFullYear() === _d2.getFullYear();
      -    }
      -
      -    /**
      -     * 取一年中所有的星期, 及其开始结束日期
      -     * @method  weekOfYear
      -     * @static
      -     * @param   {int}   _year
      -     * @param   {int}   _dayOffset  每周的默认开始为周几, 默认0(周一)
      -     * @return  Array
      -     */
      -    function weekOfYear( _year, _dayOffset ){
      -        var _r = [], _tmp, _count = 1, _dayOffset = _dayOffset || 0
      -            , _year = parseInt( _year, 10 )
      -            , _d = new Date( _year, 0, 1 );
      -        /**
      -         * 元旦开始的第一个星期一开始的一周为政治经济上的第一周
      -         */
      -         _d.getDay() > 1 && _d.setDate( _d.getDate() - _d.getDay() + 7 );
      -
      -         _d.getDay() === 0 && _d.setDate( _d.getDate() + 1 );
      -
      -         _dayOffset > 0 && ( _dayOffset = (new Date( 2000, 1, 2 ) - new Date( 2000, 1, 1 )) * _dayOffset );
      -
      -        while( _d.getFullYear() <= _year ){
      -            _tmp = { 'week': _count++, 'start': null, 'end': null };
      -            _tmp.start = _d.getTime() + _dayOffset;
      -            //_tmp.start = formatISODate(_d);
      -            _d.setDate( _d.getDate() + 6 );
      -            _tmp.end = _d.getTime() + _dayOffset;
      -            //_tmp.end = formatISODate(_d);
      -            _d.setDate( _d.getDate() + 1 );
      -            if( _d.getFullYear() > _year ) {
      -                _d = new Date( _d.getFullYear(), 0, 1 );
      -                if( _d.getDay() < 2 ) break;
      -             }
      -            _r.push( _tmp );
      -        }
      -        return _r;
      -    }
      -    /**
      -     * 取一年中所有的季度, 及其开始结束日期
      -     * @method  seasonOfYear
      -     * @static
      -     * @param   {int}   _year
      -     * @return  Array
      -     */
      -    function seasonOfYear( _year ){
      -        var _r = []
      -            , _year = parseInt( _year, 10 )
      -            ;
      -
      -        _r.push( 
      -                {
      -                    start: pureDate( new Date( _year, 0, 1 ) )
      -                    , end: pureDate( new Date( _year, 2, 31 ) )
      -                    , season: 1
      -                }, {
      -                    start: pureDate( new Date( _year, 3, 1 ) )
      -                    , end: pureDate( new Date( _year, 5, 30 ) )
      -                    , season: 2
      -                }, {
      -                    start: pureDate( new Date( _year, 6, 1 ) )
      -                    , end: pureDate( new Date( _year, 8, 30 ) )
      -                    , season: 3
      -                }, {
      -                    start: pureDate( new Date( _year, 9, 1 ) )
      -                    , end: pureDate( new Date( _year, 11, 31 ) )
      -                    , season: 4
      -                }
      -        );
      -                
      -
      -        return _r;
      -    }
      -
      -    /**
      -     * 取某一天所在星期的开始结束日期,以及第几个星期
      -     * @method  dayOfWeek
      -     * @static
      -     * @param   {iso date}   _date
      -     * @param   {int}        _dayOffset
      -     * @return  Object
      -     */
      -    function dayOfWeek( _date, _dayOffset ) {
      -        var r = {},
      -            weeks = JC.f.weekOfYear(_date.getFullYear(), _dayOffset),
      -            i = 0,
      -            l = weeks.length,
      -            t = _date.getTime(),
      -            start = JC.f.pureDate( new Date() ),
      -            end = JC.f.pureDate( new Date() );
      -
      -        for (i; i <l; i++) {
      -            if (t >= weeks[i].start && t <= weeks[i].end) {
      -                start.setTime(weeks[i].start);
      -                end.setTime(weeks[i].end);
      -                r.start = start;
      -                r.end = end;
      -                r.w = i + 1
      -                return r;
      -            }
      -        }
      -    }
      -
      -    /**
      -     * 取某一天所在季度的开始结束日期,以及第几个Q
      -     * @method  dayOfSeason
      -     * @static
      -     * @param   {iso date}   _date
      -     * @return  Object
      -     */
      -
      -    function dayOfSeason(_date) {
      -        var year = _date.getFullYear(),
      -            q = JC.f.seasonOfYear(year),
      -            i,
      -            r = {},
      -            tmp,
      -            d = _date.getTime();
      -
      -        for (i = 0; i < 4; i++) {
      -            if (d >= q[i].start.getTime() && d <= q[i].end.getTime()) {
      -                r.start = q[i].start;
      -                r.end = q[i].end;
      -                r.q = i + 1;
      -                return r;
      -            }
      -        }
      -
      -    }
      -
      -    /**
      -     * 取得一个月份中最大的一天
      -     * @method  maxDayOfMonth
      -     * @static
      -     * @param   {Date}  _date
      -     * @return {int} 月份中最大的一天
      -     */
      -    function maxDayOfMonth( _date ){
      -        var _r, _d = new Date( _date.getFullYear(), _date.getMonth() + 1 );
      -            _d.setDate( _d.getDate() - 1 );
      -            _r = _d.getDate();
      -        return _r;
      -    }
      -    /**
      -     * 取当前脚本标签的 src路径 
      -     * @method  scriptPath
      -     * @static
      -     * @return  {string} 脚本所在目录的完整路径
      -     */
      -    function scriptPath(){
      -        var _sc = document.getElementsByTagName('script'), _sc = _sc[ _sc.length - 1 ], _path = _sc.getAttribute('src');
      -        if( /\//.test( _path ) ){ _path = _path.split('/'); _path.pop(); _path = _path.join('/') + '/'; }
      -        else if( /\\/.test( _path ) ){ _path = _path.split('\\'); _path.pop(); _path = _path.join('\\') + '/'; }
      -        return _path;
      -    }
      -    /**
      -     * 缓动函数, 动画效果为按时间缓动 
      -     * <br />这个函数只考虑递增, 你如果需要递减的话, 在回调里用 _maxVal - _stepval 
      -     * @method  easyEffect
      -     * @static
      -     * @param   {function}  _cb         缓动运动时的回调
      -     * @param   {number}    _maxVal     缓动的最大值, default = 200
      -     * @param   {number}    _startVal   缓动的起始值, default = 0
      -     * @param   {number}    _duration   缓动的总时间, 单位毫秒, default = 200
      -     * @param   {number}    _stepMs     缓动的间隔, 单位毫秒, default = 2
      -     * @return  interval
      -     * @example
      -            $(document).ready(function(){
      -                window.js_output = $('span.js_output');
      -                window.ls = [];
      -                window.EFF_INTERVAL = easyEffect( effectcallback, 100);
      -            });
      -
      -            function effectcallback( _stepval, _done ){
      -                js_output.html( _stepval );
      -                ls.push( _stepval );
      -
      -                !_done && js_output.html( _stepval );
      -                _done && js_output.html( _stepval + '<br />' + ls.join() );
      -            }
      -     */
      -    function easyEffect( _cb, _maxVal, _startVal, _duration, _stepMs ){
      -        var _beginDate = new Date(), _timepass
      -            , _maxVal = _maxVal || 200
      -            , _startVal = _startVal || 0
      -            , _maxVal = _maxVal - _startVal 
      -            , _tmp = 0
      -            , _done
      -            , _duration = _duration || 200
      -            , _stepMs = _stepMs || 2
      -            ;
      -        //JC.log( '_maxVal:', _maxVal, '_startVal:', _startVal, '_duration:', _duration, '_stepMs:', _stepMs );
      -
      -        var _interval = setInterval(
      -            function(){
      -                _timepass = new Date() - _beginDate;
      -                _tmp = _timepass / _duration * _maxVal;
      -                _tmp;
      -                if( _tmp >= _maxVal ){
      -                    _tmp = _maxVal;
      -                    _done = true;
      -                    clearInterval( _interval );
      -                }
      -                cb && _cb( _tmp + _startVal, _done, _timepass, _duration, _stepMs, _startVal, _maxVal );
      -
      -            }, _stepMs );
      -
      -        return _interval;
      -    }
      -    /**
      -     * 把输入值转换为布尔值
      -     * @method parseBool
      -     * @param   {*} _input
      -     * @return bool
      -     * @static
      -     */
      -    function parseBool( _input ){
      -        if( typeof _input == 'string' ){
      -            _input = _input.replace( /[\s]/g, '' ).toLowerCase();
      -            if( _input && ( _input == 'false' 
      -                            || _input == '0' 
      -                            || _input == 'null'
      -                            || _input == 'undefined'
      -           )) _input = false;
      -           else if( _input ) _input = true;
      -        }
      -        return !!_input;
      -    }
      -    /**
      -     * 绑定或清除 mousewheel 事件
      -     * @method  mousewheelEvent
      -     * @param   {function}  _cb
      -     * @param   {bool}      _detach
      -     * @param   {selector}  _selector  default = document
      -     * @static
      -     */
      -    function mousewheelEvent( _cb, _detach, _selector ){
      -        _selector = _selector || document;
      -        var _evt =  (/Firefox/i.test(navigator.userAgent))
      -            ? "DOMMouseScroll" 
      -            : "mousewheel"
      -            ;
      -        _selector.attachEvent && ( _evt = 'on' + _evt );
      -
      -        if( _detach ){
      -            _selector.detachEvent && document.detachEvent( _evt, _cb )
      -            _selector.removeEventListener && document.removeEventListener( _evt, _cb );
      -        }else{
      -            _selector.attachEvent && document.attachEvent( _evt, _cb )
      -            _selector.addEventListener && document.addEventListener( _evt, _cb );
      -        }
      -    }
      -    /**
      -     * 获取 selector 的指定父级标签
      -     * @method  getJqParent
      -     * @param   {selector}  _selector
      -     * @param   {selector}  _filter
      -     * @return selector
      -     * @require jquery
      -     * @static
      -     */
      -    function getJqParent( _selector, _filter ){
      -        _selector = $(_selector);
      -        var _r;
      -
      -        if( _filter ){
      -            while( (_selector = _selector.parent()).length ){
      -                if( _selector.is( _filter ) ){
      -                    _r = _selector;
      -                    break;
      -                }
      -            }
      -        }else{
      -            _r = _selector.parent();
      -        }
      -
      -        return _r;
      -    }
      -    /**
      -     * 扩展 jquery 选择器
      -     * <br />扩展起始字符的 '/' 符号为 jquery 父节点选择器
      -     * <br />扩展起始字符的 '|' 符号为 jquery 子节点选择器
      -     * <br />扩展起始字符的 '(' 符号为 jquery 父节点查找识别符( getJqParent )
      -     * @method  parentSelector
      -     * @param   {selector}  _item
      -     * @param   {String}    _selector
      -     * @param   {selector}  _finder
      -     * @return  selector
      -     * @require jquery
      -     * @static
      -     */
      -    function parentSelector( _item, _selector, _finder ){
      -        _item && ( _item = $( _item ) );
      -        if( /\,/.test( _selector ) ){
      -            var _multiSelector = [], _tmp;
      -            _selector = _selector.split(',');
      -            $.each( _selector, function( _ix, _subSelector ){
      -                _subSelector = _subSelector.trim();
      -                _tmp = parentSelector( _item, _subSelector, _finder );
      -                _tmp && _tmp.length 
      -                    &&  ( 
      -                            ( _tmp.each( function(){ _multiSelector.push( $(this) ) } ) )
      -                        );
      -            });
      -            return $( _multiSelector );
      -        }
      -        var _pntChildRe = /^([\/]+)/, _childRe = /^([\|]+)/, _pntRe = /^([<\(]+)/;
      -        if( _pntChildRe.test( _selector ) ){
      -            _selector = _selector.replace( _pntChildRe, function( $0, $1 ){
      -                for( var i = 0, j = $1.length; i < j; i++ ){
      -                    _item = _item.parent();
      -                }
      -                _finder = _item;
      -                return '';
      -            });
      -            _selector = _selector.trim();
      -            return _selector ? _finder.find( _selector ) : _finder;
      -        }else if( _childRe.test( _selector ) ){
      -            _selector = _selector.replace( _childRe, function( $0, $1 ){
      -                for( var i = 1, j = $1.length; i < j; i++ ){
      -                    _item = _item.parent();
      -                }
      -                _finder = _item;
      -                return '';
      -            });
      -            _selector = _selector.trim();
      -            return _selector ? _finder.find( _selector ) : _finder;
      -        }else if( _pntRe.test( _selector ) ){
      -            _selector = _selector.replace( _pntRe, '' ).trim();
      -            if( _selector ){
      -                if( /[\s]/.test( _selector ) ){
      -                    var _r;
      -                    _selector.replace( /^([^\s]+)([\s\S]+)/, function( $0, $1, $2 ){
      -                        _r = getJqParent( _item, $1 ).find( $2.trim() );
      -                    });
      -                    return _r || _selector;
      -                }else{
      -                    return getJqParent( _item, _selector );
      -                }
      -            }else{
      -                return _item.parent();
      -            }
      -        }else{
      -            return _finder ? _finder.find( _selector ) : jQuery( _selector );
      -        }
      -    }
      -    /**
      -     * 获取脚本模板的内容
      -     * @method  scriptContent
      -     * @param   {selector}  _selector
      -     * @return  string
      -     * @static
      -     */
      -    function scriptContent( _selector ){
      -        var _r = '';
      -        _selector 
      -            && ( _selector = $( _selector ) ).length 
      -            && ( _r = _selector.html().trim().replace( /[\r\n]/g, '') )
      -            ;
      -        return _r;
      -    }
      -    /**
      -     * 取函数名 ( 匿名函数返回空 )
      -     * @method  funcName
      -     * @param   {function}  _func
      -     * @return  string
      -     * @static
      -     */
      -    function funcName(_func){
      -      var _re = /^function\s+([^()]+)[\s\S]*/
      -          , _r = ''
      -          , _fStr = _func.toString();    
      -      //JC.log( _fStr );
      -      _re.test( _fStr ) && ( _r = _fStr.replace( _re, '$1' ) );
      -      return _r.trim();
      -    }
      -    /**
      -     * 动态添加内容时, 初始化可识别的组件
      -     * <dl>
      -     *      <dt>目前会自动识别的组件</dt>
      -     *      <dd>
      -     *          Bizs.CommonModify, JC.Panel, JC.Dialog
      -     *          <br /><b>自动识别的组件不用显式调用  jcAutoInitComps 去识别可识别的组件</b>
      -     *      </dd>
      -     * </d>
      -     * <dl>
      -     *      <dt>可识别的组件</dt>
      -     *      <dd>
      -     *          JC.AutoSelect, JC.AutoChecked, JC.AjaxUpload, JC.Calendar
      -     *          , JC.Drag, JC.DCalendar, JC.Placeholder, JC.TableFreeze, JC.ImageCutter, JC.Tab
      -     *          <br />Bizs.DisableLogic, Bizs.FormLogic, Bizs.MoneyTips, Bizs.AutoSelectComplete
      -     *      </dd>
      -     * </d>
      -     * @method  jcAutoInitComps
      -     * @param   {selector}  _selector
      -     * @static
      -     */
      -    function jcAutoInitComps( _selector ){
      -        _selector = $( _selector || document );
      -        
      -        if( !( _selector && _selector.length && window.JC ) ) return;
      -        /**
      -         * 联动下拉框
      -         */
      -        JC.AutoSelect && JC.AutoSelect( _selector );
      -        /**
      -         * 日历组件
      -         */
      -        JC.Calendar && JC.Calendar.initTrigger( _selector );
      -        /**
      -         * 双日历组件
      -         */
      -        JC.DCalendar && JC.DCalendar.init && JC.DCalendar.init( _selector );
      -        /**
      -         * 全选反选
      -         */
      -        JC.AutoChecked && JC.AutoChecked( _selector );
      -        /**
      -         * Ajax 上传
      -         */
      -        JC.AjaxUpload && JC.AjaxUpload.init( _selector );
      -        /**
      -         * 占位符
      -         */
      -        JC.Placeholder && JC.Placeholder.init( _selector );
      -        /**
      -         * 表格冻结
      -         */
      -        JC.TableFreeze && JC.TableFreeze.init( _selector );
      -        /**
      -         * 拖曳
      -         */
      -        JC.Drag && JC.Drag.init( _selector );
      -        /**
      -         * 图片裁切
      -         */
      -        JC.ImageCutter && JC.ImageCutter.init( _selector );
      -
      -        JC.Tab && JC.Tab.init && JC.Tab.init( _selector );
      -
      -        if( !window.Bizs ) return;
      -        /**
      -         * disable / enable
      -         */
      -        Bizs.DisableLogic && Bizs.DisableLogic.init( _selector );
      -        /**
      -         * 表单提交逻辑
      -         */
      -        Bizs.FormLogic && Bizs.FormLogic.init( _selector );
      -        /**
      -         * 格式化金额
      -         */
      -        Bizs.MoneyTips && Bizs.MoneyTips.init( _selector );
      -        /**
      -         * 自动完成
      -         */
      -        Bizs.AutoSelectComplete && Bizs.AutoSelectComplete.init( _selector );
      -
      -        Bizs.InputSelect && Bizs.InputSelect.init( _selector );
      -
      -        /**
      -         *排期日期展示
      -        */
      -        Bizs.TaskViewer && Bizs.TaskViewer.init(_selector);
      -    }
      -    /**
      -     * URL 占位符识别功能
      -     * <br /><b>require:</b> addUrlParams, filterXSS
      -     * @method  urlDetect
      -     * @param   {String}    _url    如果 起始字符为 URL, 那么 URL 将祝为本页的URL
      -     * @return  string
      -     * @static
      -     * @example
      -     *      urlDetect( '?test' ); //output: ?test
      -     *
      -     *      urlDetect( 'URL,a=1&b=2' ); //output: your.com?a=1&b=2
      -     *      urlDetect( 'URL,a=1,b=2' ); //output: your.com?a=1&b=2
      -     *      urlDetect( 'URLa=1&b=2' ); //output: your.com?a=1&b=2
      -     */
      -    function urlDetect( _url ){
      -        _url = _url || '';
      -        var _r = _url, _tmp, i, j, _items;
      -        if( /^URL/.test( _url ) ){
      -            _tmp = _url.replace( /^URL/, '' ).replace( /[\s]*,[\s]*/g, ',' ).trim().split(',');
      -            _url = location.href;
      -            var _d = {}, _concat = [];
      -            if( _tmp.length ){
      -                for( i = 0, j = _tmp.length; i < j; i ++ ){
      -                     /\&/.test( _tmp[i] )
      -                         ? ( _concat = _concat.concat( _tmp[i].split('&') ) )
      -                         : ( _concat = _concat.concat( _tmp[i] ) )
      -                         ;
      -                }
      -                _tmp = _concat;
      -            }
      -            for( i = 0, j = _tmp.length; i < j; i++ ){
      -                _items = _tmp[i].replace(/[\s]+/g, '').split( '=' );
      -                if( !_items[0] ) continue;
      -                _d[ _items[0] ] = _items[1] || '';
      -            }
      -            _url = addUrlParams( _url, _d );
      -            _r = _url;
      -        }
      -        _r = filterXSS( _url );
      -        return _r;
      -    }
      -    /**
      -     * 日期占位符识别功能
      -     * @method  dateDetect
      -     * @param   {String}    _dateStr    如果起始字符为 NOW, 那么将视为当前日期
      -     *                                  , 如果起始字符为 NOWFirst, 那么将视为当前月的1号
      -     * @return  {date|null}
      -     * @static
      -     * @example
      -     *      dateDetect( 'now' ); //2014-10-02
      -     *      dateDetect( 'now,3d' ); //2013-10-05
      -     *      dateDetect( 'now,-3d' ); //2013-09-29
      -     *      dateDetect( 'now,2w' ); //2013-10-16
      -     *      dateDetect( 'now,-2m' ); //2013-08-02
      -     *      dateDetect( 'now,4y' ); //2017-10-02
      -     *
      -     *      dateDetect( 'now,1d,1w,1m,1y' ); //2014-11-10
      -     */
      -    function dateDetect( _dateStr ){
      -        var _r = null   
      -            , _re = /^now/i
      -            , _nowFirstRe = /^nowfirst/
      -            , _dateRe = /^([\d]{8}|[\d]{4}.[\d]{2}.[\d]{2})/
      -            , _d, _ar, _item
      -            ;
      -        if( _dateStr && typeof _dateStr == 'string' ){
      -            if( _re.test( _dateStr ) || _nowFirstRe.test( _dateStr ) || _dateRe.test( _dateStr ) ){
      -                _d = new Date();
      -                if( _nowFirstRe.test(_dateStr ) ){
      -                    _d.setDate( 1 );
      -                }
      -                if( _dateRe.test( _dateStr ) ){
      -                    _d = JC.f.parseISODate( _dateStr.replace( /[^\d]/g, '' ).slice( 0, 8 ) );
      -                    _dateStr = _dateStr.replace( _dateRe, '' );
      -                }
      -                _dateStr = _dateStr.replace( _re, '' ).replace(/[\s]+/g, '');
      -                _ar = _dateStr.split(',');
      -
      -                var _red = /d$/i
      -                    , _rew = /w$/i
      -                    , _rem = /m$/i
      -                    , _rey = /y$/i
      -                    ;
      -                for( var i = 0, j = _ar.length; i < j; i++ ){
      -                    _item = _ar[i] || '';
      -                    if( !_item ) continue;
      -                    _item = _item.replace( /[^\-\ddwmy]+/gi, '' );
      -
      -                    if( _red.test( _item ) ){
      -                        _item = parseInt( _item.replace( _red, '' ), 10 );
      -                        _item && _d.setDate( _d.getDate() + _item );
      -                    }else if( _rew.test( _item ) ){
      -                        _item = parseInt( _item.replace( _rew, '' ), 10 );
      -                        _item && _d.setDate( _d.getDate() + _item * 7 );
      -                    }else if( _rem.test( _item ) ){
      -                        _item = parseInt( _item.replace( _rem, '' ), 10 );
      -                        _item && _d.setMonth( _d.getMonth() + _item );
      -                    }else if( _rey.test( _item ) ){
      -                        _item = parseInt( _item.replace( _rey, '' ), 10 );
      -                        _item && _d.setFullYear( _d.getFullYear() + _item );
      -                    }
      -                }
      -                _r = _d;
      -            }else{
      -                _r = parseISODate( _dateStr );
      -            }
      -        }
      -        return _r;
      -    }
      -    ;(function(){
      -        /**
      -         * inject jquery val func, for hidden change event
      -         */
      -        if( !window.jQuery ) return;
      -        var _oldVal = $.fn.val;
      -        $.fn.val = 
      -            function(){
      -                var _r = _oldVal.apply( this, arguments ), _p = this;
      -                if( 
      -                    arguments.length
      -                    && ( this.prop('nodeName') || '').toLowerCase() == 'input' 
      -                    && ( this.attr('type') || '' ).toLowerCase() == 'hidden'
      -                ){
      -                    setTimeout( function(){ _p.trigger( 'change' ); }, 1 );
      -                }
      -                return _r;
      -            };
      -    }());
      -    /**
      -     * 逗号格式化金额
      -     * @method  moneyFormat
      -     * @param   {int|string}    _number
      -     * @param   {int}           _len
      -     * @param   {int}           _floatLen
      -     * @param   {int}           _splitSymbol
      -     * @return  string
      -     * @static
      -     */
      -    function moneyFormat(_number, _len, _floatLen, _splitSymbol){
      -        var _def = '0.00';
      -        !_len && ( _len = 3 );
      -        typeof _floatLen == 'undefined' && ( _floatLen = 2 );
      -        !_splitSymbol && ( _splitSymbol = ',' );
      -        var _isNegative = false, _r;
      -
      -        typeof _number == 'number' && ( _number = parseFinance( _number, _floatLen ) );
      -        if( typeof _number == 'string' ){
      -            _number = _number.replace( /[,]/g, '' );
      -            if( !/^[\d\.]+$/.test( _number ) ) return _def;
      -            if( _number.split('.').length > 2 ) return _def;
      -        }
      -
      -        _number = _number || 0;
      -        _number += ''; 
      -
      -        /^\-/.test( _number ) && ( _isNegative = true );
      -
      -        _number = _number.replace( /[^\d\.]/g, '' );
      -
      -        var _parts = _number.split('.'), _sparts = [];
      -
      -        while( _parts[0].length > _len ){
      -            var _tmp = _parts[0].slice( _parts[0].length - _len, _parts[0].length );
      -            //console.log( _tmp );
      -            _sparts.push( _tmp );
      -            _parts[0] = _parts[0].slice( 0, _parts[0].length - _len );
      -        }
      -        _sparts.push( _parts[0] );
      -
      -        _parts[0] = _sparts.reverse().join( _splitSymbol );
      -
      -        if( _floatLen ){
      -            !_parts[1] && ( _parts[1] = '' );
      -            _parts[1] += new Array( _floatLen + 1 ).join('0');
      -            _parts[1] = _parts[1].slice( 0, _floatLen );
      -        }else{
      -            _parts.length > 1 && _parts.pop();
      -        }
      -        _r = _parts.join('.');
      -        _isNegative && ( _r = '-' + _r );
      -
      -        return _r;
      -    }
      -    /**
      -     * 日期格式化 (具体格式请查看 PHP Date Formats)
      -     * @method  dateFormat
      -     * @param   {date}    _date     default = now
      -     * @param   {string}  _format   default = "YY-MM-DD"
      -     * @return  string
      -     * @static
      -     */
      -    function dateFormat( _date, _format ){
      -        typeof _date == 'string' && ( _format = _date, _date = new Date() );
      -        !_date && ( _date = new Date() );
      -        !_format && ( _format = 'YY-MM-DD' );
      -        var _r = _format, _tmp
      -            , _monthName = [ 'january', 'february', 'march', 'april', 'may', 'june'
      -                            , 'july', 'august', 'september', 'october', 'november', 'december' ] 
      -            , _monthShortName = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec' ]
      -            ;
      -
      -        _r = _r
      -            .replace( /YY/g, _date.getFullYear() )
      -            .replace( /WK/g, function(){
      -                var _r = 1, _offset = 0, _weeks;
      -
      -                JC.Calendar && ( _offset = JC.Calendar.weekDayOffset );
      -
      -                _weeks = weekOfYear( _date.getFullYear(), JC.Calendar.weekDayOffset );
      -
      -                $( _weeks ).each( function( _ix, _item ){
      -                    if( _date.getTime() >= _item.start && _date.getTime() <= _item.end ){
      -                        _r = _item.week;
      -                        return false;
      -                    }
      -                });
      -
      -                return _r;
      -            })
      -            .replace( /YQ/g, function(){
      -                var _r = 1, _offset = 0, _seasons;
      -
      -                _seasons = seasonOfYear( _date.getFullYear() );
      -
      -                $( _seasons ).each( function( _ix, _item ){
      -                    if( _date.getTime() >= _item.start && _date.getTime() <= _item.end ){
      -                        _r = _item.season;
      -                        return false;
      -                    }
      -                });
      -
      -                return _r;
      -            })
      -            .replace( /MM/g, padChar( _date.getMonth() + 1 ) )
      -            .replace( /DD/g, padChar( _date.getDate() ) )
      -
      -            .replace( /yy/g, function( $0 ){
      -                _tmp = padChar( _date.getYear() );
      -                //JC.log( _date.getYear(), _tmp.slice( _tmp.length - 2 ) );
      -                return _tmp.slice( _tmp.length - 2 );
      -            })
      -            .replace( /mm/g, _date.getMonth() + 1 )
      -            .replace( /dd/g, _date.getDate() )
      -            .replace( /d/g, _date.getDate() )
      -
      -            .replace( /y/g, _date.getFullYear() )
      -
      -            .replace( /m/g, function( $0 ){
      -                return _monthName[ _date.getMonth() ];          
      -            })
      -
      -            .replace( /M/g, function( $0 ){
      -                return _monthShortName[ _date.getMonth() ];          
      -            })
      -            .replace( /HH/g, padChar( _date.getHours() ) )
      -            .replace( /h/g, _date.getHours() )
      -            .replace( /NN/g, padChar( _date.getMinutes() ) )
      -            .replace( /n/g, _date.getMinutes() )
      -            .replace( /SS/g, padChar( _date.getSeconds() ) )
      -            .replace( /s/g, _date.getSeconds() )
      -            ;
      -
      -        return _r;
      -    }
      -    /**
      -     * 扩展对象属性
      -     * @method  extendObject
      -     * @param   {object}    _source
      -     * @param   {object}    _new
      -     * @param   {bool}      _overwrite      是否覆盖已有属性, default = true  
      -     * @return  object
      -     * @static
      -     */
      -    function extendObject( _source, _new, _overwrite ){
      -        typeof _overwrite == 'undefined' && ( _overwrite = true );
      -        if( _source && _new ){
      -            for( var k in _new ){
      -                if( _overwrite ){
      -                    _source[ k ] = _new[ k ];
      -                }else if( !( k in _source ) ){
      -                    _source[ k ] = _new[ k ];
      -                }
      -            }
      -        }
      -        return _source;
      -    }
      -    /**
      -     * timeout 控制逻辑, 避免相同功能的 setTimeout 重复执行
      -     * @method  safeTimeout
      -     * @param   {timeout|function}  _timeout
      -     * @param   {object}            _obj    default = window.TIMEOUT_HOST || {}
      -     * @param   {string}            _name   default = 'NORMAL'
      -     * @param   {int}               _ms     default = 50
      -     * @return  object
      -     * @static
      -     */
      -    function safeTimeout( _timeout, _obj, _name, _ms ){
      -        if( typeof _timeout == 'undefined' ) return;
      -        _obj = $( _obj || ( window.TIMEOUT_HOST = window.TIMEOUT_HOST || {} ) );
      -        _name = _name || 'NORMAL';
      -
      -        typeof _timeout == 'function'
      -            && ( _timeout = setTimeout( _timeout, _ms || 50 ) );
      -
      -        _obj.data( _name ) && clearTimeout( _obj.data( _name ) );
      -        _obj.data( _name, _timeout );
      -    }
      -    /**
      -     * URL 请求时, 获取对URL参数进行编码的函数
      -     * @method  encoder
      -     * @param   {selector}  _selector
      -     * @return  {encode function}   default encodeURIComponent
      -     * @static
      -     */
      -    function encoder( _selector ){
      -        _selector && ( _selector = $( _selector ) );
      -        var _r;
      -        if( _selector && _selector.length ){
      -            _r =_selector.attr( 'validEncoder' ) || 'encodeURIComponent';
      -            _r = window[ _r ] || encodeURIComponent;
      -        }else{
      -            _r = encodeURIComponent;
      -        }
      -        return _r;
      -    }
      -    /**
      -     * 深度克隆对象
      -     * @method  cloneObject
      -     * @param   {Object}    _inObj
      -     * @return  Object
      -     * @static
      -     */
      -    function cloneObject( _inObj, _outObj ){
      -        _outObj = _outObj || {};
      -        var k, i, j;
      -
      -        for( k in _inObj ){
      -            _outObj[ k ] = _inObj[ k ];
      -            switch( Object.prototype.toString.call( _outObj[ k ] ) ){
      -
      -                case '[object Object]': {
      -                      _outObj[ k ] = _outObj[ k ].constructor === Object
      -                        ?  cloneObject( _outObj[ k ] )
      -                        :  _outObj[ k ]
      -                        ;
      -                    break;
      -                }
      -
      -                case '[object Array]': {
      -                    _outObj[ k ] = _inObj[ k ].slice();
      -                    for( i = 0, j = _outObj[ k ].length; i < j; i++ ){
      -                        if( Object.prototype.toString.call( _outObj[ k ][i] ) == '[object Object]' )
      -                            _outObj[ k ][ i ] = cloneObject( _outObj[ k ][ i ] );
      -                    }
      -                    break;
      -                }
      -
      -                case '[object Date]': {
      -                    _outObj[ k ] = new Date(); _outObj[ k ].setTime( _inObj[ k ].getTime() );
      -                    break;
      -                }
      -
      -                default: _outObj[ k ] = _inObj[ k ];
      -            }
      -        }
      -
      -        return _outObj;
      -    }
      -    /**
      -     * 获取 document 的 相关大小
      -     * @method  docSize
      -     * @param   {document}    _doc
      -     * @return  Object
      -     * @static
      -     */
      -    function docSize( _doc ){
      -        _doc = _doc || document;
      -        var _r = {
      -            width: 0, height: 0, docWidth: 0, docHeight: 0, bodyWidth: 0, bodyHeight: 0, scrollWidth: 0, scrollHeight: 0
      -        };
      -
      -        _r.docWidth = _doc.documentElement.offsetWidth;
      -        _r.docHeight = _doc.documentElement.offsetHeight;
      -
      -        _doc.body && (
      -            _r.bodyWidth = _doc.body.offsetWidth
      -            , _r.bodyHeight = _doc.body.offsetHeight
      -        );
      -
      -        _r.scrollWidth = _doc.documentElement.scrollWidth
      -        _r.scrollHeight = _doc.documentElement.scrollHeight
      -
      -        _r.width = Math.max( _r.docWidth, _r.bodyWidth, _r.scrollHeight );
      -        _r.height = Math.max( _r.docHeight, _r.bodyHeight, _r.scrollHeight );
      -
      -        return _r;
      -    }
      -    /**
      -     * 获取 window 的 相关大小
      -     * @method  winSize
      -     * @param   {window}    _win,  default = window
      -     * @return  Object
      -     * @static
      -     */
      -    function winSize( _win ){
      -        _win = $( _win || window );
      -        var _r = {
      -                width: _win.width()
      -                , height: _win.height()
      -                , scrollLeft: _win.scrollLeft()
      -                , scrollTop: _win.scrollTop()
      -            };
      -        _r.viewportX = _r.scrollLeft;
      -        _r.maxViewportX = _r.scrollLeft + _r.width;
      -        _r.viewportY = _r.scrollTop;
      -        _r.maxViewportY = _r.scrollTop + _r.height;
      -        return _r;
      -    }
      -
      -    return JC.f;
      -
      -});}( typeof define === 'function' && define.amd ? define : 
      -        function ( _name, _require, _cb) { 
      -            typeof _name == 'function' && ( _cb = _name );
      -            typeof _require == 'function' && ( _cb = _require ); 
      -            _cb && _cb(); 
      -        }
      -        , window
      -    )
      -);
      -
      -    
      -
      - -
      -
      -
      -
      -
      -
      - - - - - - - - - - diff --git a/docs_api/files/.._modules_JC.common_0.3_common.js.html b/docs_api/files/.._modules_JC.common_0.3_common.js.html deleted file mode 100644 index ddc3716..0000000 --- a/docs_api/files/.._modules_JC.common_0.3_common.js.html +++ /dev/null @@ -1,1812 +0,0 @@ - - - - - ../modules/JC.common/0.3/common.js - FChart - - - - - - - - - - - - - - -
      -
      -
      - -

      - -
      -
      - API Docs for: 0.2 -
      -
      -
      - -
      - -
      -
      -
      - Show: - - - - - - - -
      - - -
      -
      -
      -

      File: ../modules/JC.common/0.3/common.js

      - -
      -
      -;(function(define, _win) { 'use strict'; define( 'JC.common', [], function(){
      -    window.JWIN = window.JWIN || $( window );
      -    window.JDOC = window.JDOC || $( document );
      -    /**
      -     * 如果 console 不可用, 生成一个模拟的 console 对象
      -     */
      -    !window.console && ( window.console = { 
      -        log: function(){ window.status = sliceArgs( arguments ).join(' '); }
      -    });
      -    !console.dir && (
      -        console.dir = function(){}
      -    );
      -    !console.error && (
      -        console.error = function(){}
      -    );
      -    /**
      -     * 声明主要命名空间, 方便迁移
      -     */
      -    window.JC = window.JC || {};
      -    JC.log = function(){ JC.debug && console.log( sliceArgs( arguments ).join(' ') ); };
      -    JC.dir = function(){ 
      -        JC.debug && $.each( sliceArgs( arguments ), function( _ix, _item ){ console.dir( _item )} );
      -    };
      -    JC.error = function(){ 
      -        JC.debug && $.each( sliceArgs( arguments ), function( _ix, _item ){ console.error( _item )} );
      -    };
      -    JC.clear = function(){ 
      -        console.clear && console.clear();
      -    };
      -
      -    JC.PATH = JC.PATH || scriptPath();
      -
      -    window.Bizs = window.Bizs || {};
      -    /**
      -     * JC.f 是 JC.common 的别名
      -     * <br />具体使用请见 <a href='JC.common.html'>JC.common</a></p>
      -     * @class JC.f
      -     * @static
      -     */
      -    /**
      -     * JC 组件通用静态方法和属性 ( JC.common, <b>别名: JC.f</b> )
      -     * <br />所有 JC 组件都会依赖这个静态类
      -     * <p><b>require</b>: <a href='window.jQuery.html'>jQuery</a></p>
      -     * <p><a href='https://github.com/openjavascript/jquerycomps' target='_blank'>JC Project Site</a>
      -     * | <a href='http://jc2.openjavascript.org/docs_api/classes/JC.common.html' target='_blank'>API docs</a>
      -     * | <a href='../../modules/JC.common/0.3/_demo/' target='_blank'>demo link</a></p>
      -     * @class JC.common
      -     * @static
      -     * @version dev 0.3 2014-12-09
      -     * @version dev 0.2 2013-11-06 
      -     * @version dev 0.1 2013-07-04
      -     * @author  qiushaowei   <suches@btbtd.org> | 360 75 Team
      -     */
      -    JC.common = JC.f = {
      -        "addUrlParams": addUrlParams
      -        , "cloneDate": cloneDate
      -        , "dateDetect": dateDetect
      -        , "delUrlParam": delUrlParam
      -        , "delUrlParams": delUrlParams
      -        , "easyEffect": easyEffect
      -        , "filterXSS": filterXSS
      -        , "formatISODate": formatISODate
      -        , "funcName": funcName
      -        , "getJqParent": getJqParent
      -
      -        , "getUrlParam": getUrlParam
      -        , "getUrlParams": getUrlParams
      -        , "hasUrlParam": hasUrlParam
      -        , 'urlHostName': urlHostName
      -        , "httpRequire": httpRequire
      -        , "isSameDay": isSameDay
      -        , "isSameWeek": isSameWeek
      -        , "isSameMonth": isSameMonth
      -        , "isSameSeason": isSameSeason
      -        , "isSameYear": isSameYear
      -        , "weekOfYear": weekOfYear
      -        , "seasonOfYear": seasonOfYear
      -        , "dayOfWeek": dayOfWeek
      -        , "dayOfSeason": dayOfSeason
      -        , "jcAutoInitComps": autoInit
      -
      -        , "autoInit": autoInit
      -        , "addAutoInit": addAutoInit
      -        /**
      -         * 保存需要自动识别的组件
      -         * @property    _AUTO_INIT_DATA
      -         * @type Object
      -         * @protected
      -         */
      -        , "_AUTO_INIT_DATA": {}
      -
      -        , "maxDayOfMonth": maxDayOfMonth
      -        , "mousewheelEvent": mousewheelEvent
      -        , "padChar": padChar
      -        , "parentSelector": parentSelector
      -        , "parseBool": parseBool
      -        , "parseFinance": parseFinance
      -        , "parseISODate": parseISODate
      -        , "parseDate": parseDate
      -        , "printf": printf
      -        , "printKey": printKey
      -        , "cloneObject": cloneObject
      -
      -        , "pureDate": pureDate
      -        , "reloadPage": reloadPage
      -        , "removeUrlSharp": removeUrlSharp
      -        , "relativePath": relativePath
      -        , "scriptContent": scriptContent
      -        , "scriptPath": scriptPath
      -        , "sliceArgs": sliceArgs
      -        , "urlDetect": urlDetect
      -        , "moneyFormat": moneyFormat
      -        , "dateFormat": dateFormat
      -        , "extendObject": extendObject
      -        , "safeTimeout": safeTimeout
      -        , "encoder": encoder
      -        , "fixPath": fixPath
      -        , "arrayId": arrayId
      -        , "docSize": docSize
      -        , "winSize": winSize
      -        , "gid": gid
      -
      -        /**
      -         * 判断 JC.common 是否需要向后兼容, 如果需要的话, 向 window 添加全局静态函数
      -         */
      -        , "backward":
      -            function( _setter ){
      -                if( window.JC_BACKWARD || _setter ){
      -                    for( var k in JC.common ){
      -                        if( k == 'backward' ) continue;
      -                        window[ k ] = window[ k ] || JC.common[ k ];
      -                    }
      -                }
      -            }
      -        , "has_url_param": hasUrlParam
      -        , "add_url_params": addUrlParams
      -        , "get_url_param": getUrlParam
      -        , "del_url_param": delUrlParam
      -        , "reload_page": reloadPage
      -        , "parse_finance_num": parseFinance
      -        , "pad_char_f": padChar
      -        , "script_path_f": scriptPath
      -        , "ts": function(){ return new Date().getTime(); }
      -    };
      -    JC.f.backward();
      -    /**
      -     * jquery 1.9.1 默认 string 没有 trim 方法, 这里对 string 原型添加一个默认的 trim 方法
      -     */
      -    !String.prototype.trim && ( String.prototype.trim = function(){ return $.trim( this ); } );
      -    /**
      -     * 兼容 低版本 ie Array 的 indexOf 方法
      -     */
      -    !Array.prototype.indexOf 
      -        && ( Array.prototype.indexOf =
      -            function( _v ){
      -                var _r = -1;
      -                $.each( this, function( _ix, _item ){
      -                    if( _item == _v ){
      -                        _r = _ix;
      -                        return false;
      -                    }
      -                });
      -                return _r;
      -            });
      -
      -    !Array.prototype.first 
      -        && ( Array.prototype.first = 
      -            function(){
      -                var _r;
      -                this.length && ( _r = this[0] );
      -                return _r;
      -        });
      -
      -    !Array.prototype.last
      -        && ( Array.prototype.last = 
      -            function(){
      -                var _r;
      -                this.length && ( _r = this[ this.length - 1] );
      -                return _r;
      -        });
      -
      -    /**
      -     * 全局 css z-index 控制属性
      -     * <br /> <b>注意</b>: 这个变量是 window.ZINDEX_COUNT
      -     * @property    ZINDEX_COUNT
      -     * @type        int
      -     * @default     50001
      -     * @static
      -     */
      -    window.ZINDEX_COUNT = window.ZINDEX_COUNT || 50001;
      -
      -    function fixPath( _url ){
      -        if( /\\/.test( _url ) ){
      -            _url = _url.replace( /[\\]+/g, '\\' );
      -        }else{
      -            _url = _url.replace( /[\/]+/g, '/' );
      -        }
      -        return _url;
      -    }
      -    /**
      -     * 一维数组去重
      -     * @method  arrayId
      -     * @param   {Array}     _ar
      -     * @return Array
      -     * @static
      -     */
      -    function arrayId( _ar ){
      -        var _r = [], _k = {};
      -        
      -        for( var i = 0, j = _ar.length; i < j; i++ ){
      -            if( !(_ar[i] in _k) ){
      -                _r.push( _ar[i] );
      -                _k[ _ar[i] ] = _ar[i];
      -            }
      -        }
      -        
      -        return _r;
      -    }
      -    /**
      -     * 生成全局唯一ID
      -     * @method  gid
      -     * @return string
      -     * @static
      -     */
      -    function gid(){
      -        return 'jc_gid_' + JC.f.ts() + '_' + (JC.GID_COUNT++);
      -    }
      -    JC.GID_COUNT = 1;
      -
      -    /**
      -     * 把函数的参数转为数组
      -     * @method  sliceArgs
      -     * @param   {arguments}     args
      -     * @return Array
      -     * @static
      -     */
      -    function sliceArgs( _arg ){
      -        var _r = [], _i, _len;
      -        for( _i = 0, _len = _arg.length; _i < _len; _i++){
      -            _r.push( _arg[_i] );
      -        }
      -        return _r;
      -    }
      -    /**
      -     * 取 URL 的 host name
      -     * @method  urlHostName
      -     * @param   {string}    _url
      -     * @return  string
      -     * @static
      -     */
      -    function urlHostName( _url ){
      -        var _r = '', _url = _url || location.href;
      -        if( /\:\/\//.test( _url ) ){
      -            _url.replace( /^.*?\:\/\/([^\/]+)/, function( $0, $1 ){
      -                _r = $1;
      -            });
      -        }
      -        return _r;
      -    }
      -    /**
      -     * 把 URL 相对路径 转换为 绝对路径
      -     * @method  relativePath
      -     * @param   {string}    _path
      -     * @param   {string}    _url
      -     * @return  string
      -     * @static
      -     */
      -    function relativePath( _path, _url ){
      -        _url = _url || document.URL;
      -        _url = _url.replace(/^.*?\:\/\/[^\/]+/, "").replace(/[^\/]+$/, "");
      -        if(!_path){return _url;}  
      -        if(!/\/$/.test(_url)){_url += "/";}
      -
      -        if(/(^\.\.\/|^\.\/)/.test(_path)){
      -            var Re = new RegExp("^\\.\\.\\/"), iCount = 0;    
      -            while(Re.exec(_path)!=null){
      -                _path = _path.replace(Re, "");
      -                iCount++;
      -            }       
      -            for(var i=0; i<iCount; i++){_url = _url.replace(/[^\/]+\/$/, "");}    
      -            if(_url=="") return "/";  
      -            _path = _path.replace(/^\.\//, ""); 
      -            _path.replace( /\/\/$/, '/' );
      -            return _url+_path;
      -        }   
      -        return _path;
      -    }
      -     /**
      -     * 按格式输出字符串
      -     * @method printf
      -     * @static
      -     * @param   {string}    _str
      -     * @return  string
      -     * @example
      -     *      printf( 'asdfasdf{0}sdfasdf{1}', '000', 1111 );
      -     *      //return asdfasdf000sdfasdf1111
      -     */
      -    function printf( _str ){
      -        for(var i = 1, _len = arguments.length; i < _len; i++){
      -            _str = _str.replace( new RegExp('\\{'+( i - 1 )+'\\}', 'g'), arguments[i] );
      -        }
      -        return _str;
      -    }
      -     /**
      -     * 按格式输出字符串
      -     * @method printKey
      -     * @static
      -     * @param   {string}    _str
      -     * @param   {object}    _keys
      -     * @return  string
      -     * @example
      -     *      JC.f.printKey( 'asdfasdf{key1}sdfasdf{key2},{0}', { 'key1': '000', 'key2': 1111, '0': 222 );
      -     *      //return asdfasdf000sdfasdf1111,222
      -     */
      -    function printKey( _str, _keys ){
      -        for( var k in _keys ){
      -            _str = _str.replace( new RegExp('\\{'+( k )+'\\}', 'g'), _keys[k] );
      -        }
      -        return _str;
      -    }
      -
      -    /**
      -     * 判断URL中是否有某个get参数
      -     * @method  hasUrlParam
      -     * @param   {string}    _url
      -     * @param   {string}    _key
      -     * @return  bool
      -     * @static
      -     * @example
      -     *      var bool = hasUrlParam( 'getkey' );
      -     */
      -    function hasUrlParam( _url, _key ){
      -        var _r = false;
      -        if( !_key ){ _key = _url; _url = location.href; }
      -        if( /\?/.test( _url ) ){
      -            _url = _url.split( '?' ); _url = _url[ _url.length - 1 ];
      -            _url = _url.split('&');
      -            for( var i = 0, j = _url.length; i < j; i++ ){
      -                if( _url[i].split('=')[0].toLowerCase() == _key.toLowerCase() ){ _r = true; break; };
      -            }
      -        }
      -        return _r;
      -    }
      -    /**
      -     * 添加URL参数
      -     * <br /><b>require:</b> delUrlParam, filterXSS
      -     * @method  addUrlParams
      -     * @param   {string}    _url
      -     * @param   {object}    _params
      -     * @return  string
      -     * @static
      -     * @example
      -            var url = addUrlParams( location.href, {'key1': 'key1value', 'key2': 'key2value' } );
      -     */ 
      -    function addUrlParams( _url, _params ){
      -        var sharp = '';
      -        !_params && ( _params = _url, _url = location.href );
      -        _url.indexOf('#') > -1 && ( sharp = _url.split('#')[1], _url = _url.split('#')[0] );
      -        for( var k in _params ){
      -            _url = delUrlParam(_url, k);
      -            _url.indexOf('?') > -1 
      -                ? _url += '&' + k +'=' + _params[k]
      -                : _url += '?' + k +'=' + _params[k];
      -        }
      -        sharp && ( _url += '#' + sharp );
      -        _url = filterXSS( _url.replace(/\?\&/g, '?' ) );
      -        return _url;   
      -
      -    }
      -    /**
      -     * xss 过滤函数
      -     * @method filterXSS
      -     * @param   {string}    _s
      -     * @return string
      -     * @static
      -     */
      -    function filterXSS( _s ){
      -        _s && (
      -            _s = _s
      -                    .replace( /</g, '&lt;' )
      -                    .replace( />/g, '&gt;' )
      -        );
      -        return _s;
      -    }
      -    /**
      -     * 取URL参数的值
      -     * <br /><b>require:</b> filterXSS
      -     * @method  getUrlParam
      -     * @param   {string}    _url
      -     * @param   {string}    _key
      -     * @return  string
      -     * @static
      -     * @example
      -            var defaultTag = getUrlParam(location.href, 'tag');  
      -     */ 
      -    function getUrlParam( _url, _key ){
      -        var _r = '', _ar, i, _items;
      -        !_key && ( _key = _url, _url = location.href );
      -        _url.indexOf('#') > -1 && ( _url = _url.split('#')[0] );
      -        if( _url.indexOf('?') > -1 ){
      -            _ar = _url.split('?')[1].split('&');
      -            for( i = 0; i < _ar.length; i++ ){
      -                _items = _ar[i].split('=');
      -                _items[0] = decodeURIComponent( _items[0] || '' ).replace(/^\s+|\s+$/g, '');
      -                if( _items[0].toLowerCase() == _key.toLowerCase() ){
      -                    _r = filterXSS( _items[1] || '' );
      -                    break;
      -                } 
      -            }
      -        }
      -        return _r;
      -    }
      -    /**
      -     * 取URL参数的值, 这个方法返回数组
      -     * <br />与 getUrlParam 的区别是可以获取 checkbox 的所有值
      -     * <br /><b>require:</b> filterXSS
      -     * @method  getUrlParams
      -     * @param   {string}    _url
      -     * @param   {string}    _key
      -     * @return  Array
      -     * @static
      -     * @example
      -            var params = getUrlParams(location.href, 'tag');  
      -     */ 
      -    function getUrlParams( _url, _key ){
      -        var _r = [], _params, i, j, _items;
      -        !_key && ( _key = _url, _url = location.href );
      -        _url = _url.replace(/[\?]+/g, '?').split('?');
      -        if( _url.length > 1 ){
      -            _url = _url[1];
      -            _params = _url.split('&');
      -            if( _params.length ){
      -                for( i = 0, j = _params.length; i < j; i++ ){
      -                    _items = _params[i].split('=');
      -                    _items[0] = decodeURIComponent( _items[0] ) || '';
      -                    if( _items[0].trim() == _key ){
      -                        _r.push( filterXSS( _items[1] || '' ) );
      -                    }
      -                }
      -            }
      -        }
      -        return _r;
      -    }
      -    /**
      -     * 删除URL参数
      -     * <br /><b>require:</b> filterXSS
      -     * @method  delUrlParam
      -     * @param  {string}    _url
      -     * @param  {string}    _key
      -     * @return  string
      -     * @static
      -     * @example
      -            var url = delUrlParam( location.href, 'tag' );
      -     */ 
      -    function delUrlParam( _url, _key ){
      -        var sharp = '', params, tmpParams = [], i, item;
      -        !_key && ( _key = _url, _url = location.href );
      -        _url.indexOf('#') > -1 && ( sharp = _url.split('#')[1], _url = _url.split('#')[0] );
      -        if( _url.indexOf('?') > -1 ){
      -            params = _url.split('?')[1].split('&');
      -            _url = _url.split('?')[0];
      -            for( i = 0; i < params.length; i++ ){
      -                var items = params[i].split('=');
      -                items[0] = items[0].replace(/^\s+|\s+$/g, '');
      -                if( items[0].toLowerCase() == _key.toLowerCase() ) continue;
      -                tmpParams.push( items.join('=') )
      -            }
      -            _url += '?' + tmpParams.join('&');
      -        }
      -        sharp && ( _url += '#' + sharp );
      -       _url = filterXSS( _url );
      -        return _url;
      -    }
      -    /**
      -     * 批量删除URL参数
      -     * <br /><b>require:</b> delUrlParam
      -     * @method  delUrlParams
      -     * @param  {string}    _url
      -     * @param  {Array}    _keys
      -     * @return  string
      -     * @static
      -     * @example
      -            var url = delUrlParam( location.href, [ 'k1', 'k2' ] );
      -     */ 
      -    function delUrlParams( _url, _keys ){
      -        !_keys && ( _keys = _url, _url = location.href );
      -        for( var k in _keys ) _url = delUrlParam( _url, _keys[ k ] );
      -        return _url;
      -    }
      -    /**
      -     * 提示需要 HTTP 环境
      -     * @method  httpRequire
      -     * @static
      -     * @param  {string}  _msg   要提示的文字, 默认 "本示例需要HTTP环境'
      -     * @return  bool     如果是HTTP环境返回true, 否则返回false
      -     */
      -    function httpRequire( _msg ){
      -        _msg = _msg || '本示例需要HTTP环境';
      -        if( /file\:|\\/.test( location.href ) ){
      -            alert( _msg );
      -            return false;
      -        }
      -        return true;
      -    }
      -    /**
      -     * 删除 URL 的锚点
      -     * <br /><b>require:</b> addUrlParams, filterXSS
      -     * @method removeUrlSharp
      -     * @static
      -     * @param   {string}    _url
      -     * @param   {bool}      _nornd      是否不添加随机参数
      -     * @param   {string}    _rndName
      -     * @return  string
      -     */
      -    function removeUrlSharp( _url, _nornd, _rndName ){   
      -        !_url && ( _url = location.href );
      -        _url = _url.replace(/\#[\s\S]*/, '');
      -        _rndName = _rndName || 'rnd';
      -        var _rndO;
      -        !_nornd && ( _rndO = {}
      -                        , _rndO[ _rndName ] = new Date().getTime()
      -                        , _url = addUrlParams( _url, _rndO ) 
      -        );
      -        _url = filterXSS( _url );
      -        return _url;
      -    }
      -    /**
      -     * 重载页面
      -     * <br /><b>require:</b> removeUrlSharp, addUrlParams, filterXSS
      -     * @method reloadPage
      -     * @static
      -     * @param   {string}    _url
      -     * @param   {bool}      _nornd
      -     * @param   {int}       _delayms
      -     */ 
      -    function reloadPage( _url, _nornd, _delayMs  ){
      -        _delayMs = _delayMs || 0;
      -
      -        _url = removeUrlSharp( _url || location.href, _nornd );
      -        !_nornd && ( _url = addUrlParams( _url, { 'rnd': new Date().getTime() } ) );
      -        _url = filterXSS( _url );
      -
      -        setTimeout( function(){
      -            location.href = _url;
      -        }, _delayMs);
      -        return _url;
      -    }
      -    /**
      -     * 取小数点的N位
      -     * <br />JS 解析 浮点数的时候,经常出现各种不可预知情况,这个函数就是为了解决这个问题
      -     * @method  parseFinance
      -     * @static
      -     * @param   {number}    _i
      -     * @param   {int}       _dot  default = 2
      -     * @return  number
      -     */
      -    function parseFinance( _i, _dot ){
      -        _i = parseFloat( _i ) || 0;
      -        typeof _dot == 'undefined' && ( _dot = 2 );
      -        _i && ( _i = parseFloat( _i.toFixed( _dot ) ) );
      -        return _i;
      -    }
      -    /**
      -     * js 附加字串函数
      -     * @method  padChar
      -     * @static
      -     * @param   {string}    _str
      -     * @param   {intl}      _len
      -     * @param   {string}    _char
      -     * @return  string
      -     */
      -    function padChar( _str, _len, _char ){
      -        _len  = _len || 2; _char = _char || "0"; 
      -        _str += '';
      -        if( _str.length >= _len ) return _str;
      -        _str = new Array( _len + 1 ).join( _char ) + _str
      -        return _str.slice( _str.length - _len );
      -    }
      -    /**
      -     * 格式化日期为 YYYY-mm-dd 格式
      -     * <br /><b>require</b>: pad\_char\_f
      -     * @method  formatISODate
      -     * @static
      -     * @param   {date}                  _date       要格式化日期的日期对象
      -     * @param   {string|undefined}      _split      定义年月日的分隔符, 默认为 '-'
      -     * @return  string
      -     *
      -     */
      -    function formatISODate( _date, _split ){
      -        _date = _date || new Date(); typeof _split == 'undefined' && ( _split = '-' );
      -        return [ _date.getFullYear(), padChar( _date.getMonth() + 1 ), padChar( _date.getDate() ) ].join(_split);
      -    }
      -    /**
      -     * 从 ISODate 字符串解析日期对象
      -     * @method  parseISODate
      -     * @static
      -     * @param   {string}    _datestr
      -     * @return  date
      -     */
      -    function parseISODate( _datestr ){
      -        if( !_datestr ) return;
      -        _datestr = _datestr.replace( /[^\d]+/g, '');
      -        var _r;
      -        if( _datestr.length === 8 ){
      -            _r = new Date( _datestr.slice( 0, 4 )
      -                            , parseInt( _datestr.slice( 4, 6 ), 10 ) - 1
      -                            , parseInt( _datestr.slice( 6 ), 10 ) );
      -        }else if( _datestr.length === 6 ){
      -            _r = new Date( _datestr.slice( 0, 4 )
      -                            , parseInt( _datestr.slice( 4, 6 ), 10 ) - 1
      -                            , 1 );
      -        }
      -
      -        return _r;
      -    }
      -    /**
      -     * 从日期字符串解析日期对象
      -     * <br />兼容 JC.Calendar 日期格式
      -     * @method  parseDate
      -     * @param   {date}      _date
      -     * @param   {selector}  _selector   如果 _selector 为真, 则尝试从 _selector 的 html 属性 dateParse 对日期进行格式化
      -     * @param   {boolean}   _forceISO   是否强制转换为ISO日期
      -     * @return  {date|null}
      -     * @static
      -     */
      -    function parseDate( _date, _selector, _forceISO ){
      -        if( !_date ) return null;
      -        var _parse = parseISODate;
      -            
      -        _selector && !_forceISO
      -            && ( _selector = $( _selector ) ).length
      -            && _selector.attr( 'dateParse' )
      -            && ( _parse = window[ _selector.attr( 'dateParse' ) ] || _parse )
      -            ;
      -        _date = _parse( _date );
      -        _date && _date.start && ( _date = _date.start );
      -        return _date;
      -    }
      -
      -    /**
      -     * 获取不带 时分秒的 日期对象
      -     * @method  pureDate
      -     * @param   {Date}  _d   可选参数, 如果为空 = new Date
      -     * @return  Date
      -     * @static
      -     */
      -    function pureDate( _d ){
      -        var _r;
      -        _d = _d || new Date();
      -        _r = new Date( _d.getFullYear(), _d.getMonth(), _d.getDate() );
      -        return _r;
      -    }
      -    /**
      -    * 克隆日期对象
      -    * @method  cloneDate
      -    * @static
      -    * @param   {Date}  _date   需要克隆的日期
      -    * @return  {Date}
      -    */
      -    function cloneDate( _date ){ var d = new Date(); d.setTime( _date.getTime() ); return d; }
      -    /**
      -     * 判断两个日期是否为同一天
      -     * @method  isSameDay
      -     * @static
      -     * @param   {Date}  _d1     需要判断的日期1
      -     * @param   {Date}  _d2     需要判断的日期2
      -     * @return {bool}
      -     */
      -    function isSameDay( _d1, _d2 ){
      -        return [_d1.getFullYear(), _d1.getMonth(), _d1.getDate()].join() === [
      -                _d2.getFullYear(), _d2.getMonth(), _d2.getDate()].join()
      -    }
      -    /**
      -     * 判断两个日期是否为同一月份
      -     * @method  isSameMonth
      -     * @static
      -     * @param   {Date}  _d1     需要判断的日期1
      -     * @param   {Date}  _d2     需要判断的日期2
      -     * @return {bool}
      -     */
      -    function isSameMonth( _d1, _d2 ){
      -        return [_d1.getFullYear(), _d1.getMonth()].join() === [
      -                _d2.getFullYear(), _d2.getMonth()].join()
      -    }
      -
      -    /**
      -     * 判断两个日期是否为同一季度
      -     * @method  isSameWeek
      -     * @static
      -     * @param   {Date}  _d1     需要判断的日期1
      -     * @param   {Date}  _d2     需要判断的日期2
      -     * @return {bool}
      -     */
      -    function isSameWeek( _d1, _d2 ){
      -        var _weeks = [],
      -            _r = false,
      -            i = 0,
      -            l;
      -
      -        _weeks = weekOfYear(_d1.getFullYear());
      -        
      -        _d1 = _d1.getTime();
      -        _d2 = _d2.getTime();
      -
      -        for ( i = 0, l = _weeks.length; i < l; i++ ) {
      -            if ( (_d1 >= _weeks[i].start && _d1 <= _weeks[i].end) 
      -                && ( _d2 >= _weeks[i].start && _d2 <= _weeks[i].end ) 
      -                ) {
      -                console.log(i, _d1, _weeks[i]);
      -                return true;
      -            }  
      -        }
      -
      -        return _r;
      -    }
      -
      -    /**
      -     * 判断两个日期是否为同一季度
      -     * @method  isSameSeason
      -     * @static
      -     * @param   {Date}  _d1     需要判断的日期1
      -     * @param   {Date}  _d2     需要判断的日期2
      -     * @return {bool}
      -     */
      -    function isSameSeason( _d1, _d2 ){
      -        var _seasons = [],
      -            _r = false,
      -            i = 0,
      -            l ;
      -
      -        if ( !isSameYear( _d1, _d2 ) ) {
      -            return false;
      -        }
      -
      -        _seasons = seasonOfYear( _d1.getFullYear() );
      -        _d1 = _d1.getTime();
      -        _d2 = _d2.getTime();
      -        
      -        for (i = 0, l = _seasons.length ; i < l; i++ ) {
      -            if ( (_d1 >= _seasons[i].start && _d1 <= _seasons[i].end) 
      -                && ( _d2 >= _seasons[i].start && _d2 <= _seasons[i].end ) ) {
      -                return true;
      -            }     
      -        }
      -
      -        return _r;
      -    }
      -
      -    /**
      -     * 判断两个日期是否为同一年
      -     * @method  isSameYear
      -     * @static
      -     * @param   {Date}  _d1     需要判断的日期1
      -     * @param   {Date}  _d2     需要判断的日期2
      -     * @return {bool}
      -     */
      -    function isSameYear( _d1, _d2 ) {
      -        return _d1.getFullYear() === _d2.getFullYear();
      -    }
      -
      -    /**
      -     * 取一年中所有的星期, 及其开始结束日期
      -     * @method  weekOfYear
      -     * @static
      -     * @param   {int}   _year
      -     * @param   {int}   _dayOffset  每周的默认开始为周几, 默认0(周一)
      -     * @return  Array
      -     */
      -    function weekOfYear( _year, _dayOffset ){
      -        var _r = [], _tmp, _count = 1, _dayOffset = _dayOffset || 0
      -            , _year = parseInt( _year, 10 )
      -            , _d = new Date( _year, 0, 1 );
      -        /**
      -         * 元旦开始的第一个星期一开始的一周为政治经济上的第一周
      -         */
      -         _d.getDay() > 1 && _d.setDate( _d.getDate() - _d.getDay() + 7 );
      -
      -         _d.getDay() === 0 && _d.setDate( _d.getDate() + 1 );
      -
      -         _dayOffset > 0 && ( _dayOffset = (new Date( 2000, 1, 2 ) - new Date( 2000, 1, 1 )) * _dayOffset );
      -
      -        while( _d.getFullYear() <= _year ){
      -            _tmp = { 'week': _count++, 'start': null, 'end': null };
      -            _tmp.start = _d.getTime() + _dayOffset;
      -            //_tmp.start = formatISODate(_d);
      -            _d.setDate( _d.getDate() + 6 );
      -            _tmp.end = _d.getTime() + _dayOffset;
      -            //_tmp.end = formatISODate(_d);
      -            _d.setDate( _d.getDate() + 1 );
      -            if( _d.getFullYear() > _year ) {
      -                _d = new Date( _d.getFullYear(), 0, 1 );
      -                if( _d.getDay() < 2 ) break;
      -             }
      -            _r.push( _tmp );
      -        }
      -        return _r;
      -    }
      -    /**
      -     * 取一年中所有的季度, 及其开始结束日期
      -     * @method  seasonOfYear
      -     * @static
      -     * @param   {int}   _year
      -     * @return  Array
      -     */
      -    function seasonOfYear( _year ){
      -        var _r = []
      -            , _year = parseInt( _year, 10 )
      -            ;
      -
      -        _r.push( 
      -                {
      -                    start: pureDate( new Date( _year, 0, 1 ) )
      -                    , end: pureDate( new Date( _year, 2, 31 ) )
      -                    , season: 1
      -                }, {
      -                    start: pureDate( new Date( _year, 3, 1 ) )
      -                    , end: pureDate( new Date( _year, 5, 30 ) )
      -                    , season: 2
      -                }, {
      -                    start: pureDate( new Date( _year, 6, 1 ) )
      -                    , end: pureDate( new Date( _year, 8, 30 ) )
      -                    , season: 3
      -                }, {
      -                    start: pureDate( new Date( _year, 9, 1 ) )
      -                    , end: pureDate( new Date( _year, 11, 31 ) )
      -                    , season: 4
      -                }
      -        );
      -                
      -
      -        return _r;
      -    }
      -
      -    /**
      -     * 取某一天所在星期的开始结束日期,以及第几个星期
      -     * @method  dayOfWeek
      -     * @static
      -     * @param   {iso date}   _date
      -     * @param   {int}        _dayOffset
      -     * @return  Object
      -     */
      -    function dayOfWeek( _date, _dayOffset ) {
      -        var r = {},
      -            weeks = JC.f.weekOfYear(_date.getFullYear(), _dayOffset),
      -            i = 0,
      -            l = weeks.length,
      -            t = _date.getTime(),
      -            start = JC.f.pureDate( new Date() ),
      -            end = JC.f.pureDate( new Date() );
      -
      -        for (i; i <l; i++) {
      -            if (t >= weeks[i].start && t <= weeks[i].end) {
      -                start.setTime(weeks[i].start);
      -                end.setTime(weeks[i].end);
      -                r.start = start;
      -                r.end = end;
      -                r.w = i + 1
      -                return r;
      -            }
      -        }
      -    }
      -
      -    /**
      -     * 取某一天所在季度的开始结束日期,以及第几个Q
      -     * @method  dayOfSeason
      -     * @static
      -     * @param   {iso date}   _date
      -     * @return  Object
      -     */
      -
      -    function dayOfSeason(_date) {
      -        var year = _date.getFullYear(),
      -            q = JC.f.seasonOfYear(year),
      -            i,
      -            r = {},
      -            tmp,
      -            d = _date.getTime();
      -
      -        for (i = 0; i < 4; i++) {
      -            if (d >= q[i].start.getTime() && d <= q[i].end.getTime()) {
      -                r.start = q[i].start;
      -                r.end = q[i].end;
      -                r.q = i + 1;
      -                return r;
      -            }
      -        }
      -
      -    }
      -
      -    /**
      -     * 取得一个月份中最大的一天
      -     * @method  maxDayOfMonth
      -     * @static
      -     * @param   {Date}  _date
      -     * @return {int} 月份中最大的一天
      -     */
      -    function maxDayOfMonth( _date ){
      -        var _r, _d = new Date( _date.getFullYear(), _date.getMonth() + 1 );
      -            _d.setDate( _d.getDate() - 1 );
      -            _r = _d.getDate();
      -        return _r;
      -    }
      -    /**
      -     * 取当前脚本标签的 src路径 
      -     * @method  scriptPath
      -     * @static
      -     * @return  {string} 脚本所在目录的完整路径
      -     */
      -    function scriptPath(){
      -        var _sc = document.getElementsByTagName('script'), _sc = _sc[ _sc.length - 1 ], _path = _sc.getAttribute('src');
      -        if( /\//.test( _path ) ){ _path = _path.split('/'); _path.pop(); _path = _path.join('/') + '/'; }
      -        else if( /\\/.test( _path ) ){ _path = _path.split('\\'); _path.pop(); _path = _path.join('\\') + '/'; }
      -        return _path;
      -    }
      -    /**
      -     * 缓动函数, 动画效果为按时间缓动 
      -     * <br />这个函数只考虑递增, 你如果需要递减的话, 在回调里用 _maxVal - _stepval 
      -     * @method  easyEffect
      -     * @static
      -     * @param   {function}  _cb         缓动运动时的回调
      -     * @param   {number}    _maxVal     缓动的最大值, default = 200
      -     * @param   {number}    _startVal   缓动的起始值, default = 0
      -     * @param   {number}    _duration   缓动的总时间, 单位毫秒, default = 200
      -     * @param   {number}    _stepMs     缓动的间隔, 单位毫秒, default = 2
      -     * @return  interval
      -     * @example
      -            $(document).ready(function(){
      -                window.js_output = $('span.js_output');
      -                window.ls = [];
      -                window.EFF_INTERVAL = easyEffect( effectcallback, 100);
      -            });
      -
      -            function effectcallback( _stepval, _done ){
      -                js_output.html( _stepval );
      -                ls.push( _stepval );
      -
      -                !_done && js_output.html( _stepval );
      -                _done && js_output.html( _stepval + '<br />' + ls.join() );
      -            }
      -     */
      -    function easyEffect( _cb, _maxVal, _startVal, _duration, _stepMs ){
      -        var _beginDate = new Date(), _timepass
      -            , _maxVal = _maxVal || 200
      -            , _startVal = _startVal || 0
      -            , _maxVal = _maxVal - _startVal 
      -            , _tmp = 0
      -            , _done
      -            , _duration = _duration || 200
      -            , _stepMs = _stepMs || 2
      -            ;
      -        //JC.log( '_maxVal:', _maxVal, '_startVal:', _startVal, '_duration:', _duration, '_stepMs:', _stepMs );
      -
      -        var _interval = setInterval(
      -            function(){
      -                _timepass = new Date() - _beginDate;
      -                _tmp = _timepass / _duration * _maxVal;
      -                _tmp;
      -                if( _tmp >= _maxVal ){
      -                    _tmp = _maxVal;
      -                    _done = true;
      -                    clearInterval( _interval );
      -                }
      -
      -                _cb && _cb( _tmp + _startVal, _done, _timepass, _duration, _stepMs, _startVal, _maxVal );
      -            }, _stepMs );
      -
      -        return _interval;
      -    }
      -    /**
      -     * 把输入值转换为布尔值
      -     * @method parseBool
      -     * @param   {*} _input
      -     * @return bool
      -     * @static
      -     */
      -    function parseBool( _input ){
      -        if( typeof _input == 'string' ){
      -            _input = _input.replace( /[\s]/g, '' ).toLowerCase();
      -            if( _input && ( _input == 'false' 
      -                            || _input == '0' 
      -                            || _input == 'null'
      -                            || _input == 'undefined'
      -           )) _input = false;
      -           else if( _input ) _input = true;
      -        }
      -        return !!_input;
      -    }
      -    /**
      -     * 绑定或清除 mousewheel 事件
      -     * @method  mousewheelEvent
      -     * @param   {function}  _cb
      -     * @param   {bool}      _detach
      -     * @param   {selector}  _selector  default = document
      -     * @static
      -     */
      -    function mousewheelEvent( _cb, _detach, _selector ){
      -        _selector = _selector || document;
      -        var _evt =  (/Firefox/i.test(navigator.userAgent))
      -            ? "DOMMouseScroll" 
      -            : "mousewheel"
      -            ;
      -        _selector.attachEvent && ( _evt = 'on' + _evt );
      -
      -        if( _detach ){
      -            _selector.detachEvent && document.detachEvent( _evt, _cb )
      -            _selector.removeEventListener && document.removeEventListener( _evt, _cb );
      -        }else{
      -            _selector.attachEvent && document.attachEvent( _evt, _cb )
      -            _selector.addEventListener && document.addEventListener( _evt, _cb );
      -        }
      -    }
      -    /**
      -     * 获取 selector 的指定父级标签
      -     * @method  getJqParent
      -     * @param   {selector}  _selector
      -     * @param   {selector}  _filter
      -     * @return selector
      -     * @require jquery
      -     * @static
      -     */
      -    function getJqParent( _selector, _filter ){
      -        _selector = $(_selector);
      -        var _r;
      -
      -        if( _filter ){
      -            while( (_selector = _selector.parent()).length ){
      -                if( _selector.is( _filter ) ){
      -                    _r = _selector;
      -                    break;
      -                }
      -            }
      -        }else{
      -            _r = _selector.parent();
      -        }
      -
      -        return _r;
      -    }
      -    /**
      -     * 扩展 jquery 选择器
      -     * <br />扩展起始字符的 '/' 符号为 jquery 父节点选择器
      -     * <br />扩展起始字符的 '|' 符号为 jquery 子节点选择器
      -     * <br />扩展起始字符的 '(' 符号为 jquery 父节点查找识别符( getJqParent )
      -     * @method  parentSelector
      -     * @param   {selector}  _item
      -     * @param   {String}    _selector
      -     * @param   {selector}  _finder
      -     * @return  selector
      -     * @require jquery
      -     * @static
      -     */
      -    function parentSelector( _item, _selector, _finder ){
      -        _item && ( _item = $( _item ) );
      -        if( /\,/.test( _selector ) ){
      -            var _multiSelector = [], _tmp;
      -            _selector = _selector.split(',');
      -            $.each( _selector, function( _ix, _subSelector ){
      -                _subSelector = _subSelector.trim();
      -                _tmp = parentSelector( _item, _subSelector, _finder );
      -                _tmp && _tmp.length 
      -                    &&  ( 
      -                            ( _tmp.each( function(){ _multiSelector.push( $(this) ) } ) )
      -                        );
      -            });
      -            return $( _multiSelector );
      -        }
      -        var _pntChildRe = /^([\/]+)/, _childRe = /^([\|]+)/, _pntRe = /^([<\(]+)/;
      -        if( _pntChildRe.test( _selector ) ){
      -            _selector = _selector.replace( _pntChildRe, function( $0, $1 ){
      -                for( var i = 0, j = $1.length; i < j; i++ ){
      -                    _item = _item.parent();
      -                }
      -                _finder = _item;
      -                return '';
      -            });
      -            _selector = _selector.trim();
      -            return _selector ? _finder.find( _selector ) : _finder;
      -        }else if( _childRe.test( _selector ) ){
      -            _selector = _selector.replace( _childRe, function( $0, $1 ){
      -                for( var i = 1, j = $1.length; i < j; i++ ){
      -                    _item = _item.parent();
      -                }
      -                _finder = _item;
      -                return '';
      -            });
      -            _selector = _selector.trim();
      -            return _selector ? _finder.find( _selector ) : _finder;
      -        }else if( _pntRe.test( _selector ) ){
      -            _selector = _selector.replace( _pntRe, '' ).trim();
      -            if( _selector ){
      -                if( /[\s]/.test( _selector ) ){
      -                    var _r;
      -                    _selector.replace( /^([^\s]+)([\s\S]+)/, function( $0, $1, $2 ){
      -                        _r = getJqParent( _item, $1 ).find( $2.trim() );
      -                    });
      -                    return _r || _selector;
      -                }else{
      -                    return getJqParent( _item, _selector );
      -                }
      -            }else{
      -                return _item.parent();
      -            }
      -        }else{
      -            return _finder ? _finder.find( _selector ) : jQuery( _selector );
      -        }
      -    }
      -    /**
      -     * 获取脚本模板的内容
      -     * @method  scriptContent
      -     * @param   {selector}  _selector
      -     * @return  string
      -     * @static
      -     */
      -    function scriptContent( _selector ){
      -        var _r = '';
      -        _selector 
      -            && ( _selector = $( _selector ) ).length 
      -            && ( _r = _selector.html().trim().replace( /[\r\n]/g, '') )
      -            ;
      -        return _r;
      -    }
      -    /**
      -     * 取函数名 ( 匿名函数返回空 )
      -     * @method  funcName
      -     * @param   {function}  _func
      -     * @return  string
      -     * @static
      -     */
      -    function funcName(_func){
      -      var _re = /^function\s+([^()]+)[\s\S]*/
      -          , _r = ''
      -          , _fStr = _func.toString();    
      -      //JC.log( _fStr );
      -      _re.test( _fStr ) && ( _r = _fStr.replace( _re, '$1' ) );
      -      return _r.trim();
      -    }
      -    /**
      -     * 执行自动识别的组件
      -     * @method  autoInit
      -     * @param   {selector}  _selector
      -     * @static
      -     */
      -    function autoInit( _selector ){
      -        _selector = $( _selector || document );
      -        if( !( _selector && _selector.length && window.JC ) ) return;
      -        if( !( JC.f && JC.f._AUTO_INIT_DATA ) ) return;
      -
      -        $.each( JC.f._AUTO_INIT_DATA, function( _k, _class ){
      -            if( !_class ) return;
      -            _class.init ? _class.init( _selector ) : _class( _selector );
      -        });
      -        return JC.f;
      -    }
      -    /**
      -     * 添加需要自动识别的组件
      -     * @method addAutoInit
      -     * @param   {class} _class
      -     * @static
      -     * @example
      -     *      JC.f.addAutoInit( JC.Calendar );
      -     */
      -    function addAutoInit( _class ){
      -        _class 
      -            && JC.f._AUTO_INIT_DATA 
      -            && ( JC.f._AUTO_INIT_DATA[ 
      -                    _class && _class.Model && _class.Model._instanceName 
      -                    ? _class.Model._instanceName
      -                    : _class.toString()
      -                ] = _class )
      -                ;
      -        return JC.f;
      -    }
      -    /**
      -     * jcAutoInitComps 不久后将被清除
      -     * 请使用 JC.f.autoInit 和 JC.f.addAutoInit
      -     */
      -    function jcAutoInitComps( _selector ){
      -        _selector = $( _selector || document );
      -        
      -        if( !( _selector && _selector.length && window.JC ) ) return;
      -        /**
      -         * 联动下拉框
      -         */
      -        JC.AutoSelect && JC.AutoSelect( _selector );
      -        /**
      -         * 日历组件
      -         */
      -        JC.Calendar && JC.Calendar.initTrigger( _selector );
      -        /**
      -         * 双日历组件
      -         */
      -        JC.DCalendar && JC.DCalendar.init && JC.DCalendar.init( _selector );
      -        /**
      -         * 全选反选
      -         */
      -        JC.AutoChecked && JC.AutoChecked( _selector );
      -        /**
      -         * Ajax 上传
      -         */
      -        JC.AjaxUpload && JC.AjaxUpload.init( _selector );
      -        /**
      -         * 占位符
      -         */
      -        JC.Placeholder && JC.Placeholder.init( _selector );
      -        /**
      -         * 表格冻结
      -         */
      -        JC.TableFreeze && JC.TableFreeze.init( _selector );
      -        /**
      -         * 拖曳
      -         */
      -        JC.Drag && JC.Drag.init( _selector );
      -        /**
      -         * 图片裁切
      -         */
      -        JC.ImageCutter && JC.ImageCutter.init( _selector );
      -
      -        JC.Tab && JC.Tab.init && JC.Tab.init( _selector );
      -
      -        if( !window.Bizs ) return;
      -        /**
      -         * disable / enable
      -         */
      -        Bizs.DisableLogic && Bizs.DisableLogic.init( _selector );
      -        /**
      -         * 表单提交逻辑
      -         */
      -        Bizs.FormLogic && Bizs.FormLogic.init( _selector );
      -        /**
      -         * 格式化金额
      -         */
      -        Bizs.MoneyTips && Bizs.MoneyTips.init( _selector );
      -        /**
      -         * 自动完成
      -         */
      -        Bizs.AutoSelectComplete && Bizs.AutoSelectComplete.init( _selector );
      -
      -        Bizs.InputSelect && Bizs.InputSelect.init( _selector );
      -
      -        /**
      -         *排期日期展示
      -        */
      -        Bizs.TaskViewer && Bizs.TaskViewer.init(_selector);
      -    }
      -
      -    /**
      -     * URL 占位符识别功能
      -     * <br /><b>require:</b> addUrlParams, filterXSS
      -     * @method  urlDetect
      -     * @param   {String}    _url    如果 起始字符为 URL, 那么 URL 将祝为本页的URL
      -     * @return  string
      -     * @static
      -     * @example
      -     *      urlDetect( '?test' ); //output: ?test
      -     *
      -     *      urlDetect( 'URL,a=1&b=2' ); //output: your.com?a=1&b=2
      -     *      urlDetect( 'URL,a=1,b=2' ); //output: your.com?a=1&b=2
      -     *      urlDetect( 'URLa=1&b=2' ); //output: your.com?a=1&b=2
      -     */
      -    function urlDetect( _url ){
      -        _url = _url || '';
      -        var _r = _url, _tmp, i, j, _items;
      -        if( /^URL/.test( _url ) ){
      -            _tmp = _url.replace( /^URL/, '' ).replace( /[\s]*,[\s]*/g, ',' ).trim().split(',');
      -            _url = location.href;
      -            var _d = {}, _concat = [];
      -            if( _tmp.length ){
      -                for( i = 0, j = _tmp.length; i < j; i ++ ){
      -                     /\&/.test( _tmp[i] )
      -                         ? ( _concat = _concat.concat( _tmp[i].split('&') ) )
      -                         : ( _concat = _concat.concat( _tmp[i] ) )
      -                         ;
      -                }
      -                _tmp = _concat;
      -            }
      -            for( i = 0, j = _tmp.length; i < j; i++ ){
      -                _items = _tmp[i].replace(/[\s]+/g, '').split( '=' );
      -                if( !_items[0] ) continue;
      -                _d[ _items[0] ] = _items[1] || '';
      -            }
      -            _url = addUrlParams( _url, _d );
      -            _r = _url;
      -        }
      -        _r = filterXSS( _url );
      -        return _r;
      -    }
      -    /**
      -     * 日期占位符识别功能
      -     * @method  dateDetect
      -     * @param   {String}    _dateStr    如果起始字符为 NOW, 那么将视为当前日期
      -     *                                  , 如果起始字符为 NOWFirst, 那么将视为当前月的1号
      -     * @return  {date|null}
      -     * @static
      -     * @example
      -     *      dateDetect( 'now' ); //2014-10-02
      -     *      dateDetect( 'now,3d' ); //2013-10-05
      -     *      dateDetect( 'now,-3d' ); //2013-09-29
      -     *      dateDetect( 'now,2w' ); //2013-10-16
      -     *      dateDetect( 'now,-2m' ); //2013-08-02
      -     *      dateDetect( 'now,4y' ); //2017-10-02
      -     *
      -     *      dateDetect( 'now,1d,1w,1m,1y' ); //2014-11-10
      -     */
      -    function dateDetect( _dateStr ){
      -        var _r = null   
      -            , _re = /^now/i
      -            , _nowFirstRe = /^nowfirst/
      -            , _dateRe = /^([\d]{8}|[\d]{4}.[\d]{2}.[\d]{2})/
      -            , _d, _ar, _item
      -            ;
      -        if( _dateStr && typeof _dateStr == 'string' ){
      -            if( _re.test( _dateStr ) || _nowFirstRe.test( _dateStr ) || _dateRe.test( _dateStr ) ){
      -                _d = new Date();
      -                if( _nowFirstRe.test(_dateStr ) ){
      -                    _d.setDate( 1 );
      -                }
      -                if( _dateRe.test( _dateStr ) ){
      -                    _d = JC.f.parseISODate( _dateStr.replace( /[^\d]/g, '' ).slice( 0, 8 ) );
      -                    _dateStr = _dateStr.replace( _dateRe, '' );
      -                }
      -                _dateStr = _dateStr.replace( _re, '' ).replace(/[\s]+/g, '');
      -                _ar = _dateStr.split(',');
      -
      -                var _red = /d$/i
      -                    , _rew = /w$/i
      -                    , _rem = /m$/i
      -                    , _rey = /y$/i
      -                    ;
      -                for( var i = 0, j = _ar.length; i < j; i++ ){
      -                    _item = _ar[i] || '';
      -                    if( !_item ) continue;
      -                    _item = _item.replace( /[^\-\ddwmy]+/gi, '' );
      -
      -                    if( _red.test( _item ) ){
      -                        _item = parseInt( _item.replace( _red, '' ), 10 );
      -                        _item && _d.setDate( _d.getDate() + _item );
      -                    }else if( _rew.test( _item ) ){
      -                        _item = parseInt( _item.replace( _rew, '' ), 10 );
      -                        _item && _d.setDate( _d.getDate() + _item * 7 );
      -                    }else if( _rem.test( _item ) ){
      -                        _item = parseInt( _item.replace( _rem, '' ), 10 );
      -                        _item && _d.setMonth( _d.getMonth() + _item );
      -                    }else if( _rey.test( _item ) ){
      -                        _item = parseInt( _item.replace( _rey, '' ), 10 );
      -                        _item && _d.setFullYear( _d.getFullYear() + _item );
      -                    }
      -                }
      -                _r = _d;
      -            }else{
      -                _r = parseISODate( _dateStr );
      -            }
      -        }
      -        return _r;
      -    }
      -    ;(function(){
      -        /**
      -         * inject jquery val func, for hidden change event
      -         */
      -        if( !window.jQuery ) return;
      -        var _oldVal = $.fn.val;
      -        $.fn.val = 
      -            function(){
      -                var _r = _oldVal.apply( this, arguments ), _p = this;
      -                if( 
      -                    arguments.length
      -                    && ( this.prop('nodeName') || '').toLowerCase() == 'input' 
      -                    && ( this.attr('type') || '' ).toLowerCase() == 'hidden'
      -                ){
      -                    setTimeout( function(){ _p.trigger( 'change' ); }, 1 );
      -                }
      -                return _r;
      -            };
      -    }());
      -    /**
      -     * 逗号格式化金额
      -     * @method  moneyFormat
      -     * @param   {int|string}    _number
      -     * @param   {int}           _len
      -     * @param   {int}           _floatLen
      -     * @param   {int}           _splitSymbol
      -     * @return  string
      -     * @static
      -     */
      -    function moneyFormat(_number, _len, _floatLen, _splitSymbol){
      -        var _def = '0.00';
      -        !_len && ( _len = 3 );
      -        typeof _floatLen == 'undefined' && ( _floatLen = 2 );
      -        !_splitSymbol && ( _splitSymbol = ',' );
      -        var _isNegative = false, _r;
      -
      -        typeof _number == 'number' && ( _number = parseFinance( _number, _floatLen ) );
      -        if( typeof _number == 'string' ){
      -            _number = _number.replace( /[,]/g, '' );
      -            if( !/^[\d\.]+$/.test( _number ) ) return _def;
      -            if( _number.split('.').length > 2 ) return _def;
      -        }
      -
      -        _number = _number || 0;
      -        _number += ''; 
      -
      -        /^\-/.test( _number ) && ( _isNegative = true );
      -
      -        _number = _number.replace( /[^\d\.]/g, '' );
      -
      -        var _parts = _number.split('.'), _sparts = [];
      -
      -        while( _parts[0].length > _len ){
      -            var _tmp = _parts[0].slice( _parts[0].length - _len, _parts[0].length );
      -            //console.log( _tmp );
      -            _sparts.push( _tmp );
      -            _parts[0] = _parts[0].slice( 0, _parts[0].length - _len );
      -        }
      -        _sparts.push( _parts[0] );
      -
      -        _parts[0] = _sparts.reverse().join( _splitSymbol );
      -
      -        if( _floatLen ){
      -            !_parts[1] && ( _parts[1] = '' );
      -            _parts[1] += new Array( _floatLen + 1 ).join('0');
      -            _parts[1] = _parts[1].slice( 0, _floatLen );
      -        }else{
      -            _parts.length > 1 && _parts.pop();
      -        }
      -        _r = _parts.join('.');
      -        _isNegative && ( _r = '-' + _r );
      -
      -        return _r;
      -    }
      -    /**
      -     * 日期格式化 (具体格式请查看 PHP Date Formats)
      -     * @method  dateFormat
      -     * @param   {date}    _date     default = now
      -     * @param   {string}  _format   default = "YY-MM-DD"
      -     * @return  string
      -     * @static
      -     */
      -    function dateFormat( _date, _format ){
      -        typeof _date == 'string' && ( _format = _date, _date = new Date() );
      -        !_date && ( _date = new Date() );
      -        !_format && ( _format = 'YY-MM-DD' );
      -        var _r = _format, _tmp
      -            , _monthName = [ 'january', 'february', 'march', 'april', 'may', 'june'
      -                            , 'july', 'august', 'september', 'october', 'november', 'december' ] 
      -            , _monthShortName = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec' ]
      -            ;
      -
      -        _r = _r
      -            .replace( /YY/g, _date.getFullYear() )
      -            .replace( /WK/g, function(){
      -                var _r = 1, _offset = 0, _weeks;
      -
      -                JC.Calendar && ( _offset = JC.Calendar.weekDayOffset );
      -
      -                _weeks = weekOfYear( _date.getFullYear(), JC.Calendar.weekDayOffset );
      -
      -                $( _weeks ).each( function( _ix, _item ){
      -                    if( _date.getTime() >= _item.start && _date.getTime() <= _item.end ){
      -                        _r = _item.week;
      -                        return false;
      -                    }
      -                });
      -
      -                return _r;
      -            })
      -            .replace( /YQ/g, function(){
      -                var _r = 1, _offset = 0, _seasons;
      -
      -                _seasons = seasonOfYear( _date.getFullYear() );
      -
      -                $( _seasons ).each( function( _ix, _item ){
      -                    if( _date.getTime() >= _item.start && _date.getTime() <= _item.end ){
      -                        _r = _item.season;
      -                        return false;
      -                    }
      -                });
      -
      -                return _r;
      -            })
      -            .replace( /MM/g, padChar( _date.getMonth() + 1 ) )
      -            .replace( /DD/g, padChar( _date.getDate() ) )
      -
      -            .replace( /yy/g, function( $0 ){
      -                _tmp = padChar( _date.getYear() );
      -                //JC.log( _date.getYear(), _tmp.slice( _tmp.length - 2 ) );
      -                return _tmp.slice( _tmp.length - 2 );
      -            })
      -            .replace( /mm/g, _date.getMonth() + 1 )
      -            .replace( /dd/g, _date.getDate() )
      -            .replace( /d/g, _date.getDate() )
      -
      -            .replace( /y/g, _date.getFullYear() )
      -
      -            .replace( /m/g, function( $0 ){
      -                return _monthName[ _date.getMonth() ];          
      -            })
      -
      -            .replace( /M/g, function( $0 ){
      -                return _monthShortName[ _date.getMonth() ];          
      -            })
      -            .replace( /HH/g, padChar( _date.getHours() ) )
      -            .replace( /h/g, _date.getHours() )
      -            .replace( /NN/g, padChar( _date.getMinutes() ) )
      -            .replace( /n/g, _date.getMinutes() )
      -            .replace( /SS/g, padChar( _date.getSeconds() ) )
      -            .replace( /s/g, _date.getSeconds() )
      -            ;
      -
      -        return _r;
      -    }
      -    /**
      -     * 扩展对象属性
      -     * @method  extendObject
      -     * @param   {object}    _source
      -     * @param   {object}    _new
      -     * @param   {bool}      _overwrite      是否覆盖已有属性, default = true  
      -     * @return  object
      -     * @static
      -     */
      -    function extendObject( _source, _new, _overwrite ){
      -        typeof _overwrite == 'undefined' && ( _overwrite = true );
      -        if( _source && _new ){
      -            for( var k in _new ){
      -                if( _overwrite ){
      -                    _source[ k ] = _new[ k ];
      -                }else if( !( k in _source ) ){
      -                    _source[ k ] = _new[ k ];
      -                }
      -            }
      -        }
      -        return _source;
      -    }
      -    /**
      -     * timeout 控制逻辑, 避免相同功能的 setTimeout 重复执行
      -     * @method  safeTimeout
      -     * @param   {timeout|function}  _timeout
      -     * @param   {object}            _obj    default = window.TIMEOUT_HOST || {}
      -     * @param   {string}            _name   default = 'NORMAL'
      -     * @param   {int}               _ms     default = 50
      -     * @return  object
      -     * @static
      -     */
      -    function safeTimeout( _timeout, _obj, _name, _ms ){
      -        if( typeof _timeout == 'undefined' ) return;
      -        _obj = $( _obj || ( window.TIMEOUT_HOST = window.TIMEOUT_HOST || {} ) );
      -        _name = _name || 'NORMAL';
      -
      -        typeof _timeout == 'function'
      -            && ( _timeout = setTimeout( _timeout, _ms || 50 ) );
      -
      -        _obj.data( _name ) && clearTimeout( _obj.data( _name ) );
      -        _obj.data( _name, _timeout );
      -    }
      -    /**
      -     * URL 请求时, 获取对URL参数进行编码的函数
      -     * @method  encoder
      -     * @param   {selector}  _selector
      -     * @return  {encode function}   default encodeURIComponent
      -     * @static
      -     */
      -    function encoder( _selector ){
      -        _selector && ( _selector = $( _selector ) );
      -        var _r;
      -        if( _selector && _selector.length ){
      -            _r =_selector.attr( 'validEncoder' ) || 'encodeURIComponent';
      -            _r = window[ _r ] || encodeURIComponent;
      -        }else{
      -            _r = encodeURIComponent;
      -        }
      -        return _r;
      -    }
      -    /**
      -     * 深度克隆对象
      -     * @method  cloneObject
      -     * @param   {Object}    _inObj
      -     * @return  Object
      -     * @static
      -     */
      -    function cloneObject( _inObj, _outObj ){
      -        _outObj = _outObj || {};
      -        var k, i, j;
      -
      -        for( k in _inObj ){
      -            _outObj[ k ] = _inObj[ k ];
      -            switch( Object.prototype.toString.call( _outObj[ k ] ) ){
      -
      -                case '[object Object]': {
      -                      _outObj[ k ] = _outObj[ k ].constructor === Object
      -                        ?  cloneObject( _outObj[ k ] )
      -                        :  _outObj[ k ]
      -                        ;
      -                    break;
      -                }
      -
      -                case '[object Array]': {
      -                    _outObj[ k ] = _inObj[ k ].slice();
      -                    for( i = 0, j = _outObj[ k ].length; i < j; i++ ){
      -                        if( Object.prototype.toString.call( _outObj[ k ][i] ) == '[object Object]' )
      -                            _outObj[ k ][ i ] = cloneObject( _outObj[ k ][ i ] );
      -                    }
      -                    break;
      -                }
      -
      -                case '[object Date]': {
      -                    _outObj[ k ] = new Date(); _outObj[ k ].setTime( _inObj[ k ].getTime() );
      -                    break;
      -                }
      -
      -                default: _outObj[ k ] = _inObj[ k ];
      -            }
      -        }
      -
      -        return _outObj;
      -    }
      -    /**
      -     * 获取 document 的 相关大小
      -     * @method  docSize
      -     * @param   {document}    _doc
      -     * @return  Object
      -     * @static
      -     */
      -    function docSize( _doc ){
      -        _doc = _doc || document;
      -        var _r = {
      -            width: 0, height: 0, docWidth: 0, docHeight: 0, bodyWidth: 0, bodyHeight: 0, scrollWidth: 0, scrollHeight: 0
      -        };
      -
      -        _r.docWidth = _doc.documentElement.offsetWidth;
      -        _r.docHeight = _doc.documentElement.offsetHeight;
      -
      -        _doc.body && (
      -            _r.bodyWidth = _doc.body.offsetWidth
      -            , _r.bodyHeight = _doc.body.offsetHeight
      -        );
      -
      -        _r.scrollWidth = _doc.documentElement.scrollWidth
      -        _r.scrollHeight = _doc.documentElement.scrollHeight
      -
      -        _r.width = Math.max( _r.docWidth, _r.bodyWidth, _r.scrollHeight );
      -        _r.height = Math.max( _r.docHeight, _r.bodyHeight, _r.scrollHeight );
      -
      -        return _r;
      -    }
      -    /**
      -     * 获取 window 的 相关大小
      -     * @method  winSize
      -     * @param   {window}    _win,  default = window
      -     * @return  Object
      -     * @static
      -     */
      -    function winSize( _win ){
      -        _win = $( _win || window );
      -        var _r = {
      -                width: _win.width()
      -                , height: _win.height()
      -                , scrollLeft: _win.scrollLeft()
      -                , scrollTop: _win.scrollTop()
      -            };
      -        _r.viewportX = _r.scrollLeft;
      -        _r.maxViewportX = _r.scrollLeft + _r.width;
      -        _r.viewportY = _r.scrollTop;
      -        _r.maxViewportY = _r.scrollTop + _r.height;
      -        return _r;
      -    }
      -
      -    return JC.f;
      -
      -});}( typeof define === 'function' && define.amd ? define : 
      -        function ( _name, _require, _cb) { 
      -            typeof _name == 'function' && ( _cb = _name );
      -            typeof _require == 'function' && ( _cb = _require ); 
      -            _cb && _cb(); 
      -        }
      -        , window
      -    )
      -);
      -
      -    
      -
      - -
      -
      -
      -
      -
      -
      - - - - - - - - - - diff --git a/docs_api/files/.._modules_JSON_2_JSON.js.html b/docs_api/files/.._modules_JSON_2_JSON.js.html deleted file mode 100644 index 2be5fc0..0000000 --- a/docs_api/files/.._modules_JSON_2_JSON.js.html +++ /dev/null @@ -1,634 +0,0 @@ - - - - - ../modules/JSON/2/JSON.js - FChart - - - - - - - - - - - - - - -
      -
      -
      - -

      - -
      -
      - API Docs for: 0.2 -
      -
      -
      - -
      - -
      -
      -
      - Show: - - - - - - - -
      - - -
      -
      -
      -

      File: ../modules/JSON/2/JSON.js

      - -
      -
      -/**
      - * json2.js 
      - * <br />JSON is a light-weight, language independent, data interchange format.
      - * <p><a href='https://github.com/douglascrockford/JSON-js' target='_blank'>source</a>
      - * | <a href='http://www.json.org/js.html' target='_blank'>docs</a>
      - * </p>
      - * @namespace   window
      - * @class       JSON
      - * @version     2.0
      - */
      -/*
      -    json2.js
      -    2013-05-26
      -
      -    Public Domain.
      -
      -    NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
      -
      -    See http://www.JSON.org/js.html
      -
      -
      -    This code should be minified before deployment.
      -    See http://javascript.crockford.com/jsmin.html
      -
      -    USE YOUR OWN COPY. IT IS EXTREMELY UNWISE TO LOAD CODE FROM SERVERS YOU DO
      -    NOT CONTROL.
      -
      -
      -    This file creates a global JSON object containing two methods: stringify
      -    and parse.
      -
      -        JSON.stringify(value, replacer, space)
      -            value       any JavaScript value, usually an object or array.
      -
      -            replacer    an optional parameter that determines how object
      -                        values are stringified for objects. It can be a
      -                        function or an array of strings.
      -
      -            space       an optional parameter that specifies the indentation
      -                        of nested structures. If it is omitted, the text will
      -                        be packed without extra whitespace. If it is a number,
      -                        it will specify the number of spaces to indent at each
      -                        level. If it is a string (such as '\t' or '&nbsp;'),
      -                        it contains the characters used to indent at each level.
      -
      -            This method produces a JSON text from a JavaScript value.
      -
      -            When an object value is found, if the object contains a toJSON
      -            method, its toJSON method will be called and the result will be
      -            stringified. A toJSON method does not serialize: it returns the
      -            value represented by the name/value pair that should be serialized,
      -            or undefined if nothing should be serialized. The toJSON method
      -            will be passed the key associated with the value, and this will be
      -            bound to the value
      -
      -            For example, this would serialize Dates as ISO strings.
      -
      -                Date.prototype.toJSON = function (key) {
      -                    function f(n) {
      -                        // Format integers to have at least two digits.
      -                        return n < 10 ? '0' + n : n;
      -                    }
      -
      -                    return this.getUTCFullYear()   + '-' +
      -                         f(this.getUTCMonth() + 1) + '-' +
      -                         f(this.getUTCDate())      + 'T' +
      -                         f(this.getUTCHours())     + ':' +
      -                         f(this.getUTCMinutes())   + ':' +
      -                         f(this.getUTCSeconds())   + 'Z';
      -                };
      -
      -            You can provide an optional replacer method. It will be passed the
      -            key and value of each member, with this bound to the containing
      -            object. The value that is returned from your method will be
      -            serialized. If your method returns undefined, then the member will
      -            be excluded from the serialization.
      -
      -            If the replacer parameter is an array of strings, then it will be
      -            used to select the members to be serialized. It filters the results
      -            such that only members with keys listed in the replacer array are
      -            stringified.
      -
      -            Values that do not have JSON representations, such as undefined or
      -            functions, will not be serialized. Such values in objects will be
      -            dropped; in arrays they will be replaced with null. You can use
      -            a replacer function to replace those with JSON values.
      -            JSON.stringify(undefined) returns undefined.
      -
      -            The optional space parameter produces a stringification of the
      -            value that is filled with line breaks and indentation to make it
      -            easier to read.
      -
      -            If the space parameter is a non-empty string, then that string will
      -            be used for indentation. If the space parameter is a number, then
      -            the indentation will be that many spaces.
      -
      -            Example:
      -
      -            text = JSON.stringify(['e', {pluribus: 'unum'}]);
      -            // text is '["e",{"pluribus":"unum"}]'
      -
      -
      -            text = JSON.stringify(['e', {pluribus: 'unum'}], null, '\t');
      -            // text is '[\n\t"e",\n\t{\n\t\t"pluribus": "unum"\n\t}\n]'
      -
      -            text = JSON.stringify([new Date()], function (key, value) {
      -                return this[key] instanceof Date ?
      -                    'Date(' + this[key] + ')' : value;
      -            });
      -            // text is '["Date(---current time---)"]'
      -
      -
      -        JSON.parse(text, reviver)
      -            This method parses a JSON text to produce an object or array.
      -            It can throw a SyntaxError exception.
      -
      -            The optional reviver parameter is a function that can filter and
      -            transform the results. It receives each of the keys and values,
      -            and its return value is used instead of the original value.
      -            If it returns what it received, then the structure is not modified.
      -            If it returns undefined then the member is deleted.
      -
      -            Example:
      -
      -            // Parse the text. Values that look like ISO date strings will
      -            // be converted to Date objects.
      -
      -            myData = JSON.parse(text, function (key, value) {
      -                var a;
      -                if (typeof value === 'string') {
      -                    a =
      -/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/.exec(value);
      -                    if (a) {
      -                        return new Date(Date.UTC(+a[1], +a[2] - 1, +a[3], +a[4],
      -                            +a[5], +a[6]));
      -                    }
      -                }
      -                return value;
      -            });
      -
      -            myData = JSON.parse('["Date(09/09/2001)"]', function (key, value) {
      -                var d;
      -                if (typeof value === 'string' &&
      -                        value.slice(0, 5) === 'Date(' &&
      -                        value.slice(-1) === ')') {
      -                    d = new Date(value.slice(5, -1));
      -                    if (d) {
      -                        return d;
      -                    }
      -                }
      -                return value;
      -            });
      -
      -
      -    This is a reference implementation. You are free to copy, modify, or
      -    redistribute.
      -*/
      -
      -/*jslint evil: true, regexp: true */
      -
      -/*members "", "\b", "\t", "\n", "\f", "\r", "\"", JSON, "\\", apply,
      -    call, charCodeAt, getUTCDate, getUTCFullYear, getUTCHours,
      -    getUTCMinutes, getUTCMonth, getUTCSeconds, hasOwnProperty, join,
      -    lastIndex, length, parse, prototype, push, replace, slice, stringify,
      -    test, toJSON, toString, valueOf
      -*/
      -
      -
      -// Create a JSON object only if one does not already exist. We create the
      -// methods in a closure to avoid creating global variables.
      -
      -if (typeof JSON !== 'object') {
      -    JSON = {};
      -}
      -
      -(function () {
      -    'use strict';
      -
      -    function f(n) {
      -        // Format integers to have at least two digits.
      -        return n < 10 ? '0' + n : n;
      -    }
      -
      -    if (typeof Date.prototype.toJSON !== 'function') {
      -
      -        Date.prototype.toJSON = function () {
      -
      -            return isFinite(this.valueOf())
      -                ? this.getUTCFullYear()     + '-' +
      -                    f(this.getUTCMonth() + 1) + '-' +
      -                    f(this.getUTCDate())      + 'T' +
      -                    f(this.getUTCHours())     + ':' +
      -                    f(this.getUTCMinutes())   + ':' +
      -                    f(this.getUTCSeconds())   + 'Z'
      -                : null;
      -        };
      -
      -        String.prototype.toJSON      =
      -            Number.prototype.toJSON  =
      -            Boolean.prototype.toJSON = function () {
      -                return this.valueOf();
      -            };
      -    }
      -
      -    var cx = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
      -        escapable = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
      -        gap,
      -        indent,
      -        meta = {    // table of character substitutions
      -            '\b': '\\b',
      -            '\t': '\\t',
      -            '\n': '\\n',
      -            '\f': '\\f',
      -            '\r': '\\r',
      -            '"' : '\\"',
      -            '\\': '\\\\'
      -        },
      -        rep;
      -
      -
      -    function quote(string) {
      -
      -// If the string contains no control characters, no quote characters, and no
      -// backslash characters, then we can safely slap some quotes around it.
      -// Otherwise we must also replace the offending characters with safe escape
      -// sequences.
      -
      -        escapable.lastIndex = 0;
      -        return escapable.test(string) ? '"' + string.replace(escapable, function (a) {
      -            var c = meta[a];
      -            return typeof c === 'string'
      -                ? c
      -                : '\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4);
      -        }) + '"' : '"' + string + '"';
      -    }
      -
      -
      -    function str(key, holder) {
      -
      -// Produce a string from holder[key].
      -
      -        var i,          // The loop counter.
      -            k,          // The member key.
      -            v,          // The member value.
      -            length,
      -            mind = gap,
      -            partial,
      -            value = holder[key];
      -
      -// If the value has a toJSON method, call it to obtain a replacement value.
      -
      -        if (value && typeof value === 'object' &&
      -                typeof value.toJSON === 'function') {
      -            value = value.toJSON(key);
      -        }
      -
      -// If we were called with a replacer function, then call the replacer to
      -// obtain a replacement value.
      -
      -        if (typeof rep === 'function') {
      -            value = rep.call(holder, key, value);
      -        }
      -
      -// What happens next depends on the value's type.
      -
      -        switch (typeof value) {
      -        case 'string':
      -            return quote(value);
      -
      -        case 'number':
      -
      -// JSON numbers must be finite. Encode non-finite numbers as null.
      -
      -            return isFinite(value) ? String(value) : 'null';
      -
      -        case 'boolean':
      -        case 'null':
      -
      -// If the value is a boolean or null, convert it to a string. Note:
      -// typeof null does not produce 'null'. The case is included here in
      -// the remote chance that this gets fixed someday.
      -
      -            return String(value);
      -
      -// If the type is 'object', we might be dealing with an object or an array or
      -// null.
      -
      -        case 'object':
      -
      -// Due to a specification blunder in ECMAScript, typeof null is 'object',
      -// so watch out for that case.
      -
      -            if (!value) {
      -                return 'null';
      -            }
      -
      -// Make an array to hold the partial results of stringifying this object value.
      -
      -            gap += indent;
      -            partial = [];
      -
      -// Is the value an array?
      -
      -            if (Object.prototype.toString.apply(value) === '[object Array]') {
      -
      -// The value is an array. Stringify every element. Use null as a placeholder
      -// for non-JSON values.
      -
      -                length = value.length;
      -                for (i = 0; i < length; i += 1) {
      -                    partial[i] = str(i, value) || 'null';
      -                }
      -
      -// Join all of the elements together, separated with commas, and wrap them in
      -// brackets.
      -
      -                v = partial.length === 0
      -                    ? '[]'
      -                    : gap
      -                    ? '[\n' + gap + partial.join(',\n' + gap) + '\n' + mind + ']'
      -                    : '[' + partial.join(',') + ']';
      -                gap = mind;
      -                return v;
      -            }
      -
      -// If the replacer is an array, use it to select the members to be stringified.
      -
      -            if (rep && typeof rep === 'object') {
      -                length = rep.length;
      -                for (i = 0; i < length; i += 1) {
      -                    if (typeof rep[i] === 'string') {
      -                        k = rep[i];
      -                        v = str(k, value);
      -                        if (v) {
      -                            partial.push(quote(k) + (gap ? ': ' : ':') + v);
      -                        }
      -                    }
      -                }
      -            } else {
      -
      -// Otherwise, iterate through all of the keys in the object.
      -
      -                for (k in value) {
      -                    if (Object.prototype.hasOwnProperty.call(value, k)) {
      -                        v = str(k, value);
      -                        if (v) {
      -                            partial.push(quote(k) + (gap ? ': ' : ':') + v);
      -                        }
      -                    }
      -                }
      -            }
      -
      -// Join all of the member texts together, separated with commas,
      -// and wrap them in braces.
      -
      -            v = partial.length === 0
      -                ? '{}'
      -                : gap
      -                ? '{\n' + gap + partial.join(',\n' + gap) + '\n' + mind + '}'
      -                : '{' + partial.join(',') + '}';
      -            gap = mind;
      -            return v;
      -        }
      -    }
      -
      -// If the JSON object does not yet have a stringify method, give it one.
      -
      -    if (typeof JSON.stringify !== 'function') {
      -        JSON.stringify = function (value, replacer, space) {
      -
      -// The stringify method takes a value and an optional replacer, and an optional
      -// space parameter, and returns a JSON text. The replacer can be a function
      -// that can replace values, or an array of strings that will select the keys.
      -// A default replacer method can be provided. Use of the space parameter can
      -// produce text that is more easily readable.
      -
      -            var i;
      -            gap = '';
      -            indent = '';
      -
      -// If the space parameter is a number, make an indent string containing that
      -// many spaces.
      -
      -            if (typeof space === 'number') {
      -                for (i = 0; i < space; i += 1) {
      -                    indent += ' ';
      -                }
      -
      -// If the space parameter is a string, it will be used as the indent string.
      -
      -            } else if (typeof space === 'string') {
      -                indent = space;
      -            }
      -
      -// If there is a replacer, it must be a function or an array.
      -// Otherwise, throw an error.
      -
      -            rep = replacer;
      -            if (replacer && typeof replacer !== 'function' &&
      -                    (typeof replacer !== 'object' ||
      -                    typeof replacer.length !== 'number')) {
      -                throw new Error('JSON.stringify');
      -            }
      -
      -// Make a fake root object containing our value under the key of ''.
      -// Return the result of stringifying the value.
      -
      -            return str('', {'': value});
      -        };
      -    }
      -
      -
      -// If the JSON object does not yet have a parse method, give it one.
      -
      -    if (typeof JSON.parse !== 'function') {
      -        JSON.parse = function (text, reviver) {
      -
      -// The parse method takes a text and an optional reviver function, and returns
      -// a JavaScript value if the text is a valid JSON text.
      -
      -            var j;
      -
      -            function walk(holder, key) {
      -
      -// The walk method is used to recursively walk the resulting structure so
      -// that modifications can be made.
      -
      -                var k, v, value = holder[key];
      -                if (value && typeof value === 'object') {
      -                    for (k in value) {
      -                        if (Object.prototype.hasOwnProperty.call(value, k)) {
      -                            v = walk(value, k);
      -                            if (v !== undefined) {
      -                                value[k] = v;
      -                            } else {
      -                                delete value[k];
      -                            }
      -                        }
      -                    }
      -                }
      -                return reviver.call(holder, key, value);
      -            }
      -
      -
      -// Parsing happens in four stages. In the first stage, we replace certain
      -// Unicode characters with escape sequences. JavaScript handles many characters
      -// incorrectly, either silently deleting them, or treating them as line endings.
      -
      -            text = String(text);
      -            cx.lastIndex = 0;
      -            if (cx.test(text)) {
      -                text = text.replace(cx, function (a) {
      -                    return '\\u' +
      -                        ('0000' + a.charCodeAt(0).toString(16)).slice(-4);
      -                });
      -            }
      -
      -// In the second stage, we run the text against regular expressions that look
      -// for non-JSON patterns. We are especially concerned with '()' and 'new'
      -// because they can cause invocation, and '=' because it can cause mutation.
      -// But just to be safe, we want to reject all unexpected forms.
      -
      -// We split the second stage into 4 regexp operations in order to work around
      -// crippling inefficiencies in IE's and Safari's regexp engines. First we
      -// replace the JSON backslash pairs with '@' (a non-JSON character). Second, we
      -// replace all simple value tokens with ']' characters. Third, we delete all
      -// open brackets that follow a colon or comma or that begin the text. Finally,
      -// we look to see that the remaining characters are only whitespace or ']' or
      -// ',' or ':' or '{' or '}'. If that is so, then the text is safe for eval.
      -
      -            if (/^[\],:{}\s]*$/
      -                    .test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, '@')
      -                        .replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, ']')
      -                        .replace(/(?:^|:|,)(?:\s*\[)+/g, ''))) {
      -
      -// In the third stage we use the eval function to compile the text into a
      -// JavaScript structure. The '{' operator is subject to a syntactic ambiguity
      -// in JavaScript: it can begin a block or an object literal. We wrap the text
      -// in parens to eliminate the ambiguity.
      -
      -                j = eval('(' + text + ')');
      -
      -// In the optional fourth stage, we recursively walk the new structure, passing
      -// each name/value pair to a reviver function for possible transformation.
      -
      -                return typeof reviver === 'function'
      -                    ? walk({'': j}, '')
      -                    : j;
      -            }
      -
      -// If the text is not JSON parseable, then a SyntaxError is thrown.
      -
      -            throw new SyntaxError('JSON.parse');
      -        };
      -    }
      -}());
      -
      -    
      -
      - -
      -
      -
      -
      -
      -
      - - - - - - - - - - diff --git a/docs_api/files/.._modules_jquery.mousewheel_3.1.12_jquery.mousewheel.js.html b/docs_api/files/.._modules_jquery.mousewheel_3.1.12_jquery.mousewheel.js.html deleted file mode 100644 index 158815f..0000000 --- a/docs_api/files/.._modules_jquery.mousewheel_3.1.12_jquery.mousewheel.js.html +++ /dev/null @@ -1,367 +0,0 @@ - - - - - ../modules/jquery.mousewheel/3.1.12/jquery.mousewheel.js - FChart - - - - - - - - - - - - - - -
      -
      -
      - -

      - -
      -
      - API Docs for: 0.2 -
      -
      -
      - -
      - -
      -
      -
      - Show: - - - - - - - -
      - - -
      -
      -
      -

      File: ../modules/jquery.mousewheel/3.1.12/jquery.mousewheel.js

      - -
      -
      -/*! Copyright (c) 2013 Brandon Aaron (http://brandon.aaron.sh)
      - * Licensed under the MIT License (LICENSE.txt).
      - *
      - * Version: 3.1.12
      - *
      - * Requires: jQuery 1.2.2+
      - */
      -
      -/**
      - * jquery.mousewheel 3.1.12
      - * <pre><a href="https://github.com/brandonaaron/jquery-mousewheel">https://github.com/brandonaaron/jquery-mousewheel</a> 
      - * @class mousewheel
      - * @namespace   window.jQuery
      - * @global
      - */
      -
      -(function (factory) {
      -    if ( typeof define === 'function' && define.amd ) {
      -        // AMD. Register as an anonymous module.
      -        define( 'jquery.mousewheel', ['jquery'], factory);
      -    } else if (typeof exports === 'object') {
      -        // Node/CommonJS style for Browserify
      -        module.exports = factory;
      -    } else {
      -        // Browser globals
      -        factory(jQuery);
      -    }
      -}(function ($) {
      -
      -    var toFix  = ['wheel', 'mousewheel', 'DOMMouseScroll', 'MozMousePixelScroll'],
      -        toBind = ( 'onwheel' in document || document.documentMode >= 9 ) ?
      -                    ['wheel'] : ['mousewheel', 'DomMouseScroll', 'MozMousePixelScroll'],
      -        slice  = Array.prototype.slice,
      -        nullLowestDeltaTimeout, lowestDelta;
      -
      -    if ( $.event.fixHooks ) {
      -        for ( var i = toFix.length; i; ) {
      -            $.event.fixHooks[ toFix[--i] ] = $.event.mouseHooks;
      -        }
      -    }
      -
      -    var special = $.event.special.mousewheel = {
      -        version: '3.1.12',
      -
      -        setup: function() {
      -            if ( this.addEventListener ) {
      -                for ( var i = toBind.length; i; ) {
      -                    this.addEventListener( toBind[--i], handler, false );
      -                }
      -            } else {
      -                this.onmousewheel = handler;
      -            }
      -            // Store the line height and page height for this particular element
      -            $.data(this, 'mousewheel-line-height', special.getLineHeight(this));
      -            $.data(this, 'mousewheel-page-height', special.getPageHeight(this));
      -        },
      -
      -        teardown: function() {
      -            if ( this.removeEventListener ) {
      -                for ( var i = toBind.length; i; ) {
      -                    this.removeEventListener( toBind[--i], handler, false );
      -                }
      -            } else {
      -                this.onmousewheel = null;
      -            }
      -            // Clean up the data we added to the element
      -            $.removeData(this, 'mousewheel-line-height');
      -            $.removeData(this, 'mousewheel-page-height');
      -        },
      -
      -        getLineHeight: function(elem) {
      -            var $elem = $(elem),
      -                $parent = $elem['offsetParent' in $.fn ? 'offsetParent' : 'parent']();
      -            if (!$parent.length) {
      -                $parent = $('body');
      -            }
      -            return parseInt($parent.css('fontSize'), 10) || parseInt($elem.css('fontSize'), 10) || 16;
      -        },
      -
      -        getPageHeight: function(elem) {
      -            return $(elem).height();
      -        },
      -
      -        settings: {
      -            adjustOldDeltas: true, // see shouldAdjustOldDeltas() below
      -            normalizeOffset: true  // calls getBoundingClientRect for each event
      -        }
      -    };
      -
      -    $.fn.extend({
      -        mousewheel: function(fn) {
      -            return fn ? this.bind('mousewheel', fn) : this.trigger('mousewheel');
      -        },
      -
      -        unmousewheel: function(fn) {
      -            return this.unbind('mousewheel', fn);
      -        }
      -    });
      -
      -
      -    function handler(event) {
      -        var orgEvent   = event || window.event,
      -            args       = slice.call(arguments, 1),
      -            delta      = 0,
      -            deltaX     = 0,
      -            deltaY     = 0,
      -            absDelta   = 0,
      -            offsetX    = 0,
      -            offsetY    = 0;
      -        event = $.event.fix(orgEvent);
      -        event.type = 'mousewheel';
      -
      -        // Old school scrollwheel delta
      -        if ( 'detail'      in orgEvent ) { deltaY = orgEvent.detail * -1;      }
      -        if ( 'wheelDelta'  in orgEvent ) { deltaY = orgEvent.wheelDelta;       }
      -        if ( 'wheelDeltaY' in orgEvent ) { deltaY = orgEvent.wheelDeltaY;      }
      -        if ( 'wheelDeltaX' in orgEvent ) { deltaX = orgEvent.wheelDeltaX * -1; }
      -
      -        // Firefox < 17 horizontal scrolling related to DOMMouseScroll event
      -        if ( 'axis' in orgEvent && orgEvent.axis === orgEvent.HORIZONTAL_AXIS ) {
      -            deltaX = deltaY * -1;
      -            deltaY = 0;
      -        }
      -
      -        // Set delta to be deltaY or deltaX if deltaY is 0 for backwards compatabilitiy
      -        delta = deltaY === 0 ? deltaX : deltaY;
      -
      -        // New school wheel delta (wheel event)
      -        if ( 'deltaY' in orgEvent ) {
      -            deltaY = orgEvent.deltaY * -1;
      -            delta  = deltaY;
      -        }
      -        if ( 'deltaX' in orgEvent ) {
      -            deltaX = orgEvent.deltaX;
      -            if ( deltaY === 0 ) { delta  = deltaX * -1; }
      -        }
      -
      -        // No change actually happened, no reason to go any further
      -        if ( deltaY === 0 && deltaX === 0 ) { return; }
      -
      -        // Need to convert lines and pages to pixels if we aren't already in pixels
      -        // There are three delta modes:
      -        //   * deltaMode 0 is by pixels, nothing to do
      -        //   * deltaMode 1 is by lines
      -        //   * deltaMode 2 is by pages
      -        if ( orgEvent.deltaMode === 1 ) {
      -            var lineHeight = $.data(this, 'mousewheel-line-height');
      -            delta  *= lineHeight;
      -            deltaY *= lineHeight;
      -            deltaX *= lineHeight;
      -        } else if ( orgEvent.deltaMode === 2 ) {
      -            var pageHeight = $.data(this, 'mousewheel-page-height');
      -            delta  *= pageHeight;
      -            deltaY *= pageHeight;
      -            deltaX *= pageHeight;
      -        }
      -
      -        // Store lowest absolute delta to normalize the delta values
      -        absDelta = Math.max( Math.abs(deltaY), Math.abs(deltaX) );
      -
      -        if ( !lowestDelta || absDelta < lowestDelta ) {
      -            lowestDelta = absDelta;
      -
      -            // Adjust older deltas if necessary
      -            if ( shouldAdjustOldDeltas(orgEvent, absDelta) ) {
      -                lowestDelta /= 40;
      -            }
      -        }
      -
      -        // Adjust older deltas if necessary
      -        if ( shouldAdjustOldDeltas(orgEvent, absDelta) ) {
      -            // Divide all the things by 40!
      -            delta  /= 40;
      -            deltaX /= 40;
      -            deltaY /= 40;
      -        }
      -
      -        // Get a whole, normalized value for the deltas
      -        delta  = Math[ delta  >= 1 ? 'floor' : 'ceil' ](delta  / lowestDelta);
      -        deltaX = Math[ deltaX >= 1 ? 'floor' : 'ceil' ](deltaX / lowestDelta);
      -        deltaY = Math[ deltaY >= 1 ? 'floor' : 'ceil' ](deltaY / lowestDelta);
      -
      -        // Normalise offsetX and offsetY properties
      -        if ( special.settings.normalizeOffset && this.getBoundingClientRect ) {
      -            var boundingRect = this.getBoundingClientRect();
      -            offsetX = event.clientX - boundingRect.left;
      -            offsetY = event.clientY - boundingRect.top;
      -        }
      -
      -        // Add information to the event object
      -        event.deltaX = deltaX;
      -        event.deltaY = deltaY;
      -        event.deltaFactor = lowestDelta;
      -        event.offsetX = offsetX;
      -        event.offsetY = offsetY;
      -        // Go ahead and set deltaMode to 0 since we converted to pixels
      -        // Although this is a little odd since we overwrite the deltaX/Y
      -        // properties with normalized deltas.
      -        event.deltaMode = 0;
      -
      -        // Add event and delta to the front of the arguments
      -        args.unshift(event, delta, deltaX, deltaY);
      -
      -        // Clearout lowestDelta after sometime to better
      -        // handle multiple device types that give different
      -        // a different lowestDelta
      -        // Ex: trackpad = 3 and mouse wheel = 120
      -        if (nullLowestDeltaTimeout) { clearTimeout(nullLowestDeltaTimeout); }
      -        nullLowestDeltaTimeout = setTimeout(nullLowestDelta, 200);
      -
      -        return ($.event.dispatch || $.event.handle).apply(this, args);
      -    }
      -
      -    function nullLowestDelta() {
      -        lowestDelta = null;
      -    }
      -
      -    function shouldAdjustOldDeltas(orgEvent, absDelta) {
      -        // If this is an older event and the delta is divisable by 120,
      -        // then we are assuming that the browser is treating this as an
      -        // older mouse wheel event and that we should divide the deltas
      -        // by 40 to try and get a more usable deltaFactor.
      -        // Side note, this actually impacts the reported scroll distance
      -        // in older browsers and can cause scrolling to be slower than native.
      -        // Turn this off by setting $.event.special.mousewheel.settings.adjustOldDeltas to false.
      -        return special.settings.adjustOldDeltas && orgEvent.type === 'mousewheel' && absDelta % 120 === 0;
      -    }
      -
      -}));
      -
      -    
      -
      - -
      -
      -
      -
      -
      -
      - - - - - - - - - - diff --git a/docs_api/files/.._modules_swfobject_2.3_swfobject.js.html b/docs_api/files/.._modules_swfobject_2.3_swfobject.js.html deleted file mode 100644 index 0d0af6d..0000000 --- a/docs_api/files/.._modules_swfobject_2.3_swfobject.js.html +++ /dev/null @@ -1,969 +0,0 @@ - - - - - ../modules/swfobject/2.3/swfobject.js - FChart - - - - - - - - - - - - - - -
      -
      -
      - -

      - -
      -
      - API Docs for: 0.2 -
      -
      -
      - -
      - -
      -
      -
      - Show: - - - - - - - -
      - - -
      -
      -
      -

      File: ../modules/swfobject/2.3/swfobject.js

      - -
      -
      -/**
      - * swfobject v2.3
      - * <br />An open source Javascript framework for detecting the Adobe Flash Player plugin and embedding Flash (swf) files.
      - * <p><a href='https://github.com/swfobject/swfobject' target='_blank'>source</a>
      - * | <a href='https://code.google.com/p/swfobject/wiki/documentation' target='_blank'>docs</a>
      - * | <a href='../../modules/swfobject/2.3/_demo' target='_blank'>demo link</a>
      - * | <a href='http://www.bobbyvandersluis.com/swfobject/generator/index.html' target='_blank'>html generator</a>
      - * </p>
      - * @namespace   window
      - * @class       swfobject
      - * @version     2.3
      - */
      -
      -/*!    swfobject v2.3.20130521 <http://github.com/swfobject/swfobject>
      -    is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
      -*/
      -
      -/* global ActiveXObject: false */
      -
      -window.swfobject = function () {
      -
      -    var UNDEF = "undefined",
      -        OBJECT = "object",
      -        SHOCKWAVE_FLASH = "Shockwave Flash",
      -        SHOCKWAVE_FLASH_AX = "ShockwaveFlash.ShockwaveFlash",
      -        FLASH_MIME_TYPE = "application/x-shockwave-flash",
      -        EXPRESS_INSTALL_ID = "SWFObjectExprInst",
      -        ON_READY_STATE_CHANGE = "onreadystatechange",
      -
      -        win = window,
      -        doc = document,
      -        nav = navigator,
      -
      -        plugin = false,
      -        domLoadFnArr = [],
      -        regObjArr = [],
      -        objIdArr = [],
      -        listenersArr = [],
      -        storedFbContent,
      -        storedFbContentId,
      -        storedCallbackFn,
      -        storedCallbackObj,
      -        isDomLoaded = false,
      -        isExpressInstallActive = false,
      -        dynamicStylesheet,
      -        dynamicStylesheetMedia,
      -        autoHideShow = true,
      -        encodeURIEnabled = false,
      -
      -    /* Centralized function for browser feature detection
      -        - User agent string detection is only used when no good alternative is possible
      -        - Is executed directly for optimal performance
      -    */
      -    ua = function () {
      -        var w3cdom = typeof doc.getElementById !== UNDEF && typeof doc.getElementsByTagName !== UNDEF && typeof doc.createElement !== UNDEF,
      -            u = nav.userAgent.toLowerCase(),
      -            p = nav.platform.toLowerCase(),
      -            windows = p ? /win/.test(p) : /win/.test(u),
      -            mac = p ? /mac/.test(p) : /mac/.test(u),
      -            webkit = /webkit/.test(u) ? parseFloat(u.replace(/^.*webkit\/(\d+(\.\d+)?).*$/, "$1")) : false, // returns either the webkit version or false if not webkit
      -            ie = nav.appName === "Microsoft Internet Explorer",
      -            playerVersion = [0, 0, 0],
      -            d = null;
      -        if (typeof nav.plugins !== UNDEF && typeof nav.plugins[SHOCKWAVE_FLASH] === OBJECT) {
      -            d = nav.plugins[SHOCKWAVE_FLASH].description;
      -            // nav.mimeTypes["application/x-shockwave-flash"].enabledPlugin indicates whether plug-ins are enabled or disabled in Safari 3+
      -            if (d && (typeof nav.mimeTypes !== UNDEF && nav.mimeTypes[FLASH_MIME_TYPE] && nav.mimeTypes[FLASH_MIME_TYPE].enabledPlugin)) {
      -                plugin = true;
      -                ie = false; // cascaded feature detection for Internet Explorer
      -                d = d.replace(/^.*\s+(\S+\s+\S+$)/, "$1");
      -                playerVersion[0] = toInt(d.replace(/^(.*)\..*$/, "$1"));
      -                playerVersion[1] = toInt(d.replace(/^.*\.(.*)\s.*$/, "$1"));
      -                playerVersion[2] = /[a-zA-Z]/.test(d) ? toInt(d.replace(/^.*[a-zA-Z]+(.*)$/, "$1")) : 0;
      -            }
      -        }
      -        else if (typeof win.ActiveXObject !== UNDEF) {
      -            try {
      -                var a = new ActiveXObject(SHOCKWAVE_FLASH_AX);
      -                if (a) { // a will return null when ActiveX is disabled
      -                    d = a.GetVariable("$version");
      -                    if (d) {
      -                        ie = true; // cascaded feature detection for Internet Explorer
      -                        d = d.split(" ")[1].split(",");
      -                        playerVersion = [toInt(d[0]), toInt(d[1]), toInt(d[2])];
      -                    }
      -                }
      -            }
      -            catch (e) {}
      -        }
      -        return {w3: w3cdom, pv: playerVersion, wk: webkit, ie: ie, win: windows, mac: mac};
      -    }(),
      -
      -    /* Cross-browser onDomLoad
      -        - Will fire an event as soon as the DOM of a web page is loaded
      -        - Internet Explorer workaround based on Diego Perini's solution: http://javascript.nwbox.com/IEContentLoaded/
      -        - Regular onload serves as fallback
      -    */
      -    onDomLoad = function () {
      -        if (!ua.w3) { return; }
      -        if ((typeof doc.readyState !== UNDEF && (doc.readyState === "complete" || doc.readyState === "interactive")) || (typeof doc.readyState === UNDEF && (doc.getElementsByTagName("body")[0] || doc.body))) { // function is fired after onload, e.g. when script is inserted dynamically
      -            callDomLoadFunctions();
      -        }
      -        if (!isDomLoaded) {
      -            if (typeof doc.addEventListener !== UNDEF) {
      -                doc.addEventListener("DOMContentLoaded", callDomLoadFunctions, false);
      -            }
      -            if (ua.ie) {
      -                doc.attachEvent(ON_READY_STATE_CHANGE, function detach() {
      -                    if (doc.readyState === "complete") {
      -                        doc.detachEvent(ON_READY_STATE_CHANGE, detach);
      -                        callDomLoadFunctions();
      -                    }
      -                });
      -                if (win == top) { // if not inside an iframe
      -                    (function checkDomLoadedIE() {
      -                        if (isDomLoaded) { return; }
      -                        try {
      -                            doc.documentElement.doScroll("left");
      -                        }
      -                        catch (e) {
      -                            setTimeout(checkDomLoadedIE, 0);
      -                            return;
      -                        }
      -                        callDomLoadFunctions();
      -                    }());
      -                }
      -            }
      -            if (ua.wk) {
      -                (function checkDomLoadedWK() {
      -                    if (isDomLoaded) { return; }
      -                    if (!/loaded|complete/.test(doc.readyState)) {
      -                        setTimeout(checkDomLoadedWK, 0);
      -                        return;
      -                    }
      -                    callDomLoadFunctions();
      -                }());
      -            }
      -        }
      -    }();
      -
      -    function callDomLoadFunctions() {
      -        if (isDomLoaded || !document.getElementsByTagName("body")[0]) { return; }
      -        try { // test if we can really add/remove elements to/from the DOM; we don't want to fire it too early
      -            var t, span = createElement("span");
      -            span.style.display = "none"; //hide the span in case someone has styled spans via CSS
      -            t = doc.getElementsByTagName("body")[0].appendChild(span);
      -            t.parentNode.removeChild(t);
      -            t = null; //clear the variables
      -            span = null;
      -        }
      -        catch (e) { return; }
      -        isDomLoaded = true;
      -        var dl = domLoadFnArr.length;
      -        for (var i = 0; i < dl; i++) {
      -            domLoadFnArr[i]();
      -        }
      -    }
      -
      -    function addDomLoadEvent(fn) {
      -        if (isDomLoaded) {
      -            fn();
      -        }
      -        else {
      -            domLoadFnArr[domLoadFnArr.length] = fn; // Array.push() is only available in IE5.5+
      -        }
      -    }
      -
      -    /* Cross-browser onload
      -        - Based on James Edwards' solution: http://brothercake.com/site/resources/scripts/onload/
      -        - Will fire an event as soon as a web page including all of its assets are loaded
      -     */
      -    function addLoadEvent(fn) {
      -        if (typeof win.addEventListener !== UNDEF) {
      -            win.addEventListener("load", fn, false);
      -        }
      -        else if (typeof doc.addEventListener !== UNDEF) {
      -            doc.addEventListener("load", fn, false);
      -        }
      -        else if (typeof win.attachEvent !== UNDEF) {
      -            addListener(win, "onload", fn);
      -        }
      -        else if (typeof win.onload === "function") {
      -            var fnOld = win.onload;
      -            win.onload = function () {
      -                fnOld();
      -                fn();
      -            };
      -        }
      -        else {
      -            win.onload = fn;
      -        }
      -    }
      -
      -    /* Detect the Flash Player version for non-Internet Explorer browsers
      -        - Detecting the plug-in version via the object element is more precise than using the plugins collection item's description:
      -          a. Both release and build numbers can be detected
      -          b. Avoid wrong descriptions by corrupt installers provided by Adobe
      -          c. Avoid wrong descriptions by multiple Flash Player entries in the plugin Array, caused by incorrect browser imports
      -        - Disadvantage of this method is that it depends on the availability of the DOM, while the plugins collection is immediately available
      -    */
      -    function testPlayerVersion() {
      -        var b = doc.getElementsByTagName("body")[0];
      -        var o = createElement(OBJECT);
      -        o.setAttribute("style", "visibility: hidden;");
      -        o.setAttribute("type", FLASH_MIME_TYPE);
      -        var t = b.appendChild(o);
      -        if (t) {
      -            var counter = 0;
      -            (function checkGetVariable() {
      -                if (typeof t.GetVariable !== UNDEF) {
      -                    try {
      -                        var d = t.GetVariable("$version");
      -                        if (d) {
      -                            d = d.split(" ")[1].split(",");
      -                            ua.pv = [toInt(d[0]), toInt(d[1]), toInt(d[2])];
      -                        }
      -                    } catch (e) {
      -                        //t.GetVariable("$version") is known to fail in Flash Player 8 on Firefox
      -                        //If this error is encountered, assume FP8 or lower. Time to upgrade.
      -                        ua.pv = [8, 0, 0];
      -                    }
      -                }
      -                else if (counter < 10) {
      -                    counter++;
      -                    setTimeout(checkGetVariable, 10);
      -                    return;
      -                }
      -                b.removeChild(o);
      -                t = null;
      -                matchVersions();
      -            }());
      -        }
      -        else {
      -            matchVersions();
      -        }
      -    }
      -
      -    /* Perform Flash Player and SWF version matching; static publishing only
      -    */
      -    function matchVersions() {
      -        var rl = regObjArr.length;
      -        if (rl > 0) {
      -            for (var i = 0; i < rl; i++) { // for each registered object element
      -                var id = regObjArr[i].id;
      -                var cb = regObjArr[i].callbackFn;
      -                var cbObj = {success: false, id: id};
      -                if (ua.pv[0] > 0) {
      -                    var obj = getElementById(id);
      -                    if (obj) {
      -                        if (hasPlayerVersion(regObjArr[i].swfVersion) && !(ua.wk && ua.wk < 312)) { // Flash Player version >= published SWF version: Houston, we have a match!
      -                            setVisibility(id, true);
      -                            if (cb) {
      -                                cbObj.success = true;
      -                                cbObj.ref = getObjectById(id);
      -                                cbObj.id = id;
      -                                cb(cbObj);
      -                            }
      -                        }
      -                        else if (regObjArr[i].expressInstall && canExpressInstall()) { // show the Adobe Express Install dialog if set by the web page author and if supported
      -                            var att = {};
      -                            att.data = regObjArr[i].expressInstall;
      -                            att.width = obj.getAttribute("width") || "0";
      -                            att.height = obj.getAttribute("height") || "0";
      -                            if (obj.getAttribute("class")) { att.styleclass = obj.getAttribute("class"); }
      -                            if (obj.getAttribute("align")) { att.align = obj.getAttribute("align"); }
      -                            // parse HTML object param element's name-value pairs
      -                            var par = {};
      -                            var p = obj.getElementsByTagName("param");
      -                            var pl = p.length;
      -                            for (var j = 0; j < pl; j++) {
      -                                if (p[j].getAttribute("name").toLowerCase() !== "movie") {
      -                                    par[p[j].getAttribute("name")] = p[j].getAttribute("value");
      -                                }
      -                            }
      -                            showExpressInstall(att, par, id, cb);
      -                        }
      -                        else { // Flash Player and SWF version mismatch or an older Webkit engine that ignores the HTML object element's nested param elements: display fallback content instead of SWF
      -                            displayFbContent(obj);
      -                            if (cb) { cb(cbObj); }
      -                        }
      -                    }
      -                }
      -                else { // if no Flash Player is installed or the fp version cannot be detected we let the HTML object element do its job (either show a SWF or fallback content)
      -                    setVisibility(id, true);
      -                    if (cb) {
      -                        var o = getObjectById(id); // test whether there is an HTML object element or not
      -                        if (o && typeof o.SetVariable !== UNDEF) {
      -                            cbObj.success = true;
      -                            cbObj.ref = o;
      -                            cbObj.id = o.id;
      -                        }
      -                        cb(cbObj);
      -                    }
      -                }
      -            }
      -        }
      -    }
      -
      -    /* Main function
      -        - Will preferably execute onDomLoad, otherwise onload (as a fallback)
      -    */
      -    domLoadFnArr[0] = function () {
      -        if (plugin) {
      -            testPlayerVersion();
      -        }
      -        else {
      -            matchVersions();
      -        }
      -    };
      -
      -    function getObjectById(objectIdStr) {
      -        var r = null,
      -            o = getElementById(objectIdStr);
      -
      -        if (o && o.nodeName.toUpperCase() === "OBJECT") {
      -            //If targeted object is valid Flash file
      -            if (typeof o.SetVariable !== UNDEF) {
      -                r = o;
      -            } else {
      -                //If SetVariable is not working on targeted object but a nested object is
      -                //available, assume classic nested object markup. Return nested object.
      -
      -                //If SetVariable is not working on targeted object and there is no nested object,
      -                //return the original object anyway. This is probably new simplified markup.
      -
      -                r = o.getElementsByTagName(OBJECT)[0] || o;
      -            }
      -        }
      -
      -        return r;
      -    }
      -
      -    /* Requirements for Adobe Express Install
      -        - only one instance can be active at a time
      -        - fp 6.0.65 or higher
      -        - Win/Mac OS only
      -        - no Webkit engines older than version 312
      -    */
      -    function canExpressInstall() {
      -        return !isExpressInstallActive && hasPlayerVersion("6.0.65") && (ua.win || ua.mac) && !(ua.wk && ua.wk < 312);
      -    }
      -
      -    /* Show the Adobe Express Install dialog
      -        - Reference: http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=6a253b75
      -    */
      -    function showExpressInstall(att, par, replaceElemIdStr, callbackFn) {
      -
      -        var obj = getElementById(replaceElemIdStr);
      -
      -        //Ensure that replaceElemIdStr is really a string and not an element
      -        replaceElemIdStr = getId(replaceElemIdStr);
      -
      -        isExpressInstallActive = true;
      -        storedCallbackFn = callbackFn || null;
      -        storedCallbackObj = {success: false, id: replaceElemIdStr};
      -
      -        if (obj) {
      -            if (obj.nodeName.toUpperCase() === "OBJECT") { // static publishing
      -                storedFbContent = abstractFbContent(obj);
      -                storedFbContentId = null;
      -            }
      -            else { // dynamic publishing
      -                storedFbContent = obj;
      -                storedFbContentId = replaceElemIdStr;
      -            }
      -            att.id = EXPRESS_INSTALL_ID;
      -            if (typeof att.width === UNDEF || (!/%$/.test(att.width) && toInt(att.width) < 310)) { att.width = "310"; }
      -            if (typeof att.height === UNDEF || (!/%$/.test(att.height) && toInt(att.height) < 137)) { att.height = "137"; }
      -            var pt = ua.ie ? "ActiveX" : "PlugIn",
      -                fv = "MMredirectURL=" + encodeURIComponent(win.location.toString().replace(/&/g, "%26")) + "&MMplayerType=" + pt + "&MMdoctitle=" + encodeURIComponent(doc.title.slice(0, 47) + " - Flash Player Installation");
      -            if (typeof par.flashvars !== UNDEF) {
      -                par.flashvars += "&" + fv;
      -            }
      -            else {
      -                par.flashvars = fv;
      -            }
      -            // IE only: when a SWF is loading (AND: not available in cache) wait for the readyState of the object element to become 4 before removing it,
      -            // because you cannot properly cancel a loading SWF file without breaking browser load references, also obj.onreadystatechange doesn't work
      -            if (ua.ie && obj.readyState != 4) {
      -                var newObj = createElement("div");
      -                replaceElemIdStr += "SWFObjectNew";
      -                newObj.setAttribute("id", replaceElemIdStr);
      -                obj.parentNode.insertBefore(newObj, obj); // insert placeholder div that will be replaced by the object element that loads expressinstall.swf
      -                obj.style.display = "none";
      -                removeSWF(obj); //removeSWF accepts elements now
      -            }
      -            createSWF(att, par, replaceElemIdStr);
      -        }
      -    }
      -
      -    /* Functions to abstract and display fallback content
      -    */
      -    function displayFbContent(obj) {
      -        if (ua.ie && obj.readyState != 4) {
      -            // IE only: when a SWF is loading (AND: not available in cache) wait for the readyState of the object element to become 4 before removing it,
      -            // because you cannot properly cancel a loading SWF file without breaking browser load references, also obj.onreadystatechange doesn't work
      -            obj.style.display = "none";
      -            var el = createElement("div");
      -            obj.parentNode.insertBefore(el, obj); // insert placeholder div that will be replaced by the fallback content
      -            el.parentNode.replaceChild(abstractFbContent(obj), el);
      -            removeSWF(obj); //removeSWF accepts elements now
      -        }
      -        else {
      -            obj.parentNode.replaceChild(abstractFbContent(obj), obj);
      -        }
      -    }
      -
      -    function abstractFbContent(obj) {
      -        var ac = createElement("div");
      -        if (ua.win && ua.ie) {
      -            ac.innerHTML = obj.innerHTML;
      -        }
      -        else {
      -            var nestedObj = obj.getElementsByTagName(OBJECT)[0];
      -            if (nestedObj) {
      -                var c = nestedObj.childNodes;
      -                if (c) {
      -                    var cl = c.length;
      -                    for (var i = 0; i < cl; i++) {
      -                        if (!(c[i].nodeType == 1 && c[i].nodeName === "PARAM") && !(c[i].nodeType == 8)) {
      -                            ac.appendChild(c[i].cloneNode(true));
      -                        }
      -                    }
      -                }
      -            }
      -        }
      -        return ac;
      -    }
      -
      -    function createIeObject(url, paramStr) {
      -        var div = createElement("div");
      -        div.innerHTML = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'><param name='movie' value='" + url + "'>" + paramStr + "</object>";
      -        return div.firstChild;
      -    }
      -
      -    /* Cross-browser dynamic SWF creation
      -    */
      -    function createSWF(attObj, parObj, id) {
      -        var r, el = getElementById(id);
      -        id = getId(id); // ensure id is truly an ID and not an element
      -
      -        if (ua.wk && ua.wk < 312) { return r; }
      -
      -        if (el) {
      -            var o = (ua.ie) ? createElement("div") : createElement(OBJECT),
      -                attr,
      -                attrLower,
      -                param;
      -
      -            if (typeof attObj.id === UNDEF) { // if no 'id' is defined for the object element, it will inherit the 'id' from the fallback content
      -                attObj.id = id;
      -            }
      -
      -            //Add params
      -            for (param in parObj) {
      -                //filter out prototype additions from other potential libraries and IE specific param element
      -                if (parObj.hasOwnProperty(param) && param.toLowerCase() !== "movie") {
      -                    createObjParam(o, param, parObj[param]);
      -                }
      -            }
      -
      -            //Create IE object, complete with param nodes
      -            if (ua.ie) { o = createIeObject(attObj.data, o.innerHTML); }
      -
      -            //Add attributes to object
      -            for (attr in attObj) {
      -                if (attObj.hasOwnProperty(attr)) { // filter out prototype additions from other potential libraries
      -                    attrLower = attr.toLowerCase();
      -
      -                    // 'class' is an ECMA4 reserved keyword
      -                    if (attrLower === "styleclass") {
      -                        o.setAttribute("class", attObj[attr]);
      -                    } else if (attrLower !== "classid" && attrLower !== "data") {
      -                        o.setAttribute(attr, attObj[attr]);
      -                    }
      -                }
      -            }
      -
      -            if (ua.ie) {
      -                objIdArr[objIdArr.length] = attObj.id; // stored to fix object 'leaks' on unload (dynamic publishing only)
      -            } else {
      -                o.setAttribute("type", FLASH_MIME_TYPE);
      -                o.setAttribute("data", attObj.data);
      -            }
      -
      -            el.parentNode.replaceChild(o, el);
      -            r = o;
      -        }
      -
      -        return r;
      -    }
      -
      -    function createObjParam(el, pName, pValue) {
      -        var p = createElement("param");
      -        p.setAttribute("name", pName);
      -        p.setAttribute("value", pValue);
      -        el.appendChild(p);
      -    }
      -
      -    /* Cross-browser SWF removal
      -        - Especially needed to safely and completely remove a SWF in Internet Explorer
      -    */
      -    function removeSWF(id) {
      -        var obj = getElementById(id);
      -        if (obj && obj.nodeName.toUpperCase() === "OBJECT") {
      -            if (ua.ie) {
      -                obj.style.display = "none";
      -                (function removeSWFInIE() {
      -                    if (obj.readyState == 4) {
      -                        //This step prevents memory leaks in Internet Explorer
      -                        for (var i in obj) {
      -                            if (typeof obj[i] === "function") {
      -                                obj[i] = null;
      -                            }
      -                        }
      -                        obj.parentNode.removeChild(obj);
      -                    } else {
      -                        setTimeout(removeSWFInIE, 10);
      -                    }
      -                }());
      -            }
      -            else {
      -                obj.parentNode.removeChild(obj);
      -            }
      -        }
      -    }
      -
      -    function isElement(id) {
      -        return (id && id.nodeType && id.nodeType === 1);
      -    }
      -
      -    function getId(thing) {
      -        return (isElement(thing)) ? thing.id : thing;
      -    }
      -
      -    /* Functions to optimize JavaScript compression
      -    */
      -    function getElementById(id) {
      -
      -        //Allow users to pass an element OR an element's ID
      -        if (isElement(id)) { return id; }
      -
      -        var el = null;
      -        try {
      -            el = doc.getElementById(id);
      -        }
      -        catch (e) {}
      -        return el;
      -    }
      -
      -    function createElement(el) {
      -        return doc.createElement(el);
      -    }
      -
      -    //To aid compression; replaces 14 instances of pareseInt with radix
      -    function toInt(str) {
      -        return parseInt(str, 10);
      -    }
      -
      -    /* Updated attachEvent function for Internet Explorer
      -        - Stores attachEvent information in an Array, so on unload the detachEvent functions can be called to avoid memory leaks
      -    */
      -    function addListener(target, eventType, fn) {
      -        target.attachEvent(eventType, fn);
      -        listenersArr[listenersArr.length] = [target, eventType, fn];
      -    }
      -
      -    /* Flash Player and SWF content version matching
      -    */
      -    function hasPlayerVersion(rv) {
      -        rv += ""; //Coerce number to string, if needed.
      -        var pv = ua.pv, v = rv.split(".");
      -        v[0] = toInt(v[0]);
      -        v[1] = toInt(v[1]) || 0; // supports short notation, e.g. "9" instead of "9.0.0"
      -        v[2] = toInt(v[2]) || 0;
      -        return (pv[0] > v[0] || (pv[0] == v[0] && pv[1] > v[1]) || (pv[0] == v[0] && pv[1] == v[1] && pv[2] >= v[2])) ? true : false;
      -    }
      -
      -    /* Cross-browser dynamic CSS creation
      -        - Based on Bobby van der Sluis' solution: http://www.bobbyvandersluis.com/articles/dynamicCSS.php
      -    */
      -    function createCSS(sel, decl, media, newStyle) {
      -        var h = doc.getElementsByTagName("head")[0];
      -        if (!h) { return; } // to also support badly authored HTML pages that lack a head element
      -        var m = (typeof media === "string") ? media : "screen";
      -        if (newStyle) {
      -            dynamicStylesheet = null;
      -            dynamicStylesheetMedia = null;
      -        }
      -        if (!dynamicStylesheet || dynamicStylesheetMedia != m) {
      -            // create dynamic stylesheet + get a global reference to it
      -            var s = createElement("style");
      -            s.setAttribute("type", "text/css");
      -            s.setAttribute("media", m);
      -            dynamicStylesheet = h.appendChild(s);
      -            if (ua.ie && typeof doc.styleSheets !== UNDEF && doc.styleSheets.length > 0) {
      -                dynamicStylesheet = doc.styleSheets[doc.styleSheets.length - 1];
      -            }
      -            dynamicStylesheetMedia = m;
      -        }
      -        // add style rule
      -        if (dynamicStylesheet) {
      -            if (typeof dynamicStylesheet.addRule !== UNDEF) {
      -                dynamicStylesheet.addRule(sel, decl);
      -            } else if (typeof doc.createTextNode !== UNDEF) {
      -                dynamicStylesheet.appendChild(doc.createTextNode(sel + " {" + decl + "}"));
      -            }
      -        }
      -    }
      -
      -    function setVisibility(id, isVisible) {
      -        if (!autoHideShow) { return; }
      -        var v = isVisible ? "visible" : "hidden",
      -            el = getElementById(id);
      -        if (isDomLoaded && el) {
      -            el.style.visibility = v;
      -        } else if (typeof id === "string") {
      -            createCSS("#" + id, "visibility:" + v);
      -        }
      -    }
      -
      -    /* Filter to avoid XSS attacks
      -    */
      -    function urlEncodeIfNecessary(s) {
      -        var regex = /[\\\"<>\.;]/;
      -        var hasBadChars = regex.exec(s) !== null;
      -        return hasBadChars && typeof encodeURIComponent !== UNDEF ? encodeURIComponent(s) : s;
      -    }
      -
      -    /* Release memory to avoid memory leaks caused by closures, fix hanging audio/video threads and force open sockets/NetConnections to disconnect (Internet Explorer only)
      -    */
      -    var cleanup = function () {
      -        if (ua.ie) {
      -            window.attachEvent("onunload", function () {
      -                // remove listeners to avoid memory leaks
      -                var ll = listenersArr.length;
      -                for (var i = 0; i < ll; i++) {
      -                    listenersArr[i][0].detachEvent(listenersArr[i][1], listenersArr[i][2]);
      -                }
      -                // cleanup dynamically embedded objects to fix audio/video threads and force open sockets and NetConnections to disconnect
      -                var il = objIdArr.length;
      -                for (var j = 0; j < il; j++) {
      -                    removeSWF(objIdArr[j]);
      -                }
      -                // cleanup library's main closures to avoid memory leaks
      -                for (var k in ua) {
      -                    ua[k] = null;
      -                }
      -                ua = null;
      -                for (var l in swfobject) {
      -                    swfobject[l] = null;
      -                }
      -                swfobject = null;
      -            });
      -        }
      -    }();
      -
      -    return {
      -        /* Public API
      -            - Reference: http://code.google.com/p/swfobject/wiki/documentation
      -        */
      -        registerObject: function (objectIdStr, swfVersionStr, xiSwfUrlStr, callbackFn) {
      -            if (ua.w3 && objectIdStr && swfVersionStr) {
      -                var regObj = {};
      -                regObj.id = objectIdStr;
      -                regObj.swfVersion = swfVersionStr;
      -                regObj.expressInstall = xiSwfUrlStr;
      -                regObj.callbackFn = callbackFn;
      -                regObjArr[regObjArr.length] = regObj;
      -                setVisibility(objectIdStr, false);
      -            }
      -            else if (callbackFn) {
      -                callbackFn({success: false, id: objectIdStr});
      -            }
      -        },
      -
      -        getObjectById: function (objectIdStr) {
      -            if (ua.w3) {
      -                return getObjectById(objectIdStr);
      -            }
      -        },
      -
      -        embedSWF: function (swfUrlStr, replaceElemIdStr, widthStr, heightStr, swfVersionStr, xiSwfUrlStr, flashvarsObj, parObj, attObj, callbackFn) {
      -
      -            var id = getId(replaceElemIdStr),
      -                callbackObj = {success: false, id: id};
      -
      -            if (ua.w3 && !(ua.wk && ua.wk < 312) && swfUrlStr && replaceElemIdStr && widthStr && heightStr && swfVersionStr) {
      -                setVisibility(id, false);
      -                addDomLoadEvent(function () {
      -                    widthStr += ""; // auto-convert to string
      -                    heightStr += "";
      -                    var att = {};
      -                    if (attObj && typeof attObj === OBJECT) {
      -                        for (var i in attObj) { // copy object to avoid the use of references, because web authors often reuse attObj for multiple SWFs
      -                            att[i] = attObj[i];
      -                        }
      -                    }
      -                    att.data = swfUrlStr;
      -                    att.width = widthStr;
      -                    att.height = heightStr;
      -                    var par = {};
      -                    if (parObj && typeof parObj === OBJECT) {
      -                        for (var j in parObj) { // copy object to avoid the use of references, because web authors often reuse parObj for multiple SWFs
      -                            par[j] = parObj[j];
      -                        }
      -                    }
      -                    if (flashvarsObj && typeof flashvarsObj === OBJECT) {
      -                        for (var k in flashvarsObj) { // copy object to avoid the use of references, because web authors often reuse flashvarsObj for multiple SWFs
      -                            if (flashvarsObj.hasOwnProperty(k)) {
      -
      -                                var key = (encodeURIEnabled) ? encodeURIComponent(k) : k,
      -                                    value = (encodeURIEnabled) ? encodeURIComponent(flashvarsObj[k]) : flashvarsObj[k];
      -
      -                                if (typeof par.flashvars !== UNDEF) {
      -                                    par.flashvars += "&" + key + "=" + value;
      -                                }
      -                                else {
      -                                    par.flashvars = key + "=" + value;
      -                                }
      -
      -                            }
      -                        }
      -                    }
      -                    if (hasPlayerVersion(swfVersionStr)) { // create SWF
      -                        var obj = createSWF(att, par, replaceElemIdStr);
      -                        if (att.id == id) {
      -                            setVisibility(id, true);
      -                        }
      -                        callbackObj.success = true;
      -                        callbackObj.ref = obj;
      -                        callbackObj.id = obj.id;
      -                    }
      -                    else if (xiSwfUrlStr && canExpressInstall()) { // show Adobe Express Install
      -                        att.data = xiSwfUrlStr;
      -                        showExpressInstall(att, par, replaceElemIdStr, callbackFn);
      -                        return;
      -                    }
      -                    else { // show fallback content
      -                        setVisibility(id, true);
      -                    }
      -                    if (callbackFn) { callbackFn(callbackObj); }
      -                });
      -            }
      -            else if (callbackFn) { callbackFn(callbackObj); }
      -        },
      -
      -        switchOffAutoHideShow: function () {
      -            autoHideShow = false;
      -        },
      -
      -        enableUriEncoding: function (bool) {
      -            encodeURIEnabled = (typeof bool === UNDEF) ? true : bool;
      -        },
      -
      -        ua: ua,
      -
      -        getFlashPlayerVersion: function () {
      -            return {major: ua.pv[0], minor: ua.pv[1], release: ua.pv[2]};
      -        },
      -
      -        hasFlashPlayerVersion: hasPlayerVersion,
      -
      -        createSWF: function (attObj, parObj, replaceElemIdStr) {
      -            if (ua.w3) {
      -                return createSWF(attObj, parObj, replaceElemIdStr);
      -            }
      -            else {
      -                return undefined;
      -            }
      -        },
      -
      -        showExpressInstall: function (att, par, replaceElemIdStr, callbackFn) {
      -            if (ua.w3 && canExpressInstall()) {
      -                showExpressInstall(att, par, replaceElemIdStr, callbackFn);
      -            }
      -        },
      -
      -        removeSWF: function (objElemIdStr) {
      -            if (ua.w3) {
      -                removeSWF(objElemIdStr);
      -            }
      -        },
      -
      -        createCSS: function (selStr, declStr, mediaStr, newStyleBoolean) {
      -            if (ua.w3) {
      -                createCSS(selStr, declStr, mediaStr, newStyleBoolean);
      -            }
      -        },
      -
      -        addDomLoadEvent: addDomLoadEvent,
      -
      -        addLoadEvent: addLoadEvent,
      -
      -        getQueryParamValue: function (param) {
      -            var q = doc.location.search || doc.location.hash;
      -            if (q) {
      -                if (/\?/.test(q)) { q = q.split("?")[1]; } // strip question mark
      -                if (!param) {
      -                    return urlEncodeIfNecessary(q);
      -                }
      -                var pairs = q.split("&");
      -                for (var i = 0; i < pairs.length; i++) {
      -                    if (pairs[i].substring(0, pairs[i].indexOf("=")) == param) {
      -                        return urlEncodeIfNecessary(pairs[i].substring((pairs[i].indexOf("=") + 1)));
      -                    }
      -                }
      -            }
      -            return "";
      -        },
      -
      -        // For internal usage only
      -        expressInstallCallback: function () {
      -            if (isExpressInstallActive) {
      -                var obj = getElementById(EXPRESS_INSTALL_ID);
      -                if (obj && storedFbContent) {
      -                    obj.parentNode.replaceChild(storedFbContent, obj);
      -                    if (storedFbContentId) {
      -                        setVisibility(storedFbContentId, true);
      -                        if (ua.ie) { storedFbContent.style.display = "block"; }
      -                    }
      -                    if (storedCallbackFn) { storedCallbackFn(storedCallbackObj); }
      -                }
      -                isExpressInstallActive = false;
      -            }
      -        },
      -
      -        version: "2.3"
      -
      -    };
      -}();
      -
      -    
      -
      - -
      -
      -
      -
      -
      -
      - - - - - - - - - - diff --git a/docs_api/files/.._nginx_config.js.html b/docs_api/files/.._nginx_config.js.html deleted file mode 100644 index 243758d..0000000 --- a/docs_api/files/.._nginx_config.js.html +++ /dev/null @@ -1,219 +0,0 @@ - - - - - ../nginx_config.js - FChart - - - - - - - - - - - - - - -
      -
      -
      - -

      - -
      -
      - API Docs for: 0.2 -
      -
      -
      - -
      - -
      -
      -
      - Show: - - - - - - - -
      - - -
      -
      -
      -

      File: ../nginx_config.js

      - -
      -
      -;(function(){
      -window.JC = window.JC || {log:function(){}};
      -JC.PATH = JC.PATH || scriptPath();
      -//JC.PATH  = 'http://crm.360.cn/static/jc2/';           //test for crm online
      -//JC.PATH  = '/jc2_requirejs_master/';                  //test for jc2 master
      -//JC.PATH  = '/jc2_requirejs_master/deploy/normal/';    //test for jc2 deploy
      -/**
      - * requirejs config.js for JC Project
      - */
      -
      -var _configMap = {
      -    'Base': [
      -        , '??'
      -        ,  'modules/JC.common/0.3/common.js'
      -        , ',modules/JC.BaseMVC/0.1/BaseMVC.js'
      -        , '?'
      -    ].join('')
      -
      -
      -    , 'JCChart': [
      -        , '??'
      -        , 'modules/JC.FChart/0.1/FChart.js'
      -        , ',modules/jquery.mousewheel/3.1.12/jquery.mousewheel.js'
      -        , '?'
      -    ].join('')
      -
      -    , 'tpl': [
      -        , '??'
      -        , '?'
      -    ].join('')
      -
      -};
      -
      -window.requirejs && 
      -requirejs.config( {
      -    baseUrl: JC.PATH
      -    , urlArgs: 'v=20150204'
      -    , paths: {
      -        'JC.common': _configMap[ 'Base' ]
      -        , 'JC.BaseMVC': _configMap[ 'Base' ]
      -
      -       
      -        , 'JC.FChart': _configMap[ 'JCChart' ]
      -
      -        , 'jquery.mousewheel': _configMap[ 'JCChart' ]
      -        , 'jquery.cookie': 'modules/jquery.cookie/1.4.1/jquery.cookie'
      -
      -        , 'json2': 'modules/JSON/2/JSON'
      -        , 'plugins.JSON2': 'modules/JSON/2/JSON'
      -        , 'plugins.json2': 'modules/JSON/2/JSON'
      -
      -        , 'plugins.Aes': 'plugins/Aes/0.1/Aes'
      -        , 'plugins.Base64': 'plugins/Base64/0.1/Base64'
      -        , 'plugins.md5': 'plugins/md5/0.1/md5'
      -
      -        , 'plugins.requirejs.domReady': 'plugins/requirejs.domReady/2.0.1/domReady'
      -
      -        , 'plugins.swfobject': 'plugins/SWFObject/2.2/SWFObject'
      -        , 'swfobject': 'modules/swfobject/2.3/swfobject'
      -        , 'SWFObject': 'modules/swfobject/2.3/swfobject'
      -
      -        , 'SWFUpload': 'modules/SWFUpload/2.5.0/SWFUpload'
      -        , 'swfupload': 'modules/SWFUpload/2.5.0/SWFUpload'
      -        , 'Raphael': 'modules/Raphael/latest/raphael'
      -
      -        , 'artTemplate':  "modules/artTemplate/3.0/artTemplate"
      -        , 'store':  "modules/store/1.3.14/store"
      -    }
      -});
      -/**
      - * 取当前脚本标签的 src路径 
      - * @static
      - * @return  {string} 脚本所在目录的完整路径
      - */
      -function scriptPath(){
      -    var _sc = document.getElementsByTagName('script'), _sc = _sc[ _sc.length - 1 ], _path = _sc.getAttribute('src');
      -    if( /\//.test( _path ) ){ _path = _path.split('/'); _path.pop(); _path = _path.join('/') + '/'; }
      -    else if( /\\/.test( _path ) ){ _path = _path.split('\\'); _path.pop(); _path = _path.join('\\') + '/'; }
      -    return _path;
      -}
      -}());
      -
      -    
      -
      - -
      -
      -
      -
      -
      -
      - - - - - - - - - - diff --git a/docs_api/files/index.html b/docs_api/files/index.html deleted file mode 100644 index 487fe15..0000000 --- a/docs_api/files/index.html +++ /dev/null @@ -1,10 +0,0 @@ - - - - Redirector - - - - Click here to redirect - - diff --git a/docs_api/index.html b/docs_api/index.html deleted file mode 100644 index c8ed08a..0000000 --- a/docs_api/index.html +++ /dev/null @@ -1,116 +0,0 @@ - - - - - FChart - - - - - - - - - - - - - -
      -
      -
      -

      -
      -
      - API Docs for: 0.2 -
      -
      -
      - -
      -
      - Show: - - - - -
      -
      -
      -
      -
      -
      -

      - Browse to a module or class using the sidebar to view its API documentation. -

      -

      Keyboard Shortcuts

      -
        -
      • Press s to focus the API search box.

      • -
      • Use Up and Down to select classes, modules, and search results.

      • -
      • With the API search box or sidebar focused, use -Left or -Right to switch sidebar tabs.

      • -
      • With the API search box or sidebar focused, use Ctrl+Left and Ctrl+Right to switch sidebar tabs.

      • -
      -
      -
      -
      -
      -
      -
      -
      -
      - - - - - - - - - - \ No newline at end of file diff --git a/docs_api/jc_logo.png b/docs_api/jc_logo.png deleted file mode 100644 index ff3fdc2..0000000 Binary files a/docs_api/jc_logo.png and /dev/null differ diff --git a/docs_api/modules/index.html b/docs_api/modules/index.html deleted file mode 100644 index 487fe15..0000000 --- a/docs_api/modules/index.html +++ /dev/null @@ -1,10 +0,0 @@ - - - - Redirector - - - - Click here to redirect - - diff --git a/flash/pub_folder_move_to_JC.FChart_0.1_swf.txt b/flash/pub_folder_move_to_JC.FChart_0.1_swf.txt deleted file mode 100755 index 8d1c8b6..0000000 --- a/flash/pub_folder_move_to_JC.FChart_0.1_swf.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/index.html b/index.html new file mode 100644 index 0000000..a2ba5e8 --- /dev/null +++ b/index.html @@ -0,0 +1,71 @@ + + + + + + Fchart by openjavascript + + + + + + + +
      +
      +

      Fchart

      +

      flash actionscript chart

      + +

      View the Project on GitHub openjavascript/fchart

      + + + +
      +
      +

      +Welcome to GitHub Pages.

      + +

      This automatic page generator is the easiest way to create beautiful pages for all of your projects. Author your page content here using GitHub Flavored Markdown, select a template crafted by a designer, and publish. After your page is generated, you can check out the new branch:

      + +
      $ cd your_repo_root/repo_name
      +$ git fetch origin
      +$ git checkout gh-pages
      +
      + +

      If you're using the GitHub for Mac, simply sync your repository and you'll see the new branch.

      + +

      +Designer Templates

      + +

      We've crafted some handsome templates for you to use. Go ahead and continue to layouts to browse through them. You can easily go back to edit your page before publishing. After publishing your page, you can revisit the page generator and switch to another theme. Your Page content will be preserved if it remained markdown format.

      + +

      +Rather Drive Stick?

      + +

      If you prefer to not use the automatic generator, push a branch named gh-pages to your repository to create a page manually. In addition to supporting regular HTML content, GitHub Pages support Jekyll, a simple, blog aware static site generator written by our own Tom Preston-Werner. Jekyll makes it easy to create site-wide headers and footers without having to copy them across every page. It also offers intelligent blog support and other advanced templating features.

      + +

      +Authors and Contributors

      + +

      You can @mention a GitHub username to generate a link to their profile. The resulting <a> element will link to the contributor's GitHub Profile. For example: In 2007, Chris Wanstrath (@defunkt), PJ Hyett (@pjhyett), and Tom Preston-Werner (@mojombo) founded GitHub.

      + +

      +Support or Contact

      + +

      Having trouble with Pages? Check out the documentation at http://help.github.com/pages or contact support@github.com and we’ll help you sort it out.

      +
      + +
      + + + + \ No newline at end of file diff --git a/index.php b/index.php deleted file mode 100755 index bf1e0ff..0000000 --- a/index.php +++ /dev/null @@ -1,5 +0,0 @@ - diff --git a/javascripts/scale.fix.js b/javascripts/scale.fix.js new file mode 100644 index 0000000..87a40ca --- /dev/null +++ b/javascripts/scale.fix.js @@ -0,0 +1,17 @@ +var metas = document.getElementsByTagName('meta'); +var i; +if (navigator.userAgent.match(/iPhone/i)) { + for (i=0; ihttp://jquery.com/ - * - * Includes Sizzle.js - * http://sizzlejs.com/ - * - * Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors - * Released under the MIT license - * http://jquery.org/license - * Date: 2013-2-4
      - * @class jQuery - * @namespace window - * @global - */ -(function( window, undefined ) { - -// Can't do this because several apps including ASP.NET trace -// the stack via arguments.caller.callee and Firefox dies if -// you try to trace through "use strict" call chains. (#13335) -// Support: Firefox 18+ -//"use strict"; -var - // The deferred used on DOM ready - readyList, - - // A central reference to the root jQuery(document) - rootjQuery, - - // Support: IE<9 - // For `typeof node.method` instead of `node.method !== undefined` - core_strundefined = typeof undefined, - - // Use the correct document accordingly with window argument (sandbox) - document = window.document, - location = window.location, - - // Map over jQuery in case of overwrite - _jQuery = window.jQuery, - - // Map over the $ in case of overwrite - _$ = window.$, - - // [[Class]] -> type pairs - class2type = {}, - - // List of deleted data cache ids, so we can reuse them - core_deletedIds = [], - - core_version = "1.9.1", - - // Save a reference to some core methods - core_concat = core_deletedIds.concat, - core_push = core_deletedIds.push, - core_slice = core_deletedIds.slice, - core_indexOf = core_deletedIds.indexOf, - core_toString = class2type.toString, - core_hasOwn = class2type.hasOwnProperty, - core_trim = core_version.trim, - - // Define a local copy of jQuery - jQuery = function( selector, context ) { - // The jQuery object is actually just the init constructor 'enhanced' - return new jQuery.fn.init( selector, context, rootjQuery ); - }, - - // Used for matching numbers - core_pnum = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source, - - // Used for splitting on whitespace - core_rnotwhite = /\S+/g, - - // Make sure we trim BOM and NBSP (here's looking at you, Safari 5.0 and IE) - rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, - - // A simple way to check for HTML strings - // Prioritize #id over to avoid XSS via location.hash (#9521) - // Strict HTML recognition (#11290: must start with <) - rquickExpr = /^(?:(<[\w\W]+>)[^>]*|#([\w-]*))$/, - - // Match a standalone tag - rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>|)$/, - - // JSON RegExp - rvalidchars = /^[\],:{}\s]*$/, - rvalidbraces = /(?:^|:|,)(?:\s*\[)+/g, - rvalidescape = /\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g, - rvalidtokens = /"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g, - - // Matches dashed string for camelizing - rmsPrefix = /^-ms-/, - rdashAlpha = /-([\da-z])/gi, - - // Used by jQuery.camelCase as callback to replace() - fcamelCase = function( all, letter ) { - return letter.toUpperCase(); - }, - - // The ready event handler - completed = function( event ) { - - // readyState === "complete" is good enough for us to call the dom ready in oldIE - if ( document.addEventListener || event.type === "load" || document.readyState === "complete" ) { - detach(); - jQuery.ready(); - } - }, - // Clean-up method for dom ready events - detach = function() { - if ( document.addEventListener ) { - document.removeEventListener( "DOMContentLoaded", completed, false ); - window.removeEventListener( "load", completed, false ); - - } else { - document.detachEvent( "onreadystatechange", completed ); - window.detachEvent( "onload", completed ); - } - }; - -jQuery.fn = jQuery.prototype = { - // The current version of jQuery being used - jquery: core_version, - - constructor: jQuery, - init: function( selector, context, rootjQuery ) { - var match, elem; - - // HANDLE: $(""), $(null), $(undefined), $(false) - if ( !selector ) { - return this; - } - - // Handle HTML strings - if ( typeof selector === "string" ) { - if ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.length >= 3 ) { - // Assume that strings that start and end with <> are HTML and skip the regex check - match = [ null, selector, null ]; - - } else { - match = rquickExpr.exec( selector ); - } - - // Match html or make sure no context is specified for #id - if ( match && (match[1] || !context) ) { - - // HANDLE: $(html) -> $(array) - if ( match[1] ) { - context = context instanceof jQuery ? context[0] : context; - - // scripts is true for back-compat - jQuery.merge( this, jQuery.parseHTML( - match[1], - context && context.nodeType ? context.ownerDocument || context : document, - true - ) ); - - // HANDLE: $(html, props) - if ( rsingleTag.test( match[1] ) && jQuery.isPlainObject( context ) ) { - for ( match in context ) { - // Properties of context are called as methods if possible - if ( jQuery.isFunction( this[ match ] ) ) { - this[ match ]( context[ match ] ); - - // ...and otherwise set as attributes - } else { - this.attr( match, context[ match ] ); - } - } - } - - return this; - - // HANDLE: $(#id) - } else { - elem = document.getElementById( match[2] ); - - // Check parentNode to catch when Blackberry 4.6 returns - // nodes that are no longer in the document #6963 - if ( elem && elem.parentNode ) { - // Handle the case where IE and Opera return items - // by name instead of ID - if ( elem.id !== match[2] ) { - return rootjQuery.find( selector ); - } - - // Otherwise, we inject the element directly into the jQuery object - this.length = 1; - this[0] = elem; - } - - this.context = document; - this.selector = selector; - return this; - } - - // HANDLE: $(expr, $(...)) - } else if ( !context || context.jquery ) { - return ( context || rootjQuery ).find( selector ); - - // HANDLE: $(expr, context) - // (which is just equivalent to: $(context).find(expr) - } else { - return this.constructor( context ).find( selector ); - } - - // HANDLE: $(DOMElement) - } else if ( selector.nodeType ) { - this.context = this[0] = selector; - this.length = 1; - return this; - - // HANDLE: $(function) - // Shortcut for document ready - } else if ( jQuery.isFunction( selector ) ) { - return rootjQuery.ready( selector ); - } - - if ( selector.selector !== undefined ) { - this.selector = selector.selector; - this.context = selector.context; - } - - return jQuery.makeArray( selector, this ); - }, - - // Start with an empty selector - selector: "", - - // The default length of a jQuery object is 0 - length: 0, - - // The number of elements contained in the matched element set - size: function() { - return this.length; - }, - - toArray: function() { - return core_slice.call( this ); - }, - - // Get the Nth element in the matched element set OR - // Get the whole matched element set as a clean array - get: function( num ) { - return num == null ? - - // Return a 'clean' array - this.toArray() : - - // Return just the object - ( num < 0 ? this[ this.length + num ] : this[ num ] ); - }, - - // Take an array of elements and push it onto the stack - // (returning the new matched element set) - pushStack: function( elems ) { - - // Build a new jQuery matched element set - var ret = jQuery.merge( this.constructor(), elems ); - - // Add the old object onto the stack (as a reference) - ret.prevObject = this; - ret.context = this.context; - - // Return the newly-formed element set - return ret; - }, - - // Execute a callback for every element in the matched set. - // (You can seed the arguments with an array of args, but this is - // only used internally.) - each: function( callback, args ) { - return jQuery.each( this, callback, args ); - }, - - ready: function( fn ) { - // Add the callback - jQuery.ready.promise().done( fn ); - - return this; - }, - - slice: function() { - return this.pushStack( core_slice.apply( this, arguments ) ); - }, - - first: function() { - return this.eq( 0 ); - }, - - last: function() { - return this.eq( -1 ); - }, - - eq: function( i ) { - var len = this.length, - j = +i + ( i < 0 ? len : 0 ); - return this.pushStack( j >= 0 && j < len ? [ this[j] ] : [] ); - }, - - map: function( callback ) { - return this.pushStack( jQuery.map(this, function( elem, i ) { - return callback.call( elem, i, elem ); - })); - }, - - end: function() { - return this.prevObject || this.constructor(null); - }, - - // For internal use only. - // Behaves like an Array's method, not like a jQuery method. - push: core_push, - sort: [].sort, - splice: [].splice -}; - -// Give the init function the jQuery prototype for later instantiation -jQuery.fn.init.prototype = jQuery.fn; - -jQuery.extend = jQuery.fn.extend = function() { - var src, copyIsArray, copy, name, options, clone, - target = arguments[0] || {}, - i = 1, - length = arguments.length, - deep = false; - - // Handle a deep copy situation - if ( typeof target === "boolean" ) { - deep = target; - target = arguments[1] || {}; - // skip the boolean and the target - i = 2; - } - - // Handle case when target is a string or something (possible in deep copy) - if ( typeof target !== "object" && !jQuery.isFunction(target) ) { - target = {}; - } - - // extend jQuery itself if only one argument is passed - if ( length === i ) { - target = this; - --i; - } - - for ( ; i < length; i++ ) { - // Only deal with non-null/undefined values - if ( (options = arguments[ i ]) != null ) { - // Extend the base object - for ( name in options ) { - src = target[ name ]; - copy = options[ name ]; - - // Prevent never-ending loop - if ( target === copy ) { - continue; - } - - // Recurse if we're merging plain objects or arrays - if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) { - if ( copyIsArray ) { - copyIsArray = false; - clone = src && jQuery.isArray(src) ? src : []; - - } else { - clone = src && jQuery.isPlainObject(src) ? src : {}; - } - - // Never move original objects, clone them - target[ name ] = jQuery.extend( deep, clone, copy ); - - // Don't bring in undefined values - } else if ( copy !== undefined ) { - target[ name ] = copy; - } - } - } - } - - // Return the modified object - return target; -}; - -jQuery.extend({ - noConflict: function( deep ) { - if ( window.$ === jQuery ) { - window.$ = _$; - } - - if ( deep && window.jQuery === jQuery ) { - window.jQuery = _jQuery; - } - - return jQuery; - }, - - // Is the DOM ready to be used? Set to true once it occurs. - isReady: false, - - // A counter to track how many items to wait for before - // the ready event fires. See #6781 - readyWait: 1, - - // Hold (or release) the ready event - holdReady: function( hold ) { - if ( hold ) { - jQuery.readyWait++; - } else { - jQuery.ready( true ); - } - }, - - // Handle when the DOM is ready - ready: function( wait ) { - - // Abort if there are pending holds or we're already ready - if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) { - return; - } - - // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443). - if ( !document.body ) { - return setTimeout( jQuery.ready ); - } - - // Remember that the DOM is ready - jQuery.isReady = true; - - // If a normal DOM Ready event fired, decrement, and wait if need be - if ( wait !== true && --jQuery.readyWait > 0 ) { - return; - } - - // If there are functions bound, to execute - readyList.resolveWith( document, [ jQuery ] ); - - // Trigger any bound ready events - if ( jQuery.fn.trigger ) { - jQuery( document ).trigger("ready").off("ready"); - } - }, - - // See test/unit/core.js for details concerning isFunction. - // Since version 1.3, DOM methods and functions like alert - // aren't supported. They return false on IE (#2968). - isFunction: function( obj ) { - return jQuery.type(obj) === "function"; - }, - - isArray: Array.isArray || function( obj ) { - return jQuery.type(obj) === "array"; - }, - - isWindow: function( obj ) { - return obj != null && obj == obj.window; - }, - - isNumeric: function( obj ) { - return !isNaN( parseFloat(obj) ) && isFinite( obj ); - }, - - type: function( obj ) { - if ( obj == null ) { - return String( obj ); - } - return typeof obj === "object" || typeof obj === "function" ? - class2type[ core_toString.call(obj) ] || "object" : - typeof obj; - }, - - isPlainObject: function( obj ) { - // Must be an Object. - // Because of IE, we also have to check the presence of the constructor property. - // Make sure that DOM nodes and window objects don't pass through, as well - if ( !obj || jQuery.type(obj) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) { - return false; - } - - try { - // Not own constructor property must be Object - if ( obj.constructor && - !core_hasOwn.call(obj, "constructor") && - !core_hasOwn.call(obj.constructor.prototype, "isPrototypeOf") ) { - return false; - } - } catch ( e ) { - // IE8,9 Will throw exceptions on certain host objects #9897 - return false; - } - - // Own properties are enumerated firstly, so to speed up, - // if last one is own, then all properties are own. - - var key; - for ( key in obj ) {} - - return key === undefined || core_hasOwn.call( obj, key ); - }, - - isEmptyObject: function( obj ) { - var name; - for ( name in obj ) { - return false; - } - return true; - }, - - error: function( msg ) { - throw new Error( msg ); - }, - - // data: string of html - // context (optional): If specified, the fragment will be created in this context, defaults to document - // keepScripts (optional): If true, will include scripts passed in the html string - parseHTML: function( data, context, keepScripts ) { - if ( !data || typeof data !== "string" ) { - return null; - } - if ( typeof context === "boolean" ) { - keepScripts = context; - context = false; - } - context = context || document; - - var parsed = rsingleTag.exec( data ), - scripts = !keepScripts && []; - - // Single tag - if ( parsed ) { - return [ context.createElement( parsed[1] ) ]; - } - - parsed = jQuery.buildFragment( [ data ], context, scripts ); - if ( scripts ) { - jQuery( scripts ).remove(); - } - return jQuery.merge( [], parsed.childNodes ); - }, - - parseJSON: function( data ) { - // Attempt to parse using the native JSON parser first - if ( window.JSON && window.JSON.parse ) { - return window.JSON.parse( data ); - } - - if ( data === null ) { - return data; - } - - if ( typeof data === "string" ) { - - // Make sure leading/trailing whitespace is removed (IE can't handle it) - data = jQuery.trim( data ); - - if ( data ) { - // Make sure the incoming data is actual JSON - // Logic borrowed from http://json.org/json2.js - if ( rvalidchars.test( data.replace( rvalidescape, "@" ) - .replace( rvalidtokens, "]" ) - .replace( rvalidbraces, "")) ) { - - return ( new Function( "return " + data ) )(); - } - } - } - - jQuery.error( "Invalid JSON: " + data ); - }, - - // Cross-browser xml parsing - parseXML: function( data ) { - var xml, tmp; - if ( !data || typeof data !== "string" ) { - return null; - } - try { - if ( window.DOMParser ) { // Standard - tmp = new DOMParser(); - xml = tmp.parseFromString( data , "text/xml" ); - } else { // IE - xml = new ActiveXObject( "Microsoft.XMLDOM" ); - xml.async = "false"; - xml.loadXML( data ); - } - } catch( e ) { - xml = undefined; - } - if ( !xml || !xml.documentElement || xml.getElementsByTagName( "parsererror" ).length ) { - jQuery.error( "Invalid XML: " + data ); - } - return xml; - }, - - noop: function() {}, - - // Evaluates a script in a global context - // Workarounds based on findings by Jim Driscoll - // http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context - globalEval: function( data ) { - if ( data && jQuery.trim( data ) ) { - // We use execScript on Internet Explorer - // We use an anonymous function so that context is window - // rather than jQuery in Firefox - ( window.execScript || function( data ) { - window[ "eval" ].call( window, data ); - } )( data ); - } - }, - - // Convert dashed to camelCase; used by the css and data modules - // Microsoft forgot to hump their vendor prefix (#9572) - camelCase: function( string ) { - return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase ); - }, - - nodeName: function( elem, name ) { - return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase(); - }, - - // args is for internal usage only - each: function( obj, callback, args ) { - var value, - i = 0, - length = obj.length, - isArray = isArraylike( obj ); - - if ( args ) { - if ( isArray ) { - for ( ; i < length; i++ ) { - value = callback.apply( obj[ i ], args ); - - if ( value === false ) { - break; - } - } - } else { - for ( i in obj ) { - value = callback.apply( obj[ i ], args ); - - if ( value === false ) { - break; - } - } - } - - // A special, fast, case for the most common use of each - } else { - if ( isArray ) { - for ( ; i < length; i++ ) { - value = callback.call( obj[ i ], i, obj[ i ] ); - - if ( value === false ) { - break; - } - } - } else { - for ( i in obj ) { - value = callback.call( obj[ i ], i, obj[ i ] ); - - if ( value === false ) { - break; - } - } - } - } - - return obj; - }, - - // Use native String.trim function wherever possible - trim: core_trim && !core_trim.call("\uFEFF\xA0") ? - function( text ) { - return text == null ? - "" : - core_trim.call( text ); - } : - - // Otherwise use our own trimming functionality - function( text ) { - return text == null ? - "" : - ( text + "" ).replace( rtrim, "" ); - }, - - // results is for internal usage only - makeArray: function( arr, results ) { - var ret = results || []; - - if ( arr != null ) { - if ( isArraylike( Object(arr) ) ) { - jQuery.merge( ret, - typeof arr === "string" ? - [ arr ] : arr - ); - } else { - core_push.call( ret, arr ); - } - } - - return ret; - }, - - inArray: function( elem, arr, i ) { - var len; - - if ( arr ) { - if ( core_indexOf ) { - return core_indexOf.call( arr, elem, i ); - } - - len = arr.length; - i = i ? i < 0 ? Math.max( 0, len + i ) : i : 0; - - for ( ; i < len; i++ ) { - // Skip accessing in sparse arrays - if ( i in arr && arr[ i ] === elem ) { - return i; - } - } - } - - return -1; - }, - - merge: function( first, second ) { - var l = second.length, - i = first.length, - j = 0; - - if ( typeof l === "number" ) { - for ( ; j < l; j++ ) { - first[ i++ ] = second[ j ]; - } - } else { - while ( second[j] !== undefined ) { - first[ i++ ] = second[ j++ ]; - } - } - - first.length = i; - - return first; - }, - - grep: function( elems, callback, inv ) { - var retVal, - ret = [], - i = 0, - length = elems.length; - inv = !!inv; - - // Go through the array, only saving the items - // that pass the validator function - for ( ; i < length; i++ ) { - retVal = !!callback( elems[ i ], i ); - if ( inv !== retVal ) { - ret.push( elems[ i ] ); - } - } - - return ret; - }, - - // arg is for internal usage only - map: function( elems, callback, arg ) { - var value, - i = 0, - length = elems.length, - isArray = isArraylike( elems ), - ret = []; - - // Go through the array, translating each of the items to their - if ( isArray ) { - for ( ; i < length; i++ ) { - value = callback( elems[ i ], i, arg ); - - if ( value != null ) { - ret[ ret.length ] = value; - } - } - - // Go through every key on the object, - } else { - for ( i in elems ) { - value = callback( elems[ i ], i, arg ); - - if ( value != null ) { - ret[ ret.length ] = value; - } - } - } - - // Flatten any nested arrays - return core_concat.apply( [], ret ); - }, - - // A global GUID counter for objects - guid: 1, - - // Bind a function to a context, optionally partially applying any - // arguments. - proxy: function( fn, context ) { - var args, proxy, tmp; - - if ( typeof context === "string" ) { - tmp = fn[ context ]; - context = fn; - fn = tmp; - } - - // Quick check to determine if target is callable, in the spec - // this throws a TypeError, but we will just return undefined. - if ( !jQuery.isFunction( fn ) ) { - return undefined; - } - - // Simulated bind - args = core_slice.call( arguments, 2 ); - proxy = function() { - return fn.apply( context || this, args.concat( core_slice.call( arguments ) ) ); - }; - - // Set the guid of unique handler to the same of original handler, so it can be removed - proxy.guid = fn.guid = fn.guid || jQuery.guid++; - - return proxy; - }, - - // Multifunctional method to get and set values of a collection - // The value/s can optionally be executed if it's a function - access: function( elems, fn, key, value, chainable, emptyGet, raw ) { - var i = 0, - length = elems.length, - bulk = key == null; - - // Sets many values - if ( jQuery.type( key ) === "object" ) { - chainable = true; - for ( i in key ) { - jQuery.access( elems, fn, i, key[i], true, emptyGet, raw ); - } - - // Sets one value - } else if ( value !== undefined ) { - chainable = true; - - if ( !jQuery.isFunction( value ) ) { - raw = true; - } - - if ( bulk ) { - // Bulk operations run against the entire set - if ( raw ) { - fn.call( elems, value ); - fn = null; - - // ...except when executing function values - } else { - bulk = fn; - fn = function( elem, key, value ) { - return bulk.call( jQuery( elem ), value ); - }; - } - } - - if ( fn ) { - for ( ; i < length; i++ ) { - fn( elems[i], key, raw ? value : value.call( elems[i], i, fn( elems[i], key ) ) ); - } - } - } - - return chainable ? - elems : - - // Gets - bulk ? - fn.call( elems ) : - length ? fn( elems[0], key ) : emptyGet; - }, - - now: function() { - return ( new Date() ).getTime(); - } -}); - -jQuery.ready.promise = function( obj ) { - if ( !readyList ) { - - readyList = jQuery.Deferred(); - - // Catch cases where $(document).ready() is called after the browser event has already occurred. - // we once tried to use readyState "interactive" here, but it caused issues like the one - // discovered by ChrisS here: http://bugs.jquery.com/ticket/12282#comment:15 - if ( document.readyState === "complete" ) { - // Handle it asynchronously to allow scripts the opportunity to delay ready - setTimeout( jQuery.ready ); - - // Standards-based browsers support DOMContentLoaded - } else if ( document.addEventListener ) { - // Use the handy event callback - document.addEventListener( "DOMContentLoaded", completed, false ); - - // A fallback to window.onload, that will always work - window.addEventListener( "load", completed, false ); - - // If IE event model is used - } else { - // Ensure firing before onload, maybe late but safe also for iframes - document.attachEvent( "onreadystatechange", completed ); - - // A fallback to window.onload, that will always work - window.attachEvent( "onload", completed ); - - // If IE and not a frame - // continually check to see if the document is ready - var top = false; - - try { - top = window.frameElement == null && document.documentElement; - } catch(e) {} - - if ( top && top.doScroll ) { - (function doScrollCheck() { - if ( !jQuery.isReady ) { - - try { - // Use the trick by Diego Perini - // http://javascript.nwbox.com/IEContentLoaded/ - top.doScroll("left"); - } catch(e) { - return setTimeout( doScrollCheck, 50 ); - } - - // detach all dom ready events - detach(); - - // and execute any waiting functions - jQuery.ready(); - } - })(); - } - } - } - return readyList.promise( obj ); -}; - -// Populate the class2type map -jQuery.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function(i, name) { - class2type[ "[object " + name + "]" ] = name.toLowerCase(); -}); - -function isArraylike( obj ) { - var length = obj.length, - type = jQuery.type( obj ); - - if ( jQuery.isWindow( obj ) ) { - return false; - } - - if ( obj.nodeType === 1 && length ) { - return true; - } - - return type === "array" || type !== "function" && - ( length === 0 || - typeof length === "number" && length > 0 && ( length - 1 ) in obj ); -} - -// All jQuery objects should point back to these -rootjQuery = jQuery(document); -// String to Object options format cache -var optionsCache = {}; - -// Convert String-formatted options into Object-formatted ones and store in cache -function createOptions( options ) { - var object = optionsCache[ options ] = {}; - jQuery.each( options.match( core_rnotwhite ) || [], function( _, flag ) { - object[ flag ] = true; - }); - return object; -} - -/* - * Create a callback list using the following parameters: - * - * options: an optional list of space-separated options that will change how - * the callback list behaves or a more traditional option object - * - * By default a callback list will act like an event callback list and can be - * "fired" multiple times. - * - * Possible options: - * - * once: will ensure the callback list can only be fired once (like a Deferred) - * - * memory: will keep track of previous values and will call any callback added - * after the list has been fired right away with the latest "memorized" - * values (like a Deferred) - * - * unique: will ensure a callback can only be added once (no duplicate in the list) - * - * stopOnFalse: interrupt callings when a callback returns false - * - */ -jQuery.Callbacks = function( options ) { - - // Convert options from String-formatted to Object-formatted if needed - // (we check in cache first) - options = typeof options === "string" ? - ( optionsCache[ options ] || createOptions( options ) ) : - jQuery.extend( {}, options ); - - var // Flag to know if list is currently firing - firing, - // Last fire value (for non-forgettable lists) - memory, - // Flag to know if list was already fired - fired, - // End of the loop when firing - firingLength, - // Index of currently firing callback (modified by remove if needed) - firingIndex, - // First callback to fire (used internally by add and fireWith) - firingStart, - // Actual callback list - list = [], - // Stack of fire calls for repeatable lists - stack = !options.once && [], - // Fire callbacks - fire = function( data ) { - memory = options.memory && data; - fired = true; - firingIndex = firingStart || 0; - firingStart = 0; - firingLength = list.length; - firing = true; - for ( ; list && firingIndex < firingLength; firingIndex++ ) { - if ( list[ firingIndex ].apply( data[ 0 ], data[ 1 ] ) === false && options.stopOnFalse ) { - memory = false; // To prevent further calls using add - break; - } - } - firing = false; - if ( list ) { - if ( stack ) { - if ( stack.length ) { - fire( stack.shift() ); - } - } else if ( memory ) { - list = []; - } else { - self.disable(); - } - } - }, - // Actual Callbacks object - self = { - // Add a callback or a collection of callbacks to the list - add: function() { - if ( list ) { - // First, we save the current length - var start = list.length; - (function add( args ) { - jQuery.each( args, function( _, arg ) { - var type = jQuery.type( arg ); - if ( type === "function" ) { - if ( !options.unique || !self.has( arg ) ) { - list.push( arg ); - } - } else if ( arg && arg.length && type !== "string" ) { - // Inspect recursively - add( arg ); - } - }); - })( arguments ); - // Do we need to add the callbacks to the - // current firing batch? - if ( firing ) { - firingLength = list.length; - // With memory, if we're not firing then - // we should call right away - } else if ( memory ) { - firingStart = start; - fire( memory ); - } - } - return this; - }, - // Remove a callback from the list - remove: function() { - if ( list ) { - jQuery.each( arguments, function( _, arg ) { - var index; - while( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) { - list.splice( index, 1 ); - // Handle firing indexes - if ( firing ) { - if ( index <= firingLength ) { - firingLength--; - } - if ( index <= firingIndex ) { - firingIndex--; - } - } - } - }); - } - return this; - }, - // Check if a given callback is in the list. - // If no argument is given, return whether or not list has callbacks attached. - has: function( fn ) { - return fn ? jQuery.inArray( fn, list ) > -1 : !!( list && list.length ); - }, - // Remove all callbacks from the list - empty: function() { - list = []; - return this; - }, - // Have the list do nothing anymore - disable: function() { - list = stack = memory = undefined; - return this; - }, - // Is it disabled? - disabled: function() { - return !list; - }, - // Lock the list in its current state - lock: function() { - stack = undefined; - if ( !memory ) { - self.disable(); - } - return this; - }, - // Is it locked? - locked: function() { - return !stack; - }, - // Call all callbacks with the given context and arguments - fireWith: function( context, args ) { - args = args || []; - args = [ context, args.slice ? args.slice() : args ]; - if ( list && ( !fired || stack ) ) { - if ( firing ) { - stack.push( args ); - } else { - fire( args ); - } - } - return this; - }, - // Call all the callbacks with the given arguments - fire: function() { - self.fireWith( this, arguments ); - return this; - }, - // To know if the callbacks have already been called at least once - fired: function() { - return !!fired; - } - }; - - return self; -}; -jQuery.extend({ - - Deferred: function( func ) { - var tuples = [ - // action, add listener, listener list, final state - [ "resolve", "done", jQuery.Callbacks("once memory"), "resolved" ], - [ "reject", "fail", jQuery.Callbacks("once memory"), "rejected" ], - [ "notify", "progress", jQuery.Callbacks("memory") ] - ], - state = "pending", - promise = { - state: function() { - return state; - }, - always: function() { - deferred.done( arguments ).fail( arguments ); - return this; - }, - then: function( /* fnDone, fnFail, fnProgress */ ) { - var fns = arguments; - return jQuery.Deferred(function( newDefer ) { - jQuery.each( tuples, function( i, tuple ) { - var action = tuple[ 0 ], - fn = jQuery.isFunction( fns[ i ] ) && fns[ i ]; - // deferred[ done | fail | progress ] for forwarding actions to newDefer - deferred[ tuple[1] ](function() { - var returned = fn && fn.apply( this, arguments ); - if ( returned && jQuery.isFunction( returned.promise ) ) { - returned.promise() - .done( newDefer.resolve ) - .fail( newDefer.reject ) - .progress( newDefer.notify ); - } else { - newDefer[ action + "With" ]( this === promise ? newDefer.promise() : this, fn ? [ returned ] : arguments ); - } - }); - }); - fns = null; - }).promise(); - }, - // Get a promise for this deferred - // If obj is provided, the promise aspect is added to the object - promise: function( obj ) { - return obj != null ? jQuery.extend( obj, promise ) : promise; - } - }, - deferred = {}; - - // Keep pipe for back-compat - promise.pipe = promise.then; - - // Add list-specific methods - jQuery.each( tuples, function( i, tuple ) { - var list = tuple[ 2 ], - stateString = tuple[ 3 ]; - - // promise[ done | fail | progress ] = list.add - promise[ tuple[1] ] = list.add; - - // Handle state - if ( stateString ) { - list.add(function() { - // state = [ resolved | rejected ] - state = stateString; - - // [ reject_list | resolve_list ].disable; progress_list.lock - }, tuples[ i ^ 1 ][ 2 ].disable, tuples[ 2 ][ 2 ].lock ); - } - - // deferred[ resolve | reject | notify ] - deferred[ tuple[0] ] = function() { - deferred[ tuple[0] + "With" ]( this === deferred ? promise : this, arguments ); - return this; - }; - deferred[ tuple[0] + "With" ] = list.fireWith; - }); - - // Make the deferred a promise - promise.promise( deferred ); - - // Call given func if any - if ( func ) { - func.call( deferred, deferred ); - } - - // All done! - return deferred; - }, - - // Deferred helper - when: function( subordinate /* , ..., subordinateN */ ) { - var i = 0, - resolveValues = core_slice.call( arguments ), - length = resolveValues.length, - - // the count of uncompleted subordinates - remaining = length !== 1 || ( subordinate && jQuery.isFunction( subordinate.promise ) ) ? length : 0, - - // the master Deferred. If resolveValues consist of only a single Deferred, just use that. - deferred = remaining === 1 ? subordinate : jQuery.Deferred(), - - // Update function for both resolve and progress values - updateFunc = function( i, contexts, values ) { - return function( value ) { - contexts[ i ] = this; - values[ i ] = arguments.length > 1 ? core_slice.call( arguments ) : value; - if( values === progressValues ) { - deferred.notifyWith( contexts, values ); - } else if ( !( --remaining ) ) { - deferred.resolveWith( contexts, values ); - } - }; - }, - - progressValues, progressContexts, resolveContexts; - - // add listeners to Deferred subordinates; treat others as resolved - if ( length > 1 ) { - progressValues = new Array( length ); - progressContexts = new Array( length ); - resolveContexts = new Array( length ); - for ( ; i < length; i++ ) { - if ( resolveValues[ i ] && jQuery.isFunction( resolveValues[ i ].promise ) ) { - resolveValues[ i ].promise() - .done( updateFunc( i, resolveContexts, resolveValues ) ) - .fail( deferred.reject ) - .progress( updateFunc( i, progressContexts, progressValues ) ); - } else { - --remaining; - } - } - } - - // if we're not waiting on anything, resolve the master - if ( !remaining ) { - deferred.resolveWith( resolveContexts, resolveValues ); - } - - return deferred.promise(); - } -}); -jQuery.support = (function() { - - var support, all, a, - input, select, fragment, - opt, eventName, isSupported, i, - div = document.createElement("div"); - - // Setup - div.setAttribute( "className", "t" ); - div.innerHTML = "
      a"; - - // Support tests won't run in some limited or non-browser environments - all = div.getElementsByTagName("*"); - a = div.getElementsByTagName("a")[ 0 ]; - if ( !all || !a || !all.length ) { - return {}; - } - - // First batch of tests - select = document.createElement("select"); - opt = select.appendChild( document.createElement("option") ); - input = div.getElementsByTagName("input")[ 0 ]; - - a.style.cssText = "top:1px;float:left;opacity:.5"; - support = { - // Test setAttribute on camelCase class. If it works, we need attrFixes when doing get/setAttribute (ie6/7) - getSetAttribute: div.className !== "t", - - // IE strips leading whitespace when .innerHTML is used - leadingWhitespace: div.firstChild.nodeType === 3, - - // Make sure that tbody elements aren't automatically inserted - // IE will insert them into empty tables - tbody: !div.getElementsByTagName("tbody").length, - - // Make sure that link elements get serialized correctly by innerHTML - // This requires a wrapper element in IE - htmlSerialize: !!div.getElementsByTagName("link").length, - - // Get the style information from getAttribute - // (IE uses .cssText instead) - style: /top/.test( a.getAttribute("style") ), - - // Make sure that URLs aren't manipulated - // (IE normalizes it by default) - hrefNormalized: a.getAttribute("href") === "/a", - - // Make sure that element opacity exists - // (IE uses filter instead) - // Use a regex to work around a WebKit issue. See #5145 - opacity: /^0.5/.test( a.style.opacity ), - - // Verify style float existence - // (IE uses styleFloat instead of cssFloat) - cssFloat: !!a.style.cssFloat, - - // Check the default checkbox/radio value ("" on WebKit; "on" elsewhere) - checkOn: !!input.value, - - // Make sure that a selected-by-default option has a working selected property. - // (WebKit defaults to false instead of true, IE too, if it's in an optgroup) - optSelected: opt.selected, - - // Tests for enctype support on a form (#6743) - enctype: !!document.createElement("form").enctype, - - // Makes sure cloning an html5 element does not cause problems - // Where outerHTML is undefined, this still works - html5Clone: document.createElement("nav").cloneNode( true ).outerHTML !== "<:nav>", - - // jQuery.support.boxModel DEPRECATED in 1.8 since we don't support Quirks Mode - boxModel: document.compatMode === "CSS1Compat", - - // Will be defined later - deleteExpando: true, - noCloneEvent: true, - inlineBlockNeedsLayout: false, - shrinkWrapBlocks: false, - reliableMarginRight: true, - boxSizingReliable: true, - pixelPosition: false - }; - - // Make sure checked status is properly cloned - input.checked = true; - support.noCloneChecked = input.cloneNode( true ).checked; - - // Make sure that the options inside disabled selects aren't marked as disabled - // (WebKit marks them as disabled) - select.disabled = true; - support.optDisabled = !opt.disabled; - - // Support: IE<9 - try { - delete div.test; - } catch( e ) { - support.deleteExpando = false; - } - - // Check if we can trust getAttribute("value") - input = document.createElement("input"); - input.setAttribute( "value", "" ); - support.input = input.getAttribute( "value" ) === ""; - - // Check if an input maintains its value after becoming a radio - input.value = "t"; - input.setAttribute( "type", "radio" ); - support.radioValue = input.value === "t"; - - // #11217 - WebKit loses check when the name is after the checked attribute - input.setAttribute( "checked", "t" ); - input.setAttribute( "name", "t" ); - - fragment = document.createDocumentFragment(); - fragment.appendChild( input ); - - // Check if a disconnected checkbox will retain its checked - // value of true after appended to the DOM (IE6/7) - support.appendChecked = input.checked; - - // WebKit doesn't clone checked state correctly in fragments - support.checkClone = fragment.cloneNode( true ).cloneNode( true ).lastChild.checked; - - // Support: IE<9 - // Opera does not clone events (and typeof div.attachEvent === undefined). - // IE9-10 clones events bound via attachEvent, but they don't trigger with .click() - if ( div.attachEvent ) { - div.attachEvent( "onclick", function() { - support.noCloneEvent = false; - }); - - div.cloneNode( true ).click(); - } - - // Support: IE<9 (lack submit/change bubble), Firefox 17+ (lack focusin event) - // Beware of CSP restrictions (https://developer.mozilla.org/en/Security/CSP), test/csp.php - for ( i in { submit: true, change: true, focusin: true }) { - div.setAttribute( eventName = "on" + i, "t" ); - - support[ i + "Bubbles" ] = eventName in window || div.attributes[ eventName ].expando === false; - } - - div.style.backgroundClip = "content-box"; - div.cloneNode( true ).style.backgroundClip = ""; - support.clearCloneStyle = div.style.backgroundClip === "content-box"; - - // Run tests that need a body at doc ready - jQuery(function() { - var container, marginDiv, tds, - divReset = "padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;", - body = document.getElementsByTagName("body")[0]; - - if ( !body ) { - // Return for frameset docs that don't have a body - return; - } - - container = document.createElement("div"); - container.style.cssText = "border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px"; - - body.appendChild( container ).appendChild( div ); - - // Support: IE8 - // Check if table cells still have offsetWidth/Height when they are set - // to display:none and there are still other visible table cells in a - // table row; if so, offsetWidth/Height are not reliable for use when - // determining if an element has been hidden directly using - // display:none (it is still safe to use offsets if a parent element is - // hidden; don safety goggles and see bug #4512 for more information). - div.innerHTML = "
      t
      "; - tds = div.getElementsByTagName("td"); - tds[ 0 ].style.cssText = "padding:0;margin:0;border:0;display:none"; - isSupported = ( tds[ 0 ].offsetHeight === 0 ); - - tds[ 0 ].style.display = ""; - tds[ 1 ].style.display = "none"; - - // Support: IE8 - // Check if empty table cells still have offsetWidth/Height - support.reliableHiddenOffsets = isSupported && ( tds[ 0 ].offsetHeight === 0 ); - - // Check box-sizing and margin behavior - div.innerHTML = ""; - div.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%;"; - support.boxSizing = ( div.offsetWidth === 4 ); - support.doesNotIncludeMarginInBodyOffset = ( body.offsetTop !== 1 ); - - // Use window.getComputedStyle because jsdom on node.js will break without it. - if ( window.getComputedStyle ) { - support.pixelPosition = ( window.getComputedStyle( div, null ) || {} ).top !== "1%"; - support.boxSizingReliable = ( window.getComputedStyle( div, null ) || { width: "4px" } ).width === "4px"; - - // Check if div with explicit width and no margin-right incorrectly - // gets computed margin-right based on width of container. (#3333) - // Fails in WebKit before Feb 2011 nightlies - // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right - marginDiv = div.appendChild( document.createElement("div") ); - marginDiv.style.cssText = div.style.cssText = divReset; - marginDiv.style.marginRight = marginDiv.style.width = "0"; - div.style.width = "1px"; - - support.reliableMarginRight = - !parseFloat( ( window.getComputedStyle( marginDiv, null ) || {} ).marginRight ); - } - - if ( typeof div.style.zoom !== core_strundefined ) { - // Support: IE<8 - // Check if natively block-level elements act like inline-block - // elements when setting their display to 'inline' and giving - // them layout - div.innerHTML = ""; - div.style.cssText = divReset + "width:1px;padding:1px;display:inline;zoom:1"; - support.inlineBlockNeedsLayout = ( div.offsetWidth === 3 ); - - // Support: IE6 - // Check if elements with layout shrink-wrap their children - div.style.display = "block"; - div.innerHTML = "
      "; - div.firstChild.style.width = "5px"; - support.shrinkWrapBlocks = ( div.offsetWidth !== 3 ); - - if ( support.inlineBlockNeedsLayout ) { - // Prevent IE 6 from affecting layout for positioned elements #11048 - // Prevent IE from shrinking the body in IE 7 mode #12869 - // Support: IE<8 - body.style.zoom = 1; - } - } - - body.removeChild( container ); - - // Null elements to avoid leaks in IE - container = div = tds = marginDiv = null; - }); - - // Null elements to avoid leaks in IE - all = select = fragment = opt = a = input = null; - - return support; -})(); - -var rbrace = /(?:\{[\s\S]*\}|\[[\s\S]*\])$/, - rmultiDash = /([A-Z])/g; - -function internalData( elem, name, data, pvt /* Internal Use Only */ ){ - if ( !jQuery.acceptData( elem ) ) { - return; - } - - var thisCache, ret, - internalKey = jQuery.expando, - getByName = typeof name === "string", - - // We have to handle DOM nodes and JS objects differently because IE6-7 - // can't GC object references properly across the DOM-JS boundary - isNode = elem.nodeType, - - // Only DOM nodes need the global jQuery cache; JS object data is - // attached directly to the object so GC can occur automatically - cache = isNode ? jQuery.cache : elem, - - // Only defining an ID for JS objects if its cache already exists allows - // the code to shortcut on the same path as a DOM node with no cache - id = isNode ? elem[ internalKey ] : elem[ internalKey ] && internalKey; - - // Avoid doing any more work than we need to when trying to get data on an - // object that has no data at all - if ( (!id || !cache[id] || (!pvt && !cache[id].data)) && getByName && data === undefined ) { - return; - } - - if ( !id ) { - // Only DOM nodes need a new unique ID for each element since their data - // ends up in the global cache - if ( isNode ) { - elem[ internalKey ] = id = core_deletedIds.pop() || jQuery.guid++; - } else { - id = internalKey; - } - } - - if ( !cache[ id ] ) { - cache[ id ] = {}; - - // Avoids exposing jQuery metadata on plain JS objects when the object - // is serialized using JSON.stringify - if ( !isNode ) { - cache[ id ].toJSON = jQuery.noop; - } - } - - // An object can be passed to jQuery.data instead of a key/value pair; this gets - // shallow copied over onto the existing cache - if ( typeof name === "object" || typeof name === "function" ) { - if ( pvt ) { - cache[ id ] = jQuery.extend( cache[ id ], name ); - } else { - cache[ id ].data = jQuery.extend( cache[ id ].data, name ); - } - } - - thisCache = cache[ id ]; - - // jQuery data() is stored in a separate object inside the object's internal data - // cache in order to avoid key collisions between internal data and user-defined - // data. - if ( !pvt ) { - if ( !thisCache.data ) { - thisCache.data = {}; - } - - thisCache = thisCache.data; - } - - if ( data !== undefined ) { - thisCache[ jQuery.camelCase( name ) ] = data; - } - - // Check for both converted-to-camel and non-converted data property names - // If a data property was specified - if ( getByName ) { - - // First Try to find as-is property data - ret = thisCache[ name ]; - - // Test for null|undefined property data - if ( ret == null ) { - - // Try to find the camelCased property - ret = thisCache[ jQuery.camelCase( name ) ]; - } - } else { - ret = thisCache; - } - - return ret; -} - -function internalRemoveData( elem, name, pvt ) { - if ( !jQuery.acceptData( elem ) ) { - return; - } - - var i, l, thisCache, - isNode = elem.nodeType, - - // See jQuery.data for more information - cache = isNode ? jQuery.cache : elem, - id = isNode ? elem[ jQuery.expando ] : jQuery.expando; - - // If there is already no cache entry for this object, there is no - // purpose in continuing - if ( !cache[ id ] ) { - return; - } - - if ( name ) { - - thisCache = pvt ? cache[ id ] : cache[ id ].data; - - if ( thisCache ) { - - // Support array or space separated string names for data keys - if ( !jQuery.isArray( name ) ) { - - // try the string as a key before any manipulation - if ( name in thisCache ) { - name = [ name ]; - } else { - - // split the camel cased version by spaces unless a key with the spaces exists - name = jQuery.camelCase( name ); - if ( name in thisCache ) { - name = [ name ]; - } else { - name = name.split(" "); - } - } - } else { - // If "name" is an array of keys... - // When data is initially created, via ("key", "val") signature, - // keys will be converted to camelCase. - // Since there is no way to tell _how_ a key was added, remove - // both plain key and camelCase key. #12786 - // This will only penalize the array argument path. - name = name.concat( jQuery.map( name, jQuery.camelCase ) ); - } - - for ( i = 0, l = name.length; i < l; i++ ) { - delete thisCache[ name[i] ]; - } - - // If there is no data left in the cache, we want to continue - // and let the cache object itself get destroyed - if ( !( pvt ? isEmptyDataObject : jQuery.isEmptyObject )( thisCache ) ) { - return; - } - } - } - - // See jQuery.data for more information - if ( !pvt ) { - delete cache[ id ].data; - - // Don't destroy the parent cache unless the internal data object - // had been the only thing left in it - if ( !isEmptyDataObject( cache[ id ] ) ) { - return; - } - } - - // Destroy the cache - if ( isNode ) { - jQuery.cleanData( [ elem ], true ); - - // Use delete when supported for expandos or `cache` is not a window per isWindow (#10080) - } else if ( jQuery.support.deleteExpando || cache != cache.window ) { - delete cache[ id ]; - - // When all else fails, null - } else { - cache[ id ] = null; - } -} - -jQuery.extend({ - cache: {}, - - // Unique for each copy of jQuery on the page - // Non-digits removed to match rinlinejQuery - expando: "jQuery" + ( core_version + Math.random() ).replace( /\D/g, "" ), - - // The following elements throw uncatchable exceptions if you - // attempt to add expando properties to them. - noData: { - "embed": true, - // Ban all objects except for Flash (which handle expandos) - "object": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000", - "applet": true - }, - - hasData: function( elem ) { - elem = elem.nodeType ? jQuery.cache[ elem[jQuery.expando] ] : elem[ jQuery.expando ]; - return !!elem && !isEmptyDataObject( elem ); - }, - - data: function( elem, name, data ) { - return internalData( elem, name, data ); - }, - - removeData: function( elem, name ) { - return internalRemoveData( elem, name ); - }, - - // For internal use only. - _data: function( elem, name, data ) { - return internalData( elem, name, data, true ); - }, - - _removeData: function( elem, name ) { - return internalRemoveData( elem, name, true ); - }, - - // A method for determining if a DOM node can handle the data expando - acceptData: function( elem ) { - // Do not set data on non-element because it will not be cleared (#8335). - if ( elem.nodeType && elem.nodeType !== 1 && elem.nodeType !== 9 ) { - return false; - } - - var noData = elem.nodeName && jQuery.noData[ elem.nodeName.toLowerCase() ]; - - // nodes accept data unless otherwise specified; rejection can be conditional - return !noData || noData !== true && elem.getAttribute("classid") === noData; - } -}); - -jQuery.fn.extend({ - data: function( key, value ) { - var attrs, name, - elem = this[0], - i = 0, - data = null; - - // Gets all values - if ( key === undefined ) { - if ( this.length ) { - data = jQuery.data( elem ); - - if ( elem.nodeType === 1 && !jQuery._data( elem, "parsedAttrs" ) ) { - attrs = elem.attributes; - for ( ; i < attrs.length; i++ ) { - name = attrs[i].name; - - if ( !name.indexOf( "data-" ) ) { - name = jQuery.camelCase( name.slice(5) ); - - dataAttr( elem, name, data[ name ] ); - } - } - jQuery._data( elem, "parsedAttrs", true ); - } - } - - return data; - } - - // Sets multiple values - if ( typeof key === "object" ) { - return this.each(function() { - jQuery.data( this, key ); - }); - } - - return jQuery.access( this, function( value ) { - - if ( value === undefined ) { - // Try to fetch any internally stored data first - return elem ? dataAttr( elem, key, jQuery.data( elem, key ) ) : null; - } - - this.each(function() { - jQuery.data( this, key, value ); - }); - }, null, value, arguments.length > 1, null, true ); - }, - - removeData: function( key ) { - return this.each(function() { - jQuery.removeData( this, key ); - }); - } -}); - -function dataAttr( elem, key, data ) { - // If nothing was found internally, try to fetch any - // data from the HTML5 data-* attribute - if ( data === undefined && elem.nodeType === 1 ) { - - var name = "data-" + key.replace( rmultiDash, "-$1" ).toLowerCase(); - - data = elem.getAttribute( name ); - - if ( typeof data === "string" ) { - try { - data = data === "true" ? true : - data === "false" ? false : - data === "null" ? null : - // Only convert to a number if it doesn't change the string - +data + "" === data ? +data : - rbrace.test( data ) ? jQuery.parseJSON( data ) : - data; - } catch( e ) {} - - // Make sure we set the data so it isn't changed later - jQuery.data( elem, key, data ); - - } else { - data = undefined; - } - } - - return data; -} - -// checks a cache object for emptiness -function isEmptyDataObject( obj ) { - var name; - for ( name in obj ) { - - // if the public data object is empty, the private is still empty - if ( name === "data" && jQuery.isEmptyObject( obj[name] ) ) { - continue; - } - if ( name !== "toJSON" ) { - return false; - } - } - - return true; -} -jQuery.extend({ - queue: function( elem, type, data ) { - var queue; - - if ( elem ) { - type = ( type || "fx" ) + "queue"; - queue = jQuery._data( elem, type ); - - // Speed up dequeue by getting out quickly if this is just a lookup - if ( data ) { - if ( !queue || jQuery.isArray(data) ) { - queue = jQuery._data( elem, type, jQuery.makeArray(data) ); - } else { - queue.push( data ); - } - } - return queue || []; - } - }, - - dequeue: function( elem, type ) { - type = type || "fx"; - - var queue = jQuery.queue( elem, type ), - startLength = queue.length, - fn = queue.shift(), - hooks = jQuery._queueHooks( elem, type ), - next = function() { - jQuery.dequeue( elem, type ); - }; - - // If the fx queue is dequeued, always remove the progress sentinel - if ( fn === "inprogress" ) { - fn = queue.shift(); - startLength--; - } - - hooks.cur = fn; - if ( fn ) { - - // Add a progress sentinel to prevent the fx queue from being - // automatically dequeued - if ( type === "fx" ) { - queue.unshift( "inprogress" ); - } - - // clear up the last queue stop function - delete hooks.stop; - fn.call( elem, next, hooks ); - } - - if ( !startLength && hooks ) { - hooks.empty.fire(); - } - }, - - // not intended for public consumption - generates a queueHooks object, or returns the current one - _queueHooks: function( elem, type ) { - var key = type + "queueHooks"; - return jQuery._data( elem, key ) || jQuery._data( elem, key, { - empty: jQuery.Callbacks("once memory").add(function() { - jQuery._removeData( elem, type + "queue" ); - jQuery._removeData( elem, key ); - }) - }); - } -}); - -jQuery.fn.extend({ - queue: function( type, data ) { - var setter = 2; - - if ( typeof type !== "string" ) { - data = type; - type = "fx"; - setter--; - } - - if ( arguments.length < setter ) { - return jQuery.queue( this[0], type ); - } - - return data === undefined ? - this : - this.each(function() { - var queue = jQuery.queue( this, type, data ); - - // ensure a hooks for this queue - jQuery._queueHooks( this, type ); - - if ( type === "fx" && queue[0] !== "inprogress" ) { - jQuery.dequeue( this, type ); - } - }); - }, - dequeue: function( type ) { - return this.each(function() { - jQuery.dequeue( this, type ); - }); - }, - // Based off of the plugin by Clint Helfers, with permission. - // http://blindsignals.com/index.php/2009/07/jquery-delay/ - delay: function( time, type ) { - time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time; - type = type || "fx"; - - return this.queue( type, function( next, hooks ) { - var timeout = setTimeout( next, time ); - hooks.stop = function() { - clearTimeout( timeout ); - }; - }); - }, - clearQueue: function( type ) { - return this.queue( type || "fx", [] ); - }, - // Get a promise resolved when queues of a certain type - // are emptied (fx is the type by default) - promise: function( type, obj ) { - var tmp, - count = 1, - defer = jQuery.Deferred(), - elements = this, - i = this.length, - resolve = function() { - if ( !( --count ) ) { - defer.resolveWith( elements, [ elements ] ); - } - }; - - if ( typeof type !== "string" ) { - obj = type; - type = undefined; - } - type = type || "fx"; - - while( i-- ) { - tmp = jQuery._data( elements[ i ], type + "queueHooks" ); - if ( tmp && tmp.empty ) { - count++; - tmp.empty.add( resolve ); - } - } - resolve(); - return defer.promise( obj ); - } -}); -var nodeHook, boolHook, - rclass = /[\t\r\n]/g, - rreturn = /\r/g, - rfocusable = /^(?:input|select|textarea|button|object)$/i, - rclickable = /^(?:a|area)$/i, - rboolean = /^(?:checked|selected|autofocus|autoplay|async|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped)$/i, - ruseDefault = /^(?:checked|selected)$/i, - getSetAttribute = jQuery.support.getSetAttribute, - getSetInput = jQuery.support.input; - -jQuery.fn.extend({ - attr: function( name, value ) { - return jQuery.access( this, jQuery.attr, name, value, arguments.length > 1 ); - }, - - removeAttr: function( name ) { - return this.each(function() { - jQuery.removeAttr( this, name ); - }); - }, - - prop: function( name, value ) { - return jQuery.access( this, jQuery.prop, name, value, arguments.length > 1 ); - }, - - removeProp: function( name ) { - name = jQuery.propFix[ name ] || name; - return this.each(function() { - // try/catch handles cases where IE balks (such as removing a property on window) - try { - this[ name ] = undefined; - delete this[ name ]; - } catch( e ) {} - }); - }, - - addClass: function( value ) { - var classes, elem, cur, clazz, j, - i = 0, - len = this.length, - proceed = typeof value === "string" && value; - - if ( jQuery.isFunction( value ) ) { - return this.each(function( j ) { - jQuery( this ).addClass( value.call( this, j, this.className ) ); - }); - } - - if ( proceed ) { - // The disjunction here is for better compressibility (see removeClass) - classes = ( value || "" ).match( core_rnotwhite ) || []; - - for ( ; i < len; i++ ) { - elem = this[ i ]; - cur = elem.nodeType === 1 && ( elem.className ? - ( " " + elem.className + " " ).replace( rclass, " " ) : - " " - ); - - if ( cur ) { - j = 0; - while ( (clazz = classes[j++]) ) { - if ( cur.indexOf( " " + clazz + " " ) < 0 ) { - cur += clazz + " "; - } - } - elem.className = jQuery.trim( cur ); - - } - } - } - - return this; - }, - - removeClass: function( value ) { - var classes, elem, cur, clazz, j, - i = 0, - len = this.length, - proceed = arguments.length === 0 || typeof value === "string" && value; - - if ( jQuery.isFunction( value ) ) { - return this.each(function( j ) { - jQuery( this ).removeClass( value.call( this, j, this.className ) ); - }); - } - if ( proceed ) { - classes = ( value || "" ).match( core_rnotwhite ) || []; - - for ( ; i < len; i++ ) { - elem = this[ i ]; - // This expression is here for better compressibility (see addClass) - cur = elem.nodeType === 1 && ( elem.className ? - ( " " + elem.className + " " ).replace( rclass, " " ) : - "" - ); - - if ( cur ) { - j = 0; - while ( (clazz = classes[j++]) ) { - // Remove *all* instances - while ( cur.indexOf( " " + clazz + " " ) >= 0 ) { - cur = cur.replace( " " + clazz + " ", " " ); - } - } - elem.className = value ? jQuery.trim( cur ) : ""; - } - } - } - - return this; - }, - - toggleClass: function( value, stateVal ) { - var type = typeof value, - isBool = typeof stateVal === "boolean"; - - if ( jQuery.isFunction( value ) ) { - return this.each(function( i ) { - jQuery( this ).toggleClass( value.call(this, i, this.className, stateVal), stateVal ); - }); - } - - return this.each(function() { - if ( type === "string" ) { - // toggle individual class names - var className, - i = 0, - self = jQuery( this ), - state = stateVal, - classNames = value.match( core_rnotwhite ) || []; - - while ( (className = classNames[ i++ ]) ) { - // check each className given, space separated list - state = isBool ? state : !self.hasClass( className ); - self[ state ? "addClass" : "removeClass" ]( className ); - } - - // Toggle whole class name - } else if ( type === core_strundefined || type === "boolean" ) { - if ( this.className ) { - // store className if set - jQuery._data( this, "__className__", this.className ); - } - - // If the element has a class name or if we're passed "false", - // then remove the whole classname (if there was one, the above saved it). - // Otherwise bring back whatever was previously saved (if anything), - // falling back to the empty string if nothing was stored. - this.className = this.className || value === false ? "" : jQuery._data( this, "__className__" ) || ""; - } - }); - }, - - hasClass: function( selector ) { - var className = " " + selector + " ", - i = 0, - l = this.length; - for ( ; i < l; i++ ) { - if ( this[i].nodeType === 1 && (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) >= 0 ) { - return true; - } - } - - return false; - }, - - val: function( value ) { - var ret, hooks, isFunction, - elem = this[0]; - - if ( !arguments.length ) { - if ( elem ) { - hooks = jQuery.valHooks[ elem.type ] || jQuery.valHooks[ elem.nodeName.toLowerCase() ]; - - if ( hooks && "get" in hooks && (ret = hooks.get( elem, "value" )) !== undefined ) { - return ret; - } - - ret = elem.value; - - return typeof ret === "string" ? - // handle most common string cases - ret.replace(rreturn, "") : - // handle cases where value is null/undef or number - ret == null ? "" : ret; - } - - return; - } - - isFunction = jQuery.isFunction( value ); - - return this.each(function( i ) { - var val, - self = jQuery(this); - - if ( this.nodeType !== 1 ) { - return; - } - - if ( isFunction ) { - val = value.call( this, i, self.val() ); - } else { - val = value; - } - - // Treat null/undefined as ""; convert numbers to string - if ( val == null ) { - val = ""; - } else if ( typeof val === "number" ) { - val += ""; - } else if ( jQuery.isArray( val ) ) { - val = jQuery.map(val, function ( value ) { - return value == null ? "" : value + ""; - }); - } - - hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ]; - - // If set returns undefined, fall back to normal setting - if ( !hooks || !("set" in hooks) || hooks.set( this, val, "value" ) === undefined ) { - this.value = val; - } - }); - } -}); - -jQuery.extend({ - valHooks: { - option: { - get: function( elem ) { - // attributes.value is undefined in Blackberry 4.7 but - // uses .value. See #6932 - var val = elem.attributes.value; - return !val || val.specified ? elem.value : elem.text; - } - }, - select: { - get: function( elem ) { - var value, option, - options = elem.options, - index = elem.selectedIndex, - one = elem.type === "select-one" || index < 0, - values = one ? null : [], - max = one ? index + 1 : options.length, - i = index < 0 ? - max : - one ? index : 0; - - // Loop through all the selected options - for ( ; i < max; i++ ) { - option = options[ i ]; - - // oldIE doesn't update selected after form reset (#2551) - if ( ( option.selected || i === index ) && - // Don't return options that are disabled or in a disabled optgroup - ( jQuery.support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null ) && - ( !option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" ) ) ) { - - // Get the specific value for the option - value = jQuery( option ).val(); - - // We don't need an array for one selects - if ( one ) { - return value; - } - - // Multi-Selects return an array - values.push( value ); - } - } - - return values; - }, - - set: function( elem, value ) { - var values = jQuery.makeArray( value ); - - jQuery(elem).find("option").each(function() { - this.selected = jQuery.inArray( jQuery(this).val(), values ) >= 0; - }); - - if ( !values.length ) { - elem.selectedIndex = -1; - } - return values; - } - } - }, - - attr: function( elem, name, value ) { - var hooks, notxml, ret, - nType = elem.nodeType; - - // don't get/set attributes on text, comment and attribute nodes - if ( !elem || nType === 3 || nType === 8 || nType === 2 ) { - return; - } - - // Fallback to prop when attributes are not supported - if ( typeof elem.getAttribute === core_strundefined ) { - return jQuery.prop( elem, name, value ); - } - - notxml = nType !== 1 || !jQuery.isXMLDoc( elem ); - - // All attributes are lowercase - // Grab necessary hook if one is defined - if ( notxml ) { - name = name.toLowerCase(); - hooks = jQuery.attrHooks[ name ] || ( rboolean.test( name ) ? boolHook : nodeHook ); - } - - if ( value !== undefined ) { - - if ( value === null ) { - jQuery.removeAttr( elem, name ); - - } else if ( hooks && notxml && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) { - return ret; - - } else { - elem.setAttribute( name, value + "" ); - return value; - } - - } else if ( hooks && notxml && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) { - return ret; - - } else { - - // In IE9+, Flash objects don't have .getAttribute (#12945) - // Support: IE9+ - if ( typeof elem.getAttribute !== core_strundefined ) { - try{ ret = elem.getAttribute( name ); }catch( ex ){} - } - - // Non-existent attributes return null, we normalize to undefined - return ret == null ? - undefined : - ret; - } - }, - - removeAttr: function( elem, value ) { - var name, propName, - i = 0, - attrNames = value && value.match( core_rnotwhite ); - - if ( attrNames && elem.nodeType === 1 ) { - while ( (name = attrNames[i++]) ) { - propName = jQuery.propFix[ name ] || name; - - // Boolean attributes get special treatment (#10870) - if ( rboolean.test( name ) ) { - // Set corresponding property to false for boolean attributes - // Also clear defaultChecked/defaultSelected (if appropriate) for IE<8 - if ( !getSetAttribute && ruseDefault.test( name ) ) { - elem[ jQuery.camelCase( "default-" + name ) ] = - elem[ propName ] = false; - } else { - elem[ propName ] = false; - } - - // See #9699 for explanation of this approach (setting first, then removal) - } else { - jQuery.attr( elem, name, "" ); - } - - elem.removeAttribute( getSetAttribute ? name : propName ); - } - } - }, - - attrHooks: { - type: { - set: function( elem, value ) { - if ( !jQuery.support.radioValue && value === "radio" && jQuery.nodeName(elem, "input") ) { - // Setting the type on a radio button after the value resets the value in IE6-9 - // Reset value to default in case type is set after value during creation - var val = elem.value; - elem.setAttribute( "type", value ); - if ( val ) { - elem.value = val; - } - return value; - } - } - } - }, - - propFix: { - tabindex: "tabIndex", - readonly: "readOnly", - "for": "htmlFor", - "class": "className", - maxlength: "maxLength", - cellspacing: "cellSpacing", - cellpadding: "cellPadding", - rowspan: "rowSpan", - colspan: "colSpan", - usemap: "useMap", - frameborder: "frameBorder", - contenteditable: "contentEditable" - }, - - prop: function( elem, name, value ) { - var ret, hooks, notxml, - nType = elem.nodeType; - - // don't get/set properties on text, comment and attribute nodes - if ( !elem || nType === 3 || nType === 8 || nType === 2 ) { - return; - } - - notxml = nType !== 1 || !jQuery.isXMLDoc( elem ); - - if ( notxml ) { - // Fix name and attach hooks - name = jQuery.propFix[ name ] || name; - hooks = jQuery.propHooks[ name ]; - } - - if ( value !== undefined ) { - if ( hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) { - return ret; - - } else { - return ( elem[ name ] = value ); - } - - } else { - if ( hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) { - return ret; - - } else { - return elem[ name ]; - } - } - }, - - propHooks: { - tabIndex: { - get: function( elem ) { - // elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set - // http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/ - var attributeNode = elem.getAttributeNode("tabindex"); - - return attributeNode && attributeNode.specified ? - parseInt( attributeNode.value, 10 ) : - rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ? - 0 : - undefined; - } - } - } -}); - -// Hook for boolean attributes -boolHook = { - get: function( elem, name ) { - var - // Use .prop to determine if this attribute is understood as boolean - prop = jQuery.prop( elem, name ), - - // Fetch it accordingly - attr = typeof prop === "boolean" && elem.getAttribute( name ), - detail = typeof prop === "boolean" ? - - getSetInput && getSetAttribute ? - attr != null : - // oldIE fabricates an empty string for missing boolean attributes - // and conflates checked/selected into attroperties - ruseDefault.test( name ) ? - elem[ jQuery.camelCase( "default-" + name ) ] : - !!attr : - - // fetch an attribute node for properties not recognized as boolean - elem.getAttributeNode( name ); - - return detail && detail.value !== false ? - name.toLowerCase() : - undefined; - }, - set: function( elem, value, name ) { - if ( value === false ) { - // Remove boolean attributes when set to false - jQuery.removeAttr( elem, name ); - } else if ( getSetInput && getSetAttribute || !ruseDefault.test( name ) ) { - // IE<8 needs the *property* name - elem.setAttribute( !getSetAttribute && jQuery.propFix[ name ] || name, name ); - - // Use defaultChecked and defaultSelected for oldIE - } else { - elem[ jQuery.camelCase( "default-" + name ) ] = elem[ name ] = true; - } - - return name; - } -}; - -// fix oldIE value attroperty -if ( !getSetInput || !getSetAttribute ) { - jQuery.attrHooks.value = { - get: function( elem, name ) { - var ret = elem.getAttributeNode( name ); - return jQuery.nodeName( elem, "input" ) ? - - // Ignore the value *property* by using defaultValue - elem.defaultValue : - - ret && ret.specified ? ret.value : undefined; - }, - set: function( elem, value, name ) { - if ( jQuery.nodeName( elem, "input" ) ) { - // Does not return so that setAttribute is also used - elem.defaultValue = value; - } else { - // Use nodeHook if defined (#1954); otherwise setAttribute is fine - return nodeHook && nodeHook.set( elem, value, name ); - } - } - }; -} - -// IE6/7 do not support getting/setting some attributes with get/setAttribute -if ( !getSetAttribute ) { - - // Use this for any attribute in IE6/7 - // This fixes almost every IE6/7 issue - nodeHook = jQuery.valHooks.button = { - get: function( elem, name ) { - var ret = elem.getAttributeNode( name ); - return ret && ( name === "id" || name === "name" || name === "coords" ? ret.value !== "" : ret.specified ) ? - ret.value : - undefined; - }, - set: function( elem, value, name ) { - // Set the existing or create a new attribute node - var ret = elem.getAttributeNode( name ); - if ( !ret ) { - elem.setAttributeNode( - (ret = elem.ownerDocument.createAttribute( name )) - ); - } - - ret.value = value += ""; - - // Break association with cloned elements by also using setAttribute (#9646) - return name === "value" || value === elem.getAttribute( name ) ? - value : - undefined; - } - }; - - // Set contenteditable to false on removals(#10429) - // Setting to empty string throws an error as an invalid value - jQuery.attrHooks.contenteditable = { - get: nodeHook.get, - set: function( elem, value, name ) { - nodeHook.set( elem, value === "" ? false : value, name ); - } - }; - - // Set width and height to auto instead of 0 on empty string( Bug #8150 ) - // This is for removals - jQuery.each([ "width", "height" ], function( i, name ) { - jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], { - set: function( elem, value ) { - if ( value === "" ) { - elem.setAttribute( name, "auto" ); - return value; - } - } - }); - }); -} - - -// Some attributes require a special call on IE -// http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx -if ( !jQuery.support.hrefNormalized ) { - jQuery.each([ "href", "src", "width", "height" ], function( i, name ) { - jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], { - get: function( elem ) { - var ret = elem.getAttribute( name, 2 ); - return ret == null ? undefined : ret; - } - }); - }); - - // href/src property should get the full normalized URL (#10299/#12915) - jQuery.each([ "href", "src" ], function( i, name ) { - jQuery.propHooks[ name ] = { - get: function( elem ) { - return elem.getAttribute( name, 4 ); - } - }; - }); -} - -if ( !jQuery.support.style ) { - jQuery.attrHooks.style = { - get: function( elem ) { - // Return undefined in the case of empty string - // Note: IE uppercases css property names, but if we were to .toLowerCase() - // .cssText, that would destroy case senstitivity in URL's, like in "background" - return elem.style.cssText || undefined; - }, - set: function( elem, value ) { - return ( elem.style.cssText = value + "" ); - } - }; -} - -// Safari mis-reports the default selected property of an option -// Accessing the parent's selectedIndex property fixes it -if ( !jQuery.support.optSelected ) { - jQuery.propHooks.selected = jQuery.extend( jQuery.propHooks.selected, { - get: function( elem ) { - var parent = elem.parentNode; - - if ( parent ) { - parent.selectedIndex; - - // Make sure that it also works with optgroups, see #5701 - if ( parent.parentNode ) { - parent.parentNode.selectedIndex; - } - } - return null; - } - }); -} - -// IE6/7 call enctype encoding -if ( !jQuery.support.enctype ) { - jQuery.propFix.enctype = "encoding"; -} - -// Radios and checkboxes getter/setter -if ( !jQuery.support.checkOn ) { - jQuery.each([ "radio", "checkbox" ], function() { - jQuery.valHooks[ this ] = { - get: function( elem ) { - // Handle the case where in Webkit "" is returned instead of "on" if a value isn't specified - return elem.getAttribute("value") === null ? "on" : elem.value; - } - }; - }); -} -jQuery.each([ "radio", "checkbox" ], function() { - jQuery.valHooks[ this ] = jQuery.extend( jQuery.valHooks[ this ], { - set: function( elem, value ) { - if ( jQuery.isArray( value ) ) { - return ( elem.checked = jQuery.inArray( jQuery(elem).val(), value ) >= 0 ); - } - } - }); -}); -var rformElems = /^(?:input|select|textarea)$/i, - rkeyEvent = /^key/, - rmouseEvent = /^(?:mouse|contextmenu)|click/, - rfocusMorph = /^(?:focusinfocus|focusoutblur)$/, - rtypenamespace = /^([^.]*)(?:\.(.+)|)$/; - -function returnTrue() { - return true; -} - -function returnFalse() { - return false; -} - -/* - * Helper functions for managing events -- not part of the public interface. - * Props to Dean Edwards' addEvent library for many of the ideas. - */ -jQuery.event = { - - global: {}, - - add: function( elem, types, handler, data, selector ) { - var tmp, events, t, handleObjIn, - special, eventHandle, handleObj, - handlers, type, namespaces, origType, - elemData = jQuery._data( elem ); - - // Don't attach events to noData or text/comment nodes (but allow plain objects) - if ( !elemData ) { - return; - } - - // Caller can pass in an object of custom data in lieu of the handler - if ( handler.handler ) { - handleObjIn = handler; - handler = handleObjIn.handler; - selector = handleObjIn.selector; - } - - // Make sure that the handler has a unique ID, used to find/remove it later - if ( !handler.guid ) { - handler.guid = jQuery.guid++; - } - - // Init the element's event structure and main handler, if this is the first - if ( !(events = elemData.events) ) { - events = elemData.events = {}; - } - if ( !(eventHandle = elemData.handle) ) { - eventHandle = elemData.handle = function( e ) { - // Discard the second event of a jQuery.event.trigger() and - // when an event is called after a page has unloaded - return typeof jQuery !== core_strundefined && (!e || jQuery.event.triggered !== e.type) ? - jQuery.event.dispatch.apply( eventHandle.elem, arguments ) : - undefined; - }; - // Add elem as a property of the handle fn to prevent a memory leak with IE non-native events - eventHandle.elem = elem; - } - - // Handle multiple events separated by a space - // jQuery(...).bind("mouseover mouseout", fn); - types = ( types || "" ).match( core_rnotwhite ) || [""]; - t = types.length; - while ( t-- ) { - tmp = rtypenamespace.exec( types[t] ) || []; - type = origType = tmp[1]; - namespaces = ( tmp[2] || "" ).split( "." ).sort(); - - // If event changes its type, use the special event handlers for the changed type - special = jQuery.event.special[ type ] || {}; - - // If selector defined, determine special event api type, otherwise given type - type = ( selector ? special.delegateType : special.bindType ) || type; - - // Update special based on newly reset type - special = jQuery.event.special[ type ] || {}; - - // handleObj is passed to all event handlers - handleObj = jQuery.extend({ - type: type, - origType: origType, - data: data, - handler: handler, - guid: handler.guid, - selector: selector, - needsContext: selector && jQuery.expr.match.needsContext.test( selector ), - namespace: namespaces.join(".") - }, handleObjIn ); - - // Init the event handler queue if we're the first - if ( !(handlers = events[ type ]) ) { - handlers = events[ type ] = []; - handlers.delegateCount = 0; - - // Only use addEventListener/attachEvent if the special events handler returns false - if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) { - // Bind the global event handler to the element - if ( elem.addEventListener ) { - elem.addEventListener( type, eventHandle, false ); - - } else if ( elem.attachEvent ) { - elem.attachEvent( "on" + type, eventHandle ); - } - } - } - - if ( special.add ) { - special.add.call( elem, handleObj ); - - if ( !handleObj.handler.guid ) { - handleObj.handler.guid = handler.guid; - } - } - - // Add to the element's handler list, delegates in front - if ( selector ) { - handlers.splice( handlers.delegateCount++, 0, handleObj ); - } else { - handlers.push( handleObj ); - } - - // Keep track of which events have ever been used, for event optimization - jQuery.event.global[ type ] = true; - } - - // Nullify elem to prevent memory leaks in IE - elem = null; - }, - - // Detach an event or set of events from an element - remove: function( elem, types, handler, selector, mappedTypes ) { - var j, handleObj, tmp, - origCount, t, events, - special, handlers, type, - namespaces, origType, - elemData = jQuery.hasData( elem ) && jQuery._data( elem ); - - if ( !elemData || !(events = elemData.events) ) { - return; - } - - // Once for each type.namespace in types; type may be omitted - types = ( types || "" ).match( core_rnotwhite ) || [""]; - t = types.length; - while ( t-- ) { - tmp = rtypenamespace.exec( types[t] ) || []; - type = origType = tmp[1]; - namespaces = ( tmp[2] || "" ).split( "." ).sort(); - - // Unbind all events (on this namespace, if provided) for the element - if ( !type ) { - for ( type in events ) { - jQuery.event.remove( elem, type + types[ t ], handler, selector, true ); - } - continue; - } - - special = jQuery.event.special[ type ] || {}; - type = ( selector ? special.delegateType : special.bindType ) || type; - handlers = events[ type ] || []; - tmp = tmp[2] && new RegExp( "(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)" ); - - // Remove matching events - origCount = j = handlers.length; - while ( j-- ) { - handleObj = handlers[ j ]; - - if ( ( mappedTypes || origType === handleObj.origType ) && - ( !handler || handler.guid === handleObj.guid ) && - ( !tmp || tmp.test( handleObj.namespace ) ) && - ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) { - handlers.splice( j, 1 ); - - if ( handleObj.selector ) { - handlers.delegateCount--; - } - if ( special.remove ) { - special.remove.call( elem, handleObj ); - } - } - } - - // Remove generic event handler if we removed something and no more handlers exist - // (avoids potential for endless recursion during removal of special event handlers) - if ( origCount && !handlers.length ) { - if ( !special.teardown || special.teardown.call( elem, namespaces, elemData.handle ) === false ) { - jQuery.removeEvent( elem, type, elemData.handle ); - } - - delete events[ type ]; - } - } - - // Remove the expando if it's no longer used - if ( jQuery.isEmptyObject( events ) ) { - delete elemData.handle; - - // removeData also checks for emptiness and clears the expando if empty - // so use it instead of delete - jQuery._removeData( elem, "events" ); - } - }, - - trigger: function( event, data, elem, onlyHandlers ) { - var handle, ontype, cur, - bubbleType, special, tmp, i, - eventPath = [ elem || document ], - type = core_hasOwn.call( event, "type" ) ? event.type : event, - namespaces = core_hasOwn.call( event, "namespace" ) ? event.namespace.split(".") : []; - - cur = tmp = elem = elem || document; - - // Don't do events on text and comment nodes - if ( elem.nodeType === 3 || elem.nodeType === 8 ) { - return; - } - - // focus/blur morphs to focusin/out; ensure we're not firing them right now - if ( rfocusMorph.test( type + jQuery.event.triggered ) ) { - return; - } - - if ( type.indexOf(".") >= 0 ) { - // Namespaced trigger; create a regexp to match event type in handle() - namespaces = type.split("."); - type = namespaces.shift(); - namespaces.sort(); - } - ontype = type.indexOf(":") < 0 && "on" + type; - - // Caller can pass in a jQuery.Event object, Object, or just an event type string - event = event[ jQuery.expando ] ? - event : - new jQuery.Event( type, typeof event === "object" && event ); - - event.isTrigger = true; - event.namespace = namespaces.join("."); - event.namespace_re = event.namespace ? - new RegExp( "(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)" ) : - null; - - // Clean up the event in case it is being reused - event.result = undefined; - if ( !event.target ) { - event.target = elem; - } - - // Clone any incoming data and prepend the event, creating the handler arg list - data = data == null ? - [ event ] : - jQuery.makeArray( data, [ event ] ); - - // Allow special events to draw outside the lines - special = jQuery.event.special[ type ] || {}; - if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) { - return; - } - - // Determine event propagation path in advance, per W3C events spec (#9951) - // Bubble up to document, then to window; watch for a global ownerDocument var (#9724) - if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) { - - bubbleType = special.delegateType || type; - if ( !rfocusMorph.test( bubbleType + type ) ) { - cur = cur.parentNode; - } - for ( ; cur; cur = cur.parentNode ) { - eventPath.push( cur ); - tmp = cur; - } - - // Only add window if we got to document (e.g., not plain obj or detached DOM) - if ( tmp === (elem.ownerDocument || document) ) { - eventPath.push( tmp.defaultView || tmp.parentWindow || window ); - } - } - - // Fire handlers on the event path - i = 0; - while ( (cur = eventPath[i++]) && !event.isPropagationStopped() ) { - - event.type = i > 1 ? - bubbleType : - special.bindType || type; - - // jQuery handler - handle = ( jQuery._data( cur, "events" ) || {} )[ event.type ] && jQuery._data( cur, "handle" ); - if ( handle ) { - handle.apply( cur, data ); - } - - // Native handler - handle = ontype && cur[ ontype ]; - if ( handle && jQuery.acceptData( cur ) && handle.apply && handle.apply( cur, data ) === false ) { - event.preventDefault(); - } - } - event.type = type; - - // If nobody prevented the default action, do it now - if ( !onlyHandlers && !event.isDefaultPrevented() ) { - - if ( (!special._default || special._default.apply( elem.ownerDocument, data ) === false) && - !(type === "click" && jQuery.nodeName( elem, "a" )) && jQuery.acceptData( elem ) ) { - - // Call a native DOM method on the target with the same name name as the event. - // Can't use an .isFunction() check here because IE6/7 fails that test. - // Don't do default actions on window, that's where global variables be (#6170) - if ( ontype && elem[ type ] && !jQuery.isWindow( elem ) ) { - - // Don't re-trigger an onFOO event when we call its FOO() method - tmp = elem[ ontype ]; - - if ( tmp ) { - elem[ ontype ] = null; - } - - // Prevent re-triggering of the same event, since we already bubbled it above - jQuery.event.triggered = type; - try { - elem[ type ](); - } catch ( e ) { - // IE<9 dies on focus/blur to hidden element (#1486,#12518) - // only reproducible on winXP IE8 native, not IE9 in IE8 mode - } - jQuery.event.triggered = undefined; - - if ( tmp ) { - elem[ ontype ] = tmp; - } - } - } - } - - return event.result; - }, - - dispatch: function( event ) { - - // Make a writable jQuery.Event from the native event object - event = jQuery.event.fix( event ); - - var i, ret, handleObj, matched, j, - handlerQueue = [], - args = core_slice.call( arguments ), - handlers = ( jQuery._data( this, "events" ) || {} )[ event.type ] || [], - special = jQuery.event.special[ event.type ] || {}; - - // Use the fix-ed jQuery.Event rather than the (read-only) native event - args[0] = event; - event.delegateTarget = this; - - // Call the preDispatch hook for the mapped type, and let it bail if desired - if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) { - return; - } - - // Determine handlers - handlerQueue = jQuery.event.handlers.call( this, event, handlers ); - - // Run delegates first; they may want to stop propagation beneath us - i = 0; - while ( (matched = handlerQueue[ i++ ]) && !event.isPropagationStopped() ) { - event.currentTarget = matched.elem; - - j = 0; - while ( (handleObj = matched.handlers[ j++ ]) && !event.isImmediatePropagationStopped() ) { - - // Triggered event must either 1) have no namespace, or - // 2) have namespace(s) a subset or equal to those in the bound event (both can have no namespace). - if ( !event.namespace_re || event.namespace_re.test( handleObj.namespace ) ) { - - event.handleObj = handleObj; - event.data = handleObj.data; - - ret = ( (jQuery.event.special[ handleObj.origType ] || {}).handle || handleObj.handler ) - .apply( matched.elem, args ); - - if ( ret !== undefined ) { - if ( (event.result = ret) === false ) { - event.preventDefault(); - event.stopPropagation(); - } - } - } - } - } - - // Call the postDispatch hook for the mapped type - if ( special.postDispatch ) { - special.postDispatch.call( this, event ); - } - - return event.result; - }, - - handlers: function( event, handlers ) { - var sel, handleObj, matches, i, - handlerQueue = [], - delegateCount = handlers.delegateCount, - cur = event.target; - - // Find delegate handlers - // Black-hole SVG instance trees (#13180) - // Avoid non-left-click bubbling in Firefox (#3861) - if ( delegateCount && cur.nodeType && (!event.button || event.type !== "click") ) { - - for ( ; cur != this; cur = cur.parentNode || this ) { - - // Don't check non-elements (#13208) - // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764) - if ( cur.nodeType === 1 && (cur.disabled !== true || event.type !== "click") ) { - matches = []; - for ( i = 0; i < delegateCount; i++ ) { - handleObj = handlers[ i ]; - - // Don't conflict with Object.prototype properties (#13203) - sel = handleObj.selector + " "; - - if ( matches[ sel ] === undefined ) { - matches[ sel ] = handleObj.needsContext ? - jQuery( sel, this ).index( cur ) >= 0 : - jQuery.find( sel, this, null, [ cur ] ).length; - } - if ( matches[ sel ] ) { - matches.push( handleObj ); - } - } - if ( matches.length ) { - handlerQueue.push({ elem: cur, handlers: matches }); - } - } - } - } - - // Add the remaining (directly-bound) handlers - if ( delegateCount < handlers.length ) { - handlerQueue.push({ elem: this, handlers: handlers.slice( delegateCount ) }); - } - - return handlerQueue; - }, - - fix: function( event ) { - if ( event[ jQuery.expando ] ) { - return event; - } - - // Create a writable copy of the event object and normalize some properties - var i, prop, copy, - type = event.type, - originalEvent = event, - fixHook = this.fixHooks[ type ]; - - if ( !fixHook ) { - this.fixHooks[ type ] = fixHook = - rmouseEvent.test( type ) ? this.mouseHooks : - rkeyEvent.test( type ) ? this.keyHooks : - {}; - } - copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props; - - event = new jQuery.Event( originalEvent ); - - i = copy.length; - while ( i-- ) { - prop = copy[ i ]; - event[ prop ] = originalEvent[ prop ]; - } - - // Support: IE<9 - // Fix target property (#1925) - if ( !event.target ) { - event.target = originalEvent.srcElement || document; - } - - // Support: Chrome 23+, Safari? - // Target should not be a text node (#504, #13143) - if ( event.target.nodeType === 3 ) { - event.target = event.target.parentNode; - } - - // Support: IE<9 - // For mouse/key events, metaKey==false if it's undefined (#3368, #11328) - event.metaKey = !!event.metaKey; - - return fixHook.filter ? fixHook.filter( event, originalEvent ) : event; - }, - - // Includes some event props shared by KeyEvent and MouseEvent - 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( event, original ) { - - // Add which for key events - if ( event.which == null ) { - event.which = original.charCode != null ? original.charCode : original.keyCode; - } - - return event; - } - }, - - mouseHooks: { - props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "), - filter: function( event, original ) { - var body, eventDoc, doc, - button = original.button, - fromElement = original.fromElement; - - // Calculate pageX/Y if missing and clientX/Y available - if ( event.pageX == null && original.clientX != null ) { - eventDoc = event.target.ownerDocument || document; - doc = eventDoc.documentElement; - body = eventDoc.body; - - event.pageX = original.clientX + ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) - ( doc && doc.clientLeft || body && body.clientLeft || 0 ); - event.pageY = original.clientY + ( doc && doc.scrollTop || body && body.scrollTop || 0 ) - ( doc && doc.clientTop || body && body.clientTop || 0 ); - } - - // Add relatedTarget, if necessary - if ( !event.relatedTarget && fromElement ) { - event.relatedTarget = fromElement === event.target ? original.toElement : fromElement; - } - - // Add which for click: 1 === left; 2 === middle; 3 === right - // Note: button is not normalized, so don't use it - if ( !event.which && button !== undefined ) { - event.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) ); - } - - return event; - } - }, - - special: { - load: { - // Prevent triggered image.load events from bubbling to window.load - noBubble: true - }, - click: { - // For checkbox, fire native event so checked state will be right - trigger: function() { - if ( jQuery.nodeName( this, "input" ) && this.type === "checkbox" && this.click ) { - this.click(); - return false; - } - } - }, - focus: { - // Fire native event if possible so blur/focus sequence is correct - trigger: function() { - if ( this !== document.activeElement && this.focus ) { - try { - this.focus(); - return false; - } catch ( e ) { - // Support: IE<9 - // If we error on focus to hidden element (#1486, #12518), - // let .trigger() run the handlers - } - } - }, - delegateType: "focusin" - }, - blur: { - trigger: function() { - if ( this === document.activeElement && this.blur ) { - this.blur(); - return false; - } - }, - delegateType: "focusout" - }, - - beforeunload: { - postDispatch: function( event ) { - - // Even when returnValue equals to undefined Firefox will still show alert - if ( event.result !== undefined ) { - event.originalEvent.returnValue = event.result; - } - } - } - }, - - simulate: function( type, elem, event, bubble ) { - // Piggyback on a donor event to simulate a different one. - // Fake originalEvent to avoid donor's stopPropagation, but if the - // simulated event prevents default then we do the same on the donor. - var e = jQuery.extend( - new jQuery.Event(), - event, - { type: type, - isSimulated: true, - originalEvent: {} - } - ); - if ( bubble ) { - jQuery.event.trigger( e, null, elem ); - } else { - jQuery.event.dispatch.call( elem, e ); - } - if ( e.isDefaultPrevented() ) { - event.preventDefault(); - } - } -}; - -jQuery.removeEvent = document.removeEventListener ? - function( elem, type, handle ) { - if ( elem.removeEventListener ) { - elem.removeEventListener( type, handle, false ); - } - } : - function( elem, type, handle ) { - var name = "on" + type; - - if ( elem.detachEvent ) { - - // #8545, #7054, preventing memory leaks for custom events in IE6-8 - // detachEvent needed property on element, by name of that event, to properly expose it to GC - if ( typeof elem[ name ] === core_strundefined ) { - elem[ name ] = null; - } - - elem.detachEvent( name, handle ); - } - }; - -jQuery.Event = function( src, props ) { - // Allow instantiation without the 'new' keyword - if ( !(this instanceof jQuery.Event) ) { - return new jQuery.Event( src, props ); - } - - // Event object - if ( src && src.type ) { - this.originalEvent = src; - this.type = src.type; - - // Events bubbling up the document may have been marked as prevented - // by a handler lower down the tree; reflect the correct value. - this.isDefaultPrevented = ( src.defaultPrevented || src.returnValue === false || - src.getPreventDefault && src.getPreventDefault() ) ? returnTrue : returnFalse; - - // Event type - } else { - this.type = src; - } - - // Put explicitly provided properties onto the event object - if ( props ) { - jQuery.extend( this, props ); - } - - // Create a timestamp if incoming event doesn't have one - this.timeStamp = src && src.timeStamp || jQuery.now(); - - // Mark it as fixed - this[ jQuery.expando ] = true; -}; - -// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding -// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html -jQuery.Event.prototype = { - isDefaultPrevented: returnFalse, - isPropagationStopped: returnFalse, - isImmediatePropagationStopped: returnFalse, - - preventDefault: function() { - var e = this.originalEvent; - - this.isDefaultPrevented = returnTrue; - if ( !e ) { - return; - } - - // If preventDefault exists, run it on the original event - if ( e.preventDefault ) { - e.preventDefault(); - - // Support: IE - // Otherwise set the returnValue property of the original event to false - } else { - e.returnValue = false; - } - }, - stopPropagation: function() { - var e = this.originalEvent; - - this.isPropagationStopped = returnTrue; - if ( !e ) { - return; - } - // If stopPropagation exists, run it on the original event - if ( e.stopPropagation ) { - e.stopPropagation(); - } - - // Support: IE - // Set the cancelBubble property of the original event to true - e.cancelBubble = true; - }, - stopImmediatePropagation: function() { - this.isImmediatePropagationStopped = returnTrue; - this.stopPropagation(); - } -}; - -// Create mouseenter/leave events using mouseover/out and event-time checks -jQuery.each({ - mouseenter: "mouseover", - mouseleave: "mouseout" -}, function( orig, fix ) { - jQuery.event.special[ orig ] = { - delegateType: fix, - bindType: fix, - - handle: function( event ) { - var ret, - target = this, - related = event.relatedTarget, - handleObj = event.handleObj; - - // For mousenter/leave call the handler if related is outside the target. - // NB: No relatedTarget if the mouse left/entered the browser window - if ( !related || (related !== target && !jQuery.contains( target, related )) ) { - event.type = handleObj.origType; - ret = handleObj.handler.apply( this, arguments ); - event.type = fix; - } - return ret; - } - }; -}); - -// IE submit delegation -if ( !jQuery.support.submitBubbles ) { - - jQuery.event.special.submit = { - setup: function() { - // Only need this for delegated form submit events - if ( jQuery.nodeName( this, "form" ) ) { - return false; - } - - // Lazy-add a submit handler when a descendant form may potentially be submitted - jQuery.event.add( this, "click._submit keypress._submit", function( e ) { - // Node name check avoids a VML-related crash in IE (#9807) - var elem = e.target, - form = jQuery.nodeName( elem, "input" ) || jQuery.nodeName( elem, "button" ) ? elem.form : undefined; - if ( form && !jQuery._data( form, "submitBubbles" ) ) { - jQuery.event.add( form, "submit._submit", function( event ) { - event._submit_bubble = true; - }); - jQuery._data( form, "submitBubbles", true ); - } - }); - // return undefined since we don't need an event listener - }, - - postDispatch: function( event ) { - // If form was submitted by the user, bubble the event up the tree - if ( event._submit_bubble ) { - delete event._submit_bubble; - if ( this.parentNode && !event.isTrigger ) { - jQuery.event.simulate( "submit", this.parentNode, event, true ); - } - } - }, - - teardown: function() { - // Only need this for delegated form submit events - if ( jQuery.nodeName( this, "form" ) ) { - return false; - } - - // Remove delegated handlers; cleanData eventually reaps submit handlers attached above - jQuery.event.remove( this, "._submit" ); - } - }; -} - -// IE change delegation and checkbox/radio fix -if ( !jQuery.support.changeBubbles ) { - - jQuery.event.special.change = { - - setup: function() { - - if ( rformElems.test( this.nodeName ) ) { - // IE doesn't fire change on a check/radio until blur; trigger it on click - // after a propertychange. Eat the blur-change in special.change.handle. - // This still fires onchange a second time for check/radio after blur. - if ( this.type === "checkbox" || this.type === "radio" ) { - jQuery.event.add( this, "propertychange._change", function( event ) { - if ( event.originalEvent.propertyName === "checked" ) { - this._just_changed = true; - } - }); - jQuery.event.add( this, "click._change", function( event ) { - if ( this._just_changed && !event.isTrigger ) { - this._just_changed = false; - } - // Allow triggered, simulated change events (#11500) - jQuery.event.simulate( "change", this, event, true ); - }); - } - return false; - } - // Delegated event; lazy-add a change handler on descendant inputs - jQuery.event.add( this, "beforeactivate._change", function( e ) { - var elem = e.target; - - if ( rformElems.test( elem.nodeName ) && !jQuery._data( elem, "changeBubbles" ) ) { - jQuery.event.add( elem, "change._change", function( event ) { - if ( this.parentNode && !event.isSimulated && !event.isTrigger ) { - jQuery.event.simulate( "change", this.parentNode, event, true ); - } - }); - jQuery._data( elem, "changeBubbles", true ); - } - }); - }, - - handle: function( event ) { - var elem = event.target; - - // Swallow native change events from checkbox/radio, we already triggered them above - if ( this !== elem || event.isSimulated || event.isTrigger || (elem.type !== "radio" && elem.type !== "checkbox") ) { - return event.handleObj.handler.apply( this, arguments ); - } - }, - - teardown: function() { - jQuery.event.remove( this, "._change" ); - - return !rformElems.test( this.nodeName ); - } - }; -} - -// Create "bubbling" focus and blur events -if ( !jQuery.support.focusinBubbles ) { - jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) { - - // Attach a single capturing handler while someone wants focusin/focusout - var attaches = 0, - handler = function( event ) { - jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ), true ); - }; - - jQuery.event.special[ fix ] = { - setup: function() { - if ( attaches++ === 0 ) { - document.addEventListener( orig, handler, true ); - } - }, - teardown: function() { - if ( --attaches === 0 ) { - document.removeEventListener( orig, handler, true ); - } - } - }; - }); -} - -jQuery.fn.extend({ - - on: function( types, selector, data, fn, /*INTERNAL*/ one ) { - var type, origFn; - - // Types can be a map of types/handlers - if ( typeof types === "object" ) { - // ( types-Object, selector, data ) - if ( typeof selector !== "string" ) { - // ( types-Object, data ) - data = data || selector; - selector = undefined; - } - for ( type in types ) { - this.on( type, selector, data, types[ type ], one ); - } - return this; - } - - if ( data == null && fn == null ) { - // ( types, fn ) - fn = selector; - data = selector = undefined; - } else if ( fn == null ) { - if ( typeof selector === "string" ) { - // ( types, selector, fn ) - fn = data; - data = undefined; - } else { - // ( types, data, fn ) - fn = data; - data = selector; - selector = undefined; - } - } - if ( fn === false ) { - fn = returnFalse; - } else if ( !fn ) { - return this; - } - - if ( one === 1 ) { - origFn = fn; - fn = function( event ) { - // Can use an empty set, since event contains the info - jQuery().off( event ); - return origFn.apply( this, arguments ); - }; - // Use same guid so caller can remove using origFn - fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ ); - } - return this.each( function() { - jQuery.event.add( this, types, fn, data, selector ); - }); - }, - one: function( types, selector, data, fn ) { - return this.on( types, selector, data, fn, 1 ); - }, - off: function( types, selector, fn ) { - var handleObj, type; - if ( types && types.preventDefault && types.handleObj ) { - // ( event ) dispatched jQuery.Event - handleObj = types.handleObj; - jQuery( types.delegateTarget ).off( - handleObj.namespace ? handleObj.origType + "." + handleObj.namespace : handleObj.origType, - handleObj.selector, - handleObj.handler - ); - return this; - } - if ( typeof types === "object" ) { - // ( types-object [, selector] ) - for ( type in types ) { - this.off( type, selector, types[ type ] ); - } - return this; - } - if ( selector === false || typeof selector === "function" ) { - // ( types [, fn] ) - fn = selector; - selector = undefined; - } - if ( fn === false ) { - fn = returnFalse; - } - return this.each(function() { - jQuery.event.remove( this, types, fn, selector ); - }); - }, - - bind: function( types, data, fn ) { - return this.on( types, null, data, fn ); - }, - unbind: function( types, fn ) { - return this.off( types, null, fn ); - }, - - delegate: function( selector, types, data, fn ) { - return this.on( types, selector, data, fn ); - }, - undelegate: function( selector, types, fn ) { - // ( namespace ) or ( selector, types [, fn] ) - return arguments.length === 1 ? this.off( selector, "**" ) : this.off( types, selector || "**", fn ); - }, - - trigger: function( type, data ) { - return this.each(function() { - jQuery.event.trigger( type, data, this ); - }); - }, - triggerHandler: function( type, data ) { - var elem = this[0]; - if ( elem ) { - return jQuery.event.trigger( type, data, elem, true ); - } - } -}); -/*! - * Sizzle CSS Selector Engine - * Copyright 2012 jQuery Foundation and other contributors - * Released under the MIT license - * http://sizzlejs.com/ - */ -(function( window, undefined ) { - -var i, - cachedruns, - Expr, - getText, - isXML, - compile, - hasDuplicate, - outermostContext, - - // Local document vars - setDocument, - document, - docElem, - documentIsXML, - rbuggyQSA, - rbuggyMatches, - matches, - contains, - sortOrder, - - // Instance-specific data - expando = "sizzle" + -(new Date()), - preferredDoc = window.document, - support = {}, - dirruns = 0, - done = 0, - classCache = createCache(), - tokenCache = createCache(), - compilerCache = createCache(), - - // General-purpose constants - strundefined = typeof undefined, - MAX_NEGATIVE = 1 << 31, - - // Array methods - arr = [], - pop = arr.pop, - push = arr.push, - slice = arr.slice, - // Use a stripped-down indexOf if we can't use a native one - indexOf = arr.indexOf || function( elem ) { - var i = 0, - len = this.length; - for ( ; i < len; i++ ) { - if ( this[i] === elem ) { - return i; - } - } - return -1; - }, - - - // Regular expressions - - // Whitespace characters http://www.w3.org/TR/css3-selectors/#whitespace - whitespace = "[\\x20\\t\\r\\n\\f]", - // http://www.w3.org/TR/css3-syntax/#characters - characterEncoding = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+", - - // Loosely modeled on CSS identifier characters - // An unquoted value should be a CSS identifier http://www.w3.org/TR/css3-selectors/#attribute-selectors - // Proper syntax: http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier - identifier = characterEncoding.replace( "w", "w#" ), - - // Acceptable operators http://www.w3.org/TR/selectors/#attribute-selectors - operators = "([*^$|!~]?=)", - attributes = "\\[" + whitespace + "*(" + characterEncoding + ")" + whitespace + - "*(?:" + operators + whitespace + "*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|(" + identifier + ")|)|)" + whitespace + "*\\]", - - // Prefer arguments quoted, - // then not containing pseudos/brackets, - // then attribute selectors/non-parenthetical expressions, - // then anything else - // These preferences are here to reduce the number of selectors - // needing tokenize in the PSEUDO preFilter - pseudos = ":(" + characterEncoding + ")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|" + attributes.replace( 3, 8 ) + ")*)|.*)\\)|)", - - // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter - rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ), - - rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ), - rcombinators = new RegExp( "^" + whitespace + "*([\\x20\\t\\r\\n\\f>+~])" + whitespace + "*" ), - rpseudo = new RegExp( pseudos ), - ridentifier = new RegExp( "^" + identifier + "$" ), - - matchExpr = { - "ID": new RegExp( "^#(" + characterEncoding + ")" ), - "CLASS": new RegExp( "^\\.(" + characterEncoding + ")" ), - "NAME": new RegExp( "^\\[name=['\"]?(" + characterEncoding + ")['\"]?\\]" ), - "TAG": new RegExp( "^(" + characterEncoding.replace( "w", "w*" ) + ")" ), - "ATTR": new RegExp( "^" + attributes ), - "PSEUDO": new RegExp( "^" + pseudos ), - "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace + - "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace + - "*(\\d+)|))" + whitespace + "*\\)|)", "i" ), - // For use in libraries implementing .is() - // We use this for POS matching in `select` - "needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + - whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" ) - }, - - rsibling = /[\x20\t\r\n\f]*[+~]/, - - rnative = /^[^{]+\{\s*\[native code/, - - // Easily-parseable/retrievable ID or TAG or CLASS selectors - rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, - - rinputs = /^(?:input|select|textarea|button)$/i, - rheader = /^h\d$/i, - - rescape = /'|\\/g, - rattributeQuotes = /\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g, - - // CSS escapes http://www.w3.org/TR/CSS21/syndata.html#escaped-characters - runescape = /\\([\da-fA-F]{1,6}[\x20\t\r\n\f]?|.)/g, - funescape = function( _, escaped ) { - var high = "0x" + escaped - 0x10000; - // NaN means non-codepoint - return high !== high ? - escaped : - // BMP codepoint - high < 0 ? - String.fromCharCode( high + 0x10000 ) : - // Supplemental Plane codepoint (surrogate pair) - String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 ); - }; - -// Use a stripped-down slice if we can't use a native one -try { - slice.call( preferredDoc.documentElement.childNodes, 0 )[0].nodeType; -} catch ( e ) { - slice = function( i ) { - var elem, - results = []; - while ( (elem = this[i++]) ) { - results.push( elem ); - } - return results; - }; -} - -/** - * For feature detection - * @param {Function} fn The function to test for native support - */ -function isNative( fn ) { - return rnative.test( fn + "" ); -} - -/** - * Create key-value caches of limited size - * @returns {Function(string, Object)} Returns the Object data after storing it on itself with - * property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength) - * deleting the oldest entry - */ -function createCache() { - var cache, - keys = []; - - return (cache = function( key, value ) { - // Use (key + " ") to avoid collision with native prototype properties (see Issue #157) - if ( keys.push( key += " " ) > Expr.cacheLength ) { - // Only keep the most recent entries - delete cache[ keys.shift() ]; - } - return (cache[ key ] = value); - }); -} - -/** - * Mark a function for special use by Sizzle - * @param {Function} fn The function to mark - */ -function markFunction( fn ) { - fn[ expando ] = true; - return fn; -} - -/** - * Support testing using an element - * @param {Function} fn Passed the created div and expects a boolean result - */ -function assert( fn ) { - var div = document.createElement("div"); - - try { - return fn( div ); - } catch (e) { - return false; - } finally { - // release memory in IE - div = null; - } -} - -function Sizzle( selector, context, results, seed ) { - var match, elem, m, nodeType, - // QSA vars - i, groups, old, nid, newContext, newSelector; - - if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) { - setDocument( context ); - } - - context = context || document; - results = results || []; - - if ( !selector || typeof selector !== "string" ) { - return results; - } - - if ( (nodeType = context.nodeType) !== 1 && nodeType !== 9 ) { - return []; - } - - if ( !documentIsXML && !seed ) { - - // Shortcuts - if ( (match = rquickExpr.exec( selector )) ) { - // Speed-up: Sizzle("#ID") - if ( (m = match[1]) ) { - if ( nodeType === 9 ) { - elem = context.getElementById( m ); - // Check parentNode to catch when Blackberry 4.6 returns - // nodes that are no longer in the document #6963 - if ( elem && elem.parentNode ) { - // Handle the case where IE, Opera, and Webkit return items - // by name instead of ID - if ( elem.id === m ) { - results.push( elem ); - return results; - } - } else { - return results; - } - } else { - // Context is not a document - if ( context.ownerDocument && (elem = context.ownerDocument.getElementById( m )) && - contains( context, elem ) && elem.id === m ) { - results.push( elem ); - return results; - } - } - - // Speed-up: Sizzle("TAG") - } else if ( match[2] ) { - push.apply( results, slice.call(context.getElementsByTagName( selector ), 0) ); - return results; - - // Speed-up: Sizzle(".CLASS") - } else if ( (m = match[3]) && support.getByClassName && context.getElementsByClassName ) { - push.apply( results, slice.call(context.getElementsByClassName( m ), 0) ); - return results; - } - } - - // QSA path - if ( support.qsa && !rbuggyQSA.test(selector) ) { - old = true; - nid = expando; - newContext = context; - newSelector = nodeType === 9 && selector; - - // qSA works strangely on Element-rooted queries - // We can work around this by specifying an extra ID on the root - // and working up from there (Thanks to Andrew Dupont for the technique) - // IE 8 doesn't work on object elements - if ( nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) { - groups = tokenize( selector ); - - if ( (old = context.getAttribute("id")) ) { - nid = old.replace( rescape, "\\$&" ); - } else { - context.setAttribute( "id", nid ); - } - nid = "[id='" + nid + "'] "; - - i = groups.length; - while ( i-- ) { - groups[i] = nid + toSelector( groups[i] ); - } - newContext = rsibling.test( selector ) && context.parentNode || context; - newSelector = groups.join(","); - } - - if ( newSelector ) { - try { - push.apply( results, slice.call( newContext.querySelectorAll( - newSelector - ), 0 ) ); - return results; - } catch(qsaError) { - } finally { - if ( !old ) { - context.removeAttribute("id"); - } - } - } - } - } - - // All others - return select( selector.replace( rtrim, "$1" ), context, results, seed ); -} - -/** - * Detect xml - * @param {Element|Object} elem An element or a document - */ -isXML = Sizzle.isXML = function( elem ) { - // documentElement is verified for cases where it doesn't yet exist - // (such as loading iframes in IE - #4833) - var documentElement = elem && (elem.ownerDocument || elem).documentElement; - return documentElement ? documentElement.nodeName !== "HTML" : false; -}; - -/** - * Sets document-related variables once based on the current document - * @param {Element|Object} [doc] An element or document object to use to set the document - * @returns {Object} Returns the current document - */ -setDocument = Sizzle.setDocument = function( node ) { - var doc = node ? node.ownerDocument || node : preferredDoc; - - // If no document and documentElement is available, return - if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) { - return document; - } - - // Set our document - document = doc; - docElem = doc.documentElement; - - // Support tests - documentIsXML = isXML( doc ); - - // Check if getElementsByTagName("*") returns only elements - support.tagNameNoComments = assert(function( div ) { - div.appendChild( doc.createComment("") ); - return !div.getElementsByTagName("*").length; - }); - - // Check if attributes should be retrieved by attribute nodes - support.attributes = assert(function( div ) { - div.innerHTML = ""; - var type = typeof div.lastChild.getAttribute("multiple"); - // IE8 returns a string for some attributes even when not present - return type !== "boolean" && type !== "string"; - }); - - // Check if getElementsByClassName can be trusted - support.getByClassName = assert(function( div ) { - // Opera can't find a second classname (in 9.6) - div.innerHTML = ""; - if ( !div.getElementsByClassName || !div.getElementsByClassName("e").length ) { - return false; - } - - // Safari 3.2 caches class attributes and doesn't catch changes - div.lastChild.className = "e"; - return div.getElementsByClassName("e").length === 2; - }); - - // Check if getElementById returns elements by name - // Check if getElementsByName privileges form controls or returns elements by ID - support.getByName = assert(function( div ) { - // Inject content - div.id = expando + 0; - div.innerHTML = "
      "; - docElem.insertBefore( div, docElem.firstChild ); - - // Test - var pass = doc.getElementsByName && - // buggy browsers will return fewer than the correct 2 - doc.getElementsByName( expando ).length === 2 + - // buggy browsers will return more than the correct 0 - doc.getElementsByName( expando + 0 ).length; - support.getIdNotName = !doc.getElementById( expando ); - - // Cleanup - docElem.removeChild( div ); - - return pass; - }); - - // IE6/7 return modified attributes - Expr.attrHandle = assert(function( div ) { - div.innerHTML = ""; - return div.firstChild && typeof div.firstChild.getAttribute !== strundefined && - div.firstChild.getAttribute("href") === "#"; - }) ? - {} : - { - "href": function( elem ) { - return elem.getAttribute( "href", 2 ); - }, - "type": function( elem ) { - return elem.getAttribute("type"); - } - }; - - // ID find and filter - if ( support.getIdNotName ) { - Expr.find["ID"] = function( id, context ) { - if ( typeof context.getElementById !== strundefined && !documentIsXML ) { - var m = context.getElementById( id ); - // Check parentNode to catch when Blackberry 4.6 returns - // nodes that are no longer in the document #6963 - return m && m.parentNode ? [m] : []; - } - }; - Expr.filter["ID"] = function( id ) { - var attrId = id.replace( runescape, funescape ); - return function( elem ) { - return elem.getAttribute("id") === attrId; - }; - }; - } else { - Expr.find["ID"] = function( id, context ) { - if ( typeof context.getElementById !== strundefined && !documentIsXML ) { - var m = context.getElementById( id ); - - return m ? - m.id === id || typeof m.getAttributeNode !== strundefined && m.getAttributeNode("id").value === id ? - [m] : - undefined : - []; - } - }; - Expr.filter["ID"] = function( id ) { - var attrId = id.replace( runescape, funescape ); - return function( elem ) { - var node = typeof elem.getAttributeNode !== strundefined && elem.getAttributeNode("id"); - return node && node.value === attrId; - }; - }; - } - - // Tag - Expr.find["TAG"] = support.tagNameNoComments ? - function( tag, context ) { - if ( typeof context.getElementsByTagName !== strundefined ) { - return context.getElementsByTagName( tag ); - } - } : - function( tag, context ) { - var elem, - tmp = [], - i = 0, - results = context.getElementsByTagName( tag ); - - // Filter out possible comments - if ( tag === "*" ) { - while ( (elem = results[i++]) ) { - if ( elem.nodeType === 1 ) { - tmp.push( elem ); - } - } - - return tmp; - } - return results; - }; - - // Name - Expr.find["NAME"] = support.getByName && function( tag, context ) { - if ( typeof context.getElementsByName !== strundefined ) { - return context.getElementsByName( name ); - } - }; - - // Class - Expr.find["CLASS"] = support.getByClassName && function( className, context ) { - if ( typeof context.getElementsByClassName !== strundefined && !documentIsXML ) { - return context.getElementsByClassName( className ); - } - }; - - // QSA and matchesSelector support - - // matchesSelector(:active) reports false when true (IE9/Opera 11.5) - rbuggyMatches = []; - - // qSa(:focus) reports false when true (Chrome 21), - // no need to also add to buggyMatches since matches checks buggyQSA - // A support test would require too much code (would include document ready) - rbuggyQSA = [ ":focus" ]; - - if ( (support.qsa = isNative(doc.querySelectorAll)) ) { - // Build QSA regex - // Regex strategy adopted from Diego Perini - assert(function( div ) { - // Select is set to empty string on purpose - // This is to test IE's treatment of not explictly - // setting a boolean content attribute, - // since its presence should be enough - // http://bugs.jquery.com/ticket/12359 - div.innerHTML = ""; - - // IE8 - Some boolean attributes are not treated correctly - if ( !div.querySelectorAll("[selected]").length ) { - rbuggyQSA.push( "\\[" + whitespace + "*(?:checked|disabled|ismap|multiple|readonly|selected|value)" ); - } - - // Webkit/Opera - :checked should return selected option elements - // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked - // IE8 throws error here and will not see later tests - if ( !div.querySelectorAll(":checked").length ) { - rbuggyQSA.push(":checked"); - } - }); - - assert(function( div ) { - - // Opera 10-12/IE8 - ^= $= *= and empty values - // Should not select anything - div.innerHTML = ""; - if ( div.querySelectorAll("[i^='']").length ) { - rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:\"\"|'')" ); - } - - // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled) - // IE8 throws error here and will not see later tests - if ( !div.querySelectorAll(":enabled").length ) { - rbuggyQSA.push( ":enabled", ":disabled" ); - } - - // Opera 10-11 does not throw on post-comma invalid pseudos - div.querySelectorAll("*,:x"); - rbuggyQSA.push(",.*:"); - }); - } - - if ( (support.matchesSelector = isNative( (matches = docElem.matchesSelector || - docElem.mozMatchesSelector || - docElem.webkitMatchesSelector || - docElem.oMatchesSelector || - docElem.msMatchesSelector) )) ) { - - assert(function( div ) { - // Check to see if it's possible to do matchesSelector - // on a disconnected node (IE 9) - support.disconnectedMatch = matches.call( div, "div" ); - - // This should fail with an exception - // Gecko does not error, returns false instead - matches.call( div, "[s!='']:x" ); - rbuggyMatches.push( "!=", pseudos ); - }); - } - - rbuggyQSA = new RegExp( rbuggyQSA.join("|") ); - rbuggyMatches = new RegExp( rbuggyMatches.join("|") ); - - // Element contains another - // Purposefully does not implement inclusive descendent - // As in, an element does not contain itself - contains = isNative(docElem.contains) || docElem.compareDocumentPosition ? - function( a, b ) { - var adown = a.nodeType === 9 ? a.documentElement : a, - bup = b && b.parentNode; - return a === bup || !!( bup && bup.nodeType === 1 && ( - adown.contains ? - adown.contains( bup ) : - a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16 - )); - } : - function( a, b ) { - if ( b ) { - while ( (b = b.parentNode) ) { - if ( b === a ) { - return true; - } - } - } - return false; - }; - - // Document order sorting - sortOrder = docElem.compareDocumentPosition ? - function( a, b ) { - var compare; - - if ( a === b ) { - hasDuplicate = true; - return 0; - } - - if ( (compare = b.compareDocumentPosition && a.compareDocumentPosition && a.compareDocumentPosition( b )) ) { - if ( compare & 1 || a.parentNode && a.parentNode.nodeType === 11 ) { - if ( a === doc || contains( preferredDoc, a ) ) { - return -1; - } - if ( b === doc || contains( preferredDoc, b ) ) { - return 1; - } - return 0; - } - return compare & 4 ? -1 : 1; - } - - return a.compareDocumentPosition ? -1 : 1; - } : - function( a, b ) { - var cur, - i = 0, - aup = a.parentNode, - bup = b.parentNode, - ap = [ a ], - bp = [ b ]; - - // Exit early if the nodes are identical - if ( a === b ) { - hasDuplicate = true; - return 0; - - // Parentless nodes are either documents or disconnected - } else if ( !aup || !bup ) { - return a === doc ? -1 : - b === doc ? 1 : - aup ? -1 : - bup ? 1 : - 0; - - // If the nodes are siblings, we can do a quick check - } else if ( aup === bup ) { - return siblingCheck( a, b ); - } - - // Otherwise we need full lists of their ancestors for comparison - cur = a; - while ( (cur = cur.parentNode) ) { - ap.unshift( cur ); - } - cur = b; - while ( (cur = cur.parentNode) ) { - bp.unshift( cur ); - } - - // Walk down the tree looking for a discrepancy - while ( ap[i] === bp[i] ) { - i++; - } - - return i ? - // Do a sibling check if the nodes have a common ancestor - siblingCheck( ap[i], bp[i] ) : - - // Otherwise nodes in our document sort first - ap[i] === preferredDoc ? -1 : - bp[i] === preferredDoc ? 1 : - 0; - }; - - // Always assume the presence of duplicates if sort doesn't - // pass them to our comparison function (as in Google Chrome). - hasDuplicate = false; - [0, 0].sort( sortOrder ); - support.detectDuplicates = hasDuplicate; - - return document; -}; - -Sizzle.matches = function( expr, elements ) { - return Sizzle( expr, null, null, elements ); -}; - -Sizzle.matchesSelector = function( elem, expr ) { - // Set document vars if needed - if ( ( elem.ownerDocument || elem ) !== document ) { - setDocument( elem ); - } - - // Make sure that attribute selectors are quoted - expr = expr.replace( rattributeQuotes, "='$1']" ); - - // rbuggyQSA always contains :focus, so no need for an existence check - if ( support.matchesSelector && !documentIsXML && (!rbuggyMatches || !rbuggyMatches.test(expr)) && !rbuggyQSA.test(expr) ) { - try { - var ret = matches.call( elem, expr ); - - // IE 9's matchesSelector returns false on disconnected nodes - if ( ret || support.disconnectedMatch || - // As well, disconnected nodes are said to be in a document - // fragment in IE 9 - elem.document && elem.document.nodeType !== 11 ) { - return ret; - } - } catch(e) {} - } - - return Sizzle( expr, document, null, [elem] ).length > 0; -}; - -Sizzle.contains = function( context, elem ) { - // Set document vars if needed - if ( ( context.ownerDocument || context ) !== document ) { - setDocument( context ); - } - return contains( context, elem ); -}; - -Sizzle.attr = function( elem, name ) { - var val; - - // Set document vars if needed - if ( ( elem.ownerDocument || elem ) !== document ) { - setDocument( elem ); - } - - if ( !documentIsXML ) { - name = name.toLowerCase(); - } - if ( (val = Expr.attrHandle[ name ]) ) { - return val( elem ); - } - if ( documentIsXML || support.attributes ) { - return elem.getAttribute( name ); - } - return ( (val = elem.getAttributeNode( name )) || elem.getAttribute( name ) ) && elem[ name ] === true ? - name : - val && val.specified ? val.value : null; -}; - -Sizzle.error = function( msg ) { - throw new Error( "Syntax error, unrecognized expression: " + msg ); -}; - -// Document sorting and removing duplicates -Sizzle.uniqueSort = function( results ) { - var elem, - duplicates = [], - i = 1, - j = 0; - - // Unless we *know* we can detect duplicates, assume their presence - hasDuplicate = !support.detectDuplicates; - results.sort( sortOrder ); - - if ( hasDuplicate ) { - for ( ; (elem = results[i]); i++ ) { - if ( elem === results[ i - 1 ] ) { - j = duplicates.push( i ); - } - } - while ( j-- ) { - results.splice( duplicates[ j ], 1 ); - } - } - - return results; -}; - -function siblingCheck( a, b ) { - var cur = b && a, - diff = cur && ( ~b.sourceIndex || MAX_NEGATIVE ) - ( ~a.sourceIndex || MAX_NEGATIVE ); - - // Use IE sourceIndex if available on both nodes - if ( diff ) { - return diff; - } - - // Check if b follows a - if ( cur ) { - while ( (cur = cur.nextSibling) ) { - if ( cur === b ) { - return -1; - } - } - } - - return a ? 1 : -1; -} - -// Returns a function to use in pseudos for input types -function createInputPseudo( type ) { - return function( elem ) { - var name = elem.nodeName.toLowerCase(); - return name === "input" && elem.type === type; - }; -} - -// Returns a function to use in pseudos for buttons -function createButtonPseudo( type ) { - return function( elem ) { - var name = elem.nodeName.toLowerCase(); - return (name === "input" || name === "button") && elem.type === type; - }; -} - -// Returns a function to use in pseudos for positionals -function createPositionalPseudo( fn ) { - return markFunction(function( argument ) { - argument = +argument; - return markFunction(function( seed, matches ) { - var j, - matchIndexes = fn( [], seed.length, argument ), - i = matchIndexes.length; - - // Match elements found at the specified indexes - while ( i-- ) { - if ( seed[ (j = matchIndexes[i]) ] ) { - seed[j] = !(matches[j] = seed[j]); - } - } - }); - }); -} - -/** - * Utility function for retrieving the text value of an array of DOM nodes - * @param {Array|Element} elem - */ -getText = Sizzle.getText = function( elem ) { - var node, - ret = "", - i = 0, - nodeType = elem.nodeType; - - if ( !nodeType ) { - // If no nodeType, this is expected to be an array - for ( ; (node = elem[i]); i++ ) { - // Do not traverse comment nodes - ret += getText( node ); - } - } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) { - // Use textContent for elements - // innerText usage removed for consistency of new lines (see #11153) - if ( typeof elem.textContent === "string" ) { - return elem.textContent; - } else { - // Traverse its children - for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { - ret += getText( elem ); - } - } - } else if ( nodeType === 3 || nodeType === 4 ) { - return elem.nodeValue; - } - // Do not include comment or processing instruction nodes - - return ret; -}; - -Expr = Sizzle.selectors = { - - // Can be adjusted by the user - cacheLength: 50, - - createPseudo: markFunction, - - match: matchExpr, - - find: {}, - - relative: { - ">": { dir: "parentNode", first: true }, - " ": { dir: "parentNode" }, - "+": { dir: "previousSibling", first: true }, - "~": { dir: "previousSibling" } - }, - - preFilter: { - "ATTR": function( match ) { - match[1] = match[1].replace( runescape, funescape ); - - // Move the given value to match[3] whether quoted or unquoted - match[3] = ( match[4] || match[5] || "" ).replace( runescape, funescape ); - - if ( match[2] === "~=" ) { - match[3] = " " + match[3] + " "; - } - - return match.slice( 0, 4 ); - }, - - "CHILD": function( match ) { - /* matches from matchExpr["CHILD"] - 1 type (only|nth|...) - 2 what (child|of-type) - 3 argument (even|odd|\d*|\d*n([+-]\d+)?|...) - 4 xn-component of xn+y argument ([+-]?\d*n|) - 5 sign of xn-component - 6 x of xn-component - 7 sign of y-component - 8 y of y-component - */ - match[1] = match[1].toLowerCase(); - - if ( match[1].slice( 0, 3 ) === "nth" ) { - // nth-* requires argument - if ( !match[3] ) { - Sizzle.error( match[0] ); - } - - // numeric x and y parameters for Expr.filter.CHILD - // remember that false/true cast respectively to 0/1 - match[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === "even" || match[3] === "odd" ) ); - match[5] = +( ( match[7] + match[8] ) || match[3] === "odd" ); - - // other types prohibit arguments - } else if ( match[3] ) { - Sizzle.error( match[0] ); - } - - return match; - }, - - "PSEUDO": function( match ) { - var excess, - unquoted = !match[5] && match[2]; - - if ( matchExpr["CHILD"].test( match[0] ) ) { - return null; - } - - // Accept quoted arguments as-is - if ( match[4] ) { - match[2] = match[4]; - - // Strip excess characters from unquoted arguments - } else if ( unquoted && rpseudo.test( unquoted ) && - // Get excess from tokenize (recursively) - (excess = tokenize( unquoted, true )) && - // advance to the next closing parenthesis - (excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length) ) { - - // excess is a negative index - match[0] = match[0].slice( 0, excess ); - match[2] = unquoted.slice( 0, excess ); - } - - // Return only captures needed by the pseudo filter method (type and argument) - return match.slice( 0, 3 ); - } - }, - - filter: { - - "TAG": function( nodeName ) { - if ( nodeName === "*" ) { - return function() { return true; }; - } - - nodeName = nodeName.replace( runescape, funescape ).toLowerCase(); - return function( elem ) { - return elem.nodeName && elem.nodeName.toLowerCase() === nodeName; - }; - }, - - "CLASS": function( className ) { - var pattern = classCache[ className + " " ]; - - return pattern || - (pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) && - classCache( className, function( elem ) { - return pattern.test( elem.className || (typeof elem.getAttribute !== strundefined && elem.getAttribute("class")) || "" ); - }); - }, - - "ATTR": function( name, operator, check ) { - return function( elem ) { - var result = Sizzle.attr( elem, name ); - - if ( result == null ) { - return operator === "!="; - } - if ( !operator ) { - return true; - } - - result += ""; - - return operator === "=" ? result === check : - operator === "!=" ? result !== check : - operator === "^=" ? check && result.indexOf( check ) === 0 : - operator === "*=" ? check && result.indexOf( check ) > -1 : - operator === "$=" ? check && result.slice( -check.length ) === check : - operator === "~=" ? ( " " + result + " " ).indexOf( check ) > -1 : - operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" : - false; - }; - }, - - "CHILD": function( type, what, argument, first, last ) { - var simple = type.slice( 0, 3 ) !== "nth", - forward = type.slice( -4 ) !== "last", - ofType = what === "of-type"; - - return first === 1 && last === 0 ? - - // Shortcut for :nth-*(n) - function( elem ) { - return !!elem.parentNode; - } : - - function( elem, context, xml ) { - var cache, outerCache, node, diff, nodeIndex, start, - dir = simple !== forward ? "nextSibling" : "previousSibling", - parent = elem.parentNode, - name = ofType && elem.nodeName.toLowerCase(), - useCache = !xml && !ofType; - - if ( parent ) { - - // :(first|last|only)-(child|of-type) - if ( simple ) { - while ( dir ) { - node = elem; - while ( (node = node[ dir ]) ) { - if ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) { - return false; - } - } - // Reverse direction for :only-* (if we haven't yet done so) - start = dir = type === "only" && !start && "nextSibling"; - } - return true; - } - - start = [ forward ? parent.firstChild : parent.lastChild ]; - - // non-xml :nth-child(...) stores cache data on `parent` - if ( forward && useCache ) { - // Seek `elem` from a previously-cached index - outerCache = parent[ expando ] || (parent[ expando ] = {}); - cache = outerCache[ type ] || []; - nodeIndex = cache[0] === dirruns && cache[1]; - diff = cache[0] === dirruns && cache[2]; - node = nodeIndex && parent.childNodes[ nodeIndex ]; - - while ( (node = ++nodeIndex && node && node[ dir ] || - - // Fallback to seeking `elem` from the start - (diff = nodeIndex = 0) || start.pop()) ) { - - // When found, cache indexes on `parent` and break - if ( node.nodeType === 1 && ++diff && node === elem ) { - outerCache[ type ] = [ dirruns, nodeIndex, diff ]; - break; - } - } - - // Use previously-cached element index if available - } else if ( useCache && (cache = (elem[ expando ] || (elem[ expando ] = {}))[ type ]) && cache[0] === dirruns ) { - diff = cache[1]; - - // xml :nth-child(...) or :nth-last-child(...) or :nth(-last)?-of-type(...) - } else { - // Use the same loop as above to seek `elem` from the start - while ( (node = ++nodeIndex && node && node[ dir ] || - (diff = nodeIndex = 0) || start.pop()) ) { - - if ( ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) && ++diff ) { - // Cache the index of each encountered element - if ( useCache ) { - (node[ expando ] || (node[ expando ] = {}))[ type ] = [ dirruns, diff ]; - } - - if ( node === elem ) { - break; - } - } - } - } - - // Incorporate the offset, then check against cycle size - diff -= last; - return diff === first || ( diff % first === 0 && diff / first >= 0 ); - } - }; - }, - - "PSEUDO": function( pseudo, argument ) { - // pseudo-class names are case-insensitive - // http://www.w3.org/TR/selectors/#pseudo-classes - // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters - // Remember that setFilters inherits from pseudos - var args, - fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] || - Sizzle.error( "unsupported pseudo: " + pseudo ); - - // The user may use createPseudo to indicate that - // arguments are needed to create the filter function - // just as Sizzle does - if ( fn[ expando ] ) { - return fn( argument ); - } - - // But maintain support for old signatures - if ( fn.length > 1 ) { - args = [ pseudo, pseudo, "", argument ]; - return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ? - markFunction(function( seed, matches ) { - var idx, - matched = fn( seed, argument ), - i = matched.length; - while ( i-- ) { - idx = indexOf.call( seed, matched[i] ); - seed[ idx ] = !( matches[ idx ] = matched[i] ); - } - }) : - function( elem ) { - return fn( elem, 0, args ); - }; - } - - return fn; - } - }, - - pseudos: { - // Potentially complex pseudos - "not": markFunction(function( selector ) { - // Trim the selector passed to compile - // to avoid treating leading and trailing - // spaces as combinators - var input = [], - results = [], - matcher = compile( selector.replace( rtrim, "$1" ) ); - - return matcher[ expando ] ? - markFunction(function( seed, matches, context, xml ) { - var elem, - unmatched = matcher( seed, null, xml, [] ), - i = seed.length; - - // Match elements unmatched by `matcher` - while ( i-- ) { - if ( (elem = unmatched[i]) ) { - seed[i] = !(matches[i] = elem); - } - } - }) : - function( elem, context, xml ) { - input[0] = elem; - matcher( input, null, xml, results ); - return !results.pop(); - }; - }), - - "has": markFunction(function( selector ) { - return function( elem ) { - return Sizzle( selector, elem ).length > 0; - }; - }), - - "contains": markFunction(function( text ) { - return function( elem ) { - return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1; - }; - }), - - // "Whether an element is represented by a :lang() selector - // is based solely on the element's language value - // being equal to the identifier C, - // or beginning with the identifier C immediately followed by "-". - // The matching of C against the element's language value is performed case-insensitively. - // The identifier C does not have to be a valid language name." - // http://www.w3.org/TR/selectors/#lang-pseudo - "lang": markFunction( function( lang ) { - // lang value must be a valid identifider - if ( !ridentifier.test(lang || "") ) { - Sizzle.error( "unsupported lang: " + lang ); - } - lang = lang.replace( runescape, funescape ).toLowerCase(); - return function( elem ) { - var elemLang; - do { - if ( (elemLang = documentIsXML ? - elem.getAttribute("xml:lang") || elem.getAttribute("lang") : - elem.lang) ) { - - elemLang = elemLang.toLowerCase(); - return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0; - } - } while ( (elem = elem.parentNode) && elem.nodeType === 1 ); - return false; - }; - }), - - // Miscellaneous - "target": function( elem ) { - var hash = window.location && window.location.hash; - return hash && hash.slice( 1 ) === elem.id; - }, - - "root": function( elem ) { - return elem === docElem; - }, - - "focus": function( elem ) { - return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex); - }, - - // Boolean properties - "enabled": function( elem ) { - return elem.disabled === false; - }, - - "disabled": function( elem ) { - return elem.disabled === true; - }, - - "checked": function( elem ) { - // In CSS3, :checked should return both checked and selected elements - // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked - var nodeName = elem.nodeName.toLowerCase(); - return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected); - }, - - "selected": function( elem ) { - // Accessing this property makes selected-by-default - // options in Safari work properly - if ( elem.parentNode ) { - elem.parentNode.selectedIndex; - } - - return elem.selected === true; - }, - - // Contents - "empty": function( elem ) { - // http://www.w3.org/TR/selectors/#empty-pseudo - // :empty is only affected by element nodes and content nodes(including text(3), cdata(4)), - // not comment, processing instructions, or others - // Thanks to Diego Perini for the nodeName shortcut - // Greater than "@" means alpha characters (specifically not starting with "#" or "?") - for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { - if ( elem.nodeName > "@" || elem.nodeType === 3 || elem.nodeType === 4 ) { - return false; - } - } - return true; - }, - - "parent": function( elem ) { - return !Expr.pseudos["empty"]( elem ); - }, - - // Element/input types - "header": function( elem ) { - return rheader.test( elem.nodeName ); - }, - - "input": function( elem ) { - return rinputs.test( elem.nodeName ); - }, - - "button": function( elem ) { - var name = elem.nodeName.toLowerCase(); - return name === "input" && elem.type === "button" || name === "button"; - }, - - "text": function( elem ) { - var attr; - // IE6 and 7 will map elem.type to 'text' for new HTML5 types (search, etc) - // use getAttribute instead to test this case - return elem.nodeName.toLowerCase() === "input" && - elem.type === "text" && - ( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === elem.type ); - }, - - // Position-in-collection - "first": createPositionalPseudo(function() { - return [ 0 ]; - }), - - "last": createPositionalPseudo(function( matchIndexes, length ) { - return [ length - 1 ]; - }), - - "eq": createPositionalPseudo(function( matchIndexes, length, argument ) { - return [ argument < 0 ? argument + length : argument ]; - }), - - "even": createPositionalPseudo(function( matchIndexes, length ) { - var i = 0; - for ( ; i < length; i += 2 ) { - matchIndexes.push( i ); - } - return matchIndexes; - }), - - "odd": createPositionalPseudo(function( matchIndexes, length ) { - var i = 1; - for ( ; i < length; i += 2 ) { - matchIndexes.push( i ); - } - return matchIndexes; - }), - - "lt": createPositionalPseudo(function( matchIndexes, length, argument ) { - var i = argument < 0 ? argument + length : argument; - for ( ; --i >= 0; ) { - matchIndexes.push( i ); - } - return matchIndexes; - }), - - "gt": createPositionalPseudo(function( matchIndexes, length, argument ) { - var i = argument < 0 ? argument + length : argument; - for ( ; ++i < length; ) { - matchIndexes.push( i ); - } - return matchIndexes; - }) - } -}; - -// Add button/input type pseudos -for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) { - Expr.pseudos[ i ] = createInputPseudo( i ); -} -for ( i in { submit: true, reset: true } ) { - Expr.pseudos[ i ] = createButtonPseudo( i ); -} - -function tokenize( selector, parseOnly ) { - var matched, match, tokens, type, - soFar, groups, preFilters, - cached = tokenCache[ selector + " " ]; - - if ( cached ) { - return parseOnly ? 0 : cached.slice( 0 ); - } - - soFar = selector; - groups = []; - preFilters = Expr.preFilter; - - while ( soFar ) { - - // Comma and first run - if ( !matched || (match = rcomma.exec( soFar )) ) { - if ( match ) { - // Don't consume trailing commas as valid - soFar = soFar.slice( match[0].length ) || soFar; - } - groups.push( tokens = [] ); - } - - matched = false; - - // Combinators - if ( (match = rcombinators.exec( soFar )) ) { - matched = match.shift(); - tokens.push( { - value: matched, - // Cast descendant combinators to space - type: match[0].replace( rtrim, " " ) - } ); - soFar = soFar.slice( matched.length ); - } - - // Filters - for ( type in Expr.filter ) { - if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] || - (match = preFilters[ type ]( match ))) ) { - matched = match.shift(); - tokens.push( { - value: matched, - type: type, - matches: match - } ); - soFar = soFar.slice( matched.length ); - } - } - - if ( !matched ) { - break; - } - } - - // Return the length of the invalid excess - // if we're just parsing - // Otherwise, throw an error or return tokens - return parseOnly ? - soFar.length : - soFar ? - Sizzle.error( selector ) : - // Cache the tokens - tokenCache( selector, groups ).slice( 0 ); -} - -function toSelector( tokens ) { - var i = 0, - len = tokens.length, - selector = ""; - for ( ; i < len; i++ ) { - selector += tokens[i].value; - } - return selector; -} - -function addCombinator( matcher, combinator, base ) { - var dir = combinator.dir, - checkNonElements = base && dir === "parentNode", - doneName = done++; - - return combinator.first ? - // Check against closest ancestor/preceding element - function( elem, context, xml ) { - while ( (elem = elem[ dir ]) ) { - if ( elem.nodeType === 1 || checkNonElements ) { - return matcher( elem, context, xml ); - } - } - } : - - // Check against all ancestor/preceding elements - function( elem, context, xml ) { - var data, cache, outerCache, - dirkey = dirruns + " " + doneName; - - // We can't set arbitrary data on XML nodes, so they don't benefit from dir caching - if ( xml ) { - while ( (elem = elem[ dir ]) ) { - if ( elem.nodeType === 1 || checkNonElements ) { - if ( matcher( elem, context, xml ) ) { - return true; - } - } - } - } else { - while ( (elem = elem[ dir ]) ) { - if ( elem.nodeType === 1 || checkNonElements ) { - outerCache = elem[ expando ] || (elem[ expando ] = {}); - if ( (cache = outerCache[ dir ]) && cache[0] === dirkey ) { - if ( (data = cache[1]) === true || data === cachedruns ) { - return data === true; - } - } else { - cache = outerCache[ dir ] = [ dirkey ]; - cache[1] = matcher( elem, context, xml ) || cachedruns; - if ( cache[1] === true ) { - return true; - } - } - } - } - } - }; -} - -function elementMatcher( matchers ) { - return matchers.length > 1 ? - function( elem, context, xml ) { - var i = matchers.length; - while ( i-- ) { - if ( !matchers[i]( elem, context, xml ) ) { - return false; - } - } - return true; - } : - matchers[0]; -} - -function condense( unmatched, map, filter, context, xml ) { - var elem, - newUnmatched = [], - i = 0, - len = unmatched.length, - mapped = map != null; - - for ( ; i < len; i++ ) { - if ( (elem = unmatched[i]) ) { - if ( !filter || filter( elem, context, xml ) ) { - newUnmatched.push( elem ); - if ( mapped ) { - map.push( i ); - } - } - } - } - - return newUnmatched; -} - -function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) { - if ( postFilter && !postFilter[ expando ] ) { - postFilter = setMatcher( postFilter ); - } - if ( postFinder && !postFinder[ expando ] ) { - postFinder = setMatcher( postFinder, postSelector ); - } - return markFunction(function( seed, results, context, xml ) { - var temp, i, elem, - preMap = [], - postMap = [], - preexisting = results.length, - - // Get initial elements from seed or context - elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ), - - // Prefilter to get matcher input, preserving a map for seed-results synchronization - matcherIn = preFilter && ( seed || !selector ) ? - condense( elems, preMap, preFilter, context, xml ) : - elems, - - matcherOut = matcher ? - // If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results, - postFinder || ( seed ? preFilter : preexisting || postFilter ) ? - - // ...intermediate processing is necessary - [] : - - // ...otherwise use results directly - results : - matcherIn; - - // Find primary matches - if ( matcher ) { - matcher( matcherIn, matcherOut, context, xml ); - } - - // Apply postFilter - if ( postFilter ) { - temp = condense( matcherOut, postMap ); - postFilter( temp, [], context, xml ); - - // Un-match failing elements by moving them back to matcherIn - i = temp.length; - while ( i-- ) { - if ( (elem = temp[i]) ) { - matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem); - } - } - } - - if ( seed ) { - if ( postFinder || preFilter ) { - if ( postFinder ) { - // Get the final matcherOut by condensing this intermediate into postFinder contexts - temp = []; - i = matcherOut.length; - while ( i-- ) { - if ( (elem = matcherOut[i]) ) { - // Restore matcherIn since elem is not yet a final match - temp.push( (matcherIn[i] = elem) ); - } - } - postFinder( null, (matcherOut = []), temp, xml ); - } - - // Move matched elements from seed to results to keep them synchronized - i = matcherOut.length; - while ( i-- ) { - if ( (elem = matcherOut[i]) && - (temp = postFinder ? indexOf.call( seed, elem ) : preMap[i]) > -1 ) { - - seed[temp] = !(results[temp] = elem); - } - } - } - - // Add elements to results, through postFinder if defined - } else { - matcherOut = condense( - matcherOut === results ? - matcherOut.splice( preexisting, matcherOut.length ) : - matcherOut - ); - if ( postFinder ) { - postFinder( null, results, matcherOut, xml ); - } else { - push.apply( results, matcherOut ); - } - } - }); -} - -function matcherFromTokens( tokens ) { - var checkContext, matcher, j, - len = tokens.length, - leadingRelative = Expr.relative[ tokens[0].type ], - implicitRelative = leadingRelative || Expr.relative[" "], - i = leadingRelative ? 1 : 0, - - // The foundational matcher ensures that elements are reachable from top-level context(s) - matchContext = addCombinator( function( elem ) { - return elem === checkContext; - }, implicitRelative, true ), - matchAnyContext = addCombinator( function( elem ) { - return indexOf.call( checkContext, elem ) > -1; - }, implicitRelative, true ), - matchers = [ function( elem, context, xml ) { - return ( !leadingRelative && ( xml || context !== outermostContext ) ) || ( - (checkContext = context).nodeType ? - matchContext( elem, context, xml ) : - matchAnyContext( elem, context, xml ) ); - } ]; - - for ( ; i < len; i++ ) { - if ( (matcher = Expr.relative[ tokens[i].type ]) ) { - matchers = [ addCombinator(elementMatcher( matchers ), matcher) ]; - } else { - matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches ); - - // Return special upon seeing a positional matcher - if ( matcher[ expando ] ) { - // Find the next relative operator (if any) for proper handling - j = ++i; - for ( ; j < len; j++ ) { - if ( Expr.relative[ tokens[j].type ] ) { - break; - } - } - return setMatcher( - i > 1 && elementMatcher( matchers ), - i > 1 && toSelector( tokens.slice( 0, i - 1 ) ).replace( rtrim, "$1" ), - matcher, - i < j && matcherFromTokens( tokens.slice( i, j ) ), - j < len && matcherFromTokens( (tokens = tokens.slice( j )) ), - j < len && toSelector( tokens ) - ); - } - matchers.push( matcher ); - } - } - - return elementMatcher( matchers ); -} - -function matcherFromGroupMatchers( elementMatchers, setMatchers ) { - // A counter to specify which element is currently being matched - var matcherCachedRuns = 0, - bySet = setMatchers.length > 0, - byElement = elementMatchers.length > 0, - superMatcher = function( seed, context, xml, results, expandContext ) { - var elem, j, matcher, - setMatched = [], - matchedCount = 0, - i = "0", - unmatched = seed && [], - outermost = expandContext != null, - contextBackup = outermostContext, - // We must always have either seed elements or context - elems = seed || byElement && Expr.find["TAG"]( "*", expandContext && context.parentNode || context ), - // Use integer dirruns iff this is the outermost matcher - dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1); - - if ( outermost ) { - outermostContext = context !== document && context; - cachedruns = matcherCachedRuns; - } - - // Add elements passing elementMatchers directly to results - // Keep `i` a string if there are no elements so `matchedCount` will be "00" below - for ( ; (elem = elems[i]) != null; i++ ) { - if ( byElement && elem ) { - j = 0; - while ( (matcher = elementMatchers[j++]) ) { - if ( matcher( elem, context, xml ) ) { - results.push( elem ); - break; - } - } - if ( outermost ) { - dirruns = dirrunsUnique; - cachedruns = ++matcherCachedRuns; - } - } - - // Track unmatched elements for set filters - if ( bySet ) { - // They will have gone through all possible matchers - if ( (elem = !matcher && elem) ) { - matchedCount--; - } - - // Lengthen the array for every element, matched or not - if ( seed ) { - unmatched.push( elem ); - } - } - } - - // Apply set filters to unmatched elements - matchedCount += i; - if ( bySet && i !== matchedCount ) { - j = 0; - while ( (matcher = setMatchers[j++]) ) { - matcher( unmatched, setMatched, context, xml ); - } - - if ( seed ) { - // Reintegrate element matches to eliminate the need for sorting - if ( matchedCount > 0 ) { - while ( i-- ) { - if ( !(unmatched[i] || setMatched[i]) ) { - setMatched[i] = pop.call( results ); - } - } - } - - // Discard index placeholder values to get only actual matches - setMatched = condense( setMatched ); - } - - // Add matches to results - push.apply( results, setMatched ); - - // Seedless set matches succeeding multiple successful matchers stipulate sorting - if ( outermost && !seed && setMatched.length > 0 && - ( matchedCount + setMatchers.length ) > 1 ) { - - Sizzle.uniqueSort( results ); - } - } - - // Override manipulation of globals by nested matchers - if ( outermost ) { - dirruns = dirrunsUnique; - outermostContext = contextBackup; - } - - return unmatched; - }; - - return bySet ? - markFunction( superMatcher ) : - superMatcher; -} - -compile = Sizzle.compile = function( selector, group /* Internal Use Only */ ) { - var i, - setMatchers = [], - elementMatchers = [], - cached = compilerCache[ selector + " " ]; - - if ( !cached ) { - // Generate a function of recursive functions that can be used to check each element - if ( !group ) { - group = tokenize( selector ); - } - i = group.length; - while ( i-- ) { - cached = matcherFromTokens( group[i] ); - if ( cached[ expando ] ) { - setMatchers.push( cached ); - } else { - elementMatchers.push( cached ); - } - } - - // Cache the compiled function - cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) ); - } - return cached; -}; - -function multipleContexts( selector, contexts, results ) { - var i = 0, - len = contexts.length; - for ( ; i < len; i++ ) { - Sizzle( selector, contexts[i], results ); - } - return results; -} - -function select( selector, context, results, seed ) { - var i, tokens, token, type, find, - match = tokenize( selector ); - - if ( !seed ) { - // Try to minimize operations if there is only one group - if ( match.length === 1 ) { - - // Take a shortcut and set the context if the root selector is an ID - tokens = match[0] = match[0].slice( 0 ); - if ( tokens.length > 2 && (token = tokens[0]).type === "ID" && - context.nodeType === 9 && !documentIsXML && - Expr.relative[ tokens[1].type ] ) { - - context = Expr.find["ID"]( token.matches[0].replace( runescape, funescape ), context )[0]; - if ( !context ) { - return results; - } - - selector = selector.slice( tokens.shift().value.length ); - } - - // Fetch a seed set for right-to-left matching - i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length; - while ( i-- ) { - token = tokens[i]; - - // Abort if we hit a combinator - if ( Expr.relative[ (type = token.type) ] ) { - break; - } - if ( (find = Expr.find[ type ]) ) { - // Search, expanding context for leading sibling combinators - if ( (seed = find( - token.matches[0].replace( runescape, funescape ), - rsibling.test( tokens[0].type ) && context.parentNode || context - )) ) { - - // If seed is empty or no tokens remain, we can return early - tokens.splice( i, 1 ); - selector = seed.length && toSelector( tokens ); - if ( !selector ) { - push.apply( results, slice.call( seed, 0 ) ); - return results; - } - - break; - } - } - } - } - } - - // Compile and execute a filtering function - // Provide `match` to avoid retokenization if we modified the selector above - compile( selector, match )( - seed, - context, - documentIsXML, - results, - rsibling.test( selector ) - ); - return results; -} - -// Deprecated -Expr.pseudos["nth"] = Expr.pseudos["eq"]; - -// Easy API for creating new setFilters -function setFilters() {} -Expr.filters = setFilters.prototype = Expr.pseudos; -Expr.setFilters = new setFilters(); - -// Initialize with the default document -setDocument(); - -// Override sizzle attribute retrieval -Sizzle.attr = jQuery.attr; -jQuery.find = Sizzle; -jQuery.expr = Sizzle.selectors; -jQuery.expr[":"] = jQuery.expr.pseudos; -jQuery.unique = Sizzle.uniqueSort; -jQuery.text = Sizzle.getText; -jQuery.isXMLDoc = Sizzle.isXML; -jQuery.contains = Sizzle.contains; - - -})( window ); -var runtil = /Until$/, - rparentsprev = /^(?:parents|prev(?:Until|All))/, - isSimple = /^.[^:#\[\.,]*$/, - rneedsContext = jQuery.expr.match.needsContext, - // methods guaranteed to produce a unique set when starting from a unique set - guaranteedUnique = { - children: true, - contents: true, - next: true, - prev: true - }; - -jQuery.fn.extend({ - find: function( selector ) { - var i, ret, self, - len = this.length; - - if ( typeof selector !== "string" ) { - self = this; - return this.pushStack( jQuery( selector ).filter(function() { - for ( i = 0; i < len; i++ ) { - if ( jQuery.contains( self[ i ], this ) ) { - return true; - } - } - }) ); - } - - ret = []; - for ( i = 0; i < len; i++ ) { - jQuery.find( selector, this[ i ], ret ); - } - - // Needed because $( selector, context ) becomes $( context ).find( selector ) - ret = this.pushStack( len > 1 ? jQuery.unique( ret ) : ret ); - ret.selector = ( this.selector ? this.selector + " " : "" ) + selector; - return ret; - }, - - has: function( target ) { - var i, - targets = jQuery( target, this ), - len = targets.length; - - return this.filter(function() { - for ( i = 0; i < len; i++ ) { - if ( jQuery.contains( this, targets[i] ) ) { - return true; - } - } - }); - }, - - not: function( selector ) { - return this.pushStack( winnow(this, selector, false) ); - }, - - filter: function( selector ) { - return this.pushStack( winnow(this, selector, true) ); - }, - - is: function( selector ) { - return !!selector && ( - typeof selector === "string" ? - // If this is a positional/relative selector, check membership in the returned set - // so $("p:first").is("p:last") won't return true for a doc with two "p". - rneedsContext.test( selector ) ? - jQuery( selector, this.context ).index( this[0] ) >= 0 : - jQuery.filter( selector, this ).length > 0 : - this.filter( selector ).length > 0 ); - }, - - closest: function( selectors, context ) { - var cur, - i = 0, - l = this.length, - ret = [], - pos = rneedsContext.test( selectors ) || typeof selectors !== "string" ? - jQuery( selectors, context || this.context ) : - 0; - - for ( ; i < l; i++ ) { - cur = this[i]; - - while ( cur && cur.ownerDocument && cur !== context && cur.nodeType !== 11 ) { - if ( pos ? pos.index(cur) > -1 : jQuery.find.matchesSelector(cur, selectors) ) { - ret.push( cur ); - break; - } - cur = cur.parentNode; - } - } - - return this.pushStack( ret.length > 1 ? jQuery.unique( ret ) : ret ); - }, - - // Determine the position of an element within - // the matched set of elements - index: function( elem ) { - - // No argument, return index in parent - if ( !elem ) { - return ( this[0] && this[0].parentNode ) ? this.first().prevAll().length : -1; - } - - // index in selector - if ( typeof elem === "string" ) { - return jQuery.inArray( this[0], jQuery( elem ) ); - } - - // Locate the position of the desired element - return jQuery.inArray( - // If it receives a jQuery object, the first element is used - elem.jquery ? elem[0] : elem, this ); - }, - - add: function( selector, context ) { - var set = typeof selector === "string" ? - jQuery( selector, context ) : - jQuery.makeArray( selector && selector.nodeType ? [ selector ] : selector ), - all = jQuery.merge( this.get(), set ); - - return this.pushStack( jQuery.unique(all) ); - }, - - addBack: function( selector ) { - return this.add( selector == null ? - this.prevObject : this.prevObject.filter(selector) - ); - } -}); - -jQuery.fn.andSelf = jQuery.fn.addBack; - -function sibling( cur, dir ) { - do { - cur = cur[ dir ]; - } while ( cur && cur.nodeType !== 1 ); - - return cur; -} - -jQuery.each({ - parent: function( elem ) { - var parent = elem.parentNode; - return parent && parent.nodeType !== 11 ? parent : null; - }, - parents: function( elem ) { - return jQuery.dir( elem, "parentNode" ); - }, - parentsUntil: function( elem, i, until ) { - return jQuery.dir( elem, "parentNode", until ); - }, - next: function( elem ) { - return sibling( elem, "nextSibling" ); - }, - prev: function( elem ) { - return sibling( elem, "previousSibling" ); - }, - nextAll: function( elem ) { - return jQuery.dir( elem, "nextSibling" ); - }, - prevAll: function( elem ) { - return jQuery.dir( elem, "previousSibling" ); - }, - nextUntil: function( elem, i, until ) { - return jQuery.dir( elem, "nextSibling", until ); - }, - prevUntil: function( elem, i, until ) { - return jQuery.dir( elem, "previousSibling", until ); - }, - siblings: function( elem ) { - return jQuery.sibling( ( elem.parentNode || {} ).firstChild, elem ); - }, - children: function( elem ) { - return jQuery.sibling( elem.firstChild ); - }, - contents: function( elem ) { - return jQuery.nodeName( elem, "iframe" ) ? - elem.contentDocument || elem.contentWindow.document : - jQuery.merge( [], elem.childNodes ); - } -}, function( name, fn ) { - jQuery.fn[ name ] = function( until, selector ) { - var ret = jQuery.map( this, fn, until ); - - if ( !runtil.test( name ) ) { - selector = until; - } - - if ( selector && typeof selector === "string" ) { - ret = jQuery.filter( selector, ret ); - } - - ret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret; - - if ( this.length > 1 && rparentsprev.test( name ) ) { - ret = ret.reverse(); - } - - return this.pushStack( ret ); - }; -}); - -jQuery.extend({ - filter: function( expr, elems, not ) { - if ( not ) { - expr = ":not(" + expr + ")"; - } - - return elems.length === 1 ? - jQuery.find.matchesSelector(elems[0], expr) ? [ elems[0] ] : [] : - jQuery.find.matches(expr, elems); - }, - - dir: function( elem, dir, until ) { - var matched = [], - cur = elem[ dir ]; - - while ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) { - if ( cur.nodeType === 1 ) { - matched.push( cur ); - } - cur = cur[dir]; - } - return matched; - }, - - sibling: function( n, elem ) { - var r = []; - - for ( ; n; n = n.nextSibling ) { - if ( n.nodeType === 1 && n !== elem ) { - r.push( n ); - } - } - - return r; - } -}); - -// Implement the identical functionality for filter and not -function winnow( elements, qualifier, keep ) { - - // Can't pass null or undefined to indexOf in Firefox 4 - // Set to 0 to skip string check - qualifier = qualifier || 0; - - if ( jQuery.isFunction( qualifier ) ) { - return jQuery.grep(elements, function( elem, i ) { - var retVal = !!qualifier.call( elem, i, elem ); - return retVal === keep; - }); - - } else if ( qualifier.nodeType ) { - return jQuery.grep(elements, function( elem ) { - return ( elem === qualifier ) === keep; - }); - - } else if ( typeof qualifier === "string" ) { - var filtered = jQuery.grep(elements, function( elem ) { - return elem.nodeType === 1; - }); - - if ( isSimple.test( qualifier ) ) { - return jQuery.filter(qualifier, filtered, !keep); - } else { - qualifier = jQuery.filter( qualifier, filtered ); - } - } - - return jQuery.grep(elements, function( elem ) { - return ( jQuery.inArray( elem, qualifier ) >= 0 ) === keep; - }); -} -function createSafeFragment( document ) { - var list = nodeNames.split( "|" ), - safeFrag = document.createDocumentFragment(); - - if ( safeFrag.createElement ) { - while ( list.length ) { - safeFrag.createElement( - list.pop() - ); - } - } - return safeFrag; -} - -var nodeNames = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|" + - "header|hgroup|mark|meter|nav|output|progress|section|summary|time|video", - rinlinejQuery = / jQuery\d+="(?:null|\d+)"/g, - rnoshimcache = new RegExp("<(?:" + nodeNames + ")[\\s/>]", "i"), - rleadingWhitespace = /^\s+/, - rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi, - rtagName = /<([\w:]+)/, - rtbody = /\s*$/g, - - // We have to close these tags to support XHTML (#13200) - wrapMap = { - option: [ 1, "" ], - legend: [ 1, "
      ", "
      " ], - area: [ 1, "", "" ], - param: [ 1, "", "" ], - thead: [ 1, "", "
      " ], - tr: [ 2, "", "
      " ], - col: [ 2, "", "
      " ], - td: [ 3, "", "
      " ], - - // IE6-8 can't serialize link, script, style, or any html5 (NoScope) tags, - // unless wrapped in a div with non-breaking characters in front of it. - _default: jQuery.support.htmlSerialize ? [ 0, "", "" ] : [ 1, "X
      ", "
      " ] - }, - safeFragment = createSafeFragment( document ), - fragmentDiv = safeFragment.appendChild( document.createElement("div") ); - -wrapMap.optgroup = wrapMap.option; -wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead; -wrapMap.th = wrapMap.td; - -jQuery.fn.extend({ - text: function( value ) { - return jQuery.access( this, function( value ) { - return value === undefined ? - jQuery.text( this ) : - this.empty().append( ( this[0] && this[0].ownerDocument || document ).createTextNode( value ) ); - }, null, value, arguments.length ); - }, - - wrapAll: function( html ) { - if ( jQuery.isFunction( html ) ) { - return this.each(function(i) { - jQuery(this).wrapAll( html.call(this, i) ); - }); - } - - if ( this[0] ) { - // The elements to wrap the target around - var wrap = jQuery( html, this[0].ownerDocument ).eq(0).clone(true); - - if ( this[0].parentNode ) { - wrap.insertBefore( this[0] ); - } - - wrap.map(function() { - var elem = this; - - while ( elem.firstChild && elem.firstChild.nodeType === 1 ) { - elem = elem.firstChild; - } - - return elem; - }).append( this ); - } - - return this; - }, - - wrapInner: function( html ) { - if ( jQuery.isFunction( html ) ) { - return this.each(function(i) { - jQuery(this).wrapInner( html.call(this, i) ); - }); - } - - return this.each(function() { - var self = jQuery( this ), - contents = self.contents(); - - if ( contents.length ) { - contents.wrapAll( html ); - - } else { - self.append( html ); - } - }); - }, - - wrap: function( html ) { - var isFunction = jQuery.isFunction( html ); - - return this.each(function(i) { - jQuery( this ).wrapAll( isFunction ? html.call(this, i) : html ); - }); - }, - - unwrap: function() { - return this.parent().each(function() { - if ( !jQuery.nodeName( this, "body" ) ) { - jQuery( this ).replaceWith( this.childNodes ); - } - }).end(); - }, - - append: function() { - return this.domManip(arguments, true, function( elem ) { - if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { - this.appendChild( elem ); - } - }); - }, - - prepend: function() { - return this.domManip(arguments, true, function( elem ) { - if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { - this.insertBefore( elem, this.firstChild ); - } - }); - }, - - before: function() { - return this.domManip( arguments, false, function( elem ) { - if ( this.parentNode ) { - this.parentNode.insertBefore( elem, this ); - } - }); - }, - - after: function() { - return this.domManip( arguments, false, function( elem ) { - if ( this.parentNode ) { - this.parentNode.insertBefore( elem, this.nextSibling ); - } - }); - }, - - // keepData is for internal use only--do not document - remove: function( selector, keepData ) { - var elem, - i = 0; - - for ( ; (elem = this[i]) != null; i++ ) { - if ( !selector || jQuery.filter( selector, [ elem ] ).length > 0 ) { - if ( !keepData && elem.nodeType === 1 ) { - jQuery.cleanData( getAll( elem ) ); - } - - if ( elem.parentNode ) { - if ( keepData && jQuery.contains( elem.ownerDocument, elem ) ) { - setGlobalEval( getAll( elem, "script" ) ); - } - elem.parentNode.removeChild( elem ); - } - } - } - - return this; - }, - - empty: function() { - var elem, - i = 0; - - for ( ; (elem = this[i]) != null; i++ ) { - // Remove element nodes and prevent memory leaks - if ( elem.nodeType === 1 ) { - jQuery.cleanData( getAll( elem, false ) ); - } - - // Remove any remaining nodes - while ( elem.firstChild ) { - elem.removeChild( elem.firstChild ); - } - - // If this is a select, ensure that it displays empty (#12336) - // Support: IE<9 - if ( elem.options && jQuery.nodeName( elem, "select" ) ) { - elem.options.length = 0; - } - } - - return this; - }, - - clone: function( dataAndEvents, deepDataAndEvents ) { - dataAndEvents = dataAndEvents == null ? false : dataAndEvents; - deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents; - - return this.map( function () { - return jQuery.clone( this, dataAndEvents, deepDataAndEvents ); - }); - }, - - html: function( value ) { - return jQuery.access( this, function( value ) { - var elem = this[0] || {}, - i = 0, - l = this.length; - - if ( value === undefined ) { - return elem.nodeType === 1 ? - elem.innerHTML.replace( rinlinejQuery, "" ) : - undefined; - } - - // See if we can take a shortcut and just use innerHTML - if ( typeof value === "string" && !rnoInnerhtml.test( value ) && - ( jQuery.support.htmlSerialize || !rnoshimcache.test( value ) ) && - ( jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value ) ) && - !wrapMap[ ( rtagName.exec( value ) || ["", ""] )[1].toLowerCase() ] ) { - - value = value.replace( rxhtmlTag, "<$1>" ); - - try { - for (; i < l; i++ ) { - // Remove element nodes and prevent memory leaks - elem = this[i] || {}; - if ( elem.nodeType === 1 ) { - jQuery.cleanData( getAll( elem, false ) ); - elem.innerHTML = value; - } - } - - elem = 0; - - // If using innerHTML throws an exception, use the fallback method - } catch(e) {} - } - - if ( elem ) { - this.empty().append( value ); - } - }, null, value, arguments.length ); - }, - - replaceWith: function( value ) { - var isFunc = jQuery.isFunction( value ); - - // Make sure that the elements are removed from the DOM before they are inserted - // this can help fix replacing a parent with child elements - if ( !isFunc && typeof value !== "string" ) { - value = jQuery( value ).not( this ).detach(); - } - - return this.domManip( [ value ], true, function( elem ) { - var next = this.nextSibling, - parent = this.parentNode; - - if ( parent ) { - jQuery( this ).remove(); - parent.insertBefore( elem, next ); - } - }); - }, - - detach: function( selector ) { - return this.remove( selector, true ); - }, - - domManip: function( args, table, callback ) { - - // Flatten any nested arrays - args = core_concat.apply( [], args ); - - var first, node, hasScripts, - scripts, doc, fragment, - i = 0, - l = this.length, - set = this, - iNoClone = l - 1, - value = args[0], - isFunction = jQuery.isFunction( value ); - - // We can't cloneNode fragments that contain checked, in WebKit - if ( isFunction || !( l <= 1 || typeof value !== "string" || jQuery.support.checkClone || !rchecked.test( value ) ) ) { - return this.each(function( index ) { - var self = set.eq( index ); - if ( isFunction ) { - args[0] = value.call( this, index, table ? self.html() : undefined ); - } - self.domManip( args, table, callback ); - }); - } - - if ( l ) { - fragment = jQuery.buildFragment( args, this[ 0 ].ownerDocument, false, this ); - first = fragment.firstChild; - - if ( fragment.childNodes.length === 1 ) { - fragment = first; - } - - if ( first ) { - table = table && jQuery.nodeName( first, "tr" ); - scripts = jQuery.map( getAll( fragment, "script" ), disableScript ); - hasScripts = scripts.length; - - // Use the original fragment for the last item instead of the first because it can end up - // being emptied incorrectly in certain situations (#8070). - for ( ; i < l; i++ ) { - node = fragment; - - if ( i !== iNoClone ) { - node = jQuery.clone( node, true, true ); - - // Keep references to cloned scripts for later restoration - if ( hasScripts ) { - jQuery.merge( scripts, getAll( node, "script" ) ); - } - } - - callback.call( - table && jQuery.nodeName( this[i], "table" ) ? - findOrAppend( this[i], "tbody" ) : - this[i], - node, - i - ); - } - - if ( hasScripts ) { - doc = scripts[ scripts.length - 1 ].ownerDocument; - - // Reenable scripts - jQuery.map( scripts, restoreScript ); - - // Evaluate executable scripts on first document insertion - for ( i = 0; i < hasScripts; i++ ) { - node = scripts[ i ]; - if ( rscriptType.test( node.type || "" ) && - !jQuery._data( node, "globalEval" ) && jQuery.contains( doc, node ) ) { - - if ( node.src ) { - // Hope ajax is available... - jQuery.ajax({ - url: node.src, - type: "GET", - dataType: "script", - async: false, - global: false, - "throws": true - }); - } else { - jQuery.globalEval( ( node.text || node.textContent || node.innerHTML || "" ).replace( rcleanScript, "" ) ); - } - } - } - } - - // Fix #11809: Avoid leaking memory - fragment = first = null; - } - } - - return this; - } -}); - -function findOrAppend( elem, tag ) { - return elem.getElementsByTagName( tag )[0] || elem.appendChild( elem.ownerDocument.createElement( tag ) ); -} - -// Replace/restore the type attribute of script elements for safe DOM manipulation -function disableScript( elem ) { - var attr = elem.getAttributeNode("type"); - elem.type = ( attr && attr.specified ) + "/" + elem.type; - return elem; -} -function restoreScript( elem ) { - var match = rscriptTypeMasked.exec( elem.type ); - if ( match ) { - elem.type = match[1]; - } else { - elem.removeAttribute("type"); - } - return elem; -} - -// Mark scripts as having already been evaluated -function setGlobalEval( elems, refElements ) { - var elem, - i = 0; - for ( ; (elem = elems[i]) != null; i++ ) { - jQuery._data( elem, "globalEval", !refElements || jQuery._data( refElements[i], "globalEval" ) ); - } -} - -function cloneCopyEvent( src, dest ) { - - if ( dest.nodeType !== 1 || !jQuery.hasData( src ) ) { - return; - } - - var type, i, l, - oldData = jQuery._data( src ), - curData = jQuery._data( dest, oldData ), - events = oldData.events; - - if ( events ) { - delete curData.handle; - curData.events = {}; - - for ( type in events ) { - for ( i = 0, l = events[ type ].length; i < l; i++ ) { - jQuery.event.add( dest, type, events[ type ][ i ] ); - } - } - } - - // make the cloned public data object a copy from the original - if ( curData.data ) { - curData.data = jQuery.extend( {}, curData.data ); - } -} - -function fixCloneNodeIssues( src, dest ) { - var nodeName, e, data; - - // We do not need to do anything for non-Elements - if ( dest.nodeType !== 1 ) { - return; - } - - nodeName = dest.nodeName.toLowerCase(); - - // IE6-8 copies events bound via attachEvent when using cloneNode. - if ( !jQuery.support.noCloneEvent && dest[ jQuery.expando ] ) { - data = jQuery._data( dest ); - - for ( e in data.events ) { - jQuery.removeEvent( dest, e, data.handle ); - } - - // Event data gets referenced instead of copied if the expando gets copied too - dest.removeAttribute( jQuery.expando ); - } - - // IE blanks contents when cloning scripts, and tries to evaluate newly-set text - if ( nodeName === "script" && dest.text !== src.text ) { - disableScript( dest ).text = src.text; - restoreScript( dest ); - - // IE6-10 improperly clones children of object elements using classid. - // IE10 throws NoModificationAllowedError if parent is null, #12132. - } else if ( nodeName === "object" ) { - if ( dest.parentNode ) { - dest.outerHTML = src.outerHTML; - } - - // This path appears unavoidable for IE9. When cloning an object - // element in IE9, the outerHTML strategy above is not sufficient. - // If the src has innerHTML and the destination does not, - // copy the src.innerHTML into the dest.innerHTML. #10324 - if ( jQuery.support.html5Clone && ( src.innerHTML && !jQuery.trim(dest.innerHTML) ) ) { - dest.innerHTML = src.innerHTML; - } - - } else if ( nodeName === "input" && manipulation_rcheckableType.test( src.type ) ) { - // IE6-8 fails to persist the checked state of a cloned checkbox - // or radio button. Worse, IE6-7 fail to give the cloned element - // a checked appearance if the defaultChecked value isn't also set - - dest.defaultChecked = dest.checked = src.checked; - - // IE6-7 get confused and end up setting the value of a cloned - // checkbox/radio button to an empty string instead of "on" - if ( dest.value !== src.value ) { - dest.value = src.value; - } - - // IE6-8 fails to return the selected option to the default selected - // state when cloning options - } else if ( nodeName === "option" ) { - dest.defaultSelected = dest.selected = src.defaultSelected; - - // IE6-8 fails to set the defaultValue to the correct value when - // cloning other types of input fields - } else if ( nodeName === "input" || nodeName === "textarea" ) { - dest.defaultValue = src.defaultValue; - } -} - -jQuery.each({ - appendTo: "append", - prependTo: "prepend", - insertBefore: "before", - insertAfter: "after", - replaceAll: "replaceWith" -}, function( name, original ) { - jQuery.fn[ name ] = function( selector ) { - var elems, - i = 0, - ret = [], - insert = jQuery( selector ), - last = insert.length - 1; - - for ( ; i <= last; i++ ) { - elems = i === last ? this : this.clone(true); - jQuery( insert[i] )[ original ]( elems ); - - // Modern browsers can apply jQuery collections as arrays, but oldIE needs a .get() - core_push.apply( ret, elems.get() ); - } - - return this.pushStack( ret ); - }; -}); - -function getAll( context, tag ) { - var elems, elem, - i = 0, - found = typeof context.getElementsByTagName !== core_strundefined ? context.getElementsByTagName( tag || "*" ) : - typeof context.querySelectorAll !== core_strundefined ? context.querySelectorAll( tag || "*" ) : - undefined; - - if ( !found ) { - for ( found = [], elems = context.childNodes || context; (elem = elems[i]) != null; i++ ) { - if ( !tag || jQuery.nodeName( elem, tag ) ) { - found.push( elem ); - } else { - jQuery.merge( found, getAll( elem, tag ) ); - } - } - } - - return tag === undefined || tag && jQuery.nodeName( context, tag ) ? - jQuery.merge( [ context ], found ) : - found; -} - -// Used in buildFragment, fixes the defaultChecked property -function fixDefaultChecked( elem ) { - if ( manipulation_rcheckableType.test( elem.type ) ) { - elem.defaultChecked = elem.checked; - } -} - -jQuery.extend({ - clone: function( elem, dataAndEvents, deepDataAndEvents ) { - var destElements, node, clone, i, srcElements, - inPage = jQuery.contains( elem.ownerDocument, elem ); - - if ( jQuery.support.html5Clone || jQuery.isXMLDoc(elem) || !rnoshimcache.test( "<" + elem.nodeName + ">" ) ) { - clone = elem.cloneNode( true ); - - // IE<=8 does not properly clone detached, unknown element nodes - } else { - fragmentDiv.innerHTML = elem.outerHTML; - fragmentDiv.removeChild( clone = fragmentDiv.firstChild ); - } - - if ( (!jQuery.support.noCloneEvent || !jQuery.support.noCloneChecked) && - (elem.nodeType === 1 || elem.nodeType === 11) && !jQuery.isXMLDoc(elem) ) { - - // We eschew Sizzle here for performance reasons: http://jsperf.com/getall-vs-sizzle/2 - destElements = getAll( clone ); - srcElements = getAll( elem ); - - // Fix all IE cloning issues - for ( i = 0; (node = srcElements[i]) != null; ++i ) { - // Ensure that the destination node is not null; Fixes #9587 - if ( destElements[i] ) { - fixCloneNodeIssues( node, destElements[i] ); - } - } - } - - // Copy the events from the original to the clone - if ( dataAndEvents ) { - if ( deepDataAndEvents ) { - srcElements = srcElements || getAll( elem ); - destElements = destElements || getAll( clone ); - - for ( i = 0; (node = srcElements[i]) != null; i++ ) { - cloneCopyEvent( node, destElements[i] ); - } - } else { - cloneCopyEvent( elem, clone ); - } - } - - // Preserve script evaluation history - destElements = getAll( clone, "script" ); - if ( destElements.length > 0 ) { - setGlobalEval( destElements, !inPage && getAll( elem, "script" ) ); - } - - destElements = srcElements = node = null; - - // Return the cloned set - return clone; - }, - - buildFragment: function( elems, context, scripts, selection ) { - var j, elem, contains, - tmp, tag, tbody, wrap, - l = elems.length, - - // Ensure a safe fragment - safe = createSafeFragment( context ), - - nodes = [], - i = 0; - - for ( ; i < l; i++ ) { - elem = elems[ i ]; - - if ( elem || elem === 0 ) { - - // Add nodes directly - if ( jQuery.type( elem ) === "object" ) { - jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem ); - - // Convert non-html into a text node - } else if ( !rhtml.test( elem ) ) { - nodes.push( context.createTextNode( elem ) ); - - // Convert html into DOM nodes - } else { - tmp = tmp || safe.appendChild( context.createElement("div") ); - - // Deserialize a standard representation - tag = ( rtagName.exec( elem ) || ["", ""] )[1].toLowerCase(); - wrap = wrapMap[ tag ] || wrapMap._default; - - tmp.innerHTML = wrap[1] + elem.replace( rxhtmlTag, "<$1>" ) + wrap[2]; - - // Descend through wrappers to the right content - j = wrap[0]; - while ( j-- ) { - tmp = tmp.lastChild; - } - - // Manually add leading whitespace removed by IE - if ( !jQuery.support.leadingWhitespace && rleadingWhitespace.test( elem ) ) { - nodes.push( context.createTextNode( rleadingWhitespace.exec( elem )[0] ) ); - } - - // Remove IE's autoinserted from table fragments - if ( !jQuery.support.tbody ) { - - // String was a , *may* have spurious - elem = tag === "table" && !rtbody.test( elem ) ? - tmp.firstChild : - - // String was a bare or - wrap[1] === "
      " && !rtbody.test( elem ) ? - tmp : - 0; - - j = elem && elem.childNodes.length; - while ( j-- ) { - if ( jQuery.nodeName( (tbody = elem.childNodes[j]), "tbody" ) && !tbody.childNodes.length ) { - elem.removeChild( tbody ); - } - } - } - - jQuery.merge( nodes, tmp.childNodes ); - - // Fix #12392 for WebKit and IE > 9 - tmp.textContent = ""; - - // Fix #12392 for oldIE - while ( tmp.firstChild ) { - tmp.removeChild( tmp.firstChild ); - } - - // Remember the top-level container for proper cleanup - tmp = safe.lastChild; - } - } - } - - // Fix #11356: Clear elements from fragment - if ( tmp ) { - safe.removeChild( tmp ); - } - - // Reset defaultChecked for any radios and checkboxes - // about to be appended to the DOM in IE 6/7 (#8060) - if ( !jQuery.support.appendChecked ) { - jQuery.grep( getAll( nodes, "input" ), fixDefaultChecked ); - } - - i = 0; - while ( (elem = nodes[ i++ ]) ) { - - // #4087 - If origin and destination elements are the same, and this is - // that element, do not do anything - if ( selection && jQuery.inArray( elem, selection ) !== -1 ) { - continue; - } - - contains = jQuery.contains( elem.ownerDocument, elem ); - - // Append to fragment - tmp = getAll( safe.appendChild( elem ), "script" ); - - // Preserve script evaluation history - if ( contains ) { - setGlobalEval( tmp ); - } - - // Capture executables - if ( scripts ) { - j = 0; - while ( (elem = tmp[ j++ ]) ) { - if ( rscriptType.test( elem.type || "" ) ) { - scripts.push( elem ); - } - } - } - } - - tmp = null; - - return safe; - }, - - cleanData: function( elems, /* internal */ acceptData ) { - var elem, type, id, data, - i = 0, - internalKey = jQuery.expando, - cache = jQuery.cache, - deleteExpando = jQuery.support.deleteExpando, - special = jQuery.event.special; - - for ( ; (elem = elems[i]) != null; i++ ) { - - if ( acceptData || jQuery.acceptData( elem ) ) { - - id = elem[ internalKey ]; - data = id && cache[ id ]; - - if ( data ) { - if ( data.events ) { - for ( type in data.events ) { - if ( special[ type ] ) { - jQuery.event.remove( elem, type ); - - // This is a shortcut to avoid jQuery.event.remove's overhead - } else { - jQuery.removeEvent( elem, type, data.handle ); - } - } - } - - // Remove cache only if it was not already removed by jQuery.event.remove - if ( cache[ id ] ) { - - delete cache[ id ]; - - // IE does not allow us to delete expando properties from nodes, - // nor does it have a removeAttribute function on Document nodes; - // we must handle all of these cases - if ( deleteExpando ) { - delete elem[ internalKey ]; - - } else if ( typeof elem.removeAttribute !== core_strundefined ) { - elem.removeAttribute( internalKey ); - - } else { - elem[ internalKey ] = null; - } - - core_deletedIds.push( id ); - } - } - } - } - } -}); -var iframe, getStyles, curCSS, - ralpha = /alpha\([^)]*\)/i, - ropacity = /opacity\s*=\s*([^)]*)/, - rposition = /^(top|right|bottom|left)$/, - // swappable if display is none or starts with table except "table", "table-cell", or "table-caption" - // see here for display values: https://developer.mozilla.org/en-US/docs/CSS/display - rdisplayswap = /^(none|table(?!-c[ea]).+)/, - rmargin = /^margin/, - rnumsplit = new RegExp( "^(" + core_pnum + ")(.*)$", "i" ), - rnumnonpx = new RegExp( "^(" + core_pnum + ")(?!px)[a-z%]+$", "i" ), - rrelNum = new RegExp( "^([+-])=(" + core_pnum + ")", "i" ), - elemdisplay = { BODY: "block" }, - - cssShow = { position: "absolute", visibility: "hidden", display: "block" }, - cssNormalTransform = { - letterSpacing: 0, - fontWeight: 400 - }, - - cssExpand = [ "Top", "Right", "Bottom", "Left" ], - cssPrefixes = [ "Webkit", "O", "Moz", "ms" ]; - -// return a css property mapped to a potentially vendor prefixed property -function vendorPropName( style, name ) { - - // shortcut for names that are not vendor prefixed - if ( name in style ) { - return name; - } - - // check for vendor prefixed names - var capName = name.charAt(0).toUpperCase() + name.slice(1), - origName = name, - i = cssPrefixes.length; - - while ( i-- ) { - name = cssPrefixes[ i ] + capName; - if ( name in style ) { - return name; - } - } - - return origName; -} - -function isHidden( elem, el ) { - // isHidden might be called from jQuery#filter function; - // in that case, element will be second argument - elem = el || elem; - return jQuery.css( elem, "display" ) === "none" || !jQuery.contains( elem.ownerDocument, elem ); -} - -function showHide( elements, show ) { - var display, elem, hidden, - values = [], - index = 0, - length = elements.length; - - for ( ; index < length; index++ ) { - elem = elements[ index ]; - if ( !elem.style ) { - continue; - } - - values[ index ] = jQuery._data( elem, "olddisplay" ); - display = elem.style.display; - if ( show ) { - // Reset the inline display of this element to learn if it is - // being hidden by cascaded rules or not - if ( !values[ index ] && display === "none" ) { - elem.style.display = ""; - } - - // Set elements which have been overridden with display: none - // in a stylesheet to whatever the default browser style is - // for such an element - if ( elem.style.display === "" && isHidden( elem ) ) { - values[ index ] = jQuery._data( elem, "olddisplay", css_defaultDisplay(elem.nodeName) ); - } - } else { - - if ( !values[ index ] ) { - hidden = isHidden( elem ); - - if ( display && display !== "none" || !hidden ) { - jQuery._data( elem, "olddisplay", hidden ? display : jQuery.css( elem, "display" ) ); - } - } - } - } - - // Set the display of most of the elements in a second loop - // to avoid the constant reflow - for ( index = 0; index < length; index++ ) { - elem = elements[ index ]; - if ( !elem.style ) { - continue; - } - if ( !show || elem.style.display === "none" || elem.style.display === "" ) { - elem.style.display = show ? values[ index ] || "" : "none"; - } - } - - return elements; -} - -jQuery.fn.extend({ - css: function( name, value ) { - return jQuery.access( this, function( elem, name, value ) { - var len, styles, - map = {}, - i = 0; - - if ( jQuery.isArray( name ) ) { - styles = getStyles( elem ); - len = name.length; - - for ( ; i < len; i++ ) { - map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles ); - } - - return map; - } - - return value !== undefined ? - jQuery.style( elem, name, value ) : - jQuery.css( elem, name ); - }, name, value, arguments.length > 1 ); - }, - show: function() { - return showHide( this, true ); - }, - hide: function() { - return showHide( this ); - }, - toggle: function( state ) { - var bool = typeof state === "boolean"; - - return this.each(function() { - if ( bool ? state : isHidden( this ) ) { - jQuery( this ).show(); - } else { - jQuery( this ).hide(); - } - }); - } -}); - -jQuery.extend({ - // Add in style property hooks for overriding the default - // behavior of getting and setting a style property - cssHooks: { - opacity: { - get: function( elem, computed ) { - if ( computed ) { - // We should always get a number back from opacity - var ret = curCSS( elem, "opacity" ); - return ret === "" ? "1" : ret; - } - } - } - }, - - // Exclude the following css properties to add px - cssNumber: { - "columnCount": true, - "fillOpacity": true, - "fontWeight": true, - "lineHeight": true, - "opacity": true, - "orphans": true, - "widows": true, - "zIndex": true, - "zoom": true - }, - - // Add in properties whose names you wish to fix before - // setting or getting the value - cssProps: { - // normalize float css property - "float": jQuery.support.cssFloat ? "cssFloat" : "styleFloat" - }, - - // Get and set the style property on a DOM Node - style: function( elem, name, value, extra ) { - // Don't set styles on text and comment nodes - if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) { - return; - } - - // Make sure that we're working with the right name - var ret, type, hooks, - origName = jQuery.camelCase( name ), - style = elem.style; - - name = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( style, origName ) ); - - // gets hook for the prefixed version - // followed by the unprefixed version - hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; - - // Check if we're setting a value - if ( value !== undefined ) { - type = typeof value; - - // convert relative number strings (+= or -=) to relative numbers. #7345 - if ( type === "string" && (ret = rrelNum.exec( value )) ) { - value = ( ret[1] + 1 ) * ret[2] + parseFloat( jQuery.css( elem, name ) ); - // Fixes bug #9237 - type = "number"; - } - - // Make sure that NaN and null values aren't set. See: #7116 - if ( value == null || type === "number" && isNaN( value ) ) { - return; - } - - // If a number was passed in, add 'px' to the (except for certain CSS properties) - if ( type === "number" && !jQuery.cssNumber[ origName ] ) { - value += "px"; - } - - // Fixes #8908, it can be done more correctly by specifing setters in cssHooks, - // but it would mean to define eight (for every problematic property) identical functions - if ( !jQuery.support.clearCloneStyle && value === "" && name.indexOf("background") === 0 ) { - style[ name ] = "inherit"; - } - - // If a hook was provided, use that value, otherwise just set the specified value - if ( !hooks || !("set" in hooks) || (value = hooks.set( elem, value, extra )) !== undefined ) { - - // Wrapped to prevent IE from throwing errors when 'invalid' values are provided - // Fixes bug #5509 - try { - style[ name ] = value; - } catch(e) {} - } - - } else { - // If a hook was provided get the non-computed value from there - if ( hooks && "get" in hooks && (ret = hooks.get( elem, false, extra )) !== undefined ) { - return ret; - } - - // Otherwise just get the value from the style object - return style[ name ]; - } - }, - - css: function( elem, name, extra, styles ) { - var num, val, hooks, - origName = jQuery.camelCase( name ); - - // Make sure that we're working with the right name - name = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( elem.style, origName ) ); - - // gets hook for the prefixed version - // followed by the unprefixed version - hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; - - // If a hook was provided get the computed value from there - if ( hooks && "get" in hooks ) { - val = hooks.get( elem, true, extra ); - } - - // Otherwise, if a way to get the computed value exists, use that - if ( val === undefined ) { - val = curCSS( elem, name, styles ); - } - - //convert "normal" to computed value - if ( val === "normal" && name in cssNormalTransform ) { - val = cssNormalTransform[ name ]; - } - - // Return, converting to number if forced or a qualifier was provided and val looks numeric - if ( extra === "" || extra ) { - num = parseFloat( val ); - return extra === true || jQuery.isNumeric( num ) ? num || 0 : val; - } - return val; - }, - - // A method for quickly swapping in/out CSS properties to get correct calculations - swap: function( elem, options, callback, args ) { - var ret, name, - old = {}; - - // Remember the old values, and insert the new ones - for ( name in options ) { - old[ name ] = elem.style[ name ]; - elem.style[ name ] = options[ name ]; - } - - ret = callback.apply( elem, args || [] ); - - // Revert the old values - for ( name in options ) { - elem.style[ name ] = old[ name ]; - } - - return ret; - } -}); - -// NOTE: we've included the "window" in window.getComputedStyle -// because jsdom on node.js will break without it. -if ( window.getComputedStyle ) { - getStyles = function( elem ) { - return window.getComputedStyle( elem, null ); - }; - - curCSS = function( elem, name, _computed ) { - var width, minWidth, maxWidth, - computed = _computed || getStyles( elem ), - - // getPropertyValue is only needed for .css('filter') in IE9, see #12537 - ret = computed ? computed.getPropertyValue( name ) || computed[ name ] : undefined, - style = elem.style; - - if ( computed ) { - - if ( ret === "" && !jQuery.contains( elem.ownerDocument, elem ) ) { - ret = jQuery.style( elem, name ); - } - - // A tribute to the "awesome hack by Dean Edwards" - // Chrome < 17 and Safari 5.0 uses "computed value" instead of "used value" for margin-right - // Safari 5.1.7 (at least) returns percentage for a larger set of values, but width seems to be reliably pixels - // this is against the CSSOM draft spec: http://dev.w3.org/csswg/cssom/#resolved-values - if ( rnumnonpx.test( ret ) && rmargin.test( name ) ) { - - // Remember the original values - width = style.width; - minWidth = style.minWidth; - maxWidth = style.maxWidth; - - // Put in the new values to get a computed value out - style.minWidth = style.maxWidth = style.width = ret; - ret = computed.width; - - // Revert the changed values - style.width = width; - style.minWidth = minWidth; - style.maxWidth = maxWidth; - } - } - - return ret; - }; -} else if ( document.documentElement.currentStyle ) { - getStyles = function( elem ) { - return elem.currentStyle; - }; - - curCSS = function( elem, name, _computed ) { - var left, rs, rsLeft, - computed = _computed || getStyles( elem ), - ret = computed ? computed[ name ] : undefined, - style = elem.style; - - // Avoid setting ret to empty string here - // so we don't default to auto - if ( ret == null && style && style[ name ] ) { - ret = style[ name ]; - } - - // From the awesome hack by Dean Edwards - // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291 - - // If we're not dealing with a regular pixel number - // but a number that has a weird ending, we need to convert it to pixels - // but not position css attributes, as those are proportional to the parent element instead - // and we can't measure the parent instead because it might trigger a "stacking dolls" problem - if ( rnumnonpx.test( ret ) && !rposition.test( name ) ) { - - // Remember the original values - left = style.left; - rs = elem.runtimeStyle; - rsLeft = rs && rs.left; - - // Put in the new values to get a computed value out - if ( rsLeft ) { - rs.left = elem.currentStyle.left; - } - style.left = name === "fontSize" ? "1em" : ret; - ret = style.pixelLeft + "px"; - - // Revert the changed values - style.left = left; - if ( rsLeft ) { - rs.left = rsLeft; - } - } - - return ret === "" ? "auto" : ret; - }; -} - -function setPositiveNumber( elem, value, subtract ) { - var matches = rnumsplit.exec( value ); - return matches ? - // Guard against undefined "subtract", e.g., when used as in cssHooks - Math.max( 0, matches[ 1 ] - ( subtract || 0 ) ) + ( matches[ 2 ] || "px" ) : - value; -} - -function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) { - var i = extra === ( isBorderBox ? "border" : "content" ) ? - // If we already have the right measurement, avoid augmentation - 4 : - // Otherwise initialize for horizontal or vertical properties - name === "width" ? 1 : 0, - - val = 0; - - for ( ; i < 4; i += 2 ) { - // both box models exclude margin, so add it if we want it - if ( extra === "margin" ) { - val += jQuery.css( elem, extra + cssExpand[ i ], true, styles ); - } - - if ( isBorderBox ) { - // border-box includes padding, so remove it if we want content - if ( extra === "content" ) { - val -= jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); - } - - // at this point, extra isn't border nor margin, so remove border - if ( extra !== "margin" ) { - val -= jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); - } - } else { - // at this point, extra isn't content, so add padding - val += jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); - - // at this point, extra isn't content nor padding, so add border - if ( extra !== "padding" ) { - val += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); - } - } - } - - return val; -} - -function getWidthOrHeight( elem, name, extra ) { - - // Start with offset property, which is equivalent to the border-box value - var valueIsBorderBox = true, - val = name === "width" ? elem.offsetWidth : elem.offsetHeight, - styles = getStyles( elem ), - isBorderBox = jQuery.support.boxSizing && jQuery.css( elem, "boxSizing", false, styles ) === "border-box"; - - // some non-html elements return undefined for offsetWidth, so check for null/undefined - // svg - https://bugzilla.mozilla.org/show_bug.cgi?id=649285 - // MathML - https://bugzilla.mozilla.org/show_bug.cgi?id=491668 - if ( val <= 0 || val == null ) { - // Fall back to computed then uncomputed css if necessary - val = curCSS( elem, name, styles ); - if ( val < 0 || val == null ) { - val = elem.style[ name ]; - } - - // Computed unit is not pixels. Stop here and return. - if ( rnumnonpx.test(val) ) { - return val; - } - - // we need the check for style in case a browser which returns unreliable values - // for getComputedStyle silently falls back to the reliable elem.style - valueIsBorderBox = isBorderBox && ( jQuery.support.boxSizingReliable || val === elem.style[ name ] ); - - // Normalize "", auto, and prepare for extra - val = parseFloat( val ) || 0; - } - - // use the active box-sizing model to add/subtract irrelevant styles - return ( val + - augmentWidthOrHeight( - elem, - name, - extra || ( isBorderBox ? "border" : "content" ), - valueIsBorderBox, - styles - ) - ) + "px"; -} - -// Try to determine the default display value of an element -function css_defaultDisplay( nodeName ) { - var doc = document, - display = elemdisplay[ nodeName ]; - - if ( !display ) { - display = actualDisplay( nodeName, doc ); - - // If the simple way fails, read from inside an iframe - if ( display === "none" || !display ) { - // Use the already-created iframe if possible - iframe = ( iframe || - jQuery("