$((function(){varajaxSetup={url:PF.obj.config.json_api,cache:!1,dataType:"json",data:{auth_token:PF.obj.config.auth_token}};void0!==PF.obj.config.session_id&&(ajaxSetup.data.session_id=PF.obj.config.session_id),$.ajaxSetup(ajaxSetup),$(window).bind("beforeunload",(function(){if("continue"!=$("form",PF.obj.modal.selectors.root).data("beforeunload"))return$(PF.obj.modal.selectors.root).is(":visible")&&PF.fn.form_modal_has_changed()?PF.fn._s("All the changes that you have made will be lost if you continue."):void0})),$(window).bind("hashchange",(function(){"#edit"!=window.location.hash||$(PF.obj.modal.selectors.root).exists()||$("[data-modal=edit]").first().click()})),PF.fn.bindtipTip();varresizeTimer,scrollTimer,width=$(window).width(),State;if($(window).on("resize",(function(){PF.fn.growl.fixPosition(),PF.fn.modal.fixScrollbars();vardevice=PF.fn.getDeviceName(),handled=["phone","phablet"],desktop=["tablet","laptop","desktop"];clearTimeout(void0),clearTimeout(scrollTimer),scrollTimer=setTimeout((function(){$(".follow-scroll-wrapper, .follow-scroll-placeholder").removeClass("position-fixed").attr("style",""),$("html").hasScrollBar().vertical&&(PF.obj.follow_scroll.set(!0),PF.obj.follow_scroll.process(!0))}),25);varnew_device=PF.fn.getDeviceName(),cols_fn;((new_device!==device&&$.inArray(device,handled)>=0&&-1==$.inArray(new_device,handled)||$.inArray(device,desktop)>=0&&-1==$.inArray(new_device,desktop))&&PF.fn.close_pops(),$(".top-bar").css("top",""),$(PF.fn.topMenu.vars.menu).css("height",$(window).height()),$("body").css({position:"",height:""}),$(".antiscroll").removeClass("jsly").data("antiscroll",""),$(".antiscroll-inner").css({height:"",width:"",maxheight:""}),PF.fn.list_fluid_width(),width!==$(window).width())&&($("[data-action=top-bar-menu-full]","#top-bar").hasClass("current")&&PF.fn.topMenu.hide(0),PF.fn.listing.columnizer(!0,0),$(PF.obj.listing.selectors.list_item).show());width=$(window).width()})),$(document).on("click","html",(function(){PF.fn.close_pops()})),$("html").hasClass("no-svg")&&$("img.replace-svg").replace_svg(),$(document).on("keydown",".numeric-input",(function(e){e.keydown_numeric()})),$(document).on("click","[data-scrollto]",(function(e){vartarget=$(this).data("scrollto"),$target=$(target.match(/^\#|\./)?target:"#"+target);$target.exists()?PF.fn.scroll($target):console.log("PF scrollto error: target doesn't exists",$target)})),$(document).on("click focus","[data-login-needed], [data-user-logged=must]",(function(e){if(!PF.fn.is_user_logged())returne.preventDefault(),e.stopPropagation(),window.location.href=PF.obj.vars.urls.login,!1})),$(document).on("click","[data-trigger]",(function(e){if(e.isPropagationStopped())return!1;vartrigger=$(this).data("trigger"),$target=$(trigger.match(/^\#|\./)?trigger:"#"+trigger);$target.exists()?(e.stopPropagation(),e.preventDefault(),$target.closest(PF.obj.modal.selectors.root).length||PF.fn.modal.close(),$target.click()):console.log("PF trigger error: target doesn't exists",$target)})),$("form[method=post]").each((function(){$("input[name=auth_token]",this).exists()||$(this).append($("<input>",{type:"hidden",name:"auth_token",value:PF.obj.config.auth_token}))})),$(document).on("click",".clear-form",(function(){$(this).closest("form")[0].reset()})),$(document).on("submit","form[data-action=validate]",(function(e){vartype=$(this).data("type"),errors=!1,$validate;if($(this).find("[required], [data-validate]").each((function(){varinput_type=$(this).attr("type"),pattern=$(this).attr("pattern"),errorFn=function(el){$(el).highlight(),errors=!0};if($(this).is("[required]")&&""==$(this).val()){if($(this).is(":hidden")){var$hidden_target=$($($(this).data("highlight")).exists()?$(this).data("highlight"):"#"+$(this).data("highlight"));$($hidden_target).highlight()}errorFn(this)}if(void0===pattern&&0==/mail|url/.test(input_type))return!0;pattern&&((pattern=newRegExp(pattern)).test($(this).val())||errorFn(this)),"email"!=input_type||$(this).val().isEmail()||errorFn(this)})),errors)returnPF.fn.growl.expirable(PF.fn._s("Checktheerrorsintheformtocontinu
/*!
*imagesLoadedPACKAGEDv4.1.0
*JavaScriptisalllike"You images are done yet or what?"
*MITLicense
*/function testPassword(e){var t=0,n="weak",r="",i=0;return e.length<5?(t+=3,r=r+"3 points for length ("+e.length+")\n"):e.length>4&&e.length<8?(t+=6,r=r+"6 points for length ("+e.length+")\n"):e.length>7&&e.length<16?(t+=12,r=r+"12 points for length ("+e.length+")\n"):e.length>15&&(t+=18,r=r+"18 point for length ("+e.length+")\n"),e.match(/[a-z]/)&&(t+=1,r+="1 point for at least one lower case char\n"),e.match(/[A-Z]/)&&(t+=5,r+="5 points for at least one upper case char\n"),e.match(/\d+/)&&(t+=5,r+="5 points for at least one number\n"),e.match(/(.*[0-9].*[0-9].*[0-9])/)&&(t+=5,r+="5 points for at least three numbers\n"),e.match(/.[!,@,#,$,%,^,&,*,?,_,~]/)&&(t+=5,r+="5 points for at least one special char\n"),e.match(/(.*[!,@,#,$,%,^,&,*,?,_,~].*[!,@,#,$,%,^,&,*,?,_,~])/)&&(t+=5,r+="5 points for at least two special chars\n"),e.match(/([a-z].*[A-Z])|([A-Z].*[a-z])/)&&(t+=2,r+="2 combo points for upper and lower letters\n"),e.match(/([a-zA-Z])/)&&e.match(/([0-9])/)&&(t+=2,r+="2 combo points for letters and numbers\n"),e.match(/([a-zA-Z0-9].*[!,@,#,$,%,^,&,*,?,_,~])|([!,@,#,$,%,^,&,*,?,_,~].*[a-zA-Z0-9])/)&&(t+=2,r+="2 combo points for letters, numbers and special chars\n"),0==e.length&&(t=0),n=t<16?"very weak":t>15&&t<25?"weak":t>24&&t<35?"average":t>34&&t<45?"strong":"stronger",{score:t,ratio:i=Math.round(Math.min(100,100*t/45))/100,percent:100*i+"%",verdict:n,log:r}}PF.fn.listing.columnizer=function(forced,animation_time,hard_forced){vardevice_to_columns={phone:1,phablet:3,tablet:4,laptop:5,desktop:6,largescreen:7};if("boolean"!=typeofforced)varforced=!1;if(void0===PF.obj.listing.mode&&(forced=!0),"boolean"!=typeofhard_forced)varhard_forced=!1,default_hard_forced=!0;elsevardefault_hard_forced=!1;if(!hard_forced&&default_hard_forced&&(width!==$(window).width()||forced)&&(hard_forced=!0),void0===animation_time)varanimation_time=PF.obj.config.animation.normal;var$container=$("#content-listing-tabs").exists()?$(PF.obj.listing.selectors.content_listing_visible,"#content-listing-tabs"):$(PF.obj.listing.selectors.content_listing),$pad_content_listing=$(PF.obj.listing.selectors.pad_content,$container),list_mode="responsive",$list_item=$(forced||hard_forced?PF.obj.listing.selectors.list_item:PF.obj.listing.selectors.list_item+":not(.jsly)",$container);if($container.addClass("jsly"),void0!==PF.obj.config.listing.device_to_columns&&(device_to_columns=$.extend({},device_to_columns,PF.obj.config.listing.device_to_columns)),$container.data("device-columns")&&(device_to_columns=$.extend({},device_to_columns,$container.data("device-columns"))),PF.obj.listing.mode=list_mode,PF.obj.listing.device=PF.fn.getDeviceName(),$list_item.exists()){if(void0===$container.data("columns")||forced||hard_forced){var$list_item_1st;for($list_item.first().css("width",""),PF.obj.listing.columns=newArray,PF.obj.listing.columns_number=device_to_columns[PF.fn.getDeviceName()],i=0;i<PF.obj.listing.columns_number;i++)PF.obj.listing.columns[i+1]=0;PF.obj.listing.current_column=1}elsePF.obj.listing.columns=$container.data("columns"),PF.obj.listing.columns_number=$container.data("columns").length-1,PF.obj.listing.current_column=$container.data("current_column");varspecial_margin=1==PF.obj.listing.columns_number?"-10px":"";$("#tabbed-content-group").css({marginLeft:special_margin,marginRight:special_margin}),$container.removeClass("small-cols").addClass(PF.obj.listing.columns_number>6?"small-cols":""),$pad_content_listing.css("width","100%");vardelay=0;$list_item.each((function(index){$(this).addClass("jsly");var$list_item_img=$(".list-item-image",this),$list_item_src=$(".list-item-image img",this),$list_item_thumbs=$(".list-item-thumbs",this),isJslyLoaded=$list_item_src.hasClass("jsly-loaded");$list_item_src.show(),hard_forced&&($(this).css({top:"",left:"",height:"",position:""}),$list_item_img.css({maxHeight:"",height:""}),$list_item_src.removeClass("jsly").css({width:"",height:""}).parent().css({marginLeft:"",marginTop:""}),$("li",$list_item_thumbs).css({width:"",height:""}));varwidth_responsive=1==PF.obj.listing.columns_number?"100%":pars
"object"!=typeofJSON&&(JSON={}),function(){"use strict";functionf(e){returne<10?"0"+e:e}functionquote(e){returnescapable.lastIndex=0,escapable.test(e)?'"'+e.replace(escapable,(function(e){vart=meta[e];return"string"==typeoft?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'}functionstr(e,t){varn,r,i,s,o=gap,u,a=t[e];switch(a&&"object"==typeofa&&"function"==typeofa.toJSON&&(a=a.toJSON(e)),"function"==typeofrep&&(a=rep.call(t,e,a)),typeofa){case"string":returnquote(a);case"number":returnisFinite(a)?String(a):"null";case"boolean":case"null":returnString(a);case"object":if(!a)return"null";if(gap+=indent,u=[],"[object Array]"===Object.prototype.toString.apply(a)){for(s=a.length,n=0;n<s;n+=1)u[n]=str(n,a)||"null";returni=0===u.length?"[]":gap?"[\n"+gap+u.join(",\n"+gap)+"\n"+o+"]":"["+u.join(",")+"]",gap=o,i}if(rep&&"object"==typeofrep)for(s=rep.length,n=0;n<s;n+=1)"string"==typeofrep[n]&&((i=str(r=rep[n],a))&&u.push(quote(r)+(gap?": ":":")+i));elsefor(rina)Object.prototype.hasOwnProperty.call(a,r)&&((i=str(r,a))&&u.push(quote(r)+(gap?": ":":")+i));returni=0===u.length?"{}":gap?"{\n"+gap+u.join(",\n"+gap)+"\n"+o+"}":"{"+u.join(",")+"}",gap=o,i}}"function"!=typeofDate.prototype.toJSON&&(Date.prototype.toJSON=function(e){returnisFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(e){returnthis.valueOf()});varcx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;"function"!=typeofJSON.stringify&&(JSON.stringify=function(e,t,n){varr;if(gap="",indent="","number"==typeofn)for(r=0;r<n;r+=1)indent+=" ";else"string"==typeofn&&(indent=n);if(rep=t,!t||"function"==typeoft||"object"==typeoft&&"number"==typeoft.length)returnstr("",{"":e});thrownewError("JSON.stringify")}),"function"!=typeofJSON.parse&&(JSON.parse=function(text,reviver){functionwalk(e,t){varn,r,i=e[t];if(i&&"object"==typeofi)for(nini)Object.prototype.hasOwnProperty.call(i,n)&&(void0!==(r=walk(i,n))?i[n]=r:deletei[n]);returnreviver.call(e,t,i)}varj;if(text=String(text),cx.lastIndex=0,cx.test(text)&&(text=text.replace(cx,(function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))),/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))returnj=eval("("+text+")"),"function"==typeofreviver?walk({"":j},""):j;thrownewSyntaxError("JSON.parse")})}(),function(e,t){"use strict";varn=e.History=e.History||{},r=e.jQuery;if(void0!==n.Adapter)thrownewError("History.js Adapter has already been loaded...");n.Adapter={bind:function(e,t,n){r(e).bind(t,n)},trigger:function(e,t,n){r(e).trigger(t,n)},extractEventData:function(e,n,r){vari;returnn&&n.originalEvent&&n.originalEvent[e]||r&&r[e]||t},onDomLoad:function(e){r(e)}},void0!==n.init&&n.init()}(window),function(e,t){"use strict";varn=e.document,r=e.setTimeout||r,i=e.clearTimeout||i,s=e.setInterval||s,o=e.History=e.History||{};if(void0!==o.initHtml4)thrownewError("History.js HTML4 Support has already been loaded...");o.initHtml4=function(){if(void0!==o.initHtml4.initialized)return!1;o.initHtml4.initialized=!0,o.enabled=!0,o.savedHashes=[],o.isLastHash=function(e){vart,n;returnn=e===o.getHashByIndex()},o.isHashEqual=function(e,t){return(e=encodeURIComponent(e).replace(/%25/g,"%"))===(t=encodeURIComponent(t).replace(/%25/g,"%"))},o.saveHash=function(e){return!o.isLastHash(e)&&(o.savedHashes.push(e),!0)},o.getHashByIndex=function(e){vart=null;returnt=void0===e?o.savedHashes[o.savedHashes.length-1]:e<0?o.save