vendor: 4,582 bytes, lines 1-4
1/* Modernizr (Custom Build) | MIT & BSD 2 * Build: http://modernizr.com/download/#-csstransforms3d-csstransitions-touch-shiv-load-cssclasses-prefixed-teststyles-testprops-testallprops-prefixes-domprefixes-mq-respond 3 */ 4;window.Modernizr=function(e,t,n){function C(e){f.cssText=e}function k(e,t){return C(h.join(e+";")+(t||""))}function L(e,t){return typeof e===t}function A(e,t){return!!~(""+e).indexOf(t)}function O(e,t){for(var r in e){var i=e[r];if(!A(i,"-")&&f[i]!==n)return t=="pfx"?i:!0}return!1}function M(e,t,r){for(var i in e){var s=t[e[i]];if(s!==n)return r===!1?e[i]:L(s,"function")?s.bind(r||t):s}return!1}function _(e,t,n){var r=e.charAt(0).toUpperCase()+e.slice(1),i=(e+" "+d.join(r+" ")+r).split(" ");return L(t,"string")||L(t,"undefined")?O(i,t):(i=(e+" "+v.join(r+" ")+r).split(" "),M(i,t,n))}var r="2.8.3",i={},s=!0,o=t.documentElement,u="modernizr",a=t.createElement(u),f=a.style,l,c={}.toString,h=" -webkit- -moz- -o- -ms- ".split(" "),p="Webkit Moz O ms",d=p.split(" "),v=p.toLowerCase().split(" "),m={},g={},y={},b=[],w=b.slice,E,S=function(e,n,r,i){var s,a,f,l,c=t.createElement("div"),h=t.body,p=h||t.createElement("body");if(parseInt(r,10))while(r--)f=t.createElement("div"),f.id=i?i[r]:u+(r+1),c.appendChild(f);return s=["­",'<style id="s',u,'">',e,"</style>"].join(""),c.id=u,(h?c:p).innerHTML+=s,p.appendChild(c),h||(p.style.background="",p.style.overflow="hidden",l=o.style.overflow,o.style.overflow="hidden",o.appendChild(p)),a=n(c,e),h?c.parentNode.removeChild(c):(p.parentNode.removeChild(p),o.style.overflow=l),!!a},x=function(t){var n=e.matchMedia||e.msMatchMedia;if(n)return n(t)&&n(t).matches||!1;var r;return S("@media "+t+" { #"+u+" { position: absolute; } }",function(t){r=(e.getComputedStyle?getComputedStyle(t,null):t.currentStyle)["position"]=="absolute"}),r},T={}.hasOwnProperty,N;!L(T,"undefined")&&!L(T.call,"undefined")?N=function(e,t){return T.call(e,t)}:N=function(e,t){return t in e&&L(e.constructor.prototype[t],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(t){var n=this;if(typeof n!="function")throw new TypeError;var r=w.call(arguments,1),i=function(){if(this instanceof i){var e=function(){};e.prototype=n.prototype;var s=new e,o=n.apply(s,r.concat(w.call(arguments)));return Object(o)===o?o:s}return n.apply(t,r.concat(w.call(arguments)))};return i}),m.touch=function(){var n;return"ontouchstart"in e||e.DocumentTouch&&t instanceof DocumentTouch?n=!0:S(["@media (",h.join("touch-enabled),("),u,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(e){n=e.offsetTop===9}),n},m.csstransforms3d=function(){var e=!!_("perspective");return e&&"webkitPerspective"in o.style&&S("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(t,n){e=t.offsetLeft===9&&t.offsetHeight===3}),e},m.csstransitions=function(){return _("transition")};for(var D in m)N(m,D)&&(E=D.toLowerCase(),i[E]=m[D](),b.push((i[E]?"":"no-")+E));return i.addTest=function(e,t){if(typeof e=="object")for(var r in e)N(e,r)&&i.addTest(r,e[r]);else{e=e.toLowerCase();if(i[e]!==n)return i;t=typeof t=="function"?t():t,typeof s!="undefined"&&s&&(o.className+=" "+(t?"":"no-")+e),i[e]=t}return i},C(""),a=l=null,function(e,t){function c(e,t){var n=e.createElement("p"),r=e.getElementsByTagName("head")[0]||e.documentElement;return n.innerHTML="x<style>"+t+"</style>",r.insertBefore(n.lastChild,r.firstChild)}function h(){var e=y.elements;return typeof e=="string"?e.split(" "):e}function p(e){var t=f[e[u]];return t||(t={},a++,e[u]=a,f[a]=t),t}function d(e,n,r){n||(n=t);if(l)return n.createElement(e);r||(r=p(n));var o;return r.cache[e]?o=r.cache[e].cloneNode():s.test(e)?o=(r.cache[e]=r.createElem(e)).cloneNode():o=r.createElem(e),o.canHaveChildren&&!i.test(e)&&!o.tagUrn?r.frag.appendChild(o):o}function v(e,n){e||(e=t);if(l)return e.createDocumentFragment();n=n||p(e);var r=n.frag.cloneNode(),i=0,s=h(),o=s.length;for(;i<o;i++)r.createElement(s[i]);return r}function m(e,t){t.cache||(t.cache={},t.createElem=e.createElement,t.createFrag=e.createDocumentFragment,t.frag=t.createFrag()),e.createElement=function(n){return y.shivMethods?d(n,e,t):t.createElem(n)},e.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+h().join().replace(/[\w\-]+/g,function(e){return t.createElem(e),t.frag.createElement(e),'c("'+e+'")'})+");return n}")(y,t.frag)}function g(e){e||(e=t);var n=p(e);return y.shivCSS&&!o&&!n.hasCSS&&(n.hasCSS=!!c(e,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{dis
vendor: 4,200 bytes, line 4
4play:block}mark{background:#FF0;color:#000}template{display:none}")),l||m(e,n),e}var n="3.7.0",r=e.html5||{},i=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,s=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,o,u="_html5shiv",a=0,f={},l;(function(){try{var e=t.createElement("a");e.innerHTML="<xyz></xyz>",o="hidden"in e,l=e.childNodes.length==1||function(){t.createElement("a");var e=t.createDocumentFragment();return typeof e.cloneNode=="undefined"||typeof e.createDocumentFragment=="undefined"||typeof e.createElement=="undefined"}()}catch(n){o=!0,l=!0}})();var y={elements:r.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:n,shivCSS:r.shivCSS!==!1,supportsUnknownElements:l,shivMethods:r.shivMethods!==!1,type:"default",shivDocument:g,createElement:d,createDocumentFragment:v};e.html5=y,g(t)}(this,t),i._version=r,i._prefixes=h,i._domPrefixes=v,i._cssomPrefixes=d,i.mq=x,i.testProp=function(e){return O([e])},i.testAllProps=_,i.testStyles=S,i.prefixed=function(e,t,n){return t?_(e,t,n):_(e,"pfx")},o.className=o.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(s?" js "+b.join(" "):""),i}(this,this.document),function(e,t,n){function r(e){return"[object Function]"==d.call(e)}function i(e){return"string"==typeof e}function s(){}function o(e){return!e||"loaded"==e||"complete"==e||"uninitialized"==e}function u(){var e=v.shift();m=1,e?e.t?h(function(){("c"==e.t?k.injectCss:k.injectJs)(e.s,0,e.a,e.x,e.e,1)},0):(e(),u()):m=0}function a(e,n,r,i,s,a,f){function l(t){if(!d&&o(c.readyState)&&(w.r=d=1,!m&&u(),c.onload=c.onreadystatechange=null,t)){"img"!=e&&h(function(){b.removeChild(c)},50);for(var r in T[n])T[n].hasOwnProperty(r)&&T[n][r].onload()}}var f=f||k.errorTimeout,c=t.createElement(e),d=0,g=0,w={t:r,s:n,e:s,a:a,x:f};1===T[n]&&(g=1,T[n]=[]),"object"==e?c.data=n:(c.src=n,c.type=e),c.width=c.height="0",c.onerror=c.onload=c.onreadystatechange=function(){l.call(this,g)},v.splice(i,0,w),"img"!=e&&(g||2===T[n]?(b.insertBefore(c,y?null:p),h(l,f)):T[n].push(c))}function f(e,t,n,r,s){return m=0,t=t||"j",i(e)?a("c"==t?E:w,e,t,this.i++,n,r,s):(v.splice(this.i++,0,e),1==v.length&&u()),this}function l(){var e=k;return e.loader={load:f,i:0},e}var c=t.documentElement,h=e.setTimeout,p=t.getElementsByTagName("script")[0],d={}.toString,v=[],m=0,g="MozAppearance"in c.style,y=g&&!!t.createRange().compareNode,b=y?c:p.parentNode,c=e.opera&&"[object Opera]"==d.call(e.opera),c=!!t.attachEvent&&!c,w=g?"object":c?"script":"img",E=c?"script":w,S=Array.isArray||function(e){return"[object Array]"==d.call(e)},x=[],T={},N={timeout:function(e,t){return t.length&&(e.timeout=t[0]),e}},C,k;k=function(e){function t(e){var e=e.split("!"),t=x.length,n=e.pop(),r=e.length,n={url:n,origUrl:n,prefixes:e},i,s,o;for(s=0;s<r;s++)o=e[s].split("="),(i=N[o.shift()])&&(n=i(n,o));for(s=0;s<t;s++)n=x[s](n);return n}function o(e,i,s,o,u){var a=t(e),f=a.autoCallback;a.url.split(".").pop().split("?").shift(),a.bypass||(i&&(i=r(i)?i:i[e]||i[o]||i[e.split("/").pop().split("?")[0]]),a.instead?a.instead(e,i,s,o,u):(T[a.url]?a.noexec=!0:T[a.url]=1,s.load(a.url,a.forceCSS||!a.forceJS&&"css"==a.url.split(".").pop().split("?").shift()?"c":n,a.noexec,a.attrs,a.timeout),(r(i)||r(f))&&s.load(function(){l(),i&&i(a.origUrl,u,o),f&&f(a.origUrl,u,o),T[a.url]=2})))}function u(e,t){function n(e,n){if(e){if(i(e))n||(f=function(){var e=[].slice.call(arguments);l.apply(this,e),c()}),o(e,f,t,0,u);else if(Object(e)===e)for(p in h=function(){var t=0,n;for(n in e)e.hasOwnProperty(n)&&t++;return t}(),e)e.hasOwnProperty(p)&&(!n&&!--h&&(r(f)?f=function(){var e=[].slice.call(arguments);l.apply(this,e),c()}:f[p]=function(e){return function(){var t=[].slice.call(arguments);e&&e.apply(this,t),c()}}(l[p])),o(e[p],f,t,p,u))}else!n&&c()}var u=!!e.test,a=e.load||e.both,f=e.callback||s,l=f,c=e.complete||s,h,p;n(u?e.yep:e.nope,!!a),a&&n(a)}var a,f,c=this.yepnope.loader;if(i(e))o(e,0,c,0);else if(S(e))for(a=0;a<e.length;a++)f=e[a],i(f)?o(f,0,c,0):S(f)?k(f):Object(f)===f&&u(f,c);else Object(e)===e&&u(e,c)}
4,k.addPrefix=function(e,t){N[e]=t},k.addFilter=function(e){x.push(e)},k.errorTimeout=1e4,null==t.readyState&&t.addEventListener&&(t.readyState="loading",t.addEventListener("DOMContentLoaded",C=function(){t.removeEventListener("DOMContentLoaded",C,0),t.readyState="complete"},0)),e.yepnope=l(),e.yepnope.executeStack=u,e.yepnope.injectJs=function(e,n,r,i,a,f){var l=t.createElement("script"),c,d,i=i||k.errorTimeout;l.src=e;for(d in r)l.setAttribute(d,r[d]);n=f?u:n||s,l.onreadystatechange=l.onload=function(){!c&&o(l.readyState)&&(c=1,n(),l.onload=l.onreadystatechange=null)},h(function(){c||(c=1,n(1))},i),a?l.onload():p.parentNode.insertBefore(l,p)},e.yepnope.injectCss=function(e,n,r,i,o,a){var i=t.createElement("link"),f,n=a?u:n||s;i.href=e,i.rel="stylesheet",i.type="text/css";for(f in r)i.setAttribute(f,r[f]);o||(p.parentNode.insertBefore(i,p),h(n,0))}}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))};/**! 5 * @fileOverview Kickass library to create and place poppers near their reference elements. 6 * @version 1.16.1 7 * @license 8 * Copyright (C) Federico Zivolo 2020 9 */ 10(function (global, factory) { 11 typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : 12 typeof define === 'function' && define.amd ? define(factory) : 13 (global.Popper = factory()); 14}(this, (function () { 15 'use strict'; 16 17 var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined' && typeof navigator !== 'undefined'; 18 19 var timeoutDuration = function () { 20 var longerTimeoutBrowsers = ['Edge', 'Trident', 'Firefox']; 21 for (var i = 0; i < longerTimeoutBrowsers.length; i += 1) { 22 if (isBrowser && navigator.userAgent.indexOf(longerTimeoutBrowsers[i]) >= 0) { 23 return 1; 24 } 25 } 26 return 0; 27 }(); 28 29 function microtaskDebounce(fn) { 30 var called = false; 31 return function () { 32 if (called) { 33 return; 34 } 35 called = true; 36 window.Promise.resolve().then(function () { 37 called = false; 38 fn(); 39 }); 40 }; 41 } 42 43 function taskDebounce(fn) { 44 var scheduled = false; 45 return function () { 46 if (!scheduled) { 47 scheduled = true; 48 setTimeout(function () { 49 scheduled = false; 50 fn(); 51 }, timeoutDuration); 52 } 53 }; 54 } 55 56 var supportsMicroTasks = isBrowser && window.Promise; 57 58 /** 59 * Create a debounced version of a method, that's asynchronously deferred 60 * but called in the minimum time possible. 61 * 62 * @method 63 * @memberof Popper.Utils 64 * @argument {Function} fn 65 * @returns {Function} 66 */ 67 var debounce = supportsMicroTasks ? microtaskDebounce : taskDebounce; 68 69 /** 70 * Check if the given variable is a function 71 * @method 72 * @memberof Popper.Utils 73 * @argument {Any} functionToCheck - variable to check 74 * @returns {Boolean} answer to: is a function? 75 */ 76 function isFunction(functionToCheck) { 77 var getType = {}; 78 return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]'; 79 } 80 81 /** 82 * Get CSS computed property of the given element 83 * @method 84 * @memberof Popper.Utils 85 * @argument {Eement} element 86 * @argument {String} property 87 */ 88 function getStyleComputedProperty(element, property) { 89 if (element.nodeType !== 1) { 90 return []; 91 } 92 // NOTE: 1 DOM access here 93 var window = element.ownerDocument.defaultView; 94 var css = window.getComputedStyle(element, null); 95 return property ? css[property] : css; 96 } 97 98 /** 99 * Returns the parentNode or the host of the element 100 * @method 101 * @memberof Popper.Utils 102 * @argument {Element} element 103 * @returns {Element} parent 104 */ 105 function getParentNode(element) { 106 if (element.nodeName === 'HTML') { 107 return element; 108 } 109 return element.parentNode || element.host; 110 } 111 112 /** 113 * Returns the scrolling parent of the given element 114 * @method 115 * @memberof Popper.Utils 116 * @argument {Element} element 117 * @returns {Element} scroll parent 118 */ 119 function getScrollParent(element) { 120 // Return body, `getScroll` will take care to get the correct `scrollTop` from it 121 if (!element) { 122 return document.body; 123 } 124 125 switch (element.nodeName) { 126 case 'HTML': 127 case 'BODY': 128 return element.ownerDocument.body; 129 case '#document': 130 return element.body; 131 } 132 133 // Firefox want us to check `-x` and `-y` variations as well 134 135 var _getStyleComputedProp = getStyleComputedProperty(element), 136 overflow = _getStyleComputedProp.overflow, 137 overflowX = _getStyleComputedProp.overflowX, 138 overflowY = _getStyleComputedProp.overflowY; 139 140 if (/(auto|scroll|overlay)/.test(overflow + overflowY + overflowX)) { 141 return element; 142 } 143 144 return getScrollParent(getParentNode(element)); 145 } 146 147 /** 148 * Returns the reference node of the reference object, or the reference object itself. 149 * @method 150 * @memberof Popper.Utils
vendor: 9,150 bytes, lines 151-399
151 * @param {Element|Object} reference - the reference element (the popper will be relative to this) 152 * @returns {Element} parent 153 */ 154 function getReferenceNode(reference) { 155 return reference && reference.referenceNode ? reference.referenceNode : reference; 156 } 157 158 var isIE11 = isBrowser && !!(window.MSInputMethodContext && document.documentMode); 159 var isIE10 = isBrowser && /MSIE 10/.test(navigator.userAgent); 160 161 /** 162 * Determines if the browser is Internet Explorer 163 * @method 164 * @memberof Popper.Utils 165 * @param {Number} version to check 166 * @returns {Boolean} isIE 167 */ 168 function isIE(version) { 169 if (version === 11) { 170 return isIE11; 171 } 172 if (version === 10) { 173 return isIE10; 174 } 175 return isIE11 || isIE10; 176 } 177 178 /** 179 * Returns the offset parent of the given element 180 * @method 181 * @memberof Popper.Utils 182 * @argument {Element} element 183 * @returns {Element} offset parent 184 */ 185 function getOffsetParent(element) { 186 if (!element) { 187 return document.documentElement; 188 } 189 190 var noOffsetParent = isIE(10) ? document.body : null; 191 192 // NOTE: 1 DOM access here 193 var offsetParent = element.offsetParent || null; 194 // Skip hidden elements which don't have an offsetParent 195 while (offsetParent === noOffsetParent && element.nextElementSibling) { 196 offsetParent = (element = element.nextElementSibling).offsetParent; 197 } 198 199 var nodeName = offsetParent && offsetParent.nodeName; 200 201 if (!nodeName || nodeName === 'BODY' || nodeName === 'HTML') { 202 return element ? element.ownerDocument.documentElement : document.documentElement; 203 } 204 205 // .offsetParent will return the closest TH, TD or TABLE in case 206 // no offsetParent is present, I hate this job... 207 if (['TH', 'TD', 'TABLE'].indexOf(offsetParent.nodeName) !== -1 && getStyleComputedProperty(offsetParent, 'position') === 'static') { 208 return getOffsetParent(offsetParent); 209 } 210 211 return offsetParent; 212 } 213 214 function isOffsetContainer(element) { 215 var nodeName = element.nodeName; 216 217 if (nodeName === 'BODY') { 218 return false; 219 } 220 return nodeName === 'HTML' || getOffsetParent(element.firstElementChild) === element; 221 } 222 223 /** 224 * Finds the root node (document, shadowDOM root) of the given element 225 * @method 226 * @memberof Popper.Utils 227 * @argument {Element} node 228 * @returns {Element} root node 229 */ 230 function getRoot(node) { 231 if (node.parentNode !== null) { 232 return getRoot(node.parentNode); 233 } 234 235 return node; 236 } 237 238 /** 239 * Finds the offset parent common to the two provided nodes 240 * @method 241 * @memberof Popper.Utils 242 * @argument {Element} element1 243 * @argument {Element} element2 244 * @returns {Element} common offset parent 245 */ 246 function findCommonOffsetParent(element1, element2) { 247 // This check is needed to avoid errors in case one of the elements isn't defined for any reason 248 if (!element1 || !element1.nodeType || !element2 || !element2.nodeType) { 249 return document.documentElement; 250 } 251 252 // Here we make sure to give as "start" the element that comes first in the DOM 253 var order = element1.compareDocumentPosition(element2) & Node.DOCUMENT_POSITION_FOLLOWING; 254 var start = order ? element1 : element2; 255 var end = order ? element2 : element1; 256 257 // Get common ancestor container 258 var range = document.createRange(); 259 range.setStart(start, 0); 260 range.setEnd(end, 0); 261 var commonAncestorContainer = range.commonAncestorContainer; 262 263 // Both nodes are inside #document 264 265 if (element1 !== commonAncestorContainer && element2 !== commonAncestorContainer || start.contains(end)) { 266 if (isOffsetContainer(commonAncestorContainer)) { 267 return commonAncestorContainer; 268 } 269 270 return getOffsetParent(commonAncestorContainer); 271 } 272 273 // one of the nodes is inside shadowDOM, find which one 274 var element1root = getRoot(element1); 275 if (element1root.host) { 276 return findCommonOffsetParent(element1root.host, element2); 277 } else { 278 return findCommonOffsetParent(element1, getRoot(element2).host); 279 } 280 } 281 282 /** 283 * Gets the scroll value of the given element in the given side (top and left) 284 * @method 285 * @memberof Popper.Utils 286 * @argument {Element} element 287 * @argument {String} side `top` or `left` 288 * @returns {number} amount of scrolled pixels 289 */ 290 function getScroll(element) { 291 var side = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'top'; 292 293 var upperSide = side === 'top' ? 'scrollTop' : 'scrollLeft'; 294 var nodeName = element.nodeName; 295 296 if (nodeName === 'BODY' || nodeName === 'HTML') { 297 var html = element.ownerDocument.documentElement; 298 var scrollingElement = element.ownerDocument.scrollingElement || html; 299 return scrollingElement[upperSide]; 300 } 301 302 return element[upperSide]; 303 } 304 305 /* 306 * Sum or subtract the element scroll values (left and top) from a given rect object 307 * @method 308 * @memberof Popper.Utils 309 * @param {Object} rect - Rect object you want to change 310 * @param {HTMLElement} element - The element from the function reads the scroll values 311 * @param {Boolean} subtract - set to true if you want to subtract the scroll values 312 * @return {Object} rect - The modifier rect object 313 */ 314 function includeScroll(rect, element) { 315 var subtract = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; 316 317 var scrollTop = getScroll(element, 'top'); 318 var scrollLeft = getScroll(element, 'left'); 319 var modifier = subtract ? -1 : 1; 320 rect.top += scrollTop * modifier; 321 rect.bottom += scrollTop * modifier; 322 rect.left += scrollLeft * modifier; 323 rect.right += scrollLeft * modifier; 324 return rect; 325 } 326 327 /* 328 * Helper to detect borders of a given element 329 * @method 330 * @memberof Popper.Utils 331 * @param {CSSStyleDeclaration} styles 332 * Result of `getStyleComputedProperty` on the given element 333 * @param {String} axis - `x` or `y` 334 * @return {number} borders - The borders size of the given axis 335 */ 336 337 function getBordersSize(styles, axis) { 338 var sideA = axis === 'x' ? 'Left' : 'Top'; 339 var sideB = sideA === 'Left' ? 'Right' : 'Bottom'; 340 341 return parseFloat(styles['border' + sideA + 'Width']) + parseFloat(styles['border' + sideB + 'Width']); 342 } 343 344 function getSize(axis, body, html, computedStyle) { 345 return Math.max(body['offset' + axis], body['scroll' + axis], html['client' + axis], html['offset' + axis], html['scroll' + axis], isIE(10) ? parseInt(html['offset' + axis]) + parseInt(computedStyle['margin' + (axis === 'Height' ? 'Top' : 'Left')]) + parseInt(computedStyle['margin' + (axis === 'Height' ? 'Bottom' : 'Right')]) : 0); 346 } 347 348 function getWindowSizes(document) { 349 var body = document.body; 350 var html = document.documentElement; 351 var computedStyle = isIE(10) && getComputedStyle(html); 352 353 return { 354 height: getSize('Height', body, html, computedStyle), 355 width: getSize('Width', body, html, computedStyle) 356 }; 357 } 358 359 var classCallCheck = function (instance, Constructor) { 360 if (!(instance instanceof Constructor)) { 361 throw new TypeError("Cannot call a class as a function"); 362 } 363 }; 364 365 var createClass = function () { 366 function defineProperties(target, props) { 367 for (var i = 0; i < props.length; i++) { 368 var descriptor = props[i]; 369 descriptor.enumerable = descriptor.enumerable || false; 370 descriptor.configurable = true; 371 if ("value" in descriptor) descriptor.writable = true; 372 Object.defineProperty(target, descriptor.key, descriptor); 373 } 374 } 375 376 return function (Constructor, protoProps, staticProps) { 377 if (protoProps) defineProperties(Constructor.prototype, protoProps); 378 if (staticProps) defineProperties(Constructor, staticProps); 379 return Constructor; 380 }; 381 }(); 382 383 384 385 386 387 var defineProperty = function (obj, key, value) { 388 if (key in obj) { 389 Object.defineProperty(obj, key, { 390 value: value, 391 enumerable: true, 392 configurable: true, 393 writable: true 394 }); 395 } else { 396 obj[key] = value; 397 } 398 399 return obj;
vendor: 13,319 bytes, lines 400-742
400 }; 401 402 var _extends = Object.assign || function (target) { 403 for (var i = 1; i < arguments.length; i++) { 404 var source = arguments[i]; 405 406 for (var key in source) { 407 if (Object.prototype.hasOwnProperty.call(source, key)) { 408 target[key] = source[key]; 409 } 410 } 411 } 412 413 return target; 414 }; 415 416 /** 417 * Given element offsets, generate an output similar to getBoundingClientRect 418 * @method 419 * @memberof Popper.Utils 420 * @argument {Object} offsets 421 * @returns {Object} ClientRect like output 422 */ 423 function getClientRect(offsets) { 424 return _extends({}, offsets, { 425 right: offsets.left + offsets.width, 426 bottom: offsets.top + offsets.height 427 }); 428 } 429 430 /** 431 * Get bounding client rect of given element 432 * @method 433 * @memberof Popper.Utils 434 * @param {HTMLElement} element 435 * @return {Object} client rect 436 */ 437 function getBoundingClientRect(element) { 438 var rect = {}; 439 440 // IE10 10 FIX: Please, don't ask, the element isn't 441 // considered in DOM in some circumstances... 442 // This isn't reproducible in IE10 compatibility mode of IE11 443 try { 444 if (isIE(10)) { 445 rect = element.getBoundingClientRect(); 446 var scrollTop = getScroll(element, 'top'); 447 var scrollLeft = getScroll(element, 'left'); 448 rect.top += scrollTop; 449 rect.left += scrollLeft; 450 rect.bottom += scrollTop; 451 rect.right += scrollLeft; 452 } else { 453 rect = element.getBoundingClientRect(); 454 } 455 } catch (e) { } 456 457 var result = { 458 left: rect.left, 459 top: rect.top, 460 width: rect.right - rect.left, 461 height: rect.bottom - rect.top 462 }; 463 464 // subtract scrollbar size from sizes 465 var sizes = element.nodeName === 'HTML' ? getWindowSizes(element.ownerDocument) : {}; 466 var width = sizes.width || element.clientWidth || result.width; 467 var height = sizes.height || element.clientHeight || result.height; 468 469 var horizScrollbar = element.offsetWidth - width; 470 var vertScrollbar = element.offsetHeight - height; 471 472 // if an hypothetical scrollbar is detected, we must be sure it's not a `border` 473 // we make this check conditional for performance reasons 474 if (horizScrollbar || vertScrollbar) { 475 var styles = getStyleComputedProperty(element); 476 horizScrollbar -= getBordersSize(styles, 'x'); 477 vertScrollbar -= getBordersSize(styles, 'y'); 478 479 result.width -= horizScrollbar; 480 result.height -= vertScrollbar; 481 } 482 483 return getClientRect(result); 484 } 485 486 function getOffsetRectRelativeToArbitraryNode(children, parent) { 487 var fixedPosition = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; 488 489 var isIE10 = isIE(10); 490 var isHTML = parent.nodeName === 'HTML'; 491 var childrenRect = getBoundingClientRect(children); 492 var parentRect = getBoundingClientRect(parent); 493 var scrollParent = getScrollParent(children); 494 495 var styles = getStyleComputedProperty(parent); 496 var borderTopWidth = parseFloat(styles.borderTopWidth); 497 var borderLeftWidth = parseFloat(styles.borderLeftWidth); 498 499 // In cases where the parent is fixed, we must ignore negative scroll in offset calc 500 if (fixedPosition && isHTML) { 501 parentRect.top = Math.max(parentRect.top, 0); 502 parentRect.left = Math.max(parentRect.left, 0); 503 } 504 var offsets = getClientRect({ 505 top: childrenRect.top - parentRect.top - borderTopWidth, 506 left: childrenRect.left - parentRect.left - borderLeftWidth, 507 width: childrenRect.width, 508 height: childrenRect.height 509 }); 510 offsets.marginTop = 0; 511 offsets.marginLeft = 0; 512 513 // Subtract margins of documentElement in case it's being used as parent 514 // we do this only on HTML because it's the only element that behaves 515 // differently when margins are applied to it. The margins are included in 516 // the box of the documentElement, in the other cases not. 517 if (!isIE10 && isHTML) { 518 var marginTop = parseFloat(styles.marginTop); 519 var marginLeft = parseFloat(styles.marginLeft); 520 521 offsets.top -= borderTopWidth - marginTop; 522 offsets.bottom -= borderTopWidth - marginTop; 523 offsets.left -= borderLeftWidth - marginLeft; 524 offsets.right -= borderLeftWidth - marginLeft; 525 526 // Attach marginTop and marginLeft because in some circumstances we may need them 527 offsets.marginTop = marginTop; 528 offsets.marginLeft = marginLeft; 529 } 530 531 if (isIE10 && !fixedPosition ? parent.contains(scrollParent) : parent === scrollParent && scrollParent.nodeName !== 'BODY') { 532 offsets = includeScroll(offsets, parent); 533 } 534 535 return offsets; 536 } 537 538 function getViewportOffsetRectRelativeToArtbitraryNode(element) { 539 var excludeScroll = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; 540 541 var html = element.ownerDocument.documentElement; 542 var relativeOffset = getOffsetRectRelativeToArbitraryNode(element, html); 543 var width = Math.max(html.clientWidth, window.innerWidth || 0); 544 var height = Math.max(html.clientHeight, window.innerHeight || 0); 545 546 var scrollTop = !excludeScroll ? getScroll(html) : 0; 547 var scrollLeft = !excludeScroll ? getScroll(html, 'left') : 0; 548 549 var offset = { 550 top: scrollTop - relativeOffset.top + relativeOffset.marginTop, 551 left: scrollLeft - relativeOffset.left + relativeOffset.marginLeft, 552 width: width, 553 height: height 554 }; 555 556 return getClientRect(offset); 557 } 558 559 /** 560 * Check if the given element is fixed or is inside a fixed parent 561 * @method 562 * @memberof Popper.Utils 563 * @argument {Element} element 564 * @argument {Element} customContainer 565 * @returns {Boolean} answer to "isFixed?" 566 */ 567 function isFixed(element) { 568 var nodeName = element.nodeName; 569 if (nodeName === 'BODY' || nodeName === 'HTML') { 570 return false; 571 } 572 if (getStyleComputedProperty(element, 'position') === 'fixed') { 573 return true; 574 } 575 var parentNode = getParentNode(element); 576 if (!parentNode) { 577 return false; 578 } 579 return isFixed(parentNode); 580 } 581 582 /** 583 * Finds the first parent of an element that has a transformed property defined 584 * @method 585 * @memberof Popper.Utils 586 * @argument {Element} element 587 * @returns {Element} first transformed parent or documentElement 588 */ 589 590 function getFixedPositionOffsetParent(element) { 591 // This check is needed to avoid errors in case one of the elements isn't defined for any reason 592 if (!element || !element.parentElement || isIE()) { 593 return document.documentElement; 594 } 595 var el = element.parentElement; 596 while (el && getStyleComputedProperty(el, 'transform') === 'none') { 597 el = el.parentElement; 598 } 599 return el || document.documentElement; 600 } 601 602 /** 603 * Computed the boundaries limits and return them 604 * @method 605 * @memberof Popper.Utils 606 * @param {HTMLElement} popper 607 * @param {HTMLElement} reference 608 * @param {number} padding 609 * @param {HTMLElement} boundariesElement - Element used to define the boundaries 610 * @param {Boolean} fixedPosition - Is in fixed position mode 611 * @returns {Object} Coordinates of the boundaries 612 */ 613 function getBoundaries(popper, reference, padding, boundariesElement) { 614 var fixedPosition = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false; 615 616 // NOTE: 1 DOM access here 617 618 var boundaries = { top: 0, left: 0 }; 619 var offsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, getReferenceNode(reference)); 620 621 // Handle viewport case 622 if (boundariesElement === 'viewport') { 623 boundaries = getViewportOffsetRectRelativeToArtbitraryNode(offsetParent, fixedPosition); 624 } else { 625 // Handle other cases based on DOM element used as boundaries 626 var boundariesNode = void 0; 627 if (boundariesElement === 'scrollParent') { 628 boundariesNode = getScrollParent(getParentNode(reference)); 629 if (boundariesNode.nodeName === 'BODY') { 630 boundariesNode = popper.ownerDocument.documentElement; 631 } 632 } else if (boundariesElement === 'window') { 633 boundariesNode = popper.ownerDocument.documentElement; 634 } else { 635 boundariesNode = boundariesElement; 636 } 637 638 var offsets = getOffsetRectRelativeToArbitraryNode(boundariesNode, offsetParent, fixedPosition); 639 640 // In case of HTML, we need a different computation 641 if (boundariesNode.nodeName === 'HTML' && !isFixed(offsetParent)) { 642 var _getWindowSizes = getWindowSizes(popper.ownerDocument), 643 height = _getWindowSizes.height, 644 width = _getWindowSizes.width; 645 646 boundaries.top += offsets.top - offsets.marginTop; 647 boundaries.bottom = height + offsets.top; 648 boundaries.left += offsets.left - offsets.marginLeft; 649 boundaries.right = width + offsets.left; 650 } else { 651 // for all the other DOM elements, this one is good 652 boundaries = offsets; 653 } 654 } 655 656 // Add paddings 657 padding = padding || 0; 658 var isPaddingNumber = typeof padding === 'number'; 659 boundaries.left += isPaddingNumber ? padding : padding.left || 0; 660 boundaries.top += isPaddingNumber ? padding : padding.top || 0; 661 boundaries.right -= isPaddingNumber ? padding : padding.right || 0; 662 boundaries.bottom -= isPaddingNumber ? padding : padding.bottom || 0; 663 664 return boundaries; 665 } 666 667 function getArea(_ref) { 668 var width = _ref.width, 669 height = _ref.height; 670 671 return width * height; 672 } 673 674 /** 675 * Utility used to transform the `auto` placement to the placement with more 676 * available space. 677 * @method 678 * @memberof Popper.Utils 679 * @argument {Object} data - The data object generated by update method 680 * @argument {Object} options - Modifiers configuration and options 681 * @returns {Object} The data object, properly modified 682 */ 683 function computeAutoPlacement(placement, refRect, popper, reference, boundariesElement) { 684 var padding = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 0; 685 686 if (placement.indexOf('auto') === -1) { 687 return placement; 688 } 689 690 var boundaries = getBoundaries(popper, reference, padding, boundariesElement); 691 692 var rects = { 693 top: { 694 width: boundaries.width, 695 height: refRect.top - boundaries.top 696 }, 697 right: { 698 width: boundaries.right - refRect.right, 699 height: boundaries.height 700 }, 701 bottom: { 702 width: boundaries.width, 703 height: boundaries.bottom - refRect.bottom 704 }, 705 left: { 706 width: refRect.left - boundaries.left, 707 height: boundaries.height 708 } 709 }; 710 711 var sortedAreas = Object.keys(rects).map(function (key) { 712 return _extends({ 713 key: key 714 }, rects[key], { 715 area: getArea(rects[key]) 716 }); 717 }).sort(function (a, b) { 718 return b.area - a.area; 719 }); 720 721 var filteredAreas = sortedAreas.filter(function (_ref2) { 722 var width = _ref2.width, 723 height = _ref2.height; 724 return width >= popper.clientWidth && height >= popper.clientHeight; 725 }); 726 727 var computedPlacement = filteredAreas.length > 0 ? filteredAreas[0].key : sortedAreas[0].key; 728 729 var variation = placement.split('-')[1]; 730 731 return computedPlacement + (variation ? '-' + variation : ''); 732 } 733 734 /** 735 * Get offsets to the reference element 736 * @method 737 * @memberof Popper.Utils 738 * @param {Object} state 739 * @param {Element} popper - the popper element 740 * @param {Element} reference - the reference element (the popper will be relative to this) 741 * @param {Element} fixedPosition - is in fixed position mode 742 * @returns {Object}
742 An object containing the offsets which will be applied to the popper 743 */ 744 function getReferenceOffsets(state, popper, reference) { 745 var fixedPosition = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null; 746 747 var commonOffsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, getReferenceNode(reference)); 748 return getOffsetRectRelativeToArbitraryNode(reference, commonOffsetParent, fixedPosition); 749 } 750 751 /** 752 * Get the outer sizes of the given element (offset size + margins) 753 * @method 754 * @memberof Popper.Utils 755 * @argument {Element} element 756 * @returns {Object} object containing width and height properties 757 */ 758 function getOuterSizes(element) { 759 var window = element.ownerDocument.defaultView; 760 var styles = window.getComputedStyle(element); 761 var x = parseFloat(styles.marginTop || 0) + parseFloat(styles.marginBottom || 0); 762 var y = parseFloat(styles.marginLeft || 0) + parseFloat(styles.marginRight || 0
vendor: 4,087 bytes, lines 762-878
762); 763 var result = { 764 width: element.offsetWidth + y, 765 height: element.offsetHeight + x 766 }; 767 return result; 768 } 769 770 /** 771 * Get the opposite placement of the given one 772 * @method 773 * @memberof Popper.Utils 774 * @argument {String} placement 775 * @returns {String} flipped placement 776 */ 777 function getOppositePlacement(placement) { 778 var hash = { left: 'right', right: 'left', bottom: 'top', top: 'bottom' }; 779 return placement.replace(/left|right|bottom|top/g, function (matched) { 780 return hash[matched]; 781 }); 782 } 783 784 /** 785 * Get offsets to the popper 786 * @method 787 * @memberof Popper.Utils 788 * @param {Object} position - CSS position the Popper will get applied 789 * @param {HTMLElement} popper - the popper element 790 * @param {Object} referenceOffsets - the reference offsets (the popper will be relative to this) 791 * @param {String} placement - one of the valid placement options 792 * @returns {Object} popperOffsets - An object containing the offsets which will be applied to the popper 793 */ 794 function getPopperOffsets(popper, referenceOffsets, placement) { 795 placement = placement.split('-')[0]; 796 797 // Get popper node sizes 798 var popperRect = getOuterSizes(popper); 799 800 // Add position, width and height to our offsets object 801 var popperOffsets = { 802 width: popperRect.width, 803 height: popperRect.height 804 }; 805 806 // depending by the popper placement we have to compute its offsets slightly differently 807 var isHoriz = ['right', 'left'].indexOf(placement) !== -1; 808 var mainSide = isHoriz ? 'top' : 'left'; 809 var secondarySide = isHoriz ? 'left' : 'top'; 810 var measurement = isHoriz ? 'height' : 'width'; 811 var secondaryMeasurement = !isHoriz ? 'height' : 'width'; 812 813 popperOffsets[mainSide] = referenceOffsets[mainSide] + referenceOffsets[measurement] / 2 - popperRect[measurement] / 2; 814 if (placement === secondarySide) { 815 popperOffsets[secondarySide] = referenceOffsets[secondarySide] - popperRect[secondaryMeasurement]; 816 } else { 817 popperOffsets[secondarySide] = referenceOffsets[getOppositePlacement(secondarySide)]; 818 } 819 820 return popperOffsets; 821 } 822 823 /** 824 * Mimics the `find` method of Array 825 * @method 826 * @memberof Popper.Utils 827 * @argument {Array} arr 828 * @argument prop 829 * @argument value 830 * @returns index or -1 831 */ 832 function find(arr, check) { 833 // use native find if supported 834 if (Array.prototype.find) { 835 return arr.find(check); 836 } 837 838 // use `filter` to obtain the same behavior of `find` 839 return arr.filter(check)[0]; 840 } 841 842 /** 843 * Return the index of the matching object 844 * @method 845 * @memberof Popper.Utils 846 * @argument {Array} arr 847 * @argument prop 848 * @argument value 849 * @returns index or -1 850 */ 851 function findIndex(arr, prop, value) { 852 // use native findIndex if supported 853 if (Array.prototype.findIndex) { 854 return arr.findIndex(function (cur) { 855 return cur[prop] === value; 856 }); 857 } 858 859 // use `find` + `indexOf` if `findIndex` isn't supported 860 var match = find(arr, function (obj) { 861 return obj[prop] === value; 862 }); 863 return arr.indexOf(match); 864 } 865 866 /** 867 * Loop trough the list of modifiers and run them in order, 868 * each of them will then edit the data object. 869 * @method 870 * @memberof Popper.Utils 871 * @param {dataObject} data 872 * @param {Array} modifiers 873 * @param {String} ends - Optional modifier name used as stopper 874 * @returns {dataObject} 875 */ 876 function runModifiers(modifiers, data, ends) { 877 var modifiersToRun = ends === undefined ? modifiers : modifiers.slice(0, findIndex(modifiers, 'name', ends)); 878
vendor: 48,996 bytes, lines 879-2069
879 modifiersToRun.forEach(function (modifier) { 880 if (modifier['function']) { 881 // eslint-disable-line dot-notation 882 console.warn('`modifier.function` is deprecated, use `modifier.fn`!'); 883 } 884 var fn = modifier['function'] || modifier.fn; // eslint-disable-line dot-notation 885 if (modifier.enabled && isFunction(fn)) { 886 // Add properties to offsets to make them a complete clientRect object 887 // we do this before each modifier to make sure the previous one doesn't 888 // mess with these values 889 data.offsets.popper = getClientRect(data.offsets.popper); 890 data.offsets.reference = getClientRect(data.offsets.reference); 891 892 data = fn(data, modifier); 893 } 894 }); 895 896 return data; 897 } 898 899 /** 900 * Updates the position of the popper, computing the new offsets and applying 901 * the new style.<br /> 902 * Prefer `scheduleUpdate` over `update` because of performance reasons. 903 * @method 904 * @memberof Popper 905 */ 906 function update() { 907 // if popper is destroyed, don't perform any further update 908 if (this.state.isDestroyed) { 909 return; 910 } 911 912 var data = { 913 instance: this, 914 styles: {}, 915 arrowStyles: {}, 916 attributes: {}, 917 flipped: false, 918 offsets: {} 919 }; 920 921 // compute reference element offsets 922 data.offsets.reference = getReferenceOffsets(this.state, this.popper, this.reference, this.options.positionFixed); 923 924 // compute auto placement, store placement inside the data object, 925 // modifiers will be able to edit `placement` if needed 926 // and refer to originalPlacement to know the original value 927 data.placement = computeAutoPlacement(this.options.placement, data.offsets.reference, this.popper, this.reference, this.options.modifiers.flip.boundariesElement, this.options.modifiers.flip.padding); 928 929 // store the computed placement inside `originalPlacement` 930 data.originalPlacement = data.placement; 931 932 data.positionFixed = this.options.positionFixed; 933 934 // compute the popper offsets 935 data.offsets.popper = getPopperOffsets(this.popper, data.offsets.reference, data.placement); 936 937 data.offsets.popper.position = this.options.positionFixed ? 'fixed' : 'absolute'; 938 939 // run the modifiers 940 data = runModifiers(this.modifiers, data); 941 942 // the first `update` will call `onCreate` callback 943 // the other ones will call `onUpdate` callback 944 if (!this.state.isCreated) { 945 this.state.isCreated = true; 946 this.options.onCreate(data); 947 } else { 948 this.options.onUpdate(data); 949 } 950 } 951 952 /** 953 * Helper used to know if the given modifier is enabled. 954 * @method 955 * @memberof Popper.Utils 956 * @returns {Boolean} 957 */ 958 function isModifierEnabled(modifiers, modifierName) { 959 return modifiers.some(function (_ref) { 960 var name = _ref.name, 961 enabled = _ref.enabled; 962 return enabled && name === modifierName; 963 }); 964 } 965 966 /** 967 * Get the prefixed supported property name 968 * @method 969 * @memberof Popper.Utils 970 * @argument {String} property (camelCase) 971 * @returns {String} prefixed property (camelCase or PascalCase, depending on the vendor prefix) 972 */ 973 function getSupportedPropertyName(property) { 974 var prefixes = [false, 'ms', 'Webkit', 'Moz', 'O']; 975 var upperProp = property.charAt(0).toUpperCase() + property.slice(1); 976 977 for (var i = 0; i < prefixes.length; i++) { 978 var prefix = prefixes[i]; 979 var toCheck = prefix ? '' + prefix + upperProp : property; 980 if (typeof document.body.style[toCheck] !== 'undefined') { 981 return toCheck; 982 } 983 } 984 return null; 985 } 986 987 /** 988 * Destroys the popper. 989 * @method 990 * @memberof Popper 991 */ 992 function destroy() { 993 this.state.isDestroyed = true; 994 995 // touch DOM only if `applyStyle` modifier is enabled 996 if (isModifierEnabled(this.modifiers, 'applyStyle')) { 997 this.popper.removeAttribute('x-placement'); 998 this.popper.style.position = ''; 999 this.popper.style.top = ''; 1000 this.popper.style.left = ''; 1001 this.popper.style.right = ''; 1002 this.popper.style.bottom = ''; 1003 this.popper.style.willChange = ''; 1004 this.popper.style[getSupportedPropertyName('transform')] = ''; 1005 } 1006 1007 this.disableEventListeners(); 1008 1009 // remove the popper if user explicitly asked for the deletion on destroy 1010 // do not use `remove` because IE11 doesn't support it 1011 if (this.options.removeOnDestroy) { 1012 this.popper.parentNode.removeChild(this.popper); 1013 } 1014 return this; 1015 } 1016 1017 /** 1018 * Get the window associated with the element 1019 * @argument {Element} element 1020 * @returns {Window} 1021 */ 1022 function getWindow(element) { 1023 var ownerDocument = element.ownerDocument; 1024 return ownerDocument ? ownerDocument.defaultView : window; 1025 } 1026 1027 function attachToScrollParents(scrollParent, event, callback, scrollParents) { 1028 var isBody = scrollParent.nodeName === 'BODY'; 1029 var target = isBody ? scrollParent.ownerDocument.defaultView : scrollParent; 1030 target.addEventListener(event, callback, { passive: true }); 1031 1032 if (!isBody) { 1033 attachToScrollParents(getScrollParent(target.parentNode), event, callback, scrollParents); 1034 } 1035 scrollParents.push(target); 1036 } 1037 1038 /** 1039 * Setup needed event listeners used to update the popper position 1040 * @method 1041 * @memberof Popper.Utils 1042 * @private 1043 */ 1044 function setupEventListeners(reference, options, state, updateBound) { 1045 // Resize event listener on window 1046 state.updateBound = updateBound; 1047 getWindow(reference).addEventListener('resize', state.updateBound, { passive: true }); 1048 1049 // Scroll event listener on scroll parents 1050 var scrollElement = getScrollParent(reference); 1051 attachToScrollParents(scrollElement, 'scroll', state.updateBound, state.scrollParents); 1052 state.scrollElement = scrollElement; 1053 state.eventsEnabled = true; 1054 1055 return state; 1056 } 1057 1058 /** 1059 * It will add resize/scroll events and start recalculating 1060 * position of the popper element when they are triggered. 1061 * @method 1062 * @memberof Popper 1063 */ 1064 function enableEventListeners() { 1065 if (!this.state.eventsEnabled) { 1066 this.state = setupEventListeners(this.reference, this.options, this.state, this.scheduleUpdate); 1067 } 1068 } 1069 1070 /** 1071 * Remove event listeners used to update the popper position 1072 * @method 1073 * @memberof Popper.Utils 1074 * @private 1075 */ 1076 function removeEventListeners(reference, state) { 1077 // Remove resize event listener on window 1078 getWindow(reference).removeEventListener('resize', state.updateBound); 1079 1080 // Remove scroll event listener on scroll parents 1081 state.scrollParents.forEach(function (target) { 1082 target.removeEventListener('scroll', state.updateBound); 1083 }); 1084 1085 // Reset state 1086 state.updateBound = null; 1087 state.scrollParents = []; 1088 state.scrollElement = null; 1089 state.eventsEnabled = false; 1090 return state; 1091 } 1092 1093 /** 1094 * It will remove resize/scroll events and won't recalculate popper position 1095 * when they are triggered. It also won't trigger `onUpdate` callback anymore, 1096 * unless you call `update` method manually. 1097 * @method 1098 * @memberof Popper 1099 */ 1100 function disableEventListeners() { 1101 if (this.state.eventsEnabled) { 1102 cancelAnimationFrame(this.scheduleUpdate); 1103 this.state = removeEventListeners(this.reference, this.state); 1104 } 1105 } 1106 1107 /** 1108 * Tells if a given input is a number 1109 * @method 1110 * @memberof Popper.Utils 1111 * @param {*} input to check 1112 * @return {Boolean} 1113 */ 1114 function isNumeric(n) { 1115 return n !== '' && !isNaN(parseFloat(n)) && isFinite(n); 1116 } 1117 1118 /** 1119 * Set the style to the given popper 1120 * @method 1121 * @memberof Popper.Utils 1122 * @argument {Element} element - Element to apply the style to 1123 * @argument {Object} styles 1124 * Object with a list of properties and values which will be applied to the element 1125 */ 1126 function setStyles(element, styles) { 1127 Object.keys(styles).forEach(function (prop) { 1128 var unit = ''; 1129 // add unit if the value is numeric and is one of the following 1130 if (['width', 'height', 'top', 'right', 'bottom', 'left'].indexOf(prop) !== -1 && isNumeric(styles[prop])) { 1131 unit = 'px'; 1132 } 1133 element.style[prop] = styles[prop] + unit; 1134 }); 1135 } 1136 1137 /** 1138 * Set the attributes to the given popper 1139 * @method 1140 * @memberof Popper.Utils 1141 * @argument {Element} element - Element to apply the attributes to 1142 * @argument {Object} styles 1143 * Object with a list of properties and values which will be applied to the element 1144 */ 1145 function setAttributes(element, attributes) { 1146 Object.keys(attributes).forEach(function (prop) { 1147 var value = attributes[prop]; 1148 if (value !== false) { 1149 element.setAttribute(prop, attributes[prop]); 1150 } else { 1151 element.removeAttribute(prop); 1152 } 1153 }); 1154 } 1155 1156 /** 1157 * @function 1158 * @memberof Modifiers 1159 * @argument {Object} data - The data object generated by `update` method 1160 * @argument {Object} data.styles - List of style properties - values to apply to popper element 1161 * @argument {Object} data.attributes - List of attribute properties - values to apply to popper element 1162 * @argument {Object} options - Modifiers configuration and options 1163 * @returns {Object} The same data object 1164 */ 1165 function applyStyle(data) { 1166 // any property present in `data.styles` will be applied to the popper, 1167 // in this way we can make the 3rd party modifiers add custom styles to it 1168 // Be aware, modifiers could override the properties defined in the previous 1169 // lines of this modifier! 1170 setStyles(data.instance.popper, data.styles); 1171 1172 // any property present in `data.attributes` will be applied to the popper, 1173 // they will be set as HTML attributes of the element 1174 setAttributes(data.instance.popper, data.attributes); 1175 1176 // if arrowElement is defined and arrowStyles has some properties 1177 if (data.arrowElement && Object.keys(data.arrowStyles).length) { 1178 setStyles(data.arrowElement, data.arrowStyles); 1179 } 1180 1181 return data; 1182 } 1183 1184 /** 1185 * Set the x-placement attribute before everything else because it could be used 1186 * to add margins to the popper margins needs to be calculated to get the 1187 * correct popper offsets. 1188 * @method 1189 * @memberof Popper.modifiers 1190 * @param {HTMLElement} reference - The reference element used to position the popper 1191 * @param {HTMLElement} popper - The HTML element used as popper 1192 * @param {Object} options - Popper.js options 1193 */ 1194 function applyStyleOnLoad(reference, popper, options, modifierOptions, state) { 1195 // compute reference element offsets 1196 var referenceOffsets = getReferenceOffsets(state, popper, reference, options.positionFixed); 1197 1198 // compute auto placement, store placement inside the data object, 1199 // modifiers will be able to edit `placement` if needed 1200 // and refer to originalPlacement to know the original value 1201 var placement = computeAutoPlacement(options.placement, referenceOffsets, popper, reference, options.modifiers.flip.boundariesElement, options.modifiers.flip.padding); 1202 1203 popper.setAttribute('x-placement', placement); 1204 1205 // Apply `position` to popper before anything else because 1206 // without the position applied we can't guarantee correct computations 1207 setStyles(popper, { position: options.positionFixed ? 'fixed' : 'absolute' }); 1208 1209 return options; 1210 } 1211 1212 /** 1213 * @function 1214 * @memberof Popper.Utils 1215 * @argument {Object} data - The data object generated by `update` method 1216 * @argument {Boolean} shouldRound - If the offsets should be rounded at all 1217 * @returns {Object} The popper's position offsets rounded 1218 * 1219 * The tale of pixel-perfect positioning. It's still not 100% perfect, but as 1220 * good as it can be within reason. 1221 * Discussion here: https://github.com/FezVrasta/popper.js/pull/715 1222 * 1223 * Low DPI screens cause a popper to be blurry if not using full pixels (Safari 1224 * as well on High DPI screens). 1225 * 1226 * Firefox prefers no rounding for positioning and does not have blurriness on 1227 * high DPI screens. 1228 * 1229 * Only horizontal placement and left/right values need to be considered. 1230 */ 1231 function getRoundedOffsets(data, shouldRound) { 1232 var _data$offsets = data.offsets, 1233 popper = _data$offsets.popper, 1234 reference = _data$offsets.reference; 1235 var round = Math.round, 1236 floor = Math.floor; 1237 1238 var noRound = function noRound(v) { 1239 return v; 1240 }; 1241 1242 var referenceWidth = round(reference.width); 1243 var popperWidth = round(popper.width); 1244 1245 var isVertical = ['left', 'right'].indexOf(data.placement) !== -1; 1246 var isVariation = data.placement.indexOf('-') !== -1; 1247 var sameWidthParity = referenceWidth % 2 === popperWidth % 2; 1248 var bothOddWidth = referenceWidth % 2 === 1 && popperWidth % 2 === 1; 1249 1250 var horizontalToInteger = !shouldRound ? noRound : isVertical || isVariation || sameWidthParity ? round : floor; 1251 var verticalToInteger = !shouldRound ? noRound : round; 1252 1253 return { 1254 left: horizontalToInteger(bothOddWidth && !isVariation && shouldRound ? popper.left - 1 : popper.left), 1255 top: verticalToInteger(popper.top), 1256 bottom: verticalToInteger(popper.bottom), 1257 right: horizontalToInteger(popper.right) 1258 }; 1259 } 1260 1261 var isFirefox = isBrowser && /Firefox/i.test(navigator.userAgent); 1262 1263 /** 1264 * @function 1265 * @memberof Modifiers 1266 * @argument {Object} data - The data object generated by `update` method 1267 * @argument {Object} options - Modifiers configuration and options 1268 * @returns {Object} The data object, properly modified 1269 */ 1270 function computeStyle(data, options) { 1271 var x = options.x, 1272 y = options.y; 1273 var popper = data.offsets.popper; 1274 1275 // Remove this legacy support in Popper.js v2 1276 1277 var legacyGpuAccelerationOption = find(data.instance.modifiers, function (modifier) { 1278 return modifier.name === 'applyStyle'; 1279 }).gpuAcceleration; 1280 if (legacyGpuAccelerationOption !== undefined) { 1281 console.warn('WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!'); 1282 } 1283 var gpuAcceleration = legacyGpuAccelerationOption !== undefined ? legacyGpuAccelerationOption : options.gpuAcceleration; 1284 1285 var offsetParent = getOffsetParent(data.instance.popper); 1286 var offsetParentRect = getBoundingClientRect(offsetParent); 1287 1288 // Styles 1289 var styles = { 1290 position: popper.position 1291 }; 1292 1293 var offsets = getRoundedOffsets(data, window.devicePixelRatio < 2 || !isFirefox); 1294 1295 var sideA = x === 'bottom' ? 'top' : 'bottom'; 1296 var sideB = y === 'right' ? 'left' : 'right'; 1297 1298 // if gpuAcceleration is set to `true` and transform is supported, 1299 // we use `translate3d` to apply the position to the popper we 1300 // automatically use the supported prefixed version if needed 1301 var prefixedProperty = getSupportedPropertyName('transform'); 1302 1303 // now, let's make a step back and look at this code closely (wtf?) 1304 // If the content of the popper grows once it's been positioned, it 1305 // may happen that the popper gets misplaced because of the new content 1306 // overflowing its reference element 1307 // To avoid this problem, we provide two options (x and y), which allow 1308 // the consumer to define the offset origin. 1309 // If we position a popper on top of a reference element, we can set 1310 // `x` to `top` to make the popper grow towards its top instead of 1311 // its bottom. 1312 var left = void 0, 1313 top = void 0; 1314 if (sideA === 'bottom') { 1315 // when offsetParent is <html> the positioning is relative to the bottom of the screen (excluding the scrollbar) 1316 // and not the bottom of the html element 1317 if (offsetParent.nodeName === 'HTML') { 1318 top = -offsetParent.clientHeight + offsets.bottom; 1319 } else { 1320 top = -offsetParentRect.height + offsets.bottom; 1321 } 1322 } else { 1323 top = offsets.top; 1324 } 1325 if (sideB === 'right') { 1326 if (offsetParent.nodeName === 'HTML') { 1327 left = -offsetParent.clientWidth + offsets.right; 1328 } else { 1329 left = -offsetParentRect.width + offsets.right; 1330 } 1331 } else { 1332 left = offsets.left; 1333 } 1334 if (gpuAcceleration && prefixedProperty) { 1335 styles[prefixedProperty] = 'translate3d(' + left + 'px, ' + top + 'px, 0)'; 1336 styles[sideA] = 0; 1337 styles[sideB] = 0; 1338 styles.willChange = 'transform'; 1339 } else { 1340 // othwerise, we use the standard `top`, `left`, `bottom` and `right` properties 1341 var invertTop = sideA === 'bottom' ? -1 : 1; 1342 var invertLeft = sideB === 'right' ? -1 : 1; 1343 styles[sideA] = top * invertTop; 1344 styles[sideB] = left * invertLeft; 1345 styles.willChange = sideA + ', ' + sideB; 1346 } 1347 1348 // Attributes 1349 var attributes = { 1350 'x-placement': data.placement 1351 }; 1352 1353 // Update `data` attributes, styles and arrowStyles 1354 data.attributes = _extends({}, attributes, data.attributes); 1355 data.styles = _extends({}, styles, data.styles); 1356 data.arrowStyles = _extends({}, data.offsets.arrow, data.arrowStyles); 1357 1358 return data; 1359 } 1360 1361 /** 1362 * Helper used to know if the given modifier depends from another one.<br /> 1363 * It checks if the needed modifier is listed and enabled. 1364 * @method 1365 * @memberof Popper.Utils 1366 * @param {Array} modifiers - list of modifiers 1367 * @param {String} requestingName - name of requesting modifier 1368 * @param {String} requestedName - name of requested modifier 1369 * @returns {Boolean} 1370 */ 1371 function isModifierRequired(modifiers, requestingName, requestedName) { 1372 var requesting = find(modifiers, function (_ref) { 1373 var name = _ref.name; 1374 return name === requestingName; 1375 }); 1376 1377 var isRequired = !!requesting && modifiers.some(function (modifier) { 1378 return modifier.name === requestedName && modifier.enabled && modifier.order < requesting.order; 1379 }); 1380 1381 if (!isRequired) { 1382 var _requesting = '`' + requestingName + '`'; 1383 var requested = '`' + requestedName + '`'; 1384 console.warn(requested + ' modifier is required by ' + _requesting + ' modifier in order to work, be sure to include it before ' + _requesting + '!'); 1385 } 1386 return isRequired; 1387 } 1388 1389 /** 1390 * @function 1391 * @memberof Modifiers 1392 * @argument {Object} data - The data object generated by update method 1393 * @argument {Object} options - Modifiers configuration and options 1394 * @returns {Object} The data object, properly modified 1395 */ 1396 function arrow(data, options) { 1397 var _data$offsets$arrow; 1398 1399 // arrow depends on keepTogether in order to work 1400 if (!isModifierRequired(data.instance.modifiers, 'arrow', 'keepTogether')) { 1401 return data; 1402 } 1403 1404 var arrowElement = options.element; 1405 1406 // if arrowElement is a string, suppose it's a CSS selector 1407 if (typeof arrowElement === 'string') { 1408 arrowElement = data.instance.popper.querySelector(arrowElement); 1409 1410 // if arrowElement is not found, don't run the modifier 1411 if (!arrowElement) { 1412 return data; 1413 } 1414 } else { 1415 // if the arrowElement isn't a query selector we must check that the 1416 // provided DOM node is child of its popper node 1417 if (!data.instance.popper.contains(arrowElement)) { 1418 console.warn('WARNING: `arrow.element` must be child of its popper element!'); 1419 return data; 1420 } 1421 } 1422 1423 var placement = data.placement.split('-')[0]; 1424 var _data$offsets = data.offsets, 1425 popper = _data$offsets.popper, 1426 reference = _data$offsets.reference; 1427 1428 var isVertical = ['left', 'right'].indexOf(placement) !== -1; 1429 1430 var len = isVertical ? 'height' : 'width'; 1431 var sideCapitalized = isVertical ? 'Top' : 'Left'; 1432 var side = sideCapitalized.toLowerCase(); 1433 var altSide = isVertical ? 'left' : 'top'; 1434 var opSide = isVertical ? 'bottom' : 'right'; 1435 var arrowElementSize = getOuterSizes(arrowElement)[len]; 1436 1437 // 1438 // extends keepTogether behavior making sure the popper and its 1439 // reference have enough pixels in conjunction 1440 // 1441 1442 // top/left side 1443 if (reference[opSide] - arrowElementSize < popper[side]) { 1444 data.offsets.popper[side] -= popper[side] - (reference[opSide] - arrowElementSize); 1445 } 1446 // bottom/right side 1447 if (reference[side] + arrowElementSize > popper[opSide]) { 1448 data.offsets.popper[side] += reference[side] + arrowElementSize - popper[opSide]; 1449 } 1450 data.offsets.popper = getClientRect(data.offsets.popper); 1451 1452 // compute center of the popper 1453 var center = reference[side] + reference[len] / 2 - arrowElementSize / 2; 1454 1455 // Compute the sideValue using the updated popper offsets 1456 // take popper margin in account because we don't have this info available 1457 var css = getStyleComputedProperty(data.instance.popper); 1458 var popperMarginSide = parseFloat(css['margin' + sideCapitalized]); 1459 var popperBorderSide = parseFloat(css['border' + sideCapitalized + 'Width']); 1460 var sideValue = center - data.offsets.popper[side] - popperMarginSide - popperBorderSide; 1461 1462 // prevent arrowElement from being placed not contiguously to its popper 1463 sideValue = Math.max(Math.min(popper[len] - arrowElementSize, sideValue), 0); 1464 1465 data.arrowElement = arrowElement; 1466 data.offsets.arrow = (_data$offsets$arrow = {}, defineProperty(_data$offsets$arrow, side, Math.round(sideValue)), defineProperty(_data$offsets$arrow, altSide, ''), _data$offsets$arrow); 1467 1468 return data; 1469 } 1470 1471 /** 1472 * Get the opposite placement variation of the given one 1473 * @method 1474 * @memberof Popper.Utils 1475 * @argument {String} placement variation 1476 * @returns {String} flipped placement variation 1477 */ 1478 function getOppositeVariation(variation) { 1479 if (variation === 'end') { 1480 return 'start'; 1481 } else if (variation === 'start') { 1482 return 'end'; 1483 } 1484 return variation; 1485 } 1486 1487 /** 1488 * List of accepted placements to use as values of the `placement` option.<br /> 1489 * Valid placements are: 1490 * - `auto` 1491 * - `top` 1492 * - `right` 1493 * - `bottom` 1494 * - `left` 1495 * 1496 * Each placement can have a variation from this list: 1497 * - `-start` 1498 * - `-end` 1499 * 1500 * Variations are interpreted easily if you think of them as the left to right 1501 * written languages. Horizontally (`top` and `bottom`), `start` is left and `end` 1502 * is right.<br /> 1503 * Vertically (`left` and `right`), `start` is top and `end` is bottom. 1504 * 1505 * Some valid examples are: 1506 * - `top-end` (on top of reference, right aligned) 1507 * - `right-start` (on right of reference, top aligned) 1508 * - `bottom` (on bottom, centered) 1509 * - `auto-end` (on the side with more space available, alignment depends by placement) 1510 * 1511 * @static 1512 * @type {Array} 1513 * @enum {String} 1514 * @readonly 1515 * @method placements 1516 * @memberof Popper 1517 */ 1518 var placements = ['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']; 1519 1520 // Get rid of `auto` `auto-start` and `auto-end` 1521 var validPlacements = placements.slice(3); 1522 1523 /** 1524 * Given an initial placement, returns all the subsequent placements 1525 * clockwise (or counter-clockwise). 1526 * 1527 * @method 1528 * @memberof Popper.Utils 1529 * @argument {String} placement - A valid placement (it accepts variations) 1530 * @argument {Boolean} counter - Set to true to walk the placements counterclockwise 1531 * @returns {Array} placements including their variations 1532 */ 1533 function clockwise(placement) { 1534 var counter = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; 1535 1536 var index = validPlacements.indexOf(placement); 1537 var arr = validPlacements.slice(index + 1).concat(validPlacements.slice(0, index)); 1538 return counter ? arr.reverse() : arr; 1539 } 1540 1541 var BEHAVIORS = { 1542 FLIP: 'flip', 1543 CLOCKWISE: 'clockwise', 1544 COUNTERCLOCKWISE: 'counterclockwise' 1545 }; 1546 1547 /** 1548 * @function 1549 * @memberof Modifiers 1550 * @argument {Object} data - The data object generated by update method 1551 * @argument {Object} options - Modifiers configuration and options 1552 * @returns {Object} The data object, properly modified 1553 */ 1554 function flip(data, options) { 1555 // if `inner` modifier is enabled, we can't use the `flip` modifier 1556 if (isModifierEnabled(data.instance.modifiers, 'inner')) { 1557 return data; 1558 } 1559 1560 if (data.flipped && data.placement === data.originalPlacement) { 1561 // seems like flip is trying to loop, probably there's not enough space on any of the flippable sides 1562 return data; 1563 } 1564 1565 var boundaries = getBoundaries(data.instance.popper, data.instance.reference, options.padding, options.boundariesElement, data.positionFixed); 1566 1567 var placement = data.placement.split('-')[0]; 1568 var placementOpposite = getOppositePlacement(placement); 1569 var variation = data.placement.split('-')[1] || ''; 1570 1571 var flipOrder = []; 1572 1573 switch (options.behavior) { 1574 case BEHAVIORS.FLIP: 1575 flipOrder = [placement, placementOpposite]; 1576 break; 1577 case BEHAVIORS.CLOCKWISE: 1578 flipOrder = clockwise(placement); 1579 break; 1580 case BEHAVIORS.COUNTERCLOCKWISE: 1581 flipOrder = clockwise(placement, true); 1582 break; 1583 default: 1584 flipOrder = options.behavior; 1585 } 1586 1587 flipOrder.forEach(function (step, index) { 1588 if (placement !== step || flipOrder.length === index + 1) { 1589 return data; 1590 } 1591 1592 placement = data.placement.split('-')[0]; 1593 placementOpposite = getOppositePlacement(placement); 1594 1595 var popperOffsets = data.offsets.popper; 1596 var refOffsets = data.offsets.reference; 1597 1598 // using floor because the reference offsets may contain decimals we are not going to consider here 1599 var floor = Math.floor; 1600 var overlapsRef = placement === 'left' && floor(popperOffsets.right) > floor(refOffsets.left) || placement === 'right' && floor(popperOffsets.left) < floor(refOffsets.right) || placement === 'top' && floor(popperOffsets.bottom) > floor(refOffsets.top) || placement === 'bottom' && floor(popperOffsets.top) < floor(refOffsets.bottom); 1601 1602 var overflowsLeft = floor(popperOffsets.left) < floor(boundaries.left); 1603 var overflowsRight = floor(popperOffsets.right) > floor(boundaries.right); 1604 var overflowsTop = floor(popperOffsets.top) < floor(boundaries.top); 1605 var overflowsBottom = floor(popperOffsets.bottom) > floor(boundaries.bottom); 1606 1607 var overflowsBoundaries = placement === 'left' && overflowsLeft || placement === 'right' && overflowsRight || placement === 'top' && overflowsTop || placement === 'bottom' && overflowsBottom; 1608 1609 // flip the variation if required 1610 var isVertical = ['top', 'bottom'].indexOf(placement) !== -1; 1611 1612 // flips variation if reference element overflows boundaries 1613 var flippedVariationByRef = !!options.flipVariations && (isVertical && variation === 'start' && overflowsLeft || isVertical && variation === 'end' && overflowsRight || !isVertical && variation === 'start' && overflowsTop || !isVertical && variation === 'end' && overflowsBottom); 1614 1615 // flips variation if popper content overflows boundaries 1616 var flippedVariationByContent = !!options.flipVariationsByContent && (isVertical && variation === 'start' && overflowsRight || isVertical && variation === 'end' && overflowsLeft || !isVertical && variation === 'start' && overflowsBottom || !isVertical && variation === 'end' && overflowsTop); 1617 1618 var flippedVariation = flippedVariationByRef || flippedVariationByContent; 1619 1620 if (overlapsRef || overflowsBoundaries || flippedVariation) { 1621 // this boolean to detect any flip loop 1622 data.flipped = true; 1623 1624 if (overlapsRef || overflowsBoundaries) { 1625 placement = flipOrder[index + 1]; 1626 } 1627 1628 if (flippedVariation) { 1629 variation = getOppositeVariation(variation); 1630 } 1631 1632 data.placement = placement + (variation ? '-' + variation : ''); 1633 1634 // this object contains `position`, we want to preserve it along with 1635 // any additional property we may add in the future 1636 data.offsets.popper = _extends({}, data.offsets.popper, getPopperOffsets(data.instance.popper, data.offsets.reference, data.placement)); 1637 1638 data = runModifiers(data.instance.modifiers, data, 'flip'); 1639 } 1640 }); 1641 return data; 1642 } 1643 1644 /** 1645 * @function 1646 * @memberof Modifiers 1647 * @argument {Object} data - The data object generated by update method 1648 * @argument {Object} options - Modifiers configuration and options 1649 * @returns {Object} The data object, properly modified 1650 */ 1651 function keepTogether(data) { 1652 var _data$offsets = data.offsets, 1653 popper = _data$offsets.popper, 1654 reference = _data$offsets.reference; 1655 1656 var placement = data.placement.split('-')[0]; 1657 var floor = Math.floor; 1658 var isVertical = ['top', 'bottom'].indexOf(placement) !== -1; 1659 var side = isVertical ? 'right' : 'bottom'; 1660 var opSide = isVertical ? 'left' : 'top'; 1661 var measurement = isVertical ? 'width' : 'height'; 1662 1663 if (popper[side] < floor(reference[opSide])) { 1664 data.offsets.popper[opSide] = floor(reference[opSide]) - popper[measurement]; 1665 } 1666 if (popper[opSide] > floor(reference[side])) { 1667 data.offsets.popper[opSide] = floor(reference[side]); 1668 } 1669 1670 return data; 1671 } 1672 1673 /** 1674 * Converts a string containing value + unit into a px value number 1675 * @function 1676 * @memberof {modifiers~offset} 1677 * @private 1678 * @argument {String} str - Value + unit string 1679 * @argument {String} measurement - `height` or `width` 1680 * @argument {Object} popperOffsets 1681 * @argument {Object} referenceOffsets 1682 * @returns {Number|String} 1683 * Value in pixels, or original string if no values were extracted 1684 */ 1685 function toValue(str, measurement, popperOffsets, referenceOffsets) { 1686 // separate value from unit 1687 var split = str.match(/((?:\-|\+)?\d*\.?\d*)(.*)/); 1688 var value = +split[1]; 1689 var unit = split[2]; 1690 1691 // If it's not a number it's an operator, I guess 1692 if (!value) { 1693 return str; 1694 } 1695 1696 if (unit.indexOf('%') === 0) { 1697 var element = void 0; 1698 switch (unit) { 1699 case '%p': 1700 element = popperOffsets; 1701 break; 1702 case '%': 1703 case '%r': 1704 default: 1705 element = referenceOffsets; 1706 } 1707 1708 var rect = getClientRect(element); 1709 return rect[measurement] / 100 * value; 1710 } else if (unit === 'vh' || unit === 'vw') { 1711 // if is a vh or vw, we calculate the size based on the viewport 1712 var size = void 0; 1713 if (unit === 'vh') { 1714 size = Math.max(document.documentElement.clientHeight, window.innerHeight || 0); 1715 } else { 1716 size = Math.max(document.documentElement.clientWidth, window.innerWidth || 0); 1717 } 1718 return size / 100 * value; 1719 } else { 1720 // if is an explicit pixel unit, we get rid of the unit and keep the value 1721 // if is an implicit unit, it's px, and we return just the value 1722 return value; 1723 } 1724 } 1725 1726 /** 1727 * Parse an `offset` string to extrapolate `x` and `y` numeric offsets. 1728 * @function 1729 * @memberof {modifiers~offset} 1730 * @private 1731 * @argument {String} offset 1732 * @argument {Object} popperOffsets 1733 * @argument {Object} referenceOffsets 1734 * @argument {String} basePlacement 1735 * @returns {Array} a two cells array with x and y offsets in numbers 1736 */ 1737 function parseOffset(offset, popperOffsets, referenceOffsets, basePlacement) { 1738 var offsets = [0, 0]; 1739 1740 // Use height if placement is left or right and index is 0 otherwise use width 1741 // in this way the first offset will use an axis and the second one 1742 // will use the other one 1743 var useHeight = ['right', 'left'].indexOf(basePlacement) !== -1; 1744 1745 // Split the offset string to obtain a list of values and operands 1746 // The regex addresses values with the plus or minus sign in front (+10, -20, etc) 1747 var fragments = offset.split(/(\+|\-)/).map(function (frag) { 1748 return frag.trim(); 1749 }); 1750 1751 // Detect if the offset string contains a pair of values or a single one 1752 // they could be separated by comma or space 1753 var divider = fragments.indexOf(find(fragments, function (frag) { 1754 return frag.search(/,|\s/) !== -1; 1755 })); 1756 1757 if (fragments[divider] && fragments[divider].indexOf(',') === -1) { 1758 console.warn('Offsets separated by white space(s) are deprecated, use a comma (,) instead.'); 1759 } 1760 1761 // If divider is found, we divide the list of values and operands to divide 1762 // them by ofset X and Y. 1763 var splitRegex = /\s*,\s*|\s+/; 1764 var ops = divider !== -1 ? [fragments.slice(0, divider).concat([fragments[divider].split(splitRegex)[0]]), [fragments[divider].split(splitRegex)[1]].concat(fragments.slice(divider + 1))] : [fragments]; 1765 1766 // Convert the values with units to absolute pixels to allow our computations 1767 ops = ops.map(function (op, index) { 1768 // Most of the units rely on the orientation of the popper 1769 var measurement = (index === 1 ? !useHeight : useHeight) ? 'height' : 'width'; 1770 var mergeWithPrevious = false; 1771 return op 1772 // This aggregates any `+` or `-` sign that aren't considered operators 1773 // e.g.: 10 + +5 => [10, +, +5] 1774 .reduce(function (a, b) { 1775 if (a[a.length - 1] === '' && ['+', '-'].indexOf(b) !== -1) { 1776 a[a.length - 1] = b; 1777 mergeWithPrevious = true; 1778 return a; 1779 } else if (mergeWithPrevious) { 1780 a[a.length - 1] += b; 1781 mergeWithPrevious = false; 1782 return a; 1783 } else { 1784 return a.concat(b); 1785 } 1786 }, []) 1787 // Here we convert the string values into number values (in px) 1788 .map(function (str) { 1789 return toValue(str, measurement, popperOffsets, referenceOffsets); 1790 }); 1791 }); 1792 1793 // Loop trough the offsets arrays and execute the operations 1794 ops.forEach(function (op, index) { 1795 op.forEach(function (frag, index2) { 1796 if (isNumeric(frag)) { 1797 offsets[index] += frag * (op[index2 - 1] === '-' ? -1 : 1); 1798 } 1799 }); 1800 }); 1801 return offsets; 1802 } 1803 1804 /** 1805 * @function 1806 * @memberof Modifiers 1807 * @argument {Object} data - The data object generated by update method 1808 * @argument {Object} options - Modifiers configuration and options 1809 * @argument {Number|String} options.offset=0 1810 * The offset value as described in the modifier description 1811 * @returns {Object} The data object, properly modified 1812 */ 1813 function offset(data, _ref) { 1814 var offset = _ref.offset; 1815 var placement = data.placement, 1816 _data$offsets = data.offsets, 1817 popper = _data$offsets.popper, 1818 reference = _data$offsets.reference; 1819 1820 var basePlacement = placement.split('-')[0]; 1821 1822 var offsets = void 0; 1823 if (isNumeric(+offset)) { 1824 offsets = [+offset, 0]; 1825 } else { 1826 offsets = parseOffset(offset, popper, reference, basePlacement); 1827 } 1828 1829 if (basePlacement === 'left') { 1830 popper.top += offsets[0]; 1831 popper.left -= offsets[1]; 1832 } else if (basePlacement === 'right') { 1833 popper.top += offsets[0]; 1834 popper.left += offsets[1]; 1835 } else if (basePlacement === 'top') { 1836 popper.left += offsets[0]; 1837 popper.top -= offsets[1]; 1838 } else if (basePlacement === 'bottom') { 1839 popper.left += offsets[0]; 1840 popper.top += offsets[1]; 1841 } 1842 1843 data.popper = popper; 1844 return data; 1845 } 1846 1847 /** 1848 * @function 1849 * @memberof Modifiers 1850 * @argument {Object} data - The data object generated by `update` method 1851 * @argument {Object} options - Modifiers configuration and options 1852 * @returns {Object} The data object, properly modified 1853 */ 1854 function preventOverflow(data, options) { 1855 var boundariesElement = options.boundariesElement || getOffsetParent(data.instance.popper); 1856 1857 // If offsetParent is the reference element, we really want to 1858 // go one step up and use the next offsetParent as reference to 1859 // avoid to make this modifier completely useless and look like broken 1860 if (data.instance.reference === boundariesElement) { 1861 boundariesElement = getOffsetParent(boundariesElement); 1862 } 1863 1864 // NOTE: DOM access here 1865 // resets the popper's position so that the document size can be calculated excluding 1866 // the size of the popper element itself 1867 var transformProp = getSupportedPropertyName('transform'); 1868 var popperStyles = data.instance.popper.style; // assignment to help minification 1869 var top = popperStyles.top, 1870 left = popperStyles.left, 1871 transform = popperStyles[transformProp]; 1872 1873 popperStyles.top = ''; 1874 popperStyles.left = ''; 1875 popperStyles[transformProp] = ''; 1876 1877 var boundaries = getBoundaries(data.instance.popper, data.instance.reference, options.padding, boundariesElement, data.positionFixed); 1878 1879 // NOTE: DOM access here 1880 // restores the original style properties after the offsets have been computed 1881 popperStyles.top = top; 1882 popperStyles.left = left; 1883 popperStyles[transformProp] = transform; 1884 1885 options.boundaries = boundaries; 1886 1887 var order = options.priority; 1888 var popper = data.offsets.popper; 1889 1890 var check = { 1891 primary: function primary(placement) { 1892 var value = popper[placement]; 1893 if (popper[placement] < boundaries[placement] && !options.escapeWithReference) { 1894 value = Math.max(popper[placement], boundaries[placement]); 1895 } 1896 return defineProperty({}, placement, value); 1897 }, 1898 secondary: function secondary(placement) { 1899 var mainSide = placement === 'right' ? 'left' : 'top'; 1900 var value = popper[mainSide]; 1901 if (popper[placement] > boundaries[placement] && !options.escapeWithReference) { 1902 value = Math.min(popper[mainSide], boundaries[placement] - (placement === 'right' ? popper.width : popper.height)); 1903 } 1904 return defineProperty({}, mainSide, value); 1905 } 1906 }; 1907 1908 order.forEach(function (placement) { 1909 var side = ['left', 'top'].indexOf(placement) !== -1 ? 'primary' : 'secondary'; 1910 popper = _extends({}, popper, check[side](placement)); 1911 }); 1912 1913 data.offsets.popper = popper; 1914 1915 return data; 1916 } 1917 1918 /** 1919 * @function 1920 * @memberof Modifiers 1921 * @argument {Object} data - The data object generated by `update` method 1922 * @argument {Object} options - Modifiers configuration and options 1923 * @returns {Object} The data object, properly modified 1924 */ 1925 function shift(data) { 1926 var placement = data.placement; 1927 var basePlacement = placement.split('-')[0]; 1928 var shiftvariation = placement.split('-')[1]; 1929 1930 // if shift shiftvariation is specified, run the modifier 1931 if (shiftvariation) { 1932 var _data$offsets = data.offsets, 1933 reference = _data$offsets.reference, 1934 popper = _data$offsets.popper; 1935 1936 var isVertical = ['bottom', 'top'].indexOf(basePlacement) !== -1; 1937 var side = isVertical ? 'left' : 'top'; 1938 var measurement = isVertical ? 'width' : 'height'; 1939 1940 var shiftOffsets = { 1941 start: defineProperty({}, side, reference[side]), 1942 end: defineProperty({}, side, reference[side] + reference[measurement] - popper[measurement]) 1943 }; 1944 1945 data.offsets.popper = _extends({}, popper, shiftOffsets[shiftvariation]); 1946 } 1947 1948 return data; 1949 } 1950 1951 /** 1952 * @function 1953 * @memberof Modifiers 1954 * @argument {Object} data - The data object generated by update method 1955 * @argument {Object} options - Modifiers configuration and options 1956 * @returns {Object} The data object, properly modified 1957 */ 1958 function hide(data) { 1959 if (!isModifierRequired(data.instance.modifiers, 'hide', 'preventOverflow')) { 1960 return data; 1961 } 1962 1963 var refRect = data.offsets.reference; 1964 var bound = find(data.instance.modifiers, function (modifier) { 1965 return modifier.name === 'preventOverflow'; 1966 }).boundaries; 1967 1968 if (refRect.bottom < bound.top || refRect.left > bound.right || refRect.top > bound.bottom || refRect.right < bound.left) { 1969 // Avoid unnecessary DOM access if visibility hasn't changed 1970 if (data.hide === true) { 1971 return data; 1972 } 1973 1974 data.hide = true; 1975 data.attributes['x-out-of-boundaries'] = ''; 1976 } else { 1977 // Avoid unnecessary DOM access if visibility hasn't changed 1978 if (data.hide === false) { 1979 return data; 1980 } 1981 1982 data.hide = false; 1983 data.attributes['x-out-of-boundaries'] = false; 1984 } 1985 1986 return data; 1987 } 1988 1989 /** 1990 * @function 1991 * @memberof Modifiers 1992 * @argument {Object} data - The data object generated by `update` method 1993 * @argument {Object} options - Modifiers configuration and options 1994 * @returns {Object} The data object, properly modified 1995 */ 1996 function inner(data) { 1997 var placement = data.placement; 1998 var basePlacement = placement.split('-')[0]; 1999 var _data$offsets = data.offsets, 2000 popper = _data$offsets.popper, 2001 reference = _data$offsets.reference; 2002 2003 var isHoriz = ['left', 'right'].indexOf(basePlacement) !== -1; 2004 2005 var subtractLength = ['top', 'left'].indexOf(basePlacement) === -1; 2006 2007 popper[isHoriz ? 'left' : 'top'] = reference[basePlacement] - (subtractLength ? popper[isHoriz ? 'width' : 'height'] : 0); 2008 2009 data.placement = getOppositePlacement(placement); 2010 data.offsets.popper = getClientRect(popper); 2011 2012 return data; 2013 } 2014 2015 /** 2016 * Modifier function, each modifier can have a function of this type assigned 2017 * to its `fn` property.<br /> 2018 * These functions will be called on each update, this means that you must 2019 * make sure they are performant enough to avoid performance bottlenecks. 2020 * 2021 * @function ModifierFn 2022 * @argument {dataObject} data - The data object generated by `update` method 2023 * @argument {Object} options - Modifiers configuration and options 2024 * @returns {dataObject} The data object, properly modified 2025 */ 2026 2027 /** 2028 * Modifiers are plugins used to alter the behavior of your poppers.<br /> 2029 * Popper.js uses a set of 9 modifiers to provide all the basic functionalities 2030 * needed by the library. 2031 * 2032 * Usually you don't want to override the `order`, `fn` and `onLoad` props. 2033 * All the other properties are configurations that could be tweaked. 2034 * @namespace modifiers 2035 */ 2036 var modifiers = { 2037 /** 2038 * Modifier used to shift the popper on the start or end of its reference 2039 * element.<br /> 2040 * It will read the variation of the `placement` property.<br /> 2041 * It can be one either `-end` or `-start`. 2042 * @memberof modifiers 2043 * @inner 2044 */ 2045 shift: { 2046 /** @prop {number} order=100 - Index used to define the order of execution */ 2047 order: 100, 2048 /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ 2049 enabled: true, 2050 /** @prop {ModifierFn} */ 2051 fn: shift 2052 }, 2053 2054 /** 2055 * The `offset` modifier can shift your popper on both its axis. 2056 * 2057 * It accepts the following units: 2058 * - `px` or unit-less, interpreted as pixels 2059 * - `%` or `%r`, percentage relative to the length of the reference element 2060 * - `%p`, percentage relative to the length of the popper element 2061 * - `vw`, CSS viewport width unit 2062 * - `vh`, CSS viewport height unit 2063 * 2064 * For length is intended the main axis relative to the placement of the popper.<br /> 2065 * This means that if the placement is `top` or `bottom`, the length will be the 2066 * `width`. In case of `left` or `right`, it will be the `height`. 2067 * 2068 * You can provide a single value (as `Number` or `String`), or a pair of values 2069 * as `String` divided by a comma or one (or more) white space
2069s.<br /> 2070 * The latter is a deprecated method because it leads to confusion and will be 2071 * removed in v2.<br /> 2072 * Additionally, it accepts additions and subtractions between different units. 2073 * Note that multiplications and divisions aren't supported. 2074 * 2075 * Valid examples are: 2076 * ``` 2077 * 10 2078 * '10%' 2079 * '10, 10' 2080 * '10%, 10' 2081 * '10 + 10%' 2082 * '10 - 5vh + 3%' 2083 * '-10px + 5vh, 5px - 6%' 2084 * ``` 2085 * > **NB**: If you desire to apply offsets to your poppers in a way that may make them overlap 2086 * > with their reference element, unfortunately, you will have to disable the `flip` modifier. 2087 * > You can read more on this at this [issue](https://github.com/FezVrasta/popper.js/issues/373). 2088 * 2089 * @memberof modifiers 2090 * @inner 2091 */ 2092 offset: { 2093 /** @prop {number} order=200 - Index used to define the order of execution */ 2094 order: 200, 2095 /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ 2096 enabled: true, 2097 /** @prop {ModifierFn} */ 2098 fn: offset, 2099 /** @prop {Number|String} offset=0 2100 * The offset value as described in the modifier description 2101 */ 2102 offset: 0 2103 }, 2104 2105 /** 2106 * Modifier used to prevent the popper from being positioned outside the boundary. 2107 * 2108 * A scenario exists where the reference itself is not within the boundaries.<br /> 2109 * We can say it has "escaped the boundaries" — or just "escaped".<br /> 2110 * In this case we need to decide whether the popper should either: 2111 * 2112 * - detach from the reference and remain "trapped" in the boundaries, or 2113 * - if it should ignore the boundary and "escape with its reference" 2114 * 2115 * When `escapeWithReference` is set to`true` and reference is completely 2116 * outside its boundaries, the popper will overflow (or completely leave) 2117 * the boundaries in order to remain attached to the edge of the reference. 2118 * 2119 * @memberof modifiers 2120 * @inner 2121 */ 2122 preventOverflow: { 2123 /** @prop {number} order=300 - Index used to define the order of execution */ 2124 order: 300, 2125 /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ 2126 enabled: true, 2127 /** @prop {ModifierFn} */ 2128 fn: preventOverflow, 2129 /** 2130 * @prop {Array} [priority=['left','right','top','bottom']] 2131 * Popper will try to prevent overflow following these priorities by default, 2132 * then, it could overflow on the left and on top of the `boundariesElement` 2133 */ 2134 priority: ['left', 'right', 'top', 'bottom'], 2135 /** 2136 * @prop {number} padding=5 2137 * Amount of pixel used to define a minimum distance between the boundaries 2138 * and the popper. This makes sure the popper always has a little padding 2139 * between the edges of its container 2140 */ 2141 padding: 5, 2142 /** 2143 * @prop {String|HTMLElement} boundariesElement='scrollParent' 2144 * Boundaries used by the modifier. Can be `scrollParent`, `window`, 2145 * `viewport` or any DOM element. 2146 */ 2147 boundariesElement: 'scrollParent' 2148 }, 2149 2150 /** 2151 * Modifier used to make sure the reference and its popper stay near each other 2152 * without leaving any gap between the two. Especially useful when the arrow is 2153 * enabled and you want to ensure that it points to its reference element. 2154 * It cares only about the first axis. You can still have poppers with margin 2155 * between the popper and its reference element. 2156 * @memberof modifiers 2157 * @inner 2158 */ 2159 keepTogether: { 2160 /** @prop {number} order=400 - Index used to define the order of execution */ 2161 order: 400, 2162 /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ 2163 enabled: true, 2164 /** @prop {ModifierFn} */ 2165 fn: keepTogether 2166 }, 2167 2168 /** 2169 * This modifier is used to move the `arrowElement` of the popper to make 2170 * sure it is positioned between the reference element and its popper element. 2171 * It will read the outer size of the `arrowElement` node to detect how many 2172 * pixels of conjunction are needed. 2173 * 2174 * It has no effect if no `arrowElement` is provided. 2175 * @memberof modifiers 2176 * @inner 2177 */ 2178 arrow: { 2179 /** @prop {number} order=500 - Index used to define the order of execution */ 2180 order: 500, 2181 /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ 2182 enabled: true, 2183 /** @prop {ModifierFn} */ 2184 fn: arrow, 2185 /** @prop {String|HTMLElement} element='[x-arrow]' - Selector or node used as arrow */ 2186 element: '[x-arrow]' 2187 }, 2188 2189 /** 2190 * Modifier used to flip the popper's placement when it starts to overlap its 2191 * reference element. 2192 * 2193 * Requires the `preventOverflow` modifier before it in order to work. 2194 * 2195 * **NOTE:** this modifier will interrupt the current update cycle and will 2196 * restart it if it detects the need to flip the placement. 2197 * @memberof modifiers 2198 * @inner 2199 */ 2200 flip: { 2201 /** @prop {number} order=600 - Index used to define the order of execution */ 2202 order: 600, 2203 /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ 2204 enabled: true, 2205 /** @prop {ModifierFn} */ 2206 fn: flip, 2207 /** 2208 * @prop {String|Array} behavior='flip' 2209 * The behavior used to change the popper's placement. It can be one of 2210 * `flip`, `clockwise`, `counterclockwise` or an array with a list of valid 2211 * placements (with optional variations) 2212 */ 2213 behavior: 'flip', 2214 /** 2215 * @prop {number} padding=5 2216 * The popper will flip if it hits the edges of the `boundariesElement` 2217 */ 2218 padding: 5, 2219 /** 2220 * @prop {String|HTMLElement} boundariesElement='viewport' 2221 * The element which will define the boundaries of the popper position. 2222 * The popper will never be placed outside of the defined boundaries 2223 * (except if `keepTogether` is enabled) 2224 */ 2225 boundariesElement: 'viewport', 2226 /** 2227 * @prop {Boolean} flipVariations=false 2228 * The popper will switch placement variation between `-start` and `-end` when 2229 * the reference element overlaps its boundaries. 2230 * 2231 * The original placement should have a set variation. 2232 */ 2233 flipVariations: false, 2234 /** 2235 * @prop {Boolean} flipVariationsByContent=false 2236 * The popper will switch placement variation between `-start` and `-end` when 2237 * the popper element overlaps its reference boundaries. 2238 * 2239 * The original placement should have a set variation. 2240 */ 2241 flipVariationsByContent: false 2242 }, 2243 2244 /** 2245 * Modifier used to make the popper flow toward the inner of the reference element. 2246 * By default, when this modifier is disabled, the popper will be placed outside 2247 * the reference element. 2248 * @memberof modifiers 2249 * @inner 2250 */ 2251 inner: { 2252 /** @prop {number} order=700 - Index used to define the order of execution */ 2253 order: 700, 2254 /** @prop {Boolean} enabled=false - Whether the modifier is enabled or not */ 2255 enabled: false, 2256 /** @prop {ModifierFn} */ 2257 fn: inner 2258 }, 2259 2260 /** 2261 * Modifier used to hide the popper when its reference element is outside of the 2262 * popper boundaries. It will set a `x-out-of-boundaries` attribute which can 2263 * be used to hide with a CSS selector the popper when its reference is 2264 * out of boundaries. 2265 * 2266 * Requires the `preventOverflow` modifier before it in order to work. 2267 * @memberof modifiers 2268 * @inner 2269 */ 2270 hide: { 2271 /** @prop {number} order=800 - Index used to define the order of execution */ 2272 order: 800, 2273 /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ 2274 enabled: true, 2275 /** @prop {ModifierFn} */ 2276 fn: hide 2277 }, 2278 2279 /** 2280 * Computes the style that will be applied to the popper element to gets 2281 * properly positioned. 2282 * 2283 * Note that this modifier will not touch the DOM, it just prepares the styles 2284 * so that `applyStyle` modifier can apply it. This separation is useful 2285 * in case you need to replace `applyStyle` with a custom implementation. 2286 * 2287 * This modifier has `850` as `order` value to maintain backward compatibility 2288 * with previous versions of Popper.js. Expect the modifiers ordering method 2289 * to change in future major versions of the library. 2290 * 2291 * @memberof modifiers 2292 * @inner 2293 */ 2294 computeStyle: { 2295 /** @prop {number} order=850 - Index used to define the order of execution */ 2296 order: 850, 2297 /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ 2298 enabled: true, 2299 /** @prop {ModifierFn} */ 2300 fn: computeStyle, 2301 /** 2302 * @prop {Boolean} gpuAcceleration=true 2303 * If true, it uses the CSS 3D transformation to position the popper. 2304 * Otherwise, it will use the `top` and `left` properties 2305 */ 2306 gpuAcceleration: true, 2307 /** 2308 * @prop {string} [x='bottom'] 2309 * Where to anchor the X axis (`bottom` or `top`). AKA X offset origin. 2310 * Change this if your popper should grow in a direction different from `bottom` 2311 */ 2312 x: 'bottom', 2313 /** 2314 * @prop {string} [x='left'] 2315 * Where to anchor the Y axis (`left` or `right`). AKA Y offset origin. 2316 * Change this if your popper should grow in a direction different from `right` 2317 */ 2318 y: 'right' 2319 }, 2320 2321 /** 2322 * Applies the computed styles to the popper element. 2323 * 2324 * All the DOM manipulations are limited to this modifier. This is useful in case 2325 * you want to integrate Popper.js inside a framework or view library and you 2326 * want to delegate all the DOM manipulations to it. 2327 * 2328 * Note that if you disable this modifier, you must make sure the popper element 2329 * has its position set to `absolute` before Popper.js can do its work! 2330 * 2331 * Just disable this modifier and define your own to achieve the desired effect. 2332 * 2333 * @memberof modifiers 2334 * @inner 2335 */ 2336 applyStyle: { 2337 /** @prop {number} order=900 - Index used to define the order of execution */ 2338 order: 900, 2339 /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ 2340 enabled: true, 2341 /** @prop {ModifierFn} */
vendor: 5,657 bytes, lines 2342-2480
2342 fn: applyStyle, 2343 /** @prop {Function} */ 2344 onLoad: applyStyleOnLoad, 2345 /** 2346 * @deprecated since version 1.10.0, the property moved to `computeStyle` modifier 2347 * @prop {Boolean} gpuAcceleration=true 2348 * If true, it uses the CSS 3D transformation to position the popper. 2349 * Otherwise, it will use the `top` and `left` properties 2350 */ 2351 gpuAcceleration: undefined 2352 } 2353 }; 2354 2355 /** 2356 * The `dataObject` is an object containing all the information used by Popper.js. 2357 * This object is passed to modifiers and to the `onCreate` and `onUpdate` callbacks. 2358 * @name dataObject 2359 * @property {Object} data.instance The Popper.js instance 2360 * @property {String} data.placement Placement applied to popper 2361 * @property {String} data.originalPlacement Placement originally defined on init 2362 * @property {Boolean} data.flipped True if popper has been flipped by flip modifier 2363 * @property {Boolean} data.hide True if the reference element is out of boundaries, useful to know when to hide the popper 2364 * @property {HTMLElement} data.arrowElement Node used as arrow by arrow modifier 2365 * @property {Object} data.styles Any CSS property defined here will be applied to the popper. It expects the JavaScript nomenclature (eg. `marginBottom`) 2366 * @property {Object} data.arrowStyles Any CSS property defined here will be applied to the popper arrow. It expects the JavaScript nomenclature (eg. `marginBottom`) 2367 * @property {Object} data.boundaries Offsets of the popper boundaries 2368 * @property {Object} data.offsets The measurements of popper, reference and arrow elements 2369 * @property {Object} data.offsets.popper `top`, `left`, `width`, `height` values 2370 * @property {Object} data.offsets.reference `top`, `left`, `width`, `height` values 2371 * @property {Object} data.offsets.arrow] `top` and `left` offsets, only one of them will be different from 0 2372 */ 2373 2374 /** 2375 * Default options provided to Popper.js constructor.<br /> 2376 * These can be overridden using the `options` argument of Popper.js.<br /> 2377 * To override an option, simply pass an object with the same 2378 * structure of the `options` object, as the 3rd argument. For example: 2379 * ``` 2380 * new Popper(ref, pop, { 2381 * modifiers: { 2382 * preventOverflow: { enabled: false } 2383 * } 2384 * }) 2385 * ``` 2386 * @type {Object} 2387 * @static 2388 * @memberof Popper 2389 */ 2390 var Defaults = { 2391 /** 2392 * Popper's placement. 2393 * @prop {Popper.placements} placement='bottom' 2394 */ 2395 placement: 'bottom', 2396 2397 /** 2398 * Set this to true if you want popper to position it self in 'fixed' mode 2399 * @prop {Boolean} positionFixed=false 2400 */ 2401 positionFixed: false, 2402 2403 /** 2404 * Whether events (resize, scroll) are initially enabled. 2405 * @prop {Boolean} eventsEnabled=true 2406 */ 2407 eventsEnabled: true, 2408 2409 /** 2410 * Set to true if you want to automatically remove the popper when 2411 * you call the `destroy` method. 2412 * @prop {Boolean} removeOnDestroy=false 2413 */ 2414 removeOnDestroy: false, 2415 2416 /** 2417 * Callback called when the popper is created.<br /> 2418 * By default, it is set to no-op.<br /> 2419 * Access Popper.js instance with `data.instance`. 2420 * @prop {onCreate} 2421 */ 2422 onCreate: function onCreate() { }, 2423 2424 /** 2425 * Callback called when the popper is updated. This callback is not called 2426 * on the initialization/creation of the popper, but only on subsequent 2427 * updates.<br /> 2428 * By default, it is set to no-op.<br /> 2429 * Access Popper.js instance with `data.instance`. 2430 * @prop {onUpdate} 2431 */ 2432 onUpdate: function onUpdate() { }, 2433 2434 /** 2435 * List of modifiers used to modify the offsets before they are applied to the popper. 2436 * They provide most of the functionalities of Popper.js. 2437 * @prop {modifiers} 2438 */ 2439 modifiers: modifiers 2440 }; 2441 2442 /** 2443 * @callback onCreate 2444 * @param {dataObject} data 2445 */ 2446 2447 /** 2448 * @callback onUpdate 2449 * @param {dataObject} data 2450 */ 2451 2452 // Utils 2453 // Methods 2454 var Popper = function () { 2455 /** 2456 * Creates a new Popper.js instance. 2457 * @class Popper 2458 * @param {Element|referenceObject} reference - The reference element used to position the popper 2459 * @param {Element} popper - The HTML / XML element used as the popper 2460 * @param {Object} options - Your custom options to override the ones defined in [Defaults](#defaults) 2461 * @return {Object} instance - The generated Popper.js instance 2462 */ 2463 function Popper(reference, popper) { 2464 var _this = this; 2465 2466 var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; 2467 classCallCheck(this, Popper); 2468 2469 this.scheduleUpdate = function () { 2470 return requestAnimationFrame(_this.update); 2471 }; 2472 2473 // make update() debounced, so that it only runs at most once-per-tick 2474 this.update = debounce(this.update.bind(this)); 2475 2476 // with {} we create a new object with the options inside it 2477 this.options = _extends({}, Popper.Defaults, options); 2478 2479 // init state 2480 this.state = {
2481 isDestroyed: false, 2482 isCreated: false, 2483 scrollParents: [] 2484 }; 2485 2486 // get reference and popper elements (allow jQuery wrappers) 2487 this.reference = reference && reference.jquery ? reference[0] : reference; 2488 this.popper = popper && popper.jquery ? popper[0] : popper; 2489 2490 // Deep merge modifiers options 2491 this.options.modifiers = {}; 2492 Object.keys(_extends({}, Popper.Defaults.modifiers, options.modifiers)).forEach(function (name) { 2493 _this.options.modifiers[name] = _extends({}, Popper.Defaults.modifiers[name] || {}, options.modifiers ? options.modifiers[name] : {}); 2494 }); 2495 2496 // Refactoring modifiers' list (Object => Array) 2497 this.modifiers = Object.keys(this.options.modifiers).map(function (name) { 2498 return _extends({ 2499 name: name 2500 }, _this.options.modifiers[name]); 2501 }) 2502 // sort the modifiers by order 2503 .sort(function (a, b) { 2504 return a.order - b.order; 2505 }); 2506 2507 // modifiers have the ability to execute arbitrary code when Popper.js get inited 2508 // such code is executed in the same order of its modifier 2509 // they could add new properties to their options configuration 2510 // BE AWARE: don't add options to `options.modifiers.name` but to `modifierOptions`! 2511 this.modifiers.forEach(function (modifierOptions) { 2512 if (modifierOptions.enabled && isFunction(modifierOptions.onLoad)) { 2513 modifierOptions.onLoad(_this.reference, _this.popper, _this.options, modifierOptions, _this.state); 2514 } 2515 }); 2516 2517 // fire the first update to position the popper in the right place 2518 this.update(); 2519 2520 var eventsEnabled = this.options.eventsEnabled; 2521 if (eventsEnabled) { 2522 // setup event listeners, they will take care of update the position in specific situations 2523 this.enableEventListeners(); 2524 } 2525 2526 this.state.eventsEnabled = eventsEnabled; 2527 } 2528 2529 // We can't use class properties because they don't get listed in the 2530 // class prototype and break stuff like Sinon stubs 2531 2532 2533 createClass(Popper, [{ 2534 key: 'update', 2535 value: function update$$1() { 2536 return update.call(this); 2537 } 2538 }, { 2539 key: 'destroy', 2540 value: function destroy$$1() { 2541 return destroy.call(this); 2542 } 2543 }, { 2544 key: 'enableEventListeners', 2545 value: function enableEventListeners$$1() { 2546 return enableEventListeners.call(this); 2547 } 2548 }, { 2549 key: 'disableEventListeners', 2550 value: function disableEventListeners$$1() { 2551 return disableEventListeners.call(this); 2552 } 2553 2554 /** 2555 * Schedules an update. It will run on the next UI update available. 2556 * @method scheduleUpdate 2557 * @memberof Popper 2558 */ 2559 2560 2561 /** 2562 * Collection of utilities useful when writing custom modifiers. 2563 * Starting from version 1.7, this method is available only if you 2564 * include `popper-utils.js` before `popper.js`. 2565 * 2566 * **DEPRECATION**: This way to access PopperUtils is deprecated 2567 * and will be removed in v2! Use the PopperUtils module directly instead. 2568 * Due to the high instability of the methods contained in Utils, we can't 2569 * guarantee them to follow semver. Use them at your own risk! 2570 * @static 2571 * @private 2572 * @type {Object} 2573 * @deprecated since version 1.8 2574 * @member Utils 2575 * @memberof Popper 2576 */ 2577 2578 }]); 2579 return Popper; 2580 }(); 2581 2582 /** 2583 * The `referenceObject` is an object that provides an interface compatible with Popper.js 2584 * and lets you use it as replacement of a real DOM node.<br /> 2585 * You can use this method to position a popper relatively to a set of coordinates 2586 * in case you don't have a DOM node to use as reference. 2587 * 2588 * ``` 2589 * new Popper(referenceObject, popperNode); 2590 * ``` 2591 * 2592 * NB: This feature isn't supported in Internet Explorer 10. 2593 * @name referenceObject 2594 * @property {Function} data.getBoundingClientRect 2595 * A function that returns a set of coordinates compatible with the native `getBoundingClientRect` method. 2596 * @property {number} data.clientWidth 2597 * An ES6 getter that will return the width of the virtual reference element. 2598 * @property {number} data.clientHeight 2599 * An ES6 getter that will return the height of the virtual reference element. 2600 */ 2601 2602 2603 Popper.Utils = (typeof window !== 'undefined' ? window : global).PopperUtils; 2604 Popper.placements = placements; 2605 Popper.Defaults = Defaults; 2606 2607 return Popper; 2608 2609}))); 2610/*! 2611 * Bootstrap v5.3.7 (https://getbootstrap.com/) 2612 * Copyright 2011-2025 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) 2613 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) 2614 */ 2615!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap=e()}(this,(function(){"use strict";const t=new Map,e={set(e,i,n){t.has(e)||t.set(e,new Map);const s=t.get(e);s.has(i)||0===s.size?s.set(i,n):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(s.keys())[0]}.`)},get:(e,i)=>t.has(e)&&t.get(e).get(i)||null,remove(e,i){if(!t.has(e))return;const n=t.get(e);n.delete(i),0===n.size&&t.delete(e)}},i="transitionend",n=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,((t,e)=>`#${CSS.escape(e)}`))),t),s=t=>{t.dispatchEvent(new Event(i))},o=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),r=t=>o(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(n(t)):null,a=t=>{if(!o(t)||0===t.getClientRects().length)return!1;const e="visible"===getComputedStyle(t).getPropertyValue("visibility"),i=t.closest("details:not([open])");if(!i)return e;if(i!==t){const e=t.closest("summary");if(e&&e.parentNode!==i)return!1;if(null===e)return!1}return e},l=t=>!t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled")),c=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?c(t.parentNode):null},h=()=>{},d=t=>{t.offsetHeight},u=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,f=[],p=()=>"rtl"===document.documentElement.dir,m=t=>{var e;e=()=>{const e=u();if(e){const i=t.NAME,n=e.fn[i];e.fn[i]=t.jQueryInterface,e.fn[i].Constructor=t,e.fn[i].noConflict=()=>(e.fn[i]=n,t.jQueryInterface)}},"loading"===document.readyState?(f.length||document.addEventListener("DOMContentLoaded",(()=>{for(const t of f)t()}
vendor: 8,255 bytes, line 2615
2615)),f.push(e)):e()},g=(t,e=[],i=t)=>"function"==typeof t?t.call(...e):i,_=(t,e,n=!0)=>{if(!n)return void g(t);const o=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:i}=window.getComputedStyle(t);const n=Number.parseFloat(e),s=Number.parseFloat(i);return n||s?(e=e.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(i))):0})(e)+5;let r=!1;const a=({target:n})=>{n===e&&(r=!0,e.removeEventListener(i,a),g(t))};e.addEventListener(i,a),setTimeout((()=>{r||s(e)}),o)},b=(t,e,i,n)=>{const s=t.length;let o=t.indexOf(e);return-1===o?!i&&n?t[s-1]:t[0]:(o+=i?1:-1,n&&(o=(o+s)%s),t[Math.max(0,Math.min(o,s-1))])},v=/[^.]*(?=\..*)\.|.*/,y=/\..*/,w=/::\d+$/,A={};let E=1;const T={mouseenter:"mouseover",mouseleave:"mouseout"},C=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function O(t,e){return e&&`${e}::${E++}`||t.uidEvent||E++}function x(t){const e=O(t);return t.uidEvent=e,A[e]=A[e]||{},A[e]}function k(t,e,i=null){return Object.values(t).find((t=>t.callable===e&&t.delegationSelector===i))}function L(t,e,i){const n="string"==typeof e,s=n?i:e||i;let o=I(t);return C.has(o)||(o=t),[n,s,o]}function S(t,e,i,n,s){if("string"!=typeof e||!t)return;let[o,r,a]=L(e,i,n);if(e in T){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};r=t(r)}const l=x(t),c=l[a]||(l[a]={}),h=k(c,r,o?i:null);if(h)return void(h.oneOff=h.oneOff&&s);const d=O(r,e.replace(v,"")),u=o?function(t,e,i){return function n(s){const o=t.querySelectorAll(e);for(let{target:r}=s;r&&r!==this;r=r.parentNode)for(const a of o)if(a===r)return P(s,{delegateTarget:r}),n.oneOff&&N.off(t,s.type,e,i),i.apply(r,[s])}}(t,i,r):function(t,e){return function i(n){return P(n,{delegateTarget:t}),i.oneOff&&N.off(t,n.type,e),e.apply(t,[n])}}(t,r);u.delegationSelector=o?i:null,u.callable=r,u.oneOff=s,u.uidEvent=d,c[d]=u,t.addEventListener(a,u,o)}function D(t,e,i,n,s){const o=k(e[i],n,s);o&&(t.removeEventListener(i,o,Boolean(s)),delete e[i][o.uidEvent])}function $(t,e,i,n){const s=e[i]||{};for(const[o,r]of Object.entries(s))o.includes(n)&&D(t,e,i,r.callable,r.delegationSelector)}function I(t){return t=t.replace(y,""),T[t]||t}const N={on(t,e,i,n){S(t,e,i,n,!1)},one(t,e,i,n){S(t,e,i,n,!0)},off(t,e,i,n){if("string"!=typeof e||!t)return;const[s,o,r]=L(e,i,n),a=r!==e,l=x(t),c=l[r]||{},h=e.startsWith(".");if(void 0===o){if(h)for(const i of Object.keys(l))$(t,l,i,e.slice(1));for(const[i,n]of Object.entries(c)){const s=i.replace(w,"");a&&!e.includes(s)||D(t,l,r,n.callable,n.delegationSelector)}}else{if(!Object.keys(c).length)return;D(t,l,r,o,s?i:null)}},trigger(t,e,i){if("string"!=typeof e||!t)return null;const n=u();let s=null,o=!0,r=!0,a=!1;e!==I(e)&&n&&(s=n.Event(e,i),n(t).trigger(s),o=!s.isPropagationStopped(),r=!s.isImmediatePropagationStopped(),a=s.isDefaultPrevented());const l=P(new Event(e,{bubbles:o,cancelable:!0}),i);return a&&l.preventDefault(),r&&t.dispatchEvent(l),l.defaultPrevented&&s&&s.preventDefault(),l}};function P(t,e={}){for(const[i,n]of Object.entries(e))try{t[i]=n}catch(e){Object.defineProperty(t,i,{configurable:!0,get:()=>n})}return t}function j(t){if("true"===t)return!0;if("false"===t)return!1;if(t===Number(t).toString())return Number(t);if(""===t||"null"===t)return null;if("string"!=typeof t)return t;try{return JSON.parse(decodeURIComponent(t))}catch(e){return t}}function M(t){return t.replace(/[A-Z]/g,(t=>`-${t.toLowerCase()}`))}const F={setDataAttribute(t,e,i){t.setAttribute(`data-bs-${M(e)}`,i)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${M(e)}`)},getDataAttributes(t){if(!t)return{};const e={},i=Object.keys(t.dataset).filter((t=>t.startsWith("bs")&&!t.startsWith("bsConfig")));for(const n of i){let i=n.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1),e[i]=j(t.dataset[n])}return e},getDataAttribute:(t,e)=>j(t.getAttribute(`data-bs-${M(e)}`))};class H{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){const i=o(e)?F.getDataAttribute(e,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},...o(e)?F.getDataAttributes(e):{},..."object"==typeof t?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(const[n,s]of Object.entries(e)){const e=t[n],r=o(e)?"element":null==(i=e)?`${i}`:Object.prototype.toString.call(i).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(s).test(r))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${r}" but expected type "${s}".`)}var i}}class W extends H{constructor(t,i){super(),(t=r(t))&&(this._element=t,this._config=this._getConfig(i),e.set(this._element,this.constructor.DATA_KEY,this))}dispose(){e.remove(this._element,this.constructor.DATA_KEY),N.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,i=!0){_(t,e,i)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return e.get(r(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"==typeof e?e:null)}static get VERSION(){return"5.3.7"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const B=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let i=t.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),e=i&&"#"!==i?i.trim():null}return e?e.split(",").map((t=>n(t))).join(","):null},z={find:(t,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter((t=>t.matches(e))),parents(t,e){const i=[];let n=t.parentNode.closest(e);for(;n;)i.push(n),n=n.parentNode.closest(e);return i},prev(t,e){let i=t.previousElementSibling;for(;i;){if(i.matches(e))return[i];i=i.previousElementSibling}return[]},next(t,e){let i=t.nextElementSibling;for(;i;){if(i.matches(e))return[i];i=i.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((t=>`${t}:not([tabindex^="-"])`)).join(",");return this.find(e,t).filter((t=>!l(t)&&a(t)))},getSelectorFromElement(t){const e=B(t);return e&&z.findOne(e)?e:null},getElementFromSelector(t){const e=B(t);return e?z.findOne(e):null},getMultipleElementsFromSelector(t){const e=B(t);return e?z.find(e):[]}},R=(t,e="hide")=>{const i=`click.dismiss${t.EVENT_KEY}`,n=t.NAME;N.on(document,i,`[data-bs-dismiss="${n}"]`,(function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),l(this))return;const s=z.getElementFromSelector(this)||this.closest(`.${n}`);t.getOrCreateInstance(s)[e]()}))},q=".bs.alert",V=`close${q}`,K=`closed${q}`;class Q extends W{static get NAME(){return"alert"}close(){if(N.trigger(this._element,V).defaultPrevented)return;this._element.classList.remove("show");const t=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,t)}_destroyElement(){this._element.remove(),N.trigger(this._element,K),this.dispose()}static jQueryInterface(t){return this.each((function(){const e=Q.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method n
2615amed "${t}"`);e[t](this)}}))}}R(Q,"close"),m(Q);const X='[data-bs-toggle="button"]';class Y extends W{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each((function(){const e=Y.getOrCreateInstance(this);"toggle"===t&&e[t]()}))}}N.on(document,"click.bs.button.data-api",X,(t=>{t.preventDefault();const e=t.target.closest(X);Y.getOrCreateInstance(e).toggle()})),m(Y);const U=".bs.swipe",G=`touchstart${U}`,J=`touchmove${U}`,Z=`touchend${U}`,tt=`pointerdown${U}`,et=`pointerup${U}`,it={endCallback:null,leftCallback:null,rightCallback:null},nt={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class st extends H{constructor(t,e){super(),this._element=t,t&&st.isSupported()&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return it}static get DefaultType(){return nt}static get NAME(){return"swipe"}dispose(){N.off(this._element,U)}_start(t){this._supportPointerEvents?this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX):this._deltaX=t.touches[0].clientX}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),g(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=40)return;const e=t/this._deltaX;this._deltaX=0,e&&g(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(N.on(this._element,tt,(t=>this._start(t))),N.on(this._element,et,(t=>this._end(t))),this._element.classList.add("pointer-event")):(N.on(this._element,G,(t=>this._start(t))),N.on(this._element,J,(t=>this._move(t))),N.on(this._element,Z,(t=>this._end(t))))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&("pen"===t.pointerType||"touch"===t.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const ot=".bs.carousel",rt=".data-api",at="ArrowLeft",lt="ArrowRight",ct="next",ht="prev",dt="left",ut="right",ft=`slide${ot}`,pt=`slid${ot}`,mt=`keydown${ot}`,gt=`mouseenter${ot}`,_t=`mouseleave${ot}`,bt=`dragstart${ot}`,vt=`load${ot}${rt}`,yt=`click${ot}${rt}`,wt="carousel",At="active",Et=".active",Tt=".carousel-item",Ct=Et+Tt,Ot={[at]:ut,[lt]:dt},xt={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},kt={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Lt extends W{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=z.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===wt&&this.cycle()}static get Default(){return xt}static get DefaultType(){return kt}static get NAME(){return"carousel"}next(){this._slide(ct)}nextWhenVisible(){!document.hidden&&a(this._element)&&this.next()}prev(){this._slide(ht)}pause(){this._isSliding&&s(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?N.one(this._element,pt,(()=>this.cycle())):this.cycle())}to(t){const e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding)return void N.one(this._element,pt,(()=>this.to(t)));const i=this._getItemIndex(this._getActive());if(i===t)return;const n=t>i?ct:ht;this._slide(n,e[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&N.on(this._element,mt,(t=>this._keydown(t))),"hover"===this._config.pause&&(N.on(this._element,gt,(()=>this.pause())),N.on(this._element,_t,(()=>this._maybeEnableCycle()))),this._config.touch&&st.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of z.find(".carousel-item img",this._element))N.on(t,bt,(t=>t.preventDefault()));const t={leftCallback:()=>this._slide(this._directionToOrder(dt)),rightCallback:()=>this._slide(this._directionToOrder(ut)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),500+this._config.interval))}};this._swipeHelper=new st(this._element,t)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=Ot[t.key];e&&(t.preventDefault(),this._slide(this._directionToOrder(e)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const e=z.findOne(Et,this._indicatorsElement);e.classList.remove(At),e.removeAttribute("aria-current");const i=z.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);i&&(i.classList.add(At),i.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=e||this._config.defaultInterval}_slide(t,e=null){if(this._isSliding)return;const i=this._getActive(),n=t===ct,s=e||b(this._getItems(),i,n,this._config.wrap);if(s===i)return;const o=this._getItemIndex(s),r=e=>N.trigger(this._element,e,{relatedTarget:s,direction:this._orderToDirection(t),from:this._getItemIndex(i),to:o});if(r(ft).defaultPrevented)return;if(!i||!s)return;const a=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=s;const l=n?"carousel-item-start":"carousel-item-end",c=n?"carousel-item-next":"carousel-item-prev";s.classList.add(c),d(s),i.classList.add(l),s.classList.add(l),this._queueCallback((()=>{s.classList.remove(l,c),s.classList.add(At),i.classList.remove(At,c,l),this._isSliding=!1,r(pt)}),i,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return z.findOne(Ct,this._element)}_getItems(){return z.find(Tt,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return p()?t===dt?ht:ct:t===dt?ct:ht}_orderToDirection(t){return p()?t===ht?dt:ut:t===ht?ut:dt}static jQueryInterface(t){return this.each((function(){const e=Lt.getOrCreateInstance(this,t);if("number"!=typeof t){if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method n
2615amed "${t}"`);e[t]()}}else e.to(t)}))}}N.on(document,yt,"[data-bs-slide], [data-bs-slide-to]",(function(t){const e=z.getElementFromSelector(this);if(!e||!e.classList.contains(wt))return;t.preventDefault();const i=Lt.getOrCreateInstance(e),n=this.getAttribute("data-bs-slide-to");return n?(i.to(n),void i._maybeEnableCycle()):"next"===F.getDataAttribute(this,"slide")?(i.next(),void i._maybeEnableCycle()):(i.prev(),void i._maybeEnableCycle())})),N.on(window,vt,(()=>{const t=z.find('[data-bs-ride="carousel"]');for(const e of t)Lt.getOrCreateInstance(e)})),m(Lt);const St=".bs.collapse",Dt=`show${St}`,$t=`shown${St}`,It=`hide${St}`,Nt=`hidden${St}`,Pt=`click${St}.data-api`,jt="show",Mt="collapse",Ft="collapsing",Ht=`:scope .${Mt} .${Mt}`,Wt='[data-bs-toggle="collapse"]',Bt={parent:null,toggle:!0},zt={parent:"(null|element)",toggle:"boolean"};class Rt extends W{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const i=z.find(Wt);for(const t of i){const e=z.getSelectorFromElement(t),i=z.find(e).filter((t=>t===this._element));null!==e&&i.length&&this._triggerArray.push(t)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Bt}static get DefaultType(){return zt}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((t=>t!==this._element)).map((t=>Rt.getOrCreateInstance(t,{toggle:!1})))),t.length&&t[0]._isTransitioning)return;if(N.trigger(this._element,Dt).defaultPrevented)return;for(const e of t)e.hide();const e=this._getDimension();this._element.classList.remove(Mt),this._element.classList.add(Ft),this._element.style[e]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=`scroll${e[0].toUpperCase()+e.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(Ft),this._element.classList.add(Mt,jt),this._element.style[e]="",N.trigger(this._element,$t)}),this._element,!0),this._element.style[e]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(N.trigger(this._element,It).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,d(this._element),this._element.classList.add(Ft),this._element.classList.remove(Mt,jt);for(const t of this._triggerArray){const e=z.getElementFromSelector(t);e&&!this._isShown(e)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0,this._element.style[t]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(Ft),this._element.classList.add(Mt),N.trigger(this._element,Nt)}),this._element,!0)}_isShown(t=this._element){return t.classList.contains(jt)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=r(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(Wt);for(const e of t){const t=z.getElementFromSelector(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(t){const e=z.find(Ht,this._config.parent);return z.find(t,this._config.parent).filter((t=>!e.includes(t)))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const i of t)i.classList.toggle("collapsed",!e),i.setAttribute("aria-expanded",e)}static jQueryInterface(t){const e={};return"string"==typeof t&&/show|hide/.test(t)&&(e.toggle=!1),this.each((function(){const i=Rt.getOrCreateInstance(this,e);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t]()}}))}}N.on(document,Pt,Wt,(function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();for(const t of z.getMultipleElementsFromSelector(this))Rt.getOrCreateInstance(t,{toggle:!1}).toggle()})),m(Rt);var qt="top",Vt="bottom",Kt="right",Qt="left",Xt="auto",Yt=[qt,Vt,Kt,Qt],Ut="start",Gt="end",Jt="clippingParents",Zt="viewport",te="popper",ee="reference",ie=Yt.reduce((function(t,e){return t.concat([e+"-"+Ut,e+"-"+Gt])}),[]),ne=[].concat(Yt,[Xt]).reduce((function(t,e){return t.concat([e,e+"-"+Ut,e+"-"+Gt])}
vendor: 4,402 bytes, line 2615
2615),[]),se="beforeRead",oe="read",re="afterRead",ae="beforeMain",le="main",ce="afterMain",he="beforeWrite",de="write",ue="afterWrite",fe=[se,oe,re,ae,le,ce,he,de,ue];function pe(t){return t?(t.nodeName||"").toLowerCase():null}function me(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function ge(t){return t instanceof me(t).Element||t instanceof Element}function _e(t){return t instanceof me(t).HTMLElement||t instanceof HTMLElement}function be(t){return"undefined"!=typeof ShadowRoot&&(t instanceof me(t).ShadowRoot||t instanceof ShadowRoot)}const ve={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var i=e.styles[t]||{},n=e.attributes[t]||{},s=e.elements[t];_e(s)&&pe(s)&&(Object.assign(s.style,i),Object.keys(n).forEach((function(t){var e=n[t];!1===e?s.removeAttribute(t):s.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach((function(t){var n=e.elements[t],s=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]).reduce((function(t,e){return t[e]="",t}),{});_e(n)&&pe(n)&&(Object.assign(n.style,o),Object.keys(s).forEach((function(t){n.removeAttribute(t)})))}))}},requires:["computeStyles"]};function ye(t){return t.split("-")[0]}var we=Math.max,Ae=Math.min,Ee=Math.round;function Te(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function Ce(){return!/^((?!chrome|android).)*safari/i.test(Te())}function Oe(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=!1);var n=t.getBoundingClientRect(),s=1,o=1;e&&_e(t)&&(s=t.offsetWidth>0&&Ee(n.width)/t.offsetWidth||1,o=t.offsetHeight>0&&Ee(n.height)/t.offsetHeight||1);var r=(ge(t)?me(t):window).visualViewport,a=!Ce()&&i,l=(n.left+(a&&r?r.offsetLeft:0))/s,c=(n.top+(a&&r?r.offsetTop:0))/o,h=n.width/s,d=n.height/o;return{width:h,height:d,top:c,right:l+h,bottom:c+d,left:l,x:l,y:c}}function xe(t){var e=Oe(t),i=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:n}}function ke(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&be(i)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Le(t){return me(t).getComputedStyle(t)}function Se(t){return["table","td","th"].indexOf(pe(t))>=0}function De(t){return((ge(t)?t.ownerDocument:t.document)||window.document).documentElement}function $e(t){return"html"===pe(t)?t:t.assignedSlot||t.parentNode||(be(t)?t.host:null)||De(t)}function Ie(t){return _e(t)&&"fixed"!==Le(t).position?t.offsetParent:null}function Ne(t){for(var e=me(t),i=Ie(t);i&&Se(i)&&"static"===Le(i).position;)i=Ie(i);return i&&("html"===pe(i)||"body"===pe(i)&&"static"===Le(i).position)?e:i||function(t){var e=/firefox/i.test(Te());if(/Trident/i.test(Te())&&_e(t)&&"fixed"===Le(t).position)return null;var i=$e(t);for(be(i)&&(i=i.host);_e(i)&&["html","body"].indexOf(pe(i))<0;){var n=Le(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||e&&"filter"===n.willChange||e&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(t)||e}function Pe(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function je(t,e,i){return we(t,Ae(e,i))}function Me(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function Fe(t,e){return e.reduce((function(e,i){return e[i]=t,e}),{})}const He={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,i=t.state,n=t.name,s=t.options,o=i.elements.arrow,r=i.modifiersData.popperOffsets,a=ye(i.placement),l=Pe(a),c=[Qt,Kt].indexOf(a)>=0?"height":"width";if(o&&r){var h=function(t,e){return Me("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:Fe(t,Yt))}(s.padding,i),d=xe(o),u="y"===l?qt:Qt,f="y"===l?Vt:Kt,p=i.rects.reference[c]+i.rects.reference[l]-r[l]-i.rects.popper[c],m=r[l]-i.rects.reference[l],g=Ne(o
vendor: 3,107 bytes, line 2615
2615),_=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,b=p/2-m/2,v=h[u],y=_-d[c]-h[f],w=_/2-d[c]/2+b,A=je(v,w,y),E=l;i.modifiersData[n]=((e={})[E]=A,e.centerOffset=A-w,e)}},effect:function(t){var e=t.state,i=t.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=e.elements.popper.querySelector(n)))&&ke(e.elements.popper,n)&&(e.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function We(t){return t.split("-")[1]}var Be={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ze(t){var e,i=t.popper,n=t.popperRect,s=t.placement,o=t.variation,r=t.offsets,a=t.position,l=t.gpuAcceleration,c=t.adaptive,h=t.roundOffsets,d=t.isFixed,u=r.x,f=void 0===u?0:u,p=r.y,m=void 0===p?0:p,g="function"==typeof h?h({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var _=r.hasOwnProperty("x"),b=r.hasOwnProperty("y"),v=Qt,y=qt,w=window;if(c){var A=Ne(i),E="clientHeight",T="clientWidth";A===me(i)&&"static"!==Le(A=De(i)).position&&"absolute"===a&&(E="scrollHeight",T="scrollWidth"),(s===qt||(s===Qt||s===Kt)&&o===Gt)&&(y=Vt,m-=(d&&A===w&&w.visualViewport?w.visualViewport.height:A[E])-n.height,m*=l?1:-1),s!==Qt&&(s!==qt&&s!==Vt||o!==Gt)||(v=Kt,f-=(d&&A===w&&w.visualViewport?w.visualViewport.width:A[T])-n.width,f*=l?1:-1)}var C,O=Object.assign({position:a},c&&Be),x=!0===h?function(t,e){var i=t.x,n=t.y,s=e.devicePixelRatio||1;return{x:Ee(i*s)/s||0,y:Ee(n*s)/s||0}}({x:f,y:m},me(i)):{x:f,y:m};return f=x.x,m=x.y,l?Object.assign({},O,((C={})[y]=b?"0":"",C[v]=_?"0":"",C.transform=(w.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",C)):Object.assign({},O,((e={})[y]=b?m+"px":"",e[v]=_?f+"px":"",e.transform="",e))}const Re={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,i=t.options,n=i.gpuAcceleration,s=void 0===n||n,o=i.adaptive,r=void 0===o||o,a=i.roundOffsets,l=void 0===a||a,c={placement:ye(e.placement),variation:We(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,ze(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,ze(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}};var qe={passive:!0};const Ve={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,i=t.instance,n=t.options,s=n.scroll,o=void 0===s||s,r=n.resize,a=void 0===r||r,l=me(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&c.forEach((function(t){t.addEventListener("scroll",i.update,qe)})),a&&l.addEventListener("resize",i.update,qe),function(){o&&c.forEach((function(t){t.removeEventListener("scroll",i.update,qe)})),a&&l.removeEventListener("resize",i.update,qe)}},data:{}};
vendor: 14,007 bytes, line 2615
2615var Ke={left:"right",right:"left",bottom:"top",top:"bottom"};function Qe(t){return t.replace(/left|right|bottom|top/g,(function(t){return Ke[t]}))}var Xe={start:"end",end:"start"};function Ye(t){return t.replace(/start|end/g,(function(t){return Xe[t]}))}function Ue(t){var e=me(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Ge(t){return Oe(De(t)).left+Ue(t).scrollLeft}function Je(t){var e=Le(t),i=e.overflow,n=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function Ze(t){return["html","body","#document"].indexOf(pe(t))>=0?t.ownerDocument.body:_e(t)&&Je(t)?t:Ze($e(t))}function ti(t,e){var i;void 0===e&&(e=[]);var n=Ze(t),s=n===(null==(i=t.ownerDocument)?void 0:i.body),o=me(n),r=s?[o].concat(o.visualViewport||[],Je(n)?n:[]):n,a=e.concat(r);return s?a:a.concat(ti($e(r)))}function ei(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function ii(t,e,i){return e===Zt?ei(function(t,e){var i=me(t),n=De(t),s=i.visualViewport,o=n.clientWidth,r=n.clientHeight,a=0,l=0;if(s){o=s.width,r=s.height;var c=Ce();(c||!c&&"fixed"===e)&&(a=s.offsetLeft,l=s.offsetTop)}return{width:o,height:r,x:a+Ge(t),y:l}}(t,i)):ge(e)?function(t,e){var i=Oe(t,!1,"fixed"===e);return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}(e,i):ei(function(t){var e,i=De(t),n=Ue(t),s=null==(e=t.ownerDocument)?void 0:e.body,o=we(i.scrollWidth,i.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),r=we(i.scrollHeight,i.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-n.scrollLeft+Ge(t),l=-n.scrollTop;return"rtl"===Le(s||i).direction&&(a+=we(i.clientWidth,s?s.clientWidth:0)-o),{width:o,height:r,x:a,y:l}}(De(t)))}function ni(t){var e,i=t.reference,n=t.element,s=t.placement,o=s?ye(s):null,r=s?We(s):null,a=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(o){case qt:e={x:a,y:i.y-n.height};break;case Vt:e={x:a,y:i.y+i.height};break;case Kt:e={x:i.x+i.width,y:l};break;case Qt:e={x:i.x-n.width,y:l};break;default:e={x:i.x,y:i.y}}var c=o?Pe(o):null;if(null!=c){var h="y"===c?"height":"width";switch(r){case Ut:e[c]=e[c]-(i[h]/2-n[h]/2);break;case Gt:e[c]=e[c]+(i[h]/2-n[h]/2)}}return e}function si(t,e){void 0===e&&(e={});var i=e,n=i.placement,s=void 0===n?t.placement:n,o=i.strategy,r=void 0===o?t.strategy:o,a=i.boundary,l=void 0===a?Jt:a,c=i.rootBoundary,h=void 0===c?Zt:c,d=i.elementContext,u=void 0===d?te:d,f=i.altBoundary,p=void 0!==f&&f,m=i.padding,g=void 0===m?0:m,_=Me("number"!=typeof g?g:Fe(g,Yt)),b=u===te?ee:te,v=t.rects.popper,y=t.elements[p?b:u],w=function(t,e,i,n){var s="clippingParents"===e?function(t){var e=ti($e(t)),i=["absolute","fixed"].indexOf(Le(t).position)>=0&&_e(t)?Ne(t):t;return ge(i)?e.filter((function(t){return ge(t)&&ke(t,i)&&"body"!==pe(t)})):[]}(t):[].concat(e),o=[].concat(s,[i]),r=o[0],a=o.reduce((function(e,i){var s=ii(t,i,n);return e.top=we(s.top,e.top),e.right=Ae(s.right,e.right),e.bottom=Ae(s.bottom,e.bottom),e.left=we(s.left,e.left),e}),ii(t,r,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(ge(y)?y:y.contextElement||De(t.elements.popper),l,h,r),A=Oe(t.elements.reference),E=ni({reference:A,element:v,placement:s}),T=ei(Object.assign({},v,E)),C=u===te?T:A,O={top:w.top-C.top+_.top,bottom:C.bottom-w.bottom+_.bottom,left:w.left-C.left+_.left,right:C.right-w.right+_.right},x=t.modifiersData.offset;if(u===te&&x){var k=x[s];Object.keys(O).forEach((function(t){var e=[Kt,Vt].indexOf(t)>=0?1:-1,i=[qt,Vt].indexOf(t)>=0?"y":"x";O[t]+=k[i]*e}))}return O}function oi(t,e){void 0===e&&(e={});var i=e,n=i.placement,s=i.boundary,o=i.rootBoundary,r=i.padding,a=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?ne:l,h=We(n),d=h?a?ie:ie.filter((function(t){return We(t)===h})):Yt,u=d.filter((function(t){return c.indexOf(t)>=0}));0===u.length&&(u=d);var f=u.reduce((function(e,i){return e[i]=si(t,{placement:i,boundary:s,rootBoundary:o,padding:r})[ye(i)],e}),{});return Object.keys(f).sort((function(t,e){return f[t]-f[e]}))}const ri={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var s=i.mainAxis,o=void 0===s||s,r=i.altAxis,a=void 0===r||r,l=i.fallbackPlacements,c=i.padding,h=i.boundary,d=i.rootBoundary,u=i.altBoundary,f=i.flipVariations,p=void 0===f||f,m=i.allowedAutoPlacements,g=e.options.placement,_=ye(g),b=l||(_!==g&&p?function(t){if(ye(t)===Xt)return[];var e=Qe(t);return[Ye(t),e,Ye(e)]}(g):[Qe(g)]),v=[g].concat(b).reduce((function(t,i){return t.concat(ye(i)===Xt?oi(e,{placement:i,boundary:h,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:m}):i)}),[]),y=e.rects.reference,w=e.rects.popper,A=new Map,E=!0,T=v[0],C=0;C<v.length;C++){var O=v[C],x=ye(O),k=We(O)===Ut,L=[qt,Vt].indexOf(x)>=0,S=L?"width":"height",D=si(e,{placement:O,boundary:h,rootBoundary:d,altBoundary:u,padding:c}),$=L?k?Kt:Qt:k?Vt:qt;y[S]>w[S]&&($=Qe($));var I=Qe($),N=[];if(o&&N.push(D[x]<=0),a&&N.push(D[$]<=0,D[I]<=0),N.every((function(t){return t}))){T=O,E=!1;break}A.set(O,N)}if(E)for(var P=function(t){var e=v.find((function(e){var i=A.get(e);if(i)return i.slice(0,t).every((function(t){return t}))}));if(e)return T=e,"break"},j=p?3:1;j>0&&"break"!==P(j);j--);e.placement!==T&&(e.modifiersData[n]._skip=!0,e.placement=T,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ai(t,e,i){return void 0===i&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function li(t){return[qt,Kt,Vt,Qt].some((function(e){return t[e]>=0}))}const ci={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,i=t.name,n=e.rects.reference,s=e.rects.popper,o=e.modifiersData.preventOverflow,r=si(e,{elementContext:"reference"}),a=si(e,{altBoundary:!0}),l=ai(r,n),c=ai(a,s,o),h=li(l),d=li(c);e.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:h,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":d})}},hi={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,i=t.options,n=t.name,s=i.offset,o=void 0===s?[0,0]:s,r=ne.reduce((function(t,i){return t[i]=function(t,e,i){var n=ye(t),s=[Qt,qt].indexOf(n)>=0?-1:1,o="function"==typeof i?i(Object.assign({},e,{placement:t})):i,r=o[0],a=o[1];return r=r||0,a=(a||0)*s,[Qt,Kt].indexOf(n)>=0?{x:a,y:r}:{x:r,y:a}}(i,e.rects,o),t}),{}),a=r[e.placement],l=a.x,c=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[n]=r}},di={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,i=t.name;e.modifiersData[i]=ni({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})},data:{}},ui={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name,s=i.mainAxis,o=void 0===s||s,r=i.altAxis,a=void 0!==r&&r,l=i.boundary,c=i.rootBoundary,h=i.altBoundary,d=i.padding,u=i.tether,f=void 0===u||u,p=i.tetherOffset,m=void 0===p?0:p,g=si(e,{boundary:l,rootBoundary:c,padding:d,altBoundary:h}),_=ye(e.placement),b=We(e.placement),v=!b,y=Pe(_),w="x"===y?"y":"x",A=e.modifiersData.popperOffsets,E=e.rects.reference,T=e.rects.popper,C="function"==typeof m?m(Object.assign({},e.rects,{placement:e.placement})):m,O="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),x=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,k={x:0,y:0};if(A){if(o){var L,S="y"===y?qt:Qt,D="y"===y?Vt:Kt,$="y"===y?"height":"width",I=A[y],N=I+g[S],P=I-g[D],j=f?-T[$]/2:0,M=b===Ut?E[$]:T[$],F=b===Ut?-T[$]:-E[$],H=e.elements.arrow,W=f&&H?xe(H):{width:0,height:0},B=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},z=B[S],R=B[D],q=je(0,E[$],W[$]),V=v?E[$]/2-j-q-z-O.mainAxis:M-q-z-O.mainAxis,K=v?-E[$]/2+j+q+R+O.mainAxis:F+q+R+O.mainAxis,Q=e.elements.arrow&&Ne(e.elements.arrow),X=Q?"y"===y?Q.clientTop||0:Q.clientLeft||0:0,Y=null!=(L=null==x?void 0:x[y])?L:0,U=I+K-Y,G=je(f?Ae(N,I+V-Y-X):N,I,f?we(P,U):P);A[y]=G,k[y]=G-I}if(a){var J,Z="x"===y?qt:Qt,tt="x"===y?Vt:Kt,et=A[w],it="y"===w?"height":"width",nt=et+g[Z],st=et-g[tt],ot=-1!==[qt,Qt].indexOf(_),rt=null!=(J=null==x?void 0:x[w])?J:0,at=ot?nt:et-E[it]-T[it]-rt+O.altAxis,lt=ot?et+E[it]+T[it]-rt-O.altAxis:st,ct=f&&ot?function(t,e,i){var n=je(t,e,i);return n>i?i:n}(at,et,lt):je(f?at:nt,et,f?lt:st);A[w]=ct,k[w]=ct-et}e.modifiersData[n]=k}},requiresIfExists:["offset"]};function fi(t,e,i){void 0===i&&(i=!1);var n,s,o=_e(e),r=_e(e)&&function(t){var e=t.getBoundingClientRect(),i=Ee(e.width)/t.offsetWidth||1,n=Ee(e.height)/t.offsetHeight||1;return 1!==i||1!==n}(e),a=De(e),l=Oe(t,r,i),c={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(o||!o&&!i)&&(("body"!==pe(e)||Je(a))&&(c=(n=e)!==me(n)&&_e(n)?{scrollLeft:(s=n).scrollLeft,scrollTop:s.scrollTop}:Ue(n)),_e(e)?((h=Oe(e,!0)).x+=e.clientLeft,h.y+=e.clientTop):a&&(h.x=Ge(a))),{x:l.left+c.scrollLeft-h.x,y:l.top+c.scrollTop-h.y,width:l.width,height:l.height}}function pi(t){var e=new Map,i=new Set,n=[];function s(t){i.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!i.has(t)){var n=e.get(t);n&&s(n)}})),n.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){i.has(t.name)||s(t)})),n}var mi={placement:"bottom",modifiers:[],strategy:"absolute"};function gi(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function _i(t){void 0===t&&(t={});var e=t,i=e.defaultModifiers,n=void 0===i?[]:i,s=e.defaultOptions,o=void 0===s?mi:s;return function(t,e,i){void 0===i&&(i=o);var s,r,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},mi,o),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},l=[],c=!1,h={state:a,setOptions:function(i){var s="function"==typeof i?i(a.options):i;d(),a.options=Object.assign({},o,a.options,s),a.scrollParents={reference:ge(t)?ti(t):t.contextElement?ti(t.contextElement):[],popper:ti(e)};var r,c,u=function(t){var e=pi(t);return fe.reduce((function(t,i){return t.concat(e.filter((function(t){return t.phase===i})))}),[])}((r=[].concat(n,a.options.modifiers),c=r.reduce((function(t,e){var i=t[e.name];return t[e.name]=i?Object.assign({},i,e,{options:Object.assign({},i.options,e.options),data:Object.assign({},i.data,e.data)}):e,t}),{}),Object.keys(c).map((function(t){return c[t]}))));return a.orderedModifiers=u.filter((function(t){return t.enabled})),a.orderedModifiers.forEach((function(t){var e=t.name,i=t.options,n=void 0===i?{}:i,s=t.effect;if("function"==typeof s){var o=s({state:a,name:e,instance:h,options:n});l.push(o||function(){})}})),h.update()},forceUpdate:function(){if(!c){var t=a.elements,e=t.reference,i=t.popper;if(gi(e,i)){a.rects={reference:fi(e,Ne(i),"fixed"===a.options.strategy),popper:xe(i)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(t){return a.modifiersData[t.name]=Object.assign({},t.data)}));for(var n=0;n<a.orderedModifiers.length;n++)if(!0!==a.reset){var s=a.orderedModifiers[n],o=s.fn,r=s.options,l=void 0===r?{}:r,d=s.name;"function"==typeof o&&(a=o({state:a,options:l,name:d,instance:h})||a)}else a.reset=!1,n=-1}}},update:(s=function(){return new Promise((function(t){h.forceUpdate(),t(a)}))},function(){return r||(r=new Promise((function(t){Promise.resolve().then((function(){r=void 0,t(s())}))}))),r}),destroy:function(){d(),c=!0}};if(!gi(t,e))return h;function d(){l.forEach((function(t){return t()})),l=[]}return h.setOptions(i).then((function(t){!c&&i.onFirstUpdate&&i.onFirstUpdate(t)})),h}}var bi=_i(),vi=_i({defaultModifiers:[Ve,di,Re,ve]}),yi=_i({defaultModifiers:[Ve,di,Re,ve,hi,ri,ui,He,ci]});const wi=Object.freeze(Object.defineProperty({__proto__:null,afterMain:ce,afterRead:re,afterWrite:ue,applyStyles:ve,arrow:He,auto:Xt,basePlacements:Yt,beforeMain:ae,beforeRead:se,beforeWrite:he,bottom:Vt,clippingParents:Jt,computeStyles:Re,createPopper:yi,createPopperBase:bi,createPopperLite:vi,detectOverflow:si,end:Gt,eventListeners:Ve,flip:ri,hide:ci,left:Qt,main:le,modifierPhases:fe,offset:hi,placements:ne,popper:te,popperGenerator:_i,popperOffsets:di,preventOverflow:ui,read:oe,reference:ee,right:Kt,start:Ut,top:qt,variationPlacements:ie,viewport:Zt,write:de},Symbol.toStringTag,{value:"Module"})),Ai="dropdown",Ei=".bs.dropdown",Ti=".data-api",Ci="ArrowUp",Oi="ArrowDown",xi=`hide${Ei}`,ki=`hidden${Ei}`,Li=`show${Ei}`,Si=`shown${Ei}`,Di=`click${Ei}${Ti}`,$i=`keydown${Ei}${Ti}`,Ii=`keyup${Ei}${Ti}`,Ni="show",Pi='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',ji=`${Pi}.${Ni}`,Mi=".dropdown-menu",Fi=p()?"top-end":"top-start",Hi=p()?"top-start":"top-end",Wi=p()?"bottom-end":"bottom-start",Bi=p()?"bottom-start":"bottom-end",zi=p()?"left-start":"right-start",Ri=p()?"right-start":"left-start",qi={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Vi={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Ki extends W{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=z.next(this._element,Mi)[0]||z.prev(this._element,Mi)[0]||z.findOne(Mi,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return qi}static get DefaultType(){return Vi}static get NAME(){return Ai}toggle(){return this._isShown()?this.hide():this.show()}show(){if(l(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!N.trigger(this._element,Li,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".
2615navbar-nav"))for(const t of[].concat(...document.body.children))N.on(t,"mouseover",h);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Ni),this._element.classList.add(Ni),N.trigger(this._element,Si,t)}}hide(){if(l(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!N.trigger(this._element,xi,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))N.off(t,"mouseover",h);this._popper&&this._popper.destroy(),this._menu.classList.remove(Ni),this._element.classList.remove(Ni),this._element.setAttribute("aria-expanded","false"),F.removeDataAttribute(this._menu,"popper"),N.trigger(this._element,ki,t),this._element.focus()}}_getConfig(t){if("object"==typeof(t=super._getConfig(t)).reference&&!o(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(`${Ai.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(void 0===wi)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let t=this._element;"parent"===this._config.reference?t=this._parent:o(this._config.reference)?t=r(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const e=this._getPopperConfig();this._popper=yi(t,this._menu,e)}_isShown(){return this._menu.classList.contains(Ni)}_getPlacement(){const t=this._parent;if(t.classList.contains("dropend"))return zi;if(t.classList.contains("dropstart"))return Ri;if(t.classList.contains("dropup-center"))return"top";if(t.classList.contains("dropdown-center"))return"bottom";const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains("dropup")?e?Hi:Fi:e?Bi:Wi}
vendor: 10,255 bytes, line 2615
2615_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(F.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...g(this._config.popperConfig,[void 0,t])}}_selectMenuItem({key:t,target:e}){const i=z.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter((t=>a(t)));i.length&&b(i,e,t===Oi,!i.includes(e)).focus()}static jQueryInterface(t){return this.each((function(){const e=Ki.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}static clearMenus(t){if(2===t.button||"keyup"===t.type&&"Tab"!==t.key)return;const e=z.find(ji);for(const i of e){const e=Ki.getInstance(i);if(!e||!1===e._config.autoClose)continue;const n=t.composedPath(),s=n.includes(e._menu);if(n.includes(e._element)||"inside"===e._config.autoClose&&!s||"outside"===e._config.autoClose&&s)continue;if(e._menu.contains(t.target)&&("keyup"===t.type&&"Tab"===t.key||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const o={relatedTarget:e._element};"click"===t.type&&(o.clickEvent=t),e._completeHide(o)}}static dataApiKeydownHandler(t){const e=/input|textarea/i.test(t.target.tagName),i="Escape"===t.key,n=[Ci,Oi].includes(t.key);if(!n&&!i)return;if(e&&!i)return;t.preventDefault();const s=this.matches(Pi)?this:z.prev(this,Pi)[0]||z.next(this,Pi)[0]||z.findOne(Pi,t.delegateTarget.parentNode),o=Ki.getOrCreateInstance(s);if(n)return t.stopPropagation(),o.show(),void o._selectMenuItem(t);o._isShown()&&(t.stopPropagation(),o.hide(),s.focus())}}N.on(document,$i,Pi,Ki.dataApiKeydownHandler),N.on(document,$i,Mi,Ki.dataApiKeydownHandler),N.on(document,Di,Ki.clearMenus),N.on(document,Ii,Ki.clearMenus),N.on(document,Di,Pi,(function(t){t.preventDefault(),Ki.getOrCreateInstance(this).toggle()})),m(Ki);const Qi="backdrop",Xi="show",Yi=`mousedown.bs.${Qi}`,Ui={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Gi={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Ji extends H{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return Ui}static get DefaultType(){return Gi}static get NAME(){return Qi}show(t){if(!this._config.isVisible)return void g(t);this._append();const e=this._getElement();this._config.isAnimated&&d(e),e.classList.add(Xi),this._emulateAnimation((()=>{g(t)}))}hide(t){this._config.isVisible?(this._getElement().classList.remove(Xi),this._emulateAnimation((()=>{this.dispose(),g(t)}))):g(t)}dispose(){this._isAppended&&(N.off(this._element,Yi),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add("fade"),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=r(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),N.on(t,Yi,(()=>{g(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(t){_(t,this._getElement(),this._config.isAnimated)}}const Zi=".bs.focustrap",tn=`focusin${Zi}`,en=`keydown.tab${Zi}`,nn="backward",sn={autofocus:!0,trapElement:null},on={autofocus:"boolean",trapElement:"element"};class rn extends H{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return sn}static get DefaultType(){return on}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),N.off(document,Zi),N.on(document,tn,(t=>this._handleFocusin(t))),N.on(document,en,(t=>this._handleKeydown(t))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,N.off(document,Zi))}_handleFocusin(t){const{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;const i=z.focusableChildren(e);0===i.length?e.focus():this._lastTabNavDirection===nn?i[i.length-1].focus():i[0].focus()}_handleKeydown(t){"Tab"===t.key&&(this._lastTabNavDirection=t.shiftKey?nn:"forward")}}const an=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",ln=".sticky-top",cn="padding-right",hn="margin-right";class dn{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,cn,(e=>e+t)),this._setElementAttributes(an,cn,(e=>e+t)),this._setElementAttributes(ln,hn,(e=>e-t))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,cn),this._resetElementAttributes(an,cn),this._resetElementAttributes(ln,hn)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,i){const n=this.getWidth();this._applyManipulationCallback(t,(t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+n)return;this._saveInitialAttribute(t,e);const s=window.getComputedStyle(t).getPropertyValue(e);t.style.setProperty(e,`${i(Number.parseFloat(s))}px`)}))}_saveInitialAttribute(t,e){const i=t.style.getPropertyValue(e);i&&F.setDataAttribute(t,e,i)}_resetElementAttributes(t,e){this._applyManipulationCallback(t,(t=>{const i=F.getDataAttribute(t,e);null!==i?(F.removeDataAttribute(t,e),t.style.setProperty(e,i)):t.style.removeProperty(e)}))}_applyManipulationCallback(t,e){if(o(t))e(t);else for(const i of z.find(t,this._element))e(i)}}const un=".bs.modal",fn=`hide${un}`,pn=`hidePrevented${un}`,mn=`hidden${un}`,gn=`show${un}`,_n=`shown${un}`,bn=`resize${un}`,vn=`click.dismiss${un}`,yn=`mousedown.dismiss${un}`,wn=`keydown.dismiss${un}`,An=`click${un}.data-api`,En="modal-open",Tn="show",Cn="modal-static",On={backdrop:!0,focus:!0,keyboard:!0},xn={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class kn extends W{constructor(t,e){super(t,e),this._dialog=z.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new dn,this._addEventListeners()}static get Default(){return On}static get DefaultType(){return xn}static get NAME(){return"modal"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||N.trigger(this._element,gn,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(En),this._adjustDialog(),this._backdrop.show((()=>this._showElement(t))))}hide(){this._isShown&&!this._isTransitioning&&(N.trigger(this._element,fn).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Tn),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated())))}dispose(){N.off(window,un),N.off(this._dialog,un),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Ji({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new rn({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const e=z.findOne(".modal-body",this._dialog);e&&(e.scrollTop=0),d(this._element),this._element.classList.add(Tn),this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,N.trigger(this._element,_n,{relatedTarget:t})}),this._dialog,this._isAnimated())}_addEventListeners(){N.on(this._element,wn,(t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())})),N.on(window,bn,(()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()})),N.on(this._element,yn,(t=>{N.one(this._element,vn,(e=>{this._element===t.target&&this._element===e.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())}))}))}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide((()=>{document.body.classList.remove(En),this._resetAdjustments(),this._scrollBar.reset(),N.trigger(this._element,mn)}))}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(N.trigger(this._element,pn).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._element.style.overflowY;"hidden"===e||this._element.classList.contains(Cn)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(Cn),this._queueCallback((()=>{this._element.classList.remove(Cn),this._queueCallback((()=>{this._element.style.overflowY=e}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),i=e>0;if(i&&!t){const t=p()?"paddingLeft":"paddingRight";this._element.style[t]=`${e}px`}if(!i&&t){const t=p()?"paddingRight":"paddingLeft";this._element.style[t]=`${e}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each((function(){const i=kn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method n
2615amed "${t}"`);i[t](e)}}))}}N.on(document,An,'[data-bs-toggle="modal"]',(function(t){const e=z.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),N.one(e,gn,(t=>{t.defaultPrevented||N.one(e,mn,(()=>{a(this)&&this.focus()}))}));const i=z.findOne(".modal.show");i&&kn.getInstance(i).hide(),kn.getOrCreateInstance(e).toggle(this)})),R(kn),m(kn);const Ln=".bs.offcanvas",Sn=".data-api",Dn=`load${Ln}${Sn}`,$n="show",In="showing",Nn="hiding",Pn=".offcanvas.show",jn=`show${Ln}`,Mn=`shown${Ln}`,Fn=`hide${Ln}`,Hn=`hidePrevented${Ln}`,Wn=`hidden${Ln}`,Bn=`resize${Ln}`,zn=`click${Ln}${Sn}`,Rn=`keydown.dismiss${Ln}`,qn={backdrop:!0,keyboard:!0,scroll:!1},Vn={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Kn extends W{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return qn}static get DefaultType(){return Vn}static get NAME(){return"offcanvas"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||N.trigger(this._element,jn,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new dn).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(In),this._queueCallback((()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add($n),this._element.classList.remove(In),N.trigger(this._element,Mn,{relatedTarget:t})}),this._element,!0))}hide(){this._isShown&&(N.trigger(this._element,Fn).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Nn),this._backdrop.hide(),this._queueCallback((()=>{this._element.classList.remove($n,Nn),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new dn).reset(),N.trigger(this._element,Wn)}),this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=Boolean(this._config.backdrop);return new Ji({className:"offcanvas-backdrop",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?()=>{"static"!==this._config.backdrop?this.hide():N.trigger(this._element,Hn)}:null})}_initializeFocusTrap(){return new rn({trapElement:this._element})}_addEventListeners(){N.on(this._element,Rn,(t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():N.trigger(this._element,Hn))}))}static jQueryInterface(t){return this.each((function(){const e=Kn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}N.on(document,zn,'[data-bs-toggle="offcanvas"]',(function(t){const e=z.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),l(this))return;N.one(e,Wn,(()=>{a(this)&&this.focus()}));const i=z.findOne(Pn);i&&i!==e&&Kn.getInstance(i).hide(),Kn.getOrCreateInstance(e).toggle(this)})),N.on(window,Dn,(()=>{for(const t of z.find(Pn))Kn.getOrCreateInstance(t).show()})),N.on(window,Bn,(()=>{for(const t of z.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(t).position&&Kn.getOrCreateInstance(t).hide()})),R(Kn),m(Kn);const Qn={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Xn=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Yn=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Un=(t,e)=>{const i=t.nodeName.toLowerCase();return e.includes(i)?!Xn.has(i)||Boolean(Yn.test(t.nodeValue)):e.filter((t=>t instanceof RegExp)).some((t=>t.test(i)))},Gn={allowList:Qn,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},Jn={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Zn={entry:"(string|element|function|null)",selector:"(string|element)"};class ts extends H{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return Gn}static get DefaultType(){return Jn}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map((t=>
vendor: 10,073 bytes, line 2615
2615this._resolvePossibleFunction(t))).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[e,i]of Object.entries(this._config.content))this._setContent(t,i,e);const e=t.children[0],i=this._resolvePossibleFunction(this._config.extraClass);return i&&e.classList.add(...i.split(" ")),e}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[e,i]of Object.entries(t))super._typeCheckConfig({selector:e,entry:i},Zn)}_setContent(t,e,i){const n=z.findOne(i,t);n&&((e=this._resolvePossibleFunction(e))?o(e)?this._putElementInTemplate(r(e),n):this._config.html?n.innerHTML=this._maybeSanitize(e):n.textContent=e:n.remove())}_maybeSanitize(t){return this._config.sanitize?function(t,e,i){if(!t.length)return t;if(i&&"function"==typeof i)return i(t);const n=(new window.DOMParser).parseFromString(t,"text/html"),s=[].concat(...n.body.querySelectorAll("*"));for(const t of s){const i=t.nodeName.toLowerCase();if(!Object.keys(e).includes(i)){t.remove();continue}const n=[].concat(...t.attributes),s=[].concat(e["*"]||[],e[i]||[]);for(const e of n)Un(e,s)||t.removeAttribute(e.nodeName)}return n.body.innerHTML}(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return g(t,[void 0,this])}_putElementInTemplate(t,e){if(this._config.html)return e.innerHTML="",void e.append(t);e.textContent=t.textContent}}const es=new Set(["sanitize","allowList","sanitizeFn"]),is="fade",ns="show",ss=".tooltip-inner",os=".modal",rs="hide.bs.modal",as="hover",ls="focus",cs="click",hs={AUTO:"auto",TOP:"top",RIGHT:p()?"left":"right",BOTTOM:"bottom",LEFT:p()?"right":"left"},ds={allowList:Qn,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},us={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class fs extends W{constructor(t,e){if(void 0===wi)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(t,e),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return ds}static get DefaultType(){return us}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),N.off(this._element.closest(os),rs,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const t=N.trigger(this._element,this.constructor.eventName("show")),e=(c(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!e)return;this._disposePopper();const i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));const{container:n}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(n.append(i),N.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(i),i.classList.add(ns),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))N.on(t,"mouseover",h);this._queueCallback((()=>{N.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1}),this.tip,this._isAnimated())}hide(){if(this._isShown()&&!N.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(ns),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))N.off(t,"mouseover",h);this._activeTrigger[cs]=!1,this._activeTrigger[ls]=!1,this._activeTrigger[as]=!1,this._isHovered=null,this._queueCallback((()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),N.trigger(this._element,this.constructor.eventName("hidden")))}),this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(is,ns),e.classList.add(`bs-${this.constructor.NAME}-auto`);const i=(t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t})(this.constructor.NAME).toString();return e.setAttribute("id",i),this._isAnimated()&&e.classList.add(is),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new ts({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[ss]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(is)}_isShown(){return this.tip&&this.tip.classList.contains(ns)}_createPopper(t){const e=g(this._config.placement,[this,t,this._element]),i=hs[e.toUpperCase()];return yi(this._element,t,this._getPopperConfig(i))}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(t){return g(t,[this._element,this._element])}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:t=>{this._getTipElement().setAttribute("data-popper-placement",t.state.placement)}}]};return{...e,...g(this._config.popperConfig,[void 0,e])}}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if("click"===e)N.on(this._element,this.constructor.eventName("click"),this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger[cs]=!(e._isShown()&&e._activeTrigger[cs]),e.toggle()}));else if("manual"!==e){const t=e===as?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),i=e===as?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");N.on(this._element,t,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusin"===t.type?ls:as]=!0,e._enter()})),N.on(this._element,i,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusout"===t.type?ls:as]=e._element.contains(t.relatedTarget),e._leave()}))}this._hideModalHandler=()=>{this._element&&this.hide()},N.on(this._element.closest(os),rs,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout((()=>{this._isHovered&&this.show()}),this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout((()=>{this._isHovered||this.hide()}),this._config.delay.hide))}_setTimeout(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const e=F.getDataAttributes(this._element);for(const t of Object.keys(e))es.has(t)&&delete e[t];return t={...e,..."object"==typeof t&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=!1===t.container?document.body:r(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const[e,i]of Object.entries(this._config))this.constructor.Default[e]!==i&&(t[e]=i);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each((function(){const e=fs.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method n
2615amed "${t}"`);e[t]()}}))}}m(fs);const ps=".popover-header",ms=".popover-body",gs={...fs.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},_s={...fs.DefaultType,content:"(null|string|element|function)"};class bs extends fs{static get Default(){return gs}static get DefaultType(){return _s}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[ps]:this._getTitle(),[ms]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each((function(){const e=bs.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}m(bs);const vs=".bs.scrollspy",ys=`activate${vs}`,ws=`click${vs}`,As=`load${vs}.data-api`,Es="active",Ts="[href]",Cs=".nav-link",Os=`${Cs}, .nav-item > ${Cs}, .list-group-item`,xs={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},ks={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Ls extends W{constructor(t,e){super(t,e),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return xs}static get DefaultType(){return ks}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=r(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,"string"==typeof t.threshold&&(t.threshold=t.threshold.split(",").map((t=>Number.parseFloat(t)))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(N.off(this._config.target,ws),N.on(this._config.target,ws,Ts,(t=>{const e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();const i=this._rootElement||window,n=e.offsetTop-this._element.offsetTop;if(i.scrollTo)return void i.scrollTo({top:n,behavior:"smooth"});i.scrollTop=n}})))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver((t=>this._observerCallback(t)),t)}_observerCallback(t){const e=t=>this._targetLinks.get(`#${t.target.id}`),i=t=>{this._previousScrollData.visibleEntryTop=t.target.offsetTop,this._process(e(t))},n=(this._rootElement||document.documentElement).scrollTop,s=n>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=n;for(const o of t){if(!o.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(o));continue}const t=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(s&&t){if(i(o),!n)return}else s||t||i(o)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=z.find(Ts,this._config.target);for(const e of t){if(!e.hash||l(e))continue;const t=z.findOne(decodeURI(e.hash),this._element);a(t)&&(this._targetLinks.set(decodeURI(e.hash),e),this._observableSections.set(e.hash,t))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(Es),this._activateParents(t),N.trigger(this._element,ys,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains("dropdown-item"))z.findOne(".dropdown-toggle",t.closest(".dropdown")).classList.add(Es);else for(const e of z.parents(t,".nav, .list-group"))for(const t of z.prev(e,Os))t.classList.add(Es)}_clearActiveClass(t){t.classList.remove(Es);const e=z.find(`${Ts}.${Es}`,t);for(const t of e)t.classList.remove(Es)}static jQueryInterface(t){return this.each((function(){const e=Ls.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method n
2615amed "${t}"`);e[t]()}}))}}N.on(window,As,(()=>{for(const t of z.find('[data-bs-spy="scroll"]'))Ls.getOrCreateInstance(t)})),m(Ls);const Ss=".bs.tab",Ds=`hide${Ss}`,$s=`hidden${Ss}`,Is=`show${Ss}`,Ns=`shown${Ss}`,Ps=`click${Ss}`,js=`keydown${Ss}`,Ms=`load${Ss}`,Fs="ArrowLeft",Hs="ArrowRight",Ws="ArrowUp",Bs="ArrowDown",zs="Home",Rs="End",qs="active",Vs="fade",Ks="show",Qs=".dropdown-toggle",Xs=`:not(${Qs})`,Ys='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Us=`.nav-link${Xs}, .list-group-item${Xs}, [role="tab"]${Xs}, ${Ys}`,Gs=`.${qs}[data-bs-toggle="tab"], .${qs}[data-bs-toggle="pill"], .${qs}[data-bs-toggle="list"]`;class Js extends W{constructor(t){super(t),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),N.on(this._element,js,(t=>this._keydown(t))))}static get NAME(){return"tab"}show(){const t=this._element;if(this._elemIsActive(t))return;const e=this._getActiveElem(),i=e?N.trigger(e,Ds,{relatedTarget:t}):null;N.trigger(t,Is,{relatedTarget:e}).defaultPrevented||i&&i.defaultPrevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){t&&(t.classList.add(qs),this._activate(z.getElementFromSelector(t)),this._queueCallback((()=>{"tab"===t.getAttribute("role")?(t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),N.trigger(t,Ns,{relatedTarget:e})):t.classList.add(Ks)}),t,t.classList.contains(Vs)))}_deactivate(t,e){t&&(t.classList.remove(qs),t.blur(),this._deactivate(z.getElementFromSelector(t)),this._queueCallback((()=>{"tab"===t.getAttribute("role")?(t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),N.trigger(t,$s,{relatedTarget:e})):t.classList.remove(Ks)}),t,t.classList.contains(Vs)))}_keydown(t){if(![Fs,Hs,Ws,Bs,zs,Rs].includes(t.key))return;t.stopPropagation(),t.preventDefault();const e=this._getChildren().filter((t=>!l(t)));let i;if([zs,Rs].includes(t.key))i=e[t.key===zs?0:e.length-1];else{const n=[Hs,Bs].includes(t.key);i=b(e,t.target,n,!0)}i&&(i.focus({preventScroll:!0}),Js.getOrCreateInstance(i).show())}_getChildren(){return z.find(Us,this._parent)}_getActiveElem(){return this._getChildren().find((t=>this._elemIsActive(t)))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,"role","tablist");for(const t of e)this._setInitialAttributesOnChild(t)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const e=this._elemIsActive(t),i=this._getOuterElement(t);t.setAttribute("aria-selected",e),i!==t&&this._setAttributeIfNotExists(i,"role","presentation"),e||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const e=z.getElementFromSelector(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,e){const i=this._getOuterElement(t);if(!i.classList.contains("dropdown"))return;const n=(t,n)=>{const s=z.findOne(t,i);s&&s.classList.toggle(n,e)};n(Qs,qs),n(".dropdown-menu",Ks),i.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,i){t.hasAttribute(e)||t.setAttribute(e,i)}_elemIsActive(t){return t.classList.contains(qs)}_getInnerElement(t){return t.matches(Us)?t:z.findOne(Us,t)}_getOuterElement(t){return t.closest(".nav-item, .list-group-item")||t}static jQueryInterface(t){return this.each((function(){const e=Js.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}))}}N.on(document,Ps,Ys,(function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),l(this)||Js.getOrCreateInstance(this).show()})),N.on(window,Ms,(()=>{for(const t of z.find(Gs))Js.getOrCreateInstance(t)})),m(Js);const Zs=".bs.toast",to=`mouseover${Zs}`,eo=`mouseout${Zs}`,io=`focusin${Zs}`,no=`focusout${Zs}`,so=`hide${Zs}`,oo=`hidden${Zs}`,ro=`show${Zs}`,ao=`shown${Zs}`,lo="hide",co="show",ho="showing",uo={animation:"boolean",autohide:"boolean",delay:"number"},fo={animation:!0,autohide:!0,delay:5e3};class po extends W{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return fo}static get DefaultType(){return uo}static get NAME(){return"toast"}show(){N.trigger(this._element,ro).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(lo),d(this._element),this._element.classList.add(co,ho),this._queueCallback((()=>{this._element.classList.remove(ho),N.trigger(this._element,ao),this._maybeScheduleHide()}),this._element,this._config.animation))}hide(){this.isShown()&&(N.trigger(this._element,so).defaultPrevented||(this._element.classList.add(ho),this._queueCallback((()=>{this._element.classList.add(lo),this._element.classList.remove(ho,co),N.trigger(this._element,oo)}),this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(co),super.dispose()}isShown(){return this._element.classList.contains(co)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=e;break;case"focusin":case"focusout":this._hasKeyboardInteraction=e}if(e)return void this._clearTimeout();const i=t.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide()}_setListeners(){N.on(this._element,to,(t=>this._onInteraction(t,!0))),N.on(this._element,eo,(t=>this._onInteraction(t,!1))),N.on(this._element,io,(t=>this._onInteraction(t,!0))),N.on(this._element,no,(t=>this._onInteraction(t,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each((function(){const e=po.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method n
2615amed "${t}"`);e[t](this)}}))}}return R(po),m(po),{Alert:Q,Button:Y,Carousel:Lt,Collapse:Rt,Dropdown:Ki,Modal:kn,Offcanvas:Kn,Popover:bs,ScrollSpy:Ls,Tab:Js,Toast:po,Tooltip:fs}}));/*! 2616 * Bootstrap scrollspy.js v4.6.0 (https://getbootstrap.com/) 2617 * Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) 2618 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) 2619 */ 2620(function (global, factory) { 2621 typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('jquery'), require('./util.js')) : 2622 typeof define === 'function' && define.amd ? define(['jquery', './util'], factory) : 2623 (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.ScrollSpy = factory(global.jQuery, global.Util)); 2624}(this, (function ($, Util) { 2625 'use strict'; 2626 2627 function _interopDefaultLegacy(e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } 2628 2629 var $__default = /*#__PURE__*/_interopDefaultLegacy($); 2630 var Util__default = /*#__PURE__*/_interopDefaultLegacy(Util); 2631 2632 function _defineProperties(target, props) { 2633 for (var i = 0; i < props.length; i++) { 2634 var descriptor = props[i]; 2635 descriptor.enumerable = descriptor.enumerable || false; 2636 descriptor.configurable = true; 2637 if ("value" in descriptor) descriptor.writable = true; 2638 Object.defineProperty(target, descriptor.key, descriptor); 2639 } 2640 } 2641 2642 function _createClass(Constructor, protoProps, staticProps) { 2643 if (protoProps) _defineProperties(Constructor.prototype, protoProps); 2644 if (staticProps) _defineProperties(Constructor, staticProps); 2645 return Constructor; 2646 } 2647 2648 function _extends() { 2649 _extends = Object.assign || function (target) { 2650 for (var i = 1; i < arguments.length; i++) { 2651 var source = arguments[i]; 2652 2653 for (var key in source) { 2654 if (Object.prototype.hasOwnProperty.call(source, key)) { 2655 target[key] = source[key]; 2656 } 2657 } 2658 } 2659 2660 return target; 2661 }; 2662 2663 return _extends.apply(this, arguments); 2664 } 2665 2666 /** 2667 * ------------------------------------------------------------------------ 2668 * Constants 2669 * ------------------------------------------------------------------------ 2670 */ 2671 2672 var NAME = 'scrollspy'; 2673 var VERSION = '4.6.0'; 2674 var DATA_KEY = 'bs.scrollspy'; 2675 var EVENT_KEY = "." + DATA_KEY; 2676 var DATA_API_KEY = '.data-api'; 2677 var JQUERY_NO_CONFLICT = $__default['default'].fn[NAME]; 2678 var Default = { 2679 offset: 10, 2680 method: 'auto', 2681 target: '' 2682 }; 2683 var DefaultType = { 2684 offset: 'number', 2685 method: 'string', 2686 target: '(string|element)' 2687 }; 2688 var EVENT_ACTIVATE = "activate" + EVENT_KEY; 2689 var EVENT_SCROLL = "scroll" + EVENT_KEY; 2690 var EVENT_LOAD_DATA_API = "load" + EVENT_KEY + DATA_API_KEY; 2691 var CLASS_NAME_DROPDOWN_ITEM = 'dropdown-item'; 2692 var CLASS_NAME_ACTIVE = 'active'; 2693 var SELECTOR_DATA_SPY = '[data-spy="scroll"]'; 2694 var SELECTOR_NAV_LIST_GROUP = '.nav, .list-group'; 2695 var SELECTOR_NAV_LINKS = '.nav-link'; 2696 var SELECTOR_NAV_ITEMS = '.nav-item'; 2697 var SELECTOR_LIST_ITEMS = '.list-group-item'; 2698 var SELECTOR_DROPDOWN = '.dropdown'; 2699 var SELECTOR_DROPDOWN_ITEMS = '.dropdown-item'; 2700 var SELECTOR_DROPDOWN_TOGGLE = '.dropdown-toggle'; 2701 var METHOD_OFFSET = 'offset'; 2702 var METHOD_POSITION = 'position'; 2703 /** 2704 * ------------------------------------------------------------------------ 2705 * Class Definition 2706 * ------------------------------------------------------------------------ 2707 */ 2708 2709 var ScrollSpy = /*#__PURE__*/function () { 2710 function ScrollSpy(element, config) { 2711 var _this = this; 2712 2713 this._element = element; 2714 this._scrollElement = element.tagName === 'BODY' ? window : element; 2715 this._config = this._getConfig(config); 2716 this._selector = this._config.target + " " + SELECTOR_NAV_LINKS + "," + (this._config.target + " " + SELECTOR_LIST_ITEMS + ",") + (this._config.target + " " + SELECTOR_DROPDOWN_IT
2716EMS); 2717 this._offsets = []; 2718 this._targets = []; 2719 this._activeTarget = null; 2720 this._scrollHeight = 0; 2721 $__default['default'](this._scrollElement).on(EVENT_SCROLL, function (event) { 2722 return _this._process(event); 2723 }); 2724 this.refresh(); 2725 2726 this._process(); 2727 } // Getters 2728 2729 2730 var _proto = ScrollSpy.prototype; 2731 2732 // Public 2733 _proto.refresh = function refresh() { 2734 var _this2 = this; 2735 2736 var autoMethod = this._scrollElement === this._scrollElement.window ? METHOD_OFFSET : METHOD_POSITION; 2737 var offsetMethod = this._config.method === 'auto' ? autoMethod : this._config.method; 2738 var offsetBase = offsetMethod === METHOD_POSITION ? this._getScrollTop() : 0; 2739 this._offsets = []; 2740 this._targets = []; 2741 this._scrollHeight = this._getScrollHeight(); 2742 var targets = [].slice.call(document.querySelectorAll(this._selector)); 2743 targets.map(function (element) { 2744 var target; 2745 var targetSelector = Util__default['default'].getSelectorFromElement(element); 2746 2747 if (targetSelector) { 2748 target = document.querySelector(targetSelector); 2749 } 2750 2751 if (target) { 2752 var targetBCR = target.getBoundingClientRect(); 2753 2754 if (targetBCR.width || targetBCR.height) { 2755 // TODO (fat): remove sketch reliance on jQuery position/offset 2756 return [$__default['default'](target)[offsetMethod]().top + offsetBase, targetSelector]; 2757 } 2758 } 2759 2760 return null; 2761 }).filter(function (item) { 2762 return item; 2763 }).sort(function (a, b) { 2764 return a[0] - b[0]; 2765 }
vendor: 4,014 bytes, lines 2765-2870
2765).forEach(function (item) { 2766 _this2._offsets.push(item[0]); 2767 2768 _this2._targets.push(item[1]); 2769 }); 2770 }; 2771 2772 _proto.dispose = function dispose() { 2773 $__default['default'].removeData(this._element, DATA_KEY); 2774 $__default['default'](this._scrollElement).off(EVENT_KEY); 2775 this._element = null; 2776 this._scrollElement = null; 2777 this._config = null; 2778 this._selector = null; 2779 this._offsets = null; 2780 this._targets = null; 2781 this._activeTarget = null; 2782 this._scrollHeight = null; 2783 } // Private 2784 ; 2785 2786 _proto._getConfig = function _getConfig(config) { 2787 config = _extends({}, Default, typeof config === 'object' && config ? config : {}); 2788 2789 if (typeof config.target !== 'string' && Util__default['default'].isElement(config.target)) { 2790 var id = $__default['default'](config.target).attr('id'); 2791 2792 if (!id) { 2793 id = Util__default['default'].getUID(NAME); 2794 $__default['default'](config.target).attr('id', id); 2795 } 2796 2797 config.target = "#" + id; 2798 } 2799 2800 Util__default['default'].typeCheckConfig(NAME, config, DefaultType); 2801 return config; 2802 }; 2803 2804 _proto._getScrollTop = function _getScrollTop() { 2805 return this._scrollElement === window ? this._scrollElement.pageYOffset : this._scrollElement.scrollTop; 2806 }; 2807 2808 _proto._getScrollHeight = function _getScrollHeight() { 2809 return this._scrollElement.scrollHeight || Math.max(document.body.scrollHeight, document.documentElement.scrollHeight); 2810 }; 2811 2812 _proto._getOffsetHeight = function _getOffsetHeight() { 2813 return this._scrollElement === window ? window.innerHeight : this._scrollElement.getBoundingClientRect().height; 2814 }; 2815 2816 _proto._process = function _process() { 2817 var scrollTop = this._getScrollTop() + this._config.offset; 2818 2819 var scrollHeight = this._getScrollHeight(); 2820 2821 var maxScroll = this._config.offset + scrollHeight - this._getOffsetHeight(); 2822 2823 if (this._scrollHeight !== scrollHeight) { 2824 this.refresh(); 2825 } 2826 2827 if (scrollTop >= maxScroll) { 2828 var target = this._targets[this._targets.length - 1]; 2829 2830 if (this._activeTarget !== target) { 2831 this._activate(target); 2832 } 2833 2834 return; 2835 } 2836 2837 if (this._activeTarget && scrollTop < this._offsets[0] && this._offsets[0] > 0) { 2838 this._activeTarget = null; 2839 2840 this._clear(); 2841 2842 return; 2843 } 2844 2845 for (var i = this._offsets.length; i--;) { 2846 var isActiveTarget = this._activeTarget !== this._targets[i] && scrollTop >= this._offsets[i] && (typeof this._offsets[i + 1] === 'undefined' || scrollTop < this._offsets[i + 1]); 2847 2848 if (isActiveTarget) { 2849 this._activate(this._targets[i]); 2850 } 2851 } 2852 }; 2853 2854 _proto._activate = function _activate(target) { 2855 this._activeTarget = target; 2856 2857 this._clear(); 2858 2859 var queries = this._selector.split(',').map(function (selector) { 2860 return selector + "[data-target=\"" + target + "\"]," + selector + "[href=\"" + target + "\"]"; 2861 }); 2862 2863 var $link = $__default['default']([].slice.call(document.querySelectorAll(queries.join(',')))); 2864 2865 if ($link.hasClass(CLASS_NAME_DROPDOWN_ITEM)) { 2866 $link.closest(SELECTOR_DROPDOWN).find(SELECTOR_DROPDOWN_TOGGLE).addClass(CLASS_NAME_ACTIVE); 2867 $link.addClass(CLASS_NAME_ACTIVE); 2868 } else { 2869 // Set triggered link as active 2870 $link.addClass(CLASS_NAME_ACTIVE); // Set triggered links parents as active
vendor: 4,818 bytes, lines 2871-2996
2871 // With both <ul> and <nav> markup a parent is the previous sibling of any nav ancestor 2872 2873 $link.parents(SELECTOR_NAV_LIST_GROUP).prev(SELECTOR_NAV_LINKS + ", " + SELECTOR_LIST_ITEMS).addClass(CLASS_NAME_ACTIVE); // Handle special case when .nav-link is inside .nav-item 2874 2875 $link.parents(SELECTOR_NAV_LIST_GROUP).prev(SELECTOR_NAV_ITEMS).children(SELECTOR_NAV_LINKS).addClass(CLASS_NAME_ACTIVE); 2876 } 2877 2878 $__default['default'](this._scrollElement).trigger(EVENT_ACTIVATE, { 2879 relatedTarget: target 2880 }); 2881 }; 2882 2883 _proto._clear = function _clear() { 2884 [].slice.call(document.querySelectorAll(this._selector)).filter(function (node) { 2885 return node.classList.contains(CLASS_NAME_ACTIVE); 2886 }).forEach(function (node) { 2887 return node.classList.remove(CLASS_NAME_ACTIVE); 2888 }); 2889 } // Static 2890 ; 2891 2892 ScrollSpy._jQueryInterface = function _jQueryInterface(config) { 2893 return this.each(function () { 2894 var data = $__default['default'](this).data(DATA_KEY); 2895 2896 var _config = typeof config === 'object' && config; 2897 2898 if (!data) { 2899 data = new ScrollSpy(this, _config); 2900 $__default['default'](this).data(DATA_KEY, data); 2901 } 2902 2903 if (typeof config === 'string') { 2904 if (typeof data[config] === 'undefined') { 2905 throw new TypeError("No method named \"" + config + "\""); 2906 } 2907 2908 data[config](); 2909 } 2910 }); 2911 }; 2912 2913 _createClass(ScrollSpy, null, [{ 2914 key: "VERSION", 2915 get: function get() { 2916 return VERSION; 2917 } 2918 }, { 2919 key: "Default", 2920 get: function get() { 2921 return Default; 2922 } 2923 }]); 2924 2925 return ScrollSpy; 2926 }(); 2927 /** 2928 * ------------------------------------------------------------------------ 2929 * Data Api implementation 2930 * ------------------------------------------------------------------------ 2931 */ 2932 2933 2934 $__default['default'](window).on(EVENT_LOAD_DATA_API, function () { 2935 var scrollSpys = [].slice.call(document.querySelectorAll(SELECTOR_DATA_SPY)); 2936 var scrollSpysLength = scrollSpys.length; 2937 2938 for (var i = scrollSpysLength; i--;) { 2939 var $spy = $__default['default'](scrollSpys[i]); 2940 2941 ScrollSpy._jQueryInterface.call($spy, $spy.data()); 2942 } 2943 }); 2944 /** 2945 * ------------------------------------------------------------------------ 2946 * jQuery 2947 * ------------------------------------------------------------------------ 2948 */ 2949 2950 $__default['default'].fn[NAME] = ScrollSpy._jQueryInterface; 2951 $__default['default'].fn[NAME].Constructor = ScrollSpy; 2952 2953 $__default['default'].fn[NAME].noConflict = function () { 2954 $__default['default'].fn[NAME] = JQUERY_NO_CONFLICT; 2955 return ScrollSpy._jQueryInterface; 2956 }; 2957 2958 return ScrollSpy; 2959 2960}))); 2961//# sourceMappingURL=scrollspy.js.map 2962/*! 2963 * Bootstrap util.js v4.6.0 (https://getbootstrap.com/) 2964 * Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) 2965 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) 2966 */ 2967(function (global, factory) { 2968 typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('jquery')) : 2969 typeof define === 'function' && define.amd ? define(['jquery'], factory) : 2970 (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Util = factory(global.jQuery)); 2971}(this, (function ($) { 2972 'use strict'; 2973 2974 function _interopDefaultLegacy(e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } 2975 2976 var $__default = /*#__PURE__*/_interopDefaultLegacy($); 2977 2978 /** 2979 * -------------------------------------------------------------------------- 2980 * Bootstrap (v4.6.0): util.js 2981 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) 2982 * -------------------------------------------------------------------------- 2983 */ 2984 /** 2985 * ------------------------------------------------------------------------ 2986 * Private TransitionEnd Helpers 2987 * ------------------------------------------------------------------------ 2988 */ 2989 2990 var TRANSITION_END = 'transitionend'; 2991 var MAX_UID = 1000000; 2992 var MILLISECONDS_MULTIPLIER = 1000; // Shoutout AngusCroll (https://goo.gl/pxwQGp) 2993 2994 function toType(obj) { 2995 if (obj === null || typeof obj === 'undefined') { 2996 return "" + obj;
vendor: 5,951 bytes, lines 2997-3144
2997 } 2998 2999 return {}.toString.call(obj).match(/\s([a-z]+)/i)[1].toLowerCase(); 3000 } 3001 3002 function getSpecialTransitionEndEvent() { 3003 return { 3004 bindType: TRANSITION_END, 3005 delegateType: TRANSITION_END, 3006 handle: function handle(event) { 3007 if ($__default['default'](event.target).is(this)) { 3008 return event.handleObj.handler.apply(this, arguments); // eslint-disable-line prefer-rest-params 3009 } 3010 3011 return undefined; 3012 } 3013 }; 3014 } 3015 3016 function transitionEndEmulator(duration) { 3017 var _this = this; 3018 3019 var called = false; 3020 $__default['default'](this).one(Util.TRANSITION_END, function () { 3021 called = true; 3022 }); 3023 setTimeout(function () { 3024 if (!called) { 3025 Util.triggerTransitionEnd(_this); 3026 } 3027 }, duration); 3028 return this; 3029 } 3030 3031 function setTransitionEndSupport() { 3032 $__default['default'].fn.emulateTransitionEnd = transitionEndEmulator; 3033 $__default['default'].event.special[Util.TRANSITION_END] = getSpecialTransitionEndEvent(); 3034 } 3035 /** 3036 * -------------------------------------------------------------------------- 3037 * Public Util Api 3038 * -------------------------------------------------------------------------- 3039 */ 3040 3041 3042 var Util = { 3043 TRANSITION_END: 'bsTransitionEnd', 3044 getUID: function getUID(prefix) { 3045 do { 3046 prefix += ~~(Math.random() * MAX_UID); // "~~" acts like a faster Math.floor() here 3047 } while (document.getElementById(prefix)); 3048 3049 return prefix; 3050 }, 3051 getSelectorFromElement: function getSelectorFromElement(element) { 3052 var selector = element.getAttribute('data-target'); 3053 3054 if (!selector || selector === '#') { 3055 var hrefAttr = element.getAttribute('href'); 3056 selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : ''; 3057 } 3058 3059 try { 3060 return document.querySelector(selector) ? selector : null; 3061 } catch (_) { 3062 return null; 3063 } 3064 }, 3065 getTransitionDurationFromElement: function getTransitionDurationFromElement(element) { 3066 if (!element) { 3067 return 0; 3068 } // Get transition-duration of the element 3069 3070 3071 var transitionDuration = $__default['default'](element).css('transition-duration'); 3072 var transitionDelay = $__default['default'](element).css('transition-delay'); 3073 var floatTransitionDuration = parseFloat(transitionDuration); 3074 var floatTransitionDelay = parseFloat(transitionDelay); // Return 0 if element or transition duration is not found 3075 3076 if (!floatTransitionDuration && !floatTransitionDelay) { 3077 return 0; 3078 } // If multiple durations are defined, take the first 3079 3080 3081 transitionDuration = transitionDuration.split(',')[0]; 3082 transitionDelay = transitionDelay.split(',')[0]; 3083 return (parseFloat(transitionDuration) + parseFloat(transitionDelay)) * MILLISECONDS_MULTIPLIER; 3084 }, 3085 reflow: function reflow(element) { 3086 return element.offsetHeight; 3087 }, 3088 triggerTransitionEnd: function triggerTransitionEnd(element) { 3089 $__default['default'](element).trigger(TRANSITION_END); 3090 }, 3091 supportsTransitionEnd: function supportsTransitionEnd() { 3092 return Boolean(TRANSITION_END); 3093 }, 3094 isElement: function isElement(obj) { 3095 return (obj[0] || obj).nodeType; 3096 }, 3097 typeCheckConfig: function typeCheckConfig(componentName, config, configTypes) { 3098 for (var property in configTypes) { 3099 if (Object.prototype.hasOwnProperty.call(configTypes, property)) { 3100 var expectedTypes = configTypes[property]; 3101 var value = config[property]; 3102 var valueType = value && Util.isElement(value) ? 'element' : toType(value); 3103 3104 if (!new RegExp(expectedTypes).test(valueType)) { 3105 throw new Error(componentName.toUpperCase() + ": " + ("Option \"" + property + "\" provided type \"" + valueType + "\" ") + ("but expected type \"" + expectedTypes + "\".")); 3106 } 3107 } 3108 } 3109 }, 3110 findShadowRoot: function findShadowRoot(element) { 3111 if (!document.documentElement.attachShadow) { 3112 return null; 3113 } // Can find the shadow root otherwise it'll return the document 3114 3115 3116 if (typeof element.getRootNode === 'function') { 3117 var root = element.getRootNode(); 3118 return root instanceof ShadowRoot ? root : null; 3119 } 3120 3121 if (element instanceof ShadowRoot) { 3122 return element; 3123 } // when we don't find a shadow root 3124 3125 3126 if (!element.parentNode) { 3127 return null; 3128 } 3129 3130 return Util.findShadowRoot(element.parentNode); 3131 }, 3132 jQueryDetection: function jQueryDetection() { 3133 if (typeof $__default['default'] === 'undefined') { 3134 throw new TypeError('Bootstrap\'s JavaScript requires jQuery. jQuery must be included before Bootstrap\'s JavaScript.'); 3135 } 3136 3137 var version = $__default['default'].fn.jquery.split(' ')[0].split('.'); 3138 var minMajor = 1; 3139 var ltMajor = 2; 3140 var minMinor = 9; 3141 var minPatch = 1; 3142 var maxMajor = 4; 3143 3144 if (version[0] < ltMajor && version[1] < minMinor || version[0] === minMajor && version[1] === minMinor && version[2] < minPatch || version[0] >
3144= maxMajor) { 3145 throw new Error('Bootstrap\'s JavaScript requires at least jQuery v1.9.1 but less than v4.0.0'); 3146 } 3147 } 3148 }; 3149 Util.jQueryDetection(); 3150 setTransitionEndSupport(); 3151 3152 return Util; 3153 3154}))); 3155//# sourceMappingURL=util.js.map 3156!function (t) { t.extend({ browserSelector: function () { var e; e = navigator.userAgent || navigator.vendor || window.opera, (jQuery.browser = jQuery.browser || {}).mobile = /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(e) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0, 4)); var o = navigator.userAgent.toLowerCase(), i = function (t) { return o.indexOf(t) > -1 }, a = "gecko", n = "webkit", r = "safari", s = "opera", l = document.documentElement, p = [!/opera|webtv/i.test(o) && /msie\s(\d)/.test(o) ? "ie ie" + parseFloat(navigator.appVersion.split("MSIE")[1]) : i("firefox/2") ? a + " ff2" : i("firefox/3.5") ? a + " ff3 ff3_5" : i("firefox/3") ? a + " ff3" : i("gecko/") ? a : i("opera") ? s + (/version\/(\d+)/.test(o) ? " " + s + RegExp.jQuery1 : /opera(\s|\/)(\d+)/.test(o) ? " " + s + RegExp.jQuery2 : "") : i("konqueror") ? "konqueror" : i("chrome") ? n + " chrome" : i("iron") ? n + " iron" : i("applewebkit/") ? n + " " + r + (/version\/(\d+)/.test(o) ? " " + r + RegExp.jQuery1 : "") : i("mozilla/") ? a : "", i("j2me") ? "mobile" : i("iphone") ? "iphone" : i("ipod") ? "ipod" : i("mac") ? "mac" : i("darwin") ? "mac" : i("webtv") ? "webtv" : i("win") ? "win" : i("freebsd") ? "freebsd" : i("x11") || i("linux") ? "linux" : "", "js"]; c = p.join(" "), t.browser.mobile && (c += " mobile"), l.className += " " + c, !window.ActiveXObject && "ActiveXObject" in window ? t("html").removeClass("gecko").addClass("ie ie11") : (t("body").hasClass("dark") && t("html").addClass("dark"), t("body").hasClass("boxed") && t("html").addClass("boxed")) } }), t.browserSelector() }(jQuery), function (t) { "function" == typeof define && define.amd ? define(["jquery"], t) : "object" == typeof exports ? module.exports = t(require("jquery")) : t(jQuery) }(function (t) { t.waitForImages = { hasImageProperties: ["backgroundImage", "listStyleImage", "borderImage", "borderCornerImage", "cursor"], hasImageAttributes: ["srcset"] }, t.expr[":"].uncached = function (e) { return !!t(e).is('img[src][src!=""]') && !e.complete }, t.fn.waitForImages = function () { var e, o, i, a = 0, n = 0, r = t.Deferred(); if (t.isPlainObject(arguments[0]) ? (i = arguments[0].waitForAll, o = arguments[0].each, e = arguments[0].finished) : 1 === arguments.length && "boolean" === t.type(arguments[0]) ? i = arguments[0] : (e = arguments[0], o = arguments[1], i = arguments[2]), e = e || t.noop, o = o || t.noop, i = !!i, !t.isFunction(e) || !t.isFunction(o)) throw new TypeError("An invalid callback was supplied."); return this.each(function () { var s = t(this), c = [], l = t.waitForImages.hasImageProperties || [], p = t.waitForImages.hasImageAttributes || [], d = /url\(\s*(['"]?)(.*?)\1\s*\)/g; i ? s.find("*").addBack().each(function () { var e = t(this); e.is("img:uncached") && c.push({ src: e.attr("src"), element: e[0] }), t.each(l, function (t, o) { var i, a = e.css(o); if (!a) return !0; for (; i = d.exec(a) ;) c.push({ src: i[2], element: e[0] }) }), t.each(p, function (o, i) { var a, n = e.attr(i); if (!n) return !0; a = n.split(","), t.each(a, function (o, i) { i = t.trim(i).split(" ")[0], c.push({ src: i, element: e[0] }) }) }) }) : s.find("img:uncached").each(function () { c.push({ src: this.src, element: this }) }), a = c.length, n = 0, 0 === a && (e.call(s[0]), r.resolveWith(s[0])), t.each(c, function (i, c) { var l = new Image, p = "load.waitForImages error.waitForImages"; t(l).one(p, function i(l) { var d = [n, a, "load" == l.type];
3156 if (n++, o.apply(c.element, d), r.notifyWith(c.element, d), t(this).off(p, i), n == a) return e.call(s[0]), r.resolveWith(s[0]), !1 }), l.src = c.src }) }), r.promise() } }), function (t) { t.fn.countTo = function (e) { return e = e || {}, t(this).each(function () { var o = t.extend({}, t.fn.countTo.defaults, { from: t(this).data("from"), to: t(this).data("to"), speed: t(this).data("speed"), refreshInterval: t(this).data("refresh-interval"), decimals: t(this).data("decimals") }, e), i = Math.ceil(o.speed / o.refreshInterval), a = (o.to - o.from) / i, n = this, r = t(this), s = 0, c = o.from, l = r.data("countTo") || {}; function p(t) { var e = o.formatter.call(n, t, o); r.html(e) } r.data("countTo", l), l.interval && clearInterval(l.interval), l.interval = setInterval(function () { s++, p(c += a), "function" == typeof o.onUpdate && o.onUpdate.call(n, c); s >= i && (r.removeData("countTo"), clearInterval(l.interval), c = o.to, "function" == typeof o.onComplete && o.onComplete.call(n, c)) }, o.refreshInterval), p(c) }) }, t.fn.countTo.defaults = { from: 0, to: 0, speed: 1e3, refreshInterval: 100, decimals: 0, formatter: function (t, e) { return t.toFixed(e.decimals) }, onUpdate: null, onComplete: null } }(jQuery), function (t) { "use strict"; var e, o = { action: function () { }, runOnLoad: !1, duration: 500 }, i = !1, a = { init: function () { for (var e = 0; e <= arguments.length; e++) { var i = arguments[e]; switch (typeof i) { case "function": o.action = i; break; case "boolean": o.runOnLoad = i; break; case "number": o.duration = i } } return this.each(function () { o.runOnLoad && o.action(), t(this).resize(function () { a.timedAction.call(this) }) }) }, timedAction: function (t, a) { var n = function () { var t = o.duration; if (i) { var a = new Date - e; if ((t = o.duration - a) <= 0) return clearTimeout(i), i = !1, void o.action() } r(t) }, r = function (t) { i = setTimeout(n, t) }; e = new Date, "number" == typeof a && (o.duration = a), "function" == typeof t && (o.action = t), i || n() } }; t.fn.afterResize = function (t) { return a[t] ? a[t].apply(this, Array.prototype.slice.call(arguments, 1)) : a.init.apply(this, arguments) } }(jQuery), function (t) { var e = -1, o = -1, i = function (t) { return parseFloat(t) || 0 }, a = function (e) { var o = { byRow: !0, remove: !1, property: "height" }; return "object" == typeof e ? t.extend(o, e) : ("boolean" == typeof e ? o.byRow = e : "remove" === e && (o.remove = !0), o) }, n = t.fn.matchHeight = function (e) { var o = a(e); if (o.remove) { var i = this; return this.css(o.property, ""), t.each(n._groups, function (t, e) { e.elements = e.elements.not(i) }), this } return this.length <= 1 ? this : (n._groups.push({ elements: this, options: o }), n._apply(this, o), this) }; n._groups = [], n._throttle = 80, n._maintainScroll = !1, n._beforeUpdate = null, n._afterUpdate = null, n._apply = function (e, o) { var r = a(o), s = t(e), c = [s], l = t(window).scrollTop(), p = t("html").outerHeight(!0), d = s.parents().filter(":hidden"); return d.each(function () { var e = t(this); e.data("style-cache", e.attr("style")) }), d.css("display", "block"), r.byRow && (s.each(function () { var e = t(this), o = "inline-block" === e.css("display") ? "inline-block" : "block"; e.data("style-cache", e.attr("style")), e.css({ display: o, "padding-top": "0", "padding-bottom": "0", "margin-top": "0", "margin-bottom": "0", "border-top-width": "0", "border-bottom-width": "0", height: "100px" }) }), c = function (e) { var o = t(e), a = null, n = []; return o.each(function () { var e = t(this), o = e.offset().top - i(e.css("margin-top")), r = n.length > 0 ? n[n.length - 1] : null; null === r ? n.push(e) : Math.floor(Math.abs(a - o)) <= 1 ? n[n.length - 1] = r.add(e) : n.push(e), a = o }), n }(s), s.each(function () { var e = t(this); e.attr("style", e.data("style-cache") || "") })), t.each(c, function (e, o) { var a = t(o), n = 0; r.byRow && a.length <= 1 ? a.css(r.property, "") : (a.each(function () { var e = t(this), o = { display: "inline-block" === e.css("display") ? "inline-block" : "block" }; o[r.property] = "", e.css(o), e.outerHeight(!1) > n && (n = e.outerHeight(!1)), e.css("display", "") }), a.each(function () { var e = t(this), o = 0; "border-box" !== e.css("box-sizing") && (o += i(e.css("border-top-width")) + i(e.css("border-bottom-width")), o += i(e.css("padding-top")) + i(e.css("padding-bottom"))), e.css(r.property, n - o) })) }), d.each(function () { var e = t(this); e.attr("style", e.data("style-cache") || null) }), n._maintainScroll && t(window).scrollTop(l / p * t("html").outerHeight(!0)), this }, n._applyDataApi = function () { var e = {}; t("[data-match-height], [data-mh]").each(function () { var o = t(this), i = o.attr("data-match-height") || o.attr("data-mh"); e[i] = i in e ? e[i].add(o) : o }), t.each(e, function () { this.matchHeight(!0) }) }; var r = function (e) { n._beforeUpdate && n._beforeUpdate(e, n._groups), t.each(n._groups, function () { n._apply(this.elements, this.options) }), n._afterUpdate && n._afterUpdate(e, n._groups) }; n._update = function (i, a) { if (a && "resize" === a.type) { var s = t(window).width(); if (s === e) return; e = s } i ? -1 === o && (o = setTimeout(function () { r(a), o = -1 }, n._throttle)) : r(a) }, t(n._applyDataApi), t(window).bind("load", function (t) { n._update(!1, t) }), t(window).bind("resize orientationchange", function (t) { n._update(!0, t) }) }(jQuery), function (t) { "use strict"; t.fn.pin = function (e) { var o = 0, i = [], a = !1, n = t(window); e = e || {}; var r = function () { for (var o = 0, r = i.length; o < r; o++) { var s = i[o]; if (e.minWidth && n.width() <= e.minWidth) s.parent().is(".pin-wrapper") && s.unwrap(), s.css({ width: "", left: "", top: "", position: "" }), e.activeClass && s.removeClass(e.activeClass), a = !0; else { a = !1; var c = e.containerSelector ? s.closest(e.containerSelector) : t(document.body), l = s.offset(), p = c.offset(), d = s.parent().offset(); s.parent().is(".pin-wrapper") || s.wrap("<div class='pin-wrapper'>"); var u = t.extend({ top: 0, bottom: 0 }, e.padding || {}); s.data("pin", { pad: u, from: (e.containerSelector ? p.top : l.top) - u.top, to: p.top + c.height() - s.outerHeight() - u.bottom, end: p.top + c.height(), parentTop: d.top }), s.css({ width: s.outerWidth() }), s.parent().css("height", s.outerHeight()) } } }, s = function () { if (!a) { o = n.scrollTop(); for (var r = [], s = 0, c = i.length; s < c; s++) { var l = t(i[s]), p = l.data("pin"); if (p) { r.push(l); var d = p.from - p.pad.bottom, u = p.to - p.pad.top; d + l.outerHeight() > p.end ? l.css("position", "") : d < o && u > o ? ("fixed" != l.css("position") && l.css({ left: l.offset().left, top: p.pad.top }).css("position", "fixed"), e.activeClass && l.addClass(e.activeClass)) : o >= u ? (l.css({ left: "", top: u - p.parentTop + p.pad.top }).css("position", "absolute"), e.activeClass && l.addClass(e.activeClass)) : (l.css({ position: "", top: "", left: "" }), e.activeClass && l.removeClass(e.activeClass)) } }
3156 i = r } }, c = function () { r(), s() }; return this.each(function () { var e = t(this), o = t(this).data("pin") || {}; o && o.update || (i.push(e), t("img", this).one("load", r), o.update = c, t(this).data("pin", o)) }), n.scroll(s), n.resize(function () { r() }), r(), n.load(c), t(window).on("stickyMenu.active stickyMenu.deactive", function () { c() }), this } }(jQuery);(function (root, factory) { if (typeof exports === 'object') { module.exports = factory(require('jquery')) } else if (typeof define === 'function' && define.amd) { define(['jquery'], factory) } else { factory(root.jQuery) } }(this, function ($) { var CanvasRenderer = function (el, options) { var cachedBackground; var canvas = document.createElement('canvas'); el.appendChild(canvas); if (typeof (G_vmlCanvasManager) !== 'undefined') { G_vmlCanvasManager.initElement(canvas) } var ctx = canvas.getContext('2d'); canvas.width = canvas.height = options.size; var scaleBy = 1; if (window.devicePixelRatio > 1) { scaleBy = window.devicePixelRatio; canvas.style.width = canvas.style.height = [options.size, 'px'].join(''); canvas.width = canvas.height = options.size * scaleBy; ctx.scale(scaleBy, scaleBy) } ctx.translate(options.size / 2, options.size / 2); ctx.rotate((-1 / 2 + options.rotate / 180) * Math.PI); var radius = (options.size - options.lineWidth) / 2; if (options.scaleColor && options.scaleLength) { radius -= options.scaleLength + 2 } Date.now = Date.now || function () { return +(new Date()) }; var drawCircle = function (color, lineWidth, percent) { percent = Math.min(Math.max(-1, percent || 0), 1); var isNegative = percent <= 0 ? true : false; ctx.beginPath(); ctx.arc(0, 0, radius, 0, Math.PI * 2 * percent, isNegative); ctx.strokeStyle = color; ctx.lineWidth = lineWidth; ctx.stroke() }; var drawScale = function () { var offset; var length; ctx.lineWidth = 1; ctx.fillStyle = options.scaleColor; ctx.save(); for (var i = 24; i > 0; --i) { if (i % 6 === 0) { length = options.scaleLength; offset = 0 } else { length = options.scaleLength * 0.6; offset = options.scaleLength - length } ctx.fillRect(-options.size / 2 + offset, 0, length, 1); ctx.rotate(Math.PI / 12) } ctx.restore() }; var reqAnimationFrame = (function () { return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || function (callback) { window.setTimeout(callback, 1000 / 60) } }()); var drawBackground = function () { if (options.scaleColor) drawScale(); if (options.trackColor) drawCircle(options.trackColor, options.trackWidth || options.lineWidth, 1) }; this.getCanvas = function () { return canvas }; this.getCtx = function () { return ctx }; this.clear = function () { ctx.clearRect(options.size / -2, options.size / -2, options.size, options.size) }; this.draw = function (percent) { if (!!options.scaleColor || !!options.trackColor) { if (ctx.getImageData && ctx.putImageData) { if (!cachedBackground) { drawBackground(); cachedBackground = ctx.getImageData(0, 0, options.size * scaleBy, options.size * scaleBy) } else { ctx.putImageData(cachedBackground, 0, 0) } } else { this.clear(); drawBackground() } } else { this.clear() } ctx.lineCap = options.lineCap; var color; if (typeof (options.barColor) === 'function') { color = options.barColor(percent) } else { color = options.barColor } drawCircle(color, options.lineWidth, percent / 100) }.bind(this); this.animate = function (from, to) { var startTime = Date.now(); options.onStart(from, to); var animation = function () { var process = Math.min(Date.now() - startTime, options.animate.duration); var currentValue = options.easing(this, process, from, to - from, options.animate.duration); this.draw(currentValue); options.onStep(from, to, currentValue); if (process >= options.animate.duration) { options.onStop(from, to) } else { reqAnimationFrame(animation) } }.bind(this); reqAnimationFrame(animation) }.bind(this) }; var EasyPieChart = function (el, opts) { var defaultOptions = { barColor: '#ef1e25', trackColor: '#f9f9f9', scaleColor: '#dfe0e0', scaleLength: 5, lineCap: 'round', lineWidth: 3, trackWidth: undefined, size: 110, rotate: 0, animate: { duration: 1000, enabled: true }, easing: function (x, t, b, c, d) { t = t / (d / 2); if (t < 1) { return c / 2 * t * t + b } return -c / 2 * ((--t) * (t - 2) - 1) + b }, onStart: function (from, to) { return }, onStep: function (from, to, currentValue) { return }, onStop: function (from, to) { return } }; if (typeof (CanvasRenderer) !== 'undefined') { defaultOptions.renderer = CanvasRenderer } else if (typeof (SVGRenderer) !== 'undefined') { defaultOptions.renderer = SVGRenderer } else { throw new Error('Please load either the SVG- or the CanvasRenderer') } var options = {}; var currentValue = 0; var init = function () { this.el = el; this.options = options; for (var i in defaultOptions) { if (defaultOptions.hasOwnProperty(i)) { options[i] = opts && typeof (opts[i]) !== 'undefined' ? opts[i] : defaultOptions[i]; if (typeof (options[i]) === 'function') { options[i] = options[i].bind(this) } } } if (typeof (options.easing) === 'string' && typeof (jQuery) !== 'undefined' && jQuery.isFunction(jQuery.easing[options.easing])) { options.easing = jQuery.easing[options.easing] } else { options.easing = defaultOptions.easing } if (typeof (options.animate) === 'number') { options.animate = { duration: options.animate, enabled: true } } if (typeof (options.animate) === 'boolean' && !options.animate) { options.animate = { duration: 1000, enabled: options.animate } } this.renderer = new options.renderer(el, options); this.renderer.draw(currentValue); if (el.dataset && el.dataset.percent) { this.update(parseFloat(el.dataset.percent)) } else if (el.getAttribute && el.getAttribute('data-percent')) { this.update(parseFloat(el.getAttribute('data-percent'))) } }.bind(this); this.update = function (newValue) { newValue = parseFloat(newValue); if (options.animate.enabled) { this.renderer.animate(currentValue, newValue) } else { this.renderer.draw(newValue) } currentValue = newValue; return this }.bind(this); this.disableAnimation = function () { options.animate.enabled = false; return this }; this.enableAnimation = function () { options.animate.enabled = true; return this }; init() }; $.fn.easyPieChart = function (options) { return this.each(function () { var instanceOptions; if (!$.data(this, 'easyPieChart')) { instanceOptions = $.extend({}, options, $(this).data()); $.data(this, 'easyPieChart', new EasyPieChart(this, instanceOptions)) } }) } }));/*! 3157 * Isotope PACKAGED v3.0.6 3158 * 3159 * Licensed GPLv3 for open source use 3160 * or Isotope Commercial License for commercial use 3161 * 3162 * https://isotope.metafizzy.co 3163 * Copyright 2010-2018 Metafizzy 3164 */ 3165 3166!function (t, e) { "function" == typeof define && define.amd ? define("jquery-bridget/jquery-bridget", ["jquery"], function (i) { return e(t, i) }) : "object" == typeof module && module.exports ? module.exports = e(t, require("jquery")) : t.jQueryBridget = e(t, t.jQuery) }(window, function (t, e) { "use strict"; function i(i, s, a) { function u(t, e, o) { var n, s = "$()." + i + '("' + e + '")'; return t.each(function (t, u) { var h = a.data(u, i); if (!h) return void r(i + " not initialized. Cannot call methods, i.e. " + s); var d = h[e]; if (!d || "_" == e.charAt(0)) return void r(s + " is not a valid method"); var l = d.apply(h, o); n = void 0 === n ? l : n }), void 0 !== n ? n : t } function h(t, e) { t.each(function (t, o) { var n = a.data(o, i); n ? (n.option(e), n._init()) : (n = new s(o, e), a.data(o, i, n)) }) } a = a || e || t.jQuery, a && (s.prototype.option || (s.prototype.option = function (t) { a.isPlainObject(t) && (this.options = a.extend(!0, this.options, t)) }), a.fn[i] = function (t) { if ("string" == typeof t) { var e = n.call(arguments, 1); return u(this, t, e) } return h(this, t), this }, o(a)) } function o(t) { !t || t && t.bridget || (t.bridget = i) } var n = Array.prototype.slice, s = t.console, r = "undefined" == typeof s ? function () { } : function (t) { s.error(t) }; return o(e || t.jQuery), i }), function (t, e) { "function" == typeof define && define.amd ? define("ev-emitter/ev-emitter", e) : "object" == typeof module && module.exports ? module.exports = e() : t.EvEmitter = e() }("undefined" != typeof window ? window : this, function () { function t() { } var e = t.prototype; return e.on = function (t, e) { if (t && e) { var i = this._events = this._events || {}, o = i[t] = i[t] || []; return o.indexOf(e) == -1 && o.push(e), this } }, e.once = function (t, e) { if (t && e) { this.on(t, e); var i = this._onceEvents = this._onceEvents || {}, o = i[t] = i[t] || {};
vendor: 38,334 bytes, lines 3166-3171
3166 return o[e] = !0, this } }, e.off = function (t, e) { var i = this._events && this._events[t]; if (i && i.length) { var o = i.indexOf(e); return o != -1 && i.splice(o, 1), this } }, e.emitEvent = function (t, e) { var i = this._events && this._events[t]; if (i && i.length) { i = i.slice(0), e = e || []; for (var o = this._onceEvents && this._onceEvents[t], n = 0; n < i.length; n++) { var s = i[n], r = o && o[s]; r && (this.off(t, s), delete o[s]), s.apply(this, e) } return this } }, e.allOff = function () { delete this._events, delete this._onceEvents }, t }), function (t, e) { "function" == typeof define && define.amd ? define("get-size/get-size", e) : "object" == typeof module && module.exports ? module.exports = e() : t.getSize = e() }(window, function () { "use strict"; function t(t) { var e = parseFloat(t), i = t.indexOf("%") == -1 && !isNaN(e); return i && e } function e() { } function i() { for (var t = { width: 0, height: 0, innerWidth: 0, innerHeight: 0, outerWidth: 0, outerHeight: 0 }, e = 0; e < h; e++) { var i = u[e]; t[i] = 0 } return t } function o(t) { var e = getComputedStyle(t); return e || a("Style returned " + e + ". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"), e } function n() { if (!d) { d = !0; var e = document.createElement("div"); e.style.width = "200px", e.style.padding = "1px 2px 3px 4px", e.style.borderStyle = "solid", e.style.borderWidth = "1px 2px 3px 4px", e.style.boxSizing = "border-box"; var i = document.body || document.documentElement; i.appendChild(e); var n = o(e); r = 200 == Math.round(t(n.width)), s.isBoxSizeOuter = r, i.removeChild(e) } } function s(e) { if (n(), "string" == typeof e && (e = document.querySelector(e)), e && "object" == typeof e && e.nodeType) { var s = o(e); if ("none" == s.display) return i(); var a = {}; a.width = e.offsetWidth, a.height = e.offsetHeight; for (var d = a.isBorderBox = "border-box" == s.boxSizing, l = 0; l < h; l++) { var f = u[l], c = s[f], m = parseFloat(c); a[f] = isNaN(m) ? 0 : m } var p = a.paddingLeft + a.paddingRight, y = a.paddingTop + a.paddingBottom, g = a.marginLeft + a.marginRight, v = a.marginTop + a.marginBottom, _ = a.borderLeftWidth + a.borderRightWidth, z = a.borderTopWidth + a.borderBottomWidth, I = d && r, x = t(s.width); x !== !1 && (a.width = x + (I ? 0 : p + _)); var S = t(s.height); return S !== !1 && (a.height = S + (I ? 0 : y + z)), a.innerWidth = a.width - (p + _), a.innerHeight = a.height - (y + z), a.outerWidth = a.width + g, a.outerHeight = a.height + v, a } } var r, a = "undefined" == typeof console ? e : function (t) { console.error(t) }, u = ["paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "marginLeft", "marginRight", "marginTop", "marginBottom", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "borderBottomWidth"], h = u.length, d = !1; return s }), function (t, e) { "use strict"; "function" == typeof define && define.amd ? define("desandro-matches-selector/matches-selector", e) : "object" == typeof module && module.exports ? module.exports = e() : t.matchesSelector = e() }(window, function () { "use strict"; var t = function () { var t = window.Element.prototype; if (t.matches) return "matches"; if (t.matchesSelector) return "matchesSelector"; for (var e = ["webkit", "moz", "ms", "o"], i = 0; i < e.length; i++) { var o = e[i], n = o + "MatchesSelector"; if (t[n]) return n } }(); return function (e, i) { return e[t](i) } }), function (t, e) { "function" == typeof define && define.amd ? define("fizzy-ui-utils/utils", ["desandro-matches-selector/matches-selector"], function (i) { return e(t, i) }) : "object" == typeof module && module.exports ? module.exports = e(t, require("desandro-matches-selector")) : t.fizzyUIUtils = e(t, t.matchesSelector) }(window, function (t, e) { var i = {}; i.extend = function (t, e) { for (var i in e) t[i] = e[i]; return t }, i.modulo = function (t, e) { return (t % e + e) % e }; var o = Array.prototype.slice; i.makeArray = function (t) { if (Array.isArray(t)) return t; if (null === t || void 0 === t) return []; var e = "object" == typeof t && "number" == typeof t.length; return e ? o.call(t) : [t] }, i.removeFrom = function (t, e) { var i = t.indexOf(e); i != -1 && t.splice(i, 1) }, i.getParent = function (t, i) { for (; t.parentNode && t != document.body;)if (t = t.parentNode, e(t, i)) return t }, i.getQueryElement = function (t) { return "string" == typeof t ? document.querySelector(t) : t }, i.handleEvent = function (t) { var e = "on" + t.type; this[e] && this[e](t) }, i.filterFindElements = function (t, o) { t = i.makeArray(t); var n = []; return t.forEach(function (t) { if (t instanceof HTMLElement) { if (!o) return void n.push(t); e(t, o) && n.push(t); for (var i = t.querySelectorAll(o), s = 0; s < i.length; s++)n.push(i[s]) } }), n }, i.debounceMethod = function (t, e, i) { i = i || 100; var o = t.prototype[e], n = e + "Timeout"; t.prototype[e] = function () { var t = this[n]; clearTimeout(t); var e = arguments, s = this; this[n] = setTimeout(function () { o.apply(s, e), delete s[n] }, i) } }, i.docReady = function (t) { var e = document.readyState; "complete" == e || "interactive" == e ? setTimeout(t) : document.addEventListener("DOMContentLoaded", t) }, i.toDashed = function (t) { return t.replace(/(.)([A-Z])/g, function (t, e, i) { return e + "-" + i }).toLowerCase() }; var n = t.console; return i.htmlInit = function (e, o) { i.docReady(function () { var s = i.toDashed(o), r = "data-" + s, a = document.querySelectorAll("[" + r + "]"), u = document.querySelectorAll(".js-" + s), h = i.makeArray(a).concat(i.makeArray(u)), d = r + "-options", l = t.jQuery; h.forEach(function (t) { var i, s = t.getAttribute(r) || t.getAttribute(d); try { i = s && JSON.parse(s) } catch (a) { return void (n && n.error("Error parsing " + r + " on " + t.className + ": " + a)) } var u = new e(t, i); l && l.data(t, o, u) }) }) }, i }), function (t, e) { "function" == typeof define && define.amd ? define("outlayer/item", ["ev-emitter/ev-emitter", "get-size/get-size"], e) : "object" == typeof module && module.exports ? module.exports = e(require("ev-emitter"), require("get-size")) : (t.Outlayer = {}, t.Outlayer.Item = e(t.EvEmitter, t.getSize)) }(window, function (t, e) { "use strict"; function i(t) { for (var e in t) return !1; return e = null, !0 } function o(t, e) { t && (this.element = t, this.layout = e, this.position = { x: 0, y: 0 }, this._create()) } function n(t) { return t.replace(/([A-Z])/g, function (t) { return "-" + t.toLowerCase() }) } var s = document.documentElement.style, r = "string" == typeof s.transition ? "transition" : "WebkitTransition", a = "string" == typeof s.transform ? "transform" : "WebkitTransform", u = { WebkitTransition: "webkitTransitionEnd", transition: "transitionend" }[r], h = { transform: a, transition: r, transitionDuration: r + "Duration", transitionProperty: r + "Property", transitionDelay: r + "Delay" }, d = o.prototype = Object.create(t.prototype); d.constructor = o, d._create = function () { this._transn = { ingProperties: {}, clean: {}, onEnd: {} }, this.css({ position: "absolute" }) }, d.handleEvent = function (t) { var e = "on" + t.type; this[e] && this[e](t) }, d.getSize = function () { this.size = e(this.element) }, d.css = function (t) { var e = this.element.style; for (var i in t) { var o = h[i] || i; e[o] = t[i] } }, d.getPosition = function () { var t = getComputedStyle(this.element), e = this.layout._getOption("originLeft"), i = this.layout._getOption("originTop"), o = t[e ? "left" : "right"], n = t[i ? "top" : "bottom"], s = parseFloat(o), r = parseFloat(n), a = this.layout.size; o.indexOf("%") != -1 && (s = s / 100 * a.width), n.indexOf("%") != -1 && (r = r / 100 * a.height), s = isNaN(s) ? 0 : s, r = isNaN(r) ? 0 : r, s -= e ? a.paddingLeft : a.paddingRight, r -= i ? a.paddingTop : a.paddingBottom, this.position.x = s, this.position.y = r }, d.layoutPosition = function () { var t = this.layout.size, e = {}, i = this.layout._getOption("originLeft"), o = this.layout._getOption("originTop"), n = i ? "paddingLeft" : "paddingRight", s = i ? "left" : "right", r = i ? "right" : "left", a = this.position.x + t[n]; e[s] = this.getXValue(a), e[r] = ""; var u = o ? "paddingTop" : "paddingBottom", h = o ? "top" : "bottom", d = o ? "bottom" : "top", l = this.position.y + t[u]; e[h] = this.getYValue(l), e[d] = "", this.css(e), this.emitEvent("layout", [this]) }, d.getXValue = function (t) { var e = this.layout._getOption("horizontal"); return this.layout.options.percentPosition && !e ? t / this.layout.size.width * 100 + "%" : t + "px" }, d.getYValue = function (t) { var e = this.layout._getOption("horizontal"); return this.layout.options.percentPosition && e ? t / this.layout.size.height * 100 + "%" : t + "px" }, d._transitionTo = function (t, e) { this.getPosition(); var i = this.position.x, o = this.position.y, n = t == this.position.x && e == this.position.y; if (this.setPosition(t, e), n && !this.isTransitioning) return void this.layoutPosition(); var s = t - i, r = e - o, a = {}; a.transform = this.getTranslate(s, r), this.transition({ to: a, onTransitionEnd: { transform: this.layoutPosition }, isCleaning: !0 }) }, d.getTranslate = function (t, e) { var i = this.layout._getOption("originLeft"), o = this.layout._getOption("originTop"); return t = i ? t : -t, e = o ? e : -e, "translate3d(" + t + "px, " + e + "px, 0)" }, d.goTo = function (t, e) { this.setPosition(t, e), this.layoutPosition() }, d.moveTo = d._transitionTo, d.setPosition = function (t, e) { this.position.x = parseFloat(t), this.position.y = parseFloat(e) }, d._nonTransition = function (t) { this.css(t.to), t.isCleaning && this._removeStyles(t.to); for (var e in t.onTransitionEnd) t.onTransitionEnd[e].call(this) }, d.transition = function (t) { if (!parseFloat(this.layout.options.transitionDuration)) return void this._nonTransition(t); var e = this._transn; for (var i in t.onTransitionEnd) e.onEnd[i] = t.onTransitionEnd[i]; for (i in t.to) e.ingProperties[i] = !0, t.isCleaning && (e.clean[i] = !0); if (t.from) { this.css(t.from); var o = this.element.offsetHeight; o = null } this.enableTransition(t.to), this.css(t.to), this.isTransitioning = !0 }; var l = "opacity," + n(a); d.enableTransition = function () { if (!this.isTransitioning) { var t = this.layout.options.transitionDuration; t = "number" == typeof t ? t + "ms" : t, this.css({ transitionProperty: l, transitionDuration: t, transitionDelay: this.staggerDelay || 0 }), this.element.addEventListener(u, this, !1) } }, d.onwebkitTransitionEnd = function (t) { this.ontransitionend(t) }, d.onotransitionend = function (t) { this.ontransitionend(t) }; var f = { "-webkit-transform": "transform" }; d.ontransitionend = function (t) { if (t.target === this.element) { var e = this._transn, o = f[t.propertyName] || t.propertyName; if (delete e.ingProperties[o], i(e.ingProperties) && this.disableTransition(), o in e.clean && (this.element.style[t.propertyName] = "", delete e.clean[o]), o in e.onEnd) { var n = e.onEnd[o]; n.call(this), delete e.onEnd[o] } this.emitEvent("transitionEnd", [this]) } }, d.disableTransition = function () { this.removeTransitionStyles(), this.element.removeEventListener(u, this, !1), this.isTransitioning = !1 }, d._removeStyles = function (t) { var e = {}; for (var i in t) e[i] = ""; this.css(e) }; var c = { transitionProperty: "", transitionDuration: "", transitionDelay: "" }; return d.removeTransitionStyles = function () { this.css(c) }, d.stagger = function (t) { t = isNaN(t) ? 0 : t, this.staggerDelay = t + "ms" }, d.removeElem = function () { this.element.parentNode.removeChild(this.element), this.css({ display: "" }), this.emitEvent("remove", [this]) }, d.remove = function () { return r && parseFloat(this.layout.options.transitionDuration) ? (this.once("transitionEnd", function () { this.removeElem() }), void this.hide()) : void this.removeElem() }, d.reveal = function () { delete this.isHidden, this.css({ display: "" }); var t = this.layout.options, e = {}, i = this.getHideRevealTransitionEndProperty("visibleStyle"); e[i] = this.onRevealTransitionEnd, this.transition({ from: t.hiddenStyle, to: t.visibleStyle, isCleaning: !0, onTransitionEnd: e }) }, d.onRevealTransitionEnd = function () { this.isHidden || this.emitEvent("reveal") }, d.getHideRevealTransitionEndProperty = function (t) { var e = this.layout.options[t]; if (e.opacity) return "opacity"; for (var i in e) return i }, d.hide = function () { this.isHidden = !0, this.css({ display: "" }); var t = this.layout.options, e = {}, i = this.getHideRevealTransitionEndProperty("hiddenStyle"); e[i] = this.onHideTransitionEnd, this.transition({ from: t.visibleStyle, to: t.hiddenStyle, isCleaning: !0, onTransitionEnd: e }) }, d.onHideTransitionEnd = function () { this.isHidden && (this.css({ display: "none" }), this.emitEvent("hide")) }, d.destroy = function () { this.css({ position: "", left: "", right: "", top: "", bottom: "", transition: "", transform: "" }) }, o }), function (t, e) { "use strict"; "function" == typeof define && define.amd ? define("outlayer/outlayer", ["ev-emitter/ev-emitter", "get-size/get-size", "fizzy-ui-utils/utils", "./item"], function (i, o, n, s) { return e(t, i, o, n, s) }) : "object" == typeof module && module.exports ? module.exports = e(t, require("ev-emitter"), require("get-size"), require("fizzy-ui-utils"), require("./item")) : t.Outlayer = e(t, t.EvEmitter, t.getSize, t.fizzyUIUtils, t.Outlayer.Item) }(window, function (t, e, i, o, n) { "use strict"; function s(t, e) { var i = o.getQueryElement(t); if (!i) return void (u && u.error("Bad element for " + this.constructor.namespace + ": " + (i || t))); this.element = i, h && (this.$element = h(this.element)), this.options = o.extend({}, this.constructor.defaults), this.option(e); var n = ++l; this.element.outlayerGUID = n, f[n] = this, this._create(); var s = this._getOption("initLayout"); s && this.layout() } function r(t) { function e() { t.apply(this, arguments) } return e.prototype = Object.create(t.prototype), e.prototype.constructor = e, e } function a(t) { if ("number" == typeof t) return t; var e = t.match(/(^\d*\.?\d*)(\w*)/), i = e && e[1], o = e && e[2]; if (!i.length) return 0; i = parseFloat(i); var n = m[o] || 1; return i * n } var u = t.console, h = t.jQuery, d = function () { }, l = 0, f = {}; s.namespace = "outlayer", s.Item = n, s.defaults = { containerStyle: { position: "relative" }, initLayout: !0, originLeft: !0, originTop: !0, resize: !0, resizeContainer: !0, transitionDuration: "0.4s", hiddenStyle: { opacity: 0, transform: "scale(0.001)" }, visibleStyle: { opacity: 1, transform: "scale(1)" } }; var c = s.prototype; o.extend(c, e.prototype), c.option = function (t) { o.extend(this.options, t) }, c._getOption = function (t) { var e = this.constructor.compatOptions[t]; return e && void 0 !== this.options[e] ? this.options[e] : this.options[t] }, s.compatOptions = { initLayout: "isInitLayout", horizontal: "isHorizontal", layoutInstant: "isLayoutInstant", originLeft: "isOriginLeft", originTop: "isOriginTop", resize: "isResizeBound", resizeContainer: "isResizingContainer" }, c._create = function () { this.reloadItems(), this.stamps = [], this.stamp(this.options.stamp), o.extend(this.element.style, this.options.containerStyle); var t = this._getOption("resize"); t && this.bindResize() }, c.reloadItems = function () { this.items = this._itemize(this.element.children) }, c._itemize = function (t) { for (var e = this._filterFindItemElements(t), i = this.constructor.Item, o = [], n = 0; n < e.length; n++) { var s = e[n], r = new i(s, this); o.push(r) } return o }, c._filterFindItemElements = function (t) { return o.filterFindElements(t, this.options.itemSelector) }, c.getItemElements = function () { return this.items.map(function (t) { return t.element }) }, c.layout = function () { this._resetLayout(), this._manageStamps(); var t = this._getOption("layoutInstant"), e = void 0 !== t ? t : !this._isLayoutInited; this.layoutItems(this.items, e), this._isLayoutInited = !0 }, c._init = c.layout, c._resetLayout = function () { this.getSize() }, c.getSize = function () { this.size = i(this.element) }, c._getMeasurement = function (t, e) { var o, n = this.options[t]; n ? ("string" == typeof n ? o = this.element.querySelector(n) : n instanceof HTMLElement && (o = n), this[t] = o ? i(o)[e] : n) : this[t] = 0 }, c.layoutItems = function (t, e) { t = this._getItemsForLayout(t), this._layoutItems(t, e), this._postLayout() }, c._getItemsForLayout = function (t) { return t.filter(function (t) { return !t.isIgnored }) }, c._layoutItems = function (t, e) { if (this._emitCompleteOnItems("layout", t), t && t.length) { var i = []; t.forEach(function (t) { var o = this._getItemLayoutPosition(t); o.item = t, o.isInstant = e || t.isLayoutInstant, i.push(o) }, this), this._processLayoutQueue(i) } }, c._getItemLayoutPosition = function () { return { x: 0, y: 0 } }, c._processLayoutQueue = function (t) { this.updateStagger(), t.forEach(function (t, e) { this._positionItem(t.item, t.x, t.y, t.isInstant, e) }, this) }, c.updateStagger = function () { var t = this.options.stagger; return null === t || void 0 === t ? void (this.stagger = 0) : (this.stagger = a(t), this.stagger) }, c._positionItem = function (t, e, i, o, n) { o ? t.goTo(e, i) : (t.stagger(n * this.stagger), t.moveTo(e, i)) }, c._postLayout = function () { this.resizeContainer() }, c.resizeContainer = function () { var t = this._getOption("resizeContainer"); if (t) { var e = this._getContainerSize(); e && (this._setContainerMeasure(e.width, !0), this._setContainerMeasure(e.height, !1)) } }, c._getContainerSize = d, c._setContainerMeasure = function (t, e) { if (void 0 !== t) { var i = this.size; i.isBorderBox && (t += e ? i.paddingLeft + i.paddingRight + i.borderLeftWidth + i.borderRightWidth : i.paddingBottom + i.paddingTop + i.borderTopWidth + i.borderBottomWidth), t = Math.max(t, 0), this.element.style[e ? "width" : "height"] = t + "px" } }, c._emitCompleteOnItems = function (t, e) { function i() { n.dispatchEvent(t + "Complete", null, [e]) } function o() { r++, r == s && i() } var n = this, s = e.length; if (!e || !s) return void i(); var r = 0; e.forEach(function (e) { e.once(t, o) }) }, c.dispatchEvent = function (t, e, i) { var o = e ? [e].concat(i) : i; if (this.emitEvent(t, o), h) if (this.$element = this.$element || h(this.element), e) { var n = h.Event(e); n.type = t, this.$element.trigger(n, i) } else this.$element.trigger(t, i) }, c.ignore = function (t) { var e = this.getItem(t); e && (e.isIgnored = !0) }, c.unignore = function (t) { var e = this.getItem(t); e && delete e.isIgnored }, c.stamp = function (t) { t = this._find(t), t && (this.stamps = this.stamps.concat(t), t.forEach(this.ignore, this)) }, c.unstamp = function (t) { t = this._find(t), t && t.forEach(function (t) { o.removeFrom(this.stamps, t), this.unignore(t) }, this) }, c._find = function (t) { if (t) return "string" == typeof t && (t = this.element.querySelectorAll(t)), t = o.makeArray(t) }, c._manageStamps = function () { this.stamps && this.stamps.length && (this._getBoundingRect(), this.stamps.forEach(this._manageStamp, this)) }, c._getBoundingRect = function () { var t = this.element.getBoundingClientRect(), e = this.size; this._boundingRect = { left: t.left + e.paddingLeft + e.borderLeftWidth, top: t.top + e.paddingTop + e.borderTopWidth, right: t.right - (e.paddingRight + e.borderRightWidth), bottom: t.bottom - (e.paddingBottom + e.borderBottomWidth) } }, c._manageStamp = d, c._getElementOffset = function (t) { var e = t.getBoundingClientRect(), o = this._boundingRect, n = i(t), s = { left: e.left - o.left - n.marginLeft, top: e.top - o.top - n.marginTop, right: o.right - e.right - n.marginRight, bottom: o.bottom - e.bottom - n.marginBottom }; return s }, c.handleEvent = o.handleEvent, c.bindResize = function () { t.addEventListener("resize", this), this.isResizeBound = !0 }, c.unbindResize = function () { t.removeEventListener("resize", this), this.isResizeBound = !1 }, c.onresize = function () { this.resize() }, o.debounceMethod(s, "onresize", 100), c.resize = function () { this.isResizeBound && this.needsResizeLayout() && this.layout() }, c.needsResizeLayout = function () { var t = i(this.element), e = this.size && t; return e && t.innerWidth !== this.size.innerWidth }, c.addItems = function (t) { var e = this._itemize(t); return e.length && (this.items = this.items.concat(e)), e }, c.appended = function (t) { var e = this.addItems(t); e.length && (this.layoutItems(e, !0), this.reveal(e)) }, c.prepended = function (t) { var e = this._itemize(t); if (e.length) { var i = this.items.slice(0); this.items = e.concat(i), this._resetLayout(), this._manageStamps(), this.layoutItems(e, !0), this.reveal(e), this.layoutItems(i) } }, c.reveal = function (t) { if (this._emitCompleteOnItems("reveal", t), t && t.length) { var e = this.updateStagger(); t.forEach(function (t, i) { t.stagger(i * e), t.reveal() }) } }, c.hide = function (t) { if (this._emitCompleteOnItems("hide", t), t && t.length) { var e = this.updateStagger(); t.forEach(function (t, i) { t.stagger(i * e), t.hide() }) } }, c.revealItemElements = function (t) { var e = this.getItems(t); this.reveal(e) }, c.hideItemElements = function (t) { var e = this.getItems(t); this.hide(e) }, c.getItem = function (t) { for (var e = 0; e < this.items.length; e++) { var i = this.items[e]; if (i.element == t) return i } }, c.getItems = function (t) { t = o.makeArray(t); var e = []; return t.forEach(function (t) { var i = this.getItem(t); i && e.push(i) }, this), e }, c.remove = function (t) { var e = this.getItems(t); this._emitCompleteOnItems("remove", e), e && e.length && e.forEach(function (t) { t.remove(), o.removeFrom(this.items, t) }, this) }, c.destroy = function () { var t = this.element.style; t.height = "", t.position = "", t.width = "", this.items.forEach(function (t) { t.destroy() }), this.unbindResize(); var e = this.element.outlayerGUID; delete f[e], delete this.element.outlayerGUID, h && h.removeData(this.element, this.constructor.namespace) }, s.data = function (t) { t = o.getQueryElement(t); var e = t && t.outlayerGUID; return e && f[e] }, s.create = function (t, e) { var i = r(s); return i.defaults = o.extend({}, s.defaults), o.extend(i.defaults, e), i.compatOptions = o.extend({}, s.compatOptions), i.namespace = t, i.data = s.data, i.Item = r(n), o.htmlInit(i, t), h && h.bridget && h.bridget(t, i), i }; var m = { ms: 1, s: 1e3 }; return s.Item = n, s }), function (t, e) { "function" == typeof define && define.amd ? define("isotope-layout/js/item", ["outlayer/outlayer"], e) : "object" == typeof module && module.exports ? module.exports = e(require("outlayer")) : (t.Isotope = t.Isotope || {}, t.Isotope.Item = e(t.Outlayer)) }(window, function (t) { "use strict"; function e() { t.Item.apply(this, arguments) } var i = e.prototype = Object.create(t.Item.prototype), o = i._create; i._create = function () { this.id = this.layout.itemGUID++, o.call(this), this.sortData = {} }, i.updateSortData = function () { if (!this.isIgnored) { this.sortData.id = this.id, this.sortData["original-order"] = this.id, this.sortData.random = Math.random(); var t = this.layout.options.getSortData, e = this.layout._sorters; for (var i in t) { var o = e[i]; this.sortData[i] = o(this.element, this) } } }; var n = i.destroy; return i.destroy = function () { n.apply(this, arguments), this.css({ display: "" }) }, e }), function (t, e) { "function" == typeof define && define.amd ? define("isotope-layout/js/layout-mode", ["get-size/get-size", "outlayer/outlayer"], e) : "object" == typeof module && module.exports ? module.exports = e(require("get-size"), require("outlayer")) : (t.Isotope = t.Isotope || {}, t.Isotope.LayoutMode = e(t.getSize, t.Outlayer)) }(window, function (t, e) { "use strict"; function i(t) { this.isotope = t, t && (this.options = t.options[this.namespace], this.element = t.element, this.items = t.filteredItems, this.size = t.size) } var o = i.prototype, n = ["_resetLayout", "_getItemLayoutPosition", "_manageStamp", "_getContainerSize", "_getElementOffset", "needsResizeLayout", "_getOption"]; return n.forEach(function (t) { o[t] = function () { return e.prototype[t].apply(this.isotope, arguments) } }), o.needsVerticalResizeLayout = function () { var e = t(this.isotope.element), i = this.isotope.size && e; return i && e.innerHeight != this.isotope.size.innerHeight }, o._getMeasurement = function () { this.isotope._getMeasurement.apply(this, arguments) }, o.getColumnWidth = function () { this.getSegmentSize("column", "Width") }, o.getRowHeight = function () { this.getSegmentSize("row", "Height") }, o.getSegmentSize = function (t, e) { var i = t + e, o = "outer" + e; if (this._getMeasurement(i, o), !this[i]) { var n = this.getFirstItemSize(); this[i] = n && n[o] || this.isotope.size["inner" + e] } }, o.getFirstItemSize = function () { var e = this.isotope.filteredItems[0]; return e && e.element && t(e.element) }, o.layout = function () { this.isotope.layout.apply(this.isotope, arguments) }, o.getSize = function () { this.isotope.getSize(), this.size = this.isotope.size }, i.modes = {}, i.create = function (t, e) { function n() { i.apply(this, arguments) } return n.prototype = Object.create(o), n.prototype.constructor = n, e && (n.options = e), n.prototype.namespace = t, i.modes[t] = n, n }, i }), function (t, e) { "function" == typeof define && define.amd ? define("masonry-layout/masonry", ["outlayer/outlayer", "get-size/get-size"], e) : "object" == typeof module && module.exports ? module.exports = e(require("outlayer"), require("get-size")) : t.Masonry = e(t.Outlayer, t.getSize) }(window, function (t, e) { var i = t.create("masonry"); i.compatOptions.fitWidth = "isFitWidth"; var o = i.prototype; return o._resetLayout = function () { this.getSize(), this._getMeasurement("columnWidth", "outerWidth"), this._getMeasurement("gutter", "outerWidth"), this.measureColumns(), this.colYs = []; for (var t = 0; t < this.cols; t++)this.colYs.push(0); this.maxY = 0, this.horizontalColIndex = 0 }, o.measureColumns = function () { if (this.getContainerWidth(), !this.columnWidth) { var t = this.items[0], i = t && t.element; this.columnWidth = i && e(i).outerWidth || this.containerWidth } var o = this.columnWidth += this.gutter, n = this.containerWidth + this.gutter, s = n / o, r = o - n % o, a = r && r < 1 ? "round" : "floor"; s = Math[a](s), this.cols = Math.max(s, 1) }, o.getContainerWidth = function () { var t = this._getOption("fitWidth"), i = t ? this.element.parentNode : this.element, o = e(i); this.containerWidth = o && o.innerWidth }, o._getItemLayoutPosition = function (t) { t.getSize(); var e = t.size.outerWidth % this.columnWidth, i = e && e < 1 ? "round" : "ceil", o = Math[i](t.size.outerWidth / this.columnWidth); o = Math.min(o, this.cols); for (var n = this.options.horizontalOrder ? "_getHorizontalColPosition" : "_getTopColPosition", s = this[n](o, t), r = { x: this.columnWidth * s.col, y: s.y }, a = s.y + t.size.outerHeight, u = o + s.col, h = s.col; h < u; h++)this.colYs[h] = a; return r }, o._getTopColPosition = function (t) { var e = this._getTopColGroup(t), i = Math.min.apply(Math, e); return { col: e.indexOf(i), y: i } }, o._getTopColGroup = function (t) { if (t < 2) return this.colYs; for (var e = [], i = this.cols + 1 - t, o = 0; o < i; o++)e[o] = this._getColGroupY(o, t); return e }, o._getColGroupY = function (t, e) { if (e < 2) return this.colYs[t]; var i = this.colYs.slice(t, t + e); return Math.max.apply(Math, i) }, o._getHorizontalColPosition = function (t, e) { var i = this.horizontalColIndex % this.cols, o = t > 1 && i + t > this.cols; i = o ? 0 : i; var n = e.size.outerWidth && e.size.outerHeight; return this.horizontalColIndex = n ? i + t : this.horizontalColIndex, { col: i, y: this._getColGroupY(i, t) } }, o._manageStamp = function (t) { var i = e(t), o = this._getElementOffset(t), n = this._getOption("originLeft"), s = n ? o.left : o.right, r = s + i.outerWidth, a = Math.floor(s / this.columnWidth); a = Math.max(0, a); var u = Math.floor(r / this.columnWidth); u -= r % this.columnWidth ? 0 : 1, u = Math.min(this.cols - 1, u); for (var h = this._getOption("originTop"), d = (h ? o.top : o.bottom) + i.outerHeight, l = a; l <= u; l++)this.colYs[l] = Math.max(d, this.colYs[l]) }, o._getContainerSize = function () { this.maxY = Math.max.apply(Math, this.colYs); var t = { height: this.maxY }; return this._getOption("fitWidth") && (t.width = this._getContainerFitWidth()), t }, o._getContainerFitWidth = function () { for (var t = 0, e = this.cols; --e && 0 === this.colYs[e];)t++; return (this.cols - t) * this.columnWidth - this.gutter }, o.needsResizeLayout = function () { var t = this.containerWidth; return this.getContainerWidth(), t != this.containerWidth }, i }), function (t, e) { "function" == typeof define && define.amd ? define("isotope-layout/js/layout-modes/masonry", ["../layout-mode", "masonry-layout/masonry"], e) : "object" == typeof module && module.exports ? module.exports = e(require("../layout-mode"), require("masonry-layout")) : e(t.Isotope.LayoutMode, t.Masonry) }(window, function (t, e) { "use strict"; var i = t.create("masonry"), o = i.prototype, n = { _getElementOffset: !0, layout: !0, _getMeasurement: !0 }; for (var s in e.prototype) n[s] || (o[s] = e.prototype[s]); var r = o.measureColumns; o.measureColumns = function () { this.items = this.isotope.filteredItems, r.call(this) }; var a = o._getOption; return o._getOption = function (t) { return "fitWidth" == t ? void 0 !== this.options.isFitWidth ? this.options.isFitWidth : this.options.fitWidth : a.apply(this.isotope, arguments) }, i }), function (t, e) { "function" == typeof define && define.amd ? define("isotope-layout/js/layout-modes/fit-rows", ["../layout-mode"], e) : "object" == typeof exports ? module.exports = e(require("../layout-mode")) : e(t.Isotope.LayoutMode) }(window, function (t) { "use strict"; var e = t.create("fitRows"), i = e.prototype; return i._resetLayout = function () { this.x = 0, this.y = 0, this.maxY = 0, this._getMeasurement("gutter", "outerWidth") }, i._getItemLayoutPosition = function (t) { t.getSize(); var e = t.size.outerWidth + this.gutter, i = this.isotope.size.innerWidth + this.gutter; 0 !== this.x && e + this.x > i && (this.x = 0, this.y = this.maxY); var o = { x: this.x, y: this.y }; return this.maxY = Math.max(this.maxY, this.y + t.size.outerHeight), this.x += e, o }, i._getContainerSize = function () { return { height: this.maxY } }, e }), function (t, e) { "function" == typeof define && define.amd ? define("isotope-layout/js/layout-modes/vertical", ["../layout-mode"], e) : "object" == typeof module && module.exports ? module.exports = e(require("../layout-mode")) : e(t.Isotope.LayoutMode) }(window, function (t) { "use strict"; var e = t.create("vertical", { horizontalAlignment: 0 }), i = e.prototype; return i._resetLayout = function () { this.y = 0 }, i._getItemLayoutPosition = function (t) { t.getSize(); var e = (this.isotope.size.innerWidth - t.size.outerWidth) * this.options.horizontalAlignment, i = this.y; return this.y += t.size.outerHeight, { x: e, y: i } }, i._getContainerSize = function () { return { height: this.y } }, e }), function (t, e) { "function" == typeof define && define.amd ? define(["outlayer/outlayer", "get-size/get-size", "desandro-matches-selector/matches-selector", "fizzy-ui-utils/utils", "isotope-layout/js/item", "isotope-layout/js/layout-mode", "isotope-layout/js/layout-modes/masonry", "isotope-layout/js/layout-modes/fit-rows", "isotope-layout/js/layout-modes/vertical"], function (i, o, n, s, r, a) { return e(t, i, o, n, s, r, a) }) : "object" == typeof module && module.exports ? module.exports = e(t, require("outlayer"), require("get-size"), require("desandro-matches-selector"), require("fizzy-ui-utils"), require("isotope-layout/js/item"), require("isotope-layout/js/layout-mode"), require("isotope-layout/js/layout-modes/masonry"), require("isotope-layout/js/layout-modes/fit-rows"), require("isotope-layout/js/layout-modes/vertical")) : t.Isotope = e(t, t.Outlayer, t.getSize, t.matchesSelector, t.fizzyUIUtils, t.Isotope.Item, t.Isotope.LayoutMode) }(window, function (t, e, i, o, n, s, r) { 3167 function a(t, e) { return function (i, o) { for (var n = 0; n < t.length; n++) { var s = t[n], r = i.sortData[s], a = o.sortData[s]; if (r > a || r < a) { var u = void 0 !== e[s] ? e[s] : e, h = u ? 1 : -1; return (r > a ? 1 : -1) * h } } return 0 } } var u = t.jQuery, h = String.prototype.trim ? function (t) { return t.trim() } : function (t) { return t.replace(/^\s+|\s+$/g, "") }, d = e.create("isotope", { layoutMode: "masonry", isJQueryFiltering: !0, sortAscending: !0 }); d.Item = s, d.LayoutMode = r; var l = d.prototype; l._create = function () { this.itemGUID = 0, this._sorters = {}, this._getSorters(), e.prototype._create.call(this), this.modes = {}, this.filteredItems = this.items, this.sortHistory = ["original-order"]; for (var t in r.modes) this._initLayoutMode(t) }, l.reloadItems = function () { this.itemGUID = 0, e.prototype.reloadItems.call(this) }, l._itemize = function () { for (var t = e.prototype._itemize.apply(this, arguments), i = 0; i < t.length; i++) { var o = t[i]; o.id = this.itemGUID++ } return this._updateItemsSortData(t), t }, l._initLayoutMode = function (t) { var e = r.modes[t], i = this.options[t] || {}; this.options[t] = e.options ? n.extend(e.options, i) : i, this.modes[t] = new e(this) }, l.layout = function () { return !this._isLayoutInited && this._getOption("initLayout") ? void this.arrange() : void this._layout() }, l._layout = function () { var t = this._getIsInstant(); this._resetLayout(), this._manageStamps(), this.layoutItems(this.filteredItems, t), this._isLayoutInited = !0 }, l.arrange = function (t) { this.option(t), this._getIsInstant(); var e = this._filter(this.items); this.filteredItems = e.matches, this._bindArrangeComplete(), this._isInstant ? this._noTransition(this._hideReveal, [e]) : this._hideReveal(e), this._sort(), this._layout() }, l._init = l.arrange, l._hideReveal = function (t) { this.reveal(t.needReveal), this.hide(t.needHide) }, l._getIsInstant = function () { var t = this._getOption("layoutInstant"), e = void 0 !== t ? t : !this._isLayoutInited; return this._isInstant = e, e }, l._bindArrangeComplete = function () { function t() { e && i && o && n.dispatchEvent("arrangeComplete", null, [n.filteredItems]) } var e, i, o, n = this; this.once("layoutComplete", function () { e = !0, t() }), this.once("hideComplete", function () { i = !0, t() }), this.once("revealComplete", function () { o = !0, t() }) }, l._filter = function (t) { var e = this.options.filter; e = e || "*"; for (var i = [], o = [], n = [], s = this._getFilterTest(e), r = 0; r < t.length; r++) { var a = t[r]; if (!a.isIgnored) { var u = s(a); u && i.push(a), u && a.isHidden ? o.push(a) : u || a.isHidden || n.push(a) } } return { matches: i, needReveal: o, needHide: n } }, l._getFilterTest = function (t) { 3168 return u && this.options.isJQueryFiltering ? function (e) { 3169 return u(e.element).is(t); 3170 } : "function" == typeof t ? function (e) { return t(e.element) } : function (e) { return o(e.element, t) } 3171 }, l.updateSortData = function (t) { var e; t ? (t = n.makeArray(t), e = this.getItems(t)) : e = this.items, this._getSorters(), this._updateItemsSortData(e) }, l._getSorters = function () { var t = this.options.getSortData; for (var e in t) { var i = t[e]; this._sorters[e] = f(i) } }, l._updateItemsSortData = function (t) { for (var e = t && t.length, i = 0; e && i < e; i++) { var o = t[i]; o.updateSortData() } }; var f = function () { function t(t) { if ("string" != typeof t) return t; var i = h(t).split(" "), o = i[0], n = o.match(/^\[(.+)\]$/), s = n && n[1], r = e(s, o), a = d.sortDataParsers[i[1]]; return t = a ? function (t) { return t && a(r(t)) } : function (t) { return t && r(t) } } function e(t, e) { return t ? function (e) { return e.getAttribute(t) } : function (t) { var i = t.querySelector(e); return i && i.textContent } } return t }(); d.sortDataParsers = { parseInt: function (t) { return parseInt(t, 10) }, parseFloat: function (t) { return parseFloat(t) } }, l._sort = function () { if (this.options.sortBy) { var t = n.makeArray(this.options.sortBy); this._getIsSameSortBy(t) || (this.sortHistory = t.concat(this.sortHistory)); var e = a(this.sortHistory, this.options.sortAscending); this.filteredItems.sort(e) } }, l._getIsSameSortBy = function (t) { for (var e = 0; e < t.length; e++)if (t[e] != this.sortHistory[e]) return !1; return !0 }, l._mode = function () { var t = this.options.layoutMode, e = this.modes[t]; if (!e) throw new Error("No layout mode: " + t); return e.options = this.options[t], e }, l._resetLayout = function () { e.prototype._resetLayout.call(this), this._mode()._resetLayout() }, l._getItemLayoutPosition = function (t) { return this._mode()._getItemLayoutPosition(t) }, l._manageStamp = function (t) { this._mode()._manageStamp(t) }, l._getContainerSize = function () { return this._mode()._getContainerSize() }, l.needsResizeLayout = function () { return this._mode().needsResizeLayout() }, l.appended = function (t) { var e = this.addItems(t); if (e.length) { var i = this._filterRevealAdded(e); this.filteredItems = this.filteredItems.concat(i) } }, l.prepended = function (t) { var e = this._itemize(t); if (e.length) { this._resetLayout(), this._manageStamps(); var i = this._filterRevealAdded(e); this.layoutItems(this.filteredItems), this.filteredItems = i.concat(this.filteredItems), this.items = e.concat(this.items) } }, l._filterRevealAdded = function (t) { var e = this._filter(t); return this.hide(e.needHide), this.reveal(e.matches), this.layoutItems(e.matches, !0), e.matches }, l.insert = function (t) { var e = this.addItems(t); if (e.length) { var i, o, n = e.length; for (i = 0; i < n; i++)o = e[i], this.element.appendChild(o.element); var s = this._filter(e).matches; for (i = 0; i < n; i++)e[i].isLayoutInstant = !0; for (this.arrange(), i = 0; i < n; i++)delete e[i].isLayoutInstant; this.reveal(s) } }; var c = l.remove; return l.remove = function (t) { t = n.makeArray(t); var e = this.getItems(t); c.call(this, t); for (var i = e && e.length, o
3171 = 0; i && o < i; o++) { var s = e[o]; n.removeFrom(this.filteredItems, s) } }, l.shuffle = function () { for (var t = 0; t < this.items.length; t++) { var e = this.items[t]; e.sortData.random = Math.random() } this.options.sortBy = "random", this._sort(), this._layout() }, l._noTransition = function (t, e) { var i = this.options.transitionDuration; this.options.transitionDuration = 0; var o = t.apply(this, e); return this.options.transitionDuration = i, o }, l.getFilteredItemElements = function () { return this.filteredItems.map(function (t) { return t.element }) }, d 3172});; (function ($, window, undefined) { 'use strict'; var BLANK = 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw=='; $.fn.imagesLoaded = function (callback) { var $this = this, deferred = $.isFunction($.Deferred) ? $.Deferred() : 0, hasNotify = $.isFunction(deferred.notify), $images = $this.find('img').add($this.filter('img')), loaded = [], proper = [], broken = []; if ($.isPlainObject(callback)) { $.each(callback, function (key, value) { if (key === 'callback') { callback = value } else if (deferred) { deferred[key](value) } }) } function doneLoading() { var $proper = $(proper), $broken = $(broken); if (deferred) { if (broken.length) { deferred.reject($images, $proper, $broken) } else { deferred.resolve($images) } } if ($.isFunction(callback)) { callback.call($this, $images, $proper, $broken) } } function imgLoadedHandler(event) { imgLoaded(event.target, event.type === 'error') } function imgLoaded(img, isBroken) { if (img.src === BLANK || $.inArray(img, loaded) !== -1) { return } loaded.push(img); if (isBroken) { broken.push(img) } else { proper.push(img) } $.data(img, 'imagesLoaded', { isBroken: isBroken, src: img.src }); if (hasNotify) { deferred.notifyWith($(img), [isBroken, $images, $(proper), $(broken)]) } if ($images.length === loaded.length) { setTimeout(doneLoading); $images.unbind('.imagesLoaded', imgLoadedHandler) } } if (!$images.length) { doneLoading() } else { $images.bind('load.imagesLoaded error.imagesLoaded', imgLoadedHandler).each(function (i, el) { var src = el.src; var cached = $.data(el, 'imagesLoaded'); if (cached && cached.src === src) { imgLoaded(el, cached.isBroken); return } if (el.complete && el.naturalWidth !== undefined) { imgLoaded(el, el.naturalWidth === 0 || el.naturalHeight === 0); return } if (el.readyState || el.complete) { el.src = BLANK; el.src = src } }) } return deferred ? deferred.promise($this) : $this }; var Modernizr = window.Modernizr; $.Flipshow = function (options, element) { this.$el = $(element); this._init(options) }; $.Flipshow.defaults = { speed: 700, easing: 'ease-out' }; $.Flipshow.prototype = { _init: function (options) { this.options = $.extend(true, {}, $.Flipshow.defaults, options); this.support = Modernizr.csstransitions && Modernizr.csstransforms3d && !(/MSIE (\d+\.\d+);/.test(navigator.userAgent)); var transEndEventNames = { 'WebkitTransition': 'webkitTransitionEnd', 'MozTransition': 'transitionend', 'OTransition': 'oTransitionEnd', 'msTransition': 'MSTransitionEnd', 'transition': 'transitionend' }, transformNames = { 'WebkitTransform': '-webkit-transform', 'MozTransform': '-moz-transform', 'OTransform': '-o-transform', 'msTransform': '-ms-transform', 'transform': 'transform' }; if (this.support) { this.transEndEventName = transEndEventNames[Modernizr.prefixed('transition')] + '.cbpFWSlider'; this.transformName = transformNames[Modernizr.prefixed('transform')] } this.transitionProperties = this.transformName + ' ' + this.options.speed + 'ms ' + this.options.easing; this.$listItems = this.$el.children('ul.fc-slides'); this.$items = this.$listItems.children('li').hide(); this.itemsCount = this.$items.length; this.current = 0; this.$listItems.imagesLoaded($.proxy(function () { this.$items.eq(this.current).show(); if (this.itemsCount > 0) { this._addNav(); if (this.support) { this._layout() } } }, this)) }, _addNav: function () { var self = this, $navLeft = $('<div class="fc-left"><span></span><span></span><span></span><i class="fa fa-arrow-left"></i></div>'), $navRight = $('<div class="fc-right"><span></span><span></span><span></span><i class="fa fa-arrow-right"></i></div>'); $('<nav></nav>').append($navLeft, $navRight).appendTo(this.$el); $navLeft.find('span').on('click.flipshow touchstart.flipshow', function () { self._navigate($(this), 'left') }); $navRight.find('span').on('click.flipshow touchstart.flipshow', function () { self._navigate($(this), 'right') }) }, _layout: function ($current, $next) { this.$flipFront = $('<div class="fc-front"><div></div></div>'); this.$frontContent = this.$flipFront.children('div:first'); this.$flipBack = $('<div class="fc-back"><div></div></div>'); this.$backContent = this.$flipBack.children('div:first');
3172 this.$flipEl = $('<div class="fc-flip"></div>').append(this.$flipFront, this.$flipBack).hide().appendTo(this.$el) }, _navigate: function ($nav, dir) { if (this.isAnimating && this.support) { return false } this.isAnimating = true; var $currentItem = this.$items.eq(this.current).hide(); if (dir === 'right') { this.current < this.itemsCount - 1 ? ++this.current : this.current = 0 } else if (dir === 'left') { this.current > 0 ? --this.current : this.current = this.itemsCount - 1 } var $nextItem = this.$items.eq(this.current); if (this.support) { this._flip($currentItem, $nextItem, dir, $nav.index()) } else { $nextItem.show() } }, _flip: function ($currentItem, $nextItem, dir, angle) { var transformProperties = '', $overlayLight = $('<div class="fc-overlay-light"></div>'), $overlayDark = $('<div class="fc-overlay-dark"></div>'); this.$flipEl.css('transition', this.transitionProperties); this.$flipFront.find('div.fc-overlay-light, div.fc-overlay-dark').remove(); this.$flipBack.find('div.fc-overlay-light, div.fc-overlay-dark').remove(); if (dir === 'right') { this.$flipFront.append($overlayLight); this.$flipBack.append($overlayDark); $overlayDark.css('opacity', 1) } else if (dir === 'left') { this.$flipFront.append($overlayDark); this.$flipBack.append($overlayLight); $overlayLight.css('opacity', 1) } var overlayStyle = { transition: 'opacity ' + (this.options.speed / 1.3) + 'ms' }; $overlayLight.css(overlayStyle); $overlayDark.css(overlayStyle); switch (angle) { case 0: transformProperties = dir === 'left' ? 'rotate3d(-1,1,0,-179deg) rotate3d(-1,1,0,-1deg)' : 'rotate3d(1,1,0,180deg)'; break; case 1: transformProperties = dir === 'left' ? 'rotate3d(0,1,0,-179deg) rotate3d(0,1,0,-1deg)' : 'rotate3d(0,1,0,180deg)'; break; case 2: transformProperties = dir === 'left' ? 'rotate3d(1,1,0,-179deg) rotate3d(1,1,0,-1deg)' : 'rotate3d(-1,1,0,179deg) rotate3d(-1,1,0,1deg)'; break } this.$flipBack.css('transform', transformProperties); this.$frontContent.empty().html($currentItem.html()); this.$backContent.empty().html($nextItem.html()); this.$flipEl.show(); var self = this; setTimeout(function () { self.$flipEl.css('transform', transformProperties); $overlayLight.css('opacity', dir === 'right' ? 1 : 0); $overlayDark.css('opacity', dir === 'right' ? 0 : 1); self.$flipEl.on(self.transEndEventName, function (event) { if (event.target.className === 'fc-overlay-light' || event.target.className === 'fc-overlay-dark') return; self._ontransitionend($nextItem) }) }, 25) }, _ontransitionend: function ($nextItem) { $nextItem.show(); this.$flipEl.off(this.transEndEventName).css({ transition: 'none', transform: 'none' }).hide(); this.isAnimating = false } }; var logError = function (message) { if (window.console) { window.console.error(message) } }; $.fn.flipshow = function (options) { if (typeof options === 'string') { var args = Array.prototype.slice.call(arguments, 1); this.each(function () { var instance = $.data(this, 'flipshow'); if (!instance) { logError("cannot call methods on flipshow prior to initialization; " + "attempted to call method '" + options + "'"); return } if (!$.isFunction(instance[options]) || options.charAt(0) === "_") { logError("no such method '" + options + "' for flipshow instance"); return } instance[options].apply(instance, args) }) } else { this.each(function () { var instance = $.data(this, 'flipshow'); if (instance) { instance._init() } else { instance = $.data(this, 'flipshow', new $.Flipshow(options, this)) } }) } return this } })(jQuery, window);/*! 3173 * Slidebars - A jQuery Framework for Off-Canvas Menus and Sidebars 3174 * Version: 2.0.2 3175 * Url: http://www.adchsm.com/slidebars/ 3176 * Author: Adam Charles Smith 3177 * Author url: http://www.adchsm.com/ 3178 * License: MIT 3179 * License url: http://www.adchsm.com/slidebars/license/ 3180 */ 3181 3182var slidebars=function(){var t=$("[canvas]"),e={},i=!1,n=!1,s=["top","right","bottom","left"],r=["reveal","push","overlay","shift"],o=function(i){var n=$(),s="0px, 0px",r=1e3*parseFloat(e[i].element.css("transitionDuration"),10);return("reveal"===e[i].style||"push"===e[i].style||"shift"===e[i].style)&&(n=n.add(t)),("push"===e[i].style||"overlay"===e[i].style||"shift"===e[i].style)&&(n=n.add(e[i].element)),e[i].active&&("top"===e[i].side?s="0px, "+e[i].element.css("height"):"right"===e[i].side?s="-"+e[i].element.css("width")+", 0px":"bottom"===e[i].side?s="0px, -"+e[i].element.css("height"):"left"===e[i].side&&(s=e[i].element.css("width")+", 0px")),{elements:n,amount:s,duration:r}},c=function(t,i,n,s){return a(t)?!1:void(e[t]={id:t,side:i,style:n,element:s,active:!1})},a=function(t){return e.hasOwnProperty(t)?!0:!1};this.init=function(t){return i?!1:(n||($("[off-canvas]").each(function(){var t=$(this).attr("off-canvas").split(" ",3);return t&&t[0]&&-1!==s.indexOf(t[1])&&-1!==r.indexOf(t[2])?void c(t[0],t[1],t[2],$(this)):!1}),n=!0),i=!0,this.css(),$(f).trigger("init"),void("function"==typeof t&&t()))},this.exit=function(t){if(!i)return!1;var e=function(){i=!1,$(f).trigger("exit"),"function"==typeof t&&t()};this.getActiveSlidebar()?this.close(e):e()},this.css=function(t){if(!i)return!1;for(var n in e)if(a(n)){var s;s="top"===e[n].side||"bottom"===e[n].side?e[n].element.css("height"):e[n].element.css("width"),("push"===e[n].style||"overlay"===e[n].style||"shift"===e[n].style)&&e[n].element.css("margin-"+e[n].side,"-"+s)}this.getActiveSlidebar()&&this.open(this.getActiveSlidebar()),$(f).trigger("css"),"function"==typeof t&&t()},this.open=function(t,n){if(!i)return!1;if(!t||!a(t))return!1;var s=function(){e[t].active=!0,e[t].element.css("display","block"),$(f).trigger("opening",[e[t].id]);var i=o(t);i.elements.css({"transition-duration":i.duration+"ms",transform:"translate("+i.amount+")"}),setTimeout(function(){$(f).trigger("opened",[e[t].id]),"function"==typeof n&&n()},i.duration)};this.getActiveSlidebar()&&this.getActiveSlidebar()!==t?this.close(s):s()},this.close=function(t,n){if("function"==typeof t&&(n=t,t=null),!i)return!1;if(t&&!a(t))return!1;if(t||(t=this.getActiveSlidebar()),t&&e[t].active){e[t].active=!1,$(f).trigger("closing",[e[t].id]);var s=o(t);s.elements.css("transform",""),setTimeout(function(){s.elements.css("transition-duration",""),e[t].element.css("display",""),$(f).trigger("closed",[e[t].id]),"function"==typeof n&&n()},s.duration)}},this.toggle=function(t,n){return i&&t&&a(t)?void(e[t].active?this.close(t,function(){"function"==typeof n&&n()}):this.open(t,function(){"function"==typeof n&&n()})):!1},this.isActive=function(){return i},this.isActiveSlidebar=function(t){return i&&t&&a(t)?e[t].active:!1},this.getActiveSlidebar=function(){if(!i)return!1;var t=!1;for(var n in e)if(a(n)&&e[n].active){t=e[n].id;break}return t}
3182,this.getSlidebars=function(){if(!i)return!1;var t=[];for(var n in e)a(n)&&t.push(e[n].id);return t},this.getSlidebar=function(t){return i&&t&&t&&a(t)?e[t]:!1},this.events={};var f=this.events;$(window).on("resize",this.css.bind(this))};// DOM.event.move 3183// 3184// 2.0.0 3185// 3186// Stephen Band 3187// 3188// Triggers 'movestart', 'move' and 'moveend' events after 3189// mousemoves following a mousedown cross a distance threshold, 3190// similar to the native 'dragstart', 'drag' and 'dragend' events. 3191// Move events are throttled to animation frames. Move event objects 3192// have the properties: 3193// 3194// pageX: 3195// pageY: Page coordinates of pointer. 3196// startX: 3197// startY: Page coordinates of pointer at movestart. 3198// distX: 3199// distY: Distance the pointer has moved since movestart. 3200// deltaX: 3201// deltaY: Distance the finger has moved since last event. 3202// velocityX: 3203// velocityY: Average velocity over last few events. 3204 3205 3206(function(fn) { 3207 if (typeof define === 'function' && define.amd) { 3208 define([], fn); 3209 } else if ((typeof module !== "undefined" && module !== null) && module.exports) { 3210 module.exports = fn; 3211 } else { 3212 fn(); 3213 } 3214})(function(){ 3215 var assign = Object.assign || window.jQuery && jQuery.extend; 3216 3217 // Number of pixels a pressed pointer travels before movestart 3218 // event is fired. 3219 var threshold = 8; 3220 3221 // Shim for requestAnimationFrame, falling back to timer. See: 3222 // see http://paulirish.com/2011/requestanimationframe-for-smart-animating/ 3223 var requestFrame = (function(){ 3224 return ( 3225 window.requestAnimationFrame || 3226 window.webkitRequestAnimationFrame || 3227 window.mozRequestAnimationFrame || 3228 window.oRequestAnimationFrame || 3229 window.msRequestAnimationFrame || 3230 function(fn, element){ 3231 return window.setTimeout(function(){ 3232 fn(); 3233 }, 25); 3234 } 3235 ); 3236 })(); 3237 3238 // Shim for customEvent 3239 // see https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/CustomEvent#Polyfill 3240 (function () { 3241 if ( typeof window.CustomEvent === "function" ) return false; 3242 function CustomEvent ( event, params ) { 3243 params = params || { bubbles: false, cancelable: false, detail: undefined }; 3244 var evt = document.createEvent( 'CustomEvent' ); 3245 evt.initCustomEvent( event, params.bubbles, params.cancelable, params.detail ); 3246 return evt; 3247 } 3248 3249 CustomEvent.prototype = window.Event.prototype; 3250 window.CustomEvent = CustomEvent; 3251 })(); 3252 3253 var ignoreTags = { 3254 textarea: true, 3255 input: true, 3256 select: true, 3257 button: true 3258 }; 3259 3260 var mouseevents = { 3261 move: 'mousemove', 3262 cancel: 'mouseup dragstart', 3263 end: 'mouseup' 3264 }; 3265 3266 var touchevents = { 3267 move: 'touchmove', 3268 cancel: 'touchend', 3269 end: 'touchend' 3270 }; 3271 3272 var rspaces = /\s+/; 3273 3274 3275 // DOM Events 3276 3277 var eventOptions = { bubbles: true, cancelable: true }; 3278 3279 var eventsSymbol = typeof Symbol === "function" ? Symbol('events') : {}; 3280 3281 function createEvent(type) { 3282 return new CustomEvent(type, eventOptions); 3283 } 3284 3285 function getEvents(node) { 3286 return node[eventsSymbol] || (node[eventsSymbol] = {}); 3287 } 3288 3289 function on(node, types, fn, data, selector) { 3290 types = types.split(rspaces); 3291 3292 var events = getEvents(node); 3293 var i = types.length; 3294 var handlers, type; 3295 3296 function handler(e) { fn(e, data); } 3297 3298 while (i--) { 3299 type = types[i]; 3300 handlers = events[type] || (events[type] = []); 3301 handlers.push([fn, handler]); 3302 node.addEventListener(type, handler); 3303 } 3304 } 3305 3306 function off(node, types, fn, selector) { 3307 types = types.split(rspaces); 3308 3309 var events = getEvents(node); 3310 var i = types.length;
3311 var type, handlers, k; 3312 3313 if (!events) { return; } 3314 3315 while (i--) { 3316 type = types[i]; 3317 handlers = events[type]; 3318 if (!handlers) { continue; } 3319 k = handlers.length; 3320 while (k--) { 3321 if (handlers[k][0] === fn) { 3322 node.removeEventListener(type, handlers[k][1]); 3323 handlers.splice(k, 1); 3324 } 3325 } 3326 } 3327 } 3328 3329 function trigger(node, type, properties) { 3330 // Don't cache events. It prevents you from triggering an event of a 3331 // given type from inside the handler of another event of that type. 3332 var event = createEvent(type); 3333 if (properties) { assign(event, properties); } 3334 node.dispatchEvent(event); 3335 } 3336 3337 3338 // Constructors 3339 3340 function Timer(fn){ 3341 var callback = fn, 3342 active = false, 3343 running = false; 3344 3345 function trigger(time) { 3346 if (active){ 3347 callback(); 3348 requestFrame(trigger); 3349 running = true; 3350 active = false; 3351 } 3352 else { 3353 running = false; 3354 } 3355 } 3356 3357 this.kick = function(fn) { 3358 active = true; 3359 if (!running) { trigger(); } 3360 }; 3361 3362 this.end = function(fn) { 3363 var cb = callback; 3364 3365 if (!fn) { return; } 3366 3367 // If the timer is not running, simply call the end callback. 3368 if (!running) { 3369 fn(); 3370 } 3371 // If the timer is running, and has been kicked lately, then 3372 // queue up the current callback and the end callback, otherwise 3373 // just the end callback. 3374 else { 3375 callback = active ? 3376 function(){ cb(); fn(); } : 3377 fn ; 3378 3379 active = true; 3380 } 3381 }; 3382 } 3383 3384 3385 // Functions 3386 3387 function noop() {} 3388 3389 function preventDefault(e) { 3390 e.preventDefault(); 3391 } 3392 3393 function isIgnoreTag(e) { 3394 return !!ignoreTags[e.target.tagName.toLowerCase()]; 3395 } 3396 3397 function isPrimaryButton(e) { 3398 // Ignore mousedowns on any button other than the left (or primary) 3399 // mouse button, or when a modifier key is pressed. 3400 return (e.which === 1 && !e.ctrlKey && !e.altKey); 3401 } 3402 3403 function identifiedTouch(touchList, id) { 3404 var i, l; 3405 3406 if (touchList.identifiedTouch) { 3407 return touchList.identifiedTouch(id); 3408 } 3409 3410 // touchList.identifiedTouch() does not exist in 3411 // webkit yet… we must do the search ourselves... 3412 3413 i = -1; 3414 l = touchList.length; 3415 3416 while (++i < l) { 3417 if (touchList[i].identifier === id) { 3418 return touchList[i]; 3419 } 3420 } 3421 } 3422 3423 function changedTouch(e, data) { 3424 var touch = identifiedTouch(e.changedTouches, data.identifier); 3425 3426 // This isn't the touch you're looking for. 3427 if (!touch) { return; } 3428 3429 // Chrome Android (at least) includes touches that have not 3430 // changed in e.changedTouches. That's a bit annoying. Check 3431 // that this touch has changed. 3432 if (touch.pageX === data.pageX && touch.pageY === data.pageY) { return; } 3433 3434 return touch; 3435 } 3436 3437 3438 // Handlers that decide when the first movestart is triggered 3439 3440 function mousedown(e){ 3441 // Ignore non-primary buttons 3442 if (!isPrimaryButton(e)) { return; } 3443 3444 // Ignore form and interactive elements 3445 if (isIgnoreTag(e)) { return; } 3446 3447 on(document, mouseevents.move, mousemove, e); 3448 on(document, mouseevents.cancel, mouseend, e); 3449 } 3450 3451 function mousemove(e, data){ 3452 checkThreshold(e, data, e, removeMouse); 3453 } 3454 3455 function mouseend(e, data) { 3456 removeMouse(); 3457 } 3458 3459 function removeMouse() { 3460 off(document, mouseevents.move, mousemove); 3461 off(document, mouseevents.cancel, mouseend); 3462 } 3463 3464 function touchstart(e) { 3465 // Don't get in the way of interaction with form elements 3466 if (ignoreTags[e.target.tagName.toLowerCase()]) { return; } 3467 3468 var touch = e.changedTouches[0]; 3469 3470 // iOS live updates the touch objects whereas Android gives us copies. 3471 // That means we can't trust the touchstart object to stay the same, 3472 // so we must copy the data. This object acts as a template for 3473 // movestart, move and moveend event objects. 3474 var data = { 3475 target: touch.target, 3476 pageX: touch.pageX, 3477 pageY: touch.pageY, 3478 identifier: touch.identifier, 3479 3480 // The only way to make handlers individually unbindable is by 3481 // making them unique. 3482 touchmove: function(e, data) { touchmove(e, data); }, 3483 touchend: function(e, data) { touchend(e, data); } 3484 }; 3485 3486 on(document, touchevents.move, data.touchmove, data); 3487 on(document, touchevents.cancel, data.touchend, data); 3488 } 3489 3490 function touchmove(e, data) { 3491 var touch = changedTouch(e, data); 3492 if (!touch) { return; } 3493 checkThreshold(e, data, touch, removeTouch); 3494 } 3495 3496 function touchend(e, data) { 3497 var touch = identifiedTouch(e.changedTouches, data.identifier); 3498 if (!touch) { return; } 3499 removeTouch(data); 3500 } 3501 3502 function removeTouch(data) { 3503 off(document, touchevents.move, data.touchmove); 3504 off(document, touchevents.cancel, data.touchend); 3505 } 3506 3507 function checkThreshold(e, data, touch, fn) { 3508 var distX = touch.pageX - data.pageX; 3509 var distY = touch.pageY - data.pageY; 3510
3511 // Do nothing if the threshold has not been crossed. 3512 if ((distX * distX) + (distY * distY) < (threshold * threshold)) { return; } 3513 3514 triggerStart(e, data, touch, distX, distY, fn); 3515 } 3516 3517 function triggerStart(e, data, touch, distX, distY, fn) { 3518 var touches = e.targetTouches; 3519 var time = e.timeStamp - data.timeStamp; 3520 3521 // Create a movestart object with some special properties that 3522 // are passed only to the movestart handlers. 3523 var template = { 3524 altKey: e.altKey, 3525 ctrlKey: e.ctrlKey, 3526 shiftKey: e.shiftKey, 3527 startX: data.pageX, 3528 startY: data.pageY, 3529 distX: distX, 3530 distY: distY, 3531 deltaX: distX, 3532 deltaY: distY, 3533 pageX: touch.pageX, 3534 pageY: touch.pageY, 3535 velocityX: distX / time, 3536 velocityY: distY / time, 3537 identifier: data.identifier, 3538 targetTouches: touches, 3539 finger: touches ? touches.length : 1, 3540 enableMove: function() { 3541 this.moveEnabled = true; 3542 this.enableMove = noop; 3543 e.preventDefault(); 3544 } 3545 }; 3546 3547 // Trigger the movestart event. 3548 trigger(data.target, 'movestart', template); 3549 3550 // Unbind handlers that tracked the touch or mouse up till now. 3551 fn(data); 3552 } 3553 3554 3555 // Handlers that control what happens following a movestart 3556 3557 function activeMousemove(e, data) { 3558 var timer = data.timer; 3559 3560 data.touch = e; 3561 data.timeStamp = e.timeStamp; 3562 timer.kick(); 3563 } 3564 3565 function activeMouseend(e, data) { 3566 var target = data.target; 3567 var event = data.event; 3568 var timer = data.timer; 3569 3570 removeActiveMouse(); 3571 3572 endEvent(target, event, timer, function() { 3573 // Unbind the click suppressor, waiting until after mouseup 3574 // has been handled. 3575 setTimeout(function(){ 3576 off(target, 'click', preventDefault); 3577 }, 0); 3578 }); 3579 } 3580 3581 function removeActiveMouse() { 3582 off(document, mouseevents.move, activeMousemove); 3583 off(document, mouseevents.end, activeMouseend); 3584 } 3585 3586 function activeTouchmove(e, data) { 3587 var event = data.event; 3588 var timer = data.timer; 3589 var touch = changedTouch(e, event); 3590 3591 if (!touch) { return; } 3592 3593 // Stop the interface from gesturing 3594 e.preventDefault(); 3595 3596 event.targetTouches = e.targetTouches; 3597 data.touch = touch; 3598 data.timeStamp = e.timeStamp; 3599 3600 timer.kick(); 3601 } 3602 3603 function activeTouchend(e, data) { 3604 var target = data.target; 3605 var event = data.event; 3606 var timer = data.timer; 3607 var touch = identifiedTouch(e.changedTouches, event.identifier); 3608 3609 // This isn't the touch you're looking for. 3610 if (!touch) { return; } 3611 3612 removeActiveTouch(data); 3613 endEvent(target, event, timer); 3614 } 3615 3616 function removeActiveTouch(data) { 3617 off(document, touchevents.move, data.activeTouchmove); 3618 off(document, touchevents.end, data.activeTouchend); 3619 } 3620 3621 3622 // Logic for triggering move and moveend events 3623 3624 function updateEvent(event, touch, timeStamp) { 3625 var time = timeStamp - event.timeStamp; 3626 3627 event.distX = touch.pageX - event.startX; 3628 event.distY = touch.pageY - event.startY; 3629 event.deltaX = touch.pageX - event.pageX; 3630 event.deltaY = touch.pageY - event.pageY; 3631 3632 // Average the velocity of the last few events using a decay 3633 // curve to even out spurious jumps in values. 3634 event.velocityX = 0.3 * event.velocityX + 0.7 * event.deltaX / time; 3635 event.velocityY = 0.3 * event.velocityY + 0.7 * event.deltaY / time; 3636 event.pageX = touch.pageX; 3637 event.pageY = touch.pageY; 3638 } 3639 3640 function endEvent(target, event, timer, fn) { 3641 timer.end(function(){ 3642 trigger(target, 'moveend', event); 3643 return fn && fn(); 3644 }); 3645 } 3646 3647 3648 // Set up the DOM 3649 3650 function movestart(e) { 3651 if (e.defaultPrevented) { return; } 3652 if (!e.moveEnabled) { return; } 3653 3654 var event = { 3655 startX: e.startX, 3656 startY: e.startY, 3657 pageX: e.pageX, 3658 pageY: e.pageY, 3659 distX: e.distX, 3660 distY: e.distY, 3661 deltaX: e.deltaX, 3662 deltaY: e.deltaY, 3663 velocityX: e.velocityX, 3664 velocityY: e.velocityY, 3665 identifier: e.identifier, 3666 targetTouches: e.targetTouches, 3667 finger: e.finger 3668 }; 3669 3670 var data = { 3671 target: e.target, 3672 event: event, 3673 timer: new Timer(update), 3674 touch: undefined, 3675 timeStamp: e.timeStamp 3676 }; 3677 3678 function update(time) { 3679 updateEvent(event, data.touch, data.timeStamp); 3680 trigger(data.target, 'move', event); 3681 } 3682 3683 if (e.identifier === undefined) { 3684 // We're dealing with a mouse event. 3685 // Stop clicks from propagating during a move 3686 on(e.target, 'click', preventDefault); 3687 on(document, mouseevents.move, activeMousemove, data); 3688 on(document, mouseevents.end, activeMouseend, data); 3689 } 3690 else { 3691 // In order to unbind correct handlers they have to be unique 3692 data.activeTouchmove = function(e, data) { activeTouchmove(e, data); }; 3693 data.activeTouchend = function(e, data) { activeTouchend(e, data); }; 3694 3695 // We're dealing with a touch. 3696 on(document, touchevents.move, data.activeTouchmove, data); 3697 on(document, touchevents.end, data.activeTouchend, data); 3698 } 3699 } 3700 3701 on(document, 'mousedown', mousedown);
3702 on(document, 'touchstart', touchstart); 3703 on(document, 'movestart', movestart); 3704 3705 3706 // jQuery special events 3707 // 3708 // jQuery event objects are copies of DOM event objects. They need 3709 // a little help copying the move properties across. 3710 3711 if (!window.jQuery) { return; } 3712 3713 var properties = ("startX startY pageX pageY distX distY deltaX deltaY velocityX velocityY").split(' '); 3714 3715 function enableMove1(e) { e.enableMove(); } 3716 function enableMove2(e) { e.enableMove(); } 3717 function enableMove3(e) { e.enableMove(); } 3718 3719 function add(handleObj) { 3720 var handler = handleObj.handler; 3721 3722 handleObj.handler = function(e) { 3723 // Copy move properties across from originalEvent 3724 var i = properties.length; 3725 var property; 3726 3727 while(i--) { 3728 property = properties[i]; 3729 e[property] = e.originalEvent[property]; 3730 } 3731 3732 handler.apply(this, arguments); 3733 }; 3734 } 3735 3736 jQuery.event.special.movestart = { 3737 setup: function() { 3738 // Movestart must be enabled to allow other move events 3739 on(this, 'movestart', enableMove1); 3740 3741 // Do listen to DOM events 3742 return false; 3743 }, 3744 3745 teardown: function() { 3746 off(this, 'movestart', enableMove1); 3747 return false; 3748 }, 3749 3750 add: add 3751 }; 3752 3753 jQuery.event.special.move = { 3754 setup: function() { 3755 on(this, 'movestart', enableMove2); 3756 return false; 3757 }, 3758 3759 teardown: function() { 3760 off(this, 'movestart', enableMove2); 3761 return false; 3762 }, 3763 3764 add: add 3765 }; 3766 3767 jQuery.event.special.moveend = { 3768 setup: function() { 3769 on(this, 'movestart', enableMove3); 3770 return false; 3771 }, 3772 3773 teardown: function() { 3774 off(this, 'movestart', enableMove3); 3775 return false; 3776 }, 3777 3778 add: add 3779 }; 3780}); 3781/*! 3782 * Zurb TwentyTwenty PACKAGED v0.1.0 3783 * https://github.com/zurb/twentytwenty 3784 * Author "ZURB" 3785 */ 3786 3787(function ($) { 3788 3789 $.fn.twentytwenty = function(options) { 3790 var options = $.extend({ 3791 default_offset_pct: 0.5, 3792 orientation: 'horizontal', 3793 before_label: 'Before', 3794 after_label: 'After', 3795 no_overlay: false, 3796 move_slider_on_hover: false, 3797 move_with_handle_only: true, 3798 click_to_move: false 3799 }, options); 3800 3801 return this.each(function() { 3802 3803 var sliderPct = options.default_offset_pct; 3804 var container = $(this); 3805 var sliderOrientation = options.orientation; 3806 var beforeDirection = (sliderOrientation === 'vertical') ? 'down' : 'left'; 3807 var afterDirection = (sliderOrientation === 'vertical') ? 'up' : 'right'; 3808 3809 3810 container.wrap("<div class='twentytwenty-wrapper twentytwenty-" + sliderOrientation + "'></div>"); 3811 if(!options.no_overlay) { 3812 container.append("<div class='twentytwenty-overlay'></div>"); 3813 var overlay = container.find(".twentytwenty-overlay"); 3814 overlay.append("<div class='twentytwenty-before-label' data-content='"+options.before_label+"'></div>"); 3815 overlay.append("<div class='twentytwenty-after-label' data-content='"+options.after_label+"'></div>"); 3816 } 3817 var beforeImg = container.find("img:first"); 3818 var afterImg = container.find("img:last"); 3819 container.append("<div class='twentytwenty-handle'></div>"); 3820 var slider = container.find(".twentytwenty-handle"); 3821 slider.append("<span class='twentytwenty-" + beforeDirection + "-arrow'></span>"); 3822 slider.append("<span class='twentytwenty-" + afterDirection + "-arrow'></span>"); 3823 container.addClass("twentytwenty-container"); 3824 beforeImg.addClass("twentytwenty-before"); 3825 afterImg.addClass("twentytwenty-after"); 3826 3827 var calcOffset = function(dimensionPct) { 3828 var w = beforeImg.width(); 3829 var h = beforeImg.height(); 3830 return { 3831 w: w+"px", 3832 h: h+"px", 3833 cw: (dimensionPct*w)+"px", 3834 ch: (dimensionPct*h)+"px" 3835 }; 3836 }; 3837 3838 var adjustContainer = function(offset) { 3839 if (sliderOrientation === 'vertical') { 3840 beforeImg.css("clip", "rect(0,"+offset.w+","+offset.ch+",0)"); 3841 afterImg.css("clip", "rect("+offset.ch+","+offset.w+","+offset.h+",0)"); 3842 } 3843 else { 3844 beforeImg.css("clip", "rect(0,"+offset.cw+","+offset.h+",0)"); 3845 afterImg.css("clip", "rect(0,"+offset.w+","+offset.h+","+offset.cw+")"); 3846 } 3847 container.css("height", offset.h); 3848 }; 3849 3850 var adjustSlider = function(pct) { 3851 var offset = calcOffset(pct); 3852 slider.css((sliderOrientation==="vertical") ? "top" : "left", (sliderOrientation==="vertical") ? offset.ch : offset.cw); 3853 adjustContainer(offset); 3854 }; 3855 3856 // Return the number specified or the min/max number if it outside the range given. 3857 var minMaxNumber = function(num, min, max) { 3858 return Math.max(min, Math.min(max, num)); 3859 }; 3860 3861 // Calculate the slider percentage based on the position. 3862 var getSliderPercentage = function(positionX, positionY) { 3863 var sliderPercentage = (sliderOrientation === 'vertical') ? 3864 (positionY-offsetY)/imgHeight :
3865 (positionX-offsetX)/imgWidth; 3866 3867 return minMaxNumber(sliderPercentage, 0, 1); 3868 }; 3869 3870 3871 $(window).on("resize.twentytwenty", function(e) { 3872 adjustSlider(sliderPct); 3873 }); 3874 3875 var offsetX = 0; 3876 var offsetY = 0; 3877 var imgWidth = 0; 3878 var imgHeight = 0; 3879 var onMoveStart = function(e) { 3880 if (((e.distX > e.distY && e.distX < -e.distY) || (e.distX < e.distY && e.distX > -e.distY)) && sliderOrientation !== 'vertical') { 3881 e.preventDefault(); 3882 } 3883 else if (((e.distX < e.distY && e.distX < -e.distY) || (e.distX > e.distY && e.distX > -e.distY)) && sliderOrientation === 'vertical') { 3884 e.preventDefault(); 3885 } 3886 container.addClass("active"); 3887 offsetX = container.offset().left; 3888 offsetY = container.offset().top; 3889 imgWidth = beforeImg.width(); 3890 imgHeight = beforeImg.height(); 3891 }; 3892 var onMove = function(e) { 3893 if (container.hasClass("active")) { 3894 sliderPct = getSliderPercentage(e.pageX, e.pageY); 3895 adjustSlider(sliderPct); 3896 } 3897 }; 3898 var onMoveEnd = function() { 3899 container.removeClass("active"); 3900 }; 3901 3902 var moveTarget = options.move_with_handle_only ? slider : container; 3903 moveTarget.on("movestart",onMoveStart); 3904 moveTarget.on("move",onMove); 3905 moveTarget.on("moveend",onMoveEnd); 3906 3907 if (options.move_slider_on_hover) { 3908 container.on("mouseenter", onMoveStart); 3909 container.on("mousemove", onMove); 3910 container.on("mouseleave", onMoveEnd); 3911 } 3912 3913 slider.on("touchmove", function(e) { 3914 e.preventDefault(); 3915 }); 3916 3917 container.find("img").on("mousedown", function(event) { 3918 event.preventDefault(); 3919 }); 3920 3921 if (options.click_to_move) { 3922 container.on('click', function(e) { 3923 offsetX = container.offset().left; 3924 offsetY = container.offset().top; 3925 imgWidth = beforeImg.width(); 3926 imgHeight = beforeImg.height(); 3927 3928 sliderPct = getSliderPercentage(e.pageX, e.pageY); 3929 adjustSlider(sliderPct); 3930 }); 3931 } 3932 3933 $(window).trigger("resize.twentytwenty"); 3934 }); 3935 }; 3936 3937})(jQuery); 3938!function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){"use strict";function b(a){if(a instanceof Date)return a;
vendor: 5,333 bytes, lines 3938-3940
3938if(String(a).match(g))return String(a).match(/^[0-9]*$/)&&(a=Number(a)),String(a).match(/\-/)&&(a=String(a).replace(/\-/g,"/")),new Date(a);throw new Error("Couldn't cast `"+a+"` to a date object.")}function c(a){var b=a.toString().replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1");return new RegExp(b)}function d(a){return function(b){var d=b.match(/%(-|!)?[A-Z]{1}(:[^;]+;)?/gi);if(d)for(var f=0,g=d.length;f<g;++f){var h=d[f].match(/%(-|!)?([a-zA-Z]{1})(:[^;]+;)?/),j=c(h[0]),k=h[1]||"",l=h[3]||"",m=null;h=h[2],i.hasOwnProperty(h)&&(m=i[h],m=Number(a[m])),null!==m&&("!"===k&&(m=e(l,m)),""===k&&m<10&&(m="0"+m.toString()),b=b.replace(j,m.toString()))}return b=b.replace(/%%/,"%")}}function e(a,b){var c="s",d="";return a&&(a=a.replace(/(:|;|\s)/gi,"").split(/\,/),1===a.length?c=a[0]:(d=a[0],c=a[1])),Math.abs(b)>1?c:d}var f=[],g=[],h={precision:100,elapse:!1,defer:!1};g.push(/^[0-9]*$/.source),g.push(/([0-9]{1,2}\/){2}[0-9]{4}( [0-9]{1,2}(:[0-9]{2}){2})?/.source),g.push(/[0-9]{4}([\/\-][0-9]{1,2}){2}( [0-9]{1,2}(:[0-9]{2}){2})?/.source),g=new RegExp(g.join("|"));var i={Y:"years",m:"months",n:"daysToMonth",d:"daysToWeek",w:"weeks",W:"weeksToMonth",H:"hours",M:"minutes",S:"seconds",D:"totalDays",I:"totalHours",N:"totalMinutes",T:"totalSeconds"},j=function(b,c,d){this.el=b,this.$el=a(b),this.interval=null,this.offset={},this.options=a.extend({},h),this.instanceNumber=f.length,f.push(this),this.$el.data("countdown-instance",this.instanceNumber),d&&("function"==typeof d?(this.$el.on("update.countdown",d),this.$el.on("stoped.countdown",d),this.$el.on("finish.countdown",d)):this.options=a.extend({},h,d)),this.setFinalDate(c),this.options.defer===!1&&this.start()};a.extend(j.prototype,{start:function(){null!==this.interval&&clearInterval(this.interval);var a=this;this.update(),this.interval=setInterval(function(){a.update.call(a)},this.options.precision)},stop:function(){clearInterval(this.interval),this.interval=null,this.dispatchEvent("stoped")},toggle:function(){this.interval?this.stop():this.start()},pause:function(){this.stop()},resume:function(){this.start()},remove:function(){this.stop.call(this),f[this.instanceNumber]=null,delete this.$el.data().countdownInstance},setFinalDate:function(a){this.finalDate=b(a)},update:function(){if(0===this.$el.closest("html").length)return void this.remove();var b,c=void 0!==a._data(this.el,"events"),d=new Date;b=this.finalDate.getTime()-d.getTime(),b=Math.ceil(b/1e3),b=!this.options.elapse&&b<0?0:Math.abs(b),this.totalSecsLeft!==b&&c&&(this.totalSecsLeft=b,this.elapsed=d>=this.finalDate,this.offset={seconds:this.totalSecsLeft%60,minutes:Math.floor(this.totalSecsLeft/60)%60,hours:Math.floor(this.totalSecsLeft/60/60)%24,days:Math.floor(this.totalSecsLeft/60/60/24)%7,daysToWeek:Math.floor(this.totalSecsLeft/60/60/24)%7,daysToMonth:Math.floor(this.totalSecsLeft/60/60/24%30.4368),weeks:Math.floor(this.totalSecsLeft/60/60/24/7),weeksToMonth:Math.floor(this.totalSecsLeft/60/60/24/7)%4,months:Math.floor(this.totalSecsLeft/60/60/24/30.4368),years:Math.abs(this.finalDate.getFullYear()-d.getFullYear()),totalDays:Math.floor(this.totalSecsLeft/60/60/24),totalHours:Math.floor(this.totalSecsLeft/60/60),totalMinutes:Math.floor(this.totalSecsLeft/60),totalSeconds:this.totalSecsLeft},this.options.elapse||0!==this.totalSecsLeft?this.dispatchEvent("update"):(this.stop(),this.dispatchEvent("finish")))},dispatchEvent:function(b){var c=a.Event(b+".countdown");c.finalDate=this.finalDate,c.elapsed=this.elapsed,c.offset=a.extend({},this.offset),c.strftime=d(this.offset),this.$el.trigger(c)}}),a.fn.countdown=function(){var b=Array.prototype.slice.call(arguments,0);return this.each(function(){var c=a(this).data("countdown-instance");if(void 0!==c){var d=f[c],e=b[0];j.prototype.hasOwnProperty(e)?d[e].apply(d,b.slice(1)):null===String(e).match(/^[$A-Z_][0-9A-Z_$]*$/i)?(d.setFinalDate.call(d,e),d.start()):a.error("Method %s does not exist on jQuery.countdown".replace(/\%s/gi,e))}else new j(this,b[0],b[1])})}});/*! lazysizes - v5.3.0 */ 3939 3940!function(e){var t=function(u,D,f){"use strict";var k,H;if(function(){var e;var t={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",fastLoadedClass:"ls-is-cached",iframeLoadMode:0,srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:true,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:true,ricTimeout:0,throttleDelay:125};H=u.lazySizesConfig||u.lazysizesConfig||{};for(e in t){if(!(e in H)){H[e]=t[e]}}}(),!D||!D.getElementsByClassName){return{init:function(){},cfg:H,noSupport:true}}var O=D.documentElement,i=u.HTMLPictureElement,P="addEventListener",$="getAttribute",q=u[P].bind(u),I=u.setTimeout,U=u.requestAnimationFrame||I,o=u.requestIdleCallback,j=/^picture$/i,r=["load","error","lazyincluded","_lazyloaded"],a={},G=Array.prototype.forEach,J=function(e,t){if(!a[t]){a[t]=new RegExp("(\\s|^)"+t+"(\\s|$)")}return a[t].test(e[$]("class")||"")&&a[t]},K=function(e,t){if(!J(e,t)){e.setAttribute("class",(e[$]("class")||"").trim()+" "+t)}},Q=function(e,t){var a;if(a=J(e,t)){e.setAttribute("class",(e[$]("class")||"").replace(a," "))}},V=function(t,a,e){var i=e?P:"removeEventListener";if(e){V(t,a)}r.forEach(function(e){t[i](e,a)})},X=function(e,t,a,i,r){var n=D.createEvent("Event");
vendor: 5,660 bytes, line 3940
3940if(!a){a={}}a.instance=k;n.initEvent(t,!i,!r);n.detail=a;e.dispatchEvent(n);return n},Y=function(e,t){var a;if(!i&&(a=u.picturefill||H.pf)){if(t&&t.src&&!e[$]("srcset")){e.setAttribute("srcset",t.src)}a({reevaluate:true,elements:[e]})}else if(t&&t.src){e.src=t.src}},Z=function(e,t){return(getComputedStyle(e,null)||{})[t]},s=function(e,t,a){a=a||e.offsetWidth;while(a<H.minSize&&t&&!e._lazysizesWidth){a=t.offsetWidth;t=t.parentNode}return a},ee=function(){var a,i;var t=[];var r=[];var n=t;var s=function(){var e=n;n=t.length?r:t;a=true;i=false;while(e.length){e.shift()()}a=false};var e=function(e,t){if(a&&!t){e.apply(this,arguments)}else{n.push(e);if(!i){i=true;(D.hidden?I:U)(s)}}};e._lsFlush=s;return e}(),te=function(a,e){return e?function(){ee(a)}:function(){var e=this;var t=arguments;ee(function(){a.apply(e,t)})}},ae=function(e){var a;var i=0;var r=H.throttleDelay;var n=H.ricTimeout;var t=function(){a=false;i=f.now();e()};var s=o&&n>49?function(){o(t,{timeout:n});if(n!==H.ricTimeout){n=H.ricTimeout}}:te(function(){I(t)},true);return function(e){var t;if(e=e===true){n=33}if(a){return}a=true;t=r-(f.now()-i);if(t<0){t=0}if(e||t<9){s()}else{I(s,t)}}},ie=function(e){var t,a;var i=99;var r=function(){t=null;e()};var n=function(){var e=f.now()-a;if(e<i){I(n,i-e)}else{(o||r)(r)}};return function(){a=f.now();if(!t){t=I(n,i)}}},e=function(){var v,m,c,h,e;var y,z,g,p,C,b,A;var n=/^img$/i;var d=/^iframe$/i;var E="onscroll"in u&&!/(gle|ing)bot/.test(navigator.userAgent);var _=0;var w=0;var M=0;var N=-1;var L=function(e){M--;if(!e||M<0||!e.target){M=0}};var x=function(e){if(A==null){A=Z(D.body,"visibility")=="hidden"}return A||!(Z(e.parentNode,"visibility")=="hidden"&&Z(e,"visibility")=="hidden")};var W=function(e,t){var a;var i=e;var r=x(e);g-=t;b+=t;p-=t;C+=t;while(r&&(i=i.offsetParent)&&i!=D.body&&i!=O){r=(Z(i,"opacity")||1)>0;if(r&&Z(i,"overflow")!="visible"){a=i.getBoundingClientRect();r=C>a.left&&p<a.right&&b>a.top-1&&g<a.bottom+1}}return r};var t=function(){var e,t,a,i,r,n,s,o,l,u,f,c;var d=k.elements;if((h=H.loadMode)&&M<8&&(e=d.length)){t=0;N++;for(;t<e;t++){if(!d[t]||d[t]._lazyRace){continue}if(!E||k.prematureUnveil&&k.prematureUnveil(d[t])){R(d[t]);continue}if(!(o=d[t][$]("data-expand"))||!(n=o*1)){n=w}if(!u){u=!H.expand||H.expand<1?O.clientHeight>500&&O.clientWidth>500?500:370:H.expand;k._defEx=u;f=u*H.expFactor;c=H.hFac;A=null;if(w<f&&M<1&&N>2&&h>2&&!D.hidden){w=f;N=0}else if(h>1&&N>1&&M<6){w=u}else{w=_}}if(l!==n){y=innerWidth+n*c;z=innerHeight+n;s=n*-1;l=n}a=d[t].getBoundingClientRect();if((b=a.bottom)>=s&&(g=a.top)<=z&&(C=a.right)>=s*c&&(p=a.left)<=y&&(b||C||p||g)&&(H.loadHidden||x(d[t]))&&(m&&M<3&&!o&&(h<3||N<4)||W(d[t],n))){R(d[t]);r=true;if(M>9){break}}else if(!r&&m&&!i&&M<4&&N<4&&h>2&&(v[0]||H.preloadAfterLoad)&&(v[0]||!o&&(b||C||p||g||d[t][$](H.sizesAttr)!="auto"))){i=v[0]||d[t]}}if(i&&!r){R(i)}}};var a=ae(t);var S=function(e){var t=e.target;if(t._lazyCache){delete t._lazyCache;return}L(e);K(t,H.loadedClass);Q(t,H.loadingClass);V(t,B);X(t,"lazyloaded")};var i=te(S);var B=function(e){i({target:e.target})};var T=function(e,t){var a=e.getAttribute("data-load-mode")||H.iframeLoadMode;if(a==0){e.contentWindow.location.replace(t)}else if(a==1){e.src=t}};var F=function(e){var t;var a=e[$](H.srcsetAttr);if(t=H.customMedia[e[$]("data-media")||e[$]("media")]){e.setAttribute("media",t)}if(a){e.setAttribute("srcset",a)}};var s=te(function(t,e,a,i,r){var n,s,o,l,u,f;if(!(u=X(t,"lazybeforeunveil",e)).defaultPrevented){if(i){if(a){K(t,H.autosizesClass)}else{t.setAttribute("sizes",i)}}s=t[$](H.srcsetAttr);n=t[$](H.srcAttr);if(r){o=t.parentNode;l=o&&j.test(o.nodeName||"")}f=e.firesLoad||"src"in t&&(s||n||l);u={target:t};K(t,H.loadingClass);if(f){clearTimeout(c);c=I(L,2500);V(t,B,true)}if(l){G.call(o.getElementsByTagName("source"),F)}if(s){t.setAttribute("srcset",s)}else if(n&&!l){if(d.test(t.nodeName)){T(t,n)}else{t.src=n}}if(r&&(s||l)){Y(t,{src:n})}}if(t._lazyRace){delete t._lazyRace}Q(t,H.lazyClass);ee(function(){var e=t.complete&&t.naturalWidth>1;if(!f||e){if(e){K(t,H.fastLoadedClass)}S(u);t._lazyCache=true;I(function(){if("_lazyCache"in t){delete t._lazyCache}},9)}if(t.loading=="lazy"){M--}},true)});var R=function(e){if(e._lazyRace){return}var t;var a=n.test(e.nodeName);var i=a&&(e[$](H.sizesAttr)||e[$]("sizes"));var r=i=="auto";if((r||!m)&&a&&(e[$]("src")||e.srcset)&&!e.complete&&!J(e,H.errorClass)&&J(e,H.lazyClass)){return}t=X(e,"lazyunveilread").detail;if(r){re.updateElem(e,true,e.offsetWidth)}e._lazyRace=true;M++;s(e,t,r,i,a)};var r=ie(function(){H.loadMode=3;a()});var o=function(){if(H.loadMode==3){H.loadMode=2}r()};var l=function(){if(m){return}if(f.now()-e<999){I(l,999);return}m=true;H.loadMode=3;a();q("scroll",o,true)};return{_:function(){e=f.now();k.elements=D.getElementsByClassName(H.lazyClass);v=D.getElementsByClassName(H.lazyClass+" "+H.preloadClass);q("scroll",a,true);q("resize",a,true);q("pageshow",function(e){if(e.persisted){var t=D.querySelectorAll("."+H.loadingClass);if(t.length&&t.forEach){U(function(){t.forEach(function(e){if(e.complete){R(e)}})})}}});if(u.MutationObserver){new MutationObserver(a).observe(O,{childList:true,subtree:true,attributes:true})}else{O[P]("DOMNodeInserted",a,true);O[P]("DOMAttrModified",a,true);setInterval(a,999)}q("hashchange",a,true);["focus","mouseover","click","load","transitionend","animationend"].forEach(function(e){D[P](e,a,true)});if(/d$|^c/.test(D.readyState)){l()}else{q("load",l);D[P]("DOMContentLoaded",a);I(l,2e4)}if(k.elements.length){t();ee._lsFlush()}else{a()}},checkElems:a,unveil:R,_aLSL:o}}(),re=function(){var a;var n=te(function(e,t,a,i){var r,n,s;e._lazysizesWidth=i;i+="px";e.setAttribute("sizes",i);
vendor: 869 bytes, line 3940
3940if(j.test(t.nodeName||"")){r=t.getElementsByTagName("source");for(n=0,s=r.length;n<s;n++){r[n].setAttribute("sizes",i)}}if(!a.detail.dataAttr){Y(e,a.detail)}});var i=function(e,t,a){var i;var r=e.parentNode;if(r){a=s(e,r,a);i=X(e,"lazybeforesizes",{width:a,dataAttr:!!t});if(!i.defaultPrevented){a=i.detail.width;if(a&&a!==e._lazysizesWidth){n(e,r,i,a)}}}};var e=function(){var e;var t=a.length;if(t){e=0;for(;e<t;e++){i(a[e])}}};var t=ie(e);return{_:function(){a=D.getElementsByClassName(H.autosizesClass);q("resize",t)},checkElems:t,updateElem:i}}(),t=function(){if(!t.i&&D.getElementsByClassName){t.i=true;re._();e._()}};return I(function(){H.init&&t()}),k={cfg:H,autoSizer:re,loader:e,init:t,uP:Y,aC:K,rC:Q,hC:J,fire:X,gW:s,rAF:ee}}(e,e.document,Date);e.lazySizes=t,"object"==typeof module&&module.exports&&(module.exports=t)}("undefined"!=typeof window?window:{});
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.