1
|
!function(e,t){function a(e,t){var a=e.createElement("p"),i=e.getElementsByTagName("head")[0]||e.documentElement;return a.innerHTML="x<style>"+t+"</style>",i.insertBefore(a.lastChild,i.firstChild)}function i(){var e=w.elements;return"string"==typeof e?e.split(" "):e}function r(e,t){var a=w.elements;"string"!=typeof a&&(a=a.join(" ")),"string"!=typeof e&&(e=e.join(" ")),w.elements=a+" "+e,d(t)}function n(e){var t=y[e[g]];return t||(t={},v++,e[g]=v,y[v]=t),t}function s(e,a,i){if(a||(a=t),u)return a.createElement(e);i||(i=n(a));var r;return r=i.cache[e]?i.cache[e].cloneNode():f.test(e)?(i.cache[e]=i.createElem(e)).cloneNode():i.createElem(e),!r.canHaveChildren||m.test(e)||r.tagUrn?r:i.frag.appendChild(r)}function o(e,a){if(e||(e=t),u)return e.createDocumentFragment();a=a||n(e);for(var r=a.frag.cloneNode(),s=0,o=i(),l=o.length;s<l;s++)r.createElement(o[s]);return r}function l(e,t){t.cache||(t.cache={},t.createElem=e.createElement,t.createFrag=e.createDocumentFragment,t.frag=t.createFrag()),e.createElement=function(a){return w.shivMethods?s(a,e,t):t.createElem(a)},e.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+i().join().replace(/[\w\-:]+/g,function(e){return t.createElem(e),t.frag.createElement(e),'c("'+e+'")'})+");return n}")(w,t.frag)}function d(e){e||(e=t);var i=n(e);return!w.shivCSS||p||i.hasCSS||(i.hasCSS=!!a(e,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),u||l(e,i),e}var p,u,c="3.7.3",h=e.html5||{},m=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,f=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,g="_html5shiv",v=0,y={};!function(){try{var e=t.createElement("a");e.innerHTML="<xyz></xyz>",p="hidden"in e,u=1==e.childNodes.length||function(){t.createElement("a");var e=t.createDocumentFragment();return"undefined"==typeof e.cloneNode||"undefined"==typeof e.createDocumentFragment||"undefined"==typeof e.createElement}()}catch(a){p=!0,u=!0}}();var w={elements:h.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:c,shivCSS:h.shivCSS!==!1,supportsUnknownElements:u,shivMethods:h.shivMethods!==!1,type:"default",shivDocument:d,createElement:s,createDocumentFragment:o,addElements:r};e.html5=w,d(t),"object"==typeof module&&module.exports&&(module.exports=w)}("undefined"!=typeof window?window:this,document),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(e){var t,a,i,r,n,s,o="Close",l="BeforeClose",d="AfterClose",p="BeforeAppend",u="MarkupParse",c="Open",h="Change",m="mfp",f="."+m,g="mfp-ready",v="mfp-removing",y="mfp-prevent-close",w=function(){},b=!!window.jQuery,x=e(window),C=function(e,a){t.ev.on(m+e+f,a)},_=function(t,a,i,r){var n=document.createElement("div");return n.className="mfp-"+t,i&&(n.innerHTML=i),r?a&&a.appendChild(n):(n=e(n),a&&n.appendTo(a)),n},k=function(a,i){t.ev.triggerHandler(m+a,i),t.st.callbacks&&(a=a.charAt(0).toLowerCase()+a.slice(1),t.st.callbacks[a]&&t.st.callbacks[a].apply(t,e.isArray(i)?i:[i]))},T=function(a){return a===s&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),s=a),t.currTemplate.closeBtn},S=function(){e.magnificPopup.instance||(t=new w,t.init(),e.magnificPopup.instance=t)},D=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1};w.prototype={constructor:w,init:function(){var a=navigator.appVersion;t.isIE7=a.indexOf("MSIE 7.")!==-1,t.isIE8=a.indexOf("MSIE 8.")!==-1,t.isLowIE=t.isIE7||t.isIE8,t.isAndroid=/android/gi.test(a),t.isIOS=/iphone|ipad|ipod/gi.test(a),t.supportsTransition=D(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),i=e(document),t.popupsCache={}},open:function(a){var r;if(a.isObj===!1){t.items=a.items.toArray(),t.index=0;var s,o=a.items;for(r=0;r<o.length;r++)if(s=o[r],s.parsed&&(s=s.el[0]),s===a.el[0]){t.index=r;break}}else t.items=e.isArray(a.items)?a.items:[a.items],t.index=a.index||0;if(t.isOpen)return void t.updateItemHTML();t.types=[],n="",a.mainEl&&a.mainEl.length?t.ev=a.mainEl.eq(0):t.ev=i,a.key?(t.popupsCache[a.key]||(t.popupsCache[a.key]={}),t.currTemplate=t.popupsCache[a.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopup.defaults,a),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=_("bg").on("click"+f,function(){t.close()}),t.wrap=_("wrap").attr("tabindex",-1).on("click"+f,function(e){t._checkIfClose(e.target)&&t.close()}),t.container=_("container",t.wrap)),t.contentContainer=_("content"),t.st.preloader&&(t.preloader=_("preloader",t.container,t.st.tLoading));var l=e.magnificPopup.modules;for(r=0;r<l.length;r++){var d=l[r];d=d.charAt(0).toUpperCase()+d.slice(1),t["init"+d].call(t)}k("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(C(u,function(e,t,a,i){a.close_replaceWith=T(i.type)}),n+=" mfp-close-btn-in"):t.wrap.append(T())),t.st.alignTop&&(n+=" mfp-align-top"),t.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({top:x.scrollTop(),position:"absolute"}),(t.st.fixedBgPos===!1||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:i.height(),position:"absolute"}),t.st.enableEscapeKey&&i.on("keyup"+f,function(e){27===e.keyCode&&t.close()}),x.on("resize"+f,function(){t.updateSize()}),t.st.closeOnContentClick||(n+=" mfp-auto-cursor"),n&&t.wrap.addClass(n);var p=t.wH=x.height(),h={};if(t.fixedContentPos&&t._hasScrollBar(p)){var m=t._getScrollbarSize();m&&(h.marginRight=m)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):h.overflow="hidden");var v=t.st.mainClass;return t.isIE7&&(v+=" mfp-ie7"),v&&t._addClassToMFP(v),t.updateItemHTML(),k("BuildControls"),e("html").css(h),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||e(document.body)),t._lastFocusedEl=document.activeElement,setTimeout(function(){t.content?(t._addClassToMFP(g),t._setFocus()):t.bgOverlay.addClass(g),i.on("focusin"+f,t._onFocusIn)},16),t.isOpen=!0,t.updateSize(p),k(c),a},close:function(){t.isOpen&&(k(l),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP(v),setTimeout(function(){t._close()},t.st.removalDelay)):t._close())},_close:function(){k(o);var a=v+" "+g+" ";if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(a+=t.st.mainClass+" "),t._removeClassFromMFP(a),t.fixedContentPos){var r={marginRight:""};t.isIE7?e("body, html").css("overflow",""):r.overflow="",e("html").css(r)}i.off("keyup"+f+" focusin"+f),t.ev.off(f),t.wrap.attr("class","mfp-wrap").removeAttr("style"),t.bgOverlay.attr("class","mfp-bg"),t.container.attr("class","mfp-container"),!t.st.showCloseBtn||t.st.closeBtnInside&&t.currTemplate[t.currItem.type]!==!0||t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach(),t.st.autoFocusLast&&t._lastFocusedEl&&e(t._lastFocusedEl).focus(),t.currItem=null,t.content=null,t.currTemplate=null,t.prevHeight=0,k(d)},updateSize:function(e){if(t.isIOS){var a=document.documentElement.clientWidth/window.innerWidth,i=window.innerHeight*a;t.wrap.css("height",i),t.wH=i}else t.wH=e||x.height();t.fixedContentPos||t.wrap.css("height",t.wH),k("Resize")},updateItemHTML:function(){var a=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),a.parsed||(a=t.parseEl(t.index));var i=a.type;if(k("BeforeChange",[t.currItem?t.currItem.type:"",i]),t.currItem=a,!t.currTemplate[i]){var n=!!t.st[i]&&t.st[i].markup;k("FirstMarkupParse",n),n?t.currTemplate[i]=e(n):t.currTemplate[i]=!0}r&&r!==a.type&&t.container.removeClass("mfp-"+r+"-holder");var s=t["get"+i.charAt(0).toUpperCase()+i.slice(1)](a,t.currTemplate[i]);t.appendContent(s,i),a.preloaded=!0,k(h,a),r=a.type,t.container.prepend(t.contentContainer),k("AfterChange")},appendContent:function(e,a){t.content=e,e?t.st.showCloseBtn&&t.st.closeBtnInside&&t.currTemplate[a]===!0?t.content.find(".mfp-close").length||t.content.append(T()):t.content=e:t.content="",k(p),t.container.addClass("mfp-"+a+"-holder"),t.contentContainer.append(t.content)},parseEl:function(a){var i,r=t.items[a];if(r.tagName?r={el:e(r)}:(i=r.type,r={data:r,src:r.src}),r.el){for(var n=t.types,s=0;s<n.length;s++)if(r.el.hasClass("mfp-"+n[s])){i=n[s];break}r.src=r.el.attr("data-mfp-src"),r.src||(r.src=r.el.attr("href"))}return r.type=i||t.st.type||"inline",r.index=a,r.parsed=!0,t.items[a]=r,k("ElementParse",r),t.items[a]},addGroup:function(e,a){var i=function(i){i.mfpEl=this,t._openClick(i,e,a)};a||(a={});var r="click.magnificPopup";a.mainEl=e,a.items?(a.isObj=!0,e.off(r).on(r,i)):(a.isObj=!1,a.delegate?e.off(r).on(r,a.delegate,i):(a.items=e,e.off(r).on(r,i)))},_openClick:function(a,i,r){var n=void 0!==r.midClick?r.midClick:e.magnificPopup.defaults.midClick;if(n||!(2===a.which||a.ctrlKey||a.metaKey||a.altKey||a.shiftKey)){var s=void 0!==r.disableOn?r.disableOn:e.magnificPopup.defaults.disableOn;if(s)if(e.isFunction(s)){if(!s.call(t))return!0}else if(x.width()<s)return!0;a.type&&(a.preventDefault(),t.isOpen&&a.stopPropagation()),r.el=e(a.mfpEl),r.delegate&&(r.items=i.find(r.delegate)),t.open(r)}},updateStatus:function(e,i){if(t.preloader){a!==e&&t.container.removeClass("mfp-s-"+a),i||"loading"!==e||(i=t.st.tLoading);var r={status:e,text:i};k("UpdateStatus",r),e=r.status,i=r.text,t.preloader.html(i),t.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()}),t.container.addClass("mfp-s-"+e),a=e}},_checkIfClose:function(a){if(!e(a).hasClass(y)){var i=t.st.closeOnContentClick,r=t.st.closeOnBgClick;if(i&&r)return!0;if(!t.content||e(a).hasClass("mfp-close")||t.preloader&&a===t.preloader[0])return!0;if(a===t.content[0]||e.contains(t.content[0],a)){if(i)return!0}else if(r&&e.contains(document,a))return!0;return!1}},_addClassToMFP:function(e){t.bgOverlay.addClass(e),t.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),t.wrap.removeClass(e)},_hasScrollBar:function(e){return(t.isIE7?i.height():document.body.scrollHeight)>(e||x.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(a){if(a.target!==t.wrap[0]&&!e.contains(t.wrap[0],a.target))return t._setFocus(),!1},_parseMarkup:function(t,a,i){var r;i.data&&(a=e.extend(i.data,a)),k(u,[t,a,i]),e.each(a,function(e,a){if(void 0===a||a===!1)return!0;if(r=e.split("_"),r.length>1){var i=t.find(f+"-"+r[0]);if(i.length>0){var n=r[1];"replaceWith"===n?i[0]!==a[0]&&i.replaceWith(a):"img"===n?i.is("img")?i.attr("src",a):i.replaceWith('<img src="'+a+'" class="'+i.attr("class")+'" />'):i.attr(r[1],a)}}else t.find(f+"-"+e).html(a)})},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),t.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return t.scrollbarSize}},e.magnificPopup={instance:null,proto:w.prototype,modules:[],open:function(t,a){return S(),t=t?e.extend(!0,{},t):{},t.isObj=!0,t.index=a||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,a){a.options&&(e.magnificPopup.defaults[t]=a.options),e.extend(this.proto,a.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">×</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},e.fn.magnificPopup=function(a){S();var i=e(this);if("string"==typeof a)if("open"===a){var r,n=b?i.data("magnificPopup"):i[0].magnificPopup,s=parseInt(arguments[1],10)||0;n.items?r=n.items[s]:(r=i,n.delegate&&(r=r.find(n.delegate)),r=r.eq(s)),t._openClick({mfpEl:r},i,n)}else t.isOpen&&t[a].apply(t,Array.prototype.slice.call(arguments,1));else a=e.extend(!0,{},a),b?i.data("magnificPopup",a):i[0].magnificPopup=a,t.addGroup(i,a);return i};var M,I,z,E="inline",P=function(){z&&(I.after(z.addClass(M)).detach(),z=null)};e.magnificPopup.registerModule(E,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push(E),C(o+"."+E,function(){P()})},getInline:function(a,i){if(P(),a.src){var r=t.st.inline,n=e(a.src);if(n.length){var s=n[0].parentNode;s&&s.tagName&&(I||(M=r.hiddenClass,I=_(M),M="mfp-"+M),z=n.after(I).detach().removeClass(M)),t.updateStatus("ready")}else t.updateStatus("error",r.tNotFound),n=e("<div>");return a.inlineElement=n,n}return t.updateStatus("ready"),t._parseMarkup(i,{},a),i}}});var A,L="ajax",O=function(){A&&e(document.body).removeClass(A)},N=function(){O(),t.req&&t.req.abort()};e.magnificPopup.registerModule(L,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){t.types.push(L),A=t.st.ajax.cursor,C(o+"."+L,N),C("BeforeChange."+L,N)},getAjax:function(a){A&&e(document.body).addClass(A),t.updateStatus("loading");var i=e.extend({url:a.src,success:function(i,r,n){var s={data:i,xhr:n};k("ParseAjax",s),t.appendContent(e(s.data),L),a.finished=!0,O(),t._setFocus(),setTimeout(function(){t.wrap.addClass(g)},16),t.updateStatus("ready"),k("AjaxContentAdded")},error:function(){O(),a.finished=a.loadError=!0,t.updateStatus("error",t.st.ajax.tError.replace("%url%",a.src))}},t.st.ajax.settings);return t.req=e.ajax(i),""}}});var F,j=function(a){if(a.data&&void 0!==a.data.title)return a.data.title;var i=t.st.image.titleSrc;if(i){if(e.isFunction(i))return i.call(t,a);if(a.el)return a.el.attr(i)||""}return""};e.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var a=t.st.image,i=".image";t.types.push("image"),C(c+i,function(){"image"===t.currItem.type&&a.cursor&&e(document.body).addClass(a.cursor)}),C(o+i,function(){a.cursor&&e(document.body).removeClass(a.cursor),x.off("resize"+f)}),C("Resize"+i,t.resizeImage),t.isLowIE&&C("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var a=0;t.isLowIE&&(a=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-a)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,F&&clearInterval(F),e.isCheckingImgSize=!1,k("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var a=0,i=e.img[0],r=function(n){F&&clearInterval(F),F=setInterval(function(){return i.naturalWidth>0?void t._onImageHasSize(e):(a>200&&clearInterval(F),a++,void(3===a?r(10):40===a?r(50):100===a&&r(500)))},n)};r(1)},getImage:function(a,i){var r=0,n=function(){a&&(a.img[0].complete?(a.img.off(".mfploader"),a===t.currItem&&(t._onImageHasSize(a),t.updateStatus("ready")),a.hasSize=!0,a.loaded=!0,k("ImageLoadComplete")):(r++,r<200?setTimeout(n,100):s()))},s=function(){a&&(a.img.off(".mfploader"),a===t.currItem&&(t._onImageHasSize(a),t.updateStatus("error",o.tError.replace("%url%",a.src))),a.hasSize=!0,a.loaded=!0,a.loadError=!0)},o=t.st.image,l=i.find(".mfp-img");if(l.length){var d=document.createElement("img");d.className="mfp-img",a.el&&a.el.find("img").length&&(d.alt=a.el.find("img").attr("alt")),a.img=e(d).on("load.mfploader",n).on("error.mfploader",s),d.src=a.src,l.is("img")&&(a.img=a.img.clone()),d=a.img[0],d.naturalWidth>0?a.hasSize=!0:d.width||(a.hasSize=!1)}return t._parseMarkup(i,{title:j(a),img_replaceWith:a.img},a),t.resizeImage(),a.hasSize?(F&&clearInterval(F),a.loadError?(i.addClass("mfp-loading"),t.updateStatus("error",o.tError.replace("%url%",a.src))):(i.removeClass("mfp-loading"),t.updateStatus("ready")),i):(t.updateStatus("loading"),a.loading=!0,a.hasSize||(a.imgHidden=!0,i.addClass("mfp-loading"),t.findImageSize(a)),i)}}});var R,B=function(){return void 0===R&&(R=void 0!==document.createElement("p").style.MozTransform),R};e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,a=t.st.zoom,i=".zoom";if(a.enabled&&t.supportsTransition){var r,n,s=a.duration,d=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),i="all "+a.duration/1e3+"s "+a.easing,r={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},n="transition";return r["-webkit-"+n]=r["-moz-"+n]=r["-o-"+n]=r[n]=i,t.css(r),t},p=function(){t.content.css("visibility","visible")};C("BuildControls"+i,function(){if(t._allowZoom()){if(clearTimeout(r),t.content.css("visibility","hidden"),e=t._getItemToZoom(),!e)return void p();n=d(e),n.css(t._getOffset()),t.wrap.append(n),r=setTimeout(function(){n.css(t._getOffset(!0)),r=setTimeout(function(){p(),setTimeout(function(){n.remove(),e=n=null,k("ZoomAnimationEnded")},16)},s)},16)}}),C(l+i,function(){if(t._allowZoom()){if(clearTimeout(r),t.st.removalDelay=s,!e){if(e=t._getItemToZoom(),!e)return;n=d(e)}n.css(t._getOffset(!0)),t.wrap.append(n),t.content.css("visibility","hidden"),setTimeout(function(){n.css(t._getOffset())},16)}}),C(o+i,function(){t._allowZoom()&&(p(),n&&n.remove(),e=null)})}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return!!t.currItem.hasSize&&t.currItem.img},_getOffset:function(a){var i;i=a?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem);var r=i.offset(),n=parseInt(i.css("padding-top"),10),s=parseInt(i.css("padding-bottom"),10);r.top-=e(window).scrollTop()-n;var o={width:i.width(),height:(b?i.innerHeight():i[0].offsetHeight)-s-n};return B()?o["-moz-transform"]=o.transform="translate("+r.left+"px,"+r.top+"px)":(o.left=r.left,o.top=r.top),o}}});var H="iframe",Y="//about:blank",U=function(e){if(t.currTemplate[H]){var a=t.currTemplate[H].find("iframe");a.length&&(e||(a[0].src=Y),t.isIE8&&a.css("display",e?"block":"none"))}};e.magnificPopup.registerModule(H,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push(H),C("BeforeChange",function(e,t,a){t!==a&&(t===H?U():a===H&&U(!0))}),C(o+"."+H,function(){U()})},getIframe:function(a,i){var r=a.src,n=t.st.iframe;e.each(n.patterns,function(){if(r.indexOf(this.index)>-1)return this.id&&(r="string"==typeof this.id?r.substr(r.lastIndexOf(this.id)+this.id.length,r.length):this.id.call(this,r)),r=this.src.replace("%id%",r),!1});var s={};return n.srcAction&&(s[n.srcAction]=r),t._parseMarkup(i,s,a),t.updateStatus("ready"),i}}});var X=function(e){var a=t.items.length;return e>a-1?e-a:e<0?a+e:e},W=function(e,t,a){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,a)};e.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var a=t.st.gallery,r=".mfp-gallery",s=Boolean(e.fn.mfpFastClick);return t.direction=!0,!(!a||!a.enabled)&&(n+=" mfp-gallery",C(c+r,function(){a.navigateByImgClick&&t.wrap.on("click"+r,".mfp-img",function(){if(t.items.length>1)return t.next(),!1}),i.on("keydown"+r,function(e){37===e.keyCode?t.prev():39===e.keyCode&&t.next()})}),C("UpdateStatus"+r,function(e,a){a.text&&(a.text=W(a.text,t.currItem.index,t.items.length))}),C(u+r,function(e,i,r,n){var s=t.items.length;r.counter=s>1?W(a.tCounter,n.index,s):""}),C("BuildControls"+r,function(){if(t.items.length>1&&a.arrows&&!t.arrowLeft){var i=a.arrowMarkup,r=t.arrowLeft=e(i.replace(/%title%/gi,a.tPrev).replace(/%dir%/gi,"left")).addClass(y),n=t.arrowRight=e(i.replace(/%title%/gi,a.tNext).replace(/%dir%/gi,"right")).addClass(y),o=s?"mfpFastClick":"click";r[o](function(){t.prev()}),n[o](function(){t.next()}),t.isIE7&&(_("b",r[0],!1,!0),_("a",r[0],!1,!0),_("b",n[0],!1,!0),_("a",n[0],!1,!0)),t.container.append(r.add(n))}}),C(h+r,function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout),t._preloadTimeout=setTimeout(function(){t.preloadNearbyImages(),t._preloadTimeout=null},16)}),void C(o+r,function(){i.off(r),t.wrap.off("click"+r),t.arrowLeft&&s&&t.arrowLeft.add(t.arrowRight).destroyMfpFastClick(),t.arrowRight=t.arrowLeft=null}))},next:function(){t.direction=!0,t.index=X(t.index+1),t.updateItemHTML()},prev:function(){t.direction=!1,t.index=X(t.index-1),t.updateItemHTML()},goTo:function(e){t.direction=e>=t.index,t.index=e,t.updateItemHTML()},preloadNearbyImages:function(){var e,a=t.st.gallery.preload,i=Math.min(a[0],t.items.length),r=Math.min(a[1],t.items.length);for(e=1;e<=(t.direction?r:i);e++)t._preloadItem(t.index+e);for(e=1;e<=(t.direction?i:r);e++)t._preloadItem(t.index-e)},_preloadItem:function(a){if(a=X(a),!t.items[a].preloaded){var i=t.items[a];i.parsed||(i=t.parseEl(a)),k("LazyLoad",i),"image"===i.type&&(i.img=e('<img class="mfp-img" />').on("load.mfploader",function(){i.hasSize=!0}).on("error.mfploader",function(){i.hasSize=!0,i.loadError=!0,k("LazyLoadError",i)}).attr("src",i.src)),i.preloaded=!0}}}});var G="retina";e.magnificPopup.registerModule(G,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=t.st.retina,a=e.ratio;a=isNaN(a)?a():a,a>1&&(C("ImageHasSize."+G,function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/a,width:"100%"})}),C("ElementParse."+G,function(t,i){i.src=e.replaceSrc(i,a)}))}}}}),function(){var t=1e3,a="ontouchstart"in window,i=function(){x.off("touchmove"+n+" touchend"+n)},r="mfpFastClick",n="."+r;e.fn.mfpFastClick=function(r){return e(this).each(function(){var s,o=e(this);if(a){var l,d,p,u,c,h;o.on("touchstart"+n,function(e){u=!1,h=1,c=e.originalEvent?e.originalEvent.touches[0]:e.touches[0],d=c.clientX,p=c.clientY,x.on("touchmove"+n,function(e){c=e.originalEvent?e.originalEvent.touches:e.touches,h=c.length,c=c[0],(Math.abs(c.clientX-d)>10||Math.abs(c.clientY-p)>10)&&(u=!0,i())}).on("touchend"+n,function(e){i(),u||h>1||(s=!0,e.preventDefault(),clearTimeout(l),l=setTimeout(function(){s=!1},t),r())})})}o.on("click"+n,function(){s||r()})})},e.fn.destroyMfpFastClick=function(){e(this).off("touchstart"+n+" click"+n),a&&x.off("touchmove"+n+" touchend"+n)}}(),S()}),function(e){e.fn.rwdImageMaps=function(){var t=this,a=function(){t.each(function(){if("undefined"!=typeof e(this).attr("usemap")){var t=this,a=e(t);e("<img />").on("load",function(){var t="width",i="height",r=a.attr(t),n=a.attr(i);if(!r||!n){var s=new Image;s.src=a.attr("src"),r||(r=s.width),n||(n=s.height)}var o=a.width()/100,l=a.height()/100,d=a.attr("usemap").replace("#",""),p="coords";e('map[name="'+d+'"]').find("area").each(function(){var t=e(this);t.data(p)||t.data(p,t.attr(p));for(var a=t.data(p).split(","),i=new Array(a.length),s=0;s<i.length;++s)s%2===0?i[s]=parseInt(a[s]/r*100*o):i[s]=parseInt(a[s]/n*100*l);t.attr(p,i.toString())})}).attr("src",a.attr("src"))}})};return e(window).resize(a).trigger("resize"),this}}(jQuery),function(e){"use strict";e.matchMedia=e.matchMedia||function(e,t){var a,i=e.documentElement,r=i.firstElementChild||i.firstChild,n=e.createElement("body"),s=e.createElement("div");return s.id="mq-test-1",s.style.cssText="position:absolute;top:-100em",n.style.background="none",n.appendChild(s),function(e){return s.innerHTML='­<style media="'+e+'"> #mq-test-1 { width: 42px; }</style>',i.insertBefore(n,r),a=42===s.offsetWidth,i.removeChild(n),{matches:a,media:e}}}(e.document)}(this),function(e){"use strict";function t(){b(!0)}var a={};e.respond=a,a.update=function(){};var i=[],r=function(){var t=!1;try{t=new e.XMLHttpRequest}catch(a){t=new e.ActiveXObject("Microsoft.XMLHTTP")}return function(){return t}}(),n=function(e,t){var a=r();a&&(a.open("GET",e,!0),a.onreadystatechange=function(){4!==a.readyState||200!==a.status&&304!==a.status||t(a.responseText)},4!==a.readyState&&a.send(null))};if(a.ajax=n,a.queue=i,a.regex={media:/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi,keyframes:/@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi,urls:/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,findStyles:/@media *([^\{]+)\{([\S\s]+?)$/,only:/(only\s+)?([a-zA-Z]+)\s?/,minw:/\([\s]*min\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/,maxw:/\([\s]*max\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/},a.mediaQueriesSupported=e.matchMedia&&null!==e.matchMedia("only all")&&e.matchMedia("only all").matches,!a.mediaQueriesSupported){var s,o,l,d=e.document,p=d.documentElement,u=[],c=[],h=[],m={},f=30,g=d.getElementsByTagName("head")[0]||p,v=d.getElementsByTagName("base")[0],y=g.getElementsByTagName("link"),w=function(){var e,t=d.createElement("div"),a=d.body,i=p.style.fontSize,r=a&&a.style.fontSize,n=!1;return t.style.cssText="position:absolute;font-size:1em;width:1em",a||(a=n=d.createElement("body"),a.style.background="none"),p.style.fontSize="100%",a.style.fontSize="100%",a.appendChild(t),n&&p.insertBefore(a,p.firstChild),e=t.offsetWidth,n?p.removeChild(a):a.removeChild(t),p.style.fontSize=i,r&&(a.style.fontSize=r),e=l=parseFloat(e)},b=function(t){var a="clientWidth",i=p[a],r="CSS1Compat"===d.compatMode&&i||d.body[a]||i,n={},m=y[y.length-1],v=(new Date).getTime();if(t&&s&&v-s<f)return e.clearTimeout(o),void(o=e.setTimeout(b,f));s=v;for(var x in u)if(u.hasOwnProperty(x)){var C=u[x],_=C.minw,k=C.maxw,T=null===_,S=null===k,D="em";_&&(_=parseFloat(_)*(_.indexOf(D)>-1?l||w():1)),k&&(k=parseFloat(k)*(k.indexOf(D)>-1?l||w():1)),C.hasquery&&(T&&S||!(T||r>=_)||!(S||r<=k))||(n[C.media]||(n[C.media]=[]),n[C.media].push(c[C.rules]))}for(var M in h)h.hasOwnProperty(M)&&h[M]&&h[M].parentNode===g&&g.removeChild(h[M]);h.length=0;for(var I in n)if(n.hasOwnProperty(I)){var z=d.createElement("style"),E=n[I].join("\n");z.type="text/css",z.media=I,g.insertBefore(z,m.nextSibling),z.styleSheet?z.styleSheet.cssText=E:z.appendChild(d.createTextNode(E)),h.push(z)}},x=function(e,t,i){var r=e.replace(a.regex.keyframes,"").match(a.regex.media),n=r&&r.length||0;t=t.substring(0,t.lastIndexOf("/"));var s=function(e){return e.replace(a.regex.urls,"$1"+t+"$2$3")},o=!n&&i;t.length&&(t+="/"),o&&(n=1);for(var l=0;l<n;l++){var d,p,h,m;o?(d=i,c.push(s(e))):(d=r[l].match(a.regex.findStyles)&&RegExp.$1,c.push(RegExp.$2&&s(RegExp.$2))),h=d.split(","),m=h.length;for(var f=0;f<m;f++)p=h[f],u.push({media:p.split("(")[0].match(a.regex.only)&&RegExp.$2||"all",rules:c.length-1,hasquery:p.indexOf("(")>-1,minw:p.match(a.regex.minw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:p.match(a.regex.maxw)&&parseFloat(RegExp.$1)+(RegExp.$2||"")})}b()},C=function(){if(i.length){var t=i.shift();n(t.href,function(a){x(a,t.href,t.media),m[t.href]=!0,e.setTimeout(function(){C()},0)})}},_=function(){for(var t=0;t<y.length;t++){var a=y[t],r=a.href,n=a.media,s=a.rel&&"stylesheet"===a.rel.toLowerCase();r&&s&&!m[r]&&(a.styleSheet&&a.styleSheet.rawCssText?(x(a.styleSheet.rawCssText,r,n),m[r]=!0):(/^([a-zA-Z:]*\/\/)/.test(r)||v)&&r.replace(RegExp.$1,"").split("/")[0]!==e.location.host||("//"===r.substring(0,2)&&(r=e.location.protocol+r),i.push({href:r,media:n})))}C()};_(),a.update=_,a.getEmValue=w,e.addEventListener?e.addEventListener("resize",t,!1):e.attachEvent&&e.attachEvent("onresize",t)}}(this),!function(e,t,a){function i(e,t){return typeof e===t}function r(){var e,t,a,r,n,s,o;for(var d in l)if(l.hasOwnProperty(d)){if(e=[],t=l[d],t.name&&(e.push(t.name.toLowerCase()),t.options&&t.options.aliases&&t.options.aliases.length))for(a=0;a<t.options.aliases.length;a++)e.push(t.options.aliases[a].toLowerCase());for(r=i(t.fn,"function")?t.fn():t.fn,n=0;n<e.length;n++)s=e[n],o=s.split("."),1===o.length?p[o[0]]=r:(!p[o[0]]||p[o[0]]instanceof Boolean||(p[o[0]]=new Boolean(p[o[0]])),p[o[0]][o[1]]=r),u.push((r?"":"no-")+o.join("-"))}}function n(){return"function"!=typeof t.createElement?t.createElement(arguments[0]):m?t.createElementNS.call(t,"http://www.w3.org/2000/svg",arguments[0]):t.createElement.apply(t,arguments)}function s(){var e=t.body;return e||(e=n(m?"svg":"body"),e.fake=!0),e}function o(e,a,i,r){var o,l,d,p,u="modernizr",c=n("div"),m=s();if(parseInt(i,10))for(;i--;)d=n("div"),d.id=r?r[i]:u+(i+1),c.appendChild(d);return o=n("style"),o.type="text/css",o.id="s"+u,(m.fake?m:c).appendChild(o),m.appendChild(c),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(t.createTextNode(e)),c.id=u,m.fake&&(m.style.background="",m.style.overflow="hidden",p=h.style.overflow,h.style.overflow="hidden",h.appendChild(m)),l=a(c,e),m.fake?(m.parentNode.removeChild(m),h.style.overflow=p,h.offsetHeight):c.parentNode.removeChild(c),!!l}var l=[],d={_version:"3.3.1",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,t){var a=this;setTimeout(function(){t(a[e])},0)},addTest:function(e,t,a){l.push({name:e,fn:t,options:a})},addAsyncTest:function(e){l.push({name:null,fn:e})}},p=function(){};p.prototype=d,p=new p;var u=[],c=d._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];d._prefixes=c;var h=t.documentElement,m="svg"===h.nodeName.toLowerCase(),f=d.testStyles=o;p.addTest("touchevents",function(){var a;if("ontouchstart"in e||e.DocumentTouch&&t instanceof DocumentTouch)a=!0;else{var i=["@media (",c.join("touch-enabled),("),"heartz",")","{#modernizr{top:9px;position:absolute}}"].join("");f(i,function(e){a=9===e.offsetTop})}return a}),r(),delete d.addTest,delete d.addAsyncTest;for(var g=0;g<p._q.length;g++)p._q[g]();e.Modernizr=p}(window,document),function e(t,a,i){function r(s,o){if(!a[s]){if(!t[s]){var l="function"==typeof require&&require;if(!o&&l)return l(s,!0);if(n)return n(s,!0);var d=new Error("Cannot find module '"+s+"'");throw d.code="MODULE_NOT_FOUND",d}var p=a[s]={exports:{}};t[s][0].call(p.exports,function(e){var a=t[s][1][e];return r(a?a:e)},p,p.exports,e,t,a,i)}return a[s].exports}for(var n="function"==typeof require&&require,s=0;s<i.length;s++)r(i[s]);return r}({1:[function(e,t,a){(function(e){!function(i){function r(e){throw new RangeError(A[e])}function n(e,t){for(var a=e.length,i=[];a--;)i[a]=t(e[a]);return i}function s(e,t){var a=e.split("@"),i="";a.length>1&&(i=a[0]+"@",e=a[1]),e=e.replace(P,".");var r=e.split("."),s=n(r,t).join(".");return i+s}function o(e){for(var t,a,i=[],r=0,n=e.length;r<n;)t=e.charCodeAt(r++),t>=55296&&t<=56319&&r<n?(a=e.charCodeAt(r++),56320==(64512&a)?i.push(((1023&t)<<10)+(1023&a)+65536):(i.push(t),r--)):i.push(t);return i}function l(e){return n(e,function(e){var t="";return e>65535&&(e-=65536,t+=N(e>>>10&1023|55296),e=56320|1023&e),t+=N(e)}).join("")}function d(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:C;
|
2
|
}function p(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function u(e,t,a){var i=0;for(e=a?O(e/S):e>>1,e+=O(e/t);e>L*k>>1;i+=C)e=O(e/L);return O(i+(L+1)*e/(e+T))}function c(e){var t,a,i,n,s,o,p,c,h,m,f=[],g=e.length,v=0,y=M,w=D;for(a=e.lastIndexOf(I),a<0&&(a=0),i=0;i<a;++i)e.charCodeAt(i)>=128&&r("not-basic"),f.push(e.charCodeAt(i));for(n=a>0?a+1:0;n<g;){for(s=v,o=1,p=C;n>=g&&r("invalid-input"),c=d(e.charCodeAt(n++)),(c>=C||c>O((x-v)/o))&&r("overflow"),v+=c*o,h=p<=w?_:p>=w+k?k:p-w,!(c<h);p+=C)m=C-h,o>O(x/m)&&r("overflow"),o*=m;t=f.length+1,w=u(v-s,t,0==s),O(v/t)>x-y&&r("overflow"),y+=O(v/t),v%=t,f.splice(v++,0,y)}return l(f)}function h(e){var t,a,i,n,s,l,d,c,h,m,f,g,v,y,w,b=[];for(e=o(e),g=e.length,t=M,a=0,s=D,l=0;l<g;++l)f=e[l],f<128&&b.push(N(f));for(i=n=b.length,n&&b.push(I);i<g;){for(d=x,l=0;l<g;++l)f=e[l],f>=t&&f<d&&(d=f);for(v=i+1,d-t>O((x-a)/v)&&r("overflow"),a+=(d-t)*v,t=d,l=0;l<g;++l)if(f=e[l],f<t&&++a>x&&r("overflow"),f==t){for(c=a,h=C;m=h<=s?_:h>=s+k?k:h-s,!(c<m);h+=C)w=c-m,y=C-m,b.push(N(p(m+w%y,0))),c=O(w/y);b.push(N(p(c,0))),s=u(a,v,i==n),a=0,++i}++a,++t}return b.join("")}function m(e){return s(e,function(e){return z.test(e)?c(e.slice(4).toLowerCase()):e})}function f(e){return s(e,function(e){return E.test(e)?"xn--"+h(e):e})}var g="object"==typeof a&&a&&!a.nodeType&&a,v="object"==typeof t&&t&&!t.nodeType&&t,y="object"==typeof e&&e;y.global!==y&&y.window!==y&&y.self!==y||(i=y);var w,b,x=2147483647,C=36,_=1,k=26,T=38,S=700,D=72,M=128,I="-",z=/^xn--/,E=/[^\x20-\x7E]/,P=/[\x2E\u3002\uFF0E\uFF61]/g,A={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},L=C-_,O=Math.floor,N=String.fromCharCode;if(w={version:"1.4.1",ucs2:{decode:o,encode:l},decode:c,encode:h,toASCII:f,toUnicode:m},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return w});else if(g&&v)if(t.exports==g)v.exports=w;else for(b in w)w.hasOwnProperty(b)&&(g[b]=w[b]);else i.punycode=w}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(e,t,a){"use strict";function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.exports=function(e,t,a,n){t=t||"&",a=a||"=";var s={};if("string"!=typeof e||0===e.length)return s;var o=/\+/g;e=e.split(t);var l=1e3;n&&"number"==typeof n.maxKeys&&(l=n.maxKeys);var d=e.length;l>0&&d>l&&(d=l);for(var p=0;p<d;++p){var u,c,h,m,f=e[p].replace(o,"%20"),g=f.indexOf(a);g>=0?(u=f.substr(0,g),c=f.substr(g+1)):(u=f,c=""),h=decodeURIComponent(u),m=decodeURIComponent(c),i(s,h)?r(s[h])?s[h].push(m):s[h]=[s[h],m]:s[h]=m}return s};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],3:[function(e,t,a){"use strict";function i(e,t){if(e.map)return e.map(t);for(var a=[],i=0;i<e.length;i++)a.push(t(e[i],i));return a}var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};t.exports=function(e,t,a,o){return t=t||"&",a=a||"=",null===e&&(e=void 0),"object"==typeof e?i(s(e),function(s){var o=encodeURIComponent(r(s))+a;return n(e[s])?i(e[s],function(e){return o+encodeURIComponent(r(e))}).join(t):o+encodeURIComponent(r(e[s]))}).join(t):o?encodeURIComponent(r(o))+a+encodeURIComponent(r(e)):""};var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},s=Object.keys||function(e){var t=[];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.push(a);return t}},{}],4:[function(e,t,a){"use strict";a.decode=a.parse=e("./decode"),a.encode=a.stringify=e("./encode")},{"./decode":2,"./encode":3}],5:[function(e,t,a){function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function r(e,t,a){if(e&&d(e)&&e instanceof i)return e;var r=new i;return r.parse(e,t,a),r}function n(e){return l(e)&&(e=r(e)),e instanceof i?e.format():i.prototype.format.call(e)}function s(e,t){return r(e,!1,!0).resolve(t)}function o(e,t){return e?r(e,!1,!0).resolveObject(t):t}function l(e){return"string"==typeof e}function d(e){return"object"==typeof e&&null!==e}function p(e){return null===e}function u(e){return null==e}var c=e("punycode");a.parse=r,a.resolve=s,a.resolveObject=o,a.format=n,a.Url=i;var h=/^([a-z0-9.+-]+:)/i,m=/:[0-9]*$/,f=["<",">",'"',"`"," ","\r","\n","\t"],g=["{","}","|","\\","^","`"].concat(f),v=["'"].concat(g),y=["%","/","?",";","#"].concat(v),w=["/","?","#"],b=255,x=/^[a-z0-9A-Z_-]{0,63}$/,C=/^([a-z0-9A-Z_-]{0,63})(.*)$/,_={javascript:!0,"javascript:":!0},k={javascript:!0,"javascript:":!0},T={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},S=e("querystring");i.prototype.parse=function(e,t,a){if(!l(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e;i=i.trim();var r=h.exec(i);if(r){r=r[0];var n=r.toLowerCase();this.protocol=n,i=i.substr(r.length)}if(a||r||i.match(/^\/\/[^@\/]+@[^@\/]+/)){var s="//"===i.substr(0,2);!s||r&&k[r]||(i=i.substr(2),this.slashes=!0)}if(!k[r]&&(s||r&&!T[r])){for(var o=-1,d=0;d<w.length;d++){var p=i.indexOf(w[d]);p!==-1&&(o===-1||p<o)&&(o=p)}var u,m;m=o===-1?i.lastIndexOf("@"):i.lastIndexOf("@",o),m!==-1&&(u=i.slice(0,m),i=i.slice(m+1),this.auth=decodeURIComponent(u)),o=-1;for(var d=0;d<y.length;d++){var p=i.indexOf(y[d]);p!==-1&&(o===-1||p<o)&&(o=p)}o===-1&&(o=i.length),this.host=i.slice(0,o),i=i.slice(o),this.parseHost(),this.hostname=this.hostname||"";var f="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!f)for(var g=this.hostname.split(/\./),d=0,D=g.length;d<D;d++){var M=g[d];if(M&&!M.match(x)){for(var I="",z=0,E=M.length;z<E;z++)I+=M.charCodeAt(z)>127?"x":M[z];if(!I.match(x)){var P=g.slice(0,d),A=g.slice(d+1),L=M.match(C);L&&(P.push(L[1]),A.unshift(L[2])),A.length&&(i="/"+A.join(".")+i),this.hostname=P.join(".");break}}}if(this.hostname.length>b?this.hostname="":this.hostname=this.hostname.toLowerCase(),!f){for(var O=this.hostname.split("."),N=[],d=0;d<O.length;++d){var F=O[d];N.push(F.match(/[^A-Za-z0-9_-]/)?"xn--"+c.encode(F):F)}this.hostname=N.join(".")}var j=this.port?":"+this.port:"",R=this.hostname||"";this.host=R+j,this.href+=this.host,f&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==i[0]&&(i="/"+i))}if(!_[n])for(var d=0,D=v.length;d<D;d++){var B=v[d],H=encodeURIComponent(B);H===B&&(H=escape(B)),i=i.split(B).join(H)}var Y=i.indexOf("#");Y!==-1&&(this.hash=i.substr(Y),i=i.slice(0,Y));var U=i.indexOf("?");if(U!==-1?(this.search=i.substr(U),this.query=i.substr(U+1),t&&(this.query=S.parse(this.query)),i=i.slice(0,U)):t&&(this.search="",this.query={}),i&&(this.pathname=i),T[n]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var j=this.pathname||"",F=this.search||"";this.path=j+F}return this.href=this.format(),this},i.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",a=this.pathname||"",i=this.hash||"",r=!1,n="";this.host?r=e+this.host:this.hostname&&(r=e+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(r+=":"+this.port)),this.query&&d(this.query)&&Object.keys(this.query).length&&(n=S.stringify(this.query));var s=this.search||n&&"?"+n||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||T[t])&&r!==!1?(r="//"+(r||""),a&&"/"!==a.charAt(0)&&(a="/"+a)):r||(r=""),i&&"#"!==i.charAt(0)&&(i="#"+i),s&&"?"!==s.charAt(0)&&(s="?"+s),a=a.replace(/[?#]/g,function(e){return encodeURIComponent(e)}),s=s.replace("#","%23"),t+r+a+s+i},i.prototype.resolve=function(e){return this.resolveObject(r(e,!1,!0)).format()},i.prototype.resolveObject=function(e){if(l(e)){var t=new i;t.parse(e,!1,!0),e=t}var a=new i;if(Object.keys(this).forEach(function(e){a[e]=this[e]},this),a.hash=e.hash,""===e.href)return a.href=a.format(),a;if(e.slashes&&!e.protocol)return Object.keys(e).forEach(function(t){"protocol"!==t&&(a[t]=e[t])}),T[a.protocol]&&a.hostname&&!a.pathname&&(a.path=a.pathname="/"),a.href=a.format(),a;if(e.protocol&&e.protocol!==a.protocol){if(!T[e.protocol])return Object.keys(e).forEach(function(t){a[t]=e[t]}),a.href=a.format(),a;if(a.protocol=e.protocol,e.host||k[e.protocol])a.pathname=e.pathname;else{for(var r=(e.pathname||"").split("/");r.length&&!(e.host=r.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==r[0]&&r.unshift(""),r.length<2&&r.unshift(""),a.pathname=r.join("/")}if(a.search=e.search,a.query=e.query,a.host=e.host||"",a.auth=e.auth,a.hostname=e.hostname||e.host,a.port=e.port,a.pathname||a.search){var n=a.pathname||"",s=a.search||"";a.path=n+s}return a.slashes=a.slashes||e.slashes,a.href=a.format(),a}var o=a.pathname&&"/"===a.pathname.charAt(0),d=e.host||e.pathname&&"/"===e.pathname.charAt(0),c=d||o||a.host&&e.pathname,h=c,m=a.pathname&&a.pathname.split("/")||[],r=e.pathname&&e.pathname.split("/")||[],f=a.protocol&&!T[a.protocol];if(f&&(a.hostname="",a.port=null,a.host&&(""===m[0]?m[0]=a.host:m.unshift(a.host)),a.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===r[0]?r[0]=e.host:r.unshift(e.host)),e.host=null),c=c&&(""===r[0]||""===m[0])),d)a.host=e.host||""===e.host?e.host:a.host,a.hostname=e.hostname||""===e.hostname?e.hostname:a.hostname,a.search=e.search,a.query=e.query,m=r;else if(r.length)m||(m=[]),m.pop(),m=m.concat(r),a.search=e.search,a.query=e.query;else if(!u(e.search)){if(f){a.hostname=a.host=m.shift();var g=!!(a.host&&a.host.indexOf("@")>0)&&a.host.split("@");g&&(a.auth=g.shift(),a.host=a.hostname=g.shift())}return a.search=e.search,a.query=e.query,p(a.pathname)&&p(a.search)||(a.path=(a.pathname?a.pathname:"")+(a.search?a.search:"")),a.href=a.format(),a}if(!m.length)return a.pathname=null,a.search?a.path="/"+a.search:a.path=null,a.href=a.format(),a;for(var v=m.slice(-1)[0],y=(a.host||e.host)&&("."===v||".."===v)||""===v,w=0,b=m.length;b>=0;b--)v=m[b],"."==v?m.splice(b,1):".."===v?(m.splice(b,1),w++):w&&(m.splice(b,1),w--);if(!c&&!h)for(;w--;w)m.unshift("..");!c||""===m[0]||m[0]&&"/"===m[0].charAt(0)||m.unshift(""),y&&"/"!==m.join("/").substr(-1)&&m.push("");var x=""===m[0]||m[0]&&"/"===m[0].charAt(0);if(f){a.hostname=a.host=x?"":m.length?m.shift():"";var g=!!(a.host&&a.host.indexOf("@")>0)&&a.host.split("@");g&&(a.auth=g.shift(),a.host=a.hostname=g.shift())}return c=c||a.host&&m.length,c&&!x&&m.unshift(""),m.length?a.pathname=m.join("/"):(a.pathname=null,a.path=null),p(a.pathname)&&p(a.search)||(a.path=(a.pathname?a.pathname:"")+(a.search?a.search:"")),a.auth=e.auth||a.auth,a.slashes=a.slashes||e.slashes,a.href=a.format(),a},i.prototype.parseHost=function(){var e=this.host,t=m.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},{punycode:1,querystring:4}],6:[function(e,t,a){"use strict";t.exports=function(e){var t=encodeURIComponent(e.getURL());return{popup:!0,shareText:{bg:"cподеляне",da:"del",de:"teilen",en:"share",es:"compartir",fi:"Jaa",fr:"partager",hr:"podijelite",hu:"megosztás",it:"condividi",ja:"共有",ko:"공유하기",nl:"delen",no:"del",pl:"udostępnij",pt:"compartilhar",ro:"partajează",ru:"поделиться",sk:"zdieľať",sl:"deli",sr:"podeli",sv:"dela",tr:"paylaş",zh:"分享"},name:"addthis",faName:"fa-plus",title:{bg:"Сподели в AddThis",da:"Del på AddThis",de:"Bei AddThis teilen",en:"Share on AddThis",es:"Compartir en AddThis",fi:"Jaa AddThisissä",fr:"Partager sur AddThis",hr:"Podijelite na AddThis",hu:"Megosztás AddThisen",it:"Condividi su AddThis",ja:"AddThis上で共有",ko:"AddThis에서 공유하기",nl:"Delen op AddThis",no:"Del på AddThis",pl:"Udostępnij przez AddThis",pt:"Compartilhar no AddThis",ro:"Partajează pe AddThis",ru:"Поделиться на AddThis",sk:"Zdieľať na AddThis",sl:"Deli na AddThis",sr:"Podeli na AddThis",sv:"Dela på AddThis",tr:"AddThis'ta paylaş",zh:"在AddThis上分享"},shareUrl:"http://api.addthis.com/oexchange/0.8/offer?url="+t+e.getReferrerTrack()}}},{}],7:[function(e,t,a){"use strict";var i=e("url");t.exports=function(e){var t=i.parse("https://share.diasporafoundation.org/",!0);return t.query.url=e.getURL(),t.query.title=e.getTitle()||e.getMeta("DC.title"),t.protocol="https",delete t.search,{popup:!0,shareText:{de:"teilen",en:"share",zh:"分享"},name:"diaspora",faName:"fa-asterisk",title:{de:"Bei Diaspora teilen",en:"Share on Diaspora",zh:"分享至Diaspora"},shareUrl:i.format(t)+e.getReferrerTrack()}}},{url:5}],8:[function(e,t,a){"use strict";t.exports=function(e){var t=encodeURIComponent(e.getURL());return{popup:!0,shareText:{bg:"cподеляне",da:"del",de:"teilen",en:"share",es:"compartir",fi:"Jaa",fr:"partager",hr:"podijelite",hu:"megosztás",it:"condividi",ja:"共有",ko:"공유하기",nl:"delen",no:"del",pl:"udostępnij",pt:"compartilhar",ro:"partajează",ru:"поделиться",sk:"zdieľať",sl:"deli",sr:"podeli",sv:"dela",tr:"paylaş",zh:"分享"},name:"facebook",faName:"fa-facebook",title:{bg:"Сподели във Facebook",da:"Del på Facebook",de:"Bei Facebook teilen",en:"Share on Facebook",es:"Compartir en Facebook",fi:"Jaa Facebookissa",fr:"Partager sur Facebook",hr:"Podijelite na Facebooku",hu:"Megosztás Facebookon",it:"Condividi su Facebook",ja:"フェイスブック上で共有",ko:"페이스북에서 공유하기",nl:"Delen op Facebook",no:"Del på Facebook",pl:"Udostępnij na Facebooku",pt:"Compartilhar no Facebook",ro:"Partajează pe Facebook",ru:"Поделиться на Facebook",sk:"Zdieľať na Facebooku",sl:"Deli na Facebooku",sr:"Podeli na Facebook-u",sv:"Dela på Facebook",tr:"Facebook'ta paylaş",zh:"在Facebook上分享"},shareUrl:"https://www.facebook.com/sharer/sharer.php?u="+t+e.getReferrerTrack()}}},{}],9:[function(e,t,a){"use strict";t.exports=function(e){var t=encodeURIComponent(e.getURL()),a=e.getMeta("DC.title"),i=e.getMeta("DC.creator"),r=e.getMeta("description");return a.length>0&&i.length>0?a+=" - "+i:a=e.getTitle(),{popup:!0,shareText:"Flattr",name:"flattr",faName:"fa-money",title:{de:"Artikel flattrn",en:"Flattr this"},shareUrl:"https://flattr.com/submit/auto?title="+encodeURIComponent(a)+"&description="+encodeURIComponent(r)+"&category="+encodeURIComponent(e.options.flattrCategory||"text")+"&user_id="+encodeURIComponent(e.options.flattrUser)+"&url="+t+e.getReferrerTrack()}}},{}],10:[function(e,t,a){"use strict";t.exports=function(e){var t=encodeURIComponent(e.getURL());return{popup:!0,shareText:{bg:"cподеляне",da:"del",de:"teilen",en:"share",es:"compartir",fi:"Jaa",fr:"partager",hr:"podijelite",hu:"megosztás",it:"condividi",ja:"共有",ko:"공유하기",nl:"delen",no:"del",pl:"udostępnij",pt:"compartilhar",ro:"partajează",ru:"поделиться",sk:"zdieľať",sl:"deli",sr:"podeli",sv:"dela",tr:"paylaş",zh:"分享"},name:"googleplus",faName:"fa-google-plus",title:{bg:"Сподели в Google+",da:"Del på Google+",de:"Bei Google+ teilen",en:"Share on Google+",es:"Compartir en Google+",fi:"Jaa Google+:ssa",fr:"Partager sur Goolge+",hr:"Podijelite na Google+",hu:"Megosztás Google+on",it:"Condividi su Google+",ja:"Google+上で共有",ko:"Google+에서 공유하기",nl:"Delen op Google+",no:"Del på Google+",pl:"Udostępnij na Google+",pt:"Compartilhar no Google+",ro:"Partajează pe Google+",ru:"Поделиться на Google+",sk:"Zdieľať na Google+",sl:"Deli na Google+",sr:"Podeli na Google+",sv:"Dela på Google+",tr:"Google+'da paylaş",zh:"在Google+上分享"},shareUrl:"https://plus.google.com/share?url="+t+e.getReferrerTrack()}}},{}],11:[function(e,t,a){"use strict";t.exports=function(e){return{blank:!0,popup:!1,shareText:"Info",name:"info",faName:"fa-info",title:{de:"weitere Informationen",en:"more information",es:"más informaciones",fr:"plus d'informations",it:"maggiori informazioni",da:"flere oplysninger",nl:"verdere informatie",zh:"更多信息"},shareUrl:e.getInfoUrl()}}},{}],12:[function(e,t,a){"use strict";t.exports=function(e){var t=encodeURIComponent(e.getURL());return{popup:!0,shareText:{de:"mitteilen",en:"share",es:"compartir",fi:"Jaa",fr:"partager",hr:"podijelite",hu:"megosztás",it:"condividi",ja:"シェア",ko:"공유하기",nl:"delen",no:"del",pl:"udostępnij",pt:"compartilhar",ro:"distribuiți",ru:"поделиться",sk:"zdieľať",sl:"deli",sr:"podeli",sv:"dela",tr:"paylaş",zh:"分享"},name:"linkedin",faName:"fa-linkedin",title:{bg:"Сподели в LinkedIn",da:"Del på LinkedIn",de:"Bei LinkedIn teilen",en:"Share on LinkedIn",es:"Compartir en LinkedIn",fi:"Jaa LinkedInissä",fr:"Partager sur LinkedIn",hr:"Podijelite na LinkedIn",hu:"Megosztás LinkedInen",it:"Condividi su LinkedIn",ja:"LinkedIn上で共有",ko:"LinkedIn에서 공유하기",nl:"Delen op LinkedIn",no:"Del på LinkedIn",pl:"Udostępnij przez LinkedIn",pt:"Compartilhar no LinkedIn",ro:"Partajează pe LinkedIn",ru:"Поделиться на LinkedIn",sk:"Zdieľať na LinkedIn",sl:"Deli na LinkedIn",sr:"Podeli na LinkedIn-u",sv:"Dela på LinkedIn",tr:"LinkedIn'ta paylaş",zh:"在LinkedIn上分享"},shareUrl:"https://www.linkedin.com/cws/share?url="+t+e.getReferrerTrack()}}},{}],13:[function(e,t,a){"use strict";t.exports=function(e){var t=e.getOption("mailUrl");return 0===t.indexOf("mailto:")&&(t+="?subject="+encodeURIComponent(e.getOption("mailSubject")),t+="&body="+encodeURIComponent(e.getOption("mailBody"))),{blank:0===t.indexOf("http"),popup:!1,shareText:"mail",name:"mail",faName:"fa-envelope",title:{bg:"Изпрати по имейл",da:"Sende via e-mail",de:"Per E-Mail versenden",en:"Send by email",es:"Enviar por email",fi:"Lähetä sähköpostitse",fr:"Envoyer par courriel",hr:"Pošaljite emailom",hu:"Elküldés e-mailben",it:"Inviare via email",ja:"電子メールで送信",ko:"이메일로 보내기",nl:"Sturen via e-mail",no:"Send via epost",pl:"Wyślij e-mailem",pt:"Enviar por e-mail",ro:"Trimite prin e-mail",ru:"Отправить по эл. почте",sk:"Poslať e-mailom",sl:"Pošlji po elektronski pošti",sr:"Pošalji putem email-a",sv:"Skicka via e-post",tr:"E-posta ile gönder",zh:"通过电子邮件传送"},shareUrl:t}}},{}],14:[function(e,t,a){"use strict";var i=e("url");t.exports=function(e){var t=e.getMeta("DC.title")||e.getTitle(),a=e.getMeta("DC.creator");a.length>0&&(t+=" - "+a);var r=e.getOption("mediaUrl");r&&r.length<=0&&(r=e.getMeta("og:image"));var n=i.parse("https://www.pinterest.com/pin/create/link/",!0);return n.query.url=e.getURL(),n.query.media=r,n.query.description=t,delete n.search,{popup:!0,shareText:"pin it",name:"pinterest",faName:"fa-pinterest-p",title:{de:"Bei Pinterest pinnen",en:"Pin it on Pinterest",es:"Compartir en Pinterest",fr:"Partager sur Pinterest",it:"Condividi su Pinterest",da:"Del på Pinterest",nl:"Delen op Pinterest",zh:"分享至Pinterest"},shareUrl:i.format(n)+e.getReferrerTrack()}}},{url:5}],15:[function(e,t,a){"use strict";t.exports=function(e){var t=encodeURIComponent(e.getURL()),a=e.getMeta("DC.title"),i=e.getMeta("DC.creator");return a.length>0&&i.length>0?a+=" - "+i:a=e.getTitle(),{popup:!0,shareText:{bg:"cподеляне",da:"del",de:"teilen",en:"share",es:"compartir",fi:"Jaa",fr:"partager",hr:"podijelite",hu:"megosztás",it:"condividi",ja:"共有",ko:"공유하기",nl:"delen",no:"del",pl:"udostępnij",pt:"compartilhar",ro:"partajează",ru:"поделиться",sk:"zdieľať",sl:"deli",sr:"podeli",sv:"dela",tr:"paylaş",zh:"分享"},name:"qzone",faName:"fa-qq",title:{de:"Bei Qzone teilen",en:"Share on Qzone",zh:"分享至QQ空间"},shareUrl:"http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url="+t+"&title="+a+e.getReferrerTrack()}}},{}],16:[function(e,t,a){"use strict";t.exports=function(e){var t=encodeURIComponent(e.getURL()),a=encodeURIComponent(e.getTitle());return""!==a&&(a="&title="+a),{popup:!0,shareText:{de:"teilen",en:"share",zh:"分享"},name:"reddit",faName:"fa-reddit",title:{de:"Bei Reddit teilen",en:"Share on Reddit",zh:"分享至Reddit"},shareUrl:"https://reddit.com/submit?url="+t+a+e.getReferrerTrack()}}},{}],17:[function(e,t,a){"use strict";t.exports=function(e){var t=encodeURIComponent(e.getURL()),a=encodeURIComponent(e.getTitle());return""!==a&&(a="&title="+a),{popup:!0,shareText:{de:"teilen",en:"share",zh:"分享"},name:"stumbleupon",faName:"fa-stumbleupon",title:{de:"Bei Stumbleupon teilen",en:"Share on Stumbleupon",zh:"分享至Stumbleupon"},shareUrl:"https://www.stumbleupon.com/submit?url="+t+a+e.getReferrerTrack()}}},{}],18:[function(e,t,a){"use strict";t.exports=function(e){var t=encodeURIComponent(e.getURL()),a=e.getMeta("DC.title"),i=e.getMeta("DC.creator");return a.length>0&&i.length>0?a+=" - "+i:a=e.getTitle(),{popup:!0,shareText:{bg:"cподеляне",da:"del",de:"teilen",en:"share",es:"compartir",fi:"Jaa",fr:"partager",hr:"podijelite",hu:"megosztás",it:"condividi",ja:"共有",ko:"공유하기",nl:"delen",no:"del",pl:"udostępnij",pt:"compartilhar",ro:"partajează",ru:"поделиться",sk:"zdieľať",sl:"deli",sr:"podeli",sv:"dela",tr:"paylaş",zh:"分享"},name:"tencent-weibo",faName:"fa-tencent-weibo",title:{de:"Bei tencent weibo teilen",en:"Share on tencent weibo",zh:"分享至腾讯微博"},shareUrl:"http://v.t.qq.com/share/share.php?url="+t+"&title="+a+e.getReferrerTrack()}}},{}],19:[function(e,t,a){"use strict";t.exports=function(e){var t=encodeURIComponent(e.getURL()),a=e.getMeta("DC.title"),i=e.getMeta("DC.creator");return a.length>0&&i.length>0?a+=" - "+i:a=e.getTitle(),{popup:!1,shareText:{bg:"cподеляне",da:"del",de:"teilen",en:"share",es:"compartir",fi:"Jaa",fr:"partager",hr:"podijelite",hu:"megosztás",it:"condividi",ja:"共有",ko:"공유하기",nl:"delen",no:"del",pl:"udostępnij",pt:"compartilhar",ro:"partajează",ru:"поделиться",sk:"zdieľať",sl:"deli",sr:"podeli",sv:"dela",tr:"paylaş",zh:"分享"},name:"threema",faName:"fa-lock",title:{bg:"Сподели в Threema",da:"Del på Threema",de:"Bei Threema teilen",en:"Share on Threema",es:"Compartir en Threema",fi:"Jaa Threemaissä",fr:"Partager sur Threema",hr:"Podijelite na Threema",hu:"Megosztás Threemaen",it:"Condividi su Threema",ja:"Threema上で共有",ko:"Threema에서 공유하기",nl:"Delen op Threema",no:"Del på Threema",pl:"Udostępnij przez Threema",pt:"Compartilhar no Threema",ro:"Partajează pe Threema",ru:"Поделиться на Threema",sk:"Zdieľať na Threema",sl:"Deli na Threema",sr:"Podeli na Threema-u",sv:"Dela på Threema",tr:"Threema'ta paylaş",zh:"在Threema上分享"},shareUrl:"threema://compose?text="+encodeURIComponent(a)+"%20"+t+e.getReferrerTrack()}}},{}],20:[function(e,t,a){"use strict";t.exports=function(e){var t=encodeURIComponent(e.getURL()),a=e.getMeta("DC.title"),i=e.getMeta("DC.creator");return a.length>0&&i.length>0?a+=" - "+i:a=e.getTitle(),{popup:!0,shareText:{bg:"cподеляне",da:"del",de:"teilen",en:"share",es:"compartir",fi:"Jaa",fr:"partager",hr:"podijelite",hu:"megosztás",it:"condividi",ja:"共有",ko:"공유하기",nl:"delen",no:"del",pl:"udostępnij",pt:"compartilhar",ro:"partajează",ru:"поделиться",sk:"zdieľať",sl:"deli",sr:"podeli",sv:"dela",tr:"paylaş",zh:"分享"},name:"tumblr",faName:"fa-tumblr",title:{bg:"Сподели в tumblr",da:"Del på tumblr",de:"Bei tumblr teilen",en:"Share on tumblr",es:"Compartir en tumblr",fi:"Jaa tumblrissä",fr:"Partager sur tumblr",hr:"Podijelite na tumblr",hu:"Megosztás tumblren",it:"Condividi su tumblr",ja:"tumblr上で共有",ko:"tumblr에서 공유하기",nl:"Delen op tumblr",no:"Del på tumblr",pl:"Udostępnij przez tumblr",pt:"Compartilhar no tumblr",ro:"Partajează pe tumblr",ru:"Поделиться на tumblr",sk:"Zdieľať na tumblr",sl:"Deli na tumblr",sr:"Podeli na tumblr-u",sv:"Dela på tumblr",tr:"tumblr'ta paylaş",zh:"在tumblr上分享"},shareUrl:"http://tumblr.com/widgets/share/tool?canonicalUrl="+t+e.getReferrerTrack()}}},{}],21:[function(e,t,a){(function(a){"use strict";var i=e("url"),r="undefined"!=typeof window?window.jQuery:"undefined"!=typeof a?a.jQuery:null,n=function(e,t){var a=r("<div/>").html(e).text();if(a.length<=t)return e;var i=a.substring(0,t-1).lastIndexOf(" ");return a=a.substring(0,i)+"…"};t.exports=function(e){var t=i.parse("https://twitter.com/intent/tweet",!0),a=e.getMeta("DC.title"),r=e.getMeta("DC.creator");return a.length>0&&r.length>0?a+=" - "+r:a=e.getTitle(),t.query.text=n(a,120),t.query.url=e.getURL(),null!==e.options.twitterVia&&(t.query.via=e.options.twitterVia),delete t.search,{popup:!0,shareText:"tweet",name:"twitter",faName:"fa-twitter",title:{bg:"Сподели в Twitter",da:"Del på Twitter",de:"Bei Twitter teilen",en:"Share on Twitter",es:"Compartir en Twitter",fi:"Jaa Twitterissä",fr:"Partager sur Twitter",hr:"Podijelite na Twitteru",hu:"Megosztás Twitteren",it:"Condividi su Twitter",ja:"ツイッター上で共有",ko:"트위터에서 공유하기",nl:"Delen op Twitter",no:"Del på Twitter",pl:"Udostępnij na Twitterze",pt:"Compartilhar no Twitter",ro:"Partajează pe Twitter",ru:"Поделиться на Twitter",sk:"Zdieľať na Twitteri",sl:"Deli na Twitterju",sr:"Podeli na Twitter-u",sv:"Dela på Twitter",tr:"Twitter'da paylaş",zh:"在Twitter上分享"},shareUrl:i.format(t)+e.getReferrerTrack()}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{url:5}],22:[function(e,t,a){"use strict";t.exports=function(e){var t=encodeURIComponent(e.getURL()),a=e.getMeta("DC.title"),i=e.getMeta("DC.creator");return a.length>0&&i.length>0?a+=" - "+i:a=e.getTitle(),{popup:!0,shareText:{bg:"cподеляне",da:"del",de:"teilen",en:"share",es:"compartir",fi:"Jaa",fr:"partager",hr:"podijelite",hu:"megosztás",it:"condividi",ja:"共有",ko:"공유하기",nl:"delen",no:"del",pl:"udostępnij",pt:"compartilhar",ro:"partajează",ru:"поделиться",sk:"zdieľať",sl:"deli",sr:"podeli",sv:"dela",tr:"paylaş",zh:"分享"},name:"weibo",faName:"fa-weibo",title:{de:"Bei weibo teilen",en:"Share on weibo",zh:"分享至新浪微博"},shareUrl:"http://service.weibo.com/share/share.php?url="+t+"&title="+a+e.getReferrerTrack()}}},{}],23:[function(e,t,a){"use strict";t.exports=function(e){var t=encodeURIComponent(e.getURL()),a=e.getMeta("DC.title"),i=e.getMeta("DC.creator");return a.length>0&&i.length>0?a+=" - "+i:a=e.getTitle(),{popup:!1,shareText:{bg:"cподеляне",da:"del",de:"teilen",en:"share",es:"compartir",fi:"Jaa",fr:"partager",hr:"podijelite",hu:"megosztás",it:"condividi",ja:"共有",ko:"공유하기",nl:"delen",no:"del",pl:"udostępnij",pt:"compartilhar",ro:"partajează",ru:"поделиться",sk:"zdieľať",sl:"deli",sr:"podeli",sv:"dela",tr:"paylaş",zh:"分享"},name:"whatsapp",faName:"fa-whatsapp",title:{bg:"Сподели в Whatsapp",da:"Del på Whatsapp",de:"Bei Whatsapp teilen",en:"Share on Whatsapp",es:"Compartir en Whatsapp",fi:"Jaa WhatsAppissä",fr:"Partager sur Whatsapp",hr:"Podijelite na Whatsapp",hu:"Megosztás WhatsAppen",it:"Condividi su Whatsapp",ja:"Whatsapp上で共有",ko:"Whatsapp에서 공유하기",nl:"Delen op Whatsapp",no:"Del på Whatsapp",pl:"Udostępnij przez WhatsApp",pt:"Compartilhar no Whatsapp",ro:"Partajează pe Whatsapp",ru:"Поделиться на Whatsapp",sk:"Zdieľať na Whatsapp",sl:"Deli na Whatsapp",sr:"Podeli na WhatsApp-u",sv:"Dela på Whatsapp",tr:"Whatsapp'ta paylaş",zh:"在Whatsapp上分享"},shareUrl:"whatsapp://send?text="+encodeURIComponent(a)+"%20"+t+e.getReferrerTrack()}}},{}],24:[function(e,t,a){"use strict";t.exports=function(e){var t=encodeURIComponent(e.getURL());return{popup:!0,shareText:{de:"teilen",en:"share",es:"compartir",fr:"partager",it:"condividi",da:"del",nl:"delen",zh:"分享"},name:"xing",faName:"fa-xing",title:{de:"Bei XING teilen",en:"Share on XING",es:"Compartir en XING",fr:"Partager sur XING",it:"Condividi su XING",da:"Del på XING",nl:"Delen op XING",zh:"分享至XING"},shareUrl:"https://www.xing.com/social_plugins/share?url="+t+e.getReferrerTrack()}}},{}],25:[function(e,t,a){(function(a){"use strict";var i="undefined"!=typeof window?window.jQuery:"undefined"!=typeof a?a.jQuery:null,r=e("url"),n=function(t,a){var r=this;this.element=t,i(t).empty(),this.options=i.extend({},this.defaults,a,i(t).data());var n=[e("./services/addthis"),e("./services/diaspora"),e("./services/facebook"),e("./services/flattr"),e("./services/googleplus"),e("./services/info"),e("./services/linkedin"),e("./services/mail"),e("./services/pinterest"),e("./services/reddit"),e("./services/stumbleupon"),e("./services/twitter"),e("./services/whatsapp"),e("./services/xing"),e("./services/tumblr"),e("./services/threema"),e("./services/weibo"),e("./services/tencent-weibo"),e("./services/qzone")];this.services=i.map(this.options.services,function(e){var t;return n.forEach(function(a){if(a=a(r),a.name===e)return t=a,null}),t}),this._addButtonList(),null!==this.options.backendUrl&&this.getShares().then(i.proxy(this._updateCounts,this))};n.prototype={defaults:{theme:"color",backendUrl:null,infoUrl:"http://ct.de/-2467514",lang:"de",langFallback:"en",mailUrl:function(){var e=r.parse(this.getURL(),!0);return e.query.view="mail",delete e.search,r.format(e)},mailSubject:function(){return this.getMeta("DC.title")||this.getTitle()},mailBody:function(){return this.getURL()},mediaUrl:null,orientation:"horizontal",referrerTrack:null,services:["twitter","facebook","googleplus","info"],title:function(){return i("head title").text()},twitterVia:null,flattrUser:null,flattrCategory:null,url:function(){var e=a.document.location.href,t=i("link[rel=canonical]").attr("href")||this.getMeta("og:url")||"";return t.length>0&&(t.indexOf("http")<0&&(t=a.document.location.protocol+"//"+a.document.location.host+t),e=t),e}},$socialshareElement:function(){return i(this.element)},getLocalized:function(e,t){return"object"==typeof e[t]?"undefined"==typeof e[t][this.options.lang]?e[t][this.options.langFallback]:e[t][this.options.lang]:"string"==typeof e[t]?e[t]:void 0},getMeta:function(e){var t=i('meta[name="'+e+'"],[property="'+e+'"]').attr("content");return t||""},getInfoUrl:function(){return this.options.infoUrl},getURL:function(){return this.getOption("url")},getOption:function(e){var t=this.options[e];return"function"==typeof t?i.proxy(t,this)():t},getTitle:function(){return this.getOption("title")},getReferrerTrack:function(){return this.options.referrerTrack||""},getShares:function(){var e=r.parse(this.options.backendUrl,!0);return e.query.url=this.getURL(),delete e.search,i.getJSON(r.format(e))},_updateCounts:function(e){var t=this;i.each(e,function(e,a){a>=1e3&&(a=Math.round(a/1e3)+"k"),i(t.element).find("."+e+" a").append(' <span class="share_count">'+a)})},_addButtonList:function(){var e=this,t=this.$socialshareElement(),r="theme-"+this.options.theme,n="orientation-"+this.options.orientation,s="col-"+this.options.services.length,o=i("<ul>").addClass(r).addClass(n).addClass(s);this.services.forEach(function(t){var a=i('<li class="shariff-button">').addClass(t.name),r='<span class="share_text">'+e.getLocalized(t,"shareText"),n=i("<a>").attr("href",t.shareUrl).append(r);"undefined"!=typeof t.faName&&n.prepend('<span class="fa '+t.faName+'">'),t.popup?n.attr("data-rel","popup"):t.blank&&n.attr("target","_blank"),n.attr("title",e.getLocalized(t,"title")),n.attr("role","button"),n.attr("aria-label",e.getLocalized(t,"title")),a.append(n),o.append(a)}),o.on("click",'[data-rel="popup"]',function(e){e.preventDefault();var t=i(this).attr("href"),r="_blank",n="600",s="460",o="width="+n+",height="+s;a.window.open(t,r,o)}),t.append(o)}},t.exports=n,a.Shariff=n,i(".shariff").each(function(){this.hasOwnProperty("shariff")||(this.shariff=new n(this))})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./services/addthis":6,"./services/diaspora":7,"./services/facebook":8,"./services/flattr":9,"./services/googleplus":10,"./services/info":11,"./services/linkedin":12,"./services/mail":13,"./services/pinterest":14,"./services/qzone":15,"./services/reddit":16,"./services/stumbleupon":17,"./services/tencent-weibo":18,"./services/threema":19,"./services/tumblr":20,"./services/twitter":21,"./services/weibo":22,"./services/whatsapp":23,"./services/xing":24,url:5}]},{},[25]),function(){"use strict";function e(e){e.fn.swiper=function(t){var i;return e(this).each(function(){var e=new a(this,t);i||(i=e)}),i}}var t,a=function(e,r){function n(e){return Math.floor(e)}function s(){var e=C.params.autoplay,t=C.slides.eq(C.activeIndex);t.attr("data-swiper-autoplay")&&(e=t.attr("data-swiper-autoplay")||C.params.autoplay),C.autoplayTimeoutId=setTimeout(function(){C.params.loop?(C.fixLoop(),C._slideNext(),C.emit("onAutoplay",C)):C.isEnd?r.autoplayStopOnLast?C.stopAutoplay():(C._slideTo(0),C.emit("onAutoplay",C)):(C._slideNext(),C.emit("onAutoplay",C))},e)}function o(e,a){var i=t(e.target);if(!i.is(a))if("string"==typeof a)i=i.parents(a);else if(a.nodeType){var r;return i.parents().each(function(e,t){t===a&&(r=a)}),r?a:void 0}if(0!==i.length)return i[0];
|
3
|
}function l(e,t){t=t||{};var a=window.MutationObserver||window.WebkitMutationObserver,i=new a(function(e){e.forEach(function(e){C.onResize(!0),C.emit("onObserverUpdate",C,e)})});i.observe(e,{attributes:"undefined"==typeof t.attributes||t.attributes,childList:"undefined"==typeof t.childList||t.childList,characterData:"undefined"==typeof t.characterData||t.characterData}),C.observers.push(i)}function d(e){e.originalEvent&&(e=e.originalEvent);var t=e.keyCode||e.charCode;if(!C.params.allowSwipeToNext&&(C.isHorizontal()&&39===t||!C.isHorizontal()&&40===t))return!1;if(!C.params.allowSwipeToPrev&&(C.isHorizontal()&&37===t||!C.isHorizontal()&&38===t))return!1;if(!(e.shiftKey||e.altKey||e.ctrlKey||e.metaKey||document.activeElement&&document.activeElement.nodeName&&("input"===document.activeElement.nodeName.toLowerCase()||"textarea"===document.activeElement.nodeName.toLowerCase()))){if(37===t||39===t||38===t||40===t){var a=!1;if(C.container.parents("."+C.params.slideClass).length>0&&0===C.container.parents("."+C.params.slideActiveClass).length)return;var i={left:window.pageXOffset,top:window.pageYOffset},r=window.innerWidth,n=window.innerHeight,s=C.container.offset();C.rtl&&(s.left=s.left-C.container[0].scrollLeft);for(var o=[[s.left,s.top],[s.left+C.width,s.top],[s.left,s.top+C.height],[s.left+C.width,s.top+C.height]],l=0;l<o.length;l++){var d=o[l];d[0]>=i.left&&d[0]<=i.left+r&&d[1]>=i.top&&d[1]<=i.top+n&&(a=!0)}if(!a)return}C.isHorizontal()?(37!==t&&39!==t||(e.preventDefault?e.preventDefault():e.returnValue=!1),(39===t&&!C.rtl||37===t&&C.rtl)&&C.slideNext(),(37===t&&!C.rtl||39===t&&C.rtl)&&C.slidePrev()):(38!==t&&40!==t||(e.preventDefault?e.preventDefault():e.returnValue=!1),40===t&&C.slideNext(),38===t&&C.slidePrev()),C.emit("onKeyPress",C,t)}}function p(){var e="onwheel",t=e in document;if(!t){var a=document.createElement("div");a.setAttribute(e,"return;"),t="function"==typeof a[e]}return!t&&document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0&&(t=document.implementation.hasFeature("Events.wheel","3.0")),t}function u(e){var t=10,a=40,i=800,r=0,n=0,s=0,o=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(r=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(r=n,n=0),s=r*t,o=n*t,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(s=e.deltaX),(s||o)&&e.deltaMode&&(1===e.deltaMode?(s*=a,o*=a):(s*=i,o*=i)),s&&!r&&(r=s<1?-1:1),o&&!n&&(n=o<1?-1:1),{spinX:r,spinY:n,pixelX:s,pixelY:o}}function c(e){e.originalEvent&&(e=e.originalEvent);var t=0,a=C.rtl?-1:1,i=u(e);if(C.params.mousewheelForceToAxis)if(C.isHorizontal()){if(!(Math.abs(i.pixelX)>Math.abs(i.pixelY)))return;t=i.pixelX*a}else{if(!(Math.abs(i.pixelY)>Math.abs(i.pixelX)))return;t=i.pixelY}else t=Math.abs(i.pixelX)>Math.abs(i.pixelY)?-i.pixelX*a:-i.pixelY;if(0!==t){if(C.params.mousewheelInvert&&(t=-t),C.params.freeMode){var r=C.getWrapperTranslate()+t*C.params.mousewheelSensitivity,n=C.isBeginning,s=C.isEnd;if(r>=C.minTranslate()&&(r=C.minTranslate()),r<=C.maxTranslate()&&(r=C.maxTranslate()),C.setWrapperTransition(0),C.setWrapperTranslate(r),C.updateProgress(),C.updateActiveIndex(),(!n&&C.isBeginning||!s&&C.isEnd)&&C.updateClasses(),C.params.freeModeSticky?(clearTimeout(C.mousewheel.timeout),C.mousewheel.timeout=setTimeout(function(){C.slideReset()},300)):C.params.lazyLoading&&C.lazy&&C.lazy.load(),C.emit("onScroll",C,e),C.params.autoplay&&C.params.autoplayDisableOnInteraction&&C.stopAutoplay(),0===r||r===C.maxTranslate())return}else{if((new window.Date).getTime()-C.mousewheel.lastScrollTime>60)if(t<0)if(C.isEnd&&!C.params.loop||C.animating){if(C.params.mousewheelReleaseOnEdges)return!0}else C.slideNext(),C.emit("onScroll",C,e);else if(C.isBeginning&&!C.params.loop||C.animating){if(C.params.mousewheelReleaseOnEdges)return!0}else C.slidePrev(),C.emit("onScroll",C,e);C.mousewheel.lastScrollTime=(new window.Date).getTime()}return e.preventDefault?e.preventDefault():e.returnValue=!1,!1}}function h(e,a){e=t(e);var i,r,n,s=C.rtl?-1:1;i=e.attr("data-swiper-parallax")||"0",r=e.attr("data-swiper-parallax-x"),n=e.attr("data-swiper-parallax-y"),r||n?(r=r||"0",n=n||"0"):C.isHorizontal()?(r=i,n="0"):(n=i,r="0"),r=r.indexOf("%")>=0?parseInt(r,10)*a*s+"%":r*a*s+"px",n=n.indexOf("%")>=0?parseInt(n,10)*a+"%":n*a+"px",e.transform("translate3d("+r+", "+n+",0px)")}function m(e){return 0!==e.indexOf("on")&&(e=e[0]!==e[0].toUpperCase()?"on"+e[0].toUpperCase()+e.substring(1):"on"+e),e}if(!(this instanceof a))return new a(e,r);var f={direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,autoplay:!1,autoplayDisableOnInteraction:!0,autoplayStopOnLast:!1,iOSEdgeSwipeDetection:!1,iOSEdgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",coverflow:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0},flip:{slideShadows:!0,limitRotation:!0},cube:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94},fade:{crossFade:!1},parallax:!1,zoom:!1,zoomMax:3,zoomMin:1,zoomToggle:!0,scrollbar:null,scrollbarHide:!0,scrollbarDraggable:!1,scrollbarSnapOnRelease:!1,keyboardControl:!1,mousewheelControl:!1,mousewheelReleaseOnEdges:!1,mousewheelInvert:!1,mousewheelForceToAxis:!1,mousewheelSensitivity:1,mousewheelEventsTarged:"container",hashnav:!1,hashnavWatchState:!1,history:!1,replaceState:!1,breakpoints:void 0,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,onlyExternal:!1,threshold:0,touchMoveStopPropagation:!0,touchReleaseOnEdges:!1,uniqueNavElements:!0,pagination:null,paginationElement:"span",paginationClickable:!1,paginationHide:!1,paginationBulletRender:null,paginationProgressRender:null,paginationFractionRender:null,paginationCustomRender:null,paginationType:"bullets",resistance:!0,resistanceRatio:.85,nextButton:null,prevButton:null,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,lazyLoading:!1,lazyLoadingInPrevNext:!1,lazyLoadingInPrevNextAmount:1,lazyLoadingOnTransitionStart:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,control:void 0,controlInverse:!1,controlBy:"slide",normalizeSlideIndex:!0,allowSwipeToPrev:!0,allowSwipeToNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",buttonDisabledClass:"swiper-button-disabled",paginationCurrentClass:"swiper-pagination-current",paginationTotalClass:"swiper-pagination-total",paginationHiddenClass:"swiper-pagination-hidden",paginationProgressbarClass:"swiper-pagination-progressbar",paginationClickableClass:"swiper-pagination-clickable",paginationModifierClass:"swiper-pagination-",lazyLoadingClass:"swiper-lazy",lazyStatusLoadingClass:"swiper-lazy-loading",lazyStatusLoadedClass:"swiper-lazy-loaded",lazyPreloaderClass:"swiper-lazy-preloader",notificationClass:"swiper-notification",preloaderClass:"preloader",zoomContainerClass:"swiper-zoom-container",observer:!1,observeParents:!1,a11y:!1,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",runCallbacksOnInit:!0},g=r&&r.virtualTranslate;r=r||{};var v={};for(var y in r)if("object"!=typeof r[y]||null===r[y]||(r[y].nodeType||r[y]===window||r[y]===document||"undefined"!=typeof i&&r[y]instanceof i||"undefined"!=typeof jQuery&&r[y]instanceof jQuery))v[y]=r[y];else{v[y]={};for(var w in r[y])v[y][w]=r[y][w]}for(var b in f)if("undefined"==typeof r[b])r[b]=f[b];else if("object"==typeof r[b])for(var x in f[b])"undefined"==typeof r[b][x]&&(r[b][x]=f[b][x]);var C=this;if(C.params=r,C.originalParams=v,C.classNames=[],"undefined"!=typeof t&&"undefined"!=typeof i&&(t=i),("undefined"!=typeof t||(t="undefined"==typeof i?window.Dom7||window.Zepto||window.jQuery:i))&&(C.$=t,C.currentBreakpoint=void 0,C.getActiveBreakpoint=function(){if(!C.params.breakpoints)return!1;var e,t=!1,a=[];for(e in C.params.breakpoints)C.params.breakpoints.hasOwnProperty(e)&&a.push(e);a.sort(function(e,t){return parseInt(e,10)>parseInt(t,10)});for(var i=0;i<a.length;i++)e=a[i],e>=window.innerWidth&&!t&&(t=e);return t||"max"},C.setBreakpoint=function(){var e=C.getActiveBreakpoint();if(e&&C.currentBreakpoint!==e){var t=e in C.params.breakpoints?C.params.breakpoints[e]:C.originalParams,a=C.params.loop&&t.slidesPerView!==C.params.slidesPerView;for(var i in t)C.params[i]=t[i];C.currentBreakpoint=e,a&&C.destroyLoop&&C.reLoop(!0)}},C.params.breakpoints&&C.setBreakpoint(),C.container=t(e),0!==C.container.length)){if(C.container.length>1){var _=[];return C.container.each(function(){_.push(new a(this,r))}),_}C.container[0].swiper=C,C.container.data("swiper",C),C.classNames.push(C.params.containerModifierClass+C.params.direction),C.params.freeMode&&C.classNames.push(C.params.containerModifierClass+"free-mode"),C.support.flexbox||(C.classNames.push(C.params.containerModifierClass+"no-flexbox"),C.params.slidesPerColumn=1),C.params.autoHeight&&C.classNames.push(C.params.containerModifierClass+"autoheight"),(C.params.parallax||C.params.watchSlidesVisibility)&&(C.params.watchSlidesProgress=!0),C.params.touchReleaseOnEdges&&(C.params.resistanceRatio=0),["cube","coverflow","flip"].indexOf(C.params.effect)>=0&&(C.support.transforms3d?(C.params.watchSlidesProgress=!0,C.classNames.push(C.params.containerModifierClass+"3d")):C.params.effect="slide"),"slide"!==C.params.effect&&C.classNames.push(C.params.containerModifierClass+C.params.effect),"cube"===C.params.effect&&(C.params.resistanceRatio=0,C.params.slidesPerView=1,C.params.slidesPerColumn=1,C.params.slidesPerGroup=1,C.params.centeredSlides=!1,C.params.spaceBetween=0,C.params.virtualTranslate=!0),"fade"!==C.params.effect&&"flip"!==C.params.effect||(C.params.slidesPerView=1,C.params.slidesPerColumn=1,C.params.slidesPerGroup=1,C.params.watchSlidesProgress=!0,C.params.spaceBetween=0,"undefined"==typeof g&&(C.params.virtualTranslate=!0)),C.params.grabCursor&&C.support.touch&&(C.params.grabCursor=!1),C.wrapper=C.container.children("."+C.params.wrapperClass),C.params.pagination&&(C.paginationContainer=t(C.params.pagination),C.params.uniqueNavElements&&"string"==typeof C.params.pagination&&C.paginationContainer.length>1&&1===C.container.find(C.params.pagination).length&&(C.paginationContainer=C.container.find(C.params.pagination)),"bullets"===C.params.paginationType&&C.params.paginationClickable?C.paginationContainer.addClass(C.params.paginationModifierClass+"clickable"):C.params.paginationClickable=!1,C.paginationContainer.addClass(C.params.paginationModifierClass+C.params.paginationType)),(C.params.nextButton||C.params.prevButton)&&(C.params.nextButton&&(C.nextButton=t(C.params.nextButton),C.params.uniqueNavElements&&"string"==typeof C.params.nextButton&&C.nextButton.length>1&&1===C.container.find(C.params.nextButton).length&&(C.nextButton=C.container.find(C.params.nextButton))),C.params.prevButton&&(C.prevButton=t(C.params.prevButton),C.params.uniqueNavElements&&"string"==typeof C.params.prevButton&&C.prevButton.length>1&&1===C.container.find(C.params.prevButton).length&&(C.prevButton=C.container.find(C.params.prevButton)))),C.isHorizontal=function(){return"horizontal"===C.params.direction},C.rtl=C.isHorizontal()&&("rtl"===C.container[0].dir.toLowerCase()||"rtl"===C.container.css("direction")),C.rtl&&C.classNames.push(C.params.containerModifierClass+"rtl"),C.rtl&&(C.wrongRTL="-webkit-box"===C.wrapper.css("display")),C.params.slidesPerColumn>1&&C.classNames.push(C.params.containerModifierClass+"multirow"),C.device.android&&C.classNames.push(C.params.containerModifierClass+"android"),C.container.addClass(C.classNames.join(" ")),C.translate=0,C.progress=0,C.velocity=0,C.lockSwipeToNext=function(){C.params.allowSwipeToNext=!1,C.params.allowSwipeToPrev===!1&&C.params.grabCursor&&C.unsetGrabCursor()},C.lockSwipeToPrev=function(){C.params.allowSwipeToPrev=!1,C.params.allowSwipeToNext===!1&&C.params.grabCursor&&C.unsetGrabCursor()},C.lockSwipes=function(){C.params.allowSwipeToNext=C.params.allowSwipeToPrev=!1,C.params.grabCursor&&C.unsetGrabCursor()},C.unlockSwipeToNext=function(){C.params.allowSwipeToNext=!0,C.params.allowSwipeToPrev===!0&&C.params.grabCursor&&C.setGrabCursor()},C.unlockSwipeToPrev=function(){C.params.allowSwipeToPrev=!0,C.params.allowSwipeToNext===!0&&C.params.grabCursor&&C.setGrabCursor()},C.unlockSwipes=function(){C.params.allowSwipeToNext=C.params.allowSwipeToPrev=!0,C.params.grabCursor&&C.setGrabCursor()},C.setGrabCursor=function(e){C.container[0].style.cursor="move",C.container[0].style.cursor=e?"-webkit-grabbing":"-webkit-grab",C.container[0].style.cursor=e?"-moz-grabbin":"-moz-grab",C.container[0].style.cursor=e?"grabbing":"grab"},C.unsetGrabCursor=function(){C.container[0].style.cursor=""},C.params.grabCursor&&C.setGrabCursor(),C.imagesToLoad=[],C.imagesLoaded=0,C.loadImage=function(e,t,a,i,r,n){function s(){n&&n()}var o;e.complete&&r?s():t?(o=new window.Image,o.onload=s,o.onerror=s,i&&(o.sizes=i),a&&(o.srcset=a),t&&(o.src=t)):s()},C.preloadImages=function(){function e(){"undefined"!=typeof C&&null!==C&&C&&(void 0!==C.imagesLoaded&&C.imagesLoaded++,C.imagesLoaded===C.imagesToLoad.length&&(C.params.updateOnImagesReady&&C.update(),C.emit("onImagesReady",C)))}C.imagesToLoad=C.container.find("img");for(var t=0;t<C.imagesToLoad.length;t++)C.loadImage(C.imagesToLoad[t],C.imagesToLoad[t].currentSrc||C.imagesToLoad[t].getAttribute("src"),C.imagesToLoad[t].srcset||C.imagesToLoad[t].getAttribute("srcset"),C.imagesToLoad[t].sizes||C.imagesToLoad[t].getAttribute("sizes"),!0,e)},C.autoplayTimeoutId=void 0,C.autoplaying=!1,C.autoplayPaused=!1,C.startAutoplay=function(){return"undefined"==typeof C.autoplayTimeoutId&&(!!C.params.autoplay&&(!C.autoplaying&&(C.autoplaying=!0,C.emit("onAutoplayStart",C),void s())))},C.stopAutoplay=function(e){C.autoplayTimeoutId&&(C.autoplayTimeoutId&&clearTimeout(C.autoplayTimeoutId),C.autoplaying=!1,C.autoplayTimeoutId=void 0,C.emit("onAutoplayStop",C))},C.pauseAutoplay=function(e){C.autoplayPaused||(C.autoplayTimeoutId&&clearTimeout(C.autoplayTimeoutId),C.autoplayPaused=!0,0===e?(C.autoplayPaused=!1,s()):C.wrapper.transitionEnd(function(){C&&(C.autoplayPaused=!1,C.autoplaying?s():C.stopAutoplay())}))},C.minTranslate=function(){return-C.snapGrid[0]},C.maxTranslate=function(){return-C.snapGrid[C.snapGrid.length-1]},C.updateAutoHeight=function(){var e,t=[],a=0;if("auto"!==C.params.slidesPerView&&C.params.slidesPerView>1)for(e=0;e<Math.ceil(C.params.slidesPerView);e++){var i=C.activeIndex+e;if(i>C.slides.length)break;t.push(C.slides.eq(i)[0])}else t.push(C.slides.eq(C.activeIndex)[0]);for(e=0;e<t.length;e++)if("undefined"!=typeof t[e]){var r=t[e].offsetHeight;a=r>a?r:a}a&&C.wrapper.css("height",a+"px")},C.updateContainerSize=function(){var e,t;e="undefined"!=typeof C.params.width?C.params.width:C.container[0].clientWidth,t="undefined"!=typeof C.params.height?C.params.height:C.container[0].clientHeight,0===e&&C.isHorizontal()||0===t&&!C.isHorizontal()||(e=e-parseInt(C.container.css("padding-left"),10)-parseInt(C.container.css("padding-right"),10),t=t-parseInt(C.container.css("padding-top"),10)-parseInt(C.container.css("padding-bottom"),10),C.width=e,C.height=t,C.size=C.isHorizontal()?C.width:C.height)},C.updateSlidesSize=function(){C.slides=C.wrapper.children("."+C.params.slideClass),C.snapGrid=[],C.slidesGrid=[],C.slidesSizesGrid=[];var e,t=C.params.spaceBetween,a=-C.params.slidesOffsetBefore,i=0,r=0;if("undefined"!=typeof C.size){"string"==typeof t&&t.indexOf("%")>=0&&(t=parseFloat(t.replace("%",""))/100*C.size),C.virtualSize=-t,C.rtl?C.slides.css({marginLeft:"",marginTop:""}):C.slides.css({marginRight:"",marginBottom:""});var s;C.params.slidesPerColumn>1&&(s=Math.floor(C.slides.length/C.params.slidesPerColumn)===C.slides.length/C.params.slidesPerColumn?C.slides.length:Math.ceil(C.slides.length/C.params.slidesPerColumn)*C.params.slidesPerColumn,"auto"!==C.params.slidesPerView&&"row"===C.params.slidesPerColumnFill&&(s=Math.max(s,C.params.slidesPerView*C.params.slidesPerColumn)));var o,l=C.params.slidesPerColumn,d=s/l,p=d-(C.params.slidesPerColumn*d-C.slides.length);for(e=0;e<C.slides.length;e++){o=0;var u=C.slides.eq(e);if(C.params.slidesPerColumn>1){var c,h,m;"column"===C.params.slidesPerColumnFill?(h=Math.floor(e/l),m=e-h*l,(h>p||h===p&&m===l-1)&&++m>=l&&(m=0,h++),c=h+m*s/l,u.css({"-webkit-box-ordinal-group":c,"-moz-box-ordinal-group":c,"-ms-flex-order":c,"-webkit-order":c,order:c})):(m=Math.floor(e/d),h=e-m*d),u.css("margin-"+(C.isHorizontal()?"top":"left"),0!==m&&C.params.spaceBetween&&C.params.spaceBetween+"px").attr("data-swiper-column",h).attr("data-swiper-row",m)}"none"!==u.css("display")&&("auto"===C.params.slidesPerView?(o=C.isHorizontal()?u.outerWidth(!0):u.outerHeight(!0),C.params.roundLengths&&(o=n(o))):(o=(C.size-(C.params.slidesPerView-1)*t)/C.params.slidesPerView,C.params.roundLengths&&(o=n(o)),C.isHorizontal()?C.slides[e].style.width=o+"px":C.slides[e].style.height=o+"px"),C.slides[e].swiperSlideSize=o,C.slidesSizesGrid.push(o),C.params.centeredSlides?(a=a+o/2+i/2+t,0===i&&0!==e&&(a=a-C.size/2-t),0===e&&(a=a-C.size/2-t),Math.abs(a)<.001&&(a=0),r%C.params.slidesPerGroup===0&&C.snapGrid.push(a),C.slidesGrid.push(a)):(r%C.params.slidesPerGroup===0&&C.snapGrid.push(a),C.slidesGrid.push(a),a=a+o+t),C.virtualSize+=o+t,i=o,r++)}C.virtualSize=Math.max(C.virtualSize,C.size)+C.params.slidesOffsetAfter;var f;if(C.rtl&&C.wrongRTL&&("slide"===C.params.effect||"coverflow"===C.params.effect)&&C.wrapper.css({width:C.virtualSize+C.params.spaceBetween+"px"}),C.support.flexbox&&!C.params.setWrapperSize||(C.isHorizontal()?C.wrapper.css({width:C.virtualSize+C.params.spaceBetween+"px"}):C.wrapper.css({height:C.virtualSize+C.params.spaceBetween+"px"})),C.params.slidesPerColumn>1&&(C.virtualSize=(o+C.params.spaceBetween)*s,C.virtualSize=Math.ceil(C.virtualSize/C.params.slidesPerColumn)-C.params.spaceBetween,C.isHorizontal()?C.wrapper.css({width:C.virtualSize+C.params.spaceBetween+"px"}):C.wrapper.css({height:C.virtualSize+C.params.spaceBetween+"px"}),C.params.centeredSlides)){for(f=[],e=0;e<C.snapGrid.length;e++)C.snapGrid[e]<C.virtualSize+C.snapGrid[0]&&f.push(C.snapGrid[e]);C.snapGrid=f}if(!C.params.centeredSlides){for(f=[],e=0;e<C.snapGrid.length;e++)C.snapGrid[e]<=C.virtualSize-C.size&&f.push(C.snapGrid[e]);C.snapGrid=f,Math.floor(C.virtualSize-C.size)-Math.floor(C.snapGrid[C.snapGrid.length-1])>1&&C.snapGrid.push(C.virtualSize-C.size)}0===C.snapGrid.length&&(C.snapGrid=[0]),0!==C.params.spaceBetween&&(C.isHorizontal()?C.rtl?C.slides.css({marginLeft:t+"px"}):C.slides.css({marginRight:t+"px"}):C.slides.css({marginBottom:t+"px"})),C.params.watchSlidesProgress&&C.updateSlidesOffset()}},C.updateSlidesOffset=function(){for(var e=0;e<C.slides.length;e++)C.slides[e].swiperSlideOffset=C.isHorizontal()?C.slides[e].offsetLeft:C.slides[e].offsetTop},C.currentSlidesPerView=function(){var e,t,a=1;if(C.params.centeredSlides){var i,r=C.slides[C.activeIndex].swiperSlideSize;for(e=C.activeIndex+1;e<C.slides.length;e++)C.slides[e]&&!i&&(r+=C.slides[e].swiperSlideSize,a++,r>C.size&&(i=!0));for(t=C.activeIndex-1;t>=0;t--)C.slides[t]&&!i&&(r+=C.slides[t].swiperSlideSize,a++,r>C.size&&(i=!0))}else for(e=C.activeIndex+1;e<C.slides.length;e++)C.slidesGrid[e]-C.slidesGrid[C.activeIndex]<C.size&&a++;return a},C.updateSlidesProgress=function(e){if("undefined"==typeof e&&(e=C.translate||0),0!==C.slides.length){"undefined"==typeof C.slides[0].swiperSlideOffset&&C.updateSlidesOffset();var t=-e;C.rtl&&(t=e),C.slides.removeClass(C.params.slideVisibleClass);for(var a=0;a<C.slides.length;a++){var i=C.slides[a],r=(t+(C.params.centeredSlides?C.minTranslate():0)-i.swiperSlideOffset)/(i.swiperSlideSize+C.params.spaceBetween);if(C.params.watchSlidesVisibility){var n=-(t-i.swiperSlideOffset),s=n+C.slidesSizesGrid[a],o=n>=0&&n<C.size||s>0&&s<=C.size||n<=0&&s>=C.size;o&&C.slides.eq(a).addClass(C.params.slideVisibleClass)}i.progress=C.rtl?-r:r}}},C.updateProgress=function(e){"undefined"==typeof e&&(e=C.translate||0);var t=C.maxTranslate()-C.minTranslate(),a=C.isBeginning,i=C.isEnd;0===t?(C.progress=0,C.isBeginning=C.isEnd=!0):(C.progress=(e-C.minTranslate())/t,C.isBeginning=C.progress<=0,C.isEnd=C.progress>=1),C.isBeginning&&!a&&C.emit("onReachBeginning",C),C.isEnd&&!i&&C.emit("onReachEnd",C),C.params.watchSlidesProgress&&C.updateSlidesProgress(e),C.emit("onProgress",C,C.progress)},C.updateActiveIndex=function(){var e,t,a,i=C.rtl?C.translate:-C.translate;for(t=0;t<C.slidesGrid.length;t++)"undefined"!=typeof C.slidesGrid[t+1]?i>=C.slidesGrid[t]&&i<C.slidesGrid[t+1]-(C.slidesGrid[t+1]-C.slidesGrid[t])/2?e=t:i>=C.slidesGrid[t]&&i<C.slidesGrid[t+1]&&(e=t+1):i>=C.slidesGrid[t]&&(e=t);C.params.normalizeSlideIndex&&(e<0||"undefined"==typeof e)&&(e=0),a=Math.floor(e/C.params.slidesPerGroup),a>=C.snapGrid.length&&(a=C.snapGrid.length-1),e!==C.activeIndex&&(C.snapIndex=a,C.previousIndex=C.activeIndex,C.activeIndex=e,C.updateClasses(),C.updateRealIndex())},C.updateRealIndex=function(){C.realIndex=parseInt(C.slides.eq(C.activeIndex).attr("data-swiper-slide-index")||C.activeIndex,10)},C.updateClasses=function(){C.slides.removeClass(C.params.slideActiveClass+" "+C.params.slideNextClass+" "+C.params.slidePrevClass+" "+C.params.slideDuplicateActiveClass+" "+C.params.slideDuplicateNextClass+" "+C.params.slideDuplicatePrevClass);var e=C.slides.eq(C.activeIndex);e.addClass(C.params.slideActiveClass),r.loop&&(e.hasClass(C.params.slideDuplicateClass)?C.wrapper.children("."+C.params.slideClass+":not(."+C.params.slideDuplicateClass+')[data-swiper-slide-index="'+C.realIndex+'"]').addClass(C.params.slideDuplicateActiveClass):C.wrapper.children("."+C.params.slideClass+"."+C.params.slideDuplicateClass+'[data-swiper-slide-index="'+C.realIndex+'"]').addClass(C.params.slideDuplicateActiveClass));var a=e.next("."+C.params.slideClass).addClass(C.params.slideNextClass);C.params.loop&&0===a.length&&(a=C.slides.eq(0),a.addClass(C.params.slideNextClass));var i=e.prev("."+C.params.slideClass).addClass(C.params.slidePrevClass);if(C.params.loop&&0===i.length&&(i=C.slides.eq(-1),i.addClass(C.params.slidePrevClass)),r.loop&&(a.hasClass(C.params.slideDuplicateClass)?C.wrapper.children("."+C.params.slideClass+":not(."+C.params.slideDuplicateClass+')[data-swiper-slide-index="'+a.attr("data-swiper-slide-index")+'"]').addClass(C.params.slideDuplicateNextClass):C.wrapper.children("."+C.params.slideClass+"."+C.params.slideDuplicateClass+'[data-swiper-slide-index="'+a.attr("data-swiper-slide-index")+'"]').addClass(C.params.slideDuplicateNextClass),i.hasClass(C.params.slideDuplicateClass)?C.wrapper.children("."+C.params.slideClass+":not(."+C.params.slideDuplicateClass+')[data-swiper-slide-index="'+i.attr("data-swiper-slide-index")+'"]').addClass(C.params.slideDuplicatePrevClass):C.wrapper.children("."+C.params.slideClass+"."+C.params.slideDuplicateClass+'[data-swiper-slide-index="'+i.attr("data-swiper-slide-index")+'"]').addClass(C.params.slideDuplicatePrevClass)),C.paginationContainer&&C.paginationContainer.length>0){var n,s=C.params.loop?Math.ceil((C.slides.length-2*C.loopedSlides)/C.params.slidesPerGroup):C.snapGrid.length;if(C.params.loop?(n=Math.ceil((C.activeIndex-C.loopedSlides)/C.params.slidesPerGroup),n>C.slides.length-1-2*C.loopedSlides&&(n-=C.slides.length-2*C.loopedSlides),n>s-1&&(n-=s),n<0&&"bullets"!==C.params.paginationType&&(n=s+n)):n="undefined"!=typeof C.snapIndex?C.snapIndex:C.activeIndex||0,"bullets"===C.params.paginationType&&C.bullets&&C.bullets.length>0&&(C.bullets.removeClass(C.params.bulletActiveClass),C.paginationContainer.length>1?C.bullets.each(function(){t(this).index()===n&&t(this).addClass(C.params.bulletActiveClass)}):C.bullets.eq(n).addClass(C.params.bulletActiveClass)),"fraction"===C.params.paginationType&&(C.paginationContainer.find("."+C.params.paginationCurrentClass).text(n+1),C.paginationContainer.find("."+C.params.paginationTotalClass).text(s)),"progress"===C.params.paginationType){var o=(n+1)/s,l=o,d=1;C.isHorizontal()||(d=o,l=1),C.paginationContainer.find("."+C.params.paginationProgressbarClass).transform("translate3d(0,0,0) scaleX("+l+") scaleY("+d+")").transition(C.params.speed)}"custom"===C.params.paginationType&&C.params.paginationCustomRender&&(C.paginationContainer.html(C.params.paginationCustomRender(C,n+1,s)),C.emit("onPaginationRendered",C,C.paginationContainer[0]))}C.params.loop||(C.params.prevButton&&C.prevButton&&C.prevButton.length>0&&(C.isBeginning?(C.prevButton.addClass(C.params.buttonDisabledClass),C.params.a11y&&C.a11y&&C.a11y.disable(C.prevButton)):(C.prevButton.removeClass(C.params.buttonDisabledClass),C.params.a11y&&C.a11y&&C.a11y.enable(C.prevButton))),C.params.nextButton&&C.nextButton&&C.nextButton.length>0&&(C.isEnd?(C.nextButton.addClass(C.params.buttonDisabledClass),C.params.a11y&&C.a11y&&C.a11y.disable(C.nextButton)):(C.nextButton.removeClass(C.params.buttonDisabledClass),C.params.a11y&&C.a11y&&C.a11y.enable(C.nextButton))))},C.updatePagination=function(){if(C.params.pagination&&C.paginationContainer&&C.paginationContainer.length>0){var e="";if("bullets"===C.params.paginationType){for(var t=C.params.loop?Math.ceil((C.slides.length-2*C.loopedSlides)/C.params.slidesPerGroup):C.snapGrid.length,a=0;a<t;a++)e+=C.params.paginationBulletRender?C.params.paginationBulletRender(C,a,C.params.bulletClass):"<"+C.params.paginationElement+' class="'+C.params.bulletClass+'"></'+C.params.paginationElement+">";C.paginationContainer.html(e),C.bullets=C.paginationContainer.find("."+C.params.bulletClass),C.params.paginationClickable&&C.params.a11y&&C.a11y&&C.a11y.initPagination()}"fraction"===C.params.paginationType&&(e=C.params.paginationFractionRender?C.params.paginationFractionRender(C,C.params.paginationCurrentClass,C.params.paginationTotalClass):'<span class="'+C.params.paginationCurrentClass+'"></span> / <span class="'+C.params.paginationTotalClass+'"></span>',C.paginationContainer.html(e)),"progress"===C.params.paginationType&&(e=C.params.paginationProgressRender?C.params.paginationProgressRender(C,C.params.paginationProgressbarClass):'<span class="'+C.params.paginationProgressbarClass+'"></span>',C.paginationContainer.html(e)),"custom"!==C.params.paginationType&&C.emit("onPaginationRendered",C,C.paginationContainer[0])}},C.update=function(e){function t(){C.rtl?-C.translate:C.translate;a=Math.min(Math.max(C.translate,C.maxTranslate()),C.minTranslate()),C.setWrapperTranslate(a),C.updateActiveIndex(),C.updateClasses()}if(C){C.updateContainerSize(),C.updateSlidesSize(),C.updateProgress(),C.updatePagination(),C.updateClasses(),C.params.scrollbar&&C.scrollbar&&C.scrollbar.set();var a;if(e){var i;C.controller&&C.controller.spline&&(C.controller.spline=void 0),C.params.freeMode?(t(),C.params.autoHeight&&C.updateAutoHeight()):(i=("auto"===C.params.slidesPerView||C.params.slidesPerView>1)&&C.isEnd&&!C.params.centeredSlides?C.slideTo(C.slides.length-1,0,!1,!0):C.slideTo(C.activeIndex,0,!1,!0),i||t())}else C.params.autoHeight&&C.updateAutoHeight()}},C.onResize=function(e){C.params.onBeforeResize&&C.params.onBeforeResize(C),C.params.breakpoints&&C.setBreakpoint();var t=C.params.allowSwipeToPrev,a=C.params.allowSwipeToNext;C.params.allowSwipeToPrev=C.params.allowSwipeToNext=!0,C.updateContainerSize(),C.updateSlidesSize(),("auto"===C.params.slidesPerView||C.params.freeMode||e)&&C.updatePagination(),C.params.scrollbar&&C.scrollbar&&C.scrollbar.set(),C.controller&&C.controller.spline&&(C.controller.spline=void 0);var i=!1;if(C.params.freeMode){var r=Math.min(Math.max(C.translate,C.maxTranslate()),C.minTranslate());C.setWrapperTranslate(r),C.updateActiveIndex(),C.updateClasses(),C.params.autoHeight&&C.updateAutoHeight()}else C.updateClasses(),i=("auto"===C.params.slidesPerView||C.params.slidesPerView>1)&&C.isEnd&&!C.params.centeredSlides?C.slideTo(C.slides.length-1,0,!1,!0):C.slideTo(C.activeIndex,0,!1,!0);C.params.lazyLoading&&!i&&C.lazy&&C.lazy.load(),C.params.allowSwipeToPrev=t,C.params.allowSwipeToNext=a,C.params.onAfterResize&&C.params.onAfterResize(C)},C.touchEventsDesktop={start:"mousedown",move:"mousemove",end:"mouseup"},window.navigator.pointerEnabled?C.touchEventsDesktop={start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled&&(C.touchEventsDesktop={start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}),C.touchEvents={start:C.support.touch||!C.params.simulateTouch?"touchstart":C.touchEventsDesktop.start,move:C.support.touch||!C.params.simulateTouch?"touchmove":C.touchEventsDesktop.move,end:C.support.touch||!C.params.simulateTouch?"touchend":C.touchEventsDesktop.end},(window.navigator.pointerEnabled||window.navigator.msPointerEnabled)&&("container"===C.params.touchEventsTarget?C.container:C.wrapper).addClass("swiper-wp8-"+C.params.direction),C.initEvents=function(e){var t=e?"off":"on",a=e?"removeEventListener":"addEventListener",i="container"===C.params.touchEventsTarget?C.container[0]:C.wrapper[0],n=C.support.touch?i:document,s=!!C.params.nested;if(C.browser.ie)i[a](C.touchEvents.start,C.onTouchStart,!1),n[a](C.touchEvents.move,C.onTouchMove,s),n[a](C.touchEvents.end,C.onTouchEnd,!1);else{if(C.support.touch){var o=!("touchstart"!==C.touchEvents.start||!C.support.passiveListener||!C.params.passiveListeners)&&{passive:!0,capture:!1};i[a](C.touchEvents.start,C.onTouchStart,o),i[a](C.touchEvents.move,C.onTouchMove,s),i[a](C.touchEvents.end,C.onTouchEnd,o)}(r.simulateTouch&&!C.device.ios&&!C.device.android||r.simulateTouch&&!C.support.touch&&C.device.ios)&&(i[a]("mousedown",C.onTouchStart,!1),document[a]("mousemove",C.onTouchMove,s),document[a]("mouseup",C.onTouchEnd,!1))}window[a]("resize",C.onResize),C.params.nextButton&&C.nextButton&&C.nextButton.length>0&&(C.nextButton[t]("click",C.onClickNext),C.params.a11y&&C.a11y&&C.nextButton[t]("keydown",C.a11y.onEnterKey)),C.params.prevButton&&C.prevButton&&C.prevButton.length>0&&(C.prevButton[t]("click",C.onClickPrev),C.params.a11y&&C.a11y&&C.prevButton[t]("keydown",C.a11y.onEnterKey)),C.params.pagination&&C.params.paginationClickable&&(C.paginationContainer[t]("click","."+C.params.bulletClass,C.onClickIndex),C.params.a11y&&C.a11y&&C.paginationContainer[t]("keydown","."+C.params.bulletClass,C.a11y.onEnterKey)),(C.params.preventClicks||C.params.preventClicksPropagation)&&i[a]("click",C.preventClicks,!0)},C.attachEvents=function(){C.initEvents()},C.detachEvents=function(){C.initEvents(!0)},C.allowClick=!0,C.preventClicks=function(e){C.allowClick||(C.params.preventClicks&&e.preventDefault(),C.params.preventClicksPropagation&&C.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))},C.onClickNext=function(e){e.preventDefault(),C.isEnd&&!C.params.loop||C.slideNext()},C.onClickPrev=function(e){e.preventDefault(),C.isBeginning&&!C.params.loop||C.slidePrev()},C.onClickIndex=function(e){e.preventDefault();var a=t(this).index()*C.params.slidesPerGroup;C.params.loop&&(a+=C.loopedSlides),C.slideTo(a)},C.updateClickedSlide=function(e){var a=o(e,"."+C.params.slideClass),i=!1;
|
4
|
if(a)for(var r=0;r<C.slides.length;r++)C.slides[r]===a&&(i=!0);if(!a||!i)return C.clickedSlide=void 0,void(C.clickedIndex=void 0);if(C.clickedSlide=a,C.clickedIndex=t(a).index(),C.params.slideToClickedSlide&&void 0!==C.clickedIndex&&C.clickedIndex!==C.activeIndex){var n,s=C.clickedIndex,l="auto"===C.params.slidesPerView?C.currentSlidesPerView():C.params.slidesPerView;if(C.params.loop){if(C.animating)return;n=parseInt(t(C.clickedSlide).attr("data-swiper-slide-index"),10),C.params.centeredSlides?s<C.loopedSlides-l/2||s>C.slides.length-C.loopedSlides+l/2?(C.fixLoop(),s=C.wrapper.children("."+C.params.slideClass+'[data-swiper-slide-index="'+n+'"]:not(.'+C.params.slideDuplicateClass+")").eq(0).index(),setTimeout(function(){C.slideTo(s)},0)):C.slideTo(s):s>C.slides.length-l?(C.fixLoop(),s=C.wrapper.children("."+C.params.slideClass+'[data-swiper-slide-index="'+n+'"]:not(.'+C.params.slideDuplicateClass+")").eq(0).index(),setTimeout(function(){C.slideTo(s)},0)):C.slideTo(s)}else C.slideTo(s)}};var k,T,S,D,M,I,z,E,P,A,L="input, select, textarea, button, video",O=Date.now(),N=[];C.animating=!1,C.touches={startX:0,startY:0,currentX:0,currentY:0,diff:0};var F,j;C.onTouchStart=function(e){if(e.originalEvent&&(e=e.originalEvent),F="touchstart"===e.type,F||!("which"in e)||3!==e.which){if(C.params.noSwiping&&o(e,"."+C.params.noSwipingClass))return void(C.allowClick=!0);if(!C.params.swipeHandler||o(e,C.params.swipeHandler)){var a=C.touches.currentX="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,i=C.touches.currentY="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY;if(!(C.device.ios&&C.params.iOSEdgeSwipeDetection&&a<=C.params.iOSEdgeSwipeThreshold)){if(k=!0,T=!1,S=!0,M=void 0,j=void 0,C.touches.startX=a,C.touches.startY=i,D=Date.now(),C.allowClick=!0,C.updateContainerSize(),C.swipeDirection=void 0,C.params.threshold>0&&(E=!1),"touchstart"!==e.type){var r=!0;t(e.target).is(L)&&(r=!1),document.activeElement&&t(document.activeElement).is(L)&&document.activeElement.blur(),r&&e.preventDefault()}C.emit("onTouchStart",C,e)}}}},C.onTouchMove=function(e){if(e.originalEvent&&(e=e.originalEvent),!F||"mousemove"!==e.type){if(e.preventedByNestedSwiper)return C.touches.startX="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,void(C.touches.startY="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY);if(C.params.onlyExternal)return C.allowClick=!1,void(k&&(C.touches.startX=C.touches.currentX="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,C.touches.startY=C.touches.currentY="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,D=Date.now()));if(F&&C.params.touchReleaseOnEdges&&!C.params.loop)if(C.isHorizontal()){if(C.touches.currentX<C.touches.startX&&C.translate<=C.maxTranslate()||C.touches.currentX>C.touches.startX&&C.translate>=C.minTranslate())return}else if(C.touches.currentY<C.touches.startY&&C.translate<=C.maxTranslate()||C.touches.currentY>C.touches.startY&&C.translate>=C.minTranslate())return;if(F&&document.activeElement&&e.target===document.activeElement&&t(e.target).is(L))return T=!0,void(C.allowClick=!1);if(S&&C.emit("onTouchMove",C,e),!(e.targetTouches&&e.targetTouches.length>1)){if(C.touches.currentX="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,C.touches.currentY="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,"undefined"==typeof M){var a;C.isHorizontal()&&C.touches.currentY===C.touches.startY||!C.isHorizontal()&&C.touches.currentX===C.touches.startX?M=!1:(a=180*Math.atan2(Math.abs(C.touches.currentY-C.touches.startY),Math.abs(C.touches.currentX-C.touches.startX))/Math.PI,M=C.isHorizontal()?a>C.params.touchAngle:90-a>C.params.touchAngle)}if(M&&C.emit("onTouchMoveOpposite",C,e),"undefined"==typeof j&&(C.touches.currentX===C.touches.startX&&C.touches.currentY===C.touches.startY||(j=!0)),k){if(M)return void(k=!1);if(j){C.allowClick=!1,C.emit("onSliderMove",C,e),e.preventDefault(),C.params.touchMoveStopPropagation&&!C.params.nested&&e.stopPropagation(),T||(r.loop&&C.fixLoop(),z=C.getWrapperTranslate(),C.setWrapperTransition(0),C.animating&&C.wrapper.trigger("webkitTransitionEnd transitionend oTransitionEnd MSTransitionEnd msTransitionEnd"),C.params.autoplay&&C.autoplaying&&(C.params.autoplayDisableOnInteraction?C.stopAutoplay():C.pauseAutoplay()),A=!1,!C.params.grabCursor||C.params.allowSwipeToNext!==!0&&C.params.allowSwipeToPrev!==!0||C.setGrabCursor(!0)),T=!0;var i=C.touches.diff=C.isHorizontal()?C.touches.currentX-C.touches.startX:C.touches.currentY-C.touches.startY;i*=C.params.touchRatio,C.rtl&&(i=-i),C.swipeDirection=i>0?"prev":"next",I=i+z;var n=!0;if(i>0&&I>C.minTranslate()?(n=!1,C.params.resistance&&(I=C.minTranslate()-1+Math.pow(-C.minTranslate()+z+i,C.params.resistanceRatio))):i<0&&I<C.maxTranslate()&&(n=!1,C.params.resistance&&(I=C.maxTranslate()+1-Math.pow(C.maxTranslate()-z-i,C.params.resistanceRatio))),n&&(e.preventedByNestedSwiper=!0),!C.params.allowSwipeToNext&&"next"===C.swipeDirection&&I<z&&(I=z),!C.params.allowSwipeToPrev&&"prev"===C.swipeDirection&&I>z&&(I=z),C.params.threshold>0){if(!(Math.abs(i)>C.params.threshold||E))return void(I=z);if(!E)return E=!0,C.touches.startX=C.touches.currentX,C.touches.startY=C.touches.currentY,I=z,void(C.touches.diff=C.isHorizontal()?C.touches.currentX-C.touches.startX:C.touches.currentY-C.touches.startY)}C.params.followFinger&&((C.params.freeMode||C.params.watchSlidesProgress)&&C.updateActiveIndex(),C.params.freeMode&&(0===N.length&&N.push({position:C.touches[C.isHorizontal()?"startX":"startY"],time:D}),N.push({position:C.touches[C.isHorizontal()?"currentX":"currentY"],time:(new window.Date).getTime()})),C.updateProgress(I),C.setWrapperTranslate(I))}}}}},C.onTouchEnd=function(e){if(e.originalEvent&&(e=e.originalEvent),S&&C.emit("onTouchEnd",C,e),S=!1,k){C.params.grabCursor&&T&&k&&(C.params.allowSwipeToNext===!0||C.params.allowSwipeToPrev===!0)&&C.setGrabCursor(!1);var a=Date.now(),i=a-D;if(C.allowClick&&(C.updateClickedSlide(e),C.emit("onTap",C,e),i<300&&a-O>300&&(P&&clearTimeout(P),P=setTimeout(function(){C&&(C.params.paginationHide&&C.paginationContainer.length>0&&!t(e.target).hasClass(C.params.bulletClass)&&C.paginationContainer.toggleClass(C.params.paginationHiddenClass),C.emit("onClick",C,e))},300)),i<300&&a-O<300&&(P&&clearTimeout(P),C.emit("onDoubleTap",C,e))),O=Date.now(),setTimeout(function(){C&&(C.allowClick=!0)},0),!k||!T||!C.swipeDirection||0===C.touches.diff||I===z)return void(k=T=!1);k=T=!1;var r;if(r=C.params.followFinger?C.rtl?C.translate:-C.translate:-I,C.params.freeMode){if(r<-C.minTranslate())return void C.slideTo(C.activeIndex);if(r>-C.maxTranslate())return void(C.slides.length<C.snapGrid.length?C.slideTo(C.snapGrid.length-1):C.slideTo(C.slides.length-1));if(C.params.freeModeMomentum){if(N.length>1){var n=N.pop(),s=N.pop(),o=n.position-s.position,l=n.time-s.time;C.velocity=o/l,C.velocity=C.velocity/2,Math.abs(C.velocity)<C.params.freeModeMinimumVelocity&&(C.velocity=0),(l>150||(new window.Date).getTime()-n.time>300)&&(C.velocity=0)}else C.velocity=0;C.velocity=C.velocity*C.params.freeModeMomentumVelocityRatio,N.length=0;var d=1e3*C.params.freeModeMomentumRatio,p=C.velocity*d,u=C.translate+p;C.rtl&&(u=-u);var c,h=!1,m=20*Math.abs(C.velocity)*C.params.freeModeMomentumBounceRatio;if(u<C.maxTranslate())C.params.freeModeMomentumBounce?(u+C.maxTranslate()<-m&&(u=C.maxTranslate()-m),c=C.maxTranslate(),h=!0,A=!0):u=C.maxTranslate();else if(u>C.minTranslate())C.params.freeModeMomentumBounce?(u-C.minTranslate()>m&&(u=C.minTranslate()+m),c=C.minTranslate(),h=!0,A=!0):u=C.minTranslate();else if(C.params.freeModeSticky){var f,g=0;for(g=0;g<C.snapGrid.length;g+=1)if(C.snapGrid[g]>-u){f=g;break}u=Math.abs(C.snapGrid[f]-u)<Math.abs(C.snapGrid[f-1]-u)||"next"===C.swipeDirection?C.snapGrid[f]:C.snapGrid[f-1],C.rtl||(u=-u)}if(0!==C.velocity)d=C.rtl?Math.abs((-u-C.translate)/C.velocity):Math.abs((u-C.translate)/C.velocity);else if(C.params.freeModeSticky)return void C.slideReset();C.params.freeModeMomentumBounce&&h?(C.updateProgress(c),C.setWrapperTransition(d),C.setWrapperTranslate(u),C.onTransitionStart(),C.animating=!0,C.wrapper.transitionEnd(function(){C&&A&&(C.emit("onMomentumBounce",C),C.setWrapperTransition(C.params.speed),C.setWrapperTranslate(c),C.wrapper.transitionEnd(function(){C&&C.onTransitionEnd()}))})):C.velocity?(C.updateProgress(u),C.setWrapperTransition(d),C.setWrapperTranslate(u),C.onTransitionStart(),C.animating||(C.animating=!0,C.wrapper.transitionEnd(function(){C&&C.onTransitionEnd()}))):C.updateProgress(u),C.updateActiveIndex()}return void((!C.params.freeModeMomentum||i>=C.params.longSwipesMs)&&(C.updateProgress(),C.updateActiveIndex()))}var v,y=0,w=C.slidesSizesGrid[0];for(v=0;v<C.slidesGrid.length;v+=C.params.slidesPerGroup)"undefined"!=typeof C.slidesGrid[v+C.params.slidesPerGroup]?r>=C.slidesGrid[v]&&r<C.slidesGrid[v+C.params.slidesPerGroup]&&(y=v,w=C.slidesGrid[v+C.params.slidesPerGroup]-C.slidesGrid[v]):r>=C.slidesGrid[v]&&(y=v,w=C.slidesGrid[C.slidesGrid.length-1]-C.slidesGrid[C.slidesGrid.length-2]);var b=(r-C.slidesGrid[y])/w;if(i>C.params.longSwipesMs){if(!C.params.longSwipes)return void C.slideTo(C.activeIndex);"next"===C.swipeDirection&&(b>=C.params.longSwipesRatio?C.slideTo(y+C.params.slidesPerGroup):C.slideTo(y)),"prev"===C.swipeDirection&&(b>1-C.params.longSwipesRatio?C.slideTo(y+C.params.slidesPerGroup):C.slideTo(y))}else{if(!C.params.shortSwipes)return void C.slideTo(C.activeIndex);"next"===C.swipeDirection&&C.slideTo(y+C.params.slidesPerGroup),"prev"===C.swipeDirection&&C.slideTo(y)}}},C._slideTo=function(e,t){return C.slideTo(e,t,!0,!0)},C.slideTo=function(e,t,a,i){"undefined"==typeof a&&(a=!0),"undefined"==typeof e&&(e=0),e<0&&(e=0),C.snapIndex=Math.floor(e/C.params.slidesPerGroup),C.snapIndex>=C.snapGrid.length&&(C.snapIndex=C.snapGrid.length-1);var r=-C.snapGrid[C.snapIndex];if(C.params.autoplay&&C.autoplaying&&(i||!C.params.autoplayDisableOnInteraction?C.pauseAutoplay(t):C.stopAutoplay()),C.updateProgress(r),C.params.normalizeSlideIndex)for(var n=0;n<C.slidesGrid.length;n++)-Math.floor(100*r)>=Math.floor(100*C.slidesGrid[n])&&(e=n);return!(!C.params.allowSwipeToNext&&r<C.translate&&r<C.minTranslate())&&(!(!C.params.allowSwipeToPrev&&r>C.translate&&r>C.maxTranslate()&&(C.activeIndex||0)!==e)&&("undefined"==typeof t&&(t=C.params.speed),C.previousIndex=C.activeIndex||0,C.activeIndex=e,C.updateRealIndex(),C.rtl&&-r===C.translate||!C.rtl&&r===C.translate?(C.params.autoHeight&&C.updateAutoHeight(),C.updateClasses(),"slide"!==C.params.effect&&C.setWrapperTranslate(r),!1):(C.updateClasses(),C.onTransitionStart(a),0===t||C.browser.lteIE9?(C.setWrapperTranslate(r),C.setWrapperTransition(0),C.onTransitionEnd(a)):(C.setWrapperTranslate(r),C.setWrapperTransition(t),C.animating||(C.animating=!0,C.wrapper.transitionEnd(function(){C&&C.onTransitionEnd(a)}))),!0)))},C.onTransitionStart=function(e){"undefined"==typeof e&&(e=!0),C.params.autoHeight&&C.updateAutoHeight(),C.lazy&&C.lazy.onTransitionStart(),e&&(C.emit("onTransitionStart",C),C.activeIndex!==C.previousIndex&&(C.emit("onSlideChangeStart",C),C.activeIndex>C.previousIndex?C.emit("onSlideNextStart",C):C.emit("onSlidePrevStart",C)))},C.onTransitionEnd=function(e){C.animating=!1,C.setWrapperTransition(0),"undefined"==typeof e&&(e=!0),C.lazy&&C.lazy.onTransitionEnd(),e&&(C.emit("onTransitionEnd",C),C.activeIndex!==C.previousIndex&&(C.emit("onSlideChangeEnd",C),C.activeIndex>C.previousIndex?C.emit("onSlideNextEnd",C):C.emit("onSlidePrevEnd",C))),C.params.history&&C.history&&C.history.setHistory(C.params.history,C.activeIndex),C.params.hashnav&&C.hashnav&&C.hashnav.setHash()},C.slideNext=function(e,t,a){if(C.params.loop){if(C.animating)return!1;C.fixLoop();C.container[0].clientLeft;return C.slideTo(C.activeIndex+C.params.slidesPerGroup,t,e,a)}return C.slideTo(C.activeIndex+C.params.slidesPerGroup,t,e,a)},C._slideNext=function(e){return C.slideNext(!0,e,!0)},C.slidePrev=function(e,t,a){if(C.params.loop){if(C.animating)return!1;C.fixLoop();C.container[0].clientLeft;return C.slideTo(C.activeIndex-1,t,e,a)}return C.slideTo(C.activeIndex-1,t,e,a)},C._slidePrev=function(e){return C.slidePrev(!0,e,!0)},C.slideReset=function(e,t,a){return C.slideTo(C.activeIndex,t,e)},C.disableTouchControl=function(){return C.params.onlyExternal=!0,!0},C.enableTouchControl=function(){return C.params.onlyExternal=!1,!0},C.setWrapperTransition=function(e,t){C.wrapper.transition(e),"slide"!==C.params.effect&&C.effects[C.params.effect]&&C.effects[C.params.effect].setTransition(e),C.params.parallax&&C.parallax&&C.parallax.setTransition(e),C.params.scrollbar&&C.scrollbar&&C.scrollbar.setTransition(e),C.params.control&&C.controller&&C.controller.setTransition(e,t),C.emit("onSetTransition",C,e)},C.setWrapperTranslate=function(e,t,a){var i=0,r=0,s=0;C.isHorizontal()?i=C.rtl?-e:e:r=e,C.params.roundLengths&&(i=n(i),r=n(r)),C.params.virtualTranslate||(C.support.transforms3d?C.wrapper.transform("translate3d("+i+"px, "+r+"px, "+s+"px)"):C.wrapper.transform("translate("+i+"px, "+r+"px)")),C.translate=C.isHorizontal()?i:r;var o,l=C.maxTranslate()-C.minTranslate();o=0===l?0:(e-C.minTranslate())/l,o!==C.progress&&C.updateProgress(e),t&&C.updateActiveIndex(),"slide"!==C.params.effect&&C.effects[C.params.effect]&&C.effects[C.params.effect].setTranslate(C.translate),C.params.parallax&&C.parallax&&C.parallax.setTranslate(C.translate),C.params.scrollbar&&C.scrollbar&&C.scrollbar.setTranslate(C.translate),C.params.control&&C.controller&&C.controller.setTranslate(C.translate,a),C.emit("onSetTranslate",C,C.translate)},C.getTranslate=function(e,t){var a,i,r,n;return"undefined"==typeof t&&(t="x"),C.params.virtualTranslate?C.rtl?-C.translate:C.translate:(r=window.getComputedStyle(e,null),window.WebKitCSSMatrix?(i=r.transform||r.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map(function(e){return e.replace(",",".")}).join(", ")),n=new window.WebKitCSSMatrix("none"===i?"":i)):(n=r.MozTransform||r.OTransform||r.MsTransform||r.msTransform||r.transform||r.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),a=n.toString().split(",")),"x"===t&&(i=window.WebKitCSSMatrix?n.m41:16===a.length?parseFloat(a[12]):parseFloat(a[4])),"y"===t&&(i=window.WebKitCSSMatrix?n.m42:16===a.length?parseFloat(a[13]):parseFloat(a[5])),C.rtl&&i&&(i=-i),i||0)},C.getWrapperTranslate=function(e){return"undefined"==typeof e&&(e=C.isHorizontal()?"x":"y"),C.getTranslate(C.wrapper[0],e)},C.observers=[],C.initObservers=function(){if(C.params.observeParents)for(var e=C.container.parents(),t=0;t<e.length;t++)l(e[t]);l(C.container[0],{childList:!1}),l(C.wrapper[0],{attributes:!1})},C.disconnectObservers=function(){for(var e=0;e<C.observers.length;e++)C.observers[e].disconnect();C.observers=[]},C.createLoop=function(){C.wrapper.children("."+C.params.slideClass+"."+C.params.slideDuplicateClass).remove();var e=C.wrapper.children("."+C.params.slideClass);"auto"!==C.params.slidesPerView||C.params.loopedSlides||(C.params.loopedSlides=e.length),C.loopedSlides=parseInt(C.params.loopedSlides||C.params.slidesPerView,10),C.loopedSlides=C.loopedSlides+C.params.loopAdditionalSlides,C.loopedSlides>e.length&&(C.loopedSlides=e.length);var a,i=[],r=[];for(e.each(function(a,n){var s=t(this);a<C.loopedSlides&&r.push(n),a<e.length&&a>=e.length-C.loopedSlides&&i.push(n),s.attr("data-swiper-slide-index",a)}),a=0;a<r.length;a++)C.wrapper.append(t(r[a].cloneNode(!0)).addClass(C.params.slideDuplicateClass));for(a=i.length-1;a>=0;a--)C.wrapper.prepend(t(i[a].cloneNode(!0)).addClass(C.params.slideDuplicateClass))},C.destroyLoop=function(){C.wrapper.children("."+C.params.slideClass+"."+C.params.slideDuplicateClass).remove(),C.slides.removeAttr("data-swiper-slide-index")},C.reLoop=function(e){var t=C.activeIndex-C.loopedSlides;C.destroyLoop(),C.createLoop(),C.updateSlidesSize(),e&&C.slideTo(t+C.loopedSlides,0,!1)},C.fixLoop=function(){var e;C.activeIndex<C.loopedSlides?(e=C.slides.length-3*C.loopedSlides+C.activeIndex,e+=C.loopedSlides,C.slideTo(e,0,!1,!0)):("auto"===C.params.slidesPerView&&C.activeIndex>=2*C.loopedSlides||C.activeIndex>C.slides.length-2*C.params.slidesPerView)&&(e=-C.slides.length+C.activeIndex+C.loopedSlides,e+=C.loopedSlides,C.slideTo(e,0,!1,!0))},C.appendSlide=function(e){if(C.params.loop&&C.destroyLoop(),"object"==typeof e&&e.length)for(var t=0;t<e.length;t++)e[t]&&C.wrapper.append(e[t]);else C.wrapper.append(e);C.params.loop&&C.createLoop(),C.params.observer&&C.support.observer||C.update(!0)},C.prependSlide=function(e){C.params.loop&&C.destroyLoop();var t=C.activeIndex+1;if("object"==typeof e&&e.length){for(var a=0;a<e.length;a++)e[a]&&C.wrapper.prepend(e[a]);t=C.activeIndex+e.length}else C.wrapper.prepend(e);C.params.loop&&C.createLoop(),C.params.observer&&C.support.observer||C.update(!0),C.slideTo(t,0,!1)},C.removeSlide=function(e){C.params.loop&&(C.destroyLoop(),C.slides=C.wrapper.children("."+C.params.slideClass));var t,a=C.activeIndex;if("object"==typeof e&&e.length){for(var i=0;i<e.length;i++)t=e[i],C.slides[t]&&C.slides.eq(t).remove(),t<a&&a--;a=Math.max(a,0)}else t=e,C.slides[t]&&C.slides.eq(t).remove(),t<a&&a--,a=Math.max(a,0);C.params.loop&&C.createLoop(),C.params.observer&&C.support.observer||C.update(!0),C.params.loop?C.slideTo(a+C.loopedSlides,0,!1):C.slideTo(a,0,!1)},C.removeAllSlides=function(){for(var e=[],t=0;t<C.slides.length;t++)e.push(t);C.removeSlide(e)},C.effects={fade:{setTranslate:function(){for(var e=0;e<C.slides.length;e++){var t=C.slides.eq(e),a=t[0].swiperSlideOffset,i=-a;C.params.virtualTranslate||(i-=C.translate);var r=0;C.isHorizontal()||(r=i,i=0);var n=C.params.fade.crossFade?Math.max(1-Math.abs(t[0].progress),0):1+Math.min(Math.max(t[0].progress,-1),0);t.css({opacity:n}).transform("translate3d("+i+"px, "+r+"px, 0px)")}},setTransition:function(e){if(C.slides.transition(e),C.params.virtualTranslate&&0!==e){var t=!1;C.slides.transitionEnd(function(){if(!t&&C){t=!0,C.animating=!1;for(var e=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],a=0;a<e.length;a++)C.wrapper.trigger(e[a])}})}}},flip:{setTranslate:function(){for(var e=0;e<C.slides.length;e++){var a=C.slides.eq(e),i=a[0].progress;C.params.flip.limitRotation&&(i=Math.max(Math.min(a[0].progress,1),-1));var r=a[0].swiperSlideOffset,n=-180*i,s=n,o=0,l=-r,d=0;if(C.isHorizontal()?C.rtl&&(s=-s):(d=l,l=0,o=-s,s=0),a[0].style.zIndex=-Math.abs(Math.round(i))+C.slides.length,C.params.flip.slideShadows){var p=C.isHorizontal()?a.find(".swiper-slide-shadow-left"):a.find(".swiper-slide-shadow-top"),u=C.isHorizontal()?a.find(".swiper-slide-shadow-right"):a.find(".swiper-slide-shadow-bottom");0===p.length&&(p=t('<div class="swiper-slide-shadow-'+(C.isHorizontal()?"left":"top")+'"></div>'),a.append(p)),0===u.length&&(u=t('<div class="swiper-slide-shadow-'+(C.isHorizontal()?"right":"bottom")+'"></div>'),a.append(u)),p.length&&(p[0].style.opacity=Math.max(-i,0)),u.length&&(u[0].style.opacity=Math.max(i,0))}a.transform("translate3d("+l+"px, "+d+"px, 0px) rotateX("+o+"deg) rotateY("+s+"deg)")}},setTransition:function(e){if(C.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),C.params.virtualTranslate&&0!==e){var a=!1;C.slides.eq(C.activeIndex).transitionEnd(function(){if(!a&&C&&t(this).hasClass(C.params.slideActiveClass)){a=!0,C.animating=!1;for(var e=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],i=0;i<e.length;i++)C.wrapper.trigger(e[i])}})}}},cube:{setTranslate:function(){var e,a=0;C.params.cube.shadow&&(C.isHorizontal()?(e=C.wrapper.find(".swiper-cube-shadow"),0===e.length&&(e=t('<div class="swiper-cube-shadow"></div>'),C.wrapper.append(e)),e.css({height:C.width+"px"})):(e=C.container.find(".swiper-cube-shadow"),0===e.length&&(e=t('<div class="swiper-cube-shadow"></div>'),C.container.append(e))));for(var i=0;i<C.slides.length;i++){var r=C.slides.eq(i),n=90*i,s=Math.floor(n/360);C.rtl&&(n=-n,s=Math.floor(-n/360));var o=Math.max(Math.min(r[0].progress,1),-1),l=0,d=0,p=0;i%4===0?(l=4*-s*C.size,p=0):(i-1)%4===0?(l=0,p=4*-s*C.size):(i-2)%4===0?(l=C.size+4*s*C.size,p=C.size):(i-3)%4===0&&(l=-C.size,p=3*C.size+4*C.size*s),C.rtl&&(l=-l),C.isHorizontal()||(d=l,l=0);var u="rotateX("+(C.isHorizontal()?0:-n)+"deg) rotateY("+(C.isHorizontal()?n:0)+"deg) translate3d("+l+"px, "+d+"px, "+p+"px)";if(o<=1&&o>-1&&(a=90*i+90*o,C.rtl&&(a=90*-i-90*o)),r.transform(u),C.params.cube.slideShadows){var c=C.isHorizontal()?r.find(".swiper-slide-shadow-left"):r.find(".swiper-slide-shadow-top"),h=C.isHorizontal()?r.find(".swiper-slide-shadow-right"):r.find(".swiper-slide-shadow-bottom");0===c.length&&(c=t('<div class="swiper-slide-shadow-'+(C.isHorizontal()?"left":"top")+'"></div>'),r.append(c)),0===h.length&&(h=t('<div class="swiper-slide-shadow-'+(C.isHorizontal()?"right":"bottom")+'"></div>'),r.append(h)),c.length&&(c[0].style.opacity=Math.max(-o,0)),h.length&&(h[0].style.opacity=Math.max(o,0))}}if(C.wrapper.css({"-webkit-transform-origin":"50% 50% -"+C.size/2+"px","-moz-transform-origin":"50% 50% -"+C.size/2+"px","-ms-transform-origin":"50% 50% -"+C.size/2+"px","transform-origin":"50% 50% -"+C.size/2+"px"}),C.params.cube.shadow)if(C.isHorizontal())e.transform("translate3d(0px, "+(C.width/2+C.params.cube.shadowOffset)+"px, "+-C.width/2+"px) rotateX(90deg) rotateZ(0deg) scale("+C.params.cube.shadowScale+")");else{var m=Math.abs(a)-90*Math.floor(Math.abs(a)/90),f=1.5-(Math.sin(2*m*Math.PI/360)/2+Math.cos(2*m*Math.PI/360)/2),g=C.params.cube.shadowScale,v=C.params.cube.shadowScale/f,y=C.params.cube.shadowOffset;e.transform("scale3d("+g+", 1, "+v+") translate3d(0px, "+(C.height/2+y)+"px, "+-C.height/2/v+"px) rotateX(-90deg)")}var w=C.isSafari||C.isUiWebView?-C.size/2:0;C.wrapper.transform("translate3d(0px,0,"+w+"px) rotateX("+(C.isHorizontal()?0:a)+"deg) rotateY("+(C.isHorizontal()?-a:0)+"deg)")},setTransition:function(e){C.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),C.params.cube.shadow&&!C.isHorizontal()&&C.container.find(".swiper-cube-shadow").transition(e)}},coverflow:{setTranslate:function(){for(var e=C.translate,a=C.isHorizontal()?-e+C.width/2:-e+C.height/2,i=C.isHorizontal()?C.params.coverflow.rotate:-C.params.coverflow.rotate,r=C.params.coverflow.depth,n=0,s=C.slides.length;n<s;n++){var o=C.slides.eq(n),l=C.slidesSizesGrid[n],d=o[0].swiperSlideOffset,p=(a-d-l/2)/l*C.params.coverflow.modifier,u=C.isHorizontal()?i*p:0,c=C.isHorizontal()?0:i*p,h=-r*Math.abs(p),m=C.isHorizontal()?0:C.params.coverflow.stretch*p,f=C.isHorizontal()?C.params.coverflow.stretch*p:0;Math.abs(f)<.001&&(f=0),Math.abs(m)<.001&&(m=0),Math.abs(h)<.001&&(h=0),Math.abs(u)<.001&&(u=0),Math.abs(c)<.001&&(c=0);var g="translate3d("+f+"px,"+m+"px,"+h+"px) rotateX("+c+"deg) rotateY("+u+"deg)";if(o.transform(g),o[0].style.zIndex=-Math.abs(Math.round(p))+1,C.params.coverflow.slideShadows){var v=C.isHorizontal()?o.find(".swiper-slide-shadow-left"):o.find(".swiper-slide-shadow-top"),y=C.isHorizontal()?o.find(".swiper-slide-shadow-right"):o.find(".swiper-slide-shadow-bottom");0===v.length&&(v=t('<div class="swiper-slide-shadow-'+(C.isHorizontal()?"left":"top")+'"></div>'),o.append(v)),0===y.length&&(y=t('<div class="swiper-slide-shadow-'+(C.isHorizontal()?"right":"bottom")+'"></div>'),o.append(y)),v.length&&(v[0].style.opacity=p>0?p:0),y.length&&(y[0].style.opacity=-p>0?-p:0)}}if(C.browser.ie){var w=C.wrapper[0].style;w.perspectiveOrigin=a+"px 50%"}},setTransition:function(e){C.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}}},C.lazy={initialImageLoaded:!1,loadImageInSlide:function(e,a){if("undefined"!=typeof e&&("undefined"==typeof a&&(a=!0),0!==C.slides.length)){var i=C.slides.eq(e),r=i.find("."+C.params.lazyLoadingClass+":not(."+C.params.lazyStatusLoadedClass+"):not(."+C.params.lazyStatusLoadingClass+")");!i.hasClass(C.params.lazyLoadingClass)||i.hasClass(C.params.lazyStatusLoadedClass)||i.hasClass(C.params.lazyStatusLoadingClass)||(r=r.add(i[0])),0!==r.length&&r.each(function(){var e=t(this);e.addClass(C.params.lazyStatusLoadingClass);var r=e.attr("data-background"),n=e.attr("data-src"),s=e.attr("data-srcset"),o=e.attr("data-sizes");C.loadImage(e[0],n||r,s,o,!1,function(){if("undefined"!=typeof C&&null!==C&&C){if(r?(e.css("background-image",'url("'+r+'")'),e.removeAttr("data-background")):(s&&(e.attr("srcset",s),e.removeAttr("data-srcset")),o&&(e.attr("sizes",o),e.removeAttr("data-sizes")),n&&(e.attr("src",n),e.removeAttr("data-src"))),e.addClass(C.params.lazyStatusLoadedClass).removeClass(C.params.lazyStatusLoadingClass),i.find("."+C.params.lazyPreloaderClass+", ."+C.params.preloaderClass).remove(),C.params.loop&&a){var t=i.attr("data-swiper-slide-index");if(i.hasClass(C.params.slideDuplicateClass)){var l=C.wrapper.children('[data-swiper-slide-index="'+t+'"]:not(.'+C.params.slideDuplicateClass+")");C.lazy.loadImageInSlide(l.index(),!1)}else{var d=C.wrapper.children("."+C.params.slideDuplicateClass+'[data-swiper-slide-index="'+t+'"]');C.lazy.loadImageInSlide(d.index(),!1)}}C.emit("onLazyImageReady",C,i[0],e[0])}}),C.emit("onLazyImageLoad",C,i[0],e[0])})}},load:function(){var e,a=C.params.slidesPerView;if("auto"===a&&(a=0),C.lazy.initialImageLoaded||(C.lazy.initialImageLoaded=!0),C.params.watchSlidesVisibility)C.wrapper.children("."+C.params.slideVisibleClass).each(function(){C.lazy.loadImageInSlide(t(this).index())});else if(a>1)for(e=C.activeIndex;e<C.activeIndex+a;e++)C.slides[e]&&C.lazy.loadImageInSlide(e);else C.lazy.loadImageInSlide(C.activeIndex);if(C.params.lazyLoadingInPrevNext)if(a>1||C.params.lazyLoadingInPrevNextAmount&&C.params.lazyLoadingInPrevNextAmount>1){var i=C.params.lazyLoadingInPrevNextAmount,r=a,n=Math.min(C.activeIndex+r+Math.max(i,r),C.slides.length),s=Math.max(C.activeIndex-Math.max(r,i),0);for(e=C.activeIndex+a;e<n;e++)C.slides[e]&&C.lazy.loadImageInSlide(e);for(e=s;e<C.activeIndex;e++)C.slides[e]&&C.lazy.loadImageInSlide(e)}else{var o=C.wrapper.children("."+C.params.slideNextClass);o.length>0&&C.lazy.loadImageInSlide(o.index());var l=C.wrapper.children("."+C.params.slidePrevClass);l.length>0&&C.lazy.loadImageInSlide(l.index())}},onTransitionStart:function(){C.params.lazyLoading&&(C.params.lazyLoadingOnTransitionStart||!C.params.lazyLoadingOnTransitionStart&&!C.lazy.initialImageLoaded)&&C.lazy.load()},onTransitionEnd:function(){C.params.lazyLoading&&!C.params.lazyLoadingOnTransitionStart&&C.lazy.load()}},C.scrollbar={isTouched:!1,setDragPosition:function(e){var t=C.scrollbar,a=C.isHorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageX:e.pageX||e.clientX:"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageY:e.pageY||e.clientY,i=a-t.track.offset()[C.isHorizontal()?"left":"top"]-t.dragSize/2,r=-C.minTranslate()*t.moveDivider,n=-C.maxTranslate()*t.moveDivider;i<r?i=r:i>n&&(i=n),i=-i/t.moveDivider,C.updateProgress(i),C.setWrapperTranslate(i,!0)},dragStart:function(e){var t=C.scrollbar;t.isTouched=!0,e.preventDefault(),e.stopPropagation(),t.setDragPosition(e),clearTimeout(t.dragTimeout),t.track.transition(0),C.params.scrollbarHide&&t.track.css("opacity",1),C.wrapper.transition(100),t.drag.transition(100),C.emit("onScrollbarDragStart",C)},dragMove:function(e){var t=C.scrollbar;t.isTouched&&(e.preventDefault?e.preventDefault():e.returnValue=!1,t.setDragPosition(e),C.wrapper.transition(0),t.track.transition(0),t.drag.transition(0),C.emit("onScrollbarDragMove",C))},dragEnd:function(e){var t=C.scrollbar;t.isTouched&&(t.isTouched=!1,C.params.scrollbarHide&&(clearTimeout(t.dragTimeout),t.dragTimeout=setTimeout(function(){t.track.css("opacity",0),t.track.transition(400)},1e3)),C.emit("onScrollbarDragEnd",C),C.params.scrollbarSnapOnRelease&&C.slideReset())},draggableEvents:function(){return C.params.simulateTouch!==!1||C.support.touch?C.touchEvents:C.touchEventsDesktop}(),enableDraggable:function(){var e=C.scrollbar,a=C.support.touch?e.track:document;t(e.track).on(e.draggableEvents.start,e.dragStart),t(a).on(e.draggableEvents.move,e.dragMove),t(a).on(e.draggableEvents.end,e.dragEnd)},disableDraggable:function(){var e=C.scrollbar,a=C.support.touch?e.track:document;t(e.track).off(e.draggableEvents.start,e.dragStart),t(a).off(e.draggableEvents.move,e.dragMove),t(a).off(e.draggableEvents.end,e.dragEnd)},set:function(){if(C.params.scrollbar){var e=C.scrollbar;e.track=t(C.params.scrollbar),C.params.uniqueNavElements&&"string"==typeof C.params.scrollbar&&e.track.length>1&&1===C.container.find(C.params.scrollbar).length&&(e.track=C.container.find(C.params.scrollbar)),e.drag=e.track.find(".swiper-scrollbar-drag"),0===e.drag.length&&(e.drag=t('<div class="swiper-scrollbar-drag"></div>'),e.track.append(e.drag)),e.drag[0].style.width="",e.drag[0].style.height="",e.trackSize=C.isHorizontal()?e.track[0].offsetWidth:e.track[0].offsetHeight,e.divider=C.size/C.virtualSize,e.moveDivider=e.divider*(e.trackSize/C.size),e.dragSize=e.trackSize*e.divider,C.isHorizontal()?e.drag[0].style.width=e.dragSize+"px":e.drag[0].style.height=e.dragSize+"px",e.divider>=1?e.track[0].style.display="none":e.track[0].style.display="",C.params.scrollbarHide&&(e.track[0].style.opacity=0)}},setTranslate:function(){if(C.params.scrollbar){var e,t=C.scrollbar,a=(C.translate||0,t.dragSize);e=(t.trackSize-t.dragSize)*C.progress,C.rtl&&C.isHorizontal()?(e=-e,e>0?(a=t.dragSize-e,e=0):-e+t.dragSize>t.trackSize&&(a=t.trackSize+e)):e<0?(a=t.dragSize+e,e=0):e+t.dragSize>t.trackSize&&(a=t.trackSize-e),C.isHorizontal()?(C.support.transforms3d?t.drag.transform("translate3d("+e+"px, 0, 0)"):t.drag.transform("translateX("+e+"px)"),t.drag[0].style.width=a+"px"):(C.support.transforms3d?t.drag.transform("translate3d(0px, "+e+"px, 0)"):t.drag.transform("translateY("+e+"px)"),t.drag[0].style.height=a+"px"),C.params.scrollbarHide&&(clearTimeout(t.timeout),t.track[0].style.opacity=1,t.timeout=setTimeout(function(){t.track[0].style.opacity=0,t.track.transition(400)},1e3))}},setTransition:function(e){C.params.scrollbar&&C.scrollbar.drag.transition(e)}},C.controller={LinearSpline:function(e,t){var a=function(){var e,t,a;return function(i,r){for(t=-1,e=i.length;e-t>1;)i[a=e+t>>1]<=r?t=a:e=a;return e}}();this.x=e,this.y=t,this.lastIndex=e.length-1;var i,r;this.x.length;this.interpolate=function(e){return e?(r=a(this.x,e),i=r-1,(e-this.x[i])*(this.y[r]-this.y[i])/(this.x[r]-this.x[i])+this.y[i]):0}},getInterpolateFunction:function(e){C.controller.spline||(C.controller.spline=C.params.loop?new C.controller.LinearSpline(C.slidesGrid,e.slidesGrid):new C.controller.LinearSpline(C.snapGrid,e.snapGrid))},setTranslate:function(e,t){function i(t){e=t.rtl&&"horizontal"===t.params.direction?-C.translate:C.translate,"slide"===C.params.controlBy&&(C.controller.getInterpolateFunction(t),n=-C.controller.spline.interpolate(-e)),n&&"container"!==C.params.controlBy||(r=(t.maxTranslate()-t.minTranslate())/(C.maxTranslate()-C.minTranslate()),n=(e-C.minTranslate())*r+t.minTranslate()),C.params.controlInverse&&(n=t.maxTranslate()-n),t.updateProgress(n),t.setWrapperTranslate(n,!1,C),t.updateActiveIndex()}var r,n,s=C.params.control;if(Array.isArray(s))for(var o=0;o<s.length;o++)s[o]!==t&&s[o]instanceof a&&i(s[o]);else s instanceof a&&t!==s&&i(s)},setTransition:function(e,t){function i(t){t.setWrapperTransition(e,C),0!==e&&(t.onTransitionStart(),t.wrapper.transitionEnd(function(){n&&(t.params.loop&&"slide"===C.params.controlBy&&t.fixLoop(),t.onTransitionEnd())}))}var r,n=C.params.control;if(Array.isArray(n))for(r=0;r<n.length;r++)n[r]!==t&&n[r]instanceof a&&i(n[r]);else n instanceof a&&t!==n&&i(n)}},C.hashnav={onHashCange:function(e,t){var a=document.location.hash.replace("#",""),i=C.slides.eq(C.activeIndex).attr("data-hash");a!==i&&C.slideTo(C.wrapper.children("."+C.params.slideClass+'[data-hash="'+a+'"]').index())},attachEvents:function(e){var a=e?"off":"on";t(window)[a]("hashchange",C.hashnav.onHashCange)},setHash:function(){if(C.hashnav.initialized&&C.params.hashnav)if(C.params.replaceState&&window.history&&window.history.replaceState)window.history.replaceState(null,null,"#"+C.slides.eq(C.activeIndex).attr("data-hash")||"");else{
|
5
|
var e=C.slides.eq(C.activeIndex),t=e.attr("data-hash")||e.attr("data-history");document.location.hash=t||""}},init:function(){if(C.params.hashnav&&!C.params.history){C.hashnav.initialized=!0;var e=document.location.hash.replace("#","");if(e)for(var t=0,a=0,i=C.slides.length;a<i;a++){var r=C.slides.eq(a),n=r.attr("data-hash")||r.attr("data-history");if(n===e&&!r.hasClass(C.params.slideDuplicateClass)){var s=r.index();C.slideTo(s,t,C.params.runCallbacksOnInit,!0)}}C.params.hashnavWatchState&&C.hashnav.attachEvents()}},destroy:function(){C.params.hashnavWatchState&&C.hashnav.attachEvents(!0)}},C.history={init:function(){if(C.params.history){if(!window.history||!window.history.pushState)return C.params.history=!1,void(C.params.hashnav=!0);C.history.initialized=!0,this.paths=this.getPathValues(),(this.paths.key||this.paths.value)&&(this.scrollToSlide(0,this.paths.value,C.params.runCallbacksOnInit),C.params.replaceState||window.addEventListener("popstate",this.setHistoryPopState))}},setHistoryPopState:function(){C.history.paths=C.history.getPathValues(),C.history.scrollToSlide(C.params.speed,C.history.paths.value,!1)},getPathValues:function(){var e=window.location.pathname.slice(1).split("/"),t=e.length,a=e[t-2],i=e[t-1];return{key:a,value:i}},setHistory:function(e,t){if(C.history.initialized&&C.params.history){var a=C.slides.eq(t),i=this.slugify(a.attr("data-history"));window.location.pathname.includes(e)||(i=e+"/"+i),C.params.replaceState?window.history.replaceState(null,null,i):window.history.pushState(null,null,i)}},slugify:function(e){return e.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide:function(e,t,a){if(t)for(var i=0,r=C.slides.length;i<r;i++){var n=C.slides.eq(i),s=this.slugify(n.attr("data-history"));if(s===t&&!n.hasClass(C.params.slideDuplicateClass)){var o=n.index();C.slideTo(o,e,a)}}else C.slideTo(0,e,a)}},C.disableKeyboardControl=function(){C.params.keyboardControl=!1,t(document).off("keydown",d)},C.enableKeyboardControl=function(){C.params.keyboardControl=!0,t(document).on("keydown",d)},C.mousewheel={event:!1,lastScrollTime:(new window.Date).getTime()},C.params.mousewheelControl&&(C.mousewheel.event=navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":p()?"wheel":"mousewheel"),C.disableMousewheelControl=function(){if(!C.mousewheel.event)return!1;var e=C.container;return"container"!==C.params.mousewheelEventsTarged&&(e=t(C.params.mousewheelEventsTarged)),e.off(C.mousewheel.event,c),C.params.mousewheelControl=!1,!0},C.enableMousewheelControl=function(){if(!C.mousewheel.event)return!1;var e=C.container;return"container"!==C.params.mousewheelEventsTarged&&(e=t(C.params.mousewheelEventsTarged)),e.on(C.mousewheel.event,c),C.params.mousewheelControl=!0,!0},C.parallax={setTranslate:function(){C.container.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){h(this,C.progress)}),C.slides.each(function(){var e=t(this);e.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){var t=Math.min(Math.max(e[0].progress,-1),1);h(this,t)})})},setTransition:function(e){"undefined"==typeof e&&(e=C.params.speed),C.container.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){var a=t(this),i=parseInt(a.attr("data-swiper-parallax-duration"),10)||e;0===e&&(i=0),a.transition(i)})}},C.zoom={scale:1,currentScale:1,isScaling:!1,gesture:{slide:void 0,slideWidth:void 0,slideHeight:void 0,image:void 0,imageWrap:void 0,zoomMax:C.params.zoomMax},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0},getDistanceBetweenTouches:function(e){if(e.targetTouches.length<2)return 1;var t=e.targetTouches[0].pageX,a=e.targetTouches[0].pageY,i=e.targetTouches[1].pageX,r=e.targetTouches[1].pageY,n=Math.sqrt(Math.pow(i-t,2)+Math.pow(r-a,2));return n},onGestureStart:function(e){var a=C.zoom;if(!C.support.gestures){if("touchstart"!==e.type||"touchstart"===e.type&&e.targetTouches.length<2)return;a.gesture.scaleStart=a.getDistanceBetweenTouches(e)}return a.gesture.slide&&a.gesture.slide.length||(a.gesture.slide=t(this),0===a.gesture.slide.length&&(a.gesture.slide=C.slides.eq(C.activeIndex)),a.gesture.image=a.gesture.slide.find("img, svg, canvas"),a.gesture.imageWrap=a.gesture.image.parent("."+C.params.zoomContainerClass),a.gesture.zoomMax=a.gesture.imageWrap.attr("data-swiper-zoom")||C.params.zoomMax,0!==a.gesture.imageWrap.length)?(a.gesture.image.transition(0),void(a.isScaling=!0)):void(a.gesture.image=void 0)},onGestureChange:function(e){var t=C.zoom;if(!C.support.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targetTouches.length<2)return;t.gesture.scaleMove=t.getDistanceBetweenTouches(e)}t.gesture.image&&0!==t.gesture.image.length&&(C.support.gestures?t.scale=e.scale*t.currentScale:t.scale=t.gesture.scaleMove/t.gesture.scaleStart*t.currentScale,t.scale>t.gesture.zoomMax&&(t.scale=t.gesture.zoomMax-1+Math.pow(t.scale-t.gesture.zoomMax+1,.5)),t.scale<C.params.zoomMin&&(t.scale=C.params.zoomMin+1-Math.pow(C.params.zoomMin-t.scale+1,.5)),t.gesture.image.transform("translate3d(0,0,0) scale("+t.scale+")"))},onGestureEnd:function(e){var t=C.zoom;!C.support.gestures&&("touchend"!==e.type||"touchend"===e.type&&e.changedTouches.length<2)||t.gesture.image&&0!==t.gesture.image.length&&(t.scale=Math.max(Math.min(t.scale,t.gesture.zoomMax),C.params.zoomMin),t.gesture.image.transition(C.params.speed).transform("translate3d(0,0,0) scale("+t.scale+")"),t.currentScale=t.scale,t.isScaling=!1,1===t.scale&&(t.gesture.slide=void 0))},onTouchStart:function(e,t){var a=e.zoom;a.gesture.image&&0!==a.gesture.image.length&&(a.image.isTouched||("android"===e.device.os&&t.preventDefault(),a.image.isTouched=!0,a.image.touchesStart.x="touchstart"===t.type?t.targetTouches[0].pageX:t.pageX,a.image.touchesStart.y="touchstart"===t.type?t.targetTouches[0].pageY:t.pageY))},onTouchMove:function(e){var t=C.zoom;if(t.gesture.image&&0!==t.gesture.image.length&&(C.allowClick=!1,t.image.isTouched&&t.gesture.slide)){t.image.isMoved||(t.image.width=t.gesture.image[0].offsetWidth,t.image.height=t.gesture.image[0].offsetHeight,t.image.startX=C.getTranslate(t.gesture.imageWrap[0],"x")||0,t.image.startY=C.getTranslate(t.gesture.imageWrap[0],"y")||0,t.gesture.slideWidth=t.gesture.slide[0].offsetWidth,t.gesture.slideHeight=t.gesture.slide[0].offsetHeight,t.gesture.imageWrap.transition(0),C.rtl&&(t.image.startX=-t.image.startX),C.rtl&&(t.image.startY=-t.image.startY));var a=t.image.width*t.scale,i=t.image.height*t.scale;if(!(a<t.gesture.slideWidth&&i<t.gesture.slideHeight)){if(t.image.minX=Math.min(t.gesture.slideWidth/2-a/2,0),t.image.maxX=-t.image.minX,t.image.minY=Math.min(t.gesture.slideHeight/2-i/2,0),t.image.maxY=-t.image.minY,t.image.touchesCurrent.x="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,t.image.touchesCurrent.y="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,!t.image.isMoved&&!t.isScaling){if(C.isHorizontal()&&Math.floor(t.image.minX)===Math.floor(t.image.startX)&&t.image.touchesCurrent.x<t.image.touchesStart.x||Math.floor(t.image.maxX)===Math.floor(t.image.startX)&&t.image.touchesCurrent.x>t.image.touchesStart.x)return void(t.image.isTouched=!1);if(!C.isHorizontal()&&Math.floor(t.image.minY)===Math.floor(t.image.startY)&&t.image.touchesCurrent.y<t.image.touchesStart.y||Math.floor(t.image.maxY)===Math.floor(t.image.startY)&&t.image.touchesCurrent.y>t.image.touchesStart.y)return void(t.image.isTouched=!1)}e.preventDefault(),e.stopPropagation(),t.image.isMoved=!0,t.image.currentX=t.image.touchesCurrent.x-t.image.touchesStart.x+t.image.startX,t.image.currentY=t.image.touchesCurrent.y-t.image.touchesStart.y+t.image.startY,t.image.currentX<t.image.minX&&(t.image.currentX=t.image.minX+1-Math.pow(t.image.minX-t.image.currentX+1,.8)),t.image.currentX>t.image.maxX&&(t.image.currentX=t.image.maxX-1+Math.pow(t.image.currentX-t.image.maxX+1,.8)),t.image.currentY<t.image.minY&&(t.image.currentY=t.image.minY+1-Math.pow(t.image.minY-t.image.currentY+1,.8)),t.image.currentY>t.image.maxY&&(t.image.currentY=t.image.maxY-1+Math.pow(t.image.currentY-t.image.maxY+1,.8)),t.velocity.prevPositionX||(t.velocity.prevPositionX=t.image.touchesCurrent.x),t.velocity.prevPositionY||(t.velocity.prevPositionY=t.image.touchesCurrent.y),t.velocity.prevTime||(t.velocity.prevTime=Date.now()),t.velocity.x=(t.image.touchesCurrent.x-t.velocity.prevPositionX)/(Date.now()-t.velocity.prevTime)/2,t.velocity.y=(t.image.touchesCurrent.y-t.velocity.prevPositionY)/(Date.now()-t.velocity.prevTime)/2,Math.abs(t.image.touchesCurrent.x-t.velocity.prevPositionX)<2&&(t.velocity.x=0),Math.abs(t.image.touchesCurrent.y-t.velocity.prevPositionY)<2&&(t.velocity.y=0),t.velocity.prevPositionX=t.image.touchesCurrent.x,t.velocity.prevPositionY=t.image.touchesCurrent.y,t.velocity.prevTime=Date.now(),t.gesture.imageWrap.transform("translate3d("+t.image.currentX+"px, "+t.image.currentY+"px,0)")}}},onTouchEnd:function(e,t){var a=e.zoom;if(a.gesture.image&&0!==a.gesture.image.length){if(!a.image.isTouched||!a.image.isMoved)return a.image.isTouched=!1,void(a.image.isMoved=!1);a.image.isTouched=!1,a.image.isMoved=!1;var i=300,r=300,n=a.velocity.x*i,s=a.image.currentX+n,o=a.velocity.y*r,l=a.image.currentY+o;0!==a.velocity.x&&(i=Math.abs((s-a.image.currentX)/a.velocity.x)),0!==a.velocity.y&&(r=Math.abs((l-a.image.currentY)/a.velocity.y));var d=Math.max(i,r);a.image.currentX=s,a.image.currentY=l;var p=a.image.width*a.scale,u=a.image.height*a.scale;a.image.minX=Math.min(a.gesture.slideWidth/2-p/2,0),a.image.maxX=-a.image.minX,a.image.minY=Math.min(a.gesture.slideHeight/2-u/2,0),a.image.maxY=-a.image.minY,a.image.currentX=Math.max(Math.min(a.image.currentX,a.image.maxX),a.image.minX),a.image.currentY=Math.max(Math.min(a.image.currentY,a.image.maxY),a.image.minY),a.gesture.imageWrap.transition(d).transform("translate3d("+a.image.currentX+"px, "+a.image.currentY+"px,0)")}},onTransitionEnd:function(e){var t=e.zoom;t.gesture.slide&&e.previousIndex!==e.activeIndex&&(t.gesture.image.transform("translate3d(0,0,0) scale(1)"),t.gesture.imageWrap.transform("translate3d(0,0,0)"),t.gesture.slide=t.gesture.image=t.gesture.imageWrap=void 0,t.scale=t.currentScale=1)},toggleZoom:function(e,a){var i=e.zoom;if(i.gesture.slide||(i.gesture.slide=e.clickedSlide?t(e.clickedSlide):e.slides.eq(e.activeIndex),i.gesture.image=i.gesture.slide.find("img, svg, canvas"),i.gesture.imageWrap=i.gesture.image.parent("."+e.params.zoomContainerClass)),i.gesture.image&&0!==i.gesture.image.length){var r,n,s,o,l,d,p,u,c,h,m,f,g,v,y,w,b,x;"undefined"==typeof i.image.touchesStart.x&&a?(r="touchend"===a.type?a.changedTouches[0].pageX:a.pageX,n="touchend"===a.type?a.changedTouches[0].pageY:a.pageY):(r=i.image.touchesStart.x,n=i.image.touchesStart.y),i.scale&&1!==i.scale?(i.scale=i.currentScale=1,i.gesture.imageWrap.transition(300).transform("translate3d(0,0,0)"),i.gesture.image.transition(300).transform("translate3d(0,0,0) scale(1)"),i.gesture.slide=void 0):(i.scale=i.currentScale=i.gesture.imageWrap.attr("data-swiper-zoom")||e.params.zoomMax,a?(b=i.gesture.slide[0].offsetWidth,x=i.gesture.slide[0].offsetHeight,s=i.gesture.slide.offset().left,o=i.gesture.slide.offset().top,l=s+b/2-r,d=o+x/2-n,c=i.gesture.image[0].offsetWidth,h=i.gesture.image[0].offsetHeight,m=c*i.scale,f=h*i.scale,g=Math.min(b/2-m/2,0),v=Math.min(x/2-f/2,0),y=-g,w=-v,p=l*i.scale,u=d*i.scale,p<g&&(p=g),p>y&&(p=y),u<v&&(u=v),u>w&&(u=w)):(p=0,u=0),i.gesture.imageWrap.transition(300).transform("translate3d("+p+"px, "+u+"px,0)"),i.gesture.image.transition(300).transform("translate3d(0,0,0) scale("+i.scale+")"))}},attachEvents:function(e){var a=e?"off":"on";if(C.params.zoom){var i=(C.slides,!("touchstart"!==C.touchEvents.start||!C.support.passiveListener||!C.params.passiveListeners)&&{passive:!0,capture:!1});C.support.gestures?(C.slides[a]("gesturestart",C.zoom.onGestureStart,i),C.slides[a]("gesturechange",C.zoom.onGestureChange,i),C.slides[a]("gestureend",C.zoom.onGestureEnd,i)):"touchstart"===C.touchEvents.start&&(C.slides[a](C.touchEvents.start,C.zoom.onGestureStart,i),C.slides[a](C.touchEvents.move,C.zoom.onGestureChange,i),C.slides[a](C.touchEvents.end,C.zoom.onGestureEnd,i)),C[a]("touchStart",C.zoom.onTouchStart),C.slides.each(function(e,i){t(i).find("."+C.params.zoomContainerClass).length>0&&t(i)[a](C.touchEvents.move,C.zoom.onTouchMove)}),C[a]("touchEnd",C.zoom.onTouchEnd),C[a]("transitionEnd",C.zoom.onTransitionEnd),C.params.zoomToggle&&C.on("doubleTap",C.zoom.toggleZoom)}},init:function(){C.zoom.attachEvents()},destroy:function(){C.zoom.attachEvents(!0)}},C._plugins=[];for(var R in C.plugins){var B=C.plugins[R](C,C.params[R]);B&&C._plugins.push(B)}return C.callPlugins=function(e){for(var t=0;t<C._plugins.length;t++)e in C._plugins[t]&&C._plugins[t][e](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5])},C.emitterEventListeners={},C.emit=function(e){C.params[e]&&C.params[e](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);var t;if(C.emitterEventListeners[e])for(t=0;t<C.emitterEventListeners[e].length;t++)C.emitterEventListeners[e][t](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);C.callPlugins&&C.callPlugins(e,arguments[1],arguments[2],arguments[3],arguments[4],arguments[5])},C.on=function(e,t){return e=m(e),C.emitterEventListeners[e]||(C.emitterEventListeners[e]=[]),C.emitterEventListeners[e].push(t),C},C.off=function(e,t){var a;if(e=m(e),"undefined"==typeof t)return C.emitterEventListeners[e]=[],C;if(C.emitterEventListeners[e]&&0!==C.emitterEventListeners[e].length){for(a=0;a<C.emitterEventListeners[e].length;a++)C.emitterEventListeners[e][a]===t&&C.emitterEventListeners[e].splice(a,1);return C}},C.once=function(e,t){e=m(e);var a=function(){t(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4]),C.off(e,a)};return C.on(e,a),C},C.a11y={makeFocusable:function(e){return e.attr("tabIndex","0"),e},addRole:function(e,t){return e.attr("role",t),e},addLabel:function(e,t){return e.attr("aria-label",t),e},disable:function(e){return e.attr("aria-disabled",!0),e},enable:function(e){return e.attr("aria-disabled",!1),e},onEnterKey:function(e){13===e.keyCode&&(t(e.target).is(C.params.nextButton)?(C.onClickNext(e),C.isEnd?C.a11y.notify(C.params.lastSlideMessage):C.a11y.notify(C.params.nextSlideMessage)):t(e.target).is(C.params.prevButton)&&(C.onClickPrev(e),C.isBeginning?C.a11y.notify(C.params.firstSlideMessage):C.a11y.notify(C.params.prevSlideMessage)),t(e.target).is("."+C.params.bulletClass)&&t(e.target)[0].click())},liveRegion:t('<span class="'+C.params.notificationClass+'" aria-live="assertive" aria-atomic="true"></span>'),notify:function(e){var t=C.a11y.liveRegion;0!==t.length&&(t.html(""),t.html(e))},init:function(){C.params.nextButton&&C.nextButton&&C.nextButton.length>0&&(C.a11y.makeFocusable(C.nextButton),C.a11y.addRole(C.nextButton,"button"),C.a11y.addLabel(C.nextButton,C.params.nextSlideMessage)),C.params.prevButton&&C.prevButton&&C.prevButton.length>0&&(C.a11y.makeFocusable(C.prevButton),C.a11y.addRole(C.prevButton,"button"),C.a11y.addLabel(C.prevButton,C.params.prevSlideMessage)),t(C.container).append(C.a11y.liveRegion)},initPagination:function(){C.params.pagination&&C.params.paginationClickable&&C.bullets&&C.bullets.length&&C.bullets.each(function(){var e=t(this);C.a11y.makeFocusable(e),C.a11y.addRole(e,"button"),C.a11y.addLabel(e,C.params.paginationBulletMessage.replace(/{{index}}/,e.index()+1))})},destroy:function(){C.a11y.liveRegion&&C.a11y.liveRegion.length>0&&C.a11y.liveRegion.remove()}},C.init=function(){C.params.loop&&C.createLoop(),C.updateContainerSize(),C.updateSlidesSize(),C.updatePagination(),C.params.scrollbar&&C.scrollbar&&(C.scrollbar.set(),C.params.scrollbarDraggable&&C.scrollbar.enableDraggable()),"slide"!==C.params.effect&&C.effects[C.params.effect]&&(C.params.loop||C.updateProgress(),C.effects[C.params.effect].setTranslate()),C.params.loop?C.slideTo(C.params.initialSlide+C.loopedSlides,0,C.params.runCallbacksOnInit):(C.slideTo(C.params.initialSlide,0,C.params.runCallbacksOnInit),0===C.params.initialSlide&&(C.parallax&&C.params.parallax&&C.parallax.setTranslate(),C.lazy&&C.params.lazyLoading&&(C.lazy.load(),C.lazy.initialImageLoaded=!0))),C.attachEvents(),C.params.observer&&C.support.observer&&C.initObservers(),C.params.preloadImages&&!C.params.lazyLoading&&C.preloadImages(),C.params.zoom&&C.zoom&&C.zoom.init(),C.params.autoplay&&C.startAutoplay(),C.params.keyboardControl&&C.enableKeyboardControl&&C.enableKeyboardControl(),C.params.mousewheelControl&&C.enableMousewheelControl&&C.enableMousewheelControl(),C.params.hashnavReplaceState&&(C.params.replaceState=C.params.hashnavReplaceState),C.params.history&&C.history&&C.history.init(),C.params.hashnav&&C.hashnav&&C.hashnav.init(),C.params.a11y&&C.a11y&&C.a11y.init(),C.emit("onInit",C)},C.cleanupStyles=function(){C.container.removeClass(C.classNames.join(" ")).removeAttr("style"),C.wrapper.removeAttr("style"),C.slides&&C.slides.length&&C.slides.removeClass([C.params.slideVisibleClass,C.params.slideActiveClass,C.params.slideNextClass,C.params.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-column").removeAttr("data-swiper-row"),C.paginationContainer&&C.paginationContainer.length&&C.paginationContainer.removeClass(C.params.paginationHiddenClass),C.bullets&&C.bullets.length&&C.bullets.removeClass(C.params.bulletActiveClass),C.params.prevButton&&t(C.params.prevButton).removeClass(C.params.buttonDisabledClass),C.params.nextButton&&t(C.params.nextButton).removeClass(C.params.buttonDisabledClass),C.params.scrollbar&&C.scrollbar&&(C.scrollbar.track&&C.scrollbar.track.length&&C.scrollbar.track.removeAttr("style"),C.scrollbar.drag&&C.scrollbar.drag.length&&C.scrollbar.drag.removeAttr("style"))},C.destroy=function(e,t){C.detachEvents(),C.stopAutoplay(),C.params.scrollbar&&C.scrollbar&&C.params.scrollbarDraggable&&C.scrollbar.disableDraggable(),C.params.loop&&C.destroyLoop(),t&&C.cleanupStyles(),C.disconnectObservers(),C.params.zoom&&C.zoom&&C.zoom.destroy(),C.params.keyboardControl&&C.disableKeyboardControl&&C.disableKeyboardControl(),C.params.mousewheelControl&&C.disableMousewheelControl&&C.disableMousewheelControl(),C.params.a11y&&C.a11y&&C.a11y.destroy(),C.params.history&&!C.params.replaceState&&window.removeEventListener("popstate",C.history.setHistoryPopState),C.params.hashnav&&C.hashnav&&C.hashnav.destroy(),C.emit("onDestroy"),e!==!1&&(C=null)},C.init(),C}};a.prototype={isSafari:function(){var e=window.navigator.userAgent.toLowerCase();return e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0}(),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(window.navigator.userAgent),isArray:function(e){return"[object Array]"===Object.prototype.toString.apply(e)},browser:{ie:window.navigator.pointerEnabled||window.navigator.msPointerEnabled,ieTouch:window.navigator.msPointerEnabled&&window.navigator.msMaxTouchPoints>1||window.navigator.pointerEnabled&&window.navigator.maxTouchPoints>1,lteIE9:function(){var e=document.createElement("div");return e.innerHTML="<!--[if lte IE 9]><i></i><![endif]-->",1===e.getElementsByTagName("i").length}()},device:function(){var e=window.navigator.userAgent,t=e.match(/(Android);?[\s\/]+([\d.]+)?/),a=e.match(/(iPad).*OS\s([\d_]+)/),i=e.match(/(iPod)(.*OS\s([\d_]+))?/),r=!a&&e.match(/(iPhone\sOS|iOS)\s([\d_]+)/);return{ios:a||r||i,android:t}}(),support:{touch:window.Modernizr&&Modernizr.touch===!0||function(){return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)}(),transforms3d:window.Modernizr&&Modernizr.csstransforms3d===!0||function(){var e=document.createElement("div").style;return"webkitPerspective"in e||"MozPerspective"in e||"OPerspective"in e||"MsPerspective"in e||"perspective"in e}(),flexbox:function(){for(var e=document.createElement("div").style,t="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "),a=0;a<t.length;a++)if(t[a]in e)return!0}(),observer:function(){return"MutationObserver"in window||"WebkitMutationObserver"in window}(),passiveListener:function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("testPassiveListener",null,t)}catch(a){}return e}(),gestures:function(){return"ongesturestart"in window}()},plugins:{}};for(var i=(function(){var e=function(e){var t=this,a=0;for(a=0;a<e.length;a++)t[a]=e[a];return t.length=e.length,this},t=function(t,a){var i=[],r=0;if(t&&!a&&t instanceof e)return t;if(t)if("string"==typeof t){var n,s,o=t.trim();if(o.indexOf("<")>=0&&o.indexOf(">")>=0){var l="div";for(0===o.indexOf("<li")&&(l="ul"),0===o.indexOf("<tr")&&(l="tbody"),0!==o.indexOf("<td")&&0!==o.indexOf("<th")||(l="tr"),0===o.indexOf("<tbody")&&(l="table"),0===o.indexOf("<option")&&(l="select"),s=document.createElement(l),s.innerHTML=t,r=0;r<s.childNodes.length;r++)i.push(s.childNodes[r])}else for(n=a||"#"!==t[0]||t.match(/[ .<>:~]/)?(a||document).querySelectorAll(t):[document.getElementById(t.split("#")[1])],r=0;r<n.length;r++)n[r]&&i.push(n[r])}else if(t.nodeType||t===window||t===document)i.push(t);else if(t.length>0&&t[0].nodeType)for(r=0;r<t.length;r++)i.push(t[r]);return new e(i)};return e.prototype={addClass:function(e){if("undefined"==typeof e)return this;for(var t=e.split(" "),a=0;a<t.length;a++)for(var i=0;i<this.length;i++)this[i].classList.add(t[a]);return this},removeClass:function(e){for(var t=e.split(" "),a=0;a<t.length;a++)for(var i=0;i<this.length;i++)this[i].classList.remove(t[a]);return this},hasClass:function(e){return!!this[0]&&this[0].classList.contains(e)},toggleClass:function(e){for(var t=e.split(" "),a=0;a<t.length;a++)for(var i=0;i<this.length;i++)this[i].classList.toggle(t[a]);return this},attr:function(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var a=0;a<this.length;a++)if(2===arguments.length)this[a].setAttribute(e,t);else for(var i in e)this[a][i]=e[i],this[a].setAttribute(i,e[i]);return this},removeAttr:function(e){for(var t=0;t<this.length;t++)this[t].removeAttribute(e);return this},data:function(e,t){if("undefined"!=typeof t){for(var a=0;a<this.length;a++){var i=this[a];i.dom7ElementDataStorage||(i.dom7ElementDataStorage={}),i.dom7ElementDataStorage[e]=t}return this}if(this[0]){var r=this[0].getAttribute("data-"+e);return r?r:this[0].dom7ElementDataStorage&&e in this[0].dom7ElementDataStorage?this[0].dom7ElementDataStorage[e]:void 0}},transform:function(e){for(var t=0;t<this.length;t++){var a=this[t].style;a.webkitTransform=a.MsTransform=a.msTransform=a.MozTransform=a.OTransform=a.transform=e}return this},transition:function(e){"string"!=typeof e&&(e+="ms");for(var t=0;t<this.length;t++){var a=this[t].style;a.webkitTransitionDuration=a.MsTransitionDuration=a.msTransitionDuration=a.MozTransitionDuration=a.OTransitionDuration=a.transitionDuration=e}return this},on:function(e,a,i,r){function n(e){var r=e.target;if(t(r).is(a))i.call(r,e);else for(var n=t(r).parents(),s=0;s<n.length;s++)t(n[s]).is(a)&&i.call(n[s],e)}var s,o,l=e.split(" ");for(s=0;s<this.length;s++)if("function"==typeof a||a===!1)for("function"==typeof a&&(i=arguments[1],r=arguments[2]||!1),o=0;o<l.length;o++)this[s].addEventListener(l[o],i,r);else for(o=0;o<l.length;o++)this[s].dom7LiveListeners||(this[s].dom7LiveListeners=[]),this[s].dom7LiveListeners.push({listener:i,liveListener:n}),this[s].addEventListener(l[o],n,r);return this},off:function(e,t,a,i){for(var r=e.split(" "),n=0;n<r.length;n++)for(var s=0;s<this.length;s++)if("function"==typeof t||t===!1)"function"==typeof t&&(a=arguments[1],i=arguments[2]||!1),this[s].removeEventListener(r[n],a,i);else if(this[s].dom7LiveListeners)for(var o=0;o<this[s].dom7LiveListeners.length;o++)this[s].dom7LiveListeners[o].listener===a&&this[s].removeEventListener(r[n],this[s].dom7LiveListeners[o].liveListener,i);return this},once:function(e,t,a,i){function r(s){a(s),n.off(e,t,r,i)}var n=this;"function"==typeof t&&(t=!1,a=arguments[1],i=arguments[2]),n.on(e,t,r,i)},trigger:function(e,t){for(var a=0;a<this.length;a++){var i;try{i=new window.CustomEvent(e,{detail:t,bubbles:!0,cancelable:!0})}catch(r){i=document.createEvent("Event"),i.initEvent(e,!0,!0),i.detail=t}this[a].dispatchEvent(i)}return this},transitionEnd:function(e){function t(n){if(n.target===this)for(e.call(this,n),a=0;a<i.length;a++)r.off(i[a],t)}var a,i=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],r=this;if(e)for(a=0;a<i.length;a++)r.on(i[a],t);return this},width:function(){return this[0]===window?window.innerWidth:this.length>0?parseFloat(this.css("width")):null},outerWidth:function(e){return this.length>0?e?this[0].offsetWidth+parseFloat(this.css("margin-right"))+parseFloat(this.css("margin-left")):this[0].offsetWidth:null},height:function(){return this[0]===window?window.innerHeight:this.length>0?parseFloat(this.css("height")):null},outerHeight:function(e){return this.length>0?e?this[0].offsetHeight+parseFloat(this.css("margin-top"))+parseFloat(this.css("margin-bottom")):this[0].offsetHeight:null},offset:function(){if(this.length>0){var e=this[0],t=e.getBoundingClientRect(),a=document.body,i=e.clientTop||a.clientTop||0,r=e.clientLeft||a.clientLeft||0,n=window.pageYOffset||e.scrollTop,s=window.pageXOffset||e.scrollLeft;return{top:t.top+n-i,left:t.left+s-r}}return null},css:function(e,t){var a;if(1===arguments.length){if("string"!=typeof e){for(a=0;a<this.length;a++)for(var i in e)this[a].style[i]=e[i];return this}if(this[0])return window.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(a=0;a<this.length;a++)this[a].style[e]=t;return this}return this},each:function(e){for(var t=0;t<this.length;t++)e.call(this[t],t,this[t]);return this},html:function(e){if("undefined"==typeof e)return this[0]?this[0].innerHTML:void 0;for(var t=0;t<this.length;t++)this[t].innerHTML=e;return this},text:function(e){if("undefined"==typeof e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t++)this[t].textContent=e;return this},is:function(a){if(!this[0])return!1;var i,r;if("string"==typeof a){var n=this[0];if(n===document)return a===document;if(n===window)return a===window;if(n.matches)return n.matches(a);if(n.webkitMatchesSelector)return n.webkitMatchesSelector(a);if(n.mozMatchesSelector)return n.mozMatchesSelector(a);if(n.msMatchesSelector)return n.msMatchesSelector(a);for(i=t(a),r=0;r<i.length;r++)if(i[r]===this[0])return!0;return!1}if(a===document)return this[0]===document;if(a===window)return this[0]===window;if(a.nodeType||a instanceof e){for(i=a.nodeType?[a]:a,r=0;r<i.length;r++)if(i[r]===this[0])return!0;return!1}return!1},index:function(){if(this[0]){for(var e=this[0],t=0;null!==(e=e.previousSibling);)1===e.nodeType&&t++;return t}},eq:function(t){if("undefined"==typeof t)return this;var a,i=this.length;return t>i-1?new e([]):t<0?(a=i+t,new e(a<0?[]:[this[a]])):new e([this[t]])},append:function(t){var a,i;for(a=0;a<this.length;a++)if("string"==typeof t){var r=document.createElement("div");for(r.innerHTML=t;r.firstChild;)this[a].appendChild(r.firstChild)}else if(t instanceof e)for(i=0;i<t.length;i++)this[a].appendChild(t[i]);else this[a].appendChild(t);return this},prepend:function(t){var a,i;for(a=0;a<this.length;a++)if("string"==typeof t){var r=document.createElement("div");for(r.innerHTML=t,i=r.childNodes.length-1;i>=0;i--)this[a].insertBefore(r.childNodes[i],this[a].childNodes[0])}else if(t instanceof e)for(i=0;i<t.length;i++)this[a].insertBefore(t[i],this[a].childNodes[0]);else this[a].insertBefore(t,this[a].childNodes[0]);return this},insertBefore:function(e){for(var a=t(e),i=0;i<this.length;i++)if(1===a.length)a[0].parentNode.insertBefore(this[i],a[0]);else if(a.length>1)for(var r=0;r<a.length;r++)a[r].parentNode.insertBefore(this[i].cloneNode(!0),a[r])},insertAfter:function(e){for(var a=t(e),i=0;i<this.length;i++)if(1===a.length)a[0].parentNode.insertBefore(this[i],a[0].nextSibling);else if(a.length>1)for(var r=0;r<a.length;r++)a[r].parentNode.insertBefore(this[i].cloneNode(!0),a[r].nextSibling)},next:function(a){return new e(this.length>0?a?this[0].nextElementSibling&&t(this[0].nextElementSibling).is(a)?[this[0].nextElementSibling]:[]:this[0].nextElementSibling?[this[0].nextElementSibling]:[]:[])},nextAll:function(a){var i=[],r=this[0];if(!r)return new e([]);for(;r.nextElementSibling;){var n=r.nextElementSibling;a?t(n).is(a)&&i.push(n):i.push(n),r=n}return new e(i)},prev:function(a){return new e(this.length>0?a?this[0].previousElementSibling&&t(this[0].previousElementSibling).is(a)?[this[0].previousElementSibling]:[]:this[0].previousElementSibling?[this[0].previousElementSibling]:[]:[])},prevAll:function(a){var i=[],r=this[0];if(!r)return new e([]);for(;r.previousElementSibling;){var n=r.previousElementSibling;a?t(n).is(a)&&i.push(n):i.push(n),r=n}return new e(i)},parent:function(e){for(var a=[],i=0;i<this.length;i++)e?t(this[i].parentNode).is(e)&&a.push(this[i].parentNode):a.push(this[i].parentNode);return t(t.unique(a))},parents:function(e){for(var a=[],i=0;i<this.length;i++)for(var r=this[i].parentNode;r;)e?t(r).is(e)&&a.push(r):a.push(r),r=r.parentNode;return t(t.unique(a))},find:function(t){for(var a=[],i=0;i<this.length;i++)for(var r=this[i].querySelectorAll(t),n=0;n<r.length;n++)a.push(r[n]);return new e(a)},children:function(a){for(var i=[],r=0;r<this.length;r++)for(var n=this[r].childNodes,s=0;s<n.length;s++)a?1===n[s].nodeType&&t(n[s]).is(a)&&i.push(n[s]):1===n[s].nodeType&&i.push(n[s]);return new e(t.unique(i))},remove:function(){for(var e=0;e<this.length;e++)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this},add:function(){var e,a,i=this;for(e=0;e<arguments.length;e++){var r=t(arguments[e]);for(a=0;a<r.length;a++)i[i.length]=r[a],i.length++}return i}},t.fn=e.prototype,t.unique=function(e){for(var t=[],a=0;a<e.length;a++)t.indexOf(e[a])===-1&&t.push(e[a]);return t},t}()),r=["jQuery","Zepto","Dom7"],n=0;n<r.length;n++)window[r[n]]&&e(window[r[n]]);var s;s="undefined"==typeof i?window.Dom7||window.Zepto||window.jQuery:i,s&&("transitionEnd"in s.fn||(s.fn.transitionEnd=function(e){function t(n){if(n.target===this)for(e.call(this,n),a=0;a<i.length;a++)r.off(i[a],t)}var a,i=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],r=this;if(e)for(a=0;a<i.length;a++)r.on(i[a],t);return this}),"transform"in s.fn||(s.fn.transform=function(e){for(var t=0;t<this.length;t++){var a=this[t].style;a.webkitTransform=a.MsTransform=a.msTransform=a.MozTransform=a.OTransform=a.transform=e}return this}),"transition"in s.fn||(s.fn.transition=function(e){"string"!=typeof e&&(e+="ms");for(var t=0;t<this.length;t++){var a=this[t].style;a.webkitTransitionDuration=a.MsTransitionDuration=a.msTransitionDuration=a.MozTransitionDuration=a.OTransitionDuration=a.transitionDuration=e}return this}),"outerWidth"in s.fn||(s.fn.outerWidth=function(e){return this.length>0?e?this[0].offsetWidth+parseFloat(this.css("margin-right"))+parseFloat(this.css("margin-left")):this[0].offsetWidth:null})),window.Swiper=a}(),"undefined"!=typeof module?module.exports=window.Swiper:"function"==typeof define&&define.amd&&define([],function(){"use strict";return window.Swiper}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(e){var t=0,a=Array.prototype.slice;return e.cleanData=function(t){return function(a){var i,r,n;for(n=0;null!=(r=a[n]);n++)try{i=e._data(r,"events"),i&&i.remove&&e(r).triggerHandler("remove")}catch(s){}t(a)}}(e.cleanData),e.widget=function(t,a,i){var r,n,s,o,l={},d=t.split(".")[0];
|
6
|
return t=t.split(".")[1],r=d+"-"+t,i||(i=a,a=e.Widget),e.expr[":"][r.toLowerCase()]=function(t){return!!e.data(t,r)},e[d]=e[d]||{},n=e[d][t],s=e[d][t]=function(e,t){return this._createWidget?void(arguments.length&&this._createWidget(e,t)):new s(e,t)},e.extend(s,n,{version:i.version,_proto:e.extend({},i),_childConstructors:[]}),o=new a,o.options=e.widget.extend({},o.options),e.each(i,function(t,i){return e.isFunction(i)?void(l[t]=function(){var e=function(){return a.prototype[t].apply(this,arguments)},r=function(e){return a.prototype[t].apply(this,e)};return function(){var t,a=this._super,n=this._superApply;return this._super=e,this._superApply=r,t=i.apply(this,arguments),this._super=a,this._superApply=n,t}}()):void(l[t]=i)}),s.prototype=e.widget.extend(o,{widgetEventPrefix:n?o.widgetEventPrefix||t:t},l,{constructor:s,namespace:d,widgetName:t,widgetFullName:r}),n?(e.each(n._childConstructors,function(t,a){var i=a.prototype;e.widget(i.namespace+"."+i.widgetName,s,a._proto)}),delete n._childConstructors):a._childConstructors.push(s),e.widget.bridge(t,s),s},e.widget.extend=function(t){for(var i,r,n=a.call(arguments,1),s=0,o=n.length;s<o;s++)for(i in n[s])r=n[s][i],n[s].hasOwnProperty(i)&&void 0!==r&&(e.isPlainObject(r)?t[i]=e.isPlainObject(t[i])?e.widget.extend({},t[i],r):e.widget.extend({},r):t[i]=r);return t},e.widget.bridge=function(t,i){var r=i.prototype.widgetFullName||t;e.fn[t]=function(n){var s="string"==typeof n,o=a.call(arguments,1),l=this;return s?this.each(function(){var a,i=e.data(this,r);return"instance"===n?(l=i,!1):i?e.isFunction(i[n])&&"_"!==n.charAt(0)?(a=i[n].apply(i,o),a!==i&&void 0!==a?(l=a&&a.jquery?l.pushStack(a.get()):a,!1):void 0):e.error("no such method '"+n+"' for "+t+" widget instance"):e.error("cannot call methods on "+t+" prior to initialization; attempted to call method '"+n+"'")}):(o.length&&(n=e.widget.extend.apply(null,[n].concat(o))),this.each(function(){var t=e.data(this,r);t?(t.option(n||{}),t._init&&t._init()):e.data(this,r,new i(n,this))})),l}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(a,i){i=e(i||this.defaultElement||this)[0],this.element=e(i),this.uuid=t++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=e(),this.hoverable=e(),this.focusable=e(),i!==this&&(e.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===i&&this.destroy()}}),this.document=e(i.style?i.ownerDocument:i.document||i),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this.options=e.widget.extend({},this.options,this._getCreateOptions(),a),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:e.noop,_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData(e.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:e.noop,widget:function(){return this.element},option:function(t,a){var i,r,n,s=t;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof t)if(s={},i=t.split("."),t=i.shift(),i.length){for(r=s[t]=e.widget.extend({},this.options[t]),n=0;n<i.length-1;n++)r[i[n]]=r[i[n]]||{},r=r[i[n]];if(t=i.pop(),1===arguments.length)return void 0===r[t]?null:r[t];r[t]=a}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];s[t]=a}return this._setOptions(s),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return this.options[e]=t,"disabled"===e&&(this.widget().toggleClass(this.widgetFullName+"-disabled",!!t),t&&(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(t,a,i){var r,n=this;"boolean"!=typeof t&&(i=a,a=t,t=!1),i?(a=r=e(a),this.bindings=this.bindings.add(a)):(i=a,a=this.element,r=this.widget()),e.each(i,function(i,s){function o(){if(t||n.options.disabled!==!0&&!e(this).hasClass("ui-state-disabled"))return("string"==typeof s?n[s]:s).apply(n,arguments)}"string"!=typeof s&&(o.guid=s.guid=s.guid||o.guid||e.guid++);var l=i.match(/^([\w:-]*)\s*(.*)$/),d=l[1]+n.eventNamespace,p=l[2];p?r.delegate(p,d,o):a.bind(d,o)})},_off:function(t,a){a=(a||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.unbind(a).undelegate(a),this.bindings=e(this.bindings.not(t).get()),this.focusable=e(this.focusable.not(t).get()),this.hoverable=e(this.hoverable.not(t).get())},_delay:function(e,t){function a(){return("string"==typeof e?i[e]:e).apply(i,arguments)}var i=this;return setTimeout(a,t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){e(t.currentTarget).addClass("ui-state-hover")},mouseleave:function(t){e(t.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){e(t.currentTarget).addClass("ui-state-focus")},focusout:function(t){e(t.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(t,a,i){var r,n,s=this.options[t];if(i=i||{},a=e.Event(a),a.type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),a.target=this.element[0],n=a.originalEvent)for(r in n)r in a||(a[r]=n[r]);return this.element.trigger(a,i),!(e.isFunction(s)&&s.apply(this.element[0],[a].concat(i))===!1||a.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},function(t,a){e.Widget.prototype["_"+t]=function(i,r,n){"string"==typeof r&&(r={effect:r});var s,o=r?r===!0||"number"==typeof r?a:r.effect||a:t;r=r||{},"number"==typeof r&&(r={duration:r}),s=!e.isEmptyObject(r),r.complete=n,r.delay&&i.delay(r.delay),s&&e.effects&&e.effects.effect[o]?i[t](r):o!==t&&i[o]?i[o](r.duration,r.easing,n):i.queue(function(a){e(this)[t](),n&&n.call(i[0]),a()})}}),e.widget}),function(e){"function"==typeof define&&define.amd?define(["jquery","./core"],e):e(jQuery)}(function(e){function t(e){for(var t,a;e.length&&e[0]!==document;){if(t=e.css("position"),("absolute"===t||"relative"===t||"fixed"===t)&&(a=parseInt(e.css("zIndex"),10),!isNaN(a)&&0!==a))return a;e=e.parent()}return 0}function a(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},e.extend(this._defaults,this.regional[""]),this.regional.en=e.extend(!0,{},this.regional[""]),this.regional["en-US"]=e.extend(!0,{},this.regional.en),this.dpDiv=i(e("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function i(t){var a="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.delegate(a,"mouseout",function(){e(this).removeClass("ui-state-hover"),this.className.indexOf("ui-datepicker-prev")!==-1&&e(this).removeClass("ui-datepicker-prev-hover"),this.className.indexOf("ui-datepicker-next")!==-1&&e(this).removeClass("ui-datepicker-next-hover")}).delegate(a,"mouseover",r)}function r(){e.datepicker._isDisabledDatepicker(s.inline?s.dpDiv.parent()[0]:s.input[0])||(e(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),e(this).addClass("ui-state-hover"),this.className.indexOf("ui-datepicker-prev")!==-1&&e(this).addClass("ui-datepicker-prev-hover"),this.className.indexOf("ui-datepicker-next")!==-1&&e(this).addClass("ui-datepicker-next-hover"))}function n(t,a){e.extend(t,a);for(var i in a)null==a[i]&&(t[i]=a[i]);return t}e.extend(e.ui,{datepicker:{version:"1.11.4"}});var s;return e.extend(a.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){return n(this._defaults,e||{}),this},_attachDatepicker:function(t,a){var i,r,n;i=t.nodeName.toLowerCase(),r="div"===i||"span"===i,t.id||(this.uuid+=1,t.id="dp"+this.uuid),n=this._newInst(e(t),r),n.settings=e.extend({},a||{}),"input"===i?this._connectDatepicker(t,n):r&&this._inlineDatepicker(t,n)},_newInst:function(t,a){var r=t[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1");return{id:r,input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:a,dpDiv:a?i(e("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(t,a){var i=e(t);a.append=e([]),a.trigger=e([]),i.hasClass(this.markerClassName)||(this._attachments(i,a),i.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp),this._autoSize(a),e.data(t,"datepicker",a),a.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,a){var i,r,n,s=this._get(a,"appendText"),o=this._get(a,"isRTL");a.append&&a.append.remove(),s&&(a.append=e("<span class='"+this._appendClass+"'>"+s+"</span>"),t[o?"before":"after"](a.append)),t.unbind("focus",this._showDatepicker),a.trigger&&a.trigger.remove(),i=this._get(a,"showOn"),"focus"!==i&&"both"!==i||t.focus(this._showDatepicker),"button"!==i&&"both"!==i||(r=this._get(a,"buttonText"),n=this._get(a,"buttonImage"),a.trigger=e(this._get(a,"buttonImageOnly")?e("<img/>").addClass(this._triggerClass).attr({src:n,alt:r,title:r}):e("<button type='button'></button>").addClass(this._triggerClass).html(n?e("<img/>").attr({src:n,alt:r,title:r}):r)),t[o?"before":"after"](a.trigger),a.trigger.click(function(){return e.datepicker._datepickerShowing&&e.datepicker._lastInput===t[0]?e.datepicker._hideDatepicker():e.datepicker._datepickerShowing&&e.datepicker._lastInput!==t[0]?(e.datepicker._hideDatepicker(),e.datepicker._showDatepicker(t[0])):e.datepicker._showDatepicker(t[0]),!1}))},_autoSize:function(e){if(this._get(e,"autoSize")&&!e.inline){var t,a,i,r,n=new Date(2009,11,20),s=this._get(e,"dateFormat");s.match(/[DM]/)&&(t=function(e){for(a=0,i=0,r=0;r<e.length;r++)e[r].length>a&&(a=e[r].length,i=r);return i},n.setMonth(t(this._get(e,s.match(/MM/)?"monthNames":"monthNamesShort"))),n.setDate(t(this._get(e,s.match(/DD/)?"dayNames":"dayNamesShort"))+20-n.getDay())),e.input.attr("size",this._formatDate(e,n).length)}},_inlineDatepicker:function(t,a){var i=e(t);i.hasClass(this.markerClassName)||(i.addClass(this.markerClassName).append(a.dpDiv),e.data(t,"datepicker",a),this._setDate(a,this._getDefaultDate(a),!0),this._updateDatepicker(a),this._updateAlternate(a),a.settings.disabled&&this._disableDatepicker(t),a.dpDiv.css("display","block"))},_dialogDatepicker:function(t,a,i,r,s){var o,l,d,p,u,c=this._dialogInst;return c||(this.uuid+=1,o="dp"+this.uuid,this._dialogInput=e("<input type='text' id='"+o+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.keydown(this._doKeyDown),e("body").append(this._dialogInput),c=this._dialogInst=this._newInst(this._dialogInput,!1),c.settings={},e.data(this._dialogInput[0],"datepicker",c)),n(c.settings,r||{}),a=a&&a.constructor===Date?this._formatDate(c,a):a,this._dialogInput.val(a),this._pos=s?s.length?s:[s.pageX,s.pageY]:null,this._pos||(l=document.documentElement.clientWidth,d=document.documentElement.clientHeight,p=document.documentElement.scrollLeft||document.body.scrollLeft,u=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[l/2-100+p,d/2-150+u]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),c.settings.onSelect=i,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),e.blockUI&&e.blockUI(this.dpDiv),e.data(this._dialogInput[0],"datepicker",c),this},_destroyDatepicker:function(t){var a,i=e(t),r=e.data(t,"datepicker");i.hasClass(this.markerClassName)&&(a=t.nodeName.toLowerCase(),e.removeData(t,"datepicker"),"input"===a?(r.append.remove(),r.trigger.remove(),i.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):"div"!==a&&"span"!==a||i.removeClass(this.markerClassName).empty(),s===r&&(s=null))},_enableDatepicker:function(t){var a,i,r=e(t),n=e.data(t,"datepicker");r.hasClass(this.markerClassName)&&(a=t.nodeName.toLowerCase(),"input"===a?(t.disabled=!1,n.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==a&&"span"!==a||(i=r.children("."+this._inlineClass),i.children().removeClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=e.map(this._disabledInputs,function(e){return e===t?null:e}))},_disableDatepicker:function(t){var a,i,r=e(t),n=e.data(t,"datepicker");r.hasClass(this.markerClassName)&&(a=t.nodeName.toLowerCase(),"input"===a?(t.disabled=!0,n.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==a&&"span"!==a||(i=r.children("."+this._inlineClass),i.children().addClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=e.map(this._disabledInputs,function(e){return e===t?null:e}),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(e){if(!e)return!1;for(var t=0;t<this._disabledInputs.length;t++)if(this._disabledInputs[t]===e)return!0;return!1},_getInst:function(t){try{return e.data(t,"datepicker")}catch(a){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(t,a,i){var r,s,o,l,d=this._getInst(t);return 2===arguments.length&&"string"==typeof a?"defaults"===a?e.extend({},e.datepicker._defaults):d?"all"===a?e.extend({},d.settings):this._get(d,a):null:(r=a||{},"string"==typeof a&&(r={},r[a]=i),void(d&&(this._curInst===d&&this._hideDatepicker(),s=this._getDateDatepicker(t,!0),o=this._getMinMaxDate(d,"min"),l=this._getMinMaxDate(d,"max"),n(d.settings,r),null!==o&&void 0!==r.dateFormat&&void 0===r.minDate&&(d.settings.minDate=this._formatDate(d,o)),null!==l&&void 0!==r.dateFormat&&void 0===r.maxDate&&(d.settings.maxDate=this._formatDate(d,l)),"disabled"in r&&(r.disabled?this._disableDatepicker(t):this._enableDatepicker(t)),this._attachments(e(t),d),this._autoSize(d),this._setDate(d,s),this._updateAlternate(d),this._updateDatepicker(d))))},_changeDatepicker:function(e,t,a){this._optionDatepicker(e,t,a)},_refreshDatepicker:function(e){var t=this._getInst(e);t&&this._updateDatepicker(t)},_setDateDatepicker:function(e,t){var a=this._getInst(e);a&&(this._setDate(a,t),this._updateDatepicker(a),this._updateAlternate(a))},_getDateDatepicker:function(e,t){var a=this._getInst(e);return a&&!a.inline&&this._setDateFromField(a,t),a?this._getDate(a):null},_doKeyDown:function(t){var a,i,r,n=e.datepicker._getInst(t.target),s=!0,o=n.dpDiv.is(".ui-datepicker-rtl");if(n._keyEvent=!0,e.datepicker._datepickerShowing)switch(t.keyCode){case 9:e.datepicker._hideDatepicker(),s=!1;break;case 13:return r=e("td."+e.datepicker._dayOverClass+":not(."+e.datepicker._currentClass+")",n.dpDiv),r[0]&&e.datepicker._selectDay(t.target,n.selectedMonth,n.selectedYear,r[0]),a=e.datepicker._get(n,"onSelect"),a?(i=e.datepicker._formatDate(n),a.apply(n.input?n.input[0]:null,[i,n])):e.datepicker._hideDatepicker(),!1;case 27:e.datepicker._hideDatepicker();break;case 33:e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(n,"stepBigMonths"):-e.datepicker._get(n,"stepMonths"),"M");break;case 34:e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(n,"stepBigMonths"):+e.datepicker._get(n,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&e.datepicker._clearDate(t.target),s=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&e.datepicker._gotoToday(t.target),s=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,o?1:-1,"D"),s=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(n,"stepBigMonths"):-e.datepicker._get(n,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,-7,"D"),s=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,o?-1:1,"D"),s=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(n,"stepBigMonths"):+e.datepicker._get(n,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,7,"D"),s=t.ctrlKey||t.metaKey;break;default:s=!1}else 36===t.keyCode&&t.ctrlKey?e.datepicker._showDatepicker(this):s=!1;s&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var a,i,r=e.datepicker._getInst(t.target);if(e.datepicker._get(r,"constrainInput"))return a=e.datepicker._possibleChars(e.datepicker._get(r,"dateFormat")),i=String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||i<" "||!a||a.indexOf(i)>-1},_doKeyUp:function(t){var a,i=e.datepicker._getInst(t.target);if(i.input.val()!==i.lastVal)try{a=e.datepicker.parseDate(e.datepicker._get(i,"dateFormat"),i.input?i.input.val():null,e.datepicker._getFormatConfig(i)),a&&(e.datepicker._setDateFromField(i),e.datepicker._updateAlternate(i),e.datepicker._updateDatepicker(i))}catch(r){}return!0},_showDatepicker:function(a){if(a=a.target||a,"input"!==a.nodeName.toLowerCase()&&(a=e("input",a.parentNode)[0]),!e.datepicker._isDisabledDatepicker(a)&&e.datepicker._lastInput!==a){var i,r,s,o,l,d,p;i=e.datepicker._getInst(a),e.datepicker._curInst&&e.datepicker._curInst!==i&&(e.datepicker._curInst.dpDiv.stop(!0,!0),i&&e.datepicker._datepickerShowing&&e.datepicker._hideDatepicker(e.datepicker._curInst.input[0])),r=e.datepicker._get(i,"beforeShow"),s=r?r.apply(a,[a,i]):{},s!==!1&&(n(i.settings,s),i.lastVal=null,e.datepicker._lastInput=a,e.datepicker._setDateFromField(i),e.datepicker._inDialog&&(a.value=""),e.datepicker._pos||(e.datepicker._pos=e.datepicker._findPos(a),e.datepicker._pos[1]+=a.offsetHeight),o=!1,e(a).parents().each(function(){return o|="fixed"===e(this).css("position"),!o}),l={left:e.datepicker._pos[0],top:e.datepicker._pos[1]},e.datepicker._pos=null,i.dpDiv.empty(),i.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),e.datepicker._updateDatepicker(i),l=e.datepicker._checkOffset(i,l,o),i.dpDiv.css({position:e.datepicker._inDialog&&e.blockUI?"static":o?"fixed":"absolute",display:"none",left:l.left+"px",top:l.top+"px"}),i.inline||(d=e.datepicker._get(i,"showAnim"),p=e.datepicker._get(i,"duration"),i.dpDiv.css("z-index",t(e(a))+1),e.datepicker._datepickerShowing=!0,e.effects&&e.effects.effect[d]?i.dpDiv.show(d,e.datepicker._get(i,"showOptions"),p):i.dpDiv[d||"show"](d?p:null),e.datepicker._shouldFocusInput(i)&&i.input.focus(),e.datepicker._curInst=i))}},_updateDatepicker:function(t){this.maxRows=4,s=t,t.dpDiv.empty().append(this._generateHTML(t)),this._attachHandlers(t);var a,i=this._getNumberOfMonths(t),n=i[1],o=17,l=t.dpDiv.find("."+this._dayOverClass+" a");l.length>0&&r.apply(l.get(0)),t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),n>1&&t.dpDiv.addClass("ui-datepicker-multi-"+n).css("width",o*n+"em"),t.dpDiv[(1!==i[0]||1!==i[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),t.dpDiv[(this._get(t,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),t===e.datepicker._curInst&&e.datepicker._datepickerShowing&&e.datepicker._shouldFocusInput(t)&&t.input.focus(),t.yearshtml&&(a=t.yearshtml,setTimeout(function(){a===t.yearshtml&&t.yearshtml&&t.dpDiv.find("select.ui-datepicker-year:first").replaceWith(t.yearshtml),a=t.yearshtml=null},0))},_shouldFocusInput:function(e){return e.input&&e.input.is(":visible")&&!e.input.is(":disabled")&&!e.input.is(":focus")},_checkOffset:function(t,a,i){var r=t.dpDiv.outerWidth(),n=t.dpDiv.outerHeight(),s=t.input?t.input.outerWidth():0,o=t.input?t.input.outerHeight():0,l=document.documentElement.clientWidth+(i?0:e(document).scrollLeft()),d=document.documentElement.clientHeight+(i?0:e(document).scrollTop());return a.left-=this._get(t,"isRTL")?r-s:0,a.left-=i&&a.left===t.input.offset().left?e(document).scrollLeft():0,a.top-=i&&a.top===t.input.offset().top+o?e(document).scrollTop():0,a.left-=Math.min(a.left,a.left+r>l&&l>r?Math.abs(a.left+r-l):0),a.top-=Math.min(a.top,a.top+n>d&&d>n?Math.abs(n+o):0),a},_findPos:function(t){for(var a,i=this._getInst(t),r=this._get(i,"isRTL");t&&("hidden"===t.type||1!==t.nodeType||e.expr.filters.hidden(t));)t=t[r?"previousSibling":"nextSibling"];return a=e(t).offset(),[a.left,a.top]},_hideDatepicker:function(t){var a,i,r,n,s=this._curInst;!s||t&&s!==e.data(t,"datepicker")||this._datepickerShowing&&(a=this._get(s,"showAnim"),i=this._get(s,"duration"),r=function(){e.datepicker._tidyDialog(s)},e.effects&&(e.effects.effect[a]||e.effects[a])?s.dpDiv.hide(a,e.datepicker._get(s,"showOptions"),i,r):s.dpDiv["slideDown"===a?"slideUp":"fadeIn"===a?"fadeOut":"hide"](a?i:null,r),a||r(),this._datepickerShowing=!1,n=this._get(s,"onClose"),n&&n.apply(s.input?s.input[0]:null,[s.input?s.input.val():"",s]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),e.blockUI&&(e.unblockUI(),e("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(e){e.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(t){if(e.datepicker._curInst){var a=e(t.target),i=e.datepicker._getInst(a[0]);(a[0].id===e.datepicker._mainDivId||0!==a.parents("#"+e.datepicker._mainDivId).length||a.hasClass(e.datepicker.markerClassName)||a.closest("."+e.datepicker._triggerClass).length||!e.datepicker._datepickerShowing||e.datepicker._inDialog&&e.blockUI)&&(!a.hasClass(e.datepicker.markerClassName)||e.datepicker._curInst===i)||e.datepicker._hideDatepicker()}},_adjustDate:function(t,a,i){var r=e(t),n=this._getInst(r[0]);this._isDisabledDatepicker(r[0])||(this._adjustInstDate(n,a+("M"===i?this._get(n,"showCurrentAtPos"):0),i),this._updateDatepicker(n))},_gotoToday:function(t){var a,i=e(t),r=this._getInst(i[0]);this._get(r,"gotoCurrent")&&r.currentDay?(r.selectedDay=r.currentDay,r.drawMonth=r.selectedMonth=r.currentMonth,r.drawYear=r.selectedYear=r.currentYear):(a=new Date,r.selectedDay=a.getDate(),r.drawMonth=r.selectedMonth=a.getMonth(),r.drawYear=r.selectedYear=a.getFullYear()),this._notifyChange(r),this._adjustDate(i)},_selectMonthYear:function(t,a,i){var r=e(t),n=this._getInst(r[0]);n["selected"+("M"===i?"Month":"Year")]=n["draw"+("M"===i?"Month":"Year")]=parseInt(a.options[a.selectedIndex].value,10),this._notifyChange(n),this._adjustDate(r)},_selectDay:function(t,a,i,r){var n,s=e(t);e(r).hasClass(this._unselectableClass)||this._isDisabledDatepicker(s[0])||(n=this._getInst(s[0]),n.selectedDay=n.currentDay=e("a",r).html(),n.selectedMonth=n.currentMonth=a,n.selectedYear=n.currentYear=i,this._selectDate(t,this._formatDate(n,n.currentDay,n.currentMonth,n.currentYear)))},_clearDate:function(t){var a=e(t);this._selectDate(a,"")},_selectDate:function(t,a){var i,r=e(t),n=this._getInst(r[0]);a=null!=a?a:this._formatDate(n),n.input&&n.input.val(a),this._updateAlternate(n),i=this._get(n,"onSelect"),i?i.apply(n.input?n.input[0]:null,[a,n]):n.input&&n.input.trigger("change"),n.inline?this._updateDatepicker(n):(this._hideDatepicker(),this._lastInput=n.input[0],"object"!=typeof n.input[0]&&n.input.focus(),this._lastInput=null)},_updateAlternate:function(t){var a,i,r,n=this._get(t,"altField");n&&(a=this._get(t,"altFormat")||this._get(t,"dateFormat"),i=this._getDate(t),r=this.formatDate(a,i,this._getFormatConfig(t)),e(n).each(function(){e(this).val(r)}))},noWeekends:function(e){var t=e.getDay();return[t>0&&t<6,""]},iso8601Week:function(e){var t,a=new Date(e.getTime());return a.setDate(a.getDate()+4-(a.getDay()||7)),t=a.getTime(),a.setMonth(0),a.setDate(1),Math.floor(Math.round((t-a)/864e5)/7)+1},parseDate:function(t,a,i){if(null==t||null==a)throw"Invalid arguments";if(a="object"==typeof a?a.toString():a+"",""===a)return null;var r,n,s,o,l=0,d=(i?i.shortYearCutoff:null)||this._defaults.shortYearCutoff,p="string"!=typeof d?d:(new Date).getFullYear()%100+parseInt(d,10),u=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,c=(i?i.dayNames:null)||this._defaults.dayNames,h=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,m=(i?i.monthNames:null)||this._defaults.monthNames,f=-1,g=-1,v=-1,y=-1,w=!1,b=function(e){var a=r+1<t.length&&t.charAt(r+1)===e;return a&&r++,a},x=function(e){var t=b(e),i="@"===e?14:"!"===e?20:"y"===e&&t?4:"o"===e?3:2,r="y"===e?i:1,n=new RegExp("^\\d{"+r+","+i+"}"),s=a.substring(l).match(n);if(!s)throw"Missing number at position "+l;return l+=s[0].length,parseInt(s[0],10)},C=function(t,i,r){var n=-1,s=e.map(b(t)?r:i,function(e,t){return[[t,e]]}).sort(function(e,t){return-(e[1].length-t[1].length)});if(e.each(s,function(e,t){var i=t[1];if(a.substr(l,i.length).toLowerCase()===i.toLowerCase())return n=t[0],l+=i.length,!1}),n!==-1)return n+1;throw"Unknown name at position "+l},_=function(){if(a.charAt(l)!==t.charAt(r))throw"Unexpected literal at position "+l;l++};for(r=0;r<t.length;r++)if(w)"'"!==t.charAt(r)||b("'")?_():w=!1;else switch(t.charAt(r)){case"d":v=x("d");break;case"D":C("D",u,c);break;case"o":y=x("o");break;case"m":g=x("m");break;case"M":g=C("M",h,m);break;case"y":f=x("y");break;case"@":o=new Date(x("@")),f=o.getFullYear(),g=o.getMonth()+1,v=o.getDate();break;case"!":o=new Date((x("!")-this._ticksTo1970)/1e4),f=o.getFullYear(),g=o.getMonth()+1,v=o.getDate();break;case"'":b("'")?_():w=!0;break;default:_()}if(l<a.length&&(s=a.substr(l),!/^\s+/.test(s)))throw"Extra/unparsed characters found in date: "+s;if(f===-1?f=(new Date).getFullYear():f<100&&(f+=(new Date).getFullYear()-(new Date).getFullYear()%100+(f<=p?0:-100)),y>-1)for(g=1,v=y;;){if(n=this._getDaysInMonth(f,g-1),v<=n)break;g++,v-=n}if(o=this._daylightSavingAdjust(new Date(f,g-1,v)),o.getFullYear()!==f||o.getMonth()+1!==g||o.getDate()!==v)throw"Invalid date";return o},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(e,t,a){if(!t)return"";var i,r=(a?a.dayNamesShort:null)||this._defaults.dayNamesShort,n=(a?a.dayNames:null)||this._defaults.dayNames,s=(a?a.monthNamesShort:null)||this._defaults.monthNamesShort,o=(a?a.monthNames:null)||this._defaults.monthNames,l=function(t){var a=i+1<e.length&&e.charAt(i+1)===t;return a&&i++,a},d=function(e,t,a){var i=""+t;if(l(e))for(;i.length<a;)i="0"+i;return i},p=function(e,t,a,i){return l(e)?i[t]:a[t]},u="",c=!1;if(t)for(i=0;i<e.length;i++)if(c)"'"!==e.charAt(i)||l("'")?u+=e.charAt(i):c=!1;else switch(e.charAt(i)){case"d":u+=d("d",t.getDate(),2);break;case"D":u+=p("D",t.getDay(),r,n);break;case"o":u+=d("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":u+=d("m",t.getMonth()+1,2);break;case"M":u+=p("M",t.getMonth(),s,o);break;case"y":u+=l("y")?t.getFullYear():(t.getYear()%100<10?"0":"")+t.getYear()%100;break;case"@":u+=t.getTime();break;case"!":u+=1e4*t.getTime()+this._ticksTo1970;break;case"'":l("'")?u+="'":c=!0;break;default:u+=e.charAt(i)}return u},_possibleChars:function(e){var t,a="",i=!1,r=function(a){var i=t+1<e.length&&e.charAt(t+1)===a;return i&&t++,i};for(t=0;t<e.length;t++)if(i)"'"!==e.charAt(t)||r("'")?a+=e.charAt(t):i=!1;else switch(e.charAt(t)){case"d":case"m":case"y":case"@":a+="0123456789";break;case"D":case"M":return null;case"'":r("'")?a+="'":i=!0;break;default:a+=e.charAt(t)}return a},_get:function(e,t){return void 0!==e.settings[t]?e.settings[t]:this._defaults[t]},_setDateFromField:function(e,t){if(e.input.val()!==e.lastVal){var a=this._get(e,"dateFormat"),i=e.lastVal=e.input?e.input.val():null,r=this._getDefaultDate(e),n=r,s=this._getFormatConfig(e);try{n=this.parseDate(a,i,s)||r}catch(o){i=t?"":i}e.selectedDay=n.getDate(),e.drawMonth=e.selectedMonth=n.getMonth(),e.drawYear=e.selectedYear=n.getFullYear(),e.currentDay=i?n.getDate():0,e.currentMonth=i?n.getMonth():0,e.currentYear=i?n.getFullYear():0,this._adjustInstDate(e)}},_getDefaultDate:function(e){return this._restrictMinMax(e,this._determineDate(e,this._get(e,"defaultDate"),new Date))},_determineDate:function(t,a,i){var r=function(e){var t=new Date;return t.setDate(t.getDate()+e),t},n=function(a){try{return e.datepicker.parseDate(e.datepicker._get(t,"dateFormat"),a,e.datepicker._getFormatConfig(t))}catch(i){}for(var r=(a.toLowerCase().match(/^c/)?e.datepicker._getDate(t):null)||new Date,n=r.getFullYear(),s=r.getMonth(),o=r.getDate(),l=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,d=l.exec(a);d;){switch(d[2]||"d"){case"d":case"D":o+=parseInt(d[1],10);break;case"w":case"W":o+=7*parseInt(d[1],10);break;case"m":case"M":s+=parseInt(d[1],10),o=Math.min(o,e.datepicker._getDaysInMonth(n,s));break;case"y":case"Y":n+=parseInt(d[1],10),o=Math.min(o,e.datepicker._getDaysInMonth(n,s))}d=l.exec(a)}return new Date(n,s,o)},s=null==a||""===a?i:"string"==typeof a?n(a):"number"==typeof a?isNaN(a)?i:r(a):new Date(a.getTime());return s=s&&"Invalid Date"===s.toString()?i:s,s&&(s.setHours(0),s.setMinutes(0),s.setSeconds(0),s.setMilliseconds(0)),this._daylightSavingAdjust(s)},_daylightSavingAdjust:function(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null},_setDate:function(e,t,a){var i=!t,r=e.selectedMonth,n=e.selectedYear,s=this._restrictMinMax(e,this._determineDate(e,t,new Date));e.selectedDay=e.currentDay=s.getDate(),e.drawMonth=e.selectedMonth=e.currentMonth=s.getMonth(),e.drawYear=e.selectedYear=e.currentYear=s.getFullYear(),r===e.selectedMonth&&n===e.selectedYear||a||this._notifyChange(e),this._adjustInstDate(e),e.input&&e.input.val(i?"":this._formatDate(e))},_getDate:function(e){var t=!e.currentYear||e.input&&""===e.input.val()?null:this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return t},_attachHandlers:function(t){
|
7
|
var a=this._get(t,"stepMonths"),i="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map(function(){var t={prev:function(){e.datepicker._adjustDate(i,-a,"M")},next:function(){e.datepicker._adjustDate(i,+a,"M")},hide:function(){e.datepicker._hideDatepicker()},today:function(){e.datepicker._gotoToday(i)},selectDay:function(){return e.datepicker._selectDay(i,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return e.datepicker._selectMonthYear(i,this,"M"),!1},selectYear:function(){return e.datepicker._selectMonthYear(i,this,"Y"),!1}};e(this).bind(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])})},_generateHTML:function(e){var t,a,i,r,n,s,o,l,d,p,u,c,h,m,f,g,v,y,w,b,x,C,_,k,T,S,D,M,I,z,E,P,A,L,O,N,F,j,R,B=new Date,H=this._daylightSavingAdjust(new Date(B.getFullYear(),B.getMonth(),B.getDate())),Y=this._get(e,"isRTL"),U=this._get(e,"showButtonPanel"),X=this._get(e,"hideIfNoPrevNext"),W=this._get(e,"navigationAsDateFormat"),G=this._getNumberOfMonths(e),q=this._get(e,"showCurrentAtPos"),K=this._get(e,"stepMonths"),V=1!==G[0]||1!==G[1],Z=this._daylightSavingAdjust(e.currentDay?new Date(e.currentYear,e.currentMonth,e.currentDay):new Date(9999,9,9)),Q=this._getMinMaxDate(e,"min"),J=this._getMinMaxDate(e,"max"),$=e.drawMonth-q,ee=e.drawYear;if($<0&&($+=12,ee--),J)for(t=this._daylightSavingAdjust(new Date(J.getFullYear(),J.getMonth()-G[0]*G[1]+1,J.getDate())),t=Q&&t<Q?Q:t;this._daylightSavingAdjust(new Date(ee,$,1))>t;)$--,$<0&&($=11,ee--);for(e.drawMonth=$,e.drawYear=ee,a=this._get(e,"prevText"),a=W?this.formatDate(a,this._daylightSavingAdjust(new Date(ee,$-K,1)),this._getFormatConfig(e)):a,i=this._canAdjustMonth(e,-1,ee,$)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+a+"'><span class='ui-icon ui-icon-circle-triangle-"+(Y?"e":"w")+"'>"+a+"</span></a>":X?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+a+"'><span class='ui-icon ui-icon-circle-triangle-"+(Y?"e":"w")+"'>"+a+"</span></a>",r=this._get(e,"nextText"),r=W?this.formatDate(r,this._daylightSavingAdjust(new Date(ee,$+K,1)),this._getFormatConfig(e)):r,n=this._canAdjustMonth(e,1,ee,$)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+r+"'><span class='ui-icon ui-icon-circle-triangle-"+(Y?"w":"e")+"'>"+r+"</span></a>":X?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+r+"'><span class='ui-icon ui-icon-circle-triangle-"+(Y?"w":"e")+"'>"+r+"</span></a>",s=this._get(e,"currentText"),o=this._get(e,"gotoCurrent")&&e.currentDay?Z:H,s=W?this.formatDate(s,o,this._getFormatConfig(e)):s,l=e.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(e,"closeText")+"</button>",d=U?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(Y?l:"")+(this._isInRange(e,o)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+s+"</button>":"")+(Y?"":l)+"</div>":"",p=parseInt(this._get(e,"firstDay"),10),p=isNaN(p)?0:p,u=this._get(e,"showWeek"),c=this._get(e,"dayNames"),h=this._get(e,"dayNamesMin"),m=this._get(e,"monthNames"),f=this._get(e,"monthNamesShort"),g=this._get(e,"beforeShowDay"),v=this._get(e,"showOtherMonths"),y=this._get(e,"selectOtherMonths"),w=this._getDefaultDate(e),b="",C=0;C<G[0];C++){for(_="",this.maxRows=4,k=0;k<G[1];k++){if(T=this._daylightSavingAdjust(new Date(ee,$,e.selectedDay)),S=" ui-corner-all",D="",V){if(D+="<div class='ui-datepicker-group",G[1]>1)switch(k){case 0:D+=" ui-datepicker-group-first",S=" ui-corner-"+(Y?"right":"left");break;case G[1]-1:D+=" ui-datepicker-group-last",S=" ui-corner-"+(Y?"left":"right");break;default:D+=" ui-datepicker-group-middle",S=""}D+="'>"}for(D+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+S+"'>"+(/all|left/.test(S)&&0===C?Y?n:i:"")+(/all|right/.test(S)&&0===C?Y?i:n:"")+this._generateMonthYearHeader(e,$,ee,Q,J,C>0||k>0,m,f)+"</div><table class='ui-datepicker-calendar'><thead><tr>",M=u?"<th class='ui-datepicker-week-col'>"+this._get(e,"weekHeader")+"</th>":"",x=0;x<7;x++)I=(x+p)%7,M+="<th scope='col'"+((x+p+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+c[I]+"'>"+h[I]+"</span></th>";for(D+=M+"</tr></thead><tbody>",z=this._getDaysInMonth(ee,$),ee===e.selectedYear&&$===e.selectedMonth&&(e.selectedDay=Math.min(e.selectedDay,z)),E=(this._getFirstDayOfMonth(ee,$)-p+7)%7,P=Math.ceil((E+z)/7),A=V&&this.maxRows>P?this.maxRows:P,this.maxRows=A,L=this._daylightSavingAdjust(new Date(ee,$,1-E)),O=0;O<A;O++){for(D+="<tr>",N=u?"<td class='ui-datepicker-week-col'>"+this._get(e,"calculateWeek")(L)+"</td>":"",x=0;x<7;x++)F=g?g.apply(e.input?e.input[0]:null,[L]):[!0,""],j=L.getMonth()!==$,R=j&&!y||!F[0]||Q&&L<Q||J&&L>J,N+="<td class='"+((x+p+6)%7>=5?" ui-datepicker-week-end":"")+(j?" ui-datepicker-other-month":"")+(L.getTime()===T.getTime()&&$===e.selectedMonth&&e._keyEvent||w.getTime()===L.getTime()&&w.getTime()===T.getTime()?" "+this._dayOverClass:"")+(R?" "+this._unselectableClass+" ui-state-disabled":"")+(j&&!v?"":" "+F[1]+(L.getTime()===Z.getTime()?" "+this._currentClass:"")+(L.getTime()===H.getTime()?" ui-datepicker-today":""))+"'"+(j&&!v||!F[2]?"":" title='"+F[2].replace(/'/g,"'")+"'")+(R?"":" data-handler='selectDay' data-event='click' data-month='"+L.getMonth()+"' data-year='"+L.getFullYear()+"'")+">"+(j&&!v?" ":R?"<span class='ui-state-default'>"+L.getDate()+"</span>":"<a class='ui-state-default"+(L.getTime()===H.getTime()?" ui-state-highlight":"")+(L.getTime()===Z.getTime()?" ui-state-active":"")+(j?" ui-priority-secondary":"")+"' href='#'>"+L.getDate()+"</a>")+"</td>",L.setDate(L.getDate()+1),L=this._daylightSavingAdjust(L);D+=N+"</tr>"}$++,$>11&&($=0,ee++),D+="</tbody></table>"+(V?"</div>"+(G[0]>0&&k===G[1]-1?"<div class='ui-datepicker-row-break'></div>":""):""),_+=D}b+=_}return b+=d,e._keyEvent=!1,b},_generateMonthYearHeader:function(e,t,a,i,r,n,s,o){var l,d,p,u,c,h,m,f,g=this._get(e,"changeMonth"),v=this._get(e,"changeYear"),y=this._get(e,"showMonthAfterYear"),w="<div class='ui-datepicker-title'>",b="";if(n||!g)b+="<span class='ui-datepicker-month'>"+s[t]+"</span>";else{for(l=i&&i.getFullYear()===a,d=r&&r.getFullYear()===a,b+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",p=0;p<12;p++)(!l||p>=i.getMonth())&&(!d||p<=r.getMonth())&&(b+="<option value='"+p+"'"+(p===t?" selected='selected'":"")+">"+o[p]+"</option>");b+="</select>"}if(y||(w+=b+(!n&&g&&v?"":" ")),!e.yearshtml)if(e.yearshtml="",n||!v)w+="<span class='ui-datepicker-year'>"+a+"</span>";else{for(u=this._get(e,"yearRange").split(":"),c=(new Date).getFullYear(),h=function(e){var t=e.match(/c[+\-].*/)?a+parseInt(e.substring(1),10):e.match(/[+\-].*/)?c+parseInt(e,10):parseInt(e,10);return isNaN(t)?c:t},m=h(u[0]),f=Math.max(m,h(u[1]||"")),m=i?Math.max(m,i.getFullYear()):m,f=r?Math.min(f,r.getFullYear()):f,e.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";m<=f;m++)e.yearshtml+="<option value='"+m+"'"+(m===a?" selected='selected'":"")+">"+m+"</option>";e.yearshtml+="</select>",w+=e.yearshtml,e.yearshtml=null}return w+=this._get(e,"yearSuffix"),y&&(w+=(!n&&g&&v?"":" ")+b),w+="</div>"},_adjustInstDate:function(e,t,a){var i=e.drawYear+("Y"===a?t:0),r=e.drawMonth+("M"===a?t:0),n=Math.min(e.selectedDay,this._getDaysInMonth(i,r))+("D"===a?t:0),s=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(i,r,n)));e.selectedDay=s.getDate(),e.drawMonth=e.selectedMonth=s.getMonth(),e.drawYear=e.selectedYear=s.getFullYear(),"M"!==a&&"Y"!==a||this._notifyChange(e)},_restrictMinMax:function(e,t){var a=this._getMinMaxDate(e,"min"),i=this._getMinMaxDate(e,"max"),r=a&&t<a?a:t;return i&&r>i?i:r},_notifyChange:function(e){var t=this._get(e,"onChangeMonthYear");t&&t.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])},_getNumberOfMonths:function(e){var t=this._get(e,"numberOfMonths");return null==t?[1,1]:"number"==typeof t?[1,t]:t},_getMinMaxDate:function(e,t){return this._determineDate(e,this._get(e,t+"Date"),null)},_getDaysInMonth:function(e,t){return 32-this._daylightSavingAdjust(new Date(e,t,32)).getDate()},_getFirstDayOfMonth:function(e,t){return new Date(e,t,1).getDay()},_canAdjustMonth:function(e,t,a,i){var r=this._getNumberOfMonths(e),n=this._daylightSavingAdjust(new Date(a,i+(t<0?t:r[0]*r[1]),1));return t<0&&n.setDate(this._getDaysInMonth(n.getFullYear(),n.getMonth())),this._isInRange(e,n)},_isInRange:function(e,t){var a,i,r=this._getMinMaxDate(e,"min"),n=this._getMinMaxDate(e,"max"),s=null,o=null,l=this._get(e,"yearRange");return l&&(a=l.split(":"),i=(new Date).getFullYear(),s=parseInt(a[0],10),o=parseInt(a[1],10),a[0].match(/[+\-].*/)&&(s+=i),a[1].match(/[+\-].*/)&&(o+=i)),(!r||t.getTime()>=r.getTime())&&(!n||t.getTime()<=n.getTime())&&(!s||t.getFullYear()>=s)&&(!o||t.getFullYear()<=o)},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");return t="string"!=typeof t?t:(new Date).getFullYear()%100+parseInt(t,10),{shortYearCutoff:t,dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,a,i){t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);var r=t?"object"==typeof t?t:this._daylightSavingAdjust(new Date(i,a,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),r,this._getFormatConfig(e))}}),e.fn.datepicker=function(t){if(!this.length)return this;e.datepicker.initialized||(e(document).mousedown(e.datepicker._checkExternalClick),e.datepicker.initialized=!0),0===e("#"+e.datepicker._mainDivId).length&&e("body").append(e.datepicker.dpDiv);var a=Array.prototype.slice.call(arguments,1);return"string"!=typeof t||"isDisabled"!==t&&"getDate"!==t&&"widget"!==t?"option"===t&&2===arguments.length&&"string"==typeof arguments[1]?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(a)):this.each(function(){"string"==typeof t?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this].concat(a)):e.datepicker._attachDatepicker(this,t)}):e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(a))},e.datepicker=new a,e.datepicker.initialized=!1,e.datepicker.uuid=(new Date).getTime(),e.datepicker.version="1.11.4",e.datepicker}),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","jquery.ui.widget"],e):"object"==typeof exports?e(require("jquery"),require("./vendor/jquery.ui.widget")):e(window.jQuery)}(function(e){"use strict";function t(t){var a="dragover"===t;return function(i){i.dataTransfer=i.originalEvent&&i.originalEvent.dataTransfer;var r=i.dataTransfer;r&&e.inArray("Files",r.types)!==-1&&this._trigger(t,e.Event(t,{delegatedEvent:i}))!==!1&&(i.preventDefault(),a&&(r.dropEffect="copy"))}}e.support.fileInput=!(new RegExp("(Android (1\\.[0156]|2\\.[01]))|(Windows Phone (OS 7|8\\.0))|(XBLWP)|(ZuneWP)|(WPDesktop)|(w(eb)?OSBrowser)|(webOS)|(Kindle/(1\\.0|2\\.[05]|3\\.0))").test(window.navigator.userAgent)||e('<input type="file">').prop("disabled")),e.support.xhrFileUpload=!(!window.ProgressEvent||!window.FileReader),e.support.xhrFormDataFileUpload=!!window.FormData,e.support.blobSlice=window.Blob&&(Blob.prototype.slice||Blob.prototype.webkitSlice||Blob.prototype.mozSlice),e.widget("blueimp.fileupload",{options:{dropZone:e(document),pasteZone:void 0,fileInput:void 0,replaceFileInput:!0,paramName:void 0,singleFileUploads:!0,limitMultiFileUploads:void 0,limitMultiFileUploadSize:void 0,limitMultiFileUploadSizeOverhead:512,sequentialUploads:!1,limitConcurrentUploads:void 0,forceIframeTransport:!1,redirect:void 0,redirectParamName:void 0,postMessage:void 0,multipart:!0,maxChunkSize:void 0,uploadedBytes:void 0,recalculateProgress:!0,progressInterval:100,bitrateInterval:500,autoUpload:!0,messages:{uploadedBytes:"Uploaded bytes exceed file size"},i18n:function(t,a){return t=this.messages[t]||t.toString(),a&&e.each(a,function(e,a){t=t.replace("{"+e+"}",a)}),t},formData:function(e){return e.serializeArray()},add:function(t,a){return!t.isDefaultPrevented()&&void((a.autoUpload||a.autoUpload!==!1&&e(this).fileupload("option","autoUpload"))&&a.process().done(function(){a.submit()}))},processData:!1,contentType:!1,cache:!1,timeout:0},_specialOptions:["fileInput","dropZone","pasteZone","multipart","forceIframeTransport"],_blobSlice:e.support.blobSlice&&function(){var e=this.slice||this.webkitSlice||this.mozSlice;return e.apply(this,arguments)},_BitrateTimer:function(){this.timestamp=Date.now?Date.now():(new Date).getTime(),this.loaded=0,this.bitrate=0,this.getBitrate=function(e,t,a){var i=e-this.timestamp;return(!this.bitrate||!a||i>a)&&(this.bitrate=(t-this.loaded)*(1e3/i)*8,this.loaded=t,this.timestamp=e),this.bitrate}},_isXHRUpload:function(t){return!t.forceIframeTransport&&(!t.multipart&&e.support.xhrFileUpload||e.support.xhrFormDataFileUpload)},_getFormData:function(t){var a;return"function"===e.type(t.formData)?t.formData(t.form):e.isArray(t.formData)?t.formData:"object"===e.type(t.formData)?(a=[],e.each(t.formData,function(e,t){a.push({name:e,value:t})}),a):[]},_getTotal:function(t){var a=0;return e.each(t,function(e,t){a+=t.size||1}),a},_initProgressObject:function(t){var a={loaded:0,total:0,bitrate:0};t._progress?e.extend(t._progress,a):t._progress=a},_initResponseObject:function(e){var t;if(e._response)for(t in e._response)e._response.hasOwnProperty(t)&&delete e._response[t];else e._response={}},_onProgress:function(t,a){if(t.lengthComputable){var i,r=Date.now?Date.now():(new Date).getTime();if(a._time&&a.progressInterval&&r-a._time<a.progressInterval&&t.loaded!==t.total)return;a._time=r,i=Math.floor(t.loaded/t.total*(a.chunkSize||a._progress.total))+(a.uploadedBytes||0),this._progress.loaded+=i-a._progress.loaded,this._progress.bitrate=this._bitrateTimer.getBitrate(r,this._progress.loaded,a.bitrateInterval),a._progress.loaded=a.loaded=i,a._progress.bitrate=a.bitrate=a._bitrateTimer.getBitrate(r,i,a.bitrateInterval),this._trigger("progress",e.Event("progress",{delegatedEvent:t}),a),this._trigger("progressall",e.Event("progressall",{delegatedEvent:t}),this._progress)}},_initProgressListener:function(t){var a=this,i=t.xhr?t.xhr():e.ajaxSettings.xhr();i.upload&&(e(i.upload).bind("progress",function(e){var i=e.originalEvent;e.lengthComputable=i.lengthComputable,e.loaded=i.loaded,e.total=i.total,a._onProgress(e,t)}),t.xhr=function(){return i})},_isInstanceOf:function(e,t){return Object.prototype.toString.call(t)==="[object "+e+"]"},_initXHRData:function(t){var a,i=this,r=t.files[0],n=t.multipart||!e.support.xhrFileUpload,s="array"===e.type(t.paramName)?t.paramName[0]:t.paramName;t.headers=e.extend({},t.headers),t.contentRange&&(t.headers["Content-Range"]=t.contentRange),n&&!t.blob&&this._isInstanceOf("File",r)||(t.headers["Content-Disposition"]='attachment; filename="'+encodeURI(r.name)+'"'),n?e.support.xhrFormDataFileUpload&&(t.postMessage?(a=this._getFormData(t),t.blob?a.push({name:s,value:t.blob}):e.each(t.files,function(i,r){a.push({name:"array"===e.type(t.paramName)&&t.paramName[i]||s,value:r})})):(i._isInstanceOf("FormData",t.formData)?a=t.formData:(a=new FormData,e.each(this._getFormData(t),function(e,t){a.append(t.name,t.value)})),t.blob?a.append(s,t.blob,r.name):e.each(t.files,function(r,n){(i._isInstanceOf("File",n)||i._isInstanceOf("Blob",n))&&a.append("array"===e.type(t.paramName)&&t.paramName[r]||s,n,n.uploadName||n.name)})),t.data=a):(t.contentType=r.type||"application/octet-stream",t.data=t.blob||r),t.blob=null},_initIframeSettings:function(t){var a=e("<a></a>").prop("href",t.url).prop("host");t.dataType="iframe "+(t.dataType||""),t.formData=this._getFormData(t),t.redirect&&a&&a!==location.host&&t.formData.push({name:t.redirectParamName||"redirect",value:t.redirect})},_initDataSettings:function(e){this._isXHRUpload(e)?(this._chunkedUpload(e,!0)||(e.data||this._initXHRData(e),this._initProgressListener(e)),e.postMessage&&(e.dataType="postmessage "+(e.dataType||""))):this._initIframeSettings(e)},_getParamName:function(t){var a=e(t.fileInput),i=t.paramName;return i?e.isArray(i)||(i=[i]):(i=[],a.each(function(){for(var t=e(this),a=t.prop("name")||"files[]",r=(t.prop("files")||[1]).length;r;)i.push(a),r-=1}),i.length||(i=[a.prop("name")||"files[]"])),i},_initFormSettings:function(t){t.form&&t.form.length||(t.form=e(t.fileInput.prop("form")),t.form.length||(t.form=e(this.options.fileInput.prop("form")))),t.paramName=this._getParamName(t),t.url||(t.url=t.form.prop("action")||location.href),t.type=(t.type||"string"===e.type(t.form.prop("method"))&&t.form.prop("method")||"").toUpperCase(),"POST"!==t.type&&"PUT"!==t.type&&"PATCH"!==t.type&&(t.type="POST"),t.formAcceptCharset||(t.formAcceptCharset=t.form.attr("accept-charset"))},_getAJAXSettings:function(t){var a=e.extend({},this.options,t);return this._initFormSettings(a),this._initDataSettings(a),a},_getDeferredState:function(e){return e.state?e.state():e.isResolved()?"resolved":e.isRejected()?"rejected":"pending"},_enhancePromise:function(e){return e.success=e.done,e.error=e.fail,e.complete=e.always,e},_getXHRPromise:function(t,a,i){var r=e.Deferred(),n=r.promise();return a=a||this.options.context||n,t===!0?r.resolveWith(a,i):t===!1&&r.rejectWith(a,i),n.abort=r.promise,this._enhancePromise(n)},_addConvenienceMethods:function(t,a){var i=this,r=function(t){return e.Deferred().resolveWith(i,t).promise()};a.process=function(t,n){return(t||n)&&(a._processQueue=this._processQueue=(this._processQueue||r([this])).pipe(function(){return a.errorThrown?e.Deferred().rejectWith(i,[a]).promise():r(arguments)}).pipe(t,n)),this._processQueue||r([this])},a.submit=function(){return"pending"!==this.state()&&(a.jqXHR=this.jqXHR=i._trigger("submit",e.Event("submit",{delegatedEvent:t}),this)!==!1&&i._onSend(t,this)),this.jqXHR||i._getXHRPromise()},a.abort=function(){return this.jqXHR?this.jqXHR.abort():(this.errorThrown="abort",i._trigger("fail",null,this),i._getXHRPromise(!1))},a.state=function(){return this.jqXHR?i._getDeferredState(this.jqXHR):this._processQueue?i._getDeferredState(this._processQueue):void 0},a.processing=function(){return!this.jqXHR&&this._processQueue&&"pending"===i._getDeferredState(this._processQueue)},a.progress=function(){return this._progress},a.response=function(){return this._response}},_getUploadedBytes:function(e){var t=e.getResponseHeader("Range"),a=t&&t.split("-"),i=a&&a.length>1&&parseInt(a[1],10);return i&&i+1},_chunkedUpload:function(t,a){t.uploadedBytes=t.uploadedBytes||0;var i,r,n=this,s=t.files[0],o=s.size,l=t.uploadedBytes,d=t.maxChunkSize||o,p=this._blobSlice,u=e.Deferred(),c=u.promise();return!(!(this._isXHRUpload(t)&&p&&(l||d<o))||t.data)&&(!!a||(l>=o?(s.error=t.i18n("uploadedBytes"),this._getXHRPromise(!1,t.context,[null,"error",s.error])):(r=function(){var a=e.extend({},t),c=a._progress.loaded;a.blob=p.call(s,l,l+d,s.type),a.chunkSize=a.blob.size,a.contentRange="bytes "+l+"-"+(l+a.chunkSize-1)+"/"+o,n._initXHRData(a),n._initProgressListener(a),i=(n._trigger("chunksend",null,a)!==!1&&e.ajax(a)||n._getXHRPromise(!1,a.context)).done(function(i,s,d){l=n._getUploadedBytes(d)||l+a.chunkSize,c+a.chunkSize-a._progress.loaded&&n._onProgress(e.Event("progress",{lengthComputable:!0,loaded:l-a.uploadedBytes,total:l-a.uploadedBytes}),a),t.uploadedBytes=a.uploadedBytes=l,a.result=i,a.textStatus=s,a.jqXHR=d,n._trigger("chunkdone",null,a),n._trigger("chunkalways",null,a),l<o?r():u.resolveWith(a.context,[i,s,d])}).fail(function(e,t,i){a.jqXHR=e,a.textStatus=t,a.errorThrown=i,n._trigger("chunkfail",null,a),n._trigger("chunkalways",null,a),u.rejectWith(a.context,[e,t,i])})},this._enhancePromise(c),c.abort=function(){return i.abort()},r(),c)))},_beforeSend:function(e,t){0===this._active&&(this._trigger("start"),this._bitrateTimer=new this._BitrateTimer,this._progress.loaded=this._progress.total=0,this._progress.bitrate=0),this._initResponseObject(t),this._initProgressObject(t),t._progress.loaded=t.loaded=t.uploadedBytes||0,t._progress.total=t.total=this._getTotal(t.files)||1,t._progress.bitrate=t.bitrate=0,this._active+=1,this._progress.loaded+=t.loaded,this._progress.total+=t.total},_onDone:function(t,a,i,r){var n=r._progress.total,s=r._response;r._progress.loaded<n&&this._onProgress(e.Event("progress",{lengthComputable:!0,loaded:n,total:n}),r),s.result=r.result=t,s.textStatus=r.textStatus=a,s.jqXHR=r.jqXHR=i,this._trigger("done",null,r)},_onFail:function(e,t,a,i){var r=i._response;i.recalculateProgress&&(this._progress.loaded-=i._progress.loaded,this._progress.total-=i._progress.total),r.jqXHR=i.jqXHR=e,r.textStatus=i.textStatus=t,r.errorThrown=i.errorThrown=a,this._trigger("fail",null,i)},_onAlways:function(e,t,a,i){this._trigger("always",null,i)},_onSend:function(t,a){a.submit||this._addConvenienceMethods(t,a);var i,r,n,s,o=this,l=o._getAJAXSettings(a),d=function(){return o._sending+=1,l._bitrateTimer=new o._BitrateTimer,i=i||((r||o._trigger("send",e.Event("send",{delegatedEvent:t}),l)===!1)&&o._getXHRPromise(!1,l.context,r)||o._chunkedUpload(l)||e.ajax(l)).done(function(e,t,a){o._onDone(e,t,a,l)}).fail(function(e,t,a){o._onFail(e,t,a,l)}).always(function(e,t,a){if(o._onAlways(e,t,a,l),o._sending-=1,o._active-=1,l.limitConcurrentUploads&&l.limitConcurrentUploads>o._sending)for(var i=o._slots.shift();i;){if("pending"===o._getDeferredState(i)){i.resolve();break}i=o._slots.shift()}0===o._active&&o._trigger("stop")})};return this._beforeSend(t,l),this.options.sequentialUploads||this.options.limitConcurrentUploads&&this.options.limitConcurrentUploads<=this._sending?(this.options.limitConcurrentUploads>1?(n=e.Deferred(),this._slots.push(n),s=n.pipe(d)):(this._sequence=this._sequence.pipe(d,d),s=this._sequence),s.abort=function(){return r=[void 0,"abort","abort"],i?i.abort():(n&&n.rejectWith(l.context,r),d())},this._enhancePromise(s)):d()},_onAdd:function(t,a){var i,r,n,s,o=this,l=!0,d=e.extend({},this.options,a),p=a.files,u=p.length,c=d.limitMultiFileUploads,h=d.limitMultiFileUploadSize,m=d.limitMultiFileUploadSizeOverhead,f=0,g=this._getParamName(d),v=0;if(!u)return!1;if(h&&void 0===p[0].size&&(h=void 0),(d.singleFileUploads||c||h)&&this._isXHRUpload(d))if(d.singleFileUploads||h||!c)if(!d.singleFileUploads&&h)for(n=[],i=[],s=0;s<u;s+=1)f+=p[s].size+m,(s+1===u||f+p[s+1].size+m>h||c&&s+1-v>=c)&&(n.push(p.slice(v,s+1)),r=g.slice(v,s+1),r.length||(r=g),i.push(r),v=s+1,f=0);else i=g;else for(n=[],i=[],s=0;s<u;s+=c)n.push(p.slice(s,s+c)),r=g.slice(s,s+c),r.length||(r=g),i.push(r);else n=[p],i=[g];return a.originalFiles=p,e.each(n||p,function(r,s){var d=e.extend({},a);return d.files=n?s:[s],d.paramName=i[r],o._initResponseObject(d),o._initProgressObject(d),o._addConvenienceMethods(t,d),l=o._trigger("add",e.Event("add",{delegatedEvent:t}),d)}),l},_replaceFileInput:function(t){var a=t.fileInput,i=a.clone(!0),r=a.is(document.activeElement);t.fileInputClone=i,e("<form></form>").append(i)[0].reset(),a.after(i).detach(),r&&i.focus(),e.cleanData(a.unbind("remove")),this.options.fileInput=this.options.fileInput.map(function(e,t){return t===a[0]?i[0]:t}),a[0]===this.element[0]&&(this.element=i)},_handleFileTreeEntry:function(t,a){var i,r=this,n=e.Deferred(),s=function(e){e&&!e.entry&&(e.entry=t),n.resolve([e])},o=function(e){r._handleFileTreeEntries(e,a+t.name+"/").done(function(e){n.resolve(e)}).fail(s)},l=function(){i.readEntries(function(e){e.length?(d=d.concat(e),l()):o(d)},s)},d=[];return a=a||"",t.isFile?t._file?(t._file.relativePath=a,n.resolve(t._file)):t.file(function(e){e.relativePath=a,n.resolve(e)},s):t.isDirectory?(i=t.createReader(),l()):n.resolve([]),n.promise()},_handleFileTreeEntries:function(t,a){var i=this;return e.when.apply(e,e.map(t,function(e){return i._handleFileTreeEntry(e,a)})).pipe(function(){return Array.prototype.concat.apply([],arguments)})},_getDroppedFiles:function(t){t=t||{};var a=t.items;return a&&a.length&&(a[0].webkitGetAsEntry||a[0].getAsEntry)?this._handleFileTreeEntries(e.map(a,function(e){var t;return e.webkitGetAsEntry?(t=e.webkitGetAsEntry(),t&&(t._file=e.getAsFile()),t):e.getAsEntry()})):e.Deferred().resolve(e.makeArray(t.files)).promise()},_getSingleFileInputFiles:function(t){t=e(t);var a,i,r=t.prop("webkitEntries")||t.prop("entries");if(r&&r.length)return this._handleFileTreeEntries(r);if(a=e.makeArray(t.prop("files")),a.length)void 0===a[0].name&&a[0].fileName&&e.each(a,function(e,t){t.name=t.fileName,t.size=t.fileSize});else{if(i=t.prop("value"),!i)return e.Deferred().resolve([]).promise();a=[{name:i.replace(/^.*\\/,"")}]}return e.Deferred().resolve(a).promise()},_getFileInputFiles:function(t){return t instanceof e&&1!==t.length?e.when.apply(e,e.map(t,this._getSingleFileInputFiles)).pipe(function(){return Array.prototype.concat.apply([],arguments)}):this._getSingleFileInputFiles(t)},_onChange:function(t){var a=this,i={fileInput:e(t.target),form:e(t.target.form)};this._getFileInputFiles(i.fileInput).always(function(r){i.files=r,a.options.replaceFileInput&&a._replaceFileInput(i),a._trigger("change",e.Event("change",{delegatedEvent:t}),i)!==!1&&a._onAdd(t,i)})},_onPaste:function(t){var a=t.originalEvent&&t.originalEvent.clipboardData&&t.originalEvent.clipboardData.items,i={files:[]};a&&a.length&&(e.each(a,function(e,t){var a=t.getAsFile&&t.getAsFile();a&&i.files.push(a)}),this._trigger("paste",e.Event("paste",{delegatedEvent:t}),i)!==!1&&this._onAdd(t,i))},_onDrop:function(t){t.dataTransfer=t.originalEvent&&t.originalEvent.dataTransfer;var a=this,i=t.dataTransfer,r={};i&&i.files&&i.files.length&&(t.preventDefault(),this._getDroppedFiles(i).always(function(i){r.files=i,a._trigger("drop",e.Event("drop",{delegatedEvent:t}),r)!==!1&&a._onAdd(t,r)}))},_onDragOver:t("dragover"),_onDragEnter:t("dragenter"),_onDragLeave:t("dragleave"),_initEventHandlers:function(){this._isXHRUpload(this.options)&&(this._on(this.options.dropZone,{dragover:this._onDragOver,drop:this._onDrop,dragenter:this._onDragEnter,dragleave:this._onDragLeave}),this._on(this.options.pasteZone,{paste:this._onPaste})),e.support.fileInput&&this._on(this.options.fileInput,{change:this._onChange})},_destroyEventHandlers:function(){this._off(this.options.dropZone,"dragenter dragleave dragover drop"),this._off(this.options.pasteZone,"paste"),this._off(this.options.fileInput,"change")},_setOption:function(t,a){var i=e.inArray(t,this._specialOptions)!==-1;i&&this._destroyEventHandlers(),this._super(t,a),i&&(this._initSpecialOptions(),this._initEventHandlers())},_initSpecialOptions:function(){var t=this.options;void 0===t.fileInput?t.fileInput=this.element.is('input[type="file"]')?this.element:this.element.find('input[type="file"]'):t.fileInput instanceof e||(t.fileInput=e(t.fileInput)),t.dropZone instanceof e||(t.dropZone=e(t.dropZone)),t.pasteZone instanceof e||(t.pasteZone=e(t.pasteZone))},_getRegExp:function(e){var t=e.split("/"),a=t.pop();return t.shift(),new RegExp(t.join("/"),a)},_isRegExpOption:function(t,a){return"url"!==t&&"string"===e.type(a)&&/^\/.*\/[igm]{0,3}$/.test(a)},_initDataAttributes:function(){var t=this,a=this.options,i=this.element.data();e.each(this.element[0].attributes,function(e,r){var n,s=r.name.toLowerCase();/^data-/.test(s)&&(s=s.slice(5).replace(/-[a-z]/g,function(e){return e.charAt(1).toUpperCase()}),n=i[s],t._isRegExpOption(s,n)&&(n=t._getRegExp(n)),a[s]=n)})},_create:function(){this._initDataAttributes(),this._initSpecialOptions(),this._slots=[],this._sequence=this._getXHRPromise(!0),this._sending=this._active=0,this._initProgressObject(this),this._initEventHandlers()},active:function(){return this._active},progress:function(){return this._progress},add:function(t){var a=this;t&&!this.options.disabled&&(t.fileInput&&!t.files?this._getFileInputFiles(t.fileInput).always(function(e){t.files=e,a._onAdd(null,t)}):(t.files=e.makeArray(t.files),this._onAdd(null,t)))},send:function(t){if(t&&!this.options.disabled){if(t.fileInput&&!t.files){var a,i,r=this,n=e.Deferred(),s=n.promise();return s.abort=function(){return i=!0,a?a.abort():(n.reject(null,"abort","abort"),s)},this._getFileInputFiles(t.fileInput).always(function(e){if(!i){if(!e.length)return void n.reject();t.files=e,a=r._onSend(null,t),a.then(function(e,t,a){n.resolve(e,t,a)},function(e,t,a){n.reject(e,t,a)})}}),this._enhancePromise(s)}if(t.files=e.makeArray(t.files),t.files.length)return this._onSend(null,t)}return this._getXHRPromise(!1,t&&t.context)}})});
|