var LABEL_JS_SITE_ID=15;var LABEL_JS_PERMANENT_SESSION_NAME="psession";var LABEL_JS_ANNULER="Annuler";var LABEL_JS_TOUS_LES_COMMENTAIRES="Tous les commentaires";var LABEL_JS_COMMENTAIRES_GRAS="Gras";var LABEL_JS_COMMENTAIRES_ITALIQUE="Italique";var LABEL_JS_COMMENTAIRES_SOULIGNE="Souligné";var LABEL_JS_COMMENTAIRES_BARRE="Barré";var LABEL_JS_COMMENTAIRES_LIEN="Insérer un lien";var LABEL_JS_COMMENTAIRES_SMILEY="Insérer un smiley";var LABEL_JS_COMMENTAIRES_IMAGE="Insérer une image";var LABEL_JS_COMMENTAIRES_SPOILER="Spoiler";var LABEL_JS_ALERT_OK="ok !";var LABEL_JS_ALERT_OUPS="oups...";var LABEL_JS_VOTRE_COMMENTAIRE_A_ETE_AJOUTE="Votre commentaire a été ajouté";var LABEL_JS_VOTRE_COMMENTAIRE_N_A_PAS_ETE_AJOUTE="Votre commentaire n'a pas pu être ajouté.";var LABEL_JS_VOTRE_COMMENTAIRE_A_ETE_MODIFIE="Votre commentaire a été modifié.";var LABEL_JS_VOTRE_ALERTE_A_ETE_ENREGISTREE="Votre alerte a été enregistrée.";var LABEL_JS_VOIR_SON_PROFIL="Voir son profil";var LABEL_JS_CHAMP_OBLIGATOIRE="Champ obligatoire";var LABEL_JS_CHAMP_EMAIL="Format d'e-mail incorrect";var LABEL_JS_CHAMP_EMAIL_INVALID="Adresse e-mail invalide";var LABEL_JS_CHAMP_EMAIL_EXISTS='Cette adresse e-mail est déjà utilisée
Pour recevoir à nouveau le mail de validation cliquez-ici';var LABEL_JS_CHAMP_NUMBER="Chiffres uniquement";var LABEL_JS_CHAMP_PASSWORD="5 caractères minimum";var LABEL_JS_CHAMP_DATE="Format incorrect (ex:jj/mm/aaaa)";var LABEL_JS_CHAMP_BIRTHDATE="Date incorrecte";var LABEL_JS_CHAMP_PSEUDO_INVALID="Pseudo déjà utilisé ou invalide";var LABEL_JS_CHAMP_CAPTCHA="Code de vérification incorrect";var LABEL_JS_CHAMP_CGU="Vous devez accepter les conditions générales d'utilisation";var LABEL_JS_ROUTE_FACEBOOK_REGISTRATION="facebook/registration";var LABEL_JS_ROUTE_FACEBOOK_LOGIN="facebook/login";var LABEL_JS_FACEBOOK_NOTWORKING="La connexion Facebook est actuellement indisponible.";var LABEL_JS_INSTAGRAM_CONNECT_BOUTON="Se connecter avec Instagram";var LABEL_JS_CONNECTION="Connexion";var LABEL_JS_ROUTE_GET_SITES_URL="/wbdefault/common/getSitesInfos";var LABEL_JS_URL_AM_I_CONNECTED="vip/am_i_connected";var LABEL_JS_URL_LOGIN="vip/connexion";var LABEL_JS_ROUTE_VIP_CONNEXION_RAPPEL="vip/connexion/rappel";var LABEL_JS_ROUTE_VIP_RENVOI="vip/renvoi/";var LABEL_JS_ROUTE_VIP_VALID_RECEIVER="vip/change-email";var LABEL_JS_ROUTE_VIP_DECONNEXION="vip/deconnexion";var LABEL_JS_ROUTE_VIP_MESSAGERIE_ECRIRE="vip/messagerie/ecrire_u";var LABEL_JS_ROUTE_USER_REPONDRE="vip/messagerie/repondre";var LABEL_JS_ROUTE_MEMBRE="membre";var LABEL_JS_VOTRE_PSEUDO_OU_VOTRE_MOT_DE_PASSE_NE_SONT_PAS_RECONNUS="Identifiant et/ou mot de passe incorrect.
Vérifiez que vous les avez bien saisis.";var LABEL_JS_VEUILLEZ_SAISIR_VOTRE_PSEUDO_ET_VOTRE_MOT_DE_PASSE="Veuillez saisir votre identifiant et votre mot de passe.";var LABEL_JS_VOUS_N_AVEZ_PAS_ENCORE_VALIDE_VOTRE_INSCRIPTION="Vous n'avez pas encore validé votre inscription.";var LABEL_JS_MAIL_VALIDATION="Me renvoyer le mail de validation";var LABEL_JS_COMPTE_SUSPENDU="Désolé mais votre compte a été suspendu";var LABEL_JS_COMPTE_CLOTURE="Vous avez cloturé votre compte";var LABEL_JS_AJOUTER_UN_AMI="Ajouter un ami";var LABEL_JS_REGISTRATION="Inscription";var LABEL_JS_ROUTE_VIP_INSCRIPTION="vip/inscription";var LABEL_JS_ROUTE_AM_I_CONNECTED="vip/am_i_connected";var LABEL_JS_ROUTE_LOGIN="vip/connexion";var LABEL_JS_ROUTE_DECONNEXION="vip/deconnexion";var LABEL_JS_ROUTE_USER_MODULES="vip/modules";var LABEL_JS_ENVOYER="Envoyer";var LABEL_JS_SEND_MESSAGE="Envoyer un message";var LABEL_JS_AJOUTER_AMIS="Ajouter à mes amis";var LABEL_JS_ROUTE_VIP_AJOUTER_AMIS="vip/amis/ajouter_u";var LABEL_JS_ROUTE_VIP_MESSAGERIE_CHANGER_STATUT_THREAD_LIST="vip/messagerie/change-thread-list-status";var LABEL_JS_FBFL_LOADING="Chargement en cours...";var LABEL_JS_FBFL_SHARE_ON="Partage actif";var LABEL_JS_FBFL_SHARE_OFF="Partage inactif";var LABEL_JS_FBFL_SHARE_FORCE='Pour voir toute l\'activité de vos amis, activez votre réseau social. Cela permettra également à vos amis de profiter des contenus que vous découvrez. ';var LABEL_JS_FBFL_ME_ACTIONS="activité récente";var LABEL_JS_FBFL_FRIEND_ACTIONS="Activité récente de";var LABEL_JS_FBFL_FRIEND_ACTIONS_NONE="Aucune activité récente";var LABEL_JS_FBFL_ERROR="Erreur inconnue";var LABEL_JS_FBFL_ERROR_PERMISSION="Vous devez accepter une nouvelle permission Facebook pour faire fonctionner le partage";var LABEL_JS_FBFL_INVITE_BUTTON="Inviter [NAME] à découvrir";var LABEL_JS_FBFL_INVITE_TEXT="tu devrais vraiment regarder ce site !";var LABEL_JS_FBFL_LIKE="J'aime";var LABEL_JS_FBFL_NOTLIKE="Je n'aime plus";var LABEL_JS_DIAPO_CLOSE="Fermer";var LABEL_JS_DIAPO_FULLSCREEN="Passer en plein écran";var LABEL_JS_DIAPO_REALSIZE="Zoomer et voir en taille réelle";var LABEL_JS_DIAPO_DIDACTITIEL_NEW_1="Nouveau : visualisez cette galerie photo en plein écran en cliquant sur";var LABEL_JS_DIAPO_DIDACTITIEL_NEW_2="Passer en plein écran";var LABEL_JS_DIAPO_DIDACTITIEL_TIP_1="Astuce : utilisez les flèches de votre clavier pour passer d’une photo à l’autre";var LABEL_JS_DIAPO_PLUS_SUR="En savoir plus sur ...";var LABEL_JS_DIAPO_ENCORE_PLUS_DE_PHOTO="Encore plus de photos ...";var LABEL_JS_DIAPO_YOU_LIKE_TOO="VOUS AIMEREZ AUSSI";var LABEL_JS_DIAPO_DIAPO_BACK="REVENIR AU DIAPORAMA";var LABEL_JS_DIAPO_ACTU_PEOPLE_DU_JOUR="Actu people du jour";var LABEL_JS_DIAPO_PLUS_DE_PHOTOS="Plus de photos";var LABEL_JS_DIAPO_PHOTO="photo";var LABEL_JS_DIAPO_PHOTOS="photos";var LABEL_JS_DIAPO_VIDEO="vidéo";var LABEL_JS_DIAPO_VIDEOS="vidéos";var LABEL_JS_DIAPO_ARTICLE="article";var LABEL_JS_DIAPO_ARTICLES="articles";var LABEL_JS_DIAPO_ENTITY_NAISSANCE="naissance";var LABEL_JS_DIAPO_LEGENDE_REDUIRE="[réduire]";var LABEL_JS_DIAPO_SHAREBOX_FACEBOOK_SHARE="Partager";var LABEL_JS_DIAPO_SHAREBOX_GOOGLE_SHARE="Partager";var LABEL_JS_DIAPO_SHAREBOX_TWITTER_SHARE="Tweeter";var LABEL_JS_DIAPO_SHAREBOX_FACEBOOK_SITE="Suivez l'actu de ##SITENAME## sur Facebook";var LABEL_JS_FBFL_READ_ARTICLE_OFF="Activez le partage pour ajouter l'article à votre journal.";var LABEL_JS_FBFL_READ_ARTICLE_PENDING="Cet article sera ajouté à votre journal.";var LABEL_JS_FBFL_READ_ARTICLE_SENDING="Ajout de l'article à votre journal...";var LABEL_JS_FBFL_READ_ARTICLE_SEND="Article ajouté à votre journal !";var LABEL_JS_FBFL_READ_ARTICLE_REMOVE="Retirer";var LABEL_JS_FBFL_READ_ARTICLE_REMOVING="Suppression de l'article de votre journal...";var LABEL_JS_FBFL_READ_ARTICLE_REMOVED="Article supprimé de votre journal";var LABEL_JS_FBFL_READ_ARTICLE_RESEND="Remettre";var LABEL_JS_FBFL_READ_PHOTO_OFF="Activez le partage pour ajouter cette photo à votre journal.";var LABEL_JS_FBFL_READ_PHOTO_PENDING="Cette photo sera ajoutée à votre journal.";var LABEL_JS_FBFL_READ_PHOTO_SENDING="Ajout de la photo à votre journal...";var LABEL_JS_FBFL_READ_PHOTO_SEND="Photo ajoutée à votre journal !";var LABEL_JS_FBFL_READ_PHOTO_REMOVE="Retirer";var LABEL_JS_FBFL_READ_PHOTO_REMOVING="Suppression de cette photo de votre journal...";var LABEL_JS_FBFL_READ_PHOTO_REMOVED="Photo supprimée de votre journal";var LABEL_JS_FBFL_READ_PHOTO_RESEND="Remettre";var LABEL_JS_FBFL_READ_VIDEO_OFF="Activez le partage pour ajouter cette vidéo à votre journal.";var LABEL_JS_FBFL_READ_VIDEO_PENDING="Cette vidéo sera ajoutée à votre journal.";var LABEL_JS_FBFL_READ_VIDEO_SENDING="Ajout de la vidéo à votre journal...";var LABEL_JS_FBFL_READ_VIDEO_SEND="Vidéo ajoutée à votre journal !";var LABEL_JS_FBFL_READ_VIDEO_REMOVE="Retirer";var LABEL_JS_FBFL_READ_VIDEO_REMOVING="Suppression de cette vidéo de votre journal...";var LABEL_JS_FBFL_READ_VIDEO_REMOVED="Vidéo supprimée de votre journal";var LABEL_JS_FBFL_READ_VIDEO_RESEND="Remettre";var LABEL_JS_FBFL_READ_BIOGRAPHY_OFF="Activez le partage pour ajouter cette biographie à votre journal.";var LABEL_JS_FBFL_READ_BIOGRAPHY_PENDING="Cette biographie sera ajoutée à votre journal.";var LABEL_JS_FBFL_READ_BIOGRAPHY_SENDING="Ajout de la biographie à votre journal...";var LABEL_JS_FBFL_READ_BIOGRAPHY_SEND="Biographie ajoutée à votre journal !";var LABEL_JS_FBFL_READ_BIOGRAPHY_REMOVE="Retirer";var LABEL_JS_FBFL_READ_BIOGRAPHY_REMOVING="Suppression de cette biographie de votre journal...";var LABEL_JS_FBFL_READ_BIOGRAPHY_REMOVED="Biographie supprimée de votre journal";var LABEL_JS_FBFL_READ_BIOGRAPHY_RESEND="Remettre";var LABEL_JS_EMAILING_TOOLTIP="0% SPAM, 100% actualités";var LABEL_JS_EMAILING_SUCCESS="Votre abonnement à la newsletter est actif !";var LABEL_JS_EMAILING_BLOCK_TITLE="Abonnement à la newsletter";var LABEL_JS_EMAILING_MANAGE_TITLE="Gestion de vos abonnements";var LABEL_JS_EMAILING_MANAGE_UPDATE_OK="Vos abonnements en cours ont été mis-à-jour.";var LABEL_JS_EMAILING_ZIPCODE_FORMAT="Le format du code postal est incorrect";var LABEL_JS_EMAILING_OFFER_COMPLETE="Merci de choisir une des réponses";var LABEL_JS_EMAILING_INVALID_EMAIL="Votre email est invalide.";var LABEL_JS_COOKIE_NOTIFIER='En poursuivant votre navigation sur ce site, vous acceptez l\'utilisation de cookies. Ces derniers assurent le bon fonctionnement de nos services. En savoir plus sur les cookies';var LABEL_JS_PLUGIN_DETAIL="Détail";var LABEL_JS_PLUGIN_SEE_OFFER="Voir l'offre";var LABEL_JS_PLUGIN_CLOSE="X";var LABEL_JS_PLUGIN_CLOSE_ALT="Fermer";var LABEL_JS_CART_OPEN_POPIN="Ouvrir le panier";var LABEL_JS_CART_CLOSE_POPIN="Fermer le panier";var LABEL_JS_CART_DELETE="Retirer du panier";var LABEL_JS_CART_NO_PRODUCT="0 produit";var LABEL_JS_CART_ONE_PRODUCT="1 produit";var LABEL_JS_CART_X_PRODUCTS="[quantity] produits";var LABEL_JS_MOTEUR_URL_SSL="https://www.moteur-shopping.com";var LABEL_JS_SITE_NAME="puremedias";var LABEL_JS_URL_ADDFRIEND="vip/amis/ajouter_u";var LABEL_JS_ABONNEMENT_A_LA_NEWSLETTER="Abonnement à la newsletter";var LABEL_JS_TWITTER_ARTICLE_SHARE="[TITLE] via @puremedias";var WB=WB||{};window.$j=jQuery.noConflict();if(!Function.prototype.bind){Function.prototype.bind=function(e){if(typeof this!=="function"){throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable")}var t=Array.prototype.slice.call(arguments,1),i=this,n=function(){},o=function(){return i.apply(this instanceof n?this:e||window,t.concat(Array.prototype.slice.call(arguments)))};n.prototype=this.prototype;o.prototype=new n;return o}}(function(g,m,v,u){u.debug=false;u.el={showMask:function(e,t){mymask=g(e).data("mask");var t=g.extend({to:m.body,how:"append"},t);if(typeof mymask=="undefined"){mymask=m.createElement("div");mymask.setAttribute("class","wb_loading_mask");mymask.setAttribute("style","z-index:1;position:absolute;height:0;width:0;display:none");if(t.how=="append"){t.to.appendChild(mymask)}else if(t.how=="after"){g(mymask).insertAfter(t.to)}g(e).data("mask",mymask)}z=g(e).css("zIndex")||1;z++;if(g(e).css("position")=="absolute"){g(mymask).css({zIndex:z,top:g(e).css("top"),left:g(e).css("left"),width:e.offsetWidth+"px",height:e.offsetHeight+"px"}).show()}else{g(mymask).css({zIndex:z}).show();u.el.clonePosition(mymask,e,{setWidth:true,setHeight:true})}},hideMask:function(e){hideMaskDelay=function(){mymask=g(e).data("mask");if(!g(e)||!mymask){return false}if(mymask.parentNode)g(e).data("mask").remove();g(e).removeData("mask")};setTimeout("hideMaskDelay()",100)},clonePosition:function(e,t,i){var i=g.extend({setLeft:true,setTop:true,setWidth:false,setHeight:false,offsetLeft:0,offsetTop:0},i||{});var n=g(e);var o=g(t);var s=n.offset();var a=[o.offset().left,o.offset().top];var r=[0,0];var l=[0,0];var c=null;if(n.css("position")=="absolute"){d=n.offset();r[0]=d.left;r[1]=d.top}l[0]=(n.outerWidth(false)-o.outerWidth(false))/2;l[1]=(n.outerHeight()-o.outerHeight())/2;if(c==m.body){r[0]-=m.body.offsetLeft;r[1]-=m.body.offsetTop}if(i.setLeft)n.css("left",a[0]-r[0]+i.offsetLeft-l[0]+"px");if(i.setTop)n.css("top",a[1]-r[1]+i.offsetTop-l[1]+"px");if(i.setWidth)n.width(o.width()+"px");if(i.setHeight)n.height(o.height()+"px");return n}},u._user_module=function(e){this.id=null;this.after_login=function(){};this.after_logout=function(){};this.init=function(e,t,i){this.id=e;if(t!=undefined)this.after_login=t.bind(this);if(i!=undefined)this.after_logout=i.bind(this)}},u.fb={userID:null,accessToken:null,after_init:function(){u.utils.addLoadEvent(function(){u.fb.fire("init");if(u.fb.action)u.utils.addPageLoadEvent(u.fb.action.init())})},on:function(e,t){var i="_on"+e;if(!u.fb[i])u.fb[i]=[];u.fb[i].push(t)},fire:function(e){var t="_on"+e;if(!u.fb[t])return;g.each(u.fb[t],function(e,t){t()})},trackComment:function(e,t){g.ajax({type:"POST",url:"/wbfacebook/comments/trackComment/",data:{articleId:e,mode:t},success:function(e){}})},trackLike:function(e,t){g.ajax({type:"POST",url:"/wbfacebook/likes/trackLike/",data:{articleId:e,mode:t},success:function(e){}})},login:function(e,t,i){if(typeof u.user!="undefined"&&typeof u.user.login_window!="undefined")u.user.login_window.dialog("close");if(typeof u.user!="undefined"&&typeof u.user.register_window!="undefined")u.user.register_window.dialog("close");if(!e||e==undefined){e="public_profile,user_about_me,user_birthday,email,publish_actions,user_likes"}i=i||function(){u.dialog.alert({id:"popin_error",html:LABEL_JS_FACEBOOK_NOTWORKING,title:LABEL_JS_FBFL_ERROR,height:180,width:300,autoClose:true})};if(typeof FB!="undefined"){FB.login(function(e){if(e.authResponse){if(typeof t=="function"){t()}else{u.fb.checkLoginState()}}else{i()}},{scope:e})}else{i()}},getLoginStatus:function(e){u.fb.statusChangeCallback(e)},checkLoginState:function(){FB.getLoginStatus(function(e){u.fb.statusChangeCallback(e)})},statusChangeCallback:function(e){console.log("statusChangeCallback");console.log(e);if(e.status==="connected"){u.fb.userID=e.authResponse.userID;u.fb.accessToken=e.authResponse.accessToken;u.fb._after_login()}else if(e.status==="not_authorized"){console.log("Please log into this app.")}else{console.log("Please log into this Facebook.")}},_after_login:function(){if(u.user.login_window){u.user.login_window.dialog("close")}FB.api("/me",function(e){console.log("Successful login for: "+e.name);console.log(e);var t={userId:u.fb.userID,accessToken:u.fb.accessToken};console.log(t);g.ajax({type:"POST",url:"/"+LABEL_JS_ROUTE_FACEBOOK_LOGIN,data:t,success:function(e){var t=g.parseJSON(e);if(t.success){if(t.status==1){u.user._after_login(t.user)}else if(t.status==2){u.dialog.alert({id:"popin_error",html:LABEL_JS_COMPTE_SUSPENDU,title:LABEL_JS_FBFL_ERROR,height:180,width:300,autoClose:true})}else if(t.status==3){u.dialog.alert({id:"popin_error",html:LABEL_JS_COMPTE_CLOTURE,title:LABEL_JS_FBFL_ERROR,height:180,width:300,autoClose:true})}else if(t.status==0||t.status==undefined){u.fb.register_form()}}else{u.fb.register_form()}}});console.log("Thanks for logging in, "+e.name+"!")})},register_form:function(e){u.user.register_form(e,LABEL_JS_ROUTE_FACEBOOK_REGISTRATION)}},u.form=function(e){this.formId=e;this.display_error=function(e,t){if(e){if(typeof e=="object"){g.each(e,function(e,t){var i=g("#"+e).prev("label");var n=g("#"+e).next("span.error");if(i)i.addClass("error");g("#"+e).addClass("error");if(n){if(typeof t=="object"){var o="";g.each(t,function(e,t){o+=t+" "});n.html('")}else{n.html('")}n.show()}})}else{g("#"+this.formId+" .wb_form_warning").html(e).show()}}}},u.dialog={info:function(e,t){if(g("#"+t.id).length==0){g('').appendTo("body")}g("#"+t.id).dialog({autoOpen:false,modal:true,draggable:t.draggable||false,resizable:false,height:t.height||300,minHeight:t.height||300,width:t.width||650,minWidth:t.width||650,title:t.title||"",zIndex:t.zIndex||9998,show:{effect:"fade",speed:250},hide:{effect:"fade",speed:1e3},dialogClass:t.dialogClass||"",open:function(){if(typeof t.onOpen=="function")t.onOpen();if(t.id=="login_popin"){FB.XFBML.parse(g("#login_popin").get(0))}},beforeClose:function(){if(typeof t.beforeClose=="function")t.beforeClose()}});if(t.buttons){g("#"+t.id).dialog({buttons:t.buttons})}g.ajax({type:e.options&&e.options.method?e.options.method:"get",url:e.url,data:e.data,success:function(e){g("#"+t.id).html(e);g("#"+t.id).dialog("open")}});return g("#"+t.id)},html:function(e){if(g("#"+e.id).length==0){g('').appendTo("body")}g("#"+e.id).dialog({autoOpen:false,modal:true,draggable:true,height:e.height||300,minHeight:e.height||300,width:e.width||650,minWidth:e.width||650,title:e.title||"",zIndex:e.zIndex||9998,show:{effect:"fade",speed:250},hide:{effect:"fade",speed:1e3}});if(e.buttons){g("#"+e.id).dialog({buttons:e.buttons})}else{g("#"+e.id).dialog({buttons:{OK:function(){g(this).dialog("close")}}})}g("#"+e.id).html(e.html);g("#"+e.id).dialog("open");return g("#"+e.id)},alert:function(e){if(g("#"+e.id).length==0){g('').appendTo("body")}g("#"+e.id).dialog({autoOpen:false,modal:true,draggable:true,height:e.height||300,minHeight:e.height||300,width:e.width||650,minWidth:e.width||650,title:e.title||"Informations",zIndex:e.zIndex||9998,show:{effect:"fade",speed:250},hide:{effect:"fade",speed:1e3}});if(e.buttons){g("#"+e.id).dialog({buttons:e.buttons})}else{g("#"+e.id).dialog({buttons:{OK:function(){g(this).dialog("close")}}})}g("#"+e.id).html(e.html);g("#"+e.id).dialog("open");if(e.autoClose==true){setTimeout(function(){g("#"+e.id).dialog("close")},2e3)}}},u.effect={carousel:function(e,d){function i(e,t){var i=isNaN(t)?0:t;return new Array(parseInt(i)+1).join(e)}return(e instanceof jQuery?e:g(e)).each(function(){var o=g("> .wrapper",this),e=o.find("> ul"),t=e.find("> li"),s=g(".dots",this),a=t.filter(":first").outerWidth(false),r=Math.ceil(o.innerWidth()/a),l=1,c=Math.ceil(t.length/r);if(t.length%r!=0){e.append(i('
  • ',r-t.length%r));t=e.find("> li")}t.filter(":first").before(t.slice(-r).clone().addClass("cloned"));t.filter(":last").after(t.slice(0,r).clone().addClass("cloned"));t=e.find("> li");e.css("width",a*t.length+"px");o.scrollLeft(a*r);function n(e){var t=ec){o.scrollLeft(a*r);e=1}l=e;s.children().each(function(e,t){if(!g(t).hasClass("active")&&e+1==l){g(t).addClass("active")}else{g(t).removeClass("active")}})});return false}g(".before",this).click(function(){return n(l-1)});g(".after",this).click(function(){return n(l+1)});g(".dot",this).click(function(){var i=this;s.children().each(function(e,t){if(t==i)return n(e+1)})});g(this).bind("goto",function(e,t){n(t)});if(d.duration){this.interval=v.setInterval(function(){n(l+1)},d.duration)}g(this).mouseover(function(){v.clearInterval(this.interval)});g(this).mouseout(function(){this.interval=v.setInterval(function(){n(l+1)},d.duration)})})},slider:function(e){this.current=0;this.max=0;this.dir="ltr";this.list="";this.pagination={};this.size_elems=0;this.nb_elems=0;this.duration=0;this.auto=false;this.mouse_lock=true;this.slow=false;this.slow_duration=400;this.easing="swing";this.listeners={next:function(){},prev:function(){}};var s=this;g.extend(s,e),this.init=function(){var e=this.pagination.prev instanceof jQuery?this.pagination.prev:g(this.pagination.prev);var t=this.pagination.next instanceof jQuery?this.pagination.next:g(this.pagination.next);var i=this.pagination.dots instanceof jQuery?this.pagination.dots:g(this.pagination.dots);e.each(function(e,t){g(t).click(function(){s.slide(--s.current);s.fireEvent("prev")})});t.each(function(e,t){g(t).click(function(){s.slide(++s.current);s.fireEvent("next")})});i.each(function(e,t){g(t).mouseover(function(){s.current=e;s.slide(s.current)})});if(this.auto){this.interval=v.setInterval(this.autoSlide,this.duration);if(this.mouse_lock){var n=this.list instanceof jQuery?this.list:g(this.list);n.parent().mouseover(function(){v.clearInterval(s.interval)});n.parent().mouseout(function(){s.interval=v.setInterval(s.autoSlide,s.duration)})}}this.slide(s.current)};this.getMax=function(){if(s.no_empty_thumbs&&s.container_size!=undefined){var e=parseInt(s.container_size/s.size_elems);var t=s.nb_elems-e;return t}else{return s.nb_elems}};this.slide=function(i){if(typeof i!="undefined"){s.current=i;if(i<0){i=s.current=s.getMax()-1}var e=s.list instanceof jQuery?s.list:g(s.list);e.css({width:s.size_elems*s.nb_elems});animateProp={};if(i>=s.getMax()){i=s.current=0;if(s.slow){animateProp["margin"+(this.dir=="rtl"?"Right":"Left")]=0;e.animate(animateProp,{duration:s.slow_duration,easing:s.easing,complete:s.listeners.slide,queue:false})}else{animateProp["margin"+(this.dir=="rtl"?"Right":"Left")]="0px";e.css(animateProp)}}else{if(s.slow){animateProp["margin"+(this.dir=="rtl"?"Right":"Left")]=i*s.size_elems*-1+"px";e.animate(animateProp,{duration:s.slow_duration,easing:s.easing,complete:s.listeners.slide,queue:false})}else{animateProp["margin"+(this.dir=="rtl"?"Right":"Left")]=i*s.size_elems*-1+"px";e.css(animateProp)}}var t=this.pagination.dots instanceof jQuery?this.pagination.dots:g(this.pagination.dots);if(t[i]){t.each(function(e,t){if(!g(t).hasClass("active")&&e==i){g(t).addClass("active")}else{g(t).removeClass("active")}})}if(s.pagination.toggle_arrows){var n=this.pagination.prev instanceof jQuery?this.pagination.prev:g(this.pagination.prev);var o=this.pagination.next instanceof jQuery?this.pagination.next:g(this.pagination.next);n.toggle(s.current>0);o.toggle(s.currentthis.previous_value){n.move("left")}this.previous_value=t.value}});a_slider=g(this.slider)[0].firstChild;if(a_slider){g(a_slider).append('
    ')}for(i=0;ithis.idx_min){this.left+=this.img_half_widths[this.idx_position];this.idx_position-=1;this.left+=this.img_half_widths[this.idx_position];this.flow.animate({left:this.left+"px"},100,"swing",false)}this.imgs.each(function(){g(this).css({opacity:.5})});g(this.imgs[this.idx_position]).css({opacity:1})};this.init()}},u.utils={pad:function(e,t){return e.toString().length0){c_start=m.cookie.indexOf(e+"=");if(c_start!=-1){c_start=c_start+e.length+1;c_end=m.cookie.indexOf(";",c_start);if(c_end==-1)c_end=m.cookie.length;return unescape(m.cookie.substring(c_start,c_end))}}return""},set_cookie:function(e,t,i,n,o,s){var a=new Date;a.setDate(a.getDate()+i);m.cookie=e+"="+escape(t)+(i?";expires="+a.toGMTString():"")+(n?";path="+n:"")+(o?";domain="+o:"")+(s?";secure":"")},_rot13init:function(){var e=new Array;var t="abcdefghijklmnopqrstuvwxyz";for(i=0;i="A"&&n<="Z"||n>="a"&&n<="z"?u.utils._rot13map[n]:n}return t},decHrl:function(e){var t="0A12B34C56D78E9F";var i="";for(var n=0;n"),n="";if(e.attr("rel")){n=u.utils.rot13(e.attr("rel"));e.removeClass("hrl").addClass("_hrl");g.each(this.attributes,function(e,t){if(t.name=="rel"){i.attr("href",n)}else if(t.name=="class"||t.name=="style"||t.name=="id"||t.name=="title"||t.name=="target"){i.attr(t.name,t.value)}else if(t.name=="dataid"){i.attr("data-id",t.value)}else if(t.name=="data-rel"){i.attr("rel",t.value)}else if(t.name=="onclick"){t.value=t.value.replace("#WB_HREF#",n);i.attr("onclick",t.value)}else if(t.name.substr(0,5)=="data-"){i.attr(t.name,t.value)}})}else{var o=e.attr("class").split(" ")[1];if(o==undefined)o=e.attr("class").split(" ")[0];e.removeClass("hrl").addClass("_hrl");var n=u.utils.decHrl(o);g.each(this.attributes,function(e,t){if(t.name=="style"||t.name=="id"||t.name=="title"||t.name=="target"){i.attr(t.name,t.value)}else if(t.name=="class"){i.attr("class",t.value.replace(o,""))}else if(t.name=="dataid"){i.attr("data-id",t.value)}else if(t.name=="data-rel"){i.attr("rel",t.value)}else if(t.name=="onclick"){t.value=t.value.replace("#WB_HREF#",n);i.attr("onclick",t.value)}else if(t.name.substr(0,5)=="data-"){i.attr(t.name,t.value)}});i.attr("href",n)}i.html(e.html());e.empty().replaceWith(i)})}},_submenu_keep_opened:false,submenu:function(e){var t=g("#submenu_"+e),i=t.parent(),n=i.find("div.nav-arrow-down");t.mouseover(function(){t.data("hover",true)}).mouseout(function(){t.data("hover",false)});i.mouseenter(function(){n.show();t.show()}).mouseleave(function(e){if(t.data("hover")){if(i.hasClass("on")){n.hide()}}t.hide()})},reCaptcha:function(t){g.ajax({type:"post",url:"/wbdefault/common/reCaptcha/?ajax=1",dataType:"json",success:function(e){if(e.id){g("#captcha_id").val(e.id);t.src=e.src}}})},toggle_password:function(e,t){var i=g("#"+e);var n=g("#"+t);if(i.is(":visible")){n.show();i.hide();n.val(i.val())}else{i.show();n.hide();i.focus()}},share_fb:function(e,t){v.open("http://www.facebook.com/sharer.php?u="+encodeURIComponent(e)+"&t="+encodeURIComponent(t),"share_on_facebook_window","width=577,height=327")},share_tw:function(e,t){v.open("/common/shareontwitter?url="+encodeURIComponent(e)+"&title="+encodeURIComponent(t),"share_on_twitter_window","width=798,height=361")},cgugo:function(){var e="/site/mentions-legales";v.open(e)},requestFullScreen:function(e){try{if(e==undefined){return Element.prototype.requestFullScreen||Element.prototype.webkitRequestFullScreen||Element.prototype.mozRequestFullScreen}else if(e.requestFullScreen){e.requestFullScreen()}else if(e.webkitRequestFullScreen){e.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT)}else if(e.mozRequestFullScreen){e.mozRequestFullScreen()}else{return false}}catch(e){return false}},cancelFullScreen:function(){if(m.cancelFullScreen){m.cancelFullScreen()}else if(m.webkitCancelFullScreen){m.webkitCancelFullScreen()}else if(m.mozCancelFullScreen){m.mozCancelFullScreen()}else{return false}},parseAnchor:function(e){if(typeof e=="undefined"){e=v.location.hash}var t=e.replace(/#/,"").split("&");var n={};g.each(t,function(e,t){var i=t.split("=");n[i[0]]=i[1]});return n},fbShare:function(e,t){FB.ui({method:"feed",name:e.title,link:e.url,picture:e.img||null},function(e){if(e&&e.post_id&&t){t()}})},twitterShare:function(e,t){var i="https://twitter.com/intent/tweet?original_referer="+encodeURIComponent(e.url)+"&text="+e.title+"&tw_p=tweetbutton&url="+encodeURIComponent(e.url)+"&via="+e.via;v.open(i,"sharer","toolbar=0,status=0,width=626,height=256,top="+(v.screen.height/2-218)+",left="+(v.screen.width/2-313))},googleShare:function(e,t){var i="https://plus.google.com/share?url="+encodeURIComponent(e.url);v.open(i,"sharer","toolbar=0,status=0,width=626,height=256,top="+(v.screen.height/2-218)+",left="+(v.screen.width/2-313))},socialsCounters:function(){g("#sharebox .for_facebook, #sharebox .for_twitter, #sharebox .for_google, .sharebox .for_facebook, .sharebox .for_twitter, .sharebox .for_google").on("click",function(){if(g(this).closest("#sharebox").length>0)var e=g(this).closest("#sharebox").data();else var e=g(this).closest(".sharebox").data();button_data=g(this).data(),params=g.extend({},e,button_data),$c=g(this).next("i"),$total=g("#sharebox .total b");var t=g(this).parent().find("."+g(this).attr("class")+"_counts"),i=g(this).closest(".sharebox").find(".total .count");var n=function(){$c.html(parseInt($c.html())+1);$total.html(parseInt($total.html())+1);t.html(parseInt(t.html())+1);i.html(parseInt(i.html())+1);g.post("/wbapi/social/incCounter",{type:params.type,url:e.url,id:e.id})};if(params.fn!=undefined){u.utils[params.fn].call(this,params,n)}else{v.open(params.url,"sharer","toolbar=0,status=0,width=626,height=256,top="+(v.screen.height/2-218)+",left="+(v.screen.width/2-313));n()}})},stickySocial:function(e){var i=g(e);var n=i.offset();g(m).bind("scroll ready",function(){var e=g(v).scrollTop();var t=i.parent().offset().top;if(t>=e){i.css({left:0});i.removeClass("sticky")}else{i.css({left:n.left});i.addClass("sticky")}})}};u.comments={post_lock:false,hide_timeout:0,list:function(i,e,t,n,o,s,a,r){if(i!=""){var l=v.location.hash;var c="";if(l=/comment(_(\d+))/.exec(l)){c=l[2]}var d="/wbcomments/index/getlist/content_type/"+e+"/content_id/"+t+"/model/"+n+"/ranking/"+o+"/order/"+s+"/page/"+a+"/after_thread_index/"+r+(c!=""?"/req_id/"+c:"");var u=g("#show_more_"+i);if(u){u.html('
    ');u.click(function(){})}if(g("#comment_answers_"+i)){if(!g("#comment_answers_"+i).hasClass("on")){g("#comment_answers_"+i).addClass("on")}g("#comment_answers_"+i).children(".working").show();g("#comment_answers_"+i).click(function(){})}g.ajax({type:"get",url:d,success:function(e){var t=g("#comments_more_"+i);t.html(e);t.show();if(u){u.hide()}if(g("#comment_answers_"+i)){g("#comment_answers_"+i).children(".working").hide()}}})}else{var d="/wbcomments/index/getlist/content_type/"+e+"/content_id/"+t+"/model/"+n+"/ranking/"+o+"/order/"+s+"/page/"+a+"/after_thread_index/"+r;g("#comments_nav").children(".working").show();g("#comments_nav_navpages").fadeTo("slow",.1);g.ajax({type:"get",url:d,success:function(e){var t=g("#comments_list");t.html(e);g("html,body").animate({scrollTop:g("#comments_list").offset().top},"slow");g("#comments_nav").children(".working").hide()}})}},submit_post:function(e){u.user.check_login(function(){u.comments._submit_post(e)},"LABEL_CONNEXION_POUR_POSTER_UN_COMMENTAIRE")},_submit_post:function(e){var t=null;if(g(e).parent().parent().parent().children("textarea")){t=g(e).parent().parent().parent()}else{t=g(e).parent().parent()}var i=g(t).children("textarea").val();var n=g(t).children("input[name=content_type]").val();var o=g(t).children("input[name=content_id]").val();var s=g(t).children("input[name=after_thread_index]").val();var a=g(t).children("#share_fb:checked")?g(t).children("#share_fb :checked").val():false;if(g(t).attr("id")=="comments_form_modify"){var r="/"+"wbcomments"+"/"+"index"+"/"+"modify"+"/"+"content_type"+"/"+n+"/"+"content_id"+"/"+o+"/"+"thread_index"+"/"+s}else{var r="/"+"wbcomments"+"/"+"index"+"/"+"post"+"/"+"content_type"+"/"+n+"/"+"content_id"+"/"+o+"/"+"after_thread_index"+"/"+s}if(!u.comments.post_lock){u.comments.post_lock=true;if(g(t).attr("id")=="comments_form_modify"){g("#comments_form_modify").children(".working").show();g("#comments_form_modify .toggle").hide()}if(g(t).attr("id")=="comments_form_top"){g("#comments_form_top").children(".working").show();g("#comments_form_top .toggle").hide()}if(g(t).attr("id")=="comments_form_movable"){g("#comments_form_movable").children(".working").show();g("#comments_form_movable .toggle").hide()}var l="";g.ajax({type:"post",url:r,data:{text:i,"share[fb]":a},success:function(e){if(e!="niet"){if(g(t).attr("id")=="comments_form_modify"){g("#comment_"+e.id).html(e.html)}if(g(t).attr("id")=="comments_form_top"){if(g("#comments_list").children("#comments_nav").length==0){l="first";g("#comments_form_top").after('
    ')}g("#comments_nav").before('
    '+e.html+"
    ");g("#comments_form_top").children(".working").hide();g("#comments_form_top .toggle").show();g("#comments_form_top .remove").hide();u.dialog.alert({id:"popin_comment",html:LABEL_JS_VOTRE_COMMENTAIRE_A_ETE_AJOUTE,width:400,height:150,autoClose:true})}if(g(t).attr("id")=="comments_form_movable"){g("#comments_form_movable").after('
    '+e.html+"
    ");g("#comments_form_movable").hide();g("#comments_form_movable").children(".working").hide();g("#comments_form_movable .toggle").show();u.dialog.alert({id:"popin_comment",html:LABEL_JS_VOTRE_COMMENTAIRE_A_ETE_AJOUTE,width:400,height:150,autoClose:true})}}else{u.comments.displayError(e)}}});u.comments.post_lock=false}return true},displayError:function(e){u.dialog.alert({id:"popin_comment",title:LABEL_JS_ALERT_OUPS,html:e,width:400,height:150})},vote:function(t,e,i,n){var o="/"+"wbcomments"+"/"+"index"+"/"+"vote"+"/"+"note"+"/"+e+"/"+"encrypted_id"+"/"+i;g.ajax({type:"post",url:o,success:function(e){if(e!="niet"){g(t).children(".cl").html(n+1);g(t).click=function(){};g(t).addClass("off").fadeTo("slow",.3).fadeTo("slow",1)}}})},alert:function(e,t){u.user.check_login(function(){u.comments._alert(e,t)},"LABEL_CONNEXION_POUR_ALERTER")},_alert:function(e,t){var i="/"+"wbcomments"+"/"+"index"+"/"+"alert"+"/"+"encrypted_id"+"/"+t;g.ajax({type:"post",url:i,success:function(e){if(e!="niet"){u.dialog.alert({id:"popin_comment",html:LABEL_JS_VOTRE_ALERTE_A_ETE_ENREGISTREE,width:400,height:150,autoClose:true})}}})},move_form:function(e,t,i){g("#comments_form_movable").removeClass("depth_1").removeClass("depth_2").removeClass("depth_3");g("#comments_form_movable").show();g("#comments_form_movable").addClass("depth_"+Math.min(i+1,3));g("#comments_form_movable").attr("parent_depth",Math.min(i,3));g(e).parent().parent().parent().after(g("#comments_form_movable"));g("#comments_form_movable").children("input[name=after_thread_index]").val(t);g("#comments_form_movable").children("input[name=write_mode]").val("post");g("#comments_form_movable").children("input[name=text]").val("")},hide_movable_form:function(){g("#comments_form_movable").hide()},hide_modify_form:function(e){g("#comment_"+e).down(".post").show();g("#comments_form_modify").remove()},modify:function(t,e,i){if(!u.comments.post_lock){u.comments.post_lock=true;if(g("#comments_form_modify")){g("#comments_form_modify").remove()}var n="/"+"wbcomments"+"/"+"index"+"/"+"getForModification"+"/"+"encrypted_id"+"/"+e;g.ajax({type:"post",url:n,success:function(e){if(e!="niet"){g(t).parent().parent().parent().children(".post").hide();g(t).parent().parent().after(e);g("#comments_form_modify").show()}else{u.dialog.alert({id:"popin_comment",title:LABEL_JS_ALERT_OUPS,html:err_txt,width:400,height:150,autoClose:true})}}});u.comments.post_lock=false}},showEnlargedProfile:function(e){if(g(e).parent().parent().children(".enlarged").html()==""){var t=g(e).parent().children(".username").html();var i=g(e).parent().children(".username").attr("user_id");var n=g(e).attr("src");var o='
    '+t+'

    ';g(e).parent().parent().children(".enlarged").html(o);g(e).parent().parent().children(".enlarged").show()}else{g(e).parent().parent().children(".enlarged").show()}return true},hideEnlargedProfile:function(e){g("#"+e).hide();return true}};u.stats={_count:function(e,t,i){if(m.referrer){var n=m.referrer}else{var n=""}var o=new Image;var s="°wbstats°index°count?action="+e+"&type="+t+"&id="+i+"&referer="+encodeURIComponent(n.substr(0,40))+"&rnd="+Math.ceil(Math.random(1e4)*1e6);o.src=s.replace(new RegExp("°","g"),"/")},video:function(e,t){var i=new Image;var n="°wbstats°index°video?vaction="+t+"&type="+e+"&rnd="+Math.ceil(Math.random(1e4)*1e6);i.src=n.replace(new RegExp("°","g"),"/")},countComment:function(e,t){this._count("comment",e,t)},diapo:function(e,t){var i=new Image;var n="°wbstats°index°diapo?action=view&type="+e+"&id="+t+"&rnd="+Math.ceil(Math.random(1e4)*1e6);i.src=n.replace(new RegExp("°","g"),"/")},countView:function(e,t){this._count("view",e,t)}};u.tools={alternate:function(e,t){$alt=g(e);if($alt.length){c=u.utils.get_cookie("js-alternate"),$els=[];$alt.each(function(){coeff=g(this).data("cycle");for(i=0;ir+d){if(e.removeEventListener)e.removeEventListener("scroll",this.playOnScroll,false);else if(e.detachEvent)e.detachEvent("onscroll",this.playOnScroll);setTimeout(function(){var t=setInterval(function(){var e=i.player.getState();if(e=="buffering"||e=="playing")clearInterval(t);else if(e!=undefined){i.player.play(true);i.already_played=true}},100)},0)}};this._initTrackers=function(){var i=this;this.player.on("ready",function(){i._track_uga("video-content","thumbnail-displayed",{nonInteraction:1})}).on("setupError",function(e){i._track_uga("video-player","crashes");i._track_uga("video-player","crash-details",{eventLabel:e.message})}).on("error",function(e){i._track_uga("video-content","crash");i._track_uga("video-content","crash-details",{eventLabel:e.message})}).on("play",function(e){i._track_ga("video-play");if(e.oldstate=="paused"){i._track_uga("video-content","resume")}else if(i.completionState==-1){i.completionState=0;if(!i.started){i._track_uga("video-player","starts")}i._track_uga("video-content","starts");i.started=true}}).on("pause",function(){i._track_uga("video-content","pause")}).on("time",function(e){var t=Math.floor(e.position/e.duration*100/25)*25;if(i.completionState0){var i=c.offset().top+c.outerHeight(true);r.css({height:"100%",width:"100%"});if(i&&t){if(i>=t){s=true}if(i",options:{classes:{},disabled:false,create:null},_createWidget:function(e,t){t=C(t||this.defaultElement||this)[0];this.element=C(t);this.uuid=i++;this.eventNamespace="."+this.widgetName+this.uuid;this.bindings=C();this.hoverable=C();this.focusable=C();this.classesElementLookup={};if(t!==this){C.data(t,this.widgetFullName,this);this._on(true,this.element,{remove:function(e){if(e.target===t){this.destroy()}}});this.document=C(t.style?t.ownerDocument:t.document||t);this.window=C(this.document[0].defaultView||this.document[0].parentWindow)}this.options=C.widget.extend({},this.options,this._getCreateOptions(),e);this._create();if(this.options.disabled){this._setOptionDisabled(this.options.disabled)}this._trigger("create",null,this._getCreateEventData());this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:C.noop,_create:C.noop,_init:C.noop,destroy:function(){var i=this;this._destroy();C.each(this.classesElementLookup,function(e,t){i._removeClass(t,e)});this.element.off(this.eventNamespace).removeData(this.widgetFullName);this.widget().off(this.eventNamespace).removeAttr("aria-disabled");this.bindings.off(this.eventNamespace)},_destroy:C.noop,widget:function(){return this.element},option:function(e,t){var i=e;var n;var o;var s;if(arguments.length===0){return C.widget.extend({},this.options)}if(typeof e==="string"){i={};n=e.split(".");e=n.shift();if(n.length){o=i[e]=C.widget.extend({},this.options[e]);for(s=0;s"+"
    "),n=i.children()[0];C("body").append(i);e=n.offsetWidth;i.css("overflow","scroll");t=n.offsetWidth;if(e===t){t=i[0].clientWidth}i.remove();return o=e-t},getScrollInfo:function(e){var t=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),i=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),n=t==="scroll"||t==="auto"&&e.width0?"right":"center",vertical:o<0?"top":n>0?"bottom":"middle"};if(fE(k(n),k(o))){s.important="horizontal"}else{s.important="vertical"}u.using.call(this,e,s)}}a.offset(C.extend(c,{using:e}))})};C.ui.position={fit:{left:function(e,t){var i=t.within,n=i.isWindow?i.scrollLeft:i.offset.left,o=i.width,s=e.left-t.collisionPosition.marginLeft,a=n-s,r=s+t.collisionWidth-o-n,l;if(t.collisionWidth>o){if(a>0&&r<=0){l=e.left+a+t.collisionWidth-o-n;e.left+=a-l}else if(r>0&&a<=0){e.left=n}else{if(a>r){e.left=n+o-t.collisionWidth}else{e.left=n}}}else if(a>0){e.left+=a}else if(r>0){e.left-=r}else{e.left=E(e.left-s,e.left)}},top:function(e,t){var i=t.within,n=i.isWindow?i.scrollTop:i.offset.top,o=t.within.height,s=e.top-t.collisionPosition.marginTop,a=n-s,r=s+t.collisionHeight-o-n,l;if(t.collisionHeight>o){if(a>0&&r<=0){l=e.top+a+t.collisionHeight-o-n;e.top+=a-l}else if(r>0&&a<=0){e.top=n}else{if(a>r){e.top=n+o-t.collisionHeight}else{e.top=n}}}else if(a>0){e.top+=a}else if(r>0){e.top-=r}else{e.top=E(e.top-s,e.top)}}},flip:{left:function(e,t){var i=t.within,n=i.offset.left+i.scrollLeft,o=i.width,s=i.isWindow?i.scrollLeft:i.offset.left,a=e.left-t.collisionPosition.marginLeft,r=a-s,l=a+t.collisionWidth-o-s,c=t.my[0]==="left"?-t.elemWidth:t.my[0]==="right"?t.elemWidth:0,d=t.at[0]==="left"?t.targetWidth:t.at[0]==="right"?-t.targetWidth:0,u=-2*t.offset[0],h,f;if(r<0){h=e.left+c+d+u+t.collisionWidth-o-n;if(h<0||h0){f=e.left-t.collisionPosition.marginLeft+c+d+u-s;if(f>0||k(f)0){f=e.top-t.collisionPosition.marginTop+d+u+h-s;if(f>0||k(f)0&&o.is(":visible")}if(/^(input|select|textarea|button|object)$/.test(r)){s=!e.disabled;if(s){a=C(e).closest("fieldset")[0];if(a){s=!a.disabled}}}else if("a"===r){s=e.href||t}else{s=t}return s&&C(e).is(":visible")&&l(C(e))};function l(e){var t=e.css("visibility");while(t==="inherit"){e=e.parent();t=e.css("visibility")}return t!=="hidden"}C.extend(C.expr[":"],{focusable:function(e){return C.ui.focusable(e,C.attr(e,"tabindex")!=null)}});var a=C.ui.focusable;var c=C.fn.form=function(){return typeof this[0].form==="string"?this.closest("form"):C(this[0].form)};var d=C.ui.formResetMixin={_formResetHandler:function(){var t=C(this);setTimeout(function(){var e=t.data("ui-form-reset-instances");C.each(e,function(){this.refresh()})})},_bindFormResetHandler:function(){this.form=this.element.form();if(!this.form.length){return}var e=this.form.data("ui-form-reset-instances")||[];if(!e.length){this.form.on("reset.ui-form-reset",this._formResetHandler)}e.push(this);this.form.data("ui-form-reset-instances",e)},_unbindFormResetHandler:function(){if(!this.form.length){return}var e=this.form.data("ui-form-reset-instances");e.splice(C.inArray(this,e),1);if(e.length){this.form.data("ui-form-reset-instances",e)}else{this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset")}}};var u=C.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38};var h=C.ui.escapeSelector=function(){var t=/([!"#$%&'()*+,./:;<=>?@[\]^`{|}~])/g;return function(e){return e.replace(t,"\\$1")}}();var f=C.fn.labels=function(){var e,t,i,n,o;if(this[0].labels&&this[0].labels.length){return this.pushStack(this[0].labels)}n=this.eq(0).parents("label");i=this.attr("id");if(i){e=this.eq(0).parents().last();o=e.add(e.length?e.siblings():this.siblings());t="label[for='"+C.ui.escapeSelector(i)+"']";n=n.add(o.find(t).addBack(t))}return this.pushStack(n)};var p=C.fn.scrollParent=function(e){var t=this.css("position"),i=t==="absolute",n=e?/(auto|scroll|hidden)/:/(auto|scroll)/,o=this.parents().filter(function(){var e=C(this);if(i&&e.css("position")==="static"){return false}return n.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return t==="fixed"||!o.length?C(this[0].ownerDocument||document):o};var g=C.extend(C.expr[":"],{tabbable:function(e){var t=C.attr(e,"tabindex"),i=t!=null;return(!i||t>=0)&&C.ui.focusable(e,i)}});var m=C.fn.extend({uniqueId:function(){var e=0;return function(){return this.each(function(){if(!this.id){this.id="ui-id-"+ ++e}})}}(),removeUniqueId:function(){return this.each(function(){if(/^ui-id-\d+$/.test(this.id)){C(this).removeAttr("id")}})}});var v=C.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());var _=false;C(document).on("mouseup",function(){_=false});var y=C.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).on("click."+this.widgetName,function(e){if(true===C.data(e.target,t.widgetName+".preventClickEvent")){C.removeData(e.target,t.widgetName+".preventClickEvent");e.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.off("."+this.widgetName);if(this._mouseMoveDelegate){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)}},_mouseDown:function(e){if(_){return}this._mouseMoved=false;this._mouseStarted&&this._mouseUp(e);this._mouseDownEvent=e;var t=this,i=e.which===1,n=typeof this.options.cancel==="string"&&e.target.nodeName?C(e.target).closest(this.options.cancel).length:false;if(!i||n||!this._mouseCapture(e)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){t.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)){this._mouseStarted=this._mouseStart(e)!==false;if(!this._mouseStarted){e.preventDefault();return true}}if(true===C.data(e.target,this.widgetName+".preventClickEvent")){C.removeData(e.target,this.widgetName+".preventClickEvent")}this._mouseMoveDelegate=function(e){return t._mouseMove(e)};this._mouseUpDelegate=function(e){return t._mouseUp(e)};this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate);e.preventDefault();_=true;return true},_mouseMove:function(e){if(this._mouseMoved){if(C.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button){return this._mouseUp(e)}else if(!e.which){if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey){this.ignoreMissingWhich=true}else if(!this.ignoreMissingWhich){return this._mouseUp(e)}}}if(e.which||e.button){this._mouseMoved=true}if(this._mouseStarted){this._mouseDrag(e);return e.preventDefault()}if(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)){this._mouseStarted=this._mouseStart(this._mouseDownEvent,e)!==false;this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)}return!this._mouseStarted},_mouseUp:function(e){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;if(e.target===this._mouseDownEvent.target){C.data(e.target,this.widgetName+".preventClickEvent",true)}this._mouseStop(e)}if(this._mouseDelayTimer){clearTimeout(this._mouseDelayTimer);delete this._mouseDelayTimer}this.ignoreMissingWhich=false;_=false;e.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}});var b=C.ui.plugin={add:function(e,t,i){var n,o=C.ui[e].prototype;for(n in i){o.plugins[n]=o.plugins[n]||[];o.plugins[n].push([t,i[n]])}},call:function(e,t,i,n){var o,s=e.plugins[t];if(!s){return}if(!n&&(!e.element[0].parentNode||e.element[0].parentNode.nodeType===11)){return}for(o=0;o0){return false}this.handle=this._getHandle(e);if(!this.handle){return false}this._blurActiveElement(e);this._blockFrames(t.iframeFix===true?"iframe":t.iframeFix);return true},_blockFrames:function(e){this.iframeBlocks=this.document.find(e).map(function(){var e=C(this);return C("
    ").css("position","absolute").appendTo(e.parent()).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).offset(e.offset())[0]})},_unblockFrames:function(){if(this.iframeBlocks){this.iframeBlocks.remove();delete this.iframeBlocks}},_blurActiveElement:function(e){var t=C.ui.safeActiveElement(this.document[0]),i=C(e.target);if(i.closest(t).length){return}C.ui.safeBlur(t)},_mouseStart:function(e){var t=this.options;this.helper=this._createHelper(e);this._addClass(this.helper,"ui-draggable-dragging");this._cacheHelperProportions();if(C.ui.ddmanager){C.ui.ddmanager.current=this}this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent(true);this.offsetParent=this.helper.offsetParent();this.hasFixedAncestor=this.helper.parents().filter(function(){return C(this).css("position")==="fixed"}).length>0;this.positionAbs=this.element.offset();this._refreshOffsets(e);this.originalPosition=this.position=this._generatePosition(e,false);this.originalPageX=e.pageX;this.originalPageY=e.pageY;t.cursorAt&&this._adjustOffsetFromHelper(t.cursorAt);this._setContainment();if(this._trigger("start",e)===false){this._clear();return false}this._cacheHelperProportions();if(C.ui.ddmanager&&!t.dropBehaviour){C.ui.ddmanager.prepareOffsets(this,e)}this._mouseDrag(e,true);if(C.ui.ddmanager){C.ui.ddmanager.dragStart(this,e)}return true},_refreshOffsets:function(e){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:false,parent:this._getParentOffset(),relative:this._getRelativeOffset()};this.offset.click={left:e.pageX-this.offset.left,top:e.pageY-this.offset.top}},_mouseDrag:function(e,t){if(this.hasFixedAncestor){this.offset.parent=this._getParentOffset()}this.position=this._generatePosition(e,true);this.positionAbs=this._convertPositionTo("absolute");if(!t){var i=this._uiHash();if(this._trigger("drag",e,i)===false){this._mouseUp(new C.Event("mouseup",e));return false}this.position=i.position}this.helper[0].style.left=this.position.left+"px";this.helper[0].style.top=this.position.top+"px";if(C.ui.ddmanager){C.ui.ddmanager.drag(this,e)}return false},_mouseStop:function(e){var t=this,i=false;if(C.ui.ddmanager&&!this.options.dropBehaviour){i=C.ui.ddmanager.drop(this,e)}if(this.dropped){i=this.dropped;this.dropped=false}if(this.options.revert==="invalid"&&!i||this.options.revert==="valid"&&i||this.options.revert===true||C.isFunction(this.options.revert)&&this.options.revert.call(this.element,i)){C(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){if(t._trigger("stop",e)!==false){t._clear()}})}else{if(this._trigger("stop",e)!==false){this._clear()}}return false},_mouseUp:function(e){this._unblockFrames();if(C.ui.ddmanager){C.ui.ddmanager.dragStop(this,e)}if(this.handleElement.is(e.target)){this.element.trigger("focus")}return C.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){if(this.helper.is(".ui-draggable-dragging")){this._mouseUp(new C.Event("mouseup",{target:this.element[0]}))}else{this._clear()}return this},_getHandle:function(e){return this.options.handle?!!C(e.target).closest(this.element.find(this.options.handle)).length:true},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element;this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(e){var t=this.options,i=C.isFunction(t.helper),n=i?C(t.helper.apply(this.element[0],[e])):t.helper==="clone"?this.element.clone().removeAttr("id"):this.element;if(!n.parents("body").length){n.appendTo(t.appendTo==="parent"?this.element[0].parentNode:t.appendTo)}if(i&&n[0]===this.element[0]){this._setPositionRelative()}if(n[0]!==this.element[0]&&!/(fixed|absolute)/.test(n.css("position"))){n.css("position","absolute")}return n},_setPositionRelative:function(){if(!/^(?:r|a|f)/.test(this.element.css("position"))){this.element[0].style.position="relative"}},_adjustOffsetFromHelper:function(e){if(typeof e==="string"){e=e.split(" ")}if(C.isArray(e)){e={left:+e[0],top:+e[1]||0}}if("left"in e){this.offset.click.left=e.left+this.margins.left}if("right"in e){this.offset.click.left=this.helperProportions.width-e.right+this.margins.left}if("top"in e){this.offset.click.top=e.top+this.margins.top}if("bottom"in e){this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top}},_isRootNode:function(e){return/(html|body)/i.test(e.tagName)||e===this.document[0]},_getParentOffset:function(){var e=this.offsetParent.offset(),t=this.document[0];if(this.cssPosition==="absolute"&&this.scrollParent[0]!==t&&C.contains(this.scrollParent[0],this.offsetParent[0])){e.left+=this.scrollParent.scrollLeft();e.top+=this.scrollParent.scrollTop()}if(this._isRootNode(this.offsetParent[0])){e={top:0,left:0}}return{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition!=="relative"){return{top:0,left:0}}var e=this.element.position(),t=this._isRootNode(this.scrollParent[0]);return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+(!t?this.scrollParent.scrollTop():0),left:e.left-(parseInt(this.helper.css("left"),10)||0)+(!t?this.scrollParent.scrollLeft():0)}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,t,i,n=this.options,o=this.document[0];this.relativeContainer=null;if(!n.containment){this.containment=null;return}if(n.containment==="window"){this.containment=[C(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,C(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,C(window).scrollLeft()+C(window).width()-this.helperProportions.width-this.margins.left,C(window).scrollTop()+(C(window).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];return}if(n.containment==="document"){this.containment=[0,0,C(o).width()-this.helperProportions.width-this.margins.left,(C(o).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];return}if(n.containment.constructor===Array){this.containment=n.containment;return}if(n.containment==="parent"){n.containment=this.helper[0].parentNode}t=C(n.containment);i=t[0];if(!i){return}e=/(scroll|auto)/.test(t.css("overflow"));this.containment=[(parseInt(t.css("borderLeftWidth"),10)||0)+(parseInt(t.css("paddingLeft"),10)||0),(parseInt(t.css("borderTopWidth"),10)||0)+(parseInt(t.css("paddingTop"),10)||0),(e?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(t.css("borderRightWidth"),10)||0)-(parseInt(t.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(t.css("borderBottomWidth"),10)||0)-(parseInt(t.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom];this.relativeContainer=t},_convertPositionTo:function(e,t){if(!t){t=this.position}var i=e==="absolute"?1:-1,n=this._isRootNode(this.scrollParent[0]);return{top:t.top+this.offset.relative.top*i+this.offset.parent.top*i-(this.cssPosition==="fixed"?-this.offset.scroll.top:n?0:this.offset.scroll.top)*i,left:t.left+this.offset.relative.left*i+this.offset.parent.left*i-(this.cssPosition==="fixed"?-this.offset.scroll.left:n?0:this.offset.scroll.left)*i}},_generatePosition:function(e,t){var i,n,o,s,a=this.options,r=this._isRootNode(this.scrollParent[0]),l=e.pageX,c=e.pageY;if(!r||!this.offset.scroll){this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}}if(t){if(this.containment){if(this.relativeContainer){n=this.relativeContainer.offset();i=[this.containment[0]+n.left,this.containment[1]+n.top,this.containment[2]+n.left,this.containment[3]+n.top]}else{i=this.containment}if(e.pageX-this.offset.click.lefti[2]){l=i[2]+this.offset.click.left}if(e.pageY-this.offset.click.top>i[3]){c=i[3]+this.offset.click.top}}if(a.grid){o=a.grid[1]?this.originalPageY+Math.round((c-this.originalPageY)/a.grid[1])*a.grid[1]:this.originalPageY;c=i?o-this.offset.click.top>=i[1]||o-this.offset.click.top>i[3]?o:o-this.offset.click.top>=i[1]?o-a.grid[1]:o+a.grid[1]:o;s=a.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/a.grid[0])*a.grid[0]:this.originalPageX;l=i?s-this.offset.click.left>=i[0]||s-this.offset.click.left>i[2]?s:s-this.offset.click.left>=i[0]?s-a.grid[0]:s+a.grid[0]:s}if(a.axis==="y"){l=this.originalPageX}if(a.axis==="x"){c=this.originalPageY}}return{top:c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(this.cssPosition==="fixed"?-this.offset.scroll.top:r?0:this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(this.cssPosition==="fixed"?-this.offset.scroll.left:r?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging");if(this.helper[0]!==this.element[0]&&!this.cancelHelperRemoval){this.helper.remove()}this.helper=null;this.cancelHelperRemoval=false;if(this.destroyOnClear){this.destroy()}},_trigger:function(e,t,i){i=i||this._uiHash();C.ui.plugin.call(this,e,[t,i,this],true);if(/^(drag|start|stop)/.test(e)){this.positionAbs=this._convertPositionTo("absolute");i.offset=this.positionAbs}return C.Widget.prototype._trigger.call(this,e,t,i)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});C.ui.plugin.add("draggable","connectToSortable",{start:function(t,e,i){var n=C.extend({},e,{item:i.element});i.sortables=[];C(i.options.connectToSortable).each(function(){var e=C(this).sortable("instance");if(e&&!e.options.disabled){i.sortables.push(e);e.refreshPositions();e._trigger("activate",t,n)}})},stop:function(t,e,i){var n=C.extend({},e,{item:i.element});i.cancelHelperRemoval=false;C.each(i.sortables,function(){var e=this;if(e.isOver){e.isOver=0;i.cancelHelperRemoval=true;e.cancelHelperRemoval=false;e._storedCSS={position:e.placeholder.css("position"),top:e.placeholder.css("top"),left:e.placeholder.css("left")};e._mouseStop(t);e.options.helper=e.options._helper}else{e.cancelHelperRemoval=true;e._trigger("deactivate",t,n)}})},drag:function(i,n,o){C.each(o.sortables,function(){var e=false,t=this;t.positionAbs=o.positionAbs;t.helperProportions=o.helperProportions;t.offset.click=o.offset.click;if(t._intersectsWith(t.containerCache)){e=true;C.each(o.sortables,function(){this.positionAbs=o.positionAbs;this.helperProportions=o.helperProportions;this.offset.click=o.offset.click;if(this!==t&&this._intersectsWith(this.containerCache)&&C.contains(t.element[0],this.element[0])){e=false}return e})}if(e){if(!t.isOver){t.isOver=1;o._parent=n.helper.parent();t.currentItem=n.helper.appendTo(t.element).data("ui-sortable-item",true);t.options._helper=t.options.helper;t.options.helper=function(){return n.helper[0]};i.target=t.currentItem[0];t._mouseCapture(i,true);t._mouseStart(i,true,true);t.offset.click.top=o.offset.click.top;t.offset.click.left=o.offset.click.left;t.offset.parent.left-=o.offset.parent.left-t.offset.parent.left;t.offset.parent.top-=o.offset.parent.top-t.offset.parent.top;o._trigger("toSortable",i);o.dropped=t.element;C.each(o.sortables,function(){this.refreshPositions()});o.currentItem=o.element;t.fromOutside=o}if(t.currentItem){t._mouseDrag(i);n.position=t.position}}else{if(t.isOver){t.isOver=0;t.cancelHelperRemoval=true;t.options._revert=t.options.revert;t.options.revert=false;t._trigger("out",i,t._uiHash(t));t._mouseStop(i,true);t.options.revert=t.options._revert;t.options.helper=t.options._helper;if(t.placeholder){t.placeholder.remove()}n.helper.appendTo(o._parent);o._refreshOffsets(i);n.position=o._generatePosition(i,true);o._trigger("fromSortable",i);o.dropped=false;C.each(o.sortables,function(){this.refreshPositions()})}}})}});C.ui.plugin.add("draggable","cursor",{start:function(e,t,i){var n=C("body"),o=i.options;if(n.css("cursor")){o._cursor=n.css("cursor")}n.css("cursor",o.cursor)},stop:function(e,t,i){var n=i.options;if(n._cursor){C("body").css("cursor",n._cursor)}}});C.ui.plugin.add("draggable","opacity",{start:function(e,t,i){var n=C(t.helper),o=i.options;if(n.css("opacity")){o._opacity=n.css("opacity")}n.css("opacity",o.opacity)},stop:function(e,t,i){var n=i.options;if(n._opacity){C(t.helper).css("opacity",n._opacity)}}});C.ui.plugin.add("draggable","scroll",{start:function(e,t,i){if(!i.scrollParentNotHidden){i.scrollParentNotHidden=i.helper.scrollParent(false)}if(i.scrollParentNotHidden[0]!==i.document[0]&&i.scrollParentNotHidden[0].tagName!=="HTML"){i.overflowOffset=i.scrollParentNotHidden.offset()}},drag:function(e,t,i){var n=i.options,o=false,s=i.scrollParentNotHidden[0],a=i.document[0];if(s!==a&&s.tagName!=="HTML"){if(!n.axis||n.axis!=="x"){if(i.overflowOffset.top+s.offsetHeight-e.pageY=0;u--){r=i.snapElements[u].left-i.margins.left;l=r+i.snapElements[u].width;c=i.snapElements[u].top-i.margins.top;d=c+i.snapElements[u].height;if(ml+p||_d+p||!C.contains(i.snapElements[u].item.ownerDocument,i.snapElements[u].item)){if(i.snapElements[u].snapping){i.options.snap.release&&i.options.snap.release.call(i.element,e,C.extend(i._uiHash(),{snapItem:i.snapElements[u].item}))}i.snapElements[u].snapping=false;continue}if(f.snapMode!=="inner"){n=Math.abs(c-_)<=p;o=Math.abs(d-v)<=p;s=Math.abs(r-m)<=p;a=Math.abs(l-g)<=p;if(n){t.position.top=i._convertPositionTo("relative",{top:c-i.helperProportions.height,left:0}).top}if(o){t.position.top=i._convertPositionTo("relative",{top:d,left:0}).top}if(s){t.position.left=i._convertPositionTo("relative",{top:0,left:r-i.helperProportions.width}).left}if(a){t.position.left=i._convertPositionTo("relative",{top:0,left:l}).left}}h=n||o||s||a;if(f.snapMode!=="outer"){n=Math.abs(c-v)<=p;o=Math.abs(d-_)<=p;s=Math.abs(r-g)<=p;a=Math.abs(l-m)<=p;if(n){t.position.top=i._convertPositionTo("relative",{top:c,left:0}).top}if(o){t.position.top=i._convertPositionTo("relative",{top:d-i.helperProportions.height,left:0}).top}if(s){t.position.left=i._convertPositionTo("relative",{top:0,left:r}).left}if(a){t.position.left=i._convertPositionTo("relative",{top:0,left:l-i.helperProportions.width}).left}}if(!i.snapElements[u].snapping&&(n||o||s||a||h)){i.options.snap.snap&&i.options.snap.snap.call(i.element,e,C.extend(i._uiHash(),{snapItem:i.snapElements[u].item}))}i.snapElements[u].snapping=n||o||s||a||h}}});C.ui.plugin.add("draggable","stack",{start:function(e,t,i){var n,o=i.options,s=C.makeArray(C(o.stack)).sort(function(e,t){return(parseInt(C(e).css("zIndex"),10)||0)-(parseInt(C(t).css("zIndex"),10)||0)});if(!s.length){return}n=parseInt(C(s[0]).css("zIndex"),10)||0;C(s).each(function(e){C(this).css("zIndex",n+e)});this.css("zIndex",n+s.length)}});C.ui.plugin.add("draggable","zIndex",{start:function(e,t,i){var n=C(t.helper),o=i.options;if(n.css("zIndex")){o._zIndex=n.css("zIndex")}n.css("zIndex",o.zIndex)},stop:function(e,t,i){var n=i.options;if(n._zIndex){C(t.helper).css("zIndex",n._zIndex)}}});var k=C.ui.draggable;C.widget("ui.resizable",C.ui.mouse,{version:"1.12.1",widgetEventPrefix:"resize",options:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:false,ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(e){return parseFloat(e)||0},_isNumber:function(e){return!isNaN(parseFloat(e))},_hasScroll:function(e,t){if(C(e).css("overflow")==="hidden"){return false}var i=t&&t==="left"?"scrollLeft":"scrollTop",n=false;if(e[i]>0){return true}e[i]=1;n=e[i]>0;e[i]=0;return n},_create:function(){var e,t=this.options,i=this;this._addClass("ui-resizable");C.extend(this,{_aspectRatio:!!t.aspectRatio,aspectRatio:t.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:t.helper||t.ghost||t.animate?t.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)){this.element.wrap(C("
    ").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")}));this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance"));this.elementIsWrapper=true;e={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")};this.element.css(e);this.originalElement.css("margin",0);this.originalResizeStyle=this.originalElement.css("resize");this.originalElement.css("resize","none");this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"}));this.originalElement.css(e);this._proportionallyResize()}this._setupHandles();if(t.autoHide){C(this.element).on("mouseenter",function(){if(t.disabled){return}i._removeClass("ui-resizable-autohide");i._handles.show()}).on("mouseleave",function(){if(t.disabled){return}if(!i.resizing){i._addClass("ui-resizable-autohide");i._handles.hide()}})}this._mouseInit()},_destroy:function(){this._mouseDestroy();var e,t=function(e){C(e).removeData("resizable").removeData("ui-resizable").off(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){t(this.element);e=this.element;this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e);e.remove()}this.originalElement.css("resize",this.originalResizeStyle);t(this.originalElement);return this},_setOption:function(e,t){this._super(e,t);switch(e){case"handles":this._removeHandles();this._setupHandles();break;default:break}},_setupHandles:function(){var e=this.options,t,i,n,o,s,a=this;this.handles=e.handles||(!C(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"});this._handles=C();if(this.handles.constructor===String){if(this.handles==="all"){this.handles="n,e,s,w,se,sw,ne,nw"}n=this.handles.split(",");this.handles={};for(i=0;i");this._addClass(s,"ui-resizable-handle "+o);s.css({zIndex:e.zIndex});this.handles[t]=".ui-resizable-"+t;this.element.append(s)}}this._renderAxis=function(e){var t,i,n,o;e=e||this.element;for(t in this.handles){if(this.handles[t].constructor===String){this.handles[t]=this.element.children(this.handles[t]).first().show()}else if(this.handles[t].jquery||this.handles[t].nodeType){this.handles[t]=C(this.handles[t]);this._on(this.handles[t],{mousedown:a._mouseDown})}if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)){i=C(this.handles[t],this.element);o=/sw|ne|nw|se|n|s/.test(t)?i.outerHeight():i.outerWidth();n=["padding",/ne|nw|n/.test(t)?"Top":/se|sw|s/.test(t)?"Bottom":/^e$/.test(t)?"Right":"Left"].join("");e.css(n,o);this._proportionallyResize()}this._handles=this._handles.add(this.handles[t])}};this._renderAxis(this.element);this._handles=this._handles.add(this.element.find(".ui-resizable-handle"));this._handles.disableSelection();this._handles.on("mouseover",function(){if(!a.resizing){if(this.className){s=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)}a.axis=s&&s[1]?s[1]:"se"}});if(e.autoHide){this._handles.hide();this._addClass("ui-resizable-autohide")}},_removeHandles:function(){this._handles.remove()},_mouseCapture:function(e){var t,i,n=false;for(t in this.handles){i=C(this.handles[t])[0];if(i===e.target||C.contains(i,e.target)){n=true}}return!this.options.disabled&&n},_mouseStart:function(e){var t,i,n,o=this.options,s=this.element;this.resizing=true;this._renderProxy();t=this._num(this.helper.css("left"));i=this._num(this.helper.css("top"));if(o.containment){t+=C(o.containment).scrollLeft()||0;i+=C(o.containment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:t,top:i};this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:s.width(),height:s.height()};this.originalSize=this._helper?{width:s.outerWidth(),height:s.outerHeight()}:{width:s.width(),height:s.height()};this.sizeDiff={width:s.outerWidth()-s.width(),height:s.outerHeight()-s.height()};this.originalPosition={left:t,top:i};this.originalMousePosition={left:e.pageX,top:e.pageY};this.aspectRatio=typeof o.aspectRatio==="number"?o.aspectRatio:this.originalSize.width/this.originalSize.height||1;n=C(".ui-resizable-"+this.axis).css("cursor");C("body").css("cursor",n==="auto"?this.axis+"-resize":n);this._addClass("ui-resizable-resizing");this._propagate("start",e);return true},_mouseDrag:function(e){var t,i,n=this.originalMousePosition,o=this.axis,s=e.pageX-n.left||0,a=e.pageY-n.top||0,r=this._change[o];this._updatePrevProperties();if(!r){return false}t=r.apply(this,[e,s,a]);this._updateVirtualBoundaries(e.shiftKey);if(this._aspectRatio||e.shiftKey){t=this._updateRatio(t,e)}t=this._respectSize(t,e);this._updateCache(t);this._propagate("resize",e);i=this._applyChanges();if(!this._helper&&this._proportionallyResizeElements.length){this._proportionallyResize()}if(!C.isEmptyObject(i)){this._updatePrevProperties();this._trigger("resize",e,this.ui());this._applyChanges()}return false},_mouseStop:function(e){this.resizing=false;var t,i,n,o,s,a,r,l=this.options,c=this;if(this._helper){t=this._proportionallyResizeElements;i=t.length&&/textarea/i.test(t[0].nodeName);n=i&&this._hasScroll(t[0],"left")?0:c.sizeDiff.height;o=i?0:c.sizeDiff.width;s={width:c.helper.width()-o,height:c.helper.height()-n};a=parseFloat(c.element.css("left"))+(c.position.left-c.originalPosition.left)||null;r=parseFloat(c.element.css("top"))+(c.position.top-c.originalPosition.top)||null;if(!l.animate){this.element.css(C.extend(s,{top:r,left:a}))}c.helper.height(c.size.height);c.helper.width(c.size.width);if(this._helper&&!l.animate){this._proportionallyResize()}}C("body").css("cursor","auto");this._removeClass("ui-resizable-resizing");this._propagate("stop",e);if(this._helper){this.helper.remove()}return false},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left};this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var e={};if(this.position.top!==this.prevPosition.top){e.top=this.position.top+"px"}if(this.position.left!==this.prevPosition.left){e.left=this.position.left+"px"}if(this.size.width!==this.prevSize.width){e.width=this.size.width+"px"}if(this.size.height!==this.prevSize.height){e.height=this.size.height+"px"}this.helper.css(e);return e},_updateVirtualBoundaries:function(e){var t,i,n,o,s,a=this.options;s={minWidth:this._isNumber(a.minWidth)?a.minWidth:0,maxWidth:this._isNumber(a.maxWidth)?a.maxWidth:Infinity,minHeight:this._isNumber(a.minHeight)?a.minHeight:0,maxHeight:this._isNumber(a.maxHeight)?a.maxHeight:Infinity};if(this._aspectRatio||e){t=s.minHeight*this.aspectRatio;n=s.minWidth/this.aspectRatio;i=s.maxHeight*this.aspectRatio;o=s.maxWidth/this.aspectRatio;if(t>s.minWidth){s.minWidth=t}if(n>s.minHeight){s.minHeight=n}if(ie.width,a=this._isNumber(e.height)&&t.minHeight&&t.minHeight>e.height,r=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,c=/sw|nw|w/.test(i),d=/nw|ne|n/.test(i);if(s){e.width=t.minWidth}if(a){e.height=t.minHeight}if(n){e.width=t.maxWidth}if(o){e.height=t.maxHeight}if(s&&c){e.left=r-t.minWidth}if(n&&c){e.left=r-t.maxWidth}if(a&&d){e.top=l-t.minHeight}if(o&&d){e.top=l-t.maxHeight}if(!e.width&&!e.height&&!e.left&&e.top){e.top=null}else if(!e.width&&!e.height&&!e.top&&e.left){e.left=null}return e},_getPaddingPlusBorderDimensions:function(e){var t=0,i=[],n=[e.css("borderTopWidth"),e.css("borderRightWidth"),e.css("borderBottomWidth"),e.css("borderLeftWidth")],o=[e.css("paddingTop"),e.css("paddingRight"),e.css("paddingBottom"),e.css("paddingLeft")];for(;t<4;t++){i[t]=parseFloat(n[t])||0;i[t]+=parseFloat(o[t])||0}return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(!this._proportionallyResizeElements.length){return}var e,t=0,i=this.helper||this.element;for(;t
    ");this._addClass(this.helper,this._helper);this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++t.zIndex});this.helper.appendTo("body").disableSelection()}else{this.helper=this.element}},_change:{e:function(e,t){return{width:this.originalSize.width+t}},w:function(e,t){var i=this.originalSize,n=this.originalPosition;return{left:n.left+t,width:i.width-t}},n:function(e,t,i){var n=this.originalSize,o=this.originalPosition;return{top:o.top+i,height:n.height-i}},s:function(e,t,i){return{height:this.originalSize.height+i}},se:function(e,t,i){return C.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,t,i]))},sw:function(e,t,i){return C.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,t,i]))},ne:function(e,t,i){return C.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,t,i]))},nw:function(e,t,i){return C.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,t,i]))}},_propagate:function(e,t){C.ui.plugin.call(this,e,[t,this.ui()]);e!=="resize"&&this._trigger(e,t,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}});C.ui.plugin.add("resizable","animate",{stop:function(t){var i=C(this).resizable("instance"),e=i.options,n=i._proportionallyResizeElements,o=n.length&&/textarea/i.test(n[0].nodeName),s=o&&i._hasScroll(n[0],"left")?0:i.sizeDiff.height,a=o?0:i.sizeDiff.width,r={width:i.size.width-a,height:i.size.height-s},l=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,c=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null;i.element.animate(C.extend(r,c&&l?{top:c,left:l}:{}),{duration:e.animateDuration,easing:e.animateEasing,step:function(){var e={width:parseFloat(i.element.css("width")),height:parseFloat(i.element.css("height")),top:parseFloat(i.element.css("top")),left:parseFloat(i.element.css("left"))};if(n&&n.length){C(n[0]).css({width:e.width,height:e.height})}i._updateCache(e);i._propagate("resize",t)}})}});C.ui.plugin.add("resizable","containment",{start:function(){var i,n,e,t,o,s,a,r=C(this).resizable("instance"),l=r.options,c=r.element,d=l.containment,u=d instanceof C?d.get(0):/parent/.test(d)?c.parent().get(0):d;if(!u){return}r.containerElement=C(u);if(/document/.test(d)||d===document){r.containerOffset={left:0,top:0};r.containerPosition={left:0,top:0};r.parentData={element:C(document),left:0,top:0,width:C(document).width(),height:C(document).height()||document.body.parentNode.scrollHeight}}else{i=C(u);n=[];C(["Top","Right","Left","Bottom"]).each(function(e,t){n[e]=r._num(i.css("padding"+t))});r.containerOffset=i.offset();r.containerPosition=i.position();r.containerSize={height:i.innerHeight()-n[3],width:i.innerWidth()-n[1]};e=r.containerOffset;t=r.containerSize.height;o=r.containerSize.width;s=r._hasScroll(u,"left")?u.scrollWidth:o;a=r._hasScroll(u)?u.scrollHeight:t;r.parentData={element:u,left:e.left,top:e.top,width:s,height:a}}},resize:function(e){var t,i,n,o,s=C(this).resizable("instance"),a=s.options,r=s.containerOffset,l=s.position,c=s._aspectRatio||e.shiftKey,d={top:0,left:0},u=s.containerElement,h=true;if(u[0]!==document&&/static/.test(u.css("position"))){d=r}if(l.left<(s._helper?r.left:0)){s.size.width=s.size.width+(s._helper?s.position.left-r.left:s.position.left-d.left);if(c){s.size.height=s.size.width/s.aspectRatio;h=false}s.position.left=a.helper?r.left:0}if(l.top<(s._helper?r.top:0)){s.size.height=s.size.height+(s._helper?s.position.top-r.top:s.position.top);if(c){s.size.width=s.size.height*s.aspectRatio;h=false}s.position.top=s._helper?r.top:0}n=s.containerElement.get(0)===s.element.parent().get(0);o=/relative|absolute/.test(s.containerElement.css("position"));if(n&&o){s.offset.left=s.parentData.left+s.position.left;s.offset.top=s.parentData.top+s.position.top}else{s.offset.left=s.element.offset().left;s.offset.top=s.element.offset().top}t=Math.abs(s.sizeDiff.width+(s._helper?s.offset.left-d.left:s.offset.left-r.left));i=Math.abs(s.sizeDiff.height+(s._helper?s.offset.top-d.top:s.offset.top-r.top));if(t+s.size.width>=s.parentData.width){s.size.width=s.parentData.width-t;if(c){s.size.height=s.size.width/s.aspectRatio;h=false}}if(i+s.size.height>=s.parentData.height){s.size.height=s.parentData.height-i;if(c){s.size.width=s.size.height*s.aspectRatio;h=false}}if(!h){s.position.left=s.prevPosition.left;s.position.top=s.prevPosition.top;s.size.width=s.prevSize.width;s.size.height=s.prevSize.height}},stop:function(){var e=C(this).resizable("instance"),t=e.options,i=e.containerOffset,n=e.containerPosition,o=e.containerElement,s=C(e.helper),a=s.offset(),r=s.outerWidth()-e.sizeDiff.width,l=s.outerHeight()-e.sizeDiff.height;if(e._helper&&!t.animate&&/relative/.test(o.css("position"))){C(this).css({left:a.left-n.left-i.left,width:r,height:l})}if(e._helper&&!t.animate&&/static/.test(o.css("position"))){C(this).css({left:a.left-n.left-i.left,width:r,height:l})}}});C.ui.plugin.add("resizable","alsoResize",{start:function(){var e=C(this).resizable("instance"),t=e.options;C(t.alsoResize).each(function(){var e=C(this);e.data("ui-resizable-alsoresize",{width:parseFloat(e.width()),height:parseFloat(e.height()),left:parseFloat(e.css("left")),top:parseFloat(e.css("top"))})})},resize:function(e,i){var t=C(this).resizable("instance"),n=t.options,o=t.originalSize,s=t.originalPosition,a={height:t.size.height-o.height||0,width:t.size.width-o.width||0,top:t.position.top-s.top||0,left:t.position.left-s.left||0};C(n.alsoResize).each(function(){var e=C(this),n=C(this).data("ui-resizable-alsoresize"),o={},t=e.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];C.each(t,function(e,t){var i=(n[t]||0)+(a[t]||0);if(i&&i>=0){o[t]=i||null}});e.css(o)})},stop:function(){C(this).removeData("ui-resizable-alsoresize")}});C.ui.plugin.add("resizable","ghost",{start:function(){var e=C(this).resizable("instance"),t=e.size;e.ghost=e.originalElement.clone();e.ghost.css({opacity:.25,display:"block",position:"relative",height:t.height,width:t.width,margin:0,left:0,top:0});e._addClass(e.ghost,"ui-resizable-ghost");if(C.uiBackCompat!==false&&typeof e.options.ghost==="string"){e.ghost.addClass(this.options.ghost)}e.ghost.appendTo(e.helper)},resize:function(){var e=C(this).resizable("instance");if(e.ghost){e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})}},stop:function(){var e=C(this).resizable("instance");if(e.ghost&&e.helper){e.helper.get(0).removeChild(e.ghost.get(0))}}});C.ui.plugin.add("resizable","grid",{resize:function(){var e,t=C(this).resizable("instance"),i=t.options,n=t.size,o=t.originalSize,s=t.originalPosition,a=t.axis,r=typeof i.grid==="number"?[i.grid,i.grid]:i.grid,l=r[0]||1,c=r[1]||1,d=Math.round((n.width-o.width)/l)*l,u=Math.round((n.height-o.height)/c)*c,h=o.width+d,f=o.height+u,p=i.maxWidth&&i.maxWidthh,v=i.minHeight&&i.minHeight>f;i.grid=r;if(m){h+=l}if(v){f+=c}if(p){h-=l}if(g){f-=c}if(/^(se|s|e)$/.test(a)){t.size.width=h;t.size.height=f}else if(/^(ne)$/.test(a)){t.size.width=h;t.size.height=f;t.position.top=s.top-u}else if(/^(sw)$/.test(a)){t.size.width=h;t.size.height=f;t.position.left=s.left-d}else{if(f-c<=0||h-l<=0){e=t._getPaddingPlusBorderDimensions(this)}if(f-c>0){t.size.height=f;t.position.top=s.top-u}else{f=c-e.height;t.size.height=f;t.position.top=s.top+o.height-f}if(h-l>0){t.size.width=h;t.position.left=s.left-d}else{h=l-e.width;t.size.width=h;t.position.left=s.left+o.width-h}}}});var A=C.ui.resizable;var S=/ui-corner-([a-z]){2,6}/g;var T=C.widget("ui.controlgroup",{version:"1.12.1",defaultElement:"
    ",options:{direction:"horizontal",disabled:null,onlyVisible:true,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar");this.refresh()},_destroy:function(){this._callChildMethod("destroy");this.childWidgets.removeData("ui-controlgroup-data");this.element.removeAttr("role");if(this.options.items.controlgroupLabel){this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()}},_initWidgets:function(){var a=this,r=[];C.each(this.options.items,function(o,e){var t;var s={};if(!e){return}if(o==="controlgroupLabel"){t=a.element.find(e);t.each(function(){var e=C(this);if(e.children(".ui-controlgroup-label-contents").length){return}e.contents().wrapAll("")});a._addClass(t,null,"ui-widget ui-widget-content ui-state-default");r=r.concat(t.get());return}if(!C.fn[o]){return}if(a["_"+o+"Options"]){s=a["_"+o+"Options"]("middle")}else{s={classes:{}}}a.element.find(e).each(function(){var e=C(this);var t=e[o]("instance");var i=C.widget.extend({},s);if(o==="button"&&e.parent(".ui-spinner").length){return}if(!t){t=e[o]()[o]("instance")}if(t){i.classes=a._resolveClassesValues(i.classes,t)}e[o](i);var n=e[o]("widget");C.data(n[0],"ui-controlgroup-data",t?t:e[o]("instance"));r.push(n[0])})});this.childWidgets=C(C.unique(r));this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(i){this.childWidgets.each(function(){var e=C(this),t=e.data("ui-controlgroup-data");if(t&&t[i]){t[i]()}})},_updateCornerClass:function(e,t){var i="ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all";var n=this._buildSimpleOptions(t,"label").classes.label;this._removeClass(e,null,i);this._addClass(e,null,n)},_buildSimpleOptions:function(e,t){var i=this.options.direction==="vertical";var n={classes:{}};n.classes[t]={middle:"",first:"ui-corner-"+(i?"top":"left"),last:"ui-corner-"+(i?"bottom":"right"),only:"ui-corner-all"}[e];return n},_spinnerOptions:function(e){var t=this._buildSimpleOptions(e,"ui-spinner");t.classes["ui-spinner-up"]="";t.classes["ui-spinner-down"]="";return t},_buttonOptions:function(e){return this._buildSimpleOptions(e,"ui-button")},_checkboxradioOptions:function(e){return this._buildSimpleOptions(e,"ui-checkboxradio-label")},_selectmenuOptions:function(e){var t=this.options.direction==="vertical";return{width:t?"auto":false,classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(t?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(t?"top":"left")},last:{"ui-selectmenu-button-open":t?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(t?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[e]}},_resolveClassesValues:function(i,n){var o={};C.each(i,function(e){var t=n.options.classes[e]||"";t=C.trim(t.replace(S,""));o[e]=(t+" "+i[e]).replace(/\s+/g," ")});return o},_setOption:function(e,t){if(e==="direction"){this._removeClass("ui-controlgroup-"+this.options.direction)}this._super(e,t);if(e==="disabled"){this._callChildMethod(t?"disable":"enable");return}this.refresh()},refresh:function(){var o,s=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction);if(this.options.direction==="horizontal"){this._addClass(null,"ui-helper-clearfix")}this._initWidgets();o=this.childWidgets;if(this.options.onlyVisible){o=o.filter(":visible")}if(o.length){C.each(["first","last"],function(e,t){var i=o[t]().data("ui-controlgroup-data");if(i&&s["_"+i.widgetName+"Options"]){var n=s["_"+i.widgetName+"Options"](o.length===1?"only":t);n.classes=s._resolveClassesValues(n.classes,i);i.element[i.widgetName](n)}else{s._updateCornerClass(o[t](),t)}});this._callChildMethod("refresh")}}});C.widget("ui.checkboxradio",[C.ui.formResetMixin,{version:"1.12.1",options:{disabled:null,label:null,icon:true,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var e,t;var i=this;var n=this._super()||{};this._readType();t=this.element.labels();this.label=C(t[t.length-1]);if(!this.label.length){C.error("No label found for checkboxradio widget")}this.originalLabel="";this.label.contents().not(this.element[0]).each(function(){i.originalLabel+=this.nodeType===3?C(this).text():this.outerHTML});if(this.originalLabel){n.label=this.originalLabel}e=this.element[0].disabled;if(e!=null){n.disabled=e}return n},_create:function(){var e=this.element[0].checked;this._bindFormResetHandler();if(this.options.disabled==null){this.options.disabled=this.element[0].disabled}this._setOption("disabled",this.options.disabled);this._addClass("ui-checkboxradio","ui-helper-hidden-accessible");this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget");if(this.type==="radio"){this._addClass(this.label,"ui-checkboxradio-radio-label")}if(this.options.label&&this.options.label!==this.originalLabel){this._updateLabel()}else if(this.originalLabel){this.options.label=this.originalLabel}this._enhance();if(e){this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active");if(this.icon){this._addClass(this.icon,null,"ui-state-hover")}}this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var e=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type;if(e!=="input"||!/radio|checkbox/.test(this.type)){C.error("Can't create checkboxradio on element.nodeName="+e+" and element.type="+this.type)}},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var e;var t=this.element[0].name;var i="input[name='"+C.ui.escapeSelector(t)+"']";if(!t){return C([])}if(this.form.length){e=C(this.form[0].elements).filter(i)}else{e=C(i).filter(function(){return C(this).form().length===0})}return e.not(this.element)},_toggleClasses:function(){var e=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",e);if(this.options.icon&&this.type==="checkbox"){this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",e)._toggleClass(this.icon,null,"ui-icon-blank",!e)}if(this.type==="radio"){this._getRadioGroup().each(function(){var e=C(this).checkboxradio("instance");if(e){e._removeClass(e.label,"ui-checkboxradio-checked","ui-state-active")}})}},_destroy:function(){this._unbindFormResetHandler();if(this.icon){this.icon.remove();this.iconSpace.remove()}},_setOption:function(e,t){if(e==="label"&&!t){return}this._super(e,t);if(e==="disabled"){this._toggleClass(this.label,null,"ui-state-disabled",t);this.element[0].disabled=t;return}this.refresh()},_updateIcon:function(e){var t="ui-icon ui-icon-background ";if(this.options.icon){if(!this.icon){this.icon=C("");this.iconSpace=C(" ");this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")}if(this.type==="checkbox"){t+=e?"ui-icon-check ui-state-checked":"ui-icon-blank";this._removeClass(this.icon,null,e?"ui-icon-blank":"ui-icon-check")}else{t+="ui-icon-blank"}this._addClass(this.icon,"ui-checkboxradio-icon",t);if(!e){this._removeClass(this.icon,null,"ui-icon-check ui-state-checked")}this.icon.prependTo(this.label).after(this.iconSpace)}else if(this.icon!==undefined){this.icon.remove();this.iconSpace.remove();delete this.icon}},_updateLabel:function(){var e=this.label.contents().not(this.element[0]);if(this.icon){e=e.not(this.icon[0])}if(this.iconSpace){e=e.not(this.iconSpace[0])}e.remove();this.label.append(this.options.label)},refresh:function(){var e=this.element[0].checked,t=this.element[0].disabled;this._updateIcon(e);this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",e);if(this.options.label!==null){this._updateLabel()}if(t!==this.options.disabled){this._setOptions({disabled:t})}}}]);var x=C.ui.checkboxradio;C.widget("ui.button",{version:"1.12.1",defaultElement:"").button({label:C("").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:false}).appendTo(this.uiDialogTitlebar);this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close");this._on(this.uiDialogTitlebarClose,{click:function(e){e.preventDefault();this.close(e)}});e=C("").uniqueId().prependTo(this.uiDialogTitlebar);this._addClass(e,"ui-dialog-title");this._title(e);this.uiDialogTitlebar.prependTo(this.uiDialog);this.uiDialog.attr({"aria-labelledby":e.attr("id")})},_title:function(e){if(this.options.title){e.text(this.options.title)}else{e.html(" ")}},_createButtonPane:function(){this.uiDialogButtonPane=C("
    ");this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix");this.uiButtonSet=C("
    ").appendTo(this.uiDialogButtonPane);this._addClass(this.uiButtonSet,"ui-dialog-buttonset");this._createButtons()},_createButtons:function(){var o=this,e=this.options.buttons;this.uiDialogButtonPane.remove();this.uiButtonSet.empty();if(C.isEmptyObject(e)||C.isArray(e)&&!e.length){this._removeClass(this.uiDialog,"ui-dialog-buttons");return}C.each(e,function(e,t){var i,n;t=C.isFunction(t)?{click:t,text:e}:t;t=C.extend({type:"button"},t);i=t.click;n={icon:t.icon,iconPosition:t.iconPosition,showLabel:t.showLabel,icons:t.icons,text:t.text};delete t.click;delete t.icon;delete t.iconPosition;delete t.showLabel;delete t.icons;if(typeof t.text==="boolean"){delete t.text}C("",t).button(n).appendTo(o.uiButtonSet).on("click",function(){i.apply(o.element[0],arguments)})});this._addClass(this.uiDialog,"ui-dialog-buttons");this.uiDialogButtonPane.appendTo(this.uiDialog)},_makeDraggable:function(){var o=this,s=this.options;function a(e){return{position:e.position,offset:e.offset}}this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(e,t){o._addClass(C(this),"ui-dialog-dragging");o._blockFrames();o._trigger("dragStart",e,a(t))},drag:function(e,t){o._trigger("drag",e,a(t))},stop:function(e,t){var i=t.offset.left-o.document.scrollLeft(),n=t.offset.top-o.document.scrollTop();s.position={my:"left top",at:"left"+(i>=0?"+":"")+i+" "+"top"+(n>=0?"+":"")+n,of:o.window};o._removeClass(C(this),"ui-dialog-dragging");o._unblockFrames();o._trigger("dragStop",e,a(t))}})},_makeResizable:function(){var s=this,a=this.options,e=a.resizable,t=this.uiDialog.css("position"),i=typeof e==="string"?e:"n,e,s,w,se,sw,ne,nw";function r(e){return{originalPosition:e.originalPosition,originalSize:e.originalSize,position:e.position,size:e.size}}this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:a.maxWidth,maxHeight:a.maxHeight,minWidth:a.minWidth,minHeight:this._minHeight(),handles:i,start:function(e,t){s._addClass(C(this),"ui-dialog-resizing");s._blockFrames();s._trigger("resizeStart",e,r(t))},resize:function(e,t){s._trigger("resize",e,r(t))},stop:function(e,t){var i=s.uiDialog.offset(),n=i.left-s.document.scrollLeft(),o=i.top-s.document.scrollTop();a.height=s.uiDialog.height();a.width=s.uiDialog.width();a.position={my:"left top",at:"left"+(n>=0?"+":"")+n+" "+"top"+(o>=0?"+":"")+o,of:s.window};s._removeClass(C(this),"ui-dialog-resizing");s._unblockFrames();s._trigger("resizeStop",e,r(t))}}).css("position",t)},_trackFocus:function(){this._on(this.widget(),{focusin:function(e){this._makeFocusTarget();this._focusedElement=C(e.target)}})},_makeFocusTarget:function(){this._untrackInstance();this._trackingInstances().unshift(this)},_untrackInstance:function(){var e=this._trackingInstances(),t=C.inArray(this,e);if(t!==-1){e.splice(t,1)}},_trackingInstances:function(){var e=this.document.data("ui-dialog-instances");if(!e){e=[];this.document.data("ui-dialog-instances",e)}return e},_minHeight:function(){var e=this.options;return e.height==="auto"?e.minHeight:Math.min(e.minHeight,e.height)},_position:function(){var e=this.uiDialog.is(":visible");if(!e){this.uiDialog.show()}this.uiDialog.position(this.options.position);if(!e){this.uiDialog.hide()}},_setOptions:function(e){var i=this,n=false,o={};C.each(e,function(e,t){i._setOption(e,t);if(e in i.sizeRelatedOptions){n=true}if(e in i.resizableRelatedOptions){o[e]=t}});if(n){this._size();this._position()}if(this.uiDialog.is(":data(ui-resizable)")){this.uiDialog.resizable("option",o)}},_setOption:function(e,t){var i,n,o=this.uiDialog;if(e==="disabled"){return}this._super(e,t);if(e==="appendTo"){this.uiDialog.appendTo(this._appendTo())}if(e==="buttons"){this._createButtons()}if(e==="closeText"){this.uiDialogTitlebarClose.button({label:C("").text(""+this.options.closeText).html()})}if(e==="draggable"){i=o.is(":data(ui-draggable)");if(i&&!t){o.draggable("destroy")}if(!i&&t){this._makeDraggable()}}if(e==="position"){this._position()}if(e==="resizable"){n=o.is(":data(ui-resizable)");if(n&&!t){o.resizable("destroy")}if(n&&typeof t==="string"){o.resizable("option","handles",t)}if(!n&&t!==false){this._makeResizable()}}if(e==="title"){this._title(this.uiDialogTitlebar.find(".ui-dialog-title"))}},_size:function(){var e,t,i,n=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0});if(n.minWidth>n.width){n.width=n.minWidth}e=this.uiDialog.css({height:"auto",width:n.width}).outerHeight();t=Math.max(0,n.minHeight-e);i=typeof n.maxHeight==="number"?Math.max(0,n.maxHeight-e):"none";if(n.height==="auto"){this.element.css({minHeight:t,maxHeight:i,height:"auto"})}else{this.element.height(Math.max(0,n.height-e))}if(this.uiDialog.is(":data(ui-resizable)")){this.uiDialog.resizable("option","minHeight",this._minHeight())}},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var e=C(this);return C("
    ").css({position:"absolute",width:e.outerWidth(),height:e.outerHeight()}).appendTo(e.parent()).offset(e.offset())[0]})},_unblockFrames:function(){if(this.iframeBlocks){this.iframeBlocks.remove();delete this.iframeBlocks}},_allowInteraction:function(e){if(C(e.target).closest(".ui-dialog").length){return true}return!!C(e.target).closest(".ui-datepicker").length},_createOverlay:function(){if(!this.options.modal){return}var t=true;this._delay(function(){t=false});if(!this.document.data("ui-dialog-overlays")){this._on(this.document,{focusin:function(e){if(t){return}if(!this._allowInteraction(e)){e.preventDefault();this._trackingInstances()[0]._focusTabbable()}}})}this.overlay=C("
    ").appendTo(this._appendTo());this._addClass(this.overlay,null,"ui-widget-overlay ui-front");this._on(this.overlay,{mousedown:"_keepFocus"});this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1)},_destroyOverlay:function(){if(!this.options.modal){return}if(this.overlay){var e=this.document.data("ui-dialog-overlays")-1;if(!e){this._off(this.document,"focusin");this.document.removeData("ui-dialog-overlays")}else{this.document.data("ui-dialog-overlays",e)}this.overlay.remove();this.overlay=null}}});if(C.uiBackCompat!==false){C.widget("ui.dialog",C.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super();this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(e,t){if(e==="dialogClass"){this.uiDialog.removeClass(this.options.dialogClass).addClass(t)}this._superApply(arguments)}})}var I=C.ui.dialog});(function(r,l,c,d,u,e){function h(e,t){if(t){var i=t.getAttribute("viewBox"),n=r.createDocumentFragment(),o=t.cloneNode(true);if(i){e.setAttribute("viewBox",i)}while(o.childNodes.length){n.appendChild(o.childNodes[0])}e.appendChild(n)}}function f(){var e=this,t=r.createElement("x"),i=e.s;t.innerHTML=e.responseText;e.onload=function(){i.splice(0).map(function(e){h(e[0],t.querySelector("#"+e[1].replace(/(\W)/g,"\\$1")))})};e.onload()}function p(){var e;while(e=l[0]){if(u){var t=new Image;t.src=e.getAttribute("xlink:href").replace("#",".").replace(/^\./,"")+".png";e.parentNode.replaceChild(t,e)}else{var i=e.parentNode,n=e.getAttribute("xlink:href").split("#"),o=n[0],s=n[1];i.removeChild(e);if(o.length){var a=d[o]=d[o]||new XMLHttpRequest;if(!a.s){a.s=[];a.open("GET",o);a.onload=f;a.send()}a.s.push([i,s]);if(a.readyState===4){a.onload()}}else{h(i,r.getElementById(s))}}}c(p)}if(u||e){p()}})(document,document.getElementsByTagName("use"),window.requestAnimationFrame||window.setTimeout,{},/MSIE\s[1-8]\b/.test(navigator.userAgent),/Trident\/[567]\b/.test(navigator.userAgent),document.createElement("svg"),document.createElement("use"));(function(e,t,i){var n=window.matchMedia;if(typeof module!=="undefined"&&module.exports){module.exports=i(n)}else if(typeof define==="function"&&define.amd){define(function(){return t[e]=i(n)})}else{t[e]=i(n)}})("enquire",this,function(n){"use strict";function s(e,t){var i=0,n=e.length,o;for(i;i');e.attr("data-origin","#"+n);e.after(o);t[i](e);t.addClass("is-active");e.toggleClass("js-move-to js-moved");if(e.attr("data-toggle-classes")){e.toggleClass(e.attr("data-toggle-classes"))}}function a(e){var t=s(e.attr("data-origin"));var i=s(e.attr("data-target"));t.replaceWith(e);i.removeClass("is-active");e.toggleClass("js-moved js-move-to");if(e.attr("data-toggle-classes")){e.toggleClass(e.attr("data-toggle-classes"))}}s.fn.moveblocs=function(e){var t=s.extend({},e);return this.each(function(e,t){var i=s(t);var n=i.data("conditions");enquire.register(n,{match:function(){o(i)},unmatch:function(){a(i)}})})}})(jQuery);(function(e){if(typeof define==="function"&&define.amd){define(["jquery"],e)}else{e(jQuery)}})(function(d,u){"use strict";d.infinitescroll=function e(t,i,n){this.element=d(n);if(!this._create(t,i)){this.failed=true}};d.infinitescroll.defaults={loading:{finished:u,finishedMsg:"Congratulations, you've reached the end of the internet.",img:"data:image/gif;base64,R0lGODlh3AATAPQeAPDy+MnQ6LW/4N3h8MzT6rjC4sTM5r/I5NHX7N7j8c7U6tvg8OLl8uXo9Ojr9b3G5MfP6Ovu9tPZ7PT1+vX2+tbb7vf4+8/W69jd7rC73vn5/O/x+K243ai02////wAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQECgD/ACwAAAAA3AATAAAF/6AnjmRpnmiqrmzrvnAsz3Rt33iu73zv/8CgcEj0BAScpHLJbDqf0Kh0Sq1ar9isdioItAKGw+MAKYMFhbF63CW438f0mg1R2O8EuXj/aOPtaHx7fn96goR4hmuId4qDdX95c4+RBIGCB4yAjpmQhZN0YGYGXitdZBIVGAsLoq4BBKQDswm1CQRkcG6ytrYKubq8vbfAcMK9v7q7EMO1ycrHvsW6zcTKsczNz8HZw9vG3cjTsMIYqQkCLBwHCgsMDQ4RDAYIqfYSFxDxEfz88/X38Onr16+Bp4ADCco7eC8hQYMAEe57yNCew4IVBU7EGNDiRn8Z831cGLHhSIgdFf9chIeBg7oA7gjaWUWTVQAGE3LqBDCTlc9WOHfm7PkTqNCh54rePDqB6M+lR536hCpUqs2gVZM+xbrTqtGoWqdy1emValeXKzggYBBB5y1acFNZmEvXAoN2cGfJrTv3bl69Ffj2xZt3L1+/fw3XRVw4sGDGcR0fJhxZsF3KtBTThZxZ8mLMgC3fRatCbYMNFCzwLEqLgE4NsDWs/tvqdezZf13Hvk2A9Szdu2X3pg18N+68xXn7rh1c+PLksI/Dhe6cuO3ow3NfV92bdArTqC2Ebd3A8vjf5QWfH6Bg7Nz17c2fj69+fnq+8N2Lty+fuP78/eV2X13neIcCe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o8Ki4QElIiWfJqHnISNEI+Ql5J9o6SgkqKkgqYihamPkW6oNBgSfiMMDQkGCBLCwxIQDhHIyQwQCGMKxsnKVyPCF9DREQ3MxMPX0cu4wt7J2uHWx9jlKd3o39MiuefYEcvNkuLt5O8c1ePI2tyELXGQwoGDAQf+iEC2xByDCRAjTlAgIUWCBRgCPJQ4AQBFXAs0coT40WLIjRxL/47AcHLkxIomRXL0CHPERZkpa4q4iVKiyp0tR/7kwHMkTUBBJR5dOCEBAVcKKtCAyOHpowXCpk7goABqBZdcvWploACpBKkpIJI1q5OD2rIWE0R1uTZu1LFwbWL9OlKuWb4c6+o9i3dEgw0RCGDUG9KlRw56gDY2qmCByZBaASi+TACA0TucAaTteCcy0ZuOK3N2vJlx58+LRQyY3Xm0ZsgjZg+oPQLi7dUcNXi0LOJw1pgNtB7XG6CBy+U75SYfPTSQAgZTNUDnQHt67wnbZyvwLgKiMN3oCZB3C76tdewpLFgIP2C88rbi4Y+QT3+8S5USMICZXWj1pkEDeUU3lOYGB3alSoEiMIjgX4WlgNF2EibIwQIXauWXSRg2SAOHIU5IIIMoZkhhWiJaiFVbKo6AQEgQXrTAazO1JhkBrBG3Y2Y6EsUhaGn95hprSN0oWpFE7rhkeaQBchGOEWnwEmc0uKWZj0LeuNV3W4Y2lZHFlQCSRjTIl8uZ+kG5HU/3sRlnTG2ytyadytnD3HrmuRcSn+0h1dycexIK1KCjYaCnjCCVqOFFJTZ5GkUUjESWaUIKU2lgCmAKKQIUjHapXRKE+t2og1VgankNYnohqKJ2CmKplso6GKz7WYCgqxeuyoF8u9IQAgA7",msg:null,msgText:"Loading the next set of posts...",selector:null,speed:"fast",start:u},state:{isDuringAjax:false,isInvalidPage:false,isDestroyed:false,isDone:false,isPaused:false,isBeyondMaxPage:false,currPage:1},debug:false,behavior:u,binder:d(window),nextSelector:"div.navigation a:first",navSelector:"div.navigation",contentSelector:null,extraScrollPx:150,itemSelector:"div.post",animate:false,pathParse:u,dataType:"html",appendCallback:true,bufferPx:40,errorCallback:function(){},infid:0,pixelsFromNavToBottom:u,path:u,prefill:false,maxPage:u};d.infinitescroll.prototype={_binding:function e(t){var i=this,n=i.options;n.v="2.0b2.120520";if(!!n.behavior&&this["_binding_"+n.behavior]!==u){this["_binding_"+n.behavior].call(this);return}if(t!=="bind"&&t!=="unbind"){this._debug("Binding value "+t+" not valid");return false}if(t==="unbind"){this.options.binder.unbind("smartscroll.infscr."+i.options.infid)}else{this.options.binder[t]("smartscroll.infscr."+i.options.infid,function(){i.scroll()})}this._debug("Binding",t)},_create:function e(t,n){var o=d.extend(true,{},d.infinitescroll.defaults,t);this.options=o;var s=d(window);var i=this;if(!i._validate(t)){return false}var a=d(o.nextSelector).attr("href");if(!a){this._debug("Navigation selector not found");return false}o.path=o.path||this._determinepath(a);o.contentSelector=o.contentSelector||this.element;o.loading.selector=o.loading.selector||o.contentSelector;o.loading.msg=o.loading.msg||d('
    Loading...
    '+o.loading.msgText+"
    ");(new Image).src=o.loading.img;if(o.pixelsFromNavToBottom===u){o.pixelsFromNavToBottom=d(document).height()-d(o.navSelector).offset().top;this._debug("pixelsFromNavToBottom: "+o.pixelsFromNavToBottom)}var r=this;o.loading.start=o.loading.start||function(){d(o.navSelector).hide();o.loading.msg.appendTo(o.loading.selector).show(o.loading.speed,d.proxy(function(){this.beginAjax(o)},r))};o.loading.finished=o.loading.finished||function(){if(!o.state.isBeyondMaxPage)o.loading.msg.fadeOut(o.loading.speed)};o.callback=function(e,t,i){if(!!o.behavior&&e["_callback_"+o.behavior]!==u){e["_callback_"+o.behavior].call(d(o.contentSelector)[0],t,i)}if(n){n.call(d(o.contentSelector)[0],t,o,i)}if(o.prefill){s.bind("resize.infinite-scroll",e._prefill)}};if(t.debug){if(Function.prototype.bind&&(typeof console==="object"||typeof console==="function")&&typeof console.log==="object"){["log","info","warn","error","assert","dir","clear","profile","profileEnd"].forEach(function(e){console[e]=this.call(console[e],console)},Function.prototype.bind)}}this._setup();if(o.prefill){this._prefill()}return true},_prefill:function e(){var t=this;var i=d(window);function n(){return d(t.options.contentSelector).height()<=i.height()}this._prefill=function(){if(n()){t.scroll()}i.bind("resize.infinite-scroll",function(){if(n()){i.unbind("resize.infinite-scroll");t.scroll()}})};this._prefill()},_debug:function e(){if(true!==this.options.debug){return}if(typeof console!=="undefined"&&typeof console.log==="function"){if(Array.prototype.slice.call(arguments).length===1&&typeof Array.prototype.slice.call(arguments)[0]==="string"){console.log(Array.prototype.slice.call(arguments).toString())}else{console.log(Array.prototype.slice.call(arguments))}}else if(!Function.prototype.bind&&typeof console!=="undefined"&&typeof console.log==="object"){Function.prototype.call.call(console.log,console,Array.prototype.slice.call(arguments))}},_determinepath:function e(t){var i=this.options;if(!!i.behavior&&this["_determinepath_"+i.behavior]!==u){return this["_determinepath_"+i.behavior].call(this,t)}if(!!i.pathParse){this._debug("pathParse manual");return i.pathParse(t,this.options.state.currPage+1)}else if(t.match(/^(.*?)\b2\b(.*?$)/)){t=t.match(/^(.*?)\b2\b(.*?$)/).slice(1)}else if(t.match(/^(.*?)2(.*?$)/)){if(t.match(/^(.*?page=)2(\/.*|$)/)){t=t.match(/^(.*?page=)2(\/.*|$)/).slice(1);return t}t=t.match(/^(.*?)2(.*?$)/).slice(1)}else{if(t.match(/^(.*?page=)1(\/.*|$)/)){t=t.match(/^(.*?page=)1(\/.*|$)/).slice(1);return t}else{this._debug("Sorry, we couldn't parse your Next (Previous Posts) URL. Verify your the css selector points to the correct A tag. If you still get this error: yell, scream, and kindly ask for help at infinite-scroll.com.");i.state.isInvalidPage=true}}this._debug("determinePath",t);return t},_error:function e(t){var i=this.options;if(!!i.behavior&&this["_error_"+i.behavior]!==u){this["_error_"+i.behavior].call(this,t);return}if(t!=="destroy"&&t!=="end"){t="unknown"}this._debug("Error",t);if(t==="end"||i.state.isBeyondMaxPage){this._showdonemsg()}i.state.isDone=true;i.state.currPage=1;i.state.isPaused=false;i.state.isBeyondMaxPage=false;this._binding("unbind")},_loadcallback:function e(t,i,n){var o=this.options,s=this.options.callback,a=o.state.isDone?"done":!o.appendCallback?"no-append":"append",r;if(!!o.behavior&&this["_loadcallback_"+o.behavior]!==u){this["_loadcallback_"+o.behavior].call(this,t,i,n);return}switch(a){case"done":this._showdonemsg();return false;case"no-append":if(o.dataType==="html"){i="
    "+i+"
    ";i=d(i).find(o.itemSelector)}if(i.length===0){return this._error("end")}break;case"append":var l=t.children();if(l.length===0){return this._error("end")}r=document.createDocumentFragment();while(t[0].firstChild){r.appendChild(t[0].firstChild)}this._debug("contentSelector",d(o.contentSelector)[0]);d(o.contentSelector)[0].appendChild(r);i=l.get();break}o.loading.finished.call(d(o.contentSelector)[0],o);if(o.animate){var c=d(window).scrollTop()+d(o.loading.msg).height()+o.extraScrollPx+"px";d("html,body").animate({scrollTop:c},800,function(){o.state.isDuringAjax=false})}if(!o.animate){o.state.isDuringAjax=false}s(this,i,n);if(o.prefill){this._prefill()}},_nearbottom:function e(){var t=this.options,i=0+d(document).height()-t.binder.scrollTop()-d(window).height();if(!!t.behavior&&this["_nearbottom_"+t.behavior]!==u){return this["_nearbottom_"+t.behavior].call(this)}this._debug("math:",i,t.pixelsFromNavToBottom);return i-t.bufferPx-1&&d(t[i]).length===0){this._debug("Your "+i+" found no elements.");return false}}return true},bind:function e(){this._binding("bind")},destroy:function e(){this.options.state.isDestroyed=true;this.options.loading.finished();return this._error("destroy")},pause:function e(){this._pausing("pause")},resume:function e(){this._pausing("resume")},beginAjax:function e(o){var s=this,t=o.path,a,r,i,l;o.state.currPage++;if(o.maxPage!==u&&o.state.currPage>o.maxPage){o.state.isBeyondMaxPage=true;this.destroy();return}a=d(o.contentSelector).is("table, tbody")?d(""):d("
    ");r=typeof t==="function"?t(o.state.currPage):t.join(o.state.currPage);s._debug("heading into ajax",r);i=o.dataType==="html"||o.dataType==="json"?o.dataType:"html+callback";if(o.appendCallback&&o.dataType==="html"){i+="+callback"}switch(i){case"html+callback":s._debug("Using HTML via .load() method");a.load(r+" "+o.itemSelector,u,function e(t){s._loadcallback(a,t,r)});break;case"html":s._debug("Using "+i.toUpperCase()+" via $.ajax() method");d.ajax({url:r,dataType:o.dataType,complete:function e(t,i){l=typeof t.isResolved!=="undefined"?t.isResolved():i==="success"||i==="notmodified";if(l){s._loadcallback(a,t.responseText,r)}else{s._error("end")}}});break;case"json":s._debug("Using "+i.toUpperCase()+" via $.ajax() method");d.ajax({dataType:"json",type:"GET",url:r,success:function(e,t,i){l=typeof i.isResolved!=="undefined"?i.isResolved():t==="success"||t==="notmodified";if(o.appendCallback){if(o.template!==u){var n=o.template(e);a.append(n);if(l){s._loadcallback(a,n)}else{s._error("end")}}else{s._debug("template must be defined.");s._error("end")}}else{if(l){s._loadcallback(a,e,r)}else{s._error("end")}}},error:function(){s._debug("JSON ajax request failed.");s._error("end")}});break}},retrieve:function e(t){t=t||null;var i=this,n=i.options;if(!!n.behavior&&this["retrieve_"+n.behavior]!==u){this["retrieve_"+n.behavior].call(this,t);return}if(n.state.isDestroyed){this._debug("Instance is destroyed");return false}n.state.isDuringAjax=true;n.loading.start.call(d(n.contentSelector)[0],n)},scroll:function e(){var t=this.options,i=t.state;if(!!t.behavior&&this["scroll_"+t.behavior]!==u){this["scroll_"+t.behavior].call(this);return}if(i.isDuringAjax||i.isInvalidPage||i.isDone||i.isDestroyed||i.isPaused){return}if(!this._nearbottom()){return}this.retrieve()},toggle:function e(){this._pausing()},unbind:function e(){this._binding("unbind")},update:function e(t){if(d.isPlainObject(t)){this.options=d.extend(true,this.options,t)}},reset:function e(){this.unbind();var t=this.options;t.state.currPage=1;t.state.isDone=false;t.state.isPaused=false;t.isBeyondMaxPage=false;t.state.isInvalidPage=false;t.state.isDestroyed=false;t.state.isDuringAjax=false;this.bind()}};d.fn.infinitescroll=function e(t,i){var n=typeof t;switch(n){case"string":var o=Array.prototype.slice.call(arguments,1);this.each(function(){var e=d.data(this,"infinitescroll");if(!e){return false}if(!d.isFunction(e[t])||t.charAt(0)==="_"){return false}e[t].apply(e,o)});break;case"object":this.each(function(){var e=d.data(this,"infinitescroll");if(e){e.update(t)}else{e=new d.infinitescroll(t,i,this);if(!e.failed){d.data(this,"infinitescroll",e)}}});break}return this};var e=d.event,o;e.special.smartscroll={setup:function(){d(this).bind("scroll",e.special.smartscroll.handler)},teardown:function(){d(this).unbind("scroll",e.special.smartscroll.handler)},handler:function(e,t){var i=this,n=arguments;e.type="smartscroll";if(o){clearTimeout(o)}o=setTimeout(function(){d(i).trigger("smartscroll",n)},t==="execAsap"?0:100)}};d.fn.smartscroll=function(e){return e?this.bind("smartscroll",e):this.trigger("smartscroll",["execAsap"])}});(function(e){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=e()}else if(typeof define==="function"&&define.amd){define([],e)}else{var t;if(typeof window!=="undefined"){t=window}else if(typeof global!=="undefined"){t=global}else if(typeof self!=="undefined"){t=self}else{t=this}t.Clipboard=e()}})(function(){var a,e,t;return function s(a,r,l){function c(i,e){if(!r[i]){if(!a[i]){var t=typeof require=="function"&&require;if(!e&&t)return t(i,!0);if(d)return d(i,!0);var n=new Error("Cannot find module '"+i+"'");throw n.code="MODULE_NOT_FOUND",n}var o=r[i]={exports:{}};a[i][0].call(o.exports,function(e){var t=a[i][1][e];return c(t?t:e)},o,o.exports,s,a,r,l)}return r[i].exports}var d=typeof require=="function"&&require;for(var e=0;e0&&arguments[0]!==undefined?arguments[0]:{};this.action=t.action;this.emitter=t.emitter;this.target=t.target;this.text=t.text;this.trigger=t.trigger;this.selectedText=""}},{key:"initSelection",value:function e(){if(this.text){this.selectFake()}else if(this.target){this.selectTarget()}}},{key:"selectFake",value:function e(){var t=this;var i=document.documentElement.getAttribute("dir")=="rtl";this.removeFake();this.fakeHandlerCallback=function(){return t.removeFake()};this.fakeHandler=document.body.addEventListener("click",this.fakeHandlerCallback)||true;this.fakeElem=document.createElement("textarea");this.fakeElem.style.fontSize="12pt";this.fakeElem.style.border="0";this.fakeElem.style.padding="0";this.fakeElem.style.margin="0";this.fakeElem.style.position="absolute";this.fakeElem.style[i?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.addEventListener("focus",window.scrollTo(0,n));this.fakeElem.style.top=n+"px";this.fakeElem.setAttribute("readonly","");this.fakeElem.value=this.text;document.body.appendChild(this.fakeElem);this.selectedText=(0,o["default"])(this.fakeElem);this.copyText()}},{key:"removeFake",value:function e(){if(this.fakeHandler){document.body.removeEventListener("click",this.fakeHandlerCallback);this.fakeHandler=null;this.fakeHandlerCallback=null}if(this.fakeElem){document.body.removeChild(this.fakeElem);this.fakeElem=null}}},{key:"selectTarget",value:function e(){this.selectedText=(0,o["default"])(this.target);this.copyText()}},{key:"copyText",value:function e(){var t=void 0;try{t=document.execCommand(this.action)}catch(e){t=false}this.handleResult(t)}},{key:"handleResult",value:function e(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function e(){if(this.target){this.target.blur()}window.getSelection().removeAllRanges()}},{key:"destroy",value:function e(){this.removeFake()}},{key:"action",set:function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"copy";this._action=t;if(this._action!=="copy"&&this._action!=="cut"){throw new Error('Invalid "action" value, use either "copy" or "cut"')}},get:function e(){return this._action}},{key:"target",set:function e(t){if(t!==undefined){if(t&&(typeof t==="undefined"?"undefined":n(t))==="object"&&t.nodeType===1){if(this.action==="copy"&&t.hasAttribute("disabled")){throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute')}if(this.action==="cut"&&(t.hasAttribute("readonly")||t.hasAttribute("disabled"))){throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}this._target=t}else{throw new Error('Invalid "target" value, use a valid Element')}}},get:function e(){return this._target}}]);return t}();e.exports=r})},{select:5}],8:[function(n,o,s){(function(e,t){if(typeof a==="function"&&a.amd){a(["module","./clipboard-action","tiny-emitter","good-listener"],t)}else if(typeof s!=="undefined"){t(o,n("./clipboard-action"),n("tiny-emitter"),n("good-listener"))}else{var i={exports:{}};t(i,e.clipboardAction,e.tinyEmitter,e.goodListener);e.clipboard=i.exports}})(this,function(e,t,i,n){"use strict";var o=r(t);var s=r(i);var a=r(n);function r(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var c=function(){function n(e,t){for(var i=0;i0&&arguments[0]!==undefined?arguments[0]:{};this.action=typeof t.action==="function"?t.action:this.defaultAction;this.target=typeof t.target==="function"?t.target:this.defaultTarget;this.text=typeof t.text==="function"?t.text:this.defaultText}},{key:"listenClick",value:function e(t){var i=this;this.listener=(0,a["default"])(t,"click",function(e){return i.onClick(e)})}},{key:"onClick",value:function e(t){var i=t.delegateTarget||t.currentTarget;if(this.clipboardAction){this.clipboardAction=null}this.clipboardAction=new o["default"]({action:this.action(i),target:this.target(i),text:this.text(i),trigger:i,emitter:this})}},{key:"defaultAction",value:function e(t){return f("action",t)}},{key:"defaultTarget",value:function e(t){var i=f("target",t);if(i){return document.querySelector(i)}}},{key:"defaultText",value:function e(t){return f("text",t)}},{key:"destroy",value:function e(){this.listener.destroy();if(this.clipboardAction){this.clipboardAction.destroy();this.clipboardAction=null}}}]);return n}(s["default"]);function f(e,t){var i="data-clipboard-"+e;if(!t.hasAttribute(i)){return}return t.getAttribute(i)}e.exports=h})},{"./clipboard-action":7,"good-listener":4,"tiny-emitter":6}]},{},[8])(8)});(function(e){var u=Array.prototype.slice;function t(){}function i(c){if(!c){return}function i(e){if(e.prototype.option){return}e.prototype.option=function(e){if(!c.isPlainObject(e)){return}this.options=c.extend(true,this.options,e)}}var d=typeof console==="undefined"?t:function(e){console.error(e)};function n(r,l){c.fn[r]=function(t){if(typeof t==="string"){var e=u.call(arguments,1);for(var i=0,n=this.length;i