PageSourceSearch

https://granta.com/wp-content/themes/granta/build/control.min.js?ver=1787808371

js granta.com collected 2026-09-24 08:38:36 UTC 114,961 bytes, 1 lines download raw bytes

1function getParameterByName(e,t){t=t||window.location.href,e=e.replace(/[\[\]]/g,"\\$&");e=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return e?e[2]?decodeURIComponent(e[2].replace(/\+/g," ")):"":null}((e,t)=>{"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("jquery")):"function"==typeof define&&define.amd?define(["exports","jquery"],t):t((e=e||self).bootstrap={},e.jQuery)})(this,function(e,d){function j(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function s(e,t,n){t&&j(e.prototype,t),n&&j(e,n)}function a(i){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{},t=Object.keys(o);(t="function"==typeof Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(o).filter(function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})):t).forEach(function(e){var t,n;t=i,n=o[e=e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n})}return i}d=d&&d.hasOwnProperty("default")?d.default:d;var F="transitionend";function R(e){var t=this,n=!1;return d(this).one(u.TRANSITION_END,function(){n=!0}),setTimeout(function(){n||u.triggerTransitionEnd(t)},e),this}for(var u={TRANSITION_END:"bsTransitionEnd",getUID:function(e){for(;e+=~~(1e6*Math.random()),document.getElementById(e););return e},getSelectorFromElement:function(e){var t=e.getAttribute("data-target");t&&"#"!==t||(t=(e=e.getAttribute("href"))&&"#"!==e?e.trim():"");try{return document.querySelector(t)?t:null}catch(e){return null}},getTransitionDurationFromElement:function(e){var t,n,i;return e&&(t=d(e).css("transition-duration"),e=d(e).css("transition-delay"),n=parseFloat(t),i=parseFloat(e),n||i)?(t=t.split(",")[0],e=e.split(",")[0],1e3*(parseFloat(t)+parseFloat(e))):0},reflow:function(e){return e.offsetHeight},triggerTransitionEnd:function(e){d(e).trigger(F)},supportsTransitionEnd:function(){return Boolean(F)},isElement:function(e){return(e[0]||e).nodeType},typeCheckConfig:function(e,t,n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var o=n[i],r=t[i],r=r&&u.isElement(r)?"element":{}.toString.call(r).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(o).test(r))throw new Error(e.toUpperCase()+': Option "'+i+'" provided type "'+r+'" but expected type "'+o+'".')}},findShadowRoot:function(e){var t;return document.documentElement.attachShadow?"function"==typeof e.getRootNode?(t=e.getRootNode())instanceof ShadowRoot?t:null:e instanceof ShadowRoot?e:e.parentNode?u.findShadowRoot(e.parentNode):null:null}},M=(d.fn.emulateTransitionEnd=R,d.event.special[u.TRANSITION_END]={bindType:F,delegateType:F,handle:function(e){if(d(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}},"alert"),B="bs.alert",t="."+B,W=d.fn[M],U={CLOSE:"close"+t,CLOSED:"closed"+t,CLICK_DATA_API:"click"+t+".data-api"},q="alert",K="fade",Q="show",n=(()=>{function i(e){this._element=e}var e=i.prototype;return e.close=function(e){var t=this._element;e&&(t=this._getRootElement(e)),this._triggerCloseEvent(t).isDefaultPrevented()||this._removeElement(t)},e.dispose=function(){d.removeData(this._element,B),this._element=null},e._getRootElement=function(e){var t=u.getSelectorFromElement(e),n=!1;return n=(n=t?document.querySelector(t):n)||d(e).closest("."+q)[0]},e._triggerCloseEvent=function(e){var t=d.Event(U.CLOSE);return d(e).trigger(t),t},e._removeElement=function(t){var e,n=this;d(t).removeClass(Q),d(t).hasClass(K)?(e=u.getTransitionDurationFromElement(t),d(t).one(u.TRANSITION_END,function(e){return n._destroyElement(t,e)}).emulateTransitionEnd(e)):this._destroyElement(t)},e._destroyElement=function(e){d(e).detach().trigger(U.CLOSED).remove()},i._jQueryInterface=function(n){return this.each(function(){var e=d(this),t=e.data(B);t||(t=new i(this),e.data(B,t)),"close"===n&&t[n](this)})},i._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},s(i,null,[{key:"VERSION",get:function(){return"4.3.1"}}]),i})(),Y=(d(document).on(U.CLICK_DATA_API,'[data-dismiss="alert"]',n._handleDismiss(new n)),d.fn[M]=n._jQueryInterface,d.fn[M].Constructor=n,d.fn[M].noConflict=function(){return d.fn[M]=W,n._jQueryInterface},"button"),V="bs.button",t="."+V,i=".data-api",z=d.fn[Y],X="active",G="btn",$="focus",o='[data-toggle^="button"]',J='[data-toggle="buttons"]',Z='input
1:not([type="hidden"])',ee=".active",te=".btn",t={CLICK_DATA_API:"click"+t+i,FOCUS_BLUR_DATA_API:"focus"+t+i+" blur"+t+i},ne=(()=>{function n(e){this._element=e}var e=n.prototype;return e.toggle=function(){var e=!0,t=!0,n=d(this._element).closest(J)[0];if(n){var i,o=this._element.querySelector(Z);if(o){if("radio"===o.type&&(o.checked&&this._element.classList.contains(X)?e=!1:(i=n.querySelector(ee))&&d(i).removeClass(X)),e){if(o.hasAttribute("disabled")||n.hasAttribute("disabled")||o.classList.contains("disabled")||n.classList.contains("disabled"))return;o.checked=!this._element.classList.contains(X),d(o).trigger("change")}o.focus(),t=!1}}t&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(X)),e&&d(this._element).toggleClass(X)},e.dispose=function(){d.removeData(this._element,V),this._element=null},n._jQueryInterface=function(t){return this.each(function(){var e=d(this).data(V);e||(e=new n(this),d(this).data(V,e)),"toggle"===t&&e[t]()})},s(n,null,[{key:"VERSION",get:function(){return"4.3.1"}}]),n})(),r=(d(document).on(t.CLICK_DATA_API,o,function(e){e.preventDefault();e=e.target;d(e).hasClass(G)||(e=d(e).closest(te)),ne._jQueryInterface.call(d(e),"toggle")}).on(t.FOCUS_BLUR_DATA_API,o,function(e){var t=d(e.target).closest(te)[0];d(t).toggleClass($,/^focus(in)?$/.test(e.type))}),d.fn[Y]=ne._jQueryInterface,d.fn[Y].Constructor=ne,d.fn[Y].noConflict=function(){return d.fn[Y]=z,ne._jQueryInterface},"carousel"),ie="bs.carousel",l="."+ie,i=".data-api",oe=d.fn[r],re={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},se={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},ae="next",le="prev",ce="left",de="right",f={SLIDE:"slide"+l,SLID:"slid"+l,KEYDOWN:"keydown"+l,MOUSEENTER:"mouseenter"+l,MOUSELEAVE:"mouseleave"+l,TOUCHSTART:"touchstart"+l,TOUCHMOVE:"touchmove"+l,TOUCHEND:"touchend"+l,POINTERDOWN:"pointerdown"+l,POINTERUP:"pointerup"+l,DRAG_START:"dragstart"+l,LOAD_DATA_API:"load"+l+i,CLICK_DATA_API:"click"+l+i},ue="carousel",h="active",fe="slide",he="carousel-item-right",pe="carousel-item-left",me="carousel-item-next",ge="carousel-item-prev",ve="pointer-event",_e=".active",be=".active.carousel-item",ye=".carousel-item",we=".carousel-item img",Ee=".carousel-item-next, .carousel-item-prev",Ce=".carousel-indicators",t="[data-slide], [data-slide-to]",Te='[data-ride="carousel"]',Se={TOUCH:"touch",PEN:"pen"},c=(()=>{function o(e,t){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(t),this._element=e,this._indicatorsElement=this._element.querySelector(Ce),this._touchSupported="ontouchstart"in document.documentElement||0<navigator.maxTouchPoints,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var e=o.prototype;return e.next=function(){this._isSliding||this._slide(ae)},e.nextWhenVisible=function(){!document.hidden&&d(this._element).is(":visible")&&"hidden"!==d(this._element).css("visibility")&&this.next()},e.prev=function(){this._isSliding||this._slide(le)},e.pause=function(e){e||(this._isPaused=!0),this._element.querySelector(Ee)&&(u.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},e.cycle=function(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},e.to=function(e){var t=this,n=(this._activeElement=this._element.querySelector(be),this._getItemIndex(this._activeElement));e>this._items.length-1||e<0||(this._isSliding?d(this._element).one(f.SLID,function(){return t.to(e)}):n===e?(this.pause(),this.cycle()):(n=n<e?ae:le,this._slide(n,this._items[e])))},e.dispose=function(){d(this._element).off(l),d.removeData(this._element,ie),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},e._getConfig=function(e){return e=a({},re,e),u.typeCheckConfig(r,e,se),e},e._handleSwipe=function(){var e=Math.abs(this.touchDeltaX);e<=40||(0<(e=e/this.touchDeltaX)&&this.prev(),e<0&&this.next())},e._addEventListeners=function(){var t=this;this._config.keyboard&&d(this._element).on(f.KEYDOWN,function(e){return t._keydown(e)}),"hover"===this._config.pause&&d(this._element).on(f.MOUSEENTER,function(e){return t.pause(e)}).on(f.MOUSELEAVE,function(e){return t.cycle(e)}),this._config.touch&&this._addTouchEventListeners()},e._addTouchEventListeners=function(){var e,t,n=this;this._touchSupported&&(e=function(e){n._pointerEvent&&Se[e.originalEvent.pointerType.toUpperCase()]?n.touchStartX=e.originalEvent.clientX:n._pointerEvent||(n.touchStartX=e.originalEvent.touches[0].clientX)},t=function(e){n._pointerEvent&&Se[e.originalEvent.pointerType.toUpperCase()]&&(n.touchDeltaX=e.originalEvent.clientX-n.touchStartX),n._handleSwipe(),"hover"===n._config.pause&&(n.pause(),n.touchTimeout&&clearTimeout(n.touchTimeout),n.touchTimeout=setTimeout(function(e){return n.cycle(e)},500+n._config.interval))},d(this._element.querySelectorAll(we)).on(f.DRAG_START,function(e){return e.preventDefault()}),this._pointerEvent?(d(this._element).on(f.POINTERDOWN,e),d(this._element).on(f.POINTERUP,t),this._element.classList.add(ve)):(d(this._element).on(f.TOUCHSTART,e),d(this._element).on(f.TOUCHMOVE,function(e){(e=e).originalEvent.touches&&1<e.originalEvent.touches.length?n.touchDeltaX=0:n.touchDeltaX=e.originalEvent.touches[0].clientX-n.touchStartX}),d(this._element).on(f.TOUCHEND,t)))},e._keydown=function(e){if(!/input|textarea/i.test(e.target.tagName))switch(e.which){case 37:e.preventDefault(),this.prev();break;case 39:e.preventDefault(),this.next()}},e._getItemIndex=function(e){return this._items=e&&e.parentNode?[].slice.call(e.parentNode.querySelectorAll(ye)):[],this._items.indexOf(e)},e._getItemByDirection=function(e,t){var n=e===ae,i=e===le,o=this._getItemIndex(t),r=this._items.length-1;return(i&&0===o||n&&o===r)&&!this._config.wrap?t:-1==(i=(o+(e===le?-1:1))%this._items.length)?this._items[this._items.length-1]:this._items[i]},e._triggerSlideEvent=function(e,t){var n=this._getItemIndex(e),i=this._getItemIndex(this._element.querySelector(be)),e=d.Event(f.SLIDE,{relatedTarget:e,direction:t,from:i,to:n});return d(this._element).trigger(e),e},e._setActiveIndicatorElement=function(e){var t;this._indicatorsElement&&(t=[].slice.call(this._indicatorsElement.querySelectorAll(_e)),d(t).removeClass(h),t=this._indicatorsElement.children[this._getItemIndex(e)])&&d(t).addClass(h)},e._slide=function(e,t){var n,i,o,r=this,s=this._element.querySelector(be),a=this._getItemIndex(s),l=t||s&&this._getItemByDirection(e,s),t=this._getItemIndex(l),c=Boolean(this._interval),e=e===ae?(n=pe,i=me,ce):(n=he,i=ge,de);l&&d(l).hasClass(h)?this._isSliding=!1:this._triggerSlideEvent(l,e).isDefaultPrevented()||s&&l&&(this._isSliding=!0,c&&this.pause(),this._setActiveIndicatorElement(l),o=d.Event(f.SLID,{relatedTarget:l,direction:e,from:a,to:t}),d(this._element).hasClass(fe)?(d(l).addClass(i),u.reflow(l),d(s).addClass(n),d(l).addClass(n),(e=parseInt(l.getAttribute("data-interval"),10))?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=e):this._config.interval=this._config.defaultInterval||this._config.interval,a=u.getTransitionDurationFromElement(s),d(s).one(u.TRANSITION_END,function(){d(l).removeClass(n+" "+i).addClass(h),d(s).removeClass(h+" "+i+" "+n),r._isSliding=!1,setTimeout(function(){return d(r._element).trigger(o)},0)}).emulateTransitionEnd(a)):(d(s).removeClass(h),d(l).addClass(h),this._isSliding=!1,d(this._element).trigger(o)),c)&&this.cycle()},o._jQueryInterface=function(i){return this.each(function(){var e=d(this).data(ie),t=a({},re,d(this).data()),n=("object"==typeof i&&(t=a({},t,i)),"string"==typeof i?i:t.slide);
1if(e||(e=new o(this,t),d(this).data(ie,e)),"number"==typeof i)e.to(i);else if("string"==typeof n){if(void 0===e[n])throw new TypeError('No method named "'+n+'"');e[n]()}else t.interval&&t.ride&&(e.pause(),e.cycle())})},o._dataApiClickHandler=function(e){var t,n,i=u.getSelectorFromElement(this);i&&(i=d(i)[0])&&d(i).hasClass(ue)&&(t=a({},d(i).data(),d(this).data()),(n=this.getAttribute("data-slide-to"))&&(t.interval=!1),o._jQueryInterface.call(d(i),t),n&&d(i).data(ie).to(n),e.preventDefault())},s(o,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return re}}]),o})(),p=(d(document).on(f.CLICK_DATA_API,t,c._dataApiClickHandler),d(window).on(f.LOAD_DATA_API,function(){for(var e=[].slice.call(document.querySelectorAll(Te)),t=0,n=e.length;t<n;t++){var i=d(e[t]);c._jQueryInterface.call(i,i.data())}}),d.fn[r]=c._jQueryInterface,d.fn[r].Constructor=c,d.fn[r].noConflict=function(){return d.fn[r]=oe,c._jQueryInterface},"collapse"),m="bs.collapse",o="."+m,De=d.fn[p],Ae={toggle:!0,parent:""},Oe={toggle:"boolean",parent:"(string|element)"},Ie={SHOW:"show"+o,SHOWN:"shown"+o,HIDE:"hide"+o,HIDDEN:"hidden"+o,CLICK_DATA_API:"click"+o+".data-api"},g="show",ke="collapse",Ne="collapsing",xe="collapsed",Le="width",Pe="height",He=".show, .collapsing",je='[data-toggle="collapse"]',Fe=(()=>{function r(t,e){this._isTransitioning=!1,this._element=t,this._config=this._getConfig(e),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'));for(var n=[].slice.call(document.querySelectorAll(je)),i=0,o=n.length;i<o;i++){var r=n[i],s=u.getSelectorFromElement(r),a=[].slice.call(document.querySelectorAll(s)).filter(function(e){return e===t});null!==s&&0<a.length&&(this._selector=s,this._triggerArray.push(r))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var e=r.prototype;return e.toggle=function(){d(this._element).hasClass(g)?this.hide():this.show()},e.show=function(){var e,t,n,i,o=this;this._isTransitioning||d(this._element).hasClass(g)||(e=this._parent&&0===(e=[].slice.call(this._parent.querySelectorAll(He)).filter(function(e){return"string"==typeof o._config.parent?e.getAttribute("data-parent")===o._config.parent:e.classList.contains(ke)})).length?null:e)&&(i=d(e).not(this._selector).data(m))&&i._isTransitioning||(n=d.Event(Ie.SHOW),d(this._element).trigger(n),n.isDefaultPrevented())||(e&&(r._jQueryInterface.call(d(e).not(this._selector),"hide"),i||d(e).data(m,null)),t=this._getDimension(),d(this._element).removeClass(ke).addClass(Ne),this._element.style[t]=0,this._triggerArray.length&&d(this._triggerArray).removeClass(xe).attr("aria-expanded",!0),this.setTransitioning(!0),n="scroll"+(t[0].toUpperCase()+t.slice(1)),i=u.getTransitionDurationFromElement(this._element),d(this._element).one(u.TRANSITION_END,function(){d(o._element).removeClass(Ne).addClass(ke).addClass(g),o._element.style[t]="",o.setTransitioning(!1),d(o._element).trigger(Ie.SHOWN)}).emulateTransitionEnd(i),this._element.style[t]=this._element[n]+"px")},e.hide=function(){var e=this;if(!this._isTransitioning&&d(this._element).hasClass(g)){var t=d.Event(Ie.HIDE);if(d(this._element).trigger(t),!t.isDefaultPrevented()){var t=this._getDimension(),n=(this._element.style[t]=this._element.getBoundingClientRect()[t]+"px",u.reflow(this._element),d(this._element).addClass(Ne).removeClass(ke).removeClass(g),this._triggerArray.length);if(0<n)for(var i=0;i<n;i++){var o=this._triggerArray[i],r=u.getSelectorFromElement(o);null===r||d([].slice.call(document.querySelectorAll(r))).hasClass(g)||d(o).addClass(xe).attr("aria-expanded",!1)}this.setTransitioning(!0);this._element.style[t]="";t=u.getTransitionDurationFromElement(this._element);d(this._element).one(u.TRANSITION_END,function(){e.setTransitioning(!1),d(e._element).removeClass(Ne).addClass(ke).trigger(Ie.HIDDEN)}).emulateTransitionEnd(t)}}},e.setTransitioning=function(e){this._isTransitioning=e},e.dispose=function(){d.removeData(this._element,m),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},e._getConfig=function(e){return(e=a({},Ae,e)).toggle=Boolean(e.toggle),u.typeCheckConfig(p,e,Oe),e},e._getDimension=function(){return d(this._element).hasClass(Le)?Le:Pe},e._getParent=function(){var e,n=this,t=(u.isElement(this._config.parent)?(e=this._config.parent,void 0!==this._config.parent.jquery&&(e=this._config.parent[0])):e=document.querySelector(this._config.parent),'[data-toggle="collapse"][data-parent="'+this._config.parent+'"]'),t=[].slice.call(e.querySelectorAll(t));return d(t).each(function(e,t){n._addAriaAndCollapsedClass(r._getTargetFromElement(t),[t])}),e},e._addAriaAndCollapsedClass=function(e,t){e=d(e).hasClass(g);t.length&&d(t).toggleClass(xe,!e).attr("aria-expanded",e)},r._getTargetFromElement=function(e){e=u.getSelectorFromElement(e);return e?document.querySelector(e):null},r._jQueryInterface=function(i){return this.each(function(){var e=d(this),t=e.data(m),n=a({},Ae,e.data(),"object"==typeof i&&i?i:{});if(!t&&n.toggle&&/show|hide/.test(i)&&(n.toggle=!1),t||(t=new r(this,n),e.data(m,t)),"string"==typeof i){if(void 0===t[i])throw new TypeError('No method n
1amed "'+i+'"');t[i]()}})},s(r,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return Ae}}]),r})(),Re=(d(document).on(Ie.CLICK_DATA_API,je,function(e){"A"===e.currentTarget.tagName&&e.preventDefault();var n=d(this),e=u.getSelectorFromElement(this),e=[].slice.call(document.querySelectorAll(e));d(e).each(function(){var e=d(this),t=e.data(m)?"toggle":n.data();Fe._jQueryInterface.call(e,t)})}),d.fn[p]=Fe._jQueryInterface,d.fn[p].Constructor=Fe,d.fn[p].noConflict=function(){return d.fn[p]=De,Fe._jQueryInterface},"undefined"!=typeof window&&"undefined"!=typeof document),Me=["Edge","Trident","Firefox"],Be=0,We=0;We<Me.length;We+=1)if(Re&&0<=navigator.userAgent.indexOf(Me[We])){Be=1;break}var Ue=Re&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},Be))}};function qe(e){return e&&"[object Function]"==={}.toString.call(e)}function v(e,t){return 1!==e.nodeType?[]:(e=e.ownerDocument.defaultView.getComputedStyle(e,null),t?e[t]:e)}function Ke(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function Qe(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=v(e),n=t.overflow;return/(auto|scroll|overlay)/.test(n+t.overflowY+t.overflowX)?e:Qe(Ke(e))}var Ye=Re&&!(!window.MSInputMethodContext||!document.documentMode),Ve=Re&&/MSIE 10/.test(navigator.userAgent);function _(e){return 11===e?Ye:10!==e&&Ye||Ve}function b(e){if(!e)return document.documentElement;for(var t=_(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===v(n,"position")?b(n):n:(e?e.ownerDocument:document).documentElement}function ze(e){return null!==e.parentNode?ze(e.parentNode):e}function Xe(e,t){var n,i,o;return e&&e.nodeType&&t&&t.nodeType?(i=(o=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING)?e:t,o=o?t:e,(n=document.createRange()).setStart(i,0),n.setEnd(o,0),e!==(n=n.commonAncestorContainer)&&t!==n||i.contains(o)?"BODY"===(o=(i=n).nodeName)||"HTML"!==o&&b(i.firstElementChild)!==i?b(n):n:(o=ze(e)).host?Xe(o.host,t):Xe(e,ze(t).host)):document.documentElement}function y(e,t){var t="top"===(1<arguments.length&&void 0!==t?t:"top")?"scrollTop":"scrollLeft",n=e.nodeName;return("BODY"===n||"HTML"===n?(n=e.ownerDocument.documentElement,e.ownerDocument.scrollingElement||n):e)[t]}function Ge(e,t){var t="x"===t?"Left":"Top",n="Left"==t?"Right":"Bottom";return parseFloat(e["border"+t+"Width"],10)+parseFloat(e["border"+n+"Width"],10)}function $e(e,t,n,i){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],_(10)?parseInt(n["offset"+e])+parseInt(i["margin"+("Height"===e?"Top":"Left")])+parseInt(i["margin"+("Height"===e?"Bottom":"Right")]):0)}function Je(e){var t=e.body,e=e.documentElement,n=_(10)&&getComputedStyle(e);return{height:$e("Height",t,e,n),width:$e("Width",t,e,n)}}i=function(e,t,n){return t&&Ze(e.prototype,t),n&&Ze(e,n),e};function Ze(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e};function C(e){return E({},e,{right:e.left+e.width,bottom:e.top+e.height})}function et(e){var t={};try{_(10)?(t=e.getBoundingClientRect(),n=y(e,"top"),i=y(e,"left"),t.top+=n,t.left+=i,t.bottom+=n,t.right+=i):t=e.getBoundingClientRect()}catch(e){}var n={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i="HTML"===e.nodeName?Je(e.ownerDocument):{},t=i.width||e.clientWidth||n.right-n.left,i=i.height||e.clientHeight||n.bottom-n.top,t=e.offsetWidth-t,i=e.offsetHeight-i;return(t||i)&&(t-=Ge(e=v(e),"x"),i-=Ge(e,"y"),n.width-=t,n.height-=i),C(n)}function tt(e,t,n){var n=2<arguments.length&&void 0!==n&&n,i=_(10),o="HTML"===t.nodeName,r=et(e),s=et(t),e=Qe(e),a=v(t),l=parseFloat(a.borderTopWidth,10),c=parseFloat(a.borderLeftWidth,10),s=(n&&o&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0)),C({top:r.top-s.top-l,left:r.left-s.left-c,width:r.width,height:r.height}));
1return s.marginTop=0,s.marginLeft=0,!i&&o&&(r=parseFloat(a.marginTop,10),o=parseFloat(a.marginLeft,10),s.top-=l-r,s.bottom-=l-r,s.left-=c-o,s.right-=c-o,s.marginTop=r,s.marginLeft=o),s=(i&&!n?t.contains(e):t===e&&"BODY"!==e.nodeName)?function(e,t,n){var n=2<arguments.length&&void 0!==n&&n,i=y(t,"top"),t=y(t,"left"),n=n?-1:1;return e.top+=i*n,e.bottom+=i*n,e.left+=t*n,e.right+=t*n,e}(s,t):s}function nt(e){if(!e||!e.parentElement||_())return document.documentElement;for(var t=e.parentElement;t&&"none"===v(t,"transform");)t=t.parentElement;return t||document.documentElement}function it(e,t,n,i,o){var r,o=4<arguments.length&&void 0!==o&&o,s={top:0,left:0},a=o?nt(e):Xe(e,t),a=("viewport"===i?s=function(e,t){var t=1<arguments.length&&void 0!==t&&t,n=e.ownerDocument.documentElement,e=tt(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),r=t?0:y(n),t=t?0:y(n,"left");return C({top:r-e.top+e.marginTop,left:t-e.left+e.marginLeft,width:i,height:o})}(a,o):(r=void 0,"scrollParent"===i?"BODY"===(r=Qe(Ke(t))).nodeName&&(r=e.ownerDocument.documentElement):r="window"===i?e.ownerDocument.documentElement:i,t=tt(r,a,o),"HTML"!==r.nodeName||function e(t){var n=t.nodeName;return"BODY"!==n&&"HTML"!==n&&("fixed"===v(t,"position")||!!(n=Ke(t))&&e(n))}(a)?s=t:(o=(i=Je(e.ownerDocument)).height,r=i.width,s.top+=t.top-t.marginTop,s.bottom=o+t.top,s.left+=t.left-t.marginLeft,s.right=r+t.left)),"number"==typeof(n=n||0));return s.left+=a?n:n.left||0,s.top+=a?n:n.top||0,s.right-=a?n:n.right||0,s.bottom-=a?n:n.bottom||0,s}function ot(e,t,n,i,o,r){var s,r=5<arguments.length&&void 0!==r?r:0;return-1===e.indexOf("auto")?e:(i=it(n,i,r,o),s={top:{width:i.width,height:t.top-i.top},right:{width:i.right-t.right,height:i.height},bottom:{width:i.width,height:i.bottom-t.bottom},left:{width:t.left-i.left,height:i.height}},(0<(o=(r=Object.keys(s).map(function(e){return E({key:e},s[e],{area:(e=s[e]).width*e.height})}).sort(function(e,t){return t.area-e.area})).filter(function(e){return e.width>=n.clientWidth&&e.height>=n.clientHeight})).length?o:r)[0].key+((t=e.split("-")[1])?"-"+t:""))}function rt(e,t,n,i){i=3<arguments.length&&void 0!==i?i:null;return tt(n,i?nt(t):Xe(t,n),i)}function st(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),t=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+t,height:e.offsetHeight+n}}function at(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function lt(e,t,n){n=n.split("-")[0];var e=st(e),i={width:e.width,height:e.height},o=-1!==["right","left"].indexOf(n),r=o?"top":"left",s=o?"left":"top",a=o?"height":"width",o=o?"width":"height";return i[r]=t[r]+t[a]/2-e[a]/2,i[s]=n===s?t[s]-e[o]:t[at(s)],i}function ct(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function dt(e,n,t){var i,o;return(void 0===t?e:e.slice(0,(e=e,i="name",o=t,Array.prototype.findIndex?e.findIndex(function(e){return e[i]===o}):(t=ct(e,function(e){return e[i]===o}),e.indexOf(t))))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var t=e.function||e.fn;e.enabled&&qe(t)&&(n.offsets.popper=C(n.offsets.popper),n.offsets.reference=C(n.offsets.reference),n=t(n,e))}),n}function ut(e,n){return e.some(function(e){var t=e.name;return e.enabled&&t===n})}function ft(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),i=0;i<t.length;i++){var o=t[i],o=o?""+o+n:e;if(void 0!==document.body.style[o])return o}return null}function ht(e){e=e.ownerDocument;return e?e.defaultView:window}function pt(e,t,n,i){n.updateBound=i,ht(e).addEventListener("resize",n.updateBound,{passive:!0});i=Qe(e);return function e(t,n,i,o){var r="BODY"===t.nodeName,t=r?t.ownerDocument.defaultView:t;t.addEventListener(n,i,{passive:!0}),r||e(Qe(t.parentNode),n,i,o),o.push(t)}(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function mt(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,ht(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEac
1h(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function gt(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function vt(n,i){Object.keys(i).forEach(function(e){var t="";-1!==["width","height","top","right","bottom","left"].indexOf(e)&&gt(i[e])&&(t="px"),n.style[e]=i[e]+t})}function _t(e,t){function n(e){return e}var i=e.offsets,o=i.popper,r=Math.round,s=Math.floor,i=r(i.reference.width),a=r(o.width),l=-1!==["left","right"].indexOf(e.placement),e=-1!==e.placement.indexOf("-"),l=t?l||e||i%2==a%2?r:s:n,s=t?r:n;return{left:l(i%2==1&&a%2==1&&!e&&t?o.left-1:o.left),top:s(o.top),bottom:s(o.bottom),right:l(o.right)}}var bt=Re&&/Firefox/i.test(navigator.userAgent);function yt(e,t,n){var i,o=ct(e,function(e){return e.name===t}),e=!!o&&e.some(function(e){return e.name===n&&e.enabled&&e.order<o.order});return e||(i="`"+t+"`",console.warn("`"+n+"`"+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")),e}var t=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],wt=t.slice(3);function Et(e,t){t=1<arguments.length&&void 0!==t&&t,e=wt.indexOf(e),e=wt.slice(e+1).concat(wt.slice(0,e));return t?e.reverse():e}var Ct="flip",Tt="clockwise",St="counterclockwise";function Dt(e,a,l,t){var o=[0,0],i=-1!==["right","left"].indexOf(t),t=e.split(/(\+|\-)/).map(function(e){return e.trim()}),e=t.indexOf(ct(t,function(e){return-1!==e.search(/,|\s/)})),n=(t[e]&&-1===t[e].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead."),/\s*,\s*|\s+/);return(-1!==e?[t.slice(0,e).concat([t[e].split(n)[0]]),[t[e].split(n)[1]].concat(t.slice(e+1))]:[t]).map(function(e,t){var s=(1===t?!i:i)?"height":"width",n=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,n=!0,e):n?(e[e.length-1]+=t,n=!1,e):e.concat(t)},[]).map(function(e){return t=s,n=a,i=l,o=+(r=(e=e).match(/((?:\-|\+)?\d*\.?\d*)(.*)/))[1],r=r[2],o?0===r.indexOf("%")?C("%p"===r?n:i)[t]/100*o:"vh"===r||"vw"===r?("vh"===r?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o:o:e;var t,n,i,o,r})}).forEach(function(n,i){n.forEach(function(e,t){gt(e)&&(o[i]+=e*("-"===n[t-1]?-1:1))})}),o}var o={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t,n,i,o=e.placement,r=o.split("-")[0];return(o=o.split("-")[1])&&(t=(n=e.offsets).reference,n=n.popper,i=(r=-1!==["bottom","top"].indexOf(r))?"width":"height",r={start:w({},r=r?"left":"top",t[r]),end:w({},r,t[r]+t[i]-n[i])},e.offsets.popper=E({},n,r[o])),e}},offset:{order:200,enabled:!0,fn:function(e,t){var t=t.offset,n=e.placement,i=(o=e.offsets).popper,o=o.reference,n=n.split("-")[0],r=void 0,r=gt(+t)?[+t,0]:Dt(t,i,o,n);return"left"===n?(i.top+=r[0],i.left-=r[1]):"right"===n?(i.top+=r[0],i.left+=r[1]):"top"===n?(i.left+=r[0],i.top-=r[1]):"bottom"===n&&(i.left+=r[0],i.top+=r[1]),e.popper=i,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,i){var t=i.boundariesElement||b(e.instance.popper),n=(e.instance.reference===t&&(t=b(t)),ft("transform")),o=e.instance.popper.style,r=o.top,s=o.left,a=o[n],l=(o.top="",o.left="",o[n]="",it(e.instance.popper,e.instance.reference,i.padding,t,e.positionFixed)),t=(o.top=r,o.left=s,o[n]=a,i.boundaries=l,i.priority),c=e.offsets.popper,d={primary:function(e){var t=c[e];return c[e]<l[e]&&!i.escapeWithReference&&(t=Math.max(c[e],l[e])),w({},e,t)},secondary:function(e){var t="right"===e?"left":"top",n=c[t];return c[e]>l[e]&&!i.escapeWithReference&&(n=Math.min(c[t],l[e]-("right"===e?c.width:c.height))),w({},t,n)}};return t.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";c=E({},c,d[t](e))}),e.offsets.popper=c,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=(n=e.offsets).popper,n=n.reference,i=e.placement.split("-")[0],o=Math.floor,r=(i=-1!==["top","bottom"].indexOf(i))?"right":"bottom",s=i?"left":"top",i=i?"width":"height";return t[r]<o(n[s])&&(e.offsets.popper[s]=o(n[s])-t[i]),t[s]>o(n[r])&&(e.offsets.popper[s]=o(n[r])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){if(yt(e.instance.modifiers,"arrow","keepTogether")){t=t.element;if("string"==typeof t){if(!(t=e.instance.popper.querySelector(t)))return e}else if(!e.instance.popper.contains(t))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var n=e.placement.split("-")[0],i=e.offsets,o=i.popper,i=i.reference,n=-1!==["left","right"].indexOf(n),r=n?"height":"width",s=n?"Top":"Left",a=s.toLowerCase(),l=n?"left":"top",n=n?"bottom":"right",c=st(t)[r],n=(i[n]-c<o[a]&&(e.offsets.popper[a]-=o[a]-(i[n]-c)),i[a]+c>o[n]&&(e.offsets.popper[a]+=i[a]+c-o[n]),e.offsets.popper=C(e.offsets.popper),i[a]+i[r]/2-c/2),i=v(e.instance.popper),d=parseFloat(i["margin"+s],10),i=parseFloat(i["border"+s+"Width"],10),s=n-e.offsets.popper[a]-d-i,s=Math.max(Math.min(o[r]-c,s),0);e.arrowElement=t,e.offsets.arrow=(w(n={},a,Math.round(s)),w(n,l,""),n)}return e},element:"[x-arrow]"}
1,flip:{order:600,enabled:!0,fn:function(l,c){if(!(ut(l.instance.modifiers,"inner")||l.flipped&&l.placement===l.originalPlacement)){var d=it(l.instance.popper,l.instance.reference,c.padding,c.boundariesElement,l.positionFixed),u=l.placement.split("-")[0],f=at(u),h=l.placement.split("-")[1]||"",p=[];switch(c.behavior){case Ct:p=[u,f];break;case Tt:p=Et(u);break;case St:p=Et(u,!0);break;default:p=c.behavior}p.forEach(function(e,t){if(u!==e||p.length===t+1)return l;u=l.placement.split("-")[0],f=at(u);var e=l.offsets.popper,n=l.offsets.reference,i=Math.floor,n="left"===u&&i(e.right)>i(n.left)||"right"===u&&i(e.left)<i(n.right)||"top"===u&&i(e.bottom)>i(n.top)||"bottom"===u&&i(e.top)<i(n.bottom),o=i(e.left)<i(d.left),r=i(e.right)>i(d.right),s=i(e.top)<i(d.top),e=i(e.bottom)>i(d.bottom),i="left"===u&&o||"right"===u&&r||"top"===u&&s||"bottom"===u&&e,a=-1!==["top","bottom"].indexOf(u),o=!!c.flipVariations&&(a&&"start"===h&&o||a&&"end"===h&&r||!a&&"start"===h&&s||!a&&"end"===h&&e);(n||i||o)&&(l.flipped=!0,(n||i)&&(u=p[t+1]),o&&(h="end"===(r=h)?"start":"start"===r?"end":r),l.placement=u+(h?"-"+h:""),l.offsets.popper=E({},l.offsets.popper,lt(l.instance.popper,l.offsets.reference,l.placement)),l=dt(l.instance.modifiers,l,"flip"))})}return l},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],i=(o=e.offsets).popper,o=o.reference,r=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[r?"left":"top"]=o[n]-(s?i[r?"width":"height"]:0),e.placement=at(t),e.offsets.popper=C(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(yt(e.instance.modifiers,"hide","preventOverflow")){var t=e.offsets.reference,n=ct(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,i=t.y,o=e.offsets.popper,r=(void 0!==(r=ct(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration)&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!"),void 0!==r?r:t.gpuAcceleration),s=et(t=b(e.instance.popper)),o={position:o.position},a=_t(e,window.devicePixelRatio<2||!bt),n="bottom"===n?"top":"bottom",i="right"===i?"left":"right",l=ft("transform"),c=void 0,d=void 0,d="bottom"==n?"HTML"===t.nodeName?-t.clientHeight+a.bottom:-s.height+a.bottom:a.top,c="right"==i?"HTML"===t.nodeName?-t.clientWidth+a.right:-s.width+a.right:a.left;return r&&l?(o[l]="translate3d("+c+"px, "+d+"px, 0)",o[n]=0,o[i]=0,o.willChange="transform"):(t="right"==i?-1:1,o[n]=d*("bottom"==n?-1:1),o[i]=c*t,o.willChange=n+", "+i),e.attributes=E({},{"x-placement":e.placement},e.attributes),e.styles=E({},o,e.styles),e.arrowStyles=E({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return vt(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach(function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)}),e.arrowElement&&Object.keys(e.arrowStyles).length&&vt(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,i,o){return o=rt(o,t,e,n.positionFixed),o=ot(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding),t.setAttribute("x-placement",o),vt(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},T=(i(At,[{key:"update",value:function(){return function(){var e;this.state.isDestroyed||((e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}}).offsets.reference=rt(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=ot(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=lt(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=dt(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e)))}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,ut(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[ft("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=pt(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return mt.call(this)}}]),At);function At(e,t){var n=this,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},o=this,r=At;if(!(o instanceof r))throw new TypeError("Cannot call a class as a function");this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=Ue(this.update.bind(this)),this.options=E({},At.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=t&&t.jquery?t[0]:t,this.options.modifiers={},Object.keys(E({}
1,At.Defaults.modifiers,i.modifiers)).forEach(function(e){n.options.modifiers[e]=E({},At.Defaults.modifiers[e]||{},i.modifiers?i.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return E({name:e},n.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&qe(e.onLoad)&&e.onLoad(n.reference,n.popper,n.options,e,n.state)}),this.update();o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}T.Utils=("undefined"!=typeof window?window:global).PopperUtils,T.placements=t,T.Defaults=o;var Ot="dropdown",It="bs.dropdown",S="."+It,i=".data-api",kt=d.fn[Ot],Nt=new RegExp("38|40|27"),D={HIDE:"hide"+S,HIDDEN:"hidden"+S,SHOW:"show"+S,SHOWN:"shown"+S,CLICK:"click"+S,CLICK_DATA_API:"click"+S+i,KEYDOWN_DATA_API:"keydown"+S+i,KEYUP_DATA_API:"keyup"+S+i},xt="disabled",A="show",Lt="dropup",Pt="dropright",Ht="dropleft",jt="dropdown-menu-right",Ft="position-static",Rt='[data-toggle="dropdown"]',t=".dropdown form",Mt=".dropdown-menu",Bt=".navbar-nav",Wt=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Ut="top-start",qt="top-end",Kt="bottom-start",Qt="bottom-end",Yt="right-start",Vt="left-start",zt={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic"},Xt={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string"},O=(()=>{function l(e,t){this._element=e,this._popper=null,this._config=this._getConfig(t),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var e=l.prototype;return e.toggle=function(){if(!this._element.disabled&&!d(this._element).hasClass(xt)){var e=l._getParentFromElement(this._element),t=d(this._menu).hasClass(A);if(l._clearMenus(),!t){var t={relatedTarget:this._element},n=d.Event(D.SHOW,t);if(d(e).trigger(n),!n.isDefaultPrevented()){if(!this._inNavbar){if(void 0===T)throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org/)");n=this._element;"parent"===this._config.reference?n=e:u.isElement(this._config.reference)&&(n=this._config.reference,void 0!==this._config.reference.jquery)&&(n=this._config.reference[0]),"scrollParent"!==this._config.boundary&&d(e).addClass(Ft),this._popper=new T(n,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===d(e).closest(Bt).length&&d(document.body).children().on("mouseover",null,d.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),d(this._menu).toggleClass(A),d(e).toggleClass(A).trigger(d.Event(D.SHOWN,t))}}}},e.show=function(){var e,t,n;this._element.disabled||d(this._element).hasClass(xt)||d(this._menu).hasClass(A)||(e={relatedTarget:this._element},t=d.Event(D.SHOW,e),n=l._getParentFromElement(this._element),d(n).trigger(t),t.isDefaultPrevented())||(d(this._menu).toggleClass(A),d(n).toggleClass(A).trigger(d.Event(D.SHOWN,e)))},e.hide=function(){var e,t,n;this._element.disabled||d(this._element).hasClass(xt)||!d(this._menu).hasClass(A)||(e={relatedTarget:this._element},t=d.Event(D.HIDE,e),n=l._getParentFromElement(this._element),d(n).trigger(t),t.isDefaultPrevented())||(d(this._menu).toggleClass(A),d(n).toggleClass(A).trigger(d.Event(D.HIDDEN,e)))},e.dispose=function(){d.removeData(this._element,It),d(this._element).off(S),this._element=null,(this._menu=null)!==this._popper&&(this._popper.destroy(),this._popper=null)},e.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},e._addEventListeners=function(){var t=this;d(this._element).on(D.CLICK,function(e){e.preventDefault(),e.stopPropagation(),t.toggle()})},e._getConfig=function(e){return e=a({},this.constructor.Default,d(this._element).data(),e),u.typeCheckConfig(Ot,e,this.constructor.DefaultType),e},e._getMenuElement=function(){var e;return this._menu||(e=l._getParentFromElement(this._element))&&(this._menu=e.querySelector(Mt)),this._menu},e._getPlacement=function(){var e=d(this._element.parentNode),t=Kt;return e.hasClass(Lt)?(t=Ut,d(this._menu).hasClass(jt)&&(t=qt)):e.hasClass(Pt)?t=Yt:e.hasClass(Ht)?t=Vt:d(this._menu).hasClass(jt)&&(t=Qt),t},e._detectNavbar=function(){return 0<d(this._element).closest(".
1navbar").length},e._getOffset=function(){var t=this,e={};return"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=a({},e.offsets,t._config.offset(e.offsets,t._element)||{}),e}:e.offset=this._config.offset,e},e._getPopperConfig=function(){var e={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(e.modifiers.applyStyle={enabled:!1}),e},l._jQueryInterface=function(t){return this.each(function(){var e=d(this).data(It);if(e||(e=new l(this,"object"==typeof t?t:null),d(this).data(It,e)),"string"==typeof t){if(void 0===e[t])throw new TypeError('No method named "'+t+'"');e[t]()}})},l._clearMenus=function(e){if(!e||3!==e.which&&("keyup"!==e.type||9===e.which))for(var t=[].slice.call(document.querySelectorAll(Rt)),n=0,i=t.length;n<i;n++){var o,r=l._getParentFromElement(t[n]),s=d(t[n]).data(It),a={relatedTarget:t[n]};e&&"click"===e.type&&(a.clickEvent=e),s&&(s=s._menu,!d(r).hasClass(A)||e&&("click"===e.type&&/input|textarea/i.test(e.target.tagName)||"keyup"===e.type&&9===e.which)&&d.contains(r,e.target)||(o=d.Event(D.HIDE,a),d(r).trigger(o),o.isDefaultPrevented())||("ontouchstart"in document.documentElement&&d(document.body).children().off("mouseover",null,d.noop),t[n].setAttribute("aria-expanded","false"),d(s).removeClass(A),d(r).removeClass(A).trigger(d.Event(D.HIDDEN,a))))}},l._getParentFromElement=function(e){var t,n=u.getSelectorFromElement(e);return(t=n?document.querySelector(n):t)||e.parentNode},l._dataApiKeydownHandler=function(e){var t,n,i;(/input|textarea/i.test(e.target.tagName)?32===e.which||27!==e.which&&(40!==e.which&&38!==e.which||d(e.target).closest(Mt).length):!Nt.test(e.which))||(e.preventDefault(),e.stopPropagation(),this.disabled)||d(this).hasClass(xt)||(t=l._getParentFromElement(this),d(t).hasClass(A)&&27!==e.which&&32!==e.which?0!==(n=[].slice.call(t.querySelectorAll(Wt))).length&&(i=n.indexOf(e.target),38===e.which&&0<i&&i--,40===e.which&&i<n.length-1&&i++,n[i=i<0?0:i].focus()):(27===e.which&&(n=t.querySelector(Rt),d(n).trigger("focus")),d(this).trigger("click")))},s(l,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return zt}},{key:"DefaultType",get:function(){return Xt}}]),l})(),Gt=(d(document).on(D.KEYDOWN_DATA_API,Rt,O._dataApiKeydownHandler).on(D.KEYDOWN_DATA_API,Mt,O._dataApiKeydownHandler).on(D.CLICK_DATA_API+" "+D.KEYUP_DATA_API,O._clearMenus).on(D.CLICK_DATA_API,Rt,function(e){e.preventDefault(),e.stopPropagation(),O._jQueryInterface.call(d(this),"toggle")}).on(D.CLICK_DATA_API,t,function(e){e.stopPropagation()}),d.fn[Ot]=O._jQueryInterface,d.fn[Ot].Constructor=O,d.fn[Ot].noConflict=function(){return d.fn[Ot]=kt,O._jQueryInterface},"modal"),$t="bs.modal",I="."+$t,Jt=d.fn[Gt],Zt={backdrop:!0,keyboard:!0,focus:!0,show:!0},en={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},k={HIDE:"hide"+I,HIDDEN:"hidden"+I,SHOW:"show"+I,SHOWN:"shown"+I,FOCUSIN:"focusin"+I,RESIZE:"resize"+I,CLICK_DISMISS:"click.dismiss"+I,KEYDOWN_DISMISS:"keydown.dismiss"+I,MOUSEUP_DISMISS:"mouseup.dismiss"+I,MOUSEDOWN_DISMISS:"mousedown.dismiss"+I,CLICK_DATA_API:"click"+I+".data-api"},tn="modal-dialog-scrollable",nn="modal-scrollbar-measure",on="modal-backdrop",rn="modal-open",sn="fade",an="show",ln=".modal-dialog",cn=".modal-body",o='[data-toggle="modal"]',dn='[data-dismiss="modal"]',un=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",fn=".sticky-top",hn=(()=>{function o(e,t){this._config=this._getConfig(t),this._element=e,this._dialog=e.querySelector(ln),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var e=o.prototype;return e.toggle=function(e){return this._isShown?this.hide():this.show(e)},e.show=function(e){var t,n=this;this._isShown||this._isTransitioning||(d(this._element).hasClass(sn)&&(this._isTransitioning=!0),t=d.Event(k.SHOW,{relatedTarget:e}),d(this._element).trigger(t),this._isShown)||t.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),d(this._element).on(k.CLICK_DISMISS,dn,function(e){return n.hide(e)}),d(this._dialog).on(k.MOUSEDOWN_DISMISS,function(){d(n._element).one(k.MOUSEUP_DISMISS,function(e){d(e.target).is(n._element)&&(n._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return n._showElement(e)}))},e.hide=function(e){var t=this;e&&e.preventDefault(),this._isShown&&!this._isTransitioning&&(e=d.Event(k.HIDE),d(this._element).trigger(e),this._isShown)&&!e.isDefaultPrevented()&&(this._isShown=!1,(e=d(this._element).hasClass(sn))&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),d(document).off(k.FOCUSIN),d(this._element).removeClass(an),d(this._element).off(k.CLICK_DISMISS),d(this._dialog).off(k.MOUSEDOWN_DISMISS),e?(e=u.getTransitionDurationFromElement(this._element),d(this._element).one(u.TRANSITION_END,function(e){return t._hideModal(e)}).emulateTransitionEnd(e)):this._hideModal())},e.dispose=function(){[window,this._element,this._dialog].forEach(function(e){return d(e).off(I)}),d(document).off(k.FOCUSIN),d.removeData(this._element,$t),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null},e.handleUpdate=function(){this._adjustDialog()},e._getConfig=function(e){return e=a({},Zt,e),u.typeCheckConfig(Gt,e,en),e},e._showElement=function(e){function t(){n._config.focus&&n._element.focus(),n._isTransitioning=!1,d(n._element).trigger(o)}var n=this,i=d(this._element).hasClass(sn),o=(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),d(this._dialog).hasClass(tn)?this._dialog.querySelector(cn).scrollTop=0:this._element.scrollTop=0,i&&u.reflow(this._element),d(this._element).addClass(an),this._config.focus&&this._enforceFocus(),d.Event(k.SHOWN,{relatedTarget:e}));i?(e=u.getTransitionDurationFromElement(this._dialog),d(this._dialog).one(u.TRANSITION_END,t).emulateTransitionEnd(e)):t()},e._enforceFocus=function(){var t=this;d(document).off(k.FOCUSIN).on(k.FOCUSIN,function(e){document!==e.target&&t._element!==e.target&&0===d(t._element).has(e.target).length&&t._element.focus()})},e._setEscapeEvent=function(){var t=this;this._isShown&&this._config.keyboard?d(this._element).on(k.KEYDOWN_DISMISS,function(e){27===e.which&&(e.preventDefault(),t.hide())}):this._isShown||d(this._element).off(k.KEYDOWN_DISMISS)},e._setResizeEvent=function(){var t=this;this._isShown?d(window).on(k.RESIZE,function(e){return t.handleUpdate(e)}):d(window).off(k.RESIZE)},e._hideModal=function(){var e=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._isTransitioning=!1,this._showBackdrop(function(){d(document.body).removeClass(rn),e._resetAdjustments(),e._resetScrollbar(),d(e._element).trigger(k.HIDDEN)})},e._removeBackdrop=function(){this._backdrop&&(d(this._backdrop).remove(),this._backdrop=null)},e._showBackdrop=function(e){var t,n=this,i=d(this._element).hasClass(sn)?sn:"";this._isShown&&this._config.backdrop?(this._backdrop=document.createElement("div"),this._backdrop.className=on,i&&this._backdrop.classList.add(i),d(this._backdrop).appendTo(document.body),d(this._element).on(k.CLICK_DISMISS,function(e){n._ignoreBackdropClick?n._ignoreBackdropClick=!1:e.target===e.currentTarget&&("static"===n._config.backdrop?n._element.focus():n.hide())}),i&&u.reflow(this._backdrop),d(this._backdrop).addClass(an),e&&(i?(i=u.getTransitionDurationFromElement(this._backdrop),d(this._backdrop).one(u.TRANSITION_END,e).emulateTransitionEnd(i)):e())):!this._isShown&&this._backdrop?(d(this._backdrop).removeClass(an),i=function(){n._removeBackdrop(),e&&e()},d(this._element).hasClass(sn)?(t=u.getTransitionDurationFromElement(this._backdrop),d(this._backdrop).one(u.TRANSITION_END,i).emulateTransitionEnd(t)):i()):e&&e()},e._adjustDialog=function(){var e=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},e._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},e._checkScrollbar=function(){var e=document.body.getBoundingClientRect();this._isBodyOverflowing=e.left+e.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},e._setScrollbar=function(){var e,t,o=this;this._isBodyOverflowing&&(e=[].slice.call(document.querySelectorAll(un)),t=[].slice.call(document.querySelectorAll(fn)),d(e).each(function(e,t){var n=t.style.paddingRight,i=d(t).css("padding-right");d(t).data("padding-right",n).css("padding-right",parseFloat(i)+o._scrollbarWidth+"px")}),d(t).each(function(e,t){var n=t.style.marginRight,i=d(t).css("margin-right");d(t).data("margin-right",n).css("margin-right",parseFloat(i)-o._scrollbarWidth+"px")}),e=document.body.style.paddingRight,t=d(document.body).css("padding-right"),d(document.body).data("padding-right",e).css("padding-right",parseFloat(t)+this._scrollbarWidth+"px")),d(document.body).addClass(rn)},e._resetScrollbar=function(){var e=[].slice.call(document.querySelectorAll(un)),e=(d(e).each(function(e,t){var n=d(t).data("padding-right");d(t).removeData("padding-right"),t.style.paddingRight=n||""}),[].slice.call(document.querySelectorAll(""+fn))),e=(d(e).each(function(e,t){var n=d(t).data("margin-right");void 0!==n&&d(t).css("margin-right",n).removeData("margin-right")}),d(document.body).data("padding-right"));d(document.body).removeData("padding-right"),document.body.style.paddingRight=e||""},e._getScrollbarWidth=function(){var e=document.createElement("div"),t=(e.className=nn,document.body.appendChild(e),e.getBoundingClientRect().width-e.clientWidth);return document.body.removeChild(e),t},o._jQueryInterface=function(n,i){return this.each(function(){var e=d(this).data($t),t=a({},Zt,d(this).data(),"object"==typeof n&&n?n:{});if(e||(e=new o(this,t),d(this).data($t,e)),"string"==typeof n){if(void 0===e[n])throw new TypeError('No method n
1amed "'+n+'"');e[n](i)}else t.show&&e.show(i)})},s(o,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return Zt}}]),o})(),pn=(d(document).on(k.CLICK_DATA_API,o,function(e){var t,n=this,i=u.getSelectorFromElement(this),i=(i&&(t=document.querySelector(i)),d(t).data($t)?"toggle":a({},d(t).data(),d(this).data())),o=("A"!==this.tagName&&"AREA"!==this.tagName||e.preventDefault(),d(t).one(k.SHOW,function(e){e.isDefaultPrevented()||o.one(k.HIDDEN,function(){d(n).is(":visible")&&n.focus()})}));hn._jQueryInterface.call(d(t),i,this)}),d.fn[Gt]=hn._jQueryInterface,d.fn[Gt].Constructor=hn,d.fn[Gt].noConflict=function(){return d.fn[Gt]=Jt,hn._jQueryInterface},["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),i={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},mn=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,gn=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function vn(e,r,t){if(0===e.length)return e;if(t&&"function"==typeof t)return t(e);for(var t=(new window.DOMParser).parseFromString(e,"text/html"),s=Object.keys(r),a=[].slice.call(t.body.querySelectorAll("*")),n=function(e,t){var n=a[e],e=n.nodeName.toLowerCase();if(-1===s.indexOf(n.nodeName.toLowerCase()))return n.parentNode.removeChild(n),"continue";var i=[].slice.call(n.attributes),o=[].concat(r["*"]||[],r[e]||[]);i.forEach(function(e){((e,t)=>{var n=e.nodeName.toLowerCase();if(-1!==t.indexOf(n))return-1===pn.indexOf(n)||Boolean(e.nodeValue.match(mn)||e.nodeValue.match(gn));for(var i=t.filter(function(e){return e instanceof RegExp}),o=0,r=i.length;o<r;o++)if(n.match(i[o]))return 1})(e,o)||n.removeAttribute(e.nodeName)})},i=0,o=a.length;i<o;i++)n(i);return t.body.innerHTML}var N="tooltip",_n="bs.tooltip",x="."+_n,bn=d.fn[N],yn="bs-tooltip",wn=new RegExp("(^|\\s)"+yn+"\\S+","g"),En=["sanitize","whiteList","sanitizeFn"],Cn={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object"},Tn={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},Sn={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:i},Dn="show",An="out",On={HIDE:"hide"+x,HIDDEN:"hidden"+x,SHOW:"show"+x,SHOWN:"shown"+x,INSERTED:"inserted"+x,CLICK:"click"+x,FOCUSIN:"focusin"+x,FOCUSOUT:"focusout"+x,MOUSEENTER:"mouseenter"+x,MOUSELEAVE:"mouseleave"+x},In="fade",kn="show",Nn=".tooltip-inner",xn=".arrow",Ln="hover",Pn="focus",Hn="click",jn="manual",L=(()=>{function i(e,t){if(void 0===T)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=e,this.config=this._getConfig(t),this.tip=null,this._setListeners()}var e=i.prototype;return e.enable=function(){this._isEnabled=!0},e.disable=function(){this._isEnabled=!1},e.toggleEnabled=function(){this._isEnabled=!this._isEnabled},e.toggle=function(e){var t,n;this._isEnabled&&(e?(t=this.constructor.DATA_KEY,(n=d(e.currentTarget).data(t))||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),d(e.currentTarget).data(t,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)):d(this.getTipElement()).hasClass(kn)?this._leave(null,this):this._enter(null,this))},e.dispose=function(){clearTimeout(this._timeout),d.removeData(this.element,this.constructor.DATA_KEY),d(this.element).off(this.constructor.EVENT_KEY),d(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&d(this.tip).remove(),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},e.show=function(){var t=this;if("none"===d(this.element).css("display"))throw new Error("Please use show on visible elements");var e,n,i=d.Event(this.constructor.Event.SHOW);this.isWithContent()&&this._isEnabled&&(d(this.element).trigger(i),n=u.findShadowRoot(this.element),n=d.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element),!i.isDefaultPrevented())&&n&&(i=this.getTipElement(),n=u.getUID(this.constructor.NAME),i.setAttribute("id",n),this.element.setAttribute("aria-describedby",n),this.setContent(),this.config.animation&&d(i).addClass(In),n="function"==typeof this.config.placement?this.config.placement.call(this,i,this.element):this.config.placement,n=this._getAttachment(n),this.addAttachmentClass(n),e=this._getContainer(),d(i).data(this.constructor.DATA_KEY,this),d.contains(this.element.ownerDocument.documentElement,this.tip)||d(i).appendTo(e),d(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new T(this.element,i,{placement:n,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:xn}
1,preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(e){e.originalPlacement!==e.placement&&t._handlePopperPlacementChange(e)},onUpdate:function(e){return t._handlePopperPlacementChange(e)}}),d(i).addClass(kn),"ontouchstart"in document.documentElement&&d(document.body).children().on("mouseover",null,d.noop),e=function(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,d(t.element).trigger(t.constructor.Event.SHOWN),e===An&&t._leave(null,t)},d(this.tip).hasClass(In)?(n=u.getTransitionDurationFromElement(this.tip),d(this.tip).one(u.TRANSITION_END,e).emulateTransitionEnd(n)):e())},e.hide=function(e){function t(){n._hoverState!==Dn&&i.parentNode&&i.parentNode.removeChild(i),n._cleanTipClass(),n.element.removeAttribute("aria-describedby"),d(n.element).trigger(n.constructor.Event.HIDDEN),null!==n._popper&&n._popper.destroy(),e&&e()}var n=this,i=this.getTipElement(),o=d.Event(this.constructor.Event.HIDE);d(this.element).trigger(o),o.isDefaultPrevented()||(d(i).removeClass(kn),"ontouchstart"in document.documentElement&&d(document.body).children().off("mouseover",null,d.noop),this._activeTrigger[Hn]=!1,this._activeTrigger[Pn]=!1,this._activeTrigger[Ln]=!1,d(this.tip).hasClass(In)?(o=u.getTransitionDurationFromElement(i),d(i).one(u.TRANSITION_END,t).emulateTransitionEnd(o)):t(),this._hoverState="")},e.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},e.isWithContent=function(){return Boolean(this.getTitle())},e.addAttachmentClass=function(e){d(this.getTipElement()).addClass(yn+"-"+e)},e.getTipElement=function(){return this.tip=this.tip||d(this.config.template)[0],this.tip},e.setContent=function(){var e=this.getTipElement();this.setElementContent(d(e.querySelectorAll(Nn)),this.getTitle()),d(e).removeClass(In+" "+kn)},e.setElementContent=function(e,t){"object"==typeof t&&(t.nodeType||t.jquery)?this.config.html?d(t).parent().is(e)||e.empty().append(t):e.text(d(t).text()):this.config.html?(this.config.sanitize&&(t=vn(t,this.config.whiteList,this.config.sanitizeFn)),e.html(t)):e.text(t)},e.getTitle=function(){return this.element.getAttribute("data-original-title")||("function"==typeof this.config.title?this.config.title.call(this.element):this.config.title)},e._getOffset=function(){var t=this,e={};return"function"==typeof this.config.offset?e.fn=function(e){return e.offsets=a({},e.offsets,t.config.offset(e.offsets,t.element)||{}),e}:e.offset=this.config.offset,e},e._getContainer=function(){return!1===this.config.container?document.body:u.isElement(this.config.container)?d(this.config.container):d(document).find(this.config.container)},e._getAttachment=function(e){return Tn[e.toUpperCase()]},e._setListeners=function(){var n=this;this.config.trigger.split(" ").forEach(function(e){var t;"click"===e?d(n.element).on(n.constructor.Event.CLICK,n.config.selector,function(e){return n.toggle(e)}):e!==jn&&(t=e===Ln?n.constructor.Event.MOUSEENTER:n.constructor.Event.FOCUSIN,e=e===Ln?n.constructor.Event.MOUSELEAVE:n.constructor.Event.FOCUSOUT,d(n.element).on(t,n.config.selector,function(e){return n._enter(e)}).on(e,n.config.selector,function(e){return n._leave(e)}))}),d(this.element).closest(".modal").on("hide.bs.modal",function(){n.element&&n.hide()}),this.config.selector?this.config=a({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},e._fixTitle=function(){var e=typeof this.element.getAttribute("data-original-title");!this.element.getAttribute("title")&&"string"==e||(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},e._enter=function(e,t){var n=this.constructor.DATA_KEY;(t=t||d(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),d(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusin"===e.type?Pn:Ln]=!0),d(t.getTipElement()).hasClass(kn)||t._hoverState===Dn?t._hoverState=Dn:(clearTimeout(t._timeout),t._hoverState=Dn,t.config.delay&&t.config.delay.show?t._timeout=setTimeout(function(){t._hoverState===Dn&&t.show()},t.config.delay.show):t.show())},e._leave=function(e,t){var n=this.constructor.DATA_KEY;(t=t||d(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),d(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusout"===e.type?Pn:Ln]=!1),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState=An,t.config.delay&&t.config.delay.hide?t._timeout=setTimeout(function(){t._hoverState===An&&t.hide()},t.config.delay.hide):t.hide())},e._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},e._getConfig=function(e){var t=d(this.element).data();return Object.keys(t).forEach(function(e){-1!==En.indexOf(e)&&delete t[e]}),"number"==typeof(e=a({},this.constructor.Default,t,"object"==typeof e&&e?e:{})).delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),u.typeCheckConfig(N,e,this.constructor.DefaultType),e.sanitize&&(e.template=vn(e.template,e.whiteList,e.sanitizeFn)),e},e._getDelegateConfig=function(){var e={};if(this.config)for(var t in this.config)this.constructor.Default[t]!==this.config[t]&&(e[t]=this.config[t]);return e},e._cleanTipClass=function(){var e=d(this.getTipElement()),t=e.attr("class").match(wn);null!==t&&t.length&&e.removeClass(t.join(""))},e._handlePopperPlacementChange=function(e){var t=e.instance;this.tip=t.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},e._fixTransition=function(){var e=this.getTipElement(),t=this.config.animation;null===e.getAttribute("x-placement")&&(d(e).removeClass(In),this.config.animation=!1,this.hide(),this.show(),this.config.animation=t)},i._jQueryInterface=function(n){return this.each(function(){var e=d(this).data(_n),t="object"==typeof n&&n;if((e||!/dispose|hide/.test(n))&&(e||(e=new i(this,t),d(this).data(_n,e)),"string"==typeof n)){if(void 0===e[n])throw new TypeError('No method n
1amed "'+n+'"');e[n]()}})},s(i,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return Sn}},{key:"NAME",get:function(){return N}},{key:"DATA_KEY",get:function(){return _n}},{key:"Event",get:function(){return On}},{key:"EVENT_KEY",get:function(){return x}},{key:"DefaultType",get:function(){return Cn}}]),i})(),Fn=(d.fn[N]=L._jQueryInterface,d.fn[N].Constructor=L,d.fn[N].noConflict=function(){return d.fn[N]=bn,L._jQueryInterface},"popover"),Rn="bs.popover",P="."+Rn,Mn=d.fn[Fn],Bn="bs-popover",Wn=new RegExp("(^|\\s)"+Bn+"\\S+","g"),Un=a({},L.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),qn=a({},L.DefaultType,{content:"(string|element|function)"}),Kn="fade",Qn="show",Yn=".popover-header",Vn=".popover-body",zn={HIDE:"hide"+P,HIDDEN:"hidden"+P,SHOW:"show"+P,SHOWN:"shown"+P,INSERTED:"inserted"+P,CLICK:"click"+P,FOCUSIN:"focusin"+P,FOCUSOUT:"focusout"+P,MOUSEENTER:"mouseenter"+P,MOUSELEAVE:"mouseleave"+P},Xn=(e=>{var t;function i(){return e.apply(this,arguments)||this}t=e,(n=i).prototype=Object.create(t.prototype),(n.prototype.constructor=n).__proto__=t;var n=i.prototype;return n.isWithContent=function(){return this.getTitle()||this._getContent()},n.addAttachmentClass=function(e){d(this.getTipElement()).addClass(Bn+"-"+e)},n.getTipElement=function(){return this.tip=this.tip||d(this.config.template)[0],this.tip},n.setContent=function(){var e=d(this.getTipElement()),t=(this.setElementContent(e.find(Yn),this.getTitle()),this._getContent());"function"==typeof t&&(t=t.call(this.element)),this.setElementContent(e.find(Vn),t),e.removeClass(Kn+" "+Qn)},n._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},n._cleanTipClass=function(){var e=d(this.getTipElement()),t=e.attr("class").match(Wn);null!==t&&0<t.length&&e.removeClass(t.join(""))},i._jQueryInterface=function(n){return this.each(function(){var e=d(this).data(Rn),t="object"==typeof n?n:null;if((e||!/dispose|hide/.test(n))&&(e||(e=new i(this,t),d(this).data(Rn,e)),"string"==typeof n)){if(void 0===e[n])throw new TypeError('No method named "'+n+'"');e[n]()}})},s(i,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return Un}},{key:"NAME",get:function(){return Fn}},{key:"DATA_KEY",get:function(){return Rn}},{key:"Event",get:function(){return zn}},{key:"EVENT_KEY",get:function(){return P}},{key:"DefaultType",get:function(){return qn}}]),i})(L),H=(d.fn[Fn]=Xn._jQueryInterface,d.fn[Fn].Constructor=Xn,d.fn[Fn].noConflict=function(){return d.fn[Fn]=Mn,Xn._jQueryInterface},"scrollspy"),Gn="bs.scrollspy",$n="."+Gn,Jn=d.fn[H],Zn={offset:10,method:"auto",target:""},ei={offset:"number",method:"string",target:"(string|element)"},ti={ACTIVATE:"activate"+$n,SCROLL:"scroll"+$n,LOAD_DATA_API:"load"+$n+".data-api"},ni="dropdown-item",ii="active",oi='[data-spy="scroll"]',ri=".nav, .list-group",si=".nav-link",ai=".nav-item",li=".list-group-item",ci=".dropdown",di=".dropdown-item",ui=".dropdown-toggle",fi="offset",hi="position",pi=(()=>{function n(e,t){var n=this;this._element=e,this._scrollElement="BODY"===e.tagName?window:e,this._config=this._getConfig(t),this._selector=this._config.target+" "+si+","+this._config.target+" "+li+","+this._config.target+" "+di,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,d(this._scrollElement).on(ti.SCROLL,function(e){return n._process(e)}),this.refresh(),this._process()}var e=n.prototype;return e.refresh=function(){var t=this,e=this._scrollElement===this._scrollElement.window?fi:hi,i="auto"===this._config.method?e:this._config.method,o=i===hi?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map(function(e){var t,e=u.getSelectorFromElement(e);if(t=e?document.querySelector(e):t){var n=t.getBoundingClientRect();if(n.width||n.height)return[d(t)[i]().top+o,e]}return null}).filter(function(e){return e}).sort(function(e,t){return e[0]-t[0]}
1).forEach(function(e){t._offsets.push(e[0]),t._targets.push(e[1])})},e.dispose=function(){d.removeData(this._element,Gn),d(this._scrollElement).off($n),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},e._getConfig=function(e){var t;return"string"!=typeof(e=a({},Zn,"object"==typeof e&&e?e:{})).target&&((t=d(e.target).attr("id"))||(t=u.getUID(H),d(e.target).attr("id",t)),e.target="#"+t),u.typeCheckConfig(H,e,ei),e},e._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},e._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},e._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},e._process=function(){var e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),n=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),n<=e)t=this._targets[this._targets.length-1],this._activeTarget!==t&&this._activate(t);else if(this._activeTarget&&e<this._offsets[0]&&0<this._offsets[0])this._activeTarget=null,this._clear();else for(var i=this._offsets.length;i--;)this._activeTarget!==this._targets[i]&&e>=this._offsets[i]&&(void 0===this._offsets[i+1]||e<this._offsets[i+1])&&this._activate(this._targets[i])},e._activate=function(t){this._activeTarget=t,this._clear();var e=this._selector.split(",").map(function(e){return e+'[data-target="'+t+'"],'+e+'[href="'+t+'"]'}),e=d([].slice.call(document.querySelectorAll(e.join(","))));(e.hasClass(ni)?(e.closest(ci).find(ui).addClass(ii),e):(e.addClass(ii),e.parents(ri).prev(si+", "+li).addClass(ii),e.parents(ri).prev(ai).children(si))).addClass(ii),d(this._scrollElement).trigger(ti.ACTIVATE,{relatedTarget:t})},e._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter(function(e){return e.classList.contains(ii)}).forEach(function(e){return e.classList.remove(ii)})},n._jQueryInterface=function(t){return this.each(function(){var e=d(this).data(Gn);if(e||(e=new n(this,"object"==typeof t&&t),d(this).data(Gn,e)),"string"==typeof t){if(void 0===e[t])throw new TypeError('No method named "'+t+'"');e[t]()}})},s(n,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return Zn}}]),n})(),mi=(d(window).on(ti.LOAD_DATA_API,function(){for(var e=[].slice.call(document.querySelectorAll(oi)),t=e.length;t--;){var n=d(e[t]);pi._jQueryInterface.call(n,n.data())}}),d.fn[H]=pi._jQueryInterface,d.fn[H].Constructor=pi,d.fn[H].noConflict=function(){return d.fn[H]=Jn,pi._jQueryInterface},"bs.tab"),t="."+mi,gi=d.fn.tab,vi={HIDE:"hide"+t,HIDDEN:"hidden"+t,SHOW:"show"+t,SHOWN:"shown"+t,CLICK_DATA_API:"click"+t+".data-api"},_i="dropdown-menu",bi="active",yi="disabled",wi="fade",Ei="show",Ci=".dropdown",Ti=".nav, .list-group",Si=".active",Di="> li > .active",o='[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',Ai=".dropdown-toggle",Oi="> .dropdown-menu .active",Ii=(()=>{function i(e){this._element=e}var e=i.prototype;return e.show=function(){var e,t,n,i,o,r,s=this;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&d(this._element).hasClass(bi)||d(this._element).hasClass(yi)||(t=d(this._element).closest(Ti)[0],n=u.getSelectorFromElement(this._element),t&&(o="UL"===t.nodeName||"OL"===t.nodeName?Di:Si,i=(i=d.makeArray(d(t).find(o)))[i.length-1]),o=d.Event(vi.HIDE,{relatedTarget:this._element}),r=d.Event(vi.SHOW,{relatedTarget:i}),i&&d(i).trigger(o),d(this._element).trigger(r),r.isDefaultPrevented())||o.isDefaultPrevented()||(n&&(e=document.querySelector(n)),this._activate(this._element,t),r=function(){var e=d.Event(vi.HIDDEN,{relatedTarget:s._element}),t=d.Event(vi.SHOWN,{relatedTarget:i});d(i).trigger(e),d(s._element).trigger(t)},e?this._activate(e,e.parentNode,r):r())},e.dispose=function(){d.removeData(this._element,mi),this._element=null},e._activate=function(e,t,n){function i(){return o._transitionComplete(e,r,n)}var o=this,r=(!t||"UL"!==t.nodeName&&"OL"!==t.nodeName?d(t).children(Si):d(t).find(Di))[0],t=n&&r&&d(r).hasClass(wi);r&&t?(t=u.getTransitionDurationFromElement(r),d(r).removeClass(Ei).one(u.TRANSITION_END,i).emulateTransitionEnd(t)):i()},e._transitionComplete=function(e,t,n){var i;t&&(d(t).removeClass(bi),(i=d(t.parentNode).find(Oi)[0])&&d(i).removeClass(bi),"tab"===t.getAttribute("role"))&&t.setAttribute("aria-selected",!1),d(e).addClass(bi),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),u.reflow(e),e.classList.contains(wi)&&e.classList.add(Ei),e.parentNode&&d(e.parentNode).hasClass(_
1i)&&((i=d(e).closest(Ci)[0])&&(t=[].slice.call(i.querySelectorAll(Ai)),d(t).addClass(bi)),e.setAttribute("aria-expanded",!0)),n&&n()},i._jQueryInterface=function(n){return this.each(function(){var e=d(this),t=e.data(mi);if(t||(t=new i(this),e.data(mi,t)),"string"==typeof n){if(void 0===t[n])throw new TypeError('No method named "'+n+'"');t[n]()}})},s(i,null,[{key:"VERSION",get:function(){return"4.3.1"}}]),i})(),ki=(d(document).on(vi.CLICK_DATA_API,o,function(e){e.preventDefault(),Ii._jQueryInterface.call(d(this),"show")}),d.fn.tab=Ii._jQueryInterface,d.fn.tab.Constructor=Ii,d.fn.tab.noConflict=function(){return d.fn.tab=gi,Ii._jQueryInterface},"toast"),Ni="bs.toast",i="."+Ni,xi=d.fn[ki],Li={CLICK_DISMISS:"click.dismiss"+i,HIDE:"hide"+i,HIDDEN:"hidden"+i,SHOW:"show"+i,SHOWN:"shown"+i},Pi="fade",Hi="hide",ji="show",Fi="showing",Ri={animation:"boolean",autohide:"boolean",delay:"number"},Mi={animation:!0,autohide:!0,delay:500},Bi='[data-dismiss="toast"]',Wi=(()=>{function i(e,t){this._element=e,this._config=this._getConfig(t),this._timeout=null,this._setListeners()}var e=i.prototype;return e.show=function(){function e(){n._element.classList.remove(Fi),n._element.classList.add(ji),d(n._element).trigger(Li.SHOWN),n._config.autohide&&n.hide()}var t,n=this;d(this._element).trigger(Li.SHOW),this._config.animation&&this._element.classList.add(Pi);this._element.classList.remove(Hi),this._element.classList.add(Fi),this._config.animation?(t=u.getTransitionDurationFromElement(this._element),d(this._element).one(u.TRANSITION_END,e).emulateTransitionEnd(t)):e()},e.hide=function(e){var t=this;this._element.classList.contains(ji)&&(d(this._element).trigger(Li.HIDE),e?this._close():this._timeout=setTimeout(function(){t._close()},this._config.delay))},e.dispose=function(){clearTimeout(this._timeout),this._timeout=null,this._element.classList.contains(ji)&&this._element.classList.remove(ji),d(this._element).off(Li.CLICK_DISMISS),d.removeData(this._element,Ni),this._element=null,this._config=null},e._getConfig=function(e){return e=a({},Mi,d(this._element).data(),"object"==typeof e&&e?e:{}),u.typeCheckConfig(ki,e,this.constructor.DefaultType),e},e._setListeners=function(){var e=this;d(this._element).on(Li.CLICK_DISMISS,Bi,function(){return e.hide(!0)})},e._close=function(){function e(){n._element.classList.add(Hi),d(n._element).trigger(Li.HIDDEN)}var t,n=this;this._element.classList.remove(ji),this._config.animation?(t=u.getTransitionDurationFromElement(this._element),d(this._element).one(u.TRANSITION_END,e).emulateTransitionEnd(t)):e()},i._jQueryInterface=function(n){return this.each(function(){var e=d(this),t=e.data(Ni);if(t||(t=new i(this,"object"==typeof n&&n),e.data(Ni,t)),"string"==typeof n){if(void 0===t[n])throw new TypeError('No method named "'+n+'"');t[n](this)}})},s(i,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"DefaultType",get:function(){return Ri}},{key:"Default",get:function(){return Mi}}]),i})();if(d.fn[ki]=Wi._jQueryInterface,d.fn[ki].Constructor=Wi,d.fn[ki].noConflict=function(){return d.fn[ki]=xi,Wi._jQueryInterface},void 0===d)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");t=d.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1===t[0]&&9===t[1]&&t[2]<1||4<=t[0])throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0");e.Util=u,e.Alert=n,e.Button=ne,e.Carousel=c,e.Collapse=Fe,e.Dropdown=O,e.Modal=hn,e.Popover=Xn,e.Scrollspy=pi,e.Tab=Ii,e.Toast=Wi,e.Tooltip=L,Object.defineProperty(e,"__esModule",{value:!0})}),(l=>{function P(e){e=("; "+document.cookie).split("; "+e+"=");if(2===e.length)return e.pop().split(";").shift()}function H(){var e,t=P("gr_region"),n=window.location.href.split("?")[1];("usa"===(t="uk"!==(e=n?n.split("=")[1]:e)&&"usa"!==e?t:e)?(l(".usa-pricing").show(),l(".uk-pricing")):(l(".uk-pricing").show(),l(".usa-pricing"))).hide()}l(document).ready(function(s){0<s("#wpadminbar").length&&s(".main-granta-header").addClass("wp-admin-bar-header-mod"),s('[data-toggle="tooltip"]').tooltip(),s(".c-accordion__accordion-header").click(function(){s(".c-accordion__accordion-body").toggleClass("c--closed"),s(".post-filters__arrow").toggleClass("c--closed")});var e=s(".slideshow-indicator");e.click(function(){e.removeClass("active"),s(this).addClass("active")}),s(".slideshow-control__right").click(function(){var e=s(".slideshow-indicator.active");e.removeClass("active"),(e.next().hasClass("slideshow-indicator")?e.next():s(".slideshow-indicator").eq(0)).addClass("active")}),s(".slideshow-control__left").click(function(){var e=s(".slideshow-indicator.active");e.removeClass("active"),(e.prev().hasClass("slideshow-indicator")?e.prev():s(".slideshow-indicator").last()).addClass("active")}),s(".article-slideshow__dots-small").click(function(){var e=s("#"+this.dataset.slide);e.click(),setTimeout(function(){e.click()},600)}),s(".lazybackground").each(function(){var t,e=s(this).attr("data-background");null!==e&&""!==e&&((t=new Image).ref=s(this),t.onload=function(){var e=t.ref;s(e).css("background-image","url("+t.src+")"),s(e).css("opacity","1")},t.src=e)});s(".article-content").outerHeight(!0)<1e3&&(s("#sidebarSecondTextWidget").remove(),s("#sidebarNewsletter").remove(),s("#sidebarNewsletter2").remove());var t=s(".nav__search-input-container"),n=s(".nav__search-input-form-container"),i=s(".nav__magnifying-glass"),o=s(".nav__search-close-icon"),r=s(".mobile-nav__search-close-icon"),a=s(".nav__search-button"),l=(s(".nav__search-input"),s(".mobile-nav__search-input")),c=s(".nav__collapse-search-input-wrappper > form > input"),d=s(".nav__desktop-search-input-wrappper > form > input"),u=(i.on("click",function(){var e=s(this).data("navType");t.addClass("show-search"),n.addClass("show-search"),t.removeClass("nav-search-hidden"),o.removeClass("nav-search-hidden"),r.removeClass("nav-search-hidden"),i.addClass("nav-search-hidden"),"desktop"===e?setTimeout(function(){d.focus()},100):"collapse"===e?setTimeout(function(){c.focus()},100):setTimeout(function(){l.focus()},100)}),o.on("click",function(e){e.preventDefault(),e.stopPropagation(),i.removeClass("nav-search-hidden"),t.addClass("nav-search-hidden"),t.removeClass("show-search"),o.addClass("nav-search-hidden")}),r.on("click",function(e){e.preventDefault(),e.stopPropagation(),i.removeClass("nav-search-hidden"),t.addClass("nav-search-hidden"),t.removeClass("show-search"),r.addClass("nav-search-hidden")}),a.on("click",function(){t[0].submit()}),s(".nav__search-input")),a=(s(u).keyup(function(e){var t=s(this).val();s(u).val(t)}),s(".nav-mobile___burger-container")),f=s(".top-slice"),h=s(".filling"),p=s(".bottom-slice"),m=s(".nav-mobile__links-container"),g=s("body"),v=s(".nav-mobile__background");a.on("click",function(){var e=s("#headerAdvert").height()||0,t=s(window).scrollTop();console.log("open burger"),g.removeClass("overflow-hidden"),f.toggleClass("top-open"),h.toggleClass("filling-open"),v.toggleClass("--menu-active"),p.toggleClass("bottom-open"),m.toggleClass("show-mobile-nav"),e<=t&&(g.toggleClass("overflow-hidden"),v.hasClass("--menu-active")||g.removeClass("overflow-hidden"))}),s(".contributor-books__carousel").slick({slidesToShow:4,prevArrow:'<button type="button" class="books-search-prev">Next</button>',responsive:[{breakpoint:768,settings:"unslick"}]}),4<s(".search-books__carousel-slider").children().length&&s(".search-books__carousel-slider").slick({slidesToShow:4,slidesToScroll:4,prevArrow:'<button type="button" class="books-search-prev">Next</button>',nextArrow:'<button type="button" class="books-search-next">Next</button>',responsive:[{breakpoint:768,settings:"unslick"}]}),4<s(".search-authors__carousel-slider").children().length&&s(".search-authors__carousel-slider").slick({slidesToShow:4,slidesToScroll:4,prevArrow:"",nextArrow:'<button type="button" class="authors-search-next">Next</button>',responsive:[{breakpoint:768,settings:"unslick"}]}),s(".dnd-books__carousel").each(function(){4<s(this).children().length&&s(this).slick({slidesToShow:4,slidesToScroll:4,prevArrow:'<button type="button" class="books-search-prev">Next</button>',nextArrow:'<button type="button" class="books-slick-next">Next</button>',responsive:[{breakpoint:1280,settings:{arrows:!1,dots:!0}},{breakpoint:992,settings:"unslick"}]})}),s(".slick__triple-mini-carousel").slick({centerMode:!1,autoplay:!0,autoplaySpeed:3e3,centerPadding:"60px",slidesToShow:1,dots:!0}),s(".slick").slick({centerMode:!0,centerPadding:"0",slidesToShow:3,dots:!0,autoplay:!1,autoplaySpeed:4e3,pauseOnHover:!0,responsive:[{breakpoint:1025,settings:{centerMode:!0,centerPadding:"0",slidesToShow:1,arrows:!1}
1},{breakpoint:480,settings:{centerMode:!1,centerPadding:"0",slidesToShow:1,arrows:!1}}]}),s(".three_quarter_carousel").slick({responsive:[{breakpoint:1280,settings:{arrows:!1,dots:!0}}]});document.querySelectorAll(".nav__chevron").forEach(function(t){let n=t.closest("li"),i=t.nextElementSibling;i&&i.classList.contains("sub-menu")&&(t.addEventListener("click",function(e){e.preventDefault(),i.classList.toggle("is-open"),t.setAttribute("aria-expanded",i.classList.contains("is-open")),n.setAttribute("aria-expanded",i.classList.contains("is-open"))}),n.addEventListener("mouseleave",function(){i.classList.contains("is-open")&&(i.classList.remove("is-open"),t.setAttribute("aria-expanded","false"),n.setAttribute("aria-expanded","false"))}),n.addEventListener("focusout",function(e){setTimeout(function(){n.contains(document.activeElement)||i.classList.contains("is-open")&&(i.classList.remove("is-open"),t.setAttribute("aria-expanded","false"),n.setAttribute("aria-expanded","false"))},10)}))}),s("#modalLoginFrame").on("shown.bs.modal",function(){s("#emailAddress").trigger("focus")});for(var _=window.location.href,b=s(".menu-item > a"),y=0;y<b.length;y++){var w=b[y].href,E=_.substring(0,_.length-1);_!==w&&E!==w||((E=s('.menu-item > a[href="'+w+'"]')).addClass("--nav-active"),E.closest(s(".menu-item-has-children")).addClass("--top-level-active"))}s('.error-404__search-form input[type="text"]').attr("placeholder","Search granta.com...");P("gr_region")?H():s.ajax("https://ipapi.co/json/").done(function(e){e="GB"===e.country?"uk":"usa";document.cookie="gr_region="+e,H()}).fail(function(){H()});var C=s("#post-filters__sort_options"),T=(C.on("change",function(){var e=window.location.href,t="",n=e.indexOf("issues"),i="",o=window.location.origin;i=-1!==n?(-1!==(t=e.indexOf("?sort="))&&(e=e.slice(0,t)),o+"/issues?sort="+C.val()):(-1!==(t=e.indexOf("&sort="))&&(e=e.slice(0,t)),o+"/explore?cat="+getParameterByName("cat")+"&sort="+C.val()),window.location.assign(i)}),s("#book-filters__sort-options"));T.on("change",function(){var e=window.location.href,t="",n=window.location.origin,i=(-1!==(i=e.indexOf("&sort="))&&(e=e.slice(0,i)),getParameterByName("cat")),t=null===i?n+"/all-books?sort="+T.val():n+"/all-books?cat="+i+"&sort="+T.val();window.location.assign(t)});s(".book-filters__form").on("submit",function(e){e.preventDefault();var t,e=s(".book-filters__text-box").val(),n=s("#book-filters__select-genre").val(),i=s("#book-filters__select-year").val(),o=window.location.href,r=window.location.origin;-1!==(t=o.indexOf("&sort="))&&(o=o.slice(0,t)),window.location.assign(r+"/all-books?cat="+n+"&search="+e+"&y="+i+"&is-search=true")});var S=s("#comingSoonShowSecondRow"),D=s("#comingSoonSecondRow"),A=s("#comingSoonButtonContainer"),O=(S.on("click",function(){D.css("display","flex"),A.css("margin-bottom","20px"),S.hide();var e=document.getElementById("comingSoonSecondRow");s("html, body").animate({scrollTop:s(e).offset().top-153},500)}),s("#latestReleasesShowSecondRow")),I=s("#latestReleasesSecondRow"),k=s("#latestReleasesButtonContainer"),N=(O.on("click",function(){I.css("display","flex"),k.css("margin-bottom","20px"),O.hide();var e=document.getElementById("latestReleasesSecondRow");s("html, body").animate({scrollTop:s(e).offset().top-153},500)}),s("#bestsellersShowSecondRow")),x=s("#bestsellersButtonContainer"),L=s("#bestsellersSecondRow");N.on("click",function(){L.css("display","flex"),x.css("margin-bottom","20px"),N.hide();var e=document.getElementById("bestsellersSecondRow");s("html, body").animate({scrollTop:s(e).offset().top-153},500)}),document.addEventListener("mouseout",function(e){e.clientY<=0&&!localStorage.getItem("popup_shown")&&(localStorage.setItem("popup_shown",!0),jQuery("#modalNewsletterFrame").modal())})}),l(window).on("load",function(){for(var e=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],t=0;t<e.length;t++)((e,t)=>{e.on("click",function(e){""!==this.hash&&(e.preventDefault(),e=this.hash,l("html, body").animate({scrollTop:l(e).offset().top-t},1e3))})})(l("#scroll"+e[t]),120);var n=l(".nav__desktop"),i=l(".header__desktop-nav"),o=l(".header__desktop-nav-collapse"),r=l(".main-granta-header"),s=l("#headerAdvert").height()||0,a=l(window).scrollTop();l(".nav-mobile___burger-container");s<a&&r.addClass("--fixed"),l(window).on("scroll",function(){var e=l("#headerAdvert").height()+40||40,t=l(window).scrollTop();t<=e?r.removeClass("--fixed"):r.addClass("--fixed"),t<=e+100?(i.removeClass("hide-nav"),o.addClass("hide-nav"),n.addClass("--large"),n.removeClass("--small")):(o.removeClass("hide-nav"),i.addClass("hide-nav"),n.removeClass("--large"),n.addClass("--small"))})})})(jQuery),(()=>{var C="granta-cmp-consent",T={message:'<p style="margin-bottom: 0;">We use essential cookies to deliver functional services such as login status, and optional cookies to track usage and preferences. For more information, see our <a href="/cookie-policy" target="_blank">Cookie Policy</a> and <a href="/privacy-statement" target="_blank">Privacy Statement</a></p>',acceptButton:!0,acceptText:"Accept All Cookies",acceptFunction:function(e){"accepted"!==e&&(window.location=window.location.href)},declineButton:!0,declineText:"Decline Optional Cookies",declineFunction:function(e){"declined"!==e&&(window.location=window.location.href)},policyButton:!1,policyText:"Privacy Policy",policyURL:"/privacy-policy/",acceptOnScroll:!1,acceptAnyClick:!1,expireDays:365,renewOnVisit:!1,forceShow:!1,effect:"slide",element:"body",append:!1,domain:void 0!==window.location?String(window.location.hostname):"",referrer:"undefined"!=typeof document?String(document.referrer||""):"",placement:1,consentEnabled:!0,consentWaitForUpdate:500,consentTypes:["ad_storage","analytics_storage","functionality_storage","personalization_storage","security_storage","ad_user_data","ad_personalization"],defaultGranted:["security_storage"],intrusive:!0,excludePaths:["/cookie-policy","/
1privacy-statement","/privacy-policy"],consentLogEnabled:!0,consentLogAcceptUrl:"https://granta.com/endpoints/accept.php",consentLogRejectUrl:"https://granta.com/endpoints/reject.php"};function S(e){return"undefined"!=typeof document&&document.cookie&&(e=document.cookie.match(new RegExp("(?:^|; )"+e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+"=([^;]*)")))?decodeURIComponent(e[1]):""}function D(e,t,n,i){var o,r;"undefined"!=typeof document&&(o="",n&&((r=new Date).setTime(r.getTime()+864e5*n),o="; expires="+r.toUTCString()),n="undefined"!=typeof window&&window.location&&"https:"===window.location.protocol?"; Secure":"",document.cookie=e+"="+encodeURIComponent(t)+o+"; path="+(i||"/")+"; SameSite=Lax"+n)}function A(e){var t,n={};for(t in T)Object.prototype.hasOwnProperty.call(T,t)&&(n[t]=T[t]);if(e&&"object"==typeof e)for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n}function O(e,t){t.consentEnabled&&("undefined"==typeof window?function(){}:(window.dataLayer=window.dataLayer||[],"function"!=typeof window.gtag&&(window.gtag=function(){window.dataLayer.push(arguments)}),window.gtag))("consent","update",((e,t)=>{for(var n={},i=t.consentTypes||T.consentTypes,o=t.defaultGranted||T.defaultGranted,r=0;r<i.length;r++)n[i[r]]=e;if("denied"===e&&o&&o.length)for(var s=0;s<o.length;s++)n[o[s]]="granted";return n})("accepted"===e?"granted":"denied",t))}var e,t,i=0;function I(e,t){if(t&&t.consentLogEnabled&&("accepted"===e||"declined"===e)){var n=Date.now();if(!(n-i<2e3)){i=n;n="accepted"===e?t.consentLogAcceptUrl:t.consentLogRejectUrl;if(n){try{if(navigator.sendBeacon&&navigator.sendBeacon(n,new Blob([],{type:"text/plain"})))return}catch(e){}try{fetch(n,{method:"POST",mode:"cors",credentials:"omit",keepalive:!0}).catch(function(){})}catch(e){}}}}}function k(e){return(null!=e.expireDays?e:T).expireDays}function n(e,t){if("undefined"!=typeof document&&document.body){var i=A("object"==typeof e?e:{}),o=S(C);if("accepted"!==o&&"declined"!==o&&(o=""),"cookies"===e)return"accepted"===o;if("set"===e&&("accepted"===t||"declined"===t))return D(C,t,k(i),"/"),O(o=t,i),I(o,i),"accepted"===t;"accepted"!==o&&"declined"!==o||!i.renewOnVisit||D(C,o,k(i),"/");e=k(e=i),(t=new Date).setTime(t.getTime()+864e5*e),e="undefined"!=typeof window&&window.location&&"https:"===window.location.protocol?"; Secure":"",t.toUTCString();var t=2===(e=i.placement)||"2"===e||"bottom-left"===e||"bottom_left"===e||"left"===e?2:3===e||"3"===e||"bottom-right"===e||"bottom_right"===e||"right"===e?3:1,e=3==t?"fixed bottom cb-placement-bottom-right cb-layout-rect":2==t?"fixed bottom cb-placement-bottom-left cb-layout-rect":"cb-placement-top cb-layout-bar",n=(i.message||T.message).replace(/\{policy_url\}/g,i.policyURL||T.policyURL),r=i.acceptButton?'<a href="#" class="cb-enable" role="button" aria-label="'+(i.acceptText||"").replace(/"/g,"&quot;")+'">'+(i.acceptText||"")+"</a>":"",s=i.declineButton?'<a href="#" class="cb-disable" role="button" aria-label="'+(i.declineText||"").replace(/"/g,"&quot;")+'">'+(i.declineText||"")+"</a>":"",a=i.policyButton?'<a href="'+(i.policyURL||T.policyURL)+'" class="cb-policy">'+(i.policyText||"")+"</a>":"";if(i.forceShow||""===o){for(var l="undefined"!=typeof window&&window.location&&window.location.pathname.replace(/\/$/,"")||"",c=i.excludePaths||[],d=0;d<c.length;d++){var u=(c[d]||"").replace(/\/$/,"");if(u&&l===u)return}var f=document.getElementById("cookie-bar"),f=(f&&f.parentNode&&f.parentNode.removeChild(f),document.getElementById("cookie-bar-overlay")),f=(f&&f.parentNode&&f.parentNode.removeChild(f),null),h=document.createElement("div");h.id="cookie-bar",h.className=e,i.intrusive&&(h.style.zIndex=String(2147483647),1==t)&&(h.style.position="fixed",h.style.top="0",h.style.left="0",h.style.right="0",h.style.width="100%"),h.innerHTML='<div class="cb-inner"><div class="cb-message">'+n+'</div><div class="cb-actions">'+r+s+a+"</div></div>";var p,m,e=(e="string"==typeof i.element?document.querySelector(i.element):i.element)||document.body,g=(i.append?e.appendChild(h):e.insertBefore(h,e.firstChild),i.intrusive&&((f=document.createElement("div")).id="cookie-bar-overlay",f.setAttribute("aria-hidden","true"),f.style.cssText="position:fixed;top:0;left:0;width:100%;height:100%;background:#000;opacity:0.5;z-index:2147483646;pointer-events:auto;",document.body.appendChild(f),document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden"),null),v=null,_=null;i.intrusive&&(p=Array.prototype.slice.call(h.querySelectorAll(".cb-enable, .cb-disable, .cb-policy"))).length&&(p[0].focus(),_=function(e){var t;"Tab"===e.key&&h.parentNode&&(t=p.indexOf(document.activeElement),h.contains(document.activeElement)?e.shiftKey?t<=0&&(e.preventDefault(),p[p.length-1].focus()):(-1===t||t>=p.length-1)&&(e.preventDefault(),p[0].focus()):(e.preventDefault(),p[0].focus()))},document.addEventListener("keydown",_)),h.querySelectorAll(".cb-enable").forEach(function(e){e.addEventListener("click",w)}),h.querySelectorAll(".cb-disable").forEach(function(e){e.addEventListener("click",E)}),h.querySelectorAll(".cb-policy").forEach(function(e){e.addEventListener("click",function(){})}),i.acceptOnScroll&&"number"==typeof i.acceptOnScroll&&(m="undefined"!=typeof window?window.pageYOffset||document.documentElement.scrollTop:0,g=function(){var e=window.pageYOffset||document.documentElement.scrollTop;Math.abs(e-m)>=Math.round(i.acceptOnScroll)&&w(null)},document.addEventListener("scroll",g)),i.acceptAnyClick&&(v=function(e){for(var t=e&&e.target;t;){if("cookie-bar"===t.id||t.classList&&t.classList.contains("cb-policy"))return;t=t.parentNode}w(null)},document.addEventListener("click",v))}}function b(){var e=document.getElementById("cookie-bar-overlay");e&&e.parentNode&&e.parentNode.removeChild(e),document.body.style.overflow="",document.documentElement.style.overflow=""}function y(e){var t,n;g&&document.removeEventListener("scroll",g),v&&document.removeEventListener("click",v),_&&document.removeEventListener("keydown",_),i.intrusive&&b(),"function"==typeof e&&e(o),t=h,e=i.effect||"slide",n=function(){i.intrusive&&b()},t&&t.parentNode?"slide"===e?(t.style.maxHeight=(t.offsetHeight||200)+"px",t.style.overflow="hidden",t.style.transition="max-height 300ms ease",requestAnimationFrame(function(){t.style.maxHeight="0"}),setTimeout(function(){t.parentNode&&t.parentNode.removeChild(t),n&&n()},300)):"fade"===e?(t.style.transition="opacity 300ms ease",t.style.opacity="0",setTimeout(function(){t.parentNode&&t.parentNode.removeChild(t),n&&n()},300)):(t.parentNode&&t.parentNode.removeChild(t),n&&n()):n&&n()}function w(e){e&&e.preventDefault&&e.preventDefault(),D(C,"accepted",k(i),"/"),O(o="accepted",i),I(o,i),y(i.acceptFunction)}function E(e){e&&e.preventDefault&&e.preventDefault(),D(C,"declined",k(i),"/"),O(o="declined",i),I(o,i),y(i.declineFunction)}}e=A({}),"accepted"!==(t=S(C))&&"declined"!==t||O(t,e),document.body?n():document.addEventListener("DOMContentLoaded",n),window.showCookieBanner=n,window.CookieBar={show:n,getConsent:function(){return"accepted"===S(C)},setConsent:function(e){return n("set",e)},defaults:T}})(),((e,t)=>{"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Popper=t()})(this,function(){function s(e){return e&&"[object Function]"==={}.toString.call(e)}function u(e,t){return 1!==e.nodeType?[]:(e=e.ownerDocument.defaultView.getComputedStyle(e,null),t?e[t]:e)}
1function l(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function d(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=u(e),n=t.overflow;return/(auto|scroll|overlay)/.test(n+t.overflowY+t.overflowX)?e:d(l(e))}function c(e){return e&&e.referenceNode?e.referenceNode:e}function f(e){return 11===e?z:10!==e&&z||X}function h(e){if(!e)return document.documentElement;for(var t=f(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===u(n,"position")?h(n):n:(e?e.ownerDocument:document).documentElement}function r(e){return null===e.parentNode?e:r(e.parentNode)}function p(e,t){var n,i,o;return e&&e.nodeType&&t&&t.nodeType?(i=(o=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING)?e:t,o=o?t:e,(n=document.createRange()).setStart(i,0),n.setEnd(o,0),e!==(n=n.commonAncestorContainer)&&t!==n||i.contains(o)?"BODY"===(o=(i=n).nodeName)||"HTML"!==o&&h(i.firstElementChild)!==i?h(n):n:(o=r(e)).host?p(o.host,t):p(e,r(t).host)):document.documentElement}function m(e,t){var t="top"===(1<arguments.length&&void 0!==t?t:"top")?"scrollTop":"scrollLeft",n=e.nodeName;return("BODY"===n||"HTML"===n?(n=e.ownerDocument.documentElement,e.ownerDocument.scrollingElement||n):e)[t]}function o(e,t){var t="x"===t?"Left":"Top",n="Left"==t?"Right":"Bottom";return parseFloat(e["border"+t+"Width"],10)+parseFloat(e["border"+n+"Width"],10)}function i(e,t,n,i){return L(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],f(10)?parseInt(n["offset"+e])+parseInt(i["margin"+("Height"===e?"Top":"Left")])+parseInt(i["margin"+("Height"===e?"Bottom":"Right")]):0)}function g(e){var t=e.body,e=e.documentElement,n=f(10)&&getComputedStyle(e);return{height:i("Height",t,e,n),width:i("Width",t,e,n)}}function v(e){return P({},e,{right:e.left+e.width,bottom:e.top+e.height})}function _(e){var t={};try{f(10)?(t=e.getBoundingClientRect(),n=m(e,"top"),i=m(e,"left"),t.top+=n,t.left+=i,t.bottom+=n,t.right+=i):t=e.getBoundingClientRect()}catch(e){}var n={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i="HTML"===e.nodeName?g(e.ownerDocument):{},t=i.width||e.clientWidth||n.width,i=i.height||e.clientHeight||n.height,t=e.offsetWidth-t,i=e.offsetHeight-i;return(t||i)&&(t-=o(e=u(e),"x"),i-=o(e,"y"),n.width-=t,n.height-=i),v(n)}function b(e,t,n){var n=2<arguments.length&&void 0!==n&&n,i=f(10),o="HTML"===t.nodeName,r=_(e),s=_(t),e=d(e),a=u(t),l=parseFloat(a.borderTopWidth,10),c=parseFloat(a.borderLeftWidth,10),s=(n&&o&&(s.top=L(s.top,0),s.left=L(s.left,0)),v({top:r.top-s.top-l,left:r.left-s.left-c,width:r.width,height:r.height}));return s.marginTop=0,s.marginLeft=0,!i&&o&&(r=parseFloat(a.marginTop,10),o=parseFloat(a.marginLeft,10),s.top-=l-r,s.bottom-=l-r,s.left-=c-o,s.right-=c-o,s.marginTop=r,s.marginLeft=o),s=(i&&!n?t.contains(e):t===e&&"BODY"!==e.nodeName)?function(e,t,n){var n=2<arguments.length&&void 0!==n&&n,i=m(t,"top"),t=m(t,"left"),n=n?-1:1;return e.top+=i*n,e.bottom+=i*n,e.left+=t*n,e.right+=t*n,e}(s,t):s}function y(e){if(!e||!e.parentElement||f())return document.documentElement;for(var t=e.parentElement;t&&"none"===u(t,"transform");)t=t.parentElement;return t||document.documentElement}function w(e,t,n,i,o){var r,o=4<arguments.length&&void 0!==o&&o,s={top:0,left:0},a=o?y(e):p(e,c(t)),a=("viewport"===i?s=function(e,t){var t=1<arguments.length&&void 0!==t&&t,n=e.ownerDocument.documentElement,e=b(e,n),i=L(n.clientWidth,window.innerWidth||0),o=L(n.clientHeight,window.innerHeight||0),r=t?0:m(n),t=t?0:m(n,"left");return v({top:r-e.top+e.marginTop,left:t-e.left+e.marginLeft,width:i,height:o})}(a,o):("scrollParent"===i?"BODY"===(r=d(l(t))).nodeName&&(r=e.ownerDocument.documentElement):r="window"===i?e.ownerDocument.documentElement:i,t=b(r,a,o),"HTML"!==r.nodeName||function e(t){var n=t.nodeName;return"BODY"!==n&&"HTML"!==n&&("fixed"===u(t,"position")||!!(n=l(t))&&e(n))}(a)?s=t:(o=(i=g(e.ownerDocument)).height,r=i.width,s.top+=t.top-t.marginTop,s.bottom=o+t.to
1p,s.left+=t.left-t.marginLeft,s.right=r+t.left)),"number"==typeof(n=n||0));return s.left+=a?n:n.left||0,s.top+=a?n:n.top||0,s.right-=a?n:n.right||0,s.bottom-=a?n:n.bottom||0,s}function a(e,t,n,i,o,r){var s,r=5<arguments.length&&void 0!==r?r:0;return-1===e.indexOf("auto")?e:(i=w(n,i,r,o),s={top:{width:i.width,height:t.top-i.top},right:{width:i.right-t.right,height:i.height},bottom:{width:i.width,height:i.bottom-t.bottom},left:{width:t.left-i.left,height:i.height}},(0<(o=(r=Object.keys(s).map(function(e){return P({key:e},s[e],{area:(e=s[e]).width*e.height})}).sort(function(e,t){return t.area-e.area})).filter(function(e){return e.width>=n.clientWidth&&e.height>=n.clientHeight})).length?o:r)[0].key+((t=e.split("-")[1])?"-"+t:""))}function E(e,t,n,i){i=3<arguments.length&&void 0!==i?i:null;return b(n,i?y(t):p(t,c(n)),i)}function C(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),t=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+t,height:e.offsetHeight+n}}function T(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function S(e,t,n){n=n.split("-")[0];var e=C(e),i={width:e.width,height:e.height},o=-1!==["right","left"].indexOf(n),r=o?"top":"left",s=o?"left":"top",a=o?"height":"width",o=o?"width":"height";return i[r]=t[r]+t[a]/2-e[a]/2,i[s]=n===s?t[s]-e[o]:t[T(s)],i}function D(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function A(e,n,t){var i,o;return(void 0===t?e:e.slice(0,(e=e,i="name",o=t,Array.prototype.findIndex?e.findIndex(function(e){return e[i]===o}):(t=D(e,function(e){return e[i]===o}),e.indexOf(t))))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var t=e.function||e.fn;e.enabled&&s(t)&&(n.offsets.popper=v(n.offsets.popper),n.offsets.reference=v(n.offsets.reference),n=t(n,e))}),n}function t(e,n){return e.some(function(e){var t=e.name;return e.enabled&&t===n})}function O(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),i=0;i<t.length;i++){var o=t[i],o=o?""+o+n:e;if(void 0!==document.body.style[o])return o}return null}function F(e){e=e.ownerDocument;return e?e.defaultView:window}function R(e,t,n,i){n.updateBound=i,F(e).addEventListener("resize",n.updateBound,{passive:!0});i=d(e);return function e(t,n,i,o){var r="BODY"===t.nodeName,t=r?t.ownerDocument.defaultView:t;t.addEventListener(n,i,{passive:!0}),r||e(d(t.parentNode),n,i,o),o.push(t)}(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function M(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,F(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function I(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}
1function k(n,i){Object.keys(i).forEach(function(e){var t="";-1!==["width","height","top","right","bottom","left"].indexOf(e)&&I(i[e])&&(t="px"),n.style[e]=i[e]+t})}function B(e,t){function n(e){return e}var i=e.offsets,o=i.popper,r=Q,i=r(i.reference.width),s=r(o.width),a=-1!==["left","right"].indexOf(e.placement),e=-1!==e.placement.indexOf("-"),a=t?a||e||i%2==s%2?r:x:n,r=t?r:n;return{left:a(1==i%2&&1==s%2&&!e&&t?o.left-1:o.left),top:r(o.top),bottom:r(o.bottom),right:a(o.right)}}function W(e,t,n){var i,o=D(e,function(e){return e.name===t}),e=!!o&&e.some(function(e){return e.name===n&&e.enabled&&e.order<o.order});return e||(i="`"+t+"`",console.warn("`"+n+"` modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")),e}function U(e,t){t=1<arguments.length&&void 0!==t&&t,e=H.indexOf(e),e=H.slice(e+1).concat(H.slice(0,e));return t?e.reverse():e}function q(e,a,l,t){var o=[0,0],i=-1!==["right","left"].indexOf(t),t=e.split(/(\+|\-)/).map(function(e){return e.trim()}),e=t.indexOf(D(t,function(e){return-1!==e.search(/,|\s/)})),n=(t[e]&&-1===t[e].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead."),/\s*,\s*|\s+/);return(-1===e?[t]:[t.slice(0,e).concat([t[e].split(n)[0]]),[t[e].split(n)[1]].concat(t.slice(e+1))]).map(function(e,t){var s=(1===t?!i:i)?"height":"width",n=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,n=!0,e):n?(e[e.length-1]+=t,n=!1,e):e.concat(t)},[]).map(function(e){return t=s,n=a,i=l,o=+(r=(e=e).match(/((?:\-|\+)?\d*\.?\d*)(.*)/))[1],r=r[2],o?0===r.indexOf("%")?v("%p"===r?n:i)[t]/100*o:"vh"===r||"vw"===r?("vh"===r?L(document.documentElement.clientHeight,window.innerHeight||0):L(document.documentElement.clientWidth,window.innerWidth||0))/100*o:o:e;var t,n,i,o,r})}).forEach(function(n,i){n.forEach(function(e,t){I(e)&&(o[i]+=e*("-"===n[t-1]?-1:1))})}),o}function N(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var K=Math.min,x=Math.floor,Q=Math.round,L=Math.max,n="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,Y=(()=>{for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(n&&0<=navigator.userAgent.indexOf(e[t]))return 1;return 0})(),V=n&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},Y))}},z=n&&!(!window.MSInputMethodContext||!document.documentMode),X=n&&/MSIE 10/.test(navigator.userAgent),e=function(e,t,n){return t&&te(e.prototype,t),n&&te(e,n),e},P=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},G=n&&/Firefox/i.test(navigator.userAgent),$=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],H=$.slice(3),J="flip",Z="clockwise",ee="counterclockwise",e=(e(j,[{key:"update",value:function(){return function(){var e;this.state.isDestroyed||((e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}}).offsets.reference=E(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=a(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=S(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=A(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e)))}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,t(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[O("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=R(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return M.call(this)}}]),j);function j(e,t){var n=this,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},o=this,r=j;if(!(o instanceof r))throw new TypeError("Cannot call a class as a function");this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=V(this.update.bind(this)),this.options=P({},j.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=t&&t.jquery?t[0]:t,this.options.modifiers={},Object.keys(P({}
1,j.Defaults.modifiers,i.modifiers)).forEach(function(e){n.options.modifiers[e]=P({},j.Defaults.modifiers[e]||{},i.modifiers?i.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return P({name:e},n.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&s(e.onLoad)&&e.onLoad(n.reference,n.popper,n.options,e,n.state)}),this.update();o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}function te(e,t){for(var n,i=0;i<t.length;i++)(n=t[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}return e.Utils=("undefined"==typeof window?global:window).PopperUtils,e.placements=$,e.Defaults={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t,n,i,o=e.placement,r=o.split("-")[0],o=o.split("-")[1];return o&&(t=(n=e.offsets).reference,n=n.popper,i=(r=-1!==["bottom","top"].indexOf(r))?"width":"height",r={start:N({},r=r?"left":"top",t[r]),end:N({},r,t[r]+t[i]-n[i])},e.offsets.popper=P({},n,r[o])),e}},offset:{order:200,enabled:!0,fn:function(e,t){var t=t.offset,n=e.placement,i=(o=e.offsets).popper,o=o.reference,n=n.split("-")[0],t=I(+t)?[+t,0]:q(t,i,o,n);return"left"===n?(i.top+=t[0],i.left-=t[1]):"right"===n?(i.top+=t[0],i.left+=t[1]):"top"===n?(i.left+=t[0],i.top-=t[1]):"bottom"===n&&(i.left+=t[0],i.top+=t[1]),e.popper=i,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,i){var t=i.boundariesElement||h(e.instance.popper),n=(e.instance.reference===t&&(t=h(t)),O("transform")),o=e.instance.popper.style,r=o.top,s=o.left,a=o[n],l=(o.top="",o.left="",o[n]="",w(e.instance.popper,e.instance.reference,i.padding,t,e.positionFixed)),t=(o.top=r,o.left=s,o[n]=a,i.boundaries=l,i.priority),c=e.offsets.popper,d={primary:function(e){var t=c[e];return c[e]<l[e]&&!i.escapeWithReference&&(t=L(c[e],l[e])),N({},e,t)},secondary:function(e){var t="right"===e?"left":"top",n=c[t];return c[e]>l[e]&&!i.escapeWithReference&&(n=K(c[t],l[e]-("right"===e?c.width:c.height))),N({},t,n)}};return t.forEach(function(e){var t=-1===["left","top"].indexOf(e)?"secondary":"primary";c=P({},c,d[t](e))}),e.offsets.popper=c,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,t=t.reference,i=e.placement.split("-")[0],o=x,i=-1!==["top","bottom"].indexOf(i),r=i?"right":"bottom",s=i?"left":"top",i=i?"width":"height";return n[r]<o(t[s])&&(e.offsets.popper[s]=o(t[s])-n[i]),n[s]>o(t[r])&&(e.offsets.popper[s]=o(t[r])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){if(W(e.instance.modifiers,"arrow","keepTogether")){t=t.element;if("string"==typeof t){if(!(t=e.instance.popper.querySelector(t)))return e}else if(!e.instance.popper.contains(t))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var n=e.placement.split("-")[0],i=e.offsets,o=i.popper,i=i.reference,n=-1!==["left","right"].indexOf(n),r=n?"height":"width",s=n?"Top":"Left",a=s.toLowerCase(),l=n?"left":"top",n=n?"bottom":"right",c=C(t)[r],n=(i[n]-c<o[a]&&(e.offsets.popper[a]-=o[a]-(i[n]-c)),i[a]+c>o[n]&&(e.offsets.popper[a]+=i[a]+c-o[n]),e.offsets.popper=v(e.offsets.popper),i[a]+i[r]/2-c/2),i=u(e.instance.popper),d=parseFloat(i["margin"+s],10),i=parseFloat(i["border"+s+"Width"],10),s=n-e.offsets.popper[a]-d-i,s=L(K(o[r]-c,s),0);e.arrowElement=t,e.offsets.arrow=(N(n={},a,Q(s)),N(n,l,""),n)}return e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(l,c){if(!(t(l.instance.modifiers,"inner")||l.flipped&&l.placement===l.originalPlacement)){var d=w(l.instance.popper,l.instance.reference,c.padding,c.boundariesElement,l.positionFixed),u=l.placement.split("-")[0],f=T(u),h=l.placement.split("-")[1]||"",p=[];switch(c.behavior){case J:p=[u,f];break;case Z:p=U(u);break;case ee:p=U(u,!0);break;default:p=c.behavior}p.forEach(function(e,t){if(u!==e||p.length===t+1)return l;u=l.placement.split("-")[0],f=T(u);var e=l.offsets.popper,n=l.offsets.reference,i=x,n="left"===u&&i(e.right)>i(n.left)||"right"===u&&i(e.left)<i(n.right)||"top"===u&&i(e.bottom)>i(n.top)||"bottom"===u&&i(e.top)<i(n.bottom),o=i(e.left)<i(d.left),r=i(e.right)>i(d.right),s=i(e.top)<i(d.top),e=i(e.bottom)>i(d.bottom),i="left"===u&&o||"right"===u&&r||"top"===u&&s||"bottom"===u&&e,a=-1!==["top","bottom"].indexOf(u),r=!!c.flipVariations&&(a&&"start"===h&&o||a&&"end"===h&&r||!a&&"start"===h&&s||!a&&"end"===h&&e)||!!c.flipVariationsByContent&&(a&&"start"===h&&r||a&&"end"===h&&o||!a&&"start"===h&&e||!a&&"end"===h&&s);(n||i||r)&&(l.flipped=!0,(n||i)&&(u=p[t+1]),r&&(h="end"===(o=h)?"start":"start"===o?"end":o),l.placement=u+(h?"-"+h:""),l.offsets.popper=P({},l.offsets.popper,S(l.instance.popper,l.offsets.reference,l.placement)),l=A(l.instance.modifiers,l,"flip"))})}return l},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],i=e.offsets,o=i.popper,i=i.reference,r=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);
1return o[r?"left":"top"]=i[n]-(s?o[r?"width":"height"]:0),e.placement=T(t),e.offsets.popper=v(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(W(e.instance.modifiers,"hide","preventOverflow")){var t=e.offsets.reference,n=D(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,i=t.y,o=e.offsets.popper,r=D(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration;void 0!==r&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var t=void 0===r?t.gpuAcceleration:r,r=h(e.instance.popper),s=_(r),o={position:o.position},a=B(e,window.devicePixelRatio<2||!G),n="bottom"===n?"top":"bottom",i="right"===i?"left":"right",l=O("transform"),c="bottom"==n?"HTML"===r.nodeName?-r.clientHeight+a.bottom:-s.height+a.bottom:a.top,r="right"==i?"HTML"===r.nodeName?-r.clientWidth+a.right:-s.width+a.right:a.left;return t&&l?(o[l]="translate3d("+r+"px, "+c+"px, 0)",o[n]=0,o[i]=0,o.willChange="transform"):(s="right"==i?-1:1,o[n]=c*("bottom"==n?-1:1),o[i]=r*s,o.willChange=n+", "+i),e.attributes=P({},{"x-placement":e.placement},e.attributes),e.styles=P({},o,e.styles),e.arrowStyles=P({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){return k(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach(function(e){!1===n[e]?t.removeAttribute(e):t.setAttribute(e,n[e])}),e.arrowElement&&Object.keys(e.arrowStyles).length&&k(e.arrowElement,e.arrowStyles),e;var t,n},onLoad:function(e,t,n,i,o){o=E(o,t,e,n.positionFixed),o=a(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",o),k(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},e});

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