(window.webpackJsonp=window.webpackJsonp||[]).push([["app_book_page_js"],{"+2oP":function(t,e,i){"use strict";var s=i("I+eb"),n=i("hh1v"),o=i("6LWA"),a=i("I8vh"),r=i("UMSQ"),l=i("/GqU"),h=i("hBjN"),c=i("tiKp"),u=i("Hd5f"),d=i("rkAj"),p=u("slice"),f=d("slice",{ACCESSORS:!0,0:0,1:2}),m=c("species"),g=[].slice,v=Math.max;s({target:"Array",proto:!0,forced:!p||!f},{slice:function(t,e){var i,s,c,u=l(this),d=r(u.length),p=a(t,d),f=a(void 0===e?d:e,d);if(o(u)&&("function"!=typeof(i=u.constructor)||i!==Array&&!o(i.prototype)?n(i)&&null===(i=i[m])&&(i=void 0):i=void 0,i===Array||void 0===i))return g.call(u,p,f);for(s=new(void 0===i?Array:i)(v(f-p,0)),c=0;p1?arguments[1]:void 0)}))},"0jCd":function(t,e,i){(function(t){i("yXV3"),i("toAj"),i("rB9j"),i("UxlC"),t(document).ready((function(){t(document).on("click",".changeFormat",(function(e){e.preventDefault();var i=t(this).attr("ids"),s=t(this).attr("idspanel")?t(this).attr("idspanel"):i,n=t(this).attr("troya"),o=t(this).attr("status"),a=parseFloat(t(this).attr("price")),r=parseFloat(t(this).attr("constprice")),l=t(this).attr("termin_end"),h=t(this).attr("punkty"),c=(parseFloat(r.toFixed(2)-a.toFixed(2)).toFixed(2)/parseFloat(r.toFixed(2))*100).toFixed(0),u=t("."+s+"-link p.cover"),d=t("img[ident="+s+"]"),p=t(this).attr("xfory_active"),f=t(".tags-special-"+s),m=t(this).attr("termin_promo");1==p?(d.addClass("cover-xfory"),f&&f.addClass("tags-special-xfory")):(d.removeClass("cover-xfory"),f&&f.removeClass("tags-special-xfory"));var g=t(this).attr("shared_cover_ebook"),v=t(this).attr("shared_cover_audio"),y=t(this).parent("ul"),b=t(".isTester").html(),_="/zakupy/add.cgi?troya=",w=t(this).attr("temat"),k="",x="",C="";t("#"+s).siblings(".powiadomMnie").replaceWith(C),0==o?(k="Niedostępna",x="price"):1==o?a '+a.toFixed(2)+" zł \n"+r.toFixed(2)+"zł (-"+c+"%)":' '+a.toFixed(2)+" zł \n"+r.toFixed(2)+"zł (-"+c+"%)",x="price price-incart"):(_+=n,w&&(_+="&helion_utm=1&type=tematy&utm_id="+w+"&ident="+i),k=1==b?' '+r.toFixed(2)+" zł ":' '+a.toFixed(2)+" zł \n",x="price price-add"):7==o&&""!=l||2==o&&""!=l?(_+=n,w&&(_+="&helion_utm=1&type=tematy&utm_id="+w+"&ident="+i),7==o&&(_=""),k=1==b?' '+a.toFixed(2)+" zł \n":' '+a.toFixed(2)+" zł \n",k+='",x="price price-time price-time-incart"):2==o?(k="W przygotowaniu",x="price",C=' '+s.toFixed(2)+" zł \n"+n.toFixed(2)+" zł("+a.toFixed(2)+" zł najniższa cena z 30 dni)"):(o+=i,content=''+n.toFixed(2)+" zł "),t("#changePolishPrice").html(content)}))},window.pokaz_spistresci=function(){e(".header-link").removeClass("active"),e("#header-link-spistresci").addClass("active"),e(".center-body").hide(),e("#center-body-spistresci").show()},window.przesun=l,window.opinions=function(t){e(".stars").click((function(){window.location="/user/opinie/"+t})),e(".icon-help").click((function(){window.open("https://videopoint.pl/videopoint_przewodnik_kadry.phtml","_blank")})),e(".header-link").click((function(){e(".header-link").removeClass("active"),e(this).addClass("active")})),e("#header-link-opis").click((function(){e(".center-body").hide(),e("#center-body-opis").show()})),e("#header-link-szczegoly").click((function(){e(".center-body").hide(),e("#center-body-szczegoly").show()})),e("#pokaz_recenzje").click((function(t){t.preventDefault(),e("#pokaz_recenzje").hide(),e("#ukryj_recenzje").show(),e("#section5 .slide-down").show()})),e("#ukryj_recenzje").click((function(t){t.preventDefault(),e("#pokaz_recenzje").show(),e("#ukryj_recenzje").hide(),e("#section5 .slide-down").hide(),window.location.href="#section5"})),e("#pokaz_opinie").click((function(t){t.preventDefault(),e("#pokaz_opinie").hide(),e("#ukryj_opinie").show(),e("#section4 .slide-down").show()})),e("#ukryj_opinie").click((function(t){t.preventDefault(),e("#pokaz_opinie").show(),e("#ukryj_opinie").hide(),e("#section4 .slide-down").hide(),window.location.href="#section4"}))},window.checkemail=function(t){if(!validEmail(t.email.value))return t.email.value&&alert("Należy wpisać poprawny adres e-mail."),t.email.focus(),t.email.select(),!1},window.livechat=function(t){img=window.open("https://helion.pl/livechat.html","Livechat","status=no,toolbar=no,scrollbars=yes,width=980,height=650"),t.preventDefault()},window.footer=function(){t("p:contains('@helion')").each((function(){if(-1==t(this).html().indexOf("href"));}))},window.bookVideo=function(i,s){var n=new jPlayerPlaylist({jPlayer:"#jquery_jplayer_TOP",cssSelectorAncestor:"#jp_container_TOP"},[{title:"Zwiastun",artist:i,m4v:"https://dwl01.helion.pl/trailers/trailer/"+s+"/video",poster:"https://dwl01.helion.pl/trailers/trailer/"+s+"/cover"}],{playlistOptions:{enableRemoveControls:!0},swfPath:"/jplayer/dist/jplayer",supplied:"webmv, ogv, m4v, oga, mp3",size:{width:"100%",height:"90%"},useStateClassSkin:!0,autoBlur:!1,smoothPlayBar:!0,keyEnabled:!0,audioFullScreen:!0,ended:function(){e(".play").show(),e(".header").css("z-index",40),e(".movie-description").show(),e("#main-video").css("opacity",.9),e(".movie-kurtyna").css("opacity",.2),e("#jp_container_TOP").hide()},click:function(){t.jPlayer.event.play&&(e(".play").show(),e(".header").css("z-index",40),e(".movie-description").show(),e("#main-video").css("opacity",.9),e(".movie-kurtyna").css("opacity",.2),e("#jp_container_TOP").hide(),t.jPlayer.pause())}});n.select(0),e("#play").click((function(){e(".play").hide(),e(".header").css("z-index",0),e(".movie-description").hide(),e("#main-video").css("opacity",1),e(".movie-kurtyna").css("opacity",1),e("#jp_container_TOP").css("z-index",98),e("#jp_container_TOP").show(),n.play(0)})),e("#jp_container_TOP .jp-stop").click((function(){e(".play").show(),e(".header").css("z-index",40),e(".movie-description").show(),e("#main-video").css("opacity",.9),e(".movie-kurtyna").css("opacity",.2),e("#jp_container_TOP").hide(),n.stop()}))},window.blik=s.a,window.Fingerprint2=o,window.change=n,document.addEventListener("DOMContentLoaded",(function(e){h=setTimeout((function(){t(".link-menu a").on("click",(function(e){if(t(".main-menu-container").hasClass("showed"))t(".main-menu-container").removeClass("showed"),t(".main-menu-container").animate({left:-480},(function(){t(document).hide()}));else{t(".main-menu-container").addClass("showed");t(".main-menu-container").css({height:1100}),t(".main-menu-container").show(),t(".main-menu-container").animate({left:-200}),e.stopPropagation()}e.preventDefault()})),t(document).click((function(){t(".main-menu-container").hasClass("showed")&&(t(".main-menu-container").removeClass("showed"),t(".main-menu-container").animate({left:-600},(function(){t(this).hide()})))}))}),1e3),t(".jp-audio").audioPlayer(),r.update_checkboxes(),document.addEventListener("change",(function(t){if(t.target.matches(".sets-border .set-generated input")){r.update_checkboxes();var e=t.target.dataset.format;r.change_set_data(t.target,e)}}))})),t(".page-tools .link-search a").click((function(e){t(".page-tools form").addClass("active"),t("#inputSearch")[0].focus(),e.preventDefault()})),t(".page-tools .link-closesearch a").click((function(e){t(".page-tools form").removeClass("active"),e.preventDefault()})),window.innerWidth<1160&&t(".your-profile p a").click((function(e){t(".user-tools").toggleClass("active"),e.preventDefault()})),t(".user-tools").click((function(t){t.stopPropagation()})),t(document).click((function(){t(".user-tools").removeClass("active")}));var h=null;1==(t(".isTester").html()?t(".isTester").html():0)&&t(".cart").attr("id","modalBtn");t(".subpage-toolbar-right #modalBtn").hover((function(){!0;var e=t(".isTester").html()?t(".isTester").html():0,i=document.getElementById("modalCart");if(window.innerWidth>1100){var s=(t("header").width()-t("header #headerContainer").width())/2-41;i.style.width=s+"px"}else 1==e&&(document.getElementById("szukanie").style.display="none");1==e&&troyas.length>0&&-1==window.location.href.indexOf("/zakupy/")&&(i.style.display="block")}),(function(){var t=document.getElementById("modalCart");h=setTimeout((function(){t.style.display="none"}),5e3)})),t("#modalCart").hover((function(){h&&clearTimeout(h);for(var t=setTimeout(";"),e=0;e1400?i.style.top="45px":i.style.top="0px"}),800)})),"undefined"!=typeof zestd&&zestd.oblCene(),"undefined"!=typeof zeste&&zeste.oblCene(),"undefined"!=typeof zestw&&zestw.oblCene(),"undefined"!=typeof zest3&&zest3.oblCene(),t("#bookRotate").click((function(e){t("#mainBookCover").toggle("100"),t("#mainBookCoverTwo").toggle("100"),e.preventDefault()})),e(".zawartosccd,.wysylka24,#beta a").fancybox({autoScale:!0,type:"iframe"}),e(".uwagiDoKursu").click((function(t){t.preventDefault(),e(".layerPowiadom").css("display","block"),e(".popupLayerUwagiDK").css("display","block")})),e(".drukOnDemand").click((function(i){i.preventDefault();var s=e(this).attr("data-top_margin"),n=e(this).attr("data-bottom_margin");s=parseInt(s),n=parseInt(n),0==s?(e(".popupLayerOnDemand").css("top","50px"),e(".popupLayerOnDemand").css("bottom",n)):e(".popupLayerOnDemand").css("top",s),t(window).scrollTop(0),e(".layerPowiadom").css("display","block"),e(".popupLayerOnDemand").css("display","block")})),document.addEventListener("touchstart",(function(t){var e=function(t){return t.touches||t.originalEvent.touches}(t)[0];c=e.clientX,u=e.clientY}),!1),document.addEventListener("touchmove",(function(e){if(!c||!u)return;var i=e.touches[0].clientX,s=e.touches[0].clientY,n=window.innerWidth,o=e.touches[0].target.closest(".showed"),a=c-i,r=u-s;Math.abs(a)>Math.abs(r)&&a>0&&o&&o.classList.contains("showed")&&n<700&&(t(".main-menu-container").removeClass("showed"),t(".main-menu-container").animate({left:-600},(function(){t(document).hide()})));c=null,u=null}),!1);var c=null,u=null}.call(this,i("EVdn"),i("EVdn"))},"5DmW":function(t,e,i){var s=i("I+eb"),n=i("0Dky"),o=i("/GqU"),a=i("Bs8V").f,r=i("g6v/"),l=n((function(){a(1)}));s({target:"Object",stat:!0,forced:!r||l,sham:!r},{getOwnPropertyDescriptor:function(t,e){return a(o(t),e)}})},"5Tg+":function(t,e,i){var s=i("tiKp");e.f=s},"5Yz+":function(t,e,i){"use strict";var s=i("/GqU"),n=i("ppGB"),o=i("UMSQ"),a=i("pkCn"),r=i("rkAj"),l=Math.min,h=[].lastIndexOf,c=!!h&&1/[1].lastIndexOf(1,-0)<0,u=a("lastIndexOf"),d=r("indexOf",{ACCESSORS:!0,1:0}),p=c||!u||!d;t.exports=p?function(t){if(c)return h.apply(this,arguments)||0;var e=s(this),i=o(e.length),a=i-1;for(arguments.length>1&&(a=l(a,n(arguments[1]))),a<0&&(a=i+a);a>=0;a--)if(a in e&&e[a]===t)return a||0;return-1}:h},"67WC":function(t,e,i){"use strict";var s,n=i("qYE9"),o=i("g6v/"),a=i("2oRo"),r=i("hh1v"),l=i("UTVS"),h=i("9d/t"),c=i("kRJp"),u=i("busE"),d=i("m/L8").f,p=i("4WOD"),f=i("0rvr"),m=i("tiKp"),g=i("kOOl"),v=a.Int8Array,y=v&&v.prototype,b=a.Uint8ClampedArray,_=b&&b.prototype,w=v&&p(v),k=y&&p(y),x=Object.prototype,C=x.isPrototypeOf,S=m("toStringTag"),P=g("TYPED_ARRAY_TAG"),T=n&&!!f&&"Opera"!==h(a.opera),E=!1,A={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},D=function(t){return r(t)&&l(A,h(t))};for(s in A)a[s]||(T=!1);if((!T||"function"!=typeof w||w===Function.prototype)&&(w=function(){throw TypeError("Incorrect invocation")},T))for(s in A)a[s]&&f(a[s],w);if((!T||!k||k===x)&&(k=w.prototype,T))for(s in A)a[s]&&f(a[s].prototype,k);if(T&&p(_)!==k&&f(_,k),o&&!l(k,S))for(s in E=!0,d(k,S,{get:function(){return r(this)?this[P]:void 0}}),A)a[s]&&c(a[s],P,s);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:T,TYPED_ARRAY_TAG:E&&P,aTypedArray:function(t){if(D(t))return t;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(t){if(f){if(C.call(w,t))return t}else for(var e in A)if(l(A,s)){var i=a[e];if(i&&(t===i||C.call(i,t)))return t}throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(t,e,i){if(o){if(i)for(var s in A){var n=a[s];n&&l(n.prototype,t)&&delete n.prototype[t]}k[t]&&!i||u(k,t,i?e:T&&y[t]||e)}},exportTypedArrayStaticMethod:function(t,e,i){var s,n;if(o){if(f){if(i)for(s in A)(n=a[s])&&l(n,t)&&delete n[t];if(w[t]&&!i)return;try{return u(w,t,i?e:T&&v[t]||e)}catch(t){}}for(s in A)!(n=a[s])||n[t]&&!i||u(n,t,e)}},isView:function(t){var e=h(t);return"DataView"===e||l(A,e)},isTypedArray:D,TypedArray:w,TypedArrayPrototype:k}},"6Qg/":function(t,e,i){i("pNMO"),i("4Brf"),i("ma9I"),i("yyme"),i("QWBl"),i("yXV3"),i("4mDm"),i("oVuX"),i("2B1R"),i("+2oP"),i("sMBO"),i("5DmW"),i("07d7"),i("rB9j"),i("JfAA"),i("Rm1S"),i("z8NH"),i("moxL"),i("qXVe"),i("c162"),i("waxf"),i("0TkE"),i("Onu3"),i("1dYe"),i("gvgV"),i("6R/c"),i("YL0P"),i("X5Zq"),i("MoCz"),i("P8wP"),i("ypFw"),i("JaFt"),i("zSZm"),i("PF2M"),i("KVSy"),i("ZJ55"),i("IZzc"),i("Fwt+"),i("s5qe"),i("cvf0"),i("FZtP"),function(e,i,s){"use strict";"function"==typeof window.define&&window.define.amd?window.define(s):t.exports?t.exports=s():i.exports?i.exports=s():i.Fingerprint2=s()}(0,this,(function(){"use strict";var t=function t(e){if(!(this instanceof t))return new t(e);this.options=this.extend(e,{swfContainerId:"fingerprintjs2",swfPath:"flash/compiled/FontList.swf",detectScreenOrientation:!0,sortPluginsFor:[/palemoon/i],userDefinedFonts:[]}),this.nativeForEach=Array.prototype.forEach,this.nativeMap=Array.prototype.map};return t.prototype={extend:function(t,e){if(null==t)return e;for(var i in t)null!=t[i]&&e[i]!==t[i]&&(e[i]=t[i]);return e},get:function(t){var e=this,i={data:[],addPreprocessedComponent:function(t){var i=t.value;"function"==typeof e.options.preprocessor&&(i=e.options.preprocessor(t.key,i)),this.data.push({key:t.key,value:i})}};i=this.userAgentKey(i),i=this.languageKey(i),i=this.colorDepthKey(i),i=this.pixelRatioKey(i),i=this.hardwareConcurrencyKey(i),i=this.screenResolutionKey(i),i=this.availableScreenResolutionKey(i),i=this.timezoneOffsetKey(i),i=this.sessionStorageKey(i),i=this.localStorageKey(i),i=this.indexedDbKey(i),i=this.addBehaviorKey(i),i=this.openDatabaseKey(i),i=this.cpuClassKey(i),i=this.platformKey(i),i=this.doNotTrackKey(i),i=this.pluginsKey(i),i=this.canvasKey(i),i=this.webglKey(i),i=this.webglVendorAndRendererKey(i),i=this.adBlockKey(i),i=this.hasLiedLanguagesKey(i),i=this.hasLiedResolutionKey(i),i=this.hasLiedOsKey(i),i=this.hasLiedBrowserKey(i),i=this.touchSupportKey(i),i=this.customEntropyFunction(i),this.fontsKey(i,(function(i){var s=[];e.each(i.data,(function(t){var e=t.value;void 0!==t.value.join&&(e=t.value.join(";")),s.push(e)}));var n=e.x64hash128(s.join("~~~"),31);return t(n,i.data)}))},customEntropyFunction:function(t){return"function"==typeof this.options.customFunction&&t.addPreprocessedComponent({key:"custom",value:this.options.customFunction()}),t},userAgentKey:function(t){return this.options.excludeUserAgent||t.addPreprocessedComponent({key:"user_agent",value:this.getUserAgent()}),t},getUserAgent:function(){return navigator.userAgent},languageKey:function(t){return this.options.excludeLanguage||t.addPreprocessedComponent({key:"language",value:navigator.language||navigator.userLanguage||navigator.browserLanguage||navigator.systemLanguage||""}),t},colorDepthKey:function(t){return this.options.excludeColorDepth||t.addPreprocessedComponent({key:"color_depth",value:window.screen.colorDepth||-1}),t},pixelRatioKey:function(t){return this.options.excludePixelRatio||t.addPreprocessedComponent({key:"pixel_ratio",value:this.getPixelRatio()}),t},getPixelRatio:function(){return window.devicePixelRatio||""},screenResolutionKey:function(t){return this.options.excludeScreenResolution?t:this.getScreenResolution(t)},getScreenResolution:function(t){var e;return void 0!==(e=this.options.detectScreenOrientation&&window.screen.height>window.screen.width?[window.screen.height,window.screen.width]:[window.screen.width,window.screen.height])&&t.addPreprocessedComponent({key:"resolution",value:e}),t},availableScreenResolutionKey:function(t){return this.options.excludeAvailableScreenResolution?t:this.getAvailableScreenResolution(t)},getAvailableScreenResolution:function(t){var e;return window.screen.availWidth&&window.screen.availHeight&&(e=this.options.detectScreenOrientation?window.screen.availHeight>window.screen.availWidth?[window.screen.availHeight,window.screen.availWidth]:[window.screen.availWidth,window.screen.availHeight]:[window.screen.availHeight,window.screen.availWidth]),void 0!==e&&t.addPreprocessedComponent({key:"available_resolution",value:e}),t},timezoneOffsetKey:function(t){return this.options.excludeTimezoneOffset||t.addPreprocessedComponent({key:"timezone_offset",value:(new Date).getTimezoneOffset()}),t},sessionStorageKey:function(t){return!this.options.excludeSessionStorage&&this.hasSessionStorage()&&t.addPreprocessedComponent({key:"session_storage",value:1}),t},localStorageKey:function(t){return!this.options.excludeSessionStorage&&this.hasLocalStorage()&&t.addPreprocessedComponent({key:"local_storage",value:1}),t},indexedDbKey:function(t){return!this.options.excludeIndexedDB&&this.hasIndexedDB()&&t.addPreprocessedComponent({key:"indexed_db",value:1}),t},addBehaviorKey:function(t){return document.body&&!this.options.excludeAddBehavior&&document.body.addBehavior&&t.addPreprocessedComponent({key:"add_behavior",value:1}),t},openDatabaseKey:function(t){return!this.options.excludeOpenDatabase&&window.openDatabase&&t.addPreprocessedComponent({key:"open_database",value:1}),t},cpuClassKey:function(t){return this.options.excludeCpuClass||t.addPreprocessedComponent({key:"cpu_class",value:this.getNavigatorCpuClass()}),t},platformKey:function(t){return this.options.excludePlatform||t.addPreprocessedComponent({key:"navigator_platform",value:this.getNavigatorPlatform()}),t},doNotTrackKey:function(t){return this.options.excludeDoNotTrack||t.addPreprocessedComponent({key:"do_not_track",value:this.getDoNotTrack()}),t},canvasKey:function(t){return!this.options.excludeCanvas&&this.isCanvasSupported()&&t.addPreprocessedComponent({key:"canvas",value:this.getCanvasFp()}),t},webglKey:function(t){return!this.options.excludeWebGL&&this.isWebGlSupported()&&t.addPreprocessedComponent({key:"webgl",value:this.getWebglFp()}),t},webglVendorAndRendererKey:function(t){return!this.options.excludeWebGLVendorAndRenderer&&this.isWebGlSupported()&&t.addPreprocessedComponent({key:"webgl_vendor",value:this.getWebglVendorAndRenderer()}),t},adBlockKey:function(t){return this.options.excludeAdBlock||t.addPreprocessedComponent({key:"adblock",value:this.getAdBlock()}),t},hasLiedLanguagesKey:function(t){return this.options.excludeHasLiedLanguages||t.addPreprocessedComponent({key:"has_lied_languages",value:this.getHasLiedLanguages()}),t},hasLiedResolutionKey:function(t){return this.options.excludeHasLiedResolution||t.addPreprocessedComponent({key:"has_lied_resolution",value:this.getHasLiedResolution()}),t},hasLiedOsKey:function(t){return this.options.excludeHasLiedOs||t.addPreprocessedComponent({key:"has_lied_os",value:this.getHasLiedOs()}),t},hasLiedBrowserKey:function(t){return this.options.excludeHasLiedBrowser||t.addPreprocessedComponent({key:"has_lied_browser",value:this.getHasLiedBrowser()}),t},fontsKey:function(t,e){return this.options.excludeJsFonts?this.flashFontsKey(t,e):this.jsFontsKey(t,e)},flashFontsKey:function(t,e){return this.options.excludeFlashFonts?e(t):this.hasSwfObjectLoaded()&&this.hasMinFlashInstalled()?void 0===this.options.swfPath?e(t):void this.loadSwfAndDetectFonts((function(i){t.addPreprocessedComponent({key:"swf_fonts",value:i.join(";")}),e(t)})):e(t)},jsFontsKey:function(t,e){var i=this;return setTimeout((function(){var s=["monospace","sans-serif","serif"],n=["Andale Mono","Arial","Arial Black","Arial Hebrew","Arial MT","Arial Narrow","Arial Rounded MT Bold","Arial Unicode MS","Bitstream Vera Sans Mono","Book Antiqua","Bookman Old Style","Calibri","Cambria","Cambria Math","Century","Century Gothic","Century Schoolbook","Comic Sans","Comic Sans MS","Consolas","Courier","Courier New","Garamond","Geneva","Georgia","Helvetica","Helvetica Neue","Impact","Lucida Bright","Lucida Calligraphy","Lucida Console","Lucida Fax","LUCIDA GRANDE","Lucida Handwriting","Lucida Sans","Lucida Sans Typewriter","Lucida Sans Unicode","Microsoft Sans Serif","Monaco","Monotype Corsiva","MS Gothic","MS Outlook","MS PGothic","MS Reference Sans Serif","MS Sans Serif","MS Serif","MYRIAD","MYRIAD PRO","Palatino","Palatino Linotype","Segoe Print","Segoe Script","Segoe UI","Segoe UI Light","Segoe UI Semibold","Segoe UI Symbol","Tahoma","Times","Times New Roman","Times New Roman PS","Trebuchet MS","Verdana","Wingdings","Wingdings 2","Wingdings 3"];i.options.extendedJsFonts&&(n=n.concat(["Abadi MT Condensed Light","Academy Engraved LET","ADOBE CASLON PRO","Adobe Garamond","ADOBE GARAMOND PRO","Agency FB","Aharoni","Albertus Extra Bold","Albertus Medium","Algerian","Amazone BT","American Typewriter","American Typewriter Condensed","AmerType Md BT","Andalus","Angsana New","AngsanaUPC","Antique Olive","Aparajita","Apple Chancery","Apple Color Emoji","Apple SD Gothic Neo","Arabic Typesetting","ARCHER","ARNO PRO","Arrus BT","Aurora Cn BT","AvantGarde Bk BT","AvantGarde Md BT","AVENIR","Ayuthaya","Bandy","Bangla Sangam MN","Bank Gothic","BankGothic Md BT","Baskerville","Baskerville Old Face","Batang","BatangChe","Bauer Bodoni","Bauhaus 93","Bazooka","Bell MT","Bembo","Benguiat Bk BT","Berlin Sans FB","Berlin Sans FB Demi","Bernard MT Condensed","BernhardFashion BT","BernhardMod BT","Big Caslon","BinnerD","Blackadder ITC","BlairMdITC TT","Bodoni 72","Bodoni 72 Oldstyle","Bodoni 72 Smallcaps","Bodoni MT","Bodoni MT Black","Bodoni MT Condensed","Bodoni MT Poster Compressed","Bookshelf Symbol 7","Boulder","Bradley Hand","Bradley Hand ITC","Bremen Bd BT","Britannic Bold","Broadway","Browallia New","BrowalliaUPC","Brush Script MT","Californian FB","Calisto MT","Calligrapher","Candara","CaslonOpnface BT","Castellar","Centaur","Cezanne","CG Omega","CG Times","Chalkboard","Chalkboard SE","Chalkduster","Charlesworth","Charter Bd BT","Charter BT","Chaucer","ChelthmITC Bk BT","Chiller","Clarendon","Clarendon Condensed","CloisterBlack BT","Cochin","Colonna MT","Constantia","Cooper Black","Copperplate","Copperplate Gothic","Copperplate Gothic Bold","Copperplate Gothic Light","CopperplGoth Bd BT","Corbel","Cordia New","CordiaUPC","Cornerstone","Coronet","Cuckoo","Curlz MT","DaunPenh","Dauphin","David","DB LCD Temp","DELICIOUS","Denmark","DFKai-SB","Didot","DilleniaUPC","DIN","DokChampa","Dotum","DotumChe","Ebrima","Edwardian Script ITC","Elephant","English 111 Vivace BT","Engravers MT","EngraversGothic BT","Eras Bold ITC","Eras Demi ITC","Eras Light ITC","Eras Medium ITC","EucrosiaUPC","Euphemia","Euphemia UCAS","EUROSTILE","Exotc350 Bd BT","FangSong","Felix Titling","Fixedsys","FONTIN","Footlight MT Light","Forte","FrankRuehl","Fransiscan","Freefrm721 Blk BT","FreesiaUPC","Freestyle Script","French Script MT","FrnkGothITC Bk BT","Fruitger","FRUTIGER","Futura","Futura Bk BT","Futura Lt BT","Futura Md BT","Futura ZBlk BT","FuturaBlack BT","Gabriola","Galliard BT","Gautami","Geeza Pro","Geometr231 BT","Geometr231 Hv BT","Geometr231 Lt BT","GeoSlab 703 Lt BT","GeoSlab 703 XBd BT","Gigi","Gill Sans","Gill Sans MT","Gill Sans MT Condensed","Gill Sans MT Ext Condensed Bold","Gill Sans Ultra Bold","Gill Sans Ultra Bold Condensed","Gisha","Gloucester MT Extra Condensed","GOTHAM","GOTHAM BOLD","Goudy Old Style","Goudy Stout","GoudyHandtooled BT","GoudyOLSt BT","Gujarati Sangam MN","Gulim","GulimChe","Gungsuh","GungsuhChe","Gurmukhi MN","Haettenschweiler","Harlow Solid Italic","Harrington","Heather","Heiti SC","Heiti TC","HELV","Herald","High Tower Text","Hiragino Kaku Gothic ProN","Hiragino Mincho ProN","Hoefler Text","Humanst 521 Cn BT","Humanst521 BT","Humanst521 Lt BT","Imprint MT Shadow","Incised901 Bd BT","Incised901 BT","Incised901 Lt BT","INCONSOLATA","Informal Roman","Informal011 BT","INTERSTATE","IrisUPC","Iskoola Pota","JasmineUPC","Jazz LET","Jenson","Jester","Jokerman","Juice ITC","Kabel Bk BT","Kabel Ult BT","Kailasa","KaiTi","Kalinga","Kannada Sangam MN","Kartika","Kaufmann Bd BT","Kaufmann BT","Khmer UI","KodchiangUPC","Kokila","Korinna BT","Kristen ITC","Krungthep","Kunstler Script","Lao UI","Latha","Leelawadee","Letter Gothic","Levenim MT","LilyUPC","Lithograph","Lithograph Light","Long Island","Lydian BT","Magneto","Maiandra GD","Malayalam Sangam MN","Malgun Gothic","Mangal","Marigold","Marion","Marker Felt","Market","Marlett","Matisse ITC","Matura MT Script Capitals","Meiryo","Meiryo UI","Microsoft Himalaya","Microsoft JhengHei","Microsoft New Tai Lue","Microsoft PhagsPa","Microsoft Tai Le","Microsoft Uighur","Microsoft YaHei","Microsoft Yi Baiti","MingLiU","MingLiU_HKSCS","MingLiU_HKSCS-ExtB","MingLiU-ExtB","Minion","Minion Pro","Miriam","Miriam Fixed","Mistral","Modern","Modern No. 20","Mona Lisa Solid ITC TT","Mongolian Baiti","MONO","MoolBoran","Mrs Eaves","MS LineDraw","MS Mincho","MS PMincho","MS Reference Specialty","MS UI Gothic","MT Extra","MUSEO","MV Boli","Nadeem","Narkisim","NEVIS","News Gothic","News GothicMT","NewsGoth BT","Niagara Engraved","Niagara Solid","Noteworthy","NSimSun","Nyala","OCR A Extended","Old Century","Old English Text MT","Onyx","Onyx BT","OPTIMA","Oriya Sangam MN","OSAKA","OzHandicraft BT","Palace Script MT","Papyrus","Parchment","Party LET","Pegasus","Perpetua","Perpetua Titling MT","PetitaBold","Pickwick","Plantagenet Cherokee","Playbill","PMingLiU","PMingLiU-ExtB","Poor Richard","Poster","PosterBodoni BT","PRINCETOWN LET","Pristina","PTBarnum BT","Pythagoras","Raavi","Rage Italic","Ravie","Ribbon131 Bd BT","Rockwell","Rockwell Condensed","Rockwell Extra Bold","Rod","Roman","Sakkal Majalla","Santa Fe LET","Savoye LET","Sceptre","Script","Script MT Bold","SCRIPTINA","Serifa","Serifa BT","Serifa Th BT","ShelleyVolante BT","Sherwood","Shonar Bangla","Showcard Gothic","Shruti","Signboard","SILKSCREEN","SimHei","Simplified Arabic","Simplified Arabic Fixed","SimSun","SimSun-ExtB","Sinhala Sangam MN","Sketch Rockwell","Skia","Small Fonts","Snap ITC","Snell Roundhand","Socket","Souvenir Lt BT","Staccato222 BT","Steamer","Stencil","Storybook","Styllo","Subway","Swis721 BlkEx BT","Swiss911 XCm BT","Sylfaen","Synchro LET","System","Tamil Sangam MN","Technical","Teletype","Telugu Sangam MN","Tempus Sans ITC","Terminal","Thonburi","Traditional Arabic","Trajan","TRAJAN PRO","Tristan","Tubular","Tunga","Tw Cen MT","Tw Cen MT Condensed","Tw Cen MT Condensed Extra Bold","TypoUpright BT","Unicorn","Univers","Univers CE 55 Medium","Univers Condensed","Utsaah","Vagabond","Vani","Vijaya","Viner Hand ITC","VisualUI","Vivaldi","Vladimir Script","Vrinda","Westminster","WHITNEY","Wide Latin","ZapfEllipt BT","ZapfHumnst BT","ZapfHumnst Dm BT","Zapfino","Zurich BlkEx BT","Zurich Ex BT","ZWAdobeF"])),n=n.concat(i.options.userDefinedFonts);var o=document.getElementsByTagName("body")[0],a=document.createElement("div"),r=document.createElement("div"),l={},h={},c=function(){var t=document.createElement("span");return t.style.position="absolute",t.style.left="-9999px",t.style.fontSize="72px",t.style.lineHeight="normal",t.innerHTML="mmmmmmmmmmlli",t},u=function(t,e){var i=c();return i.style.fontFamily="'"+t+"',"+e,i},d=function(t){for(var e=!1,i=0;ie.name?1:t.name=0?"Windows Phone":e.indexOf("win")>=0?"Windows":e.indexOf("android")>=0?"Android":e.indexOf("linux")>=0?"Linux":e.indexOf("iphone")>=0||e.indexOf("ipad")>=0?"iOS":e.indexOf("mac")>=0?"Mac":"Other",("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0)&&"Windows Phone"!==t&&"Android"!==t&&"iOS"!==t&&"Other"!==t)return!0;if(void 0!==i){if((i=i.toLowerCase()).indexOf("win")>=0&&"Windows"!==t&&"Windows Phone"!==t)return!0;if(i.indexOf("linux")>=0&&"Linux"!==t&&"Android"!==t)return!0;if(i.indexOf("mac")>=0&&"Mac"!==t&&"iOS"!==t)return!0;if((-1===i.indexOf("win")&&-1===i.indexOf("linux")&&-1===i.indexOf("mac"))!=("Other"===t))return!0}return s.indexOf("win")>=0&&"Windows"!==t&&"Windows Phone"!==t||((s.indexOf("linux")>=0||s.indexOf("android")>=0||s.indexOf("pike")>=0)&&"Linux"!==t&&"Android"!==t||((s.indexOf("mac")>=0||s.indexOf("ipad")>=0||s.indexOf("ipod")>=0||s.indexOf("iphone")>=0)&&"Mac"!==t&&"iOS"!==t||((-1===s.indexOf("win")&&-1===s.indexOf("linux")&&-1===s.indexOf("mac"))!=("Other"===t)||void 0===navigator.plugins&&"Windows"!==t&&"Windows Phone"!==t)))},getHasLiedBrowser:function(){var t,e=navigator.userAgent.toLowerCase(),i=navigator.productSub;if(("Chrome"===(t=e.indexOf("firefox")>=0?"Firefox":e.indexOf("opera")>=0||e.indexOf("opr")>=0?"Opera":e.indexOf("chrome")>=0?"Chrome":e.indexOf("safari")>=0?"Safari":e.indexOf("trident")>=0?"Internet Explorer":"Other")||"Safari"===t||"Opera"===t)&&"20030107"!==i)return!0;var s,n=eval.toString().length;if(37===n&&"Safari"!==t&&"Firefox"!==t&&"Other"!==t)return!0;if(39===n&&"Internet Explorer"!==t&&"Other"!==t)return!0;if(33===n&&"Chrome"!==t&&"Opera"!==t&&"Other"!==t)return!0;try{throw"a"}catch(t){try{t.toSource(),s=!0}catch(t){s=!1}}return!(!s||"Firefox"===t||"Other"===t)},isCanvasSupported:function(){var t=document.createElement("canvas");return!(!t.getContext||!t.getContext("2d"))},isWebGlSupported:function(){if(!this.isCanvasSupported())return!1;var t=this.getWebglCanvas();return!!window.WebGLRenderingContext&&!!t},isIE:function(){return"Microsoft Internet Explorer"===navigator.appName||!("Netscape"!==navigator.appName||!/Trident/.test(navigator.userAgent))},hasSwfObjectLoaded:function(){return void 0!==window.swfobject},hasMinFlashInstalled:function(){return window.swfobject.hasFlashPlayerVersion("9.0.0")},addFlashDivNode:function(){var t=document.createElement("div");t.setAttribute("id",this.options.swfContainerId),document.body.appendChild(t)},loadSwfAndDetectFonts:function(t){window.___fp_swf_loaded=function(e){t(e)};var e=this.options.swfContainerId;this.addFlashDivNode();var i={onReady:"___fp_swf_loaded"};window.swfobject.embedSWF(this.options.swfPath,e,"1","1","9.0.0",!1,i,{allowScriptAccess:"always",menu:"false"},{})},getWebglCanvas:function(){var t=document.createElement("canvas"),e=null;try{e=t.getContext("webgl")||t.getContext("experimental-webgl")}catch(t){}return e||(e=null),e},each:function(t,e,i){if(null!==t)if(this.nativeForEach&&t.forEach===this.nativeForEach)t.forEach(e,i);else if(t.length===+t.length){for(var s=0,n=t.length;s>>16,65535&t[0],t[1]>>>16,65535&t[1]],e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]];var i=[0,0,0,0];return i[3]+=t[3]+e[3],i[2]+=i[3]>>>16,i[3]&=65535,i[2]+=t[2]+e[2],i[1]+=i[2]>>>16,i[2]&=65535,i[1]+=t[1]+e[1],i[0]+=i[1]>>>16,i[1]&=65535,i[0]+=t[0]+e[0],i[0]&=65535,[i[0]<<16|i[1],i[2]<<16|i[3]]},x64Multiply:function(t,e){t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]],e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]];var i=[0,0,0,0];return i[3]+=t[3]*e[3],i[2]+=i[3]>>>16,i[3]&=65535,i[2]+=t[2]*e[3],i[1]+=i[2]>>>16,i[2]&=65535,i[2]+=t[3]*e[2],i[1]+=i[2]>>>16,i[2]&=65535,i[1]+=t[1]*e[3],i[0]+=i[1]>>>16,i[1]&=65535,i[1]+=t[2]*e[2],i[0]+=i[1]>>>16,i[1]&=65535,i[1]+=t[3]*e[1],i[0]+=i[1]>>>16,i[1]&=65535,i[0]+=t[0]*e[3]+t[1]*e[2]+t[2]*e[1]+t[3]*e[0],i[0]&=65535,[i[0]<<16|i[1],i[2]<<16|i[3]]},x64Rotl:function(t,e){return 32===(e%=64)?[t[1],t[0]]:e<32?[t[0]<>>32-e,t[1]<>>32-e]:(e-=32,[t[1]<>>32-e,t[0]<>>32-e])},x64LeftShift:function(t,e){return 0===(e%=64)?t:e<32?[t[0]<>>32-e,t[1]<>>1]),t=this.x64Multiply(t,[4283543511,3981806797]),t=this.x64Xor(t,[0,t[0]>>>1]),t=this.x64Multiply(t,[3301882366,444984403]),t=this.x64Xor(t,[0,t[0]>>>1])},x64hash128:function(t,e){e=e||0;for(var i=(t=t||"").length%16,s=t.length-i,n=[0,e],o=[0,e],a=[0,0],r=[0,0],l=[2277735313,289559509],h=[1291169091,658871167],c=0;c>>0).toString(16)).slice(-8)+("00000000"+(n[1]>>>0).toString(16)).slice(-8)+("00000000"+(o[0]>>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)}},t.VERSION="1.5.1",t}))},"6R/c":function(t,e,i){"use strict";var s=i("67WC"),n=i("TWQb").indexOf,o=s.aTypedArray;(0,s.exportTypedArrayMethod)("indexOf",(function(t){return n(o(this),t,arguments.length>1?arguments[1]:void 0)}))},"6VoE":function(t,e,i){var s=i("tiKp"),n=i("P4y1"),o=s("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||a[o]===t)}},"86pE":function(t,e,i){(function(t){ /*! fancyBox v2.1.5 fancyapps.com | fancyapps.com/fancybox/#license */ var e,s,n,o,a,r,l,h,c,u,d,p,f,m,g,v;i("TeQF"),i("fbCW"),i("yXV3"),i("4mDm"),i("+2oP"),i("07d7"),i("rB9j"),i("Rm1S"),i("UxlC"),i("EnZy"),i("SYor"),i("x83w"),i("3bBZ"),e=window,s=document,a=(n=t)("html"),r=n(e),l=n(s),h=n.fancybox=function(){h.open.apply(this,arguments)},c=navigator.userAgent.match(/msie/i),u=null,d=s.createTouch!==o,p=function(t){return t&&t.hasOwnProperty&&t instanceof n},f=function(t){return t&&"string"===n.type(t)},m=function(t){return f(t)&&0
',image:'',iframe:'",error:'

The requested content cannot be loaded.
Please try again later.

',closeBtn:'',next:'',prev:''},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0},onCancel:n.noop,beforeLoad:n.noop,afterLoad:n.noop,beforeShow:n.noop,afterShow:n.noop,beforeChange:n.noop,beforeClose:n.noop,afterClose:n.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,isOpen:!1,isOpened:!1,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(t,e){if(t&&(n.isPlainObject(e)||(e={}),!1!==h.close(!0)))return n.isArray(t)||(t=p(t)?n(t).get():[t]),n.each(t,(function(i,s){var a,r,l,c,u,d={};"object"===n.type(s)&&(s.nodeType&&(s=n(s)),p(s)?(d={href:s.data("fancybox-href")||s.attr("href"),title:n("
").text(s.data("fancybox-title")||s.attr("title")).html(),isDom:!0,element:s},n.metadata&&n.extend(!0,d,s.metadata())):d=s),a=e.href||d.href||(f(s)?s:null),r=e.title!==o?e.title:d.title||"",!(c=(l=e.content||d.content)?"html":e.type||d.type)&&d.isDom&&((c=s.data("fancybox-type"))||(c=(c=s.prop("class").match(/fancybox\.(\w+)/))?c[1]:null)),f(a)&&(c||(h.isImage(a)?c="image":h.isSWF(a)?c="swf":"#"===a.charAt(0)?c="inline":f(s)&&(c="html",l=s)),"ajax"===c&&(u=a.split(/\s+/,2),a=u.shift(),u=u.shift())),l||("inline"===c?a?l=n(f(a)?a.replace(/.*(?=#[^\s]+$)/,""):a):d.isDom&&(l=s):"html"===c?l=a:c||a||!d.isDom||(c="inline",l=s)),n.extend(d,{href:a,type:c,content:l,title:r,selector:u}),t[i]=d})),h.opts=n.extend(!0,{},h.defaults,e),e.keys!==o&&(h.opts.keys=!!e.keys&&n.extend({},h.defaults.keys,e.keys)),h.group=t,h._start(h.opts.index)},cancel:function(){var t=h.coming;t&&!1===h.trigger("onCancel")||(h.hideLoading(),t&&(h.ajaxLoad&&h.ajaxLoad.abort(),h.ajaxLoad=null,h.imgPreload&&(h.imgPreload.onload=h.imgPreload.onerror=null),t.wrap&&t.wrap.stop(!0,!0).trigger("onReset").remove(),h.coming=null,h.current||h._afterZoomOut(t)))},close:function(t){h.cancel(),!1!==h.trigger("beforeClose")&&(h.unbindEvents(),h.isActive&&(h.isOpen&&!0!==t?(h.isOpen=h.isOpened=!1,h.isClosing=!0,n(".fancybox-item, .fancybox-nav").remove(),h.wrap.stop(!0,!0).removeClass("fancybox-opened"),h.transitions[h.current.closeMethod]()):(n(".fancybox-wrap").stop(!0).trigger("onReset").remove(),h._afterZoomOut())))},play:function(t){var e=function(){clearTimeout(h.player.timer)},i=function(){e(),h.current&&h.player.isActive&&(h.player.timer=setTimeout(h.next,h.current.playSpeed))},s=function(){e(),l.unbind(".player"),h.player.isActive=!1,h.trigger("onPlayEnd")};!0===t||!h.player.isActive&&!1!==t?h.current&&(h.current.loop||h.current.index=s.index?"next":"prev"],h.router=i||"jumpto",s.loop&&(0>t&&(t=s.group.length+t%s.group.length),t%=s.group.length),s.group[t]!==o&&(h.cancel(),h._start(t)))},reposition:function(t,e){var i,s=h.current,o=s?s.wrap:null;o&&(i=h._getPosition(e),t&&"scroll"===t.type?(delete i.position,o.stop(!0,!0).animate(i,200)):(o.css(i),s.pos=n.extend({},s.dim,i)))},update:function(t){var e=t&&t.originalEvent&&t.originalEvent.type,i=!e||"orientationchange"===e;i&&(clearTimeout(u),u=null),h.isOpen&&!u&&(u=setTimeout((function(){var s=h.current;s&&!h.isClosing&&(h.wrap.removeClass("fancybox-tmp"),(i||"load"===e||"resize"===e&&s.autoResize)&&h._setDimension(),"scroll"===e&&s.canShrink||h.reposition(t),h.trigger("onUpdate"),u=null)}),i&&!d?0:300))},toggle:function(t){h.isOpen&&(h.current.fitToView="boolean"===n.type(t)?t:!h.current.fitToView,d&&(h.wrap.removeAttr("style").addClass("fancybox-tmp"),h.trigger("onUpdate")),h.update())},hideLoading:function(){l.unbind(".loading"),n("#fancybox-loading").remove()},showLoading:function(){var t,e;h.hideLoading(),t=n('
').click(h.cancel).appendTo("body"),l.bind("keydown.loading",(function(t){27===(t.which||t.keyCode)&&(t.preventDefault(),h.cancel())})),h.defaults.fixed||(e=h.getViewport(),t.css({position:"absolute",top:.5*e.h+e.y,left:.5*e.w+e.x})),h.trigger("onLoading")},getViewport:function(){var t=h.current&&h.current.locked||!1,i={x:r.scrollLeft(),y:r.scrollTop()};return t&&t.length?(i.w=t[0].clientWidth,i.h=t[0].clientHeight):(i.w=d&&e.innerWidth?e.innerWidth:r.width(),i.h=d&&e.innerHeight?e.innerHeight:r.height()),i},unbindEvents:function(){h.wrap&&p(h.wrap)&&h.wrap.unbind(".fb"),l.unbind(".fb"),r.unbind(".fb")},bindEvents:function(){var t,e=h.current;e&&(r.bind("orientationchange.fb"+(d?"":" resize.fb")+(e.autoCenter&&!e.locked?" scroll.fb":""),h.update),(t=e.keys)&&l.bind("keydown.fb",(function(i){var s=i.which||i.keyCode,a=i.target||i.srcElement;if(27===s&&h.coming)return!1;i.ctrlKey||i.altKey||i.shiftKey||i.metaKey||a&&(a.type||n(a).is("[contenteditable]"))||n.each(t,(function(t,a){return 1a[0].clientWidth||a[0].clientHeight&&a[0].scrollHeight>a[0].clientHeight),a=n(a).parent();0!==i&&!r&&1o||0>s)&&h.next(0>o?"up":"right"),t.preventDefault())})))},trigger:function(t,e){var i,s=e||h.coming||h.current;if(s){if(n.isFunction(s[t])&&(i=s[t].apply(s,Array.prototype.slice.call(arguments,1))),!1===i)return!1;s.helpers&&n.each(s.helpers,(function(e,i){i&&h.helpers[e]&&n.isFunction(h.helpers[e][t])&&h.helpers[e][t](n.extend(!0,{},h.helpers[e].defaults,i),s)}))}l.trigger(t)},isImage:function(t){return f(t)&&t.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSWF:function(t){return f(t)&&t.match(/\.(swf)((\?|#).*)?$/i)},_start:function(t){var e,i,s={};if(t=g(t),!(e=h.group[t]||null))return!1;if(e=(s=n.extend(!0,{},h.opts,e)).margin,i=s.padding,"number"===n.type(e)&&(s.margin=[e,e,e,e]),"number"===n.type(i)&&(s.padding=[i,i,i,i]),s.modal&&n.extend(!0,s,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}}),s.autoSize&&(s.autoWidth=s.autoHeight=!0),"auto"===s.width&&(s.autoWidth=!0),"auto"===s.height&&(s.autoHeight=!0),s.group=h.group,s.index=t,h.coming=s,!1===h.trigger("beforeLoad"))h.coming=null;else{if(i=s.type,e=s.href,!i)return h.coming=null,!(!h.current||!h.router||"jumpto"===h.router)&&(h.current.index=t,h[h.router](h.direction));if(h.isActive=!0,"image"!==i&&"swf"!==i||(s.autoHeight=s.autoWidth=!1,s.scrolling="visible"),"image"===i&&(s.aspectRatio=!0),"iframe"===i&&d&&(s.scrolling="scroll"),s.wrap=n(s.tpl.wrap).addClass("fancybox-"+(d?"mobile":"desktop")+" fancybox-type-"+i+" fancybox-tmp "+s.wrapCSS).appendTo(s.parent||"body"),n.extend(s,{skin:n(".fancybox-skin",s.wrap),outer:n(".fancybox-outer",s.wrap),inner:n(".fancybox-inner",s.wrap)}),n.each(["Top","Right","Bottom","Left"],(function(t,e){s.skin.css("padding"+e,v(s.padding[t]))})),h.trigger("onReady"),"inline"===i||"html"===i){if(!s.content||!s.content.length)return h._error("content")}else if(!e)return h._error("href");"image"===i?h._loadImage():"ajax"===i?h._loadAjax():"iframe"===i?h._loadIframe():h._afterLoad()}},_error:function(t){n.extend(h.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:t,content:h.coming.tpl.error}),h._afterLoad()},_loadImage:function(){var t=h.imgPreload=new Image;t.onload=function(){this.onload=this.onerror=null,h.coming.width=this.width/h.opts.pixelRatio,h.coming.height=this.height/h.opts.pixelRatio,h._afterLoad()},t.onerror=function(){this.onload=this.onerror=null,h._error("image")},t.src=h.coming.href,!0!==t.complete&&h.showLoading()},_loadAjax:function(){var t=h.coming;h.showLoading(),h.ajaxLoad=n.ajax(n.extend({},t.ajax,{url:t.href,error:function(t,e){h.coming&&"abort"!==e?h._error("ajax",t):h.hideLoading()},success:function(e,i){"success"===i&&(t.content=e,h._afterLoad())}}))},_loadIframe:function(){var t=h.coming,e=n(t.tpl.iframe.replace(/\{rnd\}/g,(new Date).getTime())).attr("scrolling",d?"auto":t.iframe.scrolling).attr("src",t.href);n(t.wrap).bind("onReset",(function(){try{n(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(t){}})),t.iframe.preload&&(h.showLoading(),e.one("load",(function(){n(this).data("ready",1),d||n(this).bind("load.fb",h.update),n(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show(),h._afterLoad()}))),t.content=e.appendTo(t.inner),t.iframe.preload||h._afterLoad()},_preloadImages:function(){var t,e,i=h.group,s=h.current,n=i.length,o=s.preload?Math.min(s.preload,n-1):0;for(e=1;e<=o;e+=1)"image"===(t=i[(s.index+e)%n]).type&&t.href&&((new Image).src=t.href)},_afterLoad:function(){var t,e,i,s,o,a=h.coming,r=h.current;if(h.hideLoading(),a&&!1!==h.isActive)if(!1===h.trigger("afterLoad",a,r))a.wrap.stop(!0).trigger("onReset").remove(),h.coming=null;else{switch(r&&(h.trigger("beforeChange",r),r.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove()),h.unbindEvents(),t=a.content,e=a.type,i=a.scrolling,n.extend(h,{wrap:a.wrap,skin:a.skin,outer:a.outer,inner:a.inner,current:a,previous:r}),s=a.href,e){case"inline":case"ajax":case"html":a.selector?t=n("
").html(t).find(a.selector):p(t)&&(t.data("fancybox-placeholder")||t.data("fancybox-placeholder",n('
').insertAfter(t).hide()),t=t.show().detach(),a.wrap.bind("onReset",(function(){n(this).find(t).length&&t.hide().replaceAll(t.data("fancybox-placeholder")).data("fancybox-placeholder",!1)})));break;case"image":t=a.tpl.image.replace(/\{href\}/g,s);break;case"swf":t='',o="",n.each(a.swf,(function(e,i){t+='',o+=" "+e+'="'+i+'"'})),t+='"}p(t)&&t.parent().is(a.inner)||a.inner.append(t),h.trigger("beforeShow"),a.inner.css("overflow","yes"===i?"scroll":"no"===i?"hidden":i),h._setDimension(),h.reposition(),h.isOpen=!1,h.coming=null,h.bindEvents(),h.isOpened?r.prevMethod&&h.transitions[r.prevMethod]():n(".fancybox-wrap").not(a.wrap).stop(!0).trigger("onReset").remove(),h.transitions[h.isOpened?a.nextMethod:a.openMethod](),h._preloadImages()}},_setDimension:function(){var t,e,i,s,o,a,r,l,c,u=h.getViewport(),d=0,p=!1,f=!1,y=(p=h.wrap,h.skin),b=h.inner,_=h.current,w=(f=_.width,_.height),k=_.minWidth,x=_.minHeight,C=_.maxWidth,S=_.maxHeight,P=_.scrolling,T=_.scrollOutside?_.scrollbarWidth:0,E=_.margin,A=g(E[1]+E[3]),D=g(E[0]+E[2]);if(p.add(y).add(b).width("auto").height("auto").removeClass("fancybox-tmp"),e=A+(E=g(y.outerWidth(!0)-y.width())),i=D+(t=g(y.outerHeight(!0)-y.height())),s=m(f)?(u.w-e)*g(f)/100:f,o=m(w)?(u.h-i)*g(w)/100:w,"iframe"===_.type){if(c=_.content,_.autoHeight&&1===c.data("ready"))try{c[0].contentWindow.document.location&&(b.width(s).height(9999),a=c.contents().find("body"),T&&a.css("overflow-x","hidden"),o=a.outerHeight(!0))}catch(t){}}else(_.autoWidth||_.autoHeight)&&(b.addClass("fancybox-tmp"),_.autoWidth||b.width(s),_.autoHeight||b.height(o),_.autoWidth&&(s=b.width()),_.autoHeight&&(o=b.height()),b.removeClass("fancybox-tmp"));if(f=g(s),w=g(o),l=s/o,k=g(m(k)?g(k,"w")-e:k),C=g(m(C)?g(C,"w")-e:C),x=g(m(x)?g(x,"h")-i:x),a=C,r=S=g(m(S)?g(S,"h")-i:S),_.fitToView&&(C=Math.min(u.w-e,C),S=Math.min(u.h-i,S)),e=u.w-A,D=u.h-D,_.aspectRatio?(f>C&&(w=g((f=C)/l)),w>S&&(f=g((w=S)*l)),fe||A>D)&&f>k&&w>x&&!(19C&&(w=g((f=C)/l)),b.width(f).height(w),p.width(f+E),u=p.width(),A=p.height();else f=Math.max(k,Math.min(f,f-(u-e))),w=Math.max(x,Math.min(w,w-(A-D)));T&&"auto"===P&&we||A>D)&&f>k&&w>x,f=_.aspectRatio?fx&&w
').appendTo(e&&e.lenth?e:"body"),this.fixed=!1,t.fixed&&h.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(t){var e=this;t=n.extend({},this.defaults,t),this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(t),this.fixed||(r.bind("resize.overlay",n.proxy(this.update,this)),this.update()),t.closeClick&&this.overlay.bind("click.overlay",(function(t){if(n(t.target).hasClass("fancybox-overlay"))return h.isActive?h.close():e.close(),!1})),this.overlay.css(t.css).show()},close:function(){r.unbind("resize.overlay"),this.el.hasClass("fancybox-lock")&&(n(".fancybox-margin").removeClass("fancybox-margin"),this.el.removeClass("fancybox-lock"),r.scrollTop(this.scrollV).scrollLeft(this.scrollH)),n(".fancybox-overlay").remove().hide(),n.extend(this,{overlay:null,fixed:!1})},update:function(){var t,e="100%";this.overlay.width(e).height("100%"),c?(t=Math.max(s.documentElement.offsetWidth,s.body.offsetWidth),l.width()>t&&(e=l.width())):l.width()>r.width()&&(e=l.width()),this.overlay.width(e).height(l.height())},onReady:function(t,e){var i=this.overlay;n(".fancybox-overlay").stop(!0,!0),i||this.create(t),t.locked&&this.fixed&&e.fixed&&(e.locked=this.overlay.append(e.wrap),e.fixed=!1),!0===t.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(t,e){e.locked&&!this.el.hasClass("fancybox-lock")&&(!1!==this.fixPosition&&n("*").filter((function(){return"fixed"===n(this).css("position")&&!n(this).hasClass("fancybox-overlay")&&!n(this).hasClass("fancybox-wrap")})).addClass("fancybox-margin"),this.el.addClass("fancybox-margin"),this.scrollV=r.scrollTop(),this.scrollH=r.scrollLeft(),this.el.addClass("fancybox-lock"),r.scrollTop(this.scrollV).scrollLeft(this.scrollH)),this.open(t)},onUpdate:function(){this.fixed||this.update()},afterClose:function(t){this.overlay&&!h.coming&&this.overlay.fadeOut(t.speedOut,n.proxy(this.close,this))}},h.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(t){var e=h.current,i=e.title,s=t.type;if(n.isFunction(i)&&(i=i.call(e.element,e)),f(i)&&""!==n.trim(i)){switch(e=n('
'+i+"
"),s){case"inside":s=h.skin;break;case"outside":s=h.wrap;break;case"over":s=h.inner;break;default:s=h.skin,e.appendTo("body"),c&&e.width(e.width()),e.wrapInner(''),h.current.margin[2]+=Math.abs(g(e.css("margin-bottom")))}e["top"===t.position?"prependTo":"appendTo"](s)}}},n.fn.fancybox=function(t){var e,i=n(this),s=this.selector||"",o=function(o){var a,r,l=n(this).blur(),c=e;o.ctrlKey||o.altKey||o.shiftKey||o.metaKey||l.is(".fancybox-wrap")||(a=t.groupAttr||"data-fancybox-group",(r=l.attr(a))||(a="rel",r=l.get(0)[a]),r&&""!==r&&"nofollow"!==r&&(c=(l=(l=s.length?n(s):i).filter("["+a+'="'+r+'"]')).index(this)),t.index=c,!1!==h.open(l,t)&&o.preventDefault())};return e=(t=t||{}).index||0,s&&!1!==t.live?l.undelegate(s,"click.fb-start").delegate(s+":not('.fancybox-item, .fancybox-nav')","click.fb-start",o):i.unbind("click.fb-start").bind("click.fb-start",o),this.filter("[data-fancybox-start=1]").trigger("click"),this},l.ready((function(){var t,i;n.scrollbarWidth===o&&(n.scrollbarWidth=function(){var t=n('
').appendTo("body"),e=(e=t.children()).innerWidth()-e.height(99).innerWidth();return t.remove(),e}),n.support.fixedPosition===o&&(n.support.fixedPosition=function(){var t=n('
').appendTo("body"),e=20===t[0].offsetTop||15===t[0].offsetTop;return t.remove(),e}()),n.extend(h.defaults,{scrollbarWidth:n.scrollbarWidth(),fixed:n.support.fixedPosition,parent:n("body")}),t=n(e).width(),a.addClass("fancybox-lock-test"),i=n(e).width(),a.removeClass("fancybox-lock-test"),n("").appendTo("head")}))}).call(this,i("EVdn"))},"9d/t":function(t,e,i){var s=i("AO7/"),n=i("xrYK"),o=i("tiKp")("toStringTag"),a="Arguments"==n(function(){return arguments}());t.exports=s?n:function(t){var e,i,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?i:a?n(e):"Object"==(s=n(e))&&"function"==typeof e.callee?"Arguments":s}},"AO7/":function(t,e,i){var s={};s[i("tiKp")("toStringTag")]="z",t.exports="[object z]"===String(s)},"BX/b":function(t,e,i){var s=i("/GqU"),n=i("JBy8").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?function(t){try{return n(t)}catch(t){return a.slice()}}(t):n(s(t))}},CyXQ:function(t,e,i){var s=i("ppGB"),n=i("UMSQ");t.exports=function(t){if(void 0===t)return 0;var e=s(t),i=n(e);if(e!==i)throw RangeError("Wrong length or index");return i}},DTth:function(t,e,i){var s=i("0Dky"),n=i("tiKp"),o=i("xDBR"),a=n("iterator");t.exports=!s((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,i="";return t.pathname="c%20d",e.forEach((function(t,s){e.delete("b"),i+=s+t})),o&&!t.toJSON||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==i||"x"!==new URL("http://x",void 0).host}))},EUja:function(t,e,i){"use strict";var s=i("ppGB"),n=i("HYAF");t.exports="".repeat||function(t){var e=String(n(this)),i="",o=s(t);if(o<0||o==1/0)throw RangeError("Wrong number of repetitions");for(;o>0;(o>>>=1)&&(e+=e))1&o&&(i+=e);return i}},Ep9I:function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},FF6l:function(t,e,i){"use strict";var s=i("ewvW"),n=i("I8vh"),o=i("UMSQ"),a=Math.min;t.exports=[].copyWithin||function(t,e){var i=s(this),r=o(i.length),l=n(t,r),h=n(e,r),c=arguments.length>2?arguments[2]:void 0,u=a((void 0===c?r:n(c,r))-h,r-l),d=1;for(h0;)h in i?i[l]=i[h]:delete i[l],l+=d,h+=d;return i}},"Fwt+":function(t,e,i){"use strict";var s=i("67WC"),n=i("UMSQ"),o=i("I8vh"),a=i("SEBh"),r=s.aTypedArray;(0,s.exportTypedArrayMethod)("subarray",(function(t,e){var i=r(this),s=i.length,l=o(t,s);return new(a(i,i.constructor))(i.buffer,i.byteOffset+l*i.BYTES_PER_ELEMENT,n((void 0===e?s:o(e,s))-l))}))},GC2F:function(t,e,i){var s=i("+M1K");t.exports=function(t,e){var i=s(t);if(i%e)throw RangeError("Wrong offset");return i}},GarU:function(t,e){t.exports=function(t,e,i){if(!(t instanceof e))throw TypeError("Incorrect "+(i?i+" ":"")+"invocation");return t}},HH4o:function(t,e,i){var s=i("tiKp")("iterator"),n=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){n=!0}};a[s]=function(){return this},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!n)return!1;var i=!1;try{var o={};o[s]=function(){return{next:function(){return{done:i=!0}}}},t(o)}catch(t){}return i}},Hd5f:function(t,e,i){var s=i("0Dky"),n=i("tiKp"),o=i("LQDL"),a=n("species");t.exports=function(t){return o>=51||!s((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},IM5k:function(t,e,i){"use strict";i.r(e),function(t){i.d(e,"default",(function(){return s})),i.d(e,"createCookie",(function(){return n})),i.d(e,"readCookie",(function(){return o})),i.d(e,"toggleMobileFullSite",(function(){return a})),i.d(e,"toggleFullSiteToMobile",(function(){return r}));i("yXV3"),i("rB9j"),i("EnZy");function s(){}function n(t,e,i){if(i){var s=new Date;s.setTime(s.getTime()+24*i*60*60*1e3);var n="; expires="+s.toGMTString()}else n="";document.cookie=t+"="+e+n+"; path=/"}function o(t){for(var e=t+"=",i=document.cookie.split(";"),s=0;s'),t(document).ready((function(){"true"===o("nomobile")?t(".change-device-not-mobily").show():t(".change-device-not-mobily").hide()}))}.call(this,i("EVdn"))},IZzc:function(t,e,i){"use strict";var s=i("67WC"),n=s.aTypedArray,o=s.exportTypedArrayMethod,a=[].sort;o("sort",(function(t){return a.call(n(this),t)}))},JTJg:function(t,e,i){"use strict";var s=i("I+eb"),n=i("WjRb"),o=i("HYAF");s({target:"String",proto:!0,forced:!i("qxPZ")("includes")},{includes:function(t){return!!~String(o(this)).indexOf(n(t),arguments.length>1?arguments[1]:void 0)}})},JaFt:function(t,e,i){"use strict";var s=i("67WC"),n=i("1Y/n").right,o=s.aTypedArray;(0,s.exportTypedArrayMethod)("reduceRight",(function(t){return n(o(this),t,arguments.length,arguments.length>1?arguments[1]:void 0)}))},JfAA:function(t,e,i){"use strict";var s=i("busE"),n=i("glrk"),o=i("0Dky"),a=i("rW0t"),r=RegExp.prototype,l=r.toString,h=o((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),c="toString"!=l.name;(h||c)&&s(RegExp.prototype,"toString",(function(){var t=n(this),e=String(t.source),i=t.flags;return"/"+e+"/"+String(void 0===i&&t instanceof RegExp&&!("flags"in r)?a.call(t):i)}),{unsafe:!0})},KVSy:function(t,e,i){"use strict";var s=i("67WC"),n=i("SEBh"),o=i("0Dky"),a=s.aTypedArray,r=s.aTypedArrayConstructor,l=s.exportTypedArrayMethod,h=[].slice;l("slice",(function(t,e){for(var i=h.call(a(this),t,e),s=n(this,this.constructor),o=0,l=i.length,c=new(r(s))(l);l>o;)c[o]=i[o++];return c}),o((function(){new Int8Array(1).slice()})))},KmKo:function(t,e,i){var s=i("glrk");t.exports=function(t){var e=t.return;if(void 0!==e)return s(e.call(t)).value}},Kz25:function(t,e,i){"use strict";i("PKPk");var s,n=i("I+eb"),o=i("g6v/"),a=i("DTth"),r=i("2oRo"),l=i("N+g0"),h=i("busE"),c=i("GarU"),u=i("UTVS"),d=i("YNrV"),p=i("TfTi"),f=i("ZUd8").codeAt,m=i("X7LM"),g=i("1E5z"),v=i("mGGf"),y=i("afO8"),b=r.URL,_=v.URLSearchParams,w=v.getState,k=y.set,x=y.getterFor("URL"),C=Math.floor,S=Math.pow,P=/[A-Za-z]/,T=/[\d+-.A-Za-z]/,E=/\d/,A=/^(0x|0X)/,D=/^[0-7]+$/,M=/^\d+$/,I=/^[\dA-Fa-f]+$/,j=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,O=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,R=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,z=/[\u0009\u000A\u000D]/g,F=function(t,e){var i,s,n;if("["==e.charAt(0)){if("]"!=e.charAt(e.length-1))return"Invalid host";if(!(i=B(e.slice(1,-1))))return"Invalid host";t.host=i}else if(G(t)){if(e=m(e),j.test(e))return"Invalid host";if(null===(i=L(e)))return"Invalid host";t.host=i}else{if(O.test(e))return"Invalid host";for(i="",s=p(e),n=0;n4)return t;for(i=[],s=0;s1&&"0"==n.charAt(0)&&(o=A.test(n)?16:8,n=n.slice(8==o?1:2)),""===n)a=0;else{if(!(10==o?M:8==o?D:I).test(n))return t;a=parseInt(n,o)}i.push(a)}for(s=0;s=S(256,5-e))return null}else if(a>255)return null;for(r=i.pop(),s=0;s6)return;for(s=0;d();){if(n=null,s>0){if(!("."==d()&&s<4))return;u++}if(!E.test(d()))return;for(;E.test(d());){if(o=parseInt(d(),10),null===n)n=o;else{if(0==n)return;n=10*n+o}if(n>255)return;u++}l[h]=256*l[h]+n,2!=++s&&4!=s||h++}if(4!=s)return;break}if(":"==d()){if(u++,!d())return}else if(d())return;l[h++]=e}else{if(null!==c)return;u++,c=++h}}if(null!==c)for(a=h-c,h=7;0!=h&&a>0;)r=l[h],l[h--]=l[c+a-1],l[c+--a]=r;else if(8!=h)return;return l},N=function(t){var e,i,s,n;if("number"==typeof t){for(e=[],i=0;i<4;i++)e.unshift(t%256),t=C(t/256);return e.join(".")}if("object"==typeof t){for(e="",s=function(t){for(var e=null,i=1,s=null,n=0,o=0;o<8;o++)0!==t[o]?(n>i&&(e=s,i=n),s=null,n=0):(null===s&&(s=o),++n);return n>i&&(e=s,i=n),e}(t),i=0;i<8;i++)n&&0===t[i]||(n&&(n=!1),s===i?(e+=i?":":"::",n=!0):(e+=t[i].toString(16),i<7&&(e+=":")));return"["+e+"]"}return t},H={},W=d({},H,{" ":1,'"':1,"<":1,">":1,"`":1}),q=d({},W,{"#":1,"?":1,"{":1,"}":1}),U=d({},q,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),V=function(t,e){var i=f(t,0);return i>32&&i<127&&!u(e,t)?t:encodeURIComponent(t)},K={ftp:21,file:null,http:80,https:443,ws:80,wss:443},G=function(t){return u(K,t.scheme)},Y=function(t){return""!=t.username||""!=t.password},X=function(t){return!t.host||t.cannotBeABaseURL||"file"==t.scheme},Z=function(t,e){var i;return 2==t.length&&P.test(t.charAt(0))&&(":"==(i=t.charAt(1))||!e&&"|"==i)},J=function(t){var e;return t.length>1&&Z(t.slice(0,2))&&(2==t.length||"/"===(e=t.charAt(2))||"\\"===e||"?"===e||"#"===e)},Q=function(t){var e=t.path,i=e.length;!i||"file"==t.scheme&&1==i&&Z(e[0],!0)||e.pop()},$=function(t){return"."===t||"%2e"===t.toLowerCase()},tt={},et={},it={},st={},nt={},ot={},at={},rt={},lt={},ht={},ct={},ut={},dt={},pt={},ft={},mt={},gt={},vt={},yt={},bt={},_t={},wt=function(t,e,i,n){var o,a,r,l,h,c=i||tt,d=0,f="",m=!1,g=!1,v=!1;for(i||(t.scheme="",t.username="",t.password="",t.host=null,t.port=null,t.path=[],t.query=null,t.fragment=null,t.cannotBeABaseURL=!1,e=e.replace(R,"")),e=e.replace(z,""),o=p(e);d<=o.length;){switch(a=o[d],c){case tt:if(!a||!P.test(a)){if(i)return"Invalid scheme";c=it;continue}f+=a.toLowerCase(),c=et;break;case et:if(a&&(T.test(a)||"+"==a||"-"==a||"."==a))f+=a.toLowerCase();else{if(":"!=a){if(i)return"Invalid scheme";f="",c=it,d=0;continue}if(i&&(G(t)!=u(K,f)||"file"==f&&(Y(t)||null!==t.port)||"file"==t.scheme&&!t.host))return;if(t.scheme=f,i)return void(G(t)&&K[t.scheme]==t.port&&(t.port=null));f="","file"==t.scheme?c=pt:G(t)&&n&&n.scheme==t.scheme?c=st:G(t)?c=rt:"/"==o[d+1]?(c=nt,d++):(t.cannotBeABaseURL=!0,t.path.push(""),c=yt)}break;case it:if(!n||n.cannotBeABaseURL&&"#"!=a)return"Invalid scheme";if(n.cannotBeABaseURL&&"#"==a){t.scheme=n.scheme,t.path=n.path.slice(),t.query=n.query,t.fragment="",t.cannotBeABaseURL=!0,c=_t;break}c="file"==n.scheme?pt:ot;continue;case st:if("/"!=a||"/"!=o[d+1]){c=ot;continue}c=lt,d++;break;case nt:if("/"==a){c=ht;break}c=vt;continue;case ot:if(t.scheme=n.scheme,a==s)t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,t.path=n.path.slice(),t.query=n.query;else if("/"==a||"\\"==a&&G(t))c=at;else if("?"==a)t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,t.path=n.path.slice(),t.query="",c=bt;else{if("#"!=a){t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,t.path=n.path.slice(),t.path.pop(),c=vt;continue}t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,t.path=n.path.slice(),t.query=n.query,t.fragment="",c=_t}break;case at:if(!G(t)||"/"!=a&&"\\"!=a){if("/"!=a){t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,c=vt;continue}c=ht}else c=lt;break;case rt:if(c=lt,"/"!=a||"/"!=f.charAt(d+1))continue;d++;break;case lt:if("/"!=a&&"\\"!=a){c=ht;continue}break;case ht:if("@"==a){m&&(f="%40"+f),m=!0,r=p(f);for(var y=0;y65535)return"Invalid port";t.port=G(t)&&w===K[t.scheme]?null:w,f=""}if(i)return;c=gt;continue}return"Invalid port"}f+=a;break;case pt:if(t.scheme="file","/"==a||"\\"==a)c=ft;else{if(!n||"file"!=n.scheme){c=vt;continue}if(a==s)t.host=n.host,t.path=n.path.slice(),t.query=n.query;else if("?"==a)t.host=n.host,t.path=n.path.slice(),t.query="",c=bt;else{if("#"!=a){J(o.slice(d).join(""))||(t.host=n.host,t.path=n.path.slice(),Q(t)),c=vt;continue}t.host=n.host,t.path=n.path.slice(),t.query=n.query,t.fragment="",c=_t}}break;case ft:if("/"==a||"\\"==a){c=mt;break}n&&"file"==n.scheme&&!J(o.slice(d).join(""))&&(Z(n.path[0],!0)?t.path.push(n.path[0]):t.host=n.host),c=vt;continue;case mt:if(a==s||"/"==a||"\\"==a||"?"==a||"#"==a){if(!i&&Z(f))c=vt;else if(""==f){if(t.host="",i)return;c=gt}else{if(l=F(t,f))return l;if("localhost"==t.host&&(t.host=""),i)return;f="",c=gt}continue}f+=a;break;case gt:if(G(t)){if(c=vt,"/"!=a&&"\\"!=a)continue}else if(i||"?"!=a)if(i||"#"!=a){if(a!=s&&(c=vt,"/"!=a))continue}else t.fragment="",c=_t;else t.query="",c=bt;break;case vt:if(a==s||"/"==a||"\\"==a&&G(t)||!i&&("?"==a||"#"==a)){if(".."===(h=(h=f).toLowerCase())||"%2e."===h||".%2e"===h||"%2e%2e"===h?(Q(t),"/"==a||"\\"==a&&G(t)||t.path.push("")):$(f)?"/"==a||"\\"==a&&G(t)||t.path.push(""):("file"==t.scheme&&!t.path.length&&Z(f)&&(t.host&&(t.host=""),f=f.charAt(0)+":"),t.path.push(f)),f="","file"==t.scheme&&(a==s||"?"==a||"#"==a))for(;t.path.length>1&&""===t.path[0];)t.path.shift();"?"==a?(t.query="",c=bt):"#"==a&&(t.fragment="",c=_t)}else f+=V(a,q);break;case yt:"?"==a?(t.query="",c=bt):"#"==a?(t.fragment="",c=_t):a!=s&&(t.path[0]+=V(a,H));break;case bt:i||"#"!=a?a!=s&&("'"==a&&G(t)?t.query+="%27":t.query+="#"==a?"%23":V(a,H)):(t.fragment="",c=_t);break;case _t:a!=s&&(t.fragment+=V(a,W))}d++}},kt=function(t){var e,i,s=c(this,kt,"URL"),n=arguments.length>1?arguments[1]:void 0,a=String(t),r=k(s,{type:"URL"});if(void 0!==n)if(n instanceof kt)e=x(n);else if(i=wt(e={},String(n)))throw TypeError(i);if(i=wt(r,a,null,e))throw TypeError(i);var l=r.searchParams=new _,h=w(l);h.updateSearchParams(r.query),h.updateURL=function(){r.query=String(l)||null},o||(s.href=Ct.call(s),s.origin=St.call(s),s.protocol=Pt.call(s),s.username=Tt.call(s),s.password=Et.call(s),s.host=At.call(s),s.hostname=Dt.call(s),s.port=Mt.call(s),s.pathname=It.call(s),s.search=jt.call(s),s.searchParams=Ot.call(s),s.hash=Rt.call(s))},xt=kt.prototype,Ct=function(){var t=x(this),e=t.scheme,i=t.username,s=t.password,n=t.host,o=t.port,a=t.path,r=t.query,l=t.fragment,h=e+":";return null!==n?(h+="//",Y(t)&&(h+=i+(s?":"+s:"")+"@"),h+=N(n),null!==o&&(h+=":"+o)):"file"==e&&(h+="//"),h+=t.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==r&&(h+="?"+r),null!==l&&(h+="#"+l),h},St=function(){var t=x(this),e=t.scheme,i=t.port;if("blob"==e)try{return new URL(e.path[0]).origin}catch(t){return"null"}return"file"!=e&&G(t)?e+"://"+N(t.host)+(null!==i?":"+i:""):"null"},Pt=function(){return x(this).scheme+":"},Tt=function(){return x(this).username},Et=function(){return x(this).password},At=function(){var t=x(this),e=t.host,i=t.port;return null===e?"":null===i?N(e):N(e)+":"+i},Dt=function(){var t=x(this).host;return null===t?"":N(t)},Mt=function(){var t=x(this).port;return null===t?"":String(t)},It=function(){var t=x(this),e=t.path;return t.cannotBeABaseURL?e[0]:e.length?"/"+e.join("/"):""},jt=function(){var t=x(this).query;return t?"?"+t:""},Ot=function(){return x(this).searchParams},Rt=function(){var t=x(this).fragment;return t?"#"+t:""},zt=function(t,e){return{get:t,set:e,configurable:!0,enumerable:!0}};if(o&&l(xt,{href:zt(Ct,(function(t){var e=x(this),i=String(t),s=wt(e,i);if(s)throw TypeError(s);w(e.searchParams).updateSearchParams(e.query)})),origin:zt(St),protocol:zt(Pt,(function(t){var e=x(this);wt(e,String(t)+":",tt)})),username:zt(Tt,(function(t){var e=x(this),i=p(String(t));if(!X(e)){e.username="";for(var s=0;s=74)&&(s=a.match(/Chrome\/(\d+)/))&&(n=s[1]),t.exports=n&&+n},MoCz:function(t,e,i){"use strict";var s=i("67WC"),n=i("5Yz+"),o=s.aTypedArray;(0,s.exportTypedArrayMethod)("lastIndexOf",(function(t){return n.apply(o(this),arguments)}))},"NC/Y":function(t,e,i){var s=i("0GbY");t.exports=s("navigator","userAgent")||""},NaFW:function(t,e,i){var s=i("9d/t"),n=i("P4y1"),o=i("tiKp")("iterator");t.exports=function(t){if(null!=t)return t[o]||t["@@iterator"]||n[s(t)]}},OM9Z:function(t,e,i){i("I+eb")({target:"String",proto:!0},{repeat:i("EUja")})},Onu3:function(t,e,i){"use strict";var s=i("67WC"),n=i("tycR").findIndex,o=s.aTypedArray;(0,s.exportTypedArrayMethod)("findIndex",(function(t){return n(o(this),t,arguments.length>1?arguments[1]:void 0)}))},P4y1:function(t,e){t.exports={}},P8wP:function(t,e,i){"use strict";var s=i("67WC"),n=i("tycR").map,o=i("SEBh"),a=s.aTypedArray,r=s.aTypedArrayConstructor;(0,s.exportTypedArrayMethod)("map",(function(t){return n(a(this),t,arguments.length>1?arguments[1]:void 0,(function(t,e){return new(r(o(t,t.constructor)))(e)}))}))},PF2M:function(t,e,i){"use strict";var s=i("67WC"),n=i("UMSQ"),o=i("GC2F"),a=i("ewvW"),r=i("0Dky"),l=s.aTypedArray;(0,s.exportTypedArrayMethod)("set",(function(t){l(this);var e=o(arguments.length>1?arguments[1]:void 0,1),i=this.length,s=a(t),r=n(s.length),h=0;if(r+e>i)throw RangeError("Wrong length");for(;h=i.length?{value:void 0,done:!0}:(t=s(i,n),e.index+=t.length,{value:t,done:!1})}))},"Q9e/":function(t,e,i){"use strict";(function(t,s){i.d(e,"a",(function(){return n}));i("QWBl"),i("oVuX"),i("sMBO"),i("rB9j"),i("UxlC"),i("FZtP");var n={token:!1,addT6:function(){t("#content .container").append(''),n.setupClose(),n.setupInputs(),n.setupPayClickT6()},addTokenBlik:function(){t("#content .container").append('

Zamknij

Blik

P�atno�� tokenem blik

ZAPŁAĆ


'),n.setupClose(),n.setupPayClickToken()},setupClose:function(){t("#t6-popup-close").click((function(){t("#t6-popup").hide(),t(".layerPowiadom").hide()})),t("#blik-token-popup-close").click((function(){t("#blik-token-popup").hide(),t(".layerPowiadom").hide()})),t("#blik-token-popup-alt-close").click((function(){t("#blik-token-alt-popup").hide(),t(".layerPowiadom").hide()}))},setupInputs:function(){t(".tinput").bind("input",(function(){var e=t(this)[0].name;e=e.replace("t","");var i=++e;i>6?t("#plackodblik").focus():t(".tinput[name=t"+i+"]").focus()}))},setupPayClickToken:function(){t("#plackodbliktoken").click((function(){post_data={},post_data.payuTroya=t("#payuTroya").val(),post_data.fingerprint=t("#fingerprint").val(),post_data.payMethod="blik",post_data.trybliktoken=!0,t("#blik-token-popup").hide(),t("#loader").show(),t.get("/payu/order.php",post_data).done((function(e){if((e=JSON.parse(e)).blikData&&e.blikData.alternatives)return n.injectAlternativesForm(e.blikData.alternatives),t("#blik-token-popup").hide(),void t("#loader").hide();e.single&&e.redirectUrl&&(window.location.href=e.redirectUrl)}))}))},setupPayClickT6:function(){t("#plackodblik").click((function(){var e=[t(".tinput[name=t1]").val(),t(".tinput[name=t2]").val(),t(".tinput[name=t3]").val(),t(".tinput[name=t4]").val(),t(".tinput[name=t5]").val(),t(".tinput[name=t6]").val()];t("#T6").val(e.join("")),t("#paymethods-popup-form").submit(),t("#t6-popup").hide(),t("#loader").show()}))},showT6:function(){t(".layerPowiadom").show(),s("#t6-popup").css("top",window.scrollY).show(),t(".tinput[name=t1]").focus()},showBlikToken:function(){t("#plackodbliktoken").click()},injectAlternativesForm:function(e){t("#content .container").append('

Zamknij

Blik

Wybierz aplikację z listy płatności.





ZAPŁAĆ


'),t("#blik-token-alt-popup .alternatives").html(""),e.forEach((function(e,i,s){t("#blik-token-alt-popup .alternatives").append("
"+e.appLabel+"
")})),n.setupClose(),n.setupAlternativeClicks(),n.setupPayClickAlternatives(),s("#blik-token-alt-popup").css("top",window.scrollY).show()},setupPayClickAlternatives:function(){t("#placaltbliktoken").unbind("click"),t("#placaltbliktoken").click((function(){post_data={},post_data.payuTroya=t("#payuTroya").val(),post_data.fingerprint=t("#fingerprint").val(),post_data.payMethod="blik",post_data.trybliktoken=!0,post_data.alternative=!0,post_data.appKey=t("input[name=appKey]:checked").val(),t("#loader").show(),t("#blik-token-alt-popup").hide(),t.get("/payu/order.php",post_data).done((function(t){(t=JSON.parse(t)).single&&t.redirectUrl&&(window.location.href=t.redirectUrl)}))}))},setupAlternativeClicks:function(){t(".alternative-line").click((function(){t(".alternative-line").each((function(t,e,i){e.style.background="white",e.style.color="black"})),t(".alternative-line input").each((function(t,e,i){e.checked=!1}));var e=t(this);e[0].style.background="#0a3f5c",e[0].style.color="white",e.children()[0].checked=!0}))}}}).call(this,i("EVdn"),i("EVdn"))},QIpd:function(t,e,i){var s=i("xrYK");t.exports=function(t){if("number"!=typeof t&&"Number"!=s(t))throw TypeError("Incorrect invocation");return+t}},"Qsl/":function(t,e,i){(function(t){i("fbCW"),t(document).ready((function(){t(".powiadomMnie, .powiadomMniePL").click((function(e){e.preventDefault();var i=t(this).attr("data-powiadom-info"),s=t(this).attr("data-powiadom-troya"),n=t(this).attr("data-powiadom-status")||1,o=(document.querySelector("#notify-form"),document.querySelector("#notify-form-troya")),a=document.querySelector("#notify-form-info-text"),r=document.querySelector("#notify-form-accept-text"),l=document.querySelector("#notify-form-status"),h=document.querySelector("#notify-form-type"),c="Chcę otrzymać informację o dostępności książki.";"infoemail"==i&&(a.innerHTML="Jeżeli chcesz otrzymać e-mailem informację jak książka będzie dostępna, wpisz poniżej swój adres e-mail.",r.innerHTML=c),"wyczerpemail"==i&&(a.innerHTML="Jeżeli chcesz otrzymać e-mailem informację jak książka będzie dostępna, wpisz poniżej swój adres e-mail.",r.innerHTML=c),"audio_request"==i&&(a.innerHTML="Jeżeli chcesz otrzymać e-mailem informację o dostępności audiobooka, wpisz poniżej swój adres e-mail.",r.innerHTML="Chcę otrzymać mailową informację o dostępności audiobooka."),"info_pl"==i&&(a.innerHTML="Jeżeli chcesz otrzymać e-mailem informację, gdy książka będzie dostępna w języku polskim, wpisz poniżej swój adres e-mail.",r.innerHTML=c),h.value=i,""!=s&&(o.value=s),""!=n&&(l.value=n),t(".layerPowiadom").css("display","block"),t(".popupLayerPowiadom").css("display","block")})),t(".button_send_popup").on("click",(function(e){e.preventDefault();var i=t("#notify-form #notify-form-troya").val(),s=t("#notify-form #notify-form-email").val(),n=t("#notify-form #notify-form-status").val(),o=t("#notify-form #notify-form-type").val();n=parseInt(n);var a,r,l=t("#recaptcha_token").val();return a=t("#notify-form #accept_rodo").is(":checked"),r=t("#notify-form #accept_newsletter").is(":checked")?1:0,""==s?(alert("Pole e-mail nie może być puste!"),!1):a?void t.get("/api/email-notify",{ident:i,email:s,newsletter:r,status:n,notify_type:o,recaptcha_token:l},(function(e){e.result>0&&(t("#popup-container").find(".form").remove(),t("#popup-container").append('
Dziękujemy za zgłoszenie. Otrzymasz e-mailem informację, kiedy książka będzie dostępna.
'))})):(alert("Zaznacz zgodę na informację o dostępności!"),!1)})),t("#tp_accept_personal_data").tooltip({items:"a.tp_accept_personal_data_target",content:'Administratorem danych osobowych jest Helion.pl Sp. z o.o.z siedzibą w Gliwicach (GRUPA HELION). Dane osobowe Użytkownika są przetwarzane w celu realizacji zamówienia, w celach analitycznych i statystycznych, realizacji obowiązków ustawowych, w celach marketingowych. Podanie danych osobowych jest dobrowolne, ale niezbędne dla celów świadczenia usług i realizacji umowy. Użytkownik ma prawo dostępu do treści swoich danych, w tym uzyskania ich kopii oraz prawo sprostowania, usunięcia, ograniczenia przetwarzania, prawo do przenoszenia danych, prawo wniesienia sprzeciwu. Więcej w Polityce Prywatności »',position:{my:"left+15 center",at:"right center"},close:function(e,i){i.tooltip.hover((function(){t(this).stop(!0).fadeTo(500,1)}),(function(){t(this).fadeOut("500",(function(){t(this).remove()}))}))}}),t("#tp_accept_newsletter").tooltip({items:"a.tp_accept_newsletter_target",content:'Zgodę mogę wycofać w każdej chwili, a jej wycofanie nie wpływa na zgodność z prawem przetwarzania dokonanego przed jej wycofaniem. Administratorem danych osobowych jest Helion.pl Sp. z o.o.z siedzibą w Gliwicach (GRUPA HELION). Użytkownik ma prawo dostępu do treści swoich danych, w tym uzyskania ich kopii oraz prawo sprostowania, usunięcia, ograniczenia przetwarzania, prawo do przenoszenia danych, prawo wniesienia sprzeciwu. Więcej w Polityce Prywatności »',position:{my:"left+15 center",at:"right center"},close:function(e,i){i.tooltip.hover((function(){t(this).stop(!0).fadeTo(500,1)}),(function(){t(this).fadeOut("500",(function(){t(this).remove()}))}))}})}))}).call(this,i("EVdn"))},Rm1S:function(t,e,i){"use strict";var s=i("14Sl"),n=i("glrk"),o=i("UMSQ"),a=i("HYAF"),r=i("iqWW"),l=i("FMNM");s("match",1,(function(t,e,i){return[function(e){var i=a(this),s=null==e?void 0:e[t];return void 0!==s?s.call(e,i):new RegExp(e)[t](String(i))},function(t){var s=i(e,t,this);if(s.done)return s.value;var a=n(t),h=String(this);if(!a.global)return l(a,h);var c=a.unicode;a.lastIndex=0;for(var u,d=[],p=0;null!==(u=l(a,h));){var f=String(u[0]);d[p]=f,""===f&&(a.lastIndex=r(h,o(a.lastIndex),c)),p++}return 0===p?null:d}]}))},SYor:function(t,e,i){"use strict";var s=i("I+eb"),n=i("WKiH").trim;s({target:"String",proto:!0,forced:i("yNLB")("trim")},{trim:function(){return n(this)}})},SkcH:function(t,e,i){(function(t){i("fbCW"),i("yXV3"),i("oVuX"),i("+2oP"),i("rB9j"),i("hByQ"),i("EnZy"),t(document).ready((function(){"use strict";t(".checkbox-line input, .radio-line input,.vote-line input, .radio-group input, .checkbox-line-filters input").change((function(){o()})),o(),t(".link-filter a").on("click",(function(e){e.preventDefault(),t("#content").addClass("show-filter"),t(".your-profile").css("display","none")})),t(".christmas-ico-gift-link").on("click",(function(e){e.preventDefault(),t(".popupLayerWysylkiSwiateczne").css("display","block"),t("#layer").css("display","block"),t("#layer").css("opacity","0.5")})),t(".popupLayerWysylkiSwiateczneClose").on("click",(function(e){e.preventDefault(),t(".popupLayerWysylkiSwiateczne").css("display","none"),t("#layer").css("display","none")})),t(".fixed-section-presale-text-first-druk img").hover((function(){t(".fixed-section-presale-info-druk").css("display","block")}),(function(){t(".fixed-section-presale-info-druk").css("display","none")})),t(".fixed-section-presale-text-first-ebook img").hover((function(){t(".fixed-section-presale-info-ebook").css("display","block")}),(function(){t(".fixed-section-presale-info-ebook").css("display","none")})),t(".filter-form .header span").on("click",(function(e){e.preventDefault(),t("#content").removeClass("show-filter"),t(".your-profile").css("display","block")})),t(".deploy-corresp-add").on("click",(function(e){e.preventDefault(),t(".deploy-corresp-add").css("display","none"),t(".deploy-corresp-add-display").css("display","block")})),t(".link-sorter a").on("click",(function(e){e.preventDefault(),t("#content").addClass("show-sorter")})),t("#sortowanie .header span").on("click",(function(e){e.preventDefault(),t("#content").removeClass("show-sorter")})),t("#promoAngSort .header span").on("click",(function(e){e.preventDefault(),t("#content").removeClass("show-sorter")})),t("#categoryReadMore").on("click",(function(e){t("#categoryDescription").css("max-height","unset"),t("#categoryDescription").css("overflow","unset"),t(this).css("display","none")})),t(document).width()>=1e3&&(t("#mainBookCover").mouseover((function(e){t("#mainBookCoverBig").css("display","block")})),t("#mainBookCoverBig").mouseout((function(e){t(this).css("display","none")})),t("#mainBookCoverTwo").mouseover((function(e){t("#mainBookCoverBigTwo").css("display","block")})),t("#mainBookCoverBigTwo").mouseout((function(e){t(this).css("display","none")}))),t(document).width()<=600&&(t("#mainBookCover").on("click",(function(e){t("#mainBookCoverBig").addClass("big-cover-mobile"),t("#layer").css("display","block"),t("#mainBookCoverBig").css("z-index",100)})),t("#mainBookCoverBig").on("click",(function(e){t(this).removeClass("big-cover-mobile"),t("#layer").css("display","none"),t("#mainBookCoverBig").css("z-index",1)})),t("#mainBookCoverTwo").on("click",(function(e){t("#mainBookCoverBigTwo").addClass("big-cover-mobile"),t("#layer").css("display","block"),t("#mainBookCoverBigTwo").css("z-index",100)})),t("#mainBookCoverBigTwo").on("click",(function(e){t(this).removeClass("big-cover-mobile"),t("#layer").css("display","none"),t("#mainBookCoverBigTwo").css("z-index",1)})),t("#mainBookCoverAudio").on("click",(function(e){t(this).hasClass("big-cover-audio-mobile")?(t(this).removeClass("big-cover-audio-mobile"),t("#layer").css("display","none"),t(this).css("z-index",1)):(t(this).addClass("big-cover-audio-mobile"),t("#layer").css("display","block"),t(this).css("z-index",100))}))),t("#cookie-wrapper .button a").click((function(e){t("#cookie-wrapper").animate({bottom:-80}),e.preventDefault()})),t(".book-type-price fieldset .price").click((function(e){t(".book-type-price fieldset.active").removeClass("active"),t(this).parent("fieldset").addClass("active")})),t(".book-type-price .button .one-click").click((function(e){e.preventDefault(),e.stopPropagation(),t(this).parent().toggleClass("show")})),t(document).click((function(){t(".book-type-price .button .show").removeClass("show")})),t(".book-type-price fieldset").click((function(e){t(".book-type-price fieldset.active").removeClass("active"),t(this).addClass("active")})),t(".search-link a").click((function(e){t(this).parents(".page-tools form").hasClass("show-popup")||(t(this).parents(".page-tools form").addClass("show-popup"),e.stopPropagation()),e.preventDefault()})),t(".page-tools .popup").click((function(t){t.stopPropagation()})),t(document).click((function(){t(".show-popup").removeClass("show-popup")})),t(".page-menu a").click((function(e){var i=t(this).attr("href");i=i.slice(i.indexOf("#")),t("html, body").animate({scrollTop:t(i).offset().top})})),t(document).width()<599&&t(".user-tools").on("click",(function(e){t(this).hasClass("showed")?(t(".login-links").css("display","none"),t(this).removeClass("showed")):(t(".login-links").css("display","block"),t(this).addClass("showed"))})),t(".book-list-group").length&&(t(".book-list-group .checkbox-line input").change((function(){n()})),n()),t("#section7 .grey-button a.more").click((function(e){t("#spisTresci").css("height","auto"),t(this).parent().hide(),e.preventDefault()})),t(".play-icon a").click((function(e){t("video",t(this).closest(".clip-object"))[0].play(),t(this).closest(".play-icon").hide(),e.preventDefault()})),t(".link-catalog a").click((function(e){t(".left-col").removeClass("show-series"),t(".menu-catalog").slideDown(),t(".menu-series").slideUp(),e.preventDefault(),e.stopPropagation()})),t(".link-series a").click((function(e){t(".left-col").addClass("show-series"),t(".menu-catalog").slideUp(),t(".menu-series").slideDown(),t("html, body").animate({scrollTop:0},"slow"),e.preventDefault(),e.stopPropagation()})),t(document).on("click",".close-link-menu a",(function(t){zamknijPopup(this)})),t(".main-promotion .promotion-book .bubble .bubble-title").click((function(e){return t(".main-promotion .promotion-book").fadeOut(),t(".main-promotion .promotion-video").fadeIn(),!1})),t("#coverPromotionBubble .bubble-title").click((function(e){return t(".main-promotion .promotion-book").fadeIn(),t(".main-promotion .promotion-video").fadeOut(),!1})),t(".subpage-toolbar .left-col .link-catalog a").on("click",(function(e){(0===t("body.main").length||t("#content").width()<1160)&&(t(".subpage-toolbar .left-col").toggleClass("active"),e.stopPropagation(),e.preventDefault())})),t(".page-menu li a").on("click",(function(e){t("#content").width()<768&&t(".page-menu").addClass("page-menu-not-hover")})),t(".subpage-toolbar .left-col").click((function(t){t.stopPropagation()})),t(document).click((function(){t(".subpage-toolbar .left-col").removeClass("active")})),t(".your-profile p a").click((function(e){t(".user-tools").toggleClass("active"),e.preventDefault()})),t(".user-tools").click((function(t){t.stopPropagation()})),t(document).click((function(){t(".user-tools").removeClass("active")})),t(".page-tools .link-search a").click((function(e){t(".page-tools form").addClass("active"),t("#inputSearch")[0].focus(),e.preventDefault()})),t(".page-tools .link-closesearch a").click((function(e){t(".page-tools form").removeClass("active"),e.preventDefault()})),t(".page-tools .search-line input").focus((function(){})),t(".page-tools .search-line input").blur((function(){t(".page-tools").removeClass("focus")})),t(".main-banner .banners li").click((function(){t("h2 a",this)[0].click()})),t(".my-list h1 a").click((function(e){t(this).parents(".my-list").toggleClass("active"),e.preventDefault()})),t(".usermenu-box p a").click((function(e){t("ul",t(this).parents(".usermenu-box")).length&&(t(this).parents(".usermenu-box").toggleClass("active"),e.preventDefault())})),t(".fixed-section").length?(t(window).scroll((function(){s(!0)})),s(!0)):(t(window).scroll((function(){s(!1)})),s(!1)),function(){var e,i=[];if(t(".page-menu").length){e=t(".menu-section-item");for(var s=t(".page-menu li a"),n=0;ni.length-1?e=0:e<0&&(e=i.length-1);var n=e;e!=s&&(t(".main-banner .banners li").eq(s).css({zIndex:1}),t(".main-banner .navigator li.active").removeClass("active"),t(".main-banner .navigator li").eq(e).addClass("active"),t(".main-banner .banners li").eq(e).show().css({opacity:0,zIndex:2}),t(".main-banner .banners li").eq(e).animate({opacity:1},(function(){t(".main-banner .banners li").eq(s).hide(),s=n})))};if(i.length>1){t(".main-banner").append('');for(var a=0;a'+(a+1)+"");t(".main-banner .banners li").hide(),t(".main-banner .banners li:first-child").show(),t(".main-banner .navigator li:first-child").addClass("active"),t(".main-banner .navigator li a").click((function(e){o(t(this).parent().index()),e.preventDefault()})),t(".main-banner .navigator-prev-next .next a").click((function(t){o(s+1),t.preventDefault()})),t(".main-banner .navigator-prev-next .prev a").click((function(t){o(s-1),t.preventDefault()})),t(".main-banner").hover((function(){clearInterval(e)}),(function(){n()})),n()}else t(".main-banner .navigator-prev-next").hide()}(),function(){var e=t(".book-list-container");function i(e){if(0===t(".list:animated",e).length){var i,s,n,o,a=0,r=0;e.width()<=320?(t(e).parents(".col-right").length?(i=t(".list > li",e).width()+6,r=-57):i=t(".list > li",e).width()+4,s=2):e.width()>=940?(i=t(".list > li",e).width()-4,r=0,a=30,s=15):e.width()>=920?(i=t(".list > li",e).width()+3,r=-57,s=5):e.width()>=860?(i=t(".list > li",e).width()-4,r=-57,s=5):(i=t(".list li",e).width()+18,s=4,a=4);var l=t(".list",e).position().left;n=e.width()<=320&&t(e).parents(".col-right").length?177:e.width()<=320?160:e.width()>=920?183:e.width()>=860?176:174,e.hasClass("filter-list")?o=0===l?-t(".list > li:visible",e).length*i+e.width()-a:Math.min(0,l+s*i+r):(l>=-5*n&&(l-=(t(".list > li",e).length-10)*n,t(".list",e).css({left:l+"px"})),o=l+s*i+r),t(".list > li",e).removeClass("first-visible"),t(".list > li:visible",e).eq(Math.floor(-o/n)+1).addClass("first-visible"),t(".list",e).animate({left:o},500)}}function s(e){if(0===t(".list:animated",e).length){var i,s,n,o,a=0,r=0;e.width()<=320?(t(e).parents(".col-right").length?(i=t(".list > li",e).width()+6,r=3):i=t(".list > li",e).width()+4,s=2):e.width()>=940?(i=t(".list > li",e).width()-4,r=0,a=30,s=5):e.width()>=920?(i=t(".list > li",e).width()+3,r=3,s=5):e.width()>=860?(i=t(".list > li",e).width()-4,r=3,s=5):(i=t(".list > li",e).width()+18,s=4,a=4);t(".list > li:visible",e).length;var l=t(".list",e).position().left;n=e.width()<=320&&t(e).parents(".col-right").length?177:e.width()<=320?160:e.width()>=920?183:e.width()>=860?176:174,e.hasClass("filter-list")?o=l==-t(".list > li:visible",e).length*i+e.width()-a?0:Math.max(-t(".list > li:visible",e).length*i+e.width()-a,l-s*i+r):(l<=-(t(".list > li",e).length-10)*n&&(l-=27,l+=(t(".list > li",e).length-10)*n,t(".list",e).css({left:l+"px"}),r+=27),o=l-s*i+r),t(".list > li",e).removeClass("first-visible"),t(".list > li:visible",e).eq(Math.floor(-o/n)+1).addClass("first-visible"),t(".list",e).animate({left:o},500)}}for(var n=0;n li",e.eq(n)),a=0;a<5;a++)t(o[a]).addClass("copy").appendTo(t(".list",e.eq(n)));for(a=o.length-1;a>=o.length-5;a--)t(o[a]).addClass("copy").prependTo(t(".list",e.eq(n)));var r=-5*o.width();e.width()<=320&&t(e).parents(".col-right").length?r+=45:e.width()<=320?r-=20:e.width()>=920?r+=17:e.width()>=860?r+=50:r-=89,o.removeClass("first-visible"),o.eq(0).addClass("first-visible"),t(".list",e.eq(n)).css({width:(o.length+10)*o.width()+"px",left:r+"px"})}e.eq(n).append('');var l=t(".list > li",e.eq(n));for(a=0;a li");t("#layer").show().css({opacity:0}).animate({opacity:.4}),t("#add-to-board").css({left:i.offset().left-70,top:i.offset().top}).show(),t(".box-scroll").tinyscrollbar()})),t(".book-list-container .list .board-link a").click((function(e){e.preventDefault();var i=t(this).parents(".book-list-container .list > li");t("#layer").show().css({opacity:0}).animate({opacity:.4}),t("#add-to-board").css({left:i.offset().left-70,top:i.offset().top}).show(),t(".box-scroll").tinyscrollbar()})),t("#text-popup .close a").click((function(e){e.preventDefault(),e.stopPropagation(),t("#layer").fadeOut(),t("#text-popup").hide(),t(".popupLayerUwagiDK").hide(),t(".popupLayerOnDemand").hide()})),t(document).click((function(){t(".book-list-container .list .read").removeClass("show")})),t(".bank-transfer").click((function(e){var i=t(this).parents(".choose-line");t("#layer").show().css({opacity:0}).animate({opacity:.4}),t("#payment-popup").css({top:i.offset().top-230}).show()})),t("#payment-popup .close a").click((function(e){e.preventDefault(),e.stopPropagation(),t("#layer").fadeOut(),t("#payment-popup").hide()})),t("#payment-popup input").bind("change, click",(function(e){t(".bank-transfer .name").html(t(this).attr("data-name")),t(".bank-transfer img").attr("src",t(this).attr("data-image")),t(".bank-transfer .link").addClass("show"),t(".bank-transfer input").val(t(this).val()).attr("checked",!0),t(".bank-transfer").addClass("active"),t("#layer").fadeOut(),t("#payment-popup").hide()})),t(".book-list-filter").length&&(t("#selectType").change((function(){a("list1","selectType","bookType1","bookType2","bookType3","bookType4"),t(".book-list-filter .reset").show()})),t(".book-list-filter .checkbox-line input").change((function(){a("list1","selectType","bookType1","bookType2","bookType3","bookType4"),t(".book-list-filter .reset").show()})),t(".book-list-filter .reset a").click((function(e){e.preventDefault(),t(".book-list-filter form")[0].reset(),t(".book-list-filter select").change(),o(),a("list1","selectType","bookType1","bookType2","bookType3","bookType4"),t(".book-list-filter .reset").hide()})),t(".book-list-filter .reset").hide()),t(".select select").change((function(){t(this).prev().html(t(t(this)[0].options[t(this)[0].selectedIndex]).html())})),t(document).width()<600&&t(".group-mobile .col .title").click((function(){t(this).next().toggle()}))}));var e=0;function s(i){var s=Math.max(t("html").scrollTop(),t("body").scrollTop());if(i){var n=t(".fixed-section").parent(),o=t(".fixed-section").attr("data-link");o&&(n=t("#"+o)),s>t(".fixed-section").parent().offset().top+n.height()-t(".fixed-section > *").height()?t(".fixed-section").addClass("isFixedBottom"):s>t(".fixed-section").offset().top?(t(".fixed-section").removeClass("isFixedBottom").addClass("isFixed"),t(".fixed-section").css({height:""})):(t(".fixed-section").removeClass("isFixedBottom").removeClass("isFixed"),t(".fixed-section").css({height:""}))}e<=250&&s>250?(t("body").addClass("fixed-header"),t(".fixed-header .subpage-toolbar-right").css({top:-100}).animate({top:0}),t(".fixed-header .logo").css({top:-100}).animate({top:0}),t(".fixed-header header.header .user-tools").css({top:-80}).animate({top:23})):e>250&&s<=250&&(t(".fixed-header .subpage-toolbar-right").stop().css({top:""}),t(".fixed-header .logo").stop().css({top:""}),t(".fixed-header header.header .user-tools").stop().css({top:""}),t("body").removeClass("fixed-header")),e=s}function n(){for(var e=t(".book-list-group .checkbox-line input"),i=t(".book-list-group .list li"),s=0;s0&&(p=".category-"+r),l&&(d[d.length]="li"+p+".class-book"),h&&(d[d.length]="li"+p+".class-ebook"),c&&(d[d.length]="li"+p+".class-audio"),u&&(d[d.length]="li"+p+".class-video"),t("#"+e).find(d.join(", ")).show(),t("#"+e).animate({left:0})}}).call(this,i("EVdn"))},SnCB:function(t,e,i){(function(t){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}i("pNMO"),i("4Brf"),i("0oug"),i("yXV3"),i("4mDm"),i("sMBO"),i("07d7"),i("rB9j"),i("PKPk"),i("UxlC"),i("3bBZ");var s=function(i){if(data=i,"object"!==("undefined"==typeof data?"undefined":e(data))&&(data=JSON.parse(data)),window._users=data,data.ile>0&&(t("#koszykbox").html(data.ile),t("#koszykboxFixedHeader").html('

KOSZYK '+data.suma+' (

'+data.ile+'

)

')),t("#ile-n-archiwum-ebook").html(" ("+data.biblioteka.ebooks+")"),t("#ile-n-archiwum-audiobook").html(" ("+data.biblioteka.audiobooks+")"),t("#ile-n-archiwum-kurs").html(" ("+data.biblioteka.courses+")"),t("#ile-kurs-dodatki").html(" ("+data.biblioteka.addition+")"),t(".ile-archiwum-ebook").html(" ("+data.archiwum.ebooks+")"),t(".ile-archiwum-audiobook").html(" ("+data.archiwum.audiobooks+")"),t(".ile-archiwum-kursy").html(" ("+data.archiwum.courses+")"),t("#ile-prezenty").html(" ("+data.prezenty+")"),t("#ile-kurs-materialy").html(" ("+data.materialy+")"),t("#ile-sample").html(" ("+data.sample+")"),data.login){data.sample>0&&""!=data.last_sample&&!t.cookie("hidesampleinfo")&&(t(".sample-info .sample-info-title").html(data.last_sample),t(".sample-info").show()),"undefined"!=typeof ga&&(ga("set","&uid",data.uid),ga("set","dimension1",data.uid)),t("#userAccount").show();var s=data.name?data.name:"";t("#helloUser").html("Witaj "+s+""),t(".your-profile-account").addClass("logged-in"),t(".login-links p").html(""),t("#logOnMobile").html(""),t("#userTwojeBiblioteka").html("Twoja biblioteka"),t("#userArchiwum").html("Archiwum"),t("#userPrezenty").html("Prezenty "),t("#ile-prezenty-mobile").html("("+data.prezenty+")"),t("#userTwojePolki").html("Twoje półki"),t("#userTwojeKonto").html("Twoje konto"),t("#userEdycjaKonta").html("Edycja konta"),data.biblioteka&&(0==data.biblioteka.ebooks&&t("#ile-n-archiwum-ebook2").closest("li").addClass("disable"),t("#ile-n-archiwum-ebook2").html("("+data.biblioteka.ebooks+")"),0==data.biblioteka.audiobooks&&t("#ile-n-archiwum-audiobook2").closest("li").addClass("disable"),t("#ile-n-archiwum-audiobook2").html("("+data.biblioteka.audiobooks+")"),0==data.biblioteka.courses&&t("#ile-n-archiwum-kurs2").closest("li").addClass("disable"),t("#ile-n-archiwum-kurs2").html("("+data.biblioteka.courses+")")),0==data.prezenty&&t("#ile-prezenty2").closest("li").addClass("disable"),t("#ile-prezenty2").html("("+data.prezenty+")"),data.sample?t("#ile-sample2").html("("+data.sample+")"):t("#ile-sample2").closest("li").addClass("disable")}};"_users"in window?s(window._users):t.ajax({url:"/api/users/info",method:"get",success:s});var n=window._bookstore;t("p:contains('@"+n+"')").each((function(){if(-1==t(this).html().indexOf("href")){t(this).html(t(this).html().replace(/\w+@\w+\.\w{2}/,"$&"))}})),window.hideEmail=function(t){return t.replace(/(.{0})(.*)(?=@)/,(function(t,e,i){for(var s=0;s-1?t(this).text()!=t(this).attr("href").substring(7,t(this).attr("href").indexOf("?"))&&(t(this).text(t(this).attr("href").substring(7,t(this).attr("href").indexOf("?"))),e.preventDefault(),e.stopPropagation()):t(this).text()!=t(this).attr("href").substring(7)&&(t(this).text(t(this).attr("href").substring(7)),e.preventDefault(),e.stopPropagation())}))}))}).call(this,i("EVdn"))},SxSM:function(t,e,i){var s,n,o;function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)} /*! jPlayer 2.9.2 for jQuery ~ (c) 2009-2014 Happyworm Ltd ~ MIT License */i("pNMO"),i("4Brf"),i("0oug"),i("ma9I"),i("yXV3"),i("4mDm"),i("oVuX"),i("+2oP"),i("pDQq"),i("qePV"),i("07d7"),i("rB9j"),i("PKPk"),i("OM9Z"),i("UxlC"),i("EnZy"),i("3bBZ"),n=[i("EVdn")],void 0===(o="function"==typeof(s=function(t,e){t.fn.jPlayer=function(i){var s="jPlayer",n="string"==typeof i,o=Array.prototype.slice.call(arguments,1),a=this;return i=!n&&o.length?t.extend.apply(null,[!0,i].concat(o)):i,n&&"_"===i.charAt(0)||this.each(n?function(){var n=t(this).data(s),r=n&&t.isFunction(n[i])?n[i].apply(n,o):n;return r!==n&&r!==e?(a=r,!1):void 0}:function(){var e=t(this).data(s);e?e.option(i||{}):t(this).data(s,new t.jPlayer(i,this))}),a},t.jPlayer=function(e,i){if(arguments.length){this.element=t(i),this.options=t.extend(!0,{},this.options,e);var s=this;this.element.bind("remove.jPlayer",(function(){s.destroy()})),this._init()}},"function"!=typeof t.fn.stop&&(t.fn.stop=function(){}),t.jPlayer.emulateMethods="load play pause",t.jPlayer.emulateStatus="src readyState networkState currentTime duration paused ended playbackRate",t.jPlayer.emulateOptions="muted volume",t.jPlayer.reservedEvent="ready flashreset resize repeat error warning",t.jPlayer.event={},t.each(["ready","setmedia","flashreset","resize","repeat","click","error","warning","loadstart","progress","suspend","abort","emptied","stalled","play","pause","loadedmetadata","loadeddata","waiting","playing","canplay","canplaythrough","seeking","seeked","timeupdate","ended","ratechange","durationchange","volumechange"],(function(){t.jPlayer.event[this]="jPlayer_"+this})),t.jPlayer.htmlEvent=["loadstart","abort","emptied","stalled","loadedmetadata","canplay","canplaythrough"],t.jPlayer.pause=function(){t.jPlayer.prototype.destroyRemoved(),t.each(t.jPlayer.prototype.instances,(function(t,e){e.data("jPlayer").status.srcSet&&e.jPlayer("pause")}))},t.jPlayer.timeFormat={showHour:!1,showMin:!0,showSec:!0,padHour:!1,padMin:!0,padSec:!0,sepHour:":",sepMin:":",sepSec:""};var i=function(){this.init()};i.prototype={init:function(){this.options={timeFormat:t.jPlayer.timeFormat}},time:function(t){t=t&&"number"==typeof t?t:0;var e=new Date(1e3*t),i=e.getUTCHours(),s=this.options.timeFormat.showHour?e.getUTCMinutes():e.getUTCMinutes()+60*i,n=this.options.timeFormat.showMin?e.getUTCSeconds():e.getUTCSeconds()+60*s,o=this.options.timeFormat.padHour&&10>i?"0"+i:i,a=this.options.timeFormat.padMin&&10>s?"0"+s:s,r=this.options.timeFormat.padSec&&10>n?"0"+n:n,l="";return l+=this.options.timeFormat.showHour?o+this.options.timeFormat.sepHour:"",(l+=this.options.timeFormat.showMin?a+this.options.timeFormat.sepMin:"")+(this.options.timeFormat.showSec?r+this.options.timeFormat.sepSec:"")}};var s=new i;t.jPlayer.convertTime=function(t){return s.time(t)},t.jPlayer.uaBrowser=function(t){var e=t.toLowerCase(),i=/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(e)||[];return{browser:i[1]||"",version:i[2]||"0"}},t.jPlayer.uaPlatform=function(t){var e=t.toLowerCase(),i=/(ipad|iphone|ipod|android|blackberry|playbook|windows ce|webos)/.exec(e)||[],s=/(ipad|playbook)/.exec(e)||!/(mobile)/.exec(e)&&/(android)/.exec(e)||[];return i[1]&&(i[1]=i[1].replace(/\s/g,"_")),{platform:i[1]||"",tablet:s[1]||""}},t.jPlayer.browser={},t.jPlayer.platform={};var n=t.jPlayer.uaBrowser(navigator.userAgent);n.browser&&(t.jPlayer.browser[n.browser]=!0,t.jPlayer.browser.version=n.version);var o=t.jPlayer.uaPlatform(navigator.userAgent);o.platform&&(t.jPlayer.platform[o.platform]=!0,t.jPlayer.platform.mobile=!o.tablet,t.jPlayer.platform.tablet=!!o.tablet),t.jPlayer.getDocMode=function(){var e;return t.jPlayer.browser.msie&&(document.documentMode?e=document.documentMode:(e=5,document.compatMode&&"CSS1Compat"===document.compatMode&&(e=7))),e},t.jPlayer.browser.documentMode=t.jPlayer.getDocMode(),t.jPlayer.nativeFeatures={init:function(){var t,e,i,s=document,n=s.createElement("video"),o={w3c:["fullscreenEnabled","fullscreenElement","requestFullscreen","exitFullscreen","fullscreenchange","fullscreenerror"],moz:["mozFullScreenEnabled","mozFullScreenElement","mozRequestFullScreen","mozCancelFullScreen","mozfullscreenchange","mozfullscreenerror"],webkit:["","webkitCurrentFullScreenElement","webkitRequestFullScreen","webkitCancelFullScreen","webkitfullscreenchange",""],webkitVideo:["webkitSupportsFullscreen","webkitDisplayingFullscreen","webkitEnterFullscreen","webkitExitFullscreen","",""],ms:["","msFullscreenElement","msRequestFullscreen","msExitFullscreen","MSFullscreenChange","MSFullscreenError"]},a=["w3c","moz","webkit","webkitVideo","ms"];for(this.fullscreen=t={support:{w3c:!!s[o.w3c[0]],moz:!!s[o.moz[0]],webkit:"function"==typeof s[o.webkit[3]],webkitVideo:"function"==typeof n[o.webkitVideo[2]],ms:"function"==typeof n[o.ms[2]]},used:{}},e=0,i=a.length;i>e;e++){var r=a[e];if(t.support[r]){t.spec=r,t.used[r]=!0;break}}if(t.spec){var l=o[t.spec];t.api={fullscreenEnabled:!0,fullscreenElement:function(t){return(t=t||s)[l[1]]},requestFullscreen:function(t){return t[l[2]]()},exitFullscreen:function(t){return(t=t||s)[l[3]]()}},t.event={fullscreenchange:l[4],fullscreenerror:l[5]}}else t.api={fullscreenEnabled:!1,fullscreenElement:function(){return null},requestFullscreen:function(){},exitFullscreen:function(){}},t.event={}}},t.jPlayer.nativeFeatures.init(),t.jPlayer.focus=null,t.jPlayer.keyIgnoreElementNames="A INPUT TEXTAREA SELECT BUTTON";var r=function(e){var i,s=t.jPlayer.focus;s&&(t.each(t.jPlayer.keyIgnoreElementNames.split(/\s+/g),(function(t,s){return e.target.nodeName.toUpperCase()===s.toUpperCase()?(i=!0,!1):void 0})),i||t.each(s.options.keyBindings,(function(i,n){return n&&t.isFunction(n.fn)&&("number"==typeof n.key&&e.which===n.key||"string"==typeof n.key&&e.key===n.key)?(e.preventDefault(),n.fn(s),!1):void 0})))};t.jPlayer.keys=function(e){var i="keydown.jPlayer";t(document.documentElement).unbind(i),e&&t(document.documentElement).bind(i,r)},t.jPlayer.keys(!0),t.jPlayer.prototype={count:0,version:{script:"2.9.2",needFlash:"2.9.0",flash:"unknown"},options:{swfPath:"js",solution:"html, flash",supplied:"mp3",auroraFormats:"wav",preload:"metadata",volume:.8,muted:!1,remainingDuration:!1,toggleDuration:!1,captureDuration:!0,playbackRate:1,defaultPlaybackRate:1,minPlaybackRate:.5,maxPlaybackRate:4,wmode:"opaque",backgroundColor:"#000000",cssSelectorAncestor:"#jp_container_1",cssSelector:{videoPlay:".jp-video-play",play:".jp-play",pause:".jp-pause",stop:".jp-stop",seekBar:".jp-seek-bar",playBar:".jp-play-bar",mute:".jp-mute",unmute:".jp-unmute",volumeBar:".jp-volume-bar",volumeBarValue:".jp-volume-bar-value",volumeMax:".jp-volume-max",playbackRateBar:".jp-playback-rate-bar",playbackRateBarValue:".jp-playback-rate-bar-value",currentTime:".jp-current-time",duration:".jp-duration",title:".jp-title",fullScreen:".jp-full-screen",restoreScreen:".jp-restore-screen",repeat:".jp-repeat",repeatOff:".jp-repeat-off",gui:".jp-gui",noSolution:".jp-no-solution"},stateClass:{playing:"jp-state-playing",seeking:"jp-state-seeking",muted:"jp-state-muted",looped:"jp-state-looped",fullScreen:"jp-state-full-screen",noVolume:"jp-state-no-volume"},useStateClassSkin:!1,autoBlur:!0,smoothPlayBar:!1,fullScreen:!1,fullWindow:!1,autohide:{restored:!1,full:!0,fadeIn:200,fadeOut:600,hold:1e3},loop:!1,repeat:function(e){e.jPlayer.options.loop?t(this).unbind(".jPlayerRepeat").bind(t.jPlayer.event.ended+".jPlayer.jPlayerRepeat",(function(){t(this).jPlayer("play")})):t(this).unbind(".jPlayerRepeat")},nativeVideoControls:{},noFullWindow:{msie:/msie [0-6]\./,ipad:/ipad.*?os [0-4]\./,iphone:/iphone/,ipod:/ipod/,android_pad:/android [0-3]\.(?!.*?mobile)/,android_phone:/(?=.*android)(?!.*chrome)(?=.*mobile)/,blackberry:/blackberry/,windows_ce:/windows ce/,iemobile:/iemobile/,webos:/webos/},noVolume:{ipad:/ipad/,iphone:/iphone/,ipod:/ipod/,android_pad:/android(?!.*?mobile)/,android_phone:/android.*?mobile/,blackberry:/blackberry/,windows_ce:/windows ce/,iemobile:/iemobile/,webos:/webos/,playbook:/playbook/},timeFormat:{},keyEnabled:!1,audioFullScreen:!1,keyBindings:{play:{key:80,fn:function(t){t.status.paused?t.play():t.pause()}},fullScreen:{key:70,fn:function(t){(t.status.video||t.options.audioFullScreen)&&t._setOption("fullScreen",!t.options.fullScreen)}},muted:{key:77,fn:function(t){t._muted(!t.options.muted)}},volumeUp:{key:190,fn:function(t){t.volume(t.options.volume+.1)}},volumeDown:{key:188,fn:function(t){t.volume(t.options.volume-.1)}},loop:{key:76,fn:function(t){t._loop(!t.options.loop)}}},verticalVolume:!1,verticalPlaybackRate:!1,globalVolume:!1,idPrefix:"jp",noConflict:"jQuery",emulateHtml:!1,consoleAlerts:!0,errorAlerts:!1,warningAlerts:!1},optionsAudio:{size:{width:"0px",height:"0px",cssClass:""},sizeFull:{width:"0px",height:"0px",cssClass:""}},optionsVideo:{size:{width:"480px",height:"270px",cssClass:"jp-video-270p"},sizeFull:{width:"100%",height:"100%",cssClass:"jp-video-full"}},instances:{},status:{src:"",media:{},paused:!0,format:{},formatType:"",waitForPlay:!0,waitForLoad:!0,srcSet:!1,video:!1,seekPercent:0,currentPercentRelative:0,currentPercentAbsolute:0,currentTime:0,duration:0,remaining:0,videoWidth:0,videoHeight:0,readyState:0,networkState:0,playbackRate:1,ended:0},internal:{ready:!1},solution:{html:!0,aurora:!0,flash:!0},format:{mp3:{codec:"audio/mpeg",flashCanPlay:!0,media:"audio"},m4a:{codec:'audio/mp4; codecs="mp4a.40.2"',flashCanPlay:!0,media:"audio"},m3u8a:{codec:'application/vnd.apple.mpegurl; codecs="mp4a.40.2"',flashCanPlay:!1,media:"audio"},m3ua:{codec:"audio/mpegurl",flashCanPlay:!1,media:"audio"},oga:{codec:'audio/ogg; codecs="vorbis, opus"',flashCanPlay:!1,media:"audio"},flac:{codec:"audio/x-flac",flashCanPlay:!1,media:"audio"},wav:{codec:'audio/wav; codecs="1"',flashCanPlay:!1,media:"audio"},webma:{codec:'audio/webm; codecs="vorbis"',flashCanPlay:!1,media:"audio"},fla:{codec:"audio/x-flv",flashCanPlay:!0,media:"audio"},rtmpa:{codec:'audio/rtmp; codecs="rtmp"',flashCanPlay:!0,media:"audio"},m4v:{codec:'video/mp4; codecs="avc1.42E01E, mp4a.40.2"',flashCanPlay:!0,media:"video"},m3u8v:{codec:'application/vnd.apple.mpegurl; codecs="avc1.42E01E, mp4a.40.2"',flashCanPlay:!1,media:"video"},m3uv:{codec:"audio/mpegurl",flashCanPlay:!1,media:"video"},ogv:{codec:'video/ogg; codecs="theora, vorbis"',flashCanPlay:!1,media:"video"},webmv:{codec:'video/webm; codecs="vorbis, vp8"',flashCanPlay:!1,media:"video"},flv:{codec:"video/x-flv",flashCanPlay:!0,media:"video"},rtmpv:{codec:'video/rtmp; codecs="rtmp"',flashCanPlay:!0,media:"video"}},_init:function(){var i=this;if(this.element.empty(),this.status=t.extend({},this.status),this.internal=t.extend({},this.internal),this.options.timeFormat=t.extend({},t.jPlayer.timeFormat,this.options.timeFormat),this.internal.cmdsIgnored=t.jPlayer.platform.ipad||t.jPlayer.platform.iphone||t.jPlayer.platform.ipod,this.internal.domNode=this.element.get(0),this.options.keyEnabled&&!t.jPlayer.focus&&(t.jPlayer.focus=this),this.androidFix={setMedia:!1,play:!1,pause:!1,time:NaN},t.jPlayer.platform.android&&(this.options.preload="auto"!==this.options.preload?"metadata":"auto"),this.formats=[],this.solutions=[],this.require={},this.htmlElement={},this.html={},this.html.audio={},this.html.video={},this.aurora={},this.aurora.formats=[],this.aurora.properties=[],this.flash={},this.css={},this.css.cs={},this.css.jq={},this.ancestorJq=[],this.options.volume=this._limitValue(this.options.volume,0,1),t.each(this.options.supplied.toLowerCase().split(","),(function(e,s){var n=s.replace(/^\s+|\s+$/g,"");if(i.format[n]){var o=!1;t.each(i.formats,(function(t,e){return n===e?(o=!0,!1):void 0})),o||i.formats.push(n)}})),t.each(this.options.solution.toLowerCase().split(","),(function(e,s){var n=s.replace(/^\s+|\s+$/g,"");if(i.solution[n]){var o=!1;t.each(i.solutions,(function(t,e){return n===e?(o=!0,!1):void 0})),o||i.solutions.push(n)}})),t.each(this.options.auroraFormats.toLowerCase().split(","),(function(e,s){var n=s.replace(/^\s+|\s+$/g,"");if(i.format[n]){var o=!1;t.each(i.aurora.formats,(function(t,e){return n===e?(o=!0,!1):void 0})),o||i.aurora.formats.push(n)}})),this.internal.instance="jp_"+this.count,this.instances[this.internal.instance]=this.element,this.element.attr("id")||this.element.attr("id",this.options.idPrefix+"_jplayer_"+this.count),this.internal.self=t.extend({},{id:this.element.attr("id"),jq:this.element}),this.internal.audio=t.extend({},{id:this.options.idPrefix+"_audio_"+this.count,jq:e}),this.internal.video=t.extend({},{id:this.options.idPrefix+"_video_"+this.count,jq:e}),this.internal.flash=t.extend({},{id:this.options.idPrefix+"_flash_"+this.count,jq:e,swf:this.options.swfPath+(".swf"!==this.options.swfPath.toLowerCase().slice(-4)?(this.options.swfPath&&"/"!==this.options.swfPath.slice(-1)?"/":"")+"jquery.jplayer.swf":"")}),this.internal.poster=t.extend({},{id:this.options.idPrefix+"_poster_"+this.count,jq:e}),t.each(t.jPlayer.event,(function(t,s){i.options[t]!==e&&(i.element.bind(s+".jPlayer",i.options[t]),i.options[t]=e)})),this.require.audio=!1,this.require.video=!1,t.each(this.formats,(function(t,e){i.require[i.format[e].media]=!0})),this.options=this.require.video?t.extend(!0,{},this.optionsVideo,this.options):t.extend(!0,{},this.optionsAudio,this.options),this._setSize(),this.status.nativeVideoControls=this._uaBlocklist(this.options.nativeVideoControls),this.status.noFullWindow=this._uaBlocklist(this.options.noFullWindow),this.status.noVolume=this._uaBlocklist(this.options.noVolume),t.jPlayer.nativeFeatures.fullscreen.api.fullscreenEnabled&&this._fullscreenAddEventListeners(),this._restrictNativeVideoControls(),this.htmlElement.poster=document.createElement("img"),this.htmlElement.poster.id=this.internal.poster.id,this.htmlElement.poster.onload=function(){(!i.status.video||i.status.waitForPlay)&&i.internal.poster.jq.show()},this.element.append(this.htmlElement.poster),this.internal.poster.jq=t("#"+this.internal.poster.id),this.internal.poster.jq.css({width:this.status.width,height:this.status.height}),this.internal.poster.jq.hide(),this.internal.poster.jq.bind("click.jPlayer",(function(){i._trigger(t.jPlayer.event.click)})),this.html.audio.available=!1,this.require.audio&&(this.htmlElement.audio=document.createElement("audio"),this.htmlElement.audio.id=this.internal.audio.id,this.html.audio.available=!!this.htmlElement.audio.canPlayType&&this._testCanPlayType(this.htmlElement.audio)),this.html.video.available=!1,this.require.video&&(this.htmlElement.video=document.createElement("video"),this.htmlElement.video.id=this.internal.video.id,this.html.video.available=!!this.htmlElement.video.canPlayType&&this._testCanPlayType(this.htmlElement.video)),this.flash.available=this._checkForFlash(10.1),this.html.canPlay={},this.aurora.canPlay={},this.flash.canPlay={},t.each(this.formats,(function(e,s){i.html.canPlay[s]=i.html[i.format[s].media].available&&""!==i.htmlElement[i.format[s].media].canPlayType(i.format[s].codec),i.aurora.canPlay[s]=t.inArray(s,i.aurora.formats)>-1,i.flash.canPlay[s]=i.format[s].flashCanPlay&&i.flash.available})),this.html.desired=!1,this.aurora.desired=!1,this.flash.desired=!1,t.each(this.solutions,(function(e,s){if(0===e)i[s].desired=!0;else{var n=!1,o=!1;t.each(i.formats,(function(t,e){i[i.solutions[0]].canPlay[e]&&("video"===i.format[e].media?o=!0:n=!0)})),i[s].desired=i.require.audio&&!n||i.require.video&&!o}})),this.html.support={},this.aurora.support={},this.flash.support={},t.each(this.formats,(function(t,e){i.html.support[e]=i.html.canPlay[e]&&i.html.desired,i.aurora.support[e]=i.aurora.canPlay[e]&&i.aurora.desired,i.flash.support[e]=i.flash.canPlay[e]&&i.flash.desired})),this.html.used=!1,this.aurora.used=!1,this.flash.used=!1,t.each(this.solutions,(function(e,s){t.each(i.formats,(function(t,e){return i[s].support[e]?(i[s].used=!0,!1):void 0}))})),this._resetActive(),this._resetGate(),this._cssSelectorAncestor(this.options.cssSelectorAncestor),this.html.used||this.aurora.used||this.flash.used?this.css.jq.noSolution.length&&this.css.jq.noSolution.hide():(this._error({type:t.jPlayer.error.NO_SOLUTION,context:"{solution:'"+this.options.solution+"', supplied:'"+this.options.supplied+"'}",message:t.jPlayer.errorMsg.NO_SOLUTION,hint:t.jPlayer.errorHint.NO_SOLUTION}),this.css.jq.noSolution.length&&this.css.jq.noSolution.show()),this.flash.used){var s,n="jQuery="+encodeURI(this.options.noConflict)+"&id="+encodeURI(this.internal.self.id)+"&vol="+this.options.volume+"&muted="+this.options.muted;if(t.jPlayer.browser.msie&&(Number(t.jPlayer.browser.version)<9||t.jPlayer.browser.documentMode<9)){var o='',a=['','','','',''];s=document.createElement(o);for(var r=0;r0&&(s.internal.cmdsIgnored=!1),s._getHtmlStatus(e),s._updateInterface(),s._trigger(t.jPlayer.event.progress))}),!1),e.addEventListener("loadeddata",(function(){i.gate&&(s.androidFix.setMedia=!1,s.androidFix.play&&(s.androidFix.play=!1,s.play(s.androidFix.time)),s.androidFix.pause&&(s.androidFix.pause=!1,s.pause(s.androidFix.time)),s._trigger(t.jPlayer.event.loadeddata))}),!1),e.addEventListener("timeupdate",(function(){i.gate&&(s._getHtmlStatus(e),s._updateInterface(),s._trigger(t.jPlayer.event.timeupdate))}),!1),e.addEventListener("durationchange",(function(){i.gate&&(s._getHtmlStatus(e),s._updateInterface(),s._trigger(t.jPlayer.event.durationchange))}),!1),e.addEventListener("play",(function(){i.gate&&(s._updateButtons(!0),s._html_checkWaitForPlay(),s._trigger(t.jPlayer.event.play))}),!1),e.addEventListener("playing",(function(){i.gate&&(s._updateButtons(!0),s._seeked(),s._trigger(t.jPlayer.event.playing))}),!1),e.addEventListener("pause",(function(){i.gate&&(s._updateButtons(!1),s._trigger(t.jPlayer.event.pause))}),!1),e.addEventListener("waiting",(function(){i.gate&&(s._seeking(),s._trigger(t.jPlayer.event.waiting))}),!1),e.addEventListener("seeking",(function(){i.gate&&(s._seeking(),s._trigger(t.jPlayer.event.seeking))}),!1),e.addEventListener("seeked",(function(){i.gate&&(s._seeked(),s._trigger(t.jPlayer.event.seeked))}),!1),e.addEventListener("volumechange",(function(){i.gate&&(s.options.volume=e.volume,s.options.muted=e.muted,s._updateMute(),s._updateVolume(),s._trigger(t.jPlayer.event.volumechange))}),!1),e.addEventListener("ratechange",(function(){i.gate&&(s.options.defaultPlaybackRate=e.defaultPlaybackRate,s.options.playbackRate=e.playbackRate,s._updatePlaybackRate(),s._trigger(t.jPlayer.event.ratechange))}),!1),e.addEventListener("suspend",(function(){i.gate&&(s._seeked(),s._trigger(t.jPlayer.event.suspend))}),!1),e.addEventListener("ended",(function(){i.gate&&(t.jPlayer.browser.webkit||(s.htmlElement.media.currentTime=0),s.htmlElement.media.pause(),s._updateButtons(!1),s._getHtmlStatus(e,!0),s._updateInterface(),s._trigger(t.jPlayer.event.ended))}),!1),e.addEventListener("error",(function(){i.gate&&(s._updateButtons(!1),s._seeked(),s.status.srcSet&&(clearTimeout(s.internal.htmlDlyCmdId),s.status.waitForLoad=!0,s.status.waitForPlay=!0,s.status.video&&!s.status.nativeVideoControls&&s.internal.video.jq.css({width:"0px",height:"0px"}),s._validString(s.status.media.poster)&&!s.status.nativeVideoControls&&s.internal.poster.jq.show(),s.css.jq.videoPlay.length&&s.css.jq.videoPlay.show(),s._error({type:t.jPlayer.error.URL,context:s.status.src,message:t.jPlayer.errorMsg.URL,hint:t.jPlayer.errorHint.URL})))}),!1),t.each(t.jPlayer.htmlEvent,(function(n,o){e.addEventListener(this,(function(){i.gate&&s._trigger(t.jPlayer.event[o])}),!1)}))},_addAuroraEventListeners:function(e,i){var s=this;e.volume=100*this.options.volume,e.on("progress",(function(){i.gate&&(s.internal.cmdsIgnored&&this.readyState>0&&(s.internal.cmdsIgnored=!1),s._getAuroraStatus(e),s._updateInterface(),s._trigger(t.jPlayer.event.progress),e.duration>0&&s._trigger(t.jPlayer.event.timeupdate))}),!1),e.on("ready",(function(){i.gate&&s._trigger(t.jPlayer.event.loadeddata)}),!1),e.on("duration",(function(){i.gate&&(s._getAuroraStatus(e),s._updateInterface(),s._trigger(t.jPlayer.event.durationchange))}),!1),e.on("end",(function(){i.gate&&(s._updateButtons(!1),s._getAuroraStatus(e,!0),s._updateInterface(),s._trigger(t.jPlayer.event.ended))}),!1),e.on("error",(function(){i.gate&&(s._updateButtons(!1),s._seeked(),s.status.srcSet&&(s.status.waitForLoad=!0,s.status.waitForPlay=!0,s.status.video&&!s.status.nativeVideoControls&&s.internal.video.jq.css({width:"0px",height:"0px"}),s._validString(s.status.media.poster)&&!s.status.nativeVideoControls&&s.internal.poster.jq.show(),s.css.jq.videoPlay.length&&s.css.jq.videoPlay.show(),s._error({type:t.jPlayer.error.URL,context:s.status.src,message:t.jPlayer.errorMsg.URL,hint:t.jPlayer.errorHint.URL})))}),!1)},_getHtmlStatus:function(t,e){var i=0,s=0,n=0,o=0;isFinite(t.duration)&&(this.status.duration=t.duration),i=t.currentTime,s=this.status.duration>0?100*i/this.status.duration:0,"object"==a(t.seekable)&&t.seekable.length>0?(n=this.status.duration>0?100*t.seekable.end(t.seekable.length-1)/this.status.duration:100,o=this.status.duration>0?100*t.currentTime/t.seekable.end(t.seekable.length-1):0):(n=100,o=s),e&&(i=0,o=0,s=0),this.status.seekPercent=n,this.status.currentPercentRelative=o,this.status.currentPercentAbsolute=s,this.status.currentTime=i,this.status.remaining=this.status.duration-this.status.currentTime,this.status.videoWidth=t.videoWidth,this.status.videoHeight=t.videoHeight,this.status.readyState=t.readyState,this.status.networkState=t.networkState,this.status.playbackRate=t.playbackRate,this.status.ended=t.ended},_getAuroraStatus:function(t,e){var i=0,s=0,n=0,o=0;this.status.duration=t.duration/1e3,i=t.currentTime/1e3,s=this.status.duration>0?100*i/this.status.duration:0,t.buffered>0?(n=this.status.duration>0?t.buffered*this.status.duration/this.status.duration:100,o=this.status.duration>0?i/(t.buffered*this.status.duration):0):(n=100,o=s),e&&(i=0,o=0,s=0),this.status.seekPercent=n,this.status.currentPercentRelative=o,this.status.currentPercentAbsolute=s,this.status.currentTime=i,this.status.remaining=this.status.duration-this.status.currentTime,this.status.readyState=4,this.status.networkState=0,this.status.playbackRate=1,this.status.ended=!1},_resetStatus:function(){this.status=t.extend({},this.status,t.jPlayer.prototype.status)},_trigger:function(e,i,s){var n=t.Event(e);n.jPlayer={},n.jPlayer.version=t.extend({},this.version),n.jPlayer.options=t.extend(!0,{},this.options),n.jPlayer.status=t.extend(!0,{},this.status),n.jPlayer.html=t.extend(!0,{},this.html),n.jPlayer.aurora=t.extend(!0,{},this.aurora),n.jPlayer.flash=t.extend(!0,{},this.flash),i&&(n.jPlayer.error=t.extend({},i)),s&&(n.jPlayer.warning=t.extend({},s)),this.element.trigger(n)},jPlayerFlashEvent:function(e,i){if(e===t.jPlayer.event.ready)if(this.internal.ready){if(this.flash.gate){if(this.status.srcSet){var s=this.status.currentTime,n=this.status.paused;this.setMedia(this.status.media),this.volumeWorker(this.options.volume),s>0&&(n?this.pause(s):this.play(s))}this._trigger(t.jPlayer.event.flashreset)}}else this.internal.ready=!0,this.internal.flash.jq.css({width:"0px",height:"0px"}),this.version.flash=i.version,this.version.needFlash!==this.version.flash&&this._error({type:t.jPlayer.error.VERSION,context:this.version.flash,message:t.jPlayer.errorMsg.VERSION+this.version.flash,hint:t.jPlayer.errorHint.VERSION}),this._trigger(t.jPlayer.event.repeat),this._trigger(e);if(this.flash.gate)switch(e){case t.jPlayer.event.progress:case t.jPlayer.event.timeupdate:this._getFlashStatus(i),this._updateInterface(),this._trigger(e);break;case t.jPlayer.event.play:this._seeked(),this._updateButtons(!0),this._trigger(e);break;case t.jPlayer.event.pause:case t.jPlayer.event.ended:this._updateButtons(!1),this._trigger(e);break;case t.jPlayer.event.click:this._trigger(e);break;case t.jPlayer.event.error:this.status.waitForLoad=!0,this.status.waitForPlay=!0,this.status.video&&this.internal.flash.jq.css({width:"0px",height:"0px"}),this._validString(this.status.media.poster)&&this.internal.poster.jq.show(),this.css.jq.videoPlay.length&&this.status.video&&this.css.jq.videoPlay.show(),this.status.video?this._flash_setVideo(this.status.media):this._flash_setAudio(this.status.media),this._updateButtons(!1),this._error({type:t.jPlayer.error.URL,context:i.src,message:t.jPlayer.errorMsg.URL,hint:t.jPlayer.errorHint.URL});break;case t.jPlayer.event.seeking:this._seeking(),this._trigger(e);break;case t.jPlayer.event.seeked:this._seeked(),this._trigger(e);break;case t.jPlayer.event.ready:break;default:this._trigger(e)}return!1},_getFlashStatus:function(t){this.status.seekPercent=t.seekPercent,this.status.currentPercentRelative=t.currentPercentRelative,this.status.currentPercentAbsolute=t.currentPercentAbsolute,this.status.currentTime=t.currentTime,this.status.duration=t.duration,this.status.remaining=t.duration-t.currentTime,this.status.videoWidth=t.videoWidth,this.status.videoHeight=t.videoHeight,this.status.readyState=4,this.status.networkState=0,this.status.playbackRate=1,this.status.ended=!1},_updateButtons:function(t){t===e?t=!this.status.paused:this.status.paused=!t,t?this.addStateClass("playing"):this.removeStateClass("playing"),!this.status.noFullWindow&&this.options.fullWindow?this.addStateClass("fullScreen"):this.removeStateClass("fullScreen"),this.options.loop?this.addStateClass("looped"):this.removeStateClass("looped"),this.css.jq.play.length&&this.css.jq.pause.length&&(t?(this.css.jq.play.hide(),this.css.jq.pause.show()):(this.css.jq.play.show(),this.css.jq.pause.hide())),this.css.jq.restoreScreen.length&&this.css.jq.fullScreen.length&&(this.status.noFullWindow?(this.css.jq.fullScreen.hide(),this.css.jq.restoreScreen.hide()):this.options.fullWindow?(this.css.jq.fullScreen.hide(),this.css.jq.restoreScreen.show()):(this.css.jq.fullScreen.show(),this.css.jq.restoreScreen.hide())),this.css.jq.repeat.length&&this.css.jq.repeatOff.length&&(this.options.loop?(this.css.jq.repeat.hide(),this.css.jq.repeatOff.show()):(this.css.jq.repeat.show(),this.css.jq.repeatOff.hide()))},_updateInterface:function(){this.css.jq.seekBar.length&&this.css.jq.seekBar.width(this.status.seekPercent+"%"),this.css.jq.playBar.length&&(this.options.smoothPlayBar?this.css.jq.playBar.stop().animate({width:this.status.currentPercentAbsolute+"%"},250,"linear"):this.css.jq.playBar.width(this.status.currentPercentRelative+"%")),this.css.jq.currentTime.length&&this._convertTime(this.status.currentTime)!==this.css.jq.currentTime.text()&&this.css.jq.currentTime.text(this._convertTime(this.status.currentTime));var t="",e=this.status.duration,i=this.status.remaining;this.css.jq.duration.length&&("string"==typeof this.status.media.duration?t=this.status.media.duration:("number"==typeof this.status.media.duration&&(i=(e=this.status.media.duration)-this.status.currentTime),t=this.options.remainingDuration?(i>0?"-":"")+this._convertTime(i):this._convertTime(e)),t!==this.css.jq.duration.text()&&this.css.jq.duration.text(t))},_convertTime:i.prototype.time,_seeking:function(){this.css.jq.seekBar.length&&this.css.jq.seekBar.addClass("jp-seeking-bg"),this.addStateClass("seeking")},_seeked:function(){this.css.jq.seekBar.length&&this.css.jq.seekBar.removeClass("jp-seeking-bg"),this.removeStateClass("seeking")},_resetGate:function(){this.html.audio.gate=!1,this.html.video.gate=!1,this.aurora.gate=!1,this.flash.gate=!1},_resetActive:function(){this.html.active=!1,this.aurora.active=!1,this.flash.active=!1},_escapeHtml:function(t){return t.split("&").join("&").split("<").join("<").split(">").join(">").split('"').join(""")},_qualifyURL:function(t){var e=document.createElement("div");return e.innerHTML='x',e.firstChild.href},_absoluteMediaUrls:function(e){var i=this;return t.each(e,(function(t,s){s&&i.format[t]&&"data:"!==s.substr(0,5)&&(e[t]=i._qualifyURL(s))})),e},addStateClass:function(t){this.ancestorJq.length&&this.ancestorJq.addClass(this.options.stateClass[t])},removeStateClass:function(t){this.ancestorJq.length&&this.ancestorJq.removeClass(this.options.stateClass[t])},setMedia:function(e){var i=this,s=!1,n=this.status.media.poster!==e.poster;this._resetMedia(),this._resetGate(),this._resetActive(),this.androidFix.setMedia=!1,this.androidFix.play=!1,this.androidFix.pause=!1,e=this._absoluteMediaUrls(e),t.each(this.formats,(function(n,o){var a="video"===i.format[o].media;return t.each(i.solutions,(function(n,r){if(i[r].support[o]&&i._validString(e[o])){var l="html"===r,h="aurora"===r;return a?(l?(i.html.video.gate=!0,i._html_setVideo(e),i.html.active=!0):(i.flash.gate=!0,i._flash_setVideo(e),i.flash.active=!0),i.css.jq.videoPlay.length&&i.css.jq.videoPlay.show(),i.status.video=!0):(l?(i.html.audio.gate=!0,i._html_setAudio(e),i.html.active=!0,t.jPlayer.platform.android&&(i.androidFix.setMedia=!0)):h?(i.aurora.gate=!0,i._aurora_setAudio(e),i.aurora.active=!0):(i.flash.gate=!0,i._flash_setAudio(e),i.flash.active=!0),i.css.jq.videoPlay.length&&i.css.jq.videoPlay.hide(),i.status.video=!1),s=!0,!1}})),!s&&void 0})),s?(this.status.nativeVideoControls&&this.html.video.gate||this._validString(e.poster)&&(n?this.htmlElement.poster.src=e.poster:this.internal.poster.jq.show()),"string"==typeof e.title&&(this.css.jq.title.length&&this.css.jq.title.html(e.title),this.htmlElement.audio&&this.htmlElement.audio.setAttribute("title",e.title),this.htmlElement.video&&this.htmlElement.video.setAttribute("title",e.title)),this.status.srcSet=!0,this.status.media=t.extend({},e),this._updateButtons(!1),this._updateInterface(),this._trigger(t.jPlayer.event.setmedia)):this._error({type:t.jPlayer.error.NO_SUPPORT,context:"{supplied:'"+this.options.supplied+"'}",message:t.jPlayer.errorMsg.NO_SUPPORT,hint:t.jPlayer.errorHint.NO_SUPPORT})},_resetMedia:function(){this._resetStatus(),this._updateButtons(!1),this._updateInterface(),this._seeked(),this.internal.poster.jq.hide(),clearTimeout(this.internal.htmlDlyCmdId),this.html.active?this._html_resetMedia():this.aurora.active?this._aurora_resetMedia():this.flash.active&&this._flash_resetMedia()},clearMedia:function(){this._resetMedia(),this.html.active?this._html_clearMedia():this.aurora.active?this._aurora_clearMedia():this.flash.active&&this._flash_clearMedia(),this._resetGate(),this._resetActive()},load:function(){this.status.srcSet?this.html.active?this._html_load():this.aurora.active?this._aurora_load():this.flash.active&&this._flash_load():this._urlNotSetError("load")},focus:function(){this.options.keyEnabled&&(t.jPlayer.focus=this)},play:function(t){"object"==a(t)&&this.options.useStateClassSkin&&!this.status.paused?this.pause(t):(t="number"==typeof t?t:NaN,this.status.srcSet?(this.focus(),this.html.active?this._html_play(t):this.aurora.active?this._aurora_play(t):this.flash.active&&this._flash_play(t)):this._urlNotSetError("play"))},videoPlay:function(){this.play()},pause:function(t){t="number"==typeof t?t:NaN,this.status.srcSet?this.html.active?this._html_pause(t):this.aurora.active?this._aurora_pause(t):this.flash.active&&this._flash_pause(t):this._urlNotSetError("pause")},tellOthers:function(e,i){var s=this,n="function"==typeof i,o=Array.prototype.slice.call(arguments);"string"==typeof e&&(n&&o.splice(1,1),t.jPlayer.prototype.destroyRemoved(),t.each(this.instances,(function(){s.element!==this&&(!n||i.call(this.data("jPlayer"),s))&&this.jPlayer.apply(this,o)})))},pauseOthers:function(t){this.tellOthers("pause",(function(){return this.status.srcSet}),t)},stop:function(){this.status.srcSet?this.html.active?this._html_pause(0):this.aurora.active?this._aurora_pause(0):this.flash.active&&this._flash_pause(0):this._urlNotSetError("stop")},playHead:function(t){t=this._limitValue(t,0,100),this.status.srcSet?this.html.active?this._html_playHead(t):this.aurora.active?this._aurora_playHead(t):this.flash.active&&this._flash_playHead(t):this._urlNotSetError("playHead")},_muted:function(t){this.mutedWorker(t),this.options.globalVolume&&this.tellOthers("mutedWorker",(function(){return this.options.globalVolume}),t)},mutedWorker:function(e){this.options.muted=e,this.html.used&&this._html_setProperty("muted",e),this.aurora.used&&this._aurora_mute(e),this.flash.used&&this._flash_mute(e),this.html.video.gate||this.html.audio.gate||(this._updateMute(e),this._updateVolume(this.options.volume),this._trigger(t.jPlayer.event.volumechange))},mute:function(t){"object"==a(t)&&this.options.useStateClassSkin&&this.options.muted?this._muted(!1):(t=t===e||!!t,this._muted(t))},unmute:function(t){t=t===e||!!t,this._muted(!t)},_updateMute:function(t){t===e&&(t=this.options.muted),t?this.addStateClass("muted"):this.removeStateClass("muted"),this.css.jq.mute.length&&this.css.jq.unmute.length&&(this.status.noVolume?(this.css.jq.mute.hide(),this.css.jq.unmute.hide()):t?(this.css.jq.mute.hide(),this.css.jq.unmute.show()):(this.css.jq.mute.show(),this.css.jq.unmute.hide()))},volume:function(t){this.volumeWorker(t),this.options.globalVolume&&this.tellOthers("volumeWorker",(function(){return this.options.globalVolume}),t)},volumeWorker:function(e){e=this._limitValue(e,0,1),this.options.volume=e,this.html.used&&this._html_setProperty("volume",e),this.aurora.used&&this._aurora_volume(e),this.flash.used&&this._flash_volume(e),this.html.video.gate||this.html.audio.gate||(this._updateVolume(e),this._trigger(t.jPlayer.event.volumechange))},volumeBar:function(e){if(this.css.jq.volumeBar.length){var i=t(e.currentTarget),s=i.offset(),n=e.pageX-s.left,o=i.width(),a=i.height()-e.pageY+s.top,r=i.height();this.volume(this.options.verticalVolume?a/r:n/o)}this.options.muted&&this._muted(!1)},_updateVolume:function(t){t===e&&(t=this.options.volume),t=this.options.muted?0:t,this.status.noVolume?(this.addStateClass("noVolume"),this.css.jq.volumeBar.length&&this.css.jq.volumeBar.hide(),this.css.jq.volumeBarValue.length&&this.css.jq.volumeBarValue.hide(),this.css.jq.volumeMax.length&&this.css.jq.volumeMax.hide()):(this.removeStateClass("noVolume"),this.css.jq.volumeBar.length&&this.css.jq.volumeBar.show(),this.css.jq.volumeBarValue.length&&(this.css.jq.volumeBarValue.show(),this.css.jq.volumeBarValue[this.options.verticalVolume?"height":"width"](100*t+"%")),this.css.jq.volumeMax.length&&this.css.jq.volumeMax.show())},volumeMax:function(){this.volume(1),this.options.muted&&this._muted(!1)},_cssSelectorAncestor:function(e){var i=this;this.options.cssSelectorAncestor=e,this._removeUiClass(),this.ancestorJq=e?t(e):[],e&&1!==this.ancestorJq.length&&this._warning({type:t.jPlayer.warning.CSS_SELECTOR_COUNT,context:e,message:t.jPlayer.warningMsg.CSS_SELECTOR_COUNT+this.ancestorJq.length+" found for cssSelectorAncestor.",hint:t.jPlayer.warningHint.CSS_SELECTOR_COUNT}),this._addUiClass(),t.each(this.options.cssSelector,(function(t,e){i._cssSelector(t,e)})),this._updateInterface(),this._updateButtons(),this._updateAutohide(),this._updateVolume(),this._updateMute()},_cssSelector:function(e,i){var s=this;"string"==typeof i?t.jPlayer.prototype.options.cssSelector[e]?(this.css.jq[e]&&this.css.jq[e].length&&this.css.jq[e].unbind(".jPlayer"),this.options.cssSelector[e]=i,this.css.cs[e]=this.options.cssSelectorAncestor+" "+i,this.css.jq[e]=i?t(this.css.cs[e]):[],this.css.jq[e].length&&this[e]&&this.css.jq[e].bind("click.jPlayer",(function(i){i.preventDefault(),s[e](i),s.options.autoBlur?t(this).blur():t(this).focus()})),i&&1!==this.css.jq[e].length&&this._warning({type:t.jPlayer.warning.CSS_SELECTOR_COUNT,context:this.css.cs[e],message:t.jPlayer.warningMsg.CSS_SELECTOR_COUNT+this.css.jq[e].length+" found for "+e+" method.",hint:t.jPlayer.warningHint.CSS_SELECTOR_COUNT})):this._warning({type:t.jPlayer.warning.CSS_SELECTOR_METHOD,context:e,message:t.jPlayer.warningMsg.CSS_SELECTOR_METHOD,hint:t.jPlayer.warningHint.CSS_SELECTOR_METHOD}):this._warning({type:t.jPlayer.warning.CSS_SELECTOR_STRING,context:i,message:t.jPlayer.warningMsg.CSS_SELECTOR_STRING,hint:t.jPlayer.warningHint.CSS_SELECTOR_STRING})},duration:function(t){this.options.toggleDuration&&(this.options.captureDuration&&t.stopPropagation(),this._setOption("remainingDuration",!this.options.remainingDuration))},seekBar:function(e){if(this.css.jq.seekBar.length){var i=t(e.currentTarget),s=i.offset(),n=100*(e.pageX-s.left)/i.width();this.playHead(n)}},playbackRate:function(t){this._setOption("playbackRate",t)},playbackRateBar:function(e){if(this.css.jq.playbackRateBar.length){var i,s=t(e.currentTarget),n=s.offset(),o=e.pageX-n.left,a=s.width(),r=s.height()-e.pageY+n.top,l=s.height();i=(this.options.verticalPlaybackRate?r/l:o/a)*(this.options.maxPlaybackRate-this.options.minPlaybackRate)+this.options.minPlaybackRate,this.playbackRate(i)}},_updatePlaybackRate:function(){var t=(this.options.playbackRate-this.options.minPlaybackRate)/(this.options.maxPlaybackRate-this.options.minPlaybackRate);this.status.playbackRateEnabled?(this.css.jq.playbackRateBar.length&&this.css.jq.playbackRateBar.show(),this.css.jq.playbackRateBarValue.length&&(this.css.jq.playbackRateBarValue.show(),this.css.jq.playbackRateBarValue[this.options.verticalPlaybackRate?"height":"width"](100*t+"%"))):(this.css.jq.playbackRateBar.length&&this.css.jq.playbackRateBar.hide(),this.css.jq.playbackRateBarValue.length&&this.css.jq.playbackRateBarValue.hide())},repeat:function(t){var e="object"==a(t);this._loop(!(e&&this.options.useStateClassSkin&&this.options.loop))},repeatOff:function(){this._loop(!1)},_loop:function(e){this.options.loop!==e&&(this.options.loop=e,this._updateButtons(),this._trigger(t.jPlayer.event.repeat))},option:function(i,s){var n=i;if(0===arguments.length)return t.extend(!0,{},this.options);if("string"==typeof i){var o=i.split(".");if(s===e){for(var a=t.extend(!0,{},this.options),r=0;r0||Math.floor(s)>0):n=!0,t.internal.mouse={x:e.pageX,y:e.pageY},n&&t.css.jq.gui.fadeIn(t.options.autohide.fadeIn,(function(){clearTimeout(t.internal.autohideId),t.internal.autohideId=setTimeout((function(){t.css.jq.gui.fadeOut(t.options.autohide.fadeOut)}),t.options.autohide.hold)}))};this.css.jq.gui.length&&(this.css.jq.gui.stop(!0,!0),clearTimeout(this.internal.autohideId),delete this.internal.mouse,this.element.unbind(e),this.css.jq.gui.unbind(e),this.status.nativeVideoControls?this.css.jq.gui.hide():this.options.fullWindow&&this.options.autohide.full||!this.options.fullWindow&&this.options.autohide.restored?(this.element.bind(i,s),this.css.jq.gui.bind(i,s),this.css.jq.gui.hide()):this.css.jq.gui.show())},fullScreen:function(t){"object"==a(t)&&this.options.useStateClassSkin&&this.options.fullScreen?this._setOption("fullScreen",!1):this._setOption("fullScreen",!0)},restoreScreen:function(){this._setOption("fullScreen",!1)},_fullscreenAddEventListeners:function(){var e=this,i=t.jPlayer.nativeFeatures.fullscreen;i.api.fullscreenEnabled&&i.event.fullscreenchange&&("function"!=typeof this.internal.fullscreenchangeHandler&&(this.internal.fullscreenchangeHandler=function(){e._fullscreenchange()}),document.addEventListener(i.event.fullscreenchange,this.internal.fullscreenchangeHandler,!1))},_fullscreenRemoveEventListeners:function(){var e=t.jPlayer.nativeFeatures.fullscreen;this.internal.fullscreenchangeHandler&&document.removeEventListener(e.event.fullscreenchange,this.internal.fullscreenchangeHandler,!1)},_fullscreenchange:function(){this.options.fullScreen&&!t.jPlayer.nativeFeatures.fullscreen.api.fullscreenElement()&&this._setOption("fullScreen",!1)},_requestFullscreen:function(){var e=this.ancestorJq.length?this.ancestorJq[0]:this.element[0],i=t.jPlayer.nativeFeatures.fullscreen;i.used.webkitVideo&&(e=this.htmlElement.video),i.api.fullscreenEnabled&&i.api.requestFullscreen(e)},_exitFullscreen:function(){var e,i=t.jPlayer.nativeFeatures.fullscreen;i.used.webkitVideo&&(e=this.htmlElement.video),i.api.fullscreenEnabled&&i.api.exitFullscreen(e)},_html_initMedia:function(e){var i=t(this.htmlElement.media).empty();t.each(e.track||[],(function(t,e){var s=document.createElement("track");s.setAttribute("kind",e.kind?e.kind:""),s.setAttribute("src",e.src?e.src:""),s.setAttribute("srclang",e.srclang?e.srclang:""),s.setAttribute("label",e.label?e.label:""),e.def&&s.setAttribute("default",e.def),i.append(s)})),this.htmlElement.media.src=this.status.src,"none"!==this.options.preload&&this._html_load(),this._trigger(t.jPlayer.event.timeupdate)},_html_setFormat:function(e){var i=this;t.each(this.formats,(function(t,s){return i.html.support[s]&&e[s]?(i.status.src=e[s],i.status.format[s]=!0,i.status.formatType=s,!1):void 0}))},_html_setAudio:function(t){this._html_setFormat(t),this.htmlElement.media=this.htmlElement.audio,this._html_initMedia(t)},_html_setVideo:function(t){this._html_setFormat(t),this.status.nativeVideoControls&&(this.htmlElement.video.poster=this._validString(t.poster)?t.poster:""),this.htmlElement.media=this.htmlElement.video,this._html_initMedia(t)},_html_resetMedia:function(){this.htmlElement.media&&(this.htmlElement.media.id!==this.internal.video.id||this.status.nativeVideoControls||this.internal.video.jq.css({width:"0px",height:"0px"}),this.htmlElement.media.pause())},_html_clearMedia:function(){this.htmlElement.media&&(this.htmlElement.media.src="about:blank",this.htmlElement.media.load())},_html_load:function(){this.status.waitForLoad&&(this.status.waitForLoad=!1,this.htmlElement.media.load()),clearTimeout(this.internal.htmlDlyCmdId)},_html_play:function(t){var e=this,i=this.htmlElement.media;if(this.androidFix.pause=!1,this._html_load(),this.androidFix.setMedia)this.androidFix.play=!0,this.androidFix.time=t;else if(isNaN(t))i.play();else{this.internal.cmdsIgnored&&i.play();try{if(i.seekable&&!("object"==a(i.seekable)&&i.seekable.length>0))throw 1;i.currentTime=t,i.play()}catch(i){return void(this.internal.htmlDlyCmdId=setTimeout((function(){e.play(t)}),250))}}this._html_checkWaitForPlay()},_html_pause:function(t){var e=this,i=this.htmlElement.media;if(this.androidFix.play=!1,t>0?this._html_load():clearTimeout(this.internal.htmlDlyCmdId),i.pause(),this.androidFix.setMedia)this.androidFix.pause=!0,this.androidFix.time=t;else if(!isNaN(t))try{if(i.seekable&&!("object"==a(i.seekable)&&i.seekable.length>0))throw 1;i.currentTime=t}catch(i){return void(this.internal.htmlDlyCmdId=setTimeout((function(){e.pause(t)}),250))}t>0&&this._html_checkWaitForPlay()},_html_playHead:function(t){var e=this,i=this.htmlElement.media;this._html_load();try{if("object"==a(i.seekable)&&i.seekable.length>0)i.currentTime=t*i.seekable.end(i.seekable.length-1)/100;else{if(!(i.duration>0)||isNaN(i.duration))throw"e";i.currentTime=t*i.duration/100}}catch(i){return void(this.internal.htmlDlyCmdId=setTimeout((function(){e.playHead(t)}),250))}this.status.waitForLoad||this._html_checkWaitForPlay()},_html_checkWaitForPlay:function(){this.status.waitForPlay&&(this.status.waitForPlay=!1,this.css.jq.videoPlay.length&&this.css.jq.videoPlay.hide(),this.status.video&&(this.internal.poster.jq.hide(),this.internal.video.jq.css({width:this.status.width,height:this.status.height})))},_html_setProperty:function(t,e){this.html.audio.available&&(this.htmlElement.audio[t]=e),this.html.video.available&&(this.htmlElement.video[t]=e)},_aurora_setAudio:function(e){var i=this;t.each(this.formats,(function(t,s){return i.aurora.support[s]&&e[s]?(i.status.src=e[s],i.status.format[s]=!0,i.status.formatType=s,!1):void 0})),this.aurora.player=new AV.Player.fromURL(this.status.src),this._addAuroraEventListeners(this.aurora.player,this.aurora),"auto"===this.options.preload&&(this._aurora_load(),this.status.waitForLoad=!1)},_aurora_resetMedia:function(){this.aurora.player&&this.aurora.player.stop()},_aurora_clearMedia:function(){},_aurora_load:function(){this.status.waitForLoad&&(this.status.waitForLoad=!1,this.aurora.player.preload())},_aurora_play:function(e){this.status.waitForLoad||isNaN(e)||this.aurora.player.seek(e),this.aurora.player.playing||this.aurora.player.play(),this.status.waitForLoad=!1,this._aurora_checkWaitForPlay(),this._updateButtons(!0),this._trigger(t.jPlayer.event.play)},_aurora_pause:function(e){isNaN(e)||this.aurora.player.seek(1e3*e),this.aurora.player.pause(),e>0&&this._aurora_checkWaitForPlay(),this._updateButtons(!1),this._trigger(t.jPlayer.event.pause)},_aurora_playHead:function(t){this.aurora.player.duration>0&&this.aurora.player.seek(t*this.aurora.player.duration/100),this.status.waitForLoad||this._aurora_checkWaitForPlay()},_aurora_checkWaitForPlay:function(){this.status.waitForPlay&&(this.status.waitForPlay=!1)},_aurora_volume:function(t){this.aurora.player.volume=100*t},_aurora_mute:function(t){t?(this.aurora.properties.lastvolume=this.aurora.player.volume,this.aurora.player.volume=0):this.aurora.player.volume=this.aurora.properties.lastvolume,this.aurora.properties.muted=t},_flash_setAudio:function(e){var i=this;try{t.each(this.formats,(function(t,s){if(i.flash.support[s]&&e[s]){switch(s){case"m4a":case"fla":i._getMovie().fl_setAudio_m4a(e[s]);break;case"mp3":i._getMovie().fl_setAudio_mp3(e[s]);break;case"rtmpa":i._getMovie().fl_setAudio_rtmp(e[s])}return i.status.src=e[s],i.status.format[s]=!0,i.status.formatType=s,!1}})),"auto"===this.options.preload&&(this._flash_load(),this.status.waitForLoad=!1)}catch(t){this._flashError(t)}},_flash_setVideo:function(e){var i=this;try{t.each(this.formats,(function(t,s){if(i.flash.support[s]&&e[s]){switch(s){case"m4v":case"flv":i._getMovie().fl_setVideo_m4v(e[s]);break;case"rtmpv":i._getMovie().fl_setVideo_rtmp(e[s])}return i.status.src=e[s],i.status.format[s]=!0,i.status.formatType=s,!1}})),"auto"===this.options.preload&&(this._flash_load(),this.status.waitForLoad=!1)}catch(t){this._flashError(t)}},_flash_resetMedia:function(){this.internal.flash.jq.css({width:"0px",height:"0px"}),this._flash_pause(NaN)},_flash_clearMedia:function(){try{this._getMovie().fl_clearMedia()}catch(t){this._flashError(t)}},_flash_load:function(){try{this._getMovie().fl_load()}catch(t){this._flashError(t)}this.status.waitForLoad=!1},_flash_play:function(t){try{this._getMovie().fl_play(t)}catch(t){this._flashError(t)}this.status.waitForLoad=!1,this._flash_checkWaitForPlay()},_flash_pause:function(t){try{this._getMovie().fl_pause(t)}catch(t){this._flashError(t)}t>0&&(this.status.waitForLoad=!1,this._flash_checkWaitForPlay())},_flash_playHead:function(t){try{this._getMovie().fl_play_head(t)}catch(t){this._flashError(t)}this.status.waitForLoad||this._flash_checkWaitForPlay()},_flash_checkWaitForPlay:function(){this.status.waitForPlay&&(this.status.waitForPlay=!1,this.css.jq.videoPlay.length&&this.css.jq.videoPlay.hide(),this.status.video&&(this.internal.poster.jq.hide(),this.internal.flash.jq.css({width:this.status.width,height:this.status.height})))},_flash_volume:function(t){try{this._getMovie().fl_volume(t)}catch(t){this._flashError(t)}},_flash_mute:function(t){try{this._getMovie().fl_mute(t)}catch(t){this._flashError(t)}},_getMovie:function(){return document[this.internal.flash.id]},_getFlashPluginVersion:function(){var t,e=0;if(window.ActiveXObject)try{if(t=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")){var i=t.GetVariable("$version");i&&(i=i.split(" ")[1].split(","),e=parseInt(i[0],10)+"."+parseInt(i[1],10))}}catch(t){}else navigator.plugins&&navigator.mimeTypes.length>0&&(t=navigator.plugins["Shockwave Flash"])&&(e=navigator.plugins["Shockwave Flash"].description.replace(/.*\s(\d+\.\d+).*/,"$1"));return 1*e},_checkForFlash:function(t){var e=!1;return this._getFlashPluginVersion()>=t&&(e=!0),e},_validString:function(t){return t&&"string"==typeof t},_limitValue:function(t,e,i){return e>t?e:t>i?i:t},_urlNotSetError:function(e){this._error({type:t.jPlayer.error.URL_NOT_SET,context:e,message:t.jPlayer.errorMsg.URL_NOT_SET,hint:t.jPlayer.errorHint.URL_NOT_SET})},_flashError:function(e){var i;i=this.internal.ready?"FLASH_DISABLED":"FLASH",this._error({type:t.jPlayer.error[i],context:this.internal.flash.swf,message:t.jPlayer.errorMsg[i]+e.message,hint:t.jPlayer.errorHint[i]}),this.internal.flash.jq.css({width:"1px",height:"1px"})},_error:function(e){this._trigger(t.jPlayer.event.error,e),this.options.errorAlerts&&this._alert("Error!"+(e.message?"\n"+e.message:"")+(e.hint?"\n"+e.hint:"")+"\nContext: "+e.context)},_warning:function(i){this._trigger(t.jPlayer.event.warning,e,i),this.options.warningAlerts&&this._alert("Warning!"+(i.message?"\n"+i.message:"")+(i.hint?"\n"+i.hint:"")+"\nContext: "+i.context)},_alert:function(t){var e="jPlayer "+this.version.script+" : id='"+this.internal.self.id+"' : "+t;this.options.consoleAlerts?window.console&&window.console.log&&window.console.log(e):alert(e)},_emulateHtmlBridge:function(){var e=this;t.each(t.jPlayer.emulateMethods.split(/\s+/g),(function(t,i){e.internal.domNode[i]=function(t){e[i](t)}})),t.each(t.jPlayer.event,(function(i,s){var n=!0;t.each(t.jPlayer.reservedEvent.split(/\s+/g),(function(t,e){return e===i?(n=!1,!1):void 0})),n&&e.element.bind(s+".jPlayer.jPlayerHtml",(function(){e._emulateHtmlUpdate();var t=document.createEvent("Event");t.initEvent(i,!1,!0),e.internal.domNode.dispatchEvent(t)}))}))},_emulateHtmlUpdate:function(){var e=this;t.each(t.jPlayer.emulateStatus.split(/\s+/g),(function(t,i){e.internal.domNode[i]=e.status[i]})),t.each(t.jPlayer.emulateOptions.split(/\s+/g),(function(t,i){e.internal.domNode[i]=e.options[i]}))},_destroyHtmlBridge:function(){var e=this;this.element.unbind(".jPlayerHtml");var i=t.jPlayer.emulateMethods+" "+t.jPlayer.emulateStatus+" "+t.jPlayer.emulateOptions;t.each(i.split(/\s+/g),(function(t,i){delete e.internal.domNode[i]}))}},t.jPlayer.error={FLASH:"e_flash",FLASH_DISABLED:"e_flash_disabled",NO_SOLUTION:"e_no_solution",NO_SUPPORT:"e_no_support",URL:"e_url",URL_NOT_SET:"e_url_not_set",VERSION:"e_version"},t.jPlayer.errorMsg={FLASH:"jPlayer's Flash fallback is not configured correctly, or a command was issued before the jPlayer Ready event. Details: ",FLASH_DISABLED:"jPlayer's Flash fallback has been disabled by the browser due to the CSS rules you have used. Details: ",NO_SOLUTION:"No solution can be found by jPlayer in this browser. Neither HTML nor Flash can be used.",NO_SUPPORT:"It is not possible to play any media format provided in setMedia() on this browser using your current options.",URL:"Media URL could not be loaded.",URL_NOT_SET:"Attempt to issue media playback commands, while no media url is set.",VERSION:"jPlayer "+t.jPlayer.prototype.version.script+" needs Jplayer.swf version "+t.jPlayer.prototype.version.needFlash+" but found "},t.jPlayer.errorHint={FLASH:"Check your swfPath option and that Jplayer.swf is there.",FLASH_DISABLED:"Check that you have not display:none; the jPlayer entity or any ancestor.",NO_SOLUTION:"Review the jPlayer options: support and supplied.",NO_SUPPORT:"Video or audio formats defined in the supplied option are missing.",URL:"Check media URL is valid.",URL_NOT_SET:"Use setMedia() to set the media URL.",VERSION:"Update jPlayer files."},t.jPlayer.warning={CSS_SELECTOR_COUNT:"e_css_selector_count",CSS_SELECTOR_METHOD:"e_css_selector_method",CSS_SELECTOR_STRING:"e_css_selector_string",OPTION_KEY:"e_option_key"},t.jPlayer.warningMsg={CSS_SELECTOR_COUNT:"The number of css selectors found did not equal one: ",CSS_SELECTOR_METHOD:"The methodName given in jPlayer('cssSelector') is not a valid jPlayer method.",CSS_SELECTOR_STRING:"The methodCssSelector given in jPlayer('cssSelector') is not a String or is empty.",OPTION_KEY:"The option requested in jPlayer('option') is undefined."},t.jPlayer.warningHint={CSS_SELECTOR_COUNT:"Check your css selector and the ancestor.",CSS_SELECTOR_METHOD:"Check your method name.",CSS_SELECTOR_STRING:"Check your css selector is a string.",OPTION_KEY:"Check your option name."}})?s.apply(e,n):s)||(t.exports=o)},TWNs:function(t,e,i){var s=i("g6v/"),n=i("2oRo"),o=i("lMq5"),a=i("cVYH"),r=i("m/L8").f,l=i("JBy8").f,h=i("ROdP"),c=i("rW0t"),u=i("n3/R"),d=i("busE"),p=i("0Dky"),f=i("afO8").set,m=i("JiZb"),g=i("tiKp")("match"),v=n.RegExp,y=v.prototype,b=/a/g,_=/a/g,w=new v(b)!==b,k=u.UNSUPPORTED_Y;if(s&&o("RegExp",!w||k||p((function(){return _[g]=!1,v(b)!=b||v(_)==_||"/a/i"!=v(b,"i")})))){for(var x=function(t,e){var i,s=this instanceof x,n=h(t),o=void 0===e;if(!s&&n&&t.constructor===x&&o)return t;w?n&&!o&&(t=t.source):t instanceof x&&(o&&(e=c.call(t)),t=t.source),k&&(i=!!e&&e.indexOf("y")>-1)&&(e=e.replace(/y/g,""));var r=a(w?new v(t,e):v(t,e),s?this:y,x);return k&&i&&f(r,{sticky:i}),r},C=function(t){t in x||r(x,t,{configurable:!0,get:function(){return v[t]},set:function(e){v[t]=e}})},S=l(v),P=0;S.length>P;)C(S[P++]);y.constructor=x,x.prototype=y,d(n,"RegExp",x)}m("RegExp")},TeQF:function(t,e,i){"use strict";var s=i("I+eb"),n=i("tycR").filter,o=i("Hd5f"),a=i("rkAj"),r=o("filter"),l=a("filter");s({target:"Array",proto:!0,forced:!r||!l},{filter:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}})},TfTi:function(t,e,i){"use strict";var s=i("A2ZE"),n=i("ewvW"),o=i("m92n"),a=i("6VoE"),r=i("UMSQ"),l=i("hBjN"),h=i("NaFW");t.exports=function(t){var e,i,c,u,d,p,f=n(t),m="function"==typeof this?this:Array,g=arguments.length,v=g>1?arguments[1]:void 0,y=void 0!==v,b=h(f),_=0;if(y&&(v=s(v,g>2?arguments[2]:void 0,2)),null==b||m==Array&&a(b))for(i=new m(e=r(f.length));e>_;_++)p=y?v(f[_],_):f[_],l(i,_,p);else for(d=(u=b.call(f)).next,i=new m;!(c=d.call(u)).done;_++)p=y?o(u,v,[c.value,_],!0):c.value,l(i,_,p);return i.length=_,i}},"V7j+":function(t,e,i){(function(t){i("TeQF"),i("+2oP"),i("sMBO"),i("rB9j"),i("EnZy"),i("SYor"),function(e,i){"use strict";function s(t,s,n,a,l){function h(){x=e.devicePixelRatio>1,n=c(n),s.delay>=0&&setTimeout((function(){u(!0)}),s.delay),(s.delay<0||s.combined)&&(a.e=function(e,i){var n,o=0;return function(a,r){function l(){o=+new Date,i.call(t,a)}var h=+new Date-o;n&&clearTimeout(n),h>e||!s.enableThrottle||r?l():n=setTimeout(l,e-h)}}(s.throttle,(function(t){"resize"===t.type&&(w=k=-1),u(t.all)})),a.a=function(t){t=c(t),n.push.apply(n,t)},a.g=function(){return n=o(n).filter((function(){return!o(this).data(s.loadedName)}))},a.f=function(t){for(var e=0;ee.top&&-ne.left&&-n=0?w:w=o(e).width()}function m(){return k>=0?k:k=o(e).height()}function g(t){return t.tagName.toLowerCase()}function v(t,e){if(e){var i=t.split(",");t="";for(var s=0,n=i.length;s
"))}function n(e){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.delegate(i,"mouseout",(function(){t(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).removeClass("ui-datepicker-next-hover")})).delegate(i,"mouseover",o)}function o(){t.datepicker._isDisabledDatepicker(p.inline?p.dpDiv.parent()[0]:p.input[0])||(t(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),t(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).addClass("ui-datepicker-next-hover"))}function r(e,i){for(var s in t.extend(e,i),i)null==i[s]&&(e[s]=i[s]);return e}function l(t){return function(){var e=this.element.val();t.apply(this,arguments),this._refresh(),e!==this.element.val()&&this._trigger("change")}}t.ui=t.ui||{},t.extend(t.ui,{version:"1.11.4",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({scrollParent:function(e){var i=this.css("position"),s="absolute"===i,n=e?/(auto|scroll|hidden)/:/(auto|scroll)/,o=this.parents().filter((function(){var e=t(this);return(!s||"static"!==e.css("position"))&&n.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))})).eq(0);return"fixed"!==i&&o.length?o:t(this[0].ownerDocument||document)},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.extend(t.expr[":"],{data:t.expr.createPseudo?t.expr.createPseudo((function(e){return function(i){return!!t.data(i,e)}})):function(e,i,s){return!!t.data(e,s[3])},focusable:function(i){return e(i,!isNaN(t.attr(i,"tabindex")))},tabbable:function(i){var s=t.attr(i,"tabindex"),n=isNaN(s);return(n||s>=0)&&e(i,!n)}}),t("").outerWidth(1).jquery||t.each(["Width","Height"],(function(e,i){function s(e,i,s,o){return t.each(n,(function(){i-=parseFloat(t.css(e,"padding"+this))||0,s&&(i-=parseFloat(t.css(e,"border"+this+"Width"))||0),o&&(i-=parseFloat(t.css(e,"margin"+this))||0)})),i}var n="Width"===i?["Left","Right"]:["Top","Bottom"],o=i.toLowerCase(),a={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};t.fn["inner"+i]=function(e){return void 0===e?a["inner"+i].call(this):this.each((function(){t(this).css(o,s(this,e)+"px")}))},t.fn["outer"+i]=function(e,n){return"number"!=typeof e?a["outer"+i].call(this,e):this.each((function(){t(this).css(o,s(this,e,!0,n)+"px")}))}})),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t("").data("a-b","a").removeData("a-b").data("a-b")&&(t.fn.removeData=function(e){return function(i){return arguments.length?e.call(this,t.camelCase(i)):e.call(this)}}(t.fn.removeData)),t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),t.fn.extend({focus:function(e){return function(i,s){return"number"==typeof i?this.each((function(){var e=this;setTimeout((function(){t(e).focus(),s&&s.call(e)}),i)})):e.apply(this,arguments)}}(t.fn.focus),disableSelection:function(){var t="onselectstart"in document.createElement("div")?"selectstart":"mousedown";return function(){return this.bind(t+".ui-disableSelection",(function(t){t.preventDefault()}))}}(),enableSelection:function(){return this.unbind(".ui-disableSelection")},zIndex:function(e){if(void 0!==e)return this.css("zIndex",e);if(this.length)for(var i,s,n=t(this[0]);n.length&&n[0]!==document;){if(("absolute"===(i=n.css("position"))||"relative"===i||"fixed"===i)&&(s=parseInt(n.css("zIndex"),10),!isNaN(s)&&0!==s))return s;n=n.parent()}return 0}}),t.ui.plugin={add:function(e,i,s){var n,o=t.ui[e].prototype;for(n in s)o.plugins[n]=o.plugins[n]||[],o.plugins[n].push([i,s[n]])},call:function(t,e,i,s){var n,o=t.plugins[e];if(o&&(s||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(n=0;o.length>n;n++)t.options[o[n][0]]&&o[n][1].apply(t.element,i)}};var h=0,c=Array.prototype.slice;t.cleanData=function(e){return function(i){var s,n,o;for(o=0;null!=(n=i[o]);o++)try{(s=t._data(n,"events"))&&s.remove&&t(n).triggerHandler("remove")}catch(t){}e(i)}}(t.cleanData),t.widget=function(e,i,s){var n,o,a,r,l={},h=e.split(".")[0];return e=e.split(".")[1],n=h+"-"+e,s||(s=i,i=t.Widget),t.expr[":"][n.toLowerCase()]=function(e){return!!t.data(e,n)},t[h]=t[h]||{},o=t[h][e],a=t[h][e]=function(t,e){return this._createWidget?void(arguments.length&&this._createWidget(t,e)):new a(t,e)},t.extend(a,o,{version:s.version,_proto:t.extend({},s),_childConstructors:[]}),(r=new i).options=t.widget.extend({},r.options),t.each(s,(function(e,s){return t.isFunction(s)?void(l[e]=function(){var t=function(){return i.prototype[e].apply(this,arguments)},n=function(t){return i.prototype[e].apply(this,t)};return function(){var e,i=this._super,o=this._superApply;return this._super=t,this._superApply=n,e=s.apply(this,arguments),this._super=i,this._superApply=o,e}}()):void(l[e]=s)})),a.prototype=t.widget.extend(r,{widgetEventPrefix:o&&r.widgetEventPrefix||e},l,{constructor:a,namespace:h,widgetName:e,widgetFullName:n}),o?(t.each(o._childConstructors,(function(e,i){var s=i.prototype;t.widget(s.namespace+"."+s.widgetName,a,i._proto)})),delete o._childConstructors):i._childConstructors.push(a),t.widget.bridge(e,a),a},t.widget.extend=function(e){for(var i,s,n=c.call(arguments,1),o=0,a=n.length;a>o;o++)for(i in n[o])s=n[o][i],n[o].hasOwnProperty(i)&&void 0!==s&&(e[i]=t.isPlainObject(s)?t.isPlainObject(e[i])?t.widget.extend({},e[i],s):t.widget.extend({},s):s);return e},t.widget.bridge=function(e,i){var s=i.prototype.widgetFullName||e;t.fn[e]=function(n){var o="string"==typeof n,a=c.call(arguments,1),r=this;return o?this.each((function(){var i,o=t.data(this,s);return"instance"===n?(r=o,!1):o?t.isFunction(o[n])&&"_"!==n.charAt(0)?(i=o[n].apply(o,a))!==o&&void 0!==i?(r=i&&i.jquery?r.pushStack(i.get()):i,!1):void 0:t.error("no such method '"+n+"' for "+e+" widget instance"):t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+n+"'")})):(a.length&&(n=t.widget.extend.apply(null,[n].concat(a))),this.each((function(){var e=t.data(this,s);e?(e.option(n||{}),e._init&&e._init()):t.data(this,s,new i(n,this))}))),r}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"
",options:{disabled:!1,create:null},_createWidget:function(e,i){i=t(i||this.defaultElement||this)[0],this.element=t(i),this.uuid=h++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),i!==this&&(t.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===i&&this.destroy()}}),this.document=t(i.style?i.ownerDocument:i.document||i),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:t.noop,_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData(t.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:t.noop,widget:function(){return this.element},option:function(e,i){var s,n,o,a=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(a={},s=e.split("."),e=s.shift(),s.length){for(n=a[e]=t.widget.extend({},this.options[e]),o=0;s.length-1>o;o++)n[s[o]]=n[s[o]]||{},n=n[s[o]];if(e=s.pop(),1===arguments.length)return void 0===n[e]?null:n[e];n[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 this.options[t]=e,"disabled"===t&&(this.widget().toggleClass(this.widgetFullName+"-disabled",!!e),e&&(this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus"))),this},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_on:function(e,i,s){var n,o=this;"boolean"!=typeof e&&(s=i,i=e,e=!1),s?(i=n=t(i),this.bindings=this.bindings.add(i)):(s=i,i=this.element,n=this.widget()),t.each(s,(function(s,a){function r(){return e||!0!==o.options.disabled&&!t(this).hasClass("ui-state-disabled")?("string"==typeof a?o[a]:a).apply(o,arguments):void 0}"string"!=typeof a&&(r.guid=a.guid=a.guid||r.guid||t.guid++);var l=s.match(/^([\w:-]*)\s*(.*)$/),h=l[1]+o.eventNamespace,c=l[2];c?n.delegate(c,h,r):i.bind(h,r)}))},_off:function(e,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.unbind(i).undelegate(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){var i=this;return setTimeout((function(){return("string"==typeof t?i[t]:t).apply(i,arguments)}),e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){t(e.currentTarget).addClass("ui-state-hover")},mouseleave:function(e){t(e.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){t(e.currentTarget).addClass("ui-state-focus")},focusout:function(e){t(e.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(e,i,s){var n,o,a=this.options[e];if(s=s||{},(i=t.Event(i)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],o=i.originalEvent)for(n in o)n in i||(i[n]=o[n]);return this.element.trigger(i,s),!(t.isFunction(a)&&!1===a.apply(this.element[0],[i].concat(s))||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},(function(e,i){t.Widget.prototype["_"+e]=function(s,n,o){"string"==typeof n&&(n={effect:n});var a,r=n?!0===n||"number"==typeof n?i:n.effect||i:e;"number"==typeof(n=n||{})&&(n={duration:n}),a=!t.isEmptyObject(n),n.complete=o,n.delay&&s.delay(n.delay),a&&t.effects&&t.effects.effect[r]?s[e](n):r!==e&&s[r]?s[r](n.duration,n.easing,o):s.queue((function(i){t(this)[e](),o&&o.call(s[0]),i()}))}})),t.widget;var u=!1;t(document).mouseup((function(){u=!1})),t.widget("ui.mouse",{version:"1.11.4",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.bind("mousedown."+this.widgetName,(function(t){return e._mouseDown(t)})).bind("click."+this.widgetName,(function(i){return!0===t.data(i.target,e.widgetName+".preventClickEvent")?(t.removeData(i.target,e.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1):void 0})),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!u){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e;var i=this,s=1===e.which,n=!("string"!=typeof this.options.cancel||!e.target.nodeName)&&t(e.target).closest(this.options.cancel).length;return!(s&&!n&&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.bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),u=!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)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){return this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&t.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),u=!1,!1},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),function(){function e(t,e,i){return[parseFloat(t[0])*(p.test(t[0])?e/100:1),parseFloat(t[1])*(p.test(t[1])?i/100:1)]}function i(e,i){return parseInt(t.css(e,i),10)||0}function s(e){var i=e[0];return 9===i.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:t.isWindow(i)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}t.ui=t.ui||{};var n,o,a=Math.max,r=Math.abs,l=Math.round,h=/left|center|right/,c=/top|center|bottom/,u=/[\+\-]\d+(\.[\d]+)?%?/,d=/^\w+/,p=/%$/,f=t.fn.position;t.position={scrollbarWidth:function(){if(void 0!==n)return n;var e,i,s=t("
"),o=s.children()[0];return t("body").append(s),e=o.offsetWidth,s.css("overflow","scroll"),e===(i=o.offsetWidth)&&(i=s[0].clientWidth),s.remove(),n=e-i},getScrollInfo:function(e){var i=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),s=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),n="scroll"===i||"auto"===i&&e.widthi?"left":e>0?"right":"center",vertical:0>o?"top":s>0?"bottom":"middle"};u>m&&m>r(e+i)&&(l.horizontal="center"),d>g&&g>r(s+o)&&(l.vertical="middle"),l.important=a(r(e),r(i))>a(r(s),r(o))?"horizontal":"vertical",n.using.call(this,t,l)}),c.offset(t.extend(T,{using:h}))}))},t.ui.position={fit:{left:function(t,e){var i,s=e.within,n=s.isWindow?s.scrollLeft:s.offset.left,o=s.width,r=t.left-e.collisionPosition.marginLeft,l=n-r,h=r+e.collisionWidth-o-n;e.collisionWidth>o?l>0&&0>=h?(i=t.left+l+e.collisionWidth-o-n,t.left+=l-i):t.left=h>0&&0>=l?n:l>h?n+o-e.collisionWidth:n:l>0?t.left+=l:h>0?t.left-=h:t.left=a(t.left-r,t.left)},top:function(t,e){var i,s=e.within,n=s.isWindow?s.scrollTop:s.offset.top,o=e.within.height,r=t.top-e.collisionPosition.marginTop,l=n-r,h=r+e.collisionHeight-o-n;e.collisionHeight>o?l>0&&0>=h?(i=t.top+l+e.collisionHeight-o-n,t.top+=l-i):t.top=h>0&&0>=l?n:l>h?n+o-e.collisionHeight:n:l>0?t.top+=l:h>0?t.top-=h:t.top=a(t.top-r,t.top)}},flip:{left:function(t,e){var i,s,n=e.within,o=n.offset.left+n.scrollLeft,a=n.width,l=n.isWindow?n.scrollLeft:n.offset.left,h=t.left-e.collisionPosition.marginLeft,c=h-l,u=h+e.collisionWidth-a-l,d="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,p="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,f=-2*e.offset[0];0>c?(0>(i=t.left+d+p+f+e.collisionWidth-a-o)||r(c)>i)&&(t.left+=d+p+f):u>0&&((s=t.left-e.collisionPosition.marginLeft+d+p+f-l)>0||u>r(s))&&(t.left+=d+p+f)},top:function(t,e){var i,s,n=e.within,o=n.offset.top+n.scrollTop,a=n.height,l=n.isWindow?n.scrollTop:n.offset.top,h=t.top-e.collisionPosition.marginTop,c=h-l,u=h+e.collisionHeight-a-l,d="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,p="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,f=-2*e.offset[1];0>c?(0>(s=t.top+d+p+f+e.collisionHeight-a-o)||r(c)>s)&&(t.top+=d+p+f):u>0&&((i=t.top-e.collisionPosition.marginTop+d+p+f-l)>0||u>r(i))&&(t.top+=d+p+f)}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}},function(){var e,i,s,n,a,r=document.getElementsByTagName("body")[0],l=document.createElement("div");for(a in e=document.createElement(r?"div":"body"),s={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},r&&t.extend(s,{position:"absolute",left:"-1000px",top:"-1000px"}),s)e.style[a]=s[a];e.appendChild(l),(i=r||document.documentElement).insertBefore(e,i.firstChild),l.style.cssText="position: absolute; left: 10.7432222px;",n=t(l).offset().left,o=n>10&&11>n,e.innerHTML="",i.removeChild(e)}()}(),t.ui.position,t.widget("ui.draggable",t.ui.mouse,{version:"1.11.4",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){return(this.helper||this.element).is(".ui-draggable-dragging")?void(this.destroyOnClear=!0):(this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._removeHandleClassName(),void this._mouseDestroy())},_mouseCapture:function(e){var i=this.options;return this._blurActiveElement(e),!(this.helper||i.disabled||t(e.target).closest(".ui-resizable-handle").length>0||(this.handle=this._getHandle(e),!this.handle||(this._blockFrames(!0===i.iframeFix?"iframe":i.iframeFix),0)))},_blockFrames:function(e){this.iframeBlocks=this.document.find(e).map((function(){var e=t(this);return t("
").css("position","absolute").appendTo(e.parent()).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).offset(e.offset())[0]}))},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(e){var i=this.document[0];if(this.handleElement.is(e.target))try{i.activeElement&&"body"!==i.activeElement.nodeName.toLowerCase()&&t(i.activeElement).blur()}catch(t){}},_mouseStart:function(e){var i=this.options;return this.helper=this._createHelper(e),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter((function(){return"fixed"===t(this).css("position")})).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(e),this.originalPosition=this.position=this._generatePosition(e,!1),this.originalPageX=e.pageX,this.originalPageY=e.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),!1===this._trigger("start",e)?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!i.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this._normalizeRightBottom(),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_refreshOffsets:function(t){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(e,i){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e,!0),this.positionAbs=this._convertPositionTo("absolute"),!i){var s=this._uiHash();if(!1===this._trigger("drag",e,s))return this._mouseUp({}),!1;this.position=s.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var i=this,s=!1;return t.ui.ddmanager&&!this.options.dropBehaviour&&(s=t.ui.ddmanager.drop(this,e)),this.dropped&&(s=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!s||"valid"===this.options.revert&&s||!0===this.options.revert||t.isFunction(this.options.revert)&&this.options.revert.call(this.element,s)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),(function(){!1!==i._trigger("stop",e)&&i._clear()})):!1!==this._trigger("stop",e)&&this._clear(),!1},_mouseUp:function(e){return this._unblockFrames(),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),this.handleElement.is(e.target)&&this.element.focus(),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(e){return!this.options.handle||!!t(e.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this.handleElement.addClass("ui-draggable-handle")},_removeHandleClassName:function(){this.handleElement.removeClass("ui-draggable-handle")},_createHelper:function(e){var i=this.options,s=t.isFunction(i.helper),n=s?t(i.helper.apply(this.element[0],[e])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element;return n.parents("body").length||n.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),s&&n[0]===this.element[0]&&this._setPositionRelative(),n[0]===this.element[0]||/(fixed|absolute)/.test(n.css("position"))||n.css("position","absolute"),n},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var e=this.offsetParent.offset(),i=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==i&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var t=this.element.position(),e=this._isRootNode(this.scrollParent[0]);return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,s,n=this.options,o=this.document[0];return this.relativeContainer=null,n.containment?"window"===n.containment?void(this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):"document"===n.containment?void(this.containment=[0,0,t(o).width()-this.helperProportions.width-this.margins.left,(t(o).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):n.containment.constructor===Array?void(this.containment=n.containment):("parent"===n.containment&&(n.containment=this.helper[0].parentNode),void((s=(i=t(n.containment))[0])&&(e=/(scroll|auto)/.test(i.css("overflow")),this.containment=[(parseInt(i.css("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(parseInt(i.css("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(e?Math.max(s.scrollWidth,s.offsetWidth):s.offsetWidth)-(parseInt(i.css("borderRightWidth"),10)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(s.scrollHeight,s.offsetHeight):s.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=i))):void(this.containment=null)},_convertPositionTo:function(t,e){e||(e=this.position);var i="absolute"===t?1:-1,s=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.offset.scroll.top:s?0:this.offset.scroll.top)*i,left:e.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.offset.scroll.left:s?0:this.offset.scroll.left)*i}},_generatePosition:function(t,e){var i,s,n,o,a=this.options,r=this._isRootNode(this.scrollParent[0]),l=t.pageX,h=t.pageY;return r&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),e&&(this.containment&&(this.relativeContainer?(s=this.relativeContainer.offset(),i=[this.containment[0]+s.left,this.containment[1]+s.top,this.containment[2]+s.left,this.containment[3]+s.top]):i=this.containment,t.pageX-this.offset.click.lefti[2]&&(l=i[2]+this.offset.click.left),t.pageY-this.offset.click.top>i[3]&&(h=i[3]+this.offset.click.top)),a.grid&&(n=a.grid[1]?this.originalPageY+Math.round((h-this.originalPageY)/a.grid[1])*a.grid[1]:this.originalPageY,h=i?n-this.offset.click.top>=i[1]||n-this.offset.click.top>i[3]?n:n-this.offset.click.top>=i[1]?n-a.grid[1]:n+a.grid[1]:n,o=a.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/a.grid[0])*a.grid[0]:this.originalPageX,l=i?o-this.offset.click.left>=i[0]||o-this.offset.click.left>i[2]?o:o-this.offset.click.left>=i[0]?o-a.grid[0]:o+a.grid[0]:o),"y"===a.axis&&(l=this.originalPageX),"x"===a.axis&&(h=this.originalPageY)),{top:h-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:r?0:this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:r?0:this.offset.scroll.left)}},_clear:function(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_normalizeRightBottom:function(){"y"!==this.options.axis&&"auto"!==this.helper.css("right")&&(this.helper.width(this.helper.width()),this.helper.css("right","auto")),"x"!==this.options.axis&&"auto"!==this.helper.css("bottom")&&(this.helper.height(this.helper.height()),this.helper.css("bottom","auto"))},_trigger:function(e,i,s){return s=s||this._uiHash(),t.ui.plugin.call(this,e,[i,s,this],!0),/^(drag|start|stop)/.test(e)&&(this.positionAbs=this._convertPositionTo("absolute"),s.offset=this.positionAbs),t.Widget.prototype._trigger.call(this,e,i,s)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,i,s){var n=t.extend({},i,{item:s.element});s.sortables=[],t(s.options.connectToSortable).each((function(){var i=t(this).sortable("instance");i&&!i.options.disabled&&(s.sortables.push(i),i.refreshPositions(),i._trigger("activate",e,n))}))},stop:function(e,i,s){var n=t.extend({},i,{item:s.element});s.cancelHelperRemoval=!1,t.each(s.sortables,(function(){var t=this;t.isOver?(t.isOver=0,s.cancelHelperRemoval=!0,t.cancelHelperRemoval=!1,t._storedCSS={position:t.placeholder.css("position"),top:t.placeholder.css("top"),left:t.placeholder.css("left")},t._mouseStop(e),t.options.helper=t.options._helper):(t.cancelHelperRemoval=!0,t._trigger("deactivate",e,n))}))},drag:function(e,i,s){t.each(s.sortables,(function(){var n=!1,o=this;o.positionAbs=s.positionAbs,o.helperProportions=s.helperProportions,o.offset.click=s.offset.click,o._intersectsWith(o.containerCache)&&(n=!0,t.each(s.sortables,(function(){return this.positionAbs=s.positionAbs,this.helperProportions=s.helperProportions,this.offset.click=s.offset.click,this!==o&&this._intersectsWith(this.containerCache)&&t.contains(o.element[0],this.element[0])&&(n=!1),n}))),n?(o.isOver||(o.isOver=1,s._parent=i.helper.parent(),o.currentItem=i.helper.appendTo(o.element).data("ui-sortable-item",!0),o.options._helper=o.options.helper,o.options.helper=function(){return i.helper[0]},e.target=o.currentItem[0],o._mouseCapture(e,!0),o._mouseStart(e,!0,!0),o.offset.click.top=s.offset.click.top,o.offset.click.left=s.offset.click.left,o.offset.parent.left-=s.offset.parent.left-o.offset.parent.left,o.offset.parent.top-=s.offset.parent.top-o.offset.parent.top,s._trigger("toSortable",e),s.dropped=o.element,t.each(s.sortables,(function(){this.refreshPositions()})),s.currentItem=s.element,o.fromOutside=s),o.currentItem&&(o._mouseDrag(e),i.position=o.position)):o.isOver&&(o.isOver=0,o.cancelHelperRemoval=!0,o.options._revert=o.options.revert,o.options.revert=!1,o._trigger("out",e,o._uiHash(o)),o._mouseStop(e,!0),o.options.revert=o.options._revert,o.options.helper=o.options._helper,o.placeholder&&o.placeholder.remove(),i.helper.appendTo(s._parent),s._refreshOffsets(e),i.position=s._generatePosition(e,!0),s._trigger("fromSortable",e),s.dropped=!1,t.each(s.sortables,(function(){this.refreshPositions()})))}))}}),t.ui.plugin.add("draggable","cursor",{start:function(e,i,s){var n=t("body"),o=s.options;n.css("cursor")&&(o._cursor=n.css("cursor")),n.css("cursor",o.cursor)},stop:function(e,i,s){var n=s.options;n._cursor&&t("body").css("cursor",n._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,i,s){var n=t(i.helper),o=s.options;n.css("opacity")&&(o._opacity=n.css("opacity")),n.css("opacity",o.opacity)},stop:function(e,i,s){var n=s.options;n._opacity&&t(i.helper).css("opacity",n._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(t,e,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1)),i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(e,i,s){var n=s.options,o=!1,a=s.scrollParentNotHidden[0],r=s.document[0];a!==r&&"HTML"!==a.tagName?(n.axis&&"x"===n.axis||(s.overflowOffset.top+a.offsetHeight-e.pageY=0;d--)h=(l=s.snapElements[d].left-s.margins.left)+s.snapElements[d].width,u=(c=s.snapElements[d].top-s.margins.top)+s.snapElements[d].height,l-m>v||g>h+m||c-m>b||y>u+m||!t.contains(s.snapElements[d].item.ownerDocument,s.snapElements[d].item)?(s.snapElements[d].snapping&&s.options.snap.release&&s.options.snap.release.call(s.element,e,t.extend(s._uiHash(),{snapItem:s.snapElements[d].item})),s.snapElements[d].snapping=!1):("inner"!==f.snapMode&&(n=m>=Math.abs(c-b),o=m>=Math.abs(u-y),a=m>=Math.abs(l-v),r=m>=Math.abs(h-g),n&&(i.position.top=s._convertPositionTo("relative",{top:c-s.helperProportions.height,left:0}).top),o&&(i.position.top=s._convertPositionTo("relative",{top:u,left:0}).top),a&&(i.position.left=s._convertPositionTo("relative",{top:0,left:l-s.helperProportions.width}).left),r&&(i.position.left=s._convertPositionTo("relative",{top:0,left:h}).left)),p=n||o||a||r,"outer"!==f.snapMode&&(n=m>=Math.abs(c-y),o=m>=Math.abs(u-b),a=m>=Math.abs(l-g),r=m>=Math.abs(h-v),n&&(i.position.top=s._convertPositionTo("relative",{top:c,left:0}).top),o&&(i.position.top=s._convertPositionTo("relative",{top:u-s.helperProportions.height,left:0}).top),a&&(i.position.left=s._convertPositionTo("relative",{top:0,left:l}).left),r&&(i.position.left=s._convertPositionTo("relative",{top:0,left:h-s.helperProportions.width}).left)),!s.snapElements[d].snapping&&(n||o||a||r||p)&&s.options.snap.snap&&s.options.snap.snap.call(s.element,e,t.extend(s._uiHash(),{snapItem:s.snapElements[d].item})),s.snapElements[d].snapping=n||o||a||r||p)}}),t.ui.plugin.add("draggable","stack",{start:function(e,i,s){var n,o=s.options,a=t.makeArray(t(o.stack)).sort((function(e,i){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(i).css("zIndex"),10)||0)}));a.length&&(n=parseInt(t(a[0]).css("zIndex"),10)||0,t(a).each((function(e){t(this).css("zIndex",n+e)})),this.css("zIndex",n+a.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,i,s){var n=t(i.helper),o=s.options;n.css("zIndex")&&(o._zIndex=n.css("zIndex")),n.css("zIndex",o.zIndex)},stop:function(e,i,s){var n=s.options;n._zIndex&&t(i.helper).css("zIndex",n._zIndex)}}),t.ui.draggable,t.widget("ui.droppable",{version:"1.11.4",widgetEventPrefix:"drop",options:{accept:"*",activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var e,i=this.options,s=i.accept;this.isover=!1,this.isout=!0,this.accept=t.isFunction(s)?s:function(t){return t.is(s)},this.proportions=function(){return arguments.length?void(e=arguments[0]):e||(e={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight})},this._addToManager(i.scope),i.addClasses&&this.element.addClass("ui-droppable")},_addToManager:function(e){t.ui.ddmanager.droppables[e]=t.ui.ddmanager.droppables[e]||[],t.ui.ddmanager.droppables[e].push(this)},_splice:function(t){for(var e=0;t.length>e;e++)t[e]===this&&t.splice(e,1)},_destroy:function(){var e=t.ui.ddmanager.droppables[this.options.scope];this._splice(e),this.element.removeClass("ui-droppable ui-droppable-disabled")},_setOption:function(e,i){if("accept"===e)this.accept=t.isFunction(i)?i:function(t){return t.is(i)};else if("scope"===e){var s=t.ui.ddmanager.droppables[this.options.scope];this._splice(s),this._addToManager(i)}this._super(e,i)},_activate:function(e){var i=t.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass),i&&this._trigger("activate",e,this.ui(i))},_deactivate:function(e){var i=t.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass),i&&this._trigger("deactivate",e,this.ui(i))},_over:function(e){var i=t.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this.options.hoverClass&&this.element.addClass(this.options.hoverClass),this._trigger("over",e,this.ui(i)))},_out:function(e){var i=t.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("out",e,this.ui(i)))},_drop:function(e,i){var s=i||t.ui.ddmanager.current,n=!1;return!(!s||(s.currentItem||s.element)[0]===this.element[0])&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each((function(){var i=t(this).droppable("instance");return i.options.greedy&&!i.options.disabled&&i.options.scope===s.options.scope&&i.accept.call(i.element[0],s.currentItem||s.element)&&t.ui.intersect(s,t.extend(i,{offset:i.element.offset()}),i.options.tolerance,e)?(n=!0,!1):void 0})),!n&&!!this.accept.call(this.element[0],s.currentItem||s.element)&&(this.options.activeClass&&this.element.removeClass(this.options.activeClass),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("drop",e,this.ui(s)),this.element))},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.helper,position:t.position,offset:t.positionAbs}}}),t.ui.intersect=function(){function t(t,e,i){return t>=e&&e+i>t}return function(e,i,s,n){if(!i.offset)return!1;var o=(e.positionAbs||e.position.absolute).left+e.margins.left,a=(e.positionAbs||e.position.absolute).top+e.margins.top,r=o+e.helperProportions.width,l=a+e.helperProportions.height,h=i.offset.left,c=i.offset.top,u=h+i.proportions().width,d=c+i.proportions().height;switch(s){case"fit":return o>=h&&u>=r&&a>=c&&d>=l;case"intersect":return o+e.helperProportions.width/2>h&&u>r-e.helperProportions.width/2&&a+e.helperProportions.height/2>c&&d>l-e.helperProportions.height/2;case"pointer":return t(n.pageY,c,i.proportions().height)&&t(n.pageX,h,i.proportions().width);case"touch":return(a>=c&&d>=a||l>=c&&d>=l||c>a&&l>d)&&(o>=h&&u>=o||r>=h&&u>=r||h>o&&r>u);default:return!1}}}(),t.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(e,i){var s,n,o=t.ui.ddmanager.droppables[e.options.scope]||[],a=i?i.type:null,r=(e.currentItem||e.element).find(":data(ui-droppable)").addBack();t:for(s=0;o.length>s;s++)if(!(o[s].options.disabled||e&&!o[s].accept.call(o[s].element[0],e.currentItem||e.element))){for(n=0;r.length>n;n++)if(r[n]===o[s].element[0]){o[s].proportions().height=0;continue t}o[s].visible="none"!==o[s].element.css("display"),o[s].visible&&("mousedown"===a&&o[s]._activate.call(o[s],i),o[s].offset=o[s].element.offset(),o[s].proportions({width:o[s].element[0].offsetWidth,height:o[s].element[0].offsetHeight}))}},drop:function(e,i){var s=!1;return t.each((t.ui.ddmanager.droppables[e.options.scope]||[]).slice(),(function(){this.options&&(!this.options.disabled&&this.visible&&t.ui.intersect(e,this,this.options.tolerance,i)&&(s=this._drop.call(this,i)||s),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,i)))})),s},dragStart:function(e,i){e.element.parentsUntil("body").bind("scroll.droppable",(function(){e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)}))},drag:function(e,i){e.options.refreshPositions&&t.ui.ddmanager.prepareOffsets(e,i),t.each(t.ui.ddmanager.droppables[e.options.scope]||[],(function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var s,n,o,a=t.ui.intersect(e,this,this.options.tolerance,i),r=!a&&this.isover?"isout":a&&!this.isover?"isover":null;r&&(this.options.greedy&&(n=this.options.scope,(o=this.element.parents(":data(ui-droppable)").filter((function(){return t(this).droppable("instance").options.scope===n}))).length&&((s=t(o[0]).droppable("instance")).greedyChild="isover"===r)),s&&"isover"===r&&(s.isover=!1,s.isout=!0,s._out.call(s,i)),this[r]=!0,this["isout"===r?"isover":"isout"]=!1,this["isover"===r?"_over":"_out"].call(this,i),s&&"isout"===r&&(s.isout=!1,s.isover=!0,s._over.call(s,i)))}}))},dragStop:function(e,i){e.element.parentsUntil("body").unbind("scroll.droppable"),e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)}},t.ui.droppable,t.widget("ui.resizable",t.ui.mouse,{version:"1.11.4",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(t){return parseInt(t,10)||0},_isNumber:function(t){return!isNaN(parseInt(t,10))},_hasScroll:function(e,i){if("hidden"===t(e).css("overflow"))return!1;var s=i&&"left"===i?"scrollLeft":"scrollTop",n=!1;return e[s]>0||(e[s]=1,n=e[s]>0,e[s]=0,n)},_create:function(){var e,i,s,n,o=this,a=this.options;if(this.element.addClass("ui-resizable"),t.extend(this,{_aspectRatio:!!a.aspectRatio,aspectRatio:a.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:a.helper||a.ghost||a.animate?a.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(t("
").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css({margin:this.originalElement.css("margin")}),this._proportionallyResize()),this.handles=a.handles||(t(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=t(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),e=this.handles.split(","),this.handles={},i=0;e.length>i;i++)s=t.trim(e[i]),(n=t("
")).css({zIndex:a.zIndex}),"se"===s&&n.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[s]=".ui-resizable-"+s,this.element.append(n);this._renderAxis=function(e){var i,s,n,a;for(i in e=e||this.element,this.handles)this.handles[i].constructor===String?this.handles[i]=this.element.children(this.handles[i]).first().show():(this.handles[i].jquery||this.handles[i].nodeType)&&(this.handles[i]=t(this.handles[i]),this._on(this.handles[i],{mousedown:o._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(s=t(this.handles[i],this.element),a=/sw|ne|nw|se|n|s/.test(i)?s.outerHeight():s.outerWidth(),n=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),e.css(n,a),this._proportionallyResize()),this._handles=this._handles.add(this.handles[i])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.mouseover((function(){o.resizing||(this.className&&(n=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),o.axis=n&&n[1]?n[1]:"se")})),a.autoHide&&(this._handles.hide(),t(this.element).addClass("ui-resizable-autohide").mouseenter((function(){a.disabled||(t(this).removeClass("ui-resizable-autohide"),o._handles.show())})).mouseleave((function(){a.disabled||o.resizing||(t(this).addClass("ui-resizable-autohide"),o._handles.hide())}))),this._mouseInit()},_destroy:function(){this._mouseDestroy();var e,i=function(e){t(e).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(i(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),i(this.originalElement),this},_mouseCapture:function(e){var i,s,n=!1;for(i in this.handles)((s=t(this.handles[i])[0])===e.target||t.contains(s,e.target))&&(n=!0);return!this.options.disabled&&n},_mouseStart:function(e){var i,s,n,o=this.options,a=this.element;return this.resizing=!0,this._renderProxy(),i=this._num(this.helper.css("left")),s=this._num(this.helper.css("top")),o.containment&&(i+=t(o.containment).scrollLeft()||0,s+=t(o.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:i,top:s},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:a.width(),height:a.height()},this.originalSize=this._helper?{width:a.outerWidth(),height:a.outerHeight()}:{width:a.width(),height:a.height()},this.sizeDiff={width:a.outerWidth()-a.width(),height:a.outerHeight()-a.height()},this.originalPosition={left:i,top:s},this.originalMousePosition={left:e.pageX,top:e.pageY},this.aspectRatio="number"==typeof o.aspectRatio?o.aspectRatio:this.originalSize.width/this.originalSize.height||1,n=t(".ui-resizable-"+this.axis).css("cursor"),t("body").css("cursor","auto"===n?this.axis+"-resize":n),a.addClass("ui-resizable-resizing"),this._propagate("start",e),!0},_mouseDrag:function(e){var i,s,n=this.originalMousePosition,o=this.axis,a=e.pageX-n.left||0,r=e.pageY-n.top||0,l=this._change[o];return this._updatePrevProperties(),!!l&&(i=l.apply(this,[e,a,r]),this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(i=this._updateRatio(i,e)),i=this._respectSize(i,e),this._updateCache(i),this._propagate("resize",e),s=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),t.isEmptyObject(s)||(this._updatePrevProperties(),this._trigger("resize",e,this.ui()),this._applyChanges()),!1)},_mouseStop:function(e){this.resizing=!1;var i,s,n,o,a,r,l,h=this.options,c=this;return this._helper&&(n=(s=(i=this._proportionallyResizeElements).length&&/textarea/i.test(i[0].nodeName))&&this._hasScroll(i[0],"left")?0:c.sizeDiff.height,o=s?0:c.sizeDiff.width,a={width:c.helper.width()-o,height:c.helper.height()-n},r=parseInt(c.element.css("left"),10)+(c.position.left-c.originalPosition.left)||null,l=parseInt(c.element.css("top"),10)+(c.position.top-c.originalPosition.top)||null,h.animate||this.element.css(t.extend(a,{top:l,left:r})),c.helper.height(c.size.height),c.helper.width(c.size.width),this._helper&&!h.animate&&this._proportionallyResize()),t("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var t={};return this.position.top!==this.prevPosition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(t.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(t.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(t.height=this.size.height+"px"),this.helper.css(t),t},_updateVirtualBoundaries:function(t){var e,i,s,n,o,a=this.options;o={minWidth:this._isNumber(a.minWidth)?a.minWidth:0,maxWidth:this._isNumber(a.maxWidth)?a.maxWidth:1/0,minHeight:this._isNumber(a.minHeight)?a.minHeight:0,maxHeight:this._isNumber(a.maxHeight)?a.maxHeight:1/0},(this._aspectRatio||t)&&(e=o.minHeight*this.aspectRatio,s=o.minWidth/this.aspectRatio,i=o.maxHeight*this.aspectRatio,n=o.maxWidth/this.aspectRatio,e>o.minWidth&&(o.minWidth=e),s>o.minHeight&&(o.minHeight=s),o.maxWidth>i&&(o.maxWidth=i),o.maxHeight>n&&(o.maxHeight=n)),this._vBoundaries=o},_updateCache:function(t){this.offset=this.helper.offset(),this._isNumber(t.left)&&(this.position.left=t.left),this._isNumber(t.top)&&(this.position.top=t.top),this._isNumber(t.height)&&(this.size.height=t.height),this._isNumber(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,i=this.size,s=this.axis;return this._isNumber(t.height)?t.width=t.height*this.aspectRatio:this._isNumber(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===s&&(t.left=e.left+(i.width-t.width),t.top=null),"nw"===s&&(t.top=e.top+(i.height-t.height),t.left=e.left+(i.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,i=this.axis,s=this._isNumber(t.width)&&e.maxWidth&&e.maxWidtht.width,a=this._isNumber(t.height)&&e.minHeight&&e.minHeight>t.height,r=this.originalPosition.left+this.originalSize.width,l=this.position.top+this.size.height,h=/sw|nw|w/.test(i),c=/nw|ne|n/.test(i);return o&&(t.width=e.minWidth),a&&(t.height=e.minHeight),s&&(t.width=e.maxWidth),n&&(t.height=e.maxHeight),o&&h&&(t.left=r-e.minWidth),s&&h&&(t.left=r-e.maxWidth),a&&c&&(t.top=l-e.minHeight),n&&c&&(t.top=l-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_getPaddingPlusBorderDimensions:function(t){for(var e=0,i=[],s=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],n=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];4>e;e++)i[e]=parseInt(s[e],10)||0,i[e]+=parseInt(n[e],10)||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,e=0,i=this.helper||this.element;this._proportionallyResizeElements.length>e;e++)t=this._proportionallyResizeElements[e],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(t)),t.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var e=this.element,i=this.options;this.elementOffset=e.offset(),this._helper?(this.helper=this.helper||t("
"),this.helper.addClass(this._helper).css({width:this.element.outerWidth()-1,height:this.element.outerHeight()-1,position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var i=this.originalSize;return{left:this.originalPosition.left+e,width:i.width-e}},n:function(t,e,i){var s=this.originalSize,n=this.originalPosition;return{top:n.top+i,height:s.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(e,i,s){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,i,s]))},sw:function(e,i,s){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,i,s]))},ne:function(e,i,s){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,i,s]))},nw:function(e,i,s){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,i,s]))}},_propagate:function(e,i){t.ui.plugin.call(this,e,[i,this.ui()]),"resize"!==e&&this._trigger(e,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),t.ui.plugin.add("resizable","animate",{stop:function(e){var i=t(this).resizable("instance"),s=i.options,n=i._proportionallyResizeElements,o=n.length&&/textarea/i.test(n[0].nodeName),a=o&&i._hasScroll(n[0],"left")?0:i.sizeDiff.height,r=o?0:i.sizeDiff.width,l={width:i.size.width-r,height:i.size.height-a},h=parseInt(i.element.css("left"),10)+(i.position.left-i.originalPosition.left)||null,c=parseInt(i.element.css("top"),10)+(i.position.top-i.originalPosition.top)||null;i.element.animate(t.extend(l,c&&h?{top:c,left:h}:{}),{duration:s.animateDuration,easing:s.animateEasing,step:function(){var s={width:parseInt(i.element.css("width"),10),height:parseInt(i.element.css("height"),10),top:parseInt(i.element.css("top"),10),left:parseInt(i.element.css("left"),10)};n&&n.length&&t(n[0]).css({width:s.width,height:s.height}),i._updateCache(s),i._propagate("resize",e)}})}}),t.ui.plugin.add("resizable","containment",{start:function(){var e,i,s,n,o,a,r,l=t(this).resizable("instance"),h=l.options,c=l.element,u=h.containment,d=u instanceof t?u.get(0):/parent/.test(u)?c.parent().get(0):u;d&&(l.containerElement=t(d),/document/.test(u)||u===document?(l.containerOffset={left:0,top:0},l.containerPosition={left:0,top:0},l.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight}):(e=t(d),i=[],t(["Top","Right","Left","Bottom"]).each((function(t,s){i[t]=l._num(e.css("padding"+s))})),l.containerOffset=e.offset(),l.containerPosition=e.position(),l.containerSize={height:e.innerHeight()-i[3],width:e.innerWidth()-i[1]},s=l.containerOffset,n=l.containerSize.height,o=l.containerSize.width,a=l._hasScroll(d,"left")?d.scrollWidth:o,r=l._hasScroll(d)?d.scrollHeight:n,l.parentData={element:d,left:s.left,top:s.top,width:a,height:r}))},resize:function(e){var i,s,n,o,a=t(this).resizable("instance"),r=a.options,l=a.containerOffset,h=a.position,c=a._aspectRatio||e.shiftKey,u={top:0,left:0},d=a.containerElement,p=!0;d[0]!==document&&/static/.test(d.css("position"))&&(u=l),h.left<(a._helper?l.left:0)&&(a.size.width=a.size.width+(a._helper?a.position.left-l.left:a.position.left-u.left),c&&(a.size.height=a.size.width/a.aspectRatio,p=!1),a.position.left=r.helper?l.left:0),h.top<(a._helper?l.top:0)&&(a.size.height=a.size.height+(a._helper?a.position.top-l.top:a.position.top),c&&(a.size.width=a.size.height*a.aspectRatio,p=!1),a.position.top=a._helper?l.top:0),n=a.containerElement.get(0)===a.element.parent().get(0),o=/relative|absolute/.test(a.containerElement.css("position")),n&&o?(a.offset.left=a.parentData.left+a.position.left,a.offset.top=a.parentData.top+a.position.top):(a.offset.left=a.element.offset().left,a.offset.top=a.element.offset().top),i=Math.abs(a.sizeDiff.width+(a._helper?a.offset.left-u.left:a.offset.left-l.left)),s=Math.abs(a.sizeDiff.height+(a._helper?a.offset.top-u.top:a.offset.top-l.top)),i+a.size.width>=a.parentData.width&&(a.size.width=a.parentData.width-i,c&&(a.size.height=a.size.width/a.aspectRatio,p=!1)),s+a.size.height>=a.parentData.height&&(a.size.height=a.parentData.height-s,c&&(a.size.width=a.size.height*a.aspectRatio,p=!1)),p||(a.position.left=a.prevPosition.left,a.position.top=a.prevPosition.top,a.size.width=a.prevSize.width,a.size.height=a.prevSize.height)},stop:function(){var e=t(this).resizable("instance"),i=e.options,s=e.containerOffset,n=e.containerPosition,o=e.containerElement,a=t(e.helper),r=a.offset(),l=a.outerWidth()-e.sizeDiff.width,h=a.outerHeight()-e.sizeDiff.height;e._helper&&!i.animate&&/relative/.test(o.css("position"))&&t(this).css({left:r.left-n.left-s.left,width:l,height:h}),e._helper&&!i.animate&&/static/.test(o.css("position"))&&t(this).css({left:r.left-n.left-s.left,width:l,height:h})}}),t.ui.plugin.add("resizable","alsoResize",{start:function(){var e=t(this).resizable("instance").options;t(e.alsoResize).each((function(){var e=t(this);e.data("ui-resizable-alsoresize",{width:parseInt(e.width(),10),height:parseInt(e.height(),10),left:parseInt(e.css("left"),10),top:parseInt(e.css("top"),10)})}))},resize:function(e,i){var s=t(this).resizable("instance"),n=s.options,o=s.originalSize,a=s.originalPosition,r={height:s.size.height-o.height||0,width:s.size.width-o.width||0,top:s.position.top-a.top||0,left:s.position.left-a.left||0};t(n.alsoResize).each((function(){var e=t(this),s=t(this).data("ui-resizable-alsoresize"),n={},o=e.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(o,(function(t,e){var i=(s[e]||0)+(r[e]||0);i&&i>=0&&(n[e]=i||null)})),e.css(n)}))},stop:function(){t(this).removeData("resizable-alsoresize")}}),t.ui.plugin.add("resizable","ghost",{start:function(){var e=t(this).resizable("instance"),i=e.options,s=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:s.height,width:s.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass("string"==typeof i.ghost?i.ghost:""),e.ghost.appendTo(e.helper)},resize:function(){var e=t(this).resizable("instance");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=t(this).resizable("instance");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(){var e,i=t(this).resizable("instance"),s=i.options,n=i.size,o=i.originalSize,a=i.originalPosition,r=i.axis,l="number"==typeof s.grid?[s.grid,s.grid]:s.grid,h=l[0]||1,c=l[1]||1,u=Math.round((n.width-o.width)/h)*h,d=Math.round((n.height-o.height)/c)*c,p=o.width+u,f=o.height+d,m=s.maxWidth&&p>s.maxWidth,g=s.maxHeight&&f>s.maxHeight,v=s.minWidth&&s.minWidth>p,y=s.minHeight&&s.minHeight>f;s.grid=l,v&&(p+=h),y&&(f+=c),m&&(p-=h),g&&(f-=c),/^(se|s|e)$/.test(r)?(i.size.width=p,i.size.height=f):/^(ne)$/.test(r)?(i.size.width=p,i.size.height=f,i.position.top=a.top-d):/^(sw)$/.test(r)?(i.size.width=p,i.size.height=f,i.position.left=a.left-u):((0>=f-c||0>=p-h)&&(e=i._getPaddingPlusBorderDimensions(this)),f-c>0?(i.size.height=f,i.position.top=a.top-d):(f=c-e.height,i.size.height=f,i.position.top=a.top+o.height-f),p-h>0?(i.size.width=p,i.position.left=a.left-u):(p=h-e.width,i.size.width=p,i.position.left=a.left+o.width-p))}}),t.ui.resizable,t.widget("ui.selectable",t.ui.mouse,{version:"1.11.4",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var e,i=this;this.element.addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){(e=t(i.options.filter,i.element[0])).addClass("ui-selectee"),e.each((function(){var e=t(this),i=e.offset();t.data(this,"selectable-item",{element:this,$element:e,left:i.left,top:i.top,right:i.left+e.outerWidth(),bottom:i.top+e.outerHeight(),startselected:!1,selected:e.hasClass("ui-selected"),selecting:e.hasClass("ui-selecting"),unselecting:e.hasClass("ui-unselecting")})}))},this.refresh(),this.selectees=e.addClass("ui-selectee"),this._mouseInit(),this.helper=t("
")},_destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("ui-selectable ui-selectable-disabled"),this._mouseDestroy()},_mouseStart:function(e){var i=this,s=this.options;this.opos=[e.pageX,e.pageY],this.options.disabled||(this.selectees=t(s.filter,this.element[0]),this._trigger("start",e),t(s.appendTo).append(this.helper),this.helper.css({left:e.pageX,top:e.pageY,width:0,height:0}),s.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each((function(){var s=t.data(this,"selectable-item");s.startselected=!0,e.metaKey||e.ctrlKey||(s.$element.removeClass("ui-selected"),s.selected=!1,s.$element.addClass("ui-unselecting"),s.unselecting=!0,i._trigger("unselecting",e,{unselecting:s.element}))})),t(e.target).parents().addBack().each((function(){var s,n=t.data(this,"selectable-item");return n?(s=!e.metaKey&&!e.ctrlKey||!n.$element.hasClass("ui-selected"),n.$element.removeClass(s?"ui-unselecting":"ui-selected").addClass(s?"ui-selecting":"ui-unselecting"),n.unselecting=!s,n.selecting=s,n.selected=s,s?i._trigger("selecting",e,{selecting:n.element}):i._trigger("unselecting",e,{unselecting:n.element}),!1):void 0})))},_mouseDrag:function(e){if(this.dragged=!0,!this.options.disabled){var i,s=this,n=this.options,o=this.opos[0],a=this.opos[1],r=e.pageX,l=e.pageY;return o>r&&(i=r,r=o,o=i),a>l&&(i=l,l=a,a=i),this.helper.css({left:o,top:a,width:r-o,height:l-a}),this.selectees.each((function(){var i=t.data(this,"selectable-item"),h=!1;i&&i.element!==s.element[0]&&("touch"===n.tolerance?h=!(i.left>r||o>i.right||i.top>l||a>i.bottom):"fit"===n.tolerance&&(h=i.left>o&&r>i.right&&i.top>a&&l>i.bottom),h?(i.selected&&(i.$element.removeClass("ui-selected"),i.selected=!1),i.unselecting&&(i.$element.removeClass("ui-unselecting"),i.unselecting=!1),i.selecting||(i.$element.addClass("ui-selecting"),i.selecting=!0,s._trigger("selecting",e,{selecting:i.element}))):(i.selecting&&((e.metaKey||e.ctrlKey)&&i.startselected?(i.$element.removeClass("ui-selecting"),i.selecting=!1,i.$element.addClass("ui-selected"),i.selected=!0):(i.$element.removeClass("ui-selecting"),i.selecting=!1,i.startselected&&(i.$element.addClass("ui-unselecting"),i.unselecting=!0),s._trigger("unselecting",e,{unselecting:i.element}))),i.selected&&(e.metaKey||e.ctrlKey||i.startselected||(i.$element.removeClass("ui-selected"),i.selected=!1,i.$element.addClass("ui-unselecting"),i.unselecting=!0,s._trigger("unselecting",e,{unselecting:i.element})))))})),!1}},_mouseStop:function(e){var i=this;return this.dragged=!1,t(".ui-unselecting",this.element[0]).each((function(){var s=t.data(this,"selectable-item");s.$element.removeClass("ui-unselecting"),s.unselecting=!1,s.startselected=!1,i._trigger("unselected",e,{unselected:s.element})})),t(".ui-selecting",this.element[0]).each((function(){var s=t.data(this,"selectable-item");s.$element.removeClass("ui-selecting").addClass("ui-selected"),s.selecting=!1,s.selected=!0,s.startselected=!0,i._trigger("selected",e,{selected:s.element})})),this._trigger("stop",e),this.helper.remove(),!1}}),t.widget("ui.sortable",t.ui.mouse,{version:"1.11.4",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(t,e,i){return t>=e&&e+i>t},_isFloating:function(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))},_create:function(){this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(t,e){this._super(t,e),"handle"===t&&this._setHandleClassName()},_setHandleClassName:function(){this.element.find(".ui-sortable-handle").removeClass("ui-sortable-handle"),t.each(this.items,(function(){(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item).addClass("ui-sortable-handle")}))},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").find(".ui-sortable-handle").removeClass("ui-sortable-handle"),this._mouseDestroy();for(var t=this.items.length-1;t>=0;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(e,i){var s=null,n=!1,o=this;return!(this.reverting||this.options.disabled||"static"===this.options.type||(this._refreshItems(e),t(e.target).parents().each((function(){return t.data(this,o.widgetName+"-item")===o?(s=t(this),!1):void 0})),t.data(e.target,o.widgetName+"-item")===o&&(s=t(e.target)),!s||this.options.handle&&!i&&(t(this.options.handle,s).find("*").addBack().each((function(){this===e.target&&(n=!0)})),!n)||(this.currentItem=s,this._removeCurrentsFromItems(),0)))},_mouseStart:function(e,i,s){var n,o,a=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,a.cursorAt&&this._adjustOffsetFromHelper(a.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),a.containment&&this._setContainment(),a.cursor&&"auto"!==a.cursor&&(o=this.document.find("body"),this.storedCursor=o.css("cursor"),o.css("cursor",a.cursor),this.storedStylesheet=t("").appendTo(o)),a.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",a.opacity)),a.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",a.zIndex)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!s)for(n=this.containers.length-1;n>=0;n--)this.containers[n]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!a.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(e),!0},_mouseDrag:function(e){var i,s,n,o,a=this.options,r=!1;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY=0;i--)if(n=(s=this.items[i]).item[0],(o=this._intersectsWithPointer(s))&&s.instance===this.currentContainer&&n!==this.currentItem[0]&&this.placeholder[1===o?"next":"prev"]()[0]!==n&&!t.contains(this.placeholder[0],n)&&("semi-dynamic"!==this.options.type||!t.contains(this.element[0],n))){if(this.direction=1===o?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(s))break;this._rearrange(e,s),this._trigger("change",e,this._uiHash());break}return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,i){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var s=this,n=this.placeholder.offset(),o=this.options.axis,a={};o&&"x"!==o||(a.left=n.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),o&&"y"!==o||(a.top=n.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,t(this.helper).animate(a,parseInt(this.options.revert,10)||500,(function(){s._clear(e)}))}else this._clear(e,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp({target:null}),"original"===this.options.helper?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var i=this._getItemsAsjQuery(e&&e.connected),s=[];return e=e||{},t(i).each((function(){var i=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);i&&s.push((e.key||i[1]+"[]")+"="+(e.key&&e.expression?i[1]:i[2]))})),!s.length&&e.key&&s.push(e.key+"="),s.join("&")},toArray:function(e){var i=this._getItemsAsjQuery(e&&e.connected),s=[];return e=e||{},i.each((function(){s.push(t(e.item||this).attr(e.attribute||"id")||"")})),s},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,s=this.positionAbs.top,n=s+this.helperProportions.height,o=t.left,a=o+t.width,r=t.top,l=r+t.height,h=this.offset.click.top,c=this.offset.click.left,u="x"===this.options.axis||s+h>r&&l>s+h,d="y"===this.options.axis||e+c>o&&a>e+c,p=u&&d;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?p:e+this.helperProportions.width/2>o&&a>i-this.helperProportions.width/2&&s+this.helperProportions.height/2>r&&l>n-this.helperProportions.height/2},_intersectsWithPointer:function(t){var e="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),i="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width),s=e&&i,n=this._getDragVerticalDirection(),o=this._getDragHorizontalDirection();return!!s&&(this.floating?o&&"right"===o||"down"===n?2:1:n&&("down"===n?2:1))},_intersectsWithSides:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),i=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),s=this._getDragVerticalDirection(),n=this._getDragHorizontalDirection();return this.floating&&n?"right"===n&&i||"left"===n&&!i:s&&("down"===s&&e||"up"===s&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!==t&&(t>0?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!==t&&(t>0?"right":"left")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){function i(){r.push(this)}var s,n,o,a,r=[],l=[],h=this._connectWith();if(h&&e)for(s=h.length-1;s>=0;s--)for(n=(o=t(h[s],this.document[0])).length-1;n>=0;n--)(a=t.data(o[n],this.widgetFullName))&&a!==this&&!a.options.disabled&&l.push([t.isFunction(a.options.items)?a.options.items.call(a.element):t(a.options.items,a.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),a]);for(l.push([t.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),s=l.length-1;s>=0;s--)l[s][0].each(i);return t(r)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,(function(t){for(var i=0;e.length>i;i++)if(e[i]===t.item[0])return!1;return!0}))},_refreshItems:function(e){this.items=[],this.containers=[this];var i,s,n,o,a,r,l,h,c=this.items,u=[[t.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],d=this._connectWith();if(d&&this.ready)for(i=d.length-1;i>=0;i--)for(s=(n=t(d[i],this.document[0])).length-1;s>=0;s--)(o=t.data(n[s],this.widgetFullName))&&o!==this&&!o.options.disabled&&(u.push([t.isFunction(o.options.items)?o.options.items.call(o.element[0],e,{item:this.currentItem}):t(o.options.items,o.element),o]),this.containers.push(o));for(i=u.length-1;i>=0;i--)for(a=u[i][1],s=0,h=(r=u[i][0]).length;h>s;s++)(l=t(r[s])).data(this.widgetName+"-item",a),c.push({item:l,instance:a,width:0,height:0,left:0,top:0})},refreshPositions:function(e){var i,s,n,o;for(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),i=this.items.length-1;i>=0;i--)(s=this.items[i]).instance!==this.currentContainer&&this.currentContainer&&s.item[0]!==this.currentItem[0]||(n=this.options.toleranceElement?t(this.options.toleranceElement,s.item):s.item,e||(s.width=n.outerWidth(),s.height=n.outerHeight()),o=n.offset(),s.left=o.left,s.top=o.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(i=this.containers.length-1;i>=0;i--)o=this.containers[i].element.offset(),this.containers[i].containerCache.left=o.left,this.containers[i].containerCache.top=o.top,this.containers[i].containerCache.width=this.containers[i].element.outerWidth(),this.containers[i].containerCache.height=this.containers[i].element.outerHeight();return this},_createPlaceholder:function(e){var i,s=(e=e||this).options;s.placeholder&&s.placeholder.constructor!==String||(i=s.placeholder,s.placeholder={element:function(){var s=e.currentItem[0].nodeName.toLowerCase(),n=t("<"+s+">",e.document[0]).addClass(i||e.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper");return"tbody"===s?e._createTrPlaceholder(e.currentItem.find("tr").eq(0),t("",e.document[0]).appendTo(n)):"tr"===s?e._createTrPlaceholder(e.currentItem,n):"img"===s&&n.attr("src",e.currentItem.attr("src")),i||n.css("visibility","hidden"),n},update:function(t,n){(!i||s.forcePlaceholderSize)&&(n.height()||n.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),n.width()||n.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)))}}),e.placeholder=t(s.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),s.placeholder.update(e,e.placeholder)},_createTrPlaceholder:function(e,i){var s=this;e.children().each((function(){t(" ",s.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(i)}))},_contactContainers:function(e){var i,s,n,o,a,r,l,h,c,u,d=null,p=null;for(i=this.containers.length-1;i>=0;i--)if(!t.contains(this.currentItem[0],this.containers[i].element[0]))if(this._intersectsWith(this.containers[i].containerCache)){if(d&&t.contains(this.containers[i].element[0],d.element[0]))continue;d=this.containers[i],p=i}else this.containers[i].containerCache.over&&(this.containers[i]._trigger("out",e,this._uiHash(this)),this.containers[i].containerCache.over=0);if(d)if(1===this.containers.length)this.containers[p].containerCache.over||(this.containers[p]._trigger("over",e,this._uiHash(this)),this.containers[p].containerCache.over=1);else{for(n=1e4,o=null,a=(c=d.floating||this._isFloating(this.currentItem))?"left":"top",r=c?"width":"height",u=c?"clientX":"clientY",s=this.items.length-1;s>=0;s--)t.contains(this.containers[p].element[0],this.items[s].item[0])&&this.items[s].item[0]!==this.currentItem[0]&&(l=this.items[s].item.offset()[a],h=!1,e[u]-l>this.items[s][r]/2&&(h=!0),n>Math.abs(e[u]-l)&&(n=Math.abs(e[u]-l),o=this.items[s],this.direction=h?"up":"down"));if(!o&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[p])return void(this.currentContainer.containerCache.over||(this.containers[p]._trigger("over",e,this._uiHash()),this.currentContainer.containerCache.over=1));o?this._rearrange(e,o,null,!0):this._rearrange(e,null,this.containers[p].element,!0),this._trigger("change",e,this._uiHash()),this.containers[p]._trigger("change",e,this._uiHash(this)),this.currentContainer=this.containers[p],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[p]._trigger("over",e,this._uiHash(this)),this.containers[p].containerCache.over=1}},_createHelper:function(e){var i=this.options,s=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e,this.currentItem])):"clone"===i.helper?this.currentItem.clone():this.currentItem;return s.parents("body").length||t("parent"!==i.appendTo?i.appendTo:this.currentItem[0].parentNode)[0].appendChild(s[0]),s[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(!s[0].style.width||i.forceHelperSize)&&s.width(this.currentItem.width()),(!s[0].style.height||i.forceHelperSize)&&s.height(this.currentItem.height()),s},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&t.ui.ie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,s,n=this.options;"parent"===n.containment&&(n.containment=this.helper[0].parentNode),("document"===n.containment||"window"===n.containment)&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===n.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===n.containment?this.document.width():this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(n.containment)||(e=t(n.containment)[0],i=t(n.containment).offset(),s="hidden"!==t(e).css("overflow"),this.containment=[i.left+(parseInt(t(e).css("borderLeftWidth"),10)||0)+(parseInt(t(e).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(t(e).css("borderTopWidth"),10)||0)+(parseInt(t(e).css("paddingTop"),10)||0)-this.margins.top,i.left+(s?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(t(e).css("borderLeftWidth"),10)||0)-(parseInt(t(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(s?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(t(e).css("borderTopWidth"),10)||0)-(parseInt(t(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(e,i){i||(i=this.position);var s="absolute"===e?1:-1,n="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,o=/(html|body)/i.test(n[0].tagName);return{top:i.top+this.offset.relative.top*s+this.offset.parent.top*s-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():o?0:n.scrollTop())*s,left:i.left+this.offset.relative.left*s+this.offset.parent.left*s-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():o?0:n.scrollLeft())*s}},_generatePosition:function(e){var i,s,n=this.options,o=e.pageX,a=e.pageY,r="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=/(html|body)/i.test(r[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(e.pageX-this.offset.click.leftthis.containment[2]&&(o=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(a=this.containment[3]+this.offset.click.top)),n.grid&&(i=this.originalPageY+Math.round((a-this.originalPageY)/n.grid[1])*n.grid[1],a=this.containment?i-this.offset.click.top>=this.containment[1]&&i-this.offset.click.top<=this.containment[3]?i:i-this.offset.click.top>=this.containment[1]?i-n.grid[1]:i+n.grid[1]:i,s=this.originalPageX+Math.round((o-this.originalPageX)/n.grid[0])*n.grid[0],o=this.containment?s-this.offset.click.left>=this.containment[0]&&s-this.offset.click.left<=this.containment[2]?s:s-this.offset.click.left>=this.containment[0]?s-n.grid[0]:s+n.grid[0]:s)),{top:a-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:r.scrollTop()),left:o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:r.scrollLeft())}},_rearrange:function(t,e,i,s){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var n=this.counter;this._delay((function(){n===this.counter&&this.refreshPositions(!s)}))},_clear:function(t,e){function i(t,e,i){return function(s){i._trigger(t,s,e._uiHash(e))}}this.reverting=!1;var s,n=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(s in this._storedCSS)("auto"===this._storedCSS[s]||"static"===this._storedCSS[s])&&(this._storedCSS[s]="");this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!e&&n.push((function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))})),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||n.push((function(t){this._trigger("update",t,this._uiHash())})),this!==this.currentContainer&&(e||(n.push((function(t){this._trigger("remove",t,this._uiHash())})),n.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),n.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer)))),s=this.containers.length-1;s>=0;s--)e||n.push(i("deactivate",this,this.containers[s])),this.containers[s].containerCache.over&&(n.push(i("out",this,this.containers[s])),this.containers[s].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(s=0;n.length>s;s++)n[s].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===t.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(e){var i=e||this;return{helper:i.helper,placeholder:i.placeholder||t([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:e?e.element:null}}}),t.widget("ui.accordion",{version:"1.11.4",options:{active:0,animate:{},collapsible:!1,event:"click",header:"> li > :first-child,> :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var e=this.options;this.prevShow=this.prevHide=t(),this.element.addClass("ui-accordion ui-widget ui-helper-reset").attr("role","tablist"),e.collapsible||!1!==e.active&&null!=e.active||(e.active=0),this._processPanels(),0>e.active&&(e.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():t()}},_createIcons:function(){var e=this.options.icons;e&&(t("").addClass("ui-accordion-header-icon ui-icon "+e.header).prependTo(this.headers),this.active.children(".ui-accordion-header-icon").removeClass(e.header).addClass(e.activeHeader),this.headers.addClass("ui-accordion-icons"))},_destroyIcons:function(){this.headers.removeClass("ui-accordion-icons").children(".ui-accordion-header-icon").remove()},_destroy:function(){var t;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role"),this.headers.removeClass("ui-accordion-header ui-accordion-header-active ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-selected").removeAttr("aria-controls").removeAttr("tabIndex").removeUniqueId(),this._destroyIcons(),t=this.headers.next().removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled").css("display","").removeAttr("role").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&t.css("height","")},_setOption:function(t,e){return"active"===t?void this._activate(e):("event"===t&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(e)),this._super(t,e),"collapsible"!==t||e||!1!==this.options.active||this._activate(0),"icons"===t&&(this._destroyIcons(),e&&this._createIcons()),void("disabled"===t&&(this.element.toggleClass("ui-state-disabled",!!e).attr("aria-disabled",e),this.headers.add(this.headers.next()).toggleClass("ui-state-disabled",!!e))))},_keydown:function(e){if(!e.altKey&&!e.ctrlKey){var i=t.ui.keyCode,s=this.headers.length,n=this.headers.index(e.target),o=!1;switch(e.keyCode){case i.RIGHT:case i.DOWN:o=this.headers[(n+1)%s];break;case i.LEFT:case i.UP:o=this.headers[(n-1+s)%s];break;case i.SPACE:case i.ENTER:this._eventHandler(e);break;case i.HOME:o=this.headers[0];break;case i.END:o=this.headers[s-1]}o&&(t(e.target).attr("tabIndex",-1),t(o).attr("tabIndex",0),o.focus(),e.preventDefault())}},_panelKeyDown:function(e){e.keyCode===t.ui.keyCode.UP&&e.ctrlKey&&t(e.currentTarget).prev().focus()},refresh:function(){var e=this.options;this._processPanels(),!1===e.active&&!0===e.collapsible||!this.headers.length?(e.active=!1,this.active=t()):!1===e.active?this._activate(0):this.active.length&&!t.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(e.active=!1,this.active=t()):this._activate(Math.max(0,e.active-1)):e.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var t=this.headers,e=this.panels;this.headers=this.element.find(this.options.header).addClass("ui-accordion-header ui-state-default ui-corner-all"),this.panels=this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").filter(":not(.ui-accordion-content-active)").hide(),e&&(this._off(t.not(this.headers)),this._off(e.not(this.panels)))},_refresh:function(){var e,i=this.options,s=i.heightStyle,n=this.element.parent();this.active=this._findActive(i.active).addClass("ui-accordion-header-active ui-state-active ui-corner-top").removeClass("ui-corner-all"),this.active.next().addClass("ui-accordion-content-active").show(),this.headers.attr("role","tab").each((function(){var e=t(this),i=e.uniqueId().attr("id"),s=e.next(),n=s.uniqueId().attr("id");e.attr("aria-controls",n),s.attr("aria-labelledby",i)})).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(i.event),"fill"===s?(e=n.height(),this.element.siblings(":visible").each((function(){var i=t(this),s=i.css("position");"absolute"!==s&&"fixed"!==s&&(e-=i.outerHeight(!0))})),this.headers.each((function(){e-=t(this).outerHeight(!0)})),this.headers.next().each((function(){t(this).height(Math.max(0,e-t(this).innerHeight()+t(this).height()))})).css("overflow","auto")):"auto"===s&&(e=0,this.headers.next().each((function(){e=Math.max(e,t(this).css("height","").height())})).height(e))},_activate:function(e){var i=this._findActive(e)[0];i!==this.active[0]&&(i=i||this.active[0],this._eventHandler({target:i,currentTarget:i,preventDefault:t.noop}))},_findActive:function(e){return"number"==typeof e?this.headers.eq(e):t()},_setupEvents:function(e){var i={keydown:"_keydown"};e&&t.each(e.split(" "),(function(t,e){i[e]="_eventHandler"})),this._off(this.headers.add(this.headers.next())),this._on(this.headers,i),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(e){var i=this.options,s=this.active,n=t(e.currentTarget),o=n[0]===s[0],a=o&&i.collapsible,r=a?t():n.next(),l=s.next(),h={oldHeader:s,oldPanel:l,newHeader:a?t():n,newPanel:r};e.preventDefault(),o&&!i.collapsible||!1===this._trigger("beforeActivate",e,h)||(i.active=!a&&this.headers.index(n),this.active=o?t():n,this._toggle(h),s.removeClass("ui-accordion-header-active ui-state-active"),i.icons&&s.children(".ui-accordion-header-icon").removeClass(i.icons.activeHeader).addClass(i.icons.header),o||(n.removeClass("ui-corner-all").addClass("ui-accordion-header-active ui-state-active ui-corner-top"),i.icons&&n.children(".ui-accordion-header-icon").removeClass(i.icons.header).addClass(i.icons.activeHeader),n.next().addClass("ui-accordion-content-active")))},_toggle:function(e){var i=e.newPanel,s=this.prevShow.length?this.prevShow:e.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=i,this.prevHide=s,this.options.animate?this._animate(i,s,e):(s.hide(),i.show(),this._toggleComplete(e)),s.attr({"aria-hidden":"true"}),s.prev().attr({"aria-selected":"false","aria-expanded":"false"}),i.length&&s.length?s.prev().attr({tabIndex:-1,"aria-expanded":"false"}):i.length&&this.headers.filter((function(){return 0===parseInt(t(this).attr("tabIndex"),10)})).attr("tabIndex",-1),i.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(t,e,i){var s,n,o,a=this,r=0,l=t.css("box-sizing"),h=t.length&&(!e.length||t.index()",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},items:"> *",menus:"ul",position:{my:"left-1 top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}),this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item":function(t){t.preventDefault()},"click .ui-menu-item":function(e){var i=t(e.target);!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")&&t(this.document[0].activeElement).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.currentTarget);i.siblings(".ui-state-active").removeClass("ui-state-active"),this.focus(e,i)}},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],this.document[0].activeElement)||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(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeClass("ui-menu ui-widget ui-widget-content ui-menu-icons ui-front").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show(),this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").removeUniqueId().removeClass("ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each((function(){var e=t(this);e.data("ui-menu-submenu-carat")&&e.remove()})),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(e){var i,s,n,o,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,s=this.previousFilter||"",n=String.fromCharCode(e.keyCode),o=!1,clearTimeout(this.filterTimer),n===s?o=!0:n=s+n,i=this._filterMenuItems(n),(i=o&&-1!==i.index(this.active.next())?this.active.nextAll(".ui-menu-item"):i).length||(n=String.fromCharCode(e.keyCode),i=this._filterMenuItems(n)),i.length?(this.focus(e,i),this.previousFilter=n,this.filterTimer=this._delay((function(){delete this.previousFilter}),1e3)):delete this.previousFilter}a&&e.preventDefault()},_activate:function(t){this.active.is(".ui-state-disabled")||(this.active.is("[aria-haspopup='true']")?this.expand(t):this.select(t))},refresh:function(){var e,i=this,s=this.options.icons.submenu,n=this.element.find(this.options.menus);this.element.toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length),n.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-front").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each((function(){var e=t(this),i=e.parent(),n=t("").addClass("ui-menu-icon ui-icon "+s).data("ui-menu-submenu-carat",!0);i.attr("aria-haspopup","true").prepend(n),e.attr("aria-labelledby",i.attr("id"))})),(e=n.add(this.element).find(this.options.items)).not(".ui-menu-item").each((function(){var e=t(this);i._isDivider(e)&&e.addClass("ui-widget-content ui-menu-divider")})),e.not(".ui-menu-item, .ui-menu-divider").addClass("ui-menu-item").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),e.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){"icons"===t&&this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(e.submenu),"disabled"===t&&this.element.toggleClass("ui-state-disabled",!!e).attr("aria-disabled",e),this._super(t,e)},focus:function(t,e){var i,s;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),s=this.active.addClass("ui-state-focus").removeClass("ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",s.attr("id")),this.active.parent().closest(".ui-menu-item").addClass("ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay((function(){this._close()}),this.delay),(i=e.children(".ui-menu")).length&&t&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(e){var i,s,n,o,a,r;this._hasScroll()&&(i=parseFloat(t.css(this.activeMenu[0],"borderTopWidth"))||0,s=parseFloat(t.css(this.activeMenu[0],"paddingTop"))||0,n=e.offset().top-this.activeMenu.offset().top-i-s,o=this.activeMenu.scrollTop(),a=this.activeMenu.height(),r=e.outerHeight(),0>n?this.activeMenu.scrollTop(o+n):n+r>a&&this.activeMenu.scrollTop(o+n-a+r))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this.active.removeClass("ui-state-focus"),this.active=null,this._trigger("blur",t,{item:this.active}))},_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 s=i?this.element:t(e&&e.target).closest(this.element.find(".ui-menu"));s.length||(s=this.element),this._close(s),this.blur(e),this.activeMenu=s}),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").end().find(".ui-state-active").not(".ui-state-focus").removeClass("ui-state-active")},_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 s;this.active&&(s="first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[t+"All"](".ui-menu-item").eq(0)),s&&s.length&&this.active||(s=this.activeMenu.find(this.options.items)[e]()),this.focus(i,s)},nextPage:function(e){var i,s,n;return this.active?void(this.isLastItem()||(this._hasScroll()?(s=this.active.offset().top,n=this.element.height(),this.active.nextAll(".ui-menu-item").each((function(){return 0>(i=t(this)).offset().top-s-n})),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,s,n;return this.active?void(this.isFirstItem()||(this._hasScroll()?(s=this.active.offset().top,n=this.element.height(),this.active.prevAll(".ui-menu-item").each((function(){return(i=t(this)).offset().top-s+n>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()",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,s,n=this.element[0].nodeName.toLowerCase(),o="textarea"===n,a="input"===n;this.isMultiLine=!!o||!a&&this.element.prop("isContentEditable"),this.valueMethod=this.element[o||a?"val":"text"],this.isNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(n){if(this.element.prop("readOnly"))return e=!0,s=!0,void(i=!0);e=!1,s=!1,i=!1;var o=t.ui.keyCode;switch(n.keyCode){case o.PAGE_UP:e=!0,this._move("previousPage",n);break;case o.PAGE_DOWN:e=!0,this._move("nextPage",n);break;case o.UP:e=!0,this._keyEvent("previous",n);break;case o.DOWN:e=!0,this._keyEvent("next",n);break;case o.ENTER:this.menu.active&&(e=!0,n.preventDefault(),this.menu.select(n));break;case o.TAB:this.menu.active&&this.menu.select(n);break;case o.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(n),n.preventDefault());break;default:i=!0,this._searchTimeout(n)}},keypress:function(s){if(e)return e=!1,void((!this.isMultiLine||this.menu.element.is(":visible"))&&s.preventDefault());if(!i){var n=t.ui.keyCode;switch(s.keyCode){case n.PAGE_UP:this._move("previousPage",s);break;case n.PAGE_DOWN:this._move("nextPage",s);break;case n.UP:this._keyEvent("previous",s);break;case n.DOWN:this._keyEvent("next",s)}}},input:function(t){return s?(s=!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("