PageSourceSearch

https://oncms.net/assets/launchpad/app.js?ts=1791465329

js oncms.net collected 2026-10-09 23:08:38 UTC 339,081 bytes, 11 lines download raw bytes

1function _ajax_request(t,e,n,i,r){return jQuery.isFunction(e)&&(n=e,e={}),jQuery.ajax({type:r,url:t,data:e,success:n,dataType:i})}!function(t,e){function n(t){return O.isWindow(t)?t:9===t.nodeType?t.defaultView||t.parentWindow:!1}function i(t){if(!be[t]){var e=$.body,n=O("<"+t+">").appendTo(e),i=n.css("display");n.remove(),("none"===i||""===i)&&(ge||(ge=$.createElement("iframe"),ge.frameBorder=ge.width=ge.height=0),e.appendChild(ge),me&&ge.createElement||(me=(ge.contentWindow||ge.contentDocument).document,me.write(("CSS1Compat"===$.compatMode?"<!doctype html>":"")+"<html><body>"),me.close()),n=me.createElement(t),me.body.appendChild(n),i=O.css(n,"display"),e.removeChild(ge)),be[t]=i}return be[t]}function r(t,e){var n={};return O.each(ke.concat.apply([],ke.slice(0,e)),function(){n[this]=t}),n}function s(){ye=e}function o(){return setTimeout(s,0),ye=O.now()}function a(){try{return new t.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}function l(){try{return new t.XMLHttpRequest}catch(e){}}function c(t,n){t.dataFilter&&(n=t.dataFilter(n,t.dataType));var i,r,s,o,a,l,c,u,h=t.dataTypes,d={},p=h.length,f=h[0];for(i=1;p>i;i++){if(1===i)for(r in t.converters)"string"==typeof r&&(d[r.toLowerCase()]=t.converters[r]);if(o=f,f=h[i],"*"===f)f=o;else if("*"!==o&&o!==f){if(a=o+" "+f,l=d[a]||d["* "+f],!l){u=e;for(c in d)if(s=c.split(" "),(s[0]===o||"*"===s[0])&&(u=d[s[1]+" "+f])){c=d[c],c===!0?l=u:u===!0&&(l=c);break}}!l&&!u&&O.error("No conversion from "+a.replace(" "," to ")),l!==!0&&(n=l?l(n):u(c(n)))}}return n}function u(t,n,i){var r,s,o,a,l=t.contents,c=t.dataTypes,u=t.responseFields;for(s in u)s in i&&(n[u[s]]=i[s]);for(;"*"===c[0];)c.shift(),r===e&&(r=t.mimeType||n.getResponseHeader("content-type"));if(r)for(s in l)if(l[s]&&l[s].test(r)){c.unshift(s);break}if(c[0]in i)o=c[0];else{for(s in i){if(!c[0]||t.converters[s+" "+c[0]]){o=s;break}a||(a=s)}o=o||a}return o?(o!==c[0]&&c.unshift(o),i[o]):void 0}function h(t,e,n,i){if(O.isArray(e))O.each(e,function(e,r){n||qt.test(t)?i(t,r):h(t+"["+("object"==typeof r||O.isArray(r)?e:"")+"]",r,n,i)});else if(n||null==e||"object"!=typeof e)i(t,e);else for(var r in e)h(t+"["+r+"]",e[r],n,i)}function d(t,n){var i,r,s=O.ajaxSettings.flatOptions||{};for(i in n)n[i]!==e&&((s[i]?t:r||(r={}))[i]=n[i]);r&&O.extend(!0,t,r)}function p(t,n,i,r,s,o){s=s||n.dataTypes[0],o=o||{},o[s]=!0;for(var a,l=t[s],c=0,u=l?l.length:0,h=t===oe;u>c&&(h||!a);c++)a=l[c](n,i,r),"string"==typeof a&&(!h||o[a]?a=e:(n.dataTypes.unshift(a),a=p(t,n,i,r,a,o)));return(h||!a)&&!o["*"]&&(a=p(t,n,i,r,"*",o)),a}function f(t){return function(e,n){if("string"!=typeof e&&(n=e,e="*"),O.isFunction(n))for(var i,r,s,o=e.toLowerCase().split(ne),a=0,l=o.length;l>a;a++)i=o[a],s=/^\+/.test(i),s&&(i=i.substr(1)||"*"),r=t[i]=t[i]||[],r[s?"unshift":"push"](n)}}function g(t,e,n){var i="width"===e?t.offsetWidth:t.offsetHeight,r="width"===e?Wt:Bt,s=0,o=r.length;if(i>0){if("border"!==n)for(;o>s;s++)n||(i-=parseFloat(O.css(t,"padding"+r[s]))||0),"margin"===n?i+=parseFloat(O.css(t,n+r[s]))||0:i-=parseFloat(O.css(t,"border"+r[s]+"Width"))||0;return i+"px"}if(i=Et(t,e,e),(0>i||null==i)&&(i=t.style[e]||0),i=parseFloat(i)||0,n)for(;o>s;s++)i+=parseFloat(O.css(t,"padding"+r[s]))||0,"padding"!==n&&(i+=parseFloat(O.css(t,"border"+r[s]+"Width"))||0),"margin"===n&&(i+=parseFloat(O.css(t,n+r[s]))||0);return i+"px"}function m(t,e){e.src?O.ajax({url:e.src,async:!1,dataType:"script"}):O.globalEval((e.text||e.textContent||e.innerHTML||"").replace(Ct,"/*$0*/")),e.parentNode&&e.parentNode.removeChild(e)}function v(t){var e=$.createElement("div");return Dt.appendChild(e),e.innerHTML=t.outerHTML,e.firstChild}function y(t){var e=(t.nodeName||"").toLowerCase();"input"===e?b(t):"script"!==e&&"undefined"!=typeof t.getElementsByTagName&&O.grep(t.getElementsByTagName("input"),b)}function b(t){("checkbox"===t.type||"radio"===t.type)&&(t.defaultChecked=t.checked)}function x(t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName("*"):"undefined"!=typeof t.querySelectorAll?t.querySelectorAll("*"):[]}function w(t,e){var n;1===e.nodeType&&(e.clearAttributes&&e.clearAttributes(),e.mergeAttributes&&e.mergeAttributes(t),n=e.nodeName.toLowerCase(),"object"===n?e.outerHTML=t.outerHTML:"input"!==n||"checkbox"!==t.type&&"radio"!==t.type?"option"===n?e.selected=t.defaultSelected:("input"===n||"textarea"===n)&&(e.defaultValue=t.defaultValue):(t.checked&&(e.defaultChecked=e.checked=t.checked),e.value!==t.value&&(e.value=t.value)),e.removeAttribute(O.expando))}function k(t,e){if(1===e.nodeType&&O.hasData(t)){var n,i,r,s=O._data(t),o=O._data(e,s),a=s.events;if(a){delete o.handle,o.events={};for(n in a)for(i=0,r=a[n].length;r>i;i++)O.event.add(e,n+(a[n][i].namespace?".":"")+a[n][i].namespace,a[n][i],a[n][i].data)}o.data&&(o.data=O.extend({},o.data))}}function _(t,e){return O.nodeName(t,"table")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function T(t){var e=gt.split("|"),n=t.createDocumentFragment();if(n.createElement)for(;e.length;)n.createElement(e.pop());return n}function S(t,e,n){if(e=e||0,O.isFunction(e))return O.grep(t,function(t,i){var r=!!e.call(t,i,t);return r===n});if(e.nodeType)return O.grep(t,function(t,i){return t===e===n});if("string"==typeof e){var i=O.grep(t,function(t){return 1===t.nodeType});if(ht.test(e))return O.filter(e,i,!n);e=O.filter(e,i)}return O.grep(t,function(t,i){return O.inArray(t,e)>=0===n})}function A(t){return!t||!t.parentNode||11===t.parentNode.nodeType}function C(){return!0}function P(){return!1}function D(t,e,n){var i=e+"defer",r=e+"queue",s=e+"mark",o=O._data(t,i);o&&("queue"===n||!O._data(t,r))&&("mark"===n||!O._data(t,s))&&setTimeout(function(){!O._data(t,r)&&!O._data(t,s)&&(O.removeData(t,i,!0),o.fire())},0)}function E(t){for(var e in t)if(("data"!==e||!O.isEmptyObject(t[e]))&&"toJSON"!==e)return!1;return!0}function N(t,n,i){if(i===e&&1===t.nodeType){var r="data-"+n.replace(W,"-$1").toLowerCase();if(i=t.getAttribute(r),"string"==typeof i){try{i="true"===i?!0:"false"===i?!1:"null"===i?null:O.isNumeric(i)?parseFloat(i):j.test(i)?O.parseJSON(i):i}catch(s){}O.data(t,n,i)}else i=e}return i}function L(t){var e,n,i=F[t]={};for(t=t.split(/\s+/),e=0,n=t.length;n>e;e++)i[t[e]]=!0;return i}var $=t.document,I=t.navigator,M=t.location,O=function(){function n(){if(!a.isReady){try{$.documentElement.doScroll("left")}catch(t){return void setTimeout(n,1)}a.ready()}}var i,r,s,o,a=function(t,e){return new a.fn.init(t,e,i)},l=t.jQuery,c=t.$,u=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,h=/\S/,d=/^\s+/,p=/\s+$/,f=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,g=/^[\],:{}\s]*$/,m=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,v=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,y=/(?:^|:|,)(?:\s*\[)+/g,b=/(webkit)[ \/]([\w.]+)/,x=/(opera)(?:.*version)?[ \/]([\w.]+)/,w=/(msie) ([\w.]+)/,k=/(mozilla)(?:.*? rv:([\w.]+))?/,_=/-([a-z]|[0-9])/gi,T=/^-ms-/,S=function(t,e){return(e+"").toUpperCase()},A=I.userAgent,C=Object.prototype.toString,P=Object.prototype.hasOwnProperty,D=Array.prototype.push,E=Array.prototype.slice,N=String.prototype.trim,L=Array.prototype.indexOf,M={};return a.fn=a.prototype={constructor:a,init:function(t,n,i){var r,s,o,l;if(!t)return this;
vendor: 4,393 bytes, line 1
1if(t.nodeType)return this.context=this[0]=t,this.length=1,this;if("body"===t&&!n&&$.body)return this.context=$,this[0]=$.body,this.selector=t,this.length=1,this;if("string"==typeof t){if(r="<"!==t.charAt(0)||">"!==t.charAt(t.length-1)||t.length<3?u.exec(t):[null,t,null],r&&(r[1]||!n)){if(r[1])return n=n instanceof a?n[0]:n,l=n?n.ownerDocument||n:$,o=f.exec(t),o?a.isPlainObject(n)?(t=[$.createElement(o[1])],a.fn.attr.call(t,n,!0)):t=[l.createElement(o[1])]:(o=a.buildFragment([r[1]],[l]),t=(o.cacheable?a.clone(o.fragment):o.fragment).childNodes),a.merge(this,t);if(s=$.getElementById(r[2]),s&&s.parentNode){if(s.id!==r[2])return i.find(t);this.length=1,this[0]=s}return this.context=$,this.selector=t,this}return!n||n.jquery?(n||i).find(t):this.constructor(n).find(t)}return a.isFunction(t)?i.ready(t):(t.selector!==e&&(this.selector=t.selector,this.context=t.context),a.makeArray(t,this))},selector:"",jquery:"1.7.1",length:0,size:function(){return this.length},toArray:function(){return E.call(this,0)},get:function(t){return null==t?this.toArray():0>t?this[this.length+t]:this[t]},pushStack:function(t,e,n){var i=this.constructor();return a.isArray(t)?D.apply(i,t):a.merge(i,t),i.prevObject=this,i.context=this.context,"find"===e?i.selector=this.selector+(this.selector?" ":"")+n:e&&(i.selector=this.selector+"."+e+"("+n+")"),i},each:function(t,e){return a.each(this,t,e)},ready:function(t){return a.bindReady(),s.add(t),this},eq:function(t){return t=+t,-1===t?this.slice(t):this.slice(t,t+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(E.apply(this,arguments),"slice",E.call(arguments).join(","))},map:function(t){return this.pushStack(a.map(this,function(e,n){return t.call(e,n,e)}))},end:function(){return this.prevObject||this.constructor(null)},push:D,sort:[].sort,splice:[].splice},a.fn.init.prototype=a.fn,a.extend=a.fn.extend=function(){var t,n,i,r,s,o,l=arguments[0]||{},c=1,u=arguments.length,h=!1;for("boolean"==typeof l&&(h=l,l=arguments[1]||{},c=2),"object"!=typeof l&&!a.isFunction(l)&&(l={}),u===c&&(l=this,--c);u>c;c++)if(null!=(t=arguments[c]))for(n in t)i=l[n],r=t[n],l!==r&&(h&&r&&(a.isPlainObject(r)||(s=a.isArray(r)))?(s?(s=!1,o=i&&a.isArray(i)?i:[]):o=i&&a.isPlainObject(i)?i:{},l[n]=a.extend(h,o,r)):r!==e&&(l[n]=r));return l},a.extend({noConflict:function(e){return t.$===a&&(t.$=c),e&&t.jQuery===a&&(t.jQuery=l),a},isReady:!1,readyWait:1,holdReady:function(t){t?a.readyWait++:a.ready(!0)},ready:function(t){if(t===!0&&!--a.readyWait||t!==!0&&!a.isReady){if(!$.body)return setTimeout(a.ready,1);if(a.isReady=!0,t!==!0&&--a.readyWait>0)return;s.fireWith($,[a]),a.fn.trigger&&a($).trigger("ready").off("ready")}},bindReady:function(){if(!s){if(s=a.Callbacks("once memory"),"complete"===$.readyState)return setTimeout(a.ready,1);if($.addEventListener)$.addEventListener("DOMContentLoaded",o,!1),t.addEventListener("load",a.ready,!1);else if($.attachEvent){$.attachEvent("onreadystatechange",o),t.attachEvent("onload",a.ready);var e=!1;try{e=null==t.frameElement}catch(i){}$.documentElement.doScroll&&e&&n()}}},isFunction:function(t){return"function"===a.type(t)},isArray:Array.isArray||function(t){return"array"===a.type(t)},isWindow:function(t){return t&&"object"==typeof t&&"setInterval"in t},isNumeric:function(t){return!isNaN(parseFloat(t))&&isFinite(t)},type:function(t){return null==t?String(t):M[C.call(t)]||"object"},isPlainObject:function(t){if(!t||"object"!==a.type(t)||t.nodeType||a.isWindow(t))return!1;try{if(t.constructor&&!P.call(t,"constructor")&&!P.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}var i;for(i in t);return i===e||P.call(t,i)},isEmptyObject:function(t){for(var e in t)return!1;return!0},error:function(t){throw new Error(t)},parseJSON:function(e){return"string"==typeof e&&e?(e=a.trim(e),t.JSON&&t.JSON.parse?t.JSON.parse(e):g.test(e.replace(m,"@").replace(v,"]").replace(y,""))?new Function("return "+e)():void a.error("Invalid JSON: "+e)):null},parseXML:function(n){var i,r;try{t.DOMParser?(r=new DOMParser,i=r.parseFromString(n,"text/xml")):(i=new ActiveXObject("Microsoft.XMLDOM"),i.async="false",i.loadXML(n))}catch(s){i=e}return(!i||!i.documentElement||i.getElementsByTagName("parsererror").length)&&a.error("Invalid XML: "+n),i},noop:function(){},globalEval:function(e){e&&h.test(e)&&(t.execScript||function(e){t.eval.call(t,e)})(e)}
1,camelCase:function(t){return t.replace(T,"ms-").replace(_,S)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toUpperCase()===e.toUpperCase()},each:function(t,n,i){var r,s=0,o=t.length,l=o===e||a.isFunction(t);if(i)if(l){for(r in t)if(n.apply(t[r],i)===!1)break}else for(;o>s&&n.apply(t[s++],i)!==!1;);else if(l){for(r in t)if(n.call(t[r],r,t[r])===!1)break}else for(;o>s&&n.call(t[s],s,t[s++])!==!1;);return t},trim:N?function(t){return null==t?"":N.call(t)}:function(t){return null==t?"":(t+"").replace(d,"").replace(p,"")},makeArray:function(t,e){var n=e||[];if(null!=t){var i=a.type(t);null==t.length||"string"===i||"function"===i||"regexp"===i||a.isWindow(t)?D.call(n,t):a.merge(n,t)}return n},inArray:function(t,e,n){var i;if(e){if(L)return L.call(e,t,n);for(i=e.length,n=n?0>n?Math.max(0,i+n):n:0;i>n;n++)if(n in e&&e[n]===t)return n}return-1},merge:function(t,n){var i=t.length,r=0;if("number"==typeof n.length)for(var s=n.length;s>r;r++)t[i++]=n[r];else for(;n[r]!==e;)t[i++]=n[r++];return t.length=i,t},grep:function(t,e,n){var i,r=[];n=!!n;for(var s=0,o=t.length;o>s;s++)i=!!e(t[s],s),n!==i&&r.push(t[s]);return r},map:function(t,n,i){var r,s,o=[],l=0,c=t.length,u=t instanceof a||c!==e&&"number"==typeof c&&(c>0&&t[0]&&t[c-1]||0===c||a.isArray(t));if(u)for(;c>l;l++)r=n(t[l],l,i),null!=r&&(o[o.length]=r);else for(s in t)r=n(t[s],s,i),null!=r&&(o[o.length]=r);return o.concat.apply([],o)},guid:1,proxy:function(t,n){if("string"==typeof n){var i=t[n];n=t,t=i}if(!a.isFunction(t))return e;var r=E.call(arguments,2),s=function(){return t.apply(n,r.concat(E.call(arguments)))};return s.guid=t.guid=t.guid||s.guid||a.guid++,s},access:function(t,n,i,r,s,o){var l=t.length;if("object"==typeof n){for(var c in n)a.access(t,c,n[c],r,s,i);return t}if(i!==e){r=!o&&r&&a.isFunction(i);for(var u=0;l>u;u++)s(t[u],n,r?i.call(t[u],u,s(t[u],n)):i,o);return t}return l?s(t[0],n):e},now:function(){return(new Date).getTime()},uaMatch:function(t){t=t.toLowerCase();var e=b.exec(t)||x.exec(t)||w.exec(t)||t.indexOf("compatible")<0&&k.exec(t)||[];return{browser:e[1]||"",version:e[2]||"0"}},sub:function(){function t(e,n){return new t.fn.init(e,n)}a.extend(!0,t,this),t.superclass=this,t.fn=t.prototype=this(),t.fn.constructor=t,t.sub=this.sub,t.fn.init=function(n,i){return i&&i instanceof a&&!(i instanceof t)&&(i=t(i)),a.fn.init.call(this,n,i,e)},t.fn.init.prototype=t.fn;var e=t($);return t},browser:{}}),a.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(t,e){M["[object "+e+"]"]=e.toLowerCase()}),r=a.uaMatch(A),r.browser&&(a.browser[r.browser]=!0,a.browser.version=r.version),a.browser.webkit&&(a.browser.safari=!0),h.test(" ")&&(d=/^[\s\xA0]+/,p=/[\s\xA0]+$/),i=a($),$.addEventListener?o=function(){$.removeEventListener("DOMContentLoaded",o,!1),a.ready()}:$.attachEvent&&(o=function(){"complete"===$.readyState&&($.detachEvent("onreadystatechange",o),a.ready())}),a}(),F={};O.Callbacks=function(t){t=t?F[t]||L(t):{};var n,i,r,s,o,a=[],l=[],c=function(e){var n,i,r,s;for(n=0,i=e.length;i>n;n++)r=e[n],s=O.type(r),"array"===s?c(r):"function"===s&&(!t.unique||!h.has(r))&&a.push(r)},u=function(e,c){for(c=c||[],n=!t.memory||[e,c],i=!0,o=r||0,r=0,s=a.length;a&&s>o;o++)if(a[o].apply(e,c)===!1&&t.stopOnFalse){n=!0;break}i=!1,a&&(t.once?n===!0?h.disable():a=[]:l&&l.length&&(n=l.shift(),h.fireWith(n[0],n[1])))},h={add:function(){if(a){var t=a.length;c(arguments),i?s=a.length:n&&n!==!0&&(r=t,u(n[0],n[1]))}return this},remove:function(){if(a)for(var e=arguments,n=0,r=e.length;r>n;n++)for(var l=0;l<a.length&&(e[n]!==a[l]||(i&&s>=l&&(s--,o>=l&&o--),a.splice(l--,1),!t.unique));l++);return this},has:function(t){if(a)for(var e=0,n=a.length;n>e;e++)if(t===a[e])return!0;return!1},empty:function(){return a=[],this},disable:function(){return a=l=n=e,this},disabled:function(){return!a},lock:function(){return l=e,(!n||n===!0)&&h.disable(),this},locked:function(){return!l},fireWith:function(e,r){return l&&(i?t.once||l.push([e,r]):(!t.once||!n)&&u(e,r)),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!n}};return h};var H=[].slice;O.extend({Deferred:function(t){var e,n=O.Callbacks("once memory"),i=O.Callbacks("once memory"),r=O.Callbacks("memory"),s="pending",o={resolve:n,reject:i,notify:r},a={done:n.add,fail:i.add,progress:r.add,state:function(){return s},isResolved:n.fired,isRejected:i.fired,then:function(t,e,n){return l.done(t).fail(e).progress(n),this}
1,always:function(){return l.done.apply(l,arguments).fail.apply(l,arguments),this},pipe:function(t,e,n){return O.Deferred(function(i){O.each({done:[t,"resolve"],fail:[e,"reject"],progress:[n,"notify"]},function(t,e){var n,r=e[0],s=e[1];O.isFunction(r)?l[t](function(){n=r.apply(this,arguments),n&&O.isFunction(n.promise)?n.promise().then(i.resolve,i.reject,i.notify):i[s+"With"](this===l?i:this,[n])}):l[t](i[s])})}).promise()},promise:function(t){if(null==t)t=a;else for(var e in a)t[e]=a[e];return t}},l=a.promise({});for(e in o)l[e]=o[e].fire,l[e+"With"]=o[e].fireWith;return l.done(function(){s="resolved"},i.disable,r.lock).fail(function(){s="rejected"},n.disable,r.lock),t&&t.call(l,l),l},when:function(t){function e(t){return function(e){o[t]=arguments.length>1?H.call(arguments,0):e,l.notifyWith(c,o)}}function n(t){return function(e){i[t]=arguments.length>1?H.call(arguments,0):e,--a||l.resolveWith(l,i)}}var i=H.call(arguments,0),r=0,s=i.length,o=Array(s),a=s,l=1>=s&&t&&O.isFunction(t.promise)?t:O.Deferred(),c=l.promise();if(s>1){for(;s>r;r++)i[r]&&i[r].promise&&O.isFunction(i[r].promise)?i[r].promise().then(n(r),l.reject,e(r)):--a;a||l.resolveWith(l,i)}else l!==t&&l.resolveWith(l,s?[t]:[]);return c}}),O.support=function(){var e,n,i,r,s,o,a,l,c,u,h,d,p=$.createElement("div");$.documentElement;if(p.setAttribute("className","t"),p.innerHTML="   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>",n=p.getElementsByTagName("*"),i=p.getElementsByTagName("a")[0],!n||!n.length||!i)return{};r=$.createElement("select"),s=r.appendChild($.createElement("option")),o=p.getElementsByTagName("input")[0],e={leadingWhitespace:3===p.firstChild.nodeType,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(i.getAttribute("style")),hrefNormalized:"/a"===i.getAttribute("href"),opacity:/^0.55/.test(i.style.opacity),cssFloat:!!i.style.cssFloat,checkOn:"on"===o.value,optSelected:s.selected,getSetAttribute:"t"!==p.className,enctype:!!$.createElement("form").enctype,html5Clone:"<:nav></:nav>"!==$.createElement("nav").cloneNode(!0).outerHTML,submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},o.checked=!0,e.noCloneChecked=o.cloneNode(!0).checked,r.disabled=!0,e.optDisabled=!s.disabled;try{delete p.test}catch(f){e.deleteExpando=!1}if(!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",function(){e.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick")),o=$.createElement("input"),o.value="t",o.setAttribute("type","radio"),e.radioValue="t"===o.value,o.setAttribute("checked","checked"),p.appendChild(o),l=$.createDocumentFragment(),l.appendChild(p.lastChild),e.checkClone=l.cloneNode(!0).cloneNode(!0).lastChild.checked,e.appendChecked=o.checked,l.removeChild(o),l.appendChild(p),p.innerHTML="",t.getComputedStyle&&(a=$.createElement("div"),a.style.width="0",a.style.marginRight="0",p.style.width="2px",p.appendChild(a),e.reliableMarginRight=0===(parseInt((t.getComputedStyle(a,null)||{marginRight:0}).marginRight,10)||0)),p.attachEvent)for(h in{submit:1,change:1,focusin:1})u="on"+h,d=u in p,d||(p.setAttribute(u,"return;"),d="function"==typeof p[u]),e[h+"Bubbles"]=d;return l.removeChild(p),l=r=s=a=p=o=null,O(function(){var t,n,i,r,s,o,a,l,u,h,f=$.getElementsByTagName("body")[0];!f||(o=1,a="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;",l="visibility:hidden;border:0;",u="style='"+a+"border:5px solid #000;padding:0;'",h="<div "+u+"><div></div></div><table "+u+" cellpadding='0' cellspacing='0'><tr><td></td></tr></table>",t=$.createElement("div"),t.style.cssText=l+"width:0;height:0;position:static;top:0;margin-top:"+o+"px",f.insertBefore(t,f.firstChild),p=$.createElement("div"),t.appendChild(p),p.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>",c=p.getElementsByTagName("td"),d=0===c[0].offsetHeight,c[0].style.display="",c[1].style.display="none",e.reliableHiddenOffsets=d&&0===c[0].offsetHeight,p.innerHTML="",p.style.width=p.style.paddingLeft="1px",O.boxModel=e.boxModel=2===p.offsetWidth,"undefined"!=typeof p.style.zoom&&(p.style.display="inline",p.style.zoom=1,e.inlineBlockNeedsLayout=2===p.offsetWidth,p.style.display="",p.innerHTML="<div style='width:4px;'></div>",e.shrinkWrapBlocks=2!==p.offsetWidth),p.style.cssText=a+l,p.innerHTML=h,n=p.firstChild,i=n.firstChild,r=n.nextSibling.firstChild.firstChild,s={doesNotAddBorder:5!==i.offsetTop,doesAddBorderForTableAndCells:5===r.offsetTop},i.style.position="fixed",i.style.top="20px",s.fixedPosition=20===i.offsetTop||15===i.offsetTop,i.style.position=i.style.top="",n.style.overflow="hidden",n.style.position="relative",s.subtractsBorderForOverflowNotVisible=-5===i.offsetTop,s.doesNotIncludeMarginInBodyOffset=f.offsetTop!==o,f.removeChild(t),p=t=null,O.extend(e,s))}),e}();var j=/^(?:\{.*\}|\[.*\])$/,W=/([A-Z])/g;O.extend({cache:{},uuid:0,expando:"jQuery"+(O.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0}
1,hasData:function(t){return t=t.nodeType?O.cache[t[O.expando]]:t[O.expando],!!t&&!E(t)},data:function(t,n,i,r){if(O.acceptData(t)){var s,o,a,l=O.expando,c="string"==typeof n,u=t.nodeType,h=u?O.cache:t,d=u?t[l]:t[l]&&l,p="events"===n;if((!d||!h[d]||!p&&!r&&!h[d].data)&&c&&i===e)return;return d||(u?t[l]=d=++O.uuid:d=l),h[d]||(h[d]={},u||(h[d].toJSON=O.noop)),("object"==typeof n||"function"==typeof n)&&(r?h[d]=O.extend(h[d],n):h[d].data=O.extend(h[d].data,n)),s=o=h[d],r||(o.data||(o.data={}),o=o.data),i!==e&&(o[O.camelCase(n)]=i),p&&!o[n]?s.events:(c?(a=o[n],null==a&&(a=o[O.camelCase(n)])):a=o,a)}},removeData:function(t,e,n){if(O.acceptData(t)){var i,r,s,o=O.expando,a=t.nodeType,l=a?O.cache:t,c=a?t[o]:o;if(!l[c])return;if(e&&(i=n?l[c]:l[c].data)){O.isArray(e)||(e in i?e=[e]:(e=O.camelCase(e),e=e in i?[e]:e.split(" ")));for(r=0,s=e.length;s>r;r++)delete i[e[r]];if(!(n?E:O.isEmptyObject)(i))return}if(!n&&(delete l[c].data,!E(l[c])))return;O.support.deleteExpando||!l.setInterval?delete l[c]:l[c]=null,a&&(O.support.deleteExpando?delete t[o]:t.removeAttribute?t.removeAttribute(o):t[o]=null)}},_data:function(t,e,n){return O.data(t,e,n,!0)},acceptData:function(t){if(t.nodeName){var e=O.noData[t.nodeName.toLowerCase()];if(e)return e!==!0&&t.getAttribute("classid")===e}return!0}}),O.fn.extend({data:function(t,n){var i,r,s,o=null;if("undefined"==typeof t){if(this.length&&(o=O.data(this[0]),1===this[0].nodeType&&!O._data(this[0],"parsedAttrs"))){r=this[0].attributes;for(var a=0,l=r.length;l>a;a++)s=r[a].name,0===s.indexOf("data-")&&(s=O.camelCase(s.substring(5)),N(this[0],s,o[s]));O._data(this[0],"parsedAttrs",!0)}return o}return"object"==typeof t?this.each(function(){O.data(this,t)}):(i=t.split("."),i[1]=i[1]?"."+i[1]:"",n===e?(o=this.triggerHandler("getData"+i[1]+"!",[i[0]]),o===e&&this.length&&(o=O.data(this[0],t),o=N(this[0],t,o)),o===e&&i[1]?this.data(i[0]):o):this.each(function(){var e=O(this),r=[i[0],n];e.triggerHandler("setData"+i[1]+"!",r),O.data(this,t,n),e.triggerHandler("changeData"+i[1]+"!",r)}))},removeData:function(t){return this.each(function(){O.removeData(this,t)})}}),O.extend({_mark:function(t,e){t&&(e=(e||"fx")+"mark",O._data(t,e,(O._data(t,e)||0)+1))},_unmark:function(t,e,n){if(t!==!0&&(n=e,e=t,t=!1),e){n=n||"fx";var i=n+"mark",r=t?0:(O._data(e,i)||1)-1;r?O._data(e,i,r):(O.removeData(e,i,!0),D(e,n,"mark"))}},queue:function(t,e,n){var i;return t?(e=(e||"fx")+"queue",i=O._data(t,e),n&&(!i||O.isArray(n)?i=O._data(t,e,O.makeArray(n)):i.push(n)),i||[]):void 0},dequeue:function(t,e){e=e||"fx";var n=O.queue(t,e),i=n.shift(),r={};"inprogress"===i&&(i=n.shift()),i&&("fx"===e&&n.unshift("inprogress"),O._data(t,e+".run",r),i.call(t,function(){O.dequeue(t,e)},r)),n.length||(O.removeData(t,e+"queue "+e+".run",!0),D(t,e,"queue"))}}),O.fn.extend({queue:function(t,n){return"string"!=typeof t&&(n=t,t="fx"),n===e?O.queue(this[0],t):this.each(function(){var e=O.queue(this,t,n);"fx"===t&&"inprogress"!==e[0]&&O.dequeue(this,t)})},dequeue:function(t){return this.each(function(){O.dequeue(this,t)})},delay:function(t,e){return t=O.fx?O.fx.speeds[t]||t:t,e=e||"fx",this.queue(e,function(e,n){var i=setTimeout(e,t);n.stop=function(){clearTimeout(i)}})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,n){function i(){--l||s.resolveWith(o,[o])}"string"!=typeof t&&(n=t,t=e),t=t||"fx";for(var r,s=O.Deferred(),o=this,a=o.length,l=1,c=t+"defer",u=t+"queue",h=t+"mark";a--;)(r=O.data(o[a],c,e,!0)||(O.data(o[a],u,e,!0)||O.data(o[a],h,e,!0))&&O.data(o[a],c,O.Callbacks("once memory"),!0))&&(l++,r.add(i));return i(),s.promise()}});var B,z,R,X=/[\n\t\r]/g,q=/\s+/,Y=/\r/g,U=/^(?:button|input)$/i,V=/^(?:button|input|object|select|textarea)$/i,G=/^a(?:rea)?$/i,J=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,K=O.support.getSetAttribute;O.fn.extend({attr:function(t,e){return O.access(this,t,e,!0,O.attr)},removeAttr:function(t){return this.each(function(){O.removeAttr(this,t)})},prop:function(t,e){return O.access(this,t,e,!0,O.prop)},removeProp:function(t){return t=O.propFix[t]||t,this.each(function(){try{this[t]=e,delete this[t]}catch(n){}})},addClass:function(t){var e,n,i,r,s,o,a;if(O.isFunction(t))return this.each(function(e){O(this).addClass(t.call(this,e,this.className))});if(t&&"string"==typeof t)for(e=t.split(q),n=0,i=this.length;i>n;n++)if(r=this[n],1===r.nodeType)if(r.className||1!==e.length){for(s=" "+r.className+" ",o=0,a=e.length;a>o;o++)~s.indexOf(" "+e[o]+" ")||(s+=e[o]+" ");r.className=O.trim(s)}else r.className=t;return this},removeClass:function(t){var n,i,r,s,o,a,l;if(O.isFunction(t))return this.each(function(e){O(this).removeClass(t.call(this,e,this.className))});if(t&&"string"==typeof t||t===e)for(n=(t||"").split(q),i=0,r=this.length;r>i;i++)if(s=this[i],1===s.nodeType&&s.className)if(t){for(o=(" "+s.className+" ").replace(X," "),a=0,l=n.length;l>a;a++)o=o.replace(" "+n[a]+" "," ");s.className=O.trim(o)}else s.className="";return this},toggleClass:function(t,e){var n=typeof t,i="boolean"==typeof e;return O.isFunction(t)?this.each(function(n){O(this).toggleClass(t.call(this,n,this.className,e),e)}):this.each(function(){if("string"===n)for(var r,s=0,o=O(this),a=e,l=t.split(q);r=l[s++];)a=i?a:!o.hasClass(r),o[a?"addClass":"removeClass"](r);else("undefined"===n||"boolean"===n)&&(this.className&&O._data(this,"__className__",this.className),this.className=this.className||t===!1?"":O._data(this,"__className__")||"")})},hasClass:function(t){for(var e=" "+t+" ",n=0,i=this.length;i>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(X," ").indexOf(e)>-1)return!0;return!1},val:function(t){var n,i,r,s=this[0];return arguments.length?(r=O.isFunction(t),this.each(function(i){var s,o=O(this);1===this.nodeType&&(s=r?t.call(this,i,o.val()):t,null==s?s="":"number"==typeof s?s+="":O.isArray(s)&&(s=O.map(s,function(t){return null==t?"":t+""})),n=O.valHooks[this.nodeName.toLowerCase()]||O.valHooks[this.type],n&&"set"in n&&n.set(this,s,"value")!==e||(this.value=s))})):s?(n=O.valHooks[s.nodeName.toLowerCase()]||O.valHooks[s.type],n&&"get"in n&&(i=n.get(s,"value"))!==e?i:(i=s.value,"string"==typeof i?i.replace(Y,""):null==i?"":i)):void 0}}),O.extend({valHooks:{option:{get:function(t){var e=t.attributes.value;return!e||e.specified?t.value:t.text}},select:{get:function(t){var e,n,i,r,s=t.selectedIndex,o=[],a=t.options,l="select-one"===t.type;if(0>s)return null;for(n=l?s:0,i=l?s+1:a.length;i>n;n++)if(r=a[n],r.selected&&(O.support.optDisabled?!r.disabled:null===r.getAttribute("disabled"))&&(!r.parentNode.disabled||!O.nodeName(r.parentNode,"optgroup"))){if(e=O(r).val(),l)return e;o.push(e)}return l&&!o.length&&a.length?O(a[s]).val():o},set:function(t,e){var n=O.makeArray(e);return O(t).find("option").each(function(){this.selected=O.inArray(O(this).val(),n)>=0}),n.length||(t.selectedIndex=-1),n}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(t,n,i,r){var s,o,a,l=t.nodeType;return t&&3!==l&&8!==l&&2!==l?r&&n in O.attrFn?O(t)[n](i):"undefined"==typeof t.getAttribute?O.prop(t,n,i):(a=1!==l||!O.isXMLDoc(t),a&&(n=n.toLowerCase(),o=O.attrHooks[n]||(J.test(n)?z:B)),i!==e?null===i?void O.removeAttr(t,n):o&&"set"in o&&a&&(s=o.set(t,i,n))!==e?s:(t.setAttribute(n,""+i),i):o&&"get"in o&&a&&null!==(s=o.get(t,n))?s:(s=t.getAttribute(n),null===s?e:s)):void 0},removeAttr:function(t,e){var n,i,r,s,o=0;if(e&&1===t.nodeType)for(i=e.toLowerCase().split(q),s=i.length;s>o;o++)r=i[o],r&&(n=O.propFix[r]||r,O.attr(t,r,""),t.removeAttribute(K?r:n),J.test(r)&&n in t&&(t[n]=!1))}
1,attrHooks:{type:{set:function(t,e){if(U.test(t.nodeName)&&t.parentNode)O.error("type property can't be changed");else if(!O.support.radioValue&&"radio"===e&&O.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}},value:{get:function(t,e){return B&&O.nodeName(t,"button")?B.get(t,e):e in t?t.value:null},set:function(t,e,n){return B&&O.nodeName(t,"button")?B.set(t,e,n):void(t.value=e)}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(t,n,i){var r,s,o,a=t.nodeType;return t&&3!==a&&8!==a&&2!==a?(o=1!==a||!O.isXMLDoc(t),o&&(n=O.propFix[n]||n,s=O.propHooks[n]),i!==e?s&&"set"in s&&(r=s.set(t,i,n))!==e?r:t[n]=i:s&&"get"in s&&null!==(r=s.get(t,n))?r:t[n]):void 0},propHooks:{tabIndex:{get:function(t){var n=t.getAttributeNode("tabindex");return n&&n.specified?parseInt(n.value,10):V.test(t.nodeName)||G.test(t.nodeName)&&t.href?0:e}}}}),O.attrHooks.tabindex=O.propHooks.tabIndex,z={get:function(t,n){var i,r=O.prop(t,n);return r===!0||"boolean"!=typeof r&&(i=t.getAttributeNode(n))&&i.nodeValue!==!1?n.toLowerCase():e},set:function(t,e,n){var i;return e===!1?O.removeAttr(t,n):(i=O.propFix[n]||n,i in t&&(t[i]=!0),t.setAttribute(n,n.toLowerCase())),n}},K||(R={name:!0,id:!0},B=O.valHooks.button={get:function(t,n){var i;return i=t.getAttributeNode(n),i&&(R[n]?""!==i.nodeValue:i.specified)?i.nodeValue:e},set:function(t,e,n){var i=t.getAttributeNode(n);return i||(i=$.createAttribute(n),t.setAttributeNode(i)),i.nodeValue=e+""}},O.attrHooks.tabindex.set=B.set,O.each(["width","height"],function(t,e){O.attrHooks[e]=O.extend(O.attrHooks[e],{set:function(t,n){return""===n?(t.setAttribute(e,"auto"),n):void 0}})}),O.attrHooks.contenteditable={get:B.get,set:function(t,e,n){""===e&&(e="false"),B.set(t,e,n)}}),O.support.hrefNormalized||O.each(["href","src","width","height"],function(t,n){O.attrHooks[n]=O.extend(O.attrHooks[n],{get:function(t){var i=t.getAttribute(n,2);return null===i?e:i}})}),O.support.style||(O.attrHooks.style={get:function(t){return t.style.cssText.toLowerCase()||e},set:function(t,e){return t.style.cssText=""+e}}),O.support.optSelected||(O.propHooks.selected=O.extend(O.propHooks.selected,{get:function(t){var e=t.parentNode;return e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex),null}})),O.support.enctype||(O.propFix.enctype="encoding"),O.support.checkOn||O.each(["radio","checkbox"],function(){O.valHooks[this]={get:function(t){return null===t.getAttribute("value")?"on":t.value}}}),O.each(["radio","checkbox"],function(){O.valHooks[this]=O.extend(O.valHooks[this],{set:function(t,e){return O.isArray(e)?t.checked=O.inArray(O(t).val(),e)>=0:void 0}})});var Q=/^(?:textarea|input|select)$/i,Z=/^([^\.]*)?(?:\.(.+))?$/,tt=/\bhover(\.\S+)?\b/,et=/^key/,nt=/^(?:mouse|contextmenu)|click/,it=/^(?:focusinfocus|focusoutblur)$/,rt=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,st=function(t){var e=rt.exec(t);return e&&(e[1]=(e[1]||"").toLowerCase(),e[3]=e[3]&&new RegExp("(?:^|\\s)"+e[3]+"(?:\\s|$)")),e},ot=function(t,e){
2var n=t.attributes||{};return(!e[1]||t.nodeName.toLowerCase()===e[1])&&(!e[2]||(n.id||{}).value===e[2])&&(!e[3]||e[3].test((n["class"]||{}).value))},at=function(t){return O.event.special.hover?t:t.replace(tt,"mouseenter$1 mouseleave$1")};O.event={add:function(t,n,i,r,s){var o,a,l,c,u,h,d,p,f,g,m;if(3!==t.nodeType&&8!==t.nodeType&&n&&i&&(o=O._data(t))){for(i.handler&&(f=i,i=f.handler),i.guid||(i.guid=O.guid++),l=o.events,l||(o.events=l={}),a=o.handle,a||(o.handle=a=function(t){return"undefined"==typeof O||t&&O.event.triggered===t.type?e:O.event.dispatch.apply(a.elem,arguments)},a.elem=t),n=O.trim(at(n)).split(" "),c=0;c<n.length;c++)u=Z.exec(n[c])||[],h=u[1],d=(u[2]||"").split(".").sort(),m=O.event.special[h]||{},h=(s?m.delegateType:m.bindType)||h,m=O.event.special[h]||{},p=O.extend({type:h,origType:u[1],data:r,handler:i,guid:i.guid,selector:s,quick:st(s),namespace:d.join(".")},f),g=l[h],g||(g=l[h]=[],g.delegateCount=0,m.setup&&m.setup.call(t,r,d,a)!==!1||(t.addEventListener?t.addEventListener(h,a,!1):t.attachEvent&&t.attachEvent("on"+h,a))),m.add&&(m.add.call(t,p),p.handler.guid||(p.handler.guid=i.guid)),s?g.splice(g.delegateCount++,0,p):g.push(p),O.event.global[h]=!0;t=null}},global:{},remove:function(t,e,n,i,r){var s,o,a,l,c,u,h,d,p,f,g,m,v=O.hasData(t)&&O._data(t);
2if(v&&(d=v.events)){for(e=O.trim(at(e||"")).split(" "),s=0;s<e.length;s++)if(o=Z.exec(e[s])||[],a=l=o[1],c=o[2],a){for(p=O.event.special[a]||{},a=(i?p.delegateType:p.bindType)||a,g=d[a]||[],u=g.length,c=c?new RegExp("(^|\\.)"+c.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null,h=0;h<g.length;h++)m=g[h],(r||l===m.origType)&&(!n||n.guid===m.guid)&&(!c||c.test(m.namespace))&&(!i||i===m.selector||"**"===i&&m.selector)&&(g.splice(h--,1),m.selector&&g.delegateCount--,p.remove&&p.remove.call(t,m));0===g.length&&u!==g.length&&((!p.teardown||p.teardown.call(t,c)===!1)&&O.removeEvent(t,a,v.handle),delete d[a])}else for(a in d)O.event.remove(t,a+e[s],n,i,!0);O.isEmptyObject(d)&&(f=v.handle,f&&(f.elem=null),O.removeData(t,["events","handle"],!0))}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(n,i,r,s){if(!r||3!==r.nodeType&&8!==r.nodeType){var o,a,l,c,u,h,d,p,f,g,m=n.type||n,v=[];if(it.test(m+O.event.triggered))return;if(m.indexOf("!")>=0&&(m=m.slice(0,-1),a=!0),m.indexOf(".")>=0&&(v=m.split("."),m=v.shift(),v.sort()),(!r||O.event.customEvent[m])&&!O.event.global[m])return;if(n="object"==typeof n?n[O.expando]?n:new O.Event(m,n):new O.Event(m),n.type=m,n.isTrigger=!0,n.exclusive=a,n.namespace=v.join("."),n.namespace_re=n.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,h=m.indexOf(":")<0?"on"+m:"",!r){o=O.cache;for(l in o)o[l].events&&o[l].events[m]&&O.event.trigger(n,i,o[l].handle.elem,!0);return}if(n.result=e,n.target||(n.target=r),i=null!=i?O.makeArray(i):[],i.unshift(n),d=O.event.special[m]||{},d.trigger&&d.trigger.apply(r,i)===!1)return;if(f=[[r,d.bindType||m]],!s&&!d.noBubble&&!O.isWindow(r)){for(g=d.delegateType||m,c=it.test(g+m)?r:r.parentNode,u=null;c;c=c.parentNode)f.push([c,g]),u=c;u&&u===r.ownerDocument&&f.push([u.defaultView||u.parentWindow||t,g])}for(l=0;l<f.length&&!n.isPropagationStopped();l++)c=f[l][0],n.type=f[l][1],p=(O._data(c,"events")||{})[n.type]&&O._data(c,"handle"),p&&p.apply(c,i),p=h&&c[h],p&&O.acceptData(c)&&p.apply(c,i)===!1&&n.preventDefault();return n.type=m,!s&&!n.isDefaultPrevented()&&(!d._default||d._default.apply(r.ownerDocument,i)===!1)&&("click"!==m||!O.nodeName(r,"a"))&&O.acceptData(r)&&h&&r[m]&&("focus"!==m&&"blur"!==m||0!==n.target.offsetWidth)&&!O.isWindow(r)&&(u=r[h],u&&(r[h]=null),O.event.triggered=m,r[m](),O.event.triggered=e,u&&(r[h]=u)),n.result}},dispatch:function(n){n=O.event.fix(n||t.event);var i,r,s,o,a,l,c,u,h,d,p=(O._data(this,"events")||{})[n.type]||[],f=p.delegateCount,g=[].slice.call(arguments,0),m=!n.exclusive&&!n.namespace,v=[];if(g[0]=n,n.delegateTarget=this,f&&!n.target.disabled&&(!n.button||"click"!==n.type))for(o=O(this),o.context=this.ownerDocument||this,s=n.target;s!=this;s=s.parentNode||this){for(l={},u=[],o[0]=s,i=0;f>i;i++)h=p[i],d=h.selector,l[d]===e&&(l[d]=h.quick?ot(s,h.quick):o.is(d)),l[d]&&u.push(h);u.length&&v.push({elem:s,matches:u})}for(p.length>f&&v.push({elem:this,matches:p.slice(f)}),i=0;i<v.length&&!n.isPropagationStopped();i++)for(c=v[i],n.currentTarget=c.elem,r=0;r<c.matches.length&&!n.isImmediatePropagationStopped();r++)h=c.matches[r],(m||!n.namespace&&!h.namespace||n.namespace_re&&n.namespace_re.test(h.namespace))&&(n.data=h.data,n.handleObj=h,a=((O.event.special[h.origType]||{}).handle||h.handler).apply(c.elem,g),a!==e&&(n.result=a,a===!1&&(n.preventDefault(),n.stopPropagation())));return n.result},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,n){var i,r,s,o=n.button,a=n.fromElement;return null==t.pageX&&null!=n.clientX&&(i=t.target.ownerDocument||$,r=i.documentElement,s=i.body,t.pageX=n.clientX+(r&&r.scrollLeft||s&&s.scrollLeft||0)-(r&&r.clientLeft||s&&s.clientLeft||0),t.pageY=n.clientY+(r&&r.scrollTop||s&&s.scrollTop||0)-(r&&r.clientTop||s&&s.clientTop||0)),!t.relatedTarget&&a&&(t.relatedTarget=a===t.target?n.toElement:a),!t.which&&o!==e&&(t.which=1&o?1:2&o?3:4&o?2:0),t}},fix:function(t){if(t[O.expando])return t;var n,i,r=t,s=O.event.fixHooks[t.type]||{},o=s.props?this.props.concat(s.props):this.props;for(t=O.Event(r),n=o.length;n;)i=o[--n],t[i]=r[i];return t.target||(t.target=r.srcElement||$),3===t.target.nodeType&&(t.target=t.target.parentNode),t.metaKey===e&&(t.metaKey=t.ctrlKey),s.filter?s.filter(t,r):t},special:{ready:{setup:O.bindReady},load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(t,e,n){O.isWindow(this)&&(this.onbeforeunload=n)},teardown:function(t,e){this.onbeforeunload===e&&(this.onbeforeunload=null)}}},simulate:function(t,e,n,i){var r=O.extend(new O.Event,n,{type:t,isSimulated:!0,originalEvent:{}});i?O.event.trigger(r,null,e):O.event.dispatch.call(e,r),r.isDefaultPrevented()&&n.preventDefault()}},O.event.handle=O.event.dispatch,O.removeEvent=$.removeEventListener?function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n,!1)}:function(t,e,n){t.detachEvent&&t.detachEvent("on"+e,n)},O.Event=function(t,e){return this instanceof O.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||t.returnValue===!1||t.getPreventDefault&&t.getPreventDefault()?C:P):this.type=t,e&&O.extend(this,e),this.timeStamp=t&&t.timeStamp||O.now(),this[O.expando]=!0,void 0):new O.Event(t,e)},O.Event.prototype={preventDefault:function(){this.isDefaultPrevented=C;var t=this.originalEvent;!t||(t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=C;var t=this.originalEvent;!t||(t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=C,this.stopPropagation()},isDefaultPrevented:P,isPropagationStopped:P,isImmediatePropagationStopped:P}
2,O.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(t,e){O.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=this,r=t.relatedTarget,s=t.handleObj;s.selector;return(!r||r!==i&&!O.contains(i,r))&&(t.type=s.origType,n=s.handler.apply(this,arguments),t.type=e),n}}}),O.support.submitBubbles||(O.event.special.submit={setup:function(){return O.nodeName(this,"form")?!1:void O.event.add(this,"click._submit keypress._submit",function(t){var n=t.target,i=O.nodeName(n,"input")||O.nodeName(n,"button")?n.form:e;i&&!i._submit_attached&&(O.event.add(i,"submit._submit",function(t){this.parentNode&&!t.isTrigger&&O.event.simulate("submit",this.parentNode,t,!0)}),i._submit_attached=!0)})},teardown:function(){return O.nodeName(this,"form")?!1:void O.event.remove(this,"._submit")}}),O.support.changeBubbles||(O.event.special.change={setup:function(){return Q.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(O.event.add(this,"propertychange._change",function(t){"checked"===t.originalEvent.propertyName&&(this._just_changed=!0)}),O.event.add(this,"click._change",function(t){this._just_changed&&!t.isTrigger&&(this._just_changed=!1,O.event.simulate("change",this,t,!0))})),!1):void O.event.add(this,"beforeactivate._change",function(t){var e=t.target;Q.test(e.nodeName)&&!e._change_attached&&(O.event.add(e,"change._change",function(t){this.parentNode&&!t.isSimulated&&!t.isTrigger&&O.event.simulate("change",this.parentNode,t,!0)}),e._change_attached=!0)})},handle:function(t){var e=t.target;return this!==e||t.isSimulated||t.isTrigger||"radio"!==e.type&&"checkbox"!==e.type?t.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return O.event.remove(this,"._change"),Q.test(this.nodeName)}}),O.support.focusinBubbles||O.each({focus:"focusin",blur:"focusout"},function(t,e){var n=0,i=function(t){O.event.simulate(e,t.target,O.event.fix(t),!0)};O.event.special[e]={setup:function(){0===n++&&$.addEventListener(t,i,!0)},teardown:function(){0===--n&&$.removeEventListener(t,i,!0)}}}),O.fn.extend({on:function(t,n,i,r,s){var o,a;if("object"==typeof t){"string"!=typeof n&&(i=n,n=e);for(a in t)this.on(a,n,i,t[a],s);return this}if(null==i&&null==r?(r=n,i=n=e):null==r&&("string"==typeof n?(r=i,i=e):(r=i,i=n,n=e)),r===!1)r=P;else if(!r)return this;return 1===s&&(o=r,r=function(t){return O().off(t),o.apply(this,arguments)},r.guid=o.guid||(o.guid=O.guid++)),this.each(function(){O.event.add(this,t,r,i,n)})},one:function(t,e,n,i){return this.on.call(this,t,e,n,i,1)},off:function(t,n,i){if(t&&t.preventDefault&&t.handleObj){var r=t.handleObj;return O(t.delegateTarget).off(r.namespace?r.type+"."+r.namespace:r.type,r.selector,r.handler),this}if("object"==typeof t){for(var s in t)this.off(s,n,t[s]);return this}return(n===!1||"function"==typeof n)&&(i=n,n=e),i===!1&&(i=P),this.each(function(){O.event.remove(this,t,i,n)})},bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},live:function(t,e,n){return O(this.context).on(t,this.selector,e,n),this},die:function(t,e){return O(this.context).off(t,this.selector||"**",e),this},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1==arguments.length?this.off(t,"**"):this.off(e,t,n)},trigger:function(t,e){return this.each(function(){O.event.trigger(t,e,this)})},triggerHandler:function(t,e){return this[0]?O.event.trigger(t,e,this[0],!0):void 0},toggle:function(t){var e=arguments,n=t.guid||O.guid++,i=0,r=function(n){var r=(O._data(this,"lastToggle"+t.guid)||0)%i;return O._data(this,"lastToggle"+t.guid,r+1),n.preventDefault(),e[r].apply(this,arguments)||!1};for(r.guid=n;i<e.length;)e[i++].guid=n;return this.click(r)},hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),O.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,e){O.fn[e]=function(t,n){return null==n&&(n=t,t=null),arguments.length>0?this.on(e,null,t,n):this.trigger(e)},O.attrFn&&(O.attrFn[e]=!0),et.test(e)&&(O.event.fixHooks[e]=O.event.keyHooks),nt.test(e)&&(O.event.fixHooks[e]=O.event.mouseHooks)}),function(){function t(t,e,n,i,s,o){for(var a=0,l=i.length;l>a;a++){var c=i[a];if(c){var u=!1;for(c=c[t];c;){if(c[r]===n){u=i[c.sizset];break}if(1===c.nodeType)if(o||(c[r]=n,c.sizset=a),"string"!=typeof e){if(c===e){u=!0;break}}else if(d.filter(e,[c]).length>0){u=c;break}c=c[t]}i[a]=u}}}function n(t,e,n,i,s,o){for(var a=0,l=i.length;l>a;a++){var c=i[a];if(c){var u=!1;for(c=c[t];c;){if(c[r]===n){u=i[c.sizset];break}if(1===c.nodeType&&!o&&(c[r]=n,c.sizset=a),c.nodeName.toLowerCase()===e){u=c;break}c=c[t]}i[a]=u}}}var i=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,r="sizcache"+(Math.random()+"").replace(".",""),s=0,o=Object.prototype.toString,a=!1,l=!0,c=/\\/g,u=/\r\n/g,h=/\W/;[0,0].sort(function(){return l=!1,0});var d=function(t,e,n,r){n=n||[],e=e||$;var s=e;if(1!==e.nodeType&&9!==e.nodeType)return[];if(!t||"string"!=typeof t)return n;var a,l,c,u,h,p,m,v,b=!0,x=d.isXML(e),w=[],_=t;do if(i.exec(""),a=i.exec(_),a&&(_=a[3],w.push(a[1]),a[2])){u=a[3];break}while(a);if(w.length>1&&g.exec(t))if(2===w.length&&f.relative[w[0]])l=k(w[0]+w[1],e,r);else for(l=f.relative[w[0]]?[e]:d(w.shift(),e);w.length;)t=w.shift(),f.relative[t]&&(t+=w.shift()),l=k(t,l,r);else if(!r&&w.length>1&&9===e.nodeType&&!x&&f.match.ID.test(w[0])&&!f.match.ID.test(w[w.length-1])&&(h=d.find(w.shift(),e,x),e=h.expr?d.filter(h.expr,h.set)[0]:h.set[0]),e)for(h=r?{expr:w.pop(),set:y(r)}:d.find(w.pop(),1!==w.length||"~"!==w[0]&&"+"!==w[0]||!e.parentNode?e:e.parentNode,x),l=h.expr?d.filter(h.expr,h.set):h.set,w.length>0?c=y(l):b=!1;w.length;)p=w.pop(),m=p,f.relative[p]?m=w.pop():p="",null==m&&(m=e),f.relative[p](c,m,x);else c=w=[];if(c||(c=l),c||d.error(p||t),"[object Array]"===o.call(c))if(b)if(e&&1===e.nodeType)for(v=0;
vendor: 4,914 bytes, line 2
2null!=c[v];v++)c[v]&&(c[v]===!0||1===c[v].nodeType&&d.contains(e,c[v]))&&n.push(l[v]);else for(v=0;null!=c[v];v++)c[v]&&1===c[v].nodeType&&n.push(l[v]);else n.push.apply(n,c);else y(c,n);return u&&(d(u,s,n,r),d.uniqueSort(n)),n};d.uniqueSort=function(t){if(x&&(a=l,t.sort(x),a))for(var e=1;e<t.length;e++)t[e]===t[e-1]&&t.splice(e--,1);return t},d.matches=function(t,e){return d(t,null,null,e)},d.matchesSelector=function(t,e){return d(e,null,null,[t]).length>0},d.find=function(t,e,n){var i,r,s,o,a,l;if(!t)return[];for(r=0,s=f.order.length;s>r;r++)if(a=f.order[r],(o=f.leftMatch[a].exec(t))&&(l=o[1],o.splice(1,1),"\\"!==l.substr(l.length-1)&&(o[1]=(o[1]||"").replace(c,""),i=f.find[a](o,e,n),null!=i))){t=t.replace(f.match[a],"");break}return i||(i="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName("*"):[]),{set:i,expr:t}},d.filter=function(t,n,i,r){for(var s,o,a,l,c,u,h,p,g,m=t,v=[],y=n,b=n&&n[0]&&d.isXML(n[0]);t&&n.length;){for(a in f.filter)if(null!=(s=f.leftMatch[a].exec(t))&&s[2]){if(u=f.filter[a],h=s[1],o=!1,s.splice(1,1),"\\"===h.substr(h.length-1))continue;if(y===v&&(v=[]),f.preFilter[a])if(s=f.preFilter[a](s,y,i,v,r,b)){if(s===!0)continue}else o=l=!0;if(s)for(p=0;null!=(c=y[p]);p++)c&&(l=u(c,s,p,y),g=r^l,i&&null!=l?g?o=!0:y[p]=!1:g&&(v.push(c),o=!0));if(l!==e){if(i||(y=v),t=t.replace(f.match[a],""),!o)return[];break}}if(t===m){if(null!=o)break;d.error(t)}m=t}return y},d.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)};var p=d.getText=function(t){var e,n,i=t.nodeType,r="";if(i){if(1===i||9===i){if("string"==typeof t.textContent)return t.textContent;if("string"==typeof t.innerText)return t.innerText.replace(u,"");for(t=t.firstChild;t;t=t.nextSibling)r+=p(t)}else if(3===i||4===i)return t.nodeValue}else for(e=0;n=t[e];e++)8!==n.nodeType&&(r+=p(n));return r},f=d.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(t){return t.getAttribute("href")},type:function(t){return t.getAttribute("type")}},relative:{"+":function(t,e){var n="string"==typeof e,i=n&&!h.test(e),r=n&&!i;i&&(e=e.toLowerCase());for(var s,o=0,a=t.length;a>o;o++)if(s=t[o]){for(;(s=s.previousSibling)&&1!==s.nodeType;);t[o]=r||s&&s.nodeName.toLowerCase()===e?s||!1:s===e}r&&d.filter(e,t,!0)},">":function(t,e){var n,i="string"==typeof e,r=0,s=t.length;if(i&&!h.test(e)){for(e=e.toLowerCase();s>r;r++)if(n=t[r]){var o=n.parentNode;t[r]=o.nodeName.toLowerCase()===e?o:!1}}else{for(;s>r;r++)n=t[r],n&&(t[r]=i?n.parentNode:n.parentNode===e);i&&d.filter(e,t,!0)}},"":function(e,i,r){var o,a=s++,l=t;"string"==typeof i&&!h.test(i)&&(i=i.toLowerCase(),o=i,l=n),l("parentNode",i,a,e,o,r)},"~":function(e,i,r){var o,a=s++,l=t;"string"==typeof i&&!h.test(i)&&(i=i.toLowerCase(),o=i,l=n),l("previousSibling",i,a,e,o,r)}},find:{ID:function(t,e,n){if("undefined"!=typeof e.getElementById&&!n){var i=e.getElementById(t[1]);return i&&i.parentNode?[i]:[]}},NAME:function(t,e){if("undefined"!=typeof e.getElementsByName){for(var n=[],i=e.getElementsByName(t[1]),r=0,s=i.length;s>r;r++)i[r].getAttribute("name")===t[1]&&n.push(i[r]);return 0===n.length?null:n}},TAG:function(t,e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t[1]):void 0}},preFilter:{CLASS:function(t,e,n,i,r,s){if(t=" "+t[1].replace(c,"")+" ",s)return t;for(var o,a=0;null!=(o=e[a]);a++)o&&(r^(o.className&&(" "+o.className+" ").replace(/[\t\n\r]/g," ").indexOf(t)>=0)?n||i.push(o):n&&(e[a]=!1));return!1},ID:function(t){return t[1].replace(c,"")},TAG:function(t,e){return t[1].replace(c,"").toLowerCase()},CHILD:function(t){if("nth"===t[1]){t[2]||d.error(t[0]),t[2]=t[2].replace(/^\+|\s*/g,"");var e=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec("even"===t[2]&&"2n"||"odd"===t[2]&&"2n+1"||!/\D/.test(t[2])&&"0n+"+t[2]||t[2]);t[2]=e[1]+(e[2]||1)-0,t[3]=e[3]-0}else t[2]&&d.error(t[0]);return t[0]=s++,t},ATTR:function(t,e,n,i,r,s){var o=t[1]=t[1].replace(c,"");return!s&&f.attrMap[o]&&(t[1]=f.attrMap[o]),t[4]=(t[4]||t[5]||"").replace(c,""),"~="===t[2]&&(t[4]=" "+t[4]+" "),t},PSEUDO:function(t,e,n,r,s){if("not"===t[1]){if(!((i.exec(t[3])||"").length>1||/^\w/.test(t[3]))){var o=d.filter(t[3],e,n,!0^s);return n||r.push.apply(r,o),!1}t[3]=d(t[3],null,null,e)}else if(f.match.POS.test(t[0])||f.match.CHILD.test(t[0]))return!0;return t},POS:function(t){return t.unshift(!0),t}}
vendor: 4,365 bytes, line 2
2,filters:{enabled:function(t){return t.disabled===!1&&"hidden"!==t.type},disabled:function(t){return t.disabled===!0},checked:function(t){return t.checked===!0},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,t.selected===!0},parent:function(t){return!!t.firstChild},empty:function(t){return!t.firstChild},has:function(t,e,n){return!!d(n[3],t).length},header:function(t){return/h\d/i.test(t.nodeName)},text:function(t){var e=t.getAttribute("type"),n=t.type;return"input"===t.nodeName.toLowerCase()&&"text"===n&&(e===n||null===e)},radio:function(t){return"input"===t.nodeName.toLowerCase()&&"radio"===t.type},checkbox:function(t){return"input"===t.nodeName.toLowerCase()&&"checkbox"===t.type},file:function(t){return"input"===t.nodeName.toLowerCase()&&"file"===t.type},password:function(t){return"input"===t.nodeName.toLowerCase()&&"password"===t.type},submit:function(t){var e=t.nodeName.toLowerCase();return("input"===e||"button"===e)&&"submit"===t.type},image:function(t){return"input"===t.nodeName.toLowerCase()&&"image"===t.type},reset:function(t){var e=t.nodeName.toLowerCase();return("input"===e||"button"===e)&&"reset"===t.type},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},input:function(t){return/input|select|textarea|button/i.test(t.nodeName)},focus:function(t){return t===t.ownerDocument.activeElement}},setFilters:{first:function(t,e){return 0===e},last:function(t,e,n,i){return e===i.length-1},even:function(t,e){return e%2===0},odd:function(t,e){return e%2===1},lt:function(t,e,n){return e<n[3]-0},gt:function(t,e,n){return e>n[3]-0},nth:function(t,e,n){return n[3]-0===e},eq:function(t,e,n){return n[3]-0===e}},filter:{PSEUDO:function(t,e,n,i){var r=e[1],s=f.filters[r];if(s)return s(t,n,e,i);if("contains"===r)return(t.textContent||t.innerText||p([t])||"").indexOf(e[3])>=0;if("not"===r){for(var o=e[3],a=0,l=o.length;l>a;a++)if(o[a]===t)return!1;return!0}d.error(r)},CHILD:function(t,e){var n,i,s,o,a,l,c=e[1],u=t;switch(c){case"only":case"first":for(;u=u.previousSibling;)if(1===u.nodeType)return!1;if("first"===c)return!0;u=t;case"last":for(;u=u.nextSibling;)if(1===u.nodeType)return!1;return!0;case"nth":if(n=e[2],i=e[3],1===n&&0===i)return!0;if(s=e[0],o=t.parentNode,o&&(o[r]!==s||!t.nodeIndex)){for(a=0,u=o.firstChild;u;u=u.nextSibling)1===u.nodeType&&(u.nodeIndex=++a);o[r]=s}return l=t.nodeIndex-i,0===n?0===l:l%n===0&&l/n>=0}},ID:function(t,e){return 1===t.nodeType&&t.getAttribute("id")===e},TAG:function(t,e){return"*"===e&&1===t.nodeType||!!t.nodeName&&t.nodeName.toLowerCase()===e},CLASS:function(t,e){return(" "+(t.className||t.getAttribute("class"))+" ").indexOf(e)>-1},ATTR:function(t,e){var n=e[1],i=d.attr?d.attr(t,n):f.attrHandle[n]?f.attrHandle[n](t):null!=t[n]?t[n]:t.getAttribute(n),r=i+"",s=e[2],o=e[4];return null==i?"!="===s:!s&&d.attr?null!=i:"="===s?r===o:"*="===s?r.indexOf(o)>=0:"~="===s?(" "+r+" ").indexOf(o)>=0:o?"!="===s?r!==o:"^="===s?0===r.indexOf(o):"$="===s?r.substr(r.length-o.length)===o:"|="===s?r===o||r.substr(0,o.length+1)===o+"-":!1:r&&i!==!1},POS:function(t,e,n,i){var r=e[2],s=f.setFilters[r];return s?s(t,n,e,i):void 0}}},g=f.match.POS,m=function(t,e){return"\\"+(e-0+1)};for(var v in f.match)f.match[v]=new RegExp(f.match[v].source+/(?![^\[]*\])(?![^\(]*\))/.source),f.leftMatch[v]=new RegExp(/(^(?:.|\r|\n)*?)/.source+f.match[v].source.replace(/\\(\d+)/g,m));var y=function(t,e){return t=Array.prototype.slice.call(t,0),e?(e.push.apply(e,t),e):t};try{Array.prototype.slice.call($.documentElement.childNodes,0)[0].nodeType}catch(b){y=function(t,e){var n=0,i=e||[];if("[object Array]"===o.call(t))Array.prototype.push.apply(i,t);else if("number"==typeof t.length)for(var r=t.length;r>n;n++)i.push(t[n]);else for(;t[n];n++)i.push(t[n]);return i}}var x,w;$.documentElement.compareDocumentPosition?x=function(t,e){return t===e?(a=!0,0):t.compareDocumentPosition&&e.compareDocumentPosition?4&t.compareDocumentPosition(e)?-1:1:t.compareDocumentPosition?-1:1}:(x=function(t,e){if(t===e)return a=!0,0;if(t.sourceIndex&&e.sourceIndex)return t.sourceIndex-e.sourceIndex;var n,i,r=[],s=[],o=t.parentNode,l=e.parentNode,c=o;if(o===l)return w(t,e);if(!o)return-1;if(!l)return 1;for(;c;)r.unshift(c),c=c.parentNode;for(c=l;c;)s.unshift(c),c=c.parentNode;n=r.length,i=s.length;for(var u=0;n>u&&i>u;u++)if(r[u]!==s[u])return w(r[u],s[u]);
vendor: 12,501 bytes, lines 2-3
2return u===n?w(t,s[u],-1):w(r[u],e,1)},w=function(t,e,n){if(t===e)return n;for(var i=t.nextSibling;i;){if(i===e)return-1;i=i.nextSibling}return 1}),function(){var t=$.createElement("div"),n="script"+(new Date).getTime(),i=$.documentElement;t.innerHTML="<a name='"+n+"'/>",i.insertBefore(t,i.firstChild),$.getElementById(n)&&(f.find.ID=function(t,n,i){if("undefined"!=typeof n.getElementById&&!i){var r=n.getElementById(t[1]);return r?r.id===t[1]||"undefined"!=typeof r.getAttributeNode&&r.getAttributeNode("id").nodeValue===t[1]?[r]:e:[]}},f.filter.ID=function(t,e){var n="undefined"!=typeof t.getAttributeNode&&t.getAttributeNode("id");return 1===t.nodeType&&n&&n.nodeValue===e}),i.removeChild(t),i=t=null}(),function(){var t=$.createElement("div");t.appendChild($.createComment("")),t.getElementsByTagName("*").length>0&&(f.find.TAG=function(t,e){var n=e.getElementsByTagName(t[1]);if("*"===t[1]){for(var i=[],r=0;n[r];r++)1===n[r].nodeType&&i.push(n[r]);n=i}return n}),t.innerHTML="<a href='#'></a>",t.firstChild&&"undefined"!=typeof t.firstChild.getAttribute&&"#"!==t.firstChild.getAttribute("href")&&(f.attrHandle.href=function(t){return t.getAttribute("href",2)}),t=null}(),$.querySelectorAll&&function(){var t=d,e=$.createElement("div"),n="__sizzle__";if(e.innerHTML="<p class='TEST'></p>",!e.querySelectorAll||0!==e.querySelectorAll(".TEST").length){d=function(e,i,r,s){if(i=i||$,!s&&!d.isXML(i)){var o=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(e);if(o&&(1===i.nodeType||9===i.nodeType)){if(o[1])return y(i.getElementsByTagName(e),r);if(o[2]&&f.find.CLASS&&i.getElementsByClassName)return y(i.getElementsByClassName(o[2]),r)}if(9===i.nodeType){if("body"===e&&i.body)return y([i.body],r);if(o&&o[3]){var a=i.getElementById(o[3]);if(!a||!a.parentNode)return y([],r);if(a.id===o[3])return y([a],r)}try{return y(i.querySelectorAll(e),r)}catch(l){}}else if(1===i.nodeType&&"object"!==i.nodeName.toLowerCase()){var c=i,u=i.getAttribute("id"),h=u||n,p=i.parentNode,g=/^\s*[+~]/.test(e);u?h=h.replace(/'/g,"\\$&"):i.setAttribute("id",h),g&&p&&(i=i.parentNode);try{if(!g||p)return y(i.querySelectorAll("[id='"+h+"'] "+e),r)}catch(m){}finally{u||c.removeAttribute("id")}}}return t(e,i,r,s)};for(var i in t)d[i]=t[i];e=null}}(),function(){var t=$.documentElement,e=t.matchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||t.msMatchesSelector;if(e){var n=!e.call($.createElement("div"),"div"),i=!1;try{e.call($.documentElement,"[test!='']:sizzle")}catch(r){i=!0}d.matchesSelector=function(t,r){if(r=r.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']"),!d.isXML(t))try{if(i||!f.match.PSEUDO.test(r)&&!/!=/.test(r)){var s=e.call(t,r);if(s||!n||t.document&&11!==t.document.nodeType)return s}}catch(o){}return d(r,null,null,[t]).length>0}}}(),function(){var t=$.createElement("div");if(t.innerHTML="<div class='test e'></div><div class='test'></div>",t.getElementsByClassName&&0!==t.getElementsByClassName("e").length){if(t.lastChild.className="e",1===t.getElementsByClassName("e").length)return;f.order.splice(1,0,"CLASS"),f.find.CLASS=function(t,e,n){return"undefined"==typeof e.getElementsByClassName||n?void 0:e.getElementsByClassName(t[1])},t=null}}(),$.documentElement.contains?d.contains=function(t,e){return t!==e&&(t.contains?t.contains(e):!0)}:$.documentElement.compareDocumentPosition?d.contains=function(t,e){return!!(16&t.compareDocumentPosition(e))}:d.contains=function(){return!1},d.isXML=function(t){var e=(t?t.ownerDocument||t:0).documentElement;return e?"HTML"!==e.nodeName:!1};var k=function(t,e,n){for(var i,r=[],s="",o=e.nodeType?[e]:e;i=f.match.PSEUDO.exec(t);)s+=i[0],t=t.replace(f.match.PSEUDO,"");t=f.relative[t]?t+"*":t;for(var a=0,l=o.length;l>a;a++)d(t,o[a],r,n);return d.filter(s,r)};d.attr=O.attr,d.selectors.attrMap={},O.find=d,O.expr=d.selectors,O.expr[":"]=O.expr.filters,O.unique=d.uniqueSort,O.text=d.getText,O.isXMLDoc=d.isXML,O.contains=d.contains}();var lt=/Until$/,ct=/^(?:parents|prevUntil|prevAll)/,ut=/,/,ht=/^.[^:#\[\.,]*$/,dt=Array.prototype.slice,pt=O.expr.match.POS,ft={children:!0,contents:!0,next:!0,prev:!0};O.fn.extend({find:function(t){var e,n,i=this;if("string"!=typeof t)return O(t).filter(function(){for(e=0,n=i.length;n>e;e++)if(O.contains(i[e],this))return!0});var r,s,o,a=this.pushStack("","find",t);for(e=0,n=this.length;n>e;e++)if(r=a.length,O.find(t,this[e],a),e>0)for(s=r;s<a.length;s++)for(o=0;r>o;o++)if(a[o]===a[s]){a.splice(s--,1);break}return a},has:function(t){var e=O(t);return this.filter(function(){for(var t=0,n=e.length;n>t;t++)if(O.contains(this,e[t]))return!0})},not:function(t){return this.pushStack(S(this,t,!1),"not",t)},filter:function(t){return this.pushStack(S(this,t,!0),"filter",t)},is:function(t){return!!t&&("string"==typeof t?pt.test(t)?O(t,this.context).index(this[0])>=0:O.filter(t,this).length>0:this.filter(t).length>0)},closest:function(t,e){var n,i,r=[],s=this[0];if(O.isArray(t)){for(var o=1;s&&s.ownerDocument&&s!==e;){for(n=0;n<t.length;n++)O(s).is(t[n])&&r.push({selector:t[n],elem:s,level:o});s=s.parentNode,o++}return r}var a=pt.test(t)||"string"!=typeof t?O(t,e||this.context):0;for(n=0,i=this.length;i>n;n++)for(s=this[n];s;){if(a?a.index(s)>-1:O.find.matchesSelector(s,t)){r.push(s);break}if(s=s.parentNode,!s||!s.ownerDocument||s===e||11===s.nodeType)break}return r=r.length>1?O.unique(r):r,this.pushStack(r,"closest",t)},index:function(t){return t?"string"==typeof t?O.inArray(this[0],O(t)):O.inArray(t.jquery?t[0]:t,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(t,e){var n="string"==typeof t?O(t,e):O.makeArray(t&&t.nodeType?[t]:t),i=O.merge(this.get(),n);return this.pushStack(A(n[0])||A(i[0])?i:O.unique(i))},andSelf:function(){return this.add(this.prevObject)}}),O.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return O.dir(t,"parentNode")},parentsUntil:function(t,e,n){return O.dir(t,"parentNode",n)},next:function(t){return O.nth(t,2,"nextSibling")},prev:function(t){return O.nth(t,2,"previousSibling")},nextAll:function(t){return O.dir(t,"nextSibling")},prevAll:function(t){return O.dir(t,"previousSibling")},nextUntil:function(t,e,n){return O.dir(t,"nextSibling",n)},prevUntil:function(t,e,n){return O.dir(t,"previousSibling",n)},siblings:function(t){return O.sibling(t.parentNode.firstChild,t)},children:function(t){return O.sibling(t.firstChild)},contents:function(t){return O.nodeName(t,"iframe")?t.contentDocument||t.contentWindow.document:O.makeArray(t.childNodes)}},function(t,e){O.fn[t]=function(n,i){var r=O.map(this,e,n);return lt.test(t)||(i=n),i&&"string"==typeof i&&(r=O.filter(i,r)),r=this.length>1&&!ft[t]?O.unique(r):r,(this.length>1||ut.test(i))&&ct.test(t)&&(r=r.reverse()),this.pushStack(r,t,dt.call(arguments).join(","))}}),O.extend({filter:function(t,e,n){return n&&(t=":not("+t+")"),1===e.length?O.find.matchesSelector(e[0],t)?[e[0]]:[]:O.find.matches(t,e)},dir:function(t,n,i){for(var r=[],s=t[n];s&&9!==s.nodeType&&(i===e||1!==s.nodeType||!O(s).is(i));)1===s.nodeType&&r.push(s),s=s[n];return r},nth:function(t,e,n,i){e=e||1;for(var r=0;t&&(1!==t.nodeType||++r!==e);t=t[n]);return t},sibling:function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}});var gt="abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",mt=/ jQuery\d+="(?:\d+|null)"/g,vt=/^\s+/,yt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,bt=/<([\w:]+)/,xt=/<tbody/i,wt=/<|&#?\w+;/,kt=/<(?:script|style)/i,_t=/<(?:script|object|embed|option|style)/i,Tt=new RegExp("<(?:"+gt+")","i"),St=/checked\s*(?:[^=]|=\s*.checked.)/i,At=/\/(java|ecma)script/i,Ct=/^\s*<!(?:\[CDATA\[|\-\-)/,Pt={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},Dt=T($);Pt.optgroup=Pt.option,Pt.tbody=Pt.tfoot=Pt.colgroup=Pt.caption=Pt.thead,Pt.th=Pt.td,O.support.htmlSerialize||(Pt._default=[1,"div<div>","</div>"]),O.fn.extend({text:function(t){return O.isFunction(t)?this.each(function(e){var n=O(this);n.text(t.call(this,e,n.text()))}):"object"!=typeof t&&t!==e?this.empty().append((this[0]&&this[0].ownerDocument||$).createTextNode(t)):O.text(this)},wrapAll:function(t){if(O.isFunction(t))return this.each(function(e){O(this).wrapAll(t.call(this,e))});if(this[0]){var e=O(t,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstChild&&1===t.firstChild.nodeType;)t=t.firstChild;return t}).append(this)}return this},wrapInner:function(t){return O.isFunction(t)?this.each(function(e){O(this).wrapInner(t.call(this,e))}):this.each(function(){var e=O(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=O.isFunction(t);return this.each(function(n){O(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(){return this.parent().each(function(){O.nodeName(this,"body")||O(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(t){1===this.nodeType&&this.appendChild(t);
3})},prepend:function(){return this.domManip(arguments,!0,function(t){1===this.nodeType&&this.insertBefore(t,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(t){this.parentNode.insertBefore(t,this)});if(arguments.length){var t=O.clean(arguments);return t.push.apply(t,this.toArray()),this.pushStack(t,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(t){this.parentNode.insertBefore(t,this.nextSibling)});if(arguments.length){var t=this.pushStack(this,"after",arguments);return t.push.apply(t,O.clean(arguments)),t}},remove:function(t,e){for(var n,i=0;null!=(n=this[i]);i++)(!t||O.filter(t,[n]).length)&&(!e&&1===n.nodeType&&(O.cleanData(n.getElementsByTagName("*")),O.cleanData([n])),n.parentNode&&n.parentNode.removeChild(n));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)for(1===t.nodeType&&O.cleanData(t.getElementsByTagName("*"));t.firstChild;)t.removeChild(t.firstChild);return this},clone:function(t,e){return t=null==t?!1:t,e=null==e?t:e,this.map(function(){return O.clone(this,t,e)})},html:function(t){if(t===e)return this[0]&&1===this[0].nodeType?this[0].innerHTML.replace(mt,""):null;if("string"!=typeof t||kt.test(t)||!O.support.leadingWhitespace&&vt.test(t)||Pt[(bt.exec(t)||["",""])[1].toLowerCase()])O.isFunction(t)?this.each(function(e){var n=O(this);n.html(t.call(this,e,n.html()))}):this.empty().append(t);else{t=t.replace(yt,"<$1></$2>");try{for(var n=0,i=this.length;i>n;n++)1===this[n].nodeType&&(O.cleanData(this[n].getElementsByTagName("*")),this[n].innerHTML=t)}catch(r){this.empty().append(t)}}return this},replaceWith:function(t){return this[0]&&this[0].parentNode?O.isFunction(t)?this.each(function(e){var n=O(this),i=n.html();n.replaceWith(t.call(this,e,i))}):("string"!=typeof t&&(t=O(t).detach()),this.each(function(){var e=this.nextSibling,n=this.parentNode;O(this).remove(),e?O(e).before(t):O(n).append(t)})):this.length?this.pushStack(O(O.isFunction(t)?t():t),"replaceWith",t):this},detach:function(t){return this.remove(t,!0)},domManip:function(t,n,i){var r,s,o,a,l=t[0],c=[];if(!O.support.checkClone&&3===arguments.length&&"string"==typeof l&&St.test(l))return this.each(function(){O(this).domManip(t,n,i,!0)});if(O.isFunction(l))return this.each(function(r){var s=O(this);t[0]=l.call(this,r,n?s.html():e),s.domManip(t,n,i)});if(this[0]){if(a=l&&l.parentNode,r=O.support.parentNode&&a&&11===a.nodeType&&a.childNodes.length===this.length?{fragment:a}:O.buildFragment(t,this,c),o=r.fragment,s=1===o.childNodes.length?o=o.firstChild:o.firstChild,s){n=n&&O.nodeName(s,"tr");for(var u=0,h=this.length,d=h-1;h>u;u++)i.call(n?_(this[u],s):this[u],r.cacheable||h>1&&d>u?O.clone(o,!0,!0):o)}c.length&&O.each(c,m)}return this}}),O.buildFragment=function(t,e,n){var i,r,s,o,a=t[0];return e&&e[0]&&(o=e[0].ownerDocument||e[0]),o.createDocumentFragment||(o=$),1===t.length&&"string"==typeof a&&a.length<512&&o===$&&"<"===a.charAt(0)&&!_t.test(a)&&(O.support.checkClone||!St.test(a))&&(O.support.html5Clone||!Tt.test(a))&&(r=!0,s=O.fragments[a],s&&1!==s&&(i=s)),i||(i=o.createDocumentFragment(),O.clean(t,o,i,n)),r&&(O.fragments[a]=s?i:1),{fragment:i,
3cacheable:r}},O.fragments={},O.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){O.fn[t]=function(n){var i=[],r=O(n),s=1===this.length&&this[0].parentNode;if(s&&11===s.nodeType&&1===s.childNodes.length&&1===r.length)return r[e](this[0]),this;for(var o=0,a=r.length;a>o;o++){var l=(o>0?this.clone(!0):this).get();O(r[o])[e](l),i=i.concat(l)}return this.pushStack(i,t,r.selector)}}),O.extend({clone:function(t,e,n){var i,r,s,o=O.support.html5Clone||!Tt.test("<"+t.nodeName)?t.cloneNode(!0):v(t);if(!(O.support.noCloneEvent&&O.support.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||O.isXMLDoc(t)))for(w(t,o),i=x(t),r=x(o),s=0;i[s];++s)r[s]&&w(i[s],r[s]);if(e&&(k(t,o),n))for(i=x(t),r=x(o),s=0;i[s];++s)k(i[s],r[s]);return i=r=null,o},clean:function(t,e,n,i){var r;e=e||$,"undefined"==typeof e.createElement&&(e=e.ownerDocument||e[0]&&e[0].ownerDocument||$);for(var s,o,a=[],l=0;null!=(o=t[l]);l++)if("number"==typeof o&&(o+=""),o){if("string"==typeof o)if(wt.test(o)){o=o.replace(yt,"<$1></$2>");var c=(bt.exec(o)||["",""])[1].toLowerCase(),u=Pt[c]||Pt._default,h=u[0],d=e.createElement("div");for(e===$?Dt.appendChild(d):T(e).appendChild(d),d.innerHTML=u[1]+o+u[2];h--;)d=d.lastChild;if(!O.support.tbody){var p=xt.test(o),f="table"!==c||p?"<table>"!==u[1]||p?[]:d.childNodes:d.firstChild&&d.firstChild.childNodes;for(s=f.length-1;s>=0;--s)O.nodeName(f[s],"tbody")&&!f[s].childNodes.length&&f[s].parentNode.removeChild(f[s])}!O.support.leadingWhitespace&&vt.test(o)&&d.insertBefore(e.createTextNode(vt.exec(o)[0]),d.firstChild),o=d.childNodes}else o=e.createTextNode(o);var g;if(!O.support.appendChecked)if(o[0]&&"number"==typeof(g=o.length))for(s=0;g>s;s++)y(o[s]);else y(o);o.nodeType?a.push(o):a=O.merge(a,o)}if(n)for(r=function(t){return!t.type||At.test(t.type)},l=0;a[l];l++)if(!i||!O.nodeName(a[l],"script")||a[l].type&&"text/javascript"!==a[l].type.toLowerCase()){if(1===a[l].nodeType){var m=O.grep(a[l].getElementsByTagName("script"),r);a.splice.apply(a,[l+1,0].concat(m))}n.appendChild(a[l])}else i.push(a[l].parentNode?a[l].parentNode.removeChild(a[l]):a[l]);return a},cleanData:function(t){for(var e,n,i,r=O.cache,s=O.event.special,o=O.support.deleteExpando,a=0;null!=(i=t[a]);a++)if((!i.nodeName||!O.noData[i.nodeName.toLowerCase()])&&(n=i[O.expando])){if(e=r[n],e&&e.events){for(var l in e.events)s[l]?O.event.remove(i,l):O.removeEvent(i,l,e.handle);e.handle&&(e.handle.elem=null)}o?delete i[O.expando]:i.removeAttribute&&i.removeAttribute(O.expando),delete r[n]}}});var Et,Nt,Lt,$t=/alpha\([^)]*\)/i,It=/opacity=([^)]*)/,Mt=/([A-Z]|^ms)/g,Ot=/^-?\d+(?:px)?$/i,Ft=/^-?\d/,Ht=/^([\-+])=([\-+.\de]+)/,jt={position:"absolute",visibility:"hidden",display:"block"},Wt=["Left","Right"],Bt=["Top","Bottom"];O.fn.css=function(t,n){return 2===arguments.length&&n===e?this:O.access(this,t,n,!0,function(t,n,i){return i!==e?O.style(t,n,i):O.css(t,n)})},O.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Et(t,"opacity","opacity");return""===n?"1":n}return t.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":O.support.cssFloat?"cssFloat":"styleFloat"},style:function(t,n,i,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var s,o,a=O.camelCase(n),l=t.style,c=O.cssHooks[a];if(n=O.cssProps[a]||a,i===e)return c&&"get"in c&&(s=c.get(t,!1,r))!==e?s:l[n];if(o=typeof i,"string"===o&&(s=Ht.exec(i))&&(i=+(s[1]+1)*+s[2]+parseFloat(O.css(t,n)),o="number"),null==i||"number"===o&&isNaN(i))return;if("number"===o&&!O.cssNumber[a]&&(i+="px"),!(c&&"set"in c&&(i=c.set(t,i))===e))try{l[n]=i}catch(u){}}},css:function(t,n,i){var r,s;return n=O.camelCase(n),s=O.cssHooks[n],n=O.cssProps[n]||n,"cssFloat"===n&&(n="float"),s&&"get"in s&&(r=s.get(t,!0,i))!==e?r:Et?Et(t,n):void 0},swap:function(t,e,n){var i={};for(var r in e)i[r]=t.style[r],t.style[r]=e[r];n.call(t);for(r in e)t.style[r]=i[r]}}),O.curCSS=O.css,O.each(["height","width"],function(t,e){O.cssHooks[e]={get:function(t,n,i){var r;
vendor: 11,059 bytes, line 3
3return n?0!==t.offsetWidth?g(t,e,i):(O.swap(t,jt,function(){r=g(t,e,i)}),r):void 0},set:function(t,e){return Ot.test(e)?(e=parseFloat(e),e>=0?e+"px":void 0):e}}}),O.support.opacity||(O.cssHooks.opacity={get:function(t,e){return It.test((e&&t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?parseFloat(RegExp.$1)/100+"":e?"1":""},set:function(t,e){var n=t.style,i=t.currentStyle,r=O.isNumeric(e)?"alpha(opacity="+100*e+")":"",s=i&&i.filter||n.filter||"";n.zoom=1,e>=1&&""===O.trim(s.replace($t,""))&&(n.removeAttribute("filter"),i&&!i.filter)||(n.filter=$t.test(s)?s.replace($t,r):s+" "+r)}}),O(function(){O.support.reliableMarginRight||(O.cssHooks.marginRight={get:function(t,e){var n;return O.swap(t,{display:"inline-block"},function(){n=e?Et(t,"margin-right","marginRight"):t.style.marginRight}),n}})}),$.defaultView&&$.defaultView.getComputedStyle&&(Nt=function(t,e){var n,i,r;return e=e.replace(Mt,"-$1").toLowerCase(),(i=t.ownerDocument.defaultView)&&(r=i.getComputedStyle(t,null))&&(n=r.getPropertyValue(e),""===n&&!O.contains(t.ownerDocument.documentElement,t)&&(n=O.style(t,e))),n}),$.documentElement.currentStyle&&(Lt=function(t,e){var n,i,r,s=t.currentStyle&&t.currentStyle[e],o=t.style;return null===s&&o&&(r=o[e])&&(s=r),!Ot.test(s)&&Ft.test(s)&&(n=o.left,i=t.runtimeStyle&&t.runtimeStyle.left,i&&(t.runtimeStyle.left=t.currentStyle.left),o.left="fontSize"===e?"1em":s||0,s=o.pixelLeft+"px",o.left=n,i&&(t.runtimeStyle.left=i)),""===s?"auto":s}),Et=Nt||Lt,O.expr&&O.expr.filters&&(O.expr.filters.hidden=function(t){var e=t.offsetWidth,n=t.offsetHeight;return 0===e&&0===n||!O.support.reliableHiddenOffsets&&"none"===(t.style&&t.style.display||O.css(t,"display"))},O.expr.filters.visible=function(t){return!O.expr.filters.hidden(t)});var zt,Rt,Xt=/%20/g,qt=/\[\]$/,Yt=/\r?\n/g,Ut=/#.*$/,Vt=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Gt=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,Jt=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,Kt=/^(?:GET|HEAD)$/,Qt=/^\/\//,Zt=/\?/,te=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,ee=/^(?:select|textarea)/i,ne=/\s+/,ie=/([?&])_=[^&]*/,re=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,se=O.fn.load,oe={},ae={},le=["*/"]+["*"];try{zt=M.href}catch(ce){zt=$.createElement("a"),zt.href="",zt=zt.href}Rt=re.exec(zt.toLowerCase())||[],O.fn.extend({load:function(t,n,i){if("string"!=typeof t&&se)return se.apply(this,arguments);if(!this.length)return this;var r=t.indexOf(" ");if(r>=0){var s=t.slice(r,t.length);t=t.slice(0,r)}var o="GET";n&&(O.isFunction(n)?(i=n,n=e):"object"==typeof n&&(n=O.param(n,O.ajaxSettings.traditional),o="POST"));var a=this;return O.ajax({url:t,type:o,dataType:"html",data:n,complete:function(t,e,n){n=t.responseText,t.isResolved()&&(t.done(function(t){n=t}),a.html(s?O("<div>").append(n.replace(te,"")).find(s):n)),i&&a.each(i,[n,e,t])}}),this},serialize:function(){return O.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?O.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||ee.test(this.nodeName)||Gt.test(this.type))}).map(function(t,e){var n=O(this).val();return null==n?null:O.isArray(n)?O.map(n,function(t,n){return{name:e.name,value:t.replace(Yt,"\r\n")}}):{name:e.name,value:n.replace(Yt,"\r\n")}}).get()}}),O.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(t,e){O.fn[e]=function(t){return this.on(e,t)}}),O.each(["get","post"],function(t,n){O[n]=function(t,i,r,s){return O.isFunction(i)&&(s=s||r,r=i,i=e),O.ajax({type:n,url:t,data:i,success:r,dataType:s})}}),O.extend({getScript:function(t,n){return O.get(t,e,n,"script")},getJSON:function(t,e,n){return O.get(t,e,n,"json")},ajaxSetup:function(t,e){return e?d(t,O.ajaxSettings):(e=t,t=O.ajaxSettings),d(t,e),t},ajaxSettings:{url:zt,isLocal:Jt.test(Rt[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":le},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":t.String,"text html":!0,"text json":O.parseJSON,"text xml":O.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:f(oe),ajaxTransport:f(ae),ajax:function(t,n){function i(t,n,i,o){if(2!==_){_=2,l&&clearTimeout(l),a=e,s=o||"",T.readyState=t>0?4:0;var h,p,f,w,k,S=n,A=i?u(g,T,i):e;if(t>=200&&300>t||304===t)if(g.ifModified&&((w=T.getResponseHeader("Last-Modified"))&&(O.lastModified[r]=w),(k=T.getResponseHeader("Etag"))&&(O.etag[r]=k)),304===t)S="notmodified",h=!0;else try{p=c(g,A),S="success",h=!0}catch(C){S="parsererror",f=C}else f=S,(!S||t)&&(S="error",0>t&&(t=0));T.status=t,T.statusText=""+(n||S),h?y.resolveWith(m,[p,S,T]):y.rejectWith(m,[T,S,f]),T.statusCode(x),x=e,d&&v.trigger("ajax"+(h?"Success":"Error"),[T,g,h?p:f]),b.fireWith(m,[T,S]),d&&(v.trigger("ajaxComplete",[T,g]),--O.active||O.event.trigger("ajaxStop"))}}"object"==typeof t&&(n=t,t=e),n=n||{};var r,s,o,a,l,h,d,f,g=O.ajaxSetup({},n),m=g.context||g,v=m!==g&&(m.nodeType||m instanceof O)?O(m):O.event,y=O.Deferred(),b=O.Callbacks("once memory"),x=g.statusCode||{},w={},k={},_=0,T={readyState:0,setRequestHeader:function(t,e){if(!_){var n=t.toLowerCase();t=k[n]=k[n]||t,w[t]=e}return this},getAllResponseHeaders:function(){return 2===_?s:null},getResponseHeader:function(t){var n;if(2===_){if(!o)for(o={};n=Vt.exec(s);)o[n[1].toLowerCase()]=n[2];n=o[t.toLowerCase()]}return n===e?null:n},overrideMimeType:function(t){return _||(g.mimeType=t),this},abort:function(t){return t=t||"abort",a&&a.abort(t),i(0,t),this}};if(y.promise(T),T.success=T.done,T.error=T.fail,T.complete=b.add,T.statusCode=function(t){if(t){var e;if(2>_)for(e in t)x[e]=[x[e],t[e]];else e=t[T.status],T.then(e,e)}return this},g.url=((t||g.url)+"").replace(Ut,"").replace(Qt,Rt[1]+"//"),g.dataTypes=O.trim(g.dataType||"*").toLowerCase().split(ne),null==g.crossDomain&&(h=re.exec(g.url.toLowerCase()),g.crossDomain=!(!h||h[1]==Rt[1]&&h[2]==Rt[2]&&(h[3]||("http:"===h[1]?80:443))==(Rt[3]||("http:"===Rt[1]?80:443)))),g.data&&g.processData&&"string"!=typeof g.data&&(g.data=O.param(g.data,g.traditional)),p(oe,g,n,T),2===_)return!1;if(d=g.global,g.type=g.type.toUpperCase(),g.hasContent=!Kt.test(g.type),d&&0===O.active++&&O.event.trigger("ajaxStart"),!g.hasContent&&(g.data&&(g.url+=(Zt.test(g.url)?"&":"?")+g.data,delete g.data),r=g.url,g.cache===!1)){var S=O.now(),A=g.url.replace(ie,"$1_="+S);g.url=A+(A===g.url?(Zt.test(g.url)?"&":"?")+"_="+S:"")}(g.data&&g.hasContent&&g.contentType!==!1||n.contentType)&&T.setRequestHeader("Content-Type",g.contentType),g.ifModified&&(r=r||g.url,O.lastModified[r]&&T.setRequestHeader("If-Modified-Since",O.lastModified[r]),O.etag[r]&&T.setRequestHeader("If-None-Match",O.etag[r])),T.setRequestHeader("Accept",g.dataTypes[0]&&g.accepts[g.dataTypes[0]]?g.accepts[g.dataTypes[0]]+("*"!==g.dataTypes[0]?", "+le+"; q=0.01":""):g.accepts["*"]);for(f in g.headers)T.setRequestHeader(f,g.headers[f]);if(g.beforeSend&&(g.beforeSend.call(m,T,g)===!1||2===_))return T.abort(),!1;for(f in{success:1,error:1,complete:1})T[f](g[f]);if(a=p(ae,g,n,T)){T.readyState=1,d&&v.trigger("ajaxSend",[T,g]),g.async&&g.timeout>0&&(l=setTimeout(function(){T.abort("timeout")},g.timeout));try{_=1,a.send(w,i)}catch(C){if(!(2>_))throw C;i(-1,C)}}else i(-1,"No Transport");return T},param:function(t,n){var i=[],r=function(t,e){e=O.isFunction(e)?e():e,i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(n===e&&(n=O.ajaxSettings.traditional),O.isArray(t)||t.jquery&&!O.isPlainObject(t))O.each(t,function(){r(this.name,this.value)});else for(var s in t)h(s,t[s],n,r);return i.join("&").replace(Xt,"+")}}),O.extend({active:0,lastModified:{},etag:{}});var ue=O.now(),he=/(\=)\?(&|$)|\?\?/i;O.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return O.expando+"_"+ue++}}),O.ajaxPrefilter("json jsonp",function(e,n,i){var r="application/x-www-form-urlencoded"===e.contentType&&"string"==typeof e.data;if("jsonp"===e.dataTypes[0]||e.jsonp!==!1&&(he.test(e.url)||r&&he.test(e.data))){var s,o=e.jsonpCallback=O.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a=t[o],l=e.url,c=e.data,u="$1"+o+"$2";return e.jsonp!==!1&&(l=l.replace(he,u),e.url===l&&(r&&(c=c.replace(he,u)),e.data===c&&(l+=(/\?/.test(l)?"&":"?")+e.jsonp+"="+o))),e.url=l,e.data=c,t[o]=function(t){s=[t]},i.always(function(){t[o]=a,s&&O.isFunction(a)&&t[o](s[0])}),e.converters["script json"]=function(){return s||O.error(o+" was not called"),s[0]},e.dataTypes[0]="json","script"}}),O.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(t){return O.globalEval(t),t}}}),O.ajaxPrefilter("script",function(t){t.cache===e&&(t.cache=!1),t.crossDomain&&(t.type="GET",t.global=!1)}),O.ajaxTransport("script",function(t){if(t.crossDomain){var n,i=$.head||$.getElementsByTagName("head")[0]||$.documentElement;return{send:function(r,s){n=$.createElement("script"),n.async="async",t.scriptCharset&&(n.charset=t.scriptCharset),n.src=t.url,n.onload=n.onreadystatechange=function(t,r){(r||!n.readyState||/loaded|complete/.test(n.readyState))&&(n.onload=n.onreadystatechange=null,i&&n.parentNode&&i.removeChild(n),n=e,r||s(200,"success"))},i.insertBefore(n,i.firstChild)},abort:function(){n&&n.onload(0,1)}}}});var de,pe=t.ActiveXObject?function(){for(var t in de)de[t](0,1)}:!1,fe=0;O.ajaxSettings.xhr=t.ActiveXObject?function(){return!this.isLocal&&l()||a()}:l,function(t){O.extend(O.support,{ajax:!!t,cors:!!t&&"withCredentials"in t})}(O.ajaxSettings.xhr()),O.support.ajax&&O.ajaxTransport(function(n){if(!n.crossDomain||O.support.cors){var i;return{send:function(r,s){var o,a,l=n.xhr();if(n.username?l.open(n.type,n.url,n.async,n.username,n.password):l.open(n.type,n.url,n.async),n.xhrFields)for(a in n.xhrFields)l[a]=n.xhrFields[a];n.mimeType&&l.overrideMimeType&&l.overrideMimeType(n.mimeType),!n.crossDomain&&!r["X-Requested-With"]&&(r["X-Requested-With"]="XMLHttpRequest");try{for(a in r)l.setRequestHeader(a,r[a])}catch(c){}l.send(n.hasContent&&n.data||null),i=function(t,r){var a,c,u,h,d;try{if(i&&(r||4===l.readyState))if(i=e,o&&(l.onreadystatechange=O.noop,pe&&delete de[o]),r)4!==l.readyState&&l.abort();else{a=l.status,u=l.getAllResponseHeaders(),h={},d=l.responseXML,d&&d.documentElement&&(h.xml=d),h.text=l.responseText;try{c=l.statusText}catch(p){c=""}a||!n.isLocal||n.crossDomain?1223===a&&(a=204):a=h.text?200:404}}catch(f){r||s(-1,f)}h&&s(a,c,h,u)},n.async&&4!==l.readyState?(o=++fe,pe&&(de||(de={},O(t).unload(pe)),de[o]=i),l.onreadystatechange=i):i()},abort:function(){i&&i(0,1)}}}});var ge,me,ve,ye,be={},xe=/^(?:toggle|show|hide)$/,we=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,ke=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["o
3pacity"]];O.fn.extend({show:function(t,e,n){var s,o;if(t||0===t)return this.animate(r("show",3),t,e,n);for(var a=0,l=this.length;l>a;a++)s=this[a],s.style&&(o=s.style.display,!O._data(s,"olddisplay")&&"none"===o&&(o=s.style.display=""),""===o&&"none"===O.css(s,"display")&&O._data(s,"olddisplay",i(s.nodeName)));for(a=0;l>a;a++)s=this[a],s.style&&(o=s.style.display,(""===o||"none"===o)&&(s.style.display=O._data(s,"olddisplay")||""));return this},hide:function(t,e,n){if(t||0===t)return this.animate(r("hide",3),t,e,n);for(var i,s,o=0,a=this.length;a>o;o++)i=this[o],i.style&&(s=O.css(i,"display"),"none"!==s&&!O._data(i,"olddisplay")&&O._data(i,"olddisplay",s));for(o=0;a>o;o++)this[o].style&&(this[o].style.display="none");return this},_toggle:O.fn.toggle,toggle:function(t,e,n){var i="boolean"==typeof t;return O.isFunction(t)&&O.isFunction(e)?this._toggle.apply(this,arguments):null==t||i?this.each(function(){var e=i?t:O(this).is(":hidden");O(this)[e?"show":"hide"]()}):this.animate(r("toggle",3),t,e,n),this},fadeTo:function(t,e,n,i){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,r){function s(){o.queue===!1&&O._mark(this);var e,n,r,s,a,l,c,u,h,d=O.extend({},o),p=1===this.nodeType,f=p&&O(this).is(":hidden");d.animatedProperties={};for(r in t){if(e=O.camelCase(r),r!==e&&(t[e]=t[r],delete t[r]),n=t[e],O.isArray(n)?(d.animatedProperties[e]=n[1],n=t[e]=n[0]):d.animatedProperties[e]=d.specialEasing&&d.specialEasing[e]||d.easing||"swing","hide"===n&&f||"show"===n&&!f)return d.complete.call(this);p&&("height"===e||"width"===e)&&(d.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],"inline"===O.css(this,"display")&&"none"===O.css(this,"float")&&(O.support.inlineBlockNeedsLayout&&"inline"!==i(this.nodeName)?this.style.zoom=1:this.style.display="inline-block"))}null!=d.overflow&&(this.style.overflow="hidden");for(r in t)s=new O.fx(this,d,r),n=t[r],xe.test(n)?(h=O._data(this,"toggle"+r)||("toggle"===n?f?"show":"hide":0),h?(O._data(this,"toggle"+r,"show"===h?"hide":"show"),s[h]()):s[n]()):(a=we.exec(n),l=s.cur(),a?(c=parseFloat(a[2]),u=a[3]||(O.cssNumber[r]?"":"px"),"px"!==u&&(O.style(this,r,(c||1)+u),l=(c||1)/s.cur()*l,O.style(this,r,l+u)),a[1]&&(c=("-="===a[1]?-1:1)*c+l),s.custom(l,c,u)):s.custom(l,n,""));return!0}var o=O.speed(e,n,r);return O.isEmptyObject(t)?this.each(o.complete,[!1]):(t=O.extend({},t),o.queue===!1?this.each(s):this.queue(o.queue,s))},stop:function(t,n,i){return"string"!=typeof t&&(i=n,n=t,t=e),n&&t!==!1&&this.queue(t||"fx",[]),this.each(function(){function e(t,e,n){var r=e[n];O.removeData(t,n,!0),r.stop(i)}var n,r=!1,s=O.timers,o=O._data(this);if(i||O._unmark(!0,this),null==t)for(n in o)o[n]&&o[n].stop&&n.indexOf(".run")===n.length-4&&e(this,o,n);else o[n=t+".run"]&&o[n].stop&&e(this,o,n);for(n=s.length;n--;)s[n].elem===this&&(null==t||s[n].queue===t)&&(i?s[n](!0):s[n].saveState(),r=!0,s.splice(n,1));(!i||!r)&&O.dequeue(this,t)})}}),O.each({slideDown:r("show",1),slideUp:r("hide",1),slideToggle:r("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){O.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}}),O.extend({speed:function(t,e,n){var i=t&&"object"==typeof t?O.extend({},t):{complete:n||!n&&e||O.isFunction(t)&&t,duration:t,easing:n&&e||e&&!O.isFunction(e)&&e};return i.duration=O.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in O.fx.speeds?O.fx.speeds[i.duration]:O.fx.speeds._default,(null==i.queue||i.queue===!0)&&(i.queue="fx"),i.old=i.complete,i.complete=function(t){O.isFunction(i.old)&&i.old.call(this),i.queue?O.dequeue(this,i.queue):t!==!1&&O._unmark(this)},i},easing:{linear:function(t,e,n,i){return n+i*t},swing:function(t,e,n,i){return(-Math.cos(t*Math.PI)/2+.5)*i+n}},timers:[],fx:function(t,e,n){this.options=e,this.elem=t,this.prop=n,e.orig=e.orig||{}}}),O.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(O.fx.step[this.prop]||O.fx.step._default)(this)},cur:function(){if(null!=this.elem[this.prop]&&(!this.elem.style||null==this.elem.style[this.prop]))return this.elem[this.prop];var t,e=O.css(this.elem,this.prop);return isNaN(t=parseFloat(e))?e&&"auto"!==e?e:0:t},custom:function(t,n,i){function r(t){return s.step(t)}var s=this,a=O.fx;this.startTime=ye||o(),this.end=n,this.now=this.start=t,this.pos=this.state=0,this.unit=i||this.unit||(O.cssNumber[this.prop]?"":"px"),r.queue=this.options.queue,r.elem=this.elem,r.saveState=function(){s.options.hide&&O._data(s.elem,"fxshow"+s.prop)===e&&O._data(s.elem,"fxshow"+s.prop,s.start)},r()&&O.timers.push(r)&&!ve&&(ve=setInterval(a.tick,a.interval))},show:function(){var t=O._data(this.elem,"fxshow"+this.prop);this.options.orig[this.prop]=t||O.style(this.elem,this.prop),this.options.show=!0,t!==e?this.custom(this.cur(),t):this.custom("width"===this.prop||"height"===this.prop?1:0,this.cur()),O(this.elem).show()},hide:function(){this.options.orig[this.prop]=O._data(this.elem,"fxshow"+this.prop)||O.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(t){var e,n,i,r=ye||o(),s=!0,a=this.elem,l=this.options;if(t||r>=l.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),l.animatedProperties[this.prop]=!0;for(e in l.animatedProperties)l.animatedProperties[e]!==!0&&(s=!1);if(s){if(null!=l.overflow&&!O.support.shrinkWrapBlocks&&O.each(["","X","Y"],function(t,e){a.style["overflow"+e]=l.overflow[t]}),l.hide&&O(a).hide(),l.hide||l.show)for(e in l.animatedProperties)O.style(a,e,l.orig[e]),O.removeData(a,"fxshow"+e,!0),O.removeData(a,"toggle"+e,!0);i=l.complete,i&&(l.complete=!1,i.call(a))}return!1}return l.duration==1/0?this.now=r:(n=r-this.startTime,this.state=n/l.duration,this.pos=O.easing[l.animatedProperties[this.prop]](this.state,n,0,1,l.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update(),!0}},O.extend(O.fx,{tick:function(){for(var t,e=O.timers,n=0;n<e.length;n++)t=e[n],!t()&&e[n]===t&&e.splice(n--,1);e.length||O.fx.stop()},interval:13,stop:function(){clearInterval(ve),ve=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(t){O.style(t.elem,"opacity",t.now)},_default:function(t){t.elem.style&&null!=t.elem.style[t.prop]?t.elem.style[t.prop]=t.now+t.unit:t.elem[t.prop]=t.now}}}),O.each(["width","height"],function(t,e){O.fx.step[e]=function(t){O.style(t.elem,e,Math.max(0,t.now)+t.unit)}}),O.expr&&O.expr.filters&&(O.expr.filters.animated=function(t){return O.grep(O.timers,function(e){return t===e.elem}).length});var _e=/^t(?:able|d|h)$/i,Te=/^(?:body|html)$/i;"getBoundingClientRect"in $.documentElement?O.fn.offset=function(t){var e,i=this[0];if(t)return this.each(function(e){O.offset.setOffset(this,t,e)});if(!i||!i.ownerDocument)return null;if(i===i.ownerDocument.body)return O.offset.bodyOffset(i);try{e=i.getBoundingClientRect()}catch(r){}var s=i.ownerDocument,o=s.documentElement;
3if(!e||!O.contains(o,i))return e?{top:e.top,left:e.left}:{top:0,left:0};var a=s.body,l=n(s),c=o.clientTop||a.clientTop||0,u=o.clientLeft||a.clientLeft||0,h=l.pageYOffset||O.support.boxModel&&o.scrollTop||a.scrollTop,d=l.pageXOffset||O.support.boxModel&&o.scrollLeft||a.scrollLeft,p=e.top+h-c,f=e.left+d-u;return{top:p,left:f}}:O.fn.offset=function(t){var e=this[0];if(t)return this.each(function(e){O.offset.setOffset(this,t,e)});if(!e||!e.ownerDocument)return null;if(e===e.ownerDocument.body)return O.offset.bodyOffset(e);for(var n,i=e.offsetParent,r=e,s=e.ownerDocument,o=s.documentElement,a=s.body,l=s.defaultView,c=l?l.getComputedStyle(e,null):e.currentStyle,u=e.offsetTop,h=e.offsetLeft;(e=e.parentNode)&&e!==a&&e!==o&&(!O.support.fixedPosition||"fixed"!==c.position);)n=l?l.getComputedStyle(e,null):e.currentStyle,u-=e.scrollTop,h-=e.scrollLeft,e===i&&(u+=e.offsetTop,h+=e.offsetLeft,O.support.doesNotAddBorder&&(!O.support.doesAddBorderForTableAndCells||!_e.test(e.nodeName))&&(u+=parseFloat(n.borderTopWidth)||0,h+=parseFloat(n.borderLeftWidth)||0),r=i,i=e.offsetParent),O.support.subtractsBorderForOverflowNotVisible&&"visible"!==n.overflow&&(u+=parseFloat(n.borderTopWidth)||0,h+=parseFloat(n.borderLeftWidth)||0),c=n;return("relative"===c.position||"static"===c.position)&&(u+=a.offsetTop,h+=a.offsetLeft),O.support.fixedPosition&&"fixed"===c.position&&(u+=Math.max(o.scrollTop,a.scrollTop),h+=Math.max(o.scrollLeft,a.scrollLeft)),{top:u,left:h}},O.offset={bodyOffset:function(t){var e=t.offsetTop,n=t.offsetLeft;return O.support.doesNotIncludeMarginInBodyOffset&&(e+=parseFloat(O.css(t,"marginTop"))||0,n+=parseFloat(O.css(t,"marginLeft"))||0),{top:e,left:n}},setOffset:function(t,e,n){var i=O.css(t,"position");"static"===i&&(t.style.position="relative");var r,s,o=O(t),a=o.offset(),l=O.css(t,"top"),c=O.css(t,"left"),u=("absolute"===i||"fixed"===i)&&O.inArray("auto",[l,c])>-1,h={},d={};u?(d=o.position(),r=d.top,s=d.left):(r=parseFloat(l)||0,s=parseFloat(c)||0),O.isFunction(e)&&(e=e.call(t,n,a)),null!=e.top&&(h.top=e.top-a.top+r),null!=e.left&&(h.left=e.left-a.left+s),"using"in e?e.using.call(t,h):o.css(h)}},O.fn.extend({position:function(){if(!this[0])return null;var t=this[0],e=this.offsetParent(),n=this.offset(),i=Te.test(e[0].nodeName)?{top:0,left:0}:e.offset();return n.top-=parseFloat(O.css(t,"marginTop"))||0,n.left-=parseFloat(O.css(t,"marginLeft"))||0,i.top+=parseFloat(O.css(e[0],"borderTopWidth"))||0,i.left+=parseFloat(O.css(e[0],"borderLeftWidth"))||0,{top:n.top-i.top,left:n.left-i.left}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||$.body;t&&!Te.test(t.nodeName)&&"static"===O.css(t,"position");)t=t.offsetParent;return t})}}),O.each(["Left","Top"],function(t,i){var r="scroll"+i;O.fn[r]=function(i){var s,o;return i===e?(s=this[0])?(o=n(s),o?"pageXOffset"in o?o[t?"pageYOffset":"pageXOffset"]:O.support.boxModel&&o.document.documentElement[r]||o.document.body[r]:s[r]):null:this.each(function(){o=n(this),o?o.scrollTo(t?O(o).scrollLeft():i,t?i:O(o).scrollTop()):this[r]=i})}}),O.each(["Height","Width"],function(t,n){var i=n.toLowerCase();O.fn["inner"+n]=function(){var t=this[0];return t?t.style?parseFloat(O.css(t,i,"padding")):this[i]():null},O.fn["outer"+n]=function(t){var e=this[0];return e?e.style?parseFloat(O.css(e,i,t?"margin":"border")):this[i]():null},O.fn[i]=function(t){var r=this[0];if(!r)return null==t?null:this;if(O.isFunction(t))return this.each(function(e){var n=O(this);n[i](t.call(this,e,n[i]()))});if(O.isWindow(r)){var s=r.document.documentElement["client"+n],o=r.document.body;return"CSS1Compat"===r.document.compatMode&&s||o&&o["client"+n]||s}if(9===r.nodeType)return Math.max(r.documentElement["client"+n],r.body["scroll"+n],r.documentElement["scroll"+n],r.body["offset"+n],r.documentElement["offset"+n]);if(t===e){var a=O.css(r,i),l=parseFloat(a);return O.isNumeric(l)?l:a}return this.css(i,"string"==typeof t?t:t+"px")}}),t.jQuery=t.$=O,"function"==typeof define&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return O})}(window),jQuery.extend({put:function(t,e,n,i){return _ajax_request(t,e,n,i,"PUT")}
3,"delete":function(t,e,n,i){return _ajax_request(t,e,n,i,"DELETE")}}),function(t,e){function n(e){return!t(e).parents().andSelf().filter(function(){return"hidden"===t.curCSS(this,"visibility")||t.expr.filters.hidden(this)}).length}function i(e,i){var r=e.nodeName.toLowerCase();if("area"===r){var s,o=e.parentNode,a=o.name;return e.href&&a&&"map"===o.nodeName.toLowerCase()?(s=t("img[usemap=#"+a+"]")[0],!!s&&n(s)):!1}return(/input|select|textarea|button|object/.test(r)?!e.disabled:"a"==r?e.href||i:i)&&n(e)}t.ui=t.ui||{},t.ui.version||(t.extend(t.ui,{version:"1.8.17",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,n){return"number"==typeof e?this.each(function(){var i=this;setTimeout(function(){t(i).focus(),n&&n.call(i)},e)}):this._focus.apply(this,arguments)},scrollParent:function(){var e;return 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),/fixed/.test(this.css("position"))||!e.length?t(document):e},zIndex:function(n){if(n!==e)return this.css("zIndex",n);if(this.length)for(var i,r,s=t(this[0]);s.length&&s[0]!==document;){if(i=s.css("position"),("absolute"===i||"relative"===i||"fixed"===i)&&(r=parseInt(s.css("zIndex"),10),!isNaN(r)&&0!==r))return r;s=s.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(n,i){function r(e,n,i,r){return t.each(s,function(){n-=parseFloat(t.curCSS(e,"padding"+this,!0))||0,i&&(n-=parseFloat(t.curCSS(e,"border"+this+"Width",!0))||0),r&&(n-=parseFloat(t.curCSS(e,"margin"+this,!0))||0)}),n}var s="Width"===i?["Left","Right"]:["Top","Bottom"],o=i.toLowerCase(),a={innerWidth:t.fn.innerWidth,
4innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};t.fn["inner"+i]=function(n){return n===e?a["inner"+i].call(this):this.each(function(){t(this).css(o,r(this,n)+"px")})},t.fn["outer"+i]=function(e,n){return"number"!=typeof e?a["outer"+i].call(this,e):this.each(function(){t(this).css(o,r(this,e,!0,n)+"px")})}}),t.extend(t.expr[":"],{data:function(e,n,i){return!!t.data(e,i[3])},focusable:function(e){return i(e,!isNaN(t.attr(e,"tabindex")))},tabbable:function(e){var n=t.attr(e,"tabindex"),r=isNaN(n);return(r||n>=0)&&i(e,!r)}}),t(function(){var e=document.body,n=e.appendChild(n=document.createElement("div"));t.extend(n.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0}),t.support.minHeight=100===n.offsetHeight,t.support.selectstart="onselectstart"in n,e.removeChild(n).style.display="none"}),t.extend(t.ui,{plugin:{add:function(e,n,i){var r=t.ui[e].prototype;for(var s in i)r.plugins[s]=r.plugins[s]||[],r.plugins[s].push([n,i[s]])},call:function(t,e,n){var i=t.plugins[e];if(i&&t.element[0].parentNode)for(var r=0;r<i.length;r++)t.options[i[r][0]]&&i[r][1].apply(t.element,n)}},contains:function(t,e){return document.compareDocumentPosition?16&t.compareDocumentPosition(e):t!==e&&t.contains(e)},hasScroll:function(e,n){if("hidden"===t(e).css("overflow"))return!1;var i=n&&"left"===n?"scrollLeft":"scrollTop",r=!1;return e[i]>0?!0:(e[i]=1,r=e[i]>0,e[i]=0,r)},isOverAxis:function(t,e,n){return t>e&&e+n>t},isOver:function(e,n,i,r,s,o){return t.ui.isOverAxis(e,i,s)&&t.ui.isOverAxis(n,r,o)}}))}(jQuery),function(t,e){if(t.cleanData){var n=t.cleanData;t.cleanData=function(e){for(var i,r=0;null!=(i=e[r]);r++)try{t(i).triggerHandler("remove")}catch(s){}n(e)}}else{var i=t.fn.remove;t.fn.remove=function(e,n){return this.each(function(){return n||(!e||t.filter(e,[this]).length)&&t("*",this).add([this]).each(function(){try{t(this).triggerHandler("remove")}catch(e){}}),i.call(t(this),e,n)})}}t.widget=function(e,n,i){var r,s=e.split(".")[0];e=e.split(".")[1],r=s+"-"+e,i||(i=n,n=t.Widget),t.expr[":"][r]=function(n){return!!t.data(n,e)},t[s]=t[s]||{},t[s][e]=function(t,e){arguments.length&&this._createWidget(t,e)};var o=new n;o.options=t.extend(!0,{},o.options),t[s][e].prototype=t.extend(!0,o,{namespace:s,widgetName:e,widgetEventPrefix:t[s][e].prototype.widgetEventPrefix||e,widgetBaseClass:r},i),t.widget.bridge(e,t[s][e])},t.widget.bridge=function(n,i){t.fn[n]=function(r){var s="string"==typeof r,o=Array.prototype.slice.call(arguments,1
4),a=this;return r=!s&&o.length?t.extend.apply(null,[!0,r].concat(o)):r,s&&"_"===r.charAt(0)?a:(s?this.each(function(){var i=t.data(this,n),s=i&&t.isFunction(i[r])?i[r].apply(i,o):i;return s!==i&&s!==e?(a=s,!1):void 0}):this.each(function(){var e=t.data(this,n);e?e.option(r||{})._init():t.data(this,n,new i(r,this))}),a)}},t.Widget=function(t,e){arguments.length&&this._createWidget(t,e)},t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:!1},_createWidget:function(e,n){t.data(n,this.widgetName,this),this.element=t(n),this.options=t.extend(!0,{},this.options,this._getCreateOptions(),e);var i=this;this.element.bind("remove."+this.widgetName,function(){i.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(n,i){var r=n;if(0===arguments.length)return t.extend({},this.options);if("string"==typeof n){if(i===e)return this.options[n];r={},r[n]=i}return this._setOptions(r),this},_setOptions:function(e){var n=this;return t.each(e,function(t,e){n._setOption(t,e)}),this},_setOption:function(t,e){return this.options[t]=e,"disabled"===t&&this.widget()[e?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",e),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_trigger:function(e,n,i){var r,s,o=this.options[e];if(i=i||{},n=t.Event(n),n.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),n.target=this.element[0],s=n.originalEvent,s)for(r in s)r in n||(n[r]=s[r]);return this.element.trigger(n,i),!(t.isFunction(o)&&o.call(this.element[0],n,i)===!1||n.isDefaultPrevented())}}}(jQuery),function(t,e){var n=!1;t(document).mouseup(function(t){n=!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(n){return!0===t.data(n.target,e.widgetName+".preventClickEvent")?(t.removeData(n.target,e.widgetName+".preventClickEvent"),n.stopImmediatePropagation(),!1):void 0}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(e){if(!n){this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e;var i=this,r=1==e.which,s="string"==typeof this.options.cancel&&e.target.nodeName?t(e.target).closest(this.options.cancel).length:!1;return r&&!s&&this._mouseCapture(e)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){i.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=this._mouseStart(e)!==!1,!this._mouseStarted)?(e.preventDefault(),!0):(!0===t.data(e.target,this.widgetName+".preventClickEvent")&&t.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return i._mouseMove(t)},this._mouseUpDelegate=function(t){return i._mouseUp(t)},t(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),n=!0,!0)):!0}},_mouseMove:function(e){return!t.browser.msie||document.documentMode>=9||e.button?this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,e)!==!1,this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted):this._mouseUp(e)},_mouseUp:function(e){return t(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target==this._mouseDownEvent.target&&t.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),!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(t){return this.mouseDelayMet},_mouseStart:function(t){},_mouseDrag:function(t){},_mouseStop:function(t){},_mouseCapture:function(t){return!0}})}(jQuery),function(t,e){t.ui=t.ui||{};
4var n=/left|center|right/,i=/top|center|bottom/,r="center",s={},o=t.fn.position,a=t.fn.offset;t.fn.position=function(e){if(!e||!e.of)return o.apply(this,arguments);e=t.extend({},e);var a,l,c,u=t(e.of),h=u[0],d=(e.collision||"flip").split(" "),p=e.offset?e.offset.split(" "):[0,0];return 9===h.nodeType?(a=u.width(),l=u.height(),c={top:0,left:0}):h.setTimeout?(a=u.width(),l=u.height(),c={top:u.scrollTop(),left:u.scrollLeft()}):h.preventDefault?(e.at="left top",a=l=0,c={top:e.of.pageY,left:e.of.pageX}):(a=u.outerWidth(),l=u.outerHeight(),c=u.offset()),t.each(["my","at"],function(){var t=(e[this]||"").split(" ");1===t.length&&(t=n.test(t[0])?t.concat([r]):i.test(t[0])?[r].concat(t):[r,r]),t[0]=n.test(t[0])?t[0]:r,t[1]=i.test(t[1])?t[1]:r,e[this]=t}),1===d.length&&(d[1]=d[0]),p[0]=parseInt(p[0],10)||0,1===p.length&&(p[1]=p[0]),p[1]=parseInt(p[1],10)||0,"right"===e.at[0]?c.left+=a:e.at[0]===r&&(c.left+=a/2),"bottom"===e.at[1]?c.top+=l:e.at[1]===r&&(c.top+=l/2),c.left+=p[0],c.top+=p[1],this.each(function(){var n,i=t(this),o=i.outerWidth(),u=i.outerHeight(),h=parseInt(t.curCSS(this,"marginLeft",!0))||0,f=parseInt(t.curCSS(this,"marginTop",!0))||0,g=o+h+(parseInt(t.curCSS(this,"marginRight",!0))||0),m=u+f+(parseInt(t.curCSS(this,"marginBottom",!0))||0),v=t.extend({},c);"right"===e.my[0]?v.left-=o:e.my[0]===r&&(v.left-=o/2),"bottom"===e.my[1]?v.top-=u:e.my[1]===r&&(v.top-=u/2),s.fractions||(v.left=Math.round(v.left),v.top=Math.round(v.top)),n={left:v.left-h,top:v.top-f},t.each(["left","top"],function(i,r){t.ui.position[d[i]]&&t.ui.position[d[i]][r](v,{targetWidth:a,targetHeight:l,elemWidth:o,elemHeight:u,collisionPosition:n,collisionWidth:g,collisionHeight:m,offset:p,my:e.my,at:e.at})}),t.fn.bgiframe&&i.bgiframe(),i.offset(t.extend(v,{using:e.using}))})},t.ui.position={fit:{left:function(e,n){var i=t(window),r=n.collisionPosition.left+n.collisionWidth-i.width()-i.scrollLeft();e.left=r>0?e.left-r:Math.max(e.left-n.collisionPosition.left,e.left)},top:function(e,n){var i=t(window),r=n.collisionPosition.top+n.collisionHeight-i.height()-i.scrollTop();e.top=r>0?e.top-r:Math.max(e.top-n.collisionPosition.top,e.top)}},flip:{left:function(e,n){if(n.at[0]!==r){var i=t(window),s=n.collisionPosition.left+n.collisionWidth-i.width()-i.scrollLeft(),o="left"===n.my[0]?-n.elemWidth:"right"===n.my[0]?n.elemWidth:0,a="left"===n.at[0]?n.targetWidth:-n.targetWidth,l=-2*n.offset[0];e.left+=n.collisionPosition.left<0?o+a+l:s>0?o+a+l:0}},top:function(e,n){if(n.at[1]!==r){var i=t(window),s=n.collisionPosition.top+n.collisionHeight-i.height()-i.scrollTop(),o="top"===n.my[1]?-n.elemHeight:"bottom"===n.my[1]?n.elemHeight:0,a="top"===n.at[1]?n.targetHeight:-n.targetHeight,l=-2*n.offset[1];e.top+=n.collisionPosition.top<0?o+a+l:s>0?o+a+l:0}}}},t.offset.setOffset||(t.offset.setOffset=function(e,n){/static/.test(t.curCSS(e,"position"))&&(e.style.position="relative");var i=t(e),r=i.offset(),s=parseInt(t.curCSS(e,"top",!0),10)||0,o=parseInt(t.curCSS(e,"left",!0),10)||0,a={top:n.top-r.top+s,left:n.left-r.left+o};"using"in n?n.using.call(e,a):i.css(a)},t.fn.offset=function(e){var n=this[0];return n&&n.ownerDocument?e?this.each(function(){t.offset.setOffset(this,e)}):a.call(this):null}),function(){var e,n,i,r,o,a=document.getElementsByTagName("body")[0],l=document.createElement("div");e=document.createElement(a?"div":"body"),i={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},a&&jQuery.extend(i,{position:"absolute",left:"-1000px",top:"-1000px"});for(var c in i)e.style[c]=i[c];e.appendChild(l),n=a||document.documentElement,n.insertBefore(e,n.firstChild),l.style.cssText="position: absolute; left: 10.7432222px; top: 10.432325px; height: 30px; width: 201px;",r=t(l).offset(function(t,e){return e}).offset(),e.innerHTML="",n.removeChild(e),o=r.top+r.left+(a?2e3:0),s.fractions=o>21&&22>o}()}(jQuery),function(t,e){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(){"original"==this.options.helper&&!/^(?: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(){return this.element.data("draggable")?(this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy(),this):void 0},_mouseCapture:function(e){var n=this.options;return this.helper||n.disabled||t(e.target).is(".ui-resizable-handle")?!1:(this.handle=this._getHandle(e),this.handle?(n.iframeFix&&t(n.iframeFix===!0?"iframe":n.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")}),!0):!1)},_mouseStart:function(e){var n=this.options;return this.helper=this._createHelper(e),this._cacheHelperProportions(),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
4: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,n.cursorAt&&this._adjustOffsetFromHelper(n.cursorAt),n.containment&&this._setContainment(),this._trigger("start",e)===!1?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!n.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),!0)},_mouseDrag:function(e,n){if(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),!n){var i=this._uiHash();if(this._trigger("drag",e,i)===!1)return this._mouseUp({}),!1;this.position=i.position}return this.options.axis&&"y"==this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"==this.options.axis||(this.helper[0].style.top=this.position.top+"px"),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var n=!1;if(t.ui.ddmanager&&!this.options.dropBehaviour&&(n=t.ui.ddmanager.drop(this,e)),this.dropped&&(n=this.dropped,this.dropped=!1),!(this.element[0]&&this.element[0].parentNode||"original"!=this.options.helper))return!1;if("invalid"==this.options.revert&&!n||"valid"==this.options.revert&&n||this.options.revert===!0||t.isFunction(this.options.revert)&&this.options.revert.call(this.element,n)){var i=this;t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){i._trigger("stop",e)!==!1&&i._clear()})}else this._trigger("stop",e)!==!1&&this._clear();return!1},_mouseUp:function(e){return this.options.iframeFix===!0&&t("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)}),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(e){var n=this.options.handle&&t(this.options.handle,this.element).length?!1:!0;return t(this.options.handle,this.element).find("*").andSelf().each(function(){this==e.target&&(n=!0)}),n},_createHelper:function(e){var n=this.options,i=t.isFunction(n.helper)?t(n.helper.apply(this.element[0],[e])):"clone"==n.helper?this.element.clone().removeAttr("id"):this.element;return i.parents("body").length||i.appendTo("parent"==n.appendTo?this.element[0].parentNode:n.appendTo),i[0]!=this.element[0]&&!/(fixed|absolute)/.test(i.css("position"))&&i.css("position","absolute"),i},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"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();return"absolute"==this.cssPosition&&this.scrollParent[0]!=document&&t.ui.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&"html"==this.offsetParent[0].tagName.toLowerCase()&&t.browser.msie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"==this.cssPosition){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()}}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("parent"==e.containment&&(e.containment=this.helper[0].parentNode),("document"==e.containment||"window"==e.containment)&&(this.containment=["document"==e.containment?0:t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,"document"==e.containment?0:t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,("document"==e.containment?0:t(window).scrollLeft())+t("document"==e.containment?document:window).width()-this.helperProportions.width-this.margins.left,("document"==e.containment?0:t(window).scrollTop())+(t("document"==e.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(e.containment)||e.containment.constructor==Array)e.containment.constructor==Array&&(this.containment=e.containment);else{var n=t(e.containment),i=n[0];if(!i)return;
4var r=(n.offset(),"hidden"!=t(i).css("overflow"));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),(r?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,(r?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=n}},_convertPositionTo:function(e,n){n||(n=this.position);var i="absolute"==e?1:-1,r=(this.options,"absolute"!=this.cssPosition||this.scrollParent[0]!=document&&t.ui.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent),s=/(html|body)/i.test(r[0].tagName);return{top:n.top+this.offset.relative.top*i+this.offset.parent.top*i-(t.browser.safari&&t.browser.version<526&&"fixed"==this.cssPosition?0:("fixed"==this.cssPosition?-this.scrollParent.scrollTop():s?0:r.scrollTop())*i),left:n.left+this.offset.relative.left*i+this.offset.parent.left*i-(t.browser.safari&&t.browser.version<526&&"fixed"==this.cssPosition?0:("fixed"==this.cssPosition?-this.scrollParent.scrollLeft():s?0:r.scrollLeft())*i)}},_generatePosition:function(e){var n=this.options,i="absolute"!=this.cssPosition||this.scrollParent[0]!=document&&t.ui.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,r=/(html|body)/i.test(i[0].tagName),s=e.pageX,o=e.pageY;if(this.originalPosition){var a;if(this.containment){if(this.relative_container){var l=this.relative_container.offset();a=[this.containment[0]+l.left,this.containment[1]+l.top,this.containment[2]+l.left,this.containment[3]+l.top]}else a=this.containment;e.pageX-this.offset.click.left<a[0]&&(s=a[0]+this.offset.click.left),e.pageY-this.offset.click.top<a[1]&&(o=a[1]+this.offset.click.top),e.pageX-this.offset.click.left>a[2]&&(s=a[2]+this.offset.click.left),e.pageY-this.offset.click.top>a[3]&&(o=a[3]+this.offset.click.top)}if(n.grid){var c=n.grid[1]?this.originalPageY+Math.round((o-this.originalPageY)/n.grid[1])*n.grid[1]:this.originalPageY;o=a&&(c-this.offset.click.top<a[1]||c-this.offset.click.top>a[3])?c-this.offset.click.top<a[1]?c+n.grid[1]:c-n.grid[1]:c;var u=n.grid[0]?this.originalPageX+Math.round((s-this.originalPageX)/n.grid[0])*n.grid[0]:this.originalPageX;s=a&&(u-this.offset.click.left<a[0]||u-this.offset.click.left>a[2])?u-this.offset.click.left<a[0]?u+n.grid[0]:u-n.grid[0]:u}}return{top:o-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(t.browser.safari&&t.browser.version<526&&"fixed"==this.cssPosition?0:"fixed"==this.cssPosition?-this.scrollParent.scrollTop():r?0:i.scrollTop()),left:s-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(t.browser.safari&&t.browser.version<526&&"fixed"==this.cssPosition?0:"fixed"==this.cssPosition?-this.scrollParent.scrollLeft():r?0:i.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,n,i){return i=i||this._uiHash(),t.ui.plugin.call(this,e,[n,i]),"drag"==e&&(this.positionAbs=this._convertPositionTo("absolute")),t.Widget.prototype._trigger.call(this,e,n,i)},plugins:{},_uiHash:function(t){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.extend(t.ui.draggable,{version:"1.8.17"}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,n){var i=t(this).data("draggable"),r=i.options,s=t.extend({},n,{item:i.element});i.sortables=[],t(r.connectToSortable).each(function(){var n=t.data(this,"sortable");n&&!n.options.disabled&&(i.sortables.push({instance:n,shouldRevert:n.options.revert}),n.refreshPositions(),n._trigger("activate",e,s))})},stop:function(e,n){var i=t(this).data("draggable"),r=t.extend({},n,{item:i.element});t.each(i.sortables,function(){this.instance.isOver?(this.instance.isOver=0,i.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=!0),this.instance._mouseStop(e),this.instance.options.helper=this.instance.options._helper,"original"==i.options.helper&&this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",e,r))})},drag:function(e,n){var i=t(this).data("draggable"),r=this;t.each(i.sortables,function(s){this.instance.positionAbs=i.positionAbs,this.instance.helperProportions=i.helperProportions,this.instance.offset.click=i.offset.click,this.instance._intersectsWith(this.instance.containerCache)?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=t(r).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 n.helper[0]},e.target=this.instance.currentItem[0],this.instance._mouseCapture(e,!0),this.instance._mouseStart(e,!0,!0),this.instance.offset.click.top=i.offset.click.top,this.instance.offset.click.left
4=i.offset.click.left,this.instance.offset.parent.left-=i.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=i.offset.parent.top-this.instance.offset.parent.top,i._trigger("toSortable",e),i.dropped=this.instance.element,i.currentItem=i.element,this.instance.fromOutside=i),this.instance.currentItem&&this.instance._mouseDrag(e)):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(),i._trigger("fromSortable",e),i.dropped=!1)})}}),t.ui.plugin.add("draggable","cursor",{start:function(e,n){var i=t("body"),r=t(this).data("draggable").options;i.css("cursor")&&(r._cursor=i.css("cursor")),i.css("cursor",r.cursor)},stop:function(e,n){var i=t(this).data("draggable").options;i._cursor&&t("body").css("cursor",i._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,n){var i=t(n.helper),r=t(this).data("draggable").options;i.css("opacity")&&(r._opacity=i.css("opacity")),i.css("opacity",r.opacity)},stop:function(e,n){var i=t(this).data("draggable").options;i._opacity&&t(n.helper).css("opacity",i._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(e,n){var i=t(this).data("draggable");i.scrollParent[0]!=document&&"HTML"!=i.scrollParent[0].tagName&&(i.overflowOffset=i.scrollParent.offset())},drag:function(e,n){var i=t(this).data("draggable"),r=i.options,s=!1;i.scrollParent[0]!=document&&"HTML"!=i.scrollParent[0].tagName?(r.axis&&"x"==r.axis||(i.overflowOffset.top+i.scrollParent[0].offsetHeight-e.pageY<r.scrollSensitivity?i.scrollParent[0].scrollTop=s=i.scrollParent[0].scrollTop+r.scrollSpeed:e.pageY-i.overflowOffset.top<r.scrollSensitivity&&(i.scrollParent[0].scrollTop=s=i.scrollParent[0].scrollTop-r.scrollSpeed)),r.axis&&"y"==r.axis||(i.overflowOffset.left+i.scrollParent[0].offsetWidth-e.pageX<r.scrollSensitivity?i.scrollParent[0].scrollLeft=s=i.scrollParent[0].scrollLeft+r.scrollSpeed:e.pageX-i.overflowOffset.left<r.scrollSensitivity&&(i.scrollParent[0].scrollLeft=s=i.scrollParent[0].scrollLeft-r.scrollSpeed))):(r.axis&&"x"==r.axis||(e.pageY-t(document).scrollTop()<r.scrollSensitivity?s=t(document).scrollTop(t(document).scrollTop()-r.scrollSpeed):t(window).height()-(e.pageY-t(document).scrollTop())<r.scrollSensitivity&&(s=t(document).scrollTop(t(document).scrollTop()+r.scrollSpeed))),r.axis&&"y"==r.axis||(e.pageX-t(document).scrollLeft()<r.scrollSensitivity?s=t(document).scrollLeft(t(document).scrollLeft()-r.scrollSpeed):t(window).width()-(e.pageX-t(document).scrollLeft())<r.scrollSensitivity&&(s=t(document).scrollLeft(t(document).scrollLeft()+r.scrollSpeed)))),s!==!1&&t.ui.ddmanager&&!r.dropBehaviour&&t.ui.ddmanager.prepareOffsets(i,e)}}),t.ui.plugin.add("draggable","snap",{start:function(e,n){var i=t(this).data("draggable"),r=i.options;i.snapElements=[],t(r.snap.constructor!=String?r.snap.items||":data(draggable)":r.snap).each(function(){var e=t(this),n=e.offset();this!=i.element[0]&&i.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:n.top,left:n.left})})},drag:function(e,n){for(var i=t(this).data("draggable"),r=i.options,s=r.snapTolerance,o=n.offset.left,a=o+i.helperProportions.width,l=n.offset.top,c=l+i.helperProportions.height,u=i.snapElements.length-1;u>=0;u--){var h=i.snapElements[u].left,d=h+i.snapElements[u].width,p=i.snapElements[u].top,f=p+i.snapElements[u].height;if(o>h-s&&d+s>o&&l>p-s&&f+s>l||o>h-s&&d+s>o&&c>p-s&&f+s>c||a>h-s&&d+s>a&&l>p-s&&f+s>l||a>h-s&&d+s>a&&c>p-s&&f+s>c){if("inner"!=r.snapMode){var g=Math.abs(p-c)<=s,m=Math.abs(f-l)<=s,v=Math.abs(h-a)<=s,y=Math.abs(d-o)<=s;g&&(n.position.top=i._convertPositionTo("relative",{top:p-i.helperProportions.height,left:0}).top-i.margins.top),m&&(n.position.top=i._convertPositionTo("relative",{top:f,left:0}).top-i.margins.top),v&&(n.position.left=i._convertPositionTo("relative",{top:0,left:h-i.helperProportions.width}
4).left-i.margins.left),y&&(n.position.left=i._convertPositionTo("relative",{top:0,left:d}).left-i.margins.left)}var b=g||m||v||y;if("outer"!=r.snapMode){var g=Math.abs(p-l)<=s,m=Math.abs(f-c)<=s,v=Math.abs(h-o)<=s,y=Math.abs(d-a)<=s;g&&(n.position.top=i._convertPositionTo("relative",{top:p,left:0}).top-i.margins.top),m&&(n.position.top=i._convertPositionTo("relative",{top:f-i.helperProportions.height,left:0}).top-i.margins.top),v&&(n.position.left=i._convertPositionTo("relative",{top:0,left:h}).left-i.margins.left),y&&(n.position.left=i._convertPositionTo("relative",{top:0,left:d-i.helperProportions.width}).left-i.margins.left)}!i.snapElements[u].snapping&&(g||m||v||y||b)&&i.options.snap.snap&&i.options.snap.snap.call(i.element,e,t.extend(i._uiHash(),{snapItem:i.snapElements[u].item})),i.snapElements[u].snapping=g||m||v||y||b}else i.snapElements[u].snapping&&i.options.snap.release&&i.options.snap.release.call(i.element,e,t.extend(i._uiHash(),{snapItem:i.snapElements[u].item})),i.snapElements[u].snapping=!1}}}),t.ui.plugin.add("draggable","stack",{start:function(e,n){var i=t(this).data("draggable").options,r=t.makeArray(t(i.stack)).sort(function(e,n){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(n).css("zIndex"),10)||0)});if(r.length){var s=parseInt(r[0].style.zIndex)||0;t(r).each(function(t){this.style.zIndex=s+t}),this[0].style.zIndex=s+r.length}}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,n){var i=t(n.helper),r=t(this).data("draggable").options;i.css("zIndex")&&(r._zIndex=i.css("zIndex")),i.css("zIndex",r.zIndex)},stop:function(e,n){var i=t(this).data("draggable").options;i._zIndex&&t(n.helper).css("zIndex",i._zIndex)}})}(jQuery),function(t,e){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?"x"===t.axis||/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"),this._mouseDestroy();for(var t=this.items.length-1;t>=0;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_setOption:function(e,n){"disabled"===e?(this.options[e]=n,this.widget()[n?"addClass":"removeClass"]("ui-sortable-disabled")):t.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(e,n){var i=this;if(this.reverting)return!1;if(this.options.disabled||"static"==this.options.type)return!1;this._refreshItems(e);var r=null,s=this;t(e.target).parents().each(function(){return t.data(this,i.widgetName+"-item")==s?(r=t(this),!1):void 0});if(t.data(e.target,i.widgetName+"-item")==s&&(r=t(e.target)),!r)return!1;if(this.options.handle&&!n){var o=!1;if(t(this.options.handle,r).find("*").andSelf().each(function(){this==e.target&&(o=!0)}),!o)return!1}return this.currentItem=r,this._removeCurrentsFromItems(),!0},_mouseStart:function(e,n,i){var r=this.options,s=this;if(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,r.cursorAt&&this._adjustOffsetFromHelper(r.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!=this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),r.containment&&this._setContainment(),r.curs
4or&&(t("body").css("cursor")&&(this._storedCursor=t("body").css("cursor")),t("body").css("cursor",r.cursor)),
5r.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",r.opacity)),r.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",r.zIndex)),this.scrollParent[0]!=document&&"HTML"!=this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!i)for(var o=this.containers.length-1;o>=0;o--)this.containers[o]._trigger("activate",e,s._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!r.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(e),!0},_mouseDrag:function(e){if(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll){var n=this.options,i=!1;this.scrollParent[0]!=document&&"HTML"!=this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<n.scrollSensitivity?this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop+n.scrollSpeed:e.pageY-this.overflowOffset.top<n.scrollSensitivity&&(this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop-n.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<n.scrollSensitivity?this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft+n.scrollSpeed:e.pageX-this.overflowOffset.left<n.scrollSensitivity&&(this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft-n.scrollSpeed)):(e.pageY-t(document).scrollTop()<n.scrollSensitivity?i=t(document).scrollTop(t(document).scrollTop()-n.scrollSpeed):t(window).height()-(e.pageY-t(document).scrollTop())<n.scrollSensitivity&&(i=t(document).scrollTop(t(document).scrollTop()+n.scrollSpeed)),e.pageX-t(document).scrollLeft()<n.scrollSensitivity?i=t(document).scrollLeft(t(document).scrollLeft()-n.scrollSpeed):t(window).width()-(e.pageX-t(document).scrollLeft())<n.scrollSensitivity&&(i=t(document).scrollLeft(t(document).scrollLeft()+n.scrollSpeed))),i!==!1&&t.ui.ddmanager&&!n.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e)}this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"==this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"==this.options.axis||(this.helper[0].style.top=this.position.top+"px");for(var r=this.items.length-1;r>=0;r--){var s=this.items[r],o=s.item[0],a=this._intersectsWithPointer(s);if(a&&o!=this.currentItem[0]&&this.placeholder[1==a?"next":"prev"]()[0]!=o&&!t.ui.contains(this.placeholder[0],o)&&("semi-dynamic"==this.options.type?!t.ui.contains(this.element[0],o):!0)){if(this.direction=1==a?"down":"up","pointer"!=this.options.tolerance&&!this._intersectsWithSides(s))break;this._rearrange(e,s),this._trigger("change",e,this._uiHash());break}}return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,n){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var i=this,r=i.placeholder.offset();i.reverting=!0,t(this.helper).animate({left:r.left-this.offset.parent.left-i.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:r.top-this.offset.parent.top-i.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){i._clear(e)})}else this._clear(e,n);return!1}},cancel:function(){var e=this;if(this.dragging){this._mouseUp({target:null}),"original"==this.options.helper?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var n=this.containers.length-1;n>=0;n--)this.containers[n]._trigger("deactivate",null,e._uiHash(this)),this.containers[n].containerCache.over&&(this.containers[n]._trigger("out",null,e._uiHash(this)),this.containers[n].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!=this.options.helper&&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)),this},serialize:function(e){var n=this._getItemsAsjQuery(e&&e.connected),i=[];return e=e||{},t(n).each(function(){var n=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[-=_](.+)/);n&&i.push((e.key||n[1]+"[]")+"="+(e.key&&e.expression?n[1]:n[2]))}),!i.length&&e.key&&i.push(e.key+"="),i.join("&")},toArray:function(e){var n=this._getItemsAsjQuery(e&&e.connected),i=[];return e=e||{},n.each(function(){i.push(t(e.item||this).attr(e.attribute||"id")||"")}),i},_intersectsWith:function(t){var e=this.positionAbs.left,n=e+this.helperProportions.width,i=this.positionAbs.top,r=i+this.helperProportions.height,s=t.left,o=s+t.width,a=t.to
5p,l=a+t.height,c=this.offset.click.top,u=this.offset.click.left,h=i+c>a&&l>i+c&&e+u>s&&o>e+u;return"pointer"==this.options.tolerance||this.options.forcePointerForContainers||"pointer"!=this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?h:s<e+this.helperProportions.width/2&&n-this.helperProportions.width/2<o&&a<i+this.helperProportions.height/2&&r-this.helperProportions.height/2<l},_intersectsWithPointer:function(e){var n=t.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,e.top,e.height),i=t.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,e.left,e.width),r=n&&i,s=this._getDragVerticalDirection(),o=this._getDragHorizontalDirection();return r?this.floating?o&&"right"==o||"down"==s?2:1:s&&("down"==s?2:1):!1},_intersectsWithSides:function(e){var n=t.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,e.top+e.height/2,e.height),i=t.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,e.left+e.width/2,e.width),r=this._getDragVerticalDirection(),s=this._getDragHorizontalDirection();return this.floating&&s?"right"==s&&i||"left"==s&&!i:r&&("down"==r&&n||"up"==r&&!n)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!=t&&(t>0?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!=t&&(t>0?"right":"left")},refresh:function(t){return this._refreshItems(t),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor==String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){var n=[],i=[],r=this._connectWith();if(r&&e)for(var s=r.length-1;s>=0;s--)for(var o=t(r[s]),a=o.length-1;a>=0;a--){var l=t.data(o[a],this.widgetName);l&&l!=this&&!l.options.disabled&&i.push([t.isFunction(l.options.items)?l.options.items.call(l.element):t(l.options.items,l.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),l])}i.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(var s=i.length-1;s>=0;s--)i[s][0].each(function(){n.push(this)});return t(n)},_removeCurrentsFromItems:function(){for(var t=this.currentItem.find(":data("+this.widgetName+"-item)"),e=0;e<this.items.length;e++)for(var n=0;n<t.length;n++)t[n]==this.items[e].item[0]&&this.items.splice(e,1)},_refreshItems:function(e){this.items=[],this.containers=[this];var n=this.items,i=[[t.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],r=this._connectWith();if(r)for(var s=r.length-1;s>=0;s--)for(var o=t(r[s]),a=o.length-1;a>=0;a--){var l=t.data(o[a],this.widgetName);l&&l!=this&&!l.options.disabled&&(i.push([t.isFunction(l.options.items)?l.options.items.call(l.element[0],e,{item:this.currentItem}):t(l.options.items,l.element),l]),this.containers.push(l))}for(var s=i.length-1;s>=0;s--)for(var c=i[s][1],u=i[s][0],a=0,h=u.length;h>a;a++){var d=t(u[a]);d.data(this.widgetName+"-item",c),n.push({item:d,instance:c,width:0,height:0,left:0,top:0})}},refreshPositions:function(e){this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset());for(var n=this.items.length-1;n>=0;n--){var i=this.items[n];if(i.instance==this.currentContainer||!this.currentContainer||i.item[0]==this.currentItem[0]){var r=this.options.toleranceElement?t(this.options.toleranceElement,i.item):i.item;e||(i.width=r.outerWidth(),i.height=r.outerHeight());var s=r.offset();i.left=s.left,i.top=s.top}}
5if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(var n=this.containers.length-1;n>=0;n--){var s=this.containers[n].element.offset();this.containers[n].containerCache.left=s.left,this.containers[n].containerCache.top=s.top,this.containers[n].containerCache.width=this.containers[n].element.outerWidth(),this.containers[n].containerCache.height=this.containers[n].element.outerHeight()}return this},_createPlaceholder:function(e){var n=e||this,i=n.options;if(!i.placeholder||i.placeholder.constructor==String){var r=i.placeholder;i.placeholder={element:function(){var e=t(document.createElement(n.currentItem[0].nodeName)).addClass(r||n.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];return r||(e.style.visibility="hidden"),e},update:function(t,e){(!r||i.forcePlaceholderSize)&&(e.height()||e.height(n.currentItem.innerHeight()-parseInt(n.currentItem.css("paddingTop")||0,10)-parseInt(n.currentItem.css("paddingBottom")||0,10)),e.width()||e.width(n.currentItem.innerWidth()-parseInt(n.currentItem.css("paddingLeft")||0,10)-parseInt(n.currentItem.css("paddingRight")||0,10)))}}}n.placeholder=t(i.placeholder.element.call(n.element,n.currentItem)),n.currentItem.after(n.placeholder),i.placeholder.update(n,n.placeholder)},_contactContainers:function(e){for(var n=null,i=null,r=this.containers.length-1;r>=0;r--)if(!t.ui.contains(this.currentItem[0],this.containers[r].element[0]))if(this._intersectsWith(this.containers[r].containerCache)){if(n&&t.ui.contains(this.containers[r].element[0],n.element[0]))continue;n=this.containers[r],i=r}else this.containers[r].containerCache.over&&(this.containers[r]._trigger("out",e,this._uiHash(this)),this.containers[r].containerCache.over=0);if(n)if(1===this.containers.length)this.containers[i]._trigger("over",e,this._uiHash(this)),this.containers[i].containerCache.over=1;else if(this.currentContainer!=this.containers[i]){for(var s=1e4,o=null,a=this.positionAbs[this.containers[i].floating?"left":"top"],l=this.items.length-1;l>=0;l--)if(t.ui.contains(this.containers[i].element[0],this.items[l].item[0])){var c=this.items[l][this.containers[i].floating?"left":"top"];Math.abs(c-a)<s&&(s=Math.abs(c-a),o=this.items[l])}if(!o&&!this.options.dropOnEmpty)return;this.currentContainer=this.containers[i],o?this._rearrange(e,o,null,!0):this._rearrange(e,null,this.containers[i].element,!0),this._trigger("change",e,this._uiHash()),this.containers[i]._trigger("change",e,this._uiHash(this)),this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[i]._trigger("over",e,this._uiHash(this)),this.containers[i].containerCache.over=1}},_createHelper:function(e){var n=this.options,i=t.isFunction(n.helper)?t(n.helper.apply(this.element[0],[e,this.currentItem])):"clone"==n.helper?this.currentItem.clone():this.currentItem;return i.parents("body").length||t("parent"!=n.appendTo?n.appendTo:this.currentItem[0].parentNode)[0].appendChild(i[0]),i[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")}),(""==i[0].style.width||n.forceHelperSize)&&i.width(this.currentItem.width()),(""==i[0].style.height||n.forceHelperSize)&&i.height(this.currentItem.height()),i},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"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();return"absolute"==this.cssPosition&&this.scrollParent[0]!=document&&t.ui.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&"html"==this.offsetParent[0].tagName.toLowerCase()&&t.browser.msie)&&(e={top:0,left:0}
5),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"==this.cssPosition){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()}}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 e=this.options;if("parent"==e.containment&&(e.containment=this.helper[0].parentNode),("document"==e.containment||"window"==e.containment)&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,t("document"==e.containment?document:window).width()-this.helperProportions.width-this.margins.left,(t("document"==e.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),!/^(document|window|parent)$/.test(e.containment)){var n=t(e.containment)[0],i=t(e.containment).offset(),r="hidden"!=t(n).css("overflow");this.containment=[i.left+(parseInt(t(n).css("borderLeftWidth"),10)||0)+(parseInt(t(n).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(t(n).css("borderTopWidth"),10)||0)+(parseInt(t(n).css("paddingTop"),10)||0)-this.margins.top,i.left+(r?Math.max(n.scrollWidth,n.offsetWidth):n.offsetWidth)-(parseInt(t(n).css("borderLeftWidth"),10)||0)-(parseInt(t(n).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(r?Math.max(n.scrollHeight,n.offsetHeight):n.offsetHeight)-(parseInt(t(n).css("borderTopWidth"),10)||0)-(parseInt(t(n).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}}
5,_convertPositionTo:function(e,n){n||(n=this.position);var i="absolute"==e?1:-1,r=(this.options,"absolute"!=this.cssPosition||this.scrollParent[0]!=document&&t.ui.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent),s=/(html|body)/i.test(r[0].tagName);return{top:n.top+this.offset.relative.top*i+this.offset.parent.top*i-(t.browser.safari&&"fixed"==this.cssPosition?0:("fixed"==this.cssPosition?-this.scrollParent.scrollTop():s?0:r.scrollTop())*i),left:n.left+this.offset.relative.left*i+this.offset.parent.left*i-(t.browser.safari&&"fixed"==this.cssPosition?0:("fixed"==this.cssPosition?-this.scrollParent.scrollLeft():s?0:r.scrollLeft())*i)}},_generatePosition:function(e){var n=this.options,i="absolute"!=this.cssPosition||this.scrollParent[0]!=document&&t.ui.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,r=/(html|body)/i.test(i[0].tagName);"relative"==this.cssPosition&&(this.scrollParent[0]==document||this.scrollParent[0]==this.offsetParent[0])&&(this.offset.relative=this._getRelativeOffset());var s=e.pageX,o=e.pageY;if(this.originalPosition&&(this.containment&&(e.pageX-this.offset.click.left<this.containment[0]&&(s=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top<this.containment[1]&&(o=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left>this.containment[2]&&(s=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(o=this.containment[3]+this.offset.click.top)),n.grid)){var a=this.originalPageY+Math.round((o-this.originalPageY)/n.grid[1])*n.grid[1];o=this.containment&&(a-this.offset.click.top<this.containment[1]||a-this.offset.click.top>this.containment[3])?a-this.offset.click.top<this.containment[1]?a+n.grid[1]:a-n.grid[1]:a;var l=this.originalPageX+Math.round((s-this.originalPageX)/n.grid[0])*n.grid[0];s=this.containment&&(l-this.offset.click.left<this.containment[0]||l-this.offset.click.left>this.containment[2])?l-this.offset.click.left<this.containment[0]?l+n.grid[0]:l-n.grid[0]:l}return{top:o-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(t.browser.safari&&"fixed"==this.cssPosition?0:"fixed"==this.cssPosition?-this.scrollParent.scrollTop():r?0:i.scrollTop()),left:s-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(t.browser.safari&&"fixed"==this.cssPosition?0:"fixed"==this.cssPosition?-this.scrollParent.scrollLeft():r?0:i.scrollLeft())}},_rearrange:function(t,e,n,i){n?n[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"==this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var r=this,s=this.counter;window.setTimeout(function(){s==r.counter&&r.refreshPositions(!i)},0)},_clear:function(e,n){this.reverting=!1;var i=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]==this.currentItem[0]){for(var r in this._storedCSS)("auto"==this._storedCSS[r]||"static"==this._storedCSS[r])&&(this._storedCSS[r]="");this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();if(this.fromOutside&&!n&&i.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),(this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!=this.currentItem.parent()[0])&&!n&&i.push(function(t){this._trigger("update",t,this._uiHash())}),!t.ui.contains(this.element[0],this.currentItem[0])){n||i.push(function(t){this._trigger("remove",t,this._uiHash())});for(var r=this.containers.length-1;r>=0;r--)t.ui.contains(this.containers[r].element[0],this.currentItem[0])&&!n&&(i.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.containers[r])),i.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.containers[r])))}for(var r=this.containers.length-1;r>=0;r--)n||i.push(function(t){return function(e){t._trigger("deactivate",e,this._uiHash(this))}}.call(this,this.containers[r])),this.containers[r].containerCache.over&&(i.push(function(t){return function(e){t._trigger("out",e,this._uiHash(this))}}.call(this,this.containers[r])),this.containers[r].containerCache.over=0);if(this._storedCursor&&t("body").css("cursor",this._storedCursor),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"==this._storedZIndex?"":this._storedZIndex),this.dragging=!1,this.cancelHelperRemoval){if(!n){this._trigger("beforeStop",e,this._uiHash());for(var r=0;r<i.length;r++)i[r].call(this,e);this._trigger("stop",e,this._uiHash())}return!1}if(n||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,!n){for(var r=0;r<i.length;r++)i[r].call(this,e);this._trigger("stop",e,this._uiHash())}return this.fromOutside=!1,!0},_trigger:function(){t.Widget.prototype._trigger.apply(this,arguments)===!1&&this.cancel()},_uiHash:function(e){var n=e||this;return{helper:n.helper,placeholder:n.placeholder||t([]),position:n.position,originalPosition:n.originalPosition,offset:n.positionAbs,item:n.currentItem,sender:e?e.element:null}}}),t.extend(t.ui.sortable,{version:"1.8.17"})}(jQuery),function(t,e){var n=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,n=this,i=this.element[0].ownerDocument;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(i){if(!n.options.disabled&&!n.element.propAttr("readOnly")){e=!1;var r=t.ui.keyCode;
5switch(i.keyCode){case r.PAGE_UP:n._move("previousPage",i);break;case r.PAGE_DOWN:n._move("nextPage",i);break;case r.UP:n._move("previous",i),i.preventDefault();break;case r.DOWN:n._move("next",i),i.preventDefault();break;case r.ENTER:case r.NUMPAD_ENTER:n.menu.active&&(e=!0,i.preventDefault());case r.TAB:if(!n.menu.active)return;n.menu.select(i);break;case r.ESCAPE:n.element.val(n.term),n.close(i);break;default:clearTimeout(n.searching),n.searching=setTimeout(function(){n.term!=n.element.val()&&(n.selectedItem=null,n.search(null,i))},n.options.delay)}}}).bind("keypress.autocomplete",function(t){e&&(e=!1,t.preventDefault())}).bind("focus.autocomplete",function(){n.options.disabled||(n.selectedItem=null,n.previous=n.element.val())}).bind("blur.autocomplete",function(t){n.options.disabled||(clearTimeout(n.searching),n.closing=setTimeout(function(){n.close(t),n._change(t)},150))}),this._initSource(),this.response=function(){return n._response.apply(n,arguments)},this.menu=t("<ul></ul>").addClass("ui-autocomplete").appendTo(t(this.options.appendTo||"body",i)[0]).mousedown(function(e){var i=n.menu.element[0];t(e.target).closest(".ui-menu-item").length||setTimeout(function(){t(document).one("mousedown",function(e){e.target!==n.element[0]&&e.target!==i&&!t.ui.contains(i,e.target)&&n.close()})},1),setTimeout(function(){clearTimeout(n.closing)},13)}).menu({focus:function(t,e){var i=e.item.data("item.autocomplete");!1!==n._trigger("focus",t,{item:i})&&/^key/.test(t.originalEvent.type)&&n.element.val(i.value)},selected:function(t,e){var r=e.item.data("item.autocomplete"),s=n.previous;n.element[0]!==i.activeElement&&(n.element.focus(),n.previous=s,setTimeout(function(){n.previous=s,n.selectedItem=r},1)),!1!==n._trigger("select",t,{item:r})&&n.element.val(r.value),n.term=n.element.val(),n.close(t),n.selectedItem=r},blur:function(t,e){n.menu.element.is(":visible")&&n.element.val()!==n.term&&n.element.val(n.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu"),t.fn.bgiframe&&this.menu.element.bgiframe(),n.beforeunloadHandler=function(){n.element.removeAttr("autocomplete")},t(window).bind("beforeunload",n.beforeunloadHandler)},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup"),this.menu.element.remove(),t(window).unbind("beforeunload",this.beforeunloadHandler),t.Widget.prototype.destroy.call(this)},_setOption:function(e,n){t.Widget.prototype._setOption.apply(this,arguments),"source"===e&&this._initSource(),"appendTo"===e&&this.menu.element.appendTo(t(n||"body",this.element[0].ownerDocument)[0]),"disabled"===e&&n&&this.xhr&&this.xhr.abort()},_initSource:function(){var e,i,r=this;t.isArray(this.options.source)?(e=this.options.source,this.source=function(n,i){i(t.ui.autocomplete.filter(e,n.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(e,s){r.xhr&&r.xhr.abort(),r.xhr=t.ajax({url:i,data:e,dataType:"json",autocompleteRequest:++n,success:function(t,e){this.autocompleteRequest===n&&s(t)},error:function(){this.autocompleteRequest===n&&s([])}})}):this.source=this.options.source},search:function(t,e){return t=null!=t?t:this.element.val(),this.term=this.element.val(),t.length<this.options.minLength?this.close(e):(clearTimeout(this.closing),this._trigger("search",e)!==!1?this._search(t):void 0)},_search:function(t){this.pending++,this.element.addClass("ui-autocomplete-loading"),this.source({term:t},this.response)},_response:function(t){!this.options.disabled&&t&&t.length?(t=this._normalize(t),this._suggest(t),this._trigger("open")):this.close(),this.pending--,this.pending||this.element.removeClass("ui-autocomplete-loading")},close:function(t){clearTimeout(this.closing),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){return e.length&&e[0].label&&e[0].value?e:t.map(e,function(e){return"string"==typeof e?{label:e,value:e}:t.extend({label:e.label||e.value,value:e.value||e.label},e)})},_suggest:function(e){var n=this.menu.element.empty().zIndex(this.element.zIndex()+1);this._renderMenu(n,e),this.menu.deactivate(),this.menu.refresh(),n.show(),this._resizeMenu(),n.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()+1,this.element.outerWidth()))},_renderMenu:function(e,n){var i=this;t.each(n,function(t,n){i._renderItem(e,n)})},_renderItem:function(e,n){return t("<li></li>").data("item.autocomplete",n).append(t("<a></a>").text(n.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))return this.element.val(this.term),void this.menu.deactivate();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,n){var i=new RegExp(t.ui.autocomplete.escapeRegex(n),"i");return t.grep(e,function(t){return i.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(n){!t(n.target).closest(".ui-menu-item a").length||(n.preventDefault(),e.select(n))}),this.refresh()},refresh:function(){var e=this,n=this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem");n.children("a").addClass("ui-corner-all").attr("tabindex",-1).mouseenter(function(n){e.activate(n,t(this).parent())}).mouseleave(function(){e.deactivate()})},activate:function(t,e){if(this.deactivate(),this.hasScroll()){var n=e.offset().top-this.element.offset().top,i=this.element.scrollTop(),r=this.element.height();0>n?this.element.scrollTop(i+n):n>=r&&this.element.scrollTop(i+n-r+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(){!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,n){if(this.active){var i=this.active[t+"All"](".ui-menu-item").eq(0);i.length?this.activate(n,i):this.activate(n,this.element.children(e))}else this.activate(n,this.element.children(e))},nextPage:function(e){if(this.hasScroll()){if(!this.active||this.last())return void this.activate(e,this.element.children(".ui-menu-item:first"));var n=this.active.offset().top,i=this.element.height(),r=this.element.children(".ui-menu-item").filter(function(){var e=t(this).offset().top-n-i+t(this).height();return 10>e&&e>-10});r.length||(r=this.element.children(".ui-menu-item:last")),this.activate(e,r)}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())return void this.activate(e,this.element.children(".ui-menu-item:last"));var n=this.active.offset().top,i=this.element.height();result=this.element.children(".ui-menu-item").filter(function(){var e=t(this).offset().top-n+i-t(this).height();return 10>e&&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){function e(){if(t.fn.ajaxSubmit.debug){var e="[jquery.form] "+Array.prototype.join.call(arguments,"");window.console&&window.console.log?window.console.log(e):window.opera&&window.opera.postError&&window.opera.postError(e)}}t.fn.ajaxSubmit=function(n){function i(i){function s(t){var e=t.contentWindow?t.contentWindow.document:t.contentDocument?t.contentDocument:t.document;return e}function o(){function n(){try{var t=s(g).readyState;e("state = "+t),"uninitialized"==t.toLowerCase()&&setTimeout(n,50)}
5catch(i){e("Server abort: ",i," (",i.name,")"),l(T),x&&clearTimeout(x),x=void 0}}var i=a.attr("target"),o=a.attr("action");w.setAttribute("target",p),r||w.setAttribute("method","POST"),o!=h.url&&w.setAttribute("action",h.url),h.skipEncodingOverride||r&&!/post/i.test(r)||a.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"}),h.timeout&&(x=setTimeout(function(){b=!0,l(_)},h.timeout));var c=[];try{if(h.extraData)for(var u in h.extraData)c.push(t('<input type="hidden" name="'+u+'" />').attr("value",h.extraData[u]).appendTo(w)[0]);h.iframeTarget||(f.appendTo("body"),g.attachEvent?g.attachEvent("onload",l):g.addEventListener("load",l,!1)),setTimeout(n,15),w.submit()}finally{w.setAttribute("action",o),i?w.setAttribute("target",i):a.removeAttr("target"),t(c).remove()}}function l(n){if(!m.aborted&&!C){try{A=s(g)}catch(i){e("cannot access response document: ",i),n=T}if(n===_&&m)return void m.abort("timeout");if(n==T&&m)return void m.abort("server abort");if(A&&A.location.href!=h.iframeSrc||b){g.detachEvent?g.detachEvent("onload",l):g.removeEventListener("load",l,!1);var r,o="success";try{if(b)throw"timeout";var a="xml"==h.dataType||A.XMLDocument||t.isXMLDoc(A);if(e("isXml="+a),!a&&window.opera&&(null==A.body||""==A.body.innerHTML)&&--P)return e("requeing onLoad callback, DOM not available"),void setTimeout(l,250);var c=A.body?A.body:A.documentElement;m.responseText=c?c.innerHTML:null,m.responseXML=A.XMLDocument?A.XMLDocument:A,a&&(h.dataType="xml"),m.getResponseHeader=function(t){var e={"content-type":h.dataType};return e[t]},c&&(m.status=Number(c.getAttribute("status"))||m.status,m.statusText=c.getAttribute("statusText")||m.statusText);var u=(h.dataType||"").toLowerCase(),p=/(json|script|text)/.test(u);if(p||h.textarea){var v=A.getElementsByTagName("textarea")[0];if(v)m.responseText=v.value,m.status=Number(v.getAttribute("status"))||m.status,m.statusText=v.getAttribute("statusText")||m.statusText;else if(p){var y=A.getElementsByTagName("pre")[0],w=A.getElementsByTagName("body")[0];y?m.responseText=y.textContent?y.textContent:y.innerText:w&&(m.responseText=w.textContent?w.textContent:w.innerText);
6}}else"xml"!=u||m.responseXML||null==m.responseText||(m.responseXML=D(m.responseText));try{S=N(m,u,h)}catch(n){o="parsererror",m.error=r=n||o}}catch(n){e("error caught: ",n),o="error",m.error=r=n||o}m.aborted&&(e("upload aborted"),o=null),m.status&&(o=m.status>=200&&m.status<300||304===m.status?"success":"error"),"success"===o?(h.success&&h.success.call(h.context,S,"success",m),d&&t.event.trigger("ajaxSuccess",[m,h])):o&&(void 0==r&&(r=m.statusText),h.error&&h.error.call(h.context,m,o,r),d&&t.event.trigger("ajaxError",[m,h,r])),d&&t.event.trigger("ajaxComplete",[m,h]),d&&!--t.active&&t.event.trigger("ajaxStop"),h.complete&&h.complete.call(h.context,m,o),C=!0,h.timeout&&clearTimeout(x),setTimeout(function(){h.iframeTarget||f.remove(),m.responseXML=null},100)}}}var c,u,h,d,p,f,g,m,v,y,b,x,w=a[0],k=!!t.fn.prop;if(i)if(k)for(u=0;u<i.length;u++)c=t(w[i[u].name]),c.prop("disabled",!1);else for(u=0;u<i.length;u++)c=t(w[i[u].name]),c.removeAttr("disabled");if(t(":input[name=submit],:input[id=submit]",w).length)return void alert('Error: Form elements must not have name or id of "submit".');if(h=t.extend(!0,{},t.ajaxSettings,n),h.context=h.context||h,p="jqFormIO"+(new Date).getTime(),h.iframeTarget?(f=t(h.iframeTarget),y=f.attr("name"),null==y?f.attr("name",p):p=y):(f=t('<iframe name="'+p+'" src="'+h.iframeSrc+'" />'),f.css({position:"absolute",top:"-1000px",left:"-1000px"})),g=f[0],m={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(n){var i="timeout"===n?"timeout":"aborted";e("aborting upload... "+i),this.aborted=1,f.attr("src",h.iframeSrc),m.error=i,h.error&&h.error.call(h.context,m,i,n),d&&t.event.trigger("ajaxError",[m,h,i]),h.complete&&h.complete.call(h.context,m,i)}},d=h.global,d&&!t.active++&&t.event.trigger("ajaxStart"),d&&t.event.trigger("ajaxSend",[m,h]),h.beforeSend&&h.beforeSend.call(h.context,m,h)===!1)return void(h.global&&t.active--);if(!m.aborted){v=w.clk,v&&(y=v.name,y&&!v.disabled&&(h.extraData=h.extraData||{},h.extraData[y]=v.value,"image"==v.type&&(h.extraData[y+".x"]=w.clk_x,h.extraData[y+".y"]=w.clk_y)));var _=1,T=2;h.forceSync?o():setTimeout(o,10);var S,A,C,P=50,D=t.parseXML||function(t,e){return window.ActiveXObject?(e=new ActiveXObject("Microsoft.XMLDOM"),e.async="false",e.loadXML(t)):e=(new DOMParser).parseFromString(t,"text/xml"),e&&e.documentElement&&"parsererror"!=e.documentElement.nodeName?e:null},E=t.parseJSON||function(t){return window.eval("("+t+")")},N=function(e,n,i){var r=e.getResponseHeader("content-type")||"",s="xml"===n||!n&&r.indexOf("xml")>=0,o=s?e.responseXML:e.responseText;return s&&"parsererror"===o.documentElement.nodeName&&t.error&&t.error("parsererror"),i&&i.dataFilter&&(
6o=i.dataFilter(o,n)),"string"==typeof o&&("json"===n||!n&&r.indexOf("json")>=0?o=E(o):("script"===n||!n&&r.indexOf("javascript")>=0)&&t.globalEval(o)),o}}}if(!this.length)return e("ajaxSubmit: skipping submit process - no element selected"),this;var r,s,o,a=this;"function"==typeof n&&(n={success:n}),r=this.attr("method"),s=this.attr("action"),o="string"==typeof s?t.trim(s):"",o=o||window.location.href||"",o&&(o=(o.match(/^([^#]+)/)||[])[1]),n=t.extend(!0,{url:o,success:t.ajaxSettings.success,type:r||"GET",iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},n);var l={};if(this.trigger("form-pre-serialize",[this,n,l]),l.veto)return e("ajaxSubmit: submit vetoed via form-pre-serialize trigger"),this;if(n.beforeSerialize&&n.beforeSerialize(this,n)===!1)return e("ajaxSubmit: submit aborted via beforeSerialize callback"),this;var c=n.traditional;void 0===c&&(c=t.ajaxSettings.traditional);var u,h=this.formToArray(n.semantic);if(n.data&&(n.extraData=n.data,u=t.param(n.data,c)),n.beforeSubmit&&n.beforeSubmit(h,this,n)===!1)return e("ajaxSubmit: submit aborted via beforeSubmit callback"),this;if(this.trigger("form-submit-validate",[h,this,n,l]),l.veto)return e("ajaxSubmit: submit vetoed via form-submit-validate trigger"),this;var d=t.param(h,c);u&&(d=d?d+"&"+u:u),"GET"==n.type.toUpperCase()?(n.url+=(n.url.indexOf("?")>=0?"&":"?")+d,n.data=null):n.data=d;var p=[];if(n.resetForm&&p.push(function(){a.resetForm()}),n.clearForm&&p.push(function(){a.clearForm()}),!n.dataType&&n.target){var f=n.success||function(){};p.push(function(e){var i=n.replaceTarget?"replaceWith":"html";t(n.target)[i](e).each(f,arguments)})}else n.success&&p.push(n.success);n.success=function(t,e,i){for(var r=n.context||n,s=0,o=p.length;o>s;s++)p[s].apply(r,[t,e,i||a,a])};var g=t("input:file",this).length>0,m="multipart/form-data",v=a.attr("enctype")==m||a.attr("encoding")==m;if(n.iframe!==!1&&(g||n.iframe||v))n.closeKeepAlive?t.get(n.closeKeepAlive,function(){i(h)}):i(h);else{if(t.browser.msie&&"get"==r&&"undefined"==typeof n.type){var y=a[0].getAttribute("method");"string"==typeof y&&(n.type=y)}t.ajax(n)}return this.trigger("form-submit-notify",[this,n]),this},t.fn.ajaxForm=function(n){if(0===this.length){var i={s:this.selector,c:this.context};return!t.isReady&&i.s?(e("DOM not ready, queuing ajaxForm"),t(function(){t(i.s,i.c).ajaxForm(n)}),this):(e("terminating; zero elements found by selector"+(t.isReady?"":" (DOM not ready)")),this)}return this.ajaxFormUnbind().bind("submit.form-plugin",function(e){e.isDefaultPrevented()||(e.preventDefault(),t(this).ajaxSubmit(n))}).bind("click.form-plugin",function(e){var n=e.target,i=t(n);if(!i.is(":submit,input:image")){var r=i.closest(":submit");if(0==r.length)return;n=r[0]}var s=this;if(s.clk=n,"image"==n.type)if(void 0!=e.offsetX)s.clk_x=e.offsetX,s.clk_y=e.offsetY;else if("function"==typeof t.fn.offset){var o=i.offset();s.clk_x=e.pageX-o.left,s.clk_y=e.pageY-o.top}else s.clk_x=e.pageX-n.offsetLeft,s.clk_y=e.pageY-n.offsetTop;setTimeout(function(){s.clk=s.clk_x=s.clk_y=null},100)})},t.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")},t.fn.formToArray=function(e){var n=[];if(0===this.length)return n;var i=this[0],r=e?i.getElementsByTagName("*"):i.elements;if(!r)return n;var s,o,a,l,c,u,h;for(s=0,u=r.length;u>s;s++)if(c=r[s],a=c.name)if(e&&i.clk&&"image"==c.type)c.disabled||i.clk!=c||(n.push({name:a,value:t(c).val()}),n.push({name:a+".x",value:i.clk_x},{name:a+".y",value:i.clk_y}));else if(l=t.fieldValue(c,!0),l&&l.constructor==Array)for(o=0,h=l.length;h>o;o++)n.push({name:a,value:l[o]});else null!==l&&"undefined"!=typeof l&&n.push({name:a,value:l});if(!e&&i.clk){var d=t(i.clk),p=d[0];a=p.name,a&&!p.disabled&&"image"==p.type&&(n.push({name:a,value:d.val()}),n.push({name:a+".x",value:i.clk_x},{name:a+".y",value:i.clk_y}))}return n},t.fn.formSerialize=function(e){return t.param(this.formToArray(e))},t.fn.fieldSerialize=function(e){var n=[];return this.each(function(){var i=this.name;if(i){var r=t.fieldValue(this,e);if(r&&r.constructor==Array)for(var s=0,o=r.length;o>s;s++)n.push({name:i,value:r[s]});else null!==r&&"undefined"!=typeof r&&n.push({name:this.name,value:r})}}),t.param(n)},t.fn.fieldValue=function(e){for(var n=[],i=0,r=this.length;r>i;i++){var s=this[i],o=t.fieldValue(s,e);null===o||"undefined"==typeof o||o.constructor==Array&&!o.length||(o.constructor==Array?t.merge(n,o):n.push(o))}return n},t.fieldValue=function(e,n){var i=e.name,r=e.type,s=e.tagName.toLowerCase();if(void 0===n&&(n=!0),n&&(!i||e.disabled||"reset"==r||"button"==r||("checkbox"==r||"radio"==r)&&!e.checked||("submit"==r||"image"==r)&&e.form&&e.form.clk!=e||"select"==s&&-1==e.selectedIndex))return null;if("select"==s){var o=e.selectedIndex;if(0>o)return null;for(var a=[],l=e.options,c="select-one"==r,u=c?o+1:l.length,h=c?o:0;u>h;h++){var d=l[h];if(d.selected){var p=d.value;if(p||(p=d.attributes&&d.attributes.value&&!d.attributes.value.specified?d.text:d.value),
6c)return p;a.push(p)}}return a}return t(e).val()},t.fn.clearForm=function(){return this.each(function(){t("input,select,textarea",this).clearFields()})},t.fn.clearFields=t.fn.clearInputs=function(){var t=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var e=this.type,n=this.tagName.toLowerCase();t.test(e)||"textarea"==n?this.value="":"checkbox"==e||"radio"==e?this.checked=!1:"select"==n&&(this.selectedIndex=-1)})},t.fn.resetForm=function(){return this.each(function(){("function"==typeof this.reset||"object"==typeof this.reset&&!this.reset.nodeType)&&this.reset()})},t.fn.enable=function(t){return void 0===t&&(t=!0),this.each(function(){this.disabled=!t})},t.fn.selected=function(e){return void 0===e&&(e=!0),this.each(function(){var n=this.type;if("checkbox"==n||"radio"==n)this.checked=e;else if("option"==this.tagName.toLowerCase()){var i=t(this).parent("select");e&&i[0]&&"select-one"==i[0].type&&i.find("option").selected(!1),this.selected=e}})},t.fn.ajaxSubmit.debug=!1}(jQuery),jQuery.extend({parseQuerystring:function(){var t={},e=window.location.search.replace("?","");if(0!==e.length){var n=e.split("&");return $.each(n,function(e,n){var i=n.split("=");t[i[0]]=unescape(i[1])}),t}}}),function(t){var e=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],n=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],i=["January","February","March","April","May","June","July","August","September","October","November","December"],r=[];r.Jan="01",r.Feb="02",r.Mar="03",r.Apr="04",r.May="05",r.Jun="06",r.Jul="07",r.Aug="08",r.Sep="09",r.Oct="10",r.Nov="11",r.Dec="12",t.format=function(){function t(t){return e[parseInt(t,10)]||t}function s(t){var e=parseInt(t,10)-1;return n[e]||t}function o(t){var e=parseInt(t,10)-1;return i[e]||t}var a=function(t){return r[t]||t},l=function(t){var e=t,n="";if(-1!==e.indexOf(".")){var i=e.split(".");e=i[0],n=i[1]}var r=e.split(":");return 3===r.length?(hour=r[0],minute=r[1],second=r[2],{time:e,hour:hour,minute:minute,second:second,millis:n}):{time:"",hour:"",minute:"",second:"",millis:""}};return{date:function(e,n){try{var i=null,r=null,c=null,u=null,h=null,d=null;if("function"==typeof e.getFullYear)r=e.getFullYear(),c=e.getMonth()+1,u=e.getDate(),h=e.getDay(),d=l(e.toTimeString());else if(-1!=e.search(/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.?\d{0,3}[-+]?\d{2}:\d{2}/)){var p=e.split(/[T\+-]/);r=p[0],c=p[1],u=p[2],d=l(p[3].split(".")[0]),i=new Date(r,c-1,u),h=i.getDay()}else{var p=e.split(" ");switch(p.length){case 6:r=p[5],c=a(p[1]),u=p[2],d=l(p[3]),i=new Date(r,c-1,u),h=i.getDay();break;case 2:var f=p[0].split("-");r=f[0],c=f[1],u=f[2],d=l(p[1]),i=new Date(r,c-1,u),h=i.getDay();break;case 7:case 9:case 10:r=p[3],c=a(p[1]),u=p[2],d=l(p[4]),i=new Date(r,c-1,u),h=i.getDay();break;default:return e}}for(var g="",m="",v=0;v<n.length;v++){var y=n.charAt(v);switch(g+=y){case"ddd":m+=t(h),g="";break;case"dd":if("d"==n.charAt(v+1))break;1===String(u).length&&(u="0"+u),m+=u,g="";break;case"MMMM":m+=o(c),g="";break;case"MMM":if("M"===n.charAt(v+1))break;m+=s(c),g="";break;case"MM":if("M"==n.charAt(v+1))break;1===String(c).length&&(c="0"+c),m+=c,g="";break;case"yyyy":m+=r,g="";break;case"yy":if("y"==n.charAt(v+1)&&"y"==n.charAt(v+2))break;m+=String(r).slice(-2),g="";break;case"HH":m+=d.hour,g="";break;case"hh":var b=0==d.hour?12:d.hour<13?d.hour:d.hour-12;b=1==String(b).length?"0"+b:b,m+=b,g="";break;case"mm":m+=d.minute,g="";break;case"ss":m+=d.second.substring(0,2),g="";break;case"SSS":m+=d.millis.substring(0,3),g="";break;case"a":m+=d.hour>=12?"PM":"AM",g="";break;case" ":m+=y,g="";break;case"/":m+=y,g="";break;case":":m+=y,g="";break;default:2===g.length&&0!==g.indexOf("y")&&"SS"!=g?(m+=g.substring(0,1),g=g.substring(1,2)):3===g.length&&-1===g.indexOf("yyy")&&(g="")}}return m}catch(x){return console.log(x),e}}}}()}(jQuery),$(document).ready(function(){$(".shortDateFormat").each(function(t,e){$(e).is(":input")?$(e).val($.format.date($(e).val(),"dd/MM/yyyy")):$(e).text($.format.date($(e).text(),"dd/MM/yyyy"))}),$(".longDateFormat").each(function(t,e){$(e).is(":input")?$(e).val($.format.date($(e).val(),"dd/MM/yyyy hh:mm:ss")):$(e).text($.format.date($(e).text(),"dd/MM/yyyy hh:mm:ss"))})}),function(){function t(t,e){var n;t||(t={});for(n in e)t[n]=e[n];return t}function e(){for(var t=0,e=arguments,n=e.length,i={};n>t;t++)i[e[t++]]=e[t];return i}function n(t,e){return parseInt(t,e||10)}function i(t){return"string"==typeof t}function r(t){return"object"==typeof t}function s(t){return"[object Array]"===Object.prototype.toString.call(t)}function o(t){return"number"==typeof t}function a(t){return nt.log(t)/nt.LN10}function l(t){return nt.pow(10,t)}function c(t,e){for(var n=t.length;n--;)if(t[n]===e){t.splice(n,1);break}}function u(t){return t!==I&&null!==t}function h(t,e,n){var s,o;if(i(e))u(n)?t.setAttribute(e,n):t&&t.getAttribute&&(o=t.getAttribute(e));else if(u(e)&&r(e))for(s in e)t.setAttribute(s,e[s]);return o}function d(t){return s(t)?t:[t]}function p(){var t,e,n=arguments,i=n.length;for(t=0;i>t;t++)if(e=n[t],"undefined"!=typeof e&&null!==e)return e}function f(e,n){ft&&n&&n.opacity!==I&&(n.filter="alpha(opacity="+100*n.opacity+")"),t(e.style,n)}function g(e,n,i,r,s){return e=tt.createElement(e),n&&t(e,n),s&&f(e,{padding:0,border:Nt,margin:0}),i&&f(e,i),r&&r.appendChild(e),e}function m(e,n){var i=function(){};return i.prototype=new e,t(i.prototype,n),i}function v(t,e,i,r){var s=F.lang,o=isNaN(e=lt(e))?2:e,e=void 0===i?s.decimalPoint:i,r=void 0===r?s.thousandsSep:r,s=0>t?"-":"",i=String(n(t=lt(+t||0).toFixed(o))),a=i.length>3?i.length%3:0;return s+(a?i.substr(0,a)+r:"")+i.substr(a).replace(/(\d{3})(?=\d)/g,"$1"+r)+(o?e+lt(t-i).toFixed(o).slice(2):"")}function y(t,e,n,i){var r,n=p(n,1);for(r=t/n,e||(e=[1,2,2.5,5,10],i&&i.allowDecimals===!1&&(1===n?e=[1,2,5,10]:.1>=n&&(e=[1/n]))),i=0;i<e.length&&(t=e[i],!(r<=(e[i]+(e[i+1]||e[i]))/2));i++);return t*=n}function b(t,e){var n,i=e||[[Ft,[1,2,5,10,20,25,50,100,200,500]],[Ht,[1,2,5,10,15,30]],[jt,[1,2,5,10,15,30]],[Wt,[1,2,3,4,6,8,12]],[Bt,[1,2]],[zt,[1,2]],[Rt,[1,2,3,4,6]],[Xt,null]],r=i[i.length-1],s=B[r[0]],o=r[1];for(n=0;n<i.length&&(r=i[n],s=B[r[0]],o=r[1],!(i[n+1]&&t<=(s*o[o.length-1]+B[i[n+1][0]])/2));n++);return s===B[Xt]&&5*s>t&&(o=[1,2,5]),s===B[Xt]&&5*s>t&&(o=[1,2,5]),i=y(t/s,o),{unitRange:s,count:i,unitName:r[0]}}function x(e,n,i,r){var s,o=[],a={},l=F.global.useUTC,c=new Date(n),n=e.unitRange,u=e.count;c.setMilliseconds(0),n>=B[Ht]&&c.setSeconds(n>=B[jt]?0:u*rt(c.getSeconds()/u)),n>=B[jt]&&c[G](n>=B[Wt]?0:u*rt(c[R]()/u)),n>=B[Wt]&&c[J](n>=B[Bt]?0:u*rt(c[X]()/u)),n>=B[Bt]&&c[K](n>=B[Rt]?1:u*rt(c[Y]()/u)),n>=B[Rt]&&(c[Q](n>=B[Xt]?0:u*rt(c[U]()/u)),s=c[V]()),n>=B[Xt]&&(s-=s%u,c[Z](s)),n===B[zt]&&c[K](c[Y]()-c[q]()+p(r,1)),r=1,s=c[V]();for(var h=c.getTime(),d=c[U](),c=c[Y]();i>h;)o.push(h),n===B[Xt]?h=z(s+r*u,0):n===B[Rt]?h=z(s,d+r*u):l||n!==B[Bt]&&n!==B[zt]?(h+=n*u,n<=B[Wt]&&h%B[Bt]===0&&(a[h]=Bt)):h=z(s,d,c+r*u*(n===B[Bt]?1:7)),r++;return o.push(h),o.info=t(e,{higherRanks:a,totalRange:n*u}),o}function w(){this.symbol=this.color=0}function k(t,e,n,i,r,s,o,a,l){var c,u=o.x,o=o.y,l=u+n+(l?a:-t-a),h=o-e+i+15;return 7>l&&(l=n+u+a),l+t>n+r&&(l-=l+t-(n+r),h=o-e+i-a,c=!0),i+5>h?(h=i+5,c&&o>=h&&h+e>=o&&(h=o+i+a)):h+e>i+s&&(h=i+s-e-a),{x:l,y:h}}function _(t,e){var n,i,r=t.length;for(i=0;r>i;i++)t[i].ss_i=i;for(t.sort(function(t,i){return n=e(t,i),0===n?t.ss_i-i.ss_i:n}),i=0;r>i;i++)delete t[i].ss_i}function T(t){for(var e=t.length,n=t[0];e--;)t[e]<n&&(n=t[e]);return n}function S(t){for(var e=t.length,n=t[0];e--;)t[e]>n&&(n=t[e]);return n}function A(t){for(var e in t)t[e]&&t[e].destroy&&t[e].destroy(),delete t[e]}function C(t){O||(O=g(Tt)),t&&O.appendChild(t),O.innerHTML=""}function P(t,e){var n="Highcharts error #"+t+": www.highcharts.com/errors/"+t;if(e)throw n;et.console&&console.log(n)}function D(t){return parseFloat(t.toPrecision(14))}function E(t,e){j=p(t,e.animation)}function N(){var t=F.global.useUTC,e=t?"getUTC":"get",n=t?"setUTC":"set";z=t?Date.UTC:function(t,e,n,i,r,s){return new Date(t,e,p(n,1),p(i,0),p(r,0),p(s,0)).getTime()},R=e+"Minutes",X=e+"Hours",q=e+"Day",Y=e+"Date",U=e+"Month",V=e+"FullYear",G=n+"Minutes",J=n+"Hours",K=n+"Date",Q=n+"Month",Z=n+"FullYear"}function L(){}function $(e,s){function o(e){function i(t,e){this.pos=t,this.type=e||"",this.isNew=!0,e||this.addLabel()}function r(t){return t&&(this.options=t,this.id=t.id),this}function s(t,e,n,i){this.isNegative=e,this.options=t,this.x=n,this.stack=i,this.alignOptions={align:t.align||(Ce?e?"left":"right":"center"),verticalAlign:t.verticalAlign||(Ce?"middle":e?"bottom":"top"),y:p(t.y,Ce?4
6:e?14:-6),x:p(t.x,Ce?e?-6:6:0)},this.textAlign=t.textAlign||(Ce?e?"right":"left":"center")}function o(){var t,e=[],n=[];V=G=null,Vt(Mt.series,function(i){if(i.visible||!je.ignoreHiddenSeries){var r,o,a,l,c,h,d,f,g,m,v=i.options,y=v.threshold,b=[],x=0;if(zt&&0>=y&&(y=v.threshold=null),Tt)v=i.xData,v.length&&(V=at(p(V,v[0]),T(v)),G=ot(p(G,v[0]),S(v)));else{var w,k,_,A=i.cropped,C=i.xAxis.getExtremes(),P=!!i.modifyValue;for(r=v.stacking,gt="percent"===r,r&&(c=v.stack,l=i.type+p(c,""),h="-"+l,i.stackKey=l,o=e[l]||[],e[l]=o,a=n[h]||[],n[h]=a),gt&&(V=0,G=99),v=i.processedXData,d=i.processedYData,m=d.length,t=0;m>t;t++)if(f=v[t],g=d[t],null!==g&&g!==I&&(r?(k=(w=y>g)?a:o,_=w?h:l,g=k[f]=u(k[f])?k[f]+g:g,Nt[_]||(Nt[_]={}),Nt[_][f]||(Nt[_][f]=new s(It.stackLabels,w,f,c)),Nt[_][f].setTotal(g)):P&&(g=i.modifyValue(g)),A||(v[t+1]||f)>=C.min&&(v[t-1]||f)<=C.max))if(f=g.length)for(;f--;)null!==g[f]&&(b[x++]=g[f]);else b[x++]=g;!gt&&b.length&&(V=at(p(V,b[0]),T(b)),G=ot(p(G,b[0]),S(b))),null!==y&&(V>=y?(V=y,pt=!0):y>G&&(G=y,ft=!0))}}})}function h(t,e,n){for(var i,e=D(rt(e/t)*t),n=D(st(n/t)*t),r=[];n>=e&&(r.push(e),e=D(e+t),e!==i);)i=e;return r}function d(t,e,n,i){var r=[];if(i||(Mt._minorAutoInterval=null),t>=.5)t=it(t),r=h(t,e,n);else if(t>=.08){var s,o,c,u,d,f,g=rt(e);for(s=t>.3?[1,2,4]:t>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];n+1>g&&!f;g++)for(c=s.length,o=0;c>o&&!f;o++)u=a(l(g)*s[o]),u>e&&r.push(d),d>n&&(f=!0),d=u}else e=l(e),n=l(n),t=It[i?"minorTickInterval":"tickInterval"],t=p("auto"===t?null:t,Mt._minorAutoInterval,(n-e)*(It.tickPixelInterval/(i?5:1))/((i?qt/xt.length:qt)||1)),t=y(t,null,nt.pow(10,rt(nt.log(t)/nt.LN10))),r=Kt(h(t,e,n),a),i||(Mt._minorAutoInterval=t/5);return i||(vt=t),r}function f(){var t,e,n=[];if(zt)for(e=xt.length,t=1;e>t;t++)n=n.concat(d(yt,xt[t-1],xt[t],!0));else for(t=Jt+(xt[0]-Jt)%yt;Gt>=t;t+=yt)n.push(t);return n}function g(){var t,e,n,i,r,s,o,a=G-V>=Yt;Tt&&Yt===I&&!zt&&(u(It.min)||u(It.max)?Yt=null:(Vt(Mt.series,function(t){for(r=t.xData,n=s=t.xIncrement?1:r.length-1;n>0;n--)i=r[n]-r[n-1],(e===I||e>i)&&(e=i)}),Yt=at(5*e,G-V))),Yt>Gt-Jt&&(t=(Yt-Gt+Jt)/2,t=[Jt-t,p(It.min,Jt-t)],a&&(t[2]=V),Jt=S(t),o=[Jt+Yt,p(It.max,Jt+Yt)],a&&(o[2]=G),Gt=T(o),Yt>Gt-Jt&&(t[0]=Gt-Yt,t[1]=p(It.min,Gt-Yt),Jt=S(t)))}function m(t){var e,n=It.tickInterval,i=It.tickPixelInterval;se?(ut=Ve[Tt?"xAxis":"yAxis"][It.linkedTo],e=ut.getExtremes(),Jt=p(e.min,e.dataMin),Gt=p(e.max,e.dataMax),It.type!==ut.options.type&&P(11,1)):(Jt=p(J,It.min,V),Gt=p(K,It.max,G)),zt&&(!t&&0>=Jt&&P(10),Jt=a(Jt),Gt=a(Gt)),Ut&&(J=Jt=ot(Jt,Gt-Ut),K=Gt,t&&(Ut=null)),g(),xe||gt||se||!u(Jt)||!u(Gt)||(e=Gt-Jt||1,u(It.min)||u(J)||!ne||!(0>V)&&pt||(Jt-=e*ne),u(It.max)||u(K)||!ie||!(G>0)&&ft||(Gt+=e*ie)),vt=Jt===Gt||void 0===Jt||void 0===Gt?1:se&&!n&&i===ut.options.tickPixelInterval?ut.tickInterval:p(n,xe?1:(Gt-Jt)*i/(qt||1)),Tt&&!t&&Vt(Mt.series,function(t){t.processData(Jt!==et||Gt!==ct)}),R(),Mt.beforeSetTickPositions&&Mt.beforeSetTickPositions(),Mt.postProcessTickInterval&&(vt=Mt.postProcessTickInterval(vt)),!Bt&&!zt&&(bt=nt.pow(10,rt(nt.log(vt)/nt.LN10)),u(It.tickInterval)||(vt=y(vt,null,bt,It))),Mt.tickInterval=vt,yt="auto"===It.minorTickInterval&&vt?vt/5:It.minorTickInterval,(xt=It.tickPositions||ae&&ae.apply(Mt,[Jt,Gt]))||(xt=Bt?(Mt.getNonLinearTimeTicks||x)(b(vt,It.units),Jt,Gt,It.startOfWeek,Mt.ordinalPositions,Mt.closestPointRange,!0):zt?d(vt,Jt,Gt):h(vt,Jt,Gt)),ee(Mt,"afterSetTickPositions",{tickPositions:xt}),!se&&(t=xt[0],n=xt[xt.length-1],It.startOnTick?Jt=t:Jt>t&&xt.shift(),It.endOnTick?Gt=n:n>Gt&&xt.pop(),Ae||(Ae={x:0,y:0}),!Bt&&xt.length>Ae[Xt]&&It.alignTicks!==!1)&&(Ae[Xt]=xt.length)}function w(t){return t=new r(t).render(),oe.push(t),t}function k(){var t,e,s,o,a=It.title,c=It.stackLabels,h=It.alternateGridColor,d=It.lineWidth,g=Ve.hasRendered&&u(et)&&!isNaN(et),m=(t=Mt.series.length&&u(Jt)&&u(Gt))||p(It.showEmpty,!0);if((t||se)&&(yt&&!xe&&Vt(f(),function(t){me[t]||(me[t]=new i(t,"minor")),g&&me[t].isNew&&me[t].render(null,!0),me[t].isActive=!0,me[t].render()}),Vt(xt,function(t,e){(!se||t>=Jt&&Gt>=t)&&(fe[t]||(fe[t]=new i(t)),g&&fe[t].isNew&&fe[t].render(e,!0),fe[t].isActive=!0,fe[t].render(e))}),h&&Vt(xt,function(t,e){e%2===0&&Gt>t&&(be[t]||(be[t]=new r),s=t,o=xt[e+1]!==I?xt[e+1]:Gt,be[t].options={from:zt?l(s):s,to:zt?l(o):o,color:h},be[t].render(),be[t].isActive=!0)}),Mt._addedPlotLB||(Vt((It.plotLines||[]).concat(It.plotBands||[]),function(t){w(t)}),Mt._addedPlotLB=!0)),Vt([fe,me,be],function(t){for(var e in t)t[e].isActive?t[e].isActive=!1:(t[e].destroy(),delete t[e])}),d&&(t=M+(St?F:0)+Rt,e=Ht-W-(St?j:0)+Rt,t=Pe.crispLine([Lt,At?M:t,At?e:O,$t,At?Ft-B:t,At?e:Ht-W],d),U?U.animate({d:t}):U=Pe.path(t).attr({stroke:It.lineColor,"stroke-width":d,zIndex:7}).add(),U[m?"show":"hide"]()),C&&m&&(m=At?M:O,d=n(a.style.fontSize||12),m={low:m+(At?0:qt),middle:m+qt/2,high:m+(At?qt:0)}[a.align],d=(At?O+j:M)+(At?1:-1)*(St?-1:1)*_t+(2===Pt?d:0),C[C.isNew?"attr":"animate"]({x:At?m:d+(St?F:0)+Rt+(a.x||0),y:At?d-(St?j:0)+Rt:m+(a.y||0)}),C.isNew=!1),c&&c.enabled){var v,y,c=Mt.stackTotalGroup;c||(Mt.stackTotalGroup=c=Pe.g("stack-labels").attr({visibility:Dt,zIndex:6}).translate(ht,Z).add());for(v in Nt)for(y in a=Nt[v])a[y].render(c)}Mt.isDirty=!1}function _(t){for(var e=oe.length;e--;)oe[e].id===t&&oe[e].destroy()}var C,E,N,L,$,M,O,F,j,W,B,z,R,X,q,Y,U,V,G,J,K,Q,tt,et,ct,ut,pt,ft,gt,mt,vt,yt,bt,xt,wt,kt,_t,Tt=e.isX,St=e.opposite,At=Ce?!Tt:Tt,Pt=At?St?0:2:St?1:3,Nt={},It=Qt(Tt?le:ce,[pe,he,de,ue][Pt],e),Mt=this,Ot=It.type,Bt="datetime"===Ot,zt="logarithmic"===Ot,Rt=It.offset||0,Xt=Tt?"x":"y",qt=0,Yt=It.minRange||It.maxZoom,Ut=It.range,Gt=null,Jt=null,ne=It.minPadding,ie=It.maxPadding,re=0,se=u(It.linkedTo),Ot=It.events,oe=[],ae=It.tickPositioner,fe={},me={},be={},xe=It.categories,we=It.labels.formatter||function(){var t=this.value,e=this.dateTimeLabelFormat;return e?H(e,t):vt%1e6===0?t/1e6+"M":vt%1e3===0?t/1e3+"k":!xe&&t>=1e3?v(t,0):t},ke=At&&It.labels.staggerLines,_e=It.reversed,Te=xe&&"between"===It.tickmarkPlacement?.5:0;i.prototype={addLabel:function(){var e,n=this.pos,i=It.labels,r=xe&&At&&xe.length&&!i.step&&!i.staggerLines&&!i.rotation&&ve/xe.length||!At&&ve/2,s=n===xt[0],o=n===xt[xt.length-1],a=xe&&u(xe[n])?xe[n]:n,c=this.label,h=xt.info;Bt&&h&&(e=It.dateTimeLabelFormats[h.higherRanks[n]||h.unitName]),this.isFirst=s,this.isLast=o,n=we.call({axis:Mt,chart:Ve,isFirst:s,isLast:o,dateTimeLabelFormat:e,value:zt?D(l(a)):a}),r=r&&{width:ot(1,it(r-2*(i.padding||10)))+Et},r=t(r,i.style),u(c)?c&&c.attr({text:n}
6).css(r):this.label=u(n)&&i.enabled?Pe.text(n,0,0,i.useHTML).attr({align:i.align,rotation:i.rotation}).css(r).add(q):null},getLabelSize:function(){var t=this.label;return t?(this.labelBBox=t.getBBox())[At?"height":"width"]:0},render:function(t,e){var i,r=this.type,s=this.label,o=this.pos,a=It.labels,l=this.gridLine,c=r?r+"Grid":"grid",h=r?r+"Tick":"tick",d=It[c+"LineWidth"],f=It[c+"LineColor"],g=It[c+"LineDashStyle"],m=It[h+"Length"],c=It[h+"Width"]||0,v=It[h+"Color"],y=It[h+"Position"],h=this.mark,b=a.step,x=e&&Wt||Ht;i=At?z(o+Te,null,null,e)+L:M+Rt+(St?(e&&jt||Ft)-B-M:0),x=At?x-W+Rt-(St?j:0):x-z(o+Te,null,null,e)-L,d&&(o=X(o+Te,d,e),l===I&&(l={stroke:f,"stroke-width":d},g&&(l.dashstyle=g),r||(l.zIndex=1),this.gridLine=l=d?Pe.path(o).attr(l).add(Y):null),!e&&l&&o&&l.animate({d:o})),c&&("inside"===y&&(m=-m),St&&(m=-m),r=Pe.crispLine([Lt,i,x,$t,i+(At?0:-m),x+(At?m:0)],c),h?h.animate({d:r}):this.mark=Pe.path(r).attr({stroke:v,"stroke-width":c}).add(q)),s&&!isNaN(i)&&(i=i+a.x-(Te&&At?Te*N*(_e?-1:1):0),x=x+a.y-(Te&&!At?Te*N*(_e?1:-1):0),u(a.y)||(x+=.9*n(s.styles.lineHeight)-s.getBBox().height/2),ke&&(x+=t/(b||1)%ke*16),this.isFirst&&!p(It.showFirstLabel,1)||this.isLast&&!p(It.showLastLabel,1)?s.hide():s.show(),b&&t%b&&s.hide(),s[this.isNew?"attr":"animate"]({x:i,y:x})),this.isNew=!1},destroy:function(){A(this)}},r.prototype={render:function(){var t,e,n,i=this,r=(Mt.pointRange||0)/2,s=i.options,o=s.label,l=i.label,c=s.width,h=s.to,d=s.from,f=s.value,g=s.dashStyle,m=i.svgElem,v=[],y=s.color;n=s.zIndex;var b=s.events;if(zt&&(d=a(d),h=a(h),f=a(f)),c)v=X(f,c),r={stroke:y,"stroke-width":c},g&&(r.dashstyle=g);else{if(!u(d)||!u(h))return;d=ot(d,Jt-r),h=at(h,Gt+r),t=X(h),(v=X(d))&&t?v.push(t[4],t[5],t[1],t[2]):v=null,r={fill:y}}if(u(n)&&(r.zIndex=n),m)v?m.animate({d:v},null,m.onGetPath):(m.hide(),m.onGetPath=function(){m.show()});else if(v&&v.length&&(i.svgElem=m=Pe.path(v).attr(r).add(),b))for(e in g=function(t){m.on(t,function(e){b[t].apply(i,[e])})},b)g(e);return o&&u(o.text)&&v&&v.length&&F>0&&j>0?(o=Qt({align:At&&t&&"center",x:At?!t&&4:10,verticalAlign:!At&&t&&"middle",y:At?t?16:10:t?6:-4,rotation:At&&!t&&90},o),l||(i.label=l=Pe.text(o.text,0,0).attr({align:o.textAlign||o.align,rotation:o.rotation,zIndex:n}).css(o.style).add()),t=[v[1],v[4],p(v[6],v[1])],v=[v[2],v[5],p(v[7],v[2])],e=T(t),n=T(v),l.align(o,!1,{x:e,y:n,width:S(t)-e,height:S(v)-n}),l.show()):l&&l.hide(),i},destroy:function(){A(this),c(oe,this)}},s.prototype={destroy:function(){A(this)},setTotal:function(t){this.cum=this.total=t},render:function(t){var e=this.options.formatter.call(this);this.label?this.label.attr({text:e,visibility:Ct}):this.label=Ve.renderer.text(e,0,0).css(this.options.style).attr({align:this.textAlign,rotation:this.options.rotation,visibility:Ct}).add(t)},setOffset:function(t,e){var n=this.isNegative,i=Mt.translate(this.total,0,0,0,1),r=Mt.translate(0),r=lt(i-r),s=Ve.xAxis[0].translate(this.x)+t,o=Ve.plotHeight,n={x:Ce?n?i:i-r:s,y:Ce?o-s-e:n?o-i-r:o-i,width:Ce?r:e,height:Ce?e:r};this.label&&this.label.align(this.alignOptions,null,n).attr({visibility:Dt})}},z=function(t,e,n,i,r){var s=1,o=0,a=i?$:N,i=i?et:Jt,r=It.ordinal||zt&&r;return a||(a=N),n&&(s*=-1,o=qt),_e&&(s*=-1,o-=s*qt),e?(_e&&(t=qt-t),t=t/a+i,r&&(t=Mt.lin2val(t))):(r&&(t=Mt.val2lin(t)),t=s*(t-i)*a+o+s*re),t},X=function(t,e,n){var i,r,s,o,t=z(t,null,null,n),a=n&&Wt||Ht,l=n&&jt||Ft,n=r=it(t+L);return i=s=it(a-t-L),isNaN(t)?o=!0:At?(i=O,s=a-W,(M>n||n>M+F)&&(o=!0)):(n=M,r=l-B,(O>i||i>O+j)&&(o=!0)),o?null:Pe.crispLine([Lt,n,i,$t,r,s],e||0)},R=function(){var t,e,n=Gt-Jt,i=0;Tt&&(se?i=ut.pointRange:Vt(Mt.series,function(n){i=ot(i,n.pointRange),e=n.closestPointRange,!n.noSharedTooltip&&u(e)&&(t=u(t)?at(t,e):e)}),Mt.pointRange=i,Mt.closestPointRange=t),$=N,Mt.translationSlope=N=qt/(n+i||1),L=At?M:W,re=N*(i/2)},Qe.push(Mt),Ve[Tt?"xAxis":"yAxis"].push(Mt),Ce&&Tt&&_e===I&&(_e=!0),t(Mt,{addPlotBand:w,addPlotLine:w,adjustTickAmount:function(){if(Ae&&Ae[Xt]&&!Bt&&!xe&&!se&&It.alignTicks!==!1){var t=wt,e=xt.length;if(wt=Ae[Xt],wt>e){for(;xt.length<wt;)xt.push(D(xt[xt.length-1]+vt));N*=(e-1)/(wt-1),Gt=xt[xt.length-1]}u(t)&&wt!==t&&(Mt.isDirty=!0)}},categories:xe,getExtremes:function(){return{min:zt?D(l(Jt)):Jt,max:zt?D(l(Gt)):Gt,dataMin:V,dataMax:G,userMin:J,userMax:K}},getPlotLinePath:X,getThreshold:function(t){var e=zt?l(Jt):Jt,n=zt?l(Gt):Gt;return e>t||null===t?t=e:t>n&&(t=n),z(t,0,1,0,1)},isXAxis:Tt,options:It,plotLinesAndBands:oe,getOffset:function(){var t,e=Mt.series.length&&u(Jt)&&u(Gt),n=e||p(It.showEmpty,!0),r=0,s=0,o=It.title,a=It.labels,l=[-1,1,1,-1][Pt];if(q||(q=Pe.g("axis").attr({zIndex:7}).add(),Y=Pe.g("grid").attr({zIndex:It.gridZIndex||1}).add()),kt=0,e||se)Vt(xt,function(t){fe[t]?fe[t].addLabel():fe[t]=new i(t)}),Vt(xt,function(t){(0===Pt||2===Pt||{1:"left",3:"right"}[Pt]===a.align)&&(kt=ot(fe[t].getLabelSize(),kt))}),ke&&(kt+=16*(ke-1));else for(t in fe)fe[t].destroy(),delete fe[t];
6o&&o.text&&(C||(C=Mt.axisTitle=Pe.text(o.text,0,0,o.useHTML).attr({zIndex:7,rotation:o.rotation||0,align:o.textAlign||{low:"left",middle:"center",high:"right"}[o.align]}).css(o.style).add(),C.isNew=!0),n&&(r=C.getBBox()[At?"height":"width"],s=p(o.margin,At?5:10)),C[n?"show":"hide"]()),Rt=l*p(It.offset,dt[Pt]),_t=p(o.offset,kt+s+(2!==Pt&&kt&&l*It.labels[At?"y":"x"])),dt[Pt]=ot(dt[Pt],_t+r+l*Rt)},render:k,setAxisSize:function(){var t=It.offsetLeft||0,e=It.offsetRight||0;M=p(It.left,ht+t),O=p(It.top,Z),F=p(It.width,ve-t+e),j=p(It.height,ge),W=Ht-j-O,B=Ft-F-M,qt=At?F:j,Mt.left=M,Mt.top=O,Mt.len=qt},setAxisTranslation:R,setCategories:function(t,n){Mt.categories=e.categories=xe=t,Vt(Mt.series,function(t){t.translate(),t.setTooltipPoints(!0)}),Mt.isDirty=!0,p(n,!0)&&Ve.redraw()},setExtremes:function(t,e,n,i){n=p(n,!0),ee(Mt,"setExtremes",{min:t,max:e},function(){J=t,K=e,n&&Ve.redraw(i)})},setScale:function(){var t,e,n;if(et=Jt,ct=Gt,E=qt,qt=At?F:j,Vt(Mt.series,function(t){(t.isDirtyData||t.isDirty||t.xAxis.isDirty)&&(n=!0)}),qt!==E||n||se||J!==Q||K!==tt){if(o(),m(),Q=J,tt=K,!Tt)for(t in Nt)for(e in Nt[t])Nt[t][e].cum=Nt[t][e].total;Mt.isDirty||(Mt.isDirty=Ve.isDirtyBox||Jt!==et||Gt!==ct)}},setTickPositions:m,translate:z,redraw:function(){ye.resetTracker&&ye.resetTracker(),k(),Vt(oe,function(t){t.render()}),Vt(Mt.series,function(t){t.isDirty=!0})},removePlotBand:_,removePlotLine:_,reversed:_e,setTitle:function(t,e){It.title=Qt(It.title,t),C=C.destroy(),Mt.isDirty=!0,p(e,!0)&&Ve.redraw()},series:[],stacks:Nt,destroy:function(){var t;te(Mt);for(t in Nt)A(Nt[t]),Nt[t]=null;Mt.stackTotalGroup&&(Mt.stackTotalGroup=Mt.stackTotalGroup.destroy()),Vt([fe,me,be,oe],function(t){A(t)}),Vt([U,q,Y,C],function(t){t&&t.destroy()}),U=q=Y=C=null}});for(mt in Ot)Zt(Mt,mt,Ot[mt]);zt&&(Mt.val2lin=a,Mt.lin2val=l)}function m(t){function e(){var e,n=this.points||d(this),i=n[0].series;return e=[i.tooltipHeaderFormatter(n[0].key)],Vt(n,function(t){i=t.series,e.push(i.tooltipFormatter&&i.tooltipFormatter(t)||t.point.tooltipFormatter(i.tooltipOptions.pointFormat))}),e.push(t.footerFormat||""),e.join("")}function i(t,e){g=f?t:(2*g+t)/3,m=f?e:(m+e)/2,v.attr({x:g,y:m}),De=lt(t-g)>1||lt(e-m)>1?function(){i(t,e)}:null}function r(){if(!f){var t=Ve.hoverPoints;v.hide(),t&&Vt(t,function(t){t.setState()}),Ve.hoverPoints=null,f=!0}}var s,o=t.borderWidth,a=t.crosshairs,l=[],c=t.style,u=t.shared,h=n(c.padding),f=!0,g=0,m=0;c.padding=0;var v=Pe.label("",0,0,null,null,null,t.useHTML).attr({padding:h,fill:t.backgroundColor,"stroke-width":o,r:t.borderRadius,zIndex:8}).css(c).hide().add();return xt||v.shadow(t.shadow),{shared:u,refresh:function(n){var o,c,h,g,m={},y=[];h=n.tooltipPos,o=t.formatter||e;var b,m=Ve.hoverPoints;if(!u||n.series&&n.series.noSharedTooltip?m=n.getLabelConfig():(g=0,m&&Vt(m,function(t){t.setState()}),Ve.hoverPoints=n,Vt(n,function(t){t.setState(Ot),g+=t.plotY,y.push(t.getLabelConfig())}),c=n[0].plotX,g=it(g)/n.length,m={x:n[0].category},m.points=y,n=n[0]),m=o.call(m),s=n.series,c=p(c,n.plotX),g=p(g,n.plotY),o=it(h?h[0]:Ce?ve-g:c),c=it(h?h[1]:Ce?ge-c:g),h=u||!s.isCartesian||s.tooltipOutsidePlot||Yt(o,c),m!==!1&&h?(f&&(v.show(),f=!1),v.attr({text:m}),b=t.borderColor||n.color||s.color||"#606060",v.attr({stroke:b}),h=k(v.width,v.height,ht,Z,ve,ge,{x:o,y:c},p(t.distance,12),Ce),i(it(h.x),it(h.y))):r(),a){a=d(a);var x;h=a.length;for(var w;h--;)x=n.series[h?"yAxis":"xAxis"],a[h]&&x&&(x=x.getPlotLinePath(n[h?"y":"x"],1),l[h]?l[h].attr({d:x,visibility:Dt}):(w={"stroke-width":a[h].width||1,stroke:a[h].color||"#C0C0C0",zIndex:a[h].zIndex||2},a[h].dashStyle&&(w.dashstyle=a[h].dashStyle),l[h]=Pe.path(x).attr(w).add()))}ee(Ve,"tooltipRefresh",{text:m,x:o+ht,y:c+Z,borderColor:b})},hide:r,hideCrosshairs:function(){Vt(l,function(t){t&&t.hide()})},destroy:function(){Vt(l,function(t){t&&t.destroy()}),v&&(v=v.destroy())}}}function N(e){function n(e){var n,i,r,e=e||et.event;return e.target||(e.target=e.srcElement),e.originalEvent&&(e=e.originalEvent),e.event&&(e=e.event),n=e.touches?e.touches.item(0):e,Se=Jt(mt),i=Se.left,r=Se.top,ft?(i=e.x,n=e.y):(i=n.pageX-i,n=n.pageY-r),t(e,{chartX:it(i),chartY:it(n)})}function i(t){var e={
7xAxis:[],yAxis:[]};return Vt(Qe,function(n){var i=n.translate,r=n.isXAxis;e[r?"xAxis":"yAxis"].push({axis:n,value:i((Ce?!r:r)?t.chartX-ht:ge-t.chartY+Z,!0)})}),e}function r(){var t=Ve.hoverSeries,e=Ve.hoverPoint;e&&e.onMouseOut(),t&&t.onMouseOut(),Ut&&(Ut.hide(),Ut.hideCrosshairs()),Ne=null}function s(){if(p){var t={xAxis:[],yAxis:[]},e=p.getBBox(),n=e.x-ht,i=e.y-Z;d&&(Vt(Qe,function(r){if(r.options.zoomEnabled!==!1){var s=r.translate,o=r.isXAxis,a=Ce?!o:o,l=s(a?n:ge-i-e.height,!0,0,0,1),s=s(a?n+e.width:ge-i,!0,0,0,1);t[o?"xAxis":"yAxis"].push({axis:r,min:at(l,s),max:ot(l,s)})}}),ee(Ve,"selection",t,Fe)),p=p.destroy()}f(mt,{cursor:"auto"}
7),Ve.mouseIsDown=se=d=!1,te(tt,wt?"touchend":"mouseup",s)}function o(t){var e=u(t.pageX)?t.pageX:t.page.x,t=u(t.pageX)?t.pageY:t.page.y;Se&&!Yt(e-Se.left-ht,t-Se.top-Z)&&r()}function a(){r(),Se=null}var l,c,d,p,g=xt?"":je.zoomType,v=/x/.test(g),y=/y/.test(g),b=v&&!Ce||y&&Ce,x=y&&!Ce||v&&Ce;we=function(){xe?(xe.translate(ht,Z),Ce&&xe.attr({width:Ve.plotWidth,height:Ve.plotHeight}).invert()):Ve.trackerGroup=xe=Pe.g("tracker").attr({zIndex:9}).add()},we(),e.enabled&&(Ve.tooltip=Ut=m(e),Ee=setInterval(function(){De&&De()},32)),function(){mt.onmousedown=function(t){t=n(t),!wt&&t.preventDefault&&t.preventDefault(),Ve.mouseIsDown=se=!0,Ve.mouseDownX=l=t.chartX,c=t.chartY,Zt(tt,wt?"touchend":"mouseup",s)};var u=function(t){if(!t||!(t.touches&&t.touches.length>1)){t=n(t),wt||(t.returnValue=!1);var i=t.chartX,r=t.chartY,s=!Yt(i-ht,r-Z);if(wt&&"touchstart"===t.type&&(h(t.target,"isTracker")?Ve.runTrackerClick||t.preventDefault():!Ge&&!s&&t.preventDefault()),s&&(ht>i?i=ht:i>ht+ve&&(i=ht+ve),Z>r?r=Z:r>Z+ge&&(r=Z+ge)),se&&"touchstart"!==t.type){if(d=Math.sqrt(Math.pow(l-i,2)+Math.pow(c-r,2)),d>10){var o=Yt(l-ht,c-Z);Je&&(v||y)&&o&&(p||(p=Pe.rect(ht,Z,b?1:ve,x?1:ge,0).attr({fill:je.selectionMarkerFill||"rgba(69,114,167,0.25)",zIndex:7}).add())),p&&b&&(t=i-l,p.attr({width:lt(t),x:(t>0?0:t)+l})),p&&x&&(r-=c,p.attr({height:lt(r),y:(r>0?0:r)+c})),o&&!p&&je.panning&&Ve.pan(i)}}else if(!s){var a,u,f,i=Ve.hoverPoint,r=Ve.hoverSeries,o=Ft,g=Ce?t.chartY:t.chartX-ht;if(Ut&&e.shared&&(!r||!r.noSharedTooltip)){for(a=[],u=Ze.length,f=0;u>f;f++)Ze[f].visible&&Ze[f].options.enableMouseTracking!==!1&&!Ze[f].noSharedTooltip&&Ze[f].tooltipPoints.length&&(t=Ze[f].tooltipPoints[g],t._dist=lt(g-t.plotX),o=at(o,t._dist),a.push(t));for(u=a.length;u--;)a[u]._dist>o&&a.splice(u,1);a.length&&a[0].plotX!==Ne&&(Ut.refresh(a),Ne=a[0].plotX)}r&&r.tracker&&(t=r.tooltipPoints[g])&&t!==i&&t.onMouseOver()}return s||!Je}};mt.onmousemove=u,Zt(mt,"mouseleave",a),Zt(tt,"mousemove",o),mt.ontouchstart=function(t){(v||y)&&mt.onmousedown(t),u(t)},mt.ontouchmove=u,mt.ontouchend=function(){d&&r()},mt.onclick=function(e){var r=Ve.hoverPoint,e=n(e);if(e.cancelBubble=!0,!d)if(r&&h(e.target,"isTracker")){var s=r.plotX,o=r.plotY;t(r,{pageX:Se.left+ht+(Ce?ve-o:s),pageY:Se.top+Z+(Ce?ge-s:o)}),ee(r.series,"click",t(e,{point:r})),r.firePointEvent("click",e)}else t(e,i(e)),Yt(e.chartX-ht,e.chartY-Z)&&ee(Ve,"click",e);d=!1}}(),t(this,{zoomX:v,zoomY:y,resetTracker:r,normalizeMouseEvent:n,destroy:function(){Ve.trackerGroup&&(Ve.trackerGroup=xe=Ve.trackerGroup.destroy()),te(mt,"mouseleave",a),te(tt,"mousemove",o),mt.onclick=mt.onmousedown=mt.onmousemove=mt.ontouchstart=mt.ontouchend=mt.ontouchmove=null}})}function L(t){var e=t.type||je.type||je.defaultSeriesType,n=re[e],i=Ve.hasRendered;return i&&(Ce&&"column"===e?n=re.bar:Ce||"bar"!==e||(n=re.column)),e=new n,e.init(Ve,t),!i&&e.inverted&&(Ce=!0),e.isCartesian&&(Je=e.isCartesian),Ze.push(e),e}function $(){je.alignTicks!==!1&&Vt(Qe,function(t){t.adjustTickAmount()}),Ae=null}function O(t){var e,n=Ve.isDirtyLegend,i=Ve.isDirtyBox,r=Ze.length,s=r,o=Ve.clipRect;for(E(t,Ve);s--;)if(t=Ze[s],t.isDirty&&t.options.stacking){e=!0;break}if(e)for(s=r;s--;)t=Ze[s],t.options.stacking&&(t.isDirty=!0);Vt(Ze,function(t){t.isDirty&&"point"===t.options.legendType&&(n=!0)}),n&&ke.renderLegend&&(ke.renderLegend(),Ve.isDirtyLegend=!1),Je&&(Ke||(Ae=null,Vt(Qe,function(t){t.setScale()})),$(),$e(),Vt(Qe,function(t){ee(t,"afterSetExtremes",t.getExtremes()),t.isDirty&&t.redraw()})),i&&(Le(),we(),o&&(ie(o),o.animate({width:Ve.plotSizeX,height:Ve.plotSizeY+1}))),Vt(Ze,function(t){t.isDirty&&t.visible&&(!t.isCartesian||t.xAxis)&&t.redraw()}),ye&&ye.resetTracker&&ye.resetTracker(),Pe.draw(),ee(Ve,"redraw")}function W(){var t=e.xAxis||{},n=e.yAxis||{},t=d(t);Vt(t,function(t,e){t.index=e,t.isX=!0}),n=d(n),Vt(n,function(t,e){t.index=e}),t=t.concat(n),Vt(t,function(t){new o(t)}),$()}function B(){var t=F.lang,e=je.resetZoomButton,n=e.theme,i=n.states,r="chart"===e.relativeTo?null:{x:ht,y:Z,width:ve,height:ge};Ve.resetZoomButton=Pe.button(t.resetZoom,null,null,He,n,i&&i.hover).attr({align:e.position.align,title:t.resetZoomTitle}).add().align(e.position,!1,r)}
7function z(t,n){K=Qt(e.title,t),Q=Qt(e.subtitle,n),Vt([["title",t,K],["subtitle",n,Q]],function(t){var e=t[0],n=Ve[e],i=t[1],t=t[2];n&&i&&(n=n.destroy()),t&&t.text&&!n&&(Ve[e]=Pe.text(t.text,0,0,t.useHTML).attr({align:t.align,"class":Pt+e,zIndex:1}).css(t.style).add().align(t,!1,J))})}function R(){pt=je.renderTo,bt=Pt+_t++,i(pt)&&(pt=tt.getElementById(pt)),pt||P(13,!0),pt.innerHTML="",pt.offsetWidth||(gt=pt.cloneNode(0),f(gt,{position:St,top:"-9999px",display:""}),tt.body.appendChild(gt)),kt=(gt||pt).offsetWidth,It=(gt||pt).offsetHeight,Ve.chartWidth=Ft=je.width||kt||600,Ve.chartHeight=Ht=je.height||(It>19?It:400),Ve.container=mt=g(Tt,{className:Pt+"container"+(je.className?" "+je.className:""),id:bt},t({position:At,overflow:Ct,width:Ft+Et,height:Ht+Et,textAlign:"left",lineHeight:"normal"},je.style),gt||pt),Ve.renderer=Pe=je.forExport?new me(mt,Ft,Ht,!0):new M(mt,Ft,Ht),xt&&Pe.create(Ve,mt,Ft,Ht);var e,r;vt&&mt.getBoundingClientRect&&(e=function(){f(mt,{left:0,top:0}),r=mt.getBoundingClientRect(),f(mt,{left:-(r.left-n(r.left))+Et,top:-(r.top-n(r.top))+Et})},e(),Zt(et,"resize",e),Zt(Ve,"destroy",function(){te(et,"resize",e)}))}function X(){function t(t){var n=je.width||pt.offsetWidth,i=je.height||pt.offsetHeight,t=t.target;n&&i&&(t===et||t===tt)&&((n!==kt||i!==It)&&(clearTimeout(e),e=setTimeout(function(){Oe(n,i,!1)},100)),kt=n,It=i)}var e;Zt(et,"resize",t),Zt(Ve,"destroy",function(){te(et,"resize",t)})}function q(){Ve&&ee(Ve,"endResize",null,function(){Ke-=1})}function Y(){for(var t=Ce||je.inverted||"bar"===je.type||"bar"===je.defaultSeriesType,n=e.series,i=n&&n.length;!t&&i--;)"bar"===n[i].type&&(t=!0);Ve.inverted=Ce=t}function U(){var i,r=e.labels,s=e.credits;z(),ke=Ve.legend=new tn,Vt(Qe,function(t){t.setScale()}),$e(),Vt(Qe,function(t){t.setTickPositions(!0)}),$(),$e(),Le(),Je&&Vt(Qe,function(t){t.render()}),Ve.seriesGroup||(Ve.seriesGroup=Pe.g("series-group").attr({zIndex:3}).add()),Vt(Ze,function(t){t.translate(),t.setTooltipPoints(),t.render()}),r.items&&Vt(r.items,function(){var e=t(r.style,this.style),i=n(e.left)+ht,s=n(e.top)+Z+12;delete e.left,delete e.top,Pe.text(this.html,i,s).attr({zIndex:2}).css(e).add()}),s.enabled&&!Ve.credits&&(i=s.href,Ve.credits=Pe.text(s.text,0,0).on("click",function(){i&&(location.href=i)}).attr({align:s.position.align,zIndex:8}).css(s.style).add().align(s.position)),we(),Ve.hasRendered=!0,gt&&(pt.appendChild(mt),C(gt))}function V(){!yt&&et==et.top&&"complete"!==tt.readyState||xt&&!et.canvg?xt?be.push(V,e.global.canvasToolsURL):tt.attachEvent("onreadystatechange",function(){tt.detachEvent("onreadystatechange",V),"complete"===tt.readyState&&V()}):(R(),ee(Ve,"init"),Highcharts.RangeSelector&&e.rangeSelector.enabled&&(Ve.rangeSelector=new Highcharts.RangeSelector(Ve)),Ie(),Me(),Y(),W(),Vt(e.series||[],function(t){L(t)}),Highcharts.Scroller&&(e.navigator.enabled||e.scrollbar.enabled)&&(Ve.scroller=new Highcharts.Scroller(Ve)),Ve.render=U,Ve.tracker=ye=new N(e.tooltip),U(),Pe.draw(),s&&s.apply(Ve,[Ve]),Vt(Ve.callbacks,function(t){t.apply(Ve,[Ve])}),ee(Ve,"load"))}var G=e.series;e.series=null,e=Qt(F,e),e.series=G;var J,K,Q,Z,ct,ut,ht,dt,pt,gt,mt,bt,kt,It,Ft,Ht,jt,Wt,Bt,zt,Rt,Xt,qt,Yt,Ut,se,oe,ae,fe,ge,ve,ye,xe,we,ke,_e,Te,Se,Ae,Ce,Pe,De,Ee,Ne,Le,$e,Ie,Me,Oe,Fe,He,je=e.chart,G=je.margin,G=r(G)?G:[G,G,G,G],We=p(je.marginTop,G[0]),Be=p(je.marginRight,G[1]),ze=p(je.marginBottom,G[2]),Re=p(je.marginLeft,G[3]),Xe=je.spacingTop,qe=je.spacingRight,Ye=je.spacingBottom,Ue=je.spacingLeft,Ve=this,Ge=(G=je.events)&&!!G.click,Je=je.showAxes,Ke=0,Qe=[],Ze=[],tn=function(){function e(t,e){var n=t.legendItem,i=t.legendLine,r=t.legendSymbol,s=T.color,o=e?a.itemStyle.color:s,s=e?t.color:s;n&&n.css({fill:o}),i&&i.attr({stroke:s}),r&&r.attr({stroke:s,fill:s})}function i(t){var e=t.legendItem,n=t.legendLine,i=t._legendItemPos,r=i[0],i=i[1],s=t.legendSymbol,t=t.checkbox;e&&e.attr({x:A?r:_e-r,y:i}),n&&n.translate(A?r:_e-r,i-4),s&&(e=r+s.xOff,s.attr({x:A?e:_e-e,y:i+s.yOff})),t&&(t.x=r,t.y=i)}function r(){Vt(l,function(t){var e=t.checkbox,n=p.alignAttr;e&&f(e,{left:n.translateX+t.legendItemWidth+e.x-40+Et,top:n.translateY+e.y-11+Et})})}function s(t){var n,i,r,s,o=t.legendItem;s=t.series||t;var l=s.options,d=l&&l.borderWidth||0;if(!o){if(s=/^(bar|pie|area|column)$/.test(s.type),t.legendItem=o=Pe.text(a.labelFormatter.call(t),0,0,a.useHTML).css(t.visible?w:T).on("mouseover",function(){t.setState(Ot),o.css(k)}).on("mouseout",function(){o.css(t.visible?w:T),t.setState()}).on("click",function(){var e=function(){t.setVisible()};t.firePointEvent?t.firePointEvent("legendItemClick",null,e):ee(t,"legendItemClick",null,e)}
7).attr({align:A?"left":"right",zIndex:2}).add(p),!s&&l&&l.lineWidth){var f={"stroke-width":l.lineWidth,zIndex:2};l.dashStyle&&(f.dashstyle=l.dashStyle),t.legendLine=Pe.path([Lt,(-y-b)*(A?1:-1),0,$t,-b*(A?1:-1),0]).attr(f).add(p)}s?(r=Pe.rect(n=-y-b,i=-11,y,12,2).attr({zIndex:3}).add(p),A||(n+=y)):l&&l.marker&&l.marker.enabled&&(r=l.marker.radius,r=Pe.symbol(t.symbol,n=-y/2-b-r,i=-4-r,2*r,2*r).attr(t.pointAttr[Mt]).attr({zIndex:3}).add(p),A||(n+=y/2)),r&&(r.xOff=n+d%2/2,r.yOff=i+d%2/2),t.legendSymbol=r,e(t,t.visible),l&&l.showCheckbox&&(t.checkbox=g("input",{type:"checkbox",checked:t.selected,defaultChecked:t.selected},a.itemCheckboxStyle,mt),Zt(t.checkbox,"click",function(e){ee(t,"checkboxClick",{checked:e.target.checked},function(){t.select()})}))}n=o.getBBox(),i=t.legendItemWidth=a.itemWidth||y+b+n.width+S,E=n.height,v&&c-D+i>(M||Ft-2*S-D)&&(c=D,u+=N+E+L),h=u+L,t._legendItemPos=[c,u],v?c+=i:u+=N+E+L,m=M||ot(v?c-D:i,m)}function o(){c=D,u=S+N+P-5,h=m=0,p||(p=Pe.g("legend").attr({zIndex:10}).add()),l=[],Vt(O,function(t){var e=t.options;e.showInLegend&&(l=l.concat(t.legendItems||("point"===e.legendType?t.data:t)))}),_(l,function(t,e){return(t.options.legendIndex||0)-(e.options.legendIndex||0)}),F&&l.reverse(),Vt(l,s),_e=M||m,Te=h-P+E,($||I)&&(_e+=2*S,Te+=2*S,d?_e>0&&Te>0&&(d[d.isNew?"attr":"animate"](d.crisp(null,null,null,_e,Te)),d.isNew=!1):(d=Pe.rect(0,0,_e,Te,a.borderRadius,$||0).attr({stroke:a.borderColor,"stroke-width":$||0,fill:I||Nt}).add(p).shadow(a.shadow),d.isNew=!0),d[l.length?"show":"hide"]()),Vt(l,i);for(var e,o=["left","right","top","bottom"],f=4;f--;)e=o[f],x[e]&&"auto"!==x[e]&&(a[2>f?"align":"verticalAlign"]=e,a[2>f?"x":"y"]=n(x[e])*(f%2?-1:1));l.length&&p.align(t(a,{width:_e,height:Te}),!0,J),Ke||r()}var a=Ve.options.legend;if(a.enabled){var l,c,u,h,d,p,m,v="horizontal"===a.layout,y=a.symbolWidth,b=a.symbolPadding,x=a.style,w=a.itemStyle,k=a.itemHoverStyle,T=Qt(w,a.itemHiddenStyle),S=a.padding||n(x.padding),A=!a.rtl,P=18,D=4+S+y+b,E=0,N=a.itemMarginTop||0,L=a.itemMarginBottom||0,$=a.borderWidth,I=a.backgroundColor,M=a.width,O=Ve.series,F=a.reversed;return o(),Zt(Ve,"endResize",r),{colorizeItem:e,destroyItem:function(t){var e=t.checkbox;Vt(["legendItem","legendLine","legendSymbol"],function(e){t[e]&&t[e].destroy()}),e&&C(t.checkbox)},renderLegend:o,destroy:function(){d&&(d=d.destroy()),p&&(p=p.destroy())}}}};if(Yt=function(t,e){return t>=0&&ve>=t&&e>=0&&ge>=e},He=function(){var t=Ve.resetZoomButton;ee(Ve,"selection",{resetSelection:!0}
7,Fe),t&&(Ve.resetZoomButton=t.destroy())},Fe=function(t){var e,n=Ve.pointCount<100;Ve.resetZoomEnabled!==!1&&!Ve.resetZoomButton&&B(),!t||t.resetSelection?Vt(Qe,function(t){t.options.zoomEnabled!==!1&&(t.setExtremes(null,null,!1),e=!0)}):Vt(t.xAxis.concat(t.yAxis),function(t){var n=t.axis;Ve.tracker[n.isXAxis?"zoomX":"zoomY"]&&(n.setExtremes(t.min,t.max,!1),e=!0)}),e&&O(!0,n)},Ve.pan=function(t){var e=Ve.xAxis[0],n=Ve.mouseDownX,i=e.pointRange/2,r=e.getExtremes(),s=e.translate(n-t,!0)+i,n=e.translate(n+ve-t,!0)-i;(i=Ve.hoverPoints)&&Vt(i,function(t){t.setState()}),s>at(r.dataMin,r.min)&&n<ot(r.dataMax,r.max)&&e.setExtremes(s,n,!0,!1),Ve.mouseDownX=t,f(mt,{cursor:"move"})},$e=function(){var t,n=e.legend,i=p(n.margin,10),r=n.x,s=n.y,o=n.align,a=n.verticalAlign;Ie(),!Ve.title&&!Ve.subtitle||u(We)||(t=ot(Ve.title&&!K.floating&&!K.verticalAlign&&K.y||0,Ve.subtitle&&!Q.floating&&!Q.verticalAlign&&Q.y||0))&&(Z=ot(Z,t+p(K.margin,15)+Xe)),n.enabled&&!n.floating&&("right"===o?u(Be)||(ct=ot(ct,_e-r+i+qe)):"left"===o?u(Re)||(ht=ot(ht,_e+r+i+Ue)):"top"===a?u(We)||(Z=ot(Z,Te+s+i+Xe)):"bottom"===a&&(u(ze)||(ut=ot(ut,Te-s+i+Ye)))),Ve.extraBottomMargin&&(ut+=Ve.extraBottomMargin),Ve.extraTopMargin&&(Z+=Ve.extraTopMargin),Je&&Vt(Qe,function(t){t.getOffset()}),u(Re)||(ht+=dt[3]),u(We)||(Z+=dt[0]),u(ze)||(ut+=dt[2]),u(Be)||(ct+=dt[1]),Me()},Oe=function(t,e,n){var i=Ve.title,r=Ve.subtitle;Ke+=1,E(n,Ve),Wt=Ht,jt=Ft,u(t)&&(Ve.chartWidth=Ft=it(t)),u(e)&&(Ve.chartHeight=Ht=it(e)),f(mt,{width:Ft+Et,height:Ht+Et}),Pe.setSize(Ft,Ht,n),ve=Ft-ht-ct,ge=Ht-Z-ut,Ae=null,Vt(Qe,function(t){t.isDirty=!0,t.setScale()}),Vt(Ze,function(t){t.isDirty=!0}),Ve.isDirtyLegend=!0,Ve.isDirtyBox=!0,$e(),i&&i.align(null,null,J),r&&r.align(null,null,J),O(n),Wt=null,ee(Ve,"resize"),j===!1?q():setTimeout(q,j&&j.duration||500)},Me=function(){Ve.plotLeft=ht=it(ht),Ve.plotTop=Z=it(Z),Ve.plotWidth=ve=it(Ft-ht-ct),Ve.plotHeight=ge=it(Ht-Z-ut),Ve.plotSizeX=Ce?ge:ve,Ve.plotSizeY=Ce?ve:ge,J={x:Ue,y:Xe,width:Ft-Ue-qe,height:Ht-Xe-Ye},Vt(Qe,function(t){t.setAxisSize(),t.setAxisTranslation()})},Ie=function(){Z=p(We,Xe),ct=p(Be,qe),ut=p(ze,Ye),ht=p(Re,Ue),dt=[0,0,0,0]},Le=function(){var t,e=je.borderWidth||0,n=je.backgroundColor,i=je.plotBackgroun
7dColor,r=je.plotBackgroundImage,s={x:ht,y:Z,width:ve,height:ge};t=e+(je.shadow?8:0),(e||n)&&(Bt?Bt.animate(Bt.crisp(null,null,null,Ft-t,Ht-t)):Bt=Pe.rect(t/2,t/2,Ft-t,Ht-t,je.borderRadius,e).attr({stroke:je.borderColor,"stroke-width":e,fill:n||Nt}).add().shadow(je.shadow)),i&&(zt?zt.animate(s):zt=Pe.rect(ht,Z,ve,ge,0).attr({fill:i}).add().shadow(je.plotShadow)),r&&(Rt?Rt.animate(s):Rt=Pe.image(r,ht,Z,ve,ge).add()),je.plotBorderWidth&&(Xt?Xt.animate(Xt.crisp(null,ht,Z,ve,ge)):Xt=Pe.rect(ht,Z,ve,ge,0,je.plotBorderWidth).attr({stroke:je.plotBorderColor,"stroke-width":je.plotBorderWidth,zIndex:4}).add()),Ve.isDirtyBox=!1},je.reflow!==!1&&Zt(Ve,"load",X),G)for(qt in G)Zt(Ve,qt,G[qt]);Ve.options=e,Ve.series=Ze,Ve.xAxis=[],Ve.yAxis=[],Ve.addSeries=function(t,e,n){var i;return t&&(E(n,Ve),e=p(e,!0),ee(Ve,"addSeries",{options:t},function(){i=L(t),i.isDirty=!0,Ve.isDirtyLegend=!0,e&&Ve.redraw()})),i},Ve.animation=xt?!1:p(je.animation,!0),Ve.Axis=o,Ve.destroy=function(){var t,n=mt&&mt.parentNode;if(null!==Ve){for(ee(Ve,"destroy"),te(Ve),t=Qe.length;t--;)Qe[t]=Qe[t].destroy();for(t=Ze.length;t--;)Ze[t]=Ze[t].destroy();Vt("title,subtitle,seriesGroup,clipRect,credits,tracker,scroller,rangeSelector".split(","),function(t){var e=Ve[t];e&&(Ve[t]=e.destroy())}),Vt([Bt,Xt,zt,ke,Ut,Pe,ye],function(t){t&&t.destroy&&t.destroy()}),Bt=Xt=zt=ke=Ut=Pe=ye=null,mt&&(mt.innerHTML="",te(mt),n&&C(mt),mt=null),clearInterval(Ee);for(t in Ve)delete Ve[t];e=Ve=null}},Ve.get=function(t){var e,n,i;for(e=0;e<Qe.length;e++)if(Qe[e].options.id===t)return Qe[e];for(e=0;e<Ze.length;e++)if(Ze[e].options.id===t)return Ze[e];for(e=0;e<Ze.length;e++)for(i=Ze[e].points||[],n=0;n<i.length;n++)if(i[n].id===t)return i[n];return null},Ve.getSelectedPoints=function(){var t=[];return Vt(Ze,function(e){t=t.concat(Gt(e.points,function(t){return t.selected}))}),t},Ve.getSelectedSeries=function(){return Gt(Ze,function(t){return t.selected})},Ve.hideLoading=function(){oe&&ne(oe,{opacity:0},{duration:e.loading.hideDuration||100,complete:function(){f(oe,{display:Nt})}}),fe=!1},Ve.initSeries=L,Ve.isInsidePlot=Yt,Ve.redraw=O,Ve.setSize=Oe,Ve.setTitle=z,Ve.showLoading=function(n){var i=e.loading;oe||(oe=g(Tt,{className:Pt+"loading"},t(i.style,{left:ht+Et,top:Z+Et,width:ve+Et,height:ge+Et,zIndex:10,display:Nt}),mt),ae=g("span",null,i.labelStyle,oe)),ae.innerHTML=n||e.lang.loading,fe||(f(oe,{opacity:0,display:""}),ne(oe,{opacity:i.style.opacity},{duration:i.showDuration||0}),fe=!0)},Ve.pointCount=0,Ve.counters=new w,V()}var I,M,O,F,H,j,W,B,z,R,X,q,Y,U,V,G,J,K,Q,Z,tt=document,et=window,nt=Math,it=nt.round,rt=nt.floor,st=nt.ceil,ot=nt.max,at=nt.min,lt=nt.abs,ct=nt.cos,ut=nt.sin,ht=nt.PI,dt=2*ht/360,pt=navigator.userAgent,ft=/msie/i.test(pt)&&!et.opera,gt=8===tt.documentMode,mt=/AppleWebKit/.test(pt),vt=/Firefox/.test(pt),yt=!!tt.createElementNS&&!!tt.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,bt=vt&&parseInt(pt.split("Firefox/")[1],10)<4,xt=!yt&&!ft&&!!tt.createElement("canvas").getContext,wt=tt.documentElement.ontouchstart!==I,kt={},_t=0,Tt="div",St="absolute",At="relative",Ct="hidden",Pt="highcharts-",Dt="visible",Et="px",Nt="none",Lt="M",$t="L",It="rgba(192,192,192,"+(yt?1e-6:.002)+")",Mt="",Ot="hover",Ft="millisecond",Ht="second",jt="minute",Wt="hour",Bt="day",zt="week",Rt="month",Xt="year",qt=et.HighchartsAdapter,Yt=qt||{},Ut=Yt.getScript,Vt=Yt.each,Gt=Yt.grep,Jt=Yt.offset,Kt=Yt.map,Qt=Yt.merge,Zt=Yt.addEvent,te=Yt.removeEvent,ee=Yt.fireEvent,ne=Yt.animate,ie=Yt.stop,re={};if(et.Highcharts={},H=function(t,e,n){function i(t,e){return t=t.toString().replace(/^([0-9])$/,"0$1"),3===e&&(t=t.toString().replace(/^([0-9]{2})$/,"0$1")),t}if(!u(e)||isNaN(e))return"Invalid date";var r,t=p(t,"%Y-%m-%d %H:%M:%S"),s=new Date(e),o=s[X](),a=s[q](),l=s[Y](),c=s[U](),h=s[V](),d=F.lang,f=d.weekdays,e={a:f[a].substr(0,3),A:f[a],d:i(l),e:l,b:d.shortMonths[c],B:d.months[c],m:i(c+1),y:h.toString().substr(2,2),Y:h,H:i(o),I:i(o%12||12),l:o%12||12,M:i(s[R]()),p:12>o?"AM":"PM",P:12>o?"am":"pm",S:i(s.getSeconds()),L:i(e%1e3,3)};for(r in e)t=t.replace("%"+r,e[r]);return n?t.substr(0,1).toUpperCase()+t.substr(1):t},w.prototype={wrapColor:function(t){this.color>=t&&(this.color=0)},wrapSymbol:function(t){this.symbol>=t&&(this.symbol=0)}},B=e(Ft,1,Ht,1e3,jt,6e4,Wt,36e5,Bt,864e5,zt,6048e5,Rt,2592e6,Xt,31556952e3),W={init:function(t,e,n){var i,r,s,e=e||"",o=t.shift,a=e.indexOf("C")>-1,l=a?7:3,e=e.split(" "),n=[].concat(n),c=function(t){for(i=t.length;i--;)t[i]===Lt&&t.splice(i+1,0,t[i+1],t[i+2],t[i+1],t[i+2])};if(a&&(c(e),c(n)),t.isArea&&(r=e.splice(e.length-6,6),s=n.splice(n.length-6,6)),1===o&&(n=[].concat(n).splice(0,l).concat(n)),t.shift=0,e.length)for(t=n.length;e.length<t;)o=[].concat(e).splice(e.length-l,l),a&&(o[l-6]=o[l-2],o[l-5]=o[l-1]),e=e.concat(o);return r&&(e=e.concat(r),n=n.concat(s)),[e,n]},step:function(t,e,n,i){var r=[],s=t.length;if(1===n)r=i;else if(s===e.length&&1>n)for(;s--;)i=parseFloat(t[s]),r[s]=isNaN(i)?t[s]:n*parseFloat(e[s]-i)+i;else r=e;return r}},qt&&qt.init&&qt.init(W),!qt&&et.jQuery){var se=jQuery,Ut=se.getScript,Vt=function(t,e){for(var n=0,i=t.length;i>n;n++)if(e.call(t[n],t[n],n,t)===!1)return n},Gt=se.grep,Kt=function(t,e){for(var n=[],i=0,r=t.length;r>i;i++)n[i]=e.call(t[i],t[i],i,t);return n},Qt=function(){var t=arguments;return se.extend(!0,null,t[0],t[1],t[2],t[3])},Jt=function(t){return se(t).offset()},Zt=function(t,e,n){se(t).bind(e,n)},te=function(t,e,n){var i=tt.removeEventListener?"removeEventListener":"detachEvent";tt[i]&&!t[i]&&(t[i]=function(){}),se(t).unbind(e,n)},ee=function(e,n,i,r){var s,o=se.Event(n),a="detached"+n;t(o,i),e[n]&&(e[a]=e[n],e[n]=null),Vt(["preventDefault","stopPropagation"],function(t){var e=o[t];o[t]=function(){try{e.call(o)}catch(n){"preventDefault"===t&&(s=!0)}}}),se(e).trigger(o),e[a]&&(e[n]=e[a],e[a]=null),r&&!o.isDefaultPrevented()&&!s&&r(o)},ne=function(t,e,n){var i=se(t);e.d&&(t.toD=e.d,e.d=1),i.stop(),i.animate(e,n)},ie=function(t){se(t).stop()};se.extend(se.easing,{easeOutQuad:function(t,e,n,i,r){return-i*(e/=r)*(e-2)+n}});var oe=jQuery.fx,ae=oe.step;Vt(["cur","_default","width","height"],function(t,e){var n,i=e?ae:oe.prototype,r=i[t];
7r&&(i[t]=function(t){return t=e?t:this,n=t.elem,n.attr?n.attr(t.prop,t.now):r.apply(this,arguments)})}),ae.d=function(t){var e=t.elem;if(!t.started){var n=W.init(e,e.d,e.toD);t.start=n[0],t.end=n[1],t.started=!0}e.attr("d",W.step(t.start,t.end,t.pos,e.toD))}}qt={enabled:!0,align:"center",x:0,y:15,style:{color:"#666",fontSize:"11px",lineHeight:"14px"}},F={colors:"#4572A7,#AA4643,#89A54E,#80699B,#3D96AE,#DB843D,#92A8CD,#A47D7C,#B5CA92".split(","),symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),shortMonths:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),decimalPoint:".",resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:","},global:{useUTC:!0,canvasToolsURL:"http://code.highcharts.com/2.2.0/modules/canvas-tools.js"},chart:{borderColor:"#4572A7",borderRadius:5,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacingTop:10,spacingRight:10,spacingBottom:15,spacingLeft:10,style:{fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif',fontSize:"12px"},backgroundColor:"#FFFFFF",plotBorderColor:"#C0C0C0",resetZoomButton:{theme:{zIndex:20},position:{align:"right",x:-10,y:10}}},title:{text:"Chart title",align:"center",y:15,style:{color:"#3E576F",fontSize:"16px"}},subtitle:{text:"",align:"center",y:30,style:{color:"#6D869F"}},plotOptions:{line:{allowPointSelect:!1,showCheckbox:!1,animation:{duration:1e3},events:{},lineWidth:2,shadow:!0,marker:{enabled:!0,lineWidth:0,radius:4,lineColor:"#FFFFFF",states:{hover:{},select:{fillColor:"#FFFFFF",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:Qt(qt,{enabled:!1,y:-6,formatter:function(){return this.y}}),cropThreshold:300,pointRange:0,showInLegend:!0,states:{hover:{marker:{}},select:{marker:{}}},stickyTracking:!0}},labels:{style:{position:St,color:"#3E576F"}},legend:{enabled:!0,align:"center",layout:"horizontal",labelFormatter:function(){return this.name},borderWidth:1,borderColor:"#909090",borderRadius:5,shadow:!1,style:{padding:"5px"},itemStyle:{cursor:"pointer",color:"#3E576F"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#C0C0C0"},itemCheckboxStyle:{position:St,width:"13px",height:"13px"},symbolWidth:16,symbolPadding:5,verticalAlign:"bottom",x:0,y:0},loading:{labelStyle:{fontWeight:"bold",position:At,top:"1em"},style:{position:St,backgroundColor:"white",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,backgroundColor:"rgba(255, 255, 255, .85)",borderWidth:2,borderRadius:5,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{series.color}">{series.name}</span>: <b>{point.y}</b><br/>',shadow:!0,shared:xt,snap:wt?25:10,style:{color:"#333333",fontSize:"12px",padding:"5px",whiteSpace:"nowrap"}},credits:{enabled:!0,text:"Highcharts.com",href:"http://www.highcharts.com",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#909090",fontSize:"10px"}}};var le={dateTimeLabelFormats:e(Ft,"%H:%M:%S.%L",Ht,"%H:%M:%S",jt,"%H:%M",Wt,"%H:%M",Bt,"%e. %b",zt,"%e. %b",Rt,"%b '%y",Xt,"%Y"),endOnTick:!1,gridLineColor:"#C0C0C0",labels:qt,lineColor:"#C0D0E0",lineWidth:1,max:null,min:null,minPadding:.01,maxPadding:.01,minorGridLineColor:"#E0E0E0",minorGridLineWidth:1,minorTickColor:"#A0A0A0",minorTickLength:2,minorTickPosition:"outside",startOfWeek:1,startOnTick:!1,tickColor:"#C0D0E0",tickLength:5,tickmarkPlacement:"between",tickPixelInterval:100,tickPosition:"outside",tickWidth:1,title:{align:"middle",style:{color:"#6D869F",fontWeight:"bold"}},type:"linear"},ce=Qt(le,{endOnTick:!0,gridLineWidth:1,tickPixelInterval:72,showLastLabel:!0,labels:{align:"right",x:-8,y:3},lineWidth:0,maxPadding:.05,minPadding:.05,startOnTick:!0,tickWidth:0,title:{rotation:270,text:"Y-values"},stackLabels:{enabled:!1,formatter:function(){return this.total},style:qt.style}}),ue={labels:{align:"right",x:-8,y:null},title:{rotation:270}},he={labels:{align:"left",x:8,y:null},title:{rotation:90}},de={labels:{align:"center",x:0,y:14},title:{rotation:0}},pe=Qt(de,{labels:{y:-5}}),fe=F.plotOptions,qt=fe.line;fe.spline=Qt(qt),fe.scatter=Qt(qt,{lineWidth:0,states:{hover:{lineWidth:0}},tooltip:{headerFormat:'<span style="font-size: 10px; color:{series.color}">{series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}),fe.area=Qt(qt,{threshold:0}),fe.areaspline=Qt(fe.area),fe.column=Qt(qt,{borderColor:"#FFFFFF",borderWidth:1,borderRadius:0,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{brightness:.1,shadow:!1},select:{color:"#C0C0C0",borderColor:"#000000",shadow:!1}},dataLabels:{y:null,verticalAlign:null},threshold:0}),fe.bar=Qt(fe.column,{dataLabels:{align:"left",x:5,y:0}}),fe.pie=Qt(qt,{borderColor:"#FFFFFF",borderWidth:1,center:["50%","50%"],colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.name},y:5}
7,legendType:"point",marker:null,size:"75%",showInLegend:!1,slicedOffset:10,states:{hover:{brightness:.1,shadow:!1}}}),N();var ge=function(t){var e,i=[];return function(t){(e=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/.exec(t))?i=[n(e[1]),n(e[2]),n(e[3]),parseFloat(e[4],10)]:(e=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(t))&&(i=[n(e[1],16),n(e[2],16),n(e[3],16),1])}(t),{get:function(e){return i&&!isNaN(i[0])?"rgb"===e?"rgb("+i[0]+","+i[1]+","+i[2]+")":"a"===e?i[3]:"rgba("+i.join(",")+")":t},brighten:function(t){if(o(t)&&0!==t){var e;for(e=0;3>e;e++)i[e]+=n(255*t),i[e]<0&&(i[e]=0),i[e]>255&&(i[e]=255)}return this},setOpacity:function(t){return i[3]=t,this}}};L.prototype={init:function(t,e){this.element="span"===e?g(e):tt.createElementNS("http://www.w3.org/2000/svg",e),this.renderer=t,this.attrSetters={}},animate:function(t,e,n){e=p(e,j,!0),ie(this),e?(e=Qt(e),n&&(e.complete=n),ne(this,t,e)):(this.attr(t),n&&n())},attr:function(t,e){var r,s,o,a,l,c,d=this.element,p=d.nodeName,f=this.renderer,g=this.attrSetters,m=this.shadows,v=this;if(i(t)&&u(e)&&(r=t,t={},t[r]=e),i(t))r=t,"circle"===p?r={x:"cx",y:"cy"}[r]||r:"strokeWidth"===r&&(r="stroke-width"),v=h(d,r)||this[r]||0,"d"!==r&&"visibility"!==r&&(v=parseFloat(v));else for(r in t)if(l=!1,s=t[r],o=g[r]&&g[r](s,r),o!==!1){if(o!==I&&(s=o),"d"===r)s&&s.join&&(s=s.join(" ")),/(NaN| {2}|^$)/.test(s)&&(s="M 0 0"),this.d=s;else if("x"===r&&"text"===p){for(o=0;o<d.childNodes.length;o++)a=d.childNodes[o],h(a,"x")===h(d,"x")&&h(a,"x",s);this.rotation&&h(d,"transform","rotate("+this.rotation+" "+s+" "+n(t.y||h(d,"y"))+")")}else if("fill"===r)s=f.color(s,d,r);else if("circle"!==p||"x"!==r&&"y"!==r)if("rect"===p&&"r"===r)h(d,{rx:s,ry:s}),l=!0;else if("translateX"===r||"translateY"===r||"rotation"===r||"verticalAlign"===r)this[r]=s,this.updateTransform(),l=!0;else if("stroke"===r)s=f.color(s,d,r);else if("dashstyle"===r){if(r="stroke-dasharray",s=s&&s.toLowerCase(),"solid"===s)s=Nt;else if(s){for(s=s.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(","),o=s.length;o--;)s[o]=n(s[o])*t["stroke-width"];s=s.join(",")}}else"isTracker"===r?this[r]=s:"width"===r?s=n(s):"align"===r?(r="text-anchor",s={left:"start",center:"middle",right:"end"}[s]):"title"===r&&(o=tt.createElementNS("http://www.w3.org/2000/svg","title"),o.appendChild(tt.createTextNode(s)),d.appendChild(o));else r={x:"cx",y:"cy"}[r]||r;if("strokeWidth"===r&&(r="stroke-width"),mt&&"stroke-width"===r&&0===s&&(s=1e-6),this.symbolName&&/^(x|y|r|start|end|innerR|anchorX|anchorY)/.test(r)&&(c||(this.symbolAttr(t),c=!0),l=!0),m&&/^(width|height|visibility|x|y|d|transform)$/.test(r))for(o=m.length;o--;)h(m[o],r,s);("width"===r||"height"===r)&&"rect"===p&&0>s&&(s=0),"text"===r?(this.textStr=s,this.added&&f.buildText(this)):l||h(d,r,s)}return mt&&/Chrome\/(18|19)/.test(pt)&&"text"===p&&(t.x!==I||t.y!==I)&&(r=d.parentNode,s=d.nextSibling,r&&(r.removeChild(d),s?r.insertBefore(d,s):r.appendChild(d))),v},symbolAttr:function(t){var e=this;Vt("x,y,r,start,end,width,height,innerR,anchorX,anchorY".split(","),function(n){e[n]=p(t[n],e[n])}),e.attr({d:e.renderer.symbols[e.symbolName](e.x,e.y,e.width,e.height,e)})},clip:function(t){return this.attr("clip-path","url("+this.renderer.url+"#"+t.id+")")},crisp:function(t,e,n,i,r){var s,o,a={},l={},t=t||this.strokeWidth||this.attr&&this.attr("stroke-width")||0;o=it(t)%2/2,l.x=rt(e||this.x||0)+o,l.y=rt(n||this.y||0)+o,l.width=rt((i||this.width||0)-2*o),l.height=rt((r||this.height||0)-2*o),l.strokeWidth=t;for(s in l)this[s]!==l[s]&&(this[s]=a[s]=l[s]);return a},css:function(e){var n,i=this.element,i=e&&e.width&&"text"===i.nodeName,r="",s=function(t,e){return"-"+e.toLowerCase()};if(e&&e.color&&(e.fill=e.color),this.styles=e=t(this.styles,e),ft&&!yt)i&&delete e.width,f(this.element,e);else{for(n in e)r+=n.replace(/([A-Z])/g,s)+":"+e[n]+";";this.attr({style:r})}return i&&this.added&&this.renderer.buildText(this),this},on:function(t,e){var n=e;return wt&&"click"===t&&(t="touchstart",n=function(t){t.preventDefault(),e()}),this.element["on"+t]=n,this},translate:function(t,e){return this.attr({translateX:t,translateY:e})},invert:function(){return this.inverted=!0,this.updateTransform(),this},htmlCss:function(e){var n=this.element;return(n=e&&"SPAN"===n.tagName&&e.width)&&(delete e.width,this.textWidth=n,this.updateTransform()),this.styles=t(this.styles,e),f(this.element,e),this},htmlGetBBox:function(t){var e=this.element,n=this.bBox;return(!n||t)&&("text"===e.nodeName&&(e.style.position=St),n=this.bBox={x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}),n},htmlUpdateTransform:function(){if(this.added){var t=this,e=t.element,i=t.translateX||0,r=t.translateY||0,s=t.x||0,o=t.y||0,a=t.textAlign||"left",l={left:0,center:.5,right:1}[a],c=a&&"left"!==a,h=t.shadows;if((i||r)&&(f(e,{marginLeft:i,marginTop:r}),h&&Vt(h,function(t){f(t,{marginLeft:i+1,marginTop:r+1})})),t.inverted&&Vt(e.childNodes,function(n){t.renderer.invertChild(n,e)}),"SPAN"===e.tagName){var d,g,m,h=t.rotation;d=0;var v,y=1,b=0;m=n(t.textWidth);var x=t.xCorr||0,w=t.yCorr||0,k=[h,a,e.innerHTML,t.textWidth].join(",");k!==t.cTT&&(u(h)&&(d=h*dt,y=ct(d),b=ut(d),f(e,{filter:h?["progid:DXImageTransform.Microsoft.Matrix(M11=",y,", M12=",-b,", M21=",b,", M22=",y,", sizingMethod='auto expand')"].join(""):Nt})),d=p(t.elemWidth,e.offsetWidth),g=p(t.elemHeight,e.offsetHeight),d>m&&(f(e,{width:m+Et,display:"block",whiteSpace:"normal"}),d=m),m=it(1.2*(n(e.style.fontSize)||12)),x=0>y&&-d,w=0>b&&-g,v=0>y*b,x+=b*m*(v?1-l:l),w-=y*m*(h?v?l:1-l:1),c&&(x-=d*l*(0>y?-1:1),h&&(w-=g*l*(0>b?-1:1)),f(e,{textAlign:a}
7)),t.xCorr=x,t.yCorr=w),f(e,{left:s+x+Et,top:o+w+Et}),t.cTT=k}}else this.alignOnAdd=!0},updateTransform:function(){var t=this.translateX||0,e=this.translateY||0,n=this.inverted,i=this.rotation,r=[];n&&(t+=this.attr("width"),e+=this.attr("height")),(t||e)&&r.push("translate("+t+","+e+")"),n?r.push("rotate(90) scale(-1,1)"):i&&r.push("rotate("+i+" "+this.x+" "+this.y+")"),r.length&&h(this.element,"transform",r.join(" "))},toFront:function(){var t=this.element;return t.parentNode.appendChild(t),this},align:function(t,e,n){t?(this.alignOptions=t,this.alignByTranslate=e,n||this.renderer.alignedObjects.push(this)):(t=this.alignOptions,e=this.alignByTranslate);var n=p(n,this.renderer),i=t.align,r=t.verticalAlign,s=(n.x||0)+(t.x||0),o=(n.y||0)+(t.y||0),a={};return/^(right|center)$/.test(i)&&(s+=(n.width-(t.width||0))/{
8right:1,center:2}[i]),a[e?"translateX":"x"]=it(s),/^(bottom|middle)$/.test(r)&&(o+=(n.height-(t.height||0))/({bottom:1,middle:2}[r]||1)),a[e?"translateY":"y"]=it(o),this[this.placed?"animate":"attr"](a),this.placed=!0,this.alignAttr=a,this},getBBox:function(e){var n,i,r=this.rotation;i=this.element;var s=r*dt;if("http://www.w3.org/2000/svg"===i.namespaceURI){try{n=i.getBBox?t({},i.getBBox()):{width:i.offsetWidth,height:i.offsetHeight}}catch(o){}(!n||n.width<0)&&(n={width:0,height:0}),e=n.width,i=n.height,r&&(n.width=lt(i*ut(s))+lt(e*ct(s)),n.height=lt(i*ct(s))+lt(e*ut(s)))}else n=this.htmlGetBBox(e);return n},show:function(){return this.attr({visibility:Dt})},hide:function(){return this.attr({visibility:Ct})},add:function(t){var e,i=this.renderer,r=t||i,s=r.element||i.box,o=s.childNodes,a=this.element,l=h(a,"zIndex");if(this.parentInverted=t&&t.inverted,void 0!==this.textStr&&i.buildText(this),l&&(r.handleZ=!0,l=n(l)),r.handleZ)for(r=0;r<o.length;r++)if(t=o[r],i=h(t,"zIndex"),t!==a&&(n(i)>l||!u(l)&&u(i))){s.insertBefore(a,t),e=!0;break}return e||s.appendChild(a),this.added=!0,ee(this,"add"),this},safeRemoveChild:function(t){var e=t.parentNode;e&&e.removeChild(t)},destroy:function(){var t,e,n=this,i=n.element||{},r=n.shadows,s=n.box;if(i.onclick=i.onmouseout=i.onmouseover=i.onmousemove=null,ie(n),n.clipPath&&(n.clipPath=n.clipPath.destroy()),n.stops){for(e=0;e<n.stops.length;e++)n.stops[e]=n.stops[e].destroy();n.stops=null}n.safeRemoveChild(i),r&&Vt(r,function(t){n.safeRemoveChild(t)}),s&&s.destroy(),c(n.renderer.alignedObjects,n);for(t in n)delete n[t];return null},empty:function(){for(var t=this.element,e=t.childNodes,n=e.length;n--;)t.removeChild(e[n])},shadow:function(t,e){var n,i,r=[],s=this.element,o=this.parentInverted?"(-1,-1)":"(1,1)";if(t){for(n=1;3>=n;n++)i=s.cloneNode(0),h(i,{isShadow:"true",stroke:"rgb(0, 0, 0)","stroke-opacity":.05*n,"stroke-width":7-2*n,transform:"translate"+o,fill:Nt}),e?e.element.appendChild(i):s.parentNode.insertBefore(i,s),r.push(i);this.shadows=r}return this}};var me=function(){this.init.apply(this,arguments)};me.prototype={Element:L,init:function(t,e,n,i){var r,s=location;r=this.createElement("svg").attr({xmlns:"http://www.w3.org/2000/svg",version:"1.1"}),t.appendChild(r.element),this.isSVG=!0,this.box=r.element,this.boxWrapper=r,this.alignedObjects=[],this.url=ft?"":s.href.replace(/#.*?$/,"").replace(/\(/g,"\\(").replace(/\)/g,"\\)"),this.defs=this.createElement("defs").add(),this.forExport=i,this.gradients={},this.setSize(e,n,!1)},destroy:function(){var t=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),A(this.gradients||{}),this.gradients=null,t&&(this.defs=t.destroy()),this.alignedObjects=null},createElement:function(t){var e=new this.Element;return e.init(this,t),e},draw:function(){},buildText:function(t){for(var e,i=t.element,r=p(t.textStr,"").toString().replace(/<(b|strong)>/g,'<span style="font-weight:bold">').replace(/<(i|em)>/g,'<span style="font-style:italic">').replace(/<a/g,"<span").replace(/<\/(b|strong|i|em|a)>/g,"</span>").split(/<br.*?>/g),s=i.childNodes,o=/style="([^"]+)"/,a=/href="([^"]+)"/,l=h(i,"x"),c=t.styles,u=c&&n(c.width),d=c&&c.lineHeight,c=s.length;c--;)i.removeChild(s[c]);u&&!t.added&&this.box.appendChild(i),""===r[r.length-1]&&r.pop(),Vt(r,function(r,s){var c,p,g=0,r=r.replace(/<span/g,"|||<span").replace(/<\/span>/g,"</span>|||");c=r.split("|||"),Vt(c,function(r){if(""!==r||1===c.length){var m={},v=tt.createElementNS("http://www.w3.org/2000/svg","tspan");
8if(o.test(r)&&h(v,"style",r.match(o)[1].replace(/(;| |^)color([ :])/,"$1fill$2")),a.test(r)&&(h(v,"onclick",'location.href="'+r.match(a)[1]+'"'),f(v,{cursor:"pointer"})),r=(r.replace(/<(.|\n)*?>/g,"")||" ").replace(/&lt;/g,"<").replace(/&gt;/g,">"),v.appendChild(tt.createTextNode(r)),g?m.dx=3:m.x=l,g||(s&&(!yt&&t.renderer.forExport&&f(v,{display:"block"}),p=et.getComputedStyle&&n(et.getComputedStyle(e,null).getPropertyValue("line-height")),(!p||isNaN(p))&&(p=d||e.offsetHeight||18),h(v,"dy",p)),e=v),h(v,m),i.appendChild(v),g++,u)for(var y,r=r.replace(/-/g,"- ").split(" "),b=[];r.length||b.length;)y=t.getBBox().width,m=y>u,m&&1!==r.length?(v.removeChild(v.firstChild),b.unshift(r.pop())):(r=b,b=[],r.length&&(v=tt.createElementNS("http://www.w3.org/2000/svg","tspan"),h(v,{dy:d||16,x:l}),i.appendChild(v),y>u&&(u=y))),r.length&&v.appendChild(tt.createTextNode(r.join(" ").replace(/- /g,"-")))}})})},button:function(n,i,r,s,o,a,l){var c,u,h,d,p,f=this.label(n,i,r),g=0,n={x1:0,y1:0,x2:0,y2:1},o=Qt(e("stroke-width",1,"stroke","#999","fill",e("linearGradient",n,"stops",[[0,"#FFF"],[1,"#DDD"]]),"r",3,"padding",3,"style",e("color","black")),o);return h=o.style,delete o.style,a=Qt(o,e("stroke","#68A","fill",e("linearGradient",n,"stops",[[0,"#FFF"],[1,"#ACF"]])),a),d=a.style,delete a.style,l=Qt(o,e("stroke","#68A","fill",e("linearGradient",n,"stops",[[0,"#9BD"],[1,"#CDF"]])),l),p=l.style,delete l.style,Zt(f.element,"mouseenter",function(){f.attr(a).css(d)}),Zt(f.element,"mouseleave",function(){c=[o,a,l][g],u=[h,d,p][g],f.attr(c).css(u)}),f.setState=function(t){(g=t)?2===t&&f.attr(l).css(p):f.attr(o).css(h)},f.on("click",function(){s.call(f)}).attr(o).css(t({cursor:"default"},h))},crispLine:function(t,e){return t[1]===t[4]&&(t[1]=t[4]=it(t[1])+e%2/2),t[2]===t[5]&&(t[2]=t[5]=it(t[2])+e%2/2),t},path:function(t){return this.createElement("path").attr({d:t,fill:Nt})},circle:function(t,e,n){return t=r(t)?t:{x:t,y:e,r:n},this.createElement("circle").attr(t)},arc:function(t,e,n,i,s,o){return r(t)&&(e=t.y,n=t.r,i=t.innerR,s=t.start,o=t.end,t=t.x),this.symbol("arc",t||0,e||0,n||0,n||0,{innerR:i||0,start:s||0,end:o||0})},rect:function(t,e,n,i,s,o){return r(t)&&(e=t.y,n=t.width,i=t.height,s=t.r,o=t.strokeWidth,t=t.x),s=this.createElement("rect").attr({rx:s,ry:s,fill:Nt}),s.attr(s.crisp(o,t,e,ot(n,0),ot(i,0)))},setSize:function(t,e,n){var i=this.alignedObjects,r=i.length;for(this.width=t,this.height=e,this.boxWrapper[p(n,!0)?"animate":"attr"]({width:t,height:e});r--;)i[r].align()},g:function(t){var e=this.createElement("g");return u(t)?e.attr({"class":Pt+t}):e},image:function(e,n,i,r,s){var o={preserveAspectRatio:Nt};return arguments.length>1&&t(o,{x:n,y:i,width:r,height:s}),o=this.createElement("image").attr(o),o.element.setAttributeNS?o.element.setAttributeNS("http://www.w3.org/1999/xlink","href",e):o.element.setAttribute("hc-svg-href",e),o},symbol:function(e,n,i,r,s,o){var a,l,c=this.symbols[e],c=c&&c(it(n),it(i),r,s,o),u=/^url\((.*?)\)$/;if(c)a=this.path(c),t(a,{symbolName:e,x:n,y:i,width:r,height:s}),o&&t(a,o);else if(u.test(e)){var h=function(t,e){t.attr({width:e[0],height:e[1]}).translate(-it(e[0]/2),-it(e[1]/2))};l=e.match(u)[1],e=kt[l],a=this.image(l).attr({x:n,y:i}),e?h(a,e):(a.attr({width:0,height:0}),g("img",{onload:function(){h(a,kt[l]=[this.width,this.height])},src:l}))}return a},symbols:{circle:function(t,e,n,i){var r=.166*n;return[Lt,t+n/2,e,"C",t+n+r,e,t+n+r,e+i,t+n/2,e+i,"C",t-r,e+i,t-r,e,t+n/2,e,"Z"]},square:function(t,e,n,i){return[Lt,t,e,$t,t+n,e,t+n,e+i,t,e+i,"Z"]},triangle:function(t,e,n,i){return[Lt,t+n/2,e,$t,t+n,e+i,t,e+i,"Z"]},"triangle-down":function(t,e,n,i){return[Lt,t,e,$t,t+n,e,t+n/2,e+i,"Z"]},diamond:function(t,e,n,i){return[Lt,t+n/2,e,$t,t+n,e+i/2,t+n/2,e+i,t,e+i/2,"Z"]},arc:function(t,e,n,i,r){var s=r.start,n=r.r||n||i,o=r.end-1e-6,i=r.innerR,a=ct(s),l=ut(s),c=ct(o),o=ut(o),r=r.end-s<ht?0:1;return[Lt,t+n*a,e+n*l,"A",n,n,0,r,1,t+n*c,e+n*o,$t,t+i*c,e+i*o,"A",i,i,0,r,0,t+i*a,e+i*l,"Z"]}},clipRect:function(t,e,n,i){var r=Pt+_t++,s=this.createElement("clipPath").attr({id:r}).add(this.defs),t=this.rect(t,e,n,i,0).add(s);return t.id=r,t.clipPath=s,t},color:function(e,n,i){var r,o=/^rgba/;if(e&&e.linearGradient){var a,l,c,u=this,d=e.linearGradient,n=!s(d),i=u.gradients,p=d.x1||d[0]||0,f=d.y1||d[1]||0,g=d.x2||d[2]||0,m=d.y2||d[3]||0,v=[n,p,f,g,m,e.stops.join(",")].join(",");return i[v]?d=h(i[v].element,"id"):(d=Pt+_t++,a=u.createElement("linearGradient").attr(t({i
8d:d,x1:p,y1:f,x2:g,y2:m},n?null:{gradientUnits:"userSpaceOnUse"})).add(u.defs),a.stops=[],Vt(e.stops,function(t){o.test(t[1])?(r=ge(t[1]),l=r.get("rgb"),c=r.get("a")):(l=t[1],c=1),t=u.createElement("stop").attr({offset:t[0],"stop-color":l,"stop-opacity":c}).add(a),a.stops.push(t)}),i[v]=a),"url("+this.url+"#"+d+")"}return o.test(e)?(r=ge(e),h(n,i+"-opacity",r.get("a")),r.get("rgb")):(n.removeAttribute(i+"-opacity"),e)},text:function(t,e,n,i){var r=F.chart.style;return i&&!this.forExport?this.html(t,e,n):(e=it(p(e,0)),n=it(p(n,0)),t=this.createElement("text").attr({x:e,y:n,text:t}).css({fontFamily:r.fontFamily,fontSize:r.fontSize}),t.x=e,t.y=n,t)},html:function(e,n,i){var r=F.chart.style,s=this.createElement("span"),o=s.attrSetters,a=s.element,l=s.renderer;return o.text=function(t){return a.innerHTML=t,!1},o.x=o.y=o.align=function(t,e){return"align"===e&&(e="textAlign"),s[e]=t,s.htmlUpdateTransform(),!1},s.attr({text:e,x:it(n),y:it(i)}).css({position:St,whiteSpace:"nowrap",fontFamily:r.fontFamily,fontSize:r.fontSize}),s.css=s.htmlCss,l.isSVG&&(s.add=function(e){var n,i,r=l.box.parentNode;return e?(n=e.div)||(n=e.div=g(Tt,{className:h(e.element,"class")},{position:St,left:e.attr("translateX")+Et,top:e.attr("translateY")+Et},r),i=n.style,t(e.attrSetters,{translateX:function(t){i.left=t+Et},translateY:function(t){i.top=t+Et},visibility:function(t,e){i[e]=t}})):n=r,n.appendChild(a),s.added=!0,s.alignOnAdd&&s.htmlUpdateTransform(),s}),s},label:function(e,i,r,s,o,a,l){function c(){var t=x.styles,t=t&&t.textAlign,e=_,i=x.element.style,i=_+it(1.2*n(i&&i.fontSize||11));!u(g)||"center"!==t&&"right"!==t||(e+={center:.5,right:1}[t]*(g-f.width)),(e!==w.x||i!==w.y)&&w.attr({x:e,y:i}),w.x=e,w.y=i}function h(t,e){p?p.attr(t,e):S[t]=e}function d(){x.attr({text:e,x:i,y:r,anchorX:o,anchorY:a})}var p,f,g,m,v,y,b=this,x=b.g(),w=b.text("",0,0,l).attr({zIndex:1}).add(x),k="left",_=3,T=0,S={},l=x.attrSetters;Zt(x,"add",d),l.width=function(t){return g=t,!1},l.height=function(t){return m=t,!1},l.padding=function(t){return _=t,c(),!1},l.align=function(t){return k=t,!1},l.text=function(t,e){return w.attr(e,t),f=(void 0===g||void 0===m||x.styles.textAlign)&&w.getBBox(!0),x.width=(g||f.width)+2*_,x.height=(m||f.height)+2*_,p||(x.box=p=s?b.symbol(s,0,0,x.width,x.height):b.rect(0,0,x.width,x.height,0,S["stroke-width"]),p.add(x)),p.attr(Qt({width:x.width,height:x.height},S)),S=null,c(),!1},l["stroke-width"]=function(t,e){return T=t%2/2,h(e,t),!1},l.stroke=l.fill=l.r=function(t,e){return h(e,t),!1},l.anchorX=function(t,e){return o=t,h(e,t+T-v),!1},l.anchorY=function(t,e){return a=t,h(e,t-y),!1},l.x=function(t){return v=t,v-={left:0,center:.5,right:1}[k]*((g||f.width)+_),x.attr("translateX",it(v)),!1},l.y=function(t){return y=t,x.attr("translateY",it(t)),!1};var A=x.css;return t(x,{css:function(t){if(t){var e={},t=Qt({},t);Vt("fontSize,fontWeight,fontFamily,color,lineHeight,width".split(","),function(n){t[n]!==I&&(e[n]=t[n],delete t[n])}),w.css(e)}return A.call(x,t)},getBBox:function(){return p.getBBox()},shadow:function(t){return p.shadow(t),x},destroy:function(){te(x,"add",d),te(x.element,"mouseenter"),te(x.element,"mouseleave"),w&&(w=w.destroy()),L.prototype.destroy.call(x)}})}},M=me;var ve;yt||xt||(qt={Element:m(L,{init:function(t,e){var n=["<",e,' filled="f" stroked="f"'],i=["position: ",St,";"];("shape"===e||e===Tt)&&i.push("left:0;top:0;width:10px;height:10px;"),gt&&i.push("visibility: ",e===Tt?Ct:Dt),n.push(' style="',i.join(""),'"/>'),e&&(n=e===Tt||"span"===e||"img"===e?n.join(""):t.prepVML(n),this.element=g(n)),this.renderer=t,this.attrSetters={}},add:function(t){var e=this.renderer,n=this.element,i=e.box,i=t?t.element||t:i;return t&&t.inverted&&e.invertChild(n,i),gt&&i.gVis===Ct&&f(n,{visibility:Ct}),i.appendChild(n),this.added=!0,this.alignOnAdd&&!this.deferUpdateTransform&&this.htmlUpdateTransform(),ee(this,"add"),this},toggleChildren:function(t,e){for(var n=t.childNodes,i=n.length;i--;)f(n[i],{visibility:e}),"DIV"===n[i].nodeName&&this.toggleChildren(n[i],e)},attr:function(t,e){var n,r,s,a,l,c=this.element||{},d=c.style,p=c.nodeName,f=this.renderer,m=this.symbolName,v=this.shadows,y=this.attrSetters,b=this;if(i(t)&&u(e)&&(n=t,t={},t[n]=e),i(t))n=t,b="strokeWidth"===n||"stroke-width"===n?this.strokeweight:this[n];else for(n in t)if(r=t[n],l=!1,s=y[n]&&y[n](r,n),s!==!1&&null!==r){if(s!==I&&(r=s),m&&/^(x|y|r|start|end|width|height|innerR|anchorX|anchorY)/.test(n))a||(this.symbolAttr(t),a=!0),l=!0;else if("d"===n){for(r=r||[],this.d=r.join(" "),s=r.length,l=[];s--;)l[s]=o(r[s])?it(10*r[s])-5:"Z"===r[s]?"x":r[s];if(r=l.join(" ")||"x",c.path=r,v)for(s=v.length;s--;)v[s].path=r;l=!0}else"zIndex"===n||"visibility"===n?(gt&&"visibility"===n&&"DIV"===p&&(c.gVis=r,this.toggleChildren(c,r),r===Dt&&(r=null)),r&&(d[n]=r),l=!0):"width"===n||"height"===n?(r=ot(0,r),this[n]=r,this.updateClipping?(this[n]=r,this.updateClipping()):d[n]=r,l=!0):"x"===n||"y"===n?(this[n]=r,d[{x:"left",y:"top"}[n]]=r):"class"===n?c.className=r:"stroke"===n?(r=f.color(r,c,n),n="strokecolor"):"stroke-width"===n||"strokeWidth"===n?(c.stroked=r?!0:!1,n="strokeweight",this[n]=r,o(r)&&(r+=Et)):"dashstyle"===n?((c.getElementsByTagName("stroke")[0]||g(f.prepVML(["<stroke/>"]),null,null,c))[n]=r||"solid",this.dashstyle=r,l=!0):"fill"===n?"SPAN"===p?d.color=r:(c.filled=r!==Nt?!0:!1,r=f.color(r,c,n),n="fillcolor"):"translateX"===n||"translateY"===n||"rotation"===n?(this[n]=r,this.htmlUpdateTransform(),l=!0):"text"===n&&(this.bBox=null,c.innerHTML=r,l=!0);if(v&&"visibility"===n)for(s=v.length;s--;)v[s].style[n]=r;l||(gt?c[n]=r:h(c,n,r))}return b},clip:function(t){var e=this,n=t.members;return n.push(e),e.destroyClip=function(){c(n,e)},e.css(t.getCSS(e.inverted))},css:L.prototype.htmlCss,safeRemoveChild:function(t){t.parentNode&&C(t)},destroy:function(){return this.destroyClip&&this.destroyClip(),L.prototype.destroy.apply(this)},empty:function(){for(var t,e=this.element.childNodes,n=e.length;n--;)t=e[n],t.parentNode.removeChild(t)},on:function(t,e){return this.element["on"+t]=function(){var t=et.event;t.target=t.srcElement,e(t)},this},shadow:function(t,e){var i,r,s,o=[],a=this.element,l=this.renderer,c=a.style,u=a.path;if(u&&"string"!=typeof u.value&&(u="x"),t){for(i=1;3>=i;i++)s=['<shape isShadow="true" strokeweight="',7-2*i,'" filled="false" path="',u,'" coordsize="100,100" style="',a.style.cssText,'" />'],r=g(l.prepVML(s),null,{left:n(c.left)+1,top:n(c.top)+1}),s=['<stroke color="black" opacity="',.05*i,'"/>'],g(l.prepVML(s),null,null,r),e?e.element.appendChild(r):a.parentNode.insertBefore(r,a),o.push(r);this.shadows=o}return this}}),isIE8:pt.indexOf("MSIE 8.0")>-1,init:function(t,e,n){var i;this.alignedObjects=[],i=this.createElement(Tt),t.appendChild(i.element),this.box=i.element,this.boxWrapper=i,this.setSize(e,n,!1),tt.namespaces.hcv||(tt.namespaces.add("hcv","urn:schemas-microsoft-com:vml"),tt.createStyleSheet().cssText="hcv\\:fill, hcv\\:path, hcv\\:sh
8ape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } ")},clipRect:function(e,n,i,r){var s=this.createElement();return t(s,{members:[],left:e,top:n,width:i,height:r,getCSS:function(e){var n=this.top,i=this.left,r=i+this.width,s=n+this.height,n={clip:"rect("+it(e?i:n)+"px,"+it(e?s:r)+"px,"+it(e?r:s)+"px,"+it(e?n:i)+"px)"};return!e&&gt&&t(n,{width:r+Et,height:s+Et}),n},updateClipping:function(){Vt(s.members,function(t){t.css(s.getCSS(t.inverted))})}})},color:function(t,e,n){var i,r=/^rgba/;if(!t||!t.linearGradient)return r.test(t)&&"IMG"!==e.tagName?(i=ge(t),t=["<",n,' opacity="',i.get("a"),'"/>'],g(this.prepVML(t),null,null,e),i.get("rgb")):(e=e.getElementsByTagName(n),e.length&&(e[0].opacity=1),t);var s,o,a,l,c,u,h=t.linearGradient,d=h.x1||h[0]||0,p=h.y1||h[1]||0,f=h.x2||h[2]||0,h=h.y2||h[3]||0;return Vt(t.stops,function(t,e){r.test(t[1])?(i=ge(t[1]),s=i.get("rgb"),o=i.get("a")):(s=t[1],o=1),e?(c=s,u=o):(a=s,l=o)}),"fill"!==n?s:(t=90-180*nt.atan((h-p)/(f-d))/ht,t=['<fill colors="0% ',a,",100% ",c,'" angle="',t,'" opacity="',u,'" o:opacity2="',l,'" type="gradient" focus="100%" method="any" />'],g(this.prepVML(t),null,null,e),void 0)},prepVML:function(t){var e=this.isIE8,t=t.join("");return e?(t=t.replace("/>",' xmlns="urn:schemas-microsoft-com:vml" />'),t=-1===t.indexOf('style="')?t.replace("/>",' style="display:inline-block;behavior:url(#default#VML);" />'):t.replace('style="','style="display:inline-block;behavior:url(#default#VML);')):t=t.replace("<","<hcv:"),t},text:me.prototype.html,path:function(t){return this.createElement("shape").attr({coordsize:"100 100",d:t})},circle:function(t,e,n){return this.symbol("circle").attr({x:t-n,y:e-n,width:2*n,height:2*n})},g:function(t){var e;return t&&(e={className:Pt+t,"class":Pt+t}),this.createElement(Tt).attr(e)},image:function(t,e,n,i,r){var s=this.createElement("img").attr({src:t});return arguments.length>1&&s.css({left:e,top:n,width:i,height:r}),s},rect:function(t,e,n,i,s,o){r(t)&&(e=t.y,n=t.width,i=t.height,o=t.strokeWidth,t=t.x);var a=this.symbol("rect");return a.r=s,a.attr(a.crisp(o,t,e,ot(n,0),ot(i,0)))},invertChild:function(t,e){var i=e.style;f(t,{flip:"x",left:n(i.width)-10,top:n(i.height)-10,rotation:-90})},symbols:{arc:function(t,e,n,i,r){var s=r.start,o=r.end,n=r.r||n||i,i=ct(s),a=ut(s),l=ct(o),c=ut(o),r=r.innerR,u=.07/n,h=r&&.1/r||0;return o-s===0?["x"]:(u>2*ht-o+s?l=-u:h>o-s&&(l=ct(s+h)),["wa",t-n,e-n,t+n,e+n,t+n*i,e+n*a,t+n*l,e+n*c,"at",t-r,e-r,t+r,e+r,t+r*l,e+r*c,t+r*i,e+r*a,"x","e"])},circle:function(t,e,n,i){return["wa",t,e,t+n,e+i,t+n,e+i/2,t+n,e+i/2,"e"]},rect:function(t,e,n,i,r){if(!u(r))return[];var s=t+n,o=e+i,n=at(r.r||0,n,i);return[Lt,t+n,e,$t,s-n,e,"wa",s-2*n,e,s,e+2*n,s-n,e,s,e+n,$t,s,o-n,"wa",s-2*n,o-2*n,s,o,s,o-n,s-n,o,$t,t+n,o,"wa",t,o-2*n,t+2*n,o,t+n,o,t,o-n,$t,t,e+n,"wa",t,e,t+2*n,e+2*n,t,e+n,t+n,e,"x","e"]}}},ve=function(){this.init.apply(this,arguments)},ve.prototype=Qt(me.prototype,qt),M=ve);var ye,be;xt&&(ye=function(){},be=function(){function t(){var t,n=e.length;for(t=0;n>t;t++)e[t]();e=[]}var e=[];return{push:function(n,i){0===e.length&&Ut(i,t),e.push(n)}}}()),M=ve||ye||me,$.prototype.callbacks=[];var xe=function(){};xe.prototype={init:function(t,e,n){var i=t.chart.counters;return this.series=t,this.applyOptions(e,n),this.pointAttr={},t.options.colorByPoint&&(e=t.chart.options.colors,this.options||(this.options={}),this.color=this.options.color=this.color||e[i.color++],i.wrapColor(e.length)),t.chart.pointCount++,this},applyOptions:function(e,n){var i=this.series,r=typeof e;this.config=e,"number"===r||null===e?this.y=e:"number"==typeof e[0]?(this.x=e[0],this.y=e[1]):"object"===r&&"number"!=typeof e.length?(t(this,e),this.options=e,e.dataLabels&&(i._hasPointLabels=!0)):"string"==typeof e[0]&&(this.name=e[0],this.y=e[1]),this.x===I&&(this.x=n===I?i.autoIncrement():n)},destroy:function(){var t,e=this.series,n=e.chart.hoverPoints;e.chart.pointCount--,n&&(this.setState(),c(n,this)),this===e.chart.hoverPoint&&this.onMouseOut(),e.chart.hoverPoints=null,(this.graphic||this.dataLabel)&&(te(this),this.destroyElements()),this.legendItem&&this.series.chart.legend.destroyItem(this);for(t in this)this[t]=null},destroyElements:function(){for(var t,e="graphic,tracker,dataLabel,group,connector,shadowGroup".split(","),n=6;n--;)t=e[n],this[t]&&(this[t]=this[t].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},select:function(t,e){var n=this,i=n.series.chart,t=p(t,!n.selected);n.firePointEvent(t?"select":"unselect",{accumulate:e},function(){n.selected=t,n.setState(t&&"select"),e||Vt(i.getSelectedPoints(),function(t){t.selected&&t!==n&&(t.selected=!1,t.setState(Mt),t.firePointEvent("unselect"))})})},onMouseOver:function(){var t=this.series,e=t.chart,n=e.tooltip,i=e.hoverPoint;i&&i!==this&&i.onMouseOut(),this.firePointEvent("mouseOver"),n&&(!n.shared||t.noSharedTooltip)&&n.refresh(this),this.setState(Ot),e.hoverPoint=this},onMouseOut:function(){this.firePointEvent("mouseOut"),this.setState(),this.series.chart.hoverPoint=null},tooltipFormatter:function(t){var e,n,r,s=this.series,o=s.tooltipOptions,a=String(this.y).split("."),a=a[1]?a[1].length:0,l=t.match(/\{(series|point)\.[a-zA-Z]+\}/g),c=/[\.}]/;for(r in l)n=l[r],i(n)&&n!==t&&(e=1===n.indexOf("point")?this:s,e="{point.y}"===n?(o.valuePrefix||o.yPrefix||"")+v(this.y,p(o.valueDecimals,o.yDecimals,a))+(o.valueSuffix||o.ySuffix||""):e[l[r].split(c)[1]],t=t.replace(l[r],e));return t},update:function(t,e,n){var i,s=this,o=s.series,a=s.graphic,l=o.data,c=l.length,u=o.chart,e=p(e,!0);s.firePointEvent("update",{options:t},function(){for(s.applyOptions(t),r(t)&&(o.getAttribs(),a&&a.attr(s.pointAttr[o.state])),i=0;c>i;i++)if(l[i]===s){o.xData[i]=s.x,o.yData[i]=s.y,o.options.data[i]=t;break}o.isDirty=!0,o.isDirtyData=!0,e&&u.redraw(n)})},remove:function(t,e){var n,i=this,r=i.series,s=r.chart,o=r.data,a=o.length;E(e,s),t=p(t,!0),i.firePointEvent("remove",null,function(){for(n=0;a>n;n++)if(o[n]===i){o.splice(n,1),r.options.data.splice(n,1),r.xData.splice(n,1),r.yData.splice(n,1);break}i.destroy(),r.isDirty=!0,r.isDirtyData=!0,t&&s.redraw()})},firePointEvent:function(t,e,n){var i=this,r=this.series.options;(r.point.events[t]||i.options&&i.options.events&&i.options.events[t])&&this.importEvents(),"click"===t&&r.allowPointSelect&&(n=function(t){i.select(null,t.ctrlKey||t.metaKey||t.shiftKey)}),ee(this,t,e,n)},importEvents:function(){if(!this.hasImportedEvents){var t,e=Qt(this.series.options.point,this.options).events;this.events=e;for(t in e)Zt(this,t,e[t]);this.hasImportedEvents=!0}},setState:function(t){var e=this.plotX,n=this.plotY,i=this.series,r=i.options.states,s=fe[i.type].marker&&i.options.marker,o=s&&!s.enabled,a=s&&s.states[t],l=a&&a.enabled===!1,c=i.stateMarkerGraphic,u=i.chart,h=this.pointAttr,t=t||Mt;t===this.state||this.selected&&"select"!==t||r[t]&&r[t].enabled===!1||t&&(l||o&&!a.enabled)||(this.graphic?(r=this.graphic.symbolName&&h[t].r,this.graphic.attr(Qt(h[t],r?{x:e-r,y:n-r,width:2*r,height:2*r}:{}))):(t&&(c||(r=s.radius,i.stateMarkerGraphic=c=u.renderer.symbol(i.symbol,-r,-r,2*r,2*r).attr(h[t]).add(i.group)),c.translate(e,n)),c&&c[t?"show":"hide"]()),this.state=t)}};var we=function(){};we.prototype={isCartesian:!0,type:"line",pointClass:xe,pointAttrToOptions:{stroke:"lineColor","stroke-width":"lineWidth",fill:"fillColor",r:"radius"},init:function(e,n){var i,r;r=e.series.length,this.chart=e,this.options=n=this.setOptions(n),this.bindAxes(),t(this,{index:r,name:n.name||"Series "+(r+1),state:Mt,pointAttr:{},visible:n.visible!==!1,selected:n.selected===!0}),xt&&(n.animation=!1),r=n.events;for(i in r)Zt(this,i,r[i]);(r&&r.click||n.point&&n.point.events&&n.point.events.click||n.allowPointSelect)&&(e.runTrackerClick=!0),this.getColor(),this.get
8Symbol(),this.setData(n.data,!1)},bindAxes:function(){var t,e=this,n=e.options,i=e.chart;e.isCartesian&&Vt(["xAxis","yAxis"],function(r){Vt(i[r],function(i){t=i.options,(n[r]===t.index||n[r]===I&&0===t.index)&&(i.series.push(e),e[r]=i,i.isDirty=!0)})})},autoIncrement:function(){var t=this.options,e=this.xIncrement,e=p(e,t.pointStart,0);return this.pointInterval=p(this.pointInterval,t.pointInterval,1),this.xIncrement=e+this.pointInterval,e},getSegments:function(){var t,e=-1,n=[],i=this.points,r=i.length;if(r)if(this.options.connectNulls){for(t=r;t--;)null===i[t].y&&i.splice(t,1);n=[i]}else Vt(i,function(t,s){null===t.y?(s>e+1&&n.push(i.slice(e+1,s)),e=s):s===r-1&&n.push(i.slice(e+1,s+1))});this.segments=n},setOptions:function(t){var e=this.chart.options,n=e.plotOptions,i=t.data;return t.data=null,n=Qt(n[this.type],n.series,t),n.data=t.data=i,this.tooltipOptions=Qt(e.tooltip,n.tooltip),n},getColor:function(){var t=this.chart.options.colors,e=this.chart.counters;this.color=this.options.color||t[e.color++]||"#0000ff",e.wrapColor(t.length)},getSymbol:function(){var t=this.options.marker,e=this.chart,n=e.options.symbols,e=e.counters;this.symbol=t.symbol||n[e.symbol++],/^url/.test(this.symbol)&&(t.radius=0),e.wrapSymbol(n.length)},addPoint:function(t,e,n,i){var r=this.data,s=this.graph,o=this.area,a=this.chart,l=this.xData,c=this.yData,u=s&&s.shift||0,h=this.options.data;E(i,a),s&&n&&(s.shift=u+1),o&&(o.shift=u+1,o.isArea=!0),e=p(e,!0),i={series:this},this.pointClass.prototype.applyOptions.apply(i,[t]),l.push(i.x),c.push(4===this.valueCount?[i.open,i.high,i.low,i.close]:i.y),h.push(t),n&&(r[0]?r[0].remove(!1):(r.shift(),l.shift(),c.shift(),h.shift())),this.getAttribs(),this.isDirtyData=this.isDirty=!0,e&&a.redraw()},setData:function(t,e){var n=this.points,i=this.options,r=this.initialColor,a=this.chart,l=null;this.xIncrement=null,this.pointRange=this.xAxis&&this.xAxis.categories&&1||i.pointRange,u(r)&&(a.counters.color=r);var c=[],h=[],d=t?t.length:[],f=4===this.valueCount;if(d>(i.turboThreshold||1e3)){for(r=0;null===l&&d>r;)l=t[r],r++;if(o(l)){for(l=p(i.pointStart,0),i=p(i.pointInterval,1),r=0;d>r;r++)c[r]=l,h[r]=t[r],l+=i;this.xIncrement=l}else if(s(l))if(f)for(r=0;d>r;r++)i=t[r],c[r]=i[0],h[r]=i.slice(1,5);else for(r=0;d>r;r++)i=t[r],c[r]=i[0],h[r]=i[1]}else for(r=0;d>r;r++)i={series:this},this.pointClass.prototype.applyOptions.apply(i,[t[r]]),c[r]=i.x,h[r]=f?[i.open,i.high,i.low,i.close]:i.y;for(this.data=[],this.options.data=t,this.xData=c,this.yData=h,r=n&&n.length||0;r--;)n[r]&&n[r].destroy&&n[r].destroy();this.isDirty=this.isDirtyData=a.isDirtyBox=!0,p(e,!0)&&a.redraw(!1)},remove:function(t,e){var n=this,i=n.chart,t=p(t,!0);n.isRemoving||(n.isRemoving=!0,ee(n,"remove",null,function(){n.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,t&&i.redraw(e)})),n.isRemoving=!1},processData:function(t){var e,n,i=this.xData,r=this.yData,s=i.length,o=0,a=s,l=this.xAxis,c=this.options,u=c.cropThreshold;if(this.isCartesian&&!this.isDirty&&!l.isDirty&&!this.yAxis.isDirty&&!t)return!1;if(!u||s>u||this.forceCrop)if(t=l.getExtremes(),l=t.min,u=t.max,i[s-1]<l||i[0]>u)i=[],r=[];else if(i[0]<l||i[s-1]>u){for(t=0;s>t;t++)if(i[t]>=l){o=ot(0,t-1);break}for(;s>t;t++)if(i[t]>u){a=t+1;break}i=i.slice(o,a),r=r.slice(o,a),e=!0}for(t=i.length-1;t>0;t--)s=i[t]-i[t-1],(n===I||n>s)&&(n=s);this.cropped=e,this.cropStart=o,this.processedXData=i,this.processedYData=r,null===c.pointRange&&(this.pointRange=n||1),this.closestPointRange=n},generatePoints:function(){var t,e,n,i,r=this.options.data,s=this.data,o=this.processedXData,a=this.processedYData,l=this.pointClass,c=o.length,u=this.cropStart||0,h=this.hasGroupedData,p=[];for(s||h||(s=[],s.length=r.length,s=this.data=s),i=0;c>i;i++)e=u+i,h?p[i]=(new l).init(this,[o[i]].concat(d(a[i]))):(s[e]?n=s[e]:s[e]=n=(new l).init(this,r[e],o[i]),p[i]=n);if(s&&(c!==(t=s.length)||h))for(i=0;t>i;i++)i===u&&!h&&(i+=c),s[i]&&s[i].destroyElements();this.data=s,this.points=p},translate:function(){this.processedXData||this.processData(),this.generatePoints();for(var t,e=this.chart,n=this.options,i=n.stacking,r=this.xAxis,s=r.categories,o=this.yAxis,a=this.points,l=a.length,c=!!this.modifyValue,h=o.series,d=h.length;d--;)if(h[d].visible){d===this.index&&(t=!0);break}for(d=0;l>d;d++){var h=a[d],p=h.x,f=h.y,g=h.low,m=o.stacks[(f<n.threshold?"-":"")+this.stackKey];h.plotX=it(10*r.translate(p,0,0,0,1))/10,i&&this.visible&&m&&m[p]&&(g=m[p],p=g.total,g.cum=g=g.cum-f,f=g+f,t&&(g=n.threshold),"percent"===i&&(g=p?100*g/p:0,f=p?100*f/p:0),h.percentage=p?100*h.y/p:0,h.stackTotal=p),h.yBottom=u(g)?o.translate(g,0,1,0,1):null,c&&(f=this.modifyValue(f,h)),null!==f&&(h.plotY=it(10*o.translate(f,0,1,0,1))/10),h.clientX=e.inverted?e.plotHeight-h.plotX:h.plotX,h.category=s&&s[h.x]!==I?s[h.x]:h.x}this.getSegments()},setTooltipPoints:function(t){var e,n,i=this.chart,r=i.inverted,s=[],i=it((r?i.plotTop:i.plotLeft)+i.plotSizeX);e=this.xAxis;var o,a,l=[];
8if(this.options.enableMouseTracking!==!1){for(t&&(this.tooltipPoints=null),Vt(this.segments||this.points,function(t){s=s.concat(t)}),e&&e.reversed&&(s=s.reverse()),t=s.length,a=0;t>a;a++)for(o=s[a],e=s[a-1]?s[a-1]._high+1:0,n=o._high=s[a+1]?rt((o.plotX+(s[a+1]?s[a+1].plotX:i))/2):i;n>=e;)l[r?i-e++:e++]=o;this.tooltipPoints=l}},tooltipHeaderFormatter:function(t){var e=this.tooltipOptions,n=e.xDateFormat||"%A, %b %e, %Y",i=this.xAxis;return e.headerFormat.replace("{point.key}",i&&"datetime"===i.options.type?H(n,t):t).replace("{series.name}",this.name).replace("{series.color}",this.color)},onMouseOver:function(){var t=this.chart,e=t.hoverSeries;(wt||!t.mouseIsDown)&&(e&&e!==this&&e.onMouseOut(),this.options.events.mouseOver&&ee(this,"mouseOver"),this.setState(Ot),t.hoverSeries=this)},onMouseOut:function(){var t=this.options,e=this.chart,n=e.tooltip,i=e.hoverPoint;i&&i.onMouseOut(),this&&t.events.mouseOut&&ee(this,"mouseOut"),n&&!t.stickyTracking&&!n.shared&&n.hide(),this.setState(),e.hoverSeries=null},animate:function(t){var e=this.chart,n=this.clipRect,i=this.options.animation;i&&!r(i)&&(i={}),t?n.isAnimating||(n.attr("width",0),n.isAnimating=!0):(n.animate({width:e.plotSizeX},i),this.animate=null)},drawPoints:function(){var e,n,i,r,s,o,a,l,c,u=this.points,h=this.chart;if(this.options.marker.enabled)for(r=u.length;r--;)s=u[r],n=s.plotX,i=s.plotY,c=s.graphic,i===I||isNaN(i)||(e=s.pointAttr[s.selected?"select":Mt],o=e.r,a=p(s.marker&&s.marker.symbol,this.symbol),l=0===a.indexOf("url"),c?c.animate(t({x:n-o,y:i-o},c.symbolName?{width:2*o,height:2*o}:{})):(o>0||l)&&(s.graphic=h.renderer.symbol(a,n-o,i-o,2*o,2*o).attr(e).add(this.group)))},convertAttribs:function(t,e,n,i){var r,s,o=this.pointAttrToOptions,a={},t=t||{},e=e||{},n=n||{},i=i||{};for(r in o)s=o[r],a[r]=p(t[s],e[r],n[r],i[r]);return a},getAttribs:function(){var t,e,n,i=this,r=fe[i.type].marker?i.options.marker:i.options,s=r.states,o=s[Ot],a=i.color,l={stroke:a,fill:a},c=i.points,h=[],d=i.pointAttrToOptions;for(i.options.marker?(o.radius=o.radius||r.radius+2,o.lineWidth=o.lineWidth||r.lineWidth+1):o.color=o.color||ge(o.color||a).brighten(o.brightness).get(),h[Mt]=i.convertAttribs(r,l),Vt([Ot,"select"],function(t){h[t]=i.convertAttribs(s[t],h[Mt])}),i.pointAttr=h,a=c.length;a--;){if(l=c[a],(r=l.options&&l.options.marker||l.options)&&r.enabled===!1&&(r.radius=0),t=!1,l.options)for(n in d)u(r[d[n]])&&(t=!0);t?(e=[],s=r.states||{},t=s[Ot]=s[Ot]||{},i.options.marker||(t.color=ge(t.color||l.options.color).brighten(t.brightness||o.brightness).get()),e[Mt]=i.convertAttribs(r,h[Mt]),e[Ot]=i.convertAttribs(s[Ot],h[Ot],e[Mt]),e.select=i.convertAttribs(s.select,h.select,e[Mt])):e=h,l.pointAttr=e}},destroy:function(){var t,e,n,i,r,s=this,o=s.chart,a=s.clipRect,l=/AppleWebKit\/533/.test(pt),u=s.data||[];for(ee(s,"destroy"),te(s),Vt(["xAxis","yAxis"],function(t){(r=s[t])&&(c(r.series,s),r.isDirty=!0)}),s.legendItem&&s.chart.legend.destroyItem(s),e=u.length;e--;)(n=u[e])&&n.destroy&&n.destroy();s.points=null,a&&a!==o.clipRect&&(s.clipRect=a.destroy()),Vt(["area","graph","dataLabelsGroup","group","tracker"],function(e){s[e]&&(t=l&&"group"===e?"hide":"destroy",s[e][t]())}),o.hoverSeries===s&&(o.hoverSeries=null),c(o.series,s);for(i in s)delete s[i]},drawDataLabels:function(){var t=this,e=t.options,i=e.dataLabels;if(i.enabled||t._hasPointLabels){var r,s,o,a,l,c,h=t.points,d=t.dataLabelsGroup,f=t.chart,g=t.xAxis,g=g?g.left:f.plotLeft,m=t.yAxis,m=m?m.top:f.plotTop,v=f.renderer,y=f.inverted,b=t.type,x=e.stacking,w="column"===b||"bar"===b,k=null===i.verticalAlign,_=null===i.y;w&&(x?(k&&(i=Qt(i,{verticalAlign:"middle"})),_&&(i=Qt(i,{y:{top:14,middle:4,bottom:-6}[i.verticalAlign]}))):k&&(i=Qt(i,{verticalAlign:"top"}))),d?d.translate(g,m):d=t.dataLabelsGroup=v.g("data-labels").attr({visibility:t.visible?Dt:Ct,zIndex:6}).translate(g,m).add(),a=i,Vt(h,function(h){if(c=h.dataLabel,i=a,(o=h.options)&&o.dataLabels&&(i=Qt(i,o.dataLabels)),c&&t.isCartesian&&!f.isInsidePlot(h.plotX,h.plotY))h.dataLabel=c.destroy();else if(i.enabled){l=i.formatter.call(h.getLabelConfig(),i);var g=h.barX,m=g&&g+h.barW/2||h.plotX||-999,k=p(h.plotY,-999),T=i.align,S=_?h.y>=0?-6:12:i.y;r=(y?f.plotWidth-k:m)+i.x,s=(y?f.plotHeight-m:k)+S,"column"===b&&(r+={left:-1,right:1}[T]*h.barW/2||0),!x&&y&&h.y<0&&(T="right",r-=10),i.style.color=p(i.color,i.style.color,t.color,"black"),c?(y&&!i.y&&(s=s+.9*n(c.styles.lineHeight)-c.getBBox().height/2),
9c.attr({text:l}).animate({x:r,y:s})):u(l)&&(c=h.dataLabel=v.text(l,r,s,i.useHTML).attr({align:T,rotation:i.rotation,zIndex:1}).css(i.style).add(d),y&&!i.y&&c.attr({y:s+.9*n(c.styles.lineHeight)-c.getBBox().height/2})),w&&e.stacking&&c&&(m=h.barY,k=h.barW,h=h.barH,c.align(i,null,{x:y?f.plotWidth-m-h:g,y:y?f.plotHeight-g-k:m,width:y?h:k,height:y?k:h}))}})}},drawGraph:function(){var t,e,n=this,i=n.options,r=n.graph,s=[],o=n.area,a=n.group,l=i.lineColor||n.color,c=i.lineWidth,u=i.dashStyle,h=n.chart.renderer,d=n.yAxis.getThreshold(i.threshold),f=/^area/.test(n.type),g=[],m=[];Vt(n.segments,function(t){if(e=[],Vt(t,function(r,s){n.getPointSpline?e.push.apply(e,n.getPointSpline(t,r,s)):(e.push(s?$t:Lt),s&&i.step&&e.push(r.plotX,t[s-1].plotY),e.push(r.plotX,r.plotY))}),t.length>
91?s=s.concat(e):g.push(t[0]),f){var r,o=[],a=e.length;for(r=0;a>r;r++)o.push(e[r]);if(3===a&&o.push($t,e[1],e[2]),i.stacking&&"areaspline"!==n.type)for(r=t.length-1;r>=0;r--)r<t.length-1&&i.step&&o.push(t[r+1].plotX,t[r].yBottom),o.push(t[r].plotX,t[r].yBottom);else o.push($t,t[t.length-1].plotX,d,$t,t[0].plotX,d);m=m.concat(o)}}),n.graphPath=s,n.singlePoints=g,f&&(t=p(i.fillColor,ge(n.color).setOpacity(i.fillOpacity||.75).get()),o?o.animate({d:m}):n.area=n.chart.renderer.path(m).attr({fill:t}).add(a)),r?(ie(r),r.animate({d:s})):c&&(r={stroke:l,"stroke-width":c},u&&(r.dashstyle=u),n.graph=h.path(s).attr(r).add(a).shadow(i.shadow))},render:function(){var t,e,n=this,i=n.chart,r=n.options,s=r.clip!==!1,o=r.animation,a=o&&n.animate,o=a?o&&o.duration||500:0,l=n.clipRect,c=i.renderer;l||(l=n.clipRect=!i.hasRendered&&i.clipRect?i.clipRect:c.clipRect(0,0,i.plotSizeX,i.plotSizeY+1),i.clipRect)||(i.clipRect=l),n.group||(t=n.group=c.g("series"),i.inverted&&(e=function(){t.attr({width:i.plotWidth,height:i.plotHeight}).invert()},e(),Zt(i,"resize",e),Zt(n,"destroy",function(){te(i,"resize",e)})),s&&t.clip(l),t.attr({visibility:n.visible?Dt:Ct,zIndex:r.zIndex}).translate(n.xAxis.left,n.yAxis.top).add(i.seriesGroup)),n.drawDataLabels(),a&&n.animate(!0),n.getAttribs(),n.drawGraph&&n.drawGraph(),n.drawPoints(),n.options.enableMouseTracking!==!1&&n.drawTracker(),a&&n.animate(),setTimeout(function(){l.isAnimating=!1,(t=n.group)&&l!==i.clipRect&&l.renderer&&(s&&t.clip(n.clipRect=i.clipRect),l.destroy())},o),n.isDirty=n.isDirtyData=!1},redraw:function(){var t=this.chart,e=this.isDirtyData,n=this.group;n&&(t.inverted&&n.attr({width:t.plotWidth,height:t.plotHeight}),n.animate({translateX:this.xAxis.left,translateY:this.yAxis.top})),this.translate(),this.setTooltipPoints(!0),this.render(),e&&ee(this,"updatedData")},setState:function(t){var e=this.options,n=this.graph,i=e.states,e=e.lineWidth,t=t||Mt;this.state!==t&&(this.state=t,i[t]&&i[t].enabled===!1||(t&&(e=i[t].lineWidth||e+1),n&&!n.dashstyle&&n.attr({"stroke-width":e},t?0:500)))},setVisible:function(t,e){var n,i=this.chart,r=this.legendItem,s=this.group,o=this.tracker,a=this.dataLabelsGroup,l=this.points,c=i.options.chart.ignoreHiddenSeries;if(n=this.visible,n=(this.visible=t=t===I?!n:t)?"show":"hide",s&&s[n](),o)o[n]();else if(l)for(s=l.length;s--;)o=l[s],o.tracker&&o.tracker[n]();a&&a[n](),r&&i.legend.colorizeItem(this,t),this.isDirty=!0,this.options.stacking&&Vt(i.series,function(t){t.options.stacking&&t.visible&&(t.isDirty=!0)}),c&&(i.isDirtyBox=!0),e!==!1&&i.redraw(),ee(this,n)},show:function(){this.setVisible(!0)},hide:function(){this.setVisible(!1)},select:function(t){this.selected=t=t===I?!this.selected:t,this.checkbox&&(this.checkbox.checked=t),ee(this,t?"select":"unselect")},drawTracker:function(){var t,e=this,n=e.options,i=[].concat(e.graphPath),r=i.length,s=e.chart,o=s.renderer,a=s.options.tooltip.snap,l=e.tracker,c=n.cursor,c=c&&{cursor:c},u=e.singlePoints;if(r)for(t=r+1;t--;)i[t]===Lt&&i.splice(t+1,0,i[t+1]-a,i[t+2],$t),(t&&i[t]===Lt||t===r)&&i.splice(t,0,$t,i[t-2]+a,i[t-1]);for(t=0;t<u.length;t++)r=u[t],i.push(Lt,r.plotX-a,r.plotY,$t,r.plotX+a,r.plotY);l?l.attr({d:i}):(l=o.g().clip(s.clipRect).add(s.trackerGroup),e.tracker=o.path(i).attr({isTracker:!0,stroke:It,fill:Nt,"stroke-linejoin":"bevel","stroke-width":n.lineWidth+2*a,visibility:e.visible?Dt:Ct,zIndex:n.zIndex||1}).on(wt?"touchstart":"mouseover",function(){s.hoverSeries!==e&&e.onMouseOver()}).on("mouseout",function(){n.stickyTracking||e.onMouseOut()}).css(c).add(l))}},qt=m(we),re.line=qt,qt=m(we,{type:"area"}),re.area=qt,qt=m(we,{type:"spline",getPointSpline:function(t,e,n){var i,r,s,o,a=e.plotX,l=e.plotY,c=t[n-1],u=t[n+1];if(n&&n<t.length-1){t=c.plotY,s=u.plotX;var h,u=u.plotY;i=(1.5*a+c.plotX)/2.5,r=(1.5*l+t)/2.5,s=(1.5*a+s)/2.5,o=(1.5*l+u)/2.5,h=(o-r)*(s-a)/(s-i)+l-o,r+=h,o+=h,r>t&&r>l?(r=ot(t,l),o=2*l-r):t>r&&l>r&&(r=at(t,l),o=2*l-r),o>u&&o>l?(o=ot(u,l),r=2*l-o):u>o&&l>o&&(o=at(u,l),r=2*l-o),e.rightContX=s,e.rightContY=o}return n?(e=["C",c.rightContX||c.plotX,c.rightContY||c.plotY,i||a,r||l,a,l],c.rightContX=c.right
9ContY=null):e=[Lt,a,l],e}}),re.spline=qt,qt=m(qt,{type:"areaspline"}),re.areaspline=qt;var ke=m(we,{type:"column",tooltipOutsidePlot:!0,pointAttrToOptions:{stroke:"borderColor","stroke-width":"borderWidth",fill:"color",r:"borderRadius"},init:function(){we.prototype.init.apply(this,arguments);var t=this,e=t.chart;e.hasRendered&&Vt(e.series,function(e){e.type===t.type&&(e.isDirty=!0)})},translate:function(){var e,n,i=this,r=i.chart,s=i.options,o=s.stacking,a=s.borderWidth,l=0,c=i.xAxis,h=c.reversed,d={};we.prototype.translate.apply(i),Vt(r.series,function(t){t.type===i.type&&t.visible&&i.options.group===t.options.group&&(t.options.stacking?(e=t.stackKey,d[e]===I&&(d[e]=l++),n=d[e]):n=l++,t.columnIndex=n)});var f=i.points,c=lt(c.translationSlope)*(c.ordinalSlope||c.closestPointRange||1),g=c*s.groupPadding,m=(c-2*g)/l,v=s.pointWidth,y=u(v)?(m-v)/2:m*s.pointPadding,b=st(ot(p(v,m-2*y),1)),x=y+(g+((h?l-i.columnIndex:i.columnIndex)||0)*m-c/2)*(h?-1:1),w=i.yAxis.getThreshold(s.threshold),k=p(s.minPointLength,5);Vt(f,function(e){var n=e.plotY,l=e.yBottom||w,c=e.plotX+x,u=st(at(n,l)),h=st(ot(n,l)-u),d=i.yAxis.stacks[(e.y<0?"-":"")+i.stackKey];o&&i.visible&&d&&d[e.x]&&d[e.x].setOffset(x,b),lt(h)<k&&k&&(h=k,u=lt(u-w)>k?l-k:w-(w>=n?k:0)),t(e,{barX:c,barY:u,barW:b,barH:h}),e.shapeType="rect",n=t(r.renderer.Element.prototype.crisp.apply({},[a,c,u,b,h]),{r:s.borderRadius}),a%2&&(n.y-=1,n.height+=1),e.shapeArgs=n,e.trackerArgs=lt(h)<3&&Qt(e.shapeArgs,{height:6,y:u-3})})},getSymbol:function(){},drawGraph:function(){},drawPoints:function(){var t,e,n=this,i=n.options,r=n.chart.renderer;Vt(n.points,function(s){var o=s.plotY;o===I||isNaN(o)||null===s.y||(t=s.graphic,e=s.shapeArgs,t?(ie(t),t.animate(e)):s.graphic=t=r[s.shapeType](e).attr(s.pointAttr[s.selected?"select":Mt]).add(n.group).shadow(i.shadow))})},drawTracker:function(){var t,e,n,i,r=this,s=r.chart,o=s.renderer,a=+new Date,l=r.options,c=l.cursor,u=c&&{cursor:c};r.isCartesian&&(n=o.g().clip(s.clipRect).add(s.trackerGroup)),Vt(r.points,function(c){e=c.tracker,t=c.trackerArgs||c.shapeArgs,delete t.strokeWidth,null!==c.y&&(e?e.attr(t):c.tracker=o[c.shapeType](t).attr({isTracker:a,fill:It,visibility:r.visible?Dt:Ct,zIndex:l.zIndex||1}).on(wt?"touchstart":"mouseover",function(t){i=t.relatedTarget||t.fromElement,s.hoverSeries!==r&&h(i,"isTracker")!==a&&r.onMouseOver(),c.onMouseOver()}).on("mouseout",function(t){l.stickyTracking||(i=t.relatedTarget||t.toElement,h(i,"isTracker")===a)||r.onMouseOut()}).css(u).add(c.group||n))})},animate:function(t){var e=this,n=e.points,i=e.options;t||(Vt(n,function(t){var n=t.graphic,t=t.shapeArgs,r=e.yAxis,s=i.threshold;n&&(n.attr({height:0,y:u(s)?r.getThreshold(s):r.translate(r.getExtremes().min,0,1,0,1)}),n.animate({height:t.height,y:t.y},i.animation))}),e.animate=null)},remove:function(){var t=this,e=t.chart;e.hasRendered&&Vt(e.series,function(e){e.type===t.type&&(e.isDirty=!0)}),we.prototype.remove.apply(t,arguments)}});re.column=ke,qt=m(ke,{type:"bar",init:function(){this.inverted=!0,ke.prototype.init.apply(this,arguments)}}),re.bar=qt,qt=m(we,{type:"scatter",translate:function(){var t=this;we.prototype.translate.apply(t),Vt(t.points,function(e){e.shapeType="circle",e.shapeArgs={x:e.plotX,y:e.plotY,r:t.chart.options.tooltip.snap}})},drawTracker:function(){for(var t,e=this,n=e.options.cursor,n=n&&{cursor:n},i=e.points,r=i.length;r--;)(t=i[r].graphic)&&(t.element._index=r);e._hasTracking?e._hasTracking=!0:e.group.on(wt?"touchstart":"mouseover",function(t){e.onMouseOver(),i[t.target._index].onMouseOver()}).on("mouseout",function(){e.options.stickyTracking||e.onMouseOut()}).css(n)}}),re.scatter=qt,qt=m(xe,{init:function(){xe.prototype.init.apply(this,arguments);var e,n=this;return t(n,{visible:n.visible!==!1,name:p(n.name,"Slice")}),e=function(){n.slice()},Zt(n,"select",e),Zt(n,"unselect",e),n},setVisible:function(t){var e,n=this.series.chart,i=this.tracker,r=this.dataLabel,s=this.connector,o=this.shadowGroup;e=(this.visible=t=t===I?!this.visible:t)?"show":"hide",this.group[e](),i&&i[e](),r&&r[e](),s&&s[e](),o&&o[e](),this.legendItem&&n.legend.colorizeItem(this,t)},slice:function(t,e,n){var i=this.series.chart,r=this.slicedTranslation;E(n,i),p(e,!0),t=this.sliced=u(t)?t:!this.sliced,t={translateX:t?r[0]:i.plotLeft,translateY:t?r[1]:i.plotTop},this.group.animate(t),this.shadowGroup&&this.shadowGroup.animate(t)}
9}),qt=m(we,{type:"pie",isCartesian:!1,pointClass:qt,pointAttrToOptions:{stroke:"borderColor","stroke-width":"borderWidth",fill:"color"},getColor:function(){this.initialColor=this.chart.counters.color},animate:function(){var t=this;Vt(t.points,function(e){var n=e.graphic,e=e.shapeArgs,i=-ht/2;n&&(n.attr({r:0,start:i,end:i}),n.animate({r:e.r,start:e.start,end:e.end},t.options.animation))}),t.animate=null},setData:function(){we.prototype.setData.apply(this,arguments),this.processData(),this.generatePoints()},translate:function(){this.generatePoints();var t,e,i,r,s,o,a,l=0,c=-.25,u=this.options,h=u.slicedOffset,d=h+u.borderWidth,p=u.center.concat([u.size,u.innerSize||0]),f=this.chart,g=f.plotWidth,m=f.plotHeight,v=this.points,y=2*ht,b=at(g,m),x=u.dataLabels.distance,p=Kt(p,function(t,e){return(s=/%$/.test(t))?[g,m,b,b][e]*n(t)/100:t});this.getX=function(t,e){return i=nt.asin((t-p[1])/(p[2]/2+x)),p[0]+(e?-1:1)*ct(i)*(p[2]/2+x)},this.center=p,Vt(v,function(t){l+=t.y}),Vt(v,function(n){r=l?n.y/l:0,t=it(c*y*1e3)/1e3,c+=r,e=it(c*y*1e3)/1e3,n.shapeType="arc",n.shapeArgs={x:p[0],y:p[1],r:p[2]/2,innerR:p[3]/2,start:t,end:e},i=(e+t)/2,n.slicedTranslation=Kt([ct(i)*h+f.plotLeft,ut(i)*h+f.plotTop],it),o=ct(i)*p[2]/2,a=ut(i)*p[2]/2,n.tooltipPos=[p[0]+.7*o,p[1]+.7*a],n.labelPos=[p[0]+o+ct(i)*x,p[1]+a+ut(i)*x,p[0]+o+ct(i)*d,p[1]+a+ut(i)*d,p[0]+o,p[1]+a,0>x?"center":y/4>i?"left":"right",i],n.percentage=100*r,n.total=l}),this.setTooltipPoints()},render:function(){this.getAttribs(),this.drawPoints(),this.options.enableMouseTracking!==!1&&this.drawTracker(),this.drawDataLabels(),this.options.animation&&this.animate&&this.animate(),this.isDirty=!1},drawPoints:function(){var e,n,i,r,s,o=this.chart,a=o.renderer,l=this.options.shadow;Vt(this.points,function(c){n=c.graphic,s=c.shapeArgs,i=c.group,r=c.shadowGroup,l&&!r&&(r=c.shadowGroup=a.g("shadow").attr({zIndex:4}).add()),i||(i=c.group=a.g("point").attr({zIndex:5}).add()),e=c.sliced?c.slicedTranslation:[o.plotLeft,o.plotTop],i.translate(e[0],e[1]),r&&r.translate(e[0],e[1]),n?n.animate(s):c.graphic=a.arc(s).attr(t(c.pointAttr[Mt],{"stroke-linejoin":"round"})).add(c.group).shadow(l,r),c.visible===!1&&c.setVisible(!1)})},drawDataLabels:function(){var t,e,i,r,s,o,a,l,c=this.data,u=this.chart,h=this.options.dataLabels,d=p(h.connectorPadding,10),f=p(h.connectorWidth,1),g=p(h.softConnector,!0),m=h.distance,v=this.center,y=v[2]/2,v=v[1],b=m>0,x=[[],[]],w=2;if(h.enabled)for(we.prototype.drawDataLabels.apply(this),Vt(c,function(t){t.dataLabel&&x[t.labelPos[7]<ht/2?0:1].push(t)}),x[1].reverse(),a=function(t,e){return e.y-t.y},c=x[0][0]&&x[0][0].dataLabel&&n(x[0][0].dataLabel.styles.lineHeight);w--;){var k,_=[],T=[],S=x[w],A=S.length;for(l=v-y-m;v+y+m>=l;l+=c)_.push(l);if(o=_.length,A>o){for(i=[].concat(S),i.sort(a),l=A;l--;)i[l].rank=l;for(l=A;l--;)S[l].rank>=o&&S.splice(l,1);A=S.length}for(l=0;A>l;l++){for(t=S[l],i=t.labelPos,t=9999,s=0;o>s;s++)e=lt(_[s]-i[1]),t>e&&(t=e,k=s);if(l>k&&null!==_[l])k=l;else for(A-l+k>o&&null!==_[l]&&(k=o-A+l);null===_[k];)k++;T.push({i:k,y:_[k]}),_[k]=null}for(T.sort(a),l=0;A>l;l++)t=S[l],i=t.labelPos,e=t.dataLabel,s=T.pop(),r=i[1],o=t.visible===!1?Ct:Dt,k=s.i,s=s.y,(r>s&&null!==_[k+1]||s>r&&null!==_[k-1])&&(s=r),r=this.getX(0===k||k===_.length-1?r:s,w),e.attr({visibility:o,align:i[6]})[e.moved?"animate":"attr"]({x:r+h.x+({left:d,right:-d}[i[6]]||0),y:s+h.y}),e.moved=!0,b&&f&&(e=t.connector,i=g?[Lt,r+("left"===i[6]?5:-5),s,"C",r,s,2*i[2]-i[4],2*i[3]-i[5],i[2],i[3],$t,i[4],i[5]]:[Lt,r+("left"===i[6]?5:-5),s,$t,i[2],i[3],$t,i[4],i[5]],e?(e.animate({d:i}),e.attr("visibility",o)):t.connector=e=this.chart.renderer.path(i).attr({"stroke-width":f,stroke:h.connectorColor||t.color||"#606060",visibility:o,zIndex:3}).translate(u.plotLeft,u.plotTop).add())}},drawTracker:ke.prototype.drawTracker,getSymbol:function(){}}),re.pie=qt,t(Highcharts,{Chart:$,dateFormat:H,pathAnim:W,getOptions:function(){return F},hasBidiBug:bt,numberFormat:v,Point:xe,Color:ge,Renderer:M,SVGRenderer:me,VMLRenderer:ve,CanVGRenderer:ye,seriesTypes:re,setOptions:function(t){return le=Qt(le,t.xAxis),ce=Qt(ce,t.yAxis),t.xAxis=t.yAxis=I,F=Qt(F,t),N(),F},Series:we,addEvent:Zt,removeEvent:te,createElement:g,discardElement:C,css:f,each:Vt,extend:t,map:Kt,merge:Qt,pick:p,splat:d,extendClass:m,placeBox:k,product:"Highcharts",ver
vendor: 3,973 bytes, line 9
9sion:"2.2.0"})}(),!function(t){"use strict";var e=function(e,n){this.options=n,this.$element=t(e).delegate('[data-dismiss="modal"]',"click.dismiss.modal",t.proxy(this.hide,this)),this.options.remote&&this.$element.find(".modal-body").load(this.options.remote)};e.prototype={constructor:e,toggle:function(){return this[this.isShown?"hide":"show"]()},show:function(){var e=this,n=t.Event("show");this.$element.trigger(n),this.isShown||n.isDefaultPrevented()||(this.isShown=!0,this.escape(),this.backdrop(function(){var n=t.support.transition&&e.$element.hasClass("fade");e.$element.parent().length||e.$element.appendTo(document.body),e.$element.show(),n&&e.$element[0].offsetWidth,e.$element.addClass("in").attr("aria-hidden",!1),e.enforceFocus(),n?e.$element.one(t.support.transition.end,function(){e.$element.focus().trigger("shown")}):e.$element.focus().trigger("shown")}))},hide:function(e){e&&e.preventDefault();e=t.Event("hide"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,this.escape(),t(document).off("focusin.modal"),this.$element.removeClass("in").attr("aria-hidden",!0),t.support.transition&&this.$element.hasClass("fade")?this.hideWithTransition():this.hideModal())},enforceFocus:function(){var e=this;t(document).on("focusin.modal",function(t){e.$element[0]===t.target||e.$element.has(t.target).length||e.$element.focus()})},escape:function(){var t=this;this.isShown&&this.options.keyboard?this.$element.on("keyup.dismiss.modal",function(e){27==e.which&&t.hide()}):this.isShown||this.$element.off("keyup.dismiss.modal")},hideWithTransition:function(){var e=this,n=setTimeout(function(){e.$element.off(t.support.transition.end),e.hideModal()},500);this.$element.one(t.support.transition.end,function(){clearTimeout(n),e.hideModal()})},hideModal:function(){var t=this;this.$element.hide(),this.backdrop(function(){t.removeBackdrop(),t.$element.trigger("hidden")})},removeBackdrop:function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},backdrop:function(e){var n=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var i=t.support.transition&&n;if(this.$backdrop=t('<div class="modal-backdrop '+n+'" />').appendTo(document.body),this.$backdrop.click("static"==this.options.backdrop?t.proxy(this.$element[0].focus,this.$element[0]):t.proxy(this.hide,this)),i&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return;i?this.$backdrop.one(t.support.transition.end,e):e()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(t.support.transition.end,e):e()):e&&e()}};var n=t.fn.modal;t.fn.modal=function(n){return this.each(function(){var i=t(this),r=i.data("modal"),s=t.extend({},t.fn.modal.defaults,i.data(),"object"==typeof n&&n);r||i.data("modal",r=new e(this,s)),"string"==typeof n?r[n]():s.show&&r.show()})},t.fn.modal.defaults={backdrop:!0,keyboard:!0,show:!0},t.fn.modal.Constructor=e,t.fn.modal.noConflict=function(){return t.fn.modal=n,this},t(document).on("click.modal.data-api",'[data-toggle="modal"]',function(e){var n=t(this),i=n.attr("href"),r=t(n.attr("data-target")||i&&i.replace(/.*(?=#[^\s]+$)/,"")),s=r.data("modal")?"toggle":t.extend({remote:!/#/.test(i)&&i},r.data(),n.data());e.preventDefault(),r.modal(s).one("hide",function(){n.focus()})})}(window.jQuery),!function(t){"use strict";function e(){t(".dropdown-backdrop").remove(),t(i).each(function(){n(t(this)).removeClass("open")})}function n(e){var n,i=e.attr("data-target");return i||(i=e.attr("href"),i=i&&/#/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,"")),n=i&&t(i),n&&n.length||(n=e.parent()),n}var i="[data-toggle=dropdown]",r=function(e){var n=t(e).on("click.dropdown.data-api",this.toggle);t("html").on("click.dropdown.data-api",function(){n.parent().removeClass("open")})};r.prototype={constructor:r,toggle:function(i){var r,s,o=t(this);if(!o.is(".disabled, :disabled"))return r=n(o),s=r.hasClass("open"),e(
9),s||("ontouchstart"in document.documentElement&&t('<div class="dropdown-backdrop"/>').insertBefore(t(this)).on("click",e),r.toggleClass("open")),o.focus(),!1},keydown:function(e){var r,s,o,a,l;if(/(38|40|27)/.test(e.keyCode)&&(r=t(this),e.preventDefault(),e.stopPropagation(),!r.is(".disabled, :disabled"))){if(o=n(r),a=o.hasClass("open"),!a||a&&27==e.keyCode)return 27==e.which&&o.find(i).focus(),r.click();s=t("[role=menu] li:not(.divider):visible a",o),s.length&&(l=s.index(s.filter(":focus")),38==e.keyCode&&l>0&&l--,40==e.keyCode&&l<s.length-1&&l++,~l||(l=0),s.eq(l).focus())}}};var s=t.fn.dropdown;t.fn.dropdown=function(e){return this.each(function(){var n=t(this),i=n.data("dropdown");i||n.data("dropdown",i=new r(this)),"string"==typeof e&&i[e].call(n)})},t.fn.dropdown.Constructor=r,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=s,this},t(document).on("click.dropdown.data-api",e).on("click.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.dropdown.data-api",i,r.prototype.toggle).on("keydown.dropdown.data-api",i+", [role=menu]",r.prototype.keydown)}(window.jQuery),!function(t){"use strict";var e=function(e){this.element=t(e)};e.prototype={constructor:e,show:function(){var e,n,i,r=this.element,s=r.closest("ul:not(.dropdown-menu)"),o=r.attr("data-target");o||(o=r.attr("href"),o=o&&o.replace(/.*(?=#[^\s]*$)/,"")),r.parent("li").hasClass("active")||(e=s.find(".active:last a")[0],i=t.Event("show",{relatedTarget:e}),r.trigger(i),i.isDefaultPrevented()||(n=t(o),this.activate(r.parent("li"),s),this.activate(n,n.parent(),function(){r.trigger({type:"shown",relatedTarget:e})})))},activate:function(e,n,i){function r(){s.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),e.addClass("active"),o?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu")&&e.closest("li.dropdown").addClass("active"),i&&i()}var s=n.find("> .active"),o=i&&t.support.transition&&s.hasClass("fade");o?s.one(t.support.transition.end,r):r(),s.removeClass("in")}};var n=t.fn.tab;t.fn.tab=function(n){return this.each(function(){var i=t(this),r=i.data("tab");r||i.data("tab",r=new e(this)),"string"==typeof n&&r[n]()})},t.fn.tab.Constructor=e,t.fn.tab.noConflict=function(){return t.fn.tab=n,this},t(document).on("click.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(e){e.preventDefault(),t(this).tab("show")})}(window.jQuery);var App,slice=[].slice;App={Dialog:{},Attachments:{},Sessions:{},Settings:{},Richtext:{},Statistics:{Traffic:{},DataView:{},Searches:{},Contents:{},Referrers:{},Locations:{},Devices:{},Sessions:{},Events:{},Bots:{}},Blog:{Overview:{},Post:{},Comment:{},Category:{},Settings:{}},Inquiries:{},LandingPages:{Overview:{},LandingPage:{}},Agent:{Overview:{},Basics:{},Content:{}},bind:function(t,e){return jQuery(document).bind("launchpad:"+t,e)},trigger:function(){var t,e;return t=arguments[0],e=2<=arguments.length?slice.call(arguments,1):[],jQuery(document).trigger("launchpad:"+t,e)}},$(document).ready(function(){return new App.Sessions,new App.Settings,new App.Statistics.Traffic,new App.Statistics.Searches,new App.Statistics.Contents,new App.Statistics.Referrers,new App.Statistics.Locations,new App.Statistics.Devices,new App.Statistics.Sessions,new App.Statistics.Events,new App.Statistics.Bots,new App.Blog.Overview,new App.Blog.Post,new App.Blog.Comment,new App.Blog.Category,new App.Blog.Settings,new App.LandingPages.Overview,new App.LandingPages.LandingPage,new App.Inquiries.Inquiry,new App.Inquiries.Inquiries,new App.Agent.Overview,new App.Agent.Basics,new App.Agent.Content}),App.Sessions=function(){function t(){this.bindEvents(),this.checkBrowser()}return t.prototype.bindEvents=function(){return $("#login form").submit(function(t){return function(){return t.login()}}(this)),$('a[data-action="switch_project"]').click(function(t){return function(e){return t.switchProject()}}(this))},t.prototype.login=function(){var t;return $("#error").hide(),t=$("#login form").serialize(),$.post("/sessions/create",t).success(function(t){return document.location.href="/"}).error(function(){return $("#login_error").fadeIn()})},t.prototype.switchProject=function(){var t;return t=new App.Dialog("Projekt wechseln"),$.getJSON("/sessions/projects").success(function(e){return function(e){var n,i,r,s;return s=function(){var t,n,i;for(i=[],t=0,n=e.length;n>t;t++)r=e[t],i.push("<option value='"+r.id+"'>"+r.hostname+"</option>");return i}(),i='<form class="form-stacked">\n  <label>Projekt</label>\n  <select name="project" class="span5">\n    '+s+"\n  </select>\n</form>",n=[{text:"Auswählen",type:"success",handler:function(){return r=t.find('select[name="project"]').val(),$.post("/sessions/project",{id:r}).success(function(t){return document.location.href="/"}).error()}}],t.update(i,n)}}(this))},t.prototype.checkBrowser=function(){return $.browser.msie&&$.browser.version<9&&this.disableBrowser(),$.browser.opera&&this.disableBrowser(),$.browser.version<10?this.disableBrowser():void 0},t.prototype.disableBrowser=function(){return $("#login_browser_error").show(),$("#login button").attr("disabled",!0)},t}(),App.Settings=function(){function t(){this.bindEvents()}return t.prototype.bindEvents=function(){return $("#settings form").submit(function(t){return function(){return t.update(
9)}}(this))},t.prototype.update=function(){var t;return $(".alert-success, .alert-error").hide(),t=$("#settings form").serialize(),$.post("/settings",t).success(function(t){return t.status?$(".alert-success").fadeIn():$(".alert-error").fadeIn()}).error(),!1},t}(),App.Agent.Overview=function(){function t(){this.bindEvents()}return t.prototype.bindEvents=function(){return $('#agents a[data-action="delete"]').click(function(t){return function(e){return t["delete"]($(e.currentTarget).data("id"))}}(this))},t.prototype["delete"]=function(t){return confirm("Soll der Agent inkl. aller Anfragen wirklich gelöscht werden?")?($("a[data-id="+t+"]").parents("div.agent").fadeOut(),$["delete"]("/agents/"+t).success().error()):void 0},t}(),App.Agent.Basics=function(){function t(){this.el=$("#agents_tab_basics"),this.autocomplete(),this.bindEvents(),this.paths=[]}return t.prototype.bindEvents=function(){return App.bind("agents.agent.paths",function(t){return function(e,n){return t.paths=JSON.parse(n)}}(this)),$("#agents_basics_paths_list span").live("click",function(t){return function(e){var n;return n=$(e.currentTarget).data("path"),t.removePathFromList(n),t.renderPathList()}}(this)),this.el.find('select[name="response_type"]').change(function(t){return function(e){var n;return n=$(e.currentTarget).val(),"redirect"===n?(t.el.find(".content").hide(),t.el.find(".redirect").show()):(t.el.find(".redirect").hide(),t.el.find(".content").show())}}(this)),this.el.find('select[name="type"]').change(function(t){return function(e){var n;return n=$(e.currentTarget).val(),"form"===n||"guide"===n?(t.el.find(".inline").hide(),t.el.find(".agent").show(),t.el.find(".guide").show(),t.el.find("button.btn.btn-success").html('Weiter zu Schritt 2 <i class="icon-arrow-right icon-white"></i>')):(t.el.find(".agent").hide(),t.el.find(".guide").hide(),t.el.find(".inline").show(),t.el.find("button.btn.btn-success").html("Agent speichern"))}}(this)),this.el.find('select[name="trigger_type"]').change(function(t){return function(t){var e;return e=$(t.currentTarget).val(),"scroll"===e||"time"===e?$("#agents_basics_trigger_value_container").show():$("#agents_basics_trigger_value_container").hide()}}(this)),this.el.find("form").submit(function(t){return function(){return t.save()}}(this)),this.el.find('form input[name="title"]').keyup(function(t){return function(e){return t.el.find('form input[name="slug"]').val(App.Utils.slugify($(e.currentTarget).val()))}}(this)),new App.Richtext({element:this.el.find(".response_value"),controls:this.el.find(".richtext-controls"),attachments_endpoint:"/helpers/attachments",linking_endpoint:"/helpers/linking",source:"agents",toggleControls:!0})},t.prototype.autocomplete=function(){var t,e;return e=function(t){return function(t,e){var n,i;return i=new RegExp(e,"gi"),n="<strong>"+e.toUpperCase()+"</strong>",t.replace(i,n)}}(this),t=this.el.find('input[name="autocomplete"]'),0!==t.length?t.autocomplete({source:"/helpers/linking",minLength:2,focus:function(e,n){return t.val(n.item.label),!1},select:function(t){return function(e,n){return t.addPathToList(n.item.value),!1}}(this)}).data("autocomplete")._renderItem=function(n){return function(n,i){var r,s;return s=function(){switch(i.type){case"agent":return"Agent";case"page":return"Seite";case"post":return"Blogpost";case"landing_page":return"Landing Page"}}(),r=t.val(),$("<li></li>").data("item.autocomplete",i).append("<a><strong>"+s+"</strong>: "+e(i.label,r)+"</a>").appendTo(n)}}(this):void 0},t.prototype.addPathToList=function(t){return this.paths.push(t),this.renderPathList(),this.el.find('input[name="autocomplete"]').val("")},t.prototype.removePathFromList=function(t){var e,n,i,r,s;for(r=[],s=this.paths,e=0,n=s.length;n>e;e++)i=s[e],i!==t&&r.push(i);return this.paths=r},t.prototype.renderPathList=function(){var t,e,n,i;for($("#agents_basics_paths_list").html(""),i=this.paths,t=0,e=i.length;e>t;t++)n=i[t],$("#agents_basics_paths_list").append('<li><span data-path="'+n+'" class="label label-info">'+n+"</span></li>");return $('#agents_tab_basics input[name="paths"]').val(this.paths.join(","))},t.prototype.save=function(){var t,e,n,i,r,s,o;return e=this.el.find("form"),i=e.find('input[name="notify"]:checked'),t=e.find("input[name=email]"),e.find("input[name=autocomplete]").remove(),"1"===i.val()?i.val(t.val()):i.remove(),t.remove(),o="redirect"===this.el.find('select[name="response_type"]').val()?this.el.find('input[name="response_value_redirect"]').val():$("#agents_basics_response_value").html(),this.el.find('textarea[name="response_value"]').val(o),r=e.serialize(),n=e.find('input[name="id"]').val(),s=n?$.post("/agents/"+n+"/basics",r):$.post("/agents",r),s.success(function(t){return function(t){return"inline"===e.find('select[name="type"]').val()?void(document.location.href="/agents"):($("#agents_tab_basics").hide(),$("#agents_tab_content").show(),$('#agents [data-tab="basics"]').removeClass("active"),$('#agents [data-tab="content"]').addClass("active"),$('#agents_tab_content form input[name="id"]').val(t.id||n))}}(this)).error()},t}(),App.Agent.Content=function(){function t(){this.bindEvents(),this.elements={}}return t.prototype.bindEvents=function(){return $('#agents_tab_content [data-action="add_element"]').click(function(t){return function(e){return t.addElement($(e.currentTarget).data("type")),t.renderElements()}}(this)),$("#agents_content_container .element").live("click",function(t){return function(e){var n;return n=$(e.currentTarget).data("id"),t.editElement(n,t.elements[n])}}(this)),$("#trigger_type").change(function(t){return function(t){var e;return e=$(t.currentTarget).val(),"scroll"===e||"time"===e?$("#trigger_value_container").show():$("#trigger_value_container").hide()}}(this)),$("#agents_tab_content form").submit(function(t){return function(){return t.save()}}(this)),App.bind("agents.content.update",function(t){return function(e,n){var i,r,s,o;for(n=JSON.parse(n),r=0,o=n.length;o>r;r++)i=n[r],s=(new Date).getTime()*Math.floor(1e3*Math.random()),t.elements[s]=i;return t.renderElements()}}(this)),$("#agents_content_container").sortable({items:" div.element",update:function(t){return function(e,n){var i,r,s,o,a,l;for(a={},l=$(e.currentTarget).find(".element"),i=0,o=l.length;o>i;i++)s=l[i],r=$(s).data("id"),a[r]=t.elements[r];return t.elements=a}}(this)})},t.prototype.addElement=function(t){var e;return e=(new Date).getTime(),this.elements[e]={type:t},"text"!==t.type?this.elements[e].name="element_"+e:void 0},t.prototype.updateElement=function(t,e){return e.type=this.elements[t].type,this.elements[t]=e},t.prototype.removeElement=function(t){return delete this.elements[t]},t.prototype.editElement=function(t,e){var n,i,r;return n=$("#agents_content_element_editor"),n.show(),n.find('[data-action="save"]').unbind("click").click(function(e){return function(){var i;return i=App.Utils.slugify(n.find("input[name=name]").val()),i=i.replace(/\-/g,"_"),e.updateElement(t,{name:i,label:n.find("input[name=label]").val(),values:n.find("textarea[name=values]").val().split("\n"),required:n.find("input[name=required]:checked").val(),content:n.find(".body").html()}),e.renderElements(),n.hide()}}(this)),n.find('[data-action="delete"]').unbind("click").click(function(e){return function(){return e.removeElement(t),e.renderElements(),n.hide()}}(this)),n.find(".settings").hide(),n.find(".richtext").hide(),"textfield"===(i=e.type)||"textarea"===i||"select"===i||"radio"===i||"checkbox"===i?(n.find("input[name=name]").val(e.name),n.find("input[name=label]").val(e.label),n.find(".settings").show(),n.find(".values").hide(),("select"===(r=e.type)||"radio"===r||"checkbox"===r)&&(n.find("textarea[name=values]").val((e.values||[]).join("\n")),n.find(".values").show()),"1"===e.required?n.find("input[name=required]").attr("checked","checked"):n.find("input[name=required]").removeAttr("checked")):"text"===e.type?(n.find(".richtext").show(),n.find(".body").html(e.content||""),new App.Richtext({element:n.find(".body"),controls:$("#agents_tab_content .ric
9htext-controls"),attachments_endpoint:"/helpers/attachments",linking_endpoint:"/helpers/linking",source:"agents",toggleControls:!0})):void 0},t.prototype.renderElements=function(){var t,e,n,i,r,s,o,a,l,c,u,h,d,p;$("#agents_content_container").html(""),t=[],c=this.elements;for(i in c){switch(e=c[i],t.push('<div class="element" data-id="'+i+'">'),e.label||(e.label="Labeltext"),e.values||("text"===e.type?e.values="Ich bin ein Beispieltext":e.values=["Option 1","Option 2","Option 3"]),e.content||(e.content="Platzhalter"),e.type){case"text":t.push("<p>"+e.content+"</p>");break;case"textfield":t.push("<label>"+e.label+"</label>"),t.push('<input class="span5" type="text" />');break;case"textarea":t.push("<label>"+e.label+"</label>"),t.push('<textarea class="span5"></textarea>');break;case"select":for(t.push("<label>"+e.label+"</label>"),t.push("<select>"),u=e.values,n=0,o=u.length;o>n;n++)p=u[n],t.push("<option>"+p+"</option>");t.push("</select>");break;case"radio":for(t.push("<label>"+e.label+"</label>"),h=e.values,r=0,a=h.length;a>r;r++)p=h[r],t.push("<input type='radio' name='"+i+"' value='"+p+"' /> "+p),t.push("<br />");break;case"checkbox":
10for(t.push("<label>"+e.label+"</label>"),d=e.values,s=0,l=d.length;l>s;s++)p=d[s],t.push("<input type='checkbox' name='"+i+"' value='"+p+"' /> "+p),t.push("<br />")}t.push("</div>")}return $("#agents_content_container").append(t.join(""))},t.prototype.save=function(){var t,e;return t=$("#agents_tab_content form input[name=id]").val(),e=this.elements,$.post("/agents/"+t+"/content",e).success(function(t){return function(t){return document.location="/agents"}}(this)).error()},t}(),App.Blog.Category=function(){function t(){this.bindEvents(),this.post_offset=0,this.post_category=null,this.comment_offset=0}return t.prototype.bindEvents=function(){return App.bind("blog.category.delete",function(t){return function(e,n){return t["delete"](n)}}(this)),App.bind("blog.category.create",function(t){return function(){return t.create()}}(this)),App.bind("blog.category.edit",function(t){return function(e,n){return t.edit(n)}}(this)),$("#blog_category_title").live("keyup",function(t){return function(t){return $("#blog_category_slug").val(App.Utils.slugify($(t.currentTarget).val()))}}(this))},t.prototype.create=function(){return this.show("Kategorie anlegen")},t.prototype.edit=function(t){return $.get("/blog/categories/"+t).success(function(t){return function(e){return t.show("Kategorie bearbeiten",e)}}(this)).error()},t.prototype.show=function(t,e){var n,i,r;return null==e&&(e={}),i='<form class="form">\n  <label>Titel</label>\n  <input type="text" id="blog_category_title" name="title" class="span5" value="'+(e.title||"")+'" />\n\n  <label>URL der Kategorie</label>\n  <input type="text" id="blog_category_slug" name="slug" class="span5" value="'+(e.slug||"")+'" />\n\n  <label class="checkbox">\n    <input type="checkbox" name="hidden" value="1" '+(e.hidden?'checked="checked"':void 0)+" />\n    Kategorie verstecken\n  </label>\n</form>",n=[{text:"Abbrechen",handler:function(t){return function(){return r.hide()}}(this)},{text:"Speichern",type:"success",handler:function(t){return function(){var n;return n={title:r.find('[name="title"]').val(),slug:r.find('[name="slug"]').val(),hidden:r.find('[name="hidden"]:checked').val()},e.id&&(n.id=e.id),t.save(n)}}(this)}],r=new App.Dialog(t,i,n)},t.prototype.save=function(t){var e;return e=t.id?$.put("/blog/categories/"+t.id,t):$.post("/blog/categories",t),e.success(function(){return document.location.reload()}).error()},t.prototype["delete"]=function(t){return $["delete"]("/blog/categories/"+t).success(function(e){return $("#categories a[data-id="+t+"]").parent().remove()}).error(function(){return alert("Die Kategorie kann nicht gelöscht werden, da noch Posts in ihr vorhanden sind.")})},t}(),App.Blog.Comment=function(){function t(){this.bindEvents()}var e;return t.prototype.bindEvents=function(){return App.bind("blog.comment.show",function(t){return function(e,n){return t.show(n)}}(this)),App.bind("blog.comment.publish",function(t){return function(e,n){return t.publish(n)}}(this)),App.bind("blog.comment.delete",function(t){return function(e,n){return t["delete"](n)}}(this))},e=function(t){return String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")},t.prototype.show=function(t){var n;return n=new App.Dialog("Kommentar"),$.get("/blog/comments/"+t).success(function(t){return function(t){var i,r,s,o;return o=/^https?:\/\//i.test(t.url||"")?e(t.url):"",s=$.format.date(new Date(Date.parse(t.created_at)),"dd/MM/yyyy - HH:mm:ss"),r='<table class="table table-striped">\n  <tbody>\n    <tr>\n      <td>Post</td>\n      <td>'+t.post+"</td>\n    </tr>\n    <tr>\n      <td>
10Datum</td>\n      <td>"+s+"</td>\n    </tr>\n    <tr>\n      <td>Autor</td>\n      <td>"+t.author+"</td>\n    </tr>\n    <tr>\n      <td>E-Mail</td>\n      <td>"+(t.email?e(t.email):"-")+'</td>\n    </tr>\n    <tr>\n      <td>URL</td>\n      <td><a href="'+o+'" target="_blank">'+(o||"Keine URL angegeben")+"</a></td>\n    </tr>\n    <tr>\n      <td>Kommentar</td>\n      <td>"+t.body+"</td>\n    </tr>\n  </tbody>\n</table>",i=[{text:"Schließen",handler:function(){return n.hide()}}],n.update(r,i)}}(this)).error()},t.prototype["delete"]=function(t){return $["delete"]("/blog/comments/"+t).success().error()},t.prototype.publish=function(t){return $.post("/blog/comments/"+t+"/publish").success().error()},t}(),App.Blog.Overview=function(){function t(){this.bindEvents(),this.post_page=1,this.post_category=null,this.comment_offset=0}return t.prototype.bindEvents=function(){return App.bind("blog.overview.load_posts",function(t){return function(){return t.loadPosts()}}(this)),App.bind("blog.overview.load_comments",function(t){return function(){return t.loadComments()}}(this)),$('#blog_posts a[data-action="prev"]').click(function(t){return function(){return t.post_page--,t.loadPosts()}}(this)),$('#blog_posts a[data-action="next"]').click(function(t){return function(){return t.post_page++,t.loadPosts()}}(this)),$('#blog_comments a[data-action="prev"]').click(function(t){return function(){return t.comment_offset--,t.loadComments()}}(this)),$('#blog_comments a[data-action="next"]').click(function(t){return function(){return t.comment_offset++,t.loadComments()}}(this)),$('#blog_categories a[data-action="load"]').click(function(t){return function(e){return t.post_category=$(e.currentTarget).data("id"),t.post_page=1,t.loadPosts()}}(this)),$('#blog_categories a[data-action="delete"]').click(function(t){return function(t){return App.trigger("blog.category.delete",$(t.currentTarget).data("id")),$(t.currentTarget).parents("li").fadeOut()}}(this)),$('#blog_categories a[data-action="edit"]').click(function(t){return function(t){return App.trigger("blog.category.edit",$(t.currentTarget).data("id"))}}(this)),$('#blog_categories a[data-action="create"]').click(function(t){return function(t){return App.trigger("blog.category.create")}}(this)),$('#blog_posts a[data-action="publish"]').live("click",function(t){return function(t){return App.trigger("blog.post.publish",$(t.currentTarget).data("id")),$(t.currentTarget).attr("disabled","disabled")}}(this)),$('#blog_posts a[data-action="delete"]').live("click",function(t){return function(t){return App.trigger("blog.post.delete",$(t.currentTarget).data("id")),$(t.currentTarget).parents("tr").fadeOut()}}(this)),$('#blog_comments a[data-action="show"]').live("click",function(t){return function(t){return App.trigger("blog.comment.show",$(t.currentTarget).data("id"))}}(this)),$('#blog_comments a[data-action="publish"]').live("click",function(t){return function(t){return App.trigger("blog.comment.publish",$(t.currentTarget).data("id")),$(t.currentTarget).attr("disabled","disabled")}}(this)),$('#blog_comments a[data-action="delete"]').live("click",function(t){return function(t){return App.trigger("blog.comment.delete",$(t.currentTarget).data("id")),$(t.currentTarget).parents("tr").fadeOut()}}(this))},t.prototype.loadPosts=function(){var t;return this.post_page<1&&(this.post_page=1),t={page:this.post_page},this.post_category&&(t.category=this.post_category),$.get("/blog/posts",t).success(function(t){return function(e){return 0===e.length&&t.post_page--,t.renderPosts(e)}}(this)).error()},t.prototype.loadComments=function(){return this.comment_offset<0&&(this.comment_offset=0),$.get("/blog/comments",{offset:this.comment_offset}).success(function(t){return function(e){return 0===e.length&&t.comment_offset--,t.renderComments(e)}}(this)).error()},t.prototype.renderPosts=function(t){var e,n,i,r,s;for(e=[],n=0,i=t.length;i>n;n++)r=t[n],s=r.published?'disabled="disabled"':"",e.push('<tr id="post_'+r.id+'">\n  <td>vor '+r.created_at+"</td>\n  <td>"+r.category+"</td>\n  <td>"+r.author+"</td>\n  <td>"+r.title+'</td>\n  <td nowrap="nowrap">\n    <a class="btn btn-info btn-mini" href="/blog/posts/'+r.id+'"><i class="icon-pencil icon-white"></i></a>\n    <a class="btn btn-success btn-mini" data-action="publish" data-id="'+r.id+'" '+s+'><i class="icon-ok icon-white"></i></a>\n    <a class="btn btn-danger btn-mini" data-action="delete" data-id="'+r.id+'"><i class="icon-remove icon-white"></i></a>\n  </td>\n</tr>');return 0===e.length&&e.push("<tr><td colspan='7'>Keine Posts vorhanden.</td></tr>"),$("#blog_posts table tbody").html(e.join(""))},t.prototype.renderComments=function(t){var e,n,i,r,s;for(n=[],i=0,r=t.length;r>i;i++)e=t[i],s=e.published?'disabled="disabled"':"",n.push('<tr id="comment_'+e.id+'">\n  <td>vor '+e.created_at+"</td>\n  <td>"+e.author+"</td>\n  <td>"+e.post+'</td>\n  <td nowrap="nowrap">\n    <a class="btn btn-info btn-mini" data-action="show" data-id="'+e.id+'"><i class="icon-search icon-white"></i></a>\n    <a class="btn btn-success btn-mini" data-action="publish" data-id="'+e.id+'" '+s+'><i class="icon-ok icon-white"></i></a>\n    <a class="btn btn-danger btn-mini" data-action="delete" data-id="'+e.id+'"><i class="icon-remove icon-white"></i></a>\n  </td>\n</tr>');return 0===n.length&&n.push('<tr><td colspan="5">Keine Kommentare vorhanden.</td></tr>'),$("#blog_comments table tbody").html(n.join(""))},t}(),App.Blog.Post=function(){function t(){this.bindEvents(),new App.Richtext({element:$("#blog_post_body"),controls:$("#blog_post .richtext-control
10s"),attachments_endpoint:"/helpers/attachments",linking_endpoint:"/helpers/linking",source:"blog",toggleControls:!0})}return t.prototype.bindEvents=function(){return App.bind("blog.post.publish",function(t){return function(e,n){return t.publish(n)}}(this)),App.bind("blog.post.delete",function(t){return function(e,n){return t["delete"](n)}}(this)),$('#blog_post button[data-action="select_image"]').click(function(t){return function(e){return t.selectImage()}}(this)),$("#blog_post").submit(function(t){return function(e){return t.save()}}(this)),$("#blog_post_title").keyup(function(t){return function(t){return $("#blog_post_slug").val(App.Utils.slugify($(t.currentTarget).val()))}}(this))},t.prototype.save=function(){var t,e,n;return n=$("#blog_post"),""===n.find('input[name="image_id"]').val()?alert("Bitte hinterlegen Sie noch ein Bild."):(n.find(".alert").hide(),n.find('textarea[name="body"]').val(n.find("#blog_post_body").html()),e=n.serialize(),t=n.find('[name="id"]').val(),""===t?this.create(e):this.update(t,e))},t.prototype.create=function(t){return $.post("/blog/posts",t).success(function(t){return $('#blog_post input[name="id"]').val(t.id),$("#blog_post").find(".alert.alert-success").show()}).error(function(){return $("#blog_post").find(".alert.alert-error").show()})},t.prototype.update=function(t,e){return $.put("/blog/posts/"+t,e).success(function(t){return $("#blog_post").find(".alert.alert-success").show()}).error(function(){return $("#blog_post").find(".alert.alert-error").show()})},t.prototype["delete"]=function(t){return $["delete"]("/blog/posts/"+t).success().error()},t.prototype.publish=function(t){return $.post("/blog/posts/"+t+"/publish").success().error()},t.prototype.selectImage=function(){return new App.Attachments("blog","/helpers/attachments",function(t){return function(t){return $('#blog_post input[name="image_id"]').val(t.id),$("#blog_post_teaser_image").attr("src",t.thumbnail_url)}}(this))},t}(),App.Blog.Settings=function(){function t(){this.bindEvents()}return t.prototype.bindEvents=function(){return $("#blog_settings").submit(function(t){return function(e){return t.save()}}(this))},t.prototype.save=function(){var t,e;return e=$("#blog_settings"),e.find(".alert").hide(),t=e.serialize(),$.put("/blog/settings",t).success(function(t){return function(){return e.find(".alert-success").show()}}(this)).error(function(t){return function(){return e.find(".alert-error").show()}}(this))},t}(),App.Inquiries.Inquiries=function(){function t(){this.bindEvents(),this.offset=0,this.agent=""}return t.prototype.bindEvents=function(){return App.bind("inquiries.inquiries.load",function(t){return function(e){return t.load()}}(this)),$('#inquiries a[data-action="prev"]').click(function(t){return function(){return t.offset--,t.load()}}(this)),$('#inquiries a[data-action="next"]').click(function(t){return function(){return t.offset++,t.load()}}(this)),$('#inquiries a[data-action="load"]').click(function(t){return function(e){return t.agent=$(e.currentTarget).data("id"),t.load()}}(this)),$('#inquiries a[data-action="export"]').click(function(t){return function(e){return""===t.agent?alert("Bitte wählen Sie rechts zuerst einen Agenten aus."):document.location.href="/inquiries/export/"+t.agent}}(this))},t.prototype.load=function(){return this.offset<0&&(this.offset=0),$.get("/inquiries/all",{offset:this.offset,agent:this.agent}).success(function(t){return function(e){return 0===e.length?(t.offset--,$("#inquiries .error").show()):$("#inquiries .error").hide(),t.render(e)}}(this)).error()},t.prototype.render=function(t){var e,n,i,r,s;if($("#inquiries table tbody").html(""),0===t.length)return $("#inquiries table tbody").append('<tr><td colspan="4">Keine inquiries vorhanden</td></tr>');for(s=[],n=0,r=t.length;r>n;n++)i=t[n],e=$.format.date(new Date(Date.parse(i.created_at)),"dd.MM.yyyy - HH:mm:ss"),s.push($("#inquiries table tbody").append('<tr data-id="'+i.id+'">\n  <td>'+e+"</td>\n  <td>"+i.agent+"</td>\n  <td>"+(i.is_valid?"ja":"nein")+'</td>\n  <td nowrap="nowrap">\n    <a class="btn btn-mini btn-info" data-action="show" data-id="'+i.id+'"><i class="icon-search icon-white"></i></a>\n    <a class="btn btn-mini btn-danger" data-action="delete" data-id="'+i.id+'"><i class="icon-remove icon-white"></i></a>\n  </td>\n</tr>'));return s},t}(),App.Inquiries.Inquiry=function(){function t(){this.bindEvents()}return t.prototype.bindEvents=function(){return $('#inquiries a[data-action="show"]').unbind("click").live("click",function(t){return function(e){return t.show($(e.currentTarget).data("id"))}}(this)),$('#inquiries a[data-action="delete"]').unbind("click").live("click",function(t){return function(e){return t["delete"]($(e.currentTarget).data("id"))}}(this))},t.prototype.show=function(t){return this.dialog=new App.Dialog("Details zur ANfrage"),$.get("/inquiries/"+t).success(function(t){return function(e){return t.modal(e)}}(this)).error()},t.prototype.save=function(t){var e;return e={id:t,comment:this.dialog.find('textarea[name="comment"]').val(),is_valid:this.dialog.find('input[name="is_valid"]:checked').val()},$.post("/inquiries/"+t+"/details",e).success().error()},t.prototype["delete"]=function(t){return confirm("Soll die Anfrage wirklich gelöscht werden?")?($("#inquiries a[data-id="+t+"]").parents("tr").fadeOut(),$["delete"]("/inquiries/"+t).success().error()):void 0},t.prototype.modal=function(t){var e,n,i,r,s,o;i=[],s=t.data;for(r in s)o=s[r],i.push("<strong>"+r+"</strong>: "+o);return n="<pre>"+i.join("<br />")+'</pre>\n\n<form class="form">\n  <fieldset>\n    <p>\n      <label for="comment">Bemerkung zur Anfrage</label>\n      <textarea class="span5" rows="6" name="comment">'+(t.comment||"")+'</textarea>\n    </p>\n\n    <p>\n      <label class="checkbox">\n        <input type="checkbox" name="is_valid" value="1" '+(t.is_valid?"checked":"")+" />\n        Anfrage ist gültig\n      </label>\n    </p>\n  </fieldset>\n</form>",e=[{text:"Schließen",handler:function(t){return function(){return t.dialog.hide()}}(this)},{text:"Speichern",type:"success",handler:function(e){return function(){return e.save(t._id),e.dialog.hide()}}(this)}],this.dialog.update(n,e)},t}(),App.LandingPages.LandingPage=function(){function t(){this.bindEvents(),new App.Richtext({element:$("#landing_page_body"),controls:$("#landing_pages .richtext-control
10s"),attachments_endpoint:"/helpers/attachments",linking_endpoint:"/helpers/linking",source:"landing_pages",toggleControls:!0}),new App.Richtext({element:$("#landing_page_information"),controls:$("#landing_pages .richtext-controls2"),attachments_endpoint:"/helpers/attachments",linking_endpoint:"/helpers/linking",source:"landing_pages",toggleControls:!0})}return t.prototype.bindEvents=function(){return App.bind("landing_pages.landing_page.delete",function(t){return function(e,n){return t["delete"](n)}}(this)),$("#landing_pages form").submit(function(t){return function(e){return t.save()}}(this)),$('#landing_pages button[data-action="select_image"]').click(function(t){return function(e){return t.selectImage()}}(this)),$("#landing_page_title").keyup(function(t){return function(t){return $("#landing_page_slug").val(App.Utils.slugify($(t.currentTarget).val()))}}(this))},t.prototype.save=function(){var t,e,n;return e=$("#landing_pages form"),e.find(".alert").hide(),e.find('textarea[name="body"]').val(e.find("#landing_page_body").html()),e.find('textarea[name="information"]').val(e.find("#landing_page_information").html()),n=e.serialize(),t=e.find('[name="id"]').val(),""===t?this.create(n):this.update(t,n)},t.prototype.create=function(t){return $.post("/landing_pages",t).success(function(t){return $('#landing_pages input[name="id"]').val(t.id),$("#landing_pages").find(".alert.alert-success").show()}).error(function(){return $("#landing_pages").find(".alert.alert-error").show()})},t.prototype.update=function(t,e){return $.put("/landing_pages/"+t,e).success(function(t){return $("#landing_pages").find(".alert.alert-success").show()}).error(function(){return $("#landing_pages").find(".alert.alert-error").show()})},t.prototype["delete"]=function(t){return $["delete"]("/landing_pages/"+t).success().error()},t.prototype.selectImage=function(){return new App.Attachments("landing_pages","/helpers/attachments",function(t){return function(t){return $('#landing_pages form input[name="image_id"]').val(t.id),$("#landing_pages_teaser_image").attr("src",t.thumbnail_url)}}(this))},t}(),App.LandingPages.Overview=function(){function t(){this.bindEvents()}return t.prototype.bindEvents=function(){return $('#landing_pages a[data-action="delete"]').click(function(t){return function(e){return t["delete"]($(e.currentTarget).data("id"))}}(this))},t.prototype["delete"]=function(t){return confirm("Soll die Landing Page wirklich gelöscht werden?")?($("a[data-id="+t+"]").parents("div.landing_page").fadeOut(),App.trigger("landing_pages.landing_page.delete",t)):void 0},t}(),App.Statistics.Bots=function(){function t(){this.bindEvents()}return t.prototype.bindEvents=function(){return App.bind("statistics.bots.update",function(t){return function(){return new App.Statistics.DataView(t.update)}}(this))},t.prototype.update=function(){return $.get("/statistics/api/bots",{date:this.date,skip:this.skip}).success(function(t){return function(t){var e,n,i,r,s,o;if($("#statistics_bots tbody").html(""),t){for(o=[],i=0,s=t.length;s>i;i++)r=t[i],n=$.format.date(new Date(Date.parse(r.time)),"dd/MM/yyyy - HH:mm:ss"),e=["<tr>"],e.push("<td>"+n+"</td>\n<td>"+r.bot+'</td>\n<td><a href="'+r.url+'" target="_blank">'+r.url+"</a></td>"),e.push("</tr>"),o.push($("#statistics_bots tbody").append(e.join("")));return o}return $("#statistics_bots tbody").append('<tr><td colspan="3">Keine Daten</td></tr>')}}(this)).error()},t}(),App.Statistics.Contents=function(){function t(){this.bindEvents()}return t.prototype.bindEvents=function(){return App.bind("statistics.contents.update",function(t){return function(){return new App.Statistics.DataView(t.update)}}(this))},t.prototype.update=function(){return $.get("/statistics/api/contents",{date:this.date,skip:this.skip}).success(function(t){return function(t){var e,n,i,r,s;if($("#statistics_contents tbody").html(""),t){for(s=[],n=0,r=t.length;r>n;n++)i=t[n],e=["<tr>"],e.push("<td>\n  <strong>"+i.title+'</strong>\n  <br />\n  <a href="'+i.url+'" target="_blank">\n    '+(i.url&&i.url.length>100?i.url.substring(0,100)+"...":i.url)+"\n  </a>\n</td>\n<td>"+i.pageviews+"</td>\n<td>"+i.visits+"</td>"),e.push("</tr>"),s.push($("#statistics_contents tbody").append(e.join("")));return s}return $("#statistics_contents tbody").append('<tr><td colspan="3">Keine Daten</td></tr>')}}(this)).error()},t}(),App.Statistics.DataView=function(){function t(t){this.bindEvents(),this.ts=new Date,this.date="",this.callback=t,this.skip=0,this.generateDate(),this["switch"]("year")}return t.prototype.bindEvents=function(){return $('#statistics_navigation a[data-action="prev"]').click(function(t){return function(){return t.previous()}}(this)),$('#statistics_navigation a[data-action="next"]').click(function(t){return function(){return t.next()}}(this)),$('#statistics_pagination a[data-action="prev"]').click(function(t){return function(){return t.skip++,t.callback()}}(this)),$('#statistics_pagination a[data-action="next"]').click(function(t){return function(){return t.skip>0?(t.skip--,t.callback()):void 0}}(this)),$('#statistics_navigation a[data-action="switch"]').click(function(t){return function(e){var n;return n=$(e.currentTarget).data("interval"),t["switch"](n)}}(this))},t.prototype.previous=function(){return this.ts="day"===this.type?new Date(new Date(this.date).setDate(this.ts.getDate()-1)):"month"===this.type?new Date(new Date(this.ts).setMonth(this.ts.getMonth()-1)):new Date(new Date(this.ts).setFullYear(this.ts.getFullYear()-1)),this.generateDate(),this.callback()},t.prototype.next=function(){return this.ts="day"===this.type?new Date(new Date(this.ts).setDate(this.ts.getDate()+1)):"month"===this.type?new Date(new Date(this.ts).setMonth(this.ts.getMonth()+1)):new Date(new Date(this.ts).setFullYear(this.ts.getFullYear()+1)),this.generateDate(),this.callback()},t.prototype["switch"]=function(t){return $('a[data-action="switch"]').parents("li").removeClass("active"),$('a[data-interval="'+t+'"]').parents("li").addClass("active"),this.type=t,this.generateDate(),this.callback()},t.prototype.generateDate=function(){return this.date="day"===this.type?$.format.date(this.ts,"yyyy-MM-dd"):"month"===this.type?$.format.date(this.ts,"yyyy-MM"):$.format.date(this.ts,"yyyy"),$("#statistics_date").html(this.date)},t}(),App.Statistics.Devices=function(){function t(){this.bindEvents()}return t.prototype.bindEvents=function(){return App.bind("statistics.devices.update",function(t){return function(){return new App.Statistics.DataView(t.update)}}(this))},t.prototype.update=function(){return $.get("/statistics/api/devices",{date:this.date}).success(function(t){return function(t){return App.Statistics.Devices.renderPlatformChart(t.platforms),App.Statistics.Devices.renderBrowserChart(t.browsers),App.Statistics.Devices.renderTypeChart(t.types),App.Statistics.Devices.renderDimensionsChart("browser",t.dimensions.browser),App.Statistics.Devices.renderDimensionsChart("screen",t.dimensions.screen)}}(this)).error()},t.renderPlatformChart=function(t){var e,n,i;n=[];for(e in t)i=t[e],n.push({name:e,y:i});return this.renderChart("platforms",[],n)},t.renderBrowserChart=function(t){var e,n,i,r,s,o,a;e=[],a=[];for(n in t){s=t[n],e.push({name:n,y:s.visits}
10),r=s.versions;for(i in r)o=r[i],a.push({name:i,y:o.visits})}return this.renderChart("browsers",a,e)},t.renderDimensionsChart=function(t,e){var n,i,r,s,o,a;a=[],n=[],r=e.width;for(i in r)o=r[i],a.push({name:i+"px(w)",y:o});s=e.height;for(i in s)o=s[i],n.push({name:i+"px(h)",y:o});return this.renderChart(t+"_dimensions",n,a)},t.renderTypeChart=function(t){var e,n,i;n=[];for(e in t)i=t[e],n.push({name:e,y:i});return this.renderChart("types",[],n)},t.renderChart=function(t,e,n){var i;return i=new Highcharts.Chart({chart:{renderTo:"statistics_devices_"+t,type:"pie",height:300},title:{text:""},yAxis:{title:{text:""}},plotOptions:{pie:{shadow:!1}},tooltip:{formatter:function(){return"<b>"+this.point.name+"</b>: "+this.y+" Visits"}},series:[{data:e,size:"60%",dataLabels:{formatter:function(){return this.y>5?this.point.name:null},color:"white",distance:-30}},{data:n,innerSize:"60%",dataLabels:{}}]})},t}(),App.Statistics.Events=function(){function t(){this.bindEvents()}return t.prototype.bindEvents=function(){return App.bind("statistics.events.update",function(t){return function(){return new App.Statistics.DataView(t.update)}}(this))},t.prototype.update=function(){return $.get("/statistics/api/events",{date:this.date,skip:this.skip}).success(function(t){return function(t){var e,n,i,r,s;if($("#statistics_events tbody").html(""),t){for(s=[],n=0,r=t.length;r>n;n++)i=t[n],e=["<tr>"],e.push("<td><strong>"+i.source+"</strong></td> <td>"+i.action+"</td> <td>"+i.value+"</td> <td>"+i.hits+"</td>"),e.push("</tr>"),s.push($("#statistics_events tbody").append(e.join("")));return s}return $("#statistics_events tbody").append('<tr><td colspan="4">Keine Daten</td></tr>')}}(this)).error()},t}(),App.Statistics.Locations=function(){function t(){this.bindEvents()}return t.prototype.bindEvents=function(){return App.bind("statistics.locations.update",function(t){return function(){return new App.Statistics.DataView(t.update)}}(this))},t.prototype.update=function(){var t,e;return e={center:new google.maps.LatLng(60,0),zoom:2,mapTypeId:google.maps.MapTypeId.ROADMAP},t=new google.maps.Map($("#statistics_locations_map").get(0),e),$.get("/statistics/api/locations",{date:this.date,skip:this.skip}).success(function(e){return function(e){var n,i,r,s,o,a,l;for($("#statistics_locations tbody").html(""),l=[],i=0,s=e.length;s>i;i++)r=e[i],a=new google.maps.LatLng(r.coordinates.latitude,r.coordinates.longitude),o=new google.maps.Marker({position:a,map:t,title:"["+r.country+"] "+r.location}),n=["<tr>"],n.push("<td>"+r.country+"</td> <td>"+r.location+"</td> <td>"+r.visits+"</td>"),n.push("</tr>"),l.push($("#statistics_locations tbody").append(n.join("")));return l}}(this)).error()},t}(),App.Statistics.Referrers=function(){function t(){this.bindEvents()}return t.prototype.bindEvents=function(){return App.bind("statistics.referrers.update",function(t){return function(){return new App.Statistics.DataView(t.update)}}(this))},t.prototype.update=function(){return $.get("/statistics/api/referrers",{date:this.date,skip:this.skip}).success(function(t){return function(t){var e,n,i,r,s;if($("#statistics_referrers tbody").html(""),t){for(s=[],n=0,r=t.length;r>n;n++)i=t[n],e=["<tr>"],e.push("<td>"+i.type+"</td>\n<td>\n  <strong>"+(i.name||"Nicht definiert")+'</strong><br />\n  <a href="'+i.referrer+'" target="_blank">\n    '+(i.referrer&&i.referrer.length>100?i.referrer.substring(0,100)+"...":i.referrer||"Nicht definiert")+"\n  </a>\n</td>\n<td>"+i.pageviews+"</td>\n<td>"+i.visits+"</td>"),e.push("</tr>"),s.push($("#statistics_referrers tbody").append(e.join("")));return s}return $("#statistics_referrers tbody").append('<tr><td colspan="4">Keine Daten</td></tr>')}}(this)).error()},t}(),App.Statistics.Searches=function(){function t(){this.bindEvents()}return t.prototype.bindEvents=function(){return App.bind("statistics.searches.update",function(t){return function(){return new App.Statistics.DataView(t.update)}}(this))},t.prototype.update=function(){return $.get("/statistics/api/searches",{date:this.date,skip:this.skip}).success(function(t){return function(t){var e,n,i,r,s,o;if($("#statistics_searches tbody").html(""),t){for(o=[],i=0,s=t.length;s>i;i++)r=t[i],n=["<tr>"],n.push("<td>"+r.engine+"</td> <td><strong>"+r.term+"</strong></td> <td>"+r.visits+"</td>"),n.push("</tr>"),o.push($("#statistics_searches tbody").append(n.join("")));return o}return e=$("#statistics_searches tbody").find("tr th").length,$("#statistics_searches tbody").append('<tr><td colspan="3">Keine Daten</td></tr>')}}(this)).error()},t}(),App.Statistics.Sessions=function(){function t(){var t;this.bindEvents(),t=$.parseQuerystring(),t&&this.applyFilters(t)}return t.sessions={},t.prototype.bindEvents=function(){return App.bind("statistics.sessions.update",function(t){return function(){return new App.Statistics.DataView(t.update)}}(this)),$("#statistics_sessions_filters").submit(function(t){return function(){var e,n,i,r,s;for(n={}
10,s=$("#statistics_sessions_filters").serializeArray(),i=0,r=s.length;r>i;i++)e=s[i],e.value.length>0&&(n[e.name]=e.value);return t.applyFilters(n),t.update(),!1}}(this)),$("#statistics_sessions tr a.subsession").live("click",function(t){return function(e){return t.loadSession($(e.currentTarget).parents("tr").data("session"))}}(this)),$("#statistics_sessions tr button").live("click",function(t){return function(e){return t.sessionDetails($(e.currentTarget).parents("tr").data("session"))}}(this))},t.prototype.update=function(){var t;return t={skip:this.skip,filters:this.filters},$.get("/statistics/api/sessions",t).success(function(t){return function(t){return App.Statistics.Sessions.renderTable(t)}}(this)).error()},t.prototype.loadSession=function(t){return $.get("/statistics/api/sessions/session",{sid:t}).success(function(e){return function(n){return e.renderSubTable(t,n)}}(this)).error()},t.renderTable=function(t){var e,n,i,r,s,o;for($("#statistics_sessions tbody").html(""),0===t.length&&$("#statistics_sessions tbody").append('<tr>\n  <td colspan="4" class="center">\n    Es sind keine Sessions für diese Filtereinstellungen vorhanden.\n  </td>\n</tr>'),s=[],n=0,r=t.length;r>n;n++)i=t[n],this.sessions[i.session_id]=i,e=$.format.date(new Date(Date.parse(i.time)),"dd/MM/yyyy - HH:mm:ss"),o=i.referrer?i.referrer.name||i.referrer.type:i.search?i.search.engine:"Direkt",s.push($("#statistics_sessions tbody").append('<tr data-se
10ssion="'+i.session_id+'" class="session">\n  <td nowrap="true">'+e+' Uhr</td>\n  <td nowrap="true">'+o+'</td>\n  <td><a class="subsession">'+i.content.title+'</a></td>\n  <td><button class="btn btn-info btn-small" data-action="show" data-id="'+i.session_id+'"><i class="icon-info-sign icon-white"></i></button>\n</tr>'));return s},t.prototype.renderSubTable=function(t,e){var n,i,r,s,o,a,l,c,u;if($(".session td").css("font-weight","normal"),$(".sub-session").remove(),n=[],0===e.length)n.push('<tr class="sub-session">\n  <td colspan="4" class="center">\n    Für diese Session sind keine Einträge vorhanden.\n  </td>\n</tr>');else for(s=0,a=e.length;a>s;s++)o=e[s],i=$.format.date(new Date(Date.parse(o.time)),"dd/MM/yyyy - HH:mm:ss"),c=o.referrer?(l="page"===o.referrer.name?"Interne Seite":"blog"===o.referrer.name?"Blog":"landingpage"===o.referrer.name?"Landingpage":o.referrer.name,l||o.referrer.type):o.search?o.search.engine:"event"===o.type?"Onpage":"Direkt",u="event"===o.type?"Event: ["+o.event.source+"."+o.event.action+"] "+o.event.value:o.content.title,n.push('<tr class="sub-session">\n  <td nowrap="true">'+i+' Uhr</td>\n  <td nowrap="true">'+c+'</td>\n  <td colspan="2">'+u+"</td>\n</tr>");return r=$("tr[data-session='"+t+"']"),$(n.join("")).insertAfter(r),r.find("td").css("font-weight","bold")},t.prototype.sessionDetails=function(t){var e,n,i,r;return i=new App.Dialog("Session Details"),r=App.Statistics.Sessions.sessions[t],n='<table class="table table-striped">\n  <tr>\n    <th>Name</th>\n    <th>Wert</th>\n  </tr>\n  <tr><td>Wiederkehrender Besucher</td><td>'+(r.returning?"Ja":"Nein")+"</td></tr>\n  <tr><td>Typ</td><td>"+("event"===r.type?"Event":"Pageview")+"</td></tr>\n  <tr><td>Event Name</td><td>"+((r.event?r.event.name:void 0)||"-")+"</td></tr>\n  <tr><td>Event Daten</td><td>"+((r.event?JSON.stringify(r.event.data):void 0)||"-")+"</td></tr>\n  <tr><td>Browser</td><td>"+((r.device?r.device.browser:void 0)||"-")+"</td></tr>\n  <tr><td>Betriebssystem</td><td>"+((r.device?r.device.platform:void 0)||"-")+"</td></tr>\n  <tr><td>Quelle</td><td>"+((r.referrer?r.referrer.name:void 0)||"-")+"</td></tr>\n  <tr><td>Suchbegriff</td><td>"+((r.search?r.search.term:void 0)||"-")+"</td></tr>\n  <tr><td>Land</td><td>"+((r.location?r.location.country:void 0)||"-")+"</td></tr>\n  <tr><td>Stadt</td><td>"+((r.location?r.location.location:void 0)||"-")+"</td></tr>\n  <tr>\n    <td>Hostname</td>\n    <td>\n      "+(r.hostname||"-")+' <a href="https://www.ip-adress.com/whois/'+r.ip+'">[whois]</a>\n    </td>\n  </tr>\n  <tr><td>URL</td><td>'+r.content.url+"</td></tr>\n  <tr><td>Referrer</td><td>"+((r.referrer?r.referrer.referrer:void 0)||"-")+"</td></tr>\n</table>",e=[{text:"Schließen",handler:function(t){return function(){return i.hide()}}(this)}],i.update(n,e)},t.prototype.applyFilters=function(t){var e,n,i;this.filters=t,n=this.filters;for(e in n)i=n[e],$("#statistics_sessions *[name="+e+"]").val(i);
11return $("#statistics_sessions_filters input[name=offset]").val(this.offset),$("#statistics_sessions_filters select[name=type]").val(this.type)},t}(),App.Statistics.Traffic=function(){function t(){this.bindEvents()}return t.prototype.bindEvents=function(){return App.bind("statistics.traffic.update",function(t){return function(){return new App.Statistics.DataView(t.update)}}(this))},t.prototype.update=function(){return App.Statistics.Traffic.updateTable("searches",this.date),App.Statistics.Traffic.updateTable("contents",this.date),App.Statistics.Traffic.updateTable("referrers",this.date),App.Statistics.Traffic.updateChart(this.date)},t.updateTable=function(t,e){return $.get("/statistics/api/"+t,{date:e}).success(function(e){return function(e){var n,i,r,s,o,a;if($("#statistics_traffic_"+t+" tbody").html(""),e){for(a=[],r=0,o=e.length;o>r;r++)s=e[r],i=["<tr>"],"contents"===t?i.push("<td>\n  <strong>"+s.title+'</strong>\n  <br />\n  <a href="'+s.url+'" target="_blank">\n    '+(s.url&&s.url.length>40?s.url.substring(0,40)+"...":s.url)+"\n  </a>\n</td>\n<td>"+s.pageviews+"</td>\n<td>"+s.visits+"</td>"):"referrers"===t?i.push("<td>"+s.type+"</td>\n<td>\n  <strong>"+(s.name||"Nicht definiert")+'</strong><br />\n  <a href="'+s.referrer+'" target="_blank">\n    '+(s.referrer&&s.referrer.length>70?s.referrer.substring(0,70)+"...":s.referrer||"Nicht definiert")+"\n  </a>\n</td>\n<td>"+s.pageviews+"</td>\n<td>"+s.visits+"</td>"):"searches"===t&&i.push("<td>"+s.engine+"</td> <td><strong>"+s.term+"</strong></td> <td>"+s.visits+"</td>"),a.push($("#statistics_traffic_"+t+" tbody").append(i.join("")));return a}return n=$("#statistics_traffic_"+t).find("tr th").length,$("#statistics_traffic_"+t+" tbody").append('<tr><td colspan="#{cols}">Keine Daten</td></tr>')}}(this)).error()},t.updateChart=function(t){return $.get("/statistics/api/traffic",{date:t}).success(function(t){return function(t){var e,n,i,r,s,o,a;if(t.overview||t.traffic){App.Statistics.Traffic.updateOverview(t.overview),r=[],s=[],o=[],a=[],n=t.traffic.pageviews;for(e in n)i=n[e],s.push(i),r.push(e),t.traffic.visits&&e in t.traffic.visits?o.push(t.traffic.visits[e]):o.push(0),t.traffic.returning&&e in t.traffic.returning?a.push(t.traffic.returning[e]):a.push(0);return new Highcharts.Chart({chart:{renderTo:"statistics_traffic_chart",type:"column",width:$("#statistics_traffic_chart").innerWidth()-40,height:200},title:{text:null},xAxis:{categories:r},yAxis:{title:{text:null}},plotOptions:{column:{pointPadding:.2,borderWidth:0}},tooltip:{formatter:function(){return this.y+" "+this.series.name}},series:[{name:"Pageviews",data:s},{name:"Visits",data:o},{name:"returning Visitors",data:a}]})}}}(this))},t.updateOverview=function(t){return $("#statistics_traffic_overview .pageviews").html(t.pageviews),$("#statistics_traffic_overview .visits").html(t.visits),$("#statistics_traffic_overview .returning").html(t.returning),$("#statistics_traffic_overview .pageviews_per_visit").html(t.pageviews_per_visit),$("#statistics_traffic_overview .bounces").html(t.bounces),$("#statistics_traffic_overview .time_per_visit").html(t.time_per_visit),$("#statistics_traffic_overview .time_per_pageview").html(t.time_per_pageview)},t}(),App.Attachments=function(){function t(t,e,n){this.source=t,this.endpoint=e,this.handler=n,this.type="image",this.items={},this.offset=0,this.show(),this.bindEvents()}return t.prototype.bindEvents=function(){return $("ul.nav-tabs li a").click(function(t){return function(e){return t.type=$(e.currentTarget).data("type"),t.loadItems()}}(this)),$("#rs_tab_upload button").click(function(t){return function(e){return t.upload()}}(this)),$('#rs_tab_attachments a[data-action="prev"]').live("click",function(t){return function(){return t.offset>0&&t.offset--,t.loadItems()}}(this)),$('#rs_tab_attachments a[data-action="next"]').live("click",function(t){return function(){return t.offset++,t.loadItems()}}(this))},t.prototype.show=function(){var t,e;return this.dialog=new App.Dialog("Bilder & Dokumente"),e='<ul class="nav nav-tabs">\n  <li class="active"><a href="#rs_tab_attachments" data-toggle="tab" data-type="image">Bilder</a></li>\n  <li><a href="#rs_tab_attachments" data-toggle="tab" data-type="document">Dokumente</a></li>\n  <li><a href="#rs_tab_upload" data-toggle="tab">Upload</a></li>\n</ul>\n\n<div class="tab-content">
11\n  <div class="tab-pane active" id="rs_tab_attachments">\n    <div id="rs_tab_attachments_items"></div>\n    <div class="pagination pagination-centered">\n      <ul>\n        <li><a href="javascript:void(0);" data-action="prev">&larr; Zurück</a></li>\n        <li><a href="javascript:void(0);" data-action="next">Vor &rarr;</a></li>\n      </ul>\n    </div>         \n  </div>\n\n  <div class="tab-pane" id="rs_tab_upload">\n    <form class="form-inline well" action="javascript:void(0);">\n      Datei hochladen: <input type="file" name="file" class="span3" />\n      <button class="btn btn-success btn-small" type="submit">Datei Hochladen</button>\n    </form>          \n  </div>\n</div>',t=[{text:"Schließen",handler:function(t){return function(){return t.hide()}}(this)}],this.dialog.update(e,t,{height:400,onload:function(t){return function(){return t.loadItems()}}(this)})},t.prototype.hide=function(){return this.dialog.hide()},t.prototype.loadItems=function(){var t;return this.offset<0&&(this.offset=0),t=[],$.get(this.endpoint,{type:this.t
11ype,source:this.source,offset:8*this.offset}).success(function(e){return function(n){var i,r,s;if(e.items={},n.length<8&&e.offset--,n.length>0){for(t.push('<ul class="thumbnails">'),i=0,s=n.length;s>i;i++)r=n[i],e.items[r.id]=r,t.push('<li data-id="'+r.id+'">\n  <div class="thumbnail" style="text-align: center;">\n    <a href="javascript:void(0);">'),"image"===r.type?t.push('<img src="https://s3.amazonaws.com/files.cdn.onchestra.net/'+r.id+"/100!/"+r.name+'" />'):t.push('<div class="name" style="padding: 5px; box-sizing: border-box; \n  width: 100px; height: 100px; overflow: hidden; \n  text-overflow: ellipsis; word-break: break-all; \n  background-color: #ececec;">\n  '+r.name+"\n</div>"),t.push('    </a>\n    <p style="margin-top: 10px;">\n      <a href="javascript:void(0);" class="btn btn-mini" data-action="delete">\n        <i class="icon-remove"></i> Löschen</a>\n      </p>\n  </div>\n</li> ');t.push("</ul>")}else t.push("Leider sind in dieser Ansicht keine Dateien vorhanden.");return $("#rs_tab_attachments_items").html(t.join("")),$("#rs_tab_attachments_items a img,#rs_tab_attachments_items a div").on("click",function(t){return r=e.items[$(t.currentTarget).parents("li").data("id")],r.url=e.url(r.id,r.name),r.thumbnail_url=e.thumbnail_url(r.id,r.name),e.hide(),e.handler(r)}),$('#rs_tab_attachments_items a[data-action="delete"]').on("click",function(t){return t.stopImmediatePropagation(),r=e.items[$(t.currentTarget).parents("li").data("id")],e["delete"](r)})}}(this))},t.prototype["delete"]=function(t){return confirm("Soll die Datei "+t.name+" gelöscht werden?")?($('#rs_tab_attachments_items li[data-id="'+t.id+'"]').fadeOut(),$["delete"](this.endpoint+"/"+t.id).success().error()):void 0},t.prototype.upload=function(){var t;return t=$("#rs_tab_upload form"),t.find("button").attr("disabled","disabled"),t.ajaxSubmit({type:"POST",url:""+this.endpoint,data:{source:this.source},dataType:"json",iframe:!0,success:function(e){return function(n){return e.loadItems(),t.find("button").attr("disabled",null),alert("Die Datei wurde erfolgreich hoch geladen.")}}(this)})},t.prototype.url=function(t,e){return"https://s3.amazonaws.com/files.cdn.onchestra.net/"+t+"/"+e},t.prototype.thumbnail_url=function(t,e){return"https://s3.amazonaws.com/files.cdn.onchestra.net/"+t+"/100!/"+e},t}(),App.Dialog=function(){function t(t,e,n,i){this.show(t,e,n,i)}return t.prototype.renderButtons=function(t){var e,n,i,r;for(this.element.find(".modal-footer *").remove(),r=[],n=0,i=t.length;i>n;n++)e=t[n],r.push(e=$('<a class="btn btn-'+e.type+'">'+e.text+"</a>").click(e.handler).appendTo(this.element.find(".modal-footer")));return r},t.prototype.show=function(t,e,n,i){var r;return r='<div class="modal hide fade">\n  <div class="modal-header">\n    <a href="#" class="close" data-dismiss="modal">×</a>\n    <h3>'+t+'</h3>\n  </div>\n\n  <div class="modal-body">\n    <p>Loading...</p>\n  </div>\n  <div class="modal-footer"></div>\n</div>',this.element=$(r).modal({backdrop:!0,keyboard:!0,show:!0}),this.element.bind("hidden",function(t){return function(){return t.element.remove()}}(this)),e&&this.update(e,n,i),$("#rs").length>0?(this.element.detach().appendTo($("#rs")),$(".modal-backdrop").detach().appendTo($("#rs"))):void 0},t.prototype.hide=function(){return this.element.modal("hide")},t.prototype.update=function(t,e,n){return null==n&&(n={}),this.element.is(":visible")?this.updateProperties(t,e,n):this.element.bind("shown",function(i){return function(){return i.updateProperties(t,e,n)}}(this))},t.prototype.updateProperties=function(t,e,n){return null==n&&(n={}),this.element.find(".modal-body").html(t),this.renderButtons(e),n.height&&this.element.find(".modal-body").css("maxHeight",n.height+"px").css("overflow","auto"),n.onload?n.onload():void 0},t.prototype.find=function(t){return this.element.find(t)},t}(),App.Richtext=function(){function t(t){this.opts=t,this.element=this.opts.element,this.controls=this.opts.controls,this.rs=$("#rs form"),this.bindEvents(),this.enableElement()}return t.prototype.bindEvents=function(){return this.controls.find("a").unbind("click"),this.controls.find("a").click(function(t){return function(e){return t.format($(e.currentTarget).data("c
11ommand"))}}(this)),this.element.bind("hide",function(t){return function(){return t.hide()}}(this)),this.rs.find('select[name="page"]').live("change",function(t){return function(e){return t.rs.find('input[name="link"]').val($(e.currentTarget).val())}}(this)),this.element.find("a").live("click",function(t){return function(e){return e.stopImmediatePropagation(),t.linkClickHandler($(e.currentTarget)),!1}}(this)),this.element.find("img").live("mousedown",function(t){return function(e){return"Range"!==window.getSelection().type?t.resizeImage(e):void 0}}(this))},t.prototype.resizeImage=function(t){var e,n,i,r,s,o,a;return t.preventDefault(),n=$(t.currentTarget),i=!0,o=t.pageX,a=t.pageY,s=n.width(),e=n.height(),r=e/s,$("body").bind("mousemove",function(t){return function(e){var a;return i&&(a=s+(e.pageX-o),a<=t.element.innerWidth())?n.attr("width",a).attr("height",Math.round(a*r)):void 0}}(this)).bind("mouseup",function(){return i=!1})},t.prototype.enableElement=function(){return this.element.attr("contentEditable",!0),$.browser.msie||$.browser.mozilla?void 0:(document.execCommand("styleWithCSS",!1,!1),document.execCommand("enableObjectResizing",!1,!1))},t.prototype.hide=function(){return this.element.attr("contentEditable",!1)},t.prototype.format=function(t){var e,n;if("createlink"===t)return n="#rs_tmp",document.execCommand(t,!1,n),void this.insertLink();if("heading"===t)t="formatblock",n=this.insertHeading();else if("table"===t)t="inserthtml",n=this.insertTable();else{if("insertmedia"===t)return void this.insertAttachment();if("imageedit"===t)return e=$(window.getSelection().anchorNode).find("img"),void(e.length>0&&this.imageProperties(e))}return document.execCommand(t,!1,n)},t.prototype.linkClickHandler=function(t){return this.linkProperties(t,t.attr("href"))},t.prototype.imageClickHandler=function(t){return this.imageProperties(t)},t.prototype.imageProperties=function(t,e){var n,i,r,s;return null==e&&(e=null),r=new App.Dialog("Bild bearbeiten"),s=t?t.width():this.element.innerWidth(),i='<form>\n  <label>Ausrichtung</label>\n  <select name="alignment">\n    <option value="">Keine Auswahl</option>\n    <option value="left">Links</option>\n    <option value="right">Rechts</option>\n  </select>\n\n  <label>Größe in Pixel</label>\n  <input type="text" name="size" value="'+s+'" />\n\n  <label>\n    <input type="checkbox" name="fit" value="1" />\n    Bild auf Containergröße anpassen\n  </label>\n</form>',n=[{text:"Bild entfernen",type:"grey",handler:function(e){return function(){return t&&t.remove(),r.hide()}}(this)},{text:"Speichern",type:"primary",handler:function(e){return function(){var n,i,o;return n=r.find('select[name="alignment"]').val(),s=parseInt(r.find('input[name="size"]').val()),i=r.find('input[name="fit"]:checked').val(),i&&(s=e.element.innerWidth()),o=t.height()/t.width(),t.attr("align",n).attr("width",s).attr("height",Math.round(s*o)),r.hide()}}(this)}],r.update(i,n)},t.prototype.linkProperties=function(t,e){var n,i,r,s,o,a,l;return null==e&&(e=""),s=new App.Dialog("Link bearbeiten"),o=function(t){return function(t,e){var n,i;return i=new RegExp(e,"gi"),n="<strong>"+e.toUpperCase()+"</strong>",t.replace(i,n)}}(this),n=function(t){return function(){var e;return n=$('#rs form input[name="autocomplete"]'),e=t.opts.absolute_urls?"?absolute=1":"",n.autocomplete({source:""+t.opts.linking_endpoint+e,minLength:2,appendTo:$("#rs"),focus:function(t,e){return n.val(e.item.label),!1},select:function(t,e){return $('#rs form input[name="link"]').val(e.item.value),!1}}).data("autocomplete")._renderItem=function(t,e){var i,r;return r=function(){switch(e.type){case"agent":return"Agent";case"page":return"Seite";case"post":return"Blogpost";case"landing_page":return"Landing Page"}}(),i=n.val(),$("<li></li>").data("item.autocomplete",e).append("<a><strong>"+r+"</strong>: "+o(e.label,i)+"</a>").appendTo(t)}}}(this),l=$(t).html(),a=l===$(t).text()?'<label>Linktext</label>\n<input type="text" name="html" value="'+l+'" class="span5" />':"",r="<form>\n  "+a+'\n\n  <label>Link zu einer Seite, Blogpost oder einem Agenten</label>\n  <input type="text" class="span5" name="autocomplete" autofocus="autofocus" />\n  <p class="help-block">Tippen Sie einfach die beiden Anfangsbuchstaben ein.</p>\n\n  <label>Link einer URL</label>\n  <input type="text" name="link" value="'+e+'" class="span5" />\n  <p class="help-block">Hier können Sie auch eine externe URL eingeben.</p>\n</form>',i=[{text:"Link entfernen",handler:function(e){return function(){return t.replaceWith($(t).html()),s.hide()}}(this)},{text:"Link aufrufen",handler:function(){return s.hide(),document.location.href=s.find('input[name="link"]').val()}},{text:"Speichern",type:"success",handler:function(n){return function(){return e=s.find('input[name="link"]').val(),a=s.find('input[name="html"]').val(),t.attr("href",e),a&&a.length>0&&t.html(a),s.hide()}}(this)}],s.update(r,i,{onload:n})},t.prototype.insertAttachment=function(){return new App.Attachments(this.opts.source,this.opts.attachments_endpoint,function(t){return function(e){var n,i,r,s,o;return r="image"===e.type?(n=e.meta.dimensions,o=n.width>t.element.innerWidth()?t.element.innerWidth():n.width,s=n.height/n.width,i=Math.round(o*s),'<img src="'+e.url+'" alt="'+e.name+'" width="'+o+'" height="'+i+'" />'):'<a href="'+e.url+'">'+e.name+"</a>",document.execCommand("inserthtml",!1,r)}}(this))},t.prototype.insertLink=function(){return this.linkProperties($('a[href="#rs_tmp"]'),"https://")},t.prototype.insertHeading=function(){return"<h"+prompt("Größe der Überschrift (1-6)?")+">"},t.prototype.insertTable=function(){var t,e,n,i,r,s;return n=parseInt(prompt("Wie viele Spalten soll die Tabelle enthalten?")),s=parseInt(prompt("Wie viele Zeilen soll die Tabelle enthalten?")),i=function(){var i,o,a,l,c;for(c=[],r=i=1,a=s;a>=1?a>=i:i>=a;r=a>=1?++i:--i){for(e="<tr>",t=o=1,l=n;l>=1?l>=o:o>=l;t=l>=1?++o:--o)e+="<td>Platzhalter</td>";c.push(e+="</tr>")}return c}(),"<table>"+i.join("")+"</table>"},t}(),App.Utils=function(){function t(){}return t.slugify=function(t){return t=t.toLowerCase(),t=t.replace(/\s/g,"-"),t=t.replace(/ä/g,"ae"),t=t.replace(/ö/g,"oe"),t=t.replace(/ü/g,"ue"),t=t.replace(/ß/g,"ss"),t=t.replace(/[^a-zA-Z0-9\-]/g,"-"),t.replace(/\-+/g,"-")},t}();var JSON;JSON||(JSON={}),function(){"use strict";function f(t){return 10>t?"0"+t:t}function quote(t){return escapable.lastIndex=0,escapable.test(t)?'"'+t.replace(escapable,function(t){var e=meta[t];return"string"==typeof e?e:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+t+'"'}function str(t,e){var n,i,r,s,o,a=gap,l=e[t];switch(l&&"object"==typeof l&&"function"==typeof l.toJSON&&(l=l.toJSON(t)),"function"==typeof rep&&(l=rep.call(e,t,l)),typeof l){case"string":return quote(l);case"number":return isFinite(l)?String(l):"null";case"boolean":case"null":return String(l);case"object":if(!l)return"null";if(gap+=indent,o=[],"[object Array]"===Object.prototype.toString.apply(l)){for(s=l.length,n=0;s>n;n+=1)o[n]=str(n,l)||"null";return r=0===o.length?"[]":gap?"[\n"+gap+o.join(",\n"+gap)+"\n"+a+"]":"["+o.join(",")+"]",gap=a,r}if(rep&&"object"==typeof rep)for(s=rep.length,n=0;s>n;n+=1)"string"==typeof rep[n]&&(i=rep[n],r=str(i,l),r&&o.push(quote(i)+(gap?": ":":")+r));else for(i in l)Object.prototype.hasOwnProperty.call(l,i)&&(r=str(i,l),r&&o.push(quote(i)+(gap?": ":":")+r));return r=0===o.length?"{}":gap?"{\n"+gap+o.join(",\n"+gap)+"\n"+a+"}":"{"+o.join(",")+"}",gap=a,r}}"function"!=typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(t){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(t){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={"\b":"\\b","	":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;
vendor: 1,028 bytes, line 11
11"function"!=typeof JSON.stringify&&(JSON.stringify=function(t,e,n){var i;if(gap="",indent="","number"==typeof n)for(i=0;n>i;i+=1)indent+=" ";else"string"==typeof n&&(indent=n);if(rep=e,e&&"function"!=typeof e&&("object"!=typeof e||"number"!=typeof e.length))throw new Error("JSON.stringify");return str("",{"":t})}),"function"!=typeof JSON.parse&&(JSON.parse=function(text,reviver){function walk(t,e){var n,i,r=t[e];if(r&&"object"==typeof r)for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i=walk(r,n),void 0!==i?r[n]=i:delete r[n]);return reviver.call(t,e,r)}var j;if(text=String(text),cx.lastIndex=0,cx.test(text)&&(text=text.replace(cx,function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)})),/^[\],:{}\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,"")))return j=eval("("+text+")"),"function"==typeof reviver?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.