From cfd07f99fcb89d8b2da3de45b8a3ac16da875c51 Mon Sep 17 00:00:00 2001 From: Rastin Mehr Date: Fri, 29 May 2015 14:12:54 -0700 Subject: [PATCH 1/3] Fixed the comments add bug when comments are paginated. --- packages/Invites/src/media/com_invites/js/min/email.min.js | 2 +- packages/Invites/src/media/com_invites/js/min/facebook.min.js | 2 +- packages/Photos/src/media/com_photos/js/min/organizer.min.js | 2 +- packages/Photos/src/media/com_photos/js/min/photoset.min.js | 2 +- packages/Photos/src/media/com_photos/js/min/upload.min.js | 2 +- .../src/media/com_subscriptions/js/min/coupon.min.js | 2 +- .../src/media/com_subscriptions/js/min/setting.min.js | 2 +- src/media/com_actors/js/min/cover.min.js | 2 +- src/media/com_composer/js/min/composer.min.js | 2 +- src/media/com_search/js/min/search.min.js | 2 +- src/media/lib_anahita/js/anahita/actions/entity.js | 2 +- src/media/lib_anahita/js/anahita/paginator.js | 2 +- src/media/lib_anahita/js/production/site.js | 4 ++-- src/media/lib_anahita/js/production/site.uncompressed.js | 4 ++-- 14 files changed, 16 insertions(+), 16 deletions(-) diff --git a/packages/Invites/src/media/com_invites/js/min/email.min.js b/packages/Invites/src/media/com_invites/js/min/email.min.js index a76bfcd08..9698579c1 100644 --- a/packages/Invites/src/media/com_invites/js/min/email.min.js +++ b/packages/Invites/src/media/com_invites/js/min/email.min.js @@ -1,2 +1,2 @@ -/*! anahita 26-05-2015 */ +/*! anahita 29-05-2015 */ !function(a,b,c){"use strict";a.fn.invitesEmail=function(b){var c=a(this),d=c.find('input[type="email"]');return a.each(d,function(b,d){var e=a(d);e.inputAlert(),e.inputAlert("clear"),""!=e.val()&&e[0].checkValidity()&&a.ajax({method:"post",url:c.attr("action"),data:c.serialize(),complete:function(a,b){"error"==b?e.inputAlert("error",StringLibAnahita.prompt.error):(e.inputAlert("success",StringLibAnahita.prompt.email.inviteSent),e.attr("disabled",!0))}})}),!1},a("body").on("submit","form#invites-email",function(b){b.preventDefault(),a(this).invitesEmail()})}(jQuery,window,document); \ No newline at end of file diff --git a/packages/Invites/src/media/com_invites/js/min/facebook.min.js b/packages/Invites/src/media/com_invites/js/min/facebook.min.js index 24ebf6fe5..5c8cc4900 100644 --- a/packages/Invites/src/media/com_invites/js/min/facebook.min.js +++ b/packages/Invites/src/media/com_invites/js/min/facebook.min.js @@ -1,2 +1,2 @@ -/*! anahita 26-05-2015 */ +/*! anahita 29-05-2015 */ !function(a,b,c){"use strict";a.widget("anahita.invitesFacebook",{options:{appId:0,subject:"Message Subject",body:"Message Body",appURL:"http://",picture:""},_create:function(){var b=this;FB.init({appId:this.options.appId,xfbml:!0}),this._on({'click [data-trigger="Invite"]':function(c){c.preventDefault(),a.ajax({method:"get",headers:{accept:"application/json"},url:"index.php/invites/token/facebook",success:function(a){b._openDialog(a.value)}})}})},_openDialog:function(b){var c=this.options.appURL;c+="?token="+b,FB.ui({display:"iframe",method:"send",link:c,picture:this.options.picture,name:this.options.subject,description:this.options.body},function(c){c&&c.success&&a.ajax({method:"post",url:"index.php/invites/token/facebook",data:{value:b},complete:function(a,b){}})}.bind(this))}})}(jQuery,window,document); \ No newline at end of file diff --git a/packages/Photos/src/media/com_photos/js/min/organizer.min.js b/packages/Photos/src/media/com_photos/js/min/organizer.min.js index 9b4a03572..ae6361827 100644 --- a/packages/Photos/src/media/com_photos/js/min/organizer.min.js +++ b/packages/Photos/src/media/com_photos/js/min/organizer.min.js @@ -1,2 +1,2 @@ -/*! anahita 26-05-2015 */ +/*! anahita 29-05-2015 */ !function(a,b){"use strict";a.widget("anahita.setOrganizer",{options:{selector:"#photo-selector-list",url:a("#set-photos").data("url"),photos:a("#set-photos").find(".media-grid"),thumbnail:".thumbnail-wrapper",cover:"#set-cover-wrapper",form:"#set-form"},_create:function(){var a=this;this.element.hide(),this.selector=null,this.photoList=null,this._on("body",{'click a[data-trigger="Organize"]':function(b){b.preventDefault(),a.open(b.currentTarget.href)}}),this._on(this.element,{'click a[data-trigger="ClosePhotoSelector"]':function(b){b.preventDefault(),a.close()}}),this._on(this.options.form,{submit:function(a){this._beforeAdd()}})},open:function(b){var c=this;a.get(b,function(b){c.element.html(b).slideDown(),c.selector=a(c.options.selector).sortable({connectWith:a(c.options.photos),scroll:!1}),c.photoList=a(c.options.photos).sortable({connectWith:a(c.options.selector),cancel:".cover",update:function(){c.options.url&&c._edit()}}),c.photoList.parent().addClass("an-highlight")})},close:function(){var a=this;this.element.slideUp("normal",function(){a.selector.sortable("destroy"),a.photoList.sortable("destroy"),a.photoList.parent().removeClass("an-highlight"),a.element.empty()})},_beforeAdd:function(){var b=this,c=b.photoList.find(b.options.thumbnail);0==c.length&&event.preventDefault(),a.each(c,function(c,d){a(b.options.form).append('0){var c=b.options.setsUrl;a.each(b.uploadedPhotoIds,function(a,b){c+="&photo_id[]="+b}),a.get(c,function(c){a(b.element).html(c)})}}};c=a.extend({},this.options,c),this.dropzone=new Dropzone(this.options.filedrop,c),this._on(this.element,{'click [data-trigger="UploadPhotos"]':function(a){a.preventDefault(),this.dropzone.enqueueFiles(this.dropzone.getFilesWithStatus(Dropzone.ADDED))}}),this._on(this.element,{'click [data-trigger="RemovePhotos"]':function(a){a.preventDefault(),this.dropzone.removeAllFiles(!0)}})}}),a.widget("photos.photosSetAssignment",{_create:function(){var b=a(this.element).find('input[name="title"]'),c=a(this.element).find('select[name="id"]');this._on(c,{change:function(c){""!=a(c.target).val()?b.attr("disabled",!0):b.attr("disabled",!1)}}),this._on(b,{change:function(b){""!=a(b.target).val()?c.attr("disabled",!0):c.attr("disabled",!1)}})}}),a(document).ajaxSuccess(function(){a("#photos-set-assignment").photosSetAssignment()})}(jQuery,window); \ No newline at end of file diff --git a/packages/Subscriptions/src/media/com_subscriptions/js/min/coupon.min.js b/packages/Subscriptions/src/media/com_subscriptions/js/min/coupon.min.js index 9b4e0e1ec..5fb209cff 100644 --- a/packages/Subscriptions/src/media/com_subscriptions/js/min/coupon.min.js +++ b/packages/Subscriptions/src/media/com_subscriptions/js/min/coupon.min.js @@ -1,2 +1,2 @@ -/*! anahita 26-05-2015 */ +/*! anahita 29-05-2015 */ !function(a,b){"use strict";a("body").on("change",'input[name="coupon_code"]',function(b){b.preventDefault();var c=a(this),d=c.closest("form");c.inputAlert(),c.inputAlert("clear");a.ajax({method:"post",url:d.attr("action"),data:{action:"validate",key:"code",value:c.val()||""},headers:{accept:"application/json"},beforeSend:function(){c.attr("disabled",!0)},complete:function(b,d){c.attr("disabled",!1);var e=a.parseJSON(b.getResponseHeader("validation"));return"error"==d?(c.inputAlert("error",e.errorMsg),a("#cc-form").find('input[name="coupon_code"]').val(null),void a("#paypal-form").find('input[name="coupon_code"]').val(null)):(c.inputAlert("success",e),a("#cc-form").find('input[name="coupon_code"]').val(c.val()),void a("#paypal-form").find('input[name="coupon_code"]').val(c.val()))}})})}(jQuery,window); \ No newline at end of file diff --git a/packages/Subscriptions/src/media/com_subscriptions/js/min/setting.min.js b/packages/Subscriptions/src/media/com_subscriptions/js/min/setting.min.js index 867f5df56..158c45846 100644 --- a/packages/Subscriptions/src/media/com_subscriptions/js/min/setting.min.js +++ b/packages/Subscriptions/src/media/com_subscriptions/js/min/setting.min.js @@ -1,2 +1,2 @@ -/*! anahita 26-05-2015 */ +/*! anahita 29-05-2015 */ !function(a,b){"use strict";a("body").on("click",'a[data-trigger="DeleteSubscriber"]',function(b){b.preventDefault();var c=a(this).closest("form");c.find('input[name="action"]').val("deletesubscriber"),c.submit()})}(jQuery,window); \ No newline at end of file diff --git a/src/media/com_actors/js/min/cover.min.js b/src/media/com_actors/js/min/cover.min.js index 9f592a207..896756d19 100644 --- a/src/media/com_actors/js/min/cover.min.js +++ b/src/media/com_actors/js/min/cover.min.js @@ -1,2 +1,2 @@ -/*! anahita 26-05-2015 */ +/*! anahita 29-05-2015 */ !function(a,b,c){"use strict";a.widget("anahita.cover",{options:{profile:"#actor-profile",mobileWidth:767},_create:function(){this.profile=a(this.options.profile),this._setBackgroundImage(),this._on(b,{resize:function(a){this._setBackgroundImage()}})},_setBackgroundImage:function(){if(a(b).width()0&&b-1 in a}function d(a,b,c){if(_.isFunction(b))return _.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return _.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(ha.test(b))return _.filter(b,a,c);b=_.filter(b,a)}return _.grep(a,function(a){return U.call(b,a)>=0!==c})}function e(a,b){for(;(a=a[b])&&1!==a.nodeType;);return a}function f(a){var b=oa[a]={};return _.each(a.match(na)||[],function(a,c){b[c]=!0}),b}function g(){Z.removeEventListener("DOMContentLoaded",g,!1),a.removeEventListener("load",g,!1),_.ready()}function h(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=_.expando+Math.random()}function i(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(ua,"-$1").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:ta.test(c)?_.parseJSON(c):c}catch(e){}sa.set(a,b,c)}else c=void 0;return c}function j(){return!0}function k(){return!1}function l(){try{return Z.activeElement}catch(a){}}function m(a,b){return _.nodeName(a,"table")&&_.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function n(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function o(a){var b=Ka.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function p(a,b){for(var c=0,d=a.length;d>c;c++)ra.set(a[c],"globalEval",!b||ra.get(b[c],"globalEval"))}function q(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(ra.hasData(a)&&(f=ra.access(a),g=ra.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;d>c;c++)_.event.add(b,e,j[e][c])}sa.hasData(a)&&(h=sa.access(a),i=_.extend({},h),sa.set(b,i))}}function r(a,b){var c=a.getElementsByTagName?a.getElementsByTagName(b||"*"):a.querySelectorAll?a.querySelectorAll(b||"*"):[];return void 0===b||b&&_.nodeName(a,b)?_.merge([a],c):c}function s(a,b){var c=b.nodeName.toLowerCase();"input"===c&&ya.test(a.type)?b.checked=a.checked:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}function t(b,c){var d,e=_(c.createElement(b)).appendTo(c.body),f=a.getDefaultComputedStyle&&(d=a.getDefaultComputedStyle(e[0]))?d.display:_.css(e[0],"display");return e.detach(),f}function u(a){var b=Z,c=Oa[a];return c||(c=t(a,b),"none"!==c&&c||(Na=(Na||_("'):e&&(b=''),c||d||e||(b=''),'
'+b+"
"},loadMedia:function(a,b){if(!this.isVideo(a)){var d=c("").on("load",function(){b.call(d)});d.attr("src",a)}},getNext:function(){var a,b=this,d=c("#swipebox-slider .slide").index(c("#swipebox-slider .slide.current"));d+10?(a=c("#swipebox-slider .slide").eq(b).contents().find("iframe").attr("src"),c("#swipebox-slider .slide").eq(b).contents().find("iframe").attr("src",a),b--,this.setSlide(b),this.preloadMedia(b-1)):(c("#swipebox-overlay").addClass("leftSpring"),setTimeout(function(){c("#swipebox-overlay").removeClass("leftSpring")},500))},closeSlide:function(){c("html").removeClass("swipebox-html"),c("html").removeClass("swipebox-touch"),c(a).trigger("resize"),this.destroy()},destroy:function(){c(a).unbind("keyup"),c("body").unbind("touchstart"),c("body").unbind("touchmove"),c("body").unbind("touchend"),c("#swipebox-slider").unbind(),c("#swipebox-overlay").remove(),c.isArray(e)||e.removeData("_swipebox"),this.target&&this.target.trigger("swipebox-destroy"),c.swipebox.isOpen=!1,j.settings.afterClose&&j.settings.afterClose()}},j.init()},c.fn.swipebox=function(a){if(!c.data(this,"_swipebox")){var b=new c.swipebox(this,a);this.data("_swipebox",b)}return this.data("_swipebox")}}(window,document,jQuery),function(){var a={},b=null,c=null,d=null,e=null,f={},g=window.devicePixelRatio||1,h=16*g,i={width:7,height:9,font:10*g+"px arial",colour:"#ffffff",background:"#F03D25",fallback:!0,crossOrigin:!0,abbreviate:!0},j=function(){var a=navigator.userAgent.toLowerCase();return function(b){return-1!==a.indexOf(b)}}(),k={ie:j("msie"),chrome:j("chrome"),webkit:j("chrome")||j("safari"),safari:j("safari")&&!j("chrome"),mozilla:j("mozilla")&&!j("chrome")&&!j("safari")},l=function(){for(var a=document.getElementsByTagName("link"),b=0,c=a.length;c>b;b++)if((a[b].getAttribute("rel")||"").match(/\bicon\b/))return a[b];return!1},m=function(){for(var a=document.getElementsByTagName("link"),b=document.getElementsByTagName("head")[0],c=0,d=a.length;d>c;c++){var e="undefined"!=typeof a[c];e&&(a[c].getAttribute("rel")||"").match(/\bicon\b/)&&b.removeChild(a[c])}},n=function(){if(!c||!b){var a=l();c=b=a?a.getAttribute("href"):"/favicon.ico"}return b},o=function(){return e||(e=document.createElement("canvas"),e.width=h,e.height=h),e},p=function(a){m();var b=document.createElement("link");b.type="image/x-icon",b.rel="icon",b.href=a,document.getElementsByTagName("head")[0].appendChild(b)},q=function(a,b){if(!o().getContext||k.ie||k.safari||"force"===f.fallback)return r(a);var c=o().getContext("2d"),b=b||"#000000",e=n();d=document.createElement("img"),d.onload=function(){c.clearRect(0,0,h,h),c.drawImage(d,0,0,d.width,d.height,0,0,h,h),(a+"").length>0&&s(c,a,b),t()},!e.match(/^data/)&&f.crossOrigin&&(d.crossOrigin="anonymous"),d.src=e},r=function(a){if(f.fallback){var b=document.title;"("===b[0]&&(b=b.slice(b.indexOf(" "))),(a+"").length>0?document.title="("+a+") "+b:document.title=b}},s=function(a,b,c){"number"==typeof b&&b>99&&f.abbreviate&&(b=u(b));var d=(b+"").length-1,e=f.width*g+6*g*d,i=f.height*g,j=h-i,l=h-e-g,m=16*g,n=16*g,o=2*g;a.font=(k.webkit?"bold ":"")+f.font,a.fillStyle=f.background,a.strokeStyle=f.background,a.lineWidth=g,a.beginPath(),a.moveTo(l+o,j),a.quadraticCurveTo(l,j,l,j+o),a.lineTo(l,m-o),a.quadraticCurveTo(l,m,l+o,m),a.lineTo(n-o,m),a.quadraticCurveTo(n,m,n,m-o),a.lineTo(n,j+o),a.quadraticCurveTo(n,j,n-o,j),a.closePath(),a.fill(),a.beginPath(),a.strokeStyle="rgba(0,0,0,0.3)",a.moveTo(l+o/2,m),a.lineTo(n-o/2,m),a.stroke(),a.fillStyle=f.colour,a.textAlign="right",a.textBaseline="top",a.fillText(b,2===g?29:15,k.mozilla?7*g:6*g)},t=function(){o().getContext&&p(o().toDataURL())},u=function(a){for(var b=[["G",1e9],["M",1e6],["k",1e3]],c=0;c=b[c][1]){a=v(a/b[c][1])+b[c][0];break}return a},v=function(a,b){var c=new Number(a);return c.toFixed(b)};a.setOptions=function(a){f={};for(var b in i)f[b]=a.hasOwnProperty(b)?a[b]:i[b];return this},a.setImage=function(a){return b=a,t(),this},a.setBubble=function(a,b){return a=a||"",q(a,b),this},a.reset=function(){p(c)},a.setOptions(i),window.Tinycon=a,"function"==typeof define&&define.amd&&define(a)}(),!function(a){"use strict";var b=function(b,c){this.options=a.extend({},a.fn.affix.defaults,c),this.$window=a(window).on("scroll.affix.data-api",a.proxy(this.checkPosition,this)).on("click.affix.data-api",a.proxy(function(){setTimeout(a.proxy(this.checkPosition,this),1)},this)),this.$element=a(b),this.checkPosition()};b.prototype.checkPosition=function(){if(this.$element.is(":visible")){var b,c=a(document).height(),d=this.$window.scrollTop(),e=this.$element.offset(),f=this.options.offset,g=f.bottom,h=f.top,i="affix affix-top affix-bottom";"object"!=typeof f&&(g=h=f),"function"==typeof h&&(h=f.top()),"function"==typeof g&&(g=f.bottom()),b=null!=this.unpin&&d+this.unpin<=e.top?!1:null!=g&&e.top+this.$element.height()>=c-g?"bottom":null!=h&&h>=d?"top":!1,this.affixed!==b&&(this.affixed=b,this.unpin="bottom"==b?e.top-d:null,this.$element.removeClass(i).addClass("affix"+(b?"-"+b:"")))}};var c=a.fn.affix;a.fn.affix=function(c){return this.each(function(){var d=a(this),e=d.data("affix"),f="object"==typeof c&&c;e||d.data("affix",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.affix.Constructor=b,a.fn.affix.defaults={offset:0},a.fn.affix.noConflict=function(){return a.fn.affix=c,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var b=a(this),c=b.data();c.offset=c.offset||{},c.offsetBottom&&(c.offset.bottom=c.offsetBottom),c.offsetTop&&(c.offset.top=c.offsetTop),b.affix(c)})})}(window.jQuery),!function(a){"use strict";var b='[data-dismiss="alert"]',c=function(c){a(c).on("click",b,this.close)};c.prototype.close=function(b){function c(){d.trigger("closed").remove()}var d,e=a(this),f=e.attr("data-target");f||(f=e.attr("href"),f=f&&f.replace(/.*(?=#[^\s]*$)/,"")),d=a(f),b&&b.preventDefault(),d.length||(d=e.hasClass("alert")?e:e.parent()),d.trigger(b=a.Event("close")),b.isDefaultPrevented()||(d.removeClass("in"),a.support.transition&&d.hasClass("fade")?d.on(a.support.transition.end,c):c())};var d=a.fn.alert;a.fn.alert=function(b){return this.each(function(){var d=a(this),e=d.data("alert");e||d.data("alert",e=new c(this)),"string"==typeof b&&e[b].call(d)})},a.fn.alert.Constructor=c,a.fn.alert.noConflict=function(){return a.fn.alert=d,this},a(document).on("click.alert.data-api",b,c.prototype.close)}(window.jQuery),!function(a){"use strict";var b=function(b,c){this.$element=a(b),this.options=a.extend({},a.fn.button.defaults,c)};b.prototype.setState=function(a){var b="disabled",c=this.$element,d=c.data(),e=c.is("input")?"val":"html";a+="Text",d.resetText||c.data("resetText",c[e]()),c[e](d[a]||this.options[a]),setTimeout(function(){"loadingText"==a?c.addClass(b).attr(b,b):c.removeClass(b).removeAttr(b)},0)},b.prototype.toggle=function(){var a=this.$element.closest('[data-toggle="buttons-radio"]');a&&a.find(".active").removeClass("active"),this.$element.toggleClass("active")};var c=a.fn.button;a.fn.button=function(c){return this.each(function(){var d=a(this),e=d.data("button"),f="object"==typeof c&&c;e||d.data("button",e=new b(this,f)),"toggle"==c?e.toggle():c&&e.setState(c)})},a.fn.button.defaults={loadingText:"loading..."},a.fn.button.Constructor=b,a.fn.button.noConflict=function(){return a.fn.button=c,this},a(document).on("click.button.data-api","[data-toggle^=button]",function(b){var c=a(b.target);c.hasClass("btn")||(c=c.closest(".btn")),c.button("toggle")})}(window.jQuery),!function(a){"use strict";var b=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,"hover"==this.options.pause&&this.$element.on("mouseenter",a.proxy(this.pause,this)).on("mouseleave",a.proxy(this.cycle,this))};b.prototype={cycle:function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},getActiveIndex:function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)},to:function(b){var c=this.getActiveIndex(),d=this;if(!(b>this.$items.length-1||0>b))return this.sliding?this.$element.one("slid",function(){d.to(b)}):c==b?this.pause().cycle():this.slide(b>c?"next":"prev",a(this.$items[b]))},pause:function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition.end&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),clearInterval(this.interval),this.interval=null,this},next:function(){return this.sliding?void 0:this.slide("next")},prev:function(){return this.sliding?void 0:this.slide("prev")},slide:function(b,c){var d,e=this.$element.find(".item.active"),f=c||e[b](),g=this.interval,h="next"==b?"left":"right",i="next"==b?"first":"last",j=this;if(this.sliding=!0,g&&this.pause(),f=f.length?f:this.$element.find(".item")[i](),d=a.Event("slide",{relatedTarget:f[0],direction:h}),!f.hasClass("active")){if(this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),this.$element.one("slid",function(){var b=a(j.$indicators.children()[j.getActiveIndex()]);b&&b.addClass("active")})),a.support.transition&&this.$element.hasClass("slide")){if(this.$element.trigger(d),d.isDefaultPrevented())return;f.addClass(b),f[0].offsetWidth,e.addClass(h),f.addClass(h),this.$element.one(a.support.transition.end,function(){f.removeClass([b,h].join(" ")).addClass("active"),e.removeClass(["active",h].join(" ")),j.sliding=!1,setTimeout(function(){j.$element.trigger("slid")},0)})}else{if(this.$element.trigger(d),d.isDefaultPrevented())return;e.removeClass("active"),f.addClass("active"),this.sliding=!1,this.$element.trigger("slid")}return g&&this.cycle(),this}}};var c=a.fn.carousel;a.fn.carousel=function(c){return this.each(function(){var d=a(this),e=d.data("carousel"),f=a.extend({},a.fn.carousel.defaults,"object"==typeof c&&c),g="string"==typeof c?c:f.slide;e||d.data("carousel",e=new b(this,f)),"number"==typeof c?e.to(c):g?e[g]():f.interval&&e.pause().cycle()})},a.fn.carousel.defaults={interval:5e3,pause:"hover"},a.fn.carousel.Constructor=b,a.fn.carousel.noConflict=function(){return a.fn.carousel=c,this},a(document).on("click.carousel.data-api","[data-slide], [data-slide-to]",function(b){var c,d,e=a(this),f=a(e.attr("data-target")||(c=e.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"")),g=a.extend({},f.data(),e.data());f.carousel(g),(d=e.attr("data-slide-to"))&&f.data("carousel").pause().to(d).cycle(),b.preventDefault()})}(window.jQuery),!function(a){"use strict";var b=function(b,c){this.$element=a(b),this.options=a.extend({},a.fn.collapse.defaults,c),this.options.parent&&(this.$parent=a(this.options.parent)),this.options.toggle&&this.toggle()};b.prototype={constructor:b,dimension:function(){var a=this.$element.hasClass("width");return a?"width":"height"},show:function(){var b,c,d,e;if(!this.transitioning&&!this.$element.hasClass("in")){if(b=this.dimension(),c=a.camelCase(["scroll",b].join("-")),d=this.$parent&&this.$parent.find("> .accordion-group > .in"),d&&d.length){if(e=d.data("collapse"),e&&e.transitioning)return;d.collapse("hide"),e||d.data("collapse",null)}this.$element[b](0),this.transition("addClass",a.Event("show"),"shown"),a.support.transition&&this.$element[b](this.$element[0][c])}},hide:function(){var b;!this.transitioning&&this.$element.hasClass("in")&&(b=this.dimension(),this.reset(this.$element[b]()),this.transition("removeClass",a.Event("hide"),"hidden"),this.$element[b](0))},reset:function(a){var b=this.dimension();return this.$element.removeClass("collapse")[b](a||"auto")[0].offsetWidth,this.$element[null!==a?"addClass":"removeClass"]("collapse"),this},transition:function(b,c,d){var e=this,f=function(){"show"==c.type&&e.reset(),e.transitioning=0,e.$element.trigger(d)};this.$element.trigger(c),c.isDefaultPrevented()||(this.transitioning=1,this.$element[b]("in"),a.support.transition&&this.$element.hasClass("collapse")?this.$element.one(a.support.transition.end,f):f())},toggle:function(){this[this.$element.hasClass("in")?"hide":"show"]()}};var c=a.fn.collapse;a.fn.collapse=function(c){return this.each(function(){var d=a(this),e=d.data("collapse"),f=a.extend({},a.fn.collapse.defaults,d.data(),"object"==typeof c&&c);e||d.data("collapse",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.collapse.defaults={toggle:!0},a.fn.collapse.Constructor=b,a.fn.collapse.noConflict=function(){return a.fn.collapse=c,this},a(document).on("click.collapse.data-api","[data-toggle=collapse]",function(b){var c,d=a(this),e=d.attr("data-target")||b.preventDefault()||(c=d.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,""),f=a(e).data("collapse")?"toggle":d.data();d[a(e).hasClass("in")?"addClass":"removeClass"]("collapsed"),a(e).collapse(f)})}(window.jQuery),!function(a){"use strict";function b(){a(".dropdown-backdrop").remove(),a(d).each(function(){c(a(this)).removeClass("open")})}function c(b){var c,d=b.attr("data-target");return d||(d=b.attr("href"),d=d&&/#/.test(d)&&d.replace(/.*(?=#[^\s]*$)/,"")),c=d&&a(d),c&&c.length||(c=b.parent()),c}var d="[data-toggle=dropdown]",e=function(b){var c=a(b).on("click.dropdown.data-api",this.toggle);a("html").on("click.dropdown.data-api",function(){c.parent().removeClass("open")})};e.prototype={constructor:e,toggle:function(d){var e,f,g=a(this);if(!g.is(".disabled, :disabled"))return e=c(g), f=e.hasClass("open"),b(),f||("ontouchstart"in document.documentElement&&a('