function applyTooltip(n){n=n||$(document);n.find(strImagingThumbClassName+"[title]").applyTooltipToItems()}function downloadOnClick(n){return $(n).find("input:checked").length>0}function generateUUID(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var t=Math.random()*16|0,i=n==="x"?t:t&3|8;return i.toString(16)})}function showLoading(n){var t=$(n),r=t.height(),u=t.width(),i;t.children().hide();t.height(r);t.width(u);t.children().first().before("<div class=loadingOuter><div class=loadingInner> <\/div><\/div>");i=t.find(".loadingOuter");i.length>0&&i.height(r).width(u).fadeIn()}function hideLoading(n){var t;t=typeof n=="undefined"?$("div.loadingOuter").parent():$(n);t.find(".loadingOuter").fadeOut(function(){$(this).remove()});t.children().show()}function disableInputs(n){$(n).addClass("greyedout").find("input, select").attr("disabled",!0);$(n).find(".msgLaunch, .js-control").addClass("disabled")}function enableInputs(n){$(n).removeClass("greyedout").find("input, select").attr("disabled",!1);$(n).find(".msgLaunch, .js-control").removeClass("disabled")}function ajaxError(n,t,i,r,u,f,e){var o,h,c,l,s,a;if(f=f||".jq-ajaxretry",e=e||r.retryLimit,MSG.removeButtonLoading(),t==="timeout"){++r.tryCount<e&&(r.type==="GET"||r.type==="HEAD")?(r.timeout=r.timeout*.5,r.timeout>MAIN.maxAjaxTimeout&&(r.timeout=MAIN.maxAjaxTimeout),$.ajax(r)):(o=function(n,t){console.log("$elmt: "+n.length+"; $message: "+t.length);var i=t.clone().removeClass("jq-ajaxretry jq-ajaxmsgretry").addClass("jq-ajaxretrypanel").show();$(".jq-retryButton",i).on("click",function(t){var u,i;return t.preventDefault(),u=$(this),u.closest(".jq-ajaxretrypanel").remove(),n.find(".jq-ajaxtimeouthidden").removeClass("jq-ajaxtimeouthidden").show(),i=u.parent().parent().find(".ph").show(),i.length>0?(i.removeClass("requested").parent().find(".ajaxErrorInfoMsg").hide(),MAIN.getThumbsForCollection(i)):$.ajax(r),!1});$(".jq-cancelButton",i).on("click",function(n){return n.preventDefault(),$(this).closest(".msgBox").fadeOut("fast",function(){$(this).remove()}),!1});n.append(i)},r.tryCount=0,r.timeout=MAIN.ajaxTimeout,typeof u!="undefined"&&u!==null?(h=u.parent(),o(h,$(f)),u.addClass("jq-ajaxtimeouthidden").hide()):$(".tabLoading").length>0?(c=$(".tabLoading").parent(),o(c,$(".jq-ajaxretry")),$(".tabLoading").remove()):$(".msgLoading").length>0?(l=$(".msgLoading").parents().find(".msgDiv4"),o(l,$(".jq-ajaxmsgretry"))):console.log("ajax timeout unhandled: "+r.url));return}if(s=n.responseText&&n.responseText.substr(0,1750),typeof i!="undefined"&&i&&i.indexOf(i)===-1)if(typeof MSG=="undefined")window.location=i+"?statusCode="+n.status+"&exception="+t+"&errorMessage="+s;else{$(".msgLoading").length>0&&(a=$(".msgLoading").parents().find(".msgDiv4"),a.remove());MSG.show(i+"?statusCode="+n.status+"&exception="+t+"&errorMessage="+s,$(this));return}n.status===0||(n.status===403?alert(n.responseText):n.status===404?alert("Requested URL not found."):n.status===429?alert("You've made too many requests in a short period.\nPlease wait before trying again."):n.status===500?alert("We've run into a problem."):t==="parsererror"?alert("Error.\nParsing JSON Request failed."):alert("Unknown Error.\n"+n.responseText));typeof MSG!="undefined"&&MSG.hide()}function executeFunctionByName(n,t){var i;typeof t=="undefined"&&(t=window);var f=Array.prototype.slice.call(arguments,2),r=n.split("."),u=r.pop();for(i=0;i<r.length;i++)t=t[r[i]];return u===""?!0:t&&t[u]?t[u].apply(t,f):null}var pagerDictionary,MAIN,foolproof,newsLightbox,country,videoPlayer;(function(n){var i=[].slice,t={},r=n.amplify={publish:function(n){if(typeof n!="string")throw new Error("You must provide a valid topic to publish.");var s=i.call(arguments,1),r,u,o,f=0,e;if(!t[n])return!0;for(r=t[n].slice(),o=r.length;f<o;f++)if(u=r[f],e=u.callback.apply(u.context,s),e===!1)break;return e!==!1},subscribe:function(n,i,r,u){var f,s;if(typeof n!="string")throw new Error("You must provide a valid topic to create a subscription.");arguments.length===3&&typeof r=="number"&&(u=r,r=i,i=null);arguments.length===2&&(r=i,i=null);u=u||10;for(var e=0,h=n.split(/\s/),c=h.length,o;e<c;e++){for(n=h[e],o=!1,t[n]||(t[n]=[]),f=t[n].length-1,s={callback:r,context:i,priority:u};f>=0;f--)if(t[n][f].priority<=u){t[n].splice(f+1,0,s);o=!0;break}o||t[n].unshift(s)}return r},unsubscribe:function(n,i,r){if(typeof n!="string")throw new Error("You must provide a valid topic to remove a subscription.");if(arguments.length===2&&(r=i,i=null),t[n])for(var f=t[n].length,u=0;u<f;u++)t[n][u].callback===r&&(i&&t[n][u].context!==i||(t[n].splice(u,1),u--,f--))}}})(this),function(n,t){function f(n,r){i.addType(n,function(f,e,o){var c,s,v,l,h=e,a=(new Date).getTime();if(!f){h={};l=[];v=0;try{for(f=r.length;f=r.key(v++);)u.test(f)&&(s=JSON.parse(r.getItem(f)),s.expires&&s.expires<=a?l.push(f):h[f.replace(u,"")]=s.data);while(f=l.pop())r.removeItem(f)}catch(y){}return h}if(f="__amplify__"+f,e===t)if(c=r.getItem(f),s=c?JSON.parse(c):{expires:-1},s.expires&&s.expires<=a)r.removeItem(f);else return s.data;else if(e===null)r.removeItem(f);else{s=JSON.stringify({data:e,expires:o.expires?a+o.expires:null});try{r.setItem(f,s)}catch(y){i[n]();try{r.setItem(f,s)}catch(y){throw i.error();}}}return h})}var i=n.store=function(n,t,r){var u=i.type;return r&&r.type&&r.type in i.types&&(u=r.type),i.types[u](n,t,r||{})},u,r;i.types={};i.type=null;i.addType=function(n,t){i.type||(i.type=n);i.types[n]=t;i[n]=function(t,r,u){return u=u||{},u.type=n,i(t,r,u)}};i.error=function(){return"amplify.store quota exceeded"};u=/^__amplify__/;for(r in{localStorage:1,sessionStorage:1})try{window[r].setItem("__amplify__","x");window[r].removeItem("__amplify__");f(r,window[r])}catch(e){}if(!i.types.localStorage&&window.globalStorage)try{f("globalStorage",window.globalStorage[window.location.hostname]);i.type==="sessionStorage"&&(i.type="globalStorage")}catch(e){}(function(){if(!i.types.localStorage){var n=document.createElement("div"),r="amplify";n.style.display="none";document.getElementsByTagName("head")[0].appendChild(n);try{n.addBehavior("#default#userdata");n.load(r)}catch(u){n.parentNode.removeChild(n);return}i.addType("userData",function(u,f,e){n.load(r);var s,o,h,v,l,c=f,a=(new Date).getTime();if(!u){for(c={},l=[],v=0;s=n.XMLDocument.documentElement.attributes[v++];)o=JSON.parse(s.value),o.expires&&o.expires<=a?l.push(s.name):c[s.name]=o.data;while(u=l.pop())n.removeAttribute(u);return n.save(r),c}if(u=u.replace(/[^\-._0-9A-Za-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c-\u200d\u203f\u2040\u2070-\u218f]/g,"-"),u=u.replace(/^-/,"_-"),f===t)if(s=n.getAttribute(u),o=s?JSON.parse(s):{expires:-1},o.expires&&o.expires<=a)n.removeAttribute(u);else return o.data;else f===null?n.removeAttribute(u):(h=n.getAttribute(u),o=JSON.stringify({data:f,expires:e.expires?a+e.expires:null}),n.setAttribute(u,o));try{n.save(r)}catch(y){h===null?n.removeAttribute(u):n.setAttribute(u,h);i.userData();try{n.setAttribute(u,o);n.save(r)}catch(y){h===null?n.removeAttribute(u):n.setAttribute(u,h);throw i.error();}}return c})}})(),function(){function u(n){return n===t?t:JSON.parse(JSON.stringify(n))}var n={},r={};i.addType("memory",function(i,f,e){return i?f===t?u(n[i]):(r[i]&&(clearTimeout(r[i]),delete r[i]),f===null)?(delete n[i],null):(n[i]=f,e.expires&&(r[i]=setTimeout(function(){delete n[i];delete r[i]},e.expires)),f):u(n)})}()}(this.amplify=this.amplify||{}),function(n){"use strict";function t(){}function r(n){return{}.toString.call(n)==="[object Function]"}function i(n){var t=!1;return setTimeout(function(){t=!0},1),function(){var i=this,r=arguments;t?n.apply(i,r):setTimeout(function(){n.apply(i,r)},1)}}n.request=function(u,f,e){var o=u||{};typeof o=="string"&&(r(f)&&(e=f,f={}),o={resourceId:u,data:f||{},success:e});var s={abort:t},h=n.request.resources[o.resourceId],c=o.success||t,l=o.error||t;if(o.success=i(function(t,i){i=i||"success";n.publish("request.success",o,t,i);n.publish("request.complete",o,t,i);c(t,i)}),o.error=i(function(t,i){i=i||"error";n.publish("request.error",o,t,i);n.publish("request.complete",o,t,i);l(t,i)}),!h){if(!o.resourceId)throw"amplify.request: no resourceId provided";throw"amplify.request: unknown resourceId: "+o.resourceId;}if(!n.publish("request.before",o)){o.error(null,"abort");return}return n.request.resources[o.resourceId](o,s),s};n.request.types={};n.request.resources={};n.request.define=function(t,i,r){if(typeof i=="string"){if(!(i in n.request.types))throw"amplify.request.define: unknown type: "+i;r.resourceId=t;n.request.resources[t]=n.request.types[i](r)}else n.request.resources[t]=i}}(amplify),function(n,t,i){"use strict";var u=["status","statusText","responseText","responseXML","readyState"],f=/\{([^\}]+)\}/g,r;n.request.types.ajax=function(r){return r=t.extend({type:"GET"},r),function(f,e){var h,c,v=r.url,a=e.abort,o=t.extend(!0,{},r,{data:f.data}),l=!1,s={readyState:0,setRequestHeader:function(n,t){return h.setRequestHeader(n,t)},getAllResponseHeaders:function(){return h.getAllResponseHeaders()},getResponseHeader:function(n){return h.getResponseHeader(n)},overrideMimeType:function(n){return h.overrideMimeType(n)},abort:function(){l=!0;try{h.abort()}catch(n){}c(null,"abort")},success:function(n,t){f.success(n,t)},error:function(n,t){f.error(n,t)}};c=function(n,r){t.each(u,function(n,t){try{s[t]=h[t]}catch(i){}});/OK$/.test(s.statusText)&&(s.statusText="success");n===i&&(n=null);l&&(r="abort");/timeout|error|abort/.test(r)?s.error(n,r):s.success(n,r);c=t.noop};n.publish("request.ajax.preprocess",r,f,o,s);t.extend(o,{isJSONP:function(){return/jsonp/gi.test(this.dataType)},cacheURL:function(){var n,t;return this.isJSONP()?(n="callback",this.hasOwnProperty("jsonp")&&(this.jsonp!==!1?n=this.jsonp:this.hasOwnProperty("jsonpCallback")&&(n=this.jsonpCallback)),t=new RegExp("&?"+n+"=[^&]*&?","gi"),this.url.replace(t,"")):this.url},success:function(n,t){c(n,t)},error:function(n,t){c(null,t)},beforeSend:function(t,i){h=t;o=i;var u=r.beforeSend?r.beforeSend.call(this,s,o):!0;return u&&n.publish("request.before.ajax",r,f,o,s)}});o.cache&&o.isJSONP()&&t.extend(o,{cache:!0});t.ajax(o);e.abort=function(){s.abort();a.call(this)}}};n.subscribe("request.ajax.preprocess",function(n,i,r){var e=[],u=r.data;typeof u!="string"&&(u=t.extend(!0,{},n.data,u),r.url=r.url.replace(f,function(n,t){if(t in u)return e.push(t),u[t]}),t.each(e,function(n,t){delete u[t]}),r.data=u)});n.subscribe("request.ajax.preprocess",function(n,i,r){var u=r.data,f=n.dataMap;f&&typeof u!="string"&&(t.isFunction(f)?r.data=f(u):(t.each(n.dataMap,function(n,t){n in u&&(u[t]=u[n],delete u[n])}),r.data=u))});r=n.request.cache={_key:function(n,t,i){function e(){return i.charCodeAt(r++)<<24|i.charCodeAt(r++)<<16|i.charCodeAt(r++)<<8|i.charCodeAt(r++)<<0}var f,r,u;for(i=t+i,f=i.length,r=0,u=e();r<f;)u^=e();return"request-"+n+"-"+u},_default:function(){var n={};return function(t,i,u,f){var e=r._key(i.resourceId,u.cacheURL(),u.data),o=t.cache,s;if(e in n)return f.success(n[e]),!1;s=f.success;f.success=function(t){n[e]=t;typeof o=="number"&&setTimeout(function(){delete n[e]},o);s.apply(this,arguments)}}}()};n.store&&(t.each(n.store.types,function(t){r[t]=function(i,u,f,e){var o=r._key(u.resourceId,f.cacheURL(),f.data),s=n.store[t](o),h;if(s)return f.success(s),!1;h=e.success;e.success=function(r){n.store[t](o,r,{expires:i.cache.expires});h.apply(this,arguments)}}}),r.persist=r[n.store.type]);n.subscribe("request.before.ajax",function(n){var t=n.cache;if(t)return t=t.type||t,r[t in r?t:"_default"].apply(this,arguments)});n.request.decoders={jsend:function(n,t,i,r,u){n.status==="success"?r(n.data):n.status==="fail"?u(n.data,"fail"):n.status==="error"?(delete n.status,u(n,"error")):u(null,"error")}};n.subscribe("request.before.ajax",function(i,r,u,f){function o(n,t){h(n,t)}function s(n,t){c(n,t)}var h=f.success,c=f.error,e=t.isFunction(i.decoder)?i.decoder:i.decoder in n.request.decoders?n.request.decoders[i.decoder]:n.request.decoders._default;e&&(f.success=function(n,t){e(n,t,f,o,s)},f.error=function(n,t){e(n,t,f,o,s)})})}(amplify,jQuery);jQuery.fn.evenIfHidden=function(n){return this.each(function(){var i=$(this),r=[],t=i.parents().addBack().filter(":hidden");if(!t.length)return n(i),!0;t.each(function(){var n=$(this).prop("style");n=typeof n=="undefined"?"":n;r.push(n);$(this).prop("style",n+" display: block !important;")});t.eq(0).css("left",-1e4);n(i);t.each(function(){$(this).prop("style",r.shift())})})},function(n){"use strict";typeof define=="function"&&define.amd?define(["jquery"],n):typeof module=="object"&&module.exports?module.exports=n(require("jquery")):jQuery&&!jQuery.fn.hoverIntent&&n(jQuery)}(function(n){"use strict";var e={interval:100,sensitivity:6,timeout:0},o=0,t,i,r=function(n){t=n.pageX;i=n.pageY},u=function(n,f,e,o){if(Math.sqrt((e.pX-t)*(e.pX-t)+(e.pY-i)*(e.pY-i))<o.sensitivity)return f.off(e.event,r),delete e.timeoutId,e.isActive=!0,n.pageX=t,n.pageY=i,delete e.pX,delete e.pY,o.over.apply(f[0],[n]);e.pX=t;e.pY=i;e.timeoutId=setTimeout(function(){u(n,f,e,o)},o.interval)},s=function(n,t,i,r){var u=t.data("hoverIntent");return u&&delete u[i.id],r.apply(t[0],[n])},f=function(n){return typeof n=="function"};n.fn.hoverIntent=function(t,i,h){var l=o++,c=n.extend({},e),a;n.isPlainObject(t)?(c=n.extend(c,t),f(c.out)||(c.out=c.over)):c=f(i)?n.extend(c,{over:t,out:i,selector:h}):n.extend(c,{over:t,out:t,selector:i});a=function(t){var e=n.extend({},t),f=n(this),o=f.data("hoverIntent"),i,h;if(o||f.data("hoverIntent",o={}),i=o[l],i||(o[l]=i={id:l}),i.timeoutId&&(i.timeoutId=clearTimeout(i.timeoutId)),h=i.event="mousemove.hoverIntent.hoverIntent"+l,t.type==="mouseenter"){if(i.isActive)return;i.pX=e.pageX;i.pY=e.pageY;f.off(h,r).on(h,r);i.timeoutId=setTimeout(function(){u(e,f,i,c)},c.interval)}else{if(!i.isActive)return;f.off(h,r);i.timeoutId=setTimeout(function(){s(e,f,i,c.out)},c.timeout)}};return this.on({"mouseenter.hoverIntent":a,"mouseleave.hoverIntent":a},c.selector)}}),function(n){var u=n.document.documentMode,r="onhashchange"in n&&(u===undefined||u>7),t=n.jHash={jhash:"2.1",change:function(t){r?s(n,"hashchange",t):i.push(t)},unbind:function(t){return r?h(n,"hashchange",t):c(i,i.indexOf(t)),this},val:function(n,i){var r=t.query();return arguments.length===2?(r[n.toLowerCase()]=i===null?"":i,this.set(this.root(),r)):arguments.length===1&&typeof n=="string"?r[n.toLowerCase()]:typeof n=="object"?this.set(this.root(),n):r},root:function(t){return t===undefined?v(n.location.hash):this.set(t,this.val())},set:function(t,i){var r=null,u,f;return t===null&&i===null?r=null:i!==undefined?(u=t,f=typeof i=="string"?i:a(i),f.length>0&&(u+="?"),r=u+f):r=t,n.location.hash=r,this},remove:function(n){var i=t.query();return i[n.toLowerCase()]=undefined,this.set(this.root(),i)},query:function(){return l(n.location.hash)},clear:function(){return n.location.hash="",this},clearQuery:function(){return this.set(this.root()),this},clearRoot:function(){return this.set("",this.query()),this},_routes:{},_routeHandlerRegistered:!1,_defaultRoute:null,route:function(n,i){this._routes[n]=i;this._routeHandlerRegistered||(this._routeHandlerRegistered=!0,t.change(o))},processRoute:function(){o()},defaultRoute:function(n,t){if(arguments.length==0)return this._defaultRoute;this._defaultRoute={root:n,query:t}}};r||n.setInterval(function(){var t=n.location.hash,r;if(f!==t)for(r in i)i[r].call(n);f=t},200);var i=[],f=n.location.hash,s=function(n,t,i){n.addEventListener?n.addEventListener(t,i,!1):n.attachEvent?n.attachEvent("on"+t,i):n["on"+t]+=i},h=function(n,t,i){n.removeEventListener?n.removeEventListener(t,i,!1):n.detachEvent?n.detachEvent("on"+t,i):n["on"+t]-=i},c=function(n,t,i){var r=n.slice((i||t)+1||n.length);return n.length=t<0?n.length+t:t,n.push.apply(n,r)},l=function(n){var f={},i=null,t=n.substring(0,n.length),r,u,e;if(n!==null&&n!==undefined&&(t.indexOf("#")===0&&(t=t.substring(1,t.length)),r=t.indexOf("?"),r>-1)){t=t.substring(r+1,t.length);u=t.split("&");for(e in u)i=u[e].split("="),f[i[0].toString().toLowerCase()]=i[1]}return f},a=function(n){var t="";for(var i in n)n[i]!==undefined&&(t.length>0&&(t+="&"),t+=i.toString()+"="+n[i].toString());return t},v=function(n){var t=n.substring(0,n.length);return t.indexOf("#")>-1&&(t=t.substring(1,t.length)),t.indexOf("?")>-1&&(t=t.substring(0,t.indexOf("?"))),t},y="([^/]+)",e=/{([\w\d]+)}/g,p=function(n,t){var i=new RegExp(n.replace(e,y)+"$");return t.match(i)},o=function(){var o=t.root(),u=t.defaultRoute(),i,f,n,h;if((o||"").length===0&&u){t.set(u.root,u.query);return}for(i in t._routes)if(typeof i=="string"&&(f=p(i,o),f!==null)){var c=t._routes[i],s={},r=i.match(e);if(r!==null)for(n=0;n<r.length;n++)h=r[n].substring(1).substring(0,r[n].length-2),s[h]=f[n+1];c.call(s);return}}}(window);var EasyAutocomplete=function(n){return n.Configuration=function(n){function u(){var f,i,e,r,u;if(n.dataType==="xml"&&(n.getValue||(n.getValue=function(n){return $(n).text()}),n.list||(n.list={}),n.list.sort||(n.list.sort={}),n.list.sort.method=function(t,i){return(t=n.getValue(t),i=n.getValue(i),t<i)?-1:t>i?1:0},n.list.match||(n.list.match={}),n.list.match.method=function(n,t){return n.search(t)>-1?!0:!1}),n.categories!==undefined&&n.categories instanceof Array){for(f=[],i=0,e=n.categories.length;i<e;i+=1){r=n.categories[i];for(u in t.categories[0])r[u]===undefined&&(r[u]=t.categories[0][u]);f.push(r)}n.categories=f}}function f(){function i(n,t){var u=n||{};for(var r in n)t[r]!==undefined&&t[r]!==null&&(typeof t[r]!="object"||t[r]instanceof Array?u[r]=t[r]:i(n[r],t[r]));return t.data!==undefined&&t.data!==null&&typeof t.data=="object"&&(u.data=t.data),u}t=i(t,n)}function e(){var i,r,u;t.url!=="list-required"&&typeof t.url!="function"&&(i=t.url,t.url=function(){return i});t.ajaxSettings.url!==undefined&&typeof t.ajaxSettings.url!="function"&&(i=t.ajaxSettings.url,t.ajaxSettings.url=function(){return i});typeof t.listLocation=="string"&&(r=t.listLocation,t.listLocation=t.dataType.toUpperCase()==="XML"?function(n){return $(n).find(r)}:function(n){return n[r]});typeof t.getValue=="string"&&(u=t.getValue,t.getValue=function(n){return n[u]});n.categories!==undefined&&(t.categoriesAssigned=!0)}function o(){t.ajaxSettings=n.ajaxSettings!==undefined&&typeof n.ajaxSettings=="object"?n.ajaxSettings:{}}function s(n){return t[n]!==undefined&&t[n]!==null?!0:!1}function i(n,i){function u(t,i){for(var f in i)t[f]===undefined&&n.log("Property '"+f+"' does not exist in EasyAutocomplete options API."),typeof t[f]=="object"&&$.inArray(f,r)===-1&&u(t[f],i[f])}u(t,i)}var t={data:"list-required",url:"list-required",dataType:"json",listLocation:function(n){return n},xmlElementName:"",getValue:function(n){return n},autocompleteOff:!0,placeholder:!1,ajaxCallback:function(){},matchResponseProperty:!1,list:{sort:{enabled:!1,method:function(n,i){return(n=t.getValue(n),i=t.getValue(i),n<i)?-1:n>i?1:0}},maxNumberOfElements:6,hideOnEmptyPhrase:!0,match:{enabled:!1,caseSensitive:!1,method:function(n,t){return n.search(t)>-1?!0:!1}},showAnimation:{type:"normal",time:400,callback:function(){}},hideAnimation:{type:"normal",time:400,callback:function(){}},onClickEvent:function(){},onSelectItemEvent:function(){},onLoadEvent:function(){},onChooseEvent:function(){},onKeyEnterEvent:function(){},onMouseOverEvent:function(){},onMouseOutEvent:function(){},onShowListEvent:function(){},onHideListEvent:function(){}},highlightPhrase:!0,theme:"",cssClasses:"",minCharNumber:0,requestDelay:0,adjustWidth:!0,ajaxSettings:{},preparePostData:function(n){return n},loggerEnabled:!0,template:"",categoriesAssigned:!1,categories:[{maxNumberOfElements:4}]},r=["ajaxSettings","template"];this.get=function(n){return t[n]};this.equals=function(n,i){return s(n)&&t[n]===i?!0:!1};this.checkDataUrlProperties=function(){return t.url==="list-required"&&t.data==="list-required"?!1:!0};this.checkRequiredProperties=function(){for(var n in t)if(t[n]==="required")return logger.error("Option "+n+" must be defined"),!1;return!0};this.printPropertiesThatDoesntExist=function(n,t){i(n,t)};u();f();t.loggerEnabled===!0&&i(console,n);o();e()},n}(EasyAutocomplete||{}),EasyAutocomplete=function(n){return n.Logger=function(){this.error=function(n){console.log("ERROR: "+n)};this.warning=function(n){console.log("WARNING: "+n)}},n}(EasyAutocomplete||{}),EasyAutocomplete=function(n){return n.Constans=function(){var n={CONTAINER_CLASS:"easy-autocomplete-container",CONTAINER_ID:"eac-container-",WRAPPER_CSS_CLASS:"easy-autocomplete"};this.getValue=function(t){return n[t]}},n}(EasyAutocomplete||{}),EasyAutocomplete=function(n){return n.ListBuilderService=function(n,t){function i(t,i){function f(){var u={},r;return t.xmlElementName!==undefined&&(u.xmlElementName=t.xmlElementName),t.listLocation!==undefined?r=t.listLocation:n.get("listLocation")!==undefined&&(r=n.get("listLocation")),r!==undefined?typeof r=="string"?u.data=$(i).find(r):typeof r=="function"&&(u.data=r(i)):u.data=i,u}function e(){var n={};return t.listLocation!==undefined?typeof t.listLocation=="string"?n.data=i[t.listLocation]:typeof t.listLocation=="function"&&(n.data=t.listLocation(i)):n.data=i,n}var r={},u;return r=n.get("dataType").toUpperCase()==="XML"?f():e(),t.header!==undefined&&(r.header=t.header),t.maxNumberOfElements!==undefined&&(r.maxNumberOfElements=t.maxNumberOfElements),n.get("list").maxNumberOfElements!==undefined&&(r.maxListSize=n.get("list").maxNumberOfElements),t.getValue!==undefined?typeof t.getValue=="string"?(u=t.getValue,r.getValue=function(n){return n[u]}):typeof t.getValue=="function"&&(r.getValue=t.getValue):r.getValue=n.get("getValue"),r}function r(t){var i=[];return t.xmlElementName===undefined&&(t.xmlElementName=n.get("xmlElementName")),$(t.data).find(t.xmlElementName).each(function(){i.push(this)}),i}this.init=function(t){var r=[],i={};return i.data=n.get("listLocation")(t),i.getValue=n.get("getValue"),i.maxListSize=n.get("list").maxNumberOfElements,r.push(i),r};this.updateCategories=function(t,r){var u,f;if(n.get("categoriesAssigned"))for(t=[],u=0;u<n.get("categories").length;u+=1)f=i(n.get("categories")[u],r),t.push(f);return t};this.convertXml=function(t){if(n.get("dataType").toUpperCase()==="XML")for(var i=0;i<t.length;i+=1)t[i].data=r(t[i]);return t};this.processData=function(i,r){for(var u=0,f=i.length;u<f;u+=1)i[u].data=t(n,i[u],r);return i};this.checkIfDataExists=function(n){for(var t=0,i=n.length;t<i;t+=1)if(n[t].data!==undefined&&n[t].data instanceof Array&&n[t].data.length>0)return!0;return!1}},n}(EasyAutocomplete||{}),EasyAutocomplete=function(n){return n.proccess=function(t,i,r){function o(n,i){var u=[],e="",r,o;if(t.get("list").match.enabled)for(r=0,o=n.length;r<o;r+=1)e=t.get("getValue")(n[r]),f(e,i)&&u.push(n[r]);else u=n;return u}function f(n,i){return t.get("list").match.caseSensitive||(typeof n=="string"&&(n=n.toLowerCase()),i=i.toLowerCase()),t.get("list").match.method(n,i)?!0:!1}function s(n){return i.maxNumberOfElements!==undefined&&n.length>i.maxNumberOfElements&&(n=n.slice(0,i.maxNumberOfElements)),n}function h(n){return t.get("list").sort.enabled&&n.sort(t.get("list").sort.method),n}n.proccess.match=f;var u=i.data,e=r;return u=o(u,e),u=s(u),h(u)},n}(EasyAutocomplete||{}),EasyAutocomplete=function(n){return n.Template=function(n){var t={basic:{type:"basic",method:function(n){return n},cssClass:""},description:{type:"description",fields:{description:"description"},method:function(n){return n+" - description"},cssClass:"eac-description"},iconLeft:{type:"iconLeft",fields:{icon:""},method:function(n){return n},cssClass:"eac-icon-left"},iconRight:{type:"iconRight",fields:{iconSrc:""},method:function(n){return n},cssClass:"eac-icon-right"},links:{type:"links",fields:{link:""},method:function(n){return n},cssClass:""},custom:{type:"custom",method:function(){},cssClass:""}},i=function(n){var i=n.fields,r;return n.type==="description"?(r=t.description.method,typeof i.description=="string"?r=function(n,t){return n+" - <span>"+t[i.description]+"<\/span>"}:typeof i.description=="function"&&(r=function(n,t){return n+" - <span>"+i.description(t)+"<\/span>"}),r):n.type==="iconRight"?(typeof i.iconSrc=="string"?r=function(n,t){return n+"<img class='eac-icon' src='"+t[i.iconSrc]+"' />"}:typeof i.iconSrc=="function"&&(r=function(n,t){return n+"<img class='eac-icon' src='"+i.iconSrc(t)+"' />"}),r):n.type==="iconLeft"?(typeof i.iconSrc=="string"?r=function(n,t){return"<img class='eac-icon' src='"+t[i.iconSrc]+"' />"+n}:typeof i.iconSrc=="function"&&(r=function(n,t){return"<img class='eac-icon' src='"+i.iconSrc(t)+"' />"+n}),r):n.type==="links"?(typeof i.link=="string"?r=function(n,t){return"<a href='"+t[i.link]+"' >"+n+"<\/a>"}:typeof i.link=="function"&&(r=function(n,t){return"<a href='"+i.link(t)+"' >"+n+"<\/a>"}),r):n.type==="custom"?n.method:t.basic.method},r=function(n){return!n||!n.type?t.basic.method:n.type&&t[n.type]?i(n):t.basic.method},u=function(n){var i=function(){return""};return!n||!n.type?i:n.type&&t[n.type]?function(){var i=t[n.type].cssClass;return function(){return i}}():i};this.getTemplateClass=u(n);this.build=r(n)},n}(EasyAutocomplete||{}),EasyAutocomplete=function(n){return n.main=function(t,i){function g(){if(u.length===0){a.error("Input field doesn't exist.");return}if(!r.checkDataUrlProperties()){a.error("One of options variables 'data' or 'url' must be defined.");return}if(!r.checkRequiredProperties()){a.error("Will not work without mentioned properties.");return}w();nt()}function w(){function n(){var i=$("<div>"),n=s.getValue("WRAPPER_CSS_CLASS");r.get("theme")&&r.get("theme")!==""&&(n+=" eac-"+r.get("theme"));r.get("cssClasses")&&r.get("cssClasses")!==""&&(n+=" "+r.get("cssClasses"));v.getTemplateClass()!==""&&(n+=" "+v.getTemplateClass());i.addClass(n);u.wrap(i);r.get("adjustWidth")===!0&&t()}function t(){var n=u.outerWidth();u.parent().css("width",n)}function i(){u.unwrap()}function o(){var n=$("<div>").addClass(s.getValue("CONTAINER_CLASS"));n.attr("id",b()).prepend($("<ul>")),function(){n.on("show.eac",function(){var t,i;switch(r.get("list").showAnimation.type){case"slide":t=r.get("list").showAnimation.time;i=r.get("list").showAnimation.callback;n.find("ul").slideDown(t,i);break;case"fade":t=r.get("list").showAnimation.time;i=r.get("list").showAnimation.callback;n.find("ul").fadeIn(t);i;break;default:n.find("ul").show()}r.get("list").onShowListEvent()}).on("hide.eac",function(){var t,i;switch(r.get("list").hideAnimation.type){case"slide":t=r.get("list").hideAnimation.time;i=r.get("list").hideAnimation.callback;n.find("ul").slideUp(t,i);break;case"fade":t=r.get("list").hideAnimation.time;i=r.get("list").hideAnimation.callback;n.find("ul").fadeOut(t,i);break;default:n.find("ul").hide()}r.get("list").onHideListEvent()}).on("selectElement.eac",function(){n.find("ul li").removeClass("selected");n.find("ul li").eq(f).addClass("selected");r.get("list").onSelectItemEvent()}).on("loadElements.eac",function(t,i,o){var w="",y=n.find("ul"),p,s,b,h,c,k;for(y.empty().detach(),e=[],p=0,s=0,b=i.length;s<b;s+=1)if(h=i[s].data,h.length!==0)for(i[s].header!==undefined&&i[s].header.length>0&&y.append("<div class='eac-category' >"+i[s].header+"<\/div>"),c=0,k=h.length;c<k&&p<i[s].maxListSize;c+=1)w=$("<li><div class='eac-item'><\/div><\/li>"),function(){var t=c,n=p,e=i[s].getValue(h[t]);w.find(" > div").on("click",function(){u.val(e).trigger("change");f=n;l(n);r.get("list").onClickEvent();r.get("list").onChooseEvent()}).on("mouseover",function(){f=n;l(n);r.get("list").onMouseOverEvent()}).on("mouseout",function(){r.get("list").onMouseOutEvent()}).html(v.build(a(e,o),h[t]))}(),y.append(w),e.push(h[c]),p+=1;n.append(y);r.get("list").onLoadEvent()})}();u.after(n)}function c(){u.next("."+s.getValue("CONTAINER_CLASS")).remove()}function a(n,t){return r.get("highlightPhrase")&&t!==""?p(n,t):n}function y(n){return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function p(n,t){var i=y(t);return(n+"").replace(new RegExp("("+i+")","gi"),"<b>$1<\/b>")}u.parent().hasClass(s.getValue("WRAPPER_CSS_CLASS"))&&(c(),i());n();o();h=$("#"+b());r.get("placeholder")&&u.attr("placeholder",r.get("placeholder"))}function b(){var n=u.attr("id");return s.getValue("CONTAINER_ID")+n}function nt(){function n(){d("autocompleteOff",!0)&&b();t();i();s();h();v();w()}function t(){u.on("focusout",function(){var i=u.val(),n,t,o;for(r.get("list").match.caseSensitive||typeof i!="string"||(i=i.toLowerCase()),t=0,o=e.length;t<o;t+=1)if(n=r.get("getValue")(e[t]),n&&!r.get("list").match.caseSensitive&&(n=n.toLowerCase()),n===i){f=t;l(f);return}})}function i(){u.off("keyup").on("keyup",function(n){function i(n){function e(){var n={},t=r.get("ajaxSettings")||{};for(var i in t)n[i]=t[i];return n}function s(n,t){return r.get("matchResponseProperty")!==!1?typeof r.get("matchResponseProperty")=="string"?t[r.get("matchResponseProperty")]===n:typeof r.get("matchResponseProperty")=="function"?r.get("matchResponseProperty")(t)===n:!0:!0}var f,i,t;n.length<r.get("minCharNumber")||(r.get("data")!=="list-required"&&(f=r.get("data"),i=o.init(f),i=o.updateCategories(i,f),i=o.processData(i,n),k(i,n),u.parent().find("li").length>0?p():c()),t=e(),(t.url===undefined||t.url==="")&&(t.url=r.get("url")),(t.dataType===undefined||t.dataType==="")&&(t.dataType=r.get("dataType")),t.url!==undefined&&t.url!=="list-required"&&(t.url=t.url(n),t.data=r.get("preparePostData")(t.data,n),$.ajax(t).done(function(t){var i=o.init(t);i=o.updateCategories(i,t);i=o.convertXml(i);s(n,t)&&(i=o.processData(i,n),k(i,n));o.checkIfDataExists(i)&&u.parent().find("li").length>0?p():c();r.get("ajaxCallback")()}).fail(function(){a.warning("Fail to load response data")}).always(function(){})))}switch(n.keyCode){case 27:c();tt();break;case 38:n.preventDefault();e.length>0&&f>0&&(f-=1,u.val(r.get("getValue")(e[f])),l(f));break;case 40:n.preventDefault();e.length>0&&f<e.length-1&&(f+=1,u.val(r.get("getValue")(e[f])),l(f));break;default:if(n.keyCode>40||n.keyCode===8){var t=typeof MAIN=="undefined"?u.val():MAIN.searchBarClean(u.val());r.get("list").hideOnEmptyPhrase===!0&&n.keyCode===8&&t===""?c():r.get("requestDelay")>0?(y!==undefined&&clearTimeout(y),y=setTimeout(function(){i(t)},r.get("requestDelay"))):i(t)}}})}function s(){u.on("keydown",function(n){n=n||window.event;var t=n.keyCode;if(t===38)return suppressKeypress=!0,!1}).on("keydown",function(n){n.keyCode===13&&f>-1&&(u.val(r.get("getValue")(e[f])),r.get("list").onKeyEnterEvent(),r.get("list").onChooseEvent(),f=-1,c(),n.preventDefault())})}function h(){u.off("keypress")}function v(){u.on("focus",function(){u.val()!==""&&e.length>0&&(f=-1,p())})}function w(){u.on("blur",function(){setTimeout(function(){f=-1;c()},250)})}function b(){u.attr("autocomplete","off")}n()}function p(){h.trigger("show.eac")}function c(){h.trigger("hide.eac")}function l(n){h.trigger("selectElement.eac",n)}function k(n,t){h.trigger("loadElements.eac",[n,t])}function tt(){u.trigger("blur")}var s=new n.Constans,r=new n.Configuration(i),a=new n.Logger,v=new n.Template(i.template),o=new n.ListBuilderService(r,n.proccess),d=r.equals,u=t,h="",e=[],f=-1,y;n.consts=s;this.getConstants=function(){return s};this.getConfiguration=function(){return r};this.getContainer=function(){return h};this.getSelectedItemIndex=function(){return f};this.getItems=function(){return e};this.getItemData=function(n){return e.length<n||e[n]===undefined?-1:e[n]};this.getSelectedItemData=function(){return this.getItemData(f)};this.build=function(){w()};this.init=function(){g()}},n.eacHandles=[],n.getHandle=function(t){return n.eacHandles[t]},n.inputHasId=function(n){return $(n).attr("id")!==undefined&&$(n).attr("id").length>0?!0:!1},n.assignRandomId=function(t){var i="";do i="eac-"+Math.floor(Math.random()*1e4);while($("#"+i).length!==0);elementId=n.consts.getValue("CONTAINER_ID")+i;$(t).attr("id",i)},n.setHandle=function(t,i){n.eacHandles[i]=t},n}(EasyAutocomplete||{});(function(n){n.fn.easyAutocomplete=function(t){return this.each(function(){var i=n(this),r=new EasyAutocomplete.main(i,t);EasyAutocomplete.inputHasId(i)||EasyAutocomplete.assignRandomId(i);r.init();EasyAutocomplete.setHandle(r,i.attr("id"))})};n.fn.getSelectedItemIndex=function(){var t=n(this).attr("id");return t!==undefined?EasyAutocomplete.getHandle(t).getSelectedItemIndex():-1};n.fn.getItems=function(){var t=n(this).attr("id");return t!==undefined?EasyAutocomplete.getHandle(t).getItems():-1};n.fn.getItemData=function(t){var i=n(this).attr("id");return i!==undefined&&t>-1?EasyAutocomplete.getHandle(i).getItemData(t):-1};n.fn.getSelectedItemData=function(){var t=n(this).attr("id");return t!==undefined?EasyAutocomplete.getHandle(t).getSelectedItemData():-1}})(jQuery);var imagingThumbClassName=imagingThumbClassName||"imagingThumb",strImagingThumbClassName=imagingThumbClassName==""?"":"."+imagingThumbClassName,imagingTickBoxClassName=imagingTickBoxClassName||"imagingTickBox",strImagingTickBoxClassName=imagingTickBoxClassName==""?"":"."+imagingTickBoxClassName,imagingFilesizeClassName=imagingFilesizeClassName||"imagingFilesize",imagingSelectAllClassName=imagingSelectAllClassName||"imagingSelectAll";jQuery.fn.applyTooltipToItems=function(){return this.each(function(){var t=$(this),n=$(".jq-thumbTooltipTemplate:first").clone().removeClass("jq-thumbTooltipTemplate"),r=t.data("tooltip")||t.prop("title")||"",i;r!==""&&n.length!==0&&(i=$(".jq-content:first",n),i.length===0&&(i=n),i.html(r),t.removeData("tooltip").removeAttr("title").after(n),toolTips.toolTip(t,n))}),this};$(function(){$("div"+strImagingTickBoxClassName+" input:checkbox").on("click",function(){$(this).siblings("input:checkbox").attr("checked",!1)});jQuery.fn.updateZipSize=function(){return this.each(function(){var n=0,t;jQuery(this).find("input:checkbox").each(function(){this.checked&&(n+=jQuery(this).data("filesize"))});t=n>12e5||n==0?(n/1048576).toFixed(0)+"MB":n>1024?(n/1024).toFixed(0)+"kB":"1kB";jQuery(this).find("."+imagingFilesizeClassName).html(t);n==0?$(this).find("div."+imagingSelectAllClassName).children("a:last").hide().siblings("a:first").show():$(this).find("div."+imagingSelectAllClassName).children("a:first").hide().siblings("a:last").show()}),this};$("form").each(function(){$(this).updateZipSize().find("input:checkbox").on("click",function(){$(this.form).updateZipSize()})});$("div."+imagingSelectAllClassName).children("a:last").on("click",function(){return $(this).closest("form").find("input:checkbox").each(function(){this.checked=!1}),$(this).closest("form").updateZipSize(),!1});$("div."+imagingSelectAllClassName).children("a:first").on("click",function(){return $(this).closest("form").find("input:checkbox[id^=a]").each(function(){this.checked=!0}),$(this).closest("form").updateZipSize(),!1})}),function(n,t,i){n.fn.miniTwitter=function(t){function h(){return n.ajax({url:c(),dataType:"jsonp"})}function c(){var n="https:"==i.location.protocol?"https:":"http:",t=r.max===null?r.limit:r.max,u;return r.favorite?n+"//api.twitter.com/favorites/"+r.username[0]+".json?page="+r.page+"&count="+t+"&include_entities=1&callback=?":r.list?n+"//api.twitter.com/1/"+r.username[0]+"/lists/"+r.list+"/statuses.json?page="+r.page+"&per_page="+t+"&include_entities=1&callback=?":r.query===null&&r.username.length==1?n+"//api.twitter.com/1/statuses/user_timeline.json?screen_name="+r.username[0]+"&count="+t+(r.retweet?"&include_rts=1":"")+"&page="+r.page+"&include_entities=1&callback=?":(u=r.query||"from:"+r.username.join(" OR from:"),n+"//search.twitter.com/search.json?&q="+encodeURIComponent(u)+"&rpp="+t+"&page="+r.page+"&include_entities=1&callback=?")}function e(n){return Date.parse(n.replace(/^([a-z]{3})( [a-z]{3} \d\d?)(.*)( \d{4})$/i,"$1,$2$4$3"))}function l(n){var t=(new Date).getTime()-e(n),i=new Date(e(n));return t>864e5?t=i.getDate()+" "+["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][i.getMonth()]:t>36e5?t=parseInt(t/36e5)+"h":t>6e4?t=parseInt(t/6e4)+"m":t>1e3&&(t=parseInt(t/1e3)+"s"),t}function o(t,i){return function(){var r=[];return this.each(function(){r.push(this.replace(t,i))}),n(r)}}function s(n){return n.replace(/</g,"&lt;").replace(/>/g,"^&gt;")}function u(){return r.nofollow?'rel="nofollow"':""}function f(){return r.blank?'target="_blank"':""}function a(n,t){return n.replace(/(((ftp|https?):\/\/)[\-\w@:%_\+.~#?,&\/\/=]+)|((mailto:)?[_.\w-]+@([\w][\w\-]+\.)+[a-zA-Z]{2,3})/g,function(n){for(var i,r=/^[a-z]+:/i.test(n)?n:"http://"+n,o=n,e=0;e<t.length;++e)if(i=t[e],i.url==r&&i.expanded_url){r=i.expanded_url;o=i.display_url;break}return"<a "+u()+" "+f()+' href="'+s(r)+'">'+s(o)+"<\/a>"})}function v(t){var i={};return i.text=t.text,i.tweetId=t.id_str,i.tweetUrl=i.userUrl+"/status/"+i.tweetId,i.retweet=typeof t.retweeted_status!="undefined",i.screenName=i.retweet?t.retweeted_status.user.screen_name:t.from_user||t.user.screen_name,i.realName=i.retweet?t.retweeted_status.user.name:t.from_user_name||t.user.name,i.userUrl=i.retweet?"http://twitter.com/"+t.retweeted_status.user.screen_name:"http://twitter.com/"+i.screenName,i.tweetTime=l(t.created_at),i.image=i.retweet?t.retweeted_status.user.profile_image_url:t.profile_image_url||t.user.profile_image_url,i.replyUrl="http://twitter.com/intent/tweet?in_reply_to="+r.tweetId,i.retweetUrl="http://twitter.com/intent/retweet?tweet_id="+r.tweetId,i.favoriteUrl="http://twitter.com/intent/favorite?tweet_id="+r.tweetId,i.entities=t.entities?(t.entities.urls||[]).concat(t.entities.media||[]):[],i.retweetScreenName=i.retweet&&t.retweeted_status.user.screen_name,i.retweetName=i.retweet&&t.retweeted_status.user.name,i.writeTweet=i.retweet?t.retweeted_status.text:t.text,i.finalText=n([a(i.writeTweet,i.entities)]).linkUser().linkHash()[0],i.header='<div class="mt_header"> <a '+u()+" "+f()+' class="mt_user" href="'+i.userUrl+'">'+i.realName+'<\/a> <span class="mt_screen_name">@'+i.screenName+'<\/span> <div class="time">'+i.tweetTime+"<\/div><\/div>",i.avatar='<div class="tweet"><div class="avatar"><a '+u()+" "+f()+' class="mt_avatar" href="'+i.userUrl+'"><img src="'+i.image+'" alt="'+i.realName+'\'s avatar" border="0"/><\/a><\/div>',i.textTweet='<div class="mt_text">'+i.finalText+"<\/div>",i.footer=i.retweet?'<div class="mt_footer"><span class="image_r"><\/span>Retweeted by <a '+u()+" "+f()+' class="mt_retweet" href="http://twitter.com/'+t.user.screen_name+'">'+t.user.name+'<\/a><\/div><div style="clear:both;"><\/div><\/div>':'<div class="mt_footer"><\/div><div style="clear:both;"><\/div><\/div>',i}function y(t){h().done(function(i){tweets=n.map(i.results||i,function(n){return v(n)});for(var r=0;r<tweets.length;r++)n(t).append(tweets[r].avatar+tweets[r].header+tweets[r].textTweet+tweets[r].footer)})}var r=n.extend({username:["webdevdesigner"],list:null,favorite:!1,query:null,limit:5,max:null,page:1,retweet:!0,refresh:null,linkColor:null,nofollow:!0,blank:!0,tweetId:0},t);return n.fn.extend({linkUser:o(/(^|[\W])@(\w+)/gi,"$1<a "+u()+" "+f()+' href="http://twitter.com/$2">@$2<\/a>'),linkHash:o(/(?:^| )[\#]+([\w\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u00ff\u0600-\u06ff]+)/gi," <a "+u()+" "+f()+' href="http://search.twitter.com/search?q=&tag=$1&lang=all">#$1<\/a>')}),this.each(function(n,i){typeof t=="string"&&(r.username=[t]);r.username&&typeof r.username=="string"&&(r.username=[r.username]);y(i);r.refresh!=null})}}(jQuery,window,document);jQuery.fn.outerHTML=function(){return jQuery("<div />").append(this.eq(0).clone()).html()},function(n){n.fn.tipTip=function(t){var e={activation:"hover",keepAlive:!1,maxWidth:"200px",edgeOffset:3,defaultPosition:"bottom",delay:400,fadeIn:200,fadeOut:200,attribute:"title",content:!1,enter:function(){},exit:function(){}},i=n.extend(e,t);if(n("#tiptip_holder").length<=0){var r=n('<div id="tiptip_holder" style="max-width:'+i.maxWidth+';"><\/div>'),f=n('<div id="tiptip_content"><\/div>'),u=n('<div id="tiptip_arrow"><\/div>');n("body").append(r.html(f).prepend(u.html('<div id="tiptip_arrow_inner"><\/div>')))}else var r=n("#tiptip_holder"),f=n("#tiptip_content"),u=n("#tiptip_arrow");return this.each(function(){var t=n(this),o,e;if(o=i.content?i.content:t.attr(i.attribute),o!=""){i.content||t.removeAttr(i.attribute);e=!1;i.activation=="hover"?(t.hover(function(){h()},function(){i.keepAlive||s()}),i.keepAlive&&r.hover(function(){},function(){s()})):i.activation=="focus"?t.focus(function(){h()}).blur(function(){s()}):i.activation=="click"&&(t.click(function(){return h(),!1}).hover(function(){},function(){i.keepAlive||s()}),i.keepAlive&&r.hover(function(){},function(){s()}));function h(){var nt,tt,k,d;i.enter.call(this);f.html(o);r.hide().removeAttr("class").css("margin","0");u.removeAttr("style");var c=parseInt(t.offset().top),a=parseInt(t.offset().left),it=parseInt(t.outerWidth()),y=parseInt(t.outerHeight()),v=r.outerWidth(),l=r.outerHeight(),b=Math.round((it-v)/2),rt=Math.round((y-l)/2),p=Math.round(a+b),h=Math.round(c+y+i.edgeOffset),s="",w="",g=Math.round(v-12)/2;i.defaultPosition=="bottom"?s="_bottom":i.defaultPosition=="top"?s="_top":i.defaultPosition=="left"?s="_left":i.defaultPosition=="right"&&(s="_right");nt=b+a<parseInt(n(window).scrollLeft());tt=v+a>parseInt(n(window).width());nt&&b<0||s=="_right"&&!tt||s=="_left"&&a<v+i.edgeOffset+5?(s="_right",w=Math.round(l-13)/2,g=-12,p=Math.round(a+it+i.edgeOffset),h=Math.round(c+rt)):(tt&&b<0||s=="_left"&&!nt)&&(s="_left",w=Math.round(l-13)/2,g=Math.round(v),p=Math.round(a-(v+i.edgeOffset+5)),h=Math.round(c+rt));k=c+y+i.edgeOffset+l+8>parseInt(n(window).height()+n(window).scrollTop());d=c+y-(i.edgeOffset+l+8)<0;k||s=="_bottom"&&k||s=="_top"&&!d?(s=s=="_top"||s=="_bottom"?"_top":s+"_top",w=l,h=Math.round(c-(l+5+i.edgeOffset))):(d|(s=="_top"&&d)||s=="_bottom"&&!k)&&(s=s=="_top"||s=="_bottom"?"_bottom":s+"_bottom",w=-12,h=Math.round(c+y+i.edgeOffset));s=="_right_top"||s=="_left_top"?h=h+5:(s=="_right_bottom"||s=="_left_bottom")&&(h=h-5);(s=="_left_top"||s=="_left_bottom")&&(p=p+5);u.css({"margin-left":g+"px","margin-top":w+"px"});r.css({"margin-left":p+"px","margin-top":h+"px"}).attr("class","tip"+s);e&&clearTimeout(e);e=setTimeout(function(){r.stop(!0,!0).fadeIn(i.fadeIn)},i.delay)}function s(){i.exit.call(this);e&&clearTimeout(e);r.fadeOut(i.fadeOut)}}})}}(jQuery),function(n){typeof define=="function"&&define.amd?define(["jquery"],n):n(jQuery)}(function(n){function o(i,r,f,o){var s={data:o||o===0||o===!1?o:r?r.data:{},_wrap:r?r._wrap:null,tmpl:null,parent:r||null,nodes:[],calls:d,nest:g,wrap:nt,html:tt,update:it};return i&&n.extend(s,i,{nodes:[],parent:r}),f&&(s.tmpl=f,s._ctnt=s._ctnt||s.tmpl(n,s),s.key=++e,(c.length?u:t)[e]=s),s}function s(t,i,u){var f,e=u?n.map(u,function(n){return typeof n=="string"?t.key?n.replace(/(<\w+)(?=[\s>])(?![^>]*_tmplitem)([^>]*)/g,"$1 "+r+'="'+t.key+'" $2'):n:s(n,t,n._ctnt)}):t;return i?e:(e=e.join(""),e.replace(/^\s*([^<\s][^<]*)?(<[\w\W]+>)([^>]*[^>\s])?\s*$/,function(t,i,r,u){f=n(r).get();b(f);i&&(f=l(i).concat(f));u&&(f=f.concat(l(u)))}),f?f:l(e))}function l(t){var i=document.createElement("div");return i.innerHTML=t,n.makeArray(i.childNodes)}function p(t){return new Function("jQuery","$item","var $=jQuery,call,__=[],$data=$item.data;with($data){__.push('"+t.trim().replace(/([\\'])/g,"\\$1").replace(/[\r\t\n]/g," ").replace(/\$\{([^\}]*)\}/g,"{{= $1}}").replace(/\{\{(\/?)(\w+|.)(?:\(((?:[^\}]|\}(?!\}))*?)?\))?(?:\s+(.*?)?)?(\(((?:[^\}]|\}(?!\}))*?)\))?\s*\}\}/g,function(t,i,r,u,f,e,o){var c=n.tmpl.tag[r],l,s,a;if(!c)throw"Unknown template tag: "+r;return l=c._default||[],e&&!/\w$/.test(f)&&(f+=e,e=""),f?(f=h(f),o=o?","+h(o)+")":e?")":"",s=e?f.indexOf(".")>-1?f+h(e):"("+f+").call($item"+o:f,a=e?s:"(typeof("+f+")==='function'?("+f+").call($item):("+f+"))"):a=s=l.$1||"null",u=h(u),"');"+c[i?"close":"open"].split("$notnull_1").join(f?"typeof("+f+")!=='undefined' && ("+f+")!=null":"true").split("$1a").join(a).split("$1").join(s).split("$2").join(u||l.$2||"")+"__.push('"})+"');}return __;")}function w(t,i){t._wrap=s(t,!0,Array.isArray(i)?i:[v.test(i)?i:n(i).html()]).join("")}function h(n){return n?n.replace(/\\'/g,"'").replace(/\\\\/g,"\\"):null}function k(n){var t=document.createElement("div");return t.appendChild(n.cloneNode(!0)),t.innerHTML}function b(f){function p(f){function p(n){n=n+a;s=v[n]=v[n]||o(s,t[s.parent.key+a]||s.parent)}var y,h=f,c,s,l;if(l=f.getAttribute(r)){while(h.parentNode&&(h=h.parentNode).nodeType===1&&!(y=h.getAttribute(r)));y!==l&&(h=h.parentNode?h.nodeType===11?0:h.getAttribute(r)||0:0,(s=t[l])||(s=u[l],s=o(s,t[h]||u[h]),s.key=++e,t[e]=s),i&&p(l));f.removeAttribute(r)}else i&&(s=n.data(f,"tmplItem"))&&(p(s.key),t[s.key]=s,h=n.data(f.parentNode,"tmplItem"),h=h?h.key:0);if(s){for(c=s;c&&c.key!=h;)c.nodes.push(f),c=c.parent;delete s._ctnt;delete s._wrap;n.data(f,"tmplItem",s)}}for(var a="_"+i,c,l,v={},h,s=0,y=f.length;s<y;s++)if((c=f[s]).nodeType===1){for(l=c.getElementsByTagName("*"),h=l.length-1;h>=0;h--)p(l[h]);p(c)}}function d(n,t,i,r){if(!n)return c.pop();c.push({_:n,tmpl:t,item:this,data:i,options:r})}function g(t,i,r){return n.tmpl(n.template(t),i,r,this)}function nt(t,i){var r=t.options||{};return r.wrapped=i,n.tmpl(n.template(t.tmpl),t.data,r,t.item)}function tt(t,i){var r=this._wrap;return n.map(n(Array.isArray(r)?r.join(""):r).filter(t||"*"),function(n){return i?n.innerText||n.textContent:n.outerHTML||k(n)})}function it(){var t=this.nodes;n.tmpl(null,null,null,this).insertBefore(t[0]);n(t).remove()}var a=n.fn.domManip,r="_tmplitem",v=/^[^<]*(<[\w\W]+>)[^>]*$|\{\{\! /,t={},u={},f,y={key:0,data:{}},e=0,i=0,c=[];n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(r,u){n.fn[r]=function(e){var o=[],h=n(e),c,s,a,v,l=this.length===1&&this[0].parentNode;if(f=t||{},l&&l.nodeType===11&&l.childNodes.length===1&&h.length===1)h[u](this[0]),o=this;else{for(s=0,a=h.length;s<a;s++)i=s,c=(s>0?this.clone(!0):this).get(),n(h[s])[u](c),o=o.concat(c);i=0;o=this.pushStack(o,r,h.selector)}return v=f,f=null,n.tmpl.complete(v),o}});n.fn.extend({tmpl:function(t,i,r){return n.tmpl(this[0],t,i,r)},tmplItem:function(){return n.tmplItem(this[0])},template:function(t){return n.template(t,this[0])},domManip:function(r,u,e){if(r[0]&&Array.isArray(r[0])){for(var o=n.makeArray(arguments),s=r[0],l=s.length,h=0,c;h<l&&!(c=n.data(s[h++],"tmplItem")););c&&i&&(o[2]=function(t){n.tmpl.afterManip(this,t,e)});a.apply(this,o)}else a.apply(this,arguments);return i=0,f||n.tmpl.complete(t),this}});n.extend({tmpl:function(i,r,f,e){var h,c=!e;if(c)e=y,i=n.template[i]||n.template(null,i),u={};else if(!i)return i=e.tmpl,t[e.key]=e,e.nodes=[],e.wrapped&&w(e,e.wrapped),n(s(e,null,e.tmpl(n,e)));return i?(typeof r=="function"&&(r=r.call(e||{})),f&&f.wrapped&&w(f,f.wrapped),h=Array.isArray(r)?n.map(r,function(n){return n?o(f,e,i,n):null}):[o(f,e,i,r)],c?n(s(e,null,h)):h):[]},tmplItem:function(t){var i;for(t instanceof n&&(t=t[0]);t&&t.nodeType===1&&!(i=n.data(t,"tmplItem"))&&(t=t.parentNode););return i||y},template:function(t,i){return i?(typeof i=="string"?i=p(i):i instanceof n&&(i=i[0]||{}),i.nodeType&&(i=n.data(i,"tmpl")||n.data(i,"tmpl",p(i.innerHTML))),typeof t=="string"?n.template[t]=i:i):t?typeof t!="string"?n.template(null,t):n.template[t]||n.template(null,v.test(t)?t:n(t)):null},encode:function(n){return(""+n).split("<").join("&lt;").split(">").join("&gt;").split('"').join("&#34;").split("'").join("&#39;")}});n.extend(n.tmpl,{tag:{tmpl:{_default:{$2:"null"},open:"if($notnull_1){__=__.concat($item.nest($1,$2));}"},wrap:{_default:{$2:"null"},open:"$item.calls(__,$1,$2);__=[];",close:"call=$item.calls();__=call._.concat($item.wrap(call,__));"},each:{_default:{$2:"$index, $value"},open:"if($notnull_1){$.each($1a,function($2){with(this){",close:"}});}"},"if":{open:"if(($notnull_1) && $1a){",close:"}"},"else":{_default:{$1:"true"},open:"}else if(($notnull_1) && $1a){"},html:{open:"if($notnull_1){__.push($1a);}"},"=":{_default:{$1:"$data"},open:"if($notnull_1){__.push($.encode($1a));}"},"!":{open:""}},complete:function(){t={}},afterManip:function(t,r,u){var f=r.nodeType===11?n.makeArray(r.childNodes):r.nodeType===1?[r]:[];u.call(t,r);b(f);i++}})}),function(n){n.fn.wTooltip=function(t,i){function p(i){i&&(t.degrade?n(r).html(t.content.replace(/<\/?[^>]+>/gi,"")):n(r).html(t.content))}function h(i){function f(){u&&!t.content&&(u="")}function s(){!e&&t.auto&&(clearInterval(a),t.fadeOut?n(r).fadeOut(t.fadeOut,function(){f(i)}):(f(i),r.style.display="none"));typeof t.callAfter=="function"&&t.callAfter(r,i,t);o&&(t=n.listen(t))}t.timeout>0?l=setTimeout(function(){s()},t.timeout):s()}var s;t=n.extend({content:null,ajax:null,follow:!0,auto:!0,fadeIn:0,fadeOut:0,appendTip:document.body,degrade:!1,offsetY:10,offsetX:1,style:{},className:null,id:null,callBefore:function(){},callAfter:function(){},clickAction:function(t){n(t).hide()},delay:0,timeout:0},t||{});t.style||typeof t.style=="object"?t.style=n.extend({border:"1px solid gray",background:"#edeef0",color:"#000",padding:"10px",zIndex:"100000",textAlign:"left"},t.style||{}):(t.style={},t.style.zIndex="100000");typeof i=="function"&&(t.callAfter=i||t.callAfter);t.style.display="none";t.style.position="absolute";var u,c,l,a,v={},f=!0,e=!1,y=!1,r=document.createElement("div"),w=typeof document.body.style.maxWidth=="undefined"?!0:!1,o=typeof n.talk=="function"&&typeof n.listen=="function"?!0:!1;t.id&&(r.id=t.id);t.className&&(r.className=t.className);t.degrade=t.degrade&&w?!0:!1;for(s in t.style)r.style[s]=t.style[s];t.ajax&&n.get(t.ajax,function(n){n&&(t.content=n);p(t.content)});n(r).on("hover",function(){e=!0},function(){e=!1;h(v)});return o&&(t.key=r,t.plugin="wTooltip",t.channel="wayfarer",n.talk(t)),p(t.content&&!t.ajax),n(r).appendTo(t.appendTip),this.each(function(){n(this).on("hover",function(){function i(){typeof t.callBefore=="function"&&t.callBefore(r,f,t);o&&(t=n.listen(t));var i;t.content?t.degrade||(i="block"):u&&!t.degrade?(n(r).html(unescape(u)),i="block",u=""):i="none";t.auto&&(i=="block"&&t.fadeIn?n(r).fadeIn(t.fadeIn):r.style.display=i)}var f=this;clearTimeout(l);!(this.title||this.titleMemKeep)||t.degrade||t.content||(u=this.title||this.titleMemKeep,this.title&&(this.titleMemKeep=this.title,this.title=""));t.content&&t.degrade&&(this.title=r.innerHTML);t.delay>0?c=setTimeout(function(){i()},t.delay):i()},function(){clearTimeout(c);var i=this;f=!0;!t.follow||y||t.offsetX<0&&0-t.offsetX<n(r).outerWidth()&&t.offsetY>0&&0-t.offsetY<n(r).outerHeight()?setTimeout(function(){a=setInterval(function(){h(i)},1)},1):h(this)});n(this).on("mousemove",function(i){if(v=this,t.follow||f){var o=n(window).scrollTop(),s=n(window).scrollLeft(),u=i.clientY+o+t.offsetY,e=i.clientX+s+t.offsetX,l=n(t.appendTip).outerHeight(),a=n(t.appendTip).innerHeight(),h=n(window).width()+s-n(r).outerWidth(),c=n(window).height()+o-n(r).outerHeight();u=l>a?u-(l-a):u;y=u>c||e>h?!0:!1;e-s<=0&&t.offsetX<0?e=s:e>h&&(e=h);u-o<=0&&t.offsetY<0?u=o:u>c&&(u=c);r.style.top=u+"px";r.style.left=e+"px";f=!1}});if(typeof t.clickAction=="function")n(this).on("click",function(){t.clickAction(r,this)})})}}(jQuery),function(n){var t,r,i;typeof define=="function"&&define.amd&&(define(n),t=!0);typeof exports=="object"&&(module.exports=n(),t=!0);t||(r=window.Cookies,i=window.Cookies=n(),i.noConflict=function(){return window.Cookies=r,i})}(function(){function n(){for(var n=0,r={},t,i;n<arguments.length;n++){t=arguments[n];for(i in t)r[i]=t[i]}return r}function t(n){return n.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function i(r){function u(){}function f(t,i,f){var s,o,e;if(typeof document!="undefined"){f=n({path:"/"},u.defaults,f);typeof f.expires=="number"&&(f.expires=new Date(new Date*1+f.expires*864e5));f.expires=f.expires?f.expires.toUTCString():"";try{s=JSON.stringify(i);/^[\{\[]/.test(s)&&(i=s)}catch(h){}i=r.write?r.write(i,t):encodeURIComponent(String(i)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent);t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);o="";for(e in f)f[e]&&(o+="; "+e,f[e]!==!0)&&(o+="="+f[e].split(";")[0]);return document.cookie=t+"="+i+o}}function e(n,i){var s,u,f;if(typeof document!="undefined"){for(var e={},h=document.cookie?document.cookie.split("; "):[],o=0;o<h.length;o++){s=h[o].split("=");u=s.slice(1).join("=");i||u.charAt(0)!=='"'||(u=u.slice(1,-1));try{if(f=t(s[0]),u=(r.read||r)(u,f)||t(u),i)try{u=JSON.parse(u)}catch(c){}if(e[f]=u,n===f)break}catch(c){}}return n?e[n]:e}}return u.set=f,u.get=function(n){return e(n,!1)},u.getJSON=function(n){return e(n,!0)},u.remove=function(t,i){f(t,"",n(i,{expires:-1}))},u.defaults={},u.withConverter=i,u}return i(function(){})});typeof JSON!="object"&&(JSON={}),function(){"use strict";function i(n){return n<10?"0"+n:n}function o(n){return e.lastIndex=0,e.test(n)?'"'+n.replace(e,function(n){var t=s[n];return typeof t=="string"?t:"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+n+'"'}function u(i,f){var s,l,h,a,v=n,c,e=f[i];e&&typeof e=="object"&&typeof e.toJSON=="function"&&(e=e.toJSON(i));typeof t=="function"&&(e=t.call(f,i,e));switch(typeof e){case"string":return o(e);case"number":return isFinite(e)?String(e):"null";case"boolean":case"null":return String(e);case"object":if(!e)return"null";if(n+=r,c=[],Object.prototype.toString.apply(e)==="[object Array]"){for(a=e.length,s=0;s<a;s+=1)c[s]=u(s,e)||"null";return h=c.length===0?"[]":n?"[\n"+n+c.join(",\n"+n)+"\n"+v+"]":"["+c.join(",")+"]",n=v,h}if(t&&typeof t=="object")for(a=t.length,s=0;s<a;s+=1)typeof t[s]=="string"&&(l=t[s],h=u(l,e),h&&c.push(o(l)+(n?": ":":")+h));else for(l in e)Object.prototype.hasOwnProperty.call(e,l)&&(h=u(l,e),h&&c.push(o(l)+(n?": ":":")+h));return h=c.length===0?"{}":n?"{\n"+n+c.join(",\n"+n)+"\n"+v+"}":"{"+c.join(",")+"}",n=v,h}}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+i(this.getUTCMonth()+1)+"-"+i(this.getUTCDate())+"T"+i(this.getUTCHours())+":"+i(this.getUTCMinutes())+":"+i(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()});var f=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,e=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,n,r,s={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},t;typeof JSON.stringify!="function"&&(JSON.stringify=function(i,f,e){var o;if(n="",r="",typeof e=="number")for(o=0;o<e;o+=1)r+=" ";else typeof e=="string"&&(r=e);if(t=f,f&&typeof f!="function"&&(typeof f!="object"||typeof f.length!="number"))throw new Error("JSON.stringify");return u("",{"":i})});typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){function walk(n,t){var r,u,i=n[t];if(i&&typeof i=="object")for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(u=walk(i,r),u!==undefined?i[r]=u:delete i[r]);return reviver.call(n,t,i)}var j;if(text=String(text),f.lastIndex=0,f.test(text)&&(text=text.replace(f,function(n){return"\\u"+("0000"+n.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,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse");})}(),function(n,t){typeof exports=="object"&&typeof module!="undefined"?module.exports=t():typeof define=="function"&&define.amd?define(t):n.moment=t()}(this,function(){"use strict";function t(){return gf.apply(null,arguments)}function ih(n){gf=n}function rt(n){return n instanceof Array||Object.prototype.toString.call(n)==="[object Array]"}function ti(n){return n!=null&&Object.prototype.toString.call(n)==="[object Object]"}function s(n,t){return Object.prototype.hasOwnProperty.call(n,t)}function hu(n){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(n).length===0;for(var t in n)if(s(n,t))return!1;return!0}function k(n){return n===void 0}function vt(n){return typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]"}function pi(n){return n instanceof Date||Object.prototype.toString.call(n)==="[object Date]"}function ne(n,t){for(var r=[],i=0;i<n.length;++i)r.push(t(n[i],i));return r}function dt(n,t){for(var i in t)s(t,i)&&(n[i]=t[i]);return s(t,"toString")&&(n.toString=t.toString),s(t,"valueOf")&&(n.valueOf=t.valueOf),n}function ot(n,t,i,r){return vo(n,t,i,r,!0).utc()}function rh(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function u(n){return n._pf==null&&(n._pf=rh()),n._pf}function cu(n){if(n._isValid==null){var t=u(n),r=te.call(t.parsedDateParts,function(n){return n!=null}),i=!isNaN(n._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(n._strict&&(i=i&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===undefined),Object.isFrozen!=null&&Object.isFrozen(n))return i;n._isValid=i}return n._isValid}function rr(n){var t=ot(NaN);return n!=null?dt(u(t),n):u(t).userInvalidated=!0,t}function lu(n,t){var i,r,f;if(k(t._isAMomentObject)||(n._isAMomentObject=t._isAMomentObject),k(t._i)||(n._i=t._i),k(t._f)||(n._f=t._f),k(t._l)||(n._l=t._l),k(t._strict)||(n._strict=t._strict),k(t._tzm)||(n._tzm=t._tzm),k(t._isUTC)||(n._isUTC=t._isUTC),k(t._offset)||(n._offset=t._offset),k(t._pf)||(n._pf=u(t)),k(t._locale)||(n._locale=t._locale),ur.length>0)for(i=0;i<ur.length;i++)r=ur[i],f=t[r],k(f)||(n[r]=f);return n}function wi(n){lu(this,n);this._d=new Date(n._d!=null?n._d.getTime():NaN);this.isValid()||(this._d=new Date(NaN));fr===!1&&(fr=!0,t.updateOffset(this),fr=!1)}function ut(n){return n instanceof wi||n!=null&&n._isAMomentObject!=null}function ie(n){t.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+n)}function nt(n,i){var r=!0;return dt(function(){if(t.deprecationHandler!=null&&t.deprecationHandler(null,n),r){for(var o=[],u,e,f=0;f<arguments.length;f++){if(u="",typeof arguments[f]=="object"){u+="\n["+f+"] ";for(e in arguments[0])s(arguments[0],e)&&(u+=e+": "+arguments[0][e]+", ");u=u.slice(0,-2)}else u=arguments[f];o.push(u)}ie(n+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack);r=!1}return i.apply(this,arguments)},i)}function re(n,i){t.deprecationHandler!=null&&t.deprecationHandler(n,i);au[n]||(ie(i),au[n]=!0)}function st(n){return typeof Function!="undefined"&&n instanceof Function||Object.prototype.toString.call(n)==="[object Function]"}function uh(n){var t;for(var i in n)s(n,i)&&(t=n[i],st(t)?this[i]=t:this["_"+i]=t);this._config=n;this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function vu(n,t){var r=dt({},n);for(var i in t)s(t,i)&&(ti(n[i])&&ti(t[i])?(r[i]={},dt(r[i],n[i]),dt(r[i],t[i])):t[i]!=null?r[i]=t[i]:delete r[i]);for(i in n)s(n,i)&&!s(t,i)&&ti(n[i])&&(r[i]=dt({},r[i]));return r}function yu(n){n!=null&&this.set(n)}function fh(n,t,i){var r=this._calendar[n]||this._calendar.sameElse;return st(r)?r.call(t,i):r}function ht(n,t,i){var r=""+Math.abs(n),u=t-r.length,f=n>=0;return(f?i?"+":"":"-")+Math.pow(10,Math.max(0,u)).toString().substr(1)+r}function r(n,t,i,r){var u=r;typeof r=="string"&&(u=function(){return this[r]()});n&&(ei[n]=u);t&&(ei[t[0]]=function(){return ht(u.apply(this,arguments),t[1],t[2])});i&&(ei[i]=function(){return this.localeData().ordinal(u.apply(this,arguments),n)})}function eh(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function oh(n){for(var t=n.match(pu),i=0,r=t.length;i<r;i++)t[i]=ei[t[i]]?ei[t[i]]:eh(t[i]);return function(i){for(var f="",u=0;u<r;u++)f+=st(t[u])?t[u].call(i,n):t[u];return f}}function or(n,t){return n.isValid()?(t=ee(t,n.localeData()),wu[t]=wu[t]||oh(t),wu[t](n)):n.localeData().invalidDate()}function ee(n,t){function r(n){return t.longDateFormat(n)||n}var i=5;for(er.lastIndex=0;i>=0&&er.test(n);)n=n.replace(er,r),er.lastIndex=0,i-=1;return n}function sh(n){var t=this._longDateFormat[n],i=this._longDateFormat[n.toUpperCase()];return t||!i?t:(this._longDateFormat[n]=i.match(pu).map(function(n){return n==="MMMM"||n==="MM"||n==="DD"||n==="dddd"?n.slice(1):n}).join(""),this._longDateFormat[n])}function hh(){return this._invalidDate}function ch(n){return this._ordinal.replace("%d",n)}function lh(n,t,i,r){var u=this._relativeTime[i];return st(u)?u(n,t,i,r):u.replace(/%d/i,n)}function ah(n,t){var i=this._relativeTime[n>0?"future":"past"];return st(i)?i(t):i.replace(/%s/i,t)}function p(n,t){var i=n.toLowerCase();oi[i]=oi[i+"s"]=oi[t]=n}function tt(n){return typeof n=="string"?oi[n]||oi[n.toLowerCase()]:undefined}function bu(n){var r={},t;for(var i in n)s(n,i)&&(t=tt(i),t&&(r[t]=n[i]));return r}function w(n,t){ku[n]=t}function vh(n){var t=[];for(var i in n)s(n,i)&&t.push({unit:i,priority:ku[i]});return t.sort(function(n,t){return n.priority-t.priority}),t}function sr(n){return n%4==0&&n%100!=0||n%400==0}function it(n){return n<0?Math.ceil(n)||0:Math.floor(n)}function f(n){var t=+n,i=0;return t!==0&&isFinite(t)&&(i=it(t)),i}function si(n,i){return function(r){return r!=null?(ae(this,n,r),t.updateOffset(this,i),this):hr(this,n)}}function hr(n,t){return n.isValid()?n._d["get"+(n._isUTC?"UTC":"")+t]():NaN}function ae(n,t,i){n.isValid()&&!isNaN(i)&&(t==="FullYear"&&sr(n.year())&&n.month()===1&&n.date()===29?(i=f(i),n._d["set"+(n._isUTC?"UTC":"")+t](i,n.month(),br(i,n.month()))):n._d["set"+(n._isUTC?"UTC":"")+t](i))}function yh(n){return(n=tt(n),st(this[n]))?this[n]():this}function ph(n,t){if(typeof n=="object"){n=bu(n);for(var r=vh(n),i=0;i<r.length;i++)this[r[i].unit](n[r[i].unit])}else if(n=tt(n),st(this[n]))return this[n](t);return this}function i(n,t,i){pr[n]=st(t)?t:function(n){return n&&i?i:t}}function bh(n,t){return s(pr,n)?pr[n](t._strict,t._locale):new RegExp(kh(n))}function kh(n){return g(n.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,t,i,r,u){return t||i||r||u}))}function g(n){return n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function h(n,t){var i,r=t;for(typeof n=="string"&&(n=[n]),vt(t)&&(r=function(n,i){i[t]=f(n)}),i=0;i<n.length;i++)wr[n[i]]=r}function ki(n,t){h(n,function(n,i,r,u){r._w=r._w||{};t(n,r._w,r,u)})}function dh(n,t,i){t!=null&&s(wr,n)&&wr[n](t,i._a,i,n)}function tc(n,t){return(n%t+t)%t}function br(n,t){if(isNaN(n)||isNaN(t))return NaN;var i=tc(t,12);return n+=(t-i)/12,i===1?sr(n)?29:28:31-i%7%2}function fc(n,t){return n?rt(this._months)?this._months[n.month()]:this._months[(this._months.isFormat||ke).test(t)?"format":"standalone"][n.month()]:rt(this._months)?this._months:this._months.standalone}function ec(n,t){return n?rt(this._monthsShort)?this._monthsShort[n.month()]:this._monthsShort[ke.test(t)?"format":"standalone"][n.month()]:rt(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function oc(n,t,i){var u,r,e,f=n.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],u=0;u<12;++u)e=ot([2e3,u]),this._shortMonthsParse[u]=this.monthsShort(e,"").toLocaleLowerCase(),this._longMonthsParse[u]=this.months(e,"").toLocaleLowerCase();return i?t==="MMM"?(r=v.call(this._shortMonthsParse,f),r!==-1?r:null):(r=v.call(this._longMonthsParse,f),r!==-1?r:null):t==="MMM"?(r=v.call(this._shortMonthsParse,f),r!==-1)?r:(r=v.call(this._longMonthsParse,f),r!==-1?r:null):(r=v.call(this._longMonthsParse,f),r!==-1)?r:(r=v.call(this._shortMonthsParse,f),r!==-1?r:null)}function sc(n,t,i){var r,u,f;if(this._monthsParseExact)return oc.call(this,n,t,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++)if((u=ot([2e3,r]),i&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(u,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(u,"").replace(".","")+"$","i")),i||this._monthsParse[r]||(f="^"+this.months(u,"")+"|^"+this.monthsShort(u,""),this._monthsParse[r]=new RegExp(f.replace(".",""),"i")),i&&t==="MMMM"&&this._longMonthsParse[r].test(n))||i&&t==="MMM"&&this._shortMonthsParse[r].test(n)||!i&&this._monthsParse[r].test(n))return r}function de(n,t){var i;if(!n.isValid())return n;if(typeof t=="string")if(/^\d+$/.test(t))t=f(t);else if(t=n.localeData().monthsParse(t),!vt(t))return n;return i=Math.min(n.date(),br(n.year(),t)),n._d["set"+(n._isUTC?"UTC":"")+"Month"](t,i),n}function ge(n){return n!=null?(de(this,n),t.updateOffset(this,!0),this):hr(this,"Month")}function hc(){return br(this.year(),this.month())}function cc(n){return this._monthsParseExact?(s(this,"_monthsRegex")||no.call(this),n?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=rc),this._monthsShortStrictRegex&&n?this._monthsShortStrictRegex:this._monthsShortRegex)}function lc(n){return this._monthsParseExact?(s(this,"_monthsRegex")||no.call(this),n?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=uc),this._monthsStrictRegex&&n?this._monthsStrictRegex:this._monthsRegex)}function no(){function f(n,t){return t.length-n.length}for(var i=[],r=[],t=[],u,n=0;n<12;n++)u=ot([2e3,n]),i.push(this.monthsShort(u,"")),r.push(this.months(u,"")),t.push(this.months(u,"")),t.push(this.monthsShort(u,""));for(i.sort(f),r.sort(f),t.sort(f),n=0;n<12;n++)i[n]=g(i[n]),r[n]=g(r[n]);for(n=0;n<24;n++)t[n]=g(t[n]);this._monthsRegex=new RegExp("^("+t.join("|")+")","i");this._monthsShortRegex=this._monthsRegex;this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i");this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function di(n){return sr(n)?366:365}function ac(){return sr(this.year())}function vc(n,t,i,r,u,f,e){var o;return n<100&&n>=0?(o=new Date(n+400,t,i,r,u,f,e),isFinite(o.getFullYear())&&o.setFullYear(n)):o=new Date(n,t,i,r,u,f,e),o}function gi(n){var t,i;return n<100&&n>=0?(i=Array.prototype.slice.call(arguments),i[0]=n+400,t=new Date(Date.UTC.apply(null,i)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(n)):t=new Date(Date.UTC.apply(null,arguments)),t}function kr(n,t,i){var r=7+t-i,u=(7+gi(n,0,r).getUTCDay()-t)%7;return-u+r-1}function to(n,t,i,r,u){var s=(7+i-r)%7,h=kr(n,r,u),f=1+7*(t-1)+s+h,e,o;return f<=0?(e=n-1,o=di(e)+f):f>di(n)?(e=n+1,o=f-di(n)):(e=n,o=f),{year:e,dayOfYear:o}}function nr(n,t,i){var e=kr(n.year(),t,i),r=Math.floor((n.dayOfYear()-e-1)/7)+1,f,u;return r<1?(u=n.year()-1,f=r+wt(u,t,i)):r>wt(n.year(),t,i)?(f=r-wt(n.year(),t,i),u=n.year()+1):(u=n.year(),f=r),{week:f,year:u}}function wt(n,t,i){var r=kr(n,t,i),u=kr(n+1,t,i);return(di(n)-r+u)/7}function yc(n){return nr(n,this._week.dow,this._week.doy).week}function pc(){return this._week.dow}function wc(){return this._week.doy}function bc(n){var t=this.localeData().week(this);return n==null?t:this.add((n-t)*7,"d")}function kc(n){var t=nr(this,1,4).week;return n==null?t:this.add((n-t)*7,"d")}function dc(n,t){return typeof n!="string"?n:isNaN(n)?(n=t.weekdaysParse(n),typeof n=="number")?n:null:parseInt(n,10)}function gc(n,t){return typeof n=="string"?t.weekdaysParse(n)%7||7:isNaN(n)?null:n}function tf(n,t){return n.slice(t,7).concat(n.slice(0,t))}function fl(n,t){var i=rt(this._weekdays)?this._weekdays:this._weekdays[n&&n!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return n===!0?tf(i,this._week.dow):n?i[n.day()]:i}function el(n){return n===!0?tf(this._weekdaysShort,this._week.dow):n?this._weekdaysShort[n.day()]:this._weekdaysShort}function ol(n){return n===!0?tf(this._weekdaysMin,this._week.dow):n?this._weekdaysMin[n.day()]:this._weekdaysMin}function sl(n,t,i){var f,r,e,u=n.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],f=0;f<7;++f)e=ot([2e3,1]).day(f),this._minWeekdaysParse[f]=this.weekdaysMin(e,"").toLocaleLowerCase(),this._shortWeekdaysParse[f]=this.weekdaysShort(e,"").toLocaleLowerCase(),this._weekdaysParse[f]=this.weekdays(e,"").toLocaleLowerCase();return i?t==="dddd"?(r=v.call(this._weekdaysParse,u),r!==-1?r:null):t==="ddd"?(r=v.call(this._shortWeekdaysParse,u),r!==-1?r:null):(r=v.call(this._minWeekdaysParse,u),r!==-1?r:null):t==="dddd"?(r=v.call(this._weekdaysParse,u),r!==-1)?r:(r=v.call(this._shortWeekdaysParse,u),r!==-1)?r:(r=v.call(this._minWeekdaysParse,u),r!==-1?r:null):t==="ddd"?(r=v.call(this._shortWeekdaysParse,u),r!==-1)?r:(r=v.call(this._weekdaysParse,u),r!==-1)?r:(r=v.call(this._minWeekdaysParse,u),r!==-1?r:null):(r=v.call(this._minWeekdaysParse,u),r!==-1)?r:(r=v.call(this._weekdaysParse,u),r!==-1)?r:(r=v.call(this._shortWeekdaysParse,u),r!==-1?r:null)}function hl(n,t,i){var r,u,f;if(this._weekdaysParseExact)return sl.call(this,n,t,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++)if((u=ot([2e3,1]).day(r),i&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(u,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(u,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(u,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(f="^"+this.weekdays(u,"")+"|^"+this.weekdaysShort(u,"")+"|^"+this.weekdaysMin(u,""),this._weekdaysParse[r]=new RegExp(f.replace(".",""),"i")),i&&t==="dddd"&&this._fullWeekdaysParse[r].test(n))||i&&t==="ddd"&&this._shortWeekdaysParse[r].test(n)||i&&t==="dd"&&this._minWeekdaysParse[r].test(n)||!i&&this._weekdaysParse[r].test(n))return r}function cl(n){if(!this.isValid())return n!=null?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return n!=null?(n=dc(n,this.localeData()),this.add(n-t,"d")):t}function ll(n){if(!this.isValid())return n!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return n==null?t:this.add(n-t,"d")}function al(n){if(!this.isValid())return n!=null?this:NaN;if(n!=null){var t=gc(n,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function vl(n){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||rf.call(this),n?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=il),this._weekdaysStrictRegex&&n?this._weekdaysStrictRegex:this._weekdaysRegex)}function yl(n){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||rf.call(this),n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=rl),this._weekdaysShortStrictRegex&&n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function pl(n){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||rf.call(this),n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ul),this._weekdaysMinStrictRegex&&n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function rf(){function t(n,t){return t.length-n.length}for(var u=[],f=[],e=[],n=[],r,o,s,h,i=0;i<7;i++)r=ot([2e3,1]).day(i),o=g(this.weekdaysMin(r,"")),s=g(this.weekdaysShort(r,"")),h=g(this.weekdays(r,"")),u.push(o),f.push(s),e.push(h),n.push(o),n.push(s),n.push(h);u.sort(t);f.sort(t);e.sort(t);n.sort(t);this._weekdaysRegex=new RegExp("^("+n.join("|")+")","i");this._weekdaysShortRegex=this._weekdaysRegex;this._weekdaysMinRegex=this._weekdaysRegex;this._weekdaysStrictRegex=new RegExp("^("+e.join("|")+")","i");this._weekdaysShortStrictRegex=new RegExp("^("+f.join("|")+")","i");this._weekdaysMinStrictRegex=new RegExp("^("+u.join("|")+")","i")}function uf(){return this.hours()%12||12}function wl(){return this.hours()||24}function uo(n,t){r(n,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function fo(n,t){return t._meridiemParse}function bl(n){return(n+"").toLowerCase().charAt(0)==="p"}function kl(n,t,i){return n>11?i?"pm":"PM":i?"am":"AM"}function dl(n,t){for(var r=Math.min(n.length,t.length),i=0;i<r;i+=1)if(n[i]!==t[i])return i;return r}function ho(n){return n?n.toLowerCase().replace("_","-"):n}function gl(n){for(var r=0,i,t,f,u;r<n.length;){for(u=ho(n[r]).split("-"),i=u.length,t=ho(n[r+1]),t=t?t.split("-"):null;i>0;){if(f=dr(u.slice(0,i).join("-")),f)return f;if(t&&t.length>=i&&dl(u,t)>=i-1)break;i--}r++}return ir}function dr(n){var t=null,i;if(a[n]===undefined&&typeof module!="undefined"&&module&&module.exports)try{t=ir._abbr;i=require;i("./locale/"+n);gt(t)}catch(r){a[n]=null}return a[n]}function gt(n,t){var i;return n&&(i=k(t)?bt(n):ff(n,t),i?ir=i:typeof console!="undefined"&&console.warn&&console.warn("Locale "+n+" not found. Did you forget to load it?")),ir._abbr}function ff(n,t){if(t!==null){var r,i=so;if(t.abbr=n,a[n]!=null)re("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=a[n]._config;else if(t.parentLocale!=null)if(a[t.parentLocale]!=null)i=a[t.parentLocale]._config;else if(r=dr(t.parentLocale),r!=null)i=r._config;else return tr[t.parentLocale]||(tr[t.parentLocale]=[]),tr[t.parentLocale].push({name:n,config:t}),null;return a[n]=new yu(vu(i,t)),tr[n]&&tr[n].forEach(function(n){ff(n.name,n.config)}),gt(n),a[n]}return delete a[n],null}function na(n,t){if(t!=null){var r,i,u=so;a[n]!=null&&a[n].parentLocale!=null?a[n].set(vu(a[n]._config,t)):(i=dr(n),i!=null&&(u=i._config),t=vu(u,t),i==null&&(t.abbr=n),r=new yu(t),r.parentLocale=a[n],a[n]=r);gt(n)}else a[n]!=null&&(a[n].parentLocale!=null?(a[n]=a[n].parentLocale,n===gt()&&gt(n)):a[n]!=null&&delete a[n]);return a[n]}function bt(n){var t;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return ir;if(!rt(n)){if(t=dr(n),t)return t;n=[n]}return gl(n)}function ta(){return ue(a)}function ef(n){var i,t=n._a;return t&&u(n).overflow===-2&&(i=t[yt]<0||t[yt]>11?yt:t[ct]<1||t[ct]>br(t[b],t[yt])?ct:t[y]<0||t[y]>24||t[y]===24&&(t[ft]!==0||t[pt]!==0||t[ii]!==0)?y:t[ft]<0||t[ft]>59?ft:t[pt]<0||t[pt]>59?pt:t[ii]<0||t[ii]>999?ii:-1,u(n)._overflowDayOfYear&&(i<b||i>ct)&&(i=ct),u(n)._overflowWeeks&&i===-1&&(i=gh),u(n)._overflowWeekday&&i===-1&&(i=nc),u(n).overflow=i),n}function co(n){var t,r,o=n._i,i=ia.exec(o)||ra.exec(o),s,e,f,h;if(i){for(u(n).iso=!0,t=0,r=gr.length;t<r;t++)if(gr[t][1].exec(i[1])){e=gr[t][0];s=gr[t][2]!==!1;break}if(e==null){n._isValid=!1;return}if(i[3]){for(t=0,r=of.length;t<r;t++)if(of[t][1].exec(i[3])){f=(i[2]||" ")+of[t][0];break}if(f==null){n._isValid=!1;return}}if(!s&&f!=null){n._isValid=!1;return}if(i[4])if(ua.exec(i[4]))h="Z";else{n._isValid=!1;return}n._f=e+(f||"")+(h||"");hf(n)}else n._isValid=!1}function sa(n,t,i,r,u,f){var e=[ha(n),be.indexOf(t),parseInt(i,10),parseInt(r,10),parseInt(u,10),];return f&&e.push(parseInt(f,10)),e}function ha(n){var t=parseInt(n,10);return t<=49?2e3+t:t<=999?1900+t:t}function ca(n){return n.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function la(n,t,i){if(n){var r=ro.indexOf(n),f=new Date(t[0],t[1],t[2]).getDay();if(r!==f)return u(i).weekdayMismatch=!0,i._isValid=!1,!1}return!0}function aa(n,t,i){if(n)return oa[n];if(t)return 0;var r=parseInt(i,10),u=r%100,f=(r-u)/100;return f*60+u}function lo(n){var t=ea.exec(ca(n._i)),i;if(t){if(i=sa(t[4],t[3],t[2],t[5],t[6],t[7]),!la(t[1],i,n))return;n._a=i;n._tzm=aa(t[8],t[9],t[10]);n._d=gi.apply(null,n._a);n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm);u(n).rfc2822=!0}else n._isValid=!1}function va(n){var i=fa.exec(n._i);if(i!==null){n._d=new Date(+i[1]);return}if(co(n),n._isValid===!1)delete n._isValid;else return;if(lo(n),n._isValid===!1)delete n._isValid;else return;n._strict?n._isValid=!1:t.createFromInputFallback(n)}function ci(n,t,i){return n!=null?n:t!=null?t:i}function ya(n){var i=new Date(t.now());return n._useUTC?[i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate(),]:[i.getFullYear(),i.getMonth(),i.getDate()]}function sf(n){var t,i,r=[],f,o,e;if(!n._d){for(f=ya(n),n._w&&n._a[ct]==null&&n._a[yt]==null&&pa(n),n._dayOfYear!=null&&(e=ci(n._a[b],f[b]),(n._dayOfYear>di(e)||n._dayOfYear===0)&&(u(n)._overflowDayOfYear=!0),i=gi(e,0,n._dayOfYear),n._a[yt]=i.getUTCMonth(),n._a[ct]=i.getUTCDate()),t=0;t<3&&n._a[t]==null;++t)n._a[t]=r[t]=f[t];for(;t<7;t++)n._a[t]=r[t]=n._a[t]==null?t===2?1:0:n._a[t];n._a[y]===24&&n._a[ft]===0&&n._a[pt]===0&&n._a[ii]===0&&(n._nextDay=!0,n._a[y]=0);n._d=(n._useUTC?gi:vc).apply(null,r);o=n._useUTC?n._d.getUTCDay():n._d.getDay();n._tzm!=null&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm);n._nextDay&&(n._a[y]=24);n._w&&typeof n._w.d!="undefined"&&n._w.d!==o&&(u(n).weekdayMismatch=!0)}}function pa(n){var t,o,f,i,r,e,h,s,c;t=n._w;t.GG!=null||t.W!=null||t.E!=null?(r=1,e=4,o=ci(t.GG,n._a[b],nr(l(),1,4).year),f=ci(t.W,1),i=ci(t.E,1),(i<1||i>7)&&(s=!0)):(r=n._locale._week.dow,e=n._locale._week.doy,c=nr(l(),r,e),o=ci(t.gg,n._a[b],c.year),f=ci(t.w,c.week),t.d!=null?(i=t.d,(i<0||i>6)&&(s=!0)):t.e!=null?(i=t.e+r,(t.e<0||t.e>6)&&(s=!0)):i=r);f<1||f>wt(o,r,e)?u(n)._overflowWeeks=!0:s!=null?u(n)._overflowWeekday=!0:(h=to(o,f,i,r,e),n._a[b]=h.year,n._dayOfYear=h.dayOfYear)}function hf(n){if(n._f===t.ISO_8601){co(n);return}if(n._f===t.RFC_2822){lo(n);return}n._a=[];u(n).empty=!0;for(var i=""+n._i,r,f,s,l=i.length,c=0,h,o=ee(n._f,n._locale).match(pu)||[],e=0;e<o.length;e++)f=o[e],r=(i.match(bh(f,n))||[])[0],r&&(s=i.substr(0,i.indexOf(r)),s.length>0&&u(n).unusedInput.push(s),i=i.slice(i.indexOf(r)+r.length),c+=r.length),ei[f]?(r?u(n).empty=!1:u(n).unusedTokens.push(f),dh(f,r,n)):n._strict&&!r&&u(n).unusedTokens.push(f);u(n).charsLeftOver=l-c;i.length>0&&u(n).unusedInput.push(i);n._a[y]<=12&&u(n).bigHour===!0&&n._a[y]>0&&(u(n).bigHour=undefined);u(n).parsedDateParts=n._a.slice(0);u(n).meridiem=n._meridiem;n._a[y]=wa(n._locale,n._a[y],n._meridiem);h=u(n).era;h!==null&&(n._a[b]=n._locale.erasConvertYear(h,n._a[b]));sf(n);ef(n)}function wa(n,t,i){var r;return i==null?t:n.meridiemHour!=null?n.meridiemHour(t,i):n.isPM!=null?(r=n.isPM(i),r&&t<12&&(t+=12),r||t!==12||(t=0),t):t}function ba(n){var t,o,r,f,i,e,s=!1;if(n._f.length===0){u(n).invalidFormat=!0;n._d=new Date(NaN);return}for(f=0;f<n._f.length;f++)i=0,e=!1,t=lu({},n),n._useUTC!=null&&(t._useUTC=n._useUTC),t._f=n._f[f],hf(t),cu(t)&&(e=!0),i+=u(t).charsLeftOver,i+=u(t).unusedTokens.length*10,u(t).score=i,s?i<r&&(r=i,o=t):(r==null||i<r||e)&&(r=i,o=t,e&&(s=!0));dt(n,o||t)}function ka(n){if(!n._d){var t=bu(n._i),i=t.day===undefined?t.date:t.day;n._a=ne([t.year,t.month,i,t.hour,t.minute,t.second,t.millisecond],function(n){return n&&parseInt(n,10)});sf(n)}}function da(n){var t=new wi(ef(ao(n)));return t._nextDay&&(t.add(1,"d"),t._nextDay=undefined),t}function ao(n){var t=n._i,i=n._f;return(n._locale=n._locale||bt(n._l),t===null||i===undefined&&t==="")?rr({nullInput:!0}):(typeof t=="string"&&(n._i=t=n._locale.preparse(t)),ut(t))?new wi(ef(t)):(pi(t)?n._d=t:rt(i)?ba(n):i?hf(n):ga(n),cu(n)||(n._d=null),n)}function ga(n){var i=n._i;k(i)?n._d=new Date(t.now()):pi(i)?n._d=new Date(i.valueOf()):typeof i=="string"?va(n):rt(i)?(n._a=ne(i.slice(0),function(n){return parseInt(n,10)}),sf(n)):ti(i)?ka(n):vt(i)?n._d=new Date(i):t.createFromInputFallback(n)}function vo(n,t,i,r,u){var f={};return(t===!0||t===!1)&&(r=t,t=undefined),(i===!0||i===!1)&&(r=i,i=undefined),(ti(n)&&hu(n)||rt(n)&&n.length===0)&&(n=undefined),f._isAMomentObject=!0,f._useUTC=f._isUTC=u,f._l=i,f._i=n,f._f=t,f._strict=r,da(f)}function l(n,t,i,r){return vo(n,t,i,r,!1)}function wo(n,t){var r,i;if(t.length===1&&rt(t[0])&&(t=t[0]),!t.length)return l();for(r=t[0],i=1;i<t.length;++i)(!t[i].isValid()||t[i][n](r))&&(r=t[i]);return r}function nv(){var n=[].slice.call(arguments,0);return wo("isBefore",n)}function tv(){var n=[].slice.call(arguments,0);return wo("isAfter",n)}function iv(n){var i,r=!1,t;for(i in n)if(s(n,i)&&!(v.call(li,i)!==-1&&(n[i]==null||!isNaN(n[i]))))return!1;for(t=0;t<li.length;++t)if(n[li[t]]){if(r)return!1;parseFloat(n[li[t]])!==f(n[li[t]])&&(r=!0)}return!0}function rv(){return this._isValid}function uv(){return et(NaN)}function nu(n){var t=bu(n),i=t.year||0,r=t.quarter||0,u=t.month||0,f=t.week||t.isoWeek||0,e=t.day||0,o=t.hour||0,s=t.minute||0,h=t.second||0,c=t.millisecond||0;this._isValid=iv(t);this._milliseconds=+c+h*1e3+s*6e4+o*36e5;this._days=+e+f*7;this._months=+u+r*3+i*12;this._data={};this._locale=bt();this._bubble()}function tu(n){return n instanceof nu}function cf(n){return n<0?Math.round(-1*n)*-1:Math.round(n)}function fv(n,t,i){for(var e=Math.min(n.length,t.length),o=Math.abs(n.length-t.length),u=0,r=0;r<e;r++)(i&&n[r]!==t[r]||!i&&f(n[r])!==f(t[r]))&&u++;return u+o}function ko(n,t){r(n,0,0,function(){var n=this.utcOffset(),i="+";return n<0&&(n=-n,i="-"),i+ht(~~(n/60),2)+t+ht(~~n%60,2)})}function lf(n,t){var u=(t||"").match(n),e,i,r;return u===null?null:(e=u[u.length-1]||[],i=(e+"").match(go)||["-",0,0],r=+(i[1]*60)+f(i[2]),r===0?0:i[0]==="+"?r:-r)}function af(n,i){var r,u;return i._isUTC?(r=i.clone(),u=(ut(n)||pi(n)?n.valueOf():l(n).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+u),t.updateOffset(r,!1),r):l(n).local()}function vf(n){return-Math.round(n._d.getTimezoneOffset())}function ev(n,i,r){var u=this._offset||0,f;if(!this.isValid())return n!=null?this:NaN;if(n!=null){if(typeof n=="string"){if(n=lf(yr,n),n===null)return this}else Math.abs(n)<16&&!r&&(n=n*60);return!this._isUTC&&i&&(f=vf(this)),this._offset=n,this._isUTC=!0,f!=null&&this.add(f,"m"),u!==n&&(!i||this._changeInProgress?fs(this,et(n-u,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?u:vf(this)}function ov(n,t){return n!=null?(typeof n!="string"&&(n=-n),this.utcOffset(n,t),this):-this.utcOffset()}function sv(n){return this.utcOffset(0,n)}function hv(n){return this._isUTC&&(this.utcOffset(0,n),this._isUTC=!1,n&&this.subtract(vf(this),"m")),this}function cv(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var n=lf(wh,this._i);n!=null?this.utcOffset(n):this.utcOffset(0,!0)}return this}function lv(n){return this.isValid()?(n=n?l(n).utcOffset():0,(this.utcOffset()-n)%60==0):!1}function av(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function vv(){if(!k(this._isDSTShifted))return this._isDSTShifted;var n={},t;return lu(n,this),n=ao(n),n._a?(t=n._isUTC?ot(n._a):l(n._a),this._isDSTShifted=this.isValid()&&fv(n._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function yv(){return this.isValid()?!this._isUTC:!1}function pv(){return this.isValid()?this._isUTC:!1}function ns(){return this.isValid()?this._isUTC&&this._offset===0:!1}function et(n,t){var i=n,r=null,u,e,o;return tu(n)?i={ms:n._milliseconds,d:n._days,M:n._months}:vt(n)||!isNaN(+n)?(i={},t?i[t]=+n:i.milliseconds=+n):(r=ts.exec(n))?(u=r[1]==="-"?-1:1,i={y:0,d:f(r[ct])*u,h:f(r[y])*u,m:f(r[ft])*u,s:f(r[pt])*u,ms:f(cf(r[ii]*1e3))*u}):(r=is.exec(n))?(u=r[1]==="-"?-1:1,i={y:ri(r[2],u),M:ri(r[3],u),w:ri(r[4],u),d:ri(r[5],u),h:ri(r[6],u),m:ri(r[7],u),s:ri(r[8],u)}):i==null?i={}:typeof i=="object"&&("from"in i||"to"in i)&&(o=wv(l(i.from),l(i.to)),i={},i.ms=o.milliseconds,i.M=o.months),e=new nu(i),tu(n)&&s(n,"_locale")&&(e._locale=n._locale),tu(n)&&s(n,"_isValid")&&(e._isValid=n._isValid),e}function ri(n,t){var i=n&&parseFloat(n.replace(",","."));return(isNaN(i)?0:i)*t}function rs(n,t){var i={};return i.months=t.month()-n.month()+(t.year()-n.year())*12,n.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+n.clone().add(i.months,"M"),i}function wv(n,t){var i;return(n.isValid()&&t.isValid())?(t=af(t,n),n.isBefore(t)?i=rs(n,t):(i=rs(t,n),i.milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}function us(n,t){return function(i,r){var u,f;return r===null||isNaN(+r)||(re(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),f=i,i=r,r=f),u=et(i,r),fs(this,u,n),this}}function fs(n,i,r,u){var o=i._milliseconds,f=cf(i._days),e=cf(i._months);n.isValid()&&(u=u==null?!0:u,e&&de(n,hr(n,"Month")+e*r),f&&ae(n,"Date",hr(n,"Date")+f*r),o&&n._d.setTime(n._d.valueOf()+o*r),u&&t.updateOffset(n,f||e))}function ss(n){return typeof n=="string"||n instanceof String}function bv(n){return ut(n)||pi(n)||ss(n)||vt(n)||dv(n)||kv(n)||n===null||n===undefined}function kv(n){for(var f=ti(n)&&!hu(n),i=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms",],u,t=0;t<r.length;t+=1)u=r[t],i=i||s(n,u);return f&&i}function dv(n){var t=rt(n),i=!1;return t&&(i=n.filter(function(t){return!vt(t)&&ss(n)}).length===0),t&&i}function gv(n){for(var f=ti(n)&&!hu(n),i=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse",],u,t=0;t<r.length;t+=1)u=r[t],i=i||s(n,u);return f&&i}function ny(n,t){var i=n.diff(t,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"}function ty(n,i){arguments.length===1&&(bv(arguments[0])?(n=arguments[0],i=undefined):gv(arguments[0])&&(i=arguments[0],n=undefined));var u=n||l(),f=af(u,this).startOf("day"),r=t.calendarFormat(this,f)||"sameElse",e=i&&(st(i[r])?i[r].call(this,u):i[r]);return this.format(e||this.localeData().calendar(r,this,l(u)))}function iy(){return new wi(this)}function ry(n,t){var i=ut(n)?n:l(n);return(this.isValid()&&i.isValid())?(t=tt(t)||"millisecond",t==="millisecond"?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(t).valueOf()):!1}function uy(n,t){var i=ut(n)?n:l(n);return(this.isValid()&&i.isValid())?(t=tt(t)||"millisecond",t==="millisecond"?this.valueOf()<i.valueOf():this.clone().endOf(t).valueOf()<i.valueOf()):!1}function fy(n,t,i,r){var u=ut(n)?n:l(n),f=ut(t)?t:l(t);return(this.isValid()&&u.isValid()&&f.isValid())?(r=r||"()",(r[0]==="("?this.isAfter(u,i):!this.isBefore(u,i))&&(r[1]===")"?this.isBefore(f,i):!this.isAfter(f,i))):!1}function ey(n,t){var i=ut(n)?n:l(n),r;return(this.isValid()&&i.isValid())?(t=tt(t)||"millisecond",t==="millisecond"?this.valueOf()===i.valueOf():(r=i.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function oy(n,t){return this.isSame(n,t)||this.isAfter(n,t)}function sy(n,t){return this.isSame(n,t)||this.isBefore(n,t)}function hy(n,t,i){var r,f,u;if(!this.isValid())return NaN;if(r=af(n,this),!r.isValid())return NaN;f=(r.utcOffset()-this.utcOffset())*6e4;t=tt(t);switch(t){case"year":u=iu(this,r)/12;break;case"month":u=iu(this,r);break;case"quarter":u=iu(this,r)/3;break;case"second":u=(this-r)/1e3;break;case"minute":u=(this-r)/6e4;break;case"hour":u=(this-r)/36e5;break;case"day":u=(this-r-f)/864e5;break;case"week":u=(this-r-f)/6048e5;break;default:u=this-r}return i?u:it(u)}function iu(n,t){if(n.date()<t.date())return-iu(t,n);var r=(t.year()-n.year())*12+(t.month()-n.month()),i=n.clone().add(r,"months"),u,f;return t-i<0?(u=n.clone().add(r-1,"months"),f=(t-i)/(i-u)):(u=n.clone().add(r+1,"months"),f=(t-i)/(u-i)),-(r+f)||0}function cy(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ly(n){if(!this.isValid())return null;var i=n!==!0,t=i?this.clone().utc():this;return t.year()<0||t.year()>9999?or(t,i?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):st(Date.prototype.toISOString)?i?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*6e4).toISOString().replace("Z",or(t,"Z")):or(t,i?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ay(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var n="moment",t="",i,r,u,f;return this.isLocal()||(n=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),i="["+n+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",u="-MM-DD[T]HH:mm:ss.SSS",f=t+'[")]',this.format(i+r+u+f)}function vy(n){n||(n=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var i=or(this,n);return this.localeData().postformat(i)}function yy(n,t){return this.isValid()&&(ut(n)&&n.isValid()||l(n).isValid())?et({to:this,from:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function py(n){return this.from(l(),n)}function wy(n,t){return this.isValid()&&(ut(n)&&n.isValid()||l(n).isValid())?et({from:this,to:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function by(n){return this.to(l(),n)}function hs(n){var t;return n===undefined?this._locale._abbr:(t=bt(n),t!=null&&(this._locale=t),this)}function cs(){return this._locale}function vi(n,t){return(n%t+t)%t}function as(n,t,i){return n<100&&n>=0?new Date(n+400,t,i)-ls:new Date(n,t,i).valueOf()}function vs(n,t,i){return n<100&&n>=0?Date.UTC(n+400,t,i)-ls:Date.UTC(n,t,i)}function ky(n){var i,r;if(n=tt(n),n===undefined||n==="millisecond"||!this.isValid())return this;r=this._isUTC?vs:as;switch(n){case"year":i=r(this.year(),0,1);break;case"quarter":i=r(this.year(),this.month()-this.month()%3,1);break;case"month":i=r(this.year(),this.month(),1);break;case"week":i=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":i=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":i=r(this.year(),this.month(),this.date());break;case"hour":i=this._d.valueOf()-vi(i+(this._isUTC?0:this.utcOffset()*ai),uu);break;case"minute":i=this._d.valueOf()-vi(i,ai);break;case"second":i=this._d.valueOf()-vi(i,ru)}return this._d.setTime(i),t.updateOffset(this,!0),this}function dy(n){var i,r;if(n=tt(n),n===undefined||n==="millisecond"||!this.isValid())return this;r=this._isUTC?vs:as;switch(n){case"year":i=r(this.year()+1,0,1)-1;break;case"quarter":i=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":i=r(this.year(),this.month()+1,1)-1;break;case"week":i=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":i=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":i=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":i=this._d.valueOf()+(uu-vi(i+(this._isUTC?0:this.utcOffset()*ai),uu)-1);break;case"minute":i=this._d.valueOf()+(ai-vi(i,ai)-1);break;case"second":i=this._d.valueOf()+(ru-vi(i,ru)-1)}return this._d.setTime(i),t.updateOffset(this,!0),this}function gy(){return this._d.valueOf()-(this._offset||0)*6e4}function np(){return Math.floor(this.valueOf()/1e3)}function tp(){return new Date(this.valueOf())}function ip(){var n=this;return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second(),n.millisecond(),]}function rp(){var n=this;return{years:n.year(),months:n.month(),date:n.date(),hours:n.hours(),minutes:n.minutes(),seconds:n.seconds(),milliseconds:n.milliseconds()}}function up(){return this.isValid()?this.toISOString():null}function fp(){return cu(this)}function ep(){return dt({},u(this))}function op(){return u(this).overflow}function sp(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function hp(){for(var r,i=this._eras||bt("en")._eras,n=0,u=i.length;n<u;++n){switch(typeof i[n].since){case"string":r=t(i[n].since).startOf("day");i[n].since=r.valueOf()}switch(typeof i[n].until){case"undefined":i[n].until=+Infinity;break;case"string":r=t(i[n].until).startOf("day").valueOf();i[n].until=r.valueOf()}}return i}function cp(n,t,i){var r,s,u=this.eras(),f,e,o;for(n=n.toUpperCase(),r=0,s=u.length;r<s;++r)if(f=u[r].name.toUpperCase(),e=u[r].abbr.toUpperCase(),o=u[r].narrow.toUpperCase(),i)switch(t){case"N":case"NN":case"NNN":if(e===n)return u[r];break;case"NNNN":if(f===n)return u[r];break;case"NNNNN":if(o===n)return u[r]}else if([f,e,o].indexOf(n)>=0)return u[r]}function lp(n,i){var r=n.since<=n.until?1:-1;return i===undefined?t(n.since).year():t(n.since).year()+(i-n.offset)*r}function ap(){for(var i,t=this.localeData().eras(),n=0,r=t.length;n<r;++n)if((i=this.startOf("day").valueOf(),t[n].since<=i&&i<=t[n].until)||t[n].until<=i&&i<=t[n].since)return t[n].name;return""}function vp(){for(var i,t=this.localeData().eras(),n=0,r=t.length;n<r;++n)if((i=this.startOf("day").valueOf(),t[n].since<=i&&i<=t[n].until)||t[n].until<=i&&i<=t[n].since)return t[n].narrow;return""}function yp(){for(var i,t=this.localeData().eras(),n=0,r=t.length;n<r;++n)if((i=this.startOf("day").valueOf(),t[n].since<=i&&i<=t[n].until)||t[n].until<=i&&i<=t[n].since)return t[n].abbr;return""}function pp(){for(var f,r,i=this.localeData().eras(),n=0,u=i.length;n<u;++n)if(f=i[n].since<=i[n].until?1:-1,r=this.startOf("day").valueOf(),i[n].since<=r&&r<=i[n].until||i[n].until<=r&&r<=i[n].since)return(this.year()-t(i[n].since).year())*f+i[n].offset;return this.year()}function wp(n){return s(this,"_erasNameRegex")||wf.call(this),n?this._erasNameRegex:this._erasRegex}function bp(n){return s(this,"_erasAbbrRegex")||wf.call(this),n?this._erasAbbrRegex:this._erasRegex}function kp(n){return s(this,"_erasNarrowRegex")||wf.call(this),n?this._erasNarrowRegex:this._erasRegex}function pf(n,t){return t.erasAbbrRegex(n)}function dp(n,t){return t.erasNameRegex(n)}function gp(n,t){return t.erasNarrowRegex(n)}function nw(n,t){return t._eraYearOrdinalRegex||hi}function wf(){for(var r=[],u=[],f=[],i=[],t=this.eras(),n=0,e=t.length;n<e;++n)u.push(g(t[n].name)),r.push(g(t[n].abbr)),f.push(g(t[n].narrow)),i.push(g(t[n].name)),i.push(g(t[n].abbr)),i.push(g(t[n].narrow));this._erasRegex=new RegExp("^("+i.join("|")+")","i");this._erasNameRegex=new RegExp("^("+u.join("|")+")","i");this._erasAbbrRegex=new RegExp("^("+r.join("|")+")","i");this._erasNarrowRegex=new RegExp("^("+f.join("|")+")","i")}function fu(n,t){r(0,[n,n.length],0,t)}function tw(n){return ys.call(this,n,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function iw(n){return ys.call(this,n,this.isoWeek(),this.isoWeekday(),1,4)}function rw(){return wt(this.year(),1,4)}function uw(){return wt(this.isoWeekYear(),1,4)}function fw(){var n=this.localeData()._week;return wt(this.year(),n.dow,n.doy)}function ew(){var n=this.localeData()._week;return wt(this.weekYear(),n.dow,n.doy)}function ys(n,t,i,r,u){var f;return n==null?nr(this,r,u).year:(f=wt(n,r,u),t>f&&(t=f),ow.call(this,n,t,i,r,u))}function ow(n,t,i,r,u){var e=to(n,t,i,r,u),f=gi(e.year,0,e.dayOfYear);return this.year(f.getUTCFullYear()),this.month(f.getUTCMonth()),this.date(f.getUTCDate()),this}function sw(n){return n==null?Math.ceil((this.month()+1)/3):this.month((n-1)*3+this.month()%3)}function hw(n){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return n==null?t:this.add(n-t,"d")}function cw(n,t){t[ii]=f(("0."+n)*1e3)}function lw(){return this._isUTC?"UTC":""}function aw(){return this._isUTC?"Coordinated Universal Time":""}function vw(n){return l(n*1e3)}function yw(){return l.apply(null,arguments).parseZone()}function ks(n){return n}function eu(n,t,i,r){var u=bt(),f=ot().set(r,t);return u[i](f,n)}function ds(n,t,i){if(vt(n)&&(t=n,n=undefined),n=n||"",t!=null)return eu(n,t,i,"month");for(var u=[],r=0;r<12;r++)u[r]=eu(n,r,i,"month");return u}function kf(n,t,i,r){typeof n=="boolean"?(vt(t)&&(i=t,t=undefined),t=t||""):(t=n,i=t,n=!1,vt(t)&&(i=t,t=undefined),t=t||"");var o=bt(),f=n?o._week.dow:0,u,e=[];if(i!=null)return eu(t,(i+f)%7,r,"day");for(u=0;u<7;u++)e[u]=eu(t,(u+f)%7,r,"day");return e}function pw(n,t){return ds(n,t,"months")}function ww(n,t){return ds(n,t,"monthsShort")}function bw(n,t,i){return kf(n,t,i,"weekdays")}function kw(n,t,i){return kf(n,t,i,"weekdaysShort")}function dw(n,t,i){return kf(n,t,i,"weekdaysMin")}function gw(){var n=this._data;return this._milliseconds=lt(this._milliseconds),this._days=lt(this._days),this._months=lt(this._months),n.milliseconds=lt(n.milliseconds),n.seconds=lt(n.seconds),n.minutes=lt(n.minutes),n.hours=lt(n.hours),n.months=lt(n.months),n.years=lt(n.years),this}function gs(n,t,i,r){var u=et(t,i);return n._milliseconds+=r*u._milliseconds,n._days+=r*u._days,n._months+=r*u._months,n._bubble()}function nb(n,t){return gs(this,n,t,1)}function tb(n,t){return gs(this,n,t,-1)}function nh(n){return n<0?Math.floor(n):Math.ceil(n)}function ib(){var r=this._milliseconds,n=this._days,t=this._months,i=this._data,u,f,e,s,o;return r>=0&&n>=0&&t>=0||r<=0&&n<=0&&t<=0||(r+=nh(df(t)+n)*864e5,n=0,t=0),i.milliseconds=r%1e3,u=it(r/1e3),i.seconds=u%60,f=it(u/60),i.minutes=f%60,e=it(f/60),i.hours=e%24,n+=it(e/24),o=it(th(n)),t+=o,n-=nh(df(o)),s=it(t/12),t%=12,i.days=n,i.months=t,i.years=s,this}function th(n){return n*4800/146097}function df(n){return n*146097/4800}function rb(n){if(!this.isValid())return NaN;var t,r,i=this._milliseconds;if(n=tt(n),n==="month"||n==="quarter"||n==="year"){t=this._days+i/864e5;r=this._months+th(t);switch(n){case"month":return r;case"quarter":return r/3;case"year":return r/12}}else{t=this._days+Math.round(df(this._months));switch(n){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return t*24+i/36e5;case"minute":return t*1440+i/6e4;case"second":return t*86400+i/1e3;case"millisecond":return Math.floor(t*864e5)+i;default:throw new Error("Unknown unit "+n);}}}function ub(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+f(this._months/12)*31536e6:NaN}function kt(n){return function(){return this.as(n)}}function yb(){return et(this)}function pb(n){return n=tt(n),this.isValid()?this[n+"s"]():NaN}function ui(n){return function(){return this.isValid()?this._data[n]:NaN}}function ik(){return it(this.days()/7)}function rk(n,t,i,r,u){return u.relativeTime(t||1,!!i,n,r)}function uk(n,t,i,r){var f=et(n).abs(),e=at(f.as("s")),o=at(f.as("m")),s=at(f.as("h")),h=at(f.as("d")),c=at(f.as("M")),l=at(f.as("w")),a=at(f.as("y")),u=e<=i.ss&&["s",e]||e<i.s&&["ss",e]||o<=1&&["m"]||o<i.m&&["mm",o]||s<=1&&["h"]||s<i.h&&["hh",s]||h<=1&&["d"]||h<i.d&&["dd",h];return i.w!=null&&(u=u||l<=1&&["w"]||l<i.w&&["ww",l]),u=u||c<=1&&["M"]||c<i.M&&["MM",c]||a<=1&&["y"]||["yy",a],u[2]=t,u[3]=+n>0,u[4]=r,rk.apply(null,u)}function fk(n){return n===undefined?at:typeof n=="function"?(at=n,!0):!1}function ek(n,t){return fi[n]===undefined?!1:t===undefined?fi[n]:(fi[n]=t,n==="s"&&(fi.ss=t-1),!0)}function ok(n,t){if(!this.isValid())return this.localeData().invalidDate();var u=!1,f=fi,i,r;return typeof n=="object"&&(t=n,n=!1),typeof n=="boolean"&&(u=n),typeof t=="object"&&(f=Object.assign({},fi,t),t.s!=null&&t.ss==null&&(f.ss=t.s-1)),i=this.localeData(),r=uk(this,!u,f,i),u&&(r=i.pastFuture(+this,r)),i.postformat(r)}function yi(n){return(n>0)-(n<0)||+n}function su(){if(!this.isValid())return this.localeData().invalidDate();var n=ou(this._milliseconds)/1e3,s=ou(this._days),r=ou(this._months),t,u,e,h,i=this.asSeconds(),c,o,l,f;return i?(t=it(n/60),u=it(t/60),n%=60,t%=60,e=it(r/12),r%=12,h=n?n.toFixed(3).replace(/\.?0+$/,""):"",c=i<0?"-":"",o=yi(this._months)!==yi(i)?"-":"",l=yi(this._days)!==yi(i)?"-":"",f=yi(this._milliseconds)!==yi(i)?"-":"",c+"P"+(e?o+e+"Y":"")+(r?o+r+"M":"")+(s?l+s+"D":"")+(u||t||n?"T":"")+(u?f+u+"H":"")+(t?f+t+"M":"")+(n?f+h+"S":"")):"P0D"}var gf,te,ur,fr,au,ue,fe,oe,se,he,ce,le,oi,ku,wr,v,nf,io,eo,oo,yo,po,bo,li,go,ts,is,es,os,yf,bf,ps,ws,ni,bs,n,o,lt,at,fi,ou,e;te=Array.prototype.some?Array.prototype.some:function(n){for(var i=Object(this),r=i.length>>>0,t=0;t<r;t++)if(t in i&&n.call(this,i[t],t,i))return!0;return!1};ur=t.momentProperties=[];fr=!1;au={};t.suppressDeprecationWarnings=!1;t.deprecationHandler=null;ue=Object.keys?Object.keys:function(n){var t,i=[];for(t in n)s(n,t)&&i.push(t);return i};fe={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};var pu=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,er=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,wu={},ei={};oe={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};se="Invalid date";he="%d";ce=/\d{1,2}/;le={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};oi={};ku={};var ve=/\d/,d=/\d\d/,ye=/\d{3}/,du=/\d{4}/,cr=/[+-]?\d{6}/,c=/\d\d?/,pe=/\d\d\d\d?/,we=/\d\d\d\d\d\d?/,lr=/\d{1,3}/,gu=/\d{1,4}/,ar=/[+-]?\d{1,6}/,hi=/\d+/,vr=/[+-]?\d+/,wh=/Z|[+-]\d\d:?\d\d/gi,yr=/Z|[+-]\d\d(?::?\d\d)?/gi,bi=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,pr;pr={};wr={};var b=0,yt=1,ct=2,y=3,ft=4,pt=5,ii=6,gh=7,nc=8;v=Array.prototype.indexOf?Array.prototype.indexOf:function(n){for(var t=0;t<this.length;++t)if(this[t]===n)return t;return-1};r("M",["MM",2],"Mo",function(){return this.month()+1});r("MMM",0,0,function(n){return this.localeData().monthsShort(this,n)});r("MMMM",0,0,function(n){return this.localeData().months(this,n)});p("month","M");w("month",8);i("M",c);i("MM",c,d);i("MMM",function(n,t){return t.monthsShortRegex(n)});i("MMMM",function(n,t){return t.monthsRegex(n)});h(["M","MM"],function(n,t){t[yt]=f(n)-1});h(["MMM","MMMM"],function(n,t,i,r){var f=i._locale.monthsParse(n,r,i._strict);f!=null?t[yt]=f:u(i).invalidMonth=n});var ic="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),be="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ke=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,rc=bi,uc=bi;r("Y",0,0,function(){var n=this.year();return n<=9999?ht(n,4):"+"+n});r(0,["YY",2],0,function(){return this.year()%100});r(0,["YYYY",4],0,"year");r(0,["YYYYY",5],0,"year");r(0,["YYYYYY",6,!0],0,"year");p("year","y");w("year",1);i("Y",vr);i("YY",c,d);i("YYYY",gu,du);i("YYYYY",ar,cr);i("YYYYYY",ar,cr);h(["YYYYY","YYYYYY"],b);h("YYYY",function(n,i){i[b]=n.length===2?t.parseTwoDigitYear(n):f(n)});h("YY",function(n,i){i[b]=t.parseTwoDigitYear(n)});h("Y",function(n,t){t[b]=parseInt(n,10)});t.parseTwoDigitYear=function(n){return f(n)+(f(n)>68?1900:2e3)};nf=si("FullYear",!0);r("w",["ww",2],"wo","week");r("W",["WW",2],"Wo","isoWeek");p("week","w");p("isoWeek","W");w("week",5);w("isoWeek",5);i("w",c);i("ww",c,d);i("W",c);i("WW",c,d);ki(["w","ww","W","WW"],function(n,t,i,r){t[r.substr(0,1)]=f(n)});io={dow:0,doy:6};r("d",0,"do","day");r("dd",0,0,function(n){return this.localeData().weekdaysMin(this,n)});r("ddd",0,0,function(n){return this.localeData().weekdaysShort(this,n)});r("dddd",0,0,function(n){return this.localeData().weekdays(this,n)});r("e",0,0,"weekday");r("E",0,0,"isoWeekday");p("day","d");p("weekday","e");p("isoWeekday","E");w("day",11);w("weekday",11);w("isoWeekday",11);i("d",c);i("e",c);i("E",c);i("dd",function(n,t){return t.weekdaysMinRegex(n)});i("ddd",function(n,t){return t.weekdaysShortRegex(n)});i("dddd",function(n,t){return t.weekdaysRegex(n)});ki(["dd","ddd","dddd"],function(n,t,i,r){var f=i._locale.weekdaysParse(n,r,i._strict);f!=null?t.d=f:u(i).invalidWeekday=n});ki(["d","e","E"],function(n,t,i,r){t[r]=f(n)});var nl="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ro="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),tl="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),il=bi,rl=bi,ul=bi;r("H",["HH",2],0,"hour");r("h",["hh",2],0,uf);r("k",["kk",2],0,wl);r("hmm",0,0,function(){return""+uf.apply(this)+ht(this.minutes(),2)});r("hmmss",0,0,function(){return""+uf.apply(this)+ht(this.minutes(),2)+ht(this.seconds(),2)});r("Hmm",0,0,function(){return""+this.hours()+ht(this.minutes(),2)});r("Hmmss",0,0,function(){return""+this.hours()+ht(this.minutes(),2)+ht(this.seconds(),2)});uo("a",!0);uo("A",!1);p("hour","h");w("hour",13);i("a",fo);i("A",fo);i("H",c);i("h",c);i("k",c);i("HH",c,d);i("hh",c,d);i("kk",c,d);i("hmm",pe);i("hmmss",we);i("Hmm",pe);i("Hmmss",we);h(["H","HH"],y);h(["k","kk"],function(n,t){var i=f(n);t[y]=i===24?0:i});h(["a","A"],function(n,t,i){i._isPm=i._locale.isPM(n);i._meridiem=n});h(["h","hh"],function(n,t,i){t[y]=f(n);u(i).bigHour=!0});h("hmm",function(n,t,i){var r=n.length-2;t[y]=f(n.substr(0,r));t[ft]=f(n.substr(r));u(i).bigHour=!0});h("hmmss",function(n,t,i){var r=n.length-4,e=n.length-2;t[y]=f(n.substr(0,r));t[ft]=f(n.substr(r,2));t[pt]=f(n.substr(e));u(i).bigHour=!0});h("Hmm",function(n,t){var i=n.length-2;t[y]=f(n.substr(0,i));t[ft]=f(n.substr(i))});h("Hmmss",function(n,t){var i=n.length-4,r=n.length-2;t[y]=f(n.substr(0,i));t[ft]=f(n.substr(i,2));t[pt]=f(n.substr(r))});eo=/[ap]\.?m?\.?/i;oo=si("Hours",!0);var so={calendar:fe,longDateFormat:oe,invalidDate:se,ordinal:he,dayOfMonthOrdinalParse:ce,relativeTime:le,months:ic,monthsShort:be,week:io,weekdays:nl,weekdaysMin:tl,weekdaysShort:ro,meridiemParse:eo},a={},tr={},ir;var ia=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ra=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ua=/Z|[+-]\d\d(?::?\d\d)?/,gr=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1],],of=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/],],fa=/^\/?Date\((-?\d+)/i,ea=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,oa={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};t.createFromInputFallback=nt("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(n){n._d=new Date(n._i+(n._useUTC?" UTC":""))});t.ISO_8601=function(){};t.RFC_2822=function(){};yo=nt("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=l.apply(null,arguments);return this.isValid()&&n.isValid()?n<this?this:n:rr()});po=nt("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=l.apply(null,arguments);return this.isValid()&&n.isValid()?n>this?this:n:rr()});bo=function(){return Date.now?Date.now():+new Date};li=["year","quarter","month","week","day","hour","minute","second","millisecond",];ko("Z",":");ko("ZZ","");i("Z",yr);i("ZZ",yr);h(["Z","ZZ"],function(n,t,i){i._useUTC=!0;i._tzm=lf(yr,n)});go=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};ts=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/;is=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;et.fn=nu.prototype;et.invalid=uv;es=us(1,"add");os=us(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";yf=nt("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(n){return n===undefined?this.localeData():this.locale(n)});var ru=1e3,ai=60*ru,uu=60*ai,ls=3506328*uu;for(r("N",0,0,"eraAbbr"),r("NN",0,0,"eraAbbr"),r("NNN",0,0,"eraAbbr"),r("NNNN",0,0,"eraName"),r("NNNNN",0,0,"eraNarrow"),r("y",["y",1],"yo","eraYear"),r("y",["yy",2],0,"eraYear"),r("y",["yyy",3],0,"eraYear"),r("y",["yyyy",4],0,"eraYear"),i("N",pf),i("NN",pf),i("NNN",pf),i("NNNN",dp),i("NNNNN",gp),h(["N","NN","NNN","NNNN","NNNNN"],function(n,t,i,r){var f=i._locale.erasParse(n,r,i._strict);f?u(i).era=f:u(i).invalidEra=n}),i("y",hi),i("yy",hi),i("yyy",hi),i("yyyy",hi),i("yo",nw),h(["y","yy","yyy","yyyy"],b),h(["yo"],function(n,t,i){var r;i._locale._eraYearOrdinalRegex&&(r=n.match(i._locale._eraYearOrdinalRegex));t[b]=i._locale.eraYearOrdinalParse?i._locale.eraYearOrdinalParse(n,r):parseInt(n,10)}),r(0,["gg",2],0,function(){return this.weekYear()%100}),r(0,["GG",2],0,function(){return this.isoWeekYear()%100}),fu("gggg","weekYear"),fu("ggggg","weekYear"),fu("GGGG","isoWeekYear"),fu("GGGGG","isoWeekYear"),p("weekYear","gg"),p("isoWeekYear","GG"),w("weekYear",1),w("isoWeekYear",1),i("G",vr),i("g",vr),i("GG",c,d),i("gg",c,d),i("GGGG",gu,du),i("gggg",gu,du),i("GGGGG",ar,cr),i("ggggg",ar,cr),ki(["gggg","ggggg","GGGG","GGGGG"],function(n,t,i,r){t[r.substr(0,2)]=f(n)}),ki(["gg","GG"],function(n,i,r,u){i[u]=t.parseTwoDigitYear(n)}),r("Q",0,"Qo","quarter"),p("quarter","Q"),w("quarter",7),i("Q",ve),h("Q",function(n,t){t[yt]=(f(n)-1)*3}),r("D",["DD",2],"Do","date"),p("date","D"),w("date",9),i("D",c),i("DD",c,d),i("Do",function(n,t){return n?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),h(["D","DD"],ct),h("Do",function(n,t){t[ct]=f(n.match(c)[0])}),bf=si("Date",!0),r("DDD",["DDDD",3],"DDDo","dayOfYear"),p("dayOfYear","DDD"),w("dayOfYear",4),i("DDD",lr),i("DDDD",ye),h(["DDD","DDDD"],function(n,t,i){i._dayOfYear=f(n)}),r("m",["mm",2],0,"minute"),p("minute","m"),w("minute",14),i("m",c),i("mm",c,d),h(["m","mm"],ft),ps=si("Minutes",!1),r("s",["ss",2],0,"second"),p("second","s"),w("second",15),i("s",c),i("ss",c,d),h(["s","ss"],pt),ws=si("Seconds",!1),r("S",0,0,function(){return~~(this.millisecond()/100)}),r(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),r(0,["SSS",3],0,"millisecond"),r(0,["SSSS",4],0,function(){return this.millisecond()*10}),r(0,["SSSSS",5],0,function(){return this.millisecond()*100}),r(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),r(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),r(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),r(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),p("millisecond","ms"),w("millisecond",16),i("S",lr,ve),i("SS",lr,d),i("SSS",lr,ye),ni="SSSS";ni.length<=9;ni+="S")i(ni,hi);for(ni="S";ni.length<=9;ni+="S")h(ni,cw);bs=si("Milliseconds",!1);r("z",0,0,"zoneAbbr");r("zz",0,0,"zoneName");n=wi.prototype;n.add=es;n.calendar=ty;n.clone=iy;n.diff=hy;n.endOf=dy;n.format=vy;n.from=yy;n.fromNow=py;n.to=wy;n.toNow=by;n.get=yh;n.invalidAt=op;n.isAfter=ry;n.isBefore=uy;n.isBetween=fy;n.isSame=ey;n.isSameOrAfter=oy;n.isSameOrBefore=sy;n.isValid=fp;n.lang=yf;n.locale=hs;n.localeData=cs;n.max=po;n.min=yo;n.parsingFlags=ep;n.set=ph;n.startOf=ky;n.subtract=os;n.toArray=ip;n.toObject=rp;n.toDate=tp;n.toISOString=ly;n.inspect=ay;typeof Symbol!="undefined"&&Symbol.for!=null&&(n[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});n.toJSON=up;n.toString=cy;n.unix=np;n.valueOf=gy;n.creationData=sp;n.eraName=ap;n.eraNarrow=vp;n.eraAbbr=yp;n.eraYear=pp;n.year=nf;n.isLeapYear=ac;n.weekYear=tw;n.isoWeekYear=iw;n.quarter=n.quarters=sw;n.month=ge;n.daysInMonth=hc;n.week=n.weeks=bc;n.isoWeek=n.isoWeeks=kc;n.weeksInYear=fw;n.weeksInWeekYear=ew;n.isoWeeksInYear=rw;n.isoWeeksInISOWeekYear=uw;n.date=bf;n.day=n.days=cl;n.weekday=ll;n.isoWeekday=al;n.dayOfYear=hw;n.hour=n.hours=oo;n.minute=n.minutes=ps;n.second=n.seconds=ws;n.millisecond=n.milliseconds=bs;n.utcOffset=ev;n.utc=sv;n.local=hv;n.parseZone=cv;n.hasAlignedHourOffset=lv;n.isDST=av;n.isLocal=yv;n.isUtcOffset=pv;n.isUtc=ns;n.isUTC=ns;n.zoneAbbr=lw;n.zoneName=aw;n.dates=nt("dates accessor is deprecated. Use date instead.",bf);n.months=nt("months accessor is deprecated. Use month instead",ge);n.years=nt("years accessor is deprecated. Use year instead",nf);n.zone=nt("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",ov);n.isDSTShifted=nt("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",vv);o=yu.prototype;o.calendar=fh;o.longDateFormat=sh;o.invalidDate=hh;o.ordinal=ch;o.preparse=ks;o.postformat=ks;o.relativeTime=lh;o.pastFuture=ah;o.set=uh;o.eras=hp;o.erasParse=cp;o.erasConvertYear=lp;o.erasAbbrRegex=bp;o.erasNameRegex=wp;o.erasNarrowRegex=kp;o.months=fc;o.monthsShort=ec;o.monthsParse=sc;o.monthsRegex=lc;o.monthsShortRegex=cc;o.week=yc;o.firstDayOfYear=wc;o.firstDayOfWeek=pc;o.weekdays=fl;o.weekdaysMin=ol;o.weekdaysShort=el;o.weekdaysParse=hl;o.weekdaysRegex=vl;o.weekdaysShortRegex=yl;o.weekdaysMinRegex=pl;o.isPM=bl;o.meridiem=kl;gt("en",{eras:[{since:"0001-01-01",until:+Infinity,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-Infinity,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"},],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var t=n%10,i=f(n%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return n+i}});t.lang=nt("moment.lang is deprecated. Use moment.locale instead.",gt);t.langData=nt("moment.langData is deprecated. Use moment.localeData instead.",bt);lt=Math.abs;var fb=kt("ms"),eb=kt("s"),ob=kt("m"),sb=kt("h"),hb=kt("d"),cb=kt("w"),lb=kt("M"),ab=kt("Q"),vb=kt("y");var wb=ui("milliseconds"),bb=ui("seconds"),kb=ui("minutes"),db=ui("hours"),gb=ui("days"),nk=ui("months"),tk=ui("years");return at=Math.round,fi={ss:44,s:45,m:45,h:22,d:26,w:null,M:11},ou=Math.abs,e=nu.prototype,e.isValid=rv,e.abs=gw,e.add=nb,e.subtract=tb,e.as=rb,e.asMilliseconds=fb,e.asSeconds=eb,e.asMinutes=ob,e.asHours=sb,e.asDays=hb,e.asWeeks=cb,e.asMonths=lb,e.asQuarters=ab,e.asYears=vb,e.valueOf=ub,e._bubble=ib,e.clone=yb,e.get=pb,e.milliseconds=wb,e.seconds=bb,e.minutes=kb,e.hours=db,e.days=gb,e.weeks=ik,e.months=nk,e.years=tk,e.humanize=ok,e.toISOString=su,e.toString=su,e.toJSON=su,e.locale=hs,e.localeData=cs,e.toIsoString=nt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",su),e.lang=yf,r("X",0,0,"unix"),r("x",0,0,"valueOf"),i("x",vr),i("X",/[+-]?\d+(\.\d{1,3})?/),h("X",function(n,t,i){i._d=new Date(parseFloat(n)*1e3)}),h("x",function(n,t,i){i._d=new Date(f(n))}),t.version="2.27.0",ih(l),t.fn=n,t.min=nv,t.max=tv,t.now=bo,t.utc=ot,t.unix=vw,t.months=pw,t.isDate=pi,t.locale=gt,t.invalid=rr,t.duration=et,t.isMoment=ut,t.weekdays=bw,t.parseZone=yw,t.localeData=bt,t.isDuration=tu,t.monthsShort=ww,t.weekdaysMin=dw,t.defineLocale=ff,t.updateLocale=na,t.locales=ta,t.weekdaysShort=kw,t.normalizeUnits=tt,t.relativeTimeRounding=fk,t.relativeTimeThreshold=ek,t.calendarFormat=ny,t.prototype=n,t.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},t});pagerDictionary={};$(function(){$(document).on("click",".ajaxpager",function(n){var t,u,r,i,f;n.preventDefault();t=$(this).data("containerid")||"";t!==""&&t[0]!=="#"&&t[0]!=="."&&(t="#"+t);u=pagerDictionary[this.id]||1;pagerDictionary[this.id]=u+1;r=$("#"+this.id.replace("more-","placeholder-"));i=$(this);i.addClass("butLoading");typeof newsPaging!="undefined"&&newsPaging!==null&&newsPaging.checkPager(i);f=i.data("ajaxurl").replace("999999",u+1);$.get(f,null,function(f){var c=$(document).scrollTop(),e,s,h,o;i.removeClass("butLoading");e=MSG.refreshContent(f);i.hasClass("ajaxreplace")?(s=!1,t===""&&r.length>0?r.siblings().fadeOut("fast",function(){$(this).remove();s||r.before(f);s=!0}):$(t).html(e)):r.length>0&&(t===""||$(t).length===0)?(r.before(e),typeof newsPaging!="undefined"&&newsPaging!==null&&newsPaging.setPageHistory(u),typeof catIndex!="undefined"&&catIndex!==null&&catIndex.setPageHistory(u)):$(t).append(e);f.indexOf("<!-- EOF -->")>=0||f.length===0?i.hide():n.screenX===0&&n.screenY===0?(h=e.find(".jq-focus,a:not([aria-hidden='true'])").first(),h.attr("tabindex",0).trigger("focus")):$(document).scrollTop(c);o=i.data("pagerevent")||r.data("pagerevent");typeof o!="undefined"&&o!==null&&o!==""&&executeFunctionByName(o,window,i,r,e);MAIN.itemItalics()})})});var datechoose={disabledNonSelectedFields:function(n){n.find("input").prop("disabled",!1);n.find("input:radio:not(:checked)").closest("li").find("input:not(:radio)").attr("disabled","disabled")},setUpSelects:function(n,t){typeof t=="undefined"&&(t=$(".jq-earliestdate",n).val());n.find(".jq-dateSelectorOption").off("change").on("change",function(){var i=$(this);datechoose.checkNearest(i);datechoose.dateChange(i,t);datechoose.disabledNonSelectedFields(n);typeof MSG!="undefined"&&MSG.changesMade()}).on("click",function(n){n.stopPropagation()});datechoose.disabledNonSelectedFields(n);n.find("input:radio").on("change",function(){datechoose.disabledNonSelectedFields(n)})},checkNearest:function(n){n.parent().find(":radio").trigger("click")},dateChange:function(n,t){for(var i=n.parent(),r=i.find(".day"),f=i.find(".month"),e=i.find(".year"),u,o,s;!datechoose.isDate(r.val(),f.val(),e.val());)r[0].selectedIndex--;if((u=i.find(".jq-timezone:first"),u.length>0&&(o=generateUUID(),s=u.data("checkurl"),$.get(s,{guid:o,day:r.val(),month:f.val(),year:e.val(),hour:i.find(".hour").val(),minute:i.find(".minute").val(),timezone:u.html()},function(n){n.Guid===o&&(u.html(n.DisplayName),i.find(".jq-timezoneid:first").html(n.DisplayName))})),typeof t!="undefined"&&t!==null&&t!==0)&&(t=new Date(t),t instanceof Date)){var h=i.find(".hour"),c=i.find(".minute"),l=new Date(e.val(),f.val()-1,r.val(),h.val(),c.val());l<t&&(h.val(t.getHours()),c.val(("0"+t.getMinutes()).slice(-2)),r.val(("0"+t.getDate()).slice(-2)),f.val(t.getMonth()+1),e.val(t.getFullYear()),$(".jq-dateerror-tooearly").each(function(){var n=$(this);n.html(n.data("errmsg")).fadeIn("fast",function(){setTimeout(function(){$(".jq-dateerror-tooearly").fadeOut("slow",function(){$(this).html("")})},3e3)})}))}},isDate:function(n,t,i){return(t==4||t==6||t==9||t==11)&&n==31?!1:t==2&&(n>29||n==29&&!(i%4==0&&(i%100!=0||i%400==0)))?!1:!0}},FilesLightbox={current:null,imageWidth:null,imageHeight:null,imageSize:null,maxHeightMultiplier:4,disabled:!1,containerName:"",previewWidth:0,downloadUrl:"",init:function(n,t,i,r,u){if(FilesLightbox.containerName=r,FilesLightbox.maxHeightMultiplier=u,FilesLightbox.downloadUrl=t,!n){FilesLightbox.disabled=!0;return}FilesLightbox.previewWidth=i;FilesLightbox.addViewButton($("#pageContainer"));$("#FilesLightboxClose,#FilesLightboxWindow").on("click",function(n){n.preventDefault();$("#FilesLightboxContainer").fadeOut("fast",function(){$("#FilesLightboxInner").empty()});$("body").removeClass("lightboxOpen")});$(window).on("resize",function(){FilesLightbox.resize()});$("#FilesLightboxDownload a").on("click",function(n){n.preventDefault();var t=$(this);return FilesLightbox.downloadClickEvent(t,!1,t.hasClass("ag")),!1})},downloadClickEvent:function(n,t,i,r){var u,f;if(r||n.hasClass("jq-credit"))return typeof zipSupport!="undefined"&&(u=FilesLightbox.current.closest(".tn").find(".thumbOptions."+(t?"jpgcopy":"original")+" input:first"),u.is(":checked")||u.attr("checked",!0).trigger("change"),zipSupport.openPanel()),!1;if(i&&!MAIN.ageGateClick())return!1;f=FilesLightbox.downloadUrl.replace("~~~file~~~",escape(n.data("hyper"))).replace("~~~enc~~~",n.data("enc")).replace("~~~fileGuid~~~",n.data("fileguid"));t&&(f+="&jpgVersion=True");$.ajax({url:f,method:"GET",success:function(n){var t=n.path.replace(/^.*(\\|\/|\:)/,"").replace(/\?.*$/,"");MAIN.downloadFromPath(t,n.path)}})},setupData:function(n){var u,h,s,l,a;var v=FilesLightbox.current.attr("href"),o=FilesLightbox.current.data("copy")||v,t=FilesLightbox.current.find("img"),y=t.attr("src");if(typeof y!="undefined"){var r=FilesLightbox.previewWidth,i=t.data("origw")||1024,f=t.data("origh")||1024;if(typeof i!="undefined"&&i<FilesLightbox.previewWidth&&(r=i),u=t.data("rot"),(typeof u=="undefined"||typeof i=="undefined"||typeof f=="undefined")&&(u=!1),u&&(i=f,f=t.data("origw")),h=FilesLightbox.containerName===""?o:"/cdn/"+FilesLightbox.containerName+t.data("hyper"),n){$("#FilesLightboxInner").empty().append('<img id="FilesLightBoxTemp" src="'+y+'" style="opacity:0.5"><div id="FilesLightboxLoading"><\/div><div id="FilesLightboxImage"><\/div>');$("#FilesLightboxImage, #FilesLightboxLoading").hide();var p=setTimeout(function(){$("#FilesLightboxLoading").fadeIn("fast")},2e3),e=o.split("?")[0].toLowerCase(),c=o.indexOf("watermark=")>=0,w=c||typeof i=="undefined"||r<i||u||!e.endsWith(".jpg")&&!e.endsWith(".gif")&&!e.endsWith(".png"),b=w?h+(h.indexOf("?")===-1?"?":"&")+"w="+r+"&maxheight="+r*FilesLightbox.maxHeightMultiplier+"&mode=pad&format="+(e.endsWith(".gif")&&!c?"gif":e.endsWith(".png")?"png":"jpg")+(u?"&autorotate=true":""):o;$("#FilesLightboxImage").append('<img id="theImage" src="'+b+'">');$("#theImage").on("load",function(){$("#FilesLightboxImage").fadeIn("fast");clearTimeout(p)});$("#FilesLightboxDesc").empty().append(FilesLightbox.current.siblings(".thumbActions").find(".thumbDescription").text())}c?$("#FilesLightboxDownload").find("a").attr("href","#").addClass("jq-credit").data("fileguid","").data("enc","").data("hyper",""):$("#FilesLightboxDownload a").attr("href",v).removeClass("jq-credit").data("fileguid",t.data("fileguid")).data("enc",t.data("enc")).data("hyper",t.data("hyper")).toggleClass("ag",t.closest(".assetSet").hasClass("ag"));n&&(FilesLightbox.imageWidth=r,FilesLightbox.imageHeight=typeof f=="undefined"?null:f/i*r,FilesLightbox.imageSize=t.data("origsz"),$("#FilesLightboxDetails span.jq-size").html(t.data("origszformatted")),$("#FilesLightboxDetails span.jq-otherinfo").html(t.data("info").replace(/\|/g,'<span class="dividerbar"><\/span>')),FilesLightbox.resize())}if(n&&($("#FilesLightboxContainer").fadeIn(),$("body").hasClass("lightboxOpen")||($("#FilesLightboxClose").trigger("focus"),$("body").addClass("lightboxOpen")),$("#FilesLightboxNext").add("#FilesLightboxPrev").off("click"),s=FilesLightbox.current.data("index"),typeof s!="undefined")){if(l=FilesLightbox.current.closest(".assetSet").find("a.thumbView.thumbProcessed.jq-index"+(s+1)),l.length>0)$("#FilesLightboxNext").show().on("click",function(n){return n.preventDefault(),$("#FilesLightboxContainerInner").fadeOut("fast",function(){l.trigger("click");$("#FilesLightboxContainerInner").fadeIn("fast")}),!1});else $("#FilesLightboxNext").hide();if(a=FilesLightbox.current.closest(".assetSet").find("a.thumbView.thumbProcessed.jq-index"+(s-1)),a.length>0)$("#FilesLightboxPrev").show().on("click",function(n){return n.preventDefault(),$("#FilesLightboxContainerInner").fadeOut("fast",function(){a.trigger("click");$("#FilesLightboxContainerInner").fadeIn("fast")}),!1});else $("#FilesLightboxPrev").hide()}},addViewButton:function(n){if(!FilesLightbox.disabled&&!(n.closest("#msgContainer").length>0)){n.find("a.thumbView:not(.thumbProcessed)").addClass("thumbProcessed").each(function(n){var t=$(this),i=$("<div class=thumbViewButton><\/div>").attr("title",t.find("img").attr("title"));t.addClass("jq-index"+n).data("index",n).append(i);i.applyTooltipToItems()}).on("click",function(n){var t=$(this);if($(".tipContent").css("display","none"),!t.hasClass("jq-collapsed"))return n.preventDefault(),FilesLightbox.current=t,FilesLightbox.setupData(!0),!1});n.find(".jq-filedl .imagingThumb").applyTooltipToItems();$(".jq-thumbdl",n).each(function(){var t=$(this),i=t.closest(".jq-tn"),n=i.find("a:first");if(n.length===0){console.log("something not right with the anchor. Content of $tn is "+i.html());return}t.toggleClass("ag",n.closest(".assetSet").hasClass("ag")).on("click",function(i){i.preventDefault();FilesLightbox.current=n;FilesLightbox.setupData(!1);var r=n.closest(".assetSet").data("sponsoror")===""&&zipSupport.proStatus!=="Pro";return FilesLightbox.downloadClickEvent(n.find(".imagingThumb:first"),t.data("jpgversion"),t.hasClass("ag"),r),!1})})}},resize:function(){if(!FilesLightbox.disabled){var n=$(window).width(),e=$(window).height(),o=$("#FilesLightboxInner").find("img"),t=n*.7,i=e*.7,r=1,u=1,f=1;FilesLightbox.imageWidth!==null&&FilesLightbox.imageHeight!==null&&(FilesLightbox.imageWidth>t&&(r=t/FilesLightbox.imageWidth),FilesLightbox.imageHeight>i&&(u=i/FilesLightbox.imageHeight),f=r<u?r:u,t=FilesLightbox.imageWidth*f,i=FilesLightbox.imageHeight*f);$("#FilesLightboxContainer").css({width:n,height:$(document).height()});$("#FilesLightboxWindow").css({width:n,height:$(window).height()});FilesLightbox.imageHeight!==null&&o.css({height:i});$("#FilesLightboxContainerInner").css({"margin-top":$(window).scrollTop()-30});$("#FilesLightboxContainerInner").css({"padding-left":(n-t)/2,"padding-right":(n-t)/2,"padding-top":(e-i)/2})}}},gTagManager={itemDetails:function(n,t,i,r,u,f){u===!0&&typeof dataLayer!="undefined"&&f===!1&&(window.dataLayer.push({assetId:n,asssetType:t,forProducts:[i],singleProduct:i,fromCompany:r,companyMetric:1}),gTagManager.singleProductTracking([i]))},assetDetails:function(n,t,i,r,u,f){u===!0&&typeof dataLayer!="undefined"&&f===!1&&((i===""||typeof i!="undefined"&&i.length<1)&&(i=undefined),window.dataLayer.push({assetId:n,assetType:t,forProducts:i,fromCompany:r,companyMetric:1}),gTagManager.singleProductTracking(i))},companyDetails:function(n){typeof dataLayer!="undefined"&&window.dataLayer.push({fromCompany:n,companyMetric:1})},singleProductTracking:function(n){var t,r,i;if(typeof dataLayer!="undefined"&&(t=typeof n=="undefined"?"":n,r="singleProductTracker",t!==""))for(i=0;i<t.length;i++)window.dataLayer.push({nonInteraction:1,label:t[i],event:r,singleProduct:t[i],productMetric:1})},partnerCompanyTracking:function(n){typeof n!="undefined"&&window.dataLayer.push({partnerCompany:n,partnerCompanyMetric:1})}};$.validator.setDefaults({highlight:function(n){$(n).closest(".form-group").addClass("has-error")},unhighlight:function(n){$(n).closest(".form-group").removeClass("has-error")}});jQuery.fn.appendVal=function(n){return this.each(function(){$(this).val($(this).val()+n)})};jQuery.fn.showHidden=function(){return this.each(function(){var n=$(this);n.find(".jsshow").show();n.find(".jshide").hide()}),this};jQuery.fn.findAndSelf=function(n){return this.find(n).add(this.filter(n))};jQuery.extend(jQuery.easing,{easeInCirc:function(n){return 1-Math.sqrt(1-Math.pow(n,2))},easeOutCirc:function(n){return Math.sqrt(1-Math.pow(n-1,2))},easeOutQuad:function(n){return 1-(1-n)*(1-n)}});MAIN={isDebug:!1,ajaxTimeout:3e4,maxAjaxTimeout:12e4,ajaxThumbnailsUrl:"",selectAllText:"",deselectAllText:"",tickAllText:"",untickAllText:"",fileCollectionIdsAlreadyClicked:[],errorActionUrl:"",reported:!1,prodItalicsArray:[],videoCheckUrl:"",ie:function(){for(var i,n=3,t=document.createElement("div");t.innerHTML="<!--[if gt IE "+ ++n+"]><i><\/i><![endif]-->",t.getElementsByTagName("i")[0];);return n>4?n:i},usingOldIE:function(){var n=MAIN.ie;return n!==MAIN.ie.undef&&n<8},isIE11orLess:navigator.userAgent.indexOf(".NET CLR")>-1||navigator.appVersion.indexOf("MSIE")!==-1,isChrome:navigator.userAgent.toLowerCase().indexOf("chrome")>-1,refreshContent:function(n,t){return typeof TABBOX!="undefined"&&TABBOX.init(n),typeof ADMIN!="undefined"&&ADMIN.hover(n),typeof translation!="undefined"&&translation.turnOn(n),typeof videoPlayer!="undefined"&&videoPlayer.addPlayButton(n),typeof FilesLightbox!="undefined"?FilesLightbox.addViewButton(n):typeof applyTooltip!="undefined"&&applyTooltip(n),MAIN.loadThumbnails(n,$(window).height()+$(window).scrollTop()),MAIN.displayThumbnails(n,$(window).height()+$(window).scrollTop()),MAIN.firstParaOnlyInit(n),MAIN.tickTrigger(n),MAIN.externalLinkTrigger(n),MAIN.applyNonImgTooltips(n),MAIN.groupItems(n),MAIN.wtf(n),MAIN.turnOffAutoComplete(n),MAIN.addForToLabels(n),MAIN.tabSkipSetup(n),MAIN.checkForVideoThumbs(n),typeof t!="undefined"&&t(n),n},tickTrigger:function(n){$(".jq-ticktrigger",n).off("click").on("click",function(){$(this).closest(".jq-tickcontainer").find(".jq-ticktarget").trigger("click")})},externalLinkTrigger:function(n){n.find(".jq-externalScript").each(function(){var n=$(this),t=n.data("src"),i;typeof t!="undefined"&&(i=setTimeout(function(){var i=t,r=n;i.indexOf("vimeo")!==-1&&videoPlayer.vimeoThumbPlaceholder(i,r)},1500),$.ajax({url:t,dataType:"script",success:function(){n.remove();clearTimeout(i)}}))})},init:function(n,t,i,r,u,f,e,o,s,h,c,l,a,v,y,p,w){var k,d,b;n&&(MAIN.ajaxTimeout=0,MAIN.isDebug=n);MAIN.ajaxThumbnailsUrl=t;MAIN.selectAllText=f;MAIN.deselectAllText=e;MAIN.tickAllText=o;MAIN.untickAllText=s;MAIN.errorActionUrl=l;MAIN.plusOverflowMoreText=y;w.length&&(MAIN.prodItalicsArray=w.split("|"));MAIN.videoCheckUrl=u;typeof translation!="undefined"&&translation.init(i,r);window.usingOldIE=MAIN.usingOldIE;MAIN.ie<7&&$("body".addclass("ltIE7"));$.ajaxPrefilter(function(n,t,i){var r=$("meta[name='__AjaxRequestVerificationToken']").attr("content");r&&i.setRequestHeader("X-Request-Verification-Token",r)});$.ajaxSetup({tryCount:0,retryLimit:3,timeout:MAIN.ajaxTimeout,cache:!1,error:function(n,t){ajaxError(n,t,MAIN.errorActionUrl,this)}});$.ajaxTransport("+binary",function(n,t,i){if(window.FormData&&(n.dataType&&n.dataType=="binary"||n.data&&(window.ArrayBuffer&&n.data instanceof ArrayBuffer||window.Blob&&n.data instanceof Blob)))return{send:function(t,i){var r=new XMLHttpRequest,f=n.url,e=n.type,o=n.async||!0,s=n.responseType||"blob",h=n.data||null,c=n.username||null,l=n.password||null,u;r.addEventListener("load",function(){var t={};t[n.dataType]=r.response;i(r.status,r.statusText,t,r.getAllResponseHeaders())});r.open(e,f,o,c,l);for(u in t)r.setRequestHeader(u,t[u]);r.responseType=s;r.send(h)},abort:function(){i.abort()}}});$("body").on("click",".thumbnailset:not(.jq-blockHyper) a",function(n){var t=$(this),r,i,u,f;if(t.closest(".assetSet").hasClass("ag")&&!MAIN.ageGateClick())return!1;if((r=t.attr("href")||t.parent().attr("href"),!r||r.indexOf("://")>=0||t.hasClass("jq-filedl"))||(i=t.find("img").data("fileguid"),i===null||typeof i=="undefined"))return!0;if(a===""){if($.inArray(i,MAIN.fileCollectionIdsAlreadyClicked)>-1)return!0;u=function(){t.trigger("click")};MAIN.fileCollectionIdsAlreadyClicked.push(i);$.ajax({url:c,data:{fileGuid:i},complete:u,error:u,type:"POST"})}else n.preventDefault(),f=a.replace("~~~file~~~",escape(r)).replace("~~~enc~~~",t.find("img").data("enc")).replace("~~~fileGuid~~~",i),window.location=f;return!1});$(window).on("scroll",function(){if($("body").hasClass("lightboxOpen")&&$("#NewsLightbox").length>0){var t=$(window).height(),i=$(document).scrollTop(),e=i+t,r=$("#NewsLightbox .lightboxInner"),n=r.offset().top,u=r.outerHeight(!0),f=n+u;u>t?(i<n&&$(document).scrollTop(n),f<e&&$(document).scrollTop(f-t)):$(document).scrollTop(n)}});toolTips.init(h);toolTips.toolTips(".tipContainer");country.init();$(document).showHidden();shutters.init();MAIN.firstParaOnlyInit($("#pagebody"));$("body").on("click",".linkContainer",function(){var n=$(this).find("a:first").attr("href");typeof n!="undefined"&&(window.location.href=n)});if(typeof FilterList!="undefined"&&FilterList.init(),$("body.hasThumbs").length>0){MAIN.loadThumbnails($("body"),$(window).height()+$(window).scrollTop());MAIN.displayThumbnails($("body"),$(window).height()+$(window).scrollTop());$(window).on("scroll",function(){MAIN.loadThumbnails($("body"),$(window).height()+$(window).scrollTop());MAIN.displayThumbnails($("body"),$(window).height()+$(window).scrollTop())})}MAIN.initThumbnailsetCollapseCtrls();$("form.searchForm").on("submit",function(n){var t=$(this),e=$("input.searchtext",t).val(),u=t.hasClass("ajax"),f,i,r;return e!==""?u?(t.find("button").addClass("butLoading"),f=t.serialize(),i=t.attr("method"),(typeof i=="undefined"||i==="")&&(i="POST"),$.ajax({url:t.attr("action"),type:i,data:f,complete:$(".butLoading").removeClass("butLoading"),success:function(n){var i=t.data("onsuccess");typeof i!="undefined"&&i!==""&&executeFunctionByName(i,window,n)},error:function(n,t){ajaxError(n,t,MAIN.errorActionUrl,this)}}),!1):!0:(u&&(r=t.data("onempty"),typeof r!="undefined"&&r!==""&&executeFunctionByName(r,window)),n.preventDefault(),!1)});k=function(){var n=$(this);n.find("input").prop("checked")?n.addClass("ticked"):n.removeClass("ticked")};$(".optionList label").each(k).on("change",k);$("body").on("change","select.autosubmit",function(){$(this).closest("form").find(":submit").trigger("click")});$("body").on("click",".jq-table-row-click tr",function(){var n=$(this).find("a").first().attr("href");typeof n!="undefined"&&window.location.assign(n)});$("body").on("paste",".jq-trim",function(){var n=$(this);setTimeout(function(){var t=n.val().trim();n.val(t)},100)});TABBOX.init($("#maincontent"));$(window).on("resize",function(){MSG.resize($(".msgBox"))});if($("iframe").each(function(){var t=$(this),n=t.attr("src");typeof n!="undefined"&&n!==null&&(n.indexOf(" ? ")>0?$(this).attr({src:n+"&wmode=transparent",wmode:"Opaque"}):$(this).attr({src:n+"?wmode=transparent",wmode:"Opaque"}))}),d="placeholder"in document.createElement("input"),!d){$("input[placeholder]").each(function(){var n=$(this);n.val(n.attr("placeholder")).addClass("placeholder")});$("body").on("focus","input[placeholder]",function(){var n=$(this);n.val()===n.attr("placeholder")&&n.val("").removeClass("placeholder")});$("body").on("blur","input[placeholder]",function(){var n=$(this);n.val()===""&&n.val(n.attr("placeholder")).addClass("placeholder")})}$("body").on("click","a.toggle",function(){var n=$(this).parents("ul");n.find(".togglevisible-True, .togglevisible-False").toggleClass("togglevisible-True togglevisible-False");n.find(".togglevisible-False").hide();n.find(".togglevisible-True").show()}).on("click",".jq-anchor",function(n){var t,i;return(n.preventDefault(),t=$(this),t.hasClass("jq-anchorback"))?(i=t.data("backcount")||1,history.go(-i),!1):(window.location.href=t.data("href"),!1)});$(".jq-todo").off("click").on("click",function(n){return n.preventDefault(),n.stopPropagation(),MSG.show("/Working/WIP",$(this)),!1});$(".jq-fetch").each(function(){var n=$(this).removeClass("jq-fetch"),t=n.data("func")||"",i=t!=="";$.ajax({url:n.data("href"),method:"GET",dataType:i?"json":"html",success:function(r){i?executeFunctionByName(t,window,r):n.html(r)}})});MAIN.ageGateMechanism=p;$(document).on("click",".ag a:not(.thumbView) .imagingThumb",function(n){MAIN.ageGateClick(n)}).on("click",".jq-submitloading",function(){var t=$(this),n=t.closest("form");n.length>0&&!n.valid()||$(this).addClass("butLoading")});MENU.initMenu(b);MAIN.panelFetchUrl=v;b=$("body");$(function(){MAIN.groupItems(b);MAIN.tickTrigger(b);MAIN.externalLinkTrigger(b);MAIN.applyNonImgTooltips(b);MAIN.wtf(b);MAIN.turnOffAutoComplete(b);$(".jq-cookie-button").on("click",function(n){n.preventDefault();var t=$(this),i=t.closest("form"),r=t.closest(".jq-cookie-container").slideUp();return $.ajax({url:i.prop("action"),method:i.prop("method"),data:t.prop("name")+"="+encodeURI(t.val()),error:function(){r.slideDown()},success:function(n){typeof Cookies!="undefined"&&(n.add?Cookies.set(n.cookie,!0,{expires:730,sameSite:"strict"}):Cookies.remove(n.cookie))}}),!1});MAIN.addForToLabels(b);MAIN.tabSkipSetup(b);MAIN.checkForVideoThumbs(b)});$(document).on("change",".jq-anchor-jump",function(){var n=$(this).val();n!==""&&n.indexOf("://")===-1&&n.indexOf("..")===-1&&(window.location=n)})},tabSkipSetup:function(n){setTimeout(function(){$(".jq-tabskip:not(.jq-tabskip-done)",n).each(function(){var n=$(this),i=n.data("tabskipcount")||0,t=n.data("tabskipselector"),r=typeof t=="undefined"?n:$(t,n);if(r.length===0){if(i<10){n.data("tabskipcount",++i);MAIN.tabSkipSetup(n.parent());return}console.log("Could not find item matching "+(typeof t=="undefined"?"this":t));return}r.prop("tabindex","-1").prop("aria-hidden",!0);n.addClass("jq-tabskip-done")})},1e3)},turnOffAutoComplete:function(n){$("form",n).not(".jq-allowautocomplete").each(function(){var n=$(this).prop("autocomplete","off");n.find("input:text,textarea").prop("autocomplete",n.prop("autocomplete")||"off")})},addForToLabels:function(n){$("label.jq-needsfor",n).each(function(){var n=$(this);(n.prop("for")||!0)&&n.prop("for",n.parent().find("input[id]:visible:first").prop("id"))})},wtf:function(n){var t,i;(typeof n=="undefined"||n===null)&&(n=$("body"));t=n.find(".notlive:not(.status-exclusive)");t.length>0&&typeof ADMIN=="undefined"&&!MAIN.reported&&(MAIN.reported=!0,MAIN.isDebug?(alert("Showing admin stuff when it shouldn't"),t.each(function(){alert($(this).outerHTML())})):(i=[],t.each(function(){i.push($(this).outerHTML())}),t.remove(),$.ajax({type:"POST",url:"/Site/CarefulNow",dataType:"json",contentType:"application/json",data:JSON.stringify({elements:i,url:window.location.href})})))},ageGateClick:function(n,t){if(MAIN.ageGateMechanism==="Javascript"){var i=$(".jq-agegatecontent:first");return(t=t||$("span:last",i).html()||i.html(),!t||confirm(t))?!0:(typeof n!="undefined"&&(n.preventDefault(),n.stopPropagation()),!1)}return!0},firstParaOnlyInit:function(n){var t=$("#moreparasbutton");$(".firstParaOnly",n).each(function(n){var i=$(this).removeClass("firstParaOnly"),u=i.find("p");if(u.length>1){u.hide();t.clone().css("display","block").prop("id","moreParas"+n).appendTo($("p:first-child",i).show()).on("click",function(n){return n.preventDefault(),$(this).hide(),u.slideDown(),!1});return}var r=i.html(),e=new RegExp("(<br\\s*\\/?>\\s*){2,}","gmi"),f=r.search(e);if(f>=0){i.html(r.substr(0,f));i.data("content",r);t.clone().prop("id","moreParas"+n).css("display","block").appendTo(i).on("click",function(n){return n.preventDefault(),i.html(r),!1})}else console.log("No paras or line breaks found")})},getThumbsForCollection:function(n){n.each(function(){var t=$(this),n;t.hasClass("requested")||(t.addClass("requested"),n=t.parent(),$.ajax({url:MAIN.ajaxThumbnailsUrl,cache:!0,data:t.data("x"),dataType:"html",timeout:MAIN.ajaxTimeout,success:function(i){var u,r;n.hide();i.length>1?(u=t.slideDown().closest(".assetSet"),t.replaceWith(i),r=u.find(".butTickAll"),$(".jq-tn",u).length>0&&r.fadeIn(),typeof zipSupport!="undefined"&&r.hasClass("untick")&&zipSupport.tickAll(r,!0),typeof videoPlayer!="undefined"&&videoPlayer.addPlayButton(n),typeof FilesLightbox!="undefined"?FilesLightbox.addViewButton(n):applyTooltip(n),MAIN.hideExcessThumbs(n),n.fadeIn(function(){if(n.data("onthumbload")){var t=n.data("onthumbload");executeFunctionByName(t,window,n)}MAIN.externalLinkTrigger(n)})):(t.replaceWith("<li><div class=thumbActions>--<\/div><\/li>"),n.fadeIn())},error:function(n,i){ajaxError(n,i,null,this,t,null,1)},complete:function(){var i=n.parents("div.tabboxOuter").filter(":visible"),t;i.length>0?(MAIN.displayThumbnails(n),MAIN.loadThumbnails(i[0])):(MAIN.displayThumbnails($(document)),MAIN.loadThumbnails($(document)));$(".jq-chooseLogo").data("currentthumb")&&(t=$(".tabbox").data("currentthumb"),$(".jq-chooseLogo").find("img[data-fileguid='"+t+"']").length>0&&($(".jq-chooseLogo").find("img[data-fileguid='"+t+"']").closest("li").addClass("currentImageThumb"),$(".jq-chooseLogo").removeData("currentthumb")))}}))})},hideExcessThumbs:function(n){typeof MAIN.plusOverflowMoreText=="undefined"&&(MAIN.plusOverflowMoreText="+ {OverflowCount} more");n.each(function(){var n=$(this),i=n.data("display-limit"),t;if(typeof i=="number"&&(t=n.find(".tn:gt("+(i-1)+")").addClass("hidden"),t.length>0))$("<li class='tn-more'><a>"+MAIN.plusOverflowMoreText.replace("{OverflowCount}",t.length)+"<\/a><\/li>").appendTo(n).on("click",function(){$(this).parents(".thumbnailset").find(".tn.hidden").removeClass("hidden").css("display","inline-block");MAIN.displayThumbnails($("body"),$(window).height()+$(window).scrollTop());$(this).remove()})})},displayThumbnails:function(n){$(".tn:not(.hidden) .imagingThumb.lazy",n).each(function(){var n=$(this);if(n.offset().top<=$(window).scrollTop()+window.innerHeight)n.removeClass("lazy").css("opacity",0).attr("src",n.data("src")).on("load",function(){n.css("opacity",1)})});$(".attachedAssets input:checkbox").length<1?$("aside .filedownloadcontainer").hide():$("aside .filedownloadcontainer").show()},loadThumbnails:function(n){var t,i;(!MSG.active||$(n).parents(".msgBoxBody").length>0)&&($(".ag:first").length>0&&$(".jq-agegatecontent").fadeIn(),t=$(".ph:visible:first",n),t.length>0&&t.parents(".collapsed").length===0&&(i=t.closest(".assetSet"),i.offset().top<=$(window).scrollTop()+window.innerHeight&&MAIN.getThumbsForCollection(t)))},initThumbnailsetCollapseCtrls:function(){$("body").on("click",".assetsListItem.collapsed",function(){console.log("Open");var n=$(this),t=$(".ph",n);t.length>0?(t.addClass("fetching"),MAIN.getThumbsForCollection(t)):n.find(".thumbnailset").slideDown(400,"easeOutQuad");n.removeClass("collapsed")});$("body").on("click",".expandable-close",function(){var n=$(this).parents(".assetsListItem");n.addClass("collapsed");n.find(".thumbnailset").slideUp(400,"easeOutQuad")})},regionSelectSetup:function(n){$("body").on("click","a.jq-country-clicked",function(t){t.preventDefault();var i=$(this),r=i.closest("form");return r.length===0&&(r=i.closest(".countrylist").siblings(".regionForm")),i.data("id")!==n&&(r.find(".jq-selectedRegionHidden").val(i.data("id")).fadeOut(),r.find("button").trigger("click"),$("#countrytext").html($("#countrytext").data("loadingmsg"))),!1})},regionSelectPostback:function(n){location.href=unescape(n[0])},loginResponse:function(n){var r=n[1]||"body",t=$(".jq-login",$(r)),i=t.filter(".jq-loginfirst:first");i.length===0&&(i=t.first());i.before(n[0]);t.remove()},loginError:function(n){$("div.validation-summary-errors").hide();$("#loginErrorMessage").addClass("validation-summary-errors").show().find(".jq-errormessage").html(n[0]);n[1]&&n[1].length>0&&n[1].indexOf("//")===-1&&MAIN.redirect(n[1])},redirect:function(n){typeof n=="object"&&(n=n[1]);window.location=n},selectMenu:function(n){$("li.menuactive").removeClass("active menuactive");$("li.menu-"+n).addClass("active menuactive")},setupLinkCheck:function(n,t){$(".urlTest",n).hide();var i=$(".jq-invalidUrl",n),r=$(".jq-checkingUrl",n),u=$(".jq-validUrl",n);$("input.jq-externalLink",n).on("focusout",function(){r.show();u.hide();i.hide();var n=$(this);$.ajax({url:t,data:"url="+n.val()+"&requiresProtocol="+n.hasClass("jq-requiresProtocol"),type:"POST",success:function(n){r.hide();n.args[0]==="false"?i.text(n.args[1]).show():u.show()}})})},getUploaderObject:function(){return typeof fineUploaderSupport!="undefined"?fineUploaderSupport:typeof pluploadSupport!="undefined"?pluploadSupport:null},applyNonImgTooltips:function(n){typeof $.fn.wTooltip!="undefined"&&n.find(".jq-tooltip[title]").wTooltip({delay:200,fadeIn:200,fadeOut:100,style:!1,className:"wTooltip",offsetX:8,offsetY:19})},groupItems:function(n){var t="";$(".jq-grouping",n).each(function(){var n=$(this),i=n.find(".jq-groupby:first"),r=i.length>0?i.html():n.html();t===r?n.hide():(n.show(),t=r)})},removeAccents:function(n){const t="ÀÁÂÃÄÅĄàáâãäåąßÒÓÔÕÕÖØŐòóôőõöøĎďDŽdžÈÉÊËĘèéêëęðÇçČčĆćÐÌÍÎÏìíîïÙÚÛÜŰùűúûüĽĹŁľĺłÑŇŃňñńŔŕŠŚšśŤťŸÝÿýŽŻŹžżź",i="AAAAAAAaaaaaaasOOOOOOOOoooooooDdDZdzEEEEEeeeeeeCcCcCcDIIIIiiiiUUUUUuuuuuLLLlllNNNnnnRrSSssTtYYyyZZZzzz";return n.split("").map(function(n){const r=t.indexOf(n);return r!==-1?i[r]:n}).join("")},encodeSearchPhrase:function(n){return n.replace(/&/,"%26")},autoCompleteSearchBox:function(n,t,i){var r="";$("#searchtext").easyAutocomplete({url:function(t){return r=t,n+"&id="+MAIN.encodeSearchPhrase(t)},categories:[{listLocation:"ProductList",header:t,maxNumberOfElements:1e3,getValue:"Name"},{listLocation:"CompaniesList",header:i,maxNumberOfElements:1e3,getValue:"Name"}],matchResponseProperty:"Phrase",theme:"bootstrap",adjustWidth:!1,list:{maxNumberOfElements:1e3,showAnimation:{type:"slide",time:150},hideAnimation:{type:"slide",time:150},onShowListEvent:function(){$("body").addClass("autocomplete-active")},onHideListEvent:function(){$("body").removeClass("autocomplete-active")},onSelectItemEvent:function(){$("#searchtext").val(r)},onChooseEvent:function(){$("#searchtext").val(r);var n=$("#searchtext").getSelectedItemData().Url;typeof n!="undefined"&&n&&(window.location.href=n)}},template:{type:"custom",method:function(n,t){var i;t.Value=n;switch(t.Type){case 0:t.Separator=t.Platforms.length>0?" &#124; ":"";i="#AutoCompleteProductTemplate";break;case 1:i="#AutoCompleteCompanyTemplate";break;default:i="#AutoCompleteMoreTemplate"}return $.tmpl($(i),t).prop("outerHTML")}},requestDelay:500})},itemItalics:function(n){$(function(){var t,r,i,u;((typeof n=="undefined"||n==="")&&(n=!1),t=MAIN.prodItalicsArray,typeof t!="undefined"&&t!==[]&&t!==""&&t.length!==0)&&(t.push('^".*?"$'),r=".prod-name",i=$("body").find(r).not(".jq-prod-formatted"),typeof i!="undefined"&&i.length!==0)&&(u=new RegExp(t.join("|"),"gi"),i.each(function(t,i){var r=$(i),e=r.text(),f=e.replace(u,function(n){return"<span class='prod-normal'>"+n+"<\/span>"});n===!0?(r.contents().last()[0].textContent="",r.append(f),r.addClass("jq-prod-formatted")):(r.html(f),r.addClass("jq-prod-formatted"))}),console.log("products formatted!"))})},searchBarClean:function(n){return(n.indexOf("<")!==-1||n.indexOf(">")!==-1)&&(n=n.replace("<","").replace(">",""),$(".jq-searchAutocomplete").val(n)),n},checkForVideoThumbs:function(n,t){if(typeof MAIN.videoCheckUrl!="undefined"&&MAIN.videoCheckUrl!==null&&MAIN.videoCheckUrl!==""){typeof n=="undefined"&&(n=$(document));typeof n=="string"&&(n=$("<div/>").html(n));var i=$(".jq-videothumb",n),r=i.removeClass("jq-videothumb").addClass("jq-videothumbfetching").map(function(){var n=$(this);return n.prop("id")+"|"+n.closest(".jq-fig").data("emptyfileids")}).get();if(r.length===0){typeof t=="function"&&t(n.html());return}$.ajax({url:MAIN.videoCheckUrl,data:"ids="+r.join(";"),method:"POST",dataType:"json",success:function(i){if(typeof i.args!="undefined"){var r=JSON.parse(i.args[0]);$.each(r,function(n,t){var i=$("#"+t.rowGuid).removeClass("jq-videothumbfetching");(t.src||!1)&&i.prop("src",t.src)})}typeof t=="function"&&t(n.html())},complete:function(){$(".jq-videothumbfetching",i).addClass("jq-videothumb").removeClass("jq-videothumbfetching")}})}},downloadFile:function(n,t){if(typeof window.navigator.msSaveBlob!="undefined")window.navigator.msSaveBlob(t,n);else{var i=window.URL||window.webkitURL,r=i.createObjectURL(t);MAIN.downloadFromPath(n,r);setTimeout(function(){i.revokeObjectURL(r)},100)}},downloadFromPath:function(n,t){if(n){var i=document.createElement("a");typeof i.download=="undefined"?window.location.href=t:(i.href=t,i.download=n,document.body.appendChild(i),i.click())}else window.location.href=t},validateRequiredSocials:function(n){var i=$(".jq-social",n).data("required"),f,r,t,u,e;if(typeof i!="undefined"&&i!==""){if(i.toLowerCase()==="any")$(".jq-social input:text").filter(function(){return $(this).val().length>0}).length===0?$(".jq-weberror:first",n).slideDown().addClass("field-validation-error"):$(".jq-weberror",n).hide().removeClass("field-validation-error");else if(i.toLowerCase()==="all")f=$(".jq-social input:text").filter(function(){return $(this).val().length===0}),f.length===0?$(".jq-weberror",n).hide().removeClass("field-validation-error"):f.each(function(){$(".jq-weberror",$(this).closest(".jq-social-container")).slideDown().addClass("field-validation-error")});else for(r=i.split(","),t=0;t<r.length;t++)r[t]=r[t].trim(),u=$("input[value='"+r[t]+"']:first",n).closest(".jq-social-container"),e=u.find("input:text"),e.length>0&&(e.val()===""?$(".jq-weberror",u).slideDown().addClass("field-validation-error"):$(".jq-weberror",u).hide().removeClass("field-validation-error"));$(".jq-noWeb",n).off("click").on("click",function(n){n.preventDefault();var t=$(this).closest(".jq-social-container"),i=$("input:text",t);return $(".jq-weberror",t).slideUp(function(){t.find(".field-validation-error").removeClass("field-validation-error");i.val(" ")}),!1})}},copyText:function(n){var i=$(n).first(),t;i.length!==0&&(t=i[0],t.select(),t.setSelectionRange(0,99999),document.execCommand("copy"))}};var MENU={initMenu:function(n){$("#mainmenuinner > ul > li:has(ul)",n).hoverIntent(function(){var n=$("ul:first",this);n.stop(!0,!0);clearTimeout(n.data("timeoutId"));$("#mainmenuinner > ul > li > ul").not(n).hide().find("li > ul").hide();usingOldIE?n.show():n.fadeTo("fast",1)},function(){var n=$("ul:first",this),t=setTimeout(function(){usingOldIE?n.hide().find("ul").hide():n.fadeOut("fast").find("ul").hide()},650);n.data("timeoutId",t)});$("#mainmenuinner > ul > li > ul > li:has(ul)",n).hoverIntent(function(){var n=$("ul:first",this);n.stop(!0,!0);clearTimeout(n.data("timeoutId"));$("#mainmenuinner > ul > li > ul > li > ul").not(n).hide();usingOldIE?n.show():n.fadeTo("fast",1)},function(){var n=$("ul:first",this),t=setTimeout(function(){usingOldIE?n.hide():n.fadeOut("fast")},650);n.data("timeoutId",t)});$("#mainmenuinner > ul > li > ul > li > ul > li:has(ul)",n).hoverIntent(function(){var n=$("ul:first",this);n.stop(!0,!0);clearTimeout(n.data("timeoutId"));$("#mainmenuinner > ul > li > ul > li > ul > li > ul").not(n).hide();usingOldIE?n.show():n.fadeTo("fast",1)},function(){var n=$("ul:first",this),t=setTimeout(function(){usingOldIE?n.hide():n.fadeOut("fast")},650);n.data("timeoutId",t)});$("#mainmenuinner ul li ul li",n).has("ul").children("a, div").addClass("hassubmenu");$("#mainmenuinner > ul",n).find("ul").has("ul").each(function(){var n=$(this),t;n.evenIfHidden(function(n){t=n.outerWidth()});n.children().children("ul").css("left",t)});$(".jq-darkmodetoggle",n).on("click",function(n){return n.preventDefault(),MENU.setSiteThemeMode(!0),!1});MENU.setSiteThemeMode(!1);$(".jq-custommenutoggle",n).on("click",function(n){var t=$(this),i=t.data("val");return n.preventDefault(),MENU.setCustomMenuMode(i,!0),!1}).each(function(){var n=$(this),t=n.data("val");MENU.setCustomMenuMode(t,!1)})},setSiteThemeMode:function(n){var e,r,u,f;const i=$("body"),t="CssTheme";if(e=Cookies.get(t)||"",r=i,$(".cke_contents iframe").each(function(){var n=$(this);r=r.add(n.contents().find("body"))}),n)return r.toggleClass(t+"Dark "+t+"Light"),u=!1,i.hasClass(t+"DarkDefault")&&!i.hasClass(t+"Dark")?(u=!0,f="light"):i.hasClass(t+"LightDefault")&&!i.hasClass(t+"Light")&&(u=!0,f="dark"),u?Cookies.set(t,f,{expires:365}):Cookies.remove(t),!1;i.addClass(t+(e==="dark"?"Dark":"Light"))},setCustomMenuMode:function(n,t){const u=$("body"),r="CssCustom";var i=Cookies.get(r)||"";t?(i=i.replace(n,"").trim(),u.toggleClass(n),u.hasClass(n)?Cookies.set(r,(i+" "+n).trim(),{expires:365}):i===""?Cookies.remove(r):Cookies.set(r,i.trim(),{expires:365})):u.addClass(i)}},MSG={active:!1,current:null,previous:[],fadeInTime:400,fadeOutTime:400,centeringSpeed:300,minTopMargin:20,$msgContainer:$("#msgContainer"),destroyOnComplete:!1,closeAll:function(){while(MSG.current)MSG.hide();$("div.msgBox").remove()},show:function(n,t,i){var f=!0,e,r,o,u,s,h,c;return(typeof t=="undefined"||t===null)&&(t=$(document)),e=n.replace(/[^A-Za-z0-9]/g,"_"),r=$("#"+e),r.length>0&&t.hasClass("msgDestroy")&&r.remove(),r.length===0||t.hasClass("msgDestroy")?($('<div class="msgBox" id='+e+'><div class=\'msgBg\'><\/div><div class=msgDiv2><div class="msgDiv3 msgLoading" style="position:relative"><div class=msgDiv4><div class=msgDiv5 style="height:150px"><\/div><\/div><\/div><\/div><\/div>').appendTo("#msgContainer"),MSG.$msgContainer.fadeIn(MSG.fadeOutTime,"easeOutCirc"),r=$("#"+e),r.data("prevScrollTop",$(window).scrollTop()),MSG.resize(r),o=$(".msgVisible").length,r.addClass("msgVisible").css({zIndex:2001+o,display:"block"}),o===0&&r.addClass("msgFirst"),r.fadeTo(MSG.fadeInTime,1,"easeOutCirc"),r.updateLocal=!1,u=r.find(".msgDiv4"),typeof i=="undefined"?(n[0]==="#"?(MSG.setCurrent(r),s=$(n),s.length&&MSG.copyform(s,u),MSG.resize(r),MSG.current.updateLocal=!0,MSG.current.updateId=n,u.parent().removeClass("msgLoading"),MSG.resizeOnLoad(r),MSG.display(r),f=!1):(h="GET",c="",t&&(t.hasClass("msgPost")&&(h="POST",c=t.closest("form").serialize()),t.hasClass("msgShowLoading")&&t.addClass("butLoading")),$.ajax({url:n+"#messagecontent",method:h,data:c,success:function(i){typeof i.redirectLocation!="undefined"&&i.redirectLocation==="#"&&location.reload();MSG.setCurrent(r,n);u.html(i);u.parent().removeClass("msgLoading");t&&t.removeClass("butLoading msgSubmitted");MSG.removeButtonLoading();MSG.resizeOnLoad(r);r.find(".msgContent").fadeTo(MSG.fadeInTime,1);MSG.validate(r);toolTips.toolTips(r.find(".jq-tipTrigger"))},error:MSG.ajaxError})),r.data("$caller",t),MSG.displayCallback(t.data("msgcallback"),r)):(f=!1,MSG.setCurrent(r),u.find(".msgDiv5").replaceWith(i),u.parent().removeClass("msgLoading"),MSG.resizeOnLoad(r),r.find(".msgContent").fadeTo(MSG.fadeInTime,1),MSG.validate(r))):(f=!1,MSG.display(r),MSG.validate(r),r.data("$caller",t),MSG.displayCallback(t.data("msgcallback"),r)),MSG.active=!0,f},reload:function(){var t=MSG.current,n,i;(typeof t.messageHref=="undefined"||t.messageHref.substr(0,1)==="#")&&alert("Cannot reload msg window");n=$(t);i=n.find(".msgDiv4");i.parent().addClass("msgLoading");$.ajax({url:t.messageHref+"#messagecontent",method:"GET",success:function(t){i.html(t);i.parent().removeClass("msgLoading");MSG.removeButtonLoading();MSG.resizeOnLoad(n);n.find(".msgContent").fadeTo(MSG.fadeInTime,1);MSG.validate(n)}})},display:function(n){MSG.resize(n);var t=n.hasClass("msgVisible")?$(".msgVisible").length-1:$(".msgVisible").length;n.find(".msgContent").css("opacity",0);n.addClass("msgVisible").css({zIndex:2001+t,display:"block"});t===0&&n.addClass("msgFirst");MSG.$msgContainer.fadeTo(MSG.fadeInTime,1);n.find(".msgContent").fadeTo(MSG.fadeInTime,1,"easeOutCirc");MSG.setCurrent(n)},setCurrent:function(n,t){MSG.current&&MSG.current!==n[0]&&($(MSG.current).addClass("formInactive"),MSG.previous.push(MSG.current));MSG.current=n[0];MSG.current.messageHref=t},validate:function(n){n.find("form").each(function(){$.validator.unobtrusive.parse($(this).removeData("validator").removeData("unobtrusiveValidation"))})},resizeOnLoad:function(n){MSG.refreshContent(n);var i=n.find("img"),t=i.length;t===0?MSG.resize(n):i.on("load",function(){t--;t===0&&MSG.resize(n)}).each(function(){this.complete&&$(this).trigger("load")})},successRefresh:function(n){n[0]===".PressKitList"&&MSG.changesMade();MSG.refreshContent(n[1].trim(),n[0])},append:function(n){var i=$(n[0]),t=$($.parseHTML(n[1].replace(/^\s+|\s+$/g,""),!0));i.append(t);MSG.refreshContent(t).contentReveal()},refreshContent:function(n,t,i,r){return n instanceof jQuery||(n=$($.parseHTML(n.trim(),!0))),typeof i=="undefined"&&(i=!1),typeof t!="undefined"&&t&&(t instanceof jQuery||(t=$(t)),i?t.html(n):t.replaceWith(n)),MAIN.refreshContent(n,r),n},displayCallback:function(n,t){n!==""&&typeof n!="undefined"&&executeFunctionByName(n,window,t)},resize:function(n){var i=n.find(".msgDiv4"),r=i.height(),t;t=($(window).height()-r)/3;t<0&&(t=0);i.css("margin-top",$(window).scrollTop()+t);MSG.resizeBG(n)},resizeBG:function(n){n.css("height",$(document).height());MSG.$msgContainer.css("height",$(document).height())},height:function(n){var r=n.find(".msgDiv4"),i,t;return r.evenIfHidden(function(n){i=n.height()}),t=r.find(".tabboxOuter.active:first"),t.length===0&&(t=r.find(".tabboxOuter:first")),t.length>0&&t.evenIfHidden(function(n){i=i+n.height()}),i},destroy:function(n){n.remove();MSG.destroyOnComplete=!1},hide:function(n,t,i){typeof i=="undefined"&&(i=MSG.destroyOnComplete);typeof n=="undefined"&&(n=$(MSG.current));$(".formDisable",n).hide();MSG.current=MSG.previous.pop();$(MSG.current).removeClass("formInactive");n.hasClass("msgFirst")&&(MSG.$msgContainer.fadeOut(MSG.fadeOutTime,"easeOutCirc"),MSG.active=!1);n.removeClass("msgVisible").removeClass("formInactive").fadeOut(MSG.fadeOutTime,"easeOutCirc",function(){i&&MSG.destroy(n);n.removeClass("msgFirst");t&&t()});$("html,body").animate({scrollTop:n.data("prevScrollTop")},250,"easeOutCirc")},center:function(){},copyform:function(n,t){t.html(n.html());$(":input[name]:not(:checkbox, :radio)",n).each(function(){$(":input[name="+$(this).attr("name").replace(".","\\.")+"]",n).each(function(n){var i=$(this);$("[name="+i.attr("name").replace(".","\\.")+"]:eq("+n+")",t).val(i.val())})});$(":checkbox, :radio",n).each(function(){var n=$(this),i=n.attr("checked")==="checked";$(":input[name="+n.attr("name").replace(".","\\.")+']:not([value!="'+n.attr("value")+'"])',t).attr("checked",i)})},initButtons:function(n){return n},removeButtonLoading:function(){$(".butLoading").removeClass("butLoading msgSubmitted unclickable").prop("disabled",!1)},changesMade:function(){$("div.jq-confirmChanges:first").addClass("jq-changesMade")},ajaxFormComplete:function(n){var i={newpanel:function(n){if(n.hide&&MSG.hide($(MSG.current)),n.html)MSG.show(generateUUID(),$(document),n.html);else{if(!n.url||n.url===""){alert("No url supplied for new panel");return}MSG.show(n.url)}},redirect:function(n){var t=function(){$(window).off("beforeunload");n.redirectLocation==="#"?location.reload(!0):window.location=unescape(n.redirectLocation)};MSG.current?MSG.hide($(MSG.current),function(){t()}):t()},success:function(n){typeof MSG.current=="undefined"||MSG.current===null||n.retain?n.onsuccess&&n.onsuccess!==""&&executeFunctionByName(n.onsuccess,window,typeof n.args=="undefined"?n:n.args):MSG.hide($(MSG.current),function(){n.onsuccess&&n.onsuccess!==""&&executeFunctionByName(n.onsuccess,window,typeof n.args=="undefined"?n:n.args,$(MSG.current))})},failure:function(n){n.onerror&&n.onerror!==""&&executeFunctionByName(n.onerror,window,typeof n.args=="undefined"?n:n.args);n.errorMessage&&alert(n.errorMessage)},validationError:function(n){n.onerror&&n.onerror!==""&&executeFunctionByName(n.onerror,window,typeof n.args=="undefined"?n:n.args);var i={},t=null;n.errors.forEach(function(n){i[n.fieldName]=n.message;t===null&&(t=$("#"+n.fieldName).closest("form"))});t&&t.validate().showErrors(i)},update:function(n){var t=$(MSG.current);t.length>0?MSG.hide(t,function(){MSG.show(generateUUID(),$(document),n)}):MSG.show(generateUUID(),$(document),n)},attachment:function(n){var t=/filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/.exec(disposition),i,r;t!=null&&t[1]&&(filename=t[1].replace(/['"]/g,""));i=n.getResponseHeader("Content-Type");r=new Blob([n.responseText],{type:i});MAIN.downloadFile(filename,r);MSG.hide()}},t;if(n&&n.responseText)try{t=JSON.parse(n.responseText);switch(t.result){case"p":MSG.removeButtonLoading();i.newpanel(t);break;case"r":i.redirect(t);return;case"y":MSG.removeButtonLoading();i.success(t);break;case"n":MSG.removeButtonLoading();i.failure(t);break;case"v":MSG.removeButtonLoading();i.validationError(t)}t.oncomplete&&t.oncomplete!==""&&executeFunctionByName(t.oncomplete,window,typeof t.args=="undefined"?t:t.args)}catch(r){i.update(n.responseText)}else i.attachment(n)},submit:function(n,t,i,r){var e,s,o,u,f;return(MSG.previous.length>0&&n.parents(".msgContent").hasClass("jq-reportChanges")&&(console.log("msgSubmit event within confirmChanges msgbox"),$(MSG.previous[MSG.previous.length-1]).find(".jq-confirmChanges").addClass("jq-changesMade")),e=n.closest("form"),e.length===0||n.hasClass("msgSubmitted"))?!1:e.valid()?(n.addClass("butLoading msgSubmitted"),n.hasClass("msgDestroy")&&(MSG.destroyOnComplete=!0),s=e.serialize(),n[0].name!==""&&n[0].value!==""&&(s+=(s===""?"":"&")+n[0].name+"="+escape(n[0].value)),o=n.hasClass("get")?"GET":e.attr("method"),(typeof o=="undefined"||o==="")&&(o="POST"),u={url:typeof t!="string"?e.attr("action"):t,type:o,data:s,complete:MSG.ajaxFormComplete,error:function(n,t){ajaxError(n,t,MAIN.errorActionUrl,this)}},typeof n.data("ajax-tryCount")!="undefined"&&(u.tryCount=n.data("ajax-tryCount")),typeof n.data("ajax-timeout")!="undefined"&&(u.timeout=n.data("ajax-timeout")),typeof n.data("ajax-retryLimit")!="undefined"&&(u.retryLimit=n.data("ajax-retryLimit")),typeof n.data("ajax-cache")!="undefined"&&(u.cache=n.data("ajax-cache")),typeof i!="undefined"&&i!==null&&(typeof i.tryCount!="undefined"&&(u.tryCount=i.tryCount),typeof i.timeout!="undefined"&&(u.timeout=i.timeout),typeof i.retryLimit!="undefined"&&(u.retryLimit=i.retryLimit),typeof i.cache!="undefined"&&(u.cache=i.cache),typeof i.ajaxError!="undefined"&&(u.error=function(t,r){MSG.show(i.ajaxError+"?statusCode="+t.status+"&exception="+r+"&errorMessage="+(t.responseText&&t.responseText.substr(0,1750)),n)})),typeof n.data("ajax-tryCount")!="undefined"&&(u.tryCount=n.data("ajax-tryCount")),typeof n.data("ajax-timeout")!="undefined"&&(u.timeout=n.data("ajax-timeout")),typeof n.data("ajax-retryLimit")!="undefined"&&(u.retryLimit=n.data("ajax-retryLimit")),typeof n.data("ajax-cache")!="undefined"&&(u.cache=n.data("ajax-cache")),typeof n.data("ajax-error")!="undefined"&&(u.error=function(t,i){MSG.show(n.data("ajax-error")+"?statusCode="+t.status+"&exception="+i+"&errorMessage="+(t.responseText&&t.responseText.substr(0,1750)),n)}),r||!1?(f=new XMLHttpRequest,f.open("POST",u.url,!0),f.responseType="arraybuffer",f.setRequestHeader("Content-type","application/x-www-form-urlencoded"),f.timeout=u.timeout,f.onload=function(){var i,e,c,o,l,s,h,r,t;if(this.status===200){if(typeof MSG.onSuccess=="function")MSG.onSuccess(this,n);n.hasClass("msgKeep")||MSG.hide();i="";e=f.getResponseHeader("Content-Disposition");e&&e.indexOf("attachment")!==-1&&(c=/filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/,o=c.exec(e),o!=null&&o[1]&&(i=o[1].replace(/['"]/g,"")));l=f.getResponseHeader("Content-Type");s=new Blob([this.response],{type:l});typeof window.navigator.msSaveBlob!="undefined"?window.navigator.msSaveBlob(s,i):(h=window.URL||window.webkitURL,r=h.createObjectURL(s),i?(t=document.createElement("a"),typeof t.download=="undefined"?window.location=r:(t.href=r,t.download=i,document.body.appendChild(t),t.click())):window.location=r,setTimeout(function(){h.revokeObjectURL(r)},100))}else if(typeof MSG.onError=="undefined")u.error(this.status);else MSG.onError(this,n);typeof callback=="function"&&callback()},f.send(u.data)):$.ajax(u),!0):(MSG.removeButtonLoading(),$(".validation-summary-errors, .errorAlert:not(.manualError), .field-validation-error",e).slideDown(),!1)},getHref:function(n){var o=typeof n=="string"?n:n.data("href")||n.attr("href"),s=/---form---([^-]+)-/g,f,e=typeof MSG.current=="undefined"||MSG.current===null?$(document):$(MSG.current),u=o;for((typeof MSG=="undefined"||typeof MSG.current=="undefined")&&(MSG.current=null);f=s.exec(o);){console.log("found match = "+f[0]);var r=null,i=f[1],t=$("."+i,e);t.length===0&&(t=$("#"+i,e));t.length===0?(t=$("input:checked[name='"+i+"']",e),t.length===0?console.log("Couldn't find anything with the class or id "+i):r=t.map(function(){return this.value}).get().join()):r=t.first().val();r!==null&&(u=u.replace("---form---"+i+"-",escape(r)),console.log("ElementId = "+i+"; elementVal = "+r+"; href = "+u))}return u},cancel:function(n){if(MSG.removeButtonLoading(),typeof ADMIN!="undefined"&&ADMIN.confirmUnsavedChangesUrl!==""){var t=n.closest(".jq-changesMade",$(MSG.current));if(t.length>0)return t.removeClass("jq-changesMade"),MSG.show(ADMIN.confirmUnsavedChangesUrl),!1}MSG.hide($(MSG.current),n.hasClass("msgReset")?function(){var t=n.closest("form");t.length>0&&(t.get(0).reset(),t.find("div.validation-summary-valid, span.field-validation-valid").hide())}:null,n.hasClass("msgDestroy"))}},$body=$("body");$body.on("click",".msgLaunch",function(n){n.preventDefault();var t=$(this);t.hasClass("disabled")||MSG.show(MSG.getHref(t),t)});$body.on("click",".msgNext",function(n){n.preventDefault();MSG.hide($(MSG.current));var t=$(this);MSG.show(MSG.getHref(t),t)});$body.on("click",".msgBack",function(n){n.preventDefault();MSG.hide($(MSG.current));$(MSG.current).removeClass("formInactive");MSG.display($(MSG.current))});$body.on("click",".msgCancel",function(n){return n.preventDefault(),n.stopPropagation(),MSG.cancel($(this)),!1});$body.on("click",".msgClose",function(n){var r=$(this),t,i;r.hasClass("msgContinue")||n.preventDefault();MSG.current.updateLocal&&(t=$(MSG.current.updateId),i=$(MSG.current).find("div > div > div"),$(this).hasClass("msgUndo")?MSG.copyform(t,i):MSG.copyform(i,t));MSG.hide($(MSG.current),null,$(this).hasClass("msgDestroy"))});$body.on("click",".msgClosePrevious",function(n){return n.preventDefault(),MSG.hide($(MSG.current),function(){var n=$(".msgCancel:first",$(MSG.current));n.length>0?n.trigger("click"):MSG.cancel(n)},$(this).hasClass("msgDestroy")),!1});$body.on("click",".jq-adminOptionList:not(.jq-adminOptionListKnockout) li:not(.chooseAll) label",function(n){if(n.preventDefault(),n.target.tagName.toLowerCase()==="input")return!1;var t=$(this),i=t.find("input:checkbox,input:radio");return i.attr("disabled")?!1:(i.trigger("click"),t.hasClass("selected")?(t.removeClass("selected"),i.attr("checked",!1)):(t.addClass("selected"),i.attr("checked",!0)),i.is("[type='radio']")&&t.closest(".jq-adminOptionList").find("input:radio:not(:checked)").each(function(){$(this).closest("label").removeClass("selected")}),!0)});$body.on("click",".jq-adminOptionList li.chooseAll label",function(n){n.preventDefault();var r=$(this),f=r.closest(".jq-adminOptionList"),i=f.find("li label:not(.chooseAll):visible").add(r),t=$(MSG.current),u=r.find("span");u.text()===MAIN.deselectAllText?(i.removeClass("selected").find("input:checkbox:enabled").prop("checked",!1),u.text(MAIN.selectAllText),typeof productEdit!="undefined"&&(i.filter(".jq-country").length?($("input[name='ToggleAllFeatured'][value='false']",t).prop("checked",!0),productEdit.enableAllFeaturedStars("false",t),$(".jq-allYourRegions",t).removeClass("hid"),$(".jq-featuredFlag",t).css("display","none")):i.filter(".jq-featuredRegion").length&&$("input[name='ToggleAllFeatured'][value='false']",t).prop("checked",!0))):(i.not(".unclickable").addClass("selected").find("input:checkbox").prop("checked","checked"),u.text(MAIN.deselectAllText),typeof productEdit!="undefined"&&(i.filter(".jq-country").length?(productEdit.enableAllFeaturedStars("true",t),$(".jq-allYourRegions",t).removeClass("hid"),$(".jq-featuredFlag",t).css("display","none")):i.filter(".jq-featuredRegion").length&&$("input[name='ToggleAllFeatured'][value='true']",t).prop("checked",!0)))});$body.on("click",".msgSubmit",function(n){return n.preventDefault(),MSG.submit($(this))});$body.on("click",".msgSubmitReturnBinary",function(n){return n.preventDefault(),MSG.submit($(this),undefined,undefined,!0)});$body.on("click",".jq-refreshAdminBar",function(){ADMIN.refreshAdminBar()});$.fn.shiftSelectable=function(){var n,t=this;t.on("click",function(i){if(!n){n=this;return}if(i.shiftKey){var r=t.index(this),u=t.index(n);t.slice(Math.min(r,u),Math.max(r,u)+1).attr("checked",n.checked).trigger("change")}n=this})};foolproof=function(){};foolproof.is=function(n,t,i,r){if(r){var u=function(n){return n==null||n==undefined||n==""},f=u(n),e=u(i);if(f&&!e||e&&!f)return!0}var o=function(n){return+n==n&&n.length>0},s=function(n){var t=new RegExp(/(?=\d)^(?:(?!(?:10\D(?:0?[5-9]|1[0-4])\D(?:1582))|(?:0?9\D(?:0?[3-9]|1[0-3])\D(?:1752)))((?:0?[13578]|1[02])|(?:0?[469]|11)(?!\/31)(?!-31)(?!\.31)|(?:0?2(?=.?(?:(?:29.(?!000[04]|(?:(?:1[^0-6]|[2468][^048]|[3579][^26])00))(?:(?:(?:\d\d)(?:[02468][048]|[13579][26])(?!\x20BC))|(?:00(?:42|3[0369]|2[147]|1[258]|09)\x20BC))))))|(?:0?2(?=.(?:(?:\d\D)|(?:[01]\d)|(?:2[0-8])))))([-.\/])(0?[1-9]|[12]\d|3[01])\2(?!0000)((?=(?:00(?:4[0-5]|[0-3]?\d)\x20BC)|(?:\d{4}(?!\x20BC)))\d{4}(?:\x20BC)?)(?:$|(?=\x20\d)\x20))?((?:(?:0?[1-9]|1[012])(?::[0-5]\d){0,2}(?:\x20[aApP][mM]))|(?:[01]\d|2[0-3])(?::[0-5]\d){1,2})?$/);return t.test(n)},h=function(n){return n===!0||n===!1||n==="true"||n==="false"};s(n)?(n=Date.parse(n),i=Date.parse(i)):h(n)?(n=="false"&&(n=!1),i=="false"&&(i=!1),n=!!n,i=!!i):o(n)&&(n=parseFloat(n),i=parseFloat(i));switch(t){case"EqualTo":if(n==i)return!0;break;case"NotEqualTo":if(n!=i)return!0;break;case"GreaterThan":if(n>i)return!0;break;case"LessThan":if(n<i)return!0;break;case"GreaterThanOrEqualTo":if(n>=i)return!0;break;case"LessThanOrEqualTo":if(n<=i)return!0;break;case"RegExMatch":return new RegExp(i).test(n);case"NotRegExMatch":return!new RegExp(i).test(n)}return!1};foolproof.getId=function(n,t){var i=n.id.lastIndexOf("_")+1;return n.id.substr(0,i)+t.replace(/\./g,"_")};foolproof.getName=function(n,t){var i=n.name.lastIndexOf(".")+1;return n.name.substr(0,i)+t},function(){jQuery.validator.addMethod("is",function(n,t,i){var r=foolproof.getId(t,i.dependentproperty),u=i.operator,f=i.passonnull,e=document.getElementById(r).value;return foolproof.is(n,u,e,f)?!0:!1});jQuery.validator.addMethod("requiredif",function(n,t,i){var o=foolproof.getName(t,i.dependentproperty),s=i.dependentvalue,h=i.operator,e=i.pattern,r=document.getElementsByName(o),u=null,f;if(r.length>1){for(f=0;f!=r.length;f++)if(r[f].checked){u=r[f].value;break}u==null&&(u=!1)}else u=r[0].value;if(foolproof.is(u,h,s))if(e==null){if(n!=null&&n.toString().replace(/^\s\s*/,"").replace(/\s\s*$/,"")!="")return!0}else return new RegExp(e).test(n);else return!0;return!1});jQuery.validator.addMethod("requiredifempty",function(n,t,i){var u=foolproof.getId(t,i.dependentproperty),r=document.getElementById(u).value;if(r==null||r.toString().replace(/^\s\s*/,"").replace(/\s\s*$/,"")==""){if(n!=null&&n.toString().replace(/^\s\s*/,"").replace(/\s\s*$/,"")!="")return!0}else return!0;return!1});jQuery.validator.addMethod("requiredifnotempty",function(n,t,i){var u=foolproof.getId(t,i.dependentproperty),r=document.getElementById(u).value;if(r!=null&&r.toString().replace(/^\s\s*/,"").replace(/\s\s*$/,"")!=""){if(n!=null&&n.toString().replace(/^\s\s*/,"").replace(/\s\s*$/,"")!="")return!0}else return!0;return!1});var n=function(n,t,i){n.rules[t]=i;n.message&&(n.messages[t]=n.message)},t=$.validator.unobtrusive;t.adapters.add("requiredif",["dependentproperty","dependentvalue","operator","pattern"],function(t){var i={dependentproperty:t.params.dependentproperty,dependentvalue:t.params.dependentvalue,operator:t.params.operator,pattern:t.params.pattern};n(t,"requiredif",i)});t.adapters.add("is",["dependentproperty","operator","passonnull"],function(t){n(t,"is",{dependentproperty:t.params.dependentproperty,operator:t.params.operator,passonnull:t.params.passonnull})});t.adapters.add("requiredifempty",["dependentproperty"],function(t){n(t,"requiredifempty",{dependentproperty:t.params.dependentproperty})});t.adapters.add("requiredifnotempty",["dependentproperty"],function(t){n(t,"requiredifnotempty",{dependentproperty:t.params.dependentproperty})})}();newsLightbox={init:function(){var n="";$(document).on("click","a.js-news",function(t){t.preventDefault();$("body").addClass("lightboxOpen");var i=$("#NewsLightbox .jq-replace");typeof n=="undefined"||n===""?n=i.html():i.html(n);$.ajax({url:$(this).attr("href"),method:"GET",success:function(n){i.html(n);$("#NewsLightbox").height($(document).height());typeof ADMIN!="undefined"&&(ADMIN.hover(i),i.find(".hoverReveal1, .admin, #regionFlags").remove())}});$(document).on("click","#NewsLightbox",function(){$(".NewsLightboxClose").trigger("click")}).on("click","#NewsLightboxInner",function(n){n.stopPropagation()});return $("#NewsLightbox").css("padding-top",$(window).scrollTop()).height($(document).height()).fadeIn("medium"),!1});$(".NewsLightboxClose").on("click",function(n){n.stopPropagation();$("#NewsLightbox").fadeOut();$("body").removeClass("lightboxOpen")})}};country={init:function(){var n=$("#countryselect"),t=n.find(".countrylist"),i=n.width();n.width(400);countrylistwidth=t.width();countrylistwidth>i?(n.width(countrylistwidth+2),t.width(countrylistwidth+2)):(n.width(i+2),t.width(i+2));n.hoverIntent(function(){var n=$("ul:first",this);n.stop(!0,!0);clearTimeout(n.data("timeoutId"));usingOldIE?n.show():n.fadeIn("fast")},function(){var n=$("ul:first",this),t=setTimeout(function(){usingOldIE?n.hide():n.fadeOut("fast")},650);n.data("timeoutId",t)})},set:function(n){$("#currentflag").removeClass().addClass("flag flag-"+n);$("#countryselect ul").fadeOut("fast")}};$("#loginButContainer .loginButton").on("click",function(){$("#loginFormContainer").fadeIn("fast")});$(document).on("click",function(n){var t=$(n.target);t.is("#PartLogin")||t.parents("#PartLogin").is("#PartLogin")||t.is("#loginFormContainer")||t.parents("#loginFormContainer").is("#loginFormContainer")||$("#loginFormContainer").fadeOut("fast")});var shutters={init:function(n){$(".shutter",n).not(".dontopen").find("header").on("click",function(n){n.preventDefault();var t=$(this).parents(".shutter");return t.hasClass("open")?shutters.close(t):(shutters.close(t.siblings()),shutters.open(t)),!1})},open:function(n){n.addClass("open").find(".content").slideDown(400,"easeOutQuad",function(){var t=n.offset().top,e=n.height(),i=t+e,r=$(window).height(),u=$("#headerContainer").height()+50,f;(t<$(window).scrollTop()||i>$(window).scrollTop()+r)&&(f=Math.min(i-r+u,t-u),$("html, body").animate({scrollTop:f},{duration:600,easing:"easeOutQuad"}))})},close:function(n){n.removeClass("open").find(".content").slideUp()}},TABBOX={bootstrapCondensing:!1,displayThumbs:function(n){var t=n.offset();t&&(MAIN.loadThumbnails(n,t.top+n.height()),MAIN.displayThumbnails(n,t.top+n.height()))},changeTab:function(n,t){var e,t,i,r,c,o,s,u,h;if(n===null&&(n=$(".tabbox:not(.ko-tabbox):first")),typeof t=="string"){if(e=$(t,n).first(),e.length===0)return;if(t=(e[0].className.match(/(^|\s)tabindex(\d+)/)||[,,""])[2],!t)return;t=parseInt(t)}c=n.hasClass("js-Bootstrap");c?(i=$(".nav-tabs > li.active",n),r=$(".tab-pane.active",n)):(r=$(".tabboxOuter.tabouterindex"+t,n),$(".tabMenu li",n).removeClass("selected").each(function(){var n=$(this);n.data("tabindex")===t&&(i=n.addClass("selected"))}),$(".tabboxOuter",n).hide().removeClass("active"),r.show().addClass("active"),typeof ADMIN!="undefined"&&ADMIN.balanceColumns($(".jq-dataTableGroup",r)));var a=n.find(".tabMenu li"),l=a.length,f=$(MSG.current);t+1>=l?(o=$(".msgTabNext",f),o.length>0&&(o.hide(),$(".msgSubmit",f).show())):t+1<l&&(s=$(".msgTabNext:first",f),s.length>0&&(s.show(),$(".msgSubmit",f).hide()));TABBOX.setUrlHash(i);u=i.data("url");i.data("url","");h=function(){var n,u,t;for(TABBOX.displayThumbs(r),typeof usersList!="undefined"&&ADMIN.balanceColumns($(".historylist"),!0),n=0;n<TABBOX.onchange.length;n++)u=TABBOX.onchange[n],u(r);t=i.data("onfirstclick");typeof t!="undefined"&&t.length>0&&(i.data("onfirstclick",""),executeFunctionByName(t,window,r))};typeof u!="undefined"&&u&&u.length!==0?$.ajax({type:"get",url:u,success:function(n){r.find("div").html(n);MSG.initButtons(i);$(MSG.current).height($(document).height());h()}}):h()},hideEmpty:function(n){var i,t;$(".tabMenu li",n).show();i=!1;$(".tabboxOuter",n).each(function(n){var t=$(this),r,u;t.hasClass("never-hide")||(r=t.is(":hidden"),t.show(),u=t.find("*:not(.empty-ignore,.tabboxInner,:hidden)").length===0,r&&t.hide(),u&&(t.is(":visible")&&!t.hasClass("never-hide")&&(i=!0),$(".tabMenu li:eq("+n+")").hide()))});i&&(t=-1,$(".tabMenu li").each(function(n){return $.expr[":"].visible(this)?(t=n,!1):!0}),t>-1&&TABBOX.changeTab(n,t))},bootstrapCondense:function(n){if(!TABBOX.bootstrapCondensing){TABBOX.bootstrapCondensing=!0;var u=$(".nav-tabs",n),r=0,t=$(".tab-more",u),i=$(".menu-more",u),o=0;t.show();t.prevAll().each(function(){$(this).prependTo(i)});var s=u.children(),e=u.width(),f=i.children().first();for(s.each(function(){$(this).evenIfHidden(function(n){r+=n.outerWidth()})});r<=e&&f.length>0&&o<100;)f.insertBefore(t),r+=f.outerWidth(),f=i.children().first(),o++;r>e&&(r-t.outerWidth()<=e&&i.children().length===0?t.hide():t.prev().prependTo(i));i.children().length===0&&t.hide();TABBOX.bootstrapCondensing=!1}},oninit:[],onchange:[],init:function(n){n.find(".tabbox:not(.ko-tabbox)").each(function(){var t=$(this),r=$(".tabMenu li",t),u=r.length,f=$(".preselect",t),o=f.length>0,i,s=t.hasClass("js-Bootstrap"),e;if(t.addClass("HereItIs"),i=o?f.parents(".tabboxOuter"):$(".tabboxOuter:first",t),$(".tabMenu",t).find("li").each(function(n){$(this).data("tabindex",n).addClass("tabindex"+n)}),$(".tabboxOuter",t).each(function(n){$(this).data("tabouterindex",n).addClass("tabouterindex"+n)}),$(".tabMenu",t).find("li").not("#filedownload").each(function(){var n=$(this).find("span");n.text(n.text().charAt(0).toUpperCase()+n.text().slice(1))}),s){$("#tab-"+i.attr("id")).tab("show");$('a[data-toggle="tab"]').on("shown.bs.tab",function(n){TABBOX.changeTab($(n.target).closest(".tabbox"),0)});TABBOX.bootstrapCondense(t);$(window).on("resize",function(){TABBOX.bootstrapCondense(t)});if(typeof fileTabs!="undefined")t.on("shown.bs.tab",function(){fileTabs.clickTab()})}else{$(".tabboxOuter",t).hide();i.show().addClass("active");e=i.index();r.removeClass("selected").eq(e).addClass("selected");$(".tabMenu li:not(.hoverReveal1)",t).on("click",function(){var i=$(this),r=i.data("tabindex");i.hasClass("selected")||i.hasClass("actionBut")||(TABBOX.changeTab(t,r),r+1===u?($(".addNew .msgTabNext",n).hide(),$(".addNew .msgSubmit",n).show()):r+1<u&&($(".addNew .msgTabNext",n).show(),$(".addNew .msgSubmit",n).hide()))});$(".tabMenu.stacked",t).each(function(){var f=$(this),u=f.find(".nav-tabs:first-child"),o=t.find(".tabboxBody"),s=t.find(".actionBut").length>0,i=f.width(),n=0,r,e;for(s&&(i=i-t.find(".actionBut").outerWidth(!0)-20),u.find("li").not(".actionBut").each(function(){n=n+$(this).outerWidth(!0)});i>0&&n>i;){for(r=f.prepend('<ul class="tabMenuRow nav-tabs clearfix"><\/ul>').find(".nav-tabs:first-child");i>0&&n>i;)e=u.find("li").not(".actionBut").filter(":last").css("border-bottom",0),r.prepend(e),n=n-e.outerWidth(!0);console.log("Add height "+r.outerHeight(!0));o.css("padding-top","+="+r.outerHeight(!0));u=r;n=0;u.find("li").not(".actionBut").each(function(){n=n+$(this).outerWidth(!0)})}if(typeof fileTabs!="undefined")t.on("click","ul.nav-tabs li",function(){fileTabs.clickTab()})});t.parents(".addNew").each(function(){var i=$(".tabMenu",this);$(".msgTabNext").on("click",function(){for(var r=i.find("li"),u=r.length,n=r.filter(".selected").data("tabindex");r.filter(".tabindex"+ ++n+":visible").length===0&&n<u;);n<u&&TABBOX.changeTab(t,n)});$(".msgTabBack").on("click",function(){for(var r=i.find("li"),n=r.filter(".selected").data("tabindex");r.filter(".tabindex"+--n+":visible").length===0&&n>-1;);n>-1&&TABBOX.changeTab(t,n)});$(".tabMenu li:not(.hoverReveal1)").on("click",function(){var t=i.find("li:visible"),r=t.length,u=t.index(t.filter(".selected"));u+1===r?($(".msgTabNext",n).hide(),$(".msgSubmit",n).show()):($(".msgTabNext",n).show(),$(".msgSubmit",n).hide())})})}$(function(){if(i.offset()){var n=i.offset().top+i.height();MAIN.displayThumbnails(i,n);MAIN.loadThumbnails(i,n)}});$(".tabbox.hasThumbs").find(".tabboxOuter",t).on("scroll",function(){var n=$(this),i=t.offset().top+n.height();MAIN.displayThumbnails(n,i);MAIN.loadThumbnails(n,i)})});setTimeout(function(){while(TABBOX.oninit.length){var n=TABBOX.oninit.splice(0,1)[0];n()}},250)},hideContent:function(n){$(".tabboxInner",n).hide();$(".jq-filter-no-results",$(catFilter.tabsSelector)).toggle($(".jq-filter:visible:first",$(catFilter.tabsSelector)).length===0)},showContent:function(n){$(".tabboxInner",n).fadeIn("50");$(".jq-filter-no-results",$(catFilter.tabsSelector)).toggle($(".jq-filter:visible:first",$(catFilter.tabsSelector)).length===0)},setUrlHash:function(n){var t=n.data("tab"),i,r;typeof t=="undefined"&&n.hasClass("tab-more")&&(t=n.find(".active").data("tab"));typeof t!="undefined"&&(i=$.param({tab:t}),r=location.pathname+"#?"+i.toString(),history.replaceState({},"",r))},hashChange:function(n){var r=TABBOX.getTabFromHash(n)||$(".tabboxInner.preselect",n).parent()||$(".tabboxOuter:first",n),t,i;r!==null&&(t=$(".tabMenu").find($("li[data-tab='"+r.data("tab")+"']")),i=t.find("a"),i.length?i.trigger("click"):t.trigger("click"))},getTabFromHash:function(n){var t=jHash.val("tab");return typeof t!="undefined"&&t!==""?$(".tabboxOuter[data-tab="+t+"]",n):null}},toolTips={time:250,hideDelay:500,placeholderText:"",init:function(n){toolTips.placeholderText=n},toolTipOff:function(n){n.addClass("tooltipoff")},toolTip:function(n,t,i){n.addClass("tooltip-trigger");var e=10,r=null,u=!1,f=!1,o=t.hasClass("newsTranslation"),s=t.hasClass("msgTranslation"),h=t.hasClass("tip-right"),c=!t.hasClass("tip-non-hoverable");t.css("opacity",0);(o||s)&&t.prepend("<div class=newsTransHead><span>"+toolTips.placeholderText+"<\/span><\/div>");n.add(t).removeClass("tooltipoff").not(".triggered").addClass("triggered").on("mouseover",function(){var s=$(this),l,a,v,y;s.hasClass("tooltipoff")||(c&&r&&clearTimeout(r),u||f)||(typeof i!="undefined"&&i(s,t),u=!0,y=s.offset(),o?(console.log("isNewsTranslation"),l=n.position().top+e+10,console.log("tipTop = "+l),a=s.width()+12,v=s.innerWidth()):h?(console.log("isTipRight"),l=n.position().top-26,a=n.position().left+n.width()+20,v="200px"):n.height()==0?(l=y.top+s.height(),a=y.left):(l=n.position().top+s.height()+10,a=n.position().left),$(".tipContent").not(t).css("display","none"),t.css({top:l,left:a,width:v,display:"block"}),t.animate({opacity:1},toolTips.time,"swing",function(){u=!1;f=!0}).animate({top:"+="+e+"px",opacity:1},toolTips.time,"swing",function(){u=!1;f=!0}))}).on("mouseout",function(){$(this).hasClass("tooltipoff")||(r&&clearTimeout(r),r=setTimeout(function(){r=null;t.animate({top:"+="+e+"px",opacity:0},toolTips.time,"swing",function(){t.css("display","none");f=!1})},toolTips.hideDelay))})},update:function(n,t){var i=n.siblings(".tipContent");i.html(t).css("font-weight","bold")},reset:function(n){var t=n.siblings(".tipContent");setTimeout(function(){t.html(t.data("text")).css("font-weight","normal")},toolTips.time+toolTips.hideDelay)},toolTips:function(n){var t=n instanceof jQuery?n:$(n);t.each(function(){var n=$(this);n.hasClass("jq-tipTrigger")?toolTips.toolTip(n,n.siblings(".tipContent")):toolTips.toolTips(n.find(".jq-tipTrigger"))})}};jQuery.fn.contentReveal=function(n){if(typeof n!="undefined"&&n&&$(n).length>0){n.fadeOut();var t=$(this).show().css({opacity:0}).replaceAll(n);try{t.animate({opacity:1},{queue:!1,duration:300,easing:"easeInCirc"})}catch(i){return t.css({opacity:1})}return t}return $(this).hide().css({opacity:0}).slideDown(300,"easeOutCirc").animate({opacity:1},300,"easeInCirc")};jQuery.fn.contentHide=function(n,t){return typeof n=="undefined"&&(n=!0),$(this).animate({opacity:0},{duration:200,easing:"easeOutCirc"}).slideUp(300,"easeOutCirc",function(){n?$(this).remove():$(this).hide();typeof t=="function"&&t()})};jQuery.fn.scrollToElement=function(n){var t=$(this),i;return!t||t.length==0?t:(typeof n=="undefined"&&(n={}),typeof n.duration=="undefined"&&(n.duration=600),typeof n.delay=="undefined"&&(n.delay=0),typeof n.leeway=="undefined"&&(n.leeway=50),i=function(){$("html, body").animate({scrollTop:t.offset().top-n.leeway},{duration:n.duration,easing:"easeOutQuad"})},n.delay==0?i():setTimeout(i,n.delay),t)};jQuery.fn.loadingStart=function(){return $element.addclass("loading")};videoPlayer={downloadText:"Download",brokenThumbUrl:"",init:function(n,t,i){typeof t!="undefined"&&(videoPlayer.downloadText=t);typeof i!="undefined"&&(videoPlayer.brokenThumbUrl=i);videoPlayer.addPlayButton($("body"));$("#thumbPlayClose,#thumbPlayContainer").on("click",function(n){return n.preventDefault(),$("#thumbPlayContainer").fadeOut("fast",function(){$("#thumbPlayInner").empty()}),!1});$(window).on("resize",function(){videoPlayer.thumbPlayerResize()})},addPlayButton:function(n){if(n.closest("#msgContainer").length>0){var t=n.find("a.thumbPlay:not(.thumbProcessed)");return t.each(function(){var n=$(this),t=n.children(".imagingThumb").data("videosrc");n.addClass("thumbProcessed").attr("href",t).attr("target","_blank")}),!1}n.find("a.thumbPlay:not(.thumbProcessed)").addClass("thumbProcessed").append("<div class=thumbPlayButton><\/div>").on("click",function(n){n.preventDefault();var t=$(this).find("img").data("videosrc"),i=$("#thumbPlayTemplate").tmpl({source:t});return $("#thumbPlayInner").empty().append(i),videoPlayer.thumbPlayerResize(),$("#thumbPlayContainer").fadeIn(),$("#thumbPlayClose").trigger("focus"),!1});videoPlayer.collapseSameFiles(n)},thumbPlayerResize:function(){var n=$(window).width(),t=$(window).height(),i,r,u=t/n;u>.75?(i=n*.8,r=n*.6):(r=t*.8,i=t*1.0666666);$("#thumbPlayContainer").css({width:n,height:$(document).height()});$("#thumbPlayContainerInner").css({"margin-top":$(window).scrollTop()});$("#thumbPlayContainer iframe").css({width:i,height:r});$("#thumbPlayContainerInner").css({"padding-left":(n-i)/2,"padding-top":(t-r)/2})},collapseSameFiles:function(n){n.find(".tn.jq-allfilessame").each(function(){var t=$(this).parent(),u=t.find(".externalLink").length>0,n=u?t.find(".tn.externalLink:last"):t.find(".tn:not(.jq-allfilessame):first"),i=t.find(".tn:not(.jq-allfilessame)").not(n),r;if(i.length>0)n.addClass("collapsed");else return;r=function(t,i){var u=t.find(".imagingThumb"),e,r,f;i?u.applyTooltipToItems():u.hide();e=t.find("label").prop("title",u.prop("title")).applyTooltipToItems();t.find("input").after("<span class=thumbDescription>"+t.find(".thumbDescription").text()+"<\/span>");$(".jq-thumbdl",t).remove();r=t.find("a").addClass("jq-collapsed").prop("title",videoPlayer.downloadText);e.find(".ft").append($('<i class="fa fa-download">')).appendTo(r);i?(f=r.clone(),f.find(".imagingThumb").hide(),n.find(".thumbActions").append(t.find(".thumbOptions").append(f)),r.removeClass("jq-collapsed").find(".ft").remove(),t.find(".thumbDescription:first").remove()):n.find(".thumbActions").append(t.find(".thumbOptions").append(r))};u||r(n,!0);i.each(function(){r($(this),!1)});i.remove()})},vimeoThumbCallback:function(n,t){typeof t=="undefined"&&(t=0);var i=$(".vimeo-"+n.video_id);if(i.length>0){i.attr("src",n.thumbnail_url);return}if(t++>5){MAIN.isDebug&&alert("Could not find vimeo video src with id "+n.video_id);return}setTimeout(function(){videoPlayer.vimeoThumbCallback(n,t)},250)},vimeoThumbPlaceholder:function(n,t){var r=t.attr("class"),u=/vimeoExt-(\d*)/g.exec(r),i=$(".vimeo-"+u[1]);if(i.length>0){i.attr("src",videoPlayer.brokenThumbUrl);i.siblings(".thumbPlayButton").remove();return}}}