//GA
//GoogleAds
//----------------------------------jQuery UI - v1.12.1 - 2018-11-22 (Widgets : autocomplete, slider)-------------------------------//
//----------------------------------jQuery UI Touch Punch 0.2.3------------------//
//----------------------------------Cookie-------------------------------//
//----------------------------------Placeholder-------------------------------//
//---------------------------------- bootstrap-tokenfield 0.12.1 -------------------------------//
//*************** Image viewer blueimp ******************//
//------------------------------- MAIN ----------------------------------------------//
//History
//**************************Edit window**************************//
//---Social Share---//
//---------------Image--------------------------//
//Filters//
//jQuery UI combobox custom
function renderAutocompleteItem(t,e){return $("<li></li>").data("item.autocomplete",e).append("<div>"+e.label+(e.adderlabel?"<small>"+e.adderlabel+"</small>":"")+"</div>").appendTo(t)}function scrollE(){var t=$(window),e=t.scrollTop(),i=$("body>header")
moreLinePos.length&&!moreLineWas&&e+t.height()+400>moreLinePos.offset().top&&moreLinePos.click(),i.toggleClass("min",e>50&&(t.width()>600||e>_gVar.lastScrollTop&&!i.find(".open").length)),_gVar.lastScrollTop=e||_gVar.lastScrollTop,$("#AdvBlock").toggleClass("adv-fix",endAside&&e>endAside),lazyLoad()}function lazyLoad(){$(".img-cover.lazy[data-lazy]").each(function(){var t=$(this)
if(t.inView(300)){var e=t.data("lazy")
if(t.hasClass("script"))if("function"==typeof _gVar[t.data("var")])_gVar[t.data("var")]()
else{var i=document.createElement("script"),n=document.getElementsByTagName("script")[0],o=t.data("style")
if(i.async=1,t.data("onload")&&(i.onload=function(){functionRun[functionRun.length-1]()}),i.src=e,n.parentNode.insertBefore(i,n),o){var s=document.createElement("link")
s.rel="stylesheet",s.href=o,n.parentNode.insertBefore(s,n)}}else t.hasClass("iframe")?t.attr("src",e):t.css({"background-image":"url("+e+")"})
t.removeAttr("data-lazy").addClass("done")}}),_gVar.isMobile&&$(".img-cover[data-imgset]").each(function(){$(this).inView(-.3*$(window).height())?$(".img-cover.runset[data-imgset]").length||$(this).rotateImg().start():$(this).hasClass("runset")&&$(this).rotateImg().stop()})}function historep(t,e,i){window.history&&history.replaceState&&history.replaceState(t,e||"",i||location.href)}function historyst(t,e){window.history&&history.pushState&&history.pushState(e,"",t)}function modalHistoryBack(t){history&&history.state&&history.state.modal&&!t.data("popstate")&&history.back(),t.data("popstate",!1)}function modalHistoryTrigger(t){if(history){var t=t||history
if(t.state&&t.state.modal)if("gallery"==t.state.modal)$("#"+t.state.datah).data("popstate",!0).click().data("popstate",!1)
else if("pagination"==t.state.modal)pageAjax.currentUrl!==t.state.datah&&(_gVar.cacheList&&_gVar.cacheList[t.state.datah]?(pageAjax.setPage(_gVar.cacheList[t.state.datah]),pageAjax.currentUrl=t.state.datah):window.location=t.state.datah)
else if(t.state.datah)try{var e=JSON.parse(t.state.datah)
if(e.length){var i=$("*["+e.join("][")+"]")
i.length||_gVar.user&&"reg1"==t.state.modal||(i=$('<a class="hidden" '+e.join(" ")+"></a>"),$("body").append(i)),i.first().data("popstate",!0).click().data("popstate",!1)}}catch(t){}}}function loader(){return $(".progress.alles").is(":visible")?1:($(".progress.alles").show(),0)}function killloader(){$(".progress.alles").hide()}function reloadPage(){window.location.href=datatToReloadPage()}function datatToReloadPage(){var t=(window.location,"#"+window.location.hash.substr(1))
return window.location.href.replace(t,"")}function movie(t){t=t||!1,$("*[placeholder]").placeholder(),t||gallery(),$(".alert-info-cls").each(function(){var t=$(this),e=t.attr("id")
t.removeClass("alert-info-cls").addClass("alert alert-warning alert-dismissible fade in "+("1"!==lstorage(e)?"alert-cls":"alert-opn")).prepend('<button type="button" class="close">&times;</button>'),$(this).find(">div:first-of-type a, .close").on("click",function(){t.toggleClass("alert-cls").toggleClass("alert-opn"),lstorage(e,t.hasClass("alert-cls")?0:1)})}),$(".mapV:not(.done), .mapv:not(.done)").each(function(){var t=Math.random()
$(this).after('<iframe class="mapV done" id="fr'+t.toString()+'" name="fr'+t.toString()+'" src="/ajax/mapShow.php?infW='+encodeURIComponent($(this).html())+'"></iframe>').remove()}),$(".open-t").not("[was]").each(function(){var t=$(this)
if(t.attr("was","2"),t[0].scrollHeight-t.height()>50&&t.is(":visible")){var e=t.attr("data-session"),i=$('<a class="scrBotIA color-grey">'+_gText.showMore+"</a>")
if(e&&sstorage(e))return void t.css({"max-height":"none"})
i.click(function(){var t=$(this),e=t.prev(),i=e.attr("data-session"),n=$("#asideFin:visible")
i&&sstorage(i,"1"),e.css({"max-height":"none"}),t.remove(),n.length&&(endAside=n.offset().top)}),t.after(i)}else t.css({"max-height":"none"})})}function gallery(t){$("#blueimp-gallery").length||$("body").append('<div id="blueimp-gallery" class="blueimp-gallery blueimp-gallery-controls"><div class="slides"></div><h3 class="title"></h3><p class="description"></p><a class="prev">‹</a><a class="next">›</a><a class="close">×</a><a class="play-pause"></a><ol class="indicator"></ol></div>'),$(".links:not(.was)").each(function(){var t=this,e=$(t),i=e.find("a"),n="blueimp-gallery-carousel-"+e.data("containerid")
$("#"+n).length&&(n=n+"-"+$("#"+n).length),e.addClass("was").before('<div id="'+n+'" class="blueimp-gallery blueimp-gallery-carousel"><div class="slides"></div></div>')
var o=blueimp.Gallery(this.getElementsByTagName("a"),{container:"#"+n,urlProperty:"imgd",hidePageScrollbars:!1,toggleControlsOnReturn:!1,toggleSlideshowOnSpace:!1,enableKeyboardNavigation:!1,preloadRange:1,closeOnEscape:!1,closeOnSlideClick:!1,closeOnSwipeUpOrDown:!1,disableScroll:!1,onslideend:function(t){i.length>1&&(i.removeClass("active"),e.find("a:eq("+t+")").addClass("active"))}})
$("#"+n).click(function(s){if(!o.list[o.getIndex()].type){var a={index:o.getIndex(),event:s||window.event,urlProperty:"imgd",continuous:!0,onclose:function(){modalHistoryBack($(this.container))},onslide:function(t,n){var s=this.list[t].getAttribute("data-description"),a=this.container.find(".description")
a.empty(),s&&a[0].appendChild(document.createTextNode(rawurldecode(s))),i.length>1&&(i.removeClass("active"),e.find("a:eq("+t+")").addClass("active"),o.slide(t))}},r=blueimp.Gallery(t.getElementsByTagName("a"),a)
$("#blueimp-gallery").data("gallery",r),$(this).data("popstate")||historyst(null,{modal:"gallery",datah:n})}}),i.click(function(t){var e=$(this)
i.removeClass("active"),e.addClass("active"),o.slide(e.index())}),i.length<2&&e.hide()})}function rawurldecode(t){return decodeURIComponent((t+"").replace(/%(?![\da-f]{2})/gi,function(){return"%25"}))}function sstorage(t,e){try{if(void 0===e)return sessionStorage[t]
sessionStorage[t]=e}catch(t){return!1}}function lstorage(t,e){try{if(void 0===e)return localStorage[t]
localStorage[t]=e}catch(t){return!1}}function voice(){var t=$(".poll :button.voice"),e="1"==t.data("global")
if($(".voice,.result").unbind().click(function(){var t=$(this).parent().parent(),i=t.find(".voice").attr("poll")
sendData={poll:t.find("input[name='voice']:checked").length>0&&$(this).hasClass("voice")?t.find("input[name='voice']:checked").val():"0",pollID:i,linkStat:67!=_gVar.page&&e?t.find("b a").attr("href"):"",lang:lng},ga("send","event","Poll",$(this).hasClass("voice")?"voice":"result",i),$._ajax({url:"/plugins/poll/ajax.php",data:sendData,success:function(e){t.find(".oprr").after('<div class="resultblock">'+e+"</div>"),t.find(".oprr").hide(),t.find(".voice, .result").hide(),t.find(".back-voice").click(function(){t.find(".oprr, .voice, .result").show(),t.find(".resultblock, .back-voice").hide()})
var i=$("#asideFin:visible")
i.length&&(endAside=i.offset().top)}})}),(e||"1"==t.data("globalcity")&&_gVar.district)&&67!=_gVar.page&&39!=_gVar.page&&!$("aside").is(":visible")){var i=t.closest(".open-t.poll").addClass("breadcrumb").removeClass("open-t").css({"margin-top":"-5px"})
i.find(">div").addClass("hidden").end().find("b>a").css({color:"#d43f3a"}).prepend('<span class="glyphicon glyphicon-stats"></span> '),i.find(">b").click(function(t){t.preventDefault(),$(this).parent().find(">div").toggleClass("hidden")}),i.insertAfter($(".selectT1:first"))}}function resColm(){var t=$("aside")
if(_gVar.isMobile=window.innerWidth<767,_gVar.showAside=_gVar.showAside||$(window).width()>1e3,lazyLoad(),(39==_gVar.page||2==_gVar.page)&&t.length&&!t.is(":visible")){var e=$("#aside-container")
e.hasClass("done")||(e.addClass("done"),$("aside>div").clone(!0,!0).appendTo(e),e.carouselInit(),e.find(".aside-neighbor").insertAfter(e.find(".aside-weather")),e.find("ul.nav-tabs a").each(function(){$(this).attr("href",$(this).attr("href")+"-clone")}),e.find("div.tab-pane").each(function(){$(this).attr("id",$(this).attr("id")+"-clone")}))}}function evChangeCity(t){_gVar.regionID&&t&&"1"!=t&&_gVar.regionID!=t&&t!=_gVar.district&&t!=_gVar.region&&ga("send","event","ChangeCity",_gVar.regionID,t+"_"+_gVar.page)}function changeLangLinkUpdate(t){var e=$("#cngLangLink")
e.length&&e.attr("href",e.attr("href").replace(/\/\?.*/,"")+(t||(window.location.search?"/"+window.location.search:"")))}function filterCityDone(t){var e=$(".filter-container .city-search")
e.tokenfield("createToken",{label:t.label,isRegion:!!parseInt(t.fcl),value:t.id}),siteFilters.cityFilter(e)}function getUrl(t){var e=""
return e=/%/.test(location.href)?location.href:encodeURI(location.href),t&&location.hash&&(e=e.replace(location.hash,"")),e}var a=document.createElement("script"),m=document.getElementsByTagName("script")[0]
if(a.async=1,a.src="//www.google-analytics.com/analytics"+(_gVar.isTest?"_debug":"")+".js",m.parentNode.insertBefore(a,m),!_gVar.isTest&&-1==["2","69","41","46","72"].indexOf(_gVar.page)&&(64!=_gVar.page||136!=_gVar.cat2||-1===["1519","702"].indexOf(_gVar.city))){(adsbygoogle=window.adsbygoogle||[]).push({google_ad_client:"ca-pub-3096674315255993",enable_page_level_ads:!_gVar.user,overlays:{bottom:!0}})
var a=document.createElement("script"),m=document.getElementsByTagName("script")[0]
a.defer=1,a.src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js",m.parentNode.insertBefore(a,m)}if(function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document")
return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(t,e){function i(t){var e=t.length,i=ot.type(t)
return"function"!==i&&!ot.isWindow(t)&&(!(1!==t.nodeType||!e)||("array"===i||0===e||"number"==typeof e&&e>0&&e-1 in t))}function n(t,e,i){if(ot.isFunction(e))return ot.grep(t,function(t,n){return!!e.call(t,n,t)!==i})
if(e.nodeType)return ot.grep(t,function(t){return t===e!==i})
if("string"==typeof e){if(ht.test(e))return ot.filter(e,t,i)
e=ot.filter(e,t)}return ot.grep(t,function(t){return ot.inArray(t,e)>=0!==i})}function o(t,e){do{t=t[e]}while(t&&1!==t.nodeType)
return t}function s(t){var e=bt[t]={}
return ot.each(t.match(yt)||[],function(t,i){e[i]=!0}),e}function a(){ft.addEventListener?(ft.removeEventListener("DOMContentLoaded",r,!1),t.removeEventListener("load",r,!1)):(ft.detachEvent("onreadystatechange",r),t.detachEvent("onload",r))}function r(){(ft.addEventListener||"load"===event.type||"complete"===ft.readyState)&&(a(),ot.ready())}function l(t,e,i){if(void 0===i&&1===t.nodeType){var n="data-"+e.replace(_t,"-$1").toLowerCase()
if("string"==typeof(i=t.getAttribute(n))){try{i="true"===i||"false"!==i&&("null"===i?null:+i+""===i?+i:kt.test(i)?ot.parseJSON(i):i)}catch(t){}ot.data(t,e,i)}else i=void 0}return i}function c(t){var e
for(e in t)if(("data"!==e||!ot.isEmptyObject(t[e]))&&"toJSON"!==e)return!1
return!0}function u(t,e,i,n){if(ot.acceptData(t)){var o,s,a=ot.expando,r=t.nodeType,l=r?ot.cache:t,c=r?t[a]:t[a]&&a
if(c&&l[c]&&(n||l[c].data)||void 0!==i||"string"!=typeof e)return c||(c=r?t[a]=X.pop()||ot.guid++:a),l[c]||(l[c]=r?{}:{toJSON:ot.noop}),("object"==typeof e||"function"==typeof e)&&(n?l[c]=ot.extend(l[c],e):l[c].data=ot.extend(l[c].data,e)),s=l[c],n||(s.data||(s.data={}),s=s.data),void 0!==i&&(s[ot.camelCase(e)]=i),"string"==typeof e?null==(o=s[e])&&(o=s[ot.camelCase(e)]):o=s,o}}function d(t,e,i){if(ot.acceptData(t)){var n,o,s=t.nodeType,a=s?ot.cache:t,r=s?t[ot.expando]:ot.expando
if(a[r]){if(e&&(n=i?a[r]:a[r].data)){ot.isArray(e)?e=e.concat(ot.map(e,ot.camelCase)):e in n?e=[e]:(e=ot.camelCase(e),e=e in n?[e]:e.split(" ")),o=e.length
for(;o--;)delete n[e[o]]
if(i?!c(n):!ot.isEmptyObject(n))return}(i||(delete a[r].data,c(a[r])))&&(s?ot.cleanData([t],!0):it.deleteExpando||a!=a.window?delete a[r]:a[r]=null)}}}function h(){return!0}function p(){return!1}function f(){try{return ft.activeElement}catch(t){}}function m(t){var e=Mt.split("|"),i=t.createDocumentFragment()
if(i.createElement)for(;e.length;)i.createElement(e.pop())
return i}function g(t,e){var i,n,o=0,s=typeof t.getElementsByTagName!==Ct?t.getElementsByTagName(e||"*"):typeof t.querySelectorAll!==Ct?t.querySelectorAll(e||"*"):void 0
if(!s)for(s=[],i=t.childNodes||t;null!=(n=i[o]);o++)!e||ot.nodeName(n,e)?s.push(n):ot.merge(s,g(n,e))
return void 0===e||e&&ot.nodeName(t,e)?ot.merge([t],s):s}function v(t){Dt.test(t.type)&&(t.defaultChecked=t.checked)}function y(t,e){return ot.nodeName(t,"table")&&ot.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function b(t){return t.type=(null!==ot.find.attr(t,"type"))+"/"+t.type,t}function w(t){var e=Bt.exec(t.type)
return e?t.type=e[1]:t.removeAttribute("type"),t}function x(t,e){for(var i,n=0;null!=(i=t[n]);n++)ot._data(i,"globalEval",!e||ot._data(e[n],"globalEval"))}function C(t,e){if(1===e.nodeType&&ot.hasData(t)){var i,n,o,s=ot._data(t),a=ot._data(e,s),r=s.events
if(r){delete a.handle,a.events={}
for(i in r)for(n=0,o=r[i].length;o>n;n++)ot.event.add(e,i,r[i][n])}a.data&&(a.data=ot.extend({},a.data))}}function k(t,e){var i,n,o
if(1===e.nodeType){if(i=e.nodeName.toLowerCase(),!it.noCloneEvent&&e[ot.expando]){o=ot._data(e)
for(n in o.events)ot.removeEvent(e,n,o.handle)
e.removeAttribute(ot.expando)}"script"===i&&e.text!==t.text?(b(e).text=t.text,w(e)):"object"===i?(e.parentNode&&(e.outerHTML=t.outerHTML),it.html5Clone&&t.innerHTML&&!ot.trim(e.innerHTML)&&(e.innerHTML=t.innerHTML)):"input"===i&&Dt.test(t.type)?(e.defaultChecked=e.checked=t.checked,e.value!==t.value&&(e.value=t.value)):"option"===i?e.defaultSelected=e.selected=t.defaultSelected:("input"===i||"textarea"===i)&&(e.defaultValue=t.defaultValue)}}function _(e,i){var n,o=ot(i.createElement(e)).appendTo(i.body),s=t.getDefaultComputedStyle&&(n=t.getDefaultComputedStyle(o[0]))?n.display:ot.css(o[0],"display")
return o.detach(),s}function $(t){var e=ft,i=Jt[t]
return i||(i=_(t,e),"none"!==i&&i||(Kt=(Kt||ot("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement),e=(Kt[0].contentWindow||Kt[0].contentDocument).document,e.write(),e.close(),i=_(t,e),Kt.detach()),Jt[t]=i),i}function T(t,e){return{get:function(){var i=t()
if(null!=i)return i?void delete this.get:(this.get=e).apply(this,arguments)}}}function E(t,e){if(e in t)return e
for(var i=e.charAt(0).toUpperCase()+e.slice(1),n=e,o=de.length;o--;)if((e=de[o]+i)in t)return e
return n}function S(t,e){for(var i,n,o,s=[],a=0,r=t.length;r>a;a++)n=t[a],n.style&&(s[a]=ot._data(n,"olddisplay"),i=n.style.display,e?(s[a]||"none"!==i||(n.style.display=""),""===n.style.display&&Et(n)&&(s[a]=ot._data(n,"olddisplay",$(n.nodeName)))):(o=Et(n),(i&&"none"!==i||!o)&&ot._data(n,"olddisplay",o?i:ot.css(n,"display"))))
for(a=0;r>a;a++)n=t[a],n.style&&(e&&"none"!==n.style.display&&""!==n.style.display||(n.style.display=e?s[a]||"":"none"))
return t}function D(t,e,i){var n=re.exec(e)
return n?Math.max(0,n[1]-(i||0))+(n[2]||"px"):e}function N(t,e,i,n,o){for(var s=i===(n?"border":"content")?4:"width"===e?1:0,a=0;4>s;s+=2)"margin"===i&&(a+=ot.css(t,i+Tt[s],!0,o)),n?("content"===i&&(a-=ot.css(t,"padding"+Tt[s],!0,o)),"margin"!==i&&(a-=ot.css(t,"border"+Tt[s]+"Width",!0,o))):(a+=ot.css(t,"padding"+Tt[s],!0,o),"padding"!==i&&(a+=ot.css(t,"border"+Tt[s]+"Width",!0,o)))
return a}function P(t,e,i){var n=!0,o="width"===e?t.offsetWidth:t.offsetHeight,s=Zt(t),a=it.boxSizing&&"border-box"===ot.css(t,"boxSizing",!1,s)
if(0>=o||null==o){if(o=te(t,e,s),(0>o||null==o)&&(o=t.style[e]),ie.test(o))return o
n=a&&(it.boxSizingReliable()||o===t.style[e]),o=parseFloat(o)||0}return o+N(t,e,i||(a?"border":"content"),n,s)+"px"}function A(t,e,i,n,o){return new A.prototype.init(t,e,i,n,o)}function I(){return setTimeout(function(){he=void 0}),he=ot.now()}function j(t,e){var i,n={height:t},o=0
for(e=e?1:0;4>o;o+=2-e)i=Tt[o],n["margin"+i]=n["padding"+i]=t
return e&&(n.opacity=n.width=t),n}function M(t,e,i){for(var n,o=(ye[e]||[]).concat(ye["*"]),s=0,a=o.length;a>s;s++)if(n=o[s].call(i,e,t))return n}function L(t,e,i){var n,o,s,a,r,l,c,u=this,d={},h=t.style,p=t.nodeType&&Et(t),f=ot._data(t,"fxshow")
i.queue||(r=ot._queueHooks(t,"fx"),null==r.unqueued&&(r.unqueued=0,l=r.empty.fire,r.empty.fire=function(){r.unqueued||l()}),r.unqueued++,u.always(function(){u.always(function(){r.unqueued--,ot.queue(t,"fx").length||r.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(i.overflow=[h.overflow,h.overflowX,h.overflowY],c=ot.css(t,"display"),"inline"===("none"===c?ot._data(t,"olddisplay")||$(t.nodeName):c)&&"none"===ot.css(t,"float")&&(it.inlineBlockNeedsLayout&&"inline"!==$(t.nodeName)?h.zoom=1:h.display="inline-block")),i.overflow&&(h.overflow="hidden",it.shrinkWrapBlocks()||u.always(function(){h.overflow=i.overflow[0],h.overflowX=i.overflow[1],h.overflowY=i.overflow[2]}))
for(n in e)if(o=e[n],fe.exec(o)){if(delete e[n],s=s||"toggle"===o,o===(p?"hide":"show")){if("show"!==o||!f||void 0===f[n])continue
p=!0}d[n]=f&&f[n]||ot.style(t,n)}else c=void 0
if(ot.isEmptyObject(d))"inline"===("none"===c?$(t.nodeName):c)&&(h.display=c)
else{f?"hidden"in f&&(p=f.hidden):f=ot._data(t,"fxshow",{}),s&&(f.hidden=!p),p?ot(t).show():u.done(function(){ot(t).hide()}),u.done(function(){var e
ot._removeData(t,"fxshow")
for(e in d)ot.style(t,e,d[e])})
for(n in d)a=M(p?f[n]:0,n,u),n in f||(f[n]=a.start,p&&(a.end=a.start,a.start="width"===n||"height"===n?1:0))}}function O(t,e){var i,n,o,s,a
for(i in t)if(n=ot.camelCase(i),o=e[n],s=t[i],ot.isArray(s)&&(o=s[1],s=t[i]=s[0]),i!==n&&(t[n]=s,delete t[i]),(a=ot.cssHooks[n])&&"expand"in a){s=a.expand(s),delete t[n]
for(i in s)i in t||(t[i]=s[i],e[i]=o)}else e[n]=o}function F(t,e,i){var n,o,s=0,a=ve.length,r=ot.Deferred().always(function(){delete l.elem}),l=function(){if(o)return!1
for(var e=he||I(),i=Math.max(0,c.startTime+c.duration-e),n=i/c.duration||0,s=1-n,a=0,l=c.tweens.length;l>a;a++)c.tweens[a].run(s)
return r.notifyWith(t,[c,s,i]),1>s&&l?i:(r.resolveWith(t,[c]),!1)},c=r.promise({elem:t,props:ot.extend({},e),opts:ot.extend(!0,{specialEasing:{}},i),originalProperties:e,originalOptions:i,startTime:he||I(),duration:i.duration,tweens:[],createTween:function(e,i){var n=ot.Tween(t,c.opts,e,i,c.opts.specialEasing[e]||c.opts.easing)
return c.tweens.push(n),n},stop:function(e){var i=0,n=e?c.tweens.length:0
if(o)return this
for(o=!0;n>i;i++)c.tweens[i].run(1)
return e?r.resolveWith(t,[c,e]):r.rejectWith(t,[c,e]),this}}),u=c.props
for(O(u,c.opts.specialEasing);a>s;s++)if(n=ve[s].call(c,t,u,c.opts))return n
return ot.map(u,M,c),ot.isFunction(c.opts.start)&&c.opts.start.call(t,c),ot.fx.timer(ot.extend(l,{elem:t,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}function R(t){return function(e,i){"string"!=typeof e&&(i=e,e="*")
var n,o=0,s=e.toLowerCase().match(yt)||[]
if(ot.isFunction(i))for(;n=s[o++];)"+"===n.charAt(0)?(n=n.slice(1)||"*",(t[n]=t[n]||[]).unshift(i)):(t[n]=t[n]||[]).push(i)}}function W(t,e,i,n){function o(r){var l
return s[r]=!0,ot.each(t[r]||[],function(t,r){var c=r(e,i,n)
return"string"!=typeof c||a||s[c]?a?!(l=c):void 0:(e.dataTypes.unshift(c),o(c),!1)}),l}var s={},a=t===Ve
return o(e.dataTypes[0])||!s["*"]&&o("*")}function H(t,e){var i,n,o=ot.ajaxSettings.flatOptions||{}
for(n in e)void 0!==e[n]&&((o[n]?t:i||(i={}))[n]=e[n])
return i&&ot.extend(!0,t,i),t}function V(t,e,i){for(var n,o,s,a,r=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===o&&(o=t.mimeType||e.getResponseHeader("Content-Type"))
if(o)for(a in r)if(r[a]&&r[a].test(o)){l.unshift(a)
break}if(l[0]in i)s=l[0]
else{for(a in i){if(!l[0]||t.converters[a+" "+l[0]]){s=a
break}n||(n=a)}s=s||n}return s?(s!==l[0]&&l.unshift(s),i[s]):void 0}function z(t,e,i,n){var o,s,a,r,l,c={},u=t.dataTypes.slice()
if(u[1])for(a in t.converters)c[a.toLowerCase()]=t.converters[a]
for(s=u.shift();s;)if(t.responseFields[s]&&(i[t.responseFields[s]]=e),!l&&n&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=s,s=u.shift())if("*"===s)s=l
else if("*"!==l&&l!==s){if(!(a=c[l+" "+s]||c["* "+s]))for(o in c)if(r=o.split(" "),r[1]===s&&(a=c[l+" "+r[0]]||c["* "+r[0]])){!0===a?a=c[o]:!0!==c[o]&&(s=r[0],u.unshift(r[1]))
break}if(!0!==a)if(a&&t.throws)e=a(e)
else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+l+" to "+s}}}return{state:"success",data:e}}function q(t,e,i,n){var o
if(ot.isArray(e))ot.each(e,function(e,o){i||Ue.test(t)?n(t,o):q(t+"["+("object"==typeof o?e:"")+"]",o,i,n)})
else if(i||"object"!==ot.type(e))n(t,e)
else for(o in e)q(t+"["+o+"]",e[o],i,n)}function U(){try{return new t.XMLHttpRequest}catch(t){}}function B(){try{return new t.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function Y(t){return ot.isWindow(t)?t:9===t.nodeType&&(t.defaultView||t.parentWindow)}var X=[],Q=X.slice,G=X.concat,K=X.push,J=X.indexOf,Z={},tt=Z.toString,et=Z.hasOwnProperty,it={},nt="1.11.1",ot=function(t,e){return new ot.fn.init(t,e)},st=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,at=/^-ms-/,rt=/-([\da-z])/gi,lt=function(t,e){return e.toUpperCase()}
ot.fn=ot.prototype={jquery:nt,constructor:ot,selector:"",length:0,toArray:function(){return Q.call(this)},get:function(t){return null!=t?0>t?this[t+this.length]:this[t]:Q.call(this)},pushStack:function(t){var e=ot.merge(this.constructor(),t)
return e.prevObject=this,e.context=this.context,e},each:function(t,e){return ot.each(this,t,e)},map:function(t){return this.pushStack(ot.map(this,function(e,i){return t.call(e,i,e)}))},slice:function(){return this.pushStack(Q.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,i=+t+(0>t?e:0)
return this.pushStack(i>=0&&e>i?[this[i]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:K,sort:X.sort,splice:X.splice},ot.extend=ot.fn.extend=function(){var t,e,i,n,o,s,a=arguments[0]||{},r=1,l=arguments.length,c=!1
for("boolean"==typeof a&&(c=a,a=arguments[r]||{},r++),"object"==typeof a||ot.isFunction(a)||(a={}),r===l&&(a=this,r--);l>r;r++)if(null!=(o=arguments[r]))for(n in o)t=a[n],i=o[n],a!==i&&(c&&i&&(ot.isPlainObject(i)||(e=ot.isArray(i)))?(e?(e=!1,s=t&&ot.isArray(t)?t:[]):s=t&&ot.isPlainObject(t)?t:{},a[n]=ot.extend(c,s,i)):void 0!==i&&(a[n]=i))
return a},ot.extend({expando:"jQuery"+(nt+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===ot.type(t)},isArray:Array.isArray||function(t){return"array"===ot.type(t)},isWindow:function(t){return null!=t&&t==t.window},isNumeric:function(t){return!ot.isArray(t)&&t-parseFloat(t)>=0},isEmptyObject:function(t){var e
for(e in t)return!1
return!0},isPlainObject:function(t){var e
if(!t||"object"!==ot.type(t)||t.nodeType||ot.isWindow(t))return!1
try{if(t.constructor&&!et.call(t,"constructor")&&!et.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}if(it.ownLast)for(e in t)return et.call(t,e)
for(e in t);return void 0===e||et.call(t,e)},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?Z[tt.call(t)]||"object":typeof t},globalEval:function(e){e&&ot.trim(e)&&(t.execScript||function(e){t.eval.call(t,e)})(e)},camelCase:function(t){return t.replace(at,"ms-").replace(rt,lt)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e,n){var o=0,s=t.length,a=i(t)
if(n){if(a)for(;s>o&&!1!==e.apply(t[o],n);o++);else for(o in t)if(!1===e.apply(t[o],n))break}else if(a)for(;s>o&&!1!==e.call(t[o],o,t[o]);o++);else for(o in t)if(!1===e.call(t[o],o,t[o]))break
return t},trim:function(t){return null==t?"":(t+"").replace(st,"")},makeArray:function(t,e){var n=e||[]
return null!=t&&(i(Object(t))?ot.merge(n,"string"==typeof t?[t]:t):K.call(n,t)),n},inArray:function(t,e,i){var n
if(e){if(J)return J.call(e,t,i)
for(n=e.length,i=i?0>i?Math.max(0,n+i):i:0;n>i;i++)if(i in e&&e[i]===t)return i}return-1},merge:function(t,e){for(var i=+e.length,n=0,o=t.length;i>n;)t[o++]=e[n++]
if(i!==i)for(;void 0!==e[n];)t[o++]=e[n++]
return t.length=o,t},grep:function(t,e,i){for(var n=[],o=0,s=t.length,a=!i;s>o;o++)!e(t[o],o)!==a&&n.push(t[o])
return n},map:function(t,e,n){var o,s=0,a=t.length,r=i(t),l=[]
if(r)for(;a>s;s++)null!=(o=e(t[s],s,n))&&l.push(o)
else for(s in t)null!=(o=e(t[s],s,n))&&l.push(o)
return G.apply([],l)},guid:1,proxy:function(t,e){var i,n,o
return"string"==typeof e&&(o=t[e],e=t,t=o),ot.isFunction(t)?(i=Q.call(arguments,2),n=function(){return t.apply(e||this,i.concat(Q.call(arguments)))},n.guid=t.guid=t.guid||ot.guid++,n):void 0},now:function(){return+new Date},support:it}),ot.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){Z["[object "+e+"]"]=e.toLowerCase()})
var ct=function(t){function e(t,e,i,n){var o,s,a,r,c,d,h,p,f,m
if((e?e.ownerDocument||e:F)!==N&&D(e),e=e||N,i=i||[],!t||"string"!=typeof t)return i
if(1!==(r=e.nodeType)&&9!==r)return[]
if(A&&!n){if(o=gt.exec(t))if(a=o[1]){if(9===r){if(!(s=e.getElementById(a))||!s.parentNode)return i
if(s.id===a)return i.push(s),i}else if(e.ownerDocument&&(s=e.ownerDocument.getElementById(a))&&L(e,s)&&s.id===a)return i.push(s),i}else{if(o[2])return K.apply(i,e.getElementsByTagName(t)),i
if((a=o[3])&&b.getElementsByClassName&&e.getElementsByClassName)return K.apply(i,e.getElementsByClassName(a)),i}if(b.qsa&&(!I||!I.test(t))){if(p=h=O,f=e,m=9===r&&t,1===r&&"object"!==e.nodeName.toLowerCase()){for(d=k(t),(h=e.getAttribute("id"))?p=h.replace(yt,"\\$&"):e.setAttribute("id",p),p="[id='"+p+"'] ",c=d.length;c--;)d[c]=p+u(d[c])
f=vt.test(t)&&l(e.parentNode)||e,m=d.join(",")}if(m)try{return K.apply(i,f.querySelectorAll(m)),i}catch(t){}finally{h||e.removeAttribute("id")}}}return $(t.replace(at,"$1"),e,i,n)}function i(){function t(i,n){return e.push(i+" ")>w.cacheLength&&delete t[e.shift()],t[i+" "]=n}var e=[]
return t}function n(t){return t[O]=!0,t}function o(t){var e=N.createElement("div")
try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function s(t,e){for(var i=t.split("|"),n=t.length;n--;)w.attrHandle[i[n]]=e}function a(t,e){var i=e&&t,n=i&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||B)-(~t.sourceIndex||B)
if(n)return n
if(i)for(;i=i.nextSibling;)if(i===e)return-1
return t?1:-1}function r(t){return n(function(e){return e=+e,n(function(i,n){for(var o,s=t([],i.length,e),a=s.length;a--;)i[o=s[a]]&&(i[o]=!(n[o]=i[o]))})})}function l(t){return t&&typeof t.getElementsByTagName!==U&&t}function c(){}function u(t){for(var e=0,i=t.length,n="";i>e;e++)n+=t[e].value
return n}function d(t,e,i){var n=e.dir,o=i&&"parentNode"===n,s=W++
return e.first?function(e,i,s){for(;e=e[n];)if(1===e.nodeType||o)return t(e,i,s)}:function(e,i,a){var r,l,c=[R,s]
if(a){for(;e=e[n];)if((1===e.nodeType||o)&&t(e,i,a))return!0}else for(;e=e[n];)if(1===e.nodeType||o){if(l=e[O]||(e[O]={}),(r=l[n])&&r[0]===R&&r[1]===s)return c[2]=r[2]
if(l[n]=c,c[2]=t(e,i,a))return!0}}}function h(t){return t.length>1?function(e,i,n){for(var o=t.length;o--;)if(!t[o](e,i,n))return!1
return!0}:t[0]}function p(t,i,n){for(var o=0,s=i.length;s>o;o++)e(t,i[o],n)
return n}function f(t,e,i,n,o){for(var s,a=[],r=0,l=t.length,c=null!=e;l>r;r++)(s=t[r])&&(!i||i(s,n,o))&&(a.push(s),c&&e.push(r))
return a}function m(t,e,i,o,s,a){return o&&!o[O]&&(o=m(o)),s&&!s[O]&&(s=m(s,a)),n(function(n,a,r,l){var c,u,d,h=[],m=[],g=a.length,v=n||p(e||"*",r.nodeType?[r]:r,[]),y=!t||!n&&e?v:f(v,h,t,r,l),b=i?s||(n?t:g||o)?[]:a:y
if(i&&i(y,b,r,l),o)for(c=f(b,m),o(c,[],r,l),u=c.length;u--;)(d=c[u])&&(b[m[u]]=!(y[m[u]]=d))
if(n){if(s||t){if(s){for(c=[],u=b.length;u--;)(d=b[u])&&c.push(y[u]=d)
s(null,b=[],c,l)}for(u=b.length;u--;)(d=b[u])&&(c=s?Z.call(n,d):h[u])>-1&&(n[c]=!(a[c]=d))}}else b=f(b===a?b.splice(g,b.length):b),s?s(null,a,b,l):K.apply(a,b)})}function g(t){for(var e,i,n,o=t.length,s=w.relative[t[0].type],a=s||w.relative[" "],r=s?1:0,l=d(function(t){return t===e},a,!0),c=d(function(t){return Z.call(e,t)>-1},a,!0),p=[function(t,i,n){return!s&&(n||i!==T)||((e=i).nodeType?l(t,i,n):c(t,i,n))}];o>r;r++)if(i=w.relative[t[r].type])p=[d(h(p),i)]
else{if(i=w.filter[t[r].type].apply(null,t[r].matches),i[O]){for(n=++r;o>n&&!w.relative[t[n].type];n++);return m(r>1&&h(p),r>1&&u(t.slice(0,r-1).concat({value:" "===t[r-2].type?"*":""})).replace(at,"$1"),i,n>r&&g(t.slice(r,n)),o>n&&g(t=t.slice(n)),o>n&&u(t))}p.push(i)}return h(p)}function v(t,i){var o=i.length>0,s=t.length>0,a=function(n,a,r,l,c){var u,d,h,p=0,m="0",g=n&&[],v=[],y=T,b=n||s&&w.find.TAG("*",c),x=R+=null==y?1:Math.random()||.1,C=b.length
for(c&&(T=a!==N&&a);m!==C&&null!=(u=b[m]);m++){if(s&&u){for(d=0;h=t[d++];)if(h(u,a,r)){l.push(u)
break}c&&(R=x)}o&&((u=!h&&u)&&p--,n&&g.push(u))}if(p+=m,o&&m!==p){for(d=0;h=i[d++];)h(g,v,a,r)
if(n){if(p>0)for(;m--;)g[m]||v[m]||(v[m]=Q.call(l))
v=f(v)}K.apply(l,v),c&&!n&&v.length>0&&p+i.length>1&&e.uniqueSort(l)}return c&&(R=x,T=y),g}
return o?n(a):a}var y,b,w,x,C,k,_,$,T,E,S,D,N,P,A,I,j,M,L,O="sizzle"+-new Date,F=t.document,R=0,W=0,H=i(),V=i(),z=i(),q=function(t,e){return t===e&&(S=!0),0},U="undefined",B=1<<31,Y={}.hasOwnProperty,X=[],Q=X.pop,G=X.push,K=X.push,J=X.slice,Z=X.indexOf||function(t){for(var e=0,i=this.length;i>e;e++)if(this[e]===t)return e
return-1},tt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",et="[\\x20\\t\\r\\n\\f]",it="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",nt=it.replace("w","w#"),ot="\\["+et+"*("+it+")(?:"+et+"*([*^$|!~]?=)"+et+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+nt+"))|)"+et+"*\\]",st=":("+it+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ot+")*)|.*)\\)|)",at=new RegExp("^"+et+"+|((?:^|[^\\\\])(?:\\\\.)*)"+et+"+$","g"),rt=new RegExp("^"+et+"*,"+et+"*"),lt=new RegExp("^"+et+"*([>+~]|"+et+")"+et+"*"),ct=new RegExp("="+et+"*([^\\]'\"]*?)"+et+"*\\]","g"),ut=new RegExp(st),dt=new RegExp("^"+nt+"$"),ht={ID:new RegExp("^#("+it+")"),CLASS:new RegExp("^\\.("+it+")"),TAG:new RegExp("^("+it.replace("w","w*")+")"),ATTR:new RegExp("^"+ot),PSEUDO:new RegExp("^"+st),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+et+"*(even|odd|(([+-]|)(\\d*)n|)"+et+"*(?:([+-]|)"+et+"*(\\d+)|))"+et+"*\\)|)","i"),bool:new RegExp("^(?:"+tt+")$","i"),needsContext:new RegExp("^"+et+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+et+"*((?:-\\d)?\\d*)"+et+"*\\)|)(?=[^-]|$)","i")},pt=/^(?:input|select|textarea|button)$/i,ft=/^h\d$/i,mt=/^[^{]+\{\s*\[native \w/,gt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,vt=/[+~]/,yt=/'|\\/g,bt=new RegExp("\\\\([\\da-f]{1,6}"+et+"?|("+et+")|.)","ig"),wt=function(t,e,i){var n="0x"+e-65536
return n!==n||i?e:0>n?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)}
try{K.apply(X=J.call(F.childNodes),F.childNodes),X[F.childNodes.length].nodeType}catch(t){K={apply:X.length?function(t,e){G.apply(t,J.call(e))}:function(t,e){for(var i=t.length,n=0;t[i++]=e[n++];);t.length=i-1}}}b=e.support={},C=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement
return!!e&&"HTML"!==e.nodeName},D=e.setDocument=function(t){var e,i=t?t.ownerDocument||t:F,n=i.defaultView
return i!==N&&9===i.nodeType&&i.documentElement?(N=i,P=i.documentElement,A=!C(i),n&&n!==n.top&&(n.addEventListener?n.addEventListener("unload",function(){D()},!1):n.attachEvent&&n.attachEvent("onunload",function(){D()})),b.attributes=o(function(t){return t.className="i",!t.getAttribute("className")}),b.getElementsByTagName=o(function(t){return t.appendChild(i.createComment("")),!t.getElementsByTagName("*").length}),b.getElementsByClassName=mt.test(i.getElementsByClassName)&&o(function(t){return t.innerHTML="<div class='a'></div><div class='a i'></div>",t.firstChild.className="i",2===t.getElementsByClassName("i").length}),b.getById=o(function(t){return P.appendChild(t).id=O,!i.getElementsByName||!i.getElementsByName(O).length}),b.getById?(w.find.ID=function(t,e){if(typeof e.getElementById!==U&&A){var i=e.getElementById(t)
return i&&i.parentNode?[i]:[]}},w.filter.ID=function(t){var e=t.replace(bt,wt)
return function(t){return t.getAttribute("id")===e}}):(delete w.find.ID,w.filter.ID=function(t){var e=t.replace(bt,wt)
return function(t){var i=typeof t.getAttributeNode!==U&&t.getAttributeNode("id")
return i&&i.value===e}}),w.find.TAG=b.getElementsByTagName?function(t,e){return typeof e.getElementsByTagName!==U?e.getElementsByTagName(t):void 0}:function(t,e){var i,n=[],o=0,s=e.getElementsByTagName(t)
if("*"===t){for(;i=s[o++];)1===i.nodeType&&n.push(i)
return n}return s},w.find.CLASS=b.getElementsByClassName&&function(t,e){return typeof e.getElementsByClassName!==U&&A?e.getElementsByClassName(t):void 0},j=[],I=[],(b.qsa=mt.test(i.querySelectorAll))&&(o(function(t){t.innerHTML="<select msallowclip=''><option selected=''></option></select>",t.querySelectorAll("[msallowclip^='']").length&&I.push("[*^$]="+et+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||I.push("\\["+et+"*(?:value|"+tt+")"),t.querySelectorAll(":checked").length||I.push(":checked")}),o(function(t){var e=i.createElement("input")
e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&I.push("name"+et+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||I.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),I.push(",.*:")})),(b.matchesSelector=mt.test(M=P.matches||P.webkitMatchesSelector||P.mozMatchesSelector||P.oMatchesSelector||P.msMatchesSelector))&&o(function(t){b.disconnectedMatch=M.call(t,"div"),M.call(t,"[s!='']:x"),j.push("!=",st)}),I=I.length&&new RegExp(I.join("|")),j=j.length&&new RegExp(j.join("|")),e=mt.test(P.compareDocumentPosition),L=e||mt.test(P.contains)?function(t,e){var i=9===t.nodeType?t.documentElement:t,n=e&&e.parentNode
return t===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0
return!1},q=e?function(t,e){if(t===e)return S=!0,0
var n=!t.compareDocumentPosition-!e.compareDocumentPosition
return n||(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&n||!b.sortDetached&&e.compareDocumentPosition(t)===n?t===i||t.ownerDocument===F&&L(F,t)?-1:e===i||e.ownerDocument===F&&L(F,e)?1:E?Z.call(E,t)-Z.call(E,e):0:4&n?-1:1)}:function(t,e){if(t===e)return S=!0,0
var n,o=0,s=t.parentNode,r=e.parentNode,l=[t],c=[e]
if(!s||!r)return t===i?-1:e===i?1:s?-1:r?1:E?Z.call(E,t)-Z.call(E,e):0
if(s===r)return a(t,e)
for(n=t;n=n.parentNode;)l.unshift(n)
for(n=e;n=n.parentNode;)c.unshift(n)
for(;l[o]===c[o];)o++
return o?a(l[o],c[o]):l[o]===F?-1:c[o]===F?1:0},i):N},e.matches=function(t,i){return e(t,null,null,i)},e.matchesSelector=function(t,i){if((t.ownerDocument||t)!==N&&D(t),i=i.replace(ct,"='$1']"),!(!b.matchesSelector||!A||j&&j.test(i)||I&&I.test(i)))try{var n=M.call(t,i)
if(n||b.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){}return e(i,N,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==N&&D(t),L(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==N&&D(t)
var i=w.attrHandle[e.toLowerCase()],n=i&&Y.call(w.attrHandle,e.toLowerCase())?i(t,e,!A):void 0
return void 0!==n?n:b.attributes||!A?t.getAttribute(e):(n=t.getAttributeNode(e))&&n.specified?n.value:null},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,i=[],n=0,o=0
if(S=!b.detectDuplicates,E=!b.sortStable&&t.slice(0),t.sort(q),S){for(;e=t[o++];)e===t[o]&&(n=i.push(o))
for(;n--;)t.splice(i[n],1)}return E=null,t},x=e.getText=function(t){var e,i="",n=0,o=t.nodeType
if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent
for(t=t.firstChild;t;t=t.nextSibling)i+=x(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[n++];)i+=x(e)
return i},w=e.selectors={cacheLength:50,createPseudo:n,match:ht,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(bt,wt),t[3]=(t[3]||t[4]||t[5]||"").replace(bt,wt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||e.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&e.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2]
return ht.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&ut.test(i)&&(e=k(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(bt,wt).toLowerCase()
return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=H[t+" "]
return e||(e=new RegExp("(^|"+et+")"+t+"("+et+"|$)"))&&H(t,function(t){return e.test("string"==typeof t.className&&t.className||typeof t.getAttribute!==U&&t.getAttribute("class")||"")})},ATTR:function(t,i,n){return function(o){var s=e.attr(o,t)
return null==s?"!="===i:!i||(s+="","="===i?s===n:"!="===i?s!==n:"^="===i?n&&0===s.indexOf(n):"*="===i?n&&s.indexOf(n)>-1:"$="===i?n&&s.slice(-n.length)===n:"~="===i?(" "+s+" ").indexOf(n)>-1:"|="===i&&(s===n||s.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,i,n,o){var s="nth"!==t.slice(0,3),a="last"!==t.slice(-4),r="of-type"===e
return 1===n&&0===o?function(t){return!!t.parentNode}:function(e,i,l){var c,u,d,h,p,f,m=s!==a?"nextSibling":"previousSibling",g=e.parentNode,v=r&&e.nodeName.toLowerCase(),y=!l&&!r
if(g){if(s){for(;m;){for(d=e;d=d[m];)if(r?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1
f=m="only"===t&&!f&&"nextSibling"}return!0}if(f=[a?g.firstChild:g.lastChild],a&&y){for(u=g[O]||(g[O]={}),c=u[t]||[],p=c[0]===R&&c[1],h=c[0]===R&&c[2],d=p&&g.childNodes[p];d=++p&&d&&d[m]||(h=p=0)||f.pop();)if(1===d.nodeType&&++h&&d===e){u[t]=[R,p,h]
break}}else if(y&&(c=(e[O]||(e[O]={}))[t])&&c[0]===R)h=c[1]
else for(;(d=++p&&d&&d[m]||(h=p=0)||f.pop())&&((r?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++h||(y&&((d[O]||(d[O]={}))[t]=[R,h]),d!==e)););return(h-=o)===n||h%n==0&&h/n>=0}}},PSEUDO:function(t,i){var o,s=w.pseudos[t]||w.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t)
return s[O]?s(i):s.length>1?(o=[t,t,"",i],w.setFilters.hasOwnProperty(t.toLowerCase())?n(function(t,e){for(var n,o=s(t,i),a=o.length;a--;)n=Z.call(t,o[a]),t[n]=!(e[n]=o[a])}):function(t){return s(t,0,o)}):s}},pseudos:{not:n(function(t){var e=[],i=[],o=_(t.replace(at,"$1"))
return o[O]?n(function(t,e,i,n){for(var s,a=o(t,null,n,[]),r=t.length;r--;)(s=a[r])&&(t[r]=!(e[r]=s))}):function(t,n,s){return e[0]=t,o(e,null,s,i),!i.pop()}}),has:n(function(t){return function(i){return e(t,i).length>0}}),contains:n(function(t){return function(e){return(e.textContent||e.innerText||x(e)).indexOf(t)>-1}}),lang:n(function(t){return dt.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(bt,wt).toLowerCase(),function(e){var i
do{if(i=A?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(i=i.toLowerCase())===t||0===i.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType)
return!1}}),target:function(e){var i=t.location&&t.location.hash
return i&&i.slice(1)===e.id},root:function(t){return t===P},focus:function(t){return t===N.activeElement&&(!N.hasFocus||N.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return!1===t.disabled},disabled:function(t){return!0===t.disabled},checked:function(t){var e=t.nodeName.toLowerCase()
return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1
return!0},parent:function(t){return!w.pseudos.empty(t)},header:function(t){return ft.test(t.nodeName)},input:function(t){return pt.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase()
return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e
return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:r(function(){return[0]}),last:r(function(t,e){return[e-1]}),eq:r(function(t,e,i){return[0>i?i+e:i]}),even:r(function(t,e){for(var i=0;e>i;i+=2)t.push(i)
return t}),odd:r(function(t,e){for(var i=1;e>i;i+=2)t.push(i)
return t}),lt:r(function(t,e,i){for(var n=0>i?i+e:i;--n>=0;)t.push(n)
return t}),gt:r(function(t,e,i){for(var n=0>i?i+e:i;++n<e;)t.push(n)
return t})}},w.pseudos.nth=w.pseudos.eq
for(y in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[y]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(y)
for(y in{submit:!0,reset:!0})w.pseudos[y]=function(t){return function(e){var i=e.nodeName.toLowerCase()
return("input"===i||"button"===i)&&e.type===t}}(y)
return c.prototype=w.filters=w.pseudos,w.setFilters=new c,k=e.tokenize=function(t,i){var n,o,s,a,r,l,c,u=V[t+" "]
if(u)return i?0:u.slice(0)
for(r=t,l=[],c=w.preFilter;r;){(!n||(o=rt.exec(r)))&&(o&&(r=r.slice(o[0].length)||r),l.push(s=[])),n=!1,(o=lt.exec(r))&&(n=o.shift(),s.push({value:n,type:o[0].replace(at," ")}),r=r.slice(n.length))
for(a in w.filter)!(o=ht[a].exec(r))||c[a]&&!(o=c[a](o))||(n=o.shift(),s.push({value:n,type:a,matches:o}),r=r.slice(n.length))
if(!n)break}return i?r.length:r?e.error(t):V(t,l).slice(0)},_=e.compile=function(t,e){var i,n=[],o=[],s=z[t+" "]
if(!s){for(e||(e=k(t)),i=e.length;i--;)s=g(e[i]),s[O]?n.push(s):o.push(s)
s=z(t,v(o,n)),s.selector=t}return s},$=e.select=function(t,e,i,n){var o,s,a,r,c,d="function"==typeof t&&t,h=!n&&k(t=d.selector||t)
if(i=i||[],1===h.length){if(s=h[0]=h[0].slice(0),s.length>2&&"ID"===(a=s[0]).type&&b.getById&&9===e.nodeType&&A&&w.relative[s[1].type]){if(!(e=(w.find.ID(a.matches[0].replace(bt,wt),e)||[])[0]))return i
d&&(e=e.parentNode),t=t.slice(s.shift().value.length)}for(o=ht.needsContext.test(t)?0:s.length;o--&&(a=s[o],!w.relative[r=a.type]);)if((c=w.find[r])&&(n=c(a.matches[0].replace(bt,wt),vt.test(s[0].type)&&l(e.parentNode)||e))){if(s.splice(o,1),!(t=n.length&&u(s)))return K.apply(i,n),i
break}}return(d||_(t,h))(n,e,!A,i,vt.test(t)&&l(e.parentNode)||e),i},b.sortStable=O.split("").sort(q).join("")===O,b.detectDuplicates=!!S,D(),b.sortDetached=o(function(t){return 1&t.compareDocumentPosition(N.createElement("div"))}),o(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||s("type|href|height|width",function(t,e,i){return i?void 0:t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),b.attributes&&o(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||s("value",function(t,e,i){return i||"input"!==t.nodeName.toLowerCase()?void 0:t.defaultValue}),o(function(t){return null==t.getAttribute("disabled")})||s(tt,function(t,e,i){var n
return i?void 0:!0===t[e]?e.toLowerCase():(n=t.getAttributeNode(e))&&n.specified?n.value:null}),e}(t)
ot.find=ct,ot.expr=ct.selectors,ot.expr[":"]=ot.expr.pseudos,ot.unique=ct.uniqueSort,ot.text=ct.getText,ot.isXMLDoc=ct.isXML,ot.contains=ct.contains
var ut=ot.expr.match.needsContext,dt=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,ht=/^.[^:#\[\.,]*$/
ot.filter=function(t,e,i){var n=e[0]
return i&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?ot.find.matchesSelector(n,t)?[n]:[]:ot.find.matches(t,ot.grep(e,function(t){return 1===t.nodeType}))},ot.fn.extend({find:function(t){var e,i=[],n=this,o=n.length
if("string"!=typeof t)return this.pushStack(ot(t).filter(function(){for(e=0;o>e;e++)if(ot.contains(n[e],this))return!0}))
for(e=0;o>e;e++)ot.find(t,n[e],i)
return i=this.pushStack(o>1?ot.unique(i):i),i.selector=this.selector?this.selector+" "+t:t,i},filter:function(t){return this.pushStack(n(this,t||[],!1))},not:function(t){return this.pushStack(n(this,t||[],!0))},is:function(t){return!!n(this,"string"==typeof t&&ut.test(t)?ot(t):t||[],!1).length}})
var pt,ft=t.document,mt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(ot.fn.init=function(t,e){var i,n
if(!t)return this
if("string"==typeof t){if(!(i="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&t.length>=3?[null,t,null]:mt.exec(t))||!i[1]&&e)return!e||e.jquery?(e||pt).find(t):this.constructor(e).find(t)
if(i[1]){if(e=e instanceof ot?e[0]:e,ot.merge(this,ot.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:ft,!0)),dt.test(i[1])&&ot.isPlainObject(e))for(i in e)ot.isFunction(this[i])?this[i](e[i]):this.attr(i,e[i])
return this}if((n=ft.getElementById(i[2]))&&n.parentNode){if(n.id!==i[2])return pt.find(t)
this.length=1,this[0]=n}return this.context=ft,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):ot.isFunction(t)?void 0!==pt.ready?pt.ready(t):t(ot):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),ot.makeArray(t,this))}).prototype=ot.fn,pt=ot(ft)
var gt=/^(?:parents|prev(?:Until|All))/,vt={children:!0,contents:!0,next:!0,prev:!0}
ot.extend({dir:function(t,e,i){for(var n=[],o=t[e];o&&9!==o.nodeType&&(void 0===i||1!==o.nodeType||!ot(o).is(i));)1===o.nodeType&&n.push(o),o=o[e]
return n},sibling:function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t)
return i}}),ot.fn.extend({has:function(t){var e,i=ot(t,this),n=i.length
return this.filter(function(){for(e=0;n>e;e++)if(ot.contains(this,i[e]))return!0})},closest:function(t,e){for(var i,n=0,o=this.length,s=[],a=ut.test(t)||"string"!=typeof t?ot(t,e||this.context):0;o>n;n++)for(i=this[n];i&&i!==e;i=i.parentNode)if(i.nodeType<11&&(a?a.index(i)>-1:1===i.nodeType&&ot.find.matchesSelector(i,t))){s.push(i)
break}return this.pushStack(s.length>1?ot.unique(s):s)},index:function(t){return t?"string"==typeof t?ot.inArray(this[0],ot(t)):ot.inArray(t.jquery?t[0]:t,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(ot.unique(ot.merge(this.get(),ot(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),ot.each({parent:function(t){var e=t.parentNode
return e&&11!==e.nodeType?e:null},parents:function(t){return ot.dir(t,"parentNode")},parentsUntil:function(t,e,i){return ot.dir(t,"parentNode",i)},next:function(t){return o(t,"nextSibling")},prev:function(t){return o(t,"previousSibling")},nextAll:function(t){return ot.dir(t,"nextSibling")},prevAll:function(t){return ot.dir(t,"previousSibling")},nextUntil:function(t,e,i){return ot.dir(t,"nextSibling",i)},prevUntil:function(t,e,i){return ot.dir(t,"previousSibling",i)},siblings:function(t){return ot.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return ot.sibling(t.firstChild)},contents:function(t){return ot.nodeName(t,"iframe")?t.contentDocument||t.contentWindow.document:ot.merge([],t.childNodes)}},function(t,e){ot.fn[t]=function(i,n){var o=ot.map(this,e,i)
return"Until"!==t.slice(-5)&&(n=i),n&&"string"==typeof n&&(o=ot.filter(n,o)),this.length>1&&(vt[t]||(o=ot.unique(o)),gt.test(t)&&(o=o.reverse())),this.pushStack(o)}})
var yt=/\S+/g,bt={}
ot.Callbacks=function(t){t="string"==typeof t?bt[t]||s(t):ot.extend({},t)
var e,i,n,o,a,r,l=[],c=!t.once&&[],u=function(s){for(i=t.memory&&s,n=!0,a=r||0,r=0,o=l.length,e=!0;l&&o>a;a++)if(!1===l[a].apply(s[0],s[1])&&t.stopOnFalse){i=!1
break}e=!1,l&&(c?c.length&&u(c.shift()):i?l=[]:d.disable())},d={add:function(){if(l){var n=l.length
!function e(i){ot.each(i,function(i,n){var o=ot.type(n)
"function"===o?t.unique&&d.has(n)||l.push(n):n&&n.length&&"string"!==o&&e(n)})}(arguments),e?o=l.length:i&&(r=n,u(i))}return this},remove:function(){return l&&ot.each(arguments,function(t,i){for(var n;(n=ot.inArray(i,l,n))>-1;)l.splice(n,1),e&&(o>=n&&o--,a>=n&&a--)}),this},has:function(t){return t?ot.inArray(t,l)>-1:!(!l||!l.length)},empty:function(){return l=[],o=0,this},disable:function(){return l=c=i=void 0,this},disabled:function(){return!l},lock:function(){return c=void 0,i||d.disable(),this},locked:function(){return!c},fireWith:function(t,i){return!l||n&&!c||(i=i||[],i=[t,i.slice?i.slice():i],e?c.push(i):u(i)),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!n}}
return d},ot.extend({Deferred:function(t){var e=[["resolve","done",ot.Callbacks("once memory"),"resolved"],["reject","fail",ot.Callbacks("once memory"),"rejected"],["notify","progress",ot.Callbacks("memory")]],i="pending",n={state:function(){return i},always:function(){return o.done(arguments).fail(arguments),this},then:function(){var t=arguments
return ot.Deferred(function(i){ot.each(e,function(e,s){var a=ot.isFunction(t[e])&&t[e]
o[s[1]](function(){var t=a&&a.apply(this,arguments)
t&&ot.isFunction(t.promise)?t.promise().done(i.resolve).fail(i.reject).progress(i.notify):i[s[0]+"With"](this===n?i.promise():this,a?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?ot.extend(t,n):n}},o={}
return n.pipe=n.then,ot.each(e,function(t,s){var a=s[2],r=s[3]
n[s[1]]=a.add,r&&a.add(function(){i=r},e[1^t][2].disable,e[2][2].lock),o[s[0]]=function(){return o[s[0]+"With"](this===o?n:this,arguments),this},o[s[0]+"With"]=a.fireWith}),n.promise(o),t&&t.call(o,o),o},when:function(t){var e,i,n,o=0,s=Q.call(arguments),a=s.length,r=1!==a||t&&ot.isFunction(t.promise)?a:0,l=1===r?t:ot.Deferred(),c=function(t,i,n){return function(o){i[t]=this,n[t]=arguments.length>1?Q.call(arguments):o,n===e?l.notifyWith(i,n):--r||l.resolveWith(i,n)}}
if(a>1)for(e=new Array(a),i=new Array(a),n=new Array(a);a>o;o++)s[o]&&ot.isFunction(s[o].promise)?s[o].promise().done(c(o,n,s)).fail(l.reject).progress(c(o,i,e)):--r
return r||l.resolveWith(n,s),l.promise()}})
var wt
ot.fn.ready=function(t){return ot.ready.promise().done(t),this},ot.extend({isReady:!1,readyWait:1,holdReady:function(t){t?ot.readyWait++:ot.ready(!0)},ready:function(t){if(!0===t?!--ot.readyWait:!ot.isReady){if(!ft.body)return setTimeout(ot.ready)
ot.isReady=!0,!0!==t&&--ot.readyWait>0||(wt.resolveWith(ft,[ot]),ot.fn.triggerHandler&&(ot(ft).triggerHandler("ready"),ot(ft).off("ready")))}}}),ot.ready.promise=function(e){if(!wt)if(wt=ot.Deferred(),"complete"===ft.readyState)setTimeout(ot.ready)
else if(ft.addEventListener)ft.addEventListener("DOMContentLoaded",r,!1),t.addEventListener("load",r,!1)
else{ft.attachEvent("onreadystatechange",r),t.attachEvent("onload",r)
var i=!1
try{i=null==t.frameElement&&ft.documentElement}catch(t){}i&&i.doScroll&&function t(){if(!ot.isReady){try{i.doScroll("left")}catch(e){return setTimeout(t,50)}a(),ot.ready()}}()}return wt.promise(e)}
var xt,Ct="undefined"
for(xt in ot(it))break
it.ownLast="0"!==xt,it.inlineBlockNeedsLayout=!1,ot(function(){var t,e,i,n;(i=ft.getElementsByTagName("body")[0])&&i.style&&(e=ft.createElement("div"),n=ft.createElement("div"),n.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",i.appendChild(n).appendChild(e),typeof e.style.zoom!==Ct&&(e.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",it.inlineBlockNeedsLayout=t=3===e.offsetWidth,t&&(i.style.zoom=1)),i.removeChild(n))}),function(){var t=ft.createElement("div")
if(null==it.deleteExpando){it.deleteExpando=!0
try{delete t.test}catch(t){it.deleteExpando=!1}}t=null}(),ot.acceptData=function(t){var e=ot.noData[(t.nodeName+" ").toLowerCase()],i=+t.nodeType||1
return(1===i||9===i)&&(!e||!0!==e&&t.getAttribute("classid")===e)}
var kt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,_t=/([A-Z])/g
ot.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(t){return!!(t=t.nodeType?ot.cache[t[ot.expando]]:t[ot.expando])&&!c(t)},data:function(t,e,i){return u(t,e,i)},removeData:function(t,e){return d(t,e)},_data:function(t,e,i){return u(t,e,i,!0)},_removeData:function(t,e){return d(t,e,!0)}}),ot.fn.extend({data:function(t,e){var i,n,o,s=this[0],a=s&&s.attributes
if(void 0===t){if(this.length&&(o=ot.data(s),1===s.nodeType&&!ot._data(s,"parsedAttrs"))){for(i=a.length;i--;)a[i]&&(n=a[i].name,0===n.indexOf("data-")&&(n=ot.camelCase(n.slice(5)),l(s,n,o[n])))
ot._data(s,"parsedAttrs",!0)}return o}return"object"==typeof t?this.each(function(){ot.data(this,t)}):arguments.length>1?this.each(function(){ot.data(this,t,e)}):s?l(s,t,ot.data(s,t)):void 0},removeData:function(t){return this.each(function(){ot.removeData(this,t)})}}),ot.extend({queue:function(t,e,i){var n
return t?(e=(e||"fx")+"queue",n=ot._data(t,e),i&&(!n||ot.isArray(i)?n=ot._data(t,e,ot.makeArray(i)):n.push(i)),n||[]):void 0},dequeue:function(t,e){e=e||"fx"
var i=ot.queue(t,e),n=i.length,o=i.shift(),s=ot._queueHooks(t,e),a=function(){ot.dequeue(t,e)}
"inprogress"===o&&(o=i.shift(),n--),o&&("fx"===e&&i.unshift("inprogress"),delete s.stop,o.call(t,a,s)),!n&&s&&s.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks"
return ot._data(t,i)||ot._data(t,i,{empty:ot.Callbacks("once memory").add(function(){ot._removeData(t,e+"queue"),ot._removeData(t,i)})})}}),ot.fn.extend({queue:function(t,e){var i=2
return"string"!=typeof t&&(e=t,t="fx",i--),arguments.length<i?ot.queue(this[0],t):void 0===e?this:this.each(function(){var i=ot.queue(this,t,e)
ot._queueHooks(this,t),"fx"===t&&"inprogress"!==i[0]&&ot.dequeue(this,t)})},dequeue:function(t){return this.each(function(){ot.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var i,n=1,o=ot.Deferred(),s=this,a=this.length,r=function(){--n||o.resolveWith(s,[s])}
for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)(i=ot._data(s[a],t+"queueHooks"))&&i.empty&&(n++,i.empty.add(r))
return r(),o.promise(e)}})
var $t=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Tt=["Top","Right","Bottom","Left"],Et=function(t,e){return t=e||t,"none"===ot.css(t,"display")||!ot.contains(t.ownerDocument,t)},St=ot.access=function(t,e,i,n,o,s,a){var r=0,l=t.length,c=null==i
if("object"===ot.type(i)){o=!0
for(r in i)ot.access(t,e,r,i[r],!0,s,a)}else if(void 0!==n&&(o=!0,ot.isFunction(n)||(a=!0),c&&(a?(e.call(t,n),e=null):(c=e,e=function(t,e,i){return c.call(ot(t),i)})),e))for(;l>r;r++)e(t[r],i,a?n:n.call(t[r],r,e(t[r],i)))
return o?t:c?e.call(t):l?e(t[0],i):s},Dt=/^(?:checkbox|radio)$/i
!function(){var t=ft.createElement("input"),e=ft.createElement("div"),i=ft.createDocumentFragment()
if(e.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",it.leadingWhitespace=3===e.firstChild.nodeType,it.tbody=!e.getElementsByTagName("tbody").length,it.htmlSerialize=!!e.getElementsByTagName("link").length,it.html5Clone="<:nav></:nav>"!==ft.createElement("nav").cloneNode(!0).outerHTML,t.type="checkbox",t.checked=!0,i.appendChild(t),it.appendChecked=t.checked,e.innerHTML="<textarea>x</textarea>",it.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,i.appendChild(e),e.innerHTML="<input type='radio' checked='checked' name='t'/>",it.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,it.noCloneEvent=!0,e.attachEvent&&(e.attachEvent("onclick",function(){it.noCloneEvent=!1}),e.cloneNode(!0).click()),null==it.deleteExpando){it.deleteExpando=!0
try{delete e.test}catch(t){it.deleteExpando=!1}}}(),function(){var e,i,n=ft.createElement("div")
for(e in{submit:!0,change:!0,focusin:!0})i="on"+e,(it[e+"Bubbles"]=i in t)||(n.setAttribute(i,"t"),it[e+"Bubbles"]=!1===n.attributes[i].expando)
n=null}()
var Nt=/^(?:input|select|textarea)$/i,Pt=/^key/,At=/^(?:mouse|pointer|contextmenu)|click/,It=/^(?:focusinfocus|focusoutblur)$/,jt=/^([^.]*)(?:\.(.+)|)$/
ot.event={global:{},add:function(t,e,i,n,o){var s,a,r,l,c,u,d,h,p,f,m,g=ot._data(t)
if(g){for(i.handler&&(l=i,i=l.handler,o=l.selector),i.guid||(i.guid=ot.guid++),(a=g.events)||(a=g.events={}),(u=g.handle)||(u=g.handle=function(t){return typeof ot===Ct||t&&ot.event.triggered===t.type?void 0:ot.event.dispatch.apply(u.elem,arguments)},u.elem=t),e=(e||"").match(yt)||[""],r=e.length;r--;)s=jt.exec(e[r])||[],p=m=s[1],f=(s[2]||"").split(".").sort(),p&&(c=ot.event.special[p]||{},p=(o?c.delegateType:c.bindType)||p,c=ot.event.special[p]||{},d=ot.extend({type:p,origType:m,data:n,handler:i,guid:i.guid,selector:o,needsContext:o&&ot.expr.match.needsContext.test(o),namespace:f.join(".")},l),(h=a[p])||(h=a[p]=[],h.delegateCount=0,c.setup&&!1!==c.setup.call(t,n,f,u)||(t.addEventListener?t.addEventListener(p,u,!1):t.attachEvent&&t.attachEvent("on"+p,u))),c.add&&(c.add.call(t,d),d.handler.guid||(d.handler.guid=i.guid)),o?h.splice(h.delegateCount++,0,d):h.push(d),ot.event.global[p]=!0)
t=null}},remove:function(t,e,i,n,o){var s,a,r,l,c,u,d,h,p,f,m,g=ot.hasData(t)&&ot._data(t)
if(g&&(u=g.events)){for(e=(e||"").match(yt)||[""],c=e.length;c--;)if(r=jt.exec(e[c])||[],p=m=r[1],f=(r[2]||"").split(".").sort(),p){for(d=ot.event.special[p]||{},p=(n?d.delegateType:d.bindType)||p,h=u[p]||[],r=r[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=s=h.length;s--;)a=h[s],!o&&m!==a.origType||i&&i.guid!==a.guid||r&&!r.test(a.namespace)||n&&n!==a.selector&&("**"!==n||!a.selector)||(h.splice(s,1),a.selector&&h.delegateCount--,d.remove&&d.remove.call(t,a))
l&&!h.length&&(d.teardown&&!1!==d.teardown.call(t,f,g.handle)||ot.removeEvent(t,p,g.handle),delete u[p])}else for(p in u)ot.event.remove(t,p+e[c],i,n,!0)
ot.isEmptyObject(u)&&(delete g.handle,ot._removeData(t,"events"))}},trigger:function(e,i,n,o){var s,a,r,l,c,u,d,h=[n||ft],p=et.call(e,"type")?e.type:e,f=et.call(e,"namespace")?e.namespace.split("."):[]
if(r=u=n=n||ft,3!==n.nodeType&&8!==n.nodeType&&!It.test(p+ot.event.triggered)&&(p.indexOf(".")>=0&&(f=p.split("."),p=f.shift(),f.sort()),a=p.indexOf(":")<0&&"on"+p,e=e[ot.expando]?e:new ot.Event(p,"object"==typeof e&&e),e.isTrigger=o?2:3,e.namespace=f.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),i=null==i?[e]:ot.makeArray(i,[e]),c=ot.event.special[p]||{},o||!c.trigger||!1!==c.trigger.apply(n,i))){if(!o&&!c.noBubble&&!ot.isWindow(n)){for(l=c.delegateType||p,It.test(l+p)||(r=r.parentNode);r;r=r.parentNode)h.push(r),u=r
u===(n.ownerDocument||ft)&&h.push(u.defaultView||u.parentWindow||t)}for(d=0;(r=h[d++])&&!e.isPropagationStopped();)e.type=d>1?l:c.bindType||p,s=(ot._data(r,"events")||{})[e.type]&&ot._data(r,"handle"),s&&s.apply(r,i),(s=a&&r[a])&&s.apply&&ot.acceptData(r)&&(e.result=s.apply(r,i),!1===e.result&&e.preventDefault())
if(e.type=p,!o&&!e.isDefaultPrevented()&&(!c._default||!1===c._default.apply(h.pop(),i))&&ot.acceptData(n)&&a&&n[p]&&!ot.isWindow(n)){u=n[a],u&&(n[a]=null),ot.event.triggered=p
try{n[p]()}catch(t){}ot.event.triggered=void 0,u&&(n[a]=u)}return e.result}},dispatch:function(t){t=ot.event.fix(t)
var e,i,n,o,s,a=[],r=Q.call(arguments),l=(ot._data(this,"events")||{})[t.type]||[],c=ot.event.special[t.type]||{}
if(r[0]=t,t.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,t)){for(a=ot.event.handlers.call(this,t,l),e=0;(o=a[e++])&&!t.isPropagationStopped();)for(t.currentTarget=o.elem,s=0;(n=o.handlers[s++])&&!t.isImmediatePropagationStopped();)(!t.namespace_re||t.namespace_re.test(n.namespace))&&(t.handleObj=n,t.data=n.data,void 0!==(i=((ot.event.special[n.origType]||{}).handle||n.handler).apply(o.elem,r))&&!1===(t.result=i)&&(t.preventDefault(),t.stopPropagation()))
return c.postDispatch&&c.postDispatch.call(this,t),t.result}},handlers:function(t,e){var i,n,o,s,a=[],r=e.delegateCount,l=t.target
if(r&&l.nodeType&&(!t.button||"click"!==t.type))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==t.type)){for(o=[],s=0;r>s;s++)n=e[s],i=n.selector+" ",void 0===o[i]&&(o[i]=n.needsContext?ot(i,this).index(l)>=0:ot.find(i,this,null,[l]).length),o[i]&&o.push(n)
o.length&&a.push({elem:l,handlers:o})}return r<e.length&&a.push({elem:this,handlers:e.slice(r)}),a},fix:function(t){if(t[ot.expando])return t
var e,i,n,o=t.type,s=t,a=this.fixHooks[o]
for(a||(this.fixHooks[o]=a=At.test(o)?this.mouseHooks:Pt.test(o)?this.keyHooks:{}),n=a.props?this.props.concat(a.props):this.props,t=new ot.Event(s),e=n.length;e--;)i=n[e],t[i]=s[i]
return t.target||(t.target=s.srcElement||ft),3===t.target.nodeType&&(t.target=t.target.parentNode),t.metaKey=!!t.metaKey,a.filter?a.filter(t,s):t},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var i,n,o,s=e.button,a=e.fromElement
return null==t.pageX&&null!=e.clientX&&(n=t.target.ownerDocument||ft,o=n.documentElement,i=n.body,t.pageX=e.clientX+(o&&o.scrollLeft||i&&i.scrollLeft||0)-(o&&o.clientLeft||i&&i.clientLeft||0),t.pageY=e.clientY+(o&&o.scrollTop||i&&i.scrollTop||0)-(o&&o.clientTop||i&&i.clientTop||0)),!t.relatedTarget&&a&&(t.relatedTarget=a===t.target?e.toElement:a),t.which||void 0===s||(t.which=1&s?1:2&s?3:4&s?2:0),t}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==f()&&this.focus)try{return this.focus(),!1}catch(t){}},delegateType:"focusin"},blur:{trigger:function(){return this===f()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return ot.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0},_default:function(t){return ot.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,i,n){var o=ot.extend(new ot.Event,i,{type:t,isSimulated:!0,originalEvent:{}})
n?ot.event.trigger(o,null,e):ot.event.dispatch.call(e,o),o.isDefaultPrevented()&&i.preventDefault()}},ot.removeEvent=ft.removeEventListener?function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i,!1)}:function(t,e,i){var n="on"+e
t.detachEvent&&(typeof t[n]===Ct&&(t[n]=null),t.detachEvent(n,i))},ot.Event=function(t,e){return this instanceof ot.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?h:p):this.type=t,e&&ot.extend(this,e),this.timeStamp=t&&t.timeStamp||ot.now(),void(this[ot.expando]=!0)):new ot.Event(t,e)},ot.Event.prototype={isDefaultPrevented:p,isPropagationStopped:p,isImmediatePropagationStopped:p,preventDefault:function(){var t=this.originalEvent
this.isDefaultPrevented=h,t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){var t=this.originalEvent
this.isPropagationStopped=h,t&&(t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0)},stopImmediatePropagation:function(){var t=this.originalEvent
this.isImmediatePropagationStopped=h,t&&t.stopImmediatePropagation&&t.stopImmediatePropagation(),this.stopPropagation()}},ot.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){ot.event.special[t]={delegateType:e,bindType:e,handle:function(t){var i,n=this,o=t.relatedTarget,s=t.handleObj
return(!o||o!==n&&!ot.contains(n,o))&&(t.type=s.origType,i=s.handler.apply(this,arguments),t.type=e),i}}}),it.submitBubbles||(ot.event.special.submit={setup:function(){return!ot.nodeName(this,"form")&&void ot.event.add(this,"click._submit keypress._submit",function(t){var e=t.target,i=ot.nodeName(e,"input")||ot.nodeName(e,"button")?e.form:void 0
i&&!ot._data(i,"submitBubbles")&&(ot.event.add(i,"submit._submit",function(t){t._submit_bubble=!0}),ot._data(i,"submitBubbles",!0))})},postDispatch:function(t){t._submit_bubble&&(delete t._submit_bubble,this.parentNode&&!t.isTrigger&&ot.event.simulate("submit",this.parentNode,t,!0))},teardown:function(){return!ot.nodeName(this,"form")&&void ot.event.remove(this,"._submit")}}),it.changeBubbles||(ot.event.special.change={setup:function(){return Nt.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(ot.event.add(this,"propertychange._change",function(t){"checked"===t.originalEvent.propertyName&&(this._just_changed=!0)}),ot.event.add(this,"click._change",function(t){this._just_changed&&!t.isTrigger&&(this._just_changed=!1),ot.event.simulate("change",this,t,!0)})),!1):void ot.event.add(this,"beforeactivate._change",function(t){var e=t.target
Nt.test(e.nodeName)&&!ot._data(e,"changeBubbles")&&(ot.event.add(e,"change._change",function(t){!this.parentNode||t.isSimulated||t.isTrigger||ot.event.simulate("change",this.parentNode,t,!0)}),ot._data(e,"changeBubbles",!0))})},handle:function(t){var e=t.target
return this!==e||t.isSimulated||t.isTrigger||"radio"!==e.type&&"checkbox"!==e.type?t.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return ot.event.remove(this,"._change"),!Nt.test(this.nodeName)}}),it.focusinBubbles||ot.each({focus:"focusin",blur:"focusout"},function(t,e){var i=function(t){ot.event.simulate(e,t.target,ot.event.fix(t),!0)}
ot.event.special[e]={setup:function(){var n=this.ownerDocument||this,o=ot._data(n,e)
o||n.addEventListener(t,i,!0),ot._data(n,e,(o||0)+1)},teardown:function(){var n=this.ownerDocument||this,o=ot._data(n,e)-1
o?ot._data(n,e,o):(n.removeEventListener(t,i,!0),ot._removeData(n,e))}}}),ot.fn.extend({on:function(t,e,i,n,o){var s,a
if("object"==typeof t){"string"!=typeof e&&(i=i||e,e=void 0)
for(s in t)this.on(s,e,i,t[s],o)
return this}if(null==i&&null==n?(n=e,i=e=void 0):null==n&&("string"==typeof e?(n=i,i=void 0):(n=i,i=e,e=void 0)),!1===n)n=p
else if(!n)return this
return 1===o&&(a=n,n=function(t){return ot().off(t),a.apply(this,arguments)},n.guid=a.guid||(a.guid=ot.guid++)),this.each(function(){ot.event.add(this,t,n,i,e)})},one:function(t,e,i,n){return this.on(t,e,i,n,1)},off:function(t,e,i){var n,o
if(t&&t.preventDefault&&t.handleObj)return n=t.handleObj,ot(t.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this
if("object"==typeof t){for(o in t)this.off(o,e,t[o])
return this}return(!1===e||"function"==typeof e)&&(i=e,e=void 0),!1===i&&(i=p),this.each(function(){ot.event.remove(this,t,i,e)})},trigger:function(t,e){return this.each(function(){ot.event.trigger(t,e,this)})},triggerHandler:function(t,e){var i=this[0]
return i?ot.event.trigger(t,e,i,!0):void 0}})
var Mt="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",Lt=/ jQuery\d+="(?:null|\d+)"/g,Ot=new RegExp("<(?:"+Mt+")[\\s/>]","i"),Ft=/^\s+/,Rt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Wt=/<([\w:]+)/,Ht=/<tbody/i,Vt=/<|&#?\w+;/,zt=/<(?:script|style|link)/i,qt=/checked\s*(?:[^=]|=\s*.checked.)/i,Ut=/^$|\/(?:java|ecma)script/i,Bt=/^true\/(.*)/,Yt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Xt={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:it.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},Qt=m(ft),Gt=Qt.appendChild(ft.createElement("div"))
Xt.optgroup=Xt.option,Xt.tbody=Xt.tfoot=Xt.colgroup=Xt.caption=Xt.thead,Xt.th=Xt.td,ot.extend({clone:function(t,e,i){var n,o,s,a,r,l=ot.contains(t.ownerDocument,t)
if(it.html5Clone||ot.isXMLDoc(t)||!Ot.test("<"+t.nodeName+">")?s=t.cloneNode(!0):(Gt.innerHTML=t.outerHTML,Gt.removeChild(s=Gt.firstChild)),!(it.noCloneEvent&&it.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||ot.isXMLDoc(t)))for(n=g(s),r=g(t),a=0;null!=(o=r[a]);++a)n[a]&&k(o,n[a])
if(e)if(i)for(r=r||g(t),n=n||g(s),a=0;null!=(o=r[a]);a++)C(o,n[a])
else C(t,s)
return n=g(s,"script"),n.length>0&&x(n,!l&&g(t,"script")),n=r=o=null,s},buildFragment:function(t,e,i,n){for(var o,s,a,r,l,c,u,d=t.length,h=m(e),p=[],f=0;d>f;f++)if((s=t[f])||0===s)if("object"===ot.type(s))ot.merge(p,s.nodeType?[s]:s)
else if(Vt.test(s)){for(r=r||h.appendChild(e.createElement("div")),l=(Wt.exec(s)||["",""])[1].toLowerCase(),u=Xt[l]||Xt._default,r.innerHTML=u[1]+s.replace(Rt,"<$1></$2>")+u[2],o=u[0];o--;)r=r.lastChild
if(!it.leadingWhitespace&&Ft.test(s)&&p.push(e.createTextNode(Ft.exec(s)[0])),!it.tbody)for(s="table"!==l||Ht.test(s)?"<table>"!==u[1]||Ht.test(s)?0:r:r.firstChild,o=s&&s.childNodes.length;o--;)ot.nodeName(c=s.childNodes[o],"tbody")&&!c.childNodes.length&&s.removeChild(c)
for(ot.merge(p,r.childNodes),r.textContent="";r.firstChild;)r.removeChild(r.firstChild)
r=h.lastChild}else p.push(e.createTextNode(s))
for(r&&h.removeChild(r),it.appendChecked||ot.grep(g(p,"input"),v),f=0;s=p[f++];)if((!n||-1===ot.inArray(s,n))&&(a=ot.contains(s.ownerDocument,s),r=g(h.appendChild(s),"script"),a&&x(r),i))for(o=0;s=r[o++];)Ut.test(s.type||"")&&i.push(s)
return r=null,h},cleanData:function(t,e){for(var i,n,o,s,a=0,r=ot.expando,l=ot.cache,c=it.deleteExpando,u=ot.event.special;null!=(i=t[a]);a++)if((e||ot.acceptData(i))&&(o=i[r],s=o&&l[o])){if(s.events)for(n in s.events)u[n]?ot.event.remove(i,n):ot.removeEvent(i,n,s.handle)
l[o]&&(delete l[o],c?delete i[r]:typeof i.removeAttribute!==Ct?i.removeAttribute(r):i[r]=null,X.push(o))}}}),ot.fn.extend({text:function(t){return St(this,function(t){return void 0===t?ot.text(this):this.empty().append((this[0]&&this[0].ownerDocument||ft).createTextNode(t))},null,t,arguments.length)},append:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){y(this,t).appendChild(t)}})},prepend:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=y(this,t)
e.insertBefore(t,e.firstChild)}})},before:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},remove:function(t,e){for(var i,n=t?ot.filter(t,this):this,o=0;null!=(i=n[o]);o++)e||1!==i.nodeType||ot.cleanData(g(i)),i.parentNode&&(e&&ot.contains(i.ownerDocument,i)&&x(g(i,"script")),i.parentNode.removeChild(i))
return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++){for(1===t.nodeType&&ot.cleanData(g(t,!1));t.firstChild;)t.removeChild(t.firstChild)
t.options&&ot.nodeName(t,"select")&&(t.options.length=0)}return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return ot.clone(this,t,e)})},html:function(t){return St(this,function(t){var e=this[0]||{},i=0,n=this.length
if(void 0===t)return 1===e.nodeType?e.innerHTML.replace(Lt,""):void 0
if(!("string"!=typeof t||zt.test(t)||!it.htmlSerialize&&Ot.test(t)||!it.leadingWhitespace&&Ft.test(t)||Xt[(Wt.exec(t)||["",""])[1].toLowerCase()])){t=t.replace(Rt,"<$1></$2>")
try{for(;n>i;i++)e=this[i]||{},1===e.nodeType&&(ot.cleanData(g(e,!1)),e.innerHTML=t)
e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=arguments[0]
return this.domManip(arguments,function(e){t=this.parentNode,ot.cleanData(g(this)),t&&t.replaceChild(e,this)}),t&&(t.length||t.nodeType)?this:this.remove()},detach:function(t){return this.remove(t,!0)},domManip:function(t,e){t=G.apply([],t)
var i,n,o,s,a,r,l=0,c=this.length,u=this,d=c-1,h=t[0],p=ot.isFunction(h)
if(p||c>1&&"string"==typeof h&&!it.checkClone&&qt.test(h))return this.each(function(i){var n=u.eq(i)
p&&(t[0]=h.call(this,i,n.html())),n.domManip(t,e)})
if(c&&(r=ot.buildFragment(t,this[0].ownerDocument,!1,this),i=r.firstChild,1===r.childNodes.length&&(r=i),i)){for(s=ot.map(g(r,"script"),b),o=s.length;c>l;l++)n=r,l!==d&&(n=ot.clone(n,!0,!0),o&&ot.merge(s,g(n,"script"))),e.call(this[l],n,l)
if(o)for(a=s[s.length-1].ownerDocument,ot.map(s,w),l=0;o>l;l++)n=s[l],Ut.test(n.type||"")&&!ot._data(n,"globalEval")&&ot.contains(a,n)&&(n.src?ot._evalUrl&&ot._evalUrl(n.src):ot.globalEval((n.text||n.textContent||n.innerHTML||"").replace(Yt,"")))
r=i=null}return this}}),ot.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){ot.fn[t]=function(t){for(var i,n=0,o=[],s=ot(t),a=s.length-1;a>=n;n++)i=n===a?this:this.clone(!0),ot(s[n])[e](i),K.apply(o,i.get())
return this.pushStack(o)}})
var Kt,Jt={}
!function(){var t
it.shrinkWrapBlocks=function(){if(null!=t)return t
t=!1
var e,i,n
return i=ft.getElementsByTagName("body")[0],i&&i.style?(e=ft.createElement("div"),n=ft.createElement("div"),n.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",i.appendChild(n).appendChild(e),typeof e.style.zoom!==Ct&&(e.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",e.appendChild(ft.createElement("div")).style.width="5px",t=3!==e.offsetWidth),i.removeChild(n),t):void 0}}()
var Zt,te,ee=/^margin/,ie=new RegExp("^("+$t+")(?!px)[a-z%]+$","i"),ne=/^(top|right|bottom|left)$/
t.getComputedStyle?(Zt=function(t){return t.ownerDocument.defaultView.getComputedStyle(t,null)},te=function(t,e,i){var n,o,s,a,r=t.style
return i=i||Zt(t),a=i?i.getPropertyValue(e)||i[e]:void 0,i&&(""!==a||ot.contains(t.ownerDocument,t)||(a=ot.style(t,e)),ie.test(a)&&ee.test(e)&&(n=r.width,o=r.minWidth,s=r.maxWidth,r.minWidth=r.maxWidth=r.width=a,a=i.width,r.width=n,r.minWidth=o,r.maxWidth=s)),void 0===a?a:a+""}):ft.documentElement.currentStyle&&(Zt=function(t){return t.currentStyle},te=function(t,e,i){var n,o,s,a,r=t.style
return i=i||Zt(t),a=i?i[e]:void 0,null==a&&r&&r[e]&&(a=r[e]),ie.test(a)&&!ne.test(e)&&(n=r.left,o=t.runtimeStyle,s=o&&o.left,s&&(o.left=t.currentStyle.left),r.left="fontSize"===e?"1em":a,a=r.pixelLeft+"px",r.left=n,s&&(o.left=s)),void 0===a?a:a+""||"auto"}),!function(){function e(){var e,i,n,o;(i=ft.getElementsByTagName("body")[0])&&i.style&&(e=ft.createElement("div"),n=ft.createElement("div"),n.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",i.appendChild(n).appendChild(e),e.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",s=a=!1,l=!0,t.getComputedStyle&&(s="1%"!==(t.getComputedStyle(e,null)||{}).top,a="4px"===(t.getComputedStyle(e,null)||{width:"4px"}).width,o=e.appendChild(ft.createElement("div")),o.style.cssText=e.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",o.style.marginRight=o.style.width="0",e.style.width="1px",l=!parseFloat((t.getComputedStyle(o,null)||{}).marginRight)),e.innerHTML="<table><tr><td></td><td>t</td></tr></table>",o=e.getElementsByTagName("td"),o[0].style.cssText="margin:0;border:0;padding:0;display:none",r=0===o[0].offsetHeight,r&&(o[0].style.display="",o[1].style.display="none",r=0===o[0].offsetHeight),i.removeChild(n))}var i,n,o,s,a,r,l
i=ft.createElement("div"),i.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",o=i.getElementsByTagName("a")[0],(n=o&&o.style)&&(n.cssText="float:left;opacity:.5",it.opacity="0.5"===n.opacity,it.cssFloat=!!n.cssFloat,i.style.backgroundClip="content-box",i.cloneNode(!0).style.backgroundClip="",it.clearCloneStyle="content-box"===i.style.backgroundClip,it.boxSizing=""===n.boxSizing||""===n.MozBoxSizing||""===n.WebkitBoxSizing,ot.extend(it,{reliableHiddenOffsets:function(){return null==r&&e(),r},boxSizingReliable:function(){return null==a&&e(),a},pixelPosition:function(){return null==s&&e(),s},reliableMarginRight:function(){return null==l&&e(),l}}))}(),ot.swap=function(t,e,i,n){var o,s,a={}
for(s in e)a[s]=t.style[s],t.style[s]=e[s]
o=i.apply(t,n||[])
for(s in e)t.style[s]=a[s]
return o}
var oe=/alpha\([^)]*\)/i,se=/opacity\s*=\s*([^)]*)/,ae=/^(none|table(?!-c[ea]).+)/,re=new RegExp("^("+$t+")(.*)$","i"),le=new RegExp("^([+-])=("+$t+")","i"),ce={position:"absolute",visibility:"hidden",display:"block"},ue={letterSpacing:"0",fontWeight:"400"},de=["Webkit","O","Moz","ms"]
ot.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=te(t,"opacity")
return""===i?"1":i}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:it.cssFloat?"cssFloat":"styleFloat"},style:function(t,e,i,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var o,s,a,r=ot.camelCase(e),l=t.style
if(e=ot.cssProps[r]||(ot.cssProps[r]=E(l,r)),a=ot.cssHooks[e]||ot.cssHooks[r],void 0===i)return a&&"get"in a&&void 0!==(o=a.get(t,!1,n))?o:l[e]
if(s=typeof i,"string"===s&&(o=le.exec(i))&&(i=(o[1]+1)*o[2]+parseFloat(ot.css(t,e)),s="number"),null!=i&&i===i&&("number"!==s||ot.cssNumber[r]||(i+="px"),it.clearCloneStyle||""!==i||0!==e.indexOf("background")||(l[e]="inherit"),!(a&&"set"in a&&void 0===(i=a.set(t,i,n)))))try{l[e]=i}catch(t){}}},css:function(t,e,i,n){var o,s,a,r=ot.camelCase(e)
return e=ot.cssProps[r]||(ot.cssProps[r]=E(t.style,r)),a=ot.cssHooks[e]||ot.cssHooks[r],a&&"get"in a&&(s=a.get(t,!0,i)),void 0===s&&(s=te(t,e,n)),"normal"===s&&e in ue&&(s=ue[e]),""===i||i?(o=parseFloat(s),!0===i||ot.isNumeric(o)?o||0:s):s}}),ot.each(["height","width"],function(t,e){ot.cssHooks[e]={get:function(t,i,n){return i?ae.test(ot.css(t,"display"))&&0===t.offsetWidth?ot.swap(t,ce,function(){return P(t,e,n)}):P(t,e,n):void 0},set:function(t,i,n){var o=n&&Zt(t)
return D(t,i,n?N(t,e,n,it.boxSizing&&"border-box"===ot.css(t,"boxSizing",!1,o),o):0)}}}),it.opacity||(ot.cssHooks.opacity={get:function(t,e){return se.test((e&&t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":e?"1":""},set:function(t,e){var i=t.style,n=t.currentStyle,o=ot.isNumeric(e)?"alpha(opacity="+100*e+")":"",s=n&&n.filter||i.filter||""
i.zoom=1,(e>=1||""===e)&&""===ot.trim(s.replace(oe,""))&&i.removeAttribute&&(i.removeAttribute("filter"),""===e||n&&!n.filter)||(i.filter=oe.test(s)?s.replace(oe,o):s+" "+o)}}),ot.cssHooks.marginRight=T(it.reliableMarginRight,function(t,e){return e?ot.swap(t,{display:"inline-block"},te,[t,"marginRight"]):void 0}),ot.each({margin:"",padding:"",border:"Width"},function(t,e){ot.cssHooks[t+e]={expand:function(i){for(var n=0,o={},s="string"==typeof i?i.split(" "):[i];4>n;n++)o[t+Tt[n]+e]=s[n]||s[n-2]||s[0]
return o}},ee.test(t)||(ot.cssHooks[t+e].set=D)}),ot.fn.extend({css:function(t,e){return St(this,function(t,e,i){var n,o,s={},a=0
if(ot.isArray(e)){for(n=Zt(t),o=e.length;o>a;a++)s[e[a]]=ot.css(t,e[a],!1,n)
return s}return void 0!==i?ot.style(t,e,i):ot.css(t,e)},t,e,arguments.length>1)},show:function(){return S(this,!0)},hide:function(){return S(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){Et(this)?ot(this).show():ot(this).hide()})}}),ot.Tween=A,A.prototype={constructor:A,init:function(t,e,i,n,o,s){this.elem=t,this.prop=i,this.easing=o||"swing",this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=s||(ot.cssNumber[i]?"":"px")},cur:function(){var t=A.propHooks[this.prop]
return t&&t.get?t.get(this):A.propHooks._default.get(this)},run:function(t){var e,i=A.propHooks[this.prop]
return this.pos=e=this.options.duration?ot.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):A.propHooks._default.set(this),this}},A.prototype.init.prototype=A.prototype,A.propHooks={_default:{get:function(t){var e
return null==t.elem[t.prop]||t.elem.style&&null!=t.elem.style[t.prop]?(e=ot.css(t.elem,t.prop,""),e&&"auto"!==e?e:0):t.elem[t.prop]},set:function(t){ot.fx.step[t.prop]?ot.fx.step[t.prop](t):t.elem.style&&(null!=t.elem.style[ot.cssProps[t.prop]]||ot.cssHooks[t.prop])?ot.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}},A.propHooks.scrollTop=A.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},ot.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},ot.fx=A.prototype.init,ot.fx.step={}
var he,pe,fe=/^(?:toggle|show|hide)$/,me=new RegExp("^(?:([+-])=|)("+$t+")([a-z%]*)$","i"),ge=/queueHooks$/,ve=[L],ye={"*":[function(t,e){var i=this.createTween(t,e),n=i.cur(),o=me.exec(e),s=o&&o[3]||(ot.cssNumber[t]?"":"px"),a=(ot.cssNumber[t]||"px"!==s&&+n)&&me.exec(ot.css(i.elem,t)),r=1,l=20
if(a&&a[3]!==s){s=s||a[3],o=o||[],a=+n||1
do{r=r||".5",a/=r,ot.style(i.elem,t,a+s)}while(r!==(r=i.cur()/n)&&1!==r&&--l)}return o&&(a=i.start=+a||+n||0,i.unit=s,i.end=o[1]?a+(o[1]+1)*o[2]:+o[2]),i}]}
ot.Animation=ot.extend(F,{tweener:function(t,e){ot.isFunction(t)?(e=t,t=["*"]):t=t.split(" ")
for(var i,n=0,o=t.length;o>n;n++)i=t[n],ye[i]=ye[i]||[],ye[i].unshift(e)},prefilter:function(t,e){e?ve.unshift(t):ve.push(t)}}),ot.speed=function(t,e,i){var n=t&&"object"==typeof t?ot.extend({},t):{complete:i||!i&&e||ot.isFunction(t)&&t,duration:t,easing:i&&e||e&&!ot.isFunction(e)&&e}
return n.duration=ot.fx.off?0:"number"==typeof n.duration?n.duration:n.duration in ot.fx.speeds?ot.fx.speeds[n.duration]:ot.fx.speeds._default,(null==n.queue||!0===n.queue)&&(n.queue="fx"),n.old=n.complete,n.complete=function(){ot.isFunction(n.old)&&n.old.call(this),n.queue&&ot.dequeue(this,n.queue)},n},ot.fn.extend({fadeTo:function(t,e,i,n){return this.filter(Et).css("opacity",0).show().end().animate({opacity:e},t,i,n)},animate:function(t,e,i,n){var o=ot.isEmptyObject(t),s=ot.speed(e,i,n),a=function(){var e=F(this,ot.extend({},t),s);(o||ot._data(this,"finish"))&&e.stop(!0)}
return a.finish=a,o||!1===s.queue?this.each(a):this.queue(s.queue,a)},stop:function(t,e,i){var n=function(t){var e=t.stop
delete t.stop,e(i)}
return"string"!=typeof t&&(i=e,e=t,t=void 0),e&&!1!==t&&this.queue(t||"fx",[]),this.each(function(){var e=!0,o=null!=t&&t+"queueHooks",s=ot.timers,a=ot._data(this)
if(o)a[o]&&a[o].stop&&n(a[o])
else for(o in a)a[o]&&a[o].stop&&ge.test(o)&&n(a[o])
for(o=s.length;o--;)s[o].elem!==this||null!=t&&s[o].queue!==t||(s[o].anim.stop(i),e=!1,s.splice(o,1));(e||!i)&&ot.dequeue(this,t)})},finish:function(t){return!1!==t&&(t=t||"fx"),this.each(function(){var e,i=ot._data(this),n=i[t+"queue"],o=i[t+"queueHooks"],s=ot.timers,a=n?n.length:0
for(i.finish=!0,ot.queue(this,t,[]),o&&o.stop&&o.stop.call(this,!0),e=s.length;e--;)s[e].elem===this&&s[e].queue===t&&(s[e].anim.stop(!0),s.splice(e,1))
for(e=0;a>e;e++)n[e]&&n[e].finish&&n[e].finish.call(this)
delete i.finish})}}),ot.each(["toggle","show","hide"],function(t,e){var i=ot.fn[e]
ot.fn[e]=function(t,n,o){return null==t||"boolean"==typeof t?i.apply(this,arguments):this.animate(j(e,!0),t,n,o)}}),ot.each({slideDown:j("show"),slideUp:j("hide"),slideToggle:j("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){ot.fn[t]=function(t,i,n){return this.animate(e,t,i,n)}}),ot.timers=[],ot.fx.tick=function(){var t,e=ot.timers,i=0
for(he=ot.now();i<e.length;i++)(t=e[i])()||e[i]!==t||e.splice(i--,1)
e.length||ot.fx.stop(),he=void 0},ot.fx.timer=function(t){ot.timers.push(t),t()?ot.fx.start():ot.timers.pop()},ot.fx.interval=13,ot.fx.start=function(){pe||(pe=setInterval(ot.fx.tick,ot.fx.interval))},ot.fx.stop=function(){clearInterval(pe),pe=null},ot.fx.speeds={slow:600,fast:200,_default:400},ot.fn.delay=function(t,e){return t=ot.fx?ot.fx.speeds[t]||t:t,e=e||"fx",this.queue(e,function(e,i){var n=setTimeout(e,t)
i.stop=function(){clearTimeout(n)}})},function(){var t,e,i,n,o
e=ft.createElement("div"),e.setAttribute("className","t"),e.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",n=e.getElementsByTagName("a")[0],i=ft.createElement("select"),o=i.appendChild(ft.createElement("option")),t=e.getElementsByTagName("input")[0],n.style.cssText="top:1px",it.getSetAttribute="t"!==e.className,it.style=/top/.test(n.getAttribute("style")),it.hrefNormalized="/a"===n.getAttribute("href"),it.checkOn=!!t.value,it.optSelected=o.selected,it.enctype=!!ft.createElement("form").enctype,i.disabled=!0,it.optDisabled=!o.disabled,t=ft.createElement("input"),t.setAttribute("value",""),it.input=""===t.getAttribute("value"),t.value="t",t.setAttribute("type","radio"),it.radioValue="t"===t.value}()
var be=/\r/g
ot.fn.extend({val:function(t){var e,i,n,o=this[0]
return arguments.length?(n=ot.isFunction(t),this.each(function(i){var o
1===this.nodeType&&(o=n?t.call(this,i,ot(this).val()):t,null==o?o="":"number"==typeof o?o+="":ot.isArray(o)&&(o=ot.map(o,function(t){return null==t?"":t+""})),(e=ot.valHooks[this.type]||ot.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,o,"value")||(this.value=o))})):o?(e=ot.valHooks[o.type]||ot.valHooks[o.nodeName.toLowerCase()],e&&"get"in e&&void 0!==(i=e.get(o,"value"))?i:(i=o.value,"string"==typeof i?i.replace(be,""):null==i?"":i)):void 0}}),ot.extend({valHooks:{option:{get:function(t){var e=ot.find.attr(t,"value")
return null!=e?e:ot.trim(ot.text(t))}},select:{get:function(t){for(var e,i,n=t.options,o=t.selectedIndex,s="select-one"===t.type||0>o,a=s?null:[],r=s?o+1:n.length,l=0>o?r:s?o:0;r>l;l++)if(i=n[l],!(!i.selected&&l!==o||(it.optDisabled?i.disabled:null!==i.getAttribute("disabled"))||i.parentNode.disabled&&ot.nodeName(i.parentNode,"optgroup"))){if(e=ot(i).val(),s)return e
a.push(e)}return a},set:function(t,e){for(var i,n,o=t.options,s=ot.makeArray(e),a=o.length;a--;)if(n=o[a],ot.inArray(ot.valHooks.option.get(n),s)>=0)try{n.selected=i=!0}catch(t){n.scrollHeight}else n.selected=!1
return i||(t.selectedIndex=-1),o}}}}),ot.each(["radio","checkbox"],function(){ot.valHooks[this]={set:function(t,e){return ot.isArray(e)?t.checked=ot.inArray(ot(t).val(),e)>=0:void 0}},it.checkOn||(ot.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})})
var we,xe,Ce=ot.expr.attrHandle,ke=/^(?:checked|selected)$/i,_e=it.getSetAttribute,$e=it.input
ot.fn.extend({attr:function(t,e){return St(this,ot.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){ot.removeAttr(this,t)})}}),ot.extend({attr:function(t,e,i){var n,o,s=t.nodeType
if(t&&3!==s&&8!==s&&2!==s)return typeof t.getAttribute===Ct?ot.prop(t,e,i):(1===s&&ot.isXMLDoc(t)||(e=e.toLowerCase(),n=ot.attrHooks[e]||(ot.expr.match.bool.test(e)?xe:we)),void 0===i?n&&"get"in n&&null!==(o=n.get(t,e))?o:(o=ot.find.attr(t,e),null==o?void 0:o):null!==i?n&&"set"in n&&void 0!==(o=n.set(t,i,e))?o:(t.setAttribute(e,i+""),i):void ot.removeAttr(t,e))},removeAttr:function(t,e){var i,n,o=0,s=e&&e.match(yt)
if(s&&1===t.nodeType)for(;i=s[o++];)n=ot.propFix[i]||i,ot.expr.match.bool.test(i)?$e&&_e||!ke.test(i)?t[n]=!1:t[ot.camelCase("default-"+i)]=t[n]=!1:ot.attr(t,i,""),t.removeAttribute(_e?i:n)},attrHooks:{type:{set:function(t,e){if(!it.radioValue&&"radio"===e&&ot.nodeName(t,"input")){var i=t.value
return t.setAttribute("type",e),i&&(t.value=i),e}}}}}),xe={set:function(t,e,i){return!1===e?ot.removeAttr(t,i):$e&&_e||!ke.test(i)?t.setAttribute(!_e&&ot.propFix[i]||i,i):t[ot.camelCase("default-"+i)]=t[i]=!0,i}},ot.each(ot.expr.match.bool.source.match(/\w+/g),function(t,e){var i=Ce[e]||ot.find.attr
Ce[e]=$e&&_e||!ke.test(e)?function(t,e,n){var o,s
return n||(s=Ce[e],Ce[e]=o,o=null!=i(t,e,n)?e.toLowerCase():null,Ce[e]=s),o}:function(t,e,i){return i?void 0:t[ot.camelCase("default-"+e)]?e.toLowerCase():null}}),$e&&_e||(ot.attrHooks.value={set:function(t,e,i){return ot.nodeName(t,"input")?void(t.defaultValue=e):we&&we.set(t,e,i)}}),_e||(we={set:function(t,e,i){var n=t.getAttributeNode(i)
return n||t.setAttributeNode(n=t.ownerDocument.createAttribute(i)),n.value=e+="","value"===i||e===t.getAttribute(i)?e:void 0}},Ce.id=Ce.name=Ce.coords=function(t,e,i){var n
return i?void 0:(n=t.getAttributeNode(e))&&""!==n.value?n.value:null},ot.valHooks.button={get:function(t,e){var i=t.getAttributeNode(e)
return i&&i.specified?i.value:void 0},set:we.set},ot.attrHooks.contenteditable={set:function(t,e,i){we.set(t,""!==e&&e,i)}},ot.each(["width","height"],function(t,e){ot.attrHooks[e]={set:function(t,i){return""===i?(t.setAttribute(e,"auto"),i):void 0}}})),it.style||(ot.attrHooks.style={get:function(t){return t.style.cssText||void 0},set:function(t,e){return t.style.cssText=e+""}})
var Te=/^(?:input|select|textarea|button|object)$/i,Ee=/^(?:a|area)$/i
ot.fn.extend({prop:function(t,e){return St(this,ot.prop,t,e,arguments.length>1)},removeProp:function(t){return t=ot.propFix[t]||t,this.each(function(){try{this[t]=void 0,delete this[t]}catch(t){}})}}),ot.extend({propFix:{for:"htmlFor",class:"className"},prop:function(t,e,i){var n,o,s,a=t.nodeType
if(t&&3!==a&&8!==a&&2!==a)return s=1!==a||!ot.isXMLDoc(t),s&&(e=ot.propFix[e]||e,o=ot.propHooks[e]),void 0!==i?o&&"set"in o&&void 0!==(n=o.set(t,i,e))?n:t[e]=i:o&&"get"in o&&null!==(n=o.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){var e=ot.find.attr(t,"tabindex")
return e?parseInt(e,10):Te.test(t.nodeName)||Ee.test(t.nodeName)&&t.href?0:-1}}}}),it.hrefNormalized||ot.each(["href","src"],function(t,e){ot.propHooks[e]={get:function(t){return t.getAttribute(e,4)}}}),it.optSelected||(ot.propHooks.selected={get:function(t){var e=t.parentNode
return e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex),null}}),ot.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ot.propFix[this.toLowerCase()]=this}),it.enctype||(ot.propFix.enctype="encoding")
var Se=/[\t\r\n\f]/g
ot.fn.extend({addClass:function(t){var e,i,n,o,s,a,r=0,l=this.length,c="string"==typeof t&&t
if(ot.isFunction(t))return this.each(function(e){ot(this).addClass(t.call(this,e,this.className))})
if(c)for(e=(t||"").match(yt)||[];l>r;r++)if(i=this[r],n=1===i.nodeType&&(i.className?(" "+i.className+" ").replace(Se," "):" ")){for(s=0;o=e[s++];)n.indexOf(" "+o+" ")<0&&(n+=o+" ")
a=ot.trim(n),i.className!==a&&(i.className=a)}return this},removeClass:function(t){var e,i,n,o,s,a,r=0,l=this.length,c=0===arguments.length||"string"==typeof t&&t
if(ot.isFunction(t))return this.each(function(e){ot(this).removeClass(t.call(this,e,this.className))})
if(c)for(e=(t||"").match(yt)||[];l>r;r++)if(i=this[r],n=1===i.nodeType&&(i.className?(" "+i.className+" ").replace(Se," "):"")){for(s=0;o=e[s++];)for(;n.indexOf(" "+o+" ")>=0;)n=n.replace(" "+o+" "," ")
a=t?ot.trim(n):"",i.className!==a&&(i.className=a)}return this},toggleClass:function(t,e){var i=typeof t
return"boolean"==typeof e&&"string"===i?e?this.addClass(t):this.removeClass(t):this.each(ot.isFunction(t)?function(i){ot(this).toggleClass(t.call(this,i,this.className,e),e)}:function(){if("string"===i)for(var e,n=0,o=ot(this),s=t.match(yt)||[];e=s[n++];)o.hasClass(e)?o.removeClass(e):o.addClass(e)
else(i===Ct||"boolean"===i)&&(this.className&&ot._data(this,"__className__",this.className),this.className=this.className||!1===t?"":ot._data(this,"__className__")||"")})},hasClass:function(t){for(var e=" "+t+" ",i=0,n=this.length;n>i;i++)if(1===this[i].nodeType&&(" "+this[i].className+" ").replace(Se," ").indexOf(e)>=0)return!0
return!1}}),ot.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,e){ot.fn[e]=function(t,i){return arguments.length>0?this.on(e,null,t,i):this.trigger(e)}}),ot.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)},bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,n){return this.on(e,t,i,n)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)}})
var De=ot.now(),Ne=/\?/,Pe=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g
ot.parseJSON=function(e){if(t.JSON&&t.JSON.parse)return t.JSON.parse(e+"")
var i,n=null,o=ot.trim(e+"")
return o&&!ot.trim(o.replace(Pe,function(t,e,o,s){return i&&e&&(n=0),0===n?t:(i=o||e,n+=!s-!o,"")}))?Function("return "+o)():ot.error("Invalid JSON: "+e)},ot.parseXML=function(e){var i,n
if(!e||"string"!=typeof e)return null
try{t.DOMParser?(n=new DOMParser,i=n.parseFromString(e,"text/xml")):(i=new ActiveXObject("Microsoft.XMLDOM"),i.async="false",i.loadXML(e))}catch(t){i=void 0}return i&&i.documentElement&&!i.getElementsByTagName("parsererror").length||ot.error("Invalid XML: "+e),i}
var Ae,Ie,je=/#.*$/,Me=/([?&])_=[^&]*/,Le=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Oe=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Fe=/^(?:GET|HEAD)$/,Re=/^\/\//,We=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,He={},Ve={},ze="*/".concat("*")
try{Ie=location.href}catch(t){Ie=ft.createElement("a"),Ie.href="",Ie=Ie.href}Ae=We.exec(Ie.toLowerCase())||[],ot.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ie,type:"GET",isLocal:Oe.test(Ae[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":ze,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":ot.parseJSON,"text xml":ot.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?H(H(t,ot.ajaxSettings),e):H(ot.ajaxSettings,t)},ajaxPrefilter:R(He),ajaxTransport:R(Ve),ajax:function(t,e){function i(t,e,i,n){var o,u,v,y,w,C=e
2!==b&&(b=2,r&&clearTimeout(r),c=void 0,a=n||"",x.readyState=t>0?4:0,o=t>=200&&300>t||304===t,i&&(y=V(d,x,i)),y=z(d,y,x,o),o?(d.ifModified&&(w=x.getResponseHeader("Last-Modified"),w&&(ot.lastModified[s]=w),(w=x.getResponseHeader("etag"))&&(ot.etag[s]=w)),204===t||"HEAD"===d.type?C="nocontent":304===t?C="notmodified":(C=y.state,u=y.data,v=y.error,o=!v)):(v=C,(t||!C)&&(C="error",0>t&&(t=0))),x.status=t,x.statusText=(e||C)+"",o?f.resolveWith(h,[u,C,x]):f.rejectWith(h,[x,C,v]),x.statusCode(g),g=void 0,l&&p.trigger(o?"ajaxSuccess":"ajaxError",[x,d,o?u:v]),m.fireWith(h,[x,C]),l&&(p.trigger("ajaxComplete",[x,d]),--ot.active||ot.event.trigger("ajaxStop")))}"object"==typeof t&&(e=t,t=void 0),e=e||{}
var n,o,s,a,r,l,c,u,d=ot.ajaxSetup({},e),h=d.context||d,p=d.context&&(h.nodeType||h.jquery)?ot(h):ot.event,f=ot.Deferred(),m=ot.Callbacks("once memory"),g=d.statusCode||{},v={},y={},b=0,w="canceled",x={readyState:0,getResponseHeader:function(t){var e
if(2===b){if(!u)for(u={};e=Le.exec(a);)u[e[1].toLowerCase()]=e[2]
e=u[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===b?a:null},setRequestHeader:function(t,e){var i=t.toLowerCase()
return b||(t=y[i]=y[i]||t,v[t]=e),this},overrideMimeType:function(t){return b||(d.mimeType=t),this},statusCode:function(t){var e
if(t)if(2>b)for(e in t)g[e]=[g[e],t[e]]
else x.always(t[x.status])
return this},abort:function(t){var e=t||w
return c&&c.abort(e),i(0,e),this}}
if(f.promise(x).complete=m.add,x.success=x.done,x.error=x.fail,d.url=((t||d.url||Ie)+"").replace(je,"").replace(Re,Ae[1]+"//"),d.type=e.method||e.type||d.method||d.type,d.dataTypes=ot.trim(d.dataType||"*").toLowerCase().match(yt)||[""],null==d.crossDomain&&(n=We.exec(d.url.toLowerCase()),d.crossDomain=!(!n||n[1]===Ae[1]&&n[2]===Ae[2]&&(n[3]||("http:"===n[1]?"80":"443"))===(Ae[3]||("http:"===Ae[1]?"80":"443")))),d.data&&d.processData&&"string"!=typeof d.data&&(d.data=ot.param(d.data,d.traditional)),W(He,d,e,x),2===b)return x
l=d.global,l&&0==ot.active++&&ot.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Fe.test(d.type),s=d.url,d.hasContent||(d.data&&(s=d.url+=(Ne.test(s)?"&":"?")+d.data,delete d.data),!1===d.cache&&(d.url=Me.test(s)?s.replace(Me,"$1_="+De++):s+(Ne.test(s)?"&":"?")+"_="+De++)),d.ifModified&&(ot.lastModified[s]&&x.setRequestHeader("If-Modified-Since",ot.lastModified[s]),ot.etag[s]&&x.setRequestHeader("If-None-Match",ot.etag[s])),(d.data&&d.hasContent&&!1!==d.contentType||e.contentType)&&x.setRequestHeader("Content-Type",d.contentType),x.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+ze+"; q=0.01":""):d.accepts["*"])
for(o in d.headers)x.setRequestHeader(o,d.headers[o])
if(d.beforeSend&&(!1===d.beforeSend.call(h,x,d)||2===b))return x.abort()
w="abort"
for(o in{success:1,error:1,complete:1})x[o](d[o])
if(c=W(Ve,d,e,x)){x.readyState=1,l&&p.trigger("ajaxSend",[x,d]),d.async&&d.timeout>0&&(r=setTimeout(function(){x.abort("timeout")},d.timeout))
try{b=1,c.send(v,i)}catch(t){if(!(2>b))throw t
i(-1,t)}}else i(-1,"No Transport")
return x},getJSON:function(t,e,i){return ot.get(t,e,i,"json")},getScript:function(t,e){return ot.get(t,void 0,e,"script")}}),ot.each(["get","post"],function(t,e){ot[e]=function(t,i,n,o){return ot.isFunction(i)&&(o=o||n,n=i,i=void 0),ot.ajax({url:t,type:e,dataType:o,data:i,success:n})}}),ot.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){ot.fn[e]=function(t){return this.on(e,t)}}),ot._evalUrl=function(t){return ot.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},ot.fn.extend({wrapAll:function(t){if(ot.isFunction(t))return this.each(function(e){ot(this).wrapAll(t.call(this,e))})
if(this[0]){var e=ot(t,this[0].ownerDocument).eq(0).clone(!0)
this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstChild&&1===t.firstChild.nodeType;)t=t.firstChild
return t}).append(this)}return this},wrapInner:function(t){return this.each(ot.isFunction(t)?function(e){ot(this).wrapInner(t.call(this,e))}:function(){var e=ot(this),i=e.contents()
i.length?i.wrapAll(t):e.append(t)})},wrap:function(t){var e=ot.isFunction(t)
return this.each(function(i){ot(this).wrapAll(e?t.call(this,i):t)})},unwrap:function(){return this.parent().each(function(){ot.nodeName(this,"body")||ot(this).replaceWith(this.childNodes)}).end()}}),ot.expr.filters.hidden=function(t){return t.offsetWidth<=0&&t.offsetHeight<=0||!it.reliableHiddenOffsets()&&"none"===(t.style&&t.style.display||ot.css(t,"display"))},ot.expr.filters.visible=function(t){return!ot.expr.filters.hidden(t)}
var qe=/%20/g,Ue=/\[\]$/,Be=/\r?\n/g,Ye=/^(?:submit|button|image|reset|file)$/i,Xe=/^(?:input|select|textarea|keygen)/i
ot.param=function(t,e){var i,n=[],o=function(t,e){e=ot.isFunction(e)?e():null==e?"":e,n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)}
if(void 0===e&&(e=ot.ajaxSettings&&ot.ajaxSettings.traditional),ot.isArray(t)||t.jquery&&!ot.isPlainObject(t))ot.each(t,function(){o(this.name,this.value)})
else for(i in t)q(i,t[i],e,o)
return n.join("&").replace(qe,"+")},ot.fn.extend({serialize:function(){return ot.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=ot.prop(this,"elements")
return t?ot.makeArray(t):this}).filter(function(){var t=this.type
return this.name&&!ot(this).is(":disabled")&&Xe.test(this.nodeName)&&!Ye.test(t)&&(this.checked||!Dt.test(t))}).map(function(t,e){var i=ot(this).val()
return null==i?null:ot.isArray(i)?ot.map(i,function(t){return{name:e.name,value:t.replace(Be,"\r\n")}}):{name:e.name,value:i.replace(Be,"\r\n")}}).get()}}),ot.ajaxSettings.xhr=void 0!==t.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&U()||B()}:U
var Qe=0,Ge={},Ke=ot.ajaxSettings.xhr()
t.ActiveXObject&&ot(t).on("unload",function(){for(var t in Ge)Ge[t](void 0,!0)}),it.cors=!!Ke&&"withCredentials"in Ke,(Ke=it.ajax=!!Ke)&&ot.ajaxTransport(function(t){if(!t.crossDomain||it.cors){var e
return{send:function(i,n){var o,s=t.xhr(),a=++Qe
if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)s[o]=t.xhrFields[o]
t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest")
for(o in i)void 0!==i[o]&&s.setRequestHeader(o,i[o]+"")
s.send(t.hasContent&&t.data||null),e=function(i,o){var r,l,c
if(e&&(o||4===s.readyState))if(delete Ge[a],e=void 0,s.onreadystatechange=ot.noop,o)4!==s.readyState&&s.abort()
else{c={},r=s.status,"string"==typeof s.responseText&&(c.text=s.responseText)
try{l=s.statusText}catch(t){l=""}r||!t.isLocal||t.crossDomain?1223===r&&(r=204):r=c.text?200:404}c&&n(r,l,c,s.getAllResponseHeaders())},t.async?4===s.readyState?setTimeout(e):s.onreadystatechange=Ge[a]=e:e()},abort:function(){e&&e(void 0,!0)}}}}),ot.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(t){return ot.globalEval(t),t}}}),ot.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET",t.global=!1)}),ot.ajaxTransport("script",function(t){if(t.crossDomain){var e,i=ft.head||ot("head")[0]||ft.documentElement
return{send:function(n,o){e=ft.createElement("script"),e.async=!0,t.scriptCharset&&(e.charset=t.scriptCharset),e.src=t.url,e.onload=e.onreadystatechange=function(t,i){(i||!e.readyState||/loaded|complete/.test(e.readyState))&&(e.onload=e.onreadystatechange=null,e.parentNode&&e.parentNode.removeChild(e),e=null,i||o(200,"success"))},i.insertBefore(e,i.firstChild)},abort:function(){e&&e.onload(void 0,!0)}}}})
var Je=[],Ze=/(=)\?(?=&|$)|\?\?/
ot.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Je.pop()||ot.expando+"_"+De++
return this[t]=!0,t}}),ot.ajaxPrefilter("json jsonp",function(e,i,n){var o,s,a,r=!1!==e.jsonp&&(Ze.test(e.url)?"url":"string"==typeof e.data&&!(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ze.test(e.data)&&"data")
return r||"jsonp"===e.dataTypes[0]?(o=e.jsonpCallback=ot.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,r?e[r]=e[r].replace(Ze,"$1"+o):!1!==e.jsonp&&(e.url+=(Ne.test(e.url)?"&":"?")+e.jsonp+"="+o),e.converters["script json"]=function(){return a||ot.error(o+" was not called"),a[0]},e.dataTypes[0]="json",s=t[o],t[o]=function(){a=arguments},n.always(function(){t[o]=s,e[o]&&(e.jsonpCallback=i.jsonpCallback,Je.push(o)),a&&ot.isFunction(s)&&s(a[0]),a=s=void 0}),"script"):void 0}),ot.parseHTML=function(t,e,i){if(!t||"string"!=typeof t)return null
"boolean"==typeof e&&(i=e,e=!1),e=e||ft
var n=dt.exec(t),o=!i&&[]
return n?[e.createElement(n[1])]:(n=ot.buildFragment([t],e,o),o&&o.length&&ot(o).remove(),ot.merge([],n.childNodes))}
var ti=ot.fn.load
ot.fn.load=function(t,e,i){if("string"!=typeof t&&ti)return ti.apply(this,arguments)
var n,o,s,a=this,r=t.indexOf(" ")
return r>=0&&(n=ot.trim(t.slice(r,t.length)),t=t.slice(0,r)),ot.isFunction(e)?(i=e,e=void 0):e&&"object"==typeof e&&(s="POST"),a.length>0&&ot.ajax({url:t,type:s,dataType:"html",data:e}).done(function(t){o=arguments,a.html(n?ot("<div>").append(ot.parseHTML(t)).find(n):t)}).complete(i&&function(t,e){a.each(i,o||[t.responseText,e,t])}),this},ot.expr.filters.animated=function(t){return ot.grep(ot.timers,function(e){return t===e.elem}).length}
var ei=t.document.documentElement
ot.offset={setOffset:function(t,e,i){var n,o,s,a,r,l,c,u=ot.css(t,"position"),d=ot(t),h={}
"static"===u&&(t.style.position="relative"),r=d.offset(),s=ot.css(t,"top"),l=ot.css(t,"left"),c=("absolute"===u||"fixed"===u)&&ot.inArray("auto",[s,l])>-1,c?(n=d.position(),a=n.top,o=n.left):(a=parseFloat(s)||0,o=parseFloat(l)||0),ot.isFunction(e)&&(e=e.call(t,i,r)),null!=e.top&&(h.top=e.top-r.top+a),null!=e.left&&(h.left=e.left-r.left+o),"using"in e?e.using.call(t,h):d.css(h)}},ot.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){ot.offset.setOffset(this,t,e)})
var e,i,n={top:0,left:0},o=this[0],s=o&&o.ownerDocument
return s?(e=s.documentElement,ot.contains(e,o)?(typeof o.getBoundingClientRect!==Ct&&(n=o.getBoundingClientRect()),i=Y(s),{top:n.top+(i.pageYOffset||e.scrollTop)-(e.clientTop||0),left:n.left+(i.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}):n):void 0},position:function(){if(this[0]){var t,e,i={top:0,left:0},n=this[0]
return"fixed"===ot.css(n,"position")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),ot.nodeName(t[0],"html")||(i=t.offset()),i.top+=ot.css(t[0],"borderTopWidth",!0),i.left+=ot.css(t[0],"borderLeftWidth",!0)),{top:e.top-i.top-ot.css(n,"marginTop",!0),left:e.left-i.left-ot.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||ei;t&&!ot.nodeName(t,"html")&&"static"===ot.css(t,"position");)t=t.offsetParent
return t||ei})}}),ot.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var i=/Y/.test(e)
ot.fn[t]=function(n){return St(this,function(t,n,o){var s=Y(t)
return void 0===o?s?e in s?s[e]:s.document.documentElement[n]:t[n]:void(s?s.scrollTo(i?ot(s).scrollLeft():o,i?o:ot(s).scrollTop()):t[n]=o)},t,n,arguments.length,null)}}),ot.each(["top","left"],function(t,e){ot.cssHooks[e]=T(it.pixelPosition,function(t,i){return i?(i=te(t,e),ie.test(i)?ot(t).position()[e]+"px":i):void 0})}),ot.each({Height:"height",Width:"width"},function(t,e){ot.each({padding:"inner"+t,content:e,"":"outer"+t},function(i,n){ot.fn[n]=function(n,o){var s=arguments.length&&(i||"boolean"!=typeof n),a=i||(!0===n||!0===o?"margin":"border")
return St(this,function(e,i,n){var o
return ot.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===n?ot.css(e,i,a):ot.style(e,i,n,a)},e,s?n:void 0,s,null)}})}),ot.fn.size=function(){return this.length},ot.fn.andSelf=ot.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return ot})
var ii=t.jQuery,ni=t.$
return ot.noConflict=function(e){return t.$===ot&&(t.$=ni),e&&t.jQuery===ot&&(t.jQuery=ii),ot},typeof e===Ct&&(t.jQuery=t.$=ot),ot}),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(t){"use strict"
function e(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"}
for(var i in e)if(void 0!==t.style[i])return{end:e[i]}
return!1}t.fn.emulateTransitionEnd=function(e){var i=!1,n=this
t(this).one("bsTransitionEnd",function(){i=!0})
var o=function(){i||t(n).trigger(t.support.transition.end)}
return setTimeout(o,e),this},t(function(){t.support.transition=e(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){return t(e.target).is(this)?e.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),function(t){"use strict"
function e(e){return this.each(function(){var i=t(this),o=i.data("bs.alert")
o||i.data("bs.alert",o=new n(this)),"string"==typeof e&&o[e].call(i)})}var i='[data-dismiss="alert"]',n=function(e){t(e).on("click",i,this.close)}
n.VERSION="3.2.0",n.prototype.close=function(e){function i(){s.detach().trigger("closed.bs.alert").remove()}var n=t(this),o=n.attr("data-target")
o||(o=n.attr("href"),o=o&&o.replace(/.*(?=#[^\s]*$)/,""))
var s=t(o)
e&&e.preventDefault(),s.length||(s=n.hasClass("alert")?n:n.parent()),s.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(s.removeClass("in"),t.support.transition&&s.hasClass("fade")?s.one("bsTransitionEnd",i).emulateTransitionEnd(150):i())}
var o=t.fn.alert
t.fn.alert=e,t.fn.alert.Constructor=n,t.fn.alert.noConflict=function(){return t.fn.alert=o,this},t(document).on("click.bs.alert.data-api",i,n.prototype.close)}(jQuery),function(t){"use strict"
function e(e){return this.each(function(){var n=t(this),o=n.data("bs.button"),s="object"==typeof e&&e
o||n.data("bs.button",o=new i(this,s)),"toggle"==e?o.toggle():e&&o.setState(e)})}var i=function(e,n){this.$element=t(e),this.options=t.extend({},i.DEFAULTS,n),this.isLoading=!1}
i.VERSION="3.2.0",i.DEFAULTS={loadingText:"loading..."},i.prototype.setState=function(e){var i="disabled",n=this.$element,o=n.is("input")?"val":"html",s=n.data()
e+="Text",null==s.resetText&&n.data("resetText",n[o]()),n[o](null==s[e]?this.options[e]:s[e]),setTimeout(t.proxy(function(){"loadingText"==e?(this.isLoading=!0,n.addClass(i).attr(i,i)):this.isLoading&&(this.isLoading=!1,n.removeClass(i).removeAttr(i))},this),0)},i.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]')
if(e.length){var i=this.$element.find("input")
"radio"==i.prop("type")&&(i.prop("checked")&&this.$element.hasClass("active")?t=!1:e.find(".active").removeClass("active")),t&&i.prop("checked",!this.$element.hasClass("active")).trigger("change")}t&&this.$element.toggleClass("active")}
var n=t.fn.button
t.fn.button=e,t.fn.button.Constructor=i,t.fn.button.noConflict=function(){return t.fn.button=n,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(i){var n=t(i.target)
n.hasClass("btn")||(n=n.closest(".btn")),e.call(n,"toggle"),i.preventDefault()})}(jQuery),function(t){"use strict"
function e(e){return this.each(function(){var n=t(this),o=n.data("bs.carousel"),s=t.extend({},i.DEFAULTS,n.data(),"object"==typeof e&&e),a="string"==typeof e?e:s.slide
o||n.data("bs.carousel",o=new i(this,s)),"number"==typeof e?o.to(e):a?o[a]():s.interval&&o.pause().cycle()})}var i=function(e,i){this.$element=t(e).on("keydown.bs.carousel",t.proxy(this.keydown,this)),this.$indicators=this.$element.find(".carousel-indicators"),this.options=i,this.paused=this.sliding=this.interval=this.$active=this.$items=null,"hover"==this.options.pause&&this.$element.on("mouseenter.bs.carousel",t.proxy(this.pause,this)).on("mouseleave.bs.carousel",t.proxy(this.cycle,this))}
i.VERSION="3.2.0",i.DEFAULTS={interval:5e3,pause:"hover",wrap:!0},i.prototype.keydown=function(t){switch(t.which){case 37:this.prev()
break
case 39:this.next()
break
default:return}t.preventDefault()},i.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},i.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},i.prototype.to=function(e){var i=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"))
return e>this.$items.length-1||0>e?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){i.to(e)}):n==e?this.pause().cycle():this.slide(e>n?"next":"prev",t(this.$items[e]))},i.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},i.prototype.next=function(){return this.sliding?void 0:this.slide("next")},i.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},i.prototype.slide=function(e,i){var n=this.$element.find(".item.active"),o=i||n[e](),s=this.interval,a="next"==e?"left":"right",r="next"==e?"first":"last",l=this
if(!o.length){if(!this.options.wrap)return
o=this.$element.find(".item")[r]()}if(o.hasClass("active"))return this.sliding=!1
var c=o[0],u=t.Event("slide.bs.carousel",{relatedTarget:c,direction:a})
if(this.$element.trigger(u),!u.isDefaultPrevented()){if(this.sliding=!0,s&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active")
var d=t(this.$indicators.children()[this.getItemIndex(o)])
d&&d.addClass("active")}var h=t.Event("slid.bs.carousel",{relatedTarget:c,direction:a})
return t.support.transition&&this.$element.hasClass("slide")?(o.addClass(e),o[0].offsetWidth,n.addClass(a),o.addClass(a),n.one("bsTransitionEnd",function(){o.removeClass([e,a].join(" ")).addClass("active"),n.removeClass(["active",a].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger(h)},0)}).emulateTransitionEnd(600)):(n.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(h)),s&&this.cycle(),this}}
var n=t.fn.carousel
t.fn.carousel=e,t.fn.carousel.Constructor=i,t.fn.carousel.noConflict=function(){return t.fn.carousel=n,this},t(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(i){var n,o=t(this),s=t(o.attr("data-target")||(n=o.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,""))
if(s.hasClass("carousel")){var a=t.extend({},s.data(),o.data()),r=o.attr("data-slide-to")
r&&(a.interval=!1),e.call(s,a),r&&s.data("bs.carousel").to(r),i.preventDefault()}}),t(window).on("load",function(){t('[data-ride="carousel"]').each(function(){var i=t(this)
e.call(i,i.data())})})}(jQuery),function(t){"use strict"
function e(e){return this.each(function(){var n=t(this),o=n.data("bs.collapse"),s=t.extend({},i.DEFAULTS,n.data(),"object"==typeof e&&e)
!o&&s.toggle&&"show"==e&&(e=!e),o||n.data("bs.collapse",o=new i(this,s)),"string"==typeof e&&o[e]()})}var i=function(e,n){this.$element=t(e),this.options=t.extend({},i.DEFAULTS,n),this.transitioning=null,this.options.parent&&(this.$parent=t(this.options.parent)),this.options.toggle&&this.toggle()}
i.VERSION="3.2.0",i.DEFAULTS={toggle:!0},i.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},i.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var i=t.Event("show.bs.collapse")
if(this.$element.trigger(i),!i.isDefaultPrevented()){var n=this.$parent&&this.$parent.find("> .panel > .in")
if(n&&n.length){var o=n.data("bs.collapse")
if(o&&o.transitioning)return
e.call(n,"hide"),o||n.data("bs.collapse",null)}var s=this.dimension()
this.$element.removeClass("collapse").addClass("collapsing")[s](0),this.transitioning=1
var a=function(){this.$element.removeClass("collapsing").addClass("collapse in")[s](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")}
if(!t.support.transition)return a.call(this)
var r=t.camelCase(["scroll",s].join("-"))
this.$element.one("bsTransitionEnd",t.proxy(a,this)).emulateTransitionEnd(350)[s](this.$element[0][r])}}},i.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=t.Event("hide.bs.collapse")
if(this.$element.trigger(e),!e.isDefaultPrevented()){var i=this.dimension()
this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1
var n=function(){this.transitioning=0,this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")}
return t.support.transition?void this.$element[i](0).one("bsTransitionEnd",t.proxy(n,this)).emulateTransitionEnd(350):n.call(this)}}},i.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()}
var n=t.fn.collapse
t.fn.collapse=e,t.fn.collapse.Constructor=i,t.fn.collapse.noConflict=function(){return t.fn.collapse=n,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(i){var n,o=t(this),s=o.attr("data-target")||i.preventDefault()||(n=o.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,""),a=t(s),r=a.data("bs.collapse"),l=r?"toggle":o.data(),c=o.attr("data-parent"),u=c&&t(c)
r&&r.transitioning||(u&&u.find('[data-toggle="collapse"][data-parent="'+c+'"]').not(o).addClass("collapsed"),o[a.hasClass("in")?"addClass":"removeClass"]("collapsed")),e.call(a,l)})}(jQuery),function(t){"use strict"
function e(e){e&&3===e.which||(t(o).remove(),t(s).each(function(){var n=i(t(this)),o={relatedTarget:this}
n.hasClass("open")&&(n.trigger(e=t.Event("hide.bs.dropdown",o)),e.isDefaultPrevented()||n.removeClass("open").trigger("hidden.bs.dropdown",o))}))}function i(e){var i=e.attr("data-target")
i||(i=e.attr("href"),i=i&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,""))
var n=i&&t(i)
return n&&n.length?n:e.parent()}function n(e){return this.each(function(){var i=t(this),n=i.data("bs.dropdown")
n||i.data("bs.dropdown",n=new a(this)),"string"==typeof e&&n[e].call(i)})}var o=".dropdown-backdrop",s='[data-toggle="dropdown"]',a=function(e){t(e).on("click.bs.dropdown",this.toggle)}
a.VERSION="3.2.0",a.prototype.toggle=function(n){var o=t(this)
if(!o.is(".disabled, :disabled")){var s=i(o),a=s.hasClass("open")
if(e(),!a){"ontouchstart"in document.documentElement&&!s.closest(".navbar-nav").length&&t('<div class="dropdown-backdrop"/>').insertAfter(t(this)).on("click",e)
var r={relatedTarget:this}
if(s.trigger(n=t.Event("show.bs.dropdown",r)),n.isDefaultPrevented())return
o.trigger("focus"),s.toggleClass("open").trigger("shown.bs.dropdown",r)}return!1}},a.prototype.keydown=function(e){if(/(38|40|27)/.test(e.keyCode)){var n=t(this)
if(e.preventDefault(),e.stopPropagation(),!n.is(".disabled, :disabled")){var o=i(n),a=o.hasClass("open")
if(!a||a&&27==e.keyCode)return 27==e.which&&o.find(s).trigger("focus"),n.trigger("click")
var r=" li:not(.divider):visible a",l=o.find('[role="menu"]'+r+', [role="listbox"]'+r)
if(l.length){var c=l.index(l.filter(":focus"))
38==e.keyCode&&c>0&&c--,40==e.keyCode&&c<l.length-1&&c++,~c||(c=0),l.eq(c).trigger("focus")}}}}
var r=t.fn.dropdown
t.fn.dropdown=n,t.fn.dropdown.Constructor=a,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=r,this},t(document).on("click.bs.dropdown.data-api",e).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",s,a.prototype.toggle).on("keydown.bs.dropdown.data-api",s+', [role="menu"], [role="listbox"]',a.prototype.keydown)}(jQuery),function(t){"use strict"
function e(e,n){return this.each(function(){var o=t(this),s=o.data("bs.modal"),a=t.extend({},i.DEFAULTS,o.data(),"object"==typeof e&&e)
s||o.data("bs.modal",s=new i(this,a)),"string"==typeof e?s[e](n):a.show&&s.show(n)})}var i=function(e,i){this.options=i,this.$body=t(document.body),this.$element=t(e),this.$backdrop=this.isShown=null,this.scrollbarWidth=0,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,t.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))}
i.VERSION="3.2.0",i.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},i.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},i.prototype.show=function(e){var i=this,n=t.Event("show.bs.modal",{relatedTarget:e})
this.$element.trigger(n),this.isShown||n.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.$body.addClass("modal-open"),this.setScrollbar(),this.escape(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',t.proxy(this.hide,this)),this.backdrop(function(){var n=t.support.transition&&i.$element.hasClass("fade")
i.$element.parent().length||i.$element.appendTo(i.$body),i.$element.show().scrollTop(0),n&&i.$element[0].offsetWidth,i.$element.addClass("in").attr("aria-hidden",!1),i.enforceFocus()
var o=t.Event("shown.bs.modal",{relatedTarget:e})
n?i.$element.find(".modal-dialog").one("bsTransitionEnd",function(){i.$element.trigger("focus").trigger(o)}).emulateTransitionEnd(300):i.$element.trigger("focus").trigger(o)}))},i.prototype.hide=function(e){e&&e.preventDefault(),e=t.Event("hide.bs.modal"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,this.$body.removeClass("modal-open"),this.resetScrollbar(),this.escape(),t(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal"),t.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",t.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal())},i.prototype.enforceFocus=function(){t(document).off("focusin.bs.modal").on("focusin.bs.modal",t.proxy(function(t){this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},i.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keyup.dismiss.bs.modal",t.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keyup.dismiss.bs.modal")},i.prototype.hideModal=function(){var t=this
this.$element.hide(),this.backdrop(function(){t.$element.trigger("hidden.bs.modal")})},i.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},i.prototype.backdrop=function(e){var i=this,n=this.$element.hasClass("fade")?"fade":""
if(this.isShown&&this.options.backdrop){var o=t.support.transition&&n
if(this.$backdrop=t('<div class="modal-backdrop '+n+'" />').appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",t.proxy(function(t){t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),o&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return
o?this.$backdrop.one("bsTransitionEnd",e).emulateTransitionEnd(150):e()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in")
var s=function(){i.removeBackdrop(),e&&e()}
t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",s).emulateTransitionEnd(150):s()}else e&&e()},i.prototype.checkScrollbar=function(){document.body.clientWidth>=window.innerWidth||(this.scrollbarWidth=this.scrollbarWidth||this.measureScrollbar())},i.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10)
this.scrollbarWidth&&this.$body.css("padding-right",t+this.scrollbarWidth),$("header>*").css("padding-right",t+this.scrollbarWidth)},i.prototype.resetScrollbar=function(){this.$body.css("padding-right",""),$("header>*").css("padding-right","")},i.prototype.measureScrollbar=function(){var t=document.createElement("div")
t.className="modal-scrollbar-measure",this.$body.append(t)
var e=t.offsetWidth-t.clientWidth
return this.$body[0].removeChild(t),e}
var n=t.fn.modal
t.fn.modal=e,t.fn.modal.Constructor=i,t.fn.modal.noConflict=function(){return t.fn.modal=n,this},t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(i){var n=t(this),o=n.attr("href"),s=t(n.attr("data-target")||o&&o.replace(/.*(?=#[^\s]+$)/,"")),a=s.data("bs.modal")?"toggle":t.extend({remote:!/#/.test(o)&&o},s.data(),n.data())
n.is("a")&&i.preventDefault(),s.one("show.bs.modal",function(t){t.isDefaultPrevented()||s.one("hidden.bs.modal",function(){n.is(":visible")&&n.trigger("focus")})}),e.call(s,a,this)})}(jQuery),function(t){"use strict"
function e(e){return this.each(function(){var n=t(this),o=n.data("bs.tooltip"),s="object"==typeof e&&e;(o||"destroy"!=e)&&(o||n.data("bs.tooltip",o=new i(this,s)),"string"==typeof e&&o[e]())})}var i=function(t,e){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("tooltip",t,e)}
i.VERSION="3.2.0",i.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},i.prototype.init=function(e,i,n){this.enabled=!0,this.type=e,this.$element=t(i),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&t(this.options.viewport.selector||this.options.viewport)
for(var o=this.options.trigger.split(" "),s=o.length;s--;){var a=o[s]
if("click"==a)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this))
else if("manual"!=a){var r="hover"==a?"mouseenter":"focusin",l="hover"==a?"mouseleave":"focusout"
this.$element.on(r+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},i.prototype.getDefaults=function(){return i.DEFAULTS},i.prototype.getOptions=function(e){return e=t.extend({},this.getDefaults(),this.$element.data(),e),e.delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},i.prototype.getDelegateOptions=function(){var e={},i=this.getDefaults()
return this._options&&t.each(this._options,function(t,n){i[t]!=n&&(e[t]=n)}),e},i.prototype.enter=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type)
return i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),clearTimeout(i.timeout),i.hoverState="in",i.options.delay&&i.options.delay.show?void(i.timeout=setTimeout(function(){"in"==i.hoverState&&i.show()},i.options.delay.show)):i.show()},i.prototype.leave=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type)
return i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),clearTimeout(i.timeout),i.hoverState="out",i.options.delay&&i.options.delay.hide?void(i.timeout=setTimeout(function(){"out"==i.hoverState&&i.hide()},i.options.delay.hide)):i.hide()},i.prototype.show=function(){var e=t.Event("show.bs."+this.type)
if(this.hasContent()&&this.enabled){this.$element.trigger(e)
var i=t.contains(document.documentElement,this.$element[0])
if(e.isDefaultPrevented()||!i)return
var n=this,o=this.tip(),s=this.getUID(this.type)
this.setContent(),o.attr("id",s),this.$element.attr("aria-describedby",s),this.options.animation&&o.addClass("fade")
var a="function"==typeof this.options.placement?this.options.placement.call(this,o[0],this.$element[0]):this.options.placement,r=/\s?auto?\s?/i,l=r.test(a)
l&&(a=a.replace(r,"")||"top"),o.detach().css({top:0,left:0,display:"block"}).addClass(a).data("bs."+this.type,this),this.options.container?o.appendTo(this.options.container):o.insertAfter(this.$element)
var c=this.getPosition(),u=o[0].offsetWidth,d=o[0].offsetHeight
if(l){var h=a,p=this.$element.parent(),f=this.getPosition(p)
a="bottom"==a&&c.top+c.height+d-f.scroll>f.height?"top":"top"==a&&c.top-f.scroll-d<0?"bottom":"right"==a&&c.right+u>f.width?"left":"left"==a&&c.left-u<f.left?"right":a,o.removeClass(h).addClass(a)}var m=this.getCalculatedOffset(a,c,u,d)
this.applyPlacement(m,a)
var g=function(){n.$element.trigger("shown.bs."+n.type),n.hoverState=null}
t.support.transition&&this.$tip.hasClass("fade")?o.one("bsTransitionEnd",g).emulateTransitionEnd(150):g()}},i.prototype.applyPlacement=function(e,i){var n=this.tip(),o=n[0].offsetWidth,s=n[0].offsetHeight,a=parseInt(n.css("margin-top"),10),r=parseInt(n.css("margin-left"),10)
isNaN(a)&&(a=0),isNaN(r)&&(r=0),e.top=e.top+a,e.left=e.left+r,t.offset.setOffset(n[0],t.extend({using:function(t){n.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),n.addClass("in")
var l=n[0].offsetWidth,c=n[0].offsetHeight
"top"==i&&c!=s&&(e.top=e.top+s-c)
var u=this.getViewportAdjustedDelta(i,e,l,c)
u.left?e.left+=u.left:e.top+=u.top
var d=u.left?2*u.left-o+l:2*u.top-s+c,h=u.left?"left":"top",p=u.left?"offsetWidth":"offsetHeight"
n.offset(e),this.replaceArrow(d,n[0][p],h)},i.prototype.replaceArrow=function(t,e,i){this.arrow().css(i,t?50*(1-t/e)+"%":"")},i.prototype.setContent=function(){var t=this.tip(),e=this.getTitle()
t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},i.prototype.hide=function(){function e(){"in"!=i.hoverState&&n.detach(),i.$element.trigger("hidden.bs."+i.type)}var i=this,n=this.tip(),o=t.Event("hide.bs."+this.type)
return this.$element.removeAttr("aria-describedby"),this.$element.trigger(o),o.isDefaultPrevented()?void 0:(n.removeClass("in"),t.support.transition&&this.$tip.hasClass("fade")?n.one("bsTransitionEnd",e).emulateTransitionEnd(150):e(),this.hoverState=null,this)},i.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},i.prototype.hasContent=function(){return this.getTitle()},i.prototype.getPosition=function(e){e=e||this.$element
var i=e[0],n="BODY"==i.tagName
return t.extend({},"function"==typeof i.getBoundingClientRect?i.getBoundingClientRect():null,{scroll:n?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop(),width:n?t(window).width():e.outerWidth(),height:n?t(window).height():e.outerHeight()},n?{top:0,left:0}:e.offset())},i.prototype.getCalculatedOffset=function(t,e,i,n){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-i/2}:"top"==t?{top:e.top-n,left:e.left+e.width/2-i/2}:"left"==t?{top:e.top+e.height/2-n/2,left:e.left-i}:{top:e.top+e.height/2-n/2,left:e.left+e.width}},i.prototype.getViewportAdjustedDelta=function(t,e,i,n){var o={top:0,left:0}
if(!this.$viewport)return o
var s=this.options.viewport&&this.options.viewport.padding||0,a=this.getPosition(this.$viewport)
if(/right|left/.test(t)){var r=e.top-s-a.scroll,l=e.top+s-a.scroll+n
r<a.top?o.top=a.top-r:l>a.top+a.height&&(o.top=a.top+a.height-l)}else{var c=e.left-s,u=e.left+s+i
c<a.left?o.left=a.left-c:u>a.width&&(o.left=a.left+a.width-u)}return o},i.prototype.getTitle=function(){var t=this.$element,e=this.options
return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},i.prototype.getUID=function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t))
return t},i.prototype.tip=function(){return this.$tip=this.$tip||t(this.options.template)},i.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},i.prototype.validate=function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},i.prototype.enable=function(){this.enabled=!0},i.prototype.disable=function(){this.enabled=!1},i.prototype.toggleEnabled=function(){this.enabled=!this.enabled},i.prototype.toggle=function(e){var i=this
e&&((i=t(e.currentTarget).data("bs."+this.type))||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i))),i.tip().hasClass("in")?i.leave(i):i.enter(i)},i.prototype.destroy=function(){clearTimeout(this.timeout),this.hide().$element.off("."+this.type).removeData("bs."+this.type)}
var n=t.fn.tooltip
t.fn.tooltip=e,t.fn.tooltip.Constructor=i,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=n,this}}(jQuery),function(t){"use strict"
function e(e){return this.each(function(){var n=t(this),o=n.data("bs.popover"),s="object"==typeof e&&e;(o||"destroy"!=e)&&(o||n.data("bs.popover",o=new i(this,s)),"string"==typeof e&&o[e]())})}var i=function(t,e){this.init("popover",t,e)}
if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js")
i.VERSION="3.2.0",i.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),i.prototype=t.extend({},t.fn.tooltip.Constructor.prototype),i.prototype.constructor=i,i.prototype.getDefaults=function(){return i.DEFAULTS},i.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),i=this.getContent()
t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").empty()[this.options.html?"string"==typeof i?"html":"append":"text"](i),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},i.prototype.hasContent=function(){return this.getTitle()||this.getContent()},i.prototype.getContent=function(){var t=this.$element,e=this.options
return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},i.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},i.prototype.tip=function(){return this.$tip||(this.$tip=t(this.options.template)),this.$tip}
var n=t.fn.popover
t.fn.popover=e,t.fn.popover.Constructor=i,t.fn.popover.noConflict=function(){return t.fn.popover=n,this}}(jQuery),function(t){"use strict"
function e(i,n){var o=t.proxy(this.process,this)
this.$body=t("body"),this.$scrollElement=t(t(i).is("body")?window:i),this.options=t.extend({},e.DEFAULTS,n),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",o),this.refresh(),this.process()}function i(i){return this.each(function(){var n=t(this),o=n.data("bs.scrollspy"),s="object"==typeof i&&i
o||n.data("bs.scrollspy",o=new e(this,s)),"string"==typeof i&&o[i]()})}e.VERSION="3.2.0",e.DEFAULTS={offset:10},e.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},e.prototype.refresh=function(){var e="offset",i=0
t.isWindow(this.$scrollElement[0])||(e="position",i=this.$scrollElement.scrollTop()),this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight()
var n=this
this.$body.find(this.selector).map(function(){var n=t(this),o=n.data("target")||n.attr("href"),s=/^#./.test(o)&&t(o)
return s&&s.length&&s.is(":visible")&&[[s[e]().top+i,o]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){n.offsets.push(this[0]),n.targets.push(this[1])})},e.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,i=this.getScrollHeight(),n=this.options.offset+i-this.$scrollElement.height(),o=this.offsets,s=this.targets,a=this.activeTarget
if(this.scrollHeight!=i&&this.refresh(),e>=n)return a!=(t=s[s.length-1])&&this.activate(t)
if(a&&e<=o[0])return a!=(t=s[0])&&this.activate(t)
for(t=o.length;t--;)a!=s[t]&&e>=o[t]&&(!o[t+1]||e<=o[t+1])&&this.activate(s[t])},e.prototype.activate=function(e){this.activeTarget=e,t(this.selector).parentsUntil(this.options.target,".active").removeClass("active")
var i=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',n=t(i).parents("li").addClass("active")
n.parent(".dropdown-menu").length&&(n=n.closest("li.dropdown").addClass("active")),n.trigger("activate.bs.scrollspy")}
var n=t.fn.scrollspy
t.fn.scrollspy=i,t.fn.scrollspy.Constructor=e,t.fn.scrollspy.noConflict=function(){return t.fn.scrollspy=n,this},t(window).on("load.bs.scrollspy.data-api",function(){t('[data-spy="scroll"]').each(function(){var e=t(this)
i.call(e,e.data())})})}(jQuery),function(t){"use strict"
function e(e){return this.each(function(){var n=t(this),o=n.data("bs.tab")
o||n.data("bs.tab",o=new i(this)),"string"==typeof e&&o[e]()})}var i=function(e){this.element=t(e)}
i.VERSION="3.2.0",i.prototype.show=function(){var e=this.element,i=e.closest("ul:not(.dropdown-menu)"),n=e.data("target")
if(n||(n=e.attr("href"),n=n&&n.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var o=i.find(".active:last a")[0],s=t.Event("show.bs.tab",{relatedTarget:o})
if(e.trigger(s),!s.isDefaultPrevented()){var a=t(n)
this.activate(e.closest("li"),i),this.activate(a,a.parent(),function(){e.trigger({type:"shown.bs.tab",relatedTarget:o})})}}},i.prototype.activate=function(e,i,n){function o(){s.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),e.addClass("active"),a?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu")&&e.closest("li.dropdown").addClass("active"),n&&n()}var s=i.find("> .active"),a=n&&t.support.transition&&s.hasClass("fade")
a?s.one("bsTransitionEnd",o).emulateTransitionEnd(150):o(),s.removeClass("in")}
var n=t.fn.tab
t.fn.tab=e,t.fn.tab.Constructor=i,t.fn.tab.noConflict=function(){return t.fn.tab=n,this},t(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(i){i.preventDefault(),e.call(t(this),"show")})}(jQuery),function(t){"use strict"
function e(e){return this.each(function(){var n=t(this),o=n.data("bs.affix"),s="object"==typeof e&&e
o||n.data("bs.affix",o=new i(this,s)),"string"==typeof e&&o[e]()})}var i=function(e,n){this.options=t.extend({},i.DEFAULTS,n),this.$target=t(this.options.target).on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(e),this.affixed=this.unpin=this.pinnedOffset=null,this.checkPosition()}
i.VERSION="3.2.0",i.RESET="affix affix-top affix-bottom",i.DEFAULTS={offset:0,target:window},i.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset
this.$element.removeClass(i.RESET).addClass("affix")
var t=this.$target.scrollTop(),e=this.$element.offset()
return this.pinnedOffset=e.top-t},i.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},i.prototype.checkPosition=function(){if(this.$element.is(":visible")){var e=t(document).height(),n=this.$target.scrollTop(),o=this.$element.offset(),s=this.options.offset,a=s.top,r=s.bottom
"object"!=typeof s&&(r=a=s),"function"==typeof a&&(a=s.top(this.$element)),"function"==typeof r&&(r=s.bottom(this.$element))
var l=!(null!=this.unpin&&n+this.unpin<=o.top)&&(null!=r&&o.top+this.$element.height()>=e-r?"bottom":null!=a&&a>=n&&"top")
if(this.affixed!==l){null!=this.unpin&&this.$element.css("top","")
var c="affix"+(l?"-"+l:""),u=t.Event(c+".bs.affix")
this.$element.trigger(u),u.isDefaultPrevented()||(this.affixed=l,this.unpin="bottom"==l?this.getPinnedOffset():null,this.$element.removeClass(i.RESET).addClass(c).trigger(t.Event(c.replace("affix","affixed"))),"bottom"==l&&this.$element.offset({top:e-this.$element.height()-r}))}}}
var n=t.fn.affix
t.fn.affix=e,t.fn.affix.Constructor=i,t.fn.affix.noConflict=function(){return t.fn.affix=n,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var i=t(this),n=i.data()
n.offset=n.offset||{},n.offsetBottom&&(n.offset.bottom=n.offsetBottom),n.offsetTop&&(n.offset.top=n.offsetTop),e.call(i,n)})})}(jQuery),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(t){t.ui=t.ui||{},t.ui.version="1.12.1"
var e=0,i=Array.prototype.slice
t.cleanData=function(e){return function(i){var n,o,s
for(s=0;null!=(o=i[s]);s++)try{(n=t._data(o,"events"))&&n.remove&&t(o).triggerHandler("remove")}catch(t){}e(i)}}(t.cleanData),t.widget=function(e,i,n){var o,s,a,r={},l=e.split(".")[0]
e=e.split(".")[1]
var c=l+"-"+e
return n||(n=i,i=t.Widget),t.isArray(n)&&(n=t.extend.apply(null,[{}].concat(n))),t.expr[":"][c.toLowerCase()]=function(e){return!!t.data(e,c)},t[l]=t[l]||{},o=t[l][e],s=t[l][e]=function(t,e){return this._createWidget?void(arguments.length&&this._createWidget(t,e)):new s(t,e)},t.extend(s,o,{version:n.version,_proto:t.extend({},n),_childConstructors:[]}),a=new i,a.options=t.widget.extend({},a.options),t.each(n,function(e,n){return t.isFunction(n)?void(r[e]=function(){function t(){return i.prototype[e].apply(this,arguments)}function o(t){return i.prototype[e].apply(this,t)}return function(){var e,i=this._super,s=this._superApply
return this._super=t,this._superApply=o,e=n.apply(this,arguments),this._super=i,this._superApply=s,e}}()):void(r[e]=n)}),s.prototype=t.widget.extend(a,{widgetEventPrefix:o?a.widgetEventPrefix||e:e},r,{constructor:s,namespace:l,widgetName:e,widgetFullName:c}),o?(t.each(o._childConstructors,function(e,i){var n=i.prototype
t.widget(n.namespace+"."+n.widgetName,s,i._proto)}),delete o._childConstructors):i._childConstructors.push(s),t.widget.bridge(e,s),s},t.widget.extend=function(e){for(var n,o,s=i.call(arguments,1),a=0,r=s.length;r>a;a++)for(n in s[a])o=s[a][n],s[a].hasOwnProperty(n)&&void 0!==o&&(e[n]=t.isPlainObject(o)?t.isPlainObject(e[n])?t.widget.extend({},e[n],o):t.widget.extend({},o):o)
return e},t.widget.bridge=function(e,n){var o=n.prototype.widgetFullName||e
t.fn[e]=function(s){var a="string"==typeof s,r=i.call(arguments,1),l=this
return a?this.length||"instance"!==s?this.each(function(){var i,n=t.data(this,o)
return"instance"===s?(l=n,!1):n?t.isFunction(n[s])&&"_"!==s.charAt(0)?(i=n[s].apply(n,r),i!==n&&void 0!==i?(l=i&&i.jquery?l.pushStack(i.get()):i,!1):void 0):t.error("no such method '"+s+"' for "+e+" widget instance"):t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+s+"'")}):l=void 0:(r.length&&(s=t.widget.extend.apply(null,[s].concat(r))),this.each(function(){var e=t.data(this,o)
e?(e.option(s||{}),e._init&&e._init()):t.data(this,o,new n(s,this))})),l}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(i,n){n=t(n||this.defaultElement||this)[0],this.element=t(n),this.uuid=e++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},n!==this&&(t.data(n,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===n&&this.destroy()}}),this.document=t(n.style?n.ownerDocument:n.document||n),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),i),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this
this._destroy(),t.each(this.classesElementLookup,function(t,i){e._removeClass(i,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,i){var n,o,s,a=e
if(0===arguments.length)return t.widget.extend({},this.options)
if("string"==typeof e)if(a={},n=e.split("."),e=n.shift(),n.length){for(o=a[e]=t.widget.extend({},this.options[e]),s=0;n.length-1>s;s++)o[n[s]]=o[n[s]]||{},o=o[n[s]]
if(e=n.pop(),1===arguments.length)return void 0===o[e]?null:o[e]
o[e]=i}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e]
a[e]=i}return this._setOptions(a),this},_setOptions:function(t){var e
for(e in t)this._setOption(e,t[e])
return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(e){var i,n,o
for(i in e)o=this.classesElementLookup[i],e[i]!==this.options.classes[i]&&o&&o.length&&(n=t(o.get()),this._removeClass(o,i),n.addClass(this._classes({element:n,keys:i,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){function i(i,s){var a,r
for(r=0;i.length>r;r++)a=o.classesElementLookup[i[r]]||t(),a=t(e.add?t.unique(a.get().concat(e.element.get())):a.not(e.element).get()),o.classesElementLookup[i[r]]=a,n.push(i[r]),s&&e.classes[i[r]]&&n.push(e.classes[i[r]])}var n=[],o=this
return e=t.extend({element:this.element,classes:this.options.classes||{}},e),this._on(e.element,{remove:"_untrackClassesElement"}),e.keys&&i(e.keys.match(/\S+/g)||[],!0),e.extra&&i(e.extra.match(/\S+/g)||[]),n.join(" ")},_untrackClassesElement:function(e){var i=this
t.each(i.classesElementLookup,function(n,o){-1!==t.inArray(e.target,o)&&(i.classesElementLookup[n]=t(o.not(e.target).get()))})},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,n){n="boolean"==typeof n?n:i
var o="string"==typeof t||null===t,s={extra:o?e:i,keys:o?t:e,element:o?this.element:t,add:n}
return s.element.toggleClass(this._classes(s),n),this},_on:function(e,i,n){var o,s=this
"boolean"!=typeof e&&(n=i,i=e,e=!1),n?(i=o=t(i),this.bindings=this.bindings.add(i)):(n=i,i=this.element,o=this.widget()),t.each(n,function(n,a){function r(){return e||!0!==s.options.disabled&&!t(this).hasClass("ui-state-disabled")?("string"==typeof a?s[a]:a).apply(s,arguments):void 0}"string"!=typeof a&&(r.guid=a.guid=a.guid||r.guid||t.guid++)
var l=n.match(/^([\w:-]*)\s*(.*)$/),c=l[1]+s.eventNamespace,u=l[2]
u?o.on(c,u,r):i.on(c,r)})},_off:function(e,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(i).off(i),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){function i(){return("string"==typeof t?n[t]:t).apply(n,arguments)}var n=this
return setTimeout(i,e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,i,n){var o,s,a=this.options[e]
if(n=n||{},i=t.Event(i),i.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],s=i.originalEvent)for(o in s)o in i||(i[o]=s[o])
return this.element.trigger(i,n),!(t.isFunction(a)&&!1===a.apply(this.element[0],[i].concat(n))||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,i){t.Widget.prototype["_"+e]=function(n,o,s){"string"==typeof o&&(o={effect:o})
var a,r=o?!0===o||"number"==typeof o?i:o.effect||i:e
o=o||{},"number"==typeof o&&(o={duration:o}),a=!t.isEmptyObject(o),o.complete=s,o.delay&&n.delay(o.delay),a&&t.effects&&t.effects.effect[r]?n[e](o):r!==e&&n[r]?n[r](o.duration,o.easing,s):n.queue(function(i){t(this)[e](),s&&s.call(n[0]),i()})}}),t.widget,function(){function e(t,e,i){return[parseFloat(t[0])*(d.test(t[0])?e/100:1),parseFloat(t[1])*(d.test(t[1])?i/100:1)]}function i(e,i){return parseInt(t.css(e,i),10)||0}function n(e){var i=e[0]
return 9===i.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:t.isWindow(i)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}var o,s=Math.max,a=Math.abs,r=/left|center|right/,l=/top|center|bottom/,c=/[\+\-]\d+(\.[\d]+)?%?/,u=/^\w+/,d=/%$/,h=t.fn.position
t.position={scrollbarWidth:function(){if(void 0!==o)return o
var e,i,n=t("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),s=n.children()[0]
return t("body").append(n),e=s.offsetWidth,n.css("overflow","scroll"),i=s.offsetWidth,e===i&&(i=n[0].clientWidth),n.remove(),o=e-i},getScrollInfo:function(e){var i=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),n=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),o="scroll"===i||"auto"===i&&e.width<e.element[0].scrollWidth
return{width:"scroll"===n||"auto"===n&&e.height<e.element[0].scrollHeight?t.position.scrollbarWidth():0,height:o?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var i=t(e||window),n=t.isWindow(i[0]),o=!!i[0]&&9===i[0].nodeType
return{element:i,isWindow:n,isDocument:o,offset:n||o?{left:0,top:0}:t(e).offset(),scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:i.outerWidth(),height:i.outerHeight()}}},t.fn.position=function(o){if(!o||!o.of)return h.apply(this,arguments)
o=t.extend({},o)
var d,p,f,m,g,v,y=t(o.of),b=t.position.getWithinInfo(o.within),w=t.position.getScrollInfo(b),x=(o.collision||"flip").split(" "),C={}
return v=n(y),y[0].preventDefault&&(o.at="left top"),p=v.width,f=v.height,m=v.offset,g=t.extend({},m),t.each(["my","at"],function(){var t,e,i=(o[this]||"").split(" ")
1===i.length&&(i=r.test(i[0])?i.concat(["center"]):l.test(i[0])?["center"].concat(i):["center","center"]),i[0]=r.test(i[0])?i[0]:"center",i[1]=l.test(i[1])?i[1]:"center",t=c.exec(i[0]),e=c.exec(i[1]),C[this]=[t?t[0]:0,e?e[0]:0],o[this]=[u.exec(i[0])[0],u.exec(i[1])[0]]}),1===x.length&&(x[1]=x[0]),"right"===o.at[0]?g.left+=p:"center"===o.at[0]&&(g.left+=p/2),"bottom"===o.at[1]?g.top+=f:"center"===o.at[1]&&(g.top+=f/2),d=e(C.at,p,f),g.left+=d[0],g.top+=d[1],this.each(function(){var n,r,l=t(this),c=l.outerWidth(),u=l.outerHeight(),h=i(this,"marginLeft"),v=i(this,"marginTop"),k=c+h+i(this,"marginRight")+w.width,_=u+v+i(this,"marginBottom")+w.height,$=t.extend({},g),T=e(C.my,l.outerWidth(),l.outerHeight())
"right"===o.my[0]?$.left-=c:"center"===o.my[0]&&($.left-=c/2),"bottom"===o.my[1]?$.top-=u:"center"===o.my[1]&&($.top-=u/2),$.left+=T[0],$.top+=T[1],n={marginLeft:h,marginTop:v},t.each(["left","top"],function(e,i){t.ui.position[x[e]]&&t.ui.position[x[e]][i]($,{targetWidth:p,targetHeight:f,elemWidth:c,elemHeight:u,collisionPosition:n,collisionWidth:k,collisionHeight:_,offset:[d[0]+T[0],d[1]+T[1]],my:o.my,at:o.at,within:b,elem:l})}),o.using&&(r=function(t){var e=m.left-$.left,i=e+p-c,n=m.top-$.top,r=n+f-u,d={target:{element:y,left:m.left,top:m.top,width:p,height:f},element:{element:l,left:$.left,top:$.top,width:c,height:u},horizontal:0>i?"left":e>0?"right":"center",vertical:0>r?"top":n>0?"bottom":"middle"}
c>p&&p>a(e+i)&&(d.horizontal="center"),u>f&&f>a(n+r)&&(d.vertical="middle"),d.important=s(a(e),a(i))>s(a(n),a(r))?"horizontal":"vertical",o.using.call(this,t,d)}),l.offset(t.extend($,{using:r}))})},t.ui.position={fit:{left:function(t,e){var i,n=e.within,o=n.isWindow?n.scrollLeft:n.offset.left,a=n.width,r=t.left-e.collisionPosition.marginLeft,l=o-r,c=r+e.collisionWidth-a-o
e.collisionWidth>a?l>0&&0>=c?(i=t.left+l+e.collisionWidth-a-o,t.left+=l-i):t.left=c>0&&0>=l?o:l>c?o+a-e.collisionWidth:o:l>0?t.left+=l:c>0?t.left-=c:t.left=s(t.left-r,t.left)},top:function(t,e){var i,n=e.within,o=n.isWindow?n.scrollTop:n.offset.top,a=e.within.height,r=t.top-e.collisionPosition.marginTop,l=o-r,c=r+e.collisionHeight-a-o
e.collisionHeight>a?l>0&&0>=c?(i=t.top+l+e.collisionHeight-a-o,t.top+=l-i):t.top=c>0&&0>=l?o:l>c?o+a-e.collisionHeight:o:l>0?t.top+=l:c>0?t.top-=c:t.top=s(t.top-r,t.top)}},flip:{left:function(t,e){var i,n,o=e.within,s=o.offset.left+o.scrollLeft,r=o.width,l=o.isWindow?o.scrollLeft:o.offset.left,c=t.left-e.collisionPosition.marginLeft,u=c-l,d=c+e.collisionWidth-r-l,h="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,p="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,f=-2*e.offset[0]
0>u?(0>(i=t.left+h+p+f+e.collisionWidth-r-s)||a(u)>i)&&(t.left+=h+p+f):d>0&&((n=t.left-e.collisionPosition.marginLeft+h+p+f-l)>0||d>a(n))&&(t.left+=h+p+f)},top:function(t,e){var i,n,o=e.within,s=o.offset.top+o.scrollTop,r=o.height,l=o.isWindow?o.scrollTop:o.offset.top,c=t.top-e.collisionPosition.marginTop,u=c-l,d=c+e.collisionHeight-r-l,h="top"===e.my[1],p=h?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,f="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,m=-2*e.offset[1]
0>u?(0>(n=t.top+p+f+m+e.collisionHeight-r-s)||a(u)>n)&&(t.top+=p+f+m):d>0&&((i=t.top-e.collisionPosition.marginTop+p+f+m-l)>0||d>a(i))&&(t.top+=p+f+m)}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}}}(),t.ui.position,t.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},t.fn.extend({uniqueId:function(){var t=0
return function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++t)})}}(),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&t(this).removeAttr("id")})}}),t.ui.safeActiveElement=function(t){var e
try{e=t.activeElement}catch(i){e=t.body}return e||(e=t.body),e.nodeName||(e=t.body),e},t.widget("ui.menu",{version:"1.12.1",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(t){t.preventDefault()},"click .ui-menu-item":function(e){var i=t(e.target),n=t(t.ui.safeActiveElement(this.document[0]))
!this.mouseHandled&&i.not(".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),i.has(".ui-menu").length?this.expand(e):!this.element.is(":focus")&&n.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(e){if(!this.previousFilter){var i=t(e.target).closest(".ui-menu-item"),n=t(e.currentTarget)
i[0]===n[0]&&(this._removeClass(n.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(e,n))}},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this.element.find(this.options.items).eq(0)
e||this.focus(t,i)},blur:function(e){this._delay(function(){!t.contains(this.element[0],t.ui.safeActiveElement(this.document[0]))&&this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t),this.mouseHandled=!1}})},_destroy:function(){var e=this.element.find(".ui-menu-item").removeAttr("role aria-disabled"),i=e.children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup")
this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),i.children().each(function(){var e=t(this)
e.data("ui-menu-submenu-caret")&&e.remove()})},_keydown:function(e){var i,n,o,s,a=!0
switch(e.keyCode){case t.ui.keyCode.PAGE_UP:this.previousPage(e)
break
case t.ui.keyCode.PAGE_DOWN:this.nextPage(e)
break
case t.ui.keyCode.HOME:this._move("first","first",e)
break
case t.ui.keyCode.END:this._move("last","last",e)
break
case t.ui.keyCode.UP:this.previous(e)
break
case t.ui.keyCode.DOWN:this.next(e)
break
case t.ui.keyCode.LEFT:this.collapse(e)
break
case t.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e)
break
case t.ui.keyCode.ENTER:case t.ui.keyCode.SPACE:this._activate(e)
break
case t.ui.keyCode.ESCAPE:this.collapse(e)
break
default:a=!1,n=this.previousFilter||"",s=!1,o=e.keyCode>=96&&105>=e.keyCode?""+(e.keyCode-96):String.fromCharCode(e.keyCode),clearTimeout(this.filterTimer),o===n?s=!0:o=n+o,i=this._filterMenuItems(o),i=s&&-1!==i.index(this.active.next())?this.active.nextAll(".ui-menu-item"):i,i.length||(o=String.fromCharCode(e.keyCode),i=this._filterMenuItems(o)),i.length?(this.focus(e,i),this.previousFilter=o,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}a&&e.preventDefault()},_activate:function(t){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var e,i,n,o,s,a=this,r=this.options.icons.submenu,l=this.element.find(this.options.menus)
this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),n=l.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var e=t(this),i=e.prev(),n=t("<span>").data("ui-menu-submenu-caret",!0)
a._addClass(n,"ui-menu-icon","ui-icon "+r),i.attr("aria-haspopup","true").prepend(n),e.attr("aria-labelledby",i.attr("id"))}),this._addClass(n,"ui-menu","ui-widget ui-widget-content ui-front"),e=l.add(this.element),i=e.find(this.options.items),i.not(".ui-menu-item").each(function(){var e=t(this)
a._isDivider(e)&&a._addClass(e,"ui-menu-divider","ui-widget-content")}),o=i.not(".ui-menu-item, .ui-menu-divider"),s=o.children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(o,"ui-menu-item")._addClass(s,"ui-menu-item-wrapper"),i.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!t.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){if("icons"===t){var i=this.element.find(".ui-menu-icon")
this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,e.submenu)}this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t+""),this._toggleClass(null,"ui-state-disabled",!!t)},focus:function(t,e){var i,n,o
this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),n=this.active.children(".ui-menu-item-wrapper"),this._addClass(n,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",n.attr("id")),o=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(o,null,"ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),i=e.children(".ui-menu"),i.length&&t&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(e){var i,n,o,s,a,r
this._hasScroll()&&(i=parseFloat(t.css(this.activeMenu[0],"borderTopWidth"))||0,n=parseFloat(t.css(this.activeMenu[0],"paddingTop"))||0,o=e.offset().top-this.activeMenu.offset().top-i-n,s=this.activeMenu.scrollTop(),a=this.activeMenu.height(),r=e.outerHeight(),0>o?this.activeMenu.scrollTop(s+o):o+r>a&&this.activeMenu.scrollTop(s+o-a+r))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",t,{item:this.active}),this.active=null)},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(t)},this.delay))},_open:function(e){var i=t.extend({of:this.active},this.options.position)
clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(e,i){clearTimeout(this.timer),this.timer=this._delay(function(){var n=i?this.element:t(e&&e.target).closest(this.element.find(".ui-menu"))
n.length||(n=this.element),this._close(n),this.blur(e),this._removeClass(n.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=n},this.delay)},_close:function(t){t||(t=this.active?this.active.parent():this.element),t.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(e){return!t(e.target).closest(".ui-menu").length},_isDivider:function(t){return!/[^\-\u2014\u2013\s]/.test(t.text())},collapse:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element)
e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this.active.children(".ui-menu ").find(this.options.items).first()
e&&e.length&&(this._open(e.parent()),this._delay(function(){this.focus(t,e)}))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(t,e,i){var n
this.active&&(n="first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[t+"All"](".ui-menu-item").eq(0)),n&&n.length&&this.active||(n=this.activeMenu.find(this.options.items)[e]()),this.focus(i,n)},nextPage:function(e){var i,n,o
return this.active?void(this.isLastItem()||(this._hasScroll()?(n=this.active.offset().top,o=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return i=t(this),0>i.offset().top-n-o}),this.focus(e,i)):this.focus(e,this.activeMenu.find(this.options.items)[this.active?"last":"first"]()))):void this.next(e)},previousPage:function(e){var i,n,o
return this.active?void(this.isFirstItem()||(this._hasScroll()?(n=this.active.offset().top,o=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return i=t(this),i.offset().top-n+o>0}),this.focus(e,i)):this.focus(e,this.activeMenu.find(this.options.items).first()))):void this.next(e)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(e){this.active=this.active||t(e.target).closest(".ui-menu-item")
var i={item:this.active}
this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,i)},_filterMenuItems:function(e){var i=e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),n=RegExp("^"+i,"i")
return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return n.test(t.trim(t(this).children(".ui-menu-item-wrapper").text()))})}}),t.widget("ui.autocomplete",{version:"1.12.1",defaultElement:"<input>",options:{appendTo:null,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},requestIndex:0,pending:0,_create:function(){var e,i,n,o=this.element[0].nodeName.toLowerCase(),s="textarea"===o,a="input"===o
this.isMultiLine=s||!a&&this._isContentEditable(this.element),this.valueMethod=this.element[s||a?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off2"),this._on(this.element,{keydown:function(o){if(this.element.prop("readOnly"))return e=!0,n=!0,void(i=!0)
e=!1,n=!1,i=!1
var s=t.ui.keyCode
switch(o.keyCode){case s.PAGE_UP:e=!0,this._move("previousPage",o)
break
case s.PAGE_DOWN:e=!0,this._move("nextPage",o)
break
case s.UP:e=!0,this._keyEvent("previous",o)
break
case s.DOWN:e=!0,this._keyEvent("next",o)
break
case s.ENTER:this.menu.active&&(e=!0,o.preventDefault(),this.menu.select(o))
break
case s.TAB:this.menu.active&&this.menu.select(o)
break
case s.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(o),o.preventDefault())
break
default:i=!0,this._searchTimeout(o)}},keypress:function(n){if(e)return e=!1,void((!this.isMultiLine||this.menu.element.is(":visible"))&&n.preventDefault())
if(!i){var o=t.ui.keyCode
switch(n.keyCode){case o.PAGE_UP:this._move("previousPage",n)
break
case o.PAGE_DOWN:this._move("nextPage",n)
break
case o.UP:this._keyEvent("previous",n)
break
case o.DOWN:this._keyEvent("next",n)}}},input:function(t){return n?(n=!1,void t.preventDefault()):void this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){return this.cancelBlur?void delete this.cancelBlur:(clearTimeout(this.searching),this.close(t),void this._change(t))}}),this._initSource(),this.menu=t("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,this.element[0]!==t.ui.safeActiveElement(this.document[0])&&this.element.trigger("focus")})},menufocus:function(e,i){var n,o
return this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent&&/^mouse/.test(e.originalEvent.type))?(this.menu.blur(),void this.document.one("mousemove",function(){t(e.target).trigger(e.originalEvent)})):(o=i.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:o})&&o&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(o.value),void((n=i.item.attr("aria-label")||o&&o.value)&&t.trim(n).length&&(this.liveRegion.children().hide(),t("<div>").text(n).appendTo(this.liveRegion))))},menuselect:function(e,i){var n=i.item.data("ui-autocomplete-item"),o=this.previous
this.element[0]!==t.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=o,this._delay(function(){this.previous=o,this.selectedItem=n})),!1!==this._trigger("select",e,{item:n})&&this._value(n.value),this.term=this._value(),this.close(e),this.selectedItem=n}}),this.liveRegion=t("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(e){var i=this.menu.element[0]
return e.target===this.element[0]||e.target===i||t.contains(i,e.target)},_closeOnClickOutside:function(t){this._isEventTargetInWidget(t)||this.close()},_appendTo:function(){var e=this.options.appendTo
return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.element.closest(".ui-front, dialog")),e.length||(e=this.document[0].body),e},_initSource:function(){var e,i,n=this
t.isArray(this.options.source)?(e=this.options.source,this.source=function(i,n){n(t.ui.autocomplete.filter(e,i.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(e,o){n.xhr&&n.xhr.abort(),n.xhr=t.ajax({url:i,data:e,dataType:"json",success:function(t){o(t)},error:function(){o([])}})}):this.source=this.options.source},_searchTimeout:function(t){clearTimeout(this.searching),this.searching=this._delay(function(){var e=this.term===this._value(),i=this.menu.element.is(":visible"),n=t.altKey||t.ctrlKey||t.metaKey||t.shiftKey;(!e||e&&!i&&!n)&&(this.selectedItem=null,this.search(null,t))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length<this.options.minLength?this.close(e):!1!==this._trigger("search",e)?this._search(t):void 0},_search:function(t){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var e=++this.requestIndex
return t.proxy(function(t){e===this.requestIndex&&this.__response(t),--this.pending||this._removeClass("ui-autocomplete-loading")},this)},__response:function(t){t&&(t=this._normalize(t)),this._trigger("response",null,{content:t}),!this.options.disabled&&t&&t.length&&!this.cancelSearch?(this._suggest(t),this._trigger("open")):this._close()},close:function(t){this.cancelSearch=!0,this._close(t)},_close:function(t){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",t))},_change:function(t){this.previous!==this._value()&&this._trigger("change",t,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:t.map(e,function(e){return"string"==typeof e?{label:e,value:e}:t.extend({},e,{label:e.label||e.value,value:e.value||e.label})})},_suggest:function(e){var i=this.menu.element.empty()
this._renderMenu(i,e),this.isNewMenu=!0,this.menu.refresh(),i.show(),this._resizeMenu(),i.position(t.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var t=this.menu.element
t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(e,i){var n=this
t.each(i,function(t,i){n._renderItemData(e,i)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-autocomplete-item",e)},_renderItem:function(e,i){return t("<li>").append(t("<div>").text(i.label)).appendTo(e)},_move:function(t,e){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[t](e):void this.search(null,e)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(t,e),e.preventDefault())},_isContentEditable:function(t){if(!t.length)return!1
var e=t.prop("contentEditable")
return"inherit"===e?this._isContentEditable(t.parent()):"true"===e}}),t.extend(t.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,i){var n=RegExp(t.ui.autocomplete.escapeRegex(i),"i")
return t.grep(e,function(t){return n.test(t.label||t.value||t)})}}),t.widget("ui.autocomplete",t.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(t>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var i
this._superApply(arguments),this.options.disabled||this.cancelSearch||(i=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,this.liveRegion.children().hide(),t("<div>").text(i).appendTo(this.liveRegion))}}),t.ui.autocomplete,t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase())
var n=!1
t(document).on("mouseup",function(){n=!1}),t.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=this
this.element.on("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).on("click."+this.widgetName,function(i){return!0===t.data(i.target,e.widgetName+".preventClickEvent")?(t.removeData(i.target,e.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1):void 0}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!n){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e
var i=this,o=1===e.which,s=!("string"!=typeof this.options.cancel||!e.target.nodeName)&&t(e.target).closest(this.options.cancel).length
return!(o&&!s&&this._mouseCapture(e))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){i.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(e),!this._mouseStarted)?(e.preventDefault(),!0):(!0===t.data(e.target,this.widgetName+".preventClickEvent")&&t.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return i._mouseMove(t)},this._mouseUpDelegate=function(t){return i._mouseUp(t)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),n=!0,!0))}},_mouseMove:function(e){if(this._mouseMoved){if(t.ui.ie&&(!document.documentMode||9>document.documentMode)&&!e.button)return this._mouseUp(e)
if(!e.which)if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0
else if(!this.ignoreMissingWhich)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&t.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,n=!1,e.preventDefault()},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),t.widget("ui.slider",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,i,n=this.options,o=this.element.find(".ui-slider-handle"),s=[]
for(i=n.values&&n.values.length||1,o.length>i&&(o.slice(i).remove(),o=o.slice(0,i)),e=o.length;i>e;e++)s.push("<span tabindex='0'></span>")
this.handles=o.add(t(s.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each(function(e){t(this).data("ui-slider-handle-index",e).attr("tabIndex",0)})},_createRange:function(){var e=this.options
e.range?(!0===e.range&&(e.values?e.values.length&&2!==e.values.length?e.values=[e.values[0],e.values[0]]:t.isArray(e.values)&&(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=t("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),("min"===e.range||"max"===e.range)&&this._addClass(this.range,"ui-slider-range-"+e.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(e){var i,n,o,s,a,r,l,c=this,u=this.options
return!u.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),i={x:e.pageX,y:e.pageY},n=this._normValueFromMouse(i),o=this._valueMax()-this._valueMin()+1,this.handles.each(function(e){var i=Math.abs(n-c.values(e));(o>i||o===i&&(e===c._lastChangedValue||c.values(e)===u.min))&&(o=i,s=t(this),a=e)}),!1!==this._start(e,a)&&(this._mouseSliding=!0,this._handleIndex=a,this._addClass(s,null,"ui-state-active"),s.trigger("focus"),r=s.offset(),l=!t(e.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=l?{left:0,top:0}:{left:e.pageX-r.left-s.width()/2,top:e.pageY-r.top-s.height()/2-(parseInt(s.css("borderTopWidth"),10)||0)-(parseInt(s.css("borderBottomWidth"),10)||0)+(parseInt(s.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,a,n),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},i=this._normValueFromMouse(e)
return this._slide(t,this._handleIndex,i),!1},_mouseStop:function(t){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e,i,n,o,s
return"horizontal"===this.orientation?(e=this.elementSize.width,i=t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,i=t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),n=i/e,n>1&&(n=1),0>n&&(n=0),"vertical"===this.orientation&&(n=1-n),o=this._valueMax()-this._valueMin(),s=this._valueMin()+n*o,this._trimAlignValue(s)},_uiHash:function(t,e,i){var n={handle:this.handles[t],handleIndex:t,value:void 0!==e?e:this.value()}
return this._hasMultipleValues()&&(n.value=void 0!==e?e:this.values(t),n.values=i||this.values()),n},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(t,e){return this._trigger("start",t,this._uiHash(e))},_slide:function(t,e,i){var n,o=this.value(),s=this.values()
this._hasMultipleValues()&&(n=this.values(e?0:1),o=this.values(e),2===this.options.values.length&&!0===this.options.range&&(i=0===e?Math.min(n,i):Math.max(n,i)),s[e]=i),i!==o&&!1!==this._trigger("slide",t,this._uiHash(e,i,s))&&(this._hasMultipleValues()?this.values(e,i):this.value(i))},_stop:function(t,e){this._trigger("stop",t,this._uiHash(e))},_change:function(t,e){this._keySliding||this._mouseSliding||(this._lastChangedValue=e,this._trigger("change",t,this._uiHash(e)))},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),void this._change(null,0)):this._value()},values:function(e,i){var n,o,s
if(arguments.length>1)return this.options.values[e]=this._trimAlignValue(i),this._refreshValue(),void this._change(null,e)
if(!arguments.length)return this._values()
if(!t.isArray(arguments[0]))return this._hasMultipleValues()?this._values(e):this.value()
for(n=this.options.values,o=arguments[0],s=0;n.length>s;s+=1)n[s]=this._trimAlignValue(o[s]),this._change(null,s)
this._refreshValue()},_setOption:function(e,i){var n,o=0
switch("range"===e&&!0===this.options.range&&("min"===i?(this.options.value=this._values(0),this.options.values=null):"max"===i&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),t.isArray(this.options.values)&&(o=this.options.values.length),this._super(e,i),e){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(i),this.handles.css("horizontal"===i?"bottom":"left","")
break
case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1
break
case"values":for(this._animateOff=!0,this._refreshValue(),n=o-1;n>=0;n--)this._change(null,n)
this._animateOff=!1
break
case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1
break
case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(t){this._super(t),this._toggleClass(null,"ui-state-disabled",!!t)},_value:function(){var t=this.options.value
return t=this._trimAlignValue(t)},_values:function(t){var e,i,n
if(arguments.length)return e=this.options.values[t],e=this._trimAlignValue(e)
if(this._hasMultipleValues()){for(i=this.options.values.slice(),n=0;i.length>n;n+=1)i[n]=this._trimAlignValue(i[n])
return i}return[]},_trimAlignValue:function(t){if(this._valueMin()>=t)return this._valueMin()
if(t>=this._valueMax())return this._valueMax()
var e=this.options.step>0?this.options.step:1,i=(t-this._valueMin())%e,n=t-i
return 2*Math.abs(i)>=e&&(n+=i>0?e:-e),parseFloat(n.toFixed(5))},_calculateNewMax:function(){var t=this.options.max,e=this._valueMin(),i=this.options.step
t=Math.round((t-e)/i)*i+e,t>this.options.max&&(t-=i),this.max=parseFloat(t.toFixed(this._precision()))},_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,i=e.indexOf(".")
return-1===i?0:e.length-i-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(t){"vertical"===t&&this.range.css({width:"",left:""}),"horizontal"===t&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var e,i,n,o,s,a=this.options.range,r=this.options,l=this,c=!this._animateOff&&r.animate,u={}
this._hasMultipleValues()?this.handles.each(function(n){i=(l.values(n)-l._valueMin())/(l._valueMax()-l._valueMin())*100,u["horizontal"===l.orientation?"left":"bottom"]=i+"%",t(this).stop(1,1)[c?"animate":"css"](u,r.animate),!0===l.options.range&&("horizontal"===l.orientation?(0===n&&l.range.stop(1,1)[c?"animate":"css"]({left:i+"%"},r.animate),1===n&&l.range[c?"animate":"css"]({width:i-e+"%"},{queue:!1,duration:r.animate})):(0===n&&l.range.stop(1,1)[c?"animate":"css"]({bottom:i+"%"},r.animate),1===n&&l.range[c?"animate":"css"]({height:i-e+"%"},{queue:!1,duration:r.animate}))),e=i}):(n=this.value(),o=this._valueMin(),s=this._valueMax(),i=s!==o?(n-o)/(s-o)*100:0,u["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[c?"animate":"css"](u,r.animate),"min"===a&&"horizontal"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({width:i+"%"},r.animate),"max"===a&&"horizontal"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({width:100-i+"%"},r.animate),"min"===a&&"vertical"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({height:i+"%"},r.animate),"max"===a&&"vertical"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({height:100-i+"%"},r.animate))},_handleEvents:{keydown:function(e){var i,n,o,s=t(e.target).data("ui-slider-handle-index")
switch(e.keyCode){case t.ui.keyCode.HOME:case t.ui.keyCode.END:case t.ui.keyCode.PAGE_UP:case t.ui.keyCode.PAGE_DOWN:case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(e.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(t(e.target),null,"ui-state-active"),!1===this._start(e,s)))return}switch(o=this.options.step,i=n=this._hasMultipleValues()?this.values(s):this.value(),e.keyCode){case t.ui.keyCode.HOME:n=this._valueMin()
break
case t.ui.keyCode.END:n=this._valueMax()
break
case t.ui.keyCode.PAGE_UP:n=this._trimAlignValue(i+(this._valueMax()-this._valueMin())/this.numPages)
break
case t.ui.keyCode.PAGE_DOWN:n=this._trimAlignValue(i-(this._valueMax()-this._valueMin())/this.numPages)
break
case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:if(i===this._valueMax())return
n=this._trimAlignValue(i+o)
break
case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(i===this._valueMin())return
n=this._trimAlignValue(i-o)}this._slide(e,s,n)},keyup:function(e){var i=t(e.target).data("ui-slider-handle-index")
this._keySliding&&(this._keySliding=!1,this._stop(e,i),this._change(e,i),this._removeClass(t(e.target),null,"ui-state-active"))}}})}),function(t){function e(t,e){if(!(t.originalEvent.touches.length>1)){t.preventDefault()
var i=t.originalEvent.changedTouches[0],n=document.createEvent("MouseEvents")
n.initMouseEvent(e,!0,!0,window,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(n)}}if(t.support.touch="ontouchend"in document,t.support.touch){var i,n=t.ui.mouse.prototype,o=n._mouseInit,s=n._mouseDestroy
n._touchStart=function(t){var n=this
!i&&n._mouseCapture(t.originalEvent.changedTouches[0])&&(i=!0,n._touchMoved=!1,e(t,"mouseover"),e(t,"mousemove"),e(t,"mousedown"))},n._touchMove=function(t){i&&(this._touchMoved=!0,e(t,"mousemove"))},n._touchEnd=function(t){i&&(e(t,"mouseup"),e(t,"mouseout"),this._touchMoved||e(t,"click"),i=!1)},n._mouseInit=function(){var e=this
e.element.bind({touchstart:t.proxy(e,"_touchStart"),touchmove:t.proxy(e,"_touchMove"),touchend:t.proxy(e,"_touchEnd")}),o.call(e)},n._mouseDestroy=function(){var e=this
e.element.unbind({touchstart:t.proxy(e,"_touchStart"),touchmove:t.proxy(e,"_touchMove"),touchend:t.proxy(e,"_touchEnd")}),s.call(e)}}}(jQuery),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(t){function e(t){return r.raw?t:encodeURIComponent(t)}function i(t){return r.raw?t:decodeURIComponent(t)}function n(t){return e(r.json?JSON.stringify(t):String(t))}function o(t){0===t.indexOf('"')&&(t=t.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"))
try{t=decodeURIComponent(t.replace(a," "))}catch(t){return}try{return r.json?JSON.parse(t):t}catch(t){}}function s(e,i){var n=r.raw?e:o(e)
return t.isFunction(i)?i(n):n}var a=/\+/g,r=t.cookie=function(o,a,l){if(void 0!==a&&!t.isFunction(a)){if(l=t.extend({},r.defaults,l),"number"==typeof l.expires){var c=l.expires,u=l.expires=new Date
u.setDate(u.getDate()+c)}return document.cookie=[e(o),"=",n(a),l.expires?"; expires="+l.expires.toUTCString():"",l.path?"; path="+l.path:"",l.domain?"; domain="+l.domain:"",l.secure?"; secure":""].join("")}for(var d=o?void 0:{},h=document.cookie?document.cookie.split("; "):[],p=0,f=h.length;p<f;p++){var m=h[p].split("="),g=i(m.shift()),v=m.join("=")
if(o&&o===g){d=s(v,a)
break}o||void 0===(v=s(v))||(d[g]=v)}return d}
r.defaults={},t.removeCookie=function(e,i){return void 0!==t.cookie(e)&&(t.cookie(e,"",t.extend({},i,{expires:-1})),!0)}}),function(t,e,i){function n(t){var e={},n=/^jQuery\d+$/
return i.each(t.attributes,function(t,i){i.specified&&!n.test(i.name)&&(e[i.name]=i.value)}),e}function o(t,n){var o=this,s=i(o)
if(o.value==s.attr("placeholder")&&s.hasClass("placeholder"))if(s.data("placeholder-password")){if(s=s.hide().next().show().attr("id",s.removeAttr("id").data("placeholder-id")),!0===t)return s[0].value=n
s.focus()}else o.value="",s.removeClass("placeholder"),o==e.activeElement&&o.select()}function s(){var t,e=this,s=i(e),a=this.id
if(""==e.value){if("password"==e.type){if(!s.data("placeholder-textinput")){try{t=s.clone().attr({type:"text"})}catch(e){t=i("<input>").attr(i.extend(n(this),{type:"text"}))}t.removeAttr("name").data({"placeholder-password":!0,"placeholder-id":a}).bind("focus.placeholder",o),s.data({"placeholder-textinput":t,"placeholder-id":a}).before(t)}s=s.removeAttr("id").hide().prev().attr("id",a).show()}s.addClass("placeholder"),s[0].value=s.attr("placeholder")}else s.removeClass("placeholder")}var a,r,l="placeholder"in e.createElement("input"),c="placeholder"in e.createElement("textarea"),u=i.fn,d=i.valHooks
l&&c?(r=u.placeholder=function(){return this},r.input=r.textarea=!0):(r=u.placeholder=function(){var t=this
return t.filter((l?"textarea":":input")+"[placeholder]").not(".placeholder").bind({"focus.placeholder":o,"blur.placeholder":s}).data("placeholder-enabled",!0).trigger("blur.placeholder"),t},r.input=l,r.textarea=c,a={get:function(t){var e=i(t)
return e.data("placeholder-enabled")&&e.hasClass("placeholder")?"":t.value},set:function(t,n){var a=i(t)
return a.data("placeholder-enabled")?(""==n?(t.value=n,t!=e.activeElement&&s.call(t)):a.hasClass("placeholder")?o.call(t,!0,n)||(t.value=n):t.value=n,a):t.value=n}},l||(d.input=a),c||(d.textarea=a),i(function(){i(e).delegate("form","submit.placeholder",function(){var t=i(".placeholder",this).each(o)
setTimeout(function(){t.each(s)},10)})}),i(t).bind("beforeunload.placeholder",function(){i(".placeholder").each(function(){this.value=""})}))}(this,document,jQuery),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=global.window&&global.window.$?t(global.window.$):function(e){if(!e.$&&!e.fn)throw new Error("Tokenfield requires a window object with jQuery or a jQuery instance")
return t(e.$||e)}:t(jQuery,window)}(function(t,e){"use strict"
var i=function(i,n){var o=this
this.$element=t(i),this.textDirection=this.$element.css("direction"),this.options=t.extend(!0,{},t.fn.tokenfield.defaults,{tokens:this.$element.val()},this.$element.data(),n),this._delimiters="string"==typeof this.options.delimiter?[this.options.delimiter]:this.options.delimiter,this._triggerKeys=t.map(this._delimiters,function(t){return t.charCodeAt(0)}),this._firstDelimiter=this._delimiters[0]
var s=t.inArray(" ",this._delimiters),a=t.inArray("-",this._delimiters)
s>=0&&(this._delimiters[s]="\\s"),a>=0&&(delete this._delimiters[a],this._delimiters.unshift("-"))
var r=["\\","$","[","{","^",".","|","?","*","+","(",")"]
t.each(this._delimiters,function(e,i){t.inArray(i,r)>=0&&(o._delimiters[e]="\\"+i)})
var l,c=e&&"function"==typeof e.getMatchedCSSRules?e.getMatchedCSSRules(i):null,u=i.style.width,d=this.$element.width()
c&&t.each(c,function(t,e){e.style.width&&(l=e.style.width)})
var h="rtl"===t("body").css("direction")?"right":"left",p={position:this.$element.css("position")}
p[h]=this.$element.css(h),this.$element.data("original-styles",p).data("original-tabindex",this.$element.prop("tabindex")).css("position","absolute").css(h,"-10000px").prop("tabindex",-1),this.$wrapper=t('<div class="tokenfield form-control" />'),this.$element.hasClass("input-lg")&&this.$wrapper.addClass("input-lg"),this.$element.hasClass("input-sm")&&this.$wrapper.addClass("input-sm"),"rtl"===this.textDirection&&this.$wrapper.addClass("rtl")
var f=this.$element.prop("id")||(new Date).getTime()+""+Math.floor(100*(1+Math.random()))
this.$input=t('<input type="'+this.options.inputType+'" class="token-input" autocomplete="off" />').appendTo(this.$wrapper).prop("placeholder",this.$element.prop("placeholder")).prop("id",f+"-tokenfield").prop("tabindex",this.$element.data("original-tabindex"))
var m=t('label[for="'+this.$element.prop("id")+'"]')
if(m.length&&m.prop("for",this.$input.prop("id")),this.$copyHelper=t('<input type="text" />').css("position","absolute").css(h,"-10000px").prop("tabindex",-1).prependTo(this.$wrapper),u?this.$wrapper.css("width",u):l?this.$wrapper.css("width",l):this.$element.parents(".form-inline").length&&this.$wrapper.width(d),(this.$element.prop("disabled")||this.$element.parents("fieldset[disabled]").length)&&this.disable(),this.$element.prop("readonly")&&this.readonly(),this.$mirror=t('<span style="position:absolute; top:-999px; left:0; white-space:pre;"/>'),this.$input.css("min-width",this.options.minWidth),t.each(["fontFamily","fontSize","fontWeight","fontStyle","letterSpacing","textTransform","wordSpacing","textIndent"],function(t,e){o.$mirror[0].style[e]=o.$input.css(e)}),this.$mirror.appendTo("body"),this.$wrapper.insertBefore(this.$element),this.$element.prependTo(this.$wrapper),this.update(),this.setTokens(this.options.tokens,!1,!this.$element.val()&&this.options.tokens),this.listen(),!t.isEmptyObject(this.options.autocomplete)){var g="rtl"===this.textDirection?"right":"left",v=t.extend({minLength:this.options.showAutocompleteOnFocus?0:null,position:{my:g+" top",at:g+" bottom",of:this.$wrapper}},this.options.autocomplete)
this.$input.autocomplete(v)}if(!t.isEmptyObject(this.options.typeahead)){var y=this.options.typeahead,b={minLength:this.options.showAutocompleteOnFocus?0:null},w=t.isArray(y)?y:[y,y]
w[0]=t.extend({},b,w[0]),this.$input.typeahead.apply(this.$input,w),this.typeahead=!0}}
i.prototype={constructor:i,createToken:function(e,i){var n=this
if(e="string"==typeof e?{value:e,label:e}:t.extend({},e),void 0===i&&(i=!0),e.value=t.trim(e.value.toString()),e.label=e.label&&e.label.length?t.trim(e.label):e.value,!(!e.value.length||!e.label.length||e.label.length<=this.options.minLength||this.options.limit&&this.getTokens().length>=this.options.limit)){var o=t.Event("tokenfield:createtoken",{attrs:e})
if(this.$element.trigger(o),o.attrs&&!o.isDefaultPrevented()){var s=t('<div class="token" />').append('<span class="token-label" />').append('<a href="#" class="close" tabindex="-1">&times;</a>').data("attrs",e)
this.$input.hasClass("tt-input")?this.$input.parent().before(s):this.$input.before(s),this.$input.css("width",this.options.minWidth)
var a=s.find(".token-label"),r=s.find(".close")
return this.maxTokenWidth||(this.maxTokenWidth=this.$wrapper.width()-r.outerWidth()-parseInt(r.css("margin-left"),10)-parseInt(r.css("margin-right"),10)-parseInt(s.css("border-left-width"),10)-parseInt(s.css("border-right-width"),10)-parseInt(s.css("padding-left"),10)-parseInt(s.css("padding-right"),10),parseInt(a.css("border-left-width"),10),parseInt(a.css("border-right-width"),10),parseInt(a.css("padding-left"),10),parseInt(a.css("padding-right"),10),parseInt(a.css("margin-left"),10),parseInt(a.css("margin-right"),10)),a.text(e.label).css("max-width",this.maxTokenWidth),s.on("mousedown",function(){return!n._disabled&&!n._readonly&&void(n.preventDeactivation=!0)}).on("click",function(t){return!n._disabled&&!n._readonly&&(n.preventDeactivation=!1,t.ctrlKey||t.metaKey?(t.preventDefault(),n.toggle(s)):void n.activate(s,t.shiftKey,t.shiftKey))}).on("dblclick",function(){return!(n._disabled||n._readonly||!n.options.allowEditing)&&void n.edit(s)}),r.on("click",t.proxy(this.remove,this)),this.$element.trigger(t.Event("tokenfield:createdtoken",{attrs:e,relatedTarget:s.get(0)})),i&&this.$element.val(this.getTokensList()).trigger(t.Event("change",{initiator:"tokenfield"})),this.update(),this.$element.get(0)}}},setTokens:function(e,i,n){if(e){i||this.$wrapper.find(".token").remove(),void 0===n&&(n=!0),"string"==typeof e&&(e=this._delimiters.length?e.split(new RegExp("["+this._delimiters.join("")+"]")):[e])
var o=this
return t.each(e,function(t,e){o.createToken(e,n)}),this.$element.get(0)}},getTokenData:function(e){var i=e.map(function(){return t(this).data("attrs")}).get()
return 1==i.length&&(i=i[0]),i},getTokens:function(e){var i=this,n=[],o=e?".active":""
return this.$wrapper.find(".token"+o).each(function(){n.push(i.getTokenData(t(this)))}),n},getTokensList:function(e,i,n){e=e||this._firstDelimiter,i=void 0!==i&&null!==i?i:this.options.beautify
var o=e+(i&&" "!==e?" ":"")
return t.map(this.getTokens(n),function(t){return t.value}).join(o)},getInput:function(){return this.$input.val()},listen:function(){var i=this
this.$element.on("change",t.proxy(this.change,this)),this.$wrapper.on("mousedown",t.proxy(this.focusInput,this)),this.$input.on("focus",t.proxy(this.focus,this)).on("blur",t.proxy(this.blur,this)).on("paste",t.proxy(this.paste,this)).on("keydown",t.proxy(this.keydown,this)).on("keypress",t.proxy(this.keypress,this)).on("keyup",t.proxy(this.keyup,this)),this.$copyHelper.on("focus",t.proxy(this.focus,this)).on("blur",t.proxy(this.blur,this)).on("keydown",t.proxy(this.keydown,this)).on("keyup",t.proxy(this.keyup,this)),this.$input.on("keypress",t.proxy(this.update,this)).on("keyup",t.proxy(this.update,this)),this.$input.on("autocompletecreate",function(){var e=t(this).data("ui-autocomplete").menu.element,n=i.$wrapper.outerWidth()-parseInt(e.css("border-left-width"),10)-parseInt(e.css("border-right-width"),10)
e.css("min-width",n+"px")}).on("autocompleteselect",function(t,e){return i.createToken(e.item)&&(i.$input.val(""),i.$input.data("edit")&&i.unedit(!0)),!1}).on("typeahead:selected typeahead:autocompleted",function(t,e){i.createToken(e)&&(i.$input.typeahead("val",""),i.$input.data("edit")&&i.unedit(!0))}),t(e).on("resize",t.proxy(this.update,this))},keydown:function(e){function i(t){if(o.$input.is(document.activeElement)){if(o.$input.val().length>0)return
t+="All"
var i=o.$input.hasClass("tt-input")?o.$input.parent()[t](".token:first"):o.$input[t](".token:first")
if(!i.length)return
o.preventInputFocus=!0,o.preventDeactivation=!0,o.activate(i),e.preventDefault()}else o[t](e.shiftKey),e.preventDefault()}function n(i){if(e.shiftKey){if(o.$input.is(document.activeElement)){if(o.$input.val().length>0)return
var n=o.$input.hasClass("tt-input")?o.$input.parent()[i+"All"](".token:first"):o.$input[i+"All"](".token:first")
if(!n.length)return
o.activate(n)}var s="prev"===i?"next":"prev",a="prev"===i?"first":"last"
o.$firstActiveToken[s+"All"](".token").each(function(){o.deactivate(t(this))}),o.activate(o.$wrapper.find(".token:"+a),!0,!0),e.preventDefault()}}if(this.focused){var o=this
switch(e.keyCode){case 8:if(!this.$input.is(document.activeElement))break
this.lastInputValue=this.$input.val()
break
case 37:i("rtl"===this.textDirection?"next":"prev")
break
case 38:n("prev")
break
case 39:i("rtl"===this.textDirection?"prev":"next")
break
case 40:n("next")
break
case 65:if(this.$input.val().length>0||!e.ctrlKey&&!e.metaKey)break
this.activateAll(),e.preventDefault()
break
case 9:case 13:if(this.$input.data("ui-autocomplete")&&this.$input.data("ui-autocomplete").menu.element.find("li:has(a.ui-state-focus), li.ui-state-focus").length)break
if(this.$input.hasClass("tt-input")&&this.$wrapper.find(".tt-cursor").length)break
if(this.$input.hasClass("tt-input")&&this.$wrapper.find(".tt-hint").val()&&this.$wrapper.find(".tt-hint").val().length)break
if(this.$input.is(document.activeElement)&&this.$input.val().length||this.$input.data("edit"))return this.createTokensFromInput(e,this.$input.data("edit"))
if(13===e.keyCode){if(!this.$copyHelper.is(document.activeElement)||1!==this.$wrapper.find(".token.active").length)break
if(!o.options.allowEditing)break
this.edit(this.$wrapper.find(".token.active"))}}this.lastKeyDown=e.keyCode}},keypress:function(e){return-1!==t.inArray(e.which,this._triggerKeys)&&this.$input.is(document.activeElement)?(this.$input.val()&&this.createTokensFromInput(e),!1):void 0},keyup:function(t){if(this.preventInputFocus=!1,this.focused){switch(t.keyCode){case 8:if(this.$input.is(document.activeElement)){if(this.$input.val()&&this.$input.val().length||this.lastInputValue&&this.lastInputValue.length&&8===this.lastKeyDown)break
this.preventDeactivation=!0
var e=this.$input.hasClass("tt-input")?this.$input.parent().prevAll(".token:first"):this.$input.prevAll(".token:first")
if(!e.length)break
this.activate(e)}else this.remove(t)
break
case 46:this.remove(t,"next")}this.lastKeyUp=t.keyCode}},focus:function(){this.focused=!0,this.$wrapper.addClass("focus"),this.$input.is(document.activeElement)&&(this.$wrapper.find(".active").removeClass("active"),this.$firstActiveToken=null,this.options.showAutocompleteOnFocus&&this.search())},blur:function(t){this.focused=!1,this.$wrapper.removeClass("focus"),this.preventDeactivation||this.$element.is(document.activeElement)||(this.$wrapper.find(".active").removeClass("active"),this.$firstActiveToken=null),!this.preventCreateTokens&&(this.$input.data("edit")&&!this.$input.is(document.activeElement)||this.options.createTokensOnBlur)&&this.createTokensFromInput(t),this.preventDeactivation=!1,this.preventCreateTokens=!1},paste:function(t){var e=this
e.options.allowPasting&&setTimeout(function(){e.createTokensFromInput(t)},1)},change:function(t){"tokenfield"!==t.initiator&&this.setTokens(this.$element.val())},createTokensFromInput:function(t,e){if(!(this.$input.val().length<this.options.minLength)){var i=this.getTokensList()
return this.setTokens(this.$input.val(),!0),(i!=this.getTokensList()||!this.$input.val().length)&&(this.$input.hasClass("tt-input")?this.$input.typeahead("val",""):this.$input.val(""),this.$input.data("edit")&&this.unedit(e),!1)}},next:function(t){if(t){var e=this.$wrapper.find(".active:first")
if(!(!e||!this.$firstActiveToken)&&e.index()<this.$firstActiveToken.index())return this.deactivate(e)}var i=this.$wrapper.find(".active:last"),n=i.nextAll(".token:first")
return n.length?void this.activate(n,t):void this.$input.focus()},prev:function(t){if(t){var e=this.$wrapper.find(".active:last")
if(!(!e||!this.$firstActiveToken)&&e.index()>this.$firstActiveToken.index())return this.deactivate(e)}var i=this.$wrapper.find(".active:first"),n=i.prevAll(".token:first")
return n.length||(n=this.$wrapper.find(".token:first")),n.length||t?void this.activate(n,t):void this.$input.focus()},activate:function(e,i,n,o){if(e){if(void 0===o)var o=!0
if(n)var i=!0
if(this.$copyHelper.focus(),i||(this.$wrapper.find(".active").removeClass("active"),o?this.$firstActiveToken=e:delete this.$firstActiveToken),n&&this.$firstActiveToken){var s=this.$firstActiveToken.index()-2,a=e.index()-2,r=this
this.$wrapper.find(".token").slice(Math.min(s,a)+1,Math.max(s,a)).each(function(){r.activate(t(this),!0)})}e.addClass("active"),this.$copyHelper.val(this.getTokensList(null,null,!0)).select()}},activateAll:function(){var e=this
this.$wrapper.find(".token").each(function(i){e.activate(t(this),0!==i,!1,!1)})},deactivate:function(t){t&&(t.removeClass("active"),this.$copyHelper.val(this.getTokensList(null,null,!0)).select())},toggle:function(t){t&&(t.toggleClass("active"),this.$copyHelper.val(this.getTokensList(null,null,!0)).select())},edit:function(e){if(e){var i=e.data("attrs"),n={attrs:i,relatedTarget:e.get(0)},o=t.Event("tokenfield:edittoken",n)
if(this.$element.trigger(o),!o.isDefaultPrevented()){e.find(".token-label").text(i.value)
var s=e.outerWidth(),a=this.$input.hasClass("tt-input")?this.$input.parent():this.$input
e.replaceWith(a),this.preventCreateTokens=!0,this.$input.val(i.value).select().data("edit",!0).width(s),this.update(),this.$element.trigger(t.Event("tokenfield:editedtoken",n))}}},unedit:function(t){if((this.$input.hasClass("tt-input")?this.$input.parent():this.$input).appendTo(this.$wrapper),this.$input.data("edit",!1),this.$mirror.text(""),this.update(),t){var e=this
setTimeout(function(){e.$input.focus()},1)}},remove:function(e,i){if(!(this.$input.is(document.activeElement)||this._disabled||this._readonly)){var n="click"===e.type?t(e.target).closest(".token"):this.$wrapper.find(".token.active")
if("click"!==e.type){if(!i)var i="prev"
if(this[i](),"prev"===i)var o=0===n.first().prevAll(".token:first").length}var s={attrs:this.getTokenData(n),relatedTarget:n.get(0)},a=t.Event("tokenfield:removetoken",s)
if(this.$element.trigger(a),!a.isDefaultPrevented()){var r=t.Event("tokenfield:removedtoken",s),l=t.Event("change",{initiator:"tokenfield"})
n.remove(),this.$element.val(this.getTokensList()).trigger(r).trigger(l),(!this.$wrapper.find(".token").length||"click"===e.type||o)&&this.$input.focus(),this.$input.css("width",this.options.minWidth),this.update(),e.preventDefault(),e.stopPropagation()}}},update:function(){var t=this.$input.val(),e=parseInt(this.$input.css("padding-left"),10),i=parseInt(this.$input.css("padding-right"),10),n=e+i
if(this.$input.data("edit")){if(t||(t=this.$input.prop("placeholder")),t===this.$mirror.text())return
this.$mirror.text(t)
var o=this.$mirror.width()+10
if(o>this.$wrapper.width())return this.$input.width(this.$wrapper.width())
this.$input.width(o)}else{var s="rtl"===this.textDirection?this.$input.offset().left+this.$input.outerWidth()-this.$wrapper.offset().left-parseInt(this.$wrapper.css("padding-left"),10)-n-1:this.$wrapper.offset().left+this.$wrapper.width()+parseInt(this.$wrapper.css("padding-left"),10)-this.$input.offset().left-n
isNaN(s)||"100%"==this.options.minWidth?this.$input.width("100%"):this.$input.width(s)}},focusInput:function(e){if(!(t(e.target).closest(".token").length||t(e.target).closest(".token-input").length||t(e.target).closest(".tt-dropdown-menu").length)){var i=this
setTimeout(function(){i.$input.focus()},0)}},search:function(){this.$input.data("ui-autocomplete")&&this.$input.autocomplete("search")},disable:function(){this.setProperty("disabled",!0)},enable:function(){this.setProperty("disabled",!1)},readonly:function(){this.setProperty("readonly",!0)},writeable:function(){this.setProperty("readonly",!1)},setProperty:function(t,e){this["_"+t]=e,this.$input.prop(t,e),this.$element.prop(t,e),this.$wrapper[e?"addClass":"removeClass"](t)},destroy:function(){this.$element.val(this.getTokensList()),this.$element.css(this.$element.data("original-styles")),this.$element.prop("tabindex",this.$element.data("original-tabindex"))
var e=t('label[for="'+this.$input.prop("id")+'"]')
return e.length&&e.prop("for",this.$element.prop("id")),this.$element.insertBefore(this.$wrapper),this.$element.removeData("original-styles").removeData("original-tabindex").removeData("bs.tokenfield"),this.$wrapper.remove(),this.$mirror.remove(),this.$element}}
var n=t.fn.tokenfield
return t.fn.tokenfield=function(e,n){var o,s=[]
Array.prototype.push.apply(s,arguments)
var a=this.each(function(){var a=t(this),r=a.data("bs.tokenfield"),l="object"==typeof e&&e
"string"==typeof e&&r&&r[e]?(s.shift(),o=r[e].apply(r,s)):r||"string"==typeof e||n||(a.data("bs.tokenfield",r=new i(this,l)),a.trigger("tokenfield:initialize"))})
return void 0!==o?o:a},t.fn.tokenfield.defaults={minWidth:"60px",minLength:0,allowEditing:!0,allowPasting:!0,limit:0,autocomplete:{},typeahead:{},showAutocompleteOnFocus:!1,createTokensOnBlur:!1,delimiter:",",beautify:!0,inputType:"text"},t.fn.tokenfield.Constructor=i,t.fn.tokenfield.noConflict=function(){return t.fn.tokenfield=n,this},i}),function(t,e){"function"==typeof define&&define.amd?define(["jquery"],function(i){e(i,t)}):e(jQuery,t)}(this,function(t,e){"use strict"
var i,n
if(t.uaMatch=function(t){t=t.toLowerCase()
var e=/(edge)\/([\w.]+)/.exec(t)||/(opr)[\/]([\w.]+)/.exec(t)||/(chrome)[ \/]([\w.]+)/.exec(t)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(t)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(t)||/(webkit)[ \/]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||t.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(t)||t.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t)||[],i=/(ipad)/.exec(t)||/(ipod)/.exec(t)||/(iphone)/.exec(t)||/(kindle)/.exec(t)||/(silk)/.exec(t)||/(android)/.exec(t)||/(windows phone)/.exec(t)||/(win)/.exec(t)||/(mac)/.exec(t)||/(linux)/.exec(t)||/(cros)/.exec(t)||/(playbook)/.exec(t)||/(bb)/.exec(t)||/(blackberry)/.exec(t)||[]
return{browser:e[5]||e[3]||e[1]||"",version:e[2]||e[4]||"0",versionNumber:e[4]||e[2]||"0",platform:i[0]||""}},i=t.uaMatch(e.navigator.userAgent),n={},i.browser&&(n[i.browser]=!0,n.version=i.version,n.versionNumber=parseInt(i.versionNumber,10)),i.platform&&(n[i.platform]=!0),(n.android||n.bb||n.blackberry||n.ipad||n.iphone||n.ipod||n.kindle||n.playbook||n.silk||n["windows phone"])&&(n.mobile=!0),(n.cros||n.mac||n.linux||n.win)&&(n.desktop=!0),(n.chrome||n.opr||n.safari)&&(n.webkit=!0),n.rv||n.edge){var o="msie"
i.browser=o,n[o]=!0}if(n.safari&&n.blackberry){var s="blackberry"
i.browser=s,n[s]=!0}if(n.safari&&n.playbook){var a="playbook"
i.browser=a,n[a]=!0}if(n.bb){var r="blackberry"
i.browser=r,n[r]=!0}if(n.opr){var l="opera"
i.browser=l,n[l]=!0}if(n.safari&&n.android){var c="android"
i.browser=c,n[c]=!0}if(n.safari&&n.kindle){var u="kindle"
i.browser=u,n[u]=!0}if(n.safari&&n.silk){var d="silk"
i.browser=d,n[d]=!0}return n.name=i.browser,n.platform=i.platform,t.browser=n,n}),function(){"use strict"
function t(t,e){var i
for(i in e)e.hasOwnProperty(i)&&(t[i]=e[i])
return t}function e(t){if(!this||this.find!==e.prototype.find)return new e(t)
if(this.length=0,t)if("string"==typeof t&&(t=this.find(t)),t.nodeType||t===t.window)this.length=1,this[0]=t
else{var i=t.length
for(this.length=i;i;)i-=1,this[i]=t[i]}}e.extend=t,e.contains=function(t,e){do{if((e=e.parentNode)===t)return!0}while(e)
return!1},e.parseJSON=function(t){return window.JSON&&JSON.parse(t)},t(e.prototype,{find:function(t){var i=this[0]||document
return"string"==typeof t&&(t=i.querySelectorAll?i.querySelectorAll(t):"#"===t.charAt(0)?i.getElementById(t.slice(1)):i.getElementsByTagName(t)),new e(t)},hasClass:function(t){return!!this[0]&&new RegExp("(^|\\s+)"+t+"(\\s+|$)").test(this[0].className)},addClass:function(t){for(var e,i=this.length;i;){if(i-=1,e=this[i],!e.className)return e.className=t,this
if(this.hasClass(t))return this
e.className+=" "+t}return this},removeClass:function(t){for(var e,i=new RegExp("(^|\\s+)"+t+"(\\s+|$)"),n=this.length;n;)n-=1,e=this[n],e.className=e.className.replace(i," ")
return this},on:function(t,e){for(var i,n,o=t.split(/\s+/);o.length;)for(t=o.shift(),i=this.length;i;)i-=1,n=this[i],n.addEventListener?n.addEventListener(t,e,!1):n.attachEvent&&n.attachEvent("on"+t,e)
return this},off:function(t,e){for(var i,n,o=t.split(/\s+/);o.length;)for(t=o.shift(),i=this.length;i;)i-=1,n=this[i],n.removeEventListener?n.removeEventListener(t,e,!1):n.detachEvent&&n.detachEvent("on"+t,e)
return this},empty:function(){for(var t,e=this.length;e;)for(e-=1,t=this[e];t.hasChildNodes();)t.removeChild(t.lastChild)
return this},first:function(){return new e(this[0])}}),"function"==typeof define&&define.amd?define(function(){return e}):(window.blueimp=window.blueimp||{},window.blueimp.helper=e)}(),function(t){"use strict"
"function"==typeof define&&define.amd?define(["./blueimp-helper"],t):(window.blueimp=window.blueimp||{},window.blueimp.Gallery=t(window.blueimp.helper||window.jQuery))}(function(t){"use strict"
function e(t,i){return void 0===document.body.style.maxHeight?null:this&&this.options===e.prototype.options?t&&t.length?(this.list=t,this.num=t.length,this.initOptions(i),void this.initialize()):void this.console.log("blueimp Gallery: No or empty list provided as first argument.",t):new e(t,i)}return t.extend(e.prototype,{options:{container:"#blueimp-gallery",slidesContainer:"div",titleElement:"h3",displayClass:"blueimp-gallery-display",controlsClass:"blueimp-gallery-controls",singleClass:"blueimp-gallery-single",leftEdgeClass:"blueimp-gallery-left",rightEdgeClass:"blueimp-gallery-right",playingClass:"blueimp-gallery-playing",slideClass:"slide",slideLoadingClass:"slide-loading",slideErrorClass:"slide-error",slideContentClass:"slide-content",toggleClass:"toggle",prevClass:"prev",nextClass:"next",closeClass:"close",playPauseClass:"play-pause",typeProperty:"type",titleProperty:"title",urlProperty:"href",displayTransition:!0,clearSlides:!0,stretchImages:!1,toggleControlsOnReturn:!0,toggleSlideshowOnSpace:!0,enableKeyboardNavigation:!0,closeOnEscape:!0,closeOnSlideClick:!0,closeOnSwipeUpOrDown:!0,emulateTouchEvents:!0,stopTouchEventsPropagation:!1,hidePageScrollbars:!0,disableScroll:!0,carousel:!1,continuous:!0,unloadElements:!0,startSlideshow:!1,slideshowInterval:5e3,index:0,preloadRange:2,transitionSpeed:400,slideshowTransitionSpeed:void 0,event:void 0,onopen:void 0,onopened:void 0,onslide:void 0,onslideend:void 0,onslidecomplete:void 0,onclose:void 0,onclosed:void 0},carouselOptions:{hidePageScrollbars:!1,toggleControlsOnReturn:!1,toggleSlideshowOnSpace:!1,enableKeyboardNavigation:!1,closeOnEscape:!1,closeOnSlideClick:!1,closeOnSwipeUpOrDown:!1,disableScroll:!1,startSlideshow:!0},console:window.console&&"function"==typeof window.console.log?window.console:{log:function(){}},support:function(e){var i={touch:void 0!==window.ontouchstart||window.DocumentTouch&&document instanceof DocumentTouch},n={webkitTransition:{end:"webkitTransitionEnd",prefix:"-webkit-"},MozTransition:{end:"transitionend",prefix:"-moz-"},OTransition:{end:"otransitionend",prefix:"-o-"},transition:{end:"transitionend",prefix:""}},o=function(){var t,n,o=i.transition
document.body.appendChild(e),o&&(t=o.name.slice(0,-9)+"ransform",void 0!==e.style[t]&&(e.style[t]="translateZ(0)",n=window.getComputedStyle(e).getPropertyValue(o.prefix+"transform"),i.transform={prefix:o.prefix,name:t,translate:!0,translateZ:!!n&&"none"!==n})),void 0!==e.style.backgroundSize&&(i.backgroundSize={},e.style.backgroundSize="contain",i.backgroundSize.contain="contain"===window.getComputedStyle(e).getPropertyValue("background-size"),e.style.backgroundSize="cover",i.backgroundSize.cover="cover"===window.getComputedStyle(e).getPropertyValue("background-size")),document.body.removeChild(e)}
return function(t,i){var n
for(n in i)if(i.hasOwnProperty(n)&&void 0!==e.style[n]){t.transition=i[n],t.transition.name=n
break}}(i,n),document.body?o():t(document).on("DOMContentLoaded",o),i}(document.createElement("div")),requestAnimationFrame:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame,initialize:function(){return this.initStartIndex(),!1!==this.initWidget()&&(this.initEventListeners(),this.onslide(this.index),this.ontransitionend(),void(this.options.startSlideshow&&this.play()))},slide:function(t,e){window.clearTimeout(this.timeout)
var i,n,o,s=this.index
if(s!==t&&1!==this.num){if(e||(e=this.options.transitionSpeed),this.support.transform){for(this.options.continuous||(t=this.circle(t)),i=Math.abs(s-t)/(s-t),this.options.continuous&&(n=i,(i=-this.positions[this.circle(t)]/this.slideWidth)!==n&&(t=-i*this.num+t)),o=Math.abs(s-t)-1;o;)o-=1,this.move(this.circle((t>s?t:s)-o-1),this.slideWidth*i,0)
t=this.circle(t),this.move(s,this.slideWidth*i,e),this.move(t,0,e),this.options.continuous&&this.move(this.circle(t-i),-this.slideWidth*i,0)}else t=this.circle(t),this.animate(s*-this.slideWidth,t*-this.slideWidth,e)
this.onslide(t)}},getIndex:function(){return this.index},getNumber:function(){return this.num},prev:function(){(this.options.continuous||this.index)&&this.slide(this.index-1)},next:function(){(this.options.continuous||this.index<this.num-1)&&this.slide(this.index+1)},play:function(t){var e=this
window.clearTimeout(this.timeout),this.interval=t||this.options.slideshowInterval,this.elements[this.index]>1&&(this.timeout=this.setTimeout(!this.requestAnimationFrame&&this.slide||function(t,i){e.animationFrameId=e.requestAnimationFrame.call(window,function(){e.slide(t,i)})},[this.index+1,this.options.slideshowTransitionSpeed],this.interval)),this.container.addClass(this.options.playingClass)},pause:function(){window.clearTimeout(this.timeout),this.interval=null,this.container.removeClass(this.options.playingClass)},add:function(t){var e
for(t.concat||(t=Array.prototype.slice.call(t)),this.list.concat||(this.list=Array.prototype.slice.call(this.list)),this.list=this.list.concat(t),this.num=this.list.length,this.num>2&&null===this.options.continuous&&(this.options.continuous=!0,this.container.removeClass(this.options.leftEdgeClass)),this.container.removeClass(this.options.rightEdgeClass).removeClass(this.options.singleClass),e=this.num-t.length;e<this.num;e+=1)this.addSlide(e),this.positionSlide(e)
this.positions.length=this.num,this.initSlides(!0)},resetSlides:function(){this.slidesContainer.empty(),this.slides=[]},handleClose:function(){var t=this.options
this.destroyEventListeners(),this.pause(),this.container[0].style.display="none",this.container.removeClass(t.displayClass).removeClass(t.singleClass).removeClass(t.leftEdgeClass).removeClass(t.rightEdgeClass),t.hidePageScrollbars&&(document.body.style.overflow=this.bodyOverflowStyle),this.options.clearSlides&&this.resetSlides(),this.options.onclosed&&this.options.onclosed.call(this)},close:function(){var t=this,e=function(i){i.target===t.container[0]&&(t.container.off(t.support.transition.end,e),t.handleClose())}
this.options.onclose&&this.options.onclose.call(this),this.support.transition&&this.options.displayTransition?(this.container.on(this.support.transition.end,e),this.container.removeClass(this.options.displayClass)):this.handleClose()},circle:function(t){return(this.num+t%this.num)%this.num},move:function(t,e,i){this.translateX(t,e,i),this.positions[t]=e},translate:function(t,e,i,n){var o=this.slides[t].style,s=this.support.transition,a=this.support.transform
o[s.name+"Duration"]=n+"ms",o[a.name]="translate("+e+"px, "+i+"px)"+(a.translateZ?" translateZ(0)":"")},translateX:function(t,e,i){this.translate(t,e,0,i)},translateY:function(t,e,i){this.translate(t,0,e,i)},animate:function(t,e,i){if(!i)return void(this.slidesContainer[0].style.left=e+"px")
var n=this,o=(new Date).getTime(),s=window.setInterval(function(){var a=(new Date).getTime()-o
return a>i?(n.slidesContainer[0].style.left=e+"px",n.ontransitionend(),void window.clearInterval(s)):void(n.slidesContainer[0].style.left=(e-t)*(Math.floor(a/i*100)/100)+t+"px")},4)},preventDefault:function(t){t.preventDefault?t.preventDefault():t.returnValue=!1},stopPropagation:function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},onresize:function(){this.initSlides(!0)},onmousedown:function(t){t.which&&1===t.which&&"VIDEO"!==t.target.nodeName&&(t.preventDefault(),(t.originalEvent||t).touches=[{pageX:t.pageX,pageY:t.pageY}],this.ontouchstart(t))},onmousemove:function(t){this.touchStart&&((t.originalEvent||t).touches=[{pageX:t.pageX,pageY:t.pageY}],this.ontouchmove(t))},onmouseup:function(t){this.touchStart&&(this.ontouchend(t),delete this.touchStart)},onmouseout:function(e){if(this.touchStart){var i=e.target,n=e.relatedTarget;(!n||n!==i&&!t.contains(i,n))&&this.onmouseup(e)}},ontouchstart:function(t){this.options.stopTouchEventsPropagation&&this.stopPropagation(t)
var e=(t.originalEvent||t).touches[0]
this.touchStart={x:e.pageX,y:e.pageY,time:Date.now()},this.isScrolling=void 0,this.touchDelta={}},ontouchmove:function(t){this.options.stopTouchEventsPropagation&&this.stopPropagation(t)
var e,i,n=(t.originalEvent||t).touches[0],o=(t.originalEvent||t).scale,s=this.index
if(!(n.length>1||o&&1!==o))if(this.options.disableScroll&&t.preventDefault(),this.touchDelta={x:n.pageX-this.touchStart.x,y:n.pageY-this.touchStart.y},e=this.touchDelta.x,void 0===this.isScrolling&&(this.isScrolling=this.isScrolling||Math.abs(e)<Math.abs(this.touchDelta.y)),this.isScrolling)this.options.closeOnSwipeUpOrDown&&this.translateY(s,this.touchDelta.y+this.positions[s],0)
else for(t.preventDefault(),window.clearTimeout(this.timeout),this.options.continuous?i=[this.circle(s+1),s,this.circle(s-1)]:(this.touchDelta.x=e/=!s&&e>0||s===this.num-1&&0>e?Math.abs(e)/this.slideWidth+1:1,i=[s],s&&i.push(s-1),s<this.num-1&&i.unshift(s+1));i.length;)s=i.pop(),this.translateX(s,e+this.positions[s],0)},ontouchend:function(t){this.options.stopTouchEventsPropagation&&this.stopPropagation(t)
var e,i,n,o,s,a=this.index,r=this.options.transitionSpeed,l=this.slideWidth,c=Number(Date.now()-this.touchStart.time)<250,u=c&&this.touchDelta&&Math.abs(this.touchDelta.x)>20||this.touchDelta&&Math.abs(this.touchDelta.x)>l/2,d=!a&&this.touchDelta&&this.touchDelta.x>0||a===this.num-1&&this.touchDelta&&this.touchDelta.x<0,h=!u&&this.options.closeOnSwipeUpOrDown&&this.touchDelta&&(c&&Math.abs(this.touchDelta.y)>20||Math.abs(this.touchDelta.y)>this.slideHeight/2)
this.options.continuous&&(d=!1),e=this.touchDelta&&this.touchDelta.x<0?-1:1,this.isScrolling?h?this.close():this.translateY(a,0,r):u&&!d?(i=a+e,n=a-e,o=l*e,s=-l*e,this.options.continuous?(this.move(this.circle(i),o,0),this.move(this.circle(a-2*e),s,0)):i>=0&&i<this.num&&this.move(i,o,0),this.move(a,this.positions[a]+o,r),this.move(this.circle(n),this.positions[this.circle(n)]+o,r),a=this.circle(n),this.onslide(a)):this.options.continuous?(this.move(this.circle(a-1),-l,r),this.move(a,0,r),this.move(this.circle(a+1),l,r)):(a&&this.move(a-1,-l,r),this.move(a,0,r),a<this.num-1&&this.move(a+1,l,r))},ontouchcancel:function(t){this.touchStart&&(this.ontouchend(t),delete this.touchStart)},ontransitionend:function(t){var e=this.slides[this.index]
t&&e!==t.target||(this.interval&&this.play(),this.setTimeout(this.options.onslideend,[this.index,e]))},oncomplete:function(e){var i,n=e.target||e.srcElement,o=n&&n.parentNode
n&&o&&(i=this.getNodeIndex(o),t(o).removeClass(this.options.slideLoadingClass),"error"===e.type?(t(o).addClass(this.options.slideErrorClass),this.elements[i]=3):this.elements[i]=2,n.clientHeight>this.container[0].clientHeight&&(n.style.maxHeight=this.container[0].clientHeight),this.interval&&this.slides[this.index]===o&&this.play(),this.setTimeout(this.options.onslidecomplete,[i,o]))},onload:function(t){this.oncomplete(t)},onerror:function(t){this.oncomplete(t)},onkeydown:function(t){switch(t.which||t.keyCode){case 13:this.options.toggleControlsOnReturn&&(this.preventDefault(t),this.toggleControls())
break
case 27:this.options.closeOnEscape&&this.close()
break
case 32:this.options.toggleSlideshowOnSpace&&(this.preventDefault(t),this.toggleSlideshow())
break
case 37:this.options.enableKeyboardNavigation&&(this.preventDefault(t),this.prev())
break
case 39:this.options.enableKeyboardNavigation&&(this.preventDefault(t),this.next())}},handleClick:function(e){var i=this.options,n=e.target||e.srcElement,o=n.parentNode,s=function(e){return t(n).hasClass(e)||t(o).hasClass(e)}
s(i.toggleClass)?(this.preventDefault(e),this.toggleControls()):s(i.prevClass)?(this.preventDefault(e),this.prev()):s(i.nextClass)?(this.preventDefault(e),this.next()):s(i.closeClass)?(this.preventDefault(e),this.close()):s(i.playPauseClass)?(this.preventDefault(e),this.toggleSlideshow()):o===this.slidesContainer[0]?(this.preventDefault(e),i.closeOnSlideClick?this.close():this.toggleControls()):o.parentNode&&o.parentNode===this.slidesContainer[0]&&(this.preventDefault(e),this.toggleControls())},onclick:function(t){return this.options.emulateTouchEvents&&this.touchDelta&&this.touchDelta.x&&(Math.abs(this.touchDelta.x)>20||Math.abs(this.touchDelta.y)>20)?void delete this.touchDelta:this.handleClick(t)},updateEdgeClasses:function(t){t?this.container.removeClass(this.options.leftEdgeClass):this.container.addClass(this.options.leftEdgeClass),t===this.num-1?this.container.addClass(this.options.rightEdgeClass):this.container.removeClass(this.options.rightEdgeClass)},handleSlide:function(t){this.options.continuous||this.updateEdgeClasses(t),this.loadElements(t),this.options.unloadElements&&this.unloadElements(t),this.setTitle(t)},onslide:function(t){this.index=t,this.handleSlide(t),this.setTimeout(this.options.onslide,[t,this.slides[t]])},setTitle:function(t){var e=this.slides[t].firstChild.title,i=this.titleElement
i.length&&(this.titleElement.empty(),e&&i[0].appendChild(document.createTextNode(e)))},setTimeout:function(t,e,i){var n=this
return t&&window.setTimeout(function(){t.apply(n,e||[])},i||0)},imageFactory:function(e,i){var n,o,s,a=this,r=this.imagePrototype.cloneNode(!1),l=e,c=this.options.stretchImages,u=function(e){if(!n){if(e={type:e.type,target:o},!o.parentNode)return a.setTimeout(u,[e])
n=!0,t(r).off("load error",u),c&&"load"===e.type&&(o.style.background='url("'+l+'") center no-repeat',o.style.backgroundSize=c),i(e)}}
return"string"!=typeof l&&(l=this.getItemProperty(e,this.options.urlProperty),s=this.getItemProperty(e,this.options.titleProperty)),!0===c&&(c="contain"),c=this.support.backgroundSize&&this.support.backgroundSize[c]&&c,c?o=this.elementPrototype.cloneNode(!1):(o=r,r.draggable=!1),s&&(o.title=s),t(r).on("load error",u),r.src=l,o},createElement:function(e,i){var n=e&&this.getItemProperty(e,this.options.typeProperty),o=n&&this[n.split("/")[0]+"Factory"]||this.imageFactory,s=e&&o.call(this,e,i)
return s||(s=this.elementPrototype.cloneNode(!1),this.setTimeout(i,[{type:"error",target:s}])),t(s).addClass(this.options.slideContentClass),s},loadElement:function(e){this.elements[e]||(this.slides[e].firstChild?this.elements[e]=t(this.slides[e]).hasClass(this.options.slideErrorClass)?3:2:(this.elements[e]=1,t(this.slides[e]).addClass(this.options.slideLoadingClass),this.slides[e].appendChild(this.createElement(this.list[e],this.proxyListener))))},loadElements:function(t){var e,i=Math.min(this.num,2*this.options.preloadRange+1),n=t
for(e=0;i>e;e+=1)n+=e*(e%2==0?-1:1),n=this.circle(n),this.loadElement(n)},unloadElements:function(t){var e,i,n
for(e in this.elements)this.elements.hasOwnProperty(e)&&(n=Math.abs(t-e))>this.options.preloadRange&&n+this.options.preloadRange<this.num&&(i=this.slides[e],i.removeChild(i.firstChild),delete this.elements[e])},addSlide:function(t){var e=this.slidePrototype.cloneNode(!1)
e.setAttribute("data-index",t),this.slidesContainer[0].appendChild(e),this.slides.push(e)},positionSlide:function(t){var e=this.slides[t]
e.style.width=this.slideWidth+"px",this.support.transform&&(e.style.left=t*-this.slideWidth+"px",this.move(t,this.index>t?-this.slideWidth:this.index<t?this.slideWidth:0,0))},initSlides:function(e){var i,n
for(e||(this.positions=[],this.positions.length=this.num,this.elements={},this.imagePrototype=document.createElement("img"),this.elementPrototype=document.createElement("div"),this.slidePrototype=document.createElement("div"),t(this.slidePrototype).addClass(this.options.slideClass),this.slides=this.slidesContainer[0].children,i=this.options.clearSlides||this.slides.length!==this.num),this.slideWidth=this.container[0].offsetWidth,this.slideHeight=this.container[0].offsetHeight,this.slidesContainer[0].style.width=this.num*this.slideWidth+"px",i&&this.resetSlides(),n=0;n<this.num;n+=1)i&&this.addSlide(n),this.positionSlide(n)
this.options.continuous&&this.support.transform&&(this.move(this.circle(this.index-1),-this.slideWidth,0),this.move(this.circle(this.index+1),this.slideWidth,0)),this.support.transform||(this.slidesContainer[0].style.left=this.index*-this.slideWidth+"px")},toggleControls:function(){var t=this.options.controlsClass
this.container.hasClass(t)?this.container.removeClass(t):this.container.addClass(t)},toggleSlideshow:function(){this.interval?this.pause():this.play()},getNodeIndex:function(t){return parseInt(t.getAttribute("data-index"),10)},getNestedProperty:function(t,e){return e.replace(/\[(?:'([^']+)'|"([^"]+)"|(\d+))\]|(?:(?:^|\.)([^\.\[]+))/g,function(e,i,n,o,s){var a=s||i||n||o&&parseInt(o,10)
e&&t&&(t=t[a])}),t},getDataProperty:function(e,i){if(e.getAttribute){var n=e.getAttribute("data-"+i.replace(/([A-Z])/g,"-$1").toLowerCase())
if("string"==typeof n){if(/^(true|false|null|-?\d+(\.\d+)?|\{[\s\S]*\}|\[[\s\S]*\])$/.test(n))try{return t.parseJSON(n)}catch(t){}return n}}},getItemProperty:function(t,e){var i=t[e]
return void 0===i&&void 0===(i=this.getDataProperty(t,e))&&(i=this.getNestedProperty(t,e)),i},initStartIndex:function(){var t,e=this.options.index,i=this.options.urlProperty
if(e&&"number"!=typeof e)for(t=0;t<this.num;t+=1)if(this.list[t]===e||this.getItemProperty(this.list[t],i)===this.getItemProperty(e,i)){e=t
break}this.index=this.circle(parseInt(e,10)||0)},initEventListeners:function(){var e=this,i=this.slidesContainer,n=function(t){var i=e.support.transition&&e.support.transition.end===t.type?"transitionend":t.type
e["on"+i]&&e["on"+i](t)}
t(window).on("resize",n),t(document.body).on("keydown",n),this.container.on("click",n),this.support.touch?i.on("touchstart touchmove touchend touchcancel",n):this.options.emulateTouchEvents&&this.support.transition&&i.on("mousedown mousemove mouseup mouseout",n),this.support.transition&&i.on(this.support.transition.end,n),this.proxyListener=n},destroyEventListeners:function(){var e=this.slidesContainer,i=this.proxyListener
t(window).off("resize",i),t(document.body).off("keydown",i),this.container.off("click",i),this.support.touch?e.off("touchstart touchmove touchend touchcancel",i):this.options.emulateTouchEvents&&this.support.transition&&e.off("mousedown mousemove mouseup mouseout",i),this.support.transition&&e.off(this.support.transition.end,i)},handleOpen:function(){this.options.onopened&&this.options.onopened.call(this)},initWidget:function(){var e=this,i=function(t){t.target===e.container[0]&&(e.container.off(e.support.transition.end,i),e.handleOpen())}
return this.container=t(this.options.container),this.container.length?(this.slidesContainer=this.container.find(this.options.slidesContainer).first(),this.slidesContainer.length?(this.titleElement=this.container.find(this.options.titleElement).first(),1===this.num&&this.container.addClass(this.options.singleClass),this.options.onopen&&this.options.onopen.call(this),this.support.transition&&this.options.displayTransition?this.container.on(this.support.transition.end,i):this.handleOpen(),this.options.hidePageScrollbars&&(this.bodyOverflowStyle=document.body.style.overflow,document.body.style.overflow="hidden"),this.container[0].style.display="block",this.initSlides(),void this.container.addClass(this.options.displayClass)):(this.console.log("blueimp Gallery: Slides container not found.",this.options.slidesContainer),!1)):(this.console.log("blueimp Gallery: Widget container not found.",this.options.container),!1)},initOptions:function(e){this.options=t.extend({},this.options),(e&&e.carousel||this.options.carousel&&(!e||!1!==e.carousel))&&t.extend(this.options,this.carouselOptions),t.extend(this.options,e),this.num<3&&(this.options.continuous=!!this.options.continuous&&null),this.support.transition||(this.options.emulateTouchEvents=!1),this.options.event&&this.preventDefault(this.options.event)}}),e}),function(t){"use strict"
"function"==typeof define&&define.amd?define(["./blueimp-helper","./blueimp-gallery"],t):t(window.blueimp.helper||window.jQuery,window.blueimp.Gallery)}(function(t,e){"use strict"
t.extend(e.prototype.options,{fullScreen:!1})
var i=e.prototype.initialize,n=e.prototype.close
return t.extend(e.prototype,{getFullScreenElement:function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement},requestFullScreen:function(t){t.requestFullscreen?t.requestFullscreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.msRequestFullscreen&&t.msRequestFullscreen()},exitFullScreen:function(){document.exitFullscreen?document.exitFullscreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen()},initialize:function(){i.call(this),this.options.fullScreen&&!this.getFullScreenElement()&&this.requestFullScreen(this.container[0])},close:function(){this.getFullScreenElement()===this.container[0]&&this.exitFullScreen(),n.call(this)}}),e}),function(t){"use strict"
"function"==typeof define&&define.amd?define(["./blueimp-helper","./blueimp-gallery"],t):t(window.blueimp.helper||window.jQuery,window.blueimp.Gallery)}(function(t,e){"use strict"
t.extend(e.prototype.options,{indicatorContainer:"ol",activeIndicatorClass:"active",thumbnailProperty:"thumbnail",thumbnailIndicators:!0})
var i=e.prototype.initSlides,n=e.prototype.addSlide,o=e.prototype.resetSlides,s=e.prototype.handleClick,a=e.prototype.handleSlide,r=e.prototype.handleClose
return t.extend(e.prototype,{createIndicator:function(e){var i,n,o=this.indicatorPrototype.cloneNode(!1),s=this.getItemProperty(e,this.options.titleProperty),a=this.options.thumbnailProperty
return this.options.thumbnailIndicators&&(n=e.getElementsByTagName&&t(e).find("img")[0],n?i=n.src:a&&(i=this.getItemProperty(e,a)),i&&(o.style.backgroundImage='url("'+i+'")')),s&&(o.title=s),o},addIndicator:function(t){if(this.indicatorContainer.length){var e=this.createIndicator(this.list[t])
e.setAttribute("data-index",t),this.indicatorContainer[0].appendChild(e),this.indicators.push(e)}},setActiveIndicator:function(e){this.indicators&&(this.activeIndicator&&this.activeIndicator.removeClass(this.options.activeIndicatorClass),this.activeIndicator=t(this.indicators[e]),this.activeIndicator.addClass(this.options.activeIndicatorClass))},initSlides:function(t){t||(this.indicatorContainer=this.container.find(this.options.indicatorContainer),this.indicatorContainer.length&&(this.indicatorPrototype=document.createElement("li"),this.indicators=this.indicatorContainer[0].children)),i.call(this,t)},addSlide:function(t){n.call(this,t),this.addIndicator(t)},resetSlides:function(){o.call(this),this.indicatorContainer.empty(),this.indicators=[]},handleClick:function(t){var e=t.target||t.srcElement,i=e.parentNode
if(i===this.indicatorContainer[0])this.preventDefault(t),this.slide(this.getNodeIndex(e))
else{if(i.parentNode!==this.indicatorContainer[0])return s.call(this,t)
this.preventDefault(t),this.slide(this.getNodeIndex(i))}},handleSlide:function(t){a.call(this,t),this.setActiveIndicator(t)},handleClose:function(){this.activeIndicator&&this.activeIndicator.removeClass(this.options.activeIndicatorClass),r.call(this)}}),e}),function(t){"use strict"
"function"==typeof define&&define.amd?define(["./blueimp-helper","./blueimp-gallery"],t):t(window.blueimp.helper||window.jQuery,window.blueimp.Gallery)}(function(t,e){"use strict"
t.extend(e.prototype.options,{videoContentClass:"video-content",videoLoadingClass:"video-loading",videoPlayingClass:"video-playing",videoPosterProperty:"poster",videoSourcesProperty:"sources"})
var i=e.prototype.handleSlide
return t.extend(e.prototype,{handleSlide:function(t){i.call(this,t),this.playingVideo&&this.playingVideo.pause()},videoFactory:function(e,i,n){var o,s,a,r,l,c=this,u=this.options,d=this.elementPrototype.cloneNode(!1),h=t(d),p=[{type:"error",target:d}],f=n||document.createElement("video"),m=this.getItemProperty(e,u.urlProperty),g=this.getItemProperty(e,u.typeProperty),v=this.getItemProperty(e,u.titleProperty),y=this.getItemProperty(e,u.videoPosterProperty),b=this.getItemProperty(e,u.videoSourcesProperty)
if(f.preload="metadata",h.addClass(u.videoContentClass),v&&(d.title=v),f.canPlayType)if(m&&g&&f.canPlayType(g))f.src=m
else for(;b&&b.length;)if(s=b.shift(),m=this.getItemProperty(s,u.urlProperty),g=this.getItemProperty(s,u.typeProperty),m&&g&&f.canPlayType(g)){f.src=m
break}return y&&(f.poster=y,o=this.imagePrototype.cloneNode(!1),t(o).addClass(u.toggleClass),o.src=y,o.draggable=!1,d.appendChild(o)),a=document.createElement("a"),a.setAttribute("target","_blank"),n||a.setAttribute("download",v),a.href=m,f.src&&(f.controls=!0,(n||t(f)).on("error",function(){c.setTimeout(i,p)}).on("pause",function(){r=!1,h.removeClass(c.options.videoLoadingClass).removeClass(c.options.videoPlayingClass),l&&c.container.addClass(c.options.controlsClass),delete c.playingVideo,c.interval&&c.play()}).on("playing",function(){r=!1,h.removeClass(c.options.videoLoadingClass).addClass(c.options.videoPlayingClass),c.container.hasClass(c.options.controlsClass)?(l=!0,c.container.removeClass(c.options.controlsClass)):l=!1}).on("play",function(){window.clearTimeout(c.timeout),r=!0,h.addClass(c.options.videoLoadingClass),c.playingVideo=f}),t(a).on("click",function(t){c.preventDefault(t),r?f.pause():f.play()}),d.appendChild(n&&n.element||f)),d.appendChild(a),this.setTimeout(i,[{type:"load",target:d}]),d}}),e}),function(t){"use strict"
"function"==typeof define&&define.amd?define(["./blueimp-helper","./blueimp-gallery-video"],t):t(window.blueimp.helper||window.jQuery,window.blueimp.Gallery)}(function(t,e){"use strict"
if(!window.postMessage)return e
t.extend(e.prototype.options,{vimeoVideoIdProperty:"vimeo",vimeoPlayerUrl:"//player.vimeo.com/video/VIDEO_ID?api=1&player_id=PLAYER_ID",vimeoPlayerIdPrefix:"vimeo-player-",vimeoClickToPlay:!0})
var i=e.prototype.textFactory||e.prototype.imageFactory,n=function(t,e,i,n){this.url=t,this.videoId=e,this.playerId=i,this.clickToPlay=n,this.element=document.createElement("div"),this.listeners={}},o=0
return t.extend(n.prototype,{canPlayType:function(){return!0},on:function(t,e){return this.listeners[t]=e,this},loadAPI:function(){for(var e,i,n=this,o="//"+("https"===location.protocol?"secure-":"")+"a.vimeocdn.com/js/froogaloop2.min.js",s=document.getElementsByTagName("script"),a=s.length,r=function(){!i&&n.playOnReady&&n.play(),i=!0};a;)if(a-=1,s[a].src===o){e=s[a]
break}e||(e=document.createElement("script"),e.src=o),t(e).on("load",r),s[0].parentNode.insertBefore(e,s[0]),/loaded|complete/.test(e.readyState)&&r()},onReady:function(){var t=this
this.ready=!0,this.player.addEvent("play",function(){t.hasPlayed=!0,t.onPlaying()}),this.player.addEvent("pause",function(){t.onPause()}),this.player.addEvent("finish",function(){t.onPause()}),this.playOnReady&&this.play()},onPlaying:function(){this.playStatus<2&&(this.listeners.playing(),this.playStatus=2)},onPause:function(){this.listeners.pause(),delete this.playStatus},insertIframe:function(){var t=document.createElement("iframe")
t.src=this.url.replace("VIDEO_ID",this.videoId).replace("PLAYER_ID",this.playerId),t.id=this.playerId,this.element.parentNode.replaceChild(t,this.element),this.element=t},play:function(){var t=this
this.playStatus||(this.listeners.play(),this.playStatus=1),this.ready?!this.hasPlayed&&(this.clickToPlay||window.navigator&&/iP(hone|od|ad)/.test(window.navigator.platform))?this.onPlaying():this.player.api("play"):(this.playOnReady=!0,window.$f?this.player||(this.insertIframe(),this.player=$f(this.element),this.player.addEvent("ready",function(){t.onReady()})):this.loadAPI())},pause:function(){this.ready?this.player.api("pause"):this.playStatus&&(delete this.playOnReady,this.listeners.pause(),delete this.playStatus)}}),t.extend(e.prototype,{VimeoPlayer:n,textFactory:function(t,e){var s=this.options,a=this.getItemProperty(t,s.vimeoVideoIdProperty)
return a?(void 0===this.getItemProperty(t,s.urlProperty)&&(t[s.urlProperty]="//vimeo.com/"+a),o+=1,this.videoFactory(t,e,new n(s.vimeoPlayerUrl,a,s.vimeoPlayerIdPrefix+o,s.vimeoClickToPlay))):i.call(this,t,e)}}),e}),function(t){"use strict"
"function"==typeof define&&define.amd?define(["./blueimp-helper","./blueimp-gallery-video"],t):t(window.blueimp.helper||window.jQuery,window.blueimp.Gallery)}(function(t,e){"use strict"
if(!window.postMessage)return e
t.extend(e.prototype.options,{youTubeVideoIdProperty:"youtube",youTubePlayerVars:{wmode:"transparent"},youTubeClickToPlay:!0})
var i=e.prototype.textFactory||e.prototype.imageFactory,n=function(t,e,i){this.videoId=t,this.playerVars=e,this.clickToPlay=i,this.element=document.createElement("div"),this.listeners={}}
return t.extend(n.prototype,{canPlayType:function(){return!0},on:function(t,e){return this.listeners[t]=e,this},loadAPI:function(){var t,e=this,i=window.onYouTubeIframeAPIReady,n="//www.youtube.com/iframe_api",o=document.getElementsByTagName("script"),s=o.length
for(window.onYouTubeIframeAPIReady=function(){i&&i.apply(this),e.playOnReady&&e.play()};s;)if(s-=1,o[s].src===n)return
t=document.createElement("script"),t.src=n,o[0].parentNode.insertBefore(t,o[0])},onReady:function(){this.ready=!0,this.playOnReady&&this.play()},onPlaying:function(){this.playStatus<2&&(this.listeners.playing(),this.playStatus=2)},onPause:function(){e.prototype.setTimeout.call(this,this.checkSeek,null,2e3)},checkSeek:function(){(this.stateChange===YT.PlayerState.PAUSED||this.stateChange===YT.PlayerState.ENDED)&&(this.listeners.pause(),delete this.playStatus)},onStateChange:function(t){switch(t.data){case YT.PlayerState.PLAYING:this.hasPlayed=!0,this.onPlaying()
break
case YT.PlayerState.PAUSED:case YT.PlayerState.ENDED:this.onPause()}this.stateChange=t.data},onError:function(t){this.listeners.error(t)},play:function(){var t=this
this.playStatus||(this.listeners.play(),this.playStatus=1),this.ready?!this.hasPlayed&&(this.clickToPlay||window.navigator&&/iP(hone|od|ad)/.test(window.navigator.platform))?this.onPlaying():this.player.playVideo():(this.playOnReady=!0,window.YT&&YT.Player?this.player||(this.player=new YT.Player(this.element,{videoId:this.videoId,playerVars:this.playerVars,events:{onReady:function(){t.onReady()},onStateChange:function(e){t.onStateChange(e)},onError:function(e){t.onError(e)}}})):this.loadAPI())},pause:function(){this.ready?this.player.pauseVideo():this.playStatus&&(delete this.playOnReady,this.listeners.pause(),delete this.playStatus)}}),t.extend(e.prototype,{YouTubePlayer:n,textFactory:function(t,e){var o=this.options,s=this.getItemProperty(t,o.youTubeVideoIdProperty)
return s?(void 0===this.getItemProperty(t,o.urlProperty)&&(t[o.urlProperty]="//www.youtube.com/watch?v="+s),void 0===this.getItemProperty(t,o.videoPosterProperty)&&(t[o.videoPosterProperty]="//img.youtube.com/vi/"+s+"/maxresdefault.jpg"),this.videoFactory(t,e,new n(s,o.youTubePlayerVars,o.youTubeClickToPlay))):i.call(this,t,e)}}),e}),function(t,e,i){"function"==typeof define&&define.amd?define(["jquery"],function(n){return i(n,t,e),n.mobile}):i(t.jQuery,t,e)}(this,document,function(t,e,i,n){(function(t,e,i,n){function o(t){for(;t&&void 0!==t.originalEvent;)t=t.originalEvent
return t}function s(e,i){var s,a,r,l,c,u,d,h,p,f=e.type
if(e=t.Event(e),e.type=i,s=e.originalEvent,a=t.event.props,f.search(/^(mouse|click)/)>-1&&(a=D),s)for(d=a.length,l;d;)l=a[--d],e[l]=s[l]
if(f.search(/mouse(down|up)|click/)>-1&&!e.which&&(e.which=1),-1!==f.search(/^touch/)&&(r=o(s),f=r.touches,c=r.changedTouches,u=f&&f.length?f[0]:c&&c.length?c[0]:n,u))for(h=0,p=E.length;h<p;h++)l=E[h],e[l]=u[l]
return e}function a(e){for(var i,n,o={};e;){i=t.data(e,_)
for(n in i)i[n]&&(o[n]=o.hasVirtualBinding=!0)
e=e.parentNode}return o}function r(e,i){for(var n;e;){if((n=t.data(e,_))&&(!i||n[i]))return e
e=e.parentNode}return null}function l(){O=!1}function c(){O=!0}function u(){H=0,M.length=0,L=!1,c()}function d(){l()}function h(){p(),P=setTimeout(function(){P=0,u()},t.vmouse.resetTimerDuration)}function p(){P&&(clearTimeout(P),P=0)}function f(e,i,n){var o
return(n&&n[e]||!n&&r(i.target,e))&&(o=s(i,e),t(i.target).trigger(o)),o}function m(e){var i,n=t.data(e.target,$)
!L&&(!H||H!==n)&&(i=f("v"+e.type,e))&&(i.isDefaultPrevented()&&e.preventDefault(),i.isPropagationStopped()&&e.stopPropagation(),i.isImmediatePropagationStopped()&&e.stopImmediatePropagation())}function g(e){var i,n,s,r=o(e).touches
r&&1===r.length&&(i=e.target,n=a(i),n.hasVirtualBinding&&(H=W++,t.data(i,$,H),p(),d(),j=!1,s=o(e).touches[0],A=s.pageX,I=s.pageY,f("vmouseover",e,n),f("vmousedown",e,n)))}function v(t){O||(j||f("vmousecancel",t,a(t.target)),j=!0,h())}function y(e){if(!O){var i=o(e).touches[0],n=j,s=t.vmouse.moveDistanceThreshold,r=a(e.target)
j=j||Math.abs(i.pageX-A)>s||Math.abs(i.pageY-I)>s,j&&!n&&f("vmousecancel",e,r),f("vmousemove",e,r),h()}}function b(t){if(!O){c()
var e,i,n=a(t.target)
f("vmouseup",t,n),j||(e=f("vclick",t,n))&&e.isDefaultPrevented()&&(i=o(t).changedTouches[0],M.push({touchID:H,x:i.clientX,y:i.clientY}),L=!0),f("vmouseout",t,n),j=!1,h()}}function w(e){var i,n=t.data(e,_)
if(n)for(i in n)if(n[i])return!0
return!1}function x(){}var C,k,_="virtualMouseBindings",$="virtualTouchID",T="vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "),E="clientX clientY pageX pageY screenX screenY".split(" "),S=t.event.mouseHooks?t.event.mouseHooks.props:[],D=t.event.props.concat(S),N={},P=0,A=0,I=0,j=!1,M=[],L=!1,O=!1,F="addEventListener"in i,R=t(i),W=1,H=0
for(t.vmouse={moveDistanceThreshold:10,clickDistanceThreshold:10,resetTimerDuration:1500},k=0;k<T.length;k++)t.event.special[T[k]]=function(e){var i=e.substr(1)
return{setup:function(){w(this)||t.data(this,_,{}),t.data(this,_)[e]=!0,N[e]=(N[e]||0)+1,1===N[e]&&R.bind(i,m),t(this).bind(i,x),F&&(N.touchstart=(N.touchstart||0)+1,1===N.touchstart&&R.bind("touchstart",g).bind("touchend",b).bind("touchmove",y).bind("scroll",v))},teardown:function(){--N[e],N[e]||R.unbind(i,m),F&&(--N.touchstart||R.unbind("touchstart",g).unbind("touchmove",y).unbind("touchend",b).unbind("scroll",v))
var n=t(this),o=t.data(this,_)
o&&(o[e]=!1),n.unbind(i,x),w(this)||n.removeData(_)}}}(T[k])
F&&i.addEventListener("click",function(e){var i,n,o,s,a,r=M.length,l=e.target
if(r)for(i=e.clientX,n=e.clientY,C=t.vmouse.clickDistanceThreshold,o=l;o;){for(s=0;s<r;s++)if(a=M[s],0,o===l&&Math.abs(a.x-i)<C&&Math.abs(a.y-n)<C||t.data(o,$)===a.touchID)return e.preventDefault(),void e.stopPropagation()
o=o.parentNode}},!0)})(t,0,i),function(t){t.mobile={}}(t),function(t,e){var n={touch:"ontouchend"in i}
t.mobile.support=t.mobile.support||{},t.extend(t.support,n),t.extend(t.mobile.support,n)}(t),function(t,e,n){function o(e,i,o,s){var a=o.type
o.type=i,s?t.event.trigger(o,n,e):t.event.dispatch.call(e,o),o.type=a}var s=t(i),a=t.mobile.support.touch,r="touchmove scroll",l=a?"touchstart":"mousedown",c=a?"touchend":"mouseup",u=a?"touchmove":"mousemove"
t.each("touchstart touchmove touchend tap taphold swipe swipeleft swiperight scrollstart scrollstop".split(" "),function(e,i){t.fn[i]=function(t){return t?this.bind(i,t):this.trigger(i)},t.attrFn&&(t.attrFn[i]=!0)}),t.event.special.scrollstart={enabled:!0,setup:function(){function e(t,e){i=e,o(s,i?"scrollstart":"scrollstop",t)}var i,n,s=this,a=t(s)
a.bind(r,function(o){t.event.special.scrollstart.enabled&&(i||e(o,!0),clearTimeout(n),n=setTimeout(function(){e(o,!1)},50))})},teardown:function(){t(this).unbind(r)}},t.event.special.tap={tapholdThreshold:750,emitTapOnTaphold:!0,setup:function(){var e=this,i=t(e),n=!1
i.bind("vmousedown",function(a){function r(){clearTimeout(u)}function l(){r(),i.unbind("vclick",c).unbind("vmouseup",r),s.unbind("vmousecancel",l)}function c(t){l(),n||d!==t.target?n&&t.preventDefault():o(e,"tap",t)}if(n=!1,a.which&&1!==a.which)return!1
var u,d=a.target
i.bind("vmouseup",r).bind("vclick",c),s.bind("vmousecancel",l),u=setTimeout(function(){t.event.special.tap.emitTapOnTaphold||(n=!0),o(e,"taphold",t.Event("taphold",{target:d}))},t.event.special.tap.tapholdThreshold)})},teardown:function(){t(this).unbind("vmousedown").unbind("vclick").unbind("vmouseup"),s.unbind("vmousecancel")}},t.event.special.swipe={scrollSupressionThreshold:30,durationThreshold:1e3,horizontalDistanceThreshold:30,verticalDistanceThreshold:30,getLocation:function(t){var i=e.pageXOffset,n=e.pageYOffset,o=t.clientX,s=t.clientY
return 0===t.pageY&&Math.floor(s)>Math.floor(t.pageY)||0===t.pageX&&Math.floor(o)>Math.floor(t.pageX)?(o-=i,s-=n):(s<t.pageY-n||o<t.pageX-i)&&(o=t.pageX-i,s=t.pageY-n),{x:o,y:s}},start:function(e){var i=e.originalEvent.touches?e.originalEvent.touches[0]:e,n=t.event.special.swipe.getLocation(i)
return{time:(new Date).getTime(),coords:[n.x,n.y],origin:t(e.target)}},stop:function(e){var i=e.originalEvent.touches?e.originalEvent.touches[0]:e,n=t.event.special.swipe.getLocation(i)
return{time:(new Date).getTime(),coords:[n.x,n.y]}},handleSwipe:function(e,i,n,s){if(i.time-e.time<t.event.special.swipe.durationThreshold&&Math.abs(e.coords[0]-i.coords[0])>t.event.special.swipe.horizontalDistanceThreshold&&Math.abs(e.coords[1]-i.coords[1])<t.event.special.swipe.verticalDistanceThreshold){var a=e.coords[0]>i.coords[0]?"swipeleft":"swiperight"
return o(n,"swipe",t.Event("swipe",{target:s,swipestart:e,swipestop:i}),!0),o(n,a,t.Event(a,{target:s,swipestart:e,swipestop:i}),!0),!0}return!1},eventInProgress:!1,setup:function(){var e,i=this,n=t(i),o={}
e=t.data(this,"mobile-events"),e||(e={length:0},t.data(this,"mobile-events",e)),e.length++,e.swipe=o,o.start=function(e){if(!t.event.special.swipe.eventInProgress){t.event.special.swipe.eventInProgress=!0
var n,a=t.event.special.swipe.start(e),r=e.target,l=!1
o.move=function(e){a&&!e.isDefaultPrevented()&&(n=t.event.special.swipe.stop(e),l||(l=t.event.special.swipe.handleSwipe(a,n,i,r))&&(t.event.special.swipe.eventInProgress=!1),Math.abs(a.coords[0]-n.coords[0])>t.event.special.swipe.scrollSupressionThreshold&&e.preventDefault())},o.stop=function(){l=!0,t.event.special.swipe.eventInProgress=!1,s.off(u,o.move),o.move=null},s.on(u,o.move).one(c,o.stop)}},n.on(l,o.start)},teardown:function(){var e,i
e=t.data(this,"mobile-events"),e&&(i=e.swipe,delete e.swipe,0===--e.length&&t.removeData(this,"mobile-events")),i&&(i.start&&t(this).off(l,i.start),i.move&&s.off(u,i.move),i.stop&&s.off(c,i.stop))}},t.each({scrollstop:"scrollstart",taphold:"tap",swipeleft:"swipe.left",swiperight:"swipe.right"},function(e,i){t.event.special[e]={setup:function(){t(this).bind(i,t.noop)},teardown:function(){t(this).unbind(i)}}})}(t,this)}),function(t,e){if("function"==typeof define&&define.amd)define(["module","exports"],e)
else if("undefined"!=typeof exports)e(module,exports)
else{var i={exports:{}}
e(i,i.exports),t.autosize=i.exports}}(this,function(t,e){"use strict"
function i(t){function e(e){var i=t.style.width
t.style.width="0px",t.offsetWidth,t.style.width=i,t.style.overflowY=e}function i(){if(0!==t.scrollHeight){var e=function(t){for(var e=[];t&&t.parentNode&&t.parentNode instanceof Element;)t.parentNode.scrollTop&&e.push({node:t.parentNode,scrollTop:t.parentNode.scrollTop}),t=t.parentNode
return e}(t),i=document.documentElement&&document.documentElement.scrollTop
t.style.height="",t.style.height=t.scrollHeight+s+"px",a=t.clientWidth,e.forEach(function(t){t.node.scrollTop=t.scrollTop}),i&&(document.documentElement.scrollTop=i)}}function n(){i()
var n=Math.round(parseFloat(t.style.height)),o=window.getComputedStyle(t,null),s="content-box"===o.boxSizing?Math.round(parseFloat(o.height)):t.offsetHeight
if(s<n?"hidden"===o.overflowY&&(e("scroll"),i(),s="content-box"===o.boxSizing?Math.round(parseFloat(window.getComputedStyle(t,null).height)):t.offsetHeight):"hidden"!==o.overflowY&&(e("hidden"),i(),s="content-box"===o.boxSizing?Math.round(parseFloat(window.getComputedStyle(t,null).height)):t.offsetHeight),c!==s){c=s
var a=l("autosize:resized")
try{t.dispatchEvent(a)}catch(n){}}}if(t&&t.nodeName&&"TEXTAREA"===t.nodeName&&!r.has(t)){var o,s=null,a=null,c=null,u=function(){t.clientWidth!==a&&n()},d=function(e){window.removeEventListener("resize",u,!1),t.removeEventListener("input",n,!1),t.removeEventListener("keyup",n,!1),t.removeEventListener("autosize:destroy",d,!1),t.removeEventListener("autosize:update",n,!1),Object.keys(e).forEach(function(i){t.style[i]=e[i]}),r.delete(t)}.bind(t,{height:t.style.height,resize:t.style.resize,overflowY:t.style.overflowY,overflowX:t.style.overflowX,wordWrap:t.style.wordWrap})
t.addEventListener("autosize:destroy",d,!1),"onpropertychange"in t&&"oninput"in t&&t.addEventListener("keyup",n,!1),window.addEventListener("resize",u,!1),t.addEventListener("input",n,!1),t.addEventListener("autosize:update",n,!1),t.style.overflowX="hidden",t.style.wordWrap="break-word",r.set(t,{destroy:d,update:n}),"vertical"===(o=window.getComputedStyle(t,null)).resize?t.style.resize="none":"both"===o.resize&&(t.style.resize="horizontal"),s="content-box"===o.boxSizing?-(parseFloat(o.paddingTop)+parseFloat(o.paddingBottom)):parseFloat(o.borderTopWidth)+parseFloat(o.borderBottomWidth),isNaN(s)&&(s=0),n()}}function n(t){var e=r.get(t)
e&&e.destroy()}function o(t){var e=r.get(t)
e&&e.update()}var s,a,r="function"==typeof Map?new Map:(s=[],a=[],{has:function(t){return-1<s.indexOf(t)},get:function(t){return a[s.indexOf(t)]},set:function(t,e){-1===s.indexOf(t)&&(s.push(t),a.push(e))},delete:function(t){var e=s.indexOf(t);-1<e&&(s.splice(e,1),a.splice(e,1))}}),l=function(t){return new Event(t,{bubbles:!0})}
try{new Event("test")}catch(t){l=function(t){var e=document.createEvent("Event")
return e.initEvent(t,!0,!1),e}}var c=null
"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((c=function(t){return t}).destroy=function(t){return t},c.update=function(t){return t}):((c=function(t,e){return t&&Array.prototype.forEach.call(t.length?t:[t],function(t){return i(t)}),t}).destroy=function(t){return t&&Array.prototype.forEach.call(t.length?t:[t],n),t},c.update=function(t){return t&&Array.prototype.forEach.call(t.length?t:[t],o),t}),e.default=c,t.exports=e.default}),jQuery.fn.bsmodal=jQuery.fn.modal.noConflict(),_gVar.isMobile=window.innerWidth<767,$.ajaxSetup({type:"POST",timeout:15e3}),jQuery._ajax=function(t){if(!loader())return t.error=function(){$.alrt(_gText.error,"error")},t.complete=killloader,$.ajax(t)}
var siteFilters={coreLocation:_gVar.coreLocation,init:function(t){var e=this,i={}
e.container=$(".selectT1 .filter-container"),e.container.length&&(e.container.find("select + :checkbox").each(function(){e.container.find('select[name="'+$(this).attr("name")+'"]').val($(this).val())}),e.container.find("select").change(function(){var t=$(this).val()
$(this).next(":checkbox").val(t).prop("checked",!!t).trigger("change")}),e.container.find(":checkbox,:radio").change(function(){_gVar.filter=_gVar.filter||{},i[$(this).attr("name")]=[],e.container.find(":checkbox:checked, :radio:checked").each(function(){var t=i[$(this).attr("name")]=i[$(this).attr("name")]||[],e=$(this).val()
e&&-1===t.indexOf(e)&&t.push($(this).val())})
for(var t in i){var n=i[t].length,o=e.container.find('input[name="'+t+'"]').length
n&&(1==o||o>n)?_gVar.filter[t]=i[t]:delete _gVar.filter[t]}e.createUrl()}),$("#addFilter").click(function(){var t=$(this).closest(".selectT1")
t.hasClass("one-row")&&t.find(".flex").remove(),$(this).css({height:0}).next("div").toggleClass("hidden")}))},cityFilter:function(t){var e=t.tokenfield("getTokens"),i=[],n=0
_gVar.filter&&delete _gVar.filter.city
for(var o=0;o<e.length;o++)e[o].value&&-1===i.indexOf(e[o].value)&&i.push(e[o].value)
n=i.length,1==n?this.coreLocation=this.coreLocation.replace(/setcity\=\d+/g,"setcity="+i[0]):n&&1!=i[n-1]?1==i[0]?this.coreLocation=this.coreLocation.replace(/setcity\=\d+/g,"setcity="+i[1]):_gVar.filter?_gVar.filter.city=i:_gVar.filter={city:i}:(this.coreLocation=this.coreLocation.replace(/setcity\=\d+/g,"setcity=1"),_gVar.filter&&_gVar.filter.radius&&delete _gVar.filter.radius),_gVar.filter&&_gVar.filter.city&&delete _gVar.filter.radius,this.createUrl()},createUrl:function(){this.container.find("input,select").attr("disabled","disabled"),jQuery.isEmptyObject(_gVar.filter)&&delete _gVar.filter
var t=this.coreLocation+(_gVar.filter?"&filter="+encodeURIComponent(JSON.stringify(_gVar.filter)):"")
_gVar.filter?pageAjax.load(t):window.location.href=t}},commentsObj={init:function(){var t=$(this),e=t.parents(".comment"),i={var1:$(this).data("var1"),descr:$(this).data("descr"),city:$(this).data("city"),category:$(this).data("cat"),edit_attr:$(this).data("edit")},n=$("#comment_form_"+i.var1+i.descr),o=$("#comment_"+i.var1+i.descr)
i.var1&&i.descr&&(1!=i.category&&t.removeAttr("data-comment"),$.when(function(){return!i.edit_attr||(i.get_edit=!0,$._ajax({url:"/addform/comment_ajax.php",data:i,dataType:"json"}))}()).then(function(s){var a=n.clone(),r=a.find("textarea")
a.attr("id","comment").removeAttr("data-comment").removeClass("hidden").addClass("init"),r.removeClass("comment-root"),i.edit_attr&&s?(delete i.get_edit,i.catyear=s.date,r.val(s.text),a.find('input[name="foto"]').data("files",s.foto),a.find('input[name="city"]').val(i.city),a.find('input[name="edit_attr"]').val(i.edit_attr),delete i.edit_attr,e.html(a)):(e.length?t.after(a):n.addClass("hidden").after(a),sstorage("commentRecapture")&&commentsObj.recapture.init(r)),r.focus(),lazyLoad(),a.addF({url:"/addform/comment.php",noTrackChanges:!0,nosendMessage:!0,storagePrefix:"_"+i.var1+i.descr+"_"+i.category,init:function(){commentsObj.textAreaInit(r)},callback:function(t){t.wasSave&&o.trigger("reloadContent"),commentsObj.emojiUse(r.val()),e.length||(n.removeClass("hidden"),a.remove())},errorCallback:function(t){t&&"recaptcha"==t.type&&"undefined"==typeof grecaptcha&&(sstorage("commentRecapture","1"),commentsObj.recapture.init(r))},afterAdd:function(t){if(o.length){var n=!1
if("1"==i.category)n="0"
else if(e.length&&e.index()===o.find(".comment").length-1){var s=o.find("ul.pagination")
if(s.length){var a=s.find("a.selected")
a.parents("li").index()!==s.find("li").length-1&&(n=a.text(),$(window).scrollTop(o.offset().top-50))}}if(n){var r=o.data("set")
r&&r.data&&(r.data[i.var1+i.descr+"edPG"]=n)}}},beforeSave:function(){return!!r.val()&&commentsObj.recapture.check(a)},send:i}),autosize.update(r),ga("send","event","Modal","comment","open")}))},textAreaInit:function(t){var e=["😀","😄","🤭","😁","😆","😅","😂","🤣","😊","😇","😉","😏","😍","🤩","😚","😘","🥰","😋","😝","😜","🤗","😎","😬","🙃","😒","😖","😤","😡","😞","😔","😩","😢","😭","🤔","🙄","😮","😲","😵","😱","😴","🤐","😷","🤒","🤑","😈","🙈","😻","💩","👋","👍","👎","👈","👉","👇","☝️","💪","👌","👏","🙏","☝️","✌️","🙌","✋","👊","👀","🤦","🤷","🙋","💃","🏃","💋","❤️","💘","💕","💔","🎉","🎁","🎂","💐","🌹","🌸","🌷","🌻","🍀","✨","🔥","⭐","💥","☀️","🌛","🌈","🏆","👑","🎯","⛔️","💯","✅","✔️","❓","❗️","🆘"],i=$('<div class="smile-mess"><div data-toggle="dropdown" data-positionminbottom="80" class="dropdown-toggle img-smile position-auto position-height bg-svg"></div><div class="dropdown-menu pull-right"><div><div class="used">'+commentsObj.emojiUseUpdate()+"</div>"+e.map(function(t){return"<span>"+t+"</span>"}).join("")+"</div></div></div>")
autosize(t),i.find(".img-smile").mouseup(function(){t.focus()}),i.on("click",".dropdown-menu > div span",function(e){if(e.stopPropagation(),t[0].setRangeText){var i=$(this).text()
t[0].setRangeText(i),t[0].selectionStart=t[0].selectionStart+i.length}else t.val(t.val()+$(this).text())
t.focus(),autosize.update(t)}),t.parents("form").find('button[type="submit"]').before(i)},emojiUse:function(t){if(t&&RegExp.prototype.hasOwnProperty("unicode")){var e
try{(e=t.match(new RegExp("\\p{RI}\\p{RI}|\\p{Emoji}(\\p{Emoji_Modifier}+|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?(\\u{200D}\\p{Emoji}(\\p{Emoji_Modifier}+|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?)+|\\p{Emoji_Presentation}(\\p{Emoji_Modifier}+|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?|\\p{Emoji}(\\p{Emoji_Modifier}+|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})","gu")))&&(lstorage("emoji",e.concat((lstorage("emoji")||"").split(",")).filter(function(t,e,i){return t&&i.indexOf(t)==e}).slice(0,13).join(",")),$(".smile-mess .used").html(commentsObj.emojiUseUpdate()))}catch(t){}}},emojiUseUpdate:function(){return lstorage("emoji")?lstorage("emoji").split(",").map(function(t){return"<span>"+t+"</span>"}).join(""):""},recapture:{init:function(t){$.when(function(){return"undefined"!=typeof grecaptcha||$.getScript("https://www.google.com/recaptcha/api.js?render=explicit&hl="+lng)}()).then(function(){var e=$('<div class="g-recaptcha" data-sitekey="6LevsBAUAAAAAE8z4aMKiMmFS_sgfLV1tDDZ1McC"></div>')
t.after(e),e.wrap('<div class="recaptcha-container"></div>'),grecaptcha.ready(function(){e.data("recaptureID",grecaptcha.render(e[0],{theme:"1"==$.cookie("themeColor")?"dark":"light"}))})})},check:function(t){var e=t.find(".g-recaptcha"),i=e.data("recaptureID")
if(e.length&&void 0!==i&&"undefined"!=typeof grecaptcha){if(!grecaptcha.getResponse(i))return $.alrt(_gText.recaptureFail,"warn"),e.addClass("error-not-checked"),!1
e.removeClass("error-not-checked")}return!0}},publickMess:function(t){var e=$(t).closest(".modal-content"),i=(e.length?e:$("article")).find(".comment-form:visible:first")
$(e.length?e:document).scrollTop(i.offset().top-150),i.addClass("highlight").click().find("textarea").focus()}},pageNum={init:function(){$("body").on("focus","form.gotopage input",function(t){$(this).val()||$(this).data("saveplaceholder",$(this).attr("placeholder")).attr("placeholder","")}).on("focusout","form.gotopage input",function(t){$(this).val()?!_gVar.isMobile&&$(this).inView()&&$(this).closest(".gotopage").submit():$(this).attr("placeholder",$(this).data("saveplaceholder"))}).on("submit","form.gotopage",function(t){var e=$(this).data("pagename"),i=$(this).data("iswwww"),n=$(this).find("input"),o=parseInt(n.val()),s=$(this).closest("li")
if(firstPage=!!s.length&&s.prev("li"),t.preventDefault(),!(!o||o<1||!firstPage||!firstPage.length||o>n.attr("max"))){o-=1
var a=e+"=\\d+"
if(i){o||(a+="&?")
var r=firstPage.find("a").attr("href").replace(new RegExp(a),o?e+"="+o:"")
firstPage.find("a").data("ajax")?pageAjax.load(r,".container-fluid.main .adver:first"):window.location.href=r}else{var l=firstPage.find("a[data-pages]")
l.attr("data-pages",l.attr("data-pages").replace(new RegExp(a),e+"="+o)).click()}return!1}})}},pageAjax={articleEl:null,currentUrl:decodeURI(window.location.pathname)+window.location.search,load:function(t,e){var i=this,n=$(window).scrollTop()
t&&!loader()&&$.ajax({type:"POST",url:t,data:{reload:"ajax"},error:function(e,i){window.location.href=t},success:function(o){killloader(),i.articleEl=$("article"),(_gVar.cacheList=_gVar.cacheList||{})[t]=o,_gVar.cacheList[i.currentUrl]||historep({modal:"pagination",datah:i.currentUrl},"",i.currentUrl),i.currentUrl=t,historyst(t,{modal:"pagination",datah:t}),i.setPage(o),$("#cngLangLink").attr("href",_gVar.changeLangUrl),$(window).scrollTop(void 0===e?n:$(e).filter(":visible").length?$(e).offset().top-45:0),ga("send","event","ContentAjax",t)}})},setPage:function(t){this.articleEl.html(t),this.articleEl.find(".city-search").each(citSearchF),siteFilters.init(),movie(),lazyLoad(),moreLinePos=$('a[kolrow][dbn!="act"]:last')}},endAside=!1,moreLinePos=!1,moreLineWas=!$('a#moreH[dbn!="act"]').length,isOperaMini=navigator.userAgent.indexOf("Opera Mini")>-1,addButtonEl=$(".btn-add"),citSearchF=function(){!function(t){var e=t.attr("id"),i=t.data("url"),n=t.data("region"),o=t.attr("data-done"),s=t.data("fixed"),a=t.data("noselect"),r=$("<div "+(s?'data-fixed="'+s+'"':"")+' data-size="lg" data-open="city-'+t.attr("id")+'" data-openparent="true" data-url="/addform/city.php" data-data="name=city-'+e+(i?"&url="+i:"")+(n?"&region=1":"")+(s?"&isFixed=1":"")+(t.data("detail")?"&detail=1":"")+(o?"&func="+o:"")+'" class="input-group-addon"><span class="caret"></span></div>'),l={source:function(t,e){var o={term:t.term,lang:lng}
i&&(o.url=i),n&&(o.withRegions=n),$.post("/ajax/small.php",o,e,"json")},minLength:2,appendTo:t.parent(),search:function(t){loader()},response:function(t,e){killloader()},open:function(){if(s){var t=$(this).parent().parent().find("ul.ui-autocomplete")
t.length&&t.css({"overflow-y":"auto","max-height":$(s).height()-35-t.position().top})}},select:function(e,i){if(0!=i.item.id){$(e.target).next()
o?void 0===window[o]?(t.val(i.item.label),(a?t:t.closest(".input-group")).next("input").val(i.item.id)):window[o](i.item,t):(evChangeCity(i.item.id),window.location=i.item.url)}}}
if(t.attr("id","select"==o?"changeonselect-city-"+e:"").on("click",function(){$(this).select()}),a||t.wrap('<div class="input-group'+(t.hasClass("dropdown-offset")?" dropdown-offset":"")+'"></div>').parent().append(r),t.data("token")){if(t.tokenfield({tokens:_gVar.filterSet,autocomplete:l,limit:10,minWidth:"100%"}).on("tokenfield:edittoken",function(t){t.preventDefault()}).on("tokenfield:removedtoken",function(t){siteFilters.cityFilter($(this))}).on("tokenfield:createtoken",function(t){parseInt(t.attrs.value)||(t.preventDefault(),$(t.currentTarget).parent().find(".token-input").val(""))}),t.data("radius")){var c=t.parent().find(".token")
_gVar.filterSet&&1==_gVar.filterSet.length&&_gVar.filterSet[0]&&!_gVar.filterSet[0].isRegion&&c.after('<div class="token"><select name="radius"><option value="">+0 km</option><option value="25">+25 km</option><option value="50">+50 km</option><option value="75">+75 km</option><option value="100">+100 km</option></select><input type="checkbox" class="hidden" name="radius" '+(_gVar.filter&&_gVar.filter.radius?'checked="checked" value="'+_gVar.filter.radius[0]+'"':'value=""')+"></div>")}}else t.autocomplete(l)
var u=t.parent().find(".ui-autocomplete-input"),d=u.data("ui-autocomplete")
d&&(d._renderItem=renderAutocompleteItem),_gVar.isMobile&&t.data("scroll")&&u.on("focus",function(){var t=$(this),e=$(this).closest(".modal")
setTimeout(function(){e.length?e.scrollTop(t.parent().position().top):$(window).scrollTop(t.offset().top-50)},500)})}($(this))}
jQuery.fn.mainSearch=function(){function t(){73==_gVar.page&&_gVar.googleSearchEl&&_gVar.searchText?_gVar.googleSearchEl.execute(_gVar.searchText):$("#modal-search").click()}var e=$(this),i=e.find("input:text")
i.autocomplete({source:function(t,i){var n={term:t.term,withRegions:!0,lang:lng,city:_gVar.regionID,url:e.data("url")}
$.post("/addform/search_ajax.php",n,i,"json")},minLength:2,appendTo:e,open:function(){var t=e.find("ul.ui-autocomplete")
t.length&&t.css({"overflow-y":"auto","max-height":window.innerHeight-35-t.position().top})},select:function(e,i){"googlesearch"==i.item.id?(_gVar.searchText=i.item.label,t()):i.item.url&&(i.item.id&&evChangeCity(i.item.id),window.location=i.item.url)}}).data("ui-autocomplete")._renderItem=renderAutocompleteItem,e.submit(function(){return(_gVar.searchText=i.val())&&t(),!1})},jQuery.fn.rotateImg=function(){var t=$(this)
return{start:function(){if(t.length){var e=t.addClass("runset").data("imgset").split(","),i=1
clearTimeout(_gVar.imageRotateTimer),_gVar.imageRotateTimer=setTimeout(function n(){_gVar.imageRotateTimerLoadImg=$("<img/>"),_gVar.imageRotateTimerLoadImg.attr("src",e[i]).on("load",function(){$(this).remove(),_gVar.imageRotateTimerLoadImg=!1,t.css({opacity:0}),_gVar.imageRotateTimer=setTimeout(function(){t.css({opacity:1,"background-image":"url("+e[i]+")"}),i++,i>=e.length&&(i=0),clearTimeout(_gVar.imageRotateTimer),_gVar.imageRotateTimer=setTimeout(n,1700)},600)})},850)}},stop:function(){if(t.length){var e=t.data("imgset").split(",")
_gVar.imageRotateTimerLoadImg&&(_gVar.imageRotateTimerLoadImg.remove(),_gVar.imageRotateTimerLoadImg.off("load"),_gVar.imageRotateTimerLoadImg=!1),t.removeClass("runset").css({opacity:1,"background-image":"url("+e[0]+")"}),clearTimeout(_gVar.imageRotateTimer)}}}},jQuery.fn.carouselInit=function(){return $(this).find(".carousel").carousel({interval:_gVar.isMobile?0:13e3}).on("swiperight",function(){$(this).carousel("prev")}).on("swipeleft",function(){$(this).carousel("next")}),this},$(document).ready(function(){$(window).bind("resize",resColm).bind("scroll",function(){_gVar.scrollTimer||(_gVar.scrollTimer=setTimeout(function(){clearTimeout(_gVar.scrollTimer),_gVar.scrollTimer=null,scrollE()},100))}).bind("load",function(){scrollE(),resColm(),$("#asideFin:visible").length&&(endAside=$("#asideFin:visible").offset().top)}),$("#m-search").mainSearch(),$("#header-mobile-search-city").on("shown.bs.dropdown",function(){$(this).find(":text").focus()}),$("#header-mobile-search-city :text").focus(function(){$(this).parent().find(".open").removeClass("open")}),$(".nav.nav-tabs>li>a").click(function(t){t.preventDefault(),$(this).tab("show")}),$("#selectColorTheme .dropdown-menu a").click(function(t){var e=$(this).data("val")
t.preventDefault(),$("body").removeClass("color1"),$("#selectColorTheme .color-text").text($(this).text()),$.cookie("themeColor",e,{path:"/",expires:9999}),"0"!==e&&$("body").addClass("color"+e),_gVar.user&&$.ajax({url:"/addform/user_ajax.php",data:{setting:"set_color",setto:e}})}),gallery(),movie(!0),pageNum.init(),$("ul.share a").socialShare(),cookieCheck(),$(".city-search").each(citSearchF),siteFilters.init(),$("body").carouselInit().on("click","a[data-protectemail],button[data-protectemail]",function(t){var e=$(this).data("protectemail").split("").reverse().join(""),i=$(this).data("regurl"),n=$(this).data("mailtoname")
e&&(ga("send","event","Modal","mail","open"),window.location.href="mailto:"+e+"?subject="+rawurldecode(_gText.protMailHeader+" ⏩ "+_gText.siteName)+"&body="+(n?n+", ":"")+encodeURIComponent(_gText.protMailBody+(i?location.origin+i:getUrl()))+"%0D%0A%0D%0A")}).on("click","a[data-protecttel]",function(t){var e=$(this).data("protecttel").toString().split("").reverse().join("")
e&&(ga("send","event","Modal","tel","open"),window.location.href="tel:"+e)}).on("click",".card .hover",function(t){if(!$(t.target).hasClass("zag")){var e=$(this).find(".title a.zag").attr("href")
e&&(window.location.href=e)}}).on("click","a#moreH:visible",function(){var t=$(this),e=t.attr("kolrow")
t.length&&(moreLineWas=!0,porNum=parseInt(t.attr("numM")),t.attr("numM",porNum+1),t.hide(),moreLinePos=t,$._ajax({url:"/ajax/small.php",data:"queryMore1="+encodeURIComponent(t.prev().find(">span:eq(0)").text())+"&queryOrder="+encodeURIComponent(t.prev().find(">span:eq(1)").text())+"&kolrow="+e+"&dbn="+t.attr("dbn")+"&city="+(t.attr("data-city")?1:0)+"&ava="+(t.attr("data-ava")?1:0)+"&perelM="+t.attr("perelM")+"&lang="+lng+"&numM="+porNum,success:function(e){if(e){var i=$(e)
t.prev().before(i),40==i.find(".media-text").length?(moreLineWas=!1,t.show()):(moreLinePos=$("a[kolrow]:last"),moreLinePos.length&&(moreLineWas=!1)),lazyLoad()}}}))}).on("click",".title-city-change-link",function(){var t=$(this).closest(".city-change-container")
t.width()<250&&t.closest(".flex").find(">.dropdown").addClass("hide"),t.addClass("hide").next().removeClass("hide").find(":text").focus(),$("body").on("mousedown",function(t){$(t.target).closest(".city-change-menu").length||($(".city-change-container.hide, .selectT1>.flex>.dropdown.hide").removeClass("hide"),$(".city-change-menu").addClass("hide"),$(this).off(t))})}).on("click","a[data-city-chage-ev]",function(){evChangeCity($(this).data("city-chage-ev"))}).on("click",".share-link-input :text",function(){$(this).select(),document.execCommand&&(document.execCommand("copy"),$.alrt(_gText.buffCopy))}).on("click",".contact-user li[data-messenger]",function(){var t=$(this).data("messenger")
$.cookie("messenger",t,{path:"/",expires:9999}),_gVar.user&&$.ajax({url:"/addform/user_ajax.php",data:{setting:"set_messenger",setto:t}})}).on("mousedown",".dropdown-toggle.position-auto",function(){if("function"==typeof Element.prototype.getBoundingClientRect){var t,e=$(this),i=e.data("positionminbottom"),n=e[0].getBoundingClientRect(),o=$(window)
e.hasClass("position-height")||e.next(".dropdown-menu").toggleClass("pull-right",n.left>o.width()/2),t=i?o.height()-n.top<i:n.top>o.height()/2,e.parent().toggleClass("dropup",t)}}).on("click","*[data-comment]",commentsObj.init).tooltip({selector:'[data-toggle="tooltip"]',container:"body"}),$(".mark").mark()
var t=$('a[kolrow][dbn!="act"]:last')
t.length&&(moreLinePos=t,moreLinePos.offset().top<$(window).scrollTop()+$(window).height()&&t.click()),1==addButtonEl.length&&_gVar.user&&$("#user-menu-top li:eq(2)").after('<li><a class="addbutclick">'+addButtonEl.html()+'</a></li><li class="divider"></li>'),$("body").on("click","*[data-delete],*[data-up]",function(){function t(t){t.attr("data-data")&&(post=JSON.parse('{"'+decodeURI((t.attr("data-data")+"&lang="+lng).replace(/&/g,'","').replace(/=/g,'":"'))+'"}')),$._ajax({url:"/addform/"+post.db+"_ajax.php",data:post,dataType:t.attr("data-type")?t.attr("data-type"):"text",success:function(e){if(killloader(),e.error)return void $.alrt(e.error,"error")
ga("send","event","Modal",post.db,t.attr("data-ganame")||(t.attr("data-delete")?"delete":"up")),post.update&&window[post.update]?window[post.update]():"comment"==post.db?$("#comment_"+post.var1+post.descr).trigger("reloadContent"):reloadPage()}})}!function(e){e.attr("data-delete")?$.alrt((e.attr("data-text")||_gText.del)+"?","dialog",{buttonYes:{text:e.data("yestext")||"",type:e.data("yestype")||"",icon:e.data("yesicon")||""},callbackYes:function(){t(e)}}):t(e)}($(this))}).on("click","*[www]",function(t){var e=$(this).attr("www")
if(e)if(t.stopPropagation(),-1!=e.indexOf("mailto"))window.open(e,"_parent")
else{e=e.replace(/^:?\/\//,"")
var i="/"==e.charAt(0),n=i&&!$(this).attr("data-blank")?"_parent":"_blank"
window.open((i||-1!=e.indexOf("http://")||-1!=e.indexOf("https://")?"":"https://")+e,n)}}).on("click","*[data-open]",function(t){t.preventDefault()
var e=$(this),i=e.attr("data-open"),n=e.data("action")||"",o=e.data("regurl")||"",s=e.data("popstate"),a=e.data("openparent"),r=e.data("fixed"),l=e.attr("data-size")||"md",c=e.attr("data-url")||"/addform/"+i+".php",u=e.attr("data-data"),d=u?u+"&":"",h=$("#"+i),p=$(".modal:visible"),f=p.length,m=e.closest(".modal"),g=s||a&&m.length,v=function(){p.each(function(){$(this).data("popstate",!0).data("scroll",$(this).scrollTop()).removeClass("fade").bsmodal("hide")})}
if(h.length?h.is(":visible")||(f&&v(),h.bsmodal("show"),$(".tooltip.fade").remove(),s&&h.data("scroll")&&h.scrollTop(h.data("scroll"))):$._ajax({url:c,xhrFields:{withCredentials:!0},data:d+"lang="+lng,success:function(t){var e
if("error"===t)return void $.alrt(_gText.error,"error")
if(f){if(a){var n=$('<button type="button" class="close"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>')
return m.find(".modal-content").append('<div class="sub-modal-content">'+t+"</div>"),$("#"+i).find(".modal-header").prepend(n),void n.click(function(){m.find(".sub-modal-content").remove()})}v()}$(r||"body").append('<div id="'+i+'" class="modal'+(f?"":" fade")+'" tabindex="-1" role="dialog" aria-hidden="true"><div class="modal-dialog modal-'+l+'"><div class="modal-content">'+t+"</div></div></div>"),e=$("#"+i),e.on("shown.bs.modal",function(){var t=$(window)
topPos=t.scrollTop(),_gVar.isMobile&&topPos&&(_gVar.modalFixPosition=topPos,setTimeout(function(){t.scrollTop(0)},30))}).on("hide.bs.modal",function(){_gVar.isMobile&&_gVar.modalFixPosition&&($(window).scrollTop(_gVar.modalFixPosition),_gVar.modalFixPosition=0)}).bsmodal("show").find(".modal-header").prepend('<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>'),$(".tooltip.fade").remove(),movie(!0),$("*[data-toggle='popover']").each(function(){var t=$(this),e=t.find(".popover-text"),i={trigger:t.data("trigger")||"hover",placement:t.data("placement")||function(){var t="top"
return this.$element.after(this.$tip),this.$element.offset().top-window.scrollY<this.$tip.height()&&(t="bottom"),this.$tip.remove(),t}}
e.length&&(i.content=e.html(),i.html=!0),t.popover(i)})}}),!g){var y=[],b=e.data()
for(var w in b)w&&-1!==["open","data","action","regurl","size","url","ganame"].indexOf(w)&&y.push("data-"+w+'="'+b[w]+'"')
historyst(null,{modal:i,datah:JSON.stringify(y)}),ga("send","event","Modal",e.data("ganame")||i,"open")}"reg1"==i&&(_gVar.regAction=n,_gVar.regUrl=o)}).on("click",".descr-menu",function(t){t.stopPropagation()}).on("click",".descr-open",function(t){$(this).find(".descr-menu").toggleClass("hide"),autosize.update($(this).find(".descr-menu *[data-autosize]")),t.stopPropagation()}).on("click",".addbutclick",function(t){var e=$(".btn-add[data-open]")
e.length&&(e.click(),t.preventDefault())}).on("click","*[data-ajax]",function(t){pageAjax.load($(this).attr("href"),".container-fluid.main .adver:first"),t.preventDefault()}).on("hide.bs.modal",".modal",function(t){modalHistoryBack($(this))}).on("show.bs.modal",".modal",function(t){$(".adsbygoogle.adsbygoogle-noablate:visible").css({"z-index":1e3})}),_gVar.isMobile||$("body").on("mouseenter","#listshow .card",function(){$(this).find(".img-cover[data-imgset]").rotateImg().start()}).on("mouseleave","#listshow .card",function(){$(this).find(".img-cover[data-imgset]").rotateImg().stop()})
var e=window.location.hash
if(e&&/^#[a-z0-9\-\_]*$/i.test(e)){var i=$(e)
history&&history.replaceState&&!$('*[name="'+e.replace("#","")+'"]').length&&history.replaceState(history.state,document.title,window.location.href.replace(e,"")),i.length&&i.click()}modalHistoryTrigger()}),window.addEventListener&&window.addEventListener("popstate",function(t){var e=$("#blueimp-gallery:visible")
e.length&&e.data("gallery")?e.data("popstate",!0).data("gallery").close():history.state&&"gallery"==history.state.modal||$(".modal.in").data("popstate",!0).removeClass("fade").bsmodal("hide"),modalHistoryTrigger(t)}),jQuery.fn.check=function(t,e){var i=$(this).find('*[name="'+t+'"]'),n=i.val()
String.prototype.trim&&(n=n.trim()),i.attr("data-parent")?(i=i.parent(),iconW=""):iconW='<span class="glyphicon glyphicon-warning-sign form-control-feedback"></span>'
var o=i.parent(".has-warning")
return""==n||e?(o.length||i.is("textarea:hidden")||i.wrap('<div class="form-group has-warning has-feedback"></div>').after(iconW).show(),1):(o.length&&(o.find("label, span.glyphicon").remove(),i.unwrap()),0)},jQuery.alrt=function(t,e,i){function n(){this&&($(this).addClass("gone").parent(".modal-backdrop.for-dialog").remove(),function(t){setTimeout(function(){t.remove()},225)}($(this)))}function o(){h.height()>.7*p&&(n.apply(h.find(".alert:not(.alert-dismiss):first")),setTimeout(o,500))}var e=e||"",i=i||{},s=$('<div class="alert alert-'+e+' matShadow gone" role="alert">'+t+"</div>")
if(function(t){setTimeout(function(){t.removeClass("gone")},10)}(s),"dialog"==e){i.buttonYes=i.buttonYes||{}
var a=$('<button type="button" class="btn btn-default">'+_gText.skas+"</button>"),r=$('<button type="button" class="btn btn-default btn-'+(i.buttonYes.type?i.buttonYes.type:"delete")+'"><span class="glyphicon glyphicon-'+(i.buttonYes.icon?i.buttonYes.icon:"trash")+'"></span> '+(i.buttonYes.text?i.buttonYes.text:_gText.del)+"</button>"),l=$(".modal:visible");(l.length?l:$("body")).find(".modal-backdrop.for-dialog").remove().end().append(s),s.addClass("modal-content color-grey").wrap('<div class="modal-backdrop for-dialog fade in"></div>'),s.append("<div>",r,a,"</div>"),a.one("click",function(){"function"==typeof i.callbackNo&&i.callbackNo(),n.apply(s)}),r.one("click",function(){"function"==typeof i.callbackYes&&i.callbackYes(),n.apply(s)})}else{var c=70*t.length,u=setTimeout(n.bind(s),c<4e3?4e3:c),d="",h=$(".alerts-box"),p=$(window).height(),f=s
switch(h.length||(h=$('<div class="alerts-box"></div>'),$("body").append(h)),e){case"error":d="exclamation-sign"
break
case"warn":d="alert"
break
case"success":d="check"}if(d&&s.prepend('<span class="glyphicon glyphicon-'+d+'"></span> '),i.dismissible){if(h.find(".alert-dismiss").length)return
if(f=$('<button type="button" class="close"><span aria-hidden="true">&times;</span></button>'),clearTimeout(u),void 0!==i.dismissible.timesToShow){var m=s.text().hashCode(),g=sstorage("alrt_"+m)||0,v=0===i.dismissible.timesToShow
if(v){if(g)return}else{if(g&&g<i.dismissible.timesToShow)return void sstorage("alrt_"+m,++g)
g=0,sstorage("alrt_"+m,++g)}}s.addClass("alert-dismiss").prepend(f),f=f.add(s.find(".btn-add")),v&&f.click(function(){sstorage("alrt_"+m,"1")})}s.addClass("alert-message"),f.click(function(){n.apply(s),clearTimeout(u)}),h.append(s),o()}},jQuery.fn.addF=function(t){function e(){var t="textarea:not(.img-descr, .not-listen), input:not(.not-listen, .ui-autocomplete-input, :input[type=file])",e="select:not(.not-listen),:checkbox,:radio:not(.not-listen)"
i.on("input",t,function e(n){u.wasChange=!0,i.off("input",t,e),i.data("bs.modal")&&(i.data("bs.modal").options.backdrop="static")}),i.on("change",e,function t(){u.wasChange=!0,i.off("change",e,t),i.data("bs.modal")&&(i.data("bs.modal").options.backdrop="static")})}var i=$(this),n=i.attr("id"),o=i.find('input[type="file"]'),s=i.find('button[type="submit"]'),a=s.attr("data-text"),r=i.find("form:not(.gotopage)"),l=i.find('input[name="edit_attr"]'),c=!1,u={wasChange:!1,flagEdit:!1,inprogress:!1,storagePrefix:t.storagePrefix||"",autoUpload:l.val()||!1},d={done:function(){killloader(),e(),t.nosendMessage||$.alrt(t.sendMessage?t.sendMessage:_gText.saved,"success"),u.flagEdit=!0,u.inprogress=!1,i.data("bs.modal")&&(i.data("bs.modal").options.backdrop=!0),c&&i.bsmodal("hide"),void 0!==t.callback&&u.wasSave&&t.callback(u)},send:t.send,formSetting:u,lineCount:0,line:Array()}
window.onbeforeunload||(window.onbeforeunload=function(){if(i.trigger("sessionSave"),u&&u.wasChange&&!t.noTrackChanges)return!0}),"function"==typeof t.init&&t.init(u),t.alertParent=void 0===t.alertParent?i:t.alertParent,e(),i.on("hide.bs.modal",function(e){return!u.inprogress&&($(".alert-success").remove(),u.wasChange&&!t.noTrackChanges?(u.wasChange=!1,$.alrt(_gText.saveChanges,"dialog",{callbackYes:function(){s.click(),c=!0},callbackNo:function(){i.bsmodal("hide")},buttonYes:{text:_gText.save,type:"ok",icon:"check"}}),!1):(u.flagEdit&&(void 0!==t.update?window[t.update]():setTimeout(function(){u.redirectURL?window.location.href=u.redirectURL:reloadPage()},100)),void i.trigger("sessionSave")))}).on("hidden.bs.modal",function(e){autosize.destroy(i.find("textarea")),i.remove(),void 0!==t.afterClose&&t.afterClose(),window.onbeforeunload=null}).on("shown.bs.modal",function(){var t=i.find(".modal-dialog"),e=i.find("textarea:not(.not-resize)")
if(e.attr("data-autosize","true"),autosize(e),i.find('a[data-toggle="tab"]').one("shown.bs.tab",function(t){var e=i.find($(t.target).attr("href")).find("textarea")
e.length&&autosize.update(e)}),u.autoUpload&&t.height()-window.innerHeight>50&&s.length&&!isOperaMini){var n=t.width()
s.css({position:"fixed",bottom:"0",left:"50%",width:n,"margin-left":(n+(i[0].offsetWidth-i[0].clientWidth))/-2,"border-radius":"0"}).on("click",function(){r.find(":submit").click()}),i.find(".modal-dialog").css({"margin-bottom":"32px"}),i.append(s),r.append('<input class="hide" type="submit">')}}),u.autoUpload?(s.html(a||_gText.save),t.send.prm=u.autoUpload):(s.html(a||_gText.add),i.find("h4.modal-title small").hide()),o.length&&addJsFile.fileupload(function(){o.each(function(){$(this).fileLoad(d)})}),i.find(".modal-title").click(function(){$(this).next(".alert").toggleClass("hidden")}),i.find(".mapPOL").length&&(_gVar.mapMarherChange=function(t,e,n){i.find('input[name="lat'+n+'"]').val(t),i.find('input[name="lng'+n+'"]').val(e),u.wasChange=!0},i.find(".mapPOL").each(function(){$(this).click(function(){var t=$(this),e=$(this).closest(".map-container"),i=e.find("iframe")
if(i.length)i.toggleClass("hide")
else{var n=$(this).closest(".modal-body").find('input[name="city"], select[name="city"]').val()
$.when(function(){return loader(),n&&_gVar.city!=n?$.post("/ajax/small.php",{getcityinfo:n,lang:lng},function(){},"json"):{}}()).then(function(i){var n=t.attr("data-data")
killloader(),i&&i.lng&&(n=n.replace(/lat=[^&]+/,"lat="+i.lat),n=n.replace(/lng=[^&]+/,"lng="+i.lng),n=n.replace(/np=[^&]+/,"np="+encodeURIComponent(i.label))),e.append('<iframe name="'+e.data("index")+'" style="width:100%" height="400" scrolling="no" frameborder="0" src="/ajax/mapModal.php?'+n+"&skas="+encodeURIComponent(_gText.skas)+"&addr="+encodeURIComponent(e.find(":text").val())+'"></iframe>')})}})})),i.find("textarea[data-inline]").keydown(function(t){13!=t.keyCode||t.shiftKey||(t.preventDefault(),_gVar.isMobile||r.submit())}),r.submit(function(){if(u.inprogress)return!1
var e=0
if(i.find("*[data-required], *[required]").each(function(){e+=i.check($(this).attr("name"))}),e>0)$.alrt(_gText.obpol,"warn")
else{if(void 0!==t.beforeSave&&!t.beforeSave())return!1
var o={}
if(i.find('textarea, input:not([type="file"]), select').each(function(){$(this).is(":checkbox, :radio")?$(this).is(":checked")&&(o[$(this).attr("name")]=$(this).val()):o[$(this).attr("name")]=$(this).val()}),loader())return
u.inprogress=!0,u.wasChange=!1,u.wasSave=!0
for(var a in t.send)o[a]=t.send[a]
$.ajax({url:t.url.replace(".php","_ajax.php"),data:$.param(o)+"&lang="+lng,error:function(){killloader(),u.inprogress=!1,$.alrt(_gText.error,"error")},success:function(e){var o
if(s.attr("data-text")||s.text(_gText.save),e)try{o=$.parseJSON(e)}catch(t){return $.alrt(_gText.error,"error"),u.inprogress=!1,void killloader()}if(ga("send","event","Modal",n,u.autoUpload?"edit":"add"),o){if(o.error)return $.alrt(o.error,"warn"),killloader(),u.inprogress=!1,void("function"==typeof t.errorCallback&&t.errorCallback(o))
o.url&&(u.redirectURL=o.url),u.autoUpload||(void 0!==t.afterAdd&&t.afterAdd(u),u.autoUpload=o.codeID,l.val(o.codeID),t.send.catyear=o.date,i.find("h4 small").show())}i.find(".dropdown.category button").attr("disabled","disabled"),i.find(".city-change-container .ui-autocomplete-input").attr("disabled","disabled").removeClass("ui-autocomplete-input").nextAll().addClass("hidden").parent().removeClass("input-group"),u.autoUpload&&(t.send.prm=u.autoUpload),void 0!==d.add?d.add(t.send):d.done()}})}sstorage(n+u.storagePrefix,"")}),i.on("sessionSave",function(){if(!u.autoUpload&&void 0!==window.sessionStorage){var t={}
if(r.find(':text, input[type="url"], input[type="number"], input[type="email"], textarea, .session-storage').each(function(){var e=$(this)
e.attr("name")&&!e.is(".no-session-storage, :disabled")&&(t[e.attr("name")]=e.val())}),!$.isEmptyObject(t))try{sstorage(n+u.storagePrefix,JSON.stringify(t))}catch(t){}}}).on("sessionPopulate",function(){if(!u.autoUpload&&sstorage(n+u.storagePrefix))try{var t=JSON.parse(sstorage(n+u.storagePrefix))
$.each(t||{},function(t,e){r.find('*[name="'+t+'"]').val(e)})}catch(t){}}),i.trigger("sessionPopulate")}
var addJsFile={fileupload:function(t){void 0===_gVar.flagFileUpload?$.ajax({url:"/style/js/fileupload.js",dataType:"script",cache:!0,success:function(){_gVar.flagFileUpload=!0,t()}}):t()}}
jQuery.fn.fileLoad=function(t){function e(t,e){$.alrt(t,"warn"),e.customErrorThrown=t,e.abort()}function i(e,i,n){if(loader())return!1
var o=i.closest(".item"),a=o.attr("data-number"),r=i.closest("form")
if(t.formSetting.inprogress=!0,e.identF=u.attr("name"),r.length&&(e.city=r.find(':hidden[name="city"]').val()||""),i.hasClass("rotate"))e.rotate=a,e.direction=i.attr("data-rotate")
else if(i.hasClass("btn-remove"))e.delete_img=a
else if(i.hasClass("img-desc-save"))e.descrNUM=a,e.descrText=o.find("textarea").val()
else{if(!i.hasClass("make-main"))return t.formSetting.inprogress=!1,killloader(),!1
e.makemain=a}$.ajax({url:u.attr("data-url"),data:e,error:function(e,i){t.formSetting.inprogress=!1,killloader(),$.alrt(_gText.error,"error")},success:function(e){t.formSetting.inprogress=!1,killloader(),t.formSetting.flagEdit=!0,n(o),void 0!==t.del&&t.del(),s()}}),delete e.descrNUM,delete e.descrText,delete e.identF,delete e.rotate,delete e.direction,delete e.delete_img,delete e.makemain,delete e.city}function n(e){var i=$("<div "+(e.index?'data-id="'+e.index+'"':'data-number="'+e.number+'"')+' class="item matShadow"></div>')
i.append('<div class="btn-group'+(e.ready?" ready":m?" hide":"")+'"><div class="btn btn-default btn-xs dropdown-toggle position-auto btn-edit" data-toggle="dropdown" aria-expanded="false"><span class="glyphicon glyphicon-pencil"></span></div><ul class="dropdown-menu close-on-hover color-grey">'+(h>1?'<li class="descr-open hide"><a>'+(e.descr?_gText.edit:_gText.add)+" "+_gText.descr+'</a><div class="descr-menu hide"><textarea maxlength="255" class="img-descr form-control"></textarea><button type="button" class="btn btn-primary btn-sm img-desc-save">'+_gText.save+"</button></div></li>"+(e.type&&1!=e.type?"":'<li class="make-main hide"><a>'+_gText.imMain+"</a></li>"):"")+'<li class="rotate hide" data-rotate="90"><a><span class="glyphicon glyphicon-repeat"></span> '+_gText.rotate+'</a></li><li class="rotate hide" data-rotate="-90"><a><span class="glyphicon glyphicon-repeat mirror"></span> '+_gText.rotate+'</a></li><li role="separator" class="divider hide"></li><li><a class="btn-remove"><span class="glyphicon glyphicon-trash"></span> '+_gText.del+"</a></li></ul></div>"),e.files?(t.line[e.index]=e,i.append('<div class="progress"><div class="progress-bar progress-bar-warning progress-bar-striped" role="progressbar" style="width:0%"></div></div>'),e.files[0].preview?i.prepend(e.files[0].preview):i.prepend('<div class="img-cover">'+e.files[0].name+"</div>")):e.filePreview&&(d++,i.find("textarea").val(e.descr),i.find("li.hide"+(1==e.type?"":":not(.rotate)")).removeClass("hide"),i.prepend(e.filePreview),l()),g.length?g.append(i):c.append(i)}function o(t){var e=""
switch(t.type){case"2":e="glyphicon-volume-up"
break
case"3":e="glyphicon-play-circle"
break
case"5":e="glyphicon-file"}return e&&(e='<span class="glyphicon '+e+'" aria-hidden="true"></span><br>'),$('<div class="img-cover" data-url="'+t.path+'" '+(1==t.type?'style="background-image:url('+t.path+"?"+Math.random()+')">':">"+e+t.name)+"</div>")}function s(){g.find(".make-main.hide").removeClass("hide"),g.find(".make-main:first").addClass("hide")}function a(t){for(var e=new Array,t=t.split(/\*[0-9]*\*_}/),i=0;i<t.length;i++)if(t[i]){var n=t[i].split("(#SEP#)"),o=/{_\*([0-9]*)\*/.exec(n[0])
e.push({number:o?o[1]:0,path:n[0].replace(/\{_\*[0-9]*\*/,""),type:n[4],name:n[2],descr:n[3]})}return e}function r(t){t.remove(),d--,l()}function l(){c.find(".manage-cont").toggleClass("ishide",d>=h).find(".file-count").text(d?" ("+d+" "+_gText.fromt+" "+h+")":"")}if("add"!=t){var c,u=$(this),d=0,h=u.attr("multiple")?u.attr("data-maxfile")?u.attr("data-maxfile"):10:1,p=h>1&&!u.data("nodrop"),f=u.data("files"),m=($("body"),void 0!==t.formSetting.autoUpload?t.formSetting.autoUpload:!u.attr("data-autoupload"))
u.removeClass("hidden").addClass("upload"),u.wrap('<div class="fileUploadContainer clearfix"></div>'),c=u.closest(".fileUploadContainer"),u.wrap('<div class="manage-cont">'+u.attr("data-text")+"</div>"),c.find(".manage-cont").prepend('<span class="glyphicon glyphicon-paperclip" aria-hidden="true"></span> ').append('<span class="file-count"></span>'),p&&c.find(".manage-cont").append('<div class="small hidden-xs">'+_gText.fileDrop+"</div>"),c.append('<div class="img-container"></div>')
var g=c.find(".img-container")
if(c.on("click",".img-desc-save",function(e){i(t.send,$(this),function(t){$.alrt(_gText.saved,"success")})}).on("click",".btn-remove",function(){var e=$(this),n=e.closest(".item"),o=n.attr("data-id")
void 0!==o&&t.line[o]?(t.line[o].abort(),$("#"+$(this).attr("aria-describedby")).remove(),r(n)):$.alrt(_gText.del+"?","dialog",{callbackYes:function(){i(t.send,e,function(t){r(t)})}})}).on("click",".rotate",function(){i(t.send,$(this),function(t){var e=t.find(".img-cover")
e.css("background-image","url("+e.attr("data-url")+"?"+Math.random()+")")})}).on("click",".make-main",function(){i(t.send,$(this),function(t){g.prepend(t.clone(!0,!0)),t.remove()})}),t.add=function(e){if(e.prm&&(t.send.prm=e.prm),m)void 0===t.done||t.lineCount||t.done()
else{if(t.lineCount)for(var i in t.line)t.line[i].formData=e,t.line[i].submit()
else void 0!==t.done&&t.done()
c.find(".btn-group:not(.ready)").addClass("hide")}},u.fileupload({formData:t.send,previewMaxWidth:100,previewMaxHeight:100,previewCrop:!0,pasteZone:null,dropZone:p?$("body"):null,autoUpload:m,dataType:"json",disableImageResize:/Android(?!.*Chrome)|Opera/.test(window.navigator.userAgent),imageMaxWidth:800,imageMaxHeight:800,sequentialUploads:!0,done:function(e,i){var n=(i.files[0].name+i.files[0].size).hashCode(),r=c.find('.item[data-id="'+n+'"]')
if(i.result.error)i.result.descr&&$.alrt(i.result.descr,"error"),r.html('<div class="img-cover">'+i.result.error+"</div>")
else if(i.result.data){var l=a(i.result.data)
r.find(".progress, canvas, div.img-cover").remove(),r.removeAttr("data-id").attr("data-number",l[0].number),r.find(".btn-group, li.hide"+(1==l[0].type?"":":not(.rotate)")).removeClass("hide"),1!=l[0].type&&r.find("li.make-main").remove(),r.prepend(o(l[0]))}s(),delete t.line[n],t.lineCount--,t.lineCount||void 0===t.done||t.done(),ga("send","event","File","done")}}).on("fileuploadadd",function(i,n){t.lineCount++,n.index=(n.files[0].name+n.files[0].size).hashCode(),n.files[0].size>15e6?e(_gText.sizeMax+" 15Mb",n):d>=h?e(_gText.fileMax,n):"image/*"!=u.attr("accept")||/\.(gif|jpg|jpeg|png|webp)$/i.test(n.files[0].name)?t.line[n.index]?n.abort():(m!=t.formSetting.autoUpload&&($(this).fileupload("option","autoUpload",!0),m=t.formSetting.autoUpload,t.send.prm=m,$(this).fileupload("option","formData",t.send)),m&&(loader(),t.formSetting.inprogress=!0,t.formSetting.flagEdit=!0),d++,l()):e(_gText.fileType,n)}).on("fileuploadprogress",function(t,e){c.find('.item[data-id="'+(e.files[0].name+e.files[0].size).hashCode()+'"]').find(".progress-bar").css({width:parseInt(e.loaded/e.total*100,10)+"%"})}).on("fileuploadprocessalways",function(t,e){e.index=(e.files[0].name+e.files[0].size).hashCode(),n(e)}).on("fileuploadsubmit",function(e,i){t.send.city=c.parents("form").find(':hidden[name="city"]').val()||"",i.formData=t.send,ga("send","event","File","add")}).on("fileuploadfail",function(e,i){var n=(i.files[0].name+i.files[0].size).hashCode()
c.find('.item[data-id="'+n+'"]').html('<div class="img-cover">Error</div>'),t.formSetting.autoUpload&&s(),delete t.line[n],t.lineCount--,!t.lineCount&&void 0!==t.done&&t.formSetting.autoUpload&&t.done(),ga("send","event","File","error",i.customErrorThrown||i.errorThrown)}),f){for(var v=a(rawurldecode(f)),y=0;y<v.length;y++)n({number:v[y].number,filePreview:o(v[y]),descr:v[y].descr,type:v[y].type,ready:!0})
s()}}},String.prototype.hashCode=function(){var t=0
if(0==this.length)return t
for(i=0;i<this.length;i++)char=this.charCodeAt(i),t=(t<<5)-t+char,t&=t
return t},jQuery.fn.socialShare=function(){$(this).click(function(){var t=$(this).attr("id"),e=$(this).closest("ul.share"),i="",n=e.prev(".share-link-input").find(":text"),o=encodeURIComponent(n.length?n.val():getUrl()),s=encodeURIComponent($("head title").text())
switch(t){case"s-facebook":i="https://www.facebook.com/sharer/sharer.php?u="
break
case"s-vkontakte":i="https://vk.com/share.php?url="
break
case"s-messenger":i="http://www.facebook.com/dialog/send?app_id=285744658215956&link="+o+"&redirect_uri="
break
case"s-telegram":i="https://telegram.me/share/url?url="
break
case"s-mail":i="mailto:?subject="+s+"&body=",o+="%0D%0A%0D%0A"
break
case"s-twitter":i="https://twitter.com/intent/tweet?text="+s+"&url="
break
case"s-viber":i="viber://forward?text=",o=location.origin+decodeURIComponent(location.pathname)+encodeURIComponent(location.search+location.hash)}ga("send","event","SocialShare",t,e.data("type")),window.open(i+o,"_blank")})},jQuery.fn.category=function(){function t(t){e.find("button .text").html(i+t.text()),e.find("input").val(t.attr("data-value")).trigger("keydown"),window.detectOperation&&window.detectOperation()}var e=$(this),i=""
e.on("show.bs.dropdown",function(){$(this).find(">.dropdown-menu .level1").show().end().find(">.dropdown-menu>.level2, .backto").remove()}).find(".dropdown.level1").click(function(n){if($(this).attr("data-value"))t($(this))
else{var o=$(this),s=$(o.find(".dropdown-menu").html()),a=$('<li class="backto"><a><span class="dropleft caret"></span></a></li>')
i='<small class="hidden-xs">'+o.find(">a").text()+" > </small>",a.click(function(t){e.find(">.dropdown-menu .level1").show().end().find(">.dropdown-menu>.level2").remove(),$(this).remove(),t.stopPropagation()}),e.find("li").hide(),o.parent().append(s).prepend(a).find(".level2").show().click(function(){t($(this))}),n.stopPropagation()}})},jQuery.fn.scrlTo=function(){var t=$(".modal.in:visible"),e=$(this)
e.length&&(t.length||(t=$("html, body")),t.animate({scrollTop:e.position().top},500))},jQuery.fn.inView=function(t){var e="function"==typeof Element.prototype.getBoundingClientRect&&$(this)[0].getBoundingClientRect(),i=$(window).height(),t=t||0
return isOperaMini||!e||i+t>e.top&&-t<e.bottom},jQuery.fn.content=function(t){var e=$(this),i=function(t){t=t||{},t.data=t.data||{},$(".tooltip.fade").remove(),function(e){var i=e.data("set")||{}
i.url&&($.each(t.data,function(t,e){void 0!==i.data[t]&&(i.data[t]=e)}),$._ajax({url:i.url,data:$.param($.extend({},i.data||{},t.data))+"&lang="+lng,success:function(n){e.html(n),t.scroll&&(i.scrollParentContent?setTimeout(function(){e.animate({scrollTop:e.prop("scrollHeight")},500)},100):e.scrlTo()),i.callback&&i.callback(e),t.callback&&t.callback(e),movie(),lazyLoad()}}))}(e)}
t.firstReload=void 0===t.firstReload||t.firstReload,t&&e.data("set",$.extend(e.data("set")||{},t)),e.bind("reloadContent",function(t,e){i(e)}),t.firstReload&&i(),e.on("click","a[data-pages]",function(t){var n=$(this).attr("data-pages"),o=e.data("set")
return t.preventDefault(),"?"==n&&(n+=o.data.get_comment+o.data.descr+"edPG=0"),o.data=$.extend(o.data,JSON.parse('{"'+n.replace("?","").replace("=",'":"')+'"}')),i({scroll:!0}),!1}).on("click","span[data-share-comment]",function(t){var i=$(this).data("share-comment"),n=$(this).next(".dropdown-menu"),o=e.data("regurl"),s=o?location.origin+o:getUrl(!0).replace(/(&|\/\?)SAC=\d+/,"")
n.find(".share-comment").length||n.append($(".share-comment.hidden:first").clone(!0).removeClass("hidden")),n.find(".share-link-input :text").val(s+(-1===s.indexOf("/?")?"/?":"&")+"SAC="+i+"#comm"+i)})},messageF={set:function(t){if(void 0!==t){var e=$('<span class="badge">'+t.count+"</span>")
$("#mess-menu").attr("data-data","send="+t.user).append(e.clone()),$(".dropdown-toggle.ava.hover").attr("data-open","mess1").attr("data-data","send="+t.user).prepend(e),"undefined"!=typeof functMessToReload&&functMessToReload&&functMessToReload()}},remove:function(){$("header .dropdown .badge").remove(),$("#mess-menu").removeAttr("data-data"),$(".dropdown-toggle.ava.hover").removeAttr("data-open data-data")}},jQuery.fn.mark=function(){var t=$(this)
$(this).find('.glyphicon-star-empty[data-val="'+$(this).data("active")+'"]').addClass("active"),$(this).mouseout(function(){$(this).find(".active").removeClass("active"),$(this).find('.glyphicon-star-empty[data-val="'+$(this).data("active")+'"]').addClass("active")}).find("span[data-val]").tooltip({container:!1}).hover(function(){t.find(".active").removeClass("active"),$(this).addClass("active")}).click(function(){if(!_gVar.user)return void t.data("action",$(this).attr("id"))
var e=$(this).data("val")
t.data("active",e==t.data("active")?"":$(this).data("val")),t.trigger("mouseout"),$._ajax({url:"/ajax/mark.php",dataType:"json",data:{BD:t.data("db"),descr:t.data("descr"),val:e},success:function(i){if(i.error)$.alrt(i.error,"error"),t.data("active",""),t.trigger("mouseout")
else{var n=Math.abs(i.val)-.001
t.find(".average, .p1, .p2, .p3, .p4").removeClass("average p1 p2 p3 p4"),t.find("."+(i.val>0?"up":"down")+" .glyphicon-star-empty:eq("+(4-Math.floor(n/2))+")").addClass(" average p"+Math.round(n%2*2)),"delete"==i.action&&t.find(".tooltip").tooltip("hide"),ga("send","event","SetMark",i.action,("edit"==i.action?i.mark+">":"")+e.toString())}}})})},jQuery.fn.socialCheck=function(){var t=$(this).val()
if(t){socialLinks=t.split(", ")
for(var e=0;e<socialLinks.length;e++)if(-1===socialLinks[e].indexOf("http"))return $.alrt(_gText.nourl+" (URL)","warn"),$('.token .token-label:contains("'+socialLinks[e]+'")').parent().css({"background-color":"#ef5350"}),!1}return!0},jQuery.fn.passInputCheck=function(){var t=$(this).find('input[name="pass"]'),e=$('<span class="glyphicon glyphicon-eye-open" style="float: right; padding: 10px; margin-top: -35px; cursor:pointer;"></span>')
return $(this).submit(function(e){if($(this).check("pass"))return $.alrt(_gText.obpol,"warn"),e.stopPropagation(),e.preventDefault(),!1
t.attr("type","password")}),t.keyup(function(){var t=$(this).val()
$(this).parent().find(".no-spaces-text").toggleClass("hide",!(/  +/.test(t)||/^\s/.test(t)||/\s$/.test(t)||/\\/.test(t)))}).css({"padding-right":"30px"}).attr("minlength","3").attr("maxlength","40").attr("autocomplete","new-password").after(e),e.click(function(){var i="password"==t.attr("type")
t.attr("type",i?"text":"password"),e.toggleClass("glyphicon-eye-open").toggleClass("glyphicon-eye-close")}),this}
for(var i=0;i<functionRun.length;i++)functionRun[i]()
$.widget("custom.combobox",{_create:function(){this.wrapper=$("<div>").addClass("input-group ui-front").insertAfter(this.element),this.element.hide(),this._createAutocomplete(),this._createShowAllButton()},_createAutocomplete:function(){var t=this.element.children(":selected"),e=t.val()?t.text():""
this.input=$("<input>").appendTo(this.wrapper).val(e).attr("title","").addClass("form-control").autocomplete({delay:0,minLength:0,source:$.proxy(this,"_source")}).focus(function(){$(this).select()}),this._on(this.input,{autocompleteselect:function(t,e){var i=this
e.item.option.selected=!0,this._trigger("select",t,{item:e.item.option}),this.input.val(e.item.label).prop("disabled",!0),setTimeout(function(){i.input.prop("disabled",!1)},100)},autocompletechange:"_removeIfInvalid"})},_createShowAllButton:function(){var t=this.input,e=!1
$("<button>").attr("tabIndex",-1).attr("type","button").html('<span class="caret"></span>').appendTo(this.wrapper).addClass("btn btn-default").wrap('<div class="input-group-btn">').on("mousedown",function(){e=t.autocomplete("widget").is(":visible")}).on("click",function(){e||t.autocomplete("search","")})},_source:function(t,e){var i=new RegExp($.ui.autocomplete.escapeRegex(t.term),"i")
this.input.autocomplete("widget").scrollTop(0),e(this.element.children("option").map(function(){var e=$(this).text()
if(this.value&&(!t.term||i.test(e)))return{label:e,value:e,option:this}}))},_removeIfInvalid:function(t,e){if(!e.item){var i=this.input.val().toLowerCase(),n=!1
this.element.children("option").each(function(){if($(this).text().toLowerCase()===i)return this.selected=n=!0,!1}),n||(this.input.val(this.element.find(":selected").text()),this.input.autocomplete("instance").term="")}},_destroy:function(){this.wrapper.remove(),this.element.show()}})
