!function(m,C){function e(e){var n=de[e]={};return xe.each(e.split(ee),function(e,t){n[t]=!0}),n}function c(e,t,n){if(n===C&&1===e.nodeType){var r="data-"+t.replace(ge,"-$1").toLowerCase();if("string"==typeof(n=e.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:he.test(n)?xe.parseJSON(n):n)}catch(i){}xe.data(e,t,n)}else n=C}return n}function u(e){var t;for(t in e)if(("data"!==t||!xe.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function s(){return!1}function n(){return!0}function i(e){return!e||!e.parentNode||11===e.parentNode.nodeType}function t(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function r(e,n,r){if(n=n||0,xe.isFunction(n))return xe.grep(e,function(e,t){return!!n.call(e,t,e)===r});if(n.nodeType)return xe.grep(e,function(e){return e===n===r});if("string"==typeof n){var t=xe.grep(e,function(e){return 1===e.nodeType});if(_e.test(n))return xe.filter(n,t,!r);n=xe.filter(n,t)}return xe.grep(e,function(e){return 0<=xe.inArray(e,n)===r})}function y(e){var t=Re.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function f(e,t){return e.getElementsByTagName(t)[0]||e.appendChild(e.ownerDocument.createElement(t))}function l(e,t){if(1===t.nodeType&&xe.hasData(e)){var n,r,i,o=xe._data(e),a=xe._data(t,o),s=o.events;if(s)for(n in delete a.handle,a.events={},s)for(r=0,i=s[n].length;r").appendTo(R.body),n=t.css("display");return t.remove(),"none"!==n&&""!==n||(ot=R.body.appendChild(ot||xe.extend(R.createElement("iframe"),{frameBorder:0,width:0,height:0})),at&&ot.createElement||((at=(ot.contentWindow||ot.contentDocument).document).write(""),at.close()),t=at.body.appendChild(at.createElement(e)),n=it(t,"display"),R.body.removeChild(ot)),gt[e]=n}function T(n,e,r,i){var t;if(xe.isArray(e))xe.each(e,function(e,t){r||Tt.test(n)?i(n,t):T(n+"["+("object"==typeof t?e:"")+"]",t,r,i)});else if(r||"object"!==xe.type(e))i(n,e);else for(t in e)T(n+"["+t+"]",e[t],r,i)}function N(s){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,r,i=e.toLowerCase().split(ee),o=0,a=i.length;if(xe.isFunction(t))for(;o)[^>]*$|#([\w\-]*)$)/,re=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,ie=/^[\],:{}\s]*$/,oe=/(?:^|:|,)(?:\s*\[)+/g,ae=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,se=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,le=/^-ms-/,ue=/-([\da-z])/gi,ce=function(e,t){return(t+"").toUpperCase()},fe=function(){R.addEventListener?(R.removeEventListener("DOMContentLoaded",fe,!1),xe.ready()):"complete"===R.readyState&&(R.detachEvent("onreadystatechange",fe),xe.ready())},pe={};xe.fn=xe.prototype={constructor:xe,init:function(e,t,n){var r,i,o;if(!e)return this;if(e.nodeType)return this.context=this[0]=e,this.length=1,this;if("string"==typeof e){if(!(r="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&3<=e.length?[null,e,null]:ne.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1])return o=(t=t instanceof xe?t[0]:t)&&t.nodeType?t.ownerDocument||t:R,e=xe.parseHTML(r[1],o,!0),re.test(r[1])&&xe.isPlainObject(t)&&this.attr.call(e,t,!0),xe.merge(this,e);if((i=R.getElementById(r[2]))&&i.parentNode){if(i.id!==r[2])return n.find(e);this.length=1,this[0]=i}return this.context=R,this.selector=e,this}return xe.isFunction(e)?n.ready(e):(e.selector!==C&&(this.selector=e.selector,this.context=e.context),xe.makeArray(e,this))},selector:"",jquery:"1.8.3",length:0,size:function(){return this.length},toArray:function(){return Y.call(this)},get:function(e){return null==e?this.toArray():e<0?this[this.length+e]:this[e]},pushStack:function(e,t,n){var r=xe.merge(this.constructor(),e);return r.prevObject=this,r.context=this.context,"find"===t?r.selector=this.selector+(this.selector?" ":"")+n:t&&(r.selector=this.selector+"."+t+"("+n+")"),r},each:function(e,t){return xe.each(this,e,t)},ready:function(e){return xe.ready.promise().done(e),this},eq:function(e){return-1===(e=+e)?this.slice(e):this.slice(e,e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(Y.apply(this,arguments),"slice",Y.call(arguments).join(","))},map:function(n){return this.pushStack(xe.map(this,function(e,t){return n.call(e,t,e)}))},end:function(){return this.prevObject||this.constructor(null)},push:U,sort:[].sort,splice:[].splice},xe.fn.init.prototype=xe.fn,xe.extend=xe.fn.extend=function(e,t){var n,r,i,o,a,s,l=e||{},u=1,c=arguments.length,f=!1;for("boolean"==typeof l&&(f=l,l=t||{},u=2),"object"==typeof l||xe.isFunction(l)||(l={}),c===u&&(l=this,--u);u
a",e=f.getElementsByTagName("*"),t=f.getElementsByTagName("a")[0],!e||!t||!e.length)return{};r=(n=R.createElement("select")).appendChild(R.createElement("option")),i=f.getElementsByTagName("input")[0],t.style.cssText="top:1px;float:left;opacity:.5",a={leadingWhitespace:3===f.firstChild.nodeType,tbody:!f.getElementsByTagName("tbody").length,htmlSerialize:!!f.getElementsByTagName("link").length,style:/top/.test(t.getAttribute("style")),hrefNormalized:"/a"===t.getAttribute("href"),opacity:/^0.5/.test(t.style.opacity),cssFloat:!!t.style.cssFloat,checkOn:"on"===i.value,optSelected:r.selected,getSetAttribute:"t"!==f.className,enctype:!!R.createElement("form").enctype,html5Clone:"<:nav>"!==R.createElement("nav").cloneNode(!0).outerHTML,boxModel:"CSS1Compat"===R.compatMode,submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1},i.checked=!0,a.noCloneChecked=i.cloneNode(!0).checked,n.disabled=!0,a.optDisabled=!r.disabled;try{delete f.test}catch(p){a.deleteExpando=!1}if(!f.addEventListener&&f.attachEvent&&f.fireEvent&&(f.attachEvent("onclick",c=function(){a.noCloneEvent=!1}),f.cloneNode(!0).fireEvent("onclick"),f.detachEvent("onclick",c)),(i=R.createElement("input")).value="t",i.setAttribute("type","radio"),a.radioValue="t"===i.value,i.setAttribute("checked","checked"),i.setAttribute("name","t"),f.appendChild(i),(o=R.createDocumentFragment()).appendChild(f.lastChild),a.checkClone=o.cloneNode(!0).cloneNode(!0).lastChild.checked,a.appendChecked=i.checked,o.removeChild(i),o.appendChild(f),f.attachEvent)for(l in{submit:!0,change:!0,focusin:!0})(u=(s="on"+l)in f)||(f.setAttribute(s,"return;"),u="function"==typeof f[s]),a[l+"Bubbles"]=u;return xe(function(){var e,t,n,r,i="padding:0;margin:0;border:0;display:block;overflow:hidden;",o=R.getElementsByTagName("body")[0];o&&((e=R.createElement("div")).style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px",o.insertBefore(e,o.firstChild),t=R.createElement("div"),e.appendChild(t),t.innerHTML="
t
",(n=t.getElementsByTagName("td"))[0].style.cssText="padding:0;margin:0;border:0;display:none",u=0===n[0].offsetHeight,n[0].style.display="",n[1].style.display="none",a.reliableHiddenOffsets=u&&0===n[0].offsetHeight,t.innerHTML="",t.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",a.boxSizing=4===t.offsetWidth,a.doesNotIncludeMarginInBodyOffset=1!==o.offsetTop,m.getComputedStyle&&(a.pixelPosition="1%"!==(m.getComputedStyle(t,null)||{}).top,a.boxSizingReliable="4px"===(m.getComputedStyle(t,null)||{width:"4px"}).width,(r=R.createElement("div")).style.cssText=t.style.cssText=i,r.style.marginRight=r.style.width="0",t.style.width="1px",t.appendChild(r),a.reliableMarginRight=!parseFloat((m.getComputedStyle(r,null)||{}).marginRight)),"undefined"!=typeof t.style.zoom&&(t.innerHTML="",t.style.cssText=i+"width:1px;padding:1px;display:inline;zoom:1",a.inlineBlockNeedsLayout=3===t.offsetWidth,t.style.display="block",t.style.overflow="visible",t.innerHTML="
",t.firstChild.style.width="5px",a.shrinkWrapBlocks=3!==t.offsetWidth,e.style.zoom=1),o.removeChild(e),e=t=n=r=null)}),o.removeChild(f),e=t=n=r=i=o=f=null,a}();var he=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,ge=/([A-Z])/g;xe.extend({cache:{},deletedIds:[],uuid:0,expando:"jQuery"+(xe.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(e){return!!(e=e.nodeType?xe.cache[e[xe.expando]]:e[xe.expando])&&!u(e)},data:function(e,t,n,r){if(xe.acceptData(e)){var i,o,a=xe.expando,s="string"==typeof t,l=e.nodeType,u=l?xe.cache:e,c=l?e[a]:e[a]&&a;if(c&&u[c]&&(r||u[c].data)||!s||n!==C)return c||(l?e[a]=c=xe.deletedIds.pop()||xe.guid++:c=a),u[c]||(u[c]={},l||(u[c].toJSON=xe.noop)),"object"!=typeof t&&"function"!=typeof t||(r?u[c]=xe.extend(u[c],t):u[c].data=xe.extend(u[c].data,t)),i=u[c],r||(i.data||(i.data={}),i=i.data),n!==C&&(i[xe.camelCase(t)]=n),s?null==(o=i[t])&&(o=i[xe.camelCase(t)]):o=i,o}},removeData:function(e,t,n){if(xe.acceptData(e)){var r,i,o,a=e.nodeType,s=a?xe.cache:e,l=a?e[xe.expando]:xe.expando;if(s[l]){if(t&&(r=n?s[l]:s[l].data)){xe.isArray(t)||(t=t in r?[t]:(t=xe.camelCase(t))in r?[t]:t.split(" "));for(i=0,o=t.length;if&&g.push({elem:this,matches:c.slice(f)}),t=0;tC.cacheLength&&delete n[r.shift()],n[e+" "]=t},n)},V=Y(),J=Y(),G=Y(),Q="[\\x20\\t\\r\\n\\f]",K="(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+",Z=K.replace("w","w#"),ee="\\["+Q+"*("+K+")"+Q+"*(?:"+"([*^$|!~]?=)"+Q+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+Z+")|)|)"+Q+"*\\]",te=":("+K+")(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:"+ee+")|[^:]|\\\\.)*|.*))\\)|)",ne=":(even|odd|eq|gt|lt|nth|first|last)(?:\\("+Q+"*((?:-\\d)?\\d*)"+Q+"*\\)|)(?=[^-]|$)",re=new RegExp("^"+Q+"+|((?:^|[^\\\\])(?:\\\\.)*)"+Q+"+$","g"),ie=new RegExp("^"+Q+"*,"+Q+"*"),oe=new RegExp("^"+Q+"*([\\x20\\t\\r\\n\\f>+~])"+Q+"*"),ae=new RegExp(te),se=/^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,le=/[\x20\t\r\n\f]*[+~]/,ue=/h\d/i,ce=/input|select|textarea|button/i,fe=/\\(?!\\)/g,pe={ID:new RegExp("^#("+K+")"),CLASS:new RegExp("^\\.("+K+")"),NAME:new RegExp("^\\[name=['\"]?("+K+")['\"]?\\]"),TAG:new RegExp("^("+K.replace("w","w*")+")"),ATTR:new RegExp("^"+ee),PSEUDO:new RegExp("^"+te),POS:new RegExp(ne,"i"),CHILD:new RegExp("^:(only|nth|first|last)-child(?:\\("+Q+"*(even|odd|(([+-]|)(\\d*)n|)"+Q+"*(?:([+-]|)"+Q+"*(\\d+)|))"+Q+"*\\)|)","i"),needsContext:new RegExp("^"+Q+"*[>+~]|"+ne,"i")},de=function(e){var t=B.createElement("div");try{return e(t)}catch(n){return!1}finally{t=null}},he=de(function(e){return e.appendChild(B.createComment("")),!e.getElementsByTagName("*").length}),ge=de(function(e){return e.innerHTML="",e.firstChild&&typeof e.firstChild.getAttribute!==O&&"#"===e.firstChild.getAttribute("href")}),me=de(function(e){e.innerHTML="";var t=typeof e.lastChild.getAttribute("multiple");return"boolean"!==t&&"string"!==t}),ye=de(function(e){return e.innerHTML="",!(!e.getElementsByClassName||!e.getElementsByClassName("e").length)&&(e.lastChild.className="e",2===e.getElementsByClassName("e").length)}),ve=de(function(e){e.id=_+0,e.innerHTML="
",W.insertBefore(e,W.firstChild);var t=B.getElementsByName&&B.getElementsByName(_).length===2+B.getElementsByName(_+0).length;return s=!B.getElementById(_),W.removeChild(e),t});try{z.call(W.childNodes,0)[0].nodeType}catch(be){z=function(e){for(var t,n=[];t=this[e];e++)n.push(t);return n}}w.matches=function(e,t){return w(e,null,null,t)},w.matchesSelector=function(e,t){return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(fe,""),e[3]=(e[4]||e[5]||"").replace(fe,""),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1]?(e[2]||w.error(e[0]),e[3]=+(e[3]?e[4]+(e[5]||1):2*("even"===e[2]||"odd"===e[2])),e[4]=+(e[6]+e[7]||"odd"===e[2])):e[2]&&w.error(e[0]),e},PSEUDO:function(e){var t,n;return pe.CHILD.test(e[0])?null:(e[3]?e[2]=e[3]:(t=e[4])&&(ae.test(t)&&(n=p(t,!0))&&(n=t.indexOf(")",t.length-n)-t.length)&&(t=t.slice(0,n),e[0]=e[0].slice(0,n)),e[2]=t),e.slice(0,3))}},filter:{ID:s?function(t){return t=t.replace(fe,""),function(e){return e.getAttribute("id")===t}}:function(n){return n=n.replace(fe,""),function(e){var t=typeof e.getAttributeNode!==O&&e.getAttributeNode("id");return t&&t.value===n}},TAG:function(t){return"*"===t?function(){return!0}:(t=t.replace(fe,"").toLowerCase(),function(e){return e.nodeName&&e.nodeName.toLowerCase()===t})},CLASS:function(e){var t=V[_][e+" "];return t||(t=new RegExp("(^|"+Q+")"+e+"("+Q+"|$)"))&&V(e,function(e){return t.test(e.className||typeof e.getAttribute!==O&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=w.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1",e.querySelectorAll("[selected]").length||L.push("\\["+Q+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),e.querySelectorAll(":checked").length||L.push(":checked")}),de(function(e){e.innerHTML="

",e.querySelectorAll("[test^='']").length&&L.push("[*^$]="+Q+"*(?:\"\"|'')"),e.innerHTML="",e.querySelectorAll(":enabled").length||L.push(":enabled",":disabled")}),L=new RegExp(L.join("|")),u=function(e,t,n,r,i){if(!r&&!i&&!L.test(e)){var o,a,s=!0,l=_,u=t,c=9===t.nodeType&&e;if(1===t.nodeType&&"object"!==t.nodeName.toLowerCase()){for(o=p(e),(s=t.getAttribute("id"))?l=s.replace(j,"\\$&"):t.setAttribute("id",l),l="[id='"+l+"'] ",a=o.length;a--;)o[a]=l+o[a].join("");u=le.test(e)&&t.parentNode||t,c=o.join(",")}if(c)try{return I.apply(n,z.call(u.querySelectorAll(c),0)),n}catch(f){}finally{s||t.removeAttribute("id")}}return A(e,t,n,r,i)},F&&(de(function(e){S=F.call(e,"div");try{F.call(e,"[test!='']:sizzle"),H.push("!=",te)}catch(be){}}),H=new RegExp(H.join("|")),w.matchesSelector=function(e,t){if(t=t.replace(D,"='$1']"),!g(e)&&!H.test(t)&&!L.test(t))try{var n=F.call(e,t);if(n||S||e.document&&11!==e.document.nodeType)return n}catch(be){}return 0]*)\/>/gi,Xe=/<([\w:]+)/,Ue=/]","i"),Qe=/^(?:checkbox|radio)$/,Ke=/checked\s*(?:[^=]|=\s*.checked.)/i,Ze=/\/(java|ecma)script/i,et=/^\s*\s*$/g,tt={option:[1,""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]},nt=y(R),rt=nt.appendChild(R.createElement("div"));tt.optgroup=tt.option,tt.tbody=tt.tfoot=tt.colgroup=tt.caption=tt.thead,tt.th=tt.td,xe.support.htmlSerialize||(tt._default=[1,"X
","
"]),xe.fn.extend({text:function(e){return xe.access(this,function(e){return e===C?xe.text(this):this.empty().append((this[0]&&this[0].ownerDocument||R).createTextNode(e))},null,e,arguments.length)},wrapAll:function(t){if(xe.isFunction(t) )return this.each(function(e){xe(this).wrapAll(t.call(this,e))});if(this[0]){var e=xe(t,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(n){return xe.isFunction(n)?this.each(function(e){xe(this).wrapInner(n.call(this,e))}):this.each(function(){var e=xe(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=xe.isFunction(t);return this.each(function(e){xe(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(){return this.parent().each(function(){xe.nodeName(this,"body")||xe(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(e){1!==this.nodeType&&11!==this.nodeType||this.appendChild(e)})},prepend:function(){return this.domManip(arguments,!0,function(e){1!==this.nodeType&&11!==this.nodeType||this.insertBefore(e,this.firstChild)})},before:function(){if(!i(this[0]))return this.domManip(arguments,!1,function(e){this.parentNode.insertBefore(e,this)});if(arguments.length){var e=xe.clean(arguments);return this.pushStack(xe.merge(e,this),"before",this.selector)}},after:function(){if(!i(this[0]))return this.domManip(arguments,!1,function(e){this.parentNode.insertBefore(e,this.nextSibling)});if(arguments.length){var e=xe.clean(arguments);return this.pushStack(xe.merge(this,e),"after",this.selector)}},remove:function(e,t){for(var n,r=0;null!=(n=this[r]);r++)e&&!xe.filter(e,[n]).length||(t||1!==n.nodeType||(xe.cleanData(n.getElementsByTagName("*")),xe.cleanData([n])),n.parentNode&&n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)for(1===e.nodeType&&xe.cleanData(e.getElementsByTagName("*"));e.firstChild;)e.removeChild(e.firstChild);return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return xe.clone(this,e,t)})},html:function(e){return xe.access(this,function(e){var t=this[0]||{},n=0,r=this.length;if(e===C)return 1===t.nodeType?t.innerHTML.replace($e,""):C;if("string"==typeof e&&!Ve.test(e)&&(xe.support.htmlSerialize||!Ge.test(e))&&(xe.support.leadingWhitespace||!Ie.test(e))&&!tt[(Xe.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(ze,"<$1>");try{for(;n")?a=e.cloneNode(!0):(rt.innerHTML=e.outerHTML,rt.removeChild(a=rt.firstChild)),!(xe.support.noCloneEvent&&xe.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||xe.isXMLDoc(e)))for(p(e,a),r=d(e),i=d(a),o=0;r[o];++o)i[o]&&p(r[o],i[o]);if(t&&(l(e,a),n))for(r=d(e),i=d(a),o=0;r[o];++o)l(r[o],i[o]);return r=i=null,a},clean:function(e,t,n,r){var i,o,a,s,l,u,c,f,p,d,h,g=t===R&&nt,m=[];for(t&&"undefined"!=typeof t.createDocumentFragment||(t=R),i=0;null!=(a=e[i]);i++)if("number"==typeof a&&(a+=""),a){if("string"==typeof a)if(Ye.test(a)){for(g=g||y(t),c=t.createElement("div"),g.appendChild(c),a=a.replace(ze,"<$1>"),s=(Xe.exec(a)||["",""])[1].toLowerCase(),u=(l=tt[s]||tt._default)[0],c.innerHTML=l[1]+a+l[2];u--;)c=c.lastChild;if(!xe.support.tbody)for(f=Ue.test(a),o=(p="table"!==s||f?""!==l[1]||f?[]:c.childNodes:c.firstChild&&c.firstChild.childNodes).length-1;0<=o;--o)xe.nodeName(p[o],"tbody")&&!p[o].childNodes.length&&p[o].parentNode.removeChild(p[o]);!xe.support.leadingWhitespace&&Ie.test(a)&&c.insertBefore(t.createTextNode(Ie.exec(a)[0]),c.firstChild),a=c.childNodes,c.parentNode.removeChild(c)}else a=t.createTextNode(a);a.nodeType?m.push(a):xe.merge(m,a)}if(c&&(a=c=g=null),!xe.support.appendChecked)for(i=0;null!=(a=m[i]);i++)xe.nodeName(a,"input")?v(a):"undefined"!=typeof a.getElementsByTagName&&xe.grep(a.getElementsByTagName("input"),v);if(n)for(d=function(e){if(!e.type||Ze.test(e.type))return r?r.push(e.parentNode?e.parentNode.removeChild(e):e):n.appendChild(e)},i=0;null!=(a=m[i]);i++)xe.nodeName(a,"script")&&d(a)||(n.appendChild(a),"undefined"!=typeof a.getElementsByTagName&&(h=xe.grep(xe.merge([],a.getElementsByTagName("script")),d),m.splice.apply(m,[i+1,0].concat(h)),i+=h.length));return m},cleanData:function(e,t){for(var n,r,i,o,a=0,s=xe.expando,l=xe.cache,u=xe.support.deleteExpando,c=xe.event.special;null!=(i=e[a]);a++)if((t||xe.acceptData(i))&&(n=(r=i[s])&&l[r])){if(n.events)for(o in n.events)c[o]?xe.event.remove(i,o):xe.removeEvent(i,o,n.handle);l[r]&&(delete l[r],u?delete i[s]:i.removeAttribute?i.removeAttribute(s):i[s]=null,xe.deletedIds.push(r))}}}),xe.uaMatch=function(e){e=e.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},Pe={},(We=xe.uaMatch(I.userAgent)).browser&&(Pe[We.browser]=!0,Pe.version=We.version),Pe.chrome?Pe.webkit=!0:Pe.webkit&&(Pe.safari=!0),xe.browser=Pe,xe.sub=function(){function n(e,t){return new n.fn.init(e,t)}xe.extend(!0,n,this),n.superclass=this,n.fn=n.prototype=this(),(n.fn.constructor=n).sub=this.sub,n.fn.init=function i(e,t){return t&&t instanceof xe&&!(t instanceof n)&&(t=n(t)),xe.fn.init.call(this,e,t,r)},n.fn.init.prototype=n.fn;var r=n(R);return n};var it,ot,at,st=/alpha\([^)]*\)/i,lt=/opacity=([^)]*)/,ut=/^(top|right|bottom|left)$/,ct=/^(none|table(?!-c[ea]).+)/,ft=/^margin/,pt=new RegExp("^("+K+")(.*)$","i"),dt=new RegExp("^("+K+")(?!px)[a-z%]+$","i"),ht=new RegExp("^([-+])=("+K+")","i"),gt={BODY:"block"},mt={position:"absolute",visibility:"hidden",display:"block"},yt={letterSpacing:0,fontWeight:400},vt=["Top","Right","Bottom","Left"],bt=["Webkit","O","Moz","ms"],xt=xe.fn.toggle;xe.fn.extend({css:function(e,t){return xe.access(this,function(e,t,n){return n!==C?xe.style(e,t,n):xe.css(e,t)},e,t,1)<[^<]*)*<\/script>/gi,Ot=/([?&])_=[^&]*/,_t=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,qt=xe.fn.load,Bt={},Wt={},Pt=["*/"]+["*"];try{St=$.href}catch(rn){(St=R.createElement("a")).href="",St=St.href}Et=_t.exec(St.toLowerCase())||[],xe.fn.load=function(e,t,n){if("string"!=typeof e&&qt)return qt.apply(this,arguments);if(!this.length)return this;var r,i,o,a=this,s=e.indexOf(" ");return 0<=s&&(r=e.slice(s,e.length),e=e.slice(0,s)),xe.isFunction(t)?(n=t,t=C):t&&"object"==typeof t&&(i="POST"),xe.ajax({url:e,type:i,dataType:"html",data:t,complete:function(e,t){n&&a.each(n,o||[e.responseText,t,e])}}).done(function(e){o=arguments,a.html(r?xe("
").append(e.replace(Mt,"")).find(r):e)}),this},xe.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(e,t){xe.fn[t]=function(e){return this.on(t,e)}}),xe.each(["get","post"],function(e,i){xe[i]=function(e,t,n,r){return xe.isFunction(t)&&(r=r||n,n=t,t=C),xe.ajax({type:i,url:e,data:t,success:n,dataType:r})}}),xe.extend({getScript:function(e,t){return xe.get(e,C,t,"script")},getJSON:function(e,t,n){return xe.get(e,t,n,"json")},ajaxSetup:function(e,t){return t?E(e,xe.ajaxSettings):(t=e,e=xe.ajaxSettings),E(e,t),e},ajaxSettings:{url:St,isLocal:Dt.test(Et[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":Pt},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":m.String,"text html":!0,"text json":xe.parseJSON,"text xml":xe.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:N(Bt),ajaxTransport:N(Wt),ajax:function(e,t){function n(e,t,n,r){var i,o,a,s,l,u=t;2!==w&&(w=2,d&&clearTimeout(d),p=C,f=r||"",T.readyState=0=d.minChars||0",{"class":"ms-res-group",html:i}).appendTo(c.combobox),h._renderComboItems(o[i].items,!0);var s=c.combobox.find(".ms-res-group").outerHeight();if(null!==s){var a=n*s;t=l*e.length+a}else t=l*(e.length+n)}if(t=c.combobox.height()&&t>d.maxDropHeight&&c.combobox.height(d.maxDropHeight),1===e.length&&!0===d.autoSelect&&c.combobox.children().filter(":not(.ms-res-item-disabled):last").addClass("ms-res-item-active"),!0===d.selectFirst&&c.combobox.children().filter(":not(.ms-res-item-disabled):first").addClass("ms-res-item-active"),0===e.length&&""!==c.getRawValue()){var r=d.noSuggestionText.replace(/\{\{.*\}\}/,c.input.val());h._updateHelper(r),c.collapse()}!1===d.allowFreeEntries&&(0===e.length?(v(c.input).addClass(d.invalidCls),c.combobox.hide()):v(c.input).removeClass(d.invalidCls))},_getEntriesFromStringArray:function(e){var i=[];return v.each(e,function(e,t){var n={};n[d.displayField]=n[d.valueField]=v.trim(t),i.push(n)}),i},_highlightSuggestion:function(e){var n=c.input.val(),t=["^","$","*","+","?",".","(",")",":","!","|","{","}","[","]"];if(v.each(t,function(e,t){n=n.replace(t,"\\"+t)}),0===n.length)return e;var i=!0===d.matchCase?"g":"gi";return e.replace(new RegExp("("+n+")(?!([^<]+)?>)",i),"$1")},_moveSelectedRow:function(e){var t,n,i,s;d.expanded||c.expand(),t=c.combobox.find(".ms-res-item:not(.ms-res-item-disabled)"),n="down"===e?t.eq(0):t.filter(":last"),0<(i=c.combobox.find(".ms-res-item-active:not(.ms-res-item-disabled):first")).length&&("down"===e?(0===(n=i.nextAll(".ms-res-item:not(.ms-res-item-disabled)").first()).length&&(n=t.eq(0)),s=c.combobox.scrollTop(),c.combobox.scrollTop(0),n[0].offsetTop+n.outerHeight()>c.combobox.height()&&c.combobox.scrollTop(s+l)):(0===(n=i.prevAll(".ms-res-item:not(.ms-res-item-disabled)").first()).length&&(n=t.filter(":last"),c.combobox.scrollTop(l*t.length)),n[0].offsetTop",{"class":"ms-ctn form-control "+(d.resultAsString?"ms-as-string ":"")+d.cls+(v(e).hasClass("input-lg")?" input-lg":"")+(v(e).hasClass("input-sm")?" input-sm":"")+(!0===d.disabled?" ms-ctn-disabled":"")+(!0===d.editable?"":" ms-ctn-readonly")+(!1===d.hideTrigger?"":" ms-no-trigger"),style:d.style,id:d.id}),c.container.focus(v.proxy(f._onFocus,this)),c.container.blur(v.proxy(f._onBlur,this)),c.container.keydown(v.proxy(f._onKeyDown,this)),c.container.keyup(v.proxy(f._onKeyUp,this)),c.input=v("",v.extend({type:"text","class":!0===d.editable?"":" ms-input-readonly",id:c.container.attr("id")+"_input",readonly:!d.editable,placeholder:d.placeholder,disabled:d.disabled},d.inputCfg)),c.input.focus(v.proxy(f._onInputFocus,this)),c.input.click(v.proxy(f._onInputClick,this)),c.combobox=v("
",{"class":"ms-res-ctn dropdown-menu"}).height(d.maxDropHeight),c.combobox.on("click","div.ms-res-item",v.proxy(f._onComboItemSelected,this)),c.combobox.on("mouseover","div.ms-res-item",v.proxy(f._onComboItemMouseOver,this)),d.selectionContainer?(c.selectionContainer=d.selectionContainer,v(c.selectionContainer).addClass("ms-sel-ctn")):c.selectionContainer=v("
",{"class":"ms-sel-ctn"}),c.selectionContainer.click(v.proxy(f._onFocus,this)),"inner"!==d.selectionPosition||d.selectionContainer?c.container.append(c.input):c.selectionContainer.append(c.input),c.helper=v("",{"class":"ms-helper "+d.infoMsgCls}),h._updateHelper(),c.container.append(c.helper),v(e).replaceWith(c.container),!d.selectionContainer)switch(d.selectionPosition){case"bottom":c.selectionContainer.insertAfter(c.container),!0===d.selectionStacked&&(c.selectionContainer.width(c.container.width()),c.selectionContainer.addClass("ms-stacked"));break;case"right":c.selectionContainer.insertAfter(c.container),c.container.css("float","left");break;default:c.container.append(c.selectionContainer)}!1===d.hideTrigger&&(c.trigger=v("
",{"class":"ms-trigger",html:'
'}),c.trigger.click(v.proxy(f._onTriggerClick,this)),c.container.append(c.trigger)),v(window).resize(v.proxy(f._onWindowResized,this)),null===d.value&&null===d.data||("string"==typeof d.data?(h._asyncValues=d.value,h._processSuggestions()):(h._processSuggestions(),null!==d.value&&(c.setValue(d.value),h._renderSelection()))),v("body").click(function(e){c.container.hasClass("ms-ctn-focus")&&0===c.container.has(e.target).length&&e.target.className.indexOf("ms-res-item")<0&&e.target.className.indexOf("ms-close-btn")<0&&c.container[0]!==e.target&&f._onBlur()}),!0===d.expanded&&(d.expanded=!1,c.expand())},_renderComboItems:function(e,a){var r=this,o="";v.each(e,function(e,t){var n=null!==d.renderer?d.renderer.call(r,t):t[d.displayField],i=null!==d.disabledField&&!0===t[d.disabledField],s=v("
",{"class":"ms-res-item "+(a?"ms-res-item-grouped ":"")+(i?"ms-res-item-disabled ":"")+(e%2==1&&!0===d.useZebraStyle?"ms-res-odd":""),html:!0===d.highlight?h._highlightSuggestion(n):n,"data-json":JSON.stringify(t)});o+=v("
").append(s).html()}),c.combobox.append(o),l=c.combobox.find(".ms-res-item:first").outerHeight()},_renderSelection:function(){var a=this,e=0,t=0,r=[],o=!0===d.resultAsString&&!m;c.selectionContainer.find(".ms-sel-item").remove(),c._valueContainer!==undefined&&c._valueContainer.remove(),v.each(u,function(e,t){var n,i=null!==d.selectionRenderer?d.selectionRenderer.call(a,t):t[d.displayField],s=h._validateSingleItem(t[d.displayField])?"":" ms-sel-invalid";!0===o?n=v("
",{"class":"ms-sel-item ms-sel-text "+d.selectionCls+s,html:i+(e===u.length-1?"":d.resultAsStringDelimiter)}).data("json",t):(n=v("
",{"class":"ms-sel-item "+d.selectionCls+s,html:i}).data("json",t),!1===d.disabled&&v("",{"class":"ms-close-btn"}).data("json",t).appendTo(n).click(v.proxy(f._onTagTriggerClick,a))),r.push(n)});var i=c.container.width();if(c.selectionContainer.prepend(r),c._valueContainer=v("
",{style:"display: none;"}),v.each(c.getValue(),function(e,t){v("",{type:"hidden",name:d.name,value:t}).appendTo(c._valueContainer)}),c._valueContainer.appendTo(c.selectionContainer),"inner"===d.selectionPosition&&!d.selectionContainer){c.input.width(0),t=c.input.offset().left-c.selectionContainer.offset().left,e=c.container.width()-t-42,c.input.closest(".ms-sel-ctn").find("input").width(e);var s=c.input.closest(".ms-sel-ctn").find(".ms-sel-item"),l=0;s.each(function(e,t){if(e==s.length-1){var n=i-62-l;v(t).css("max-width",n+"px")}else l+=v(t).width()+5,v(t).css("max-width","none")})}u.length===d.maxSelection?h._updateHelper(d.maxSelectionRenderer.call(this,u.length)):c.helper.hide()},_selectItem:function(e){1===d.maxSelection&&(u=[]),c.addToSelection(e.data("json")),e.removeClass("ms-res-item-active"),!1!==d.expandOnFocus&&u.length!==d.maxSelection||c.collapse(),m?m&&(d.expandOnFocus||p)&&(h._processSuggestions(),p&&c.expand()):c.input.focus()},_sortAndTrim:function(e){var i=c.getRawValue(),s=[],n=[],a=c.getValue();return 0t[d.sortOrder]?"asc"===d.sortDir?1:-1:0}),d.maxSuggestions&&0g.ENTER&&e.keyCoded.maxEntryLength?(h._updateHelper(d.maxEntryRenderer.call(this,n.length-d.maxEntryLength)),!0===d.expanded&&c.collapse()):(c.helper.hide(),d.minChars<=n.length&&(a=setTimeout(function(){!0===d.expanded?h._processSuggestions():c.expand()},d.typeDelay)))}},_onTagTriggerClick:function(e){c.removeFromSelection(v(e.currentTarget).data("json"))},_onTriggerClick:function(){if(!1===c.isDisabled()&&(!0!==d.expandOnFocus||u.length!==d.maxSelection))if(v(c).trigger("triggerclick",[c]),!0===d.expanded)c.collapse();else{var e=c.getRawValue().length;e>=d.minChars?(c.input.focus(),c.expand()):h._updateHelper(d.minCharsRenderer.call(this,d.minChars-e))}},_onWindowResized:function(){h._renderSelection()}};null!==e&&h._render(e)};v.fn.magicSuggest=function(i){var e=v(this);return 1===e.size()&&e.data("magicSuggest")?e.data("magicSuggest"):(e.each(function(){var e=v(this);if(!e.data("magicSuggest")){"select"===this.nodeName.toLowerCase()&&(i.data=[],i.value=[],v.each(this.children,function(e,t){t.nodeName&&"option"===t.nodeName.toLowerCase()&&(i.data.push({id:t.value,name:t.text}),v(t).attr("selected")&&i.value.push(t.value))}));var n={};v.each(this.attributes,function(e,t){n[t.name]="value"===t.name&&""!==t.value?JSON.parse(t.value):t.value});var t=new s(this,v.extend([],v.fn.magicSuggest.defaults,i,n));e.data("magicSuggest",t),t.container.data("magicSuggest",t),t.input.attr("placeholder",i.placeholder)}}),1===e.size()?e.data("magicSuggest"):e)},v.fn.magicSuggest.defaults={}}(jQuery); !function(r,h){function s(t,e){var i,s,n,a=t.nodeName.toLowerCase();return"area"===a?(s=(i=t.parentNode).name,!(!t.href||!s||"map"!==i.nodeName.toLowerCase())&&(!!(n=r("img[usemap=#"+s+"]")[0])&&o(n))):(/input|select|textarea|button|object/.test(a)?!t.disabled:"a"===a&&t.href||e)&&o(t)}function o(t){return r.expr.filters.visible(t)&&!r(t).parents().andSelf().filter(function(){return"hidden"===r.css(this,"visibility")}).length}var e,t,i=0,n=/^ui-id-\d+$/;(r.ui=r.ui||{},r.ui.version)||(r.extend(r.ui,{version:"1.9.2",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}}),r.fn.extend({_focus:r.fn.focus,focus:function(e,i){return"number"==typeof e?this.each(function(){var t=this;setTimeout(function(){r(t).focus(),i&&i.call(t)},e)}):this._focus.apply(this,arguments)},scrollParent:function(){var t;return t=r.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(r.css(this,"position"))&&/(auto|scroll)/.test(r.css(this,"overflow")+r.css(this,"overflow-y")+r.css(this,"overflow-x"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(r.css(this,"overflow")+r.css(this,"overflow-y")+r.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!t.length?r(document):t},zIndex:function(t){if(t!==h)return this.css("zIndex",t);if(this.length)for(var e,i,s=r(this[0]);s.length&&s[0]!==document;){if(("absolute"===(e=s.css("position"))||"relative"===e||"fixed"===e)&&(i=parseInt(s.css("zIndex"),10),!isNaN(i)&&0!==i))return i;s=s.parent()}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++i)})},removeUniqueId:function(){return this.each(function(){n.test(this.id)&&r(this).removeAttr("id")})}}),r.extend(r.expr[":"],{data:r.expr.createPseudo?r.expr.createPseudo(function(e){return function(t){return!!r.data(t,e)}}):function(t,e,i){return!!r.data(t,i[3])},focusable:function(t){return s(t,!isNaN(r.attr(t,"tabindex")))},tabbable:function(t){var e=r.attr(t,"tabindex"),i=isNaN(e);return(i||0<=e)&&s(t,!i)}}),r(function(){var t=document.body,e=t.appendChild(e=document.createElement("div"));e.offsetHeight,r.extend(e.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0}),r.support.minHeight=100===e.offsetHeight,r.support.selectstart="onselectstart"in e,t.removeChild(e).style.display="none"}),r("").outerWidth(1).jquery||r.each(["Width","Height"],function(t,i){function s(t,e,i,s){return r.each(n,function(){e-=parseFloat(r.css(t,"padding"+this))||0,i&&(e-=parseFloat(r.css(t,"border"+this+"Width"))||0),s&&(e-=parseFloat(r.css(t,"margin"+this))||0)}),e}var n="Width"===i?["Left","Right"]:["Top","Bottom"],a=i.toLowerCase(),o={innerWidth:r.fn.innerWidth,innerHeight:r.fn.innerHeight,outerWidth:r.fn.outerWidth,outerHeight:r.fn.outerHeight};r.fn["inner"+i]=function(t){return t===h?o["inner"+i].call(this):this.each(function(){r(this).css(a,s(this,t)+"px")})},r.fn["outer"+i]=function(t,e){return"number"!=typeof t?o["outer"+i].call(this,t):this.each(function(){r(this).css(a,s(this,t,!0,e)+"px")})}}),r("").data("a-b","a").removeData("a-b").data("a-b")&&(r.fn.removeData=(e=r.fn.removeData,function(t){return arguments.length?e.call(this,r.camelCase(t)):e.call(this)})),t=/msie ([\w.]+)/.exec(navigator.userAgent.toLowerCase())||[],r.ui.ie=!!t.length,r.ui.ie6=6===parseFloat(t[1],10),r.fn.extend({disableSelection:function(){return this.bind((r.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(t){t.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),r.extend(r.ui,{plugin:{add:function(t,e,i){var s,n=r.ui[t].prototype;for(s in i)n.plugins[s]=n.plugins[s]||[],n.plugins[s].push([e,i[s]])},call:function(t,e,i){var s,n=t.plugins[e];if(n&&t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType)for(s=0;s",options:{disabled:!1,create:null},_createWidget:function(t,e){e=c(e||this.defaultElement||this)[0],this.element=c(e),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=c.widget.extend({},this.options,this._getCreateOptions(),t),this.bindings=c(),this.hoverable=c(),this.focusable=c(),e!==this&&(c.data(e,this.widgetName,this),c.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=c(e.style?e.ownerDocument:e.document||e),this.window=c(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:c.noop,_getCreateEventData:c.noop,_create:c.noop,_init:c.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(c.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:c.noop,widget:function(){return this.element},option:function(t,e){var i,s,n,a=t;if(0===arguments.length)return c.widget.extend({},this.options);if("string"==typeof t)if(a={},t=(i=t.split(".")).shift(),i.length){for(s=a[t]=c.widget.extend({},this.options[t]),n=0;n=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}(jQuery),function(b){b.widget("ui.draggable",b.ui.mouse,{version:"1.9.2",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1},_create:function(){"original"!=this.options.helper||/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative"),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._mouseInit()},_destroy:function(){this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy()},_mouseCapture:function(t){var e=this.options;return!(this.helper||e.disabled||b(t.target).is(".ui-resizable-handle"))&&(this.handle=this._getHandle(t),!!this.handle&&(b(!0===e.iframeFix?"iframe":e.iframeFix).each(function(){b('
').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(b(this).offset()).appendTo("body")}),!0))},_mouseStart:function(t){var e=this.options;return this.helper=this._createHelper(t),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),b.ui.ddmanager&&(b.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},b.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,e.cursorAt&&this._adjustOffsetFromHelper(e.cursorAt),e.containment&&this._setContainment(),!1===this._trigger("start",t)?(this._clear(),!1):(this._cacheHelperProportions(),b.ui.ddmanager&&!e.dropBehaviour&&b.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),b.ui.ddmanager&&b.ui.ddmanager.dragStart(this,t),!0)},_mouseDrag:function(t,e){if(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),!e){var i=this._uiHash();if(!1===this._trigger("drag",t,i))return this._mouseUp({}),!1;this.position=i.position}return this.options.axis&&"y"==this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"==this.options.axis||(this.helper[0].style.top=this.position.top+"px"),b.ui.ddmanager&&b.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var e=!1;b.ui.ddmanager&&!this.options.dropBehaviour&&(e=b.ui.ddmanager.drop(this,t)),this.dropped&&(e=this.dropped,this.dropped=!1);for(var i=this.element[0],s=!1;i&&(i=i.parentNode);)i==document&&(s=!0);if(!s&&"original"===this.options.helper)return!1;if("invalid"==this.options.revert&&!e||"valid"==this.options.revert&&e||!0===this.options.revert||b.isFunction(this.options.revert)&&this.options.revert.call(this.element,e)){var n=this;b(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==n._trigger("stop",t)&&n._clear()})}else!1!==this._trigger("stop",t)&&this._clear();return!1},_mouseUp:function(t){return b("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)}),b.ui.ddmanager&&b.ui.ddmanager.dragStop(this,t),b.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(t){var e=!this.options.handle||!b(this.options.handle,this.element).length;return b(this.options.handle,this.element).find("*").andSelf().each(function(){this==t.target&&(e=!0)}),e},_createHelper:function(t){var e=this.options,i=b.isFunction(e.helper)?b(e.helper.apply(this.element[0],[t])):"clone"==e.helper?this.element.clone().removeAttr("id"):this.element;return i.parents("body").length||i.appendTo("parent"==e.appendTo?this.element[0].parentNode:e.appendTo),i[0]==this.element[0]||/(fixed|absolute)/.test(i.css("position"))||i.css("position","absolute"),i},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),b.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return"absolute"==this.cssPosition&&this.scrollParent[0]!=document&&b.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&"html"==this.offsetParent[0].tagName.toLowerCase()&&b.ui.ie)&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.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 t=this.options;if("parent"==t.containment&&(t.containment=this.helper[0].parentNode),"document"!=t.containment&&"window"!=t.containment||(this.containment=["document"==t.containment?0:b(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,"document"==t.containment?0:b(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,("document"==t.containment?0:b(window).scrollLeft())+b("document"==t.containment?document:window).width()-this.helperProportions.width-this.margins.left,("document"==t.containment?0:b(window).scrollTop())+(b("document"==t.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(t.containment)||t.containment.constructor==Array)t.containment.constructor==Array&&(this.containment=t.containment);else{var e=b(t.containment),i=e[0];if(!i)return;e.offset();var s="hidden"!=b(i).css("overflow");this.containment=[(parseInt(b(i).css("borderLeftWidth"),10)||0)+(parseInt(b(i).css("paddingLeft"),10)||0),(parseInt(b(i).css("borderTopWidth"),10)||0)+(parseInt(b(i).css("paddingTop"),10)||0),(s?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(b(i).css("borderLeftWidth"),10)||0)-(parseInt(b(i).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(s?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(b(i).css("borderTopWidth"),10)||0)-(parseInt(b(i).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=e}},_convertPositionTo:function(t,e){e||(e=this.position);var i="absolute"==t?1:-1,s=(this.options,"absolute"!=this.cssPosition||this.scrollParent[0]!=document&&b.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent),n=/(html|body)/i.test(s[0].tagName);return{top:e.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"==this.cssPosition?-this.scrollParent.scrollTop():n?0:s.scrollTop())*i,left:e.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"==this.cssPosition?-this.scrollParent.scrollLeft():n?0:s.scrollLeft())*i}},_generatePosition:function(t){var e=this.options,i="absolute"!=this.cssPosition||this.scrollParent[0]!=document&&b.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,s=/(html|body)/i.test(i[0].tagName),n=t.pageX,a=t.pageY;if(this.originalPosition){var o;if(this.containment){if(this.relative_container){var r=this.relative_container.offset();o=[this.containment[0]+r.left,this.containment[1]+r.top,this.containment[2]+r.left,this.containment[3]+r.top]}else o=this.containment;t.pageX-this.offset.click.lefto[2]&&(n=o[2]+this.offset.click.left),t.pageY-this.offset.click.top>o[3]&&(a=o[3]+this.offset.click.top)}if(e.grid){var h=e.grid[1]?this.originalPageY+Math.round((a-this.originalPageY)/e.grid[1])*e.grid[1]:this.originalPageY;a=o&&(h-this.offset.click.topo[3])?h-this.offset.click.topo[2])?l-this.offset.click.left
').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("resizable",this.element.data("resizable")),this.elementIsWrapper=!0,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css({margin:this.originalElement.css("margin")}),this._proportionallyResize()),this.handles=t.handles||(d(".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){"all"==this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw");var i=this.handles.split(",");this.handles={};for(var s=0;s
');a.css({zIndex:t.zIndex}),"se"==n&&a.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[n]=".ui-resizable-"+n,this.element.append(a)}}this._renderAxis=function(t){for(var e in t=t||this.element,this.handles){if(this.handles[e].constructor==String&&(this.handles[e]=d(this.handles[e],this.element).show()),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var i=d(this.handles[e],this.element),s=0;s=/sw|ne|nw|se|n|s/.test(e)?i.outerHeight():i.outerWidth();var n=["padding",/ne|nw|n/.test(e)?"Top":/se|sw|s/.test(e)?"Bottom":/^e$/.test(e)?"Right":"Left"].join("");t.css(n,s),this._proportionallyResize()}d(this.handles[e]).length}},this._renderAxis(this.element),this._handles=d(".ui-resizable-handle",this.element).disableSelection(),this._handles.mouseover(function(){if(!e.resizing){if(this.className)var t=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);e.axis=t&&t[1]?t[1]:"se"}}),t.autoHide&&(this._handles.hide(),d(this.element).addClass("ui-resizable-autohide").mouseenter(function(){t.disabled||(d(this).removeClass("ui-resizable-autohide"),e._handles.show())}).mouseleave(function(){t.disabled||e.resizing||(d(this).addClass("ui-resizable-autohide"),e._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy();var t=function(t){d(t).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){t(this.element);var 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()}return this.originalElement.css("resize",this.originalResizeStyle),t(this.originalElement),this},_mouseCapture:function(t){var e=!1;for(var i in this.handles)d(this.handles[i])[0]==t.target&&(e=!0);return!this.options.disabled&&e},_mouseStart:function(t){var e=this.options,i=this.element.position(),s=this.element;this.resizing=!0,this.documentScroll={top:d(document).scrollTop(),left:d(document).scrollLeft()},(s.is(".ui-draggable")||/absolute/.test(s.css("position")))&&s.css({position:"absolute",top:i.top,left:i.left}),this._renderProxy();var n=p(this.helper.css("left")),a=p(this.helper.css("top"));e.containment&&(n+=d(e.containment).scrollLeft()||0,a+=d(e.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:n,top:a},this.size=this._helper?{width:s.outerWidth(),height:s.outerHeight()}:{width:s.width(),height:s.height()},this.originalSize=this._helper?{width:s.outerWidth(),height:s.outerHeight()}:{width:s.width(),height:s.height()},this.originalPosition={left:n,top:a},this.sizeDiff={width:s.outerWidth()-s.width(),height:s.outerHeight()-s.height()},this.originalMousePosition={left:t.pageX,top:t.pageY},this.aspectRatio="number"==typeof e.aspectRatio?e.aspectRatio:this.originalSize.width/this.originalSize.height||1;var o=d(".ui-resizable-"+this.axis).css("cursor");return d("body").css("cursor","auto"==o?this.axis+"-resize":o),s.addClass("ui-resizable-resizing"),this._propagate("start",t),!0},_mouseDrag:function(t){var e=this.helper,i=(this.options,this.originalMousePosition),s=this.axis,n=t.pageX-i.left||0,a=t.pageY-i.top||0,o=this._change[s];if(!o)return!1;var r=o.apply(this,[t,n,a]);return this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(r=this._updateRatio(r,t)),r=this._respectSize(r,t),this._propagate("resize",t),e.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"}),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),this._updateCache(r),this._trigger("resize",t,this.ui()),!1},_mouseStop:function(t){this.resizing=!1;var e=this.options,i=this;if(this._helper){var s=this._proportionallyResizeElements,n=s.length&&/textarea/i.test(s[0].nodeName),a=n&&d.ui.hasScroll(s[0],"left")?0:i.sizeDiff.height,o=n?0:i.sizeDiff.width,r={width:i.helper.width()-o,height:i.helper.height()-a},h=parseInt(i.element.css("left"),10)+(i.position.left-i.originalPosition.left)||null,l=parseInt(i.element.css("top"),10)+(i.position.top-i.originalPosition.top)||null;e.animate||this.element.css(d.extend(r,{top:l,left:h})),i.helper.height(i.size.height),i.helper.width(i.size.width),this._helper&&!e.animate&&this._proportionallyResize()}return d("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",t),this._helper&&this.helper.remove(),!1},_updateVirtualBoundaries:function(t){var e,i,s,n,a,o=this.options;a={minWidth:f(o.minWidth)?o.minWidth:0,maxWidth:f(o.maxWidth)?o.maxWidth:Infinity,minHeight:f(o.minHeight)?o.minHeight:0,maxHeight:f(o.maxHeight)?o.maxHeight:Infinity},(this._aspectRatio||t)&&(e=a.minHeight*this.aspectRatio,s=a.minWidth/this.aspectRatio,i=a.maxHeight*this.aspectRatio,n=a.maxWidth/this.aspectRatio,e>a.minWidth&&(a.minWidth=e),s>a.minHeight&&(a.minHeight=s),it.width,r=f(t.height)&&i.minHeight&&i.minHeight>t.height;o&&(t.width=i.minWidth),r&&(t.height=i.minHeight),n&&(t.width=i.maxWidth),a&&(t.height=i.maxHeight);var h=this.originalPosition.left+this.originalSize.width,l=this.position.top+this.size.height,c=/sw|nw|w/.test(s),u=/nw|ne|n/.test(s);o&&c&&(t.left=h-i.minWidth),n&&c&&(t.left=h-i.maxWidth),r&&u&&(t.top=l-i.minHeight),a&&u&&(t.top=l-i.maxHeight);var d=!t.width&&!t.height;return d&&!t.left&&t.top?t.top=null:d&&!t.top&&t.left&&(t.left=null),t},_proportionallyResize:function(){this.options;if(this._proportionallyResizeElements.length)for(var t=this.helper||this.element,e=0;e
');var i=d.ui.ie6?1:0,s=d.ui.ie6?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+s,height:this.element.outerHeight()+s,position:"absolute",left:this.elementOffset.left-i+"px",top:this.elementOffset.top-i+"px",zIndex:++e.zIndex}),this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){this.options;var i=this.originalSize;return{left:this.originalPosition.left+e,width:i.width-e}},n:function(t,e,i){this.options;var s=this.originalSize;return{top:this.originalPosition.top+i,height:s.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(t,e,i){return d.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,e,i]))},sw:function(t,e,i){return d.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,e,i]))},ne:function(t,e,i){return d.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,e,i]))},nw:function(t,e,i){return d.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,e,i]))}},_propagate:function(t,e){d.ui.plugin.call(this,t,[e,this.ui()]),"resize"!=t&&this._trigger(t,e,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}}}),d.ui.plugin.add("resizable","alsoResize",{start:function(){var t=d(this).data("resizable").options,e=function(t){d(t).each(function(){var t=d(this);t.data("resizable-alsoresize",{width:parseInt(t.width(),10),height:parseInt(t.height(),10),left:parseInt(t.css("left"),10),top:parseInt(t.css("top"),10)})})};"object"!=typeof t.alsoResize||t.alsoResize.parentNode?e(t.alsoResize):t.alsoResize.length?(t.alsoResize=t.alsoResize[0],e(t.alsoResize)):d.each(t.alsoResize,function(t){e(t)})},resize:function(t,a){var e=d(this).data("resizable"),i=e.options,s=e.originalSize,n=e.originalPosition,o={height:e.size.height-s.height||0,width:e.size.width-s.width||0,top:e.position.top-n.top||0,left:e.position.left-n.left||0},r=function(t,i){d(t).each(function(){var t=d(this),s=d(this).data("resizable-alsoresize"),n={},e=i&&i.length?i:t.parents(a.originalElement[0]).length?["width","height"]:["width","height","top","left"];d.each(e,function(t,e){var i=(s[e]||0)+(o[e]||0);i&&0<=i&&(n[e]=i||null)}),t.css(n)})};"object"!=typeof i.alsoResize||i.alsoResize.nodeType?r(i.alsoResize):d.each(i.alsoResize,function(t,e){r(t,e)})},stop:function(){d(this).removeData("resizable-alsoresize")}}),d.ui.plugin.add("resizable","animate",{stop:function(e){var i=d(this).data("resizable"),t=i.options,s=i._proportionallyResizeElements,n=s.length&&/textarea/i.test(s[0].nodeName),a=n&&d.ui.hasScroll(s[0],"left")?0:i.sizeDiff.height,o=n?0:i.sizeDiff.width,r={width:i.size.width-o,height:i.size.height-a},h=parseInt(i.element.css("left"),10)+(i.position.left-i.originalPosition.left)||null,l=parseInt(i.element.css("top"),10)+(i.position.top-i.originalPosition.top)||null;i.element.animate(d.extend(r,l&&h?{top:l,left:h}:{}),{duration:t.animateDuration,easing:t.animateEasing,step:function(){var t={width:parseInt(i.element.css("width"),10),height:parseInt(i.element.css("height"),10),top:parseInt(i.element.css("top"),10),left:parseInt(i.element.css("left"),10)};s&&s.length&&d(s[0]).css({width:t.width,height:t.height}),i._updateCache(t),i._propagate("resize",e)}})}}),d.ui.plugin.add("resizable","containment",{start:function(){var t=d(this).data("resizable"),e=t.options,i=t.element,s=e.containment,n=s instanceof d?s.get(0):/parent/.test(s)?i.parent().get(0):s;if(n)if(t.containerElement=d(n),/document/.test(s)||s==document)t.containerOffset={left:0,top:0},t.containerPosition={left:0,top:0},t.parentData={element:d(document),left:0,top:0,width:d(document).width(),height:d(document).height()||document.body.parentNode.scrollHeight};else{var a=d(n),o=[];d(["Top","Right","Left","Bottom"]).each(function(t,e){o[t]=p(a.css("padding"+e))}),t.containerOffset=a.offset(),t.containerPosition=a.position(),t.containerSize={height:a.innerHeight()-o[3],width:a.innerWidth()-o[1]};var r=t.containerOffset,h=t.containerSize.height,l=t.containerSize.width,c=d.ui.hasScroll(n,"left")?n.scrollWidth:l,u=d.ui.hasScroll(n)?n.scrollHeight:h;t.parentData={element:n,left:r.left,top:r.top,width:c,height:u}}},resize:function(t){var e=d(this).data("resizable"),i=e.options,s=(e.containerSize,e.containerOffset),n=(e.size,e.position),a=e._aspectRatio||t.shiftKey,o={top:0,left:0},r=e.containerElement;r[0]!=document&&/static/.test(r.css("position"))&&(o=s),n.left<(e._helper?s.left:0)&&(e.size.width=e.size.width+(e._helper?e.position.left-s.left:e.position.left-o.left),a&&(e.size.height=e.size.width/e.aspectRatio),e.position.left=i.helper?s.left:0),n.top<(e._helper?s.top:0)&&(e.size.height=e.size.height+(e._helper?e.position.top-s.top:e.position.top),a&&(e.size.width=e.size.height*e.aspectRatio),e.position.top=e._helper?s.top:0),e.offset.left=e.parentData.left+e.position.left,e.offset.top=e.parentData.top+e.position.top;var h=Math.abs((e._helper,e.offset.left-o.left+e.sizeDiff.width)),l=Math.abs((e._helper?e.offset.top-o.top:e.offset.top-s.top)+e.sizeDiff.height),c=e.containerElement.get(0)==e.element.parent().get(0),u=/relative|absolute/.test(e.containerElement.css("position"));c&&u&&(h-=e.parentData.left),h+e.size.width>=e.parentData.width&&(e.size.width=e.parentData.width-h,a&&(e.size.height=e.size.width/e.aspectRatio)),l+e.size.height>=e.parentData.height&&(e.size.height=e.parentData.height-l,a&&(e.size.width=e.size.height*e.aspectRatio))},stop:function(){var t=d(this).data("resizable"),e=t.options,i=(t.position,t.containerOffset),s=t.containerPosition,n=t.containerElement,a=d(t.helper),o=a.offset(),r=a.outerWidth()-t.sizeDiff.width,h=a.outerHeight()-t.sizeDiff.height;t._helper&&!e.animate&&/relative/.test(n.css("position"))&&d(this).css({left:o.left-s.left-i.left,width:r,height:h}),t._helper&&!e.animate&&/static/.test(n.css("position"))&&d(this).css({left:o.left-s.left-i.left,width:r,height:h})}}),d.ui.plugin.add("resizable","ghost",{start:function(){var t=d(this).data("resizable"),e=t.options,i=t.size;t.ghost=t.originalElement.clone(),t.ghost.css({opacity:.25,display:"block",position:"relative",height:i.height,width:i.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass("string"==typeof e.ghost?e.ghost:""),t.ghost.appendTo(t.helper)},resize:function(){var t=d(this).data("resizable");t.options;t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})},stop:function(){var t=d(this).data("resizable");t.options;t.ghost&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}}),d.ui.plugin.add("resizable","grid",{resize:function(t){var e=d(this).data("resizable"),i=e.options,s=e.size,n=e.originalSize,a=e.originalPosition,o=e.axis;i._aspectRatio||t.shiftKey;i.grid="number"==typeof i.grid?[i.grid,i.grid]:i.grid;var r=Math.round((s.width-n.width)/(i.grid[0]||1))*(i.grid[0]||1),h=Math.round((s.height-n.height)/(i.grid[1]||1))*(i.grid[1]||1);/^(se|s|e)$/.test(o)?(e.size.width=n.width+r,e.size.height=n.height+h):/^(ne)$/.test(o)?(e.size.width=n.width+r,e.size.height=n.height+h,e.position.top=a.top-h):(/^(sw)$/.test(o)?(e.size.width=n.width+r,e.size.height=n.height+h):(e.size.width=n.width+r,e.size.height=n.height+h,e.position.top=a.top-h),e.position.left=a.left-r)}});var p=function(t){return parseInt(t,10)||0},f=function(t){return!isNaN(parseInt(t,10))}}(jQuery),function(l){l.widget("ui.selectable",l.ui.mouse,{version:"1.9.2",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch"},_create:function(){var t,e=this;this.element.addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){(t=l(e.options.filter,e.element[0])).addClass("ui-selectee"),t.each(function(){var t=l(this),e=t.offset();l.data(this,"selectable-item",{element:this,$element:t,left:e.left,top:e.top,right:e.left+t.outerWidth(),bottom:e.top+t.outerHeight(),startselected:!1,selected:t.hasClass("ui-selected"),selecting:t.hasClass("ui-selecting"),unselecting:t.hasClass("ui-unselecting")})})},this.refresh(),this.selectees=t.addClass("ui-selectee"),this._mouseInit(),this.helper=l("
")},_destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("ui-selectable ui-selectable-disabled"),this._mouseDestroy()},_mouseStart:function(i){var s=this;if(this.opos=[i.pageX,i.pageY],!this.options.disabled){var t=this.options;this.selectees=l(t.filter,this.element[0]),this._trigger("start",i),l(t.appendTo).append(this.helper),this.helper.css({left:i.clientX,top:i.clientY,width:0,height:0}),t.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var t=l.data(this,"selectable-item");t.startselected=!0,i.metaKey||i.ctrlKey||(t.$element.removeClass("ui-selected"),t.selected=!1,t.$element.addClass("ui-unselecting"),t.unselecting=!0,s._trigger("unselecting",i,{unselecting:t.element}))}),l(i.target).parents().andSelf().each(function(){var t=l.data(this,"selectable-item");if(t){var e=!i.metaKey&&!i.ctrlKey||!t.$element.hasClass("ui-selected");return t.$element.removeClass(e?"ui-unselecting":"ui-selected").addClass(e?"ui-selecting":"ui-unselecting"),t.unselecting=!e,t.selecting=e,(t.selected=e)?s._trigger("selecting",i,{selecting:t.element}):s._trigger("unselecting",i,{unselecting:t.element}),!1}})}},_mouseDrag:function(i){var s=this;if(this.dragged=!0,!this.options.disabled){var n=this.options,a=this.opos[0],o=this.opos[1],r=i.pageX,h=i.pageY;if(rr||t.righth||t.bottoma&&t.righto&&t.bottom *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3},_create:function(){var t=this.options;this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.floating=!!this.items.length&&("x"===t.axis||/left|right/.test(this.items[0].item.css("float"))||/inline|table-cell/.test(this.items[0].item.css("display"))),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;0<=t;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_setOption:function(t,e){"disabled"===t?(this.options[t]=e,this.widget().toggleClass("ui-sortable-disabled",!!e)):d.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(t,e){var i=this;if(this.reverting)return!1;if(this.options.disabled||"static"==this.options.type)return!1;this._refreshItems(t);var s=null;d(t.target).parents().each(function(){if(d.data(this,i.widgetName+"-item")==i)return s=d(this),!1});if(d.data(t.target,i.widgetName+"-item")==i&&(s=d(t.target)),!s)return!1;if(this.options.handle&&!e){var n=!1;if(d(this.options.handle,s).find("*").andSelf().each(function(){this==t.target&&(n=!0)}),!n)return!1}return this.currentItem=s,this._removeCurrentsFromItems(),!0},_mouseStart:function(t,e,i){var s=this.options;if((this.currentContainer=this).refreshPositions(),this.helper=this._createHelper(t),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},d.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.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(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,s.cursorAt&&this._adjustOffsetFromHelper(s.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!=this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),s.containment&&this._setContainment(),s.cursor&&(d("body").css("cursor")&&(this._storedCursor=d("body").css("cursor")),d("body").css("cursor",s.cursor)),s.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",s.opacity)),s.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",s.zIndex)),this.scrollParent[0]!=document&&"HTML"!=this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!i)for(var n=this.containers.length-1;0<=n;n--)this.containers[n]._trigger("activate",t,this._uiHash(this));return d.ui.ddmanager&&(d.ui.ddmanager.current=this),d.ui.ddmanager&&!s.dropBehaviour&&d.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(t),!0},_mouseDrag:function(t){if(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll){var e=this.options,i=!1;this.scrollParent[0]!=document&&"HTML"!=this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageYt[this.floating?"width":"height"]?u:aMath.abs(c+this.items[l][r]-h)&&(u=!0,c+=this.items[l][r]),Math.abs(c-h)this.containment[2]&&(n=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3]&&(a=this.containment[3]+this.offset.click.top)),e.grid)){var o=this.originalPageY+Math.round((a-this.originalPageY)/e.grid[1])*e.grid[1];a=this.containment&&(o-this.offset.click.topthis.containment[3])?o-this.offset.click.topthis.containment[2])?r-this.offset.click.left")[0],_=c.each;i.style.cssText="background-color:rgba(1,1,1,.5)",v.rgba=-1a.mod/2?s+=a.mod:s-n>a.mod/2&&(s-=a.mod)),l[i]=d((n-s)*o+s,e)))}),this[e](l)},blend:function(t){if(1===this._rgba[3])return this;var e=this._rgba.slice(),i=e.pop(),s=f(t)._rgba;return f(c.map(e,function(t,e){return(1-i)*s[e]+i*t}))},toRgbaString:function(){var t="rgba(",e=c.map(this._rgba,function(t,e){return null==t?2
").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e={width:i.width(),height:i.height()},n=document.activeElement;try{n.id}catch(a){n=document.body}return i.wrap(t),(i[0]===n||b.contains(i[0],n))&&b(n).focus(),t=i.parent(),"static"===i.css("position")?(t.css({position:"relative"}),i.css({position:"relative"})):(b.extend(s,{position:i.css("position"),zIndex:i.css("z-index")}),b.each(["top","left","bottom","right"],function(t,e){s[e]=i.css(e),isNaN(parseInt(s[e],10))&&(s[e]="auto")}),i.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),i.css(e),t.css(s).show()},removeWrapper:function(t){var e=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),(t[0]===e||b.contains(t[0],e))&&b(e).focus()),t},setTransition:function(s,t,n,a){return a=a||{},b.each(t,function(t,e){var i=s.cssUnit(e);0 li > :first-child,> :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},_create:function(){var a=this.accordionId="ui-accordion-"+(this.element.attr("id")||++e),t=this.options;this.prevShow=this.prevHide=l(),this.element.addClass("ui-accordion ui-widget ui-helper-reset"),this.headers=this.element.find(t.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all"),this._hoverable(this.headers),this._focusable(this.headers),this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").hide(),t.collapsible||!1!==t.active&&null!=t.active||(t.active=0),t.active<0&&(t.active+=this.headers.length),this.active=this._findActive(t.active).addClass("ui-accordion-header-active ui-state-active").toggleClass("ui-corner-all ui-corner-top"),this.active.next().addClass("ui-accordion-content-active").show(),this._createIcons(),this.refresh(),this.element.attr("role","tablist"),this.headers.attr("role","tab").each(function(t){var e=l(this),i=e.attr("id"),s=e.next(),n=s.attr("id");i||(i=a+"-header-"+t,e.attr("id",i)),n||(n=a+"-panel-"+t,s.attr("id",n)),e.attr("aria-controls",n),s.attr("aria-labelledby",i)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false",tabIndex:-1}).next().attr({"aria-expanded":"false","aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true",tabIndex:0}).next().attr({"aria-expanded":"true","aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._on(this.headers,{keydown:"_keydown"}),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._setupEvents(t.event)},_getCreateEventData:function(){return{header:this.active,content:this.active.length?this.active.next():l()}},_createIcons:function(){var t=this.options.icons;t&&(l("").addClass("ui-accordion-header-icon ui-icon "+t.header).prependTo(this.headers),this.active.children(".ui-accordion-header-icon").removeClass(t.header).addClass(t.activeHeader),this.headers.addClass("ui-accordion-icons"))},_destroyIcons:function(){this.headers.removeClass("ui-accordion-icons").children(".ui-accordion-header-icon").remove()},_destroy:function(){var t;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role"),this.headers.removeClass("ui-accordion-header ui-accordion-header-active ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-selected").removeAttr("aria-controls").removeAttr("tabIndex").each(function(){/^ui-accordion/.test(this.id)&&this.removeAttribute("id")}),this._destroyIcons(),t=this.headers.next().css("display","").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled").each(function(){/^ui-accordion/.test(this.id)&&this.removeAttribute("id")}),"content"!==this.options.heightStyle&&t.css("height","")},_setOption:function(t,e){"active"!==t?("event"===t&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(e)),this._super(t,e),"collapsible"!==t||e||!1!==this.options.active||this._activate(0),"icons"===t&&(this._destroyIcons(),e&&this._createIcons()),"disabled"===t&&this.headers.add(this.headers.next()).toggleClass("ui-state-disabled",!!e)):this._activate(e)},_keydown:function(t){if(!t.altKey&&!t.ctrlKey){var e=l.ui.keyCode,i=this.headers.length, s=this.headers.index(t.target),n=!1;switch(t.keyCode){case e.RIGHT:case e.DOWN:n=this.headers[(s+1)%i];break;case e.LEFT:case e.UP:n=this.headers[(s-1+i)%i];break;case e.SPACE:case e.ENTER:this._eventHandler(t);break;case e.HOME:n=this.headers[0];break;case e.END:n=this.headers[i-1]}n&&(l(t.target).attr("tabIndex",-1),l(n).attr("tabIndex",0),n.focus(),t.preventDefault())}},_panelKeyDown:function(t){t.keyCode===l.ui.keyCode.UP&&t.ctrlKey&&l(t.currentTarget).prev().focus()},refresh:function(){var i,t,e=this.options.heightStyle,s=this.element.parent();"fill"===e?(l.support.minHeight||(t=s.css("overflow"),s.css("overflow","hidden")),i=s.height(),this.element.siblings(":visible").each(function(){var t=l(this),e=t.css("position");"absolute"!==e&&"fixed"!==e&&(i-=t.outerHeight(!0))}),t&&s.css("overflow",t),this.headers.each(function(){i-=l(this).outerHeight(!0)}),this.headers.next().each(function(){l(this).height(Math.max(0,i-l(this).innerHeight()+l(this).height()))}).css("overflow","auto")):"auto"===e&&(i=0,this.headers.next().each(function(){i=Math.max(i,l(this).css("height","").height())}).height(i))},_activate:function(t){var e=this._findActive(t)[0];e!==this.active[0]&&(e=e||this.active[0],this._eventHandler({target:e,currentTarget:e,preventDefault:l.noop}))},_findActive:function(t){return"number"==typeof t?this.headers.eq(t):l()},_setupEvents:function(t){var i={};t&&(l.each(t.split(" "),function(t,e){i[e]="_eventHandler"}),this._on(this.headers,i))},_eventHandler:function(t){var e=this.options,i=this.active,s=l(t.currentTarget),n=s[0]===i[0],a=n&&e.collapsible,o=a?l():s.next(),r=i.next(),h={oldHeader:i,oldPanel:r,newHeader:a?l():s,newPanel:o};t.preventDefault(),n&&!e.collapsible||!1===this._trigger("beforeActivate",t,h)||(e.active=!a&&this.headers.index(s),this.active=n?l():s,this._toggle(h),i.removeClass("ui-accordion-header-active ui-state-active"),e.icons&&i.children(".ui-accordion-header-icon").removeClass(e.icons.activeHeader).addClass(e.icons.header),n||(s.removeClass("ui-corner-all").addClass("ui-accordion-header-active ui-state-active ui-corner-top"),e.icons&&s.children(".ui-accordion-header-icon").removeClass(e.icons.header).addClass(e.icons.activeHeader),s.next().addClass("ui-accordion-content-active")))},_toggle:function(t){var e=t.newPanel,i=this.prevShow.length?this.prevShow:t.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=e,this.prevHide=i,this.options.animate?this._animate(e,i,t):(i.hide(),e.show(),this._toggleComplete(t)),i.attr({"aria-expanded":"false","aria-hidden":"true"}),i.prev().attr("aria-selected","false"),e.length&&i.length?i.prev().attr("tabIndex",-1):e.length&&this.headers.filter(function(){return 0===l(this).attr("tabIndex")}).attr("tabIndex",-1),e.attr({"aria-expanded":"true","aria-hidden":"false"}).prev().attr({"aria-selected":"true",tabIndex:0})},_animate:function(t,i,e){var s,n,a,o=this,r=0,h=t.length&&(!i.length||t.index()",options:{appendTo:"body",autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},pending:0,_create:function(){var i,s,n;this.isMultiLine=this._isMultiLine(),this.valueMethod=this.element[this.element.is("input,textarea")?"val":"text"],this.isNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(t){if(this.element.prop("readOnly"))s=n=i=!0;else{s=n=i=!1;var e=a.ui.keyCode;switch(t.keyCode){case e.PAGE_UP:i=!0,this._move("previousPage",t);break;case e.PAGE_DOWN:i=!0,this._move("nextPage",t);break;case e.UP:i=!0,this._keyEvent("previous",t);break;case e.DOWN:i=!0,this._keyEvent("next",t);break;case e.ENTER:case e.NUMPAD_ENTER:this.menu.active&&(i=!0,t.preventDefault(),this.menu.select(t));break;case e.TAB:this.menu.active&&this.menu.select(t);break;case e.ESCAPE:this.menu.element.is(":visible")&&(this._value(this.term),this.close(t),t.preventDefault());break;default:s=!0,this._searchTimeout(t)}}},keypress:function(t){if(i)return i=!1,void t.preventDefault();if(!s){var e=a.ui.keyCode;switch(t.keyCode){case e.PAGE_UP:this._move("previousPage",t);break;case e.PAGE_DOWN:this._move("nextPage",t);break;case e.UP:this._keyEvent("previous",t);break;case e.DOWN:this._keyEvent("next",t)}}},input:function(t){if(n)return n=!1,void t.preventDefault();this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){this.cancelBlur?delete this.cancelBlur:(clearTimeout(this.searching),this.close(t),this._change(t))}}),this._initSource(),this.menu=a("
';for(var L=D?'":"",Y=0;Y<7;Y++){var B=(Y+C)%7;L+="'+I[B]+""}j+=L+"";var K=this._getDaysInMonth(f,p);f==t.selectedYear&&p==t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,K));var q=(this._getFirstDayOfMonth(f,p)-C+7)%7,Q=Math.ceil((q+K)/7),U=l&&this.maxRows>Q?this.maxRows:Q;this.maxRows=U;for(var V=this._daylightSavingAdjust(new Date(f,p,1-q)),X=0;X";var G=D?'":"";for(Y=0;Y<7;Y++){var Z=S?S.apply(t.input?t.input[0]:null,[V]):[!0,""],J=V.getMonth()!=p,tt=J&&!z||!Z[0]||u&&V"+(J&&!A?" ":tt?''+V.getDate()+"":''+V.getDate()+"")+"",V.setDate(V.getDate()+1),V=this._daylightSavingAdjust(V)}j+=G+""}11<++p&&(p=0,f++),W+=j+="
'+this._get(t,"weekHeader")+"
'+this._get(t,"calculateWeek")(V)+"
"+(l?""+(0':""):"")}N+=W}return N+=k+($.ui.ie6&&!t.inline?'':""),t._keyEvent=!1,N},_generateMonthYearHeader:function(t,e,i,s,n,a,o,r){var h=this._get(t,"changeMonth"),l=this._get(t,"changeYear"),c=this._get(t,"showMonthAfterYear"),u='
',d="";if(a||!h)d+=''+o[e]+"";else{var p=s&&s.getFullYear()==i,f=n&&n.getFullYear()==i;d+='"}if(c||(u+=d+(!a&&h&&l?"":" ")),!t.yearshtml)if(t.yearshtml="",a||!l)u+=''+i+"";else{var m=this._get(t,"yearRange").split(":"),v=(new Date).getFullYear(),_=function(t){var e=t.match(/c[+-].*/)?i+parseInt(t.substring(1),10):t.match(/[+-].*/)?v+parseInt(t,10):parseInt(t,10);return isNaN(e)?v:e},b=_(m[0]),y=Math.max(b,_(m[1]||""));for(b=s?Math.max(b,s.getFullYear()):b,y=n?Math.min(y,n.getFullYear()):y,t.yearshtml+='",u+=t.yearshtml,t.yearshtml=null}return u+=this._get(t,"yearSuffix"),c&&(u+=(!a&&h&&l?"":" ")+d),u+="
"},_adjustInstDate:function(t,e,i){var s=t.drawYear+("Y"==i?e:0),n=t.drawMonth+("M"==i?e:0),a=Math.min(t.selectedDay,this._getDaysInMonth(s,n))+("D"==i?e:0),o=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(s,n,a)));t.selectedDay=o.getDate(),t.drawMonth=t.selectedMonth=o.getMonth(),t.drawYear=t.selectedYear=o.getFullYear(),"M"!=i&&"Y"!=i||this._notifyChange(t)},_restrictMinMax:function(t,e){var i=this._getMinMaxDate(t,"min"),s=this._getMinMaxDate(t,"max"),n=i&&e=i.getTime())&&(!s||e.getTime()<=s.getTime())},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return{shortYearCutoff:e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,i,s){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);var n=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(s,i,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),n,this._getFormatConfig(t))}}),$.fn.datepicker=function(t,e){if(!this.length)return this;$.datepicker.initialized||($(document).mousedown($.datepicker._checkExternalClick).find(document.body).append($.datepicker.dpDiv),$.datepicker.initialized=!0);var i=Array.prototype.slice.call(arguments,1);return"string"!=typeof t||"isDisabled"!=t&&"getDate"!=t&&"widget"!=t?"option"==t&&2==arguments.length&&"string"==typeof e?$.datepicker["_"+t+"Datepicker"].apply($.datepicker,[this[0]].concat(i)):this.each(function(){"string"==typeof t?$.datepicker["_"+t+"Datepicker"].apply($.datepicker,[this].concat(i)):$.datepicker._attachDatepicker(this,t)}):$.datepicker["_"+t+"Datepicker"].apply($.datepicker,[this[0]].concat(i))},$.datepicker=new Datepicker,$.datepicker.initialized=!1,$.datepicker.uuid=(new Date).getTime(),$.datepicker.version="1.9.2",window["DP_jQuery_"+dpuuid]=$}(jQuery),function(h,o){var l="ui-dialog ui-widget ui-widget-content ui-corner-all ",a={buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},r={maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0};h.widget("ui.dialog",{version:"1.9.2",options:{autoOpen:!0,buttons:{},closeOnEscape:!0,closeText:"close",dialogClass:"",draggable:!0,hide:null,height:"auto",maxHeight:!1,maxWidth:!1,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(t){var e=h(this).css(t).offset().top;e<0&&h(this).css("top",t.top-e)}},resizable:!0,show:null,stack:!0,title:"",width:300,zIndex:1e3},_create:function(){this.originalTitle=this.element.attr("title"),"string"!=typeof this.originalTitle&&(this.originalTitle=""),this.oldPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.options.title=this.options.title||this.originalTitle;var n,t,e,i,s,a=this,o=this.options,r=o.title||" ";n=(this.uiDialog=h("
")).addClass(l+o.dialogClass).css({display:"none",outline:0,zIndex:o.zIndex}).attr("tabIndex",-1).keydown(function(t){o.closeOnEscape&&!t.isDefaultPrevented()&&t.keyCode&&t.keyCode===h.ui.keyCode.ESCAPE&&(a.close(t),t.preventDefault())}).mousedown(function(t){a.moveToTop(!1,t)}).appendTo("body"),this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(n),t=(this.uiDialogTitlebar=h("
")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").bind("mousedown",function(){n.focus()}).prependTo(n),e=h("").addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").click(function(t){t.preventDefault(),a.close(t)}).appendTo(t),(this.uiDialogTitlebarCloseText=h("")).addClass("ui-icon ui-icon-closethick").text(o.closeText).appendTo(e),i=h("").uniqueId().addClass("ui-dialog-title").html(r).prependTo(t),s=(this.uiDialogButtonPane=h("
")).addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),(this.uiButtonSet=h("
")).addClass("ui-dialog-buttonset").appendTo(s),n.attr({role:"dialog","aria-labelledby":i.attr("id")}),t.find("*").add(t).disableSelection(),this._hoverable(e),this._focusable(e),o.draggable&&h.fn.draggable&&this._makeDraggable(),o.resizable&&h.fn.resizable&&this._makeResizable(),this._createButtons(o.buttons),this._isOpen=!1,h.fn.bgiframe&&n.bgiframe(),this._on(n,{keydown:function(t){if(o.modal&&t.keyCode===h.ui.keyCode.TAB){var e=h(":tabbable",n),i=e.filter(":first"),s=e.filter(":last");return t.target!==s[0]||t.shiftKey?t.target===i[0]&&t.shiftKey?(s.focus(1),!1):void 0:(i.focus(1),!1)}}})},_init:function(){this.options.autoOpen&&this.open()},_destroy:function(){var t,e=this.oldPosition;this.overlay&&this.overlay.destroy(),this.uiDialog.hide(),this.element.removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body"),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),(t=e.parent.children().eq(e.index)).length&&t[0]!==this.element[0]?t.before(this.element):e.parent.append(this.element)},widget:function(){return this.uiDialog},close:function(t){var e,i,s=this;if(this._isOpen&&!1!==this._trigger("beforeClose",t))return this._isOpen=!1,this.overlay&&this.overlay.destroy(),this.options.hide?this._hide(this.uiDialog,this.options.hide,function(){s._trigger("close",t)}):(this.uiDialog.hide(),this._trigger("close",t)),h.ui.dialog.overlay.resize(),this.options.modal&&(e=0,h(".ui-dialog").each(function(){this!==s.uiDialog[0]&&(i=h(this).css("z-index"),isNaN(i)||(e=Math.max(e,i)))}),h.ui.dialog.maxZ=e),this},isOpen:function(){return this._isOpen},moveToTop:function(t,e){var i,s=this.options;return s.modal&&!t||!s.stack&&!s.modal?this._trigger("focus",e):(s.zIndex>h.ui.dialog.maxZ&&(h.ui.dialog.maxZ=s.zIndex),this.overlay&&(h.ui.dialog.maxZ+=1,h.ui.dialog.overlay.maxZ=h.ui.dialog.maxZ,this.overlay.$el.css("z-index",h.ui.dialog.overlay.maxZ)),i={scrollTop:this.element.scrollTop(),scrollLeft:this.element.scrollLeft()},h.ui.dialog.maxZ+=1,this.uiDialog.css("z-index",h.ui.dialog.maxZ),this.element.attr(i),this._trigger("focus",e),this)},open:function(){if(!this._isOpen){var t,e=this.options,i=this.uiDialog;return this._size(),this._position(e.position),i.show(e.show),this.overlay=e.modal?new h.ui.dialog.overlay(this):null,this.moveToTop(!0),(t=this.element.find(":tabbable")).length||(t=this.uiDialogButtonPane.find(":tabbable")).length||(t=i),t.eq(0).focus(),this._isOpen=!0,this._trigger("open"),this}},_createButtons:function(t){var n=this,e=!1;this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),"object"==typeof t&&null!==t&&h.each(t,function(){return!(e=!0)}),e?(h.each(t,function(t,e){var i,s;e=h.isFunction(e)?{click:e,text:t}:e,e=h.extend({type:"button"},e),s=e.click,e.click=function(){s.apply(n.element[0],arguments)},i=h("",e).appendTo(n.uiButtonSet),h.fn.button&&i.button()}),this.uiDialog.addClass("ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog)):this.uiDialog.removeClass("ui-dialog-buttons")},_makeDraggable:function(){function i(t){return{position:t.position,offset:t.offset}}var s=this,n=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(t,e){h(this).addClass("ui-dialog-dragging"),s._trigger("dragStart",t,i(e))},drag:function(t,e){s._trigger("drag",t,i(e))},stop:function(t,e){n.position=[e.position.left-s.document.scrollLeft(),e.position.top-s.document.scrollTop()],h(this).removeClass("ui-dialog-dragging"),s._trigger("dragStop",t,i(e)),h.ui.dialog.overlay.resize()}})},_makeResizable:function(t){function i(t){return{originalPosition:t.originalPosition,originalSize:t.originalSize,position:t.position,size:t.size}}t=t===o?this.options.resizable:t;var s=this,n=this.options,e=this.uiDialog.css("position"),a="string"==typeof t?t:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:n.maxWidth,maxHeight:n.maxHeight,minWidth:n.minWidth,minHeight:this._minHeight(),handles:a,start:function(t,e){h(this).addClass("ui-dialog-resizing"),s._trigger("resizeStart",t,i(e))},resize:function(t,e){s._trigger("resize",t,i(e))},stop:function(t,e){h(this).removeClass("ui-dialog-resizing"),n.height=h(this).height(),n.width=h(this).width(),s._trigger("resizeStop",t,i(e)),h.ui.dialog.overlay.resize()}}).css("position",e).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var t=this.options;return"auto"===t.height?t.minHeight:Math.min(t.minHeight,t.height)},_position:function(t){var e,i=[],s=[0,0];t?(("string"==typeof t||"object"==typeof t&&"0"in t)&&(1===(i=t.split?t.split(" "):[t[0],t[1]]).length&&(i[1]=i[0]),h.each(["left","top"],function(t,e){+i[t]===i[t]&&(s[t]=i[t],i[t]=e)}),t={my:i[0]+(s[0]<0?s[0]:"+"+s[0])+" "+i[1]+(s[1]<0?s[1]:"+"+s[1]),at:i.join(" ")}),t=h.extend({},h.ui.dialog.prototype.options.position,t)):t=h.ui.dialog.prototype.options.position,(e=this.uiDialog.is(":visible"))||this.uiDialog.show(),this.uiDialog.position(t),e||this.uiDialog.hide()},_setOptions:function(t){var i=this,s={},n=!1;h.each(t,function(t,e){i._setOption(t,e),t in a&&(n=!0),t in r&&(s[t]=e)}),n&&this._size(),this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option",s)},_setOption:function(t,e){var i,s,n=this.uiDialog;switch(t){case"buttons":this._createButtons(e);break;case"closeText": this.uiDialogTitlebarCloseText.text(""+e);break;case"dialogClass":n.removeClass(this.options.dialogClass).addClass(l+e);break;case"disabled":e?n.addClass("ui-dialog-disabled"):n.removeClass("ui-dialog-disabled");break;case"draggable":(i=n.is(":data(draggable)"))&&!e&&n.draggable("destroy"),!i&&e&&this._makeDraggable();break;case"position":this._position(e);break;case"resizable":(s=n.is(":data(resizable)"))&&!e&&n.resizable("destroy"),s&&"string"==typeof e&&n.resizable("option","handles",e),s||!1===e||this._makeResizable(e);break;case"title":h(".ui-dialog-title",this.uiDialogTitlebar).html(""+(e||" "))}this._super(t,e)},_size:function(){var t,e,i,s=this.options,n=this.uiDialog.is(":visible");this.element.show().css({width:"auto",minHeight:0,height:0}),s.minWidth>s.width&&(s.width=s.minWidth),t=this.uiDialog.css({height:"auto",width:s.width}).outerHeight(),e=Math.max(0,s.minHeight-t),"auto"===s.height?h.support.minHeight?this.element.css({minHeight:e,height:"auto"}):(this.uiDialog.show(),i=this.element.css("height","auto").height(),n||this.uiDialog.hide(),this.element.height(Math.max(i,e))):this.element.height(Math.max(s.height-t,0)),this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}}),h.extend(h.ui.dialog,{uuid:0,maxZ:0,getTitleId:function(t){var e=t.attr("id");return e||(this.uuid+=1,e=this.uuid),"ui-dialog-title-"+e},overlay:function(t){this.$el=h.ui.dialog.overlay.create(t)}}),h.extend(h.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:h.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(t){return t+".dialog-overlay"}).join(" "),create:function(i){0===this.instances.length&&(setTimeout(function(){h.ui.dialog.overlay.instances.length&&h(document).bind(h.ui.dialog.overlay.events,function(t){if(h(t.target).zIndex()").addClass("ui-widget-overlay");return h(document).bind("keydown.dialog-overlay",function(t){var e=h.ui.dialog.overlay.instances;0!==e.length&&e[e.length-1]===s&&i.options.closeOnEscape&&!t.isDefaultPrevented()&&t.keyCode&&t.keyCode===h.ui.keyCode.ESCAPE&&(i.close(t),t.preventDefault())}),s.appendTo(document.body).css({width:this.width(),height:this.height()}),h.fn.bgiframe&&s.bgiframe(),this.instances.push(s),s},destroy:function(t){var e=h.inArray(t,this.instances),i=0;-1!==e&&this.oldInstances.push(this.instances.splice(e,1)[0]),0===this.instances.length&&h([document,window]).unbind(".dialog-overlay"),t.height(0).width(0).remove(),h.each(this.instances,function(){i=Math.max(i,this.css("z-index"))}),this.maxZ=i},height:function(){var t;return h.ui.ie?(t=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight))
").css({position:"absolute",visibility:"visible",left:-a*g,top:-n*m}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:g,height:m,left:o+(p?h*g:0),top:r+(p?l*m:0),opacity:p?0:1}).animate({left:o+(p?0:h*g),top:r+(p?0:l*m),opacity:p?1:0},t.duration||500,t.easing,i)}}(jQuery),function(n){n.effects.effect.fade=function(t,e){var i=n(this),s=n.effects.setMode(i,t.mode||"toggle");i.animate({opacity:s},{queue:!1,duration:t.duration,easing:t.easing,complete:e})}}(jQuery),function(v){v.effects.effect.fold=function(t,e){var i,s,n=v(this),a=["position","top","bottom","left","right","height","width"],o=v.effects.setMode(n,t.mode||"hide"),r="show"===o,h="hide"===o,l=t.size||15,c=/([0-9]+)%/.exec(l),u=!!t.horizFirst,d=r!==u,p=d?["width","height"]:["height","width"],f=t.duration/2,g={},m={};v.effects.save(n,a),n.show(),i=v.effects.createWrapper(n).css({overflow:"hidden"}),s=d?[i.width(),i.height()]:[i.height(),i.width()],c&&(l=parseInt(c[1],10)/100*s[h?0:1]),r&&i.css(u?{height:0,width:l}:{height:l,width:0}),g[p[0]]=r?s[0]:l,m[p[1]]=r?s[1]:0,i.animate(g,f,t.easing).animate(m,f,t.easing,function(){h&&n.hide(),v.effects.restore(n,a),v.effects.removeWrapper(n),e()})}}(jQuery),function(o){o.effects.effect.highlight=function(t,e){var i=o(this),s=["backgroundImage","backgroundColor","opacity"],n=o.effects.setMode(i,t.mode||"show"),a={backgroundColor:i.css("backgroundColor")};"hide"===n&&(a.opacity=0),o.effects.save(i,s),i.show().css({backgroundImage:"none",backgroundColor:t.color||"#ffff99"}).animate(a,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){"hide"===n&&i.hide(),o.effects.restore(i,s),e()}})}}(jQuery),function(p){p.effects.effect.pulsate=function(t,e){var i,s=p(this),n=p.effects.setMode(s,t.mode||"show"),a="show"===n,o="hide"===n,r=a||"hide"===n,h=2*(t.times||5)+(r?1:0),l=t.duration/h,c=0,u=s.queue(),d=u.length;for(!a&&s.is(":visible")||(s.css("opacity",0).show(),c=1),i=1;i
').appendTo(document.body).addClass(t.className).css({top:c.top-o,left:c.left-r,height:i.innerHeight(),width:i.innerWidth(),position:n?"fixed":"absolute"}).animate(l,t.duration,t.easing,function(){u.remove(),e()})}}(jQuery),function(h){var i=!1;h.widget("ui.menu",{version:"1.9.2",defaultElement:"
    ",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content ui-corner-all").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}).bind("click"+this.eventNamespace,h.proxy(function(t){this.options.disabled&&t.preventDefault()},this)),this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item > a":function(t){t.preventDefault()},"click .ui-state-disabled > a":function(t){t.preventDefault()},"click .ui-menu-item:has(a)":function(t){var e=h(t.target).closest(".ui-menu-item");!i&&e.not(".ui-state-disabled").length&&(i=!0,this.select(t),e.has(".ui-menu").length?this.expand(t):this.element.is(":focus")||(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(t){var e=h(t.currentTarget);e.siblings().children(".ui-state-active").removeClass("ui-state-active"),this.focus(t,e)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this.element.children(".ui-menu-item").eq(0);e||this.focus(t,i)},blur:function(t){this._delay(function(){h.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(t)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){h(t.target).closest(".ui-menu").length||this.collapseAll(t),i=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").andSelf().removeClass("ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show(),this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").children("a").removeUniqueId().removeClass("ui-corner-all ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var t=h(this);t.data("ui-menu-submenu-carat")&&t.remove()}),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(t){function e(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}var i,s,n,a,o,r=!0;switch(t.keyCode){case h.ui.keyCode.PAGE_UP:this.previousPage(t);break;case h.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case h.ui.keyCode.HOME:this._move("first","first",t);break;case h.ui.keyCode.END:this._move("last","last",t);break;case h.ui.keyCode.UP:this.previous(t);break;case h.ui.keyCode.DOWN:this.next(t);break;case h.ui.keyCode.LEFT:this.collapse(t);break;case h.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case h.ui.keyCode.ENTER:case h.ui.keyCode.SPACE:this._activate(t);break;case h.ui.keyCode.ESCAPE:this.collapse(t);break;default:r=!1,s=this.previousFilter||"",n=String.fromCharCode(t.keyCode),a=!1,clearTimeout(this.filterTimer),n===s?a=!0:n=s+n,o=new RegExp("^"+e(n),"i"),i=this.activeMenu.children(".ui-menu-item").filter(function(){return o.test(h(this).children("a").text())}),(i=a&&-1!==i.index(this.active.next())?this.active.nextAll(".ui-menu-item"):i).length||(n=String.fromCharCode(t.keyCode),o=new RegExp("^"+e(n),"i"),i=this.activeMenu.children(".ui-menu-item").filter(function(){return o.test(h(this).children("a").text())})),i.length?(this.focus(t,i),1").addClass("ui-menu-icon ui-icon "+s).data("ui-menu-submenu-carat",!0);e.attr("aria-haspopup","true").prepend(i),t.attr("aria-labelledby",e.attr("id"))}),(t=e.add(this.element)).children(":not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","presentation").children("a").uniqueId().addClass("ui-corner-all").attr({tabIndex:-1,role:this._itemRole()}),t.children(":not(.ui-menu-item)").each(function(){var t=h(this);/[^\-\u2014\u2013\s]/.test(t.text())||t.addClass("ui-widget-content ui-menu-divider")}),t.children(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!h.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},focus:function(t,e){var i,s;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),s=this.active.children("a").addClass("ui-state-focus"),this.options.role&&this.element.attr("aria-activedescendant",s.attr("id")),this.active.parent().closest(".ui-menu-item").children("a:first").addClass("ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(i=e.children(".ui-menu")).length&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(t){var e,i,s,n,a,o;this._hasScroll()&&(e=parseFloat(h.css(this.activeMenu[0],"borderTopWidth"))||0,i=parseFloat(h.css(this.activeMenu[0],"paddingTop"))||0,s=t.offset().top-this.activeMenu.offset().top-e-i,n=this.activeMenu.scrollTop(),a=this.activeMenu.height(),o=t.height(),s<0?this.activeMenu.scrollTop(n+s):a
"),s=i.children()[0];return x("body").append(i),t=s.offsetWidth,i.css("overflow","scroll"),t===(e=s.offsetWidth)&&(e=i[0].clientWidth),i.remove(),a=t-e},getScrollInfo:function(t){var e=t.isWindow?"":t.element.css("overflow-x"),i=t.isWindow?"":t.element.css("overflow-y"),s="scroll"===e||"auto"===e&&t.widthD(P(s),P(n))?a.important="horizontal":a.important="vertical",u.using.call(this,t,a)}),o.offset(x.extend(l,{using:t}))})},x.ui.position={fit:{left:function(t,e){var i,s=e.within,n=s.isWindow?s.scrollLeft:s.offset.left,a=s.width,o=t.left-e.collisionPosition.marginLeft,r=n-o,h=o+e.collisionWidth-a-n;e.collisionWidth>a?0a?0l&&(s<0||sc&&(0
").appendTo(this.element),this.oldValue=this._value(),this._refreshValue()},_destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.valueDiv.remove()},value:function(t){return t===e?this._value():(this._setOption("value",t),this)},_setOption:function(t,e){"value"===t&&(this.options.value=e,this._refreshValue(),this._value()===this.options.max&&this._trigger("complete")),this._super(t,e)},_value:function(){var t=this.options.value;return"number"!=typeof t&&(t=0),Math.min(this.options.max,Math.max(this.min,t))},_percentage:function(){return 100*this._value()/this.options.max},_refreshValue:function(){var t=this.value(),e=this._percentage();this.oldValue!==t&&(this.oldValue=t,this._trigger("change")),this.valueDiv.toggle(t>this.min).toggleClass("ui-corner-right",t===this.options.max).width(e.toFixed(0)+"%"),this.element.attr("aria-valuenow",t)}})}(jQuery),function(c){var o=5;c.widget("ui.slider",c.ui.mouse,{version:"1.9.2",widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null},_create:function(){var t,e,i=this.options,s=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),n="",a=[];for(this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this.element.addClass( "ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all"+(i.disabled?" ui-slider-disabled ui-disabled":"")),this.range=c([]),i.range&&(!0===i.range&&(i.values||(i.values=[this._valueMin(),this._valueMin()]),i.values.length&&2!==i.values.length&&(i.values=[i.values[0],i.values[0]])),this.range=c("
").appendTo(this.element).addClass("ui-slider-range ui-widget-header"+("min"===i.range||"max"===i.range?" ui-slider-range-"+i.range:""))),e=i.values&&i.values.length||1,t=s.length;t=this._valueMax())return this._valueMax();var e=0=e&&(s+=0",widgetEventPrefix:"spin",options:{culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var s={},n=this.element;return a.each(["min","max","step"],function(t,e){var i=n.attr(e);i!==undefined&&i.length&&(s[e]=i)}),s},_events:{keydown:function(t){this._start(t)&&this._keydown(t)&&t.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(t){this.cancelBlur?delete this.cancelBlur:(this._refresh(),this.previous!==this.element.val()&&this._trigger("change",t))},mousewheel:function(t,e){if(e){if(!this.spinning&&!this._start(t))return!1;this._spin((0Math.ceil(.5*t.height())&&0"},_buttonHtml:function(){return""},_start:function(t){return!(!this.spinning&&!1===this._trigger("start",t))&&(this.counter||(this.counter=1),this.spinning=!0)},_repeat:function(t,e,i){t=t||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,e,i)},t),this._spin(e*this.options.step,i)},_spin:function(t,e){var i=this.value()||0;this.counter||(this.counter=1),i=this._adjustValue(i+t*this._increment(this.counter)),this.spinning&&!1===this._trigger("spin",e,{value:i})||(this._value(i),this.counter++)},_increment:function(t){var e=this.options.incremental;return e?a.isFunction(e)?e(t):Math.floor(t*t*t/5e4-t*t/500+17*t/200+1):1},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&&(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=t.toString(),i=e.indexOf(".");return-1===i?0:e.length-i-1},_adjustValue:function(t){var e,i,s=this.options;return i=t-(e=null!==s.min?s.min:0),t=e+(i=Math.round(i/s.step)*s.step),t=parseFloat(t.toFixed(this._precision())),null!==s.max&&t>s.max?s.max:null!==s.min&&t li","mousedown"+this.eventNamespace,function(t){l(this).is(".ui-state-disabled")&&t.preventDefault()}).delegate(".ui-tabs-anchor","focus"+this.eventNamespace,function(){l(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this._processTabs(),null===i&&(s&&this.tabs.each(function(t,e){if(l(e).attr("aria-controls")===s)return i=t,!1}),null===i&&(i=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),null!==i&&-1!==i||(i=!!this.tabs.length&&0)),!1!==i&&-1===(i=this.tabs.index(this.tabs.eq(i)))&&(i=!t.collapsible&&0),t.active=i,!t.collapsible&&!1===t.active&&this.anchors.length&&(t.active=0),l.isArray(t.disabled)&&(t.disabled=l.unique(t.disabled.concat(l.map(this.tabs.filter(".ui-state-disabled"),function(t){return e.tabs.index(t)}))).sort()),!1!==this.options.active&&this.anchors.length?this.active=this._findActive(this.options.active):this.active=l(),this._refresh(),this.active.length&&this.load(t.active)},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):l()}},_tabKeydown:function(t){var e=l(this.document[0].activeElement).closest("li"),i=this.tabs.index(e),s=!0;if(!this._handlePageNav(t)){switch(t.keyCode){case l.ui.keyCode.RIGHT:case l.ui.keyCode.DOWN:i++;break;case l.ui.keyCode.UP:case l.ui.keyCode.LEFT:s=!1,i--;break;case l.ui.keyCode.END:i=this.anchors.length-1;break;case l.ui.keyCode.HOME:i=0;break;case l.ui.keyCode.SPACE:return t.preventDefault(),clearTimeout(this.activating),void this._activate(i);case l.ui.keyCode.ENTER:return t.preventDefault(),clearTimeout(this.activating),void this._activate(i!==this.options.active&&i);default:return}t.preventDefault(),clearTimeout(this.activating),i=this._focusNextTab(i,s),t.ctrlKey||(e.attr("aria-selected","false"),this.tabs.eq(i).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",i)},this.delay))}},_panelKeydown:function(t){this._handlePageNav(t)||t.ctrlKey&&t.keyCode===l.ui.keyCode.UP&&(t.preventDefault(),this.active.focus())},_handlePageNav:function(t){return t.altKey&&t.keyCode===l.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):t.altKey&&t.keyCode===l.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(t,e){function i(){return s?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var t=this.options,e=this.tablist.children(":has(a[href])");t.disabled=l.map(e.filter(".ui-state-disabled"),function(t){return e.index(t)}),this._processTabs(),!1!==t.active&&this.anchors.length?this.active.length&&!l.contains(this.tablist[0],this.active[0])?this.tabs.length===t.disabled.length?(t.active=!1,this.active=l()):this._activate(this._findNextTab(Math.max(0,t.active-1),!1)):t.active=this.tabs.index(this.active):(t.active=!1,this.active=l()),this._refresh()},_refresh:function(){this._setupDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-expanded":"false","aria-hidden":"true"}),this.active.length?(this.active.addClass("ui-tabs-active ui-state-active").attr({"aria-selected":"true",tabIndex:0}),this._getPanelForTab(this.active).show().attr({"aria-expanded":"true","aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var h=this;this.tablist=this._getList().addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").attr("role","tablist"),this.tabs=this.tablist.find("> li:has(a[href])").addClass("ui-state-default ui-corner-top").attr({role:"tab",tabIndex:-1}),this.anchors=this.tabs.map(function(){return l("a",this)[0]}).addClass("ui-tabs-anchor").attr({role:"presentation",tabIndex:-1}),this.panels=l(),this.anchors.each(function(t,e){var i,s,n,a=l(e).uniqueId().attr("id"),o=l(e).closest("li"),r=o.attr("aria-controls");c(e)?(i=e.hash,s=h.element.find(h._sanitizeSelector(i))):(i="#"+(n=h._tabId(o)),(s=h.element.find(i)).length||(s=h._createPanel(n)).insertAfter(h.panels[t-1]||h.tablist),s.attr("aria-live","polite")),s.length&&(h.panels=h.panels.add(s)),r&&o.data("ui-tabs-aria-controls",r),o.attr({"aria-controls":i.substring(1),"aria-labelledby":a}),s.attr("aria-labelledby",a)}),this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").attr("role","tabpanel")},_getList:function(){return this.element.find("ol,ul").eq(0)},_createPanel:function(t){return l("
").attr("id",t).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)},_setupDisabled:function(t){l.isArray(t)&&(t.length?t.length===this.anchors.length&&(t=!0):t=!1);for(var e,i=0;e=this.tabs[i];i++)!0===t||-1!==l.inArray(i,t)?l(e).addClass("ui-state-disabled").attr("aria-disabled","true"):l(e).removeClass("ui-state-disabled").removeAttr("aria-disabled");this.options.disabled=t},_setupEvents:function(t){var i={click:function(t){t.preventDefault()}};t&&l.each(t.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(this.anchors,i),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(t){var i,e,s=this.element.parent();"fill"===t?(l.support.minHeight||(e=s.css("overflow"),s.css("overflow","hidden")),i=s.height(),this.element.siblings(":visible").each(function(){var t=l(this),e=t.css("position");"absolute"!==e&&"fixed"!==e&&(i-=t.outerHeight(!0))}),e&&s.css("overflow",e),this.element.children().not(this.panels).each(function(){i-=l(this).outerHeight(!0)}),this.panels.each(function(){l(this).height(Math.max(0,i-l(this).innerHeight()+l(this).height()))}).css("overflow","auto")):"auto"===t&&(i=0,this.panels.each(function(){i=Math.max(i,l(this).height("").height())}).height(i))},_eventHandler:function(t){var e=this.options,i=this.active,s=l(t.currentTarget).closest("li"),n=s[0]===i[0],a=n&&e.collapsible,o=a?l():this._getPanelForTab(s),r=i.length?this._getPanelForTab(i):l(),h={oldTab:i,oldPanel:r,newTab:a?l():s,newPanel:o};t.preventDefault(),s.hasClass("ui-state-disabled")||s.hasClass("ui-tabs-loading")||this.running||n&&!e.collapsible||!1===this._trigger("beforeActivate",t,h)||(e.active=!a&&this.tabs.index(s),this.active=n?l():s,this.xhr&&this.xhr.abort(),r.length||o.length||l.error("jQuery UI Tabs: Mismatching fragment identifier."),o.length&&this.load(this.tabs.index(s),t),this._toggle(t,h))},_toggle:function(t,e){function i(){n.running=!1,n._trigger("activate",t,e)}function s(){e.newTab.closest("li").addClass("ui-tabs-active ui-state-active"),a.length&&n.options.show?n._show(a,n.options.show,i):(a.show(),i())}var n=this,a=e.newPanel,o=e.oldPanel;this.running=!0,o.length&&this.options.hide?this._hide(o,this.options.hide,function(){e.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),s()}):(e.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),o.hide(),s()),o.attr({"aria-expanded":"false","aria-hidden":"true"}),e.oldTab.attr("aria-selected","false"),a.length&&o.length?e.oldTab.attr("tabIndex",-1):a.length&&this.tabs.filter(function(){return 0===l(this).attr("tabIndex")}).attr("tabIndex",-1),a.attr({"aria-expanded":"true","aria-hidden":"false"}),e.newTab.attr({"aria-selected":"true",tabIndex:0})},_activate:function(t){var e,i=this._findActive(t);i[0]!==this.active[0]&&(i.length||(i=this.active),e=i.find(".ui-tabs-anchor")[0],this._eventHandler({target:e,currentTarget:e,preventDefault:l.noop}))},_findActive:function(t){return!1===t?l():this.tabs.eq(t)},_getIndex:function(t){return"string"==typeof t&&(t=this.anchors.index(this.anchors.filter("[href$='"+t+"']"))),t},_destroy:function(){this.xhr&&this.xhr.abort(),this.element.removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible"),this.tablist.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").removeAttr("role"),this.anchors.removeClass("ui-tabs-anchor").removeAttr("role").removeAttr("tabIndex").removeData("href.tabs").removeData("load.tabs").removeUniqueId(),this.tabs.add(this.panels).each(function(){l.data(this,"ui-tabs-destroy")?l(this).remove():l(this).removeClass("ui-state-default ui-state-active ui-state-disabled ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel").removeAttr("tabIndex").removeAttr("aria-live").removeAttr("aria-busy").removeAttr("aria-selected").removeAttr("aria-labelledby").removeAttr("aria-hidden").removeAttr("aria-expanded").removeAttr("role")}),this.tabs.each(function(){var t=l(this),e=t.data("ui-tabs-aria-controls");e?t.attr("aria-controls",e):t.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(i){var t=this.options.disabled;!1!==t&&(i===h?t=!1:(i=this._getIndex(i),t=l.isArray(t)?l.map(t,function(t){return t!==i?t:null}):l.map(this.tabs,function(t,e){return e!==i?e:null})),this._setupDisabled(t))},disable:function(t){var e=this.options.disabled;if(!0!==e){if(t===h)e=!0;else{if(t=this._getIndex(t),-1!==l.inArray(t,e))return;e=l.isArray(e)?l.merge([t],e).sort():[t]}this._setupDisabled(e)}},load:function(t,e){t=this._getIndex(t);var i=this,s=this.tabs.eq(t),n=s.find(".ui-tabs-anchor"),a=this._getPanelForTab(s),o={tab:s,panel:a};c(n[0])||(this.xhr=l.ajax(this._ajaxSettings(n,e,o)),this.xhr&&"canceled"!==this.xhr.statusText&&(s.addClass("ui-tabs-loading"),a.attr("aria-busy","true"),this.xhr.success(function(t){setTimeout(function(){a.html(t),i._trigger("load",e,o)},1)}).complete(function(t,e){setTimeout(function(){"abort"===e&&i.panels.stop(!1,!0),s.removeClass("ui-tabs-loading"),a.removeAttr("aria-busy"),t===i.xhr&&delete i.xhr},1)})))},_ajaxSettings:function(t,i,s){var n=this;return{url:t.attr("href"),beforeSend:function(t,e){return n._trigger("beforeLoad",i,l.extend({jqXHR:t,ajaxSettings:e},s))}}},_getPanelForTab:function(t){var e=l(t).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+e))}}),!1!==l.uiBackCompat&&(l.ui.tabs.prototype._ui=function(t,e){return{tab:t,panel:e,index:this.anchors.index(t)}},l.widget("ui.tabs",l.ui.tabs,{url:function(t,e){this.anchors.eq(t).attr("href",e)}}),l.widget("ui.tabs",l.ui.tabs,{options:{ajaxOptions:null,cache:!1},_create:function(){this._super();var i=this;this._on({tabsbeforeload:function(t,e){l.data(e.tab[0],"cache.tabs")?t.preventDefault():e.jqXHR.success(function(){i.options.cache&&l.data(e.tab[0],"cache.tabs",!0)})}})},_ajaxSettings:function(t,e,s){var n=this.options.ajaxOptions;return l.extend({},n,{error:function(t,e){try{n.error(t,e,s.tab.closest("li").index(),s.tab[0])}catch(i){}}},this._superApply(arguments))},_setOption:function(t,e){"cache"===t&&!1===e&&this.anchors.removeData("cache.tabs"),this._super(t,e)},_destroy:function(){this.anchors.removeData("cache.tabs"),this._super()},url:function(t){this.anchors.eq(t).removeData("cache.tabs"),this._superApply(arguments)}}),l.widget("ui.tabs",l.ui.tabs,{abort:function(){this.xhr&&this.xhr.abort()}}),l.widget("ui.tabs",l.ui.tabs,{options:{spinner:"Loading…"},_create:function(){this._super(),this._on({tabsbeforeload:function(t,e){if(t.target===this.element[0]&&this.options.spinner){var i=e.tab.find("span"),s=i.html();i.html(this.options.spinner),e.jqXHR.complete(function(){i.html(s)})}}})}}),l.widget("ui.tabs",l.ui.tabs,{options:{enable:null,disable:null},enable:function(t){var e,i=this.options;(t&&!0===i.disabled||l.isArray(i.disabled)&&-1!==l.inArray(t,i.disabled))&&(e=!0),this._superApply(arguments),e&&this._trigger("enable",null,this._ui(this.anchors[t],this.panels[t]))},disable:function(t){var e,i=this.options;(t&&!1===i.disabled||l.isArray(i.disabled)&&-1===l.inArray(t,i.disabled))&&(e=!0),this._superApply(arguments),e&&this._trigger("disable",null,this._ui(this.anchors[t],this.panels[t]))}}),l.widget("ui.tabs",l.ui.tabs,{options:{add:null,remove:null,tabTemplate:"
  • #{label}
  • "},add:function(t,e,i){i===h&&(i=this.anchors.length);var s,n,a=this.options,o=l(a.tabTemplate.replace(/#\{href\}/g,t).replace(/#\{label\}/g,e)),r=t.indexOf("#")?this._tabId(o):t.replace("#","");return o.addClass("ui-state-default ui-corner-top").data("ui-tabs-destroy",!0),o.attr("aria-controls",r),s=i>=this.tabs.length,(n=this.element.find("#"+r)).length||(n=this._createPanel(r),s?0
    "},_createPanel:function(t){return l(this.options.panelTemplate).attr("id",t).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)}}),l.widget("ui.tabs",l.ui.tabs,{_create:function(){var t=this.options;null===t.active&&t.selected!==h&&(t.active=-1!==t.selected&&t.selected),this._super(),t.selected=t.active,!1===t.selected&&(t.selected=-1)},_setOption:function(t,e){if("selected"!==t)return this._super(t,e);var i=this.options;this._super("active",-1!==e&&e),i.selected=i.active,!1===i.selected&&(i.selected=-1)},_eventHandler:function(){this._superApply(arguments),this.options.selected=this.options.active,!1===this.options.selected&&(this.options.selected=-1)}}),l.widget("ui.tabs",l.ui.tabs,{options:{show:null,select:null},_create:function(){this._super(),!1!==this.options.active&&this._trigger("show",null,this._ui(this.active.find(".ui-tabs-anchor")[0],this._getPanelForTab(this.active)[0]))},_trigger:function(t,e,i){var s,n,a=this._superApply(arguments);return!!a&&("beforeActivate"===t?(s=i.newTab.length?i.newTab:i.oldTab,n=i.newPanel.length?i.newPanel:i.oldPanel,a=this._super("select",e,{tab:s.find(".ui-tabs-anchor")[0],panel:n[0],index:s.closest("li").index()})):"activate"===t&&i.newTab.length&&(a=this._super("show",e,{tab:i.newTab.find(".ui-tabs-anchor")[0],panel:i.newPanel[0],index:i.newTab.closest("li").index()})),a)}}),l.widget("ui.tabs",l.ui.tabs,{select:function(t){if(-1===(t=this._getIndex(t))){if(!this.options.collapsible||-1===this.options.selected)return;t=this.options.selected}this.anchors.eq(t).trigger(this.options.event+this.eventNamespace)}}),s=0,l.widget("ui.tabs",l.ui.tabs,{options:{cookie:null},_create:function(){var t,e=this.options;null==e.active&&e.cookie&&(-1===(t=parseInt(this._cookie(),10))&&(t=!1),e.active=t),this._super()},_cookie:function(t){var e=[this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+ ++s)];return arguments.length&&(e.push(!1===t?-1:t),e.push(this.options.cookie)),l.cookie.apply(null,e)},_refresh:function(){this._super(),this.options.cookie&&this._cookie(this.options.active,this.options.cookie)},_eventHandler:function(){this._superApply(arguments),this.options.cookie&&this._cookie( this.options.active,this.options.cookie)},_destroy:function(){this._super(),this.options.cookie&&this._cookie(null,this.options.cookie)}}),l.widget("ui.tabs",l.ui.tabs,{_trigger:function(t,e,i){var s=l.extend({},i);return"load"===t&&(s.panel=s.panel[0],s.tab=s.tab.find(".ui-tabs-anchor")[0]),this._super(t,e,s)}}),l.widget("ui.tabs",l.ui.tabs,{options:{fx:null},_getFx:function(){var t,e,i=this.options.fx;return i&&(l.isArray(i)?(t=i[0],e=i[1]):t=e=i),i?{show:e,hide:t}:null},_toggle:function(t,e){function i(){n.running=!1,n._trigger("activate",t,e)}function s(){e.newTab.closest("li").addClass("ui-tabs-active ui-state-active"),a.length&&r.show?a.animate(r.show,r.show.duration,function(){i()}):(a.show(),i())}var n=this,a=e.newPanel,o=e.oldPanel,r=this._getFx();if(!r)return this._super(t,e);n.running=!0,o.length&&r.hide?o.animate(r.hide,r.hide.duration,function(){e.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),s()}):(e.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),o.hide(),s())}}))}(jQuery),function(h){function l(t,e){var i=(t.attr("aria-describedby")||"").split(/\s+/);i.push(e),t.data("ui-tooltip-id",e).attr("aria-describedby",h.trim(i.join(" ")))}function n(t){var e=t.data("ui-tooltip-id"),i=(t.attr("aria-describedby")||"").split(/\s+/),s=h.inArray(e,i);-1!==s&&i.splice(s,1),t.removeData("ui-tooltip-id"),(i=h.trim(i.join(" ")))?t.attr("aria-describedby",i):t.removeAttr("aria-describedby")}var s=0;h.widget("ui.tooltip",{version:"1.9.2",options:{content:function(){return h(this).attr("title")},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,tooltipClass:null,track:!1,close:null,open:null},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.options.disabled&&this._disable()},_setOption:function(t,e){var i=this;if("disabled"===t)return this[e?"_disable":"_enable"](),void(this.options[t]=e);this._super(t,e),"content"===t&&h.each(this.tooltips,function(t,e){i._updateContent(e)})},_disable:function(){var s=this;h.each(this.tooltips,function(t,e){var i=h.Event("blur");i.target=i.currentTarget=e[0],s.close(i,!0)}),this.element.find(this.options.items).andSelf().each(function(){var t=h(this);t.is("[title]")&&t.data("ui-tooltip-title",t.attr("title")).attr("title","")})},_enable:function(){this.element.find(this.options.items).andSelf().each(function(){var t=h(this);t.data("ui-tooltip-title")&&t.attr("title",t.data("ui-tooltip-title"))})},open:function(t){var i=this,e=h(t?t.target:this.element).closest(this.options.items);e.length&&!e.data("ui-tooltip-id")&&(e.attr("title")&&e.data("ui-tooltip-title",e.attr("title")),e.data("ui-tooltip-open",!0),t&&"mouseover"===t.type&&e.parents().each(function(){var t,e=h(this);e.data("ui-tooltip-open")&&((t=h.Event("blur")).target=t.currentTarget=this,i.close(t,!0)),e.attr("title")&&(e.uniqueId(),i.parents[this.id]={element:this,title:e.attr("title")},e.attr("title",""))}),this._updateContent(e,t))},_updateContent:function(e,i){var t,s=this.options.content,n=this,a=i?i.type:null;if("string"==typeof s)return this._open(i,e,s);(t=s.call(e[0],function(t){e.data("ui-tooltip-open")&&n._delay(function(){i&&(i.type=a),this._open(i,e,t)})}))&&this._open(i,e,t)},_open:function(t,i,e){function s(t){r.of=t,n.is(":hidden")||n.position(r)}var n,a,o,r=h.extend({},this.options.position);e&&((n=this._find(i)).length?n.find(".ui-tooltip-content").html(e):(i.is("[title]")&&(t&&"mouseover"===t.type?i.attr("title",""):i.removeAttr("title")),n=this._tooltip(i),l(i,n.attr("id")),n.find(".ui-tooltip-content").html(e),this.options.track&&t&&/^mouse/.test(t.type)?(this._on(this.document,{mousemove:s}),s(t)):n.position(h.extend({of:i},this.options.position)),n.hide(),this._show(n,this.options.show),this.options.show&&this.options.show.delay&&(o=setInterval(function(){n.is(":visible")&&(s(r.of),clearInterval(o))},h.fx.interval)),this._trigger("open",t,{tooltip:n}),a={keyup:function(t){if(t.keyCode===h.ui.keyCode.ESCAPE){var e=h.Event(t);e.currentTarget=i[0],this.close(e,!0)}},remove:function(){this._removeTooltip(n)}},t&&"mouseover"!==t.type||(a.mouseleave="close"),t&&"focusin"!==t.type||(a.focusout="close"),this._on(!0,i,a)))},close:function(t){var i=this,e=h(t?t.currentTarget:this.element),s=this._find(e);this.closing||(e.data("ui-tooltip-title")&&e.attr("title",e.data("ui-tooltip-title")),n(e),s.stop(!0),this._hide(s,this.options.hide,function(){i._removeTooltip(h(this))}),e.removeData("ui-tooltip-open"),this._off(e,"mouseleave focusout keyup"),e[0]!==this.element[0]&&this._off(e,"remove"),this._off(this.document,"mousemove"),t&&"mouseleave"===t.type&&h.each(this.parents,function(t,e){h(e.element).attr("title",e.title),delete i.parents[t]}),this.closing=!0,this._trigger("close",t,{tooltip:s}),this.closing=!1)},_tooltip:function(t){var e="ui-tooltip-"+s++,i=h("
    ").attr({id:e,role:"tooltip"}).addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipClass||""));return h("
    ").addClass("ui-tooltip-content").appendTo(i),i.appendTo(this.document[0].body),h.fn.bgiframe&&i.bgiframe(),this.tooltips[e]=t,i},_find:function(t){var e=t.data("ui-tooltip-id");return e?h("#"+e):h()},_removeTooltip:function(t){t.remove(),delete this.tooltips[t.attr("id")]},_destroy:function(){var s=this;h.each(this.tooltips,function(t,e){var i=h.Event("blur");i.target=i.currentTarget=e[0],s.close(i,!0),h("#"+t).remove(),e.data("ui-tooltip-title")&&(e.attr("title",e.data("ui-tooltip-title")),e.removeData("ui-tooltip-title"))})}})}(jQuery); !function(f){"use strict";var r=function(e,t){var c=this,n={allowFreeEntries:!0,allowDuplicates:!1,ajaxConfig:{},autoSelect:!0,selectFirst:!1,queryParam:"query",beforeSend:function(){},cls:"",data:null,dataUrlParams:{},disabled:!1,disabledField:null,displayField:"name",editable:!0,expanded:!1,expandOnFocus:!1,groupBy:null,hideTrigger:!1,highlight:!0,id:null,infoMsgCls:"",inputCfg:{},invalidCls:"ms-inv",matchCase:!1,maxDropHeight:290,maxEntryLength:null,maxEntryRenderer:function(e){return"Please reduce your entry by "+e+" character"+(1=d.minChars||0",{"class":"ms-res-group",html:a}).appendTo(c.combobox),g._renderComboItems(s[a].items,!0);var r=c.combobox.find(".ms-res-group").outerHeight();if(null!==r){var i=n*r;t=l*e.length+i}else t=l*(e.length+n)}if(t=c.combobox.height()&&t>d.maxDropHeight&&c.combobox.height(d.maxDropHeight),1===e.length&&!0===d.autoSelect&&c.combobox.children().filter(":not(.ms-res-item-disabled):last").addClass("ms-res-item-active"),!0===d.selectFirst&&c.combobox.children().filter(":not(.ms-res-item-disabled):first").addClass("ms-res-item-active"),0===e.length&&""!==c.getRawValue()){var o=d.noSuggestionText.replace(/\{\{.*\}\}/,c.input.val());g._updateHelper(o),c.collapse()}!1===d.allowFreeEntries&&(0===e.length?(f(c.input).addClass(d.invalidCls),c.combobox.hide()):f(c.input).removeClass(d.invalidCls))},_getEntriesFromStringArray:function(e){var a=[];return f.each(e,function(e,t){var n={};n[d.displayField]=n[d.valueField]=f.trim(t),a.push(n)}),a},_highlightSuggestion:function(e){var n=c.input.val(),t=["^","$","*","+","?",".","(",")",":","!","|","{","}","[","]"];if(f.each(t,function(e,t){n=n.replace(t,"\\"+t)}),0===n.length)return e;var a=!0===d.matchCase?"g":"gi";return e.replace(new RegExp("("+n+")(?!([^<]+)?>)",a),"$1")},_moveSelectedRow:function(e){var t,n,a,r;d.expanded||c.expand(),t=c.combobox.find(".ms-res-item:not(.ms-res-item-disabled)"),n="down"===e?t.eq(0):t.filter(":last"),0<(a=c.combobox.find(".ms-res-item-active:not(.ms-res-item-disabled):first")).length&&("down"===e?(0===(n=a.nextAll(".ms-res-item:not(.ms-res-item-disabled)").first()).length&&(n=t.eq(0)),r=c.combobox.scrollTop(),c.combobox.scrollTop(0),n[0].offsetTop+n.outerHeight()>c.combobox.height()&&c.combobox.scrollTop(r+l)):(0===(n=a.prevAll(".ms-res-item:not(.ms-res-item-disabled)").first()).length&&(n=t.filter(":last"),c.combobox.scrollTop(l*t.length)),n[0].offsetTop",{"class":"ms-ctn form-control "+(d.resultAsString?"ms-as-string ":"")+d.cls+(f(e).hasClass("input-lg")?" input-lg":"")+(f(e).hasClass("input-sm")?" input-sm":"")+(!0===d.disabled?" ms-ctn-disabled":"")+(!0===d.editable?"":" ms-ctn-readonly")+(!1===d.hideTrigger?"":" ms-no-trigger"),style:d.style,id:d.id}),c.container.focus(f.proxy(v._onFocus,this)),c.container.blur(f.proxy(v._onBlur,this)),c.container.keydown(f.proxy(v._onKeyDown,this)),c.container.keyup(f.proxy(v._onKeyUp,this)),c.input=f("",f.extend({type:"text","class":!0===d.editable?"":" ms-input-readonly",id:c.container.attr("id")+"_input",readonly:!d.editable,placeholder:d.placeholder,disabled:d.disabled},d.inputCfg)),c.input.focus(f.proxy(v._onInputFocus,this)),c.input.click(f.proxy(v._onInputClick,this)),c.combobox=f("
    ",{"class":"ms-res-ctn dropdown-menu"}).height(d.maxDropHeight),c.combobox.on("click","div.ms-res-item",f.proxy(v._onComboItemSelected,this)),c.combobox.on("mouseover","div.ms-res-item",f.proxy(v._onComboItemMouseOver,this)),d.selectionContainer?(c.selectionContainer=d.selectionContainer,f(c.selectionContainer).addClass("ms-sel-ctn")):c.selectionContainer=f("
    ",{"class":"ms-sel-ctn"}),c.selectionContainer.click(f.proxy(v._onFocus,this)),"inner"!==d.selectionPosition||d.selectionContainer?c.container.append(c.input):c.selectionContainer.append(c.input),c.helper=f("",{"class":"ms-helper "+d.infoMsgCls}),g._updateHelper(),c.container.append(c.helper),f(e).replaceWith(c.container),!d.selectionContainer)switch(d.selectionPosition){case"bottom":c.selectionContainer.insertAfter(c.container),!0===d.selectionStacked&&(c.selectionContainer.width(c.container.width()),c.selectionContainer.addClass("ms-stacked"));break;case"right":c.selectionContainer.insertAfter(c.container),c.container.css("float","left");break;default:c.container.append(c.selectionContainer)}!1===d.hideTrigger&&(c.trigger=f("
    ",{"class":"ms-trigger",html:'
    '}),c.trigger.click(f.proxy(v._onTriggerClick,this)),c.container.append(c.trigger)),f(window).resize(f.proxy(v._onWindowResized,this)),null===d.value&&null===d.data||("string"==typeof d.data?(g._asyncValues=d.value,g._processSuggestions()):(g._processSuggestions(),null!==d.value&&(c.setValue(d.value),g._renderSelection()))),f("body").click(function(e){c.container.hasClass("ms-ctn-focus")&&0===c.container.has(e.target).length&&e.target.className.indexOf("ms-res-item")<0&&e.target.className.indexOf("ms-close-btn")<0&&c.container[0]!==e.target&&v._onBlur()}),!0===d.expanded&&(d.expanded=!1,c.expand())},_renderComboItems:function(e,i){var o=this,s="";f.each(e,function(e,t){var n=null!==d.renderer?d.renderer.call(o,t):t[d.displayField],a=null!==d.disabledField&&!0===t[d.disabledField],r=f("
    ",{"class":"ms-res-item "+(i?"ms-res-item-grouped ":"")+(a?"ms-res-item-disabled ":"")+(e%2==1&&!0===d.useZebraStyle?"ms-res-odd":""),html:!0===d.highlight?g._highlightSuggestion(n):n,"data-json":JSON.stringify(t)});s+=f("
    ").append(r).html()}),c.combobox.append(s),l=c.combobox.find(".ms-res-item:first").outerHeight()},_renderSelection:function(){var i=this,e=0,t=0,o=[],s=!0===d.resultAsString&&!h;c.selectionContainer.find(".ms-sel-item").remove(),c._valueContainer!==undefined&&c._valueContainer.remove(),f.each(u,function(e,t){var n,a=null!==d.selectionRenderer?d.selectionRenderer.call(i,t):t[d.displayField],r=g._validateSingleItem(t[d.displayField])?"":" ms-sel-invalid";!0===s?n=f("
    ",{"class":"ms-sel-item ms-sel-text "+d.selectionCls+r,html:a+(e===u.length-1?"":d.resultAsStringDelimiter)}).data("json",t):(n=f("
    ",{"class":"ms-sel-item "+d.selectionCls+r,html:a}).data("json",t),!1===d.disabled&&f("",{"class":"ms-close-btn"}).data("json",t).appendTo(n).click(f.proxy(v._onTagTriggerClick,i))),o.push(n)});var a=c.container.width();if(c.selectionContainer.prepend(o),c._valueContainer=f("
    ",{style:"display: none;"}),f.each(c.getValue(),function(e,t){f("",{type:"hidden",name:d.name,value:t}).appendTo(c._valueContainer)}),c._valueContainer.appendTo(c.selectionContainer),"inner"===d.selectionPosition&&!d.selectionContainer){c.input.width(0),t=c.input.offset().left-c.selectionContainer.offset().left,e=c.container.width()-t-42,c.input.closest(".ms-sel-ctn").find("input").width(e);var r=c.input.closest(".ms-sel-ctn").find(".ms-sel-item"),l=0;r.each(function(e,t){if(e==r.length-1){var n=a-62-l;f(t).css("max-width",n+"px")}else l+=f(t).width()+5,f(t).css("max-width","none")})}u.length===d.maxSelection?g._updateHelper(d.maxSelectionRenderer.call(this,u.length)):c.helper.hide()},_selectItem:function(e){1===d.maxSelection&&(u=[]),c.addToSelection(e.data("json")),e.removeClass("ms-res-item-active"),!1!==d.expandOnFocus&&u.length!==d.maxSelection||c.collapse(),h?h&&(d.expandOnFocus||m)&&(g._processSuggestions(),m&&c.expand()):c.input.focus()},_sortAndTrim:function(e){var a=c.getRawValue(),r=[],n=[],i=c.getValue();return 0t[d.sortOrder]?"asc"===d.sortDir?1:-1:0}),d.maxSuggestions&&0p.ENTER&&e.keyCoded.maxEntryLength?(g._updateHelper(d.maxEntryRenderer.call(this,n.length-d.maxEntryLength)),!0===d.expanded&&c.collapse()):(c.helper.hide(),d.minChars<=n.length&&(i=setTimeout(function(){!0===d.expanded?g._processSuggestions():c.expand()},d.typeDelay)))}},_onTagTriggerClick:function(e){c.removeFromSelection(f(e.currentTarget).data("json"))},_onTriggerClick:function(){if(!1===c.isDisabled()&&(!0!==d.expandOnFocus||u.length!==d.maxSelection))if(f(c).trigger("triggerclick",[c]),!0===d.expanded)c.collapse();else{var e=c.getRawValue().length;e>=d.minChars?(c.input.focus(),c.expand()):g._updateHelper(d.minCharsRenderer.call(this,d.minChars-e))}},_onWindowResized:function(){g._renderSelection()}};null!==e&&g._render(e)};f.fn.magicSuggest=function(a){var e=f(this);return 1===e.size()&&e.data("magicSuggest")?e.data("magicSuggest"):(e.each(function(){var e=f(this);if(!e.data("magicSuggest")){"select"===this.nodeName.toLowerCase()&&(a.data=[],a.value=[],f.each(this.children,function(e,t){t.nodeName&&"option"===t.nodeName.toLowerCase()&&(a.data.push({id:t.value,name:t.text}),f(t).attr("selected")&&a.value.push(t.value))}));var n={};f.each(this.attributes,function(e,t){n[t.name]="value"===t.name&&""!==t.value?JSON.parse(t.value):t.value});var t=new r(this,f.extend([],f.fn.magicSuggest.defaults,a,n));e.data("magicSuggest",t),t.container.data("magicSuggest",t),t.input.attr("placeholder",a.placeholder)}}),1===e.size()?e.data("magicSuggest"):e)},f.fn.magicSuggest.defaults={}}(jQuery);var KonvenatorSearchBar={tagungsplaner:0,jQuery:jQuery,qt_terms:[],lqt_terms:[],original_action:$("form#new_search").attr("action"),add_prefix:function(e,t){return e===undefined?t:e+" "+t},activate:function(e,t){KonvenatorSearchBar.tagungsplaner=1,KonvenatorSearchBar.jQuery.ajaxSetup({headers:{"X-CSRF-Token":KonvenatorSearchBar.csrf_token}}),KonvenatorSearchBar.jQuery(e).replaceWith(t),KonvenatorSearchBar.init(e),KonvenatorSearchBar.jQuery(".datepicker").datepicker({dateFormat:"dd.mm.yy"})},init:function(e){var t=KonvenatorSearchBar._setup_input(KonvenatorSearchBar.add_prefix(e,"#search_query"),"what"),n=KonvenatorSearchBar._setup_input(KonvenatorSearchBar.add_prefix(e,"#search_query_location"),"where"),a='';KonvenatorSearchBar.jQuery("#search_query input").before(a),KonvenatorSearchBar.jQuery("#search_query_location input").before(a),KonvenatorSearchBar.jQuery(t).on("keydown selectionchange",function(){KonvenatorSearchBar.jQuery("#search_query input.typeahead").val("")}),KonvenatorSearchBar.jQuery(t).on("load",function(){KonvenatorSearchBar._fill_in_typeahead("search_query",".ms-res-item:first");var e=KonvenatorSearchBar.jQuery("#search_query .dropdown-menu");e.length&&e.css("min-height",e[0].style.height)}),KonvenatorSearchBar.jQuery("#search_query .ms-ctn.form-control").on("keyup",function(){KonvenatorSearchBar._fill_in_typeahead("search_query",".ms-res-item-active:not(.ms-res-item-disabled):first")}),KonvenatorSearchBar.jQuery(n).on("keydown selectionchange",function(){KonvenatorSearchBar.jQuery("#search_query_location input.typeahead").val("")}),KonvenatorSearchBar.jQuery(n).on("load",function(){KonvenatorSearchBar._fill_in_typeahead("search_query_location",".ms-res-item:first");var e=KonvenatorSearchBar.jQuery("#search_query_location .dropdown-menu");e.length&&e.css("min-height",e[0].style.height)}),KonvenatorSearchBar.jQuery("#search_query_location .ms-ctn.form-control").on("keyup",function(){KonvenatorSearchBar._fill_in_typeahead("search_query_location",".ms-res-item-active:not(.ms-res-item-disabled):first")}),KonvenatorSearchBar.jQuery(t).on("selectionchange",function(){KonvenatorSearchBar._on_select_search_term(t)}),KonvenatorSearchBar.jQuery(n).on("selectionchange",function(){KonvenatorSearchBar._on_select_search_term(n)}),KonvenatorSearchBar.jQuery(KonvenatorSearchBar.add_prefix(e,".icon.calendar-icon")).click(function(){KonvenatorSearchBar.jQuery(KonvenatorSearchBar.add_prefix(e,"#search_start_date")).focus()}),KonvenatorSearchBar.jQuery(".konvenator-language-switcher a").click(function(e){e.preventDefault(),KonvenatorSearchBar._switch_locale(this)})},_fill_in_typeahead:function(e,t){var n=KonvenatorSearchBar.jQuery("#"+e+" .dropdown-menu "+t+" div:first").clone();n.find("div").remove();var a=n.text(),r=KonvenatorSearchBar.jQuery("#"+e+" input:not(.typeahead)").val();if(""!==r&&a.toLowerCase().startsWith&&a.toLowerCase().startsWith(r.toLowerCase())){var i=r+a.substring(r.length,a.length);KonvenatorSearchBar.jQuery("#"+e+" input.typeahead").val(i)}},_setup_input:function(e,i){var t=KonvenatorSearchBar.jQuery(e),o=null;return t.each(function(e,t){var n=KonvenatorSearchBar.jQuery(t),a=n.find("input"),r={data:"/search/all/autocomplete.js?type="+i+"&locale="+KonvenatorSearchBar.locale+"&tagungsplaner="+KonvenatorSearchBar.tagungsplaner,valueField:"id",displayField:"label",disabledField:"disabled",expandOnFocus:!0,mode:"remote",maxDropHeight:580,maxSelection:n.data("max-selection"),hideTrigger:!0,selectFirst:!0,allowFreeEntries:!1,typeDelay:1,placeholder:a.attr("placeholder"),maxSelectionRenderer:function(e){return KonvenatorSearchBar.t("common.only_"+(1
    '+e.type+"
    "+e.label+"
    "+(1==e.location?''+e.city_text+"":"")},selectionRenderer:function(e){return"undefined"!=typeof e.province?'
    '+e.label+e.province+"
    ":'
    '+e.label+"
    "}};o=a.magicSuggest(r),n.data("st")!==undefined&&(o.addToSelection(n.data("st")),KonvenatorSearchBar._update_seo_url(o))}),o},locale:"de",translations:undefined,t:function(e){return KonvenatorSearchBar.translations===undefined?I18n.t(e):KonvenatorSearchBar.translations[KonvenatorSearchBar.locale][e]},_switch_locale:function(e){KonvenatorSearchBar.locale=KonvenatorSearchBar.jQuery(e).data("locale"),KonvenatorSearchBar.jQuery(".konvenator-language-switcher a").removeClass("active"),KonvenatorSearchBar.jQuery(e).addClass("active"),KonvenatorSearchBar.jQuery(".konvenator-language-switcher span").text(KonvenatorSearchBar.t("common.language")),KonvenatorSearchBar.jQuery(".konvenator-search-bar #search_query input:not(.typeahead)").attr("placeholder",KonvenatorSearchBar.t("common.nonspatial_search_terms_placeholder")),KonvenatorSearchBar.jQuery(".konvenator-search-bar #search_query_location input").attr("placeholder",KonvenatorSearchBar.t("common.spatial_search_terms_placeholder")),KonvenatorSearchBar.jQuery(".konvenator-search-bar input[type=submit]").attr("value",KonvenatorSearchBar.t("common.search"))},_add_order_token:function(e){var t=e.getValue(),n=$("input:hidden[name*=qt]").map(function(){return this.value}).get();0'),$("input[data-name=search_order]").each(function(e,t){-1==$.inArray($(t).val(),n)&&$(t).remove()})},_add_searchable:function(e){var t=e.getSelection()[0];if(void 0!==t){if(-1!==t.id.indexOf("ca_")){var n='
    '+t.label+'
    ';$(".SelectedSearchable-container").html(n)}}else $(".SelectedSearchable").remove()},_update_seo_url:function(e){if(1!=this.tagungsplaner){var t=[],n=[];"search_lqt_input"==e.input[0].id?this.lqt_terms=e.getSelection():this.qt_terms=e.getSelection(),Array.prototype.push.apply(t,this.qt_terms),Array.prototype.push.apply(t,this.lqt_terms),$(t).each(function(e,t){n.push(t.slug)});var a=this.original_action+"/"+n.join("-");$("form#new_search").attr("action",a)}},_on_select_search_term:function(e){e.collapse();var t=KonvenatorSearchBar.jQuery(".ms-res-item-active").index(),n=e.input.val().length;KonvenatorSearchBar._add_order_token(e),KonvenatorSearchBar._add_searchable(e),KonvenatorSearchBar._update_seo_url(e),KonvenatorSearchBar.jQuery.ajax("/search/all/select.js",{data:{selected_search_term_index:t,selected_search_term_input_length:n}})}};try{KonvenatorSearchBar.locale=I18n.locale}catch(err){} KonvenatorSearchBar.csrf_token = "U0+gp4W1YWMwiSwvIrIHaHIZ7Bmg7rdyOwRkRV1flok="; KonvenatorSearchBar.jQuery = jQuery.noConflict(true); KonvenatorSearchBar.translations = {}; KonvenatorSearchBar.translations.de = {}; KonvenatorSearchBar.translations.de["common.only_1_item_allowed"] = "Sie können einen Suchbegriff wählen"; KonvenatorSearchBar.translations.de["common.only_2_items_allowed"] = "Sie können zwei Suchbegriffe wählen"; KonvenatorSearchBar.translations.de["common.nonspatial_search_terms_placeholder"] = "Was suchen Sie?"; KonvenatorSearchBar.translations.de["common.spatial_search_terms_placeholder"] = "Wo suchen Sie?"; KonvenatorSearchBar.translations.de["common.language"] = "Sprache"; KonvenatorSearchBar.translations.de["common.search"] = "Finden"; KonvenatorSearchBar.translations.en = {}; KonvenatorSearchBar.translations.en["common.only_1_item_allowed"] = "You can choose 1 item"; KonvenatorSearchBar.translations.en["common.only_2_items_allowed"] = "You can choose 2 items"; KonvenatorSearchBar.translations.en["common.nonspatial_search_terms_placeholder"] = "What are you looking for?"; KonvenatorSearchBar.translations.en["common.spatial_search_terms_placeholder"] = "Where are you looking?"; KonvenatorSearchBar.translations.en["common.language"] = "Language"; KonvenatorSearchBar.translations.en["common.search"] = "Search"; KonvenatorSearchBar.jQuery(function() { KonvenatorSearchBar.jQuery("#popupContainer").remove(); KonvenatorSearchBar.jQuery("#langChooser").remove(); KonvenatorSearchBar.jQuery("#langChooser_en").remove(); KonvenatorSearchBar.jQuery("#searchform").remove(); KonvenatorSearchBar.jQuery("#searchform_en").remove(); var markup = "