window.$crisp=[];CRISP_RUNTIME_CONFIG={locale:'en'};CRISP_WEBSITE_ID='298259ad-11e1-41e1-9aa2-13f242c15709';(function(){d=document;s=d.createElement('script');s.src='https://client.crisp.chat/l.js';s.async=1;d.getElementsByTagName('head')[0].appendChild(s)})();/*! jQuery Migrate v3.4.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */ "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\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>"))!==t&&T(t)!==T(r)&&u("self-closed-tags","HTML tags must be properly nested and closed: "+t),e.replace(F,"<$1>")},"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});(function($){'use strict';$(document).ready(function($){$(".go_btn").click(async function(e){e.preventDefault();$(".go_btn").html("Please wait...");const createSubscriptionResponse=$.ajax({url:"/wp-admin/admin-ajax.php",type:'post',dataType:'json',data:{"action":"try_360_login"},success:function(response){if(response&&response.success){if(response.rurl&&response.rurl!='') location.href=response.rurl;else location.href="https://www.kimp360.com"}},error:function(jqXHR,textStatus,errorThrown){}})})})})(jQuery);var affwp_scripts={"ajaxurl":"https:\/\/www.kimp.io\/wp-admin\/admin-ajax.php"};/*! * jQuery Cookie Plugin v1.4.1 * https://github.com/carhartl/jquery-cookie * * Copyright 2013 Klaus Hartl * Released under the MIT license */ !function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?e(require("jquery")):e(jQuery)}(function(e){var n=/\+/g;function o(e){return r.raw?e:encodeURIComponent(e)}function i(e,o){var i=r.raw?e:function(e){0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return e=decodeURIComponent(e.replace(n," ")),r.json?JSON.parse(e):e}catch(o){}}(e);return"function"==typeof o?o(i):i}var r=e.cookie=function(n,t,u){if(t!==undefined&&"function"!=typeof t){if("number"==typeof(u=e.extend({},r.defaults,u)).expires){var c=u.expires,f=u.expires=new Date;f.setTime(+f+864e5*c)}return document.cookie=[o(n),"=",function(e){return o(r.json?JSON.stringify(e):String(e))}(t),u.expires?"; expires="+u.expires.toUTCString():"",u.path?"; path="+u.path:"",u.domain?"; domain="+u.domain:"",u.secure?"; secure":""].join("")}for(var d,a=n?undefined:{},p=document.cookie?document.cookie.split("; "):[],s=0,m=p.length;s'),document.write('');else{var currentScriptTag=document.currentScript,isAsyncLoad=currentScriptTag&¤tScriptTag.async;if("loading"!==document.readyState||isAsyncLoad){var scriptElem=document.createElement("script");scriptElem.src="https://assets.swarmcdn.com/cross/swarmcdn.js?v=4f42193d";var firstScript=document.getElementsByTagName("script")[0];firstScript.parentNode.insertBefore(scriptElem,firstScript),window.console&&console.log("Swarmify - swarmdetect.js: Script Append Succeeded")}else document.write(''),window.console&&console.log("Swarmify - swarmdetect.js: Document Write Succeeded")}window.SWARMIFY_LOADED=!0;/*! * Bootstrap v5.0.0-alpha2 (https://getbootstrap.com/) * Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap=e()}(this,(function(){"use strict";function t(t,e){for(var n=0;n-1||(r=t),[i,o,r]}function F(t,e,n,i,o){if("string"==typeof e&&t){n||(n=i,i=null);var r=R(e,n,i),s=r[0],a=r[1],l=r[2],c=H(t),u=c[l]||(c[l]={}),f=B(u,a,s?n:null);if(f)f.oneOff=f.oneOff&&o;else{var h=M(a,e.replace(S,"")),d=s?function(t,e,n){return function i(o){for(var r=t.querySelectorAll(e),s=o.target;s&&s!==this;s=s.parentNode)for(var a=r.length;a--;)if(r[a]===s)return o.delegateTarget=s,i.oneOff&&U.off(t,o.type,n),n.apply(s,[o]);return null}}(t,n,i):function(t,e){return function n(i){return i.delegateTarget=t,n.oneOff&&U.off(t,i.type,e),e.apply(t,[i])}}(t,n);d.delegationSelector=s?n:null,d.originalHandler=a,d.oneOff=o,d.uidEvent=h,u[h]=d,t.addEventListener(l,d,s)}}}function W(t,e,n,i,o){var r=B(e[n],i,o);r&&(t.removeEventListener(n,r,Boolean(o)),delete e[n][r.uidEvent])}var U={on:function(t,e,n,i){F(t,e,n,i,!1)},one:function(t,e,n,i){F(t,e,n,i,!0)},off:function(t,e,n,i){if("string"==typeof e&&t){var o=R(e,n,i),r=o[0],s=o[1],a=o[2],l=a!==e,c=H(t),u="."===e.charAt(0);if(void 0===s){u&&Object.keys(c).forEach((function(n){!function(t,e,n,i){var o=e[n]||{};Object.keys(o).forEach((function(r){if(r.indexOf(i)>-1){var s=o[r];W(t,e,n,s.originalHandler,s.delegationSelector)}}))}(t,c,n,e.slice(1))}));var f=c[a]||{};Object.keys(f).forEach((function(n){var i=n.replace(x,"");if(!l||e.indexOf(i)>-1){var o=f[n];W(t,c,a,o.originalHandler,o.delegationSelector)}}))}else{if(!c||!c[a])return;W(t,c,a,s,r?n:null)}}},trigger:function(t,e,n){if("string"!=typeof e||!t)return null;var i,o=e.replace(D,""),r=e!==o,s=P.indexOf(o)>-1,a=!0,l=!0,c=!1,u=null;return r&&O&&(i=O.Event(e,n),O(t).trigger(i),a=!i.isPropagationStopped(),l=!i.isImmediatePropagationStopped(),c=i.isDefaultPrevented()),s?(u=document.createEvent("HTMLEvents")).initEvent(o,a,!0):u=new CustomEvent(e,{bubbles:a,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((function(t){Object.defineProperty(u,t,{get:function(){return n[t]}})})),c&&(u.preventDefault(),C||Object.defineProperty(u,"defaultPrevented",{get:function(){return!0}})),l&&t.dispatchEvent(u),u.defaultPrevented&&void 0!==i&&i.preventDefault(),u}},Q="alert",V=function(){function t(t){this._element=t,this._element&&w(t,"bs.alert",this)}var n=t.prototype;return n.close=function(t){var e=t?this._getRootElement(t):this._element,n=this._triggerCloseEvent(e);null===n||n.defaultPrevented||this._removeElement(e)},n.dispose=function(){T(this._element,"bs.alert"),this._element=null},n._getRootElement=function(t){return u(t)||t.closest(".alert")},n._triggerCloseEvent=function(t){return U.trigger(t,"close.bs.alert")},n._removeElement=function(t){var e=this;if(t.classList.remove("show"),t.classList.contains("fade")){var n=f(t);U.one(t,"transitionend",(function(){return e._destroyElement(t)})),p(t,n)}else this._destroyElement(t)},n._destroyElement=function(t){t.parentNode&&t.parentNode.removeChild(t),U.trigger(t,"closed.bs.alert")},t.jQueryInterface=function(e){return this.each((function(){var n=E(this,"bs.alert");n||(n=new t(this)),"close"===e&&n[e](this)}))},t.handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},t.getInstance=function(t){return E(t,"bs.alert")},e(t,null,[{key:"VERSION",get:function(){return"5.0.0-alpha2"}}]),t}();U.on(document,"click.bs.alert.data-api",'[data-dismiss="alert"]',V.handleDismiss(new V));var K=b();if(K){var Y=K.fn[Q];K.fn[Q]=V.jQueryInterface,K.fn[Q].Constructor=V,K.fn[Q].noConflict=function(){return K.fn[Q]=Y,V.jQueryInterface}}var q=function(){function t(t){this._element=t,w(t,"bs.button",this)}var n=t.prototype;return n.toggle=function(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))},n.dispose=function(){T(this._element,"bs.button"),this._element=null},t.jQueryInterface=function(e){return this.each((function(){var n=E(this,"bs.button");n||(n=new t(this)),"toggle"===e&&n[e]()}))},t.getInstance=function(t){return E(t,"bs.button")},e(t,null,[{key:"VERSION",get:function(){return"5.0.0-alpha2"}}]),t}();U.on(document,"click.bs.button.data-api",'[data-toggle="button"]',(function(t){t.preventDefault();var e=t.target.closest('[data-toggle="button"]'),n=E(e,"bs.button");n||(n=new q(e)),n.toggle()}));var z=b();if(z){var X=z.fn.button;z.fn.button=q.jQueryInterface,z.fn.button.Constructor=q,z.fn.button.noConflict=function(){return z.fn.button=X,q.jQueryInterface}}function G(t){return"true"===t||"false"!==t&&(t===Number(t).toString()?Number(t):""===t||"null"===t?null:t)}function $(t){return t.replace(/[A-Z]/g,(function(t){return"-"+t.toLowerCase()}))}var Z={setDataAttribute:function(t,e,n){t.setAttribute("data-"+$(e),n)},removeDataAttribute:function(t,e){t.removeAttribute("data-"+$(e))},getDataAttributes:function(t){if(!t)return{};var e=n({},t.dataset);return Object.keys(e).forEach((function(t){e[t]=G(e[t])})),e},getDataAttribute:function(t,e){return G(t.getAttribute("data-"+$(e)))},offset:function(t){var e=t.getBoundingClientRect();return{top:e.top+document.body.scrollTop,left:e.left+document.body.scrollLeft}},position:function(t){return{top:t.offsetTop,left:t.offsetLeft}},toggleClass:function(t,e){t&&(t.classList.contains(e)?t.classList.remove(e):t.classList.add(e))}},J={matches:function(t,e){return t.matches(e)},find:function(t,e){var n;return void 0===e&&(e=document.documentElement),(n=[]).concat.apply(n,L.call(e,t))},findOne:function(t,e){return void 0===e&&(e=document.documentElement),k.call(e,t)},children:function(t,e){var n,i=(n=[]).concat.apply(n,t.children);return i.filter((function(t){return t.matches(e)}))},parents:function(t,e){for(var n=[],i=t.parentNode;i&&i.nodeType===Node.ELEMENT_NODE&&3!==i.nodeType;)this.matches(i,e)&&n.push(i),i=i.parentNode;return n},prev:function(t,e){for(var n=t.previousElementSibling;n;){if(n.matches(e))return[n];n=n.previousElementSibling}return[]},next:function(t,e){for(var n=t.nextElementSibling;n;){if(this.matches(n,e))return[n];n=n.nextElementSibling}return[]}},tt="carousel",et=".bs.carousel",nt={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},it={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},ot={TOUCH:"touch",PEN:"pen"},rt=function(){function t(t,e){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(e),this._element=t,this._indicatorsElement=J.findOne(".carousel-indicators",this._element),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent),this._addEventListeners(),w(t,"bs.carousel",this)}var i=t.prototype;return i.next=function(){this._isSliding||this._slide("next")},i.nextWhenVisible=function(){!document.hidden&&m(this._element)&&this.next()},i.prev=function(){this._isSliding||this._slide("prev")},i.pause=function(t){t||(this._isPaused=!0),J.findOne(".carousel-item-next, .carousel-item-prev",this._element)&&(h(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},i.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},i.to=function(t){var e=this;this._activeElement=J.findOne(".active.carousel-item",this._element);var n=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)U.one(this._element,"slid.bs.carousel",(function(){return e.to(t)}));else{if(n===t)return this.pause(),void this.cycle();var i=t>n?"next":"prev";this._slide(i,this._items[t])}},i.dispose=function(){U.off(this._element,et),T(this._element,"bs.carousel"),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},i._getConfig=function(t){return t=n({},nt,t),g(tt,t,it),t},i._handleSwipe=function(){var t=Math.abs(this.touchDeltaX);if(!(t<=40)){var e=t/this.touchDeltaX;this.touchDeltaX=0,e>0&&this.prev(),e<0&&this.next()}},i._addEventListeners=function(){var t=this;this._config.keyboard&&U.on(this._element,"keydown.bs.carousel",(function(e){return t._keydown(e)})),"hover"===this._config.pause&&(U.on(this._element,"mouseenter.bs.carousel",(function(e){return t.pause(e)})),U.on(this._element,"mouseleave.bs.carousel",(function(e){return t.cycle(e)}))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()},i._addTouchEventListeners=function(){var t=this,e=function(e){t._pointerEvent&&ot[e.pointerType.toUpperCase()]?t.touchStartX=e.clientX:t._pointerEvent||(t.touchStartX=e.touches[0].clientX)},n=function(e){t._pointerEvent&&ot[e.pointerType.toUpperCase()]&&(t.touchDeltaX=e.clientX-t.touchStartX),t._handleSwipe(),"hover"===t._config.pause&&(t.pause(),t.touchTimeout&&clearTimeout(t.touchTimeout),t.touchTimeout=setTimeout((function(e){return t.cycle(e)}),500+t._config.interval))};J.find(".carousel-item img",this._element).forEach((function(t){U.on(t,"dragstart.bs.carousel",(function(t){return t.preventDefault()}))})),this._pointerEvent?(U.on(this._element,"pointerdown.bs.carousel",(function(t){return e(t)})),U.on(this._element,"pointerup.bs.carousel",(function(t){return n(t)})),this._element.classList.add("pointer-event")):(U.on(this._element,"touchstart.bs.carousel",(function(t){return e(t)})),U.on(this._element,"touchmove.bs.carousel",(function(e){return function(e){e.touches&&e.touches.length>1?t.touchDeltaX=0:t.touchDeltaX=e.touches[0].clientX-t.touchStartX}(e)})),U.on(this._element,"touchend.bs.carousel",(function(t){return n(t)})))},i._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.key){case"ArrowLeft":t.preventDefault(),this.prev();break;case"ArrowRight":t.preventDefault(),this.next()}},i._getItemIndex=function(t){return this._items=t&&t.parentNode?J.find(".carousel-item",t.parentNode):[],this._items.indexOf(t)},i._getItemByDirection=function(t,e){var n="next"===t,i="prev"===t,o=this._getItemIndex(e),r=this._items.length-1;if((i&&0===o||n&&o===r)&&!this._config.wrap)return e;var s=(o+("prev"===t?-1:1))%this._items.length;return-1===s?this._items[this._items.length-1]:this._items[s]},i._triggerSlideEvent=function(t,e){var n=this._getItemIndex(t),i=this._getItemIndex(J.findOne(".active.carousel-item",this._element));return U.trigger(this._element,"slide.bs.carousel",{relatedTarget:t,direction:e,from:i,to:n})},i._setActiveIndicatorElement=function(t){if(this._indicatorsElement){for(var e=J.find(".active",this._indicatorsElement),n=0;n0)for(var i=0;i=0)return 1;return 0}();var mt=pt&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then((function(){e=!1,t()})))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout((function(){e=!1,t()}),gt))}};function vt(t){return t&&"[object Function]"==={}.toString.call(t)}function _t(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function bt(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function yt(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=_t(t),n=e.overflow,i=e.overflowX,o=e.overflowY;return/(auto|scroll|overlay)/.test(n+o+i)?t:yt(bt(t))}function wt(t){return t&&t.referenceNode?t.referenceNode:t}var Et=pt&&!(!window.MSInputMethodContext||!document.documentMode),Tt=pt&&/MSIE 10/.test(navigator.userAgent);function Lt(t){return 11===t?Et:10===t?Tt:Et||Tt}function kt(t){if(!t)return document.documentElement;for(var e=Lt(10)?document.body:null,n=t.offsetParent||null;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===_t(n,"position")?kt(n):n:t?t.ownerDocument.documentElement:document.documentElement}function Ct(t){return null!==t.parentNode?Ct(t.parentNode):t}function At(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?t:e,o=n?e:t,r=document.createRange();r.setStart(i,0),r.setEnd(o,0);var s=r.commonAncestorContainer;if(t!==s&&e!==s||i.contains(o))return function(t){var e=t.nodeName;return"BODY"!==e&&("HTML"===e||kt(t.firstElementChild)===t)}(s)?s:kt(s);var a=Ct(t);return a.host?At(a.host,e):At(t,Ct(e).host)}function Ot(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===e?"scrollTop":"scrollLeft",i=t.nodeName;if("BODY"===i||"HTML"===i){var o=t.ownerDocument.documentElement,r=t.ownerDocument.scrollingElement||o;return r[n]}return t[n]}function St(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=Ot(e,"top"),o=Ot(e,"left"),r=n?-1:1;return t.top+=i*r,t.bottom+=i*r,t.left+=o*r,t.right+=o*r,t}function Dt(t,e){var n="x"===e?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"])+parseFloat(t["border"+i+"Width"])}function xt(t,e,n,i){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],Lt(10)?parseInt(n["offset"+t])+parseInt(i["margin"+("Height"===t?"Top":"Left")])+parseInt(i["margin"+("Height"===t?"Bottom":"Right")]):0)}function Nt(t){var e=t.body,n=t.documentElement,i=Lt(10)&&getComputedStyle(n);return{height:xt("Height",e,n,i),width:xt("Width",e,n,i)}}var It=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},jt=function(){function t(t,e){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],i=Lt(10),o="HTML"===e.nodeName,r=Bt(t),s=Bt(e),a=yt(t),l=_t(e),c=parseFloat(l.borderTopWidth),u=parseFloat(l.borderLeftWidth);n&&o&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var f=Ht({top:r.top-s.top-c,left:r.left-s.left-u,width:r.width,height:r.height});if(f.marginTop=0,f.marginLeft=0,!i&&o){var h=parseFloat(l.marginTop),d=parseFloat(l.marginLeft);f.top-=c-h,f.bottom-=c-h,f.left-=u-d,f.right-=u-d,f.marginTop=h,f.marginLeft=d}return(i&&!n?e.contains(a):e===a&&"BODY"!==a.nodeName)&&(f=St(f,e)),f}function Ft(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,i=Rt(t,n),o=Math.max(n.clientWidth,window.innerWidth||0),r=Math.max(n.clientHeight,window.innerHeight||0),s=e?0:Ot(n),a=e?0:Ot(n,"left"),l={top:s-i.top+i.marginTop,left:a-i.left+i.marginLeft,width:o,height:r};return Ht(l)}function Wt(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===_t(t,"position"))return!0;var n=bt(t);return!!n&&Wt(n)}function Ut(t){if(!t||!t.parentElement||Lt())return document.documentElement;for(var e=t.parentElement;e&&"none"===_t(e,"transform");)e=e.parentElement;return e||document.documentElement}function Qt(t,e,n,i){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r={top:0,left:0},s=o?Ut(t):At(t,wt(e));if("viewport"===i)r=Ft(s,o);else{var a=void 0;"scrollParent"===i?"BODY"===(a=yt(bt(e))).nodeName&&(a=t.ownerDocument.documentElement):a="window"===i?t.ownerDocument.documentElement:i;var l=Rt(a,s,o);if("HTML"!==a.nodeName||Wt(s))r=l;else{var c=Nt(t.ownerDocument),u=c.height,f=c.width;r.top+=l.top-l.marginTop,r.bottom=u+l.top,r.left+=l.left-l.marginLeft,r.right=f+l.left}}var h="number"==typeof(n=n||0);return r.left+=h?n:n.left||0,r.top+=h?n:n.top||0,r.right-=h?n:n.right||0,r.bottom-=h?n:n.bottom||0,r}function Vt(t){return t.width*t.height}function Kt(t,e,n,i,o){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var s=Qt(n,i,r,o),a={top:{width:s.width,height:e.top-s.top},right:{width:s.right-e.right,height:s.height},bottom:{width:s.width,height:s.bottom-e.bottom},left:{width:e.left-s.left,height:s.height}},l=Object.keys(a).map((function(t){return Mt({key:t},a[t],{area:Vt(a[t])})})).sort((function(t,e){return e.area-t.area})),c=l.filter((function(t){var e=t.width,i=t.height;return e>=n.clientWidth&&i>=n.clientHeight})),u=c.length>0?c[0].key:l[0].key,f=t.split("-")[1];return u+(f?"-"+f:"")}function Yt(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=i?Ut(e):At(e,wt(n));return Rt(n,o,i)}function qt(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),i=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+i,height:t.offsetHeight+n}}function zt(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,(function(t){return e[t]}))}function Xt(t,e,n){n=n.split("-")[0];var i=qt(t),o={width:i.width,height:i.height},r=-1!==["right","left"].indexOf(n),s=r?"top":"left",a=r?"left":"top",l=r?"height":"width",c=r?"width":"height";return o[s]=e[s]+e[l]/2-i[l]/2,o[a]=n===a?e[a]-i[c]:e[zt(a)],o}function Gt(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function $t(t,e,n){return(void 0===n?t:t.slice(0,function(t,e,n){if(Array.prototype.findIndex)return t.findIndex((function(t){return t[e]===n}));var i=Gt(t,(function(t){return t[e]===n}));return t.indexOf(i)}(t,"name",n))).forEach((function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=t.function||t.fn;t.enabled&&vt(n)&&(e.offsets.popper=Ht(e.offsets.popper),e.offsets.reference=Ht(e.offsets.reference),e=n(e,t))})),e}function Zt(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=Yt(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=Kt(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=Xt(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=$t(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function Jt(t,e){return t.some((function(t){var n=t.name;return t.enabled&&n===e}))}function te(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),i=0;i1&&void 0!==arguments[1]&&arguments[1],n=fe.indexOf(t),i=fe.slice(n+1).concat(fe.slice(0,n));return e?i.reverse():i}var de="flip",pe="clockwise",ge="counterclockwise";function me(t,e,n,i){var o=[0,0],r=-1!==["right","left"].indexOf(i),s=t.split(/(\+|\-)/).map((function(t){return t.trim()})),a=s.indexOf(Gt(s,(function(t){return-1!==t.search(/,|\s/)})));s[a]&&-1===s[a].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==a?[s.slice(0,a).concat([s[a].split(l)[0]]),[s[a].split(l)[1]].concat(s.slice(a+1))]:[s];return(c=c.map((function(t,i){var o=(1===i?!r:r)?"height":"width",s=!1;return t.reduce((function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,s=!0,t):s?(t[t.length-1]+=e,s=!1,t):t.concat(e)}),[]).map((function(t){return function(t,e,n,i){var o=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+o[1],s=o[2];if(!r)return t;if(0===s.indexOf("%")){var a=void 0;switch(s){case"%p":a=n;break;case"%":case"%r":default:a=i}return Ht(a)[e]/100*r}if("vh"===s||"vw"===s)return("vh"===s?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*r;return r}(t,o,e,n)}))}))).forEach((function(t,e){t.forEach((function(n,i){se(n)&&(o[e]+=n*("-"===t[i-1]?-1:1))}))})),o}var ve={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,n=e.split("-")[0],i=e.split("-")[1];if(i){var o=t.offsets,r=o.reference,s=o.popper,a=-1!==["bottom","top"].indexOf(n),l=a?"left":"top",c=a?"width":"height",u={start:Pt({},l,r[l]),end:Pt({},l,r[l]+r[c]-s[c])};t.offsets.popper=Mt({},s,u[i])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var n=e.offset,i=t.placement,o=t.offsets,r=o.popper,s=o.reference,a=i.split("-")[0],l=void 0;return l=se(+n)?[+n,0]:me(n,r,s,a),"left"===a?(r.top+=l[0],r.left-=l[1]):"right"===a?(r.top+=l[0],r.left+=l[1]):"top"===a?(r.left+=l[0],r.top-=l[1]):"bottom"===a&&(r.left+=l[0],r.top+=l[1]),t.popper=r,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var n=e.boundariesElement||kt(t.instance.popper);t.instance.reference===n&&(n=kt(n));var i=te("transform"),o=t.instance.popper.style,r=o.top,s=o.left,a=o[i];o.top="",o.left="",o[i]="";var l=Qt(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);o.top=r,o.left=s,o[i]=a,e.boundaries=l;var c=e.priority,u=t.offsets.popper,f={primary:function(t){var n=u[t];return u[t]l[t]&&!e.escapeWithReference&&(i=Math.min(u[n],l[t]-("right"===t?u.width:u.height))),Pt({},n,i)}};return c.forEach((function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";u=Mt({},u,f[e](t))})),t.offsets.popper=u,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,n=e.popper,i=e.reference,o=t.placement.split("-")[0],r=Math.floor,s=-1!==["top","bottom"].indexOf(o),a=s?"right":"bottom",l=s?"left":"top",c=s?"width":"height";return n[a]r(i[a])&&(t.offsets.popper[l]=r(i[a])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var n;if(!ce(t.instance.modifiers,"arrow","keepTogether"))return t;var i=e.element;if("string"==typeof i){if(!(i=t.instance.popper.querySelector(i)))return t}else if(!t.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var o=t.placement.split("-")[0],r=t.offsets,s=r.popper,a=r.reference,l=-1!==["left","right"].indexOf(o),c=l?"height":"width",u=l?"Top":"Left",f=u.toLowerCase(),h=l?"left":"top",d=l?"bottom":"right",p=qt(i)[c];a[d]-ps[d]&&(t.offsets.popper[f]+=a[f]+p-s[d]),t.offsets.popper=Ht(t.offsets.popper);var g=a[f]+a[c]/2-p/2,m=_t(t.instance.popper),v=parseFloat(m["margin"+u]),_=parseFloat(m["border"+u+"Width"]),b=g-t.offsets.popper[f]-v-_;return b=Math.max(Math.min(s[c]-p,b),0),t.arrowElement=i,t.offsets.arrow=(Pt(n={},f,Math.round(b)),Pt(n,h,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(Jt(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=Qt(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),i=t.placement.split("-")[0],o=zt(i),r=t.placement.split("-")[1]||"",s=[];switch(e.behavior){case de:s=[i,o];break;case pe:s=he(i);break;case ge:s=he(i,!0);break;default:s=e.behavior}return s.forEach((function(a,l){if(i!==a||s.length===l+1)return t;i=t.placement.split("-")[0],o=zt(i);var c=t.offsets.popper,u=t.offsets.reference,f=Math.floor,h="left"===i&&f(c.right)>f(u.left)||"right"===i&&f(c.left)f(u.top)||"bottom"===i&&f(c.top)f(n.right),g=f(c.top)f(n.bottom),v="left"===i&&d||"right"===i&&p||"top"===i&&g||"bottom"===i&&m,_=-1!==["top","bottom"].indexOf(i),b=!!e.flipVariations&&(_&&"start"===r&&d||_&&"end"===r&&p||!_&&"start"===r&&g||!_&&"end"===r&&m),y=!!e.flipVariationsByContent&&(_&&"start"===r&&p||_&&"end"===r&&d||!_&&"start"===r&&m||!_&&"end"===r&&g),w=b||y;(h||v||w)&&(t.flipped=!0,(h||v)&&(i=s[l+1]),w&&(r=function(t){return"end"===t?"start":"start"===t?"end":t}(r)),t.placement=i+(r?"-"+r:""),t.offsets.popper=Mt({},t.offsets.popper,Xt(t.instance.popper,t.offsets.reference,t.placement)),t=$t(t.instance.modifiers,t,"flip"))})),t},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,n=e.split("-")[0],i=t.offsets,o=i.popper,r=i.reference,s=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return o[s?"left":"top"]=r[n]-(a?o[s?"width":"height"]:0),t.placement=zt(e),t.offsets.popper=Ht(o),t}},hide:{order:800,enabled:!0,fn:function(t){if(!ce(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=Gt(t.instance.modifiers,(function(t){return"preventOverflow"===t.name})).boundaries;if(e.bottomn.right||e.top>n.bottom||e.right2&&void 0!==arguments[2]?arguments[2]:{};It(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=mt(this.update.bind(this)),this.options=Mt({},t.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(Mt({},t.Defaults.modifiers,o.modifiers)).forEach((function(e){i.options.modifiers[e]=Mt({},t.Defaults.modifiers[e]||{},o.modifiers?o.modifiers[e]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(t){return Mt({name:t},i.options.modifiers[t])})).sort((function(t,e){return t.order-e.order})),this.modifiers.forEach((function(t){t.enabled&&vt(t.onLoad)&&t.onLoad(i.reference,i.popper,i.options,t,i.state)})),this.update();var r=this.options.eventsEnabled;r&&this.enableEventListeners(),this.state.eventsEnabled=r}return jt(t,[{key:"update",value:function(){return Zt.call(this)}},{key:"destroy",value:function(){return ee.call(this)}},{key:"enableEventListeners",value:function(){return oe.call(this)}},{key:"disableEventListeners",value:function(){return re.call(this)}}]),t}();_e.Utils=("undefined"!=typeof window?window:global).PopperUtils,_e.placements=ue,_e.Defaults=ve;var be="dropdown",ye=new RegExp("ArrowUp|ArrowDown|Escape"),we={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},Ee={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},Te=function(){function t(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners(),w(t,"bs.dropdown",this)}var i=t.prototype;return i.toggle=function(){if(!this._element.disabled&&!this._element.classList.contains("disabled")){var e=this._element.classList.contains("show");t.clearMenus(),e||this.show()}},i.show=function(){if(!(this._element.disabled||this._element.classList.contains("disabled")||this._menu.classList.contains("show"))){var e=t.getParentFromElement(this._element),n={relatedTarget:this._element};if(!U.trigger(this._element,"show.bs.dropdown",n).defaultPrevented){if(!this._inNavbar){if(void 0===_e)throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org)");var i=this._element;"parent"===this._config.reference?i=e:d(this._config.reference)&&(i=this._config.reference,void 0!==this._config.reference.jquery&&(i=this._config.reference[0])),"scrollParent"!==this._config.boundary&&e.classList.add("position-static"),this._popper=new _e(i,this._menu,this._getPopperConfig())}var o;if("ontouchstart"in document.documentElement&&!e.closest(".navbar-nav"))(o=[]).concat.apply(o,document.body.children).forEach((function(t){return U.on(t,"mouseover",null,(function(){}))}));this._element.focus(),this._element.setAttribute("aria-expanded",!0),Z.toggleClass(this._menu,"show"),Z.toggleClass(this._element,"show"),U.trigger(e,"shown.bs.dropdown",n)}}},i.hide=function(){if(!this._element.disabled&&!this._element.classList.contains("disabled")&&this._menu.classList.contains("show")){var e=t.getParentFromElement(this._element),n={relatedTarget:this._element};U.trigger(e,"hide.bs.dropdown",n).defaultPrevented||(this._popper&&this._popper.destroy(),Z.toggleClass(this._menu,"show"),Z.toggleClass(this._element,"show"),U.trigger(e,"hidden.bs.dropdown",n))}},i.dispose=function(){T(this._element,"bs.dropdown"),U.off(this._element,".bs.dropdown"),this._element=null,this._menu=null,this._popper&&(this._popper.destroy(),this._popper=null)},i.update=function(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.scheduleUpdate()},i._addEventListeners=function(){var t=this;U.on(this._element,"click.bs.dropdown",(function(e){e.preventDefault(),e.stopPropagation(),t.toggle()}))},i._getConfig=function(t){return t=n({},this.constructor.Default,Z.getDataAttributes(this._element),t),g(be,t,this.constructor.DefaultType),t},i._getMenuElement=function(){return J.next(this._element,".dropdown-menu")[0]},i._getPlacement=function(){var t=this._element.parentNode,e="bottom-start";return t.classList.contains("dropup")?(e="top-start",this._menu.classList.contains("dropdown-menu-right")&&(e="top-end")):t.classList.contains("dropright")?e="right-start":t.classList.contains("dropleft")?e="left-start":this._menu.classList.contains("dropdown-menu-right")&&(e="bottom-end"),e},i._detectNavbar=function(){return Boolean(this._element.closest(".navbar"))},i._getOffset=function(){var t=this,e={};return"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=n({},e.offsets,t._config.offset(e.offsets,t._element)||{}),e}:e.offset=this._config.offset,e},i._getPopperConfig=function(){var t={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(t.modifiers.applyStyle={enabled:!1}),n({},t,this._config.popperConfig)},t.dropdownInterface=function(e,n){var i=E(e,"bs.dropdown");if(i||(i=new t(e,"object"==typeof n?n:null)),"string"==typeof n){if(void 0===i[n])throw new TypeError('No method named "'+n+'"');i[n]()}},t.jQueryInterface=function(e){return this.each((function(){t.dropdownInterface(this,e)}))},t.clearMenus=function(e){if(!e||2!==e.button&&("keyup"!==e.type||"Tab"===e.key))for(var n=J.find('[data-toggle="dropdown"]'),i=0,o=n.length;i0&&r--,"ArrowDown"===e.key&&rdocument.documentElement.clientHeight;e||(this._element.style.overflowY="hidden"),this._element.classList.add("modal-static");var n=f(this._dialog);U.off(this._element,"transitionend"),U.one(this._element,"transitionend",(function(){t._element.classList.remove("modal-static"),e||(U.one(t._element,"transitionend",(function(){t._element.style.overflowY=""})),p(t._element,n))})),p(this._element,n),this._element.focus()}else this.hide()},i._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")},i._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},i._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(t.left+t.right)
',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,allowList:je,popperConfig:null},Ue={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},Qe=function(){function t(t,e){if(void 0===_e)throw new TypeError("Bootstrap's 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(),w(t,this.constructor.DATA_KEY,this)}var i=t.prototype;return i.enable=function(){this._isEnabled=!0},i.disable=function(){this._isEnabled=!1},i.toggleEnabled=function(){this._isEnabled=!this._isEnabled},i.toggle=function(t){if(this._isEnabled)if(t){var e=this.constructor.DATA_KEY,n=E(t.delegateTarget,e);n||(n=new this.constructor(t.delegateTarget,this._getDelegateConfig()),w(t.delegateTarget,e,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(this.getTipElement().classList.contains("show"))return void this._leave(null,this);this._enter(null,this)}},i.dispose=function(){clearTimeout(this._timeout),T(this.element,this.constructor.DATA_KEY),U.off(this.element,this.constructor.EVENT_KEY),U.off(this.element.closest(".modal"),"hide.bs.modal",this._hideModalHandler),this.tip&&this.tip.parentNode.removeChild(this.tip),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},i.show=function(){var t=this;if("none"===this.element.style.display)throw new Error("Please use show on visible elements");if(this.isWithContent()&&this._isEnabled){var e=U.trigger(this.element,this.constructor.Event.SHOW),n=function t(e){if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){var n=e.getRootNode();return n instanceof ShadowRoot?n:null}return e instanceof ShadowRoot?e:e.parentNode?t(e.parentNode):null}(this.element),i=null===n?this.element.ownerDocument.documentElement.contains(this.element):n.contains(this.element);if(e.defaultPrevented||!i)return;var o=this.getTipElement(),r=a(this.constructor.NAME);o.setAttribute("id",r),this.element.setAttribute("aria-describedby",r),this.setContent(),this.config.animation&&o.classList.add("fade");var s="function"==typeof this.config.placement?this.config.placement.call(this,o,this.element):this.config.placement,l=this._getAttachment(s);this._addAttachmentClass(l);var c,u=this._getContainer();if(w(o,this.constructor.DATA_KEY,this),this.element.ownerDocument.documentElement.contains(this.tip)||u.appendChild(o),U.trigger(this.element,this.constructor.Event.INSERTED),this._popper=new _e(this.element,o,this._getPopperConfig(l)),o.classList.add("show"),"ontouchstart"in document.documentElement)(c=[]).concat.apply(c,document.body.children).forEach((function(t){U.on(t,"mouseover",(function(){}))}));var h=function(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,U.trigger(t.element,t.constructor.Event.SHOWN),"out"===e&&t._leave(null,t)};if(this.tip.classList.contains("fade")){var d=f(this.tip);U.one(this.tip,"transitionend",h),p(this.tip,d)}else h()}},i.hide=function(){var t=this;if(this._popper){var e=this.getTipElement(),n=function(){"show"!==t._hoverState&&e.parentNode&&e.parentNode.removeChild(e),t._cleanTipClass(),t.element.removeAttribute("aria-describedby"),U.trigger(t.element,t.constructor.Event.HIDDEN),t._popper.destroy()};if(!U.trigger(this.element,this.constructor.Event.HIDE).defaultPrevented){var i;if(e.classList.remove("show"),"ontouchstart"in document.documentElement)(i=[]).concat.apply(i,document.body.children).forEach((function(t){return U.off(t,"mouseover",v)}));if(this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,this.tip.classList.contains("fade")){var o=f(e);U.one(e,"transitionend",n),p(e,o)}else n();this._hoverState=""}}},i.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},i.isWithContent=function(){return Boolean(this.getTitle())},i.getTipElement=function(){if(this.tip)return this.tip;var t=document.createElement("div");return t.innerHTML=this.config.template,this.tip=t.children[0],this.tip},i.setContent=function(){var t=this.getTipElement();this.setElementContent(J.findOne(".tooltip-inner",t),this.getTitle()),t.classList.remove("fade","show")},i.setElementContent=function(t,e){if(null!==t)return"object"==typeof e&&d(e)?(e.jquery&&(e=e[0]),void(this.config.html?e.parentNode!==t&&(t.innerHTML="",t.appendChild(e)):t.textContent=e.textContent)):void(this.config.html?(this.config.sanitize&&(e=Pe(e,this.config.allowList,this.config.sanitizeFn)),t.innerHTML=e):t.textContent=e)},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._getPopperConfig=function(t){var e=this;return n({},{placement:t,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:"."+this.constructor.NAME+"-arrow"},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){return e._handlePopperPlacementChange(t)}},this.config.popperConfig)},i._addAttachmentClass=function(t){this.getTipElement().classList.add("bs-tooltip-"+t)},i._getOffset=function(){var t=this,e={};return"function"==typeof this.config.offset?e.fn=function(e){return e.offsets=n({},e.offsets,t.config.offset(e.offsets,t.element)||{}),e}:e.offset=this.config.offset,e},i._getContainer=function(){return!1===this.config.container?document.body:d(this.config.container)?this.config.container:J.findOne(this.config.container)},i._getAttachment=function(t){return Fe[t.toUpperCase()]},i._setListeners=function(){var t=this;this.config.trigger.split(" ").forEach((function(e){if("click"===e)U.on(t.element,t.constructor.Event.CLICK,t.config.selector,(function(e){return t.toggle(e)}));else if("manual"!==e){var n="hover"===e?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,i="hover"===e?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;U.on(t.element,n,t.config.selector,(function(e){return t._enter(e)})),U.on(t.element,i,t.config.selector,(function(e){return t._leave(e)}))}})),this._hideModalHandler=function(){t.element&&t.hide()},U.on(this.element.closest(".modal"),"hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=n({},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(t,e){var n=this.constructor.DATA_KEY;(e=e||E(t.delegateTarget,n))||(e=new this.constructor(t.delegateTarget,this._getDelegateConfig()),w(t.delegateTarget,n,e)),t&&(e._activeTrigger["focusin"===t.type?"focus":"hover"]=!0),e.getTipElement().classList.contains("show")||"show"===e._hoverState?e._hoverState="show":(clearTimeout(e._timeout),e._hoverState="show",e.config.delay&&e.config.delay.show?e._timeout=setTimeout((function(){"show"===e._hoverState&&e.show()}),e.config.delay.show):e.show())},i._leave=function(t,e){var n=this.constructor.DATA_KEY;(e=e||E(t.delegateTarget,n))||(e=new this.constructor(t.delegateTarget,this._getDelegateConfig()),w(t.delegateTarget,n,e)),t&&(e._activeTrigger["focusout"===t.type?"focus":"hover"]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState="out",e.config.delay&&e.config.delay.hide?e._timeout=setTimeout((function(){"out"===e._hoverState&&e.hide()}),e.config.delay.hide):e.hide())},i._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},i._getConfig=function(t){var e=Z.getDataAttributes(this.element);return Object.keys(e).forEach((function(t){-1!==Be.indexOf(t)&&delete e[t]})),t&&"object"==typeof t.container&&t.container.jquery&&(t.container=t.container[0]),"number"==typeof(t=n({},this.constructor.Default,e,"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),g(Me,t,this.constructor.DefaultType),t.sanitize&&(t.template=Pe(t.template,t.allowList,t.sanitizeFn)),t},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 t=this.getTipElement(),e=t.getAttribute("class").match(He);null!==e&&e.length>0&&e.map((function(t){return t.trim()})).forEach((function(e){return t.classList.remove(e)}))},i._handlePopperPlacementChange=function(t){this.tip=t.instance.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(t.placement))},i._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(t.classList.remove("fade"),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},t.jQueryInterface=function(e){return this.each((function(){var n=E(this,"bs.tooltip"),i="object"==typeof e&&e;if((n||!/dispose|hide/.test(e))&&(n||(n=new t(this,i)),"string"==typeof e)){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e]()}}))},t.getInstance=function(t){return E(t,"bs.tooltip")},e(t,null,[{key:"VERSION",get:function(){return"5.0.0-alpha2"}},{key:"Default",get:function(){return We}},{key:"NAME",get:function(){return Me}},{key:"DATA_KEY",get:function(){return"bs.tooltip"}},{key:"Event",get:function(){return Ue}},{key:"EVENT_KEY",get:function(){return".bs.tooltip"}},{key:"DefaultType",get:function(){return Re}}]),t}(),Ve=b();if(Ve){var Ke=Ve.fn[Me];Ve.fn[Me]=Qe.jQueryInterface,Ve.fn[Me].Constructor=Qe,Ve.fn[Me].noConflict=function(){return Ve.fn[Me]=Ke,Qe.jQueryInterface}}var Ye="popover",qe=new RegExp("(^|\\s)bs-popover\\S+","g"),ze=n({},Qe.Default,{placement:"right",trigger:"click",content:"",template:''}),Xe=n({},Qe.DefaultType,{content:"(string|element|function)"}),Ge={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"},$e=function(t){var n,i;function o(){return t.apply(this,arguments)||this}i=t,(n=o).prototype=Object.create(i.prototype),n.prototype.constructor=n,n.__proto__=i;var r=o.prototype;return r.isWithContent=function(){return this.getTitle()||this._getContent()},r.setContent=function(){var t=this.getTipElement();this.setElementContent(J.findOne(".popover-header",t),this.getTitle());var e=this._getContent();"function"==typeof e&&(e=e.call(this.element)),this.setElementContent(J.findOne(".popover-body",t),e),t.classList.remove("fade","show")},r._addAttachmentClass=function(t){this.getTipElement().classList.add("bs-popover-"+t)},r._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},r._cleanTipClass=function(){var t=this.getTipElement(),e=t.getAttribute("class").match(qe);null!==e&&e.length>0&&e.map((function(t){return t.trim()})).forEach((function(e){return t.classList.remove(e)}))},o.jQueryInterface=function(t){return this.each((function(){var e=E(this,"bs.popover"),n="object"==typeof t?t:null;if((e||!/dispose|hide/.test(t))&&(e||(e=new o(this,n),w(this,"bs.popover",e)),"string"==typeof t)){if(void 0===e[t])throw new TypeError('No method named "'+t+'"');e[t]()}}))},o.getInstance=function(t){return E(t,"bs.popover")},e(o,null,[{key:"VERSION",get:function(){return"5.0.0-alpha2"}},{key:"Default",get:function(){return ze}},{key:"NAME",get:function(){return Ye}},{key:"DATA_KEY",get:function(){return"bs.popover"}},{key:"Event",get:function(){return Ge}},{key:"EVENT_KEY",get:function(){return".bs.popover"}},{key:"DefaultType",get:function(){return Xe}}]),o}(Qe),Ze=b();if(Ze){var Je=Ze.fn[Ye];Ze.fn[Ye]=$e.jQueryInterface,Ze.fn[Ye].Constructor=$e,Ze.fn[Ye].noConflict=function(){return Ze.fn[Ye]=Je,$e.jQueryInterface}}var tn="scrollspy",en={offset:10,method:"auto",target:""},nn={offset:"number",method:"string",target:"(string|element)"},on=function(){function t(t,e){var n=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(e),this._selector=this._config.target+" .nav-link, "+this._config.target+" .list-group-item, "+this._config.target+" .dropdown-item",this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,U.on(this._scrollElement,"scroll.bs.scrollspy",(function(t){return n._process(t)})),this.refresh(),this._process(),w(t,"bs.scrollspy",this)}var i=t.prototype;return i.refresh=function(){var t=this,e=this._scrollElement===this._scrollElement.window?"offset":"position",n="auto"===this._config.method?e:this._config.method,i="position"===n?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),J.find(this._selector).map((function(t){var e=c(t),o=e?J.findOne(e):null;if(o){var r=o.getBoundingClientRect();if(r.width||r.height)return[Z[n](o).top+i,e]}return null})).filter((function(t){return t})).sort((function(t,e){return t[0]-e[0]})).forEach((function(e){t._offsets.push(e[0]),t._targets.push(e[1])}))},i.dispose=function(){T(this._element,"bs.scrollspy"),U.off(this._scrollElement,".bs.scrollspy"),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},i._getConfig=function(t){if("string"!=typeof(t=n({},en,"object"==typeof t&&t?t:{})).target&&d(t.target)){var e=t.target.id;e||(e=a(tn),t.target.id=e),t.target="#"+e}return g(tn,t,nn),t},i._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},i._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},i._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},i._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&&t0)return this._activeTarget=null,void this._clear();for(var o=this._offsets.length;o--;){this._activeTarget!==this._targets[o]&&t>=this._offsets[o]&&(void 0===this._offsets[o+1]||t li > .active":".active";e=(e=J.find(o,i))[e.length-1]}var r=null;if(e&&(r=U.trigger(e,"hide.bs.tab",{relatedTarget:this._element})),!(U.trigger(this._element,"show.bs.tab",{relatedTarget:e}).defaultPrevented||null!==r&&r.defaultPrevented)){this._activate(this._element,i);var s=function(){U.trigger(e,"hidden.bs.tab",{relatedTarget:t._element}),U.trigger(t._element,"shown.bs.tab",{relatedTarget:e})};n?this._activate(n,n.parentNode,s):s()}}},n.dispose=function(){T(this._element,"bs.tab"),this._element=null},n._activate=function(t,e,n){var i=this,o=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?J.children(e,".active"):J.find(":scope > li > .active",e))[0],r=n&&o&&o.classList.contains("fade"),s=function(){return i._transitionComplete(t,o,n)};if(o&&r){var a=f(o);o.classList.remove("show"),U.one(o,"transitionend",s),p(o,a)}else s()},n._transitionComplete=function(t,e,n){if(e){e.classList.remove("active");var i=J.findOne(":scope > .dropdown-menu .active",e.parentNode);i&&i.classList.remove("active"),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}(t.classList.add("active"),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),_(t),t.classList.contains("fade")&&t.classList.add("show"),t.parentNode&&t.parentNode.classList.contains("dropdown-menu"))&&(t.closest(".dropdown")&&J.find(".dropdown-toggle").forEach((function(t){return t.classList.add("active")})),t.setAttribute("aria-expanded",!0));n&&n()},t.jQueryInterface=function(e){return this.each((function(){var n=E(this,"bs.tab")||new t(this);if("string"==typeof e){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e]()}}))},t.getInstance=function(t){return E(t,"bs.tab")},e(t,null,[{key:"VERSION",get:function(){return"5.0.0-alpha2"}}]),t}();U.on(document,"click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',(function(t){t.preventDefault(),(E(this,"bs.tab")||new an(this)).show()}));var ln=b();if(ln){var cn=ln.fn.tab;ln.fn.tab=an.jQueryInterface,ln.fn.tab.Constructor=an,ln.fn.tab.noConflict=function(){return ln.fn.tab=cn,an.jQueryInterface}}var un={animation:"boolean",autohide:"boolean",delay:"number"},fn={animation:!0,autohide:!0,delay:5e3},hn=function(){function t(t,e){this._element=t,this._config=this._getConfig(e),this._timeout=null,this._setListeners(),w(t,"bs.toast",this)}var i=t.prototype;return i.show=function(){var t=this;if(!U.trigger(this._element,"show.bs.toast").defaultPrevented){this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");var e=function(){t._element.classList.remove("showing"),t._element.classList.add("show"),U.trigger(t._element,"shown.bs.toast"),t._config.autohide&&(t._timeout=setTimeout((function(){t.hide()}),t._config.delay))};if(this._element.classList.remove("hide"),_(this._element),this._element.classList.add("showing"),this._config.animation){var n=f(this._element);U.one(this._element,"transitionend",e),p(this._element,n)}else e()}},i.hide=function(){var t=this;if(this._element.classList.contains("show")&&!U.trigger(this._element,"hide.bs.toast").defaultPrevented){var e=function(){t._element.classList.add("hide"),U.trigger(t._element,"hidden.bs.toast")};if(this._element.classList.remove("show"),this._config.animation){var n=f(this._element);U.one(this._element,"transitionend",e),p(this._element,n)}else e()}},i.dispose=function(){this._clearTimeout(),this._element.classList.contains("show")&&this._element.classList.remove("show"),U.off(this._element,"click.dismiss.bs.toast"),T(this._element,"bs.toast"),this._element=null,this._config=null},i._getConfig=function(t){return t=n({},fn,Z.getDataAttributes(this._element),"object"==typeof t&&t?t:{}),g("toast",t,this.constructor.DefaultType),t},i._setListeners=function(){var t=this;U.on(this._element,"click.dismiss.bs.toast",'[data-dismiss="toast"]',(function(){return t.hide()}))},i._clearTimeout=function(){clearTimeout(this._timeout),this._timeout=null},t.jQueryInterface=function(e){return this.each((function(){var n=E(this,"bs.toast");if(n||(n=new t(this,"object"==typeof e&&e)),"string"==typeof e){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e](this)}}))},t.getInstance=function(t){return E(t,"bs.toast")},e(t,null,[{key:"VERSION",get:function(){return"5.0.0-alpha2"}},{key:"DefaultType",get:function(){return un}},{key:"Default",get:function(){return fn}}]),t}(),dn=b();if(dn){var pn=dn.fn.toast;dn.fn.toast=hn.jQueryInterface,dn.fn.toast.Constructor=hn,dn.fn.toast.noConflict=function(){return dn.fn.toast=pn,hn.jQueryInterface}}return{Alert:V,Button:q,Carousel:rt,Collapse:ft,Dropdown:Te,Modal:Oe,Popover:$e,ScrollSpy:on,Tab:an,Toast:hn,Tooltip:Qe}}));function isBot(){const userAgent=navigator.userAgent.toLowerCase();const botKeywords=["googlebot","bingbot","slurp","duckduckbot","baiduspider","yandexbot","sogou","exabot","facebot","ia_archiver"];return botKeywords.some(keyword=>userAgent.includes(keyword))} var popactive=0;function checkLocation(){if(getCookie("country-demo-block")==null||getCookie("country-demo-block")==''){fetch('https://ipapi.co/json/?key=lHbP1nDg5RAGMlJUP0FnwEJRBRb0zJ6m6762vlOjv7jZvCOGxp').then(response=>response.json()).then(data=>{if(data.country_code==='IN'||data.country_code==='PK'||data.country_code==='LK'||data.country_code==='BD'){popactive=3;jQuery.ajax({url:"/wp-admin/admin-ajax.php",type:'post',dataType:'json',data:{"action":"online_demo_call_book_remove",},success:function(response){console.log(response)},error:function(jqXHR,textStatus,errorThrown){throw new Error('AJAX error: '+textStatus)}})}}).catch(error=>{console.error('Error fetching location:',error)})}else if(getCookie("country-demo-block")==1){popactive=3}} function getCookie(name){let cookieArr=document.cookie.split(";");for(let i=0;i=600){showButton.classList.add('highlight')}else{showButton.classList.remove('highlight')}});document.addEventListener('DOMContentLoaded',function(){if(!isBot()){checkLocation()}});const showButton=document.getElementById('showButton');const myDiv=document.getElementById('myDiv');const closeButton=document.getElementById('closeButton');showButton.addEventListener('click',()=>{myDiv.style.display='block';showButton.style.display='none';myDiv.classList.remove('fscrollBox');popactive=1});closeButton.addEventListener('click',()=>{myDiv.style.display='opacity:0';showButton.style.display='block';myDiv.classList.add('fscrollBox');popactive=2;jQuery.ajax({url:"/wp-admin/admin-ajax.php",type:'post',dataType:'json',data:{"action":"online_demo_call_book_hide",},success:function(response){console.log("response",response)},error:function(jqXHR,textStatus,errorThrown){throw new Error('AJAX error: '+textStatus)}})});window.addEventListener('scroll',function(){var hiddenblock=getCookie("demo-booking-hide");var scrollPosition=document.documentElement.scrollTop||document.body.scrollTop;if(popactive==3){showButton.style.display='none';myDiv.style.display='none'}else if(scrollPosition>1200&&popactive==0&&hiddenblock!=1){showButton.style.display='none';myDiv.style.display='block'}else if(scrollPosition>1200&&popactive==0&&hiddenblock==1){showButton.style.display='block';myDiv.style.display='none'}else if(popactive==1){showButton.style.display='none';myDiv.style.display='block'}else if(popactive==2){showButton.style.display='block';myDiv.style.display='none'}});var AFFWP=AFFWP||{};AFFWP.referral_var='partner';AFFWP.expiration=1;AFFWP.debug=0;AFFWP.referral_credit_last=0;jQuery(document).ready(function(){jQuery("button").click(function(){jQuery(".blog_sticky_bar").remove();jQuery(".main_header").removeClass("header_sticky_blog")})});Function&&Function.prototype&&Function.prototype.bind&&(/(MSIE ([6789]|10|11))|Trident/.test(navigator.userAgent)||(window.__twttr&&window.__twttr.widgets&&window.__twttr.widgets.loaded&&window.twttr.widgets.load&&window.twttr.widgets.load(),window.__twttr&&window.__twttr.widgets&&window.__twttr.widgets.init||function(t){function e(e){for(var n,i,o=e[0],s=e[1],a=0,c=[];a-1},forIn:i,isObject:s,isEmptyObject:a,toType:o,isType:function(t,e){return t==o(e)},toRealArray:u}},function(t,e){t.exports=window},function(t,e,n){var r=n(16),i=/(?:^|(?:https?:)?\/\/(?:www\.)?twitter\.com(?::\d+)?(?:\/intent\/(?:follow|user)\/?\?screen_name=|(?:\/#!)?\/))@?([\w]+)(?:\?|&|$)/i,o=/(?:^|(?:https?:)?\/\/(?:www\.)?twitter\.com(?::\d+)?\/(?:#!\/)?[\w_]+\/status(?:es)?\/)(\d+)/i,s=/^http(s?):\/\/(\w+\.)*twitter\.com([:/]|$)/i,a=/^http(s?):\/\/(ton|pbs)\.twimg\.com/,u=/^#?([^.,<>!\s/#\-()'"]+)$/,c=/twitter\.com(?::\d{2,4})?\/intent\/(\w+)/,d=/^https?:\/\/(?:www\.)?twitter\.com\/\w+\/timelines\/(\d+)/i,f=/^https?:\/\/(?:www\.)?twitter\.com\/i\/moments\/(\d+)/i,l=/^https?:\/\/(?:www\.)?twitter\.com\/(\w+)\/(?:likes|favorites)/i,h=/^https?:\/\/(?:www\.)?twitter\.com\/(\w+)\/lists\/([\w-%]+)/i,p=/^https?:\/\/(?:www\.)?twitter\.com\/i\/live\/(\d+)/i,m=/^https?:\/\/syndication\.twitter\.com\/settings/i,v=/^https?:\/\/(localhost|platform)\.twitter\.com(?::\d+)?\/widgets\/widget_iframe\.(.+)/i,g=/^https?:\/\/(?:www\.)?twitter\.com\/search\?q=(\w+)/i;function w(t){return"string"==typeof t&&i.test(t)&&RegExp.$1.length<=20}function y(t){if(w(t))return RegExp.$1}function b(t,e){var n=r.decodeURL(t);if(e=e||!1,n.screen_name=y(t),n.screen_name)return r.url("https://twitter.com/intent/"+(e?"follow":"user"),n)}function _(t){return"string"==typeof t&&u.test(t)}function E(t){return"string"==typeof t&&o.test(t)}t.exports={isHashTag:_,hashTag:function(t,e){if(e=void 0===e||e,_(t))return(e?"#":"")+RegExp.$1},isScreenName:w,screenName:y,isStatus:E,status:function(t){return E(t)&&RegExp.$1},intentForProfileURL:b,intentForFollowURL:function(t){return b(t,!0)},isTwitterURL:function(t){return s.test(t)},isTwimgURL:function(t){return a.test(t)},isIntentURL:function(t){return c.test(t)},isSettingsURL:function(t){return m.test(t)},isWidgetIframeURL:function(t){return v.test(t)},isSearchUrl:function(t){return g.test(t)},regexen:{profile:i},momentId:function(t){return f.test(t)&&RegExp.$1},collectionId:function(t){return d.test(t)&&RegExp.$1},intentType:function(t){return c.test(t)&&RegExp.$1},likesScreenName:function(t){return l.test(t)&&RegExp.$1},listScreenNameAndSlug:function(t){var e,n,r;if(h.test(t)){e=RegExp.$1,n=RegExp.$2;try{r=decodeURIComponent(n)}catch(t){}return{ownerScreenName:e,slug:r||n}}return!1},eventId:function(t){return p.test(t)&&RegExp.$1}}},function(t,e,n){var r=n(6);t.exports=function(){var t=this;this.promise=new r(function(e,n){t.resolve=e,t.reject=n})}},function(t,e){t.exports=document},function(t,e,n){var r=n(0),i=[!0,1,"1","on","ON","true","TRUE","yes","YES"],o=[!1,0,"0","off","OFF","false","FALSE","no","NO"];function s(t){return void 0!==t&&null!==t&&""!==t}function a(t){return c(t)&&t%1==0}function u(t){return c(t)&&!a(t)}function c(t){return s(t)&&!isNaN(t)}function d(t){return r.contains(o,t)}function f(t){return r.contains(i,t)}t.exports={hasValue:s,isInt:a,isFloat:u,isNumber:c,isString:function(t){return"string"===r.toType(t)},isArray:function(t){return s(t)&&"array"==r.toType(t)},isTruthValue:f,isFalseValue:d,asInt:function(t){if(a(t))return parseInt(t,10)},asFloat:function(t){if(u(t))return t},asNumber:function(t){if(c(t))return t},asBoolean:function(t){return!(!s(t)||!f(t)&&(d(t)||!t))}}},function(t,e,n){var r=n(1),i=n(20),o=n(45);i.hasPromiseSupport()||(r.Promise=o),t.exports=r.Promise},function(t,e,n){var r=n(0);t.exports=function(t,e){var n=Array.prototype.slice.call(arguments,2);return function(){var i=r.toRealArray(arguments);return t.apply(e,n.concat(i))}}},function(t,e){t.exports=location},function(t,e,n){var r=n(47);t.exports=new r("__twttr")},function(t,e,n){var r=n(0),i=/\b([\w-_]+)\b/g;function o(t){return new RegExp("\\b"+t+"\\b","g")}function s(t,e){t.classList?t.classList.add(e):o(e).test(t.className)||(t.className+=" "+e)}function a(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(o(e)," ")}function u(t,e){return t.classList?t.classList.contains(e):r.contains(c(t),e)}function c(t){return r.toRealArray(t.classList?t.classList:t.className.match(i))}t.exports={add:s,remove:a,replace:function(t,e,n){if(t.classList&&u(t,e))return a(t,e),void s(t,n);t.className=t.className.replace(o(e),n)},toggle:function(t,e,n){return void 0===n&&t.classList&&t.classList.toggle?t.classList.toggle(e,n):(n?s(t,e):a(t,e),n)},present:u,list:c}},function(t,e,n){var r=n(19),i=n(5),o=n(16),s=n(0),a=n(108);t.exports=function(t){var e=t.href&&t.href.split("?")[1],n=e?o.decode(e):{},u={lang:a(t),width:t.getAttribute("data-width")||t.getAttribute("width"),height:t.getAttribute("data-height")||t.getAttribute("height"),related:t.getAttribute("data-related"),partner:t.getAttribute("data-partner")};return i.asBoolean(t.getAttribute("data-dnt"))&&r.setOn(),s.forIn(u,function(t,e){var r=n[t];n[t]=i.hasValue(r)?r:e}),s.compact(n)}},function(t,e,n){var r=n(109),i=n(21);t.exports=function(){var t="data-twitter-extracted-"+i.generate();return function(e,n){return r(e,n).filter(function(e){return!e.hasAttribute(t)}).map(function(e){return e.setAttribute(t,"true"),e})}}},function(t,e){function n(t,e,n,r,i,o,s){this.factory=t,this.Sandbox=e,this.srcEl=o,this.targetEl=i,this.parameters=r,this.className=n,this.options=s}n.prototype.destroy=function(){this.srcEl=this.targetEl=null},t.exports=n},function(t,e){t.exports={DM_BUTTON:"twitter-dm-button",FOLLOW_BUTTON:"twitter-follow-button",HASHTAG_BUTTON:"twitter-hashtag-button",MENTION_BUTTON:"twitter-mention-button",MOMENT:"twitter-moment",PERISCOPE:"periscope-on-air",SHARE_BUTTON:"twitter-share-button",TIMELINE:"twitter-timeline",TWEET:"twitter-tweet"}},function(t,e,n){var r=n(6),i=n(19),o=n(50),s=n(34),a=n(5),u=n(0);t.exports=function(t,e,n){var c;return t=t||[],e=e||{},c="ƒ("+t.join(", ")+", target, [options]);",function(){var d,f,l,h,p=Array.prototype.slice.apply(arguments,[0,t.length]),m=Array.prototype.slice.apply(arguments,[t.length]);return m.forEach(function(t){t&&(t.nodeType!==Node.ELEMENT_NODE?u.isType("function",t)?d=t:u.isType("object",t)&&(f=t):l=t)}),p.length!==t.length||0===m.length?(d&&u.async(function(){d(!1)}),r.reject(new Error("Not enough parameters. Expected: "+c))):l?(f=u.aug({},f||{},e),t.forEach(function(t){f[t]=p.shift()}),a.asBoolean(f.dnt)&&i.setOn(),h=s.getExperiments().then(function(t){return o.addWidget(n(f,l,void 0,t))}),d&&h.then(d,function(){d(!1)}),h):(d&&u.async(function(){d(!1)}),r.reject(new Error("No target element specified. Expected: "+c)))}}},function(t,e,n){var r=n(5),i=n(0);function o(t){return encodeURIComponent(t).replace(/\+/g,"%2B").replace(/'/g,"%27")}function s(t){return decodeURIComponent(t)}function a(t){var e=[];return i.forIn(t,function(t,n){var s=o(t);i.isType("array",n)||(n=[n]),n.forEach(function(t){r.hasValue(t)&&e.push(s+"="+o(t))})}),e.sort().join("&")}function u(t){var e={};return t?(t.split("&").forEach(function(t){var n=t.split("="),r=s(n[0]),o=s(n[1]);if(2==n.length){if(!i.isType("array",e[r]))return r in e?(e[r]=[e[r]],void e[r].push(o)):void(e[r]=o);e[r].push(o)}}),e):{}}t.exports={url:function(t,e){return a(e).length>0?i.contains(t,"?")?t+"&"+a(e):t+"?"+a(e):t},decodeURL:function(t){var e=t&&t.split("?");return 2==e.length?u(e[1]):{}},decode:u,encode:a,encodePart:o,decodePart:s}},function(t,e,n){var r=n(90),i=n(3),o=n(0);function s(t,e){return function(){try{e.resolve(t.call(this))}catch(t){e.reject(t)}}}t.exports={sync:function(t,e){t.call(e)},read:function(t,e){var n=new i;return r.read(s(t,n),e),n.promise},write:function(t,e){var n=new i;return r.write(s(t,n),e),n.promise},defer:function(t,e,n){var a=new i;return o.isType("function",t)&&(n=e,e=t,t=1),r.defer(t,s(e,a),n),a.promise}}},function(t,e,n){var r=n(8),i=n(1),o=n(0),s={},a=o.contains(r.href,"tw_debug=true");function u(){}function c(){}function d(){return i.performance&&+i.performance.now()||+new Date}function f(t,e){if(i.console&&i.console[t])switch(e.length){case 1:i.console[t](e[0]);break;case 2:i.console[t](e[0],e[1]);break;case 3:i.console[t](e[0],e[1],e[2]);break;case 4:i.console[t](e[0],e[1],e[2],e[3]);break;case 5:i.console[t](e[0],e[1],e[2],e[3],e[4]);break;default:0!==e.length&&i.console.warn&&i.console.warn("too many params passed to logger."+t)}}t.exports={devError:u,devInfo:c,devObject:function(t,e){},publicError:function(){f("error",o.toRealArray(arguments))},publicLog:function(){f("info",o.toRealArray(arguments))},publicWarn:function(){f("warn",o.toRealArray(arguments))},time:function(t){a&&(s[t]=d())},timeEnd:function(t){a&&s[t]&&(d(),s[t])}}},function(t,e,n){var r=n(4),i=n(8),o=n(38),s=n(94),a=n(5),u=n(33),c=!1,d=/https?:\/\/([^/]+).*/i;t.exports={setOn:function(){c=!0},enabled:function(t,e){return!!(c||a.asBoolean(u.val("dnt"))||s.isUrlSensitive(e||i.host)||o.isFramed()&&s.isUrlSensitive(o.rootDocumentLocation())||(t=d.test(t||r.referrer)&&RegExp.$1)&&s.isUrlSensitive(t))}}},function(t,e,n){var r=n(4),i=n(83),o=n(1),s=n(0),a=i.userAgent;function u(t){return/(Trident|MSIE|Edge[/ ]?\d)/.test(t=t||a)}t.exports={retina:function(t){return(t=t||o).devicePixelRatio?t.devicePixelRatio>=1.5:!!t.matchMedia&&t.matchMedia("only screen and (min-resolution: 144dpi)").matches},anyIE:u,ie9:function(t){return/MSIE 9/.test(t=t||a)},ie10:function(t){return/MSIE 10/.test(t=t||a)},ios:function(t){return/(iPad|iPhone|iPod)/.test(t=t||a)},android:function(t){return/^Mozilla\/5\.0 \(Linux; (U; )?Android/.test(t=t||a)},canPostMessage:function(t,e){return t=t||o,e=e||a,t.postMessage&&!(u(e)&&t.opener)},touch:function(t,e,n){return t=t||o,e=e||i,n=n||a,"ontouchstart"in t||/Opera Mini/.test(n)||e.msMaxTouchPoints>0},cssTransitions:function(){var t=r.body.style;return void 0!==t.transition||void 0!==t.webkitTransition||void 0!==t.mozTransition||void 0!==t.oTransition||void 0!==t.msTransition},hasPromiseSupport:function(){return!!(o.Promise&&o.Promise.resolve&&o.Promise.reject&&o.Promise.all&&o.Promise.race&&(new o.Promise(function(e){t=e}),s.isType("function",t)));var t},hasIntersectionObserverSupport:function(){return!!o.IntersectionObserver},hasPerformanceInformation:function(){return o.performance&&o.performance.getEntriesByType}}},function(t,e){var n="i",r=0,i=0;t.exports={generate:function(){return n+String(+new Date)+Math.floor(1e5*Math.random())+r++},deterministic:function(){return n+String(i++)}}},function(t,e,n){var r=n(46),i=n(49),o=n(0);t.exports=o.aug(r.get("events")||{},i.Emitter)},function(t,e,n){var r=n(6),i=n(3);function o(t,e){return t.then(e,e)}function s(t){return t instanceof r}t.exports={always:o,allResolved:function(t){var e;return void 0===t?r.reject(new Error("undefined is not an object")):Array.isArray(t)?(e=t.length)?new r(function(n,r){var i=0,o=[];function a(){(i+=1)===e&&(0===o.length?r():n(o))}function u(t){o.push(t),a()}t.forEach(function(t){s(t)?t.then(u,a):u(t)})}):r.resolve([]):r.reject(new Error("Type error"))},some:function(t){var e;return e=(t=t||[]).length,t=t.filter(s),e?e!==t.length?r.reject("non-Promise passed to .some"):new r(function(e,n){var r=0;function i(){(r+=1)===t.length&&n()}t.forEach(function(t){t.then(e,i)})}):r.reject("no promises passed to .some")},isPromise:s,allSettled:function(t){function e(){}return r.all((t||[]).map(function(t){return o(t,e)}))},timeout:function(t,e){var n=new i;return setTimeout(function(){n.reject(new Error("Promise timed out"))},e),t.then(function(t){n.resolve(t)},function(t){n.reject(t)}),n.promise}}},function(t,e,n){var r=n(1).JSON;t.exports={stringify:r.stringify||r.encode,parse:r.parse||r.decode}},function(t,e,n){var r=n(39),i=n(97),o=n(7);(r=Object.create(r)).build=o(r.build,null,i),t.exports=r},function(t,e,n){var r=n(49).makeEmitter();t.exports={emitter:r,START:"start",ALL_WIDGETS_RENDER_START:"all_widgets_render_start",ALL_WIDGETS_RENDER_END:"all_widgets_render_end",ALL_WIDGETS_AND_IMAGES_LOADED:"all_widgets_and_images_loaded"}},function(t,e,n){var r=n(9),i=n(102),o="https://syndication.twitter.com",s="https://platform.twitter.com",a=["https://syndication.twitter.com","https://cdn.syndication.twimg.com","https://localhost.twitter.com:8444"],u=["https://syndication.twitter.com","https://localhost.twitter.com:8445"],c=["https://platform.twitter.com","https://localhost.twitter.com",/^https:\/\/ton\.local\.twitter\.com\/syndication-internal\/embed-iframe\/[0-9A-Za-z_-]+\/app/],d=function(t,e){return t.some(function(t){return t instanceof RegExp?t.test(e):t===e})},f=function(){var t=r.get("backendHost");return t&&d(a,t)?t:"https://cdn.syndication.twimg.com"},l=function(){var t=r.get("settingsSvcHost");return t&&d(u,t)?t:o};function h(t,e){var n=[t];return e.forEach(function(t){n.push(function(t){var e=(t||"").toString(),n="/"===e.slice(0,1)?1:0,r=function(t){return"/"===t.slice(-1)}(e)?-1:void 0;return e.slice(n,r)}(t))}),n.join("/")}t.exports={cookieConsent:function(t){var e=t||[];return e.unshift("cookie/consent"),h(l(),e)},embedIframe:function(t,e){var n=t||[],o=s,a=r.get("embedIframeURL");return a&&d(c,a)?h(a,n)+".html":(n.unshift(i.getBaseURLPath(e)),h(o,n)+".html")},embedService:function(t){var e=t||[],n=o;return e.unshift("srv"),h(n,e)},eventVideo:function(t){var e=t||[];return e.unshift("video/event"),h(f(),e)},grid:function(t){var e=t||[];return e.unshift("grid/collection"),h(f(),e)},moment:function(t){var e=t||[];return e.unshift("moments"),h(f(),e)},settings:function(t){var e=t||[];return e.unshift("settings"),h(l(),e)},settingsScribe:function(t){var e=t||[];return e.unshift("i/jot/embeds"),h(l(),e)},timeline:function(t){var e=t||[];return e.unshift("timeline"),h(f(),e)},tweetBatch:function(t){var e=t||[];return e.unshift("tweets.json"),h(f(),e)},video:function(t){var e=t||[];return e.unshift("widgets/video"),h(f(),e)}}},function(t,e,n){var r=n(4),i=n(0);t.exports=function(t,e,n){var o;if(n=n||r,t=t||{},e=e||{},t.name){try{o=n.createElement('')}catch(e){(o=n.createElement("iframe")).name=t.name}delete t.name}else o=n.createElement("iframe");return t.id&&(o.id=t.id,delete t.id),o.allowtransparency="true",o.scrolling="no",o.setAttribute("frameBorder",0),o.setAttribute("allowTransparency",!0),i.forIn(t,function(t,e){o.setAttribute(t,e)}),i.forIn(e,function(t,e){o.style[t]=e}),o}},function(t,e,n){var r=n(25),i=n(100);t.exports=r.build([i])},function(t,e,n){var r=n(25),i=n(116);t.exports=r.build([i])},function(t,e,n){var r=n(39),i=n(40),o=n(7);(r=Object.create(r)).build=o(r.build,null,i),t.exports=r},function(t,e,n){var r=n(70),i=n(19),o=n(5),s=n(21),a=n(0);t.exports=function(t){t.params({chrome:{},height:{transform:o.asInt},instanceId:{required:!0,fallback:s.deterministic},isPreconfigured:{},lang:{required:!0,transform:r.matchLanguage,fallback:"en"},theme:{},tweetLimit:{transform:o.asInt}}),t.defineProperty("endpoint",{get:function(){throw new Error("endpoint not specified")}}),t.define("queryParams",function(){return a.compact({dnt:i.enabled(),limit:this.params.tweetLimit,lang:this.params.lang})})}},function(t,e,n){var r,i=n(4);function o(t){var e,n,o,s=0;for(r={},e=(t=t||i).getElementsByTagName("meta");e[s];s++){if(n=e[s],/^twitter:/.test(n.getAttribute("name")))o=n.getAttribute("name").replace(/^twitter:/,"");else{if(!/^twitter:/.test(n.getAttribute("property")))continue;o=n.getAttribute("property").replace(/^twitter:/,"")}r[o]=n.getAttribute("content")||n.getAttribute("value")}}o(),t.exports={init:o,val:function(t){return r[t]}}},function(t,e,n){var r=n(104),i=n(24),o=n(1);function s(t){var e="";if(!t)return"";try{return e=i.stringify(t),o.btoa(e)}catch(t){return""}}function a(t){return r.settingsLoaded().then(function(e){return e[t]})}function u(){return a("features")}t.exports={encodeFeatures:s,shouldObtainCookieConsent:function(){return a("shouldObtainCookieConsent")},getExperiments:u,getExperiment:function(t){return u().then(function(e){if(!e[t])throw new Error("Experiment not found");return e[t]})},getHorizonSettings:function(){return r.settingsLoaded().then(function(t){return{features:t.features,sessionId:t.sessionId}})},getActiveExperimentDataString:function(){return u().then(function(t){return s(t)})},getExperimentKeys:function(){return u().then(function(t){return Object.keys(t)})},load:function(){r.load()}}},function(t,e,n){var r=n(10),i={},o=-1,s={};function a(t){var e=t.getAttribute("data-twitter-event-id");return e||(t.setAttribute("data-twitter-event-id",++o),o)}function u(t,e,n){var r=0,i=t&&t.length||0;for(r=0;r1?(e=Math.floor(t.item_ids.length/2),n=t.item_ids.slice(0,e),r={},i=t.item_ids.slice(e),o={},n.forEach(function(e){r[e]=t.item_details[e]}),i.forEach(function(e){o[e]=t.item_details[e]}),[f.aug({},t,{item_ids:n,item_details:r}),f.aug({},t,{item_ids:i,item_details:o})]):[t]},stringify:function(t){var e,n=Array.prototype.toJSON;return delete Array.prototype.toJSON,e=u.stringify(t),n&&(Array.prototype.toJSON=n),e},CLIENT_EVENT_ENDPOINT:p,RUFOUS_REDIRECT:"https://platform.twitter.com/jot.html"}},function(t,e,n){var r=n(8),i=n(73),o=n(0),s=i.getCanonicalURL()||r.href,a=s;t.exports={isFramed:function(){return s!==a},rootDocumentLocation:function(t){return t&&o.isType("string",t)&&(s=t),s},currentDocumentLocation:function(){return a}}},function(t,e,n){var r=n(95),i=n(96),o=n(0);t.exports={couple:function(){return o.toRealArray(arguments)},build:function(t,e,n){var o=new t;return(e=i(r(e||[]))).forEach(function(t){t.call(null,o)}),o.build(n)}}},function(t,e,n){var r=n(98),i=n(0),o=n(41);function s(){this.Component=this.factory(),this._adviceArgs=[],this._lastArgs=[]}i.aug(s.prototype,{factory:o,build:function(t){var e=this;return this.Component,i.aug(this.Component.prototype.boundParams,t),this._adviceArgs.concat(this._lastArgs).forEach(function(t){(function(t,e,n){var r=this[e];if(!r)throw new Error(e+" does not exist");this[e]=t(r,n)}).apply(e.Component.prototype,t)}),delete this._lastArgs,delete this._adviceArgs,this.Component},params:function(t){var e=this.Component.prototype.paramConfigs;t=t||{},this.Component.prototype.paramConfigs=i.aug({},t,e)},define:function(t,e){if(t in this.Component.prototype)throw new Error(t+" has previously been defined");this.override(t,e)},defineStatic:function(t,e){this.Component[t]=e},override:function(t,e){this.Component.prototype[t]=e},defineProperty:function(t,e){if(t in this.Component.prototype)throw new Error(t+" has previously been defined");this.overrideProperty(t,e)},overrideProperty:function(t,e){var n=i.aug({configurable:!0},e);Object.defineProperty(this.Component.prototype,t,n)},before:function(t,e){this._adviceArgs.push([r.before,t,e])},after:function(t,e){this._adviceArgs.push([r.after,t,e])},around:function(t,e){this._adviceArgs.push([r.around,t,e])},last:function(t,e){this._lastArgs.push([r.after,t,e])}}),t.exports=s},function(t,e,n){var r=n(0);function i(){return!0}function o(t){return t}t.exports=function(){function t(t){var e=this;t=t||{},this.params=Object.keys(this.paramConfigs).reduce(function(n,s){var a=[],u=e.boundParams,c=e.paramConfigs[s],d=c.validate||i,f=c.transform||o;if(s in u&&a.push(u[s]),s in t&&a.push(t[s]),a="fallback"in c?a.concat(c.fallback):a,n[s]=function(t,e,n){var i=null;return t.some(function(t){if(t=r.isType("function",t)?t():t,e(t))return i=n(t),!0}),i}(a,d,f),c.required&&null==n[s])throw new Error(s+" is a required parameter");return n},{}),this.initialize()}return r.aug(t.prototype,{paramConfigs:{},boundParams:{},initialize:function(){}}),t}},function(t){t.exports={version:"2615f7e52b7e0:1702314776716"}},function(t,e,n){var r=n(1);t.exports=function(t,e,n){var i,o=0;return n=n||null,function s(){var a=n||this,u=arguments,c=+new Date;if(r.clearTimeout(i),c-o>e)return o=c,void t.apply(a,u);i=r.setTimeout(function(){s.apply(a,u)},e)}}},function(t,e,n){var r=n(18);t.exports=function(){r.publicError("Error: This Timeline type is no longer supported (Likes, Collections, & Moments). \n\t","* Twitter still supports Profile and List Timelines \n\t","* You can learn more about this change in our announcement: \n\t","https://twittercommunity.com/t/removing-support-for-embedded-like-collection-and-moment-timelines/150313 \n\t","* In order to create a new Embedded Timeline, visit: https://publish.twitter.com")}},function(t,e,n){ /*! * @overview es6-promise - a tiny implementation of Promises/A+. * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) * @license Licensed under MIT license * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE * @version v4.2.5+7f2b526d */var r;r=function(){"use strict";function t(t){return"function"==typeof t}var e=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},n=0,r=void 0,i=void 0,o=function(t,e){l[n]=t,l[n+1]=e,2===(n+=2)&&(i?i(h):w())},s="undefined"!=typeof window?window:void 0,a=s||{},u=a.MutationObserver||a.WebKitMutationObserver,c="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),d="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function f(){var t=setTimeout;return function(){return t(h,1)}}var l=new Array(1e3);function h(){for(var t=0;t=0&&this._handlers[t].splice(n,1):this._handlers[t]=[])},trigger:function(t,e){var n=this._handlers&&this._handlers[t];(e=e||{}).type=t,n&&n.forEach(function(t){r.async(i(t,this,e))})}};t.exports={Emitter:o,makeEmitter:function(){return r.aug(function(){},o)}}},function(t,e,n){var r=n(89),i=n(91),o=n(6),s=n(23),a=n(7),u=n(0),c=new i(function(t){var e=function(t){return t.reduce(function(t,e){return t[e._className]=t[e._className]||[],t[e._className].push(e),t},{})}(t.map(r.fromRawTask));u.forIn(e,function(t,e){s.allSettled(e.map(function(t){return t.initialize()})).then(function(){e.forEach(function(t){o.all([t.hydrate(),t.insertIntoDom()]).then(a(t.render,t)).then(a(t.success,t),a(t.fail,t))})})})});t.exports={addWidget:function(t){return c.add(t)}}},function(t,e,n){var r=n(17);t.exports=function(t){return r.write(function(){t&&t.parentNode&&t.parentNode.removeChild(t)})}},function(t,e,n){var r=n(93),i=n(71),o=new(n(103))(function(t){(!function(t){return 1===t.length&&i.canFlushOneItem(t[0])}(t)?function(t){r.init(),t.forEach(function(t){var e=t.input.namespace,n=t.input.data,i=t.input.offsite,o=t.input.version;r.clientEvent(e,n,i,o)}),r.flush().then(function(){t.forEach(function(t){t.taskDoneDeferred.resolve()})},function(){t.forEach(function(t){t.taskDoneDeferred.reject()})})}:function(t){t.forEach(function(t){var e=t.input.namespace,n=t.input.data,r=t.input.offsite,o=t.input.version;i.clientEvent(e,n,r,o),t.taskDoneDeferred.resolve()})})(t)});t.exports={scribe:function(t,e,n,r){return o.add({namespace:t,data:e,offsite:n,version:r})},pause:function(){o.pause()},resume:function(){o.resume()}}},function(t,e,n){n(18),t.exports={log:function(t,e){}}},function(t,e,n){var r=n(1);function i(t){return(t=t||r).getSelection&&t.getSelection()}t.exports={getSelection:i,getSelectedText:function(t){var e=i(t);return e?e.toString():""}}},function(t,e,n){var r=n(4),i=n(1),o=n(3),s=2e4;t.exports=function(t){var e=new o,n=r.createElement("img");return n.onload=n.onerror=function(){i.setTimeout(e.resolve,50)},n.src=t,i.setTimeout(e.reject,s),e.promise}},function(t,e,n){var r,i=n(10),o=n(4),s=n(1),a=n(33),u=n(51),c=n(5),d=n(21),f="csptest";t.exports={inlineStyle:function(){var t=f+d.generate(),e=o.createElement("div"),n=o.createElement("style"),l="."+t+" { visibility: hidden; }";return!!o.body&&(c.asBoolean(a.val("widgets:csp"))&&(r=!1),void 0!==r?r:(e.style.display="none",i.add(e,t),n.type="text/css",n.appendChild(o.createTextNode(l)),o.body.appendChild(n),o.body.appendChild(e),r="hidden"===s.getComputedStyle(e).visibility,u(e),u(n),r))}}},function(t,e){t.exports=function(t){var e=t.getBoundingClientRect();return{width:e.width,height:e.height}}},function(t,e,n){var r=n(101);t.exports=function(t){t.define("createElement",r),t.define("createFragment",r),t.define("htmlToElement",r),t.define("hasSelectedText",r),t.define("addRootClass",r),t.define("removeRootClass",r),t.define("hasRootClass",r),t.define("prependStyleSheet",r),t.define("appendStyleSheet",r),t.define("prependCss",r),t.define("appendCss",r),t.define("makeVisible",r),t.define("injectWidgetEl",r),t.define("matchHeightToContent",r),t.define("matchWidthToContent",r)}},function(t,e){t.exports=function(t){var e,n=!1;return function(){return n?e:(n=!0,e=t.apply(this,arguments))}}},function(t,e,n){var r=n(13),i=n(110),o=n(111),s=n(14);t.exports=function(t,e,n){return new r(i,o,s.DM_BUTTON,t,e,n)}},function(t,e,n){var r=n(25),i=n(112);t.exports=r.build([i])},function(t,e,n){var r=n(13),i=n(115),o=n(30),s=n(14);t.exports=function(t,e,n){return new r(i,o,s.FOLLOW_BUTTON,t,e,n)}},function(t,e,n){var r=n(13),i=n(123),o=n(29),s=n(14);t.exports=function(t,e,n){return new r(i,o,s.MOMENT,t,e,n)}},function(t,e,n){var r=n(13),i=n(125),o=n(29),s=n(14);t.exports=function(t,e,n){return new r(i,o,s.PERISCOPE,t,e,n)}},function(t,e,n){var r=n(127),i=n(128),o=n(132),s=n(134),a=n(136),u={collection:i,likes:o,list:s,profile:a,url:d},c=[a,o,i,s];function d(t){return r(c,function(e){try{return new e(t)}catch(t){}})}t.exports=function(t){return t?function(t){var e,n;return e=(t.sourceType+"").toLowerCase(),(n=u[e])?new n(t):null}(t)||d(t):null}},function(t,e,n){var r=n(4),i=n(13),o=n(30),s=n(138),a=n(14);t.exports=function(t,e,n){var u=r.createElement("div");return new i(s,o,a.TIMELINE,t,e,n,{sandboxWrapperEl:u})}},function(t,e,n){var r=n(4),i=n(13),o=n(30),s=n(140),a=n(14);t.exports=function(t,e,n){return new i(s,o,a.TWEET,t,e,n,{sandboxWrapperEl:r.createElement("div")})}},function(t,e,n){var r=n(13),i=n(142),o=n(30),s=n(14);t.exports=function(t,e,n){var a=t&&t.type||"share",u="hashtag"==a?s.HASHTAG_BUTTON:"mention"==a?s.MENTION_BUTTON:s.SHARE_BUTTON;return new r(i,o,u,t,e,n)}},function(t,e,n){var r=n(52),i=n(38),o=n(0);t.exports=function(t){var e={widget_origin:i.rootDocumentLocation(),widget_frame:i.isFramed()?i.currentDocumentLocation():null,duration_ms:t.duration,item_ids:t.widgetIds||[]},n=o.aug(t.namespace,{page:"page",component:"performance"});r.scribe(n,e)}},function(t,e,n){var r=n(0),i=n(129),o=["ar","fa","he","ur"];t.exports={isRtlLang:function(t){return t=String(t).toLowerCase(),r.contains(o,t)},matchLanguage:function(t){return t=(t=(t||"").toLowerCase()).replace("_","-"),i(t)?t:(t=t.replace(/-.*/,""),i(t)?t:"en")}}},function(t,e,n){var r=n(53),i=n(16),o=n(37),s=n(27),a=n(0),u=n(9),c=n(6),d=u.get("scribeCallback"),f=2083,l=[],h=i.url(o.CLIENT_EVENT_ENDPOINT,{dnt:0,l:""}),p=encodeURIComponent(h).length;function m(t,e,n,r,i){var u=!a.isObject(t),f=!!e&&!a.isObject(e);if(!u&&!f)return d&&d(arguments),e=e||{},c.resolve(v(o.formatClientEventNamespace(t),o.formatClientEventData(e,n,r),s.settingsScribe(),i))}function v(t,e,n,s){var u;n&&a.isObject(t)&&a.isObject(e)&&(r.log(t,e),u=o.flattenClientEventPayload(t,e),s=a.aug({},s,{l:o.stringify(u)}),u.dnt&&(s.dnt=1),w(i.url(n,s)))}function g(t){return l.push(t),l}function w(t){return(new Image).src=t}t.exports={canFlushOneItem:function(t){var e=o.stringify(t),n=encodeURIComponent(e).length+3;return p+n")}).then(function(){t.close(),a.resolve(c)})}),c.src=["javascript:",'document.write("");',"try { window.parent.document; }",'catch (e) { document.domain="'+r.domain+'"; }',"window.parent."+g.fullPath(["sandbox",u])+"();"].join(""),c.addEventListener("error",a.reject,!1),o.write(function(){i.parentNode.replaceChild(c,i)}),a.promise}t.exports=a.couple(n(58),function(t){t.overrideProperty("id",{get:function(){return this.sandboxEl&&this.sandboxEl.id}}),t.overrideProperty("initialized",{get:function(){return!!this.win}}),t.overrideProperty("width",{get:function(){return this._width}}),t.overrideProperty("height",{get:function(){return this._height}}),t.overrideProperty("sandboxEl",{get:function(){return this.iframeEl}}),t.defineProperty("iframeEl",{get:function(){return this._iframe}}),t.defineProperty("rootEl",{get:function(){return this.doc&&this.doc.documentElement}}),t.defineProperty("widgetEl",{get:function(){return this.doc&&this.doc.body.firstElementChild}}),t.defineProperty("win",{get:function(){return this.iframeEl&&this.iframeEl.contentWindow}}),t.defineProperty("doc",{get:function(){return this.win&&this.win.document}}),t.define("_updateCachedDimensions",function(){var t=this;return o.read(function(){var e,n=h(t.sandboxEl);"visible"==t.sandboxEl.style.visibility?t._width=n.width:(e=h(t.sandboxEl.parentElement).width,t._width=Math.min(n.width,e)),t._height=n.height})}),t.define("_setTargetToBlank",function(){var t=this.createElement("base");t.target="_blank",this.doc.head.appendChild(t)}),t.define("_didResize",function(){var t=this,e=this._resizeHandlers.slice(0);return this._updateCachedDimensions().then(function(){e.forEach(function(e){e(t)})})}),t.define("setTitle",function(t){this.iframeEl.title=t}),t.override("createElement",function(t){return this.doc.createElement(t)}),t.override("createFragment",function(){return this.doc.createDocumentFragment()}),t.override("htmlToElement",function(t){var e;return(e=this.createElement("div")).innerHTML=t,e.firstElementChild}),t.override("hasSelectedText",function(){return!!s.getSelectedText(this.win)}),t.override("addRootClass",function(t){var e=this.rootEl;return t=Array.isArray(t)?t:[t],this.initialized?o.write(function(){t.forEach(function(t){i.add(e,t)})}):m.reject(new Error("sandbox not initialized"))}),t.override("removeRootClass",function(t){var e=this.rootEl;return t=Array.isArray(t)?t:[t],this.initialized?o.write(function(){t.forEach(function(t){i.remove(e,t)})}):m.reject(new Error("sandbox not initialized"))}),t.override("hasRootClass",function(t){return i.present(this.rootEl,t)}),t.define("addStyleSheet",function(t,e){var n,r=new p;return this.initialized?((n=this.createElement("link")).type="text/css",n.rel="stylesheet",n.href=t,n.addEventListener("load",r.resolve,!1),n.addEventListener("error",r.reject,!1),o.write(y(e,null,n)).then(function(){return u(t).then(r.resolve,r.reject),r.promise})):m.reject(new Error("sandbox not initialized"))}),t.override("prependStyleSheet",function(t){var e=this.doc;return this.addStyleSheet(t,function(t){var n=e.head.firstElementChild;return n?e.head.insertBefore(t,n):e.head.appendChild(t)})}),t.override("appendStyleSheet",function(t){var e=this.doc;return this.addStyleSheet(t,function(t){return e.head.appendChild(t)})}),t.define("addCss",function(t,e){var n;return c.inlineStyle()?((n=this.createElement("style")).type="text/css",n.appendChild(this.doc.createTextNode(t)),o.write(y(e,null,n))):(l.devError("CSP enabled; cannot embed inline styles"),m.resolve())}),t.override("prependCss",function(t){var e=this.doc;return this.addCss(t,function(t){var n=e.head.firstElementChild;return n?e.head.insertBefore(t,n):e.head.appendChild(t)})}),t.override("appendCss",function(t){var e=this.doc;return this.addCss(t,function(t){return e.head.appendChild(t)})}),t.override("makeVisible",function(){var t=this;return this.styleSelf(E).then(function(){t._updateCachedDimensions()})}),t.override("injectWidgetEl",function(t){var e=this;return this.initialized?this.widgetEl?m.reject(new Error("widget already injected")):o.write(function(){e.doc.body.appendChild(t)}):m.reject(new Error("sandbox not initialized"))}),t.override("matchHeightToContent",function(){var t,e=this;return o.read(function(){t=e.widgetEl?h(e.widgetEl).height:0}),o.write(function(){e.sandboxEl.style.height=t+"px"}).then(function(){return e._updateCachedDimensions()})}),t.override("matchWidthToContent",function(){var t,e=this;return o.read(function(){t=e.widgetEl?h(e.widgetEl).width:0}),o.write(function(){e.sandboxEl.style.width=t+"px"}).then(function(){return e._updateCachedDimensions()})}),t.after("initialize",function(){this._iframe=null,this._width=this._height=0,this._resizeHandlers=[]}),t.override("insert",function(t,e,n,r){var i=this,s=new p,a=this.targetGlobal.document,u=S(t,e,n,a);return o.write(y(r,null,u)),u.addEventListener("load",function(){(function(t){try{t.contentWindow.document}catch(t){return m.reject(t)}return m.resolve(t)})(u).then(null,y(R,null,t,e,n,u,a)).then(s.resolve,s.reject)},!1),u.addEventListener("error",s.reject,!1),s.promise.then(function(t){var e=d(i._didResize,A,i);return i._iframe=t,i.win.addEventListener("resize",e,!1),m.all([i._setTargetToBlank(),i.addRootClass(x),i.prependCss(T)])})}),t.override("onResize",function(t){this._resizeHandlers.push(t)}),t.after("styleSelf",function(){return this._updateCachedDimensions()})})},function(t,e){t.exports=function(){throw new Error("unimplemented method")}},function(t,e){t.exports={getBaseURLPath:function(t){switch(t&&t.tfw_team_holdback_11929&&t.tfw_team_holdback_11929.bucket){case"control":return"embed-holdback";case"holdback_prod":return"embed-holdback-prod";default:return"embed"}}}},function(t,e,n){var r=n(3),i=n(7),o=100,s=3e3;function a(t,e){this._inputsQueue=[],this._task=t,this._isPaused=!1,this._flushDelay=e&&e.flushDelay||o,this._pauseLength=e&&e.pauseLength||s,this._flushTimeout=void 0}a.prototype.add=function(t){var e=new r;return this._inputsQueue.push({input:t,taskDoneDeferred:e}),this._scheduleFlush(),e.promise},a.prototype._scheduleFlush=function(){this._isPaused||(clearTimeout(this._flushTimeout),this._flushTimeout=setTimeout(i(this._flush,this),this._flushDelay))},a.prototype._flush=function(){try{this._task.call(null,this._inputsQueue)}catch(t){this._inputsQueue.forEach(function(e){e.taskDoneDeferred.reject(t)})}this._inputsQueue=[],this._flushTimeout=void 0},a.prototype.pause=function(t){clearTimeout(this._flushTimeout),this._isPaused=!0,!t&&this._pauseLength&&setTimeout(i(this.resume,this),this._pauseLength)},a.prototype.resume=function(){this._isPaused=!1,this._scheduleFlush()},t.exports=a},function(t,e,n){var r=n(72),i=n(28),o=n(3),s=n(4),a=n(27),u=n(20),c=n(24),d=n(8),f=n(18),l=n(105),h=n(59),p=n(9),m=n(16),v=n(2),g=n(0),w=n(1),y=h(function(){return new o}),b={shouldObtainCookieConsent:!1,features:{}};t.exports={load:function(){var t,e,n,o;if(u.ie9()||u.ie10()||"http:"!==d.protocol&&"https:"!==d.protocol)return f.devError("Using default settings due to unsupported browser or protocol."),void y().resolve();t={origin:d.origin},a.settings().indexOf("localhost")>-1&&(t.localSettings=!0),e=m.url(r.resourceBaseUrl+r.widgetIframeHtmlPath,t),n=function(t){var n,r,i,o;if(r=v.isTwitterURL(t.origin),i=e.substr(0,t.origin.length)===t.origin,o=v.isTwimgURL(t.origin),i&&r||o)try{(n="string"==typeof t.data?c.parse(t.data):t.data).namespace===l.settings&&(b=g.aug(b,{features:n.settings.features,sessionId:n.sessionId}),y().resolve())}catch(t){f.devError(t)}},w.addEventListener("message",n),o=i({src:e,title:"Twitter settings iframe"},{display:"none"}),s.body.appendChild(o)},settingsLoaded:function(){var t,e;return t=p.get("experimentOverride"),y().promise.then(function(){return t&&t.name&&t.assignment&&((e={})[t.name]={bucket:t.assignment},b.features=g.aug(b.features,e)),b})}}},function(t,e){t.exports={settings:"twttr.settings"}},function(t,e,n){t.exports=[n(107),n(114),n(122),n(124),n(126),n(139),n(141)]},function(t,e,n){var r=n(16),i=n(5),o=n(0),s=n(11),a=n(12)(),u=n(60),c="a.twitter-dm-button";t.exports=function(t){return a(t,c).map(function(t){return u(function(t){var e=t.getAttribute("data-show-screen-name"),n=s(t),a=t.getAttribute("href"),u=t.getAttribute("data-screen-name"),c=e?i.asBoolean(e):null,d=t.getAttribute("data-size"),f=r.decodeURL(a),l=f.recipient_id,h=t.getAttribute("data-text")||f.text,p=t.getAttribute("data-welcome-message-id")||f.welcomeMessageId;return o.aug(n,{screenName:u,showScreenName:c,size:d,text:h,userId:l,welcomeMessageId:p})}(t),t.parentNode,t)})}},function(t,e,n){var r=n(0);t.exports=function t(e){var n;if(e)return n=e.lang||e.getAttribute("data-lang"),r.isType("string",n)?n:t(e.parentElement)}},function(t,e,n){var r=n(0),i=n(48);t.exports=function(t,e){return i(t,e)?[t]:r.toRealArray(t.querySelectorAll(e))}},function(t,e,n){var r=n(3);t.exports=function(t,e){var i=new r;return n.e(1).then(function(r){var o;try{o=n(75),i.resolve(new o(t,e))}catch(t){i.reject(t)}}.bind(null,n)).catch(function(t){i.reject(t)}),i.promise}},function(t,e,n){var r=n(61),i=n(29);t.exports=r.isSupported()?r:i},function(t,e,n){var r=n(113),i=n(1),o=n(10),s=n(35),a=n(17),u=n(54),c=n(25),d=n(55),f=n(56),l=n(57),h=n(7),p=n(43),m=n(6),v=n(0),g=50,w={position:"absolute",visibility:"hidden",display:"block",transform:"rotate(0deg)"},y={position:"static",visibility:"visible"},b="twitter-widget",_="open",E="SandboxRoot",x=".SandboxRoot { display: none; max-height: 10000px; }";t.exports=c.couple(n(58),function(t){t.defineStatic("isSupported",function(){return!!i.HTMLElement.prototype.attachShadow&&f.inlineStyle()}),t.overrideProperty("id",{get:function(){return this.sandboxEl&&this.sandboxEl.id}}),t.overrideProperty("initialized",{get:function(){return!!this._shadowHost}}),t.overrideProperty("width",{get:function(){return this._width}}),t.overrideProperty("height",{get:function(){return this._height}}),t.overrideProperty("sandboxEl",{get:function(){return this._shadowHost}}),t.define("_updateCachedDimensions",function(){var t=this;return a.read(function(){var e,n=l(t.sandboxEl);"visible"==t.sandboxEl.style.visibility?t._width=n.width:(e=l(t.sandboxEl.parentElement).width,t._width=Math.min(n.width,e)),t._height=n.height})}),t.define("_didResize",function(){var t=this,e=this._resizeHandlers.slice(0);return this._updateCachedDimensions().then(function(){e.forEach(function(e){e(t)})})}),t.override("createElement",function(t){return this.targetGlobal.document.createElement(t)}),t.override("createFragment",function(){return this.targetGlobal.document.createDocumentFragment()}),t.override("htmlToElement",function(t){var e;return(e=this.createElement("div")).innerHTML=t,e.firstElementChild}),t.override("hasSelectedText",function(){return!!u.getSelectedText(this.targetGlobal)}),t.override("addRootClass",function(t){var e=this._shadowRootBody;return t=Array.isArray(t)?t:[t],this.initialized?a.write(function(){t.forEach(function(t){o.add(e,t)})}):m.reject(new Error("sandbox not initialized"))}),t.override("removeRootClass",function(t){var e=this._shadowRootBody;return t=Array.isArray(t)?t:[t],this.initialized?a.write(function(){t.forEach(function(t){o.remove(e,t)})}):m.reject(new Error("sandbox not initialized"))}),t.override("hasRootClass",function(t){return o.present(this._shadowRootBody,t)}),t.override("addStyleSheet",function(t,e){return this.addCss('@import url("'+t+'");',e).then(function(){return d(t)})}),t.override("prependStyleSheet",function(t){var e=this._shadowRoot;return this.addStyleSheet(t,function(t){var n=e.firstElementChild;return n?e.insertBefore(t,n):e.appendChild(t)})}),t.override("appendStyleSheet",function(t){var e=this._shadowRoot;return this.addStyleSheet(t,function(t){return e.appendChild(t)})}),t.override("addCss",function(t,e){var n;return this.initialized?f.inlineStyle()?((n=this.createElement("style")).type="text/css",n.appendChild(this.targetGlobal.document.createTextNode(t)),a.write(h(e,null,n))):m.resolve():m.reject(new Error("sandbox not initialized"))}),t.override("prependCss",function(t){var e=this._shadowRoot;return this.addCss(t,function(t){var n=e.firstElementChild;return n?e.insertBefore(t,n):e.appendChild(t)})}),t.override("appendCss",function(t){var e=this._shadowRoot;return this.addCss(t,function(t){return e.appendChild(t)})}),t.override("makeVisible",function(){return this.styleSelf(y)}),t.override("injectWidgetEl",function(t){var e=this;return this.initialized?this._shadowRootBody.firstElementChild?m.reject(new Error("widget already injected")):a.write(function(){e._shadowRootBody.appendChild(t)}).then(function(){return e._updateCachedDimensions()}).then(function(){var t=p(e._didResize,g,e);new r(e._shadowRootBody,t)}):m.reject(new Error("sandbox not initialized"))}),t.override("matchHeightToContent",function(){return m.resolve()}),t.override("matchWidthToContent",function(){return m.resolve()}),t.override("insert",function(t,e,n,r){var i=this.targetGlobal.document,o=this._shadowHost=i.createElement(b),u=this._shadowRoot=o.attachShadow({mode:_}),c=this._shadowRootBody=i.createElement("div");return v.forIn(e||{},function(t,e){o.setAttribute(t,e)}),o.id=t,u.appendChild(c),s.delegate(c,"click","A",function(t,e){e.hasAttribute("target")||e.setAttribute("target","_blank")}),m.all([this.styleSelf(w),this.addRootClass(E),this.prependCss(x),a.write(r.bind(null,o))])}),t.override("onResize",function(t){this._resizeHandlers.push(t)}),t.after("initialize",function(){this._shadowHost=this._shadowRoot=this._shadowRootBody=null,this._width=this._height=0,this._resizeHandlers=[]}),t.after("styleSelf",function(){return this._updateCachedDimensions()})})},function(t,e){var n;(n=function(t,e){function r(t,e){if(t.resizedAttached){if(t.resizedAttached)return void t.resizedAttached.add(e)}else t.resizedAttached=new function(){var t,e;this.q=[],this.add=function(t){this.q.push(t)},this.call=function(){for(t=0,e=this.q.length;t
',t.appendChild(t.resizeSensor),{fixed:1,absolute:1}[function(t,e){return t.currentStyle?t.currentStyle[e]:window.getComputedStyle?window.getComputedStyle(t,null).getPropertyValue(e):t.style[e]}(t,"position")]||(t.style.position="relative");var i,o,s=t.resizeSensor.childNodes[0],a=s.childNodes[0],u=t.resizeSensor.childNodes[1],c=(u.childNodes[0],function(){a.style.width=s.offsetWidth+10+"px",a.style.height=s.offsetHeight+10+"px",s.scrollLeft=s.scrollWidth,s.scrollTop=s.scrollHeight,u.scrollLeft=u.scrollWidth,u.scrollTop=u.scrollHeight,i=t.offsetWidth,o=t.offsetHeight});c();var d=function(t,e,n){t.attachEvent?t.attachEvent("on"+e,n):t.addEventListener(e,n)},f=function(){t.offsetWidth==i&&t.offsetHeight==o||t.resizedAttached&&t.resizedAttached.call(),c()};d(s,"scroll",f),d(u,"scroll",f)}var i=Object.prototype.toString.call(t),o="[object Array]"===i||"[object NodeList]"===i||"[object HTMLCollection]"===i||"undefined"!=typeof jQuery&&t instanceof jQuery||"undefined"!=typeof Elements&&t instanceof Elements;if(o)for(var s=0,a=t.length;s0;return this.updateCachedDimensions().then(function(){e&&t._resizeHandlers.forEach(function(e){e(t)})})}),t.define("loadDocument",function(t){var e=new a;return this.initialized?this.iframeEl.src?u.reject(new Error("widget already loaded")):(this.iframeEl.addEventListener("load",e.resolve,!1),this.iframeEl.addEventListener("error",e.reject,!1),this.iframeEl.src=t,e.promise):u.reject(new Error("sandbox not initialized"))}),t.after("initialize",function(){var t=new a,e=new a;this._iframe=null,this._iframeVersion=null,this._width=this._height=0,this._resizeHandlers=[],this._rendered=t,this._results=e,this._waitToSwapUntilRendered=!1}),t.override("insert",function(t,e,n,i){var a=this;return e=d.aug({id:t},f,e),n=d.aug({},l,n),this._iframe=s(e,n),p[t]=this,a._waitToSwapUntilRendered||this.onResize(o(function(){a.makeVisible()})),r.write(c(i,null,this._iframe))}),t.override("onResize",function(t){this._resizeHandlers.push(t)}),t.after("styleSelf",function(){return this.updateCachedDimensions()})}},function(t,e,n){var r=n(1),i=n(118),o=n(120),s=n(22),a=n(5),u=n(121);t.exports=function(t,e,n,c,d){function f(t){var e=u(this);s.trigger(t.type,{target:e,region:t.region,type:t.type,data:t.data||{}})}function l(e){var n=u(this),r=n&&n.id,i=a.asInt(e.width),o=a.asInt(e.height);r&&void 0!==i&&void 0!==o&&t(r,i,o)}(new i).attachReceiver(new o.Receiver(r,"twttr.button")).bind("twttr.private.trigger",f).bind("twttr.private.resizeButton",l),(new i).attachReceiver(new o.Receiver(r,"twttr.embed")).bind("twttr.private.initialized",function(t){var e=u(this),n=e&&e.id,r=t.iframe_version;n&&r&&c&&c(n,r)}).bind("twttr.private.trigger",f).bind("twttr.private.results",function(){var t=u(this),n=t&&t.id;n&&e&&e(n)}).bind("twttr.private.rendered",function(){var t=u(this),e=t&&t.id;e&&n&&n(e)}).bind("twttr.private.no_results",function(){var t=u(this),e=t&&t.id;e&&d&&d(e)}).bind("twttr.private.resize",l)}},function(t,e,n){var r=n(24),i=n(119),o=n(0),s=n(6),a=n(23),u="2.0";function c(t){this.registry=t||{}}function d(t){var e,n;return e=o.isType("string",t),n=o.isType("number",t),e||n||null===t}function f(t,e){return{jsonrpc:u,id:d(t)?t:null,error:e}}c.prototype._invoke=function(t,e){var n,r,i;n=this.registry[t.method],r=t.params||[],r=o.isType("array",r)?r:[r];try{i=n.apply(e.source||null,r)}catch(t){i=s.reject(t.message)}return a.isPromise(i)?i:s.resolve(i)},c.prototype._processRequest=function(t,e){var n,r;return function(t){var e,n,r;return!!o.isObject(t)&&(e=t.jsonrpc===u,n=o.isType("string",t.method),r=!("id"in t)||d(t.id),e&&n&&r)}(t)?(n="params"in t&&(r=t.params,!o.isObject(r)||o.isType("function",r))?s.resolve(f(t.id,i.INVALID_PARAMS)):this.registry[t.method]?this._invoke(t,{source:e}).then(function(e){return n=t.id,{jsonrpc:u,id:n,result:e};var n},function(){return f(t.id,i.INTERNAL_ERROR)}):s.resolve(f(t.id,i.METHOD_NOT_FOUND)),null!=t.id?n:s.resolve()):s.resolve(f(t.id,i.INVALID_REQUEST))},c.prototype.attachReceiver=function(t){return t.attachTo(this),this},c.prototype.bind=function(t,e){return this.registry[t]=e,this},c.prototype.receive=function(t,e){var n,a,u,c=this;try{u=t,t=o.isType("string",u)?r.parse(u):u}catch(t){return s.resolve(f(null,i.PARSE_ERROR))}return e=e||null,a=((n=o.isType("array",t))?t:[t]).map(function(t){return c._processRequest(t,e)}),n?function(t){return s.all(t).then(function(t){return(t=t.filter(function(t){return void 0!==t})).length?t:void 0})}(a):a[0]},t.exports=c},function(t){t.exports={PARSE_ERROR:{code:-32700,message:"Parse error"},INVALID_REQUEST:{code:-32600,message:"Invalid Request"},INVALID_PARAMS:{code:-32602,message:"Invalid params"},METHOD_NOT_FOUND:{code:-32601,message:"Method not found"},INTERNAL_ERROR:{code:-32603,message:"Internal error"}}},function(t,e,n){var r=n(8),i=n(1),o=n(24),s=n(3),a=n(20),u=n(0),c=n(2),d=n(7),f=a.ie9();function l(t,e,n){var r;t&&t.postMessage&&(f?r=(n||"")+o.stringify(e):n?(r={})[n]=e:r=e,t.postMessage(r,"*"))}function h(t){return u.isType("string",t)?t:"JSONRPC"}function p(t,e){return e?u.isType("string",t)&&0===t.indexOf(e)?t.substring(e.length):t&&t[e]?t[e]:void 0:t}function m(t,e){var n=t.document;this.filter=h(e),this.server=null,this.isTwitterFrame=c.isTwitterURL(n.location.href),t.addEventListener("message",d(this._onMessage,this),!1)}function v(t,e){this.pending={},this.target=t,this.isTwitterHost=c.isTwitterURL(r.href),this.filter=h(e),i.addEventListener("message",d(this._onMessage,this),!1)}u.aug(m.prototype,{_onMessage:function(t){var e,n=this;this.server&&(this.isTwitterFrame&&!c.isTwitterURL(t.origin)||(e=p(t.data,this.filter))&&this.server.receive(e,t.source).then(function(e){e&&l(t.source,e,n.filter)}))},attachTo:function(t){this.server=t},detach:function(){this.server=null}}),u.aug(v.prototype,{_processResponse:function(t){var e=this.pending[t.id];e&&(e.resolve(t),delete this.pending[t.id])},_onMessage:function(t){var e;if((!this.isTwitterHost||c.isTwitterURL(t.origin))&&(e=p(t.data,this.filter))){if(u.isType("string",e))try{e=o.parse(e)}catch(t){return}(e=u.isType("array",e)?e:[e]).forEach(d(this._processResponse,this))}},send:function(t){var e=new s;return t.id?this.pending[t.id]=e:e.resolve(),l(this.target,t,this.filter),e.promise}}),t.exports={Receiver:m,Dispatcher:v,_stringifyPayload:function(t){return arguments.length>0&&(f=!!t),f}}},function(t,e,n){var r=n(4);t.exports=function(t){for(var e,n=r.getElementsByTagName("iframe"),i=0;n[i];i++)if((e=n[i]).contentWindow===t)return e}},function(t,e,n){var r=n(5),i=n(0),o=n(2),s=n(11),a=n(12)(),u=n(63),c="a.twitter-moment";t.exports=function(t){return a(t,c).map(function(t){return u(function(t){var e=s(t),n={momentId:o.momentId(t.href),chrome:t.getAttribute("data-chrome"),limit:t.getAttribute("data-limit")};return i.forIn(n,function(t,n){var i=e[t];e[t]=r.hasValue(i)?i:n}),e}(t),t.parentNode,t)})}},function(t,e,n){var r=n(3);t.exports=function(t,e){var i=new r;return n.e(3).then(function(r){var o;try{o=n(77),i.resolve(new o(t,e))}catch(t){i.reject(t)}}.bind(null,n)).catch(function(t){i.reject(t)}),i.promise}},function(t,e,n){var r=n(0),i=n(11),o=n(12)(),s=n(64),a="a.periscope-on-air",u=/^https?:\/\/(?:www\.)?(?:periscope|pscp)\.tv\/@?([a-zA-Z0-9_]+)\/?$/i;t.exports=function(t){return o(t,a).map(function(t){return s(function(t){var e=i(t),n=t.getAttribute("href"),o=t.getAttribute("data-size"),s=u.exec(n)[1];return r.aug(e,{username:s,size:o})}(t),t.parentNode,t)})}},function(t,e,n){var r=n(3);t.exports=function(t,e){var i=new r;return n.e(4).then(function(r){var o;try{o=n(78),i.resolve(new o(t,e))}catch(t){i.reject(t)}}.bind(null,n)).catch(function(t){i.reject(t)}),i.promise}},function(t,e,n){var r=n(5),i=n(0),o=n(65),s=n(11),a=n(12)(),u=n(66),c=n(2),d=n(18),f="a.twitter-timeline,div.twitter-timeline,a.twitter-grid",l="Embedded Search timelines have been deprecated. See https://twittercommunity.com/t/deprecating-widget-settings/102295.",h="You may have been affected by an update to settings in embedded timelines. See https://twittercommunity.com/t/deprecating-widget-settings/102295.",p="Embedded grids have been deprecated and will now render as timelines. Please update your embed code to use the twitter-timeline class. More info: https://twittercommunity.com/t/update-on-the-embedded-grid-display-type/119564.";t.exports=function(t,e){return a(t,f).map(function(t){return u(function(t){var e=s(t),n=t.getAttribute("data-show-replies"),a={isPreconfigured:!!t.getAttribute("data-widget-id"),chrome:t.getAttribute("data-chrome"),tweetLimit:t.getAttribute("data-tweet-limit")||t.getAttribute("data-limit"),ariaLive:t.getAttribute("data-aria-polite"),theme:t.getAttribute("data-theme"),borderColor:t.getAttribute("data-border-color"),showReplies:n?r.asBoolean(n):null,profileScreenName:t.getAttribute("data-screen-name"),profileUserId:t.getAttribute("data-user-id"),favoritesScreenName:t.getAttribute("data-favorites-screen-name"),favoritesUserId:t.getAttribute("data-favorites-user-id"),likesScreenName:t.getAttribute("data-likes-screen-name"),likesUserId:t.getAttribute("data-likes-user-id"),listOwnerScreenName:t.getAttribute("data-list-owner-screen-name"),listOwnerUserId:t.getAttribute("data-list-owner-id"),listId:t.getAttribute("data-list-id"),listSlug:t.getAttribute("data-list-slug"),customTimelineId:t.getAttribute("data-custom-timeline-id"),staticContent:t.getAttribute("data-static-content"),url:t.href};return a.isPreconfigured&&(c.isSearchUrl(a.url)?d.publicError(l,t):d.publicLog(h,t)),"twitter-grid"===t.className&&d.publicLog(p,t),(a=i.aug(a,e)).dataSource=o(a),a.id=a.dataSource&&a.dataSource.id,a}(t),t.parentNode,t,e)})}},function(t,e){t.exports=function(t,e,n){for(var r,i=0;i'):"false"==n&&d.html(''),"true"==a?c.html(''):"false"==a&&c.html(''),t(d).on("click",function(t){"true"==n?(i.pauseVideo(),d.html(''),n="false"):"false"==n&&(i.playVideo(),d.html(''),n="true")}),t(c).on("click",function(t){"true"==a?(i.unMute(),c.html(''),a="false"):"false"==a&&(i.mute(),c.html(''),a="true")}),"true"==n&&i.playVideo()},onStateChange:function(t){-1==t.data&&(d.html(''),n="false"),1==t.data&&(d.html(''),n="true"),2==t.data&&(d.html(''),n="false"),3==t.data&&(d.html(''),n="true"),0==t.data&&"false"==o&&(t.target.stopVideo(),d.html(''),n="false")}}})})})}},t(document.body).on("post-load",function(t){c(),r(),l(),u()});var c=function(){a=t(".wp-block-getwid-section__background-video.source-youtube .wp-block-getwid-section__background-video-youtube:not(.getwid-init)"),a.each(function(e){t(this).addClass("getwid-init");var i=n(t(this).parent().attr("youtube-video-url"));t(this).attr("id",i)}),a.length&&(t("#youtube_video_api_js").length||(i(),o()))},r=function(){var e,i,n,o,a,d,s=t(".wp-block-getwid-section__background-slider:not(.getwid-init)");s.length&&"undefined"!=typeof imagesLoaded&&s.each(function(s){d=t(this),e=1==d.data("autoplay"),i=parseInt(d.data("autoplay-speed")),n="fade"==d.data("slide-effect"),o=parseInt(d.data("slide-speed")),a=1==d.data("infinite"),t(this).addClass("getwid-init"),d.imagesLoaded().done(function(d){t(d.elements[0]).slick({arrows:!1,dots:!1,rows:0,slidesToShow:1,slidesToScroll:1,autoplay:e,autoplaySpeed:i,fade:n,speed:o,infinite:a,rtl:!!Getwid.isRTL})})})},l=function(){if("undefined"!=typeof WOW){new WOW({boxClass:"getwid-anim",mobile:!1}).init()}},u=function(){t(".wp-block-getwid-section:not(.getwid-init)").each(function(e){t(this).addClass("getwid-init");var i=t(this),n=i.find(".wp-block-getwid-section__background-video.source-media-library").get(0),o=i.find(".getwid-background-video-play"),a=i.find(".getwid-background-video-mute");i.find(".wp-block-getwid-section__background-video.source-media-library").on("play",function(t){o.html('')}).on("pause",function(t){o.html('')}),i.on("click",".getwid-background-video-play",function(t){t.preventDefault(),n&&(n.paused?n.play():n.pause())}),i.ready(function(){n&&(n.paused?o.html(''):o.html(''),n.muted?a.html(''):a.html(''))}),i.on("click",".getwid-background-video-mute",function(t){t.preventDefault(),n&&(n.muted=!n.muted,n.muted?a.html(''):a.html(''))})})};c(),r(),l(),u()})}(jQuery)},565:function(t,e){/*! * getwid-tabs */ !function(t){t(document).ready(function(e){function i(t){for(var e="",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=i.length,o=0;o .wp-block-getwid-tabs__tab-content").each(function(e,i){t(i).attr("id","tab-".concat(o,"-").concat(e))}),t(this).find(".wp-block-getwid-tabs__nav-link").each(function(e,i){var n=t(i).closest(".wp-block-getwid-tabs").find(">.wp-block-getwid-tabs__nav-links");t(i).detach(),n.append(i);var o={};t.each(t(i)[0].attributes,function(t,e){o[e.nodeName]=e.nodeValue}),t(i).replaceWith(function(){return t("
  • ",o).append(t(i).contents())})}),t(this).find(".wp-block-getwid-tabs__tab-content-wrapper").eq(n).addClass("is-active-tab"),t(this).tabs({active:n,activate:function(e,i){i.newPanel.closest(".wp-block-getwid-tabs").find(".wp-block-getwid-tabs__tab-content-wrapper").removeClass("is-active-tab"),i.newPanel.addClass("is-active-tab"),t("html, body").add(window,document).stop()}})})};n()})}(jQuery)},566:function(t,e){/*! * getwid-accordion */ !function(t){t(document).ready(function(e){t(document.body).on("post-load",function(t){i()});var i=function(){var e=t(".wp-block-getwid-accordion:not(.getwid-init)"),i=0;e.each(function(e,n){t(this).addClass("getwid-init"),i="none"!=t(this).data("active-element")&&parseInt(t(this).data("active-element"),10),t(n).accordion({icons:!1,animate:!1,collapsible:!0,active:i,heightStyle:"content",create:function(t,e){},activate:function(e,i){if(i.newPanel.length){var n=i.newPanel.find(".wp-block-getwid-accordion__content").outerHeight(!0);n&&t(i.newPanel).animate({height:n},{queue:!1,duration:500,complete:function(){t(this).css("height","")}})}if(i.oldPanel.length){var o=i.oldPanel.find(".wp-block-getwid-accordion__content").outerHeight(!0);o&&(t(i.oldPanel).css("height",o),t(i.oldPanel).animate({height:0},{queue:!1,duration:500,complete:function(){t(this).css("height","")}}))}}})})};i()})}(jQuery)},567:function(t,e){/*! * getwid-toggle */ !function(t){t(document).ready(function(e){t(document.body).on("post-load",function(t){i()});var i=function(){t(".wp-block-getwid-toggle:not(.getwid-init)").each(function(e,i){t(this).addClass("getwid-init"),t(i).find(".wp-block-getwid-toggle__row .wp-block-getwid-toggle__header-wrapper").on("click",function(e){e.preventDefault(),e.stopImmediatePropagation();var i=t(this).parent(),n=i.find(".wp-block-getwid-toggle__content-wrapper").first(),o=i.find(".wp-block-getwid-toggle__content").first().outerHeight(!0);i.hasClass("is-active")?(i.removeClass("is-active"),n.css("height",o),t(n).animate({height:0},{queue:!1,duration:500,complete:function(){t(this).css("height","")}})):(t(n).animate({height:o},{queue:!1,duration:500,complete:function(){t(this).css("height","")}}),i.addClass("is-active"))})})};i()})}(jQuery)},568:function(t,e,i){"use strict";var n=i(24);/*! * getwid-icon-box */ !function(t){t(document).ready(function(e){t(document.body).on("post-load",function(t){i()});var i=function(){t(".wp-block-getwid-icon-box:not(.getwid-init)").each(function(e,i){t(i).addClass("getwid-init"),t(".getwid-animation.wp-block-getwid-icon-box").on("mouseenter",function(){Object(n.a)(t(this).find(".wp-block-getwid-icon-box__icon-wrapper"),{animation:t(this).attr("data-animation")})})})};i()})}(jQuery)},569:function(t,e,i){"use strict";var n=i(24);/*! * getwid-media-text-slider */ !function(t){t(document).ready(function(e){t(document.body).on("post-load",function(t){i()});var i=function(){var e,i,o,a,d,s,c,r,l=t(".wp-block-getwid-media-text-slider:not(.getwid-init) .wp-block-getwid-media-text-slider__content");l.each(function(l){c=t(this),c.closest(".wp-block-getwid-media-text-slider").addClass("getwid-init"),r=void 0!==t(this).closest(".wp-block-getwid-media-text-slider").data("animation"),e=1==c.data("slide-autoplay"),i=1==c.data("slide-pause-on-hover"),o=parseInt(c.data("slide-autoplay-speed")),a="fade"==c.data("slide-effect"),d=parseInt(c.data("slide-speed")),s=1==c.data("infinite"),r&&t(this).find(".wp-block-getwid-media-text-slider-slide .wp-block-getwid-media-text-slider-slide-content__content").css("opacity","0"),c.on("init",function(){r&&t(this).find(".wp-block-getwid-media-text-slider-slide.slick-active .wp-block-getwid-media-text-slider-slide-content__content").css("opacity","1")});var u=!1;c.on("beforeChange",function(t,e,i,n){u=i==n}),c.on("afterChange",function(e,i,o){if(!u){r&&t(this).find(".wp-block-getwid-media-text-slider-slide .wp-block-getwid-media-text-slider-slide-content__content").css("opacity","0");var a=t(this).find('.wp-block-getwid-media-text-slider-slide[data-slick-index="'+o+'"]').find(".wp-block-getwid-media-text-slider-slide-content__content");r&&a.length&&Object(n.a)(a,{animation:t(this).closest(".wp-block-getwid-media-text-slider").data("animation"),duration:t(this).closest(".wp-block-getwid-media-text-slider").data("duration"),delay:t(this).closest(".wp-block-getwid-media-text-slider").data("delay")},a.css("opacity","1"))}});var p=t(this).closest(".".concat("wp-block-getwid-media-text-slider")),w=!p.hasClass("has-arrows-none"),f=!p.hasClass("has-dots-none");c.slick({rows:0,slidesToShow:1,slidesToScroll:1,autoplay:e,pauseOnHover:i,autoplaySpeed:o,fade:a,speed:d,infinite:s,arrows:w,dots:f,rtl:!!Getwid.isRTL})})};i()})}(jQuery)},570:function(t,e){/*! * getwid-images-slider */ !function(t){t(document).ready(function(e){t(document.body).on("post-load",function(t){i()});var i=function(){var e,i,n,o,a,d,s,c,r,l,u,p,w,f,g,m,h,_,b,v=t(".wp-block-getwid-images-slider:not(.getwid-init) .wp-block-getwid-images-slider__wrapper");v.length&&"undefined"!=typeof imagesLoaded&&v.each(function(v){e=t(this),e.closest(".wp-block-getwid-images-slider").addClass("getwid-init"),e.imagesLoaded().done(function(e){var v=t(e.elements[0]);i="fade"==v.data("effect"),n=v.data("slides-show")&&"slide"==v.data("effect")?parseInt(v.data("slides-show")):1,o=v.data("slides-show-laptop")?parseInt(v.data("slides-show-laptop")):1,a=v.data("slides-show-tablet")?parseInt(v.data("slides-show-tablet")):1,d=v.data("slides-show-mobile")?parseInt(v.data("slides-show-mobile")):1,s=v.data("slides-scroll")?parseInt(v.data("slides-scroll")):1,c=1==v.data("autoplay"),r=parseInt(v.data("autoplay-speed"))?parseInt(v.data("autoplay-speed")):2e3,l=1==v.data("infinite"),u=parseInt(v.data("animation-speed")),p=1==v.data("center-mode"),w=1==v.data("variable-width"),f=1==v.data("pause-hover"),g="none"!=v.data("arrows"),m="none"!=v.data("dots"),h=v.data("height")?v.data("height"):void 0,_=!!v.data("reset-on-tablet"),b=!!v.data("reset-on-mobile"),t(e.elements[0]).slick({arrows:g,dots:m,rows:0,slidesToShow:n,slidesToScroll:s,autoplay:c,autoplaySpeed:r,fade:i,speed:u,infinite:l,centerMode:p,variableWidth:w,pauseOnHover:f,adaptiveHeight:!0,rtl:!!Getwid.isRTL,responsive:[{breakpoint:991,settings:{slidesToShow:o,slidesToScroll:1}},{breakpoint:768,settings:{slidesToShow:a,slidesToScroll:1}},{breakpoint:468,settings:{slidesToShow:d,slidesToScroll:1}}]})})})};i()})}(jQuery)},571:function(module,__webpack_exports__,__webpack_require__){"use strict";var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_typeof__=__webpack_require__(13),__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_typeof___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_typeof__);/*! * getwid-map */ !function($){var _this=this;$(document).ready(function(event){function removeAllAttributes(t){var e=$.map(t[0].attributes,function(t){return t.name});$.each(e,function(e,i){"class"!=i&&t.removeAttr(i)})}function mapStyles(mapData){var mapStyle=mapData.mapStyle,customStyle=mapData.customStyle;if("object"==__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_typeof___default()(mapStyle))return null;if("default"!=mapStyle){if("custom"!=mapStyle)return stylesArr[mapStyle];try{return eval(customStyle)}catch(t){if(!(t instanceof SyntaxError))throw t;console.error(t.message)}}}function initMarkers(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=t.mapMarkers,o=n[e].coords,a=new google.maps.Marker({position:o,map:i,draggable:!1,animation:google.maps.Animation.DROP});n[e].bounce&&setTimeout(function(){return a.setAnimation(google.maps.Animation.BOUNCE)},2e3);var d="";""!=unescape(n[e].description)&&(d="\n\t\t\t\t\t
    \n\t\t\t\t\t\t".concat(_unescape(n[e].description),"\n\t\t\t\t\t
    \n\t\t\t\t")),attachMessage(a,d,n[e].popUpOpen,n[e].popUpMaxWidth)}function attachMessage(t,e,i,n){var o=new google.maps.InfoWindow({content:e,maxWidth:n});i&&""!=o.content&&o.open(t.get("map"),t),google.maps.event.clearInstanceListeners(t),t.addListener("click",function(){""!=o.content&&o.open(t.get("map"),t)})}$(document.body).on("post-load",function(t){getwid_init_map()});var getwid_init_map=function(){var t=$(".wp-block-getwid-map:not(.getwid-init)");"undefined"!=typeof google?t.each(function(t,e){$(_this).addClass("getwid-init"),$(e).find(".wp-block-getwid-map__points").remove();var i=$(e).find(".wp-block-getwid-map__container")[0],n=$(e).data("map-center"),o=$(e).data("map-markers"),a=$(e).data("map-zoom"),d=$(e).data("map-style"),s=$(e).data("custom-style"),c=$(e).data("zoom-control"),r=$(e).data("type-control"),l=$(e).data("interaction"),u=$(e).data("street-view-control"),p=$(e).data("full-screen-control");removeAllAttributes($(e));var w={mapCenter:n,mapZoom:a,interaction:l,mapStyle:d,customStyle:s,zoomControl:c,mapTypeControl:r,streetViewControl:u,fullscreenControl:p,mapMarkers:o},f=new google.maps.Map(i,{center:n,styles:mapStyles(w),gestureHandling:l,zoomControl:c,mapTypeControl:r,streetViewControl:u,fullscreenControl:p,zoom:a});void 0!==o&&o.length&&$.each(o,function(t,e){initMarkers(w,t,f)})}):t.length&&t.each(function(t,e){var i=$(e);i.find(".wp-block-getwid-map__container").remove(),$(i).prepend('')})};getwid_init_map()})}(jQuery)},572:function(t,e,i){"use strict";var n=i(24);/*! * getwid-image-box */ !function(t){t(document).ready(function(e){t(document.body).on("post-load",function(t){i()});var i=function(){t(".wp-block-getwid-image-box:not(.getwid-init)").each(function(e,i){t(i).addClass("getwid-init"),t(".getwid-animation.wp-block-getwid-image-box").on("mouseenter",function(){Object(n.a)(t(this).find(".wp-block-getwid-image-box__image-wrapper"),{animation:t(this).attr("data-animation")})})})};i()})}(jQuery)},573:function(t,e){/*! * getwid-progress-bar */ !function(t){t(document).ready(function(e){t(document.body).on("post-load",function(t){i()});var i=function(){t(".wp-block-getwid-progress-bar:not(.getwid-init)").each(function(e){function i(e){s.find(t("".concat(d,"__progress"))).css("width","".concat(e,"%")),s.find(t("".concat(d,"__percent"))).text("".concat(e,"%"))}function n(e){var i=s.find(t("".concat(d,"__progress"))),n=function(){return Math.round(i.width()/i.parent().width()*100)};i.animate({width:"".concat(e,"%")},{duration:2e3,progress:function(){s.find(t("".concat(d,"__percent"))).text(n()+"%")}})}t(this).addClass("getwid-init");var o,a,d=".wp-block-getwid-progress-bar",s=t(this);o=s.find("".concat(d,"__wrapper")).data("fill-amount"),a=s.find("".concat(d,"__wrapper")).data("is-animated");var c=s.find(t("".concat(d,"__wrapper"))),r=new Waypoint({element:c.get(0),handler:function(){a?n(o):i(o),r.destroy()},offset:"100%"});t(window).on("resize",function(){i(o)})})};i()})}(jQuery)},574:function(t,e){/*! * getwid-circle-progress-bar */ !function(t){t(document).ready(function(e){t(document.body).on("post-load",function(t){i()});var i=function(){t(".wp-block-getwid-circle-progress-bar:not(.getwid-init)").each(function(e){function i(){var t=w.find("".concat(p,"__canvas")).get(0);t.width=parseFloat(r),t.height=parseFloat(r)}function n(t,e){var n=w.find("".concat(p,"__canvas")).get(0).getContext("2d"),o="auto"===l?r/14:l,s=r/2,c=Math.PI/180*-90;i(),n.clearRect(0,0,r,r),n.beginPath(),n.arc(s,s,s-o/2,c,c+2*Math.PI),n.lineWidth=o,n.strokeStyle=a,n.stroke(),n.beginPath(),n.arc(s,s,s-o/2,c,c+2*Math.PI*(t/100)),n.lineWidth=o,n.strokeStyle=d,n.stroke(),n.beginPath(),n.textAlign="center",n.font="16px serif",n.fillText(e||t+"%",s+6.5,s+5),n.stroke()}function o(t){var e=0,i=setInterval(function(){n(e,t),++e>s&&clearInterval(i)},35)}var a,d,s,c,r,l,u,p=".wp-block-getwid-circle-progress-bar",w=t(this);t(this).addClass("getwid-init"),a=w.find("".concat(p,"__wrapper")).data("background-color")?w.find("".concat(p,"__wrapper")).data("background-color"):"#eeeeee",d=w.find("".concat(p,"__wrapper")).data("text-color")?w.find("".concat(p,"__wrapper")).data("text-color"):"#0000ee",s=w.find("".concat(p,"__wrapper")).data("fill-amount"),c=w.find("".concat(p,"__wrapper")).data("is-animated"),r=w.find("".concat(p,"__wrapper")).data("size"),l=w.find("".concat(p,"__wrapper")).data("thickness"),u=w.find("".concat(p,"__wrapper")).data("value");var f=w.find(t("".concat(p,"__wrapper"))),g=new Waypoint({element:f.get(0),handler:function(){c?o(u):n(s,u),g.destroy()},offset:"100%"})})};i()})}(jQuery)},575:function(t,e){/*! * getwid-counter */ !function(t){t(document).ready(function(e){t(document.body).on("post-load",function(t){i()});var i=function(){t(".wp-block-getwid-counter:not(.getwid-init)").each(function(e){function i(){if(!r)return null;switch(w){case"outExpo":return function(t,e,i,n){return i*(1-Math.pow(2,-10*t/n))*1024/1023+e};case"outQuintic":return function(t,e,i,n){var o=(t/=n)*t,a=o*t;return e+i*(a*o+-5*o*o+10*a+-10*o+5*t)};case"outCubic":return function(t,e,i,n){var o=(t/=n)*t;return e+i*(o*t+-3*o+3*t)}}}function n(){switch(f){case"eastern_arabic":return["٠","١","٢","٣","٤","٥","٦","٧","٨","٩"];case"farsi":return["۰","۱","۲","۳","۴","۵","۶","۷","۸","۹"];default:return null}}function o(){return{startVal:a,decimalPlaces:s,duration:c,useEasing:r,useGrouping:l,separator:u,decimal:p,easingFn:i(),numerals:n()}}t(this).addClass("getwid-init");var a,d,s,c,r,l,u,p,w,f,g=".wp-block-getwid-counter",m=t(this);a=m.find("".concat(g,"__wrapper")).data("start"),d=m.find("".concat(g,"__wrapper")).data("end"),s=m.find("".concat(g,"__wrapper")).data("decimal-places"),c=m.find("".concat(g,"__wrapper")).data("duration"),r=m.find("".concat(g,"__wrapper")).data("use-easing"),l=m.find("".concat(g,"__wrapper")).data("use-grouping"),u=m.find("".concat(g,"__wrapper")).data("separator"),p=m.find("".concat(g,"__wrapper")).data("decimal"),w=m.find("".concat(g,"__wrapper")).data("easing-fn"),f=m.find("".concat(g,"__wrapper")).data("numerals");var h=m.find("".concat(g,"__number")),_=new Waypoint({element:h.get(0),handler:function(){new CountUp(h.get(0),d,o()).start(),_.destroy()},offset:"100%"})})};i()})}(jQuery)},576:function(t,e){/*! * getwid-contact-form */ !function(t){var e=this;t(document).ready(function(i){t(document.body).on("post-load",function(t){n()});var n=function(){t(".wp-block-getwid-contact-form__form:not(.getwid-init)").each(function(i,n){t(e).addClass("getwid-init");var o,a=t(n).find("p[class$=__result]"),d=t(n).find("button[type='submit']"),s=t(n).find(".wp-block-getwid-captcha");s.length&&function(){if(s.length){var t=s.data("sitekey"),e=s.data("theme");grecaptcha.ready(function(){o=grecaptcha.render(s[0],{sitekey:t,theme:e})})}}(),a.hide(),t(n).submit(function(e){e.preventDefault(),d.prop("disabled",!0);var i={};t(n).serializeArray().forEach(function(t,e){i[t.name]=t.value});var c={action:"getwid_send_mail",nonce:Getwid.nonces.contact_form,data:i};""!=a.text()&&a.hide(300),t.post(Getwid.ajax_url,c,function(e){a.hasClass("success")?a.removeClass("success"):a.hasClass("fail")&&a.removeClass("fail"),d.prop("disabled",!1),s.length&&e.success&&grecaptcha.reset(o),e.success?(t(n)[0].reset(),a.addClass("success")):a.addClass("fail"),a.html(e.data),a.show(300)})})})};n()})}(jQuery)},577:function(t,e){/*! * getwid-post-carousel */ !function(t){t(document).ready(function(e){t(document.body).on("post-load",function(t){i()});var i=function(){var e=t(".wp-block-getwid-post-carousel:not(.getwid-init) .wp-block-getwid-post-carousel__wrapper");e.length&&"undefined"!=typeof imagesLoaded&&e.each(function(e){getwid_post_carousel=t(this);var i=getwid_post_carousel.data("slider-option"),n=i.sliderSlidesToShowDesktop,o=i.getwid_slidesToShowLaptop,a=i.getwid_slidesToShowTablet,d=i.getwid_slidesToShowMobile,s=i.getwid_slidesToScroll,c=i.getwid_autoplay,r=i.getwid_autoplay_speed,l=i.getwid_infinite,u=i.getwid_animation_speed,p=i.getwid_center_mode,w=i.getwid_pause_on_hover,f=i.getwid_arrows,g=i.getwid_dots;s=parseInt(s),n=parseInt(n),o=parseInt(o),d=parseInt(d),a=parseInt(a),f="none"!=f,g="none"!=g,getwid_post_carousel.closest(".wp-block-getwid-post-carousel").addClass("getwid-init"),getwid_post_carousel.imagesLoaded().done(function(e){t(e.elements[0]).slick({arrows:f,dots:g,rows:0,slidesToShow:n,slidesToScroll:s,autoplay:c,autoplaySpeed:r,fade:!1,speed:u,infinite:l,centerMode:p,variableWidth:!1,pauseOnHover:w,adaptiveHeight:!0,rtl:!!Getwid.isRTL,responsive:[{breakpoint:991,settings:{slidesToShow:o,slidesToScroll:1}},{breakpoint:768,settings:{slidesToShow:a,slidesToScroll:1}},{breakpoint:468,settings:{slidesToShow:d,slidesToScroll:1}}]})})})};i()})}(jQuery)},578:function(t,e){/*! * getwid-post-slider */ !function(t){t(document).ready(function(e){t(document.body).on("post-load",function(t){i()});var i=function(){var e=t(".wp-block-getwid-post-slider:not(.getwid-init) .wp-block-getwid-post-slider__content");e.length&&"undefined"!=typeof imagesLoaded&&e.each(function(e){getwid_post_slider=t(this);var i=getwid_post_slider.data("slider-option"),n=i.getwid_fade_effect,o=i.getwid_autoplay,a=i.getwid_autoplay_speed,d=i.getwid_infinite,s=i.getwid_animation_speed,c=i.getwid_arrows,r=i.getwid_dots,l=i.getwid_pause_on_hover;n="fade"==n,c="none"!=c,r="none"!=r,getwid_post_slider.closest(".wp-block-getwid-post-slider").addClass("getwid-init"),getwid_post_slider.imagesLoaded().done(function(e){t(e.elements[0]).slick({arrows:c,dots:r,rows:0,slidesToShow:1,slidesToScroll:1,autoplay:o,autoplaySpeed:a,fade:n,speed:s,infinite:d,centerMode:!1,variableWidth:!1,pauseOnHover:l,adaptiveHeight:!0,rtl:!!Getwid.isRTL})})})};i()})}(jQuery)},579:function(t,e){/*! * getwid-video-popup */ !function(t){t(document).ready(function(e){t(document.body).on("post-load",function(t){i()});var i=function(){t(".wp-block-getwid-video-popup:not(.getwid-init)").each(function(e){t(this).addClass("getwid-init"),t(this).find(".wp-block-getwid-video-popup__link").mpFancybox({baseClass:"getwid-video-popup"})})};i()})}(jQuery)},580:function(t,e){/*! * getwid-mailchimp */ !function(t){var e=this;t(document).ready(function(i){t(document.body).on("post-load",function(t){n()});var n=function(){t(".wp-block-getwid-mailchimp__form:not(.getwid-init)").each(function(i,n){t(e).addClass("getwid-init");var o=t(n).find("p[class$=__result]"),a=t(n).find("button[type='submit']");o.hide(),t(n).submit(function(e){e.preventDefault(),a.prop("disabled",!0);var i={};t(n).serializeArray().forEach(function(t,e){i[t.name]=t.value});var d={action:"getwid_subscribe",data:i};""!=o.text()&&o.hide(300),t.post(Getwid.ajax_url,d,function(e){o.hasClass("success")?o.removeClass("success"):o.hasClass("fail")&&o.removeClass("fail"),a.prop("disabled",!1),e.success?(t(n)[0].reset(),o.addClass("success")):o.addClass("fail"),o.html(e.data),o.show(300)})})})};n()})}(jQuery)},581:function(t,e,i){"use strict";var n=i(24);/*! * getwid-image-hotspot */ !function(t){t(document).ready(function(e){t(document.body).on("post-load",function(t){i()});var i=function(){t(".wp-block-getwid-image-hotspot:not(.getwid-init)").each(function(e,i){t(this).addClass("getwid-init");var o=t(i).data("trigger"),a=t(i).data("theme"),d=t(i).data("tooltip-animation"),s=t(i).data("arrow"),c=t(i).data("image-points");t(".getwid-animation .wp-block-getwid-image-hotspot__dot").on("mouseenter",function(){Object(n.a)(t(this),{animation:t(this).closest(".getwid-animation").attr("data-animation")})}),t(i).find(".wp-block-getwid-image-hotspot__dot").each(function(e,i){var n=t(i),r=n.data("point-id"),l=_unescape(n.find(".wp-block-getwid-image-hotspot__dot-title").html()),u=_unescape(c[r].content),p=c[r].popUpOpen,w=c[r].placement,f=c[r].popUpWidth,g=tippy(i,{maxWidth:parseInt(f,10),hideOnClick:"multiple"!=o||"toggle",theme:a,animation:d,animateFill:!1,interactive:!0,trigger:"hover"==o?"mouseenter":"click",arrow:s,placement:w,allowHTML:!0,content:'
    '.concat(l,'
    ').concat(u,"
    ")});p&&setTimeout(function(){g.show()},1e3),n.find(".wp-block-getwid-image-hotspot__dot-description").remove(),new Waypoint({element:i,handler:function(e){t(this.element).addClass("is-visible")},offset:"100%"})})})};i()})}(jQuery)},582:function(t,e,i){"use strict";var n=i(31),o=i.n(n);/*! * getwid-content-timeline */ !function(t){var e=this;t(document).ready(function(i){t(document.body).on("post-load",function(t){n()});var n=function(){t(".wp-block-getwid-content-timeline:not(.getwid-init)").each(function(i,n){t(e).addClass("getwid-init");var a=!1,d="wp-block-getwid-content-timeline-item",s=t(n).find(".".concat(d)),c="none"!=t(n).data("animation")?t(n).data("animation"):null,r=t(n).find("div[class$=__point]").data("point-color"),l=t(n).data("filling");t.each(s,function(e,i){c&&(i.getBoundingClientRect().top>.8*window.innerHeight?t(i).addClass("is-hidden"):t(i).addClass(c));var n=t(i).find(".".concat(d,"__content-wrapper"));(0==n.children().length||n.find(".".concat(d,"__mobile-meta")).is(":only-child"))&&n.addClass("has-no-content")});var u=function(e){t.each(s,function(i,n){t(n).hasClass("is-hidden")&&n.getBoundingClientRect().top<=.8*window.innerHeight&&(t(n).removeClass("is-hidden"),t(n).addClass(e))}),a=!1};c&&t(document).on("scroll",function(){a||(a=!0,window.requestAnimationFrame?window.requestAnimationFrame(function(){return u(c)}):setTimeout(function(){return u(c)},250))});var p=t(window).height()/2,w=function(){var e=t(n).find(".".concat(d,"__point")),i=0;t.each(e,function(t,n){e[t+1]&&(i+=e[t+1].getBoundingClientRect().top-n.getBoundingClientRect().top)});var a=t(n).find("div[class$=__line]"),s=e.get(),c=o()(s),r=c[0],l=(c.slice(1),t(r).position().top+t(r).height()/2);a.css({height:i,top:l})},f=function(){var e=t(n).find(".".concat(d,"__point")),i=e.get(),a=o()(i);a[0],a.slice(1).length&&t.each(e,function(e,i){var n=i.getBoundingClientRect().top,o=t(i).parents(".".concat(d))[0];n<=p?(t(o).hasClass("is-active")||t(o).addClass("is-active"),t(i).find(":first-child").css({borderColor:r||""})):(t(o).hasClass("is-active")&&t(o).removeClass("is-active"),t(i).find(":first-child").css({borderColor:""}))})},g=function(){var e=t(n).find(".".concat(d,"__point")),i=t(n).find("div[class*=__bar]")[0],a=i.getBoundingClientRect().top,s=e.toArray(),c=o()(s),r=c[0],l=c.slice(1),u=p-r.getBoundingClientRect().top;if(l.length){var w=l.slice(-1).pop(),f=w.getBoundingClientRect().top;a<=p&&f>=p&&t(i).css({height:u}),a>=p&&t(i).css({height:0}),f<=p&&t(i).css({height:"100%"})}};t(document).ready(function(){var e=setInterval(function(){"complete"==document.readyState&&(w(),l&&(f(),g()),l&&t(document).on("scroll",function(){f(),g()}),clearInterval(e))},1e3)}),t(window).on("resize",function(){w(),l&&(f(),g())})})};n()})}(jQuery)},583:function(t,e){/*! * getwid-countdown */ !function(t){t(document).ready(function(e){t(document.body).on("post-load",function(t){i()});var i=function(){t(".wp-block-getwid-countdown:not(.getwid-init)").each(function(e,i){t(this).addClass("getwid-init");var n=jQuery(i).find(".wp-block-getwid-countdown__content"),o=n.data("datetime"),a=n.data("years"),d=n.data("months"),s=n.data("weeks"),c=n.data("days"),r=n.data("hours"),l=n.data("minutes"),u=n.data("seconds"),p=n.data("bg-color"),w="negative"==o?"":o,f="";a&&(f+="Y"),d&&(f+="O"),s&&(f+="W"),c&&(f+="D"),r&&(f+="H"),l&&(f+="M"),u&&(f+="S"),n.countdown({until:w,format:f,onTick:function(t){var e=jQuery(".countdown-section",n);p&&e.css("background-color",p)}})})};i()})}(jQuery)},584:function(t,e){/*! * getwid-content-slider */ !function(t){t(document).ready(function(e){t(document.body).on("post-load",function(t){i()});var i=function(){var e=t(".wp-block-getwid-content-slider:not(.getwid-init)");e.length&&e.each(function(e){var i,n,o,a,d,s,c,r,l,u,p,w=t(this),f=w.find(".wp-block-getwid-content-slider__wrapper").first();w.addClass("getwid-init"),f.slick({autoplay:!!w.data("autoplay"),autoplaySpeed:null!==(i=w.data("autoplay-speed"))&&void 0!==i?i:3e3,arrows:"none"!==w.data("arrows"),dots:"none"!==w.data("dots"),speed:null!==(n=w.data("animation-speed"))&&void 0!==n?n:800,infinite:!!w.data("infinite"),fade:"fade"===w.data("effect"),centerMode:!!w.data("center-mode"),adaptiveHeight:!!w.data("adaptive-height"),draggable:null===(o=w.data("draggable"))||void 0===o||o,pauseOnHover:!!w.data("pause-hover"),rows:0,slidesToShow:null!==(a=w.data("slides-show"))&&void 0!==a?a:1,slidesToScroll:null!==(d=w.data("slides-scroll"))&&void 0!==d?d:1,rtl:!!Getwid.isRTL,responsive:[{breakpoint:991,settings:{slidesToShow:null!==(s=w.data("slides-show-laptop"))&&void 0!==s?s:1,slidesToScroll:null!==(c=w.data("slides-scroll-laptop"))&&void 0!==c?c:1}},{breakpoint:768,settings:{slidesToShow:null!==(r=w.data("slides-show-tablet"))&&void 0!==r?r:1,slidesToScroll:null!==(l=w.data("slides-scroll-tablet"))&&void 0!==l?l:1}},{breakpoint:468,settings:{slidesToShow:null!==(u=w.data("slides-show-mobile"))&&void 0!==u?u:1,slidesToScroll:null!==(p=w.data("slides-scroll-mobile"))&&void 0!==p?p:1}}]})})};i()})}(jQuery)}});(function(t,e,n,i){"use strict";t.console=t.console||{info:function(t){}};if(!n){return}if(n.fn.fancybox){console.info("fancyBox already initialized");return}var o={closeExisting:!1,loop:!1,gutter:50,keyboard:!0,preventCaptionOverlap:!0,arrows:!0,infobar:!0,smallBtn:"auto",toolbar:"auto",buttons:["zoom","slideShow","thumbs","close"],idleTime:3,protect:!1,modal:!1,image:{preload:!1},ajax:{settings:{data:{fancybox:!0}}},iframe:{tpl:'',preload:!0,css:{},attr:{scrolling:"auto"}},video:{tpl:'",format:"",autoStart:!0},defaultType:"image",animationEffect:"zoom",animationDuration:366,zoomOpacity:"auto",transitionEffect:"fade",transitionDuration:366,slideClass:"",baseClass:"",baseTpl:'",spinnerTpl:'
    ',errorTpl:'

    {{ERROR}}

    ',btnTpl:{download:''+''+"",zoom:'",close:'",arrowLeft:'",arrowRight:'",smallBtn:'"},parentEl:"body",hideScrollbar:!0,autoFocus:!0,backFocus:!0,trapFocus:!0,fullScreen:{autoStart:!1},touch:{vertical:!0,momentum:!0},hash:null,media:{},slideShow:{autoStart:!1,speed:3e3},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"y"},wheel:"auto",onInit:n.noop,beforeLoad:n.noop,afterLoad:n.noop,beforeShow:n.noop,afterShow:n.noop,beforeClose:n.noop,afterClose:n.noop,onActivate:n.noop,onDeactivate:n.noop,clickContent:function(t,e){return t.type==="image"?"zoom":!1},clickSlide:"close",clickOutside:"close",dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1,mobile:{preventCaptionOverlap:!1,idleTime:!1,clickContent:function(t,e){return t.type==="image"?"toggleControls":!1},clickSlide:function(t,e){return t.type==="image"?"toggleControls":"close"},dblclickContent:function(t,e){return t.type==="image"?"zoom":!1},dblclickSlide:function(t,e){return t.type==="image"?"zoom":!1}},lang:"en",i18n:{en:{CLOSE:"Close",NEXT:"Next",PREV:"Previous",ERROR:"The requested content cannot be loaded.
    Please try again later.",PLAY_START:"Start slideshow",PLAY_STOP:"Pause slideshow",FULL_SCREEN:"Full screen",THUMBS:"Thumbnails",DOWNLOAD:"Download",SHARE:"Share",ZOOM:"Zoom"},de:{CLOSE:"Schliessen",NEXT:"Weiter",PREV:"Zurück",ERROR:"Die angeforderten Daten konnten nicht geladen werden.
    Bitte versuchen Sie es später nochmal.",PLAY_START:"Diaschau starten",PLAY_STOP:"Diaschau beenden",FULL_SCREEN:"Vollbild",THUMBS:"Vorschaubilder",DOWNLOAD:"Herunterladen",SHARE:"Teilen",ZOOM:"Maßstab"}}};var a=n(t);var s=n(e);var r=0;var l=function(t){return t&&t.hasOwnProperty&&t instanceof n};var c=function(){return t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||function(e){return t.setTimeout(e,1e3/60)}}();var f=function(){return t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.mozCancelAnimationFrame||t.oCancelAnimationFrame||function(e){t.clearTimeout(e)}}();var u=function(){var t=e.createElement("fakeelement"),n;var o={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(n in o){if(t.style[n]!==i){return o[n]}}return"transitionend"}();var d=function(t){return t&&t.length&&t[0].offsetHeight};var p=function(t,e){var i=n.extend(!0,{},t,e);n.each(e,function(t,e){if(n.isArray(e)){i[t]=e}});return i};var h=function(t){var i,o;if(!t||t.ownerDocument!==e){return!1}n(".fancybox-container").css("pointer-events","none");i={x:t.getBoundingClientRect().left+t.offsetWidth/2,y:t.getBoundingClientRect().top+t.offsetHeight/2};o=e.elementFromPoint(i.x,i.y)===t;n(".fancybox-container").css("pointer-events","");return o};var g=function(t,e,i){var o=this;o.opts=p({index:i},n.fancybox.defaults);if(n.isPlainObject(e)){o.opts=p(o.opts,e)}if(n.fancybox.isMobile){o.opts=p(o.opts,o.opts.mobile)}o.id=o.opts.id||++r;o.currIndex=parseInt(o.opts.index,10)||0;o.prevIndex=null;o.prevPos=null;o.currPos=0;o.firstRun=!0;o.group=[];o.slides={};o.addContent(t);if(!o.group.length){return}o.init()};n.extend(g.prototype,{init:function(){var i=this,o=i.group[i.currIndex],a=o.opts,s,r;if(a.closeExisting){n.fancybox.close(!0)}n("body").addClass("fancybox-active");if(!n.fancybox.getInstance()&&a.hideScrollbar!==!1&&!n.fancybox.isMobile&&e.body.scrollHeight>t.innerHeight){n("head").append('");n("body").addClass("compensate-for-scrollbar")}r="";n.each(a.buttons,function(t,e){r+=a.btnTpl[e]||""});s=n(i.translate(i,a.baseTpl.replace("{{buttons}}",r).replace("{{arrows}}",a.btnTpl.arrowLeft+a.btnTpl.arrowRight))).attr("id","fancybox-container-"+i.id).addClass(a.baseClass).data("FancyBox",i).appendTo(a.parentEl);i.$refs={container:s};["bg","inner","infobar","toolbar","stage","caption","navigation"].forEach(function(t){i.$refs[t]=s.find(".fancybox-"+t)});i.trigger("onInit");i.activate();i.jumpTo(i.currIndex)},translate:function(t,e){var n=t.opts.i18n[t.opts.lang]||t.opts.i18n.en;return e.replace(/\{\{(\w+)\}\}/g,function(t,e){var o=n[e];if(o===i){return t}return o})},addContent:function(t){var e=this,o=n.makeArray(t),a;n.each(o,function(t,o){var a={},s={},r,l,c,f,u;if(n.isPlainObject(o)){a=o;s=o.opts||o}else if(n.type(o)==="object"&&n(o).length){r=n(o);s=r.data()||{};s=n.extend(!0,{},s,s.options);s.$orig=r;a.src=e.opts.src||s.src||r.attr("href");if(!a.type&&!a.src){a.type="inline";a.src=o}}else{a={type:"html",src:o+""}}a.opts=n.extend(!0,{},e.opts,s);if(n.isArray(s.buttons)){a.opts.buttons=s.buttons}if(n.fancybox.isMobile&&a.opts.mobile){a.opts=p(a.opts,a.opts.mobile)}l=a.type||a.opts.type;f=a.src||"";if(!l&&f){if(c=f.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i)){l="video";if(!a.opts.video.format){a.opts.video.format="video/"+(c[1]==="ogv"?"ogg":c[1])}}else if(f.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)){l="image"}else if(f.match(/\.(pdf)((\?|#).*)?$/i)){l="iframe";a=n.extend(!0,a,{contentType:"pdf",opts:{iframe:{preload:!1}}})}else if(f.charAt(0)==="#"){l="inline"}}if(l){a.type=l}else{e.trigger("objectNeedsType",a)}if(!a.contentType){a.contentType=n.inArray(a.type,["html","inline","ajax"])>-1?"html":a.type}a.index=e.group.length;if(a.opts.smallBtn=="auto"){a.opts.smallBtn=n.inArray(a.type,["html","inline","ajax"])>-1}if(a.opts.toolbar==="auto"){a.opts.toolbar=!a.opts.smallBtn}a.$thumb=a.opts.$thumb||null;if(a.opts.$trigger&&a.index===e.opts.index){a.$thumb=a.opts.$trigger.find("img:first");if(a.$thumb.length){a.opts.$orig=a.opts.$trigger}}if(!(a.$thumb&&a.$thumb.length)&&a.opts.$orig){a.$thumb=a.opts.$orig.find("img:first")}if(a.$thumb&&!a.$thumb.length){a.$thumb=null}a.thumb=a.opts.thumb||(a.$thumb?a.$thumb[0].src:null);if(n.type(a.opts.caption)==="function"){a.opts.caption=a.opts.caption.apply(o,[e,a])}if(n.type(e.opts.caption)==="function"){a.opts.caption=e.opts.caption.apply(o,[e,a])}if(!(a.opts.caption instanceof n)){a.opts.caption=a.opts.caption===i?"":a.opts.caption+""}if(a.type==="ajax"){u=f.split(/\s+/,2);if(u.length>1){a.src=u.shift();a.opts.filter=u.shift()}}if(a.opts.modal){a.opts=n.extend(!0,a.opts,{trapFocus:!0,infobar:0,toolbar:0,smallBtn:0,keyboard:0,slideShow:0,fullScreen:0,thumbs:0,touch:0,clickContent:!1,clickSlide:!1,clickOutside:!1,dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1})}e.group.push(a)});if(Object.keys(e.slides).length){e.updateControls();a=e.Thumbs;if(a&&a.isActive){a.create();a.focus()}}},addEvents:function(){var e=this;e.removeEvents();e.$refs.container.on("click.fb-close","[data-fancybox-close]",function(t){t.stopPropagation();t.preventDefault();e.close(t)}).on("touchstart.fb-prev click.fb-prev","[data-fancybox-prev]",function(t){t.stopPropagation();t.preventDefault();e.previous()}).on("touchstart.fb-next click.fb-next","[data-fancybox-next]",function(t){t.stopPropagation();t.preventDefault();e.next()}).on("click.fb","[data-fancybox-zoom]",function(t){e[e.isScaledDown()?"scaleToActual":"scaleToFit"]()});a.on("orientationchange.fb resize.fb",function(t){if(t&&t.originalEvent&&t.originalEvent.type==="resize"){if(e.requestId){f(e.requestId)}e.requestId=c(function(){e.update(t)})}else{if(e.current&&e.current.type==="iframe"){e.$refs.stage.hide()}setTimeout(function(){e.$refs.stage.show();e.update(t)},n.fancybox.isMobile?600:250)}});s.on("keydown.fb",function(t){var i=n.fancybox?n.fancybox.getInstance():null,o=i.current,a=t.keyCode||t.which;if(a==9){if(o.opts.trapFocus){e.focus(t)}return}if(!o.opts.keyboard||t.ctrlKey||t.altKey||t.shiftKey||n(t.target).is("input")||n(t.target).is("textarea")){return}if(a===8||a===27){t.preventDefault();e.close(t);return}if(a===37||a===38){t.preventDefault();e.previous();return}if(a===39||a===40){t.preventDefault();e.next();return}e.trigger("afterKeydown",t,a)});if(e.group[e.currIndex].opts.idleTime){e.idleSecondsCounter=0;s.on("mousemove.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle",function(t){e.idleSecondsCounter=0;if(e.isIdle){e.showControls()}e.isIdle=!1});e.idleInterval=t.setInterval(function(){e.idleSecondsCounter++;if(e.idleSecondsCounter>=e.group[e.currIndex].opts.idleTime&&!e.isDragging){e.isIdle=!0;e.idleSecondsCounter=0;e.hideControls()}},1e3)}},removeEvents:function(){var e=this;a.off("orientationchange.fb resize.fb");s.off("keydown.fb .fb-idle");this.$refs.container.off(".fb-close .fb-prev .fb-next");if(e.idleInterval){t.clearInterval(e.idleInterval);e.idleInterval=null}},previous:function(t){return this.jumpTo(this.currPos-1,t)},next:function(t){return this.jumpTo(this.currPos+1,t)},jumpTo:function(t,e){var o=this,a=o.group.length,s,r,l,c,f,u,p,h,g;if(o.isDragging||o.isClosing||o.isAnimating&&o.firstRun){return}t=parseInt(t,10);l=o.current?o.current.opts.loop:o.opts.loop;if(!l&&(t<0||t>=a)){return!1}s=o.firstRun=!Object.keys(o.slides).length;f=o.current;o.prevIndex=o.currIndex;o.prevPos=o.currPos;c=o.createSlide(t);if(a>1){if(l||c.index0){o.createSlide(t-1)}}o.current=c;o.currIndex=c.index;o.currPos=c.pos;o.trigger("beforeShow",s);o.updateControls();c.forcedDuration=i;if(n.isNumeric(e)){c.forcedDuration=e}else{e=c.opts[s?"animationDuration":"transitionDuration"]}e=parseInt(e,10);r=o.isMoved(c);c.$slide.addClass("fancybox-slide--current");if(s){if(c.opts.animationEffect&&e){o.$refs.container.css("transition-duration",e+"ms")}o.$refs.container.addClass("fancybox-is-open").trigger("focus");o.loadSlide(c);o.preload("image");return}u=n.fancybox.getTranslate(f.$slide);p=n.fancybox.getTranslate(o.$refs.stage);n.each(o.slides,function(t,e){n.fancybox.stop(e.$slide,!0)});if(f.pos!==c.pos){f.isComplete=!1}f.$slide.removeClass("fancybox-slide--complete fancybox-slide--current");if(r){g=u.left-(f.pos*u.width+f.pos*f.opts.gutter);n.each(o.slides,function(t,i){i.$slide.removeClass("fancybox-animated").removeClass(function(t,e){return(e.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")});var a=i.pos*u.width+i.pos*i.opts.gutter;n.fancybox.setTranslate(i.$slide,{top:0,left:a-p.left+g});if(i.pos!==c.pos){i.$slide.addClass("fancybox-slide--"+(i.pos>c.pos?"next":"previous"))}d(i.$slide);n.fancybox.animate(i.$slide,{top:0,left:(i.pos-c.pos)*u.width+(i.pos-c.pos)*i.opts.gutter},e,function(){i.$slide.css({transform:"",opacity:""}).removeClass("fancybox-slide--next fancybox-slide--previous");if(i.pos===o.currPos){o.complete()}})})}else if(e&&c.opts.transitionEffect){h="fancybox-animated fancybox-fx-"+c.opts.transitionEffect;f.$slide.addClass("fancybox-slide--"+(f.pos>c.pos?"next":"previous"));n.fancybox.animate(f.$slide,h,e,function(){f.$slide.removeClass(h).removeClass("fancybox-slide--next fancybox-slide--previous")},!1)}if(c.isLoaded){o.revealContent(c)}else{o.loadSlide(c)}o.preload("image")},createSlide:function(t){var e=this,i,o;o=t%e.group.length;o=o<0?e.group.length+o:o;if(!e.slides[t]&&e.group[o]){i=n('
    ').appendTo(e.$refs.stage);e.slides[t]=n.extend(!0,{},e.group[o],{pos:t,$slide:i,isLoaded:!1});e.updateSlide(e.slides[t])}return e.slides[t]},scaleToActual:function(t,e,o){var a=this,s=a.current,r=s.$content,l=n.fancybox.getTranslate(s.$slide).width,c=n.fancybox.getTranslate(s.$slide).height,f=s.width,u=s.height,d,p,h,g,b;if(a.isAnimating||a.isMoved()||!r||!(s.type=="image"&&s.isLoaded&&!s.hasError)){return}a.isAnimating=!0;n.fancybox.stop(r);t=t===i?l*.5:t;e=e===i?c*.5:e;d=n.fancybox.getTranslate(r);d.top-=n.fancybox.getTranslate(s.$slide).top;d.left-=n.fancybox.getTranslate(s.$slide).left;g=f/d.width;b=u/d.height;p=l*.5-f*.5;h=c*.5-u*.5;if(f>l){p=d.left*g-(t*g-t);if(p>0){p=0}if(pc){h=d.top*b-(e*b-e);if(h>0){h=0}if(hr-.5){a=r}if(s>l-.5){s=l}if(t.type==="image"){u.top=Math.floor((l-s)*.5)+parseFloat(o.css("paddingTop"));u.left=Math.floor((r-a)*.5)+parseFloat(o.css("paddingLeft"))}else if(t.contentType==="video"){f=t.opts.width&&t.opts.height?a/s:t.opts.ratio||16/9;if(s>a/f){s=a/f}else if(a>s*f){a=s*f}}u.width=a;u.height=s;return u},update:function(t){var e=this;n.each(e.slides,function(n,i){e.updateSlide(i,t)})},updateSlide:function(t,e){var i=this,o=t&&t.$content,a=t.width||t.opts.width,s=t.height||t.opts.height,r=t.$slide;i.adjustCaption(t);if(o&&(a||s||t.contentType==="video")&&!t.hasError){n.fancybox.stop(o);n.fancybox.setTranslate(o,i.getFitPos(t));if(t.pos===i.currPos){i.isAnimating=!1;i.updateCursor()}}i.adjustLayout(t);if(r.length){r.trigger("refresh");if(t.pos===i.currPos){i.$refs.toolbar.add(i.$refs.navigation.find(".fancybox-button--arrow_right")).toggleClass("compensate-for-scrollbar",r.get(0).scrollHeight>r.get(0).clientHeight)}}i.trigger("onUpdate",t,e)},centerSlide:function(t){var e=this,o=e.current,a=o.$slide;if(e.isClosing||!o){return}a.siblings().css({transform:"",opacity:""});a.parent().children().removeClass("fancybox-slide--previous fancybox-slide--next");n.fancybox.animate(a,{top:0,left:0,opacity:1},t===i?0:t,function(){a.css({transform:"",opacity:""});if(!o.isComplete){e.complete()}},!1)},isMoved:function(t){var e=t||this.current,i,o;if(!e){return!1}o=n.fancybox.getTranslate(this.$refs.stage);i=n.fancybox.getTranslate(e.$slide);return!e.$slide.hasClass("fancybox-animated")&&(Math.abs(i.top-o.top)>.5||Math.abs(i.left-o.left)>.5)},updateCursor:function(t,e){var i=this,o=i.current,a=i.$refs.container,s,r;if(!o||i.isClosing||!i.Guestures){return}a.removeClass("fancybox-is-zoomable fancybox-can-zoomIn fancybox-can-zoomOut fancybox-can-swipe fancybox-can-pan");s=i.canPan(t,e);r=s?true:i.isZoomable();a.toggleClass("fancybox-is-zoomable",r);n("[data-fancybox-zoom]").prop("disabled",!r);if(s){a.addClass("fancybox-can-pan")}else if(r&&(o.opts.clickContent==="zoom"||n.isFunction(o.opts.clickContent)&&o.opts.clickContent(o)=="zoom")){a.addClass("fancybox-can-zoomIn")}else if(o.opts.touch&&(o.opts.touch.vertical||i.group.length>1)&&o.contentType!=="video"){a.addClass("fancybox-can-swipe")}},isZoomable:function(){var t=this,e=t.current,n;if(e&&!t.isClosing&&e.type==="image"&&!e.hasError){if(!e.isLoaded){return!0}n=t.getFitPos(e);if(n&&(e.width>n.width||e.height>n.height)){return!0}}return!1},isScaledDown:function(t,e){var o=this,a=!1,s=o.current,r=s.$content;if(t!==i&&e!==i){a=t1.5||Math.abs(s.height-r.height)>1.5}}return r},loadSlide:function(t){var e=this,i,o,a;if(t.isLoading||t.isLoaded){return}t.isLoading=!0;if(e.trigger("beforeLoad",t)===!1){t.isLoading=!1;return!1}i=t.type;o=t.$slide;o.off("refresh").trigger("onReset").addClass(t.opts.slideClass);switch(i){case"image":e.setImage(t);break;case"iframe":e.setIframe(t);break;case"html":e.setContent(t,t.src||t.content);break;case"video":e.setContent(t,t.opts.video.tpl.replace(/\{\{src\}\}/gi,t.src).replace("{{format}}",t.opts.videoFormat||t.opts.video.format||"").replace("{{poster}}",t.thumb||""));break;case"inline":if(n(t.src).length){e.setContent(t,n(t.src))}else{e.setError(t)}break;case"ajax":e.showLoading(t);a=n.ajax(n.extend({},t.opts.ajax.settings,{url:t.src,success:function(n,i){if(i==="success"){e.setContent(t,n)}},error:function(n,i){if(n&&i!=="abort"){e.setError(t)}}}));o.one("onReset",function(){a.abort()});break;default:e.setError(t);break}return!0},setImage:function(t){var i=this,o;setTimeout(function(){var e=t.$image;if(!i.isClosing&&t.isLoading&&(!e||!e.length||!e[0].complete)&&!t.hasError){i.showLoading(t)}},50);i.checkSrcset(t);t.$content=n('
    ').addClass("fancybox-is-hidden").appendTo(t.$slide.addClass("fancybox-slide--image"));if(t.opts.preload!==!1&&t.opts.width&&t.opts.height&&t.thumb){t.width=t.opts.width;t.height=t.opts.height;o=e.createElement("img");o.onerror=function(){n(this).remove();t.$ghost=null};o.onload=function(){i.afterLoad(t)};t.$ghost=n(o).addClass("fancybox-image").appendTo(t.$content).attr("src",t.thumb)}i.setBigImage(t)},checkSrcset:function(e){var n=e.opts.srcset||e.opts.image.srcset,i,o,a,s;if(n){a=t.devicePixelRatio||1;s=t.innerWidth*a;o=n.split(",").map(function(t){var e={};t.trim().split(/\s+/).forEach(function(t,n){var i=parseInt(t.substring(0,t.length-1),10);if(n===0){return e.url=t}if(i){e.value=i;e.postfix=t[t.length-1]}});return e});o.sort(function(t,e){return t.value-e.value});for(var r=0;r=s||l.postfix==="x"&&l.value>=a){i=l;break}}if(!i&&o.length){i=o[o.length-1]}if(i){e.src=i.url;if(e.width&&e.height&&i.postfix=="w"){e.height=e.width/e.height*i.value;e.width=i.value}e.opts.srcset=n}}},setBigImage:function(t){var i=this,o=e.createElement("img"),s=n(o);t.$image=s.one("error",function(){i.setError(t)}).one("load",function(){var e;if(!t.$ghost){i.resolveImageSlideSize(t,this.naturalWidth,this.naturalHeight);i.afterLoad(t)}if(i.isClosing){return}if(t.opts.srcset){e=t.opts.sizes;if(!e||e==="auto"){e=(t.width/t.height>1&&a.width()/a.height()>1?"100":Math.round(t.width/t.height*100))+"vw"}s.attr("sizes",e).attr("srcset",t.opts.srcset)}if(t.$ghost){setTimeout(function(){if(t.$ghost&&!i.isClosing){t.$ghost.hide()}},Math.min(300,Math.max(1e3,t.height/1600)))}i.hideLoading(t)}).addClass("fancybox-image").attr("src",t.src).appendTo(t.$content);if((o.complete||o.readyState=="complete")&&s.naturalWidth&&s.naturalHeight){s.trigger("load")}else if(o.error){s.trigger("error")}},resolveImageSlideSize:function(t,e,n){var i=parseInt(t.opts.width,10),o=parseInt(t.opts.height,10);t.width=e;t.height=n;if(i>0){t.width=i;t.height=Math.floor(i*n/e)}if(o>0){t.width=Math.floor(o*e/n);t.height=o}},setIframe:function(t){var e=this,o=t.opts.iframe,a=t.$slide,s;if(n.fancybox.isMobile){o.css.overflow="scroll"}t.$content=n('
    ').css(o.css).appendTo(a);a.addClass("fancybox-slide--"+t.contentType);t.$iframe=s=n(o.tpl.replace(/\{rnd\}/g,(new Date).getTime())).attr(o.attr).appendTo(t.$content);if(o.preload){e.showLoading(t);s.on("load.fb error.fb",function(n){this.isReady=1;t.$slide.trigger("refresh");e.afterLoad(t)});a.on("refresh.fb",function(){var e=t.$content,n=o.css.width,r=o.css.height,l,c;if(s[0].isReady!==1){return}try{l=s.contents();c=l.find("body")}catch(t){}if(c&&c.length&&c.children().length){a.css("overflow","visible");e.css({width:"100%","max-width":"100%",height:"9999px"});if(n===i){n=Math.ceil(Math.max(c[0].clientWidth,c.outerWidth(!0)))}e.css("width",n?n:"").css("max-width","");if(r===i){r=Math.ceil(Math.max(c[0].clientHeight,c.outerHeight(!0)))}e.css("height",r?r:"");a.css("overflow","auto")}e.removeClass("fancybox-is-hidden")})}else{e.afterLoad(t)}s.attr("src",t.src);a.one("onReset",function(){try{n(this).find("iframe").hide().unbind().attr("src","//about:blank")}catch(t){}n(this).off("refresh.fb").empty();t.isLoaded=!1;t.isRevealed=!1})},setContent:function(t,e){var i=this;if(i.isClosing){return}i.hideLoading(t);if(t.$content){n.fancybox.stop(t.$content)}t.$slide.empty();if(l(e)&&e.parent().length){if(e.hasClass("fancybox-content")||e.parent().hasClass("fancybox-content")){e.parents(".fancybox-slide").trigger("onReset")}t.$placeholder=n("
    ").hide().insertAfter(e);e.css("display","inline-block")}else if(!t.hasError){if(n.type(e)==="string"){e=n("
    ").append(n.trim(e)).contents()}if(t.opts.filter){e=n("
    ").html(e).find(t.opts.filter)}}t.$slide.one("onReset",function(){n(this).find("video,audio").trigger("pause");if(t.$placeholder){t.$placeholder.after(e.removeClass("fancybox-content").hide()).remove();t.$placeholder=null}if(t.$smallBtn){t.$smallBtn.remove();t.$smallBtn=null}if(!t.hasError){n(this).empty();t.isLoaded=!1;t.isRevealed=!1}});n(e).appendTo(t.$slide);if(n(e).is("video,audio")){n(e).addClass("fancybox-video");n(e).wrap("
    ");t.contentType="video";t.opts.width=t.opts.width||n(e).attr("width");t.opts.height=t.opts.height||n(e).attr("height")}t.$content=t.$slide.children().filter("div,form,main,video,audio,article,.fancybox-content").first();t.$content.siblings().hide();if(!t.$content.length){t.$content=t.$slide.wrapInner("
    ").children().first()}t.$content.addClass("fancybox-content");t.$slide.addClass("fancybox-slide--"+t.contentType);i.afterLoad(t)},setError:function(t){t.hasError=!0;t.$slide.trigger("onReset").removeClass("fancybox-slide--"+t.contentType).addClass("fancybox-slide--error");t.contentType="html";this.setContent(t,this.translate(t,t.opts.errorTpl));if(t.pos===this.currPos){this.isAnimating=!1}},showLoading:function(t){var e=this;t=t||e.current;if(t&&!t.$spinner){t.$spinner=n(e.translate(e,e.opts.spinnerTpl)).appendTo(t.$slide).hide().fadeIn("fast")}},hideLoading:function(t){var e=this;t=t||e.current;if(t&&t.$spinner){t.$spinner.stop().remove();delete t.$spinner}},afterLoad:function(t){var e=this;if(e.isClosing){return}t.isLoading=!1;t.isLoaded=!0;e.trigger("afterLoad",t);e.hideLoading(t);if(t.opts.smallBtn&&(!t.$smallBtn||!t.$smallBtn.length)){t.$smallBtn=n(e.translate(t,t.opts.btnTpl.smallBtn)).appendTo(t.$content)}if(t.opts.protect&&t.$content&&!t.hasError){t.$content.on("contextmenu.fb",function(t){if(t.button==2){t.preventDefault()}return!0});if(t.type==="image"){n('
    ').appendTo(t.$content)}}e.adjustCaption(t);e.adjustLayout(t);if(t.pos===e.currPos){e.updateCursor()}e.revealContent(t)},adjustCaption:function(t){var e=this,n=t||e.current,i=n.opts.caption,o=e.$refs.caption,a=!1;if(n.opts.preventCaptionOverlap&&i&&i.length){if(n.pos!==e.currPos){o=o.clone().empty().appendTo(o.parent());o.html(i);a=o.outerHeight(!0);o.empty().remove()}else if(e.$caption){a=e.$caption.outerHeight(!0)}n.$slide.css("padding-bottom",a||"")}},adjustLayout:function(t){var e=this,n=t||e.current,i,o,a,s;if(n.isLoaded&&n.opts.disableLayoutFix!==!0){n.$content.css("margin-bottom","");if(n.$content.outerHeight()>n.$slide.height()+.5){a=n.$slide[0].style["padding-bottom"];s=n.$slide.css("padding-bottom");if(parseFloat(s)>0){i=n.$slide[0].scrollHeight;n.$slide.css("padding-bottom",0);if(Math.abs(i-n.$slide[0].scrollHeight)<1){o=s}n.$slide.css("padding-bottom",a)}}n.$content.css("margin-bottom",o)}},revealContent:function(t){var e=this,o=t.$slide,a=!1,s=!1,r=e.isMoved(t),l=t.isRevealed,c,f,u,p;t.isRevealed=!0;c=t.opts[e.firstRun?"animationEffect":"transitionEffect"];u=t.opts[e.firstRun?"animationDuration":"transitionDuration"];u=parseInt(t.forcedDuration===i?u:t.forcedDuration,10);if(r||t.pos!==e.currPos||!u){c=!1}if(c==="zoom"){if(t.pos===e.currPos&&u&&t.type==="image"&&!t.hasError&&(s=e.getThumbPos(t))){a=e.getFitPos(t)}else{c="fade"}}if(c==="zoom"){e.isAnimating=!0;a.scaleX=a.width/s.width;a.scaleY=a.height/s.height;p=t.opts.zoomOpacity;if(p=="auto"){p=Math.abs(t.width/t.height-s.width/s.height)>.1}if(p){s.opacity=.1;a.opacity=1}n.fancybox.setTranslate(t.$content.removeClass("fancybox-is-hidden"),s);d(t.$content);n.fancybox.animate(t.$content,a,u,function(){e.isAnimating=!1;e.complete()});return}e.updateSlide(t);if(!c){t.$content.removeClass("fancybox-is-hidden");if(!l&&r&&t.type==="image"&&!t.hasError){t.$content.hide().fadeIn("fast")}if(t.pos===e.currPos){e.complete()}return}n.fancybox.stop(o);f="fancybox-slide--"+(t.pos>=e.prevPos?"next":"previous")+" fancybox-animated fancybox-fx-"+c;o.addClass(f).removeClass("fancybox-slide--current");t.$content.removeClass("fancybox-is-hidden");d(o);if(t.type!=="image"){t.$content.hide().show(0)}n.fancybox.animate(o,"fancybox-slide--current",u,function(){o.removeClass(f).css({transform:"",opacity:""});if(t.pos===e.currPos){e.complete()}},!0)},getThumbPos:function(t){var e=!1,i=t.$thumb,o,a,s,r,l;if(!i||!h(i[0])){return!1}o=n.fancybox.getTranslate(i);a=parseFloat(i.css("border-top-width")||0);s=parseFloat(i.css("border-right-width")||0);r=parseFloat(i.css("border-bottom-width")||0);l=parseFloat(i.css("border-left-width")||0);e={top:o.top+a,left:o.left+l,width:o.width-s-l,height:o.height-a-r,scaleX:1,scaleY:1};return o.width>0&&o.height>0?e:!1},complete:function(){var t=this,e=t.current,i={},o;if(t.isMoved()||!e.isLoaded){return}if(!e.isComplete){e.isComplete=!0;e.$slide.siblings().trigger("onReset");t.preload("inline");d(e.$slide);e.$slide.addClass("fancybox-slide--complete");n.each(t.slides,function(e,o){if(o.pos>=t.currPos-1&&o.pos<=t.currPos+1){i[o.pos]=o}else if(o){n.fancybox.stop(o.$slide);o.$slide.off().remove()}});t.slides=i}t.isAnimating=!1;t.updateCursor();t.trigger("afterShow");if(!!e.opts.video.autoStart){e.$slide.find("video,audio").filter(":visible:first").trigger("play").one("ended",function(){if(this.webkitExitFullscreen){this.webkitExitFullscreen()}t.next()})}if(e.opts.autoFocus&&e.contentType==="html"){o=e.$content.find("input[autofocus]:enabled:visible:first");if(o.length){o.trigger("focus")}else{t.focus(null,!0)}}e.$slide.scrollTop(0).scrollLeft(0)},preload:function(t){var e=this,n,i;if(e.group.length<2){return}i=e.slides[e.currPos+1];n=e.slides[e.currPos-1];if(n&&n.type===t){e.loadSlide(n)}if(i&&i.type===t){e.loadSlide(i)}},focus:function(t,i){var o=this,a=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","[contenteditable]",'[tabindex]:not([tabindex^="-"])'].join(","),s,r;if(o.isClosing){return}if(t||!o.current||!o.current.isComplete){s=o.$refs.container.find("*:visible")}else{s=o.current.$slide.find("*:visible"+(i?":not(.fancybox-close-small)":""))}s=s.filter(a).filter(function(){return n(this).css("visibility")!=="hidden"&&!n(this).hasClass("disabled")});if(s.length){r=s.index(e.activeElement);if(t&&t.shiftKey){if(r<0||r==0){t.preventDefault();s.eq(s.length-1).trigger("focus")}}else{if(r<0||r==s.length-1){if(t){t.preventDefault()}s.eq(0).trigger("focus")}}}else{o.$refs.container.trigger("focus")}},activate:function(){var t=this;n(".fancybox-container").each(function(){var e=n(this).data("FancyBox");if(e&&e.id!==t.id&&!e.isClosing){e.trigger("onDeactivate");e.removeEvents();e.isVisible=!1}});t.isVisible=!0;if(t.current||t.isIdle){t.update();t.updateControls()}t.trigger("onActivate");t.addEvents()},close:function(t,e){var i=this,o=i.current,a,s,r,l,f,u,p;var h=function(){i.cleanUp(t)};if(i.isClosing){return!1}i.isClosing=!0;if(i.trigger("beforeClose",t)===!1){i.isClosing=!1;c(function(){i.update()});return!1}i.removeEvents();r=o.$content;a=o.opts.animationEffect;s=n.isNumeric(e)?e:a?o.opts.animationDuration:0;o.$slide.removeClass("fancybox-slide--complete fancybox-slide--next fancybox-slide--previous fancybox-animated");if(t!==!0){n.fancybox.stop(o.$slide)}else{a=!1}o.$slide.siblings().trigger("onReset").remove();if(s){i.$refs.container.removeClass("fancybox-is-open").addClass("fancybox-is-closing").css("transition-duration",s+"ms")}i.hideLoading(o);i.hideControls(!0);i.updateCursor();if(a==="zoom"&&!(r&&s&&o.type==="image"&&!i.isMoved()&&!o.hasError&&(p=i.getThumbPos(o)))){a="fade"}if(a==="zoom"){n.fancybox.stop(r);l=n.fancybox.getTranslate(r);u={top:l.top,left:l.left,scaleX:l.width/p.width,scaleY:l.height/p.height,width:p.width,height:p.height};f=o.opts.zoomOpacity;if(f=="auto"){f=Math.abs(o.width/o.height-p.width/p.height)>.1}if(f){p.opacity=0}n.fancybox.setTranslate(r,u);d(r);n.fancybox.animate(r,p,s,h);return!0}if(a&&s){n.fancybox.animate(o.$slide.addClass("fancybox-slide--previous").removeClass("fancybox-slide--current"),"fancybox-animated fancybox-fx-"+a,s,h)}else{if(t===!0){setTimeout(h,s)}else{h()}}return!0},cleanUp:function(e){var i=this,o,a=i.current.opts.$orig,s,r;i.current.$slide.trigger("onReset");i.$refs.container.empty().remove();i.trigger("afterClose",e);if(!!i.current.opts.backFocus){if(!a||!a.length||!a.is(":visible")){a=i.$trigger}if(a&&a.length){s=t.scrollX;r=t.scrollY;a.trigger("focus");n("html, body").scrollTop(r).scrollLeft(s)}}i.current=null;o=n.fancybox.getInstance();if(o){o.activate()}else{n("body").removeClass("fancybox-active compensate-for-scrollbar");n("#fancybox-style-noscroll").remove()}},trigger:function(t,e){var i=Array.prototype.slice.call(arguments,1),o=this,a=e&&e.opts?e:o.current,r;if(a){i.unshift(a)}else{a=o}i.unshift(o);if(n.isFunction(a.opts[t])){r=a.opts[t].apply(a,i)}if(r===!1){return r}if(t==="afterClose"||!o.$refs){s.trigger(t+".fb",i)}else{o.$refs.container.trigger(t+".fb",i)}},updateControls:function(){var t=this,i=t.current,o=i.index,a=t.$refs.container,s=t.$refs.caption,r=i.opts.caption;i.$slide.trigger("refresh");t.$caption=r&&r.length?s.html(r):null;if(!t.hasHiddenControls&&!t.isIdle){t.showControls()}a.find("[data-fancybox-count]").html(t.group.length);a.find("[data-fancybox-index]").html(o+1);a.find("[data-fancybox-prev]").prop("disabled",!i.opts.loop&&o<=0);a.find("[data-fancybox-next]").prop("disabled",!i.opts.loop&&o>=t.group.length-1);if(i.type==="image"){a.find("[data-fancybox-zoom]").show().end().find("[data-fancybox-download]").attr("href",i.opts.image.src||i.src).show()}else if(i.opts.toolbar){a.find("[data-fancybox-download],[data-fancybox-zoom]").hide()}if(n(e.activeElement).is(":hidden,[disabled]")){t.$refs.container.trigger("focus")}},hideControls:function(t){var e=this,n=["infobar","toolbar","nav"];if(t||!e.current.opts.preventCaptionOverlap){n.push("caption")}this.$refs.container.removeClass(n.map(function(t){return"fancybox-show-"+t}).join(" "));this.hasHiddenControls=!0},showControls:function(){var t=this,e=t.current?t.current.opts:t.opts,n=t.$refs.container;t.hasHiddenControls=!1;t.idleSecondsCounter=0;n.toggleClass("fancybox-show-toolbar",!!(e.toolbar&&e.buttons)).toggleClass("fancybox-show-infobar",!!(e.infobar&&t.group.length>1)).toggleClass("fancybox-show-caption",!!t.$caption).toggleClass("fancybox-show-nav",!!(e.arrows&&t.group.length>1)).toggleClass("fancybox-is-modal",!!e.modal)},toggleControls:function(){if(this.hasHiddenControls){this.showControls()}else{this.hideControls()}}});n.fancybox={version:"3.5.2",defaults:o,getInstance:function(t){var e=n('.fancybox-container:not(".fancybox-is-closing"):last').data("FancyBox"),i=Array.prototype.slice.call(arguments,1);if(e instanceof g){if(n.type(t)==="string"){e[t].apply(e,i)}else if(n.type(t)==="function"){t.apply(e,i)}return e}return!1},open:function(t,e,n){return new g(t,e,n)},close:function(t){var e=this.getInstance();if(e){e.close();if(t===!0){this.close(t)}}},destroy:function(){this.close(!0);s.add("body").off("click.fb-start","**")},isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),use3d:function(){var n=e.createElement("div");return t.getComputedStyle&&t.getComputedStyle(n)&&t.getComputedStyle(n).getPropertyValue("transform")&&!(e.documentMode&&e.documentMode<11)}(),getTranslate:function(t){var e;if(!t||!t.length){return!1}e=t[0].getBoundingClientRect();return{top:e.top||0,left:e.left||0,width:e.width,height:e.height,opacity:parseFloat(t.css("opacity"))}},setTranslate:function(t,e){var n="",o={};if(!t||!e){return}if(e.left!==i||e.top!==i){n=(e.left===i?t.position().left:e.left)+"px, "+(e.top===i?t.position().top:e.top)+"px";if(this.use3d){n="translate3d("+n+", 0px)"}else{n="translate("+n+")"}}if(e.scaleX!==i&&e.scaleY!==i){n+=" scale("+e.scaleX+", "+e.scaleY+")"}else if(e.scaleX!==i){n+=" scaleX("+e.scaleX+")"}if(n.length){o.transform=n}if(e.opacity!==i){o.opacity=e.opacity}if(e.width!==i){o.width=e.width}if(e.height!==i){o.height=e.height}return t.css(o)},animate:function(t,e,o,a,s){var r=this,l;if(n.isFunction(o)){a=o;o=null}r.stop(t);l=r.getTranslate(t);t.on(u,function(c){if(c&&c.originalEvent&&(!t.is(c.originalEvent.target)||c.originalEvent.propertyName=="z-index")){return}r.stop(t);if(n.isNumeric(o)){t.css("transition-duration","")}if(n.isPlainObject(e)){if(e.scaleX!==i&&e.scaleY!==i){r.setTranslate(t,{top:e.top,left:e.left,width:l.width*e.scaleX,height:l.height*e.scaleY,scaleX:1,scaleY:1})}}else if(s!==!0){t.removeClass(e)}if(n.isFunction(a)){a(c)}});if(n.isNumeric(o)){t.css("transition-duration",o+"ms")}if(n.isPlainObject(e)){if(e.scaleX!==i&&e.scaleY!==i){delete e.width;delete e.height;if(t.parent().hasClass("fancybox-slide--image")){t.parent().addClass("fancybox-is-scaling")}}n.fancybox.setTranslate(t,e)}else{t.addClass(e)}t.data("timer",setTimeout(function(){t.trigger(u)},o+33))},stop:function(t,e){if(t&&t.length){clearTimeout(t.data("timer"));if(e){t.trigger(u)}t.off(u).css("transition-duration","");t.parent().removeClass("fancybox-is-scaling")}}};function b(t,e){var i=[],o=0,a,s,r;if(t&&t.isDefaultPrevented()){return}t.preventDefault();e=e||{};if(t&&t.data){e=p(t.data.options,e)}a=e.$target||n(t.currentTarget).trigger("blur");r=n.fancybox.getInstance();if(r&&r.$trigger&&r.$trigger.is(a)){return}if(e.selector){i=n(e.selector)}else{s=a.attr("data-fancybox")||"";if(s){i=t.data?t.data.items:[];i=i.length?i.filter('[data-fancybox="'+s+'"]'):n('[data-fancybox="'+s+'"]')}else{i=[a]}}o=n(i).index(a);if(o<0){o=0}r=n.fancybox.open(i,e,o);r.$trigger=a}n.fn.fancybox=function(t){var e;t=t||{};e=t.selector||!1;if(e){n("body").off("click.fb-start",e).on("click.fb-start",e,{options:t},b)}else{this.off("click.fb-start").on("click.fb-start",{items:this,options:t},b)}return this};s.on("click.fb-start","[data-fancybox]",b);s.on("click.fb-start","[data-fancybox-trigger]",function(t){n('[data-fancybox="'+n(this).attr("data-fancybox-trigger")+'"]').eq(n(this).attr("data-fancybox-index")||0).trigger("click.fb-start",{$trigger:n(this)})});(function(){var t=".fancybox-button",e="fancybox-focus",i=null;s.on("mousedown mouseup focus blur",t,function(o){switch(o.type){case"mousedown":i=n(this);break;case"mouseup":i=null;break;case"focusin":n(t).removeClass(e);if(!n(this).is(i)&&!n(this).is("[disabled]")){n(this).addClass(e)}break;case"focusout":n(t).removeClass(e);break}})})()})(window,document,jQuery);(function(t){"use strict";var e={youtube:{matcher:/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},paramPlace:8,type:"iframe",url:"//www.youtube-nocookie.com/embed/$4",thumb:"//img.youtube.com/vi/$4/hqdefault.jpg"},vimeo:{matcher:/^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1},paramPlace:3,type:"iframe",url:"//player.vimeo.com/video/$2"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},gmap_place:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/?ll="+(t[9]?t[9]+"&z="+Math.floor(t[10])+(t[12]?t[12].replace(/^\//,"&"):""):t[12]+"").replace(/\?/,"&")+"&output="+(t[12]&&t[12].indexOf("layer=c")>0?"svembed":"embed")}},gmap_search:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(maps\/search\/)(.*)/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/maps?q="+t[5].replace("query=","q=").replace("api=1","")+"&output=embed"}}};var n=function(e,n,i){if(!e){return}i=i||"";if(t.type(i)==="object"){i=t.param(i,!0)}t.each(n,function(t,n){e=e.replace("$"+t,n||"")});if(i.length){e+=(e.indexOf("?")>0?"&":"?")+i}return e};t(document).on("objectNeedsType.fb",function(i,o,a){var s=a.src||"",r=!1,l,c,f,u,d,p,h;l=t.extend(!0,{},e,a.opts.media);t.each(l,function(e,i){f=s.match(i.matcher);if(!f){return}r=i.type;h=e;p={};if(i.paramPlace&&f[i.paramPlace]){d=f[i.paramPlace];if(d[0]=="?"){d=d.substring(1)}d=d.split("&");for(var o=0;o1&&(n.contentSource==="youtube"||n.contentSource==="vimeo")){i.load(n.contentSource)}}})})(jQuery);(function(t,e,n){"use strict";var i=function(){return t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||function(e){return t.setTimeout(e,1e3/60)}}();var o=function(){return t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.mozCancelAnimationFrame||t.oCancelAnimationFrame||function(e){t.clearTimeout(e)}}();var a=function(e){var n=[];e=e.originalEvent||e||t.e;e=e.touches&&e.touches.length?e.touches:e.changedTouches&&e.changedTouches.length?e.changedTouches:[e];for(var i in e){if(e[i].pageX){n.push({x:e[i].pageX,y:e[i].pageY})}else if(e[i].clientX){n.push({x:e[i].clientX,y:e[i].clientY})}}return n};var s=function(t,e,n){if(!e||!t){return 0}if(n==="x"){return t.x-e.x}else if(n==="y"){return t.y-e.y}return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))};var r=function(t){if(t.is('a,area,button,[role="button"],input,label,select,summary,textarea,video,audio,iframe')||n.isFunction(t.get(0).onclick)||t.data("selectable")){return!0}for(var e=0,i=t[0].attributes,o=i.length;ee.clientHeight,a=(i==="scroll"||i==="auto")&&e.scrollWidth>e.clientWidth;return o||a};var c=function(t){var e=!1;for(;;){e=l(t.get(0));if(e){break}t=t.parent();if(!t.length||t.hasClass("fancybox-stage")||t.is("body")){break}}return e};var f=function(t){var e=this;e.instance=t;e.$bg=t.$refs.bg;e.$stage=t.$refs.stage;e.$container=t.$refs.container;e.destroy();e.$container.on("touchstart.fb.touch mousedown.fb.touch",n.proxy(e,"ontouchstart"))};f.prototype.destroy=function(){var t=this;t.$container.off(".fb.touch");n(e).off(".fb.touch");if(t.requestId){o(t.requestId);t.requestId=null}if(t.tapped){clearTimeout(t.tapped);t.tapped=null}};f.prototype.ontouchstart=function(i){var o=this,l=n(i.target),f=o.instance,u=f.current,d=u.$slide,p=u.$content,h=i.type=="touchstart";if(h){o.$container.off("mousedown.fb.touch")}if(i.originalEvent&&i.originalEvent.button==2){return}if(!d.length||!l.length||r(l)||r(l.parent())){return}if(!l.is("img")&&i.originalEvent.clientX>l[0].clientWidth+l.offset().left){return}if(!u||f.isAnimating||u.$slide.hasClass("fancybox-animated")){i.stopPropagation();i.preventDefault();return}o.realPoints=o.startPoints=a(i);if(!o.startPoints.length){return}if(u.touch){i.stopPropagation()}o.startEvent=i;o.canTap=!0;o.$target=l;o.$content=p;o.opts=u.opts.touch;o.isPanning=!1;o.isSwiping=!1;o.isZooming=!1;o.isScrolling=!1;o.canPan=f.canPan();o.startTime=(new Date).getTime();o.distanceX=o.distanceY=o.distance=0;o.canvasWidth=Math.round(d[0].clientWidth);o.canvasHeight=Math.round(d[0].clientHeight);o.contentLastPos=null;o.contentStartPos=n.fancybox.getTranslate(o.$content)||{top:0,left:0};o.sliderStartPos=n.fancybox.getTranslate(d);o.stagePos=n.fancybox.getTranslate(f.$refs.stage);o.sliderStartPos.top-=o.stagePos.top;o.sliderStartPos.left-=o.stagePos.left;o.contentStartPos.top-=o.stagePos.top;o.contentStartPos.left-=o.stagePos.left;n(e).off(".fb.touch").on(h?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",n.proxy(o,"ontouchend")).on(h?"touchmove.fb.touch":"mousemove.fb.touch",n.proxy(o,"ontouchmove"));if(n.fancybox.isMobile){e.addEventListener("scroll",o.onscroll,!0)}if(!(o.opts||o.canPan)||!(l.is(o.$stage)||o.$stage.find(l).length)){if(l.is(".fancybox-image")){i.preventDefault()}if(!(n.fancybox.isMobile&&l.hasClass("fancybox-caption"))){return}}o.isScrollable=c(l)||c(l.parent());if(!(n.fancybox.isMobile&&o.isScrollable)){i.preventDefault()}if(o.startPoints.length===1||u.hasError){if(o.canPan){n.fancybox.stop(o.$content);o.isPanning=!0}else{o.isSwiping=!0}o.$container.addClass("fancybox-is-grabbing")}if(o.startPoints.length===2&&u.type==="image"&&(u.isLoaded||u.$ghost)){o.canTap=!1;o.isSwiping=!1;o.isPanning=!1;o.isZooming=!0;n.fancybox.stop(o.$content);o.centerPointStartX=(o.startPoints[0].x+o.startPoints[1].x)*.5-n(t).scrollLeft();o.centerPointStartY=(o.startPoints[0].y+o.startPoints[1].y)*.5-n(t).scrollTop();o.percentageOfImageAtPinchPointX=(o.centerPointStartX-o.contentStartPos.left)/o.contentStartPos.width;o.percentageOfImageAtPinchPointY=(o.centerPointStartY-o.contentStartPos.top)/o.contentStartPos.height;o.startDistanceBetweenFingers=s(o.startPoints[0],o.startPoints[1])}};f.prototype.onscroll=function(t){var n=this;n.isScrolling=!0;e.removeEventListener("scroll",n.onscroll,!0)};f.prototype.ontouchmove=function(t){var e=this;if(t.originalEvent.buttons!==undefined&&t.originalEvent.buttons===0){e.ontouchend(t);return}if(e.isScrolling){e.canTap=!1;return}e.newPoints=a(t);if(!(e.opts||e.canPan)||!e.newPoints.length||!e.newPoints.length){return}if(!(e.isSwiping&&e.isSwiping===!0)){t.preventDefault()}e.distanceX=s(e.newPoints[0],e.startPoints[0],"x");e.distanceY=s(e.newPoints[0],e.startPoints[0],"y");e.distance=s(e.newPoints[0],e.startPoints[0]);if(e.distance>0){if(e.isSwiping){e.onSwipe(t)}else if(e.isPanning){e.onPan()}else if(e.isZooming){e.onZoom()}}};f.prototype.onSwipe=function(e){var a=this,s=a.instance,r=a.isSwiping,l=a.sliderStartPos.left||0,c;if(r===!0){if(Math.abs(a.distance)>10){a.canTap=!1;if(s.group.length<2&&a.opts.vertical){a.isSwiping="y"}else if(s.isDragging||a.opts.vertical===!1||a.opts.vertical==="auto"&&n(t).width()>800){a.isSwiping="x"}else{c=Math.abs(Math.atan2(a.distanceY,a.distanceX)*180/Math.PI);a.isSwiping=c>45&&c<135?"y":"x"}if(a.isSwiping==="y"&&n.fancybox.isMobile&&a.isScrollable){a.isScrolling=!0;return}s.isDragging=a.isSwiping;a.startPoints=a.newPoints;n.each(s.slides,function(t,e){var i,o;n.fancybox.stop(e.$slide);i=n.fancybox.getTranslate(e.$slide);o=n.fancybox.getTranslate(s.$refs.stage);e.$slide.css({transform:"",opacity:"","transition-duration":""}).removeClass("fancybox-animated").removeClass(function(t,e){return(e.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")});if(e.pos===s.current.pos){a.sliderStartPos.top=i.top-o.top;a.sliderStartPos.left=i.left-o.left}n.fancybox.setTranslate(e.$slide,{top:i.top-o.top,left:i.left-o.left})});if(s.SlideShow&&s.SlideShow.isActive){s.SlideShow.stop()}}return}if(r=="x"){if(a.distanceX>0&&(a.instance.group.length<2||a.instance.current.index===0&&!a.instance.current.opts.loop)){l=l+Math.pow(a.distanceX,.8)}else if(a.distanceX<0&&(a.instance.group.length<2||a.instance.current.index===a.instance.group.length-1&&!a.instance.current.opts.loop)){l=l-Math.pow(-a.distanceX,.8)}else{l=l+a.distanceX}}a.sliderLastPos={top:r=="x"?0:a.sliderStartPos.top+a.distanceY,left:l};if(a.requestId){o(a.requestId);a.requestId=null}a.requestId=i(function(){if(a.sliderLastPos){n.each(a.instance.slides,function(t,e){var i=e.pos-a.instance.currPos;n.fancybox.setTranslate(e.$slide,{top:a.sliderLastPos.top,left:a.sliderLastPos.left+i*a.canvasWidth+i*e.opts.gutter})});a.$container.addClass("fancybox-is-sliding")}})};f.prototype.onPan=function(){var t=this;if(s(t.newPoints[0],t.realPoints[0])<(n.fancybox.isMobile?10:5)){t.startPoints=t.newPoints;return}t.canTap=!1;t.contentLastPos=t.limitMovement();if(t.requestId){o(t.requestId)}t.requestId=i(function(){n.fancybox.setTranslate(t.$content,t.contentLastPos)})};f.prototype.limitMovement=function(){var t=this;var e=t.canvasWidth;var n=t.canvasHeight;var i=t.distanceX;var o=t.distanceY;var a=t.contentStartPos;var s=a.left;var r=a.top;var l=a.width;var c=a.height;var f,u,d,p,h,g;if(l>e){h=s+i}else{h=s}g=r+o;f=Math.max(0,e*.5-l*.5);u=Math.max(0,n*.5-c*.5);d=Math.min(e-l,e*.5-l*.5);p=Math.min(n-c,n*.5-c*.5);if(i>0&&h>f){h=f-1+Math.pow(-f+s+i,.8)||0}if(i<0&&h0&&g>u){g=u-1+Math.pow(-u+r+o,.8)||0}if(o<0&&ga){t=t>0?0:t;t=ts){e=e>0?0:e;e=e1&&(i.dMs>130&&s>10||s>50),l=300;i.sliderLastPos=null;if(t=="y"&&!e&&Math.abs(i.distanceY)>50){n.fancybox.animate(i.instance.current.$slide,{top:i.sliderStartPos.top+i.distanceY+i.velocityY*150,opacity:0},200);o=i.instance.close(!0,250)}else if(r&&i.distanceX>0){o=i.instance.previous(l)}else if(r&&i.distanceX<0){o=i.instance.next(l)}if(o===!1&&(t=="x"||t=="y")){i.instance.centerSlide(200)}i.$container.removeClass("fancybox-is-sliding")};f.prototype.endPanning=function(){var t=this,e,i,o;if(!t.contentLastPos){return}if(t.opts.momentum===!1||t.dMs>350){e=t.contentLastPos.left;i=t.contentLastPos.top}else{e=t.contentLastPos.left+t.velocityX*500;i=t.contentLastPos.top+t.velocityY*500}o=t.limitPosition(e,i,t.contentStartPos.width,t.contentStartPos.height);o.width=t.contentStartPos.width;o.height=t.contentStartPos.height;n.fancybox.animate(t.$content,o,330)};f.prototype.endZooming=function(){var t=this;var e=t.instance.current;var i,o,a,s;var r=t.newWidth;var l=t.newHeight;if(!t.contentLastPos){return}i=t.contentLastPos.left;o=t.contentLastPos.top;s={top:o,left:i,width:r,height:l,scaleX:1,scaleY:1};n.fancybox.setTranslate(t.$content,s);if(re.width||l>e.height){t.instance.scaleToActual(t.centerPointStartX,t.centerPointStartY,150)}else{a=t.limitPosition(i,o,r,l);n.fancybox.animate(t.$content,a,150)}};f.prototype.onTap=function(e){var i=this;var o=n(e.target);var s=i.instance;var r=s.current;var l=e&&a(e)||i.startPoints;var c=l[0]?l[0].x-n(t).scrollLeft()-i.stagePos.left:0;var f=l[0]?l[0].y-n(t).scrollTop()-i.stagePos.top:0;var u;var d=function(t){var o=r.opts[t];if(n.isFunction(o)){o=o.apply(s,[r,e])}if(!o){return}switch(o){case"close":s.close(i.startEvent);break;case"toggleControls":s.toggleControls();break;case"next":s.next();break;case"nextOrClose":if(s.group.length>1){s.next()}else{s.close(i.startEvent)}break;case"zoom":if(r.type=="image"&&(r.isLoaded||r.$ghost)){if(s.canPan()){s.scaleToFit()}else if(s.isScaledDown()){s.scaleToActual(c,f)}else if(s.group.length<2){s.close(i.startEvent)}}break}};if(e.originalEvent&&e.originalEvent.button==2){return}if(!o.is("img")&&c>o[0].clientWidth+o.offset().left){return}if(o.is(".fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container")){u="Outside"}else if(o.is(".fancybox-slide")){u="Slide"}else if(s.current.$content&&s.current.$content.find(o).addBack().filter(o).length){u="Content"}else{return}if(i.tapped){clearTimeout(i.tapped);i.tapped=null;if(Math.abs(c-i.tapX)>50||Math.abs(f-i.tapY)>50){return this}d("dblclick"+u)}else{i.tapX=c;i.tapY=f;if(r.opts["dblclick"+u]&&r.opts["dblclick"+u]!==r.opts["click"+u]){i.tapped=setTimeout(function(){i.tapped=null;if(!s.isAnimating){d("click"+u)}},500)}else{d("click"+u)}}return this};n(e).on("onActivate.fb",function(t,e){if(e&&!e.Guestures){e.Guestures=new f(e)}}).on("beforeClose.fb",function(t,e){if(e&&e.Guestures){e.Guestures.destroy()}})})(window,document,jQuery);(function(t,e){"use strict";e.extend(!0,e.fancybox.defaults,{btnTpl:{slideShow:'"},slideShow:{autoStart:!1,speed:3e3,progress:!0}});var n=function(t){this.instance=t;this.init()};e.extend(n.prototype,{timer:null,isActive:!1,$button:null,init:function(){var t=this,n=t.instance,i=n.group[n.currIndex].opts.slideShow;t.$button=n.$refs.toolbar.find("[data-fancybox-play]").on("click",function(){t.toggle()});if(n.group.length<2||!i){t.$button.hide()}else if(i.progress){t.$progress=e('
    ').appendTo(n.$refs.inner)}},set:function(t){var n=this,i=n.instance,o=i.current;if(o&&(t===!0||o.opts.loop||i.currIndex'+''+''+""},fullScreen:{autoStart:!1}});e(t).on(n.fullscreenchange,function(){var t=i.isFullscreen(),n=e.fancybox.getInstance();if(n){if(n.current&&n.current.type==="image"&&n.isAnimating){n.current.$content.css("transition","none");n.isAnimating=!1;n.update(!0,!0,0)}n.trigger("onFullscreenChange",t);n.$refs.container.toggleClass("fancybox-is-fullscreen",t);n.$refs.toolbar.find("[data-fancybox-fullscreen]").toggleClass("fancybox-button--fsenter",!t).toggleClass("fancybox-button--fsexit",t)}})}e(t).on({"onInit.fb":function(t,e){var o;if(!n){e.$refs.toolbar.find("[data-fancybox-fullscreen]").remove();return}if(e&&e.group[e.currIndex].opts.fullScreen){o=e.$refs.container;o.on("click.fb-fullscreen","[data-fancybox-fullscreen]",function(t){t.stopPropagation();t.preventDefault();i.toggle()});if(e.opts.fullScreen&&e.opts.fullScreen.autoStart===!0){i.request()}e.FullScreen=i}else if(e){e.$refs.toolbar.find("[data-fancybox-fullscreen]").hide()}},"afterKeydown.fb":function(t,e,n,i,o){if(e&&e.FullScreen&&o===70){i.preventDefault();e.FullScreen.toggle()}},"beforeClose.fb":function(t,e){if(e&&e.FullScreen&&e.$refs.container.hasClass("fancybox-is-fullscreen")){i.exit()}}})})(document,jQuery);(function(t,e){"use strict";var n="fancybox-thumbs",i=n+"-active";e.fancybox.defaults=e.extend(!0,{btnTpl:{thumbs:'"},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"y"}},e.fancybox.defaults);var o=function(t){this.init(t)};e.extend(o.prototype,{$button:null,$grid:null,$list:null,isVisible:!1,isActive:!1,init:function(t){var e=this,n=t.group,i=0;e.instance=t;e.opts=n[t.currIndex].opts.thumbs;t.Thumbs=e;e.$button=t.$refs.toolbar.find("[data-fancybox-thumbs]");for(var o=0,a=n.length;o1){break}}if(i>1&&!!e.opts){e.$button.removeAttr("style").on("click",function(){e.toggle()});e.isActive=!0}else{e.$button.hide()}},create:function(){var t=this,i=t.instance,o=t.opts.parentEl,a=[],s;if(!t.$grid){t.$grid=e('
    ').appendTo(i.$refs.container.find(o).addBack().filter(o));t.$grid.on("click","a",function(){i.jumpTo(e(this).attr("data-index"))})}if(!t.$list){t.$list=e('
    ').appendTo(t.$grid)}e.each(i.group,function(t,e){s=e.thumb;if(!s&&e.type==="image"){s=e.src}a.push('")});t.$list[0].innerHTML=a.join("");if(t.opts.axis==="x"){t.$list.width(parseInt(t.$grid.css("padding-right"),10)+i.group.length*t.$list.children().eq(0).outerWidth(!0))}},focus:function(t){var e=this,n=e.$list,o=e.$grid,a,s;if(!e.instance.current){return}a=n.children().removeClass(i).filter('[data-index="'+e.instance.current.index+'"]').addClass(i);s=a.position();if(e.opts.axis==="y"&&(s.top<0||s.top>n.height()-a.outerHeight())){n.stop().animate({scrollTop:n.scrollTop()+s.top},t)}else if(e.opts.axis==="x"&&(s.lefto.scrollLeft()+(o.width()-a.outerWidth()))){n.parent().stop().animate({scrollLeft:s.left},t)}},update:function(){var t=this;t.instance.$refs.container.toggleClass("fancybox-show-thumbs",this.isVisible);if(t.isVisible){if(!t.$grid){t.create()}t.instance.trigger("onThumbsShow");t.focus(0)}else if(t.$grid){t.instance.trigger("onThumbsHide")}t.instance.update()},hide:function(){this.isVisible=!1;this.update()},show:function(){this.isVisible=!0;this.update()},toggle:function(){this.isVisible=!this.isVisible;this.update()}});e(t).on({"onInit.fb":function(t,e){var n;if(e&&!e.Thumbs){n=new o(e);if(n.isActive&&n.opts.autoStart===!0){n.show()}}},"beforeShow.fb":function(t,e,n,i){var o=e&&e.Thumbs;if(o&&o.isVisible){o.focus(i?0:250)}},"afterKeydown.fb":function(t,e,n,i,o){var a=e&&e.Thumbs;if(a&&a.isActive&&o===71){i.preventDefault();a.toggle()}},"beforeClose.fb":function(t,e){var n=e&&e.Thumbs;if(n&&n.isVisible&&n.opts.hideOnClose!==!1){n.$grid.hide()}}})})(document,jQuery);(function(t,e){"use strict";e.extend(!0,e.fancybox.defaults,{btnTpl:{share:'"},share:{url:function(t,e){return(!t.currentHash&&!(e.type==="inline"||e.type==="html")?e.origSrc||e.src:!1)||window.location},tpl:'"}});function n(t){var e={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};return String(t).replace(/[&<>"'`=\/]/g,function(t){return e[t]})}e(t).on("click","[data-fancybox-share]",function(){var t=e.fancybox.getInstance(),i=t.current||null,o,a;if(!i){return}if(e.type(i.opts.share.url)==="function"){o=i.opts.share.url.apply(i,[t,i])}a=i.opts.share.tpl.replace(/\{\{media\}\}/g,i.type==="image"?encodeURIComponent(i.src):"").replace(/\{\{url\}\}/g,encodeURIComponent(o)).replace(/\{\{url_raw\}\}/g,n(o)).replace(/\{\{descr\}\}/g,t.$caption?encodeURIComponent(t.$caption.text()):"");e.fancybox.open({src:t.translate(t,a),type:"html",opts:{touch:!1,animationEffect:!1,afterLoad:function(e,n){t.$refs.container.one("beforeClose.fb",function(){e.close(null,0)});n.$content.find(".fancybox-share__button").click(function(){window.open(this.href,"Share","width=550, height=450");return!1})},mobile:{autoFocus:!1}}})})})(document,jQuery);(function(t,e,n){"use strict";if(!n.escapeSelector){n.escapeSelector=function(t){var e=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;var n=function(t,e){if(e){if(t==="\0"){return"�"}return t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" "}return"\\"+t};return(t+"").replace(e,n)}}function i(){var e=t.location.hash.substr(1),n=e.split("-"),i=n.length>1&&/^\+?\d+$/.test(n[n.length-1])?parseInt(n.pop(-1),10)||1:1,o=n.join("-");return{hash:e,index:i<1?1:i,gallery:o}}function o(t){if(t.gallery!==""){n("[data-fancybox='"+n.escapeSelector(t.gallery)+"']").eq(t.index-1).focus().trigger("click.fb-start")}}function a(t){var e,n;if(!t){return!1}e=t.current?t.current.opts:t.opts;n=e.hash||(e.$orig?e.$orig.data("fancybox")||e.$orig.data("fancybox-trigger"):"");return n===""?false:n}n(function(){if(n.fancybox.defaults.hash===!1){return}n(e).on({"onInit.fb":function(t,e){var n,o;if(e.group[e.currIndex].opts.hash===!1){return}n=i();o=a(e);if(o&&n.gallery&&o==n.gallery){e.currIndex=n.index-1}},"beforeShow.fb":function(n,i,o,s){var r;if(!o||o.opts.hash===!1){return}r=a(i);if(!r){return}i.currentHash=r+(i.group.length>1?"-"+(o.index+1):"");if(t.location.hash==="#"+i.currentHash){return}if(s&&!i.origHash){i.origHash=t.location.hash}if(i.hashTimer){clearTimeout(i.hashTimer)}i.hashTimer=setTimeout(function(){if("replaceState"in t.history){t.history[s?"pushState":"replaceState"]({},e.title,t.location.pathname+t.location.search+"#"+i.currentHash);if(s){i.hasCreatedHistory=!0}}else{t.location.hash=i.currentHash}i.hashTimer=null},300)},"beforeClose.fb":function(n,i,o){if(o.opts.hash===!1){return}clearTimeout(i.hashTimer);if(i.currentHash&&i.hasCreatedHistory){t.history.back()}else if(i.currentHash){if("replaceState"in t.history){t.history.replaceState({},e.title,t.location.pathname+t.location.search+(i.origHash||""))}else{t.location.hash=i.origHash}}i.currentHash=null}});n(t).on("hashchange.fb",function(){var t=i(),e=null;n.each(n(".fancybox-container").get().reverse(),function(t,i){var o=n(i).data("FancyBox");if(o&&o.currentHash){e=o;return!1}});if(e){if(e.currentHash!==t.gallery+"-"+t.index&&!(t.index===1&&e.currentHash==t.gallery)){e.currentHash=null;e.close()}}else if(t.gallery!==""){o(t)}});setTimeout(function(){if(!n.fancybox.getInstance()){o(i())}},50)})})(window,document,jQuery);(function(t,e){"use strict";var n=(new Date).getTime();e(t).on({"onInit.fb":function(t,e,i){e.$refs.stage.on("mousewheel DOMMouseScroll wheel MozMousePixelScroll",function(t){var i=e.current,o=(new Date).getTime();if(e.group.length<2||i.opts.wheel===!1||i.opts.wheel==="auto"&&i.type!=="image"){return}t.preventDefault();t.stopPropagation();if(i.$slide.hasClass("fancybox-animated")){return}t=t.originalEvent||t;if(o-n<250){return}n=o;e[(-t.deltaY||-t.deltaX||t.wheelDelta||-t.detail)<0?"next":"previous"]()})}})})(document,jQuery);var lbData={"ajaxUrl":"https:\/\/www.kimp.io\/wp-admin\/admin-ajax.php","name":"fancybox","lightbox":"data-fancybox","title":"data-caption"};/*! * WordPress Lightbox Plugin * Copyright 2015 - 2018 Stefan Hüsges * MIT License * https://github.com/tronsha/wp-lightbox-plugin */ jQuery(document).ready(function(){if(1===parseInt(lbData.gallery)){jQuery(".gallery").each(function(){var t=jQuery(this);var a=t.attr("id");t.find(".gallery-icon a").each(function(){if(-1===jQuery(this).attr("href").indexOf("attachment_id")){jQuery(this).attr(lbData.lightbox,a)}});if("colorbox"===lbData.name){jQuery("