commit bdeb1b26b72cba3ec3ff831e8eb75a78fde5b132
parent 74205aed81d7967754eb20e4c4ec47a99c2eab65
Author: Jan Dankert <devnull@localhost>
Date: Wed, 15 Nov 2017 23:06:27 +0100
Das CSS und JS für produktiven Einsatz.
Diffstat:
2 files changed, 433 insertions(+), 0 deletions(-)
diff --git a/themes/default/production/combined.min.css b/themes/default/production/combined.min.css
@@ -0,0 +1 @@
+iframe{width: 100%;height: 500px;display: block}div.breadcrumb,div.breadcrumb a,div.panel > div.title{font-weight: bold}div#header{width: 100%;height: 27px;overflow: hidden;padding: 5px;margin: 0px;margin-bottom: 3px;float: left}div#header div.projects,div#header div.menu,div#header div.title{float: left;margin-right: 10px;margin-left: 0px}div#header div.user,div#header div.search,div#header div.history{float: right;margin-right: 10px;margin-left: 10px}div#noticebar{display: block;position: fixed;bottom: 40px;right: 40px;width: 250px;z-index: 113}div#noticebar div.notice{border: 2px solid #000;padding: 5px;margin: 5px;display: none}div#noticebar div.notice.error div.text{font-weight: bold}div#noticebar div.log{font-family: monospace}html,body{height: 100%}div.panel div.title{height: 20px}div.panel div.status{height: 35px}div.panel > div.content{xxoverflow-x: auto}ul#history > li,div.content a.action,div.content a.help,div.filler div.headermenu > a.entry,div.filler div.header a.back.button{margin: 9px;padding-top: 4px;padding-bottom: 4px;padding-left: 7px;padding-right: 7px;border: 1px solid;font-style: normal;font-weight: normal;text-decoration: none}ul#history > li.active{font-weight: bold}a.help{float: right}a.help{cursor: help}a.action:hover,a.help:hover,div.noaction:hover{text-decoration: none}a.action:active,a.help:active,div.noaction:active,input.ok:active{border-color: red}div.dropdown{z-index: 2;display: none;position: absolute;padding: 5px 0px}div.dropdownalignright{right: 0}div.dropdown > a{display: block}div.dropdown div.entry{padding: 2px 5px}div.dropdown > div.divide{height: 1px;width: 100%;margin-top: 5px;margin-bottom: 5px}div#header > div.menu{overflow: hidden}div#header div:hover div.dropdown,div.panel div:hover > div.dropdown,div.panel-icon:hover > div.dropdown{display: block}div.onrowvisible{visibility: hidden;display: inline}td:hover > div.onrowvisible{visibility: visible}.preview h1{font-size: 138.5%}.preview h2{font-size: 123.1%}.preview h3{font-size: 108%}.preview h1,.preview h2,.preview h3{margin: 1em 0}.preview h1,.preview h2,.preview h3,.preview h4,.preview h5,.preview h6,.preview strong{font-weight: bold}.preview abbr,.preview acronym{border-bottom: 1px dotted #000;cursor: help}.preview em{font-style: italic}.preview ol,.preview ul,.preview dl{margin-left: 2em}.preview ol li{list-style: decimal outside}.preview ul li{list-style: disc outside}.preview a:link,.preview a:visited,.preview a:active,.preview a:hover{text-decoration: underline}a:link,a:visited{font-weight: normal;text-decoration: none}a:active,a:hover{font-weight: normal;text-decoration: none}body.menu tr.menu td table tr td,body.main tr.menu td table tr td{padding: 4px;padding-right: 6px;padding-left: 6px;width: 30px;white-space: nowrap}body.menu tr.menu table{width: 50px}body.menu tr.menu td table tr td.noaction,body.main tr.menu td table tr td.noaction{color: #000}img[align=left],img[align=right]{padding-right: 1px;padding-left: 1px}pre{font-family: Courier;font-size: 13px}small{color: #000}body.menu span.accesskey,body.main span.accesskey{text-decoration: underline}body.menu tr.title td,body.main tr.title td{vertical-align: middle;padding: 4px;height: 30px}td.message{padding: 10px;font-weight: bold}body.main table.main td.window td{padding: 4px}body.main table.main td.window td.act{padding: 15px;margin-top: 20px;border-top: 1px solid #000;text-align: right}a.copyright{font-size: 0.7em;text-decoration: none}td.motd{border-left: 3px solid #f00;border-right: 3px solid #f00;font-weight: bold;padding: 10px;margin: 10px}table.main{x-border: 3px solid}div.panel input.checkbox,div.panel input.radio{border: 1px solid #000}textarea.desc,textarea.description{font-family: Arial;font-size: 13px}textarea.longtext{font-family: Arial;font-size: 13px;width: 100%;border: 1px solid #000}tr td.help{font-style: italic}tr.headline td.help{font-style: normal}td.logo{padding: 10px;margin: 0px}div.logo h2{font-family: Verdana;font-weight: normal;font-size: 24px}div.logo p{font-family: Verdana;font-size: 13px}div#header div.search input{margin: 0px;padding: 0px}td.notice{margin: 0px;padding: 5%;text-align: center}table.notice{width: 100%;border: 1px solid;border-spacing: 0px}table.notice th{padding: 2px;white-space: nowrap;border-bottom: 1px solid #000;font-weight: normal;text-align: left}table.notice tr.warning{margin: 0px;padding: 0px}table.calendar{table-layout: fixed;border-collapse: collapse;text-align: center}table.calendar td{border: 1px dotted}label,.clickable{cursor: pointer}body{cursor: default}input{xcursor: text}div.menu{float: none;xclear: left}form.xlogin{xbackground-color: #E0E0D5;border: 2px solid #000;position: absolute;z-index: 999;top: 5%;left: 5%;width: 80%;margin: 5%;padding: 10%;opacity: 1;-webkit-box-shadow: 3px 2px 5px #000;-moz-box-shadow: 3px 2px 5px #000;box-shadow: 3px 2px 5px #000}ul.tree,ul.tree ul{list-style-type: none;background: url(__IMAGE_PATH__/tree_line.gif) repeat-y;margin: 0;padding: 0}ul.tree ul{margin-left: 18px}ul.tree div.tree{width: 18px;min-width: 18px;height: 18px;float: left}ul.tree div.tree,ul.tree div.entry{height: 18px;max-height: 18px;min-height: 18px}ul.tree div img{cfloat: left}ul.tree li{margin: 0;padding: 0 0px;line-height: 18px;background: url(__IMAGE_PATH__/tree_none.gif) no-repeat;xcolor: #369;font-weight: normal;white-space: nowrap}ul.tree li.last,ul.tree li:last-child{background: url(__IMAGE_PATH__/tree_none_end.gif) no-repeat}div.tree.open{background: url(__IMAGE_PATH__/tree_minus.png) no-repeat}div.tree.closed{background: url(__IMAGE_PATH__/tree_plus.png) no-repeat}body > div{display: none}div.structure em{font-style: italic}.drophover{border: 2px dotted #008000;cursor: move}.dropactive{border: 1px dotted #00f;cursor: move}div.panel > div.header > div.panel-icon{xposition: static;xright: -30px;top: 3px}div.backward_link{float: left}div.forward_link{float: right}div.panel > div.header{padding: 0px;width: 100%;height: 25px}div.panel div.header ul.views{text-align: left;list-style-type: none;overflow: hidden;white-space: nowrap}img.icon{padding: 4px;width: 16px;height: 16px}ul.views div.tabname{overflow: hidden;white-space: nowrap;padding: 4px;vertical-align: middle}ul.views > li > img,ul.views > li > div{float: left}div.panel div.header div.panel-icon,div.inputholder > div.icon{float: right}div.panel div.header > ul.views{float: left;height: 25px}div.content{clear: both}div.panel ul.views li{vertical-align: middle;padding: 0px;cursor: pointer;border-right: 1px solid #000;-moz-border-radius-topleft: 5px;-webkit-border-radius-topleft: 5px;-khtml-border-top-radius-topleft: 5px;-moz-border-radius-topright: 5px;-webkit-border-radius-topright: 5px;-khtml-border-top-radius-topright: 5px;border-top-right-radius: 5px;display: inline;white-space: nowrap;float: left}div.panel{margin: 0px;padding: 0px}div.panel div.content table{overflow: auto;border: 2px}table tr.headline > td{padding: 3px;font-weight: bold}table tr.data > td{padding: 3px}ul.tree div{cursor: pointer}div.panel div.status{padding: 10px}div.panel div.status div.error,div.message.error{background: url(__IMAGE_PATH__/notice_error.png) no-repeat;background-position: 5px 7px}div.panel div.status div.warn,div.message.warn{background: url(__IMAGE_PATH__/notice_warning.png) no-repeat;background-position: 5px 7px}div.panel div.status div.ok,div.message.ok{background: url(__IMAGE_PATH__/notice_ok.png) no-repeat;background-position: 5px 7px}div.panel div.status div.info,div.message.info{background: url(__IMAGE_PATH__/notice_info.png) no-repeat;background-position: 5px 7px}div.panel div.status div,div.message{border: 1px solid #000;padding: 5px 0px 5px 25px;margin: 10px 10px 20px 10px;-moz-border-radius: 5px;-webkit-border-radius: 5px;-khtml-border-radius: 5px;border-radius: 5px}div.loader,div.progress{background: url(__IMAGE_PATH__/loader.gif) no-repeat;background-position: center;opacity: 0.5;cursor: wait;min-height: 50px}div#workbench{width: 100%;padding: 3px}div#workbench div.panel.fullscreen{display: block;z-index: 109;position: fixed;top: 0;left: 0;background-color: #000;margin: 0px;width: 100% !important;height: 100% !important}div#workbench div.panel.fullscreen > div.content{width: 100% !important;height: 100% !important}div#workbench div.panel{border: 1px solid #000;margin: 0px;padding: 0px;-moz-border-radius: 5px;-webkit-border-radius: 5px;-khtml-border-radius: 5px;border-radius: 5px}div#workbench div.container,div#workbench div.panel,div#workbench div.divider{display: inline;float: left;margin: 0px}div#workbench div.panel > div.content{overflow: auto}.invisible{visibility: hidden}.visible{visibility: visible}body{overflow: hidden}div.panel{position: relative}div.content div.bottom{xbackground-color: #000;height: 55px;width: 100%;position: absolute;padding-right: 40px;bottom: 0px;right: 0px;xvisibility: hidden}div.content div.bottom > div.command{xvisibility: visible;float: right;z-index: 20}div.content form[data-autosave='true'] div.command{display: none}div.content > form{padding-bottom: 45px}input.submit{background-color: #000;color: #000;padding: 7px;border: 0px;-moz-border-radius: 7px;-webkit-border-radius: 7px;-khtml-border-radius: 7px;border-radius: 7px;margin-left: 20px;-webkit-box-shadow: 0px 0px 15px #000;-moz-box-shadow: 0px 0px 15px #000;box-shadow: 0px 0px 15px 10px #000;cursor: pointer}input.submit.ok{font-weight: bold}div.views > div.backward_link,div.views > div.forward_link{visibility: hidden}div.views:HOVER > div.backward_link,div.views:HOVER > div.forward_link{visibility: visible}div#shortcuts{height: 24px;margin-left: 10px}div#shortcuts > div.shortcut{width: 24px;height: 24px;margin-left: 5px;float: left;opacity: 0.8}div#shortcuts > div.shortcut:HOVER{xborder: 1px solid #000;x-moz-border-radius: 2px;x-webkit-border-radius: 2px;x-khtml-border-radius: 2px;opacity: 1.0;position: relative;bottom: 3px}@media only screen and (max-width: 1023px){body{font-size: 0.8em;line-height: 1.5em}}@media handheld, only screen and (max-width: 767px){body{font-size: 16px;-webkit-text-size-adjust: none;overflow: visible}div#header,div#workbench{width: 100%;height: auto;min-width: 0;margin-left: 0px;margin-right: 0px;padding-left: 0px;padding-right: 0px}div#workbench div.panel{width: auto !important}li.action div.tabname{width: auto !important}div#workbench div.panel{width: auto;float: none;margin-left: 0px;margin-right: 0px;padding-left: 20px;padding-right: 20px}div#workbench div.panel > div.content{overflow: auto;height: auto !important}}body > div#header{display: block}ul#history > li{xdisplay: inline;margin: 5px;padding: 5px;border: 1px solid #000;background-color: #000;color: #000}ul#history > li.active{xdisplay: inline;margin: 5px;padding: 5px;border: 1px solid #000;background-color: #000;color: #000}ul#history{display: none}table td.readonly{font-style: italic;font-weight: normal}table td.default{font-style: normal;font-weight: normal}table td.changed{font-style: normal;font-weight: bold}div#filler{xxxxdisplay: block;position: absolute;z-index: 100;top: 0;left: 0;height: 100%;width: 100%;background-color: #000;opacity: 0.5}div.clickable.filtered.inactive > a{color: #000}div#header > div > div.arrow-down{display: inline;width: 0;height: 0;margin: 6;padding: 0px;border-right: 6px solid #000;border-left: 6px solid #000;border-top: 6px solid #000;border-bottom: 4px solid #000;margin-top: 10px;font-size: 0}div.dropdown{font-style: normal;font-weight: normal;text-decoration: none}div.toolbar-icon{padding: 2px;margin-left: 5px;float: left}div.headermenu{margin: 5px;z-index: 1;position: relative;right: 0;top: 0}div.headermenu > div.toolbar-icon{float: right}div.panel.wide form div.line{clear: left;margin-top: 10px}div.panel.wide form div.label{display: inline-block;width: 30%;vertical-align: top;text-align: right}div.panel.wide form div.input{display: inline-block;width: 60%;vertical-align: top;text-align: left}div.panel.small form div.line{clear: left;padding: 10px}div.panel.small form div.label{display: block;width: 100%;vertical-align: top;text-align: left}div.panel.small form div.input{display: block;width: 100%;vertical-align: top;text-align: left}form div.label > label,form div.input > div.intputholder{padding: 0px 5px}form div.input input[type=text],form div.input input[type=password],form div.input textarea,form div.input select{width: 100%}form div.input input[type=checkbox],form div.input input[type=radio]{vertical-align: top}label{display: inline-block}input[type=checkbox] + label,input[type=radio] + label{width: 80%}label div.description{font-size: 0.75em}div.inputholder > div.dropdown{width: 70%}div.search > div.inputholder{padding-top: 1px}div.inputholder > input,div.inputholder > textarea,div.inputholder > select{padding: 2px;margin: 0px}fieldset > div input.name,fieldset > div span.name{font-weight: bold}fieldset > div input.filename,fieldset > div input.extension,fieldset > div input.ansidate,fieldset > div span.filename,fieldset > div span.extension,fieldset > div span.ansidate{font-family: Courier;font-size: 1em}div#tree{overflow: visible}tr.diff > td.line{background-color: #000;padding-right: 2px;border-right: 3px solid #000;text-align: right;margin-right: 2px}tr.diff > td.old{background-color: red}tr.diff > td.new{background-color: green}tr.diff > td.notequal{background-color: yellow}dl.notice{padding: 15px}div.content a.action,div.content a.help{-webkit-box-shadow: 3px 2px 5px #000;-moz-box-shadow: 3px 2px 5px #000;box-shadow: 3px 2px 5px #000}body{background-color: #000}div.panel ul.views > li.active,div.panel ul.views > li.active:hover{background-color: #000;background-image: linear-gradient(#000 0%, #000 15%);color: #000}div#header{background-color: #000;background-image: linear-gradient(#000 85%, #000 100%);color: #000}div#header div.toolbar-icon > a{color: #000}div#header,ul.views > li.action{font-family: Arial, sans-serif;font-size: 13px}div.content{font-family: Trebuchet MS, Helvetica, Arial, sans-serif;font-size: 13px}div.panel > div.content{background-color: #000}div.panel > div.header{background-color: #000;background-image: linear-gradient(#000 0%, #000 85%)}div.panel ul.views li:hover{background-color: #000}ul.tree li.last,ul.tree li:last-child{background-color: #000}div.content pre,div.dropdown{background-color: #000;color: #000;min-width: 150px;max-width: 450px}div.filler div.headermenu > a.entry,div.filler div.header a.back.button{font-size: 0.8em}html,body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,code,del,dfn,em,img,q,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{margin: 0;padding: 0;border: 0;font-weight: inherit;font-style: inherit;font-size: 100%;font-family: inherit;vertical-align: baseline}body{line-height: 1.5}table{border-collapse: separate;border-spacing: 0}caption,th,td{text-align: left;font-weight: normal}table,td,th{vertical-align: top}blockquote:before,blockquote:after,q:before,q:after{content: ""}blockquote,q{quotes: "" ""}a img{border: none}div#workbench div.panel.modal{position: relative;xtop: 0;xleft: 0;z-index: 101;border: 1px solid !important}div#dialog{overflow: auto;position: absolute;top: 5%;left: 10%;width: 80%;height: 80%;z-index: 104;border: 1px solid !important}div.container.axle-x > div.divider{width: 5px}div.container.axle-y > div.divider{height: 5px}div.divider.to-left{cursor: w-resize}div.divider.to-right{cursor: e-resize}div.divider.to-top{cursor: n-resize}div.divider.to-bottom{cursor: s-resize}div.container > div.divider.ui-draggable-dragging{z-index: 150}div#workbench div.panel div.arrow-down{width: 0;height: 0;margin: 6px;padding: 0px;border-right: 6px solid transparent;border-top: 6px solid;border-left: 6px solid transparent;border-bottom: 4px solid transparent;margin-top: 10px;font-size: 0}div#workbench div.panel div.arrow-right{width: 0;height: 0;margin: 6px;padding: 0;border-top: 6px solid transparent;border-left: 6px solid;border-bottom: 6px solid transparent;border-right: 4px solid transparent;margin-left: 10px;font-size: 0}div#workbench div.panel li.action.dirty{font-weight: bold}fieldset.open > legend {cursor:pointer;}fieldset {border:1px solid;border-bottom:0px;border-left:0px;border-right:0px;margin-top:20px;margin-bottom:20px;margin-left:0px;margin-right:0px;padding:10px;display:none;}fieldset.show {display:block;}fieldset > legend {margin-left:30px;font-weight:normal;}fieldset > div {display:none;}fieldset.open > div {display:block;}div#workbench div.panel fieldset > legend > div.closed,div#dialog div.panel fieldset > legend > div.closed {display:inline;}div#workbench div.panel fieldset > legend > div.open {display:none;}div#workbench div.panel fieldset.open > legend > div.closed {display:none;}div#workbench div.panel fieldset.open > legend > div.open,div#dialog div.panel fieldset.open > legend > div.open {display:inline;}.editor__text-editor {width:100%;height:300px;}textarea.editor__code-editor {display:none;}div.editor__code-editor {position:absolute;height:500px;width:100%;font-size:14px;z-index:256;}textarea.editor__text-editor,textarea.editor__wiki-editor,textarea.editor__html-editor {width:100%;}a.editorlink:active,a.editorlink:hover {font-weight:normal;text-decoration:none;}a.editorlink:link,a.editorlink:visited {font-weight:normal;text-decoration:none;}div.line.filedropzone > div.input {width:100%;height:100px;border:1px dotted;}+
\ No newline at end of file
diff --git a/themes/default/production/combined.min.js b/themes/default/production/combined.min.js
@@ -0,0 +1,430 @@
+/*! jQuery v1.12.4 | (c) jQuery Foundation | jquery.org/license */
+!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(t,n){var d=[],i=t.document,h=d.slice,We=d.concat,oe=d.push,Ie=d.indexOf,R={},un=R.toString,k=R.hasOwnProperty,r={},ze="1.12.4",e=function(t,n){return new e.fn.init(t,n)},ln=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,cn=/^-ms-/,dn=/-([\da-z])/gi,fn=function(e,t){return t.toUpperCase()};e.fn=e.prototype={jquery:ze,constructor:e,selector:"",length:0,toArray:function(){return h.call(this)},get:function(e){return null!=e?0>e?this[e+this.length]:this[e]:h.call(this)},pushStack:function(t){var n=e.merge(this.constructor(),t);return n.prevObject=this,n.context=this.context,n},each:function(t){return e.each(this,t)},map:function(t){return this.pushStack(e.map(this,function(e,n){return t.call(e,n,e)}))},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 n=this.length,t=+e+(0>e?n:0);return this.pushStack(t>=0&&n>t?[this[t]]:[])},end:function(){return this.prevObject||this.constructor()},push:oe,sort:d.sort,splice:d.splice},e.extend=e.fn.extend=function(){var r,a,n,o,s,u,t=arguments[0]||{},i=1,c=arguments.length,l=!1;for("boolean"==typeof t&&(l=t,t=arguments[i]||{},i++),"object"==typeof t||e.isFunction(t)||(t={}),i===c&&(t=this,i--);c>i;i++)if(null!=(s=arguments[i]))for(o in s)r=t[o],n=s[o],t!==n&&(l&&n&&(e.isPlainObject(n)||(a=e.isArray(n)))?(a?(a=!1,u=r&&e.isArray(r)?r:[]):u=r&&e.isPlainObject(r)?r:{},t[o]=e.extend(l,u,n)):void 0!==n&&(t[o]=n));return t},e.extend({expando:"jQuery"+(ze+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(t){return"function"===e.type(t)},isArray:Array.isArray||function(t){return"array"===e.type(t)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(t){var n=t&&t.toString();return!e.isArray(t)&&n-parseFloat(n)+1>=0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},isPlainObject:function(t){var i;if(!t||"object"!==e.type(t)||t.nodeType||e.isWindow(t))return!1;try{if(t.constructor&&!k.call(t,"constructor")&&!k.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1};if(!r.ownFirst)for(i in t)return k.call(t,i);for(i in t);return void 0===i||k.call(t,i)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?R[un.call(e)]||"object":typeof e},globalEval:function(n){n&&e.trim(n)&&(t.execScript||function(e){t.eval.call(t,e)})(n)},camelCase:function(e){return e.replace(cn,"ms-").replace(dn,fn)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var r,n=0;if(ae(e)){for(r=e.length;r>n;n++)if(t.call(e[n],n,e[n])===!1)break}
+else for(n in e)if(t.call(e[n],n,e[n])===!1)break;return e},trim:function(e){return null==e?"":(e+"").replace(ln,"")},makeArray:function(t,n){var r=n||[];return null!=t&&(ae(Object(t))?e.merge(r,"string"==typeof t?[t]:t):oe.call(r,t)),r},inArray:function(e,t,n){var r;if(t){if(Ie)return Ie.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,t){var r=+t.length,n=0,i=e.length;while(r>n)e[i++]=t[n++];if(r!==r)while(void 0!==t[n])e[i++]=t[n++];return e.length=i,e},grep:function(e,t,n){for(var i,o=[],r=0,a=e.length,s=!n;a>r;r++)i=!t(e[r],r),i!==s&&o.push(e[r]);return o},map:function(e,t,n){var a,i,r=0,o=[];if(ae(e))for(a=e.length;a>r;r++)i=t(e[r],r,n),null!=i&&o.push(i);else for(r in e)i=t(e[r],r,n),null!=i&&o.push(i);return We.apply([],o)},guid:1,proxy:function(t,n){var i,r,o;return"string"==typeof n&&(o=t[n],n=t,t=o),e.isFunction(t)?(i=h.call(arguments,2),r=function(){return t.apply(n||this,i.concat(h.call(arguments)))},r.guid=t.guid=t.guid||e.guid++,r):void 0},now:function(){return+new Date},support:r}),"function"==typeof Symbol&&(e.fn[Symbol.iterator]=d[Symbol.iterator]),e.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){R["[object "+t+"]"]=t.toLowerCase()});function ae(t){var n=!!t&&"length"in t&&t.length,r=e.type(t);return"function"===r||e.isWindow(t)?!1:"array"===r||0===n||"number"==typeof n&&n>0&&n-1 in t};var N=function(e){var N,o,t,j,K,S,P,Z,L,v,k,y,n,l,c,u,b,H,A,a="sizzle"+1*new Date,d=e.document,h=0,le=0,ee=X(),te=X(),q=X(),B=function(e,t){return e===t&&(k=!0),0},ne=1<<31,ce={}.hasOwnProperty,w=[],de=w.pop,fe=w.push,x=w.push,re=w.slice,T=function(e,t){for(var n=0,r=e.length;r>n;n++)if(e[n]===t)return n;return-1},W="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",r="[\\x20\\t\\r\\n\\f]",C="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",ie="\\["+r+"*("+C+")(?:"+r+"*([*^$|!~]?=)"+r+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+C+"))|)"+r+"*\\]",I=":("+C+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ie+")*)|.*)\\)|)",pe=new RegExp(r+"+","g"),F=new RegExp("^"+r+"+|((?:^|[^\\\\])(?:\\\\.)*)"+r+"+$","g"),he=new RegExp("^"+r+"*,"+r+"*"),ge=new RegExp("^"+r+"*([>+~]|"+r+")"+r+"*"),me=new RegExp("="+r+"*([^\\]'\"]*?)"+r+"*\\]","g"),ve=new RegExp(I),oe=new RegExp("^"+C+"$"),M={ID:new RegExp("^#("+C+")"),CLASS:new RegExp("^\\.("+C+")"),TAG:new RegExp("^("+C+"|[*])"),ATTR:new RegExp("^"+ie),PSEUDO:new RegExp("^"+I),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+r+"*(even|odd|(([+-]|)(\\d*)n|)"+r+"*(?:([+-]|)"+r+"*(\\d+)|))"+r+"*\\)|)","i"),bool:new RegExp("^(?:"+W+")$","i"),needsContext:new RegExp("^"+r+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+r+"*((?:-\\d)?\\d*)"+r+"*\\)|)(?=[^-]|$)","i")},ye=/^(?:input|select|textarea|button)$/i,xe=/^h\d$/i,D=/^[^{]+\{\s*\[native \w/,be=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,z=/[+~]/,we=/'|\\/g,g=new RegExp("\\\\([\\da-f]{1,6}"+r+"?|("+r+")|.)","ig"),m=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},ae=function(){y()};try{x.apply(w=re.call(d.childNodes),d.childNodes),w[d.childNodes.length].nodeType}catch(s){x={apply:w.length?function(e,t){fe.apply(e,re.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}};function i(e,t,r,i){var f,v,p,l,T,b,g,w,m=t&&t.ownerDocument,h=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==h&&9!==h&&11!==h)return r;if(!i&&((t?t.ownerDocument||t:d)!==n&&y(t),t=t||n,c)){if(11!==h&&(b=be.exec(e)))if(f=b[1]){if(9===h){if(!(p=t.getElementById(f)))return r;if(p.id===f)return r.push(p),r}
+else if(m&&(p=m.getElementById(f))&&A(t,p)&&p.id===f)return r.push(p),r}
+else{if(b[2])return x.apply(r,t.getElementsByTagName(e)),r;if((f=b[3])&&o.getElementsByClassName&&t.getElementsByClassName)return x.apply(r,t.getElementsByClassName(f)),r};if(o.qsa&&!q[e+" "]&&(!u||!u.test(e))){if(1!==h)m=t,w=e;else if("object"!==t.nodeName.toLowerCase()){(l=t.getAttribute("id"))?l=l.replace(we,"\\$&"):t.setAttribute("id",l=a),g=S(e),v=g.length,T=oe.test(l)?"#"+l:"[id='"+l+"']";while(v--)g[v]=T+" "+O(g[v]);w=g.join(","),m=z.test(e)&&V(t.parentNode)||t};if(w)try{return x.apply(r,m.querySelectorAll(w)),r}catch(s){}finally{l===a&&t.removeAttribute("id")}}};return Z(e.replace(F,"$1"),t,r,i)};function X(){var n=[];function e(r,i){return n.push(r+" ")>t.cacheLength&&delete e[n.shift()],e[r+" "]=i};return e};function f(e){return e[a]=!0,e};function p(e){var r=n.createElement("div");try{return!!e(r)}catch(t){return!1}finally{r.parentNode&&r.parentNode.removeChild(r),r=null}};function U(e,n){var r=e.split("|"),i=r.length;while(i--)t.attrHandle[r[i]]=n};function se(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||ne)-(~e.sourceIndex||ne);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1};function Te(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}};function Ce(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}};function E(e){return f(function(t){return t=+t,f(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]))})})};function V(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e};o=i.support={},K=i.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},y=i.setDocument=function(e){var f,i,s=e?e.ownerDocument||e:d;return s!==n&&9===s.nodeType&&s.documentElement?(n=s,l=n.documentElement,c=!K(n),(i=n.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",ae,!1):i.attachEvent&&i.attachEvent("onunload",ae)),o.attributes=p(function(e){return e.className="i",!e.getAttribute("className")}),o.getElementsByTagName=p(function(e){return e.appendChild(n.createComment("")),!e.getElementsByTagName("*").length}),o.getElementsByClassName=D.test(n.getElementsByClassName),o.getById=p(function(e){return l.appendChild(e).id=a,!n.getElementsByName||!n.getElementsByName(a).length}),o.getById?(t.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&c){var n=t.getElementById(e);return n?[n]:[]}},t.filter.ID=function(e){var t=e.replace(g,m);return function(e){return e.getAttribute("id")===t}}):(delete t.find.ID,t.filter.ID=function(e){var t=e.replace(g,m);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),t.find.TAG=o.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):o.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],o=0,i=t.getElementsByTagName(e);if("*"===e){while(n=i[o++])1===n.nodeType&&r.push(n);return r};return i},t.find.CLASS=o.getElementsByClassName&&function(e,t){return"undefined"!=typeof t.getElementsByClassName&&c?t.getElementsByClassName(e):void 0},b=[],u=[],(o.qsa=D.test(n.querySelectorAll))&&(p(function(e){l.appendChild(e).innerHTML="<a id='"+a+"'></a><select id='"+a+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&u.push("[*^$]="+r+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||u.push("\\["+r+"*(?:value|"+W+")"),e.querySelectorAll("[id~="+a+"-]").length||u.push("~="),e.querySelectorAll(":checked").length||u.push(":checked"),e.querySelectorAll("a#"+a+"+*").length||u.push(".#.+[+~]")}),p(function(e){var t=n.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&u.push("name"+r+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||u.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),u.push(",.*:")})),(o.matchesSelector=D.test(H=l.matches||l.webkitMatchesSelector||l.mozMatchesSelector||l.oMatchesSelector||l.msMatchesSelector))&&p(function(e){o.disconnectedMatch=H.call(e,"div"),H.call(e,"[s!='']:x"),b.push("!=",I)}),u=u.length&&new RegExp(u.join("|")),b=b.length&&new RegExp(b.join("|")),f=D.test(l.compareDocumentPosition),A=f||D.test(l.contains)?function(e,t){var r=9===e.nodeType?e.documentElement:e,n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(r.contains?r.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},B=f?function(e,t){if(e===t)return k=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r?r:(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&r||!o.sortDetached&&t.compareDocumentPosition(e)===r?e===n||e.ownerDocument===d&&A(d,e)?-1:t===n||t.ownerDocument===d&&A(d,t)?1:v?T(v,e)-T(v,t):0:4&r?-1:1)}:function(e,t){if(e===t)return k=!0,0;var r,i=0,s=e.parentNode,u=t.parentNode,o=[e],a=[t];if(!s||!u)return e===n?-1:t===n?1:s?-1:u?1:v?T(v,e)-T(v,t):0;if(s===u)return se(e,t);r=e;while(r=r.parentNode)o.unshift(r);r=t;while(r=r.parentNode)a.unshift(r);while(o[i]===a[i])i++;return i?se(o[i],a[i]):o[i]===d?-1:a[i]===d?1:0},n):n},i.matches=function(e,t){return i(e,null,null,t)},i.matchesSelector=function(e,t){if((e.ownerDocument||e)!==n&&y(e),t=t.replace(me,"='$1']"),o.matchesSelector&&c&&!q[t+" "]&&(!b||!b.test(t))&&(!u||!u.test(t)))try{var a=H.call(e,t);if(a||o.disconnectedMatch||e.document&&11!==e.document.nodeType)return a}catch(r){};return i(t,n,null,[e]).length>0},i.contains=function(e,t){return(e.ownerDocument||e)!==n&&y(e),A(e,t)},i.attr=function(e,r){(e.ownerDocument||e)!==n&&y(e);var a=t.attrHandle[r.toLowerCase()],i=a&&ce.call(t.attrHandle,r.toLowerCase())?a(e,r,!c):void 0;return void 0!==i?i:o.attributes||!c?e.getAttribute(r):(i=e.getAttributeNode(r))&&i.specified?i.value:null},i.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},i.uniqueSort=function(e){var r,i=[],t=0,n=0;if(k=!o.detectDuplicates,v=!o.sortStable&&e.slice(0),e.sort(B),k){while(r=e[n++])r===e[n]&&(t=i.push(n));while(t--)e.splice(i[t],1)};return v=null,e},j=i.getText=function(e){var r,n="",i=0,t=e.nodeType;if(t){if(1===t||9===t||11===t){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=j(e)}
+else if(3===t||4===t)return e.nodeValue}
+else while(r=e[i++])n+=j(r);return n},t=i.selectors={cacheLength:50,createPseudo:f,match:M,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(g,m),e[3]=(e[3]||e[4]||e[5]||"").replace(g,m),"~="===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]||i.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]&&i.error(e[0]),e},PSEUDO:function(e){var n,t=!e[6]&&e[2];return M.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":t&&ve.test(t)&&(n=S(t,!0))&&(n=t.indexOf(")",t.length-n)-t.length)&&(e[0]=e[0].slice(0,n),e[2]=t.slice(0,n)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(g,m).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=ee[e+" "];return t||(t=new RegExp("(^|"+r+")"+e+"("+r+"|$)"))&&ee(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var o=i.attr(r,e);return null==o?"!="===t:t?(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&o.indexOf(n)>-1:"$="===t?n&&o.slice(-n.length)===n:"~="===t?(" "+o.replace(pe," ")+" ").indexOf(n)>-1:"|="===t?o===n||o.slice(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r,i){var u="nth"!==e.slice(0,3),s="last"!==e.slice(-4),o="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var g,m,p,c,f,v,y=u!==s?"nextSibling":"previousSibling",x=t.parentNode,w=o&&t.nodeName.toLowerCase(),b=!l&&!o,d=!1;if(x){if(u){while(y){c=t;while(c=c[y])if(o?c.nodeName.toLowerCase()===w:1===c.nodeType)return!1;v=y="only"===e&&!v&&"nextSibling"};return!0};if(v=[s?x.firstChild:x.lastChild],s&&b){c=x,p=c[a]||(c[a]={}),m=p[c.uniqueID]||(p[c.uniqueID]={}),g=m[e]||[],f=g[0]===h&&g[1],d=f&&g[2],c=f&&x.childNodes[f];while(c=++f&&c&&c[y]||(d=f=0)||v.pop())if(1===c.nodeType&&++d&&c===t){m[e]=[h,f,d];break}}
+else if(b&&(c=t,p=c[a]||(c[a]={}),m=p[c.uniqueID]||(p[c.uniqueID]={}),g=m[e]||[],f=g[0]===h&&g[1],d=f),d===!1)while(c=++f&&c&&c[y]||(d=f=0)||v.pop())if((o?c.nodeName.toLowerCase()===w:1===c.nodeType)&&++d&&(b&&(p=c[a]||(c[a]={}),m=p[c.uniqueID]||(p[c.uniqueID]={}),m[e]=[h,d]),c===t))break;return d-=i,d===r||d%r===0&&d/r>=0}}},PSEUDO:function(e,n){var o,r=t.pseudos[e]||t.setFilters[e.toLowerCase()]||i.error("unsupported pseudo: "+e);return r[a]?r(n):r.length>1?(o=[e,e,"",n],t.setFilters.hasOwnProperty(e.toLowerCase())?f(function(e,t){var i,o=r(e,n),a=o.length;while(a--)i=T(e,o[a]),e[i]=!(t[i]=o[a])}):function(e){return r(e,0,o)}):r}},pseudos:{not:f(function(e){var t=[],r=[],n=P(e.replace(F,"$1"));return n[a]?f(function(e,t,r,i){var a,s=n(e,null,i,[]),o=e.length;while(o--)(a=s[o])&&(e[o]=!(t[o]=a))}):function(e,i,o){return t[0]=e,n(t,null,o,r),t[0]=null,!r.pop()}}),has:f(function(e){return function(t){return i(e,t).length>0}}),contains:f(function(e){return e=e.replace(g,m),function(t){return(t.textContent||t.innerText||j(t)).indexOf(e)>-1}}),lang:f(function(e){return oe.test(e||"")||i.error("unsupported lang: "+e),e=e.replace(g,m).toLowerCase(),function(t){var n;do if(n=c?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===l},focus:function(e){return e===n.activeElement&&(!n.hasFocus||n.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.nodeType<6)return!1;return!0},parent:function(e){return!t.pseudos.empty(e)},header:function(e){return xe.test(e.nodeName)},input:function(e){return ye.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"))||"text"===t.toLowerCase())},first:E(function(){return[0]}),last:E(function(e,t){return[t-1]}),eq:E(function(e,t,n){return[0>n?n+t:n]}),even:E(function(e,t){for(var n=0;t>n;n+=2)e.push(n);return e}),odd:E(function(e,t){for(var n=1;t>n;n+=2)e.push(n);return e}),lt:E(function(e,t,n){for(var r=0>n?n+t:n;--r>=0;)e.push(r);return e}),gt:E(function(e,t,n){for(var r=0>n?n+t:n;++r<t;)e.push(r);return e})}},t.pseudos.nth=t.pseudos.eq;for(N in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[N]=Te(N);for(N in{submit:!0,reset:!0})t.pseudos[N]=Ce(N);function ue(){};ue.prototype=t.filters=t.pseudos,t.setFilters=new ue,S=i.tokenize=function(e,n){var a,o,u,s,r,l,c,d=te[e+" "];if(d)return n?0:d.slice(0);r=e,l=[],c=t.preFilter;while(r){a&&!(o=he.exec(r))||(o&&(r=r.slice(o[0].length)||r),l.push(u=[])),a=!1,(o=ge.exec(r))&&(a=o.shift(),u.push({value:a,type:o[0].replace(F," ")}),r=r.slice(a.length));for(s in t.filter)!(o=M[s].exec(r))||c[s]&&!(o=c[s](o))||(a=o.shift(),u.push({value:a,type:s,matches:o}),r=r.slice(a.length));if(!a)break};return n?r.length:r?i.error(e):te(e,l).slice(0)};function O(e){for(var t=0,r=e.length,n="";r>t;t++)n+=e[t].value;return n};function Y(e,t,n){var r=t.dir,i=n&&"parentNode"===r,o=le++;return t.first?function(t,n,o){while(t=t[r])if(1===t.nodeType||i)return e(t,n,o)}:function(t,n,s){var u,l,c,d=[h,o];if(s){while(t=t[r])if((1===t.nodeType||i)&&e(t,n,s))return!0}
+else while(t=t[r])if(1===t.nodeType||i){if(c=t[a]||(t[a]={}),l=c[t.uniqueID]||(c[t.uniqueID]={}),(u=l[r])&&u[0]===h&&u[1]===o)return d[2]=u[2];if(l[r]=d,d[2]=e(t,n,s))return!0}}};function J(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 Ee(e,t,n){for(var r=0,o=t.length;o>r;r++)i(e,t[r],n);return n};function R(e,t,n,r,i){for(var a,s=[],o=0,u=e.length,l=null!=t;u>o;o++)(a=e[o])&&(n&&!n(a,r,i)||(s.push(a),l&&t.push(o)));return s};function G(e,t,n,r,i,o){return r&&!r[a]&&(r=G(r)),i&&!i[a]&&(i=G(i,o)),f(function(o,a,s,u){var d,c,f,g=[],h=[],m=a.length,v=o||Ee(t||"*",s.nodeType?[s]:s,[]),p=!e||!o&&t?v:R(v,g,e,s,u),l=n?i||(o?e:m||r)?[]:a:p;if(n&&n(p,l,s,u),r){d=R(l,h),r(d,[],s,u),c=d.length;while(c--)(f=d[c])&&(l[h[c]]=!(p[h[c]]=f))};if(o){if(i||e){if(i){d=[],c=l.length;while(c--)(f=l[c])&&d.push(p[c]=f);i(null,l=[],d,u)};c=l.length;while(c--)(f=l[c])&&(d=i?T(o,f):g[c])>-1&&(o[d]=!(a[d]=f))}}
+else l=R(l===a?l.splice(m,l.length):l),i?i(null,a,l,u):x.apply(a,l)})};function Q(e){for(var s,i,r,u=e.length,l=t.relative[e[0].type],c=l||t.relative[" "],n=l?1:0,d=Y(function(e){return e===s},c,!0),f=Y(function(e){return T(s,e)>-1},c,!0),o=[function(e,t,n){var r=!l&&(n||t!==L)||((s=t).nodeType?d(e,t,n):f(e,t,n));return s=null,r}];u>n;n++)if(i=t.relative[e[n].type])o=[Y(J(o),i)];else{if(i=t.filter[e[n].type].apply(null,e[n].matches),i[a]){for(r=++n;u>r;r++)if(t.relative[e[r].type])break;return G(n>1&&J(o),n>1&&O(e.slice(0,n-1).concat({value:" "===e[n-2].type?"*":""})).replace(F,"$1"),i,r>n&&Q(e.slice(n,r)),u>r&&Q(e=e.slice(r)),u>r&&O(e))};o.push(i)};return J(o)};function Ne(e,r){var o=r.length>0,a=e.length>0,s=function(s,u,l,d,f){var p,w,v,b=0,g="0",T=s&&[],m=[],C=L,E=s||a&&t.find.TAG("*",f),N=h+=null==C?1:Math.random()||.1,k=E.length;for(f&&(L=u===n||u||f);g!==k&&null!=(p=E[g]);g++){if(a&&p){w=0,u||p.ownerDocument===n||(y(p),l=!c);while(v=e[w++])if(v(p,u||n,l)){d.push(p);break};f&&(h=N)};o&&((p=!v&&p)&&b--,s&&T.push(p))};if(b+=g,o&&g!==b){w=0;while(v=r[w++])v(T,m,u,l);if(s){if(b>0)while(g--)T[g]||m[g]||(m[g]=de.call(d));m=R(m)};x.apply(d,m),f&&!s&&m.length>0&&b+r.length>1&&i.uniqueSort(d)};return f&&(h=N,L=C),T};return o?f(s):s};return P=i.compile=function(e,t){var r,i=[],o=[],n=q[e+" "];if(!n){t||(t=S(e)),r=t.length;while(r--)n=Q(t[r]),n[a]?i.push(n):o.push(n);n=q(e,Ne(o,i)),n.selector=e};return n},Z=i.select=function(e,n,r,i){var u,a,s,f,p,d="function"==typeof e&&e,l=!i&&S(e=d.selector||e);if(r=r||[],1===l.length){if(a=l[0]=l[0].slice(0),a.length>2&&"ID"===(s=a[0]).type&&o.getById&&9===n.nodeType&&c&&t.relative[a[1].type]){if(n=(t.find.ID(s.matches[0].replace(g,m),n)||[])[0],!n)return r;d&&(n=n.parentNode),e=e.slice(a.shift().value.length)};u=M.needsContext.test(e)?0:a.length;while(u--){if(s=a[u],t.relative[f=s.type])break;if((p=t.find[f])&&(i=p(s.matches[0].replace(g,m),z.test(a[0].type)&&V(n.parentNode)||n))){if(a.splice(u,1),e=i.length&&O(a),!e)return x.apply(r,i),r;break}}};return(d||P(e,l))(i,n,!c,r,!n||z.test(e)&&V(n.parentNode)||n),r},o.sortStable=a.split("").sort(B).join("")===a,o.detectDuplicates=!!k,y(),o.sortDetached=p(function(e){return 1&e.compareDocumentPosition(n.createElement("div"))}),p(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||U("type|href|height|width",function(e,t,n){return n?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),o.attributes&&p(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||U("value",function(e,t,n){return n||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),p(function(e){return null==e.getAttribute("disabled")})||U(W,function(e,t,n){var r;return n?void 0:e[t]===!0?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),i}(t);e.find=N,e.expr=N.selectors,e.expr[":"]=e.expr.pseudos,e.uniqueSort=e.unique=N.uniqueSort,e.text=N.getText,e.isXMLDoc=N.isXML,e.contains=N.contains;var E=function(t,n,r){var i=[],o=void 0!==r;while((t=t[n])&&9!==t.nodeType)if(1===t.nodeType){if(o&&e(t).is(r))break;i.push(t)};return i},Re=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},Pe=e.expr.match.needsContext,Be=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,sn=/^.[^:#\[\.,]*$/;function se(t,n,r){if(e.isFunction(n))return e.grep(t,function(e,t){return!!n.call(e,t,e)!==r});if(n.nodeType)return e.grep(t,function(e){return e===n!==r});if("string"==typeof n){if(sn.test(n))return e.filter(n,t,r);n=e.filter(n,t)};return e.grep(t,function(t){return e.inArray(t,n)>-1!==r})};e.filter=function(t,n,r){var i=n[0];return r&&(t=":not("+t+")"),1===n.length&&1===i.nodeType?e.find.matchesSelector(i,t)?[i]:[]:e.find.matches(t,e.grep(n,function(e){return 1===e.nodeType}))},e.fn.extend({find:function(t){var n,r=[],i=this,o=i.length;if("string"!=typeof t)return this.pushStack(e(t).filter(function(){for(n=0;o>n;n++)if(e.contains(i[n],this))return!0}));for(n=0;o>n;n++)e.find(t,i[n],r);return r=this.pushStack(o>1?e.unique(r):r),r.selector=this.selector?this.selector+" "+t:t,r},filter:function(e){return this.pushStack(se(this,e||[],!1))},not:function(e){return this.pushStack(se(this,e||[],!0))},is:function(t){return!!se(this,"string"==typeof t&&Pe.test(t)?e(t):t||[],!1).length}});var ie,on=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,an=e.fn.init=function(t,n,r){var o,a;if(!t)return this;if(r=r||ie,"string"==typeof t){if(o="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&t.length>=3?[null,t,null]:on.exec(t),!o||!o[1]&&n)return!n||n.jquery?(n||r).find(t):this.constructor(n).find(t);if(o[1]){if(n=n instanceof e?n[0]:n,e.merge(this,e.parseHTML(o[1],n&&n.nodeType?n.ownerDocument||n:i,!0)),Be.test(o[1])&&e.isPlainObject(n))for(o in n)e.isFunction(this[o])?this[o](n[o]):this.attr(o,n[o]);return this};if(a=i.getElementById(o[2]),a&&a.parentNode){if(a.id!==o[2])return ie.find(t);this.length=1,this[0]=a};return this.context=i,this.selector=t,this};return t.nodeType?(this.context=this[0]=t,this.length=1,this):e.isFunction(t)?"undefined"!=typeof r.ready?r.ready(t):t(e):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),e.makeArray(t,this))};an.prototype=e.fn,ie=e(i);var nn=/^(?:parents|prev(?:Until|All))/,rn={children:!0,contents:!0,next:!0,prev:!0};e.fn.extend({has:function(t){var n,r=e(t,this),i=r.length;return this.filter(function(){for(n=0;i>n;n++)if(e.contains(this,r[n]))return!0})},closest:function(t,n){for(var r,o=0,s=this.length,i=[],a=Pe.test(t)||"string"!=typeof t?e(t,n||this.context):0;s>o;o++)for(r=this[o];r&&r!==n;r=r.parentNode)if(r.nodeType<11&&(a?a.index(r)>-1:1===r.nodeType&&e.find.matchesSelector(r,t))){i.push(r);break};return this.pushStack(i.length>1?e.uniqueSort(i):i)},index:function(t){return t?"string"==typeof t?e.inArray(this[0],e(t)):e.inArray(t.jquery?t[0]:t,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,n){return this.pushStack(e.uniqueSort(e.merge(this.get(),e(t,n))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}});function Xe(e,t){do e=e[t];while(e&&1!==e.nodeType);return e};e.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return E(e,"parentNode")},parentsUntil:function(e,t,n){return E(e,"parentNode",n)},next:function(e){return Xe(e,"nextSibling")},prev:function(e){return Xe(e,"previousSibling")},nextAll:function(e){return E(e,"nextSibling")},prevAll:function(e){return E(e,"previousSibling")},nextUntil:function(e,t,n){return E(e,"nextSibling",n)},prevUntil:function(e,t,n){return E(e,"previousSibling",n)},siblings:function(e){return Re((e.parentNode||{}).firstChild,e)},children:function(e){return Re(e.firstChild)},contents:function(t){return e.nodeName(t,"iframe")?t.contentDocument||t.contentWindow.document:e.merge([],t.childNodes)}},function(t,n){e.fn[t]=function(r,i){var o=e.map(this,n,r);return"Until"!==t.slice(-5)&&(i=r),i&&"string"==typeof i&&(o=e.filter(i,o)),this.length>1&&(rn[t]||(o=e.uniqueSort(o)),nn.test(t)&&(o=o.reverse())),this.pushStack(o)}});var l=/\S+/g;function pn(t){var n={};return e.each(t.match(l)||[],function(e,t){n[t]=!0}),n};e.Callbacks=function(t){t="string"==typeof t?pn(t):e.extend({},t);var a,r,l,o,n=[],s=[],i=-1,c=function(){for(o=t.once,l=a=!0;s.length;i=-1){r=s.shift();while(++i<n.length)n[i].apply(r[0],r[1])===!1&&t.stopOnFalse&&(i=n.length,r=!1)};t.memory||(r=!1),a=!1,o&&(n=r?[]:"")},u={add:function(){return n&&(r&&!a&&(i=n.length-1,s.push(r)),function o(r){e.each(r,function(r,i){e.isFunction(i)?t.unique&&u.has(i)||n.push(i):i&&i.length&&"string"!==e.type(i)&&o(i)})}(arguments),r&&!a&&c()),this},remove:function(){return e.each(arguments,function(t,r){var o;while((o=e.inArray(r,n,o))>-1)n.splice(o,1),i>=o&&i--}),this},has:function(t){return t?e.inArray(t,n)>-1:n.length>0},empty:function(){return n&&(n=[]),this},disable:function(){return o=s=[],n=r="",this},disabled:function(){return!n},lock:function(){return o=!0,r||u.disable(),this},locked:function(){return!!o},fireWith:function(e,t){return o||(t=t||[],t=[e,t.slice?t.slice():t],s.push(t),a||c()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!l}};return u},e.extend({Deferred:function(t){var i=[["resolve","done",e.Callbacks("once memory"),"resolved"],["reject","fail",e.Callbacks("once memory"),"rejected"],["notify","progress",e.Callbacks("memory")]],o="pending",r={state:function(){return o},always:function(){return n.done(arguments).fail(arguments),this},then:function(){var t=arguments;return e.Deferred(function(o){e.each(i,function(i,a){var s=e.isFunction(t[i])&&t[i];n[a[1]](function(){var t=s&&s.apply(this,arguments);t&&e.isFunction(t.promise)?t.promise().progress(o.notify).done(o.resolve).fail(o.reject):o[a[0]+"With"](this===r?o.promise():this,s?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?e.extend(t,r):r}},n={};return r.pipe=r.then,e.each(i,function(e,t){var a=t[2],s=t[3];r[t[1]]=a.add,s&&a.add(function(){o=s},i[1^e][2].disable,i[2][2].lock),n[t[0]]=function(){return n[t[0]+"With"](this===n?r:this,arguments),this},n[t[0]+"With"]=a.fireWith}),r.promise(n),t&&t.call(n,n),n},when:function(t){var n=0,i=h.call(arguments),r=i.length,a=1!==r||t&&e.isFunction(t.promise)?r:0,o=1===a?t:e.Deferred(),l=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):--a||o.resolveWith(t,n)}},s,c,u;if(r>1)for(s=new Array(r),c=new Array(r),u=new Array(r);r>n;n++)i[n]&&e.isFunction(i[n].promise)?i[n].promise().progress(l(n,c,s)).done(l(n,u,i)).fail(o.reject):--a;return a||o.resolveWith(u,i),o.promise()}});var O;e.fn.ready=function(t){return e.ready.promise().done(t),this},e.extend({isReady:!1,readyWait:1,holdReady:function(t){t?e.readyWait++:e.ready(!0)},ready:function(t){(t===!0?--e.readyWait:e.isReady)||(e.isReady=!0,t!==!0&&--e.readyWait>0||(O.resolveWith(i,[e]),e.fn.triggerHandler&&(e(i).triggerHandler("ready"),e(i).off("ready"))))}});function Ue(){i.addEventListener?(i.removeEventListener("DOMContentLoaded",g),t.removeEventListener("load",g)):(i.detachEvent("onreadystatechange",g),t.detachEvent("onload",g))};function g(){(i.addEventListener||"load"===t.event.type||"complete"===i.readyState)&&(Ue(),e.ready())};e.ready.promise=function(n){if(!O)if(O=e.Deferred(),"complete"===i.readyState||"loading"!==i.readyState&&!i.documentElement.doScroll)t.setTimeout(e.ready);else if(i.addEventListener)i.addEventListener("DOMContentLoaded",g),t.addEventListener("load",g);else{i.attachEvent("onreadystatechange",g),t.attachEvent("onload",g);var o=!1;try{o=null==t.frameElement&&i.documentElement}catch(r){};o&&o.doScroll&&!function a(){if(!e.isReady){try{o.doScroll("left")}catch(n){return t.setTimeout(a,50)};Ue(),e.ready()}}()};return O.promise(n)},e.ready.promise();var Oe;for(Oe in e(r))break;r.ownFirst="0"===Oe,r.inlineBlockNeedsLayout=!1,e(function(){var o,t,e,n;e=i.getElementsByTagName("body")[0],e&&e.style&&(t=i.createElement("div"),n=i.createElement("div"),n.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",e.appendChild(n).appendChild(t),"undefined"!=typeof t.style.zoom&&(t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",r.inlineBlockNeedsLayout=o=3===t.offsetWidth,o&&(e.style.zoom=1)),e.removeChild(n))}),function(){var t=i.createElement("div");r.deleteExpando=!0;try{delete t.test}catch(e){r.deleteExpando=!1};t=null}();var L=function(t){var n=e.noData[(t.nodeName+" ").toLowerCase()],r=+t.nodeType||1;return 1!==r&&9!==r?!1:!n||n!==!0&&t.getAttribute("classid")===n},en=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,tn=/([A-Z])/g;function Ve(t,n,r){if(void 0===r&&1===t.nodeType){var o="data-"+n.replace(tn,"-$1").toLowerCase();if(r=t.getAttribute(o),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:en.test(r)?e.parseJSON(r):r}catch(i){};e.data(t,n,r)}
+else r=void 0};return r};function ue(t){var n;for(n in t)if(("data"!==n||!e.isEmptyObject(t[n]))&&"toJSON"!==n)return!1;return!0};function Ye(t,n,r,i){if(L(t)){var u,a,l=e.expando,c=t.nodeType,s=c?e.cache:t,o=c?t[l]:t[l]&&l;if(o&&s[o]&&(i||s[o].data)||void 0!==r||"string"!=typeof n)return o||(o=c?t[l]=d.pop()||e.guid++:l),s[o]||(s[o]=c?{}:{toJSON:e.noop}),"object"!=typeof n&&"function"!=typeof n||(i?s[o]=e.extend(s[o],n):s[o].data=e.extend(s[o].data,n)),a=s[o],i||(a.data||(a.data={}),a=a.data),void 0!==r&&(a[e.camelCase(n)]=r),"string"==typeof n?(u=a[n],null==u&&(u=a[e.camelCase(n)])):u=a,u}};function Je(t,n,i){if(L(t)){var s,u,l=t.nodeType,o=l?e.cache:t,a=l?t[e.expando]:e.expando;if(o[a]){if(n&&(s=i?o[a]:o[a].data)){e.isArray(n)?n=n.concat(e.map(n,e.camelCase)):n in s?n=[n]:(n=e.camelCase(n),n=n in s?[n]:n.split(" ")),u=n.length;while(u--)delete s[n[u]];if(i?!ue(s):!e.isEmptyObject(s))return}(i||(delete o[a].data,ue(o[a])))&&(l?e.cleanData([t],!0):r.deleteExpando||o!=o.window?delete o[a]:o[a]=void 0)}}};e.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(t){return t=t.nodeType?e.cache[t[e.expando]]:t[e.expando],!!t&&!ue(t)},data:function(e,t,n){return Ye(e,t,n)},removeData:function(e,t){return Je(e,t)},_data:function(e,t,n){return Ye(e,t,n,!0)},_removeData:function(e,t){return Je(e,t,!0)}}),e.fn.extend({data:function(t,n){var o,i,a,r=this[0],s=r&&r.attributes;if(void 0===t){if(this.length&&(a=e.data(r),1===r.nodeType&&!e._data(r,"parsedAttrs"))){o=s.length;while(o--)s[o]&&(i=s[o].name,0===i.indexOf("data-")&&(i=e.camelCase(i.slice(5)),Ve(r,i,a[i])));e._data(r,"parsedAttrs",!0)};return a};return"object"==typeof t?this.each(function(){e.data(this,t)}):arguments.length>1?this.each(function(){e.data(this,t,n)}):r?Ve(r,t,e.data(r,t)):void 0},removeData:function(t){return this.each(function(){e.removeData(this,t)})}}),e.extend({queue:function(t,n,r){var i;return t?(n=(n||"fx")+"queue",i=e._data(t,n),r&&(!i||e.isArray(r)?i=e._data(t,n,e.makeArray(r)):i.push(r)),i||[]):void 0},dequeue:function(t,n){n=n||"fx";var r=e.queue(t,n),a=r.length,i=r.shift(),o=e._queueHooks(t,n),s=function(){e.dequeue(t,n)};"inprogress"===i&&(i=r.shift(),a--),i&&("fx"===n&&r.unshift("inprogress"),delete o.stop,i.call(t,s,o)),!a&&o&&o.empty.fire()},_queueHooks:function(t,n){var r=n+"queueHooks";return e._data(t,r)||e._data(t,r,{empty:e.Callbacks("once memory").add(function(){e._removeData(t,n+"queue"),e._removeData(t,r)})})}}),e.fn.extend({queue:function(t,n){var r=2;return"string"!=typeof t&&(n=t,t="fx",r--),arguments.length<r?e.queue(this[0],t):void 0===n?this:this.each(function(){var r=e.queue(this,t,n);e._queueHooks(this,t),"fx"===t&&"inprogress"!==r[0]&&e.dequeue(this,t)})},dequeue:function(t){return this.each(function(){e.dequeue(this,t)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(t,n){var r,o=1,a=e.Deferred(),i=this,s=this.length,u=function(){--o||a.resolveWith(i,[i])};"string"!=typeof t&&(n=t,t=void 0),t=t||"fx";while(s--)r=e._data(i[s],t+"queueHooks"),r&&r.empty&&(o++,r.empty.add(u));return u(),a.promise(n)}}),function(){var e;r.shrinkWrapBlocks=function(){if(null!=e)return e;e=!1;var t,n,r;return n=i.getElementsByTagName("body")[0],n&&n.style?(t=i.createElement("div"),r=i.createElement("div"),r.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(r).appendChild(t),"undefined"!=typeof t.style.zoom&&(t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",t.appendChild(i.createElement("div")).style.width="5px",e=3!==t.offsetWidth),n.removeChild(r),e):void 0}}();var ne=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,re=new RegExp("^(?:([+-])=|)("+ne+")([a-z%]*)$","i"),y=["Top","Right","Bottom","Left"],j=function(t,n){return t=n||t,"none"===e.css(t,"display")||!e.contains(t.ownerDocument,t)};function Ge(t,n,r,i){var l,a=1,d=20,c=i?function(){return i.cur()}:function(){return e.css(t,n,"")},u=c(),s=r&&r[3]||(e.cssNumber[n]?"":"px"),o=(e.cssNumber[n]||"px"!==s&&+u)&&re.exec(e.css(t,n));if(o&&o[3]!==s){s=s||o[3],r=r||[],o=+u||1;do a=a||".5",o/=a,e.style(t,n,o+s);while(a!==(a=c()/u)&&1!==a&&--d)};return r&&(o=+o||+u||0,l=r[1]?o+(r[1]+1)*r[2]:+r[2],i&&(i.unit=s,i.start=o,i.end=l)),l};var p=function(t,n,r,i,o,s,u){var a=0,c=t.length,l=null==r;if("object"===e.type(r)){o=!0;for(a in r)p(t,n,a,r[a],!0,s,u)}
+else if(void 0!==i&&(o=!0,e.isFunction(i)||(u=!0),l&&(u?(n.call(t,i),n=null):(l=n,n=function(t,n,r){return l.call(e(t),r)})),n))for(;c>a;a++)n(t[a],r,u?i:i.call(t[a],a,n(t[a],r)));return o?t:l?n.call(t):c?n(t[0],r):s},ee=/^(?:checkbox|radio)$/i,qe=/<([\w:-]+)/,Fe=/^$|\/(?:java|ecma)script/i,te=/^\s+/,Me="abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video";function Qe(e){var n=Me.split("|"),t=e.createDocumentFragment();if(t.createElement)while(n.length)t.createElement(n.pop());return t};!function(){var t=i.createElement("div"),o=i.createDocumentFragment(),n=i.createElement("input");t.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",r.leadingWhitespace=3===t.firstChild.nodeType,r.tbody=!t.getElementsByTagName("tbody").length,r.htmlSerialize=!!t.getElementsByTagName("link").length,r.html5Clone="<:nav></:nav>"!==i.createElement("nav").cloneNode(!0).outerHTML,n.type="checkbox",n.checked=!0,o.appendChild(n),r.appendChecked=n.checked,t.innerHTML="<textarea>x</textarea>",r.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,o.appendChild(t),n=i.createElement("input"),n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),r.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,r.noCloneEvent=!!t.addEventListener,t[e.expando]=1,r.attributes=!t.getAttribute(e.expando)}();var s={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:r.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]};s.optgroup=s.option,s.tbody=s.tfoot=s.colgroup=s.caption=s.thead,s.th=s.td;function o(t,n){var a,i,s=0,r="undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(n||"*"):"undefined"!=typeof t.querySelectorAll?t.querySelectorAll(n||"*"):void 0;if(!r)for(r=[],a=t.childNodes||t;null!=(i=a[s]);s++)!n||e.nodeName(i,n)?r.push(i):e.merge(r,o(i,n));return void 0===n||n&&e.nodeName(t,n)?e.merge([t],r):r};function le(t,n){for(var i,r=0;null!=(i=t[r]);r++)e._data(i,"globalEval",!n||e._data(n[r],"globalEval"))};var Zt=/<|&#?\w+;/,He=/<tbody/i;function hn(e){ee.test(e.type)&&(e.defaultChecked=e.checked)};function Ke(t,n,i,a,c){for(var d,u,y,l,m,v,p,x=t.length,h=Qe(n),f=[],g=0;x>g;g++)if(u=t[g],u||0===u)if("object"===e.type(u))e.merge(f,u.nodeType?[u]:u);else if(Zt.test(u)){l=l||h.appendChild(n.createElement("div")),m=(qe.exec(u)||["",""])[1].toLowerCase(),p=s[m]||s._default,l.innerHTML=p[1]+e.htmlPrefilter(u)+p[2],d=p[0];while(d--)l=l.lastChild;if(!r.leadingWhitespace&&te.test(u)&&f.push(n.createTextNode(te.exec(u)[0])),!r.tbody){u="table"!==m||He.test(u)?"<table>"!==p[1]||He.test(u)?0:l:l.firstChild,d=u&&u.childNodes.length;while(d--)e.nodeName(v=u.childNodes[d],"tbody")&&!v.childNodes.length&&u.removeChild(v)};e.merge(f,l.childNodes),l.textContent="";while(l.firstChild)l.removeChild(l.firstChild);l=h.lastChild}
+else f.push(n.createTextNode(u));l&&h.removeChild(l),r.appendChecked||e.grep(o(f,"input"),hn),g=0;while(u=f[g++])if(a&&e.inArray(u,a)>-1)c&&c.push(u);else if(y=e.contains(u.ownerDocument,u),l=o(h.appendChild(u),"script"),y&&le(l),i){d=0;while(u=l[d++])Fe.test(u.type||"")&&i.push(u)};return l=null,h};!function(){var e,n,o=i.createElement("div");for(e in{submit:!0,change:!0,focusin:!0})n="on"+e,(r[e]=n in t)||(o.setAttribute(n,"t"),r[e]=o.attributes[n].expando===!1);o=null}();var Z=/^(?:input|select|textarea)$/i,Qt=/^key/,Kt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,je=/^(?:focusinfocus|focusoutblur)$/,Le=/^([^.]*)(?:\.(.+)|)/;function P(){return!0};function S(){return!1};function Ze(){try{return i.activeElement}catch(e){}};function ce(t,n,r,i,o,a){var s,u;if("object"==typeof n){"string"!=typeof r&&(i=i||r,r=void 0);for(u in n)ce(t,u,r,i,n[u],a);return t};if(null==i&&null==o?(o=r,i=r=void 0):null==o&&("string"==typeof r?(o=i,i=void 0):(o=i,i=r,r=void 0)),o===!1)o=S;else if(!o)return t;return 1===a&&(s=o,o=function(t){return e().off(t),s.apply(this,arguments)},o.guid=s.guid||(s.guid=e.guid++)),t.each(function(){e.event.add(this,n,o,i,r)})};e.event={global:{},add:function(t,n,r,i,o){var g,p,m,h,s,u,c,d,a,v,y,f=e._data(t);if(f){r.handler&&(h=r,r=h.handler,o=h.selector),r.guid||(r.guid=e.guid++),(p=f.events)||(p=f.events={}),(u=f.handle)||(u=f.handle=function(t){return"undefined"==typeof e||t&&e.event.triggered===t.type?void 0:e.event.dispatch.apply(u.elem,arguments)},u.elem=t),n=(n||"").match(l)||[""],m=n.length;while(m--)g=Le.exec(n[m])||[],a=y=g[1],v=(g[2]||"").split(".").sort(),a&&(s=e.event.special[a]||{},a=(o?s.delegateType:s.bindType)||a,s=e.event.special[a]||{},c=e.extend({type:a,origType:y,data:i,handler:r,guid:r.guid,selector:o,needsContext:o&&e.expr.match.needsContext.test(o),namespace:v.join(".")},h),(d=p[a])||(d=p[a]=[],d.delegateCount=0,s.setup&&s.setup.call(t,i,v,u)!==!1||(t.addEventListener?t.addEventListener(a,u,!1):t.attachEvent&&t.attachEvent("on"+a,u))),s.add&&(s.add.call(t,c),c.handler.guid||(c.handler.guid=r.guid)),o?d.splice(d.delegateCount++,0,c):d.push(c),e.event.global[a]=!0);t=null}},remove:function(t,n,r,i,o){var h,s,u,v,g,f,c,d,a,m,y,p=e.hasData(t)&&e._data(t);if(p&&(f=p.events)){n=(n||"").match(l)||[""],g=n.length;while(g--)if(u=Le.exec(n[g])||[],a=y=u[1],m=(u[2]||"").split(".").sort(),a){c=e.event.special[a]||{},a=(i?c.delegateType:c.bindType)||a,d=f[a]||[],u=u[2]&&new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"),v=h=d.length;while(h--)s=d[h],!o&&y!==s.origType||r&&r.guid!==s.guid||u&&!u.test(s.namespace)||i&&i!==s.selector&&("**"!==i||!s.selector)||(d.splice(h,1),s.selector&&d.delegateCount--,c.remove&&c.remove.call(t,s));v&&!d.length&&(c.teardown&&c.teardown.call(t,m,p.handle)!==!1||e.removeEvent(t,a,p.handle),delete f[a])}
+else for(a in f)e.event.remove(t,a+n[g],r,i,!0);e.isEmptyObject(f)&&(delete p.handle,e._removeData(t,"events"))}},trigger:function(n,r,o,a){var f,p,u,m,d,c,v,g=[o||i],l=k.call(n,"type")?n.type:n,h=k.call(n,"namespace")?n.namespace.split("."):[];if(u=c=o=o||i,3!==o.nodeType&&8!==o.nodeType&&!je.test(l+e.event.triggered)&&(l.indexOf(".")>-1&&(h=l.split("."),l=h.shift(),h.sort()),p=l.indexOf(":")<0&&"on"+l,n=n[e.expando]?n:new e.Event(l,"object"==typeof n&&n),n.isTrigger=a?2:3,n.namespace=h.join("."),n.rnamespace=n.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,n.result=void 0,n.target||(n.target=o),r=null==r?[n]:e.makeArray(r,[n]),d=e.event.special[l]||{},a||!d.trigger||d.trigger.apply(o,r)!==!1)){if(!a&&!d.noBubble&&!e.isWindow(o)){for(m=d.delegateType||l,je.test(m+l)||(u=u.parentNode);u;u=u.parentNode)g.push(u),c=u;c===(o.ownerDocument||i)&&g.push(c.defaultView||c.parentWindow||t)};v=0;while((u=g[v++])&&!n.isPropagationStopped())n.type=v>1?m:d.bindType||l,f=(e._data(u,"events")||{})[n.type]&&e._data(u,"handle"),f&&f.apply(u,r),f=p&&u[p],f&&f.apply&&L(u)&&(n.result=f.apply(u,r),n.result===!1&&n.preventDefault());if(n.type=l,!a&&!n.isDefaultPrevented()&&(!d._default||d._default.apply(g.pop(),r)===!1)&&L(o)&&p&&o[l]&&!e.isWindow(o)){c=o[p],c&&(o[p]=null),e.event.triggered=l;try{o[l]()}catch(s){};e.event.triggered=void 0,c&&(o[p]=c)};return n.result}},dispatch:function(t){t=e.event.fix(t);var a,s,o,r,n,u=[],l=h.call(arguments),c=(e._data(this,"events")||{})[t.type]||[],i=e.event.special[t.type]||{};if(l[0]=t,t.delegateTarget=this,!i.preDispatch||i.preDispatch.call(this,t)!==!1){u=e.event.handlers.call(this,t,c),a=0;while((r=u[a++])&&!t.isPropagationStopped()){t.currentTarget=r.elem,s=0;while((n=r.handlers[s++])&&!t.isImmediatePropagationStopped())t.rnamespace&&!t.rnamespace.test(n.namespace)||(t.handleObj=n,t.data=n.data,o=((e.event.special[n.origType]||{}).handle||n.handler).apply(r.elem,l),void 0!==o&&(t.result=o)===!1&&(t.preventDefault(),t.stopPropagation()))};return i.postDispatch&&i.postDispatch.call(this,t),t.result}},handlers:function(t,n){var a,i,o,s,l=[],u=n.delegateCount,r=t.target;if(u&&r.nodeType&&("click"!==t.type||isNaN(t.button)||t.button<1))for(;r!=this;r=r.parentNode||this)if(1===r.nodeType&&(r.disabled!==!0||"click"!==t.type)){for(i=[],a=0;u>a;a++)s=n[a],o=s.selector+" ",void 0===i[o]&&(i[o]=s.needsContext?e(o,this).index(r)>-1:e.find(o,this,null,[r]).length),i[o]&&i.push(s);i.length&&l.push({elem:r,handlers:i})};return u<n.length&&l.push({elem:this,handlers:n.slice(u)}),l},fix:function(t){if(t[e.expando])return t;var a,s,u,r=t.type,o=t,n=this.fixHooks[r];n||(this.fixHooks[r]=n=Kt.test(r)?this.mouseHooks:Qt.test(r)?this.keyHooks:{}),u=n.props?this.props.concat(n.props):this.props,t=new e.Event(o),a=u.length;while(a--)s=u[a],t[s]=o[s];return t.target||(t.target=o.srcElement||i),3===t.target.nodeType&&(t.target=t.target.parentNode),t.metaKey=!!t.metaKey,n.filter?n.filter(t,o):t},props:"altKey bubbles cancelable ctrlKey currentTarget detail 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,t){var n,a,r,o=t.button,s=t.fromElement;return null==e.pageX&&null!=t.clientX&&(a=e.target.ownerDocument||i,r=a.documentElement,n=a.body,e.pageX=t.clientX+(r&&r.scrollLeft||n&&n.scrollLeft||0)-(r&&r.clientLeft||n&&n.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||n&&n.scrollTop||0)-(r&&r.clientTop||n&&n.clientTop||0)),!e.relatedTarget&&s&&(e.relatedTarget=s===e.target?t.toElement:s),e.which||void 0===o||(e.which=1&o?1:2&o?3:4&o?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==Ze()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){return this===Ze()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return e.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0},_default:function(t){return e.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(t,n,r){var i=e.extend(new e.Event,r,{type:t,isSimulated:!0});e.event.trigger(i,null,n),i.isDefaultPrevented()&&r.preventDefault()}},e.removeEvent=i.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)}:function(e,t,n){var r="on"+t;e.detachEvent&&("undefined"==typeof e[r]&&(e[r]=null),e.detachEvent(r,n))},e.Event=function(t,n){return this instanceof e.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&t.returnValue===!1?P:S):this.type=t,n&&e.extend(this,n),this.timeStamp=t&&t.timeStamp||e.now(),void(this[e.expando]=!0)):new e.Event(t,n)},e.Event.prototype={constructor:e.Event,isDefaultPrevented:S,isPropagationStopped:S,isImmediatePropagationStopped:S,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=P,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=P,e&&!this.isSimulated&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=P,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}},e.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,n){e.event.special[t]={delegateType:n,bindType:n,handle:function(t){var i,o=this,r=t.relatedTarget,a=t.handleObj;return r&&(r===o||e.contains(o,r))||(t.type=a.origType,i=a.handler.apply(this,arguments),t.type=n),i}}}),r.submit||(e.event.special.submit={setup:function(){return e.nodeName(this,"form")?!1:void e.event.add(this,"click._submit keypress._submit",function(t){var r=t.target,n=e.nodeName(r,"input")||e.nodeName(r,"button")?e.prop(r,"form"):void 0;n&&!e._data(n,"submit")&&(e.event.add(n,"submit._submit",function(e){e._submitBubble=!0}),e._data(n,"submit",!0))})},postDispatch:function(t){t._submitBubble&&(delete t._submitBubble,this.parentNode&&!t.isTrigger&&e.event.simulate("submit",this.parentNode,t))},teardown:function(){return e.nodeName(this,"form")?!1:void e.event.remove(this,"._submit")}}),r.change||(e.event.special.change={setup:function(){return Z.test(this.nodeName)?("checkbox"!==this.type&&"radio"!==this.type||(e.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._justChanged=!0)}),e.event.add(this,"click._change",function(t){this._justChanged&&!t.isTrigger&&(this._justChanged=!1),e.event.simulate("change",this,t)})),!1):void e.event.add(this,"beforeactivate._change",function(t){var n=t.target;Z.test(n.nodeName)&&!e._data(n,"change")&&(e.event.add(n,"change._change",function(t){!this.parentNode||t.isSimulated||t.isTrigger||e.event.simulate("change",this.parentNode,t)}),e._data(n,"change",!0))})},handle:function(e){var t=e.target;return this!==t||e.isSimulated||e.isTrigger||"radio"!==t.type&&"checkbox"!==t.type?e.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return e.event.remove(this,"._change"),!Z.test(this.nodeName)}}),r.focusin||e.each({focus:"focusin",blur:"focusout"},function(t,n){var r=function(t){e.event.simulate(n,t.target,e.event.fix(t))};e.event.special[n]={setup:function(){var i=this.ownerDocument||this,o=e._data(i,n);o||i.addEventListener(t,r,!0),e._data(i,n,(o||0)+1)},teardown:function(){var i=this.ownerDocument||this,o=e._data(i,n)-1;o?e._data(i,n,o):(i.removeEventListener(t,r,!0),e._removeData(i,n))}}}),e.fn.extend({on:function(e,t,n,r){return ce(this,e,t,n,r)},one:function(e,t,n,r){return ce(this,e,t,n,r,1)},off:function(t,n,r){var i,o;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,e(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof t){for(o in t)this.off(o,n,t[o]);return this};return n!==!1&&"function"!=typeof n||(r=n,n=void 0),r===!1&&(r=S),this.each(function(){e.event.remove(this,t,r,n)})},trigger:function(t,n){return this.each(function(){e.event.trigger(t,n,this)})},triggerHandler:function(t,n){var r=this[0];return r?e.event.trigger(t,n,r,!0):void 0}});var zt=/ jQuery\d+="(?:null|\d+)"/g,De=new RegExp("<(?:"+Me+")[\\s/>]","i"),Xt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Ut=/<script|<style|<link/i,Vt=/checked\s*(?:[^=]|=\s*.checked.)/i,Yt=/^true\/(.*)/,Jt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Gt=Qe(i),K=Gt.appendChild(i.createElement("div"));function et(t,n){return e.nodeName(t,"table")&&e.nodeName(11!==n.nodeType?n:n.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t};function tt(t){return t.type=(null!==e.find.attr(t,"type"))+"/"+t.type,t};function nt(e){var t=Yt.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e};function rt(t,n){if(1===n.nodeType&&e.hasData(t)){var i,o,s,u=e._data(t),r=e._data(n,u),a=u.events;if(a){delete r.handle,r.events={};for(i in a)for(o=0,s=a[i].length;s>o;o++)e.event.add(n,i,a[i][o])};r.data&&(r.data=e.extend({},r.data))}};function gn(t,n){var i,a,o;if(1===n.nodeType){if(i=n.nodeName.toLowerCase(),!r.noCloneEvent&&n[e.expando]){o=e._data(n);for(a in o.events)e.removeEvent(n,a,o.handle);n.removeAttribute(e.expando)};"script"===i&&n.text!==t.text?(tt(n).text=t.text,nt(n)):"object"===i?(n.parentNode&&(n.outerHTML=t.outerHTML),r.html5Clone&&t.innerHTML&&!e.trim(n.innerHTML)&&(n.innerHTML=t.innerHTML)):"input"===i&&ee.test(t.type)?(n.defaultChecked=n.checked=t.checked,n.value!==t.value&&(n.value=t.value)):"option"===i?n.defaultSelected=n.selected=t.defaultSelected:"input"!==i&&"textarea"!==i||(n.defaultValue=t.defaultValue)}};function x(t,n,i,a){n=We.apply([],n);var d,s,f,l,g,c,u=0,p=t.length,v=p-1,h=n[0],m=e.isFunction(h);if(m||p>1&&"string"==typeof h&&!r.checkClone&&Vt.test(h))return t.each(function(e){var r=t.eq(e);m&&(n[0]=h.call(this,e,r.html())),x(r,n,i,a)});if(p&&(c=Ke(n,t[0].ownerDocument,!1,t,a),d=c.firstChild,1===c.childNodes.length&&(c=d),d||a)){for(l=e.map(o(c,"script"),tt),f=l.length;p>u;u++)s=c,u!==v&&(s=e.clone(s,!0,!0),f&&e.merge(l,o(s,"script"))),i.call(t[u],s,u);if(f)for(g=l[l.length-1].ownerDocument,e.map(l,nt),u=0;f>u;u++)s=l[u],Fe.test(s.type||"")&&!e._data(s,"globalEval")&&e.contains(g,s)&&(s.src?e._evalUrl&&e._evalUrl(s.src):e.globalEval((s.text||s.textContent||s.innerHTML||"").replace(Jt,"")));c=d=null};return t};function it(t,n,r){for(var i,s=n?e.filter(n,t):t,a=0;null!=(i=s[a]);a++)r||1!==i.nodeType||e.cleanData(o(i)),i.parentNode&&(r&&e.contains(i.ownerDocument,i)&&le(o(i,"script")),i.parentNode.removeChild(i));return t};e.extend({htmlPrefilter:function(e){return e.replace(Xt,"<$1></$2>")},clone:function(t,n,i){var a,c,u,s,l,d=e.contains(t.ownerDocument,t);if(r.html5Clone||e.isXMLDoc(t)||!De.test("<"+t.nodeName+">")?u=t.cloneNode(!0):(K.innerHTML=t.outerHTML,K.removeChild(u=K.firstChild)),!(r.noCloneEvent&&r.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||e.isXMLDoc(t)))for(a=o(u),l=o(t),s=0;null!=(c=l[s]);++s)a[s]&&gn(c,a[s]);if(n)if(i)for(l=l||o(t),a=a||o(u),s=0;null!=(c=l[s]);s++)rt(c,a[s]);else rt(t,u);return a=o(u,"script"),a.length>0&&le(a,!d&&o(t,"script")),a=l=c=null,u},cleanData:function(t,n){for(var i,a,o,s,c=0,u=e.expando,l=e.cache,f=r.attributes,p=e.event.special;null!=(i=t[c]);c++)if((n||L(i))&&(o=i[u],s=o&&l[o])){if(s.events)for(a in s.events)p[a]?e.event.remove(i,a):e.removeEvent(i,a,s.handle);l[o]&&(delete l[o],f||"undefined"==typeof i.removeAttribute?i[u]=void 0:i.removeAttribute(u),d.push(o))}}}),e.fn.extend({domManip:x,detach:function(e){return it(this,e,!0)},remove:function(e){return it(this,e)},text:function(t){return p(this,function(t){return void 0===t?e.text(this):this.empty().append((this[0]&&this[0].ownerDocument||i).createTextNode(t))},null,t,arguments.length)},append:function(){return x(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=et(this,e);t.appendChild(e)}})},prepend:function(){return x(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=et(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return x(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return x(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var t,n=0;null!=(t=this[n]);n++){1===t.nodeType&&e.cleanData(o(t,!1));while(t.firstChild)t.removeChild(t.firstChild);t.options&&e.nodeName(t,"select")&&(t.options.length=0)};return this},clone:function(t,n){return t=null==t?!1:t,n=null==n?t:n,this.map(function(){return e.clone(this,t,n)})},html:function(t){return p(this,function(t){var i=this[0]||{},a=0,u=this.length;if(void 0===t)return 1===i.nodeType?i.innerHTML.replace(zt,""):void 0;if("string"==typeof t&&!Ut.test(t)&&(r.htmlSerialize||!De.test(t))&&(r.leadingWhitespace||!te.test(t))&&!s[(qe.exec(t)||["",""])[1].toLowerCase()]){t=e.htmlPrefilter(t);try{for(;u>a;a++)i=this[a]||{},1===i.nodeType&&(e.cleanData(o(i,!1)),i.innerHTML=t);i=0}catch(n){}};i&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return x(this,arguments,function(n){var r=this.parentNode;e.inArray(this,t)<0&&(e.cleanData(o(this)),r&&r.replaceChild(n,this))},t)}}),e.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,n){e.fn[t]=function(t){for(var i,r=0,o=[],a=e(t),s=a.length-1;s>=r;r++)i=r===s?this:this.clone(!0),e(a[r])[n](i),oe.apply(o,i.get());return this.pushStack(o)}});var D,Ae={HTML:"block",BODY:"block"};function ot(t,n){var r=e(n.createElement(t)).appendTo(n.body),i=e.css(r[0],"display");return r.detach(),i};function B(t){var r=i,n=Ae[t];return n||(n=ot(t,r),"none"!==n&&n||(D=(D||e("<iframe frameborder='0' width='0' height='0'/>")).appendTo(r.documentElement),r=(D[0].contentWindow||D[0].contentDocument).document,r.write(),r.close(),n=ot(t,r),D.detach()),Ae[t]=n),n};var ke=/^margin/,M=new RegExp("^("+ne+")(?!px)[a-z%]+$","i"),Q=function(e,t,n,r){var o,i,a={};for(i in t)a[i]=e.style[i],e.style[i]=t[i];o=n.apply(e,r||[]);for(i in t)e.style[i]=a[i];return o},Se=i.documentElement;!function(){var o,l,c,a,d,f,u=i.createElement("div"),n=i.createElement("div");if(n.style){n.style.cssText="float:left;opacity:.5",r.opacity="0.5"===n.style.opacity,r.cssFloat=!!n.style.cssFloat,n.style.backgroundClip="content-box",n.cloneNode(!0).style.backgroundClip="",r.clearCloneStyle="content-box"===n.style.backgroundClip,u=i.createElement("div"),u.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",n.innerHTML="",u.appendChild(n),r.boxSizing=""===n.style.boxSizing||""===n.style.MozBoxSizing||""===n.style.WebkitBoxSizing,e.extend(r,{reliableHiddenOffsets:function(){return null==o&&s(),a},boxSizingReliable:function(){return null==o&&s(),c},pixelMarginRight:function(){return null==o&&s(),l},pixelPosition:function(){return null==o&&s(),o},reliableMarginRight:function(){return null==o&&s(),d},reliableMarginLeft:function(){return null==o&&s(),f}});function s(){var e,r,s=i.documentElement;s.appendChild(u),n.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",o=c=f=!1,l=d=!0,t.getComputedStyle&&(r=t.getComputedStyle(n),o="1%"!==(r||{}).top,f="2px"===(r||{}).marginLeft,c="4px"===(r||{width:"4px"}).width,n.style.marginRight="50%",l="4px"===(r||{marginRight:"4px"}).marginRight,e=n.appendChild(i.createElement("div")),e.style.cssText=n.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",e.style.marginRight=e.style.width="0",n.style.width="1px",d=!parseFloat((t.getComputedStyle(e)||{}).marginRight),n.removeChild(e)),n.style.display="none",a=0===n.getClientRects().length,a&&(n.style.display="",n.innerHTML="<table><tr><td></td><td>t</td></tr></table>",n.childNodes[0].style.borderCollapse="separate",e=n.getElementsByTagName("td"),e[0].style.cssText="margin:0;border:0;padding:0;display:none",a=0===e[0].offsetHeight,a&&(e[0].style.display="",e[1].style.display="none",a=0===e[0].offsetHeight)),s.removeChild(u)}}}();var v,f,It=/^(top|right|bottom|left)$/;t.getComputedStyle?(v=function(e){var n=e.ownerDocument.defaultView;return n&&n.opener||(n=t),n.getComputedStyle(e)},f=function(t,n,i){var s,u,l,o,a=t.style;return i=i||v(t),o=i?i.getPropertyValue(n)||i[n]:void 0,""!==o&&void 0!==o||e.contains(t.ownerDocument,t)||(o=e.style(t,n)),i&&!r.pixelMarginRight()&&M.test(o)&&ke.test(n)&&(s=a.width,u=a.minWidth,l=a.maxWidth,a.minWidth=a.maxWidth=a.width=o,o=i.width,a.width=s,a.minWidth=u,a.maxWidth=l),void 0===o?o:o+""}):Se.currentStyle&&(v=function(e){return e.currentStyle},f=function(e,t,n){var s,o,a,r,i=e.style;return n=n||v(e),r=n?n[t]:void 0,null==r&&i&&i[t]&&(r=i[t]),M.test(r)&&!It.test(t)&&(s=i.left,o=e.runtimeStyle,a=o&&o.left,a&&(o.left=e.currentStyle.left),i.left="fontSize"===t?"1em":r,r=i.pixelLeft+"px",i.left=s,a&&(o.left=a)),void 0===r?r:r+""||"auto"});function de(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}};var G=/alpha\([^)]*\)/i,Rt=/opacity\s*=\s*([^)]*)/i,Pt=/^(none|table(?!-c[ea]).+)/,Bt=new RegExp("^("+ne+")(.*)$","i"),Wt={position:"absolute",visibility:"hidden",display:"block"},Ce={letterSpacing:"0",fontWeight:"400"},Ee=["Webkit","O","Moz","ms"],Ne=i.createElement("div").style;function at(e){if(e in Ne)return e;var n=e.charAt(0).toUpperCase()+e.slice(1),t=Ee.length;while(t--)if(e=Ee[t]+n,e in Ne)return e};function st(t,n){for(var o,r,s,a=[],i=0,u=t.length;u>i;i++)r=t[i],r.style&&(a[i]=e._data(r,"olddisplay"),o=r.style.display,n?(a[i]||"none"!==o||(r.style.display=""),""===r.style.display&&j(r)&&(a[i]=e._data(r,"olddisplay",B(r.nodeName)))):(s=j(r),(o&&"none"!==o||!s)&&e._data(r,"olddisplay",s?o:e.css(r,"display"))));for(i=0;u>i;i++)r=t[i],r.style&&(n&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=n?a[i]||"":"none"));return t};function ut(e,t,n){var r=Bt.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t};function lt(t,n,r,i,o){for(var a=r===(i?"border":"content")?4:"width"===n?1:0,s=0;4>a;a+=2)"margin"===r&&(s+=e.css(t,r+y[a],!0,o)),i?("content"===r&&(s-=e.css(t,"padding"+y[a],!0,o)),"margin"!==r&&(s-=e.css(t,"border"+y[a]+"Width",!0,o))):(s+=e.css(t,"padding"+y[a],!0,o),"padding"!==r&&(s+=e.css(t,"border"+y[a]+"Width",!0,o)));return s};function ct(t,n,i){var s=!0,o="width"===n?t.offsetWidth:t.offsetHeight,a=v(t),u=r.boxSizing&&"border-box"===e.css(t,"boxSizing",!1,a);if(0>=o||null==o){if(o=f(t,n,a),(0>o||null==o)&&(o=t.style[n]),M.test(o))return o;s=u&&(r.boxSizingReliable()||o===t.style[n]),o=parseFloat(o)||0};return o+lt(t,n,i||(u?"border":"content"),s,a)+"px"};e.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=f(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":r.cssFloat?"cssFloat":"styleFloat"},style:function(t,n,i,o){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var s,c,u,l=e.camelCase(n),d=t.style;if(n=e.cssProps[l]||(e.cssProps[l]=at(l)||l),u=e.cssHooks[n]||e.cssHooks[l],void 0===i)return u&&"get"in u&&void 0!==(s=u.get(t,!1,o))?s:d[n];if(c=typeof i,"string"===c&&(s=re.exec(i))&&s[1]&&(i=Ge(t,n,s),c="number"),null!=i&&i===i&&("number"===c&&(i+=s&&s[3]||(e.cssNumber[l]?"":"px")),r.clearCloneStyle||""!==i||0!==n.indexOf("background")||(d[n]="inherit"),!(u&&"set"in u&&void 0===(i=u.set(t,i,o)))))try{d[n]=i}catch(a){}}},css:function(t,n,r,i){var u,o,s,a=e.camelCase(n);return n=e.cssProps[a]||(e.cssProps[a]=at(a)||a),s=e.cssHooks[n]||e.cssHooks[a],s&&"get"in s&&(o=s.get(t,!0,r)),void 0===o&&(o=f(t,n,i)),"normal"===o&&n in Ce&&(o=Ce[n]),""===r||r?(u=parseFloat(o),r===!0||isFinite(u)?u||0:o):o}}),e.each(["height","width"],function(t,n){e.cssHooks[n]={get:function(t,r,i){return r?Pt.test(e.css(t,"display"))&&0===t.offsetWidth?Q(t,Wt,function(){return ct(t,n,i)}):ct(t,n,i):void 0},set:function(t,i,o){var a=o&&v(t);return ut(t,i,o?lt(t,n,o,r.boxSizing&&"border-box"===e.css(t,"boxSizing",!1,a),a):0)}}}),r.opacity||(e.cssHooks.opacity={get:function(e,t){return Rt.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(t,n){var r=t.style,i=t.currentStyle,a=e.isNumeric(n)?"alpha(opacity="+100*n+")":"",o=i&&i.filter||r.filter||"";r.zoom=1,(n>=1||""===n)&&""===e.trim(o.replace(G,""))&&r.removeAttribute&&(r.removeAttribute("filter"),""===n||i&&!i.filter)||(r.filter=G.test(o)?o.replace(G,a):o+" "+a)}}),e.cssHooks.marginRight=de(r.reliableMarginRight,function(e,t){return t?Q(e,{display:"inline-block"},f,[e,"marginRight"]):void 0}),e.cssHooks.marginLeft=de(r.reliableMarginLeft,function(t,n){return n?(parseFloat(f(t,"marginLeft"))||(e.contains(t.ownerDocument,t)?t.getBoundingClientRect().left-Q(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}):0))+"px":void 0}),e.each({margin:"",padding:"",border:"Width"},function(t,n){e.cssHooks[t+n]={expand:function(e){for(var r=0,o={},i="string"==typeof e?e.split(" "):[e];4>r;r++)o[t+y[r]+n]=i[r]||i[r-2]||i[0];return o}},ke.test(t)||(e.cssHooks[t+n].set=ut)}),e.fn.extend({css:function(t,n){return p(this,function(t,n,r){var o,a,s={},i=0;if(e.isArray(n)){for(o=v(t),a=n.length;a>i;i++)s[n[i]]=e.css(t,n[i],!1,o);return s};return void 0!==r?e.style(t,n,r):e.css(t,n)},t,n,arguments.length>1)},show:function(){return st(this,!0)},hide:function(){return st(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){j(this)?e(this).show():e(this).hide()})}});function a(e,t,n,r,i){return new a.prototype.init(e,t,n,r,i)};e.Tween=a,a.prototype={constructor:a,init:function(t,n,r,i,o,a){this.elem=t,this.prop=r,this.easing=o||e.easing._default,this.options=n,this.start=this.now=this.cur(),this.end=i,this.unit=a||(e.cssNumber[r]?"":"px")},cur:function(){var e=a.propHooks[this.prop];return e&&e.get?e.get(this):a.propHooks._default.get(this)},run:function(t){var n,r=a.propHooks[this.prop];return this.options.duration?this.pos=n=e.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=n=t,this.now=(this.end-this.start)*n+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),r&&r.set?r.set(this):a.propHooks._default.set(this),this}},a.prototype.init.prototype=a.prototype,a.propHooks={_default:{get:function(t){var n;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(n=e.css(t.elem,t.prop,""),n&&"auto"!==n?n:0)},set:function(t){e.fx.step[t.prop]?e.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[e.cssProps[t.prop]]&&!e.cssHooks[t.prop]?t.elem[t.prop]=t.now:e.style(t.elem,t.prop,t.now+t.unit)}}},a.propHooks.scrollTop=a.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},e.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},e.fx=a.prototype.init,e.fx.step={};var C,F,Mt=/^(?:toggle|show|hide)$/,Ot=/queueHooks$/;function dt(){return t.setTimeout(function(){C=void 0}),C=e.now()};function W(e,t){var r,n={height:e},i=0;for(t=t?1:0;4>i;i+=2-t)r=y[i],n["margin"+r]=n["padding"+r]=e;return t&&(n.opacity=n.width=e),n};function ft(e,t,n){for(var i,o=(u.tweeners[t]||[]).concat(u.tweeners["*"]),r=0,a=o.length;a>r;r++)if(i=o[r].call(n,t,e))return i};function mn(t,n,i){var o,f,g,p,u,m,l,v,d=this,h={},s=t.style,c=t.nodeType&&j(t),a=e._data(t,"fxshow");i.queue||(u=e._queueHooks(t,"fx"),null==u.unqueued&&(u.unqueued=0,m=u.empty.fire,u.empty.fire=function(){u.unqueued||m()}),u.unqueued++,d.always(function(){d.always(function(){u.unqueued--,e.queue(t,"fx").length||u.empty.fire()})})),1===t.nodeType&&("height"in n||"width"in n)&&(i.overflow=[s.overflow,s.overflowX,s.overflowY],l=e.css(t,"display"),v="none"===l?e._data(t,"olddisplay")||B(t.nodeName):l,"inline"===v&&"none"===e.css(t,"float")&&(r.inlineBlockNeedsLayout&&"inline"!==B(t.nodeName)?s.zoom=1:s.display="inline-block")),i.overflow&&(s.overflow="hidden",r.shrinkWrapBlocks()||d.always(function(){s.overflow=i.overflow[0],s.overflowX=i.overflow[1],s.overflowY=i.overflow[2]}));for(o in n)if(f=n[o],Mt.exec(f)){if(delete n[o],g=g||"toggle"===f,f===(c?"hide":"show")){if("show"!==f||!a||void 0===a[o])continue;c=!0};h[o]=a&&a[o]||e.style(t,o)}
+else l=void 0;if(e.isEmptyObject(h))"inline"===("none"===l?B(t.nodeName):l)&&(s.display=l);else{a?"hidden"in a&&(c=a.hidden):a=e._data(t,"fxshow",{}),g&&(a.hidden=!c),c?e(t).show():d.done(function(){e(t).hide()}),d.done(function(){var n;e._removeData(t,"fxshow");for(n in h)e.style(t,n,h[n])});for(o in h)p=ft(c?a[o]:0,o,d),o in a||(a[o]=p.start,c&&(p.end=p.start,p.start="width"===o||"height"===o?1:0))}};function vn(t,n){var r,o,a,i,s;for(r in t)if(o=e.camelCase(r),a=n[o],i=t[r],e.isArray(i)&&(a=i[1],i=t[r]=i[0]),r!==o&&(t[o]=i,delete t[r]),s=e.cssHooks[o],s&&"expand"in s){i=s.expand(i),delete t[o];for(r in i)r in t||(t[r]=i[r],n[r]=a)}
+else n[o]=a};function u(t,n,r){var a,s,l=0,f=u.prefilters.length,o=e.Deferred().always(function(){delete d.elem}),d=function(){if(s)return!1;for(var u=C||dt(),e=Math.max(0,i.startTime+i.duration-u),l=e/i.duration||0,n=1-l,r=0,a=i.tweens.length;a>r;r++)i.tweens[r].run(n);return o.notifyWith(t,[i,n,e]),1>n&&a?e:(o.resolveWith(t,[i]),!1)},i=o.promise({elem:t,props:e.extend({},n),opts:e.extend(!0,{specialEasing:{},easing:e.easing._default},r),originalProperties:n,originalOptions:r,startTime:C||dt(),duration:r.duration,tweens:[],createTween:function(n,r){var o=e.Tween(t,i.opts,n,r,i.opts.specialEasing[n]||i.opts.easing);return i.tweens.push(o),o},stop:function(e){var n=0,r=e?i.tweens.length:0;if(s)return this;for(s=!0;r>n;n++)i.tweens[n].run(1);return e?(o.notifyWith(t,[i,1,0]),o.resolveWith(t,[i,e])):o.rejectWith(t,[i,e]),this}}),c=i.props;for(vn(c,i.opts.specialEasing);f>l;l++)if(a=u.prefilters[l].call(i,t,c,i.opts))return e.isFunction(a.stop)&&(e._queueHooks(i.elem,i.opts.queue).stop=e.proxy(a.stop,a)),a;return e.map(c,ft,i),e.isFunction(i.opts.start)&&i.opts.start.call(t,i),e.fx.timer(e.extend(d,{elem:t,anim:i,queue:i.opts.queue})),i.progress(i.opts.progress).done(i.opts.done,i.opts.complete).fail(i.opts.fail).always(i.opts.always)};e.Animation=e.extend(u,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return Ge(n.elem,e,re.exec(t),n),n}]},tweener:function(t,n){e.isFunction(t)?(n=t,t=["*"]):t=t.match(l);for(var r,i=0,o=t.length;o>i;i++)r=t[i],u.tweeners[r]=u.tweeners[r]||[],u.tweeners[r].unshift(n)},prefilters:[mn],prefilter:function(e,t){t?u.prefilters.unshift(e):u.prefilters.push(e)}}),e.speed=function(t,n,r){var i=t&&"object"==typeof t?e.extend({},t):{complete:r||!r&&n||e.isFunction(t)&&t,duration:t,easing:r&&n||n&&!e.isFunction(n)&&n};return i.duration=e.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in e.fx.speeds?e.fx.speeds[i.duration]:e.fx.speeds._default,null!=i.queue&&i.queue!==!0||(i.queue="fx"),i.old=i.complete,i.complete=function(){e.isFunction(i.old)&&i.old.call(this),i.queue&&e.dequeue(this,i.queue)},i},e.fn.extend({fadeTo:function(e,t,n,r){return this.filter(j).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(t,n,r,i){var s=e.isEmptyObject(t),a=e.speed(n,r,i),o=function(){var n=u(this,e.extend({},t),a);(s||e._data(this,"finish"))&&n.stop(!0)};return o.finish=o,s||a.queue===!1?this.each(o):this.queue(a.queue,o)},stop:function(t,n,r){var i=function(e){var t=e.stop;delete e.stop,t(r)};return"string"!=typeof t&&(r=n,n=t,t=void 0),n&&t!==!1&&this.queue(t||"fx",[]),this.each(function(){var s=!0,n=null!=t&&t+"queueHooks",a=e.timers,o=e._data(this);if(n)o[n]&&o[n].stop&&i(o[n]);else for(n in o)o[n]&&o[n].stop&&Ot.test(n)&&i(o[n]);for(n=a.length;n--;)a[n].elem!==this||null!=t&&a[n].queue!==t||(a[n].anim.stop(r),s=!1,a.splice(n,1));!s&&r||e.dequeue(this,t)})},finish:function(t){return t!==!1&&(t=t||"fx"),this.each(function(){var n,o=e._data(this),r=o[t+"queue"],a=o[t+"queueHooks"],i=e.timers,s=r?r.length:0;for(o.finish=!0,e.queue(this,t,[]),a&&a.stop&&a.stop.call(this,!0),n=i.length;n--;)i[n].elem===this&&i[n].queue===t&&(i[n].anim.stop(!0),i.splice(n,1));for(n=0;s>n;n++)r[n]&&r[n].finish&&r[n].finish.call(this);delete o.finish})}}),e.each(["toggle","show","hide"],function(t,n){var r=e.fn[n];e.fn[n]=function(e,t,i){return null==e||"boolean"==typeof e?r.apply(this,arguments):this.animate(W(n,!0),e,t,i)}}),e.each({slideDown:W("show"),slideUp:W("hide"),slideToggle:W("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,n){e.fn[t]=function(e,t,r){return this.animate(n,e,t,r)}}),e.timers=[],e.fx.tick=function(){var r,t=e.timers,n=0;for(C=e.now();n<t.length;n++)r=t[n],r()||t[n]!==r||t.splice(n--,1);t.length||e.fx.stop(),C=void 0},e.fx.timer=function(t){e.timers.push(t),t()?e.fx.start():e.timers.pop()},e.fx.interval=13,e.fx.start=function(){F||(F=t.setInterval(e.fx.tick,e.fx.interval))},e.fx.stop=function(){t.clearInterval(F),F=null},e.fx.speeds={slow:600,fast:200,_default:400},e.fn.delay=function(n,r){return n=e.fx?e.fx.speeds[n]||n:n,r=r||"fx",this.queue(r,function(e,r){var i=t.setTimeout(e,n);r.stop=function(){t.clearTimeout(i)}})},function(){var n,e=i.createElement("input"),t=i.createElement("div"),o=i.createElement("select"),a=o.appendChild(i.createElement("option"));t=i.createElement("div"),t.setAttribute("className","t"),t.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",n=t.getElementsByTagName("a")[0],e.setAttribute("type","checkbox"),t.appendChild(e),n=t.getElementsByTagName("a")[0],n.style.cssText="top:1px",r.getSetAttribute="t"!==t.className,r.style=/top/.test(n.getAttribute("style")),r.hrefNormalized="/a"===n.getAttribute("href"),r.checkOn=!!e.value,r.optSelected=a.selected,r.enctype=!!i.createElement("form").enctype,o.disabled=!0,r.optDisabled=!a.disabled,e=i.createElement("input"),e.setAttribute("value",""),r.input=""===e.getAttribute("value"),e.value="t",e.setAttribute("type","radio"),r.radioValue="t"===e.value}();var qt=/\r/g,Ft=/[\x20\t\r\n\f]+/g;e.fn.extend({val:function(t){var n,r,o,i=this[0];{if(arguments.length)return o=e.isFunction(t),this.each(function(r){var i;1===this.nodeType&&(i=o?t.call(this,r,e(this).val()):t,null==i?i="":"number"==typeof i?i+="":e.isArray(i)&&(i=e.map(i,function(e){return null==e?"":e+""})),n=e.valHooks[this.type]||e.valHooks[this.nodeName.toLowerCase()],n&&"set"in n&&void 0!==n.set(this,i,"value")||(this.value=i))});if(i)return n=e.valHooks[i.type]||e.valHooks[i.nodeName.toLowerCase()],n&&"get"in n&&void 0!==(r=n.get(i,"value"))?r:(r=i.value,"string"==typeof r?r.replace(qt,""):null==r?"":r)}}}),e.extend({valHooks:{option:{get:function(t){var n=e.find.attr(t,"value");return null!=n?n:e.trim(e.text(t)).replace(Ft," ")}},select:{get:function(t){for(var s,n,u=t.options,i=t.selectedIndex,o="select-one"===t.type||0>i,l=o?null:[],c=o?i+1:u.length,a=0>i?c:o?i:0;c>a;a++)if(n=u[a],(n.selected||a===i)&&(r.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!e.nodeName(n.parentNode,"optgroup"))){if(s=e(n).val(),o)return s;l.push(s)};return l},set:function(t,n){var a,i,o=t.options,u=e.makeArray(n),s=o.length;while(s--)if(i=o[s],e.inArray(e.valHooks.option.get(i),u)>-1)try{i.selected=a=!0}catch(r){i.scrollHeight}
+else i.selected=!1;return a||(t.selectedIndex=-1),o}}}}),e.each(["radio","checkbox"],function(){e.valHooks[this]={set:function(t,n){return e.isArray(n)?t.checked=e.inArray(e(t).val(),n)>-1:void 0}},r.checkOn||(e.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var T,Te,c=e.expr.attrHandle,J=/^(?:checked|selected)$/i,m=r.getSetAttribute,q=r.input;e.fn.extend({attr:function(t,n){return p(this,e.attr,t,n,arguments.length>1)},removeAttr:function(t){return this.each(function(){e.removeAttr(this,t)})}}),e.extend({attr:function(t,n,r){var i,o,a=t.nodeType;if(3!==a&&8!==a&&2!==a)return"undefined"==typeof t.getAttribute?e.prop(t,n,r):(1===a&&e.isXMLDoc(t)||(n=n.toLowerCase(),o=e.attrHooks[n]||(e.expr.match.bool.test(n)?Te:T)),void 0!==r?null===r?void e.removeAttr(t,n):o&&"set"in o&&void 0!==(i=o.set(t,r,n))?i:(t.setAttribute(n,r+""),r):o&&"get"in o&&null!==(i=o.get(t,n))?i:(i=e.find.attr(t,n),null==i?void 0:i))},attrHooks:{type:{set:function(t,n){if(!r.radioValue&&"radio"===n&&e.nodeName(t,"input")){var i=t.value;return t.setAttribute("type",n),i&&(t.value=i),n}}}},removeAttr:function(t,n){var r,i,a=0,o=n&&n.match(l);if(o&&1===t.nodeType)while(r=o[a++])i=e.propFix[r]||r,e.expr.match.bool.test(r)?q&&m||!J.test(r)?t[i]=!1:t[e.camelCase("default-"+r)]=t[i]=!1:e.attr(t,r,""),t.removeAttribute(m?r:i)}}),Te={set:function(t,n,r){return n===!1?e.removeAttr(t,r):q&&m||!J.test(r)?t.setAttribute(!m&&e.propFix[r]||r,r):t[e.camelCase("default-"+r)]=t[r]=!0,r}},e.each(e.expr.match.bool.source.match(/\w+/g),function(t,n){var r=c[n]||e.find.attr;q&&m||!J.test(n)?c[n]=function(e,t,n){var i,o;return n||(o=c[t],c[t]=i,i=null!=r(e,t,n)?t.toLowerCase():null,c[t]=o),i}:c[n]=function(t,n,r){return r?void 0:t[e.camelCase("default-"+n)]?n.toLowerCase():null}}),q&&m||(e.attrHooks.value={set:function(t,n,r){return e.nodeName(t,"input")?void(t.defaultValue=n):T&&T.set(t,n,r)}}),m||(T={set:function(e,t,n){var r=e.getAttributeNode(n);return r||e.setAttributeNode(r=e.ownerDocument.createAttribute(n)),r.value=t+="","value"===n||t===e.getAttribute(n)?t:void 0}},c.id=c.name=c.coords=function(e,t,n){var r;return n?void 0:(r=e.getAttributeNode(t))&&""!==r.value?r.value:null},e.valHooks.button={get:function(e,t){var n=e.getAttributeNode(t);return n&&n.specified?n.value:void 0},set:T.set},e.attrHooks.contenteditable={set:function(e,t,n){T.set(e,""===t?!1:t,n)}},e.each(["width","height"],function(t,n){e.attrHooks[n]={set:function(e,t){return""===t?(e.setAttribute(n,"auto"),t):void 0}}})),r.style||(e.attrHooks.style={get:function(e){return e.style.cssText||void 0},set:function(e,t){return e.style.cssText=t+""}});var Lt=/^(?:input|select|textarea|button|object)$/i,Ht=/^(?:a|area)$/i;e.fn.extend({prop:function(t,n){return p(this,e.prop,t,n,arguments.length>1)},removeProp:function(t){return t=e.propFix[t]||t,this.each(function(){try{this[t]=void 0,delete this[t]}catch(e){}})}}),e.extend({prop:function(t,n,r){var o,i,a=t.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&e.isXMLDoc(t)||(n=e.propFix[n]||n,i=e.propHooks[n]),void 0!==r?i&&"set"in i&&void 0!==(o=i.set(t,r,n))?o:t[n]=r:i&&"get"in i&&null!==(o=i.get(t,n))?o:t[n]},propHooks:{tabIndex:{get:function(t){var n=e.find.attr(t,"tabindex");return n?parseInt(n,10):Lt.test(t.nodeName)||Ht.test(t.nodeName)&&t.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),r.hrefNormalized||e.each(["href","src"],function(t,n){e.propHooks[n]={get:function(e){return e.getAttribute(n,4)}}}),r.optSelected||(e.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),e.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){e.propFix[this.toLowerCase()]=this}),r.enctype||(e.propFix.enctype="encoding");var Y=/[\t\r\n\f]/g;function b(t){return e.attr(t,"class")||""};e.fn.extend({addClass:function(t){var s,n,r,i,o,u,a,c=0;if(e.isFunction(t))return this.each(function(n){e(this).addClass(t.call(this,n,b(this)))});if("string"==typeof t&&t){s=t.match(l)||[];while(n=this[c++])if(i=b(n),r=1===n.nodeType&&(" "+i+" ").replace(Y," ")){u=0;while(o=s[u++])r.indexOf(" "+o+" ")<0&&(r+=o+" ");a=e.trim(r),i!==a&&e.attr(n,"class",a)}};return this},removeClass:function(t){var s,r,n,i,o,u,a,c=0;if(e.isFunction(t))return this.each(function(n){e(this).removeClass(t.call(this,n,b(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t){s=t.match(l)||[];while(r=this[c++])if(i=b(r),n=1===r.nodeType&&(" "+i+" ").replace(Y," ")){u=0;while(o=s[u++])while(n.indexOf(" "+o+" ")>-1)n=n.replace(" "+o+" "," ");a=e.trim(n),i!==a&&e.attr(r,"class",a)}};return this},toggleClass:function(t,n){var r=typeof t;return"boolean"==typeof n&&"string"===r?n?this.addClass(t):this.removeClass(t):e.isFunction(t)?this.each(function(r){e(this).toggleClass(t.call(this,r,b(this),n),n)}):this.each(function(){var n,o,i,a;if("string"===r){o=0,i=e(this),a=t.match(l)||[];while(n=a[o++])i.hasClass(n)?i.removeClass(n):i.addClass(n)}
+else void 0!==t&&"boolean"!==r||(n=b(this),n&&e._data(this,"__className__",n),e.attr(this,"class",n||t===!1?"":e._data(this,"__className__")||""))})},hasClass:function(e){var n,t,r=0;n=" "+e+" ";while(t=this[r++])if(1===t.nodeType&&(" "+b(t)+" ").replace(Y," ").indexOf(n)>-1)return!0;return!1}}),e.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(t,n){e.fn[n]=function(e,t){return arguments.length>0?this.on(n,null,e,t):this.trigger(n)}}),e.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}});var Dt=t.location,U=e.now(),V=/\?/,jt=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;e.parseJSON=function(n){if(t.JSON&&t.JSON.parse)return t.JSON.parse(n+"");var o,r=null,i=e.trim(n+"");return i&&!e.trim(i.replace(jt,function(e,t,n,i){return o&&t&&(r=0),0===r?e:(o=n||t,r+=!i-!n,"")}))?Function("return "+i)():e.error("Invalid JSON: "+n)},e.parseXML=function(n){var i,o;if(!n||"string"!=typeof n)return null;try{t.DOMParser?(o=new t.DOMParser,i=o.parseFromString(n,"text/xml")):(i=new t.ActiveXObject("Microsoft.XMLDOM"),i.async="false",i.loadXML(n))}catch(r){i=void 0};return i&&i.documentElement&&!i.getElementsByTagName("parsererror").length||e.error("Invalid XML: "+n),i};var Et=/#.*$/,ye=/([?&])_=[^&]*/,Nt=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,kt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,St=/^(?:GET|HEAD)$/,At=/^\/\//,xe=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,be={},z={},we="*/".concat("*"),X=Dt.href,w=xe.exec(X.toLowerCase())||[];function pt(t){return function(n,r){"string"!=typeof n&&(r=n,n="*");var i,o=0,a=n.toLowerCase().match(l)||[];if(e.isFunction(r))while(i=a[o++])"+"===i.charAt(0)?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(r)):(t[i]=t[i]||[]).push(r)}};function ht(t,n,r,i){var o={},s=t===z;function a(u){var l;return o[u]=!0,e.each(t[u]||[],function(e,t){var u=t(n,r,i);return"string"!=typeof u||s||o[u]?s?!(l=u):void 0:(n.dataTypes.unshift(u),a(u),!1)}),l};return a(n.dataTypes[0])||!o["*"]&&a("*")};function fe(t,n){var i,r,o=e.ajaxSettings.flatOptions||{};for(r in n)void 0!==n[r]&&((o[r]?t:i||(i={}))[r]=n[r]);return i&&e.extend(!0,t,i),t};function yn(e,t,n){var s,a,i,o,u=e.contents,r=e.dataTypes;while("*"===r[0])r.shift(),void 0===a&&(a=e.mimeType||t.getResponseHeader("Content-Type"));if(a)for(o in u)if(u[o]&&u[o].test(a)){r.unshift(o);break};if(r[0]in n)i=r[0];else{for(o in n){if(!r[0]||e.converters[o+" "+r[0]]){i=o;break};s||(s=o)};i=i||s};return i?(i!==r[0]&&r.unshift(i),n[i]):void 0};function xn(e,t,n,r){var c,o,a,l,s,u={},d=e.dataTypes.slice();if(d[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];o=d.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!s&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),s=o,o=d.shift())if("*"===o)o=s;else if("*"!==s&&s!==o){if(a=u[s+" "+o]||u["* "+o],!a)for(c in u)if(l=c.split(" "),l[1]===o&&(a=u[s+" "+l[0]]||u["* "+l[0]])){a===!0?a=u[c]:u[c]!==!0&&(o=l[0],d.unshift(l[1]));break};if(a!==!0)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(i){return{state:"parsererror",error:a?i:"No conversion from "+s+" to "+o}}};return{state:"success",data:t}};e.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:X,type:"GET",isLocal:kt.test(w[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":we,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":e.parseJSON,"text xml":e.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,n){return n?fe(fe(t,e.ajaxSettings),n):fe(e.ajaxSettings,t)},ajaxPrefilter:pt(be),ajaxTransport:pt(z),ajax:function(n,r){"object"==typeof n&&(r=n,n=void 0),r=r||{};var d,f,s,y,x,p,h,g,i=e.ajaxSetup({},r),c=i.context||i,b=i.context&&(c.nodeType||c.jquery)?e(c):e.event,T=e.Deferred(),C=e.Callbacks("once memory"),m=i.statusCode||{},E={},N={},u=0,k="canceled",o={readyState:0,getResponseHeader:function(e){var t;if(2===u){if(!g){g={};while(t=Nt.exec(y))g[t[1].toLowerCase()]=t[2]};t=g[e.toLowerCase()]};return null==t?null:t},getAllResponseHeaders:function(){return 2===u?y:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return u||(e=N[n]=N[n]||e,E[e]=t),this},overrideMimeType:function(e){return u||(i.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>u)for(t in e)m[t]=[m[t],e[t]];else o.always(e[o.status]);return this},abort:function(e){var t=e||k;return h&&h.abort(t),v(0,t),this}};if(T.promise(o).complete=C.add,o.success=o.done,o.error=o.fail,i.url=((n||i.url||X)+"").replace(Et,"").replace(At,w[1]+"//"),i.type=r.method||r.type||i.method||i.type,i.dataTypes=e.trim(i.dataType||"*").toLowerCase().match(l)||[""],null==i.crossDomain&&(d=xe.exec(i.url.toLowerCase()),i.crossDomain=!(!d||d[1]===w[1]&&d[2]===w[2]&&(d[3]||("http:"===d[1]?"80":"443"))===(w[3]||("http:"===w[1]?"80":"443")))),i.data&&i.processData&&"string"!=typeof i.data&&(i.data=e.param(i.data,i.traditional)),ht(be,i,r,o),2===u)return o;p=e.event&&i.global,p&&0===e.active++&&e.event.trigger("ajaxStart"),i.type=i.type.toUpperCase(),i.hasContent=!St.test(i.type),s=i.url,i.hasContent||(i.data&&(s=i.url+=(V.test(s)?"&":"?")+i.data,delete i.data),i.cache===!1&&(i.url=ye.test(s)?s.replace(ye,"$1_="+U++):s+(V.test(s)?"&":"?")+"_="+U++)),i.ifModified&&(e.lastModified[s]&&o.setRequestHeader("If-Modified-Since",e.lastModified[s]),e.etag[s]&&o.setRequestHeader("If-None-Match",e.etag[s])),(i.data&&i.hasContent&&i.contentType!==!1||r.contentType)&&o.setRequestHeader("Content-Type",i.contentType),o.setRequestHeader("Accept",i.dataTypes[0]&&i.accepts[i.dataTypes[0]]?i.accepts[i.dataTypes[0]]+("*"!==i.dataTypes[0]?", "+we+"; q=0.01":""):i.accepts["*"]);for(f in i.headers)o.setRequestHeader(f,i.headers[f]);if(i.beforeSend&&(i.beforeSend.call(c,o,i)===!1||2===u))return o.abort();k="abort";for(f in{success:1,error:1,complete:1})o[f](i[f]);if(h=ht(z,i,r,o)){if(o.readyState=1,p&&b.trigger("ajaxSend",[o,i]),2===u)return o;i.async&&i.timeout>0&&(x=t.setTimeout(function(){o.abort("timeout")},i.timeout));try{u=1,h.send(E,v)}catch(a){if(!(2>u))throw a;v(-1,a)}}
+else v(-1,"No Transport");function v(n,r,a,l){var f,E,w,g,v,d=r;2!==u&&(u=2,x&&t.clearTimeout(x),h=void 0,y=l||"",o.readyState=n>0?4:0,f=n>=200&&300>n||304===n,a&&(g=yn(i,o,a)),g=xn(i,g,o,f),f?(i.ifModified&&(v=o.getResponseHeader("Last-Modified"),v&&(e.lastModified[s]=v),v=o.getResponseHeader("etag"),v&&(e.etag[s]=v)),204===n||"HEAD"===i.type?d="nocontent":304===n?d="notmodified":(d=g.state,E=g.data,w=g.error,f=!w)):(w=d,!n&&d||(d="error",0>n&&(n=0))),o.status=n,o.statusText=(r||d)+"",f?T.resolveWith(c,[E,d,o]):T.rejectWith(c,[o,d,w]),o.statusCode(m),m=void 0,p&&b.trigger(f?"ajaxSuccess":"ajaxError",[o,i,f?E:w]),C.fireWith(c,[o,d]),p&&(b.trigger("ajaxComplete",[o,i]),--e.active||e.event.trigger("ajaxStop")))};return o},getJSON:function(t,n,r){return e.get(t,n,r,"json")},getScript:function(t,n){return e.get(t,void 0,n,"script")}}),e.each(["get","post"],function(t,n){e[n]=function(t,r,i,o){return e.isFunction(r)&&(o=o||i,i=r,r=void 0),e.ajax(e.extend({url:t,type:n,dataType:o,data:r,success:i},e.isPlainObject(t)&&t))}}),e._evalUrl=function(t){return e.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,"throws":!0})},e.fn.extend({wrapAll:function(t){if(e.isFunction(t))return this.each(function(n){e(this).wrapAll(t.call(this,n))});if(this[0]){var n=e(t,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&n.insertBefore(this[0]),n.map(function(){var e=this;while(e.firstChild&&1===e.firstChild.nodeType)e=e.firstChild;return e}).append(this)};return this},wrapInner:function(t){return e.isFunction(t)?this.each(function(n){e(this).wrapInner(t.call(this,n))}):this.each(function(){var n=e(this),r=n.contents();r.length?r.wrapAll(t):n.append(t)})},wrap:function(t){var n=e.isFunction(t);return this.each(function(r){e(this).wrapAll(n?t.call(this,r):t)})},unwrap:function(){return this.parent().each(function(){e.nodeName(this,"body")||e(this).replaceWith(this.childNodes)}).end()}});function bn(t){return t.style&&t.style.display||e.css(t,"display")};function wn(t){if(!e.contains(t.ownerDocument||i,t))return!0;while(t&&1===t.nodeType){if("none"===bn(t)||"hidden"===t.type)return!0;t=t.parentNode};return!1};e.expr.filters.hidden=function(e){return r.reliableHiddenOffsets()?e.offsetWidth<=0&&e.offsetHeight<=0&&!e.getClientRects().length:wn(e)},e.expr.filters.visible=function(t){return!e.expr.filters.hidden(t)};var bt=/%20/g,wt=/\[\]$/,ve=/\r?\n/g,Tt=/^(?:submit|button|image|reset|file)$/i,Ct=/^(?:input|select|textarea|keygen)/i;function pe(t,n,r,i){var o;if(e.isArray(n))e.each(n,function(e,n){r||wt.test(t)?i(t,n):pe(t+"["+("object"==typeof n&&null!=n?e:"")+"]",n,r,i)});else if(r||"object"!==e.type(n))i(t,n);else for(o in n)pe(t+"["+o+"]",n[o],r,i)};e.param=function(t,n){var r,i=[],o=function(t,n){n=e.isFunction(n)?n():null==n?"":n,i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(n)};if(void 0===n&&(n=e.ajaxSettings&&e.ajaxSettings.traditional),e.isArray(t)||t.jquery&&!e.isPlainObject(t))e.each(t,function(){o(this.name,this.value)});else for(r in t)pe(r,t[r],n,o);return i.join("&").replace(bt,"+")},e.fn.extend({serialize:function(){return e.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=e.prop(this,"elements");return t?e.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!e(this).is(":disabled")&&Ct.test(this.nodeName)&&!Tt.test(t)&&(this.checked||!ee.test(t))}).map(function(t,n){var r=e(this).val();return null==r?null:e.isArray(r)?e.map(r,function(e){return{name:n.name,value:e.replace(ve,"\r\n")}}):{name:n.name,value:r.replace(ve,"\r\n")}}).get()}}),e.ajaxSettings.xhr=void 0!==t.ActiveXObject?function(){return this.isLocal?gt():i.documentMode>8?he():/^(get|post|head|put|delete|options)$/i.test(this.type)&&he()||gt()}:he;var xt=0,H={},A=e.ajaxSettings.xhr();t.attachEvent&&t.attachEvent("onunload",function(){for(var e in H)H[e](void 0,!0)}),r.cors=!!A&&"withCredentials"in A,A=r.ajax=!!A,A&&e.ajaxTransport(function(n){if(!n.crossDomain||r.cors){var i;return{send:function(r,o){var s,a=n.xhr(),u=++xt;if(a.open(n.type,n.url,n.async,n.username,n.password),n.xhrFields)for(s in n.xhrFields)a[s]=n.xhrFields[s];n.mimeType&&a.overrideMimeType&&a.overrideMimeType(n.mimeType),n.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");for(s in r)void 0!==r[s]&&a.setRequestHeader(s,r[s]+"");a.send(n.hasContent&&n.data||null),i=function(t,r){var l,d,c;if(i&&(r||4===a.readyState))if(delete H[u],i=void 0,a.onreadystatechange=e.noop,r)4!==a.readyState&&a.abort();else{c={},l=a.status,"string"==typeof a.responseText&&(c.text=a.responseText);try{d=a.statusText}catch(s){d=""};l||!n.isLocal||n.crossDomain?1223===l&&(l=204):l=c.text?200:404};c&&o(l,d,c,a.getAllResponseHeaders())},n.async?4===a.readyState?t.setTimeout(i):a.onreadystatechange=H[u]=i:i()},abort:function(){i&&i(void 0,!0)}}}});function he(){try{return new t.XMLHttpRequest}catch(e){}};function gt(){try{return new t.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}};e.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return e.globalEval(t),t}}}),e.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),e.ajaxTransport("script",function(t){if(t.crossDomain){var n,r=i.head||e("head")[0]||i.documentElement;return{send:function(e,o){n=i.createElement("script"),n.async=!0,t.scriptCharset&&(n.charset=t.scriptCharset),n.src=t.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||o(200,"success"))},r.insertBefore(n,r.firstChild)},abort:function(){n&&n.onload(void 0,!0)}}}});var me=[],I=/(=)\?(?=&|$)|\?\?/;e.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=me.pop()||e.expando+"_"+U++;return this[t]=!0,t}}),e.ajaxPrefilter("json jsonp",function(n,r,i){var o,a,s,u=n.jsonp!==!1&&(I.test(n.url)?"url":"string"==typeof n.data&&0===(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&I.test(n.data)&&"data");return u||"jsonp"===n.dataTypes[0]?(o=n.jsonpCallback=e.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,u?n[u]=n[u].replace(I,"$1"+o):n.jsonp!==!1&&(n.url+=(V.test(n.url)?"&":"?")+n.jsonp+"="+o),n.converters["script json"]=function(){return s||e.error(o+" was not called"),s[0]},n.dataTypes[0]="json",a=t[o],t[o]=function(){s=arguments},i.always(function(){void 0===a?e(t).removeProp(o):t[o]=a,n[o]&&(n.jsonpCallback=r.jsonpCallback,me.push(o)),s&&e.isFunction(a)&&a(s[0]),s=a=void 0}),"script"):void 0}),e.parseHTML=function(t,n,r){if(!t||"string"!=typeof t)return null;"boolean"==typeof n&&(r=n,n=!1),n=n||i;var o=Be.exec(t),a=!r&&[];return o?[n.createElement(o[1])]:(o=Ke([t],n,a),a&&a.length&&e(a).remove(),e.merge([],o.childNodes))};var ge=e.fn.load;e.fn.load=function(t,n,r){if("string"!=typeof t&&ge)return ge.apply(this,arguments);var i,s,u,o=this,a=t.indexOf(" ");return a>-1&&(i=e.trim(t.slice(a,t.length)),t=t.slice(0,a)),e.isFunction(n)?(r=n,n=void 0):n&&"object"==typeof n&&(s="POST"),o.length>0&&e.ajax({url:t,type:s||"GET",dataType:"html",data:n}).done(function(t){u=arguments,o.html(i?e("<div>").append(e.parseHTML(t)).find(i):t)}).always(r&&function(e,t){o.each(function(){r.apply(this,u||[e.responseText,t,e])})}),this},e.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,n){e.fn[n]=function(e){return this.on(n,e)}}),e.expr.filters.animated=function(t){return e.grep(e.timers,function(e){return t===e.elem}).length};function mt(t){return e.isWindow(t)?t:9===t.nodeType?t.defaultView||t.parentWindow:!1};e.offset={setOffset:function(t,n,r){var a,s,u,l,i,c,p,d=e.css(t,"position"),f=e(t),o={};"static"===d&&(t.style.position="relative"),i=f.offset(),u=e.css(t,"top"),c=e.css(t,"left"),p=("absolute"===d||"fixed"===d)&&e.inArray("auto",[u,c])>-1,p?(a=f.position(),l=a.top,s=a.left):(l=parseFloat(u)||0,s=parseFloat(c)||0),e.isFunction(n)&&(n=n.call(t,r,e.extend({},i))),null!=n.top&&(o.top=n.top-i.top+l),null!=n.left&&(o.left=n.left-i.left+s),"using"in n?n.using.call(t,o):f.css(o)}},e.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(n){e.offset.setOffset(this,t,n)});var n,o,i={top:0,left:0},r=this[0],a=r&&r.ownerDocument;if(a)return n=a.documentElement,e.contains(n,r)?("undefined"!=typeof r.getBoundingClientRect&&(i=r.getBoundingClientRect()),o=mt(a),{top:i.top+(o.pageYOffset||n.scrollTop)-(n.clientTop||0),left:i.left+(o.pageXOffset||n.scrollLeft)-(n.clientLeft||0)}):i},position:function(){if(this[0]){var t,r,n={top:0,left:0},i=this[0];return"fixed"===e.css(i,"position")?r=i.getBoundingClientRect():(t=this.offsetParent(),r=this.offset(),e.nodeName(t[0],"html")||(n=t.offset()),n.top+=e.css(t[0],"borderTopWidth",!0),n.left+=e.css(t[0],"borderLeftWidth",!0)),{top:r.top-n.top-e.css(i,"marginTop",!0),left:r.left-n.left-e.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var t=this.offsetParent;while(t&&!e.nodeName(t,"html")&&"static"===e.css(t,"position"))t=t.offsetParent;return t||Se})}}),e.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,n){var r=/Y/.test(n);e.fn[t]=function(i){return p(this,function(t,i,o){var a=mt(t);return void 0===o?a?n in a?a[n]:a.document.documentElement[i]:t[i]:void(a?a.scrollTo(r?e(a).scrollLeft():o,r?o:e(a).scrollTop()):t[i]=o)},t,i,arguments.length,null)}}),e.each(["top","left"],function(t,n){e.cssHooks[n]=de(r.pixelPosition,function(t,r){return r?(r=f(t,n),M.test(r)?e(t).position()[n]+"px":r):void 0})}),e.each({Height:"height",Width:"width"},function(t,n){e.each({padding:"inner"+t,content:n,"":"outer"+t},function(r,i){e.fn[i]=function(i,o){var a=arguments.length&&(r||"boolean"!=typeof i),s=r||(i===!0||o===!0?"margin":"border");return p(this,function(n,r,i){var o;return e.isWindow(n)?n.document.documentElement["client"+t]:9===n.nodeType?(o=n.documentElement,Math.max(n.body["scroll"+t],o["scroll"+t],n.body["offset"+t],o["offset"+t],o["client"+t])):void 0===i?e.css(n,r,s):e.style(n,r,i,s)},n,a?i:void 0,a,null)}})}),e.fn.extend({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)}}),e.fn.size=function(){return this.length},e.fn.andSelf=e.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return e});var vt=t.jQuery,yt=t.$;return e.noConflict=function(n){return t.$===e&&(t.$=yt),n&&t.jQuery===e&&(t.jQuery=vt),e},n||(t.jQuery=t.$=e),e});/*!
+ * jQuery UI 1.8.16
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI
+ */
+(function(t,e){function i(e,i){var n=e.nodeName.toLowerCase();if('area'===n){i=e.parentNode;n=i.name;if(!e.href||!n||i.nodeName.toLowerCase()!=='map')return!1;e=t('img[usemap=#'+n+']')[0];return!!e&&s(e)};return(/input|select|textarea|button|object/.test(n)?!e.disabled:'a'==n?e.href||i:i)&&s(e)};function s(e){return!t(e).parents().andSelf().filter(function(){return t.curCSS(this,'visibility')==='hidden'||t.expr.filters.hidden(this)}).length};t.ui=t.ui||{};if(!t.ui.version){t.extend(t.ui,{version:'1.8.16',keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});t.fn.extend({propAttr:t.fn.prop||t.fn.attr,_focus:t.fn.focus,focus:function(e,i){return typeof e==='number'?this.each(function(){var s=this;setTimeout(function(){t(s).focus();i&&i.call(s)},e)}):this._focus.apply(this,arguments)},scrollParent:function(){var e;e=t.browser.msie&&/(static|relative)/.test(this.css('position'))||/absolute/.test(this.css('position'))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(t.curCSS(this,'position',1))&&/(auto|scroll)/.test(t.curCSS(this,'overflow',1)+t.curCSS(this,'overflow-y',1)+t.curCSS(this,'overflow-x',1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(t.curCSS(this,'overflow',1)+t.curCSS(this,'overflow-y',1)+t.curCSS(this,'overflow-x',1))}).eq(0);return/fixed/.test(this.css('position'))||!e.length?t(document):e},zIndex:function(i){if(i!==e)return this.css('zIndex',i);if(this.length){i=t(this[0]);for(var s;i.length&&i[0]!==document;){s=i.css('position');if(s==='absolute'||s==='relative'||s==='fixed'){s=parseInt(i.css('zIndex'),10);if(!isNaN(s)&&s!==0)return s};i=i.parent()}};return 0},disableSelection:function(){return this.bind((t.support.selectstart?'selectstart':'mousedown')+'.ui-disableSelection',function(t){t.preventDefault()})},enableSelection:function(){return this.unbind('.ui-disableSelection')}});t.each(['Width','Height'],function(i,s){function a(e,i,s,n){t.each(r,function(){i-=parseFloat(t.curCSS(e,'padding'+this,!0))||0;if(s)i-=parseFloat(t.curCSS(e,'border'+this+'Width',!0))||0;if(n)i-=parseFloat(t.curCSS(e,'margin'+this,!0))||0});return i};var r=s==='Width'?['Left','Right']:['Top','Bottom'],n=s.toLowerCase(),o={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};t.fn['inner'+s]=function(i){if(i===e)return o['inner'+s].call(this);return this.each(function(){t(this).css(n,a(this,i)+'px')})};t.fn['outer'+s]=function(e,i){if(typeof e!=='number')return o['outer'+s].call(this,e);return this.each(function(){t(this).css(n,a(this,e,!0,i)+'px')})}});t.extend(t.expr[':'],{data:function(e,i,s){return!!t.data(e,s[3])},focusable:function(e){return i(e,!isNaN(t.attr(e,'tabindex')))},tabbable:function(e){var s=t.attr(e,'tabindex'),n=isNaN(s);return(n||s>=0)&&i(e,!n)}});t(function(){var i=document.body,e=i.appendChild(e=document.createElement('div'));t.extend(e.style,{minHeight:'100px',height:'auto',padding:0,borderWidth:0});t.support.minHeight=e.offsetHeight===100;t.support.selectstart='onselectstart'in e;i.removeChild(e).style.display='none'});t.extend(t.ui,{plugin:{add:function(e,i,s){e=t.ui[e].prototype;for(var n in s){e.plugins[n]=e.plugins[n]||[];e.plugins[n].push([i,s[n]])}},call:function(t,e,i){if((e=t.plugins[e])&&t.element[0].parentNode)for(var s=0;s<e.length;s++)t.options[e[s][0]]&&e[s][1].apply(t.element,i)}},contains:function(t,e){return document.compareDocumentPosition?t.compareDocumentPosition(e)&16:t!==e&&t.contains(e)},hasScroll:function(e,i){if(t(e).css('overflow')==='hidden')return!1;i=i&&i==='left'?'scrollLeft':'scrollTop';var s=!1;if(e[i]>0)return!0;e[i]=1;s=e[i]>0;e[i]=0;return s},isOverAxis:function(t,e,i){return t>e&&t<e+i},isOver:function(e,i,s,n,o,a){return t.ui.isOverAxis(e,s,o)&&t.ui.isOverAxis(i,n,a)}})}})(jQuery);
+/*!
+ * jQuery UI Widget 1.8.16
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Widget
+ */
+(function(t,e){if(t.cleanData){var s=t.cleanData;t.cleanData=function(e){for(var n=0,o;(o=e[n])!=null;n++)try{t(o).triggerHandler('remove')}catch(i){};s(e)}}
+else{var i=t.fn.remove;t.fn.remove=function(e,s){return this.each(function(){if(!s)if(!e||t.filter(e,[this]).length)t('*',this).add([this]).each(function(){try{t(this).triggerHandler('remove')}catch(e){}});return i.call(t(this),e,s)})}};t.widget=function(e,i,s){var n=e.split('.')[0],o;e=e.split('.')[1];o=n+'-'+e;if(!s){s=i;i=t.Widget};t.expr[':'][o]=function(i){return!!t.data(i,e)};t[n]=t[n]||{};t[n][e]=function(t,e){arguments.length&&this._createWidget(t,e)};i=new i;i.options=t.extend(!0,{},i.options);t[n][e].prototype=t.extend(!0,i,{namespace:n,widgetName:e,widgetEventPrefix:t[n][e].prototype.widgetEventPrefix||e,widgetBaseClass:o},s);t.widget.bridge(e,t[n][e])};t.widget.bridge=function(i,s){t.fn[i]=function(n){var o=typeof n==='string',a=Array.prototype.slice.call(arguments,1),r=this;n=!o&&a.length?t.extend.apply(null,[!0,n].concat(a)):n;if(o&&n.charAt(0)==='_')return r;o?this.each(function(){var s=t.data(this,i),o=s&&t.isFunction(s[n])?s[n].apply(s,a):s;if(o!==s&&o!==e){r=o;return!1}}):this.each(function(){var e=t.data(this,i);e?e.option(n||{})._init():t.data(this,i,new s(n,this))});return r}};t.Widget=function(t,e){arguments.length&&this._createWidget(t,e)};t.Widget.prototype={widgetName:'widget',widgetEventPrefix:'',options:{disabled:!1},_createWidget:function(e,i){t.data(i,this.widgetName,this);this.element=t(i);this.options=t.extend(!0,{},this.options,this._getCreateOptions(),e);var s=this;this.element.bind('remove.'+this.widgetName,function(){s.destroy()});this._create();this._trigger('create');this._init()},_getCreateOptions:function(){return t.metadata&&t.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_init:function(){},destroy:function(){this.element.unbind('.'+this.widgetName).removeData(this.widgetName);this.widget().unbind('.'+this.widgetName).removeAttr('aria-disabled').removeClass(this.widgetBaseClass+'-disabled ui-state-disabled')},widget:function(){return this.element},option:function(i,s){var n=i;if(arguments.length===0)return t.extend({},this.options);if(typeof i==='string'){if(s===e)return this.options[i];n={};n[i]=s};this._setOptions(n);return this},_setOptions:function(e){var i=this;t.each(e,function(t,e){i._setOption(t,e)});return this},_setOption:function(t,e){this.options[t]=e;if(t==='disabled')this.widget()[e?'addClass':'removeClass'](this.widgetBaseClass+'-disabled ui-state-disabled').attr('aria-disabled',e);return this},enable:function(){return this._setOption('disabled',!1)},disable:function(){return this._setOption('disabled',!0)},_trigger:function(e,i,s){var o=this.options[e];i=t.Event(i);i.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase();s=s||{};if(i.originalEvent){e=t.event.props.length;for(var n;e;){n=t.event.props[--e];i[n]=i.originalEvent[n]}};this.element.trigger(i,s);return!(t.isFunction(o)&&o.call(this.element[0],i,s)===!1||i.isDefaultPrevented())}}})(jQuery);
+/*!
+ * jQuery UI Mouse 1.8.16
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Mouse
+ *
+ * Depends:
+ * jquery.ui.widget.js
+ */
+(function(t){var e=!1;t(document).mouseup(function(){e=!1});t.widget('ui.mouse',{options:{cancel:':input,option',distance:1,delay:0},_mouseInit:function(){var e=this;this.element.bind('mousedown.'+this.widgetName,function(t){return e._mouseDown(t)}).bind('click.'+this.widgetName,function(i){if(!0===t.data(i.target,e.widgetName+'.preventClickEvent')){t.removeData(i.target,e.widgetName+'.preventClickEvent');i.stopImmediatePropagation();return!1}});this.started=!1},_mouseDestroy:function(){this.element.unbind('.'+this.widgetName)},_mouseDown:function(i){if(!e){this._mouseStarted&&this._mouseUp(i);this._mouseDownEvent=i;var s=this,n=i.which==1,o=typeof this.options.cancel=='string'&&i.target.nodeName?t(i.target).closest(this.options.cancel).length:!1;if(!n||o||!this._mouseCapture(i))return!0;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){s.mouseDelayMet=!0},this.options.delay);if(this._mouseDistanceMet(i)&&this._mouseDelayMet(i)){this._mouseStarted=this._mouseStart(i)!==!1;if(!this._mouseStarted){i.preventDefault();return!0}};!0===t.data(i.target,this.widgetName+'.preventClickEvent')&&t.removeData(i.target,this.widgetName+'.preventClickEvent');this._mouseMoveDelegate=function(t){return s._mouseMove(t)};this._mouseUpDelegate=function(t){return s._mouseUp(t)};t(document).bind('mousemove.'+this.widgetName,this._mouseMoveDelegate).bind('mouseup.'+this.widgetName,this._mouseUpDelegate);i.preventDefault();return e=!0}},_mouseMove:function(e){if(t.browser.msie&&!(document.documentMode>=9)&&!e.button)return this._mouseUp(e);if(this._mouseStarted){this._mouseDrag(e);return e.preventDefault()};if(this._mouseDistanceMet(e)&&this._mouseDelayMet(e))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,e)!==!1)?this._mouseDrag(e):this._mouseUp(e);return!this._mouseStarted},_mouseUp:function(e){t(document).unbind('mousemove.'+this.widgetName,this._mouseMoveDelegate).unbind('mouseup.'+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=!1;e.target==this._mouseDownEvent.target&&t.data(e.target,this.widgetName+'.preventClickEvent',!0);this._mouseStop(e)};return!1},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})})(jQuery);(function(t){t.ui=t.ui||{};var e=/left|center|right/,i=/top|center|bottom/,s=t.fn.position,n=t.fn.offset;t.fn.position=function(n){if(!n||!n.of)return s.apply(this,arguments);n=t.extend({},n);var a=t(n.of),u=a[0],c=(n.collision||'flip').split(' '),r=n.offset?n.offset.split(' '):[0,0],l,h,o;if(u.nodeType===9){l=a.width();h=a.height();o={top:0,left:0}}
+else if(u.setTimeout){l=a.width();h=a.height();o={top:a.scrollTop(),left:a.scrollLeft()}}
+else if(u.preventDefault){n.at='left top';l=h=0;o={top:n.of.pageY,left:n.of.pageX}}
+else{l=a.outerWidth();h=a.outerHeight();o=a.offset()};t.each(['my','at'],function(){var t=(n[this]||'').split(' ');if(t.length===1)t=e.test(t[0])?t.concat(['center']):i.test(t[0])?['center'].concat(t):['center','center'];t[0]=e.test(t[0])?t[0]:'center';t[1]=i.test(t[1])?t[1]:'center';n[this]=t});if(c.length===1)c[1]=c[0];r[0]=parseInt(r[0],10)||0;if(r.length===1)r[1]=r[0];r[1]=parseInt(r[1],10)||0;if(n.at[0]==='right')o.left+=l;else if(n.at[0]==='center')o.left+=l/2;if(n.at[1]==='bottom')o.top+=h;else if(n.at[1]==='center')o.top+=h/2;o.left+=r[0];o.top+=r[1];return this.each(function(){var i=t(this),s=i.outerWidth(),a=i.outerHeight(),u=parseInt(t.curCSS(this,'marginLeft',!0))||0,d=parseInt(t.curCSS(this,'marginTop',!0))||0,p=s+u+(parseInt(t.curCSS(this,'marginRight',!0))||0),g=a+d+(parseInt(t.curCSS(this,'marginBottom',!0))||0),e=t.extend({},o),f;if(n.my[0]==='right')e.left-=s;else if(n.my[0]==='center')e.left-=s/2;if(n.my[1]==='bottom')e.top-=a;else if(n.my[1]==='center')e.top-=a/2;e.left=Math.round(e.left);e.top=Math.round(e.top);f={left:e.left-u,top:e.top-d};t.each(['left','top'],function(i,o){t.ui.position[c[i]]&&t.ui.position[c[i]][o](e,{targetWidth:l,targetHeight:h,elemWidth:s,elemHeight:a,collisionPosition:f,collisionWidth:p,collisionHeight:g,offset:r,my:n.my,at:n.at})});t.fn.bgiframe&&i.bgiframe();i.offset(t.extend(e,{using:n.using}))})};t.ui.position={fit:{left:function(e,i){var s=t(window);s=i.collisionPosition.left+i.collisionWidth-s.width()-s.scrollLeft();e.left=s>0?e.left-s:Math.max(e.left-i.collisionPosition.left,e.left)},top:function(e,i){var s=t(window);s=i.collisionPosition.top+i.collisionHeight-s.height()-s.scrollTop();e.top=s>0?e.top-s:Math.max(e.top-i.collisionPosition.top,e.top)}},flip:{left:function(e,i){if(i.at[0]!=='center'){var s=t(window);s=i.collisionPosition.left+i.collisionWidth-s.width()-s.scrollLeft();var n=i.my[0]==='left'?-i.elemWidth:i.my[0]==='right'?i.elemWidth:0,o=i.at[0]==='left'?i.targetWidth:-i.targetWidth,a=-2*i.offset[0];e.left+=i.collisionPosition.left<0?n+o+a:s>0?n+o+a:0}},top:function(e,i){if(i.at[1]!=='center'){var s=t(window);s=i.collisionPosition.top+i.collisionHeight-s.height()-s.scrollTop();var n=i.my[1]==='top'?-i.elemHeight:i.my[1]==='bottom'?i.elemHeight:0,o=i.at[1]==='top'?i.targetHeight:-i.targetHeight,a=-2*i.offset[1];e.top+=i.collisionPosition.top<0?n+o+a:s>0?n+o+a:0}}}};if(!t.offset.setOffset){t.offset.setOffset=function(e,i){if(/static/.test(t.curCSS(e,'position')))e.style.position='relative';var n=t(e),s=n.offset(),o=parseInt(t.curCSS(e,'top',!0),10)||0,a=parseInt(t.curCSS(e,'left',!0),10)||0;s={top:i.top-s.top+o,left:i.left-s.left+a};'using'in i?i.using.call(e,s):n.css(s)};t.fn.offset=function(e){var i=this[0];if(!i||!i.ownerDocument)return null;if(e)return this.each(function(){t.offset.setOffset(this,e)});return n.call(this)}}})(jQuery);(function(t){t.widget('ui.draggable',t.ui.mouse,{widgetEventPrefix:'drag',options:{addClasses:!0,appendTo:'parent',axis:!1,connectToSortable:!1,containment:!1,cursor:'auto',cursorAt:!1,grid:!1,handle:!1,helper:'original',iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:'default',scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:'both',snapTolerance:20,stack:!1,zIndex:!1},_create:function(){if(this.options.helper=='original'&&!/^(?:r|a|f)/.test(this.element.css('position')))this.element[0].style.position='relative';this.options.addClasses&&this.element.addClass('ui-draggable');this.options.disabled&&this.element.addClass('ui-draggable-disabled');this._mouseInit()},destroy:function(){if(this.element.data('draggable')){this.element.removeData('draggable').unbind('.draggable').removeClass('ui-draggable ui-draggable-dragging ui-draggable-disabled');this._mouseDestroy();return this}},_mouseCapture:function(e){var i=this.options;if(this.helper||i.disabled||t(e.target).is('.ui-resizable-handle'))return!1;this.handle=this._getHandle(e);if(!this.handle)return!1;if(i.iframeFix)t(i.iframeFix===!0?'iframe':i.iframeFix).each(function(){t('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+'px',height:this.offsetHeight+'px',position:'absolute',opacity:'0.001',zIndex:1E3}).css(t(this).offset()).appendTo('body')});return!0},_mouseStart:function(e){var i=this.options;this.helper=this._createHelper(e);this._cacheHelperProportions();if(t.ui.ddmanager)t.ui.ddmanager.current=this;this._cacheMargins();this.cssPosition=this.helper.css('position');this.scrollParent=this.helper.scrollParent();this.offset=this.positionAbs=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(e);this.originalPageX=e.pageX;this.originalPageY=e.pageY;i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt);i.containment&&this._setContainment();if(this._trigger('start',e)===!1){this._clear();return!1};this._cacheHelperProportions();t.ui.ddmanager&&!i.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e);this.helper.addClass('ui-draggable-dragging');this._mouseDrag(e,!0);t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e);return!0},_mouseDrag:function(e,i){this.position=this._generatePosition(e);this.positionAbs=this._convertPositionTo('absolute');if(!i){i=this._uiHash();if(this._trigger('drag',e,i)===!1){this._mouseUp({});return!1};this.position=i.position};if(!this.options.axis||this.options.axis!='y')this.helper[0].style.left=this.position.left+'px';if(!this.options.axis||this.options.axis!='x')this.helper[0].style.top=this.position.top+'px';t.ui.ddmanager&&t.ui.ddmanager.drag(this,e);return!1},_mouseStop:function(e){var i=!1;if(t.ui.ddmanager&&!this.options.dropBehaviour)i=t.ui.ddmanager.drop(this,e);if(this.dropped){i=this.dropped;this.dropped=!1};if((!this.element[0]||!this.element[0].parentNode)&&this.options.helper=='original')return!1;if(this.options.revert=='invalid'&&!i||this.options.revert=='valid'&&i||this.options.revert===!0||t.isFunction(this.options.revert)&&this.options.revert.call(this.element,i)){var s=this;t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){s._trigger('stop',e)!==!1&&s._clear()})}
+else this._trigger('stop',e)!==!1&&this._clear();return!1},_mouseUp:function(e){this.options.iframeFix===!0&&t('div.ui-draggable-iframeFix').each(function(){this.parentNode.removeChild(this)});t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e);return t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){this.helper.is('.ui-draggable-dragging')?this._mouseUp({}):this._clear();return this},_getHandle:function(e){var i=!this.options.handle||!t(this.options.handle,this.element).length?!0:!1;t(this.options.handle,this.element).find('*').andSelf().each(function(){if(this==e.target)i=!0});return i},_createHelper:function(e){var i=this.options;e=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e])):i.helper=='clone'?this.element.clone().removeAttr('id'):this.element;e.parents('body').length||e.appendTo(i.appendTo=='parent'?this.element[0].parentNode:i.appendTo);e[0]!=this.element[0]&&!/(fixed|absolute)/.test(e.css('position'))&&e.css('position','absolute');return e},_adjustOffsetFromHelper:function(e){if(typeof e=='string')e=e.split(' ');if(t.isArray(e))e={left:+e[0],top:+e[1]||0};if('left'in e)this.offset.click.left=e.left+this.margins.left;if('right'in e)this.offset.click.left=this.helperProportions.width-e.right+this.margins.left;if('top'in e)this.offset.click.top=e.top+this.margins.top;if('bottom'in e)this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();if(this.cssPosition=='absolute'&&this.scrollParent[0]!=document&&t.ui.contains(this.scrollParent[0],this.offsetParent[0])){e.left+=this.scrollParent.scrollLeft();e.top+=this.scrollParent.scrollTop()};if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=='html'&&t.browser.msie)e={top:0,left:0};return{top:e.top+(parseInt(this.offsetParent.css('borderTopWidth'),10)||0),left:e.left+(parseInt(this.offsetParent.css('borderLeftWidth'),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=='relative'){var t=this.element.position();return{top:t.top-(parseInt(this.helper.css('top'),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css('left'),10)||0)+this.scrollParent.scrollLeft()}}
+else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css('marginLeft'),10)||0,top:parseInt(this.element.css('marginTop'),10)||0,right:parseInt(this.element.css('marginRight'),10)||0,bottom:parseInt(this.element.css('marginBottom'),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e=this.options;if(e.containment=='parent')e.containment=this.helper[0].parentNode;if(e.containment=='document'||e.containment=='window')this.containment=[e.containment=='document'?0:t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,e.containment=='document'?0:t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,(e.containment=='document'?0:t(window).scrollLeft())+t(e.containment=='document'?document:window).width()-this.helperProportions.width-this.margins.left,(e.containment=='document'?0:t(window).scrollTop())+(t(e.containment=='document'?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(e.containment)&&e.containment.constructor!=Array){e=t(e.containment);var i=e[0];if(i){e.offset();var s=t(i).css('overflow')!='hidden';this.containment=[(parseInt(t(i).css('borderLeftWidth'),10)||0)+(parseInt(t(i).css('paddingLeft'),10)||0),(parseInt(t(i).css('borderTopWidth'),10)||0)+(parseInt(t(i).css('paddingTop'),10)||0),(s?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(t(i).css('borderLeftWidth'),10)||0)-(parseInt(t(i).css('paddingRight'),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(s?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(t(i).css('borderTopWidth'),10)||0)-(parseInt(t(i).css('paddingBottom'),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom];this.relative_container=e}}
+else if(e.containment.constructor==Array)this.containment=e.containment},_convertPositionTo:function(e,i){if(!i)i=this.position;e=e=='absolute'?1:-1;var s=this.cssPosition=='absolute'&&!(this.scrollParent[0]!=document&&t.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,n=/(html|body)/i.test(s[0].tagName);return{top:i.top+this.offset.relative.top*e+this.offset.parent.top*e-(t.browser.safari&&t.browser.version<526&&this.cssPosition=='fixed'?0:(this.cssPosition=='fixed'?-this.scrollParent.scrollTop():n?0:s.scrollTop())*e),left:i.left+this.offset.relative.left*e+this.offset.parent.left*e-(t.browser.safari&&t.browser.version<526&&this.cssPosition=='fixed'?0:(this.cssPosition=='fixed'?-this.scrollParent.scrollLeft():n?0:s.scrollLeft())*e)}},_generatePosition:function(e){var o=this.options,a=this.cssPosition=='absolute'&&!(this.scrollParent[0]!=document&&t.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,r=/(html|body)/i.test(a[0].tagName),s=e.pageX,n=e.pageY;if(this.originalPosition){var i;if(this.containment){if(this.relative_container){i=this.relative_container.offset();i=[this.containment[0]+i.left,this.containment[1]+i.top,this.containment[2]+i.left,this.containment[3]+i.top]}
+else i=this.containment;if(e.pageX-this.offset.click.left<i[0])s=i[0]+this.offset.click.left;if(e.pageY-this.offset.click.top<i[1])n=i[1]+this.offset.click.top;if(e.pageX-this.offset.click.left>i[2])s=i[2]+this.offset.click.left;if(e.pageY-this.offset.click.top>i[3])n=i[3]+this.offset.click.top};if(o.grid){n=o.grid[1]?this.originalPageY+Math.round((n-this.originalPageY)/o.grid[1])*o.grid[1]:this.originalPageY;n=i?!(n-this.offset.click.top<i[1]||n-this.offset.click.top>i[3])?n:!(n-this.offset.click.top<i[1])?n-o.grid[1]:n+o.grid[1]:n;s=o.grid[0]?this.originalPageX+Math.round((s-this.originalPageX)/o.grid[0])*o.grid[0]:this.originalPageX;s=i?!(s-this.offset.click.left<i[0]||s-this.offset.click.left>i[2])?s:!(s-this.offset.click.left<i[0])?s-o.grid[0]:s+o.grid[0]:s}};return{top:n-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(t.browser.safari&&t.browser.version<526&&this.cssPosition=='fixed'?0:this.cssPosition=='fixed'?-this.scrollParent.scrollTop():r?0:a.scrollTop()),left:s-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(t.browser.safari&&t.browser.version<526&&this.cssPosition=='fixed'?0:this.cssPosition=='fixed'?-this.scrollParent.scrollLeft():r?0:a.scrollLeft())}},_clear:function(){this.helper.removeClass('ui-draggable-dragging');this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove();this.helper=null;this.cancelHelperRemoval=!1},_trigger:function(e,i,s){s=s||this._uiHash();t.ui.plugin.call(this,e,[i,s]);if(e=='drag')this.positionAbs=this._convertPositionTo('absolute');return t.Widget.prototype._trigger.call(this,e,i,s)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});t.extend(t.ui.draggable,{version:'1.8.16'});t.ui.plugin.add('draggable','connectToSortable',{start:function(e,i){var s=t(this).data('draggable'),n=s.options,o=t.extend({},i,{item:s.element});s.sortables=[];t(n.connectToSortable).each(function(){var i=t.data(this,'sortable');if(i&&!i.options.disabled){s.sortables.push({instance:i,shouldRevert:i.options.revert});i.refreshPositions();i._trigger('activate',e,o)}})},stop:function(e,i){var s=t(this).data('draggable'),n=t.extend({},i,{item:s.element});t.each(s.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;s.cancelHelperRemoval=!0;this.instance.cancelHelperRemoval=!1;if(this.shouldRevert)this.instance.options.revert=!0;this.instance._mouseStop(e);this.instance.options.helper=this.instance.options._helper;s.options.helper=='original'&&this.instance.currentItem.css({top:'auto',left:'auto'})}
+else{this.instance.cancelHelperRemoval=!1;this.instance._trigger('deactivate',e,n)}})},drag:function(e,i){var s=t(this).data('draggable'),n=this;t.each(s.sortables,function(){this.instance.positionAbs=s.positionAbs;this.instance.helperProportions=s.helperProportions;this.instance.offset.click=s.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=t(n).clone().removeAttr('id').appendTo(this.instance.element).data('sortable-item',!0);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return i.helper[0]};e.target=this.instance.currentItem[0];this.instance._mouseCapture(e,!0);this.instance._mouseStart(e,!0,!0);this.instance.offset.click.top=s.offset.click.top;this.instance.offset.click.left=s.offset.click.left;this.instance.offset.parent.left-=s.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=s.offset.parent.top-this.instance.offset.parent.top;s._trigger('toSortable',e);s.dropped=this.instance.element;s.currentItem=s.element;this.instance.fromOutside=s};this.instance.currentItem&&this.instance._mouseDrag(e)}
+else if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=!0;this.instance.options.revert=!1;this.instance._trigger('out',e,this.instance._uiHash(this.instance));this.instance._mouseStop(e,!0);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();this.instance.placeholder&&this.instance.placeholder.remove();s._trigger('fromSortable',e);s.dropped=!1}})}});t.ui.plugin.add('draggable','cursor',{start:function(){var e=t('body'),i=t(this).data('draggable').options;if(e.css('cursor'))i._cursor=e.css('cursor');e.css('cursor',i.cursor)},stop:function(){var e=t(this).data('draggable').options;e._cursor&&t('body').css('cursor',e._cursor)}});t.ui.plugin.add('draggable','opacity',{start:function(e,i){e=t(i.helper);i=t(this).data('draggable').options;if(e.css('opacity'))i._opacity=e.css('opacity');e.css('opacity',i.opacity)},stop:function(e,i){e=t(this).data('draggable').options;e._opacity&&t(i.helper).css('opacity',e._opacity)}});t.ui.plugin.add('draggable','scroll',{start:function(){var e=t(this).data('draggable');if(e.scrollParent[0]!=document&&e.scrollParent[0].tagName!='HTML')e.overflowOffset=e.scrollParent.offset()},drag:function(e){var s=t(this).data('draggable'),i=s.options,n=!1;if(s.scrollParent[0]!=document&&s.scrollParent[0].tagName!='HTML'){if(!i.axis||i.axis!='x')if(s.overflowOffset.top+s.scrollParent[0].offsetHeight-e.pageY<i.scrollSensitivity)s.scrollParent[0].scrollTop=n=s.scrollParent[0].scrollTop+i.scrollSpeed;else if(e.pageY-s.overflowOffset.top<i.scrollSensitivity)s.scrollParent[0].scrollTop=n=s.scrollParent[0].scrollTop-i.scrollSpeed;if(!i.axis||i.axis!='y')if(s.overflowOffset.left+s.scrollParent[0].offsetWidth-e.pageX<i.scrollSensitivity)s.scrollParent[0].scrollLeft=n=s.scrollParent[0].scrollLeft+i.scrollSpeed;else if(e.pageX-s.overflowOffset.left<i.scrollSensitivity)s.scrollParent[0].scrollLeft=n=s.scrollParent[0].scrollLeft-i.scrollSpeed}
+else{if(!i.axis||i.axis!='x')if(e.pageY-t(document).scrollTop()<i.scrollSensitivity)n=t(document).scrollTop(t(document).scrollTop()-i.scrollSpeed);else if(t(window).height()-(e.pageY-t(document).scrollTop())<i.scrollSensitivity)n=t(document).scrollTop(t(document).scrollTop()+i.scrollSpeed);if(!i.axis||i.axis!='y')if(e.pageX-t(document).scrollLeft()<i.scrollSensitivity)n=t(document).scrollLeft(t(document).scrollLeft()-i.scrollSpeed);else if(t(window).width()-(e.pageX-t(document).scrollLeft())<i.scrollSensitivity)n=t(document).scrollLeft(t(document).scrollLeft()+i.scrollSpeed)};n!==!1&&t.ui.ddmanager&&!i.dropBehaviour&&t.ui.ddmanager.prepareOffsets(s,e)}});t.ui.plugin.add('draggable','snap',{start:function(){var e=t(this).data('draggable'),i=e.options;e.snapElements=[];t(i.snap.constructor!=String?i.snap.items||':data(draggable)':i.snap).each(function(){var i=t(this),s=i.offset();this!=e.element[0]&&e.snapElements.push({item:this,width:i.outerWidth(),height:i.outerHeight(),top:s.top,left:s.left})})},drag:function(e,i){for(var s=t(this).data('draggable'),b=s.options,n=b.snapTolerance,c=i.offset.left,m=c+s.helperProportions.width,u=i.offset.top,v=u+s.helperProportions.height,o=s.snapElements.length-1;o>=0;o--){var a=s.snapElements[o].left,l=a+s.snapElements[o].width,r=s.snapElements[o].top,h=r+s.snapElements[o].height;if(a-n<c&&c<l+n&&r-n<u&&u<h+n||a-n<c&&c<l+n&&r-n<v&&v<h+n||a-n<m&&m<l+n&&r-n<u&&u<h+n||a-n<m&&m<l+n&&r-n<v&&v<h+n){if(b.snapMode!='inner'){var d=Math.abs(r-v)<=n,f=Math.abs(h-u)<=n,p=Math.abs(a-m)<=n,g=Math.abs(l-c)<=n;if(d)i.position.top=s._convertPositionTo('relative',{top:r-s.helperProportions.height,left:0}).top-s.margins.top;if(f)i.position.top=s._convertPositionTo('relative',{top:h,left:0}).top-s.margins.top;if(p)i.position.left=s._convertPositionTo('relative',{top:0,left:a-s.helperProportions.width}).left-s.margins.left;if(g)i.position.left=s._convertPositionTo('relative',{top:0,left:l}).left-s.margins.left};var y=d||f||p||g;if(b.snapMode!='outer'){d=Math.abs(r-u)<=n;f=Math.abs(h-v)<=n;p=Math.abs(a-c)<=n;g=Math.abs(l-m)<=n;if(d)i.position.top=s._convertPositionTo('relative',{top:r,left:0}).top-s.margins.top;if(f)i.position.top=s._convertPositionTo('relative',{top:h-s.helperProportions.height,left:0}).top-s.margins.top;if(p)i.position.left=s._convertPositionTo('relative',{top:0,left:a}).left-s.margins.left;if(g)i.position.left=s._convertPositionTo('relative',{top:0,left:l-s.helperProportions.width}).left-s.margins.left};if(!s.snapElements[o].snapping&&(d||f||p||g||y))s.options.snap.snap&&s.options.snap.snap.call(s.element,e,t.extend(s._uiHash(),{snapItem:s.snapElements[o].item}));s.snapElements[o].snapping=d||f||p||g||y}
+else{s.snapElements[o].snapping&&s.options.snap.release&&s.options.snap.release.call(s.element,e,t.extend(s._uiHash(),{snapItem:s.snapElements[o].item}));s.snapElements[o].snapping=!1}}}});t.ui.plugin.add('draggable','stack',{start:function(){var e=t(this).data('draggable').options;e=t.makeArray(t(e.stack)).sort(function(e,i){return(parseInt(t(e).css('zIndex'),10)||0)-(parseInt(t(i).css('zIndex'),10)||0)});if(e.length){var i=parseInt(e[0].style.zIndex)||0;t(e).each(function(t){this.style.zIndex=i+t});this[0].style.zIndex=i+e.length}}});t.ui.plugin.add('draggable','zIndex',{start:function(e,i){e=t(i.helper);i=t(this).data('draggable').options;if(e.css('zIndex'))i._zIndex=e.css('zIndex');e.css('zIndex',i.zIndex)},stop:function(e,i){e=t(this).data('draggable').options;e._zIndex&&t(i.helper).css('zIndex',e._zIndex)}})})(jQuery);(function(t){t.widget('ui.droppable',{widgetEventPrefix:'drop',options:{accept:'*',activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:'default',tolerance:'intersect'},_create:function(){var e=this.options,i=e.accept;this.isover=0;this.isout=1;this.accept=t.isFunction(i)?i:function(t){return t.is(i)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};t.ui.ddmanager.droppables[e.scope]=t.ui.ddmanager.droppables[e.scope]||[];t.ui.ddmanager.droppables[e.scope].push(this);e.addClasses&&this.element.addClass('ui-droppable')},destroy:function(){for(var i=t.ui.ddmanager.droppables[this.options.scope],e=0;e<i.length;e++)i[e]==this&&i.splice(e,1);this.element.removeClass('ui-droppable ui-droppable-disabled').removeData('droppable').unbind('.droppable');return this},_setOption:function(e,i){if(e=='accept')this.accept=t.isFunction(i)?i:function(t){return t.is(i)};t.Widget.prototype._setOption.apply(this,arguments)},_activate:function(e){var i=t.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass);i&&this._trigger('activate',e,this.ui(i))},_deactivate:function(e){var i=t.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass);i&&this._trigger('deactivate',e,this.ui(i))},_over:function(e){var i=t.ui.ddmanager.current;if(!(!i||(i.currentItem||i.element)[0]==this.element[0]))if(this.accept.call(this.element[0],i.currentItem||i.element)){this.options.hoverClass&&this.element.addClass(this.options.hoverClass);this._trigger('over',e,this.ui(i))}},_out:function(e){var i=t.ui.ddmanager.current;if(!(!i||(i.currentItem||i.element)[0]==this.element[0]))if(this.accept.call(this.element[0],i.currentItem||i.element)){this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger('out',e,this.ui(i))}},_drop:function(e,i){var s=i||t.ui.ddmanager.current;if(!s||(s.currentItem||s.element)[0]==this.element[0])return!1;var n=!1;this.element.find(':data(droppable)').not('.ui-draggable-dragging').each(function(){var e=t.data(this,'droppable');if(e.options.greedy&&!e.options.disabled&&e.options.scope==s.options.scope&&e.accept.call(e.element[0],s.currentItem||s.element)&&t.ui.intersect(s,t.extend(e,{offset:e.element.offset()}),e.options.tolerance)){n=!0;return!1}});if(n)return!1;if(this.accept.call(this.element[0],s.currentItem||s.element)){this.options.activeClass&&this.element.removeClass(this.options.activeClass);this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger('drop',e,this.ui(s));return this.element};return!1},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.helper,position:t.position,offset:t.positionAbs}}});t.extend(t.ui.droppable,{version:'1.8.16'});t.ui.intersect=function(e,i,s){if(!i.offset)return!1;var a=(e.positionAbs||e.position.absolute).left,l=a+e.helperProportions.width,r=(e.positionAbs||e.position.absolute).top,h=r+e.helperProportions.height,n=i.offset.left,c=n+i.proportions.width,o=i.offset.top,u=o+i.proportions.height;switch(s){case'fit':return n<=a&&l<=c&&o<=r&&h<=u;case'intersect':return n<a+e.helperProportions.width/2&&l-e.helperProportions.width/2<c&&o<r+e.helperProportions.height/2&&h-e.helperProportions.height/2<u;case'pointer':return t.ui.isOver((e.positionAbs||e.position.absolute).top+(e.clickOffset||e.offset.click).top,(e.positionAbs||e.position.absolute).left+(e.clickOffset||e.offset.click).left,o,n,i.proportions.height,i.proportions.width);case'touch':return(r>=o&&r<=u||h>=o&&h<=u||r<o&&h>u)&&(a>=n&&a<=c||l>=n&&l<=c||a<n&&l>c);default:return!1}};t.ui.ddmanager={current:null,droppables:{'default':[]},prepareOffsets:function(e,i){var n=t.ui.ddmanager.droppables[e.options.scope]||[],r=i?i.type:null,a=(e.currentItem||e.element).find(':data(droppable)').andSelf(),s=0;e:for(;s<n.length;s++)if(!(n[s].options.disabled||e&&!n[s].accept.call(n[s].element[0],e.currentItem||e.element))){for(var o=0;o<a.length;o++)if(a[o]==n[s].element[0]){n[s].proportions.height=0;continue;e};n[s].visible=n[s].element.css('display')!='none';if(n[s].visible){r=='mousedown'&&n[s]._activate.call(n[s],i);n[s].offset=n[s].element.offset();n[s].proportions={width:n[s].element[0].offsetWidth,height:n[s].element[0].offsetHeight}}}},drop:function(e,i){var s=!1;t.each(t.ui.ddmanager.droppables[e.options.scope]||[],function(){if(this.options){if(!this.options.disabled&&this.visible&&t.ui.intersect(e,this,this.options.tolerance))s=s||this._drop.call(this,i);if(!this.options.disabled&&this.visible&&this.accept.call(this.element[0],e.currentItem||e.element)){this.isout=1;this.isover=0;this._deactivate.call(this,i)}}});return s},dragStart:function(e,i){e.element.parents(':not(body,html)').bind('scroll.droppable',function(){e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)})},drag:function(e,i){e.options.refreshPositions&&t.ui.ddmanager.prepareOffsets(e,i);t.each(t.ui.ddmanager.droppables[e.options.scope]||[],function(){if(!(this.options.disabled||this.greedyChild||!this.visible)){var n=t.ui.intersect(e,this,this.options.tolerance);if(n=!n&&this.isover==1?'isout':n&&this.isover==0?'isover':null){var s;if(this.options.greedy){var o=this.element.parents(':data(droppable):eq(0)');if(o.length){s=t.data(o[0],'droppable');s.greedyChild=n=='isover'?1:0}};if(s&&n=='isover'){s.isover=0;s.isout=1;s._out.call(s,i)};this[n]=1;this[n=='isout'?'isover':'isout']=0;this[n=='isover'?'_over':'_out'].call(this,i);if(s&&n=='isout'){s.isout=0;s.isover=1;s._over.call(s,i)}}}})},dragStop:function(e,i){e.element.parents(':not(body,html)').unbind('scroll.droppable');e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)}}})(jQuery);(function(t){t.widget('ui.resizable',t.ui.mouse,{widgetEventPrefix:'resize',options:{alsoResize:!1,animate:!1,animateDuration:'slow',animateEasing:'swing',aspectRatio:!1,autoHide:!1,containment:!1,ghost:!1,grid:!1,handles:'e,s,se',helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1E3},_create:function(){var s=this,e=this.options;this.element.addClass('ui-resizable');t.extend(this,{_aspectRatio:!!e.aspectRatio,aspectRatio:e.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:e.helper||e.ghost||e.animate?e.helper||'ui-resizable-helper':null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){/relative/.test(this.element.css('position'))&&t.browser.opera&&this.element.css({position:'relative',top:'auto',left:'auto'});this.element.wrap(t('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:this.element.css('position'),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css('top'),left:this.element.css('left')}));this.element=this.element.parent().data('resizable',this.element.data('resizable'));this.elementIsWrapper=!0;this.element.css({marginLeft:this.originalElement.css('marginLeft'),marginTop:this.originalElement.css('marginTop'),marginRight:this.originalElement.css('marginRight'),marginBottom:this.originalElement.css('marginBottom')});this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});this.originalResizeStyle=this.originalElement.css('resize');this.originalElement.css('resize','none');this._proportionallyResizeElements.push(this.originalElement.css({position:'static',zoom:1,display:'block'}));this.originalElement.css({margin:this.originalElement.css('margin')});this._proportionallyResize()};this.handles=e.handles||(!t('.ui-resizable-handle',this.element).length?'e,s,se':{n:'.ui-resizable-n',e:'.ui-resizable-e',s:'.ui-resizable-s',w:'.ui-resizable-w',se:'.ui-resizable-se',sw:'.ui-resizable-sw',ne:'.ui-resizable-ne',nw:'.ui-resizable-nw'});if(this.handles.constructor==String){if(this.handles=='all')this.handles='n,e,s,w,se,sw,ne,nw';var a=this.handles.split(',');this.handles={};for(var o=0;o<a.length;o++){var i=t.trim(a[o]),n=t('<div class="ui-resizable-handle '+('ui-resizable-'+i)+'"></div>');/sw|se|ne|nw/.test(i)&&n.css({zIndex:++e.zIndex});'se'==i&&n.addClass('ui-icon ui-icon-gripsmall-diagonal-se');this.handles[i]='.ui-resizable-'+i;this.element.append(n)}};this._renderAxis=function(e){e=e||this.element;for(var i in this.handles){if(this.handles[i].constructor==String)this.handles[i]=t(this.handles[i],this.element).show();if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var s=t(this.handles[i],this.element),n=0;n=/sw|ne|nw|se|n|s/.test(i)?s.outerHeight():s.outerWidth();s=['padding',/ne|nw|n/.test(i)?'Top':/se|sw|s/.test(i)?'Bottom':/^e$/.test(i)?'Right':'Left'].join('');e.css(s,n);this._proportionallyResize()};t(this.handles[i])}};this._renderAxis(this.element);this._handles=t('.ui-resizable-handle',this.element).disableSelection();this._handles.mouseover(function(){if(!s.resizing){if(this.className)var t=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);s.axis=t&&t[1]?t[1]:'se'}});if(e.autoHide){this._handles.hide();t(this.element).addClass('ui-resizable-autohide').hover(function(){if(!e.disabled){t(this).removeClass('ui-resizable-autohide');s._handles.show()}},function(){if(!e.disabled)if(!s.resizing){t(this).addClass('ui-resizable-autohide');s._handles.hide()}})};this._mouseInit()},destroy:function(){this._mouseDestroy();var i=function(e){t(e).removeClass('ui-resizable ui-resizable-disabled ui-resizable-resizing').removeData('resizable').unbind('.resizable').find('.ui-resizable-handle').remove()};if(this.elementIsWrapper){i(this.element);var e=this.element;e.after(this.originalElement.css({position:e.css('position'),width:e.outerWidth(),height:e.outerHeight(),top:e.css('top'),left:e.css('left')})).remove()};this.originalElement.css('resize',this.originalResizeStyle);i(this.originalElement);return this},_mouseCapture:function(e){var i=!1;for(var s in this.handles)if(t(this.handles[s])[0]==e.target)i=!0;return!this.options.disabled&&i},_mouseStart:function(e){var n=this.options,o=this.element.position(),s=this.element;this.resizing=!0;this.documentScroll={top:t(document).scrollTop(),left:t(document).scrollLeft()};if(s.is('.ui-draggable')||/absolute/.test(s.css('position')))s.css({position:'absolute',top:o.top,left:o.left});t.browser.opera&&/relative/.test(s.css('position'))&&s.css({position:'relative',top:'auto',left:'auto'});this._renderProxy();o=i(this.helper.css('left'));var a=i(this.helper.css('top'));if(n.containment){o+=t(n.containment).scrollLeft()||0;a+=t(n.containment).scrollTop()||0};this.offset=this.helper.offset();this.position={left:o,top:a};this.size=this._helper?{width:s.outerWidth(),height:s.outerHeight()}:{width:s.width(),height:s.height()};this.originalSize=this._helper?{width:s.outerWidth(),height:s.outerHeight()}:{width:s.width(),height:s.height()};this.originalPosition={left:o,top:a};this.sizeDiff={width:s.outerWidth()-s.width(),height:s.outerHeight()-s.height()};this.originalMousePosition={left:e.pageX,top:e.pageY};this.aspectRatio=typeof n.aspectRatio=='number'?n.aspectRatio:this.originalSize.width/this.originalSize.height||1;n=t('.ui-resizable-'+this.axis).css('cursor');t('body').css('cursor',n=='auto'?this.axis+'-resize':n);s.addClass('ui-resizable-resizing');this._propagate('start',e);return!0},_mouseDrag:function(t){var s=this.helper,e=this.originalMousePosition,i=this._change[this.axis];if(!i)return!1;e=i.apply(this,[t,t.pageX-e.left||0,t.pageY-e.top||0]);this._updateVirtualBoundaries(t.shiftKey);if(this._aspectRatio||t.shiftKey)e=this._updateRatio(e,t);e=this._respectSize(e,t);this._propagate('resize',t);s.css({top:this.position.top+'px',left:this.position.left+'px',width:this.size.width+'px',height:this.size.height+'px'});!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize();this._updateCache(e);this._trigger('resize',t,this.ui());return!1},_mouseStop:function(e){this.resizing=!1;var o=this.options,i=this;if(this._helper){var s=this._proportionallyResizeElements,n=s.length&&/textarea/i.test(s[0].nodeName);s=n&&t.ui.hasScroll(s[0],'left')?0:i.sizeDiff.height;n=n?0:i.sizeDiff.width;n={width:i.helper.width()-n,height:i.helper.height()-s};s=parseInt(i.element.css('left'),10)+(i.position.left-i.originalPosition.left)||null;var a=parseInt(i.element.css('top'),10)+(i.position.top-i.originalPosition.top)||null;o.animate||this.element.css(t.extend(n,{top:a,left:s}));i.helper.height(i.size.height);i.helper.width(i.size.width);this._helper&&!o.animate&&this._proportionallyResize()};t('body').css('cursor','auto');this.element.removeClass('ui-resizable-resizing');this._propagate('stop',e);this._helper&&this.helper.remove();return!1},_updateVirtualBoundaries:function(t){var i=this.options,s,n,o;i={minWidth:e(i.minWidth)?i.minWidth:0,maxWidth:e(i.maxWidth)?i.maxWidth:Infinity,minHeight:e(i.minHeight)?i.minHeight:0,maxHeight:e(i.maxHeight)?i.maxHeight:Infinity};if(this._aspectRatio||t){t=i.minHeight*this.aspectRatio;n=i.minWidth/this.aspectRatio;s=i.maxHeight*this.aspectRatio;o=i.maxWidth/this.aspectRatio;if(t>i.minWidth)i.minWidth=t;if(n>i.minHeight)i.minHeight=n;if(s<i.maxWidth)i.maxWidth=s;if(o<i.maxHeight)i.maxHeight=o};this._vBoundaries=i},_updateCache:function(t){this.offset=this.helper.offset();if(e(t.left))this.position.left=t.left;if(e(t.top))this.position.top=t.top;if(e(t.height))this.size.height=t.height;if(e(t.width))this.size.width=t.width},_updateRatio:function(t){var i=this.position,s=this.size,n=this.axis;if(e(t.height))t.width=t.height*this.aspectRatio;else if(e(t.width))t.height=t.width/this.aspectRatio;if(n=='sw'){t.left=i.left+(s.width-t.width);t.top=null};if(n=='nw'){t.top=i.top+(s.height-t.height);t.left=i.left+(s.width-t.width)};return t},_respectSize:function(t){var i=this._vBoundaries,s=this.axis,r=e(t.width)&&i.maxWidth&&i.maxWidth<t.width,l=e(t.height)&&i.maxHeight&&i.maxHeight<t.height,h=e(t.width)&&i.minWidth&&i.minWidth>t.width,c=e(t.height)&&i.minHeight&&i.minHeight>t.height;if(h)t.width=i.minWidth;if(c)t.height=i.minHeight;if(r)t.width=i.maxWidth;if(l)t.height=i.maxHeight;var n=this.originalPosition.left+this.originalSize.width,o=this.position.top+this.size.height,a=/sw|nw|w/.test(s);s=/nw|ne|n/.test(s);if(h&&a)t.left=n-i.minWidth;if(r&&a)t.left=n-i.maxWidth;if(c&&s)t.top=o-i.minHeight;if(l&&s)t.top=o-i.maxHeight;if((i=!t.width&&!t.height)&&!t.left&&t.top)t.top=null;else if(i&&!t.top&&t.left)t.left=null;return t},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var i=this.helper||this.element,s=0;s<this._proportionallyResizeElements.length;s++){var e=this._proportionallyResizeElements[s];if(!this.borderDif){var n=[e.css('borderTopWidth'),e.css('borderRightWidth'),e.css('borderBottomWidth'),e.css('borderLeftWidth')],o=[e.css('paddingTop'),e.css('paddingRight'),e.css('paddingBottom'),e.css('paddingLeft')];this.borderDif=t.map(n,function(t,e){t=parseInt(t,10)||0;e=parseInt(o[e],10)||0;return t+e})};t.browser.msie&&(t(i).is(':hidden')||t(i).parents(':hidden').length)||e.css({height:i.height()-this.borderDif[0]-this.borderDif[2]||0,width:i.width()-this.borderDif[1]-this.borderDif[3]||0})}},_renderProxy:function(){var s=this.options;this.elementOffset=this.element.offset();if(this._helper){this.helper=this.helper||t('<div style="overflow:hidden;"></div>');var e=t.browser.msie&&t.browser.version<7,i=e?1:0;e=e?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+e,height:this.element.outerHeight()+e,position:'absolute',left:this.elementOffset.left-i+'px',top:this.elementOffset.top-i+'px',zIndex:++s.zIndex});this.helper.appendTo('body').disableSelection()}
+else this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){return{left:this.originalPosition.left+e,width:this.originalSize.width-e}},n:function(t,e,i){return{top:this.originalPosition.top+i,height:this.originalSize.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(e,i,s){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,i,s]))},sw:function(e,i,s){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,i,s]))},ne:function(e,i,s){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,i,s]))},nw:function(e,i,s){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,i,s]))}},_propagate:function(e,i){t.ui.plugin.call(this,e,[i,this.ui()]);e!='resize'&&this._trigger(e,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}});t.extend(t.ui.resizable,{version:'1.8.16'});t.ui.plugin.add('resizable','alsoResize',{start:function(){var e=t(this).data('resizable').options,i=function(e){t(e).each(function(){var e=t(this);e.data('resizable-alsoresize',{width:parseInt(e.width(),10),height:parseInt(e.height(),10),left:parseInt(e.css('left'),10),top:parseInt(e.css('top'),10),position:e.css('position')})})};if(typeof e.alsoResize=='object'&&!e.alsoResize.parentNode)if(e.alsoResize.length){e.alsoResize=e.alsoResize[0];i(e.alsoResize)}
+else t.each(e.alsoResize,function(t){i(t)});else i(e.alsoResize)},resize:function(e,i){var s=t(this).data('resizable');e=s.options;var n=s.originalSize,o=s.originalPosition,r={height:s.size.height-n.height||0,width:s.size.width-n.width||0,top:s.position.top-o.top||0,left:s.position.left-o.left||0},a=function(e,n){t(e).each(function(){var e=t(this),a=t(this).data('resizable-alsoresize'),o={},l=n&&n.length?n:e.parents(i.originalElement[0]).length?['width','height']:['width','height','top','left'];t.each(l,function(t,e){if((t=(a[e]||0)+(r[e]||0))&&t>=0)o[e]=t||null});if(t.browser.opera&&/relative/.test(e.css('position'))){s._revertToRelativePosition=!0;e.css({position:'absolute',top:'auto',left:'auto'})};e.css(o)})};typeof e.alsoResize=='object'&&!e.alsoResize.nodeType?t.each(e.alsoResize,function(t,e){a(t,e)}):a(e.alsoResize)},stop:function(){var i=t(this).data('resizable'),e=i.options,s=function(e){t(e).each(function(){var e=t(this);e.css({position:e.data('resizable-alsoresize').position})})};if(i._revertToRelativePosition){i._revertToRelativePosition=!1;typeof e.alsoResize=='object'&&!e.alsoResize.nodeType?t.each(e.alsoResize,function(t){s(t)}):s(e.alsoResize)};t(this).removeData('resizable-alsoresize')}});t.ui.plugin.add('resizable','animate',{stop:function(e){var i=t(this).data('resizable'),r=i.options,s=i._proportionallyResizeElements,n=s.length&&/textarea/i.test(s[0].nodeName),o=n&&t.ui.hasScroll(s[0],'left')?0:i.sizeDiff.height;n={width:i.size.width-(n?0:i.sizeDiff.width),height:i.size.height-o};o=parseInt(i.element.css('left'),10)+(i.position.left-i.originalPosition.left)||null;var a=parseInt(i.element.css('top'),10)+(i.position.top-i.originalPosition.top)||null;i.element.animate(t.extend(n,a&&o?{top:a,left:o}:{}),{duration:r.animateDuration,easing:r.animateEasing,step:function(){var n={width:parseInt(i.element.css('width'),10),height:parseInt(i.element.css('height'),10),top:parseInt(i.element.css('top'),10),left:parseInt(i.element.css('left'),10)};s&&s.length&&t(s[0]).css({width:n.width,height:n.height});i._updateCache(n);i._propagate('resize',e)}})}});t.ui.plugin.add('resizable','containment',{start:function(){var e=t(this).data('resizable'),s=e.element,n=e.options.containment;if(s=n instanceof t?n.get(0):/parent/.test(n)?s.parent().get(0):n){e.containerElement=t(s);if(/document/.test(n)||n==document){e.containerOffset={left:0,top:0};e.containerPosition={left:0,top:0};e.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight}}
+else{var o=t(s),l=[];t(['Top','Right','Left','Bottom']).each(function(t,e){l[t]=i(o.css('padding'+e))});e.containerOffset=o.offset();e.containerPosition=o.position();e.containerSize={height:o.innerHeight()-l[3],width:o.innerWidth()-l[1]};n=e.containerOffset;var a=e.containerSize.height,r=e.containerSize.width;r=t.ui.hasScroll(s,'left')?s.scrollWidth:r;a=t.ui.hasScroll(s)?s.scrollHeight:a;e.parentData={element:s,left:n.left,top:n.top,width:r,height:a}}}},resize:function(e){var i=t(this).data('resizable'),o=i.options,s=i.containerOffset,a=i.position;e=i._aspectRatio||e.shiftKey;var n={top:0,left:0},r=i.containerElement;if(r[0]!=document&&/static/.test(r.css('position')))n=s;if(a.left<(i._helper?s.left:0)){i.size.width+=i._helper?i.position.left-s.left:i.position.left-n.left;if(e)i.size.height=i.size.width/o.aspectRatio;i.position.left=o.helper?s.left:0};if(a.top<(i._helper?s.top:0)){i.size.height+=i._helper?i.position.top-s.top:i.position.top;if(e)i.size.width=i.size.height*o.aspectRatio;i.position.top=i._helper?s.top:0};i.offset.left=i.parentData.left+i.position.left;i.offset.top=i.parentData.top+i.position.top;o=Math.abs((i._helper?i.offset.left-n.left:i.offset.left-n.left)+i.sizeDiff.width);s=Math.abs((i._helper?i.offset.top-n.top:i.offset.top-s.top)+i.sizeDiff.height);a=i.containerElement.get(0)==i.element.parent().get(0);n=/relative|absolute/.test(i.containerElement.css('position'));if(a&&n)o-=i.parentData.left;if(o+i.size.width>=i.parentData.width){i.size.width=i.parentData.width-o;if(e)i.size.height=i.size.width/i.aspectRatio};if(s+i.size.height>=i.parentData.height){i.size.height=i.parentData.height-s;if(e)i.size.width=i.size.height*i.aspectRatio}},stop:function(){var e=t(this).data('resizable'),s=e.options,n=e.containerOffset,o=e.containerPosition,a=e.containerElement,i=t(e.helper),r=i.offset(),l=i.outerWidth()-e.sizeDiff.width;i=i.outerHeight()-e.sizeDiff.height;e._helper&&!s.animate&&/relative/.test(a.css('position'))&&t(this).css({left:r.left-o.left-n.left,width:l,height:i});e._helper&&!s.animate&&/static/.test(a.css('position'))&&t(this).css({left:r.left-o.left-n.left,width:l,height:i})}});t.ui.plugin.add('resizable','ghost',{start:function(){var e=t(this).data('resizable'),i=e.options,s=e.size;e.ghost=e.originalElement.clone();e.ghost.css({opacity:0.25,display:'block',position:'relative',height:s.height,width:s.width,margin:0,left:0,top:0}).addClass('ui-resizable-ghost').addClass(typeof i.ghost=='string'?i.ghost:'');e.ghost.appendTo(e.helper)},resize:function(){var e=t(this).data('resizable');e.ghost&&e.ghost.css({position:'relative',height:e.size.height,width:e.size.width})},stop:function(){var e=t(this).data('resizable');e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}});t.ui.plugin.add('resizable','grid',{resize:function(){var e=t(this).data('resizable'),i=e.options,r=e.size,s=e.originalSize,o=e.originalPosition,a=e.axis;i.grid=typeof i.grid=='number'?[i.grid,i.grid]:i.grid;var n=Math.round((r.width-s.width)/(i.grid[0]||1))*(i.grid[0]||1);i=Math.round((r.height-s.height)/(i.grid[1]||1))*(i.grid[1]||1);if(/^(se|s|e)$/.test(a)){e.size.width=s.width+n;e.size.height=s.height+i}
+else if(/^(ne)$/.test(a)){e.size.width=s.width+n;e.size.height=s.height+i;e.position.top=o.top-i}
+else{if(/^(sw)$/.test(a)){e.size.width=s.width+n;e.size.height=s.height+i}
+else{e.size.width=s.width+n;e.size.height=s.height+i;e.position.top=o.top-i};e.position.left=o.left-n}}});var i=function(t){return parseInt(t,10)||0},e=function(t){return!isNaN(parseInt(t,10))}})(jQuery);(function(t){t.widget('ui.selectable',t.ui.mouse,{options:{appendTo:'body',autoRefresh:!0,distance:0,filter:'*',tolerance:'touch'},_create:function(){var i=this;this.element.addClass('ui-selectable');this.dragged=!1;var e;this.refresh=function(){e=t(i.options.filter,i.element[0]);e.each(function(){var e=t(this),i=e.offset();t.data(this,'selectable-item',{element:this,$element:e,left:i.left,top:i.top,right:i.left+e.outerWidth(),bottom:i.top+e.outerHeight(),startselected:!1,selected:e.hasClass('ui-selected'),selecting:e.hasClass('ui-selecting'),unselecting:e.hasClass('ui-unselecting')})})};this.refresh();this.selectees=e.addClass('ui-selectee');this._mouseInit();this.helper=t('<div class=\'ui-selectable-helper\'></div>')},destroy:function(){this.selectees.removeClass('ui-selectee').removeData('selectable-item');this.element.removeClass('ui-selectable ui-selectable-disabled').removeData('selectable').unbind('.selectable');this._mouseDestroy();return this},_mouseStart:function(e){var s=this;this.opos=[e.pageX,e.pageY];if(!this.options.disabled){var i=this.options;this.selectees=t(i.filter,this.element[0]);this._trigger('start',e);t(i.appendTo).append(this.helper);this.helper.css({left:e.clientX,top:e.clientY,width:0,height:0});i.autoRefresh&&this.refresh();this.selectees.filter('.ui-selected').each(function(){var i=t.data(this,'selectable-item');i.startselected=!0;if(!e.metaKey){i.$element.removeClass('ui-selected');i.selected=!1;i.$element.addClass('ui-unselecting');i.unselecting=!0;s._trigger('unselecting',e,{unselecting:i.element})}});t(e.target).parents().andSelf().each(function(){var i=t.data(this,'selectable-item');if(i){var n=!e.metaKey||!i.$element.hasClass('ui-selected');i.$element.removeClass(n?'ui-unselecting':'ui-selected').addClass(n?'ui-selecting':'ui-unselecting');i.unselecting=!n;i.selecting=n;(i.selected=n)?s._trigger('selecting',e,{selecting:i.element}):s._trigger('unselecting',e,{unselecting:i.element});return!1}})}},_mouseDrag:function(e){var a=this;this.dragged=!0;if(!this.options.disabled){var l=this.options,i=this.opos[0],s=this.opos[1],n=e.pageX,o=e.pageY;if(i>n){var r=n;n=i;i=r};if(s>o){r=o;o=s;s=r};this.helper.css({left:i,top:s,width:n-i,height:o-s});this.selectees.each(function(){var r=t.data(this,'selectable-item');if(!(!r||r.element==a.element[0])){var h=!1;if(l.tolerance=='touch')h=!(r.left>n||r.right<i||r.top>o||r.bottom<s);else if(l.tolerance=='fit')h=r.left>i&&r.right<n&&r.top>s&&r.bottom<o;if(h){if(r.selected){r.$element.removeClass('ui-selected');r.selected=!1};if(r.unselecting){r.$element.removeClass('ui-unselecting');r.unselecting=!1};if(!r.selecting){r.$element.addClass('ui-selecting');r.selecting=!0;a._trigger('selecting',e,{selecting:r.element})}}
+else{if(r.selecting)if(e.metaKey&&r.startselected){r.$element.removeClass('ui-selecting');r.selecting=!1;r.$element.addClass('ui-selected');r.selected=!0}
+else{r.$element.removeClass('ui-selecting');r.selecting=!1;if(r.startselected){r.$element.addClass('ui-unselecting');r.unselecting=!0};a._trigger('unselecting',e,{unselecting:r.element})};if(r.selected)if(!e.metaKey&&!r.startselected){r.$element.removeClass('ui-selected');r.selected=!1;r.$element.addClass('ui-unselecting');r.unselecting=!0;a._trigger('unselecting',e,{unselecting:r.element})}}}});return!1}},_mouseStop:function(e){var i=this;this.dragged=!1;t('.ui-unselecting',this.element[0]).each(function(){var s=t.data(this,'selectable-item');s.$element.removeClass('ui-unselecting');s.unselecting=!1;s.startselected=!1;i._trigger('unselected',e,{unselected:s.element})});t('.ui-selecting',this.element[0]).each(function(){var s=t.data(this,'selectable-item');s.$element.removeClass('ui-selecting').addClass('ui-selected');s.selecting=!1;s.selected=!0;s.startselected=!0;i._trigger('selected',e,{selected:s.element})});this._trigger('stop',e);this.helper.remove();return!1}});t.extend(t.ui.selectable,{version:'1.8.16'})})(jQuery);(function(t){t.widget('ui.sortable',t.ui.mouse,{widgetEventPrefix:'sort',options:{appendTo:'parent',axis:!1,connectWith:!1,containment:!1,cursor:'auto',cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:'original',items:'> *',opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:'default',tolerance:'intersect',zIndex:1E3},_create:function(){var t=this.options;this.containerCache={};this.element.addClass('ui-sortable');this.refresh();this.floating=this.items.length?t.axis==='x'||/left|right/.test(this.items[0].item.css('float'))||/inline|table-cell/.test(this.items[0].item.css('display')):!1;this.offset=this.element.offset();this._mouseInit()},destroy:function(){this.element.removeClass('ui-sortable ui-sortable-disabled').removeData('sortable').unbind('.sortable');this._mouseDestroy();for(var t=this.items.length-1;t>=0;t--)this.items[t].item.removeData('sortable-item');return this},_setOption:function(e,i){if(e==='disabled'){this.options[e]=i;this.widget()[i?'addClass':'removeClass']('ui-sortable-disabled')}
+else t.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(e,i){if(this.reverting)return!1;if(this.options.disabled||this.options.type=='static')return!1;this._refreshItems(e);var s=null,o=this;t(e.target).parents().each(function(){if(t.data(this,'sortable-item')==o){s=t(this);return!1}});if(t.data(e.target,'sortable-item')==o)s=t(e.target);if(!s)return!1;if(this.options.handle&&!i){var n=!1;t(this.options.handle,s).find('*').andSelf().each(function(){if(this==e.target)n=!0});if(!n)return!1};this.currentItem=s;this._removeCurrentsFromItems();return!0},_mouseStart:function(e,i,s){i=this.options;var n=this;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(e);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.helper.css('position','absolute');this.cssPosition=this.helper.css('position');t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(e);this.originalPageX=e.pageX;this.originalPageY=e.pageY;i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};this.helper[0]!=this.currentItem[0]&&this.currentItem.hide();this._createPlaceholder();i.containment&&this._setContainment();if(i.cursor){if(t('body').css('cursor'))this._storedCursor=t('body').css('cursor');t('body').css('cursor',i.cursor)};if(i.opacity){if(this.helper.css('opacity'))this._storedOpacity=this.helper.css('opacity');this.helper.css('opacity',i.opacity)};if(i.zIndex){if(this.helper.css('zIndex'))this._storedZIndex=this.helper.css('zIndex');this.helper.css('zIndex',i.zIndex)};if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!='HTML')this.overflowOffset=this.scrollParent.offset();this._trigger('start',e,this._uiHash());this._preserveHelperProportions||this._cacheHelperProportions();if(!s)for(s=this.containers.length-1;s>=0;s--)this.containers[s]._trigger('activate',e,n._uiHash(this));if(t.ui.ddmanager)t.ui.ddmanager.current=this;t.ui.ddmanager&&!i.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e);this.dragging=!0;this.helper.addClass('ui-sortable-helper');this._mouseDrag(e);return!0},_mouseDrag:function(e){this.position=this._generatePosition(e);this.positionAbs=this._convertPositionTo('absolute');if(!this.lastPositionAbs)this.lastPositionAbs=this.positionAbs;if(this.options.scroll){var i=this.options,s=!1;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!='HTML'){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<i.scrollSensitivity)this.scrollParent[0].scrollTop=s=this.scrollParent[0].scrollTop+i.scrollSpeed;else if(e.pageY-this.overflowOffset.top<i.scrollSensitivity)this.scrollParent[0].scrollTop=s=this.scrollParent[0].scrollTop-i.scrollSpeed;if(this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<i.scrollSensitivity)this.scrollParent[0].scrollLeft=s=this.scrollParent[0].scrollLeft+i.scrollSpeed;else if(e.pageX-this.overflowOffset.left<i.scrollSensitivity)this.scrollParent[0].scrollLeft=s=this.scrollParent[0].scrollLeft-i.scrollSpeed}
+else{if(e.pageY-t(document).scrollTop()<i.scrollSensitivity)s=t(document).scrollTop(t(document).scrollTop()-i.scrollSpeed);else if(t(window).height()-(e.pageY-t(document).scrollTop())<i.scrollSensitivity)s=t(document).scrollTop(t(document).scrollTop()+i.scrollSpeed);if(e.pageX-t(document).scrollLeft()<i.scrollSensitivity)s=t(document).scrollLeft(t(document).scrollLeft()-i.scrollSpeed);else if(t(window).width()-(e.pageX-t(document).scrollLeft())<i.scrollSensitivity)s=t(document).scrollLeft(t(document).scrollLeft()+i.scrollSpeed)};s!==!1&&t.ui.ddmanager&&!i.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e)};this.positionAbs=this._convertPositionTo('absolute');if(!this.options.axis||this.options.axis!='y')this.helper[0].style.left=this.position.left+'px';if(!this.options.axis||this.options.axis!='x')this.helper[0].style.top=this.position.top+'px';for(i=this.items.length-1;i>=0;i--){s=this.items[i];var n=s.item[0],o=this._intersectsWithPointer(s);if(o)if(n!=this.currentItem[0]&&this.placeholder[o==1?'next':'prev']()[0]!=n&&!t.ui.contains(this.placeholder[0],n)&&(this.options.type=='semi-dynamic'?!t.ui.contains(this.element[0],n):!0)){this.direction=o==1?'down':'up';if(this.options.tolerance=='pointer'||this._intersectsWithSides(s))this._rearrange(e,s);else break;this._trigger('change',e,this._uiHash());break}};this._contactContainers(e);t.ui.ddmanager&&t.ui.ddmanager.drag(this,e);this._trigger('sort',e,this._uiHash());this.lastPositionAbs=this.positionAbs;return!1},_mouseStop:function(e,i){if(e){t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e);if(this.options.revert){var s=this;i=s.placeholder.offset();s.reverting=!0;t(this.helper).animate({left:i.left-this.offset.parent.left-s.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:i.top-this.offset.parent.top-s.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){s._clear(e)})}
+else this._clear(e,i);return!1}},cancel:function(){var i=this;if(this.dragging){this._mouseUp({target:null});this.options.helper=='original'?this.currentItem.css(this._storedCSS).removeClass('ui-sortable-helper'):this.currentItem.show();for(var e=this.containers.length-1;e>=0;e--){this.containers[e]._trigger('deactivate',null,i._uiHash(this));if(this.containers[e].containerCache.over){this.containers[e]._trigger('out',null,i._uiHash(this));this.containers[e].containerCache.over=0}}};if(this.placeholder){this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.options.helper!='original'&&this.helper&&this.helper[0].parentNode&&this.helper.remove();t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null});this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)};return this},serialize:function(e){var s=this._getItemsAsjQuery(e&&e.connected),i=[];e=e||{};t(s).each(function(){var s=(t(e.item||this).attr(e.attribute||'id')||'').match(e.expression||/(.+)[-=_](.+)/);if(s)i.push((e.key||s[1]+'[]')+'='+(e.key&&e.expression?s[1]:s[2]))});!i.length&&e.key&&i.push(e.key+'=');return i.join('&')},toArray:function(e){var s=this._getItemsAsjQuery(e&&e.connected),i=[];e=e||{};s.each(function(){i.push(t(e.item||this).attr(e.attribute||'id')||'')});return i},_intersectsWith:function(t){var e=this.positionAbs.left,h=e+this.helperProportions.width,i=this.positionAbs.top,c=i+this.helperProportions.height,n=t.left,a=n+t.width,o=t.top,r=o+t.height,s=this.offset.click.top,l=this.offset.click.left;s=i+s>o&&i+s<r&&e+l>n&&e+l<a;return this.options.tolerance=='pointer'||this.options.forcePointerForContainers||this.options.tolerance!='pointer'&&this.helperProportions[this.floating?'width':'height']>t[this.floating?'width':'height']?s:n<e+this.helperProportions.width/2&&h-this.helperProportions.width/2<a&&o<i+this.helperProportions.height/2&&c-this.helperProportions.height/2<r},_intersectsWithPointer:function(e){var i=t.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,e.top,e.height);e=t.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,e.left,e.width);i=i&&e;e=this._getDragVerticalDirection();var s=this._getDragHorizontalDirection();if(!i)return!1;return this.floating?s&&s=='right'||e=='down'?2:1:e&&(e=='down'?2:1)},_intersectsWithSides:function(e){var n=t.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,e.top+e.height/2,e.height);e=t.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,e.left+e.width/2,e.width);var i=this._getDragVerticalDirection(),s=this._getDragHorizontalDirection();return this.floating&&s?s=='right'&&e||s=='left'&&!e:i&&(i=='down'&&n||i=='up'&&!n)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return t!=0&&(t>0?'down':'up')},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return t!=0&&(t>0?'right':'left')},refresh:function(t){this._refreshItems(t);this.refreshPositions();return this},_connectWith:function(){var t=this.options;return t.connectWith.constructor==String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){var r=[],s=[],o=this._connectWith();if(o&&e)for(e=o.length-1;e>=0;e--)for(var a=t(o[e]),n=a.length-1;n>=0;n--){var i=t.data(a[n],'sortable');if(i&&i!=this&&!i.options.disabled)s.push([t.isFunction(i.options.items)?i.options.items.call(i.element):t(i.options.items,i.element).not('.ui-sortable-helper').not('.ui-sortable-placeholder'),i])};s.push([t.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not('.ui-sortable-helper').not('.ui-sortable-placeholder'),this]);for(e=s.length-1;e>=0;e--)s[e][0].each(function(){r.push(this)});return t(r)},_removeCurrentsFromItems:function(){for(var i=this.currentItem.find(':data(sortable-item)'),t=0;t<this.items.length;t++)for(var e=0;e<i.length;e++)i[e]==this.items[t].item[0]&&this.items.splice(t,1)},_refreshItems:function(e){this.items=[];this.containers=[this];var l=this.items,r=[[t.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],o=this._connectWith();if(o)for(var s=o.length-1;s>=0;s--)for(var a=t(o[s]),n=a.length-1;n>=0;n--){var i=t.data(a[n],'sortable');if(i&&i!=this&&!i.options.disabled){r.push([t.isFunction(i.options.items)?i.options.items.call(i.element[0],e,{item:this.currentItem}):t(i.options.items,i.element),i]);this.containers.push(i)}};for(s=r.length-1;s>=0;s--){e=r[s][1];o=r[s][0];n=0;for(a=o.length;n<a;n++){i=t(o[n]);i.data('sortable-item',e);l.push({item:i,instance:e,width:0,height:0,left:0,top:0})}}},refreshPositions:function(e){if(this.offsetParent&&this.helper)this.offset.parent=this._getParentOffset();for(var i=this.items.length-1;i>=0;i--){var n=this.items[i];if(!(n.instance!=this.currentContainer&&this.currentContainer&&n.item[0]!=this.currentItem[0])){var s=this.options.toleranceElement?t(this.options.toleranceElement,n.item):n.item;if(!e){n.width=s.outerWidth();n.height=s.outerHeight()};s=s.offset();n.left=s.left;n.top=s.top}};if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(i=this.containers.length-1;i>=0;i--){s=this.containers[i].element.offset();this.containers[i].containerCache.left=s.left;this.containers[i].containerCache.top=s.top;this.containers[i].containerCache.width=this.containers[i].element.outerWidth();this.containers[i].containerCache.height=this.containers[i].element.outerHeight()};return this},_createPlaceholder:function(e){var i=e||this,s=i.options;if(!s.placeholder||s.placeholder.constructor==String){var n=s.placeholder;s.placeholder={element:function(){var e=t(document.createElement(i.currentItem[0].nodeName)).addClass(n||i.currentItem[0].className+' ui-sortable-placeholder').removeClass('ui-sortable-helper')[0];if(!n)e.style.visibility='hidden';return e},update:function(t,e){if(!(n&&!s.forcePlaceholderSize)){e.height()||e.height(i.currentItem.innerHeight()-parseInt(i.currentItem.css('paddingTop')||0,10)-parseInt(i.currentItem.css('paddingBottom')||0,10));e.width()||e.width(i.currentItem.innerWidth()-parseInt(i.currentItem.css('paddingLeft')||0,10)-parseInt(i.currentItem.css('paddingRight')||0,10))}}}};i.placeholder=t(s.placeholder.element.call(i.element,i.currentItem));i.currentItem.after(i.placeholder);s.placeholder.update(i,i.placeholder)},_contactContainers:function(e){for(var n=null,s=null,i=this.containers.length-1;i>=0;i--)if(!t.ui.contains(this.currentItem[0],this.containers[i].element[0]))if(this._intersectsWith(this.containers[i].containerCache)){if(!(n&&t.ui.contains(this.containers[i].element[0],n.element[0]))){n=this.containers[i];s=i}}
+else if(this.containers[i].containerCache.over){this.containers[i]._trigger('out',e,this._uiHash(this));this.containers[i].containerCache.over=0};if(n)if(this.containers.length===1){this.containers[s]._trigger('over',e,this._uiHash(this));this.containers[s].containerCache.over=1}
+else if(this.currentContainer!=this.containers[s]){n=1E4;i=null;for(var r=this.positionAbs[this.containers[s].floating?'left':'top'],o=this.items.length-1;o>=0;o--)if(t.ui.contains(this.containers[s].element[0],this.items[o].item[0])){var a=this.items[o][this.containers[s].floating?'left':'top'];if(Math.abs(a-r)<n){n=Math.abs(a-r);i=this.items[o]}};if(i||this.options.dropOnEmpty){this.currentContainer=this.containers[s];i?this._rearrange(e,i,null,!0):this._rearrange(e,null,this.containers[s].element,!0);this._trigger('change',e,this._uiHash());this.containers[s]._trigger('change',e,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[s]._trigger('over',e,this._uiHash(this));this.containers[s].containerCache.over=1}}},_createHelper:function(e){var i=this.options;e=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e,this.currentItem])):i.helper=='clone'?this.currentItem.clone():this.currentItem;e.parents('body').length||t(i.appendTo!='parent'?i.appendTo:this.currentItem[0].parentNode)[0].appendChild(e[0]);if(e[0]==this.currentItem[0])this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css('position'),top:this.currentItem.css('top'),left:this.currentItem.css('left')};if(e[0].style.width==''||i.forceHelperSize)e.width(this.currentItem.width());if(e[0].style.height==''||i.forceHelperSize)e.height(this.currentItem.height());return e},_adjustOffsetFromHelper:function(e){if(typeof e=='string')e=e.split(' ');if(t.isArray(e))e={left:+e[0],top:+e[1]||0};if('left'in e)this.offset.click.left=e.left+this.margins.left;if('right'in e)this.offset.click.left=this.helperProportions.width-e.right+this.margins.left;if('top'in e)this.offset.click.top=e.top+this.margins.top;if('bottom'in e)this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();if(this.cssPosition=='absolute'&&this.scrollParent[0]!=document&&t.ui.contains(this.scrollParent[0],this.offsetParent[0])){e.left+=this.scrollParent.scrollLeft();e.top+=this.scrollParent.scrollTop()};if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=='html'&&t.browser.msie)e={top:0,left:0};return{top:e.top+(parseInt(this.offsetParent.css('borderTopWidth'),10)||0),left:e.left+(parseInt(this.offsetParent.css('borderLeftWidth'),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=='relative'){var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css('top'),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css('left'),10)||0)+this.scrollParent.scrollLeft()}}
+else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css('marginLeft'),10)||0,top:parseInt(this.currentItem.css('marginTop'),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var i=this.options;if(i.containment=='parent')i.containment=this.helper[0].parentNode;if(i.containment=='document'||i.containment=='window')this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,t(i.containment=='document'?document:window).width()-this.helperProportions.width-this.margins.left,(t(i.containment=='document'?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(i.containment)){var e=t(i.containment)[0];i=t(i.containment).offset();var s=t(e).css('overflow')!='hidden';this.containment=[i.left+(parseInt(t(e).css('borderLeftWidth'),10)||0)+(parseInt(t(e).css('paddingLeft'),10)||0)-this.margins.left,i.top+(parseInt(t(e).css('borderTopWidth'),10)||0)+(parseInt(t(e).css('paddingTop'),10)||0)-this.margins.top,i.left+(s?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(t(e).css('borderLeftWidth'),10)||0)-(parseInt(t(e).css('paddingRight'),10)||0)-this.helperProportions.width-this.margins.left,i.top+(s?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(t(e).css('borderTopWidth'),10)||0)-(parseInt(t(e).css('paddingBottom'),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(e,i){if(!i)i=this.position;e=e=='absolute'?1:-1;var s=this.cssPosition=='absolute'&&!(this.scrollParent[0]!=document&&t.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,n=/(html|body)/i.test(s[0].tagName);return{top:i.top+this.offset.relative.top*e+this.offset.parent.top*e-(t.browser.safari&&this.cssPosition=='fixed'?0:(this.cssPosition=='fixed'?-this.scrollParent.scrollTop():n?0:s.scrollTop())*e),left:i.left+this.offset.relative.left*e+this.offset.parent.left*e-(t.browser.safari&&this.cssPosition=='fixed'?0:(this.cssPosition=='fixed'?-this.scrollParent.scrollLeft():n?0:s.scrollLeft())*e)}},_generatePosition:function(e){var n=this.options,o=this.cssPosition=='absolute'&&!(this.scrollParent[0]!=document&&t.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,a=/(html|body)/i.test(o[0].tagName);if(this.cssPosition=='relative'&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0]))this.offset.relative=this._getRelativeOffset();var i=e.pageX,s=e.pageY;if(this.originalPosition){if(this.containment){if(e.pageX-this.offset.click.left<this.containment[0])i=this.containment[0]+this.offset.click.left;if(e.pageY-this.offset.click.top<this.containment[1])s=this.containment[1]+this.offset.click.top;if(e.pageX-this.offset.click.left>this.containment[2])i=this.containment[2]+this.offset.click.left;if(e.pageY-this.offset.click.top>this.containment[3])s=this.containment[3]+this.offset.click.top};if(n.grid){s=this.originalPageY+Math.round((s-this.originalPageY)/n.grid[1])*n.grid[1];s=this.containment?!(s-this.offset.click.top<this.containment[1]||s-this.offset.click.top>this.containment[3])?s:!(s-this.offset.click.top<this.containment[1])?s-n.grid[1]:s+n.grid[1]:s;i=this.originalPageX+Math.round((i-this.originalPageX)/n.grid[0])*n.grid[0];i=this.containment?!(i-this.offset.click.left<this.containment[0]||i-this.offset.click.left>this.containment[2])?i:!(i-this.offset.click.left<this.containment[0])?i-n.grid[0]:i+n.grid[0]:i}};return{top:s-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(t.browser.safari&&this.cssPosition=='fixed'?0:this.cssPosition=='fixed'?-this.scrollParent.scrollTop():a?0:o.scrollTop()),left:i-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(t.browser.safari&&this.cssPosition=='fixed'?0:this.cssPosition=='fixed'?-this.scrollParent.scrollLeft():a?0:o.scrollLeft())}},_rearrange:function(t,e,i,s){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],this.direction=='down'?e.item[0]:e.item[0].nextSibling);this.counter=this.counter?++this.counter:1;var n=this,o=this.counter;window.setTimeout(function(){o==n.counter&&n.refreshPositions(!s)},0)},_clear:function(e,i){this.reverting=!1;var n=[];!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem);this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var s in this._storedCSS)if(this._storedCSS[s]=='auto'||this._storedCSS[s]=='static')this._storedCSS[s]='';this.currentItem.css(this._storedCSS).removeClass('ui-sortable-helper')}
+else this.currentItem.show();this.fromOutside&&!i&&n.push(function(t){this._trigger('receive',t,this._uiHash(this.fromOutside))});if((this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not('.ui-sortable-helper')[0]||this.domPosition.parent!=this.currentItem.parent()[0])&&!i)n.push(function(t){this._trigger('update',t,this._uiHash())});if(!t.ui.contains(this.element[0],this.currentItem[0])){i||n.push(function(t){this._trigger('remove',t,this._uiHash())});for(s=this.containers.length-1;s>=0;s--)if(t.ui.contains(this.containers[s].element[0],this.currentItem[0])&&!i){n.push(function(t){return function(e){t._trigger('receive',e,this._uiHash(this))}}.call(this,this.containers[s]));n.push(function(t){return function(e){t._trigger('update',e,this._uiHash(this))}}.call(this,this.containers[s]))}};for(s=this.containers.length-1;s>=0;s--){i||n.push(function(t){return function(e){t._trigger('deactivate',e,this._uiHash(this))}}.call(this,this.containers[s]));if(this.containers[s].containerCache.over){n.push(function(t){return function(e){t._trigger('out',e,this._uiHash(this))}}.call(this,this.containers[s]));this.containers[s].containerCache.over=0}};this._storedCursor&&t('body').css('cursor',this._storedCursor);this._storedOpacity&&this.helper.css('opacity',this._storedOpacity);if(this._storedZIndex)this.helper.css('zIndex',this._storedZIndex=='auto'?'':this._storedZIndex);this.dragging=!1;if(this.cancelHelperRemoval){if(!i){this._trigger('beforeStop',e,this._uiHash());for(s=0;s<n.length;s++)n[s].call(this,e);this._trigger('stop',e,this._uiHash())};return!1};i||this._trigger('beforeStop',e,this._uiHash());this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.helper[0]!=this.currentItem[0]&&this.helper.remove();this.helper=null;if(!i){for(s=0;s<n.length;s++)n[s].call(this,e);this._trigger('stop',e,this._uiHash())};this.fromOutside=!1;return!0},_trigger:function(){t.Widget.prototype._trigger.apply(this,arguments)===!1&&this.cancel()},_uiHash:function(e){var i=e||this;return{helper:i.helper,placeholder:i.placeholder||t([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:e?e.element:null}}});t.extend(t.ui.sortable,{version:'1.8.16'})})(jQuery);(function(t){t.widget('ui.accordion',{options:{active:0,animated:'slide',autoHeight:!0,clearStyle:!1,collapsible:!1,event:'click',fillSpace:!1,header:'> li > :first-child,> :not(li):even',icons:{header:'ui-icon-triangle-1-e',headerSelected:'ui-icon-triangle-1-s'},navigation:!1,navigationFilter:function(){return this.href.toLowerCase()===location.href.toLowerCase()}},_create:function(){var e=this,i=e.options;e.running=0;e.element.addClass('ui-accordion ui-widget ui-helper-reset').children('li').addClass('ui-accordion-li-fix');e.headers=e.element.find(i.header).addClass('ui-accordion-header ui-helper-reset ui-state-default ui-corner-all').bind('mouseenter.accordion',function(){i.disabled||t(this).addClass('ui-state-hover')}).bind('mouseleave.accordion',function(){i.disabled||t(this).removeClass('ui-state-hover')}).bind('focus.accordion',function(){i.disabled||t(this).addClass('ui-state-focus')}).bind('blur.accordion',function(){i.disabled||t(this).removeClass('ui-state-focus')});e.headers.next().addClass('ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom');if(i.navigation){var s=e.element.find('a').filter(i.navigationFilter).eq(0);if(s.length){var n=s.closest('.ui-accordion-header');e.active=n.length?n:s.closest('.ui-accordion-content').prev()}};e.active=e._findActive(e.active||i.active).addClass('ui-state-default ui-state-active').toggleClass('ui-corner-all').toggleClass('ui-corner-top');e.active.next().addClass('ui-accordion-content-active');e._createIcons();e.resize();e.element.attr('role','tablist');e.headers.attr('role','tab').bind('keydown.accordion',function(t){return e._keydown(t)}).next().attr('role','tabpanel');e.headers.not(e.active||'').attr({'aria-expanded':'false','aria-selected':'false',tabIndex:-1}).next().hide();e.active.length?e.active.attr({'aria-expanded':'true','aria-selected':'true',tabIndex:0}):e.headers.eq(0).attr('tabIndex',0);t.browser.safari||e.headers.find('a').attr('tabIndex',-1);i.event&&e.headers.bind(i.event.split(' ').join('.accordion ')+'.accordion',function(t){e._clickHandler.call(e,t,this);t.preventDefault()})},_createIcons:function(){var e=this.options;if(e.icons){t('<span></span>').addClass('ui-icon '+e.icons.header).prependTo(this.headers);this.active.children('.ui-icon').toggleClass(e.icons.header).toggleClass(e.icons.headerSelected);this.element.addClass('ui-accordion-icons')}},_destroyIcons:function(){this.headers.children('.ui-icon').remove();this.element.removeClass('ui-accordion-icons')},destroy:function(){var e=this.options;this.element.removeClass('ui-accordion ui-widget ui-helper-reset').removeAttr('role');this.headers.unbind('.accordion').removeClass('ui-accordion-header ui-accordion-disabled ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top').removeAttr('role').removeAttr('aria-expanded').removeAttr('aria-selected').removeAttr('tabIndex');this.headers.find('a').removeAttr('tabIndex');this._destroyIcons();var i=this.headers.next().css('display','').removeAttr('role').removeClass('ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-accordion-disabled ui-state-disabled');if(e.autoHeight||e.fillHeight)i.css('height','');return t.Widget.prototype.destroy.call(this)},_setOption:function(e,i){t.Widget.prototype._setOption.apply(this,arguments);e=='active'&&this.activate(i);if(e=='icons'){this._destroyIcons();i&&this._createIcons()};if(e=='disabled')this.headers.add(this.headers.next())[i?'addClass':'removeClass']('ui-accordion-disabled ui-state-disabled')},_keydown:function(e){if(!(this.options.disabled||e.altKey||e.ctrlKey)){var i=t.ui.keyCode,n=this.headers.length,o=this.headers.index(e.target),s=!1;switch(e.keyCode){case i.RIGHT:case i.DOWN:s=this.headers[(o+1)%n];break;case i.LEFT:case i.UP:s=this.headers[(o-1+n)%n];break;case i.SPACE:case i.ENTER:this._clickHandler({target:e.target},e.target);e.preventDefault()};if(s){t(e.target).attr('tabIndex',-1);t(s).attr('tabIndex',0);s.focus();return!1};return!0}},resize:function(){var i=this.options,e;if(i.fillSpace){if(t.browser.msie){var s=this.element.parent().css('overflow');this.element.parent().css('overflow','hidden')};e=this.element.parent().height();t.browser.msie&&this.element.parent().css('overflow',s);this.headers.each(function(){e-=t(this).outerHeight(!0)});this.headers.next().each(function(){t(this).height(Math.max(0,e-t(this).innerHeight()+t(this).height()))}).css('overflow','auto')}
+else if(i.autoHeight){e=0;this.headers.next().each(function(){e=Math.max(e,t(this).height('').height())}).height(e)};return this},activate:function(t){this.options.active=t;t=this._findActive(t)[0];this._clickHandler({target:t},t);return this},_findActive:function(e){return e?typeof e==='number'?this.headers.filter(':eq('+e+')'):this.headers.not(this.headers.not(e)):e===!1?t([]):this.headers.filter(':eq(0)')},_clickHandler:function(e,i){var s=this.options;if(!s.disabled)if(e.target){e=t(e.currentTarget||i);i=e[0]===this.active[0];s.active=s.collapsible&&i?!1:this.headers.index(e);if(!(this.running||!s.collapsible&&i)){var l=this.active;o=e.next();n=this.active.next();a={options:s,newHeader:i&&s.collapsible?t([]):e,oldHeader:this.active,newContent:i&&s.collapsible?t([]):o,oldContent:n};var r=this.headers.index(this.active[0])>this.headers.index(e[0]);this.active=i?t([]):e;this._toggle(o,n,a,i,r);l.removeClass('ui-state-active ui-corner-top').addClass('ui-state-default ui-corner-all').children('.ui-icon').removeClass(s.icons.headerSelected).addClass(s.icons.header);if(!i){e.removeClass('ui-state-default ui-corner-all').addClass('ui-state-active ui-corner-top').children('.ui-icon').removeClass(s.icons.header).addClass(s.icons.headerSelected);e.next().addClass('ui-accordion-content-active')}}}
+else if(s.collapsible){this.active.removeClass('ui-state-active ui-corner-top').addClass('ui-state-default ui-corner-all').children('.ui-icon').removeClass(s.icons.headerSelected).addClass(s.icons.header);this.active.next().addClass('ui-accordion-content-active');var n=this.active.next(),a={options:s,newHeader:t([]),oldHeader:s.active,newContent:t([]),oldContent:n},o=this.active=t([]);this._toggle(o,n,a)}},_toggle:function(e,i,s,n,o){var r=this,a=r.options;r.toShow=e;r.toHide=i;r.data=s;var h=function(){if(r)return r._completed.apply(r,arguments)};r._trigger('changestart',null,r.data);r.running=i.size()===0?e.size():i.size();if(a.animated){s={};s=a.collapsible&&n?{toShow:t([]),toHide:i,complete:h,down:o,autoHeight:a.autoHeight||a.fillSpace}:{toShow:e,toHide:i,complete:h,down:o,autoHeight:a.autoHeight||a.fillSpace};if(!a.proxied)a.proxied=a.animated;if(!a.proxiedDuration)a.proxiedDuration=a.duration;a.animated=t.isFunction(a.proxied)?a.proxied(s):a.proxied;a.duration=t.isFunction(a.proxiedDuration)?a.proxiedDuration(s):a.proxiedDuration;n=t.ui.accordion.animations;var c=a.duration,l=a.animated;if(l&&!n[l]&&!t.easing[l])l='slide';n[l]||(n[l]=function(t){this.slide(t,{easing:l,duration:c||700})});n[l](s)}
+else{if(a.collapsible&&n)e.toggle();else{i.hide();e.show()};h(!0)};i.prev().attr({'aria-expanded':'false','aria-selected':'false',tabIndex:-1}).blur();e.prev().attr({'aria-expanded':'true','aria-selected':'true',tabIndex:0}).focus()},_completed:function(t){this.running=t?0:--this.running;if(!this.running){this.options.clearStyle&&this.toShow.add(this.toHide).css({height:'',overflow:''});this.toHide.removeClass('ui-accordion-content-active');if(this.toHide.length)this.toHide.parent()[0].className=this.toHide.parent()[0].className;this._trigger('change',null,this.data)}}});t.extend(t.ui.accordion,{version:'1.8.16',animations:{slide:function(e,i){e=t.extend({easing:'swing',duration:300},e,i);if(e.toHide.size())if(e.toShow.size()){var r=e.toShow.css('overflow'),n=0,s={},o={},a;i=e.toShow;a=i[0].style.width;i.width(parseInt(i.parent().width(),10)-parseInt(i.css('paddingLeft'),10)-parseInt(i.css('paddingRight'),10)-(parseInt(i.css('borderLeftWidth'),10)||0)-(parseInt(i.css('borderRightWidth'),10)||0));t.each(['height','paddingTop','paddingBottom'],function(i,n){o[n]='hide';i=(''+t.css(e.toShow[0],n)).match(/^([\d+-.]+)(.*)$/);s[n]={value:i[1],unit:i[2]||'px'}});e.toShow.css({height:0,overflow:'hidden'}).show();e.toHide.filter(':hidden').each(e.complete).end().filter(':visible').animate(o,{step:function(t,i){if(i.prop=='height')n=i.end-i.start===0?0:(i.now-i.start)/(i.end-i.start);e.toShow[0].style[i.prop]=n*s[i.prop].value+s[i.prop].unit},duration:e.duration,easing:e.easing,complete:function(){e.autoHeight||e.toShow.css('height','');e.toShow.css({width:a,overflow:r});e.complete()}})}
+else e.toHide.animate({height:'hide',paddingTop:'hide',paddingBottom:'hide'},e);else e.toShow.animate({height:'show',paddingTop:'show',paddingBottom:'show'},e)},bounceslide:function(t){this.slide(t,{easing:t.down?'easeOutBounce':'swing',duration:t.down?1E3:200})}}})})(jQuery);(function(t){var e=0;t.widget('ui.autocomplete',{options:{appendTo:'body',autoFocus:!1,delay:300,minLength:1,position:{my:'left top',at:'left bottom',collision:'none'},source:null},pending:0,_create:function(){var e=this,s=this.element[0].ownerDocument,i;this.element.addClass('ui-autocomplete-input').attr('autocomplete','off').attr({role:'textbox','aria-autocomplete':'list','aria-haspopup':'true'}).bind('keydown.autocomplete',function(s){if(!(e.options.disabled||e.element.propAttr('readOnly'))){i=!1;var n=t.ui.keyCode;switch(s.keyCode){case n.PAGE_UP:e._move('previousPage',s);break;case n.PAGE_DOWN:e._move('nextPage',s);break;case n.UP:e._move('previous',s);s.preventDefault();break;case n.DOWN:e._move('next',s);s.preventDefault();break;case n.ENTER:case n.NUMPAD_ENTER:if(e.menu.active){i=!0;s.preventDefault()};case n.TAB:if(!e.menu.active)return;e.menu.select(s);break;case n.ESCAPE:e.element.val(e.term);e.close(s);break;default:clearTimeout(e.searching);e.searching=setTimeout(function(){if(e.term!=e.element.val()){e.selectedItem=null;e.search(null,s)}},e.options.delay);break}}}).bind('keypress.autocomplete',function(t){if(i){i=!1;t.preventDefault()}}).bind('focus.autocomplete',function(){if(!e.options.disabled){e.selectedItem=null;e.previous=e.element.val()}}).bind('blur.autocomplete',function(t){if(!e.options.disabled){clearTimeout(e.searching);e.closing=setTimeout(function(){e.close(t);e._change(t)},150)}});this._initSource();this.response=function(){return e._response.apply(e,arguments)};this.menu=t('<ul></ul>').addClass('ui-autocomplete').appendTo(t(this.options.appendTo||'body',s)[0]).mousedown(function(i){var s=e.menu.element[0];t(i.target).closest('.ui-menu-item').length||setTimeout(function(){t(document).one('mousedown',function(i){i.target!==e.element[0]&&i.target!==s&&!t.ui.contains(s,i.target)&&e.close()})},1);setTimeout(function(){clearTimeout(e.closing)},13)}).menu({focus:function(t,i){i=i.item.data('item.autocomplete');!1!==e._trigger('focus',t,{item:i})&&/^key/.test(t.originalEvent.type)&&e.element.val(i.value)},selected:function(t,i){var n=i.item.data('item.autocomplete'),o=e.previous;if(e.element[0]!==s.activeElement){e.element.focus();e.previous=o;setTimeout(function(){e.previous=o;e.selectedItem=n},1)};!1!==e._trigger('select',t,{item:n})&&e.element.val(n.value);e.term=e.element.val();e.close(t);e.selectedItem=n},blur:function(){e.menu.element.is(':visible')&&e.element.val()!==e.term&&e.element.val(e.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data('menu');t.fn.bgiframe&&this.menu.element.bgiframe()},destroy:function(){this.element.removeClass('ui-autocomplete-input').removeAttr('autocomplete').removeAttr('role').removeAttr('aria-autocomplete').removeAttr('aria-haspopup');this.menu.element.remove();t.Widget.prototype.destroy.call(this)},_setOption:function(e,i){t.Widget.prototype._setOption.apply(this,arguments);e==='source'&&this._initSource();if(e==='appendTo')this.menu.element.appendTo(t(i||'body',this.element[0].ownerDocument)[0]);e==='disabled'&&i&&this.xhr&&this.xhr.abort()},_initSource:function(){var i=this,s,n;if(t.isArray(this.options.source)){s=this.options.source;this.source=function(e,i){i(t.ui.autocomplete.filter(s,e.term))}}
+else if(typeof this.options.source==='string'){n=this.options.source;this.source=function(s,o){i.xhr&&i.xhr.abort();i.xhr=t.ajax({url:n,data:s,dataType:'json',autocompleteRequest:++e,success:function(t){this.autocompleteRequest===e&&o(t)},error:function(){this.autocompleteRequest===e&&o([])}})}}
+else this.source=this.options.source},search:function(t,e){t=t!=null?t:this.element.val();this.term=this.element.val();if(t.length<this.options.minLength)return this.close(e);clearTimeout(this.closing);if(this._trigger('search',e)!==!1)return this._search(t)},_search:function(t){this.pending++;this.element.addClass('ui-autocomplete-loading');this.source({term:t},this.response)},_response:function(t){if(!this.options.disabled&&t&&t.length){t=this._normalize(t);this._suggest(t);this._trigger('open')}
+else this.close();this.pending--;this.pending||this.element.removeClass('ui-autocomplete-loading')},close:function(t){clearTimeout(this.closing);if(this.menu.element.is(':visible')){this.menu.element.hide();this.menu.deactivate();this._trigger('close',t)}},_change:function(t){this.previous!==this.element.val()&&this._trigger('change',t,{item:this.selectedItem})},_normalize:function(e){if(e.length&&e[0].label&&e[0].value)return e;return t.map(e,function(e){if(typeof e==='string')return{label:e,value:e};return t.extend({label:e.label||e.value,value:e.value||e.label},e)})},_suggest:function(e){var i=this.menu.element.empty().zIndex(this.element.zIndex()+1);this._renderMenu(i,e);this.menu.deactivate();this.menu.refresh();i.show();this._resizeMenu();i.position(t.extend({of:this.element},this.options.position));this.options.autoFocus&&this.menu.next(new t.Event('mouseover'))},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width('').outerWidth(),this.element.outerWidth()))},_renderMenu:function(e,i){var s=this;t.each(i,function(t,i){s._renderItem(e,i)})},_renderItem:function(e,i){return t('<li></li>').data('item.autocomplete',i).append(t('<a></a>').text(i.label)).appendTo(e)},_move:function(t,e){if(this.menu.element.is(':visible'))if(this.menu.first()&&/^previous/.test(t)||this.menu.last()&&/^next/.test(t)){this.element.val(this.term);this.menu.deactivate()}
+else this.menu[t](e);else this.search(null,e)},widget:function(){return this.menu.element}});t.extend(t.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,'\\$&')},filter:function(e,i){var s=new RegExp(t.ui.autocomplete.escapeRegex(i),'i');return t.grep(e,function(t){return s.test(t.label||t.value||t)})}})})(jQuery);(function(t){t.widget('ui.menu',{_create:function(){var e=this;this.element.addClass('ui-menu ui-widget ui-widget-content ui-corner-all').attr({role:'listbox','aria-activedescendant':'ui-active-menuitem'}).click(function(i){if(t(i.target).closest('.ui-menu-item a').length){i.preventDefault();e.select(i)}});this.refresh()},refresh:function(){var e=this;this.element.children('li:not(.ui-menu-item):has(a)').addClass('ui-menu-item').attr('role','menuitem').children('a').addClass('ui-corner-all').attr('tabindex',-1).mouseenter(function(i){e.activate(i,t(this).parent())}).mouseleave(function(){e.deactivate()})},activate:function(t,e){this.deactivate();if(this.hasScroll()){var i=e.offset().top-this.element.offset().top,s=this.element.scrollTop(),n=this.element.height();if(i<0)this.element.scrollTop(s+i);else i>=n&&this.element.scrollTop(s+i-n+e.height())};this.active=e.eq(0).children('a').addClass('ui-state-hover').attr('id','ui-active-menuitem').end();this._trigger('focus',t,{item:e})},deactivate:function(){if(this.active){this.active.children('a').removeClass('ui-state-hover').removeAttr('id');this._trigger('blur');this.active=null}},next:function(t){this.move('next','.ui-menu-item:first',t)},previous:function(t){this.move('prev','.ui-menu-item:last',t)},first:function(){return this.active&&!this.active.prevAll('.ui-menu-item').length},last:function(){return this.active&&!this.active.nextAll('.ui-menu-item').length},move:function(t,e,i){if(this.active){t=this.active[t+'All']('.ui-menu-item').eq(0);t.length?this.activate(i,t):this.activate(i,this.element.children(e))}
+else this.activate(i,this.element.children(e))},nextPage:function(e){if(this.hasScroll())if(!this.active||this.last())this.activate(e,this.element.children('.ui-menu-item:first'));else{var s=this.active.offset().top,n=this.element.height(),i=this.element.children('.ui-menu-item').filter(function(){var e=t(this).offset().top-s-n+t(this).height();return e<10&&e>-10});i.length||(i=this.element.children('.ui-menu-item:last'));this.activate(e,i)}
+else this.activate(e,this.element.children('.ui-menu-item').filter(!this.active||this.last()?':first':':last'))},previousPage:function(e){if(this.hasScroll())if(!this.active||this.first())this.activate(e,this.element.children('.ui-menu-item:last'));else{var i=this.active.offset().top,s=this.element.height();result=this.element.children('.ui-menu-item').filter(function(){var e=t(this).offset().top-i+s-t(this).height();return e<10&&e>-10});result.length||(result=this.element.children('.ui-menu-item:first'));this.activate(e,result)}
+else this.activate(e,this.element.children('.ui-menu-item').filter(!this.active||this.first()?':last':':first'))},hasScroll:function(){return this.element.height()<this.element[t.fn.prop?'prop':'attr']('scrollHeight')},select:function(t){this._trigger('selected',t,{item:this.active})}})})(jQuery);(function(t){var i,s,n,e,a=function(){var e=t(this).find(':ui-button');setTimeout(function(){e.button('refresh')},1)},o=function(e){var i=e.name,s=e.form,n=t([]);if(i)n=s?t(s).find('[name=\''+i+'\']'):t('[name=\''+i+'\']',e.ownerDocument).filter(function(){return!this.form});return n};t.widget('ui.button',{options:{disabled:null,text:!0,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest('form').unbind('reset.button').bind('reset.button',a);if(typeof this.options.disabled!=='boolean')this.options.disabled=this.element.propAttr('disabled');this._determineButtonType();this.hasTitle=!!this.buttonElement.attr('title');var l=this,r=this.options,h=this.type==='checkbox'||this.type==='radio',c='ui-state-hover'+(!h?' ui-state-active':'');if(r.label===null)r.label=this.buttonElement.html();if(this.element.is(':disabled'))r.disabled=!0;this.buttonElement.addClass('ui-button ui-widget ui-state-default ui-corner-all').attr('role','button').bind('mouseenter.button',function(){if(!r.disabled){t(this).addClass('ui-state-hover');this===i&&t(this).addClass('ui-state-active')}}).bind('mouseleave.button',function(){r.disabled||t(this).removeClass(c)}).bind('click.button',function(t){if(r.disabled){t.preventDefault();t.stopImmediatePropagation()}});this.element.bind('focus.button',function(){l.buttonElement.addClass('ui-state-focus')}).bind('blur.button',function(){l.buttonElement.removeClass('ui-state-focus')});if(h){this.element.bind('change.button',function(){e||l.refresh()});this.buttonElement.bind('mousedown.button',function(t){if(!r.disabled){e=!1;s=t.pageX;n=t.pageY}}).bind('mouseup.button',function(t){if(!r.disabled)if(s!==t.pageX||n!==t.pageY)e=!0})};if(this.type==='checkbox')this.buttonElement.bind('click.button',function(){if(r.disabled||e)return!1;t(this).toggleClass('ui-state-active');l.buttonElement.attr('aria-pressed',l.element[0].checked)});else if(this.type==='radio')this.buttonElement.bind('click.button',function(){if(r.disabled||e)return!1;t(this).addClass('ui-state-active');l.buttonElement.attr('aria-pressed','true');var i=l.element[0];o(i).not(i).map(function(){return t(this).button('widget')[0]}).removeClass('ui-state-active').attr('aria-pressed','false')});else{this.buttonElement.bind('mousedown.button',function(){if(r.disabled)return!1;t(this).addClass('ui-state-active');i=this;t(document).one('mouseup',function(){i=null})}).bind('mouseup.button',function(){if(r.disabled)return!1;t(this).removeClass('ui-state-active')}).bind('keydown.button',function(e){if(r.disabled)return!1;if(e.keyCode==t.ui.keyCode.SPACE||e.keyCode==t.ui.keyCode.ENTER)t(this).addClass('ui-state-active')}).bind('keyup.button',function(){t(this).removeClass('ui-state-active')});this.buttonElement.is('a')&&this.buttonElement.keyup(function(e){e.keyCode===t.ui.keyCode.SPACE&&t(this).click()})};this._setOption('disabled',r.disabled);this._resetButton()},_determineButtonType:function(){this.type=this.element.is(':checkbox')?'checkbox':this.element.is(':radio')?'radio':this.element.is('input')?'input':'button';if(this.type==='checkbox'||this.type==='radio'){var t=this.element.parents().filter(':last'),e='label[for=\''+this.element.attr('id')+'\']';this.buttonElement=t.find(e);if(!this.buttonElement.length){t=t.length?t.siblings():this.element.siblings();this.buttonElement=t.filter(e);if(!this.buttonElement.length)this.buttonElement=t.find(e)};this.element.addClass('ui-helper-hidden-accessible');(t=this.element.is(':checked'))&&this.buttonElement.addClass('ui-state-active');this.buttonElement.attr('aria-pressed',t)}
+else this.buttonElement=this.element},widget:function(){return this.buttonElement},destroy:function(){this.element.removeClass('ui-helper-hidden-accessible');this.buttonElement.removeClass('ui-button ui-widget ui-state-default ui-corner-all ui-state-hover ui-state-active ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only').removeAttr('role').removeAttr('aria-pressed').html(this.buttonElement.find('.ui-button-text').html());this.hasTitle||this.buttonElement.removeAttr('title');t.Widget.prototype.destroy.call(this)},_setOption:function(e,i){t.Widget.prototype._setOption.apply(this,arguments);if(e==='disabled')i?this.element.propAttr('disabled',!0):this.element.propAttr('disabled',!1);else this._resetButton()},refresh:function(){var e=this.element.is(':disabled');e!==this.options.disabled&&this._setOption('disabled',e);if(this.type==='radio')o(this.element[0]).each(function(){t(this).is(':checked')?t(this).button('widget').addClass('ui-state-active').attr('aria-pressed','true'):t(this).button('widget').removeClass('ui-state-active').attr('aria-pressed','false')});else if(this.type==='checkbox')this.element.is(':checked')?this.buttonElement.addClass('ui-state-active').attr('aria-pressed','true'):this.buttonElement.removeClass('ui-state-active').attr('aria-pressed','false')},_resetButton:function(){if(this.type==='input')this.options.label&&this.element.val(this.options.label);else{var i=this.buttonElement.removeClass('ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only'),o=t('<span></span>').addClass('ui-button-text').html(this.options.label).appendTo(i.empty()).text(),e=this.options.icons,n=e.primary&&e.secondary,s=[];if(e.primary||e.secondary){if(this.options.text)s.push('ui-button-text-icon'+(n?'s':e.primary?'-primary':'-secondary'));e.primary&&i.prepend('<span class=\'ui-button-icon-primary ui-icon '+e.primary+'\'></span>');e.secondary&&i.append('<span class=\'ui-button-icon-secondary ui-icon '+e.secondary+'\'></span>');if(!this.options.text){s.push(n?'ui-button-icons-only':'ui-button-icon-only');this.hasTitle||i.attr('title',o)}}
+else s.push('ui-button-text-only');i.addClass(s.join(' '))}}});t.widget('ui.buttonset',{options:{items:':button, :submit, :reset, :checkbox, :radio, a, :data(button)'},_create:function(){this.element.addClass('ui-buttonset')},_init:function(){this.refresh()},_setOption:function(e,i){e==='disabled'&&this.buttons.button('option',e,i);t.Widget.prototype._setOption.apply(this,arguments)},refresh:function(){var e=this.element.css('direction')==='ltr';this.buttons=this.element.find(this.options.items).filter(':ui-button').button('refresh').end().not(':ui-button').button().end().map(function(){return t(this).button('widget')[0]}).removeClass('ui-corner-all ui-corner-left ui-corner-right').filter(':first').addClass(e?'ui-corner-left':'ui-corner-right').end().filter(':last').addClass(e?'ui-corner-right':'ui-corner-left').end().end()},destroy:function(){this.element.removeClass('ui-buttonset');this.buttons.map(function(){return t(this).button('widget')[0]}).removeClass('ui-corner-left ui-corner-right').end().button('destroy');t.Widget.prototype.destroy.call(this)}})})(jQuery);(function(t,e){var i={buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},s={maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},n=t.attrFn||{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0,click:!0};t.widget('ui.dialog',{options:{autoOpen:!0,buttons:{},closeOnEscape:!0,closeText:'close',dialogClass:'',draggable:!0,hide:null,height:'auto',maxHeight:!1,maxWidth:!1,minHeight:150,minWidth:150,modal:!1,position:{my:'center',at:'center',collision:'fit',using:function(e){var i=t(this).css(e).offset().top;i<0&&t(this).css('top',e.top-i)}},resizable:!0,show:null,stack:!0,title:'',width:300,zIndex:1E3},_create:function(){this.originalTitle=this.element.attr('title');if(typeof this.originalTitle!=='string')this.originalTitle='';this.options.title=this.options.title||this.originalTitle;var e=this,i=e.options,r=i.title||' ',a=t.ui.dialog.getTitleId(e.element),o=(e.uiDialog=t('<div></div>')).appendTo(document.body).hide().addClass('ui-dialog ui-widget ui-widget-content ui-corner-all '+i.dialogClass).css({zIndex:i.zIndex}).attr('tabIndex',-1).css('outline',0).keydown(function(s){if(i.closeOnEscape&&!s.isDefaultPrevented()&&s.keyCode&&s.keyCode===t.ui.keyCode.ESCAPE){e.close(s);s.preventDefault()}}).attr({role:'dialog','aria-labelledby':a}).mousedown(function(t){e.moveToTop(!1,t)});e.element.show().removeAttr('title').addClass('ui-dialog-content ui-widget-content').appendTo(o);var n=(e.uiDialogTitlebar=t('<div></div>')).addClass('ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix').prependTo(o),s=t('<a href="#"></a>').addClass('ui-dialog-titlebar-close ui-corner-all').attr('role','button').hover(function(){s.addClass('ui-state-hover')},function(){s.removeClass('ui-state-hover')}).focus(function(){s.addClass('ui-state-focus')}).blur(function(){s.removeClass('ui-state-focus')}).click(function(t){e.close(t);return!1}).appendTo(n);(e.uiDialogTitlebarCloseText=t('<span></span>')).addClass('ui-icon ui-icon-closethick').text(i.closeText).appendTo(s);t('<span></span>').addClass('ui-dialog-title').attr('id',a).html(r).prependTo(n);if(t.isFunction(i.beforeclose)&&!t.isFunction(i.beforeClose))i.beforeClose=i.beforeclose;n.find('*').add(n).disableSelection();i.draggable&&t.fn.draggable&&e._makeDraggable();i.resizable&&t.fn.resizable&&e._makeResizable();e._createButtons(i.buttons);e._isOpen=!1;t.fn.bgiframe&&o.bgiframe()},_init:function(){this.options.autoOpen&&this.open()},destroy:function(){var t=this;t.overlay&&t.overlay.destroy();t.uiDialog.hide();t.element.unbind('.dialog').removeData('dialog').removeClass('ui-dialog-content ui-widget-content').hide().appendTo('body');t.uiDialog.remove();t.originalTitle&&t.element.attr('title',t.originalTitle);return t},widget:function(){return this.uiDialog},close:function(e){var i=this,s,n;if(!1!==i._trigger('beforeClose',e)){i.overlay&&i.overlay.destroy();i.uiDialog.unbind('keypress.ui-dialog');i._isOpen=!1;if(i.options.hide)i.uiDialog.hide(i.options.hide,function(){i._trigger('close',e)});else{i.uiDialog.hide();i._trigger('close',e)};t.ui.dialog.overlay.resize();if(i.options.modal){s=0;t('.ui-dialog').each(function(){if(this!==i.uiDialog[0]){n=t(this).css('z-index');isNaN(n)||(s=Math.max(s,n))}});t.ui.dialog.maxZ=s};return i}},isOpen:function(){return this._isOpen},moveToTop:function(e,i){var s=this,n=s.options;if(n.modal&&!e||!n.stack&&!n.modal)return s._trigger('focus',i);if(n.zIndex>t.ui.dialog.maxZ)t.ui.dialog.maxZ=n.zIndex;if(s.overlay){t.ui.dialog.maxZ+=1;s.overlay.$el.css('z-index',t.ui.dialog.overlay.maxZ=t.ui.dialog.maxZ)};e={scrollTop:s.element.scrollTop(),scrollLeft:s.element.scrollLeft()};t.ui.dialog.maxZ+=1;s.uiDialog.css('z-index',t.ui.dialog.maxZ);s.element.attr(e);s._trigger('focus',i);return s},open:function(){if(!this._isOpen){var e=this,i=e.options,s=e.uiDialog;e.overlay=i.modal?new t.ui.dialog.overlay(e):null;e._size();e._position(i.position);s.show(i.show);e.moveToTop(!0);i.modal&&s.bind('keypress.ui-dialog',function(e){if(e.keyCode===t.ui.keyCode.TAB){var i=t(':tabbable',this),s=i.filter(':first');i=i.filter(':last');if(e.target===i[0]&&!e.shiftKey){s.focus(1);return!1}
+else if(e.target===s[0]&&e.shiftKey){i.focus(1);return!1}}});t(e.element.find(':tabbable').get().concat(s.find('.ui-dialog-buttonpane :tabbable').get().concat(s.get()))).eq(0).focus();e._isOpen=!0;e._trigger('open');return e}},_createButtons:function(e){var i=this,s=!1,o=t('<div></div>').addClass('ui-dialog-buttonpane ui-widget-content ui-helper-clearfix'),a=t('<div></div>').addClass('ui-dialog-buttonset').appendTo(o);i.uiDialog.find('.ui-dialog-buttonpane').remove();typeof e==='object'&&e!==null&&t.each(e,function(){return!(s=!0)});if(s){t.each(e,function(e,s){s=t.isFunction(s)?{click:s,text:e}:s;var o=t('<button type="button"></button>').click(function(){s.click.apply(i.element[0],arguments)}).appendTo(a);t.each(s,function(t,e){if(t!=='click')t in n?o[t](e):o.attr(t,e)});t.fn.button&&o.button()});o.appendTo(i.uiDialog)}},_makeDraggable:function(){function i(t){return{position:t.position,offset:t.offset}};var e=this,s=e.options,n=t(document),o;e.uiDialog.draggable({cancel:'.ui-dialog-content, .ui-dialog-titlebar-close',handle:'.ui-dialog-titlebar',containment:'document',start:function(n,a){o=s.height==='auto'?'auto':t(this).height();t(this).height(t(this).height()).addClass('ui-dialog-dragging');e._trigger('dragStart',n,i(a))},drag:function(t,s){e._trigger('drag',t,i(s))},stop:function(a,r){s.position=[r.position.left-n.scrollLeft(),r.position.top-n.scrollTop()];t(this).removeClass('ui-dialog-dragging').height(o);e._trigger('dragStop',a,i(r));t.ui.dialog.overlay.resize()}})},_makeResizable:function(i){function o(t){return{originalPosition:t.originalPosition,originalSize:t.originalSize,position:t.position,size:t.size}};i=i===e?this.options.resizable:i;var s=this,n=s.options,a=s.uiDialog.css('position');i=typeof i==='string'?i:'n,e,s,w,se,sw,ne,nw';s.uiDialog.resizable({cancel:'.ui-dialog-content',containment:'document',alsoResize:s.element,maxWidth:n.maxWidth,maxHeight:n.maxHeight,minWidth:n.minWidth,minHeight:s._minHeight(),handles:i,start:function(e,i){t(this).addClass('ui-dialog-resizing');s._trigger('resizeStart',e,o(i))},resize:function(t,e){s._trigger('resize',t,o(e))},stop:function(e,i){t(this).removeClass('ui-dialog-resizing');n.height=t(this).height();n.width=t(this).width();s._trigger('resizeStop',e,o(i));t.ui.dialog.overlay.resize()}}).css('position',a).find('.ui-resizable-se').addClass('ui-icon ui-icon-grip-diagonal-se')},_minHeight:function(){var t=this.options;return t.height==='auto'?t.minHeight:Math.min(t.minHeight,t.height)},_position:function(e){var i=[],s=[0,0],n;if(e){if(typeof e==='string'||typeof e==='object'&&'0'in e){i=e.split?e.split(' '):[e[0],e[1]];if(i.length===1)i[1]=i[0];t.each(['left','top'],function(t,e){if(+i[t]===i[t]){s[t]=i[t];i[t]=e}});e={my:i.join(' '),at:i.join(' '),offset:s.join(' ')}};e=t.extend({},t.ui.dialog.prototype.options.position,e)}
+else e=t.ui.dialog.prototype.options.position;(n=this.uiDialog.is(':visible'))||this.uiDialog.show();this.uiDialog.css({top:0,left:0}).position(t.extend({of:window},e));n||this.uiDialog.hide()},_setOptions:function(e){var a=this,n={},o=!1;t.each(e,function(t,e){a._setOption(t,e);if(t in i)o=!0;if(t in s)n[t]=e});o&&this._size();this.uiDialog.is(':data(resizable)')&&this.uiDialog.resizable('option',n)},_setOption:function(e,i){var s=this,n=s.uiDialog;switch(e){case'beforeclose':e='beforeClose';break;case'buttons':s._createButtons(i);break;case'closeText':s.uiDialogTitlebarCloseText.text(''+i);break;case'dialogClass':n.removeClass(s.options.dialogClass).addClass('ui-dialog ui-widget ui-widget-content ui-corner-all '+i);break;case'disabled':i?n.addClass('ui-dialog-disabled'):n.removeClass('ui-dialog-disabled');break;case'draggable':var o=n.is(':data(draggable)');o&&!i&&n.draggable('destroy');!o&&i&&s._makeDraggable();break;case'position':s._position(i);break;case'resizable':(o=n.is(':data(resizable)'))&&!i&&n.resizable('destroy');o&&typeof i==='string'&&n.resizable('option','handles',i);!o&&i!==!1&&s._makeResizable(i);break;case'title':t('.ui-dialog-title',s.uiDialogTitlebar).html(''+(i||' '));break};t.Widget.prototype._setOption.apply(s,arguments)},_size:function(){var e=this.options,i,s,n=this.uiDialog.is(':visible');this.element.show().css({width:'auto',minHeight:0,height:0});if(e.minWidth>e.width)e.width=e.minWidth;i=this.uiDialog.css({height:'auto',width:e.width}).height();s=Math.max(0,e.minHeight-i);if(e.height==='auto')if(t.support.minHeight)this.element.css({minHeight:s,height:'auto'});else{this.uiDialog.show();e=this.element.css('height','auto').height();n||this.uiDialog.hide();this.element.height(Math.max(e,s))}
+else this.element.height(Math.max(e.height-i,0));this.uiDialog.is(':data(resizable)')&&this.uiDialog.resizable('option','minHeight',this._minHeight())}});t.extend(t.ui.dialog,{version:'1.8.16',uuid:0,maxZ:0,getTitleId:function(t){t=t.attr('id');if(!t){this.uuid+=1;t=this.uuid};return'ui-dialog-title-'+t},overlay:function(e){this.$el=t.ui.dialog.overlay.create(e)}});t.extend(t.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:t.map('focus,mousedown,mouseup,keydown,keypress,click'.split(','),function(t){return t+'.dialog-overlay'}).join(' '),create:function(e){if(this.instances.length===0){setTimeout(function(){t.ui.dialog.overlay.instances.length&&t(document).bind(t.ui.dialog.overlay.events,function(e){if(t(e.target).zIndex()<t.ui.dialog.overlay.maxZ)return!1})},1);t(document).bind('keydown.dialog-overlay',function(i){if(e.options.closeOnEscape&&!i.isDefaultPrevented()&&i.keyCode&&i.keyCode===t.ui.keyCode.ESCAPE){e.close(i);i.preventDefault()}});t(window).bind('resize.dialog-overlay',t.ui.dialog.overlay.resize)};var i=(this.oldInstances.pop()||t('<div></div>').addClass('ui-widget-overlay')).appendTo(document.body).css({width:this.width(),height:this.height()});t.fn.bgiframe&&i.bgiframe();this.instances.push(i);return i},destroy:function(e){var s=t.inArray(e,this.instances);s!=-1&&this.oldInstances.push(this.instances.splice(s,1)[0]);this.instances.length===0&&t([document,window]).unbind('.dialog-overlay');e.remove();var i=0;t.each(this.instances,function(){i=Math.max(i,this.css('z-index'))});this.maxZ=i},height:function(){var e,i;if(t.browser.msie&&t.browser.version<7){e=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);i=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);return e<i?t(window).height()+'px':e+'px'}
+else return t(document).height()+'px'},width:function(){var e,i;if(t.browser.msie){e=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);i=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);return e<i?t(window).width()+'px':e+'px'}
+else return t(document).width()+'px'},resize:function(){var e=t([]);t.each(t.ui.dialog.overlay.instances,function(){e=e.add(this)});e.css({width:0,height:0}).css({width:t.ui.dialog.overlay.width(),height:t.ui.dialog.overlay.height()})}});t.extend(t.ui.dialog.overlay.prototype,{destroy:function(){t.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);(function(t){t.widget('ui.slider',t.ui.mouse,{widgetEventPrefix:'slide',options:{animate:!1,distance:0,max:100,min:0,orientation:'horizontal',range:!1,step:1,value:0,values:null},_create:function(){var e=this,i=this.options,n=this.element.find('.ui-slider-handle').addClass('ui-state-default ui-corner-all'),a=i.values&&i.values.length||1,o=[];this._mouseSliding=this._keySliding=!1;this._animateOff=!0;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass('ui-slider ui-slider-'+this.orientation+' ui-widget ui-widget-content ui-corner-all'+(i.disabled?' ui-slider-disabled ui-disabled':''));this.range=t([]);if(i.range){if(i.range===!0){if(!i.values)i.values=[this._valueMin(),this._valueMin()];if(i.values.length&&i.values.length!==2)i.values=[i.values[0],i.values[0]]};this.range=t('<div></div>').appendTo(this.element).addClass('ui-slider-range ui-widget-header'+(i.range==='min'||i.range==='max'?' ui-slider-range-'+i.range:''))};for(var s=n.length;s<a;s+=1)o.push('<a class=\'ui-slider-handle ui-state-default ui-corner-all\' href=\'#\'></a>');this.handles=n.add(t(o.join('')).appendTo(e.element));this.handle=this.handles.eq(0);this.handles.add(this.range).filter('a').click(function(t){t.preventDefault()}).hover(function(){i.disabled||t(this).addClass('ui-state-hover')},function(){t(this).removeClass('ui-state-hover')}).focus(function(){if(i.disabled)t(this).blur();else{t('.ui-slider .ui-state-focus').removeClass('ui-state-focus');t(this).addClass('ui-state-focus')}}).blur(function(){t(this).removeClass('ui-state-focus')});this.handles.each(function(e){t(this).data('index.ui-slider-handle',e)});this.handles.keydown(function(i){var r=!0,o=t(this).data('index.ui-slider-handle'),s,n,a;if(!e.options.disabled){switch(i.keyCode){case t.ui.keyCode.HOME:case t.ui.keyCode.END:case t.ui.keyCode.PAGE_UP:case t.ui.keyCode.PAGE_DOWN:case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:r=!1;if(!e._keySliding){e._keySliding=!0;t(this).addClass('ui-state-active');s=e._start(i,o);if(s===!1)return};break};a=e.options.step;s=e.options.values&&e.options.values.length?(n=e.values(o)):(n=e.value());switch(i.keyCode){case t.ui.keyCode.HOME:n=e._valueMin();break;case t.ui.keyCode.END:n=e._valueMax();break;case t.ui.keyCode.PAGE_UP:n=e._trimAlignValue(s+(e._valueMax()-e._valueMin())/5);break;case t.ui.keyCode.PAGE_DOWN:n=e._trimAlignValue(s-(e._valueMax()-e._valueMin())/5);break;case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:if(s===e._valueMax())return;n=e._trimAlignValue(s+a);break;case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(s===e._valueMin())return;n=e._trimAlignValue(s-a);break};e._slide(i,o,n);return r}}).keyup(function(i){var s=t(this).data('index.ui-slider-handle');if(e._keySliding){e._keySliding=!1;e._stop(i,s);e._change(i,s);t(this).removeClass('ui-state-active')}});this._refreshValue();this._animateOff=!1},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass('ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all').removeData('slider').unbind('.slider');this._mouseDestroy();return this},_mouseCapture:function(e){var s=this.options,o,a,i,r,n;if(s.disabled)return!1;this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();o=this._normValueFromMouse({x:e.pageX,y:e.pageY});a=this._valueMax()-this._valueMin()+1;r=this;this.handles.each(function(e){var s=Math.abs(o-r.values(e));if(a>s){a=s;i=t(this);n=e}});if(s.range===!0&&this.values(1)===s.min){n+=1;i=t(this.handles[n])};if(this._start(e,n)===!1)return!1;this._mouseSliding=!0;r._handleIndex=n;i.addClass('ui-state-active').focus();s=i.offset();this._clickOffset=!t(e.target).parents().andSelf().is('.ui-slider-handle')?{left:0,top:0}:{left:e.pageX-s.left-i.width()/2,top:e.pageY-s.top-i.height()/2-(parseInt(i.css('borderTopWidth'),10)||0)-(parseInt(i.css('borderBottomWidth'),10)||0)+(parseInt(i.css('marginTop'),10)||0)};this.handles.hasClass('ui-state-hover')||this._slide(e,n,o);return this._animateOff=!0},_mouseStart:function(){return!0},_mouseDrag:function(t){var e=this._normValueFromMouse({x:t.pageX,y:t.pageY});this._slide(t,this._handleIndex,e);return!1},_mouseStop:function(t){this.handles.removeClass('ui-state-active');this._mouseSliding=!1;this._stop(t,this._handleIndex);this._change(t,this._handleIndex);this._clickOffset=this._handleIndex=null;return this._animateOff=!1},_detectOrientation:function(){this.orientation=this.options.orientation==='vertical'?'vertical':'horizontal'},_normValueFromMouse:function(t){var e;if(this.orientation==='horizontal'){e=this.elementSize.width;t=t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}
+else{e=this.elementSize.height;t=t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)};e=t/e;if(e>1)e=1;if(e<0)e=0;if(this.orientation==='vertical')e=1-e;t=this._valueMax()-this._valueMin();return this._trimAlignValue(this._valueMin()+e*t)},_start:function(t,e){var i={handle:this.handles[e],value:this.value()};if(this.options.values&&this.options.values.length){i.value=this.values(e);i.values=this.values()};return this._trigger('start',t,i)},_slide:function(t,e,i){var s;if(this.options.values&&this.options.values.length){s=this.values(e?0:1);if(this.options.values.length===2&&this.options.range===!0&&(e===0&&i>s||e===1&&i<s))i=s;if(i!==this.values(e)){s=this.values();s[e]=i;t=this._trigger('slide',t,{handle:this.handles[e],value:i,values:s});this.values(e?0:1);t!==!1&&this.values(e,i,!0)}}
+else if(i!==this.value()){t=this._trigger('slide',t,{handle:this.handles[e],value:i});t!==!1&&this.value(i)}},_stop:function(t,e){var i={handle:this.handles[e],value:this.value()};if(this.options.values&&this.options.values.length){i.value=this.values(e);i.values=this.values()};this._trigger('stop',t,i)},_change:function(t,e){if(!this._keySliding&&!this._mouseSliding){var i={handle:this.handles[e],value:this.value()};if(this.options.values&&this.options.values.length){i.value=this.values(e);i.values=this.values()};this._trigger('change',t,i)}},value:function(t){if(arguments.length){this.options.value=this._trimAlignValue(t);this._refreshValue();this._change(null,0)}
+else return this._value()},values:function(e,i){var n,o,s;if(arguments.length>1){this.options.values[e]=this._trimAlignValue(i);this._refreshValue();this._change(null,e)}
+else if(arguments.length)if(t.isArray(arguments[0])){n=this.options.values;o=arguments[0];for(s=0;s<n.length;s+=1){n[s]=this._trimAlignValue(o[s]);this._change(null,s)};this._refreshValue()}
+else return this.options.values&&this.options.values.length?this._values(e):this.value();else return this._values()},_setOption:function(e,i){var s,n=0;if(t.isArray(this.options.values))n=this.options.values.length;t.Widget.prototype._setOption.apply(this,arguments);switch(e){case'disabled':if(i){this.handles.filter('.ui-state-focus').blur();this.handles.removeClass('ui-state-hover');this.handles.propAttr('disabled',!0);this.element.addClass('ui-disabled')}
+else{this.handles.propAttr('disabled',!1);this.element.removeClass('ui-disabled')};break;case'orientation':this._detectOrientation();this.element.removeClass('ui-slider-horizontal ui-slider-vertical').addClass('ui-slider-'+this.orientation);this._refreshValue();break;case'value':this._animateOff=!0;this._refreshValue();this._change(null,0);this._animateOff=!1;break;case'values':this._animateOff=!0;this._refreshValue();for(s=0;s<n;s+=1)this._change(null,s);this._animateOff=!1;break}},_value:function(){var t=this.options.value;return t=this._trimAlignValue(t)},_values:function(t){var e,i;if(arguments.length){e=this.options.values[t];return e=this._trimAlignValue(e)}
+else{e=this.options.values.slice();for(i=0;i<e.length;i+=1)e[i]=this._trimAlignValue(e[i]);return e}},_trimAlignValue:function(t){if(t<=this._valueMin())return this._valueMin();if(t>=this._valueMax())return this._valueMax();var e=this.options.step>0?this.options.step:1,i=(t-this._valueMin())%e;t=t-i;if(Math.abs(i)*2>=e)t+=i>0?e:-e;return parseFloat(t.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var o=this.options.range,s=this.options,i=this,n=!this._animateOff?s.animate:!1,e,a={},l,c,r,h;if(this.options.values&&this.options.values.length)this.handles.each(function(o){e=(i.values(o)-i._valueMin())/(i._valueMax()-i._valueMin())*100;a[i.orientation==='horizontal'?'left':'bottom']=e+'%';t(this).stop(1,1)[n?'animate':'css'](a,s.animate);if(i.options.range===!0)if(i.orientation==='horizontal'){if(o===0)i.range.stop(1,1)[n?'animate':'css']({left:e+'%'},s.animate);if(o===1)i.range[n?'animate':'css']({width:e-l+'%'},{queue:!1,duration:s.animate})}
+else{if(o===0)i.range.stop(1,1)[n?'animate':'css']({bottom:e+'%'},s.animate);if(o===1)i.range[n?'animate':'css']({height:e-l+'%'},{queue:!1,duration:s.animate})};l=e});else{c=this.value();r=this._valueMin();h=this._valueMax();e=h!==r?(c-r)/(h-r)*100:0;a[i.orientation==='horizontal'?'left':'bottom']=e+'%';this.handle.stop(1,1)[n?'animate':'css'](a,s.animate);if(o==='min'&&this.orientation==='horizontal')this.range.stop(1,1)[n?'animate':'css']({width:e+'%'},s.animate);if(o==='max'&&this.orientation==='horizontal')this.range[n?'animate':'css']({width:100-e+'%'},{queue:!1,duration:s.animate});if(o==='min'&&this.orientation==='vertical')this.range.stop(1,1)[n?'animate':'css']({height:e+'%'},s.animate);if(o==='max'&&this.orientation==='vertical')this.range[n?'animate':'css']({height:100-e+'%'},{queue:!1,duration:s.animate})}}});t.extend(t.ui.slider,{version:'1.8.16'})})(jQuery);(function(e,i){function o(){return++s};function a(){return++n};var s=0,n=0;e.widget('ui.tabs',{options:{add:null,ajaxOptions:null,cache:!1,cookie:null,collapsible:!1,disable:null,disabled:[],enable:null,event:'click',fx:null,idPrefix:'ui-tabs-',load:null,panelTemplate:'<div></div>',remove:null,select:null,show:null,spinner:'<em>Loading…</em>',tabTemplate:'<li><a href=\'#{href}\'><span>#{label}</span></a></li>'},_create:function(){this._tabify(!0)},_setOption:function(t,e){if(t=='selected')this.options.collapsible&&e==this.options.selected||this.select(e);else{this.options[t]=e;this._tabify()}},_tabId:function(t){return t.title&&t.title.replace(/\s/g,'_').replace(/[^\w\u00c0-\uFFFF-]/g,'')||this.options.idPrefix+o()},_sanitizeSelector:function(t){return t.replace(/:/g,'\\:')},_cookie:function(){var t=this.cookie||(this.cookie=this.options.cookie.name||'ui-tabs-'+a());return e.cookie.apply(null,[t].concat(e.makeArray(arguments)))},_ui:function(t,e){return{tab:t,panel:e,index:this.anchors.index(t)}},_cleanup:function(){this.lis.filter('.ui-state-processing').removeClass('ui-state-processing').find('span:data(label.tabs)').each(function(){var t=e(this);t.html(t.data('label.tabs')).removeData('label.tabs')})},_tabify:function(t){function d(t,i){t.css('display','');!e.support.opacity&&i.opacity&&t[0].style.removeAttribute('filter')};var n=this,s=this.options,f=/^#.+/;this.list=this.element.find('ol,ul').eq(0);this.lis=e(' > li:has(a[href])',this.list);this.anchors=this.lis.map(function(){return e('a',this)[0]});this.panels=e([]);this.anchors.each(function(t,i){var o=e(i).attr('href'),a=o.split('#')[0],r;if(a&&(a===location.toString().split('#')[0]||(r=e('base')[0])&&a===r.href)){o=i.hash;i.href=o};if(f.test(o))n.panels=n.panels.add(n.element.find(n._sanitizeSelector(o)));else if(o&&o!=='#'){e.data(i,'href.tabs',o);e.data(i,'load.tabs',o.replace(/#.*$/,''));o=n._tabId(i);i.href='#'+o;i=n.element.find('#'+o);if(!i.length){i=e(s.panelTemplate).attr('id',o).addClass('ui-tabs-panel ui-widget-content ui-corner-bottom').insertAfter(n.panels[t-1]||n.list);i.data('destroy.tabs',!0)};n.panels=n.panels.add(i)}
+else s.disabled.push(t)});if(t){this.element.addClass('ui-tabs ui-widget ui-widget-content ui-corner-all');this.list.addClass('ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all');this.lis.addClass('ui-state-default ui-corner-top');this.panels.addClass('ui-tabs-panel ui-widget-content ui-corner-bottom');if(s.selected===i){location.hash&&this.anchors.each(function(t,e){if(e.hash==location.hash){s.selected=t;return!1}});if(typeof s.selected!=='number'&&s.cookie)s.selected=parseInt(n._cookie(),10);if(typeof s.selected!=='number'&&this.lis.filter('.ui-tabs-selected').length)s.selected=this.lis.index(this.lis.filter('.ui-tabs-selected'));s.selected=s.selected||(this.lis.length?0:-1)}
+else if(s.selected===null)s.selected=-1;s.selected=s.selected>=0&&this.anchors[s.selected]||s.selected<0?s.selected:0;s.disabled=e.unique(s.disabled.concat(e.map(this.lis.filter('.ui-state-disabled'),function(t){return n.lis.index(t)}))).sort();e.inArray(s.selected,s.disabled)!=-1&&s.disabled.splice(e.inArray(s.selected,s.disabled),1);this.panels.addClass('ui-tabs-hide');this.lis.removeClass('ui-tabs-selected ui-state-active');if(s.selected>=0&&this.anchors.length){n.element.find(n._sanitizeSelector(n.anchors[s.selected].hash)).removeClass('ui-tabs-hide');this.lis.eq(s.selected).addClass('ui-tabs-selected ui-state-active');n.element.queue('tabs',function(){n._trigger('show',null,n._ui(n.anchors[s.selected],n.element.find(n._sanitizeSelector(n.anchors[s.selected].hash))[0]))});this.load(s.selected)};e(window).bind('unload',function(){n.lis.add(n.anchors).unbind('.tabs');n.lis=n.anchors=n.panels=null})}
+else s.selected=this.lis.index(this.lis.filter('.ui-tabs-selected'));this.element[s.collapsible?'addClass':'removeClass']('ui-tabs-collapsible');s.cookie&&this._cookie(s.selected,s.cookie);t=0;for(var r;r=this.lis[t];t++)e(r)[e.inArray(t,s.disabled)!=-1&&!e(r).hasClass('ui-tabs-selected')?'addClass':'removeClass']('ui-state-disabled');s.cache===!1&&this.anchors.removeData('cache.tabs');this.lis.add(this.anchors).unbind('.tabs');if(s.event!=='mouseover'){var c=function(t,e){e.is(':not(.ui-state-disabled)')&&e.addClass('ui-state-'+t)},u=function(t,e){e.removeClass('ui-state-'+t)};this.lis.bind('mouseover.tabs',function(){c('hover',e(this))});this.lis.bind('mouseout.tabs',function(){u('hover',e(this))});this.anchors.bind('focus.tabs',function(){c('focus',e(this).closest('li'))});this.anchors.bind('blur.tabs',function(){u('focus',e(this).closest('li'))})};var o,a;if(s.fx)if(e.isArray(s.fx)){o=s.fx[0];a=s.fx[1]}
+else o=a=s.fx;var l=a?function(t,i){e(t).closest('li').addClass('ui-tabs-selected ui-state-active');i.hide().removeClass('ui-tabs-hide').animate(a,a.duration||'normal',function(){d(i,a);n._trigger('show',null,n._ui(t,i[0]))})}:function(t,i){e(t).closest('li').addClass('ui-tabs-selected ui-state-active');i.removeClass('ui-tabs-hide');n._trigger('show',null,n._ui(t,i[0]))},h=o?function(t,e){e.animate(o,o.duration||'normal',function(){n.lis.removeClass('ui-tabs-selected ui-state-active');e.addClass('ui-tabs-hide');d(e,o);n.element.dequeue('tabs')})}:function(t,e){n.lis.removeClass('ui-tabs-selected ui-state-active');e.addClass('ui-tabs-hide');n.element.dequeue('tabs')};this.anchors.bind(s.event+'.tabs',function(){var t=this,i=e(t).closest('li'),o=n.panels.filter(':not(.ui-tabs-hide)'),a=n.element.find(n._sanitizeSelector(t.hash));if(i.hasClass('ui-tabs-selected')&&!s.collapsible||i.hasClass('ui-state-disabled')||i.hasClass('ui-state-processing')||n.panels.filter(':animated').length||n._trigger('select',null,n._ui(this,a[0]))===!1){this.blur();return!1};s.selected=n.anchors.index(this);n.abort();if(s.collapsible)if(i.hasClass('ui-tabs-selected')){s.selected=-1;s.cookie&&n._cookie(s.selected,s.cookie);n.element.queue('tabs',function(){h(t,o)}).dequeue('tabs');this.blur();return!1}
+else if(!o.length){s.cookie&&n._cookie(s.selected,s.cookie);n.element.queue('tabs',function(){l(t,a)});n.load(n.anchors.index(this));this.blur();return!1};s.cookie&&n._cookie(s.selected,s.cookie);if(a.length){o.length&&n.element.queue('tabs',function(){h(t,o)});n.element.queue('tabs',function(){l(t,a)});n.load(n.anchors.index(this))}
+else throw'jQuery UI Tabs: Mismatching fragment identifier.';e.browser.msie&&this.blur()});this.anchors.bind('click.tabs',function(){return!1})},_getIndex:function(t){if(typeof t=='string')t=this.anchors.index(this.anchors.filter('[href$='+t+']'));return t},destroy:function(){var t=this.options;this.abort();this.element.unbind('.tabs').removeClass('ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible').removeData('tabs');this.list.removeClass('ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all');this.anchors.each(function(){var t=e.data(this,'href.tabs');if(t)this.href=t;var i=e(this).unbind('.tabs');e.each(['href','load','cache'],function(t,e){i.removeData(e+'.tabs')})});this.lis.unbind('.tabs').add(this.panels).each(function(){e.data(this,'destroy.tabs')?e(this).remove():e(this).removeClass('ui-state-default ui-corner-top ui-tabs-selected ui-state-active ui-state-hover ui-state-focus ui-state-disabled ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide')});t.cookie&&this._cookie(null,t.cookie);return this},add:function(t,s,n){if(n===i)n=this.anchors.length;var a=this,r=this.options;s=e(r.tabTemplate.replace(/#\{href\}/g,t).replace(/#\{label\}/g,s));t=!t.indexOf('#')?t.replace('#',''):this._tabId(e('a',s)[0]);s.addClass('ui-state-default ui-corner-top').data('destroy.tabs',!0);var o=a.element.find('#'+t);o.length||(o=e(r.panelTemplate).attr('id',t).data('destroy.tabs',!0));o.addClass('ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide');if(n>=this.lis.length){s.appendTo(this.list);o.appendTo(this.list[0].parentNode)}
+else{s.insertBefore(this.lis[n]);o.insertBefore(this.panels[n])};r.disabled=e.map(r.disabled,function(t){return t>=n?++t:t});this._tabify();if(this.anchors.length==1){r.selected=0;s.addClass('ui-tabs-selected ui-state-active');o.removeClass('ui-tabs-hide');this.element.queue('tabs',function(){a._trigger('show',null,a._ui(a.anchors[0],a.panels[0]))});this.load(0)};this._trigger('add',null,this._ui(this.anchors[n],this.panels[n]));return this},remove:function(t){t=this._getIndex(t);var i=this.options,s=this.lis.eq(t).remove(),n=this.panels.eq(t).remove();if(s.hasClass('ui-tabs-selected')&&this.anchors.length>1)this.select(t+(t+1<this.anchors.length?1:-1));i.disabled=e.map(e.grep(i.disabled,function(e){return e!=t}),function(e){return e>=t?--e:e});this._tabify();this._trigger('remove',null,this._ui(s.find('a')[0],n[0]));return this},enable:function(t){t=this._getIndex(t);var i=this.options;if(e.inArray(t,i.disabled)!=-1){this.lis.eq(t).removeClass('ui-state-disabled');i.disabled=e.grep(i.disabled,function(e){return e!=t});this._trigger('enable',null,this._ui(this.anchors[t],this.panels[t]));return this}},disable:function(t){t=this._getIndex(t);var e=this.options;if(t!=e.selected){this.lis.eq(t).addClass('ui-state-disabled');e.disabled.push(t);e.disabled.sort();this._trigger('disable',null,this._ui(this.anchors[t],this.panels[t]))};return this},select:function(t){t=this._getIndex(t);if(t==-1)if(this.options.collapsible&&this.options.selected!=-1)t=this.options.selected;else return this;this.anchors.eq(t).trigger(this.options.event+'.tabs');return this},load:function(t){t=this._getIndex(t);var i=this,s=this.options,n=this.anchors.eq(t)[0],a=e.data(n,'load.tabs');this.abort();if(!a||this.element.queue('tabs').length!==0&&e.data(n,'cache.tabs'))this.element.dequeue('tabs');else{this.lis.eq(t).addClass('ui-state-processing');if(s.spinner){var o=e('span',n);o.data('label.tabs',o.html()).html(s.spinner)};this.xhr=e.ajax(e.extend({},s.ajaxOptions,{url:a,success:function(o,a){i.element.find(i._sanitizeSelector(n.hash)).html(o);i._cleanup();s.cache&&e.data(n,'cache.tabs',!0);i._trigger('load',null,i._ui(i.anchors[t],i.panels[t]));try{s.ajaxOptions.success(o,a)}catch(r){}},error:function(e,o){i._cleanup();i._trigger('load',null,i._ui(i.anchors[t],i.panels[t]));try{s.ajaxOptions.error(e,o,t,n)}catch(a){}}}));i.element.dequeue('tabs');return this}},abort:function(){this.element.queue([]);this.panels.stop(!1,!0);this.element.queue('tabs',this.element.queue('tabs').splice(-2,2));if(this.xhr){this.xhr.abort();delete this.xhr};this._cleanup();return this},url:function(t,e){this.anchors.eq(t).removeData('cache.tabs').data('load.tabs',e);return this},length:function(){return this.anchors.length}});e.extend(e.ui.tabs,{version:'1.8.16'});e.extend(e.ui.tabs.prototype,{rotation:null,rotate:function(e,i){var s=this,n=this.options,o=s._rotate||(s._rotate=function(t){clearTimeout(s.rotation);s.rotation=setTimeout(function(){var t=n.selected;s.select(++t<s.anchors.length?t:0)},e);t&&t.stopPropagation()});i=s._unrotate||(s._unrotate=!i?function(t){t.clientX&&s.rotate(null)}:function(){t=n.selected;o()});if(e){this.element.bind('tabsshow',o);this.anchors.bind(n.event+'.tabs',i);o()}
+else{clearTimeout(s.rotation);this.element.unbind('tabsshow',o);this.anchors.unbind(n.event+'.tabs',i);delete this._rotate;delete this._unrotate};return this}})})(jQuery);(function(t,e){function o(){this.debug=!1;this._curInst=null;this._keyEvent=!1;this._disabledInputs=[];this._inDialog=this._datepickerShowing=!1;this._mainDivId='ui-datepicker-div';this._inlineClass='ui-datepicker-inline';this._appendClass='ui-datepicker-append';this._triggerClass='ui-datepicker-trigger';this._dialogClass='ui-datepicker-dialog';this._disableClass='ui-datepicker-disabled';this._unselectableClass='ui-datepicker-unselectable';this._currentClass='ui-datepicker-current-day';this._dayOverClass='ui-datepicker-days-cell-over';this.regional=[];this.regional['']={closeText:'Done',prevText:'Prev',nextText:'Next',currentText:'Today',monthNames:['January','February','March','April','May','June','July','August','September','October','November','December'],monthNamesShort:['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],dayNames:['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'],dayNamesShort:['Sun','Mon','Tue','Wed','Thu','Fri','Sat'],dayNamesMin:['Su','Mo','Tu','We','Th','Fr','Sa'],weekHeader:'Wk',dateFormat:'mm/dd/yy',firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:''};this._defaults={showOn:'focus',showAnim:'fadeIn',showOptions:{},defaultDate:null,appendText:'',buttonText:'...',buttonImage:'',buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:'c-10:c+10',showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:'+10',minDate:null,maxDate:null,duration:'fast',beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:'',altFormat:'',constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1};t.extend(this._defaults,this.regional['']);this.dpDiv=a(t('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))};function a(e){return e.bind('mouseout',function(e){e=t(e.target).closest('button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a');e.length&&e.removeClass('ui-state-hover ui-datepicker-prev-hover ui-datepicker-next-hover')}).bind('mouseover',function(i){i=t(i.target).closest('button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a');if(!(t.datepicker._isDisabledDatepicker(n.inline?e.parent()[0]:n.input[0])||!i.length)){i.parents('.ui-datepicker-calendar').find('a').removeClass('ui-state-hover');i.addClass('ui-state-hover');i.hasClass('ui-datepicker-prev')&&i.addClass('ui-datepicker-prev-hover');i.hasClass('ui-datepicker-next')&&i.addClass('ui-datepicker-next-hover')}})};function s(i,s){t.extend(i,s);for(var n in s)if(s[n]==null||s[n]==e)i[n]=s[n];return i};t.extend(t.ui,{datepicker:{version:'1.8.16'}});var i=(new Date).getTime(),n;t.extend(o.prototype,{markerClassName:'hasDatepicker',maxRows:4,log:function(){this.debug&&console.log.apply('',arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){s(this._defaults,t||{});return this},_attachDatepicker:function(e,i){var a=null;for(var n in this._defaults){var o=e.getAttribute('date:'+n);if(o){a=a||{};try{a[n]=eval(o)}catch(s){a[n]=o}}};n=e.nodeName.toLowerCase();o=n=='div'||n=='span';if(!e.id){this.uuid+=1;e.id='dp'+this.uuid};var r=this._newInst(t(e),o);r.settings=t.extend({},i||{},a||{});if(n=='input')this._connectDatepicker(e,r);else o&&this._inlineDatepicker(e,r)},_newInst:function(e,i){return{id:e[0].id.replace(/([^A-Za-z0-9_-])/g,'\\\\$1'),input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:!i?this.dpDiv:a(t('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))}},_connectDatepicker:function(e,i){var s=t(e);i.append=t([]);i.trigger=t([]);if(!s.hasClass(this.markerClassName)){this._attachments(s,i);s.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind('setData.datepicker',function(t,e,s){i.settings[e]=s}).bind('getData.datepicker',function(t,e){return this._get(i,e)});this._autoSize(i);t.data(e,'datepicker',i);i.settings.disabled&&this._disableDatepicker(e)}},_attachments:function(e,i){var s=this._get(i,'appendText'),o=this._get(i,'isRTL');i.append&&i.append.remove();if(s){i.append=t('<span class="'+this._appendClass+'">'+s+'</span>');e[o?'before':'after'](i.append)};e.unbind('focus',this._showDatepicker);i.trigger&&i.trigger.remove();s=this._get(i,'showOn');if(s=='focus'||s=='both')e.focus(this._showDatepicker);if(s=='button'||s=='both'){s=this._get(i,'buttonText');var n=this._get(i,'buttonImage');i.trigger=t(this._get(i,'buttonImageOnly')?t('<img/>').addClass(this._triggerClass).attr({src:n,alt:s,title:s}):t('<button type="button"></button>').addClass(this._triggerClass).html(n==''?s:t('<img/>').attr({src:n,alt:s,title:s})));e[o?'before':'after'](i.trigger);i.trigger.click(function(){t.datepicker._datepickerShowing&&t.datepicker._lastInput==e[0]?t.datepicker._hideDatepicker():t.datepicker._showDatepicker(e[0]);return!1})}},_autoSize:function(t){if(this._get(t,'autoSize')&&!t.inline){var e=new Date(2009,11,20),i=this._get(t,'dateFormat');if(i.match(/[DM]/)){var s=function(t){for(var i=0,s=0,e=0;e<t.length;e++)if(t[e].length>i){i=t[e].length;s=e};return s};e.setMonth(s(this._get(t,i.match(/MM/)?'monthNames':'monthNamesShort')));e.setDate(s(this._get(t,i.match(/DD/)?'dayNames':'dayNamesShort'))+20-e.getDay())};t.input.attr('size',this._formatDate(t,e).length)}},_inlineDatepicker:function(e,i){var s=t(e);if(!s.hasClass(this.markerClassName)){s.addClass(this.markerClassName).append(i.dpDiv).bind('setData.datepicker',function(t,e,s){i.settings[e]=s}).bind('getData.datepicker',function(t,e){return this._get(i,e)});t.data(e,'datepicker',i);this._setDate(i,this._getDefaultDate(i),!0);this._updateDatepicker(i);this._updateAlternate(i);i.settings.disabled&&this._disableDatepicker(e);i.dpDiv.css('display','block')}},_dialogDatepicker:function(e,i,n,o,a){e=this._dialogInst;if(!e){this.uuid+=1;this._dialogInput=t('<input type="text" id="'+('dp'+this.uuid)+'" style="position: absolute; top: -100px; width: 0px; z-index: -10;"/>');this._dialogInput.keydown(this._doKeyDown);t('body').append(this._dialogInput);e=this._dialogInst=this._newInst(this._dialogInput,!1);e.settings={};t.data(this._dialogInput[0],'datepicker',e)};s(e.settings,o||{});i=i&&i.constructor==Date?this._formatDate(e,i):i;this._dialogInput.val(i);this._pos=a?a.length?a:[a.pageX,a.pageY]:null;if(!this._pos)this._pos=[document.documentElement.clientWidth/2-100+(document.documentElement.scrollLeft||document.body.scrollLeft),document.documentElement.clientHeight/2-150+(document.documentElement.scrollTop||document.body.scrollTop)];this._dialogInput.css('left',this._pos[0]+20+'px').css('top',this._pos[1]+'px');e.settings.onSelect=n;this._inDialog=!0;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);t.blockUI&&t.blockUI(this.dpDiv);t.data(this._dialogInput[0],'datepicker',e);return this},_destroyDatepicker:function(e){var s=t(e),n=t.data(e,'datepicker');if(s.hasClass(this.markerClassName)){var i=e.nodeName.toLowerCase();t.removeData(e,'datepicker');if(i=='input'){n.append.remove();n.trigger.remove();s.removeClass(this.markerClassName).unbind('focus',this._showDatepicker).unbind('keydown',this._doKeyDown).unbind('keypress',this._doKeyPress).unbind('keyup',this._doKeyUp)}
+else if(i=='div'||i=='span')s.removeClass(this.markerClassName).empty()}},_enableDatepicker:function(e){var i=t(e),n=t.data(e,'datepicker');if(i.hasClass(this.markerClassName)){var s=e.nodeName.toLowerCase();if(s=='input'){e.disabled=!1;n.trigger.filter('button').each(function(){this.disabled=!1}).end().filter('img').css({opacity:'1.0',cursor:''})}
+else if(s=='div'||s=='span'){i=i.children('.'+this._inlineClass);i.children().removeClass('ui-state-disabled');i.find('select.ui-datepicker-month, select.ui-datepicker-year').removeAttr('disabled')};this._disabledInputs=t.map(this._disabledInputs,function(t){return t==e?null:t})}},_disableDatepicker:function(e){var i=t(e),n=t.data(e,'datepicker');if(i.hasClass(this.markerClassName)){var s=e.nodeName.toLowerCase();if(s=='input'){e.disabled=!0;n.trigger.filter('button').each(function(){this.disabled=!0}).end().filter('img').css({opacity:'0.5',cursor:'default'})}
+else if(s=='div'||s=='span'){i=i.children('.'+this._inlineClass);i.children().addClass('ui-state-disabled');i.find('select.ui-datepicker-month, select.ui-datepicker-year').attr('disabled','disabled')};this._disabledInputs=t.map(this._disabledInputs,function(t){return t==e?null:t});this._disabledInputs[this._disabledInputs.length]=e}},_isDisabledDatepicker:function(t){if(!t)return!1;for(var e=0;e<this._disabledInputs.length;e++)if(this._disabledInputs[e]==t)return!0;return!1},_getInst:function(e){try{return t.data(e,'datepicker')}catch(i){throw'Missing instance data for this datepicker'}},_optionDatepicker:function(i,n,o){var a=this._getInst(i);if(arguments.length==2&&typeof n=='string')return n=='defaults'?t.extend({},t.datepicker._defaults):a?n=='all'?t.extend({},a.settings):this._get(a,n):null;var r=n||{};if(typeof n=='string'){r={};r[n]=o};if(a){this._curInst==a&&this._hideDatepicker();var c=this._getDateDatepicker(i,!0),l=this._getMinMaxDate(a,'min'),h=this._getMinMaxDate(a,'max');s(a.settings,r);if(l!==null&&r.dateFormat!==e&&r.minDate===e)a.settings.minDate=this._formatDate(a,l);if(h!==null&&r.dateFormat!==e&&r.maxDate===e)a.settings.maxDate=this._formatDate(a,h);this._attachments(t(i),a);this._autoSize(a);this._setDate(a,c);this._updateAlternate(a);this._updateDatepicker(a)}},_changeDatepicker:function(t,e,i){this._optionDatepicker(t,e,i)},_refreshDatepicker:function(t){(t=this._getInst(t))&&this._updateDatepicker(t)},_setDateDatepicker:function(t,e){if(t=this._getInst(t)){this._setDate(t,e);this._updateDatepicker(t);this._updateAlternate(t)}},_getDateDatepicker:function(t,e){(t=this._getInst(t))&&!t.inline&&this._setDateFromField(t,e);return t?this._getDate(t):null},_doKeyDown:function(e){var i=t.datepicker._getInst(e.target),s=!0,n=i.dpDiv.is('.ui-datepicker-rtl');i._keyEvent=!0;if(t.datepicker._datepickerShowing)switch(e.keyCode){case 9:t.datepicker._hideDatepicker();s=!1;break;case 13:s=t('td.'+t.datepicker._dayOverClass+':not(.'+t.datepicker._currentClass+')',i.dpDiv);s[0]&&t.datepicker._selectDay(e.target,i.selectedMonth,i.selectedYear,s[0]);if(e=t.datepicker._get(i,'onSelect')){s=t.datepicker._formatDate(i);e.apply(i.input?i.input[0]:null,[s,i])}
+else t.datepicker._hideDatepicker();return!1;case 27:t.datepicker._hideDatepicker();break;case 33:t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(i,'stepBigMonths'):-t.datepicker._get(i,'stepMonths'),'M');break;case 34:t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(i,'stepBigMonths'):+t.datepicker._get(i,'stepMonths'),'M');break;case 35:if(e.ctrlKey||e.metaKey)t.datepicker._clearDate(e.target);s=e.ctrlKey||e.metaKey;break;case 36:if(e.ctrlKey||e.metaKey)t.datepicker._gotoToday(e.target);s=e.ctrlKey||e.metaKey;break;case 37:if(e.ctrlKey||e.metaKey)t.datepicker._adjustDate(e.target,n?+1:-1,'D');s=e.ctrlKey||e.metaKey;if(e.originalEvent.altKey)t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(i,'stepBigMonths'):-t.datepicker._get(i,'stepMonths'),'M');break;case 38:if(e.ctrlKey||e.metaKey)t.datepicker._adjustDate(e.target,-7,'D');s=e.ctrlKey||e.metaKey;break;case 39:if(e.ctrlKey||e.metaKey)t.datepicker._adjustDate(e.target,n?-1:+1,'D');s=e.ctrlKey||e.metaKey;if(e.originalEvent.altKey)t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(i,'stepBigMonths'):+t.datepicker._get(i,'stepMonths'),'M');break;case 40:if(e.ctrlKey||e.metaKey)t.datepicker._adjustDate(e.target,+7,'D');s=e.ctrlKey||e.metaKey;break;default:s=!1}
+else if(e.keyCode==36&&e.ctrlKey)t.datepicker._showDatepicker(this);else s=!1;if(s){e.preventDefault();e.stopPropagation()}},_doKeyPress:function(i){var s=t.datepicker._getInst(i.target);if(t.datepicker._get(s,'constrainInput')){s=t.datepicker._possibleChars(t.datepicker._get(s,'dateFormat'));var n=String.fromCharCode(i.charCode==e?i.keyCode:i.charCode);return i.ctrlKey||i.metaKey||n<' '||!s||s.indexOf(n)>-1}},_doKeyUp:function(e){e=t.datepicker._getInst(e.target);if(e.input.val()!=e.lastVal)try{if(t.datepicker.parseDate(t.datepicker._get(e,'dateFormat'),e.input?e.input.val():null,t.datepicker._getFormatConfig(e))){t.datepicker._setDateFromField(e);t.datepicker._updateAlternate(e);t.datepicker._updateDatepicker(e)}}catch(i){t.datepicker.log(i)};return!0},_showDatepicker:function(e){e=e.target||e;if(e.nodeName.toLowerCase()!='input')e=t('input',e.parentNode)[0];if(!(t.datepicker._isDisabledDatepicker(e)||t.datepicker._lastInput==e)){var i=t.datepicker._getInst(e);if(t.datepicker._curInst&&t.datepicker._curInst!=i){t.datepicker._datepickerShowing&&t.datepicker._triggerOnClose(t.datepicker._curInst);t.datepicker._curInst.dpDiv.stop(!0,!0)};var n=t.datepicker._get(i,'beforeShow');n=n?n.apply(e,[e,i]):{};if(n!==!1){s(i.settings,n);i.lastVal=null;t.datepicker._lastInput=e;t.datepicker._setDateFromField(i);if(t.datepicker._inDialog)e.value='';if(!t.datepicker._pos){t.datepicker._pos=t.datepicker._findPos(e);t.datepicker._pos[1]+=e.offsetHeight};var o=!1;t(e).parents().each(function(){o|=t(this).css('position')=='fixed';return!o});if(o&&t.browser.opera){t.datepicker._pos[0]-=document.documentElement.scrollLeft;t.datepicker._pos[1]-=document.documentElement.scrollTop};n={left:t.datepicker._pos[0],top:t.datepicker._pos[1]};t.datepicker._pos=null;i.dpDiv.empty();i.dpDiv.css({position:'absolute',display:'block',top:'-1000px'});t.datepicker._updateDatepicker(i);n=t.datepicker._checkOffset(i,n,o);i.dpDiv.css({position:t.datepicker._inDialog&&t.blockUI?'static':o?'fixed':'absolute',display:'none',left:n.left+'px',top:n.top+'px'});if(!i.inline){n=t.datepicker._get(i,'showAnim');var a=t.datepicker._get(i,'duration'),r=function(){var s=i.dpDiv.find('iframe.ui-datepicker-cover');if(s.length){var e=t.datepicker._getBorders(i.dpDiv);s.css({left:-e[0],top:-e[1],width:i.dpDiv.outerWidth(),height:i.dpDiv.outerHeight()})}};i.dpDiv.zIndex(t(e).zIndex()+1);t.datepicker._datepickerShowing=!0;t.effects&&t.effects[n]?i.dpDiv.show(n,t.datepicker._get(i,'showOptions'),a,r):i.dpDiv[n||'show'](n?a:null,r);if(!n||!a)r();i.input.is(':visible')&&!i.input.is(':disabled')&&i.input.focus();t.datepicker._curInst=i}}}},_updateDatepicker:function(e){this.maxRows=4;var s=t.datepicker._getBorders(e.dpDiv);n=e;e.dpDiv.empty().append(this._generateHTML(e));var i=e.dpDiv.find('iframe.ui-datepicker-cover');i.length&&i.css({left:-s[0],top:-s[1],width:e.dpDiv.outerWidth(),height:e.dpDiv.outerHeight()});e.dpDiv.find('.'+this._dayOverClass+' a').mouseover();s=this._getNumberOfMonths(e);i=s[1];e.dpDiv.removeClass('ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4').width('');i>1&&e.dpDiv.addClass('ui-datepicker-multi-'+i).css('width',17*i+'em');e.dpDiv[(s[0]!=1||s[1]!=1?'add':'remove')+'Class']('ui-datepicker-multi');e.dpDiv[(this._get(e,'isRTL')?'add':'remove')+'Class']('ui-datepicker-rtl');e==t.datepicker._curInst&&t.datepicker._datepickerShowing&&e.input&&e.input.is(':visible')&&!e.input.is(':disabled')&&e.input[0]!=document.activeElement&&e.input.focus();if(e.yearshtml){var o=e.yearshtml;setTimeout(function(){o===e.yearshtml&&e.yearshtml&&e.dpDiv.find('select.ui-datepicker-year:first').replaceWith(e.yearshtml);o=e.yearshtml=null},0)}},_getBorders:function(t){var e=function(t){return{thin:1,medium:2,thick:3}[t]||t};return[parseFloat(e(t.css('border-left-width'))),parseFloat(e(t.css('border-top-width')))]},_checkOffset:function(e,i,s){var n=e.dpDiv.outerWidth(),o=e.dpDiv.outerHeight(),h=e.input?e.input.outerWidth():0,r=e.input?e.input.outerHeight():0,a=document.documentElement.clientWidth+t(document).scrollLeft(),l=document.documentElement.clientHeight+t(document).scrollTop();i.left-=this._get(e,'isRTL')?n-h:0;i.left-=s&&i.left==e.input.offset().left?t(document).scrollLeft():0;i.top-=s&&i.top==e.input.offset().top+r?t(document).scrollTop():0;i.left-=Math.min(i.left,i.left+n>a&&a>n?Math.abs(i.left+n-a):0);i.top-=Math.min(i.top,i.top+o>l&&l>o?Math.abs(o+r):0);return i},_findPos:function(e){for(var i=this._get(this._getInst(e),'isRTL');e&&(e.type=='hidden'||e.nodeType!=1||t.expr.filters.hidden(e));)e=e[i?'previousSibling':'nextSibling'];e=t(e).offset();return[e.left,e.top]},_triggerOnClose:function(t){var e=this._get(t,'onClose');if(e)e.apply(t.input?t.input[0]:null,[t.input?t.input.val():'',t])},_hideDatepicker:function(e){var i=this._curInst;if(!(!i||e&&i!=t.data(e,'datepicker')))if(this._datepickerShowing){e=this._get(i,'showAnim');var n=this._get(i,'duration'),s=function(){t.datepicker._tidyDialog(i);this._curInst=null};t.effects&&t.effects[e]?i.dpDiv.hide(e,t.datepicker._get(i,'showOptions'),n,s):i.dpDiv[e=='slideDown'?'slideUp':e=='fadeIn'?'fadeOut':'hide'](e?n:null,s);e||s();t.datepicker._triggerOnClose(i);this._datepickerShowing=!1;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:'absolute',left:'0',top:'-100px'});if(t.blockUI){t.unblockUI();t('body').append(this.dpDiv)}};this._inDialog=!1}},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).unbind('.ui-datepicker-calendar')},_checkExternalClick:function(e){if(t.datepicker._curInst){e=t(e.target);e[0].id!=t.datepicker._mainDivId&&e.parents('#'+t.datepicker._mainDivId).length==0&&!e.hasClass(t.datepicker.markerClassName)&&!e.hasClass(t.datepicker._triggerClass)&&t.datepicker._datepickerShowing&&!(t.datepicker._inDialog&&t.blockUI)&&t.datepicker._hideDatepicker()}},_adjustDate:function(e,i,s){e=t(e);var n=this._getInst(e[0]);if(!this._isDisabledDatepicker(e[0])){this._adjustInstDate(n,i+(s=='M'?this._get(n,'showCurrentAtPos'):0),s);this._updateDatepicker(n)}},_gotoToday:function(e){e=t(e);var i=this._getInst(e[0]);if(this._get(i,'gotoCurrent')&&i.currentDay){i.selectedDay=i.currentDay;i.drawMonth=i.selectedMonth=i.currentMonth;i.drawYear=i.selectedYear=i.currentYear}
+else{var s=new Date;i.selectedDay=s.getDate();i.drawMonth=i.selectedMonth=s.getMonth();i.drawYear=i.selectedYear=s.getFullYear()};this._notifyChange(i);this._adjustDate(e)},_selectMonthYear:function(e,i,s){e=t(e);var n=this._getInst(e[0]);n['selected'+(s=='M'?'Month':'Year')]=n['draw'+(s=='M'?'Month':'Year')]=parseInt(i.options[i.selectedIndex].value,10);this._notifyChange(n);this._adjustDate(e)},_selectDay:function(e,i,s,n){var o=t(e);if(!(t(n).hasClass(this._unselectableClass)||this._isDisabledDatepicker(o[0]))){o=this._getInst(o[0]);o.selectedDay=o.currentDay=t('a',n).html();o.selectedMonth=o.currentMonth=i;o.selectedYear=o.currentYear=s;this._selectDate(e,this._formatDate(o,o.currentDay,o.currentMonth,o.currentYear))}},_clearDate:function(e){e=t(e);this._getInst(e[0]);this._selectDate(e,'')},_selectDate:function(e,i){e=this._getInst(t(e)[0]);i=i!=null?i:this._formatDate(e);e.input&&e.input.val(i);this._updateAlternate(e);var s=this._get(e,'onSelect');if(s)s.apply(e.input?e.input[0]:null,[i,e]);else e.input&&e.input.trigger('change');if(e.inline)this._updateDatepicker(e);else{this._hideDatepicker();this._lastInput=e.input[0];typeof e.input[0]!='object'&&e.input.focus();this._lastInput=null}},_updateAlternate:function(e){var i=this._get(e,'altField');if(i){var s=this._get(e,'altFormat')||this._get(e,'dateFormat'),n=this._getDate(e),o=this.formatDate(s,n,this._getFormatConfig(e));t(i).each(function(){t(this).val(o)})}},noWeekends:function(t){t=t.getDay();return[t>0&&t<6,'']},iso8601Week:function(t){t=new Date(t.getTime());t.setDate(t.getDate()+4-(t.getDay()||7));var e=t.getTime();t.setMonth(0);t.setDate(1);return Math.floor(Math.round((e-t)/864E5)/7)+1},parseDate:function(e,i,s){if(e==null||i==null)throw'Invalid arguments';i=typeof i=='object'?i.toString():i+'';if(i=='')return null;var h=(s?s.shortYearCutoff:null)||this._defaults.shortYearCutoff;h=typeof h!='string'?h:(new Date).getFullYear()%100+parseInt(h,10);for(var m=(s?s.dayNamesShort:null)||this._defaults.dayNamesShort,v=(s?s.dayNames:null)||this._defaults.dayNames,b=(s?s.monthNamesShort:null)||this._defaults.monthNamesShort,y=(s?s.monthNames:null)||this._defaults.monthNames,a=s=-1,r=-1,d=-1,f=!1,u=function(t){(t=l+1<e.length&&e.charAt(l+1)==t)&&l++;return t},c=function(t){var e=u(t);t=new RegExp('^\\d{1,'+(t=='@'?14:t=='!'?20:t=='y'&&e?4:t=='o'?3:2)+'}');t=i.substring(o).match(t);if(!t)throw'Missing number at position '+o;o+=t[0].length;return parseInt(t[0],10)},g=function(e,s,n){e=t.map(u(e)?n:s,function(t,e){return[[e,t]]}).sort(function(t,e){return-(t[1].length-e[1].length)});var a=-1;t.each(e,function(t,e){t=e[1];if(i.substr(o,t.length).toLowerCase()==t.toLowerCase()){a=e[0];o+=t.length;return!1}});if(a!=-1)return a+1;else throw'Unknown name at position '+o;},p=function(){if(i.charAt(o)!=e.charAt(l))throw'Unexpected literal at position '+o;o++},o=0,l=0;l<e.length;l++)if(f)if(e.charAt(l)=='\''&&!u('\''))f=!1;else p();else switch(e.charAt(l)){case'd':r=c('d');break;case'D':g('D',m,v);break;case'o':d=c('o');break;case'm':a=c('m');break;case'M':a=g('M',b,y);break;case'y':s=c('y');break;case'@':var n=new Date(c('@'));s=n.getFullYear();a=n.getMonth()+1;r=n.getDate();break;case'!':n=new Date((c('!')-this._ticksTo1970)/1E4);s=n.getFullYear();a=n.getMonth()+1;r=n.getDate();break;case'\'':if(u('\''))p();else f=!0;break;default:p()};if(o<i.length)throw'Extra/unparsed characters found in date: '+i.substring(o);if(s==-1)s=(new Date).getFullYear();else if(s<100)s+=(new Date).getFullYear()-(new Date).getFullYear()%100+(s<=h?0:-100);if(d>-1){a=1;r=d;do{h=this._getDaysInMonth(s,a-1);if(r<=h)break;a++;r-=h}
+while(1)};n=this._daylightSavingAdjust(new Date(s,a-1,r));if(n.getFullYear()!=s||n.getMonth()+1!=a||n.getDate()!=r)throw'Invalid date';return n},ATOM:'yy-mm-dd',COOKIE:'D, dd M yy',ISO_8601:'yy-mm-dd',RFC_822:'D, d M y',RFC_850:'DD, dd-M-y',RFC_1036:'D, d M y',RFC_1123:'D, d M yy',RFC_2822:'D, d M yy',RSS:'D, d M y',TICKS:'!',TIMESTAMP:'@',W3C:'yy-mm-dd',_ticksTo1970:(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*24*60*60*1E7,formatDate:function(t,e,i){if(!e)return'';var h=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,c=(i?i.dayNames:null)||this._defaults.dayNames,u=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort;i=(i?i.monthNames:null)||this._defaults.monthNames;var o=function(e){(e=n+1<t.length&&t.charAt(n+1)==e)&&n++;return e},a=function(t,e,i){e=''+e;if(o(t))for(;e.length<i;)e='0'+e;return e},l=function(t,e,i,s){return o(t)?s[e]:i[e]},s='',r=!1;if(e)for(var n=0;n<t.length;n++)if(r)if(t.charAt(n)=='\''&&!o('\''))r=!1;else s+=t.charAt(n);else switch(t.charAt(n)){case'd':s+=a('d',e.getDate(),2);break;case'D':s+=l('D',e.getDay(),h,c);break;case'o':s+=a('o',Math.round(((new Date(e.getFullYear(),e.getMonth(),e.getDate())).getTime()-(new Date(e.getFullYear(),0,0)).getTime())/864E5),3);break;case'm':s+=a('m',e.getMonth()+1,2);break;case'M':s+=l('M',e.getMonth(),u,i);break;case'y':s+=o('y')?e.getFullYear():(e.getYear()%100<10?'0':'')+e.getYear()%100;break;case'@':s+=e.getTime();break;case'!':s+=e.getTime()*1E4+this._ticksTo1970;break;case'\'':if(o('\''))s+='\'';else r=!0;break;default:s+=t.charAt(n)};return s},_possibleChars:function(t){for(var i='',s=!1,n=function(i){(i=e+1<t.length&&t.charAt(e+1)==i)&&e++;return i},e=0;e<t.length;e++)if(s)if(t.charAt(e)=='\''&&!n('\''))s=!1;else i+=t.charAt(e);else switch(t.charAt(e)){case'd':case'm':case'y':case'@':i+='0123456789';break;case'D':case'M':return null;case'\'':if(n('\''))i+='\'';else s=!0;break;default:i+=t.charAt(e)};return i},_get:function(t,i){return t.settings[i]!==e?t.settings[i]:this._defaults[i]},_setDateFromField:function(t,e){if(t.input.val()!=t.lastVal){var r=this._get(t,'dateFormat'),n=t.lastVal=t.input?t.input.val():null,s,o;s=o=this._getDefaultDate(t);var a=this._getFormatConfig(t);try{s=this.parseDate(r,n,a)||o}catch(i){this.log(i);n=e?'':n};t.selectedDay=s.getDate();t.drawMonth=t.selectedMonth=s.getMonth();t.drawYear=t.selectedYear=s.getFullYear();t.currentDay=n?s.getDate():0;t.currentMonth=n?s.getMonth():0;t.currentYear=n?s.getFullYear():0;this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,'defaultDate'),new Date))},_determineDate:function(e,i,s){var n=function(t){var e=new Date;e.setDate(e.getDate()+t);return e},o=function(i){try{return t.datepicker.parseDate(t.datepicker._get(e,'dateFormat'),i,t.datepicker._getFormatConfig(e))}catch(n){};var s=(i.toLowerCase().match(/^c/)?t.datepicker._getDate(e):null)||new Date,a=s.getFullYear(),r=s.getMonth();s=s.getDate();for(var l=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,o=l.exec(i);o;){switch(o[2]||'d'){case'd':case'D':s+=parseInt(o[1],10);break;case'w':case'W':s+=parseInt(o[1],10)*7;break;case'm':case'M':r+=parseInt(o[1],10);s=Math.min(s,t.datepicker._getDaysInMonth(a,r));break;case'y':case'Y':a+=parseInt(o[1],10);s=Math.min(s,t.datepicker._getDaysInMonth(a,r));break};o=l.exec(i)};return new Date(a,r,s)};if(i=(i=i==null||i===''?s:typeof i=='string'?o(i):typeof i=='number'?isNaN(i)?s:n(i):new Date(i.getTime()))&&i.toString()=='Invalid Date'?s:i){i.setHours(0);i.setMinutes(0);i.setSeconds(0);i.setMilliseconds(0)};return this._daylightSavingAdjust(i)},_daylightSavingAdjust:function(t){if(!t)return null;t.setHours(t.getHours()>12?t.getHours()+2:0);return t},_setDate:function(t,e,i){var s=!e,n=t.selectedMonth,o=t.selectedYear;e=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=e.getDate();t.drawMonth=t.selectedMonth=t.currentMonth=e.getMonth();t.drawYear=t.selectedYear=t.currentYear=e.getFullYear();if((n!=t.selectedMonth||o!=t.selectedYear)&&!i)this._notifyChange(t);this._adjustInstDate(t);if(t.input)t.input.val(s?'':this._formatDate(t))},_getDate:function(t){return!t.currentYear||t.input&&t.input.val()==''?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay))},_generateHTML:function(e){var m=new Date;m=this._daylightSavingAdjust(new Date(m.getFullYear(),m.getMonth(),m.getDate()));var f=this._get(e,'isRTL'),M=this._get(e,'showButtonPanel'),k=this._get(e,'hideIfNoPrevNext'),l=this._get(e,'navigationAsDateFormat'),p=this._getNumberOfMonths(e),s=this._get(e,'showCurrentAtPos'),c=this._get(e,'stepMonths'),P=p[0]!=1||p[1]!=1,S=this._daylightSavingAdjust(!e.currentDay?new Date(9999,9,9):new Date(e.currentYear,e.currentMonth,e.currentDay)),b=this._getMinMaxDate(e,'min'),g=this._getMinMaxDate(e,'max');s=e.drawMonth-s;var r=e.drawYear;if(s<0){s+=12;r--};if(g){var a=this._daylightSavingAdjust(new Date(g.getFullYear(),g.getMonth()-p[0]*p[1]+1,g.getDate()));for(a=b&&a<b?b:a;this._daylightSavingAdjust(new Date(r,s,1))>a;){s--;if(s<0){s=11;r--}}};e.drawMonth=s;e.drawYear=r;a=this._get(e,'prevText');a=!l?a:this.formatDate(a,this._daylightSavingAdjust(new Date(r,s-c,1)),this._getFormatConfig(e));a=this._canAdjustMonth(e,-1,r,s)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery_'+i+'.datepicker._adjustDate(\'#'+e.id+'\', -'+c+', \'M\');" title="'+a+'"><span class="ui-icon ui-icon-circle-triangle-'+(f?'e':'w')+'">'+a+'</span></a>':k?'':'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+a+'"><span class="ui-icon ui-icon-circle-triangle-'+(f?'e':'w')+'">'+a+'</span></a>';var h=this._get(e,'nextText');h=!l?h:this.formatDate(h,this._daylightSavingAdjust(new Date(r,s+c,1)),this._getFormatConfig(e));k=this._canAdjustMonth(e,+1,r,s)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery_'+i+'.datepicker._adjustDate(\'#'+e.id+'\', +'+c+', \'M\');" title="'+h+'"><span class="ui-icon ui-icon-circle-triangle-'+(f?'w':'e')+'">'+h+'</span></a>':k?'':'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+h+'"><span class="ui-icon ui-icon-circle-triangle-'+(f?'w':'e')+'">'+h+'</span></a>';c=this._get(e,'currentText');h=this._get(e,'gotoCurrent')&&e.currentDay?S:m;c=!l?c:this.formatDate(c,h,this._getFormatConfig(e));l=!e.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery_'+i+'.datepicker._hideDatepicker();">'+this._get(e,'closeText')+'</button>':'';M=M?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(f?l:'')+(this._isInRange(e,h)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery_'+i+'.datepicker._gotoToday(\'#'+e.id+'\');">'+c+'</button>':'')+(f?'':l)+'</div>':'';l=parseInt(this._get(e,'firstDay'),10);l=isNaN(l)?0:l;c=this._get(e,'showWeek');h=this._get(e,'dayNames');this._get(e,'dayNamesShort');var E=this._get(e,'dayNamesMin'),N=this._get(e,'monthNames'),F=this._get(e,'monthNamesShort'),W=this._get(e,'beforeShowDay'),I=this._get(e,'showOtherMonths'),R=this._get(e,'selectOtherMonths');this._get(e,'calculateWeek');for(var O=this._getDefaultDate(e),D='',w=0;w<p[0];w++){var A='';this.maxRows=4;for(var y=0;y<p[1];y++){var H=this._daylightSavingAdjust(new Date(r,s,e.selectedDay)),o=' ui-corner-all',d='';if(P){d+='<div class="ui-datepicker-group';if(p[1]>1)switch(y){case 0:d+=' ui-datepicker-group-first';o=' ui-corner-'+(f?'right':'left');break;case p[1]-1:d+=' ui-datepicker-group-last';o=' ui-corner-'+(f?'left':'right');break;default:d+=' ui-datepicker-group-middle';o='';break};d+='">'};d+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+o+'">'+(/all|left/.test(o)&&w==0?f?k:a:'')+(/all|right/.test(o)&&w==0?f?a:k:'')+this._generateMonthYearHeader(e,s,r,b,g,w>0||y>0,N,F)+'</div><table class="ui-datepicker-calendar"><thead><tr>';var u=c?'<th class="ui-datepicker-week-col">'+this._get(e,'weekHeader')+'</th>':'';for(o=0;o<7;o++){var n=(o+l)%7;u+='<th'+((o+l+6)%7>=5?' class="ui-datepicker-week-end"':'')+'><span title="'+h[n]+'">'+E[n]+'</span></th>'};d+=u+'</tr></thead><tbody>';u=this._getDaysInMonth(r,s);if(r==e.selectedYear&&s==e.selectedMonth)e.selectedDay=Math.min(e.selectedDay,u);o=(this._getFirstDayOfMonth(r,s)-l+7)%7;u=Math.ceil((o+u)/7);this.maxRows=u=P?this.maxRows>u?this.maxRows:u:u;n=this._daylightSavingAdjust(new Date(r,s,1-o));for(var T=0;T<u;T++){d+='<tr>';var z=!c?'':'<td class="ui-datepicker-week-col">'+this._get(e,'calculateWeek')(n)+'</td>';for(o=0;o<7;o++){var x=W?W.apply(e.input?e.input[0]:null,[n]):[!0,''],v=n.getMonth()!=s,C=v&&!R||!x[0]||b&&n<b||g&&n>g;z+='<td class="'+((o+l+6)%7>=5?' ui-datepicker-week-end':'')+(v?' ui-datepicker-other-month':'')+(n.getTime()==H.getTime()&&s==e.selectedMonth&&e._keyEvent||O.getTime()==n.getTime()&&O.getTime()==H.getTime()?' '+this._dayOverClass:'')+(C?' '+this._unselectableClass+' ui-state-disabled':'')+(v&&!I?'':' '+x[1]+(n.getTime()==S.getTime()?' '+this._currentClass:'')+(n.getTime()==m.getTime()?' ui-datepicker-today':''))+'"'+((!v||I)&&x[2]?' title="'+x[2]+'"':'')+(C?'':' onclick="DP_jQuery_'+i+'.datepicker._selectDay(\'#'+e.id+'\','+n.getMonth()+','+n.getFullYear()+', this);return false;"')+'>'+(v&&!I?' ':C?'<span class="ui-state-default">'+n.getDate()+'</span>':'<a class="ui-state-default'+(n.getTime()==m.getTime()?' ui-state-highlight':'')+(n.getTime()==S.getTime()?' ui-state-active':'')+(v?' ui-priority-secondary':'')+'" href="#">'+n.getDate()+'</a>')+'</td>';n.setDate(n.getDate()+1);n=this._daylightSavingAdjust(n)};d+=z+'</tr>'};s++;if(s>11){s=0;r++};d+='</tbody></table>'+(P?'</div>'+(p[0]>0&&y==p[1]-1?'<div class="ui-datepicker-row-break"></div>':''):'');A+=d};D+=A};D+=M+(t.browser.msie&&parseInt(t.browser.version,10)<7&&!e.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':'');e._keyEvent=!1;return D},_generateMonthYearHeader:function(t,e,s,n,o,r,c,a){var d=this._get(t,'changeMonth'),f=this._get(t,'changeYear'),g=this._get(t,'showMonthAfterYear'),h='<div class="ui-datepicker-title">',u='';if(r||!d)u+='<span class="ui-datepicker-month">'+c[e]+'</span>';else{c=n&&n.getFullYear()==s;var m=o&&o.getFullYear()==s;u+='<select class="ui-datepicker-month" onchange="DP_jQuery_'+i+'.datepicker._selectMonthYear(\'#'+t.id+'\', this, \'M\');" >';for(var l=0;l<12;l++)if((!c||l>=n.getMonth())&&(!m||l<=o.getMonth()))u+='<option value="'+l+'"'+(l==e?' selected="selected"':'')+'>'+a[l]+'</option>';u+='</select>'};g||(h+=u+(r||!(d&&f)?' ':''));if(!t.yearshtml){t.yearshtml='';if(r||!f)h+='<span class="ui-datepicker-year">'+s+'</span>';else{a=this._get(t,'yearRange').split(':');var p=(new Date).getFullYear();c=function(t){t=t.match(/c[+-].*/)?s+parseInt(t.substring(1),10):t.match(/[+-].*/)?p+parseInt(t,10):parseInt(t,10);return isNaN(t)?p:t};e=c(a[0]);a=Math.max(e,c(a[1]||''));e=n?Math.max(e,n.getFullYear()):e;a=o?Math.min(a,o.getFullYear()):a;for(t.yearshtml+='<select class="ui-datepicker-year" onchange="DP_jQuery_'+i+'.datepicker._selectMonthYear(\'#'+t.id+'\', this, \'Y\');" >';e<=a;e++)t.yearshtml+='<option value="'+e+'"'+(e==s?' selected="selected"':'')+'>'+e+'</option>';t.yearshtml+='</select>';h+=t.yearshtml;t.yearshtml=null}};h+=this._get(t,'yearSuffix');if(g)h+=(r||!(d&&f)?' ':'')+u;h+='</div>';return h},_adjustInstDate:function(t,e,i){var s=t.drawYear+(i=='Y'?e:0),n=t.drawMonth+(i=='M'?e:0);e=Math.min(t.selectedDay,this._getDaysInMonth(s,n))+(i=='D'?e:0);s=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(s,n,e)));t.selectedDay=s.getDate();t.drawMonth=t.selectedMonth=s.getMonth();t.drawYear=t.selectedYear=s.getFullYear();if(i=='M'||i=='Y')this._notifyChange(t)},_restrictMinMax:function(t,e){var i=this._getMinMaxDate(t,'min');t=this._getMinMaxDate(t,'max');e=i&&e<i?i:e;return e=t&&e>t?t:e},_notifyChange:function(t){var e=this._get(t,'onChangeMonthYear');if(e)e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){t=this._get(t,'numberOfMonths');return t==null?[1,1]:typeof t=='number'?[1,t]:t},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+'Date'),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return(new Date(t,e,1)).getDay()},_canAdjustMonth:function(t,e,i,s){var n=this._getNumberOfMonths(t);i=this._daylightSavingAdjust(new Date(i,s+(e<0?e:n[0]*n[1]),1));e<0&&i.setDate(this._getDaysInMonth(i.getFullYear(),i.getMonth()));return this._isInRange(t,i)},_isInRange:function(t,e){var i=this._getMinMaxDate(t,'min');t=this._getMinMaxDate(t,'max');return(!i||e.getTime()>=i.getTime())&&(!t||e.getTime()<=t.getTime())},_getFormatConfig:function(t){var e=this._get(t,'shortYearCutoff');e=typeof e!='string'?e:(new Date).getFullYear()%100+parseInt(e,10);return{shortYearCutoff:e,dayNamesShort:this._get(t,'dayNamesShort'),dayNames:this._get(t,'dayNames'),monthNamesShort:this._get(t,'monthNamesShort'),monthNames:this._get(t,'monthNames')}},_formatDate:function(t,e,i,s){if(!e){t.currentDay=t.selectedDay;t.currentMonth=t.selectedMonth;t.currentYear=t.selectedYear};e=e?typeof e=='object'?e:this._daylightSavingAdjust(new Date(s,i,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,'dateFormat'),e,this._getFormatConfig(t))}});t.fn.datepicker=function(e){if(!this.length)return this;if(!t.datepicker.initialized){t(document).mousedown(t.datepicker._checkExternalClick).find('body').append(t.datepicker.dpDiv);t.datepicker.initialized=!0};var i=Array.prototype.slice.call(arguments,1);if(typeof e=='string'&&(e=='isDisabled'||e=='getDate'||e=='widget'))return t.datepicker['_'+e+'Datepicker'].apply(t.datepicker,[this[0]].concat(i));if(e=='option'&&arguments.length==2&&typeof arguments[1]=='string')return t.datepicker['_'+e+'Datepicker'].apply(t.datepicker,[this[0]].concat(i));return this.each(function(){typeof e=='string'?t.datepicker['_'+e+'Datepicker'].apply(t.datepicker,[this].concat(i)):t.datepicker._attachDatepicker(this,e)})};t.datepicker=new o;t.datepicker.initialized=!1;t.datepicker.uuid=(new Date).getTime();t.datepicker.version='1.8.16';window['DP_jQuery_'+i]=t})(jQuery);(function(t,e){t.widget('ui.progressbar',{options:{value:0,max:100},min:0,_create:function(){this.element.addClass('ui-progressbar ui-widget ui-widget-content ui-corner-all').attr({role:'progressbar','aria-valuemin':this.min,'aria-valuemax':this.options.max,'aria-valuenow':this._value()});this.valueDiv=t('<div class=\'ui-progressbar-value ui-widget-header ui-corner-left\'></div>').appendTo(this.element);this.oldValue=this._value();this._refreshValue()},destroy:function(){this.element.removeClass('ui-progressbar ui-widget ui-widget-content ui-corner-all').removeAttr('role').removeAttr('aria-valuemin').removeAttr('aria-valuemax').removeAttr('aria-valuenow');this.valueDiv.remove();t.Widget.prototype.destroy.apply(this,arguments)},value:function(t){if(t===e)return this._value();this._setOption('value',t);return this},_setOption:function(e,i){if(e==='value'){this.options.value=i;this._refreshValue();this._value()===this.options.max&&this._trigger('complete')};t.Widget.prototype._setOption.apply(this,arguments)},_value:function(){var t=this.options.value;if(typeof t!=='number')t=0;return Math.min(this.options.max,Math.max(this.min,t))},_percentage:function(){return 100*this._value()/this.options.max},_refreshValue:function(){var t=this.value(),e=this._percentage();if(this.oldValue!==t){this.oldValue=t;this._trigger('change')};this.valueDiv.toggle(t>this.min).toggleClass('ui-corner-right',t===this.options.max).width(e.toFixed(0)+'%');this.element.attr('aria-valuenow',t)}});t.extend(t.ui.progressbar,{version:'1.8.16'})})(jQuery);jQuery.effects||function(t,e){function a(e){var i;if(e&&e.constructor==Array&&e.length==3)return e;if(i=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(e))return[parseInt(i[1],10),parseInt(i[2],10),parseInt(i[3],10)];if(i=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(e))return[parseFloat(i[1])*2.55,parseFloat(i[2])*2.55,parseFloat(i[3])*2.55];if(i=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(e))return[parseInt(i[1],16),parseInt(i[2],16),parseInt(i[3],16)];if(i=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(e))return[parseInt(i[1]+i[1],16),parseInt(i[2]+i[2],16),parseInt(i[3]+i[3],16)];if(/rgba\(0, 0, 0, 0\)/.exec(e))return n.transparent;return n[t.trim(e).toLowerCase()]};function c(e,i){var s;do{s=t.curCSS(e,i);if(s!=''&&s!='transparent'||t.nodeName(e,'body'))break;i='backgroundColor'}
+while(e=e.parentNode);return a(s)};function r(){var t=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,i={},e,n;if(t&&t.length&&t[0]&&t[t[0]])for(var s=t.length;s--;){e=t[s];if(typeof t[e]=='string'){n=e.replace(/\-(\w)/g,function(t,e){return e.toUpperCase()});i[n]=t[e]}}
+else for(e in t)if(typeof t[e]==='string')i[e]=t[e];return i};function l(e){var i,s;for(i in e){s=e[i];if(s==null||t.isFunction(s)||i in h||/scrollbar/.test(i)||!/color/i.test(i)&&isNaN(parseFloat(s)))delete e[i]};return e};function u(t,e){var s={_:0},i;for(i in e)if(t[i]!=e[i])s[i]=e[i];return s};function i(e,i,s,n){if(typeof e=='object'){n=i;s=null;i=e;e=i.effect};if(t.isFunction(i)){n=i;s=null;i={}};if(typeof i=='number'||t.fx.speeds[i]){n=s;s=i;i={}};if(t.isFunction(s)){n=s;s=null};i=i||{};s=s||i.duration;s=t.fx.off?0:typeof s=='number'?s:s in t.fx.speeds?t.fx.speeds[s]:t.fx.speeds._default;n=n||i.complete;return[e,i,s,n]};function s(e){if(!e||typeof e==='number'||t.fx.speeds[e])return!0;if(typeof e==='string'&&!t.effects[e])return!0;return!1};t.effects={};t.each(['backgroundColor','borderBottomColor','borderLeftColor','borderRightColor','borderTopColor','borderColor','color','outlineColor'],function(e,i){t.fx.step[i]=function(t){if(!t.colorInit){t.start=c(t.elem,i);t.end=a(t.end);t.colorInit=!0};t.elem.style[i]='rgb('+Math.max(Math.min(parseInt(t.pos*(t.end[0]-t.start[0])+t.start[0],10),255),0)+','+Math.max(Math.min(parseInt(t.pos*(t.end[1]-t.start[1])+t.start[1],10),255),0)+','+Math.max(Math.min(parseInt(t.pos*(t.end[2]-t.start[2])+t.start[2],10),255),0)+')'}});var n={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]},o=['add','remove','toggle'],h={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};t.effects.animateClass=function(e,i,s,n){if(t.isFunction(s)){n=s;s=null};return this.queue(function(){var a=t(this),h=a.attr('style')||' ',d=l(r.call(this)),c,f=a.attr('class');t.each(o,function(t,i){e[i]&&a[i+'Class'](e[i])});c=l(r.call(this));a.attr('class',f);a.animate(u(d,c),{queue:!1,duration:i,easing:s,complete:function(){t.each(o,function(t,i){e[i]&&a[i+'Class'](e[i])});if(typeof a.attr('style')=='object'){a.attr('style').cssText='';a.attr('style').cssText=h}
+else a.attr('style',h);n&&n.apply(this,arguments);t.dequeue(this)}})})};t.fn.extend({_addClass:t.fn.addClass,addClass:function(e,i,s,n){return i?t.effects.animateClass.apply(this,[{add:e},i,s,n]):this._addClass(e)},_removeClass:t.fn.removeClass,removeClass:function(e,i,s,n){return i?t.effects.animateClass.apply(this,[{remove:e},i,s,n]):this._removeClass(e)},_toggleClass:t.fn.toggleClass,toggleClass:function(i,s,n,o,a){return typeof s=='boolean'||s===e?n?t.effects.animateClass.apply(this,[s?{add:i}:{remove:i},n,o,a]):this._toggleClass(i,s):t.effects.animateClass.apply(this,[{toggle:i},s,n,o])},switchClass:function(e,i,s,n,o){return t.effects.animateClass.apply(this,[{add:i,remove:e},s,n,o])}});t.extend(t.effects,{version:'1.8.16',save:function(t,e){for(var i=0;i<e.length;i++)e[i]!==null&&t.data('ec.storage.'+e[i],t[0].style[e[i]])},restore:function(t,e){for(var i=0;i<e.length;i++)e[i]!==null&&t.css(e[i],t.data('ec.storage.'+e[i]))},setMode:function(t,e){if(e=='toggle')e=t.is(':hidden')?'show':'hide';return e},getBaseline:function(t,e){var i;switch(t[0]){case'top':i=0;break;case'middle':i=0.5;break;case'bottom':i=1;break;default:i=t[0]/e.height};switch(t[1]){case'left':t=0;break;case'center':t=0.5;break;case'right':t=1;break;default:t=t[1]/e.width};return{x:t,y:i}},createWrapper:function(e){if(e.parent().is('.ui-effects-wrapper'))return e.parent();var i={width:e.outerWidth(!0),height:e.outerHeight(!0),'float':e.css('float')},s=t('<div></div>').addClass('ui-effects-wrapper').css({fontSize:'100%',background:'transparent',border:'none',margin:0,padding:0}),n=document.activeElement;e.wrap(s);if(e[0]===n||t.contains(e[0],n))t(n).focus();s=e.parent();if(e.css('position')=='static'){s.css({position:'relative'});e.css({position:'relative'})}
+else{t.extend(i,{position:e.css('position'),zIndex:e.css('z-index')});t.each(['top','left','bottom','right'],function(t,s){i[s]=e.css(s);if(isNaN(parseInt(i[s],10)))i[s]='auto'});e.css({position:'relative',top:0,left:0,right:'auto',bottom:'auto'})};return s.css(i).show()},removeWrapper:function(e){var s,i=document.activeElement;if(e.parent().is('.ui-effects-wrapper')){s=e.parent().replaceWith(e);if(e[0]===i||t.contains(e[0],i))t(i).focus();return s};return e},setTransition:function(e,i,s,n){n=n||{};t.each(i,function(t,i){unit=e.cssUnit(i);if(unit[0]>0)n[i]=unit[0]*s+unit[1]});return n}});t.fn.extend({effect:function(e){var s=i.apply(this,arguments),n={options:s[1],duration:s[2],callback:s[3]};s=n.options.mode;var o=t.effects[e];if(t.fx.off||!o)return s?this[s](n.duration,n.callback):this.each(function(){n.callback&&n.callback.call(this)});return o.call(this,n)},_show:t.fn.show,show:function(t){if(s(t))return this._show.apply(this,arguments);else{var e=i.apply(this,arguments);e[1].mode='show';return this.effect.apply(this,e)}},_hide:t.fn.hide,hide:function(t){if(s(t))return this._hide.apply(this,arguments);else{var e=i.apply(this,arguments);e[1].mode='hide';return this.effect.apply(this,e)}},__toggle:t.fn.toggle,toggle:function(e){if(s(e)||typeof e==='boolean'||t.isFunction(e))return this.__toggle.apply(this,arguments);else{var n=i.apply(this,arguments);n[1].mode='toggle';return this.effect.apply(this,n)}},cssUnit:function(e){var i=this.css(e),s=[];t.each(['em','px','%','pt'],function(t,e){if(i.indexOf(e)>0)s=[parseFloat(i),e]});return s}});t.easing.jswing=t.easing.swing;t.extend(t.easing,{def:'easeOutQuad',swing:function(e,i,s,n,o){return t.easing[t.easing.def](e,i,s,n,o)},easeInQuad:function(t,e,i,s,n){return s*(e/=n)*e+i},easeOutQuad:function(t,e,i,s,n){return-s*(e/=n)*(e-2)+i},easeInOutQuad:function(t,e,i,s,n){if((e/=n/2)<1)return s/2*e*e+i;return-s/2*(--e*(e-2)-1)+i},easeInCubic:function(t,e,i,s,n){return s*(e/=n)*e*e+i},easeOutCubic:function(t,e,i,s,n){return s*((e=e/n-1)*e*e+1)+i},easeInOutCubic:function(t,e,i,s,n){if((e/=n/2)<1)return s/2*e*e*e+i;return s/2*((e-=2)*e*e+2)+i},easeInQuart:function(t,e,i,s,n){return s*(e/=n)*e*e*e+i},easeOutQuart:function(t,e,i,s,n){return-s*((e=e/n-1)*e*e*e-1)+i},easeInOutQuart:function(t,e,i,s,n){if((e/=n/2)<1)return s/2*e*e*e*e+i;return-s/2*((e-=2)*e*e*e-2)+i},easeInQuint:function(t,e,i,s,n){return s*(e/=n)*e*e*e*e+i},easeOutQuint:function(t,e,i,s,n){return s*((e=e/n-1)*e*e*e*e+1)+i},easeInOutQuint:function(t,e,i,s,n){if((e/=n/2)<1)return s/2*e*e*e*e*e+i;return s/2*((e-=2)*e*e*e*e+2)+i},easeInSine:function(t,e,i,s,n){return-s*Math.cos(e/n*(Math.PI/2))+s+i},easeOutSine:function(t,e,i,s,n){return s*Math.sin(e/n*(Math.PI/2))+i},easeInOutSine:function(t,e,i,s,n){return-s/2*(Math.cos(Math.PI*e/n)-1)+i},easeInExpo:function(t,e,i,s,n){return e==0?i:s*Math.pow(2,10*(e/n-1))+i},easeOutExpo:function(t,e,i,s,n){return e==n?i+s:s*(-Math.pow(2,-10*e/n)+1)+i},easeInOutExpo:function(t,e,i,s,n){if(e==0)return i;if(e==n)return i+s;if((e/=n/2)<1)return s/2*Math.pow(2,10*(e-1))+i;return s/2*(-Math.pow(2,-10*--e)+2)+i},easeInCirc:function(t,e,i,s,n){return-s*(Math.sqrt(1-(e/=n)*e)-1)+i},easeOutCirc:function(t,e,i,s,n){return s*Math.sqrt(1-(e=e/n-1)*e)+i},easeInOutCirc:function(t,e,i,s,n){if((e/=n/2)<1)return-s/2*(Math.sqrt(1-e*e)-1)+i;return s/2*(Math.sqrt(1-(e-=2)*e)+1)+i},easeInElastic:function(t,e,i,s,n){t=1.70158;var o=0,a=s;if(e==0)return i;if((e/=n)==1)return i+s;o||(o=n*0.3);if(a<Math.abs(s)){a=s;t=o/4}
+else t=o/(2*Math.PI)*Math.asin(s/a);return-(a*Math.pow(2,10*(e-=1))*Math.sin((e*n-t)*2*Math.PI/o))+i},easeOutElastic:function(t,e,i,s,n){t=1.70158;var o=0,a=s;if(e==0)return i;if((e/=n)==1)return i+s;o||(o=n*0.3);if(a<Math.abs(s)){a=s;t=o/4}
+else t=o/(2*Math.PI)*Math.asin(s/a);return a*Math.pow(2,-10*e)*Math.sin((e*n-t)*2*Math.PI/o)+s+i},easeInOutElastic:function(t,e,i,s,n){t=1.70158;var o=0,a=s;if(e==0)return i;if((e/=n/2)==2)return i+s;o||(o=n*0.3*1.5);if(a<Math.abs(s)){a=s;t=o/4}
+else t=o/(2*Math.PI)*Math.asin(s/a);if(e<1)return-0.5*a*Math.pow(2,10*(e-=1))*Math.sin((e*n-t)*2*Math.PI/o)+i;return a*Math.pow(2,-10*(e-=1))*Math.sin((e*n-t)*2*Math.PI/o)*0.5+s+i},easeInBack:function(t,i,s,n,o,a){if(a==e)a=1.70158;return n*(i/=o)*i*((a+1)*i-a)+s},easeOutBack:function(t,i,s,n,o,a){if(a==e)a=1.70158;return n*((i=i/o-1)*i*((a+1)*i+a)+1)+s},easeInOutBack:function(t,i,s,n,o,a){if(a==e)a=1.70158;if((i/=o/2)<1)return n/2*i*i*(((a*=1.525)+1)*i-a)+s;return n/2*((i-=2)*i*(((a*=1.525)+1)*i+a)+2)+s},easeInBounce:function(e,i,s,n,o){return n-t.easing.easeOutBounce(e,o-i,0,n,o)+s},easeOutBounce:function(t,e,i,s,n){return(e/=n)<1/2.75?s*7.5625*e*e+i:e<2/2.75?s*(7.5625*(e-=1.5/2.75)*e+0.75)+i:e<2.5/2.75?s*(7.5625*(e-=2.25/2.75)*e+0.9375)+i:s*(7.5625*(e-=2.625/2.75)*e+0.984375)+i},easeInOutBounce:function(e,i,s,n,o){if(i<o/2)return t.easing.easeInBounce(e,i*2,0,n,o)*0.5+s;return t.easing.easeOutBounce(e,i*2-o,0,n,o)*0.5+n*0.5+s}})}(jQuery);(function(t){t.effects.blind=function(e){return this.queue(function(){var i=t(this),l=['position','top','bottom','left','right'],o=t.effects.setMode(i,e.options.mode||'hide'),n=e.options.direction||'vertical';t.effects.save(i,l);i.show();var s=t.effects.createWrapper(i).css({overflow:'hidden'}),r=n=='vertical'?'height':'width';n=n=='vertical'?s.height():s.width();o=='show'&&s.css(r,0);var a={};a[r]=o=='show'?n:0;s.animate(a,e.duration,e.options.easing,function(){o=='hide'&&i.hide();t.effects.restore(i,l);t.effects.removeWrapper(i);e.callback&&e.callback.apply(i[0],arguments);i.dequeue()})})}})(jQuery);(function(t){t.effects.bounce=function(e){return this.queue(function(){var i=t(this),u=['position','top','bottom','left','right'],r=t.effects.setMode(i,e.options.mode||'effect'),n=e.options.direction||'up',s=e.options.distance||20,d=e.options.times||5,l=e.duration||250;/show|hide/.test(r)&&u.push('opacity');t.effects.save(i,u);i.show();t.effects.createWrapper(i);var a=n=='up'||n=='down'?'top':'left';n=n=='up'||n=='left'?'pos':'neg';s=e.options.distance||(a=='top'?i.outerHeight({margin:!0})/3:i.outerWidth({margin:!0})/3);if(r=='show')i.css('opacity',0).css(a,n=='pos'?-s:s);if(r=='hide')s/=d*2;r!='hide'&&d--;if(r=='show'){var o={opacity:1};o[a]=(n=='pos'?'+=':'-=')+s;i.animate(o,l/2,e.options.easing);s/=2;d--};for(o=0;o<d;o++){var h={},c={};h[a]=(n=='pos'?'-=':'+=')+s;c[a]=(n=='pos'?'+=':'-=')+s;i.animate(h,l/2,e.options.easing).animate(c,l/2,e.options.easing);s=r=='hide'?s*2:s/2};if(r=='hide'){o={opacity:0};o[a]=(n=='pos'?'-=':'+=')+s;i.animate(o,l/2,e.options.easing,function(){i.hide();t.effects.restore(i,u);t.effects.removeWrapper(i);e.callback&&e.callback.apply(this,arguments)})}
+else{h={};c={};h[a]=(n=='pos'?'-=':'+=')+s;c[a]=(n=='pos'?'+=':'-=')+s;i.animate(h,l/2,e.options.easing).animate(c,l/2,e.options.easing,function(){t.effects.restore(i,u);t.effects.removeWrapper(i);e.callback&&e.callback.apply(this,arguments)})};i.queue('fx',function(){i.dequeue()});i.dequeue()})}})(jQuery);(function(t){t.effects.clip=function(e){return this.queue(function(){var i=t(this),l=['position','top','bottom','left','right','height','width'],a=t.effects.setMode(i,e.options.mode||'hide'),n=e.options.direction||'vertical';t.effects.save(i,l);i.show();var s=t.effects.createWrapper(i).css({overflow:'hidden'});s=i[0].tagName=='IMG'?s:i;var o={size:n=='vertical'?'height':'width',position:n=='vertical'?'top':'left'};n=n=='vertical'?s.height():s.width();if(a=='show'){s.css(o.size,0);s.css(o.position,n/2)};var r={};r[o.size]=a=='show'?n:0;r[o.position]=a=='show'?0:n/2;s.animate(r,{queue:!1,duration:e.duration,easing:e.options.easing,complete:function(){a=='hide'&&i.hide();t.effects.restore(i,l);t.effects.removeWrapper(i);e.callback&&e.callback.apply(i[0],arguments);i.dequeue()}})})}})(jQuery);(function(t){t.effects.drop=function(e){return this.queue(function(){var i=t(this),l=['position','top','bottom','left','right','opacity'],n=t.effects.setMode(i,e.options.mode||'hide'),s=e.options.direction||'left';t.effects.save(i,l);i.show();t.effects.createWrapper(i);var a=s=='up'||s=='down'?'top':'left';s=s=='up'||s=='left'?'pos':'neg';var o=e.options.distance||(a=='top'?i.outerHeight({margin:!0})/2:i.outerWidth({margin:!0})/2);if(n=='show')i.css('opacity',0).css(a,s=='pos'?-o:o);var r={opacity:n=='show'?1:0};r[a]=(n=='show'?s=='pos'?'+=':'-=':s=='pos'?'-=':'+=')+o;i.animate(r,{queue:!1,duration:e.duration,easing:e.options.easing,complete:function(){n=='hide'&&i.hide();t.effects.restore(i,l);t.effects.removeWrapper(i);e.callback&&e.callback.apply(this,arguments);i.dequeue()}})})}})(jQuery);(function(t){t.effects.explode=function(e){return this.queue(function(){var s=e.options.pieces?Math.round(Math.sqrt(e.options.pieces)):3,n=e.options.pieces?Math.round(Math.sqrt(e.options.pieces)):3;e.options.mode=e.options.mode=='toggle'?t(this).is(':visible')?'hide':'show':e.options.mode;var i=t(this).show().css('visibility','hidden'),h=i.offset();h.top-=parseInt(i.css('marginTop'),10)||0;h.left-=parseInt(i.css('marginLeft'),10)||0;for(var r=i.outerWidth(!0),l=i.outerHeight(!0),a=0;a<s;a++)for(var o=0;o<n;o++)i.clone().appendTo('body').wrap('<div></div>').css({position:'absolute',visibility:'visible',left:-o*(r/n),top:-a*(l/s)}).parent().addClass('ui-effects-explode').css({position:'absolute',overflow:'hidden',width:r/n,height:l/s,left:h.left+o*(r/n)+(e.options.mode=='show'?(o-Math.floor(n/2))*(r/n):0),top:h.top+a*(l/s)+(e.options.mode=='show'?(a-Math.floor(s/2))*(l/s):0),opacity:e.options.mode=='show'?0:1}).animate({left:h.left+o*(r/n)+(e.options.mode=='show'?0:(o-Math.floor(n/2))*(r/n)),top:h.top+a*(l/s)+(e.options.mode=='show'?0:(a-Math.floor(s/2))*(l/s)),opacity:e.options.mode=='show'?1:0},e.duration||500);setTimeout(function(){e.options.mode=='show'?i.css({visibility:'visible'}):i.css({visibility:'visible'}).hide();e.callback&&e.callback.apply(i[0]);i.dequeue();t('div.ui-effects-explode').remove()},e.duration||500)})}})(jQuery);(function(t){t.effects.fade=function(e){return this.queue(function(){var i=t(this),s=t.effects.setMode(i,e.options.mode||'hide');i.animate({opacity:s},{queue:!1,duration:e.duration,easing:e.options.easing,complete:function(){e.callback&&e.callback.apply(this,arguments);i.dequeue()}})})}})(jQuery);(function(t){t.effects.fold=function(e){return this.queue(function(){var i=t(this),c=['position','top','bottom','left','right'],o=t.effects.setMode(i,e.options.mode||'hide'),r=e.options.size||15,l=!!e.options.horizFirst,u=e.duration?e.duration/2:t.fx.speeds._default/2;t.effects.save(i,c);i.show();var s=t.effects.createWrapper(i).css({overflow:'hidden'}),n=o=='show'!=l,h=n?['width','height']:['height','width'];n=n?[s.width(),s.height()]:[s.height(),s.width()];var a=/([0-9]+)%/.exec(r);if(a)r=parseInt(a[1],10)/100*n[o=='hide'?0:1];if(o=='show')s.css(l?{height:0,width:r}:{height:r,width:0});l={};a={};l[h[0]]=o=='show'?n[0]:r;a[h[1]]=o=='show'?n[1]:0;s.animate(l,u,e.options.easing).animate(a,u,e.options.easing,function(){o=='hide'&&i.hide();t.effects.restore(i,c);t.effects.removeWrapper(i);e.callback&&e.callback.apply(i[0],arguments);i.dequeue()})})}})(jQuery);(function(t){t.effects.highlight=function(e){return this.queue(function(){var i=t(this),n=['backgroundImage','backgroundColor','opacity'],s=t.effects.setMode(i,e.options.mode||'show'),o={backgroundColor:i.css('backgroundColor')};if(s=='hide')o.opacity=0;t.effects.save(i,n);i.show().css({backgroundImage:'none',backgroundColor:e.options.color||'#ffff99'}).animate(o,{queue:!1,duration:e.duration,easing:e.options.easing,complete:function(){s=='hide'&&i.hide();t.effects.restore(i,n);s=='show'&&!t.support.opacity&&this.style.removeAttribute('filter');e.callback&&e.callback.apply(this,arguments);i.dequeue()}})})}})(jQuery);(function(t){t.effects.pulsate=function(e){return this.queue(function(){var i=t(this),s=t.effects.setMode(i,e.options.mode||'show');times=(e.options.times||5)*2-1;duration=e.duration?e.duration/2:t.fx.speeds._default/2;isVisible=i.is(':visible');animateTo=0;if(!isVisible){i.css('opacity',0).show();animateTo=1};if(s=='hide'&&isVisible||s=='show'&&!isVisible)times--;for(s=0;s<times;s++){i.animate({opacity:animateTo},duration,e.options.easing);animateTo=(animateTo+1)%2};i.animate({opacity:animateTo},duration,e.options.easing,function(){animateTo==0&&i.hide();e.callback&&e.callback.apply(this,arguments)});i.queue('fx',function(){i.dequeue()}).dequeue()})}})(jQuery);(function(t){t.effects.puff=function(e){return this.queue(function(){var i=t(this),s=t.effects.setMode(i,e.options.mode||'hide'),o=parseInt(e.options.percent,10)||150,a=o/100,n={height:i.height(),width:i.width()};t.extend(e.options,{fade:!0,mode:s,percent:s=='hide'?o:100,from:s=='hide'?n:{height:n.height*a,width:n.width*a}});i.effect('scale',e.options,e.duration,e.callback);i.dequeue()})};t.effects.scale=function(e){return this.queue(function(){var i=t(this),s=t.extend(!0,{},e.options),n=t.effects.setMode(i,e.options.mode||'effect'),o=parseInt(e.options.percent,10)||(parseInt(e.options.percent,10)==0?0:n=='hide'?0:100),r=e.options.direction||'both',a=e.options.origin;if(n!='effect'){s.origin=a||['middle','center'];s.restore=!0};a={height:i.height(),width:i.width()};i.from=e.options.from||(n=='show'?{height:0,width:0}:a);o={y:r!='horizontal'?o/100:1,x:r!='vertical'?o/100:1};i.to={height:a.height*o.y,width:a.width*o.x};if(e.options.fade){if(n=='show'){i.from.opacity=0;i.to.opacity=1};if(n=='hide'){i.from.opacity=1;i.to.opacity=0}};s.from=i.from;s.to=i.to;s.mode=n;i.effect('size',s,e.duration,e.callback);i.dequeue()})};t.effects.size=function(e){return this.queue(function(){var i=t(this),o=['position','top','bottom','left','right','width','height','overflow','opacity'],f=['position','top','bottom','left','right','overflow','opacity'],d=['width','height','overflow'],c=['fontSize'],a=['borderTopWidth','borderBottomWidth','paddingTop','paddingBottom'],r=['borderLeftWidth','borderRightWidth','paddingLeft','paddingRight'],p=t.effects.setMode(i,e.options.mode||'effect'),u=e.options.restore||!1,h=e.options.scale||'both',l=e.options.origin,n={height:i.height(),width:i.width()};i.from=e.options.from||n;i.to=e.options.to||n;if(l){l=t.effects.getBaseline(l,n);i.from.top=(n.height-i.from.height)*l.y;i.from.left=(n.width-i.from.width)*l.x;i.to.top=(n.height-i.to.height)*l.y;i.to.left=(n.width-i.to.width)*l.x};var s={from:{y:i.from.height/n.height,x:i.from.width/n.width},to:{y:i.to.height/n.height,x:i.to.width/n.width}};if(h=='box'||h=='both'){if(s.from.y!=s.to.y){o=o.concat(a);i.from=t.effects.setTransition(i,a,s.from.y,i.from);i.to=t.effects.setTransition(i,a,s.to.y,i.to)};if(s.from.x!=s.to.x){o=o.concat(r);i.from=t.effects.setTransition(i,r,s.from.x,i.from);i.to=t.effects.setTransition(i,r,s.to.x,i.to)}};if(h=='content'||h=='both')if(s.from.y!=s.to.y){o=o.concat(c);i.from=t.effects.setTransition(i,c,s.from.y,i.from);i.to=t.effects.setTransition(i,c,s.to.y,i.to)};t.effects.save(i,u?o:f);i.show();t.effects.createWrapper(i);i.css('overflow','hidden').css(i.from);if(h=='content'||h=='both'){a=a.concat(['marginTop','marginBottom']).concat(c);r=r.concat(['marginLeft','marginRight']);d=o.concat(a).concat(r);i.find('*[width]').each(function(){child=t(this);u&&t.effects.save(child,d);var i={height:child.height(),width:child.width()};child.from={height:i.height*s.from.y,width:i.width*s.from.x};child.to={height:i.height*s.to.y,width:i.width*s.to.x};if(s.from.y!=s.to.y){child.from=t.effects.setTransition(child,a,s.from.y,child.from);child.to=t.effects.setTransition(child,a,s.to.y,child.to)};if(s.from.x!=s.to.x){child.from=t.effects.setTransition(child,r,s.from.x,child.from);child.to=t.effects.setTransition(child,r,s.to.x,child.to)};child.css(child.from);child.animate(child.to,e.duration,e.options.easing,function(){u&&t.effects.restore(child,d)})})};i.animate(i.to,{queue:!1,duration:e.duration,easing:e.options.easing,complete:function(){i.to.opacity===0&&i.css('opacity',i.from.opacity);p=='hide'&&i.hide();t.effects.restore(i,u?o:f);t.effects.removeWrapper(i);e.callback&&e.callback.apply(this,arguments);i.dequeue()}})})}})(jQuery);(function(t){t.effects.shake=function(e){return this.queue(function(){var i=t(this),c=['position','top','bottom','left','right'];t.effects.setMode(i,e.options.mode||'effect');var s=e.options.direction||'left',n=e.options.distance||20,u=e.options.times||3,o=e.duration||e.options.duration||140;t.effects.save(i,c);i.show();t.effects.createWrapper(i);var r=s=='up'||s=='down'?'top':'left',l=s=='up'||s=='left'?'pos':'neg';s={};var a={},h={};s[r]=(l=='pos'?'-=':'+=')+n;a[r]=(l=='pos'?'+=':'-=')+n*2;h[r]=(l=='pos'?'-=':'+=')+n*2;i.animate(s,o,e.options.easing);for(n=1;n<u;n++)i.animate(a,o,e.options.easing).animate(h,o,e.options.easing);i.animate(a,o,e.options.easing).animate(s,o/2,e.options.easing,function(){t.effects.restore(i,c);t.effects.removeWrapper(i);e.callback&&e.callback.apply(this,arguments)});i.queue('fx',function(){i.dequeue()});i.dequeue()})}})(jQuery);(function(t){t.effects.slide=function(e){return this.queue(function(){var i=t(this),l=['position','top','bottom','left','right'],a=t.effects.setMode(i,e.options.mode||'show'),s=e.options.direction||'left';t.effects.save(i,l);i.show();t.effects.createWrapper(i).css({overflow:'hidden'});var o=s=='up'||s=='down'?'top':'left';s=s=='up'||s=='left'?'pos':'neg';var n=e.options.distance||(o=='top'?i.outerHeight({margin:!0}):i.outerWidth({margin:!0}));if(a=='show')i.css(o,s=='pos'?isNaN(n)?'-'+n:-n:n);var r={};r[o]=(a=='show'?s=='pos'?'+=':'-=':s=='pos'?'-=':'+=')+n;i.animate(r,{queue:!1,duration:e.duration,easing:e.options.easing,complete:function(){a=='hide'&&i.hide();t.effects.restore(i,l);t.effects.removeWrapper(i);e.callback&&e.callback.apply(this,arguments);i.dequeue()}})})}})(jQuery);(function(t){t.effects.transfer=function(e){return this.queue(function(){var i=t(this),s=t(e.options.to),n=s.offset();s={top:n.top,left:n.left,height:s.innerHeight(),width:s.innerWidth()};n=i.offset();var o=t('<div class="ui-effects-transfer"></div>').appendTo(document.body).addClass(e.options.className).css({top:n.top,left:n.left,height:i.innerHeight(),width:i.innerWidth(),position:'absolute'}).animate(s,e.duration,e.options.easing,function(){o.remove();e.callback&&e.callback.apply(i[0],arguments);i.dequeue()})})}})(jQuery);/*!
+ * jQuery.ScrollTo
+ * Copyright (c) 2007-2009 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com
+ * Dual licensed under MIT and GPL.
+ * Date: 06/05/2009
+ *
+ * @projectDescription Easy element scrolling using jQuery.
+ * http://flesler.blogspot.com/2007/10/jqueryscrollto.html
+ * Works with jQuery +1.2.6. Tested on FF 2/3, IE 6/7/8, Opera 9.5/6, Safari 3, Chrome 1 on WinXP.
+ *
+ * @author Ariel Flesler
+ * @version 1.4.2
+ *
+ * @id jQuery.scrollTo
+ * @id jQuery.fn.scrollTo
+ * @param {String, Number, DOMElement, jQuery, Object} target Where to scroll the matched elements.
+ * The different options for target are:
+ * - A number position (will be applied to all axes).
+ * - A string position ('44', '100px', '+=90', etc ) will be applied to all axes
+ * - A jQuery/DOM element ( logically, child of the element to scroll )
+ * - A string selector, that will be relative to the element to scroll ( 'li:eq(2)', etc )
+ * - A hash { top:x, left:y }, x and y can be any kind of number/string like above.
+ * - A percentage of the container's dimension/s, for example: 50% to go to the middle.
+ * - The string 'max' for go-to-end.
+ * @param {Number, Function} duration The OVERALL length of the animation, this argument can be the settings object instead.
+ * @param {Object,Function} settings Optional set of settings or the onAfter callback.
+ * @option {String} axis Which axis must be scrolled, use 'x', 'y', 'xy' or 'yx'.
+ * @option {Number, Function} duration The OVERALL length of the animation.
+ * @option {String} easing The easing method for the animation.
+ * @option {Boolean} margin If true, the margin of the target element will be deducted from the final position.
+ * @option {Object, Number} offset Add/deduct from the end position. One number for both axes or { top:x, left:y }.
+ * @option {Object, Number} over Add/deduct the height/width multiplied by 'over', can be { top:x, left:y } when using both axes.
+ * @option {Boolean} queue If true, and both axis are given, the 2nd axis will only be animated after the first one ends.
+ * @option {Function} onAfter Function to be called after the scrolling ends.
+ * @option {Function} onAfterFirst If queuing is activated, this function will be called after the first scrolling ends.
+ * @return {jQuery} Returns the same jQuery object, for chaining.
+ *
+ * @desc Scroll to a fixed position
+ * @example $('div').scrollTo( 340 );
+ *
+ * @desc Scroll relatively to the actual position
+ * @example $('div').scrollTo( '+=340px', { axis:'y' } );
+ *
+ * @desc Scroll using a selector (relative to the scrolled element)
+ * @example $('div').scrollTo( 'p.paragraph:eq(2)', 500, { easing:'swing', queue:true, axis:'xy' } );
+ *
+ * @desc Scroll to a DOM element (same for jQuery object)
+ * @example var second_child = document.getElementById('container').firstChild.nextSibling;
+ * $('#container').scrollTo( second_child, { duration:500, axis:'x', onAfter:function(){
+ * alert('scrolled');
+ * }});
+ *
+ * @desc Scroll on both axes, to different values
+ * @example $('div').scrollTo( { top: 300, left:'+=200' }, { axis:'xy', offset:-20 } );
+ */
+;(function(e){var t=e.scrollTo=function(t,o,n){e(window).scrollTo(t,o,n)};t.defaults={axis:'xy',duration:parseFloat(e.fn.jquery)>=1.3?0:1,limit:!0};t.window=function(t){return e(window)._scrollable()};e.fn._scrollable=function(){return this.map(function(){var t=this,n=!t.nodeName||e.inArray(t.nodeName.toLowerCase(),['iframe','#document','html','body'])!=-1;if(!n)return t;var o=(t.contentWindow||t).document||t.ownerDocument||t;return e.browser.safari||o.compatMode=='BackCompat'?o.body:o.documentElement})};e.fn.scrollTo=function(i,r,n){if(typeof r=='object'){n=r;r=0};if(typeof n=='function')n={onAfter:n};if(i=='max')i=9e9;n=e.extend({},t.defaults,n);r=r||n.duration;n.queue=n.queue&&n.axis.length>1;if(n.queue)r/=2;n.offset=o(n.offset);n.over=o(n.over);return this._scrollable().each(function(){var f=this,c=e(f),a=i,u,s={},d=c.is('html,body');switch(typeof a){case'number':case'string':if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(a)){a=o(a);break};a=e(a,this);case'object':if(a.is||a.style)u=(a=e(a)).offset()};e.each(n.axis.split(''),function(o,i){var h=i=='x'?'Left':'Top',r=h.toLowerCase(),e='scroll'+h,w=f[e],b=t.max(f,i);if(u){s[e]=u[r]+(d?0:w-c.offset()[r]);if(n.margin){s[e]-=parseInt(a.css('margin'+h))||0;s[e]-=parseInt(a.css('border'+h+'Width'))||0};s[e]+=n.offset[r]||0;if(n.over[r])s[e]+=a[i=='x'?'width':'height']()*n.over[r]}
+else{var m=a[r];s[e]=m.slice&&m.slice(-1)=='%'?parseFloat(m)/100*b:m};if(n.limit&&/^\d+$/.test(s[e]))s[e]=s[e]<=0?0:Math.min(s[e],b);if(!o&&n.queue){if(w!=s[e])l(n.onAfterFirst);delete s[e]}});l(n.onAfter);function l(e){c.animate(s,r,n.easing,e&&function(){e.call(this,i,n)})}}).end()};t.max=function(t,o){var n=o=='x'?'Width':'Height',i='scroll'+n;if(!e(t).is('html,body'))return t[i]-e(t)[n.toLowerCase()]();var r='client'+n,a=t.ownerDocument.documentElement,s=t.ownerDocument.body;return Math.max(a[i],s[i])-Math.min(a[r],s[r])};function o(e){return typeof e=='object'?e:{top:e,left:e}}})(jQuery);$('html').removeClass('nojs');var DEFAULT_CONTENT_ACTION='edit';$(document).ready(function(){refreshAll();window.setInterval('ping()',300000)});function ping(){$.ajax(createUrl('title','ping',0))};function refreshAll(){refreshTitleBar();refreshWorkbench();$('div#filler').click(function(){if($('div#dialog').hasClass('modal')){}
+else{$('div#dialog').html('').hide();$('div#filler').fadeOut(500)}})};function refreshAllRefreshables(){$('div#workbench div.panel > div.header > ul.views > li.active').each(function(){if($(this).hasClass('static'))return;var e=$(this).attr('data-method'),i=$(this).attr('data-action'),t=$(this).attr('data-id'),a=$(this).attr('data-extra');loadView($(this).closest('div.panel').find('div.content'),i,e,t)})};function refreshActualView(e){$(e).closest('div.panel').find('li.active').each(function(){var e=$(this).attr('data-method'),i=$(this).attr('data-action'),t=$(this).attr('data-id');loadView($(this).closest('div.panel').find('div.content'),i,e,t)})};function refreshWorkbench(){$('ul#history').empty();$('div#workbench').empty().fadeOut('fast').load(createUrl('workbench','show',0),null,function(){resizeWorkbench();$('div.modaldialog').fadeOut(500);$('div#workbench').removeClass('modal');$('div#filler').fadeOut(500);$(this).fadeIn(750).find('li.active').each(function(){var i=$(this).attr('data-method'),e=$(this).attr('data-action');if(e)loadView($(this).closest('div.panel').find('div.content'),e,i,0)});$('div.backward_link').click(function(){var e=$(this).closest('div.header').find('ul.views'),i=e.find('li.action.active').prev();e.scrollTo(i,500,{'axis':'x'});i.click()});$('div.forward_link').click(function(){var e=$(this).closest('div.header').find('ul.views'),i=e.find('li.action.active').next();e.scrollTo(i,500,{'axis':'x'});i.click()});registerWorkbenchEvents()});loadTree();$(window).resize(function(){resizeWorkbench()})};function registerWorkbenchEvents(){$('ul.views > li.action').draggable({cursor:'move',revert:'invalid'});$('ul.views').droppable({accept:'li.action',hoverClass:'drophover',activeClass:'dropactive',drop:function(e,i){var a=i.draggable,n=$(this),s=a.parent();if($(a).closest('div.panel').attr('id')==$(n).closest('div.panel').attr('id'))$(a).css({top:0,left:0});else $(a).detach().css({top:0,left:0}).appendTo(n).click();if(s.find('li').size()==0){var t=s.closest('div.container');s.closest('div.panel').remove();if(t.hasClass('autosize'))t.children('div.panel').addClass('autosize').removeClass('resizable');else t.children('div.panel').addClass('resizable').removeClass('autosize');t.replaceWith(t.children('div.panel'));resizeWorkbench()}}});$('div.content').droppable({accept:'li.action',hoverClass:'drophover',activeClass:'dropactive',drop:function(e,i){var s=i.draggable,n=$(this),r=s.parent(),d=s.offset(),l=n.offset(),h=d.left-l.left,v=l.left+n.width()-d.left,o=d.top-l.top,c=l.top+n.height()-d.top,t=$('<div class="container"><div class="first" /><div class="divider" /><div class="second"></div>');if(h<Math.min(v,Math.min(o,c))){t.addClass('axle-x');t.children('div.divider').addClass('to-right');t.children('div.first').removeClass('first').addClass('resizable');t.children('div.second').removeClass('first').addClass('autosize')}
+else if(v<Math.min(o,c)){t.addClass('axle-x');t.children('div.divider').addClass('to-left');t.children('div.first').removeClass('first').addClass('autosize');t.children('div.second').removeClass('first').addClass('resizable')}
+else if(o<c){t.addClass('axle-y');t.children('div.divider').addClass('to-bottom');t.children('div.first').removeClass('first').addClass('resizable');t.children('div.second').removeClass('first').addClass('autosize')}
+else{t.addClass('axle-y');t.children('div.divider').addClass('to-top');t.children('div.first').removeClass('first').addClass('autosize');t.children('div.second').removeClass('first').addClass('resizable')};t.children('div.resizable').addClass('bar').data('size-factor',0.4);$(s).closest('div.panel').clone().addClass('resizable').removeClass('autosize').replaceAll(t.children('div.resizable'));t.find('ul.views > li').remove();$(s).detach().css({top:0,left:0}).appendTo(t.find('ul.views')).click();var a=$(n).closest('div.panel').replaceWith(t);t.children('div.autosize').replaceWith(a);if(a.hasClass('autosize')){t.addClass('autosize').removeClass('resizable')};if(a.hasClass('resizable')){t.addClass('resizable').removeClass('autosize')};a.addClass('autosize').removeClass('resizable');if(r.find('li').size()==0){var a=r.closest('div.container');r.closest('div.panel').remove();if(a.hasClass('autosize'))a.children('div.panel').addClass('autosize').removeClass('resizable');else a.children('div.panel').addClass('resizable').removeClass('autosize');a.replaceWith(a.children('div.panel'));resizeWorkbench()};resizeWorkbench();registerWorkbenchEvents()}});if($('div#workbench div.panel.modal').size()>0){$('div#workbench div.panel.modal').parent().addClass('modal');$('div#filler').fadeTo(500,0.5);$('div#workbench').addClass('modal')};$('div.container.axle-x > div.divider').draggable({stop:function(e,i){var t=i.position.left,a=$(this).hasClass('to-right')?1:-1;$(this).parent().children('div.resizable').each(function(){var e=((a*t)+$(this).width())/($(this).parent().width());e=Math.min(0.5,Math.max(0.1,e));$(this).data('size-factor',e)});resizeWorkbenchContainer($(this).parent())},axis:'x',revert:!0,revertDuration:0});$('div.container.axle-y > div.divider').draggable({stop:function(e,i){var t=i.position.top,a=$(this).hasClass('to-bottom')?1:-1;$(this).parent().children('div.resizable').each(function(){var e=((a*t)+$(this).height())/($(this).parent().height());e=Math.min(0.5,Math.max(0.1,e));$(this).data('size-factor',e)});resizeWorkbenchContainer($(this).parent())},axis:'y',revert:!0,revertDuration:0});$('ul.views > li.action').click(function(){$(this).orLoadView()});$('div.header').dblclick(function(){fullscreen(this)})};function refreshTitleBar(){$('div#header').load(createUrl('title','show',0),function(){$(this).fadeIn('slow');$('div.clickable.filtered').addClass('inactive');registerHeaderEvents()})};function loadViewByName(e,i){alert('loadViewByName');loadView($('div#'+e),i)};function loadView(e,i,t,s,n){var a=$(e).children('div.sheet.action-'+i+'.method-'+t+'.id-'+s);if(a.size()==0){$(e).children('div.sheet').hide();a=$('<div class="sheet action-'+i+' method-'+t+' id-'+s+'" />');$(e).append(a)}
+else{if(a.is(':visible')){return}
+else{$(e).children('div.sheet').hide();a.show();return}};var d=createUrl(i,t,s,n);$(a).empty().fadeTo(1,0.7).addClass('loader').html('').load(d,function(e,i,t){$(a).fadeTo(350,1);if(i=='error'){$(a).html('');$(a).removeClass('loader');notify('error',e);return};$(a).removeClass('loader');registerViewEvents(a)})};function registerViewEvents(e){$(e).trigger('orViewLoaded');$(e).find('input[data-hint]').orHint();$(e).closest('div.panel').find('div.header div.dropdown div.entry.perview').remove();$(e).find('div.headermenu > a').each(function(e,i){});$(e).find('div.header > a.back').each(function(i,t){$(t).removeClass('button').wrap('<div class="entry perview" />').parent().appendTo($(e).closest('div.panel').find('div.header div.dropdown').first())});$(e).closest('div.panel').find('.clickable').orLinkify();$(e).find('div.selector.tree').each(function(){var e=this;$(this).orTree({type:'project',selectable:$(e).attr('data-types').split(','),id:$(e).attr('data-init-folderid'),onSelect:function(i,t,a){var s=$(e).parent();$(s).find('input[type=text]').attr('value',i);$(s).find('input[type=hidden]').attr('value',a)}})});$('div.content li.object').draggable({cursor:'move',revert:'invalid'});$('div.content li.object > div.entry[data-type=\'folder\']').droppable({accept:'li.object',hoverClass:'drophover',activeClass:'dropactive',drop:function(e,i){var t=i.draggable,a=$(this).parent();startDialog($(this).text(),$(t).attr('data-type'),'copy',$(a).attr('data-id'),{'action':$(t).attr('data-type'),'subaction':'copy','id':$(t).attr('data-id'),'targetFolderId':$(a).attr('data-id')});$(t).detach().css({top:0,left:0}).appendTo(a).click()}});$(e).find('input').change(function(){$(this).closest('div.panel').find('ul.views li.action.active').addClass('dirty')})};function registerHeaderEvents(){$('div#header .clickable').orLinkify();$('div.search input').blur(function(){$('div.search input div.dropdown').fadeOut()});$('div.search input').orHint();$('div.search input').orSearch({dropdown:'div.search div.dropdown'})};function fullscreen(e){$(e).closest('div.panel').fadeOut('fast',function(){$(this).toggleClass('fullscreen').fadeIn('fast')})};function loadTree(){if($('div#panel-tree li.action').data('action')=='tree'){$('div#panel-tree div.content > div.sheet.action-tree.method-tree').html(' ');$('div#panel-tree div.content > div.sheet.action-tree.method-tree').orTree({type:'root',id:0,onSelect:function(e,i,t){openNewAction(e,i,t,'')}});$('div#panel-tree div.content > div.sheet.action-tree.method-tree > ul.tree > div.tree').delay(500).click();$('div#panel-tree div.content > div.sheet.action-tree.method-tree > ul.tree > div.tree').delay(500).click()}};function submitUrl(e,i){postUrl(i,e);refreshAllRefreshables()};function postUrl(e,i){e+='&output=json';$.ajax({'type':'POST',url:e,data:{},success:function(e,t,a){$('div.panel div.status div.loader').html(' ');doResponse(e,t,i)}})};function startView(e,i){var t=$('#panel-content').find('li.active').data('action'),a=$('#panel-content').find('li.active').data('id');loadView($(e).closest('div.panel').find('div.content'),t,i,a)};function startDialog(e,i,t,a,s){if(i==null)i=$('#panel-content').find('li.active').data('action');if(a==null)a=$('#panel-content').find('li.active').data('id');$('div#filler').fadeTo(500,0.5);$('div#dialog').html('<div class="header"><ul class="views"><li class="action active"><img class="icon" title="" src="./themes/default/images/icon/'+t+'.png" /><div class="tabname" style="width:100px;">'+e+'</div></li></ul></div><div class="content" />');$('div#dialog').data('id',a);$('div#dialog').show();loadView($('div#dialog div.content'),i,t,a,s)};function modalView(e,i){var t=$(e).closest('div.panel').find('li.active').attr('data-action'),a=$(e).closest('div.panel').find('li.active').attr('data-method'),s=$(e).closest('div.panel').find('li.active').attr('data-id');$(e).closest('div.content').modal({'overlayClose':'true','xxxonClose':function(){alert('close)')}});loadView($(e).closest('div.content'),t,a,s)};function setTitle(e){if(e)$('head > title').text(e+' - '+$('head > title').data('default'));else $('head > title').text($('head > title').data('default'))};function openNewAction(e,i,t,a){setTitle(e);$('ul#history li.active').removeClass('active');if($('ul#history li.'+i+'.id'+t).length>0){$('ul#history li.'+i+'.id'+t).addClass('active')}
+else{$('ul#history').append('<li class="action active '+i+' id'+t+'"><img src="'+OR_THEMES_EXT_DIR+'default/images/icon_'+i+'.png" title="" />'+e+'</li>');$('ul#history li.active').click(function(){$('ul#history li.active').removeClass('active');$(this).addClass('active');setNewAction(i,t,a)})};$('div#panel-content > div.header > ul.views li.active').removeClass('active');if($('div#panel-content > div.header > ul.views > li.'+i+'.id'+t).length>0){$('div#panel-content > div.header > ul.views > li.'+i+'.id'+t).addClass('active')}
+else{$('div#panel-content > div.header > ul.views > li.active').removeClass('active');var s=7;if($('div#panel-content > div.header > ul.views > li.action').size()>=s)$('div#panel-content > div.header > ul.views > li.action').first().remove();$('div#panel-content > div.header > ul.views').append('<li class="action active '+i+' id'+t+'" title="'+e+'" data-action="'+i+'" data-id="'+t+'" data-method="'+DEFAULT_CONTENT_ACTION+'"><img class="icon" src="'+OR_THEMES_EXT_DIR+'default/images/icon_'+i+'.png" title="" /><div class="tabname">'+e+'</div><img class="close icon" src="'+OR_THEMES_EXT_DIR+'default/images/icon/close.gif" title="" /></li>');resizeTabs($('div#contentbar'),!0);$('div#panel-content > div.header > ul.views').scrollLeft(9999);$('div#panel-content > div.header > ul.views img.close').click(function(){setTitle('');var i=$(this).closest('li.action').data('action'),t=$(this).closest('li.action').data('id');$('div#workbench div.content > div.sheet.action-'+i+'.id-'+t).remove();if($(this).closest('li.action').hasClass('active')){$('div#workbench div.refreshable div.content').html('');var e=$(this).closest('ul.views');$(this).parent().remove();$(e).find('li.action').last().click()}
+else{$(this).parent().remove()};resizeTabs($('div#panel-content'),!0)});$('div#panel-content > div.header > ul.views > li.active').click(function(){$('div#panel-content > div.header > ul.views li.active').removeClass('active');$(this).addClass('active');setTitle($(this).children('div.tabname').text());setNewAction(i,t,a)});resizeTabs($('div#panel-content '))};setNewAction(i,t,a)};function filterMenus(e){$('div.clickable.filtered').addClass('inactive');$('div.clickable.filtered.on-action-'+e).removeClass('inactive')};function setNewAction(e,i,t){filterMenus(e);$('div#workbench ul.views > li.action.dependent').attr('data-action',e).attr('data-id',i).attr('data-extra',JSON.stringify(t));refreshAllRefreshables()};function setNewId(e){$('div#workbench div.refreshable').attr('data-id',e);refreshAllRefreshables()};function submitLink(e,i){var t=jQuery.parseJSON(i),a='./dispatcher.php';t.output='json';$.ajax({'type':'POST',url:a,data:t,success:function(i,t,a){$('div.panel div.status div.loader').html(' ');doResponse(i,t,e)}})};function notifyBrowser(e){if(!('Notification' in window)){return}
+else if(Notification.permission==='granted'){var i=new Notification(e)}
+else if(Notification.permission!=='denied'){Notification.requestPermission(function(i){if(i==='granted'){var t=new Notification(e)}})}};function setUserStyle(e){var i=$('html'),t=i.attr('class').split(/\s+/);$.each(t,function(e,t){if(t.startsWith('theme-')){i.removeClass(t)}});i.addClass('theme-'+e.toLowerCase())};function insert(e,i,t){var a=document.forms[0].elements[e];a.focus();if(typeof document.selection!='undefined'){var d=document.selection.createRange(),s=d.text;d.text=i+s+t;d=document.selection.createRange();if(s.length==0){d.move('character',-t.length)}
+else{d.moveStart('character',i.length+s.length+t.length)};d.select()}
+else if(typeof a.selectionStart!='undefined'){var l=a.selectionStart,r=a.selectionEnd,s=a.value.substring(l,r);a.value=a.value.substr(0,l)+i+s+t+a.value.substr(r);var n;if(s.length==0){n=l+i.length}
+else{n=l+i.length+s.length+t.length};a.selectionStart=n;a.selectionEnd=n}
+else{n=a.value.length;var s=prompt('Text');a.value=a.value.substr(0,n)+i+s+t+a.value.substr(n)}};function loadSubaction(e,i,t,a){alert('nobody should call loadSubaction()');var n={skin:'v2',baseHref:OR_THEMES_EXT_DIR+'../editor/editor/',customConfig:'config-openrat.js',filebrowserUploadUrl:'./dispatcher.php?action=filebrowser&subaction=directupload&name=upload',filebrowserBrowseUrl:'./dispatcher.php?action=filebrowser&subaction=browse'};var s=$(e).parent().parent().parent('div.panel').children('div.content').first();$(s).load(createUrl(i,t,a)+' div.content',null,function(){var e=CKEDITOR.instances[$('textarea.editor').attr('name')];if(e)e.destroy();CKEDITOR.replace('text',{customConfig:'config-openrat.js'})});$(e).parent().parent().find('.active').removeClass('active');$(e).parent().addClass('active')};function createUrl(e,i,t,s){var a='./dispatcher.php';if(typeof s==='string'){a+='?action='+e+'&subaction='+i+'&id='+t;jQuery.each(jQuery.parseJSON(s),function(e,i){a=a+'&'+e+'='+i})}
+else if(typeof s==='object'){a+='?0=0';jQuery.each(s,function(e,i){a=a+'&'+e+'='+i})}
+else{a+='?action='+e+'&subaction='+i+'&id='+t};console.log('URL='+a);return a};function resizeWorkbenchContainer(e){var t=e.width(),a=e.height(),s=e.children('div.resizable').data('size-factor');if(!s)s=0.3;var n=e.hasClass('axle-x');if(n){var i=Math.floor(t*s);e.find('div.panel.resizable').css('width',''+i+'px');e.find('div.panel.resizable > div.content').css('height',''+(a-26)+'px');e.find('div.panel.autosize ').css('width',''+(t-i-9)+'px');e.find('div.panel.autosize > div.content').css('height',''+(a-26)+'px');e.children('div.resizable').css('width',''+i+'px');e.children('div.resizable').css('height',''+a+'px');e.children('div.autosize').css('width',''+(t-i-9)+'px');e.children('div.autosize').css('height',''+a+'px');e.children('div.divider').css('height',''+a+'px')}
+else{var i=Math.floor(a*s);e.find('div.panel.resizable ').css('width',''+t+'px');e.find('div.panel.resizable > div.content').css('height',''+(i-26)+'px');e.find('div.panel.autosize ').css('width',''+t+'px');e.find('div.panel.autosize > div.content').css('height',''+(a-i-26)+'px');e.children('div.resizable').css('width',''+t+'px');e.children('div.resizable').css('height',''+i+'px');e.children('div.autosize').css('width',''+t+'px');e.children('div.autosize').css('height',''+(a-i-5)+'px');e.children('div.divider').css('width',''+t+'px')};e.children('div.panel').each(function(){resizeTabs($(this))});$(e).children('div.container').each(function(){resizeWorkbenchContainer($(this))})};function resizeWorkbench(){var i=$(window).width(),t=$(window).height(),a=40,e=$('div#workbench > div.container');e.css('width',''+(i-6)+'px');e.css('height',''+(t-a-6)+'px');resizeWorkbenchContainer(e)};function resizeTabs(e){var t=$(e).find('div.header li.action').size(),i=Math.floor((($(e).width()-18)/t)-39);if($(e).is('#panel-content'))i-=24;i=Math.min(90,Math.max(5,i));$(e).find('li.action div.tabname').width(i)};function help(e,i,t){var a=$(e).closest('div.panel').find('li.action.active').attr('data-action'),s=$(e).closest('div.panel').find('li.action.active').attr('data-method');window.open(i+a+'/'+s+t,'OpenRat_Help','location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes')};function notify(e,i){var t=$('<div class="notice '+e+'"><div class="text">'+i+'</div></div>');$('#noticebar').prepend(t);notifyBrowser(i);$(t).fadeIn().click(function(){$(this).fadeOut('fast',function(){$(this).remove()})})};;jQuery.fn.orHint=function(){$(this).each(function(t){if($(this).val()=='')$(this).val($(this).attr('data-hint')).addClass('hint')});return $(this).focus(function(){if($(this).val()==$(this).attr('data-hint'))$(this).val('').removeClass('hint')}).blur(function(){if($(this).val()=='')$(this).val($(this).attr('data-hint')).addClass('hint')})};;jQuery.fn.orSearch=function(t){var a=$.extend({'dropdown':'unknown'},t);return $(this).keyup(function(){var t=$(this).val();if(t.length>3){$(a.dropdown).html('');$.ajax({'type':'GET',url:'./dispatcher.php?action=search&subaction=quicksearch&output=json&search='+t,data:null,success:function(n,e,d){for(id in n.output.result){var t=n.output.result[id];$(a.dropdown).append('<div class="entry clickable" title="'+t.desc+'"><a href="javascript:void(0);" data-type="open" data-name="'+t.name+'" data-action="'+t.type+'" data-id="'+id+'"><img src="'+OR_THEMES_EXT_DIR+'default/images/icon_'+t.type+'.png" />'+t.name+'</a></div>')};$(a.dropdown).orLinkify()}});$(a.dropdown).fadeIn()}
+else{$(a.dropdown).fadeOut()}})};;jQuery.fn.orLinkify=function(){return $(this).click(function(){$(this).find('a').first().each(function(){var t=$(this).attr('data-type');if($(this).parent().hasClass('inactive'))return;if(t=='post'){submitLink(this,$(this).attr('data-data'))}
+else if(t=='view'){startView(this,$(this).attr('data-method'))}
+else if(t=='modal'){startDialog($(this).attr('data-name'),null,$(this).attr('data-method'))}
+else if(t=='dialog'){startDialog($(this).attr('data-name'),null,$(this).attr('data-method'))}
+else if(t=='url'){submitUrl(this,$(this).attr('data-url'))}
+else if(t=='external'){window.open($(this).attr('data-url'),' _blank')}
+else if(t=='popup'){window.open($(this).attr('data-url'),'Popup','location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes')}
+else if(t=='help'){help(this,$(this).attr('data-url'),$(this).attr('data-suffix'))}
+else if(t=='fullscreen'){fullscreen(this)}
+else if(t=='open'){openNewAction($(this).attr('data-name'),$(this).attr('data-action'),$(this).attr('data-id'),0)}
+else{alert('Fatal: Cannot open link: '+$(this).html())}})})};;jQuery.fn.orTree=function(t){var e=$.extend({'onSelect':function(){},'type':'root','id':0,'selectable':Array()},t);$(this).each(function(n,t){$(t).closest('div.content').addClass('loader');$.getJSON('./dispatcher.php?action=tree&subaction=loadBranch&id='+e.id+'&type='+e.type+'&output=json',function(i){$(t).append('<ul class="tree" style="display:none;"/>');var n=$(t).children('ul').first(),l=i['output'];$.each(l['branch'],function(i,t){if(!t.action||t.action=='folder'||e.selectable.length==0||e.selectable[0]==''||jQuery.inArray(t.action,e.selectable)!=-1){$(n).append('<li class="object" data-id="'+t.internalId+'" data-type="'+t.type+'"><div class="tree"> </div><div class="entry" data-id="'+t.internalId+'" data-type="'+t.type+'" title="'+t.description+'"><img src="'+OR_THEMES_EXT_DIR+'default/images/icon_'+t['icon']+'.png" />'+t.text+'</div></li>');var l=$(n).children('li').last();if(t.type){$(l).children('div.tree').addClass('closed');$(l).children('div.tree').click(function(){$(this).parent().orTree({type:t.type,id:t.internalId,onSelect:e.onSelect,selectable:e.selectable})})};if(t.action&&(e.selectable.length==0||e.selectable[0]==''||jQuery.inArray(t.action,e.selectable)!=-1)){$(l).children('div.entry').click(function(){$(this).closest('div.content').find('div.entry').removeClass('selected');$(this).addClass('selected');e.onSelect($(this).text(),t.action,t.id)})};if($(l).parents('ul.tree').size()<=2){$(l).children('div.tree').click()}}});$(n).slideDown('fast')}).fail(function(){}).always(function(){$(t).closest('div.content').removeClass('loader')});$(t).children('div.tree').unbind('click');$(t).children('div.tree').removeClass('closed').addClass('open');$(t).children('div.tree').click(function(t){i($(t.target).parent(),e.type,e.id)})});function i(t,i,n){$(t).children('ul').slideUp('fast',function(){$(t).children('ul').remove();$(t).children('div.tree').unbind('click');$(t).children('div.tree').removeClass('open').addClass('closed');$(t).children('div.tree').click(function(){$(this).parent().orTree({type:i,id:n,onSelect:e.onSelect,selectable:e.selectable})})})}};;jQuery.fn.orLoadView=function(){$(this).each(function(d,s){var t=$(this).data('method'),a=$(this).data('action'),e=$(this).data('id'),i=$(this).closest('div.panel');i.find('ul.views li.active').removeClass('active');$(this).addClass('active');loadView(i.find('div.content'),a,t,e)})};;jQuery.fn.orAutoheight=function(){var t=function(t){var n=$(t).val().split('\n').length;$(t).attr('rows',n+3)};$(this).each(function(n){t(this)});return $(this).keypress(function(){t(this)})};/*! jquery-qrcode v0.14.0 - https://larsjung.de/jquery-qrcode/ */
+!function(r){'use strict';function u(t,e,n,o){function c(r,t){return r-=o,t-=o,0>r||r>=u||0>t||t>=u?!1:a.isDark(r,t)};function l(r,t,e,n){var a=i.isDark,o=1/f;i.isDark=function(i,u){var f=u*o,c=i*o,l=f+o,g=c+o;return a(i,u)&&(r>l||f>e||t>g||c>n)}};var i={},a=r(n,e);a.addData(t),a.make(),o=o||0;var u=a.getModuleCount(),f=a.getModuleCount()+2*o;return i.text=t,i.level=e,i.version=n,i.moduleCount=f,i.isDark=c,i.addBlank=l,i};function n(r,t,e,n,o){e=Math.max(1,e||1),n=Math.min(40,n||40);for(var i=e;n>=i;i+=1)try{return u(r,t,i,o)}catch(a){}};function f(r,e,n){var i=n.size,g='bold '+n.mSize*i+'px '+n.fontname,s=t('<canvas/>')[0].getContext('2d');s.font=g;var v=s.measureText(n.label).width,f=n.mSize,c=v/i,u=(1-c)*n.mPosX,a=(1-f)*n.mPosY,h=u+c,l=a+f,o=.01;1===n.mode?r.addBlank(0,a-o,i,l+o):r.addBlank(u-o,a-o,h+o,l+o),e.fillStyle=n.fontcolor,e.font=g,e.fillText(n.label,u*i,a*i+.75*n.mSize*i)};function c(r,t,e){var o=e.size,l=e.image.naturalWidth||1,g=e.image.naturalHeight||1,i=e.mSize,u=i*l/g,f=(1-u)*e.mPosX,a=(1-i)*e.mPosY,s=f+u,c=a+i,n=.01;3===e.mode?r.addBlank(0,a-n,o,c+n):r.addBlank(f-n,a-n,s+n,c+n),t.drawImage(e.image,f*o,a*o,u*o,i*o)};function l(r,e,n){t(n.background).is('img')?e.drawImage(n.background,0,0,n.size,n.size):n.background&&(e.fillStyle=n.background,e.fillRect(n.left,n.top,n.size,n.size));var o=n.mode;1===o||2===o?f(r,e,n):(3===o||4===o)&&c(r,e,n)};function g(r,t,e,n,o,i,a,u){r.isDark(a,u)&&t.rect(n,o,i,i)};function s(r,t,e,n,o,i,a,u,f,c){a?r.moveTo(t+i,e):r.moveTo(t,e),u?(r.lineTo(n-i,e),r.arcTo(n,e,n,o,i)):r.lineTo(n,e),f?(r.lineTo(n,o-i),r.arcTo(n,o,t,o,i)):r.lineTo(n,o),c?(r.lineTo(t+i,o),r.arcTo(t,o,t,e,i)):r.lineTo(t,o),a?(r.lineTo(t,e+i),r.arcTo(t,e,n,e,i)):r.lineTo(t,e)};function v(r,t,e,o,i,n,a,u,f,c){a&&(r.moveTo(t+n,e),r.lineTo(t,e),r.lineTo(t,e+n),r.arcTo(t,e,t+n,e,n)),u&&(r.moveTo(o-n,e),r.lineTo(o,e),r.lineTo(o,e+n),r.arcTo(o,e,o-n,e,n)),f&&(r.moveTo(o-n,i),r.lineTo(o,i),r.lineTo(o,i-n),r.arcTo(o,i,o-n,i,n)),c&&(r.moveTo(t+n,i),r.lineTo(t,i),r.lineTo(t,i-n),r.arcTo(t,i,t+n,i,n))};function h(r,t,e,n,u,f,i,a){var o=r.isDark,p=n+f,y=u+f,B=e.radius*f,d=i-1,w=i+1,m=a-1,T=a+1,A=o(i,a),E=o(d,m),c=o(d,a),k=o(d,T),l=o(i,T),M=o(w,T),g=o(w,a),C=o(w,m),h=o(i,m);A?s(t,n,u,p,y,B,!c&&!h,!c&&!l,!g&&!l,!g&&!h):v(t,n,u,p,y,B,c&&h&&E,c&&l&&k,g&&l&&M,g&&h&&C)};function d(r,e,n){var o,i,a=r.moduleCount,u=n.size/a,f=g;for(n.radius>0&&n.radius<=.5&&(f=h),e.beginPath(),o=0;a>o;o+=1)for(i=0;a>i;i+=1){var l=n.left+i*u,s=n.top+o*u,v=u;f(r,e,n,l,s,v,o,i)};if(t(n.fill).is('img')){e.strokeStyle='rgba(0,0,0,0.5)',e.lineWidth=2,e.stroke();var c=e.globalCompositeOperation;e.globalCompositeOperation='destination-out',e.fill(),e.globalCompositeOperation=c,e.clip(),e.drawImage(n.fill,0,0,n.size,n.size),e.restore()}
+else e.fillStyle=n.fill,e.fill()};function o(r,e){var o=n(e.text,e.ecLevel,e.minVersion,e.maxVersion,e.quiet);if(!o)return null;var i=t(r).data('qrcode',o),a=i[0].getContext('2d');return l(o,a,e),d(o,a,e),i};function i(r){var e=t('<canvas/>').attr('width',r.size).attr('height',r.size);return o(e,r)};function w(r){return t('<img/>').attr('src',i(r)[0].toDataURL('image/png'))};function m(r){var f=n(r.text,r.ecLevel,r.minVersion,r.maxVersion,r.quiet);if(!f)return null;var e,o,a=r.size,l=r.background,g=Math.floor,u=f.moduleCount,i=g(a/u),s=g(.5*(a-i*u)),v={position:'relative',left:0,top:0,padding:0,margin:0,width:a,height:a},h={position:'absolute',padding:0,margin:0,width:i,height:i,'background-color':r.fill},c=t('<div/>').data('qrcode',f).css(v);for(l&&c.css('background-color',l),e=0;u>e;e+=1)for(o=0;u>o;o+=1)f.isDark(e,o)&&t('<div/>').css(h).css({left:s+o*i,top:s+e*i}).appendTo(c);return c};function T(r){return e&&'canvas'===r.render?i(r):e&&'image'===r.render?w(r):m(r)};var t=window.jQuery,e=function(){var r=document.createElement('canvas');return!(!r.getContext||!r.getContext('2d'))}(),a={render:'canvas',minVersion:1,maxVersion:40,ecLevel:'L',left:0,top:0,size:200,fill:'#000',background:null,text:'no text',radius:0,quiet:0,mode:0,mSize:.1,mPosX:.5,mPosY:.5,label:'no label',fontname:'sans',fontcolor:'#000',image:null};t.fn.qrcode=function(r){var e=t.extend({},a,r);return this.each(function(r,n){'canvas'===n.nodeName.toLowerCase()?o(n,e):t(n).append(T(e))})}}(function(){var r=function(){function i(r,t){if('undefined'==typeof r.length)throw new Error(r.length+'/'+t);var o=function(){for(var e=0;e<r.length&&0==r[e];)e+=1;for(var o=new Array(r.length-e+t),n=0;n<r.length-e;n+=1)o[n]=r[n+e];return o}(),n={};return n.getAt=function(r){return o[r]},n.getLength=function(){return o.length},n.multiply=function(r){for(var a=new Array(n.getLength()+r.getLength()-1),o=0;o<n.getLength();o+=1)for(var t=0;t<r.getLength();t+=1)a[o+t]^=e.gexp(e.glog(n.getAt(o))+e.glog(r.getAt(t)));return i(a,0)},n.mod=function(r){if(n.getLength()-r.getLength()<0)return n;for(var a=e.glog(n.getAt(0))-e.glog(r.getAt(0)),o=new Array(n.getLength()),t=0;t<n.getLength();t+=1)o[t]=n.getAt(t);for(var t=0;t<r.getLength();t+=1)o[t]^=e.gexp(e.glog(r.getAt(t))+a);return i(o,0).mod(r)},n};var a=function(r,t){var T=236,p=17,g=r,d=o[t],e=null,a=0,s=null,w=[],u={},m=function(r,t){a=4*g+17,e=function(r){for(var n=new Array(r),t=0;r>t;t+=1){n[t]=new Array(r);for(var e=0;r>e;e+=1)n[t][e]=null};return n}(a),v(0,0),v(a-7,0),v(0,a-7),A(),B(),k(r,t),g>=7&&E(r),null==s&&(s=D(g,d,w)),M(s,t)},v=function(r,t){for(var o=-1;7>=o;o+=1)if(!(-1>=r+o||r+o>=a))for(var n=-1;7>=n;n+=1)-1>=t+n||t+n>=a||(o>=0&&6>=o&&(0==n||6==n)||n>=0&&6>=n&&(0==o||6==o)||o>=2&&4>=o&&n>=2&&4>=n?e[r+o][t+n]=!0:e[r+o][t+n]=!1)},y=function(){for(var e=0,o=0,r=0;8>r;r+=1){m(!0,r);var t=n.getLostPoint(u);(0==r||e>t)&&(e=t,o=r)};return o},B=function(){for(var t=8;a-8>t;t+=1)null==e[t][6]&&(e[t][6]=t%2==0);for(var r=8;a-8>r;r+=1)null==e[6][r]&&(e[6][r]=r%2==0)},A=function(){for(var o=n.getPatternPosition(g),f=0;f<o.length;f+=1)for(var u=0;u<o.length;u+=1){var i=o[f],a=o[u];if(null==e[i][a])for(var t=-2;2>=t;t+=1)for(var r=-2;2>=r;r+=1)-2==t||2==t||-2==r||2==r||0==t&&0==r?e[i+t][a+r]=!0:e[i+t][a+r]=!1}},E=function(r){for(var i=n.getBCHTypeNumber(g),t=0;18>t;t+=1){var o=!r&&1==(i>>t&1);e[Math.floor(t/3)][t%3+a-8-3]=o};for(var t=0;18>t;t+=1){var o=!r&&1==(i>>t&1);e[t%3+a-8-3][Math.floor(t/3)]=o}},k=function(r,t){for(var f=d<<3|t,u=n.getBCHTypeInfo(f),o=0;15>o;o+=1){var i=!r&&1==(u>>o&1);6>o?e[o][8]=i:8>o?e[o+1][8]=i:e[a-15+o][8]=i};for(var o=0;15>o;o+=1){var i=!r&&1==(u>>o&1);8>o?e[8][a-o-1]=i:9>o?e[8][15-o-1+1]=i:e[8][15-o-1]=i};e[a-8][8]=!r},M=function(r,t){for(var c=-1,o=a-1,l=7,g=0,v=n.getMaskFunction(t),i=a-1;i>0;i-=2)for(6==i&&(i-=1);;){for(var u=0;2>u;u+=1)if(null==e[o][i-u]){var f=!1;g<r.length&&(f=1==(r[g]>>>l&1));var s=v(o,i-u);s&&(f=!f),e[o][i-u]=f,l-=1,-1==l&&(g+=1,l=7)};if(o+=c,0>o||o>=a){o-=c,c=-c;break}}},C=function(r,t){for(var T=0,s=0,v=0,a=new Array(t.length),u=new Array(t.length),o=0;o<t.length;o+=1){var c=t[o].dataCount,m=t[o].totalCount-c;s=Math.max(s,c),v=Math.max(v,m),a[o]=new Array(c);for(var e=0;e<a[o].length;e+=1)a[o][e]=255&r.getBuffer()[e+T];T+=c;var g=n.getErrorCorrectPolynomial(m),p=i(a[o],g.getLength()-1),w=p.mod(g);u[o]=new Array(g.getLength()-1);for(var e=0;e<u[o].length;e+=1){var d=e+w.getLength()-u[o].length;u[o][e]=d>=0?w.getAt(d):0}};for(var h=0,e=0;e<t.length;e+=1)h+=t[e].totalCount;for(var l=new Array(h),f=0,e=0;s>e;e+=1)for(var o=0;o<t.length;o+=1)e<a[o].length&&(l[f]=a[o][e],f+=1);for(var e=0;v>e;e+=1)for(var o=0;o<t.length;o+=1)e<u[o].length&&(l[f]=u[o][e],f+=1);return l},D=function(r,t,e){for(var l=f.getRSBlocks(r,t),o=c(),i=0;i<e.length;i+=1){var u=e[i];o.put(u.getMode(),4),o.put(u.getLength(),n.getLengthInBits(u.getMode(),r)),u.write(o)};for(var a=0,i=0;i<l.length;i+=1)a+=l[i].dataCount;if(o.getLengthInBits()>8*a)throw new Error('code length overflow. ('+o.getLengthInBits()+'>'+8*a+')');for(o.getLengthInBits()+4<=8*a&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(!1);for(;;){if(o.getLengthInBits()>=8*a)break;if(o.put(T,8),o.getLengthInBits()>=8*a)break;o.put(p,8)};return C(o,l)};return u.addData=function(r){var t=l(r);w.push(t),s=null},u.isDark=function(r,t){if(0>r||r>=a||0>t||t>=a)throw new Error(r+','+t);return e[r][t]},u.getModuleCount=function(){return a},u.make=function(){m(!1,y())},u.createTableTag=function(r,t){r=r||2,t='undefined'==typeof t?4*r:t;var e='';e+='<table style="',e+=' border-width: 0px; border-style: none;',e+=' border-collapse: collapse;',e+=' padding: 0px; margin: '+t+'px;',e+='">',e+='<tbody>';for(var o=0;o<u.getModuleCount();o+=1){e+='<tr>';for(var n=0;n<u.getModuleCount();n+=1)e+='<td style="',e+=' border-width: 0px; border-style: none;',e+=' border-collapse: collapse;',e+=' padding: 0px; margin: 0px;',e+=' width: '+r+'px;',e+=' height: '+r+'px;',e+=' background-color: ',e+=u.isDark(o,n)?'#000000':'#ffffff',e+=';',e+='"/>';e+='</tr>'};return e+='</tbody>',e+='</table>'},u.createImgTag=function(r,t){r=r||2,t='undefined'==typeof t?4*r:t;var n=u.getModuleCount()*r+2*t,e=t,o=n-t;return h(n,n,function(t,n){if(t>=e&&o>t&&n>=e&&o>n){var i=Math.floor((t-e)/r),a=Math.floor((n-e)/r);return u.isDark(a,i)?0:1};return 1})},u};a.stringToBytes=function(r){for(var e=[],t=0;t<r.length;t+=1){var n=r.charCodeAt(t);e.push(255&n)};return e},a.createStringToBytes=function(r,t){var e=function(){for(var i=s(r),e=function(){var r=i.read();if(-1==r)throw new Error;return r},n=0,a={};;){var o=i.read();if(-1==o)break;var u=e(),f=e(),c=e(),l=String.fromCharCode(o<<8|u),g=f<<8|c;a[l]=g,n+=1};if(n!=t)throw new Error(n+' != '+t);return a}(),n='?'.charCodeAt(0);return function(r){for(var o=[],i=0;i<r.length;i+=1){var a=r.charCodeAt(i);if(128>a)o.push(a);else{var t=e[r.charAt(i)];'number'==typeof t?(255&t)==t?o.push(t):(o.push(t>>>8),o.push(255&t)):o.push(n)}};return o}};var r={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},o={L:1,M:0,Q:3,H:2},t={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},n=function(){var f=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],a=1335,u=7973,c=21522,n={},o=function(r){for(var t=0;0!=r;)t+=1,r>>>=1;return t};return n.getBCHTypeInfo=function(r){for(var t=r<<10;o(t)-o(a)>=0;)t^=a<<o(t)-o(a);return(r<<10|t)^c},n.getBCHTypeNumber=function(r){for(var t=r<<12;o(t)-o(u)>=0;)t^=u<<o(t)-o(u);return r<<12|t},n.getPatternPosition=function(r){return f[r-1]},n.getMaskFunction=function(r){switch(r){case t.PATTERN000:return function(r,t){return(r+t)%2==0};case t.PATTERN001:return function(r,t){return r%2==0};case t.PATTERN010:return function(r,t){return t%3==0};case t.PATTERN011:return function(r,t){return(r+t)%3==0};case t.PATTERN100:return function(r,t){return(Math.floor(r/2)+Math.floor(t/3))%2==0};case t.PATTERN101:return function(r,t){return r*t%2+r*t%3==0};case t.PATTERN110:return function(r,t){return(r*t%2+r*t%3)%2==0};case t.PATTERN111:return function(r,t){return(r*t%3+(r+t)%2)%2==0};default:throw new Error('bad maskPattern:'+r)}},n.getErrorCorrectPolynomial=function(r){for(var t=i([1],0),n=0;r>n;n+=1)t=t.multiply(i([1,e.gexp(n)],0));return t},n.getLengthInBits=function(t,e){if(e>=1&&10>e)switch(t){case r.MODE_NUMBER:return 10;case r.MODE_ALPHA_NUM:return 9;case r.MODE_8BIT_BYTE:return 8;case r.MODE_KANJI:return 8;default:throw new Error('mode:'+t)}
+else if(27>e)switch(t){case r.MODE_NUMBER:return 12;case r.MODE_ALPHA_NUM:return 11;case r.MODE_8BIT_BYTE:return 16;case r.MODE_KANJI:return 10;default:throw new Error('mode:'+t)}
+else{if(!(41>e))throw new Error('type:'+e);switch(t){case r.MODE_NUMBER:return 14;case r.MODE_ALPHA_NUM:return 13;case r.MODE_8BIT_BYTE:return 16;case r.MODE_KANJI:return 12;default:throw new Error('mode:'+t)}}},n.getLostPoint=function(r){for(var n=r.getModuleCount(),u=0,t=0;n>t;t+=1)for(var e=0;n>e;e+=1){for(var f=0,g=r.isDark(t,e),a=-1;1>=a;a+=1)if(!(0>t+a||t+a>=n))for(var i=-1;1>=i;i+=1)0>e+i||e+i>=n||(0!=a||0!=i)&&g==r.isDark(t+a,e+i)&&(f+=1);f>5&&(u+=3+f-5)};for(var t=0;n-1>t;t+=1)for(var e=0;n-1>e;e+=1){var o=0;r.isDark(t,e)&&(o+=1),r.isDark(t+1,e)&&(o+=1),r.isDark(t,e+1)&&(o+=1),r.isDark(t+1,e+1)&&(o+=1),(0==o||4==o)&&(u+=3)};for(var t=0;n>t;t+=1)for(var e=0;n-6>e;e+=1)r.isDark(t,e)&&!r.isDark(t,e+1)&&r.isDark(t,e+2)&&r.isDark(t,e+3)&&r.isDark(t,e+4)&&!r.isDark(t,e+5)&&r.isDark(t,e+6)&&(u+=40);for(var e=0;n>e;e+=1)for(var t=0;n-6>t;t+=1)r.isDark(t,e)&&!r.isDark(t+1,e)&&r.isDark(t+2,e)&&r.isDark(t+3,e)&&r.isDark(t+4,e)&&!r.isDark(t+5,e)&&r.isDark(t+6,e)&&(u+=40);for(var c=0,e=0;n>e;e+=1)for(var t=0;n>t;t+=1)r.isDark(t,e)&&(c+=1);var l=Math.abs(100*c/n/n-50)/5;return u+=10*l},n}(),e=function(){for(var t=new Array(256),n=new Array(256),r=0;8>r;r+=1)t[r]=1<<r;for(var r=8;256>r;r+=1)t[r]=t[r-4]^t[r-5]^t[r-6]^t[r-8];for(var r=0;255>r;r+=1)n[t[r]]=r;var e={};return e.glog=function(r){if(1>r)throw new Error('glog('+r+')');return n[r]},e.gexp=function(r){for(;0>r;)r+=255;for(;r>=256;)r-=255;return t[r]},e}(),f=function(){var r=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],e=function(r,t){var e={};return e.totalCount=r,e.dataCount=t,e},t={},n=function(t,e){switch(e){case o.L:return r[4*(t-1)+0];case o.M:return r[4*(t-1)+1];case o.Q:return r[4*(t-1)+2];case o.H:return r[4*(t-1)+3];default:return}};return t.getRSBlocks=function(r,t){var i=n(r,t);if('undefined'==typeof i)throw new Error('bad rs block @ typeNumber:'+r+'/errorCorrectLevel:'+t);for(var g=i.length/3,u=[],o=0;g>o;o+=1)for(var f=i[3*o+0],c=i[3*o+1],l=i[3*o+2],a=0;f>a;a+=1)u.push(e(c,l));return u},t}(),c=function(){var t=[],e=0,r={};return r.getBuffer=function(){return t},r.getAt=function(r){var e=Math.floor(r/8);return 1==(t[e]>>>7-r%8&1)},r.put=function(t,e){for(var n=0;e>n;n+=1)r.putBit(1==(t>>>e-n-1&1))},r.getLengthInBits=function(){return e},r.putBit=function(r){var n=Math.floor(e/8);t.length<=n&&t.push(0),r&&(t[n]|=128>>>e%8),e+=1},r},l=function(t){var o=r.MODE_8BIT_BYTE,n=a.stringToBytes(t),e={};return e.getMode=function(){return o},e.getLength=function(r){return n.length},e.write=function(r){for(var t=0;t<n.length;t+=1)r.put(n[t],8)},e},u=function(){var t=[],r={};return r.writeByte=function(r){t.push(255&r)},r.writeShort=function(t){r.writeByte(t),r.writeByte(t>>>8)},r.writeBytes=function(t,e,n){e=e||0,n=n||t.length;for(var o=0;n>o;o+=1)r.writeByte(t[o+e])},r.writeString=function(t){for(var e=0;e<t.length;e+=1)r.writeByte(t.charCodeAt(e))},r.toByteArray=function(){return t},r.toString=function(){var e='';e+='[';for(var r=0;r<t.length;r+=1)r>0&&(e+=','),e+=t[r];return e+=']'},r},g=function(){var t=0,r=0,n=0,o='',e={},i=function(r){o+=String.fromCharCode(a(63&r))},a=function(r){if(0>r);else{if(26>r)return 65+r;if(52>r)return 97+(r-26);if(62>r)return 48+(r-52);if(62==r)return 43;if(63==r)return 47};throw new Error('n:'+r)};return e.writeByte=function(e){for(t=t<<8|255&e,r+=8,n+=1;r>=6;)i(t>>>r-6),r-=6},e.flush=function(){if(r>0&&(i(t<<6-r),t=0,r=0),n%3!=0)for(var a=3-n%3,e=0;a>e;e+=1)o+='='},e.toString=function(){return o},e},s=function(r){var o=r,e=0,n=0,t=0,i={};i.read=function(){for(;8>t;){if(e>=o.length){if(0==t)return-1;throw new Error('unexpected end of file./'+t)};var r=o.charAt(e);if(e+=1,'='==r)return t=0,-1;r.match(/^\s$/)||(n=n<<6|a(r.charCodeAt(0)),t+=6)};var i=n>>>t-8&255;return t-=8,i};var a=function(r){if(r>=65&&90>=r)return r-65;if(r>=97&&122>=r)return r-97+26;if(r>=48&&57>=r)return r-48+52;if(43==r)return 62;if(47==r)return 63;throw new Error('c:'+r)};return i},v=function(r,t){var n=r,i=t,e=new Array(r*t),o={};o.setPixel=function(r,t,o){e[t*n+r]=o},o.write=function(r){r.writeString('GIF87a'),r.writeShort(n),r.writeShort(i),r.writeByte(128),r.writeByte(0),r.writeByte(0),r.writeByte(0),r.writeByte(0),r.writeByte(0),r.writeByte(255),r.writeByte(255),r.writeByte(255),r.writeString(','),r.writeShort(0),r.writeShort(0),r.writeShort(n),r.writeShort(i),r.writeByte(0);var o=2,e=f(o);r.writeByte(o);for(var t=0;e.length-t>255;)r.writeByte(255),r.writeBytes(e,t,255),t+=255;r.writeByte(e.length-t),r.writeBytes(e,t,e.length-t),r.writeByte(0),r.writeString(';')};var a=function(r){var o=r,t=0,e=0,n={};return n.write=function(r,n){if(r>>>n!=0)throw new Error('length over');for(;t+n>=8;)o.writeByte(255&(r<<t|e)),n-=8-t,r>>>=8-t,e=0,t=0;e=r<<t|e,t+=n},n.flush=function(){t>0&&o.writeByte(e)},n},f=function(r){for(var g=1<<r,h=(1<<r)+1,o=r+1,t=c(),s=0;g>s;s+=1)t.add(String.fromCharCode(s));t.add(String.fromCharCode(g)),t.add(String.fromCharCode(h));var v=u(),f=a(v);f.write(g,o);var i=0,n=String.fromCharCode(e[i]);for(i+=1;i<e.length;){var l=String.fromCharCode(e[i]);i+=1,t.contains(n+l)?n+=l:(f.write(t.indexOf(n),o),t.size()<4095&&(t.size()==1<<o&&(o+=1),t.add(n+l)),n=l)};return f.write(t.indexOf(n),o),f.write(h,o),f.flush(),v.toByteArray()},c=function(){var t={},e=0,r={};return r.add=function(n){if(r.contains(n))throw new Error('dup key:'+n);t[n]=e,e+=1},r.size=function(){return e},r.indexOf=function(r){return t[r]},r.contains=function(r){return'undefined'!=typeof t[r]},r};return o},h=function(r,t,e,o){for(var h=v(r,t),a=0;t>a;a+=1)for(var i=0;r>i;i+=1)h.setPixel(i,a,e(i,a));var s=u();h.write(s);for(var f=g(),l=s.toByteArray(),c=0;c<l.length;c+=1)f.writeByte(l[c]);f.flush();var n='';return n+='<img',n+=' src="',n+='data:image/gif;base64,',n+=f,n+='"',n+=' width="',n+=r,n+='"',n+=' height="',n+=t,n+='"',o&&(n+=' alt="',n+=o,n+='"'),n+='/>'};return a}();return function(r){'function'==typeof define&&define.amd?define([],r):'object'==typeof exports&&(module.exports=r())}(function(){return r}),!function(r){r.stringToBytes=function(r){function t(r){for(var e=[],n=0;n<r.length;n++){var t=r.charCodeAt(n);128>t?e.push(t):2048>t?e.push(192|t>>6,128|63&t):55296>t||t>=57344?e.push(224|t>>12,128|t>>6&63,128|63&t):(n++,t=65536+((1023&t)<<10|1023&r.charCodeAt(n)),e.push(240|t>>18,128|t>>12&63,128|t>>6&63,128|63&t))};return e};return t(r)}}(r),r}());(function(e){e.fn.markItUp=function(n,o){var t,r,i,l;r=i=l=!1;t={id:'',nameSpace:'',root:'',previewInWindow:'',previewAutoRefresh:!0,previewPosition:'after',previewTemplatePath:'~/templates/preview.html',previewParser:!1,previewParserPath:'',previewParserVar:'data',resizeHandle:!0,beforeInsert:'',afterInsert:'',onEnter:{},onShiftEnter:{},onCtrlEnter:{},onTab:{},markupSet:[{}]};e.extend(t,n,o);if(!t.root){e('script').each(function(n,r){miuScript=e(r).get(0).src.match(/(.*)jquery\.markitup(\.pack)?\.js$/);if(miuScript!==null){t.root=miuScript[1]}})};return this.each(function(){var n,o,m,b,a,f,c,d,g,I,s,E,p,v;n=e(this);o=this;m=[];v=!1;b=a=0;f=-1;t.previewParserPath=k(t.previewParserPath);t.previewTemplatePath=k(t.previewTemplatePath);function k(e,n){if(n){return e.replace(/("|')~\//g,'$1'+t.root)};return e.replace(/^~\//,t.root)};function R(){id='';nameSpace='';if(t.id){id='id="'+t.id+'"'}
+else if(n.attr('id')){id='id="markItUp'+(n.attr('id').substr(0,1).toUpperCase())+(n.attr('id').substr(1))+'"'};if(t.nameSpace){nameSpace='class="'+t.nameSpace+'"'};n.wrap('<div '+nameSpace+'></div>');n.wrap('<div '+id+' class="markItUp"></div>');n.wrap('<div class="markItUpContainer"></div>');n.addClass('markItUpEditor');g=e('<div class="markItUpHeader"></div>').insertBefore(n);e(T(t.markupSet)).appendTo(g);I=e('<div class="markItUpFooter"></div>').insertAfter(n);if(t.resizeHandle===!0&&e.browser.safari!==!0){resizeHandle=e('<div class="markItUpResizeHandle"></div>').insertAfter(n).bind('mousedown',function(t){var o=n.height(),l=t.clientY,r,i;r=function(e){n.css('height',Math.max(20,e.clientY+o-l)+'px');return!1};i=function(t){e('html').unbind('mousemove',r).unbind('mouseup',i);return!1};e('html').bind('mousemove',r).bind('mouseup',i)});I.append(resizeHandle)};n.keydown(C).keyup(C);n.bind('insertion',function(t,n){if(n.target!==!1){y()};if(o===e.markItUp.focused){h(n)}});n.focus(function(){e.markItUp.focused=this})};function T(t){var r=e('<ul></ul>'),i=0;e('li:hover > ul',r).css('display','block');e.each(t,function(){var t=this,a='',s,l,o;s=(t.key)?(t.name||'')+' [Ctrl+'+t.key+']':(t.name||'');key=(t.key)?'accesskey="'+t.key+'"':'';if(t.separator){l=e('<li class="markItUpSeparator">'+(t.separator||'')+'</li>').appendTo(r)}
+else{i++;for(o=m.length-1;o>=0;o--){a+=m[o]+'-'};l=e('<li class="markItUpButton markItUpButton'+a+(i)+' '+(t.className||'')+'"><a href="" '+key+' title="'+s+'">'+(t.name||'')+'</a></li>').bind('contextmenu',function(){return!1}).click(function(){return!1}).bind('focusin',function(){n.focus()}).mouseup(function(){if(t.call){eval(t.call)()};setTimeout(function(){h(t)},1);return!1}).hover(function(){e('> ul',this).show();e(document).one('click',function(){e('ul ul',g).hide()})},function(){e('> ul',this).hide()}).appendTo(r);if(t.dropMenu){m.push(i);e(l).addClass('markItUpDropMenu').append(T(t.dropMenu))}}});m.pop();return r};function H(e){if(e){e=e.toString();e=e.replace(/\(\!\(([\s\S]*?)\)\!\)/g,function(e,t){var n=t.split('|!|');if(l===!0){return(n[1]!==undefined)?n[1]:n[0]}
+else{return(n[1]===undefined)?'':n[0]}});e=e.replace(/\[\!\[([\s\S]*?)\]\!\]/g,function(e,t){var n=t.split(':!:');if(v===!0){return!1};value=prompt(n[0],(n[1])?n[1]:'');if(value===null){v=!0};return value});return e};return''};function u(t){if(e.isFunction(t)){t=t(d)};return H(t)};function w(e){var t=u(c.openWith),o=u(c.placeHolder),l=u(c.replaceWith),n=u(c.closeWith),f=u(c.openBlockWith),p=u(c.closeBlockWith),d=c.multiline;if(l!==''){block=t+l+n}
+else if(selection===''&&o!==''){block=t+o+n}
+else{e=e||selection;var s=selection.split(/\r?\n/),i=[];for(var r=0;r<s.length;r++){line=s[r];var a;if(a=line.match(/ *$/)){i.push(t+line.replace(/ *$/g,'')+n+a)}
+else{i.push(t+line+n)}};block=i.join('\n')};block=f+block+p;return{block:block,openWith:t,replaceWith:l,placeHolder:o,closeWith:n}};function h(p){var h,k,g,m;d=c=p;y();e.extend(d,{line:'',root:t.root,textarea:o,selection:(selection||''),caretPosition:a,ctrlKey:r,shiftKey:i,altKey:l});u(t.beforeInsert);u(c.beforeInsert);if((r===!0&&i===!0)||p.multiline===!0){u(c.beforeMultiInsert)};e.extend(d,{line:1});if((r===!0&&i===!0)){lines=selection.split(/\r?\n/);for(k=0,g=lines.length,m=0;m<g;m++){if(e.trim(lines[m])!==''){e.extend(d,{line:++k,selection:lines[m]});lines[m]=w(lines[m]).block}
+else{lines[m]=''}};string={block:lines.join('\n')};start=a;h=string.block.length+((e.browser.opera)?g-1:0)}
+else if(r===!0){string=w(selection);start=a+string.openWith.length;h=string.block.length-string.openWith.length-string.closeWith.length;h=h-(string.block.match(/ $/)?1:0);h-=P(string.block)}
+else if(i===!0){string=w(selection);start=a;h=string.block.length;h-=P(string.block)}
+else{string=w(selection);start=a+string.block.length;h=0;start-=P(string.block)};if((selection===''&&string.replaceWith==='')){f+=U(string.block);start=a+string.openWith.length;h=string.block.length-string.openWith.length-string.closeWith.length;f=n.val().substring(a,n.val().length).length;f-=U(n.val().substring(0,a))};e.extend(d,{caretPosition:a,scrollPosition:b});if(string.block!==selection&&v===!1){K(string.block);W(start,h)}
+else{f=-1};y();e.extend(d,{line:'',selection:selection});if((r===!0&&i===!0)||p.multiline===!0){u(c.afterMultiInsert)};u(c.afterInsert);u(t.afterInsert);if(s&&t.previewAutoRefresh){x()};i=l=r=v=!1};function U(t){if(e.browser.opera){return t.length-t.replace(/\n*/g,'').length};return 0};function P(t){if(e.browser.msie){return t.length-t.replace(/\r*/g,'').length};return 0};function K(e){if(document.selection){var t=document.selection.createRange();t.text=e}
+else{o.value=o.value.substring(0,a)+e+o.value.substring(a+selection.length,o.value.length)}};function W(t,n){if(o.createTextRange){if(e.browser.opera&&e.browser.version>=9.5&&n==0){return!1};range=o.createTextRange();range.collapse(!0);range.moveStart('character',t);range.moveEnd('character',n);range.select()}
+else if(o.setSelectionRange){o.setSelectionRange(t,t+n)};o.scrollTop=b;o.focus()};function y(){o.focus();b=o.scrollTop;if(document.selection){selection=document.selection.createRange().text;if(e.browser.msie){var n=document.selection.createRange(),t=n.duplicate();t.moveToElementText(o);a=-1;while(t.inRange(n)){t.moveStart('character');a++}}
+else{a=o.selectionStart}}
+else{a=o.selectionStart;selection=o.value.substring(a,o.selectionEnd)};return selection};function A(){if(!s||s.closed){if(t.previewInWindow){s=window.open('','preview',t.previewInWindow);e(window).unload(function(){s.close()})}
+else{p=e('<iframe class="markItUpPreviewFrame"></iframe>');if(t.previewPosition=='after'){p.insertAfter(I)}
+else{p.insertBefore(g)};s=p[p.length-1].contentWindow||frame[p.length-1]}}
+else if(l===!0){if(p){p.remove()}
+else{s.close()};s=p=!1};if(!t.previewAutoRefresh){x()};if(t.previewInWindow){s.focus()}};function x(){j()};function j(){var i;if(t.previewParser&&typeof t.previewParser==='function'){var r=t.previewParser(n.val());S(k(r,1))}
+else if(t.previewParserPath!==''){e.ajax({type:'POST',dataType:'text',global:!1,url:t.previewParserPath,data:t.previewParserVar+'='+encodeURIComponent(n.val()),success:function(e){S(k(e,1))}})}
+else{if(!E){e.ajax({url:t.previewTemplatePath,dataType:'text',global:!1,success:function(e){S(k(e,1).replace(/<!-- content -->/g,n.val()))}})}};return!1};function S(e){if(s.document){try{sp=s.document.documentElement.scrollTop}catch(t){sp=0};s.document.open();s.document.write(e);s.document.close();s.document.documentElement.scrollTop=sp}};function C(o){i=o.shiftKey;l=o.altKey;r=(!(o.altKey&&o.ctrlKey))?(o.ctrlKey||o.metaKey):!1;if(o.type==='keydown'){if(r===!0){li=e('a[accesskey="'+String.fromCharCode(o.keyCode)+'"]',g).parent('li');if(li.length!==0){r=!1;setTimeout(function(){li.triggerHandler('mouseup')},1);return!1}};if(o.keyCode===13||o.keyCode===10){if(r===!0){r=!1;h(t.onCtrlEnter);return t.onCtrlEnter.keepDefault}
+else if(i===!0){i=!1;h(t.onShiftEnter);return t.onShiftEnter.keepDefault}
+else{h(t.onEnter);return t.onEnter.keepDefault}};if(o.keyCode===9){if(i==!0||r==!0||l==!0){return!1};if(f!==-1){y();f=n.val().length-f;W(f,0);f=-1;return!1}
+else{h(t.onTab);return t.onTab.keepDefault}}}};R()})};e.fn.markItUpRemove=function(){return this.each(function(){var t=e(this).unbind().removeClass('markItUpEditor');t.parent('div').parent('div.markItUp').parent('div').replaceWith(t)})};e.markItUp=function(t){var n={target:!1};e.extend(n,t);if(n.target){return e(n.target).each(function(){e(this).focus();e(this).trigger('insertion',[n])})}
+else{e('textarea').trigger('insertion',[n])}}})(jQuery);;(function(){if(!window.CKEDITOR)window.CKEDITOR=(function(){var e={timestamp:'B1GG4Z6',version:'3.5.2',revision:'6450',_:{},status:'unloaded',basePath:(function(){var e=window.CKEDITOR_BASEPATH||'';if(!e){var i=document.getElementsByTagName('script');for(var t=0;t<i.length;t++){var n=i[t].src.match(/(^|.*[\\\/])ckeditor(?:_basic)?(?:_source)?.js(?:\?.*)?$/i);if(n){e=n[1];break}}};if(e.indexOf(':/')==-1)if(e.indexOf('/')===0)e=location.href.match(/^.*?:\/\/[^\/]*/)[0]+e;else e=location.href.match(/^[^\?]*\/(?:)/)[0]+e;if(!e)throw'The CKEditor installation path could not be automatically detected. Please set the global variable "CKEDITOR_BASEPATH" before creating editor instances.';return e})(),getUrl:function(e){if(e.indexOf(':/')==-1&&e.indexOf('/')!==0)e=this.basePath+e;if(this.timestamp&&e.charAt(e.length-1)!='/'&&!/[&?]t=/.test(e))e+=(e.indexOf('?')>=0?'&':'?')+'t='+this.timestamp;return e}},t=window.CKEDITOR_GETURL;if(t){var n=e.getUrl;e.getUrl=function(i){return t.call(e,i)||n.call(e,i)}};return e})();var e=CKEDITOR;if(!e.event){e.event=function(){};e.event.implementOn=function(t){var i=e.event.prototype;for(var n in i){if(t[n]==undefined)t[n]=i[n]}};e.event.prototype=(function(){var e=function(e){var t=e.getPrivate&&e.getPrivate()||e._||(e._={});return t.events||(t.events={})},t=function(e){this.name=e;this.listeners=[]};t.prototype={getListenerIndex:function(e){for(var t=0,n=this.listeners;t<n.length;t++){if(n[t].fn==e)return t};return-1}};return{on:function(n,i,a,r,o){var u=e(this),d=u[n]||(u[n]=new t(n));if(d.getListenerIndex(i)<0){var c=d.listeners;if(!a)a=this;if(isNaN(o))o=10;var f=this,l=function(e,t,o,s){var l={name:n,sender:this,editor:e,data:t,listenerData:r,stop:o,cancel:s,removeListener:function(){f.removeListener(n,i)}};i.call(a,l);return l.data};l.fn=i;l.priority=o;for(var s=c.length-1;s>=0;s--){if(c[s].priority<=o){c.splice(s+1,0,l);return}};c.unshift(l)}},fire:(function(){var n=!1,i=function(){n=!0},t=!1,a=function(){t=!0};return function(r,o,s){var d=e(this)[r],m=n,g=t;n=t=!1;if(d){var l=d.listeners;if(l.length){l=l.slice(0);for(var c=0;c<l.length;c++){var u=l[c].call(this,s,o,i,a);if(typeof u!='undefined')o=u;if(n||t)break}}};var f=t||(typeof o=='undefined'?!1:o);n=m;t=g;return f}})(),fireOnce:function(t,n,i){var a=this.fire(t,n,i);delete e(this)[t];return a},removeListener:function(t,n){var i=e(this)[t];if(i){var a=i.getListenerIndex(n);if(a>=0)i.listeners.splice(a,1)}},hasListeners:function(t){var n=e(this)[t];return n&&n.listeners.length>0}}})()};if(!e.editor){e.ELEMENT_MODE_NONE=0;e.ELEMENT_MODE_REPLACE=1;e.ELEMENT_MODE_APPENDTO=2;e.editor=function(t,n,i,a){var r=this;r._={instanceConfig:t,element:n,data:a};r.elementMode=i||0;e.event.call(r);r._init()};e.editor.replace=function(t,n){var i=t;if(typeof i!='object'){i=document.getElementById(t);if(i&&i.tagName.toLowerCase()in{style:1,script:1,base:1,link:1,meta:1,title:1})i=null;if(!i){var a=0,r=document.getElementsByName(t);while((i=r[a++])&&i.tagName.toLowerCase()!='textarea'){}};if(!i)throw'[CKEDITOR.editor.replace] The element with id or name "'+t+'" was not found.'};i.style.visibility='hidden';return new e.editor(n,i,1)};e.editor.appendTo=function(t,n,i){var a=t;if(typeof a!='object'){a=document.getElementById(t);if(!a)throw'[CKEDITOR.editor.appendTo] The element with id "'+t+'" was not found.'};return new e.editor(n,a,2,i)};e.editor.prototype={_init:function(){var t=e.editor._pending||(e.editor._pending=[]);t.push(this)},fire:function(t,n){return e.event.prototype.fire.call(this,t,n,this)},fireOnce:function(t,n){return e.event.prototype.fireOnce.call(this,t,n,this)}};e.event.implementOn(e.editor.prototype,!0)};if(!e.env)e.env=(function(){var n=navigator.userAgent.toLowerCase(),a=window.opera,e={ie:/*@cc_on!@*/!1,opera:!!a&&a.version,webkit:n.indexOf(' applewebkit/')>-1,air:n.indexOf(' adobeair/')>-1,mac:n.indexOf('macintosh')>-1,quirks:document.compatMode=='BackCompat',mobile:n.indexOf('mobile')>-1,isCustomDomain:function(){if(!this.ie)return!1;var e=document.domain,t=window.location.hostname;return e!=t&&e!='['+t+']'}};e.gecko=navigator.product=='Gecko'&&!e.webkit&&!e.opera;var t=0;if(e.ie){t=parseFloat(n.match(/msie (\d+)/)[1]);e.ie8=!!document.documentMode;e.ie8Compat=document.documentMode==8;e.ie7Compat=t==7&&!document.documentMode||document.documentMode==7;e.ie6Compat=t<7||e.quirks};if(e.gecko){var i=n.match(/rv:([\d\.]+)/);if(i){i=i[1].split('.');t=i[0]*10000+(i[1]||0)*100+ +(i[2]||0)}};if(e.opera)t=parseFloat(a.version());if(e.air)t=parseFloat(n.match(/ adobeair\/(\d+)/)[1]);if(e.webkit)t=parseFloat(n.match(/ applewebkit\/(\d+)/)[1]);e.version=t;e.isCompatible=!e.mobile&&(e.ie&&t>=6||e.gecko&&t>=10801||e.opera&&t>=9.5||e.air&&t>=1||e.webkit&&t>=522||!1);e.cssClass='cke_browser_'+(e.ie?'ie':e.gecko?'gecko':e.opera?'opera':e.webkit?'webkit':'unknown');if(e.quirks)e.cssClass+=' cke_browser_quirks';if(e.ie){e.cssClass+=' cke_browser_ie'+(e.version<7?'6':e.version>=8?document.documentMode:'7');if(e.quirks)e.cssClass+=' cke_browser_iequirks'};if(e.gecko&&t<10900)e.cssClass+=' cke_browser_gecko18';if(e.air)e.cssClass+=' cke_browser_air';return e})();var n=e.env,a=n.ie;if(e.status=='unloaded')(function(){e.event.implementOn(e);e.loadFullCore=function(){if(e.status!='basic_ready'){e.loadFullCore._load=1;return};delete e.loadFullCore;var t=document.createElement('script');t.type='text/javascript';t.src=e.basePath+'ckeditor.js';document.getElementsByTagName('head')[0].appendChild(t)};e.loadFullCoreTimeout=0;e.replaceClass='ckeditor';e.replaceByClassEnabled=1;var t=function(t,i,a,r){if(n.isCompatible){if(e.loadFullCore)e.loadFullCore();var o=a(t,i,r);e.add(o);return o};return null};e.replace=function(n,i){return t(n,i,e.editor.replace)};e.appendTo=function(n,i,a){return t(n,i,e.editor.appendTo,a)};e.add=function(e){var t=this._.pending||(this._.pending=[]);t.push(e)};e.replaceAll=function(){var i=document.getElementsByTagName('textarea');for(var n=0;n<i.length;n++){var t=null,e=i[n],r=e.name;if(!e.name&&!e.id)continue;if(typeof arguments[0]=='string'){var a=new RegExp('(?:^|\\s)'+arguments[0]+'(?:$|\\s)');if(!a.test(e.className))continue}
+else if(typeof arguments[0]=='function'){t={};if(arguments[0](e,t)===!1)continue};this.replace(e,t)}};(function(){var t=function(){var t=e.loadFullCore,n=e.loadFullCoreTimeout;if(e.replaceByClassEnabled)e.replaceAll(e.replaceClass);e.status='basic_ready';if(t&&t._load)t();else if(n)setTimeout(function(){if(e.loadFullCore)e.loadFullCore()},n*1000)};if(window.addEventListener)window.addEventListener('load',t,!1);else if(window.attachEvent)window.attachEvent('onload',t)})();e.status='basic_loaded'})();e.dom={};var i=e.dom;(function(){var t=[];e.on('reset',function(){t=[]});e.tools={arrayCompare:function(e,t){if(!e&&!t)return!0;if(!e||!t||e.length!=t.length)return!1;for(var n=0;n<e.length;n++){if(e[n]!=t[n])return!1};return!0},clone:function(e){var t;if(e&&e instanceof Array){t=[];for(var n=0;n<e.length;n++)t[n]=this.clone(e[n]);return t};if(e===null||typeof e!='object'||e instanceof String||e instanceof Number||e instanceof Boolean||e instanceof Date||e instanceof RegExp)return e;t=new e.constructor();for(var i in e){var a=e[i];t[i]=this.clone(a)};return t},capitalize:function(e){return e.charAt(0).toUpperCase()+e.substring(1).toLowerCase()},extend:function(e){var t=arguments.length,a,r;if(typeof(a=arguments[t-1])=='boolean')t--;else if(typeof(a=arguments[t-2])=='boolean'){r=arguments[t-1];t-=2};for(var i=1;i<t;i++){var o=arguments[i];for(var n in o){if(a===!0||e[n]==undefined)if(!r||n in r)e[n]=o[n]}};return e},prototypedCopy:function(e){var t=function(){};t.prototype=e;return new t()},isArray:function(e){return!!e&&e instanceof Array},isEmpty:function(e){for(var t in e){if(e.hasOwnProperty(t))return!1};return!0},cssStyleToDomStyle:(function(){var e=document.createElement('div').style,t=typeof e.cssFloat!='undefined'?'cssFloat':typeof e.styleFloat!='undefined'?'styleFloat':'float';return function(e){if(e=='float')return t;else return e.replace(/-./g,function(e){return e.substr(1).toUpperCase()})}})(),buildStyleHtml:function(e){e=[].concat(e);var t,i=[];for(var n=0;n<e.length;n++){t=e[n];if(/@import|[{}]/.test(t))i.push('<style>'+t+'</style>');else i.push('<link type="text/css" rel=stylesheet href="'+t+'">')};return i.join('')},htmlEncode:function(e){var t=function(e){var t=new i.element('span');t.setText(e);return t.getHtml()},n=t('\n').toLowerCase()=='<br>'?function(e){return t(e).replace(/<br>/gi,'\n')}:t,a=t('>')=='>'?function(e){return n(e).replace(/>/g,'>')}:n,r=t(' ')==' '?function(e){return a(e).replace(/ /g,' ')}:a;this.htmlEncode=r;return this.htmlEncode(e)},htmlEncodeAttr:function(e){return e.replace(/"/g,'"').replace(/</g,'<').replace(/>/g,'>')},getNextNumber:(function(){var e=0;return function(){return++e}})(),getNextId:function(){return'cke_'+this.getNextNumber()},override:function(e,t){return t(e)},setTimeout:function(e,t,n,i,a){if(!a)a=window;if(!n)n=a;return a.setTimeout(function(){if(i)e.apply(n,[].concat(i));else e.apply(n)},t||0)},trim:(function(){var e=/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g;return function(t){return t.replace(e,'')}})(),ltrim:(function(){var e=/^[ \t\n\r]+/g;return function(t){return t.replace(e,'')}})(),rtrim:(function(){var e=/[ \t\n\r]+$/g;return function(t){return t.replace(e,'')}})(),indexOf:Array.prototype.indexOf?function(e,t){return e.indexOf(t)}:function(e,t){for(var n=0,i=e.length;n<i;n++){if(e[n]===t)return n};return-1},bind:function(e,t){return function(){return e.apply(t,arguments)}},createClass:function(t){var n=t.$,i=t.base,a=t.privates||t._,r=t.proto,o=t.statics;if(a){var s=n;n=function(){var t=this,r=t._||(t._={});for(var i in a){var n=a[i];r[i]=typeof n=='function'?e.tools.bind(n,t):n};s.apply(t,arguments)}};if(i){n.prototype=this.prototypedCopy(i.prototype);n.prototype['constructor']=n;n.prototype.base=function(){this.base=i.prototype.base;i.apply(this,arguments);this.base=arguments.callee}};if(r)this.extend(n.prototype,r,!0);if(o)this.extend(n,o,!0);return n},addFunction:function(e,n){return t.push(function(){return e.apply(n||this,arguments)})-1},removeFunction:function(e){t[e]=null},callFunction:function(e){var n=t[e];return n&&n.apply(window,Array.prototype.slice.call(arguments,1))},cssLength:(function(){var e=/^\d+(?:\.\d+)?$/;return function(t){return t+(e.test(t)?'px':'')}})(),repeat:function(e,t){return new Array(t+1).join(e)},tryThese:function(){var n;for(var t=0,a=arguments.length;t<a;t++){var i=arguments[t];try{n=i();break}catch(e){}};return n},genKey:function(){return Array.prototype.slice.call(arguments).join('-')}}})();var t=e.tools;e.dtd=(function(){var n=t.extend,l={isindex:1,fieldset:1},d={input:1,button:1,select:1,textarea:1,label:1},f=n({a:1},d),c=n({iframe:1},f),r={hr:1,ul:1,menu:1,div:1,blockquote:1,noscript:1,table:1,center:1,address:1,dir:1,pre:1,h5:1,dl:1,h4:1,noframes:1,h6:1,ol:1,h1:1,h3:1,h2:1},m={ins:1,del:1,script:1,style:1},g=n({b:1,acronym:1,bdo:1,'var':1,'#':1,abbr:1,code:1,br:1,i:1,cite:1,kbd:1,u:1,strike:1,s:1,tt:1,strong:1,q:1,samp:1,em:1,dfn:1,span:1},m),h=n({sub:1,img:1,object:1,sup:1,basefont:1,map:1,applet:1,font:1,big:1,small:1},g),o=n({p:1},h),p=n({iframe:1},h,d),v={img:1,noscript:1,br:1,kbd:1,center:1,button:1,basefont:1,h5:1,h4:1,samp:1,h6:1,ol:1,h1:1,h3:1,h2:1,form:1,font:1,'#':1,select:1,menu:1,ins:1,abbr:1,label:1,code:1,table:1,script:1,cite:1,input:1,iframe:1,strong:1,textarea:1,noframes:1,big:1,small:1,span:1,hr:1,sub:1,bdo:1,'var':1,div:1,object:1,sup:1,strike:1,dir:1,map:1,dl:1,applet:1,del:1,isindex:1,fieldset:1,ul:1,b:1,acronym:1,a:1,blockquote:1,i:1,u:1,s:1,tt:1,address:1,q:1,pre:1,p:1,em:1,dfn:1},e=n({a:1},p),u={tr:1},a={'#':1},b=n({param:1},v),i=n({form:1},l,c,r,o),s={li:1},C={style:1,script:1},y={base:1,link:1,meta:1,title:1},x=n(y,C),k={head:1,body:1},S={html:1},w={address:1,blockquote:1,center:1,dir:1,div:1,dl:1,fieldset:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,hr:1,isindex:1,menu:1,noframes:1,ol:1,p:1,pre:1,table:1,ul:1};return{$nonBodyContent:n(S,k,y),$block:w,$blockLimit:{body:1,div:1,td:1,th:1,caption:1,form:1},$inline:e,$body:n({script:1,style:1},w),$cdata:{script:1,style:1},$empty:{area:1,base:1,br:1,col:1,hr:1,img:1,input:1,link:1,meta:1,param:1},$listItem:{dd:1,dt:1,li:1},$list:{ul:1,ol:1,dl:1},$nonEditable:{applet:1,button:1,embed:1,iframe:1,map:1,object:1,option:1,script:1,textarea:1,param:1},$removeEmpty:{abbr:1,acronym:1,address:1,b:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,q:1,s:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,tt:1,u:1,'var':1},$tabIndex:{a:1,area:1,button:1,input:1,object:1,select:1,textarea:1},$tableContent:{caption:1,col:1,colgroup:1,tbody:1,td:1,tfoot:1,th:1,thead:1,tr:1},html:k,head:x,style:a,script:a,body:i,base:{},link:{},meta:{},title:a,col:{},tr:{td:1,th:1},img:{},colgroup:{col:1},noscript:i,td:i,br:{},th:i,center:i,kbd:e,button:n(o,r),basefont:{},h5:e,h4:e,samp:e,h6:e,ol:s,h1:e,h3:e,option:a,h2:e,form:n(l,c,r,o),select:{optgroup:1,option:1},font:e,ins:e,menu:s,abbr:e,label:e,table:{thead:1,col:1,tbody:1,tr:1,colgroup:1,caption:1,tfoot:1},code:e,script:a,tfoot:u,cite:e,li:i,input:{},iframe:i,strong:e,textarea:a,noframes:i,big:e,small:e,span:e,hr:{},dt:e,sub:e,optgroup:{option:1},param:{},bdo:e,'var':e,div:i,object:b,sup:e,dd:i,strike:e,area:{},dir:s,map:n({area:1,form:1,p:1},l,m,r),applet:b,dl:{dt:1,dd:1},del:e,isindex:{},fieldset:n({legend:1},v),thead:u,ul:s,acronym:e,b:e,a:p,blockquote:i,caption:e,i:e,u:e,tbody:u,s:e,address:n(c,o),tt:e,legend:e,q:e,pre:n(g,f),p:e,em:e,dfn:e}})();var c=e.dtd;i.event=function(e){this.$=e};i.event.prototype={getKey:function(){return this.$.keyCode||this.$.which},getKeystroke:function(){var e=this,t=e.getKey();if(e.$.ctrlKey||e.$.metaKey)t+=1000;if(e.$.shiftKey)t+=2000;if(e.$.altKey)t+=4000;return t},preventDefault:function(e){var t=this.$;if(t.preventDefault)t.preventDefault();else t.returnValue=!1;if(e)this.stopPropagation()},stopPropagation:function(){var e=this.$;if(e.stopPropagation)e.stopPropagation();else e.cancelBubble=!0},getTarget:function(){var e=this.$.target||this.$.srcElement;return e?new i.node(e):null}};e.CTRL=1000;e.SHIFT=2000;e.ALT=4000;i.domObject=function(e){if(e)this.$=e};i.domObject.prototype=(function(){var t=function(t,n){return function(a){if(typeof e!='undefined')t.fire(n,new i.event(a))}};return{getPrivate:function(){var e;if(!(e=this.getCustomData('_')))this.setCustomData('_',e={});return e},on:function(n){var i=this,a=i.getCustomData('_cke_nativeListeners');if(!a){a={};i.setCustomData('_cke_nativeListeners',a)};if(!a[n]){var r=a[n]=t(i,n);if(i.$.attachEvent)i.$.attachEvent('on'+n,r);else if(i.$.addEventListener)i.$.addEventListener(n,r,!!e.event.useCapture)};return e.event.prototype.on.apply(i,arguments)},removeListener:function(t){var n=this;e.event.prototype.removeListener.apply(n,arguments);if(!n.hasListeners(t)){var i=n.getCustomData('_cke_nativeListeners'),a=i&&i[t];if(a){if(n.$.detachEvent)n.$.detachEvent('on'+t,a);else if(n.$.removeEventListener)n.$.removeEventListener(t,a,!1);delete i[t]}}},removeAllListeners:function(){var e=this,n=e.getCustomData('_cke_nativeListeners');for(var t in n){var i=n[t];if(e.$.detachEvent)e.$.detachEvent('on'+t,i);else if(e.$.removeEventListener)e.$.removeEventListener(t,i,!1);delete n[t]}}}})();(function(n){var i={};e.on('reset',function(){i={}});n.equals=function(e){return e&&e.$===this.$};n.setCustomData=function(e,t){var n=this.getUniqueId(),a=i[n]||(i[n]={});a[e]=t;return this};n.getCustomData=function(e){var t=this.$['data-cke-expando'],n=t&&i[t];return n&&n[e]};n.removeCustomData=function(e){var n=this.$['data-cke-expando'],t=n&&i[n],a=t&&t[e];if(typeof a!='undefined')delete t[e];return a||null};n.clearCustomData=function(){this.removeAllListeners();var e=this.$['data-cke-expando'];e&&delete i[e]};n.getUniqueId=function(){return this.$['data-cke-expando']||(this.$['data-cke-expando']=t.getNextNumber())};e.event.implementOn(n)})(i.domObject.prototype);i.window=function(e){i.domObject.call(this,e)};i.window.prototype=new i.domObject();t.extend(i.window.prototype,{focus:function(){if(n.webkit&&this.$.parent)this.$.parent.focus();this.$.focus()},getViewPaneSize:function(){var e=this.$.document,t=e.compatMode=='CSS1Compat';return{width:(t?e.documentElement.clientWidth:e.body.clientWidth)||0,height:(t?e.documentElement.clientHeight:e.body.clientHeight)||0}},getScrollPosition:function(){var t=this.$;if('pageXOffset' in t)return{x:t.pageXOffset||0,y:t.pageYOffset||0};else{var e=t.document;return{x:e.documentElement.scrollLeft||e.body.scrollLeft||0,y:e.documentElement.scrollTop||e.body.scrollTop||0}}}});i.document=function(e){i.domObject.call(this,e)};var d=i.document;d.prototype=new i.domObject();t.extend(d.prototype,{appendStyleSheet:function(e){if(this.$.createStyleSheet)this.$.createStyleSheet(e);else{var t=new i.element('link');t.setAttributes({rel:'stylesheet',type:'text/css',href:e});this.getHead().append(t)}},appendStyleText:function(e){var t=this;if(t.$.createStyleSheet){var a=t.$.createStyleSheet('');a.cssText=e}
+else{var n=new i.element('style',t);n.append(new i.text(e,t));t.getHead().append(n)}},createElement:function(e,t){var n=new i.element(e,this);if(t){if(t.attributes)n.setAttributes(t.attributes);if(t.styles)n.setStyles(t.styles)};return n},createText:function(e){return new i.text(e,this)},focus:function(){this.getWindow().focus()},getById:function(e){var t=this.$.getElementById(e);return t?new i.element(t):null},getByAddress:function(e,t){var n=this.$.documentElement;for(var o=0;n&&o<e.length;o++){var l=e[o];if(!t){n=n.childNodes[l];continue};var s=-1;for(var r=0;r<n.childNodes.length;r++){var a=n.childNodes[r];if(t===!0&&a.nodeType==3&&a.previousSibling&&a.previousSibling.nodeType==3)continue;s++;if(s==l){n=a;break}}};return n?new i.node(n):null},getElementsByTag:function(e,t){if(!(a&&!(document.documentMode>8))&&t)e=t+':'+e;return new i.nodeList(this.$.getElementsByTagName(e))},getHead:function(){var e=this.$.getElementsByTagName('head')[0];if(!e)e=this.getDocumentElement().append(new i.element('head'),!0);else e=new i.element(e);return(this.getHead=function(){return e})()},getBody:function(){var e=new i.element(this.$.body);return(this.getBody=function(){return e})()},getDocumentElement:function(){var e=new i.element(this.$.documentElement);return(this.getDocumentElement=function(){return e})()},getWindow:function(){var e=new i.window(this.$.parentWindow||this.$.defaultView);return(this.getWindow=function(){return e})()},write:function(e){var t=this;t.$.open('text/html','replace');n.isCustomDomain()&&(t.$.domain=document.domain);t.$.write(e);t.$.close()}});i.node=function(e){if(e){switch(e.nodeType){case 9:return new d(e);case 1:return new i.element(e);case 3:return new i.text(e)};i.domObject.call(this,e)};return this};i.node.prototype=new i.domObject();e.NODE_ELEMENT=1;e.NODE_DOCUMENT=9;e.NODE_TEXT=3;e.NODE_COMMENT=8;e.NODE_DOCUMENT_FRAGMENT=11;e.POSITION_IDENTICAL=0;e.POSITION_DISCONNECTED=1;e.POSITION_FOLLOWING=2;e.POSITION_PRECEDING=4;e.POSITION_IS_CONTAINED=8;e.POSITION_CONTAINS=16;t.extend(i.node.prototype,{appendTo:function(e,t){e.append(this,t);return e},clone:function(e,t){var n=this.$.cloneNode(e),a=function(n){if(n.nodeType!=1)return;if(!t)n.removeAttribute('id',!1);n.removeAttribute('data-cke-expando',!1);if(e){var r=n.childNodes;for(var i=0;i<r.length;i++)a(r[i])}};a(n);return new i.node(n)},hasPrevious:function(){return!!this.$.previousSibling},hasNext:function(){return!!this.$.nextSibling},insertAfter:function(e){e.$.parentNode.insertBefore(this.$,e.$.nextSibling);return e},insertBefore:function(e){e.$.parentNode.insertBefore(this.$,e.$);return e},insertBeforeMe:function(e){this.$.parentNode.insertBefore(e.$,this.$);return e},getAddress:function(e){var o=[],s=this.getDocument().$.documentElement,t=this.$;while(t&&t!=s){var i=t.parentNode,r=-1;if(i){for(var a=0;a<i.childNodes.length;a++){var n=i.childNodes[a];if(e&&n.nodeType==3&&n.previousSibling&&n.previousSibling.nodeType==3)continue;r++;if(n==t)break};o.unshift(r)};t=i};return o},getDocument:function(){return new d(this.$.ownerDocument||this.$.parentNode.ownerDocument)},getIndex:function(){var t=this.$,e=t.parentNode&&t.parentNode.firstChild,n=-1;while(e){n++;if(e==t)return n;e=e.nextSibling};return-1},getNextSourceNode:function(e,t,n){if(n&&!n.call){var r=n;n=function(e){return!e.equals(r)}};var i=!e&&this.getFirst&&this.getFirst(),a;if(!i){if(this.type==1&&n&&n(this,!0)===!1)return null;i=this.getNext()}
+while(!i&&(a=(a||this).getParent())){if(n&&n(a,!0)===!1)return null;i=a.getNext()};if(!i)return null;if(n&&n(i)===!1)return null;if(t&&t!=i.type)return i.getNextSourceNode(!1,t,n);return i},getPreviousSourceNode:function(e,t,n){if(n&&!n.call){var r=n;n=function(e){return!e.equals(r)}};var i=!e&&this.getLast&&this.getLast(),a;if(!i){if(this.type==1&&n&&n(this,!0)===!1)return null;i=this.getPrevious()}
+while(!i&&(a=(a||this).getParent())){if(n&&n(a,!0)===!1)return null;i=a.getPrevious()};if(!i)return null;if(n&&n(i)===!1)return null;if(t&&i.type!=t)return i.getPreviousSourceNode(!1,t,n);return i},getPrevious:function(e){var t=this.$,n;do{t=t.previousSibling;n=t&&new i.node(t)}
+while(n&&e&&!e(n));return n},getNext:function(e){var t=this.$,n;do{t=t.nextSibling;n=t&&new i.node(t)}
+while(n&&e&&!e(n));return n},getParent:function(){var e=this.$.parentNode;return e&&e.nodeType==1?new i.node(e):null},getParents:function(e){var t=this,n=[];do n[e?'push':'unshift'](t);while(t=t.getParent());return n},getCommonAncestor:function(e){var t=this;if(e.equals(t))return t;if(e.contains&&e.contains(t))return e;var n=t.contains?t:t.getParent();do{if(n.contains(e))return n}
+while(n=n.getParent());return null},getPosition:function(e){var t=this.$,i=e.$;if(t.compareDocumentPosition)return t.compareDocumentPosition(i);if(t==i)return 0;if(this.type==1&&e.type==1){if(t.contains){if(t.contains(i))return 16+4;if(i.contains(t))return 8+2};if('sourceIndex' in t)return t.sourceIndex<0||i.sourceIndex<0?1:t.sourceIndex<i.sourceIndex?4:2};var a=this.getAddress(),r=e.getAddress(),o=Math.min(a.length,r.length);for(var n=0;n<=o-1;n++){if(a[n]!=r[n]){if(n<o)return a[n]<r[n]?4:2;break}};return a.length<r.length?16+4:8+2},getAscendant:function(e,t){var n=this.$;if(!t)n=n.parentNode;while(n){if(n.nodeName&&n.nodeName.toLowerCase()==e)return new i.node(n);n=n.parentNode};return null},hasAscendant:function(e,t){var n=this.$;if(!t)n=n.parentNode;while(n){if(n.nodeName&&n.nodeName.toLowerCase()==e)return!0;n=n.parentNode};return!1},move:function(e,t){e.append(this.remove(),t)},remove:function(e){var t=this.$,n=t.parentNode;if(n){if(e)for(var i;i=t.firstChild;)n.insertBefore(t.removeChild(i),t);n.removeChild(t)};return this},replace:function(e){this.insertBefore(e);e.remove()},trim:function(){this.ltrim();this.rtrim()},ltrim:function(){var n=this,e;while(n.getFirst&&(e=n.getFirst())){if(e.type==3){var i=t.ltrim(e.getText()),a=e.getLength();if(!i){e.remove();continue}
+else if(i.length<a){e.split(a-i.length);n.$.removeChild(n.$.firstChild)}};break}},rtrim:function(){var i=this,e;while(i.getLast&&(e=i.getLast())){if(e.type==3){var r=t.rtrim(e.getText()),o=e.getLength();if(!r){e.remove();continue}
+else if(r.length<o){e.split(r.length);i.$.lastChild.parentNode.removeChild(i.$.lastChild)}};break};if(!a&&!n.opera){e=i.$.lastChild;if(e&&e.type==1&&e.nodeName.toLowerCase()=='br')e.parentNode.removeChild(e)}},isReadOnly:function(){var e=this;while(e){if(e.type==1){if(e.is('body')||!!e.data('cke-editable'))break;if(e.getAttribute('contentEditable')=='false')return e;else if(e.getAttribute('contentEditable')=='true')break};e=e.getParent()};return!1}});i.nodeList=function(e){this.$=e};i.nodeList.prototype={count:function(){return this.$.length},getItem:function(e){var t=this.$[e];return t?new i.node(t):null}};i.element=function(e,t){if(typeof e=='string')e=(t?t.$:document).createElement(e);i.domObject.call(this,e)};var s=i.element;s.get=function(e){return e&&(e.$?e:new s(e))};s.prototype=new i.node();s.createFromHtml=function(e,t){var n=new s('div',t);n.setHtml(e);return n.getFirst().remove()};s.setMarker=function(e,n,i,a){var r=n.getCustomData('list_marker_id')||n.setCustomData('list_marker_id',t.getNextNumber()).getCustomData('list_marker_id'),o=n.getCustomData('list_marker_names')||n.setCustomData('list_marker_names',{}).getCustomData('list_marker_names');e[r]=n;o[i]=1;return n.setCustomData(i,a)};s.clearAllMarkers=function(e){for(var t in e)s.clearMarkers(e,e[t],1)};s.clearMarkers=function(e,t,n){var a=t.getCustomData('list_marker_names'),r=t.getCustomData('list_marker_id');for(var i in a)t.removeCustomData(i);t.removeCustomData('list_marker_names');if(n){t.removeCustomData('list_marker_id');delete e[r]}};t.extend(s.prototype,{type:1,addClass:function(e){var t=this.$.className;if(t){var n=new RegExp('(?:^|\\s)'+e+'(?:\\s|$)','');if(!n.test(t))t+=' '+e};this.$.className=t||e},removeClass:function(e){var t=this.getAttribute('class');if(t){var n=new RegExp('(?:^|\\s+)'+e+'(?=\\s|$)','i');if(n.test(t)){t=t.replace(n,'').replace(/^\s+/,'');if(t)this.setAttribute('class',t);else this.removeAttribute('class')}}},hasClass:function(e){var t=new RegExp('(?:^|\\s+)'+e+'(?=\\s|$)','');return t.test(this.getAttribute('class'))},append:function(e,t){var n=this;if(typeof e=='string')e=n.getDocument().createElement(e);if(t)n.$.insertBefore(e.$,n.$.firstChild);else n.$.appendChild(e.$);return e},appendHtml:function(e){var t=this;if(!t.$.childNodes.length)t.setHtml(e);else{var n=new s('div',t.getDocument());n.setHtml(e);n.moveChildren(t)}},appendText:function(e){if(this.$.text!=undefined)this.$.text+=e;else this.append(new i.text(e))},appendBogus:function(){var i=this,e=i.getLast();while(e&&e.type==3&&!t.rtrim(e.getText()))e=e.getPrevious();if(!e||!e.is||!e.is('br')){var a=n.opera?i.getDocument().createText(''):i.getDocument().createElement('br');n.gecko&&a.setAttribute('type','_moz');i.append(a)}},breakParent:function(e){var t=this,n=new i.range(t.getDocument());n.setStartAfter(t);n.setEndAfter(e);var a=n.extractContents();n.insertNode(t.remove());a.insertAfterNode(t)},contains:a||n.webkit?function(e){var t=this.$;return e.type!=1?t.contains(e.getParent().$):t!=e.$&&t.contains(e.$)}:function(e){return!!(this.$.compareDocumentPosition(e.$)&16)},focus:(function(){function e(){try{this.$.focus()}catch(e){}};return function(n){if(n)t.setTimeout(e,100,this);else e.call(this)}})(),getHtml:function(){var e=this.$.innerHTML;return a?e.replace(/<\?[^>]*>/g,''):e},getOuterHtml:function(){var e=this;if(e.$.outerHTML)return e.$.outerHTML.replace(/<\?[^>]*>/,'');var t=e.$.ownerDocument.createElement('div');t.appendChild(e.$.cloneNode(!0));return t.innerHTML},setHtml:function(e){return this.$.innerHTML=e},setText:function(e){s.prototype.setText=this.$.innerText!=undefined?function(e){return this.$.innerText=e}:function(e){return this.$.textContent=e};return this.setText(e)},getAttribute:(function(){var e=function(e){return this.$.getAttribute(e,2)};if(a&&(n.ie7Compat||n.ie6Compat))return function(t){var n=this;switch(t){case'class':t='className';break;case'tabindex':var i=e.call(n,t);if(i!==0&&n.$.tabIndex===0)i=null;return i;break;case'checked':var a=n.$.attributes.getNamedItem(t),r=a.specified?a.nodeValue:n.$.checked;return r?'checked':null;case'hspace':case'value':return n.$[t];case'style':return n.$.style.cssText};return e.call(n,t)};else return e})(),getChildren:function(){return new i.nodeList(this.$.childNodes)},getComputedStyle:a?function(e){return this.$.currentStyle[t.cssStyleToDomStyle(e)]}:function(e){return this.getWindow().$.getComputedStyle(this.$,'').getPropertyValue(e)},getDtd:function(){var e=c[this.getName()];this.getDtd=function(){return e};return e},getElementsByTag:d.prototype.getElementsByTag,getTabIndex:a?function(){var e=this.$.tabIndex;if(e===0&&!c.$tabIndex[this.getName()]&&parseInt(this.getAttribute('tabindex'),10)!==0)e=-1;return e}:n.webkit?function(){var e=this.$.tabIndex;if(e==undefined){e=parseInt(this.getAttribute('tabindex'),10);if(isNaN(e))e=-1};return e}:function(){return this.$.tabIndex},getText:function(){return this.$.textContent||this.$.innerText||''},getWindow:function(){return this.getDocument().getWindow()},getId:function(){return this.$.id||null},getNameAtt:function(){return this.$.name||null},getName:function(){var e=this.$.nodeName.toLowerCase();if(a&&!(document.documentMode>8)){var t=this.$.scopeName;if(t!='HTML')e=t.toLowerCase()+':'+e};return(this.getName=function(){return e})()},getValue:function(){return this.$.value},getFirst:function(e){var n=this.$.firstChild,t=n&&new i.node(n);if(t&&e&&!e(t))t=t.getNext(e);return t},getLast:function(e){var n=this.$.lastChild,t=n&&new i.node(n);if(t&&e&&!e(t))t=t.getPrevious(e);return t},getStyle:function(e){return this.$.style[t.cssStyleToDomStyle(e)]},is:function(){var t=this.getName();for(var e=0;e<arguments.length;e++){if(arguments[e]==t)return!0};return!1},isEditable:function(){var e=this.getName(),t=!c.$nonEditable[e]&&(c[e]||c.span);return t&&t['#']},isIdentical:function(e){if(this.getName()!=e.getName())return!1;var i=this.$.attributes,r=e.$.attributes,o=i.length,s=r.length;for(var n=0;n<o;n++){var t=i[n];if(t.nodeName=='_moz_dirty')continue;if((!a||t.specified&&t.nodeName!='data-cke-expando')&&t.nodeValue!=e.getAttribute(t.nodeName))return!1};if(a)for(n=0;n<s;n++){t=r[n];if(t.specified&&t.nodeName!='data-cke-expando'&&t.nodeValue!=this.getAttribute(t.nodeName))return!1};return!0},isVisible:function(){var t=!!this.$.offsetHeight&&this.getComputedStyle('visibility')!='hidden',i,a;if(t&&(n.webkit||n.opera)){i=this.getWindow();if(!i.equals(e.document.getWindow())&&(a=i.$.frameElement))t=new s(a).isVisible()};return t},isEmptyInlineRemoveable:function(){if(!c.$removeEmpty[this.getName()])return!1;var i=this.getChildren();for(var n=0,a=i.count();n<a;n++){var e=i.getItem(n);if(e.type==1&&e.data('cke-bookmark'))continue;if(e.type==1&&!e.isEmptyInlineRemoveable()||e.type==3&&t.trim(e.getText()))return!1};return!0},hasAttributes:a&&(n.ie7Compat||n.ie6Compat)?function(){var n=this.$.attributes;for(var e=0;e<n.length;e++){var t=n[e];switch(t.nodeName){case'class':if(this.getAttribute('class'))return!0;case'data-cke-expando':continue;default:if(t.specified)return!0}};return!1}:function(){var e=this.$.attributes,t=e.length,n={'data-cke-expando':1,_moz_dirty:1};return t>0&&(t>2||!n[e[0].nodeName]||t==2&&!n[e[1].nodeName])},hasAttribute:function(e){var t=this.$.attributes.getNamedItem(e);return!!(t&&t.specified)},hide:function(){this.setStyle('display','none')},moveChildren:function(e,t){var n=this.$;e=e.$;if(n==e)return;var i;if(t)while(i=n.lastChild)e.insertBefore(n.removeChild(i),e.firstChild);else while(i=n.firstChild)e.appendChild(n.removeChild(i))},mergeSiblings:(function(){function e(e,t,n){if(t&&t.type==1){var a=[];while(t.data('cke-bookmark')||t.isEmptyInlineRemoveable()){a.push(t);t=n?t.getNext():t.getPrevious();if(!t||t.type!=1)return};if(e.isIdentical(t)){var i=n?e.getLast():e.getFirst();while(a.length)a.shift().move(e,!n);t.moveChildren(e,!n);t.remove();if(i&&i.type==1)i.mergeSiblings()}}};return function(t){var n=this;if(!(t===!1||c.$removeEmpty[n.getName()]||n.is('a')))return;e(n,n.getNext(),!0);e(n,n.getPrevious())}})(),show:function(){this.setStyles({display:'',visibility:''})},setAttribute:(function(){var e=function(e,t){this.$.setAttribute(e,t);return this};if(a&&(n.ie7Compat||n.ie6Compat))return function(t,n){var i=this;if(t=='class')i.$.className=n;else if(t=='style')i.$.style.cssText=n;else if(t=='tabindex')i.$.tabIndex=n;else if(t=='checked')i.$.checked=n;else e.apply(i,arguments);return i};else return e})(),setAttributes:function(e){for(var t in e)this.setAttribute(t,e[t]);return this},setValue:function(e){this.$.value=e;return this},removeAttribute:(function(){var e=function(e){this.$.removeAttribute(e)};if(a&&(n.ie7Compat||n.ie6Compat))return function(t){if(t=='class')t='className';else if(t=='tabindex')t='tabIndex';e.call(this,t)};else return e})(),removeAttributes:function(e){if(t.isArray(e))for(var n=0;n<e.length;n++)this.removeAttribute(e[n]);else for(var i in e)e.hasOwnProperty(i)&&this.removeAttribute(i)},removeStyle:function(e){var n=this;n.setStyle(e,'');if(n.$.style.removeAttribute)n.$.style.removeAttribute(t.cssStyleToDomStyle(e));if(!n.$.style.cssText)n.removeAttribute('style')},setStyle:function(e,n){this.$.style[t.cssStyleToDomStyle(e)]=n;return this},setStyles:function(e){for(var t in e)this.setStyle(t,e[t]);return this},setOpacity:function(e){if(a){e=Math.round(e*100);this.setStyle('filter',e>=100?'':'progid:DXImageTransform.Microsoft.Alpha(opacity='+e+')')}
+else this.setStyle('opacity',e)},unselectable:n.gecko?function(){this.$.style.MozUserSelect='none';this.on('dragstart',function(e){e.data.preventDefault()})}:n.webkit?function(){this.$.style.KhtmlUserSelect='none';this.on('dragstart',function(e){e.data.preventDefault()})}:function(){if(a||n.opera){var t=this.$,e,i=0;t.unselectable='on';while(e=t.all[i++])switch(e.tagName.toLowerCase()){case'iframe':case'textarea':case'input':case'select':break;default:e.unselectable='on'}}},getPositionedAncestor:function(){var e=this;while(e.getName()!='html'){if(e.getComputedStyle('position')!='static')return e;e=e.getParent()};return null},getDocumentPosition:function(e){var i=this,r=0,o=0,d=i.getDocument().getBody(),c=i.getDocument().$.compatMode=='BackCompat',m=i.getDocument();if(document.documentElement.getBoundingClientRect){var v=i.$.getBoundingClientRect(),C=m.$,u=C.documentElement,x=u.clientTop||d.$.clientTop||0,S=u.clientLeft||d.$.clientLeft||0,b=!0;if(a){var k=m.getDocumentElement().contains(i),w=m.getBody().contains(i);b=c&&w||!c&&k};if(b){r=v.left+(!c&&u.scrollLeft||d.$.scrollLeft);r-=S;o=v.top+(!c&&u.scrollTop||d.$.scrollTop);o-=x}}
+else{var t=i,h=null,p;while(t&&!(t.getName()=='body'||t.getName()=='html')){r+=t.$.offsetLeft-t.$.scrollLeft;o+=t.$.offsetTop-t.$.scrollTop;if(!t.equals(i)){r+=t.$.clientLeft||0;o+=t.$.clientTop||0};var l=h;while(l&&!l.equals(t)){r-=l.$.scrollLeft;o-=l.$.scrollTop;l=l.getParent()};h=t;t=(p=t.$.offsetParent)?new s(p):null}};if(e){var f=i.getWindow(),y=e.getWindow();if(!f.equals(y)&&f.$.frameElement){var g=new s(f.$.frameElement).getDocumentPosition(e);r+=g.x;o+=g.y}};if(!document.documentElement.getBoundingClientRect)if(n.gecko&&!c){r+=i.$.clientLeft?1:0;o+=i.$.clientTop?1:0};return{x:r,y:o}},scrollIntoView:function(e){var n=this,i=n.getWindow(),a=i.getViewPaneSize().height,t=a*-1;if(e)t+=a;else{t+=n.$.offsetHeight||0;t+=parseInt(n.getComputedStyle('marginBottom')||0,10)||0};var o=n.getDocumentPosition();t+=o.y;t=t<0?0:t;var r=i.getScrollPosition().y;if(t>r||t<r-a)i.$.scrollTo(0,t)},setState:function(e){var t=this;switch(e){case 1:t.addClass('cke_on');t.removeClass('cke_off');t.removeClass('cke_disabled');break;case 0:t.addClass('cke_disabled');t.removeClass('cke_off');t.removeClass('cke_on');break;default:t.addClass('cke_off');t.removeClass('cke_on');t.removeClass('cke_disabled');break}},getFrameDocument:function(){var t=this.$;try{t.contentWindow.document}catch(e){t.src=t.src;if(a&&n.version<7)window.showModalDialog('javascript:document.write("<script>window.setTimeout(function(){window.close();},50);</script>")')};return t&&new d(t.contentWindow.document)},copyAttributes:function(e,t){var r=this,l=r.$.attributes;t=t||{};for(var s=0;s<l.length;s++){var o=l[s],n=o.nodeName.toLowerCase(),i;if(n in t)continue;if(n=='checked'&&(i=r.getAttribute(n)))e.setAttribute(n,i);else if(o.specified||a&&o.nodeValue&&n=='value'){i=r.getAttribute(n);if(i===null)i=o.nodeValue;e.setAttribute(n,i)}};if(r.$.style.cssText!=='')e.$.style.cssText=r.$.style.cssText},renameNode:function(e){var t=this;if(t.getName()==e)return;var i=t.getDocument(),n=new s(e,i);t.copyAttributes(n);t.moveChildren(n);t.getParent()&&t.$.parentNode.replaceChild(n.$,t.$);n.$['data-cke-expando']=t.$['data-cke-expando'];t.$=n.$},getChild:function(e){var t=this.$;if(!e.slice)t=t.childNodes[e];else while(e.length>0&&t)t=t.childNodes[e.shift()];return t?new i.node(t):null},getChildCount:function(){return this.$.childNodes.length},disableContextMenu:function(){this.on('contextmenu',function(e){if(!e.data.getTarget().hasClass('cke_enable_context_menu'))e.data.preventDefault()})},getDirection:function(e){return e?this.getComputedStyle('direction'):this.getStyle('direction')||this.getAttribute('dir')},data:function(e,t){e='data-'+e;if(t===undefined)return this.getAttribute(e);else if(t===!1)this.removeAttribute(e);else this.setAttribute(e,t);return null}});(function(){var e={width:['border-left-width','border-right-width','padding-left','padding-right'],height:['border-top-width','border-bottom-width','padding-top','padding-bottom']};function i(t){var i=0;for(var n=0,a=e[t].length;n<a;n++)i+=parseInt(this.getComputedStyle(e[t][n])||0,10)||0;return i};s.prototype.setSize=function(e,t,r){if(typeof t=='number'){if(r&&!(a&&n.quirks))t-=i.call(this,e);this.setStyle(e,t+'px')}};s.prototype.getSize=function(e,n){var a=Math.max(this.$['offset'+t.capitalize(e)],this.$['client'+t.capitalize(e)])||0;if(n)a-=i.call(this,e);return a}})();e.command=function(n,i){this.uiItems=[];this.exec=function(e){if(this.state==0)return!1;if(this.editorFocus)n.focus();return i.exec.call(this,n,e)!==!1};t.extend(this,i,{modes:{wysiwyg:1},editorFocus:1,state:2});e.event.call(this)};e.command.prototype={enable:function(){var e=this;if(e.state==0)e.setState(!e.preserveState||typeof e.previousState=='undefined'?2:e.previousState)},disable:function(){this.setState(0)},setState:function(e){var t=this;if(t.state==e)return!1;t.previousState=t.state;t.state=e;t.fire('state');return!0},toggleState:function(){var e=this;if(e.state==2)e.setState(1);else if(e.state==1)e.setState(2)}};e.event.implementOn(e.command.prototype,!0);e.ENTER_P=1;e.ENTER_BR=2;e.ENTER_DIV=3;e.config={customConfig:'config.js',autoUpdateElement:!0,baseHref:'',contentsCss:e.basePath+'contents.css',contentsLangDirection:'ui',contentsLanguage:'',language:'',defaultLanguage:'en',enterMode:1,forceEnterMode:!1,shiftEnterMode:2,corePlugins:'',docType:'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">',bodyId:'',bodyClass:'',fullPage:!1,height:200,plugins:'about,a11yhelp,basicstyles,bidi,blockquote,button,clipboard,colorbutton,colordialog,contextmenu,dialogadvtab,div,elementspath,enterkey,entities,filebrowser,find,flash,font,format,forms,horizontalrule,htmldataprocessor,iframe,image,indent,justify,keystrokes,link,list,liststyle,maximize,newpage,pagebreak,pastefromword,pastetext,popup,preview,print,removeformat,resize,save,scayt,smiley,showblocks,showborders,sourcearea,stylescombo,table,tabletools,specialchar,tab,templates,toolbar,undo,wysiwygarea,wsc',extraPlugins:'',removePlugins:'',protectedSource:[],tabIndex:0,theme:'default',skin:'kama',width:'',baseFloatZIndex:10000};var l=e.config;e.focusManager=function(e){if(e.focusManager)return e.focusManager;this.hasFocus=!1;this._={editor:e};return this};e.focusManager.prototype={focus:function(){var t=this;if(t._.timer)clearTimeout(t._.timer);if(!t.hasFocus){if(e.currentInstance)e.currentInstance.focusManager.forceBlur();var n=t._.editor;n.container.getChild(1).addClass('cke_focus');t.hasFocus=!0;n.fire('focus')}},blur:function(){var e=this;if(e._.timer)clearTimeout(e._.timer);e._.timer=setTimeout(function(){delete e._.timer;e.forceBlur()},100)},forceBlur:function(){if(this.hasFocus){var e=this._.editor;e.container.getChild(1).removeClass('cke_focus');this.hasFocus=!1;e.fire('blur')}}};(function(){var t={};e.lang={languages:{af:1,ar:1,bg:1,bn:1,bs:1,ca:1,cs:1,cy:1,da:1,de:1,el:1,'en-au':1,'en-ca':1,'en-gb':1,en:1,eo:1,es:1,et:1,eu:1,fa:1,fi:1,fo:1,'fr-ca':1,fr:1,gl:1,gu:1,he:1,hi:1,hr:1,hu:1,is:1,it:1,ja:1,km:1,ko:1,lt:1,lv:1,mn:1,ms:1,nb:1,nl:1,no:1,pl:1,'pt-br':1,pt:1,ro:1,ru:1,sk:1,sl:1,'sr-latn':1,sr:1,sv:1,th:1,tr:1,uk:1,vi:1,'zh-cn':1,zh:1},load:function(t,n,i){if(!t||!e.lang.languages[t])t=this.detect(n,t);if(!this[t])e.scriptLoader.load(e.getUrl('lang/'+t+'.js'),function(){i(t,this[t])},this);else i(t,this[t])},detect:function(t,n){var o=this.languages;n=n||navigator.userLanguage||navigator.language;var a=n.toLowerCase().match(/([a-z]+)(?:-([a-z]+))?/),i=a[1],r=a[2];if(o[i+'-'+r])i=i+'-'+r;else if(!o[i])i=null;e.lang.detect=i?function(){return i}:function(e){return e};return i||t}}})();e.scriptLoader=(function(){var n={},t={};return{load:function(i,r,o,l){var p=typeof i=='string';if(p)i=[i];if(!o)o=e;var d=i.length,m=[],g=[],h=function(e){if(r)if(p)r.call(o,e);else r.call(o,m,g)};if(d===0){h(!0);return};var f=function(t,n){(n?m:g).push(t);if(--d<=0){l&&e.document.getDocumentElement().removeStyle('cursor');h(n)}},u=function(e,i){n[e]=1;var r=t[e];delete t[e];for(var a=0;a<r.length;a++)r[a](e,i)},v=function(i){if(n[i]){f(i,!0);return};var l=t[i]||(t[i]=[]);l.push(f);if(l.length>1)return;var o=new s('script');o.setAttributes({type:'text/javascript',src:i});if(r)if(a)o.$.onreadystatechange=function(){if(o.$.readyState=='loaded'||o.$.readyState=='complete'){o.$.onreadystatechange=null;u(i,!0)}};else{o.$.onload=function(){setTimeout(function(){u(i,!0)},0)};o.$.onerror=function(){u(i,!1)}};o.appendTo(e.document.getHead())};l&&e.document.getDocumentElement().setStyle('cursor','wait');for(var c=0;c<d;c++)v(i[c])}}})();e.resourceManager=function(e,t){var n=this;n.basePath=e;n.fileName=t;n.registered={};n.loaded={};n.externals={};n._={waitingList:{}}};e.resourceManager.prototype={add:function(n,i){if(this.registered[n])throw'[CKEDITOR.resourceManager.add] The resource name "'+n+'" is already registered.';e.fire(n+t.capitalize(this.fileName)+'Ready',this.registered[n]=i||{})},get:function(e){return this.registered[e]||null},getPath:function(t){var n=this.externals[t];return e.getUrl(n&&n.dir||this.basePath+t+'/')},getFilePath:function(t){var n=this.externals[t];return e.getUrl(this.getPath(t)+(n&&typeof n.file=='string'?n.file:this.fileName+'.js'))},addExternal:function(e,t,n){e=e.split(',');for(var i=0;i<e.length;i++){var a=e[i];this.externals[a]={dir:t,file:n}}},load:function(n,i,a){if(!t.isArray(n))n=n?[n]:[];var u=this.loaded,f=this.registered,d=[],o={},c={};for(var l=0;l<n.length;l++){var r=n[l];if(!r)continue;if(!u[r]&&!f[r]){var s=this.getFilePath(r);d.push(s);if(!(s in o))o[s]=[];o[s].push(r)}
+else c[r]=this.get(r)};e.scriptLoader.load(d,function(e,t){if(t.length)throw'[CKEDITOR.resourceManager.load] Resource name "'+o[t[0]].join(',')+'" was not found at "'+t[0]+'".';for(var s=0;s<e.length;s++){var l=o[e[s]];for(var r=0;r<l.length;r++){var n=l[r];c[n]=this.get(n);u[n]=1}};i.call(a,c)},this)}};e.plugins=new e.resourceManager('plugins/','plugin');var r=e.plugins;r.load=t.override(r.load,function(e){return function(n,i,a){var r={},o=function(n){e.call(this,n,function(e){t.extend(r,e);var u=[];for(var c in e){var n=e[c],l=n&&n.requires;if(l)for(var s=0;s<l.length;s++){if(!r[l[s]])u.push(l[s])}};if(u.length)o.call(this,u);else{for(c in r){n=r[c];if(n.onLoad&&!n.onLoad._called){n.onLoad();n.onLoad._called=1}};if(i)i.call(a||window,r)}},this)};o.call(this,n)}});r.setLang=function(e,t,n){var i=this.get(e),a=i.lang||(i.lang={});a[t]=n};e.skins=(function(){var i={},n={},a=function(a,r,o,s){var u=i[r];if(!a.skin){a.skin=u;if(u.init)u.init(a)};var h=function(t){for(var i=0;i<t.length;i++)t[i]=e.getUrl(n[r]+t[i])};function v(e,t){return e.replace(/url\s*\(([\s'"]*)(.*?)([\s"']*)\)/g,function(e,n,i,a){if(/^\/|^\w?:/.test(i))return e;else return'url('+t+n+i+a+')'})};o=u[o];var p=!o||!!o._isLoaded;if(p)s&&s();else{var c=o._pending||(o._pending=[]);c.push(s);if(c.length>1)return;var f=!o.css||!o.css.length,m=!o.js||!o.js.length,g=function(){if(f&&m){o._isLoaded=1;for(var e=0;e<c.length;e++){if(c[e])c[e]()}}};if(!f){var l=o.css;if(t.isArray(l)){h(l);for(var d=0;d<l.length;d++)e.document.appendStyleSheet(l[d])}
+else{l=v(l,e.getUrl(n[r]));e.document.appendStyleText(l)};o.css=l;f=1};if(!m){h(o.js);e.scriptLoader.load(o.js,function(){m=1;g()})};g()}};return{add:function(t,a){i[t]=a;a.skinPath=n[t]||(n[t]=e.getUrl('skins/'+t+'/'))},load:function(t,r,o){var s=t.skinName,l=t.skinPath;if(i[s])a(t,s,r,o);else{n[s]=l;e.scriptLoader.load(e.getUrl(l+'skin.js'),function(){a(t,s,r,o)})}}}})();e.themes=new e.resourceManager('themes/','theme');e.ui=function(e){if(e.ui)return e.ui;this._={handlers:{},items:{},editor:e};return this};var o=e.ui;o.prototype={add:function(e,t,n){this._.items[e]={type:t,command:n.command||null,args:Array.prototype.slice.call(arguments,2)}},create:function(e){var n=this,t=n._.items[e],i=t&&n._.handlers[t.type],a=t&&t.command&&n._.editor.getCommand(t.command),r=i&&i.create.apply(n,t.args);if(a)a.uiItems.push(r);return r},addHandler:function(e,t){this._.handlers[e]=t}};e.event.implementOn(o);(function(){var u=0,a=function(){var t='editor'+ ++u;return e.instances&&e.instances[t]?a():t},c={},i=function(t){var n=t.config.customConfig;if(!n)return!1;n=e.getUrl(n);var a=c[n]||(c[n]={});if(a.fn){a.fn.call(t,t.config);if(e.getUrl(t.config.customConfig)==n||!i(t))t.fireOnce('customConfigLoaded')}
+else e.scriptLoader.load(n,function(){if(e.editorConfig)a.fn=e.editorConfig;else a.fn=function(){};i(t)});return!0},d=function(e,n){e.on('customConfigLoaded',function(){if(n){if(n.on)for(var i in n.on)e.on(i,n.on[i]);t.extend(e.config,n,!0);delete e.config.on};f(e)});if(n&&n.customConfig!=undefined)e.config.customConfig=n.customConfig;if(!i(e))e.fireOnce('customConfigLoaded')},f=function(t){var i=t.config.skin.split(','),n=i[0],a=e.getUrl(i[1]||'skins/'+n+'/');t.skinName=n;t.skinPath=a;t.skinClass='cke_skin_'+n;t.tabIndex=t.config.tabIndex||t.element.getAttribute('tabindex')||0;t.fireOnce('configLoaded');h(t)},m=function(i){e.lang.load(i.config.language,i.config.defaultLanguage,function(e,a){i.langCode=e;i.lang=t.prototypedCopy(a);if(n.gecko&&n.version<10900&&i.lang.dir=='rtl')i.lang.dir='ltr';var r=i.config;r.contentsLangDirection=='ui'&&(r.contentsLangDirection=i.lang.dir);g(i)})},g=function(i){var s=i.config,a=s.plugins,l=s.extraPlugins,c=s.removePlugins;if(l){var o=new RegExp('(?:^|,)(?:'+l.replace(/\s*,\s*/g,'|')+')(?=,|$)','g');a=a.replace(o,'');a+=','+l};if(c){o=new RegExp('(?:^|,)(?:'+c.replace(/\s*,\s*/g,'|')+')(?=,|$)','g');a=a.replace(o,'')};n.air&&(a+=',adobeair');r.load(a.split(','),function(n){var l=[],c=[],f=[];i.plugins=n;for(var d in n){var o=n[d],s=o.lang,u=r.getPath(d),a=null;o.path=u;if(s){a=t.indexOf(s,i.langCode)>=0?i.langCode:s[0];if(!o.lang[a])f.push(e.getUrl(u+'lang/'+a+'.js'));else{t.extend(i.lang,o.lang[a]);a=null}};c.push(a);l.push(o)};e.scriptLoader.load(f,function(){var r=['beforeInit','init','afterInit'];for(var n=0;n<r.length;n++)for(var e=0;e<l.length;e++){var a=l[e];if(n===0&&c[e]&&a.lang)t.extend(i.lang,a.lang[c[e]]);if(a[r[n]])a[r[n]](i)};i.fire('pluginsLoaded');p(i)})})},h=function(t){e.skins.load(t,'editor',function(){m(t)})},p=function(t){var n=t.config.theme;e.themes.load(n,function(){var i=t.theme=e.themes.get(n);i.path=e.themes.getPath(n);i.build(t);if(t.config.autoUpdateElement)v(t)})},v=function(e){var i=e.element;if(e.elementMode==1&&i.is('textarea')){var n=i.$.form&&new s(i.$.form);if(n){function a(){e.updateElement()};n.on('submit',a);if(!n.$.submit.nodeName&&!n.$.submit.length)n.$.submit=t.override(n.$.submit,function(t){return function(){e.updateElement();if(t.apply)t.apply(this,arguments);else t()}});e.on('destroy',function(){n.removeListener('submit',a)})}}};function b(){var e,t=this._.commands,i=this.mode;for(var n in t){e=t[n];e[e.startDisabled?'disable':e.modes[i]?'enable':'disable']()}};e.editor.prototype._init=function(){var n=this,i=s.get(n._.element),r=n._.instanceConfig;delete n._.element;delete n._.instanceConfig;n._.commands={};n._.styles=[];n.element=i;n.name=i&&n.elementMode==1&&(i.getId()||i.getNameAtt())||a();if(n.name in e.instances)throw'[CKEDITOR.editor] The instance "'+n.name+'" already exists.';n.id=t.getNextId();n.config=t.prototypedCopy(l);n.ui=new o(n);n.focusManager=new e.focusManager(n);e.fire('instanceCreated',null,n);n.on('mode',b,null,null,1);d(n,r)}})();t.extend(e.editor.prototype,{addCommand:function(t,n){return this._.commands[t]=new e.command(this,n)},addCss:function(e){this._.styles.push(e)},destroy:function(t){var n=this;if(!t)n.updateElement();n.fire('destroy');n.theme&&n.theme.destroy(n);e.remove(n);e.fire('instanceDestroyed',null,n)},execCommand:function(e,t){var n=this.getCommand(e),i={name:e,commandData:t,command:n};if(n&&n.state!=0)if(this.fire('beforeCommandExec',i)!==!0){i.returnValue=n.exec(i.commandData);if(!n.async&&this.fire('afterCommandExec',i)!==!0)return i.returnValue};return!1},getCommand:function(e){return this._.commands[e]},getData:function(){var t=this;t.fire('beforeGetData');var e=t._.data;if(typeof e!='string'){var n=t.element;if(n&&t.elementMode==1)e=n.is('textarea')?n.getValue():n.getHtml();else e=''};e={dataValue:e};t.fire('getData',e);return e.dataValue},getSnapshot:function(){var t=this.fire('getSnapshot');if(typeof t!='string'){var e=this.element;if(e&&this.elementMode==1)t=e.is('textarea')?e.getValue():e.getHtml()};return t},loadSnapshot:function(e){this.fire('loadSnapshot',e)},setData:function(e,t,n){if(t)this.on('dataReady',function(e){e.removeListener();t.call(e.editor)});var i={dataValue:e};!n&&this.fire('setData',i);this._.data=i.dataValue;!n&&this.fire('afterSetData',i)},insertHtml:function(e){this.fire('insertHtml',e)},insertText:function(e){this.fire('insertText',e)},insertElement:function(e){this.fire('insertElement',e)},checkDirty:function(){return this.mayBeDirty&&this._.previousValue!==this.getSnapshot()},resetDirty:function(){if(this.mayBeDirty)this._.previousValue=this.getSnapshot()},updateElement:function(){var n=this,i=n.element;if(i&&n.elementMode==1){var e=n.getData();if(n.config.htmlEncodeOutput)e=t.htmlEncode(e);if(i.is('textarea'))i.setValue(e);else i.setHtml(e)}}});e.on('loaded',function(){var n=e.editor._pending;if(n){delete e.editor._pending;for(var t=0;t<n.length;t++)n[t]._init()}});e.htmlParser=function(){this._={htmlPartsRegex:new RegExp('<(?:(?:\\/([^>]+)>)|(?:!--([\\S|\\s]*?)-->)|(?:([^\\s>]+)\\s*((?:(?:[^"\'>]+)|(?:"[^"]*")|(?:\'[^\']*\'))*)\\/?>))','g')}};(function(){var t=/([\w\-:.]+)(?:(?:\s*=\s*(?:(?:"([^"]*)")|(?:'([^']*)')|([^\s>]+)))|(?=\s|$))/g,n={checked:1,compact:1,declare:1,defer:1,disabled:1,ismap:1,multiple:1,nohref:1,noresize:1,noshade:1,nowrap:1,readonly:1,selected:1};e.htmlParser.prototype={onTagOpen:function(){},onTagClose:function(){},onText:function(){},onCDATA:function(){},onComment:function(){},parse:function(e){var r=this,o,i,u=0,a;while(o=r._.htmlPartsRegex.exec(e)){var h=o.index;if(h>u){var g=e.substring(u,h);if(a)a.push(g);else r.onText(g)};u=r._.htmlPartsRegex.lastIndex;if(i=o[1]){i=i.toLowerCase();if(a&&c.$cdata[i]){r.onCDATA(a.join(''));a=null};if(!a){r.onTagClose(i);continue}};if(a){a.push(o[0]);continue};if(i=o[3]){i=i.toLowerCase();if(/="/.test(i))continue;var f={},s,l=o[4],p=!!(l&&l.charAt(l.length-1)=='/');if(l)while(s=t.exec(l)){var d=s[1].toLowerCase(),m=s[2]||s[3]||s[4]||'';if(!m&&n[d])f[d]=d;else f[d]=m};r.onTagOpen(i,f,p);if(!a&&c.$cdata[i])a=[];continue};if(i=o[2])r.onComment(i)};if(e.length>u)r.onText(e.substring(u,e.length))}}})();e.htmlParser.comment=function(e){this.value=e;this._={isBlockLike:!1}};e.htmlParser.comment.prototype={type:8,writeHtml:function(e,t){var n=this.value;if(t){if(!(n=t.onComment(n,this)))return;if(typeof n!='string'){n.parent=this.parent;n.writeHtml(e,t);return}};e.comment(n)}};(function(){var t=/[\t\r\n ]{2,}|[\t\r\n]/g;e.htmlParser.text=function(e){this.value=e;this._={isBlockLike:!1}};e.htmlParser.text.prototype={type:3,writeHtml:function(e,t){var n=this.value;if(t&&!(n=t.onText(n,this)))return;e.text(n)}}})();(function(){e.htmlParser.cdata=function(e){this.value=e};e.htmlParser.cdata.prototype={type:3,writeHtml:function(e){e.write(this.value)}}})();e.htmlParser.fragment=function(){this.children=[];this.parent=null;this._={isBlockLike:!0,hasInlineStarted:!1}};(function(){var i={colgroup:1,dd:1,dt:1,li:1,option:1,p:1,td:1,tfoot:1,th:1,thead:1,tr:1},r=t.extend({table:1,ul:1,ol:1,dl:1},c.table,c.ul,c.ol,c.dl),n=c.$list,o=c.$listItem;e.htmlParser.fragment.fromHtml=function(s,l){var f=new e.htmlParser(),C=[],b=new e.htmlParser.fragment(),d=[],y=[],u=b,p=!1,v;function k(e){var o;if(d.length>0)for(var n=0;n<d.length;n++){var t=d[n],i=t.name,a=c[i],r=u.name&&c[u.name];if((!r||r[i])&&(!e||!a||a[e]||!c[e])){if(!o){g();o=1};t=t.clone();t.parent=u;u=t;d.splice(n,1);n--}}};function g(e){while(y.length-(e||0)>0)u.add(y.shift())};function h(e,n,i){n=n||u||b;if(l&&!n.type){var r,d;if(e.attributes&&(d=e.attributes['data-cke-real-element-type']))r=d;else r=e.name;if(r&&r in c.$inline){var m=u;u=n;f.onTagOpen(l,{});n=u;if(i)u=m}};if(e._.isBlockLike&&e.name!='pre'){var o=e.children.length,a=e.children[o-1],s;if(a&&a.type==3)if(!(s=t.rtrim(a.value)))e.children.length=o-1;else a.value=s};n.add(e);if(e.returnPoint){u=e.returnPoint;delete e.returnPoint}};f.onTagOpen=function(t,a,s){var l=new e.htmlParser.element(t,a);if(l.isUnknown&&s)l.isEmpty=!0;if(c.$removeEmpty[t]){d.push(l);return}
+else if(t=='pre')p=!0;else if(t=='br'&&p){u.add(new e.htmlParser.text('\n'));return};if(t=='br'){y.push(l);return};var m=u.name,S=m&&(c[m]||(u._.isBlockLike?c.div:c.span));if(S&&!l.isUnknown&&!u.isUnknown&&!S[t]){var C=!1,w;if(t in n&&m in n){var x=u.children,b=x[x.length-1];if(!(b&&b.name in o))h(b=new e.htmlParser.element('li'),u);v=u,w=b}
+else if(t==m)h(u,u.parent);else if(t in c.$listItem){f.onTagOpen('ul',{});w=u;C=!0}
+else{if(r[m]){if(!v)v=u}
+else{h(u,u.parent,!0);if(!i[m])d.unshift(u)};C=!0};if(w)u=w;else u=u.returnPoint||u.parent;if(C){f.onTagOpen.apply(this,arguments);return}};k(t);g();l.parent=u;l.returnPoint=v;v=0;if(l.isEmpty)h(l);else u=l};f.onTagClose=function(e){for(var n=d.length-1;n>=0;n--){if(e==d[n].name){d.splice(n,1);return}};var i=[],r=[],t=u;while(t.type&&t.name!=e){if(!t._.isBlockLike)r.unshift(t);i.push(t);t=t.parent};if(t.type){for(n=0;n<i.length;n++){var a=i[n];h(a,a.parent)};u=t;if(u.name=='pre')p=!1;if(t._.isBlockLike)g();h(t,t.parent);if(t==u)u=u.parent;d=d.concat(r)};if(e=='body')l=!1};f.onText=function(n){if(!u._.hasInlineStarted&&!p){n=t.ltrim(n);if(n.length===0)return};g();k();if(l&&(!u.type||u.name=='body')&&t.trim(n))this.onTagOpen(l,{});if(!p)n=n.replace(/[\t\r\n ]{2,}|[\t\r\n]/g,' ');u.add(new e.htmlParser.text(n))};f.onCDATA=function(t){u.add(new e.htmlParser.cdata(t))};f.onComment=function(t){g();k();u.add(new e.htmlParser.comment(t))};f.parse(s);g(!a&&1);while(u.type){var m=u.parent,w=u;if(l&&(!m.type||m.name=='body')&&!c.$body[w.name]){u=m;f.onTagOpen(l,{});m=u};m.add(w);u=m};return b};e.htmlParser.fragment.prototype={add:function(e){var n=this,a=n.children.length,i=a>0&&n.children[a-1]||null;if(i){if(e._.isBlockLike&&i.type==3){i.value=t.rtrim(i.value);if(i.value.length===0){n.children.pop();n.add(e);return}};i.next=e};e.previous=i;e.parent=n;n.children.push(e);n._.hasInlineStarted=e.type==3||e.type==1&&!e._.isBlockLike},writeHtml:function(t,n){var i;this.filterChildren=function(){var t=new e.htmlParser.basicWriter();this.writeChildrenHtml.call(this,t,n,!0);var a=t.getHtml();this.children=new e.htmlParser.fragment.fromHtml(a).children;i=1};!this.name&&n&&n.onFragment(this);this.writeChildrenHtml(t,i?null:n)},writeChildrenHtml:function(e,t){for(var n=0;n<this.children.length;n++)this.children[n].writeHtml(e,t)}}})();e.htmlParser.element=function(e,t){var a=this;a.name=e;a.attributes=t||(t={});a.children=[];var n=t['data-cke-real-element-type']||e,s=n.match(/^cke:(.*)/);s&&(n=s[1]);var i=c,r=!!(i.$nonBodyContent[n]||i.$block[n]||i.$listItem[n]||i.$tableContent[n]||i.$nonEditable[n]||n=='br'),o=!!i.$empty[e];a.isEmpty=o;a.isUnknown=!i[e];a._={isBlockLike:r,hasInlineStarted:o||!r}};(function(){var t=function(e,t){e=e[0];t=t[0];return e<t?-1:e>t?1:0};e.htmlParser.element.prototype={type:1,add:e.htmlParser.fragment.prototype.add,clone:function(){return new e.htmlParser.element(this.name,this.attributes)},writeHtml:function(n,i){var s=this.attributes,a=this,r=a.name,o,l,u,f;a.filterChildren=function(){if(!f){var t=new e.htmlParser.basicWriter();e.htmlParser.fragment.prototype.writeChildrenHtml.call(a,t,i);a.children=new e.htmlParser.fragment.fromHtml(t.getHtml()).children;f=1}};if(i){for(;;){if(!(r=i.onElementName(r)))return;a.name=r;if(!(a=i.onElement(a)))return;a.parent=this.parent;if(a.name==r)break;if(a.type!=1){a.writeHtml(n,i);return};r=a.name;if(!r){this.writeChildrenHtml.call(a,n,f?null:i);return}};s=a.attributes};n.openTag(r,s);var d=[];for(var c=0;c<2;c++)for(o in s){l=o;u=s[o];if(c==1)d.push([o,u]);else if(i){for(;;){if(!(l=i.onAttributeName(o))){delete s[o];break}
+else if(l!=o){delete s[o];o=l;continue}
+else break};if(l)if((u=i.onAttribute(a,l,u))===!1)delete s[l];else s[l]=u}};if(n.sortAttributes)d.sort(t);var g=d.length;for(c=0;c<g;c++){var m=d[c];n.attribute(m[0],m[1])};n.openTagClose(r,a.isEmpty);if(!a.isEmpty){this.writeChildrenHtml.call(a,n,f?null:i);n.closeTag(r)}},writeChildrenHtml:function(t,n){e.htmlParser.fragment.prototype.writeChildrenHtml.apply(this,arguments)}}})();(function(){e.htmlParser.filter=t.createClass({$:function(e){this._={elementNames:[],attributeNames:[],elements:{$length:0},attributes:{$length:0}};if(e)this.addRules(e,10)},proto:{addRules:function(e,t){var a=this;if(typeof t!='number')t=10;i(a._.elementNames,e.elementNames,t);i(a._.attributeNames,e.attributeNames,t);r(a._.elements,e.elements,t);r(a._.attributes,e.attributes,t);a._.text=n(a._.text,e.text,t)||a._.text;a._.comment=n(a._.comment,e.comment,t)||a._.comment;a._.root=n(a._.root,e.root,t)||a._.root},onElementName:function(e){return a(e,this._.elementNames)},onAttributeName:function(e){return a(e,this._.attributeNames)},onText:function(e){var t=this._.text;return t?t.filter(e):e},onComment:function(e,t){var n=this._.comment;return n?n.filter(e,t):e},onFragment:function(e){var t=this._.root;return t?t.filter(e):e},onElement:function(e){var t=this,r=[t._.elements['^'],t._.elements[e.name],t._.elements.$],a,n;for(var i=0;i<3;i++){a=r[i];if(a){n=a.filter(e,t);if(n===!1)return null;if(n&&n!=e)return t.onNode(n);if(e.parent&&!e.name)break}};return e},onNode:function(t){var n=t.type;return n==1?this.onElement(t):n==3?new e.htmlParser.text(this.onText(t.value)):n==8?new e.htmlParser.comment(this.onComment(t.value)):null},onAttribute:function(e,t,n){var a=this._.attributes[t];if(a){var i=a.filter(n,e,this);if(i===!1)return!1;if(typeof i!='undefined')return i};return n}}});function a(e,t){for(var n=0;e&&n<t.length;n++){var i=t[n];e=e.replace(i[0],i[1])};return e};function i(e,t,n){if(typeof t=='function')t=[t];var i,a,s=e.length,o=t&&t.length;if(o){for(i=0;i<s&&e[i].pri<n;i++){};for(a=o-1;a>=0;a--){var r=t[a];if(r){r.pri=n;e.splice(i,0,r)}}}};function r(e,t,i){if(t)for(var a in t){var r=e[a];e[a]=n(r,t[a],i);if(!r)e.$length++}};function n(e,t,n){if(t){t.pri=n;if(e){if(!e.splice){if(e.pri>n)e=[t,e];else e=[e,t];e.filter=o}
+else i(e,t,n);return e}
+else{t.filter=t;return t}}};function o(t){var a=t.type||t instanceof e.htmlParser.fragment;for(var i=0;i<this.length;i++){if(a)var o=t.type,s=t.name;var r=this[i],n=r.apply(window,arguments);if(n===!1)return n;if(a){if(n&&(n.name!=s||n.type!=o))return n}
+else if(typeof n!='string')return n;n!=undefined&&(t=n)};return t}})();e.htmlParser.basicWriter=t.createClass({$:function(){this._={output:[]}},proto:{openTag:function(e,t){this._.output.push('<',e)},openTagClose:function(e,t){if(t)this._.output.push(' />');else this._.output.push('>')},attribute:function(e,n){if(typeof n=='string')n=t.htmlEncodeAttr(n);this._.output.push(' ',e,'="',n,'"')},closeTag:function(e){this._.output.push('</',e,'>')},text:function(e){this._.output.push(e)},comment:function(e){this._.output.push('<!--',e,'-->')},write:function(e){this._.output.push(e)},reset:function(){this._.output=[];this._.indent=!1},getHtml:function(e){var t=this._.output.join('');if(e)this.reset();return t}}});delete e.loadFullCore;e.instances={};e.document=new d(document);e.add=function(t){e.instances[t.name]=t;t.on('focus',function(){if(e.currentInstance!=t){e.currentInstance=t;e.fire('currentInstance')}});t.on('blur',function(){if(e.currentInstance==t){e.currentInstance=null;e.fire('currentInstance')}})};e.remove=function(t){delete e.instances[t.name]};e.on('instanceDestroyed',function(){if(t.isEmpty(this.instances))e.fire('reset')});e.TRISTATE_ON=1;e.TRISTATE_OFF=2;e.TRISTATE_DISABLED=0;i.comment=t.createClass({base:i.node,$:function(e,t){if(typeof e=='string')e=(t?t.$:document).createComment(e);this.base(e)},proto:{type:8,getOuterHtml:function(){return'<!--'+this.$.nodeValue+'-->'}}});(function(){var e={address:1,blockquote:1,dl:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,p:1,pre:1,li:1,dt:1,dd:1,legend:1},t={body:1,div:1,table:1,tbody:1,tr:1,td:1,th:1,caption:1,form:1,fieldset:1},n=function(e){var i=e.getChildren();for(var t=0,a=i.count();t<a;t++){var n=i.getItem(t);if(n.type==1&&c.$block[n.getName()])return!0};return!1};i.elementPath=function(i){var s=this,l=null,c=null,u=[],r=i;while(r){if(r.type==1){if(!s.lastElement)s.lastElement=r;var o=r.getName();if(a&&r.$.scopeName!='HTML')o=r.$.scopeName.toLowerCase()+':'+o;if(!c){if(!l&&e[o])l=r;if(t[o])if(!l&&o=='div'&&!n(r))l=r;else c=r};u.push(r);if(o=='body')break};r=r.getParent()};s.block=l;s.blockLimit=c;s.elements=u}})();i.elementPath.prototype={compare:function(e){var n=this.elements,i=e&&e.elements;if(!i||n.length!=i.length)return!1;for(var t=0;t<n.length;t++){if(!n[t].equals(i[t]))return!1};return!0},contains:function(e){var n=this.elements;for(var t=0;t<n.length;t++){if(n[t].getName()in e)return n[t]};return null}};i.text=function(e,t){if(typeof e=='string')e=(t?t.$:document).createTextNode(e);this.$=e};i.text.prototype=new i.node();t.extend(i.text.prototype,{type:3,getLength:function(){return this.$.nodeValue.length},getText:function(){return this.$.nodeValue},split:function(e){var t=this;if(a&&e==t.getLength()){var l=t.getDocument().createText('');l.insertAfter(t);return l};var o=t.getDocument(),s=new i.text(t.$.splitText(e),o);if(n.ie8){var r=new i.text('',o);r.insertAfter(s);r.remove()};return s},substring:function(e,t){if(typeof t!='number')return this.$.nodeValue.substr(e);else return this.$.nodeValue.substring(e,t)}});i.documentFragment=function(t){t=t||e.document;this.$=t.$.createDocumentFragment()};t.extend(i.documentFragment.prototype,s.prototype,{type:11,insertAfterNode:function(e){e=e.$;e.parentNode.insertBefore(this.$,e.nextSibling)}},!0,{append:1,appendBogus:1,getFirst:1,getLast:1,appendTo:1,moveChildren:1,insertBefore:1,insertAfterNode:1,replace:1,trim:1,type:1,ltrim:1,rtrim:1,getDocument:1,getChildCount:1,getChild:1,getChildren:1});(function(){function e(e,t){if(this._.end)return null;var n,i=this.range,a,d=this.guard,r=this.type,f=e?'getPreviousSourceNode':'getNextSourceNode';if(!this._.start){this._.start=1;i.trim();if(i.collapsed){this.end();return null}};if(!e&&!this._.guardLTR){var c=i.endContainer,u=c.getChild(i.endOffset);this._.guardLTR=function(e,t){return(!t||!c.equals(e))&&(!u||!e.equals(u))&&(e.type!=1||!t||e.getName()!='body')}};if(e&&!this._.guardRTL){var s=i.startContainer,l=i.startOffset>0&&s.getChild(i.startOffset-1);this._.guardRTL=function(e,t){return(!t||!s.equals(e))&&(!l||!e.equals(l))&&(e.type!=1||!t||e.getName()!='body')}};var o=e?this._.guardRTL:this._.guardLTR;if(d)a=function(e,t){if(o(e,t)===!1)return!1;return d(e,t)};else a=o;if(this.current)n=this.current[f](!1,r,a);else if(e){n=i.endContainer;if(i.endOffset>0){n=n.getChild(i.endOffset-1);if(a(n)===!1)n=null}
+else n=a(n,!0)===!1?null:n.getPreviousSourceNode(!0,r,a)}
+else{n=i.startContainer;n=n.getChild(i.startOffset);if(n){if(a(n)===!1)n=null}
+else n=a(i.startContainer,!0)===!1?null:i.startContainer.getNextSourceNode(!0,r,a)}
+while(n&&!this._.end){this.current=n;if(!this.evaluator||this.evaluator(n)!==!1){if(!t)return n}
+else if(t&&this.evaluator)return!1;n=n[f](!1,r,a)};this.end();return this.current=null};function n(t){var n,i=null;while(n=e.call(this,t))i=n;return i};i.walker=t.createClass({$:function(e){this.range=e;this._={}},proto:{end:function(){this._.end=1},next:function(){return e.call(this)},previous:function(){return e.call(this,1)},checkForward:function(){return e.call(this,0,1)!==!1},checkBackward:function(){return e.call(this,1,1)!==!1},lastForward:function(){return n.call(this)},lastBackward:function(){return n.call(this,1)},reset:function(){delete this.current;this._={}}}});var d={block:1,'list-item':1,table:1,'table-row-group':1,'table-header-group':1,'table-footer-group':1,'table-row':1,'table-column-group':1,'table-column':1,'table-cell':1,'table-caption':1};s.prototype.isBlockBoundary=function(e){var n=t.extend({},c.$block,e||{});return this.getComputedStyle('float')=='none'&&d[this.getComputedStyle('display')]||n[this.getName()]};i.walker.blockBoundary=function(e){return function(t,n){return!(t.type==1&&t.isBlockBoundary(e))}};i.walker.listItemBoundary=function(){return this.blockBoundary({br:1})};i.walker.bookmark=function(e,t){function n(e){return e&&e.getName&&e.getName()=='span'&&e.data('cke-bookmark')};return function(i){var a,r;a=i&&!i.getName&&(r=i.getParent())&&n(r);a=e?a:a||n(i);return!!(t^a)}};i.walker.whitespaces=function(e){return function(n){var i=n&&n.type==3&&!t.trim(n.getText());return!!(e^i)}};i.walker.invisible=function(e){var t=i.walker.whitespaces();return function(n){var i=t(n)||n.is&&!n.$.offsetHeight;return!!(e^i)}};i.walker.nodeType=function(e,t){return function(n){return!!(t^n.type==e)}};var r=/^[\t\r\n ]*(?: |\xa0)$/,o=i.walker.whitespaces(),l=i.walker.bookmark(),u=function(e){return l(e)||o(e)||e.type==1&&e.getName()in c.$inline&&!(e.getName()in c.$empty)};s.prototype.getBogus=function(){var e=this;do e=e.getPreviousSourceNode();while(u(e));if(e&&(!a?e.is&&e.is('br'):e.getText&&r.test(e.getText())))return e;return!1}})();i.range=function(e){var t=this;t.startContainer=null;t.startOffset=null;t.endContainer=null;t.endOffset=null;t.collapsed=!0;t.document=e};(function(){var e=function(e){e.collapsed=e.startContainer&&e.endContainer&&e.startContainer.equals(e.endContainer)&&e.startOffset==e.endOffset},n=function(e,t,n,i){e.optimizeBookmark();var r=e.startContainer,o=e.endContainer,w=e.startOffset,x=e.endOffset,C,N;if(o.type==3)o=o.split(x);else if(o.getChildCount()>0)if(x>=o.getChildCount()){o=o.append(e.document.createText(''));N=!0}
+else o=o.getChild(x);if(r.type==3){r.split(w);if(r.equals(o))o=r.getNext()}
+else if(!w){r=r.getFirst().insertBeforeMe(e.document.createText(''));C=!0}
+else if(w>=r.getChildCount()){r=r.append(e.document.createText(''));C=!0}
+else r=r.getChild(w).getPrevious();var u=r.getParents(),k=o.getParents(),d,f,m;for(d=0;d<u.length;d++){f=u[d];m=k[d];if(!f.equals(m))break};var l=n,c,b,a,y;for(var v=d;v<u.length;v++){c=u[v];if(l&&!c.equals(r))b=l.append(c.clone());a=c.getNext();while(a){if(a.equals(k[v])||a.equals(o))break;y=a.getNext();if(t==2)l.append(a.clone(!0));else{a.remove();if(t==1)l.append(a)};a=y};if(l)l=b};l=n;for(var h=d;h<k.length;h++){c=k[h];if(t>0&&!c.equals(o))b=l.append(c.clone());if(!u[h]||c.$.parentNode!=u[h].$.parentNode){a=c.getPrevious();while(a){if(a.equals(u[h])||a.equals(r))break;y=a.getPrevious();if(t==2)l.$.insertBefore(a.$.cloneNode(!0),l.$.firstChild);else{a.remove();if(t==1)l.$.insertBefore(a.$,l.$.firstChild)};a=y}};if(l)l=b};if(t==2){var p=e.startContainer;if(p.type==3){p.$.data+=p.$.nextSibling.data;p.$.parentNode.removeChild(p.$.nextSibling)};var g=e.endContainer;if(g.type==3&&g.$.nextSibling){g.$.data+=g.$.nextSibling.data;g.$.parentNode.removeChild(g.$.nextSibling)}}
+else{if(f&&m&&(r.$.parentNode!=f.$.parentNode||o.$.parentNode!=m.$.parentNode)){var E=m.getIndex();if(C&&m.$.parentNode==r.$.parentNode)E--;if(i&&f.type==1){var S=s.createFromHtml('<span data-cke-bookmark="1" style="display:none"> </span>',e.document);S.insertAfter(f);f.mergeSiblings(!1);e.moveToBookmark({startNode:S})}
+else e.setStart(m.getParent(),E)};e.collapse(!0)};if(C)r.remove();if(N&&o.$.parentNode)o.remove()},d={abbr:1,acronym:1,b:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,q:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,tt:1,u:1,'var':1};function r(e){var n=!1,r=i.walker.bookmark(!0);return function(i){if(r(i))return!0;if(i.type==3){if(t.trim(i.getText()).length)return!1}
+else if(i.type==1)if(!d[i.getName()])if(!e&&!a&&i.getName()=='br'&&!n)n=!0;else return!1;return!0}};function f(e){return e.type!=3&&e.getName()in c.$removeEmpty||!t.trim(e.getText())||!!e.getParent().data('cke-bookmark')};var l=new i.walker.whitespaces(),u=new i.walker.bookmark();function o(e){return!l(e)&&!u(e)};i.range.prototype={clone:function(){var e=this,t=new i.range(e.document);t.startContainer=e.startContainer;t.startOffset=e.startOffset;t.endContainer=e.endContainer;t.endOffset=e.endOffset;t.collapsed=e.collapsed;return t},collapse:function(e){var t=this;if(e){t.endContainer=t.startContainer;t.endOffset=t.startOffset}
+else{t.startContainer=t.endContainer;t.startOffset=t.endOffset};t.collapsed=!0},cloneContents:function(){var e=new i.documentFragment(this.document);if(!this.collapsed)n(this,2,e);return e},deleteContents:function(e){if(this.collapsed)return;n(this,0,null,e)},extractContents:function(e){var t=new i.documentFragment(this.document);if(!this.collapsed)n(this,1,t,e);return t},createBookmark:function(e){var i=this,n,a,o,r,s=i.collapsed;n=i.document.createElement('span');n.data('cke-bookmark',1);n.setStyle('display','none');n.setHtml(' ');if(e){o='cke_bm_'+t.getNextNumber();n.setAttribute('id',o+'S')};if(!s){a=n.clone();a.setHtml(' ');if(e)a.setAttribute('id',o+'E');r=i.clone();r.collapse();r.insertNode(a)};r=i.clone();r.collapse(!0);r.insertNode(n);if(a){i.setStartAfter(n);i.setEndBefore(a)}
+else i.moveToPosition(n,4);return{startNode:e?o+'S':n,endNode:e?o+'E':a,serializable:e,collapsed:s}},createBookmark2:function(e){var r=this,n=r.startContainer,i=r.endContainer,o=r.startOffset,s=r.endOffset,l=r.collapsed,t,a;if(!n||!i)return{start:0,end:0};if(e){if(n.type==1){t=n.getChild(o);if(t&&t.type==3&&o>0&&t.getPrevious().type==3){n=t;o=0}}
+while(n.type==3&&(a=n.getPrevious())&&a.type==3){n=a;o+=a.getLength()};if(!l){if(i.type==1){t=i.getChild(s);if(t&&t.type==3&&s>0&&t.getPrevious().type==3){i=t;s=0}}
+while(i.type==3&&(a=i.getPrevious())&&a.type==3){i=a;s+=a.getLength()}}};return{start:n.getAddress(e),end:l?null:i.getAddress(e),startOffset:o,endOffset:s,normalized:e,collapsed:l,is2:!0}},moveToBookmark:function(e){var t=this;if(e.is2){var o=t.document.getByAddress(e.start,e.normalized),s=e.startOffset,r=e.end&&t.document.getByAddress(e.end,e.normalized),l=e.endOffset;t.setStart(o,s);if(r)t.setEnd(r,l);else t.collapse(!0)}
+else{var i=e.serializable,a=i?t.document.getById(e.startNode):e.startNode,n=i?t.document.getById(e.endNode):e.endNode;t.setStartBefore(a);a.remove();if(n){t.setEndBefore(n);n.remove()}
+else t.collapse(!0)}},getBoundaryNodes:function(){var a=this,e=a.startContainer,t=a.endContainer,r=a.startOffset,o=a.endOffset,n;if(e.type==1){n=e.getChildCount();if(n>r)e=e.getChild(r);else if(n<1)e=e.getPreviousSourceNode();else{e=e.$;while(e.lastChild)e=e.lastChild;e=new i.node(e);e=e.getNextSourceNode()||e}};if(t.type==1){n=t.getChildCount();if(n>o)t=t.getChild(o).getPreviousSourceNode(!0);else if(n<1)t=t.getPreviousSourceNode();else{t=t.$;while(t.lastChild)t=t.lastChild;t=new i.node(t)}};if(e.getPosition(t)&2)e=t;return{startNode:e,endNode:t}},getCommonAncestor:function(e,t){var i=this,a=i.startContainer,r=i.endContainer,n;if(a.equals(r)){if(e&&a.type==1&&i.startOffset==i.endOffset-1)n=a.getChild(i.startOffset);else n=a}
+else n=a.getCommonAncestor(r);return t&&!n.is?n.getParent():n},optimize:function(){var t=this,e=t.startContainer,n=t.startOffset;if(e.type!=1)if(!n)t.setStartBefore(e);else if(n>=e.getLength())t.setStartAfter(e);e=t.endContainer;n=t.endOffset;if(e.type!=1)if(!n)t.setEndBefore(e);else if(n>=e.getLength())t.setEndAfter(e)},optimizeBookmark:function(){var t=this,n=t.startContainer,e=t.endContainer;if(n.is&&n.is('span')&&n.data('cke-bookmark'))t.setStartAt(n,3);if(e&&e.is&&e.is('span')&&e.data('cke-bookmark'))t.setEndAt(e,4)},trim:function(e,t){var n=this,i=n.startContainer,o=n.startOffset,s=n.collapsed;if((!e||s)&&i&&i.type==3){if(!o){o=i.getIndex();i=i.getParent()}
+else if(o>=i.getLength()){o=i.getIndex()+1;i=i.getParent()}
+else{var l=i.split(o);o=i.getIndex()+1;i=i.getParent();if(n.startContainer.equals(n.endContainer))n.setEnd(l,n.endOffset-n.startOffset);else if(i.equals(n.endContainer))n.endOffset+=1};n.setStart(i,o);if(s){n.collapse(!0);return}};var a=n.endContainer,r=n.endOffset;if(!(t||s)&&a&&a.type==3){if(!r){r=a.getIndex();a=a.getParent()}
+else if(r>=a.getLength()){r=a.getIndex()+1;a=a.getParent()}
+else{a.split(r);r=a.getIndex()+1;a=a.getParent()};n.setEnd(a,r)}},enlarge:function(e,n){switch(e){case 1:if(this.collapsed)return;var b=this.getCommonAncestor(),g=this.document.getBody(),y,k,r,a,d,s=!1,f,l,o=this.startContainer,h=this.startOffset;if(o.type==3){if(h){o=!t.trim(o.substring(0,h)).length&&o;s=!!o};if(o)if(!(a=o.getPrevious()))r=o.getParent()}
+else{if(h)a=o.getChild(h-1)||o.getLast();if(!a)r=o}
+while(r||a){if(r&&!a){if(!d&&r.equals(b))d=!0;if(!g.contains(r))break;if(!s||r.getComputedStyle('display')!='inline'){s=!1;if(d)y=r;else this.setStartBefore(r)};a=r.getPrevious()}
+while(a){f=!1;if(a.type==3){l=a.getText();if(/[^\s\ufeff]/.test(l))a=null;f=/[\s\ufeff]$/.test(l)}
+else if((a.$.offsetWidth>0||n&&a.is('br'))&&!a.data('cke-bookmark'))if(s&&c.$removeEmpty[a.getName()]){l=a.getText();if(/[^\s\ufeff]/.test(l))a=null;else{var E=a.$.all||a.$.getElementsByTagName('*');for(var S=0,w;w=E[S++];){if(!c.$removeEmpty[w.nodeName.toLowerCase()]){a=null;break}}};if(a)f=!!l.length}
+else a=null;if(f)if(s){if(d)y=r;else if(r)this.setStartBefore(r)}
+else s=!0;if(a){var v=a.getPrevious();if(!r&&!v){r=a;a=null;break};a=v}
+else r=null};if(r)r=r.getParent()};o=this.endContainer;h=this.endOffset;r=a=null;d=s=!1;if(o.type==3){o=!t.trim(o.substring(h)).length&&o;s=!(o&&o.getLength());if(o)if(!(a=o.getNext()))r=o.getParent()}
+else{a=o.getChild(h);if(!a)r=o}
+while(r||a){if(r&&!a){if(!d&&r.equals(b))d=!0;if(!g.contains(r))break;if(!s||r.getComputedStyle('display')!='inline'){s=!1;if(d)k=r;else if(r)this.setEndAfter(r)};a=r.getNext()}
+while(a){f=!1;if(a.type==3){l=a.getText();if(/[^\s\ufeff]/.test(l))a=null;f=/^[\s\ufeff]/.test(l)}
+else if((a.$.offsetWidth>0||n&&a.is('br'))&&!a.data('cke-bookmark'))if(s&&c.$removeEmpty[a.getName()]){l=a.getText();if(/[^\s\ufeff]/.test(l))a=null;else{E=a.$.all||a.$.getElementsByTagName('*');for(S=0;w=E[S++];){if(!c.$removeEmpty[w.nodeName.toLowerCase()]){a=null;break}}};if(a)f=!!l.length}
+else a=null;if(f)if(s)if(d)k=r;else this.setEndAfter(r);if(a){v=a.getNext();if(!r&&!v){r=a;a=null;break};a=v}
+else r=null};if(r)r=r.getParent()};if(y&&k){b=y.contains(k)?k:y;this.setStartBefore(b);this.setEndAfter(b)};break;case 2:case 3:var m=new i.range(this.document);g=this.document.getBody();m.setStartAt(g,1);m.setEnd(this.startContainer,this.startOffset);var p=new i.walker(m),u,C,N=i.walker.blockBoundary(e==3?{br:1}:null),x=function(e){var t=N(e);if(!t)u=e;return t},T=function(e){var t=x(e);if(!t&&e.is&&e.is('br'))C=e;return t};p.guard=x;r=p.lastBackward();u=u||g;this.setStartAt(u,!u.is('br')&&(!r&&this.checkStartOfBlock()||r&&u.contains(r))?1:4);m=this.clone();m.collapse();m.setEndAt(g,2);p=new i.walker(m);p.guard=e==3?T:x;u=null;r=p.lastForward();u=u||g;this.setEndAt(u,!r&&this.checkEndOfBlock()||r&&u.contains(r)?2:3);if(C)this.setEndAfter(C)}},shrink:function(e,t){if(!this.collapsed){e=e||2;var n=this.clone(),a=this.startContainer,r=this.endContainer,f=this.startOffset,m=this.endOffset,h=this.collapsed,s=1,l=1;if(a&&a.type==3)if(!f)n.setStartBefore(a);else if(f>=a.getLength())n.setStartAfter(a);else{n.setStartBefore(a);s=0};if(r&&r.type==3)if(!m)n.setEndBefore(r);else if(m>=r.getLength())n.setEndAfter(r);else{n.setEndAfter(r);l=0};var o=new i.walker(n),g=i.walker.bookmark();o.evaluator=function(t){return t.type==(e==1?1:3)};var d;o.guard=function(t,n){if(g(t))return!0;if(e==1&&t.type==3)return!1;if(n&&t.equals(d))return!1;if(!n&&t.type==1)d=t;return!0};if(s){var u=o[e==1?'lastForward':'next']();u&&this.setStartAt(u,t?1:3)};if(l){o.reset();var c=o[e==1?'lastBackward':'previous']();c&&this.setEndAt(c,t?2:4)};return!!(s||l)}},insertNode:function(e){var t=this;t.optimizeBookmark();t.trim(!1,!0);var n=t.startContainer,a=t.startOffset,i=n.getChild(a);if(i)e.insertBefore(i);else n.append(e);if(e.getParent().equals(t.endContainer))t.endOffset++;t.setStartBefore(e)},moveToPosition:function(e,t){this.setStartAt(e,t);this.collapse(!0)},selectNodeContents:function(e){this.setStart(e,0);this.setEnd(e,e.type==3?e.getLength():e.getChildCount())},setStart:function(t,n){var i=this;if(t.type==1&&c.$empty[t.getName()])n=t.getIndex(),t=t.getParent();i.startContainer=t;i.startOffset=n;if(!i.endContainer){i.endContainer=t;i.endOffset=n};e(i)},setEnd:function(t,n){var i=this;if(t.type==1&&c.$empty[t.getName()])n=t.getIndex()+1,t=t.getParent();i.endContainer=t;i.endOffset=n;if(!i.startContainer){i.startContainer=t;i.startOffset=n};e(i)},setStartAfter:function(e){this.setStart(e.getParent(),e.getIndex()+1)},setStartBefore:function(e){this.setStart(e.getParent(),e.getIndex())},setEndAfter:function(e){this.setEnd(e.getParent(),e.getIndex()+1)},setEndBefore:function(e){this.setEnd(e.getParent(),e.getIndex())},setStartAt:function(t,n){var i=this;switch(n){case 1:i.setStart(t,0);break;case 2:if(t.type==3)i.setStart(t,t.getLength());else i.setStart(t,t.getChildCount());break;case 3:i.setStartBefore(t);break;case 4:i.setStartAfter(t)};e(i)},setEndAt:function(t,n){var i=this;switch(n){case 1:i.setEnd(t,0);break;case 2:if(t.type==3)i.setEnd(t,t.getLength());else i.setEnd(t,t.getChildCount());break;case 3:i.setEndBefore(t);break;case 4:i.setEndAfter(t)};e(i)},fixBlock:function(e,t){var n=this,r=n.createBookmark(),i=n.document.createElement(t);n.collapse(e);n.enlarge(2);n.extractContents().appendTo(i);i.trim();if(!a)i.appendBogus();n.insertNode(i);n.moveToBookmark(r);return i},splitBlock:function(e){var t=this,c=new i.elementPath(t.startContainer),u=new i.elementPath(t.endContainer),d=c.blockLimit,f=u.blockLimit,n=c.block,r=u.block,o=null;if(!d.equals(f))return null;if(e!='br'){if(!n){n=t.fixBlock(!0,e);r=new i.elementPath(t.endContainer).block};if(!r)r=t.fixBlock(!1,e)};var s=n&&t.checkStartOfBlock(),l=r&&t.checkEndOfBlock();t.deleteContents();if(n&&n.equals(r))if(l){o=new i.elementPath(t.startContainer);t.moveToPosition(r,4);r=null}
+else if(s){o=new i.elementPath(t.startContainer);t.moveToPosition(n,3);n=null}
+else{r=t.splitElement(n);if(!a&&!n.is('ul','ol'))n.appendBogus()};return{previousBlock:n,nextBlock:r,wasStartOfBlock:s,wasEndOfBlock:l,elementPath:o}},splitElement:function(e){var t=this;if(!t.collapsed)return null;t.setEndAt(e,2);var i=t.extractContents(),n=e.clone(!1);i.appendTo(n);n.insertAfter(e);t.moveToPosition(e,4);return n},checkBoundaryOfElement:function(e,t){var n=t==1,a=this.clone();a.collapse(n);a[n?'setStartAt':'setEndAt'](e,n?1:2);var r=new i.walker(a);r.evaluator=f;return r[n?'checkBackward':'checkForward']()},checkStartOfBlock:function(){var e=this,s=e.startContainer,l=e.startOffset;if(l&&s.type==3){var c=t.ltrim(s.substring(0,l));if(c.length)return!1};e.trim();var o=new i.elementPath(e.startContainer),n=e.clone();n.collapse(!0);n.setStartAt(o.block||o.blockLimit,1);var a=new i.walker(n);a.evaluator=r(!0);return a.checkBackward()},checkEndOfBlock:function(){var e=this,s=e.endContainer,c=e.endOffset;if(s.type==3){var l=t.rtrim(s.substring(c));if(l.length)return!1};e.trim();var o=new i.elementPath(e.endContainer),n=e.clone();n.collapse(!1);n.setEndAt(o.block||o.blockLimit,2);var a=new i.walker(n);a.evaluator=r(!1);return a.checkForward()},checkReadOnly:(function(){function e(e,t){while(e){if(e.type==1)if(e.getAttribute('contentEditable')=='false'&&!e.data('cke-editable'))return 0;else if(e.is('body')||e.getAttribute('contentEditable')=='true'&&(e.contains(t)||e.equals(t)))break;e=e.getParent()};return 1};return function(){var t=this.startContainer,n=this.endContainer;return!(e(t,n)&&e(n,t))}})(),moveToElementEditablePosition:function(e,t){var n;if(c.$empty[e.getName()])return!1;while(e&&e.type==1){n=e.isEditable();if(n)this.moveToPosition(e,t?2:1);else if(c.$inline[e.getName()]){this.moveToPosition(e,t?4:3);return!0};if(c.$empty[e.getName()])e=e[t?'getPrevious':'getNext'](o);else e=e[t?'getLast':'getFirst'](o);if(e&&e.type==3){this.moveToPosition(e,t?4:3);return!0}};return n},moveToElementEditStart:function(e){return this.moveToElementEditablePosition(e)},moveToElementEditEnd:function(e){return this.moveToElementEditablePosition(e,!0)},getEnclosedNode:function(){var e=this.clone();e.optimize();if(e.startContainer.type!=1||e.endContainer.type!=1)return null;var n=new i.walker(e),a=i.walker.bookmark(!0),r=i.walker.whitespaces(!0),o=function(e){return r(e)&&a(e)};e.evaluator=o;var t=n.next();n.reset();return t&&t.equals(n.previous())?t:null},getTouchedStartNode:function(){var e=this.startContainer;if(this.collapsed||e.type!=1)return e;return e.getChild(this.startOffset)||e},getTouchedEndNode:function(){var e=this.endContainer;if(this.collapsed||e.type!=1)return e;return e.getChild(this.endOffset-1)||e}}})();e.POSITION_AFTER_START=1;e.POSITION_BEFORE_END=2;e.POSITION_BEFORE_START=3;e.POSITION_AFTER_END=4;e.ENLARGE_ELEMENT=1;e.ENLARGE_BLOCK_CONTENTS=2;e.ENLARGE_LIST_ITEM_CONTENTS=3;e.START=1;e.END=2;e.STARTEND=3;e.SHRINK_ELEMENT=1;e.SHRINK_TEXT=2;(function(){i.rangeList=function(e){if(e instanceof i.rangeList)return e;if(!e)e=[];else if(e instanceof i.range)e=[e];return t.extend(e,n)};var n={createIterator:function(){var t=this,a=i.walker.bookmark(),r=function(e){return!(e.is&&e.is('tr'))},n=[],e;return{getNextRange:function(i){e=e==undefined?0:e+1;var s=t[e];if(s&&t.length>1){if(!e)for(var l=t.length-1;l>=0;l--)n.unshift(t[l].createBookmark(!0));if(i){var o=0;while(t[e+o+1]){var c=s.document,u=0,d=c.getById(n[o].endNode),f=c.getById(n[o+1].startNode),r;while(1){r=d.getNextSourceNode(!1);if(!f.equals(r)){if(a(r)||r.type==1&&r.isBlockBoundary()){d=r;continue}}
+else u=1;break};if(!u)break;o++}};s.moveToBookmark(n.shift());while(o--){r=t[++e];r.moveToBookmark(n.shift());s.setEnd(r.endContainer,r.endOffset)}};return s}}},createBookmarks:function(t){var n=this,o=[],r;for(var a=0;a<n.length;a++){o.push(r=n[a].createBookmark(t,!0));for(var i=a+1;i<n.length;i++){n[i]=e(r,n[i]);n[i]=e(r,n[i],!0)}};return o},createBookmarks2:function(e){var n=[];for(var t=0;t<this.length;t++)n.push(this[t].createBookmark2(e));return n},moveToBookmarks:function(e){for(var t=0;t<this.length;t++)this[t].moveToBookmark(e[t])}};function e(e,t,n){var r=e.serializable,i=t[n?'endContainer':'startContainer'],o=n?'endOffset':'startOffset',s=r?t.document.getById(e.startNode):e.startNode,a=r?t.document.getById(e.endNode):e.endNode;if(i.equals(s.getPrevious())){t.startOffset=t.startOffset-i.getLength()-a.getPrevious().getLength();i=a.getNext()}
+else if(i.equals(a.getPrevious())){t.startOffset=t.startOffset-i.getLength();i=a.getNext()};i.equals(s.getParent())&&t[o]++;i.equals(a.getParent())&&t[o]++;t[n?'endContainer':'startContainer']=i;return t}})();(function(){if(n.webkit){n.hc=!1;return};var r=a&&n.version<7,o=a&&n.version==7,l=r?e.basePath+'images/spacer.gif':o?'about:blank':'data:image/png;base64,',i=s.createFromHtml('<div style="width:0px;height:0px;position:absolute;left:-10000px;background-image:url('+l+')"></div>',e.document);i.appendTo(e.document.getHead());try{n.hc=i.getComputedStyle('background-image')=='none'}catch(t){n.hc=!1};if(n.hc)n.cssClass+=' cke_hc';i.remove()})();r.load(l.corePlugins.split(','),function(){e.status='loaded';e.fire('loaded');var n=e._.pending;if(n){delete e._.pending;for(var t=0;t<n.length;t++)e.add(n[t])}});if(a)try{document.execCommand('BackgroundImageCache',!1,!0)}catch(u){};e.skins.add('kama',(function(){var i='cke_ui_color';return{editor:{css:['editor.css']},dialog:{css:['dialog.css']},templates:{css:['templates.css']},margins:[0,0,0,0],init:function(r){if(r.config.width&&!isNaN(r.config.width))r.config.width-=12;var u=[],f=/\$color/g,o='/* UI Color Support */.cke_skin_kama .cke_menuitem .cke_icon_wrapper{\tbackground-color: $color !important;\tborder-color: $color !important;}.cke_skin_kama .cke_menuitem a:hover .cke_icon_wrapper,.cke_skin_kama .cke_menuitem a:focus .cke_icon_wrapper,.cke_skin_kama .cke_menuitem a:active .cke_icon_wrapper{\tbackground-color: $color !important;\tborder-color: $color !important;}.cke_skin_kama .cke_menuitem a:hover .cke_label,.cke_skin_kama .cke_menuitem a:focus .cke_label,.cke_skin_kama .cke_menuitem a:active .cke_label{\tbackground-color: $color !important;}.cke_skin_kama .cke_menuitem a.cke_disabled:hover .cke_label,.cke_skin_kama .cke_menuitem a.cke_disabled:focus .cke_label,.cke_skin_kama .cke_menuitem a.cke_disabled:active .cke_label{\tbackground-color: transparent !important;}.cke_skin_kama .cke_menuitem a.cke_disabled:hover .cke_icon_wrapper,.cke_skin_kama .cke_menuitem a.cke_disabled:focus .cke_icon_wrapper,.cke_skin_kama .cke_menuitem a.cke_disabled:active .cke_icon_wrapper{\tbackground-color: $color !important;\tborder-color: $color !important;}.cke_skin_kama .cke_menuitem a.cke_disabled .cke_icon_wrapper{\tbackground-color: $color !important;\tborder-color: $color !important;}.cke_skin_kama .cke_menuseparator{\tbackground-color: $color !important;}.cke_skin_kama .cke_menuitem a:hover,.cke_skin_kama .cke_menuitem a:focus,.cke_skin_kama .cke_menuitem a:active{\tbackground-color: $color !important;}';if(n.webkit){o=o.split('}').slice(0,-1);for(var s=0;s<o.length;s++)o[s]=o[s].split('{')};function d(e){var t=e.getById(i);if(!t){t=e.getHead().append('style');t.setAttribute('id',i);t.setAttribute('type','text/css')};return t};function l(e,t,i){var r,l,o;for(var s=0;s<e.length;s++){if(n.webkit)for(l=0;l<t.length;l++){o=t[l][1];for(r=0;r<i.length;r++)o=o.replace(i[r][0],i[r][1]);e[s].$.sheet.addRule(t[l][0],o)}
+else{o=t;for(r=0;r<i.length;r++)o=o.replace(i[r][0],i[r][1]);if(a)e[s].$.styleSheet.cssText+=o;else e[s].$.innerHTML+=o}}};var c=/\$color/g;t.extend(r,{uiColor:null,getUiColor:function(){return this.uiColor},setUiColor:function(t){var a,m=d(e.document),i='.'+r.id,s=[i+' .cke_wrapper',i+'_dialog .cke_dialog_contents',i+'_dialog a.cke_dialog_tab',i+'_dialog .cke_dialog_footer'].join(','),f='background-color: $color !important;';if(n.webkit)a=[[s,f]];else a=s+'{'+f+'}';return(this.setUiColor=function(e){var t=[[c,e]];r.uiColor=e;l([m],a,t);l(u,o,t)})(t)}});r.on('menuShow',function(e){var a=e.data[0],i=a.element.getElementsByTag('iframe').getItem(0).getFrameDocument();if(!i.getById('cke_ui_color')){var n=d(i);u.push(n);var t=r.getUiColor();if(t)l([n],o,[[c,t]])}});if(r.config.uiColor)r.setUiColor(r.config.uiColor)}}})());(function(){e.dialog?t():e.on('dialogPluginReady',t);function t(){e.dialog.on('resize',function(e){var t=e.data,n=t.width,i=t.height,a=t.dialog,r=a.parts.contents;if(t.skin!='kama')return;r.setStyles({width:n+'px',height:i+'px'})})}})();r.add('about',{requires:['dialog'],init:function(t){var n=t.addCommand('about',new e.dialogCommand('about'));n.modes={wysiwyg:1,source:1};n.canUndo=!1;t.ui.addButton('About',{label:t.lang.about.title,command:'about'});e.dialog.add('about',this.path+'dialogs/about.js')}});(function(){var i='a11yhelp',n='a11yHelp';r.add(i,{availableLangs:{en:1,he:1},init:function(i){var a=this;i.addCommand(n,{exec:function(){var r=i.langCode;r=a.availableLangs[r]?r:'en';e.scriptLoader.load(e.getUrl(a.path+'lang/'+r+'.js'),function(){t.extend(i.lang,a.lang[r]);i.openDialog(n)})},modes:{wysiwyg:1,source:1},canUndo:!1});e.dialog.add(n,this.path+'dialogs/a11yhelp.js')}})})();r.add('basicstyles',{requires:['styles','button'],init:function(t){var n=function(n,i,a,r){var o=new e.style(r);t.attachStyleStateChange(o,function(e){t.getCommand(a).setState(e)});t.addCommand(a,new e.styleCommand(o));t.ui.addButton(n,{label:i,command:a})},i=t.config,a=t.lang;n('Bold',a.bold,'bold',i.coreStyles_bold);n('Italic',a.italic,'italic',i.coreStyles_italic);n('Underline',a.underline,'underline',i.coreStyles_underline);n('Strike',a.strike,'strike',i.coreStyles_strike);n('Subscript',a.subscript,'subscript',i.coreStyles_subscript);n('Superscript',a.superscript,'superscript',i.coreStyles_superscript)}});l.coreStyles_bold={element:'strong',overrides:'b'};l.coreStyles_italic={element:'em',overrides:'i'};l.coreStyles_underline={element:'u'};l.coreStyles_strike={element:'strike'};l.coreStyles_subscript={element:'sub'};l.coreStyles_superscript={element:'sup'};(function(){var n={table:1,ul:1,ol:1,blockquote:1,div:1},a={},l={};t.extend(a,n,{tr:1,p:1,div:1,li:1});t.extend(l,a,{td:1});function u(e){d(e);f(e)};function d(e){var i=e.editor,a=e.data.path,n=i.config.useComputedState,t;n=n===undefined||n;if(!n)t=m(a.lastElement);t=t||a.block||a.blockLimit;t.is('body')&&(t=i.getSelection().getRanges()[0].getEnclosedNode());if(!t)return;var r=n?t.getComputedStyle('direction'):t.getStyle('direction')||t.getAttribute('dir');i.getCommand('bidirtl').setState(r=='rtl'?1:2);i.getCommand('bidiltr').setState(r=='ltr'?1:2)};function f(e){var t=e.editor,n=t.container.getChild(1),i=e.data.path.block||e.data.path.blockLimit;if(i&&t.lang.dir!=i.getComputedStyle('direction'))n.addClass('cke_mixed_dir_content');else n.removeClass('cke_mixed_dir_content')};function m(e){while(e&&!(e.getName()in l||e.is('body'))){var t=e.getParent();if(!t)break;e=t};return e};function o(e,t,n,i){s.setMarker(i,e,'bidi_processed',1);var a=e;while((a=a.getParent())&&!a.is('body')){if(a.getCustomData('bidi_processed')){e.removeStyle('direction');e.removeAttribute('dir');return null}};var r='useComputedState' in n.config?n.config.useComputedState:1,o=r?e.getComputedStyle('direction'):e.getStyle('direction')||e.hasAttribute('dir');if(o==t)return null;var l=r?o:e.getComputedStyle('direction');e.removeStyle('direction');if(r){e.removeAttribute('dir');if(t!=e.getComputedStyle('direction'))e.setAttribute('dir',t)}
+else e.setAttribute('dir',t);if(t!=l)n.fire('dirChanged',{node:e,dir:t});n.forceNextSelectionCheck();return null};function g(e,t,n){var i=e.getCommonAncestor(!1,!0);e=e.clone();e.enlarge(n==2?3:2);if(e.checkBoundaryOfElement(i,1)&&e.checkBoundaryOfElement(i,2)){var a;while(i&&i.type==1&&(a=i.getParent())&&a.getChildCount()==1&&!(i.getName()in t))i=a;return i.type==1&&i.getName()in t&&i}};function c(e){return function(t){var h=t.getSelection(),d=t.config.enterMode,p=h.getRanges();if(p&&p.length){var u={},m=h.createBookmarks(),w=p.createIterator(),c,b=0;while(c=w.getNextRange(1)){var r=c.getEnclosedNode();if(!r||r&&!(r.type==1&&r.getName()in a))r=g(c,n,d);if(r&&!r.isReadOnly())o(r,e,t,u);var f,l,v=new i.walker(c),y=m[b].startNode,k=m[b++].endNode;v.evaluator=function(e){return!!(e.type==1&&e.getName()in n&&!(e.getName()==(d==1?'p':'div')&&e.getParent().type==1&&e.getParent().getName()=='blockquote')&&e.getPosition(y)&2&&(e.getPosition(k)&4+16)==4)};while(l=v.next())o(l,e,t,u);f=c.createIterator();f.enlargeBr=d!=2;while(l=f.getNextParagraph(d==1?'p':'div'))!l.isReadOnly()&&o(l,e,t,u)};s.clearAllMarkers(u);t.forceNextSelectionCheck();h.selectBookmarks(m);t.focus()}}};r.add('bidi',{requires:['styles','button'],init:function(t){var n=function(n,i,a,r){t.addCommand(a,new e.command(t,{exec:r}));t.ui.addButton(n,{label:i,command:a})},i=t.lang.bidi;n('BidiLtr',i.ltr,'bidiltr',c('ltr'));n('BidiRtl',i.rtl,'bidirtl',c('rtl'));t.on('selectionChange',u)}})})();(function(){function t(e,t){var n=t.block||t.blockLimit;if(!n||n.getName()=='body')return 2;if(n.getAscendant('blockquote',!0))return 1;return 2};function n(e){var n=e.editor,i=n.getCommand('blockquote');i.state=t(n,e.data.path);i.fire('state')};function o(e){for(var t=0,i=e.getChildCount(),n;t<i&&(n=e.getChild(t));t++){if(n.type==1&&n.isBlockBoundary())return!1};return!0};var e={exec:function(e){var A=e.getCommand('blockquote').state,w=e.getSelection(),f=w&&w.getRanges(!0)[0];if(!f)return;var p=w.createBookmarks();if(a){var y=p[0].startNode,k=p[0].endNode,l;if(y&&y.getParent().getName()=='blockquote'){l=y;while(l=l.getNext()){if(l.type==1&&l.isBlockBoundary()){y.move(l,!0);break}}};if(k&&k.getParent().getName()=='blockquote'){l=k;while(l=l.getPrevious()){if(l.type==1&&l.isBlockBoundary()){k.move(l);break}}}};var N=f.createIterator(),t;N.enlargeBr=e.config.enterMode!=2;if(A==2){var r=[];while(t=N.getNextParagraph())r.push(t);if(r.length<1){var b=e.document.createElement(e.config.enterMode==1?'p':'div'),E=p.shift();f.insertNode(b);b.append(new i.text('\ufeff',e.document));f.moveToBookmark(E);f.selectNodeContents(b);f.collapse(!0);E=f.createBookmark();r.push(b);p.unshift(E)};var m=r[0].getParent(),S=[];for(var d=0;d<r.length;d++){t=r[d];m=m.getCommonAncestor(t.getParent())};var L={table:1,tbody:1,tr:1,ol:1,ul:1};while(L[m.getName()])m=m.getParent();var B=null;while(r.length>0){t=r.shift();while(!t.getParent().equals(m))t=t.getParent();if(!t.equals(B))S.push(t);B=t}
+while(S.length>0){t=S.shift();if(t.getName()=='blockquote'){var u=new i.documentFragment(e.document);while(t.getFirst()){u.append(t.getFirst().remove());r.push(u.getLast())};u.replace(t)}
+else r.push(t)};var c=e.document.createElement('blockquote');c.insertBefore(r[0]);while(r.length>0){t=r.shift();c.append(t)}}
+else if(A==1){var x=[],h={};while(t=N.getNextParagraph()){var I=null,g=null;while(t.getParent()){if(t.getParent().getName()=='blockquote'){I=t.getParent();g=t;break};t=t.getParent()};if(I&&g&&!g.getCustomData('blockquote_moveout')){x.push(g);s.setMarker(h,g,'blockquote_moveout',!0)}};s.clearAllMarkers(h);var C=[],v=[];h={};while(x.length>0){var n=x.shift();c=n.getParent();if(!n.getPrevious())n.remove().insertBefore(c);else if(!n.getNext())n.remove().insertAfter(c);else{n.breakParent(n.getParent());v.push(n.getNext())};if(!c.getCustomData('blockquote_processed')){v.push(c);s.setMarker(h,c,'blockquote_processed',!0)};C.push(n)};s.clearAllMarkers(h);for(d=v.length-1;d>=0;d--){c=v[d];if(o(c))c.remove()};if(e.config.enterMode==2){var T=!0;while(C.length){n=C.shift();if(n.getName()=='div'){u=new i.documentFragment(e.document);var D=T&&n.getPrevious()&&!(n.getPrevious().type==1&&n.getPrevious().isBlockBoundary());if(D)u.append(e.document.createElement('br'));var P=n.getNext()&&!(n.getNext().type==1&&n.getNext().isBlockBoundary());while(n.getFirst())n.getFirst().remove().appendTo(u);if(P)u.append(e.document.createElement('br'));u.replace(n);T=!1}}}};w.selectBookmarks(p);e.focus()}};r.add('blockquote',{init:function(t){t.addCommand('blockquote',e);t.ui.addButton('Blockquote',{label:t.lang.blockquote,command:'blockquote'});t.on('selectionChange',n)},requires:['domiterator']})})();r.add('button',{beforeInit:function(e){e.ui.addHandler(1,o.button.handler)}});e.UI_BUTTON=1;o.button=function(e){t.extend(this,e,{title:e.label,className:e.className||e.command&&'cke_button_'+e.command||'',click:e.click||(function(t){t.execCommand(e.command)})});this._={}};o.button.handler={create:function(e){return new o.button(e)}};o.button._={instances:[],keydown:function(e,t){var n=o.button._.instances[e];if(n.onkey){t=new i.event(t);return n.onkey(n,t.getKeystroke())!==!1}},focus:function(e,t){var a=o.button._.instances[e],r;if(a.onfocus)r=a.onfocus(a,new i.event(t))!==!1;if(n.gecko&&n.version<10900)t.preventBubble();return r}};(function(){var i=t.addFunction(o.button._.keydown,o.button._),a=t.addFunction(o.button._.focus,o.button._);o.button.prototype={canGroup:!0,render:function(r,s){var c=n,d=this._.id=t.getNextId(),f='',l=this.command,h,g;this._.editor=r;var u={id:d,button:this,editor:r,focus:function(){var t=e.document.getById(d);t.focus()},execute:function(){this.button.click(r)}};u.clickFn=h=t.addFunction(u.execute,u);u.index=g=o.button._.instances.push(u)-1;if(this.modes){var m={};r.on('beforeModeUnload',function(){m[r.mode]=this._.state},this);r.on('mode',function(){var e=r.mode;this.setState(this.modes[e]?m[e]!=undefined?m[e]:2:0)},this)}
+else if(l){l=r.getCommand(l);if(l){l.on('state',function(){this.setState(l.state)},this);f+='cke_'+(l.state==1?'on':l.state==0?'disabled':'off')}};if(!l)f+='cke_off';if(this.className)f+=' '+this.className;s.push('<span class="cke_button'+(this.icon&&this.icon.indexOf('.png')==-1?' cke_noalphafix':'')+'">','<a id="',d,'" class="',f,'"',c.gecko&&c.version>=10900&&!c.hc?'':'" href="javascript:void(\''+(this.title||'').replace('\'','')+'\')"',' title="',this.title,'" tabindex="-1" hidefocus="true" role="button" aria-labelledby="'+d+'_label"'+(this.hasArrow?' aria-haspopup="true"':''));if(c.opera||c.gecko&&c.mac)s.push(' onkeypress="return false;"');if(c.gecko)s.push(' onblur="this.style.cssText = this.style.cssText;"');s.push(' onkeydown="return CKEDITOR.tools.callFunction(',i,', ',g,', event);" onfocus="return CKEDITOR.tools.callFunction(',a,', ',g,', event);" onclick="CKEDITOR.tools.callFunction(',h,', this); return false;"><span class="cke_icon"');if(this.icon){var p=(this.iconOffset||0)*-16;s.push(' style="background-image:url(',e.getUrl(this.icon),');background-position:0 '+p+'px;"')};s.push('> </span><span id="',d,'_label" class="cke_label">',this.label,'</span>');if(this.hasArrow)s.push('<span class="cke_buttonarrow">'+(n.hc?'▼':' ')+'</span>');s.push('</a>','</span>');if(this.onRender)this.onRender();return u},setState:function(t){if(this._.state==t)return!1;this._.state=t;var n=e.document.getById(this._.id);if(n){n.setState(t);t==0?n.setAttribute('aria-disabled',!0):n.removeAttribute('aria-disabled');t==1?n.setAttribute('aria-pressed',!0):n.removeAttribute('aria-pressed');return!0}
+else return!1}}})();o.prototype.addButton=function(e,t){this.add(e,1,t)};e.on('reset',function(){o.button._.instances=[]});(function(){var d=function(e,t){var i=e.document,a=i.getBody(),r=0,o=function(){r=1};a.on(t,o);(n.version>7?i.$:i.$.selection.createRange()).execCommand(t);a.removeListener(t,o);return r},h=a?function(e,t){return d(e,t)}:function(e,t){try{return e.document.$.execCommand(t,!1,null)}catch(n){return!1}},c=function(e){var t=this;t.type=e;t.canUndo=t.type=='cut';t.startDisabled=!0};c.prototype={exec:function(e,t){this.type=='cut'&&f(e);var n=h(e,this.type);if(!n)alert(e.lang.clipboard[this.type+'Error']);return n}};var m={canUndo:!1,exec:a?function(e){e.focus();if(!e.document.getBody().fire('beforepaste')&&!d(e,'paste')){e.fire('pasteDialog');return!1}}:function(e){try{if(!e.document.getBody().fire('beforepaste')&&!e.document.$.execCommand('Paste',!1,null))throw 0}catch(t){setTimeout(function(){e.fire('pasteDialog')},0);return!1}}},g=function(e){if(this.mode!='wysiwyg')return;switch(e.data.keyCode){case 1000+86:case 2000+45:var t=this.document.getBody();if(!a&&t.fire('beforepaste'))e.cancel();else if(n.opera||n.gecko&&n.version<10900)t.fire('paste');return;case 1000+88:case 2000+46:var i=this;this.fire('saveSnapshot');setTimeout(function(){i.fire('saveSnapshot')},0)}};function p(e,t,r){var l=this.document;if(l.getById('cke_pastebin'))return;if(t=='text'&&e.data&&e.data.$.clipboardData){var f=e.data.$.clipboardData.getData('text/plain');if(f){e.data.preventDefault();r(f);return}};var c=this.getSelection(),u=new i.range(l),o=new s(t=='text'?'textarea':n.webkit?'body':'div',l);o.setAttribute('id','cke_pastebin');n.webkit&&o.append(l.createText('\xa0'));l.getBody().append(o);o.setStyles({position:'absolute',top:c.getStartElement().getDocumentPosition().y+'px',width:'1px',height:'1px',overflow:'hidden'});o.setStyle(this.config.contentsLangDirection=='ltr'?'left':'right','-1000px');var g=c.createBookmarks();if(t=='text'){if(a){var d=l.getBody().$.createTextRange();d.moveToElementText(o.$);d.execCommand('Paste');e.data.preventDefault()}
+else o.$.focus()}
+else{u.setStartAt(o,1);u.setEndAt(o,2);u.select(!0)};var m=this;window.setTimeout(function(){t=='text'&&n.gecko&&m.focusGrabber.focus();o.remove();var e;o=n.webkit&&(e=o.getFirst())&&e.is&&e.hasClass('Apple-style-span')?e:o;c.selectBookmarks(g);r(o['get'+(t=='text'?'Value':'Html')]())},0)};function f(e){if(!a||n.quirks)return;var t=e.getSelection(),i;if(t.getType()==3&&(i=t.getSelectedElement())){var r=t.getRanges()[0],o=e.document.createText('');o.insertBefore(i);r.setStartBefore(o);r.setEndAfter(i);t.selectRanges([r]);setTimeout(function(){if(i.getParent()){o.remove();t.selectElement(i)}},0)}};var o;function t(e,t){a&&(o=1);var n=t.document.$.queryCommandEnabled(e)?2:0;o=0;return n};var l;function u(){var e=this;if(e.mode!='wysiwyg')return;e.getCommand('cut').setState(l?0:t('Cut',e));e.getCommand('copy').setState(t('Copy',e));var i=l?0:n.webkit?2:t('Paste',e);e.fire('pasteState',i)};r.add('clipboard',{requires:['dialog','htmldataprocessor'],init:function(i){i.on('paste',function(e){var t=e.data;if(t.html)i.insertHtml(t.html);else if(t.text)i.insertText(t.text)},null,null,1000);i.on('pasteDialog',function(e){setTimeout(function(){i.openDialog('paste')},0)});i.on('pasteState',function(e){i.getCommand('paste').setState(e.data)});function s(e,t,n,a){var r=i.lang[t];i.addCommand(t,n);i.ui.addButton(e,{label:r,command:t});if(i.addMenuItems)i.addMenuItem(t,{label:r,command:t,group:'clipboard',order:a})};s('Cut','cut',new c('cut'),1);s('Copy','copy',new c('copy'),4);s('Paste','paste',m,8);e.dialog.add('paste',e.getUrl(this.path+'dialogs/paste.js'));i.on('key',g,i);var r=i.config.forcePasteAsPlainText?'text':'html';i.on('contentDom',function(){var e=i.document.getBody();e.on(r=='text'&&a||n.webkit?'paste':'beforepaste',function(e){if(o)return;p.call(i,e,r,function(e){if(!e)return;var t={};t[r]=e;i.fire('paste',t)})});e.on('beforecut',function(){!o&&f(i)});e.on('mouseup',function(){setTimeout(function(){u.call(i)},0)},i);e.on('keyup',u,i)});i.on('selectionChange',function(e){l=e.data.selection.getRanges()[0].checkReadOnly();u.call(i)});if(i.contextMenu)i.contextMenu.addListener(function(e,a){var r=a.getRanges()[0].checkReadOnly();return{cut:!r&&t('Cut',i),copy:t('Copy',i),paste:!r&&(n.webkit?2:t('Paste',i))}})}})})();r.add('colorbutton',{requires:['panelbutton','floatpanel','styles'],init:function(a){var s=a.config,r=a.lang.colorButton,d;if(!n.hc){l('TextColor','fore',r.textColorTitle);l('BGColor','back',r.bgColorTitle)};function l(e,n,s){var l=t.getNextId()+'_colorBox';a.ui.add(e,4,{label:s,title:s,className:'cke_button_'+e.toLowerCase(),modes:{wysiwyg:1},panel:{css:a.skin.editor.css,attributes:{role:'listbox','aria-label':r.panelTitle}},onBlock:function(e,t){t.autoSize=!0;t.element.addClass('cke_colorblock');t.element.setHtml(u(e,n,l));t.element.getDocument().getBody().setStyle('overflow','hidden');o.fire('ready',this);var i=t.keys,r=a.lang.dir=='rtl';i[r?37:39]='next';i[40]='next';i[9]='next';i[r?39:37]='prev';i[38]='prev';i[2000+9]='prev';i[32]='click'},onOpen:function(){var r=a.getSelection(),e=r&&r.getStartElement(),o=new i.elementPath(e),t;e=o.block||o.blockLimit;do t=e&&e.getComputedStyle(n=='back'?'background-color':'color')||'transparent';while(n=='back'&&t=='transparent'&&e&&(e=e.getParent()));if(!t||t=='transparent')t='#ffffff';this._.panel._.iframe.getFrameDocument().getById(l).setStyle('background-color',t)}})};function u(n,i,o){var l=[],h=s.colorButton_colors.split(','),f=h.length+(s.colorButton_enableMore?2:1),p=t.addFunction(function(t,i){if(t=='?'){var l=arguments.callee;function r(e){this.removeListener('ok',r);this.removeListener('cancel',r);e.name=='ok'&&l(this.getContentElement('picker','selectedColor').getValue(),i)};a.openDialog('colordialog',function(){this.on('ok',r);this.on('cancel',r)});return};a.focus();n.hide();a.fire('saveSnapshot');new e.style(s['colorButton_'+i+'Style'],{color:'inherit'}).remove(a.document);if(t){var o=s['colorButton_'+i+'Style'];o.childRule=i=='back'?function(e){return c(e)}:function(e){return e.getName()!='a'||c(e)};new e.style(o,{color:t}).apply(a.document)};a.fire('saveSnapshot')});l.push('<a class="cke_colorauto" _cke_focus=1 hidefocus=true title="',r.auto,'" onclick="CKEDITOR.tools.callFunction(',p,',null,\'',i,'\');return false;" href="javascript:void(\'',r.auto,'\')" role="option" aria-posinset="1" aria-setsize="',f,'"><table role="presentation" cellspacing=0 cellpadding=0 width="100%"><tr><td><span class="cke_colorbox" id="',o,'"></span></td><td colspan=7 align=center>',r.auto,'</td></tr></table></a><table role="presentation" cellspacing=0 cellpadding=0 width="100%">');for(var u=0;u<h.length;u++){if(u%8===0)l.push('</tr><tr>');var m=h[u].split('/'),d=m[0],g=m[1]||d;if(!m[1])d='#'+d.replace(/^(.)(.)(.)$/,'$1$1$2$2$3$3');var v=a.lang.colors[g]||g;l.push('<td><a class="cke_colorbox" _cke_focus=1 hidefocus=true title="',v,'" onclick="CKEDITOR.tools.callFunction(',p,',\'',d,'\',\'',i,'\'); return false;" href="javascript:void(\'',v,'\')" role="option" aria-posinset="',u+2,'" aria-setsize="',f,'"><span class="cke_colorbox" style="background-color:#',g,'"></span></a></td>')};if(s.colorButton_enableMore===undefined||s.colorButton_enableMore)l.push('</tr><tr><td colspan=8 align=center><a class="cke_colormore" _cke_focus=1 hidefocus=true title="',r.more,'" onclick="CKEDITOR.tools.callFunction(',p,',\'?\',\'',i,'\');return false;" href="javascript:void(\'',r.more,'\')"',' role="option" aria-posinset="',f,'" aria-setsize="',f,'">',r.more,'</a></td>');l.push('</tr></table>');return l.join('')};function c(e){return e.getAttribute('contentEditable')=='false'||e.getAttribute('data-nostyle')}}});l.colorButton_colors='000,800000,8B4513,2F4F4F,008080,000080,4B0082,696969,B22222,A52A2A,DAA520,006400,40E0D0,0000CD,800080,808080,F00,FF8C00,FFD700,008000,0FF,00F,EE82EE,A9A9A9,FFA07A,FFA500,FFFF00,00FF00,AFEEEE,ADD8E6,DDA0DD,D3D3D3,FFF0F5,FAEBD7,FFFFE0,F0FFF0,F0FFFF,F0F8FF,E6E6FA,FFF';l.colorButton_foreStyle={element:'span',styles:{color:'#(color)'},overrides:[{element:'font',attributes:{color:null}}]};l.colorButton_backStyle={element:'span',styles:{'background-color':'#(color)'}};(function(){r.colordialog={init:function(t){t.addCommand('colordialog',new e.dialogCommand('colordialog'));e.dialog.add('colordialog',this.path+'dialogs/colordialog.js')}};r.add('colordialog',r.colordialog)})();r.add('contextmenu',{requires:['menu'],onLoad:function(){r.contextMenu=t.createClass({base:e.menu,$:function(e){this.base.call(this,e,{panel:{className:e.skinClass+' cke_contextmenu',attributes:{'aria-label':e.lang.contextmenu.options}}})},proto:{addTarget:function(e,i){if(n.opera&&!('oncontextmenu' in document.body)){var a;e.on('mousedown',function(t){t=t.data;if(t.$.button!=2){if(t.getKeystroke()==1000+1)e.fire('contextmenu',t);return};if(i&&(n.mac?t.$.metaKey:t.$.ctrlKey))return;var o=t.getTarget();if(!a){var r=o.getDocument();a=r.createElement('input');a.$.type='button';r.getBody().append(a)};a.setAttribute('style','position:absolute;top:'+(t.$.clientY-2)+'px;left:'+(t.$.clientX-2)+'px;width:5px;height:5px;opacity:0.01')});e.on('mouseup',function(t){if(a){a.remove();a=undefined;e.fire('contextmenu',t.data)}})};e.on('contextmenu',function(e){var a=e.data;if(i&&(n.webkit?r:n.mac?a.$.metaKey:a.$.ctrlKey))return;a.preventDefault();var o=a.getTarget().getDocument().getDocumentElement(),s=a.$.clientX,l=a.$.clientY;t.setTimeout(function(){this.open(o,null,s,l)},0,this)},this);if(n.opera)e.on('keypress',function(e){var t=e.data;if(t.$.keyCode===0)t.preventDefault()});if(n.webkit){var r,s=function(e){r=n.mac?e.data.$.metaKey:e.data.$.ctrlKey},o=function(){r=0};e.on('keydown',s);e.on('keyup',o);e.on('contextmenu',o)}},open:function(t,n,i,a){this.editor.focus();t=t||e.document.getDocumentElement();this.show(t,n,i,a)}}})},beforeInit:function(e){e.contextMenu=new r.contextMenu(e);e.addCommand('contextMenu',{exec:function(){e.contextMenu.open(e.document.getBody())}})}});(function(){function e(e){var t=this.att,n=e&&e.hasAttribute(t)&&e.getAttribute(t)||'';if(n!==undefined)this.setValue(n)};function t(){var e;for(var i=0;i<arguments.length;i++){if(arguments[i]instanceof s){e=arguments[i];break}};if(e){var n=this.att,t=this.getValue();if(n=='dir'){var a=e.getAttribute(n);if(a!=t&&e.getParent())this._.dialog._.editor.fire('dirChanged',{node:e,dir:t||e.getDirection(1)})};if(t)e.setAttribute(n,t);else e.removeAttribute(n,t)}};r.add('dialogadvtab',{createAdvancedTab:function(n,i){if(!i)i={id:1,dir:1,classes:1,styles:1};var a=n.lang.common,o={id:'advanced',label:a.advancedTab,title:a.advancedTab,elements:[{type:'vbox',padding:1,children:[]}]},r=[];if(i.id||i.dir){if(i.id)r.push({id:'advId',att:'id',type:'text',label:a.id,setup:e,commit:t});if(i.dir)r.push({id:'advLangDir',att:'dir',type:'select',label:a.langDir,'default':'',style:'width:100%',items:[[a.notSet,''],[a.langDirLTR,'ltr'],[a.langDirRTL,'rtl']],setup:e,commit:t});o.elements[0].children.push({type:'hbox',widths:['50%','50%'],children:[].concat(r)})};if(i.styles||i.classes){r=[];if(i.styles)r.push({id:'advStyles',att:'style',type:'text',label:a.styles,'default':'',getStyle:function(e,t){var n=this.getValue().match(new RegExp(e+'\\s*:s*([^;]*)','i'));return n?n[1]:t},updateStyle:function(e,t){var n=this.getValue();if(n)n=n.replace(new RegExp('\\s*'+e+'s*:[^;]*(?:$|;s*)','i'),'').replace(/^[;\s]+/,'').replace(/\s+$/,'');if(t){n&&!/;\s*$/.test(n)&&(n+='; ');n+=e+': '+t};this.setValue(n,1)},setup:e,commit:t});if(i.classes)r.push({type:'hbox',widths:['45%','55%'],children:[{id:'advCSSClasses',att:'class',type:'text',label:a.cssClasses,'default':'',setup:e,commit:t}]});o.elements[0].children.push({type:'hbox',widths:['50%','50%'],children:[].concat(r)})};return o}})})();(function(){r.add('div',{requires:['editingblock','domiterator','styles'],init:function(t){var n=t.lang.div;t.addCommand('creatediv',new e.dialogCommand('creatediv'));t.addCommand('editdiv',new e.dialogCommand('editdiv'));t.addCommand('removediv',{exec:function(e){var n=e.getSelection(),s=n&&n.getRanges(),a,c=n.createBookmarks(),r,o=[];function l(e){var a=new i.elementPath(e),n=a.blockLimit,t=n.is('div')&&n;if(t&&!t.data('cke-div-added')){o.push(t);t.data('cke-div-added')}};for(var t=0;t<s.length;t++){a=s[t];if(a.collapsed)l(n.getStartElement());else{r=new i.walker(a);r.evaluator=l;r.lastForward()}};for(t=0;t<o.length;t++)o[t].remove(!0);n.selectBookmarks(c)}});t.ui.addButton('CreateDiv',{label:n.toolbar,command:'creatediv'});if(t.addMenuItems){t.addMenuItems({editdiv:{label:n.edit,command:'editdiv',group:'div',order:1},removediv:{label:n.remove,command:'removediv',group:'div',order:5}});if(t.contextMenu)t.contextMenu.addListener(function(e,t){if(!e||e.isReadOnly())return null;var a=new i.elementPath(e),n=a.blockLimit;if(n&&n.getAscendant('div',!0))return{editdiv:2,removediv:2};return null})};e.dialog.add('creatediv',this.path+'dialogs/div.js');e.dialog.add('editdiv',this.path+'dialogs/div.js')}})})();(function(){var s={toolbarFocus:{exec:function(t){var r=t._.elementsPath.idBase,i=e.document.getById(r+'0');i&&i.focus(a||n.air)}}},o='<span class="cke_empty"> </span>';r.add('elementspath',{requires:['selection'],init:function(a){var l='cke_path_'+a.name,r,m=function(){if(!r)r=e.document.getById(l);return r},c='cke_elementspath_'+t.getNextNumber()+'_';a._.elementsPath={idBase:c,filters:[]};a.on('themeSpace',function(e){if(e.data.space=='bottom')e.data.html+='<span id="'+l+'_label" class="cke_voice_label">'+a.lang.elementsPath.eleLabel+'</span><div id="'+l+'" class="cke_path" role="group" aria-labelledby="'+l+'_label">'+o+'</div>'});function u(e){a.focus();var t=a._.elementsPath.list[e];if(t.is('body')){var n=new i.range(a.document);n.selectNodeContents(t);n.select()}
+else a.getSelection().selectElement(t)};var d=t.addFunction(u),f=t.addFunction(function(t,n){var o=a._.elementsPath.idBase,r;n=new i.event(n);var s=a.lang.dir=='rtl';switch(n.getKeystroke()){case s?39:37:case 9:r=e.document.getById(o+(t+1));if(!r)r=e.document.getById(o+'0');r.focus();return!1;case s?37:39:case 2000+9:r=e.document.getById(o+(t-1));if(!r)r=e.document.getById(o+(a._.elementsPath.list.length-1));r.focus();return!1;case 27:a.focus();return!1;case 13:case 32:u(t);return!1};return!0});a.on('selectionChange',function(e){var r=n,y=e.data.selection,t=y.getStartElement(),v=[],s=e.editor,k=s._.elementsPath.list=[],b=s._.elementsPath.filters;while(t){var p=0;for(var u=0;u<b.length;u++){if(b[u](t)===!1){p=1;break}};if(!p){var a=k.push(t)-1,i;if(t.data('cke-real-element-type'))i=t.data('cke-real-element-type');else i=t.getName();var l='';if(r.opera||r.gecko&&r.mac)l+=' onkeypress="return false;"';if(r.gecko)l+=' onblur="this.style.cssText = this.style.cssText;"';var h=s.lang.elementsPath.eleTitle.replace(/%1/,i);v.unshift('<a id="',c,a,'" href="javascript:void(\'',i,'\')" tabindex="-1" title="',h,'"'+(n.gecko&&n.version<10900?' onfocus="event.preventBubble();"':'')+' hidefocus="true" onkeydown="return CKEDITOR.tools.callFunction(',f,',',a,', event );"'+l,' onclick="CKEDITOR.tools.callFunction('+d,',',a,'); return false;"',' role="button" aria-labelledby="'+c+a+'_label">',i,'<span id="',c,a,'_label" class="cke_label">'+h+'</span>','</a>')};if(i=='body')break;t=t.getParent()};var g=m();g.setHtml(v.join('')+o);s.fire('elementsPathUpdate',{space:g})});a.on('contentDomUnload',function(){r&&r.setHtml(o)});a.addCommand('elementsPathFocus',s.toolbarFocus)}})})();(function(){r.add('enterkey',{requires:['keystrokes','indent'],init:function(e){var t=e.specialKeys;t[13]=s;t[2000+13]=d}});r.enterkey={enterBlock:function(e,t,n,r){n=n||l(e);if(!n)return;var v=n.document;if(n.checkStartOfBlock()&&n.checkEndOfBlock()){var E=new i.elementPath(n.startContainer),C=E.block;if(C&&(C.is('li')||C.getParent().is('li'))){e.execCommand('outdent');return}};var w=t==3?'div':'p',g=n.splitBlock(w);if(!g)return;var u=g.previousBlock,d=g.nextBlock,k=g.wasStartOfBlock,p=g.wasEndOfBlock,f;if(d){f=d.getParent();if(f.is('li')){d.breakParent(f);d.move(d.getNext(),1)}}
+else if(u&&(f=u.getParent())&&f.is('li')){u.breakParent(f);n.moveToElementEditStart(u.getNext());u.move(u.getPrevious())};if(!k&&!p){if(d.is('li')&&(f=d.getFirst(i.walker.invisible(!0)))&&f.is&&f.is('ul','ol'))(a?v.createText('\xa0'):v.createElement('br')).insertBefore(f);if(d)n.moveToElementEditStart(d)}
+else{var s,x;if(u){if(u.is('li')||!o.test(u.getName()))s=u.clone()}
+else if(d)s=d.clone();if(!s){s=v.createElement(w);if(u&&(x=u.getDirection()))s.setAttribute('dir',x)}
+else if(r&&!s.is('li'))s.renameNode(w);var h=g.elementPath;if(h)for(var y=0,S=h.elements.length;y<S;y++){var m=h.elements[y];if(m.equals(h.block)||m.equals(h.blockLimit))break;if(c.$removeEmpty[m.getName()]){m=m.clone();s.moveChildren(m);s.append(m)}};if(!a)s.appendBogus();n.insertNode(s);if(a&&k&&(!p||!u.getChildCount())){n.moveToElementEditStart(p?u:s);n.select()};n.moveToElementEditStart(k&&!p?d:s)};if(!a)if(d){var b=v.createElement('span');b.setHtml(' ');n.insertNode(b);b.scrollIntoView();n.deleteContents()}
+else s.scrollIntoView();n.select()},enterBr:function(t,r,s,c){s=s||l(t);if(!s)return;var d=s.document,k=r==3?'div':'p',b=s.checkEndOfBlock(),y=new i.elementPath(t.getSelection().getStartElement()),m=y.block,h=m&&y.block.getName(),p=!1;if(!c&&h=='li'){e(t,r,s,c);return};if(!c&&b&&o.test(h)){var g,v;if(v=m.getDirection()){g=d.createElement('div');g.setAttribute('dir',v);g.insertAfter(m);s.setStart(g,0)}
+else{d.createElement('br').insertAfter(m);if(n.gecko)d.createText('').insertAfter(m);s.setStartAt(m.getNext(),a?3:1)}}
+else{var u;p=h=='pre';if(p&&!n.gecko)u=d.createText(a?'\r':'\n');else u=d.createElement('br');s.deleteContents();s.insertNode(u);if(!a)d.createText('\ufeff').insertAfter(u);if(b&&!a)u.getParent().appendBogus();if(!a)u.getNext().$.nodeValue='';if(a)s.setStartAt(u,4);else s.setStartAt(u.getNext(),1);if(!a){var f=null;if(!n.gecko){f=d.createElement('span');f.setHtml(' ')}
+else f=d.createElement('br');f.insertBefore(u.getNext());f.scrollIntoView();f.remove()}};s.collapse(!0);s.select(p)}};var t=r.enterkey,u=t.enterBr,e=t.enterBlock,o=/^h[1-6]$/;function d(t){if(t.mode!='wysiwyg')return!1;if(t.getSelection().getStartElement().hasAscendant('pre',!0)){setTimeout(function(){e(t,t.config.enterMode,null,!0)},0);return!0}
+else return s(t,t.config.shiftEnterMode,1)};function s(t,n,i){i=t.config.forceEnterMode||i;if(t.mode!='wysiwyg')return!1;if(!n)n=t.config.enterMode;setTimeout(function(){t.fire('saveSnapshot');if(n==2||t.getSelection().getStartElement().hasAscendant('pre',1))u(t,n,null,i);else e(t,n,null,i)},0);return!0};function l(e){var n=e.getSelection().getRanges(!0);for(var t=n.length-1;t>0;t--)n[t].deleteContents();return n[0]}})();(function(){var e='nbsp,gt,lt',n='quot,iexcl,cent,pound,curren,yen,brvbar,sect,uml,copy,ordf,laquo,not,shy,reg,macr,deg,plusmn,sup2,sup3,acute,micro,para,middot,cedil,sup1,ordm,raquo,frac14,frac12,frac34,iquest,times,divide,fnof,bull,hellip,prime,Prime,oline,frasl,weierp,image,real,trade,alefsym,larr,uarr,rarr,darr,harr,crarr,lArr,uArr,rArr,dArr,hArr,forall,part,exist,empty,nabla,isin,notin,ni,prod,sum,minus,lowast,radic,prop,infin,ang,and,or,cap,cup,int,there4,sim,cong,asymp,ne,equiv,le,ge,sub,sup,nsub,sube,supe,oplus,otimes,perp,sdot,lceil,rceil,lfloor,rfloor,lang,rang,loz,spades,clubs,hearts,diams,circ,tilde,ensp,emsp,thinsp,zwnj,zwj,lrm,rlm,ndash,mdash,lsquo,rsquo,sbquo,ldquo,rdquo,bdquo,dagger,Dagger,permil,lsaquo,rsaquo,euro',i='Agrave,Aacute,Acirc,Atilde,Auml,Aring,AElig,Ccedil,Egrave,Eacute,Ecirc,Euml,Igrave,Iacute,Icirc,Iuml,ETH,Ntilde,Ograve,Oacute,Ocirc,Otilde,Ouml,Oslash,Ugrave,Uacute,Ucirc,Uuml,Yacute,THORN,szlig,agrave,aacute,acirc,atilde,auml,aring,aelig,ccedil,egrave,eacute,ecirc,euml,igrave,iacute,icirc,iuml,eth,ntilde,ograve,oacute,ocirc,otilde,ouml,oslash,ugrave,uacute,ucirc,uuml,yacute,thorn,yuml,OElig,oelig,Scaron,scaron,Yuml',a='Alpha,Beta,Gamma,Delta,Epsilon,Zeta,Eta,Theta,Iota,Kappa,Lambda,Mu,Nu,Xi,Omicron,Pi,Rho,Sigma,Tau,Upsilon,Phi,Chi,Psi,Omega,alpha,beta,gamma,delta,epsilon,zeta,eta,theta,iota,kappa,lambda,mu,nu,xi,omicron,pi,rho,sigmaf,sigma,tau,upsilon,phi,chi,psi,omega,thetasym,upsih,piv';function t(e,t){var i={},o=[],l={nbsp:'\xa0',shy:'',gt:'>',lt:'<'};e=e.replace(/\b(nbsp|shy|gt|lt|amp)(?:,|$)/g,function(e,n){var a=t?'&'+n+';':l[n],r=t?l[n]:'&'+n+';';i[a]=r;o.push(a);return''});if(!t&&e){e=e.split(',');var a=document.createElement('div'),r;a.innerHTML='&'+e.join(';&')+';';r=a.innerHTML;a=null;for(var n=0;n<r.length;n++){var s=r.charAt(n);i[s]='&'+e[n]+';';o.push(s)}};i.regex=o.join(t?'|':'');return i};r.add('entities',{afterInit:function(r){var o=r.config,d=r.dataProcessor,f=d&&d.htmlFilter;if(f){var l=e;if(o.entities){l+=','+n;if(o.entities_latin)l+=','+i;if(o.entities_greek)l+=','+a;if(o.entities_additional)l+=','+o.entities_additional};var c=t(l),s='['+c.regex+']';delete c.regex;if(o.entities&&o.entities_processNumerical)s='[^ -~]|'+s;s=new RegExp(s,'g');function g(e){return o.entities_processNumerical=='force'||!c[e]?'&#'+e.charCodeAt(0)+';':c[e]};var u=t([e,'shy'].join(','),!0),m=new RegExp(u.regex,'g');function h(e){return u[e]};f.addRules({text:function(e){return e.replace(m,h).replace(s,g)}})}}})})();l.entities=!0;l.entities_latin=!0;l.entities_greek=!0;l.entities_additional='#39';(function(){function i(e,t){var i=[];if(!t)return e;else for(var n in t)i.push(n+'='+encodeURIComponent(t[n]));return e+(e.indexOf('?')!=-1?'&':'?')+i.join('&')};function n(e){e+='';var t=e.charAt(0).toUpperCase();return t+e.substr(1)};function s(e){var r=this,o=r.getDialog(),t=o.getParentEditor();t._.filebrowserSe=r;var l=t.config['filebrowser'+n(o.getName())+'WindowWidth']||t.config.filebrowserWindowWidth||'80%',c=t.config['filebrowser'+n(o.getName())+'WindowHeight']||t.config.filebrowserWindowHeight||'70%',a=r.filebrowser.params||{};a.CKEditor=t.name;a.CKEditorFuncNum=t._.filebrowserFn;if(!a.langCode)a.langCode=t.langCode;var s=i(r.filebrowser.url,a);t.popup(s,l,c,t.config.fileBrowserWindowFeatures)};function l(e){var t=this,n=t.getDialog(),i=n.getParentEditor();i._.filebrowserSe=t;if(!n.getContentElement(t['for'][0],t['for'][1]).getInputElement().$.value)return!1;if(!n.getContentElement(t['for'][0],t['for'][1]).getAction())return!1;return!0};function c(e,t,n){var a=n.params||{};a.CKEditor=e.name;a.CKEditorFuncNum=e._.filebrowserFn;if(!a.langCode)a.langCode=e.langCode;t.action=i(n.url,a);t.filebrowser=n};function a(e,t,i,r){var o,g;for(var m in r){o=r[m];if(o.type=='hbox'||o.type=='vbox')a(e,t,i,o.children);if(!o.filebrowser)continue;if(typeof o.filebrowser=='string'){var f={action:o.type=='fileButton'?'QuickUpload':'Browse',target:o.filebrowser};o.filebrowser=f};if(o.filebrowser.action=='Browse'){var u=o.filebrowser.url;if(u===undefined){u=e.config['filebrowser'+n(t)+'BrowseUrl'];if(u===undefined)u=e.config.filebrowserBrowseUrl};if(u){o.onClick=s;o.filebrowser.url=u;o.hidden=!1}}
+else if(o.filebrowser.action=='QuickUpload'&&o['for']){u=o.filebrowser.url;if(u===undefined){u=e.config['filebrowser'+n(t)+'UploadUrl'];if(u===undefined)u=e.config.filebrowserUploadUrl};if(u){var d=o.onClick;o.onClick=function(e){var t=e.sender;if(d&&d.call(t,e)===!1)return!1;return l.call(t,e)};o.filebrowser.url=u;o.hidden=!1;c(e,i.getContents(o['for'][0]).get(o['for'][1]),o.filebrowser)}}}};function u(e,t){var a=t.getDialog(),r=t.filebrowser.target||null;e=e.replace(/#/g,'%23');if(r){var n=r.split(':'),i=a.getContentElement(n[0],n[1]);if(i){i.setValue(e);a.selectPage(n[0])}}};function o(e,t,n){if(n.indexOf(';')!==-1){var r=n.split(';');for(var i=0;i<r.length;i++){if(o(e,t,r[i]))return!0};return!1};var a=e.getContents(t).get(n).filebrowser;return a&&a.url};function d(e,t){var n=this,r=n._.filebrowserSe.getDialog(),i=n._.filebrowserSe['for'],a=n._.filebrowserSe.filebrowser.onSelect;if(i)r.getContentElement(i[0],i[1]).reset();if(typeof t=='function'&&t.call(n._.filebrowserSe)===!1)return;if(a&&a.call(n._.filebrowserSe,e,t)===!1)return;if(typeof t=='string'&&t)alert(t);if(e)u(e,n._.filebrowserSe)};r.add('filebrowser',{init:function(e,n){e._.filebrowserFn=t.addFunction(d,e);e.on('destroy',function(){t.removeFunction(this._.filebrowserFn)})}});e.on('dialogDefinition',function(e){var n=e.data.definition,t;for(var i in n.contents){if(t=n.contents[i]){a(e.editor,e.data.name,n,t.elements);if(t.hidden&&t.filebrowser)t.hidden=!o(n,t.id,t.filebrowser)}}})})();r.add('find',{init:function(t){var a=r.find;t.ui.addButton('Find',{label:t.lang.findAndReplace.find,command:'find'});var i=t.addCommand('find',new e.dialogCommand('find'));i.canUndo=!1;t.ui.addButton('Replace',{label:t.lang.findAndReplace.replace,command:'replace'});var n=t.addCommand('replace',new e.dialogCommand('replace'));n.canUndo=!1;e.dialog.add('find',this.path+'dialogs/find.js');e.dialog.add('replace',this.path+'dialogs/find.js')},requires:['styles']});l.find_highlight={element:'span',styles:{'background-color':'#004',color:'#fff'}};(function(){var o=/\.swf(?:$|\?)/i,i=t.cssLength;function a(e){var t=e.attributes;return t.type=='application/x-shockwave-flash'||o.test(t.src||'')};function n(e,t){var n=e.createFakeParserElement(t,'cke_flash','flash',!0),a=n.attributes.style||'',r=t.attributes.width,o=t.attributes.height;if(typeof r!='undefined')a=n.attributes.style=a+'width:'+i(r)+';';if(typeof o!='undefined')a=n.attributes.style=a+'height:'+i(o)+';';return n};r.add('flash',{init:function(t){t.addCommand('flash',new e.dialogCommand('flash'));t.ui.addButton('Flash',{label:t.lang.common.flash,command:'flash'});e.dialog.add('flash',this.path+'dialogs/flash.js');t.addCss('img.cke_flash{background-image: url('+e.getUrl(this.path+'images/placeholder.png')+');background-position: center center;background-repeat: no-repeat;border: 1px solid #a9a9a9;width: 80px;height: 80px;}');if(t.addMenuItems)t.addMenuItems({flash:{label:t.lang.flash.properties,command:'flash',group:'flash'}});t.on('doubleclick',function(e){var t=e.data.element;if(t.is('img')&&t.data('cke-real-element-type')=='flash')e.data.dialog='flash'});if(t.contextMenu)t.contextMenu.addListener(function(e,t){if(e&&e.is('img')&&!e.isReadOnly()&&e.data('cke-real-element-type')=='flash')return{flash:2}})},afterInit:function(e){var t=e.dataProcessor,i=t&&t.dataFilter;if(i)i.addRules({elements:{'cke:object':function(t){var r=t.attributes,o=r.classid&&String(r.classid).toLowerCase();if(!o){for(var i=0;i<t.children.length;i++){if(t.children[i].name=='cke:embed'){if(!a(t.children[i]))return null;return n(e,t)}};return null};return n(e,t)},'cke:embed':function(t){if(!a(t))return null;return n(e,t)}}},5)},requires:['fakeobjects']})})();t.extend(l,{flashEmbedTagOnly:!1,flashAddEmbedTag:!0,flashConvertOnEdit:!1});(function(){function t(t,n,i,a,r,u,f){var g=t.config,s=r.split(';'),h=[],l={};for(var o=0;o<s.length;o++){var c=s[o];if(c){c=c.split('/');var m={},d=s[o]=c[0];m[i]=h[o]=c[1]||d;l[d]=new e.style(f,m);l[d]._.definition.name=d}
+else s.splice(o--,1)};t.ui.addRichCombo(n,{label:a.label,title:a.panelTitle,className:'cke_'+(i=='size'?'fontSize':'font'),panel:{css:t.skin.editor.css.concat(g.contentsCss),multiSelect:!1,attributes:{'aria-label':a.panelTitle}},init:function(){this.startGroup(a.panelTitle);for(var t=0;t<s.length;t++){var e=s[t];this.add(e,l[e].buildPreview(),e)}},onClick:function(e){t.focus();t.fire('saveSnapshot');var n=l[e];if(this.getValue()==e)n.remove(t.document);else n.apply(t.document);t.fire('saveSnapshot')},onRender:function(){t.on('selectionChange',function(e){var r=this.getValue(),o=e.data.path,a=o.elements;for(var n=0,i;n<a.length;n++){i=a[n];for(var t in l){if(l[t].checkElementRemovable(i,!0)){if(t!=r)this.setValue(t);return}}};this.setValue('',u)},this)}})};r.add('font',{requires:['richcombo','styles'],init:function(e){var n=e.config;t(e,'Font','family',e.lang.font,n.font_names,n.font_defaultLabel,n.font_style);t(e,'FontSize','size',e.lang.fontSize,n.fontSize_sizes,n.fontSize_defaultLabel,n.fontSize_style)}})})();l.font_names='Arial/Arial, Helvetica, sans-serif;Comic Sans MS/Comic Sans MS, cursive;Courier New/Courier New, Courier, monospace;Georgia/Georgia, serif;Lucida Sans Unicode/Lucida Sans Unicode, Lucida Grande, sans-serif;Tahoma/Tahoma, Geneva, sans-serif;Times New Roman/Times New Roman, Times, serif;Trebuchet MS/Trebuchet MS, Helvetica, sans-serif;Verdana/Verdana, Geneva, sans-serif';l.font_defaultLabel='';l.font_style={element:'span',styles:{'font-family':'#(family)'},overrides:[{element:'font',attributes:{face:null}}]};l.fontSize_sizes='8/8px;9/9px;10/10px;11/11px;12/12px;14/14px;16/16px;18/18px;20/20px;22/22px;24/24px;26/26px;28/28px;36/36px;48/48px;72/72px';l.fontSize_defaultLabel='';l.fontSize_style={element:'span',styles:{'font-size':'#(size)'},overrides:[{element:'font',attributes:{size:null}}]};r.add('format',{requires:['richcombo','styles'],init:function(t){var s=t.config,a=t.lang.format,l=s.format_tags.split(';'),n={};for(var o=0;o<l.length;o++){var r=l[o];n[r]=new e.style(s['format_'+r]);n[r]._.enterMode=t.config.enterMode};t.ui.addRichCombo('Format',{label:a.label,title:a.panelTitle,className:'cke_format',panel:{css:t.skin.editor.css.concat(s.contentsCss),multiSelect:!1,attributes:{'aria-label':a.panelTitle}},init:function(){this.startGroup(a.panelTitle);for(var e in n){var t=a['tag_'+e];this.add(e,'<'+e+'>'+t+'</'+e+'>',t)}},onClick:function(e){t.focus();t.fire('saveSnapshot');var a=n[e],r=new i.elementPath(t.getSelection().getStartElement());a[a.checkActive(r)?'remove':'apply'](t.document);setTimeout(function(){t.fire('saveSnapshot')},0)},onRender:function(){t.on('selectionChange',function(e){var a=this.getValue(),r=e.data.path;for(var i in n){if(n[i].checkActive(r)){if(i!=a)this.setValue(i,t.lang.format['tag_'+i]);return}};this.setValue('')},this)}})}});l.format_tags='p;h1;h2;h3;h4;h5;h6;pre;address;div';l.format_p={element:'p'};l.format_div={element:'div'};l.format_pre={element:'pre'};l.format_address={element:'address'};l.format_h1={element:'h1'};l.format_h2={element:'h2'};l.format_h3={element:'h3'};l.format_h4={element:'h4'};l.format_h5={element:'h5'};l.format_h6={element:'h6'};r.add('forms',{init:function(t){var n=t.lang;t.addCss('form{border: 1px dotted #FF0000;padding: 2px;}\n');t.addCss('img.cke_hidden{background-image: url('+e.getUrl(this.path+'images/hiddenfield.gif')+');background-position: center center;background-repeat: no-repeat;border: 1px solid #a9a9a9;width: 16px !important;height: 16px !important;}');var i=function(i,a,r){t.addCommand(a,new e.dialogCommand(a));t.ui.addButton(i,{label:n.common[i.charAt(0).toLowerCase()+i.slice(1)],command:a});e.dialog.add(a,r)},a=this.path+'dialogs/';i('Form','form',a+'form.js');i('Checkbox','checkbox',a+'checkbox.js');i('Radio','radio',a+'radio.js');i('TextField','textfield',a+'textfield.js');i('Textarea','textarea',a+'textarea.js');i('Select','select',a+'select.js');i('Button','button',a+'button.js');i('ImageButton','imagebutton',r.getPath('image')+'dialogs/image.js');i('HiddenField','hiddenfield',a+'hiddenfield.js');if(t.addMenuItems)t.addMenuItems({form:{label:n.form.menu,command:'form',group:'form'},checkbox:{label:n.checkboxAndRadio.checkboxTitle,command:'checkbox',group:'checkbox'},radio:{label:n.checkboxAndRadio.radioTitle,command:'radio',group:'radio'},textfield:{label:n.textfield.title,command:'textfield',group:'textfield'},hiddenfield:{label:n.hidden.title,command:'hiddenfield',group:'hiddenfield'},imagebutton:{label:n.image.titleButton,command:'imagebutton',group:'imagebutton'},button:{label:n.button.title,command:'button',group:'button'},select:{label:n.select.title,command:'select',group:'select'},textarea:{label:n.textarea.title,command:'textarea',group:'textarea'}});if(t.contextMenu){t.contextMenu.addListener(function(e){if(e&&e.hasAscendant('form',!0)&&!e.isReadOnly())return{form:2}});t.contextMenu.addListener(function(e){if(e&&!e.isReadOnly()){var t=e.getName();if(t=='select')return{select:2};if(t=='textarea')return{textarea:2};if(t=='input')switch(e.getAttribute('type')){case'button':case'submit':case'reset':return{button:2};case'checkbox':return{checkbox:2};case'radio':return{radio:2};case'image':return{imagebutton:2};default:return{textfield:2}};if(t=='img'&&e.data('cke-real-element-type')=='hiddenfield')return{hiddenfield:2}}})};t.on('doubleclick',function(e){var t=e.data.element;if(t.is('form'))e.data.dialog='form';else if(t.is('select'))e.data.dialog='select';else if(t.is('textarea'))e.data.dialog='textarea';else if(t.is('img')&&t.data('cke-real-element-type')=='hiddenfield')e.data.dialog='hiddenfield';else if(t.is('input'))switch(t.getAttribute('type')){case'button':case'submit':case'reset':e.data.dialog='button';break;case'checkbox':e.data.dialog='checkbox';break;case'radio':e.data.dialog='radio';break;case'image':e.data.dialog='imagebutton';break;default:e.data.dialog='textfield';break}})},afterInit:function(e){var t=e.dataProcessor,n=t&&t.htmlFilter,i=t&&t.dataFilter;if(a)n&&n.addRules({elements:{input:function(e){var t=e.attributes,n=t.type;if(!n)t.type='text';if(n=='checkbox'||n=='radio')t.value=='on'&&delete t.value}}});if(i)i.addRules({elements:{input:function(t){if(t.attributes.type=='hidden')return e.createFakeParserElement(t,'cke_hidden','hiddenfield')}}})},requires:['image','fakeobjects']});if(a)s.prototype.hasAttribute=function(e){var t=this,i=t.$.attributes.getNamedItem(e);if(t.getName()=='input')switch(e){case'class':return t.$.className.length>0;case'checked':return!!t.$.checked;case'value':var n=t.getAttribute('type');return n=='checkbox'||n=='radio'?t.$.value!='on':t.$.value};return!!(i&&i.specified)};(function(){var t={canUndo:!1,exec:function(e){e.insertElement(e.document.createElement('hr'))}},e='horizontalrule';r.add(e,{init:function(n){n.addCommand(e,t);n.ui.addButton('HorizontalRule',{label:n.lang.horizontalrule,command:e})}})})();(function(){var S=/^[\t\r\n ]*(?: |\xa0)$/,i='{cke_protected}';function g(e){var i=e.children.length,n=e.children[i-1];while(n&&n.type==3&&!t.trim(n.value))n=e.children[--i];return n};function h(e,t){var i=e.children,n=g(e);if(n){if((t||!a)&&n.type==1&&n.name=='br')i.pop();if(n.type==3&&S.test(n.value))i.pop()}};function E(e,t,n){if(!t&&(!n||typeof n=='function'&&n(e)===!1))return!1;if(t&&a&&(document.documentMode>7||e.name in c.tr||e.name in c.$listItem))return!1;var i=g(e);return!i||i&&(i.type==1&&i.name=='br'||e.name=='form'&&i.name=='input')};function p(t,n){return function(i){h(i,!t);if(E(i,!t,n))if(t||a)i.add(new e.htmlParser.text('\xa0'));else i.add(new e.htmlParser.element('br',{}))}};var u=c,o=t.extend({},u.$block,u.$listItem,u.$tableContent);for(var n in o){if(!('br' in u[n]))delete o[n]};delete o.pre;var f={elements:{a:function(e){var t=e.attributes;if(t&&t['data-cke-saved-name'])t['class']=(t['class']?t['class']+' ':'')+'cke_anchor'}},attributeNames:[[/^on/,'data-cke-pa-on']]},m={elements:{}};for(n in o)m.elements[n]=p();var d={elementNames:[[/^cke:/,''],[/^\?xml:namespace$/,'']],attributeNames:[[/^data-cke-(saved|pa)-/,''],[/^data-cke-.*/,''],['hidefocus','']],elements:{$:function(e){var n=e.attributes;if(n){if(n['data-cke-temp'])return!1;var i=['name','href','src'],a;for(var t=0;t<i.length;t++){a='data-cke-saved-'+i[t];a in n&&delete n[i[t]]}};return e},embed:function(e){var t=e.parent;if(t&&t.name=='object'){var n=t.attributes.width,i=t.attributes.height;n&&(e.attributes.width=n);i&&(e.attributes.height=i)}},param:function(e){e.children=[];e.isEmpty=!0;return e},a:function(e){if(!(e.children.length||e.attributes.name||e.attributes['data-cke-saved-name']))return!1},span:function(e){if(e.attributes['class']=='Apple-style-span')delete e.name},pre:function(e){a&&h(e)},html:function(e){delete e.attributes.contenteditable;delete e.attributes['class']},body:function(e){delete e.attributes.spellcheck;delete e.attributes.contenteditable},style:function(e){var n=e.children[0];n&&n.value&&(n.value=t.trim(n.value));if(!e.attributes.type)e.attributes.type='text/css'},title:function(e){var t=e.children[0];t&&(t.value=e.attributes['data-cke-title']||'')}},attributes:{'class':function(e,n){return t.ltrim(e.replace(/(?:^|\s+)cke_[^\s]*/g,''))||!1}},comment:function(t){if(t.substr(0,i.length)==i){if(t.substr(i.length,3)=='{C}')t=t.substr(i.length+3);else t=t.substr(i.length);return new e.htmlParser.cdata(decodeURIComponent(t))};return t}};if(a)d.attributes.style=function(e,t){return e.replace(/(^|;)([^\:]+)/g,function(e){return e.toLowerCase()})};function N(e){var t=e.attributes;if(t.contenteditable!='false')t['data-cke-editable']=t.contenteditable?'true':1;t.contenteditable='false'};function T(e){var t=e.attributes;switch(t['data-cke-editable']){case'true':t.contenteditable='true';break;case'1':delete t.contenteditable;break}};for(n in{input:1,textarea:1}){f.elements[n]=N;d.elements[n]=T};var v=/<(a|area|img|input)\b([^>]*)>/gi,b=/\b(href|src|name)\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|(?:[^ "'>]+))/gi,y=/(?:<style(?=[ >])[^>]*>[\s\S]*<\/style>)|(?:<(:?link|meta|base)[^>]*>)/gi,k=/<cke:encoded>([^<]*)<\/cke:encoded>/gi,w=/(<\/?)((?:object|embed|param|html|body|head|title)[^>]*>)/gi,C=/(<\/?)cke:((?:html|body|head|title)[^>]*>)/gi,x=/<cke:(param|embed)([^>]*?)\/?>(?!\s*<\/cke:\1)/gi;function I(e){return e.replace(v,function(e,t,n){return'<'+t+n.replace(b,function(e,t){if(n.indexOf('data-cke-saved-'+t)==-1)return' data-cke-saved-'+e+' '+e;return e})+'>'})};function B(e){return e.replace(y,function(e){return'<cke:encoded>'+encodeURIComponent(e)+'</cke:encoded>'})};function A(e){return e.replace(k,function(e,t){return decodeURIComponent(t)})};function P(e){return e.replace(w,'$1cke:$2')};function D(e){return e.replace(C,'$1$2')};function L(e){return e.replace(x,'<cke:$1$2></cke:$1>')};function F(e){return e.replace(/(<pre\b[^>]*>)(\r\n|\n)/g,'$1$2$2')};function O(e){return e.replace(/<!--(?!{cke_protected})[\s\S]+?-->/g,function(e){return'<!--'+i+'{C}'+encodeURIComponent(e).replace(/--/g,'%2D%2D')+'-->'})};function R(e){return e.replace(/<!--\{cke_protected\}\{C\}([\s\S]+?)-->/g,function(e,t){return decodeURIComponent(t)})};function M(e,t){var n=[],r=/<\!--\{cke_temp(comment)?\}(\d*?)-->/g,o=[/<script[\s\S]*?<\/script>/gi,/<noscript[\s\S]*?<\/noscript>/gi].concat(t);e=e.replace(/<!--[\s\S]*?-->/g,function(e){return'<!--{cke_tempcomment}'+(n.push(e)-1)+'-->'});for(var a=0;a<o.length;a++)e=e.replace(o[a],function(e){e=e.replace(r,function(e,t,i){return n[i]});return'<!--{cke_temp}'+(n.push(e)-1)+'-->'});e=e.replace(r,function(e,t,a){return'<!--'+i+(t?'{C}':'')+encodeURIComponent(n[a]).replace(/--/g,'%2D%2D')+'-->'});return e};r.add('htmldataprocessor',{requires:['htmlwriter'],init:function(t){var i=t.dataProcessor=new e.htmlDataProcessor(t);i.writer.forceSimpleAmpersand=t.config.forceSimpleAmpersand;i.dataFilter.addRules(f);i.dataFilter.addRules(m);i.htmlFilter.addRules(d);var a={elements:{}};for(n in o)a.elements[n]=p(!0,t.config.fillEmptyBlocks);i.htmlFilter.addRules(a)},onLoad:function(){!('fillEmptyBlocks' in l)&&(l.fillEmptyBlocks=1)}});e.htmlDataProcessor=function(t){var n=this;n.editor=t;n.writer=new e.htmlWriter();n.dataFilter=new e.htmlParser.filter();n.htmlFilter=new e.htmlParser.filter()};e.htmlDataProcessor.prototype={toHtml:function(t,n){t=M(t,this.editor.config.protectedSource);t=I(t);t=B(t);t=P(t);t=L(t);t=F(t);var a=new s('div');a.setHtml('a'+t);t=a.getHtml().substr(1);t=D(t);t=A(t);t=R(t);var r=e.htmlParser.fragment.fromHtml(t,n),i=new e.htmlParser.basicWriter();r.writeHtml(i,this.dataFilter);t=i.getHtml(!0);t=O(t);return t},toDataFormat:function(t,n){var i=this.writer,a=e.htmlParser.fragment.fromHtml(t,n);i.reset();a.writeHtml(i,this.htmlFilter);return i.getHtml(!0)}}})();(function(){function n(e,n){var i=e.createFakeParserElement(n,'cke_iframe','iframe',!0),a=i.attributes.style||'',r=n.attributes.width,o=n.attributes.height;if(typeof r!='undefined')a+='width:'+t.cssLength(r)+';';if(typeof o!='undefined')a+='height:'+t.cssLength(o)+';';i.attributes.style=a;return i};r.add('iframe',{requires:['dialog','fakeobjects'],init:function(t){var n='iframe',i=t.lang.iframe;e.dialog.add(n,this.path+'dialogs/iframe.js');t.addCommand(n,new e.dialogCommand(n));t.addCss('img.cke_iframe{background-image: url('+e.getUrl(this.path+'images/placeholder.png')+');background-position: center center;background-repeat: no-repeat;border: 1px solid #a9a9a9;width: 80px;height: 80px;}');t.ui.addButton('Iframe',{label:i.toolbar,command:n});t.on('doubleclick',function(e){var t=e.data.element;if(t.is('img')&&t.data('cke-real-element-type')=='iframe')e.data.dialog='iframe'});if(t.addMenuItems)t.addMenuItems({iframe:{label:i.title,command:'iframe',group:'image'}});if(t.contextMenu)t.contextMenu.addListener(function(e,t){if(e&&e.is('img')&&e.data('cke-real-element-type')=='iframe')return{iframe:2}})},afterInit:function(e){var t=e.dataProcessor,i=t&&t.dataFilter;if(i)i.addRules({elements:{iframe:function(t){return n(e,t)}}})}})})();r.add('image',{init:function(t){var n='image';e.dialog.add(n,this.path+'dialogs/image.js');t.addCommand(n,new e.dialogCommand(n));t.ui.addButton('Image',{label:t.lang.common.image,command:n});t.on('doubleclick',function(e){var t=e.data.element;if(t.is('img')&&!t.data('cke-realelement'))e.data.dialog='image'});if(t.addMenuItems)t.addMenuItems({image:{label:t.lang.image.menu,command:'image',group:'image'}});if(t.contextMenu)t.contextMenu.addListener(function(e,t){if(!e||!e.is('img')||e.data('cke-realelement')||e.isReadOnly())return null;return{image:2}})}});l.image_removeLinkByEmptyURL=!0;(function(){var e={ol:1,ul:1},d=i.walker.whitespaces(!0),f=i.walker.bookmark(!1,!0);function u(t){var n=this,u=t.editor,l=t.data.path,d=l&&l.contains(e);if(d)return n.setState(2);if(!n.useIndentClasses&&n.name=='indent')return n.setState(2);var s=t.data.path,a=s.block||s.blockLimit;if(!a)return n.setState(0);if(n.useIndentClasses){var i=a.$.className.match(n.classNameRegex),o=0;if(i){i=i[1];o=n.indentClassMap[i]};if(n.name=='outdent'&&!o||n.name=='indent'&&o==u.config.indentClasses.length)return n.setState(0);return n.setState(2)}
+else{var r=parseInt(a.getStyle(c(a)),10);if(isNaN(r))r=0;if(r<=0)return n.setState(0);return n.setState(2)}};function l(e,t){var n=this;n.name=t;n.useIndentClasses=e.config.indentClasses&&e.config.indentClasses.length>0;if(n.useIndentClasses){n.classNameRegex=new RegExp('(?:^|\\s+)('+e.config.indentClasses.join('|')+')(?=$|\\s)');n.indentClassMap={};for(var i=0;i<e.config.indentClasses.length;i++)n.indentClassMap[e.config.indentClasses[i]]=i+1};n.startDisabled=t=='outdent'};function c(e,t){return(t||e.getComputedStyle('direction'))=='ltr'?'margin-left':'margin-right'};function o(e){return e.type=1&&e.is('li')};l.prototype={exec:function(n){var m=this,b={};function T(t){var c=l.startContainer,u=l.endContainer;while(c&&!c.getParent().equals(t))c=c.getParent();while(u&&!u.getParent().equals(t))u=u.getParent();if(!c||!u)return;var w=c,v=[],I=!1;while(!I){if(w.equals(u))I=!0;v.push(w);w=w.getNext()};if(v.length<1)return;var k=t.getParents(!0);for(var i=0;i<k.length;i++){if(k[i].getName&&e[k[i].getName()]){t=k[i];break}};var T=m.name=='indent'?1:-1,A=v[0],S=v[v.length-1],o=r.list.listToArray(t,b),P=o[S.getCustomData('listarray_index')].indent;for(i=A.getCustomData('listarray_index');i<=S.getCustomData('listarray_index');i++){o[i].indent+=T;var N=o[i].parent;o[i].parent=new s(N.getName(),N.getDocument())};for(i=S.getCustomData('listarray_index')+1;i<o.length&&o[i].indent>P;i++)o[i].indent+=T;var x=r.list.arrayToList(o,b,null,n.config.enterMode,t.getDirection());if(m.name=='outdent'){var C;if((C=t.getParent())&&C.is('li')){var E=x.listNode.getChildren(),p=[],B=E.count(),y;for(i=B-1;i>=0;i--){if((y=E.getItem(i))&&y.is&&y.is('li'))p.push(y)}}};if(x)x.listNode.replace(t);if(p&&p.length)for(i=0;i<p.length;i++){var g=p[i],h=g;while((h=h.getNext())&&h.is&&h.getName()in e){if(a&&!g.getFirst(function(e){return d(e)&&f(e)}))g.append(l.document.createText('\xa0'));g.append(h)};g.insertAfter(C)}};function I(){var e=l.createIterator(),i=n.config.enterMode;e.enforceRealBlocks=!0;e.enlargeBr=i!=2;var t;while(t=e.getNextParagraph(i==1?'p':'div'))k(t)};function k(e,i){if(e.getCustomData('indent_processed'))return!1;if(m.useIndentClasses){var o=e.$.className.match(m.classNameRegex),r=0;if(o){o=o[1];r=m.indentClassMap[o]};if(m.name=='outdent')r--;else r++;if(r<0)return!1;r=Math.min(r,n.config.indentClasses.length);r=Math.max(r,0);e.$.className=t.ltrim(e.$.className.replace(m.classNameRegex,''));if(r>0)e.addClass(n.config.indentClasses[r-1])}
+else{var u=c(e,i),a=parseInt(e.getStyle(u),10);if(isNaN(a))a=0;var l=n.config.indentOffset||40;a+=(m.name=='indent'?1:-1)*l;if(a<0)return!1;a=Math.max(a,0);a=Math.ceil(a/l)*l;e.setStyle(u,a?a+(n.config.indentUnit||'px'):'');if(e.getAttribute('style')==='')e.removeAttribute('style')};s.setMarker(b,e,'indent_processed',1);return!0};var v=n.getSelection(),S=v.createBookmarks(1),E=v&&v.getRanges(1),l,N=E.createIterator();while(l=N.getNextRange()){var x=l.getCommonAncestor(),u=x;while(u&&!(u.type==1&&e[u.getName()]))u=u.getParent();if(!u){var g=l.getEnclosedNode();if(g&&g.type==1&&g.getName()in e){l.setStartAt(g,1);l.setEndAt(g,2);u=g}};if(u&&l.startContainer.type==1&&l.startContainer.getName()in e){var h=new i.walker(l);h.evaluator=o;l.startContainer=h.next()};if(u&&l.endContainer.type==1&&l.endContainer.getName()in e){h=new i.walker(l);h.evaluator=o;l.endContainer=h.previous()};if(u){var p=u.getFirst(o),w=!!p.getNext(o),y=l.startContainer,C=p.equals(y)||p.contains(y);if(!(C&&(m.name=='indent'||m.useIndentClasses||parseInt(u.getStyle(c(u)),10))&&k(u,!w&&p.getDirection())))T(u)}
+else I()};s.clearAllMarkers(b);n.forceNextSelectionCheck();v.selectBookmarks(S)}};r.add('indent',{init:function(e){var a=e.addCommand('indent',new l(e,'indent')),r=e.addCommand('outdent',new l(e,'outdent'));e.ui.addButton('Indent',{label:e.lang.indent,command:'indent'});e.ui.addButton('Outdent',{label:e.lang.outdent,command:'outdent'});e.on('selectionChange',t.bind(u,a));e.on('selectionChange',t.bind(u,r));if(n.ie6Compat||n.ie7Compat)e.addCss('ul,ol{\tmargin-left: 0px;\tpadding-left: 40px;}');e.on('dirChanged',function(t){var o=new i.range(e.document);o.setStartBefore(t.data.node);o.setEndAfter(t.data.node);var u=new i.walker(o),n;while(n=u.next()){if(n.type==1){if(!n.equals(t.data.node)&&n.getDirection()){o.setStartAfter(n);u=new i.walker(o);continue};var r=e.config.indentClasses;if(r){var s=t.data.dir=='ltr'?['_rtl','']:['','_rtl'];for(var a=0;a<r.length;a++){if(n.hasClass(r[a]+s[0])){n.removeClass(r[a]+s[0]);n.addClass(r[a]+s[1])}}};var l=n.getStyle('margin-right'),c=n.getStyle('margin-left');l?n.setStyle('margin-left',l):n.removeStyle('margin-left');c?n.setStyle('margin-right',c):n.removeStyle('margin-right')}}})},requires:['domiterator','list']})})();(function(){function o(e,t){var n=t.block||t.blockLimit;if(!n||n.getName()=='body')return 2;return a(n,e.config.useComputedState)==this.value?1:2};function a(e,t){t=t===undefined||t;var n;if(t)n=e.getComputedStyle('text-align');else{while(!e.hasAttribute||!(e.hasAttribute('align')||e.getStyle('text-align'))){var i=e.getParent();if(!i)break;e=i};n=e.getStyle('text-align')||e.getAttribute('align')||''};n&&(n=n.replace(/-moz-|-webkit-|start|auto/i,''));!n&&t&&(n=e.getComputedStyle('direction')=='rtl'?'right':'left');return n};function n(e){var t=e.editor.getCommand(this.name);t.state=o.call(this,e.editor,e.data.path);t.fire('state')};function e(e,t,n){var i=this;i.name=t;i.value=n;var a=e.config.justifyClasses;if(a){switch(n){case'left':i.cssClassName=a[0];break;case'center':i.cssClassName=a[1];break;case'right':i.cssClassName=a[2];break;case'justify':i.cssClassName=a[3];break};i.cssClassRegex=new RegExp('(?:^|\\s+)(?:'+a.join('|')+')(?=$|\\s)')}};function s(e){var l=e.editor,a=new i.range(l.document);a.setStartBefore(e.data.node);a.setEndAfter(e.data.node);var s=new i.walker(a),t;while(t=s.next()){if(t.type==1){if(!t.equals(e.data.node)&&t.getDirection()){a.setStartAfter(t);s=new i.walker(a);continue};var n=l.config.justifyClasses;if(n)if(t.hasClass(n[0])){t.removeClass(n[0]);t.addClass(n[2])}
+else if(t.hasClass(n[2])){t.removeClass(n[2]);t.addClass(n[0])};var r='text-align',o=t.getStyle(r);if(o=='left')t.setStyle(r,'right');else if(o=='right')t.setStyle(r,'left')}}};e.prototype={exec:function(e){var i=this,o=e.getSelection(),f=e.config.enterMode;if(!o)return;var g=o.createBookmarks(),d=o.getRanges(!0),l=i.cssClassName,c,n,r=e.config.useComputedState;r=r===undefined||r;for(var s=d.length-1;s>=0;s--){c=d[s].createIterator();c.enlargeBr=f!=2;while(n=c.getNextParagraph(f==1?'p':'div')){n.removeAttribute('align');n.removeStyle('text-align');var m=l&&(n.$.className=t.ltrim(n.$.className.replace(i.cssClassRegex,''))),u=i.state==2&&(!r||a(n,!0)!=i.value);if(l){if(u)n.addClass(l);else if(!m)n.removeAttribute('class')}
+else if(u)n.setStyle('text-align',i.value)}};e.focus();e.forceNextSelectionCheck();o.selectBookmarks(g)}};r.add('justify',{init:function(i){var a=new e(i,'justifyleft','left'),r=new e(i,'justifycenter','center'),o=new e(i,'justifyright','right'),l=new e(i,'justifyblock','justify');i.addCommand('justifyleft',a);i.addCommand('justifycenter',r);i.addCommand('justifyright',o);i.addCommand('justifyblock',l);i.ui.addButton('JustifyLeft',{label:i.lang.justify.left,command:'justifyleft'});i.ui.addButton('JustifyCenter',{label:i.lang.justify.center,command:'justifycenter'});i.ui.addButton('JustifyRight',{label:i.lang.justify.right,command:'justifyright'});i.ui.addButton('JustifyBlock',{label:i.lang.justify.block,command:'justifyblock'});i.on('selectionChange',t.bind(n,a));i.on('selectionChange',t.bind(n,o));i.on('selectionChange',t.bind(n,r));i.on('selectionChange',t.bind(n,l));i.on('dirChanged',s)},requires:['domiterator']})})();r.add('keystrokes',{beforeInit:function(t){t.keystrokeHandler=new e.keystrokeHandler(t);t.specialKeys={}},init:function(e){var n=e.config.keystrokes,i=e.config.blockedKeystrokes,a=e.keystrokeHandler.keystrokes,r=e.keystrokeHandler.blockedKeystrokes;for(var t=0;t<n.length;t++)a[n[t][0]]=n[t][1];for(t=0;t<i.length;t++)r[i[t]]=1}});e.keystrokeHandler=function(e){var t=this;if(e.keystrokeHandler)return e.keystrokeHandler;t.keystrokes={};t.blockedKeystrokes={};t._={editor:e};return t};(function(){var t,i=function(e){e=e.data;var n=e.getKeystroke(),r=this.keystrokes[n],i=this._.editor;t=i.fire('key',{keyCode:n})===!0;if(!t){if(r){var o={from:'keystrokeHandler'};t=i.execCommand(r,o)!==!1};if(!t){var a=i.specialKeys[n];t=a&&a(i)===!0;if(!t)t=!!this.blockedKeystrokes[n]}};if(t)e.preventDefault(!0);return!t},a=function(e){if(t){t=!1;e.data.preventDefault(!0)}};e.keystrokeHandler.prototype={attach:function(e){e.on('keydown',i,this);if(n.opera||n.gecko&&n.mac)e.on('keypress',a,this)}}})();l.blockedKeystrokes=[1000+66,1000+73,1000+85];l.keystrokes=[[4000+121,'toolbarFocus'],[4000+122,'elementsPathFocus'],[2000+121,'contextMenu'],[1000+2000+121,'contextMenu'],[1000+90,'undo'],[1000+89,'redo'],[1000+2000+90,'redo'],[1000+76,'link'],[1000+66,'bold'],[1000+73,'italic'],[1000+85,'underline'],[4000+109,'toolbarCollapse'],[4000+48,'a11yHelp']];r.add('link',{init:function(t){t.addCommand('link',new e.dialogCommand('link'));t.addCommand('anchor',new e.dialogCommand('anchor'));t.addCommand('unlink',new e.unlinkCommand());t.ui.addButton('Link',{label:t.lang.link.toolbar,command:'link'});t.ui.addButton('Unlink',{label:t.lang.unlink,command:'unlink'});t.ui.addButton('Anchor',{label:t.lang.anchor.toolbar,command:'anchor'});e.dialog.add('link',this.path+'dialogs/link.js');e.dialog.add('anchor',this.path+'dialogs/anchor.js');var n=t.lang.dir=='rtl'?'right':'left';t.addCss('img.cke_anchor{background-image: url('+e.getUrl(this.path+'images/anchor.gif')+');background-position: center center;background-repeat: no-repeat;border: 1px solid #a9a9a9;width: 18px !important;height: 18px !important;}\na.cke_anchor{background-image: url('+e.getUrl(this.path+'images/anchor.gif')+');background-position: '+n+' center;background-repeat: no-repeat;border: 1px solid #a9a9a9;padding-'+n+': 18px;}');t.on('selectionChange',function(e){var i=t.getCommand('unlink'),n=e.data.path.lastElement&&e.data.path.lastElement.getAscendant('a',!0);if(n&&n.getName()=='a'&&n.getAttribute('href'))i.setState(2);else i.setState(0)});t.on('doubleclick',function(e){var n=r.link.getSelectedLink(t)||e.data.element;if(!n.isReadOnly())if(n.is('a'))e.data.dialog=n.getAttribute('name')&&!n.getAttribute('href')?'anchor':'link';else if(n.is('img')&&n.data('cke-real-element-type')=='anchor')e.data.dialog='anchor'});if(t.addMenuItems)t.addMenuItems({anchor:{label:t.lang.anchor.menu,command:'anchor',group:'anchor'},link:{label:t.lang.link.menu,command:'link',group:'link',order:1},unlink:{label:t.lang.unlink,command:'unlink',group:'link',order:5}});if(t.contextMenu)t.contextMenu.addListener(function(e,n){if(!e||e.isReadOnly())return null;var i=e.is('img')&&e.data('cke-real-element-type')=='anchor';if(!i){if(!(e=r.link.getSelectedLink(t)))return null;i=e.getAttribute('name')&&!e.getAttribute('href')};return i?{anchor:2}:{link:2,unlink:2}})},afterInit:function(e){var t=e.dataProcessor,n=t&&t.dataFilter;if(n)n.addRules({elements:{a:function(t){var n=t.attributes;if(n.name&&!n.href)return e.createFakeParserElement(t,'cke_anchor','anchor')}}})},requires:['fakeobjects']});r.link={getSelectedLink:function(e){try{var n=e.getSelection();if(n.getType()==3){var a=n.getSelectedElement();if(a.is('a'))return a};var i=n.getRanges(!0)[0];i.shrink(2);var r=i.getCommonAncestor();return r.getAscendant('a',!0)}catch(t){return null}}};e.unlinkCommand=function(){};e.unlinkCommand.prototype={exec:function(e){var n=e.getSelection(),o=n.createBookmarks(),i=n.getRanges(),r,a;for(var t=0;t<i.length;t++){r=i[t].getCommonAncestor(!0);a=r.getAscendant('a',!0);if(!a)continue;i[t].selectNodeContents(a)};n.selectRanges(i);e.document.$.execCommand('unlink',!1,null);n.selectBookmarks(o)},startDisabled:!0};t.extend(l,{linkShowAdvancedTab:!0,linkShowTargetTab:!0});(function(){var n={ol:1,ul:1},S=/^[\n\r\t ]*$/,v=i.walker.whitespaces(),b=i.walker.bookmark(),y=function(e){return!(v(e)||b(e))};r.list={listToArray:function(e,t,i,a,o){if(!n[e.getName()])return[];if(!a)a=0;if(!i)i=[];for(var f=0,g=e.getChildCount();f<g;f++){var u=e.getChild(f);if(u.$.nodeName.toLowerCase()!='li')continue;var l={parent:e,indent:a,element:u,contents:[]};if(!o){l.grandparent=e.getParent();if(l.grandparent&&l.grandparent.$.nodeName.toLowerCase()=='li')l.grandparent=l.grandparent.getParent()}
+else l.grandparent=o;if(t)s.setMarker(t,u,'listarray_index',i.length);i.push(l);for(var d=0,m=u.getChildCount(),c;d<m;d++){c=u.getChild(d);if(c.type==1&&n[c.getName()])r.list.listToArray(c,t,i,a+1,l.grandparent);else l.contents.push(c)}};return i},arrayToList:function(e,t,o,l,d){if(!o)o=0;if(!e||e.length<o+1)return null;var g=e[o].parent.getDocument(),k=new i.documentFragment(g),v=null,m=o,w=Math.max(e[o].indent,0),u=null,T=l==1?'p':'div';while(1){var f=e[m];if(f.indent==w){if(!v||e[m].parent.getName()!=v.getName()){v=e[m].parent.clone(!1,1);d&&v.setAttribute('dir',d);k.append(v)};u=v.append(f.element.clone(0,1));for(var p=0;p<f.contents.length;p++)u.append(f.contents[p].clone(1,1));m++}
+else if(f.indent==Math.max(w,0)+1){var N=r.list.arrayToList(e,null,m,l);if(!u.getChildCount()&&a&&!(g.$.documentMode>7))u.append(g.createText('\xa0'));u.append(N.listNode);m=N.nextIndex}
+else if(f.indent==-1&&!o&&f.grandparent){u;if(n[f.grandparent.getName()])u=f.element.clone(!1,!0);else if(d||f.element.hasAttributes()||l!=2){u=g.createElement(T);f.element.copyAttributes(u,{type:1,value:1});var E=f.element.getDirection()||d;E&&u.setAttribute('dir',E);if(!d&&l==2&&!u.hasAttributes())u=new i.documentFragment(g)}
+else u=new i.documentFragment(g);for(p=0;p<f.contents.length;p++)u.append(f.contents[p].clone(1,1));if(u.type==11&&m!=e.length-1){var h=u.getLast();if(h&&h.type==1&&h.getAttribute('type')=='_moz')h.remove();if(!(h=u.getLast(y)&&h.type==1&&h.getName()in c.$block))u.append(g.createElement('br'))};if(u.type==1&&u.getName()==T&&u.$.firstChild){u.trim();var S=u.getFirst();if(S.type==1&&S.isBlockBoundary()){var x=new i.documentFragment(g);u.moveChildren(x);u=x}};var C=u.$.nodeName.toLowerCase();if(!a&&(C=='div'||C=='p'))u.appendBogus();k.append(u);v=null;m++}
+else return null;if(e.length<=m||Math.max(e[m].indent,0)<w)break};if(t){var b=k.getFirst();while(b){if(b.type==1)s.clearMarkers(t,b);b=b.getNextSourceNode()}};return{listNode:k,nextIndex:m}}};function g(e){var a=e.data.path,o=a.blockLimit,i=a.elements,r,t;for(t=0;t<i.length&&(r=i[t])&&!r.equals(o);t++){if(n[i[t].getName()])return this.setState(this.type==i[t].getName()?1:2)};return this.setState(2)};function k(e,t,n,i){var m=r.list.listToArray(t.root,n),d=[];for(var a=0;a<t.contents.length;a++){var o=t.contents[a];o=o.getAscendant('li',!0);if(!o||o.getCustomData('list_item_processed'))continue;d.push(o);s.setMarker(n,o,'list_item_processed',!0)};var f=t.root,u=f.getDocument().createElement(this.type);f.copyAttributes(u,{start:1,type:1});u.removeStyle('list-style-type');for(a=0;a<d.length;a++){var h=d[a].getCustomData('listarray_index');m[h].parent=u};var l=r.list.arrayToList(m,n,null,e.config.enterMode),c,g=l.listNode.getChildCount();for(a=0;a<g&&(c=l.listNode.getChild(a));a++){if(c.getName()==this.type)i.push(c)};l.listNode.replace(t.root)};var p=/^h[1-6]$/;function w(e,t,n){var a=t.contents,v=t.root.getDocument(),s=[];if(a.length==1&&a[0].equals(t.root)){var h=v.createElement('div');a[0].moveChildren&&a[0].moveChildren(h);a[0].append(h);a[0]=h};var f=t.contents[0].getParent();for(var o=0;o<a.length;o++)f=f.getCommonAncestor(a[o].getParent());var d=e.config.useComputedState,r,g;d=d===undefined||d;for(o=0;o<a.length;o++){var u=a[o],m;while(m=u.getParent()){if(m.equals(f)){s.push(u);if(!g&&u.getDirection())g=1;var y=u.getDirection(d);if(r!==null)if(r&&r!=y)r=null;else r=y;break};u=m}};if(s.length<1)return;var b=s[s.length-1].getNext(),c=v.createElement(this.type);n.push(c);var i,l;while(s.length){i=s.shift();l=v.createElement('li');if(i.is('pre')||p.test(i.getName()))i.appendTo(l);else{if(r&&i.getDirection()){i.removeStyle('direction');i.removeAttribute('dir')};i.copyAttributes(l);i.moveChildren(l);i.remove()};l.appendTo(c)};if(r&&g)c.setAttribute('dir',r);if(b)c.insertBefore(b);else c.appendTo(f)};function C(e,t,n){var o=r.list.listToArray(t.root,n),d=[];for(var a=0;a<t.contents.length;a++){var l=t.contents[a];l=l.getAscendant('li',!0);if(!l||l.getCustomData('list_item_processed'))continue;d.push(l);s.setMarker(n,l,'list_item_processed',!0)};var g=null;for(a=0;a<d.length;a++){var m=d[a].getCustomData('listarray_index');o[m].indent=-1;g=m};for(a=g+1;a<o.length;a++){if(o[a].indent>o[a-1].indent+1){var v=o[a-1].indent+1-o[a].indent,b=o[a].indent;while(o[a]&&o[a].indent>=b){o[a].indent+=v;a++};a--}};var p=r.list.arrayToList(o,n,null,e.config.enterMode,t.root.getAttribute('dir')),f=p.listNode,c,u;function h(n){if((c=f[n?'getFirst':'getLast']())&&!(c.is&&c.isBlockBoundary())&&(u=t.root[n?'getPrevious':'getNext'](i.walker.whitespaces(!0)))&&!(u.is&&u.isBlockBoundary({br:1})))e.document.createElement('br')[n?'insertBefore':'insertAfter'](c)};h(!0);h();f.replace(t.root)};function u(e,t){this.name=e;this.type=t};u.prototype={exec:function(e){e.focus();var E=e.document,m=e.getSelection(),a=m&&m.getRanges(!0);if(!a||a.length<1)return;if(this.state==2){var S=E.getBody();S.trim();if(!S.getFirst()){var f=E.createElement(e.config.enterMode==1?'p':e.config.enterMode==3?'div':'br');f.appendTo(S);a=new i.rangeList([new i.range(E)]);if(f.is('br')){a[0].setStartBefore(f);a[0].setEndAfter(f)}
+else a[0].selectNodeContents(f);m.selectRanges(a)}
+else{var l=a.length==1&&a[0],x=l&&l.getEnclosedNode();if(x&&x.is&&this.type==x.getName())this.setState(1)}};var O=m.createBookmarks(!0),v=[],u={},R=a.createIterator(),d=0;while((l=R.getNextRange())&&++d){var p=l.getBoundaryNodes(),P=p.startNode,D=p.endNode;if(P.type==1&&P.getName()=='td')l.setStartAt(p.startNode,1);if(D.type==1&&D.getName()=='td')l.setEndAt(p.endNode,2);var A=l.createIterator(),r;A.forceBrBreak=this.state==2;while(r=A.getNextParagraph()){if(r.getCustomData('list_block'))continue;else s.setMarker(u,r,'list_block',1);var T=new i.elementPath(r),I=T.elements,F=I.length,b=null,B=0,y=T.blockLimit,c;for(var o=F-1;o>=0&&(c=I[o]);o--){if(n[c.getName()]&&y.contains(c)){y.removeCustomData('list_group_object_'+d);var t=c.getCustomData('list_group_object');if(t)t.contents.push(r);else{t={root:c,contents:[r]};v.push(t);s.setMarker(u,c,'list_group_object',t)};B=1;break}};if(B)continue;var h=y;if(h.getCustomData('list_group_object_'+d))h.getCustomData('list_group_object_'+d).contents.push(r);else{t={root:h,contents:[r]};s.setMarker(u,h,'list_group_object_'+d,t);v.push(t)}}};var g=[];while(v.length>0){t=v.shift();if(this.state==2){if(n[t.root.getName()])k.call(this,e,t,u,g);else w.call(this,e,t,g)}
+else if(this.state==1&&n[t.root.getName()])C.call(this,e,t,u)};for(o=0;o<g.length;o++){b=g[o];var N,L=this;(N=function(e){var t=b[e?'getPrevious':'getNext'](i.walker.whitespaces(!0));if(t&&t.getName&&t.getName()==L.type){t.remove();t.moveChildren(b,e)}})();N(1)};s.clearAllMarkers(u);m.selectBookmarks(O);e.focus()}};var l=c,m=/[\t\r\n ]*(?: |\xa0)$/;function x(e,t){var i,a=e.children,r=a.length;for(var n=0;n<r;n++){i=a[n];if(i.name&&i.name in t)return n};return r};function h(t){return function(n){var o=n.children,c=x(n,l.$list),u=o[c],i=u&&u.previous,s;if(i&&(i.name&&i.name=='br'||i.value&&(s=i.value.match(m)))){var r=i;if(!(s&&s.index)&&r==o[0])o[0]=t||a?new e.htmlParser.text('\xa0'):new e.htmlParser.element('br',{});else if(r.name=='br')o.splice(c-1,1);else r.value=r.value.replace(m,'')}}};var f={elements:{}};for(var o in l.$listItem)f.elements[o]=h();var d={elements:{}};for(o in l.$listItem)d.elements[o]=h(!0);r.add('list',{init:function(e){var n=e.addCommand('numberedlist',new u('numberedlist','ol')),i=e.addCommand('bulletedlist',new u('bulletedlist','ul'));e.ui.addButton('NumberedList',{label:e.lang.numberedlist,command:'numberedlist'});e.ui.addButton('BulletedList',{label:e.lang.bulletedlist,command:'bulletedlist'});e.on('selectionChange',t.bind(g,n));e.on('selectionChange',t.bind(g,i))},afterInit:function(e){var t=e.dataProcessor;if(t){t.dataFilter.addRules(f);t.htmlFilter.addRules(d)}},requires:['domiterator']})})();(function(){r.liststyle={requires:['dialog'],init:function(t){t.addCommand('numberedListStyle',new e.dialogCommand('numberedListStyle'));e.dialog.add('numberedListStyle',this.path+'dialogs/liststyle.js');t.addCommand('bulletedListStyle',new e.dialogCommand('bulletedListStyle'));e.dialog.add('bulletedListStyle',this.path+'dialogs/liststyle.js');if(t.addMenuItems){t.addMenuGroup('list',108);t.addMenuItems({numberedlist:{label:t.lang.list.numberedTitle,group:'list',command:'numberedListStyle'},bulletedlist:{label:t.lang.list.bulletedTitle,group:'list',command:'bulletedListStyle'}})};if(t.contextMenu)t.contextMenu.addListener(function(e,t){if(!e||e.isReadOnly())return null;while(e){var n=e.getName();if(n=='ol')return{numberedlist:2};else if(n=='ul')return{bulletedlist:2};e=e.getParent()};return null})}};r.add('liststyle',r.liststyle)})();(function(){function i(e){if(!e||e.type!=1||e.getName()!='form')return[];var a=[],r=['style','className'];for(var n=0;n<r.length;n++){var o=r[n],i=e.$.elements.namedItem(o);if(i){var t=new s(i);a.push([t,t.nextSibling]);t.remove()}};return a};function o(e,t){if(!e||e.type!=1||e.getName()!='form')return;if(t.length>0)for(var n=t.length-1;n>=0;n--){var i=t[n][0],a=t[n][1];if(a)i.insertBefore(a);else i.appendTo(e)}};function t(e,t){var r=i(e),a={},n=e.$;if(!t){a['class']=n.className||'';n.className=''};a.inline=n.style.cssText||'';if(!t)n.style.cssText='position: static; overflow: visible';o(r);return a};function l(e,t){var a=i(e),n=e.$;if('class' in t)n.className=t['class'];if('inline' in t)n.style.cssText=t.inline;o(a)};function c(t){var a=e.instances;for(var r in a){var i=a[r];if(i.mode=='wysiwyg'){var n=i.document.getBody();n.setAttribute('contentEditable',!1);n.setAttribute('contentEditable',!0)}};if(t.focusManager.hasFocus){t.toolbox.focus();t.focus()}};function u(e){if(!a||n.version>6)return null;var t=s.createFromHtml('<iframe frameborder="0" tabindex="-1" src="javascript:void((function(){document.open();'+(n.isCustomDomain()?'document.domain=\''+this.getDocument().$.domain+'\';':'')+'document.close();})())" style="display:block;position:absolute;z-index:-1;progid:DXImageTransform.Microsoft.Alpha(opacity=0);"></iframe>');return e.append(t,!0)};r.add('maximize',{init:function(i){var g=i.lang,m=e.document,r=m.getWindow(),o,s,f,d;function h(){var e=r.getViewPaneSize();d&&d.setStyles({width:e.width+'px',height:e.height+'px'});i.resize(e.width,e.height,null,!0)};var p=2;i.addCommand('maximize',{modes:{wysiwyg:1,source:1},editorFocus:!1,exec:function(){var e=i.container.getChild(1),x=i.getThemeSpace('contents');if(i.mode=='wysiwyg'){var I=i.getSelection();o=I&&I.getRanges();s=r.getScrollPosition()}
+else{var b=i.textarea.$;o=!a&&[b.selectionStart,b.selectionEnd];s=[b.scrollLeft,b.scrollTop]};if(this.state==2){r.on('resize',h);f=r.getScrollPosition();var v=i.container;while(v=v.getParent()){v.setCustomData('maximize_saved_styles',t(v));v.setStyle('z-index',i.config.baseFloatZIndex-1)};x.setCustomData('maximize_saved_styles',t(x,!0));e.setCustomData('maximize_saved_styles',t(e,!0));var T={overflow:n.webkit?'':'hidden',width:0,height:0};m.getDocumentElement().setStyles(T);!n.gecko&&m.getDocumentElement().setStyle('position','fixed');m.getBody().setStyles(T);a?setTimeout(function(){r.$.scrollTo(0,0)},0):r.$.scrollTo(0,0);e.setStyle('position','absolute');e.$.offsetLeft;e.setStyles({'z-index':i.config.baseFloatZIndex-1,left:'0px',top:'0px'});d=u(e);e.addClass('cke_maximized');h();var N=e.getDocumentPosition();e.setStyles({left:-1*N.x+'px',top:-1*N.y+'px'});n.gecko&&c(i)}
+else if(this.state==1){r.removeListener('resize',h);var k=[x,e];for(var y=0;y<k.length;y++){l(k[y],k[y].getCustomData('maximize_saved_styles'));k[y].removeCustomData('maximize_saved_styles')};v=i.container;while(v=v.getParent()){l(v,v.getCustomData('maximize_saved_styles'));v.removeCustomData('maximize_saved_styles')};a?setTimeout(function(){r.$.scrollTo(f.x,f.y)},0):r.$.scrollTo(f.x,f.y);e.removeClass('cke_maximized');if(n.webkit){e.setStyle('display','inline');setTimeout(function(){e.setStyle('display','block')},0)};if(d){d.remove();d=null};i.fire('resize')};this.toggleState();var E=this.uiItems[0];if(E){var w=this.state==2?g.maximize:g.minimize,C=i.element.getDocument().getById(E._.id);C.getChild(1).setHtml(w);C.setAttribute('title',w);C.setAttribute('href','javascript:void("'+w+'");')};if(i.mode=='wysiwyg'){if(o){n.gecko&&c(i);i.getSelection().selectRanges(o);var S=i.getSelection().getStartElement();S&&S.scrollIntoView(!0)}
+else r.$.scrollTo(s.x,s.y)}
+else{if(o){b.selectionStart=o[0];b.selectionEnd=o[1]};b.scrollLeft=s[0];b.scrollTop=s[1]};o=s=null;p=this.state},canUndo:!1});i.ui.addButton('Maximize',{label:g.maximize,command:'maximize'});i.on('mode',function(){var e=i.getCommand('maximize');e.setState(e.state==0?0:p)},null,null,100)}})})();r.add('newpage',{init:function(e){e.addCommand('newpage',{modes:{wysiwyg:1,source:1},exec:function(e){var t=this;e.setData(e.config.newpage_html||'',function(){setTimeout(function(){e.fire('afterCommandExec',{name:t.name,command:t})},200)});e.focus()},async:!0});e.ui.addButton('NewPage',{label:e.lang.newPage,command:'newpage'})}});r.add('pagebreak',{init:function(t){t.addCommand('pagebreak',r.pagebreakCmd);t.ui.addButton('PageBreak',{label:t.lang.pagebreak,command:'pagebreak'});t.addCss('img.cke_pagebreak{background-image: url('+e.getUrl(this.path+'images/pagebreak.gif')+');background-position: center center;background-repeat: no-repeat;clear: both;display: block;float: none;width:100% !important; _width:99.9% !important;border-top: #999999 1px dotted;border-bottom: #999999 1px dotted;height: 5px !important;page-break-after: always;}')},afterInit:function(e){var t=e.dataProcessor,n=t&&t.dataFilter;if(n)n.addRules({elements:{div:function(t){var r=t.attributes,o=r&&r.style,i=o&&t.children.length==1&&t.children[0],s=i&&i.name=='span'&&i.attributes.style;if(s&&/page-break-after\s*:\s*always/i.test(o)&&/display\s*:\s*none/i.test(s)){var n=e.createFakeParserElement(t,'cke_pagebreak','div'),a=e.lang.pagebreakAlt;n.attributes.alt=a;n.attributes['aria-label']=a;return n}}}})},requires:['fakeobjects']});r.pagebreakCmd={exec:function(e){var o=e.lang.pagebreakAlt,t=s.createFromHtml('<div style="page-break-after: always;"><span style="display: none;"> </span></div>');t=e.createFakeElement(t,'cke_pagebreak','div');t.setAttributes({alt:o,'aria-label':o,title:o});var a=e.getSelection().getRanges(!0);e.fire('saveSnapshot');for(var n,i=a.length-1;i>=0;i--){n=a[i];if(i<a.length-1)t=t.clone(!0);n.splitBlock('p');n.insertNode(t);if(i==a.length-1){n.moveToPosition(t,4);n.select()};var r=t.getPrevious();if(r&&c[r.getName()].div)t.move(r)};e.fire('saveSnapshot')}};(function(){r.add('pastefromword',{init:function(t){var n=0,i=function(){setTimeout(function(){n=0},0)};t.addCommand('pastefromword',{canUndo:!1,exec:function(){n=1;if(t.execCommand('paste')===!1)t.on('dialogHide',function(e){e.removeListener();i()});else i()}});t.ui.addButton('PasteFromWord',{label:t.lang.pastefromword.toolbar,command:'pastefromword'});t.on('pasteState',function(e){t.getCommand('pastefromword').setState(e.data)});t.on('paste',function(i){var a=i.data,r;if((r=a.html)&&(n||/(class="?Mso|style="[^"]*\bmso\-|w:WordDocument)/.test(r))){var o=this.loadFilterRules(function(){if(o)t.fire('paste',a);else if(!t.config.pasteFromWordPromptCleanup||n||confirm(t.lang.pastefromword.confirmCleanup))a.html=e.cleanWord(r,t)});o&&i.cancel()}},this)},loadFilterRules:function(t){var n=e.cleanWord;if(n)t();else{var i=e.getUrl(l.pasteFromWordCleanupFile||this.path+'filter/default.js');e.scriptLoader.load(i,t,null,!0)};return!n},requires:['clipboard']})})();(function(){var n={exec:function(e){var n=t.tryThese(function(){var e=window.clipboardData.getData('Text');if(!e)throw 0;return e});if(!n){e.openDialog('pastetext');return!1}
+else e.fire('paste',{text:n});return!0}};r.add('pastetext',{init:function(t){var i='pastetext',a=t.addCommand(i,n);t.ui.addButton('PasteText',{label:t.lang.pasteText.button,command:i});e.dialog.add(i,e.getUrl(this.path+'dialogs/pastetext.js'));if(t.config.forcePasteAsPlainText)t.on('beforeCommandExec',function(e){if(e.data.name=='paste'){t.execCommand('pastetext');e.cancel()}},null,null,0);t.on('pasteState',function(e){t.getCommand('pastetext').setState(e.data)})},requires:['clipboard']})})();r.add('popup');t.extend(e.editor.prototype,{popup:function(e,t,n,i){t=t||'80%';n=n||'70%';if(typeof t=='string'&&t.length>1&&t.substr(t.length-1,1)=='%')t=parseInt(window.screen.width*parseInt(t,10)/100,10);if(typeof n=='string'&&n.length>1&&n.substr(n.length-1,1)=='%')n=parseInt(window.screen.height*parseInt(n,10)/100,10);if(t<640)t=640;if(n<420)n=420;var o=parseInt((window.screen.height-n)/2,10),s=parseInt((window.screen.width-t)/2,10);i=(i||'location=no,menubar=no,toolbar=no,dependent=yes,minimizable=no,modal=yes,alwaysRaised=yes,resizable=yes,scrollbars=yes')+',width='+t+',height='+n+',top='+o+',left='+s;var r=window.open('',null,i,!0);if(!r)return!1;try{r.moveTo(s,o);r.resizeTo(t,n);r.focus();r.location.href=e}catch(a){r=window.open(e,null,i,!0)};return!0}});(function(){var i={modes:{wysiwyg:1,source:1},canUndo:!1,exec:function(e){var o,c=e.config,g=c.baseHref?'<base href="'+c.baseHref+'"/>':'',h=n.isCustomDomain();if(c.fullPage)o=e.getData().replace(/<head>/,'$&'+g).replace(/[^>]*(?=<\/title>)/,'$& — '+e.lang.preview);else{var r='<body ',a=e.document&&e.document.getBody();if(a){if(a.getAttribute('id'))r+='id="'+a.getAttribute('id')+'" ';if(a.getAttribute('class'))r+='class="'+a.getAttribute('class')+'" '};r+='>';o=e.config.docType+'<html dir="'+e.config.contentsLangDirection+'"><head>'+g+'<title>'+e.lang.preview+'</title>'+t.buildStyleHtml(e.config.contentsCss)+'</head>'+r+e.getData()+'</body></html>'};var d=640,f=420,m=80;try{var l=window.screen;d=Math.round(l.width*0.8);f=Math.round(l.height*0.7);m=Math.round(l.width*0.1)}catch(i){};var u='';if(h){window._cke_htmlToLoad=o;u='javascript:void( (function(){document.open();document.domain="'+document.domain+'";document.write( window.opener._cke_htmlToLoad );document.close();window.opener._cke_htmlToLoad = null;})() )'};var s=window.open(u,null,'toolbar=yes,location=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width='+d+',height='+f+',left='+m);if(!h){s.document.open();s.document.write(o);s.document.close()}}},e='preview';r.add(e,{init:function(t){t.addCommand(e,i);t.ui.addButton('Preview',{label:t.lang.preview,command:e})}})})();r.add('print',{init:function(e){var t='print',n=e.addCommand(t,r.print);e.ui.addButton('Print',{label:e.lang.print,command:t})}});r.print={exec:function(e){if(n.opera)return;else if(n.gecko)e.window.$.print();else e.document.$.execCommand('Print')},canUndo:!1,modes:{wysiwyg:!n.opera}};r.add('removeformat',{requires:['selection'],init:function(e){e.addCommand('removeFormat',r.removeformat.commands.removeformat);e.ui.addButton('RemoveFormat',{label:e.lang.removeFormat,command:'removeFormat'});e._.removeFormat={filters:[]}}});r.removeformat={commands:{removeformat:{exec:function(e){var c=e._.removeFormatRegex||(e._.removeFormatRegex=new RegExp('^(?:'+e.config.removeFormatTags.replace(/,/g,'|')+')$','i')),m=e._.removeAttributes||(e._.removeAttributes=e.config.removeFormatAttributes.split(',')),u=r.removeformat.filter,d=e.getSelection().getRanges(1),g=d.createIterator(),n;while(n=g.getNextRange()){if(!n.collapsed)n.enlarge(1);var a=n.createBookmark(),s=a.startNode,o=a.endNode,t,l=function(t){var a=new i.elementPath(t),o=a.elements;for(var r=1,n;n=o[r];r++){if(n.equals(a.block)||n.equals(a.blockLimit))break;if(c.test(n.getName())&&u(e,n))t.breakParent(n)}};l(s);if(o){l(o);t=s.getNextSourceNode(!0,1);while(t){if(t.equals(o))break;var f=t.getNextSourceNode(!1,1);if(!(t.getName()=='img'&&t.data('cke-realelement'))&&u(e,t))if(c.test(t.getName()))t.remove(1);else{t.removeAttributes(m);e.fire('removeFormatCleanup',t)};t=f}};n.moveToBookmark(a)};e.getSelection().selectRanges(d)}}},filter:function(e,t){var i=e._.removeFormat.filters;for(var n=0;n<i.length;n++){if(i[n](t)===!1)return!1};return!0}};e.editor.prototype.addRemoveFormatFilter=function(e){this._.removeFormat.filters.push(e)};l.removeFormatTags='b,big,code,del,dfn,em,font,i,ins,kbd,q,samp,small,span,strike,strong,sub,sup,tt,u,var';l.removeFormatAttributes='class,style,lang,width,height,align,hspace,valign';r.add('resize',{init:function(n){var i=n.config;!i.resize_dir&&(i.resize_dir='both');i.resize_maxWidth==undefined&&(i.resize_maxWidth=3000);i.resize_maxHeight==undefined&&(i.resize_maxHeight=3000);i.resize_minWidth==undefined&&(i.resize_minWidth=750);i.resize_minHeight==undefined&&(i.resize_minHeight=250);if(i.resize_enabled!==!1){var r=null,l,a,c=(i.resize_dir=='both'||i.resize_dir=='horizontal')&&i.resize_minWidth!=i.resize_maxWidth,u=(i.resize_dir=='both'||i.resize_dir=='vertical')&&i.resize_minHeight!=i.resize_maxHeight;function o(e){var o=e.data.$.screenX-l.x,s=e.data.$.screenY-l.y,t=a.width,r=a.height,d=t+o*(n.lang.dir=='rtl'?-1:1),f=r+s;if(c)t=Math.max(i.resize_minWidth,Math.min(d,i.resize_maxWidth));if(u)r=Math.max(i.resize_minHeight,Math.min(f,i.resize_maxHeight));n.resize(t,r)};function s(t){e.document.removeListener('mousemove',o);e.document.removeListener('mouseup',s);if(n.document){n.document.removeListener('mousemove',o);n.document.removeListener('mouseup',s)}};var d=t.addFunction(function(t){if(!r)r=n.getResizable();a={width:r.$.offsetWidth||0,height:r.$.offsetHeight||0};l={x:t.screenX,y:t.screenY};i.resize_minWidth>a.width&&(i.resize_minWidth=a.width);i.resize_minHeight>a.height&&(i.resize_minHeight=a.height);e.document.on('mousemove',o);e.document.on('mouseup',s);if(n.document){n.document.on('mousemove',o);n.document.on('mouseup',s)}});n.on('destroy',function(){t.removeFunction(d)});n.on('themeSpace',function(e){if(e.data.space=='bottom'){var i='';if(c&&!u)i=' cke_resizer_horizontal';if(!c&&u)i=' cke_resizer_vertical';e.data.html+='<div class="cke_resizer'+i+'" title="'+t.htmlEncode(n.lang.resize)+'" onmousedown="CKEDITOR.tools.callFunction('+d+', event)"></div>'}},n,null,100)}}});(function(){var t={modes:{wysiwyg:1,source:1},exec:function(e){var n=e.element.$.form;if(n)try{n.submit()}catch(t){if(n.submit.click)n.submit.click()}}},e='save';r.add(e,{init:function(n){var i=n.addCommand(e,t);i.modes={wysiwyg:!!n.element.$.form};n.ui.addButton('Save',{label:n.lang.save,command:e})}})})();(function(){var o='scaytcheck',u='';function l(e,t){var n=0,i;for(i in t){if(t[i]==e){n=1;break}};return n};var d=function(){var o=this,f=function(){var d=o.config,r={};r.srcNodeRef=o.document.getWindow().$.frameElement;r.assocApp='CKEDITOR.'+e.version+'@'+e.revision;r.customerid=d.scayt_customerid||'1:WvF0D4-UtPqN1-43nkD4-NKvUm2-daQqk3-LmNiI-z7Ysb4-mwry24-T8YrS3-Q2tpq2';r.customDictionaryIds=d.scayt_customDictionaryIds||'';r.userDictionaryName=d.scayt_userDictionaryName||'';r.sLang=d.scayt_sLang||'en_US';r.onLoad=function(){if(!(a&&n.version<8))this.addStyle(this.selectorCss(),'padding-bottom: 2px !important;');if(o.focusManager.hasFocus&&!i.isControlRestored(o))this.focus()};r.onBeforeChange=function(){if(i.getScayt(o)&&!o.checkDirty())setTimeout(function(){o.resetDirty()},0)};var f=window.scayt_custom_params;if(typeof f=='object')for(var g in f)r[g]=f[g];if(i.getControlId(o))r.id=i.getControlId(o);var l=new window.scayt(r);l.afterMarkupRemove.push(function(e){new s(e,l.document).mergeSiblings()});var u=i.instances[o.name];if(u){l.sLang=u.sLang;l.option(u.option());l.paused=u.paused};i.instances[o.name]=l;var v='scaytButton',p=window.scayt.uiTags,m=[];for(var c=0,h=4;c<h;c++)m.push(p[c]&&i.uiTabs[c]);i.uiTabs=m;try{l.setDisabled(i.isPaused(o)===!1)}catch(t){};o.fire('showScaytState')};o.on('contentDom',f);o.on('contentDomUnload',function(){var r=e.document.getElementsByTag('script'),o=/^dojoIoScript(\d+)$/i,s=/^https?:\/\/svc\.spellchecker\.net\/spellcheck\/script\/ssrv\.cgi/i;for(var n=0;n<r.count();n++){var t=r.getItem(n),i=t.getId(),a=t.getAttribute('src');if(i&&a&&i.match(o)&&a.match(s))t.remove()}});o.on('beforeCommandExec',function(e){if((e.data.name=='source'||e.data.name=='newpage')&&o.mode=='wysiwyg'){var t=i.getScayt(o);if(t){i.setPaused(o,!t.disabled);i.setControlId(o,t.id);t.destroy(!0);delete i.instances[o.name]}}
+else if(e.data.name=='source'&&o.mode=='source')i.markControlRestore(o)});o.on('afterCommandExec',function(e){if(!i.isScaytEnabled(o))return;if(o.mode=='wysiwyg'&&(e.data.name=='undo'||e.data.name=='redo'))window.setTimeout(function(){i.getScayt(o).refresh()},10)});o.on('destroy',function(e){var t=e.editor,n=i.getScayt(t);if(!n)return;delete i.instances[t.name];i.setControlId(t,n.id);n.destroy(!0)});o.on('afterSetData',function(){if(i.isScaytEnabled(o))window.setTimeout(function(){var e=i.getScayt(o);e&&e.refresh()},10)});o.on('insertElement',function(){var e=i.getScayt(o);if(i.isScaytEnabled(o)){if(a)o.getSelection().unlock(!0);window.setTimeout(function(){e.focus();e.refresh()},10)}},this,null,50);o.on('insertHtml',function(){var e=i.getScayt(o);if(i.isScaytEnabled(o)){if(a)o.getSelection().unlock(!0);window.setTimeout(function(){e.focus();e.refresh()},10)}},this,null,50);o.on('scaytDialog',function(e){e.data.djConfig=window.djConfig;e.data.scayt_control=i.getScayt(o);e.data.tab=u;e.data.scayt=window.scayt});var c=o.dataProcessor,d=c&&c.htmlFilter;if(d)d.addRules({elements:{span:function(e){if(e.attributes['data-scayt_word']&&e.attributes['data-scaytid']){delete e.name;return e}}}});var l=r.undo.Image.prototype;l.equals=t.override(l.equals,function(e){return function(t){var n=this,r=n.contents,o=t.contents,a=i.getScayt(n.editor);if(a&&i.isScaytReady(n.editor)){n.contents=a.reset(r)||'';t.contents=a.reset(o)||''};var s=e.apply(n,arguments);n.contents=r;t.contents=o;return s}});if(o.document)f()};r.scayt={engineLoaded:!1,instances:{},controlInfo:{},setControlInfo:function(e,t){if(e&&e.name&&typeof this.controlInfo[e.name]!='object')this.controlInfo[e.name]={};for(var n in t)this.controlInfo[e.name][n]=t[n]},isControlRestored:function(e){if(e&&e.name&&this.controlInfo[e.name])return this.controlInfo[e.name].restored;return!1},markControlRestore:function(e){this.setControlInfo(e,{restored:!0})},setControlId:function(e,t){this.setControlInfo(e,{id:t})},getControlId:function(e){if(e&&e.name&&this.controlInfo[e.name]&&this.controlInfo[e.name].id)return this.controlInfo[e.name].id;return null},setPaused:function(e,t){this.setControlInfo(e,{paused:t})},isPaused:function(e){if(e&&e.name&&this.controlInfo[e.name])return this.controlInfo[e.name].paused;return undefined},getScayt:function(e){return this.instances[e.name]},isScaytReady:function(e){return this.engineLoaded===!0&&'undefined'!==typeof window.scayt&&this.getScayt(e)},isScaytEnabled:function(e){var t=this.getScayt(e);return t?t.disabled===!1:!1},loadEngine:function(t){if(n.gecko&&n.version<10900||n.opera||n.air)return t.fire('showScaytState');if(this.engineLoaded===!0)return d.apply(t);else if(this.engineLoaded==-1)return e.on('scaytReady',function(){d.apply(t)});e.on('scaytReady',d,t);e.on('scaytReady',function(){this.engineLoaded=!0},this,null,0);this.engineLoaded=-1;var a=document.location.protocol;a=a.search(/https?:/)!=-1?a:'http:';var o='svc.spellchecker.net/scayt26/loader__base.js',r=t.config.scayt_srcUrl||a+'//'+o,s=i.parseUrl(r).path+'/';if(window.scayt==undefined){e._djScaytConfig={baseUrl:s,addOnLoad:[function(){e.fireOnce('scaytReady')}],isDebug:!1};e.document.getHead().append(e.document.createElement('script',{attributes:{type:'text/javascript',async:'true',src:r}}))}
+else e.fireOnce('scaytReady');return null},parseUrl:function(e){var t;if(e.match&&(t=e.match(/(.*)[\/\\](.*?\.\w+)$/)))return{path:t[1],file:t[2]};else return e}};var i=r.scayt,c=function(e,t,n,i,a,r,o){e.addCommand(i,a);e.addMenuItem(i,{label:n,command:i,group:r,order:o})},f={preserveState:!0,editorFocus:!1,canUndo:!1,exec:function(e){if(i.isScaytReady(e)){var n=i.isScaytEnabled(e);this.setState(n?2:1);var t=i.getScayt(e);t.focus();t.setDisabled(n)}
+else if(!e.config.scayt_autoStartup&&i.engineLoaded>=0){this.setState(0);i.loadEngine(e)}}};r.add('scayt',{requires:['menubutton'],beforeInit:function(e){var t=e.config.scayt_contextMenuItemsOrder||'suggest|moresuggest|control',i='';t=t.split('|');if(t&&t.length)for(var n=0;n<t.length;n++)i+='scayt_'+t[n]+(t.length!=parseInt(n,10)+1?',':'');e.config.menu_groups=i+','+e.config.menu_groups},init:function(t){var h={},s={},p=t.addCommand(o,f);e.dialog.add(o,e.getUrl(this.path+'dialogs/options.js'));var b=t.config.scayt_uiTabs||'1,1,1',g=[];b=b.split(',');for(var r=0,k=3;r<k;r++){var y=parseInt(b[r]||'1',10);g.push(y)};var m='scaytButton';t.addMenuGroup(m);var d={},a=t.lang.scayt;d.scaytToggle={label:a.enable,command:o,group:m};if(g[0]==1)d.scaytOptions={label:a.options,group:m,onClick:function(){u='options';t.openDialog(o)}};if(g[1]==1)d.scaytLangs={label:a.langs,group:m,onClick:function(){u='langs';t.openDialog(o)}};if(g[2]==1)d.scaytDict={label:a.dictionariesTab,group:m,onClick:function(){u='dictionaries';t.openDialog(o)}};d.scaytAbout={label:t.lang.scayt.about,group:m,onClick:function(){u='about';t.openDialog(o)}};g[3]=1;i.uiTabs=g;t.addMenuItems(d);t.ui.add('Scayt',5,{label:a.title,title:n.opera?a.opera_title:a.title,className:'cke_button_scayt',modes:{wysiwyg:1},onRender:function(){p.on('state',function(){this.setState(p.state)},this)},onMenu:function(){var e=i.isScaytEnabled(t);t.getMenuItem('scaytToggle').label=a[e?'disable':'enable'];return{scaytToggle:2,scaytOptions:e&&i.uiTabs[0]?2:0,scaytLangs:e&&i.uiTabs[1]?2:0,scaytDict:e&&i.uiTabs[2]?2:0,scaytAbout:e&&i.uiTabs[3]?2:0}}});if(t.contextMenu&&t.addMenuItems)t.contextMenu.addListener(function(e,n){if(!i.isScaytEnabled(t)||n.getRanges()[0].checkReadOnly())return null;var f=i.getScayt(t),g=f.getScaytNode();if(!g)return null;var y=f.getWord(g);if(!y)return null;var E=f.getLang(),N={},d=window.scayt.getSuggestion(y,E);if(!d||!d.length)return null;for(r in h){delete t._.menuItems[r];delete t._.commands[r]};for(r in s){delete t._.menuItems[r];delete t._.commands[r]};h={};s={};var S=t.config.scayt_moreSuggestions||'on',b=!1,p=t.config.scayt_maxSuggestions;typeof p!='number'&&(p=5);!p&&(p=d.length);var u=t.config.scayt_contextCommands||'all';u=u.split('|');for(var o=0,x=d.length;o<x;o+=1){var m='scayt_suggestion_'+d[o].replace(' ','_'),v=(function(e,t){return{exec:function(){f.replace(e,t)}}})(g,d[o]);if(o<p){c(t,'button_'+m,d[o],m,v,'scayt_suggest',o+1);N[m]=2;s[m]=2}
+else if(S=='on'){c(t,'button_'+m,d[o],m,v,'scayt_moresuggest',o+1);h[m]=2;b=!0}};if(b){t.addMenuItem('scayt_moresuggest',{label:a.moreSuggestions,group:'scayt_moresuggest',order:10,getItems:function(){return h}});s.scayt_moresuggest=2};if(l('all',u)||l('ignore',u)){var C={exec:function(){f.ignore(g)}};c(t,'ignore',a.ignore,'scayt_ignore',C,'scayt_control',1);s.scayt_ignore=2};if(l('all',u)||l('ignoreall',u)){var w={exec:function(){f.ignoreAll(g)}};c(t,'ignore_all',a.ignoreAll,'scayt_ignore_all',w,'scayt_control',2);s.scayt_ignore_all=2};if(l('all',u)||l('add',u)){var k={exec:function(){window.scayt.addWordToUserDictionary(g)}};c(t,'add_word',a.addWord,'scayt_add_word',k,'scayt_control',3);s.scayt_add_word=2};if(f.fireOnContextMenu)f.fireOnContextMenu(t);return s});var v=function(){t.removeListener('showScaytState',v);if(!n.opera&&!n.air)p.setState(i.isScaytEnabled(t)?1:2);else p.setState(0)};t.on('showScaytState',v);if(n.opera||n.air)t.on('instanceReady',function(){v()});if(t.config.scayt_autoStartup)t.on('instanceReady',function(){i.loadEngine(t)})},afterInit:function(e){var t,n=function(e){if(e.hasAttribute('data-scaytid'))return!1};if(e._.elementsPath&&(t=e._.elementsPath.filters))t.push(n);e.addRemoveFormatFilter&&e.addRemoveFormatFilter(n)}})})();r.add('smiley',{requires:['dialog'],init:function(t){t.config.smiley_path=t.config.smiley_path||this.path+'images/';t.addCommand('smiley',new e.dialogCommand('smiley'));t.ui.addButton('Smiley',{label:t.lang.smiley.toolbar,command:'smiley'});e.dialog.add('smiley',this.path+'dialogs/smiley.js')}});l.smiley_images=['regular_smile.gif','sad_smile.gif','wink_smile.gif','teeth_smile.gif','confused_smile.gif','tounge_smile.gif','embaressed_smile.gif','omg_smile.gif','whatchutalkingabout_smile.gif','angry_smile.gif','angel_smile.gif','shades_smile.gif','devil_smile.gif','cry_smile.gif','lightbulb.gif','thumbs_down.gif','thumbs_up.gif','heart.gif','broken_heart.gif','kiss.gif','envelope.gif'];l.smiley_descriptions=['smiley','sad','wink','laugh','frown','cheeky','blush','surprise','indecision','angry','angel','cool','devil','crying','enlightened','no','yes','heart','broken heart','kiss','mail'];(function(){var t='.%2 p,.%2 div,.%2 pre,.%2 address,.%2 blockquote,.%2 h1,.%2 h2,.%2 h3,.%2 h4,.%2 h5,.%2 h6{background-repeat: no-repeat;background-position: top %3;border: 1px dotted gray;padding-top: 8px;padding-%3: 8px;}.%2 p{%1p.png);}.%2 div{%1div.png);}.%2 pre{%1pre.png);}.%2 address{%1address.png);}.%2 blockquote{%1blockquote.png);}.%2 h1{%1h1.png);}.%2 h2{%1h2.png);}.%2 h3{%1h3.png);}.%2 h4{%1h4.png);}.%2 h5{%1h5.png);}.%2 h6{%1h6.png);}',n=/%1/g,i=/%2/g,a=/%3/g,o={preserveState:!0,editorFocus:!1,exec:function(e){this.toggleState();this.refresh(e)},refresh:function(e){var t=this.state==1?'addClass':'removeClass';e.document.getBody()[t]('cke_show_blocks')}};r.add('showblocks',{requires:['wysiwygarea'],init:function(r){var s=r.addCommand('showblocks',o);s.canUndo=!1;if(r.config.startupOutlineBlocks)s.setState(1);r.addCss(t.replace(n,'background-image: url('+e.getUrl(this.path)+'images/block_').replace(i,'cke_show_blocks ').replace(a,r.lang.dir=='rtl'?'right':'left'));r.ui.addButton('ShowBlocks',{label:r.lang.showBlocks,command:'showblocks'});r.on('mode',function(){if(s.state!=0)s.refresh(r)});r.on('contentDom',function(){if(s.state!=0)s.refresh(r)})}})})();(function(){var i='cke_show_border',a,s=(n.ie6Compat?['.%1 table.%2,','.%1 table.%2 td, .%1 table.%2 th,','{','border : #d3d3d3 1px dotted','}']:['.%1 table.%2,','.%1 table.%2 > tr > td, .%1 table.%2 > tr > th,','.%1 table.%2 > tbody > tr > td, .%1 table.%2 > tbody > tr > th,','.%1 table.%2 > thead > tr > td, .%1 table.%2 > thead > tr > th,','.%1 table.%2 > tfoot > tr > td, .%1 table.%2 > tfoot > tr > th','{','border : #d3d3d3 1px dotted','}']).join('');a=s.replace(/%2/g,i).replace(/%1/g,'cke_show_borders ');var o={preserveState:!0,editorFocus:!1,exec:function(e){this.toggleState();this.refresh(e)},refresh:function(e){var t=this.state==1?'addClass':'removeClass';e.document.getBody()[t]('cke_show_borders')}};r.add('showborders',{requires:['wysiwygarea'],modes:{wysiwyg:1},init:function(e){var t=e.addCommand('showborders',o);t.canUndo=!1;if(e.config.startupShowBorders!==!1)t.setState(1);e.addCss(a);e.on('mode',function(){if(t.state!=0)t.refresh(e)},null,null,100);e.on('contentDom',function(){if(t.state!=0)t.refresh(e)});e.on('removeFormatCleanup',function(t){var n=t.data;if(e.getCommand('showborders').state==1&&n.is('table')&&(!n.hasAttribute('border')||parseInt(n.getAttribute('border'),10)<=0))n.addClass(i)})},afterInit:function(e){var t=e.dataProcessor,n=t&&t.dataFilter,a=t&&t.htmlFilter;if(n)n.addRules({elements:{table:function(e){var t=e.attributes,a=t['class'],n=parseInt(t.border,10);if(!n||n<=0)t['class']=(a||'')+' '+i}}});if(a)a.addRules({elements:{table:function(e){var t=e.attributes,n=t['class'];n&&(t['class']=n.replace(i,'').replace(/\s{2}/,' ').replace(/^\s+|\s+$/,''))}}})}});e.on('dialogDefinition',function(e){var s=e.data.name;if(s=='table'||s=='tableProperties'){var r=e.data.definition,l=r.getContents('info'),o=l.get('txtBorder'),c=o.commit;o.commit=t.override(c,function(e){return function(t,n){e.apply(this,arguments);var a=parseInt(this.getValue(),10);n[!a||a<=0?'addClass':'removeClass'](i)}});var a=r.getContents('advanced'),n=a&&a.get('advCSSClasses');if(n){n.setup=t.override(n.setup,function(e){return function(){e.apply(this,arguments);this.setValue(this.getValue().replace(/cke_show_border/,''))}});n.commit=t.override(n.commit,function(e){return function(t,n){e.apply(this,arguments);if(!parseInt(n.getAttribute('border'),10))n.addClass('cke_show_border')}})}}})})();r.add('sourcearea',{requires:['editingblock'],init:function(t){var o=r.sourcearea,i=e.document.getWindow();t.on('editingBlockReady',function(){var e,r;t.addMode('source',{load:function(o,l){if(a&&n.version<8)o.setStyle('position','relative');t.textarea=e=new s('textarea');e.setAttributes({dir:'ltr',tabIndex:n.webkit?-1:t.tabIndex,role:'textbox','aria-label':t.lang.editorTitle.replace('%1',t.name)});e.addClass('cke_source');e.addClass('cke_enable_context_menu');var u={width:n.ie7Compat?'99%':'100%',height:'100%',resize:'none',outline:'none','text-align':'left'};if(a){r=function(){e.hide();e.setStyle('height',o.$.clientHeight+'px');e.setStyle('width',o.$.clientWidth+'px');e.show()};t.on('resize',r);i.on('resize',r);setTimeout(r,0)};o.setHtml('');o.append(e);e.setStyles(u);t.fire('ariaWidget',e);e.on('blur',function(){t.focusManager.blur()});e.on('focus',function(){t.focusManager.focus()});t.mayBeDirty=!0;this.loadData(l);var c=t.keystrokeHandler;if(c)c.attach(e);setTimeout(function(){t.mode='source';t.fire('mode')},n.gecko||n.webkit?100:0)},loadData:function(n){e.setValue(n);t.fire('dataReady')},getData:function(){return e.getValue()},getSnapshotData:function(){return e.getValue()},unload:function(o){e.clearCustomData();t.textarea=e=null;if(r){t.removeListener('resize',r);i.removeListener('resize',r)};if(a&&n.version<8)o.removeStyle('position')},focus:function(){e.focus()}})});t.addCommand('source',o.commands.source);if(t.ui.addButton)t.ui.addButton('Source',{label:t.lang.source,command:'source'});t.on('mode',function(){t.getCommand('source').setState(t.mode=='source'?1:2)})}});r.sourcearea={commands:{source:{modes:{wysiwyg:1,source:1},editorFocus:!1,exec:function(e){if(e.mode=='wysiwyg')e.fire('saveSnapshot');e.getCommand('source').setState(0);e.setMode(e.mode=='source'?'wysiwyg':'source')},canUndo:!1}}};(function(){r.add('stylescombo',{requires:['richcombo','styles'],init:function(r){var c=r.config,o=r.lang.stylesCombo,s={},l=[];function u(n){r.getStylesSet(function(i){if(!l.length){var a,o;for(var r=0,d=i.length;r<d;r++){var u=i[r];o=u.name;a=s[o]=new e.style(u);a._name=o;a._.enterMode=c.enterMode;l.push(a)};l.sort(t)};n&&n()})};r.ui.addRichCombo('Styles',{label:o.label,title:o.panelTitle,className:'cke_styles',panel:{css:r.skin.editor.css.concat(c.contentsCss),multiSelect:!0,attributes:{'aria-label':o.panelTitle}},init:function(){var e=this;u(function(){var t,n,r;for(var a=0,s=l.length;a<s;a++){t=l[a];n=t._name;var i=t.type;if(i!=r){e.startGroup(o['panelTitle'+String(i)]);r=i};e.add(n,t.type==3?n:t.buildPreview(),n)};e.commit();e.onOpen()})},onClick:function(e){r.focus();r.fire('saveSnapshot');var t=s[e],n=r.getSelection(),a=new i.elementPath(n.getStartElement());t[t.checkActive(a)?'remove':'apply'](r.document);r.fire('saveSnapshot')},onRender:function(){r.on('selectionChange',function(e){var o=this.getValue(),l=e.data.path,a=l.elements;for(var n=0,r=a.length,i;n<r;n++){i=a[n];for(var t in s){if(s[t].checkElementRemovable(i,!0)){if(t!=o)this.setValue(t);return}}};this.setValue('')},this)},onOpen:function(){var e=this;if(a||n.webkit)r.focus();var d=r.getSelection(),m=d.getSelectedElement(),f=new i.elementPath(m||d.getStartElement()),t=[0,0,0,0];e.showAll();e.unmarkAll();for(var u in s){var l=s[u],c=l.type;if(l.checkActive(f))e.mark(u);else if(c==3&&!l.checkApplicable(f)){e.hideItem(u);t[c]--};t[c]++};if(!t[1])e.hideGroup(o['panelTitle'+String(1)]);if(!t[2])e.hideGroup(o['panelTitle'+String(2)]);if(!t[3])e.hideGroup(o['panelTitle'+String(3)])}});r.on('instanceReady',function(){u()})}});function t(e,t){var i=e.type,n=t.type;return i==n?0:i==3?-1:n==3?1:n==1?1:-1}})();r.add('table',{init:function(t){var i=r.table,n=t.lang.table;t.addCommand('table',new e.dialogCommand('table'));t.addCommand('tableProperties',new e.dialogCommand('tableProperties'));t.ui.addButton('Table',{label:n.toolbar,command:'table'});e.dialog.add('table',this.path+'dialogs/table.js');e.dialog.add('tableProperties',this.path+'dialogs/table.js');if(t.addMenuItems)t.addMenuItems({table:{label:n.menu,command:'tableProperties',group:'table',order:5},tabledelete:{label:n.deleteTable,command:'tableDelete',group:'table',order:1}});t.on('doubleclick',function(e){var t=e.data.element;if(t.is('table'))e.data.dialog='tableProperties'});if(t.contextMenu)t.contextMenu.addListener(function(e,t){if(!e||e.isReadOnly())return null;var n=e.hasAscendant('table',1);if(n)return{tabledelete:2,table:2};return null})}});(function(){var u=/^(?:td|th)$/;function n(e){var g=e.createBookmarks(),m=e.getRanges(),n=[],o={};function h(e){if(n.length>0)return;if(e.type==1&&u.test(e.getName())&&!e.getCustomData('selected_cell')){s.setMarker(o,e,'selected_cell',!0);n.push(e)}};for(var r=0;r<m.length;r++){var a=m[r];if(a.collapsed){var d=a.getCommonAncestor(),f=d.getAscendant('td',!0)||d.getAscendant('th',!0);if(f)n.push(f)}
+else{var l=new i.walker(a),c;l.guard=h;while(c=l.next()){var t=c.getParent();if(t&&u.test(t.getName())&&!t.getCustomData('selected_cell')){s.setMarker(o,t,'selected_cell',!0);n.push(t)}}}};s.clearAllMarkers(o);e.selectBookmarks(g);return n};function k(e){var a=0,o=e.length-1,r={},n,i,t;while(n=e[a++])s.setMarker(r,n,'delete_cell',!0);a=0;while(n=e[a++]){if((i=n.getPrevious())&&!i.getCustomData('delete_cell')||(i=n.getNext())&&!i.getCustomData('delete_cell')){s.clearAllMarkers(r);return i}};s.clearAllMarkers(r);t=e[0].getParent();if(t=t.getPrevious())return t.getLast();t=e[o].getParent();if(t=t.getNext())return t.getChild(0);return null};function d(e,i){var l=n(e),m=l[0],g=m.getAscendant('table'),k=m.getDocument(),h=l[0].getParent(),w=h.$.rowIndex,p=l[l.length-1],v=p.getParent().$.rowIndex+p.$.rowSpan-1,C=new s(g.$.rows[v]),d=i?w:v,b=i?h:C,c=t.buildTableMap(g),u=c[d],y=i?c[d-1]:c[d+1],x=c[0].length,f=k.createElement('tr');for(var o=0;o<x;o++){var r;if(u[o].rowSpan>1&&y&&u[o]==y[o]){r=u[o];r.rowSpan+=1}
+else{r=new s(u[o]).clone();r.removeAttribute('rowSpan');!a&&r.appendBogus();f.append(r);r=r.$};o+=r.colSpan-1};i?f.insertBefore(b):f.insertAfter(b)};function f(e){if(e instanceof i.selection){var c=n(e),w=c[0],r=w.getAscendant('table'),p=t.buildTableMap(r),C=c[0].getParent(),u=C.$.rowIndex,v=c[c.length-1],x=v.getParent().$.rowIndex+v.$.rowSpan-1,d=[];for(var a=u;a<=x;a++){var h=p[a],k=new s(r.$.rows[a]);for(var l=0;l<h.length;l++){var o=new s(h[l]),y=o.getParent().$.rowIndex;if(o.$.rowSpan==1)o.remove();else{o.$.rowSpan-=1;if(y==a){var g=p[a+1];g[l-1]?o.insertAfter(new s(g[l-1])):new s(r.$.rows[a+1]).append(o,1)}};l+=o.$.colSpan-1};d.push(k)};var m=r.$.rows,b=new s(m[u]||m[u-1]||r.$.parentNode);for(a=d.length;a>=0;a--)f(d[a]);return b}
+else if(e instanceof s){r=e.getAscendant('table');if(r.$.rows.length==1)r.remove();else e.remove()};return null};function w(e,t){var o=e.getParent(),a=o.$.cells,r=0;for(var n=0;n<a.length;n++){var i=a[n];r+=t?1:i.colSpan;if(i==e.$)break};return r-1};function m(e,t){var n=t?Infinity:0;for(var a=0;a<e.length;a++){var i=w(e[a],t);if(t?i<n:i>n)n=i};return n};function g(e,i){var u=n(e),p=u[0],v=p.getAscendant('table'),b=m(u,1),y=m(u),d=i?b:y,c=t.buildTableMap(v),l=[],f=[],h=c.length;for(var r=0;r<h;r++){l.push(c[r][d]);var g=i?c[r][d-1]:c[r][d+1];g&&f.push(g)};for(r=0;r<h;r++){var o;if(l[r].colSpan>1&&f.length&&f[r]==l[r]){o=l[r];o.colSpan+=1}
+else{o=new s(l[r]).clone();o.removeAttribute('colSpan');!a&&o.appendBogus();o[i?'insertBefore':'insertAfter'].call(o,new s(l[r]));o=o.$};r+=o.rowSpan-1}};function C(e){var u=n(e),g=u[0],k=u[u.length-1],r=g.getAscendant('table'),o=t.buildTableMap(r),l,h,p=[];for(var a=0,m=o.length;a<m;a++)for(var i=0,y=o[a].length;i<y;i++){if(o[a][i]==g.$)l=i;if(o[a][i]==k.$)h=i};for(a=l;a<=h;a++)for(i=0;i<o.length;i++){var b=o[i],f=new s(r.$.rows[i]),c=new s(b[a]);if(c.$.colSpan==1)c.remove();else c.$.colSpan-=1;i+=c.$.rowSpan-1;if(!f.$.cells.length)p.push(f)};var d=r.$.rows[0]&&r.$.rows[0].cells,v=new s(d[l]||(l?d[l-1]:r.$.parentNode));if(p.length==m)r.remove();return v};function E(e){var n=[],l=e[0]&&e[0].getAscendant('table'),t,i,a,r;for(t=0,i=e.length;t<i;t++)n.push(e[t].$.cellIndex);n.sort();for(t=1,i=n.length;t<i;t++){if(n[t]-n[t-1]>1){a=n[t-1]+1;break}};if(!a)a=n[0]>0?n[0]-1:n[n.length-1]+1;var o=l.$.rows;for(t=0,i=o.length;t<i;t++){r=o[t].cells[a];if(r)break};return r?new s(r):l.getPrevious()};function h(e,t){var r=e.getStartElement(),n=r.getAscendant('td',1)||r.getAscendant('th',1);if(!n)return;var i=n.clone();if(!a)i.appendBogus();if(t)i.insertBefore(n);else i.insertAfter(n)};function p(e){if(e instanceof i.selection){var t=n(e),l=t[0]&&t[0].getAscendant('table'),c=k(t);for(var a=t.length-1;a>=0;a--)p(t[a]);if(c)o(c,!0);else if(l)l.remove()}
+else if(e instanceof s){var r=e.getParent();if(r.getChildCount()==1)r.remove();else e.remove()}};function x(e){var t=e.getBogus();t&&t.remove();e.trim()};function o(e,t){var n=new i.range(e.getDocument());if(!n['moveToElementEdit'+(t?'End':'Start')](e)){n.selectNodeContents(e);n.collapse(t?!1:!0)};n.select(!0)};function l(e,t,n){var a=e[t];if(typeof n=='undefined')return a;for(var i=0;a&&i<a.length;i++){if(n.is&&a[i]==n.$)return i;else if(i==n)return new s(a[i])};return n.is?-1:null};function S(e,t,n){var r=[];for(var i=0;i<e.length;i++){var a=e[i];if(typeof n=='undefined')r.push(a[t]);else if(n.is&&a[t]==n.$)return i;else if(i==n)return new s(a[t])};return typeof n=='undefined'?r:n.is?-1:null};function c(e,r,o){var g=n(e),E;if((r?g.length!=1:g.length<2)||(E=e.getCommonAncestor())&&E.type==1&&E.is('table'))return!1;var d,u=g[0],O=u.getAscendant('table'),v=t.buildTableMap(O),z=v.length,q=v[0].length,m=u.getParent().$.rowIndex,w=l(v,m,u);if(r){var k;try{var L=parseInt(u.getAttribute('rowspan'),10)||1,F=parseInt(u.getAttribute('colspan'),10)||1;k=v[r=='up'?m-L:r=='down'?m+L:m][r=='left'?w-F:r=='right'?w+F:w]}catch(c){return!1};if(!k||u.$==k)return!1;g[r=='up'||r=='left'?'unshift':'push'](new s(k))};var H=u.getDocument(),P=m,h=0,p=0,y=!o&&new i.documentFragment(H),D=0;for(var f=0;f<g.length;f++){d=g[f];var R=d.getParent(),S=d.getFirst(),B=d.$.colSpan,A=d.$.rowSpan,b=R.$.rowIndex,M=l(v,b,d);D+=B*A;p=Math.max(p,M-w+B);h=Math.max(h,b-m+A);if(!o){if(x(d),d.getChildren().count()){if(b!=P&&S&&!(S.isBlockBoundary&&S.isBlockBoundary({br:1}))){var C=y.getLast(i.walker.whitespaces(!0));if(C&&!(C.is&&C.is('br')))y.append('br')};d.moveChildren(y)};f?d.remove():d.setHtml('')};P=b};if(!o){y.moveChildren(u);if(!a)u.appendBogus();if(p>=q)u.removeAttribute('rowSpan');else u.$.rowSpan=h;if(h>=z)u.removeAttribute('colSpan');else u.$.colSpan=p;var T=new i.nodeList(O.$.rows),I=T.count();for(f=I-1;f>=0;f--){var N=T.getItem(f);if(!N.$.cells.length){N.remove();I++;continue}};return u}
+else return h*p==D};function v(e,i){var x=n(e);if(x.length>1)return!1;else if(i)return!0;var o=x[0],m=o.getParent(),C=m.getAscendant('table'),p=t.buildTableMap(C),v=m.$.rowIndex,S=l(p,v,o),b=o.$.rowSpan,r,d,g,y;if(b>1){d=Math.ceil(b/2);g=Math.floor(b/2);y=v+d;var c=new s(C.$.rows[y]),w=l(p,y),u;r=o.clone();for(var f=0;f<w.length;f++){u=w[f];if(u.parentNode==c.$&&f>S){r.insertBefore(new s(u));break}
+else u=null};if(!u)c.append(r,!0)}
+else{g=d=1;c=m.clone();c.insertAfter(m);c.append(r=o.clone());var k=l(p,v);for(var h=0;h<k.length;h++)k[h].rowSpan++};if(!a)r.appendBogus();o.$.rowSpan=d;r.$.rowSpan=g;if(d==1)o.removeAttribute('rowSpan');if(g==1)r.removeAttribute('rowSpan');return r};function b(e,i){var h=n(e);if(h.length>1)return!1;else if(i)return!0;var r=h[0],m=r.getParent(),p=m.getAscendant('table'),g=t.buildTableMap(p),v=m.$.rowIndex,b=l(g,v,r),d=r.$.colSpan,o,s,c;if(d>1){s=Math.ceil(d/2);c=Math.floor(d/2)}
+else{c=s=1;var f=S(g,b);for(var u=0;u<f.length;u++)f[u].colSpan++};o=r.clone();o.insertAfter(r);if(!a)o.appendBogus();r.$.colSpan=s;o.$.colSpan=c;if(s==1)r.removeAttribute('colSpan');if(c==1)o.removeAttribute('colSpan');return o};var y={thead:1,tbody:1,tfoot:1,td:1,tr:1,th:1};r.tabletools={init:function(t){var i=t.lang.table;t.addCommand('cellProperties',new e.dialogCommand('cellProperties'));e.dialog.add('cellProperties',this.path+'dialogs/tableCell.js');t.addCommand('tableDelete',{exec:function(e){var t=e.getSelection(),r=t&&t.getStartElement(),n=r&&r.getAscendant('table',1);if(!n)return;t.selectElement(n);var a=t.getRanges()[0];a.collapse();t.selectRanges([a]);var i=n.getParent();if(i.getChildCount()==1&&!i.is('body','td','th'))i.remove();else n.remove()}});t.addCommand('rowDelete',{exec:function(e){var t=e.getSelection();o(f(t))}});t.addCommand('rowInsertBefore',{exec:function(e){var t=e.getSelection();d(t,!0)}});t.addCommand('rowInsertAfter',{exec:function(e){var t=e.getSelection();d(t)}});t.addCommand('columnDelete',{exec:function(e){var n=e.getSelection(),t=C(n);t&&o(t,!0)}});t.addCommand('columnInsertBefore',{exec:function(e){var t=e.getSelection();g(t,!0)}});t.addCommand('columnInsertAfter',{exec:function(e){var t=e.getSelection();g(t)}});t.addCommand('cellDelete',{exec:function(e){var t=e.getSelection();p(t)}});t.addCommand('cellMerge',{exec:function(e){o(c(e.getSelection()),!0)}});t.addCommand('cellMergeRight',{exec:function(e){o(c(e.getSelection(),'right'),!0)}});t.addCommand('cellMergeDown',{exec:function(e){o(c(e.getSelection(),'down'),!0)}});t.addCommand('cellVerticalSplit',{exec:function(e){o(v(e.getSelection()))}});t.addCommand('cellHorizontalSplit',{exec:function(e){o(b(e.getSelection()))}});t.addCommand('cellInsertBefore',{exec:function(e){var t=e.getSelection();h(t,!0)}});t.addCommand('cellInsertAfter',{exec:function(e){var t=e.getSelection();h(t)}});if(t.addMenuItems)t.addMenuItems({tablecell:{label:i.cell.menu,group:'tablecell',order:1,getItems:function(){var e=t.getSelection(),i=n(e);return{tablecell_insertBefore:2,tablecell_insertAfter:2,tablecell_delete:2,tablecell_merge:c(e,null,!0)?2:0,tablecell_merge_right:c(e,'right',!0)?2:0,tablecell_merge_down:c(e,'down',!0)?2:0,tablecell_split_vertical:v(e,!0)?2:0,tablecell_split_horizontal:b(e,!0)?2:0,tablecell_properties:i.length>0?2:0}}},tablecell_insertBefore:{label:i.cell.insertBefore,group:'tablecell',command:'cellInsertBefore',order:5},tablecell_insertAfter:{label:i.cell.insertAfter,group:'tablecell',command:'cellInsertAfter',order:10},tablecell_delete:{label:i.cell.deleteCell,group:'tablecell',command:'cellDelete',order:15},tablecell_merge:{label:i.cell.merge,group:'tablecell',command:'cellMerge',order:16},tablecell_merge_right:{label:i.cell.mergeRight,group:'tablecell',command:'cellMergeRight',order:17},tablecell_merge_down:{label:i.cell.mergeDown,group:'tablecell',command:'cellMergeDown',order:18},tablecell_split_horizontal:{label:i.cell.splitHorizontal,group:'tablecell',command:'cellHorizontalSplit',order:19},tablecell_split_vertical:{label:i.cell.splitVertical,group:'tablecell',command:'cellVerticalSplit',order:20},tablecell_properties:{label:i.cell.title,group:'tablecellproperties',command:'cellProperties',order:21},tablerow:{label:i.row.menu,group:'tablerow',order:1,getItems:function(){return{tablerow_insertBefore:2,tablerow_insertAfter:2,tablerow_delete:2}}},tablerow_insertBefore:{label:i.row.insertBefore,group:'tablerow',command:'rowInsertBefore',order:5},tablerow_insertAfter:{label:i.row.insertAfter,group:'tablerow',command:'rowInsertAfter',order:10},tablerow_delete:{label:i.row.deleteRow,group:'tablerow',command:'rowDelete',order:15},tablecolumn:{label:i.column.menu,group:'tablecolumn',order:1,getItems:function(){return{tablecolumn_insertBefore:2,tablecolumn_insertAfter:2,tablecolumn_delete:2}}},tablecolumn_insertBefore:{label:i.column.insertBefore,group:'tablecolumn',command:'columnInsertBefore',order:5},tablecolumn_insertAfter:{label:i.column.insertAfter,group:'tablecolumn',command:'columnInsertAfter',order:10},tablecolumn_delete:{label:i.column.deleteColumn,group:'tablecolumn',command:'columnDelete',order:15}});if(t.contextMenu)t.contextMenu.addListener(function(e,t){if(!e||e.isReadOnly())return null;while(e){if(e.getName()in y)return{tablecell:2,tablerow:2,tablecolumn:2};e=e.getParent()};return null})},getSelectedCells:n};r.add('tabletools',r.tabletools)})();t.buildTableMap=function(e){var l=e.$.rows,t=-1,n=[];for(var r=0;r<l.length;r++){t++;!n[t]&&(n[t]=[]);var a=-1;for(var s=0;s<l[r].cells.length;s++){var o=l[r].cells[s];a++;while(n[t][a])a++;var u=isNaN(o.colSpan)?1:o.colSpan,d=isNaN(o.rowSpan)?1:o.rowSpan;for(var i=0;i<d;i++){if(!n[t+i])n[t+i]=[];for(var c=0;c<u;c++)n[t+i][a+c]=l[r].cells[s]};a+=u-1}};return n};r.add('specialchar',{availableLangs:{en:1},init:function(n){var i='specialchar',a=this;e.dialog.add(i,this.path+'dialogs/specialchar.js');n.addCommand(i,{exec:function(){var r=n.langCode;r=a.availableLangs[r]?r:'en';e.scriptLoader.load(e.getUrl(a.path+'lang/'+r+'.js'),function(){t.extend(n.lang.specialChar,a.lang[r]);n.openDialog(i)})},modes:{wysiwyg:1},canUndo:!1});n.ui.addButton('SpecialChar',{label:n.lang.specialChar.toolbar,command:i})}});l.specialChars=['!','"','#','$','%','&','\'','(',')','*','+','-','.','/','0','1','2','3','4','5','6','7','8','9',':',';','<','=','>','?','@','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','[',']','^','_','`','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','{','|','}','~','€','‘','’','“','”','–','—','¡','¢','£','¤','¥','¦','§','¨','©','ª','«','¬','®','¯','°','&','²','³','´','µ','¶','·','¸','¹','º','&','¼','½','¾','¿','À','Á','Â','Ã','Ä','Å','Æ','Ç','È','É','Ê','Ë','Ì','Í','Î','Ï','Ð','Ñ','Ò','Ó','Ô','Õ','Ö','×','Ø','Ù','Ú','Û','Ü','Ý','Þ','ß','à','á','â','ã','ä','å','æ','ç','è','é','ê','ë','ì','í','î','ï','ð','ñ','ò','ó','ô','õ','ö','÷','ø','ù','ú','û','ü','ü','ý','þ','ÿ','Œ','œ','Ŵ','Ŷ','ŵ','ŷ','‚','‛','„','…','™','►','•','→','⇒','⇔','♦','≈'];(function(){var e={editorFocus:!1,modes:{wysiwyg:1,source:1}},l={exec:function(e){e.container.focusNext(!0,e.tabIndex)}},c={exec:function(e){e.container.focusPrevious(!0,e.tabIndex)}};function o(e){return{editorFocus:!1,canUndo:!1,modes:{wysiwyg:1},exec:function(n){if(n.focusManager.hasFocus){var p=n.getSelection(),f=p.getCommonAncestor(),l;if(l=f.getAscendant('td',!0)||f.getAscendant('th',!0)){var r=new i.range(n.document),o=t.tryThese(function(){var n=l.getParent(),t=n.$.cells[l.$.cellIndex+(e?-1:1)];t.parentNode.parentNode;return t},function(){var t=l.getParent(),i=t.getAscendant('table'),n=i.$.rows[t.$.rowIndex+(e?-1:1)];return n.cells[e?n.cells.length-1:0]});if(!(o||e)){var h=l.getAscendant('table').$,u=l.getParent().$.cells,d=new s(h.insertRow(-1),n.document);for(var c=0,g=u.length;c<g;c++){var m=d.append(new s(u[c],n.document).clone(!1,!1));!a&&m.appendBogus()};r.moveToElementEditStart(d)}
+else if(o){o=new s(o);r.moveToElementEditStart(o);if(!(r.checkStartOfBlock()&&r.checkEndOfBlock()))r.selectNodeContents(o)}
+else return!0;r.select(!0);return!0}};return!1}}};r.add('tab',{requires:['keystrokes'],init:function(i){var r=i.config.enableTabKeyTools!==!1,s=i.config.tabSpaces||0,a='';while(s--)a+='\xa0';if(a)i.on('key',function(e){if(e.data.keyCode==9){i.insertHtml(a);e.cancel()}});if(r)i.on('key',function(e){if(e.data.keyCode==9&&i.execCommand('selectNextCell')||e.data.keyCode==2000+9&&i.execCommand('selectPreviousCell'))e.cancel()});if(n.webkit||n.gecko)i.on('key',function(e){var t=e.data.keyCode;if(t==9&&!a){e.cancel();i.execCommand('blur')};if(t==2000+9){i.execCommand('blurBack');e.cancel()}});i.addCommand('blur',t.extend(l,e));i.addCommand('blurBack',t.extend(c,e));i.addCommand('selectNextCell',o());i.addCommand('selectPreviousCell',o(!0))}})})();s.prototype.focusNext=function(e,t){var r=this,u=r.$,l=t===undefined?r.getTabIndex():t,o,c,i,s,n,a;if(l<=0){n=r.getNextSourceNode(e,1);while(n){if(n.isVisible()&&n.getTabIndex()===0){i=n;break};n=n.getNextSourceNode(!1,1)}}
+else{n=r.getDocument().getBody().getFirst();while(n=n.getNextSourceNode(!1,1)){if(!o)if(!c&&n.equals(r)){c=!0;if(e){if(!(n=n.getNextSourceNode(!0,1)))break;o=1}}
+else if(c&&!r.contains(n))o=1;if(!n.isVisible()||(a=n.getTabIndex())<0)continue;if(o&&a==l){i=n;break};if(a>l&&(!i||!s||a<s)){i=n;s=a}
+else if(!i&&a===0){i=n;s=a}}};if(i)i.focus()};s.prototype.focusPrevious=function(e,t){var r=this,u=r.$,l=t===undefined?r.getTabIndex():t,o,c,a,s=0,i,n=r.getDocument().getBody().getLast();while(n=n.getPreviousSourceNode(!1,1)){if(!o)if(!c&&n.equals(r)){c=!0;if(e){if(!(n=n.getPreviousSourceNode(!0,1)))break;o=1}}
+else if(c&&!r.contains(n))o=1;if(!n.isVisible()||(i=n.getTabIndex())<0)continue;if(l<=0){if(o&&i===0){a=n;break};if(i>s){a=n;s=i}}
+else{if(o&&i==l){a=n;break};if(i<l&&(!a||i>s)){a=n;s=i}}};if(a)a.focus()};(function(){r.add('templates',{requires:['dialog'],init:function(t){e.dialog.add('templates',e.getUrl(this.path+'dialogs/templates.js'));t.addCommand('templates',new e.dialogCommand('templates'));t.ui.addButton('Templates',{label:t.lang.templates.button,command:'templates'})}});var t={},n={};e.addTemplates=function(e,n){t[e]=n};e.getTemplates=function(e){return t[e]};e.loadTemplates=function(t,i){var r=[];for(var a=0,o=t.length;a<o;a++){if(!n[t[a]]){r.push(t[a]);n[t[a]]=1}};if(r.length)e.scriptLoader.load(r,i);else setTimeout(i,0)}})();l.templates_files=[e.getUrl('plugins/templates/templates/default.js')];l.templates_replaceContent=!0;(function(){var i=function(){this.toolbars=[];this.focusCommandExecuted=!1};i.prototype.focus=function(){for(var i=0,t;t=this.toolbars[i++];)for(var n=0,e;e=t.items[n++];){if(e.focus){e.focus();return}}};var s={toolbarFocus:{modes:{wysiwyg:1,source:1},exec:function(e){if(e.toolbox){e.toolbox.focusCommandExecuted=!0;if(a||n.air)setTimeout(function(){e.toolbox.focus()},100);else e.toolbox.focus()}}}};r.add('toolbar',{init:function(n){var a=function(e,t){var a,i,r,s=n.lang.dir=='rtl';switch(t){case s?37:39:case 9:do{a=e.next;if(!a){i=e.toolbar.next;r=i&&i.items.length;while(r===0){i=i.next;r=i&&i.items.length};if(i)a=i.items[0]};e=a}
+while(e&&!e.focus);if(e)e.focus();else n.toolbox.focus();return!1;case s?39:37:case 2000+9:do{a=e.previous;if(!a){i=e.toolbar.previous;r=i&&i.items.length;while(r===0){i=i.previous;r=i&&i.items.length};if(i)a=i.items[r-1]};e=a}
+while(e&&!e.focus);if(e)e.focus();else{var o=n.toolbox.toolbars[n.toolbox.toolbars.length-1].items;o[o.length-1].focus()};return!1;case 27:n.focus();return!1;case 13:case 32:e.execute();return!1};return!0};n.on('themeSpace',function(r){if(r.data.space==n.config.toolbarLocation){n.toolbox=new i();var x=t.getNextId(),s=['<div class="cke_toolbox" role="toolbar" aria-labelledby="',x,'" onmousedown="return false;"'],p=n.config.toolbarStartupExpanded!==!1,l;s.push(p?'>':' style="display:none">');s.push('<span id="',x,'" class="cke_voice_label">',n.lang.toolbar,'</span>');var w=n.toolbox.toolbars,C=n.config.toolbar instanceof Array?n.config.toolbar:n.config['toolbar_'+n.config.toolbar];for(var h=0;h<C.length;h++){var m=C[h];if(!m)continue;var k=t.getNextId(),u={id:k,items:[]};if(l){s.push('</div>');l=0};if(m==='/'){s.push('<div class="cke_break"></div>');continue};s.push('<span id="',k,'" class="cke_toolbar" role="presentation"><span class="cke_toolbar_start"></span>');var f=w.push(u)-1;if(f>0){u.previous=w[f-1];u.previous.next=u};for(var g=0;g<m.length;g++){var d,y=m[g];if(y=='-')d=o.separator;else d=n.ui.create(y);if(d){if(d.canGroup){if(!l){s.push('<span class="cke_toolgroup" role="presentation">');l=1}}
+else if(l){s.push('</span>');l=0};var c=d.render(n,s);f=u.items.push(c)-1;if(f>0){c.previous=u.items[f-1];c.previous.next=c};c.toolbar=u;c.onkey=a;c.onfocus=function(){if(!n.toolbox.focusCommandExecuted)n.focus()}}};if(l){s.push('</span>');l=0};s.push('<span class="cke_toolbar_end"></span></span>')};s.push('</div>');if(n.config.toolbarCanCollapse){var b=t.addFunction(function(){n.execCommand('toolbarCollapse')});n.on('destroy',function(){t.removeFunction(b)});var v=t.getNextId();n.addCommand('toolbarCollapse',{exec:function(t){var n=e.document.getById(v),i=n.getPrevious(),a=t.getThemeSpace('contents'),r=i.getParent(),l=parseInt(a.$.style.height,10),c=r.$.offsetHeight,o=!i.isVisible();if(!o){i.hide();n.addClass('cke_toolbox_collapser_min');n.setAttribute('title',t.lang.toolbarExpand)}
+else{i.show();n.removeClass('cke_toolbox_collapser_min');n.setAttribute('title',t.lang.toolbarCollapse)};n.getFirst().setText(o?'▲':'◀');var s=r.$.offsetHeight-c;a.setStyle('height',l-s+'px');t.fire('resize')},modes:{wysiwyg:1,source:1}});s.push('<a title="'+(p?n.lang.toolbarCollapse:n.lang.toolbarExpand)+'" id="'+v+'" tabIndex="-1" class="cke_toolbox_collapser');if(!p)s.push(' cke_toolbox_collapser_min');s.push('" onclick="CKEDITOR.tools.callFunction('+b+')">','<span>▲</span>','</a>')};r.data.html+=s.join('')}});n.on('destroy',function(){var i,a=0,n,r,e;i=this.toolbox.toolbars;for(;a<i.length;a++){r=i[a].items;for(n=0;n<r.length;n++){e=r[n];if(e.clickFn)t.removeFunction(e.clickFn);if(e.keyDownFn)t.removeFunction(e.keyDownFn);if(e.index)o.button._.instances[e.index]=null}}});n.addCommand('toolbarFocus',s.toolbarFocus)}})})();o.separator={render:function(e,t){t.push('<span class="cke_separator" role="separator"></span>');return{}}};l.toolbarLocation='top';l.toolbar_Basic=[['Bold','Italic','-','NumberedList','BulletedList','-','Link','Unlink','-','About']];l.toolbar_Full=[['Source','-','Save','NewPage','Preview','-','Templates'],['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print','SpellChecker','Scayt'],['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'],'/',['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],['NumberedList','BulletedList','-','Outdent','Indent','Blockquote','CreateDiv'],['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],['BidiLtr','BidiRtl'],['Link','Unlink','Anchor'],['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak','Iframe'],'/',['Styles','Format','Font','FontSize'],['TextColor','BGColor'],['Maximize','ShowBlocks','-','About']];l.toolbar='Full';l.toolbarCanCollapse=!0;(function(){r.add('undo',{requires:['selection','wysiwygarea'],init:function(t){var n=new l(t),a=t.addCommand('undo',{exec:function(){if(n.undo()){t.selectionChange();this.fire('afterUndo')}},state:0,canUndo:!1}),r=t.addCommand('redo',{exec:function(){if(n.redo()){t.selectionChange();this.fire('afterRedo')}},state:0,canUndo:!1});n.onChange=function(){a.setState(n.undoable()?2:0);r.setState(n.redoable()?2:0)};function i(e){if(n.enabled&&e.data.command.canUndo!==!1)n.save()};t.on('beforeCommandExec',i);t.on('afterCommandExec',i);t.on('saveSnapshot',function(){n.save()});t.on('contentDom',function(){t.document.on('keydown',function(e){if(!e.data.$.ctrlKey&&!e.data.$.metaKey)n.type(e)})});t.on('beforeModeUnload',function(){t.mode=='wysiwyg'&&n.save(!0)});t.on('mode',function(){n.enabled=t.mode=='wysiwyg';n.onChange()});t.ui.addButton('Undo',{label:t.lang.undo,command:'undo'});t.ui.addButton('Redo',{label:t.lang.redo,command:'redo'});t.resetUndo=function(){n.reset();t.fire('saveSnapshot')};t.on('updateSnapshot',function(){if(n.currentImage&&new e(t).equals(n.currentImage))setTimeout(function(){n.update()},0)})}});r.undo={};var e=r.undo.Image=function(e){this.editor=e;var t=e.getSnapshot(),n=t&&e.getSelection();a&&t&&(t=t.replace(/\s+data-cke-expando=".*?"/g,''));this.contents=t;this.bookmarks=n&&n.createBookmarks2(!0)},s=/\b(?:href|src|name)="[^"]*?"/gi;e.prototype={equals:function(e,i){var d=this.contents,f=e.contents;if(a&&(n.ie7Compat||n.ie6Compat)){d=d.replace(s,'');f=f.replace(s,'')};if(d!=f)return!1;if(i)return!0;var r=this.bookmarks,u=e.bookmarks;if(r||u){if(!r||!u||r.length!=u.length)return!1;for(var c=0;c<r.length;c++){var o=r[c],l=u[c];if(o.startOffset!=l.startOffset||o.endOffset!=l.endOffset||!t.arrayCompare(o.start,l.start)||!t.arrayCompare(o.end,l.end))return!1}};return!0}};function l(e){this.editor=e;this.reset()};var i={8:1,46:1},c={16:1,17:1,18:1},o={37:1,38:1,39:1,40:1};l.prototype={type:function(n){var r=n&&n.data.getKey(),d=r in c,s=r in i,f=this.lastKeystroke in i,m=s&&r==this.lastKeystroke,u=r in o,g=this.lastKeystroke in o,h=!s&&!u,p=s&&!m,v=!(d||this.typing)||h&&(f||g);if(v||p){var l=new e(this.editor);t.setTimeout(function(){var e=this,t=e.editor.getSnapshot();if(a)t=t.replace(/\s+data-cke-expando=".*?"/g,'');if(l.contents!=t){e.typing=!0;if(!e.save(!1,l,!1))e.snapshots.splice(e.index+1,e.snapshots.length-e.index-1);e.hasUndo=!0;e.hasRedo=!1;e.typesCount=1;e.modifiersCount=1;e.onChange()}},0,this)};this.lastKeystroke=r;if(s){this.typesCount=0;this.modifiersCount++;if(this.modifiersCount>25){this.save(!1,null,!1);this.modifiersCount=1}}
+else if(!u){this.modifiersCount=0;this.typesCount++;if(this.typesCount>25){this.save(!1,null,!1);this.typesCount=1}}},reset:function(){var e=this;e.lastKeystroke=0;e.snapshots=[];e.index=-1;e.limit=e.editor.config.undoStackSize||20;e.currentImage=null;e.hasUndo=!1;e.hasRedo=!1;e.resetType()},resetType:function(){var e=this;e.typing=!1;delete e.lastKeystroke;e.typesCount=0;e.modifiersCount=0},fireChange:function(){var e=this;e.hasUndo=!!e.getNextImage(!0);e.hasRedo=!!e.getNextImage(!1);e.resetType();e.onChange()},save:function(t,n,i){var a=this,r=a.snapshots;if(!n)n=new e(a.editor);if(n.contents===!1)return!1;if(a.currentImage&&n.equals(a.currentImage,t))return!1;r.splice(a.index+1,r.length-a.index-1);if(r.length==a.limit)r.shift();a.index=r.push(n)-1;a.currentImage=n;if(i!==!1)a.fireChange();return!0},restoreImage:function(e){var t=this;t.editor.loadSnapshot(e.contents);if(e.bookmarks)t.editor.getSelection().selectBookmarks(e.bookmarks);else if(a){var n=t.editor.document.getBody().$.createTextRange();n.collapse(!0);n.select()};t.index=e.index;t.update();t.fireChange()},getNextImage:function(e){var i=this,a=i.snapshots,r=i.currentImage,n,t;if(r)if(e)for(t=i.index-1;t>=0;t--){n=a[t];if(!r.equals(n,!0)){n.index=t;return n}}
+else for(t=i.index+1;t<a.length;t++){n=a[t];if(!r.equals(n,!0)){n.index=t;return n}};return null},redoable:function(){return this.enabled&&this.hasRedo},undoable:function(){return this.enabled&&this.hasUndo},undo:function(){var e=this;if(e.undoable()){e.save(!0);var t=e.getNextImage(!0);if(t)return e.restoreImage(t),!0};return!1},redo:function(){var e=this;if(e.redoable()){e.save(!0);if(e.redoable()){var t=e.getNextImage(!1);if(t)return e.restoreImage(t),!0}};return!1},update:function(){var t=this;t.snapshots.splice(t.index,1,t.currentImage=new e(t.editor))}}})();(function(){var m={table:1,pre:1},u=/(^|<body\b[^>]*>)\s*<(p|div|address|h\d|center)[^>]*>\s*(?:<br[^>]*>| |\u00A0| )?\s*(:?<\/\2>)?\s*(?=$|<\/body>)/gi,y=i.walker.whitespaces(!0);function g(e){return e.getName()in m||e.isBlockBoundary()&&c.$empty[e.getName()]};function f(e){return function(n){if(this.mode=='wysiwyg'){this.focus();this.fire('saveSnapshot');e.call(this,n.data);t.setTimeout(function(){this.fire('saveSnapshot')},0,this)}}};function h(e){var o=this;if(o.dataProcessor)e=o.dataProcessor.toHtml(e);var i=o.getSelection(),r=i.getRanges()[0];if(r.checkReadOnly())return;if(a){var c=i.isLocked;if(c)i.unlock();var l=i.getNative();if(l.type=='Control')l.clear();else if(i.getType()==2){r=i.getRanges()[0];var s=r&&r.endContainer;if(s&&s.type==1&&s.getAttribute('contenteditable')=='false'&&r.checkBoundaryOfElement(s,2)){r.setEndAfter(r.endContainer);r.deleteContents()}};try{l.createRange().pasteHTML(e)}catch(t){};if(c)o.getSelection().lock()}
+else o.document.$.execCommand('inserthtml',!1,e);if(n.webkit){i=o.getSelection();i.scrollIntoView()}};function k(e){var f=this.getSelection(),m=f.getStartElement().hasAscendant('pre',!0)?2:this.config.enterMode,g=m==2,r=t.htmlEncode(e.replace(/\r\n|\r/g,'\n'));r=r.replace(/^[ \t]+|[ \t]+$/g,function(e,n,i){if(e.length==1)return' ';else if(!n)return t.repeat(' ',e.length-1)+' ';else return' '+t.repeat(' ',e.length-1)});r=r.replace(/[ \t]{2,}/g,function(e){return t.repeat(' ',e.length-1)+' '});var l=m==1?'p':'div';if(!g)r=r.replace(/(\n{2})([\s\S]*?)(?:$|\1)/g,function(e,t,n){return'<'+l+'>'+n+'</'+l+'>'});r=r.replace(/\n/g,'<br>');if(!(g||a))r=r.replace(new RegExp('<br>(?=</'+l+'>)'),function(e){return t.repeat(e,2)});if(n.gecko||n.webkit){var s=new i.elementPath(f.getStartElement()),d=[];for(var o=0;o<s.elements.length;o++){var u=s.elements[o].getName();if(u in c.$inline)d.unshift(s.elements[o].getOuterHtml().match(/^<.*?>/));else if(u in c.$block)break};r=d.join('')+r};h.call(this,r)};function w(e){var o=this.getSelection(),d=o.getRanges(),f=e.getName(),m=c.$block[f],g=o.isLocked;if(g)o.unlock();var t,u,i,h;for(var r=d.length-1;r>=0;r--){t=d[r];if(!t.checkReadOnly()){t.deleteContents(1);u=!r&&e||e.clone(1);var n,l;if(m)while((n=t.getCommonAncestor(0,1))&&(l=c[n.getName()])&&!(l&&l[f])){if(n.getName()in c.span)t.splitElement(n);else if(t.checkStartOfBlock()&&t.checkEndOfBlock()){t.setStartBefore(n);t.collapse(!0);n.remove()}
+else t.splitBlock()};t.insertNode(u);if(!i)i=u}};if(i){t.moveToPosition(i,4);if(m){var a=i.getNext(y),s=a&&a.type==1&&a.getName();if(s&&c.$block[s]&&c[s]['#'])t.moveToElementEditStart(a)}};o.selectRanges([t]);if(g)this.getSelection().lock()};function l(e){if(!e.checkDirty())setTimeout(function(){e.resetDirty()},0)};var o=i.walker.whitespaces(!0),b=i.walker.bookmark(!1,!0);function C(e){return o(e)&&b(e)};function x(e){return e.type==3&&t.trim(e.getText()).match(/^(?: |\xa0)$/)};function p(e){if(e.isLocked){e.unlock();setTimeout(function(){e.lock()},0)}};function S(e){return e.getOuterHtml().match(u)};o=i.walker.whitespaces(!0);function v(e){var f=e.window,n=e.document,a=e.document.getBody(),r=a.getChildren().count();if(!r||r==1&&a.getFirst().hasAttribute('_moz_editor_bogus_node')){l(e);var s=e.element.getDocument(),t=s.getDocumentElement(),c=t.$.scrollTop,u=t.$.scrollLeft,d=n.$.createEvent('KeyEvents');d.initKeyEvent('keypress',!0,!0,f.$,!1,!1,!1,!1,0,32);n.$.dispatchEvent(d);if(c!=t.$.scrollTop||u!=t.$.scrollLeft)s.getWindow().$.scrollTo(u,c);r&&a.getFirst().remove();n.getBody().appendBogus();var o=new i.range(n);o.setStartAt(a,1);o.select()}};function E(e){var t=e.editor,d=e.data.path,T=d.blockLimit,k=e.data.selection,u=k.getRanges()[0],w=t.document.getBody(),E=t.config.enterMode;if(n.gecko){v(t);var y=d.block||d.blockLimit;if(y&&!y.getBogus()){t.fire('updateSnapshot');l(t);y.appendBogus()}};if(E!=2&&u.collapsed&&T.getName()=='body'&&!d.block){t.fire('updateSnapshot');l(t);a&&p(k);var c=u.fixBlock(!0,t.config.enterMode==3?'div':'p');if(a){var b=c.getFirst(C);b&&x(b)&&b.remove()};if(S(c)){var r=c.getNext(o);if(r&&r.type==1&&!g(r)){u.moveToElementEditStart(r);c.remove()}
+else{r=c.getPrevious(o);if(r&&r.type==1&&!g(r)){u.moveToElementEditEnd(r);c.remove()}}};u.select();if(!a){t.forceNextSelectionCheck();t.selectionChange()}};var N=new i.range(t.document),h=new i.walker(N);N.selectNodeContents(w);h.evaluator=function(e){return e.type==1&&e.getName()in m};h.guard=function(e,t){return!(e.type==3&&o(e)||t)};if(h.previous()){t.fire('updateSnapshot');l(t);a&&p(k);var f;if(E!=2)f=w.append(new s(E==1?'p':'div'));else f=w;if(!a)f.appendBogus()}};r.add('wysiwygarea',{requires:['editingblock'],init:function(r){var b=r.config.enterMode!=2?r.config.enterMode==3?'div':'p':!1,l=r.lang.editorTitle.replace('%1',r.name),m;r.on('editingBlockReady',function(){var y,c,C,p,x,S,N=n.isCustomDomain(),B=function(t){if(c)c.remove();var o='document.open();'+(N?'document.domain="'+document.domain+'";':'')+'document.close();';o=n.air?'javascript:void(0)':a?'javascript:void(function(){'+encodeURIComponent(o)+'}())':'';c=s.createFromHtml('<iframe style="width:100%;height:100%" frameBorder="0" title="'+l+'" src="'+o+'" tabIndex="'+(n.webkit?-1:r.tabIndex)+'" allowTransparency="true"></iframe>');if(document.location.protocol=='chrome:')e.event.useCapture=!0;c.on('load',function(e){x=1;e.removeListener();var i=c.getFrameDocument();i.write(t);n.air&&T(i.getWindow().$)});if(document.location.protocol=='chrome:')e.event.useCapture=!1;var i=r.element,u=n.gecko&&!i.isVisible(),d={};if(u){i.show();d={position:i.getStyle('position'),top:i.getStyle('top')};i.setStyles({position:'absolute',top:'-3000px'})};y.append(c);if(u)setTimeout(function(){i.hide();i.setStyles(d)},1000)};m=t.addFunction(T);var I='<script id="cke_actscrpt" type="text/javascript" data-cke-temp="1">'+(N?'document.domain="'+document.domain+'";':'')+'window.parent.CKEDITOR.tools.callFunction( '+m+', window );</script>';function T(e){if(!x)return;x=0;r.fire('ariaWidget',c);var s=e.document,l=s.body,f=s.getElementById('cke_actscrpt');f&&f.parentNode.removeChild(f);l.spellcheck=!r.config.disableNativeSpellChecker;if(a){l.hideFocus=!0;l.disabled=!0;l.contentEditable=!0;l.removeAttribute('disabled')}
+else setTimeout(function(){if(n.gecko&&n.version>=10900||n.opera)s.$.body.contentEditable=!0;else if(n.webkit)s.$.body.parentNode.contentEditable=!0;else s.$.designMode='on'},0);n.gecko&&t.setTimeout(v,0,null,r);e=r.window=new i.window(e);s=r.document=new d(s);s.on('dblclick',function(e){var n=e.data.getTarget(),t={element:n,dialog:''};r.fire('doubleclick',t);t.dialog&&r.openDialog(t.dialog)});a&&s.on('click',function(e){var n=e.data.getTarget();if(n.is('input')){var t=n.getAttribute('type');if(t=='submit'||t=='reset')e.data.preventDefault()}});if(!(a||n.opera))s.on('mousedown',function(e){var t=e.data.getTarget();if(t.is('img','hr','input','textarea','select'))r.getSelection().selectElement(t)});if(n.gecko)s.on('mouseup',function(e){if(e.data.$.button==2){var n=e.data.getTarget();if(!n.getOuterHtml().replace(u,'')){var t=new i.range(s);t.moveToElementEditStart(n);t.select(!0)}}});s.on('click',function(e){e=e.data;if(e.getTarget().is('a')&&e.$.button!=2)e.preventDefault()});if(n.webkit){s.on('click',function(e){if(e.data.getTarget().is('input','select'))e.data.preventDefault()});s.on('mouseup',function(e){if(e.data.getTarget().is('input','textarea'))e.data.preventDefault()})};if(a&&s.$.compatMode=='CSS1Compat'||n.gecko||n.opera){var y=s.getDocumentElement();y.on('mousedown',function(e){if(e.data.getTarget().equals(y)){if(n.gecko&&n.version>=10900)g();o.focus()}})};var b=a?c:e;b.on('blur',function(){r.focusManager.blur()});var h;b.on('focus',function(){var e=r.document;if(n.gecko&&n.version>=10900)g();else if(n.opera)e.getBody().focus();else if(n.webkit)if(!h){r.document.getDocumentElement().focus();h=1};r.focusManager.focus()});var m=r.keystrokeHandler;if(m)m.attach(s);if(a){s.getDocumentElement().addClass(s.$.compatMode);s.on('keydown',function(e){var a=e.data.getKeystroke();if(a in{8:1,46:1}){var t=r.getSelection(),n=t.getSelectedElement();if(n){r.fire('saveSnapshot');var i=t.getRanges()[0].createBookmark();n.remove();t.selectBookmarks([i]);r.fire('saveSnapshot');e.data.preventDefault()}}});if(s.$.compatMode=='CSS1Compat'){var k={33:1,34:1};s.on('keydown',function(e){if(e.data.getKeystroke()in k)setTimeout(function(){r.getSelection().scrollIntoView()},0)})}};if(r.contextMenu)r.contextMenu.addTarget(s,r.config.browserContextMenuOnCtrl!==!1);setTimeout(function(){r.fire('contentDom');if(S){r.mode='wysiwyg';r.fire('mode');S=!1};C=!1;if(p){r.focus();p=!1};setTimeout(function(){r.fire('dataReady')},0);try{r.document.$.execCommand('enableInlineTableEditing',!1,!r.config.disableNativeTableHandles)}catch(e){};if(r.config.disableObjectResizing)try{r.document.$.execCommand('enableObjectResizing',!1,!1)}catch(e){r.document.getBody().on(a?'resizestart':'resize',function(e){e.data.preventDefault()})};if(a)setTimeout(function(){if(r.document){var e=r.document.$.body;e.runtimeStyle.marginBottom='0px';e.runtimeStyle.marginBottom=''}},1000)},0)};r.addMode('wysiwyg',{load:function(e,t,i){y=e;if(a&&n.quirks)e.setStyle('position','relative');r.mayBeDirty=!0;S=!0;if(i)this.loadSnapshotData(t);else this.loadData(t)},loadData:function(e){C=!0;var n=r.config,o=n.fullPage,s=n.docType,i='<style type="text/css" data-cke-temp="1">'+r._.styles.join('\n')+'</style>';!o&&(i=t.buildStyleHtml(r.config.contentsCss)+i);var a=n.baseHref?'<base href="'+n.baseHref+'" data-cke-temp="1" />':'';if(o)e=e.replace(/<!DOCTYPE[^>]*>/i,function(e){r.docType=s=e;return''});if(r.dataProcessor)e=r.dataProcessor.toHtml(e,b);if(o){if(!/<body[\s|>]/.test(e))e='<body>'+e;if(!/<html[\s|>]/.test(e))e='<html>'+e+'</html>';if(!/<head[\s|>]/.test(e))e=e.replace(/<html[^>]*>/,'$&<head><title></title></head>');else if(!/<title[\s|>]/.test(e))e=e.replace(/<head[^>]*>/,'$&<title></title>');a&&(e=e.replace(/<head>/,'$&'+a));e=e.replace(/<\/head\s*>/,i+'$&');e=s+e}
+else e=n.docType+'<html dir="'+n.contentsLangDirection+'" lang="'+(n.contentsLanguage||r.langCode)+'"><head><title>'+l+'</title>'+a+i+'</head><body'+(n.bodyId?' id="'+n.bodyId+'"':'')+(n.bodyClass?' class="'+n.bodyClass+'"':'')+'>'+e+'</html>';e+=I;this.onDispose();B(e)},getData:function(){var t=r.config,n=t.fullPage,i=n&&r.docType,a=c.getFrameDocument(),e=n?a.getDocumentElement().getOuterHtml():a.getBody().getHtml();if(r.dataProcessor)e=r.dataProcessor.toDataFormat(e,b);if(t.ignoreEmptyParagraph)e=e.replace(u,function(e,t){return t});if(i)e=i+'\n'+e;return e},getSnapshotData:function(){return c.getFrameDocument().getBody().getHtml()},loadSnapshotData:function(e){c.getFrameDocument().getBody().setHtml(e)},onDispose:function(){if(!r.document)return;r.document.getDocumentElement().clearCustomData();r.document.getBody().clearCustomData();r.window.clearCustomData();r.document.clearCustomData();c.clearCustomData();c.remove()},unload:function(e){this.onDispose();r.window=r.document=c=y=p=null;r.fire('contentDomUnload')},focus:function(){var e=r.window;if(C)p=!0;else if(n.opera&&r.document){var t=r.window.$.frameElement;t.blur(),t.focus();r.document.getBody().focus();r.selectionChange()}
+else if(!n.opera&&e){n.air?setTimeout(function(){e.focus()},0):e.focus();r.selectionChange()}}});r.on('insertHtml',f(h),null,null,20);r.on('insertElement',f(w),null,null,20);r.on('insertText',f(k),null,null,20);r.on('selectionChange',E,null,null,1)});var C;r.on('contentDom',function(){var e=r.document.getElementsByTag('title').getItem(0);e.data('cke-title',r.document.$.title);r.document.$.title=l});if(e.document.$.documentMode>=8){r.addCss('html.CSS1Compat [contenteditable=false]{ min-height:0 !important;}');var p=[];for(var y in c.$removeEmpty)p.push('html.CSS1Compat '+y+'[contenteditable=false]');r.addCss(p.join(',')+'{ display:inline-block;}')}
+else if(n.gecko)r.addCss('html { height: 100% !important; }');function g(n){t.tryThese(function(){r.document.$.designMode='on';setTimeout(function(){r.document.$.designMode='off';if(e.currentInstance==r)r.document.getBody().focus()},50)},function(){r.document.$.designMode='off';var e=r.document.getBody();e.setAttribute('contentEditable',!1);e.setAttribute('contentEditable',!0);!n&&g(1)})};if(n.gecko||a||n.opera){var o;r.on('uiReady',function(){o=r.container.append(s.createFromHtml('<span tabindex="-1" style="position:absolute;" role="presentation"></span>'));o.on('focus',function(){r.focus()});r.focusGrabber=o});r.on('destroy',function(){t.removeFunction(m);o.clearCustomData();delete r.focusGrabber})};r.on('insertElement',function(e){var t=e.data;if(t.type==1&&(t.is('input')||t.is('textarea'))){if(!t.isReadOnly())t.data('cke-editable',t.hasAttribute('contenteditable')?'true':'1');t.setAttribute('contentEditable',!1)}})}});if(n.gecko)(function(){var e=document.body;if(!e)window.addEventListener('load',arguments.callee,!1);else{var t=e.getAttribute('onpageshow');e.setAttribute('onpageshow',(t?t+';':'')+'event.persisted && (function(){var allInstances = CKEDITOR.instances, editor, doc;for ( var i in allInstances ){\teditor = allInstances[ i ];\tdoc = editor.document;\tif ( doc )\t{\t\tdoc.$.designMode = "off";\t\tdoc.$.designMode = "on";\t}}})();')}})();})();l.disableObjectResizing=!1;l.disableNativeTableHandles=!0;l.disableNativeSpellChecker=!0;l.ignoreEmptyParagraph=!0;r.add('wsc',{requires:['dialog'],init:function(t){var i='checkspell',a=t.addCommand(i,new e.dialogCommand(i));a.modes={wysiwyg:!n.opera&&!n.air&&document.domain==window.location.hostname};t.ui.addButton('SpellChecker',{label:t.lang.spellCheck.toolbar,command:i});e.dialog.add(i,this.path+'dialogs/wsc.js')}});l.wsc_customerId=l.wsc_customerId||'1:ua3xw1-2XyGJ3-GWruD3-6OFNT1-oXcuB1-nR6Bp4-hgQHc-EcYng3-sdRXG3-NOfFk';l.wsc_customLoaderScript=l.wsc_customLoaderScript||null;e.DIALOG_RESIZE_NONE=0;e.DIALOG_RESIZE_WIDTH=1;e.DIALOG_RESIZE_HEIGHT=2;e.DIALOG_RESIZE_BOTH=3;(function(){var u=t.cssLength;function x(e){return!!this._.tabs[e][0].$.offsetHeight};function b(){var e=this,r=e._.currentTabId,i=e._.tabIdList.length,a=t.indexOf(e._.tabIdList,r)+i;for(var n=a-1;n>a-i;n--){if(x.call(e,e._.tabIdList[n%i]))return e._.tabIdList[n%i]};return null};function S(){var e=this,r=e._.currentTabId,i=e._.tabIdList.length,a=t.indexOf(e._.tabIdList,r);for(var n=a+1;n<a+i;n++){if(x.call(e,e._.tabIdList[n%i]))return e._.tabIdList[n%i]};return null};function E(e,t){var a=e.$.getElementsByTagName('input');for(var i=0,r=a.length;i<r;i++){var n=new s(a[i]);if(n.getAttribute('type').toLowerCase()=='text')if(t){n.setAttribute('value',n.getCustomData('fake_value')||'');n.removeCustomData('fake_value')}
+else{n.setCustomData('fake_value',n.getAttribute('value'));n.setAttribute('value','')}}};e.dialog=function(r,o){var c=e.dialog._.dialogDefinitions[o],B=t.clone(L),k=r.config.dialog_buttonsOrder||'OS',A=r.lang.dir;if(k=='OS'&&n.mac||k=='rtl'&&A=='ltr'||k=='ltr'&&A=='rtl')B.buttons.reverse();c=t.extend(c(r),B);c=t.clone(c);c=new C(this,c);var R=e.document,I=r.theme.buildDialog(r);this._={editor:r,element:I.element,name:o,contentSize:{width:0,height:0},size:{width:0,height:0},contents:{},buttons:{},accessKeyMap:{},tabs:{},tabIdList:[],currentTabId:null,currentTabIndex:null,pageCount:0,lastTab:null,tabBarMode:!1,focusList:[],currentFocusIndex:0,hasFocus:!1};this.parts=I.parts;t.setTimeout(function(){r.fire('ariaWidget',this.parts.contents)},0,this);this.parts.dialog.setStyles({position:n.ie6Compat?'absolute':'fixed',top:0,left:0,visibility:'hidden'});e.event.call(this);this.definition=c=e.fire('dialogDefinition',{name:o,definition:c},r).definition;var m={};if(!('removeDialogTabs' in r._)&&r.config.removeDialogTabs){var T=r.config.removeDialogTabs.split(';');for(l=0;l<T.length;l++){var y=T[l].split(':');if(y.length==2){var v=y[0];if(!m[v])m[v]=[];m[v].push(y[1])}};r._.removeDialogTabs=m};if(r._.removeDialogTabs&&(m=r._.removeDialogTabs[o]))for(l=0;l<m.length;l++)c.removeContents(m[l]);if(c.onLoad)this.on('load',c.onLoad);if(c.onShow)this.on('show',c.onShow);if(c.onHide)this.on('hide',c.onHide);if(c.onOk)this.on('ok',function(e){r.fire('saveSnapshot');setTimeout(function(){r.fire('saveSnapshot')},0);if(c.onOk.call(this,e)===!1)e.data.hide=!1});if(c.onCancel)this.on('cancel',function(e){if(c.onCancel.call(this,e)===!1)e.data.hide=!1});var s=this,N=function(e){var t=s._.contents,i=!1;for(var n in t)for(var a in t[n]){i=e.call(this,t[n][a]);if(i)return}};this.on('ok',function(e){N(function(t){if(t.validate){var n=t.validate(this);if(typeof n=='string'){alert(n);n=!1};if(n===!1){if(t.select)t.select();else t.focus();e.data.hide=!1;e.stop();return!0}}})},this,null,0);this.on('cancel',function(e){N(function(t){if(t.isChanged()){if(!confirm(r.lang.common.confirmCancel))e.data.hide=!1;return!0}})},this,null,0);this.parts.close.on('click',function(e){if(this.fire('cancel',{hide:!0}).hide!==!1)this.hide();e.data.preventDefault()},this);function D(){var t=s._.focusList;t.sort(function(e,t){if(e.tabIndex!=t.tabIndex)return t.tabIndex-e.tabIndex;else return e.focusIndex-t.focusIndex});var n=t.length;for(var e=0;e<n;e++)t[e].focusIndex=e};function g(e){var n=s._.focusList,o=e?1:-1;if(n.length<1)return;var r=s._.currentFocusIndex;try{n[r].getInputElement().$.blur()}catch(t){};var a=(r+o+n.length)%n.length,i=a;while(!n[i].isFocusable()){i=(i+o+n.length)%n.length;if(i==a)break};n[i].focus();if(n[i].type=='text')n[i].select()};this.changeFocus=g;var f;function w(t){var a=this;if(s!=e.dialog._.currentTop)return;var n=t.data.getKeystroke(),l=r.lang.dir=='rtl';f=0;if(n==9||n==2000+9){var o=n==2000+9;if(s._.tabBarMode){var i=o?b.call(s):S.call(s);s.selectPage(i);s._.tabs[i][0].focus()}
+else g(!o);f=1}
+else if(n==4000+121&&!s._.tabBarMode&&s.getPageCount()>1){s._.tabBarMode=!0;s._.tabs[s._.currentTabId][0].focus();f=1}
+else if((n==37||n==39)&&s._.tabBarMode){i=n==(l?39:37)?b.call(s):S.call(s);s.selectPage(i);s._.tabs[i][0].focus();f=1}
+else if((n==13||n==32)&&s._.tabBarMode){a.selectPage(a._.currentTabId);a._.tabBarMode=!1;a._.currentFocusIndex=-1;g(!0);f=1};if(f){t.stop();t.data.preventDefault()}};function P(e){f&&e.data.preventDefault()};var h=this._.element;this.on('show',function(){h.on('keydown',w,this,null,0);if(n.opera||n.gecko&&n.mac)h.on('keypress',P,this)});this.on('hide',function(){h.removeListener('keydown',w);if(n.opera||n.gecko&&n.mac)h.removeListener('keypress',P)});this.on('iframeAdded',function(e){var t=new d(e.data.iframe.$.contentWindow.document);t.on('keydown',w,this,null,0)});this.on('show',function(){var t=this;D();if(r.config.dialog_startupFocusTab&&s._.pageCount>1){s._.tabBarMode=!0;s._.tabs[s._.currentTabId][0].focus()}
+else if(!t._.hasFocus){t._.currentFocusIndex=-1;if(c.onFocus){var i=c.onFocus.call(t);i&&i.focus()}
+else g(!0);if(t._.editor.mode=='wysiwyg'&&a){var o=r.document.$.selection,e=o.createRange();if(e)if(e.parentElement&&e.parentElement().ownerDocument==r.document.$||e.item&&e.item(0).ownerDocument==r.document.$){var n=document.body.createTextRange();n.moveToElementText(t.getElement().getFirst().$);n.collapse(!0);n.select()}}}},this,null,4294967295);if(n.ie6Compat)this.on('load',function(e){var t=this.getElement(),n=t.getFirst();n.remove();n.appendTo(t)},this);F(this);O(this);new i.text(c.title,e.document).appendTo(this.parts.title);for(var u=0;u<c.contents.length;u++){var E=c.contents[u];E&&this.addPage(E)};this.parts.tabs.on('click',function(e){var t=this,i=e.data.getTarget();if(i.hasClass('cke_dialog_tab')){var n=i.$.id;t.selectPage(n.substring(4,n.lastIndexOf('_')));if(t._.tabBarMode){t._.tabBarMode=!1;t._.currentFocusIndex=-1;g(!0)};e.data.preventDefault()}},this);var x=[],p=e.dialog._.uiElementBuilders.hbox.build(this,{type:'hbox',className:'cke_dialog_footer_buttons',widths:[],children:c.buttons},x).getChild();this.parts.footer.setHtml(x.join(''));for(u=0;u<p.length;u++)this._.buttons[p[u].id]=p[u]};function N(e,t,n){this.element=t;this.focusIndex=n;this.tabIndex=0;this.isFocusable=function(){return!t.getAttribute('disabled')&&t.isVisible()};this.focus=function(){e._.currentFocusIndex=this.focusIndex;this.element.focus()};t.on('keydown',function(e){if(e.data.getKeystroke()in{32:1,13:1})this.fire('click')});t.on('focus',function(){this.fire('mouseover')});t.on('blur',function(){this.fire('mouseout')})};e.dialog.prototype={destroy:function(){this.hide();this._.element.remove()},resize:(function(){return function(t,n){var i=this;if(i._.contentSize&&i._.contentSize.width==t&&i._.contentSize.height==n)return;e.dialog.fire('resize',{dialog:i,skin:i._.editor.skinName,width:t,height:n},i._.editor);i._.contentSize={width:t,height:n}}})(),getSize:function(){var e=this._.element.getFirst();return{width:e.$.offsetWidth||0,height:e.$.offsetHeight||0}},move:(function(){var t;return function(n,i,a){var r=this,s=r._.element.getFirst();if(t===undefined)t=s.getComputedStyle('position')=='fixed';if(t&&r._.position&&r._.position.x==n&&r._.position.y==i)return;r._.position={x:n,y:i};if(!t){var o=e.document.getWindow().getScrollPosition();n+=o.x;i+=o.y};s.setStyles({left:(n>0?n:0)+'px',top:(i>0?i:0)+'px'});a&&(r._.moved=1)}})(),getPosition:function(){return t.extend({},this._.position)},show:function(){var i=this._.element,r=this.definition;if(!(i.getParent()&&i.getParent().equals(e.document.getBody())))i.appendTo(e.document.getBody());else i.setStyle('display','block');if(n.gecko&&n.version<10900){var a=this.parts.dialog;a.setStyle('position','absolute');setTimeout(function(){a.setStyle('position','fixed')},0)};this.resize(this._.contentSize&&this._.contentSize.width||r.minWidth,this._.contentSize&&this._.contentSize.height||r.minHeight);this.reset();this.selectPage(this.definition.contents[0].id);if(e.dialog._.currentZIndex===null)e.dialog._.currentZIndex=this._.editor.config.baseFloatZIndex;this._.element.getFirst().setStyle('z-index',e.dialog._.currentZIndex+=10);if(e.dialog._.currentTop===null){e.dialog._.currentTop=this;this._.parentDialog=null;I(this._.editor);i.on('keydown',y);i.on(n.opera?'keypress':'keyup',k);for(var l in{keyup:1,keydown:1,keypress:1})i.on(l,w)}
+else{this._.parentDialog=e.dialog._.currentTop;var s=this._.parentDialog.getElement().getFirst();s.$.style.zIndex-=Math.floor(this._.editor.config.baseFloatZIndex/2);e.dialog._.currentTop=this};p(this,this,'\x1b',null,function(){this.getButton('cancel')&&this.getButton('cancel').click()});this._.hasFocus=!1;t.setTimeout(function(){this.layout();this.parts.dialog.setStyle('visibility','');this.fireOnce('load',{});o.fire('ready',this);this.fire('show',{});this._.editor.fire('dialogShow',this);this.foreach(function(e){e.setInitValue&&e.setInitValue()})},100,this)},layout:function(){var t=this,n=e.document.getWindow().getViewPaneSize(),i=t.getSize();t.move(t._.moved?t._.position.x:(n.width-i.width)/2,t._.moved?t._.position.y:(n.height-i.height)/2)},foreach:function(e){var t=this;for(var n in t._.contents)for(var i in t._.contents[n])e(t._.contents[n][i]);return t},reset:(function(){var e=function(e){if(e.reset)e.reset(1)};return function(){this.foreach(e);return this}})(),setupContent:function(){var e=arguments;this.foreach(function(t){if(t.setup)t.setup.apply(t,e)})},commitContent:function(){var e=arguments;this.foreach(function(t){if(t.commit)t.commit.apply(t,e)})},hide:function(){if(!this.parts.dialog.isVisible())return;this.fire('hide',{});this._.editor.fire('dialogHide',this);var t=this._.element;t.setStyle('display','none');this.parts.dialog.setStyle('visibility','hidden');B(this);while(e.dialog._.currentTop!=this)e.dialog._.currentTop.hide();if(!this._.parentDialog)R();else{var o=this._.parentDialog.getElement().getFirst();o.setStyle('z-index',parseInt(o.$.style.zIndex,10)+Math.floor(this._.editor.config.baseFloatZIndex/2))};e.dialog._.currentTop=this._.parentDialog;if(!this._.parentDialog){e.dialog._.currentZIndex=null;t.removeListener('keydown',y);t.removeListener(n.opera?'keypress':'keyup',k);for(var s in{keyup:1,keydown:1,keypress:1})t.removeListener(s,w);var i=this._.editor;i.focus();if(i.mode=='wysiwyg'&&a){var r=i.getSelection();r&&r.unlock(!0)}}
+else e.dialog._.currentZIndex-=10;delete this._.parentDialog;this.foreach(function(e){e.resetInitValue&&e.resetInitValue()})},addPage:function(i){var a=this,f=[],g=i.label?' title="'+t.htmlEncode(i.label)+'"':'',v=i.elements,h=e.dialog._.uiElementBuilders.vbox.build(a,{type:'vbox',className:'cke_dialog_page_contents',children:i.elements,expand:!!i.expand,padding:i.padding,style:i.style||'width: 100%;'},f),o=s.createFromHtml(f.join(''));o.setAttribute('role','tabpanel');var u=n,d='cke_'+i.id+'_'+t.getNextNumber(),l=s.createFromHtml(['<a class="cke_dialog_tab"',a._.pageCount>0?' cke_last':'cke_first',g,!!i.hidden?' style="display:none"':'',' id="',d,'"',u.gecko&&u.version>=10900&&!u.hc?'':' href="javascript:void(0)"',' tabIndex="-1"',' hidefocus="true"',' role="tab">',i.label,'</a>'].join(''));o.setAttribute('aria-labelledby',d);a._.tabs[i.id]=[l,o];a._.tabIdList.push(i.id);!i.hidden&&a._.pageCount++;a._.lastTab=l;a.updateStyle();var m=a._.contents[i.id]={},r,c=h.getChild();while(r=c.shift()){m[r.id]=r;if(typeof r.getChild=='function')c.push.apply(c,r.getChild())};o.setAttribute('name',i.id);o.appendTo(a.parts.contents);l.unselectable();a.parts.tabs.append(l);if(i.accessKey){p(a,a,'CTRL+'+i.accessKey,P,A);a._.accessKeyMap['CTRL+'+i.accessKey]=i.id}},selectPage:function(e){if(this._.currentTabId==e)return;if(this.fire('selectPage',{page:e,currentPage:this._.currentTabId})===!0)return;for(var a in this._.tabs){var o=this._.tabs[a][0],r=this._.tabs[a][1];if(a!=e){o.removeClass('cke_dialog_tab_selected');r.hide()};r.setAttribute('aria-hidden',a!=e)};var i=this._.tabs[e];i[0].addClass('cke_dialog_tab_selected');if(n.ie6Compat||n.ie7Compat){E(i[1]);i[1].show();setTimeout(function(){E(i[1],1)},0)}
+else i[1].show();this._.currentTabId=e;this._.currentTabIndex=t.indexOf(this._.tabIdList,e)},updateStyle:function(){this.parts.dialog[(this._.pageCount===1?'add':'remove')+'Class']('cke_single_page')},hidePage:function(e){var t=this,n=t._.tabs[e]&&t._.tabs[e][0];if(!n||t._.pageCount==1||!n.isVisible())return;else if(e==t._.currentTabId)t.selectPage(b.call(t));n.hide();t._.pageCount--;t.updateStyle()},showPage:function(e){var t=this,n=t._.tabs[e]&&t._.tabs[e][0];if(!n)return;n.show();t._.pageCount++;t.updateStyle()},getElement:function(){return this._.element},getName:function(){return this._.name},getContentElement:function(e,t){var n=this._.contents[e];return n&&n[t]},getValueOf:function(e,t){return this.getContentElement(e,t).getValue()},setValueOf:function(e,t,n){return this.getContentElement(e,t).setValue(n)},getButton:function(e){return this._.buttons[e]},click:function(e){return this._.buttons[e].click()},disableButton:function(e){return this._.buttons[e].disable()},enableButton:function(e){return this._.buttons[e].enable()},getPageCount:function(){return this._.pageCount},getParentEditor:function(){return this._.editor},getSelectedElement:function(){return this.getParentEditor().getSelection().getSelectedElement()},addFocusable:function(e,t){var n=this;if(typeof t=='undefined'){t=n._.focusList.length;n._.focusList.push(new N(n,e,t))}
+else{n._.focusList.splice(t,0,new N(n,e,t));for(var i=t+1;i<n._.focusList.length;i++)n._.focusList[i].focusIndex++}}};t.extend(e.dialog,{add:function(e,t){if(!this._.dialogDefinitions[e]||typeof t=='function')this._.dialogDefinitions[e]=t},exists:function(e){return!!this._.dialogDefinitions[e]},getCurrent:function(){return e.dialog._.currentTop},okButton:(function(){var e=function(e,n){n=n||{};return t.extend({id:'ok',type:'button',label:e.lang.common.ok,'class':'cke_dialog_ui_button_ok',onClick:function(e){var t=e.data.dialog;if(t.fire('ok',{hide:!0}).hide!==!1)t.hide()}},n,!0)};e.type='button';e.override=function(n){return t.extend(function(t){return e(t,n)},{type:'button'},!0)};return e})(),cancelButton:(function(){var e=function(e,n){n=n||{};return t.extend({id:'cancel',type:'button',label:e.lang.common.cancel,'class':'cke_dialog_ui_button_cancel',onClick:function(e){var t=e.data.dialog;if(t.fire('cancel',{hide:!0}).hide!==!1)t.hide()}},n,!0)};e.type='button';e.override=function(n){return t.extend(function(t){return e(t,n)},{type:'button'},!0)};return e})(),addUIElement:function(e,t){this._.uiElementBuilders[e]=t}});e.dialog._={uiElementBuilders:{},dialogDefinitions:{},currentTop:null,currentZIndex:null};e.event.implementOn(e.dialog);e.event.implementOn(e.dialog.prototype,!0);var L={resizable:3,minWidth:600,minHeight:400,buttons:[e.dialog.okButton,e.dialog.cancelButton]},m=function(e,t,n){for(var r=0,i;i=e[r];r++){if(i.id==t)return i;if(n&&i[n]){var a=m(i[n],t,n);if(a)return a}};return null},g=function(e,t,n,i,a){if(n){for(var o=0,r;r=e[o];o++){if(r.id==n){e.splice(o,0,t);return t};if(i&&r[i]){var s=g(r[i],t,n,i,!0);if(s)return s}};if(a)return null};e.push(t);return t},h=function(e,t,n){for(var a=0,i;i=e[a];a++){if(i.id==t)return e.splice(a,1);if(n&&i[n]){var r=h(i[n],t,n);if(r)return r}};return null},C=function(e,n){this.dialog=e;var r=n.contents;for(var i=0,a;a=r[i];i++)r[i]=a&&new T(e,a);t.extend(this,n)};C.prototype={getContents:function(e){return m(this.contents,e)},getButton:function(e){return m(this.buttons,e)},addContents:function(e,t){return g(this.contents,e,t)},addButton:function(e,t){return g(this.buttons,e,t)},removeContents:function(e){h(this.contents,e)},removeButton:function(e){h(this.buttons,e)}};function T(e,n){this._={dialog:e};t.extend(this,n)};T.prototype={get:function(e){return m(this.elements,e,'children')},add:function(e,t){return g(this.elements,e,t,'children')},remove:function(e){h(this.elements,e,'children')}};function F(t){var o=null,i=null,d=t.getElement().getFirst(),u=t.getParentEditor(),r=u.config.dialog_magnetDistance,a=u.skin.margins||[0,0,0,0];if(typeof r=='undefined')r=20;function s(n){var s=t.getSize(),l=e.document.getWindow().getViewPaneSize(),f=n.data.$.screenX,m=n.data.$.screenY,g=f-o.x,h=m-o.y,c,d;o={x:f,y:m};i.x+=g;i.y+=h;if(i.x+a[3]<r)c=-a[3];else if(i.x-a[1]>l.width-s.width-r)c=l.width-s.width+(u.lang.dir=='rtl'?0:a[1]);else c=i.x;if(i.y+a[0]<r)d=-a[0];else if(i.y-a[2]>l.height-s.height-r)d=l.height-s.height+a[2];else d=i.y;t.move(c,d,1);n.data.preventDefault()};function l(t){e.document.removeListener('mousemove',s);e.document.removeListener('mouseup',l);if(n.ie6Compat){var i=c.getChild(0).getFrameDocument();i.removeListener('mousemove',s);i.removeListener('mouseup',l)}};t.parts.title.on('mousedown',function(a){o={x:a.data.$.screenX,y:a.data.$.screenY};e.document.on('mousemove',s);e.document.on('mouseup',l);i=t.getPosition();if(n.ie6Compat){var r=c.getChild(0).getFrameDocument();r.on('mousemove',s);r.on('mouseup',l)};a.data.preventDefault()},t)};function O(i){var h=i.definition,o=h.resizable;if(o==0)return;var l=i.getParentEditor(),v,b,r,g,u,d;function y(e){if(i._.moved&&l.lang.dir=='rtl'){var t=i._.element.getFirst();t.setStyle('right',e+'px');t.removeStyle('left')}
+else if(!i._.moved)i.layout()};var p=t.addFunction(function(t){u=i.getSize();var l=i.parts.contents,h=l.$.getElementsByTagName('iframe').length;if(h){d=s.createFromHtml('<div class="cke_dialog_resize_cover" style="height: 100%; position: absolute; width: 100%;"></div>');l.append(d)};b=u.height-i.parts.contents.getSize('height',!(n.gecko||n.opera||a&&n.quirks));v=u.width-i.parts.contents.getSize('width',1);g={x:t.screenX,y:t.screenY};r=e.document.getWindow().getViewPaneSize();e.document.on('mousemove',f);e.document.on('mouseup',m);if(n.ie6Compat){var o=c.getChild(0).getFrameDocument();o.on('mousemove',f);o.on('mouseup',m)};t.preventDefault&&t.preventDefault()});i.on('load',function(){var e='';if(o==1)e=' cke_resizer_horizontal';else if(o==2)e=' cke_resizer_vertical';var n=s.createFromHtml('<div class="cke_resizer'+e+'" title="'+t.htmlEncode(l.lang.resize)+'" onmousedown="CKEDITOR.tools.callFunction('+p+', event )"></div>');i.parts.footer.append(n,1)});l.on('destroy',function(){t.removeFunction(p)});function f(e){var a=l.lang.dir=='rtl',m=(e.data.$.screenX-g.x)*(a?-1:1),k=e.data.$.screenY-g.y,s=u.width,c=u.height,d=s+m*(i._.moved?1:2),f=c+k*(i._.moved?1:2),p=i._.element.getFirst(),t=a&&p.getComputedStyle('right'),n=i.getPosition();if(t)t=t=='auto'?r.width-(n.x||0)-p.getSize('width'):parseInt(t,10);if(n.y+f>r.height)f=r.height-n.y;if((a?t:n.x)+d>r.width)d=r.width-(a?t:n.x);if((o==1||o==3)&&!(a&&m>0&&!n.x))s=Math.max(h.minWidth||0,d-v);if(o==2||o==3)c=Math.max(h.minHeight||0,f-b);i.resize(s,c);y(t);e.data.preventDefault()};function m(){e.document.removeListener('mouseup',m);e.document.removeListener('mousemove',f);if(d){d.remove();d=null};if(n.ie6Compat){var o=c.getChild(0).getFrameDocument();o.removeListener('mouseup',m);o.removeListener('mousemove',f)};if(l.lang.dir=='rtl'){var a=i._.element.getFirst(),t=a.getComputedStyle('left');if(t=='auto')t=r.width-parseInt(a.getStyle('right'),10)-i.getSize().width;else t=parseInt(t,10);a.removeStyle('right');i._.position.x+=1;i.move(t,i._.position.y)}}};var v,f={},c;function I(i){var o=e.document.getWindow(),u=i.config,d=u.dialog_backgroundCoverColor||'white',m=u.dialog_backgroundCoverOpacity,p=u.baseFloatZIndex,b=t.genKey(d,m,p),a=f[b];if(!a){var r=['<div tabIndex="-1" style="position: ',n.ie6Compat?'absolute':'fixed','; z-index: ',p,'; top: 0px; left: 0px; ',!n.ie6Compat?'background-color: '+d:'','" class="cke_dialog_background_cover">'];if(n.ie6Compat){var y=n.isCustomDomain(),k='<html><body style=\\\'background-color:'+d+';\\\'></body></html>';r.push('<iframe hidefocus="true" frameborder="0" id="cke_dialog_background_iframe" src="javascript:');r.push('void((function(){document.open();'+(y?'document.domain=\''+document.domain+'\';':'')+'document.write( \''+k+'\' );document.close();})())');r.push('" style="position:absolute;left:0;top:0;width:100%;height: 100%;progid:DXImageTransform.Microsoft.Alpha(opacity=0)"></iframe>')};r.push('</div>');a=s.createFromHtml(r.join(''));a.setOpacity(m!=undefined?m:0.5);a.appendTo(e.document.getBody());f[b]=a}
+else a.show();c=a;var l=function(){var e=o.getViewPaneSize();a.setStyles({width:e.width+'px',height:e.height+'px'})},h=function(){var i=o.getScrollPosition(),t=e.dialog._.currentTop;a.setStyles({left:i.x+'px',top:i.y+'px'});if(t)do{var n=t.getPosition();t.move(n.x,n.y)}
+while(t=t._.parentDialog)};v=l;o.on('resize',l);l();if(!(n.mac&&n.webkit))a.focus();if(n.ie6Compat){var g=function(){h();arguments.callee.prevScrollHandler.apply(this,arguments)};o.$.setTimeout(function(){g.prevScrollHandler=window.onscroll||(function(){});window.onscroll=g},0);h()}};function R(){if(!c)return;var t=e.document.getWindow();c.hide();t.removeListener('resize',v);if(n.ie6Compat)t.$.setTimeout(function(){var e=window.onscroll&&window.onscroll.prevScrollHandler;window.onscroll=e||null},0);v=null};function M(){for(var e in f)f[e].remove();f={}};var r={},y=function(e){var n=e.data.$.ctrlKey||e.data.$.metaKey,i=e.data.$.altKey,a=e.data.$.shiftKey,o=String.fromCharCode(e.data.$.keyCode),t=r[(n?'CTRL+':'')+(i?'ALT+':'')+(a?'SHIFT+':'')+o];if(!t||!t.length)return;t=t[t.length-1];t.keydown&&t.keydown.call(t.uiElement,t.dialog,t.key);e.data.preventDefault()},k=function(e){var n=e.data.$.ctrlKey||e.data.$.metaKey,i=e.data.$.altKey,a=e.data.$.shiftKey,o=String.fromCharCode(e.data.$.keyCode),t=r[(n?'CTRL+':'')+(i?'ALT+':'')+(a?'SHIFT+':'')+o];if(!t||!t.length)return;t=t[t.length-1];if(t.keyup){t.keyup.call(t.uiElement,t.dialog,t.key);e.data.preventDefault()}},p=function(e,t,n,i,a){var o=r[n]||(r[n]=[]);o.push({uiElement:e,dialog:t,key:n,keyup:a||e.accessKeyUp,keydown:i||e.accessKeyDown})},B=function(e){for(var i in r){var n=r[i];for(var t=n.length-1;t>=0;t--){if(n[t].dialog==e||n[t].uiElement==e)n.splice(t,1)};if(n.length===0)delete r[i]}},A=function(e,t){if(e._.accessKeyMap[t])e.selectPage(e._.accessKeyMap[t])},P=function(e,t){},D={27:1,13:1},w=function(e){if(e.data.getKeystroke()in D)e.data.stopPropagation()};(function(){o.dialog={uiElement:function(n,i,a,r,o,c,d){if(arguments.length<4)return;var b=(r.call?r(i):r)||'div',h=['<',b,' '],y=(o&&o.call?o(i):o)||{},l=(c&&c.call?c(i):c)||{},k=(d&&d.call?d.call(this,n,i):d)||'',w=this.domId=l.id||t.getNextId()+'_uiElement',C=this.id=i.id,s;l.id=w;var m={};if(i.type)m['cke_dialog_ui_'+i.type]=1;if(i.className)m[i.className]=1;var g=l['class']&&l['class'].split?l['class'].split(' '):[];for(s=0;s<g.length;s++){if(g[s])m[g[s]]=1};var v=[];for(s in m)v.push(s);l['class']=v.join(' ');if(i.title)l.title=i.title;var u=(i.style||'').split(';');for(s in y)u.push(s+':'+y[s]);if(i.hidden)u.push('display:none');for(s=u.length-1;s>=0;s--){if(u[s]==='')u.splice(s,1)};if(u.length>0)l.style=(l.style?l.style+'; ':'')+u.join('; ');for(s in l)h.push(s+'="'+t.htmlEncode(l[s])+'" ');h.push('>',k,'</',b,'>');a.push(h.join(''));(this._||(this._={})).dialog=n;if(typeof i.isChanged=='boolean')this.isChanged=function(){return i.isChanged};if(typeof i.isChanged=='function')this.isChanged=i.isChanged;e.event.implementOn(this);this.registerEvents(i);if(this.accessKeyUp&&this.accessKeyDown&&i.accessKey)p(this,n,'CTRL+'+i.accessKey);var f=this;n.on('load',function(){if(f.getInputElement())f.getInputElement().on('focus',function(){n._.tabBarMode=!1;n._.hasFocus=!0;f.fire('focus')},f)});if(this.keyboardFocusable){this.tabIndex=i.tabIndex||0;this.focusIndex=n._.focusList.push(this)-1;this.on('focus',function(){n._.currentFocusIndex=f.focusIndex})};t.extend(this,i)},hbox:function(e,t,n,i,a){if(arguments.length<4)return;this._||(this._={});var m=this._.children=t,s=a&&a.widths||null,l=a&&a.height||null,d={},r,f=function(){var t=['<tbody><tr class="cke_dialog_ui_hbox">'];for(r=0;r<n.length;r++){var i='cke_dialog_ui_hbox_child',e=[];if(r===0)i='cke_dialog_ui_hbox_first';if(r==n.length-1)i='cke_dialog_ui_hbox_last';t.push('<td class="',i,'" role="presentation" ');if(s){if(s[r])e.push('width:'+u(s[r]))}
+else e.push('width:'+Math.floor(100/n.length)+'%');if(l)e.push('height:'+u(l));if(a&&a.padding!=undefined)e.push('padding:'+u(a.padding));if(e.length>0)t.push('style="'+e.join('; ')+'" ');t.push('>',n[r],'</td>')};t.push('</tr></tbody>');return t.join('')},c={role:'presentation'};a&&a.align&&(c.align=a.align);o.dialog.uiElement.call(this,e,a||{type:'hbox'},i,'table',d,c,f)},vbox:function(e,n,i,a,r){if(arguments.length<3)return;this._||(this._={});var d=this._.children=n,s=r&&r.width||null,l=r&&r.heights||null,c=function(){var n=['<table role="presentation" cellspacing="0" border="0" '];n.push('style="');if(r&&r.expand)n.push('height:100%;');n.push('width:'+u(s||'100%'),';');n.push('"');n.push('align="',t.htmlEncode(r&&r.align||(e.getParentEditor().lang.dir=='ltr'?'left':'right')),'" ');n.push('><tbody>');for(var o=0;o<i.length;o++){var a=[];n.push('<tr><td role="presentation" ');if(s)a.push('width:'+u(s||'100%'));if(l)a.push('height:'+u(l[o]));else if(r&&r.expand)a.push('height:'+Math.floor(100/i.length)+'%');if(r&&r.padding!=undefined)a.push('padding:'+u(r.padding));if(a.length>0)n.push('style="',a.join('; '),'" ');n.push(' class="cke_dialog_ui_vbox_child">',i[o],'</td></tr>')};n.push('</tbody></table>');return n.join('')};o.dialog.uiElement.call(this,e,r||{type:'vbox'},a,'div',null,{role:'presentation'},c)}}})();o.dialog.uiElement.prototype={getElement:function(){return e.document.getById(this.domId)},getInputElement:function(){return this.getElement()},getDialog:function(){return this._.dialog},setValue:function(e,t){this.getInputElement().setValue(e);!t&&this.fire('change',{value:e});return this},getValue:function(){return this.getInputElement().getValue()},isChanged:function(){return!1},selectParentTab:function(){var e=this,i=e.getInputElement(),t=i,n;while((t=t.getParent())&&t.$.className.search('cke_dialog_page_contents')==-1){};if(!t)return e;n=t.getAttribute('name');if(e._.dialog._.currentTabId!=n)e._.dialog.selectPage(n);return e},focus:function(){this.selectParentTab().getInputElement().focus();return this},registerEvents:function(e){var i=/^on([A-Z]\w+)/,n,a=function(e,t,n,i){t.on('load',function(){e.getInputElement().on(n,i,e)})};for(var t in e){if(!(n=t.match(i)))continue;if(this.eventProcessors[t])this.eventProcessors[t].call(this,this._.dialog,e[t]);else a(this,this._.dialog,n[1].toLowerCase(),e[t])};return this},eventProcessors:{onLoad:function(e,t){e.on('load',t,this)},onShow:function(e,t){e.on('show',t,this)},onHide:function(e,t){e.on('hide',t,this)}},accessKeyDown:function(e,t){this.focus()},accessKeyUp:function(e,t){},disable:function(){var e=this.getInputElement();e.setAttribute('disabled','true');e.addClass('cke_disabled')},enable:function(){var e=this.getInputElement();e.removeAttribute('disabled');e.removeClass('cke_disabled')},isEnabled:function(){return!this.getInputElement().getAttribute('disabled')},isVisible:function(){return this.getInputElement().isVisible()},isFocusable:function(){if(!this.isEnabled()||!this.isVisible())return!1;return!0}};o.dialog.hbox.prototype=t.extend(new o.dialog.uiElement(),{getChild:function(e){var t=this;if(arguments.length<1)return t._.children.concat();if(!e.splice)e=[e];if(e.length<2)return t._.children[e[0]];else return t._.children[e[0]]&&t._.children[e[0]].getChild?t._.children[e[0]].getChild(e.slice(1,e.length)):null}},!0);o.dialog.vbox.prototype=new o.dialog.hbox();(function(){var t={build:function(t,n,i){var l=n.children,r,c=[],u=[];for(var a=0;a<l.length&&(r=l[a]);a++){var s=[];c.push(s);u.push(e.dialog._.uiElementBuilders[r.type].build(t,r,s))};return new o.dialog[n.type](t,u,c,i,n)}};e.dialog.addUIElement('hbox',t);e.dialog.addUIElement('vbox',t)})();e.dialogCommand=function(e){this.dialogName=e};e.dialogCommand.prototype={exec:function(e){e.openDialog(this.dialogName)},canUndo:!1,editorFocus:a||n.webkit};(function(){var n=/^([a]|[^a])+$/,i=/^\d*$/,a=/^\d*(?:\.\d+)?$/;e.VALIDATE_OR=1;e.VALIDATE_AND=2;e.dialog.validate={functions:function(){return function(){var t=this,o=t&&t.getValue?t.getValue():arguments[0],a=undefined,r=2,i=[],e;for(e=0;e<arguments.length;e++){if(typeof arguments[e]=='function')i.push(arguments[e]);else break};if(e<arguments.length&&typeof arguments[e]=='string'){a=arguments[e];e++};if(e<arguments.length&&typeof arguments[e]=='number')r=arguments[e];var n=r==2?!0:!1;for(e=0;e<i.length;e++){if(r==2)n=n&&i[e](o);else n=n||i[e](o)};if(!n){if(a!==undefined)alert(a);if(t&&(t.select||t.focus))t.select||t.focus();return!1};return!0}},regex:function(e,t){return function(){var n=this,i=n&&n.getValue?n.getValue():arguments[0];if(!e.test(i)){if(t!==undefined)alert(t);if(n&&(n.select||n.focus))if(n.select)n.select();else n.focus();return!1};return!0}},notEmpty:function(e){return this.regex(n,e)},integer:function(e){return this.regex(i,e)},number:function(e){return this.regex(a,e)},equals:function(e,t){return this.functions(function(t){return t==e},t)},notEqual:function(e,t){return this.functions(function(t){return t!=e},t)}};e.on('instanceDestroyed',function(n){if(t.isEmpty(e.instances)){var a;while(a=e.dialog._.currentTop)a.hide();M()};var i=n.editor._.storedDialogs;for(var r in i)i[r].destroy()})})();t.extend(e.editor.prototype,{openDialog:function(t,n){if(this.mode=='wysiwyg'&&a){var l=this.getSelection();l&&l.lock()};var r=e.dialog._.dialogDefinitions[t],d=this.skin.dialog;if(e.dialog._.currentTop===null)I(this);if(typeof r=='function'&&d._isLoaded){var s=this._.storedDialogs||(this._.storedDialogs={}),i=s[t]||(s[t]=new e.dialog(this,t));n&&n.call(i,i);i.show();return i}
+else if(r=='failed')throw new Error('[CKEDITOR.dialog.openDialog] Dialog "'+t+'" failed when loading definition.');var o=this;function c(i){var a=e.dialog._.dialogDefinitions[t],r=o.skin.dialog;if(!r._isLoaded||u&&typeof i=='undefined')return;if(typeof a!='function')e.dialog._.dialogDefinitions[t]='failed';o.openDialog(t,n)};if(typeof r=='string'){var u=1;e.scriptLoader.load(e.getUrl(r),c,null,0,1)};e.skins.load(this,'dialog',c);return null}})})();r.add('dialog',{requires:['dialogui']});r.add('styles',{requires:['selection'],init:function(e){e.on('contentDom',function(){e.document.setCustomData('cke_includeReadonly',!e.config.disableReadonlyStyling)})}});e.editor.prototype.attachStyleStateChange=function(e,t){var n=this._.styleStateChangeCallbacks;if(!n){n=this._.styleStateChangeCallbacks=[];this.on('selectionChange',function(e){for(var a=0;a<n.length;a++){var t=n[a],i=t.style.checkActive(e.data.path)?1:2;if(t.state!==i){t.fn.call(this,i);t.state=i}}})};n.push({style:e,fn:t})};e.STYLE_BLOCK=1;e.STYLE_INLINE=2;e.STYLE_OBJECT=3;(function(){var E={address:1,div:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,p:1,pre:1},m={a:1,embed:1,hr:1,img:1,li:1,object:1,ol:1,table:1,td:1,tr:1,th:1,ul:1,dl:1,dt:1,dd:1,form:1},g=/\s*(?:;\s*|$)/,N=i.walker.bookmark(0,1);e.style=function(e,n){if(n){e=t.clone(e);y(e.attributes,n);y(e.styles,n)};var i=this.element=(e.element||'*').toLowerCase();this.type=i=='#'||E[i]?1:m[i]?3:2;this._={definition:e}};e.style.prototype={apply:function(e){x.call(this,e,!1)},remove:function(e){x.call(this,e,!0)},applyToRange:function(e){var t=this;return(t.applyToRange=t.type==2?T:t.type==1?P:t.type==3?B:null).call(t,e)},removeFromRange:function(e){var t=this;return(t.removeFromRange=t.type==2?I:t.type==1?D:t.type==3?A:null).call(t,e)},applyToObject:function(e){f(e,this)},checkActive:function(e){var n=this;switch(n.type){case 1:return n.checkElementRemovable(e.block||e.blockLimit,!0);case 3:case 2:var a=e.elements;for(var i=0,t;i<a.length;i++){t=a[i];if(n.type==2&&(t==e.block||t==e.blockLimit))continue;if(n.type==3&&!(t.getName()in m))continue;if(n.checkElementRemovable(t,!0))return!0}};return!1},checkApplicable:function(e){switch(this.type){case 2:case 1:break;case 3:return e.lastElement.getAscendant(this.element,!0)};return!0},checkElementRemovable:function(e,t){if(!e)return!1;var u=this._.definition,n;if(e.getName()==this.element){if(!t&&!e.hasAttributes())return!0;n=M(u);if(n._length){for(var i in n){if(i=='_length')continue;var c=e.getAttribute(i)||'';if(i=='style'?H(n[i],w(c,!1)):n[i]==c){if(!t)return!0}
+else if(t)return!1};if(t)return!0}
+else return!0};var l=o(this)[e.getName()];if(l){if(!(n=l.attributes))return!0;for(var r=0;r<n.length;r++){i=n[r][0];var s=e.getAttribute(i);if(s){var a=n[r][1];if(a===null||typeof a=='string'&&s==a||a.test(s))return!0}}};return!1},buildPreview:function(){var n=this._.definition,t=[],i=n.element;if(i=='bdo')i='span';t=['<',i];var a=n.attributes;if(a)for(var o in a)t.push(' ',o,'="',a[o],'"');var r=e.style.getStyleText(n);if(r)t.push(' style="',r,'"');t.push('>',n.name,'</',i,'>');return t.join('')}};e.style.getStyleText=function(e){var n=e._ST;if(n)return n;n=e.styles;var t=e.attributes&&e.attributes.style||'',o='';if(t.length)t=t.replace(g,';');for(var r in n){var i=n[r],a=(r+':'+i).replace(g,';');if(i=='inherit')o+=a;else t+=a};if(t.length)t=w(t);t+=o;return e._ST=t};function h(e){var t,i;while(e=e.getParent()){if(e.getName()=='body')break;if(e.getAttribute('data-nostyle'))t=e;else if(!i){var n=e.getAttribute('contentEditable');if(n=='false')t=e;else if(n=='true')i=1}};return t};function T(e){var b=this,x=e.document;if(e.collapsed){var M=d(b,x);e.insertNode(M);e.moveToPosition(M,2);return};var A=b.element,l=b._.definition,R,P=l.includeReadonly;if(P==undefined)P=x.getCustomData('cke_includeReadonly');var O=c[A]||(R=!0,c.span);e.enlarge(1,1);e.trim();var I=e.createBookmark(),B=I.startNode,p=I.endNode,t=B,r,L=h(B),F=h(p);if(L)t=L.getNextSourceNode(!0);if(F)p=F;if(t.getPosition(p)==2)t=0;while(t){var k=!1;if(t.equals(p)){t=null;k=!0}
+else{var E=t.type,m=E==1?t.getName():null,T=m&&t.getAttribute('contentEditable')=='false',D=m&&t.getAttribute('data-nostyle');if(m&&t.data('cke-bookmark')){t=t.getNextSourceNode(!0);continue};if(!m||O[m]&&!D&&(!T||P)&&(t.getPosition(p)|4|0|8)==4+0+8&&(!l.childRule||l.childRule(t))){var S=t.getParent();if(S&&((S.getDtd()||c.span)[A]||R)&&(!l.parentRule||l.parentRule(S))){if(!r&&(!m||!c.$removeEmpty[m]||(t.getPosition(p)|4|0|8)==4+0+8)){r=new i.range(x);r.setStartBefore(t)};if(E==3||T||E==1&&!t.getChildCount()){var C=t,y;while((k=!C.getNext(N))&&(y=C.getParent(),O[y.getName()])&&(y.getPosition(B)|2|0|8)==2+0+8&&(!l.childRule||l.childRule(y)))C=y;r.setEndAfter(C)}}
+else k=!0}
+else k=!0;t=t.getNextSourceNode(D||T)};if(k&&r&&!r.collapsed){var n=d(b,x),H=n.hasAttributes(),g=r.getCommonAncestor(),u={styles:{},attrs:{},blockedStyles:{},blockedAttrs:{}},f,o,w;while(n&&g){if(g.getName()==A){for(f in l.attributes){if(u.blockedAttrs[f]||!(w=g.getAttribute(o)))continue;if(n.getAttribute(f)==w)u.attrs[f]=1;else u.blockedAttrs[f]=1};for(o in l.styles){if(u.blockedStyles[o]||!(w=g.getStyle(o)))continue;if(n.getStyle(o)==w)u.styles[o]=1;else u.blockedStyles[o]=1}};g=g.getParent()};for(f in u.attrs)n.removeAttribute(f);for(o in u.styles)n.removeStyle(o);if(H&&!n.hasAttributes())n=null;if(n){r.extractContents().appendTo(n);v(b,n);r.insertNode(n);n.mergeSiblings();if(!a)n.$.normalize()}
+else{n=new s('span');r.extractContents().appendTo(n);r.insertNode(n);v(b,n);n.remove(!0)};r=null}};e.moveToBookmark(I);e.shrink(2)};function I(e){e.enlarge(1,1);var g=e.createBookmark(),a=g.startNode;if(e.collapsed){var u=new i.elementPath(a.getParent()),c;for(var l=0,n;l<u.elements.length&&(n=u.elements[l]);l++){if(n==u.block||n==u.blockLimit)break;if(this.checkElementRemovable(n)){var p;if(e.collapsed&&(e.checkBoundaryOfElement(n,2)||(p=e.checkBoundaryOfElement(n,1)))){c=n;c.match=p?'start':'end'}
+else{n.mergeSiblings();r(this,n)}}};if(c){var m=a;for(l=0;!0;l++){var s=u.elements[l];if(s.equals(c))break;else if(s.match)continue;else s=s.clone();s.append(m);m=s};m[c.match=='start'?'insertBefore':'insertAfter'](c)}}
+else{var f=g.endNode,h=this;function v(){var n=new i.elementPath(a.getParent()),r=new i.elementPath(f.getParent()),o=null,s=null;for(var t=0;t<n.elements.length;t++){var e=n.elements[t];if(e==n.block||e==n.blockLimit)break;if(h.checkElementRemovable(e))o=e};for(t=0;t<r.elements.length;t++){e=r.elements[t];if(e==r.block||e==r.blockLimit)break;if(h.checkElementRemovable(e))s=e};if(s)f.breakParent(s);if(o)a.breakParent(o)};v();var t=a.getNext();while(!t.equals(f)){var d=t.getNextSourceNode();if(t.type==1&&this.checkElementRemovable(t)){if(t.getName()==this.element)r(this,t);else b(t,o(this)[t.getName()]);if(d.type==1&&d.contains(a)){v();d=a.getNext()}};t=d}};e.moveToBookmark(g)};function B(e){var n=e.getCommonAncestor(!0,!0),t=n.getAscendant(this.element,!0);t&&f(t,this)};function A(t){var l=t.getCommonAncestor(!0,!0),a=l.getAscendant(this.element,!0);if(!a)return;var s=this,n=s._.definition,i=n.attributes,c=e.style.getStyleText(n);if(i)for(var o in i)a.removeAttribute(o,i[o]);if(n.styles)for(var r in n.styles){if(!n.styles.hasOwnProperty(r))continue;a.removeStyle(r)}};function P(e){var r=e.createBookmark(!0),n=e.createIterator();n.enforceRealBlocks=!0;if(this._.enterMode)n.enlargeBr=this._.enterMode!=2;var t,a=e.document,o;while(t=n.getNextParagraph()){var i=d(this,a,t);p(t,i)};e.moveToBookmark(r)};function D(e){var n=this,o=e.createBookmark(1),a=e.createIterator();a.enforceRealBlocks=!0;a.enlargeBr=n._.enterMode!=2;var t;while(t=a.getNextParagraph()){if(n.checkElementRemovable(t))if(t.is('pre')){var i=n._.enterMode==2?null:e.document.createElement(n._.enterMode==1?'p':'div');i&&t.copyAttributes(i);p(t,i)}
+else r(n,t,1)};e.moveToBookmark(o)};function p(e,t){var i=!t;if(i){t=e.getDocument().createElement('div');e.copyAttributes(t)};var n=t&&t.is('pre'),a=e.is('pre'),r=n&&!a,o=!n&&a;if(r)t=R(e,t);else if(o)t=O(i?[e.getHtml()]:F(e),t);else e.moveChildren(t);t.replace(e);if(n)L(t);else if(i)u(t)};var l=i.walker.whitespaces(1);function L(e){var t;if(!((t=e.getPrevious(l))&&t.is&&t.is('pre')))return;var i=n(t.getHtml(),/\n$/,'')+'\n\n'+n(e.getHtml(),/^\n/,'');if(a)e.$.outerHTML='<pre>'+i+'</pre>';else e.setHtml(i);t.remove()};function F(e){var i=/(\S\s*)\n(?:\s|(<span[^>]+data-cke-bookmark.*?\/span>))*\n(?!$)/gi,r=e.getName(),a=n(e.getOuterHtml(),i,function(e,t,n){return t+'</pre>'+n+'<pre>'}),t=[];a.replace(/<pre\b.*?>([\s\S]*?)<\/pre>/gi,function(e,n){t.push(n)});return t};function n(e,t,n){var i='',a='';e=e.replace(/(^<span[^>]+data-cke-bookmark.*?\/span>)|(<span[^>]+data-cke-bookmark.*?\/span>$)/gi,function(e,t,n){t&&(i=t);n&&(a=n);return''});return i+e.replace(t,n)+a};function O(e,a){var o;if(e.length>1)o=new i.documentFragment(a.getDocument());for(var s=0;s<e.length;s++){var r=e[s];r=r.replace(/(\r\n|\r)/g,'\n');r=n(r,/^[ \t]*\n/,'');r=n(r,/\n$/,'');r=n(r,/^[ \t]+|[ \t]+$/g,function(e,n,i){if(e.length==1)return' ';else if(!n)return t.repeat(' ',e.length-1)+' ';else return' '+t.repeat(' ',e.length-1)});r=r.replace(/\n/g,'<br>');r=r.replace(/[ \t]{2,}/g,function(e){return t.repeat(' ',e.length-1)+' '});if(o){var l=a.clone();l.setHtml(r);o.append(l)}
+else a.setHtml(r)};return o||a};function R(e,t){var o=e.getBogus();o&&o.remove();var i=e.getHtml();i=n(i,/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g,'');i=i.replace(/[ \t\r\n]*(<br[^>]*>)[ \t\r\n]*/gi,'$1');i=i.replace(/([ \t\n\r]+| )/g,' ');i=i.replace(/<br\b[^>]*>/gi,'\n');if(a){var r=e.getDocument().createElement('div');r.append(t);t.$.outerHTML='<pre>'+i+'</pre>';t.copyAttributes(r.getFirst());t=r.getFirst().remove()}
+else t.setHtml(i);return t};function r(e,n){var d=e._.definition,s=t.extend({},d.attributes,o(e)[n.getName()]),l=d.styles,r=t.isEmpty(s)&&t.isEmpty(l);for(var i in s){if((i=='class'||e._.definition.fullMatch)&&n.getAttribute(i)!=k(i,s[i]))continue;r=n.hasAttribute(i);n.removeAttribute(i)};for(var a in l){if(e._.definition.fullMatch&&n.getStyle(a)!=k(a,l[a],!0))continue;r=r||!!n.getStyle(a);n.removeStyle(a)};if(r)!c.$block[n.getName()]||e._.enterMode==2&&!n.hasAttributes()?u(n):n.renameNode(e._.enterMode==1?'p':'div')};function v(e,t){var s=e._.definition,u=s.attributes,d=s.styles,l=o(e),i=t.getElementsByTag(e.element);for(var n=i.count();--n>=0;)r(e,i.getItem(n));for(var a in l){if(a!=e.element){i=t.getElementsByTag(a);for(n=i.count()-1;n>=0;n--){var c=i.getItem(n);b(c,l[a])}}}};function b(e,t){var a=t&&t.attributes;if(a)for(var i=0;i<a.length;i++){var o=a[i][0],r;if(r=e.getAttribute(o)){var n=a[i][1];if(n===null||n.test&&n.test(r)||typeof n=='string'&&r==n)e.removeAttribute(o)}};u(e)};function u(e){if(!e.hasAttributes())if(c.$block[e.getName()]){var i=e.getPrevious(l),a=e.getNext(l);if(i&&(i.type==3||!i.isBlockBoundary({br:1})))e.append('br',1);if(a&&(a.type==3||!a.isBlockBoundary({br:1})))e.append('br');e.remove(!0)}
+else{var t=e.getFirst(),n=e.getLast();e.remove(!0);if(t){t.type==1&&t.mergeSiblings();if(n&&!t.equals(n)&&n.type==1)n.mergeSiblings()}}};function d(e,t,n){var i,r=e._.definition,a=e.element;if(a=='*')a='span';i=new s(a,t);if(n)n.copyAttributes(i);i=f(i,e);if(t.getCustomData('doc_processing_style')&&i.hasAttribute('id'))i.removeAttribute('id');else t.setCustomData('doc_processing_style',1);return i};function f(t,n){var r=n._.definition,i=r.attributes,o=e.style.getStyleText(r);if(i)for(var a in i)t.setAttribute(a,i[a]);if(o)t.setAttribute('style',o);return t};var S=/#\((.+?)\)/g;function y(e,t){for(var n in e)e[n]=e[n].replace(S,function(e,n){return t[n]})};function M(t){var n=t._AC;if(n)return n;n={};var i=0,a=t.attributes;if(a)for(var o in a){i++;n[o]=a[o]};var r=e.style.getStyleText(t);if(r){if(!n.style)i++;n.style=r};n._length=i;return t._AC=n};function o(e){if(e._.overrides)return e._.overrides;var l=e._.overrides={},n=e._.definition.overrides;if(n){if(!t.isArray(n))n=[n];for(var s=0;s<n.length;s++){var i=n[s],a,o,r;if(typeof i=='string')a=i.toLowerCase();else{a=i.element?i.element.toLowerCase():e.element;r=i.attributes};o=l[a]||(l[a]={});if(r){var u=o.attributes=o.attributes||[];for(var c in r)u.push([c.toLowerCase(),r[c]])}}};return l};function k(e,t,n){var i=new s('span');i[n?'setStyle':'setAttribute'](e,t);return i[n?'getStyle':'getAttribute'](e)};function w(e,t){var n;if(t!==!1){var i=new s('span');i.setAttribute('style',e);n=i.getAttribute('style')||''}
+else n=e;return n.replace(/\s*([;:])\s*/,'$1').replace(/([^\s;])$/,'$1;').replace(/,\s+/g,',').replace(/"/g,'').toLowerCase()};function C(e){var t={};e.replace(/"/g,'"').replace(/\s*([^ :;]+)\s*:\s*([^;]+)\s*(?=;|$)/g,function(e,n,i){t[n]=i});return t};function H(e,t){typeof e=='string'&&(e=C(e));typeof t=='string'&&(t=C(t));for(var n in e){if(!(n in t&&(t[n]==e[n]||e[n]=='inherit'||t[n]=='inherit')))return!1};return!0};function x(e,t){var n=e.getSelection(),i=n.getRanges(),r=t?this.removeFromRange:this.applyToRange,a,o=i.createIterator();while(a=o.getNextRange())r.call(this,a);n.selectRanges(i);e.removeCustomData('doc_processing_style')}})();e.styleCommand=function(e){this.style=e};e.styleCommand.prototype.exec=function(e){var n=this;e.focus();var t=e.document;if(t)if(n.state==2)n.style.apply(t);else if(n.state==1)n.style.remove(t);return!!t};e.stylesSet=new e.resourceManager('','stylesSet');e.addStylesSet=t.bind(e.stylesSet.add,e.stylesSet);e.loadStylesSet=function(t,n,i){e.stylesSet.addExternal(t,n,'');e.stylesSet.load(t,i)};e.editor.prototype.getStylesSet=function(t){if(!this._.stylesDefinitions){var n=this,a=n.config.stylesCombo_stylesSet||n.config.stylesSet||'default';if(a instanceof Array){n._.stylesDefinitions=a;t(a);return};var o=a.split(':'),i=o[0],s=o[1],l=r.registered.styles.path;e.stylesSet.addExternal(i,s?o.slice(1).join(':'):l+'styles/'+i+'.js','');e.stylesSet.load(i,function(e){n._.stylesDefinitions=e[i];t(n._.stylesDefinitions)})}
+else t(this._.stylesDefinitions)};r.add('domiterator');(function(){function r(e){var t=this;if(arguments.length<1)return;t.range=e;t.forceBrBreak=0;t.enlargeBr=1;t.enforceRealBlocks=0;t._||(t._={})};var o=/^[\r\n\t ]+$/,e=i.walker.bookmark(!1,!0);function n(t,n,i){var a=t.getNextSourceNode(n,null,i);while(!e(a))a=a.getNextSourceNode(n,null,i);return a};r.prototype={getNextParagraph:function(r){var l=this,u,s,f,A,w,C;if(!l._.lastNode){s=l.range.clone();s.shrink(1,!0);A=s.endContainer.hasAscendant('pre',!0)||s.startContainer.hasAscendant('pre',!0);s.enlarge(l.forceBrBreak&&!A||!l.enlargeBr?3:2);var v=new i.walker(s),B=i.walker.bookmark(!0,!0);v.evaluator=B;l._.nextNode=v.next();v=new i.walker(s);v.evaluator=B;var d=v.previous();l._.lastNode=d.getNextSourceNode(!0);if(l._.lastNode&&l._.lastNode.type==3&&!t.trim(l._.lastNode.getText())&&l._.lastNode.getParent().isBlockBoundary()){var k=new i.range(s.document);k.moveToPosition(l._.lastNode,4);if(k.checkEndOfBlock()){var I=new i.elementPath(k.endContainer),D=I.block||I.blockLimit;l._.lastNode=D.getNextSourceNode(!0)}};if(!l._.lastNode){l._.lastNode=l._.docEndMarker=s.document.createText('');l._.lastNode.insertAfter(d)};s=null};var c=l._.nextNode;d=l._.lastNode;l._.nextNode=null;while(c){var p=0,N=c.hasAscendant('pre'),m=c.type!=1,T=0;if(!m){var y=c.getName();if(c.isBlockBoundary(l.forceBrBreak&&!N&&{br:1})){if(y=='br')m=1;else if(!s&&!c.getChildCount()&&y!='hr'){u=c;f=c.equals(d);break};if(s){s.setEndAt(c,3);if(y!='br')l._.nextNode=c};p=1}
+else{if(c.getFirst()){if(!s){s=new i.range(l.range.document);s.setStartAt(c,3)};c=c.getFirst();continue};m=1}}
+else if(c.type==3)if(o.test(c.getText()))m=0;if(m&&!s){s=new i.range(l.range.document);s.setStartAt(c,3)};f=(!p||m)&&c.equals(d);if(s&&!p)while(!c.getNext(e)&&!f){var b=c.getParent();if(b.isBlockBoundary(l.forceBrBreak&&!N&&{br:1})){p=1;f=f||b.equals(d);break};c=b;m=1;f=c.equals(d);T=1};if(m)s.setEndAt(c,4);c=n(c,T,d);f=!c;if(f||p&&s)break};if(!u){if(!s){l._.docEndMarker&&l._.docEndMarker.remove();l._.nextNode=null;return null};var S=new i.elementPath(s.startContainer),E=S.blockLimit,P={div:1,th:1,td:1};u=S.block;if(!u&&!l.enforceRealBlocks&&P[E.getName()]&&s.checkStartOfBlock()&&s.checkEndOfBlock())u=E;else if(!u||l.enforceRealBlocks&&u.getName()=='li'){u=l.range.document.createElement(r||'p');s.extractContents().appendTo(u);u.trim();s.insertNode(u);w=C=!0}
+else if(u.getName()!='li'){if(!s.checkStartOfBlock()||!s.checkEndOfBlock()){u=u.clone(!1);s.extractContents().appendTo(u);u.trim();var x=s.splitBlock();w=!x.wasStartOfBlock;C=!x.wasEndOfBlock;s.insertNode(u)}}
+else if(!f)l._.nextNode=u.equals(d)?null:n(s.getBoundaryNodes().endNode,1,d)};if(w){var g=u.getPrevious();if(g&&g.type==1)if(g.getName()=='br')g.remove();else if(g.getLast()&&g.getLast().$.nodeName.toLowerCase()=='br')g.getLast().remove()};if(C){var h=u.getLast();if(h&&h.type==1&&h.getName()=='br')if(a||h.getPrevious(e)||h.getNext(e))h.remove()};if(!l._.nextNode)l._.nextNode=f||u.equals(d)?null:n(u,1,d);return u}};i.range.prototype.createIterator=function(){return new r(this)}})();r.add('panelbutton',{requires:['button'],beforeInit:function(e){e.ui.addHandler(4,o.panelButton.handler)}});e.UI_PANELBUTTON=4;(function(){var n=function(e){var t=this,n=t._;if(n.state==0)return;t.createPanel(e);if(n.on){n.panel.hide();return};n.panel.showBlock(t._.id,t.document.getById(t._.id),4)};o.panelButton=t.createClass({base:o.button,$:function(t){var a=this,i=t.panel;delete t.panel;a.base(t);a.document=i&&i.parent&&i.parent.getDocument()||e.document;i.block={attributes:i.attributes};a.hasArrow=!0;a.click=n;a._={panelDefinition:i}},statics:{handler:{create:function(e){return new o.panelButton(e)}}},proto:{createPanel:function(t){var a=this._;if(a.panel)return;var r=this._.panelDefinition||{},l=this._.panelDefinition.block,c=r.parent||e.document.getBody(),i=this._.panel=new o.floatPanel(t,c,r),s=i.addBlock(a.id,l),n=this;i.onShow=function(){if(n.className)this.element.getFirst().addClass(n.className+'_panel');n.setState(1);a.on=1;if(n.onOpen)n.onOpen()};i.onHide=function(e){if(n.className)this.element.getFirst().removeClass(n.className+'_panel');n.setState(n.modes&&n.modes[t.mode]?2:0);a.on=0;if(!e&&n.onClose)n.onClose()};i.onEscape=function(){i.hide();n.document.getById(a.id).focus()};if(this.onBlock)this.onBlock(i,s);s.onHide=function(){a.on=0;n.setState(2)}}}})})();r.add('floatpanel',{requires:['panel']});(function(){var r={},l=!1;function c(e,n,i,a,l){var u=t.genKey(n.getUniqueId(),i.getUniqueId(),e.skinName,e.lang.dir,e.uiColor||'',a.css||'',l||''),c=r[u];if(!c){c=r[u]=new o.panel(n,a);c.element=i.append(s.createFromHtml(c.renderHtml(e),n));c.element.setStyles({display:'none',position:'absolute'})};return c};o.floatPanel=t.createClass({$:function(e,t,n,i){n.forceIFrame=1;var a=t.getDocument(),r=c(e,a,t,n,i||0),o=r.element,s=o.getFirst().getFirst();this.element=o;this._={panel:r,parentElement:t,definition:n,document:a,iframe:s,children:[],dir:e.lang.dir};e.on('mode',function(){this.hide()},this)},proto:{addBlock:function(e,t){return this._.panel.addBlock(e,t)},addListBlock:function(e,t){return this._.panel.addListBlock(e,t)},getBlock:function(e){return this._.panel.getBlock(e)},showBlock:function(r,o,c,u,d){var g=this._.panel,v=g.showBlock(r);this.allowBlur(!1);l=1;var f=this.element,b=this._.iframe,w=this._.definition,k=o.getDocumentPosition(f.getDocument()),h=this._.dir=='rtl',m=k.x+(u||0),p=k.y+(d||0);if(h&&(c==1||c==4))m+=o.$.offsetWidth;else if(!h&&(c==2||c==3))m+=o.$.offsetWidth-1;if(c==3||c==4)p+=o.$.offsetHeight-1;this._.panel._.offsetParentId=o.getId();f.setStyles({top:p+'px',left:0,display:''});f.setOpacity(0);f.getFirst().removeStyle('width');if(!this._.blurSet){var y=a?b:new i.window(b.$.contentWindow);e.event.useCapture=!0;y.on('blur',function(e){var t=this;if(!t.allowBlur())return;var n;if(a&&!t.allowBlur()||(n=e.data.getTarget())&&n.getName&&n.getName()!='iframe')return;if(t.visible&&!t._.activeChild&&!l)t.hide()},this);y.on('focus',function(){this._.focused=!0;this.hideChild();this.allowBlur(!0)},this);e.event.useCapture=!1;this._.blurSet=1};g.onEscape=t.bind(function(e){if(this.onEscape&&this.onEscape(e)===!1)return!1},this);t.setTimeout(function(){if(h)m-=f.$.offsetWidth;var e=t.bind(function(){var e=f.getFirst();if(v.autoSize){var t=v.element.$;if(n.gecko||n.opera)t=t.parentNode;if(a)t=t.document.body;var o=t.scrollWidth;if(a&&n.quirks&&o>0)o+=(e.$.offsetWidth||0)-(e.$.clientWidth||0);o+=4;e.setStyle('width',o+'px');v.element.addClass('cke_frameLoaded');var d=v.element.$.scrollHeight;if(a&&n.quirks&&d>0)d+=(e.$.offsetHeight||0)-(e.$.clientHeight||0);e.setStyle('height',d+'px');g._.currentBlock.element.setStyle('display','none').removeStyle('display')}
+else e.removeStyle('height');var u=g.element,y=u.getWindow(),k=y.getScrollPosition(),w=y.getViewPaneSize(),r={height:u.$.offsetHeight,width:u.$.offsetWidth};if(h?m<0:m+r.width>w.width+k.x)m+=r.width*(h?1:-1);if(p+r.height>w.height+k.y)p-=r.height;if(a){var c=new s(f.$.offsetParent),i=c;if(i.getName()=='html')i=i.getDocument().getBody();if(i.getComputedStyle('direction')=='rtl')if(n.ie8Compat)m-=f.getDocument().getDocumentElement().$.scrollLeft*2;else m-=c.$.scrollWidth-c.$.clientWidth};var b=f.getFirst(),l;if(l=b.getCustomData('activePanel'))l.onHide&&l.onHide.call(this,1);b.setCustomData('activePanel',this);f.setStyles({top:p+'px',left:m+'px'});f.setOpacity(1)},this);g.isLoaded?e():g.onLoad=e;t.setTimeout(function(){b.$.contentWindow.focus();this.allowBlur(!0)},0,this)},n.air?200:0,this);this.visible=1;if(this.onShow)this.onShow.call(this);l=0},hide:function(){var e=this;if(e.visible&&(!e.onHide||e.onHide.call(e)!==!0)){e.hideChild();e.element.setStyle('display','none');e.visible=0;e.element.getFirst().removeCustomData('activePanel')}},allowBlur:function(e){var t=this._.panel;if(e!=undefined)t.allowBlur=e;return t.allowBlur},showAsChild:function(e,i,a,r,o,s){if(this._.activeChild==e&&e._.panel._.offsetParentId==a.getId())return;this.hideChild();e.onHide=t.bind(function(){t.setTimeout(function(){if(!this._.focused)this.hide()},0,this)},this);this._.activeChild=e;this._.focused=!1;e.showBlock(i,a,r,o,s);if(n.ie7Compat||n.ie8&&n.ie6Compat)setTimeout(function(){e.element.getChild(0).$.style.cssText+=''},100)},hideChild:function(){var e=this._.activeChild;if(e){delete e.onHide;delete this._.activeChild;e.hide()}}}});e.on('instanceDestroyed',function(){var i=t.isEmpty(e.instances);for(var a in r){var n=r[a];if(i)n.destroy();else n.element.hide()};i&&(r={})})})();r.add('menu',{beforeInit:function(t){var a=t.config.menu_groups.split(','),i=t._.menuGroups={},r=t._.menuItems={};for(var n=0;n<a.length;n++)i[a[n]]=n+1;t.addMenuGroup=function(e,t){i[e]=t||100};t.addMenuItem=function(t,n){if(i[n.group])r[t]=new e.menuItem(this,t,n)};t.addMenuItems=function(e){for(var t in e)this.addMenuItem(t,e[t])};t.getMenuItem=function(e){return r[e]}},requires:['floatpanel']});(function(){e.menu=t.createClass({$:function(e,n){var i=this;n=i._.definition=n||{};i.id=t.getNextId();i.editor=e;i.items=[];i._.listeners=[];i._.level=n.level||1;var a=t.extend({},n.panel,{css:e.skin.editor.css,level:i._.level-1,block:{}}),r=a.block.attributes=a.attributes||{};!r.role&&(r.role='menu');i._.panelDefinition=a},_:{onShow:function(){var e=this,t=e.editor.getSelection();if(a)t&&t.lock();var l=t&&t.getStartElement(),s=e._.listeners,c=[];e.removeAll();for(var r=0;r<s.length;r++){var i=s[r](l,t);if(i)for(var o in i){var n=e.editor.getMenuItem(o);if(n){n.state=i[o];e.add(n)}}}},onClick:function(e){this.hide();if(e.onClick)e.onClick();else if(e.command)this.editor.execCommand(e.command)},onEscape:function(e){var t=this.parent;if(t){t._.panel.hideChild();var n=t._.panel._.panel._.currentBlock,i=n._.focusIndex;n._.markItem(i)}
+else if(e==27){this.hide();this.editor.focus()};return!1},onHide:function(){if(a){var e=this.editor.getSelection();e&&e.unlock()};this.onHide&&this.onHide()},showSubMenu:function(n){var i=this,a=i._.subMenu,l=i.items[n],o=l.getItems&&l.getItems();if(!o){i._.panel.hideChild();return};var u=i._.panel.getBlock(i.id);u._.focusIndex=n;if(a)a.removeAll();else{a=i._.subMenu=new e.menu(i.editor,t.extend({},i._.definition,{level:i._.level+1},!0));a.parent=i;a._.onClick=t.bind(i._.onClick,i)};for(var s in o){var r=i.editor.getMenuItem(s);if(r){r.state=o[s];a.add(r)}};var c=i._.panel.getBlock(i.id).element.getDocument().getById(i.id+String(n));a.show(c,2)}},proto:{add:function(e){if(!e.order)e.order=this.items.length;this.items.push(e)},removeAll:function(){this.items=[]},show:function(n,a,r,s){if(!this.parent){this._.onShow();if(!this.items.length)return};a=a||(this.editor.lang.dir=='rtl'?2:1);var m=this.items,u=this.editor,l=this._.panel,g=this._.element;if(!l){l=this._.panel=new o.floatPanel(this.editor,e.document.getBody(),this._.panelDefinition,this._.level);l.onEscape=t.bind(function(e){if(this._.onEscape(e)===!1)return!1},this);l.onHide=t.bind(function(){this._.onHide&&this._.onHide()},this);var p=l.addBlock(this.id,this._.panelDefinition.block);p.autoSize=!0;var c=p.keys;c[40]='next';c[9]='next';c[38]='prev';c[2000+9]='prev';c[32]='click';c[u.lang.dir=='rtl'?37:39]='click';g=this._.element=p.element;g.addClass(u.skinClass);var y=g.getDocument();y.getBody().setStyle('overflow','hidden');y.getElementsByTag('html').getItem(0).setStyle('overflow','hidden');this._.itemOverFn=t.addFunction(function(e){var n=this;clearTimeout(n._.showSubTimeout);n._.showSubTimeout=t.setTimeout(n._.showSubMenu,u.config.menu_subMenuDelay||400,n,[e])},this);this._.itemOutFn=t.addFunction(function(e){clearTimeout(this._.showSubTimeout)},this);this._.itemClickFn=t.addFunction(function(e){var t=this,n=t.items[e];if(n.state==0){t.hide();return};if(n.getItems)t._.showSubMenu(e);else t._.onClick(n)},this)};i(m);var k=u.container.getChild(1),w=k.hasClass('cke_mixed_dir_content')?' cke_mixed_dir_content':'',f=['<div class="cke_menu'+w+'" role="presentation">'],v=m.length,b=v&&m[0].group;for(var d=0;d<v;d++){var h=m[d];if(b!=h.group){f.push('<div class="cke_menuseparator" role="separator"></div>');b=h.group};h.render(this,d,f)};f.push('</div>');g.setHtml(f.join(''));o.fire('ready',this);if(this.parent)this.parent._.panel.showAsChild(l,this.id,n,a,r,s);else l.showBlock(this.id,n,a,r,s);u.fire('menuShow',[l])},addListener:function(e){this._.listeners.push(e)},hide:function(){var e=this;e._.onHide&&e._.onHide();e._.panel&&e._.panel.hide()}}});function i(e){e.sort(function(e,t){if(e.group<t.group)return-1;else if(e.group>t.group)return 1;return e.order<t.order?-1:e.order>t.order?1:0})};e.menuItem=t.createClass({$:function(e,n,i){var a=this;t.extend(a,i,{order:0,className:'cke_button_'+n});a.group=e._.menuGroups[a.group];a.editor=e;a.name=n},proto:{render:function(t,i,a){var r=this,u=t.id+String(i),o=typeof r.state=='undefined'?2:r.state,l=' cke_'+(o==1?'on':o==0?'disabled':'off'),d=r.label;if(r.className)l+=' '+r.className;var s=r.getItems;a.push('<span class="cke_menuitem'+(r.icon&&r.icon.indexOf('.png')==-1?' cke_noalphafix':'')+'"><a id="',u,'" class="',l,'" href="javascript:void(\'',(r.label||'').replace('\'',''),'\')" title="',r.label,'" tabindex="-1"_cke_focus=1 hidefocus="true" role="menuitem"'+(s?'aria-haspopup="true"':'')+(o==0?'aria-disabled="true"':'')+(o==1?'aria-pressed="true"':''));if(n.opera||n.gecko&&n.mac)a.push(' onkeypress="return false;"');if(n.gecko)a.push(' onblur="this.style.cssText = this.style.cssText;"');var c=(r.iconOffset||0)*-16;a.push(' onmouseover="CKEDITOR.tools.callFunction(',t._.itemOverFn,',',i,');" onmouseout="CKEDITOR.tools.callFunction(',t._.itemOutFn,',',i,');" onclick="CKEDITOR.tools.callFunction(',t._.itemClickFn,',',i,'); return false;"><span class="cke_icon_wrapper"><span class="cke_icon"'+(r.icon?' style="background-image:url('+e.getUrl(r.icon)+');background-position:0 '+c+'px;"':'')+'></span></span><span class="cke_label">');if(s)a.push('<span class="cke_menuarrow">','<span>&#',r.editor.lang.dir=='rtl'?'9668':'9658',';</span>','</span>');a.push(d,'</span></a></span>')}}})})();l.menu_groups='clipboard,form,tablecell,tablecellproperties,tablerow,tablecolumn,table,anchor,link,image,flash,checkbox,radio,textfield,hiddenfield,imagebutton,button,select,textarea,div';(function(){var t=function(e,t){return e._.modes&&e._.modes[t||e.mode]},i;r.add('editingblock',{init:function(a){if(!a.config.editingBlock)return;a.on('themeSpace',function(e){if(e.data.space=='contents')e.data.html+='<br>'});a.on('themeLoaded',function(){a.fireOnce('editingBlockReady')});a.on('uiReady',function(){a.setMode(a.config.startupMode)});a.on('afterSetData',function(){if(!i){function e(){i=!0;t(a).loadData(a.getData());i=!1};if(a.mode)e();else a.on('mode',function(){e();a.removeListener('mode',arguments.callee)})}});a.on('beforeGetData',function(){if(!i&&a.mode){i=!0;a.setData(t(a).getData(),null,1);i=!1}});a.on('getSnapshot',function(e){if(a.mode)e.data=t(a).getSnapshotData()});a.on('loadSnapshot',function(e){if(a.mode)t(a).loadSnapshotData(e.data)});a.on('mode',function(t){t.removeListener();n.webkit&&a.container.on('focus',function(){a.focus()});if(a.config.startupFocus)a.focus();setTimeout(function(){a.fireOnce('instanceReady');e.fire('instanceReady',null,a)},0)});a.on('destroy',function(){var e=this;if(e.mode)e._.modes[e.mode].unload(e.getThemeSpace('contents'))})}});e.editor.prototype.mode='';e.editor.prototype.addMode=function(e,t){t.name=e;(this._.modes||(this._.modes={}))[e]=t};e.editor.prototype.setMode=function(e){var n,i=this.getThemeSpace('contents'),o=this.checkDirty();if(this.mode){if(e==this.mode)return;this.fire('beforeModeUnload');var r=t(this);n=r.getData();r.unload(i);this.mode=''};i.setHtml('');var a=t(this,e);if(!a)throw'[CKEDITOR.editor.setMode] Unknown mode "'+e+'".';if(!o)this.on('mode',function(){this.resetDirty();this.removeListener('mode',arguments.callee)});a.load(i,typeof n!='string'?this.getData():n)};e.editor.prototype.focus=function(){var e=t(this);if(e)e.focus()}})();l.startupMode='wysiwyg';l.editingBlock=!0;(function(){function g(){var n=this;try{var t=n.getSelection();if(!t||!t.document.getWindow().$)return;var r=t.getStartElement(),a=new i.elementPath(r);if(!a.compare(n._.selectionPreviousPath)){n._.selectionPreviousPath=a;n.fire('selectionChange',{selection:t,path:a,element:r})}}catch(e){}};var l,c;function o(){c=!0;if(l)return;f.call(this);l=t.setTimeout(f,200,this)};function f(){l=null;if(c){t.setTimeout(g,0,this);c=!1}};var m={modes:{wysiwyg:1,source:1},exec:function(e){switch(e.mode){case'wysiwyg':e.document.$.execCommand('SelectAll',!1,null);e.forceNextSelectionCheck();e.selectionChange();break;case'source':var t=e.textarea.$;if(a)t.createTextRange().execCommand('SelectAll');else{t.selectionStart=0;t.selectionEnd=t.value.length};t.focus()}},canUndo:!1};r.add('selection',{init:function(e){e.on('contentDom',function(){var s=e.document,i=s.getBody(),f=s.getDocumentElement();if(a){var u,r,d=1;i.on('focusin',function(e){if(e.data.$.srcElement.nodeName!='BODY')return;if(u){var n=s.getCustomData('cke_locked_selection');if(d&&!n)try{u.select()}catch(t){};u=null}});i.on('focus',function(){r=1;c()});i.on('beforedeactivate',function(e){if(e.data.$.toElement)return;r=0;d=1});if(a&&n.version<8)e.on('blur',function(t){try{e.document&&e.document.$.selection.empty()}catch(n){}});f.on('mousedown',function(){d=0});f.on('mouseup',function(){d=1});if(a&&(n.ie7Compat||n.version<8||n.quirks))f.on('click',function(t){if(t.data.getTarget().getName()=='html')e.getSelection().getRanges()[0].select()});var l;i.on('mousedown',function(t){if(t.data.$.button==2){var n=e.document.$.selection;if(n.type=='None')l=e.window.getScrollPosition()};m()});i.on('mouseup',function(t){if(t.data.$.button==2&&l){e.document.$.documentElement.scrollLeft=l.x;e.document.$.documentElement.scrollTop=l.y};l=null;r=1;setTimeout(function(){c(!0)},0)});i.on('keydown',m);i.on('keyup',function(){r=1;c()});s.on('selectionchange',c);function m(){r=0};function c(n){if(r){var l=e.document,s=e.getSelection(),i=s&&s.getNative();if(n&&i&&i.type=='None')if(!l.$.queryCommandEnabled('InsertImage')){t.setTimeout(c,50,this,!0);return};var a;if(i&&i.type&&i.type!='Control'&&(a=i.createRange())&&(a=a.parentElement())&&(a=a.nodeName)&&a.toLowerCase()in{input:1,textarea:1})return;u=i&&s.getRanges()[0];o.call(e)}}}
+else{s.on('mouseup',o,e);s.on('keyup',o,e)}});e.on('contentDomUnload',e.forceNextSelectionCheck,e);e.addCommand('selectAll',m);e.ui.addButton('SelectAll',{label:e.lang.selectAll,command:'selectAll'});e.selectionChange=o}});e.editor.prototype.getSelection=function(){return this.document&&this.document.getSelection()};e.editor.prototype.forceNextSelectionCheck=function(){delete this._.selectionPreviousPath};d.prototype.getSelection=function(){var e=new i.selection(this);return!e||e.isInvalid?null:e};e.SELECTION_NONE=1;e.SELECTION_TEXT=2;e.SELECTION_ELEMENT=3;i.selection=function(e){var t=this,i=e.getCustomData('cke_locked_selection');if(i)return i;t.document=e;t.isLocked=0;t._={cache:{}};if(a){var n=t.getNative().createRange();if(!n||n.item&&n.item(0).ownerDocument!=t.document.$||n.parentElement&&n.parentElement().ownerDocument!=t.document.$)t.isInvalid=!0};return t};var u={img:1,hr:1,li:1,table:1,tr:1,td:1,th:1,embed:1,object:1,ol:1,ul:1,a:1,input:1,form:1,select:1,textarea:1,button:1,fieldset:1,th:1,thead:1,tfoot:1};i.selection.prototype={getNative:a?function(){return this._.cache.nativeSel||(this._.cache.nativeSel=this.document.$.selection)}:function(){return this._.cache.nativeSel||(this._.cache.nativeSel=this.document.getWindow().$.getSelection())},getType:a?function(){var n=this._.cache;if(n.type)return n.type;var t=1;try{var i=this.getNative(),a=i.type;if(a=='Text')t=2;if(a=='Control')t=3;if(i.createRange().parentElement)t=2}catch(e){};return n.type=t}:function(){var a=this._.cache;if(a.type)return a.type;var n=2,i=this.getNative();if(!i)n=1;else if(i.rangeCount==1){var e=i.getRangeAt(0),t=e.startContainer;if(t==e.endContainer&&t.nodeType==1&&e.endOffset-e.startOffset==1&&u[t.childNodes[e.startOffset].nodeName.toLowerCase()])n=3};return a.type=n},getRanges:(function(){var e=a?(function(){function e(e){return new i.node(e).getIndex()};var t=function(t,n){t=t.duplicate();t.collapse(n);var l=t.parentElement();if(!l.hasChildNodes())return{container:l,offset:0};var o=l.children,a,c=t.duplicate(),d=0,f=o.length-1,u=-1,s,r;while(d<=f){u=Math.floor((d+f)/2);a=o[u];c.moveToElementText(a);s=c.compareEndPoints('StartToStart',t);if(s>0)f=u-1;else if(s<0)d=u+1;else return{container:l,offset:e(a)}};if(u==-1||u==o.length-1&&s<0){c.moveToElementText(l);c.setEndPoint('StartToStart',t);r=c.text.replace(/(\r\n|\r)/g,'\n').length;o=l.childNodes;if(!r){a=o[o.length-1];if(a.nodeType==1)return{container:l,offset:o.length};else return{container:a,offset:a.nodeValue.length}};var m=o.length;while(r>0)r-=o[--m].nodeValue.length;return{container:o[m],offset:-r}}
+else{c.collapse(s>0?!0:!1);c.setEndPoint(s>0?'StartToStart':'EndToStart',t);r=c.text.replace(/(\r\n|\r)/g,'\n').length;if(!r)return{container:l,offset:e(a)+(s>0?0:1)};while(r>0){a=a[s>0?'previousSibling':'nextSibling'];try{r-=a.nodeValue.length}catch(i){return{container:l,offset:e(a)}}};return{container:a,offset:s>0?-r:a.nodeValue.length+r}}};return function(){var o=this,c=o.getNative(),s=c&&c.createRange(),f=o.getType(),e;if(!c)return[];if(f==2){e=new i.range(o.document);var a=t(s,!0);e.setStart(new i.node(a.container),a.offset);a=t(s);e.setEnd(new i.node(a.container),a.offset);if(e.endContainer.getPosition(e.startContainer)&4&&e.endOffset<=e.startContainer.getIndex())e.collapse();return[e]}
+else if(f==3){var d=[];for(var l=0;l<s.length;l++){var u=s.item(l),r=u.parentNode,n=0;e=new i.range(o.document);for(;n<r.childNodes.length&&r.childNodes[n]!=u;n++){};e.setStart(new i.node(r),n);e.setEnd(new i.node(r),n+1);d.push(e)};return d};return[]}})():function(){var n=[],e,o=this.document,a=this.getNative();if(!a)return n;if(!a.rangeCount){e=new i.range(o);e.moveToElementEditStart(o.getBody());n.push(e)};for(var r=0;r<a.rangeCount;r++){var t=a.getRangeAt(r);e=new i.range(o);e.setStart(new i.node(t.startContainer),t.startOffset);e.setEnd(new i.node(t.endContainer),t.endOffset);n.push(e)};return n};return function(t){var s=this._.cache;if(s.ranges&&!t)return s.ranges;else if(!s.ranges)s.ranges=new i.rangeList(e.call(this));if(t){var l=s.ranges;for(var o=0;o<l.length;o++){var n=l[o],g=n.getCommonAncestor();if(g.isReadOnly())l.splice(o,1);if(n.collapsed)continue;var a=n.startContainer,c=n.endContainer,f=n.startOffset,m=n.endOffset,r=n.clone(),d;if(d=a.isReadOnly())n.setStartAfter(d);if(a&&a.type==3)if(f>=a.getLength())r.setStartAfter(a);else r.setStartBefore(a);if(c&&c.type==3)if(!m)r.setEndBefore(c);else r.setEndAfter(c);var u=new i.walker(r);u.evaluator=function(e){if(e.type==1&&e.isReadOnly()){var t=n.clone();n.setEndBefore(e);if(n.collapsed)l.splice(o--,1);if(!(e.getPosition(r.endContainer)&16)){t.setStartAfter(e);if(!t.collapsed)l.splice(o+1,0,t)};return!0};return!1};u.next()}};return s.ranges}})(),getStartElement:function(){var a=this,r=a._.cache;if(r.startElement!==undefined)return r.startElement;var e,l=a.getNative();switch(a.getType()){case 3:return a.getSelectedElement();case 2:var t=a.getRanges()[0];if(t){if(!t.collapsed){t.optimize();while(1){var i=t.startContainer,o=t.startOffset;if(o==(i.getChildCount?i.getChildCount():i.getLength())&&!i.isBlockBoundary())t.setStartAfter(i);else break};e=t.startContainer;if(e.type!=1)return e.getParent();e=e.getChild(t.startOffset);if(!e||e.type!=1)e=t.startContainer;else{var n=e.getFirst();while(n&&n.type==1){e=n;n=n.getFirst()}}}
+else{e=t.startContainer;if(e.type!=1)e=e.getParent()};e=e.$}};return r.startElement=e?new s(e):null},getSelectedElement:function(){var e=this._.cache;if(e.selectedElement!==undefined)return e.selectedElement;var n=this,i=t.tryThese(function(){return n.getNative().createRange().item(0)},function(){var i=n.getRanges()[0],e,a;for(var t=2;t&&!((e=i.getEnclosedNode())&&e.type==1&&u[e.getName()]&&(a=e));t--)i.shrink(1);return a.$});return e.selectedElement=i?new s(i):null},lock:function(){var e=this;e.getRanges();e.getStartElement();e.getSelectedElement();e._.cache.nativeSel={};e.isLocked=1;e.document.setCustomData('cke_locked_selection',e)},unlock:function(e){var t=this,a=t.document,n=a.getCustomData('cke_locked_selection');if(n){a.setCustomData('cke_locked_selection',null);if(e){var i=n.getSelectedElement(),r=!i&&n.getRanges();t.isLocked=0;t.reset();a.getBody().focus();if(i)t.selectElement(i);else t.selectRanges(r)}};if(!n||!e){t.isLocked=0;t.reset()}},reset:function(){this._.cache={}},selectElement:function(e){var n=this;if(n.isLocked){var r=new i.range(n.document);r.setStartBefore(e);r.setEndAfter(e);n._.cache.selectedElement=e;n._.cache.startElement=e;n._.cache.ranges=new i.rangeList(r);n._.cache.type=3;return};if(a){n.getNative().empty();try{r=n.document.$.body.createControlRange();r.addElement(e.$);r.select()}catch(t){r=n.document.$.body.createTextRange();r.moveToElementText(e.$);r.select()}finally{n.document.fire('selectionchange')};n.reset()}
+else{r=n.document.$.createRange();r.selectNode(e.$);var o=n.getNative();o.removeAllRanges();o.addRange(r);n.reset()}},selectRanges:function(e){var t=this;if(t.isLocked){t._.cache.selectedElement=null;t._.cache.startElement=e[0]&&e[0].getTouchedStartNode();t._.cache.ranges=new i.rangeList(e);t._.cache.type=2;return};if(a){if(e.length>1){var g=e[e.length-1];e[0].setEnd(g.endContainer,g.endOffset);e.length=1};if(e[0])e[0].select();t.reset()}
+else{var m=t.getNative();if(e.length)m.removeAllRanges();for(var r=0;r<e.length;r++){if(r<e.length-1){var l=e[r],d=e[r+1],o=l.clone();o.setStart(l.endContainer,l.endOffset);o.setEnd(d.startContainer,d.startOffset);if(!o.collapsed){o.shrink(1,!0);var h=o.getCommonAncestor(),f=o.getEnclosedNode();if(h.isReadOnly()||f&&f.isReadOnly()){d.setStart(l.startContainer,l.startOffset);e.splice(r--,1);continue}}};var s=e[r],u=t.document.$.createRange(),c=s.startContainer;if(s.collapsed&&(n.opera||n.gecko&&n.version<10900)&&c.type==1&&!c.getChildCount())c.appendText('');u.setStart(c.$,s.startOffset);u.setEnd(s.endContainer.$,s.endOffset);m.addRange(u)};t.reset()}},createBookmarks:function(e){return this.getRanges().createBookmarks(e)},createBookmarks2:function(e){return this.getRanges().createBookmarks2(e)},selectBookmarks:function(e){var a=[];for(var t=0;t<e.length;t++){var n=new i.range(this.document);n.moveToBookmark(e[t]);a.push(n)};this.selectRanges(a);return this},getCommonAncestor:function(){var e=this.getRanges(),t=e[0].startContainer,n=e[e.length-1].endContainer;return t.getCommonAncestor(n)},scrollIntoView:function(){var e=this.getStartElement();e.scrollIntoView()}}})();(function(){var t=i.walker.whitespaces(!0),n=/\ufeff|\u00a0/,e={table:1,tbody:1,tr:1};i.range.prototype.select=a?function(i){var a=this,m=a.collapsed,u,l;if(a.startContainer.type==1&&a.startContainer.getName()in e||a.endContainer.type==1&&a.endContainer.getName()in e)a.shrink(1,!0);var f=a.createBookmark(),r=f.startNode,s;if(!m)s=f.endNode;var o=a.document.$.body.createTextRange();o.moveToElementText(r.$);o.moveStart('character',1);if(s){var d=a.document.$.body.createTextRange();d.moveToElementText(s.$);o.setEndPoint('EndToEnd',d);o.moveEnd('character',-1)}
+else{var c=r.getNext(t);u=!(c&&c.getText&&c.getText().match(n))&&(i||!r.hasPrevious()||r.getPrevious().is&&r.getPrevious().is('br'));l=a.document.createElement('span');l.setHtml('');l.insertBefore(r);if(u)a.document.createText('\ufeff').insertBefore(r)};a.setStartBefore(r);r.remove();if(m){if(u){o.moveStart('character',-1);o.select();a.document.$.selection.clear()}
+else o.select();a.moveToPosition(l,3);l.remove()}
+else{a.setEndBefore(s);s.remove();o.select()};a.document.fire('selectionchange')}:function(){var t=this,a=t.startContainer;if(t.collapsed&&a.type==1&&!a.getChildCount())a.append(new i.text(''));var n=t.document.$.createRange();n.setStart(a.$,t.startOffset);try{n.setEnd(t.endContainer.$,t.endOffset)}catch(e){if(e.toString().indexOf('NS_ERROR_ILLEGAL_VALUE')>=0){t.collapse(!0);n.setEnd(t.endContainer.$,t.endOffset)}
+else throw e};var r=t.document.getSelection().getNative();if(r){r.removeAllRanges();r.addRange(n)}}})();(function(){var t={elements:{$:function(t){var s=t.attributes,l=s&&s['data-cke-realelement'],c=l&&new e.htmlParser.fragment.fromHtml(decodeURIComponent(l)),i=c&&c.children[0];if(i&&t.attributes['data-cke-resizable']){var a=t.attributes.style;if(a){var n=/(?:^|\s)width\s*:\s*(\d+)/i.exec(a),o=n&&n[1];n=/(?:^|\s)height\s*:\s*(\d+)/i.exec(a);var r=n&&n[1];if(o)i.attributes.width=o;if(r)i.attributes.height=r}};return i}}};r.add('fakeobjects',{requires:['htmlwriter'],afterInit:function(e){var n=e.dataProcessor,i=n&&n.htmlFilter;if(i)i.addRules(t)}})})();e.editor.prototype.createFakeElement=function(t,n,i,a){var o=this.lang.fakeobjects,s=o[i]||o.unknown,r={'class':n,src:e.getUrl('images/spacer.gif'),'data-cke-realelement':encodeURIComponent(t.getOuterHtml()),'data-cke-real-node-type':t.type,alt:s,title:s,align:t.getAttribute('align')||''};if(i)r['data-cke-real-element-type']=i;if(a)r['data-cke-resizable']=a;return this.document.createElement('img',{attributes:r})};e.editor.prototype.createFakeParserElement=function(t,n,i,a){var o=this.lang.fakeobjects,s=o[i]||o.unknown,l,c=new e.htmlParser.basicWriter();t.writeHtml(c);l=c.getHtml();var r={'class':n,src:e.getUrl('images/spacer.gif'),'data-cke-realelement':encodeURIComponent(l),'data-cke-real-node-type':t.type,alt:s,title:s,align:t.attributes.align||''};if(i)r['data-cke-real-element-type']=i;if(a)r['data-cke-resizable']=a;return new e.htmlParser.element('img',r)};e.editor.prototype.restoreRealElement=function(e){if(e.data('cke-real-node-type')!=1)return null;return s.createFromHtml(decodeURIComponent(e.data('cke-realelement')),this.document)};r.add('richcombo',{requires:['floatpanel','listblock','button'],beforeInit:function(e){e.ui.addHandler(3,o.richCombo.handler)}});e.UI_RICHCOMBO=3;o.richCombo=t.createClass({$:function(n){var a=this;t.extend(a,n,{title:n.label,modes:{wysiwyg:1}});var i=a.panel||{};delete a.panel;a.id=t.getNextNumber();a.document=i&&i.parent&&i.parent.getDocument()||e.document;i.className=(i.className||'')+' cke_rcombopanel';i.block={multiSelect:i.multiSelect,attributes:i.attributes};a._={panelDefinition:i,items:{},state:2}},statics:{handler:{create:function(e){return new o.richCombo(e)}}},proto:{renderHtml:function(e){var t=[];this.render(e,t);return t.join('')},render:function(a,r){var c=n,o='cke_'+this.id,u=t.addFunction(function(e){var n=this,t=n._;if(t.state==0)return;n.createPanel(a);if(t.on){t.panel.hide();return};n.commit();var i=n.getValue();if(i)t.list.mark(i);else t.list.unmarkAll();t.panel.showBlock(n.id,new s(e),4)},this),l={id:o,combo:this,focus:function(){var t=e.document.getById(o).getChild(1);t.focus()},clickFn:u};a.on('mode',function(){this.setState(this.modes[a.mode]?2:0);this.setValue('')},this);var d=t.addFunction(function(e,n){e=new i.event(e);var a=e.getKeystroke();switch(a){case 13:case 32:case 40:t.callFunction(u,n);break;default:l.onkey(l,a)};e.preventDefault()});l.keyDownFn=d;r.push('<span class="cke_rcombo">','<span id=',o);if(this.className)r.push(' class="',this.className,' cke_off"');r.push('>','<span id="'+o+'_label" class=cke_label>',this.label,'</span>','<a hidefocus=true title="',this.title,'" tabindex="-1"',c.gecko&&c.version>=10900&&!c.hc?'':' href="javascript:void(\''+this.label+'\')"',' role="button" aria-labelledby="',o,'_label" aria-describedby="',o,'_text" aria-haspopup="true"');if(n.opera||n.gecko&&n.mac)r.push(' onkeypress="return false;"');if(n.gecko)r.push(' onblur="this.style.cssText = this.style.cssText;"');r.push(' onkeydown="CKEDITOR.tools.callFunction( ',d,', event, this );" onclick="CKEDITOR.tools.callFunction(',u,', this); return false;"><span><span id="'+o+'_text" class="cke_text cke_inline_label">'+this.label+'</span></span><span class=cke_openbutton>'+(n.hc?'<span>▼</span>':n.air?' ':'')+'</span></a></span></span>');if(this.onRender)this.onRender();return l},createPanel:function(t){if(this._.panel)return;var r=this._.panelDefinition,s=this._.panelDefinition.block,l=r.parent||e.document.getBody(),i=new o.floatPanel(t,l,r),a=i.addListBlock(this.id,s),n=this;i.onShow=function(){if(n.className)this.element.getFirst().addClass(n.className+'_panel');n.setState(1);a.focus(!n.multiSelect&&n.getValue());n._.on=1;if(n.onOpen)n.onOpen()};i.onHide=function(e){if(n.className)this.element.getFirst().removeClass(n.className+'_panel');n.setState(n.modes&&n.modes[t.mode]?2:0);n._.on=0;if(!e&&n.onClose)n.onClose()};i.onEscape=function(){i.hide();n.document.getById('cke_'+n.id).getFirst().getNext().focus()};a.onClick=function(e,t){n.document.getWindow().focus();if(n.onClick)n.onClick.call(n,e,t);if(t)n.setValue(e,n._.items[e]);else n.setValue('');i.hide()};this._.panel=i;this._.list=a;i.getBlock(this.id).onHide=function(){n._.on=0;n.setState(2)};if(this.init)this.init()},setValue:function(e,t){var i=this;i._.value=e;var n=i.document.getById('cke_'+i.id+'_text');if(n){if(!(e||t)){t=i.label;n.addClass('cke_inline_label')}
+else n.removeClass('cke_inline_label');n.setHtml(typeof t!='undefined'?t:e)}},getValue:function(){return this._.value||''},unmarkAll:function(){this._.list.unmarkAll()},mark:function(e){this._.list.mark(e)},hideItem:function(e){this._.list.hideItem(e)},hideGroup:function(e){this._.list.hideGroup(e)},showAll:function(){this._.list.showAll()},add:function(e,t,n){this._.items[e]=n||e;this._.list.add(e,t,n)},startGroup:function(e){this._.list.startGroup(e)},commit:function(){var e=this;if(!e._.committed){e._.list.commit();e._.committed=1;o.fire('ready',e)};e._.committed=1},setState:function(e){var t=this;if(t._.state==e)return;t.document.getById('cke_'+t.id).setState(e);t._.state=e}}});o.prototype.addRichCombo=function(e,t){this.add(e,3,t)};r.add('htmlwriter');e.htmlWriter=t.createClass({base:e.htmlParser.basicWriter,$:function(){var e=this;e.base();e.indentationChars='\t';e.selfClosingEnd=' />';e.lineBreakChars='\n';e.forceSimpleAmpersand=0;e.sortAttributes=1;e._.indent=0;e._.indentation='';e._.inPre=0;e._.rules={};var n=c;for(var i in t.extend({},n.$nonBodyContent,n.$block,n.$listItem,n.$tableContent))e.setRules(i,{indent:1,breakBeforeOpen:1,breakAfterOpen:1,breakBeforeClose:!n[i]['#'],breakAfterClose:1});e.setRules('br',{breakAfterOpen:1});e.setRules('title',{indent:0,breakAfterOpen:0});e.setRules('style',{indent:0,breakBeforeClose:1});e.setRules('pre',{indent:0})},proto:{openTag:function(e,t){var n=this,i=n._.rules[e];if(n._.indent)n.indentation();else if(i&&i.breakBeforeOpen){n.lineBreak();n.indentation()};n._.output.push('<',e)},openTagClose:function(e,t){var n=this,i=n._.rules[e];if(t)n._.output.push(n.selfClosingEnd);else{n._.output.push('>');if(i&&i.indent)n._.indentation+=n.indentationChars};if(i&&i.breakAfterOpen)n.lineBreak();e=='pre'&&(n._.inPre=1)},attribute:function(e,n){if(typeof n=='string'){this.forceSimpleAmpersand&&(n=n.replace(/&/g,'&'));n=t.htmlEncodeAttr(n)};this._.output.push(' ',e,'="',n,'"')},closeTag:function(e){var t=this,n=t._.rules[e];if(n&&n.indent)t._.indentation=t._.indentation.substr(t.indentationChars.length);if(t._.indent)t.indentation();else if(n&&n.breakBeforeClose){t.lineBreak();t.indentation()};t._.output.push('</',e,'>');e=='pre'&&(t._.inPre=0);if(n&&n.breakAfterClose)t.lineBreak()},text:function(e){var n=this;if(n._.indent){n.indentation();!n._.inPre&&(e=t.ltrim(e))};n._.output.push(e)},comment:function(e){if(this._.indent)this.indentation();this._.output.push('<!--',e,'-->')},lineBreak:function(){var e=this;if(!e._.inPre&&e._.output.length>0)e._.output.push(e.lineBreakChars);e._.indent=1},indentation:function(){var e=this;if(!e._.inPre)e._.output.push(e._.indentation);e._.indent=0},setRules:function(e,n){var i=this._.rules[e];if(i)t.extend(i,n,!0);else this._.rules[e]=n}}});r.add('menubutton',{requires:['button','menu'],beforeInit:function(e){e.ui.addHandler(5,o.menuButton.handler)}});e.UI_MENUBUTTON=5;(function(){var n=function(n){var i=this._;if(i.state===0)return;i.previousState=i.state;var a=i.menu;if(!a){a=i.menu=new e.menu(n,{panel:{className:n.skinClass+' cke_contextmenu',attributes:{'aria-label':n.lang.common.options}}});a.onHide=t.bind(function(){this.setState(this.modes&&this.modes[n.mode]?i.previousState:0)},this);if(this.onMenu)a.addListener(this.onMenu)};if(i.on){a.hide();return};this.setState(1);a.show(e.document.getById(this._.id),4)};o.menuButton=t.createClass({base:o.button,$:function(e){var t=e.panel;delete e.panel;this.base(e);this.hasArrow=!0;this.click=n},statics:{handler:{create:function(e){return new o.menuButton(e)}}}})})();r.add('dialogui');(function(){var r=function(e){var n=this;n._||(n._={});n._['default']=n._.initValue=e['default']||'';n._.required=e.required||!1;var a=[n._];for(var i=1;i<arguments.length;i++)a.push(arguments[i]);a.push(!0);t.extend.apply(t,a);return n._},f={build:function(e,t,n){return new o.dialog.textInput(e,t,n)}},l={build:function(e,t,n){return new o.dialog[t.type](e,t,n)}},m={build:function(t,n,i){var l=n.children,r,c=[],u=[];for(var a=0;a<l.length&&(r=l[a]);a++){var s=[];c.push(s);u.push(e.dialog._.uiElementBuilders[r.type].build(t,r,s))};return new o.dialog[n.type](t,u,c,i,n)}},c={isChanged:function(){return this.getValue()!=this.getInitValue()},reset:function(e){this.setValue(this.getInitValue(),e)},setInitValue:function(){this._.initValue=this.getValue()},resetInitValue:function(){this._.initValue=this._['default']},getInitValue:function(){return this._.initValue}},d=t.extend({},o.dialog.uiElement.prototype.eventProcessors,{onChange:function(e,t){if(!this._.domOnChangeRegistered){e.on('load',function(){this.getInputElement().on('change',function(){if(!e.parts.dialog.isVisible())return;this.fire('change',{value:this.getValue()})},this)},this);this._.domOnChangeRegistered=!0};this.on('change',t)}},!0),g=/^on([A-Z]\w+)/,u=function(e){for(var t in e){if(g.test(t)||t=='title'||t=='type')delete e[t]};return e};t.extend(o.dialog,{labeledElement:function(n,i,a,s){if(arguments.length<4)return;var l=r.call(this,i);l.labelId=t.getNextId()+'_label';var u=this._.children=[],c=function(){var a=[],r=i.required?' cke_required':'';if(i.labelLayout!='horizontal')a.push('<label class="cke_dialog_ui_labeled_label'+r+'" ',' id="'+l.labelId+'"',' for="'+l.inputId+'"',' style="'+i.labelStyle+'">',i.label,'</label>','<div class="cke_dialog_ui_labeled_content" role="presentation">',s.call(this,n,i),'</div>');else{var o={type:'hbox',widths:i.widths,padding:0,children:[{type:'html',html:'<label class="cke_dialog_ui_labeled_label'+r+'" id="'+l.labelId+'" for="'+l.inputId+'" style="'+i.labelStyle+'">'+t.htmlEncode(i.label)+'</span>'},{type:'html',html:'<span class="cke_dialog_ui_labeled_content">'+s.call(this,n,i)+'</span>'}]};e.dialog._.uiElementBuilders.hbox.build(n,o,a)};return a.join('')};o.dialog.uiElement.call(this,n,i,a,'div',null,{role:'presentation'},c)},textInput:function(e,n,i){if(arguments.length<3)return;r.call(this,n);var u=this._.inputId=t.getNextId()+'_textInput',a={'class':'cke_dialog_ui_input_'+n.type,id:u,type:'text'},d;if(n.validate)this.validate=n.validate;if(n.maxLength)a.maxlength=n.maxLength;if(n.size)a.size=n.size;if(n.controlStyle)a.style=n.controlStyle;var l=this,s=!1;e.on('load',function(){l.getInputElement().on('keydown',function(e){if(e.data.getKeystroke()==13)s=!0});l.getInputElement().on('keyup',function(t){if(t.data.getKeystroke()==13&&s){e.getButton('ok')&&setTimeout(function(){e.getButton('ok').click()},0);s=!1}},null,null,1000)});var c=function(){var e=['<div class="cke_dialog_ui_input_',n.type,'" role="presentation"'];if(n.width)e.push('style="width:'+n.width+'" ');e.push('><input ');a['aria-labelledby']=this._.labelId;this._.required&&(a['aria-required']=this._.required);for(var t in a)e.push(t+'="'+a[t]+'" ');e.push(' /></div>');return e.join('')};o.dialog.labeledElement.call(this,e,n,i,c)},textarea:function(e,n,i){if(arguments.length<3)return;r.call(this,n);var l=this,c=this._.inputId=t.getNextId()+'_textarea',a={};if(n.validate)this.validate=n.validate;a.rows=n.rows||5;a.cols=n.cols||20;var s=function(){a['aria-labelledby']=this._.labelId;this._.required&&(a['aria-required']=this._.required);var e=['<div class="cke_dialog_ui_input_textarea" role="presentation"><textarea class="cke_dialog_ui_input_textarea" id="',c,'" '];for(var n in a)e.push(n+'="'+t.htmlEncode(a[n])+'" ');e.push('>',t.htmlEncode(l._['default']),'</textarea></div>');return e.join('')};o.dialog.labeledElement.call(this,e,n,i,s)},checkbox:function(e,n,i){if(arguments.length<3)return;var s=r.call(this,n,{'default':!!n['default']});if(n.validate)this.validate=n.validate;var a=function(){var i=t.extend({},n,{id:n.id?n.id+'_checkbox':t.getNextId()+'_checkbox'},!0),a=[],l=t.getNextId()+'_label',r={'class':'cke_dialog_ui_checkbox_input',type:'checkbox','aria-labelledby':l};u(i);if(n['default'])r.checked='checked';if(typeof i.controlStyle!='undefined')i.style=i.controlStyle;s.checkbox=new o.dialog.uiElement(e,i,a,'input',null,r);a.push(' <label id="',l,'" for="',r.id,'">',t.htmlEncode(n.label),'</label>');return a.join('')};o.dialog.uiElement.call(this,e,n,i,'span',null,null,a)},radio:function(e,n,i){if(arguments.length<3)return;r.call(this,n);if(!this._['default'])this._['default']=this._.initValue=n.items[0][1];if(n.validate)this.validate=n.valdiate;var a=[],s=this,l=function(){var p=[],v=[],k={'class':'cke_dialog_ui_radio_item','aria-labelledby':this._.labelId},y=n.id?n.id+'_radio':t.getNextId()+'_radio';for(var d=0;d<n.items.length;d++){var i=n.items[d],b=i[2]!==undefined?i[2]:i[0],f=i[1]!==undefined?i[1]:i[0],m=t.getNextId()+'_radio_input',g=m+'_label',r=t.extend({},n,{id:m,title:null,type:null},!0),h=t.extend({},r,{title:b},!0),c={type:'radio','class':'cke_dialog_ui_radio_input',name:y,value:f,'aria-labelledby':g},l=[];if(s._['default']==f)c.checked='checked';u(r);u(h);if(typeof r.controlStyle!='undefined')r.style=r.controlStyle;a.push(new o.dialog.uiElement(e,r,l,'input',null,c));l.push(' ');new o.dialog.uiElement(e,h,l,'label',null,{id:g,'for':c.id},i[0]);p.push(l.join(''))};new o.dialog.hbox(e,[],p,v);return v.join('')};o.dialog.labeledElement.call(this,e,n,i,l);this._.children=a},button:function(n,i,a){if(!arguments.length)return;if(typeof i=='function')i=i(n.getParentEditor());r.call(this,i,{disabled:i.disabled||!1});e.event.implementOn(this);var s=this;n.on('load',function(e){var t=this.getElement();(function(){t.on('click',function(e){s.fire('click',{dialog:s.getDialog()});e.data.preventDefault()});t.on('keydown',function(e){if(e.data.getKeystroke()in{32:1}){s.click();e.data.preventDefault()}})})();t.unselectable()},this);var c=t.extend({},i);delete c.style;var l=t.getNextId()+'_label';o.dialog.uiElement.call(this,n,c,a,'a',null,{style:i.style,href:'javascript:void(0)',title:i.label,hidefocus:'true','class':i['class'],role:'button','aria-labelledby':l},'<span id="'+l+'" class="cke_dialog_ui_button">'+t.htmlEncode(i.label)+'</span>')},select:function(e,n,i){if(arguments.length<3)return;var a=r.call(this,n);if(n.validate)this.validate=n.validate;a.inputId=t.getNextId()+'_select';var s=function(){var r=t.extend({},n,{id:n.id?n.id+'_select':t.getNextId()+'_select'},!0),c=[],d=[],l={id:a.inputId,'class':'cke_dialog_ui_input_select','aria-labelledby':this._.labelId};if(n.size!=undefined)l.size=n.size;if(n.multiple!=undefined)l.multiple=n.multiple;u(r);for(var s=0,i;s<n.items.length&&(i=n.items[s]);s++)d.push('<option value="',t.htmlEncode(i[1]!==undefined?i[1]:i[0]),'" /> ',t.htmlEncode(i[0]));if(typeof r.controlStyle!='undefined')r.style=r.controlStyle;a.select=new o.dialog.uiElement(e,r,c,'select',null,l,d.join(''));return c.join('')};o.dialog.labeledElement.call(this,e,n,i,s)},file:function(i,a,s){if(arguments.length<3)return;if(a['default']===undefined)a['default']='';var l=t.extend(r.call(this,a),{definition:a,buttons:[]});if(a.validate)this.validate=a.validate;var c=function(){l.frameId=t.getNextId()+'_fileInput';var i=n.isCustomDomain(),e=['<iframe frameborder="0" allowtransparency="0" class="cke_dialog_ui_input_file" id="',l.frameId,'" title="',a.label,'" src="javascript:void('];e.push(i?'(function(){document.open();document.domain=\''+document.domain+'\';document.close();})()':'0');e.push(')"></iframe>');return e.join('')};i.on('load',function(){var t=e.document.getById(l.frameId),n=t.getParent();n.addClass('cke_dialog_ui_input_file')});o.dialog.labeledElement.call(this,i,a,s,c)},fileButton:function(e,n,i){if(arguments.length<3)return;var c=r.call(this,n),l=this;if(n.validate)this.validate=n.validate;var a=t.extend({},n),s=a.onClick;a.className=(a.className?a.className+' ':'')+'cke_dialog_ui_button';a.onClick=function(t){var i=n['for'];if(!s||s.call(this,t)!==!1){e.getContentElement(i[0],i[1]).submit();this.disable()}};e.on('load',function(){e.getContentElement(n['for'][0],n['for'][1])._.buttons.push(l)});o.dialog.button.call(this,e,a,i)},html:(function(){var e=/^\s*<[\w:]+\s+([^>]*)?>/,t=/^(\s*<[\w:]+(?:\s+[^>]*)?)((?:.|\r|\n)+)$/,n=/\/$/;return function(i,a,r){if(arguments.length<3)return;var u=[],d,l=a.html,f,s;if(l.charAt(0)!='<')l='<span>'+l+'</span>';var c=a.focus;if(c){var g=this.focus;this.focus=function(){g.call(this);typeof c=='function'&&c.call(this);this.fire('focus')};if(a.isFocusable){var m=this.isFocusable;this.isFocusable=m};this.keyboardFocusable=!0};o.dialog.uiElement.call(this,i,a,u,'span',null,null,'');d=u.join('');f=d.match(e);s=l.match(t)||['','',''];if(n.test(s[1])){s[1]=s[1].slice(0,-1);s[2]='/'+s[2]};r.push([s[1],' ',f[1]||'',s[2]].join(''))}})(),fieldset:function(e,t,n,i,a){var r=a.label,s=function(){var t=[];r&&t.push('<legend>'+r+'</legend>');for(var e=0;e<n.length;e++)t.push(n[e]);return t.join('')};this._={children:t};o.dialog.uiElement.call(this,e,a,i,'fieldset',null,null,s)}},!0);o.dialog.html.prototype=new o.dialog.uiElement();o.dialog.labeledElement.prototype=t.extend(new o.dialog.uiElement(),{setLabel:function(t){var n=e.document.getById(this._.labelId);if(n.getChildCount()<1)new i.text(t,e.document).appendTo(n);else n.getChild(0).$.nodeValue=t;return this},getLabel:function(){var t=e.document.getById(this._.labelId);if(!t||t.getChildCount()<1)return'';else return t.getChild(0).getText()},eventProcessors:d},!0);o.dialog.button.prototype=t.extend(new o.dialog.uiElement(),{click:function(){var e=this;if(!e._.disabled)return e.fire('click',{dialog:e._.dialog});e.getElement().$.blur();return!1},enable:function(){this._.disabled=!1;var e=this.getElement();e&&e.removeClass('cke_disabled')},disable:function(){this._.disabled=!0;this.getElement().addClass('cke_disabled')},isVisible:function(){return this.getElement().getFirst().isVisible()},isEnabled:function(){return!this._.disabled},eventProcessors:t.extend({},o.dialog.uiElement.prototype.eventProcessors,{onClick:function(e,t){this.on('click',t)}},!0),accessKeyUp:function(){this.click()},accessKeyDown:function(){this.focus()},keyboardFocusable:!0},!0);o.dialog.textInput.prototype=t.extend(new o.dialog.labeledElement(),{getInputElement:function(){return e.document.getById(this._.inputId)},focus:function(){var e=this.selectParentTab();setTimeout(function(){var t=e.getInputElement();t&&t.$.focus()},0)},select:function(){var e=this.selectParentTab();setTimeout(function(){var t=e.getInputElement();if(t){t.$.focus();t.$.select()}},0)},accessKeyUp:function(){this.select()},setValue:function(e){!e&&(e='');return o.dialog.uiElement.prototype.setValue.apply(this,arguments)},keyboardFocusable:!0},c,!0);o.dialog.textarea.prototype=new o.dialog.textInput();o.dialog.select.prototype=t.extend(new o.dialog.labeledElement(),{getInputElement:function(){return this._.select.getElement()},add:function(e,t,n){var i=new s('option',this.getDialog().getParentEditor().document),r=this.getInputElement().$;i.$.text=e;i.$.value=t===undefined||t===null?e:t;if(n===undefined||n===null){if(a)r.add(i.$);else r.add(i.$,null)}
+else r.add(i.$,n);return this},remove:function(e){var t=this.getInputElement().$;t.remove(e);return this},clear:function(){var e=this.getInputElement().$;while(e.length>0)e.remove(0);return this},keyboardFocusable:!0},c,!0);o.dialog.checkbox.prototype=t.extend(new o.dialog.uiElement(),{getInputElement:function(){return this._.checkbox.getElement()},setValue:function(e,t){this.getInputElement().$.checked=e;!t&&this.fire('change',{value:e})},getValue:function(){return this.getInputElement().$.checked},accessKeyUp:function(){this.setValue(!this.getValue())},eventProcessors:{onChange:function(e,t){if(!a)return d.onChange.apply(this,arguments);else{e.on('load',function(){var e=this._.checkbox.getElement();e.on('propertychange',function(t){t=t.data.$;if(t.propertyName=='checked')this.fire('change',{value:e.$.checked})},this)},this);this.on('change',t)};return null}},keyboardFocusable:!0},c,!0);o.dialog.radio.prototype=t.extend(new o.dialog.uiElement(),{setValue:function(e,t){var a=this._.children,i;for(var n=0;n<a.length&&(i=a[n]);n++)i.getElement().$.checked=i.getValue()==e;!t&&this.fire('change',{value:e})},getValue:function(){var t=this._.children;for(var e=0;e<t.length;e++){if(t[e].getElement().$.checked)return t[e].getValue()};return null},accessKeyUp:function(){var t=this._.children,e;for(e=0;e<t.length;e++){if(t[e].getElement().$.checked){t[e].getElement().focus();return}};t[0].getElement().focus()},eventProcessors:{onChange:function(e,t){if(!a)return d.onChange.apply(this,arguments);else{e.on('load',function(){var t=this._.children,i=this;for(var e=0;e<t.length;e++){var n=t[e].getElement();n.on('propertychange',function(e){e=e.data.$;if(e.propertyName=='checked'&&this.$.checked)i.fire('change',{value:this.getAttribute('value')})})}},this);this.on('change',t)};return null}},keyboardFocusable:!0},c,!0);o.dialog.file.prototype=t.extend(new o.dialog.labeledElement(),c,{getInputElement:function(){var t=e.document.getById(this._.frameId).getFrameDocument();return t.$.forms.length>0?new s(t.$.forms[0].elements[0]):this.getElement()},submit:function(){this.getInputElement().getParent().$.submit();return this},getAction:function(){return this.getInputElement().getParent().$.action},registerEvents:function(e){var i=/^on([A-Z]\w+)/,n,a=function(e,t,n,i){e.on('formLoaded',function(){e.getInputElement().on(n,i,e)})};for(var t in e){if(!(n=t.match(i)))continue;if(this.eventProcessors[t])this.eventProcessors[t].call(this,this._.dialog,e[t]);else a(this,this._.dialog,n[1].toLowerCase(),e[t])};return this},reset:function(){var i=this._,m=e.document.getById(i.frameId),r=m.getFrameDocument(),o=i.definition,c=i.buttons,s=this.formLoadedNumber,l=this.formUnloadNumber,u=i.dialog._.editor.lang.dir,d=i.dialog._.editor.langCode;if(!s){s=this.formLoadedNumber=t.addFunction(function(){this.fire('formLoaded')},this);l=this.formUnloadNumber=t.addFunction(function(){this.getInputElement().clearCustomData()},this);this.getDialog()._.editor.on('destroy',function(){t.removeFunction(s);t.removeFunction(l)})};function f(){r.$.open();if(n.isCustomDomain())r.$.domain=document.domain;var i='';if(o.size)i=o.size-(a?7:0);r.$.write(['<html dir="'+u+'" lang="'+d+'"><head><title></title></head><body style="margin: 0; overflow: hidden; background: transparent;">','<form enctype="multipart/form-data" method="POST" dir="'+u+'" lang="'+d+'" action="',t.htmlEncode(o.action),'">','<input type="file" name="',t.htmlEncode(o.id||'cke_upload'),'" size="',t.htmlEncode(i>0?i:''),'" />','</form>','</body></html>','<script>window.parent.CKEDITOR.tools.callFunction('+s+');','window.onbeforeunload = function() {window.parent.CKEDITOR.tools.callFunction('+l+')}</script>'].join(''));r.$.close();for(var e=0;e<c.length;e++)c[e].enable()};if(n.gecko)setTimeout(f,500);else f()},getValue:function(){return this.getInputElement().$.value||''},setInitValue:function(){this._.initValue=''},eventProcessors:{onChange:function(e,t){if(!this._.domOnChangeRegistered){this.on('formLoaded',function(){this.getInputElement().on('change',function(){this.fire('change',{value:this.getValue()})},this)},this);this._.domOnChangeRegistered=!0};this.on('change',t)}},keyboardFocusable:!0},!0);o.dialog.fileButton.prototype=new o.dialog.button();o.dialog.fieldset.prototype=t.clone(o.dialog.hbox.prototype);e.dialog.addUIElement('text',f);e.dialog.addUIElement('password',f);e.dialog.addUIElement('textarea',l);e.dialog.addUIElement('checkbox',l);e.dialog.addUIElement('radio',l);e.dialog.addUIElement('button',l);e.dialog.addUIElement('select',l);e.dialog.addUIElement('file',l);e.dialog.addUIElement('fileButton',l);e.dialog.addUIElement('html',l);e.dialog.addUIElement('fieldset',m)})();r.add('panel',{beforeInit:function(e){e.ui.addHandler(2,o.panel.handler)}});e.UI_PANEL=2;o.panel=function(e,n){var i=this;if(n)t.extend(i,n);t.extend(i,{className:'',css:[]});i.id=t.getNextId();i.document=e;i._={blocks:{}}};o.panel.handler={create:function(e){return new o.panel(e)}};o.panel.prototype={renderHtml:function(e){var t=[];this.render(e,t);return t.join('')},render:function(e,t){var i=this,a=i.id;t.push('<div class="',e.skinClass,'" lang="',e.langCode,'" role="presentation" style="display:none;z-index:'+(e.config.baseFloatZIndex+1)+'"><div id=',a,' dir=',e.lang.dir,' role="presentation" class="cke_panel cke_',e.lang.dir);if(i.className)t.push(' ',i.className);t.push('">');if(i.forceIFrame||i.css.length){t.push('<iframe id="',a,'_frame" frameborder="0" role="application" src="javascript:void(');t.push(n.isCustomDomain()?'(function(){document.open();document.domain=\''+document.domain+'\';document.close();})()':'0');t.push(')"></iframe>')};t.push('</div></div>');return a},getHolderElement:function(){var i=this._.holder;if(!i){if(this.forceIFrame||this.css.length){var o=this.document.getById(this.id+'_frame'),r=o.getParent(),s=r.getAttribute('dir'),l=r.getParent().getAttribute('class'),d=r.getParent().getAttribute('lang'),a=o.getFrameDocument(),c=t.addFunction(t.bind(function(e){this.isLoaded=!0;if(this.onLoad)this.onLoad()},this)),f='<!DOCTYPE html><html dir="'+s+'" class="'+l+'_container" lang="'+d+'"><head><style>.'+l+'_container{visibility:hidden}</style></head><body class="cke_'+s+' cke_panel_frame '+n.cssClass+'" style="margin:0;padding:0" onload="( window.CKEDITOR || window.parent.CKEDITOR ).tools.callFunction('+c+');"></body>'+t.buildStyleHtml(this.css)+'</html>';a.write(f);var u=a.getWindow();u.$.CKEDITOR=e;a.on('key'+(n.opera?'press':'down'),function(e){var t=this,n=e.data.getKeystroke(),i=t.document.getById(t.id).getAttribute('dir');if(t._.onKeyDown&&t._.onKeyDown(n)===!1){e.data.preventDefault();return};if(n==27||n==(i=='rtl'?39:37))if(t.onEscape&&t.onEscape(n)===!1)e.data.preventDefault()},this);i=a.getBody();i.unselectable();n.air&&t.callFunction(c)}
+else i=this.document.getById(this.id);this._.holder=i};return i},addBlock:function(e,t){var n=this;t=n._.blocks[e]=t instanceof o.panel.block?t:new o.panel.block(n.getHolderElement(),t);if(!n._.currentBlock)n.showBlock(e);return t},getBlock:function(e){return this._.blocks[e]},showBlock:function(n){var o=this._.blocks,i=o[n],r=this._.currentBlock,a=this.forceIFrame?this.document.getById(this.id+'_frame'):this._.holder;a.getParent().getParent().disableContextMenu();if(r){a.removeAttributes(r.attributes);r.hide()};this._.currentBlock=i;a.setAttributes(i.attributes);e.fire('ariaWidget',a);i._.focusIndex=-1;this._.onKeyDown=i.onKeyDown&&t.bind(i.onKeyDown,i);i.onMark=function(e){a.setAttribute('aria-activedescendant',e.getId()+'_option')};i.onUnmark=function(){a.removeAttribute('aria-activedescendant')};i.show();return i},destroy:function(){this.element&&this.element.remove()}};o.panel.block=t.createClass({$:function(e,n){var i=this;i.element=e.append(e.getDocument().createElement('div',{attributes:{tabIndex:-1,'class':'cke_panel_block',role:'presentation'},styles:{display:'none'}}));if(n)t.extend(i,n);if(!i.attributes.title)i.attributes.title=i.attributes['aria-label'];i.keys={};i._.focusIndex=-1;i.element.disableContextMenu()},_:{markItem:function(e){var t=this;if(e==-1)return;var a=t.element.getElementsByTag('a'),i=a.getItem(t._.focusIndex=e);if(n.webkit||n.opera)i.getDocument().getWindow().focus();i.focus();t.onMark&&t.onMark(i)}},proto:{show:function(){this.element.setStyle('display','')},hide:function(){var e=this;if(!e.onHide||e.onHide.call(e)!==!0)e.element.setStyle('display','none')},onKeyDown:function(e){var i=this,r=i.keys[e];switch(r){case'next':var n=i._.focusIndex,a=i.element.getElementsByTag('a'),t;while(t=a.getItem(++n)){if(t.getAttribute('_cke_focus')&&t.$.offsetWidth){i._.focusIndex=n;t.focus();break}};return!1;case'prev':n=i._.focusIndex;a=i.element.getElementsByTag('a');while(n>0&&(t=a.getItem(--n))){if(t.getAttribute('_cke_focus')&&t.$.offsetWidth){i._.focusIndex=n;t.focus();break}};return!1;case'click':n=i._.focusIndex;t=n>=0&&i.element.getElementsByTag('a').getItem(n);if(t)t.$.click?t.$.click():t.$.onclick();return!1};return!0}}});r.add('listblock',{requires:['panel'],onLoad:function(){o.panel.prototype.addListBlock=function(e,t){return this.addBlock(e,new o.listBlock(this.getHolderElement(),t))};o.listBlock=t.createClass({base:o.panel.block,$:function(e,t){var n=this;t=t||{};var a=t.attributes||(t.attributes={});(n.multiSelect=!!t.multiSelect)&&(a['aria-multiselectable']=!0);!a.role&&(a.role='listbox');n.base.apply(n,arguments);var i=n.keys;i[40]='next';i[9]='next';i[38]='prev';i[2000+9]='prev';i[32]='click';n._.pendingHtml=[];n._.items={};n._.groups={}},_:{close:function(){if(this._.started){this._.pendingHtml.push('</ul>');delete this._.started}},getClick:function(){if(!this._.click)this._.click=t.addFunction(function(e){var t=this,n=!0;if(t.multiSelect)n=t.toggle(e);else t.mark(e);if(t.onClick)t.onClick(e,n)},this);return this._.click}},proto:{add:function(e,n,i){var a=this,o=a._.pendingHtml,r=t.getNextId();if(!a._.started){o.push('<ul role="presentation" class=cke_panel_list>');a._.started=1;a._.size=a._.size||0};a._.items[e]=r;o.push('<li id=',r,' class=cke_panel_listItem role=presentation><a id="',r,'_option" _cke_focus=1 hidefocus=true title="',i||e,'" href="javascript:void(\'',e,'\')" onclick="CKEDITOR.tools.callFunction(',a._.getClick(),',\'',e,'\'); return false;"',' role="option" aria-posinset="'+ ++a._.size+'">',n||e,'</a></li>')},startGroup:function(e){this._.close();var n=t.getNextId();this._.groups[e]=n;this._.pendingHtml.push('<h1 role="presentation" id=',n,' class=cke_panel_grouptitle>',e,'</h1>')},commit:function(){var e=this;e._.close();e.element.appendHtml(e._.pendingHtml.join(''));var t=e._.items,i=e.element.getDocument();for(var n in t)i.getById(t[n]+'_option').setAttribute('aria-setsize',e._.size);delete e._.size;e._.pendingHtml=[]},toggle:function(e){var t=this.isMarked(e);if(t)this.unmark(e);else this.mark(e);return!t},hideGroup:function(e){var t=this.element.getDocument().getById(this._.groups[e]),n=t&&t.getNext();if(t){t.setStyle('display','none');if(n&&n.getName()=='ul')n.setStyle('display','none')}},hideItem:function(e){this.element.getDocument().getById(this._.items[e]).setStyle('display','none')},showAll:function(){var n=this._.items,i=this._.groups,a=this.element.getDocument();for(var o in n)a.getById(n[o]).setStyle('display','');for(var r in i){var t=a.getById(i[r]),e=t.getNext();t.setStyle('display','');if(e&&e.getName()=='ul')e.setStyle('display','')}},mark:function(e){var t=this;if(!t.multiSelect)t.unmarkAll();var n=t._.items[e],i=t.element.getDocument().getById(n);i.addClass('cke_selected');t.element.getDocument().getById(n+'_option').setAttribute('aria-selected',!0);t.element.setAttribute('aria-activedescendant',n+'_option');t.onMark&&t.onMark(i)},unmark:function(e){var t=this;t.element.getDocument().getById(t._.items[e]).removeClass('cke_selected');t.onUnmark&&t.onUnmark(t._.items[e])},unmarkAll:function(){var e=this,t=e._.items,i=e.element.getDocument();for(var n in t)i.getById(t[n]).removeClass('cke_selected');e.onUnmark&&e.onUnmark()},isMarked:function(e){return this.element.getDocument().getById(this._.items[e]).hasClass('cke_selected')},focus:function(e){this._.focusIndex=-1;if(e){var t=this.element.getDocument().getById(this._.items[e]).getFirst(),a=this.element.getElementsByTag('a'),n,i=-1;while(n=a.getItem(++i)){if(n.equals(t)){this._.focusIndex=i;break}};setTimeout(function(){t.focus()},0)}}}})}});e.themes.add('default',(function(){function i(t,i){var o,a;a=t.config.sharedSpaces;a=a&&a[i];a=a&&e.document.getById(a);if(a){var l='<span class="cke_shared " dir="'+t.lang.dir+'"><span class="'+t.skinClass+' '+t.id+' cke_editor_'+t.name+'"><span class="'+n.cssClass+'"><span class="cke_wrapper cke_'+t.lang.dir+'"><span class="cke_editor"><div class="cke_'+i+'"></div></span></span></span></span></span>',r=a.append(s.createFromHtml(l,a.getDocument()));if(a.getCustomData('cke_hasshared'))r.hide();else a.setCustomData('cke_hasshared',1);o=r.getChild([0,0,0,0]);!t.sharedSpaces&&(t.sharedSpaces={});t.sharedSpaces[i]=o;t.on('focus',function(){for(var t=0,e,n=a.getChildren();e=n.getItem(t);t++){if(e.type==1&&!e.equals(r)&&e.hasClass('cke_shared'))e.hide()};r.show()});t.on('destroy',function(){r.remove()})};return o};return{build:function(e,t){var a=e.name,f=e.element,g=e.elementMode;if(!f||g==0)return;if(g==1)f.hide();var o=e.fire('themeSpace',{space:'top',html:''}).html,c=e.fire('themeSpace',{space:'contents',html:''}).html,u=e.fireOnce('themeSpace',{space:'bottom',html:''}).html,d=c&&e.config.height,v=e.config.tabIndex||e.element.getAttribute('tabindex')||0;if(!c)d='auto';else if(!isNaN(d))d+='px';var m='',l=e.config.width;if(l){if(!isNaN(l))l+='px';m+='width: '+l+';'};var h=o&&i(e,'top'),p=i(e,'bottom');h&&(h.setHtml(o),o='');p&&(p.setHtml(u),u='');var r=s.createFromHtml(['<span id="cke_',a,'" class="',e.skinClass,' ',e.id,' cke_editor_',a,'" dir="',e.lang.dir,'" title="',n.gecko?' ':'','" lang="',e.langCode,'"'+(n.webkit?' tabindex="'+v+'"':'')+' role="application" aria-labelledby="cke_',a,'_arialbl"'+(m?' style="'+m+'"':'')+'><span id="cke_',a,'_arialbl" class="cke_voice_label">'+e.lang.editor+'</span><span class="',n.cssClass,'" role="presentation"><span class="cke_wrapper cke_',e.lang.dir,'" role="presentation"><table class="cke_editor" border="0" cellspacing="0" cellpadding="0" role="presentation"><tbody><tr',o?'':' style="display:none"',' role="presentation"><td id="cke_top_',a,'" class="cke_top" role="presentation">',o,'</td></tr><tr',c?'':' style="display:none"',' role="presentation"><td id="cke_contents_',a,'" class="cke_contents" style="height:',d,'" role="presentation">',c,'</td></tr><tr',u?'':' style="display:none"',' role="presentation"><td id="cke_bottom_',a,'" class="cke_bottom" role="presentation">',u,'</td></tr></tbody></table><style>.',e.skinClass,'{visibility:hidden;}</style></span></span></span>'].join(''));r.getChild([1,0,0,0,0]).unselectable();r.getChild([1,0,0,0,2]).unselectable();if(g==1)r.insertAfter(f);else f.append(r);e.container=r;r.disableContextMenu();e.fireOnce('themeLoaded');e.fireOnce('uiReady')},buildDialog:function(e){var c=t.getNextNumber(),r=s.createFromHtml(['<div class="',e.id,'_dialog cke_editor_',e.name.replace('.','\\.'),'_dialog cke_skin_',e.skinName,'" dir="',e.lang.dir,'" lang="',e.langCode,'" role="dialog" aria-labelledby="%title#"><table class="cke_dialog',' '+n.cssClass,' cke_',e.lang.dir,'" style="position:absolute" role="presentation"><tr><td role="presentation"><div class="%body" role="presentation"><div id="%title#" class="%title" role="presentation"></div><a id="%close_button#" class="%close_button" href="javascript:void(0)" title="'+e.lang.common.close+'" role="button"><span class="cke_label">X</span></a><div id="%tabs#" class="%tabs" role="tablist"></div><table class="%contents" role="presentation"><tr><td id="%contents#" class="%contents" role="presentation"></td></tr><tr><td id="%footer#" class="%footer" role="presentation"></td></tr></table></div><div id="%tl#" class="%tl"></div><div id="%tc#" class="%tc"></div><div id="%tr#" class="%tr"></div><div id="%ml#" class="%ml"></div><div id="%mr#" class="%mr"></div><div id="%bl#" class="%bl"></div><div id="%bc#" class="%bc"></div><div id="%br#" class="%br"></div></td></tr></table>',a?'':'<style>.cke_dialog{visibility:hidden;}</style>','</div>'].join('').replace(/#/g,'_'+c).replace(/%/g,'cke_dialog_')),i=r.getChild([0,0,0,0,0]),o=i.getChild(0),l=i.getChild(1);o.unselectable();l.unselectable();return{element:r,parts:{dialog:r.getChild(0),title:o,close:l,tabs:i.getChild(2),contents:i.getChild([3,0,0,0]),footer:i.getChild([3,0,1,0])}}},destroy:function(e){var t=e.container,n=e.element;if(t){t.clearCustomData();t.remove()};if(n){n.clearCustomData();e.elementMode==1&&n.show();delete e.element}}}})());e.editor.prototype.getThemeSpace=function(t){var n='cke_'+t,i=this._[n]||(this._[n]=e.document.getById(n+'_'+this.name));return i};e.editor.prototype.resize=function(t,i,a,r){var s=this.container,l=e.document.getById('cke_contents_'+this.name),o=r?s.getChild(1):s;n.webkit&&o.setStyle('display','none');o.setSize('width',t,!0);if(n.webkit){o.$.offsetWidth;o.setStyle('display','')};var c=a?0:(o.$.offsetHeight||0)-(l.$.clientHeight||0);l.setStyle('height',Math.max(i-c,0)+'px');this.fire('resize')};e.editor.prototype.getResizable=function(){return this.container}})();;(function(){CKEDITOR.config.jqueryOverrideVal=typeof CKEDITOR.config.jqueryOverrideVal=='undefined'?!0:CKEDITOR.config.jqueryOverrideVal;var e=window.jQuery;if(typeof e=='undefined')return;e.extend(e.fn,{ckeditorGet:function(){var e=this.eq(0).data('ckeditorInstance');if(!e)throw'CKEditor not yet initialized, use ckeditor() with callback.';return e},ckeditor:function(t,n){if(!CKEDITOR.env.isCompatible)return this;if(!e.isFunction(t)){var i=n;n=t;t=i};n=n||{};this.filter('textarea, div, p').each(function(){var i=e(this),r=i.data('ckeditorInstance'),o=i.data('_ckeditorInstanceLock'),a=this;if(r&&!o){if(t)t.apply(r,[this])}
+else if(!o){if(n.autoUpdateElement||typeof n.autoUpdateElement=='undefined'&&CKEDITOR.config.autoUpdateElement)n.autoUpdateElementJquery=!0;n.autoUpdateElement=!1;i.data('_ckeditorInstanceLock',!0);r=CKEDITOR.replace(a,n);i.data('ckeditorInstance',r);r.on('instanceReady',function(n){var e=n.editor;setTimeout(function(){if(!e.element){setTimeout(arguments.callee,100);return};n.removeListener('instanceReady',this.callee);e.on('dataReady',function(){i.trigger('setData.ckeditor',[e])});e.on('getData',function(t){i.trigger('getData.ckeditor',[e,t.data])},999);e.on('destroy',function(){i.trigger('destroy.ckeditor',[e])});if(e.config.autoUpdateElementJquery&&i.is('textarea')&&i.parents('form').length){var r=function(){i.ckeditor(function(){e.updateElement()})};i.parents('form').submit(r);i.parents('form').bind('form-pre-serialize',r);i.bind('destroy.ckeditor',function(){i.parents('form').unbind('submit',r);i.parents('form').unbind('form-pre-serialize',r)})};e.on('destroy',function(){i.data('ckeditorInstance',null)});i.data('_ckeditorInstanceLock',null);i.trigger('instanceReady.ckeditor',[e]);if(t)t.apply(e,[a])},0)},null,null,9999)}
+else CKEDITOR.on('instanceReady',function(e){var n=e.editor;setTimeout(function(){if(!n.element){setTimeout(arguments.callee,100);return};if(n.element.$==a)if(t)t.apply(n,[a])},0)},null,null,9999)});return this}});if(CKEDITOR.config.jqueryOverrideVal)e.fn.val=CKEDITOR.tools.override(e.fn.val,function(t){return function(n,a){var i=typeof n!='undefined',r;this.each(function(){var o=e(this),c=o.data('ckeditorInstance');if(!a&&o.is('textarea')&&c){if(i)c.setData(n);else{r=c.getData();return null}}
+else if(i)t.call(o,n);else{r=t.call(o);return null};return!0});return i?this:r}})})();$(document).on('orViewLoaded',function(e,t){if($('div.panel form input[type=password]').length>0&&$('#uname').attr('value')!=''){$('div.panel form input[name=login_name] ').attr('value',$('#uname').attr('value'));$('div.panel form input[name=login_password]').attr('value',$('#upassword').attr('value'))};$(e.target).find('form[data-autosave="true"] input[type="checkbox"]').click(function(){formSubmit($(this).closest('form'))})});function formSubmit(e){if($('div.panel form input[type=password]').length>0){$('#uname').attr('value',$('div.panel form input[name=login_name]').attr('value'));$('#upassword').attr('value',$('div.panel form input[name=login_password]').attr('value'));$('#uname').closest('form').submit()};if($('#pageelement_edit_editor').length>0){var r=CKEDITOR.instances['pageelement_edit_editor'];if(r){var l=r.getData();$('#pageelement_edit_editor').html(l)}};var t=$('<div class="notice info"><div class="text loader"></div></div>');$('#noticebar').prepend(t);$(t).show();$(e).find('.error').removeClass('error');var a=$(e).serializeArray(),o='./dispatcher.php',d=$(e).attr('method').toUpperCase();if(d=='GET'){var i=$(e).data('action'),n=$(e).data('method'),s=$(e).data('id');loadView($(e).closest('div.content'),i,n,s,a)}
+else{$(e).closest('div.content').addClass('loader');o+='?output=json';a['output']='json';if($(e).data('async')||$(e).data('async')=='true'){$('div#dialog').html('').hide();$('div#filler').fadeOut(500)};$.ajax({'type':'POST',url:o,data:a,success:function(a,o,r){$(e).closest('div.content').removeClass('loader');$(t).remove();doResponse(a,o,e)},error:function(a,o,n){$(e).closest('div.content').removeClass('loader');$(t).remove();var i;try{var r=jQuery.parseJSON(a.responseText);i=r.error+'/'+r.description+': '+r.reason}catch(s){i=a.responseText};notify('error',i)}});$(e).fadeIn()}};function doResponse(e,t,a){if(t!='success'){alert('Server error: '+t);return};$.each(e['notices'],function(t,e){var o=$('<div class="notice '+e.status+'"><div class="text">'+e.text+'</div></div>');notifyBrowser(e.text);$.each(e.log,function(e,t){$(o).append('<div class="log">'+t+'</div>')});$('#noticebar').prepend(o);$(o).fadeIn().click(function(){$(this).fadeOut('fast',function(){$(this).remove()})});var r;if(e.status=='ok'){r=3;if($(a).data('async')!='true'){$('div#dialog').html('').hide();$('div#filler').fadeOut(500);$(a).closest('div.panel').find('div.header ul.views li.action.active').removeClass('dirty')}}
+else{r=8};setTimeout(function(){$(o).fadeOut('slow').remove()},r*1000)});$.each(e['errors'],function(e,t){$('input[name='+t+']').addClass('error').parent().addClass('error').parents('fieldset').addClass('show').addClass('open')});if(!e.control){};if(e.control.redirect)window.location.href=e.control.redirect;if(e.control.new_style)setUserStyle(e.control.new_style);if(e.control.refresh)refreshAll();else if(e.control.next_view)startView($(a).closest('div.content'),e.control.next_view);else if(e.errors.length==0)$(a).closest('div.panel').find('li.action.active').orLoadView()};;$(document).on('orViewLoaded',function(e,n){$(e.target).find('fieldset > legend').click(function(){$(this).parent().toggleClass('open')})});;$(document).on('orViewLoaded',function(e,i){if($(e.target).find('textarea#pageelement_edit_editor').size()>0){var t=CKEDITOR.instances['pageelement_edit_editor'];if(t){CKEDITOR.remove(t)};CKEDITOR.replace('pageelement_edit_editor',{customConfig:'config-openrat.js'})};var s={markupSet:[{name:'Bold',key:'B',openWith:'*',closeWith:'*'},{name:'Italic',key:'I',openWith:'_',closeWith:'_'},{name:'Stroke through',key:'S',openWith:'--',closeWith:'--'},{separator:'-----------------'},{name:'Bulleted List',openWith:'*',closeWith:'',multiline:!0,openBlockWith:'\n',closeBlockWith:'\n'},{name:'Numeric List',openWith:'#',closeWith:'',multiline:!0,openBlockWith:'\n',closeBlockWith:'\n'},{separator:'---------------'},{name:'Picture',key:'P',replaceWith:'{[![Source:!:http://]!]" alt="[![Alternative text]!]" }'},{name:'Link',key:'L',openWith:'""->"[![Link:!:http://]!]"',closeWith:'"',placeHolder:'Your text to link...'},{separator:'---------------'},{name:'Clean',className:'clean',replaceWith:function(e){return e.selection.replace(/<(.*?)>/g,'')}},{name:'Preview',className:'preview',call:'preview'}]};$(e.target).find('.wikieditor').markItUp(s);var o={lang:'de',basePath:OR_THEMES_EXT_DIR+'../editor/wymeditor/wymeditor/',toolsItems:[{'name':'Bold','title':'Strong','css':'wym_tools_strong'},{'name':'Italic','title':'Emphasis','css':'wym_tools_emphasis'},{'name':'Superscript','title':'Superscript','css':'wym_tools_superscript'},{'name':'Subscript','title':'Subscript','css':'wym_tools_subscript'},{'name':'InsertOrderedList','title':'Ordered_List','css':'wym_tools_ordered_list'},{'name':'InsertUnorderedList','title':'Unordered_List','css':'wym_tools_unordered_list'},{'name':'Indent','title':'Indent','css':'wym_tools_indent'},{'name':'Outdent','title':'Outdent','css':'wym_tools_outdent'},{'name':'Undo','title':'Undo','css':'wym_tools_undo'},{'name':'Redo','title':'Redo','css':'wym_tools_redo'},{'name':'CreateLink','title':'Link','css':'wym_tools_link'},{'name':'Unlink','title':'Unlink','css':'wym_tools_unlink'},{'name':'InsertImage','title':'Image','css':'wym_tools_image'},{'name':'InsertTable','title':'Table','css':'wym_tools_table'},{'name':'Paste','title':'Paste_From_Word','css':'wym_tools_paste'},{'name':'ToggleHtml','title':'HTML','css':'wym_tools_html'},{'name':'Preview','title':'Preview','css':'wym_tools_preview'}]};$(e.target).find('textarea').orAutoheight();$(e.target).find('textarea.editor__code-editor').each(function(){var t=$(this),s=$('<div class="editor__code-editor" />').insertAfter(t),e=ace.edit(s.get(0)),i=t.data('mode');e.renderer.setShowGutter(!0);e.setTheme('ace/theme/github');e.getSession().setTabSize(4);e.getSession().setUseWrapMode(!0);e.setHighlightActiveLine(!0);e.getSession().setValue(t.val());e.getSession().setMode('ace/mode/'+i);e.getSession().on('change',function(s){t.val(e.getSession().getValue())});t.closest('form').submit(function(){t.val(e.getSession().getValue())})})});;$(document).on('orViewLoaded',function(t,e){$(t.target).find('table.sortable > tbody').sortable({update:function(a,t){$(t).addClass('loader');var o=[];$(t.item).closest('table.sortable').find('tbody > tr.data').each(function(){var t=$(this).data('id');o.push(t)});var d='./dispatcher.php',e={};e.action='folder';e.subaction='order';e.token=$('div.action-folder.method-order input[name=token]').attr('value');e.order=o.join(',');e.id=$('div#dialog').data('id');e.output='json';$.ajax({'type':'POST',url:d,data:e,success:function(e,a,o){$(t).removeClass('loader');doResponse(e,a,t)},error:function(t,e,a){alert(a)}})}});$(t.target).find('tr.headline > td > input.checkbox').click(function(){$(this).closest('table').find('tr.data > td > input.checkbox').attr('checked',Boolean($(this).attr('checked')))})});;$(document).on('orViewLoaded',function(e,n){var t=$(e.target).find('form'),o=$(e.target).find('div.filedropzone > div.input');o.on('dragenter',function(e){e.stopPropagation();e.preventDefault();$(this).css('border','1px dotted gray')});o.on('dragover',function(e){e.stopPropagation();e.preventDefault()});o.on('drop',function(e){$(this).css('border','1px dotted red');e.preventDefault();var n=e.originalEvent.dataTransfer.files;handleFileUpload(t,n)});$(e.target).find('input[type=file]').change(function(){var e=$(this).prop('files');handleFileUpload(t,e)})});function handleFileUpload(e,o){for(var a=0,r;r=o[a];a++){var n=new FormData();n.append('file',r);n.append('action','folder');n.append('subaction','createfile');n.append('output','json');n.append('token',$(e).find('input[name=token]').val());n.append('id',$(e).find('input[name=id]').val());var t=$('<div class="notice info"><div class="text loader"></div></div>');$('#noticebar').prepend(t);$(t).show();$.ajax({'type':'POST',url:'dispatcher.php',cache:!1,contentType:!1,processData:!1,data:n,success:function(n,o,a){$(t).remove();doResponse(n,o,e)},error:function(n,o,i){$(e).closest('div.content').removeClass('loader');$(t).remove();var r;try{var a=jQuery.parseJSON(n.responseText);r=a.error+'/'+a.description+': '+a.reason}catch(d){r=n.responseText};notify('error',r)}})}};;$(document).on('orViewLoaded',function(t,e){$(t.target).find('[data-qrcode]').each(function(){var t=$(this).attr('data-qrcode');$(this).removeAttr('data-qrcode');$(this).qrcode({render:'div',text:t,fill:'currentColor'})})});+
\ No newline at end of file