PageSourceSearch

https://www.notiziemigranti.it/news/wp-content/cache/autoptimize/j…ptimize_71749e0eaad36689b8e477cdb5410cf6.js

js notiziemigranti.it collected 2026-10-10 02:00:16 UTC 253,226 bytes, 2,127 lines download raw bytes

1/*! jQuery Migrate v3.4.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */
2"undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,window)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),window):t(jQuery,window)}(function(s,n){"use strict";function e(e){return 0<=function(e,t){for(var r=/^(\d+)\.(\d+)\.(\d+)/,n=r.exec(e)||[],o=r.exec(t)||[],a=1;a<=3;a++){if(+o[a]<+n[a])return 1;if(+n[a]<+o[a])return-1}return 0}(s.fn.jquery,e)}s.migrateVersion="3.4.1";var t=Object.create(null);s.migrateDisablePatches=function(){for(var e=0;e<arguments.length;e++)t[arguments[e]]=!0},s.migrateEnablePatches=function(){for(var e=0;e<arguments.length;e++)delete t[arguments[e]]},s.migrateIsPatchEnabled=function(e){return!t[e]},n.console&&n.console.log&&(s&&e("3.0.0")&&!e("5.0.0")||n.console.log("JQMIGRATE: jQuery 3.x-4.x REQUIRED"),s.migrateWarnings&&n.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),n.console.log("JQMIGRATE: Migrate is installed"+(s.migrateMute?"":" with logging active")+", version "+s.migrateVersion));var o={};function u(e,t){var r=n.console;!s.migrateIsPatchEnabled(e)||s.migrateDeduplicateWarnings&&o[t]||(o[t]=!0,s.migrateWarnings.push(t+" ["+e+"]"),r&&r.warn&&!s.migrateMute&&(r.warn("JQMIGRATE: "+t),s.migrateTrace&&r.trace&&r.trace()))}function r(e,t,r,n,o){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return u(n,o),r},set:function(e){u(n,o),r=e}})}function a(e,t,r,n,o){var a=e[t];e[t]=function(){return o&&u(n,o),(s.migrateIsPatchEnabled(n)?r:a||s.noop).apply(this,arguments)}}function c(e,t,r,n,o){if(!o)throw new Error("No warning message provided");return a(e,t,r,n,o),0}function i(e,t,r,n){return a(e,t,r,n),0}s.migrateDeduplicateWarnings=!0,s.migrateWarnings=[],void 0===s.migrateTrace&&(s.migrateTrace=!0),s.migrateReset=function(){o={},s.migrateWarnings.length=0},"BackCompat"===n.document.compatMode&&u("quirks","jQuery is not compatible with Quirks Mode");var d,l,p,f={},m=s.fn.init,y=s.find,h=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,g=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,v=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;for(d in i(s.fn,"init",function(e){var t=Array.prototype.slice.call(arguments);return s.migrateIsPatchEnabled("selector-empty-id")&&"string"==typeof e&&"#"===e&&(u("selector-empty-id","jQuery( '#' ) is not a valid selector"),t[0]=[]),m.apply(this,t)},"selector-empty-id"),s.fn.init.prototype=s.fn,i(s,"find",function(t){var r=Array.prototype.slice.call(arguments);if("string"==typeof t&&h.test(t))try{n.document.querySelector(t)}catch(e){t=t.replace(g,function(e,t,r,n){return"["+t+r+'"'+n+'"]'});try{n.document.querySelector(t),u("selector-hash","Attribute selector with '#' must be quoted: "+r[0]),r[0]=t}catch(e){u("selector-hash","Attribute selector with '#' was not fixed: "+r[0])}}return y.apply(this,r)},"selector-hash"),y)Object.prototype.hasOwnProperty.call(y,d)&&(s.find[d]=y[d]);c(s.fn,"size",function(){return this.length},"size","jQuery.fn.size() is deprecated and removed; use the .length property"),c(s,"parseJSON",function(){return JSON.parse.apply(null,arguments)},"parseJSON","jQuery.parseJSON is deprecated; use JSON.parse"),c(s,"holdReady",s.holdReady,"holdReady","jQuery.holdReady is deprecated"),c(s,"unique",s.uniqueSort,"unique","jQuery.unique is deprecated; use jQuery.uniqueSort"),r(s.expr,"filters",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),r(s.expr,":",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos"),e("3.1.1")&&c(s,"trim",function(e){return null==e?"":(e+"").replace(v,"$1")},"trim","jQuery.trim is deprecated; use String.prototype.trim"),e("3.2.0")&&(c(s,"nodeName",function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},"nodeName","jQuery.nodeName is deprecated"),c(s,"isArray",Array.isArray,"isArray","jQuery.isArray is deprecated; use Array.isArray")),e("3.3.0")&&(c(s,"isNumeric",function(e){var t=typeof e;return("number"==t||"string"==t)&&!isNaN(e-parseFloat(e))},"isNumeric","jQuery.isNumeric() is deprecated"),s.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){f["[object "+t+"]"]=t.toLowerCase()}),c(s,"type",function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?f[Object.prototype.toString.call(e)]||"object":typeof e},"type","jQuery.type is deprecated"),c(s,"isFunction",function(e){return"function"==typeof e},"isFunction","jQuery.isFunction() is deprecated"),c(s,"isWindow",function(e){return null!=e&&e===e.window}
2,"isWindow","jQuery.isWindow() is deprecated")),s.ajax&&(l=s.ajax,p=/(=)\?(?=&|$)|\?\?/,i(s,"ajax",function(){var e=l.apply(this,arguments);return e.promise&&(c(e,"success",e.done,"jqXHR-methods","jQXHR.success is deprecated and removed"),c(e,"error",e.fail,"jqXHR-methods","jQXHR.error is deprecated and removed"),c(e,"complete",e.always,"jqXHR-methods","jQXHR.complete is deprecated and removed")),e},"jqXHR-methods"),e("4.0.0")||s.ajaxPrefilter("+json",function(e){!1!==e.jsonp&&(p.test(e.url)||"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&p.test(e.data))&&u("jsonp-promotion","JSON-to-JSONP auto-promotion is deprecated")}));var j=s.fn.removeAttr,b=s.fn.toggleClass,w=/\S+/g;function x(e){return e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}i(s.fn,"removeAttr",function(e){var r=this,n=!1;return s.each(e.match(w),function(e,t){s.expr.match.bool.test(t)&&r.each(function(){if(!1!==s(this).prop(t))return!(n=!0)}),n&&(u("removeAttr-bool","jQuery.fn.removeAttr no longer sets boolean properties: "+t),r.prop(t,!1))}),j.apply(this,arguments)},"removeAttr-bool"),i(s.fn,"toggleClass",function(t){return void 0!==t&&"boolean"!=typeof t?b.apply(this,arguments):(u("toggleClass-bool","jQuery.fn.toggleClass( boolean ) is deprecated"),this.each(function(){var e=this.getAttribute&&this.getAttribute("class")||"";e&&s.data(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==t&&s.data(this,"__className__")||"")}))},"toggleClass-bool");var Q,A,R=!1,C=/^[a-z]/,N=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;s.swap&&s.each(["height","width","reliableMarginRight"],function(e,t){var r=s.cssHooks[t]&&s.cssHooks[t].get;r&&(s.cssHooks[t].get=function(){var e;return R=!0,e=r.apply(this,arguments),R=!1,e})}),i(s,"swap",function(e,t,r,n){var o,a,i={};for(a in R||u("swap","jQuery.swap() is undocumented and deprecated"),t)i[a]=e.style[a],e.style[a]=t[a];for(a in o=r.apply(e,n||[]),t)e.style[a]=i[a];return o},"swap"),e("3.4.0")&&"undefined"!=typeof Proxy&&(s.cssProps=new Proxy(s.cssProps||{},{set:function(){return u("cssProps","jQuery.cssProps is deprecated"),Reflect.set.apply(this,arguments)}})),e("4.0.0")?(A={animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},"undefined"!=typeof Proxy?s.cssNumber=new Proxy(A,{get:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.get.apply(this,arguments)},set:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.set.apply(this,arguments)}}):s.cssNumber=A):A=s.cssNumber,Q=s.fn.css,i(s.fn,"css",function(e,t){var r,n,o=this;return e&&"object"==typeof e&&!Array.isArray(e)?(s.each(e,function(e,t){s.fn.css.call(o,e,t)}),this):("number"==typeof t&&(r=x(e),n=r,C.test(n)&&N.test(n[0].toUpperCase()+n.slice(1))||A[r]||u("css-number",'Number-typed values are deprecated for jQuery.fn.css( "'+e+'", value )')),Q.apply(this,arguments))},"css-number");var S,P,k,H,E=s.data;i(s,"data",function(e,t,r){var n,o,a;if(t&&"object"==typeof t&&2===arguments.length){for(a in n=s.hasData(e)&&E.call(this,e),o={},t)a!==x(a)?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+a),n[a]=t[a]):o[a]=t[a];return E.call(this,e,o),t}return t&&"string"==typeof t&&t!==x(t)&&(n=s.hasData(e)&&E.call(this,e))&&t in n?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+t),2<arguments.length&&(n[t]=r),n[t]):E.apply(this,arguments)},"data-camelCase"),s.fx&&(k=s.Tween.prototype.run,H=function(e){return e},i(s.Tween.prototype,"run",function(){1<s.easing[this.easing].length&&(u("easing-one-arg","'jQuery.easing."+this.easing.toString()+"' should use only one argument"),s.easing[this.easing]=H),k.apply(this,arguments)},"easing-one-arg"),S=s.fx.interval,P="jQuery.fx.interval is deprecated",n.requestAnimationFrame&&Object.defineProperty(s.fx,"interval",{configurable:!0,enumerable:!0,get:function(){return n.document.hidden||u("fx-interval",P),s.migrateIsPatchEnabled("fx-interval")&&void 0===S?13:S},set:function(e){u("fx-interval",P),S=e}}));var M=s.fn.load,q=s.event.add,O=s.event.fix;s.event.props=[],s.event.fixHooks={}
2,r(s.event.props,"concat",s.event.props.concat,"event-old-patch","jQuery.event.props.concat() is deprecated and removed"),i(s.event,"fix",function(e){var t,r=e.type,n=this.fixHooks[r],o=s.event.props;if(o.length){u("event-old-patch","jQuery.event.props are deprecated and removed: "+o.join());while(o.length)s.event.addProp(o.pop())}if(n&&!n._migrated_&&(n._migrated_=!0,u("event-old-patch","jQuery.event.fixHooks are deprecated and removed: "+r),(o=n.props)&&o.length))while(o.length)s.event.addProp(o.pop());return t=O.call(this,e),n&&n.filter?n.filter(t,e):t},"event-old-patch"),i(s.event,"add",function(e,t){return e===n&&"load"===t&&"complete"===n.document.readyState&&u("load-after-event","jQuery(window).on('load'...) called after load event occurred"),q.apply(this,arguments)},"load-after-event"),s.each(["load","unload","error"],function(e,t){i(s.fn,t,function(){var e=Array.prototype.slice.call(arguments,0);return"load"===t&&"string"==typeof e[0]?M.apply(this,e):(u("shorthand-removed-v3","jQuery.fn."+t+"() is deprecated"),e.splice(0,0,t),arguments.length?this.on.apply(this,e):(this.triggerHandler.apply(this,e),this))},"shorthand-removed-v3")}),s.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,r){c(s.fn,r,function(e,t){return 0<arguments.length?this.on(r,null,e,t):this.trigger(r)},"shorthand-deprecated-v3","jQuery.fn."+r+"() event shorthand is deprecated")}),s(function(){s(n.document).triggerHandler("ready")}),s.event.special.ready={setup:function(){this===n.document&&u("ready-event","'ready' event is deprecated")}},c(s.fn,"bind",function(e,t,r){return this.on(e,null,t,r)},"pre-on-methods","jQuery.fn.bind() is deprecated"),c(s.fn,"unbind",function(e,t){return this.off(e,null,t)},"pre-on-methods","jQuery.fn.unbind() is deprecated"),c(s.fn,"delegate",function(e,t,r,n){return this.on(t,e,r,n)},"pre-on-methods","jQuery.fn.delegate() is deprecated"),c(s.fn,"undelegate",function(e,t,r){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",r)},"pre-on-methods","jQuery.fn.undelegate() is deprecated"),c(s.fn,"hover",function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)},"pre-on-methods","jQuery.fn.hover() is deprecated");function T(e){var t=n.document.implementation.createHTMLDocument("");return t.body.innerHTML=e,t.body&&t.body.innerHTML}var F=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi;s.UNSAFE_restoreLegacyHtmlPrefilter=function(){s.migrateEnablePatches("self-closed-tags")},i(s,"htmlPrefilter",function(e){var t,r;return(r=(t=e).replace(F,"<$1></$2>"))!==t&&T(t)!==T(r)&&u("self-closed-tags","HTML tags must be properly nested and closed: "+t),e.replace(F,"<$1></$2>")},"self-closed-tags"),s.migrateDisablePatches("self-closed-tags");var D,W,_,I=s.fn.offset;return i(s.fn,"offset",function(){var e=this[0];return!e||e.nodeType&&e.getBoundingClientRect?I.apply(this,arguments):(u("offset-valid-elem","jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)},"offset-valid-elem"),s.ajax&&(D=s.param,i(s,"param",function(e,t){var r=s.ajaxSettings&&s.ajaxSettings.traditional;return void 0===t&&r&&(u("param-ajax-traditional","jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),t=r),D.call(this,e,t)},"param-ajax-traditional")),c(s.fn,"andSelf",s.fn.addBack,"andSelf","jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),s.Deferred&&(W=s.Deferred,_=[["resolve","done",s.Callbacks("once memory"),s.Callbacks("once memory"),"resolved"],["reject","fail",s.Callbacks("once memory"),s.Callbacks("once memory"),"rejected"],["notify","progress",s.Callbacks("memory"),s.Callbacks("memory")]],i(s,"Deferred",function(e){var a=W(),i=a.promise();function t(){var o=arguments;return s.Deferred(function(n){s.each(_,function(e,t){var r="function"==typeof o[e]&&o[e];a[t[1]](function(){var e=r&&r.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[t[0]+"With"](this===i?n.promise():this,r?[e]:arguments)})}),o=null}).promise()}return c(a,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),c(i,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),e&&e.call(a,a),a},"deferred-pipe"),s.Deferred.exceptionHook=W.exceptionHook),s});
3jQuery(document).ready(function(){jQuery("body").on("click",".open_in_new_tab_class",function(){return"_blank"==jQuery(".open_in_new_tab_class").attr("target")?window.open(jQuery(this).attr("href"),"_blank").focus():window.open(jQuery(this).attr("href"),"_parent").focus(),!1}),jQuery("body").on("click",".anc_6310_number_counter_info",function(){jQuery("body").prepend('<div id="myanc_6310_modal" class="anc_6310_modal"><div class="anc_6310_modal-content"><span class="anc-6310-close">&times;</span><div class="anc_6310_modal_body_picture"><img src="" id="anc_6310_modal_img" /></div><div class="anc_6310_modal_body_content"><div id="anc_6310_modal_designation"></div><div id="anc_6310_modal_name"></div><div id="anc_6310_modal_details"></div><br><br><div class="anc_6310_modal_social"></div></div><br class="anc_6310_clear" /></div><br class="anc-6310-clear" /></div>');
3var s=parseInt(jQuery(this).attr("number-counterid"));parseInt(jQuery(this).attr("link-id"))>0?"1"==jQuery(this).attr("target")?window.open(jQuery(this).attr("link-url"),"_blank").focus():window.open(jQuery(this).attr("link-url"),"_parent").focus():s>0&&(jQuery("#anc_6310_loading").show(),jQuery("body").css({overflow:"hidden"}),$.ajax({type:"GET",dataType:"json",url:anc_6310_ajax_object.anc_6310_ajax_url,data:{action:"anc_6310_number_counter_details",ids:s},success:function(s){jQuery("#anc_6310_loading").hide(),jQuery(".anc_6310_modal-content").css({"animation-name":"anc-6310-animate"+s.styledata.effect}),jQuery("#myanc_6310_modal").show(),jQuery("#anc_6310_modal_img").attr("src",s.styledata.image),jQuery("#anc_6310_modal_img").attr("image_hover",s.styledata.image_hover),jQuery("#anc_6310_modal_designation").text(s.styledata.designation),jQuery("#anc_6310_modal_name").text(s.styledata.name),jQuery(".anc_6310_modal_social").html(""),jQuery(".anc_6310_modal_social").append(s.link),jQuery("#anc_6310_modal_details").html(s.styledata.profile_details.replace(/\n/g,"<br>"))}}))})});
4!function(){if("function"==typeof window.CustomEvent)return!1;function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}e.prototype=window.Event.prototype,window.CustomEvent=e}(),function(){var e=function(e){return new RegExp("(^| )"+e+"( |$)")},t=function(e,t,n){for(var i=0;i<e.length;i++)t.call(n,e[i])};function n(e){this.element=e}n.prototype={add:function(){t(arguments,function(e){this.contains(e)||(this.element.className+=this.element.className.length>0?" "+e:e)},this)},remove:function(){t(arguments,function(t){this.element.className=this.element.className.replace(e(t),"")},this)},toggle:function(e){return this.contains(e)?(this.remove(e),!1):(this.add(e),!0)},contains:function(t){return e(t).test(this.element.className)},replace:function(e,t){this.remove(e),this.add(t)}},"classList"in Element.prototype||Object.defineProperty(Element.prototype,"classList",{get:function(){return new n(this)}}),window.DOMTokenList&&null==DOMTokenList.prototype.replace&&(DOMTokenList.prototype.replace=n.prototype.replace)}(),function(e,t){var n=new function(){this.cookiesAccepted=null,this.noticeContainer=null,this.setStatus=function(n){var i=this,o="",s="",c=new Date,a=new Date;cnArgs.onScroll&&e.removeEventListener("scroll",this.handleScroll),"accept"===n?(n="true",a.setTime(parseInt(c.getTime())+1e3*parseInt(cnArgs.cookieTime))):(n="false",a.setTime(parseInt(c.getTime())+1e3*parseInt(cnArgs.cookieTimeRejected))),cnArgs.globalCookie&&(o=this.getDomain(t.location.hostname)),"localhost"===t.location.hostname&&(s=t.location.pathname.split("/")[1]);var r="";"https:"===t.location.protocol&&(r=";secure"),t.cookie=cnArgs.cookieName+"="+n+";expires="+a.toUTCString()+";path=/"+s+";domain="+o+r,this.cookiesAccepted="true"===n;var d=new CustomEvent("setCookieNotice",{detail:{value:n,time:c,expires:a,data:cnArgs}});if(t.dispatchEvent(d),this.setBodyClass(["cookies-set","true"===n?"cookies-accepted":"cookies-refused"]),this.hideCookieNotice(),"automatic"===cnArgs.revokeCookiesOpt&&(this.noticeContainer.addEventListener("animationend",function e(){i.noticeContainer.removeEventListener("animationend",e),i.showRevokeNotice()}),this.noticeContainer.addEventListener("webkitAnimationEnd",function e(){i.noticeContainer.removeEventListener("webkitAnimationEnd",e),i.showRevokeNotice()})),cnArgs.redirection&&("true"===n&&null===this.cookiesAccepted||n!==this.cookiesAccepted&&null!==this.cookiesAccepted)){var l=e.location.protocol+"//",h=e.location.host+"/"+e.location.pathname;cnArgs.cache?(l=l+h.replace("//","/")+(""===e.location.search?"?":e.location.search+"&")+"cn-reloaded=1"+e.location.hash,e.location.href=l):(l=l+h.replace("//","/")+e.location.search+e.location.hash,e.location.reload(!0))}else;},this.getDomain=function(e){new RegExp(/https?:\/\//).test(e)||(e="http://"+e);var t=new URL(e).hostname.split(".");return t.slice(0).slice(-(4===t.length?3:2)).join(".")},this.getStatus=function(e){var n=("; "+t.cookie).split("; cookie_notice_accepted=");if(2===n.length){var i=n.pop().split(";").shift();return e?"true"===i:i}return null},this.showCookieNotice=function(){var e=this,n=new CustomEvent("showCookieNotice",{detail:{data:cnArgs}});t.dispatchEvent(n),this.noticeContainer.classList.remove("cookie-notice-hidden"),this.noticeContainer.classList.add("cn-animated"),this.noticeContainer.classList.add("cookie-notice-visible"),this.noticeContainer.addEventListener("animationend",function t(){e.noticeContainer.removeEventListener("animationend",t),e.noticeContainer.classList.remove("cn-animated")}),this.noticeContainer.addEventListener("webkitAnimationEnd",function t(){e.noticeContainer.removeEventListener("webkitAnimationEnd",t),e.noticeContainer.classList.remove("cn-animated")})},this.hideCookieNotice=function(){var e=this,n=new CustomEvent("hideCookieNotice",{detail:{data:cnArgs}});t.dispatchEvent(n),this.noticeContainer.classList.add("cn-animated"),this.noticeContainer.classList.remove("cookie-notice-visible"),this.noticeContainer.addEventListener("animationend",function t(){e.noticeContainer.removeEventListener("animationend",t),e.noticeContainer.classList.remove("cn-animated"),e.noticeContainer.classList.add("cookie-notice-hidden")}),this.noticeContainer.addEventListener("webkitAnimationEnd",function t(){e.noticeContainer.removeEventListener("webkitAnimationEnd",t),e.noticeContainer.classList.remove("cn-animated"),e.noticeContainer.classList.add("cookie-notice-hidden")})},this.showRevokeNotice=function(){var e=this,n=new CustomEvent("showRevokeNotice",{detail:{data:cnArgs}});t.dispatchEvent(n),this.noticeContainer.classList.remove("cookie-revoke-hidden"),this.noticeContainer.classList.add("cn-animated"),this.noticeContainer.classList.add("cookie-revoke-visible"),this.noticeContainer.addEventListener("animationend",function t(){e.noticeContainer.removeEventListener("animationend",t),e.noticeContainer.classList.remove("cn-animated")}),this.noticeContainer.addEventListener("webkitAnimationEnd",function t(){e.noticeContainer.removeEventListener("webkitAnimationEnd",t),e.noticeContainer.classList.remove("cn-animated")})},this.hideRevokeNotice=function(){var e=this,n=new CustomEvent("hideRevokeNotice",{detail:{data:cnArgs}});t.dispatchEvent(n),this.noticeContainer.classList.add("cn-animated"),this.noticeContainer.classList.remove("cookie-revoke-visible"),this.noticeContainer.addEventListener("animationend",function t(){e.noticeContainer.removeEventListener("animationend",t),e.noticeContainer.classList.remove("cn-animated"),e.noticeContainer.classList.add("cookie-revoke-hidden")}),this.noticeContainer.addEventListener("webkitAnimationEnd",function t(){e.noticeContainer.removeEventListener("webkitAnimationEnd",t),e.noticeContainer.classList.remove("cn-animated"),e.noticeContainer.classList.add("cookie-revoke-hidden")})},this.setBodyClass=function(e){t.body.classList.remove("cookies-revoke"),t.body.classList.remove("cookies-accepted"),t.body.classList.remove("cookies-refused"),t.body.classList.remove("cookies-set"),t.body.classList.remove("cookies-not-set");for(var n=0;n<e.length;n++)t.body.classList.add(e[n])},this.handleScroll=function(){(e.pageYOffset||(t.documentElement||t.body.parentNode||t.body).scrollTop)>parseInt(cnArgs.onScrollOffset)&&this.setStatus("accept")},this.getClosest=function(e,n){for(Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length;--n>=0&&t.item(n)!==this;);return n>-1});e&&e!==t;e=e.parentNode)if(e.matches(n))return e;return null},this.inIframe=function(){try{return e.self!==e.top}catch(e){return!0}},this.init=function(){var n=this;if(!0!==this.inIframe()&&(this.cookiesAccepted=this.getStatus(!0),this.noticeContainer=t.getElementById("cookie-notice"),this.noticeContainer)){var i=t.getElementsByClassName("cn-set-cookie"),o=t.getElementsByClassName("cn-revoke-cookie"),s=t.getElementById("cn-more-info"),c=t.getElementById("cn-close-notice");this.noticeContainer.classList.add("cn-effect-"+cnArgs.hideEffect),null===this.cookiesAccepted?(cnArgs.onScroll&&e.addEventListener("scroll",function(e){n.handleScroll()}),cnArgs.onClick&&e.addEventListener("click",function(e){null===n.getClosest(e.target,"#cookie-notice")&&n.setStatus("accept")},!0),this.setBodyClass(["cookies-not-set"]),this.showCookieNotice()):(this.setBodyClass(["cookies-set",!0===this.cookiesAccepted?"cookies-accepted":"cookies-refused"]),cnArgs.revokeCookies&&"automatic"===cnArgs.revokeCookiesOpt&&this.showRevokeNotice());for(var a=0;a<i.length;a++)i[a].addEventListener("click",function(e){e.preventDefault(),e.stopPropagation(),n.setStatus(this.dataset.cookieSet)});null!==s&&s.addEventListener("click",function(t){var n=this.dataset.linkUrl||this.getAttribute("href"),i=this.dataset.linkTarget||this.getAttribute("target")||"_self";n&&(t.preventDefault(),t.stopPropagation(),e.open(n,i))}),null!==c&&(c.addEventListener("keydown",function(e){"Enter"!==e.key&&" "!==e.key&&"Spacebar"!==e.key&&13!==e.keyCode&&32!==e.keyCode||(e.preventDefault(),e.stopPropagation(),n.setStatus("reject"))}),c.addEventListener("click",function(e){e.preventDefault(),e.stopPropagation(),n.setStatus("reject")}));for(a=0;a<o.length;a++)o[a].addEventListener("click",function(e){e.preventDefault(),n.noticeContainer.classList.contains("cookie-revoke-visible")?(n.hideRevokeNotice(),n.noticeContainer.addEventListener("animationend",function e(){n.noticeContainer.removeEventListener("animationend",e),n.showCookieNotice()}),n.noticeContainer.addEventListener("webkitAnimationEnd",function e(){n.noticeContainer.removeEventListener("webkitAnimationEnd",e),n.showCookieNotice()})):n.noticeContainer.classList.contains("cookie-notice-hidden")&&n.noticeContainer.classList.contains("cookie-revoke-hidden")&&n.showCookieNotice()})}}};e.addEventListener("load",function(){n.init()},!1)}(window,document);
5var quotescollectionInstances=[];function quotescollectionRefresh(args){if(args.ajaxRefresh&&!args.autoRefresh)
6jQuery("#"+args.instanceID+" .nav-next").html(quotescollectionAjax.loading);jQuery.ajax({type:"POST",url:quotescollectionAjax.ajaxUrl,data:"action=quotescollection&_ajax_nonce="+quotescollectionAjax.nonce+"&current="+args.currQuoteID+"&char_limit="+args.charLimit+"&tags="+args.tags+"&orderby="+args.orderBy,success:function(response){if(response=='-1'||!response){if(args.ajaxRefresh&&args.autoRefresh)
7quotescollectionTimer(args);else if(args.ajaxRefresh&&!args.autoRefresh)
8jQuery("#"+args.instanceID+" .nav-next").html('<a class=\"next-quote-link\" style=\"curs
8or:pointer;\" onclick=\"quotescollectionRefreshInstance(\''+args.instanceID+'\')\">'+quotescollectionAjax.nextQuote+'</a>');}
9else{if(args.dynamicFetch){args.dynamicFetch=0;}
10args.currQuoteID=response.quote_id;quotescollectionInstances[args.instanceID]=args;display=quotescollectionDisplayFormat(response,args);jQuery("#"+args.instanceID).hide();jQuery("#"+args.instanceID).html(display,args);jQuery("#"+args.instanceID).fadeIn('slow');if(args.ajaxRefresh&&args.autoRefresh)
11quotescollectionTimer(args);}},error:function(xhr,textStatus,errorThrown){console.log(textStatus+' '+xhr.status+': '+errorThrown);if(args.ajaxRefresh&&!args.autoRefresh){jQuery("#"+args.instanceID+" .nav-next").html('<a class=\"next-quote-link\" style=\"cursor:pointer;\" onclick=\"quotescollectionRefreshInstance(\''+args.instanceID+'\')\">'+quotescollectionAjax.nextQuote+';</a>');}}});}
12function quotescollectionDisplayFormat(quoteData,args){var display="";var attribution="";display+='<p>'+quoteData.quote+'</p>';if(args.showAuthor&&quoteData.author&&quoteData.author!='null'){attribution='<cite class=\"author\">'+quoteData.author+'</cite>';}
13if(args.showSource&&quoteData.source&&quoteData.source!='null'){if(attribution)attribution+=', ';attribution+='<cite class=\"source title\">'+quoteData.source+'</cite>';}
14if(attribution){display+=quotescollectionHtmlDecode(args.beforeAttribution)+attribution+quotescollectionHtmlDecode(args.afterAttribution);}
15display=quotescollectionHtmlDecode(args.before)+display+quotescollectionHtmlDecode(args.after);if(args.ajaxRefresh&&!args.autoRefresh)
16display+='<div class=\"navigation\"><div class=\"nav-next\"><a class=\"next-quote-link\" style=\"cursor:pointer;\" onclick=\"quotescollectionRefreshInstance(\''+args.instanceID+'\')\">'+quotescollectionAjax.nextQuote+'</a></div></div>';return display;}
17function quotescollectionRefreshInstance(instanceID){quotescollectionRefresh(quotescollectionInstances[instanceID]);}
18function quotescollectionTimer(args){var timeInterval=args.autoRefresh*1000;var autoRefreshMax=Number(quotescollectionAjax.autoRefreshMax);var autoRefreshCount=Number(quotescollectionAjax.autoRefreshCount);if(!quotescollectionInstances[args.instanceID])
19quotescollectionInstances[args.instanceID]=args;if((autoRefreshMax==0)||(autoRefreshCount<autoRefreshMax)){setTimeout("quotescollectionRefreshInstance('"+args.instanceID+"')",timeInterval);quotescollectionAjax.autoRefreshCount=++autoRefreshCount;}}
20function quotescollectionHtmlDecode(input){var doc=new DOMParser().parseFromString(input,"text/html");return doc.documentElement.textContent;};
21
22/* jslint devel: true, unused: false */
23/* globals ai_show_id_only:false, aiChangeUrl: false, aiResizeIframeHeightId: false, aiShowIframeId: false, findAndReplaceDOMText: false, aiShowDebug: false */
24var aiEnableCookie = (typeof x === 'undefined') ? false : aiEnableCookie;
25var aiId = '';
26var aiExtraSpace = (typeof aiExtraSpace === 'undefined') ? 0 : aiExtraSpace;
27var aiAccTime = 0;
28var aiRealFullscreen = (typeof aiRealFullscreen === 'undefined') ? false : aiRealFullscreen;
29var aiInFullscreen = false;
30var aiOnloadEventsCounter = 0;
31var aiOverflowHtml = jQuery('html').css('overflow') ?? 'visible';
32var aiOverflowBody = jQuery('body').css('overflow') ?? 'visible';
33var aiCallbackExists = typeof aiReadyCallbacks !== 'undefined' && aiReadyCallbacks instanceof Array;
34var aiReadyCallbacks = aiCallbackExists ? aiReadyCallbacks : [];
35/**
36 * The debug messages are enabled if you enable the debug console.
37 */
38function aiDebugExtended(message) {
39  if (typeof aiShowDebug !== 'undefined' && aiShowDebug) {
40    if (console && console.log) {
41      console.log("Advanced iframe: " + message);
42    }
43  }
44}
45/**
46 *  This function resizes the iframe after loading to the height
47 *  of then content of the iframe.
48 *
49 *  The extra space is not stored in the cookie! The height would
50 *  be added every time otherwise and the iframe would grow,
51 */
52function aiResizeIframe(obj, resizeWidth, resizeMinHeight) {
53  aiDebugExtended("aiResizeIframe");
54  try {
55    if (obj.contentWindow.location.href === 'about:blank') {
56      return;
57    }
58    if (obj.contentWindow.document.body != null) {
59      var oldScrollPosition = jQuery(window).scrollTop();
60      obj.style.marginTop = '0';
61      obj.style.marginBottom = '0';
62      obj.height = Number(resizeMinHeight); // set to 1 because otherwise the iframe does never get smaller.
63      obj.style.height = Number(resizeMinHeight) + 'px';
64      var newHeight = aiGetIframeHeight(obj);
65      aiDebugExtended("aiResizeIframe - newHeight: " + newHeight);
66      obj.height = newHeight;
67      obj.style.height = newHeight + 'px';
68      const zoomDivjQuery = jQuery('#ai-zoom-div-' + obj.id);
69      if (zoomDivjQuery.length !== 0) {
70        var zoom = window['zoom_' + obj.id];
71        zoomDivjQuery.css('height', newHeight * zoom);
72      }
73      if (aiEnableCookie && aiExtraSpace === 0) {
74        aiWriteCookie(newHeight);
75      }
76      var hash = aiGetIframeHash(obj.contentWindow.location.href);
77      if (hash !== '-1') {
78        var iframeId = '#' + obj.id;
79        try {
80          var hashPosition = jQuery(iframeId).contents().find('#' + hash);
81          if (hashPosition.length !== 0) {
82            var hashPositionTop = hashPosition.offset().top;
83            oldScrollPosition = Math.round(jQuery(iframeId).offset().top + hashPositionTop);
84          }
85        } catch (e) {
86        }
87      }
88      setTimeout(function () {
89        jQuery("html,body").scrollTop(oldScrollPosition);
90      }, 50);
91      if (resizeWidth === 'true') {
92        var newWidth = aiGetIframeWidth(obj);
93        obj.width = newWidth;
94        obj.style.width = newWidth + 'px';
95      }
96      var fCallback = window['resizeCallback' + obj.id];
97      fCallback();
98      if (window.frameElement != null) {
99        parent.jQuery('iframe').trigger('onload');
100      }
101      aiHandleAnchorLinkScrolling(obj.id);
102    } else {
103      setTimeout(function () {
104        aiResizeIframe(obj, resizeWidth);
105      }, 100);
106    }
107  } catch (e) {
108    if (console && console.error) {
109      console.error(
110        'Advanced iframe configuration error: You have enabled the resize of the iframe for pages on the same domain. But you use an iframe page on a different domain. You need to use the external workaround like described 
110in the settings. Also check the next log. There the browser message for this error is displayed.');
111      console.log(e);
112    }
113  }
114}
115function aiHandleAnchorLinkScrolling(iframeId) {
116  var iframejQuery = jQuery('#' + iframeId);
117  var posIframeTop = iframejQuery.offset().top;
118  iframejQuery.contents().find('body').on('click', "a[href^='#']", function () {
119    var anchorId = jQuery(this).attr('href');
120    var anchorElem = jQuery('#' + iframeId).contents().find(anchorId);
121    if (anchorElem.length !== 0) {
122      var anchorPositionTop = anchorElem.offset().top;
123      var totalPosition = Math.round(posIframeTop + anchorPositionTop + 2);
124      jQuery("html,body").scrollTop(totalPosition);
125    }
126  });
127}
128/**
129 * returns the position of a #hash in the iframe or -1 if none was found.
130 */
131function aiGetIframeHash(url) {
132  var hash = url.split('#')[1];
133  return (hash) ? hash : '-1';
134}
135/**
136 *  Get the iframe height
137 */
138function aiGetIframeHeight(obj) {
139  var bodyHeight = Math.max(obj.contentWindow.document.body.scrollHeight,
140    obj.contentWindow.document.body.offsetHeight,
141    obj.contentWindow.document.documentElement.scrollHeight,
142    obj.contentWindow.document.documentElement.offsetHeight);
143  return bodyHeight + aiExtraSpace;
144}
145/**
146 *  Get the iframe width
147 */
148function aiGetIframeWidth(obj) {
149  var oldWidth = obj.width;
150  obj.width = 1; // set to 1 because otherwise I don't get the minimum width
151  obj.style.width = '1px';
152  var bodyWidth = Math.max(obj.contentWindow.document.body.scrollWidth,
153    obj.contentWindow.document.body.offsetWidth,
154    obj.contentWindow.document.documentElement.scrollWidth,
155    obj.contentWindow.document.documentElement.offsetWidth);
156  if (bodyWidth !== 1) { // avoid that fully responsive sites do not get displayed at all.
157    obj.width = bodyWidth;
158    obj.style.width = bodyWidth + 'px';
159  } else {
160    obj.width = oldWidth;
161    obj.style.width = oldWidth + 'px';
162  }
163  return bodyWidth;
164}
165/**
166 *  Get the current width of the iframe inside the parent.
167 */
168function aiGetParentIframeWidth(obj) {
169  if (obj != null) {
170    const iframejQuery = jQuery('#' + obj.id);
171    if (iframejQuery.length !== 0) {
172      return iframejQuery.width();
173    }
174    return -1;
175  }
176}
177/**
178 *  Resizes an iframe to a given height.
179 *  this is used for xss enabled iframes.
180 *  Please read the documentation!
181 */
182function aiResizeIframeHeightById(id, nHeight) {
183  aiDebugExtended("aiResizeIframeHeightById - id: " + id + ", nHeight: " + nHeight);
184  try {
185    var fCallback = window['resizeCallback' + id];
186    fCallback();
187    var height = parseInt(nHeight, 10) + aiExtraSpace;
188    var iframe = document.getElementById(id);
189    if (iframe === null) {
190      if (console && console.error) {
191        console.error('Advanced iframe configuration error: The iframe to resize could not be found. The id of the iframe and the one defined for ai_external.js (' + id
192          + ') are most likely different! Check your settings.');
193        return;
194      }
195    }
196    var oldScrollposition = jQuery(document).scrollTop();
197    iframe.height = height;
198    iframe.style.height = height + 'px';
199    jQuery("html,body").scrollTop(oldScrollposition);
200    if (aiEnableCookie && aiExtraSpace === 0) {
201      aiWriteCookie(height);
202    }
203    var parentResizeCall = window['aiExecuteWorkaround_' + id];
204    if (parentResizeCall != null) {
205      parentResizeCall();
206    }
207  } catch (e) {
208    if (console && console.error) {
209      console.error('Advanced iframe configuration error: The id of the parent and the external workaround are different! Check your settings.');
210      console.log(e);
211    }
212  }
213}
214/**
215 * Scrolls the parent window to the top.
216 * This is e.g. wanted when you have a link in the iframe and you want that the
217 * page starts at the top and not that only the iframe changes.
218 *
219 * Sometimes are 2 onload events after another. To prevent that this causes
220 * a jump to the top a delay of 1 sec is used for the increase of the counter.
221 */
222function aiScrollToTop(id, position) {
223  aiDebugExtended("aiScrollToTop - id: " + id + ", position: " + position);
224  if (aiOnloadEventsCounter > 0) {
225    var posTop = 0;
226    if (position === 'iframe') {
227      posTop = jQuery('#' + id).offset().top;
228    }
229    setTimeout(function () {
230      aiDebugExtended("aiScrollToTop - posTop: " + posTop);
231      window.scrollTo(0, posTop);
232    }, 100);
233  }
234  setTimeout(function () {
235    aiOnloadEventsCounter++;
236  }, 1000);
237}
238/**
239 * Writes the last height to the cookie.
240 */
241function aiWriteCookie(height) {
242  var cookieName = 'ai-last-height';
243  if (aiId !== '') {
244    cookieName = cookieName + '-' + aiId;
245  }
246  document.cookie = cookieName + '=' + height;
247}
248/**
249 * Reads the cookie and preset the height of the iframe
250 */
251function aiUseCookie() {
252  var cookieName = 'ai-last-height';
253  if (aiId !== '') {
254    cookieName = cookieName + '-' + aiId;
255  }
256  var allcookies = document.cookie;
257  var cookiearray = allcookies.split(';');
258  for (var i = 0; i < cookiearray.length; i++) {
259    var name = cookiearray[i].split('=')[0];
260    var value = cookiearray[i].split('=')[1];
261    if (name === cookieName && value !== null && aiIsNumeric(value)) {
262      var iframe = document.getElementById(aiId);
263      iframe.height = parseInt(value, 10);
264      iframe.style.height = value + 'px';
265    }
266  }
267}
268/**
269 *  check if we have a numeric input
270 */
271function aiIsNumeric(input) {
272  return !isNaN(input);
273}
274/**
275 * Disable the additional_height input field
276 */
277function aiDisableHeight() {
278  jQuery('#additional_height').attr('readonly', 'readonly')
279  .val('0');
280}
281/**
282 * Enable the additional_height input field
283 */
284function aiEnableHeight() {
285  jQuery('#additional_height').removeAttr('readonly');
286}
287/**
288 * Removes all elements from an iframe except the given one
289 *
290 * @param iframeId id of the iframe
291 * @param showElement the id, class (jQuery syntax) of the element that should be displayed.
292 */
293function aiShowElementOnly(iframeId, showElement) {
294  aiDebugExtended("aiShowElementOnly");
295  try {
296    var iframe = jQuery(iframeId).contents().find('body');
297    var selectedBox = iframe.find(showElement).clone(true, true);
298    iframe.find('*').not(jQuery('script')).remove();
299    iframe.prepend(selectedBox);
300  } catch (e) {
301    if (console && console.error) {
302      console.error(
303        'Advanced iframe configuration error: You have enabled to show only one element of the iframe for pages on the same domain. But you use an iframe page on a different domain. You need to use the pro version of the external workaround like described in the settings. Also check the next log. There the browser message for this error is displayed.');
304      console.log(e);
305    }
306  }
307}
308function aiCheckIfValidTarget(evt, elements) {
309  var targ;
310  if (!evt) {
311    evt = window.event;
312  }
313  if (evt.target) {
314    targ = evt.target;
315  } else if (evt.srcElement) {
316    targ = evt.srcElement;
317  }
318  if (targ.nodeType === 3) {
319    targ = targ.parentNode;
320  }
321  var parts = elements.split(',');
322  for (var i = 0; i < parts.length; ++i) {
323    var selectorArray = parts[i].split(':');
324    if (selectorArray[0].toLowerCase() === targ.nodeName.toLowerCase()) {
325      if (selectorArray.length > 1) {
326        if (targ.id.toLowerCase().indexOf(selectorArray[1].toLowerCase()) !== -1) {
327          return true;
328        }
329      } else {
330        return true;
331      }
332    }
333  }
334  return false;
335}
336function aiOpenSelectorWindow(url) {
337  aiDebugExtended("aiOpenSelectorWindow");
338  var localWidth = jQuery('#width').val();
339  var localHeight = jQuery('#ai-height-0').val();
340  if (localWidth.indexOf('%') >= 0 || Number(localWidth) < 900) {
341    localWidth = 900;
342  }
343  localWidth = Number(localWidth) + 40;
344  if (localWidth > (screen.width)) {
345    localWidth = screen.width;
346  }
347  if (localHeight.indexOf('%') >= 0) {
348    localHeight = screen.height;
349  } else {
350    localHeight = Number(localHeight) + 480;
351  }
352  if (localHeight > (screen.height - 50)) {
353    localHeight = screen.height - 50;
354  }
355  var options = 'width=' + localWidth + ',height=' + localHeight + ',left=0,top=0,resizable=1,scrollbars=1';
356  var popup_window = window.open(url, '', options);
357  popup_window.focus();
358}
359function aiDisableAiResizeOptions(value) {
360  jQuery('#onload_resize_delay').prop('readonly', value);
361  jQuery('input[id=store_height_in_cookie1]:radio, input[id=store_height_in_cookie2]:radio').attr('disabled', value);
362  jQuery('#additional_height').prop('readonly', value);
363  jQuery('input[id=onload_resize_width1]:radio, input[id=onload_resize_width2]:radio').attr('disabled', value);
364  jQuery('#resize_on_click').prop('readonly', value);
365  jQuery('#resize_on_click_elements').prop('readonly', value);
366  jQuery('#resize_on_ajax').prop('readonly', value);
367  jQuery('input[id=resize_on_ajax_jquery1]:radio, input[id=resize_on_ajax_jquery2]:radio').attr('disabled', value);
368  var selector = '#onload_resize_delay, #store_height_in_cookie1, #additional_height, #onload_resize_width1, ';
369  selector += '#resize_on_click, #resize_on_click_elements, #resize_on_ajax, #resize_on_ajax_jquery1';
370  aiDisableTextSection(value, selector);
371}
372function aiDisablePartOfIframeOptions(value) {
373  jQuery('#show_part_of_iframe_x').prop('readonly', value);
374  jQuery('#show_part_of_iframe_y').prop('readonly', value);
375  jQuery('#show_part_of_iframe_height').prop('readonly', value);
376  jQuery('#show_part_of_iframe_width').prop('readonly', value);
377  jQuery('input[id=show_part_of_iframe_allow_scrollbar_horizontal1]:radio, input[id=show_part_of_iframe_allow_scrollbar_horizontal2]:radio').attr('disabled', value);
378  jQuery('input[id=show_part_of_iframe_allow_scrollbar_vertical1]:radio, input[id=show_part_of_iframe_allow_scrollbar_vertical2]:radio').attr('disabled', value);
379  jQuery('#show_part_of_iframe_next_viewports').prop('readonly', value);
380  jQuery('input[id=show_part_of_iframe_next_viewports_loop1]:radio, input[id=show_part_of_iframe_next_viewports_loop2]:radio').attr('disabled', value);
381  jQuery('#show_part_of_iframe_new_window').prop('readonly', value);
382  jQuery('#show_part_of_iframe_new_url').prop('readonly', value);
383  jQuery('input[id=show_part_of_iframe_next_viewports_hide1]:radio, input[id=show_part_of_iframe_next_viewports_hide2]:radio').attr('disabled', value);
384  jQuery('#show_part_of_iframe_style').prop('readonly', value);
385  jQuery('input[id=show_part_of_iframe_zoom1]:radio, input[id=show_part_of_iframe_zoom2]:radio, input[id=show_part_of_iframe_zoom3]:radio').attr('disabled', value);
386  jQuery('.media-query-input').prop('readonly', value);
387  var selector = '#show_part_of_iframe_x, #show_part_of_iframe_y, #show_part_of_iframe_height, #show_part_of_iframe_width, ';
388  selector += '#show_part_of_iframe_allow_scrollbar_horizontal1, #show_part_of_iframe_next_viewports, #show_part_of_iframe_next_viewports_loop1, ';
389  selector += '#show_part_of_iframe_new_window, #show_part_of_iframe_new_url, #show_part_of_iframe_next_viewports_hide1, #show_part_of_iframe_style, ';
390  selector += '#show_part_of_iframe_zoom1, #show_part_of_iframe_allow_scrollbar_vertical1, #add-media-query-show_part_of_iframe_media_query';
391  aiDisableTextSection(value, selector);
392  if (value) {
393    jQuery('#add-media-query-show_part_of_iframe_media_query').hide();
394    jQuery('.ai-delete').hide();
395  } else {
396    jQuery('#add-media-query-show_part_of_iframe_media_query').show();
397    jQuery('.ai-delete').show();
398  }
399}
400function aiDisableLazyLoadOptions(value) {
401  jQuery('#enable_lazy_load_threshold').prop('readonly', value);
402  jQuery('#enable_lazy_load_fadetime').prop('readonly', value);
403  jQuery('input[id=enable_lazy_load_reserve_space1]:radio, input[id=enable_lazy_load_reserve_space2]:radio').attr('disabled', value);
404  jQuery('input[id=enable_lazy_load_manual1]:radio, input[id=enable_lazy_load_manual2]:radio, input[id=enable_lazy_load_manual3]:radio').attr('disabled', value);
405  var selector = '#enable_lazy_load_threshold, #enable_lazy_load_fadetime, #enable_lazy_load_reserve_space1, #enable_lazy_load_manual1';
406  aiDisableTextSection(value, selector);
407}
408function aiDisableIframeAsLayerOptions(value) {
409  jQuery('input[id=show_iframe_as_layer_full]:radio').attr('disabled', value);
410  jQuery('#show_iframe_as_layer_header_file').prop('readonly', value);
411  jQuery('#show_iframe_as_layer_header_height').prop('readonly', value);
412  jQuery('#show_iframe_as_layer_autoclick_delay').prop('readonly', value);
413  jQuery('#show_iframe_as_layer_autoclick_hide_time').prop('readonly', value);
414  jQuery('input[id=show_iframe_as_layer_header_position1]:radio, input[id=show_iframe_as_layer_header_position2]:radio').attr('disabled', value);
415  jQuery('input[id=show_iframe_as_layer_full1]:radio, input[id=show_iframe_as_layer_full2]:radio, input[id=show_iframe_as_layer_full3]:radio').attr('disabled', value);
416  jQuery('input[id=show_iframe_as_layer_keep_content1]:radio, input[id=show_iframe_as_layer_keep_content2]:radio').attr('disabled', value);
417  var selector = '#show_iframe_as_layer_full, #show_iframe_as_layer_header_file, #show_iframe_as_layer_header_height, ';
418  selector += '#show_iframe_as_layer_header_position1, #show_iframe_as_layer_full1, #show_iframe_as_layer_keep_content1, ';
419  selector += '#show_iframe_as_layer_autoclick_delay, #show_iframe_as_layer_autoclick_hide_time';
420  aiDisableTextSection(value, selector);
421}
422function aiDisableAddParamOptions(value) {
423  jQuery('input[id=add_iframe_url_as_param_direct1]:radio, input[id=add_iframe_url_as_param_direct2]:radio').attr('disabled', value);
424  jQuery('#add_iframe_url_as_param_prefix').prop('readonly', value);
425  var selector = '#add_iframe_url_as_param_prefix, #add_iframe_url_as_param_direct1';
426  aiDisableTextSection(value, selector);
427}
428function aiDisableTextSection(value, selector) {
429  if (value) {
430    jQuery(selector).closest('tr').addClass('disabled');
431  } else {
432    jQuery(selector).closest('tr').removeClass('disabled');
433  }
434}
435var aiInstance;
436/**
437 *  This function initializes all checks that are done by Javascript
438 *  on the admin page like enabling disabling fields...
439 */
440function aiInitAdminConfiguration(isPro, acc_type) {
441  if (jQuery('input[type=radio][name=onload_resize]:checked').val() === 'false') {
442    aiDisableAiResizeOptions(true);
443  }
444  jQuery('input[type=radio][name=onload_resize]').click(function () {
445    if (jQuery(this).val() === 'true') {
446      jQuery('input:radio[name=enable_external_height_workaround]')[1].checked = true; // set to external!
447      aiDisableAiResizeOptions(false);
448    } else {
449      jQuery('#onload_resize_delay').val('');
450      aiDisableAiResizeOptions(true);
451    }
452  });
453  jQuery('input[type=radio][name=enable_external_height_workaround]').click(function () {
454    if (jQuery(this).val() === 'true') {
455      jQuery('input:radio[name=onload_resize]')[1].checked = true;
456      jQuery('#onload_resize_delay').val('');
457      aiDisableAiResizeOptions(true);
458    }
459  });
460  if (jQuery('input[type=radio][name=show_part_of_iframe]:checked').val() === 'false') {
461    aiDisablePartOfIframeOptions(true);
462  }
463  jQuery('input[type=radio][name=show_part_of_iframe]').click(function () {
464    if (jQuery(this).val() === 'false') {
465      aiDisablePartOfIframeOptions(true);
466    } else {
467      aiDisablePartOfIframeOptions(false);
468    }
469  });
470  if (jQuery('input[type=radio][name=show_iframe_as_layer]:checked').val() === 'false') {
471    aiDisableIframeAsLayerOptions(true);
472  }
473  jQuery('input[type=radio][name=show_iframe_as_layer]').click(function () {
474    if (jQuery(this).val() === 'false') {
475      aiDisableIframeAsLayerOptions(true);
476    } else {
477      aiDisableIframeAsLayerOptions(false);
478    }
479  });
480  if (jQuery('input[type=radio][name=expert_mode]:checked').val() === 'true') {
481    jQuery('.description').css('display', 'none');
482    jQuery('table.form-table th').css('cursor', 'pointer')
483    .css('padding-top', '8px')
484    .css('padding-bottom', '2px')
485    .click(function () {
486      jQuery('.description').css('display', 'none');
487      jQuery('.description', jQuery(this).parent()).css('display', 'block');
488    });
489    jQuery('table.form-table td').css('padding-top', '5px').css('padding-bottom', '5px');
490  }
491  jQuery('input[type=radio][name=expert_mode]').click(function () {
492    if (jQuery(this).val() === 'false') {
493      jQuery('.description').css('display', 'block');
494      jQuery('table.form-table th').css('cursor', 'auto')
495      .css('padding-top', '20px')
496      .css('padding-bottom', '20px')
497      .off('click');
498      jQuery('table.form-table td').css('padding-top', '15px').css('padding-bottom', '15px');
499    } else {
500      jQuery('.description').css('display', 'none');
501      jQuery('table.form-table th').css('cursor', 'pointer')
502      .css('padding-top', '8px')
503      .css('padding-bottom', '2px')
504      .click(function () {
505        jQuery('.description').css('display', 'none');
506        jQuery('.description', jQuery(this).parent()).css('display', 'block');
507      });
508      jQuery('table.form-table td').css('padding-top', '5px').css('padding-bottom', '5px');
509    }
510  });
511  const accordionjQuery = jQuery('#accordion');
512  accordionjQuery.find('h1').click(function () {
513    jQuery(this).next().slideToggle(aiAccTime);
514  }).next().hide();
515  accordionjQuery.find('a').click(function () {
516    var hash = jQuery(this).prop('hash');
517    var hash_only = '#h1-' + hash.substring(1);
518    jQuery(hash_only).next().show();
519    location.hash = hash_only;
520  });
521  if (jQuery('input[type=radio][name=enable_lazy_load_manual]:checked').val() === 'false') {
522    jQuery('#enable_lazy_load_manual_element').prop('readonly', true);
523  }
524  jQuery('input[type=radio][name=enable_lazy_load_manual]').click(function () {
525    if (jQuery(this).val() === 'false' || jQuery(this).val() === 'auto') {
526      jQuery('#enable_lazy_load_manual_element').prop('readonly', true);
527    } else {
528      jQuery('#enable_lazy_load_manual_element').prop('readonly', false);
529    }
530  });
531  if (jQuery('input[type=radio][name=add_iframe_url_as_param]:checked').val() === 'false') {
532    aiDisableAddParamOptions(true);
533  }
534  jQuery('input[type=radio][name=add_iframe_url_as_param]').click(function () {
535    aiDisableAddParamOptions(jQuery(this).val() === 'false');
536  });
537  if (jQuery('input[type=radio][name=enable_lazy_load]:checked').val() === 'false') {
538    aiDisableLazyLoadOptions(true);
539    jQuery('#enable_lazy_load_manual_element').prop('readonly', true);
540  }
541  jQuery('input[type=radio][name=enable_lazy_load]').click(function () {
542    if (jQuery(this).val() === 'false') {
543      aiDisableLazyLoadOptions(true);
544      jQuery('#enable_lazy_load_manual_element').prop('readonly', true);
545    } else {
546      aiDisableLazyLoadOptions(false);
547      const valueLazyLoad = jQuery('input[type=radio][name=enable_lazy_load_manual]:checked').val();
548      if (valueLazyLoad === 'false' || valueLazyLoad === 'auto') {
549        jQuery('#enable_lazy_load_manual_element').prop('readonly', true);
550      } else {
551        jQuery('#enable_lazy_load_manual_element').prop('readonly', false);
552      }
553    }
554  });
555  jQuery('.confirmation').on('click', function () {
556    return confirm('Are you sure? Selecting OK will set all settings to the default.');
557  });
558  jQuery('.confirmation-file').on('click', function () {
559    return confirm('Do you really want to delete the file?');
560  });
561  jQuery('.confirmation-hash').on('click', function () {
562    return confirm('Do you really want to delete the hash/URL cache?');
563  });
564  jQuery('a.post').click(function (e) {
565    e.stopPropagation();
566    e.preventDefault();
567    var href = this.href;
568    var parts = href.split('?');
569    var url = parts[0];
570    var params = parts[1].split('&');
571    var pp, inputs = '';
572    url += '?' + params[0];
573    for (var i = 1, n = params.length; i < n; i++) {
574      pp = params[i].split('=');
575      inputs += '<input type="hidden" name="' + pp[0] + '" value="' + pp[1] + '" />';
576    }
577    var nonceValue = jQuery('#twg-options').val();
578    inputs += '<input type="hidden" name="twg-options" value="' + nonceValue + '" />';
579    jQuery('body').append('<form action="' + url + '" method="post" id="poster">' + inputs + '</form>');
580    jQuery('#poster').submit();
581  });
582  jQuery('.ai-input-search').keyup(function () {
583    var searchTerm = jQuery('input.ai-input-search').val().toLowerCase();
584    aiSettingsSearch(searchTerm, acc_type);
585  })
586  .on('click', function () {
587    setTimeout(function () {
588      var searchTerm = jQuery('input.ai-input-search').val().toLowerCase();
589      aiSettingsSearch(searchTerm, acc_type);
590    }, 100);
591  });
592  jQuery(document).on('click', '.nav-tab-wrapper a', function () {
593    var current_tab = jQuery(this).attr('id');
594    jQuery('section').hide();
595    jQuery('section.' + current_tab).show();
596    jQuery('#current_tab').val(current_tab.substr(4, 1));
597    localStorage.setItem('ai_current_tab', current_tab.substr(4, 1));
598    jQuery('.nav-tab').removeClass('nav-tab-active');
599    jQuery(this).addClass('nav-tab-active');
600    jQuery(this).blur();
601    return false;
602  });
603  jQuery(document).on('click', 'a#external-workaround-link', function () {
604    jQuery('.external-workaround').click();
605    location.hash = 'tab_3';
606    aiShowHeader('tab_3');
607    return false;
608  });
609  jQuery(document).on('click', 'a#resize-same-link', function () {
610    jQuery('.advanced-settings-tab').click();
611    jQuery('#id-advanced-resize').removeClass('closed');
612    location.hash = 'id-advanced-resize';
613    aiShowHeader('id-advanced-resize');
614    return false;
615  });
616  jQuery(document).on('click', 'a.jquery-help-link', function () {
617    jQuery('.help-tab').click();
618    jQuery('#id-help-jquery').removeClass('closed');
619    jQuery('#jquery-help').show();
620    location.hash = 'id-help-jquery';
621    aiShowHeader('id-help-jquery');
622    return false;
623  });
624  jQuery(document).on('click', 'a#browser-detection-link', function () {
625    jQuery('.help-tab').click();
626    jQuery('#id-help-browser').removeClass('closed');
627    jQuery('#browser-help').show();
628    location.hash = 'id-help-browser';
629    aiShowHeader('id-help-browser');
630    return false;
631  });
632  jQuery(document).on('click', 'a.howto-id-link', function () {
633    jQuery('.help-tab').click();
634    jQuery('#id-help-id').removeClass('closed');
635    location.hash = 'id-help-id';
636    aiShowHeader('id-help-id');
637    return false;
638  });
639  jQuery(document).on('click', '.modifycontent-link', function () {
640    jQuery('.advanced-settings-tab').click();
641    jQuery('#id-advanced-modify-iframe').removeClass('closed');
642    location.hash = 'id-advanced-modify-iframe';
643    aiShowHeader('id-advanced-modify-iframe', 'tr-' + jQuery(this).data('detail'));
644    return false;
645  });
646  jQuery(document).on('click', '.id-modify-css-iframe-link', function () {
647    jQuery('.advanced-settings-tab').click();
648    jQuery('#id-advanced-modify-iframe').removeClass('closed');
649    location.hash = 'id-modify-css-iframe';
650    aiShowHeader('id-advanced-modify-iframe', 'tr-' + jQuery(this).data('detail'));
651    return false;
652  });
653  jQuery(document).on('click', '.modify-target', function () {
654    jQuery('.advanced-settings-tab').click();
655    jQuery('#id-advanced-modify-iframe').removeClass('closed');
656    location.hash = 'id-modify-target';
657    aiShowHeader('id-advanced-modify-iframe', 'tr-' + jQuery(this).data('detail'));
658    return false;
659  });
660  jQuery(document).on('click', 'a.link-external-domain', function () {
661    jQuery('#id-external-different').removeClass('closed');
662    location.hash = '#id-external-different';
663    aiShowHeader('id-external-different');
664    return false;
665  });
666  jQuery(document).on('click', 'a.link-id-external-ai-config-post', function () {
667    jQuery('#id-external-ai-config-post').removeClass('closed');
668    location.hash = '#id-external-ai-config-post';
669    aiShowHeader('id-external-ai-config-post', 'tr-use_post_message');
670    return false;
671  });
672  jQuery(document).on('click', 'a.link-id-external-ai-overview', function () {
673    jQuery('#id-external-ai-overview').removeClass('closed');
674    location.hash = '#id-external-ai-overview';
675    aiShowHeader('id-external-ai-overview', 'id-external-ai-overview');
676    return false;
677  });
678  jQuery(document).on('click', 'a.post-message-help-link', function () {
679    jQuery('.help-tab').click();
680    jQuery('#id-help-communication').removeClass('closed');
681    location.hash = '#id-help-communication';
682    aiShowHeader('id-help-communication', 'id-help-communication');
683    return false;
684  });
685  jQuery(document).on('click', 'a.enable-admin', function () {
686    jQuery('.options-tab').click();
687    jQuery('#id-options-display').removeClass('closed');
688    location.hash = '#id-options-display';
689    aiShowHeader('id-options-display', 'tr-demo');
690    return false;
691  });
692  jQuery(document).on('click', 'a.enter-registration', function () {
693    jQuery('.options-tab').click();
694    jQuery('#id-options-registration').removeClass('closed');
695    location.hash = '#id-options-registration';
696    aiShowHeader('id-options-registration', 'tr-demo');
697    return false;
698  });
699  jQuery(document).on('click', 'a.enter-pro', function () {
700    jQuery('.options-tab').click();
701    jQuery('#id-options-pro').removeClass('closed');
702    location.hash = '#id-options-pro';
703    aiShowHeader('id-options-pro', 'first');
704    return false;
705  });
706  jQuery(document).on('click', 'a#user-help-link', function () {
707    jQuery('#user-help').css('display', 'block');
708    return false;
709  });
710  jQuery(document).on('click', 'a#user-meta-link', function () {
711    jQuery('#meta-help').css('display', 'block');
712    return false;
713  });
714  jQuery(document).on('click', '#ai-selector-help-link', function () {
715    jQuery('#ai-selector-help').slideDown(1000);
716    return false;
717  });
718  jQuery(document).on('click', '.ai-selector-help-link-move', function () {
719    jQuery('#ai-selector-help').show('slow');
720    location.hash = '#ai-selector-help-link';
721    aiShowHeader('ai-selector-help-link');
722    return false;
723  });
724  jQuery('#ai_form').submit(function () {
725    aiSetScrollposition();
726  });
727  jQuery('.if-js-closed').removeClass('if-js-closed').addClass('closed');
728  if (typeof postboxes !== 'undefined') {
729    postboxes.add_postbox_toggles('toplevel_page_advanced-iframe');
730  }
731  jQuery('.ai-spinner').css('display', 'none');
732  jQuery("#" + acc_type).next().show();
733  jQuery(document).on('click', '#test-pro-admin.is-permanent-closable button', function () {
734    closeInfoPermanent('test-pro-admin');
735  });
736  jQuery(document).on('click', '#show-registration-message.is-permanent-closable button', function () {
737    closeInfoPermanent('show-registration-message');
738  });
739  jQuery(document).on('click', '#show-version-message.is-permanent-closable button', function () {
740    closeInfoPermanent('show-version-message');
741  });
742  jQuery(document).on('click', '#show-ai-assistant-message.is-permanent-closable button', function () {
743    closeInfoPermanent('show-ai-assistant-message');
744  });
745  jQuery(document).on('click', '.mq-breakpoint-height a', function (evt) {
746    jQuery(this).parent().remove();
747    aiUpdateHeightHiddenField('height');
748    evt.preventDefault();
749    return false;
750  });
751  jQuery(document).on('click', 'a#add-media-query-height', function (evt) {
752    var nextNr = jQuery(".mq-breakpoint-height").length + 1;
753    jQuery(this).parent().append('<div id="breakpoint-row-height-' + nextNr + '" class="mq-breakpoint-height">' +
754      '<input type="text" id="ai-height-' + nextNr
755      + '" style="width:150px;margin-top:5px;"  onblur="aiCheckHeightNumber(this, \'height\');" placeholder="Insert height"/> &nbsp;Breakpoint: '
756      +
757      '<input type="text" id="ai-breakpoint-height-' + nextNr
758      + '" style="width:130px;" onblur="aiCheckHeightNumber(this, \'height\');" placeholder="Insert breakpoint"/>' +
759      '<a id="delete-media-query-' + nextNr + '" href="#" class="delete ai-delete">Delete</a>');
760    evt.preventDefault();
761    return false;
762  });
763  jQuery(document).on('click', '.mq-breakpoint-show_part_of_iframe_media_query a', function (evt) {
764    jQuery(this).parent().remove();
765    aiUpdateHeightHiddenFieldMediaQuery('show_part_of_iframe_media_query');
766    evt.preventDefault();
767    return false;
768  });
769  jQuery(document).on('click', 'a#add-media-query-show_part_of_iframe_media_query', function (evt) {
770    var nextNr = jQuery(".mq-breakpoint-show_part_of_iframe_media_query").length + 1;
771    jQuery(this).parent().append('<div id="breakpoint-row-show_part_of_iframe_media_query-' + nextNr
772      + '" class="mq-breakpoint-show_part_of_iframe_media_query">' +
773      'x: <input type="text" id="ai-x-show_part_of_iframe_media_query-' + nextNr + '" class="media-query-input" ' +
774      ' onblur="aiCheckHeightNumberMediaQuery(this, \'show_part_of_iframe_media_query\');" placeholder="x"/>' +
775      ' &nbsp;y: <input type="text" id="ai-y-show_part_of_iframe_media_query-' + nextNr + '" class="media-query-input" '
776      +
777      ' onblur="aiCheckHeightNumberMediaQuery(this, \'show_part_of_iframe_media_query\');" placeholder="y"/>' +
778      ' &nbsp;w: <input type="text" id="ai-w-show_part_of_iframe_media_query-' + nextNr + '" class="media-query-input" '
779      +
780      ' onblur="aiCheckHeightNumberMediaQuery(this, \'show_part_of_iframe_media_query\');" placeholder="width"/>' +
781      ' &nbsp;h: <input type="text" id="ai-h-show_part_of_iframe_media_query-' + nextNr + '" class="media-query-input" '
782      +
783      ' onblur="aiCheckHeightNumberMediaQuery(this, \'show_part_of_iframe_media_query\');" placeholder="height"/>' +
784      ' &nbsp;iframe width: <input type="text" id="ai-i-show_part_of_iframe_media_query-' + nextNr
785      + '" class="media-query-input" style="width:100px;" ' +
786      ' onblur="aiCheckHeightNumberMediaQuery(this, \'show_part_of_iframe_media_query\');" placeholder="iframe width"/>'
787      +
788      ' &nbsp;Breakpoint: <input type="text" id="ai-breakpoint-show_part_of_iframe_media_query-' + nextNr
789      + '" class="media-query-input" style="width:130px;" ' +
790      ' onblur="aiCheckHeightNumberMediaQuery(this, \'show_part_of_iframe_media_query\');" placeholder="Insert breakpoint"/>'
791      +
792      '<a id="delete-media-query-show_part_of_iframe_media_query-' + nextNr
793      + '" href="#" class="delete ai-delete">Delete</a>');
794    evt.preventDefault();
795    return false;
796  });
797}
798function aiCheckHeightNumber(element, id) {
799  aiCheckInputNumber(element);
800  aiUpdateHeightHiddenField(id);
801}
802function aiCheckHeightNumberMediaQuery(element, id) {
803  aiCheckInputNumber(element);
804  aiUpdateHeightHiddenFieldMediaQuery(id);
805}
806function aiUpdateHeightHiddenField(id) {
807  var heightDefault = jQuery('#ai-' + id + '-0').val();
808  var breakpoints = [];
809  jQuery('.mq-breakpoint-' + id).each(function () {
810    var heightChild = jQuery(this).children().eq(0).val();
811    var breakpointChild = jQuery(this).children().eq(1).val();
812    if (heightChild !== '' && breakpointChild !== '') {
813      breakpoints.push({
814        heightChild: heightChild,
815        breakpointChild: breakpointChild
816      });
817    }
818  });
819  breakpoints.sort(function (a, b) {
820    return b.breakpointChild - a.breakpointChild;
821  });
822  let output = heightDefault;
823  breakpoints.forEach(function (element) {
824    output += ',' + element.heightChild + '|' + element.breakpointChild;
825  });
826  jQuery('#' + id).val(output);
827  const descriptionjQuery = jQuery('#description-' + id);
828  const newVal = descriptionjQuery.html().split('Shortcode attribute: ')[0];
829  descriptionjQuery.html(newVal + 'Shortcode attribute: ' + id + '="' + output + '"');
830}
831function aiUpdateHeightHiddenFieldMediaQuery(id) {
832  var breakpoints = [];
833  jQuery('.mq-breakpoint-' + id).each(function () {
834    var mediaX = jQuery(this).children().eq(0).val();
835    var mediaY = jQuery(this).children().eq(1).val();
836    var mediaW = jQuery(this).children().eq(2).val();
837    var mediaH = jQuery(this).children().eq(3).val();
838    var mediaIW = jQuery(this).children().eq(4).val();
839    var breakpointChild = jQuery(this).children().eq(5).val();
840    if ((mediaX !== '' || mediaY !== '' || mediaW !== '' || mediaH !== '' || mediaIW !== '') &&
841      breakpointChild !== '') {
842      breakpoints.push({
843        mediaX: mediaX,
844        mediaY: mediaY,
845        mediaW: mediaW,
846        mediaH: mediaH,
847        mediaIW: mediaIW,
848        breakpointChild: breakpointChild
849      });
850    }
851  });
852  breakpoints.sort(function (a, b) {
853    return b.breakpointChild - a.breakpointChild;
854  });
855  let output = '';
856  breakpoints.forEach(function (element) {
857    output += ',' + element.mediaX + '|' + element.mediaY + '|' +
858      element.mediaW + '|' + element.mediaH + '|' + element.mediaIW + '|' + element.breakpointChild
859  });
860  output = output.replace(/(^,)|(,$)/g, "");
861  jQuery('#' + id).val(output);
862  const descriptionjQuery = jQuery('#description-' + id);
863  const newVal = descriptionjQuery.html().split('Shortcode attribute: ')[0];
864  descriptionjQuery.html(newVal + 'Shortcode attribute: ' + id + '="' + output + '"');
865}
866function aiSettingsSearch(searchTerm, accType) {
867  var found = 0;
868  if (searchTerm !== '') {
869    jQuery('#ai p').not('.form-table p').hide();
870    jQuery('#ai ul').not('.form-table ul').hide();
871    jQuery('#ai ol').not('.form-table ol').hide();
872    if (accType !== 'false') {
873      jQuery('#ai h1').not('.show-always').hide();
874      jQuery('#ai #accordion').attr('id', 'acc');
875      jQuery('#ai #acc > div').show();
876      jQuery('#ai #spacer-div').show();
877    }
878    jQuery('#ai h2,#ai .icon_ai,#ai h3,#ai h4').not('.show-always').hide();
879    jQuery('#ai .form-table').addClass('ai-remove-margin');
880    jQuery('#ai hr, .signup_account_container, .config-file-block').hide();
881    jQuery('#ai .hide-always').hide();
882    jQuery('#ai .hide-search').hide();
883    jQuery('#ai .postbox-container').not('.show-always').hide();
884    jQuery('#ai .show-always p').show();
885    jQuery('#ai .show-always ul').show();
886    jQuery('#ai .show-always ol').show();
887    jQuery('#ai .show-always h2,#ai .show-always .icon_ai,#ai .show-always h3,#ai .show-always h4').show();
888  } else {
889    jQuery('#ai p').not('.form-table p').show();
890    jQuery('#ai section .ai-anchor').show();
891    jQuery('#ai ul').not('.form-table ul').show();
892    jQuery('#ai ol').not('.form-table ol').show();
893    if (accType !== 'false') {
894      jQuery('#ai h1').not('.show-always').show();
895      jQuery('#ai #acc').attr('id', 'accordion');
896      jQuery('#ai #accordion > div').hide();
897      jQuery('#ai #spacer-div').hide();
898    }
899    jQuery('#ai h2,#ai .icon_ai,#ai h3,#ai h4').not('.show-always').show();
900    jQuery('#ai .form-table').removeClass('ai-remove-margin');
901    jQuery('#ai hr, .signup_account_container, .config-file-block').show();
902    jQuery('#ai .sub-domain-container').show();
903    jQuery('#ai .hide-search').show();
904    jQuery('#ai .hide-always').hide();
905    jQuery('#ai .postbox-container').show();
906    setTimeout(function () {
907      jQuery('#ai .postbox-container .closed .inside').css('display', '');
908    }, 5);
909  }
910  const markTabHeaderjQuery = jQuery('#ai .mark-tab-header');
911  markTabHeaderjQuery.removeClass('mark-tab-header');
912  var firstHit = '';
913  jQuery('#ai tr').each(function () {
914    var $this = jQuery(this);
915    var valueLabel = $this.find('th').text();
916    var valueDescription = $this.find('p.description').text();
917    valueLabel = (valueLabel !== undefined) ? valueLabel.toLowerCase() : 'XXXXXXX';
918    valueDescription = (valueDescription !== undefined) ? valueDescription.toLowerCase() : 'XXXXXXX';
919    if (valueLabel.indexOf(searchTerm) === -1 && valueDescription.indexOf(searchTerm) === -1) {
920      if ($this.parents('.show-always').length === 0) {
921        $this.addClass('hide-setting');
922      }
923    } else {
924      $this.closest('table').prevAll('h2:first').show();
925      $this.closest('.postbox-container').show();
926      $this.closest('.postbox-container').find('h2, .inside').show();
927      $this.closest('table').prevAll('#ai .icon_ai:first').show();
928      $this.closest('table').nextAll('p.button-submit:first').show();
929      $this.removeClass('hide-setting');
930      $this.closest('.hide-search').show();
931      if (searchTerm.length > 2) {
932        var headerId = $this.closest('section').attr('class');
933        if (headerId !== undefined) {
934          jQuery('#' + headerId).addClass('mark-tab-header');
935          if (firstHit === '') {
936            firstHit = headerId;
937          }
938        }
939      }
940      found++;
941    }
942  });
943  if (found === 0) {
944    jQuery('#ai-input-search-result').show();
945    markTabHeaderjQuery.removeClass('mark-tab-header');
946  } else {
947    jQuery('#ai-input-search-result').hide();
948    aiInstance && aiInstance.revert();
949    if (searchTerm !== '' && searchTerm.length > 2) {
950      var regex = RegExp(searchTerm, 'gi');
951      aiInstance = findAndReplaceDOMText(document.getElementById('tab_wrapper'), {
952        find: regex,
953        wrap: 'em'
954      });
955    }
956    jQuery('#' + firstHit).click();
957  }
958}
959/**
960 *  Resizes the iframe with a certain ratio.
961 *  Width is read and the height is than calculated.
962 */
963function aiResizeIframeRatio(obj, ratio) {
964  aiDebugExtended("aiResizeIframeRatio");
965  var width = jQuery('#' + obj.id).width();
966  var valueRatio = parseFloat(ratio.replace(',', '.'));
967  var newHeight = Math.ceil(width * valueRatio);
968  obj.height = newHeight;
969  obj.style.height = newHeight + 'px';
970}
971/**
972 * Generate a shortcode string from the current settings.
973 */
974function aiGenerateShortcode(isPro) {
975  var output = '[advanced_iframe ';
976  const securityKey = jQuery('#securitykey').val();
977  if (securityKey !== '') {
978    output += 'securitykey="' + securityKey + '" ';
979  }
980  output += 'use_shortcode_attributes_only="true" ';
981  var include_html_val = jQuery('#include_html').val();
982  var include_url_val = jQuery('#include_url').val();
983  var document_domain_add = jQuery('#document_domain_add').val();
984  if (include_html_val === undefined || (include_html_val === '' && include_url_val === '')) {
985    var src = jQuery('#src').val();
986    if (src === '') {
987      alert('Required url is missing.');
988    } else {
989      output += 'src="' + src + '" ';
990    }
991    output += aiGenerateTextShortcode('src_hide');
992    output += aiGenerateTextShortcode('width');
993    output += aiGenerateTextShortcode('height');
994    output += aiGenerateRadioShortcode('scrolling', 'none');
995    output += aiGenerateRadioShortcode('add_surrounding_p', 'false');
996    output += aiGenerateRadioShortcode('enable_ios_mobile_scolling', 'false');
997    output += aiGenerateTextShortcode('marginwidth');
998    output += aiGenerateTextShortcode('marginheight');
999    output += aiGenerateTextShortcode('frameborder');
1000    output += aiGenerateRadioShortcode('transparency', 'true');
1001    output += aiGenerateTextShortcode('class');
1002    output += aiGenerateTextShortcode('style');
1003    output += aiGenerateTextShortcodeWithDefault('id', 'advanced_iframe');
1004    output += aiGenerateTextShortcode('name');
1005    output += aiGenerateRadioShortcode('allowfullscreen', 'false');
1006    output += aiGenerateTextShortcode('safari_fix_url');
1007    output += aiGenerateTextShortcode('sandbox');
1008    output += aiGenerateTextShortcode('title');
1009    output += aiGenerateTextShortcode('allow');
1010    output += aiGenerateRadioShortcode('loading', 'lazy');
1011    output += aiGenerateTextShortcode('referrerpolicy');
1012    output += aiGenerateTextShortcode('custom');
1013    output += aiGenerateTextShortcode('url_forward_parameter');
1014    output += aiGenerateTextShortcode('map_parameter_to_url');
1015    output += aiGenerateRadioShortcode('add_iframe_url_as_param', 'false');
1016    output += aiGenerateTextShortcode('add_iframe_url_as_param_prefix');
1017    output += aiGenerateRadioShortcode('add_iframe_url_as_param_direct', 'false');
1018    output += aiGenerateRadioShortcode('use_iframe_title_for_parent', 'false');
1019    output += aiGenerateRadioShortcode('onload_scroll_top', 'false');
1020    output += aiGenerateRadioShortcode('hide_page_until_loaded', 'false');
1021    output += aiGenerateRadioShortcode('show_iframe_loader', 'false');
1022    output += aiGenerateTextShortcode('hide_content_until_iframe_color');
1023    output += aiGenerateTextShortcode('iframe_zoom');
1024    output += aiGenerateRadioShortcode('use_zoom_absolute_fix', 'false');
1025    output += aiGenerateRadioShortcode('auto_zoom', 'false');
1026    output += aiGenerateTextShortcode('auto_zoom_by_ratio');
1027    output += aiGenerateRadioShortcode('enable_responsive_iframe', 'false');
1028    output += aiGenerateTextShortcode('iframe_height_ratio');
1029    output += aiGenerateRadioShortcode('enable_lazy_load', 'false');
1030    output += aiGenerateTextShortcodeWithDefault('enable_lazy_load_threshold', '3000');
1031    output += aiGenerateRadioShortcode('enable_lazy_load_reserve_space', 'true');
1032    output += aiGenerateTextShortcode('enable_lazy_load_fadetime');
1033    output += aiGenerateRadioShortcode('enable_lazy_load_manual', 'false');
1034    output += aiGenerateRadioShortcode('enable_lazy_load_manual_element', 'false');
1035    output += aiGenerateTextShortcode('reload_interval');
1036    output += aiGenerateTextShortcode('hide_elements');
1037    output += aiGenerateTextShortcode('content_id');
1038    output += aiGenerateTextShortcode('content_styles');
1039    output += aiGenerateTextShortcode('parent_content_css');
1040    output += aiGenerateRadioShortcode('add_css_class_parent', 'false');
1041    output += aiGenerateTextShortcode('change_parent_links_target');
1042    output += aiGenerateRadioShortcode('show_iframe_as_layer', 'false');
1043    output += aiGenerateRadioShortcode('show_iframe_as_layer_full', 'false');
1044    output += aiGenerateTextShortcode('show_iframe_as_layer_autoclick_delay');
1045    output += aiGenerateTextShortcode('show_iframe_as_layer_autoclick_hide_time');
1046    output += aiGenerateTextShortcode('show_iframe_as_layer_header_file');
1047    output += aiGenerateTextShortcodeWithDefault('show_iframe_as_layer_header_height', '100');
1048    output += aiGenerateRadioShortcode('show_iframe_as_layer_header_position', 'top');
1049    output += aiGenerateRadioShortcode('show_iframe_as_layer_keep_content', 'true');
1050    var showPartOfIframe = aiGenerateRadioShortcode('show_part_of_iframe', 'false');
1051    output += showPartOfIframe;
1052    if (showPartOfIframe !== '') {
1053      output += aiGenerateTextShortcodeWithDefault('show_part_of_iframe_x', -1);
1054      output += aiGenerateTextShortcodeWithDefault('show_part_of_iframe_y', -1);
1055      output += aiGenerateTextShortcode('show_part_of_iframe_width');
1056      output += aiGenerateTextShortcode('show_part_of_iframe_height');
1057      output += aiGenerateTextShortcode('show_part_of_iframe_media_query');
1058      output += aiGenerateRadioShortcode('show_part_of_iframe_allow_scrollbar_horizontal', 'false');
1059      output += aiGenerateRadioShortcode('show_part_of_iframe_allow_scrollbar_vertical', 'false');
1060      output += aiGenerateTextShortcode('show_part_of_iframe_style');
1061      output += aiGenerateRadioShortcode('show_part_of_iframe_zoom', 'false');
1062      output += aiGenerateTextShortcode('show_part_of_iframe_next_viewports');
1063      output += aiGenerateRadioShortcode('show_part_of_iframe_next_viewports_loop', 'false');
1064      output += aiGenerateTextShortcode('show_part_of_iframe_new_window');
1065      output += aiGenerateTextShortcode('show_part_of_iframe_new_url');
1066      output += aiGenerateRadioShortcode('show_part_of_iframe_next_viewports_hide', 'false');
1067    }
1068    output += aiGenerateTextShortcode('hide_part_of_iframe');
1069    output += aiGenerateRadioShortcode('fullscreen_button', 'false');
1070    output += aiGenerateTextShortcode('fullscreen_button_hide_elements');
1071    output += aiGenerateRadioShortcode('fullscreen_button_full', 'false');
1072    output += aiGenerateRadioShortcode('fullscreen_button_style', 'black');
1073    output += aiGenerateRadioShortcode('add_css_class_iframe', 'false');
1074    output += aiGenerateTextShortcode('iframe_hide_elements');
1075    output += aiGenerateTextShortcode('onload_show_element_only');
1076    output += aiGenerateTextShortcode('iframe_content_id');
1077    output += aiGenerateTextShortcode('iframe_content_styles');
1078    output += aiGenerateTextShortcode('iframe_content_css');
1079    output += aiGenerateTextShortcode('change_iframe_links');
1080    output += aiGenerateTextShortcode('change_iframe_links_target');
1081    output += aiGenerateTextShortcode('change_iframe_links_href');
1082    output += aiGenerateTextShortcode('onload');
1083    output += aiGenerateRadioShortcode('onload_resize', 'false');
1084    output += aiGenerateTextShortcode('onload_resize_delay');
1085    output += aiGenerateRadioShortcode('store_height_in_cookie', 'false');
1086    output += aiGenerateTextShortcode('additional_height');
1087    output += aiGenerateRadioShortcode('onload_resize_width', 'false');
1088    output += aiGenerateTextShortcode('resize_on_ajax');
1089    output += aiGenerateRadioShortcode('resize_on_ajax_jquery', 'true');
1090    output += aiGenerateTextShortcode('resize_on_click');
1091    output += aiGenerateTextShortcodeWithDefault('resize_on_click_elements', 'a');
1092    output += aiGenerateTextShortcode('resize_on_element_resize');
1093    output += aiGenerateTextShortcodeWithDefault('resize_on_element_resize_delay', '250');
1094    output += aiGenerateTextShortcode('tab_hidden');
1095    output += aiGenerateTextShortcode('tab_visible');
1096    output += aiGenerateRadioShortcode('add_document_domain', 'false');
1097    if (document_domain_add === 'true') {
1098      output += aiGenerateTextShortcode('document_domain');
1099    }
1100    output += aiGenerateRadioShortcode('enable_external_height_workaround', 'external');
1101    output += aiGenerateRadioShortcode('hide_page_until_loaded_external', 'false');
1102    output += aiGenerateTextShortcode('pass_id_by_url');
1103    output += aiGenerateRadioShortcode('multi_domain_enabled', 'true');
1104    if (isPro === 'true') {
1105      output += aiGenerateRadioShortcode('use_post_message', 'true');
1106    } else {
1107      output += aiGenerateRadioShortcode('use_post_message', 'false');
1108    }
1109    output += aiGenerateTextShortcode('additional_css');
1110    output += aiGenerateTextShortcode('additional_js');
1111    output += aiGenerateTextShortcode('additional_js_file_iframe');
1112    output += aiGenerateTextShortcode('additional_css_file_iframe');
1113  } else { // include content directly
1114    if (include_html_val === '') {
1115      output += aiGenerateTextShortcode('include_url');
1116      output += aiGenerateTextShortcode('include_content');
1117      output += aiGenerateTextShortcode('include_height');
1118      output += aiGenerateTextShortcode('include_fade');
1119      output += aiGenerateRadioShortcode('include_hide_page_until_loaded', 'false');
1120    } else {
1121      output += aiGenerateTextShortcode('include_html');
1122    }
1123  }
1124  output += aiGenerateRadioShortcode('debug_js', 'false');
1125  output = output.slice(0, -1);
1126  output += ']';
1127  jQuery('#gen-shortcode').html(output);
1128}
1129/**
1130 * Generate a text shortcode with default
1131 */
1132function aiGenerateTextShortcodeWithDefault(field, defaultValue) {
1133  var output = '';
1134  var value = jQuery('#' + field);
1135  var val = value.val();
1136  if (value.length > 0 && val !== '' && val !== defaultValue) {
1137    output = field + '="' + val + '" ';
1138  }
1139  return output;
1140}
1141/**
1142 * Generate a text shortcode if the value is not empty or != 0
1143 */
1144function aiGenerateTextShortcode(field) {
1145  var output = '';
1146  var value = jQuery('#' + field);
1147  var val = value.val();
1148  if (value.length > 0 && val !== '' && val !== '0') {
1149    output = field + '="' + val + '" ';
1150  }
1151  return output;
1152}
1153/**
1154 * Generate a radio shortcode with default
1155 */
1156function aiGenerateRadioShortcode(field, defaultValue) {
1157  var output = '';
1158  var value = jQuery('input:radio[name=' + field + ']:checked');
1159  var val = value.val();
1160  if (field === 'enable_ios_mobile_scolling') {
1161    field = 'enable_ios_mobile_scrolling';
1162  }
1163  if (value.length > 0 && val !== defaultValue) {
1164    output += field + '="' + val + '" ';
1165  }
1166  return output;
1167}
1168/**
1169 * Add a css class to the parents to enable that the iframe parents
1170 * can be identified very easy. Is an is ist set ai-class-<id> is used.
1171 * Otherwise a-class-<number> with an increasing number is used.
1172 */
1173function aiAddCssClassAllParents(element) {
1174  var parents = jQuery(element).parentsUntil('html');
1175  var ai_class = 'ai-class-';
1176  for (var i = 0; i < parents.length; i++) {
1177    var id = jQuery(parents[i]).attr('id');
1178    if (typeof id !== 'undefined') {
1179      if (id.indexOf('ai-') !== 0) {
1180        jQuery(parents[i]).addClass(ai_class + id);
1181      }
1182    } else {
1183      jQuery(parents[i]).addClass(ai_class + i);
1184    }
1185  }
1186}
1187function aiAutoZoomExternalHeight(id, width, height, responsive) {
1188  aiDebugExtended("aiAutoZoomExternalHeight");
1189  var parentWidth = aiAutoZoomExternal(id, width, responsive);
1190  var zoomRatio = window['zoom_' + id];
1191  var oldScrollposition = jQuery(document).scrollTop();
1192  var newHeight = Math.ceil(height * zoomRatio);
1193  jQuery('#ai-zoom-div-' + id).css('height', newHeight);
1194  jQuery("html,body").scrollTop(oldScrollposition);
1195  return parentWidth;
1196}
1197function aiAutoZoomExternal(id, width, responsive) {
1198  aiDebugExtended("aiAutoZoomExternal");
1199  var obj = document.getElementById(id);
1200  var objAround = document.getElementById('ai-zoom-div-' + id);
1201  var jObj = jQuery('#' + id);
1202  if (responsive === 'true') {
1203    jObj.css('max-width', '100%');
1204  }
1205  var iframeWidth = width;
1206  var parentWidth = aiGetParentIframeWidth(obj);
1207  if (parentWidth === iframeWidth) {
1208    parentWidth = aiGetParentIframeWidth(objAround);
1209  }
1210  var zoomRatio = parentWidth / iframeWidth;
1211  var zoomRatioRounded = Math.floor(zoomRatio * 100) / 100;
1212  if (zoomRatioRounded > 1) {
1213    zoomRatioRounded = 1;
1214  }
1215  aiSetZoom(id, zoomRatioRounded);
1216  window['zoom_' + id] = zoomRatioRounded;
1217  jObj.width(iframeWidth).css('max-width', 'none');
1218  return parentWidth;
1219}
1220function aiAutoZoom(id, responsive, ratio) {
1221  aiDebugExtended("aiAutoZoom");
1222  var parts = ratio.split('|');
1223  ratio = parts[0];
1224  var width = -1;
1225  if (parts.length !== 1) {
1226    width = parts[1];
1227  }
1228  var obj = document.getElementById(id);
1229  var iframeWidth;
1230  if (width === -1) {
1231    obj.width = 1; // set to 1 because otherwise the iframe does never get smaller.
1232    obj.style.width = '1px';
1233    iframeWidth = aiGetIframeWidth(obj);
1234    obj.width = iframeWidth;
1235    obj.style.width = iframeWidth + 'px';
1236  } else {
1237    iframeWidth = width;
1238  }
1239  var parentWidth = aiAutoZoomExternal(id, iframeWidth, responsive);
1240  if (ratio === '') {
1241    aiResizeIframe(obj, false);
1242  } else {
1243    var newheight = Math.ceil(iframeWidth * ratio);
1244    obj.height = newheight;
1245    obj.style.height = newheight + 'px';
1246    const zoomDivjQuery = jQuery('#ai-zoom-div-' + obj.id);
1247    if (zoomDivjQuery.length !== 0) {
1248      var zoom = window['zoom_' + obj.id];
1249      zoomDivjQuery.css('height', Math.ceil(newheight * zoom));
1250    }
1251  }
1252  return parentWidth;
1253}
1254/**
1255 * Set the zoom div settings dynamically.
1256 */
1257function aiSetZoom(id, zoom) {
1258  var obj = jQuery('#' + id);
1259  obj.css({
1260    '-ms-transform': 'scale(' + zoom + ')',
1261    '-moz-transform': 'scale(' + zoom + ')',
1262    '-o-transform': 'scale(' + zoom + ')',
1263    '-webkit-transform': 'scale(' + zoom + ')',
1264    'transform': 'scale(' + zoom + ')'
1265  });
1266}
1267function aiAutoZoomViewport(id, full) {
1268  var viewportDiv = jQuery(id);
1269  var outerDiv = viewportDiv.parent();
1270  var counter = 0;
1271  while (outerDiv.is('p') || (outerDiv.attr('id') !== undefined && outerDiv.attr('id').indexOf('ai-') === 0)) {
1272    outerDiv = outerDiv.parent();
1273    if (counter++ > 10) {
1274      alert('Unexpected div structure. Please disable the zoom.');
1275      break;
1276    }
1277  }
1278  var viewportDivWidth = viewportDiv.width();
1279  var outer_div_width = outerDiv.width();
1280  var viewportDivHeight = viewportDiv.height();
1281  var zoom = outer_div_width / viewportDivWidth;
1282  if (full === 'true' && zoom > 1) {
1283    zoom = 1;
1284  }
1285  aiSetZoom(viewportDiv.attr('id'), zoom);
1286  var marginLeft = -Math.round((viewportDivWidth - viewportDivWidth * zoom) / 2);
1287  var marginTop = -Math.round((viewportDivHeight - viewportDivHeight * zoom) / 2);
1288  viewportDiv.css({
1289    'margin-left': marginLeft + 'px',
1290    'margin-right': marginLeft + 'px',
1291    'margin-top': marginTop + 'px',
1292    'margin-bottom': marginTop + 'px'
1293  });
1294}
1295function aiResetAiSettings() {
1296  jQuery('#action').val('reset');
1297}
1298function aiCheckInputNumber(inputField) {
1299  inputField.value = inputField.value.split(' ').join('');
1300  var f = inputField.value;
1301  if (inputField.value === '') {
1302    return;
1303  }
1304  var match = f.match(
1305    /^(-)?([\d.])+(px|%|em|pt|vh|vw|rem|ch)?([-+])?([\d.]){0,7}(px|%|em|pt|vh|vw|rem|ch)?$/);
1306  if (!match) {
1307    alert(
1308      'Please check the value you have entered. Only numbers with a dot or with an optional px, %, em or pt are allowed.');
1309    setTimeout(function () {
1310      inputField.focus();
1311    }, 10);
1312  }
1313}
1314function aiCheckInputPurchaseCode(inputField) {
1315  inputField.value = inputField.value.split(' ').join('');
1316  var f = inputField.value;
1317  if (inputField.value === '') {
1318    return;
1319  }
1320  if (!f.match(/^([a-f0-9]{8})-(([a-f0-9]{4})-){3}([a-f0-9]{12})$/i)) {
1321    alert('Please check the value you have entered. Your input seems not to be a valid purchase code.');
1322    inputField.value = '';
1323    setTimeout(function () {
1324      inputField.focus();
1325    }, 10);
1326  }
1327}
1328function aiCheckInputNumberOnly(inputField) {
1329  inputField.value = inputField.value.split(' ').join('');
1330  var f = inputField.value;
1331  if (inputField.value === '') {
1332    inputField.value = '0';
1333    return;
1334  }
1335  var match = f.match(/^(-)?([\d.])+$/);
1336  if (!match) {
1337    alert(
1338      'Please check the value you have entered. Only numbers without a dot or optional px, %, em or pt are allowed.');
1339    setTimeout(function () {
1340      inputField.focus();
1341    }, 10);
1342  }
1343}
1344function aiShowHeader(id, element) {
1345  var y = jQuery(window).scrollTop();
1346  jQuery(window).scrollTop(y - 40);
1347  if (element !== undefined) {
1348    aiFlashElement(element);
1349  }
1350}
1351function aiFlashElement(element) {
1352  setTimeout(function () {
1353    jQuery('#' + element).css('background-color', '#eee');
1354  }, 500);
1355  setTimeout(function () {
1356    jQuery('#' + element).css('background-color', '#fff');
1357  }, 900);
1358  setTimeout(function () {
1359    jQuery('#' + element).css('background-color', '#eee');
1360  }, 1300);
1361  setTimeout(function () {
1362    jQuery('#' + element).css('background-color', '#fff');
1363  }, 1700);
1364}
1365function aiSetScrollposition() {
1366  var scrollposition = jQuery(document).scrollTop();
1367  jQuery('#scrollposition').val(scrollposition); // +32
1368}
1369function aiResetShowPartOfAnIframe(id) {
1370  jQuery('#' + id).css('top', '0px').css('left', '0px').css('position', 'static');
1371  jQuery('#ai-div-' + id).css('width', 'auto').css('height', 'auto').css('overflow', 'auto').css('position', 'static');
1372}
1373function aiShowLayerIframe(event, id, path, showLoadingIcon, keep, reload) {
1374  aiDebugExtended("aiShowLayerIframe");
1375  keep = (keep === undefined) ? false : keep;
1376  reload = (reload === undefined) ? true : reload;
1377  var layerId = '#' + id;
1378  jQuery('#ai-zoom-div-' + id).show()
1379  .css('visibility', 'visible');
1380  jQuery(layerId).show();
1381  jQuery(layerId).css('visibility', 'visible');
1382  if (jQuery('#ai-layer-div-' + id).length) {
1383    layerId = '#ai-layer-div-' + id;
1384    jQuery(layerId).show()
1385    .css('visibility', 'visible');
1386  }
1387  jQuery('html').css('overflow-y', 'visible');
1388  jQuery('body').css('overflow', 'hidden')
1389  .append('<img alt="" id="ai_backlink" src="' + path + 'close.png" style="z-index:100005;position:fixed;top:0;right:0;cursor:pointer" />');
1390  var icon = '<!-- -->';
1391  if (reload && showLoadingIcon === 'true') {
1392    icon = '<div id="ai-div-loader-global" style="position: fixed;z-index:100004;margin-left:-33px;left: 50%;top:50%;margin-top:-33px"><img src="' + path
1393      + 'loader.gif" width="66" height="66" title="Loading" alt="Loading"></div>';
1394  }
1395  if (jQuery('#ai_backlayer').length === 0) { // we do not have a layer yet...
1396    jQuery(layerId).parent().append(
1397      '<div id="ai_backlayer" style="z-index:100001;position:fixed;top:0;left:0;width:100%;height:100%;background-color: rgba(50,50,50,0.5);overflow:hidden;cursor:pointer"><!-- --></div>' + icon);
1398  }
1399  jQuery('#ai_backlink, #ai_backlayer').click(function () {
1400    aiHideLayerIframe(id, keep);
1401  });
1402  if (!reload) {
1403    event.preventDefault();
1404    event.stopPropagation();
1405  }
1406}
1407function aiHideLayerIframe(id, keep) {
1408  aiDebugExtended("aiHideLayerIframe");
1409  const idjQuery = jQuery('#' + id);
1410  idjQuery.css('visibility', 'hidden');
1411  if (!keep) {
1412    idjQuery.attr('src', 'about:blank');
1413    aiLayerIframeHrefs[id] = 'about:blank';
1414  }
1415  jQuery('#ai-zoom-div-' + id).css('visibility', 'hidden');
1416  jQuery('#ai-layer-div-' + id).css('visibility', 'hidden');
1417  jQuery('#ai_backlink').remove();
1418  jQuery('#ai_backlayer').remove();
1419  jQuery('#ai-div-loader-global').remove();
1420  jQuery('body').css('overflow', 'auto');
1421  jQuery('html').css('overflow-y', 'scroll');
1422}
1423/**
1424 * As the src of an iframe cannot be read from a remote domain we remember
1425 * the urls from the links here for each opened iframe.
1426 */
1427var aiLayerIframeHrefs = [];
1428/**
1429 * Check if the location of the iframe is already the one of the link.
1430 * The iframe is only loaded if it is was not loaded already.
1431 *
1432 * true - if src and url of the iframe is different and need to be loaded
1433 * false - if it is already the same;
1434 */
1435function aiCheckReload(link, id) {
1436  var iframeSrc;
1437  if (typeof aiLayerIframeHrefs[id] === 'undefined') {
1438    iframeSrc = jQuery('#' + id).attr('src');
1439  } else {
1440    iframeSrc = aiLayerIframeHrefs[id];
1441  }
1442  var linkHref = jQuery(link).attr('href');
1443  aiLayerIframeHrefs[id] = linkHref;
1444  return (iframeSrc !== linkHref);
1445}
1446function aiChangeTitle(id) {
1447  aiDebugExtended("aiChangeTitle");
1448  try {
1449    var title = document.getElementById(id).contentDocument.title;
1450    if (title !== null && title !== 'undefined' && title !== '') {
1451      document.title = title;
1452    }
1453  } catch (e) {
1454    if (console && console.error) {
1455      console.error(
1456        'Advanced iframe configuration error: You have enabled to add the title if the iframe to the parent on the same domain. But you use an iframe page on a different domain. You need to use the pro version of the external workaround like described in the settings. Also check the next log. There the browser message for this error is displayed.');
1457      console.log(e);
1458    }
1459  }
1460}
1461/**
1462 * This changes the current url and adds or updates the
1463 * existing parameter with the given url
1464 */
1465function aiChangeUrlParam(loc, param, orig, prefix, isDirect) {
1466  aiDebugExtended("aiChangeUrlParam");
1467  var newUrl;
1468  var keepSlash = false;
1469  if (orig.lastIndexOf("//", 0) !== -1) {
1470    orig = location.protocol + orig;
1471  }
1472  if (loc !== encodeURIComponent(orig)) {
1473    newUrl = aiSetGetParameter(param, loc);
1474    var removeProtocol = true;
1475    if (prefix.startsWith('hash')) {
1476      return aiGetUrlMapping(loc, param, prefix);
1477    } else if (prefix) {
1478      var repUrl = newUrl.replace(prefix, '');
1479      if (repUrl === newUrl) {
1480        removeProtocol = false;
1481      }
1482      newUrl = repUrl;
1483    }
1484    if (removeProtocol) {
1485      newUrl = newUrl.replace('http%3A%2F%2F', '');
1486      if (window.location.href.toLowerCase().lastIndexOf("http:", 0) !== -1) {
1487        newUrl = newUrl.replace('https%3A%2F%2F', 's|');
1488      } else {
1489        newUrl = newUrl.replace('https%3A%2F%2F', '');
1490      }
1491    }
1492    if (isDirect) {
1493      newUrl = aiRemoveQueryString(window.location.href);
1494      var locDecoded = decodeURIComponent(loc);
1495      var queryStart = locDecoded.indexOf('?');
1496      var hashStart = locDecoded.indexOf('#');
1497      if (queryStart !== -1) {
1498        var queryPart = locDecoded.slice(queryStart + 1);
1499        newUrl += '?' + queryPart;
1500        keepSlash = true;
1501      } else if (hashStart !== -1) {
1502        var hashPart = locDecoded.slice(hashStart + 1);
1503        newUrl += '?hash=' + hashPart;
1504        keepSlash = true;
1505      }
1506    }
1507    if (aiEndsWidth(newUrl, param + "=")) {
1508      newUrl = aiRemoveURLParameter(newUrl, param);
1509    }
1510  } else {
1511    var fullUrl = window.location.href;
1512    fullUrl = fullUrl.split("/" + param + "/", 1)[0];
1513    newUrl = aiRemoveURLParameter(fullUrl, param);
1514  }
1515  var seperator = (newUrl.indexOf('?') >= 0) ? '&' : '?';
1516  newUrl = newUrl.replace("#", seperator + "hash=");
1517  aiSetBrowserUrl(newUrl, keepSlash);
1518}
1519function aiGetUrlMappingUrl(param, prefix, id) {
1520  var fullUrl = window.location.href;
1521  param = param.replace(":short", "");
1522  var newUrl = aiRemoveURLParameter(fullUrl, param);
1523  if (prefix.startsWith('hashrewrite')) {
1524    var queryString = "";
1525    if (newUrl.indexOf('?') >= 0) {
1526      var newUrlArray = newUrl.split('?');
1527      newUrl = newUrlArray[0];
1528      queryString = '?' + newUrlArray[1];
1529    }
1530    var baseUrl = newUrl.split("/" + param + "/", 1)[0];
1531    if (!aiEndsWidth(baseUrl, "/")) {
1532      baseUrl += '/';
1533    }
1534    var path = param + "/";
1535    newUrl = baseUrl + path + id + queryString;
1536  } else {
1537    var seperator = (newUrl.indexOf('?') >= 0) ? '&' : '?';
1538    newUrl += seperator + param + "=" + id;
1539  }
1540  return newUrl;
1541}
1542function aiSetBrowserUrl(newUrl, keepSlash) {
1543  if (aiSupportsHistoryApi()) {
1544    if (!keepSlash) {
1545      newUrl = newUrl.replace(/%2F/g, '/');
1546    }
1547    window.history.pushState({}, '', newUrl);
1548    window.onpopstate = function (event) {
1549      if (event && event.state) {
1550        window.history.back();
1551      }
1552    };
1553  }
1554}
1555function aiRemoveQueryString(loc) {
1556  if (loc.indexOf('%3F') >= 0) {
1557    return loc.split('%3F')[0];
1558  } else if (loc.indexOf('?') >= 0) {
1559    return loc.split('?')[0];
1560  } else {
1561    return loc;
1562  }
1563}
1564function aiGetUrlMapping(url, param, prefix) {
1565  var data = {
1566    action: 'aip_map_url_action',
1567    security: MyAjax.security,
1568    url: url
1569  };
1570  jQuery.post(MyAjax.ajaxurl, data, function (id) {
1571    var newUrl = aiGetUrlMappingUrl(param, prefix, id);
1572    aiSetBrowserUrl(newUrl, false);
1573  });
1574}
1575function closeInfoPermanent(id) {
1576  var data = {
1577    action: 'aip_close_message_permanent',
1578    security: MyAjax.security,
1579    id: id
1580  };
1581  var message = 'The message before will only appear again when you reset the advanced iframe settings.';
1582  if (id === 'show-discount-message') {
1583    message = 'The message of advanced iframe shown before will only appear again when you reset the advanced iframe settings or a new discount is available.';
1584  } else if (id === 'show-registration-message') {
1585    message = 'The message will appear again after a page reload.';
1586  }
1587  jQuery.post(MyAjax.ajaxurl, data, function () {
1588    jQuery('h1').after('<div class="message-notice notice notice-success"><p>' + message + '</p></div>');
1589  });
1590  setTimeout(function () {
1591    jQuery(".message-notice").fadeOut()
1592  }, 4000);
1593}
1594function aiSupportsHistoryApi() {
1595  return !!(window.history && history.pushState);
1596}
1597function aigetIframeLocation(id) {
1598  try {
1599    var location = document.getElementById(id).contentWindow.location;
1600    return encodeURIComponent(location);
1601  } catch (e) {
1602    if (console && console.error) {
1603      console.error(
1604        'Advanced iframe configuration error: You have enabled to add the url to the url on the same domain. But you use an iframe page on a different domain. You need to use the pro version of the external workaround like described 
1604in the settings. Also check the next log. There the browser message for this error is displayed.');
1605      console.log(e);
1606    }
1607  }
1608}
1609/**
1610 * Replaces a url parameter with a given value.
1611 */
1612function aiSetGetParameter(paramName, paramValue) {
1613  var url = window.location.href;
1614  var splitAtAnchor = url.split('#');
1615  url = splitAtAnchor[0];
1616  var anchor = typeof splitAtAnchor[1] === 'undefined' ? '' : '#' + splitAtAnchor[1];
1617  if (url.indexOf(paramName + '=') >= 0) {
1618    var prefix = url.substring(0, url.indexOf(paramName + '='));
1619    var suffix = url.substring(url.indexOf(paramName + '='));
1620    suffix = suffix.substring(suffix.indexOf('=') + 1);
1621    suffix = (suffix.indexOf('&') >= 0) ? suffix.substring(suffix.indexOf('&')) : '';
1622    url = prefix + paramName + '=' + paramValue + suffix;
1623  } else {
1624    if (url.indexOf('?') < 0) {
1625      url += '?' + paramName + '=' + paramValue;
1626    } else {
1627      url += '&' + paramName + '=' + paramValue;
1628    }
1629  }
1630  return url + anchor;
1631}
1632/**
1633 * Remove a given parameter from the url
1634 */
1635function aiRemoveURLParameter(url, parameter) {
1636  var urlparts = url.split('?');
1637  if (urlparts.length >= 2) {
1638    var prefix = encodeURIComponent(parameter) + '=';
1639    var pars = urlparts[1].split(/[&;]/g);
1640    for (var i = pars.length; i-- > 0;) {
1641      if (pars[i].lastIndexOf(prefix, 0) !== -1) {
1642        pars.splice(i, 1);
1643      }
1644    }
1645    if (pars.length !== 0) {
1646      url = urlparts[0] + '?' + pars.join('&');
1647    } else {
1648      url = urlparts[0];
1649    }
1650    return url;
1651  } else {
1652    return url;
1653  }
1654}
1655function aiEndsWidth(string, target) {
1656  return string.substr(-target.length) === target;
1657}
1658/**
1659 * Adds css to the end of the body to make sure that styles are
1660 * not overwritten by inline css of any kind.
1661 */
1662function aiAddCss(id, css) {
1663  css = decodeURIComponent(css.replace(/\+/g, '%20'));
1664  var body = jQuery(id).contents().find('body');
1665  var s = document.createElement('style');
1666  s.setAttribute('type', 'text/css');
1667  if (s.styleSheet) {   // IE
1668    s.styleSheet.cssText = css;
1669  } else {                // the world
1670    s.appendChild(document.createTextNode(css));
1671  }
1672  body.append(s);
1673}
1674/**
1675 * add a css file to the end of the body to make sure that styles
1676 *  are not overwritten by inline css of any kind.
1677 */
1678function aiAddCssFile(id, filename) {
1679  var body = jQuery(id).contents().find('body');
1680  var link = document.createElement('link');
1681  link.rel = 'stylesheet';
1682  link.type = 'text/css';
1683  link.href = filename;
1684  body.append(link);
1685}
1686/**
1687 * Add a Javascript file to the end of the body
1688 */
1689function aiAddJsFile(id, filename) {
1690  jQuery.ajaxSetup({cache: true});
1691  var body = jQuery(id).contents().find('body');
1692  var script = document.createElement('script');
1693  script.type = 'text/javascript';
1694  script.src = filename;
1695  body.append(script);
1696}
1697function aiPresetFullscreen() {
1698  jQuery('#style').val('position:fixed;z-index:9000;top:0px;left:0px;margin:0px');
1699  jQuery('#width').val('100%');
1700  jQuery('#ai-height-0').val('100%');
1701  jQuery('#content_id').val('html,body');
1702  jQuery('#content_styles').val('overflow:hidden');
1703  jQuery('#hide_content_until_iframe_color').val('#ffffff');
1704}
1705/**
1706 * main ready function that calls all generated callbacks.
1707 * Add dynamically created functions that should be loaded
1708 * when the page is read to aiReadyCallbacks
1709 */
1710jQuery(document).ready(function () {
1711  aiDebugExtended("document.ready called");
1712  jQuery('iframe').parent('p').css('margin', '0');
1713  aiWindowWidth = jQuery(window).width();
1714  jQuery.each(aiReadyCallbacks, function (index, callback) {
1715    callback();
1716  });
1717  jQuery('.ai-fullscreen-open').on('click', function () {
1718    jQuery(this).closest('.ai-wrapper-div').addClass("ai-fullscreen-wrapper");
1719    jQuery(this).closest('.ai-wrapper-div').find('iframe').addClass("ai-fullscreen");
1720    jQuery('.ai-fullscreen-open').hide();
1721    jQuery('.ai-fullscreen-hide').addClass("ai-fullscreen-display-none")
1722    .hide();
1723    jQuery('html,body').css('overflow', 'hidden');
1724    var id = jQuery(this).data("id");
1725    jQuery('.ai-fullscreen-close-' + id).show();
1726    jQuery(document).on('keydown', function (evt) {
1727      if (evt.key === "Escape") {
1728        jQuery('.ai-fullscreen-close').trigger("click");
1729      }
1730    });
1731    aiOpenFullscreen();
1732    aiInFullscreen = true;
1733  });
1734  jQuery('.ai-fullscreen-close').on('click', function () {
1735    jQuery('div.ai-wrapper-div').removeClass("ai-fullscreen-wrapper")
1736    jQuery('iframe.ai-fullscreen').removeClass("ai-fullscreen");
1737    jQuery('html').css('overflow', aiOverflowHtml);
1738    jQuery('body').css('overflow', aiOverflowBody);
1739    jQuery('.ai-fullscreen-close').hide();
1740    jQuery('.ai-fullscreen-open').show();
1741    jQuery('.ai-fullscreen-display-none').removeClass("ai-fullscreen-display-none");
1742    jQuery('.ai-fullscreen-hide').show();
1743    jQuery(document).off("keydown");
1744    if (aiInFullscreen) {
1745      aiCloseFullscreen();
1746    }
1747  });
1748  setTimeout(function () {
1749    jQuery("#ai #ai-updated-text").css("visibility", "hidden")
1750  }, 4000);
1751  jQuery('#ai #checkIframes').on('click', function () {
1752    jQuery('.ai-spinner').css('display', 'inline-table');
1753    jQuery(this).addClass('disabled');
1754    setTimeout(aiDisableCheckIframes, 200);
1755  });
1756  var moved = false;
1757  jQuery('#aiDebugDivTotal').mousedown(function () {
1758    moved = false;
1759  }).mousemove(function () {
1760    moved = true;
1761  }).mouseup(function () {
1762    if (!moved) {
1763      var elem = jQuery('#aiDebugDiv');
1764      if (Math.floor(elem.height()) > '300') {
1765        elem.height('0px');
1766      } else {
1767        elem.height('400px');
1768      }
1769    }
1770  });
1771  if (typeof ai_show_id_only !== 'undefined') {
1772    const showIdOnlyjQuery = jQuery('#' + ai_show_id_only);
1773    if (showIdOnlyjQuery.length === 0) {
1774      alert('The element with the id "' + ai_show_id_only + '" cannot be found. Please check your configuration.');
1775    } else {
1776      showIdOnlyjQuery.siblings().hide();
1777      var parents = showIdOnlyjQuery.parents();
1778      parents.siblings().hide();
1779      parents.css('padding', '0px').css('margin', '0px').css('overflow', 'hidden');
1780      if (parent === top) {
1781        var elementRaw = showIdOnlyjQuery[0];
1782        elementRaw.style.marginTop = elementRaw.style.marginBottom = '0';
1783        elementRaw.style.overflow = "hidden";
1784        var newHeightRaw = Math.max(elementRaw.scrollHeight, elementRaw.offsetHeight) + '';
1785        var newHeight = parseInt(newHeightRaw, 10);
1786        var data = {'aitype': 'height', 'height': newHeight, 'id': ai_show_id_only};
1787        var json_data = JSON.stringify(data);
1788        window.parent.postMessage(json_data, '*');
1789      }
1790    }
1791  }
1792});
1793function aiDisableCheckIframes() {
1794  var input = jQuery("<input>").attr("type", "hidden").attr("name", "checkIframes").val("true");
1795  jQuery("#ai_form").append(input)
1796  .submit();
1797  jQuery('#checkIframes').prop('disabled', 'disabled');
1798}
1799function aiProcessMessage(event, id, debug, dataPostMessage, addIframeUrlAsParam, useIframeTitleForParent) {
1800  var jsObject;
1801  try {
1802    jsObject = JSON.parse(event.data);
1803  } catch (e) {
1804    if (debug === 'debug' && console && console.log) {
1805      console.log(
1806        'Advanced iframe: The received message cannot be parsed and seems not to belong to advanced iframe pro. Please disable the postMessage debug mode if this o.k. and that this message is not shown anymore.');
1807      console.log("Advanced iframe: Unknown event: ", event);
1808    }
1809    jsObject = event.data;
1810  }
1811  try {
1812    if (jsObject.hasOwnProperty('aitype')) {
1813      if (id === jsObject.id) {
1814        var type = jsObject.aitype;
1815        if (type === 'debug') {
1816          aiProcessDebug(jsObject);
1817        } else if (type === 'scrollToTop') {
1818          aiProcessScrollToTop(jsObject);
1819        } else if (type === 'anchor') {
1820          aiProcessAnchor(jsObject);
1821        } else {
1822          if (type === 'height') {
1823            aiProcessHeight(jsObject, addIframeUrlAsParam, useIframeTitleForParent);
1824          } else if (type === 'show') {
1825            aiProcessShow(jsObject);
1826          }
1827          for (var key in jsObject.data) {
1828            if (jsObject.data.hasOwnProperty(key) && aiIsValidKey(key, dataPostMessage)) {
1829              jQuery(key).html(aiRemoveScriptTags(jsObject.data[key]));
1830            }
1831          }
1832        }
1833      }
1834    }
1835  } catch (e) {
1836    if (debug === 'debug' && console && console.log) {
1837      console.log('Advanced iframe: The received message do not belong to advanced iframe pro. Please disable the postMessage debug mode if this o.k. and that this message is not shown anymore.');
1838      console.log(e);
1839    }
1840  }
1841}
1842/**
1843 * Checks if the key we get from the post message is in dataPostMessage saved
1844 */
1845function aiIsValidKey(key, dataPostMessage) {
1846  if (!dataPostMessage) return false;
1847  var parts = dataPostMessage.split(',');
1848  for (var i = 0; i < parts.length; i++) {
1849    var validKey = parts[i].split('|')[0].trim();
1850    if (validKey === key) {
1851      return true;
1852    }
1853  }
1854  return false;
1855}
1856function aiRemoveScriptTags(htmlString) {
1857  const temp = jQuery('<div>').html(htmlString);
1858  temp.find('script').remove();
1859  return temp.html();
1860}
1861function aiProcessDebug(jsObject) {
1862  var debugData = jsObject.data;
1863  const debugDivjQuery = jQuery('#aiDebugDiv');
1864  if (debugDivjQuery.length !== 0) {
1865    debugData = debugData.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
1866    debugData = debugData.replace('\"', '"').replace(/\\/g, "");
1867    debugDivjQuery.append('<p class="ai-debug-remote"> r: ' + debugData + '</p>');
1868  }
1869}
1870function aiProcessScrollToTop(jsObject) {
1871  var id = jsObject.id;
1872  aiScrollToTop(id, aiOnloadScrollTop);
1873}
1874function aiProcessAnchor(jsObject) {
1875  var id = jsObject.id;
1876  var position = parseInt(jsObject.position, 10);
1877  var iframeTop = jQuery("#" + id).offset().top;
1878  setTimeout(function () {
1879    jQuery("html,body").scrollTop(Math.round(iframeTop + position));
1880  }, 100);
1881}
1882function aiProcessHeight(jsObject, addIframeUrlAsParam, useIframeTitleForParent) {
1883  var nHeight = jsObject.height;
1884  var nWidth = jsObject.width;
1885  var iAnchor = parseInt(jsObject.anchor, 10);
1886  var id = jsObject.id;
1887  if (nHeight != null) {
1888    try {
1889	  if (addIframeUrlAsParam == "remote") {
1890		  var loc = jsObject.loc;
1891		  if (loc != null && !loc.includes("send_console_log")) {
1892			if (typeof aiChangeUrl === "function") {
1893			  aiChangeUrl(loc);
1894			}
1895		  }
1896	  }
1897	  if (useIframeTitleForParent == "remote") {
1898		  var title = jsObject.title;
1899		  if (title != null && title !== "undefined" && title !== "") {
1900			document.title = decodeURIComponent(title);
1901		  }
1902	  }
1903      if (id != null) {
1904        var iHeight = parseInt(nHeight, 10);
1905        var iWidth = parseInt(nWidth, 10);
1906        aiResizeIframeHeightId(iHeight, iWidth, id);
1907        if (!isNaN(iAnchor) && iAnchor > -1) {
1908          var iframeTop = jQuery("#" + id).offset().top;
1909          setTimeout(function () {
1910            jQuery("html,body").scrollTop(Math.round(iframeTop + iAnchor));
1911            aiShowIframeId(id);
1912          }, 100);
1913        } else {
1914          aiShowIframeId(id);
1915        }
1916      } else {
1917        alert('Please update the ai_external.js to the current version.');
1918      }
1919    } catch (e) {
1920      if (console && console.log) {
1921        console.log(e);
1922      }
1923    }
1924  }
1925}
1926function aiProcessShow(jsObject) {
1927  var id = jsObject.id;
1928  try {
1929    aiShowIframeId(id);
1930  } catch (e) {
1931    if (console && console.log) {
1932      console.log(e);
1933    }
1934  }
1935}
1936function aiDisableRightClick(id) {
1937  try {
1938    window.frames[id].document.oncontextmenu = function () {
1939      return false;
1940    };
1941  } catch (e) {
1942  }
1943}
1944function aiRemoveElementsFromHeight(id, height, removeElements) {
1945  const iframejQuery = jQuery('#' + id);
1946  var elementArray = removeElements.split(',');
1947  var totalHeight = 0;
1948  for (var i = 0; i < elementArray.length; i++) {
1949    try {
1950      var el = elementArray[i];
1951      if (el.includes("|")) {
1952        var rangeArray = el.split('|');
1953        var bottomElement = jQuery(rangeArray[0]);
1954        var beforeBottom = Math.round(bottomElement.offset().top + bottomElement.outerHeight(true));
1955        var nextTop = Math.round(jQuery(rangeArray[1]).offset().top);
1956        totalHeight += nextTop - beforeBottom;
1957      } else if (el === 'top') {
1958        totalHeight += Math.round(iframejQuery.offset().top);
1959      } else if (isNaN(el)) {
1960        totalHeight += jQuery(el).outerHeight(true);
1961      } else {
1962        totalHeight += parseInt(el);
1963      }
1964    } catch (e) {
1965      if (console && console.error) {
1966        console.error('Advanced iframe configuration error: The configuration of remove_elements_from_height "' + removeElements
1967          + '" is invalid. Please check if the elements you defined do exist and ids/classes are defined properly.');
1968        console.log(e);
1969      }
1970    }
1971  }
1972  var calc = 'calc(' + height + ' - ' + totalHeight + 'px)';
1973  iframejQuery.css('height', calc);
1974}
1975function aiTriggerAutoOpen(id, selector, autoclickDelay, hideTime) {
1976  aiDebugExtended("aiTriggerAutoOpen");
1977  if (autoclickDelay === 0) {
1978    aiOpenIframeOnClick(id, selector);
1979  } else {
1980    setTimeout(function () {
1981      aiOpenIframeOnClick(id, selector);
1982    }, autoclickDelay);
1983  }
1984  var now = new Date();
1985  var time = now.getTime();
1986  var expireTime = time + (hideTime * 86400000);
1987  now.setTime(expireTime);
1988  var trimmedSelector = selector.replace(/[^A-Za-z0-9\-]/g, '');
1989  document.cookie = 'ai_disable_autoclick_iframe_' + trimmedSelector + '=Auto open is disabled until this cookie expires;expires=' + now.toUTCString() + ';path=/';
1990}
1991function aiCheckAutoOpenHash(id, autoclickDelay, hideTime) {
1992  if (window.location.hash) {
1993    var hash = window.location.hash;
1994    var trimmedHash = hash.replace(/[^A-Za-z0-9\-]/g, '');
1995    trimmedHash = "#" + trimmedHash;
1996    if (jQuery(trimmedHash).length !== 0) { // id does exist
1997      if (jQuery(trimmedHash).first().attr('target') === id) { // target is iframe
1998        aiTriggerAutoOpen(id, trimmedHash, autoclickDelay, hideTime);
1999      }
2000    }
2001  }
2002}
2003function aiOpenIframeOnClick(id, selector) {
2004  var myelement = jQuery(selector).first().attr("href");
2005  jQuery("#" + id).attr("src", myelement);
2006  jQuery(selector).first().click();
2007}
2008if (!String.prototype.includes) {
2009  String.prototype.includes = function (search, start) {
2010    if (typeof start !== 'number') {
2011      start = 0;
2012    }
2013    if (start + search.length > this.length) {
2014      return false;
2015    } else {
2016      return this.indexOf(search, start) !== -1;
2017    }
2018  };
2019}
2020if (!String.prototype.startsWith) {
2021  String.prototype.startsWith = function (searchString, position) {
2022    position = position || 0;
2023    return this.indexOf(searchString, position) === position;
2024  };
2025}
2026/* Get the documentElement (<html>) to display the page in fullscreen */
2027var elem = document.documentElement;
2028/* View in fullscreen */
2029function aiOpenFullscreen() {
2030  if (aiRealFullscreen) {
2031    if (elem.requestFullscreen) {
2032      elem.requestFullscreen();
2033    } else if (elem.webkitRequestFullscreen) { /* Safari */
2034      elem.webkitRequestFullscreen();
2035    } else if (elem.msRequestFullscreen) { /* IE11 */
2036      elem.msRequestFullscreen();
2037    }
2038  }
2039}
2040/* Close fullscreen */
2041function aiCloseFullscreen() {
2042  if (aiRealFullscreen) {
2043    if (document.exitFullscreen) {
2044      document.exitFullscreen();
2045    } else if (document.webkitExitFullscreen) { /* Safari */
2046      document.webkitExitFullscreen();
2047    } else if (document.msExitFullscreen) { /* IE11 */
2048      document.msExitFullscreen();
2049    }
2050  }
2051}
2052document.addEventListener('fullscreenchange', aiExitHandler);
2053document.addEventListener('webkitfullscreenchange', aiExitHandler);
2054document.addEventListener('mozfullscreenchange', aiExitHandler);
2055document.addEventListener('MSFullscreenChange', aiExitHandler);
2056function aiExitHandler() {
2057  if (!document.fullscreenElement && !document.webkitIsFullScreen && !document.mozFullScreen && !document.msFullscreenElement) {
2058    aiInFullscreen = false;
2059    jQuery('.ai-fullscreen-close').trigger("click");
2060  }
2061};
2062!function(a,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t(require,exports,module):a.CountUp=t()}(this,function(a,t,e){var n=function(a,t,e,n,i,r){function o(a){a=a.toFixed(c.decimals),a+="";var t,e,n,i;if(t=a.split("."),e=t[0],n=t.length>1?c.options.decimal+t[1]:"",i=/(\d+)(\d{3})/,c.options.useGrouping)for(;i.test(e);)e=e.replace(i,"$1"+c.options.separator+"$2");return c.options.prefix+e+n+c.options.suffix}function l(a,t,e,n){return e*(-Math.pow(2,-10*a/n)+1)*1024/1023+t}function s(a){return"number"==typeof a&&!isNaN(a)}for(var u=0,m=["webkit","moz","ms","o"],d=0;d<m.length&&!window.requestAnimationFrame;++d)window.requestAnimationFrame=window[m[d]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[m[d]+"CancelAnimationFrame"]||window[m[d]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(a,t){var e=(new Date).getTime(),n=Math.max(0,16-(e-u)),i=window.setTimeout(function(){a(e+n)},n);return u=e+n,i}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(a){clearTimeout(a)});var c=this;if(c.version=function(){return"1.8.5"},c.options={useEasing:!0,useGrouping:!0,separator:",",decimal:".",easingFn:l,formattingFn:o,prefix:"",suffix:""},r&&"object"==typeof r)for(var f in c.options)r.hasOwnProperty(f)&&null!==r[f]&&(c.options[f]=r[f]);""===c.options.separator&&(c.options.useGrouping=!1),c.initialize=function(){return!!c.initialized||(c.d="string"==typeof a?document.getElementById(a):a,c.d?(c.startVal=Number(t),c.endVal=Number(e),s(c.startVal)&&s(c.endVal)?(c.decimals=Math.max(0,n||0),c.dec=Math.pow(10,c.decimals),c.duration=1e3*Number(i)||2e3,c.countDown=c.startVal>c.endVal,c.frameVal=c.startVal,c.initialized=!0,!0):(console.error("[CountUp] startVal or endVal is not a number",c.startVal,c.endVal),!1)):(console.error("[CountUp] target is null or undefined",c.d),!1))},c.printValue=function(a){var t=c.options.formattingFn(a);"INPUT"===c.d.tagName?this.d.value=t:"text"===c.d.tagName||"tspan"===c.d.tagName?this.d.textContent=t:this.d.innerHTML=t},c.count=function(a){c.startTime||(c.startTime=a),c.timestamp=a;var t=a-c.startTime;c.remaining=c.duration-t,c.options.useEasing?c.countDown?c.frameVal=c.startVal-c.options.easingFn(t,0,c.startVal-c.endVal,c.duration):c.frameVal=c.options.easingFn(t,c.startVal,c.endVal-c.startVal,c.duration):c.countDown?c.frameVal=c.startVal-(c.startVal-c.endVal)*(t/c.duration):c.frameVal=c.startVal+(c.endVal-c.startVal)*(t/c.duration),c.countDown?c.frameVal=c.frameVal<c.endVal?c.endVal:c.frameVal:c.frameVal=c.frameVal>c.endVal?c.endVal:c.frameVal,c.frameVal=Math.round(c.frameVal*c.dec)/c.dec,c.printValue(c.frameVal),t<c.duration?c.rAF=requestAnimationFrame(c.count):c.callback&&c.callback()},c.start=function(a){c.initialize()&&(c.callback=a,c.rAF=requestAnimationFrame(c.count))},c.pauseResume=function(){c.paused?(c.paused=!1,delete c.startTime,c.duration=c.remaining,c.startVal=c.frameVal,requestAnimationFrame(c.count)):(c.paused=!0,cancelAnimationFrame(c.rAF))},c.reset=function(){c.paused=!1,delete c.startTime,c.initialized=!1,c.initialize()&&(cancelAnimationFrame(c.rAF),c.printValue(c.startVal))},c.update=function(a){c.initialize()&&a!==c.frameVal&&(cancelAnimationFrame(c.rAF),c.paused=!1,delete c.startTime,c.startVal=c.frameVal,c.endVal=Number(a),s(c.endVal)?(c.countDown=c.startVal>c.endVal,c.rAF=requestAnimationFrame(c.count)):console.error("[CountUp] update(
2062) - new endVal is not a number",a))},c.initialize()&&c.printValue(c.startVal)};return n});var firstLoaded=false
2063setTimeout(function(){if(!firstLoaded){firstLoaded=true;initialLoad();}},2000)
2064window.addEventListener("DOMContentLoaded",function(){if(!firstLoaded){firstLoaded=true;initialLoad();}});window.addEventListener('scroll',debounceEvents(function(){const allCounter=document.querySelectorAll(".anc-6310-counter-number");allCounter.forEach(function(el){const closest=el.closest('.anc_6310_main_counter');const animationType=closest?Number(closest.getAttribute('data-counter-type')):0;if(animationType!==1&&isScrolledIntoView(el)){if(!el.classList.contains('anc-6310-animation-completed')){el.classList.add('anc-6310-animation-completed');const separator=el.getAttribute('data-anc-6310-thousands-separator')||',';const start=parseFloat(el.getAttribute("data-anc-6310-start")||'0');const end=parseFloat(el.getAttribute("data-anc-6310-end")||'0');const decimal=parseInt(el.getAttribute("data-anc-6310-decimal")||'0');const duration=parseFloat(el.getAttribute("data-anc-6310-duration")||'2');const options={useEasing:false,useGrouping:true,separator:separator,};const counter=new CountUp(el,start,end,decimal,duration,options);if(!counter.error){counter.start();}else{console.error(counter.error);}}}else{el.classList.remove('anc-6310-animation-completed');}});},50));function initialLoad(){let allCounter=document.querySelectorAll(".anc-6310-counter-number");if(allCounter.length){for(let i=0;i<allCounter.length;i++){let separator=allCounter[i].getAttribute("data-anc-6310-thousands-separator");let options={useEasing:false,useGrouping:true,separator:separator,};let ids=allCounter[i].getAttribute("id");let start=allCounter[i].getAttribute("data-anc-6310-start");let end=allCounter[i].getAttribute("data-anc-6310-end");let decimal=allCounter[i].getAttribute("data-anc-6310-decimal");let duration=allCounter[i].getAttribute("data-anc-6310-duration");let demo=new CountUp(ids,start,end,decimal,duration,options);demo.start();const el=document.getElementById(ids);if(el){el.classList.add("anc-6310-animation-completed");}}}}
2065function isScrolledIntoView(el){const rect=el.getBoundingClientRect();const windowHeight=(window.innerHeight||document.documentElement.clientHeight);const windowTop=0;const windowBottom=windowHeight;const elemTop=rect.top;const elemBottom=rect.top+(rect.height/2);return(elemBottom<=windowBottom&&elemTop>=windowTop);}
2066function debounceEvents(func,delay){let timer;return function(){clearTimeout(timer);timer=setTimeout(()=>{func.apply(this,arguments);},delay||300);};};
2067jQuery(document).ready(function(){setTimeout(()=>{let content=jQuery(".anc-6310-counter-count-content-hidden");content.each(function(){let width=jQuery(this).width()+20;jQuery(this).siblings(".span1").css({width:`calc(88% - ${width}px)`,});});},10);});
2068(()=>{"use strict";var t={d:(e,i)=>{for(var s in i)t.o(i,s)&&!t.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:i[s]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function i(t){if(this.formData={},this.tree={},!(t instanceof FormData))return this;this.formData=t;const e=()=>{const t=new Map;return t.largestIndex=0,t.set=function(e,i){""===e?e=t.largestIndex++:/^[0-9]+$/.test(e)&&(e=parseInt(e),t.largestIndex<=e&&(t.largestIndex=e+1)),Map.prototype.set.call(t,e,i)},t};this.tree=e();const i=/^(?<name>[a-z][-a-z0-9_:]*)(?<array>(?:\[(?:[a-z][-a-z0-9_:]*|[0-9]*)\])*)/i;for(const[t,s]of this.formData){const o=t.match(i);if(o)if(""===o.groups.array)this.tree.set(o.groups.name,s);else{const t=[...o.groups.array.matchAll(/\[([a-z][-a-z0-9_:]*|[0-9]*)\]/gi)].map((([t,e])=>e));t.unshift(o.groups.name);const i=t.pop();t.reduce(((t,i)=>{if(/^[0-9]+$/.test(i)&&(i=parseInt(i)),t.get(i)instanceof Map)return t.get(i);const s=e();return t.set(i,s),s}),this.tree).set(i,s)}}}t.r(e),t.d(e,{all:()=>D,any:()=>M,date:()=>m,dayofweek:()=>u,email:()=>r,enum:()=>h,file:()=>d,maxdate:()=>z,maxfilesize:()=>j,maxitems:()=>v,maxlength:()=>x,maxnumber:()=>y,mindate:()=>A,minfilesize:()=>$,minitems:()=>w,minlength:()=>g,minnumber:()=>b,number:()=>c,required:()=>n,requiredfile:()=>a,stepnumber:()=>I,tel:()=>l,time:()=>f,url:()=>p}),i.prototype.entries=function(){return this.tree.entries()},i.prototype.get=function(t){return this.tree.get(t)},i.prototype.getAll=function(t){if(!this.has(t))return[];const e=t=>{const i=[];if(t instanceof Map)for(const[s,o]of t)i.push(...e(o));else""!==t&&i.push(t);return i};return e(this.get(t))},i.prototype.has=function(t){return this.tree.has(t)},i.prototype.keys=function(){return this.tree.keys()},i.prototype.values=function(){return this.tree.values()};const s=i;function o({rule:t,field:e,error:i,...s}){this.rule=t,this.field=e,this.error=i,this.properties=s}const n=function(t){if(0===t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).length)throw new o(this)},a=function(t){if(0===t.getAll(this.field).length)throw new o(this)},r=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>{if(t.length<6)return!1;if(-1===t.indexOf("@",1))return!1;if(t.indexOf("@")!==t.lastIndexOf("@"))return!1;const[e,i]=t.split("@",2);if(!/^[a-zA-Z0-9!#$%&\'*+\/=?^_`{|}~\.-]+$/.test(e))return!1;if(/\.{2,}/.test(i))return!1;if(/(?:^[ \t\n\r\0\x0B.]|[ \t\n\r\0\x0B.]$)/.test(i))return!1;const s=i.split(".");if(s.length<2)return!1;for(const t of s){if(/(?:^[ \t\n\r\0\x0B-]|[ \t\n\r\0\x0B-]$)/.test(t))return!1;if(!/^[a-z0-9-]+$/i.test(t))return!1}return!0})))throw new o(this)},p=function(t){const e=t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t));if(!e.every((t=>{try{return(t=>-1!==["http","https","ftp","ftps","mailto","news","irc","irc6","ircs","gopher","nntp","feed","telnet","mms","rtsp","sms","svn","tel","fax","xmpp","webcal","urn"].indexOf(t))(new URL(t).protocol.replace(/:$/,""))}catch{return!1}}
2068)))throw new o(this)},l=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>(((t=(t=t.replace(/[#*].*$/,"")).replaceAll(/[()/.*#\s-]+/g,"")).startsWith("+")||t.startsWith("00"))&&(t=`+${t.replace(/^[+0]+/,"")}`),!!/^[+]?[0-9]+$/.test(t)&&5<t.length&&t.length<16))))throw new o(this)},c=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>!!/^[-]?[0-9]+(?:[eE][+-]?[0-9]+)?$/.test(t)||!!/^[-]?(?:[0-9]+)?[.][0-9]+(?:[eE][+-]?[0-9]+)?$/.test(t))))throw new o(this)},m=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>{if(!/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t))return!1;const e=new Date(t);return!Number.isNaN(e.valueOf())})))throw new o(this)},f=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>{const e=t.match(/^([0-9]{2})\:([0-9]{2})(?:\:([0-9]{2}))?$/);if(!e)return!1;const i=parseInt(e[1]),s=parseInt(e[2]),o=e[3]?parseInt(e[3]):0;return 0<=i&&i<=23&&0<=s&&s<=59&&0<=o&&o<=59})))throw new o(this)},d=function(t){if(!t.getAll(this.field).every((t=>t instanceof File&&this.accept?.some((e=>/^\.[a-z0-9]+$/i.test(e)?t.name.toLowerCase().endsWith(e.toLowerCase()):(t=>{const e=[],i=t.match(/^(?<toplevel>[a-z]+)\/(?<sub>[*]|[a-z0-9.+-]+)$/i);if(i){const t=i.groups.toplevel.toLowerCase(),s=i.groups.sub.toLowerCase();for(const[o,n]of(()=>{const t=new Map;return t.set("jpg|jpeg|jpe","image/jpeg"),t.set("gif","image/gif"),t.set("png","image/png"),t.set("bmp","image/bmp"),t.set("tiff|tif","image/tiff"),t.set("webp","image/webp"),t.set("ico","image/x-icon"),t.set("heic","image/heic"),t.set("asf|asx","video/x-ms-asf"),t.set("wmv","video/x-ms-wmv"),t.set("wmx","video/x-ms-wmx"),t.set("wm","video/x-ms-wm"),t.set("avi","video/avi"),t.set("divx","video/divx"),t.set("flv","video/x-flv"),t.set("mov|qt","video/quicktime"),t.set("mpeg|mpg|mpe","video/mpeg"),t.set("mp4|m4v","video/mp4"),t.set("ogv","video/ogg"),t.set("webm","video/webm"),t.set("mkv","video/x-matroska"),t.set("3gp|3gpp","video/3gpp"),t.set("3g2|3gp2","video/3gpp2"),t.set("txt|asc|c|cc|h|srt","text/plain"),t.set("csv","text/csv"),t.set("tsv","text/tab-separated-values"),t.set("ics","text/calendar"),t.set("rtx","text/richtext"),t.set("css","text/css"),t.set("htm|html","text/html"),t.set("vtt","text/vtt"),t.set("dfxp","application/ttaf+xml"),t.set("mp3|m4a|m4b","audio/mpeg"),t.set("aac","audio/aac"),t.set("ra|ram","audio/x-realaudio"),t.set("wav","audio/wav"),t.set("ogg|oga","audio/ogg"),t.set("flac","audio/flac"),t.set("mid|midi","audio/midi"),t.set("wma","audio/x-ms-wma"),t.set("wax","audio/x-ms-wax"),t.set("mka","audio/x-matroska"),t.set("rtf","application/rtf"),t.set("js","application/javascript"),t.set("pdf","application/pdf"),t.set("swf","application/x-shockwave-flash"),t.set("class","application/java"),t.set("tar","application/x-tar"),t.set("zip","application/zip"),t.set("gz|gzip","application/x-gzip"),t.set("rar","application/rar"),t.set("7z","application/x-7z-compressed"),t.set("exe","application/x-msdownload"),t.set("psd","application/octet-stream"),t.set("xcf","application/octet-stream"),t.set("doc","application/msword"),t.set("pot|pps|ppt","application/vnd.ms-powerpoint"),t.set("wri","application/vnd.ms-write"),t.set("xla|xls|xlt|xlw","application/vnd.ms-excel"),t.set("mdb","application/vnd.ms-access"),t.set("mpp","application/vnd.ms-project"),t.set("docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"),t.set("docm","application/vnd.ms-word.document.macroEnabled.12"),t.set("dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"),t.set("dotm","application/vnd.ms-word.template.macroEnabled.12"),t.set("xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"),t.set("xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"),t.set("xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"),t.set("xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"),t.set("xltm","application/vnd.ms-excel.template.macroEnabled.12"),t.set("xlam","application/vnd.ms-excel.addin.macroEnabled.12"),t.set("pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"),t.set("pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"),t.set("ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"),t.set("ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"),t.set("potx","application/vnd.openxmlformats-officedocument.presentationml.template"),t.set("potm","application/vnd.ms-powerpoint.template.macroEnabled.12"),t.set("ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"),t.set("sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"),t.set("sldm","application/vnd.ms-powerpoint.slide.macroEnabled.12"),t.set("onetoc|onetoc2|onetmp|onepkg","application/onenote"),t.set("oxps","application/oxps"),t.set("xps","application/vnd.ms-xpsdocument"),t.set("odt","application/vnd.oasis.opendocument.text"),t.set("odp","application/vnd.oasis.opendocument.presentation"),t.set("ods","application/vnd.oasis.opendocument.spreadsheet"),t.set("odg","application/vnd.oasis.opendocument.graphics"),t.set("odc","application/vnd.oasis.opendocument.chart"),t.set("odb","application/vnd.oasis.opendocument.database"),t.set("odf","application/vnd.oasis.opendocument.formula"),t.set("wp|wpd","application/wordperfect"),t.set("key","application/vnd.apple.keynote"),t.set("numbers","application/vnd.apple.numbers"),t.set("pages","application/vnd.apple.pages"),t})())("*"===s&&n.startsWith(t+"/")||n===i[0])&&e.push(...o.split("|"))}return e})(e).some((e=>(e="."+e.trim(),t.name.toLowerCase().endsWith(e.toLowerCase())))))))))throw new o(this)},h=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>this.accept?.some((e=>
2068t===String(e))))))throw new o(this)},u=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>{const e=0===(i=new Date(t).getDay())?7:i;var i;return this.accept?.some((t=>e===parseInt(t)))})))throw new o(this)},w=function(t){if(t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).length<parseInt(this.threshold))throw new o(this)},v=function(t){const e=t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t));if(parseInt(this.threshold)<e.length)throw new o(this)},g=function(t){const e=t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t));let i=0;if(e.forEach((t=>{"string"==typeof t&&(i+=t.length)})),0!==i&&i<parseInt(this.threshold))throw new o(this)},x=function(t){const e=t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t));let i=0;if(e.forEach((t=>{"string"==typeof t&&(i+=t.length)})),parseInt(this.threshold)<i)throw new o(this)},b=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>!(parseFloat(t)<parseFloat(this.threshold)))))throw new o(this)},y=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>!(parseFloat(this.threshold)<parseFloat(t)))))throw new o(this)},A=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>!(/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t)&&/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(this.threshold)&&t<this.threshold))))throw new o(this)},z=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>!(/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t)&&/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(this.threshold)&&this.threshold<t))))throw new o(this)},$=function(t){const e=t.getAll(this.field);let i=0;if(e.forEach((t=>{t instanceof File&&(i+=t.size)})),i<parseInt(this.threshold))throw new o(this)},j=function(t){const e=t.getAll(this.field);let i=0;if(e.forEach((t=>{t instanceof File&&(i+=t.size)})),parseInt(this.threshold)<i)throw new o(this)},I=function(t){const e=t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)),i=parseFloat(this.base),s=parseFloat(this.interval);if(!(0<s))return!0;if(!e.every((t=>{const e=(parseFloat(t)-i)%s;return"0.000000"===Math.abs(e).toFixed(6)||"0.000000"===Math.abs(e-s).toFixed(6)})))throw new o(this)},O=({ruleObj:t,options:i})=>{const{rule:s,...o}=t;return"function"==typeof e[s]&&("function"!=typeof e[s].matches||e[s].matches(o,i))},E=({ruleObj:t,formDataTree:i,options:s})=>{const{rule:o}=t;e[o].call(t,i,s)},k=[],F=t=>[...k].reduce(((t,e)=>i=>e(i,t)),t),D=function(t,e={}){const i=(this.rules??[]).filter((t=>O({ruleObj:t,options:e}))),s=F(E);if(!i.every((i=>{try{s({ruleObj:i,formDataTree:t,options:e})}catch(t){if(!(t instanceof o))throw t;if(void 0!==t.error)throw t;return!1}return!0})))throw new o(this)},M=function(t,e={}){const i=(this.rules??[]).filter((t=>O({ruleObj:t,options:e}))),s=F(E);if(!i.some((i=>{try{s({ruleObj:i,formDataTree:t,options:e})}catch(t){if(!(t instanceof o))throw t;return!1}return!0})))throw new o(this)};var L;window.swv={validators:e,validate:(t,e,i={})=>{const n=(t.rules??[]).filter((t=>O({ruleObj:t,options:i})));if(!n.length)return new Map;const a=F(E),r=new s(e),p=n.reduce(((t,e)=>{try{a({ruleObj:e,formDataTree:r,options:i})}catch(e){if(!(e instanceof o))throw e;if(void 0!==e.field&&!t.has(e.field)&&void 0!==e.error)return t.set(e.field,e)}return t}),new Map);for(const t of r.keys())p.has(t)||p.set(t,{validInputs:r.getAll(t)});return p},use:t=>{k.push(t)},...null!==(L=window.swv)&&void 0!==L?L:{}}})();
2069(()=>{"use strict";const e=window.wp.i18n,t=e=>Math.abs(parseInt(e,10)),a=(e,t,a)=>{const n=new CustomEvent(`wpcf7${t}`,{bubbles:!0,detail:a});"string"==typeof e&&(e=document.querySelector(e)),e.dispatchEvent(n)},n=(e,t)=>{const n=new Map([["init","init"],["validation_failed","invalid"],["acceptance_missing","unaccepted"],["spam","spam"],["aborted","aborted"],["mail_sent","sent"],["mail_failed","failed"],["submitting","submitting"],["resetting","resetting"],["validating","validating"],["payment_required","payment-required"]]);n.has(t)&&(t=n.get(t)),Array.from(n.values()).includes(t)||(t=`custom-${t=(t=t.replace(/[^0-9a-z]+/i," ").trim()).replace(/\s+/,"-")}`);const r=e.getAttribute("data-status");if(e.wpcf7.status=t,e.setAttribute("data-status",t),e.classList.add(t),r&&r!==t){e.classList.remove(r);const t={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,
2069status:e.wpcf7.status,prevStatus:r};a(e,"statuschanged",t)}return t},r=e=>{const{root:t,namespace:a="contact-form-7/v1"}=wpcf7.api;return c.reduceRight(((e,t)=>a=>t(a,e)),(e=>{let n,r,{url:c,path:o,endpoint:s,headers:i,body:l,data:p,...d}=e;"string"==typeof s&&(n=a.replace(/^\/|\/$/g,""),r=s.replace(/^\//,""),o=r?n+"/"+r:n),"string"==typeof o&&(-1!==t.indexOf("?")&&(o=o.replace("?","&")),o=o.replace(/^\//,""),c=t+o),i={Accept:"application/json, */*;q=0.1",...i},delete i["X-WP-Nonce"],p&&(l=JSON.stringify(p),i["Content-Type"]="application/json");const f={code:"fetch_error",message:"You are probably offline."},u={code:"invalid_json",message:"The response is not a valid JSON response."};return window.fetch(c||o||window.location.href,{...d,headers:i,body:l}).then((e=>Promise.resolve(e).then((e=>{if(e.status>=200&&e.status<300)return e;throw e})).then((e=>{if(204===e.status)return null;if(e&&e.json)return e.json().catch((()=>{throw u}));throw u}))),(()=>{throw f}))}))(e)},c=[];function o(e,t={}){const{target:a,scope:r=e,...c}=t;if(void 0===e.wpcf7?.schema)return;const o={...e.wpcf7.schema};if(void 0!==a){if(!e.contains(a))return;if(!a.closest(".wpcf7-form-control-wrap[data-name]"))return;if(a.closest(".novalidate"))return}const p=r.querySelectorAll(".wpcf7-form-control-wrap"),d=Array.from(p).reduce(((e,t)=>
2069(t.closest(".novalidate")||t.querySelectorAll(":where( input, textarea, select ):enabled").forEach((t=>{if(t.name)switch(t.type){case"button":case"image":case"reset":case"submit":break;case"checkbox":case"radio":t.checked&&e.append(t.name,t.value);break;case"select-multiple":for(const a of t.selectedOptions)e.append(t.name,a.value);break;case"file":for(const a of t.files)e.append(t.name,a);break;default:e.append(t.name,t.value)}})),e)),new FormData),f=e.getAttribute("data-status");Promise.resolve(n(e,"validating")).then((n=>{if(void 0!==swv){const n=swv.validate(o,d,t);for(const t of p){if(void 0===t.dataset.name)continue;const c=t.dataset.name;if(n.has(c)){const{error:t,validInputs:a}=n.get(c);i(e,c),void 0!==t&&s(e,c,t,{scope:r}),l(e,c,null!=a?a:[])}if(t.contains(a))break}}})).finally((()=>{n(e,f)}))}r.use=e=>{c.unshift(e)};const s=(e,t,a,n)=>{const{scope:r=e,...c}=null!=n?n:{},o=`${e.wpcf7?.unitTag}-ve-${t}`.replaceAll(/[^0-9a-z_-]+/gi,""),s=e.querySelector(`.wpcf7-form-control-wrap[data-name="${t}"] .wpcf7-form-control`);(()=>{const t=document.createElement("li");t.setAttribute("id",o),s&&s.id?t.insertAdjacentHTML("beforeend",`<a href="#${s.id}">${a}</a>`):t.insertAdjacentText("beforeend",a),e.wpcf7.parent.querySelector(".screen-reader-response ul").appendChild(t)})(),r.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${t}"]`).forEach((e=>{const t=document.createElement("span");t.classList.add("wpcf7-not-valid-tip"),t.setAttribute("aria-hidden","true"),t.insertAdjacentText("beforeend",a),e.appendChild(t),e.querySelectorAll("[aria-invalid]").forEach((e=>{e.setAttribute("aria-invalid","true")})),e.querySelectorAll(".wpcf7-form-control").forEach((e=>{e.classList.add("wpcf7-not-valid"),e.setAttribute("aria-describedby",o),"function"==typeof e.setCustomValidity&&e.setCustomValidity(a),e.closest(".use-floating-validation-tip")&&(e.addEventListener("focus",(e=>{t.setAttribute("style","display: none")})),t.addEventListener("click",(e=>{t.setAttribute("style","display: none")})))}))}))},i=(e,t)=>{const a=`${e.wpcf7?.unitTag}-ve-${t}`.replaceAll(/[^0-9a-z_-]+/gi,"");e.wpcf7.parent.querySelector(`.screen-reader-response ul li#${a}`)?.remove(),e.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${t}"]`).forEach((e=>{e.querySelector(".wpcf7-not-valid-tip")?.remove(),e.querySelectorAll("[aria-invalid]").forEach((e=>{e.setAttribute("aria-invalid","false")})),e.querySelectorAll(".wpcf7-form-control").forEach((e=>{e.removeAttribute("aria-describedby"),e.classList.remove("wpcf7-not-valid"),"function"==typeof e.setCustomValidity&&e.setCustomValidity("")}))}))},l=(e,t,a)=>{e.querySelectorAll(`[data-reflection-of="${t}"]`).forEach((e=>{if("output"===e.tagName.toLowerCase()){const t=e;0===a.length&&a.push(t.dataset.default),a.slice(0,1).forEach((e=>{e instanceof File&&(e=e.name),t.textContent=e}))}else e.querySelectorAll("output").forEach((e=>{e.hasAttribute("data-default")?0===a.length?e.removeAttribute("hidden"):e.setAttribute("hidden","hidden"):e.remove()})),a.forEach((a=>{a instanceof File&&(a=a.name);const n=document.createElement("output");n.setAttribute("name",t),n.textContent=a,e.appendChild(n)}))}))};function p(e,t={}){if(wpcf7.blocked)return d(e),void n(e,"submitting");const c=new FormData(e);t.submitter&&t.submitter.name&&c.append(t.submitter.name,t.submitter.value);const o={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,inputs:Array.from(c,(e=>{const t=e[0],a=e[1];return!t.match(/^_/)&&{name:t,value:a}})).filter((e=>!1!==e)),formData:c};r({endpoint:`contact-forms/${e.wpcf7.id}/feedback`,method:"POST",body:c,wpcf7:{endpoint:"feedback",form:e,detail:o}}).then((t=>{const r=n(e,t.status);return o.status=t.status,o.apiResponse=t,["invalid","unaccepted","spam","aborted"].includes(r)?a(e,r,o):["sent","failed"].includes(r)&&a(e,`mail${r}`,o),a(e,"submit",o),t})).then((t=>{t.posted_data_hash&&(e.querySelector('input[name="_wpcf7_posted_data_hash"]').value=t.posted_data_hash),"mail_sent"===t.status&&(e.reset(),e.wpcf7.resetOnMailSent=!0),t.invalid_fields&&t.invalid_fields.forEach((t=>{s(e,t.field,t.message)})),e.wpcf7.parent.querySelector('.screen-reader-response [role="status"]').insertAdjacentText("beforeend",t.message),e.querySelectorAll(".wpcf7-response-output").forEach((e=>{e.innerText=t.message}))})).catch((e=>console.error(e)))}r.use(((e,t)=>
2069{if(e.wpcf7&&"feedback"===e.wpcf7.endpoint){const{form:t,detail:r}=e.wpcf7;d(t),a(t,"beforesubmit",r),n(t,"submitting")}return t(e)}));const d=e=>{e.querySelectorAll(".wpcf7-form-control-wrap").forEach((t=>{t.dataset.name&&i(e,t.dataset.name)})),e.wpcf7.parent.querySelector('.screen-reader-response [role="status"]').innerText="",e.querySelectorAll(".wpcf7-response-output").forEach((e=>{e.innerText=""}))};function f(e){const t=new FormData(e),c={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,inputs:Array.from(t,(e=>{const t=e[0],a=e[1];return!t.match(/^_/)&&{name:t,value:a}})).filter((e=>!1!==e)),formData:t};r({endpoint:`contact-forms/${e.wpcf7.id}/refill`,method:"GET",wpcf7:{endpoint:"refill",form:e,detail:c}}).then((t=>{e.wpcf7.resetOnMailSent?(delete e.wpcf7.resetOnMailSent,n(e,"mail_sent")):n(e,"init"),c.apiResponse=t,a(e,"reset",c)})).catch((e=>console.error(e)))}r.use(((e,t)=>{if(e.wpcf7&&"refill"===e.wpcf7.endpoint){const{form:t,detail:a}=e.wpcf7;d(t),n(t,"resetting")}return t(e)}));const u=(e,t)=>{for(const a in t){const n=t[a];e.querySelectorAll(`input[name="${a}"]`).forEach((e=>{e.value=""})),e.querySelectorAll(`img.wpcf7-captcha-${a.replaceAll(":","")}`).forEach((e=>{e.setAttribute("src",n)}));const r=/([0-9]+)\.(png|gif|jpeg)$/.exec(n);r&&e.querySelectorAll(`input[name="_wpcf7_captcha_challenge_${a}"]`).forEach((e=>{e.value=r[1]}))}},m=(e,t)=>{for(const a in t){const n=t[a][0],r=t[a][1];e.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${a}"]`).forEach((e=>{e.querySelector(`input[name="${a}"]`).value="",e.querySelector(".wpcf7-quiz-label").textContent=n,e.querySelector(`input[name="_wpcf7_quiz_answer_${a}"]`).value=r}))}};function w(e){const a=new FormData(e);e.wpcf7={id:t(a.get("_wpcf7")),status:e.getAttribute("data-status"),pluginVersion:a.get("_wpcf7_version"),locale:a.get("_wpcf7_locale"),unitTag:a.get("_wpcf7_unit_tag"),containerPost:t(a.get("_wpcf7_container_post")),parent:e.closest(".wpcf7"),get schema(){return wpcf7.schemas.get(this.id)}},wpcf7.schemas.set(e.wpcf7.id,void 0),e.querySelectorAll(".has-spinner").forEach((e=>{e.insertAdjacentHTML("afterend",'<span class="wpcf7-spinner"></span>')})),(e=>{e.querySelectorAll(".wpcf7-exclusive-checkbox").forEach((t=>{t.addEventListener("change",(t=>{const a=t.target.getAttribute("name");e.querySelectorAll(`input[type="checkbox"][name="${a}"]`).forEach((e=>{e!==t.target&&(e.checked=!1)}))}))}))})(e),(e=>{e.querySelectorAll(".has-free-text").forEach((t=>{const a=t.querySelector("input.wpcf7-free-text"),n=t.querySelector('input[type="checkbox"], input[type="radio"]');a.disabled=!n.checked,e.addEventListener("change",(e=>{a.disabled=!n.checked,e.target===n&&n.checked&&a.focus()}))}))})(e),(e=>{e.querySelectorAll(".wpcf7-validates-as-url").forEach((e=>{e.addEventListener("change",(t=>{let a=e.value.trim();a&&!a.match(/^[a-z][a-z0-9.+-]*:/i)&&-1!==a.indexOf(".")&&(a=a.replace(/^\/+/,""),a="http://"+a),e.value=a}))}))})(e),(e=>{if(!e.querySelector(".wpcf7-acceptance")||e.classList.contains("wpcf7-acceptance-as-validation"))return;const t=()=>{let t=!0;e.querySelectorAll(".wpcf7-acceptance").forEach((e=>{if(!t||e.classList.contains("optional"))return;const a=e.querySelector('input[type="checkbox"]');(e.classList.contains("invert")&&a.checked||!e.classList.contains("invert")&&!a.checked)&&(t=!1)})),e.querySelectorAll(".wpcf7-submit").forEach((e=>{e.disabled=!t}))};t(),e.addEventListener("change",(e=>{t()})),e.addEventListener("wpcf7reset",(e=>{t()}))})(e),(e=>{const a=(e,a)=>{const n=t(e.getAttribute("data-starting-value")),r=t(e.getAttribute("data-maximum-value")),c=t(e.getAttribute("data-minimum-value")),o=e.classList.contains("down")?n-a.value.trim().length:a.value.trim().length;e.setAttribute("data-current-value",o),e.innerText=o,r&&r<a.value.length?e.classList.add("too-long"):e.classList.remove("too-long"),c&&a.value.length<c?e.classList.add("too-short"):e.classList.remove("too-short")},n=t=>{t={init:!1,...t},e.querySelectorAll(".wpcf7-character-count").forEach((n=>{const r=n.getAttribute("data-target-name"),c=e.querySelector(`[name="${r}"]`);c&&(c.value=c.defaultValue,a(n,c),t.init&&c.addEventListener("keyup",(e=>{a(n,c)}
2069)))}))};n({init:!0}),e.addEventListener("wpcf7reset",(e=>{n()}))})(e),window.addEventListener("load",(t=>{wpcf7.cached&&e.reset()})),e.addEventListener("reset",(t=>{wpcf7.reset(e)})),e.addEventListener("submit",(t=>{wpcf7.submit(e,{submitter:t.submitter}),t.preventDefault()})),e.addEventListener("wpcf7submit",(t=>{t.detail.apiResponse.captcha&&u(e,t.detail.apiResponse.captcha),t.detail.apiResponse.quiz&&m(e,t.detail.apiResponse.quiz)})),e.addEventListener("wpcf7reset",(t=>{t.detail.apiResponse.captcha&&u(e,t.detail.apiResponse.captcha),t.detail.apiResponse.quiz&&m(e,t.detail.apiResponse.quiz)})),e.addEventListener("change",(t=>{t.target.closest(".wpcf7-form-control")&&wpcf7.validate(e,{target:t.target})})),e.addEventListener("wpcf7statuschanged",(t=>{const a=t.detail.status;e.querySelectorAll(".active-on-any").forEach((e=>{e.removeAttribute("inert"),e.classList.remove("active-on-any")})),e.querySelectorAll(`.inert-on-${a}`).forEach((e=>{e.setAttribute("inert","inert"),e.classList.add("active-on-any")}))}))}document.addEventListener("DOMContentLoaded",(t=>{var a;if("undefined"!=typeof wpcf7)if(void 0!==wpcf7.api)if("function"==typeof window.fetch)if("function"==typeof window.FormData)if("function"==typeof NodeList.prototype.forEach)if("function"==typeof String.prototype.replaceAll){wpcf7={init:w,submit:p,reset:f,validate:o,schemas:new Map,...null!==(a=wpcf7)&&void 0!==a?a:{}},document.querySelectorAll("form .wpcf7[data-wpcf7-id]").forEach((t=>{const a=document.createElement("p");a.setAttribute("class","wpcf7-form-in-wrong-place");const n=document.createElement("strong");n.append((0,e.__)("Error:","contact-form-7"));const r=(0,e.__)("This contact form is placed in the wrong place.","contact-form-7");a.append(n," ",r),t.replaceWith(a)})),document.querySelectorAll(".wpcf7 > form").forEach((e=>{wpcf7.init(e),e.closest(".wpcf7").classList.replace("no-js","js")}));for(const e of wpcf7.schemas.keys())r({endpoint:`contact-forms/${e}/feedback/schema`,method:"GET"}).then((t=>{wpcf7.schemas.set(e,t)}))}else console.error("Your browser does not support String.replaceAll().");else console.error("Your browser does not support NodeList.forEach().");else console.error("Your browser does not support window.FormData().");else console.error("Your browser does not support window.fetch().");else console.error("wpcf7.api is not defined.");else console.error("wpcf7 is not defined.")}))})();
2070/*! content-views 07-2026 */
2071/*!
2072 * Bootstrap Custom v3.4.2
2073 * Customized build (picked components, conflict prevention, security fixes)
2074 */
2075if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one("bsTransitionEnd",function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b(),a.support.transition&&(a.event.special.bsTransitionEnd={bindType:a.support.transition.end,delegateType:a.support.transition.end,handle:function(b){return a(b.target).is(this)?b.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),+function(a){function b(b){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},c.DEFAULTS,d.data(),"object"==typeof b&&b),g="string"==typeof b?b:f.cvslide;e||d.data("bs.carousel",e=new c(this,f)),"number"==typeof b?e.to(b):g?e[g]():f.interval&&e.pause().cycle()})}var c=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".pt-cv-carousel-indicators"),this.options=c,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",a.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",a.proxy(this.pause,this)).on("mouseleave.bs.carousel",a.proxy(this.cycle,this))};c.VERSION="3.4.2",c.TRANSITION_DURATION=600,c.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0}
vendor: 4,958 bytes, line 2075
2075,c.prototype.keydown=function(a){if(!/input|textarea/i.test(a.target.tagName)){switch(a.which){case 37:this.prev();break;case 39:this.next();break;default:return}a.preventDefault()}},c.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},c.prototype.getItemIndex=function(a){return this.$items=a.parent().children(".item"),this.$items.index(a||this.$active)},c.prototype.getItemForDirection=function(a,b){var c=this.getItemIndex(b),d="prev"==a&&0===c||"next"==a&&c==this.$items.length-1;if(d&&!this.options.wrap)return b;var e="prev"==a?-1:1,f=(c+e)%this.$items.length;return this.$items.eq(f)},c.prototype.to=function(a){var b=this,c=this.getItemIndex(this.$active=this.$element.find(".item.active"));return a>this.$items.length-1||0>a?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){b.to(a)}):c==a?this.pause().cycle():this.slide(a>c?"next":"prev",this.$items.eq(a))},c.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},c.prototype.next=function(){return this.sliding?void 0:this.slide("next")},c.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},c.prototype.slide=function(b,d){var e=this.$element.find(".item.active"),f=d||this.getItemForDirection(b,e),g=this.interval,h="next"==b?"left":"right",i=this;if(f.hasClass("active"))return this.sliding=!1;var j=f[0],k=a.Event("slide.bs.carousel",{relatedTarget:j,direction:h});if(this.$element.trigger(k),!k.isDefaultPrevented()){if(this.sliding=!0,g&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var l=a(this.$indicators.children()[this.getItemIndex(f)]);l&&l.addClass("active")}var m=a.Event("slid.bs.carousel",{relatedTarget:j,direction:h});return a.support.transition&&this.$element.hasClass("pt-cv-slide")?(f.addClass(b),"object"==typeof f&&f.length&&f[0].offsetWidth,e.addClass(h),f.addClass(h),e.one("bsTransitionEnd",function(){f.removeClass([b,h].join(" ")).addClass("active"),e.removeClass(["active",h].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger(m)},0)}).emulateTransitionEnd(c.TRANSITION_DURATION)):(e.removeClass("active"),f.addClass("active"),this.sliding=!1,this.$element.trigger(m)),g&&this.cycle(),this}};a.fn.cvcarousel=b,a.fn.cvcarousel.Constructor=c;var d=function(c){var d=a(this),e=d.attr("href");e&&(e=e.replace(/.*(?=#[^\s]+$)/,""));var f=d.attr("data-target"),g=a(document).find(f);if(!g.hasClass("pt-cv-carousel"))return void c.preventDefault();var h=a.extend({},g.data(),d.data()),i=d.attr("data-cvslide-to");i&&(h.interval=!1),b.call(g,h),i&&g.data("bs.carousel").to(i),c.preventDefault()};a(document).ready(function(){a(".pt-cv-wrapper").on("click.bs.carousel.data-api","[data-cvslide]",d).on("click.bs.carousel.data-api","[data-cvslide-to]",d)}),a(window).on("load",function(){a('[data-ride="cvcarousel"]',".pt-cv-wrapper").each(function(){var c=a(this);b.call(c,c.data())})})}(jQuery),+function(a){function b(b){var c,d=b.attr("data-target")||(c=b.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"");return a(document).find(d)}function c(b){return this.each(function(){var c=a(this),e=c.data("bs.collapse"),f=a.extend({},d.DEFAULTS,c.data(),"object"==typeof b&&b);!e&&f.toggle&&/show|hide/.test(b)&&(f.toggle=!1),e||c.data("bs.collapse",e=new d(this,f)),"string"==typeof b&&e[b]()})}var d=function(b,c){this.$element=a(b),this.options=a.extend({},d.DEFAULTS,c),this.$trigger=a('[data-toggle="cvcollapse"][href="#'+b.id+'"],[data-toggle="cvcollapse"][data-target="#'+b.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};d.VERSION="3.4.2",d.TRANSITION_DURATION=350,d.DEFAULTS={toggle:!0},d.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},d.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var b,e=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(e&&e.length&&(b=e.data("bs.collapse"),b&&b.transitioning))){var f=a.Event("show.bs.collapse");if(this.$element.trigger(f),!f.isDefaultPrevented()){!window.cv_collapse_ignore_others&&e&&e.length&&(c.call(e,"hide"),b||e.data("bs.collapse",null));var g=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[g](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var h=function(){this.$element.removeClass("collapsing").addClass("collapse in")[g](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return h.call(this);
vendor: 2,556 bytes, line 2075
2075var i=a.camelCase(["scroll",g].join("-"));this.$element.one("bsTransitionEnd",a.proxy(h,this)).emulateTransitionEnd(d.TRANSITION_DURATION)[g](this.$element[0][i])}}}},d.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=a.Event("hide.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var e=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return a.support.transition?void this.$element[c](0).one("bsTransitionEnd",a.proxy(e,this)).emulateTransitionEnd(d.TRANSITION_DURATION):e.call(this)}}},d.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},d.prototype.getParent=function(){return a(document).find(this.options.parent).find('[data-toggle="cvcollapse"][data-parent="'+this.options.parent+'"]').each(a.proxy(function(c,d){var e=a(d);this.addAriaAndCollapsedClass(b(e),e)},this)).end()},d.prototype.addAriaAndCollapsedClass=function(a,b){var c=a.hasClass("in");a.attr("aria-expanded",c),b.toggleClass("collapsed",!c).attr("aria-expanded",c)};a.fn.cvcollapse=c,a.fn.cvcollapse.Constructor=d,a(document).ready(function(){a(".pt-cv-wrapper").on("click.bs.collapse.data-api",'[data-toggle="cvcollapse"]',function(d){var e=a(this);e.attr("data-target")||d.preventDefault();var f=b(e),g=f.data("bs.collapse"),h=g?"toggle":e.data();c.call(f,h)})})}(jQuery),+function(a){function b(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#[A-Za-z]/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d="#"!==c?a(document).find(c):null;return d&&d.length?d:b.parent()}function c(c){c&&3===c.which||(a(d).remove(),a(e).each(function(){var d=a(this),e=b(d),f={relatedTarget:this};e.hasClass("open")&&(c&&"click"==c.type&&/input|textarea/i.test(c.target.tagName)&&a.contains(e[0],c.target)||(e.trigger(c=a.Event("hide.bs.dropdown",f)),c.isDefaultPrevented()||(d.attr("aria-expanded","false"),e.removeClass("open").trigger(a.Event("hidden.bs.dropdown",f)))))}))}var d=".dropdown-backdrop",e='[data-toggle="dropdown"]',f=function(b){a(b).on("click.bs.dropdown",this.toggle)};f.VERSION="3.4.2",f.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=b(e),g=f.hasClass("open");if(c(),!g){"ontouchstart"in document.documentElement&&!f.closest(".
2075navbar-nav").length&&a(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(a(this)).on("click",c);var h={relatedTarget:this};if(f.trigger(d=a.Event("show.bs.dropdown",h)),d.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),f.toggleClass("open").trigger(a.Event("shown.bs.dropdown",h))}return!1}},f.prototype.keydown=function(c){if(/(38|40|27|32)/.test(c.which)&&!/input|textarea/i.test(c.target.tagName)){var d=a(this);if(c.preventDefault(),c.stopPropagation(),!d.is(".disabled, :disabled")){var f=b(d),g=f.hasClass("open");if(!g&&27!=c.which||g&&27==c.which)return 27==c.which&&f.find(e).trigger("focus"),d.trigger("click");var h=" li:not(.disabled):visible a",i=f.find(".dropdown-menu"+h);if(i.length){var j=i.index(c.target);38==c.which&&j>0&&j--,40==c.which&&j<i.length-1&&j++,~j||(j=0),i.eq(j).trigger("focus")}}}};a(document).ready(function(){a(".pt-cv-wrapper").on("click.bs.dropdown.data-api",c).on("click.bs.dropdown.data-api",".dropdown form",function(a){a.stopPropagation()}).on("click.bs.dropdown.data-api",e,f.prototype.toggle).on("keydown.bs.dropdown.data-api",e,f.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",f.prototype.keydown)})}(jQuery),+function(a){function b(b){return this.each(function(){var d=a(this),e=d.data("bs.tab");e||d.data("bs.tab",e=new c(this)),"string"==typeof b&&e[b]()})}var c=function(b){this.element=a(b)};c.VERSION="3.4.2",c.TRANSITION_DURATION=150,c.prototype.show=function(){var b=this.element,c=b.closest("ul:not(.dropdown-menu)"),d=b.data("target");if(d||(d=b.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,"")),!b.parent("li").hasClass("active")){var e=c.find(".active:last a"),f=a.Event("hide.bs.tab",{relatedTarget:b[0]}),g=a.Event("show.bs.tab",{relatedTarget:e[0]});if(e.trigger(f),b.trigger(g),!g.isDefaultPrevented()&&!f.isDefaultPrevented()){var h=a(document).find(d);this.activate(b.closest("li"),c),this.activate(h,h.parent(),function(){e.trigger({type:"hidden.bs.tab",relatedTarget:b[0]}),b.trigger({type:"shown.bs.tab",relatedTarget:e[0]})})}}},c.prototype.activate=function(b,d,e){function f(){g.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),b.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),h?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu").length&&b.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),e&&e()}var g=d.find("> .active"),h=e&&a.support.transition&&(g.length&&g.hasClass("fade")||!!d.find("> .fade").length);g.length&&h?g.one("bsTransitionEnd",f).emulateTransitionEnd(c.TRANSITION_DURATION):f(),g.removeClass("in")};var d=function(c){c.preventDefault(),b.call(a(this),"show")};a(document).ready(function(){a(".pt-cv-wrapper").on("click.bs.tab.data-api",'[data-toggle="tab"]',d).on("click.bs.tab.data-api",'[data-toggle="pill"]',d)})}(jQuery),
2076/*!
2077 * Bootstrap paginator v0.5
2078 * Copyright 2013 Yun Lai <[email protected]>
2079 * Licensed http://www.apache.org/licenses/LICENSE-2.0
2080 */
2081function(a){var b=function(a,b){this.init(a,b)},c=null;b.prototype={init:function(b,c){this.$element=a(b);{var d=c&&c.bootstrapMajorVersion?c.bootstrapMajorVersion:a.fn.bootstrapPaginator.defaults.bootstrapMajorVersion;this.$element.attr("id")}if(2===d&&!this.$element.is("div"))throw"in Bootstrap version 2 the pagination must be a div element. Or if you are using Bootstrap pagination 3. Please specify it in bootstrapMajorVersion in the option";if(d>2&&!this.$element.is("ul"))throw"in Bootstrap version 3 the pagination root item must be an ul element.";this.currentPage=1,this.lastPage=1,this.setOptions(c),this.initialized=!0},setOptions:function(b){this.options=a.extend({},this.options||a.fn.bootstrapPaginator.defaults,b),this.totalPages=parseInt(this.options.totalPages,10),this.numberOfPages=parseInt(this.options.numberOfPages,10),b&&"undefined"!=typeof b.currentPage&&this.setCurrentPage(b.currentPage),this.listen(),this.render(),this.initialized||this.lastPage===this.currentPage||this.$element.trigger("page-changed",[this.lastPage,this.currentPage])},listen:function(){this.$element.off("page-clicked"),this.$element.off("page-changed"),"function"==typeof this.options.onPageClicked&&this.$element.on("page-clicked",this.options.onPageClicked),"function"==typeof this.options.onPageChanged&&this.$element.on("page-changed",this.options.onPageChanged),this.$element.on("page-clicked",this.onPageClicked)},destroy:function(){this.$element.off("page-clicked"),this.$element.off("page-changed"),this.$element.removeData("bootstrapPaginator"),this.$element.empty()},show:function(a){this.setCurrentPage(a),this.render(),this.lastPage!==this.currentPage&&this.$element.trigger("page-changed",[this.lastPage,this.currentPage])},showNext:function(){var a=this.getPages();a.next&&this.show(a.next)},showPrevious:function(){var a=this.getPages();a.prev&&this.show(a.prev)},showFirst:function(){var a=this.getPages();a.first&&this.show(a.first)},showLast:function(){var a=this.getPages();a.last&&this.show(a.last)},onPageItemClicked:function(a){var b=a.data.type,c=a.data.page;this.$element.trigger("page-clicked",[a,b,c])},onPageClicked:function(b,c,d,e){var f=a(b.currentTarget);switch(d){case"first":f.bootstrapPaginator("showFirst");break;case"prev":f.bootstrapPaginator("showPrevious");break;case"next":f.bootstrapPaginator("showNext");break;case"last":f.bootstrapPaginator("showLast");break;case"page":f.bootstrapPaginator("show",e)}},render:function(){var b=this.getValueFromOption(this.options.containerClass,this.$element),c=this.options.size||"normal",d=this.options.alignment||"left",e=this.getPages(),f=2===this.options.bootstrapMajorVersion?a("<ul></ul>"):this.$element,g=2===this.options.bootstrapMajorVersion?this.getValueFromOption(this.options.listContainerClass,f):null,h=null,i=null,j=null,k=null,l=null,m=0;switch(c.toLowerCase()){case"large":case"small":case"mini":this.$element.addClass(a.fn.bootstrapPaginator.sizeArray[this.options.bootstrapMajorVersion][c.toLowerCase()])}if(2===this.options.bootstrapMajorVersion)switch(d.toLowerCase()){case"center":this.$element.addClass("pagination-centered");break;case"right":this.$element.addClass("pagination-right")}for(this.$element.addClass(b),this.$element.empty(),2===this.options.bootstrapMajorVersion&&(this.$element.append(f),f.addClass(g)),this.pageRef=[],e.first&&(h=this.buildPageItem("first",e.first),h&&f.append(h)),e.prev&&(i=this.buildPageItem("prev",e.prev),i&&f.append(i)),m=0;m<e.length;m+=1)l=this.buildPageItem("page",e[m]),l&&f.append(l);e.next&&(j=this.buildPageItem("next",e.next),j&&f.append(j)),e.last&&(k=this.buildPageItem("last",e.last),k&&f.append(k))},buildPageItem:function(b,c){var d=a("<li></li>"),e=a("<a></a>"),f="",g="",h=this.options.itemContainerClass(b,c,this.currentPage),i=this.getValueFromOption(this.options.itemContentClass,b,c,this.currentPage),j=null;switch(b){case"first":if(!this.getValueFromOption(this.options.shouldShowPage,b,c,this.currentPage))return;f=this.options.itemTexts(b,c,this.currentPage),g=this.options.tooltipTitles(b,c,this.currentPage);break;case"last":if(!this.getValueFromOption(this.options.shouldShowPage,b,c,this.currentPage))return;f=this.options.itemTexts(b,c,this.currentPage),g=this.options.tooltipTitles(b,c,this.currentPage);break;case"prev":if(!this.getValueFromOption(this.options.shouldShowPage,b,c,this.currentPage))return;f=this.options.itemTexts(b,c,this.currentPage),g=this.options.tooltipTitles(b,c,this.currentPage);break;case"next":if(!this.getValueFromOption(this.options.shouldShowPage,b,c,this.currentPage))return;f=this.options.itemTexts(b,c,this.currentPage),g=this.options.tooltipTitles(b,c,this.currentPage);break;case"page":if(!this.getValueFromOption(this.options.shouldShowPage,b,c,this.currentPage))return;f=this.options.itemTexts(b,c,this.currentPage),g=this.options.tooltipTitles(b,c,this.currentPage)}return d.addClass(h).append(e),e.addClass(i).html(f).on("click",null,{type:b,page:c},a.proxy(this.onPageItemClicked,this)),this.options.pageUrl&&e.attr("href",this.getValueFromOption(this.options.pageUrl,b,c,this.currentPage)),this.options.useBootstrapTooltip?(j=a.extend({},this.options.bootstrapTooltipOptions,{title:g}),e.tooltip(j)):e.attr("title",g),d},setCurrentPage:function(a){(a>this.totalPages||1>a)&&(a=this.totalPages),this.lastPage=this.currentPage,this.currentPage=parseInt(a,10)},getPages:function(){var a=this.totalPages,b=this.currentPage-parseInt(this.numberOfPages/2),b=b+this.numberOfPages>a?a-this.numberOfPages+1:b,c=[],d=0,e=0;for(b=1>b?1:b,d=b,e=0;e<this.numberOfPages&&a>=d;d+=1,e+=1)c.push(d);return c.first=1,c.prev=this.currentPage>1?this.currentPage-1:1,c.next=this.currentPage<a?this.currentPage+1:a,c.last=a,c.current=this.currentPage,c.total=a,c.numberOfPages=this.options.numberOfPages,c},getValueFromOption:function(a){var b=null,c=Array.prototype.slice.call(arguments,1
2081);return b="function"==typeof a?a.apply(this,c):a}},c=a.fn.bootstrapPaginator,a.fn.bootstrapPaginator=function(c){var d=arguments,e=null;return a(this).each(function(f,g){var h=a(g),i=h.data("bootstrapPaginator"),j="object"!=typeof c?null:c;if(!i)return i=new b(this,j),h=a(i.$element),void h.data("bootstrapPaginator",i);if("string"==typeof c){if(!i[c])throw"Method "+c+" does not exist";e=i[c].apply(i,Array.prototype.slice.call(d,1))}else e=i.setOptions(c)}),e},a.fn.bootstrapPaginator.sizeArray={2:{large:"pagination-large",small:"pagination-small",mini:"pagination-mini"},3:{large:"pagination-lg",small:"pagination-sm",mini:""}},a.fn.bootstrapPaginator.defaults={containerClass:"",size:"normal",alignment:"left",bootstrapMajorVersion:2,listContainerClass:"",itemContainerClass:function(a,b,c){return b===c?"active":""},itemContentClass:function(){return""},currentPage:1,numberOfPages:5,totalPages:1,pageUrl:function(){return null},onPageClicked:null,onPageChanged:null,useBootstrapTooltip:!1,shouldShowPage:function(a,b,c){var d=!0;switch(a){case"first":d=1!==c;break;case"prev":d=1!==c;break;case"next":d=c!==this.totalPages;break;case"last":d=c!==this.totalPages;break;case"page":d=!0}return d},itemTexts:function(a,b){switch(a){case"first":return PT_CV_PAGINATION.first;case"prev":return PT_CV_PAGINATION.prev;case"next":return PT_CV_PAGINATION.next;case"last":return PT_CV_PAGINATION.last;case"page":return b}},tooltipTitles:function(a,b,c){switch(a){case"first":return PT_CV_PAGINATION.goto_first;case"prev":return PT_CV_PAGINATION.goto_prev;case"next":return PT_CV_PAGINATION.goto_next;case"last":return PT_CV_PAGINATION.goto_last;case"page":return b===c?PT_CV_PAGINATION.current_page+" "+b:PT_CV_PAGINATION.goto_page+" "+b}},bootstrapTooltipOptions:{animation:!0,html:!0,placement:"top",selector:!1,title:"",container:!1}},a.fn.bootstrapPaginator.Constructor=b}(window.jQuery),function(a){"use strict";a.PT_CV_Public=a.PT_CV_Public||{},PT_CV_PUBLIC=PT_CV_PUBLIC||{};var b=PT_CV_PUBLIC._prefix;a.PT_CV_Public=function(b){this.options=a.extend({},b),"undefined"==typeof this.options.skip&&(this.pagination(),this.some_fixes())},a.PT_CV_Public.prototype={pagination:function(){var c=this;a("."+b+"pagination."+b+"ajax").each(function(){var b=a(this),d=a(this).attr("data-totalpages"),e=a(this).attr("data-currentpage");a(this).bootstrapPaginator({bootstrapMajorVersion:3,currentPage:e?parseInt(e):1,totalPages:d?parseInt(d):1,numberOfPages:PT_CV_PUBLIC.page_to_show,shouldShowPage:function(a,b,c){var d=null;if("undefined"!=typeof this&&"function"==typeof this.getPages){var e=this.getPages(),f=Array.isArray(e)?e.slice(0,parseInt(this.numberOfPages)):[];f.includes(e.first)&&"first"===a&&(d=!1),f.includes(e.last)&&"last"===a&&(d=!1)}if(null!==d)return d;var g=!0;switch(a){case"first":g=1!==c;break;case"prev":g=1!==c;break;case"next":g=c!==this.totalPages;break;case"last":g=c!==this.totalPages;break;case"page":g=!0}return g},itemContainerClass:function(a,b,c){var d="cv-pageitem-"+("page"===a?"number":a);return d+" "+(b===c?"active":"")},onPageClicked:function(a,d,e,f){c._setup_pagination(b,f,function(){PT_CV_PUBLIC.paging=0})}})})},_setup_pagination:function(a,c,d){var e=this;if(PT_CV_PUBLIC.paging=PT_CV_PUBLIC.paging||0,!PT_CV_PUBLIC.paging&&!a.data("disabled")){PT_CV_PUBLIC.paging=1;var f=a.next("."+b+"spinner"),g=a;a.parent("."+b+"pagination-wrapper").length&&(g=a.parent("."+b+"pagination-wrapper"));var h=g.closest("."+b+"wrapper").children("."+b+"view");if(h.hasClass(b+"timeline")&&(h=h.children(".tl-items").first()),g.find("."+b+"more").length>0){var i=h.children("."+b+"page").first();i.length>0&&(h=i)}e._get_page(a,c,f,h,d)}},_get_page:function(c,d,e,f,g){var h=this;d=parseInt(d);var i=h._active_page(d,f,g);if(i)return g&&"function"==typeof g&&g(),void a("body").trigger(b+"pagination-finished-simple");a("body").trigger(b+"before-pagination");var j={action:"pagination_request",sid:c.attr("data-sid"),unid:c.attr("data-unid"),iselementor:c.attr("data-iselementor"),isblock:c.attr("data-isblock"),postid:c.attr("data-postid"),page:d,lang:PT_CV_PUBLIC.lang,ajax_nonce:PT_CV_PUBLIC._nonce,custom_data:window.cvdata};a.ajax({type:"POST",url:PT_CV_PUBLIC.ajaxurl,data:j,beforeSend:function(){e.addClass("active")}}).done(function(c){e.removeClass("active"),c.indexOf(b+"no-post")<0&&f.append(c),h._active_page(d,f,g),g&&"function"==typeof g&&g(),a("body").trigger(b+"pagination-finished",[f,a(c)])})},_active_page:function(c,d){var e=!1,f='[data-id="'+b+"page-"+c+'"]';return d.children(f).length&&(e=!0,d.children().hide(),d.children(f).show(),this._update_url(c),window.cvp_pagination_no_scroll||d.hasClass("paging-noscroll")||a("html, body").animate({scrollTop:d.children(f).offset().top-160},1e3)),e},_get_paginated_url:function(a){return PT_CV_PAGINATION.links&&PT_CV_PAGINATION.links.page_n&&PT_CV_PAGINATION.links.page_n.replace("_CVNUMBER_",parseInt(a))},_update_url:function(a){var b=this;if(!PT_CV_PUBLIC.is_admin&&!window.cv_pagination_no_update_url){var c=!1;c=a>1?b._get_paginated_url(a):PT_CV_PAGINATION.links&&PT_CV_PAGINATION.links.page_1,c&&history.replaceState(null,null,c)}},some_fixes:function(){"function"==typeof a.CVP_LazyLoad&&"function"==typeof cvp_imagesLoaded&&a(window).cvp_imagesLoaded(function(){a(window).trigger("load")})}},a(function(){new a.PT_CV_Public})}(jQuery);
2082/*!
2083 * jQuery Smooth Scroll - v1.6.0 - 2015-12-26
2084 * https://github.com/kswedberg/jquery-smooth-scroll
2085 * Copyright (c) 2015 Karl Swedberg
2086 * Licensed MIT
2087 */
2088!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t("object"==typeof module&&module.exports?require("jquery"):jQuery)}(function(t){function e(t){return t.replace(/(:|\.|\/)/g,"\\$1")}var o={},l=function(e){var o=[],l=!1,s=e.dir&&"left"===e.dir?"scrollLeft":"scrollTop";return this.each(function(){var e=t(this);if(this!==document&&this!==window)return!document.scrollingElement||this!==document.documentElement&&this!==document.body?void(e[s]()>0?o.push(this):(e[s](1),l=e[s]()>0,l&&o.push(this),e[s](0))):(o.push(document.scrollingElement),!1)}),o.length||this.each(function(){"BODY"===this.nodeName&&(o=[this])}),"first"===e.el&&o.length>1&&(o=[o[0]]),o};t.fn.extend({scrollable:function(t){var e=l.call(this,{dir:t});return this.pushStack(e)},firstScrollable:function(t){var e=l.call(this,{el:"first",dir:t});return this.pushStack(e)},smoothScroll:function(o,l){if("options"===(o=o||{}))return l?this.each(function(){var e=t(this),o=t.extend(e.data("ssOpts")||{},l);t(this).data("ssOpts",o)}):this.first().data("ssOpts");var s=t.extend({},t.fn.smoothScroll.defaults,o),n=function(o){var l=this,n=t(this),i=t.extend({},s,n.data("ssOpts")||{}),c=s.exclude,a=i.excludeWithin,r=0,h=0,u=!0,d={},p=t.smoothScroll.filterPath(location.pathname),f=t.smoothScroll.filterPath(l.pathname),m=location.hostname===l.hostname||!l.hostname,g=i.scrollTarget||f===p,_=e(l.hash);if(i.scrollTarget||m&&g&&_){for(;u&&r<c.length;)n.is(e(c[r++]))&&(u=!1);for(;u&&h<a.length;
2088)n.closest(a[h++]).length&&(u=!1)}else u=!1;u&&(i.preventDefault&&o.preventDefault(),t.extend(d,i,{scrollTarget:i.scrollTarget||_,link:l}),t.smoothScroll(d))};return null!==o.delegateSelector?this.undelegate(o.delegateSelector,"click.smoothscroll").delegate(o.delegateSelector,"click.smoothscroll",n):this.unbind("click.smoothscroll").bind("click.smoothscroll",n),this}}),t.smoothScroll=function(e,l){if("options"===e&&"object"==typeof l)return t.extend(o,l);var s,n,i,c,a=0,r="offset",h="scrollTop",u={},d={};"number"==typeof e?(s=t.extend({link:null},t.fn.smoothScroll.defaults,o),i=e):(s=t.extend({link:null},t.fn.smoothScroll.defaults,e||{},o)).scrollElement&&(r="position","static"===s.scrollElement.css("position")&&s.scrollElement.css("position","relative")),h="left"===s.direction?"scrollLeft":h,s.scrollElement?(n=s.scrollElement,/^(?:HTML|BODY)$/.test(n[0].nodeName)||(a=n[h]())):n=t("html, body").firstScrollable(s.direction),s.beforeScroll.call(n,s),i="number"==typeof e?e:l||t(s.scrollTarget)[r]()&&t(s.scrollTarget)[r]()[s.direction]||0,u[h]=i+a+s.offset,"auto"===(c=s.speed)&&(c=Math.abs(u[h]-n[h]())/s.autoCoefficient),d={duration:c,easing:s.easing,complete:function(){s.afterScroll.call(s.link,s)}},s.step&&(d.step=s.step),n.length?n.stop().animate(u,d):s.afterScroll.call(s.link,s)},t.smoothScroll.version="1.6.0",t.smoothScroll.filterPath=function(t){return(t=t||"").replace(/^\//,"").replace(/(?:index|default).[a-zA-Z]{3,4}$/,"").replace(/\/$/,"")},t.fn.smoothScroll.defaults={exclude:[],excludeWithin:[],offset:0,direction:"top",delegateSelector:null,scrollElement:null,scrollTarget:null,beforeScroll:function(){},afterScroll:function(){},easing:"swing",speed:400,autoCoefficient:2,preventDefault:!0}}),jQuery.cookie=function(t,e,o){if(arguments.length>1&&"[object Object]"!==String(e)){if(o=jQuery.extend({},o),null==e&&(o.expires=-1),"number"==typeof o.expires){var l=o.expires,s=o.expires=new Date;s.setDate(s.getDate()+l)}return e=String(e),document.cookie=[encodeURIComponent(t),"=",o.raw?e:encodeURIComponent(e),o.expires?"; expires="+o.expires.toUTCString():"",o.path?"; path="+o.path:"",o.domain?"; domain="+o.domain:"",o.secure?"; secure":""].join("")}var n,i=(o=e||{}).raw?function(t){return t}:decodeURIComponent;return(n=new RegExp("(?:^|; )"+encodeURIComponent(t)+"=([^;]*)").exec(document.cookie))?i(n[1]):null},jQuery(document).ready(function(t){if("undefined"!=typeof tocplus){if(t.fn.shrinkTOCWidth=function(){t(this).css({width:"auto",display:"table"}),/MSIE 7\./.test(navigator.userAgent)&&t(this).css("width","")},1==tocplus.smooth_scroll){var e=hostname=pathname=qs=hash=null;t(document).on("click","#toc_container a, ul.toc_widget_list a",function(o){if(hostname=t(this).prop("hostname"),pathname=t(this).prop("pathname"),qs=t(this).prop("search"),hash=t(this).prop("hash"),pathname.length>0&&"/"!=pathname.charAt(0)&&(pathname="/"+pathname),window.location.hostname==hostname&&window.location.pathname==pathname&&window.location.search==qs&&""!==hash){var l=hash.replace(/([ !"$%&'()*+,.\/:;<=>?@[\]^`{|}~])/g,"\\$1");t(l).length>0?e=hash:(anchor=hash,anchor=anchor.replace("#",""),e='a[name="'+anchor+'"]',0==t(e).length&&(e="")),void 0!==tocplus.smooth_scroll_offset?offset=-1*tocplus.smooth_scroll_offset:t("#wpadminbar").length>0&&t("#wpadminbar").is(":visible")?offset=-30:offset=0,e&&t.smoothScroll({scrollTarget:e,offset:offset})}})}if(void 0!==tocplus.visibility_show){var o,l=void 0!==tocplus.visibility_hide_by_default,s=!!t.cookie&&!!t.cookie("tocplus_hidetoc"),n=l?!s:s,i=void 0!==tocplus.toggle_style?tocplus.toggle_style:"brackets",c=n?tocplus.visibility_show:tocplus.visibility_hide;o=t("<span></span>").addClass("toc_toggle"),"brackets"===i?o.addClass("toc_toggle_brackets").append(t("<span></span>").addClass("toc_brackets").text("[")).append(t("<a></a>").attr("href","#").text(c)).append(t("<span></span>").addClass("toc_brackets").text("]")):o.addClass("toc_toggle_icon").addClass("toc_toggle_"+i).append(t("<a></a>").attr("href","#").attr({role:"button","aria-label":c}).append(t("<span></span>").addClass("toc_toggle_indicator").attr("aria-hidden","true"))),t("#toc_container .toc_title").append(document.createTextNode(" ")).append(o),n&&(t("ul.toc_list").hide(),t("#toc_container").addClass("contracted").shrinkTOCWidth()),t("span.toc_toggle a").click(function(e){e.preventDefault();var o,s=!t("#toc_container").hasClass("contracted"),n=s?tocplus.visibility_show:tocplus.visibility_hide;"brackets"===i?t(this).text(n):t(this).attr("aria-label",n),o=s,t.cookie&&(t.cookie("tocplus_hidetoc",null,{path:"/"}),o!=l?t.cookie("tocplus_hidetoc","1",{expires:30,path:window.location.pathname}):t.cookie("tocplus_hidetoc",null,{path:window.location.pathname})),s?(t("ul.toc_list").hide("fast"),t("#toc_container").addClass("contracted").shrinkTOCWidth()):(t("#toc_container").css("width",tocplus.width).removeClass("contracted"),t("ul.toc_list").show("fast"))})}}});
vendor: 19,014 bytes, lines 2089-2090
2089(function(e,t){'object'==typeof exports&&'undefined'!=typeof module?module.exports=t():'function'==typeof define&&define.amd?define(t):e.Popper=t()})(this,function(){'use strict';function e(e){return e&&'[object Function]'==={}.toString.call(e)}function t(e,t){if(1!==e.nodeType)return[];var o=getComputedStyle(e,null);return t?o[t]:o}function o(e){return'HTML'===e.nodeName?e:e.parentNode||e.host}function n(e){if(!e)return document.body;switch(e.nodeName){case'HTML':case'BODY':return e.ownerDocument.body;case'#document':return e.body;}var i=t(e),r=i.overflow,p=i.overflowX,s=i.overflowY;return /(auto|scroll)/.test(r+s+p)?e:n(o(e))}function r(e){var o=e&&e.offsetParent,i=o&&o.nodeName;return i&&'BODY'!==i&&'HTML'!==i?-1!==['TD','TABLE'].indexOf(o.nodeName)&&'static'===t(o,'position')?r(o):o:e?e.ownerDocument.documentElement:document.documentElement}function p(e){var t=e.nodeName;return'BODY'!==t&&('HTML'===t||r(e.firstElementChild)===e)}function s(e){return null===e.parentNode?e:s(e.parentNode)}function d(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var o=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,i=o?e:t,n=o?t:e,a=document.createRange();a.setStart(i,0),a.setEnd(n,0);var l=a.commonAncestorContainer;if(e!==l&&t!==l||i.contains(n))return p(l)?l:r(l);var f=s(e);return f.host?d(f.host,t):d(e,s(t).host)}function a(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:'top',o='top'===t?'scrollTop':'scrollLeft',i=e.nodeName;if('BODY'===i||'HTML'===i){var n=e.ownerDocument.documentElement,r=e.ownerDocument.scrollingElement||n;return r[o]}return e[o]}function l(e,t){var o=2<arguments.length&&void 0!==arguments[2]&&arguments[2],i=a(t,'top'),n=a(t,'left'),r=o?-1:1;return e.top+=i*r,e.bottom+=i*r,e.left+=n*r,e.right+=n*r,e}function f(e,t){var o='x'===t?'Left':'Top',i='Left'==o?'Right':'Bottom';return parseFloat(e['border'+o+'Width'],10)+parseFloat(e['border'+i+'Width'],10)}function m(e,t,o,i){return J(t['offset'+e],t['scroll'+e],o['client'+e],o['offset'+e],o['scroll'+e],ie()?o['offset'+e]+i['margin'+('Height'===e?'Top':'Left')]+i['margin'+('Height'===e?'Bottom':'Right')]:0)}function h(){var e=document.body,t=document.documentElement,o=ie()&&getComputedStyle(t);return{height:m('Height',e,t,o),width:m('Width',e,t,o)}}function c(e){return se({},e,{right:e.left+e.width,bottom:e.top+e.height})}function g(e){var o={};if(ie())try{o=e.getBoundingClientRect();var i=a(e,'top'),n=a(e,'left');o.top+=i,o.left+=n,o.bottom+=i,o.right+=n}catch(e){}else o=e.getBoundingClientRect();var r={left:o.left,top:o.top,width:o.right-o.left,height:o.bottom-o.top},p='HTML'===e.nodeName?h():{},s=p.width||e.clientWidth||r.right-r.left,d=p.height||e.clientHeight||r.bottom-r.top,l=e.offsetWidth-s,m=e.offsetHeight-d;if(l||m){var g=t(e);l-=f(g,'x'),m-=f(g,'y'),r.width-=l,r.height-=m}return c(r)}function u(e,o){var i=ie(),r='HTML'===o.nodeName,p=g(e),s=g(o),d=n(e),a=t(o),f=parseFloat(a.borderTopWidth,10),m=parseFloat(a.borderLeftWidth,10),h=c({top:p.top-s.top-f,left:p.left-s.left-m,width:p.width,height:p.height});if(h.marginTop=0,h.marginLeft=0,!i&&r){var u=parseFloat(a.marginTop,10),b=parseFloat(a.marginLeft,10);h.top-=f-u,h.bottom-=f-u,h.left-=m-b,h.right-=m-b,h.marginTop=u,h.marginLeft=b}return(i?o.contains(d):o===d&&'BODY'!==d.nodeName)&&(h=l(h,o)),h}function b(e){var t=e.ownerDocument.documentElement,o=u(e,t),i=J(t.clientWidth,window.innerWidth||0),n=J(t.clientHeight,window.innerHeight||0),r=a(t),p=a(t,'left'),s={top:r-o.top+o.marginTop,left:p-o.left+o.marginLeft,width:i,height:n};return c(s)}function w(e){var i=e.nodeName;return'BODY'===i||'HTML'===i?!1:'fixed'===t(e,'position')||w(o(e))}function y(e,t,i,r){var p={top:0,left:0},s=d(e,t);if('viewport'===r)p=b(s);else{var a;'scrollParent'===r?(a=n(o(t)),'BODY'===a.nodeName&&(a=e.ownerDocument.documentElement)):'window'===r?a=e.ownerDocument.documentElement:a=r;var l=u(a,s);if('HTML'===a.nodeName&&!w(s)){var f=h(),m=f.height,c=f.width;p.top+=l.top-l.marginTop,p.bottom=m+l.top,p.left+=l.left-l.marginLeft,p.right=c+l.left}else p=l}return p.left+=i,p.top+=i,p.right-=i,p.bottom-=i,p}function E(e){var t=e.width,o=e.height;return t*o}function v(e,t,o,i,n){var r=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf('auto'))return e;var p=y(o,i,r,n),s={top:{width:p.width,height:t.top-p.top},right:{width:p.right-t.right,height:p.height},bottom:{width:p.width,height:p.bottom-t.bottom},left:{width:t.left-p.left,height:p.height}},d=Object.keys(s).map(function(e){return se({key:e},s[e],{area:E(s[e])})}).sort(function(e,t){return t.area-e.area}),a=d.filter(function(e){var t=e.width,i=e.height;return t>=o.clientWidth&&i>=o.clientHeight}),l=0<a.length?a[0].key:d[0].key,f=e.split('-')[1];return l+(f?'-'+f:'')}function O(e,t,o){var i=d(t,o);return u(o,i)}function L(e){var t=getComputedStyle(e),o=parseFloat(t.marginTop)+parseFloat(t.marginBottom),i=parseFloat(t.marginLeft)+parseFloat(t.marginRight),n={width:e.offsetWidth+i,height:e.offsetHeight+o};return n}function x(e){var t={left:'right',right:'left',bottom:'top',top:'bottom'};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function S(e,t,o){o=o.split('-')[0];var i=L(e),n={width:i.width,height:i.height},r=-1!==['right','left'].indexOf(o),p=r?'top':'left',s=r?'left':'top',d=r?'height':'width',a=r?'width':'height';return n[p]=t[p]+t[d]/2-i[d]/2,n[s]=o===s?t[s]-i[a]:t[x(s)],n}function T(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function D(e,t,o){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===o});var i=T(e,function(e){return e[t]===o});return e.indexOf(i)}function C(t,o,i){var n=void 0===i?t:t.slice(0,D(t,'name',i));return n.forEach(function(t){t['function']&&console.warn('`modifier.function` is deprecated, use `modifier.fn`!');var i=t['function']||t.fn;t.enabled&&e(i)&&(o.offsets.popper=c(o.offsets.popper),o.offsets.reference=c(o.offsets.reference),o=i(o,t))}),o}function N(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=O(this.state,this.popper,this.reference),e.placement=v(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.offsets.popper=S(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position='absolute',e=C(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function k(e,t){return e.some(function(e){var o=e.name,i=e.enabled;return i&&o===t})}function W(e){for(var t=[!1,'ms','Webkit','Moz','O'],o=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<t.length-1;n++){var i=t[n],r=i?''+i+o:e;if('undefined'!=typeof document.body.style[r])return r}return null}function P(){return this.state.isDestroyed=!0,k(this.modifiers,'applyStyle')&&(this.popper.removeAttribute('x-placement'),this.popper.style.left='',this.popper.style.position='',this.popper.style.top='',this.popper.style[W('transform')]=''),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function B(e){var t=e.ownerDocument;return t?t.defaultView:window}function H(e,t,o,i){var r='BODY'===e.nodeName,p=r?e.ownerDocument.defaultView:e;p.addEventListener(t,o,{passive:!0}),r||H(n(p.parentNode),t,o,i),i.push(p)}function A(e,t,o,i){o.updateBound=i,B(e).addEventListener('resize',o.updateBound,{passive:!0});var r=n(e);return H(r,'scroll',o.updateBound,o.scrollParents),o.scrollElement=r,o.eventsEnabled=!0,o}function I(){this.state.eventsEnabled||(this.state=A(this.reference,this.options,this.state,this.scheduleUpdate))}function M(e,t){return B(e).removeEventListener('resize',t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener('scroll',t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function R(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=M(this.reference,this.state))}function U(e){return''!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function Y(e,t){Object.keys(t).forEach(function(o){var i='';-1!==['width','height','top','right','bottom','left'].indexOf(o)&&U(t[o])&&(i='px'),e.style[o]=t[o]+i})}function j(e,t){Object.keys(t).forEach(function(o){var i=t[o];!1===i?e.removeAttribute(o):e.setAttribute(o,t[o])})}function F(e,t,o){var i=T(e,function(e){var o=e.name;return o===t}),n=!!i&&e.some(function(e){return e.name===o&&e.enabled&&e.order<i.order});if(!n){var r='`'+t+'`';console.warn('`'+o+'`'+' modifier is required by '+r+' modifier in order to work, be sure to include it before '+r+'!')}return n}function K(e){return'end'===e?'start':'start'===e?'end':e}function q(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],o=ae.indexOf(e),i=ae.slice(o+1).concat(ae.slice(0,o));return t?i.reverse():i}function V(e,t,o,i){var n=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+n[1],p=n[2];if(!r)return e;if(0===p.indexOf('%')){var s;switch(p){case'%p':s=o;break;case'%':case'%r':default:s=i;}var d=c(s);return d[t]/100*r}if('vh'===p||'vw'===p){var a;return a='vh'===p?J(document.documentElement.clientHeight,window.innerHeight||0):J(document.documentElement.clientWidth,window.innerWidth||0),a/100*r}return r}function z(e,t,o,i){var n=[0,0],r=-1!==['right','left'].indexOf(i),p=e.split(/(\+|\-)/).map(function(e){return e.trim()}),s=p.indexOf(T(p,function(e){return-1!==e.search(/,|\s/)}));p[s]&&-1===p[s].indexOf(',')&&console.warn('Offsets separated by white space(s) are deprecated, use a comma (,) instead.');var d=/\s*,\s*|\s+/,a=-1===s?[p]:[p.slice(0,s).concat([p[s].split(d)[0]]),[p[s].split(d)[1]].concat(p.slice(s+1))];return a=a.map(function(e,i){var n=(1===i?!r:r)?'height':'width',p=!1;return e.reduce(function(e,t){return''===e[e.length-1]&&-1!==['+','-'].indexOf(t)?(e[e.length-1]=t,p=!0,e):p?(e[e.length-1]+=t,p=!1,e):e.concat(t)},[]).map(function(e){return V(e,n,t,o)})}),a.forEach(function(e,t){e.forEach(function(o,i){U(o)&&(n[t]+=o*('-'===e[i-1]?-1:1))})}),n}function G(e,t){var o,i=t.offset,n=e.placement,r=e.offsets,p=r.popper,s=r.reference,d=n.split('-')[0];return o=U(+i)?[+i,0]:z(i,p,s,d),'left'===d?(p.top+=o[0],p.left-=o[1]):'right'===d?(p.top+=o[0],p.left+=o[1]):'top'===d?(p.left+=o[0],p.top-=o[1]):'bottom'===d&&(p.left+=o[0],p.top+=o[1]),e.popper=p,e}for(var _=Math.min,X=Math.floor,J=Math.max,Q='undefined'!=typeof window&&'undefined'!=typeof document,Z=['Edge','Trident','Firefox'],$=0,ee=0;ee<Z.length;ee+=1)if(Q&&0<=navigator.userAgent.indexOf(Z[ee])){$=1;break}var i,te=Q&&window.Promise,oe=te?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},$))}},ie=function(){return void 0==i&&(i=-1!==navigator.appVersion.indexOf('MSIE 10')),i},ne=function(e,t){if(!(e instanceof t))throw new TypeError('Cannot call a class as a function')},re=function(){function e(e,t){for(var o,n=0;n<t.length;n++)o=t[n],o.enumerable=o.enumerable||!1,o.configurable=!0,'value'in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),pe=function(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e},se=Object.assign||function(e){for(var t,o=1;o<arguments.length;o++)for(var i in t=arguments[o],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},de=['auto-start','auto','auto-end','top-start','top','top-end','right-start','right','right-end','bottom-end','bottom','bottom-start','left-end','left','left-start'],ae=de.slice(3),le={FLIP:'flip',CLOCKWISE:'clockwise',COUNTERCLOCKWISE:'counterclockwise'},fe=function(){function t(o,i){var n=this,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};ne(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=oe(this.update.bind(this)),this.options=se({},t.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=o&&o.jquery?o[0]:o,this.popper=i&&i.jquery?i[0]:i,this.options.modifiers={},Object.keys(se({},t.Defaults.modifiers,r.modifiers)).forEach(function(e){n.options.modifiers[e]=se({},t.Defaults.modifiers[e]||{},r.modifiers?r.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return se({name:e},n.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(t){t.enabled&&e(t.onLoad)&&t.onLoad(n.reference,n.popper,n.options,t,n.state)}),this.update();var p=this.options.eventsEnabled;p&&this.enableEventListeners(),this.state.eventsEnabled=p}return re(t,[{key:'update',value:function(){return N.call(this)}},{key:'destroy',value:function(){return P.call(this)}},{key:'enableEventListeners',value:function(){return I.call(this)}},{key:'disableEventListeners',value:function(){return R.call(this)}}]),t}();return fe.Utils=('undefined'==typeof window?global:window).PopperUtils,fe.placements=de,fe.Defaults={placement:'bottom',eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,o=t.split('-')[0],i=t.split('-')[1];if(i){var n=e.offsets,r=n.reference,p=n.popper,s=-1!==['bottom','top'].indexOf(o),d=s?'left':'top',a=s?'width':'height',l={start:pe({},d,r[d]),end:pe({},d,r[d]+r[a]-p[a])};e.offsets.popper=se({},p,l[i])}return e}},offset:{order:200,enabled:!0,fn:G,offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var o=t.boundariesElement||r(e.instance.popper);e.instance.reference===o&&(o=r(o));var i=y(e.instance.popper,e.instance.reference,t.padding,o);t.boundaries=i;var n=t.priority,p=e.offsets.popper,s={primary:function(e){var o=p[e];return p[e]<i[e]&&!t.escapeWithReference&&(o=J(p[e],i[e])),pe({},e,o)},secondary:function(e){var o='right'===e?'left':'top',n=p[o];return p[e]>i[e]&&!t.escapeWithReference&&(n=_(p[o],i[e]-('right'===e?p.width:p.height))),pe({},o,n)}};return n.forEach(function(e){var t=-1===['left','top'].indexOf(e)?'secondary':'primary';p=se({},p,s[t](e))}),e.offsets.popper=p,e},priority:['left','right','top','bottom'],padding:5,boundariesElement:'scrollParent'},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,o=t.popper,i=t.reference,n=e.placement.split('-')[0],r=X,p=-1!==['top','bottom'].indexOf(n),s=p?'right':'bottom',d=p?'left':'top',a=p?'width':'height';return o[s]<r(i[d])&&(e.offsets.popper[d]=r(i[d])-o[a]),o[d]>r(i[s])&&(e.offsets.popper[d]=r(i[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,o){var i;if(!F(e.instance.modifiers,'arrow','keepTogether'))return e;var n=o.element;if('string'==typeof n){if(n=e.instance.popper.querySelector(n),!n)return e;}else if(!e.instance.popper.contains(n))return console.warn('WARNING: `arrow.element` must be child of its popper element!'),e;var r=e.placement.split('-')[0],p=e.offsets,s=p.popper,d=p.reference,a=-1!==['left','right'].indexOf(r),l=a?'height':'width',f=a?'Top':'Left',m=f.toLowerCase(),h=a?'left':'top',g=a?'bottom':'right',u=L(n)[l];d[g]-u<s[m]&&(e.offsets.popper[m]-=s[m]-(d[g]-u)),d[m]+u>s[g]&&(e.offsets.popper[m]+=d[m]+u-s[g]),e.offsets.popper=c(e.offsets.popper);var b=d[m]+d[l]/2-u/2,w=t(e.instance.popper),y=parseFloat(w['margin'+f],10),E=parseFloat(w['border'+f+'Width'],10),v=b-e.offsets.popper[m]-y-E;return v=J(_(s[l]-u,v),0),e.arrowElement=n,e.offsets.arrow=(i={},pe(i,m,Math.round(v)),pe(i,h,''),i),e},element:'[x-arrow]'},flip:{order:600,enabled:!0,fn:function(e,t){if(k(e.instance.modifiers,'inner'))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var o=y(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement),i=e.placement.split('-')[0],n=x(i),r=e.placement.split('-')[1]||'',p=[];switch(t.behavior){case le.FLIP:p=[i,n];break;case le.CLOCKWISE:p=q(i);break;case le.COUNTERCLOCKWISE:p=q(i,!0);break;default:p=t.behavior;}return p.forEach(function(s,d){if(i!==s||p.length===d+1)return e;i=e.placement.split('-')[0],n=x(i);var a=e.offsets.popper,l=e.offsets.reference,f=X,m='left'===i&&f(a.right)>f(l.left)||'right'===i&&f(a.left)<f(l.right)||'top'===i&&f(a.bottom)>f(l.top)||'bottom'===i&&f(a.top)<f(l.bottom),h=f(a.left)<f(o.left),c=f(a.right)>f(o.right),g=f(a.top)<f(o.top),u=f(a.bottom)>f(o.bottom),b='left'===i&&h||'right'===i&&c||'top'===i&&g||'bottom'===i&&u,w=-1!==['top','bottom'].indexOf(i),y=!!t.flipVariations&&(w&&'start'===r&&h||w&&'end'===r&&c||!w&&'start'===r&&g||!w&&'end'===r&&u);(m||b||y)&&(e.flipped=!0,(m||b)&&(i=p[d+1]),y&&(r=K(r)),e.placement=i+(r?'-'+r:''),e.offsets.popper=se({},e.offsets.popper,S(e.instance.popper,e.offsets.reference,e.placement)),e=C(e.instance.modifiers,e,'flip'))}),e},behavior:'flip',padding:5,boundariesElement:'viewport'},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,o=t.split('-')[0],i=e.offsets,n=i.popper,r=i.reference,p=-1!==['left','right'].indexOf(o),s=-1===['top','left'].indexOf(o);return n[p?'left':'top']=r[o]-(s?n[p?'width':'height']:0),e.placement=x(t),e.offsets.popper=c(n),e}},hide:{order:800,enabled:!0,fn:function(e){if(!F(e.instance.modifiers,'hide','preventOverflow'))return e;var t=e.offsets.reference,o=T(e.instance.modifiers,function(e){return'preventOverflow'===e.name}).boundaries;if(t.bottom<o.top||t.left>o.right||t.top>o.bottom||t.right<o.left){if(!0===e.hide)return e;e.hide=!0,e.attributes['x-out-of-boundaries']=''}else{if(!1===e.hide)return e;e.hide=!1,e.attributes['x-out-of-boundaries']=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var o=t.x,i=t.y,n=e.offsets.popper,p=T(e.instance.modifiers,function(e){return'applyStyle'===e.name}).gpuAcceleration;void 0!==p&&console.warn('WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!');var s,d,a=void 0===p?t.gpuAcceleration:p,l=r(e.instance.popper),f=g(l),m={position:n.position},h={left:X(n.left),top:X(n.top),bottom:X(n.bottom),right:X(n.right)},c='bottom'===o?'top':'bottom',u='right'===i?'left':'right',b=W('transform');if(d='bottom'==c?-f.height+h.bottom:h.top,s='right'==u?-f.width+h.right:h.left,a&&b)m[b]='translate3d('+s+'px, '+d+'px, 0)',m[c]=0,m[u]=0,m.willChange='transform';else{var w='bottom'==c?-1:1,y='right'==u?-1:1;m[c]=d*w,m[u]=s*y,m.willChange=c+', '+u}var E={"x-placement":e.placement};return e.attributes=se({},E,e.attributes),e.styles=se({},m,e.styles),e.arrowStyles=se({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:'bottom',y:'right'},applyStyle:{order:900,enabled:!0,fn:function(e){return Y(e.instance.popper,e.styles),j(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&Y(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,o,i,n){var r=O(n,t,e),p=v(o.placement,r,t,e,o.modifiers.flip.boundariesElement,o.modifiers.flip.padding);return t.setAttribute('x-placement',p),Y(t,{position:'absolute'}),o},gpuAcceleration:void 0}}},fe});
2090/
2090*!
2091  * Bootstrap v4.0.0 (https://getbootstrap.com)
2092  * Copyright 2011-2018 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
2093  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
2094  */
2095!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],e):e(t.bootstrap={},t.jQuery,t.Popper)}(this,function(t,e,n){"use strict";function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function s(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}function r(){return(r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}e=e&&e.hasOwnProperty("default")?e.default:e,n=n&&n.hasOwnProperty("default")?n.default:n;var o,a,l,h,c,u,f,d,_,g,p,m,v,E,T,y,C,I,A,b,D,S,w,N,O,k,P=function(t){var e=!1;function n(e){var n=this,s=!1;return t(this).one(i.TRANSITION_END,function(){s=!0}),setTimeout(function(){s||i.triggerTransitionEnd(n)},e),this}var i={TRANSITION_END:"bsTransitionEnd",getUID:function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},getSelectorFromElement:function(e){var n,i=e.getAttribute("data-target");i&&"#"!==i||(i=e.getAttribute("href")||""),"#"===i.charAt(0)&&(n=i,i=n="function"==typeof t.escapeSelector?t.escapeSelector(n).substr(1):n.replace(/(:|\.|\[|\]|,|=|@)/g,"\\$1"));try{return t(document).find(i).length>0?i:null}catch(t){return null}},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(n){t(n).trigger(e.end)},supportsTransitionEnd:function(){return Boolean(e)},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,n){for(var s in n)if(Object.prototype.hasOwnProperty.call(n,s)){var r=n[s],o=e[s],a=o&&i.isElement(o)?"element":(l=o,{}.toString.call(l).match(/\s([a-zA-Z]+)/)[1].toLowerCase());if(!new RegExp(r).test(a))throw new Error(t.toUpperCase()+': Option "'+s+'" provided type "'+a+'" but expected type "'+r+'".')}var l}};return e=("undefined"==typeof window||!window.QUnit)&&{end:"transitionend"},t.fn.emulateTransitionEnd=n,i.supportsTransitionEnd()&&(t.event.special[i.TRANSITION_END]={bindType:e.end,delegateType:e.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}}),i}(e),L=(a="alert",h="."+(l="bs.alert"),c=(o=e).fn[a],u={CLOSE:"close"+h,CLOSED:"closed"+h,CLICK_DATA_API:"click"+h+".data-api"},f="alert",d="fade",_="show",g=function(){function t(t){this._element=t}var e=t.prototype;return e.close=function(t){t=t||this._element;var e=this._getRootElement(t);this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},e.dispose=function(){o.removeData(this._element,l),this._element=null},e._getRootElement=function(t){var e=P.getSelectorFromElement(t),n=!1;return e&&(n=o(e)[0]),n||(n=o(t).closest("."+f)[0]),n},e._triggerCloseEvent=function(t){var e=o.Event(u.CLOSE);return o(t).trigger(e),e},e._removeElement=function(t){var e=this;o(t).removeClass(_),P.supportsTransitionEnd()&&o(t).hasClass(d)?o(t).one(P.TRANSITION_END,function(n){return e._destroyElement(t,n)}).emulateTransitionEnd(150):this._destroyElement(t)},e._destroyElement=function(t){o(t).detach().trigger(u.CLOSED).remove()},t._jQueryInterface=function(e){return this.each(function(){var n=o(this),i=n.data(l);i||(i=new t(this),n.data(l,i)),"close"===e&&i[e](this)})},t._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},s(t,null,[{key:"VERSION",get:function(){return"4.0.0"}}]),t}(),o(document).on(u.CLICK_DATA_API,'[data-dismiss="alert"]',g._handleDismiss(new g)),o.fn[a]=g._jQueryInterface,o.fn[a].Constructor=g,o.fn[a].noConflict=function(){return o.fn[a]=c,g._jQueryInterface},g),R=(m="button",E="."+(v="bs.button"),T=".data-api",y=(p=e).fn[m],C="active",I="btn",A="focus",b='[data-toggle^="button"]',D='[data-toggle="buttons"]',S="input",w=".active",N=".btn",O={CLICK_DATA_API:"click"+E+T,FOCUS_BLUR_DATA_API:"focus"+E+T+" blur"+E+T},k=function(){function t(t){this._element=t}var e=t.prototype;return e.toggle=function(){var t=!0,e=!0,n=p(this._element).closest(D)[0];if(n){var i=p(this._element).find(S)[0];if(i){if("radio"===i.type)if(i.checked&&p(this._element).hasClass(C))t=!1;else{var s=p(n).find(w)[0];s&&p(s).removeClass(C)}if(t){if(i.hasAttribute("disabled")||n.hasAttribute("disabled")||i.classList.contains("disabled")||n.classList.contains("disabled"))return;i.checked=!p(this._element).hasClass(C),p(i).trigger("change")}i.focus(),e=!1}}e&&this._element.setAttribute("aria-pressed",!p(this._element).hasClass(C)),t&&p(this._element).toggleClass(C)},e.dispose=function(){p.removeData(this._element,v),this._element=null},t._jQueryInterface=function(e){return this.each(function(){var n=p(this).data(v);n||(n=new t(this),p(this).data(v,n)),"toggle"===e&&n[e]()})},s(t,null,[{key:"VERSION",get:function(){return"4.0.0"}}]),t}(),p(document).on(O.CLICK_DATA_API,b,function(t){t.preventDefault();var e=t.target;p(e).hasClass(I)||(e=p(e).closest(N)),k._jQueryInterface.call(p(e),"toggle")}).on(O.FOCUS_BLUR_DATA_API,b,function(t){var e=p(t.target).closest(N)[0];p(e).toggleClass(A,/^focus(in)?$/.test(t.type))}),p.fn[m]=k._jQueryInterface,p.fn[m].Constructor=k,p.fn[m].noConflict=function(){return p.fn[m]=y,k._jQueryInterface},k),j=function(t){var e="carousel",n="bs.carousel",i="."+n,o=t.fn[e],a={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},l={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},h="next",c="prev",u="left",f="right",d={SLIDE:"slide"+i,SLID:"slid"+i,KEYDOWN:"keydown"+i,MOUSEENTER:"mouseenter"+i,MOUSELEAVE:"mouseleave"+i,TOUCHEND:"touchend"+i,LOAD_DATA_API:"load"+i+".data-api",CLICK_DATA_API:"click"+i+".data-api"},_="carousel",g="active",p="slide",m="carousel-item-right",v="carousel-item-left",E="carousel-item-next",T="carousel-item-prev",y={ACTIVE:".active",ACTIVE_ITEM:".active.carousel-item",ITEM:".carousel-item",NEXT_PREV:".carousel-item-next, .carousel-item-prev",INDICATORS:".carousel-indicators",DATA_SLIDE:"[data-sli
2095de], [data-slide-to]",DATA_RIDE:'[data-ride="carousel"]'},C=function(){function o(e,n){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this._config=this._getConfig(n),this._element=t(e)[0],this._indicatorsElement=t(this._element).find(y.INDICATORS)[0],this._addEventListeners()}var C=o.prototype;return C.next=function(){this._isSliding||this._slide(h)},C.nextWhenVisible=function(){!document.hidden&&t(this._element).is(":visible")&&"hidden"!==t(this._element).css("visibility")&&this.next()},C.prev=function(){this._isSliding||this._slide(c)},C.pause=function(e){e||(this._isPaused=!0),t(this._element).find(y.NEXT_PREV)[0]&&P.supportsTransitionEnd()&&(P.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},C.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},C.to=function(e){var n=this;this._activeElement=t(this._element).find(y.ACTIVE_ITEM)[0];var i=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)t(this._element).one(d.SLID,function(){return n.to(e)});else{if(i===e)return this.pause(),void this.cycle();var s=e>i?h:c;this._slide(s,this._items[e])}},C.dispose=function(){t(this._element).off(i),t.removeData(this._element,n),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},C._getConfig=function(t){return t=r({},a,t),P.typeCheckConfig(e,t,l),t},C._addEventListeners=function(){var e=this;this._config.keyboard&&t(this._element).on(d.KEYDOWN,function(t){return e._keydown(t)}),"hover"===this._config.pause&&(t(this._element).on(d.MOUSEENTER,function(t){return e.pause(t)}).on(d.MOUSELEAVE,function(t){return e.cycle(t)}),"ontouchstart"in document.documentElement&&t(this._element).on(d.TOUCHEND,function(){e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout(function(t){return e.cycle(t)},500+e._config.interval)}))},C._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:t.preventDefault(),this.prev();break;case 39:t.preventDefault(),this.next()}},C._getItemIndex=function(e){return this._items=t.makeArray(t(e).parent().find(y.ITEM)),this._items.indexOf(e)},C._getItemByDirection=function(t,e){var n=t===h,i=t===c,s=this._getItemIndex(e),r=this._items.length-1;if((i&&0===s||n&&s===r)&&!this._config.wrap)return e;var o=(s+(t===c?-1:1))%this._items.length;return-1===o?this._items[this._items.length-1]:this._items[o]},C._triggerSlideEvent=function(e,n){var i=this._getItemIndex(e),s=this._getItemIndex(t(this._element).find(y.ACTIVE_ITEM)[0]),r=t.Event(d.SLIDE,{relatedTarget:e,direction:n,from:s,to:i});return t(this._element).trigger(r),r},C._setActiveIndicatorElement=function(e){if(this._indicatorsElement){t(this._indicatorsElement).find(y.ACTIVE).removeClass(g);var n=this._indicatorsElement.children[this._getItemIndex(e)];n&&t(n).addClass(g)}},C._slide=function(e,n){var i,s,r,o=this,a=t(this._element).find(y.ACTIVE_ITEM)[0],l=this._getItemIndex(a),c=n||a&&this._getItemByDirection(e,a),_=this._getItemIndex(c),C=Boolean(this._interval);if(e===h?(i=v,s=E,r=u):(i=m,s=T,r=f),c&&t(c).hasClass(g))this._isSliding=!1;else if(!this._triggerSlideEvent(c,r).isDefaultPrevented()&&a&&c){this._isSliding=!0,C&&this.pause(),this._setActiveIndicatorElement(c);var I=t.Event(d.SLID,{relatedTarget:c,direction:r,from:l,to:_});P.supportsTransitionEnd()&&t(this._element).hasClass(p)?(t(c).addClass(s),P.reflow(c),t(a).addClass(i),t(c).addClass(i),t(a).one(P.TRANSITION_END,function(){t(c).removeClass(i+" "+s).addClass(g),t(a).removeClass(g+" "+s+" "+i),o._isSliding=!1,setTimeout(function(){return t(o._element).trigger(I)},0)}).emulateTransitionEnd(600)):(t(a).removeClass(g),t(c).addClass(g),this._isSliding=!1,t(this._element).trigger(I)),C&&this.cycle()}},o._jQueryInterface=function(e){return this.each(function(){var i=t(this).data(n),s=r({},a,t(this).data());"object"==typeof e&&(s=r({},s,e));var l="string"==typeof e?e:s.slide;if(i||(i=new o(this,s),t(this).data(n,i)),"number"==typeof e)i.to(e);else if("string"==typeof l){if("undefined"==typeof i[l])throw new TypeError('No method n
2095amed "'+l+'"');i[l]()}else s.interval&&(i.pause(),i.cycle())})},o._dataApiClickHandler=function(e){var i=P.getSelectorFromElement(this);if(i){var s=t(i)[0];if(s&&t(s).hasClass(_)){var a=r({},t(s).data(),t(this).data()),l=this.getAttribute("data-slide-to");l&&(a.interval=!1),o._jQueryInterface.call(t(s),a),l&&t(s).data(n).to(l),e.preventDefault()}}},s(o,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return a}}]),o}();return t(document).on(d.CLICK_DATA_API,y.DATA_SLIDE,C._dataApiClickHandler),t(window).on(d.LOAD_DATA_API,function(){t(y.DATA_RIDE).each(function(){var e=t(this);C._jQueryInterface.call(e,e.data())})}),t.fn[e]=C._jQueryInterface,t.fn[e].Constructor=C,t.fn[e].noConflict=function(){return t.fn[e]=o,C._jQueryInterface},C}(e),H=function(t){var e="collapse",n="bs.collapse",i="."+n,o=t.fn[e],a={toggle:!0,parent:""},l={toggle:"boolean",parent:"(string|element)"},h={SHOW:"show"+i,SHOWN:"shown"+i,HIDE:"hide"+i,HIDDEN:"hidden"+i,CLICK_DATA_API:"click"+i+".data-api"},c="show",u="collapse",f="collapsing",d="collapsed",_="width",g="height",p={ACTIVES:".show, .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},m=function(){function i(e,n){this._isTransitioning=!1,this._element=e,this._config=this._getConfig(n),this._triggerArray=t.makeArray(t('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'));for(var i=t(p.DATA_TOGGLE),s=0;s<i.length;s++){var r=i[s],o=P.getSelectorFromElement(r);null!==o&&t(o).filter(e).length>0&&(this._selector=o,this._triggerArray.push(r))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var o=i.prototype;return o.toggle=function(){t(this._element).hasClass(c)?this.hide():this.show()},o.show=function(){var e,s,r=this;if(!this._isTransitioning&&!t(this._element).hasClass(c)&&(this._parent&&0===(e=t.makeArray(t(this._parent).find(p.ACTIVES).filter('[data-parent="'+this._config.parent+'"]'))).length&&(e=null),!(e&&(s=t(e).not(this._selector).data(n))&&s._isTransitioning))){var o=t.Event(h.SHOW);if(t(this._element).trigger(o),!o.isDefaultPrevented()){e&&(i._jQueryInterface.call(t(e).not(this._selector),"hide"),s||t(e).data(n,null));var a=this._getDimension();t(this._element).removeClass(u).addClass(f),this._element.style[a]=0,this._triggerArray.length>0&&t(this._triggerArray).removeClass(d).attr("aria-expanded",!0),this.setTransitioning(!0);var l=function(){t(r._element).removeClass(f).addClass(u).addClass(c),r._element.style[a]="",r.setTransitioning(!1),t(r._element).trigger(h.SHOWN)};if(P.supportsTransitionEnd()){var _="scroll"+(a[0].toUpperCase()+a.slice(1));t(this._element).one(P.TRANSITION_END,l).emulateTransitionEnd(600),this._element.style[a]=this._element[_]+"px"}else l()}}},o.hide=function(){var e=this;if(!this._isTransitioning&&t(this._element).hasClass(c)){var n=t.Event(h.HIDE);if(t(this._element).trigger(n),!n.isDefaultPrevented()){var i=this._getDimension();if(this._element.style[i]=this._element.getBoundingClientRect()[i]+"px",P.reflow(this._element),t(this._element).addClass(f).removeClass(u).removeClass(c),this._triggerArray.length>0)for(var s=0;s<this._triggerArray.length;s++){var r=this._triggerArray[s],o=P.getSelectorFromElement(r);if(null!==o)t(o).hasClass(c)||t(r).addClass(d).attr("aria-expanded",!1)}this.setTransitioning(!0);var a=function(){e.setTransitioning(!1),t(e._element).removeClass(f).addClass(u).trigger(h.HIDDEN)};this._element.style[i]="",P.supportsTransitionEnd()?t(this._element).one(P.TRANSITION_END,a).emulateTransitionEnd(600):a()}}},o.setTransitioning=function(t){this._isTransitioning=t},o.dispose=function(){t.removeData(this._element,n),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},o._getConfig=function(t){return(t=r({},a,t)).toggle=Boolean(t.toggle),P.typeCheckConfig(e,t,l),t},o._getDimension=function(){return t(this._element).hasClass(_)?_:g},o._getParent=function(){var e=this,n=null;P.isElement(this._config.parent)?(n=this._config.parent,"undefined"!=typeof this._config.parent.jquery&&(n=this._config.parent[0])):n=t(this._config.parent)[0];var s='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]';return t(n).find(s).each(function(t,n){e._addAriaAndCollapsedClass(i._getTargetFromElement(n),[n])}),n},o._addAriaAndCollapsedClass=function(e,n){if(e){var i=t(e).hasClass(c);n.length>0&&t(n).toggleClass(d,!i).attr("aria-expanded",i)}},i._getTargetFromElement=function(e){var n=P.getSelectorFromElement(e);return n?t(n)[0]:null},i._jQueryInterface=function(e){return this.each(function(){var s=t(this),o=s.data(n),l=r({},a,s.data(),"object"==typeof e&&e);if(!o&&l.toggle&&/show|hide/.test(e)&&(l.toggle=!1),o||(o=new i(this,l),s.data(n,o)),"string"==typeof e){if("undefined"==typeof o[e])throw new TypeError('No method n
2095amed "'+e+'"');o[e]()}})},s(i,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return a}}]),i}();return t(document).on(h.CLICK_DATA_API,p.DATA_TOGGLE,function(e){"A"===e.currentTarget.tagName&&e.preventDefault();var i=t(this),s=P.getSelectorFromElement(this);t(s).each(function(){var e=t(this),s=e.data(n)?"toggle":i.data();m._jQueryInterface.call(e,s)})}),t.fn[e]=m._jQueryInterface,t.fn[e].Constructor=m,t.fn[e].noConflict=function(){return t.fn[e]=o,m._jQueryInterface},m}(e),W=function(t){var e="dropdown",i="bs.dropdown",o="."+i,a=".data-api",l=t.fn[e],h=new RegExp("38|40|27"),c={HIDE:"hide"+o,HIDDEN:"hidden"+o,SHOW:"show"+o,SHOWN:"shown"+o,CLICK:"click"+o,CLICK_DATA_API:"click"+o+a,KEYDOWN_DATA_API:"keydown"+o+a,KEYUP_DATA_API:"keyup"+o+a},u="disabled",f="show",d="dropup",_="dropright",g="dropleft",p="dropdown-menu-right",m="dropdown-menu-left",v="position-static",E='[data-toggle="dropdown"]',T=".dropdown form",y=".dropdown-menu",C=".navbar-nav",I=".dropdown-menu .dropdown-item:not(.disabled)",A="top-start",b="top-end",D="bottom-start",S="bottom-end",w="right-start",N="left-start",O={offset:0,flip:!0,boundary:"scrollParent"},k={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)"},L=function(){function a(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var l=a.prototype;return l.toggle=function(){if(!this._element.disabled&&!t(this._element).hasClass(u)){var e=a._getParentFromElement(this._element),i=t(this._menu).hasClass(f);if(a._clearMenus(),!i){var s={relatedTarget:this._element},r=t.Event(c.SHOW,s);if(t(e).trigger(r),!r.isDefaultPrevented()){if(!this._inNavbar){if("undefined"==typeof n)throw new TypeError("Bootstrap dropdown require Popper.js (https://popper.js.org)");var o=this._element;t(e).hasClass(d)&&(t(this._menu).hasClass(m)||t(this._menu).hasClass(p))&&(o=e),"scrollParent"!==this._config.boundary&&t(e).addClass(v),this._popper=new n(o,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===t(e).closest(C).length&&t("body").children().on("mouseover",null,t.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),t(this._menu).toggleClass(f),t(e).toggleClass(f).trigger(t.Event(c.SHOWN,s))}}}},l.dispose=function(){t.removeData(this._element,i),t(this._element).off(o),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)},l.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},l._addEventListeners=function(){var e=this;t(this._element).on(c.CLICK,function(t){t.preventDefault(),t.stopPropagation(),e.toggle()})},l._getConfig=function(n){return n=r({},this.constructor.Default,t(this._element).data(),n),P.typeCheckConfig(e,n,this.constructor.DefaultType),n},l._getMenuElement=function(){if(!this._menu){var e=a._getParentFromElement(this._element);this._menu=t(e).find(y)[0]}return this._menu},l._getPlacement=function(){var e=t(this._element).parent(),n=D;return e.hasClass(d)?(n=A,t(this._menu).hasClass(p)&&(n=b)):e.hasClass(_)?n=w:e.hasClass(g)?n=N:t(this._menu).hasClass(p)&&(n=S),n},l._detectNavbar=function(){return t(this._element).closest(".navbar").length>0},l._getPopperConfig=function(){var t=this,e={};return"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=r({},e.offsets,t._config.offset(e.offsets)||{}),e}:e.offset=this._config.offset,{placement:this._getPlacement(),modifiers:{offset:e,flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}}},a._jQueryInterface=function(e){return this.each(function(){var n=t(this).data(i);if(n||(n=new a(this,"object"==typeof e?e:null),t(this).data(i,n)),"string"==typeof e){if("undefined"==typeof n[e])throw new TypeError('No method named "'+e+'"');n[e]()}})},a._clearMenus=function(e){if(!e||3!==e.which&&("keyup"!==e.type||9===e.which))for(var n=t.makeArray(t(E)),s=0;s<n.length;s++){var r=a._getParentFromElement(n[s]),o=t(n[s]).data(i),l={relatedTarget:n[s]};if(o){var h=o._menu;if(t(r).hasClass(f)&&!(e&&("click"===e.type&&/input|textarea/i.test(e.target.tagName)||"keyup"===e.type&&9===e.which)&&t.contains(r,e.target))){var u=t.Event(c.HIDE,l);t(r).trigger(u),u.isDefaultPrevented()||("ontouchstart"in document.documentElement&&t("body").children().off("mouseover",null,t.noop),n[s].setAttribute("aria-expanded","fal
2095se"),t(h).removeClass(f),t(r).removeClass(f).trigger(t.Event(c.HIDDEN,l)))}}}},a._getParentFromElement=function(e){var n,i=P.getSelectorFromElement(e);return i&&(n=t(i)[0]),n||e.parentNode},a._dataApiKeydownHandler=function(e){if((/input|textarea/i.test(e.target.tagName)?!(32===e.which||27!==e.which&&(40!==e.which&&38!==e.which||t(e.target).closest(y).length)):h.test(e.which))&&(e.preventDefault(),e.stopPropagation(),!this.disabled&&!t(this).hasClass(u))){var n=a._getParentFromElement(this),i=t(n).hasClass(f);if((i||27===e.which&&32===e.which)&&(!i||27!==e.which&&32!==e.which)){var s=t(n).find(I).get();if(0!==s.length){var r=s.indexOf(e.target);38===e.which&&r>0&&r--,40===e.which&&r<s.length-1&&r++,r<0&&(r=0),s[r].focus()}}else{if(27===e.which){var o=t(n).find(E)[0];t(o).trigger("focus")}t(this).trigger("click")}}},s(a,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return O}},{key:"DefaultType",get:function(){return k}}]),a}();return t(document).on(c.KEYDOWN_DATA_API,E,L._dataApiKeydownHandler).on(c.KEYDOWN_DATA_API,y,L._dataApiKeydownHandler).on(c.CLICK_DATA_API+" "+c.KEYUP_DATA_API,L._clearMenus).on(c.CLICK_DATA_API,E,function(e){e.preventDefault(),e.stopPropagation(),L._jQueryInterface.call(t(this),"toggle")}).on(c.CLICK_DATA_API,T,function(t){t.stopPropagation()}),t.fn[e]=L._jQueryInterface,t.fn[e].Constructor=L,t.fn[e].noConflict=function(){return t.fn[e]=l,L._jQueryInterface},L}(e),M=function(t){var e="modal",n="bs.modal",i="."+n,o=t.fn.modal,a={backdrop:!0,keyboard:!0,focus:!0,show:!0},l={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},h={HIDE:"hide"+i,HIDDEN:"hidden"+i,SHOW:"show"+i,SHOWN:"shown"+i,FOCUSIN:"focusin"+i,RESIZE:"resize"+i,CLICK_DISMISS:"click.dismiss"+i,KEYDOWN_DISMISS:"keydown.dismiss"+i,MOUSEUP_DISMISS:"mouseup.dismiss"+i,MOUSEDOWN_DISMISS:"mousedown.dismiss"+i,CLICK_DATA_API:"click"+i+".data-api"},c="modal-scrollbar-measure",u="modal-backdrop",f="modal-open",d="fade",_="show",g={DIALOG:".modal-dialog",DATA_TOGGLE:'[data-toggle="modal"]',DATA_DISMISS:'[data-dismiss="modal"]',FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"},p=function(){function o(e,n){this._config=this._getConfig(n),this._element=e,this._dialog=t(e).find(g.DIALOG)[0],this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._originalBodyPadding=0,this._scrollbarWidth=0}var p=o.prototype;return p.toggle=function(t){return this._isShown?this.hide():this.show(t)},p.show=function(e){var n=this;if(!this._isTransitioning&&!this._isShown){P.supportsTransitionEnd()&&t(this._element).hasClass(d)&&(this._isTransitioning=!0);var i=t.Event(h.SHOW,{relatedTarget:e});t(this._element).trigger(i),this._isShown||i.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),t(document.body).addClass(f),this._setEscapeEvent(),this._setResizeEvent(),t(this._element).on(h.CLICK_DISMISS,g.DATA_DISMISS,function(t){return n.hide(t)}),t(this._dialog).on(h.MOUSEDOWN_DISMISS,function(){t(n._element).one(h.MOUSEUP_DISMISS,function(e){t(e.target).is(n._element)&&(n._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return n._showElement(e)}))}},p.hide=function(e){var n=this;if(e&&e.preventDefault(),!this._isTransitioning&&this._isShown){var i=t.Event(h.HIDE);if(t(this._element).trigger(i),this._isShown&&!i.isDefaultPrevented()){this._isShown=!1;var s=P.supportsTransitionEnd()&&t(this._element).hasClass(d);s&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),t(document).off(h.FOCUSIN),t(this._element).removeClass(_),t(this._element).off(h.CLICK_DISMISS),t(this._dialog).off(h.MOUSEDOWN_DISMISS),s?t(this._element).one(P.TRANSITION_END,function(t){return n._hideModal(t)}).emulateTransitionEnd(300):this._hideModal()}}},p.dispose=function(){t.removeData(this._element,n),t(window,document,this._element,this._backdrop).off(i),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._scrollbarWidth=null},p.handleUpdate=function(){this._adjustDialog()},p._getConfig=function(t){return t=r({},a,t),P.typeCheckConfig(e,t,l),t},p._showElement=function(e){var n=this,i=P.supportsTransitionEnd()&&t(this._element).hasClass(d);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.scrollTop=0,i&&P.reflow(this._element),t(this._element).addClass(_),this._config.focus&&this._enforceFocus();var s=t.Event(h.SHOWN,{relatedTarget:e}),r=function(){n._config.focus&&n._element.focus(),n._isTransitioning=!1,t(n._element).trigger(s)};i?t(this._dialog).one(P.TRANSITION_END,r).emulateTransitionEnd(300):r()},p._enforceFocus=function(){var e=this;t(document).off(h.FOCUSIN).on(h.FOCUSIN,function(n){document!==n.target&&e._element!==n.target&&0===t(e._element).has(n.target).length&&e._element.focus()})},p._setEscapeEvent=function(){var e=this;this._isShown&&this._config.keyboard?t(this._element).on(h.KEYDOWN_DISMISS,function(t){27===t.which&&(t.preventDefault(),e.hide())}):this._isShown||t(this._element).off(h.KEYDOWN_DISMISS)},p._setResizeEvent=function(){var e=this;this._isShown?t(window).on(h.RESIZE,function(t){return e.handleUpdate(t)}):t(window).off(h.RESIZE)},p._hideModal=function(){var e=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1,this._showBackdrop(function(){t(document.body).removeClass(f),e._resetAdjustments(),e._resetScrollbar(),t(e._element).trigger(h.HIDDEN)})},p._removeBackdrop=function(){this._backdrop&&(t(this._backdrop).remove(),this._backdrop=null)},p._showBackdrop=function(e){var n=this,i=t(this._element).hasClass(d)?d:"";if(this._isShown&&this._config.backdrop){var s=P.supportsTransitionEnd()&&i;if(this._backdrop=document.createElement("div"),this._backdrop.className=u,i&&t(this._backdrop).addClass(i),t(this._backdrop).appendTo(document.body),t(this._element).on(h.CLICK_DISMISS,function(t){n._ignoreBackdropClick?n._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===n._config.backdrop?n._element.focus():n.hide())}),s&&P.reflow(this._backdrop),t(this._backdrop).addClass(_),!e)return;if(!s)return void e();t(this._backdrop).one(P.TRANSITION_END,e).emulateTransitionEnd(150)}else if(!this._isShown&&this._backdrop){t(this._backdrop).removeClass(_);var r=function(){n._removeBackdrop(),e&&e()};P.supportsTransitionEnd()&&t(this._element).hasClass(d)?t(this._backdrop).one(P.TRANSITION_END,r).emulateTransitionEnd(150):r()}else e&&e()},p._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},p._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},p._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=t.left+t.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},p._setScrollbar=function(){var e=this;if(this._isBodyOverflowing){t(g.FIXED_CONTENT).each(function(n,i){var s=t(i)[0].style.paddingRight,r=t(i).css("padding-right");t(i).data("padding-right",s).css("padding-right",parseFloat(r)+e._scrollbarWidth+"px")}),t(g.STICKY_CONTENT).each(function(n,i){var s=t(i)[0].style.marginRight,r=t(i).css("margin-right");t(i).data("margin-right",s).css("margin-right",parseFloat(r)-e._scrollbarWidth+"px")}),t(g.NAVBAR_TOGGLER).each(function(n,i){var s=t(i)[0].style.marginRight,r=t(i).css("margin-right");t(i).data("margin-right",s).css("margin-right",parseFloat(r)+e._scrollbarWidth+"px")});var n=document.body.style.paddingRight,i=t("body").css("padding-right");t("body").data("padding-right",n).css("padding-right",parseFloat(i)+this._scrollbarWidth+"px")}},p._resetScrollbar=function(){t(g.FIXED_CONTENT).each(function(e,n){var i=t(n).data("padding-right");"undefined"!=typeof i&&t(n).css("padding-right",i).removeData("padding-right")}),t(g.STICKY_CONTENT+", "+g.NAVBAR_TOGGLER).each(function(e,n){var i=t(n).data("margin-right");"undefined"!=typeof i&&t(n).css("margin-right",i).removeData("margin-right")});var e=t("body").data("padding-right");"undefined"!=typeof e&&t("body").css("padding-right",e).removeData("padding-right")},p._getScrollbarWidth=function(){var t=document.createElement("div");t.className=c,document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},o._jQueryInterface=function(e,i){return this.each(function(){var s=t(this).data(n),a=r({},o.Default,t(this).data(),"object"==typeof e&&e);if(s||(s=new o(this,a),t(this).data(n,s)),"string"==typeof e){if("undefined"==typeof s[e])throw new TypeError('No method n
2095amed "'+e+'"');s[e](i)}else a.show&&s.show(i)})},s(o,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return a}}]),o}();return t(document).on(h.CLICK_DATA_API,g.DATA_TOGGLE,function(e){var i,s=this,o=P.getSelectorFromElement(this);o&&(i=t(o)[0]);var a=t(i).data(n)?"toggle":r({},t(i).data(),t(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||e.preventDefault();var l=t(i).one(h.SHOW,function(e){e.isDefaultPrevented()||l.one(h.HIDDEN,function(){t(s).is(":visible")&&s.focus()})});p._jQueryInterface.call(t(i),a,this)}),t.fn.modal=p._jQueryInterface,t.fn.modal.Constructor=p,t.fn.modal.noConflict=function(){return t.fn.modal=o,p._jQueryInterface},p}(e),U=function(t){var e="tooltip",i="bs.tooltip",o="."+i,a=t.fn[e],l=new RegExp("(^|\\s)bs-tooltip\\S+","g"),h={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)"},c={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},u={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent"},f="show",d="out",_={HIDE:"hide"+o,HIDDEN:"hidden"+o,SHOW:"show"+o,SHOWN:"shown"+o,INSERTED:"inserted"+o,CLICK:"click"+o,FOCUSIN:"focusin"+o,FOCUSOUT:"focusout"+o,MOUSEENTER:"mouseenter"+o,MOUSELEAVE:"mouseleave"+o},g="fade",p="show",m=".tooltip-inner",v=".arrow",E="hover",T="focus",y="click",C="manual",I=function(){function a(t,e){if("undefined"==typeof n)throw new TypeError("Bootstrap tooltips require Popper.js (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var I=a.prototype;return I.enable=function(){this._isEnabled=!0},I.disable=function(){this._isEnabled=!1},I.toggleEnabled=function(){this._isEnabled=!this._isEnabled},I.toggle=function(e){if(this._isEnabled)if(e){var n=this.constructor.DATA_KEY,i=t(e.currentTarget).data(n);i||(i=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(n,i)),i._activeTrigger.click=!i._activeTrigger.click,i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)}else{if(t(this.getTipElement()).hasClass(p))return void this._leave(null,this);this._enter(null,this)}},I.dispose=function(){clearTimeout(this._timeout),t.removeData(this.element,this.constructor.DATA_KEY),t(this.element).off(this.constructor.EVENT_KEY),t(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&t(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,null!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},I.show=function(){var e=this;if("none"===t(this.element).css("display"))throw new Error("Please use show on visible elements");var i=t.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){t(this.element).trigger(i);var s=t.contains(this.element.ownerDocument.documentElement,this.element);if(i.isDefaultPrevented()||!s)return;var r=this.getTipElement(),o=P.getUID(this.constructor.NAME);r.setAttribute("id",o),this.element.setAttribute("aria-describedby",o),this.setContent(),this.config.animation&&t(r).addClass(g);var l="function"==typeof this.config.placement?this.config.placement.call(this,r,this.element):this.config.placement,h=this._getAttachment(l);this.addAttachmentClass(h);var c=!1===this.config.container?document.body:t(this.config.container);t(r).data(this.constructor.DATA_KEY,this),t.contains(this.element.ownerDocument.documentElement,this.tip)||t(r).appendTo(c),t(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new n(this.element,r,{placement:h,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:v}
2095,preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){e._handlePopperPlacementChange(t)}}),t(r).addClass(p),"ontouchstart"in document.documentElement&&t("body").children().on("mouseover",null,t.noop);var u=function(){e.config.animation&&e._fixTransition();var n=e._hoverState;e._hoverState=null,t(e.element).trigger(e.constructor.Event.SHOWN),n===d&&e._leave(null,e)};P.supportsTransitionEnd()&&t(this.tip).hasClass(g)?t(this.tip).one(P.TRANSITION_END,u).emulateTransitionEnd(a._TRANSITION_DURATION):u()}},I.hide=function(e){var n=this,i=this.getTipElement(),s=t.Event(this.constructor.Event.HIDE),r=function(){n._hoverState!==f&&i.parentNode&&i.parentNode.removeChild(i),n._cleanTipClass(),n.element.removeAttribute("aria-describedby"),t(n.element).trigger(n.constructor.Event.HIDDEN),null!==n._popper&&n._popper.destroy(),e&&e()};t(this.element).trigger(s),s.isDefaultPrevented()||(t(i).removeClass(p),"ontouchstart"in document.documentElement&&t("body").children().off("mouseover",null,t.noop),this._activeTrigger[y]=!1,this._activeTrigger[T]=!1,this._activeTrigger[E]=!1,P.supportsTransitionEnd()&&t(this.tip).hasClass(g)?t(i).one(P.TRANSITION_END,r).emulateTransitionEnd(150):r(),this._hoverState="")},I.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},I.isWithContent=function(){return Boolean(this.getTitle())},I.addAttachmentClass=function(e){t(this.getTipElement()).addClass("bs-tooltip-"+e)},I.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0],this.tip},I.setContent=function(){var e=t(this.getTipElement());this.setElementContent(e.find(m),this.getTitle()),e.removeClass(g+" "+p)},I.setElementContent=function(e,n){var i=this.config.html;"object"==typeof n&&(n.nodeType||n.jquery)?i?t(n).parent().is(e)||e.empty().append(n):e.text(t(n).text()):e[i?"html":"text"](n)},I.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},I._getAttachment=function(t){return c[t.toUpperCase()]},I._setListeners=function(){var e=this;this.config.trigger.split(" ").forEach(function(n){if("click"===n)t(e.element).on(e.constructor.Event.CLICK,e.config.selector,function(t){return e.toggle(t)});else if(n!==C){var i=n===E?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,s=n===E?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;t(e.element).on(i,e.config.selector,function(t){return e._enter(t)}).on(s,e.config.selector,function(t){return e._leave(t)})}t(e.element).closest(".modal").on("hide.bs.modal",function(){return e.hide()})}),this.config.selector?this.config=r({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},I._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},I._enter=function(e,n){var i=this.constructor.DATA_KEY;(n=n||t(e.currentTarget).data(i))||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(i,n)),e&&(n._activeTrigger["focusin"===e.type?T:E]=!0),t(n.getTipElement()).hasClass(p)||n._hoverState===f?n._hoverState=f:(clearTimeout(n._timeout),n._hoverState=f,n.config.delay&&n.config.delay.show?n._timeout=setTimeout(function(){n._hoverState===f&&n.show()},n.config.delay.show):n.show())},I._leave=function(e,n){var i=this.constructor.DATA_KEY;(n=n||t(e.currentTarget).data(i))||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(i,n)),e&&(n._activeTrigger["focusout"===e.type?T:E]=!1),n._isWithActiveTrigger()||(clearTimeout(n._timeout),n._hoverState=d,n.config.delay&&n.config.delay.hide?n._timeout=setTimeout(function(){n._hoverState===d&&n.hide()},n.config.delay.hide):n.hide())},I._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},I._getConfig=function(n){return"number"==typeof(n=r({},this.constructor.Default,t(this.element).data(),n)).delay&&(n.delay={show:n.delay,hide:n.delay}),"number"==typeof n.title&&(n.title=n.title.toString()),"number"==typeof n.content&&(n.content=n.content.toString()),P.typeCheckConfig(e,n,this.constructor.DefaultType),n},I._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},I._cleanTipClass=function(){var e=t(this.getTipElement()),n=e.attr("class").match(l);null!==n&&n.length>0&&e.removeClass(n.join(""))},I._handlePopperPlacementChange=function(t){this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},I._fixTransition=function(){var e=this.getTipElement(),n=this.config.animation;null===e.getAttribute("x-placement")&&(t(e).removeClass(g),this.config.animation=!1,this.hide(),this.show(),this.config.animation=n)},a._jQueryInterface=function(e){return this.each(function(){var n=t(this).data(i),s="object"==typeof e&&e;if((n||!/dispose|hide/.test(e))&&(n||(n=new a(this,s),t(this).data(i,n)),"string"==typeof e)){if("undefined"==typeof n[e])throw new TypeError('No method n
2095amed "'+e+'"');n[e]()}})},s(a,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return u}},{key:"NAME",get:function(){return e}},{key:"DATA_KEY",get:function(){return i}},{key:"Event",get:function(){return _}},{key:"EVENT_KEY",get:function(){return o}},{key:"DefaultType",get:function(){return h}}]),a}();return t.fn[e]=I._jQueryInterface,t.fn[e].Constructor=I,t.fn[e].noConflict=function(){return t.fn[e]=a,I._jQueryInterface},I}(e),x=function(t){var e="popover",n="bs.popover",i="."+n,o=t.fn[e],a=new RegExp("(^|\\s)bs-popover\\S+","g"),l=r({},U.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),h=r({},U.DefaultType,{content:"(string|element|function)"}),c="fade",u="show",f=".popover-header",d=".popover-body",_={HIDE:"hide"+i,HIDDEN:"hidden"+i,SHOW:"show"+i,SHOWN:"shown"+i,INSERTED:"inserted"+i,CLICK:"click"+i,FOCUSIN:"focusin"+i,FOCUSOUT:"focusout"+i,MOUSEENTER:"mouseenter"+i,MOUSELEAVE:"mouseleave"+i},g=function(r){var o,g;function p(){return r.apply(this,arguments)||this}g=r,(o=p).prototype=Object.create(g.prototype),o.prototype.constructor=o,o.__proto__=g;var m=p.prototype;return m.isWithContent=function(){return this.getTitle()||this._getContent()},m.addAttachmentClass=function(e){t(this.getTipElement()).addClass("bs-popover-"+e)},m.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0],this.tip},m.setContent=function(){var e=t(this.getTipElement());this.setElementContent(e.find(f),this.getTitle());var n=this._getContent();"function"==typeof n&&(n=n.call(this.element)),this.setElementContent(e.find(d),n),e.removeClass(c+" "+u)},m._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},m._cleanTipClass=function(){var e=t(this.getTipElement()),n=e.attr("class").match(a);null!==n&&n.length>0&&e.removeClass(n.join(""))},p._jQueryInterface=function(e){return this.each(function(){var i=t(this).data(n),s="object"==typeof e?e:null;if((i||!/destroy|hide/.test(e))&&(i||(i=new p(this,s),t(this).data(n,i)),"string"==typeof e)){if("undefined"==typeof i[e])throw new TypeError('No method named "'+e+'"');i[e]()}})},s(p,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return l}},{key:"NAME",get:function(){return e}},{key:"DATA_KEY",get:function(){return n}},{key:"Event",get:function(){return _}},{key:"EVENT_KEY",get:function(){return i}},{key:"DefaultType",get:function(){return h}}]),p}(U);return t.fn[e]=g._jQueryInterface,t.fn[e].Constructor=g,t.fn[e].noConflict=function(){return t.fn[e]=o,g._jQueryInterface},g}(e),K=function(t){var e="scrollspy",n="bs.scrollspy",i="."+n,o=t.fn[e],a={offset:10,method:"auto",target:""},l={offset:"number",method:"string",target:"(string|element)"},h={ACTIVATE:"activate"+i,SCROLL:"scroll"+i,LOAD_DATA_API:"load"+i+".data-api"},c="dropdown-item",u="active",f={DATA_SPY:'[data-spy="scroll"]',ACTIVE:".active",NAV_LIST_GROUP:".nav, .list-group",NAV_LINKS:".nav-link",NAV_ITEMS:".nav-item",LIST_ITEMS:".list-group-item",DROPDOWN:".dropdown",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},d="offset",_="position",g=function(){function o(e,n){var i=this;this._element=e,this._scrollElement="BODY"===e.tagName?window:e,this._config=this._getConfig(n),this._selector=this._config.target+" "+f.NAV_LINKS+","+this._config.target+" "+f.LIST_ITEMS+","+this._config.target+" "+f.DROPDOWN_ITEMS,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,t(this._scrollElement).on(h.SCROLL,function(t){return i._process(t)}),this.refresh(),this._process()}var g=o.prototype;return g.refresh=function(){var e=this,n=this._scrollElement===this._scrollElement.window?d:_,i="auto"===this._config.method?n:this._config.method,s=i===_?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),t.makeArray(t(this._selector)).map(function(e){var n,r=P.getSelectorFromElement(e);if(r&&(n=t(r)[0]),n){var o=n.getBoundingClientRect();if(o.width||o.height)return[t(n)[i]().top+s,r]}return null}).filter(function(t){return t}).sort(function(t,e){return t[0]-e[0]}
2095).forEach(function(t){e._offsets.push(t[0]),e._targets.push(t[1])})},g.dispose=function(){t.removeData(this._element,n),t(this._scrollElement).off(i),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},g._getConfig=function(n){if("string"!=typeof(n=r({},a,n)).target){var i=t(n.target).attr("id");i||(i=P.getUID(e),t(n.target).attr("id",i)),n.target="#"+i}return P.typeCheckConfig(e,n,l),n},g._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},g._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},g._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},g._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=n){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(var s=this._offsets.length;s--;){this._activeTarget!==this._targets[s]&&t>=this._offsets[s]&&("undefined"==typeof this._offsets[s+1]||t<this._offsets[s+1])&&this._activate(this._targets[s])}}},g._activate=function(e){this._activeTarget=e,this._clear();var n=this._selector.split(",");n=n.map(function(t){return t+'[data-target="'+e+'"],'+t+'[href="'+e+'"]'});var i=t(n.join(","));i.hasClass(c)?(i.closest(f.DROPDOWN).find(f.DROPDOWN_TOGGLE).addClass(u),i.addClass(u)):(i.addClass(u),i.parents(f.NAV_LIST_GROUP).prev(f.NAV_LINKS+", "+f.LIST_ITEMS).addClass(u),i.parents(f.NAV_LIST_GROUP).prev(f.NAV_ITEMS).children(f.NAV_LINKS).addClass(u)),t(this._scrollElement).trigger(h.ACTIVATE,{relatedTarget:e})},g._clear=function(){t(this._selector).filter(f.ACTIVE).removeClass(u)},o._jQueryInterface=function(e){return this.each(function(){var i=t(this).data(n);if(i||(i=new o(this,"object"==typeof e&&e),t(this).data(n,i)),"string"==typeof e){if("undefined"==typeof i[e])throw new TypeError('No method named "'+e+'"');i[e]()}})},s(o,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return a}}]),o}();return t(window).on(h.LOAD_DATA_API,function(){for(var e=t.makeArray(t(f.DATA_SPY)),n=e.length;n--;){var i=t(e[n]);g._jQueryInterface.call(i,i.data())}}),t.fn[e]=g._jQueryInterface,t.fn[e].Constructor=g,t.fn[e].noConflict=function(){return t.fn[e]=o,g._jQueryInterface},g}(e),V=function(t){var e="bs.tab",n="."+e,i=t.fn.tab,r={HIDE:"hide"+n,HIDDEN:"hidden"+n,SHOW:"show"+n,SHOWN:"shown"+n,CLICK_DATA_API:"click.bs.tab.data-api"},o="dropdown-menu",a="active",l="disabled",h="fade",c="show",u=".dropdown",f=".nav, .list-group",d=".active",_="> li > .active",g='[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',p=".dropdown-toggle",m="> .dropdown-menu .active",v=function(){function n(t){this._element=t}var i=n.prototype;return i.show=function(){var e=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&t(this._element).hasClass(a)||t(this._element).hasClass(l))){var n,i,s=t(this._element).closest(f)[0],o=P.getSelectorFromElement(this._element);if(s){var h="UL"===s.nodeName?_:d;i=(i=t.makeArray(t(s).find(h)))[i.length-1]}var c=t.Event(r.HIDE,{relatedTarget:this._element}),u=t.Event(r.SHOW,{relatedTarget:i});if(i&&t(i).trigger(c),t(this._element).trigger(u),!u.isDefaultPrevented()&&!c.isDefaultPrevented()){o&&(n=t(o)[0]),this._activate(this._element,s);var g=function(){var n=t.Event(r.HIDDEN,{relatedTarget:e._element}),s=t.Event(r.SHOWN,{relatedTarget:i});t(i).trigger(n),t(e._element).trigger(s)};n?this._activate(n,n.parentNode,g):g()}}},i.dispose=function(){t.removeData(this._element,e),this._element=null},i._activate=function(e,n,i){var s=this,r=("UL"===n.nodeName?t(n).find(_):t(n).children(d))[0],o=i&&P.supportsTransitionEnd()&&r&&t(r).hasClass(h),a=function(){return s._transitionComplete(e,r,i)};r&&o?t(r).one(P.TRANSITION_END,a).emulateTransitionEnd(150):a()},i._transitionComplete=function(e,n,i){if(n){t(n).removeClass(c+" "+a);var s=t(n.parentNode).find(m)[0];s&&t(s).removeClass(a),"tab"===n.getAttribute("role")&&n.setAttribute("aria-selected",!1)}if(t(e).addClass(a),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),P.reflow(e),t(e).addClass(c),e.parentNode&&t(e.parentNode).hasClass(o)){var r=t(e).closest(u)[0];r&&t(r).find(p).addClass(a),e.setAttribute("aria-expanded",!0)}i&&i()},n._jQueryInterface=function(i){return this.each(function(){var s=t(this),r=s.data(e);if(r||(r=new n(this),s.data(e,r)),"string"==typeof i){if("undefined"==typeof r[i])throw new TypeError('No method n
2095amed "'+i+'"');r[i]()}})},s(n,null,[{key:"VERSION",get:function(){return"4.0.0"}}]),n}();return t(document).on(r.CLICK_DATA_API,g,function(e){e.preventDefault(),v._jQueryInterface.call(t(this),"show")}),t.fn.tab=v._jQueryInterface,t.fn.tab.Constructor=v,t.fn.tab.noConflict=function(){return t.fn.tab=i,v._jQueryInterface},v}(e);!function(t){if("undefined"==typeof t)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1===e[0]&&9===e[1]&&e[2]<1||e[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(e),t.Util=P,t.Alert=L,t.Button=R,t.Carousel=j,t.Collapse=H,t.Dropdown=W,t.Modal=M,t.Popover=x,t.Scrollspy=K,t.Tab=V,t.Tooltip=U,Object.defineProperty(t,"__esModule",{value:!0})});
2096
2097!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){var e=-1,o=-1,n=function(t){return parseFloat(t)||0},a=function(e){var o=1,a=t(e),i=null,r=[];return a.each(function(){var e=t(this),a=e.offset().top-n(e.css("margin-top")),s=r.length>0?r[r.length-1]:null;null===s?r.push(e):Math.floor(Math.abs(i-a))<=o?r[r.length-1]=s.add(e):r.push(e),i=a}),r},i=function(e){var o={
2098byRow:!0,property:"height",target:null,remove:!1};return"object"==typeof e?t.extend(o,e):("boolean"==typeof e?o.byRow=e:"remove"===e&&(o.remove=!0),o)},r=t.fn.matchHeight=function(e){var o=i(e);if(o.remove){var n=this;return this.css(o.property,""),t.each(r._groups,function(t,e){e.elements=e.elements.not(n)}),this}return this.length<=1&&!o.target?this:(r._groups.push({elements:this,options:o}),r._apply(this,o),this)};r.version="0.7.2",r._groups=[],r._throttle=80,r._maintainScroll=!1,r._beforeUpdate=null,
2099r._afterUpdate=null,r._rows=a,r._parse=n,r._parseOptions=i,r._apply=function(e,o){var s=i(o),h=t(e),l=[h],c=t(window).scrollTop(),p=t("html").outerHeight(!0),u=h.parents().filter(":hidden");return u.each(function(){var e=t(this);e.data("style-cache",e.attr("style"))}),u.css("display","block"),s.byRow&&!s.target&&(h.each(function(){var e=t(this),o=e.css("display");"inline-block"!==o&&"flex"!==o&&"inline-flex"!==o&&(o="block"),e.data("style-cache",e.attr("style")),e.css({display:o,"padding-top":"0",
2100"padding-bottom":"0","margin-top":"0","margin-bottom":"0","border-top-width":"0","border-bottom-width":"0",height:"100px",overflow:"hidden"})}),l=a(h),h.each(function(){var e=t(this);e.attr("style",e.data("style-cache")||"")})),t.each(l,function(e,o){var a=t(o),i=0;if(s.target)i=s.target.outerHeight(!1);else{if(s.byRow&&a.length<=1)return void a.css(s.property,"");a.each(function(){var e=t(this),o=e.attr("style"),n=e.css("display");"inline-block"!==n&&"flex"!==n&&"inline-flex"!==n&&(n="block");var a={
2101display:n};a[s.property]="",e.css(a),e.outerHeight(!1)>i&&(i=e.outerHeight(!1)),o?e.attr("style",o):e.css("display","")})}a.each(function(){var e=t(this),o=0;s.target&&e.is(s.target)||("border-box"!==e.css("box-sizing")&&(o+=n(e.css("border-top-width"))+n(e.css("border-bottom-width")),o+=n(e.css("padding-top"))+n(e.css("padding-bottom"))),e.css(s.property,i-o+"px"))})}),u.each(function(){var e=t(this);e.attr("style",e.data("style-cache")||null)}),r._maintainScroll&&t(window).scrollTop(c/p*t("html").outerHeight(!0)),
2102this},r._applyDataApi=function(){var e={};t("[data-match-height], [data-mh]").each(function(){var o=t(this),n=o.attr("data-mh")||o.attr("data-match-height");n in e?e[n]=e[n].add(o):e[n]=o}),t.each(e,function(){this.matchHeight(!0)})};var s=function(e){r._beforeUpdate&&r._beforeUpdate(e,r._groups),t.each(r._groups,function(){r._apply(this.elements,this.options)}),r._afterUpdate&&r._afterUpdate(e,r._groups)};r._update=function(n,a){if(a&&"resize"===a.type){var i=t(window).width();if(i===e)return;e=i;
2103}n?o===-1&&(o=setTimeout(function(){s(a),o=-1},r._throttle)):s(a)},t(r._applyDataApi);var h=t.fn.on?"on":"bind";t(window)[h]("load",function(t){r._update(!1,t)}),t(window)[h]("resize orientationchange",function(t){r._update(!0,t)})});
2104jQuery('.featured-section .title-wrap').matchHeight({property:'min-height'});
2105(function(){var isIe=/(trident|msie)/i.test(navigator.userAgent);if(isIe&&document.getElementById&&window.addEventListener){window.addEventListener('hashchange',function(){var id=location.hash.substring(1),element;if(!(/^[A-z0-9_-]+$/.test(id))){return;}
2106element=document.getElementById(id);if(element){if(!(/^(?:a|select|input|button|textarea)$/i.test(element.tagName))){element.tabIndex=-1;}
2107element.focus();}},false);}})();
2108(function(factory){if(typeof define==='function'&&define.amd){define(['jquery'],factory);}else if(typeof module==='object'&&module.exports){module.exports=factory(require('jquery'));}else{factory(jQuery);}}(function($){var slice=Array.prototype.slice;var splice=Array.prototype.splice;var defaults={topSpacing:0,bottomSpacing:0,className:'is-sticky',wrapperClassName:'sticky-wrapper',center:false,getWidthFrom:'',widthFromWrapper:true,responsiveWidth:false,zIndex:'inherit'},$window=$(window),$document=$(document),sticked=[],windowHeight=$window.height(),scroller=function(){var scrollTop=$window.scrollTop(),documentHeight=$document.height(),dwh=documentHeight-windowHeight,extra=(scrollTop>dwh)?dwh-scrollTop:0;for(var i=0,l=sticked.length;i<l;i++){var s=sticked[i],elementTop=s.stickyWrapper.offset().top,etse=elementTop-s.topSpacing-extra;s.stickyWrapper.css('height',s.stickyElement.outerHeight());if(scrollTop<=etse){if(s.currentTop!==null){s.stickyElement.css({'width':'','position':'','top':'','z-index':''});s.stickyElement.parent().removeClass(s.className);s.stickyElement.trigger('sticky-end',[s]);s.currentTop=null;}}
2109else{var newTop=documentHeight-s.stickyElement.outerHeight()
2110-s.topSpacing-s.bottomSpacing-scrollTop-extra;if(newTop<0){newTop=newTop+s.topSpacing;}else{newTop=s.topSpacing;}
2111if(s.currentTop!==newTop){var newWidth;
vendor: 4,150 bytes, lines 2111-2121
2111if(s.getWidthFrom){padding=s.stickyElement.innerWidth()-s.stickyElement.width();newWidth=$(s.getWidthFrom).width()-padding||null;}else if(s.widthFromWrapper){newWidth=s.stickyWrapper.width();}
2112if(newWidth==null){newWidth=s.stickyElement.width();}
2113s.stickyElement.css('width',newWidth).css('position','fixed').css('top',newTop).css('z-index',s.zIndex);s.stickyElement.parent().addClass(s.className);if(s.currentTop===null){s.stickyElement.trigger('sticky-start',[s]);}else{s.stickyElement.trigger('sticky-update',[s]);}
2114if(s.currentTop===s.topSpacing&&s.currentTop>newTop||s.currentTop===null&&newTop<s.topSpacing){s.stickyElement.trigger('sticky-bottom-reached',[s]);}else if(s.currentTop!==null&&newTop===s.topSpacing&&s.currentTop<newTop){s.stickyElement.trigger('sticky-bottom-unreached',[s]);}
2115s.currentTop=newTop;}
2116var stickyWrapperContainer=s.stickyWrapper.parent();var unstick=(s.stickyElement.offset().top+s.stickyElement.outerHeight()>=stickyWrapperContainer.offset().top+stickyWrapperContainer.outerHeight())&&(s.stickyElement.offset().top<=s.topSpacing);if(unstick){s.stickyElement.css('position','absolute').css('top','').css('bottom',0).css('z-index','');}else{s.stickyElement.css('position','fixed').css('top',newTop).css('bottom','').css('z-index',s.zIndex);}}}},resizer=function(){windowHeight=$window.height();for(var i=0,l=sticked.length;i<l;i++){var s=sticked[i];var newWidth=null;if(s.getWidthFrom){if(s.responsiveWidth){newWidth=$(s.getWidthFrom).width();}}else if(s.widthFromWrapper){newWidth=s.stickyWrapper.width();}
2117if(newWidth!=null){s.stickyElement.css('width',newWidth);}}},methods={init:function(options){return this.each(function(){var o=$.extend({},defaults,options);var stickyElement=$(this);var stickyId=stickyElement.attr('id');var wrapperId=stickyId?stickyId+'-'+defaults.wrapperClassName:defaults.wrapperClassName;var wrapper=$('<div></div>').attr('id',wrapperId).addClass(o.wrapperClassName);stickyElement.wrapAll(function(){if($(this).parent("#"+wrapperId).length==0){return wrapper;}});var stickyWrapper=stickyElement.parent();if(o.center){stickyWrapper.css({width:stickyElement.outerWidth(),marginLeft:"auto",marginRight:"auto"});}
2118if(stickyElement.css("float")==="right"){stickyElement.css({"float":"none"}).parent().css({"float":"right"});}
2119o.stickyElement=stickyElement;o.stickyWrapper=stickyWrapper;o.currentTop=null;sticked.push(o);methods.setWrapperHeight(this);methods.setupChangeListeners(this);});},setWrapperHeight:function(stickyElement){var element=$(stickyElement);var stickyWrapper=element.parent();if(stickyWrapper){stickyWrapper.css('height',element.outerHeight());}},setupChangeListeners:function(stickyElement){if(window.MutationObserver){var mutationObserver=new window.MutationObserver(function(mutations){if(mutations[0].addedNodes.length||mutations[0].removedNodes.length){methods.setWrapperHeight(stickyElement);}});mutationObserver.observe(stickyElement,{subtree:true,childList:true});}else{if(window.addEventListener){stickyElement.addEventListener('DOMNodeInserted',function(){methods.setWrapperHeight(stickyElement);},false);stickyElement.addEventListener('DOMNodeRemoved',function(){methods.setWrapperHeight(stickyElement);},false);}else if(window.attachEvent){stickyElement.attachEvent('onDOMNodeInserted',function(){methods.setWrapperHeight(stickyElement);});stickyElement.attachEvent('onDOMNodeRemoved',function(){methods.setWrapperHeight(stickyElement);});}}},update:scroller,unstick:function(options){return this.each(function(){var that=this;var unstickyElement=$(that);var removeIdx=-1;var i=sticked.length;while(i-->0){if(sticked[i].stickyElement.get(0)===that){splice.call(sticked,i,1);removeIdx=i;}}
2120if(removeIdx!==-1){unstickyElement.unwrap();unstickyElement.css({'width':'','position':'','top':'','float':'','z-index':''});}});}};if(window.addEventListener){window.addEventListener('scroll',scroller,false);window.addEventListener('resize',resizer,false);}else if(window.attachEvent){window.attachEvent('onscroll',scroller);window.attachEvent('onresize',resizer);}
2121$.fn.sticky=function(method){if(methods[method]){return methods[method].apply(this,slice.call(arguments,1
2121));}else if(typeof method==='object'||!method){return methods.init.apply(this,arguments);}else{$.error('Method '+method+' does not exist on jQuery.sticky');}};$.fn.unstick=function(method){if(methods[method]){return methods[method].apply(this,slice.call(arguments,1));}else if(typeof method==='object'||!method){return methods.unstick.apply(this,arguments);}else{$.error('Method '+method+' does not exist on jQuery.sticky');}};$(function(){setTimeout(scroller,0);});}));
2122jQuery(window).load(function(){var site_content_row=jQuery('.site-content-row')[0],wp_adminBar=jQuery('#wpadminbar').outerHeight(),doc_width=jQuery(window).outerWidth(),top_spacing=20+wp_adminBar;if(site_content_row){var page_height=jQuery('body.theme-body').outerHeight(),page_before_height=jQuery('body.theme-body').offset().top,total_page_height=page_height+page_before_height,before_content_height=jQuery('.site-content-row').offset().top,content_height=jQuery('.site-content-row').outerHeight(),after_height=total_page_height-before_content_height-content_height;}
2123if(doc_width>=992){if(wp_adminBar){jQuery(".sticky-sidebar").sticky({topSpacing:top_spacing,bottomSpacing:after_height,});}else{jQuery(".sticky-sidebar").sticky({topSpacing:20,bottomSpacing:after_height,});}}});
2124jQuery(function(){jQuery('.search-toggle').on("click",function(event){var that=jQuery('.search-toggle'),wrapper=jQuery('.search-block');that.toggleClass('active');wrapper.toggleClass('off').toggleClass('on');jQuery('.search-block.on').fadeIn();jQuery('.search-block.off').fadeOut();if(that.is('.active')||jQuery('.search-toggle')[0]===event.target){wrapper.find('.s').focus();}
2125jQuery(document).on('keydown',function(e){if(e.keyCode===27&&that.hasClass('active')){that.removeClass('active');wrapper.addClass('off').removeClass('on');jQuery('.search-block.off').fadeOut();}});});var nav=jQuery('.info-bar .infobar-links');if(!nav){return;}
2126button=nav.find('.info-bar-links-menu-toggle');
2126if(!button){return;}
2127jQuery('.infobar-links-menu-toggle').on('click',function(){nav.toggleClass('toggled-link-on');});jQuery(".back-to-top").hide();jQuery(function(){jQuery(window).scroll(function(){if(jQuery(this).scrollTop()>1000){jQuery('.back-to-top').fadeIn();}else{jQuery('.back-to-top').fadeOut();}});jQuery('.back-to-top a').on("click",function(){jQuery('body,html,header').animate({scrollTop:0},800);return false;});});jQuery('.main-navigation').find('.sub-menu, .children').before('<span class="dropdown-toggle"><span class="dropdown-icon"></span></span>');jQuery('.main-navigation').find('.sub-menu, .children').parent().addClass('dropdown-parent');jQuery('.main-navigation').find('.dropdown-toggle').on('click',function(e){e.preventDefault();jQuery(this).next('.sub-menu, .children').toggleClass('dropdown-active');jQuery(this).toggleClass('toggle-on');});jQuery(window).on("load resize",function(e){var screenwidth=jQuery(window).outerWidth();if(screenwidth>=992){jQuery('.main-navigation').find('.sub-menu.dropdown-active, .children.dropdown-active').removeClass('dropdown-active');jQuery('.main-navigation').find('.dropdown-toggle.toggle-on').removeClass('toggle-on');}});});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.