gdoo/public/assets/dist/index.min.js

2 lines
268 KiB
JavaScript

function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}if(window.Modernizr=function(t,e,i){function n(t){g.cssText=t}function o(t,e){return _typeof(t)===e}function s(t,e){return!!~(""+t).indexOf(e)}function r(t,e){for(var n in t){var o=t[n];if(!s(o,"-")&&g[o]!==i)return"pfx"!=e||o}return!1}function a(t,e,n){for(var s in t){var r=e[t[s]];if(r!==i)return!1===n?t[s]:o(r,"function")?r.bind(n||e):r}return!1}function l(t,e,i){var n=t.charAt(0).toUpperCase()+t.slice(1),s=(t+" "+x.join(n+" ")+n).split(" ");return o(e,"string")||o(e,"undefined")?r(s,e):a(s=(t+" "+C.join(n+" ")+n).split(" "),e,i)}var c,h,u={},d=e.documentElement,p="modernizr",f=e.createElement(p),g=f.style,m=e.createElement("input"),v=":)",y={}.toString,b=" -webkit- -moz- -o- -ms- ".split(" "),w="Webkit Moz O ms",x=w.split(" "),C=w.toLowerCase().split(" "),_="http://www.w3.org/2000/svg",T={},E={},S={},k=[],$=k.slice,N=function(t,i,n,o){var s,r,a,l,c=e.createElement("div"),h=e.body,u=h||e.createElement("body");if(parseInt(n,10))for(;n--;)(a=e.createElement("div")).id=o?o[n]:p+(n+1),c.appendChild(a);return s=["&#173;",'<style id="s',p,'">',t,"</style>"].join(""),c.id=p,(h?c:u).innerHTML+=s,u.appendChild(c),h||(u.style.background="",u.style.overflow="hidden",l=d.style.overflow,d.style.overflow="hidden",d.appendChild(u)),r=i(c,t),h?c.parentNode.removeChild(c):(u.parentNode.removeChild(u),d.style.overflow=l),!!r},P=function(){var t={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return function(n,s){s=s||e.createElement(t[n]||"div");var r=(n="on"+n)in s;return r||(s.setAttribute||(s=e.createElement("div")),s.setAttribute&&s.removeAttribute&&(s.setAttribute(n,""),r=o(s[n],"function"),o(s[n],"undefined")||(s[n]=i),s.removeAttribute(n))),s=null,r}}(),D={}.hasOwnProperty;for(var I in h=o(D,"undefined")||o(D.call,"undefined")?function(t,e){return e in t&&o(t.constructor.prototype[e],"undefined")}:function(t,e){return D.call(t,e)},Function.prototype.bind||(Function.prototype.bind=function(t){var e=this;if("function"!=typeof e)throw new TypeError;var i=$.call(arguments,1),n=function n(){if(this instanceof n){var o=function(){};o.prototype=e.prototype;var s=new o,r=e.apply(s,i.concat($.call(arguments)));return Object(r)===r?r:s}return e.apply(t,i.concat($.call(arguments)))};return n}),T.flexbox=function(){return l("flexWrap")},T.flexboxlegacy=function(){return l("boxDirection")},T.canvas=function(){var t=e.createElement("canvas");return!!t.getContext&&!!t.getContext("2d")},T.canvastext=function(){return!!u.canvas&&!!o(e.createElement("canvas").getContext("2d").fillText,"function")},T.webgl=function(){return!!t.WebGLRenderingContext},T.touch=function(){var i;return"ontouchstart"in t||t.DocumentTouch&&e instanceof DocumentTouch?i=!0:N(["@media (",b.join("touch-enabled),("),p,")","{#modernizr{top:9px;position:absolute}}"].join(""),(function(t){i=9===t.offsetTop})),i},T.geolocation=function(){return"geolocation"in navigator},T.postmessage=function(){return!!t.postMessage},T.websqldatabase=function(){return!!t.openDatabase},T.indexedDB=function(){return!!l("indexedDB",t)},T.hashchange=function(){return P("hashchange",t)&&(e.documentMode===i||e.documentMode>7)},T.history=function(){return!!t.history&&!!history.pushState},T.draganddrop=function(){var t=e.createElement("div");return"draggable"in t||"ondragstart"in t&&"ondrop"in t},T.websockets=function(){return"WebSocket"in t||"MozWebSocket"in t},T.rgba=function(){return n("background-color:rgba(150,255,150,.5)"),s(g.backgroundColor,"rgba")},T.hsla=function(){return n("background-color:hsla(120,40%,100%,.5)"),s(g.backgroundColor,"rgba")||s(g.backgroundColor,"hsla")},T.multiplebgs=function(){return n("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(g.background)},T.backgroundsize=function(){return l("backgroundSize")},T.borderimage=function(){return l("borderImage")},T.borderradius=function(){return l("borderRadius")},T.boxshadow=function(){return l("boxShadow")},T.textshadow=function(){return""===e.createElement("div").style.textShadow},T.opacity=function(){return function(t,e){n(b.join(t+";")+(e||""))}("opacity:.55"),/^0.55$/.test(g.opacity)},T.cssanimations=function(){return l("animationName")},T.csscolumns=function(){return l("columnCount")},T.cssgradients=function(){var t="background-image:";return n((t+"-webkit- ".split(" ").join("gradient(linear,left top,right bottom,from(#9f9),to(white));"+t)+b.join("linear-gradient(left top,#9f9, white);"+t)).slice(0,-t.length)),s(g.backgroundImage,"gradient")},T.cssreflections=function(){return l("boxReflect")},T.csstransforms=function(){return!!l("transform")},T.csstransforms3d=function(){var t=!!l("perspective");return t&&"webkitPerspective"in d.style&&N("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",(function(e,i){t=9===e.offsetLeft&&3===e.offsetHeight})),t},T.csstransitions=function(){return l("transition")},T.fontface=function(){var t;return N('@font-face {font-family:"font";src:url("https://")}',(function(i,n){var o=e.getElementById("smodernizr"),s=o.sheet||o.styleSheet,r=s?s.cssRules&&s.cssRules[0]?s.cssRules[0].cssText:s.cssText||"":"";t=/src/i.test(r)&&0===r.indexOf(n.split(" ")[0])})),t},T.generatedcontent=function(){var t;return N(["#",p,"{font:0/0 a}#",p,':after{content:"',v,'";visibility:hidden;font:3px/1 a}'].join(""),(function(e){t=e.offsetHeight>=3})),t},T.video=function(){var t=e.createElement("video"),i=!1;try{(i=!!t.canPlayType)&&((i=new Boolean(i)).ogg=t.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),i.h264=t.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),i.webm=t.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""))}catch(t){}return i},T.audio=function(){var t=e.createElement("audio"),i=!1;try{(i=!!t.canPlayType)&&((i=new Boolean(i)).ogg=t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),i.mp3=t.canPlayType("audio/mpeg;").replace(/^no$/,""),i.wav=t.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),i.m4a=(t.canPlayType("audio/x-m4a;")||t.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(t){}return i},T.localstorage=function(){try{return localStorage.setItem(p,p),localStorage.removeItem(p),!0}catch(t){return!1}},T.sessionstorage=function(){try{return sessionStorage.setItem(p,p),sessionStorage.removeItem(p),!0}catch(t){return!1}},T.webworkers=function(){return!!t.Worker},T.applicationcache=function(){return!!t.applicationCache},T.svg=function(){return!!e.createElementNS&&!!e.createElementNS(_,"svg").createSVGRect},T.inlinesvg=function(){var t=e.createElement("div");return t.innerHTML="<svg/>",(t.firstChild&&t.firstChild.namespaceURI)==_},T.smil=function(){return!!e.createElementNS&&/SVGAnimate/.test(y.call(e.createElementNS(_,"animate")))},T.svgclippaths=function(){return!!e.createElementNS&&/SVGClipPath/.test(y.call(e.createElementNS(_,"clipPath")))},T)h(T,I)&&(c=I.toLowerCase(),u[c]=T[I](),k.push((u[c]?"":"no-")+c));return u.input||(u.input=function(i){for(var n=0,o=i.length;n<o;n++)S[i[n]]=i[n]in m;return S.list&&(S.list=!!e.createElement("datalist")&&!!t.HTMLDataListElement),S}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),u.inputtypes=function(t){for(var n,o,s,r=0,a=t.length;r<a;r++)m.setAttribute("type",o=t[r]),(n="text"!==m.type)&&(m.value=v,m.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(o)&&m.style.WebkitAppearance!==i?(d.appendChild(m),n=(s=e.defaultView).getComputedStyle&&"textfield"!==s.getComputedStyle(m,null).WebkitAppearance&&0!==m.offsetHeight,d.removeChild(m)):/^(search|tel)$/.test(o)||(n=/^(url|email)$/.test(o)?m.checkValidity&&!1===m.checkValidity():m.value!=v)),E[t[r]]=!!n;return E}("search tel url email datetime date month week time datetime-local number range color".split(" "))),u.addTest=function(t,e){if("object"==_typeof(t))for(var n in t)h(t,n)&&u.addTest(n,t[n]);else{if(t=t.toLowerCase(),u[t]!==i)return u;e="function"==typeof e?e():e,d.className+=" "+(e?"":"no-")+t,u[t]=e}return u},n(""),f=m=null,function(t,e){function i(){var t=f.elements;return"string"==typeof t?t.split(" "):t}function n(t){var e=p[t[u]];return e||(e={},d++,t[u]=d,p[d]=e),e}function o(t,i,o){return i||(i=e),a?i.createElement(t):(o||(o=n(i)),!(s=o.cache[t]?o.cache[t].cloneNode():h.test(t)?(o.cache[t]=o.createElem(t)).cloneNode():o.createElem(t)).canHaveChildren||c.test(t)||s.tagUrn?s:o.frag.appendChild(s));var s}function s(t){t||(t=e);var s=n(t);return f.shivCSS&&!r&&!s.hasCSS&&(s.hasCSS=!!function(t,e){var i=t.createElement("p"),n=t.getElementsByTagName("head")[0]||t.documentElement;return i.innerHTML="x<style>"+e+"</style>",n.insertBefore(i.lastChild,n.firstChild)}(t,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),a||function(t,e){e.cache||(e.cache={},e.createElem=t.createElement,e.createFrag=t.createDocumentFragment,e.frag=e.createFrag()),t.createElement=function(i){return f.shivMethods?o(i,t,e):e.createElem(i)},t.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+i().join().replace(/[\w\-]+/g,(function(t){return e.createElem(t),e.frag.createElement(t),'c("'+t+'")'}))+");return n}")(f,e.frag)}(t,s),t}var r,a,l=t.html5||{},c=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,h=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,u="_html5shiv",d=0,p={};!function(){try{var t=e.createElement("a");t.innerHTML="<xyz></xyz>",r="hidden"in t,a=1==t.childNodes.length||function(){e.createElement("a");var t=e.createDocumentFragment();return void 0===t.cloneNode||void 0===t.createDocumentFragment||void 0===t.createElement}()}catch(t){r=!0,a=!0}}();var f={elements:l.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:"3.7.0",shivCSS:!1!==l.shivCSS,supportsUnknownElements:a,shivMethods:!1!==l.shivMethods,type:"default",shivDocument:s,createElement:o,createDocumentFragment:function(t,o){if(t||(t=e),a)return t.createDocumentFragment();for(var s=(o=o||n(t)).frag.cloneNode(),r=0,l=i(),c=l.length;r<c;r++)s.createElement(l[r]);return s}};t.html5=f,s(e)}(this,e),u._version="2.8.3",u._prefixes=b,u._domPrefixes=C,u._cssomPrefixes=x,u.hasEvent=P,u.testProp=function(t){return r([t])},u.testAllProps=l,u.testStyles=N,d.className=d.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+" js "+k.join(" "),u}(this,this.document),function(t,e,i){function n(t){return"[object Function]"==m.call(t)}function o(t){return"string"==typeof t}function s(){}function r(t){return!t||"loaded"==t||"complete"==t||"uninitialized"==t}function a(){var t=v.shift();y=1,t?t.t?f((function(){("c"==t.t?d.injectCss:d.injectJs)(t.s,0,t.a,t.x,t.e,1)}),0):(t(),a()):y=0}function l(t,i,n,o,s,l,c){function h(e){if(!p&&r(u.readyState)&&(b.r=p=1,!y&&a(),u.onload=u.onreadystatechange=null,e))for(var n in"img"!=t&&f((function(){x.removeChild(u)}),50),S[i])S[i].hasOwnProperty(n)&&S[i][n].onload()}c=c||d.errorTimeout;var u=e.createElement(t),p=0,m=0,b={t:n,s:i,e:s,a:l,x:c};1===S[i]&&(m=1,S[i]=[]),"object"==t?u.data=i:(u.src=i,u.type=t),u.width=u.height="0",u.onerror=u.onload=u.onreadystatechange=function(){h.call(this,m)},v.splice(o,0,b),"img"!=t&&(m||2===S[i]?(x.insertBefore(u,w?null:g),f(h,c)):S[i].push(u))}function c(t,e,i,n,s){return y=0,e=e||"j",o(t)?l("c"==e?_:C,t,e,this.i++,i,n,s):(v.splice(this.i++,0,t),1==v.length&&a()),this}function h(){var t=d;return t.loader={load:c,i:0},t}var u,d,p=e.documentElement,f=t.setTimeout,g=e.getElementsByTagName("script")[0],m={}.toString,v=[],y=0,b="MozAppearance"in p.style,w=b&&!!e.createRange().compareNode,x=w?p:g.parentNode,C=(p=t.opera&&"[object Opera]"==m.call(t.opera),p=!!e.attachEvent&&!p,b?"object":p?"script":"img"),_=p?"script":C,T=Array.isArray||function(t){return"[object Array]"==m.call(t)},E=[],S={},k={timeout:function(t,e){return e.length&&(t.timeout=e[0]),t}};(d=function(t){function e(t,e,i,o,s){var r=function(t){t=t.split("!");var e,i,n,o=E.length,s=t.pop(),r=t.length;for(s={url:s,origUrl:s,prefixes:t},i=0;i<r;i++)n=t[i].split("="),(e=k[n.shift()])&&(s=e(s,n));for(i=0;i<o;i++)s=E[i](s);return s}(t),a=r.autoCallback;r.url.split(".").pop().split("?").shift(),r.bypass||(e&&(e=n(e)?e:e[t]||e[o]||e[t.split("/").pop().split("?")[0]]),r.instead?r.instead(t,e,i,o,s):(S[r.url]?r.noexec=!0:S[r.url]=1,i.load(r.url,r.forceCSS||!r.forceJS&&"css"==r.url.split(".").pop().split("?").shift()?"c":undefined,r.noexec,r.attrs,r.timeout),(n(e)||n(a))&&i.load((function(){h(),e&&e(r.origUrl,s,o),a&&a(r.origUrl,s,o),S[r.url]=2}))))}function i(t,i){function r(t,s){if(t){if(o(t))s||(u=function(){var t=[].slice.call(arguments);d.apply(this,t),p()}),e(t,u,i,0,c);else if(Object(t)===t)for(l in a=function(){var e,i=0;for(e in t)t.hasOwnProperty(e)&&i++;return i}(),t)t.hasOwnProperty(l)&&(!s&&!--a&&(n(u)?u=function(){var t=[].slice.call(arguments);d.apply(this,t),p()}:u[l]=function(t){return function(){var e=[].slice.call(arguments);t&&t.apply(this,e),p()}}(d[l])),e(t[l],u,i,l,c))}else!s&&p()}var a,l,c=!!t.test,h=t.load||t.both,u=t.callback||s,d=u,p=t.complete||s;r(c?t.yep:t.nope,!!h),h&&r(h)}var r,a,l=this.yepnope.loader;if(o(t))e(t,0,l,0);else if(T(t))for(r=0;r<t.length;r++)o(a=t[r])?e(a,0,l,0):T(a)?d(a):Object(a)===a&&i(a,l);else Object(t)===t&&i(t,l)}).addPrefix=function(t,e){k[t]=e},d.addFilter=function(t){E.push(t)},d.errorTimeout=1e4,null==e.readyState&&e.addEventListener&&(e.readyState="loading",e.addEventListener("DOMContentLoaded",u=function(){e.removeEventListener("DOMContentLoaded",u,0),e.readyState="complete"},0)),t.yepnope=h(),t.yepnope.executeStack=a,t.yepnope.injectJs=function(t,i,n,o,l,c){var h,u,p=e.createElement("script");o=o||d.errorTimeout;for(u in p.src=t,n)p.setAttribute(u,n[u]);i=c?a:i||s,p.onreadystatechange=p.onload=function(){!h&&r(p.readyState)&&(h=1,i(),p.onload=p.onreadystatechange=null)},f((function(){h||(h=1,i(1))}),o),l?p.onload():g.parentNode.insertBefore(p,g)},t.yepnope.injectCss=function(t,i,n,o,r,l){var c;o=e.createElement("link"),i=l?a:i||s;for(c in o.href=t,o.rel="stylesheet",o.type="text/css",n)o.setAttribute(c,n[c]);r||(g.parentNode.insertBefore(o,g),f(i,0))}}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))},function(t,e){"object"===("undefined"==typeof module?"undefined":_typeof(module))&&"object"===_typeof(module.exports)?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,(function(t,e){var i=[],n=i.slice,o=i.concat,s=i.push,r=i.indexOf,a={},l=a.toString,c=a.hasOwnProperty,h={},u="1.11.3",d=function t(e,i){return new t.fn.init(e,i)},p=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,f=/^-ms-/,g=/-([\da-z])/gi,m=function(t,e){return e.toUpperCase()};function v(t){var e="length"in t&&t.length,i=d.type(t);return"function"!==i&&!d.isWindow(t)&&(!(1!==t.nodeType||!e)||("array"===i||0===e||"number"==typeof e&&e>0&&e-1 in t))}d.fn=d.prototype={jquery:u,constructor:d,selector:"",length:0,toArray:function(){return n.call(this)},get:function(t){return null!=t?t<0?this[t+this.length]:this[t]:n.call(this)},pushStack:function(t){var e=d.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t,e){return d.each(this,t,e)},map:function(t){return this.pushStack(d.map(this,(function(e,i){return t.call(e,i,e)})))},slice:function(){return this.pushStack(n.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,i=+t+(t<0?e:0);return this.pushStack(i>=0&&i<e?[this[i]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:s,sort:i.sort,splice:i.splice},d.extend=d.fn.extend=function(){var t,e,i,n,o,s,r=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof r&&(c=r,r=arguments[a]||{},a++),"object"===_typeof(r)||d.isFunction(r)||(r={}),a===l&&(r=this,a--);a<l;a++)if(null!=(o=arguments[a]))for(n in o)t=r[n],r!==(i=o[n])&&(c&&i&&(d.isPlainObject(i)||(e=d.isArray(i)))?(e?(e=!1,s=t&&d.isArray(t)?t:[]):s=t&&d.isPlainObject(t)?t:{},r[n]=d.extend(c,s,i)):void 0!==i&&(r[n]=i));return r},d.extend({expando:"jQuery"+(u+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===d.type(t)},isArray:Array.isArray||function(t){return"array"===d.type(t)},isWindow:function(t){return null!=t&&t==t.window},isNumeric:function(t){return!d.isArray(t)&&t-parseFloat(t)+1>=0},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},isPlainObject:function(t){var e;if(!t||"object"!==d.type(t)||t.nodeType||d.isWindow(t))return!1;try{if(t.constructor&&!c.call(t,"constructor")&&!c.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}if(h.ownLast)for(e in t)return c.call(t,e);for(e in t);return void 0===e||c.call(t,e)},type:function(t){return null==t?t+"":"object"===_typeof(t)||"function"==typeof t?a[l.call(t)]||"object":_typeof(t)},globalEval:function(e){e&&d.trim(e)&&(t.execScript||function(e){t.eval.call(t,e)})(e)},camelCase:function(t){return t.replace(f,"ms-").replace(g,m)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e,i){var n=0,o=t.length,s=v(t);if(i){if(s)for(;n<o&&!1!==e.apply(t[n],i);n++);else for(n in t)if(!1===e.apply(t[n],i))break}else if(s)for(;n<o&&!1!==e.call(t[n],n,t[n]);n++);else for(n in t)if(!1===e.call(t[n],n,t[n]))break;return t},trim:function(t){return null==t?"":(t+"").replace(p,"")},makeArray:function(t,e){var i=e||[];return null!=t&&(v(Object(t))?d.merge(i,"string"==typeof t?[t]:t):s.call(i,t)),i},inArray:function(t,e,i){var n;if(e){if(r)return r.call(e,t,i);for(n=e.length,i=i?i<0?Math.max(0,n+i):i:0;i<n;i++)if(i in e&&e[i]===t)return i}return-1},merge:function(t,e){for(var i=+e.length,n=0,o=t.length;n<i;)t[o++]=e[n++];if(i!=i)for(;void 0!==e[n];)t[o++]=e[n++];return t.length=o,t},grep:function(t,e,i){for(var n=[],o=0,s=t.length,r=!i;o<s;o++)!e(t[o],o)!==r&&n.push(t[o]);return n},map:function(t,e,i){var n,s=0,r=t.length,a=[];if(v(t))for(;s<r;s++)null!=(n=e(t[s],s,i))&&a.push(n);else for(s in t)null!=(n=e(t[s],s,i))&&a.push(n);return o.apply([],a)},guid:1,proxy:function(t,e){var i,o,s;if("string"==typeof e&&(s=t[e],e=t,t=s),d.isFunction(t))return i=n.call(arguments,2),o=function(){return t.apply(e||this,i.concat(n.call(arguments)))},o.guid=t.guid=t.guid||d.guid++,o},now:function(){return+new Date},support:h}),d.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),(function(t,e){a["[object "+e+"]"]=e.toLowerCase()}));var y=function(t){var e,i,n,o,s,r,a,l,c,h,u,d,p,f,g,m,v,y,b,w="sizzle"+1*new Date,x=t.document,C=0,_=0,T=rt(),E=rt(),S=rt(),k=function(t,e){return t===e&&(u=!0),0},$=1<<31,N={}.hasOwnProperty,P=[],D=P.pop,I=P.push,A=P.push,H=P.slice,z=function(t,e){for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i;return-1},O="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",j="[\\x20\\t\\r\\n\\f]",L="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",W=L.replace("w","w#"),M="\\[[\\x20\\t\\r\\n\\f]*("+L+")(?:"+j+"*([*^$|!~]?=)"+j+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+W+"))|)"+j+"*\\]",R=":("+L+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+M+")*)|.*)\\)|)",F=new RegExp(j+"+","g"),B=new RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g"),q=new RegExp("^[\\x20\\t\\r\\n\\f]*,[\\x20\\t\\r\\n\\f]*"),U=new RegExp("^[\\x20\\t\\r\\n\\f]*([>+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),X=new RegExp("=[\\x20\\t\\r\\n\\f]*([^\\]'\"]*?)[\\x20\\t\\r\\n\\f]*\\]","g"),Y=new RegExp(R),Q=new RegExp("^"+W+"$"),V={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L.replace("w","w*")+")"),ATTR:new RegExp("^"+M),PSEUDO:new RegExp("^"+R),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:new RegExp("^(?:"+O+")$","i"),needsContext:new RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},J=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,G=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=/'|\\/g,it=new RegExp("\\\\([\\da-f]{1,6}[\\x20\\t\\r\\n\\f]?|([\\x20\\t\\r\\n\\f])|.)","ig"),nt=function(t,e,i){var n="0x"+e-65536;return n!=n||i?e:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},ot=function(){d()};try{A.apply(P=H.call(x.childNodes),x.childNodes),P[x.childNodes.length].nodeType}catch(t){A={apply:P.length?function(t,e){I.apply(t,H.call(e))}:function(t,e){for(var i=t.length,n=0;t[i++]=e[n++];);t.length=i-1}}}function st(t,e,n,o){var s,a,c,h,u,f,v,y,C,_;if((e?e.ownerDocument||e:x)!==p&&d(e),n=n||[],h=(e=e||p).nodeType,"string"!=typeof t||!t||1!==h&&9!==h&&11!==h)return n;if(!o&&g){if(11!==h&&(s=Z.exec(t)))if(c=s[1]){if(9===h){if(!(a=e.getElementById(c))||!a.parentNode)return n;if(a.id===c)return n.push(a),n}else if(e.ownerDocument&&(a=e.ownerDocument.getElementById(c))&&b(e,a)&&a.id===c)return n.push(a),n}else{if(s[2])return A.apply(n,e.getElementsByTagName(t)),n;if((c=s[3])&&i.getElementsByClassName)return A.apply(n,e.getElementsByClassName(c)),n}if(i.qsa&&(!m||!m.test(t))){if(y=v=w,C=e,_=1!==h&&t,1===h&&"object"!==e.nodeName.toLowerCase()){for(f=r(t),(v=e.getAttribute("id"))?y=v.replace(et,"\\$&"):e.setAttribute("id",y),y="[id='"+y+"'] ",u=f.length;u--;)f[u]=y+mt(f[u]);C=tt.test(t)&&ft(e.parentNode)||e,_=f.join(",")}if(_)try{return A.apply(n,C.querySelectorAll(_)),n}catch(t){}finally{v||e.removeAttribute("id")}}}return l(t.replace(B,"$1"),e,n,o)}function rt(){var t=[];return function e(i,o){return t.push(i+" ")>n.cacheLength&&delete e[t.shift()],e[i+" "]=o}}function at(t){return t[w]=!0,t}function lt(t){var e=p.createElement("div");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ct(t,e){for(var i=t.split("|"),o=t.length;o--;)n.attrHandle[i[o]]=e}function ht(t,e){var i=e&&t,n=i&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||$)-(~t.sourceIndex||$);if(n)return n;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function ut(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function dt(t){return function(e){var i=e.nodeName.toLowerCase();return("input"===i||"button"===i)&&e.type===t}}function pt(t){return at((function(e){return e=+e,at((function(i,n){for(var o,s=t([],i.length,e),r=s.length;r--;)i[o=s[r]]&&(i[o]=!(n[o]=i[o]))}))}))}function ft(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in i=st.support={},s=st.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},d=st.setDocument=function(t){var e,o,r=t?t.ownerDocument||t:x;return r!==p&&9===r.nodeType&&r.documentElement?(p=r,f=r.documentElement,(o=r.defaultView)&&o!==o.top&&(o.addEventListener?o.addEventListener("unload",ot,!1):o.attachEvent&&o.attachEvent("onunload",ot)),g=!s(r),i.attributes=lt((function(t){return t.className="i",!t.getAttribute("className")})),i.getElementsByTagName=lt((function(t){return t.appendChild(r.createComment("")),!t.getElementsByTagName("*").length})),i.getElementsByClassName=G.test(r.getElementsByClassName),i.getById=lt((function(t){return f.appendChild(t).id=w,!r.getElementsByName||!r.getElementsByName(w).length})),i.getById?(n.find.ID=function(t,e){if(void 0!==e.getElementById&&g){var i=e.getElementById(t);return i&&i.parentNode?[i]:[]}},n.filter.ID=function(t){var e=t.replace(it,nt);return function(t){return t.getAttribute("id")===e}}):(delete n.find.ID,n.filter.ID=function(t){var e=t.replace(it,nt);return function(t){var i=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return i&&i.value===e}}),n.find.TAG=i.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):i.qsa?e.querySelectorAll(t):void 0}:function(t,e){var i,n=[],o=0,s=e.getElementsByTagName(t);if("*"===t){for(;i=s[o++];)1===i.nodeType&&n.push(i);return n}return s},n.find.CLASS=i.getElementsByClassName&&function(t,e){if(g)return e.getElementsByClassName(t)},v=[],m=[],(i.qsa=G.test(r.querySelectorAll))&&(lt((function(t){f.appendChild(t).innerHTML="<a id='"+w+"'></a><select id='"+w+"-\f]' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),t.querySelectorAll("[selected]").length||m.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+O+")"),t.querySelectorAll("[id~="+w+"-]").length||m.push("~="),t.querySelectorAll(":checked").length||m.push(":checked"),t.querySelectorAll("a#"+w+"+*").length||m.push(".#.+[+~]")})),lt((function(t){var e=r.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&m.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),t.querySelectorAll(":enabled").length||m.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),m.push(",.*:")}))),(i.matchesSelector=G.test(y=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&lt((function(t){i.disconnectedMatch=y.call(t,"div"),y.call(t,"[s!='']:x"),v.push("!=",R)})),m=m.length&&new RegExp(m.join("|")),v=v.length&&new RegExp(v.join("|")),e=G.test(f.compareDocumentPosition),b=e||G.test(f.contains)?function(t,e){var i=9===t.nodeType?t.documentElement:t,n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},k=e?function(t,e){if(t===e)return u=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!i.sortDetached&&e.compareDocumentPosition(t)===n?t===r||t.ownerDocument===x&&b(x,t)?-1:e===r||e.ownerDocument===x&&b(x,e)?1:h?z(h,t)-z(h,e):0:4&n?-1:1)}:function(t,e){if(t===e)return u=!0,0;var i,n=0,o=t.parentNode,s=e.parentNode,a=[t],l=[e];if(!o||!s)return t===r?-1:e===r?1:o?-1:s?1:h?z(h,t)-z(h,e):0;if(o===s)return ht(t,e);for(i=t;i=i.parentNode;)a.unshift(i);for(i=e;i=i.parentNode;)l.unshift(i);for(;a[n]===l[n];)n++;return n?ht(a[n],l[n]):a[n]===x?-1:l[n]===x?1:0},r):p},st.matches=function(t,e){return st(t,null,null,e)},st.matchesSelector=function(t,e){if((t.ownerDocument||t)!==p&&d(t),e=e.replace(X,"='$1']"),i.matchesSelector&&g&&(!v||!v.test(e))&&(!m||!m.test(e)))try{var n=y.call(t,e);if(n||i.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){}return st(e,p,null,[t]).length>0},st.contains=function(t,e){return(t.ownerDocument||t)!==p&&d(t),b(t,e)},st.attr=function(t,e){(t.ownerDocument||t)!==p&&d(t);var o=n.attrHandle[e.toLowerCase()],s=o&&N.call(n.attrHandle,e.toLowerCase())?o(t,e,!g):void 0;return void 0!==s?s:i.attributes||!g?t.getAttribute(e):(s=t.getAttributeNode(e))&&s.specified?s.value:null},st.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},st.uniqueSort=function(t){var e,n=[],o=0,s=0;if(u=!i.detectDuplicates,h=!i.sortStable&&t.slice(0),t.sort(k),u){for(;e=t[s++];)e===t[s]&&(o=n.push(s));for(;o--;)t.splice(n[o],1)}return h=null,t},o=st.getText=function(t){var e,i="",n=0,s=t.nodeType;if(s){if(1===s||9===s||11===s){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=o(t)}else if(3===s||4===s)return t.nodeValue}else for(;e=t[n++];)i+=o(e);return i},(n=st.selectors={cacheLength:50,createPseudo:at,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(it,nt),t[3]=(t[3]||t[4]||t[5]||"").replace(it,nt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||st.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&st.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return V.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&Y.test(i)&&(e=r(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(it,nt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=T[t+" "];return e||(e=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+t+"("+j+"|$)"))&&T(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,i){return function(n){var o=st.attr(n,t);return null==o?"!="===e:!e||(o+="","="===e?o===i:"!="===e?o!==i:"^="===e?i&&0===o.indexOf(i):"*="===e?i&&o.indexOf(i)>-1:"$="===e?i&&o.slice(-i.length)===i:"~="===e?(" "+o.replace(F," ")+" ").indexOf(i)>-1:"|="===e&&(o===i||o.slice(0,i.length+1)===i+"-"))}},CHILD:function(t,e,i,n,o){var s="nth"!==t.slice(0,3),r="last"!==t.slice(-4),a="of-type"===e;return 1===n&&0===o?function(t){return!!t.parentNode}:function(e,i,l){var c,h,u,d,p,f,g=s!==r?"nextSibling":"previousSibling",m=e.parentNode,v=a&&e.nodeName.toLowerCase(),y=!l&&!a;if(m){if(s){for(;g;){for(u=e;u=u[g];)if(a?u.nodeName.toLowerCase()===v:1===u.nodeType)return!1;f=g="only"===t&&!f&&"nextSibling"}return!0}if(f=[r?m.firstChild:m.lastChild],r&&y){for(p=(c=(h=m[w]||(m[w]={}))[t]||[])[0]===C&&c[1],d=c[0]===C&&c[2],u=p&&m.childNodes[p];u=++p&&u&&u[g]||(d=p=0)||f.pop();)if(1===u.nodeType&&++d&&u===e){h[t]=[C,p,d];break}}else if(y&&(c=(e[w]||(e[w]={}))[t])&&c[0]===C)d=c[1];else for(;(u=++p&&u&&u[g]||(d=p=0)||f.pop())&&((a?u.nodeName.toLowerCase()!==v:1!==u.nodeType)||!++d||(y&&((u[w]||(u[w]={}))[t]=[C,d]),u!==e)););return(d-=o)===n||d%n==0&&d/n>=0}}},PSEUDO:function(t,e){var i,o=n.pseudos[t]||n.setFilters[t.toLowerCase()]||st.error("unsupported pseudo: "+t);return o[w]?o(e):o.length>1?(i=[t,t,"",e],n.setFilters.hasOwnProperty(t.toLowerCase())?at((function(t,i){for(var n,s=o(t,e),r=s.length;r--;)t[n=z(t,s[r])]=!(i[n]=s[r])})):function(t){return o(t,0,i)}):o}},pseudos:{not:at((function(t){var e=[],i=[],n=a(t.replace(B,"$1"));return n[w]?at((function(t,e,i,o){for(var s,r=n(t,null,o,[]),a=t.length;a--;)(s=r[a])&&(t[a]=!(e[a]=s))})):function(t,o,s){return e[0]=t,n(e,null,s,i),e[0]=null,!i.pop()}})),has:at((function(t){return function(e){return st(t,e).length>0}})),contains:at((function(t){return t=t.replace(it,nt),function(e){return(e.textContent||e.innerText||o(e)).indexOf(t)>-1}})),lang:at((function(t){return Q.test(t||"")||st.error("unsupported lang: "+t),t=t.replace(it,nt).toLowerCase(),function(e){var i;do{if(i=g?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(i=i.toLowerCase())===t||0===i.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(e){var i=t.location&&t.location.hash;return i&&i.slice(1)===e.id},root:function(t){return t===f},focus:function(t){return t===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return!1===t.disabled},disabled:function(t){return!0===t.disabled},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!n.pseudos.empty(t)},header:function(t){return K.test(t.nodeName)},input:function(t){return J.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:pt((function(){return[0]})),last:pt((function(t,e){return[e-1]})),eq:pt((function(t,e,i){return[i<0?i+e:i]})),even:pt((function(t,e){for(var i=0;i<e;i+=2)t.push(i);return t})),odd:pt((function(t,e){for(var i=1;i<e;i+=2)t.push(i);return t})),lt:pt((function(t,e,i){for(var n=i<0?i+e:i;--n>=0;)t.push(n);return t})),gt:pt((function(t,e,i){for(var n=i<0?i+e:i;++n<e;)t.push(n);return t}))}}).pseudos.nth=n.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})n.pseudos[e]=ut(e);for(e in{submit:!0,reset:!0})n.pseudos[e]=dt(e);function gt(){}function mt(t){for(var e=0,i=t.length,n="";e<i;e++)n+=t[e].value;return n}function vt(t,e,i){var n=e.dir,o=i&&"parentNode"===n,s=_++;return e.first?function(e,i,s){for(;e=e[n];)if(1===e.nodeType||o)return t(e,i,s)}:function(e,i,r){var a,l,c=[C,s];if(r){for(;e=e[n];)if((1===e.nodeType||o)&&t(e,i,r))return!0}else for(;e=e[n];)if(1===e.nodeType||o){if((a=(l=e[w]||(e[w]={}))[n])&&a[0]===C&&a[1]===s)return c[2]=a[2];if(l[n]=c,c[2]=t(e,i,r))return!0}}}function yt(t){return t.length>1?function(e,i,n){for(var o=t.length;o--;)if(!t[o](e,i,n))return!1;return!0}:t[0]}function bt(t,e,i,n,o){for(var s,r=[],a=0,l=t.length,c=null!=e;a<l;a++)(s=t[a])&&(i&&!i(s,n,o)||(r.push(s),c&&e.push(a)));return r}function wt(t,e,i,n,o,s){return n&&!n[w]&&(n=wt(n)),o&&!o[w]&&(o=wt(o,s)),at((function(s,r,a,l){var c,h,u,d=[],p=[],f=r.length,g=s||function(t,e,i){for(var n=0,o=e.length;n<o;n++)st(t,e[n],i);return i}(e||"*",a.nodeType?[a]:a,[]),m=!t||!s&&e?g:bt(g,d,t,a,l),v=i?o||(s?t:f||n)?[]:r:m;if(i&&i(m,v,a,l),n)for(c=bt(v,p),n(c,[],a,l),h=c.length;h--;)(u=c[h])&&(v[p[h]]=!(m[p[h]]=u));if(s){if(o||t){if(o){for(c=[],h=v.length;h--;)(u=v[h])&&c.push(m[h]=u);o(null,v=[],c,l)}for(h=v.length;h--;)(u=v[h])&&(c=o?z(s,u):d[h])>-1&&(s[c]=!(r[c]=u))}}else v=bt(v===r?v.splice(f,v.length):v),o?o(null,r,v,l):A.apply(r,v)}))}function xt(t){for(var e,i,o,s=t.length,r=n.relative[t[0].type],a=r||n.relative[" "],l=r?1:0,h=vt((function(t){return t===e}),a,!0),u=vt((function(t){return z(e,t)>-1}),a,!0),d=[function(t,i,n){var o=!r&&(n||i!==c)||((e=i).nodeType?h(t,i,n):u(t,i,n));return e=null,o}];l<s;l++)if(i=n.relative[t[l].type])d=[vt(yt(d),i)];else{if((i=n.filter[t[l].type].apply(null,t[l].matches))[w]){for(o=++l;o<s&&!n.relative[t[o].type];o++);return wt(l>1&&yt(d),l>1&&mt(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(B,"$1"),i,l<o&&xt(t.slice(l,o)),o<s&&xt(t=t.slice(o)),o<s&&mt(t))}d.push(i)}return yt(d)}return gt.prototype=n.filters=n.pseudos,n.setFilters=new gt,r=st.tokenize=function(t,e){var i,o,s,r,a,l,c,h=E[t+" "];if(h)return e?0:h.slice(0);for(a=t,l=[],c=n.preFilter;a;){for(r in i&&!(o=q.exec(a))||(o&&(a=a.slice(o[0].length)||a),l.push(s=[])),i=!1,(o=U.exec(a))&&(i=o.shift(),s.push({value:i,type:o[0].replace(B," ")}),a=a.slice(i.length)),n.filter)!(o=V[r].exec(a))||c[r]&&!(o=c[r](o))||(i=o.shift(),s.push({value:i,type:r,matches:o}),a=a.slice(i.length));if(!i)break}return e?a.length:a?st.error(t):E(t,l).slice(0)},a=st.compile=function(t,e){var i,o=[],s=[],a=S[t+" "];if(!a){for(e||(e=r(t)),i=e.length;i--;)(a=xt(e[i]))[w]?o.push(a):s.push(a);(a=S(t,function(t,e){var i=e.length>0,o=t.length>0,s=function(s,r,a,l,h){var u,d,f,g=0,m="0",v=s&&[],y=[],b=c,w=s||o&&n.find.TAG("*",h),x=C+=null==b?1:Math.random()||.1,_=w.length;for(h&&(c=r!==p&&r);m!==_&&null!=(u=w[m]);m++){if(o&&u){for(d=0;f=t[d++];)if(f(u,r,a)){l.push(u);break}h&&(C=x)}i&&((u=!f&&u)&&g--,s&&v.push(u))}if(g+=m,i&&m!==g){for(d=0;f=e[d++];)f(v,y,r,a);if(s){if(g>0)for(;m--;)v[m]||y[m]||(y[m]=D.call(l));y=bt(y)}A.apply(l,y),h&&!s&&y.length>0&&g+e.length>1&&st.uniqueSort(l)}return h&&(C=x,c=b),v};return i?at(s):s}(s,o))).selector=t}return a},l=st.select=function(t,e,o,s){var l,c,h,u,d,p="function"==typeof t&&t,f=!s&&r(t=p.selector||t);if(o=o||[],1===f.length){if((c=f[0]=f[0].slice(0)).length>2&&"ID"===(h=c[0]).type&&i.getById&&9===e.nodeType&&g&&n.relative[c[1].type]){if(!(e=(n.find.ID(h.matches[0].replace(it,nt),e)||[])[0]))return o;p&&(e=e.parentNode),t=t.slice(c.shift().value.length)}for(l=V.needsContext.test(t)?0:c.length;l--&&(h=c[l],!n.relative[u=h.type]);)if((d=n.find[u])&&(s=d(h.matches[0].replace(it,nt),tt.test(c[0].type)&&ft(e.parentNode)||e))){if(c.splice(l,1),!(t=s.length&&mt(c)))return A.apply(o,s),o;break}}return(p||a(t,f))(s,e,!g,o,tt.test(t)&&ft(e.parentNode)||e),o},i.sortStable=w.split("").sort(k).join("")===w,i.detectDuplicates=!!u,d(),i.sortDetached=lt((function(t){return 1&t.compareDocumentPosition(p.createElement("div"))})),lt((function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")}))||ct("type|href|height|width",(function(t,e,i){if(!i)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)})),i.attributes&&lt((function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}))||ct("value",(function(t,e,i){if(!i&&"input"===t.nodeName.toLowerCase())return t.defaultValue})),lt((function(t){return null==t.getAttribute("disabled")}))||ct(O,(function(t,e,i){var n;if(!i)return!0===t[e]?e.toLowerCase():(n=t.getAttributeNode(e))&&n.specified?n.value:null})),st}(t);d.find=y,(d.expr=y.selectors)[":"]=d.expr.pseudos,d.unique=y.uniqueSort,d.text=y.getText,d.isXMLDoc=y.isXML,d.contains=y.contains;var b=d.expr.match.needsContext,w=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,x=/^.[^:#\[\.,]*$/;function C(t,e,i){if(d.isFunction(e))return d.grep(t,(function(t,n){return!!e.call(t,n,t)!==i}));if(e.nodeType)return d.grep(t,(function(t){return t===e!==i}));if("string"==typeof e){if(x.test(e))return d.filter(e,t,i);e=d.filter(e,t)}return d.grep(t,(function(t){return d.inArray(t,e)>=0!==i}))}d.filter=function(t,e,i){var n=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?d.find.matchesSelector(n,t)?[n]:[]:d.find.matches(t,d.grep(e,(function(t){return 1===t.nodeType})))},d.fn.extend({find:function(t){var e,i=[],n=this,o=n.length;if("string"!=typeof t)return this.pushStack(d(t).filter((function(){for(e=0;e<o;e++)if(d.contains(n[e],this))return!0})));for(e=0;e<o;e++)d.find(t,n[e],i);return(i=this.pushStack(o>1?d.unique(i):i)).selector=this.selector?this.selector+" "+t:t,i},filter:function(t){return this.pushStack(C(this,t||[],!1))},not:function(t){return this.pushStack(C(this,t||[],!0))},is:function(t){return!!C(this,"string"==typeof t&&b.test(t)?d(t):t||[],!1).length}});var _,T=t.document,E=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(d.fn.init=function(t,e){var i,n;if(!t)return this;if("string"==typeof t){if(!(i="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&t.length>=3?[null,t,null]:E.exec(t))||!i[1]&&e)return!e||e.jquery?(e||_).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof d?e[0]:e,d.merge(this,d.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:T,!0)),w.test(i[1])&&d.isPlainObject(e))for(i in e)d.isFunction(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}if((n=T.getElementById(i[2]))&&n.parentNode){if(n.id!==i[2])return _.find(t);this.length=1,this[0]=n}return this.context=T,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):d.isFunction(t)?void 0!==_.ready?_.ready(t):t(d):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),d.makeArray(t,this))}).prototype=d.fn,_=d(T);var S=/^(?:parents|prev(?:Until|All))/,k={children:!0,contents:!0,next:!0,prev:!0};function $(t,e){do{t=t[e]}while(t&&1!==t.nodeType);return t}d.extend({dir:function(t,e,i){for(var n=[],o=t[e];o&&9!==o.nodeType&&(void 0===i||1!==o.nodeType||!d(o).is(i));)1===o.nodeType&&n.push(o),o=o[e];return n},sibling:function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i}}),d.fn.extend({has:function(t){var e,i=d(t,this),n=i.length;return this.filter((function(){for(e=0;e<n;e++)if(d.contains(this,i[e]))return!0}))},closest:function(t,e){for(var i,n=0,o=this.length,s=[],r=b.test(t)||"string"!=typeof t?d(t,e||this.context):0;n<o;n++)for(i=this[n];i&&i!==e;i=i.parentNode)if(i.nodeType<11&&(r?r.index(i)>-1:1===i.nodeType&&d.find.matchesSelector(i,t))){s.push(i);break}return this.pushStack(s.length>1?d.unique(s):s)},index:function(t){return t?"string"==typeof t?d.inArray(this[0],d(t)):d.inArray(t.jquery?t[0]:t,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(d.unique(d.merge(this.get(),d(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),d.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return d.dir(t,"parentNode")},parentsUntil:function(t,e,i){return d.dir(t,"parentNode",i)},next:function(t){return $(t,"nextSibling")},prev:function(t){return $(t,"previousSibling")},nextAll:function(t){return d.dir(t,"nextSibling")},prevAll:function(t){return d.dir(t,"previousSibling")},nextUntil:function(t,e,i){return d.dir(t,"nextSibling",i)},prevUntil:function(t,e,i){return d.dir(t,"previousSibling",i)},siblings:function(t){return d.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return d.sibling(t.firstChild)},contents:function(t){return d.nodeName(t,"iframe")?t.contentDocument||t.contentWindow.document:d.merge([],t.childNodes)}},(function(t,e){d.fn[t]=function(i,n){var o=d.map(this,e,i);return"Until"!==t.slice(-5)&&(n=i),n&&"string"==typeof n&&(o=d.filter(n,o)),this.length>1&&(k[t]||(o=d.unique(o)),S.test(t)&&(o=o.reverse())),this.pushStack(o)}}));var N,P=/\S+/g,D={};function I(){T.addEventListener?(T.removeEventListener("DOMContentLoaded",A,!1),t.removeEventListener("load",A,!1)):(T.detachEvent("onreadystatechange",A),t.detachEvent("onload",A))}function A(){(T.addEventListener||"load"===event.type||"complete"===T.readyState)&&(I(),d.ready())}d.Callbacks=function(t){t="string"==typeof t?D[t]||function(t){var e=D[t]={};return d.each(t.match(P)||[],(function(t,i){e[i]=!0})),e}(t):d.extend({},t);var e,i,n,o,s,r,a=[],l=!t.once&&[],c=function c(u){for(i=t.memory&&u,n=!0,s=r||0,r=0,o=a.length,e=!0;a&&s<o;s++)if(!1===a[s].apply(u[0],u[1])&&t.stopOnFalse){i=!1;break}e=!1,a&&(l?l.length&&c(l.shift()):i?a=[]:h.disable())},h={add:function(){if(a){var n=a.length;!function e(i){d.each(i,(function(i,n){var o=d.type(n);"function"===o?t.unique&&h.has(n)||a.push(n):n&&n.length&&"string"!==o&&e(n)}))}(arguments),e?o=a.length:i&&(r=n,c(i))}return this},remove:function(){return a&&d.each(arguments,(function(t,i){for(var n;(n=d.inArray(i,a,n))>-1;)a.splice(n,1),e&&(n<=o&&o--,n<=s&&s--)})),this},has:function(t){return t?d.inArray(t,a)>-1:!(!a||!a.length)},empty:function(){return a=[],o=0,this},disable:function(){return a=l=i=void 0,this},disabled:function(){return!a},lock:function(){return l=void 0,i||h.disable(),this},locked:function(){return!l},fireWith:function(t,i){return!a||n&&!l||(i=[t,(i=i||[]).slice?i.slice():i],e?l.push(i):c(i)),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!n}};return h},d.extend({Deferred:function(t){var e=[["resolve","done",d.Callbacks("once memory"),"resolved"],["reject","fail",d.Callbacks("once memory"),"rejected"],["notify","progress",d.Callbacks("memory")]],i="pending",n={state:function(){return i},always:function(){return o.done(arguments).fail(arguments),this},then:function(){var t=arguments;return d.Deferred((function(i){d.each(e,(function(e,s){var r=d.isFunction(t[e])&&t[e];o[s[1]]((function(){var t=r&&r.apply(this,arguments);t&&d.isFunction(t.promise)?t.promise().done(i.resolve).fail(i.reject).progress(i.notify):i[s[0]+"With"](this===n?i.promise():this,r?[t]:arguments)}))})),t=null})).promise()},promise:function(t){return null!=t?d.extend(t,n):n}},o={};return n.pipe=n.then,d.each(e,(function(t,s){var r=s[2],a=s[3];n[s[1]]=r.add,a&&r.add((function(){i=a}),e[1^t][2].disable,e[2][2].lock),o[s[0]]=function(){return o[s[0]+"With"](this===o?n:this,arguments),this},o[s[0]+"With"]=r.fireWith})),n.promise(o),t&&t.call(o,o),o},when:function(t){var e,i,o,s=0,r=n.call(arguments),a=r.length,l=1!==a||t&&d.isFunction(t.promise)?a:0,c=1===l?t:d.Deferred(),h=function(t,i,o){return function(s){i[t]=this,o[t]=arguments.length>1?n.call(arguments):s,o===e?c.notifyWith(i,o):--l||c.resolveWith(i,o)}};if(a>1)for(e=new Array(a),i=new Array(a),o=new Array(a);s<a;s++)r[s]&&d.isFunction(r[s].promise)?r[s].promise().done(h(s,o,r)).fail(c.reject).progress(h(s,i,e)):--l;return l||c.resolveWith(o,r),c.promise()}}),d.fn.ready=function(t){return d.ready.promise().done(t),this},d.extend({isReady:!1,readyWait:1,holdReady:function(t){t?d.readyWait++:d.ready(!0)},ready:function(t){if(!(!0===t?--d.readyWait:d.isReady)){if(!T.body)return setTimeout(d.ready);d.isReady=!0,!0!==t&&--d.readyWait>0||(N.resolveWith(T,[d]),d.fn.triggerHandler&&(d(T).triggerHandler("ready"),d(T).off("ready")))}}}),d.ready.promise=function(e){if(!N)if(N=d.Deferred(),"complete"===T.readyState)setTimeout(d.ready);else if(T.addEventListener)T.addEventListener("DOMContentLoaded",A,!1),t.addEventListener("load",A,!1);else{T.attachEvent("onreadystatechange",A),t.attachEvent("onload",A);var i=!1;try{i=null==t.frameElement&&T.documentElement}catch(t){}i&&i.doScroll&&function t(){if(!d.isReady){try{i.doScroll("left")}catch(e){return setTimeout(t,50)}I(),d.ready()}}()}return N.promise(e)};var H,z="undefined";for(H in d(h))break;h.ownLast="0"!==H,h.inlineBlockNeedsLayout=!1,d((function(){var t,e,i,n;(i=T.getElementsByTagName("body")[0])&&i.style&&(e=T.createElement("div"),(n=T.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",i.appendChild(n).appendChild(e),_typeof(e.style.zoom)!==z&&(e.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",h.inlineBlockNeedsLayout=t=3===e.offsetWidth,t&&(i.style.zoom=1)),i.removeChild(n))})),function(){var t=T.createElement("div");if(null==h.deleteExpando){h.deleteExpando=!0;try{delete t.test}catch(t){h.deleteExpando=!1}}t=null}(),d.acceptData=function(t){var e=d.noData[(t.nodeName+" ").toLowerCase()],i=+t.nodeType||1;return(1===i||9===i)&&(!e||!0!==e&&t.getAttribute("classid")===e)};var O=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,j=/([A-Z])/g;function L(t,e,i){if(void 0===i&&1===t.nodeType){var n="data-"+e.replace(j,"-$1").toLowerCase();if("string"==typeof(i=t.getAttribute(n))){try{i="true"===i||"false"!==i&&("null"===i?null:+i+""===i?+i:O.test(i)?d.parseJSON(i):i)}catch(t){}d.data(t,e,i)}else i=void 0}return i}function W(t){var e;for(e in t)if(("data"!==e||!d.isEmptyObject(t[e]))&&"toJSON"!==e)return!1;return!0}function M(t,e,n,o){if(d.acceptData(t)){var s,r,a=d.expando,l=t.nodeType,c=l?d.cache:t,h=l?t[a]:t[a]&&a;if(h&&c[h]&&(o||c[h].data)||void 0!==n||"string"!=typeof e)return h||(h=l?t[a]=i.pop()||d.guid++:a),c[h]||(c[h]=l?{}:{toJSON:d.noop}),"object"!==_typeof(e)&&"function"!=typeof e||(o?c[h]=d.extend(c[h],e):c[h].data=d.extend(c[h].data,e)),r=c[h],o||(r.data||(r.data={}),r=r.data),void 0!==n&&(r[d.camelCase(e)]=n),"string"==typeof e?null==(s=r[e])&&(s=r[d.camelCase(e)]):s=r,s}}function R(t,e,i){if(d.acceptData(t)){var n,o,s=t.nodeType,r=s?d.cache:t,a=s?t[d.expando]:d.expando;if(r[a]){if(e&&(n=i?r[a]:r[a].data)){o=(e=d.isArray(e)?e.concat(d.map(e,d.camelCase)):e in n||(e=d.camelCase(e))in n?[e]:e.split(" ")).length;for(;o--;)delete n[e[o]];if(i?!W(n):!d.isEmptyObject(n))return}(i||(delete r[a].data,W(r[a])))&&(s?d.cleanData([t],!0):h.deleteExpando||r!=r.window?delete r[a]:r[a]=null)}}}d.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(t){return!!(t=t.nodeType?d.cache[t[d.expando]]:t[d.expando])&&!W(t)},data:function(t,e,i){return M(t,e,i)},removeData:function(t,e){return R(t,e)},_data:function(t,e,i){return M(t,e,i,!0)},_removeData:function(t,e){return R(t,e,!0)}}),d.fn.extend({data:function(t,e){var i,n,o,s=this[0],r=s&&s.attributes;if(void 0===t){if(this.length&&(o=d.data(s),1===s.nodeType&&!d._data(s,"parsedAttrs"))){for(i=r.length;i--;)r[i]&&0===(n=r[i].name).indexOf("data-")&&L(s,n=d.camelCase(n.slice(5)),o[n]);d._data(s,"parsedAttrs",!0)}return o}return"object"===_typeof(t)?this.each((function(){d.data(this,t)})):arguments.length>1?this.each((function(){d.data(this,t,e)})):s?L(s,t,d.data(s,t)):void 0},removeData:function(t){return this.each((function(){d.removeData(this,t)}))}}),d.extend({queue:function(t,e,i){var n;if(t)return n=d._data(t,e=(e||"fx")+"queue"),i&&(!n||d.isArray(i)?n=d._data(t,e,d.makeArray(i)):n.push(i)),n||[]},dequeue:function(t,e){var i=d.queue(t,e=e||"fx"),n=i.length,o=i.shift(),s=d._queueHooks(t,e);"inprogress"===o&&(o=i.shift(),n--),o&&("fx"===e&&i.unshift("inprogress"),delete s.stop,o.call(t,(function(){d.dequeue(t,e)}),s)),!n&&s&&s.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return d._data(t,i)||d._data(t,i,{empty:d.Callbacks("once memory").add((function(){d._removeData(t,e+"queue"),d._removeData(t,i)}))})}}),d.fn.extend({queue:function(t,e){var i=2;return"string"!=typeof t&&(e=t,t="fx",i--),arguments.length<i?d.queue(this[0],t):void 0===e?this:this.each((function(){var i=d.queue(this,t,e);d._queueHooks(this,t),"fx"===t&&"inprogress"!==i[0]&&d.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){d.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var i,n=1,o=d.Deferred(),s=this,r=this.length,a=function(){--n||o.resolveWith(s,[s])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";r--;)(i=d._data(s[r],t+"queueHooks"))&&i.empty&&(n++,i.empty.add(a));return a(),o.promise(e)}});var F=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,B=["Top","Right","Bottom","Left"],q=function(t,e){return"none"===d.css(t=e||t,"display")||!d.contains(t.ownerDocument,t)},U=d.access=function(t,e,i,n,o,s,r){var a=0,l=t.length,c=null==i;if("object"===d.type(i))for(a in o=!0,i)d.access(t,e,a,i[a],!0,s,r);else if(void 0!==n&&(o=!0,d.isFunction(n)||(r=!0),c&&(r?(e.call(t,n),e=null):(c=e,e=function(t,e,i){return c.call(d(t),i)})),e))for(;a<l;a++)e(t[a],i,r?n:n.call(t[a],a,e(t[a],i)));return o?t:c?e.call(t):l?e(t[0],i):s},X=/^(?:checkbox|radio)$/i;!function(){var t=T.createElement("input"),e=T.createElement("div"),i=T.createDocumentFragment();if(e.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",h.leadingWhitespace=3===e.firstChild.nodeType,h.tbody=!e.getElementsByTagName("tbody").length,h.htmlSerialize=!!e.getElementsByTagName("link").length,h.html5Clone="<:nav></:nav>"!==T.createElement("nav").cloneNode(!0).outerHTML,t.type="checkbox",t.checked=!0,i.appendChild(t),h.appendChecked=t.checked,e.innerHTML="<textarea>x</textarea>",h.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,i.appendChild(e),e.innerHTML="<input type='radio' checked='checked' name='t'/>",h.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,h.noCloneEvent=!0,e.attachEvent&&(e.attachEvent("onclick",(function(){h.noCloneEvent=!1})),e.cloneNode(!0).click()),null==h.deleteExpando){h.deleteExpando=!0;try{delete e.test}catch(t){h.deleteExpando=!1}}}(),function(){var e,i,n=T.createElement("div");for(e in{submit:!0,change:!0,focusin:!0})i="on"+e,(h[e+"Bubbles"]=i in t)||(n.setAttribute(i,"t"),h[e+"Bubbles"]=!1===n.attributes[i].expando);n=null}();var Y=/^(?:input|select|textarea)$/i,Q=/^key/,V=/^(?:mouse|pointer|contextmenu)|click/,J=/^(?:focusinfocus|focusoutblur)$/,K=/^([^.]*)(?:\.(.+)|)$/;function G(){return!0}function Z(){return!1}function tt(){try{return T.activeElement}catch(t){}}function et(t){var e=it.split("|"),i=t.createDocumentFragment();if(i.createElement)for(;e.length;)i.createElement(e.pop());return i}d.event={global:{},add:function(t,e,i,n,o){var s,r,a,l,c,h,u,p,f,g,m,v=d._data(t);if(v){for(i.handler&&(i=(l=i).handler,o=l.selector),i.guid||(i.guid=d.guid++),(r=v.events)||(r=v.events={}),(h=v.handle)||((h=v.handle=function(t){return _typeof(d)===z||t&&d.event.triggered===t.type?void 0:d.event.dispatch.apply(h.elem,arguments)}).elem=t),a=(e=(e||"").match(P)||[""]).length;a--;)f=m=(s=K.exec(e[a])||[])[1],g=(s[2]||"").split(".").sort(),f&&(c=d.event.special[f]||{},f=(o?c.delegateType:c.bindType)||f,c=d.event.special[f]||{},u=d.extend({type:f,origType:m,data:n,handler:i,guid:i.guid,selector:o,needsContext:o&&d.expr.match.needsContext.test(o),namespace:g.join(".")},l),(p=r[f])||((p=r[f]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(t,n,g,h)||(t.addEventListener?t.addEventListener(f,h,!1):t.attachEvent&&t.attachEvent("on"+f,h))),c.add&&(c.add.call(t,u),u.handler.guid||(u.handler.guid=i.guid)),o?p.splice(p.delegateCount++,0,u):p.push(u),d.event.global[f]=!0);t=null}},remove:function(t,e,i,n,o){var s,r,a,l,c,h,u,p,f,g,m,v=d.hasData(t)&&d._data(t);if(v&&(h=v.events)){for(c=(e=(e||"").match(P)||[""]).length;c--;)if(f=m=(a=K.exec(e[c])||[])[1],g=(a[2]||"").split(".").sort(),f){for(u=d.event.special[f]||{},p=h[f=(n?u.delegateType:u.bindType)||f]||[],a=a[2]&&new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=s=p.length;s--;)r=p[s],!o&&m!==r.origType||i&&i.guid!==r.guid||a&&!a.test(r.namespace)||n&&n!==r.selector&&("**"!==n||!r.selector)||(p.splice(s,1),r.selector&&p.delegateCount--,u.remove&&u.remove.call(t,r));l&&!p.length&&(u.teardown&&!1!==u.teardown.call(t,g,v.handle)||d.removeEvent(t,f,v.handle),delete h[f])}else for(f in h)d.event.remove(t,f+e[c],i,n,!0);d.isEmptyObject(h)&&(delete v.handle,d._removeData(t,"events"))}},trigger:function(e,i,n,o){var s,r,a,l,h,u,p,f=[n||T],g=c.call(e,"type")?e.type:e,m=c.call(e,"namespace")?e.namespace.split("."):[];if(a=u=n=n||T,3!==n.nodeType&&8!==n.nodeType&&!J.test(g+d.event.triggered)&&(g.indexOf(".")>=0&&(m=g.split("."),g=m.shift(),m.sort()),r=g.indexOf(":")<0&&"on"+g,(e=e[d.expando]?e:new d.Event(g,"object"===_typeof(e)&&e)).isTrigger=o?2:3,e.namespace=m.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),i=null==i?[e]:d.makeArray(i,[e]),h=d.event.special[g]||{},o||!h.trigger||!1!==h.trigger.apply(n,i))){if(!o&&!h.noBubble&&!d.isWindow(n)){for(l=h.delegateType||g,J.test(l+g)||(a=a.parentNode);a;a=a.parentNode)f.push(a),u=a;u===(n.ownerDocument||T)&&f.push(u.defaultView||u.parentWindow||t)}for(p=0;(a=f[p++])&&!e.isPropagationStopped();)e.type=p>1?l:h.bindType||g,(s=(d._data(a,"events")||{})[e.type]&&d._data(a,"handle"))&&s.apply(a,i),(s=r&&a[r])&&s.apply&&d.acceptData(a)&&(e.result=s.apply(a,i),!1===e.result&&e.preventDefault());if(e.type=g,!o&&!e.isDefaultPrevented()&&(!h._default||!1===h._default.apply(f.pop(),i))&&d.acceptData(n)&&r&&n[g]&&!d.isWindow(n)){(u=n[r])&&(n[r]=null),d.event.triggered=g;try{n[g]()}catch(t){}d.event.triggered=void 0,u&&(n[r]=u)}return e.result}},dispatch:function(t){t=d.event.fix(t);var e,i,o,s,r,a=[],l=n.call(arguments),c=(d._data(this,"events")||{})[t.type]||[],h=d.event.special[t.type]||{};if(l[0]=t,t.delegateTarget=this,!h.preDispatch||!1!==h.preDispatch.call(this,t)){for(a=d.event.handlers.call(this,t,c),e=0;(s=a[e++])&&!t.isPropagationStopped();)for(t.currentTarget=s.elem,r=0;(o=s.handlers[r++])&&!t.isImmediatePropagationStopped();)t.namespace_re&&!t.namespace_re.test(o.namespace)||(t.handleObj=o,t.data=o.data,void 0!==(i=((d.event.special[o.origType]||{}).handle||o.handler).apply(s.elem,l))&&!1===(t.result=i)&&(t.preventDefault(),t.stopPropagation()));return h.postDispatch&&h.postDispatch.call(this,t),t.result}},handlers:function(t,e){var i,n,o,s,r=[],a=e.delegateCount,l=t.target;if(a&&l.nodeType&&(!t.button||"click"!==t.type))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==t.type)){for(o=[],s=0;s<a;s++)void 0===o[i=(n=e[s]).selector+" "]&&(o[i]=n.needsContext?d(i,this).index(l)>=0:d.find(i,this,null,[l]).length),o[i]&&o.push(n);o.length&&r.push({elem:l,handlers:o})}return a<e.length&&r.push({elem:this,handlers:e.slice(a)}),r},fix:function(t){if(t[d.expando])return t;var e,i,n,o=t.type,s=t,r=this.fixHooks[o];for(r||(this.fixHooks[o]=r=V.test(o)?this.mouseHooks:Q.test(o)?this.keyHooks:{}),n=r.props?this.props.concat(r.props):this.props,t=new d.Event(s),e=n.length;e--;)t[i=n[e]]=s[i];return t.target||(t.target=s.srcElement||T),3===t.target.nodeType&&(t.target=t.target.parentNode),t.metaKey=!!t.metaKey,r.filter?r.filter(t,s):t},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(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,e){var i,n,o,s=e.button,r=e.fromElement;return null==t.pageX&&null!=e.clientX&&(o=(n=t.target.ownerDocument||T).documentElement,i=n.body,t.pageX=e.clientX+(o&&o.scrollLeft||i&&i.scrollLeft||0)-(o&&o.clientLeft||i&&i.clientLeft||0),t.pageY=e.clientY+(o&&o.scrollTop||i&&i.scrollTop||0)-(o&&o.clientTop||i&&i.clientTop||0)),!t.relatedTarget&&r&&(t.relatedTarget=r===t.target?e.toElement:r),t.which||void 0===s||(t.which=1&s?1:2&s?3:4&s?2:0),t}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==tt()&&this.focus)try{return this.focus(),!1}catch(t){}},delegateType:"focusin"},blur:{trigger:function(){if(this===tt()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(d.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return this.click(),!1},_default:function(t){return d.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,i,n){var o=d.extend(new d.Event,i,{type:t,isSimulated:!0,originalEvent:{}});n?d.event.trigger(o,null,e):d.event.dispatch.call(e,o),o.isDefaultPrevented()&&i.preventDefault()}},d.removeEvent=T.removeEventListener?function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i,!1)}:function(t,e,i){var n="on"+e;t.detachEvent&&(_typeof(t[n])===z&&(t[n]=null),t.detachEvent(n,i))},(d.Event=function(t,e){if(!(this instanceof d.Event))return new d.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?G:Z):this.type=t,e&&d.extend(this,e),this.timeStamp=t&&t.timeStamp||d.now(),this[d.expando]=!0}).prototype={isDefaultPrevented:Z,isPropagationStopped:Z,isImmediatePropagationStopped:Z,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=G,t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=G,t&&(t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0)},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=G,t&&t.stopImmediatePropagation&&t.stopImmediatePropagation(),this.stopPropagation()}},d.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){d.event.special[t]={delegateType:e,bindType:e,handle:function(t){var i,n=this,o=t.relatedTarget,s=t.handleObj;return o&&(o===n||d.contains(n,o))||(t.type=s.origType,i=s.handler.apply(this,arguments),t.type=e),i}}})),h.submitBubbles||(d.event.special.submit={setup:function(){if(d.nodeName(this,"form"))return!1;d.event.add(this,"click._submit keypress._submit",(function(t){var e=t.target,i=d.nodeName(e,"input")||d.nodeName(e,"button")?e.form:void 0;i&&!d._data(i,"submitBubbles")&&(d.event.add(i,"submit._submit",(function(t){t._submit_bubble=!0})),d._data(i,"submitBubbles",!0))}))},postDispatch:function(t){t._submit_bubble&&(delete t._submit_bubble,this.parentNode&&!t.isTrigger&&d.event.simulate("submit",this.parentNode,t,!0))},teardown:function(){if(d.nodeName(this,"form"))return!1;d.event.remove(this,"._submit")}}),h.changeBubbles||(d.event.special.change={setup:function(){if(Y.test(this.nodeName))return"checkbox"!==this.type&&"radio"!==this.type||(d.event.add(this,"propertychange._change",(function(t){"checked"===t.originalEvent.propertyName&&(this._just_changed=!0)})),d.event.add(this,"click._change",(function(t){this._just_changed&&!t.isTrigger&&(this._just_changed=!1),d.event.simulate("change",this,t,!0)}))),!1;d.event.add(this,"beforeactivate._change",(function(t){var e=t.target;Y.test(e.nodeName)&&!d._data(e,"changeBubbles")&&(d.event.add(e,"change._change",(function(t){!this.parentNode||t.isSimulated||t.isTrigger||d.event.simulate("change",this.parentNode,t,!0)})),d._data(e,"changeBubbles",!0))}))},handle:function(t){var e=t.target;if(this!==e||t.isSimulated||t.isTrigger||"radio"!==e.type&&"checkbox"!==e.type)return t.handleObj.handler.apply(this,arguments)},teardown:function(){return d.event.remove(this,"._change"),!Y.test(this.nodeName)}}),h.focusinBubbles||d.each({focus:"focusin",blur:"focusout"},(function(t,e){var i=function(t){d.event.simulate(e,t.target,d.event.fix(t),!0)};d.event.special[e]={setup:function(){var n=this.ownerDocument||this,o=d._data(n,e);o||n.addEventListener(t,i,!0),d._data(n,e,(o||0)+1)},teardown:function(){var n=this.ownerDocument||this,o=d._data(n,e)-1;o?d._data(n,e,o):(n.removeEventListener(t,i,!0),d._removeData(n,e))}}})),d.fn.extend({on:function(t,e,i,n,o){var s,r;if("object"===_typeof(t)){for(s in"string"!=typeof e&&(i=i||e,e=void 0),t)this.on(s,e,i,t[s],o);return this}if(null==i&&null==n?(n=e,i=e=void 0):null==n&&("string"==typeof e?(n=i,i=void 0):(n=i,i=e,e=void 0)),!1===n)n=Z;else if(!n)return this;return 1===o&&(r=n,(n=function(t){return d().off(t),r.apply(this,arguments)}).guid=r.guid||(r.guid=d.guid++)),this.each((function(){d.event.add(this,t,n,i,e)}))},one:function(t,e,i,n){return this.on(t,e,i,n,1)},off:function(t,e,i){var n,o;if(t&&t.preventDefault&&t.handleObj)return n=t.handleObj,d(t.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"===_typeof(t)){for(o in t)this.off(o,e,t[o]);return this}return!1!==e&&"function"!=typeof e||(i=e,e=void 0),!1===i&&(i=Z),this.each((function(){d.event.remove(this,t,i,e)}))},trigger:function(t,e){return this.each((function(){d.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var i=this[0];if(i)return d.event.trigger(t,e,i,!0)}});var it="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",nt=/ jQuery\d+="(?:null|\d+)"/g,ot=new RegExp("<(?:"+it+")[\\s/>]","i"),st=/^\s+/,rt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,at=/<([\w:]+)/,lt=/<tbody/i,ct=/<|&#?\w+;/,ht=/<(?:script|style|link)/i,ut=/checked\s*(?:[^=]|=\s*.checked.)/i,dt=/^$|\/(?:java|ecma)script/i,pt=/^true\/(.*)/,ft=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,gt={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:h.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},mt=et(T).appendChild(T.createElement("div"));function vt(t,e){var i,n,o=0,s=_typeof(t.getElementsByTagName)!==z?t.getElementsByTagName(e||"*"):_typeof(t.querySelectorAll)!==z?t.querySelectorAll(e||"*"):void 0;if(!s)for(s=[],i=t.childNodes||t;null!=(n=i[o]);o++)!e||d.nodeName(n,e)?s.push(n):d.merge(s,vt(n,e));return void 0===e||e&&d.nodeName(t,e)?d.merge([t],s):s}function yt(t){X.test(t.type)&&(t.defaultChecked=t.checked)}function bt(t,e){return d.nodeName(t,"table")&&d.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function wt(t){return t.type=(null!==d.find.attr(t,"type"))+"/"+t.type,t}function xt(t){var e=pt.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function Ct(t,e){for(var i,n=0;null!=(i=t[n]);n++)d._data(i,"globalEval",!e||d._data(e[n],"globalEval"))}function _t(t,e){if(1===e.nodeType&&d.hasData(t)){var i,n,o,s=d._data(t),r=d._data(e,s),a=s.events;if(a)for(i in delete r.handle,r.events={},a)for(n=0,o=a[i].length;n<o;n++)d.event.add(e,i,a[i][n]);r.data&&(r.data=d.extend({},r.data))}}function Tt(t,e){var i,n,o;if(1===e.nodeType){if(i=e.nodeName.toLowerCase(),!h.noCloneEvent&&e[d.expando]){for(n in(o=d._data(e)).events)d.removeEvent(e,n,o.handle);e.removeAttribute(d.expando)}"script"===i&&e.text!==t.text?(wt(e).text=t.text,xt(e)):"object"===i?(e.parentNode&&(e.outerHTML=t.outerHTML),h.html5Clone&&t.innerHTML&&!d.trim(e.innerHTML)&&(e.innerHTML=t.innerHTML)):"input"===i&&X.test(t.type)?(e.defaultChecked=e.checked=t.checked,e.value!==t.value&&(e.value=t.value)):"option"===i?e.defaultSelected=e.selected=t.defaultSelected:"input"!==i&&"textarea"!==i||(e.defaultValue=t.defaultValue)}}gt.optgroup=gt.option,gt.tbody=gt.tfoot=gt.colgroup=gt.caption=gt.thead,gt.th=gt.td,d.extend({clone:function(t,e,i){var n,o,s,r,a,l=d.contains(t.ownerDocument,t);if(h.html5Clone||d.isXMLDoc(t)||!ot.test("<"+t.nodeName+">")?s=t.cloneNode(!0):(mt.innerHTML=t.outerHTML,mt.removeChild(s=mt.firstChild)),!(h.noCloneEvent&&h.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||d.isXMLDoc(t)))for(n=vt(s),a=vt(t),r=0;null!=(o=a[r]);++r)n[r]&&Tt(o,n[r]);if(e)if(i)for(a=a||vt(t),n=n||vt(s),r=0;null!=(o=a[r]);r++)_t(o,n[r]);else _t(t,s);return(n=vt(s,"script")).length>0&&Ct(n,!l&&vt(t,"script")),n=a=o=null,s},buildFragment:function(t,e,i,n){for(var o,s,r,a,l,c,u,p=t.length,f=et(e),g=[],m=0;m<p;m++)if((s=t[m])||0===s)if("object"===d.type(s))d.merge(g,s.nodeType?[s]:s);else if(ct.test(s)){for(a=a||f.appendChild(e.createElement("div")),l=(at.exec(s)||["",""])[1].toLowerCase(),u=gt[l]||gt._default,a.innerHTML=u[1]+s.replace(rt,"<$1></$2>")+u[2],o=u[0];o--;)a=a.lastChild;if(!h.leadingWhitespace&&st.test(s)&&g.push(e.createTextNode(st.exec(s)[0])),!h.tbody)for(o=(s="table"!==l||lt.test(s)?"<table>"!==u[1]||lt.test(s)?0:a:a.firstChild)&&s.childNodes.length;o--;)d.nodeName(c=s.childNodes[o],"tbody")&&!c.childNodes.length&&s.removeChild(c);for(d.merge(g,a.childNodes),a.textContent="";a.firstChild;)a.removeChild(a.firstChild);a=f.lastChild}else g.push(e.createTextNode(s));for(a&&f.removeChild(a),h.appendChecked||d.grep(vt(g,"input"),yt),m=0;s=g[m++];)if((!n||-1===d.inArray(s,n))&&(r=d.contains(s.ownerDocument,s),a=vt(f.appendChild(s),"script"),r&&Ct(a),i))for(o=0;s=a[o++];)dt.test(s.type||"")&&i.push(s);return a=null,f},cleanData:function(t,e){for(var n,o,s,r,a=0,l=d.expando,c=d.cache,u=h.deleteExpando,p=d.event.special;null!=(n=t[a]);a++)if((e||d.acceptData(n))&&(r=(s=n[l])&&c[s])){if(r.events)for(o in r.events)p[o]?d.event.remove(n,o):d.removeEvent(n,o,r.handle);c[s]&&(delete c[s],u?delete n[l]:_typeof(n.removeAttribute)!==z?n.removeAttribute(l):n[l]=null,i.push(s))}}}),d.fn.extend({text:function(t){return U(this,(function(t){return void 0===t?d.text(this):this.empty().append((this[0]&&this[0].ownerDocument||T).createTextNode(t))}),null,t,arguments.length)},append:function(){return this.domManip(arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||bt(this,t).appendChild(t)}))},prepend:function(){return this.domManip(arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=bt(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return this.domManip(arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return this.domManip(arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},remove:function(t,e){for(var i,n=t?d.filter(t,this):this,o=0;null!=(i=n[o]);o++)e||1!==i.nodeType||d.cleanData(vt(i)),i.parentNode&&(e&&d.contains(i.ownerDocument,i)&&Ct(vt(i,"script")),i.parentNode.removeChild(i));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++){for(1===t.nodeType&&d.cleanData(vt(t,!1));t.firstChild;)t.removeChild(t.firstChild);t.options&&d.nodeName(t,"select")&&(t.options.length=0)}return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return d.clone(this,t,e)}))},html:function(t){return U(this,(function(t){var e=this[0]||{},i=0,n=this.length;if(void 0===t)return 1===e.nodeType?e.innerHTML.replace(nt,""):void 0;if("string"==typeof t&&!ht.test(t)&&(h.htmlSerialize||!ot.test(t))&&(h.leadingWhitespace||!st.test(t))&&!gt[(at.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(rt,"<$1></$2>");try{for(;i<n;i++)1===(e=this[i]||{}).nodeType&&(d.cleanData(vt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=arguments[0];return this.domManip(arguments,(function(e){t=this.parentNode,d.cleanData(vt(this)),t&&t.replaceChild(e,this)})),t&&(t.length||t.nodeType)?this:this.remove()},detach:function(t){return this.remove(t,!0)},domManip:function(t,e){t=o.apply([],t);var i,n,s,r,a,l,c=0,u=this.length,p=this,f=u-1,g=t[0],m=d.isFunction(g);if(m||u>1&&"string"==typeof g&&!h.checkClone&&ut.test(g))return this.each((function(i){var n=p.eq(i);m&&(t[0]=g.call(this,i,n.html())),n.domManip(t,e)}));if(u&&(i=(l=d.buildFragment(t,this[0].ownerDocument,!1,this)).firstChild,1===l.childNodes.length&&(l=i),i)){for(s=(r=d.map(vt(l,"script"),wt)).length;c<u;c++)n=l,c!==f&&(n=d.clone(n,!0,!0),s&&d.merge(r,vt(n,"script"))),e.call(this[c],n,c);if(s)for(a=r[r.length-1].ownerDocument,d.map(r,xt),c=0;c<s;c++)n=r[c],dt.test(n.type||"")&&!d._data(n,"globalEval")&&d.contains(a,n)&&(n.src?d._evalUrl&&d._evalUrl(n.src):d.globalEval((n.text||n.textContent||n.innerHTML||"").replace(ft,"")));l=i=null}return this}}),d.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){d.fn[t]=function(t){for(var i,n=0,o=[],r=d(t),a=r.length-1;n<=a;n++)i=n===a?this:this.clone(!0),d(r[n])[e](i),s.apply(o,i.get());return this.pushStack(o)}}));var Et,St,kt={};function $t(e,i){var n,o=d(i.createElement(e)).appendTo(i.body),s=t.getDefaultComputedStyle&&(n=t.getDefaultComputedStyle(o[0]))?n.display:d.css(o[0],"display");return o.detach(),s}function Nt(t){var e=T,i=kt[t];return i||("none"!==(i=$t(t,e))&&i||((e=((Et=(Et||d("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement))[0].contentWindow||Et[0].contentDocument).document).write(),e.close(),i=$t(t,e),Et.detach()),kt[t]=i),i}h.shrinkWrapBlocks=function(){return null!=St?St:(St=!1,(e=T.getElementsByTagName("body")[0])&&e.style?(t=T.createElement("div"),(i=T.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",e.appendChild(i).appendChild(t),_typeof(t.style.zoom)!==z&&(t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",t.appendChild(T.createElement("div")).style.width="5px",St=3!==t.offsetWidth),e.removeChild(i),St):void 0);var t,e,i};var Pt,Dt,It=/^margin/,At=new RegExp("^("+F+")(?!px)[a-z%]+$","i"),Ht=/^(top|right|bottom|left)$/;function zt(t,e){return{get:function(){var i=t();if(null!=i){if(!i)return(this.get=e).apply(this,arguments);delete this.get}}}}t.getComputedStyle?(Pt=function(e){return e.ownerDocument.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):t.getComputedStyle(e,null)},Dt=function(t,e,i){var n,o,s,r,a=t.style;return r=(i=i||Pt(t))?i.getPropertyValue(e)||i[e]:void 0,i&&(""!==r||d.contains(t.ownerDocument,t)||(r=d.style(t,e)),At.test(r)&&It.test(e)&&(n=a.width,o=a.minWidth,s=a.maxWidth,a.minWidth=a.maxWidth=a.width=r,r=i.width,a.width=n,a.minWidth=o,a.maxWidth=s)),void 0===r?r:r+""}):T.documentElement.currentStyle&&(Pt=function(t){return t.currentStyle},Dt=function(t,e,i){var n,o,s,r,a=t.style;return null==(r=(i=i||Pt(t))?i[e]:void 0)&&a&&a[e]&&(r=a[e]),At.test(r)&&!Ht.test(e)&&(n=a.left,(s=(o=t.runtimeStyle)&&o.left)&&(o.left=t.currentStyle.left),a.left="fontSize"===e?"1em":r,r=a.pixelLeft+"px",a.left=n,s&&(o.left=s)),void 0===r?r:r+""||"auto"}),function(){var e,i,n,o,s,r,a;function l(){var e,i,n,l;(i=T.getElementsByTagName("body")[0])&&i.style&&(e=T.createElement("div"),(n=T.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",i.appendChild(n).appendChild(e),e.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",o=s=!1,a=!0,t.getComputedStyle&&(o="1%"!==(t.getComputedStyle(e,null)||{}).top,s="4px"===(t.getComputedStyle(e,null)||{width:"4px"}).width,(l=e.appendChild(T.createElement("div"))).style.cssText=e.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",l.style.marginRight=l.style.width="0",e.style.width="1px",a=!parseFloat((t.getComputedStyle(l,null)||{}).marginRight),e.removeChild(l)),e.innerHTML="<table><tr><td></td><td>t</td></tr></table>",(l=e.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",(r=0===l[0].offsetHeight)&&(l[0].style.display="",l[1].style.display="none",r=0===l[0].offsetHeight),i.removeChild(n))}(e=T.createElement("div")).innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",(i=(n=e.getElementsByTagName("a")[0])&&n.style)&&(i.cssText="float:left;opacity:.5",h.opacity="0.5"===i.opacity,h.cssFloat=!!i.cssFloat,e.style.backgroundClip="content-box",e.cloneNode(!0).style.backgroundClip="",h.clearCloneStyle="content-box"===e.style.backgroundClip,h.boxSizing=""===i.boxSizing||""===i.MozBoxSizing||""===i.WebkitBoxSizing,d.extend(h,{reliableHiddenOffsets:function(){return null==r&&l(),r},boxSizingReliable:function(){return null==s&&l(),s},pixelPosition:function(){return null==o&&l(),o},reliableMarginRight:function(){return null==a&&l(),a}}))}(),d.swap=function(t,e,i,n){var o,s,r={};for(s in e)r[s]=t.style[s],t.style[s]=e[s];for(s in o=i.apply(t,n||[]),e)t.style[s]=r[s];return o};var Ot=/alpha\([^)]*\)/i,jt=/opacity\s*=\s*([^)]*)/,Lt=/^(none|table(?!-c[ea]).+)/,Wt=new RegExp("^("+F+")(.*)$","i"),Mt=new RegExp("^([+-])=("+F+")","i"),Rt={position:"absolute",visibility:"hidden",display:"block"},Ft={letterSpacing:"0",fontWeight:"400"},Bt=["Webkit","O","Moz","ms"];function qt(t,e){if(e in t)return e;for(var i=e.charAt(0).toUpperCase()+e.slice(1),n=e,o=Bt.length;o--;)if((e=Bt[o]+i)in t)return e;return n}function Ut(t,e){for(var i,n,o,s=[],r=0,a=t.length;r<a;r++)(n=t[r]).style&&(s[r]=d._data(n,"olddisplay"),i=n.style.display,e?(s[r]||"none"!==i||(n.style.display=""),""===n.style.display&&q(n)&&(s[r]=d._data(n,"olddisplay",Nt(n.nodeName)))):(o=q(n),(i&&"none"!==i||!o)&&d._data(n,"olddisplay",o?i:d.css(n,"display"))));for(r=0;r<a;r++)(n=t[r]).style&&(e&&"none"!==n.style.display&&""!==n.style.display||(n.style.display=e?s[r]||"":"none"));return t}function Xt(t,e,i){var n=Wt.exec(e);return n?Math.max(0,n[1]-(i||0))+(n[2]||"px"):e}function Yt(t,e,i,n,o){for(var s=i===(n?"border":"content")?4:"width"===e?1:0,r=0;s<4;s+=2)"margin"===i&&(r+=d.css(t,i+B[s],!0,o)),n?("content"===i&&(r-=d.css(t,"padding"+B[s],!0,o)),"margin"!==i&&(r-=d.css(t,"border"+B[s]+"Width",!0,o))):(r+=d.css(t,"padding"+B[s],!0,o),"padding"!==i&&(r+=d.css(t,"border"+B[s]+"Width",!0,o)));return r}function Qt(t,e,i){var n=!0,o="width"===e?t.offsetWidth:t.offsetHeight,s=Pt(t),r=h.boxSizing&&"border-box"===d.css(t,"boxSizing",!1,s);if(o<=0||null==o){if(((o=Dt(t,e,s))<0||null==o)&&(o=t.style[e]),At.test(o))return o;n=r&&(h.boxSizingReliable()||o===t.style[e]),o=parseFloat(o)||0}return o+Yt(t,e,i||(r?"border":"content"),n,s)+"px"}function Vt(t,e,i,n,o){return new Vt.prototype.init(t,e,i,n,o)}d.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=Dt(t,"opacity");return""===i?"1":i}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:h.cssFloat?"cssFloat":"styleFloat"},style:function(t,e,i,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var o,s,r,a=d.camelCase(e),l=t.style;if(e=d.cssProps[a]||(d.cssProps[a]=qt(l,a)),r=d.cssHooks[e]||d.cssHooks[a],void 0===i)return r&&"get"in r&&void 0!==(o=r.get(t,!1,n))?o:l[e];if(!("string"===(s=_typeof(i))&&(o=Mt.exec(i))&&(i=(o[1]+1)*o[2]+parseFloat(d.css(t,e)),s="number"),null==i||i!=i||("number"!==s||d.cssNumber[a]||(i+="px"),h.clearCloneStyle||""!==i||0!==e.indexOf("background")||(l[e]="inherit"),r&&"set"in r&&void 0===(i=r.set(t,i,n)))))try{l[e]=i}catch(t){}}},css:function(t,e,i,n){var o,s,r,a=d.camelCase(e);return e=d.cssProps[a]||(d.cssProps[a]=qt(t.style,a)),(r=d.cssHooks[e]||d.cssHooks[a])&&"get"in r&&(s=r.get(t,!0,i)),void 0===s&&(s=Dt(t,e,n)),"normal"===s&&e in Ft&&(s=Ft[e]),""===i||i?(o=parseFloat(s),!0===i||d.isNumeric(o)?o||0:s):s}}),d.each(["height","width"],(function(t,e){d.cssHooks[e]={get:function(t,i,n){if(i)return Lt.test(d.css(t,"display"))&&0===t.offsetWidth?d.swap(t,Rt,(function(){return Qt(t,e,n)})):Qt(t,e,n)},set:function(t,i,n){var o=n&&Pt(t);return Xt(0,i,n?Yt(t,e,n,h.boxSizing&&"border-box"===d.css(t,"boxSizing",!1,o),o):0)}}})),h.opacity||(d.cssHooks.opacity={get:function(t,e){return jt.test((e&&t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":e?"1":""},set:function(t,e){var i=t.style,n=t.currentStyle,o=d.isNumeric(e)?"alpha(opacity="+100*e+")":"",s=n&&n.filter||i.filter||"";i.zoom=1,(e>=1||""===e)&&""===d.trim(s.replace(Ot,""))&&i.removeAttribute&&(i.removeAttribute("filter"),""===e||n&&!n.filter)||(i.filter=Ot.test(s)?s.replace(Ot,o):s+" "+o)}}),d.cssHooks.marginRight=zt(h.reliableMarginRight,(function(t,e){if(e)return d.swap(t,{display:"inline-block"},Dt,[t,"marginRight"])})),d.each({margin:"",padding:"",border:"Width"},(function(t,e){d.cssHooks[t+e]={expand:function(i){for(var n=0,o={},s="string"==typeof i?i.split(" "):[i];n<4;n++)o[t+B[n]+e]=s[n]||s[n-2]||s[0];return o}},It.test(t)||(d.cssHooks[t+e].set=Xt)})),d.fn.extend({css:function(t,e){return U(this,(function(t,e,i){var n,o,s={},r=0;if(d.isArray(e)){for(n=Pt(t),o=e.length;r<o;r++)s[e[r]]=d.css(t,e[r],!1,n);return s}return void 0!==i?d.style(t,e,i):d.css(t,e)}),t,e,arguments.length>1)},show:function(){return Ut(this,!0)},hide:function(){return Ut(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){q(this)?d(this).show():d(this).hide()}))}}),d.Tween=Vt,Vt.prototype={constructor:Vt,init:function(t,e,i,n,o,s){this.elem=t,this.prop=i,this.easing=o||"swing",this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=s||(d.cssNumber[i]?"":"px")},cur:function(){var t=Vt.propHooks[this.prop];return t&&t.get?t.get(this):Vt.propHooks._default.get(this)},run:function(t){var e,i=Vt.propHooks[this.prop];return this.options.duration?this.pos=e=d.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):Vt.propHooks._default.set(this),this}},Vt.prototype.init.prototype=Vt.prototype,Vt.propHooks={_default:{get:function(t){var e;return null==t.elem[t.prop]||t.elem.style&&null!=t.elem.style[t.prop]?(e=d.css(t.elem,t.prop,""))&&"auto"!==e?e:0:t.elem[t.prop]},set:function(t){d.fx.step[t.prop]?d.fx.step[t.prop](t):t.elem.style&&(null!=t.elem.style[d.cssProps[t.prop]]||d.cssHooks[t.prop])?d.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}},Vt.propHooks.scrollTop=Vt.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},d.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},(d.fx=Vt.prototype.init).step={};var Jt,Kt,Gt,Zt,te,ee,ie,ne=/^(?:toggle|show|hide)$/,oe=new RegExp("^(?:([+-])=|)("+F+")([a-z%]*)$","i"),se=/queueHooks$/,re=[function(t,e,i){var n,o,s,r,a,l,c,u=this,p={},f=t.style,g=t.nodeType&&q(t),m=d._data(t,"fxshow");i.queue||(null==(a=d._queueHooks(t,"fx")).unqueued&&(a.unqueued=0,l=a.empty.fire,a.empty.fire=function(){a.unqueued||l()}),a.unqueued++,u.always((function(){u.always((function(){a.unqueued--,d.queue(t,"fx").length||a.empty.fire()}))})));1===t.nodeType&&("height"in e||"width"in e)&&(i.overflow=[f.overflow,f.overflowX,f.overflowY],c=d.css(t,"display"),"inline"===("none"===c?d._data(t,"olddisplay")||Nt(t.nodeName):c)&&"none"===d.css(t,"float")&&(h.inlineBlockNeedsLayout&&"inline"!==Nt(t.nodeName)?f.zoom=1:f.display="inline-block"));i.overflow&&(f.overflow="hidden",h.shrinkWrapBlocks()||u.always((function(){f.overflow=i.overflow[0],f.overflowX=i.overflow[1],f.overflowY=i.overflow[2]})));for(n in e)if(o=e[n],ne.exec(o)){if(delete e[n],s=s||"toggle"===o,o===(g?"hide":"show")){if("show"!==o||!m||void 0===m[n])continue;g=!0}p[n]=m&&m[n]||d.style(t,n)}else c=void 0;if(d.isEmptyObject(p))"inline"===("none"===c?Nt(t.nodeName):c)&&(f.display=c);else for(n in m?"hidden"in m&&(g=m.hidden):m=d._data(t,"fxshow",{}),s&&(m.hidden=!g),g?d(t).show():u.done((function(){d(t).hide()})),u.done((function(){var e;for(e in d._removeData(t,"fxshow"),p)d.style(t,e,p[e])})),p)r=he(g?m[n]:0,n,u),n in m||(m[n]=r.start,g&&(r.end=r.start,r.start="width"===n||"height"===n?1:0))}],ae={"*":[function(t,e){var i=this.createTween(t,e),n=i.cur(),o=oe.exec(e),s=o&&o[3]||(d.cssNumber[t]?"":"px"),r=(d.cssNumber[t]||"px"!==s&&+n)&&oe.exec(d.css(i.elem,t)),a=1,l=20;if(r&&r[3]!==s){s=s||r[3],o=o||[],r=+n||1;do{r/=a=a||".5",d.style(i.elem,t,r+s)}while(a!==(a=i.cur()/n)&&1!==a&&--l)}return o&&(r=i.start=+r||+n||0,i.unit=s,i.end=o[1]?r+(o[1]+1)*o[2]:+o[2]),i}]};function le(){return setTimeout((function(){Jt=void 0})),Jt=d.now()}function ce(t,e){var i,n={height:t},o=0;for(e=e?1:0;o<4;o+=2-e)n["margin"+(i=B[o])]=n["padding"+i]=t;return e&&(n.opacity=n.width=t),n}function he(t,e,i){for(var n,o=(ae[e]||[]).concat(ae["*"]),s=0,r=o.length;s<r;s++)if(n=o[s].call(i,e,t))return n}function ue(t,e,i){var n,o,s=0,r=re.length,a=d.Deferred().always((function(){delete l.elem})),l=function(){if(o)return!1;for(var e=Jt||le(),i=Math.max(0,c.startTime+c.duration-e),n=1-(i/c.duration||0),s=0,r=c.tweens.length;s<r;s++)c.tweens[s].run(n);return a.notifyWith(t,[c,n,i]),n<1&&r?i:(a.resolveWith(t,[c]),!1)},c=a.promise({elem:t,props:d.extend({},e),opts:d.extend(!0,{specialEasing:{}},i),originalProperties:e,originalOptions:i,startTime:Jt||le(),duration:i.duration,tweens:[],createTween:function(e,i){var n=d.Tween(t,c.opts,e,i,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(n),n},stop:function(e){var i=0,n=e?c.tweens.length:0;if(o)return this;for(o=!0;i<n;i++)c.tweens[i].run(1);return e?a.resolveWith(t,[c,e]):a.rejectWith(t,[c,e]),this}}),h=c.props;for(!function(t,e){var i,n,o,s,r;for(i in t)if(o=e[n=d.camelCase(i)],s=t[i],d.isArray(s)&&(o=s[1],s=t[i]=s[0]),i!==n&&(t[n]=s,delete t[i]),(r=d.cssHooks[n])&&"expand"in r)for(i in s=r.expand(s),delete t[n],s)i in t||(t[i]=s[i],e[i]=o);else e[n]=o}(h,c.opts.specialEasing);s<r;s++)if(n=re[s].call(c,t,h,c.opts))return n;return d.map(h,he,c),d.isFunction(c.opts.start)&&c.opts.start.call(t,c),d.fx.timer(d.extend(l,{elem:t,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}d.Animation=d.extend(ue,{tweener:function(t,e){d.isFunction(t)?(e=t,t=["*"]):t=t.split(" ");for(var i,n=0,o=t.length;n<o;n++)i=t[n],ae[i]=ae[i]||[],ae[i].unshift(e)},prefilter:function(t,e){e?re.unshift(t):re.push(t)}}),d.speed=function(t,e,i){var n=t&&"object"===_typeof(t)?d.extend({},t):{complete:i||!i&&e||d.isFunction(t)&&t,duration:t,easing:i&&e||e&&!d.isFunction(e)&&e};return n.duration=d.fx.off?0:"number"==typeof n.duration?n.duration:n.duration in d.fx.speeds?d.fx.speeds[n.duration]:d.fx.speeds._default,null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){d.isFunction(n.old)&&n.old.call(this),n.queue&&d.dequeue(this,n.queue)},n},d.fn.extend({fadeTo:function(t,e,i,n){return this.filter(q).css("opacity",0).show().end().animate({opacity:e},t,i,n)},animate:function(t,e,i,n){var o=d.isEmptyObject(t),s=d.speed(e,i,n),r=function(){var e=ue(this,d.extend({},t),s);(o||d._data(this,"finish"))&&e.stop(!0)};return r.finish=r,o||!1===s.queue?this.each(r):this.queue(s.queue,r)},stop:function(t,e,i){var n=function(t){var e=t.stop;delete t.stop,e(i)};return"string"!=typeof t&&(i=e,e=t,t=void 0),e&&!1!==t&&this.queue(t||"fx",[]),this.each((function(){var e=!0,o=null!=t&&t+"queueHooks",s=d.timers,r=d._data(this);if(o)r[o]&&r[o].stop&&n(r[o]);else for(o in r)r[o]&&r[o].stop&&se.test(o)&&n(r[o]);for(o=s.length;o--;)s[o].elem!==this||null!=t&&s[o].queue!==t||(s[o].anim.stop(i),e=!1,s.splice(o,1));!e&&i||d.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,i=d._data(this),n=i[t+"queue"],o=i[t+"queueHooks"],s=d.timers,r=n?n.length:0;for(i.finish=!0,d.queue(this,t,[]),o&&o.stop&&o.stop.call(this,!0),e=s.length;e--;)s[e].elem===this&&s[e].queue===t&&(s[e].anim.stop(!0),s.splice(e,1));for(e=0;e<r;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete i.finish}))}}),d.each(["toggle","show","hide"],(function(t,e){var i=d.fn[e];d.fn[e]=function(t,n,o){return null==t||"boolean"==typeof t?i.apply(this,arguments):this.animate(ce(e,!0),t,n,o)}})),d.each({slideDown:ce("show"),slideUp:ce("hide"),slideToggle:ce("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){d.fn[t]=function(t,i,n){return this.animate(e,t,i,n)}})),d.timers=[],d.fx.tick=function(){var t,e=d.timers,i=0;for(Jt=d.now();i<e.length;i++)(t=e[i])()||e[i]!==t||e.splice(i--,1);e.length||d.fx.stop(),Jt=void 0},d.fx.timer=function(t){d.timers.push(t),t()?d.fx.start():d.timers.pop()},d.fx.interval=13,d.fx.start=function(){Kt||(Kt=setInterval(d.fx.tick,d.fx.interval))},d.fx.stop=function(){clearInterval(Kt),Kt=null},d.fx.speeds={slow:600,fast:200,_default:400},d.fn.delay=function(t,e){return t=d.fx&&d.fx.speeds[t]||t,e=e||"fx",this.queue(e,(function(e,i){var n=setTimeout(e,t);i.stop=function(){clearTimeout(n)}}))},(Zt=T.createElement("div")).setAttribute("className","t"),Zt.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",ee=Zt.getElementsByTagName("a")[0],ie=(te=T.createElement("select")).appendChild(T.createElement("option")),Gt=Zt.getElementsByTagName("input")[0],ee.style.cssText="top:1px",h.getSetAttribute="t"!==Zt.className,h.style=/top/.test(ee.getAttribute("style")),h.hrefNormalized="/a"===ee.getAttribute("href"),h.checkOn=!!Gt.value,h.optSelected=ie.selected,h.enctype=!!T.createElement("form").enctype,te.disabled=!0,h.optDisabled=!ie.disabled,(Gt=T.createElement("input")).setAttribute("value",""),h.input=""===Gt.getAttribute("value"),Gt.value="t",Gt.setAttribute("type","radio"),h.radioValue="t"===Gt.value;var de=/\r/g;d.fn.extend({val:function(t){var e,i,n,o=this[0];return arguments.length?(n=d.isFunction(t),this.each((function(i){var o;1===this.nodeType&&(null==(o=n?t.call(this,i,d(this).val()):t)?o="":"number"==typeof o?o+="":d.isArray(o)&&(o=d.map(o,(function(t){return null==t?"":t+""}))),(e=d.valHooks[this.type]||d.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,o,"value")||(this.value=o))}))):o?(e=d.valHooks[o.type]||d.valHooks[o.nodeName.toLowerCase()])&&"get"in e&&void 0!==(i=e.get(o,"value"))?i:"string"==typeof(i=o.value)?i.replace(de,""):null==i?"":i:void 0}}),d.extend({valHooks:{option:{get:function(t){var e=d.find.attr(t,"value");return null!=e?e:d.trim(d.text(t))}},select:{get:function(t){for(var e,i,n=t.options,o=t.selectedIndex,s="select-one"===t.type||o<0,r=s?null:[],a=s?o+1:n.length,l=o<0?a:s?o:0;l<a;l++)if(((i=n[l]).selected||l===o)&&(h.optDisabled?!i.disabled:null===i.getAttribute("disabled"))&&(!i.parentNode.disabled||!d.nodeName(i.parentNode,"optgroup"))){if(e=d(i).val(),s)return e;r.push(e)}return r},set:function(t,e){for(var i,n,o=t.options,s=d.makeArray(e),r=o.length;r--;)if(n=o[r],d.inArray(d.valHooks.option.get(n),s)>=0)try{n.selected=i=!0}catch(t){n.scrollHeight}else n.selected=!1;return i||(t.selectedIndex=-1),o}}}}),d.each(["radio","checkbox"],(function(){d.valHooks[this]={set:function(t,e){if(d.isArray(e))return t.checked=d.inArray(d(t).val(),e)>=0}},h.checkOn||(d.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}));var pe,fe,ge=d.expr.attrHandle,me=/^(?:checked|selected)$/i,ve=h.getSetAttribute,ye=h.input;d.fn.extend({attr:function(t,e){return U(this,d.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){d.removeAttr(this,t)}))}}),d.extend({attr:function(t,e,i){var n,o,s=t.nodeType;if(t&&3!==s&&8!==s&&2!==s)return _typeof(t.getAttribute)===z?d.prop(t,e,i):(1===s&&d.isXMLDoc(t)||(e=e.toLowerCase(),n=d.attrHooks[e]||(d.expr.match.bool.test(e)?fe:pe)),void 0===i?n&&"get"in n&&null!==(o=n.get(t,e))?o:null==(o=d.find.attr(t,e))?void 0:o:null!==i?n&&"set"in n&&void 0!==(o=n.set(t,i,e))?o:(t.setAttribute(e,i+""),i):void d.removeAttr(t,e))},removeAttr:function(t,e){var i,n,o=0,s=e&&e.match(P);if(s&&1===t.nodeType)for(;i=s[o++];)n=d.propFix[i]||i,d.expr.match.bool.test(i)?ye&&ve||!me.test(i)?t[n]=!1:t[d.camelCase("default-"+i)]=t[n]=!1:d.attr(t,i,""),t.removeAttribute(ve?i:n)},attrHooks:{type:{set:function(t,e){if(!h.radioValue&&"radio"===e&&d.nodeName(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}}}}),fe={set:function(t,e,i){return!1===e?d.removeAttr(t,i):ye&&ve||!me.test(i)?t.setAttribute(!ve&&d.propFix[i]||i,i):t[d.camelCase("default-"+i)]=t[i]=!0,i}},d.each(d.expr.match.bool.source.match(/\w+/g),(function(t,e){var i=ge[e]||d.find.attr;ge[e]=ye&&ve||!me.test(e)?function(t,e,n){var o,s;return n||(s=ge[e],ge[e]=o,o=null!=i(t,e,n)?e.toLowerCase():null,ge[e]=s),o}:function(t,e,i){if(!i)return t[d.camelCase("default-"+e)]?e.toLowerCase():null}})),ye&&ve||(d.attrHooks.value={set:function(t,e,i){if(!d.nodeName(t,"input"))return pe&&pe.set(t,e,i);t.defaultValue=e}}),ve||(pe={set:function(t,e,i){var n=t.getAttributeNode(i);if(n||t.setAttributeNode(n=t.ownerDocument.createAttribute(i)),n.value=e+="","value"===i||e===t.getAttribute(i))return e}},ge.id=ge.name=ge.coords=function(t,e,i){var n;if(!i)return(n=t.getAttributeNode(e))&&""!==n.value?n.value:null},d.valHooks.button={get:function(t,e){var i=t.getAttributeNode(e);if(i&&i.specified)return i.value},set:pe.set},d.attrHooks.contenteditable={set:function(t,e,i){pe.set(t,""!==e&&e,i)}},d.each(["width","height"],(function(t,e){d.attrHooks[e]={set:function(t,i){if(""===i)return t.setAttribute(e,"auto"),i}}}))),h.style||(d.attrHooks.style={get:function(t){return t.style.cssText||void 0},set:function(t,e){return t.style.cssText=e+""}});var be=/^(?:input|select|textarea|button|object)$/i,we=/^(?:a|area)$/i;d.fn.extend({prop:function(t,e){return U(this,d.prop,t,e,arguments.length>1)},removeProp:function(t){return t=d.propFix[t]||t,this.each((function(){try{this[t]=void 0,delete this[t]}catch(t){}}))}}),d.extend({propFix:{for:"htmlFor",class:"className"},prop:function(t,e,i){var n,o,s=t.nodeType;if(t&&3!==s&&8!==s&&2!==s)return(1!==s||!d.isXMLDoc(t))&&(e=d.propFix[e]||e,o=d.propHooks[e]),void 0!==i?o&&"set"in o&&void 0!==(n=o.set(t,i,e))?n:t[e]=i:o&&"get"in o&&null!==(n=o.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){var e=d.find.attr(t,"tabindex");return e?parseInt(e,10):be.test(t.nodeName)||we.test(t.nodeName)&&t.href?0:-1}}}}),h.hrefNormalized||d.each(["href","src"],(function(t,e){d.propHooks[e]={get:function(t){return t.getAttribute(e,4)}}})),h.optSelected||(d.propHooks.selected={get:function(t){var e=t.parentNode;return e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex),null}}),d.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){d.propFix[this.toLowerCase()]=this})),h.enctype||(d.propFix.enctype="encoding");var xe=/[\t\r\n\f]/g;d.fn.extend({addClass:function(t){var e,i,n,o,s,r,a=0,l=this.length,c="string"==typeof t&&t;if(d.isFunction(t))return this.each((function(e){d(this).addClass(t.call(this,e,this.className))}));if(c)for(e=(t||"").match(P)||[];a<l;a++)if(n=1===(i=this[a]).nodeType&&(i.className?(" "+i.className+" ").replace(xe," "):" ")){for(s=0;o=e[s++];)n.indexOf(" "+o+" ")<0&&(n+=o+" ");r=d.trim(n),i.className!==r&&(i.className=r)}return this},removeClass:function(t){var e,i,n,o,s,r,a=0,l=this.length,c=0===arguments.length||"string"==typeof t&&t;if(d.isFunction(t))return this.each((function(e){d(this).removeClass(t.call(this,e,this.className))}));if(c)for(e=(t||"").match(P)||[];a<l;a++)if(n=1===(i=this[a]).nodeType&&(i.className?(" "+i.className+" ").replace(xe," "):"")){for(s=0;o=e[s++];)for(;n.indexOf(" "+o+" ")>=0;)n=n.replace(" "+o+" "," ");r=t?d.trim(n):"",i.className!==r&&(i.className=r)}return this},toggleClass:function(t,e){var i=_typeof(t);return"boolean"==typeof e&&"string"===i?e?this.addClass(t):this.removeClass(t):d.isFunction(t)?this.each((function(i){d(this).toggleClass(t.call(this,i,this.className,e),e)})):this.each((function(){if("string"===i)for(var e,n=0,o=d(this),s=t.match(P)||[];e=s[n++];)o.hasClass(e)?o.removeClass(e):o.addClass(e);else i!==z&&"boolean"!==i||(this.className&&d._data(this,"__className__",this.className),this.className=this.className||!1===t?"":d._data(this,"__className__")||"")}))},hasClass:function(t){for(var e=" "+t+" ",i=0,n=this.length;i<n;i++)if(1===this[i].nodeType&&(" "+this[i].className+" ").replace(xe," ").indexOf(e)>=0)return!0;return!1}}),d.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){d.fn[e]=function(t,i){return arguments.length>0?this.on(e,null,t,i):this.trigger(e)}})),d.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)},bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,n){return this.on(e,t,i,n)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)}});var Ce=d.now(),_e=/\?/,Te=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;d.parseJSON=function(e){if(t.JSON&&t.JSON.parse)return t.JSON.parse(e+"");var i,n=null,o=d.trim(e+"");return o&&!d.trim(o.replace(Te,(function(t,e,o,s){return i&&e&&(n=0),0===n?t:(i=o||e,n+=!s-!o,"")})))?Function("return "+o)():d.error("Invalid JSON: "+e)},d.parseXML=function(e){var i;if(!e||"string"!=typeof e)return null;try{t.DOMParser?i=(new DOMParser).parseFromString(e,"text/xml"):((i=new ActiveXObject("Microsoft.XMLDOM")).async="false",i.loadXML(e))}catch(t){i=void 0}return i&&i.documentElement&&!i.getElementsByTagName("parsererror").length||d.error("Invalid XML: "+e),i};var Ee,Se,ke=/#.*$/,$e=/([?&])_=[^&]*/,Ne=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Pe=/^(?:GET|HEAD)$/,De=/^\/\//,Ie=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Ae={},He={},ze="*/".concat("*");try{Se=location.href}catch(t){(Se=T.createElement("a")).href="",Se=Se.href}function Oe(t){return function(e,i){"string"!=typeof e&&(i=e,e="*");var n,o=0,s=e.toLowerCase().match(P)||[];if(d.isFunction(i))for(;n=s[o++];)"+"===n.charAt(0)?(n=n.slice(1)||"*",(t[n]=t[n]||[]).unshift(i)):(t[n]=t[n]||[]).push(i)}}function je(t,e,i,n){var o={},s=t===He;function r(a){var l;return o[a]=!0,d.each(t[a]||[],(function(t,a){var c=a(e,i,n);return"string"!=typeof c||s||o[c]?s?!(l=c):void 0:(e.dataTypes.unshift(c),r(c),!1)})),l}return r(e.dataTypes[0])||!o["*"]&&r("*")}function Le(t,e){var i,n,o=d.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((o[n]?t:i||(i={}))[n]=e[n]);return i&&d.extend(!0,t,i),t}Ee=Ie.exec(Se.toLowerCase())||[],d.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Se,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ee[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":ze,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":d.parseJSON,"text xml":d.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Le(Le(t,d.ajaxSettings),e):Le(d.ajaxSettings,t)},ajaxPrefilter:Oe(Ae),ajaxTransport:Oe(He),ajax:function(t,e){"object"===_typeof(t)&&(e=t,t=void 0);var i,n,o,s,r,a,l,c,h=d.ajaxSetup({},e=e||{}),u=h.context||h,p=h.context&&(u.nodeType||u.jquery)?d(u):d.event,f=d.Deferred(),g=d.Callbacks("once memory"),m=h.statusCode||{},v={},y={},b=0,w="canceled",x={readyState:0,getResponseHeader:function(t){var e;if(2===b){if(!c)for(c={};e=Ne.exec(s);)c[e[1].toLowerCase()]=e[2];e=c[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===b?s:null},setRequestHeader:function(t,e){var i=t.toLowerCase();return b||(t=y[i]=y[i]||t,v[t]=e),this},overrideMimeType:function(t){return b||(h.mimeType=t),this},statusCode:function(t){var e;if(t)if(b<2)for(e in t)m[e]=[m[e],t[e]];else x.always(t[x.status]);return this},abort:function(t){var e=t||w;return l&&l.abort(e),C(0,e),this}};if(f.promise(x).complete=g.add,x.success=x.done,x.error=x.fail,h.url=((t||h.url||Se)+"").replace(ke,"").replace(De,Ee[1]+"//"),h.type=e.method||e.type||h.method||h.type,h.dataTypes=d.trim(h.dataType||"*").toLowerCase().match(P)||[""],null==h.crossDomain&&(i=Ie.exec(h.url.toLowerCase()),h.crossDomain=!(!i||i[1]===Ee[1]&&i[2]===Ee[2]&&(i[3]||("http:"===i[1]?"80":"443"))===(Ee[3]||("http:"===Ee[1]?"80":"443")))),h.data&&h.processData&&"string"!=typeof h.data&&(h.data=d.param(h.data,h.traditional)),je(Ae,h,e,x),2===b)return x;for(n in(a=d.event&&h.global)&&0==d.active++&&d.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Pe.test(h.type),o=h.url,h.hasContent||(h.data&&(o=h.url+=(_e.test(o)?"&":"?")+h.data,delete h.data),!1===h.cache&&(h.url=$e.test(o)?o.replace($e,"$1_="+Ce++):o+(_e.test(o)?"&":"?")+"_="+Ce++)),h.ifModified&&(d.lastModified[o]&&x.setRequestHeader("If-Modified-Since",d.lastModified[o]),d.etag[o]&&x.setRequestHeader("If-None-Match",d.etag[o])),(h.data&&h.hasContent&&!1!==h.contentType||e.contentType)&&x.setRequestHeader("Content-Type",h.contentType),x.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+ze+"; q=0.01":""):h.accepts["*"]),h.headers)x.setRequestHeader(n,h.headers[n]);if(h.beforeSend&&(!1===h.beforeSend.call(u,x,h)||2===b))return x.abort();for(n in w="abort",{success:1,error:1,complete:1})x[n](h[n]);if(l=je(He,h,e,x)){x.readyState=1,a&&p.trigger("ajaxSend",[x,h]),h.async&&h.timeout>0&&(r=setTimeout((function(){x.abort("timeout")}),h.timeout));try{b=1,l.send(v,C)}catch(t){if(!(b<2))throw t;C(-1,t)}}else C(-1,"No Transport");function C(t,e,i,n){var c,v,y,w,C,_=e;2!==b&&(b=2,r&&clearTimeout(r),l=void 0,s=n||"",x.readyState=t>0?4:0,c=t>=200&&t<300||304===t,i&&(w=function(t,e,i){for(var n,o,s,r,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===o&&(o=t.mimeType||e.getResponseHeader("Content-Type"));if(o)for(r in a)if(a[r]&&a[r].test(o)){l.unshift(r);break}if(l[0]in i)s=l[0];else{for(r in i){if(!l[0]||t.converters[r+" "+l[0]]){s=r;break}n||(n=r)}s=s||n}if(s)return s!==l[0]&&l.unshift(s),i[s]}(h,x,i)),w=function(t,e,i,n){var o,s,r,a,l,c={},h=t.dataTypes.slice();if(h[1])for(r in t.converters)c[r.toLowerCase()]=t.converters[r];for(s=h.shift();s;)if(t.responseFields[s]&&(i[t.responseFields[s]]=e),!l&&n&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=s,s=h.shift())if("*"===s)s=l;else if("*"!==l&&l!==s){if(!(r=c[l+" "+s]||c["* "+s]))for(o in c)if((a=o.split(" "))[1]===s&&(r=c[l+" "+a[0]]||c["* "+a[0]])){!0===r?r=c[o]:!0!==c[o]&&(s=a[0],h.unshift(a[1]));break}if(!0!==r)if(r&&t.throws)e=r(e);else try{e=r(e)}catch(t){return{state:"parsererror",error:r?t:"No conversion from "+l+" to "+s}}}return{state:"success",data:e}}(h,w,x,c),c?(h.ifModified&&((C=x.getResponseHeader("Last-Modified"))&&(d.lastModified[o]=C),(C=x.getResponseHeader("etag"))&&(d.etag[o]=C)),204===t||"HEAD"===h.type?_="nocontent":304===t?_="notmodified":(_=w.state,v=w.data,c=!(y=w.error))):(y=_,!t&&_||(_="error",t<0&&(t=0))),x.status=t,x.statusText=(e||_)+"",c?f.resolveWith(u,[v,_,x]):f.rejectWith(u,[x,_,y]),x.statusCode(m),m=void 0,a&&p.trigger(c?"ajaxSuccess":"ajaxError",[x,h,c?v:y]),g.fireWith(u,[x,_]),a&&(p.trigger("ajaxComplete",[x,h]),--d.active||d.event.trigger("ajaxStop")))}return x},getJSON:function(t,e,i){return d.get(t,e,i,"json")},getScript:function(t,e){return d.get(t,void 0,e,"script")}}),d.each(["get","post"],(function(t,e){d[e]=function(t,i,n,o){return d.isFunction(i)&&(o=o||n,n=i,i=void 0),d.ajax({url:t,type:e,dataType:o,data:i,success:n})}})),d._evalUrl=function(t){return d.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},d.fn.extend({wrapAll:function(t){if(d.isFunction(t))return this.each((function(e){d(this).wrapAll(t.call(this,e))}));if(this[0]){var e=d(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 d.isFunction(t)?this.each((function(e){d(this).wrapInner(t.call(this,e))})):this.each((function(){var e=d(this),i=e.contents();i.length?i.wrapAll(t):e.append(t)}))},wrap:function(t){var e=d.isFunction(t);return this.each((function(i){d(this).wrapAll(e?t.call(this,i):t)}))},unwrap:function(){return this.parent().each((function(){d.nodeName(this,"body")||d(this).replaceWith(this.childNodes)})).end()}}),d.expr.filters.hidden=function(t){return t.offsetWidth<=0&&t.offsetHeight<=0||!h.reliableHiddenOffsets()&&"none"===(t.style&&t.style.display||d.css(t,"display"))},d.expr.filters.visible=function(t){return!d.expr.filters.hidden(t)};var We=/%20/g,Me=/\[\]$/,Re=/\r?\n/g,Fe=/^(?:submit|button|image|reset|file)$/i,Be=/^(?:input|select|textarea|keygen)/i;function qe(t,e,i,n){var o;if(d.isArray(e))d.each(e,(function(e,o){i||Me.test(t)?n(t,o):qe(t+"["+("object"===_typeof(o)?e:"")+"]",o,i,n)}));else if(i||"object"!==d.type(e))n(t,e);else for(o in e)qe(t+"["+o+"]",e[o],i,n)}d.param=function(t,e){var i,n=[],o=function(t,e){e=d.isFunction(e)?e():null==e?"":e,n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=d.ajaxSettings&&d.ajaxSettings.traditional),d.isArray(t)||t.jquery&&!d.isPlainObject(t))d.each(t,(function(){o(this.name,this.value)}));else for(i in t)qe(i,t[i],e,o);return n.join("&").replace(We,"+")},d.fn.extend({serialize:function(){return d.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=d.prop(this,"elements");return t?d.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!d(this).is(":disabled")&&Be.test(this.nodeName)&&!Fe.test(t)&&(this.checked||!X.test(t))})).map((function(t,e){var i=d(this).val();return null==i?null:d.isArray(i)?d.map(i,(function(t){return{name:e.name,value:t.replace(Re,"\r\n")}})):{name:e.name,value:i.replace(Re,"\r\n")}})).get()}}),d.ajaxSettings.xhr=void 0!==t.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&Qe()||function(){try{return new t.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}()}:Qe;var Ue=0,Xe={},Ye=d.ajaxSettings.xhr();function Qe(){try{return new t.XMLHttpRequest}catch(t){}}t.attachEvent&&t.attachEvent("onunload",(function(){for(var t in Xe)Xe[t](void 0,!0)})),h.cors=!!Ye&&"withCredentials"in Ye,(Ye=h.ajax=!!Ye)&&d.ajaxTransport((function(t){var e;if(!t.crossDomain||h.cors)return{send:function(i,n){var o,s=t.xhr(),r=++Ue;if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)s[o]=t.xhrFields[o];for(o in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)void 0!==i[o]&&s.setRequestHeader(o,i[o]+"");s.send(t.hasContent&&t.data||null),e=function(i,o){var a,l,c;if(e&&(o||4===s.readyState))if(delete Xe[r],e=void 0,s.onreadystatechange=d.noop,o)4!==s.readyState&&s.abort();else{c={},a=s.status,"string"==typeof s.responseText&&(c.text=s.responseText);try{l=s.statusText}catch(t){l=""}a||!t.isLocal||t.crossDomain?1223===a&&(a=204):a=c.text?200:404}c&&n(a,l,c,s.getAllResponseHeaders())},t.async?4===s.readyState?setTimeout(e):s.onreadystatechange=Xe[r]=e:e()},abort:function(){e&&e(void 0,!0)}}})),d.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(t){return d.globalEval(t),t}}}),d.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET",t.global=!1)})),d.ajaxTransport("script",(function(t){if(t.crossDomain){var e,i=T.head||d("head")[0]||T.documentElement;return{send:function(n,o){(e=T.createElement("script")).async=!0,t.scriptCharset&&(e.charset=t.scriptCharset),e.src=t.url,e.onload=e.onreadystatechange=function(t,i){(i||!e.readyState||/loaded|complete/.test(e.readyState))&&(e.onload=e.onreadystatechange=null,e.parentNode&&e.parentNode.removeChild(e),e=null,i||o(200,"success"))},i.insertBefore(e,i.firstChild)},abort:function(){e&&e.onload(void 0,!0)}}}}));var Ve=[],Je=/(=)\?(?=&|$)|\?\?/;d.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Ve.pop()||d.expando+"_"+Ce++;return this[t]=!0,t}}),d.ajaxPrefilter("json jsonp",(function(e,i,n){var o,s,r,a=!1!==e.jsonp&&(Je.test(e.url)?"url":"string"==typeof e.data&&!(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Je.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return o=e.jsonpCallback=d.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Je,"$1"+o):!1!==e.jsonp&&(e.url+=(_e.test(e.url)?"&":"?")+e.jsonp+"="+o),e.converters["script json"]=function(){return r||d.error(o+" was not called"),r[0]},e.dataTypes[0]="json",s=t[o],t[o]=function(){r=arguments},n.always((function(){t[o]=s,e[o]&&(e.jsonpCallback=i.jsonpCallback,Ve.push(o)),r&&d.isFunction(s)&&s(r[0]),r=s=void 0})),"script"})),d.parseHTML=function(t,e,i){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(i=e,e=!1),e=e||T;var n=w.exec(t),o=!i&&[];return n?[e.createElement(n[1])]:(n=d.buildFragment([t],e,o),o&&o.length&&d(o).remove(),d.merge([],n.childNodes))};var Ke=d.fn.load;d.fn.load=function(t,e,i){if("string"!=typeof t&&Ke)return Ke.apply(this,arguments);var n,o,s,r=this,a=t.indexOf(" ");return a>=0&&(n=d.trim(t.slice(a,t.length)),t=t.slice(0,a)),d.isFunction(e)?(i=e,e=void 0):e&&"object"===_typeof(e)&&(s="POST"),r.length>0&&d.ajax({url:t,type:s,dataType:"html",data:e}).done((function(t){o=arguments,r.html(n?d("<div>").append(d.parseHTML(t)).find(n):t)})).complete(i&&function(t,e){r.each(i,o||[t.responseText,e,t])}),this},d.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){d.fn[e]=function(t){return this.on(e,t)}})),d.expr.filters.animated=function(t){return d.grep(d.timers,(function(e){return t===e.elem})).length};var Ge=t.document.documentElement;function Ze(t){return d.isWindow(t)?t:9===t.nodeType&&(t.defaultView||t.parentWindow)}d.offset={setOffset:function(t,e,i){var n,o,s,r,a,l,c=d.css(t,"position"),h=d(t),u={};"static"===c&&(t.style.position="relative"),a=h.offset(),s=d.css(t,"top"),l=d.css(t,"left"),("absolute"===c||"fixed"===c)&&d.inArray("auto",[s,l])>-1?(r=(n=h.position()).top,o=n.left):(r=parseFloat(s)||0,o=parseFloat(l)||0),d.isFunction(e)&&(e=e.call(t,i,a)),null!=e.top&&(u.top=e.top-a.top+r),null!=e.left&&(u.left=e.left-a.left+o),"using"in e?e.using.call(t,u):h.css(u)}},d.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){d.offset.setOffset(this,t,e)}));var e,i,n={top:0,left:0},o=this[0],s=o&&o.ownerDocument;return s?(e=s.documentElement,d.contains(e,o)?(_typeof(o.getBoundingClientRect)!==z&&(n=o.getBoundingClientRect()),i=Ze(s),{top:n.top+(i.pageYOffset||e.scrollTop)-(e.clientTop||0),left:n.left+(i.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}):n):void 0},position:function(){if(this[0]){var t,e,i={top:0,left:0},n=this[0];return"fixed"===d.css(n,"position")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),d.nodeName(t[0],"html")||(i=t.offset()),i.top+=d.css(t[0],"borderTopWidth",!0),i.left+=d.css(t[0],"borderLeftWidth",!0)),{top:e.top-i.top-d.css(n,"marginTop",!0),left:e.left-i.left-d.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent||Ge;t&&!d.nodeName(t,"html")&&"static"===d.css(t,"position");)t=t.offsetParent;return t||Ge}))}}),d.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var i=/Y/.test(e);d.fn[t]=function(n){return U(this,(function(t,n,o){var s=Ze(t);if(void 0===o)return s?e in s?s[e]:s.document.documentElement[n]:t[n];s?s.scrollTo(i?d(s).scrollLeft():o,i?o:d(s).scrollTop()):t[n]=o}),t,n,arguments.length,null)}})),d.each(["top","left"],(function(t,e){d.cssHooks[e]=zt(h.pixelPosition,(function(t,i){if(i)return i=Dt(t,e),At.test(i)?d(t).position()[e]+"px":i}))})),d.each({Height:"height",Width:"width"},(function(t,e){d.each({padding:"inner"+t,content:e,"":"outer"+t},(function(i,n){d.fn[n]=function(n,o){var s=arguments.length&&(i||"boolean"!=typeof n),r=i||(!0===n||!0===o?"margin":"border");return U(this,(function(e,i,n){var o;return d.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===n?d.css(e,i,r):d.style(e,i,n,r)}),e,s?n:void 0,s,null)}}))})),d.fn.size=function(){return this.length},d.fn.andSelf=d.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],(function(){return d}));var ti=t.jQuery,ei=t.$;return d.noConflict=function(e){return t.$===d&&(t.$=ei),e&&t.jQuery===d&&(t.jQuery=ti),d},_typeof(e)===z&&(t.jQuery=t.$=d),d})),function(t,e){function i(e,i){var o,s,r,a=e.nodeName.toLowerCase();return"area"===a?(s=(o=e.parentNode).name,!(!e.href||!s||"map"!==o.nodeName.toLowerCase())&&(!!(r=t("img[usemap=#"+s+"]")[0])&&n(r))):(/input|select|textarea|button|object/.test(a)?!e.disabled:"a"===a&&e.href||i)&&n(e)}function n(e){return t.expr.filters.visible(e)&&!t(e).parents().addBack().filter((function(){return"hidden"===t.css(this,"visibility")})).length}var o=0,s=/^ui-id-\d+$/;t.ui=t.ui||{},t.extend(t.ui,{version:"1.10.3",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,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,SPACE:32,TAB:9,UP:38}}),t.fn.extend({focus:function(e){return function(i,n){return"number"==typeof i?this.each((function(){var e=this;setTimeout((function(){t(e).focus(),n&&n.call(e)}),i)})):e.apply(this,arguments)}}(t.fn.focus),scrollParent:function(){var e;return e=t.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter((function(){return/(relative|absolute|fixed)/.test(t.css(this,"position"))&&/(auto|scroll)/.test(t.css(this,"overflow")+t.css(this,"overflow-y")+t.css(this,"overflow-x"))})).eq(0):this.parents().filter((function(){return/(auto|scroll)/.test(t.css(this,"overflow")+t.css(this,"overflow-y")+t.css(this,"overflow-x"))})).eq(0),/fixed/.test(this.css("position"))||!e.length?t(document):e},zIndex:function(i){if(i!==e)return this.css("zIndex",i);if(this.length)for(var n,o,s=t(this[0]);s.length&&s[0]!==document;){if(("absolute"===(n=s.css("position"))||"relative"===n||"fixed"===n)&&(o=parseInt(s.css("zIndex"),10),!isNaN(o)&&0!==o))return o;s=s.parent()}return 0},uniqueId:function(){return this.each((function(){this.id||(this.id="ui-id-"+ ++o)}))},removeUniqueId:function(){return this.each((function(){s.test(this.id)&&t(this).removeAttr("id")}))}}),t.extend(t.expr[":"],{data:t.expr.createPseudo?t.expr.createPseudo((function(e){return function(i){return!!t.data(i,e)}})):function(e,i,n){return!!t.data(e,n[3])},focusable:function(e){return i(e,!isNaN(t.attr(e,"tabindex")))},tabbable:function(e){var n=t.attr(e,"tabindex"),o=isNaN(n);return(o||n>=0)&&i(e,!o)}}),t("<a>").outerWidth(1).jquery||t.each(["Width","Height"],(function(i,n){function o(e,i,n,o){return t.each(s,(function(){i-=parseFloat(t.css(e,"padding"+this))||0,n&&(i-=parseFloat(t.css(e,"border"+this+"Width"))||0),o&&(i-=parseFloat(t.css(e,"margin"+this))||0)})),i}var s="Width"===n?["Left","Right"]:["Top","Bottom"],r=n.toLowerCase(),a={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};t.fn["inner"+n]=function(i){return i===e?a["inner"+n].call(this):this.each((function(){t(this).css(r,o(this,i)+"px")}))},t.fn["outer"+n]=function(e,i){return"number"!=typeof e?a["outer"+n].call(this,e):this.each((function(){t(this).css(r,o(this,e,!0,i)+"px")}))}})),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(t.fn.removeData=function(e){return function(i){return arguments.length?e.call(this,t.camelCase(i)):e.call(this)}}(t.fn.removeData)),t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),t.support.selectstart="onselectstart"in document.createElement("div"),t.fn.extend({disableSelection:function(){return this.bind((t.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",(function(t){t.preventDefault()}))},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),t.extend(t.ui,{plugin:{add:function(e,i,n){var o,s=t.ui[e].prototype;for(o in n)s.plugins[o]=s.plugins[o]||[],s.plugins[o].push([i,n[o]])},call:function(t,e,i){var n,o=t.plugins[e];if(o&&t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType)for(n=0;o.length>n;n++)t.options[o[n][0]]&&o[n][1].apply(t.element,i)}},hasScroll:function(e,i){if("hidden"===t(e).css("overflow"))return!1;var n=i&&"left"===i?"scrollLeft":"scrollTop",o=!1;return e[n]>0||(e[n]=1,o=e[n]>0,e[n]=0,o)}})}(jQuery),function(t,e){var i=0,n=Array.prototype.slice,o=t.cleanData;t.cleanData=function(e){for(var i,n=0;null!=(i=e[n]);n++)try{t(i).triggerHandler("remove")}catch(t){}o(e)},t.widget=function(i,n,o){var s,r,a,l,c={},h=i.split(".")[0];i=i.split(".")[1],s=h+"-"+i,o||(o=n,n=t.Widget),t.expr[":"][s.toLowerCase()]=function(e){return!!t.data(e,s)},t[h]=t[h]||{},r=t[h][i],a=t[h][i]=function(t,i){return this._createWidget?(arguments.length&&this._createWidget(t,i),e):new a(t,i)},t.extend(a,r,{version:o.version,_proto:t.extend({},o),_childConstructors:[]}),(l=new n).options=t.widget.extend({},l.options),t.each(o,(function(i,o){return t.isFunction(o)?(c[i]=function(){var t=function(){return n.prototype[i].apply(this,arguments)},e=function(t){return n.prototype[i].apply(this,t)};return function(){var i,n=this._super,s=this._superApply;return this._super=t,this._superApply=e,i=o.apply(this,arguments),this._super=n,this._superApply=s,i}}(),e):(c[i]=o,e)})),a.prototype=t.widget.extend(l,{widgetEventPrefix:r?l.widgetEventPrefix:i},c,{constructor:a,namespace:h,widgetName:i,widgetFullName:s}),r?(t.each(r._childConstructors,(function(e,i){var n=i.prototype;t.widget(n.namespace+"."+n.widgetName,a,i._proto)})),delete r._childConstructors):n._childConstructors.push(a),t.widget.bridge(i,a)},t.widget.extend=function(i){for(var o,s,r=n.call(arguments,1),a=0,l=r.length;l>a;a++)for(o in r[a])s=r[a][o],r[a].hasOwnProperty(o)&&s!==e&&(i[o]=t.isPlainObject(s)?t.isPlainObject(i[o])?t.widget.extend({},i[o],s):t.widget.extend({},s):s);return i},t.widget.bridge=function(i,o){var s=o.prototype.widgetFullName||i;t.fn[i]=function(r){var a="string"==typeof r,l=n.call(arguments,1),c=this;return r=!a&&l.length?t.widget.extend.apply(null,[r].concat(l)):r,a?this.each((function(){var n,o=t.data(this,s);return o?t.isFunction(o[r])&&"_"!==r.charAt(0)?(n=o[r].apply(o,l))!==o&&n!==e?(c=n&&n.jquery?c.pushStack(n.get()):n,!1):e:t.error("no such method '"+r+"' for "+i+" widget instance"):t.error("cannot call methods on "+i+" prior to initialization; attempted to call method '"+r+"'")})):this.each((function(){var e=t.data(this,s);e?e.option(r||{})._init():t.data(this,s,new o(r,this))})),c}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(e,n){n=t(n||this.defaultElement||this)[0],this.element=t(n),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this.bindings=t(),this.hoverable=t(),this.focusable=t(),n!==this&&(t.data(n,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===n&&this.destroy()}}),this.document=t(n.style?n.ownerDocument:n.document||n),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:t.noop,_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(t.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:t.noop,widget:function(){return this.element},option:function(i,n){var o,s,r,a=i;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof i)if(a={},o=i.split("."),i=o.shift(),o.length){for(s=a[i]=t.widget.extend({},this.options[i]),r=0;o.length-1>r;r++)s[o[r]]=s[o[r]]||{},s=s[o[r]];if(i=o.pop(),n===e)return s[i]===e?null:s[i];s[i]=n}else{if(n===e)return this.options[i]===e?null:this.options[i];a[i]=n}return this._setOptions(a),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return this.options[t]=e,"disabled"===t&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!e).attr("aria-disabled",e),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_on:function(i,n,o){var s,r=this;"boolean"!=typeof i&&(o=n,n=i,i=!1),o?(n=s=t(n),this.bindings=this.bindings.add(n)):(o=n,n=this.element,s=this.widget()),t.each(o,(function(o,a){function l(){return i||!0!==r.options.disabled&&!t(this).hasClass("ui-state-disabled")?("string"==typeof a?r[a]:a).apply(r,arguments):e}"string"!=typeof a&&(l.guid=a.guid=a.guid||l.guid||t.guid++);var c=o.match(/^(\w+)\s*(.*)$/),h=c[1]+r.eventNamespace,u=c[2];u?s.delegate(u,h,l):n.bind(h,l)}))},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.unbind(e).undelegate(e)},_delay:function(t,e){var i=this;return setTimeout((function(){return("string"==typeof t?i[t]:t).apply(i,arguments)}),e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){t(e.currentTarget).addClass("ui-state-hover")},mouseleave:function(e){t(e.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){t(e.currentTarget).addClass("ui-state-focus")},focusout:function(e){t(e.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(e,i,n){var o,s,r=this.options[e];if(n=n||{},(i=t.Event(i)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],s=i.originalEvent)for(o in s)o in i||(i[o]=s[o]);return this.element.trigger(i,n),!(t.isFunction(r)&&!1===r.apply(this.element[0],[i].concat(n))||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},(function(e,i){t.Widget.prototype["_"+e]=function(n,o,s){"string"==typeof o&&(o={effect:o});var r,a=o?!0===o||"number"==typeof o?i:o.effect||i:e;"number"==typeof(o=o||{})&&(o={duration:o}),r=!t.isEmptyObject(o),o.complete=s,o.delay&&n.delay(o.delay),r&&t.effects&&t.effects.effect[a]?n[e](o):a!==e&&n[a]?n[a](o.duration,o.easing,s):n.queue((function(i){t(this)[e](),s&&s.call(n[0]),i()}))}}))}(jQuery),function(t){var e=!1;t(document).mouseup((function(){e=!1})),t.widget("ui.mouse",{version:"1.10.3",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.bind("mousedown."+this.widgetName,(function(t){return e._mouseDown(t)})).bind("click."+this.widgetName,(function(i){return!0===t.data(i.target,e.widgetName+".preventClickEvent")?(t.removeData(i.target,e.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1):void 0})),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&t(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(i){if(!e){this._mouseStarted&&this._mouseUp(i),this._mouseDownEvent=i;var n=this,o=1===i.which,s=!("string"!=typeof this.options.cancel||!i.target.nodeName)&&t(i.target).closest(this.options.cancel).length;return!(o&&!s&&this._mouseCapture(i))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout((function(){n.mouseDelayMet=!0}),this.options.delay)),this._mouseDistanceMet(i)&&this._mouseDelayMet(i)&&(this._mouseStarted=!1!==this._mouseStart(i),!this._mouseStarted)?(i.preventDefault(),!0):(!0===t.data(i.target,this.widgetName+".preventClickEvent")&&t.removeData(i.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return n._mouseMove(t)},this._mouseUpDelegate=function(t){return n._mouseUp(t)},t(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),i.preventDefault(),e=!0,!0))}},_mouseMove:function(e){return t.ui.ie&&(!document.documentMode||9>document.documentMode)&&!e.button?this._mouseUp(e):this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_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(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}(jQuery),function(t,e){function i(t,e,i){return[parseFloat(t[0])*(p.test(t[0])?e/100:1),parseFloat(t[1])*(p.test(t[1])?i/100:1)]}function n(e,i){return parseInt(t.css(e,i),10)||0}function o(e){var i=e[0];return 9===i.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:t.isWindow(i)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}t.ui=t.ui||{};var s,r=Math.max,a=Math.abs,l=Math.round,c=/left|center|right/,h=/top|center|bottom/,u=/[\+\-]\d+(\.[\d]+)?%?/,d=/^\w+/,p=/%$/,f=t.fn.position;t.position={scrollbarWidth:function(){if(undefined!==s)return s;var e,i,n=t("<div style='display:block;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),o=n.children()[0];return t("body").append(n),e=o.offsetWidth,n.css("overflow","scroll"),e===(i=o.offsetWidth)&&(i=n[0].clientWidth),n.remove(),s=e-i},getScrollInfo:function(e){var i=e.isWindow?"":e.element.css("overflow-x"),n=e.isWindow?"":e.element.css("overflow-y"),o="scroll"===i||"auto"===i&&e.width<e.element[0].scrollWidth;return{width:"scroll"===n||"auto"===n&&e.height<e.element[0].scrollHeight?t.position.scrollbarWidth():0,height:o?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var i=t(e||window),n=t.isWindow(i[0]);return{element:i,isWindow:n,offset:i.offset()||{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:n?i.width():i.outerWidth(),height:n?i.height():i.outerHeight()}}},t.fn.position=function(e){if(!e||!e.of)return f.apply(this,arguments);e=t.extend({},e);var s,p,g,m,v,y,b=t(e.of),w=t.position.getWithinInfo(e.within),x=t.position.getScrollInfo(w),C=(e.collision||"flip").split(" "),_={};return y=o(b),b[0].preventDefault&&(e.at="left top"),p=y.width,g=y.height,m=y.offset,v=t.extend({},m),t.each(["my","at"],(function(){var t,i,n=(e[this]||"").split(" ");1===n.length&&(n=c.test(n[0])?n.concat(["center"]):h.test(n[0])?["center"].concat(n):["center","center"]),n[0]=c.test(n[0])?n[0]:"center",n[1]=h.test(n[1])?n[1]:"center",t=u.exec(n[0]),i=u.exec(n[1]),_[this]=[t?t[0]:0,i?i[0]:0],e[this]=[d.exec(n[0])[0],d.exec(n[1])[0]]})),1===C.length&&(C[1]=C[0]),"right"===e.at[0]?v.left+=p:"center"===e.at[0]&&(v.left+=p/2),"bottom"===e.at[1]?v.top+=g:"center"===e.at[1]&&(v.top+=g/2),s=i(_.at,p,g),v.left+=s[0],v.top+=s[1],this.each((function(){var o,c,h=t(this),u=h.outerWidth(),d=h.outerHeight(),f=n(this,"marginLeft"),y=n(this,"marginTop"),T=u+f+n(this,"marginRight")+x.width,E=d+y+n(this,"marginBottom")+x.height,S=t.extend({},v),k=i(_.my,h.outerWidth(),h.outerHeight());"right"===e.my[0]?S.left-=u:"center"===e.my[0]&&(S.left-=u/2),"bottom"===e.my[1]?S.top-=d:"center"===e.my[1]&&(S.top-=d/2),S.left+=k[0],S.top+=k[1],t.support.offsetFractions||(S.left=l(S.left),S.top=l(S.top)),o={marginLeft:f,marginTop:y},t.each(["left","top"],(function(i,n){t.ui.position[C[i]]&&t.ui.position[C[i]][n](S,{targetWidth:p,targetHeight:g,elemWidth:u,elemHeight:d,collisionPosition:o,collisionWidth:T,collisionHeight:E,offset:[s[0]+k[0],s[1]+k[1]],my:e.my,at:e.at,within:w,elem:h})})),e.using&&(c=function(t){var i=m.left-S.left,n=i+p-u,o=m.top-S.top,s=o+g-d,l={target:{element:b,left:m.left,top:m.top,width:p,height:g},element:{element:h,left:S.left,top:S.top,width:u,height:d},horizontal:0>n?"left":i>0?"right":"center",vertical:0>s?"top":o>0?"bottom":"middle"};u>p&&p>a(i+n)&&(l.horizontal="center"),d>g&&g>a(o+s)&&(l.vertical="middle"),l.important=r(a(i),a(n))>r(a(o),a(s))?"horizontal":"vertical",e.using.call(this,t,l)}),h.offset(t.extend(S,{using:c}))}))},t.ui.position={fit:{left:function(t,e){var i,n=e.within,o=n.isWindow?n.scrollLeft:n.offset.left,s=n.width,a=t.left-e.collisionPosition.marginLeft,l=o-a,c=a+e.collisionWidth-s-o;e.collisionWidth>s?l>0&&0>=c?(i=t.left+l+e.collisionWidth-s-o,t.left+=l-i):t.left=c>0&&0>=l?o:l>c?o+s-e.collisionWidth:o:l>0?t.left+=l:c>0?t.left-=c:t.left=r(t.left-a,t.left)},top:function(t,e){var i,n=e.within,o=n.isWindow?n.scrollTop:n.offset.top,s=e.within.height,a=t.top-e.collisionPosition.marginTop,l=o-a,c=a+e.collisionHeight-s-o;e.collisionHeight>s?l>0&&0>=c?(i=t.top+l+e.collisionHeight-s-o,t.top+=l-i):t.top=c>0&&0>=l?o:l>c?o+s-e.collisionHeight:o:l>0?t.top+=l:c>0?t.top-=c:t.top=r(t.top-a,t.top)}},flip:{left:function(t,e){var i,n,o=e.within,s=o.offset.left+o.scrollLeft,r=o.width,l=o.isWindow?o.scrollLeft:o.offset.left,c=t.left-e.collisionPosition.marginLeft,h=c-l,u=c+e.collisionWidth-r-l,d="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,p="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,f=-2*e.offset[0];0>h?(0>(i=t.left+d+p+f+e.collisionWidth-r-s)||a(h)>i)&&(t.left+=d+p+f):u>0&&(((n=t.left-e.collisionPosition.marginLeft+d+p+f-l)>0||u>a(n))&&(t.left+=d+p+f))},top:function(t,e){var i,n,o=e.within,s=o.offset.top+o.scrollTop,r=o.height,l=o.isWindow?o.scrollTop:o.offset.top,c=t.top-e.collisionPosition.marginTop,h=c-l,u=c+e.collisionHeight-r-l,d="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,p="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,f=-2*e.offset[1];0>h?(n=t.top+d+p+f+e.collisionHeight-r-s,t.top+d+p+f>h&&(0>n||a(h)>n)&&(t.top+=d+p+f)):u>0&&(i=t.top-e.collisionPosition.marginTop+d+p+f-l,t.top+d+p+f>u&&(i>0||u>a(i))&&(t.top+=d+p+f))}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}},function(){var e,i,n,o,s,r=document.getElementsByTagName("body")[0],a=document.createElement("div");for(s in e=document.createElement(r?"div":"body"),n={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},r&&t.extend(n,{position:"absolute",left:"-1000px",top:"-1000px"}),n)e.style[s]=n[s];e.appendChild(a),(i=r||document.documentElement).insertBefore(e,i.firstChild),a.style.cssText="position: absolute; left: 10.7432222px;",o=t(a).offset().left,t.support.offsetFractions=o>10&&11>o,e.innerHTML="",i.removeChild(e)}()}(jQuery),function(t){t.widget("ui.draggable",t.ui.mouse,{version:"1.10.3",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,drag:null,start:null,stop:null},_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(){this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy()},_mouseCapture:function(e){var i=this.options;return!(this.helper||i.disabled||t(e.target).closest(".ui-resizable-handle").length>0)&&(this.handle=this._getHandle(e),!!this.handle&&(t(!0===i.iframeFix?"iframe":i.iframeFix).each((function(){t("<div class='ui-draggable-iframeFix' style='background: #fff;'></div>").css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(t(this).offset()).appendTo("body")})),!0))},_mouseStart:function(e){var i=this.options;return this.helper=this._createHelper(e),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(),this.offsetParent=this.helper.offsetParent(),this.offsetParentCssPosition=this.offsetParent.css("position"),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},this.offset.scroll=!1,t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),!1===this._trigger("start",e)?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!i.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_mouseDrag:function(e,i){if("fixed"===this.offsetParentCssPosition&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),!i){var n=this._uiHash();if(!1===this._trigger("drag",e,n))return this._mouseUp({}),!1;this.position=n.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 i=this,n=!1;return t.ui.ddmanager&&!this.options.dropBehaviour&&(n=t.ui.ddmanager.drop(this,e)),this.dropped&&(n=this.dropped,this.dropped=!1),!("original"===this.options.helper&&!t.contains(this.element[0].ownerDocument,this.element[0]))&&("invalid"===this.options.revert&&!n||"valid"===this.options.revert&&n||!0===this.options.revert||t.isFunction(this.options.revert)&&this.options.revert.call(this.element,n)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),(function(){!1!==i._trigger("stop",e)&&i._clear()})):!1!==this._trigger("stop",e)&&this._clear(),!1)},_mouseUp:function(e){return 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){return!this.options.handle||!!t(e.target).closest(this.element.find(this.options.handle)).length},_createHelper:function(e){var i=this.options,n=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element;return n.parents("body").length||n.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),n[0]===this.element[0]||/(fixed|absolute)/.test(n.css("position"))||n.css("position","absolute"),n},_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(){var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==document&&t.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.ui.ie)&&(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,i,n,o=this.options;return o.containment?"window"===o.containment?void(this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):"document"===o.containment?void(this.containment=[0,0,t(document).width()-this.helperProportions.width-this.margins.left,(t(document).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):o.containment.constructor===Array?void(this.containment=o.containment):("parent"===o.containment&&(o.containment=this.helper[0].parentNode),void((n=(i=t(o.containment))[0])&&(e="hidden"!==i.css("overflow"),this.containment=[(parseInt(i.css("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(parseInt(i.css("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(e?Math.max(n.scrollWidth,n.offsetWidth):n.offsetWidth)-(parseInt(i.css("borderRightWidth"),10)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(n.scrollHeight,n.offsetHeight):n.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=i))):void(this.containment=null)},_convertPositionTo:function(e,i){i||(i=this.position);var n="absolute"===e?1:-1,o="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent;return this.offset.scroll||(this.offset.scroll={top:o.scrollTop(),left:o.scrollLeft()}),{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():this.offset.scroll.top)*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)*n}},_generatePosition:function(e){var i,n,o,s,r=this.options,a="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=e.pageX,c=e.pageY;return this.offset.scroll||(this.offset.scroll={top:a.scrollTop(),left:a.scrollLeft()}),this.originalPosition&&(this.containment&&(this.relative_container?(n=this.relative_container.offset(),i=[this.containment[0]+n.left,this.containment[1]+n.top,this.containment[2]+n.left,this.containment[3]+n.top]):i=this.containment,e.pageX-this.offset.click.left<i[0]&&(l=i[0]+this.offset.click.left),e.pageY-this.offset.click.top<i[1]&&(c=i[1]+this.offset.click.top),e.pageX-this.offset.click.left>i[2]&&(l=i[2]+this.offset.click.left),e.pageY-this.offset.click.top>i[3]&&(c=i[3]+this.offset.click.top)),r.grid&&(o=r.grid[1]?this.originalPageY+Math.round((c-this.originalPageY)/r.grid[1])*r.grid[1]:this.originalPageY,c=i?o-this.offset.click.top>=i[1]||o-this.offset.click.top>i[3]?o:o-this.offset.click.top>=i[1]?o-r.grid[1]:o+r.grid[1]:o,s=r.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/r.grid[0])*r.grid[0]:this.originalPageX,l=i?s-this.offset.click.left>=i[0]||s-this.offset.click.left>i[2]?s:s-this.offset.click.left>=i[0]?s-r.grid[0]:s+r.grid[0]:s)),{top:c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)}},_clear:function(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1},_trigger:function(e,i,n){return n=n||this._uiHash(),t.ui.plugin.call(this,e,[i,n]),"drag"===e&&(this.positionAbs=this._convertPositionTo("absolute")),t.Widget.prototype._trigger.call(this,e,i,n)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,i){var n=t(this).data("ui-draggable"),o=n.options,s=t.extend({},i,{item:n.element});n.sortables=[],t(o.connectToSortable).each((function(){var i=t.data(this,"ui-sortable");i&&!i.options.disabled&&(n.sortables.push({instance:i,shouldRevert:i.options.revert}),i.refreshPositions(),i._trigger("activate",e,s))}))},stop:function(e,i){var n=t(this).data("ui-draggable"),o=t.extend({},i,{item:n.element});t.each(n.sortables,(function(){this.instance.isOver?(this.instance.isOver=0,n.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=this.shouldRevert),this.instance._mouseStop(e),this.instance.options.helper=this.instance.options._helper,"original"===n.options.helper&&this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",e,o))}))},drag:function(e,i){var n=t(this).data("ui-draggable"),o=this;t.each(n.sortables,(function(){var s=!1,r=this;this.instance.positionAbs=n.positionAbs,this.instance.helperProportions=n.helperProportions,this.instance.offset.click=n.offset.click,this.instance._intersectsWith(this.instance.containerCache)&&(s=!0,t.each(n.sortables,(function(){return this.instance.positionAbs=n.positionAbs,this.instance.helperProportions=n.helperProportions,this.instance.offset.click=n.offset.click,this!==r&&this.instance._intersectsWith(this.instance.containerCache)&&t.contains(r.instance.element[0],this.instance.element[0])&&(s=!1),s}))),s?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=t(o).clone().removeAttr("id").appendTo(this.instance.element).data("ui-sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return i.helper[0]},e.target=this.instance.currentItem[0],this.instance._mouseCapture(e,!0),this.instance._mouseStart(e,!0,!0),this.instance.offset.click.top=n.offset.click.top,this.instance.offset.click.left=n.offset.click.left,this.instance.offset.parent.left-=n.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=n.offset.parent.top-this.instance.offset.parent.top,n._trigger("toSortable",e),n.dropped=this.instance.element,n.currentItem=n.element,this.instance.fromOutside=n),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(),n._trigger("fromSortable",e),n.dropped=!1)}))}}),t.ui.plugin.add("draggable","cursor",{start:function(){var e=t("body"),i=t(this).data("ui-draggable").options;e.css("cursor")&&(i._cursor=e.css("cursor")),e.css("cursor",i.cursor)},stop:function(){var e=t(this).data("ui-draggable").options;e._cursor&&t("body").css("cursor",e._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,i){var n=t(i.helper),o=t(this).data("ui-draggable").options;n.css("opacity")&&(o._opacity=n.css("opacity")),n.css("opacity",o.opacity)},stop:function(e,i){var n=t(this).data("ui-draggable").options;n._opacity&&t(i.helper).css("opacity",n._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(){var e=t(this).data("ui-draggable");e.scrollParent[0]!==document&&"HTML"!==e.scrollParent[0].tagName&&(e.overflowOffset=e.scrollParent.offset())},drag:function(e){var i=t(this).data("ui-draggable"),n=i.options,o=!1;i.scrollParent[0]!==document&&"HTML"!==i.scrollParent[0].tagName?(n.axis&&"x"===n.axis||(i.overflowOffset.top+i.scrollParent[0].offsetHeight-e.pageY<n.scrollSensitivity?i.scrollParent[0].scrollTop=o=i.scrollParent[0].scrollTop+n.scrollSpeed:e.pageY-i.overflowOffset.top<n.scrollSensitivity&&(i.scrollParent[0].scrollTop=o=i.scrollParent[0].scrollTop-n.scrollSpeed)),n.axis&&"y"===n.axis||(i.overflowOffset.left+i.scrollParent[0].offsetWidth-e.pageX<n.scrollSensitivity?i.scrollParent[0].scrollLeft=o=i.scrollParent[0].scrollLeft+n.scrollSpeed:e.pageX-i.overflowOffset.left<n.scrollSensitivity&&(i.scrollParent[0].scrollLeft=o=i.scrollParent[0].scrollLeft-n.scrollSpeed))):(n.axis&&"x"===n.axis||(e.pageY-t(document).scrollTop()<n.scrollSensitivity?o=t(document).scrollTop(t(document).scrollTop()-n.scrollSpeed):t(window).height()-(e.pageY-t(document).scrollTop())<n.scrollSensitivity&&(o=t(document).scrollTop(t(document).scrollTop()+n.scrollSpeed))),n.axis&&"y"===n.axis||(e.pageX-t(document).scrollLeft()<n.scrollSensitivity?o=t(document).scrollLeft(t(document).scrollLeft()-n.scrollSpeed):t(window).width()-(e.pageX-t(document).scrollLeft())<n.scrollSensitivity&&(o=t(document).scrollLeft(t(document).scrollLeft()+n.scrollSpeed)))),!1!==o&&t.ui.ddmanager&&!n.dropBehaviour&&t.ui.ddmanager.prepareOffsets(i,e)}}),t.ui.plugin.add("draggable","snap",{start:function(){var e=t(this).data("ui-draggable"),i=e.options;e.snapElements=[],t(i.snap.constructor!==String?i.snap.items||":data(ui-draggable)":i.snap).each((function(){var i=t(this),n=i.offset();this!==e.element[0]&&e.snapElements.push({item:this,width:i.outerWidth(),height:i.outerHeight(),top:n.top,left:n.left})}))},drag:function(e,i){var n,o,s,r,a,l,c,h,u,d,p=t(this).data("ui-draggable"),f=p.options,g=f.snapTolerance,m=i.offset.left,v=m+p.helperProportions.width,y=i.offset.top,b=y+p.helperProportions.height;for(u=p.snapElements.length-1;u>=0;u--)l=(a=p.snapElements[u].left)+p.snapElements[u].width,h=(c=p.snapElements[u].top)+p.snapElements[u].height,a-g>v||m>l+g||c-g>b||y>h+g||!t.contains(p.snapElements[u].item.ownerDocument,p.snapElements[u].item)?(p.snapElements[u].snapping&&p.options.snap.release&&p.options.snap.release.call(p.element,e,t.extend(p._uiHash(),{snapItem:p.snapElements[u].item})),p.snapElements[u].snapping=!1):("inner"!==f.snapMode&&(n=g>=Math.abs(c-b),o=g>=Math.abs(h-y),s=g>=Math.abs(a-v),r=g>=Math.abs(l-m),n&&(i.position.top=p._convertPositionTo("relative",{top:c-p.helperProportions.height,left:0}).top-p.margins.top),o&&(i.position.top=p._convertPositionTo("relative",{top:h,left:0}).top-p.margins.top),s&&(i.position.left=p._convertPositionTo("relative",{top:0,left:a-p.helperProportions.width}).left-p.margins.left),r&&(i.position.left=p._convertPositionTo("relative",{top:0,left:l}).left-p.margins.left)),d=n||o||s||r,"outer"!==f.snapMode&&(n=g>=Math.abs(c-y),o=g>=Math.abs(h-b),s=g>=Math.abs(a-m),r=g>=Math.abs(l-v),n&&(i.position.top=p._convertPositionTo("relative",{top:c,left:0}).top-p.margins.top),o&&(i.position.top=p._convertPositionTo("relative",{top:h-p.helperProportions.height,left:0}).top-p.margins.top),s&&(i.position.left=p._convertPositionTo("relative",{top:0,left:a}).left-p.margins.left),r&&(i.position.left=p._convertPositionTo("relative",{top:0,left:l-p.helperProportions.width}).left-p.margins.left)),!p.snapElements[u].snapping&&(n||o||s||r||d)&&p.options.snap.snap&&p.options.snap.snap.call(p.element,e,t.extend(p._uiHash(),{snapItem:p.snapElements[u].item})),p.snapElements[u].snapping=n||o||s||r||d)}}),t.ui.plugin.add("draggable","stack",{start:function(){var e,i=this.data("ui-draggable").options,n=t.makeArray(t(i.stack)).sort((function(e,i){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(i).css("zIndex"),10)||0)}));n.length&&(e=parseInt(t(n[0]).css("zIndex"),10)||0,t(n).each((function(i){t(this).css("zIndex",e+i)})),this.css("zIndex",e+n.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,i){var n=t(i.helper),o=t(this).data("ui-draggable").options;n.css("zIndex")&&(o._zIndex=n.css("zIndex")),n.css("zIndex",o.zIndex)},stop:function(e,i){var n=t(this).data("ui-draggable").options;n._zIndex&&t(i.helper).css("zIndex",n._zIndex)}})}(jQuery),function(t){function e(t,e,i){return t>e&&e+i>t}t.widget("ui.droppable",{version:"1.10.3",widgetEventPrefix:"drop",options:{accept:"*",activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var e=this.options,i=e.accept;this.isover=!1,this.isout=!0,this.accept=t.isFunction(i)?i:function(t){return t.is(i)},this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight},t.ui.ddmanager.droppables[e.scope]=t.ui.ddmanager.droppables[e.scope]||[],t.ui.ddmanager.droppables[e.scope].push(this),e.addClasses&&this.element.addClass("ui-droppable")},_destroy:function(){for(var e=0,i=t.ui.ddmanager.droppables[this.options.scope];i.length>e;e++)i[e]===this&&i.splice(e,1);this.element.removeClass("ui-droppable ui-droppable-disabled")},_setOption:function(e,i){"accept"===e&&(this.accept=t.isFunction(i)?i:function(t){return t.is(i)}),t.Widget.prototype._setOption.apply(this,arguments)},_activate:function(e){var i=t.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass),i&&this._trigger("activate",e,this.ui(i))},_deactivate:function(e){var i=t.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass),i&&this._trigger("deactivate",e,this.ui(i))},_over:function(e){var i=t.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this.options.hoverClass&&this.element.addClass(this.options.hoverClass),this._trigger("over",e,this.ui(i)))},_out:function(e){var i=t.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("out",e,this.ui(i)))},_drop:function(e,i){var n=i||t.ui.ddmanager.current,o=!1;return!(!n||(n.currentItem||n.element)[0]===this.element[0])&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each((function(){var e=t.data(this,"ui-droppable");return e.options.greedy&&!e.options.disabled&&e.options.scope===n.options.scope&&e.accept.call(e.element[0],n.currentItem||n.element)&&t.ui.intersect(n,t.extend(e,{offset:e.element.offset()}),e.options.tolerance)?(o=!0,!1):void 0})),!o&&(!!this.accept.call(this.element[0],n.currentItem||n.element)&&(this.options.activeClass&&this.element.removeClass(this.options.activeClass),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("drop",e,this.ui(n)),this.element)))},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.helper,position:t.position,offset:t.positionAbs}}}),t.ui.intersect=function(t,i,n){if(!i.offset)return!1;var o,s=(t.positionAbs||t.position.absolute).left,r=s+t.helperProportions.width,a=(t.positionAbs||t.position.absolute).top,l=a+t.helperProportions.height,c=i.offset.left,h=c+i.proportions.width,u=i.offset.top,d=u+i.proportions.height;switch(n){case"fit":return s>=c&&h>=r&&a>=u&&d>=l;case"intersect":return s+t.helperProportions.width/2>c&&h>r-t.helperProportions.width/2&&a+t.helperProportions.height/2>u&&d>l-t.helperProportions.height/2;case"pointer":return o=(t.positionAbs||t.position.absolute).left+(t.clickOffset||t.offset.click).left,e((t.positionAbs||t.position.absolute).top+(t.clickOffset||t.offset.click).top,u,i.proportions.height)&&e(o,c,i.proportions.width);case"touch":return(a>=u&&d>=a||l>=u&&d>=l||u>a&&l>d)&&(s>=c&&h>=s||r>=c&&h>=r||c>s&&r>h);default:return!1}},t.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(e,i){var n,o,s=t.ui.ddmanager.droppables[e.options.scope]||[],r=i?i.type:null,a=(e.currentItem||e.element).find(":data(ui-droppable)").addBack();t:for(n=0;s.length>n;n++)if(!(s[n].options.disabled||e&&!s[n].accept.call(s[n].element[0],e.currentItem||e.element))){for(o=0;a.length>o;o++)if(a[o]===s[n].element[0]){s[n].proportions.height=0;continue t}s[n].visible="none"!==s[n].element.css("display"),s[n].visible&&("mousedown"===r&&s[n]._activate.call(s[n],i),s[n].offset=s[n].element.offset(),s[n].proportions={width:s[n].element[0].offsetWidth,height:s[n].element[0].offsetHeight})}},drop:function(e,i){var n=!1;return t.each((t.ui.ddmanager.droppables[e.options.scope]||[]).slice(),(function(){this.options&&(!this.options.disabled&&this.visible&&t.ui.intersect(e,this,this.options.tolerance)&&(n=this._drop.call(this,i)||n),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,i)))})),n},dragStart:function(e,i){e.element.parentsUntil("body").bind("scroll.droppable",(function(){e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)}))},drag:function(e,i){e.options.refreshPositions&&t.ui.ddmanager.prepareOffsets(e,i),t.each(t.ui.ddmanager.droppables[e.options.scope]||[],(function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var n,o,s,r=t.ui.intersect(e,this,this.options.tolerance),a=!r&&this.isover?"isout":r&&!this.isover?"isover":null;a&&(this.options.greedy&&(o=this.options.scope,(s=this.element.parents(":data(ui-droppable)").filter((function(){return t.data(this,"ui-droppable").options.scope===o}))).length&&((n=t.data(s[0],"ui-droppable")).greedyChild="isover"===a)),n&&"isover"===a&&(n.isover=!1,n.isout=!0,n._out.call(n,i)),this[a]=!0,this["isout"===a?"isover":"isout"]=!1,this["isover"===a?"_over":"_out"].call(this,i),n&&"isout"===a&&(n.isout=!1,n.isover=!0,n._over.call(n,i)))}}))},dragStop:function(e,i){e.element.parentsUntil("body").unbind("scroll.droppable"),e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)}}}(jQuery),function(t){function e(t){return parseInt(t,10)||0}function i(t){return!isNaN(parseInt(t,10))}t.widget("ui.resizable",t.ui.mouse,{version:"1.10.3",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_create:function(){var e,i,n,o,s=this,r=this.options;if(this.element.addClass("ui-resizable"),t.extend(this,{_aspectRatio:!!r.aspectRatio,aspectRatio:r.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:r.helper||r.ghost||r.animate?r.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)&&(this.element.wrap(t("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.data("ui-resizable")),this.elementIsWrapper=!0,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css({margin:this.originalElement.css("margin")}),this._proportionallyResize()),this.handles=r.handles||(t(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),e=this.handles.split(","),this.handles={},i=0;e.length>i;i++)n=t.trim(e[i]),(o=t("<div class='ui-resizable-handle "+("ui-resizable-"+n)+"'></div>")).css({zIndex:r.zIndex}),"se"===n&&o.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[n]=".ui-resizable-"+n,this.element.append(o);this._renderAxis=function(e){var i,n,o,s;for(i in e=e||this.element,this.handles)this.handles[i].constructor===String&&(this.handles[i]=t(this.handles[i],this.element).show()),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)&&(n=t(this.handles[i],this.element),s=/sw|ne|nw|se|n|s/.test(i)?n.outerHeight():n.outerWidth(),o=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),e.css(o,s),this._proportionallyResize()),t(this.handles[i]).length},this._renderAxis(this.element),this._handles=t(".ui-resizable-handle",this.element).disableSelection(),this._handles.mouseover((function(){s.resizing||(this.className&&(o=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),s.axis=o&&o[1]?o[1]:"se")})),r.autoHide&&(this._handles.hide(),t(this.element).addClass("ui-resizable-autohide").mouseenter((function(){r.disabled||(t(this).removeClass("ui-resizable-autohide"),s._handles.show())})).mouseleave((function(){r.disabled||s.resizing||(t(this).addClass("ui-resizable-autohide"),s._handles.hide())}))),this._mouseInit()},_destroy:function(){this._mouseDestroy();var e,i=function(e){t(e).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(i(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),i(this.originalElement),this},_mouseCapture:function(e){var i,n,o=!1;for(i in this.handles)((n=t(this.handles[i])[0])===e.target||t.contains(n,e.target))&&(o=!0);return!this.options.disabled&&o},_mouseStart:function(i){var n,o,s,r=this.options,a=this.element.position(),l=this.element;return this.resizing=!0,/absolute/.test(l.css("position"))?l.css({position:"absolute",top:l.css("top"),left:l.css("left")}):l.is(".ui-draggable")&&l.css({position:"absolute",top:a.top,left:a.left}),this._renderProxy(),n=e(this.helper.css("left")),o=e(this.helper.css("top")),r.containment&&(n+=t(r.containment).scrollLeft()||0,o+=t(r.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:n,top:o},this.size=this._helper?{width:l.outerWidth(),height:l.outerHeight()}:{width:l.width(),height:l.height()},this.originalSize=this._helper?{width:l.outerWidth(),height:l.outerHeight()}:{width:l.width(),height:l.height()},this.originalPosition={left:n,top:o},this.sizeDiff={width:l.outerWidth()-l.width(),height:l.outerHeight()-l.height()},this.originalMousePosition={left:i.pageX,top:i.pageY},this.aspectRatio="number"==typeof r.aspectRatio?r.aspectRatio:this.originalSize.width/this.originalSize.height||1,s=t(".ui-resizable-"+this.axis).css("cursor"),t("body").css("cursor","auto"===s?this.axis+"-resize":s),l.addClass("ui-resizable-resizing"),this._propagate("start",i),!0},_mouseDrag:function(e){var i,n=this.helper,o={},s=this.originalMousePosition,r=this.axis,a=this.position.top,l=this.position.left,c=this.size.width,h=this.size.height,u=e.pageX-s.left||0,d=e.pageY-s.top||0,p=this._change[r];return!!p&&(i=p.apply(this,[e,u,d]),this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(i=this._updateRatio(i,e)),i=this._respectSize(i,e),this._updateCache(i),this._propagate("resize",e),this.position.top!==a&&(o.top=this.position.top+"px"),this.position.left!==l&&(o.left=this.position.left+"px"),this.size.width!==c&&(o.width=this.size.width+"px"),this.size.height!==h&&(o.height=this.size.height+"px"),n.css(o),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),t.isEmptyObject(o)||this._trigger("resize",e,this.ui()),!1)},_mouseStop:function(e){this.resizing=!1;var i,n,o,s,r,a,l,c=this.options,h=this;return this._helper&&(o=(n=(i=this._proportionallyResizeElements).length&&/textarea/i.test(i[0].nodeName))&&t.ui.hasScroll(i[0],"left")?0:h.sizeDiff.height,s=n?0:h.sizeDiff.width,r={width:h.helper.width()-s,height:h.helper.height()-o},a=parseInt(h.element.css("left"),10)+(h.position.left-h.originalPosition.left)||null,l=parseInt(h.element.css("top"),10)+(h.position.top-h.originalPosition.top)||null,c.animate||this.element.css(t.extend(r,{top:l,left:a})),h.helper.height(h.size.height),h.helper.width(h.size.width),this._helper&&!c.animate&&this._proportionallyResize()),t("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updateVirtualBoundaries:function(t){var e,n,o,s,r,a=this.options;r={minWidth:i(a.minWidth)?a.minWidth:0,maxWidth:i(a.maxWidth)?a.maxWidth:1/0,minHeight:i(a.minHeight)?a.minHeight:0,maxHeight:i(a.maxHeight)?a.maxHeight:1/0},(this._aspectRatio||t)&&(e=r.minHeight*this.aspectRatio,o=r.minWidth/this.aspectRatio,n=r.maxHeight*this.aspectRatio,s=r.maxWidth/this.aspectRatio,e>r.minWidth&&(r.minWidth=e),o>r.minHeight&&(r.minHeight=o),r.maxWidth>n&&(r.maxWidth=n),r.maxHeight>s&&(r.maxHeight=s)),this._vBoundaries=r},_updateCache:function(t){this.offset=this.helper.offset(),i(t.left)&&(this.position.left=t.left),i(t.top)&&(this.position.top=t.top),i(t.height)&&(this.size.height=t.height),i(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,n=this.size,o=this.axis;return i(t.height)?t.width=t.height*this.aspectRatio:i(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===o&&(t.left=e.left+(n.width-t.width),t.top=null),"nw"===o&&(t.top=e.top+(n.height-t.height),t.left=e.left+(n.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,n=this.axis,o=i(t.width)&&e.maxWidth&&e.maxWidth<t.width,s=i(t.height)&&e.maxHeight&&e.maxHeight<t.height,r=i(t.width)&&e.minWidth&&e.minWidth>t.width,a=i(t.height)&&e.minHeight&&e.minHeight>t.height,l=this.originalPosition.left+this.originalSize.width,c=this.position.top+this.size.height,h=/sw|nw|w/.test(n),u=/nw|ne|n/.test(n);return r&&(t.width=e.minWidth),a&&(t.height=e.minHeight),o&&(t.width=e.maxWidth),s&&(t.height=e.maxHeight),r&&h&&(t.left=l-e.minWidth),o&&h&&(t.left=l-e.maxWidth),a&&u&&(t.top=c-e.minHeight),s&&u&&(t.top=c-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_proportionallyResize:function(){if(this._proportionallyResizeElements.length){var t,e,i,n,o,s=this.helper||this.element;for(t=0;this._proportionallyResizeElements.length>t;t++){if(o=this._proportionallyResizeElements[t],!this.borderDif)for(this.borderDif=[],i=[o.css("borderTopWidth"),o.css("borderRightWidth"),o.css("borderBottomWidth"),o.css("borderLeftWidth")],n=[o.css("paddingTop"),o.css("paddingRight"),o.css("paddingBottom"),o.css("paddingLeft")],e=0;i.length>e;e++)this.borderDif[e]=(parseInt(i[e],10)||0)+(parseInt(n[e],10)||0);o.css({height:s.height()-this.borderDif[0]-this.borderDif[2]||0,width:s.width()-this.borderDif[1]-this.borderDif[3]||0})}}},_renderProxy:function(){var e=this.element,i=this.options;this.elementOffset=e.offset(),this._helper?(this.helper=this.helper||t("<div style='overflow:hidden;'></div>"),this.helper.addClass(this._helper).css({width:this.element.outerWidth()-1,height:this.element.outerHeight()-1,position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var i=this.originalSize;return{left:this.originalPosition.left+e,width:i.width-e}},n:function(t,e,i){var n=this.originalSize,o=this.originalPosition;return{top:o.top+i,height:n.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(e,i,n){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,i,n]))},sw:function(e,i,n){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,i,n]))},ne:function(e,i,n){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,i,n]))},nw:function(e,i,n){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,i,n]))}},_propagate:function(e,i){t.ui.plugin.call(this,e,[i,this.ui()]),"resize"!==e&&this._trigger(e,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),t.ui.plugin.add("resizable","animate",{stop:function(e){var i=t(this).data("ui-resizable"),n=i.options,o=i._proportionallyResizeElements,s=o.length&&/textarea/i.test(o[0].nodeName),r=s&&t.ui.hasScroll(o[0],"left")?0:i.sizeDiff.height,a=s?0:i.sizeDiff.width,l={width:i.size.width-a,height:i.size.height-r},c=parseInt(i.element.css("left"),10)+(i.position.left-i.originalPosition.left)||null,h=parseInt(i.element.css("top"),10)+(i.position.top-i.originalPosition.top)||null;i.element.animate(t.extend(l,h&&c?{top:h,left:c}:{}),{duration:n.animateDuration,easing:n.animateEasing,step:function(){var n={width:parseInt(i.element.css("width"),10),height:parseInt(i.element.css("height"),10),top:parseInt(i.element.css("top"),10),left:parseInt(i.element.css("left"),10)};o&&o.length&&t(o[0]).css({width:n.width,height:n.height}),i._updateCache(n),i._propagate("resize",e)}})}}),t.ui.plugin.add("resizable","containment",{start:function(){var i,n,o,s,r,a,l,c=t(this).data("ui-resizable"),h=c.options,u=c.element,d=h.containment,p=d instanceof t?d.get(0):/parent/.test(d)?u.parent().get(0):d;p&&(c.containerElement=t(p),/document/.test(d)||d===document?(c.containerOffset={left:0,top:0},c.containerPosition={left:0,top:0},c.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight}):(i=t(p),n=[],t(["Top","Right","Left","Bottom"]).each((function(t,o){n[t]=e(i.css("padding"+o))})),c.containerOffset=i.offset(),c.containerPosition=i.position(),c.containerSize={height:i.innerHeight()-n[3],width:i.innerWidth()-n[1]},o=c.containerOffset,s=c.containerSize.height,r=c.containerSize.width,a=t.ui.hasScroll(p,"left")?p.scrollWidth:r,l=t.ui.hasScroll(p)?p.scrollHeight:s,c.parentData={element:p,left:o.left,top:o.top,width:a,height:l}))},resize:function(e){var i,n,o,s,r=t(this).data("ui-resizable"),a=r.options,l=r.containerOffset,c=r.position,h=r._aspectRatio||e.shiftKey,u={top:0,left:0},d=r.containerElement;d[0]!==document&&/static/.test(d.css("position"))&&(u=l),c.left<(r._helper?l.left:0)&&(r.size.width=r.size.width+(r._helper?r.position.left-l.left:r.position.left-u.left),h&&(r.size.height=r.size.width/r.aspectRatio),r.position.left=a.helper?l.left:0),c.top<(r._helper?l.top:0)&&(r.size.height=r.size.height+(r._helper?r.position.top-l.top:r.position.top),h&&(r.size.width=r.size.height*r.aspectRatio),r.position.top=r._helper?l.top:0),r.offset.left=r.parentData.left+r.position.left,r.offset.top=r.parentData.top+r.position.top,i=Math.abs((r._helper,r.offset.left-u.left+r.sizeDiff.width)),n=Math.abs((r._helper?r.offset.top-u.top:r.offset.top-l.top)+r.sizeDiff.height),o=r.containerElement.get(0)===r.element.parent().get(0),s=/relative|absolute/.test(r.containerElement.css("position")),o&&s&&(i-=r.parentData.left),i+r.size.width>=r.parentData.width&&(r.size.width=r.parentData.width-i,h&&(r.size.height=r.size.width/r.aspectRatio)),n+r.size.height>=r.parentData.height&&(r.size.height=r.parentData.height-n,h&&(r.size.width=r.size.height*r.aspectRatio))},stop:function(){var e=t(this).data("ui-resizable"),i=e.options,n=e.containerOffset,o=e.containerPosition,s=e.containerElement,r=t(e.helper),a=r.offset(),l=r.outerWidth()-e.sizeDiff.width,c=r.outerHeight()-e.sizeDiff.height;e._helper&&!i.animate&&/relative/.test(s.css("position"))&&t(this).css({left:a.left-o.left-n.left,width:l,height:c}),e._helper&&!i.animate&&/static/.test(s.css("position"))&&t(this).css({left:a.left-o.left-n.left,width:l,height:c})}}),t.ui.plugin.add("resizable","alsoResize",{start:function(){var e=t(this).data("ui-resizable").options,i=function(e){t(e).each((function(){var e=t(this);e.data("ui-resizable-alsoresize",{width:parseInt(e.width(),10),height:parseInt(e.height(),10),left:parseInt(e.css("left"),10),top:parseInt(e.css("top"),10)})}))};"object"!=_typeof(e.alsoResize)||e.alsoResize.parentNode?i(e.alsoResize):e.alsoResize.length?(e.alsoResize=e.alsoResize[0],i(e.alsoResize)):t.each(e.alsoResize,(function(t){i(t)}))},resize:function(e,i){var n=t(this).data("ui-resizable"),o=n.options,s=n.originalSize,r=n.originalPosition,a={height:n.size.height-s.height||0,width:n.size.width-s.width||0,top:n.position.top-r.top||0,left:n.position.left-r.left||0},l=function(e,n){t(e).each((function(){var e=t(this),o=t(this).data("ui-resizable-alsoresize"),s={},r=n&&n.length?n:e.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(r,(function(t,e){var i=(o[e]||0)+(a[e]||0);i&&i>=0&&(s[e]=i||null)})),e.css(s)}))};"object"!=_typeof(o.alsoResize)||o.alsoResize.nodeType?l(o.alsoResize):t.each(o.alsoResize,(function(t,e){l(t,e)}))},stop:function(){t(this).removeData("resizable-alsoresize")}}),t.ui.plugin.add("resizable","ghost",{start:function(){var e=t(this).data("ui-resizable"),i=e.options,n=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:n.height,width:n.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass("string"==typeof i.ghost?i.ghost:""),e.ghost.appendTo(e.helper)},resize:function(){var e=t(this).data("ui-resizable");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=t(this).data("ui-resizable");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(){var e=t(this).data("ui-resizable"),i=e.options,n=e.size,o=e.originalSize,s=e.originalPosition,r=e.axis,a="number"==typeof i.grid?[i.grid,i.grid]:i.grid,l=a[0]||1,c=a[1]||1,h=Math.round((n.width-o.width)/l)*l,u=Math.round((n.height-o.height)/c)*c,d=o.width+h,p=o.height+u,f=i.maxWidth&&d>i.maxWidth,g=i.maxHeight&&p>i.maxHeight,m=i.minWidth&&i.minWidth>d,v=i.minHeight&&i.minHeight>p;i.grid=a,m&&(d+=l),v&&(p+=c),f&&(d-=l),g&&(p-=c),/^(se|s|e)$/.test(r)?(e.size.width=d,e.size.height=p):/^(ne)$/.test(r)?(e.size.width=d,e.size.height=p,e.position.top=s.top-u):/^(sw)$/.test(r)?(e.size.width=d,e.size.height=p,e.position.left=s.left-h):(e.size.width=d,e.size.height=p,e.position.top=s.top-u,e.position.left=s.left-h)}})}(jQuery),function(t){t.widget("ui.selectable",t.ui.mouse,{version:"1.10.3",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var e,i=this;this.element.addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){(e=t(i.options.filter,i.element[0])).addClass("ui-selectee"),e.each((function(){var e=t(this),i=e.offset();t.data(this,"selectable-item",{element:this,$element:e,left:i.left,top:i.top,right:i.left+e.outerWidth(),bottom:i.top+e.outerHeight(),startselected:!1,selected:e.hasClass("ui-selected"),selecting:e.hasClass("ui-selecting"),unselecting:e.hasClass("ui-unselecting")})}))},this.refresh(),this.selectees=e.addClass("ui-selectee"),this._mouseInit(),this.helper=t("<div class='ui-selectable-helper'></div>")},_destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("ui-selectable ui-selectable-disabled"),this._mouseDestroy()},_mouseStart:function(e){var i=this,n=this.options;this.opos=[e.pageX,e.pageY],this.options.disabled||(this.selectees=t(n.filter,this.element[0]),this._trigger("start",e),t(n.appendTo).append(this.helper),this.helper.css({left:e.pageX,top:e.pageY,width:0,height:0}),n.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each((function(){var n=t.data(this,"selectable-item");n.startselected=!0,e.metaKey||e.ctrlKey||(n.$element.removeClass("ui-selected"),n.selected=!1,n.$element.addClass("ui-unselecting"),n.unselecting=!0,i._trigger("unselecting",e,{unselecting:n.element}))})),t(e.target).parents().addBack().each((function(){var n,o=t.data(this,"selectable-item");return o?(n=!e.metaKey&&!e.ctrlKey||!o.$element.hasClass("ui-selected"),o.$element.removeClass(n?"ui-unselecting":"ui-selected").addClass(n?"ui-selecting":"ui-unselecting"),o.unselecting=!n,o.selecting=n,o.selected=n,n?i._trigger("selecting",e,{selecting:o.element}):i._trigger("unselecting",e,{unselecting:o.element}),!1):void 0})))},_mouseDrag:function(e){if(this.dragged=!0,!this.options.disabled){var i,n=this,o=this.options,s=this.opos[0],r=this.opos[1],a=e.pageX,l=e.pageY;return s>a&&(i=a,a=s,s=i),r>l&&(i=l,l=r,r=i),this.helper.css({left:s,top:r,width:a-s,height:l-r}),this.selectees.each((function(){var i=t.data(this,"selectable-item"),c=!1;i&&i.element!==n.element[0]&&("touch"===o.tolerance?c=!(i.left>a||s>i.right||i.top>l||r>i.bottom):"fit"===o.tolerance&&(c=i.left>s&&a>i.right&&i.top>r&&l>i.bottom),c?(i.selected&&(i.$element.removeClass("ui-selected"),i.selected=!1),i.unselecting&&(i.$element.removeClass("ui-unselecting"),i.unselecting=!1),i.selecting||(i.$element.addClass("ui-selecting"),i.selecting=!0,n._trigger("selecting",e,{selecting:i.element}))):(i.selecting&&((e.metaKey||e.ctrlKey)&&i.startselected?(i.$element.removeClass("ui-selecting"),i.selecting=!1,i.$element.addClass("ui-selected"),i.selected=!0):(i.$element.removeClass("ui-selecting"),i.selecting=!1,i.startselected&&(i.$element.addClass("ui-unselecting"),i.unselecting=!0),n._trigger("unselecting",e,{unselecting:i.element}))),i.selected&&(e.metaKey||e.ctrlKey||i.startselected||(i.$element.removeClass("ui-selected"),i.selected=!1,i.$element.addClass("ui-unselecting"),i.unselecting=!0,n._trigger("unselecting",e,{unselecting:i.element})))))})),!1}},_mouseStop:function(e){var i=this;return this.dragged=!1,t(".ui-unselecting",this.element[0]).each((function(){var n=t.data(this,"selectable-item");n.$element.removeClass("ui-unselecting"),n.unselecting=!1,n.startselected=!1,i._trigger("unselected",e,{unselected:n.element})})),t(".ui-selecting",this.element[0]).each((function(){var n=t.data(this,"selectable-item");n.$element.removeClass("ui-selecting").addClass("ui-selected"),n.selecting=!1,n.selected=!0,n.startselected=!0,i._trigger("selected",e,{selected:n.element})})),this._trigger("stop",e),this.helper.remove(),!1}})}(jQuery),function(t){function e(t,e,i){return t>e&&e+i>t}function i(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))}t.widget("ui.sortable",t.ui.mouse,{version:"1.10.3",widgetEventPrefix:"sort",ready:!1,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,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_create:function(){var t=this.options;this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.floating=!!this.items.length&&("x"===t.axis||i(this.items[0].item)),this.offset=this.element.offset(),this._mouseInit(),this.ready=!0},_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,i){"disabled"===e?(this.options[e]=i,this.widget().toggleClass("ui-sortable-disabled",!!i)):t.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(e,i){var n=null,o=!1,s=this;return!this.reverting&&(!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(e),t(e.target).parents().each((function(){return t.data(this,s.widgetName+"-item")===s?(n=t(this),!1):void 0})),t.data(e.target,s.widgetName+"-item")===s&&(n=t(e.target)),!!n&&(!(this.options.handle&&!i&&(t(this.options.handle,n).find("*").addBack().each((function(){this===e.target&&(o=!0)})),!o))&&(this.currentItem=n,this._removeCurrentsFromItems(),!0))))},_mouseStart:function(e,i,n){var o,s,r=this.options;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},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),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.cursor&&"auto"!==r.cursor&&(s=this.document.find("body"),this.storedCursor=s.css("cursor"),s.css("cursor",r.cursor),this.storedStylesheet=t("<style>*{ cursor: "+r.cursor+" !important; }</style>").appendTo(s)),r.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(),!n)for(o=this.containers.length-1;o>=0;o--)this.containers[o]._trigger("activate",e,this._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){var i,n,o,s,r=this.options,a=!1;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==document&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<r.scrollSensitivity?this.scrollParent[0].scrollTop=a=this.scrollParent[0].scrollTop+r.scrollSpeed:e.pageY-this.overflowOffset.top<r.scrollSensitivity&&(this.scrollParent[0].scrollTop=a=this.scrollParent[0].scrollTop-r.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<r.scrollSensitivity?this.scrollParent[0].scrollLeft=a=this.scrollParent[0].scrollLeft+r.scrollSpeed:e.pageX-this.overflowOffset.left<r.scrollSensitivity&&(this.scrollParent[0].scrollLeft=a=this.scrollParent[0].scrollLeft-r.scrollSpeed)):(e.pageY-t(document).scrollTop()<r.scrollSensitivity?a=t(document).scrollTop(t(document).scrollTop()-r.scrollSpeed):t(window).height()-(e.pageY-t(document).scrollTop())<r.scrollSensitivity&&(a=t(document).scrollTop(t(document).scrollTop()+r.scrollSpeed)),e.pageX-t(document).scrollLeft()<r.scrollSensitivity?a=t(document).scrollLeft(t(document).scrollLeft()-r.scrollSpeed):t(window).width()-(e.pageX-t(document).scrollLeft())<r.scrollSensitivity&&(a=t(document).scrollLeft(t(document).scrollLeft()+r.scrollSpeed))),!1!==a&&t.ui.ddmanager&&!r.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"),i=this.items.length-1;i>=0;i--)if(o=(n=this.items[i]).item[0],(s=this._intersectsWithPointer(n))&&n.instance===this.currentContainer&&o!==this.currentItem[0]&&this.placeholder[1===s?"next":"prev"]()[0]!==o&&!t.contains(this.placeholder[0],o)&&("semi-dynamic"!==this.options.type||!t.contains(this.element[0],o))){if(this.direction=1===s?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(n))break;this._rearrange(e,n),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,i){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var n=this,o=this.placeholder.offset(),s=this.options.axis,r={};s&&"x"!==s||(r.left=o.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollLeft)),s&&"y"!==s||(r.top=o.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,t(this.helper).animate(r,parseInt(this.options.revert,10)||500,(function(){n._clear(e)}))}else this._clear(e,i);return!1}},cancel:function(){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 e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].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 i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},t(i).each((function(){var i=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);i&&n.push((e.key||i[1]+"[]")+"="+(e.key&&e.expression?i[1]:i[2]))})),!n.length&&e.key&&n.push(e.key+"="),n.join("&")},toArray:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},i.each((function(){n.push(t(e.item||this).attr(e.attribute||"id")||"")})),n},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,n=this.positionAbs.top,o=n+this.helperProportions.height,s=t.left,r=s+t.width,a=t.top,l=a+t.height,c=this.offset.click.top,h=this.offset.click.left,u="x"===this.options.axis||n+c>a&&l>n+c,d="y"===this.options.axis||e+h>s&&r>e+h,p=u&&d;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?p:e+this.helperProportions.width/2>s&&r>i-this.helperProportions.width/2&&n+this.helperProportions.height/2>a&&l>o-this.helperProportions.height/2},_intersectsWithPointer:function(t){var i="x"===this.options.axis||e(this.positionAbs.top+this.offset.click.top,t.top,t.height),n="y"===this.options.axis||e(this.positionAbs.left+this.offset.click.left,t.left,t.width),o=i&&n,s=this._getDragVerticalDirection(),r=this._getDragHorizontalDirection();return!!o&&(this.floating?r&&"right"===r||"down"===s?2:1:s&&("down"===s?2:1))},_intersectsWithSides:function(t){var i=e(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),n=e(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),o=this._getDragVerticalDirection(),s=this._getDragHorizontalDirection();return this.floating&&s?"right"===s&&n||"left"===s&&!n:o&&("down"===o&&i||"up"===o&&!i)},_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 i,n,o,s,r=[],a=[],l=this._connectWith();if(l&&e)for(i=l.length-1;i>=0;i--)for(n=(o=t(l[i])).length-1;n>=0;n--)(s=t.data(o[n],this.widgetFullName))&&s!==this&&!s.options.disabled&&a.push([t.isFunction(s.options.items)?s.options.items.call(s.element):t(s.options.items,s.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),s]);for(a.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]),i=a.length-1;i>=0;i--)a[i][0].each((function(){r.push(this)}));return t(r)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,(function(t){for(var i=0;e.length>i;i++)if(e[i]===t.item[0])return!1;return!0}))},_refreshItems:function(e){this.items=[],this.containers=[this];var i,n,o,s,r,a,l,c,h=this.items,u=[[t.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],d=this._connectWith();if(d&&this.ready)for(i=d.length-1;i>=0;i--)for(n=(o=t(d[i])).length-1;n>=0;n--)(s=t.data(o[n],this.widgetFullName))&&s!==this&&!s.options.disabled&&(u.push([t.isFunction(s.options.items)?s.options.items.call(s.element[0],e,{item:this.currentItem}):t(s.options.items,s.element),s]),this.containers.push(s));for(i=u.length-1;i>=0;i--)for(r=u[i][1],n=0,c=(a=u[i][0]).length;c>n;n++)(l=t(a[n])).data(this.widgetName+"-item",r),h.push({item:l,instance:r,width:0,height:0,left:0,top:0})},refreshPositions:function(e){var i,n,o,s;for(this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),i=this.items.length-1;i>=0;i--)(n=this.items[i]).instance!==this.currentContainer&&this.currentContainer&&n.item[0]!==this.currentItem[0]||(o=this.options.toleranceElement?t(this.options.toleranceElement,n.item):n.item,e||(n.width=o.outerWidth(),n.height=o.outerHeight()),s=o.offset(),n.left=s.left,n.top=s.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(i=this.containers.length-1;i>=0;i--)s=this.containers[i].element.offset(),this.containers[i].containerCache.left=s.left,this.containers[i].containerCache.top=s.top,this.containers[i].containerCache.width=this.containers[i].element.outerWidth(),this.containers[i].containerCache.height=this.containers[i].element.outerHeight();return this},_createPlaceholder:function(e){var i,n=(e=e||this).options;n.placeholder&&n.placeholder.constructor!==String||(i=n.placeholder,n.placeholder={element:function(){var n=e.currentItem[0].nodeName.toLowerCase(),o=t("<"+n+">",e.document[0]).addClass(i||e.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper");return"tr"===n?e.currentItem.children().each((function(){t("<td>&#160;</td>",e.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(o)})):"img"===n&&o.attr("src",e.currentItem.attr("src")),i||o.css("visibility","hidden"),o},update:function(t,o){(!i||n.forcePlaceholderSize)&&(o.height()||o.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),o.width()||o.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)))}}),e.placeholder=t(n.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),n.placeholder.update(e,e.placeholder)},_contactContainers:function(n){var o,s,r,a,l,c,h,u,d,p,f=null,g=null;for(o=this.containers.length-1;o>=0;o--)if(!t.contains(this.currentItem[0],this.containers[o].element[0]))if(this._intersectsWith(this.containers[o].containerCache)){if(f&&t.contains(this.containers[o].element[0],f.element[0]))continue;f=this.containers[o],g=o}else this.containers[o].containerCache.over&&(this.containers[o]._trigger("out",n,this._uiHash(this)),this.containers[o].containerCache.over=0);if(f)if(1===this.containers.length)this.containers[g].containerCache.over||(this.containers[g]._trigger("over",n,this._uiHash(this)),this.containers[g].containerCache.over=1);else{for(r=1e4,a=null,l=(p=f.floating||i(this.currentItem))?"left":"top",c=p?"width":"height",h=this.positionAbs[l]+this.offset.click[l],s=this.items.length-1;s>=0;s--)t.contains(this.containers[g].element[0],this.items[s].item[0])&&this.items[s].item[0]!==this.currentItem[0]&&(!p||e(this.positionAbs.top+this.offset.click.top,this.items[s].top,this.items[s].height))&&(u=this.items[s].item.offset()[l],d=!1,Math.abs(u-h)>Math.abs(u+this.items[s][c]-h)&&(d=!0,u+=this.items[s][c]),r>Math.abs(u-h)&&(r=Math.abs(u-h),a=this.items[s],this.direction=d?"up":"down"));if(!a&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[g])return;a?this._rearrange(n,a,null,!0):this._rearrange(n,null,this.containers[g].element,!0),this._trigger("change",n,this._uiHash()),this.containers[g]._trigger("change",n,this._uiHash(this)),this.currentContainer=this.containers[g],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[g]._trigger("over",n,this._uiHash(this)),this.containers[g].containerCache.over=1}},_createHelper:function(e){var i=this.options,n=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e,this.currentItem])):"clone"===i.helper?this.currentItem.clone():this.currentItem;return n.parents("body").length||t("parent"!==i.appendTo?i.appendTo:this.currentItem[0].parentNode)[0].appendChild(n[0]),n[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")}),(!n[0].style.width||i.forceHelperSize)&&n.width(this.currentItem.width()),(!n[0].style.height||i.forceHelperSize)&&n.height(this.currentItem.height()),n},_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.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.ui.ie)&&(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.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,i,n,o=this.options;"parent"===o.containment&&(o.containment=this.helper[0].parentNode),("document"===o.containment||"window"===o.containment)&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,t("document"===o.containment?document:window).width()-this.helperProportions.width-this.margins.left,(t("document"===o.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(o.containment)||(e=t(o.containment)[0],i=t(o.containment).offset(),n="hidden"!==t(e).css("overflow"),this.containment=[i.left+(parseInt(t(e).css("borderLeftWidth"),10)||0)+(parseInt(t(e).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(t(e).css("borderTopWidth"),10)||0)+(parseInt(t(e).css("paddingTop"),10)||0)-this.margins.top,i.left+(n?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(t(e).css("borderLeftWidth"),10)||0)-(parseInt(t(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(n?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(t(e).css("borderTopWidth"),10)||0)-(parseInt(t(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(e,i){i||(i=this.position);var n="absolute"===e?1:-1,o="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,s=/(html|body)/i.test(o[0].tagName);return{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():s?0:o.scrollTop())*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():s?0:o.scrollLeft())*n}},_generatePosition:function(e){var i,n,o=this.options,s=e.pageX,r=e.pageY,a="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=/(html|body)/i.test(a[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==document&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),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]&&(r=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]&&(r=this.containment[3]+this.offset.click.top)),o.grid&&(i=this.originalPageY+Math.round((r-this.originalPageY)/o.grid[1])*o.grid[1],r=this.containment?i-this.offset.click.top>=this.containment[1]&&i-this.offset.click.top<=this.containment[3]?i:i-this.offset.click.top>=this.containment[1]?i-o.grid[1]:i+o.grid[1]:i,n=this.originalPageX+Math.round((s-this.originalPageX)/o.grid[0])*o.grid[0],s=this.containment?n-this.offset.click.left>=this.containment[0]&&n-this.offset.click.left<=this.containment[2]?n:n-this.offset.click.left>=this.containment[0]?n-o.grid[0]:n+o.grid[0]:n)),{top:r-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:a.scrollTop()),left:s-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:a.scrollLeft())}},_rearrange:function(t,e,i,n){i?i[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 o=this.counter;this._delay((function(){o===this.counter&&this.refreshPositions(!n)}))},_clear:function(t,e){this.reverting=!1;var i,n=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)("auto"===this._storedCSS[i]||"static"===this._storedCSS[i])&&(this._storedCSS[i]="");this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!e&&n.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]||e||n.push((function(t){this._trigger("update",t,this._uiHash())})),this!==this.currentContainer&&(e||(n.push((function(t){this._trigger("remove",t,this._uiHash())})),n.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),n.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer)))),i=this.containers.length-1;i>=0;i--)e||n.push(function(t){return function(e){t._trigger("deactivate",e,this._uiHash(this))}}.call(this,this.containers[i])),this.containers[i].containerCache.over&&(n.push(function(t){return function(e){t._trigger("out",e,this._uiHash(this))}}.call(this,this.containers[i])),this.containers[i].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),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(!e){for(this._trigger("beforeStop",t,this._uiHash()),i=0;n.length>i;i++)n[i].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!1}if(e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null,!e){for(i=0;n.length>i;i++)n[i].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!0},_trigger:function(){!1===t.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(e){var i=e||this;return{helper:i.helper,placeholder:i.placeholder||t([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:e?e.element:null}}})}(jQuery),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");function checkMQ(){return window.getComputedStyle(document.querySelector(".main-content"),"::before").getPropertyValue("content").replace(/'/g,"").replace(/"/g,"")}function addTab(t,e,i){if($("#tabs-list").find("#tab_tab_"+e).length>0?$.addtabs.add({id:e,iframeId:e,target:"#tabs-list",url:app.url(t),title:i,loadbar:!0,refresh:!0}):$.addtabs.add({id:e,target:"#tabs-list",url:app.url(t),loadbar:!0,title:i}),$(".side-nav").hasClass("nav-is-visible")){var n=$(".side-nav"),o=$(".nav-scroll"),s=$(".nav-trigger");$([n,s,o]).toggleClass("nav-is-visible")}$(".side-nav").find(".hover").removeClass("hover"),$(".side-nav").find(".selected").removeClass("selected")}!function(t){var e=jQuery.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher")}(),function(t){"use strict";var e='[data-dismiss="alert"]',i=function(i){t(i).on("click",e,this.close)};i.VERSION="3.3.0",i.TRANSITION_DURATION=150,i.prototype.close=function(e){var n=t(this),o=n.attr("data-target");o||(o=(o=n.attr("href"))&&o.replace(/.*(?=#[^\s]*$)/,""));var s=t(o);function r(){s.detach().trigger("closed.bs.alert").remove()}e&&e.preventDefault(),s.length||(s=n.closest(".alert")),s.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(s.removeClass("in"),t.support.transition&&s.hasClass("fade")?s.one("bsTransitionEnd",r).emulateTransitionEnd(i.TRANSITION_DURATION):r())};var n=t.fn.alert;t.fn.alert=function(e){return this.each((function(){var n=t(this),o=n.data("bs.alert");o||n.data("bs.alert",o=new i(this)),"string"==typeof e&&o[e].call(n)}))},t.fn.alert.Constructor=i,t.fn.alert.noConflict=function(){return t.fn.alert=n,this},t(document).on("click.bs.alert.data-api",e,i.prototype.close)}(jQuery),function(t){"use strict";var e=function e(i,n){this.$element=t(i),this.options=t.extend({},e.DEFAULTS,n),this.isLoading=!1};function i(i){return this.each((function(){var n=t(this),o=n.data("bs.button"),s="object"==_typeof(i)&&i;o||n.data("bs.button",o=new e(this,s)),"toggle"==i?o.toggle():i&&o.setState(i)}))}e.VERSION="3.3.0",e.DEFAULTS={loadingText:"loading..."},e.prototype.setState=function(e){var i="disabled",n=this.$element,o=n.is("input")?"val":"html",s=n.data();e+="Text",null==s.resetText&&n.data("resetText",n[o]()),setTimeout(t.proxy((function(){n[o](null==s[e]?this.options[e]:s[e]),"loadingText"==e?(this.isLoading=!0,n.addClass(i).attr(i,i)):this.isLoading&&(this.isLoading=!1,n.removeClass(i).removeAttr(i))}),this),0)},e.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var i=this.$element.find("input");"radio"==i.prop("type")&&(i.prop("checked")&&this.$element.hasClass("active")?t=!1:e.find(".active").removeClass("active")),t&&i.prop("checked",!this.$element.hasClass("active")).trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active"));t&&this.$element.toggleClass("active")};var n=t.fn.button;t.fn.button=i,t.fn.button.Constructor=e,t.fn.button.noConflict=function(){return t.fn.button=n,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',(function(e){var n=t(e.target);n.hasClass("btn")||(n=n.closest(".btn")),i.call(n,"toggle"),e.preventDefault()})).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',(function(e){t(e.target).closest(".btn").toggleClass("focus","focus"==e.type)}))}(jQuery),function(t){"use strict";var e=function(e,i){this.$element=t(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=i,this.paused=this.sliding=this.interval=this.$active=this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",t.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",t.proxy(this.pause,this)).on("mouseleave.bs.carousel",t.proxy(this.cycle,this))};function i(i){return this.each((function(){var n=t(this),o=n.data("bs.carousel"),s=t.extend({},e.DEFAULTS,n.data(),"object"==_typeof(i)&&i),r="string"==typeof i?i:s.slide;o||n.data("bs.carousel",o=new e(this,s)),"number"==typeof i?o.to(i):r?o[r]():s.interval&&o.pause().cycle()}))}e.VERSION="3.3.0",e.TRANSITION_DURATION=600,e.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},e.prototype.keydown=function(t){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()},e.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},e.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},e.prototype.getItemForDirection=function(t,e){var i="prev"==t?-1:1,n=(this.getItemIndex(e)+i)%this.$items.length;return this.$items.eq(n)},e.prototype.to=function(t){var e=this,i=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(t>this.$items.length-1||t<0))return this.sliding?this.$element.one("slid.bs.carousel",(function(){e.to(t)})):i==t?this.pause().cycle():this.slide(t>i?"next":"prev",this.$items.eq(t))},e.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},e.prototype.next=function(){if(!this.sliding)return this.slide("next")},e.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},e.prototype.slide=function(i,n){var o=this.$element.find(".item.active"),s=n||this.getItemForDirection(i,o),r=this.interval,a="next"==i?"left":"right",l="next"==i?"first":"last",c=this;if(!s.length){if(!this.options.wrap)return;s=this.$element.find(".item")[l]()}if(s.hasClass("active"))return this.sliding=!1;var h=s[0],u=t.Event("slide.bs.carousel",{relatedTarget:h,direction:a});if(this.$element.trigger(u),!u.isDefaultPrevented()){if(this.sliding=!0,r&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var d=t(this.$indicators.children()[this.getItemIndex(s)]);d&&d.addClass("active")}var p=t.Event("slid.bs.carousel",{relatedTarget:h,direction:a});return t.support.transition&&this.$element.hasClass("slide")?(s.addClass(i),s[0].offsetWidth,o.addClass(a),s.addClass(a),o.one("bsTransitionEnd",(function(){s.removeClass([i,a].join(" ")).addClass("active"),o.removeClass(["active",a].join(" ")),c.sliding=!1,setTimeout((function(){c.$element.trigger(p)}),0)})).emulateTransitionEnd(e.TRANSITION_DURATION)):(o.removeClass("active"),s.addClass("active"),this.sliding=!1,this.$element.trigger(p)),r&&this.cycle(),this}};var n=t.fn.carousel;t.fn.carousel=i,t.fn.carousel.Constructor=e,t.fn.carousel.noConflict=function(){return t.fn.carousel=n,this};var o=function(e){var n,o=t(this),s=t(o.attr("data-target")||(n=o.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,""));if(s.hasClass("carousel")){var r=t.extend({},s.data(),o.data()),a=o.attr("data-slide-to");a&&(r.interval=!1),i.call(s,r),a&&s.data("bs.carousel").to(a),e.preventDefault()}};t(document).on("click.bs.carousel.data-api","[data-slide]",o).on("click.bs.carousel.data-api","[data-slide-to]",o),t(window).on("load",(function(){t('[data-ride="carousel"]').each((function(){var e=t(this);i.call(e,e.data())}))}))}(jQuery),function(t){"use strict";var e='[data-toggle="dropdown"]',i=function(e){t(e).on("click.bs.dropdown",this.toggle)};function n(i){i&&3===i.which||(t(".dropdown-backdrop").remove(),t(e).each((function(){var e=t(this),n=o(e),s={relatedTarget:this};n.hasClass("open")&&(n.trigger(i=t.Event("hide.bs.dropdown",s)),i.isDefaultPrevented()||(e.attr("aria-expanded","false"),n.removeClass("open").trigger("hidden.bs.dropdown",s)))})))}function o(e){var i=e.attr("data-target");i||(i=(i=e.attr("href"))&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,""));var n=i&&t(i);return n&&n.length?n:e.parent()}i.VERSION="3.3.0",i.prototype.toggle=function(e){var i=t(this);if(!i.is(".disabled, :disabled")){var s=o(i),r=s.hasClass("open");if(n(),!r){"ontouchstart"in document.documentElement&&!s.closest(".navbar-nav").length&&t('<div class="dropdown-backdrop"/>').insertAfter(t(this)).on("click",n);var a={relatedTarget:this};if(s.trigger(e=t.Event("show.bs.dropdown",a)),e.isDefaultPrevented())return;i.trigger("focus").attr("aria-expanded","true"),s.toggleClass("open").trigger("shown.bs.dropdown",a)}return!1}},i.prototype.keydown=function(i){if(/(38|40|27|32)/.test(i.which)){var n=t(this);if(i.preventDefault(),i.stopPropagation(),!n.is(".disabled, :disabled")){var s=o(n),r=s.hasClass("open");if(!r&&27!=i.which||r&&27==i.which)return 27==i.which&&s.find(e).trigger("focus"),n.trigger("click");var a=" li:not(.divider):visible a",l=s.find('[role="menu"]'+a+', [role="listbox"]'+a);if(l.length){var c=l.index(i.target);38==i.which&&c>0&&c--,40==i.which&&c<l.length-1&&c++,~c||(c=0),l.eq(c).trigger("focus")}}}};var s=t.fn.dropdown;t.fn.dropdown=function(e){return this.each((function(){var n=t(this),o=n.data("bs.dropdown");o||n.data("bs.dropdown",o=new i(this)),"string"==typeof e&&o[e].call(n)}))},t.fn.dropdown.Constructor=i,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=s,this},t(document).on("click.bs.dropdown.data-api",n).on("click.bs.dropdown.data-api",".dropdown form",(function(t){t.stopPropagation()})).on("click.bs.dropdown.data-api",e,i.prototype.toggle).on("keydown.bs.dropdown.data-api",e,i.prototype.keydown).on("keydown.bs.dropdown.data-api",'[role="menu"]',i.prototype.keydown).on("keydown.bs.dropdown.data-api",'[role="listbox"]',i.prototype.keydown)}(jQuery),function(t){"use strict";var e=function(e,i){this.options=i,this.$body=t(document.body),this.$element=t(e),this.$backdrop=this.isShown=null,this.scrollbarWidth=0,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,t.proxy((function(){this.$element.trigger("loaded.bs.modal")}),this))};function i(i,n){return this.each((function(){var o=t(this),s=o.data("bs.modal"),r=t.extend({},e.DEFAULTS,o.data(),"object"==_typeof(i)&&i);s||o.data("bs.modal",s=new e(this,r)),"string"==typeof i?s[i](n):r.show&&s.show(n)}))}e.VERSION="3.3.0",e.TRANSITION_DURATION=300,e.BACKDROP_TRANSITION_DURATION=150,e.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},e.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},e.prototype.show=function(i){var n=this,o=t.Event("show.bs.modal",{relatedTarget:i});this.$element.trigger(o),this.isShown||o.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.$body.addClass("modal-open"),this.setScrollbar(),this.escape(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',t.proxy(this.hide,this)),this.backdrop((function(){var o=t.support.transition&&n.$element.hasClass("fade");n.$element.parent().length||n.$element.appendTo(n.$body),n.$element.show().scrollTop(0),o&&n.$element[0].offsetWidth,n.$element.addClass("in").attr("aria-hidden",!1),n.enforceFocus();var s=t.Event("shown.bs.modal",{relatedTarget:i});o?n.$element.find(".modal-dialog").one("bsTransitionEnd",(function(){n.$element.trigger("focus").trigger(s)})).emulateTransitionEnd(e.TRANSITION_DURATION):n.$element.trigger("focus").trigger(s)})))},e.prototype.hide=function(i){i&&i.preventDefault(),i=t.Event("hide.bs.modal"),this.$element.trigger(i),this.isShown&&!i.isDefaultPrevented()&&(this.isShown=!1,this.escape(),t(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal"),t.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",t.proxy(this.hideModal,this)).emulateTransitionEnd(e.TRANSITION_DURATION):this.hideModal())},e.prototype.enforceFocus=function(){t(document).off("focusin.bs.modal").on("focusin.bs.modal",t.proxy((function(t){this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")}),this))},e.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",t.proxy((function(t){27==t.which&&this.hide()}),this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},e.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop((function(){t.$body.removeClass("modal-open"),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")}))},e.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},e.prototype.backdrop=function(i){var n=this,o=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var s=t.support.transition&&o;if(this.$backdrop=t('<div class="modal-backdrop '+o+'" />').prependTo(this.$element).on("click.dismiss.bs.modal",t.proxy((function(t){t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))}),this)),s&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!i)return;s?this.$backdrop.one("bsTransitionEnd",i).emulateTransitionEnd(e.BACKDROP_TRANSITION_DURATION):i()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var r=function(){n.removeBackdrop(),i&&i()};t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",r).emulateTransitionEnd(e.BACKDROP_TRANSITION_DURATION):r()}else i&&i()},e.prototype.checkScrollbar=function(){this.scrollbarWidth=this.measureScrollbar()},e.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.scrollbarWidth&&this.$body.css("padding-right",t+this.scrollbarWidth)},e.prototype.resetScrollbar=function(){this.$body.css("padding-right","")},e.prototype.measureScrollbar=function(){if(document.body.clientWidth>=window.innerWidth)return 0;var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var n=t.fn.modal;t.fn.modal=i,t.fn.modal.Constructor=e,t.fn.modal.noConflict=function(){return t.fn.modal=n,this},t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',(function(e){var n=t(this),o=n.attr("href"),s=t(n.attr("data-target")||o&&o.replace(/.*(?=#[^\s]+$)/,"")),r=s.data("bs.modal")?"toggle":t.extend({remote:!/#/.test(o)&&o},s.data(),n.data());n.is("a")&&e.preventDefault(),s.one("show.bs.modal",(function(t){t.isDefaultPrevented()||s.one("hidden.bs.modal",(function(){n.is(":visible")&&n.trigger("focus")}))})),i.call(s,r,this)}))}(jQuery),function(t){"use strict";var e=function(t,e){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("tooltip",t,e)};e.VERSION="3.3.0",e.TRANSITION_DURATION=150,e.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},e.prototype.init=function(e,i,n){this.enabled=!0,this.type=e,this.$element=t(i),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&t(this.options.viewport.selector||this.options.viewport);for(var o=this.options.trigger.split(" "),s=o.length;s--;){var r=o[s];if("click"==r)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=r){var a="hover"==r?"mouseenter":"focusin",l="hover"==r?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},e.prototype.getDefaults=function(){return e.DEFAULTS},e.prototype.getOptions=function(e){return(e=t.extend({},this.getDefaults(),this.$element.data(),e)).delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},e.prototype.getDelegateOptions=function(){var e={},i=this.getDefaults();return this._options&&t.each(this._options,(function(t,n){i[t]!=n&&(e[t]=n)})),e},e.prototype.enter=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(i&&i.$tip&&i.$tip.is(":visible"))i.hoverState="in";else{if(i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),clearTimeout(i.timeout),i.hoverState="in",!i.options.delay||!i.options.delay.show)return i.show();i.timeout=setTimeout((function(){"in"==i.hoverState&&i.show()}),i.options.delay.show)}},e.prototype.leave=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),clearTimeout(i.timeout),i.hoverState="out",!i.options.delay||!i.options.delay.hide)return i.hide();i.timeout=setTimeout((function(){"out"==i.hoverState&&i.hide()}),i.options.delay.hide)},e.prototype.show=function(){var i=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(i);var n=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(i.isDefaultPrevented()||!n)return;var o=this,s=this.tip(),r=this.getUID(this.type);this.setContent(),s.attr("id",r),this.$element.attr("aria-describedby",r),this.options.animation&&s.addClass("fade");var a="function"==typeof this.options.placement?this.options.placement.call(this,s[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,c=l.test(a);c&&(a=a.replace(l,"")||"top"),s.detach().css({top:0,left:0,display:"block"}).addClass(a).data("bs."+this.type,this),this.options.container?s.appendTo(this.options.container):s.insertAfter(this.$element);var h=this.getPosition(),u=s[0].offsetWidth,d=s[0].offsetHeight;if(c){var p=a,f=this.options.container?t(this.options.container):this.$element.parent(),g=this.getPosition(f);a="bottom"==a&&h.bottom+d>g.bottom?"top":"top"==a&&h.top-d<g.top?"bottom":"right"==a&&h.right+u>g.width?"left":"left"==a&&h.left-u<g.left?"right":a,s.removeClass(p).addClass(a)}var m=this.getCalculatedOffset(a,h,u,d);this.applyPlacement(m,a);var v=function(){var t=o.hoverState;o.$element.trigger("shown.bs."+o.type),o.hoverState=null,"out"==t&&o.leave(o)};t.support.transition&&this.$tip.hasClass("fade")?s.one("bsTransitionEnd",v).emulateTransitionEnd(e.TRANSITION_DURATION):v()}},e.prototype.applyPlacement=function(e,i){var n=this.tip(),o=n[0].offsetWidth,s=n[0].offsetHeight,r=parseInt(n.css("margin-top"),10),a=parseInt(n.css("margin-left"),10);isNaN(r)&&(r=0),isNaN(a)&&(a=0),e.top=e.top+r,e.left=e.left+a,t.offset.setOffset(n[0],t.extend({using:function(t){n.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),n.addClass("in");var l=n[0].offsetWidth,c=n[0].offsetHeight;"top"==i&&c!=s&&(e.top=e.top+s-c);var h=this.getViewportAdjustedDelta(i,e,l,c);h.left?e.left+=h.left:e.top+=h.top;var u=/top|bottom/.test(i),d=u?2*h.left-o+l:2*h.top-s+c,p=u?"offsetWidth":"offsetHeight";n.offset(e),this.replaceArrow(d,n[0][p],u)},e.prototype.replaceArrow=function(t,e,i){this.arrow().css(i?"left":"top",50*(1-t/e)+"%").css(i?"top":"left","")},e.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},e.prototype.hide=function(i){var n=this,o=this.tip(),s=t.Event("hide.bs."+this.type);function r(){"in"!=n.hoverState&&o.detach(),n.$element.removeAttr("aria-describedby").trigger("hidden.bs."+n.type),i&&i()}if(this.$element.trigger(s),!s.isDefaultPrevented())return o.removeClass("in"),t.support.transition&&this.$tip.hasClass("fade")?o.one("bsTransitionEnd",r).emulateTransitionEnd(e.TRANSITION_DURATION):r(),this.hoverState=null,this},e.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},e.prototype.hasContent=function(){return this.getTitle()},e.prototype.getPosition=function(e){var i=(e=e||this.$element)[0],n="BODY"==i.tagName,o=i.getBoundingClientRect();null==o.width&&(o=t.extend({},o,{width:o.right-o.left,height:o.bottom-o.top}));var s=n?{top:0,left:0}:e.offset(),r={scroll:n?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},a=n?{width:t(window).width(),height:t(window).height()}:null;return t.extend({},o,r,a,s)},e.prototype.getCalculatedOffset=function(t,e,i,n){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-i/2}:"top"==t?{top:e.top-n,left:e.left+e.width/2-i/2}:"left"==t?{top:e.top+e.height/2-n/2,left:e.left-i}:{top:e.top+e.height/2-n/2,left:e.left+e.width}},e.prototype.getViewportAdjustedDelta=function(t,e,i,n){var o={top:0,left:0};if(!this.$viewport)return o;var s=this.options.viewport&&this.options.viewport.padding||0,r=this.getPosition(this.$viewport);if(/right|left/.test(t)){var a=e.top-s-r.scroll,l=e.top+s-r.scroll+n;a<r.top?o.top=r.top-a:l>r.top+r.height&&(o.top=r.top+r.height-l)}else{var c=e.left-s,h=e.left+s+i;c<r.left?o.left=r.left-c:h>r.width&&(o.left=r.left+r.width-h)}return o},e.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},e.prototype.getUID=function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},e.prototype.tip=function(){return this.$tip=this.$tip||t(this.options.template)},e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},e.prototype.enable=function(){this.enabled=!0},e.prototype.disable=function(){this.enabled=!1},e.prototype.toggleEnabled=function(){this.enabled=!this.enabled},e.prototype.toggle=function(e){var i=this;e&&((i=t(e.currentTarget).data("bs."+this.type))||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i))),i.tip().hasClass("in")?i.leave(i):i.enter(i)},e.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide((function(){t.$element.off("."+t.type).removeData("bs."+t.type)}))};var i=t.fn.tooltip;t.fn.tooltip=function(i){return this.each((function(){var n=t(this),o=n.data("bs.tooltip"),s="object"==_typeof(i)&&i,r=s&&s.selector;(o||"destroy"!=i)&&(r?(o||n.data("bs.tooltip",o={}),o[r]||(o[r]=new e(this,s))):o||n.data("bs.tooltip",o=new e(this,s)),"string"==typeof i&&o[i]())}))},t.fn.tooltip.Constructor=e,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=i,this}}(jQuery),function(t){"use strict";var e=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");e.VERSION="3.3.0",e.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),(e.prototype=t.extend({},t.fn.tooltip.Constructor.prototype)).constructor=e,e.prototype.getDefaults=function(){return e.DEFAULTS},e.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),i=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof i?"html":"append":"text"](i),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},e.prototype.hasContent=function(){return this.getTitle()||this.getContent()},e.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},e.prototype.tip=function(){return this.$tip||(this.$tip=t(this.options.template)),this.$tip};var i=t.fn.popover;t.fn.popover=function(i){return this.each((function(){var n=t(this),o=n.data("bs.popover"),s="object"==_typeof(i)&&i,r=s&&s.selector;(o||"destroy"!=i)&&(r?(o||n.data("bs.popover",o={}),o[r]||(o[r]=new e(this,s))):o||n.data("bs.popover",o=new e(this,s)),"string"==typeof i&&o[i]())}))},t.fn.popover.Constructor=e,t.fn.popover.noConflict=function(){return t.fn.popover=i,this}}(jQuery),function(t){"use strict";var e=function(e){this.element=t(e)};function i(i){return this.each((function(){var n=t(this),o=n.data("bs.tab");o||n.data("bs.tab",o=new e(this)),"string"==typeof i&&o[i]()}))}e.VERSION="3.3.0",e.TRANSITION_DURATION=150,e.prototype.show=function(){var e=this.element,i=e.closest("ul:not(.dropdown-menu)"),n=e.data("target");if(n||(n=(n=e.attr("href"))&&n.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var o=i.find(".active:last a"),s=t.Event("hide.bs.tab",{relatedTarget:e[0]}),r=t.Event("show.bs.tab",{relatedTarget:o[0]});if(o.trigger(s),e.trigger(r),!r.isDefaultPrevented()&&!s.isDefaultPrevented()){var a=t(n);this.activate(e.closest("li"),i),this.activate(a,a.parent(),(function(){o.trigger({type:"hidden.bs.tab",relatedTarget:e[0]}),e.trigger({type:"shown.bs.tab",relatedTarget:o[0]})}))}}},e.prototype.activate=function(i,n,o){var s=n.find("> .active"),r=o&&t.support.transition&&(s.length&&s.hasClass("fade")||!!n.find("> .fade").length);function a(){s.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),i.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),r?(i[0].offsetWidth,i.addClass("in")):i.removeClass("fade"),i.parent(".dropdown-menu")&&i.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),o&&o()}s.length&&r?s.one("bsTransitionEnd",a).emulateTransitionEnd(e.TRANSITION_DURATION):a(),s.removeClass("in")};var n=t.fn.tab;t.fn.tab=i,t.fn.tab.Constructor=e,t.fn.tab.noConflict=function(){return t.fn.tab=n,this};var o=function(e){e.preventDefault(),i.call(t(this),"show")};t(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',o).on("click.bs.tab.data-api",'[data-toggle="pill"]',o)}(jQuery),function(t){"use strict";var e=function e(i,n){this.options=t.extend({},e.DEFAULTS,n),this.$target=t(this.options.target).on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(i),this.affixed=this.unpin=this.pinnedOffset=null,this.checkPosition()};function i(i){return this.each((function(){var n=t(this),o=n.data("bs.affix"),s="object"==_typeof(i)&&i;o||n.data("bs.affix",o=new e(this,s)),"string"==typeof i&&o[i]()}))}e.VERSION="3.3.0",e.RESET="affix affix-top affix-bottom",e.DEFAULTS={offset:0,target:window},e.prototype.getState=function(t,e,i,n){var o=this.$target.scrollTop(),s=this.$element.offset(),r=this.$target.height();if(null!=i&&"top"==this.affixed)return o<i&&"top";if("bottom"==this.affixed)return null!=i?!(o+this.unpin<=s.top)&&"bottom":!(o+r<=t-n)&&"bottom";var a=null==this.affixed,l=a?o:s.top;return null!=i&&l<=i?"top":null!=n&&l+(a?r:e)>=t-n&&"bottom"},e.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(e.RESET).addClass("affix");var t=this.$target.scrollTop(),i=this.$element.offset();return this.pinnedOffset=i.top-t},e.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},e.prototype.checkPosition=function(){if(this.$element.is(":visible")){var i=this.$element.height(),n=this.options.offset,o=n.top,s=n.bottom,r=t("body").height();"object"!=_typeof(n)&&(s=o=n),"function"==typeof o&&(o=n.top(this.$element)),"function"==typeof s&&(s=n.bottom(this.$element));var a=this.getState(r,i,o,s);if(this.affixed!=a){null!=this.unpin&&this.$element.css("top","");var l="affix"+(a?"-"+a:""),c=t.Event(l+".bs.affix");if(this.$element.trigger(c),c.isDefaultPrevented())return;this.affixed=a,this.unpin="bottom"==a?this.getPinnedOffset():null,this.$element.removeClass(e.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==a&&this.$element.offset({top:r-i-s})}};var n=t.fn.affix;t.fn.affix=i,t.fn.affix.Constructor=e,t.fn.affix.noConflict=function(){return t.fn.affix=n,this},t(window).on("load",(function(){t('[data-spy="affix"]').each((function(){var e=t(this),n=e.data();n.offset=n.offset||{},null!=n.offsetBottom&&(n.offset.bottom=n.offsetBottom),null!=n.offsetTop&&(n.offset.top=n.offsetTop),i.call(e,n)}))}))}(jQuery),function(t){"use strict";var e=function e(i,n){this.$element=t(i),this.options=t.extend({},e.DEFAULTS,n),this.$trigger=t(this.options.trigger).filter('[href="#'+i.id+'"], [data-target="#'+i.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};function i(e){var i,n=e.attr("data-target")||(i=e.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"");return t(n)}function n(i){return this.each((function(){var n=t(this),o=n.data("bs.collapse"),s=t.extend({},e.DEFAULTS,n.data(),"object"==_typeof(i)&&i);!o&&s.toggle&&"show"==i&&(s.toggle=!1),o||n.data("bs.collapse",o=new e(this,s)),"string"==typeof i&&o[i]()}))}e.VERSION="3.3.0",e.TRANSITION_DURATION=350,e.DEFAULTS={toggle:!0,trigger:'[data-toggle="collapse"]'},e.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},e.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var i,o=this.$parent&&this.$parent.find("> .panel").children(".in, .collapsing");if(!(o&&o.length&&(i=o.data("bs.collapse"))&&i.transitioning)){var s=t.Event("show.bs.collapse");if(this.$element.trigger(s),!s.isDefaultPrevented()){o&&o.length&&(n.call(o,"hide"),i||o.data("bs.collapse",null));var r=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[r](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var a=function(){this.$element.removeClass("collapsing").addClass("collapse in")[r](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return a.call(this);var l=t.camelCase(["scroll",r].join("-"));this.$element.one("bsTransitionEnd",t.proxy(a,this)).emulateTransitionEnd(e.TRANSITION_DURATION)[r](this.$element[0][l])}}}},e.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var i=t.Event("hide.bs.collapse");if(this.$element.trigger(i),!i.isDefaultPrevented()){var n=this.dimension();this.$element[n](this.$element[n]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var o=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!t.support.transition)return o.call(this);this.$element[n](0).one("bsTransitionEnd",t.proxy(o,this)).emulateTransitionEnd(e.TRANSITION_DURATION)}}},e.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},e.prototype.getParent=function(){return t(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy((function(e,n){var o=t(n);this.addAriaAndCollapsedClass(i(o),o)}),this)).end()},e.prototype.addAriaAndCollapsedClass=function(t,e){var i=t.hasClass("in");t.attr("aria-expanded",i),e.toggleClass("collapsed",!i).attr("aria-expanded",i)};var o=t.fn.collapse;t.fn.collapse=n,t.fn.collapse.Constructor=e,t.fn.collapse.noConflict=function(){return t.fn.collapse=o,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',(function(e){var o=t(this);o.attr("data-target")||e.preventDefault();var s=i(o),r=s.data("bs.collapse")?"toggle":t.extend({},o.data(),{trigger:this});n.call(s,r)}))}(jQuery),function(t){"use strict";function e(i,n){var o=t.proxy(this.process,this);this.$body=t("body"),this.$scrollElement=t(i).is("body")?t(window):t(i),this.options=t.extend({},e.DEFAULTS,n),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",o),this.refresh(),this.process()}function i(i){return this.each((function(){var n=t(this),o=n.data("bs.scrollspy"),s="object"==_typeof(i)&&i;o||n.data("bs.scrollspy",o=new e(this,s)),"string"==typeof i&&o[i]()}))}e.VERSION="3.3.0",e.DEFAULTS={offset:10},e.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},e.prototype.refresh=function(){var e="offset",i=0;t.isWindow(this.$scrollElement[0])||(e="position",i=this.$scrollElement.scrollTop()),this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight();var n=this;this.$body.find(this.selector).map((function(){var n=t(this),o=n.data("target")||n.attr("href"),s=/^#./.test(o)&&t(o);return s&&s.length&&s.is(":visible")&&[[s[e]().top+i,o]]||null})).sort((function(t,e){return t[0]-e[0]})).each((function(){n.offsets.push(this[0]),n.targets.push(this[1])}))},e.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,i=this.getScrollHeight(),n=this.options.offset+i-this.$scrollElement.height(),o=this.offsets,s=this.targets,r=this.activeTarget;if(this.scrollHeight!=i&&this.refresh(),e>=n)return r!=(t=s[s.length-1])&&this.activate(t);if(r&&e<o[0])return this.activeTarget=null,this.clear();for(t=o.length;t--;)r!=s[t]&&e>=o[t]&&(!o[t+1]||e<=o[t+1])&&this.activate(s[t])},e.prototype.activate=function(e){this.activeTarget=e,this.clear();var i=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',n=t(i).parents("li").addClass("active");n.parent(".dropdown-menu").length&&(n=n.closest("li.dropdown").addClass("active")),n.trigger("activate.bs.scrollspy")},e.prototype.clear=function(){t(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var n=t.fn.scrollspy;t.fn.scrollspy=i,t.fn.scrollspy.Constructor=e,t.fn.scrollspy.noConflict=function(){return t.fn.scrollspy=n,this},t(window).on("load.bs.scrollspy.data-api",(function(){t('[data-spy="scroll"]').each((function(){var e=t(this);i.call(e,e.data())}))}))}(jQuery),function(t){"use strict";t.fn.emulateTransitionEnd=function(e){var i=!1,n=this;t(this).one("bsTransitionEnd",(function(){i=!0}));return setTimeout((function(){i||t(n).trigger(t.support.transition.end)}),e),this},t((function(){t.support.transition=function(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in e)if(void 0!==t.style[i])return{end:e[i]};return!1}(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}})}))}(jQuery),function(t){t(["jquery"],(function(t){return function(){var e,i,n,o=0,s="error",r="info",a="success",l="warning",c={clear:function(i,n){var o=f();e||h(o);u(i,o,n)||function(i){for(var n=e.children(),o=n.length-1;o>=0;o--)u(t(n[o]),i)}(o)},remove:function(i){var n=f();e||h(n);if(i&&0===t(":focus",i).length)return void g(i);e.children().length&&e.remove()},error:function(t,e,i){return p({type:s,iconClass:f().iconClasses.error,message:t,optionsOverride:i,title:e})},getContainer:h,info:function(t,e,i){return p({type:r,iconClass:f().iconClasses.info,message:t,optionsOverride:i,title:e})},options:{},subscribe:function(t){i=t},success:function(t,e,i){return p({type:a,iconClass:f().iconClasses.success,message:t,optionsOverride:i,title:e})},version:"2.1.3",warning:function(t,e,i){return p({type:l,iconClass:f().iconClasses.warning,message:t,optionsOverride:i,title:e})}};return c;function h(i,n){return i||(i=f()),(e=t("#"+i.containerId)).length||n&&(e=function(i){return(e=t("<div/>").attr("id",i.containerId).addClass(i.positionClass)).appendTo(t(i.target)),e}(i)),e}function u(e,i,n){var o=!(!n||!n.force)&&n.force;return!(!e||!o&&0!==t(":focus",e).length)&&(e[i.hideMethod]({duration:i.hideDuration,easing:i.hideEasing,complete:function(){g(e)}}),!0)}function d(t){i&&i(t)}function p(i){var s=f(),r=i.iconClass||s.iconClass;if(void 0!==i.optionsOverride&&(s=t.extend(s,i.optionsOverride),r=i.optionsOverride.iconClass||r),!function(t,e){if(t.preventDuplicates){if(e.message===n)return!0;n=e.message}return!1}(s,i)){o++,e=h(s,!0);var a=null,l=t("<div/>"),c=t("<div/>"),u=t("<div/>"),p=t("<div/>"),m=t(s.closeHtml),v={intervalId:null,hideEta:null,maxHideTime:null},y={toastId:o,state:"visible",startTime:new Date,options:s,map:i};return i.iconClass&&l.addClass(s.toastClass).addClass(r),function(){if(i.title){var t=i.title;s.escapeHtml&&(t=b(i.title)),c.append(t).addClass(s.titleClass),l.append(c)}}(),function(){if(i.message){var t=i.message;s.escapeHtml&&(t=b(i.message)),u.append(t).addClass(s.messageClass),l.append(u)}}(),s.closeButton&&(m.addClass(s.closeClass).attr("role","button"),l.prepend(m)),s.progressBar&&(p.addClass(s.progressClass),l.prepend(p)),s.rtl&&l.addClass("rtl"),s.newestOnTop?e.prepend(l):e.append(l),function(){var t="";switch(i.iconClass){case"toast-success":case"toast-info":t="polite";break;default:t="assertive"}l.attr("aria-live",t)}(),l.hide(),l[s.showMethod]({duration:s.showDuration,easing:s.showEasing,complete:s.onShown}),s.timeOut>0&&(a=setTimeout(w,s.timeOut),v.maxHideTime=parseFloat(s.timeOut),v.hideEta=(new Date).getTime()+v.maxHideTime,s.progressBar&&(v.intervalId=setInterval(_,10))),function(){s.closeOnHover&&l.hover(C,x);!s.onclick&&s.tapToDismiss&&l.click(w);s.closeButton&&m&&m.click((function(t){t.stopPropagation?t.stopPropagation():void 0!==t.cancelBubble&&!0!==t.cancelBubble&&(t.cancelBubble=!0),s.onCloseClick&&s.onCloseClick(t),w(!0)}));s.onclick&&l.click((function(t){s.onclick(t),w()}))}(),d(y),s.debug&&console&&console.log(y),l}function b(t){return null==t&&(t=""),t.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function w(e){var i=e&&!1!==s.closeMethod?s.closeMethod:s.hideMethod,n=e&&!1!==s.closeDuration?s.closeDuration:s.hideDuration,o=e&&!1!==s.closeEasing?s.closeEasing:s.hideEasing;if(!t(":focus",l).length||e)return clearTimeout(v.intervalId),l[i]({duration:n,easing:o,complete:function(){g(l),clearTimeout(a),s.onHidden&&"hidden"!==y.state&&s.onHidden(),y.state="hidden",y.endTime=new Date,d(y)}})}function x(){(s.timeOut>0||s.extendedTimeOut>0)&&(a=setTimeout(w,s.extendedTimeOut),v.maxHideTime=parseFloat(s.extendedTimeOut),v.hideEta=(new Date).getTime()+v.maxHideTime)}function C(){clearTimeout(a),v.hideEta=0,l.stop(!0,!0)[s.showMethod]({duration:s.showDuration,easing:s.showEasing})}function _(){var t=(v.hideEta-(new Date).getTime())/v.maxHideTime*100;p.width(t+"%")}}function f(){return t.extend({},{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,closeOnHover:!0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'<button type="button">&times;</button>',closeClass:"toast-close-button",newestOnTop:!0,preventDuplicates:!1,progressBar:!1,progressClass:"toast-progress",rtl:!1},c.options)}function g(t){e||(e=h()),t.is(":visible")||(t.remove(),t=null,0===e.children().length&&(e.remove(),n=void 0))}}()}))}("function"==typeof define&&define.amd?define:function(t,e){"undefined"!=typeof module&&module.exports?module.exports=e(require("jquery")):window.toastr=e(window.jQuery)}),function(){function t(t){return t.replace(m,"").replace(v,",").replace(y,"").replace(b,"").replace(w,"").split(x)}function e(t){return"'"+t.replace(/('|\\)/g,"\\$1").replace(/\r/g,"\\r").replace(/\n/g,"\\n")+"'"}function i(i,n){function o(t){return f+=t.split(/\n/).length-1,h&&(t=t.replace(/\s+/g," ").replace(/<!--[\w\W]*?-->/g,"")),t&&(t=y[1]+e(t)+y[2]+"\n"),t}function s(e){var i=f;if(c?e=c(e,n):r&&(e=e.replace(/\n/g,(function(){return"$line="+ ++f+";"}))),0===e.indexOf("=")){var o=p&&!/^=[=#]/.test(e);if(e=e.replace(/^=[=#]?|[\s;]*$/g,""),o){var s=e.replace(/\s*\([^\)]+\)/,"");u[s]||/^(include|print)$/.test(s)||(e="$escape("+e+")")}else e="$string("+e+")";e=y[1]+e+y[2]}return r&&(e="$line="+i+";"+e),g(t(e),(function(t){var e;t&&!m[t]&&(e="print"===t?w:"include"===t?x:u[t]?"$utils."+t:d[t]?"$helpers."+t:"$data."+t,C+=t+"="+e+",",m[t]=!0)})),e+"\n"}var r=n.debug,a=n.openTag,l=n.closeTag,c=n.parser,h=n.compress,p=n.escape,f=1,m={$data:1,$filename:1,$utils:1,$helpers:1,$out:1,$line:1},v="".trim,y=v?["$out='';","$out+=",";","$out"]:["$out=[];","$out.push(",");","$out.join('')"],b=v?"$out+=text;return $out;":"$out.push(text);",w="function(){var text=''.concat.apply('',arguments);"+b+"}",x="function(filename,data){data=data||$data;var text=$utils.$include(filename,data,$filename);"+b+"}",C="'use strict';var $utils=this,$helpers=$utils.$helpers,"+(r?"$line=0,":""),_=y[0],T="return new String("+y[3]+");";g(i.split(a),(function(t){var e=(t=t.split(l))[0],i=t[1];1===t.length?_+=o(e):(_+=s(e),i&&(_+=o(i)))}));var E=C+_+T;r&&(E="try{"+E+"}catch(e){throw {filename:$filename,name:'Render Error',message:e.message,line:$line,source:"+e(i)+".split(/\\n/)[$line-1].replace(/^\\s+/,'')};}");try{var S=new Function("$data","$filename",E);return S.prototype=u,S}catch(t){throw t.temp="function anonymous($data,$filename) {"+E+"}",t}}var n=function(t,e){return"string"==typeof e?f(e,{filename:t}):r(t,e)};n.version="3.0.0",n.config=function(t,e){o[t]=e};var o=n.defaults={openTag:"<%",closeTag:"%>",escape:!0,cache:!0,compress:!1,parser:null},s=n.cache={};n.render=function(t,e){return f(t,e)};var r=n.renderFile=function(t,e){var i=n.get(t)||p({filename:t,name:"Render Error",message:"Template not found"});return e?i(e):i};n.get=function(t){var e;if(s[t])e=s[t];else if("object"==("undefined"==typeof document?"undefined":_typeof(document))){var i=document.getElementById(t);if(i){var n=(i.value||i.innerHTML).replace(/^\s*|\s*$/g,"");e=f(n,{filename:t})}}return e};var a=function t(e,i){return"string"!=typeof e&&("number"===(i=_typeof(e))?e+="":e="function"===i?t(e.call(e)):""),e},l={"<":"&#60;",">":"&#62;",'"':"&#34;","'":"&#39;","&":"&#38;"},c=function(t){return l[t]},h=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},u=n.utils={$helpers:{},$include:r,$string:a,$escape:function(t){return a(t).replace(/&(?![\w#]+;)|[<>"']/g,c)},$each:function(t,e){var i,n;if(h(t))for(i=0,n=t.length;n>i;i++)e.call(t,t[i],i,t);else for(i in t)e.call(t,t[i],i)}};n.helper=function(t,e){d[t]=e};var d=n.helpers=u.$helpers;n.onerror=function(t){var e="Template Error\n\n";for(var i in t)e+="<"+i+">\n"+t[i]+"\n\n";"object"==("undefined"==typeof console?"undefined":_typeof(console))&&console.error(e)};var p=function(t){return n.onerror(t),function(){return"{Template Error}"}},f=n.compile=function(t,e){function n(i){try{return new l(i,a)+""}catch(n){return e.debug?p(n)():(e.debug=!0,f(t,e)(i))}}for(var r in e=e||{},o)void 0===e[r]&&(e[r]=o[r]);var a=e.filename;try{var l=i(t,e)}catch(t){return t.filename=a||"anonymous",t.name="Syntax Error",p(t)}return n.prototype=l.prototype,n.toString=function(){return l.toString()},a&&e.cache&&(s[a]=n),n},g=u.$each,m=/\/\*[\w\W]*?\*\/|\/\/[^\n]*\n|\/\/[^\n]*$|"(?:[^"\\]|\\[\w\W])*"|'(?:[^'\\]|\\[\w\W])*'|\s*\.\s*[$\w\.]+/g,v=/[^\w$]+/g,y=new RegExp(["\\b"+"break,case,catch,continue,debugger,default,delete,do,else,false,finally,for,function,if,in,instanceof,new,null,return,switch,this,throw,true,try,typeof,var,void,while,with,abstract,boolean,byte,char,class,const,double,enum,export,extends,final,float,goto,implements,import,int,interface,long,native,package,private,protected,public,short,static,super,synchronized,throws,transient,volatile,arguments,let,yield,undefined".replace(/,/g,"\\b|\\b")+"\\b"].join("|"),"g"),b=/^\d[^,]*|,\d[^,]*/g,w=/^,+|,+$/g,x=/^$|,+/;"function"==typeof define?define((function(){return n})):"undefined"!=typeof exports?module.exports=n:this.template=n}(),function(t){var e=0;t.fn.dialog=function(i){var n=this,o=t(n),s=t(document.body),r=o.closest(".dialog");this.options=i;var a,l=function(){r.modal("show"),(i.onShow||function(){}).call(n)},c=function(){r.modal("hide")};if(i.constructor==Object){i=t.extend({show:!0,backdrop:!0,destroy:!1},i),0==r.size()&&(a='<div class="dialog modal"><div class="modal-dialog"><div class="modal-content">',i.title&&(a+='<div class="modal-header"><button type="button" data-dismiss="dialog" class="close">&times;</button><h4 class="modal-title"></h4></div>'),a+='<div class="modal-body"></div>',i.buttons.length>0&&(a+='<div class="modal-footer"></div>'),r=t(a+="</div></div></div>"),s.append(r),r.find(".modal-body").append(o),r.modal({backdrop:i.backdrop}),t(".modal-dialog").draggable({handle:".modal-header",iframeFix:!0}),function(e){var o=(e||i||{}).buttons||{},s=r.find(".modal-footer");for(var a in s.html(""),o){var l=o[a],c="btn-default";c=l.class||l.classed||c,$button=t('<button type="button" class="btn btn-sm '+c+'">'+l.text+"</button>"),$button.data("click",l.click),l.id&&$button.attr("id",l.id),s.append($button)}s.on("click",(function(e){var i=t(e.target).data("click");"function"==typeof i&&i.call(n,e)})),s.data("buttons",o)}(),r.find(".modal-title").html(i.title),i.dialogClass&&r.find(".modal-dialog").addClass(i.dialogClass),r.on("click","[data-dismiss='dialog']",(function(){(i.onClose||c).call(n)})),r.one("show.bs.modal",(function(){e++})),r.one("hidden.bs.modal",(function(){--e>0&&(r.modal("checkScrollbar"),s.addClass("modal-open"),r.modal("setScrollbar")),1==i.destroy&&r.remove()})),i.modalClass&&r.addClass(i.modalClass)),i.show&&l()}return"destroy"==i&&(i.destroy=!0,c()),"close"==i&&c(),"show"==i&&l(),n}}(jQuery),function(t){var e={text:"确定",classed:"btn-info"},i={text:"取消",classed:"btn-default"};t.messager={},t.messager.alert=function(i,n,o){arguments.length<2&&(n=i||"",i="&nbsp;"),t("<div>"+n+"</div>").dialog({title:i,destroy:!0,dialogClass:"modal-sm",buttons:[{text:e.text,classed:e.classed||"btn-success",click:function(){"function"==typeof o&&o(),t(this).dialog("destroy")}}]})},t.messager.confirm=function(n,o,s){t("<div>"+o+"</div>").dialog({title:n,destroy:!0,backdrop:"static",dialogClass:"modal-sm modal-confirm",buttons:[{text:i.text,classed:i.classed||"btn-danger",click:function(){t(this).dialog("destroy"),"function"==typeof s&&s(!1)}},{text:e.text,classed:e.classed||"btn-success",click:function(){t(this).dialog("destroy"),"function"==typeof s&&s(!0)}}]})}}(jQuery),function(t){var e=0;t.dialog=function(i){var n=e,o={title:"Dialog",modalClass:"no-padder",dialogClass:"modal-md",destroy:!0,index:e,onShow:function(){var e=this;if(o=i.url){var o=o+(o.indexOf("?")<0?"?":"&")+"dialog_index="+n;t.get(o,(function(t){e.html(t)}))}i.html&&this.html(i.html)},buttons:[{text:"取消",click:function(){t(this).dialog("close")}},{text:"确定",class:"btn-primary",click:function(){t(this).dialog("close")}}]};i=t.extend(o,i);var s="gdoo-dialog-"+e,r=t("#"+s);return 0==r.length&&(r=t("<div/>",{id:s}),e++),r.dialog(i),n}}(jQuery),jQuery.toastr=function(t,e,i){toastr.options={closeButton:!0,debug:!1,progressBar:!1,positionClass:"toast-top-right",onclick:null,showDuration:"300",hideDuration:"1000",timeOut:"5000",extendedTimeOut:"1000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut"},toastr[t](e,i)},$((function(){var t=$("body");$('[data-toggle="addtab"]').on("click",(function(t){t.preventDefault();var e=$(this).data();null!=e.id&&addTab(e.url,e.id,e.name)}));$(".main-content"),$(".main-header");var e=$(".side-nav"),i=$(".nav-scroll"),n=$(".nav-trigger");n.on("click",(function(t){t.preventDefault(),$([e,n,i]).toggleClass("nav-is-visible")})),"on"===localStorage.getItem("side-folded")&&(t.addClass("side-folded"),$(".folded").addClass("active")),$(document).on("click","[data-toggle=side-folded]",(function(e){e.preventDefault(),$(this).toggleClass("active"),t.toggleClass("side-folded"),localStorage.setItem("side-folded",!0===t.hasClass("side-folded")?"on":"off")})),$(".has-children > a").on("click",(function(t){var e=checkMQ(),i=$(this);"mobile"!=e&&"tablet"!=e||(t.preventDefault(),i.parent("li").hasClass("selected")?i.parent("li").removeClass("selected"):(i.parent().parent().find(">.has-children.selected").removeClass("selected"),i.parent("li").addClass("selected")))})),$(".has-children").on("mouseover mouseout",(function(t){if("desktop"==checkMQ())if("mouseover"==t.type){var e=$(window).height();$(this).addClass("hover"),$(this).find("ul:visible").not(".fix").each((function(t){var i=$(this).height(),n=$(this).offset(),o=e-n.top-i-25;o<0&&($(this).css({top:o}),$(this).addClass("fix"))}))}else"mouseout"==t.type&&$(this).removeClass("hover")}))}));var select2List={};$((function(){var t=$(document);t.ajaxError((function(t,e){e.responseJSON&&toastrError(e.responseJSON.message)}));var e=t.find(".input-select2");e.length&&e.select2(),t.tooltip({container:"body",placement:"auto",selector:".hinted",delay:{show:200,hide:0}}),$(".select-all").on("click",(function(){var t=$(".select-row").closest("tr");$(this).prop("checked")?t.addClass("success"):t.removeClass("success"),$(".select-row").prop("checked",$(this).prop("checked"))})),t.on("click",'[data-toggle="closetab"]',(function(){if(window.name)var t=window.name.replace("iframe_","");else t=$(this).data("id");top.$.addtabs.close({id:"tab_"+t})})),$(".table tbody tr").on("click",(function(t){var e=$(this),i=e.find(".select-row"),n=i.prop("checked");function o(t){t?e.addClass("success"):e.removeClass("success"),i.prop("checked",t)}0!=i.length&&("INPUT"==t.target.tagName&&o(n),"DIV"==t.target.tagName&&o(!n),"TD"==t.target.tagName&&o(!n))})),t.on("change",'[data-toggle="redirect"]',(function(){var t=$(this).data("url"),e=$(this).attr("id"),i=$(this).find("option:selected").val();location.href=t.replace(new RegExp("("+e+"=)[^&]*","g"),"$1"+i)})),t.on("click.dialog.search",'[data-toggle="dialog-clear"]',(function(){var t=$(this).data();$("#"+t.id).val(""),$("#"+t.id+"_text").val(""),gdoo.event.get(t.id).trigger("clear",t)})),t.on("click.dialog.view",'[data-toggle="dialog-view"]',(function(){var t=$(this).data(),e={};$.each(t,(function(t,i){if("url"==t||"title"==t||"toggle"==t)return!0;e[t]=i}));var i=gdoo.formKey(t);gdoo.event.get(i.key).trigger("open",t,e);var n=t.url,o=t.title;n=app.url(n,e);$.dialog({title:o,url:n,dialogClass:"modal-lg",buttons:[{text:"确定",class:"btn-default",click:function(){var t=gdoo.dialogs[i.id]||{};"function"==typeof t.writeSelected?!0===t.writeSelected()&&$(this).dialog("close"):$(this).dialog("close")}}]})}));var i=t.find(".gdoo-dialog-input");i.length&&i.gdooDialogInput(),t.on("click.dialog.image",'[data-toggle="dialog-image"]',(function(){var t=$(this).data();$.dialog({title:t.title,html:'<img style="text-align:center;max-width:100%;" src="'+t.url+'" />',buttons:[{text:"确定",class:"btn-default",click:function(){$(this).dialog("close")}}]})})),t.on("click.dialog.form",'[data-toggle="dialog-form"]',(function(){var t=$(this).data();t.id=t.id||"myform",t.size=t.size||"md",$.dialog({title:t.title,url:t.url,dialogClass:"modal-"+t.size,buttons:[{text:"取消",class:"btn-default",click:function(){"function"==typeof error?error.call(this,res):$(this).dialog("close")}},{text:"保存",class:"btn-info",click:function(){var e=this,i=$("#"+t.id).attr("action"),n=$("#"+t.id).serialize();$.post(i,n,(function(t){"function"==typeof success?success.call(e,t):t.status?"reload"==t.data?window.location.reload():(toastrSuccess(t.data),$(e).dialog("close")):toastrError(t.data)}),"json")}}]})})),t.on("click.date",'[data-toggle="date"]',(function(){var t=$(this).data(),e={};e.dateFmt=t.format||"yyyy-MM-dd";var i=window[this.id+".onpicked"];"function"==typeof i&&(e.onpicked=i),t.dchanging&&(e.dchanging=t.dchanging),datePicker(e)})),t.on("click.datetime",'[data-toggle="datetime"]',(function(){var t=$(this).data(),e={};e.dateFmt=t.format||"yyyy-MM-dd",t.dchanging&&(e.dchanging=t.dchanging),datePicker(e)})),t.on("click.frame.close",'[data-toggle="layer-frame-close"]',(function(){layerFrameClose()})),t.on("click.frame.url",'[data-toggle="layer-frame-url"]',(function(){var t=$(this).data("url"),e=$(this).data("title")||!1,i=$(this).data("skin")||"frame",n=$(this).data("close")||!1;layer.open({skin:"layui-layer-"+i,scrollbar:!1,closeBtn:n,title:e,type:2,move:!1,area:["100%","100%"],content:t})})),t.on("click.tab.frame",'[data-toggle="tab-frame-url"]',(function(){var t=$(this).data("url"),e=$(this).data("id"),i=$(this).data("name");top.addTab(t,e,i)})),t.on("click",'[data-toggle="media-delete"]',(function(){var t=$(this).parent();$(this).closest(".media-controller").find(".media-item").length>1?t.remove():(t.find("img").attr("src",app.url("assets/images/nopic.jpg")),t.find("input").val(""))})),$("a.image-show").hover((function(t){var e=$(this).data(),i=$('<p id="image"><img src="'+e.url+'" alt="" /></p>');$("body").append(i),$(this).find("img").stop().fadeTo("slow",.5);var n=$(window),o=$(document).find("#image"),s=o.height(),r=o.width(),a=(n.scrollLeft(),n.width(),n.scrollTop()+(n.height()-s)/2+"px"),l=$(this).offset();o.css({left:l.left+100,top:a}),o.fadeIn("fast")}),(function(){$(this).find("img").stop().fadeTo("slow",1),$("#image").remove()})),$("#table-sortable tbody").sortable({delay:50,cursor:"move",axis:"y",items:"tr",handle:"td.move",helper:function(t,e){return e.children().each((function(){$(this).width($(this).width())})),e},stop:function(t,e){},start:function(t,e){e.placeholder.outerHeight(e.item.outerHeight())},update:function(){var t=$(this).parent().attr("url"),e=$(this).sortable("toArray");$.post(t,{sort:e},(function(t){toastrSuccess(t.data)}))}})}));var app={confirm:function(t,e,i){i=i||"操作警告",$.messager.confirm(i,e,(function(e){1==e&&(location.href=t)}))},alert:function(t,e){$.messager.alert(t,e)},url:function(t,e){return"/"==t?settings.public_url:(query=""==e||void 0===e?"":"?"+$.param(e),settings.public_url+"/"+t+query)},redirect:function(t,e){return window.location.href=app.url(t,e)},pinyin:function(t,e,i){i=i||"first",""==$("#"+e).val()&&$.get(app.url("index/api/pinyin?type="+i+"&id="+Math.random()),{name:$("#"+t).val()},(function(t){$("#"+e).val(t)}))}},uploader={file:function(t){var e=$("#"+t).find(".id").val();location.href=app.url("index/attachment/download",{id:e})},cancel:function(t){var e=$("#"+t).find(".id").val();if(e>0){var i=$("#"+t).find(".file-name a").text();$.messager.confirm("删除文件","确定要删除 <strong>"+i+"</strong> 此文件吗",(function(i){1==i&&$.get(app.url("index/attachment/delete"),{id:e},(function(e){1==e&&$("#"+t).remove()}))}))}else $("#"+t).remove()},insert:function(t){var e=$("#"+t).find(".id").val(),i=$("#"+t).find(".file-name a").text();if(/\.(gif|jpg|jpeg|png|GIF|JPG|PNG)$/.test(i))var n='<img src="'+app.url("index/attachment/show",{id:e})+'" title="'+i+'">';else n='<a href="'+app.url("index/attachment/download",{id:e})+'" title="'+i+'">'+i+"</a>";UE.getEditor("content").execCommand("insertHtml",n)}};function mediaDialog(t,e,i,n){var o={id:i,name:e,multi:n};t=app.url(t,o);$.dialog({title:"媒体管理",url:t,dialogClass:"modal-lg",buttons:[{text:'<i class="fa fa-remove"></i> 取消',class:"btn-default",click:function(){$(this).dialog("close")}},{text:'<i class="fa fa-check"></i> 确定',class:"btn-info",click:function(){window.saveMedia&&(window.saveMedia.call(this,o),$(this).dialog("close"))}}]})}function viewBox(t,e,i,n){n=n||"md",$.dialog({title:e,url:i,dialogClass:"modal-"+n,buttons:[{text:"确定",class:"btn-default",click:function(){$(this).dialog("close")}}]})}var viewDialogIndex=0;function viewDialog(t){void 0===t.id&&(t.id="view-dialog-"+viewDialogIndex,viewDialogIndex++);var e=$("#modal-"+t.id);e.length>0&&e.dialog("show");var i={title:name,url,buttons:[{text:"确定",class:"btn-default",click:function(){$(this).dialog("close")}}]},n=$.extend({},i,t);$.dialog(n)}var formDialogIndex=0;function formDialog(t){void 0===t.id&&(t.id="form-dialog-"+formDialogIndex,formDialogIndex++);var e=$("#modal-"+t.id);if(e.length>0)e.dialog("show");else{var i={title:"formDialog",backdrop:"static",buttons:[{text:"取消",class:"btn-default",click:function(){"function"==typeof error?error.call(this):$(this).dialog("close")}},{text:"保存",class:"btn-info",click:function(){var t=this,e=t.options;if("function"==typeof e.onSubmit)e.onSubmit.call(t);else{if(t.options.storeUrl)var i=t.options.storeUrl;else i=$("#"+e.id).attr("action");var n=$("#"+e.id).serialize(),o=gridListData(e.table);if(!1===o)return;var s=layer.msg("数据提交中...",{icon:16,shade:.1,time:12e4});$.post(i,n+"&"+$.param(o),(function(i){i.status?"function"==typeof e.success&&e.success.call(t,i):"function"==typeof e.error&&e.error.call(t,i)}),"json").complete((function(){layer.close(s)}))}}}]},n=$.extend({},i,t);$.dialog(n)}}function niceTime(t){var e=(new Date).getTime(),i=parseInt((e-1e3*t)/1e3);return i>=0&&i<60?i+"秒前":i>=60&&i<3600?parseInt(i/60)+"分钟前":i>=3600&&i<86400?parseInt(i/3600)+"小时前":parseInt(i/86400)+"天前"}function ucfirst(t){return t?t[0].toUpperCase()+t.substr(1):t}function digitUppercase(t){var e=["角","分"],i=["零","壹","贰","叁","肆","伍","陆","柒","捌","玖"],n=[["元","万","亿"],["","拾","佰","仟"]],o=t<0?"欠":"";t=Math.abs(t);for(var s="",r=0;r<e.length;r++)s+=(i[Math.floor(10*t*Math.pow(10,r))%10]+e[r]).replace(/零./,"");s=s||"整",t=Math.floor(t);for(r=0;r<n[0].length&&t>0;r++){for(var a="",l=0;l<n[1].length&&t>0;l++)a=i[t%10]+n[1][l]+a,t=Math.floor(t/10);s=a.replace(/(零.)*零$/,"").replace(/^$/,"零")+n[0][r]+s}return o+s.replace(/(零.)*零元/,"元").replace(/(零.)+/g,"零").replace(/^整$/,"零元整")}function number_format(t,e,i,n){t=(t+"").replace(/[^0-9+\-Ee.]/g,"");var o=isFinite(+t)?+t:0,s=isFinite(+e)?Math.abs(e):0,r=void 0===n?",":n,a=void 0===i?".":i,l="";return(l=(s?function(t,e){if(-1===(""+t).indexOf("e"))return+(Math.round(t+"e+"+e)+"e-"+e);var i=(""+t).split("e"),n="";return+i[1]+e>0&&(n="+"),(+(Math.round(+i[0]+"e"+n+(+i[1]+e))+"e-"+e)).toFixed(e)}(o,s).toString():""+Math.round(o)).split("."))[0].length>3&&(l[0]=l[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,r)),(l[1]||"").length<s&&(l[1]=l[1]||"",l[1]+=new Array(s-l[1].length+1).join("0")),l.join(a)}function isEmpty(t){try{if(""==t||null==t||null==t)return!0;if("number"==typeof t)return!!isNaN(t);if("boolean"==typeof t||"function"==typeof t||t instanceof Date||t instanceof RegExp)return!1;if("string"==typeof t)return 0==t.trim().length;if("object"===_typeof(t)){if(t instanceof Array)return 0==t.length;if(t instanceof Object)return 0==Object.getOwnPropertyNames(t).length}}catch(t){return!1}}function isNotEmpty(t){return!isEmpty(t)}function delHtmlTag(t){return t.replace(/<[^>]+>/g,"")}function isWeiXin(){return"micromessenger"==window.navigator.userAgent.toLowerCase().match(/MicroMessenger/i)}function toastrSuccess(t){isWeiXin()?$.toastr("success",t):top.$.toastr("success",t)}function toastrError(t){isWeiXin()?$.toastr("error",t):top.$.toastr("error",t)}function url(t,e){return query=""==e||void 0===e?"":"?"+$.param(e),settings.public_url+"/"+t+query}function format_datetime(t){function e(t){return t<10?"0"+t:t}t=1e3*parseInt(t);var i=new Date(t),n=i.getFullYear(),o=i.getMonth()+1,s=i.getDate(),r=i.getHours(),a=i.getMinutes();i.getSeconds();return n+"-"+e(o)+"-"+e(s)+" "+e(r)+":"+e(a)}function format_date(t){function e(t){return t<10?"0"+t:t}t=1e3*parseInt(t);var i=new Date(t),n=i.getFullYear(),o=i.getMonth()+1,s=i.getDate();i.getHours(),i.getMinutes(),i.getSeconds();return n+"-"+e(o)+"-"+e(s)}function ajaxSubmit(t,e){$("#"+t+"-form-submit").on("click",(function(){var i=$("#"+t),n=i.attr("action"),o=i.serialize(),s={};if(!1!==(s=gridListData(t))){o=o+"&"+$.param(s);var r=layer.msg("数据提交中...",{icon:16,shade:.1,time:12e4});return $.post(n,o,(function(t){"function"==typeof e?e(t):t.status?(toastrSuccess(t.data),t.url&&(self.location.href=t.url)):toastrError(t.data)}),"json").complete((function(){layer.close(r)})),!1}}))}function layerFrameClose(){var t=parent.layer.getFrameIndex(window.name);parent.layer.close(t)}function fileFormatSize(t){return t<1024?t+"B":t<1048576?(t/1024).toFixed(2)+"KB":t<1073741824?(t/1048576).toFixed(2)+"MB":(t/1073741824).toFixed(2)+"GB"}function FindFile(t,e){$.post(app.url("index/attachment/draft"),{key:e},(function(e){var i=[],n="#fileDraft_"+t,o=$(n).find(".id");$.each(o,(function(t,e){i.push($(this).val())})),$.each(e,(function(t,e){if(-1==i.indexOf(e.id+"")){e.size=fileFormatSize(e.size);var o=template("uploader-item-tpl",e);$(n).append(o)}}))}))}function toNumber(t){return t=parseFloat(t),isNaN(t)?0:isFinite(t)?t:0}function StringBuilder(){this._stringArray=new Array}function LocalExport(t,e){if(0!=t.api.getDisplayedRowCount()){var i=[];$.each(t.columnDefs,(function(t,e){1!=e.checkboxSelection&&'"actionCellRenderer"'!=e.cellRenderer&&i.push(e)}));var n=function t(e){var i=[];return $.each(e,(function(e,n){if(null!=n.children){var o=n.children;$.each(t(o),(function(t,e){i.push(e)}))}else i.push(n)})),i}(i),o=function(t){var e=[];return h(t,0,e),e}(i);console.log("开始导出任务:"+e);var s=new StringBuilder,r=o.length-1;$.each(o,(function(t,e){var i=e;s.appendLine('<tr style="font-weight:bold;white-space:nowrap;">'),$.each(i,(function(e,i){var n=toNumber(i.rowspan),o=toNumber(i.colspan);r>t&&null==i.children&&(n+=t+1);var a='<td colspan="'+o+'" rowspan="'+n+'"',l=["text-align:center"];"序号"==i.headerName&&l.push("mso-number-format:'@'"),a=(a=a+' style="'+l.join(";")+'"')+">"+i.headerName+"</td>",s.appendLine(a)})),s.appendLine("</tr>")}));var a=0;t.api.forEachNode((function(t,e){var i=t.data;s.append("<tr>"),a++,$.each(n,(function(t,e){var n;n=null==e.field?"":i[e.field]||"","htmlCellRenderer"==e.cellRenderer&&(n=delHtmlTag(n)),"序号"==e.headerName&&(n=a);var o=[];if("number"==e.type){var r=e.numberOptions||{},l=null==r.places?2:r.places;n=parseFloat(n),n=isNaN(n)?0:n.toFixed(l)}else"date"==e.form_type||o.push("mso-number-format:'@'");s.appendLine('<td style="'+o.join(";")+'">'+n+"</td>")})),s.appendLine("</tr>")})),console.log("结束导出任务:"+e);var l='<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"><head>\x3c!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>Sheet1</x:Name><x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--\x3e</head><body><table>'+s.toString(" ")+"</table></body></html>",c=new Date;!function(t,e){var i=document.createElement("a");i.download=e;var n=new Blob([t]);i.href=URL.createObjectURL(n),document.body.appendChild(i),i.click(),document.body.removeChild(i)}(l,e+"-"+[c.getFullYear(),c.getMonth()+1,c.getDate()].join("-")+".xls")}else toastrError("表格无数据,无法导出.");function h(t,e,i){var n=null;i.length>e?n=i[e]:(n=[],i.push(n)),$.each(t,(function(t,o){var s=o.children;null!=s&&(o.colspan=s.length,h(s,e+1,i)),o.rowspan=1,n.push(o)}))}}function LocalTableExport(t,e){var i=$("#"+t),n=!!i.hasClass("table2excel_with_colors"),o=new Date,s=[o.getFullYear(),o.getMonth()+1,o.getDate()].join("-");i.table2excel({exclude:".noExl",name:e,filename:e+s+".xls",fileext:".xls",exclude_img:!0,exclude_links:!0,exclude_inputs:!0,preserveColors:n})}function regionSelect(){var t=arguments,e={a1:"省",a2:"市",a3:"县"};function i(t,e,i,n){$.get(app.url("index/api/region",{layer:e,parent_id:i}),(function(e){var i="";$.map(e,(function(t){i+='<option value="'+t.id+'">'+t.name+"</option>"}));var o=$("#"+t).html(i);n>0&&o.val(n)}))}$("#"+t[0]).on("change",(function(){i(t[1],2,this.value,0),$("#"+t[1]).html('<option value="">'+e.a2+"</option>"),$("#"+t[2]).html('<option value="">'+e.a3+"</option>")})),$("#"+t[1]).on("change",(function(){i(t[2],3,this.value,0),$("#"+t[2]).html('<option value="">'+e.a3+"</option>")})),i(t[0],1,0,t[3]),t[3]&&(i(t[1],2,t[3],t[4]),t[4]&&i(t[2],3,t[4],t[5]))}String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")},String.prototype.replaceAll=function(t,e){return this.replace(new RegExp(t,"gm"),e)},StringBuilder.prototype.append=function(t){this._stringArray.push(t)},StringBuilder.prototype.appendLine=function(t){this._stringArray.push(t+"\n")},StringBuilder.prototype.toString=function(t){return this._stringArray.join(t)},function(t){var e,i={content:"",close:!0,monitor:"body",iframe:!0,height:t(window).height()-118,target:"#tabs-list",loadbar:!0,contextmenu:!1,store:!1,storeName:"",contentStyle:"content",ajax:{async:!0,dataType:"html",type:"get"},local:{refreshLabel:"刷新此标签",closeThisLabel:"关闭此标签",closeOtherLabel:"关闭其他标签",closeLeftLabel:"关闭左侧标签",closeRightLabel:"关闭右侧标签",loadbar:"正在加载内容,请稍候..."},callback:function(){}};_store=function(){if("object"==_typeof(arguments[0]))arguments[0].each((function(t,e){localStorage.setItem(t,e)}));else{if(!arguments[1])return localStorage.getItem(arguments[0]);localStorage.setItem(arguments[0],arguments[1])}},_click=function(n){var o;(o="object"==_typeof(n.data("addtab"))?n.data("addtab"):n.data()).id||o.addtab||(o.id=Math.random().toString(36).substring(3,35),n.data("id",o.id)),t.addtabs.add({target:o.target?o.target:e,id:o.id?o.id:o.addtab,title:o.title?o.title:n.html(),content:i.content?i.content:o.content,url:o.url?o.url:n.attr("href"),ajax:!!o.ajax&&o.ajax})},_createMenu=function(e,i,n){return t("<a>",{href:"javascript:void(0);",class:"list-group-item","data-right":e}).append(t("<i>",{class:"fa "+i})).append(n)},_pop=function(n,o,s){t("body").find("#popMenu").remove();var r=o.attr("id")?_createMenu("refresh","fa-refresh",i.local.refreshLabel):"",a=o.attr("id")?_createMenu("remove","fa-remove",i.local.closeThisLabel):"",l=o.prev("li").attr("id")?_createMenu("remove-left","fa-chevron-left",i.local.closeLeftLabel):"",c=o.next("li").attr("id")?_createMenu("remove-right","fa-chevron-right",i.local.closeRightLabel):"",h=t("<ul>",{"aria-controls":n,class:"rightMenu list-group",id:"popMenu","aria-url":o.attr("aria-url"),"aria-ajax":o.attr("aria-ajax")}).append(r).append(a).append(_createMenu("remove-circle","fa-remove-circle",i.local.closeOtherLabel)).append(l).append(c);h.css({top:s.pageY,left:s.pageX}),h.appendTo(t("body")).show(),t("ul.rightMenu a[data-right=refresh]").on("click",(function(){var e=t(this).parent("ul").attr("aria-controls").substring(4),i=t(this).parent("ul").attr("aria-url"),n=t(this).parent("ul").attr("aria-ajax");t.addtabs.add({id:e,url:i,refresh:!0,ajax:n})})),t("ul.rightMenu a[data-right=remove]").on("click",(function(){var e=t(this).parent("ul").attr("aria-controls");"tab_"==e.substring(0,4)&&(t.addtabs.close({id:e}),t.addtabs.drop())})),t("ul.rightMenu a[data-right=remove-circle]").on("click",(function(){var i=t(this).parent("ul").attr("aria-controls");e.find("li").each((function(){var e=t(this).attr("id");e&&e!="tab_"+i&&t.addtabs.close({id:t(this).children("a").attr("aria-controls")})})),t.addtabs.drop()})),t("ul.rightMenu a[data-right=remove-left]").on("click",(function(){var e=t(this).parent("ul").attr("aria-controls");t("#tab_"+e).prevUntil().each((function(){var i=t(this).attr("id");i&&i!="tab_"+e&&t.addtabs.close({id:t(this).children("a").attr("aria-controls")})})),t.addtabs.drop()})),t("ul.rightMenu a[data-right=remove-right]").on("click",(function(){var e=t(this).parent("ul").attr("aria-controls");t("#tab_"+e).nextUntil().each((function(){var i=t(this).attr("id");i&&i!="tab_"+e&&t.addtabs.close({id:t(this).children("a").attr("aria-controls")})})),t.addtabs.drop()})),h.mouseleave((function(){t(this).hide()})),t("body").click((function(){h.hide()}))},_listen=function(){var e;t(i.monitor).on("click","[data-addtab]",(function(){_click(t(this)),t.addtabs.drop()})),t("body").on("click",".tab-close",(function(){var e=t(this).prev("a").attr("aria-controls");t.addtabs.close({id:e}),t.addtabs.drop()})),t("body").on("mouseover",'li[role = "presentation"]',(function(){t(this).find(".tab-close").show()})),t("body").on("mouseleave",'li[role = "presentation"]',(function(){t(this).find(".tab-close").hide()})),i.contextmenu&&t("body").on("contextmenu","li[role=presentation]",(function(e){var i=t(this).children("a").attr("aria-controls");return _pop(i,t(this),e),!1})),t("body").on("dragstart.h5s",".tabs-list li",(function(i){e=t(this),i.originalEvent&&i.originalEvent.dataTransfer&&"function"==typeof i.originalEvent.dataTransfer.clearData&&i.originalEvent.dataTransfer.clearData()})).on("dragover.h5s dragenter.h5s drop.h5s",".tabs-list li",(function(i){e!=t(this)&&(t(".dragBack").removeClass("dragBack"),t(this).addClass("dragBack"),e.index()<t(this).index()?e.insertAfter(t(this)):t(this).insertAfter(e))})).on("dragend.h5s",".tabs-list li",(function(){t(".dragBack").removeClass("dragBack")})),t("body").on("shown.bs.tab",'a[data-toggle="tab"]',(function(){var e=t(this).parent("li").attr("id");if(e=e?e.substring(8):"",i.store){var n=t.parseJSON(_store("addtabs"+i.storeName));t.each(n,(function(t,i){i.id==e?i.active="true":delete i.active})),n=JSON.stringify(n),_store("addtabs"+i.storeName,n)}})),t(window).on("resize",(function(){t.addtabs.drop()}))},t.addtabs=function(n){if(t.addtabs.set(n),_listen(),i.store){var o,s=_store("addtabs"+i.storeName)?t.parseJSON(_store("addtabs"+i.storeName)):{};t.each(s,(function(e,i){i.active&&(o=e),t.addtabs.add(i)})),o&&(e.children(".active").removeClass("active"),t("#tab_"+o).addClass("active"),t("#tabs-content").children(".active").removeClass("active"),t("#"+o).addClass("active"))}},t.addtabs.set=function(){arguments[0]&&("object"==_typeof(arguments[0])?i=t.extend(i,arguments[0]||{}):i[arguments[0]]=arguments[1]),e="object"==_typeof(i.target)?i.target:t("body").find(i.target).length>0?t(i.target).first():t("body").find(".tabs-list").first()},t.addtabs.add=function(n){var o;n.id=n.id?n.id:Math.random().toString(36).substring(3,35),o="object"==_typeof(n.target)?n.target:"string"==typeof n.target?t("body").find(n.target).first():e;var s="tab_"+n.id,r=o;if(i.store){var a=_store("addtabs"+i.storeName)?t.parseJSON(_store("addtabs"+i.storeName)):{};a[s]=n,a[s].target="object"==_typeof(a[s].target)?i.target:a[s].target,t.each(a,(function(t,e){delete e.active})),a[s].active="true",a=JSON.stringify(a),_store("addtabs"+i.storeName,a)}var l=t("#tabs-content"),c=l.children('div[role="tabpanel"].active');if(localStorage.setItem("addtabs_active_id",c.attr("id")),r.children('li[role="presentation"].active').removeClass("active"),l.children('div[role="tabpanel"].active').removeClass("active"),r.find("#tab_"+s).length<1){var h=t("<div>",{id:"tabCover",class:"tab-cover"}),u=t("<li>",{role:"presentation",id:"tab_"+s,"aria-url":n.url,"aria-ajax":!!n.ajax}).append(t("<a>",{href:"#"+s,"aria-controls":s,role:"tab","data-toggle":"tab"}).html(n.title));i.close&&u.append(t("<i>",{class:"tab-close fa fa-remove",style:"display:none"}));var d=t("<div>",{class:"tab-pane",id:s,role:"tabpanel"});r.append(u),l.append(d.append(h)),t.addtabs.drop()}else{if(!n.refresh)return t("#tab_"+s).addClass("active"),void t("#"+s).addClass("active");(d=t("#"+s)).html("")}if(i.loadbar&&d.html(t("<div>",{class:""}).append(t("<div>",{class:"progress-bar progress-bar-striped progress-bar-success active",role:"progressbar","aria-valuenow":"100","aria-valuemin":"0","aria-valuemax":"100",style:"width:100%;position:absolute;height:20px;z-index:9999;"}).append('<span class="sr-only">100% Complete</span>').append("<span>"+i.local.loadbar+"</span>"))),n.content)d.html(n.content);else if(1!=i.iframe||"false"!=n.ajax&&n.ajax){var p=t.extend(i.ajax,n.ajax||{});p.url=n.url,p.error=function(t,e){d.html(t.responseText)},p.success=function(t){d.html(t)},t.ajax(p)}else{var f=t("<iframe>",{class:"tabIframe",id:"iframe_"+n.id,name:"iframe_"+n.id,width:"100%",height:"100%",frameborder:"no",border:"0",src:n.url});d.html(f),layer.load(2),f.load((function(){layer.closeAll("loading")}))}r.find("#tab_"+s).addClass("active"),l.find("#"+s).addClass("active"),l.find("#"+s).find("#tabCover").remove()},t.addtabs.close=function(e){var n=localStorage.getItem("addtabs_active_id");if(t("#tab_"+e.id).hasClass("active")){if(t("#tab_"+e.id).parents("li.tabdrop").length>0&&!t("#tab_"+e.id).parents("li.tabdrop").hasClass("hide"))t("#tab_"+n).size()>0?t("#tab_"+n).tab("show"):t("#tab_"+e.id).parents(".tabs-list").find("li").last().tab("show");else t("#tab_"+n).size()>0?t("#tab_"+n).tab("show"):t("#tab_"+e.id).prev("li").tab("show");t("#tab_"+n).size()>0?t("#"+n).addClass("active"):t("#"+e.id).prev().addClass("active")}if(t("#tab_"+e.id).remove(),t("#"+e.id).remove(),i.store){var o=t.parseJSON(_store("addtabs"+i.storeName));delete o[e.id],o=JSON.stringify(o),_store("addtabs"+i.storeName,o)}t.addtabs.drop(),i.callback()},t.addtabs.closeAll=function(e){"string"==typeof e&&(e=t("body").find(e)),t.each(e.find("li[id]"),(function(){var e=t(this).children("a").attr("aria-controls");t("#tab_"+e).remove(),t("#"+e).remove()})),e.find('li[role = "presentation"]').first().addClass("active");var i=e.find('li[role = "presentation"]').first().children("a").attr("aria-controls");t("#"+i).addClass("active"),t.addtabs.drop()},t.addtabs.drop=function(){var e=t("<li>",{class:"dropdown pull-right hide tabdrop"}).append(t("<a>",{class:"dropdown-toggle","data-toggle":"dropdown",href:"#"}).append(t("<i>",{class:"fa fa-align-justify"})).append(t(" <b>",{class:"caret"}))).append(t("<ul>",{class:"dropdown-menu"}));t("body").find(".tabs-list").each((function(){var i=t(this);i.find(".tabdrop").length<1?e.prependTo(i):e=i.find(".tabdrop"),i.parent().is(".tabs-below")&&e.addClass("dropup");var n=0,o=t(window).width()-t("#navbar-left").width()-t(".nav-user").width();i.append(e.find("li")).find(">li").not(".tabdrop").each((function(){(o-=t(this).width())<t(this).width()&&(e.find("ul").prepend(t(this)),n++)})),n>0?(e.removeClass("hide"),1==e.find(".active").length?e.addClass("active"):e.removeClass("active")):e.addClass("hide")}))}}(jQuery),$((function(){$.addtabs()}));