/*
This file contains the minimized javascript for the various jQuery plugins used by this template.
Each plugin is licensed according to the information contained in the individual copyright notice.
*/
/*!
* jQuery Cookie Plugin
* https://github.com/carhartl/jquery-cookie
*
* Copyright 2011, Klaus Hartl
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://www.opensource.org/licenses/mit-license.php
* http://www.opensource.org/licenses/GPL-2.0
*/
(function ($) {
$.cookie = function (key, value, options) {
if (arguments.length > 1 && (!/Object/.test(Object.prototype.toString.call(value)) || value === null || value === undefined)) {
options = $.extend({}, options); if (value === null || value === undefined) options.expires = -1; if (typeof options.expires === "number") { var days = options.expires, t = options.expires = new Date; t.setDate(t.getDate() + days) } value = String(value); return document.cookie = [encodeURIComponent(key), "=", options.raw ? value : encodeURIComponent(value), options.expires ? "; expires=" +
options.expires.toUTCString() : "", options.path ? "; path=" + options.path : "", options.domain ? "; domain=" + options.domain : "", options.secure ? "; secure" : ""].join("")
} options = value || {}; var decode = options.raw ? function (s) { return s } : decodeURIComponent; var pairs = document.cookie.split("; "); for (var i = 0, pair; pair = pairs[i] && pairs[i].split("="); i++) if (decode(pair[0]) === key) return decode(pair[1] || ""); return null
}
})(jQuery);
/* json2.js
2011-10-19
Public Domain.
NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
See http://www.JSON.org/js.html */
var JSON; if (!JSON) JSON = {};
(function () {
function f(n) { return n < 10 ? "0" + n : n } if (typeof Date.prototype.toJSON !== "function") { Date.prototype.toJSON = function (key) { return isFinite(this.valueOf()) ? this.getUTCFullYear() + "-" + f(this.getUTCMonth() + 1) + "-" + f(this.getUTCDate()) + "T" + f(this.getUTCHours()) + ":" + f(this.getUTCMinutes()) + ":" + f(this.getUTCSeconds()) + "Z" : null }; String.prototype.toJSON = Number.prototype.toJSON = Boolean.prototype.toJSON = function (key) { return this.valueOf() } } var cx = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, escapable =
/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, gap, indent, meta = { "\u0008": "\\b", "\t": "\\t", "\n": "\\n", "\u000c": "\\f", "\r": "\\r", '"': '\\"', "\\": "\\\\" }, rep; function quote(string) { escapable.lastIndex = 0; return escapable.test(string) ? '"' + string.replace(escapable, function (a) { var c = meta[a]; return typeof c === "string" ? c : "\\u" + ("0000" + a.charCodeAt(0).toString(16)).slice(-4) }) + '"' : '"' + string + '"' } function str(key, holder) {
var i, k, v, length,
mind = gap, partial, value = holder[key]; if (value && typeof value === "object" && typeof value.toJSON === "function") value = value.toJSON(key); if (typeof rep === "function") value = rep.call(holder, key, value); switch (typeof value) {
case "string": return quote(value); case "number": return isFinite(value) ? String(value) : "null"; case "boolean": case "null": return String(value); case "object": if (!value) return "null"; gap += indent; partial = []; if (Object.prototype.toString.apply(value) === "[object Array]") {
length = value.length; for (i = 0; i < length; i +=
1) partial[i] = str(i, value) || "null"; v = partial.length === 0 ? "[]" : gap ? "[\n" + gap + partial.join(",\n" + gap) + "\n" + mind + "]" : "[" + partial.join(",") + "]"; gap = mind; return v
} if (rep && typeof rep === "object") { length = rep.length; for (i = 0; i < length; i += 1) if (typeof rep[i] === "string") { k = rep[i]; v = str(k, value); if (v) partial.push(quote(k) + (gap ? ": " : ":") + v) } } else for (k in value) if (Object.prototype.hasOwnProperty.call(value, k)) { v = str(k, value); if (v) partial.push(quote(k) + (gap ? ": " : ":") + v) } v = partial.length === 0 ? "{}" : gap ? "{\n" + gap + partial.join(",\n" +
gap) + "\n" + mind + "}" : "{" + partial.join(",") + "}"; gap = mind; return v
}
} if (typeof JSON.stringify !== "function") JSON.stringify = function (value, replacer, space) { var i; gap = ""; indent = ""; if (typeof space === "number") for (i = 0; i < space; i += 1) indent += " "; else if (typeof space === "string") indent = space; rep = replacer; if (replacer && typeof replacer !== "function" && (typeof replacer !== "object" || typeof replacer.length !== "number")) throw new Error("JSON.stringify"); return str("", { "": value }) }; if (typeof JSON.parse !== "function") JSON.parse =
function (text, reviver) {
var j; function walk(holder, key) { var k, v, value = holder[key]; if (value && typeof value === "object") for (k in value) if (Object.prototype.hasOwnProperty.call(value, k)) { v = walk(value, k); if (v !== undefined) value[k] = v; else delete value[k] } return reviver.call(holder, key, value) } text = String(text); cx.lastIndex = 0; if (cx.test(text)) text = text.replace(cx, function (a) { return "\\u" + ("0000" + a.charCodeAt(0).toString(16)).slice(-4) }); if (/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,
"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, "]").replace(/(?:^|:|,)(?:\s*\[)+/g, ""))) { j = eval("(" + text + ")"); return typeof reviver === "function" ? walk({ "": j }, "") : j } throw new SyntaxError("JSON.parse");
}
})();
(function(n){typeof define=="function"&&define.amd?define(["jquery"],n):n(jQuery)})(function(n){"use strict";function y(){if(y.history=y.history||[],y.history.push(arguments),"object"==typeof console){var t=console[console.warn?"warn":"log"],n=Array.prototype.slice.call(arguments),i;typeof arguments[0]=="string"&&(n[0]="qTip2: "+n[0]);i=t.apply?t.apply(console,n):t(n)}}function b(i){var f;return!i||"object"!=typeof i?t:((i.metadata===r||"object"!=typeof i.metadata)&&(i.metadata={type:i.metadata}),"content"in i&&((i.content===r||"object"!=typeof i.content||i.content.jquery)&&(i.content={text:i.content}),f=i.content.text||t,n.isFunction(f)||(f||f.attr)&&!(f.length<1)&&("object"!=typeof f||f.jquery)||(i.content.text=t),"title"in i.content&&((i.content.title===r||"object"!=typeof i.content.title)&&(i.content.title={text:i.content.title}),f=i.content.title.text||t,n.isFunction(f)||(f||f.attr)&&!(f.length<1)&&("object"!=typeof f||f.jquery)||(i.content.title.text=t))),"position"in i&&(i.position===r||"object"!=typeof i.position)&&(i.position={my:i.position,at:i.position}),"show"in i&&(i.show===r||"object"!=typeof i.show)&&(i.show=i.show.jquery?{target:i.show}:{event:i.show}),"hide"in i&&(i.hide===r||"object"!=typeof i.hide)&&(i.hide=i.hide.jquery?{target:i.hide}:{event:i.hide}),"style"in i&&(i.style===r||"object"!=typeof i.style)&&(i.style={classes:i.style}),n.each(u,function(){this.sanitize&&this.sanitize(i)}),i)}function tt(a,y,tt,it){function pt(n){for(var r=0,u,t=y,i=n.split(".");t=t[i[r++]];)r",{"class":"ui-state-default ui-tooltip-close "+(y.style.widget?"":f+"-icon"),title:r,"aria-label":r}).prepend(n("",{"class":"ui-icon ui-icon-close",html:"×"}));ft.button.appendTo(ft.titlebar).attr("role","button").click(function(n){return ut.hasClass(h)||rt.hide(n),t});rt.redraw()}function at(){var t=ct+"-title";ft.titlebar&<();ft.titlebar=n("
",{"class":f+"-titlebar "+(y.style.widget?"ui-widget-header":"")}).append(ft.title=n("",{id:t,"class":f+"-title","aria-atomic":i})).insertBefore(ft.content).delegate(".ui-tooltip-close","mousedown keydown mouseup keyup mouseout",function(t){n(this).toggleClass("ui-state-active ui-state-focus",t.type.substr(-4)==="down")}).delegate(".ui-tooltip-close","mouseover mouseout",function(t){n(this).toggleClass("ui-state-hover",t.type==="mouseover")});y.content.title.button?bt():rt.rendered&&rt.redraw()}function ni(n){var i=ft.button,r=ft.title;if(!rt.rendered)return t;n?(r||at(),bt()):i.remove()}function vt(i,r){var u=ft.title;if(!rt.rendered||!i)return t;if(n.isFunction(i)&&(i=i.call(a,et.event,rt)),i!==t&&(i||i===""))i.jquery&&i.length>0?u.empty().append(i.css({display:"block"})):u.html(i);else return lt(t);rt.redraw();r!==t&&rt.rendered&&ut[0].offsetWidth>0&&rt.reposition(et.event)}function yt(i,r){function f(i){function e(u){u&&(delete f[u.src],clearTimeout(rt.timers.img[u.src]),n(u).unbind(ot));n.isEmptyObject(f)&&(rt.redraw(),r!==t&&rt.reposition(et.event),i())}var s,f={};if((s=u.find("img[src]:not([height]):not([width])")).length===0)return e();s.each(function(t,i){if(f[i.src]===o){var r=0,u=3;(function s(){if(i.height||i.width||r>u)return e(i);r+=1;rt.timers.img[i.src]=setTimeout(s,700)})();n(i).bind("error"+ot+" load"+ot,function(){e(this)});f[i.src]=i}})}var u=ft.content;return!rt.rendered||!i?t:(n.isFunction(i)&&(i=i.call(a,et.event,rt)||""),i.jquery&&i.length>0?u.empty().append(i.css({display:"block"})):u.html(i),rt.rendered<0?ut.queue("fx",f):(st=0,f(n.noop)),rt)}function kt(){function o(n){if(ut.hasClass(h))return t;clearTimeout(rt.timers.show);clearTimeout(rt.timers.hide);var r=function(){rt.toggle(i,n)};y.show.delay>0?rt.timers.show=setTimeout(r,y.show.delay):r()}function c(i){if(ut.hasClass(h)||ht||st)return t;var f=n(i.relatedTarget||i.target),e=f.closest(v)[0]===ut[0],o=f[0]===r.show[0];if(clearTimeout(rt.timers.show),clearTimeout(rt.timers.hide),u.target==="mouse"&&e||y.hide.fixed&&/mouse(out|leave|move)/.test(i.type)&&(e||o)){try{i.preventDefault();i.stopImmediatePropagation()}catch(s){}return}y.hide.delay>0?rt.timers.hide=setTimeout(function(){rt.hide(i)},y.hide.delay):rt.hide(i)}function l(n){if(ut.hasClass(h))return t;clearTimeout(rt.timers.inactive);rt.timers.inactive=setTimeout(function(){rt.hide(n)},y.hide.inactive)}function p(n){rt.rendered&&ut[0].offsetWidth>0&&rt.reposition(n)}var u=y.position,r={show:y.show.target,hide:y.hide.target,viewport:n(u.viewport),document:n(document),body:n(document.body),window:n(window)},f={show:n.trim(""+y.show.event).split(" "),hide:n.trim(""+y.hide.event).split(" ")},w=n.browser.msie&&parseInt(n.browser.version,10)===6;ut.bind("mouseenter"+ot+" mouseleave"+ot,function(n){var t=n.type==="mouseenter";t&&rt.focus(n);ut.toggleClass(nt,t)});y.hide.fixed&&(r.hide=r.hide.add(ut),ut.bind("mouseover"+ot,function(){ut.hasClass(h)||clearTimeout(rt.timers.hide)}));/mouse(out|leave)/i.test(y.hide.event)?y.hide.leave==="window"&&r.window.bind("mouseout"+ot+" blur"+ot,function(n){/select|option/.test(n.target)&&!n.relatedTarget&&rt.hide(n)}):/mouse(over|enter)/i.test(y.show.event)&&r.hide.bind("mouseleave"+ot,function(){clearTimeout(rt.timers.show)});(""+y.hide.event).indexOf("unfocus")>-1&&u.container.closest("html").bind("mousedown"+ot,function(t){var i=n(t.target),u=rt.rendered&&!ut.hasClass(h)&&ut[0].offsetWidth>0,r=i.parents(v).filter(ut[0]).length>0;i[0]===a[0]||i[0]===ut[0]||r||a.has(i[0]).length||i.attr("disabled")||rt.hide(t)});"number"==typeof y.hide.inactive&&(r.show.bind("qtip-"+tt+"-inactive",l),n.each(e.inactiveEvents,function(n,t){r.hide.add(ft.tooltip).bind(t+ot+"-inactive",l)}));n.each(f.hide,function(t,i){var u=n.inArray(i,f.show),e=n(r.hide);u>-1&&e.add(r.show).length===e.length||i==="unfocus"?(r.show.bind(i+ot,function(n){ut[0].offsetWidth>0?c(n):o(n)}),delete f.show[u]):r.hide.bind(i+ot,c)});n.each(f.show,function(n,t){r.show.bind(t+ot,o)});"number"==typeof y.hide.distance&&r.show.add(ut).bind("mousemove"+ot,function(n){var t=et.origin||{},i=y.hide.distance,r=Math.abs;(r(n.pageX-t.pageX)>=i||r(n.pageY-t.pageY)>=i)&&rt.hide(n)});u.target==="mouse"&&(r.show.bind("mousemove"+ot,function(n){s={pageX:n.pageX,pageY:n.pageY,type:"mousemove"}}),u.adjust.mouse&&(y.hide.event&&(ut.bind("mouseleave"+ot,function(n){(n.relatedTarget||n.target)!==r.show[0]&&rt.hide(n)}),ft.target.bind("mouseenter"+ot+" mouseleave"+ot,function(n){et.onTarget=n.type==="mouseenter"})),r.document.bind("mousemove"+ot,function(n){rt.rendered&&et.onTarget&&!ut.hasClass(h)&&ut[0].offsetWidth>0&&rt.reposition(n||s)})));(u.adjust.resize||r.viewport.length)&&(n.event.special.resize?r.viewport:r.window).bind("resize"+ot,p);(r.viewport.length||w&&ut.css("position")==="fixed")&&r.viewport.bind("scroll"+ot,p)}function dt(){var t=[y.show.target[0],y.hide.target[0],rt.rendered&&ft.tooltip[0],y.position.container[0],y.position.viewport[0],window,document];rt.rendered?n([]).pushStack(n.grep(t,function(n){return typeof n=="object"})).unbind(ot):y.show.target.unbind(ot+"-create")}var rt=this,gt=document.body,ct=f+"-"+tt,ht=0,st=0,ut=n(),ot=".qtip-"+tt,ft,et;rt.id=tt;rt.rendered=t;rt.elements=ft={target:a};rt.timers={img:{}};rt.options=y;rt.checks={};rt.plugins={};rt.cache=et={event:{},target:n(),disabled:t,attr:it,onTarget:t};rt.checks.builtin={"^id$":function(r,u,o){var h=o===i?e.nextid:o,s=f+"-"+h;h!==t&&h.length>0&&!n("#"+s).length&&(ut[0].id=s,ft.content[0].id=s+"-content",ft.title[0].id=s+"-title")},"^content.text$":function(n,t,i){yt(i)},"^content.title.text$":function(n,t,i){if(!i)return lt();!ft.title&&i&&at();vt(i)},"^content.title.button$":function(n,t,i){ni(i)},"^position.(my|at)$":function(n,t,i){"string"==typeof i&&(n[t]=new u.Corner(i))},"^position.container$":function(n,t,i){rt.rendered&&ut.appendTo(i)},"^show.ready$":function(){rt.rendered?rt.toggle(i):rt.render(1)},"^style.classes$":function(n,t,i){ut.attr("class",f+" qtip ui-helper-reset "+i)},"^style.widget|content.title":wt,"^events.(render|show|move|hide|focus|blur)$":function(t,i,r){ut[(n.isFunction(r)?"":"un")+"bind"]("tooltip"+i,r)},"^(show|hide|position).(event|target|fixed|inactive|leave|distance|viewport|adjust)":function(){var n=y.position;ut.attr("tracking",n.target==="mouse"&&n.adjust.mouse);dt();kt()}};n.extend(rt,{render:function(r){if(rt.rendered)return rt;var o=y.content.text,e=y.content.title.text,s=y.position,c=n.Event("tooltiprender");return n.attr(a[0],"aria-describedby",ct),ut=ft.tooltip=n("",{id:ct,"class":f+" qtip ui-helper-reset "+g+" "+y.style.classes+" "+f+"-pos-"+y.position.my.abbrev(),width:y.style.width||"",height:y.style.height||"",tracking:s.target==="mouse"&&s.adjust.mouse,role:"alert","aria-live":"polite","aria-atomic":t,"aria-describedby":ct+"-content","aria-hidden":i}).toggleClass(h,et.disabled).data("qtip",rt).appendTo(y.position.container).append(ft.content=n("",{"class":f+"-content",id:ct+"-content","aria-atomic":i})),rt.rendered=-1,st=1,ht=1,e&&(at(),n.isFunction(e)||vt(e,t)),n.isFunction(o)||yt(o,t),rt.rendered=i,wt(),n.each(y.events,function(t,i){n.isFunction(i)&&ut.bind(t==="toggle"?"tooltipshow tooltiphide":"tooltip"+t,i)}),n.each(u,function(){this.initialize==="render"&&this(rt)}),kt(),ut.queue("fx",function(n){c.originalEvent=et.event;ut.trigger(c,[rt]);st=0;ht=0;rt.redraw();(y.show.ready||r)&&rt.toggle(i,et.event,t);n()}),rt},get:function(n){var t,i;switch(n.toLowerCase()){case"dimensions":t={height:ut.outerHeight(),width:ut.outerWidth()};break;case"offset":t=u.offset(ut,y.position.container);break;default:i=pt(n.toLowerCase());t=i[0][i[1]];t=t.precedance?t.string():t}return t},set:function(u,f){function a(n,t){var i,r,u;for(i in s)for(r in s[i])(u=new RegExp(r,"i").exec(n))&&(t.push(u),s[i][r].apply(rt,t))}var c=/^position\.(my|at|adjust|target|container)|style|content|show\.ready/i,l=/^content\.(title|attr)|style/i,e=t,o=t,s=rt.checks,h;return"string"==typeof u?(h=u,u={},u[h]=f):u=n.extend(i,{},u),n.each(u,function(t,i){var r=pt(t.toLowerCase()),f;f=r[0][r[1]];r[0][r[1]]="object"==typeof i&&i.nodeType?n(i):i;u[t]=[r[0],r[1],i,f];e=c.test(t)||e;o=l.test(t)||o}),b(y),ht=st=1,n.each(u,a),ht=st=0,rt.rendered&&ut[0].offsetWidth>0&&(e&&rt.reposition(y.position.target==="mouse"?r:et.event),o&&rt.redraw()),rt},toggle:function(u,f){function l(){u?(n.browser.msie&&ut[0].style.removeAttribute("filter"),ut.css("overflow",""),"string"==typeof e.autofocus&&n(e.autofocus,ut).focus(),e.target.trigger("qtip-"+tt+"-inactive")):ut.css({display:"",visibility:"",opacity:"",left:"",top:""});o=n.Event("tooltip"+(u?"visible":"hidden"));o.originalEvent=f?et.event:r;ut.trigger(o,[rt])}if(!rt.rendered)return u?rt.render(1):rt;var c=u?"show":"hide",e=y[c],d=y[u?"hide":"show"],a=y.position,h=y.content,p=ut[0].offsetWidth>0,b=u||e.target.length===1,k=!f||e.target.length<2||et.target[0]===f.target,o;if((typeof u).search("boolean|number")&&(u=!p),!ut.is(":animated")&&p===u&&k)return rt;if(f){if(/over|enter/.test(f.type)&&/out|leave/.test(et.event.type)&&y.show.target.add(f.target).length===y.show.target.length&&ut.has(f.relatedTarget).length)return rt;et.event=n.extend({},f)}return(o=n.Event("tooltip"+c),o.originalEvent=f?et.event:r,ut.trigger(o,[rt,90]),o.isDefaultPrevented())?rt:(n.attr(ut[0],"aria-hidden",!!!u),u?(et.origin=n.extend({},s),rt.focus(f),n.isFunction(h.text)&&yt(h.text,t),n.isFunction(h.title.text)&&vt(h.title.text,t),!w&&a.target==="mouse"&&a.adjust.mouse&&(n(document).bind("mousemove.qtip",function(n){s={pageX:n.pageX,pageY:n.pageY,type:"mousemove"}}),w=i),rt.reposition(f,arguments[2]),(o.solo=!!e.solo)&&n(v,e.solo).not(ut).qtip("hide",o)):(clearTimeout(rt.timers.show),delete et.origin,w&&!n(v+'[tracking="true"]:visible',e.solo).not(ut).length&&(n(document).unbind("mousemove.qtip"),w=t),rt.blur(f)),e.effect===t||b===t?(ut[c](),l.call(ut)):n.isFunction(e.effect)?(ut.stop(1,1),e.effect.call(ut,rt),ut.queue("fx",function(n){l();n()})):ut.fadeTo(90,u?1:0,l),u&&e.target.trigger("qtip-"+tt+"-inactive"),rt)},show:function(n){return rt.toggle(i,n)},hide:function(n){return rt.toggle(t,n)},focus:function(t){if(!rt.rendered)return rt;var r=n(v),f=parseInt(ut[0].style.zIndex,10),u=e.zindex+r.length,o=n.extend({},t),i;return ut.hasClass(p)||(i=n.Event("tooltipfocus"),i.originalEvent=o,ut.trigger(i,[rt,u]),i.isDefaultPrevented()||(f!==u&&(r.each(function(){this.style.zIndex>f&&(this.style.zIndex=this.style.zIndex-1)}),r.filter("."+p).qtip("blur",o)),ut.addClass(p)[0].style.zIndex=u)),rt},blur:function(t){var r=n.extend({},t),i;return ut.removeClass(p),i=n.Event("tooltipblur"),i.originalEvent=r,ut.trigger(i,[rt]),rt},reposition:function(i,r){if(!rt.rendered||ht)return rt;ht=1;var o=y.position.target,b=y.position,c=b.my,a=b.at,k=b.adjust,tt=k.method.split(" "),g=ut.outerWidth(),nt=ut.outerHeight(),p=0,w=0,ot=n.Event("tooltipmove"),st=ut.css("position")==="fixed",h=b.viewport,e={left:0,top:0},v=b.container,it=t,l=rt.plugins.tip,lt=ut[0].offsetWidth>0,d={horizontal:tt[0],vertical:tt[1]=tt[1]||tt[0],enabled:h.jquery&&o[0]!==window&&o[0]!==gt&&k.method!=="none",left:function(n){var o=d.horizontal==="shift",f=-v.offset.left+h.offset.left+h.scrollLeft,s=c.x==="left"?g:c.x==="right"?-g:-g/2,b=a.x==="left"?p:a.x==="right"?-p:-p/2,y=l&&l.size?l.size.width||0:0,i=l&&l.corner&&l.corner.precedance==="x"&&!o?y:0,u=f-n+i,r=n+g-h.width-f+i,t=s-(c.precedance==="x"||c.x===c.y?b:0)-(a.x==="center"?p/2:0),w=c.x==="center";return o?(i=l&&l.corner&&l.corner.precedance==="y"?y:0,t=(c.x==="left"?1:-1)*s-i,e.left+=u>0?u:r>0?-r:0,e.left=Math.max(-v.offset.left+h.offset.left+(i&&l.corner.x==="center"?l.offset:0),n-t,Math.min(Math.max(-v.offset.left+h.offset.left+h.width,n+t),e.left))):(u>0&&(c.x!=="left"||r>0)?e.left-=t:r>0&&(c.x!=="right"||u>0)&&(e.left-=w?-t:t),e.left!==n&&w&&(e.left-=k.x),e.leftr&&(e.left=n)),e.left-n},top:function(n){var f=d.vertical==="shift",o=-v.offset.top+h.offset.top+h.scrollTop,s=c.y==="top"?nt:c.y==="bottom"?-nt:-nt/2,b=a.y==="top"?w:a.y==="bottom"?-w:-w/2,y=l&&l.size?l.size.height||0:0,i=l&&l.corner&&l.corner.precedance==="y"&&!f?y:0,u=o-n+i,r=n+nt-h.height-o+i,t=s-(c.precedance==="y"||c.x===c.y?b:0)-(a.y==="center"?w/2:0),p=c.y==="center";return f?(i=l&&l.corner&&l.corner.precedance==="x"?y:0,t=(c.y==="top"?1:-1)*s-i,e.top+=u>0?u:r>0?-r:0,e.top=Math.max(-v.offset.top+h.offset.top+(i&&l.corner.x==="center"?l.offset:0),n-t,Math.min(Math.max(-v.offset.top+h.offset.top+h.height,n+t),e.top))):(u>0&&(c.y!=="top"||r>0)?e.top-=t:r>0&&(c.y!=="bottom"||u>0)&&(e.top-=p?-t:t),e.top!==n&&p&&(e.top-=k.y),e.top<0&&-e.top>r&&(e.top=n)),e.top-n}},ct;if(n.isArray(o)&&o.length===2)a={x:"left",y:"top"},e={left:o[0],top:o[1]};else if(o==="mouse"&&(i&&i.pageX||et.event.pageX))a={x:"left",y:"top"},i=(i&&(i.type==="resize"||i.type==="scroll")?et.event:i&&i.pageX&&i.type==="mousemove"?i:s&&s.pageX&&(k.mouse||!i||!i.pageX)?{pageX:s.pageX,pageY:s.pageY}:!k.mouse&&et.origin&&et.origin.pageX&&y.show.distance?et.origin:i)||i||et.event||s||{},e={top:i.pageY,left:i.pageX};else{if(o=o==="event"?i&&i.target&&i.type!=="scroll"&&i.type!=="resize"?et.target=n(i.target):et.target:et.target=n(o.jquery?o:ft.target),o=n(o).eq(0),o.length===0)return rt;o[0]===document||o[0]===window?(p=u.iOS?window.innerWidth:o.width(),w=u.iOS?window.innerHeight:o.height(),o[0]===window&&(e={top:(h||o).scrollTop(),left:(h||o).scrollLeft()})):o.is("area")&&u.imagemap?e=u.imagemap(o,a,d.enabled?tt:t):o[0].namespaceURI==="http://www.w3.org/2000/svg"&&u.svg?e=u.svg(o,a):(p=o.outerWidth(),w=o.outerHeight(),e=u.offset(o,v));e.offset&&(p=e.width,w=e.height,it=e.flipoffset,e=e.offset);(u.iOS<4.1&&u.iOS>3.1||u.iOS==4.3||!u.iOS&&st)&&(ct=n(window),e.left-=ct.scrollLeft(),e.top-=ct.scrollTop());e.left+=a.x==="right"?p:a.x==="center"?p/2:0;e.top+=a.y==="bottom"?w:a.y==="center"?w/2:0}return(e.left+=k.x+(c.x==="right"?-g:c.x==="center"?-g/2:0),e.top+=k.y+(c.y==="bottom"?-nt:c.y==="center"?-nt/2:0),d.enabled?(h={elem:h,height:h[(h[0]===window?"h":"outerH")+"eight"](),width:h[(h[0]===window?"w":"outerW")+"idth"](),scrollLeft:st?0:h.scrollLeft(),scrollTop:st?0:h.scrollTop(),offset:h.offset()||{left:0,top:0}},v={elem:v,scrollLeft:v.scrollLeft(),scrollTop:v.scrollTop(),offset:v.offset()||{left:0,top:0}},e.adjusted={left:d.horizontal!=="none"?d.left(e.left):0,top:d.vertical!=="none"?d.top(e.top):0},e.adjusted.left+e.adjusted.top&&ut.attr("class",ut[0].className.replace(/ui-tooltip-pos-\w+/i,f+"-pos-"+c.abbrev())),it&&e.adjusted.left&&(e.left+=it.left),it&&e.adjusted.top&&(e.top+=it.top)):e.adjusted={left:0,top:0},ot.originalEvent=n.extend({},i),ut.trigger(ot,[rt,e,h.elem||h]),ot.isDefaultPrevented())?rt:(delete e.adjusted,r===t||!lt||isNaN(e.left)||isNaN(e.top)||o==="mouse"||!n.isFunction(b.effect)?ut.css(e):n.isFunction(b.effect)&&(b.effect.call(ut,rt,n.extend({},e)),ut.queue(function(t){n(this).css({opacity:"",height:""});n.browser.msie&&this.style.removeAttribute("filter");t()})),ht=0,rt)},redraw:function(){if(rt.rendered<1||st)return rt;var u=y.position.container,r,i,n,t;return st=1,y.style.height&&ut.css("height",y.style.height),y.style.width?ut.css("width",y.style.width):(ut.css("width","").addClass(l),i=ut.width()+1,n=ut.css("max-width")||"",t=ut.css("min-width")||"",r=(n+t).indexOf("%")>-1?u.width()/100:0,n=(n.indexOf("%")>-1?r:1)*parseInt(n,10)||i,t=(t.indexOf("%")>-1?r:1)*parseInt(t,10)||0,i=n+t?Math.min(Math.max(i,t),n):i,ut.css("width",Math.round(i)).removeClass(l)),st=0,rt},disable:function(t){return"boolean"!=typeof t&&(t=!(ut.hasClass(h)||et.disabled)),rt.rendered?(ut.toggleClass(h,t),n.attr(ut[0],"aria-disabled",t)):et.disabled=!!t,rt},enable:function(){return rt.disable(t)},destroy:function(){var t=a[0],i=n.attr(t,c),r=a.data("qtip");return rt.rendered&&(ut.stop(1,0).remove(),n.each(rt.plugins,function(){this.destroy&&this.destroy()})),clearTimeout(rt.timers.show),clearTimeout(rt.timers.hide),dt(),r&&rt!==r||(n.removeData(t,"qtip"),y.suppress&&i&&(n.attr(t,"title",i),a.removeAttr(c)),a.removeAttr("aria-describedby")),a.unbind(".qtip-"+tt),delete k[rt.id],a}})}function it(f,o){var v,h,p,s,d,l=n(this),g=n(document.body),w=this===document?g:l,k=l.metadata?l.metadata(o.metadata):r,nt=o.metadata.type==="html5"&&k?k[o.metadata.name]:r,a=l.data(o.metadata.name||"qtipopts");try{a=typeof a=="string"?new Function("return "+a)():a}catch(it){y("Unable to parse HTML5 attribute data: "+a)}if(s=n.extend(i,{},e.defaults,o,typeof a=="object"?b(a):r,b(nt||k)),h=s.position,s.id=f,"boolean"==typeof s.content.text)if(p=l.attr(s.content.attr),s.content.attr!==t&&p)s.content.text=p;else return y("Unable to locate content for tooltip! Aborting render of tooltip on element: ",l),t;if(h.container.length||(h.container=g),h.target===t&&(h.target=w),s.show.target===t&&(s.show.target=w),s.show.solo===i&&(s.show.solo=h.container.closest("body")),s.hide.target===t&&(s.hide.target=w),s.position.viewport===i&&(s.position.viewport=h.container),h.container=h.container.eq(0),h.at=new u.Corner(h.at),h.my=new u.Corner(h.my),n.data(this,"qtip"))if(s.overwrite)l.qtip("destroy");else if(s.overwrite===t)return t;return s.suppress&&(d=n.attr(this,"title"))&&n(this).removeAttr("title").attr(c,d),v=new tt(l,s,f,!!p),n.data(this,"qtip",v),l.bind("remove.qtip-"+f+" removeqtip.qtip-"+f,function(){v.destroy()}),v}function rt(n,t,i){var u=Math.ceil(t/2),f=Math.ceil(i/2),r={bottomright:[[0,0],[t,i],[t,0]],bottomleft:[[0,0],[t,0],[0,i]],topright:[[0,i],[t,0],[t,i]],topleft:[[0,0],[0,i],[t,i]],topcenter:[[0,i],[u,0],[t,i]],bottomcenter:[[0,0],[t,0],[u,i]],rightcenter:[[0,0],[t,f],[0,i]],leftcenter:[[t,0],[t,i],[0,f]]};return r.lefttop=r.bottomright,r.righttop=r.bottomleft,r.leftbottom=r.topright,r.rightbottom=r.topleft,r[n.string()]}function ut(f){function g(n,r,u){if(s.tip){var c=e.corner.clone(),l=u.adjusted,d=f.options.position.adjust.method.split(" "),b=d[0],k=d[1]||d[0],v={left:t,top:t,x:0,y:0},h,w={},y;e.corner.fixed!==i&&(b==="shift"&&c.precedance==="x"&&l.left&&c.y!=="center"?c.precedance=c.precedance==="x"?"y":"x":b==="flip"&&l.left&&(c.x=c.x==="center"?l.left>0?"left":"right":c.x==="left"?"right":"left"),k==="shift"&&c.precedance==="y"&&l.top&&c.x!=="center"?c.precedance=c.precedance==="y"?"x":"y":k==="flip"&&l.top&&(c.y=c.y==="center"?l.top>0?"top":"bottom":c.y==="top"?"bottom":"top"),c.string()!==p.corner.string()&&(p.top!==l.top||p.left!==l.left)&&e.update(c,t));h=e.position(c,l);h.right!==o&&(h.left=-h.right);h.bottom!==o&&(h.top=-h.bottom);h.user=Math.max(0,a.offset);(v.left=b==="shift"&&!!l.left)&&(c.x==="center"?w["margin-left"]=v.x=h["margin-left"]-l.left:(y=h.right!==o?[l.left,-h.left]:[-l.left,h.left],(v.x=Math.max(y[0],y[1]))>y[0]&&(u.left-=l.left,v.left=t),w[h.right!==o?"right":"left"]=v.x));(v.top=k==="shift"&&!!l.top)&&(c.y==="center"?w["margin-top"]=v.y=h["margin-top"]-l.top:(y=h.bottom!==o?[l.top,-h.top]:[-l.top,h.top],(v.y=Math.max(y[0],y[1]))>y[0]&&(u.top-=l.top,v.top=t),w[h.bottom!==o?"bottom":"top"]=v.y));s.tip.css(w).toggle(!(v.x&&v.y||c.x==="center"&&v.y||c.y==="center"&&v.x));u.left-=h.left.charAt?h.user:b!=="shift"||v.top||!v.left&&!v.top?h.left:0;u.top-=h.top.charAt?h.user:k!=="shift"||v.left||!v.left&&!v.top?h.top:0;p.left=l.left;p.top=l.top;p.corner=c.clone()}}function k(n,t,i){t=t?t:n[n.precedance];var f=v.hasClass(l),e=s.titlebar&&n.y==="top",o=e?s.titlebar:s.content,u="border-"+t+"-width",r;return v.addClass(l),r=parseInt(o.css(u),10),r=(i?r||parseInt(v.css(u),10):r)||0,v.toggleClass(l,f),r}function nt(t){var f=s.titlebar&&t.y==="top",e=f?s.titlebar:s.content,i=n.browser.mozilla,o=i?"-moz-":n.browser.webkit?"-webkit-":"",r=t.y+(i?"":"-")+t.x,u=o+(i?"border-radius-"+r:"border-"+r+"-radius");return parseInt(e.css(u),10)||parseInt(v.css(u),10)||0}function d(n){var r=n.precedance==="y",s=y[r?"width":"height"],f=y[r?"height":"width"],c=n.string().indexOf("center")>-1,l=s*(c?.5:1),i=Math.pow,a=Math.round,v,e,o,u=Math.sqrt(i(l,2)+i(f,2)),t=[h/l*u,h/f*u];return t[2]=Math.sqrt(i(t[0],2)-i(h,2)),t[3]=Math.sqrt(i(t[1],2)-i(h,2)),v=u+t[2]+t[3]+(c?0:t[0]),e=v/u,o=[a(e*f),a(e*s)],{height:o[r?0:1],width:o[r?1:0]}}var e=this,a=f.options.style.tip,s=f.elements,v=s.tooltip,p={top:0,left:0},y={width:a.width,height:a.height},c={},h=a.border||0,w=".qtip-tip",b=!!(n("")[0]||{}).getContext&&!(window.external&&window.external.IsInnovasysDesigner);e.corner=r;e.mimic=r;e.border=h;e.offset=a.offset;e.size=y;f.checks.tip={"^position.my|style.tip.(corner|mimic|border)$":function(){e.init()||e.destroy();f.reposition()},"^style.tip.(height|width)$":function(){y={width:a.width,height:a.height};e.create();e.update();f.reposition()},"^content.title.text|style.(classes|widget)$":function(){s.tip&&e.update()}};n.extend(e,{init:function(){var t=e.detectCorner()&&(b||n.browser.msie);return t&&(e.create(),e.update(),v.unbind(w).bind("tooltipmove"+w,g)),t},detectCorner:function(){var n=a.corner,r=f.options.position,s=r.at,o=r.my.string?r.my.string():r.my;return n===t||o===t&&s===t?t:(n===i?e.corner=new u.Corner(o):n.string||(e.corner=new u.Corner(n),e.corner.fixed=i),p.corner=new u.Corner(e.corner.string()),e.corner.string()!=="centercenter")},detectColours:function(t){var u,r,i=s.tip.css("cssText",""),o=t||e.corner,w=o[o.precedance],b="border-"+w+"-color",nt="border"+w.charAt(0)+w.substr(1)+"Color",h=/rgba?\(0, 0, 0(, 0)?\)|transparent|#123456/i,p="background-color",k="transparent",d=" !important",tt=n(document.body).css("color"),rt=f.elements.content.css("color"),it=s.titlebar&&(o.y==="top"||o.y==="center"&&i.position().top+y.height/2+a.offset",{"class":"ui-tooltip-tip"}).css({width:i,height:r}).prependTo(v);b?n("").appendTo(s.tip)[0].getContext("2d").save():(t='<\/vml:shape>',s.tip.html(t+t),n("*",s.tip).bind("click mousedown",function(n){n.stopPropagation()}))},update:function(f,o){var ot=s.tip,ft=ot.children(),tt=y.width,it=y.height,l=a.mimic,ut=Math.round,et,v,w,nt,g;f||(f=p.corner||e.corner);l===t?l=f:(l=new u.Corner(l),l.precedance=f.precedance,l.x==="inherit"?l.x=f.x:l.y==="inherit"?l.y=f.y:l.x===l.y&&(l[f.precedance]=f[f.precedance]));et=l.precedance;e.detectColours(f);c.border!=="transparent"&&c.border!=="#123456"?(h=k(f,r,i),a.border===0&&h>0&&(c.fill=c.border),e.border=h=a.border!==i?a.border:h):e.border=h=0;w=rt(l,tt,it);e.size=g=d(f);ot.css(g);nt=f.precedance==="y"?[ut(l.x==="left"?h:l.x==="right"?g.width-tt-h:(g.width-tt)/2),ut(l.y==="top"?g.height-it:0)]:[ut(l.x==="left"?g.width-tt:0),ut(l.y==="top"?h:l.y==="bottom"?g.height-it-h:(g.height-it)/2)];b?(ft.attr(g),v=ft[0].getContext("2d"),v.restore(),v.save(),v.clearRect(0,0,3e3,3e3),v.translate(nt[0],nt[1]),v.beginPath(),v.moveTo(w[0][0],w[0][1]),v.lineTo(w[1][0],w[1][1]),v.lineTo(w[2][0],w[2][1]),v.closePath(),v.fillStyle=c.fill,v.strokeStyle=c.border,v.lineWidth=h*2,v.lineJoin="miter",v.miterLimit=100,h&&v.stroke(),v.fill()):(w="m"+w[0][0]+","+w[0][1]+" l"+w[1][0]+","+w[1][1]+" "+w[2][0]+","+w[2][1]+" xe",nt[2]=h&&/^(r|b)/i.test(f.string())?parseFloat(n.browser.version,10)===8?2:1:0,ft.css({antialias:""+(l.string().indexOf("center")>-1),left:nt[0]-nt[2]*Number(et==="x"),top:nt[1]-nt[2]*Number(et==="y"),width:tt+h,height:it+h}).each(function(t){var i=n(this);i[i.prop?"prop":"attr"]({coordsize:tt+h+" "+(it+h),path:w,fillcolor:c.fill,filled:!!t,stroked:!!!t}).css({display:h||t?"block":"none"});t||i.html()!==""||i.html('')}));o!==t&&e.position(f)},position:function(r){var l=s.tip,u={},v=Math.max(0,a.offset),f,o,c;return a.corner===t||!l?t:(r=r||e.corner,f=r.precedance,o=d(r),c=[r.x,r.y],f==="x"&&c.reverse(),n.each(c,function(n,t){var e,s;t==="center"?(e=f==="y"?"left":"top",u[e]="50%",u["margin-"+e]=-Math.round(o[f==="y"?"width":"height"]/2)+v):(e=k(r,t,i),s=nt(r),u[t]=n?h?k(r,t):0:v+(s>e?s:0))}),u[r[f]]-=o[f==="x"?"width":"height"],l.css({top:"",bottom:"",left:"",right:"",margin:""}).css(u),u)},destroy:function(){s.tip&&s.tip.remove();v.unbind(w)}});e.init()}var i=!0,t=!1,r=null,o,e,u,s,k={},f="ui-tooltip",d="ui-widget",h="ui-state-disabled",v="div.qtip."+f,g=f+"-default",p=f+"-focus",nt=f+"-hover",l=f+"-fluid",a="_replacedByqTip",c="oldtitle",w;e=n.fn.qtip=function(u,f,s){var h=(""+u).toLowerCase(),a=r,v=n.makeArray(arguments).slice(1),c=v[v.length-1],l=this[0]?n.data(this[0],"qtip"):r;return!arguments.length&&l||h==="api"?l:"string"==typeof u?(this.each(function(){var r=n.data(this,"qtip");if(!r)return i;if(c&&c.timeStamp&&(r.cache.event=c),(h==="option"||h==="options")&&f)if(n.isPlainObject(f)||s!==o)r.set(f,s);else return a=r.get(f),t;else r[h]&&r[h].apply(r[h],v)}),a!==r?a:this):"object"==typeof u||!arguments.length?(l=b(n.extend(i,{},u)),e.bind.call(this,l,c)):void 0};e.bind=function(r,f){return this.each(function(h){function w(i){function r(){c.render(typeof i=="object"||l.show.ready);p.show.add(p.hide).unbind(y)}if(c.cache.disabled)return t;c.cache.event=n.extend({},i);c.cache.target=i?n(i.target):[o];l.show.delay>0?(clearTimeout(c.timers.show),c.timers.show=setTimeout(r,l.show.delay),v.show!==v.hide&&p.hide.bind(v.hide,function(){clearTimeout(c.timers.show)})):r()}var l,p,v,y,c,a;if(a=n.isArray(r.id)?r.id[h]:r.id,a=!a||a===t||a.length<1||k[a]?e.nextid++:k[a]=a,y=".qtip-"+a+"-create",c=it.call(this,a,r),c===t)return i;l=c.options;n.each(u,function(){this.initialize==="initialize"&&this(c)});p={show:l.show.target,hide:l.hide.target};v={show:n.trim(""+l.show.event).replace(/ /g,y+" ")+y,hide:n.trim(""+l.hide.event).replace(/ /g,y+" ")+y};/mouse(over|enter)/i.test(v.show)&&!/mouse(out|leave)/i.test(v.hide)&&(v.hide+=" mouseleave"+y);p.show.bind("mousemove"+y,function(n){s={pageX:n.pageX,pageY:n.pageY,type:"mousemove"};c.cache.onTarget=i});p.show.bind(v.show,w);(l.show.ready||l.prerender)&&w(f)})};u=e.plugins={Corner:function(n){n=(""+n).replace(/([A-Z])/," $1").replace(/middle/gi,"center").toLowerCase();this.x=(n.match(/left|right/i)||n.match(/center/)||["inherit"])[0].toLowerCase();this.y=(n.match(/top|bottom|center/i)||["inherit"])[0].toLowerCase();var t=n.charAt(0);this.precedance=t==="t"||t==="b"?"y":"x";this.string=function(){return this.precedance==="y"?this.y+this.x:this.x+this.y};this.abbrev=function(){var n=this.x.substr(0,1),t=this.y.substr(0,1);return n===t?n:n==="c"||n!=="c"&&t!=="c"?t+n:n+t};this.clone=function(){return{x:this.x,y:this.y,precedance:this.precedance,string:this.string,abbrev:this.abbrev,clone:this.clone}}},offset:function(t,i){function h(n,t){u.left+=t*n.scrollLeft();u.top+=t*n.scrollTop()}var u=t.offset(),s=t.closest("body")[0],r=i,f,e,o;if(r){do r.css("position")!=="static"&&(e=r.position(),u.left-=e.left+(parseInt(r.css("borderLeftWidth"),10)||0)+(parseInt(r.css("marginLeft"),10)||0),u.top-=e.top+(parseInt(r.css("borderTopWidth"),10)||0)+(parseInt(r.css("marginTop"),10)||0),f||(o=r.css("overflow"))==="hidden"||o==="visible"||(f=r));while((r=n(r[0].offsetParent)).length);f&&f[0]!==s&&h(f,1)}return u},iOS:parseFloat((""+(/CPU.*OS ([0-9_]{1,3})|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||[0,""])[1]).replace("undefined","3_2").replace("_","."))||t,fn:{attr:function(t,i){if(this.length){var u=this[0],f="title",r=n.data(u,"qtip");if(t===f&&r&&"object"==typeof r&&r.options.suppress)return arguments.length<2?n.attr(u,c):(r&&r.options.content.attr===f&&r.cache.attr&&r.set("content.text",i),this.attr(c,i))}return n.fn["attr"+a].apply(this,arguments)},clone:function(t){var r=n([]),i=n.fn["clone"+a].apply(this,arguments);return t||i.filter("["+c+"]").attr("title",function(){return n.attr(this,c)}).removeAttr(c),i}}};n.each(u.fn,function(t,r){if(!r||n.fn[t+a])return i;var u=n.fn[t+a]=n.fn[t];n.fn[t]=function(){return r.apply(this,arguments)||u.apply(this,arguments)}});n.ui||(n["cleanData"+a]=n.cleanData,n.cleanData=function(t){for(var i=0,r;(r=t[i])!==o;i++)try{n(r).triggerHandler("removeqtip")}catch(u){}n["cleanData"+a](t)});e.version="nightly";e.nextid=0;e.inactiveEvents="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" ");e.zindex=15e3;e.defaults={prerender:t,id:t,overwrite:i,suppress:i,content:{text:i,attr:"title",title:{text:t,button:t}},position:{my:"top left",at:"bottom right",target:t,container:t,viewport:t,adjust:{x:0,y:0,mouse:i,resize:i,method:"flip flip"},effect:function(i,r){n(this).animate(r,{duration:200,queue:t})}},show:{target:t,event:"mouseenter",effect:i,delay:90,solo:t,ready:t,autofocus:t},hide:{target:t,event:"mouseleave",effect:i,delay:0,fixed:t,inactive:t,leave:"window",distance:t},style:{classes:"",widget:t,width:t,height:t,def:i},events:{render:r,move:r,show:r,hide:r,toggle:r,visible:r,hidden:r,focus:r,blur:r}};u.tip=function(n){var t=n.plugins.tip;return"object"==typeof t?t:n.plugins.tip=new ut(n)};u.tip.initialize="render";u.tip.sanitize=function(n){var r=n.style,t;r&&"tip"in r&&(t=n.style.tip,typeof t!="object"&&(n.style.tip={corner:t}),/string|boolean/i.test(typeof t.corner)||(t.corner=i),typeof t.width!="number"&&delete t.width,typeof t.height!="number"&&delete t.height,typeof t.border!="number"&&t.border!==i&&delete t.border,typeof t.offset!="number"&&delete t.offset)};n.extend(i,e.defaults,{style:{tip:{corner:i,mimic:t,width:6,height:6,border:i,offset:0}}})});
/*
//# sourceMappingURL=jquery.qtip.min.js.map
*/
/*!
* ZeroClipboard
* The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.
* Copyright (c) 2014 Jon Rohan, James M. Greene
* Licensed MIT
* http://zeroclipboard.org/
* v1.3.5
*/
!function (a) { "use strict"; function b(a) { return a.replace(/,/g, ".").replace(/[^0-9\.]/g, "") } function c(a) { return parseFloat(b(a)) >= 10 } var d, e = { bridge: null, version: "0.0.0", disabled: null, outdated: null, ready: null }, f = {}, g = 0, h = {}, i = 0, j = {}, k = null, l = null, m = function () { var a, b, c, d, e = "ZeroClipboard.swf"; if (document.currentScript && (d = document.currentScript.src)); else { var f = document.getElementsByTagName("script"); if ("readyState" in f[0]) for (a = f.length; a-- && ("interactive" !== f[a].readyState || !(d = f[a].src)) ;); else if ("loading" === document.readyState) d = f[f.length - 1].src; else { for (a = f.length; a--;) { if (c = f[a].src, !c) { b = null; break } if (c = c.split("#")[0].split("?")[0], c = c.slice(0, c.lastIndexOf("/") + 1), null == b) b = c; else if (b !== c) { b = null; break } } null !== b && (d = b) } } return d && (d = d.split("#")[0].split("?")[0], e = d.slice(0, d.lastIndexOf("/") + 1) + e), e }(), n = function () { var a = /\-([a-z])/g, b = function (a, b) { return b.toUpperCase() }; return function (c) { return c.replace(a, b) } }(), o = function (b, c) { var d, e, f; return a.getComputedStyle ? d = a.getComputedStyle(b, null).getPropertyValue(c) : (e = n(c), d = b.currentStyle ? b.currentStyle[e] : b.style[e]), "cursor" !== c || d && "auto" !== d || (f = b.tagName.toLowerCase(), "a" !== f) ? d : "pointer" }, p = function (b) { b || (b = a.event); var c; this !== a ? c = this : b.target ? c = b.target : b.srcElement && (c = b.srcElement), K.activate(c) }, q = function (a, b, c) { a && 1 === a.nodeType && (a.addEventListener ? a.addEventListener(b, c, !1) : a.attachEvent && a.attachEvent("on" + b, c)) }, r = function (a, b, c) { a && 1 === a.nodeType && (a.removeEventListener ? a.removeEventListener(b, c, !1) : a.detachEvent && a.detachEvent("on" + b, c)) }, s = function (a, b) { if (!a || 1 !== a.nodeType) return a; if (a.classList) return a.classList.contains(b) || a.classList.add(b), a; if (b && "string" == typeof b) { var c = (b || "").split(/\s+/); if (1 === a.nodeType) if (a.className) { for (var d = " " + a.className + " ", e = a.className, f = 0, g = c.length; g > f; f++) d.indexOf(" " + c[f] + " ") < 0 && (e += " " + c[f]); a.className = e.replace(/^\s+|\s+$/g, "") } else a.className = b } return a }, t = function (a, b) { if (!a || 1 !== a.nodeType) return a; if (a.classList) return a.classList.contains(b) && a.classList.remove(b), a; if (b && "string" == typeof b || void 0 === b) { var c = (b || "").split(/\s+/); if (1 === a.nodeType && a.className) if (b) { for (var d = (" " + a.className + " ").replace(/[\n\t]/g, " "), e = 0, f = c.length; f > e; e++) d = d.replace(" " + c[e] + " ", " "); a.className = d.replace(/^\s+|\s+$/g, "") } else a.className = "" } return a }, u = function () { var a, b, c, d = 1; return "function" == typeof document.body.getBoundingClientRect && (a = document.body.getBoundingClientRect(), b = a.right - a.left, c = document.body.offsetWidth, d = Math.round(b / c * 100) / 100), d }, v = function (b, c) { var d = { left: 0, top: 0, width: 0, height: 0, zIndex: B(c) - 1 }; if (b.getBoundingClientRect) { var e, f, g, h = b.getBoundingClientRect(); "pageXOffset" in a && "pageYOffset" in a ? (e = a.pageXOffset, f = a.pageYOffset) : (g = u(), e = Math.round(document.documentElement.scrollLeft / g), f = Math.round(document.documentElement.scrollTop / g)); var i = document.documentElement.clientLeft || 0, j = document.documentElement.clientTop || 0; d.left = h.left + e - i, d.top = h.top + f - j, d.width = "width" in h ? h.width : h.right - h.left, d.height = "height" in h ? h.height : h.bottom - h.top } return d }, w = function (a, b) { var c = null == b || b && b.cacheBust === !0 && b.useNoCache === !0; return c ? (-1 === a.indexOf("?") ? "?" : "&") + "noCache=" + (new Date).getTime() : "" }, x = function (b) { var c, d, e, f = [], g = [], h = []; if (b.trustedOrigins && ("string" == typeof b.trustedOrigins ? g.push(b.trustedOrigins) : "object" == typeof b.trustedOrigins && "length" in b.trustedOrigins && (g = g.concat(b.trustedOrigins))), b.trustedDomains && ("string" == typeof b.trustedDomains ? g.push(b.trustedDomains) : "object" == typeof b.trustedDomains && "length" in b.trustedDomains && (g = g.concat(b.trustedDomains))), g.length) for (c = 0, d = g.length; d > c; c++) if (g.hasOwnProperty(c) && g[c] && "string" == typeof g[c]) { if (e = E(g[c]), !e) continue; if ("*" === e) { h = [e]; break } h.push.apply(h, [e, "//" + e, a.location.protocol + "//" + e]) } return h.length && f.push("trustedOrigins=" + encodeURIComponent(h.join(","))), "string" == typeof b.jsModuleId && b.jsModuleId && f.push("jsModuleId=" + encodeURIComponent(b.jsModuleId)), f.join("&") }, y = function (a, b, c) { if ("function" == typeof b.indexOf) return b.indexOf(a, c); var d, e = b.length; for ("undefined" == typeof c ? c = 0 : 0 > c && (c = e + c), d = c; e > d; d++) if (b.hasOwnProperty(d) && b[d] === a) return d; return -1 }, z = function (a) { if ("string" == typeof a) throw new TypeError("ZeroClipboard doesn't accept query strings."); return a.length ? a : [a] }, A = function (b, c, d, e) { e ? a.setTimeout(function () { b.apply(c, d) }, 0) : b.apply(c, d) }, B = function (a) { var b, c; return a && ("number" == typeof a && a > 0 ? b = a : "string" == typeof a && (c = parseInt(a, 10)) && !isNaN(c) && c > 0 && (b = c)), b || ("number" == typeof N.zIndex && N.zIndex > 0 ? b = N.zIndex : "string" == typeof N.zIndex && (c = parseInt(N.zIndex, 10)) && !isNaN(c) && c > 0 && (b = c)), b || 0 }, C = function (a, b) { if (a && b !== !1 && "undefined" != typeof console && console && (console.warn || console.log)) { var c = "`" + a + "` is deprecated. See docs for more info:\n https://github.com/zeroclipboard/zeroclipboard/blob/master/docs/instructions.md#deprecations"; console.warn ? console.warn(c) : console.log(c) } }, D = function () { var a, b, c, d, e, f, g = arguments[0] || {}; for (a = 1, b = arguments.length; b > a; a++) if (null != (c = arguments[a])) for (d in c) if (c.hasOwnProperty(d)) { if (e = g[d], f = c[d], g === f) continue; void 0 !== f && (g[d] = f) } return g }, E = function (a) { if (null == a || "" === a) return null; if (a = a.replace(/^\s+|\s+$/g, ""), "" === a) return null; var b = a.indexOf("//"); a = -1 === b ? a : a.slice(b + 2); var c = a.indexOf("/"); return a = -1 === c ? a : -1 === b || 0 === c ? null : a.slice(0, c), a && ".swf" === a.slice(-4).toLowerCase() ? null : a || null }, F = function () { var a = function (a, b) { var c, d, e; if (null != a && "*" !== b[0] && ("string" == typeof a && (a = [a]), "object" == typeof a && "length" in a)) for (c = 0, d = a.length; d > c; c++) if (a.hasOwnProperty(c) && (e = E(a[c]))) { if ("*" === e) { b.length = 0, b.push("*"); break } -1 === y(e, b) && b.push(e) } }, b = { always: "always", samedomain: "sameDomain", never: "never" }; return function (c, d) { var e, f = d.allowScriptAccess; if ("string" == typeof f && (e = f.toLowerCase()) && /^always|samedomain|never$/.test(e)) return b[e]; var g = E(d.moviePath); null === g && (g = c); var h = []; a(d.trustedOrigins, h), a(d.trustedDomains, h); var i = h.length; if (i > 0) { if (1 === i && "*" === h[0]) return "always"; if (-1 !== y(c, h)) return 1 === i && c === g ? "sameDomain" : "always" } return "never" } }(), G = function (a) { if (null == a) return []; if (Object.keys) return Object.keys(a); var b = []; for (var c in a) a.hasOwnProperty(c) && b.push(c); return b }, H = function (a) { if (a) for (var b in a) a.hasOwnProperty(b) && delete a[b]; return a }, I = function () { try { return document.activeElement } catch (a) { } return null }, J = function () { var a = !1; if ("boolean" == typeof e.disabled) a = e.disabled === !1; else { if ("function" == typeof ActiveXObject) try { new ActiveXObject("ShockwaveFlash.ShockwaveFlash") && (a = !0) } catch (b) { } !a && navigator.mimeTypes["application/x-shockwave-flash"] && (a = !0) } return a }, K = function (a, b) { return this instanceof K ? (this.id = "" + g++, h[this.id] = { instance: this, elements: [], handlers: {} }, a && this.clip(a), "undefined" != typeof b && (C("new ZeroClipboard(elements, options)", N.debug), K.config(b)), this.options = K.config(), "boolean" != typeof e.disabled && (e.disabled = !J()), e.disabled === !1 && e.outdated !== !0 && null === e.bridge && (e.outdated = !1, e.ready = !1, O()), void 0) : new K(a, b) }; K.prototype.setText = function (a) { return a && "" !== a && (f["text/plain"] = a, e.ready === !0 && e.bridge && "function" == typeof e.bridge.setText ? e.bridge.setText(a) : e.ready = !1), this }, K.prototype.setSize = function (a, b) { return e.ready === !0 && e.bridge && "function" == typeof e.bridge.setSize ? e.bridge.setSize(a, b) : e.ready = !1, this }; var L = function (a) { e.ready === !0 && e.bridge && "function" == typeof e.bridge.setHandCursor ? e.bridge.setHandCursor(a) : e.ready = !1 }; K.prototype.destroy = function () { this.unclip(), this.off(), delete h[this.id] }; var M = function () { var a, b, c, d = [], e = G(h); for (a = 0, b = e.length; b > a; a++) c = h[e[a]].instance, c && c instanceof K && d.push(c); return d }; K.version = "1.3.5"; var N = { swfPath: m, trustedDomains: a.location.host ? [a.location.host] : [], cacheBust: !0, forceHandCursor: !1, zIndex: 999999999, debug: !0, title: null, autoActivate: !0 }; K.config = function (a) { "object" == typeof a && null !== a && D(N, a); { if ("string" != typeof a || !a) { var b = {}; for (var c in N) N.hasOwnProperty(c) && (b[c] = "object" == typeof N[c] && null !== N[c] ? "length" in N[c] ? N[c].slice(0) : D({}, N[c]) : N[c]); return b } if (N.hasOwnProperty(a)) return N[a] } }, K.destroy = function () { K.deactivate(); for (var a in h) if (h.hasOwnProperty(a) && h[a]) { var b = h[a].instance; b && "function" == typeof b.destroy && b.destroy() } var c = P(e.bridge); c && c.parentNode && (c.parentNode.removeChild(c), e.ready = null, e.bridge = null) }, K.activate = function (a) { d && (t(d, N.hoverClass), t(d, N.activeClass)), d = a, s(a, N.hoverClass), Q(); var b = N.title || a.getAttribute("title"); if (b) { var c = P(e.bridge); c && c.setAttribute("title", b) } var f = N.forceHandCursor === !0 || "pointer" === o(a, "cursor"); L(f) }, K.deactivate = function () { var a = P(e.bridge); a && (a.style.left = "0px", a.style.top = "-9999px", a.removeAttribute("title")), d && (t(d, N.hoverClass), t(d, N.activeClass), d = null) }; var O = function () { var b, c, d = document.getElementById("global-zeroclipboard-html-bridge"); if (!d) { var f = K.config(); f.jsModuleId = "string" == typeof k && k || "string" == typeof l && l || null; var g = F(a.location.host, N), h = x(f), i = N.moviePath + w(N.moviePath, N), j = ' '; d = document.createElement("div"), d.id = "global-zeroclipboard-html-bridge", d.setAttribute("class", "global-zeroclipboard-container"), d.style.position = "absolute", d.style.left = "0px", d.style.top = "-9999px", d.style.width = "15px", d.style.height = "15px", d.style.zIndex = "" + B(N.zIndex), document.body.appendChild(d), d.innerHTML = j } b = document["global-zeroclipboard-flash-bridge"], b && (c = b.length) && (b = b[c - 1]), e.bridge = b || d.children[0].lastElementChild }, P = function (a) { for (var b = /^OBJECT|EMBED$/, c = a && a.parentNode; c && b.test(c.nodeName) && c.parentNode;) c = c.parentNode; return c || null }, Q = function () { if (d) { var a = v(d, N.zIndex), b = P(e.bridge); b && (b.style.top = a.top + "px", b.style.left = a.left + "px", b.style.width = a.width + "px", b.style.height = a.height + "px", b.style.zIndex = a.zIndex + 1), e.ready === !0 && e.bridge && "function" == typeof e.bridge.setSize ? e.bridge.setSize(a.width, a.height) : e.ready = !1 } return this }; K.prototype.on = function (a, b) { var c, d, f, g = {}, i = h[this.id] && h[this.id].handlers; if ("string" == typeof a && a) f = a.toLowerCase().split(/\s+/); else if ("object" == typeof a && a && "undefined" == typeof b) for (c in a) a.hasOwnProperty(c) && "string" == typeof c && c && "function" == typeof a[c] && this.on(c, a[c]); if (f && f.length) { for (c = 0, d = f.length; d > c; c++) a = f[c].replace(/^on/, ""), g[a] = !0, i[a] || (i[a] = []), i[a].push(b); g.noflash && e.disabled && T.call(this, "noflash", {}), g.wrongflash && e.outdated && T.call(this, "wrongflash", { flashVersion: e.version }), g.load && e.ready && T.call(this, "load", { flashVersion: e.version }) } return this }, K.prototype.off = function (a, b) { var c, d, e, f, g, i = h[this.id] && h[this.id].handlers; if (0 === arguments.length) f = G(i); else if ("string" == typeof a && a) f = a.split(/\s+/); else if ("object" == typeof a && a && "undefined" == typeof b) for (c in a) a.hasOwnProperty(c) && "string" == typeof c && c && "function" == typeof a[c] && this.off(c, a[c]); if (f && f.length) for (c = 0, d = f.length; d > c; c++) if (a = f[c].toLowerCase().replace(/^on/, ""), g = i[a], g && g.length) if (b) for (e = y(b, g) ; -1 !== e;) g.splice(e, 1), e = y(b, g, e); else i[a].length = 0; return this }, K.prototype.handlers = function (a) { var b, c = null, d = h[this.id] && h[this.id].handlers; if (d) { if ("string" == typeof a && a) return d[a] ? d[a].slice(0) : null; c = {}; for (b in d) d.hasOwnProperty(b) && d[b] && (c[b] = d[b].slice(0)) } return c }; var R = function (b, c, d, e) { var f = h[this.id] && h[this.id].handlers[b]; if (f && f.length) { var g, i, j, k = c || this; for (g = 0, i = f.length; i > g; g++) j = f[g], c = k, "string" == typeof j && "function" == typeof a[j] && (j = a[j]), "object" == typeof j && j && "function" == typeof j.handleEvent && (c = j, j = j.handleEvent), "function" == typeof j && A(j, c, d, e) } return this }; K.prototype.clip = function (a) { a = z(a); for (var b = 0; b < a.length; b++) if (a.hasOwnProperty(b) && a[b] && 1 === a[b].nodeType) { a[b].zcClippingId ? -1 === y(this.id, j[a[b].zcClippingId]) && j[a[b].zcClippingId].push(this.id) : (a[b].zcClippingId = "zcClippingId_" + i++, j[a[b].zcClippingId] = [this.id], N.autoActivate === !0 && q(a[b], "mouseover", p)); var c = h[this.id].elements; -1 === y(a[b], c) && c.push(a[b]) } return this }, K.prototype.unclip = function (a) { var b = h[this.id]; if (b) { var c, d = b.elements; a = "undefined" == typeof a ? d.slice(0) : z(a); for (var e = a.length; e--;) if (a.hasOwnProperty(e) && a[e] && 1 === a[e].nodeType) { for (c = 0; -1 !== (c = y(a[e], d, c)) ;) d.splice(c, 1); var f = j[a[e].zcClippingId]; if (f) { for (c = 0; -1 !== (c = y(this.id, f, c)) ;) f.splice(c, 1); 0 === f.length && (N.autoActivate === !0 && r(a[e], "mouseover", p), delete a[e].zcClippingId) } } } return this }, K.prototype.elements = function () { var a = h[this.id]; return a && a.elements ? a.elements.slice(0) : [] }; var S = function (a) { var b, c, d, e, f, g = []; if (a && 1 === a.nodeType && (b = a.zcClippingId) && j.hasOwnProperty(b) && (c = j[b], c && c.length)) for (d = 0, e = c.length; e > d; d++) f = h[c[d]].instance, f && f instanceof K && g.push(f); return g }; N.hoverClass = "zeroclipboard-is-hover", N.activeClass = "zeroclipboard-is-active", N.trustedOrigins = null, N.allowScriptAccess = null, N.useNoCache = !0, N.moviePath = "ZeroClipboard.swf", K.detectFlashSupport = function () { return C("ZeroClipboard.detectFlashSupport", N.debug), J() }, K.dispatch = function (a, b) { if ("string" == typeof a && a) { var c = a.toLowerCase().replace(/^on/, ""); if (c) for (var e = d && N.autoActivate === !0 ? S(d) : M(), f = 0, g = e.length; g > f; f++) T.call(e[f], c, b) } }, K.prototype.setHandCursor = function (a) { return C("ZeroClipboard.prototype.setHandCursor", N.debug), a = "boolean" == typeof a ? a : !!a, L(a), N.forceHandCursor = a, this }, K.prototype.reposition = function () { return C("ZeroClipboard.prototype.reposition", N.debug), Q() }, K.prototype.receiveEvent = function (a, b) { if (C("ZeroClipboard.prototype.receiveEvent", N.debug), "string" == typeof a && a) { var c = a.toLowerCase().replace(/^on/, ""); c && T.call(this, c, b) } }, K.prototype.setCurrent = function (a) { return C("ZeroClipboard.prototype.setCurrent", N.debug), K.activate(a), this }, K.prototype.resetBridge = function () { return C("ZeroClipboard.prototype.resetBridge", N.debug), K.deactivate(), this }, K.prototype.setTitle = function (a) { if (C("ZeroClipboard.prototype.setTitle", N.debug), a = a || N.title || d && d.getAttribute("title")) { var b = P(e.bridge); b && b.setAttribute("title", a) } return this }, K.setDefaults = function (a) { C("ZeroClipboard.setDefaults", N.debug), K.config(a) }, K.prototype.addEventListener = function (a, b) { return C("ZeroClipboard.prototype.addEventListener", N.debug), this.on(a, b) }, K.prototype.removeEventListener = function (a, b) { return C("ZeroClipboard.prototype.removeEventListener", N.debug), this.off(a, b) }, K.prototype.ready = function () { return C("ZeroClipboard.prototype.ready", N.debug), e.ready === !0 }; var T = function (a, g) { a = a.toLowerCase().replace(/^on/, ""); var h = g && g.flashVersion && b(g.flashVersion) || null, i = d, j = !0; switch (a) { case "load": if (h) { if (!c(h)) return T.call(this, "onWrongFlash", { flashVersion: h }), void 0; e.outdated = !1, e.ready = !0, e.version = h } break; case "wrongflash": h && !c(h) && (e.outdated = !0, e.ready = !1, e.version = h); break; case "mouseover": s(i, N.hoverClass); break; case "mouseout": N.autoActivate === !0 && K.deactivate(); break; case "mousedown": s(i, N.activeClass); break; case "mouseup": t(i, N.activeClass); break; case "datarequested": if (i) { var k = i.getAttribute("data-clipboard-target"), l = k ? document.getElementById(k) : null; if (l) { var m = l.value || l.textContent || l.innerText; m && this.setText(m) } else { var n = i.getAttribute("data-clipboard-text"); n && this.setText(n) } } j = !1; break; case "complete": H(f), i && i !== I() && i.focus && i.focus() } var o = i, p = [this, g]; return R.call(this, a, o, p, j) }; "function" == typeof define && define.amd ? define(["require", "exports", "module"], function (a, b, c) { return k = c && c.id || null, K }) : "object" == typeof module && module && "object" == typeof module.exports && module.exports && "function" == typeof a.require ? (l = module.id || null, module.exports = K) : a.ZeroClipboard = K }(function () { return this }());
/*
* JSizes - JQuery plugin v0.33
*
* Licensed under the revised BSD License.
* Copyright 2008-2010 Bram Stein
* All rights reserved.
*/
(function ($) {
var num = function (value) { return parseInt(value, 10) || 0 }; $.each(["min", "max"], function (i, name) {
$.fn[name + "Size"] = function (value) {
var width, height; if (value) { if (value.width !== undefined) this.css(name + "-width", value.width); if (value.height !== undefined) this.css(name + "-height", value.height); return this } else {
width = this.css(name + "-width"); height = this.css(name + "-height"); return { "width": name === "max" && (width === undefined || width === "none" || num(width) === -1) && Number.MAX_VALUE || num(width), "height": name ===
"max" && (height === undefined || height === "none" || num(height) === -1) && Number.MAX_VALUE || num(height)
}
}
}
}); $.fn.isVisible = function () { return this.is(":visible") }; $.each(["border", "margin", "padding"], function (i, name) {
$.fn[name] = function (value) {
if (value) {
if (value.top !== undefined) this.css(name + "-top" + (name === "border" ? "-width" : ""), value.top); if (value.bottom !== undefined) this.css(name + "-bottom" + (name === "border" ? "-width" : ""), value.bottom); if (value.left !== undefined) this.css(name + "-left" + (name === "border" ? "-width" :
""), value.left); if (value.right !== undefined) this.css(name + "-right" + (name === "border" ? "-width" : ""), value.right); return this
} else return { top: num(this.css(name + "-top" + (name === "border" ? "-width" : ""))), bottom: num(this.css(name + "-bottom" + (name === "border" ? "-width" : ""))), left: num(this.css(name + "-left" + (name === "border" ? "-width" : ""))), right: num(this.css(name + "-right" + (name === "border" ? "-width" : "")))}
}
})
})(jQuery);
/*!
* jQuery UI 1.8.18
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI
*/(function(a,b){function d(b){return!a(b).parents().andSelf().filter(function(){return a.curCSS(this,"visibility")==="hidden"||a.expr.filters.hidden(this)}).length}function c(b,c){var e=b.nodeName.toLowerCase();if("area"===e){var f=b.parentNode,g=f.name,h;if(!b.href||!g||f.nodeName.toLowerCase()!=="map")return!1;h=a("img[usemap=#"+g+"]")[0];return!!h&&d(h)}return(/input|select|textarea|button|object/.test(e)?!b.disabled:"a"==e?b.href||c:c)&&d(b)}a.ui=a.ui||{};a.ui.version||(a.extend(a.ui,{version:"1.8.18",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}}),a.fn.extend({propAttr:a.fn.prop||a.fn.attr,_focus:a.fn.focus,focus:function(b,c){return typeof b=="number"?this.each(function(){var d=this;setTimeout(function(){a(d).focus(),c&&c.call(d)},b)}):this._focus.apply(this,arguments)},scrollParent:function(){var b;a.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?b=this.parents().filter(function(){return/(relative|absolute|fixed)/.test(a.curCSS(this,"position",1))&&/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0):b=this.parents().filter(function(){return/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!b.length?a(document):b},zIndex:function(c){if(c!==b)return this.css("zIndex",c);if(this.length){var d=a(this[0]),e,f;while(d.length&&d[0]!==document){e=d.css("position");if(e==="absolute"||e==="relative"||e==="fixed"){f=parseInt(d.css("zIndex"),10);if(!isNaN(f)&&f!==0)return f}d=d.parent()}}return 0},disableSelection:function(){return this.bind((a.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),a.each(["Width","Height"],function(c,d){function h(b,c,d,f){a.each(e,function(){c-=parseFloat(a.curCSS(b,"padding"+this,!0))||0,d&&(c-=parseFloat(a.curCSS(b,"border"+this+"Width",!0))||0),f&&(c-=parseFloat(a.curCSS(b,"margin"+this,!0))||0)});return c}var e=d==="Width"?["Left","Right"]:["Top","Bottom"],f=d.toLowerCase(),g={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};a.fn["inner"+d]=function(c){if(c===b)return g["inner"+d].call(this);return this.each(function(){a(this).css(f,h(this,c)+"px")})},a.fn["outer"+d]=function(b,c){if(typeof b!="number")return g["outer"+d].call(this,b);return this.each(function(){a(this).css(f,h(this,b,!0,c)+"px")})}}),a.extend(a.expr[":"],{data:function(b,c,d){return!!a.data(b,d[3])},focusable:function(b){return c(b,!isNaN(a.attr(b,"tabindex")))},tabbable:function(b){var d=a.attr(b,"tabindex"),e=isNaN(d);return(e||d>=0)&&c(b,!e)}}),a(function(){var b=document.body,c=b.appendChild(c=document.createElement("div"));c.offsetHeight,a.extend(c.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0}),a.support.minHeight=c.offsetHeight===100,a.support.selectstart="onselectstart"in c,b.removeChild(c).style.display="none"}),a.extend(a.ui,{plugin:{add:function(b,c,d){var e=a.ui[b].prototype;for(var f in d)e.plugins[f]=e.plugins[f]||[],e.plugins[f].push([c,d[f]])},call:function(a,b,c){var d=a.plugins[b];if(!!d&&!!a.element[0].parentNode)for(var e=0;e0)return!0;b[d]=1,e=b[d]>0,b[d]=0;return e},isOverAxis:function(a,b,c){return a>b&&a=9)&&!b.button)return this._mouseUp(b);if(this._mouseStarted){this._mouseDrag(b);return b.preventDefault()}this._mouseDistanceMet(b)&&this._mouseDelayMet(b)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,b)!==!1,this._mouseStarted?this._mouseDrag(b):this._mouseUp(b));return!this._mouseStarted},_mouseUp:function(b){a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,b.target==this._mouseDownEvent.target&&a.data(b.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(b));return!1},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(a){return this.mouseDelayMet},_mouseStart:function(a){},_mouseDrag:function(a){},_mouseStop:function(a){},_mouseCapture:function(a){return!0}})})(jQuery);/*
* jQuery UI Position 1.8.18
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Position
*/(function(a,b){a.ui=a.ui||{};var c=/left|center|right/,d=/top|center|bottom/,e="center",f={},g=a.fn.position,h=a.fn.offset;a.fn.position=function(b){if(!b||!b.of)return g.apply(this,arguments);b=a.extend({},b);var h=a(b.of),i=h[0],j=(b.collision||"flip").split(" "),k=b.offset?b.offset.split(" "):[0,0],l,m,n;i.nodeType===9?(l=h.width(),m=h.height(),n={top:0,left:0}):i.setTimeout?(l=h.width(),m=h.height(),n={top:h.scrollTop(),left:h.scrollLeft()}):i.preventDefault?(b.at="left top",l=m=0,n={top:b.of.pageY,left:b.of.pageX}):(l=h.outerWidth(),m=h.outerHeight(),n=h.offset()),a.each(["my","at"],function(){var a=(b[this]||"").split(" ");a.length===1&&(a=c.test(a[0])?a.concat([e]):d.test(a[0])?[e].concat(a):[e,e]),a[0]=c.test(a[0])?a[0]:e,a[1]=d.test(a[1])?a[1]:e,b[this]=a}),j.length===1&&(j[1]=j[0]),k[0]=parseInt(k[0],10)||0,k.length===1&&(k[1]=k[0]),k[1]=parseInt(k[1],10)||0,b.at[0]==="right"?n.left+=l:b.at[0]===e&&(n.left+=l/2),b.at[1]==="bottom"?n.top+=m:b.at[1]===e&&(n.top+=m/2),n.left+=k[0],n.top+=k[1];return this.each(function(){var c=a(this),d=c.outerWidth(),g=c.outerHeight(),h=parseInt(a.curCSS(this,"marginLeft",!0))||0,i=parseInt(a.curCSS(this,"marginTop",!0))||0,o=d+h+(parseInt(a.curCSS(this,"marginRight",!0))||0),p=g+i+(parseInt(a.curCSS(this,"marginBottom",!0))||0),q=a.extend({},n),r;b.my[0]==="right"?q.left-=d:b.my[0]===e&&(q.left-=d/2),b.my[1]==="bottom"?q.top-=g:b.my[1]===e&&(q.top-=g/2),f.fractions||(q.left=Math.round(q.left),q.top=Math.round(q.top)),r={left:q.left-h,top:q.top-i},a.each(["left","top"],function(c,e){a.ui.position[j[c]]&&a.ui.position[j[c]][e](q,{targetWidth:l,targetHeight:m,elemWidth:d,elemHeight:g,collisionPosition:r,collisionWidth:o,collisionHeight:p,offset:k,my:b.my,at:b.at})}),a.fn.bgiframe&&c.bgiframe(),c.offset(a.extend(q,{using:b.using}))})},a.ui.position={fit:{left:function(b,c){var d=a(window),e=c.collisionPosition.left+c.collisionWidth-d.width()-d.scrollLeft();b.left=e>0?b.left-e:Math.max(b.left-c.collisionPosition.left,b.left)},top:function(b,c){var d=a(window),e=c.collisionPosition.top+c.collisionHeight-d.height()-d.scrollTop();b.top=e>0?b.top-e:Math.max(b.top-c.collisionPosition.top,b.top)}},flip:{left:function(b,c){if(c.at[0]!==e){var d=a(window),f=c.collisionPosition.left+c.collisionWidth-d.width()-d.scrollLeft(),g=c.my[0]==="left"?-c.elemWidth:c.my[0]==="right"?c.elemWidth:0,h=c.at[0]==="left"?c.targetWidth:-c.targetWidth,i=-2*c.offset[0];b.left+=c.collisionPosition.left<0?g+h+i:f>0?g+h+i:0}},top:function(b,c){if(c.at[1]!==e){var d=a(window),f=c.collisionPosition.top+c.collisionHeight-d.height()-d.scrollTop(),g=c.my[1]==="top"?-c.elemHeight:c.my[1]==="bottom"?c.elemHeight:0,h=c.at[1]==="top"?c.targetHeight:-c.targetHeight,i=-2*c.offset[1];b.top+=c.collisionPosition.top<0?g+h+i:f>0?g+h+i:0}}}},a.offset.setOffset||(a.offset.setOffset=function(b,c){/static/.test(a.curCSS(b,"position"))&&(b.style.position="relative");var d=a(b),e=d.offset(),f=parseInt(a.curCSS(b,"top",!0),10)||0,g=parseInt(a.curCSS(b,"left",!0),10)||0,h={top:c.top-e.top+f,left:c.left-e.left+g};"using"in c?c.using.call(b,h):d.css(h)},a.fn.offset=function(b){var c=this[0];if(!c||!c.ownerDocument)return null;if(b)return this.each(function(){a.offset.setOffset(this,b)});return h.call(this)}),function(){var b=document.getElementsByTagName("body")[0],c=document.createElement("div"),d,e,g,h,i;d=document.createElement(b?"div":"body"),g={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},b&&a.extend(g,{position:"absolute",left:"-1000px",top:"-1000px"});for(var j in g)d.style[j]=g[j];d.appendChild(c),e=b||document.documentElement,e.insertBefore(d,e.firstChild),c.style.cssText="position: absolute; left: 10.7432222px; top: 10.432325px; height: 30px; width: 201px;",h=a(c).offset(function(a,b){return b}).offset(),d.innerHTML="",e.removeChild(d),i=h.top+h.left+(b?2e3:0),f.fractions=i>21&&i<22}()})(jQuery);/*
* jQuery UI Selectable 1.8.18
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Selectables
*
* Depends:
* jquery.ui.core.js
* jquery.ui.mouse.js
* jquery.ui.widget.js
*/(function(a,b){a.widget("ui.selectable",a.ui.mouse,{options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch"},_create:function(){var b=this;this.element.addClass("ui-selectable"),this.dragged=!1;var c;this.refresh=function(){c=a(b.options.filter,b.element[0]),c.addClass("ui-selectee"),c.each(function(){var b=a(this),c=b.offset();a.data(this,"selectable-item",{element:this,$element:b,left:c.left,top:c.top,right:c.left+b.outerWidth(),bottom:c.top+b.outerHeight(),startselected:!1,selected:b.hasClass("ui-selected"),selecting:b.hasClass("ui-selecting"),unselecting:b.hasClass("ui-unselecting")})})},this.refresh(),this.selectees=c.addClass("ui-selectee"),this._mouseInit(),this.helper=a("")},destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable"),this._mouseDestroy();return this},_mouseStart:function(b){var c=this;this.opos=[b.pageX,b.pageY];if(!this.options.disabled){var d=this.options;this.selectees=a(d.filter,this.element[0]),this._trigger("start",b),a(d.appendTo).append(this.helper),this.helper.css({left:b.clientX,top:b.clientY,width:0,height:0}),d.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var d=a.data(this,"selectable-item");d.startselected=!0,!b.metaKey&&!b.ctrlKey&&(d.$element.removeClass("ui-selected"),d.selected=!1,d.$element.addClass("ui-unselecting"),d.unselecting=!0,c._trigger("unselecting",b,{unselecting:d.element}))}),a(b.target).parents().andSelf().each(function(){var d=a.data(this,"selectable-item");if(d){var e=!b.metaKey&&!b.ctrlKey||!d.$element.hasClass("ui-selected");d.$element.removeClass(e?"ui-unselecting":"ui-selected").addClass(e?"ui-selecting":"ui-unselecting"),d.unselecting=!e,d.selecting=e,d.selected=e,e?c._trigger("selecting",b,{selecting:d.element}):c._trigger("unselecting",b,{unselecting:d.element});return!1}})}},_mouseDrag:function(b){var c=this;this.dragged=!0;if(!this.options.disabled){var d=this.options,e=this.opos[0],f=this.opos[1],g=b.pageX,h=b.pageY;if(e>g){var i=g;g=e,e=i}if(f>h){var i=h;h=f,f=i}this.helper.css({left:e,top:f,width:g-e,height:h-f}),this.selectees.each(function(){var i=a.data(this,"selectable-item");if(!!i&&i.element!=c.element[0]){var j=!1;d.tolerance=="touch"?j=!(i.left>g||i.righth||i.bottome&&i.rightf&&i.bottom 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 b=this,c=b.options;b.running=0,b.element.addClass("ui-accordion ui-widget ui-helper-reset").children("li").addClass("ui-accordion-li-fix"),b.headers=b.element.find(c.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){c.disabled||a(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){c.disabled||a(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){c.disabled||a(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){c.disabled||a(this).removeClass("ui-state-focus")}),b.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");if(c.navigation){var d=b.element.find("a").filter(c.navigationFilter).eq(0);if(d.length){var e=d.closest(".ui-accordion-header");e.length?b.active=e:b.active=d.closest(".ui-accordion-content").prev()}}b.active=b._findActive(b.active||c.active).addClass("ui-state-default ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top"),b.active.next().addClass("ui-accordion-content-active"),b._createIcons(),b.resize(),b.element.attr("role","tablist"),b.headers.attr("role","tab").bind("keydown.accordion",function(a){return b._keydown(a)}).next().attr("role","tabpanel"),b.headers.not(b.active||"").attr({"aria-expanded":"false","aria-selected":"false",tabIndex:-1}).next().hide(),b.active.length?b.active.attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}):b.headers.eq(0).attr("tabIndex",0),a.browser.safari||b.headers.find("a").attr("tabIndex",-1),c.event&&b.headers.bind(c.event.split(" ").join(".accordion ")+".accordion",function(a){b._clickHandler.call(b,a,this),a.preventDefault()})},_createIcons:function(){var b=this.options;b.icons&&(a("").addClass("ui-icon "+b.icons.header).prependTo(this.headers),this.active.children(".ui-icon").toggleClass(b.icons.header).toggleClass(b.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 b=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 c=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");(b.autoHeight||b.fillHeight)&&c.css("height","");return a.Widget.prototype.destroy.call(this)},_setOption:function(b,c){a.Widget.prototype._setOption.apply(this,arguments),b=="active"&&this.activate(c),b=="icons"&&(this._destroyIcons(),c&&this._createIcons()),b=="disabled"&&this.headers.add(this.headers.next())[c?"addClass":"removeClass"]("ui-accordion-disabled ui-state-disabled")},_keydown:function(b){if(!(this.options.disabled||b.altKey||b.ctrlKey)){var c=a.ui.keyCode,d=this.headers.length,e=this.headers.index(b.target),f=!1;switch(b.keyCode){case c.RIGHT:case c.DOWN:f=this.headers[(e+1)%d];break;case c.LEFT:case c.UP:f=this.headers[(e-1+d)%d];break;case c.SPACE:case c.ENTER:this._clickHandler({target:b.target},b.target),b.preventDefault()}if(f){a(b.target).attr("tabIndex",-1),a(f).attr("tabIndex",0),f.focus();return!1}return!0}},resize:function(){var b=this.options,c;if(b.fillSpace){if(a.browser.msie){var d=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}c=this.element.parent().height(),a.browser.msie&&this.element.parent().css("overflow",d),this.headers.each(function(){c-=a(this).outerHeight(!0)}),this.headers.next().each(function(){a(this).height(Math.max(0,c-a(this).innerHeight()+a(this).height()))}).css("overflow","auto")}else b.autoHeight&&(c=0,this.headers.next().each(function(){c=Math.max(c,a(this).height("").height())}).height(c));return this},activate:function(a){this.options.active=a;var b=this._findActive(a)[0];this._clickHandler({target:b},b);return this},_findActive:function(b){return b?typeof b=="number"?this.headers.filter(":eq("+b+")"):this.headers.not(this.headers.not(b)):b===!1?a([]):this.headers.filter(":eq(0)")},_clickHandler:function(b,c){var d=this.options;if(!d.disabled){if(!b.target){if(!d.collapsible)return;this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header),this.active.next().addClass("ui-accordion-content-active");var e=this.active.next(),f={options:d,newHeader:a([]),oldHeader:d.active,newContent:a([]),oldContent:e},g=this.active=a([]);this._toggle(g,e,f);return}var h=a(b.currentTarget||c),i=h[0]===this.active[0];d.active=d.collapsible&&i?!1:this.headers.index(h);if(this.running||!d.collapsible&&i)return;var j=this.active,g=h.next(),e=this.active.next(),f={options:d,newHeader:i&&d.collapsible?a([]):h,oldHeader:this.active,newContent:i&&d.collapsible?a([]):g,oldContent:e},k=this.headers.index(this.active[0])>this.headers.index(h[0]);this.active=i?a([]):h,this._toggle(g,e,f,i,k),j.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header),i||(h.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").children(".ui-icon").removeClass(d.icons.header).addClass(d.icons.headerSelected),h.next().addClass("ui-accordion-content-active"));return}},_toggle:function(b,c,d,e,f){var g=this,h=g.options;g.toShow=b,g.toHide=c,g.data=d;var i=function(){if(!!g)return g._completed.apply(g,arguments)};g._trigger("changestart",null,g.data),g.running=c.size()===0?b.size():c.size();if(h.animated){var j={};h.collapsible&&e?j={toShow:a([]),toHide:c,complete:i,down:f,autoHeight:h.autoHeight||h.fillSpace}:j={toShow:b,toHide:c,complete:i,down:f,autoHeight:h.autoHeight||h.fillSpace},h.proxied||(h.proxied=h.animated),h.proxiedDuration||(h.proxiedDuration=h.duration),h.animated=a.isFunction(h.proxied)?h.proxied(j):h.proxied,h.duration=a.isFunction(h.proxiedDuration)?h.proxiedDuration(j):h.proxiedDuration;var k=a.ui.accordion.animations,l=h.duration,m=h.animated;m&&!k[m]&&!a.easing[m]&&(m="slide"),k[m]||(k[m]=function(a){this.slide(a,{easing:m,duration:l||700})}),k[m](j)}else h.collapsible&&e?b.toggle():(c.hide(),b.show()),i(!0);c.prev().attr({"aria-expanded":"false","aria-selected":"false",tabIndex:-1}).blur(),b.prev().attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}).focus()},_completed:function(a){this.running=a?0:--this.running;this.running||(this.options.clearStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""}),this.toHide.removeClass("ui-accordion-content-active"),this.toHide.length&&(this.toHide.parent()[0].className=this.toHide.parent()[0].className),this._trigger("change",null,this.data))}}),a.extend(a.ui.accordion,{version:"1.8.18",animations:{slide:function(b,c){b=a.extend({easing:"swing",duration:300},b,c);if(!b.toHide.size())b.toShow.animate({height:"show",paddingTop:"show",paddingBottom:"show"},b);else{if(!b.toShow.size()){b.toHide.animate({height:"hide",paddingTop:"hide",paddingBottom:"hide"},b);return}var d=b.toShow.css("overflow"),e=0,f={},g={},h=["height","paddingTop","paddingBottom"],i,j=b.toShow;i=j[0].style.width,j.width(j.parent().width()-parseFloat(j.css("paddingLeft"))-parseFloat(j.css("paddingRight"))-(parseFloat(j.css("borderLeftWidth"))||0)-(parseFloat(j.css("borderRightWidth"))||0)),a.each(h,function(c,d){g[d]="hide";var e=(""+a.css(b.toShow[0],d)).match(/^([\d+-.]+)(.*)$/);f[d]={value:e[1],unit:e[2]||"px"}}),b.toShow.css({height:0,overflow:"hidden"}).show(),b.toHide.filter(":hidden").each(b.complete).end().filter(":visible").animate(g,{step:function(a,c){c.prop=="height"&&(e=c.end-c.start===0?0:(c.now-c.start)/(c.end-c.start)),b.toShow[0].style[c.prop]=e*f[c.prop].value+f[c.prop].unit},duration:b.duration,easing:b.easing,complete:function(){b.autoHeight||b.toShow.css("height",""),b.toShow.css({width:i,overflow:d}),b.complete()}})}},bounceslide:function(a){this.slide(a,{easing:a.down?"easeOutBounce":"swing",duration:a.down?1e3:200})}}})})(jQuery);/*
* jQuery UI Tabs 1.8.18
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Tabs
*
* Depends:
* jquery.ui.core.js
* jquery.ui.widget.js
*/(function(a,b){function f(){return++d}function e(){return++c}var c=0,d=0;a.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:"",remove:null,select:null,show:null,spinner:"Loading…",tabTemplate:"#{label}"},_create:function(){this._tabify(!0)},_setOption:function(a,b){if(a=="selected"){if(this.options.collapsible&&b==this.options.selected)return;this.select(b)}else this.options[a]=b,this._tabify()},_tabId:function(a){return a.title&&a.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF-]/g,"")||this.options.idPrefix+e()},_sanitizeSelector:function(a){return a.replace(/:/g,"\\:")},_cookie:function(){var b=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+f());return a.cookie.apply(null,[b].concat(a.makeArray(arguments)))},_ui:function(a,b){return{tab:a,panel:b,index:this.anchors.index(a)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var b=a(this);b.html(b.data("label.tabs")).removeData("label.tabs")})},_tabify:function(c){function m(b,c){b.css("display",""),!a.support.opacity&&c.opacity&&b[0].style.removeAttribute("filter")}var d=this,e=this.options,f=/^#.+/;this.list=this.element.find("ol,ul").eq(0),this.lis=a(" > li:has(a[href])",this.list),this.anchors=this.lis.map(function(){return a("a",this)[0]}),this.panels=a([]),this.anchors.each(function(b,c){var g=a(c).attr("href"),h=g.split("#")[0],i;h&&(h===location.toString().split("#")[0]||(i=a("base")[0])&&h===i.href)&&(g=c.hash,c.href=g);if(f.test(g))d.panels=d.panels.add(d.element.find(d._sanitizeSelector(g)));else if(g&&g!=="#"){a.data(c,"href.tabs",g),a.data(c,"load.tabs",g.replace(/#.*$/,""));var j=d._tabId(c);c.href="#"+j;var k=d.element.find("#"+j);k.length||(k=a(e.panelTemplate).attr("id",j).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(d.panels[b-1]||d.list),k.data("destroy.tabs",!0)),d.panels=d.panels.add(k)}else e.disabled.push(b)}),c?(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"),e.selected===b?(location.hash&&this.anchors.each(function(a,b){if(b.hash==location.hash){e.selected=a;return!1}}),typeof e.selected!="number"&&e.cookie&&(e.selected=parseInt(d._cookie(),10)),typeof e.selected!="number"&&this.lis.filter(".ui-tabs-selected").length&&(e.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"))),e.selected=e.selected||(this.lis.length?0:-1)):e.selected===null&&(e.selected=-1),e.selected=e.selected>=0&&this.anchors[e.selected]||e.selected<0?e.selected:0,e.disabled=a.unique(e.disabled.concat(a.map(this.lis.filter(".ui-state-disabled"),function(a,b){return d.lis.index(a)}))).sort(),a.inArray(e.selected,e.disabled)!=-1&&e.disabled.splice(a.inArray(e.selected,e.disabled),1),this.panels.addClass("ui-tabs-hide"),this.lis.removeClass("ui-tabs-selected ui-state-active"),e.selected>=0&&this.anchors.length&&(d.element.find(d._sanitizeSelector(d.anchors[e.selected].hash)).removeClass("ui-tabs-hide"),this.lis.eq(e.selected).addClass("ui-tabs-selected ui-state-active"),d.element.queue("tabs",function(){d._trigger("show",null,d._ui(d.anchors[e.selected],d.element.find(d._sanitizeSelector(d.anchors[e.selected].hash))[0]))}),this.load(e.selected)),a(window).bind("unload",function(){d.lis.add(d.anchors).unbind(".tabs"),d.lis=d.anchors=d.panels=null})):e.selected=this.lis.index(this.lis.filter(".ui-tabs-selected")),this.element[e.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible"),e.cookie&&this._cookie(e.selected,e.cookie);for(var g=0,h;h=this.lis[g];g++)a(h)[a.inArray(g,e.disabled)!=-1&&!a(h).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled");e.cache===!1&&this.anchors.removeData("cache.tabs"),this.lis.add(this.anchors).unbind(".tabs");if(e.event!=="mouseover"){var i=function(a,b){b.is(":not(.ui-state-disabled)")&&b.addClass("ui-state-"+a)},j=function(a,b){b.removeClass("ui-state-"+a)};this.lis.bind("mouseover.tabs",function(){i("hover",a(this))}),this.lis.bind("mouseout.tabs",function(){j("hover",a(this))}),this.anchors.bind("focus.tabs",function(){i("focus",a(this).closest("li"))}),this.anchors.bind("blur.tabs",function(){j("focus",a(this).closest("li"))})}var k,l;e.fx&&(a.isArray(e.fx)?(k=e.fx[0],l=e.fx[1]):k=l=e.fx);var n=l?function(b,c){a(b).closest("li").addClass("ui-tabs-selected ui-state-active"),c.hide().removeClass("ui-tabs-hide").animate(l,l.duration||"normal",function(){m(c,l),d._trigger("show",null,d._ui(b,c[0]))})}:function(b,c){a(b).closest("li").addClass("ui-tabs-selected ui-state-active"),c.removeClass("ui-tabs-hide"),d._trigger("show",null,d._ui(b,c[0]))},o=k?function(a,b){b.animate(k,k.duration||"normal",function(){d.lis.removeClass("ui-tabs-selected ui-state-active"),b.addClass("ui-tabs-hide"),m(b,k),d.element.dequeue("tabs")})}:function(a,b,c){d.lis.removeClass("ui-tabs-selected ui-state-active"),b.addClass("ui-tabs-hide"),d.element.dequeue("tabs")};this.anchors.bind(e.event+".tabs",function(){var b=this,c=a(b).closest("li"),f=d.panels.filter(":not(.ui-tabs-hide)"),g=d.element.find(d._sanitizeSelector(b.hash));if(c.hasClass("ui-tabs-selected")&&!e.collapsible||c.hasClass("ui-state-disabled")||c.hasClass("ui-state-processing")||d.panels.filter(":animated").length||d._trigger("select",null,d._ui(this,g[0]))===!1){this.blur();return!1}e.selected=d.anchors.index(this),d.abort();if(e.collapsible){if(c.hasClass("ui-tabs-selected")){e.selected=-1,e.cookie&&d._cookie(e.selected,e.cookie),d.element.queue("tabs",function(){o(b,f)}).dequeue("tabs"),this.blur();return!1}if(!f.length){e.cookie&&d._cookie(e.selected,e.cookie),d.element.queue("tabs",function(){n(b,g)}),d.load(d.anchors.index(this)),this.blur();return!1}}e.cookie&&d._cookie(e.selected,e.cookie);if(g.length)f.length&&d.element.queue("tabs",function(){o(b,f)}),d.element.queue("tabs",function(){n(b,g)}),d.load(d.anchors.index(this));else throw"jQuery UI Tabs: Mismatching fragment identifier.";a.browser.msie&&this.blur()}),this.anchors.bind("click.tabs",function(){return!1})},_getIndex:function(a){typeof a=="string"&&(a=this.anchors.index(this.anchors.filter("[href$="+a+"]")));return a},destroy:function(){var b=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 b=a.data(this,"href.tabs");b&&(this.href=b);var c=a(this).unbind(".tabs");a.each(["href","load","cache"],function(a,b){c.removeData(b+".tabs")})}),this.lis.unbind(".tabs").add(this.panels).each(function(){a.data(this,"destroy.tabs")?a(this).remove():a(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"].join(" "))}),b.cookie&&this._cookie(null,b.cookie);return this},add:function(c,d,e){e===b&&(e=this.anchors.length);var f=this,g=this.options,h=a(g.tabTemplate.replace(/#\{href\}/g,c).replace(/#\{label\}/g,d)),i=c.indexOf("#")?this._tabId(a("a",h)[0]):c.replace("#","");h.addClass("ui-state-default ui-corner-top").data("destroy.tabs",!0);var j=f.element.find("#"+i);j.length||(j=a(g.panelTemplate).attr("id",i).data("destroy.tabs",!0)),j.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide"),e>=this.lis.length?(h.appendTo(this.list),j.appendTo(this.list[0].parentNode)):(h.insertBefore(this.lis[e]),j.insertBefore(this.panels[e])),g.disabled=a.map(g.disabled,function(a,b){return a>=e?++a:a}),this._tabify(),this.anchors.length==1&&(g.selected=0,h.addClass("ui-tabs-selected ui-state-active"),j.removeClass("ui-tabs-hide"),this.element.queue("tabs",function(){f._trigger("show",null,f._ui(f.anchors[0],f.panels[0]))}),this.load(0)),this._trigger("add",null,this._ui(this.anchors[e],this.panels[e]));return this},remove:function(b){b=this._getIndex(b);var c=this.options,d=this.lis.eq(b).remove(),e=this.panels.eq(b).remove();d.hasClass("ui-tabs-selected")&&this.anchors.length>1&&this.select(b+(b+1=b?--a:a}),this._tabify(),this._trigger("remove",null,this._ui(d.find("a")[0],e[0]));return this},enable:function(b){b=this._getIndex(b);var c=this.options;if(a.inArray(b,c.disabled)!=-1){this.lis.eq(b).removeClass("ui-state-disabled"),c.disabled=a.grep(c.disabled,function(a,c){return a!=b}),this._trigger("enable",null,this._ui(this.anchors[b],this.panels[b]));return this}},disable:function(a){a=this._getIndex(a);var b=this,c=this.options;a!=c.selected&&(this.lis.eq(a).addClass("ui-state-disabled"),c.disabled.push(a),c.disabled.sort(),this._trigger("disable",null,this._ui(this.anchors[a],this.panels[a])));return this},select:function(a){a=this._getIndex(a);if(a==-1)if(this.options.collapsible&&this.options.selected!=-1)a=this.options.selected;else return this;this.anchors.eq(a).trigger(this.options.event+".tabs");return this},load:function(b){b=this._getIndex(b);var c=this,d=this.options,e=this.anchors.eq(b)[0],f=a.data(e,"load.tabs");this.abort();if(!f||this.element.queue("tabs").length!==0&&a.data(e,"cache.tabs"))this.element.dequeue("tabs");else{this.lis.eq(b).addClass("ui-state-processing");if(d.spinner){var g=a("span",e);g.data("label.tabs",g.html()).html(d.spinner)}this.xhr=a.ajax(a.extend({},d.ajaxOptions,{url:f,success:function(f,g){c.element.find(c._sanitizeSelector(e.hash)).html(f),c._cleanup(),d.cache&&a.data(e,"cache.tabs",!0),c._trigger("load",null,c._ui(c.anchors[b],c.panels[b]));try{d.ajaxOptions.success(f,g)}catch(h){}},error:function(a,f,g){c._cleanup(),c._trigger("load",null,c._ui(c.anchors[b],c.panels[b]));try{d.ajaxOptions.error(a,f,b,e)}catch(g){}}})),c.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)),this.xhr&&(this.xhr.abort(),delete this.xhr),this._cleanup();return this},url:function(a,b){this.anchors.eq(a).removeData("cache.tabs").data("load.tabs",b);return this},length:function(){return this.anchors.length}}),a.extend(a.ui.tabs,{version:"1.8.18"}),a.extend(a.ui.tabs.prototype,{rotation:null,rotate:function(a,b){var c=this,d=this.options,e=c._rotate||(c._rotate=function(b){clearTimeout(c.rotation),c.rotation=setTimeout(function(){var a=d.selected;c.select(++a").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e=document.activeElement;b.wrap(d),(b[0]===e||a.contains(b[0],e))&&a(e).focus(),d=b.parent(),b.css("position")=="static"?(d.css({position:"relative"}),b.css({position:"relative"})):(a.extend(c,{position:b.css("position"),zIndex:b.css("z-index")}),a.each(["top","left","bottom","right"],function(a,d){c[d]=b.css(d),isNaN(parseInt(c[d],10))&&(c[d]="auto")}),b.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"}));return d.css(c).show()},removeWrapper:function(b){var c,d=document.activeElement;if(b.parent().is(".ui-effects-wrapper")){c=b.parent().replaceWith(b),(b[0]===d||a.contains(b[0],d))&&a(d).focus();return c}return b},setTransition:function(b,c,d,e){e=e||{},a.each(c,function(a,c){unit=b.cssUnit(c),unit[0]>0&&(e[c]=unit[0]*d+unit[1])});return e}}),a.fn.extend({effect:function(b,c,d,e){var f=k.apply(this,arguments),g={options:f[1],duration:f[2],callback:f[3]},h=g.options.mode,i=a.effects[b];if(a.fx.off||!i)return h?this[h](g.duration,g.callback):this.each(function(){g.callback&&g.callback.call(this)});return i.call(this,g)},_show:a.fn.show,show:function(a){if(l(a))return this._show.apply(this,arguments);var b=k.apply(this,arguments);b[1].mode="show";return this.effect.apply(this,b)},_hide:a.fn.hide,hide:function(a){if(l(a))return this._hide.apply(this,arguments);var b=k.apply(this,arguments);b[1].mode="hide";return this.effect.apply(this,b)},__toggle:a.fn.toggle,toggle:function(b){if(l(b)||typeof b=="boolean"||a.isFunction(b))return this.__toggle.apply(this,arguments);var c=k.apply(this,arguments);c[1].mode="toggle";return this.effect.apply(this,c)},cssUnit:function(b){var c=this.css(b),d=[];a.each(["em","px","%","pt"],function(a,b){c.indexOf(b)>0&&(d=[parseFloat(c),b])});return d}}),a.easing.jswing=a.easing.swing,a.extend(a.easing,{def:"easeOutQuad",swing:function(b,c,d,e,f){return a.easing[a.easing.def](b,c,d,e,f)},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){if((b/=e/2)<1)return d/2*b*b+c;return-d/2*(--b*(b-2)-1)+c},easeInCubic:function(a,b,c,d,e){return d*(b/=e)*b*b+c},easeOutCubic:function(a,b,c,d,e){return d*((b=b/e-1)*b*b+1)+c},easeInOutCubic:function(a,b,c,d,e){if((b/=e/2)<1)return d/2*b*b*b+c;return d/2*((b-=2)*b*b+2)+c},easeInQuart:function(a,b,c,d,e){return d*(b/=e)*b*b*b+c},easeOutQuart:function(a,b,c,d,e){return-d*((b=b/e-1)*b*b*b-1)+c},easeInOutQuart:function(a,b,c,d,e){if((b/=e/2)<1)return d/2*b*b*b*b+c;return-d/2*((b-=2)*b*b*b-2)+c},easeInQuint:function(a,b,c,d,e){return d*(b/=e)*b*b*b*b+c},easeOutQuint:function(a,b,c,d,e){return d*((b=b/e-1)*b*b*b*b+1)+c},easeInOutQuint:function(a,b,c,d,e){if((b/=e/2)<1)return d/2*b*b*b*b*b+c;return d/2*((b-=2)*b*b*b*b+2)+c},easeInSine:function(a,b,c,d,e){return-d*Math.cos(b/e*(Math.PI/2))+d+c},easeOutSine:function(a,b,c,d,e){return d*Math.sin(b/e*(Math.PI/2))+c},easeInOutSine:function(a,b,c,d,e){return-d/2*(Math.cos(Math.PI*b/e)-1)+c},easeInExpo:function(a,b,c,d,e){return b==0?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){if(b==0)return c;if(b==e)return c+d;if((b/=e/2)<1)return d/2*Math.pow(2,10*(b-1))+c;return d/2*(-Math.pow(2,-10*--b)+2)+c},easeInCirc:function(a,b,c,d,e){return-d*(Math.sqrt(1-(b/=e)*b)-1)+c},easeOutCirc:function(a,b,c,d,e){return d*Math.sqrt(1-(b=b/e-1)*b)+c},easeInOutCirc:function(a,b,c,d,e){if((b/=e/2)<1)return-d/2*(Math.sqrt(1-b*b)-1)+c;return d/2*(Math.sqrt(1-(b-=2)*b)+1)+c},easeInElastic:function(a,b,c,d,e){var f=1.70158,g=0,h=d;if(b==0)return c;if((b/=e)==1)return c+d;g||(g=e*.3);if(h