silverstripe-webpack/app/client/dist/js/app.js

1 line
79 KiB
JavaScript

!function(){var t={103:function(t,o,a){var i={"./bg.png":239,"./logo.png":142,"./logo.svg":219,"./original.png":410,"./original2.png":417,"./photo1.png":272,"./photo2.jpg":919,"./photo3.svg":420,"app/client/src/img/bg.png":239,"app/client/src/img/logo.png":142,"app/client/src/img/logo.svg":219,"app/client/src/img/original.png":410,"app/client/src/img/original2.png":417,"app/client/src/img/photo1.png":272,"app/client/src/img/photo2.jpg":919,"app/client/src/img/photo3.svg":420,"bg.png":239,"img/bg.png":239,"img/logo.png":142,"img/logo.svg":219,"img/original.png":410,"img/original2.png":417,"img/photo1.png":272,"img/photo2.jpg":919,"img/photo3.svg":420,"logo.png":142,"logo.svg":219,"original.png":410,"original2.png":417,"photo1.png":272,"photo2.jpg":919,"photo3.svg":420};function webpackContext(t){var o=webpackContextResolve(t);return a(o)}function webpackContextResolve(t){if(!a.o(i,t)){var o=new Error("Cannot find module '"+t+"'");throw o.code="MODULE_NOT_FOUND",o}return i[t]}webpackContext.keys=function webpackContextKeys(){return Object.keys(i)},webpackContext.resolve=webpackContextResolve,t.exports=webpackContext,webpackContext.id=103},861:function(t){"use strict";t.exports=function makeYoutubeEmbed(t){if("string"===typeof t){var o=function getId(t){var o=t.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/);if(o&&11==o[2].length)return o[2]}(t);return o?"//www.youtube.com/embed/"+o:void 0}}},239:function(t){t.exports="../img/bg.png"},142:function(t){t.exports="../img/logo.png"},219:function(t){t.exports="../img/logo.svg"},410:function(t){t.exports="../img/original.png"},417:function(t){t.exports="../img/original2.png"},272:function(t){t.exports="../img/photo1.png"},919:function(t){t.exports="../img/photo2.jpg"},420:function(t){t.exports="../img/photo3.svg"},499:function(t){function webpackEmptyContext(t){var o=new Error("Cannot find module '"+t+"'");throw o.code="MODULE_NOT_FOUND",o}webpackEmptyContext.keys=function(){return[]},webpackEmptyContext.resolve=webpackEmptyContext,webpackEmptyContext.id=499,t.exports=webpackEmptyContext}},o={};function __webpack_require__(a){var i=o[a];if(void 0!==i)return i.exports;var c=o[a]={exports:{}};return t[a](c,c.exports,__webpack_require__),c.exports}__webpack_require__.o=function(t,o){return Object.prototype.hasOwnProperty.call(t,o)},function(){"use strict";var t={APOLLO_ERROR:"apollo-error",AJAX:"ajax-load",AJAXMAIN:"ajax-main-load",MAININIT:"main-init",TABHIDDEN:"tab-hidden",TABFOCUSED:"tab-focused",OFFLINE:"offline",ONLINE:"online",BACKONLINE:"back-online",TOUCHENABLE:"touch-enabled",TOUCHDISABLED:"touch-disabled",DOMLOADED:"DOMContentLoaded",LOADED:"load",SWIPELEFT:"swipeleft panleft",SWIPERIGHT:"swiperight panright",ALLERTAPPEARED:"alert-appeared",ALERTREMOVED:"alert-removed",LODEDANDREADY:"load-ready",LAZYIMAGEREADY:"image-lazy-bg-loaded",LAZYIMAGESREADY:"images-lazy-loaded",MAPLOADED:"map-loaded",MAPAPILOADED:"map-api-loaded",MAPMARKERCLICK:"map-marker-click",MAPPOPUPCLOSE:"map-popup-close",SCROLL:"scroll",RESIZE:"resize",CAROUSEL_READY:"bs.carousel.ready",SET_TARGET_UPDATE:"set-target-update",RESTORE_FIELD:"restore-field",FORM_INIT_BASICS:"form-basics",FORM_INIT_STEPPED:"form-init-stepped",FORM_INIT_VALIDATE:"form-init-validate",FORM_INIT_VALIDATE_FIELD:"form-init-validate-field",FORM_INIT_STORAGE:"form-init-storage",FORM_VALIDATION_FAILED:"form-validation-failed",FORM_STEPPED_NEW_STEP:"form-new-step",FORM_STEPPED_FIRST_STEP:"form-first-step",FORM_STEPPED_LAST_STEP:"form-last-step",FORM_FIELDS:"input,textarea,select"},o=(function(o){var a="_main.visibility",i=document,c=i.body;i.addEventListener("visibilitychange",(function(){"hidden"===i.visibilityState?(console.log("".concat(a,": Tab: hidden")),c.classList.add("is-hidden"),c.classList.remove("is-focused"),o.dispatchEvent(new Event(t.TABHIDDEN))):(console.log("".concat(a,": Tab: focused")),c.classList.add("is-focused"),c.classList.remove("is-hidden"),o.dispatchEvent(new Event(t.TABFOCUSED)))}))}(window),function(o){var a,i,c="_main.touch",l=document,u=l.body,d=function SET_TOUCH_SCREEN(l,d){i||d===a||(l?(console.log("".concat(c,": Touch screen enabled")),u.classList.add("is-touch"),u.classList.remove("is-mouse"),o.dispatchEvent(new Event(t.TOUCHENABLE))):(console.log("".concat(c,": Touch screen disabled")),u.classList.add("is-mouse"),u.classList.remove("is-touch"),o.dispatchEvent(new Event(t.TOUCHDISABLED))),a=d,i||(i=setTimeout((function(){clearTimeout(i),i=null}),500)))};d("ontouchstart"in o||navigator.MaxTouchPoints>0||navigator.msMaxTouchPoints>0||o.matchMedia("(hover: none)").matches,"init"),l.addEventListener("touchend",(function(t){var o=!1;"click"!==t.type&&(o=!0),d(o,"click-touchend")})),l.addEventListener("click",(function(t){var o=!1;"click"!==t.type&&(o=!0),d(o,"click-touchend")}))}(window),{ENVS:["xs","sm","md","lg","xl","xxl","xxxl"]});function _toConsumableArray(t){return function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}(t)||function _iterableToArray(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function _unsupportedIterableToArray(t,o){if(!t)return;if("string"===typeof t)return _arrayLikeToArray(t,o);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return _arrayLikeToArray(t,o)}(t)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(t,o){(null==o||o>t.length)&&(o=t.length);for(var a=0,i=new Array(o);a<o;a++)i[a]=t[a];return i}!function(a){var i=document,c=i.body,l=function detectCSSScreenSize(){var t,l=i.createElement("div");l.className="env-test",c.appendChild(l);var u=_toConsumableArray(o.ENVS).reverse(),d=u.shift();(t=c.classList).remove.apply(t,_toConsumableArray(u));for(var p=0;p<u.length;++p){var y=u[p];if(l.classList.add("d-".concat(y,"-none")),"none"===a.getComputedStyle(l).display){d=y,c.classList.add("".concat(d));break}}var v=!0;return a.innerWidth>a.innerHeight?(c.classList.add("landscape"),c.classList.remove("portrait")):(v=!1,c.classList.add("portrait"),c.classList.remove("landscape")),console.log("".concat("_main.css-screen-size",": screen size detected ").concat(d," | landscape ").concat(v)),c.removeChild(l),d};a.addEventListener("".concat(t.LOADED),l),a.addEventListener("".concat(t.RESIZE),l)}(window);function _defineProperties(t,o){for(var a=0;a<o.length;a++){var i=o[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var a="_main.loading-spinner",i=document.getElementById("PageLoading"),c=function(){function SpinnerUI(){!function _classCallCheck(t,o){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}(this,SpinnerUI)}return function _createClass(t,o,a){return o&&_defineProperties(t.prototype,o),a&&_defineProperties(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t}(SpinnerUI,null,[{key:"show",value:function show(){console.log("".concat(a,": show")),i.classList.remove("d-none")}},{key:"hide",value:function hide(){console.log("".concat(a,": hide")),i.classList.add("d-none")}}]),SpinnerUI}();function main_defineProperties(t,o){for(var a=0;a<o.length;a++){var i=o[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}!function(a){var i=document.body;console.info("%cUI Kit ".concat("@a2nt/ss-bootstrap-ui-webpack-boilerplate-react"," ").concat("4.7.5"),"color:yellow;font-size:14px"),console.info("%c".concat("@a2nt/meta-lightbox-js"," ").concat("4.2.3"),"color:yellow;font-size:12px"),console.info("%chttps://github.com/a2nt/webpack-bootstrap-ui-kit by ".concat("Tony Air <tony@twma.pro>"),"color:yellow;font-size:10px"),console.info("%cENV: ".concat("production"),"color:green;font-size:10px"),console.groupCollapsed("Events"),Object.keys(t).forEach((function(o){console.info("".concat(o,": ").concat(t[o]))})),console.groupEnd("Events"),console.groupCollapsed("Consts"),Object.keys(o).forEach((function(t){console.info("".concat(t,": ").concat(o[t]))})),console.groupEnd("Events"),console.groupCollapsed("Init"),console.time("init");var l=function(){function MainUI(){!function main_classCallCheck(t,o){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}(this,MainUI)}return function main_createClass(t,o,a){return o&&main_defineProperties(t.prototype,o),a&&main_defineProperties(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t}(MainUI,null,[{key:"init",value:function init(){a.history.replaceState({landing:a.location.href},document.title,a.location.href),this.loaded()}},{key:"loaded",value:function loaded(){console.log("".concat("_main",": loaded"))}}]),MainUI}(),u=function documentInit(){l.init(),i.classList.add("loaded"),c.hide(),console.groupEnd("init"),console.timeEnd("init"),a.addEventListener("".concat(t.LOADED),(function(o){a.dispatchEvent(new Event(t.LODEDANDREADY))}))};"loading"===document.readyState?document.addEventListener("".concat(t.DOMLOADED),u):u(),a.addEventListener("".concat(t.AJAX),(function(){l.loaded()})),a.MainUI=l}(window);var l="ajax-load",u="load-ready";function window_toConsumableArray(t){return function window_arrayWithoutHoles(t){if(Array.isArray(t))return window_arrayLikeToArray(t)}(t)||function window_iterableToArray(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function window_unsupportedIterableToArray(t,o){if(!t)return;if("string"===typeof t)return window_arrayLikeToArray(t,o);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return window_arrayLikeToArray(t,o)}(t)||function window_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function window_arrayLikeToArray(t,o){(null==o||o>t.length)&&(o=t.length);for(var a=0,i=new Array(o);a<o;a++)i[a]=t[a];return i}function window_classCallCheck(t,o){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}function window_defineProperties(t,o){for(var a=0;a<o.length;a++){var i=o[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function _defineProperty(t,o,a){return o in t?Object.defineProperty(t,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[o]=a,t}var d=window,p=function(){function MetaWindow(){var t=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{shown:!1},a=arguments.length>1?arguments[1]:void 0;window_classCallCheck(this,MetaWindow),_defineProperty(this,"state",{content:"",type:["empty"],shown:!1,loading:!1,error:!1,embed:!1,collections:[],current:null,target:null,extraClass:null}),_defineProperty(this,"show",(function(){var o=t;console.log("".concat(o.name,": show")),o.setState({shown:!0}),d.dispatchEvent(new Event("{ui.name}.show"))})),_defineProperty(this,"hide",(function(){var o=t;console.log("".concat(o.name,": hide")),o.setState({shown:!1}),d.dispatchEvent(new Event("{ui.name}.hide"))})),_defineProperty(this,"next",(function(){var o=t,a=o.state.current.getAttribute("data-gallery"),i=o._currIndex();i<o.state.collections[a].length-1?i++:i=0,o.state.collections[a][i].click(),console.log("".concat(o.name,": next")),d.dispatchEvent(new Event("{ui.name}.next"))})),_defineProperty(this,"prev",(function(){var o=t,a=o.state.current.getAttribute("data-gallery"),i=o._currIndex();i>0?i--:i=o.state.collections[a].length-1,o.state.collections[a][i].click(),console.log("".concat(o.name,": prev")),d.dispatchEvent(new Event("{ui.name}.prev"))})),_defineProperty(this,"reset",(function(){t.setState({content:"",type:["empty"],shown:!1,loading:!1,error:!1,embed:!1})})),_defineProperty(this,"load",(function(o){var a=t;a.reset(),a.setState({loading:!0}),a.show(),window.fetch(o).then((function(t){var i=t.headers.get("content-type");console.log(t),console.log("".concat(a.name,": response content-type: ").concat(i));switch(i){case"image/jpeg":case"image/png":case"image/svg+xml":case"image/bmp":case"image/gif":case"image/tiff":case"image/webp":case"image/jpg":case"image/svg":t.arrayBuffer().then((function(t){a.setContent('<img src="data:'.concat(i,";base64,").concat(a._imageEncode(t),'" />'),"meta-".concat(a.name,"--image"))}));break;case"application/json":case"application/ld+json":case"application/json; charset=UTF-8":a.setContent("".concat((!1).Content),["meta-".concat(a.name,"--text"),"meta-".concat(a.name,"--html"),"meta-".concat(a.name,"--json")]);break;case"video/mp4":a.setContent('<video controls autoplay><source src="'.concat(o,'" type="video/mp4">Your browser does not support the video tag.</video>'),["meta-".concat(a.name,"--image"),"meta-".concat(a.name,"--video")]);break;case"text/html":case"application/xhtml+xml":case"text/plain":case"text/html; charset=UTF-8":case"application/xhtml+xml; charset=UTF-8":case"text/plain; charset=UTF-8":a.setContent(t.data,["meta-".concat(a.name,"--text"),"meta-".concat(a.name,"--html"),"meta-".concat(a.name,"--pajax")]);break;default:console.warn("".concat(a.name,": Unknown response content-type!"))}d.dispatchEvent(new Event("{ui.name}.loaded"))})).catch((function(t){console.error(t);var o="";if(t.response)switch(t.response.status){case 404:o="Not Found.";break;case 500:o="Server issue, please try again latter.";break;default:o="Something went wrong."}else t.request?o="No response received":console.warn("Error",t.message);a.setState({error:o}),d.dispatchEvent(new Event("{ui.name}.error"))})).then((function(){a.setState({loading:!1}),setTimeout((function(){a.state.current.classList.remove("loading")}),1e3)}))})),_defineProperty(this,"_currIndex",(function(){var o=t,a=o.state.current,i=a.getAttribute("data-gallery");return o.state.collections[i].indexOf(a)})),_defineProperty(this,"embed",(function(o){var a=t;console.log("".concat(a.name,": embed")),a.reset(),a.setState({embed:o,loading:!1,type:["meta-".concat(a.name,"--embed"),"meta-".concat(a.name,"--video")]}),a.show()})),_defineProperty(this,"setCaption",(function(o){var a=t;console.log("".concat(a.name,": setCaption")),a.state.caption=o})),_defineProperty(this,"addExtraClass",(function(o){var a=t;o&&o.length&&(console.log("".concat(a.name,": addExtraClass(").concat(o,")")),a.state.extraClass=o)})),_defineProperty(this,"getCaption",(function(){return t.state.caption})),_defineProperty(this,"_imageEncode",(function(t){var o="";return[].slice.call(new Uint8Array(t)).forEach((function(t){o+=String.fromCharCode(t)})),window.btoa(o)})),_defineProperty(this,"setContent",(function(o,a){var i=t;console.log("".concat(i.name,": setContent"));var c=a||["meta-".concat(i.name,"--html"),"meta-".concat(i.name,"--text")];Array.isArray(c)||(c=a.split(" ")),i.setState({content:o,type:c})})),_defineProperty(this,"getHtml",(function(){var o=t;if(o.state.embed){var a=__webpack_require__(861)(o.state.embed);o.state.content='<iframe width="600" height="380" src="'.concat(a,'" frameborder="0"></iframe>')}return o.state.content}));var i=this;switch(i.name=i.constructor.name,console.log("".concat(i.name,": init")),i.setState(o),a){case"show":case"hide":i.hide()}d.dispatchEvent(new Event("{ui.name}.init"))}return function window_createClass(t,o,a){return o&&window_defineProperties(t.prototype,o),a&&window_defineProperties(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t}(MetaWindow,[{key:"cleanLinks",value:function cleanLinks(){document.querySelectorAll('[data-toggle="lightbox"]').forEach((function(t){t.classList.remove("loading")}))}},{key:"collectGaleries",value:function collectGaleries(t){var o=this;t&&(o.state.collections[t]=[],document.querySelectorAll('[data-toggle="lightbox"][data-gallery="'.concat(t,'"]')).forEach((function(a){o.state.collections[t].push(a)})))}},{key:"toggle",value:function toggle(t){var o=this;o.cleanLinks();var a=t.getAttribute("href")||t.getAttribute("data-href"),i=t.getAttribute("data-embed");t.classList.add("loading"),o.state.current=t;var c=t.getAttribute("data-title");c&&o.setCaption(c),i?o.embed(a):o.load(a),o.addExtraClass(t.getAttribute("data-lightbox-class"))}},{key:"init",value:function init(){var t=this;console.log("MetaWindow: [links] init"),document.querySelectorAll('[data-toggle="lightbox"],[data-gallery]').forEach((function(o){var a=o.getAttribute("data-gallery");t.collectGaleries(a),o.addEventListener("click",(function(o){o.preventDefault(),console.log("MetaWindow: [link] click");var a=o.currentTarget;t.toggle(a)}))}))}},{key:"setState",value:function setState(t){var o=this;o.state=Object.assign({},o.state,t),o.render()}},{key:"render",value:function render(){var t,o=this,a=o.name,i=o.state.current;o.state.target.innerHTML="";var c=document.createElement("div");c.classList.add("meta-".concat(a)),(t=c.classList).add.apply(t,window_toConsumableArray(o.state.type)),o.state.target.append(c);var l=document.createElement("div");l.classList.add("meta-".concat(a,"-overlay")),o.state.shown&&l.classList.add("meta-".concat(a,"-overlay--open")),o.state.loading&&l.classList.add("meta-".concat(a,"-overlay--loading")),o.state.error&&l.classList.add("meta-".concat(a,"-overlay--error")),c.append(l);var u=document.createElement("div");u.classList.add("meta-content"),l.append(u);var d=document.createElement("button");if(d.classList.add("meta-nav","meta-close","a"),d.innerHTML='<i class="icon fa fas fa-times"></i> <span class="visually-hidden">Close</span>',d.addEventListener("click",(function(t){t.preventDefault(),o.hide()})),u.append(d),i){var p=i.getAttribute("data-gallery");if(p&&o.state.collections[p].length>1){var y=document.createElement("nav");y.classList.add("meta-navs");var v=document.createElement("button");v.classList.add("meta-nav","meta-nav-arrow","meta-nav-arrow__prev","a"),v.innerHTML='<i class="icon fa fas fa-chevron-left"></i> <span class="visually-hidden">Previous</span>',v.addEventListener("click",(function(t){t.preventDefault(),o.prev()})),y.append(v);var g=document.createElement("button");g.classList.add("meta-nav","meta-nav-arrow","meta-nav-arrow__next","a"),g.innerHTML='<i class="icon fa fas fa-chevron-right"></i> <span class="visually-hidden">Next</span>',g.addEventListener("click",(function(t){t.preventDefault(),o.next()})),y.append(g),u.append(y)}}var m=document.createElement("section");if(m.classList.add("meta-wrap","typography"),o.state.extraClass&&m.classList.add(o.state.extraClass),m.innerHTML=o.getHtml(),u.append(m),o.state.error){var h=document.createElement("div");h.classList.add("meta-error"),h.innerHTML=o.state.error,u.append(h)}else if(o.state.caption){var b=document.createElement("div");b.classList.add("meta-caption"),b.innerHTML=o.getCaption(),u.append(b)}return"undefined"!==typeof window.FontAwesome&&window.FontAwesome.dom.i2svg(),o}}]),MetaWindow}(),y=p,v=document.getElementById("MetaLightboxApp");v||console.log("MetaWindow: missing container #MetaLightboxApp");var g=function init(){var t=window.MetaWindow;"undefined"===typeof t&&(t=new y({target:v}),window.MetaWindow=t),t.init()};window.addEventListener("".concat(u),g),window.addEventListener("".concat(l),g),window.addEventListener("MetaWindow.initLinks",g);function _createForOfIteratorHelper(t,o){var a="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!a){if(Array.isArray(t)||(a=function util_unsupportedIterableToArray(t,o){if(!t)return;if("string"===typeof t)return util_arrayLikeToArray(t,o);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return util_arrayLikeToArray(t,o)}(t))||o&&t&&"number"===typeof t.length){a&&(t=a);var i=0,c=function F(){};return{s:c,n:function n(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function e(t){throw t},f:c}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,u=!0,d=!1;return{s:function s(){a=a.call(t)},n:function n(){var t=a.next();return u=t.done,t},e:function e(t){d=!0,l=t},f:function f(){try{u||null==a.return||a.return()}finally{if(d)throw l}}}}function util_arrayLikeToArray(t,o){(null==o||o>t.length)&&(o=t.length);for(var a=0,i=new Array(o);a<o;a++)i[a]=t[a];return i}function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}var m="transitionend",h=function toType(t){return null===t||void 0===t?"".concat(t):Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase()},b=function getSelector(t){var o=t.getAttribute("data-bs-target");if(!o||"#"===o){var a=t.getAttribute("href");if(!a||!a.includes("#")&&!a.startsWith("."))return null;a.includes("#")&&!a.startsWith("#")&&(a="#".concat(a.split("#")[1])),o=a&&"#"!==a?a.trim():null}return o},_=function getSelectorFromElement(t){var o=b(t);return o&&document.querySelector(o)?o:null},w=function getElementFromSelector(t){var o=b(t);return o?document.querySelector(o):null},E=function getTransitionDurationFromElement(t){if(!t)return 0;var o=window.getComputedStyle(t),a=o.transitionDuration,i=o.transitionDelay,c=Number.parseFloat(a),l=Number.parseFloat(i);return c||l?(a=a.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(a)+Number.parseFloat(i))):0},A=function triggerTransitionEnd(t){t.dispatchEvent(new Event(m))},O=function isElement(t){return!(!t||"object"!==_typeof(t))&&("undefined"!==typeof t.jquery&&(t=t[0]),"undefined"!==typeof t.nodeType)},L=function getElement(t){return O(t)?t.jquery?t[0]:t:"string"===typeof t&&t.length>0?document.querySelector(t):null},S=function isVisible(t){if(!O(t)||0===t.getClientRects().length)return!1;var o="visible"===getComputedStyle(t).getPropertyValue("visibility"),a=t.closest("details:not([open])");if(!a)return o;if(a!==t){var i=t.closest("summary");if(i&&i.parentNode!==a)return!1;if(null===i)return!1}return o},C=function reflow(t){t.offsetHeight},k=function getjQuery(){return window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null},T=[],P=function isRTL(){return"rtl"===document.documentElement.dir},I=function defineJQueryPlugin(t){!function onDOMContentLoaded(t){"loading"===document.readyState?(T.length||document.addEventListener("DOMContentLoaded",(function(){var t,o=_createForOfIteratorHelper(T);try{for(o.s();!(t=o.n()).done;)(0,t.value)()}catch(a){o.e(a)}finally{o.f()}})),T.push(t)):t()}((function(){var $=k();if($){var o=t.NAME,a=$.fn[o];$.fn[o]=t.jQueryInterface,$.fn[o].Constructor=t,$.fn[o].noConflict=function(){return $.fn[o]=a,t.jQueryInterface}}}))},j=function execute(t){"function"===typeof t&&t()},x=function executeAfterTransition(t,o){var a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(a){var i=5,c=E(o)+i,l=!1,u=function handler(a){a.target===o&&(l=!0,o.removeEventListener(m,handler),j(t))};o.addEventListener(m,u),setTimeout((function(){l||A(o)}),c)}else j(t)},D=function getNextActiveElement(t,o,a,i){var c=t.length,l=t.indexOf(o);return-1===l?!a&&i?t[c-1]:t[0]:(l+=a?1:-1,i&&(l=(l+c)%c),t[Math.max(0,Math.min(l,c-1))])};function _slicedToArray(t,o){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,o){var a=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==a)return;var i,c,l=[],u=!0,d=!1;try{for(a=a.call(t);!(u=(i=a.next()).done)&&(l.push(i.value),!o||l.length!==o);u=!0);}catch(p){d=!0,c=p}finally{try{u||null==a.return||a.return()}finally{if(d)throw c}}return l}(t,o)||event_handler_unsupportedIterableToArray(t,o)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function event_handler_createForOfIteratorHelper(t,o){var a="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!a){if(Array.isArray(t)||(a=event_handler_unsupportedIterableToArray(t))||o&&t&&"number"===typeof t.length){a&&(t=a);var i=0,c=function F(){};return{s:c,n:function n(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function e(t){throw t},f:c}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,u=!0,d=!1;return{s:function s(){a=a.call(t)},n:function n(){var t=a.next();return u=t.done,t},e:function e(t){d=!0,l=t},f:function f(){try{u||null==a.return||a.return()}finally{if(d)throw l}}}}function event_handler_unsupportedIterableToArray(t,o){if(t){if("string"===typeof t)return event_handler_arrayLikeToArray(t,o);var a=Object.prototype.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?event_handler_arrayLikeToArray(t,o):void 0}}function event_handler_arrayLikeToArray(t,o){(null==o||o>t.length)&&(o=t.length);for(var a=0,i=new Array(o);a<o;a++)i[a]=t[a];return i}var N=/[^.]*(?=\..*)\.|.*/,R=/\..*/,M=/::\d+$/,H={},U=1,q={mouseenter:"mouseover",mouseleave:"mouseout"},z=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 makeEventUid(t,o){return o&&"".concat(o,"::").concat(U++)||t.uidEvent||U++}function getElementEvents(t){var o=makeEventUid(t);return t.uidEvent=o,H[o]=H[o]||{},H[o]}function findHandler(t,o){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return Object.values(t).find((function(t){return t.callable===o&&t.delegationSelector===a}))}function normalizeParameters(t,o,a){var i="string"===typeof o,c=i?a:o||a,l=getTypeEvent(t);return z.has(l)||(l=t),[i,c,l]}function addHandler(t,o,a,i,c){if("string"===typeof o&&t){var l=_slicedToArray(normalizeParameters(o,a,i),3),u=l[0],d=l[1],p=l[2];if(o in q){d=function wrapFunction(t){return function(o){if(!o.relatedTarget||o.relatedTarget!==o.delegateTarget&&!o.delegateTarget.contains(o.relatedTarget))return t.call(this,o)}}(d)}var y=getElementEvents(t),v=y[p]||(y[p]={}),g=findHandler(v,d,u?a:null);if(g)g.oneOff=g.oneOff&&c;else{var m=makeEventUid(d,o.replace(N,"")),h=u?function bootstrapDelegationHandler(t,o,a){return function handler(i){for(var c=t.querySelectorAll(o),l=i.target;l&&l!==this;l=l.parentNode){var u,d=event_handler_createForOfIteratorHelper(c);try{for(d.s();!(u=d.n()).done;)if(u.value===l)return hydrateObj(i,{delegateTarget:l}),handler.oneOff&&B.off(t,i.type,o,a),a.apply(l,[i])}catch(p){d.e(p)}finally{d.f()}}}}(t,a,d):function bootstrapHandler(t,o){return function handler(a){return hydrateObj(a,{delegateTarget:t}),handler.oneOff&&B.off(t,a.type,o),o.apply(t,[a])}}(t,d);h.delegationSelector=u?a:null,h.callable=d,h.oneOff=c,h.uidEvent=m,v[m]=h,t.addEventListener(p,h,u)}}}function removeHandler(t,o,a,i,c){var l=findHandler(o[a],i,c);l&&(t.removeEventListener(a,l,Boolean(c)),delete o[a][l.uidEvent])}function removeNamespacedHandlers(t,o,a,i){for(var c=o[a]||{},l=0,u=Object.keys(c);l<u.length;l++){var d=u[l];if(d.includes(i)){var p=c[d];removeHandler(t,o,a,p.callable,p.delegationSelector)}}}function getTypeEvent(t){return t=t.replace(R,""),q[t]||t}var B={on:function on(t,o,a,i){addHandler(t,o,a,i,!1)},one:function one(t,o,a,i){addHandler(t,o,a,i,!0)},off:function off(t,o,a,i){if("string"===typeof o&&t){var c=_slicedToArray(normalizeParameters(o,a,i),3),l=c[0],u=c[1],d=c[2],p=d!==o,y=getElementEvents(t),v=y[d]||{},g=o.startsWith(".");if("undefined"===typeof u){if(g)for(var m=0,h=Object.keys(y);m<h.length;m++){removeNamespacedHandlers(t,y,h[m],o.slice(1))}for(var b=0,_=Object.keys(v);b<_.length;b++){var w=_[b],E=w.replace(M,"");if(!p||o.includes(E)){var A=v[w];removeHandler(t,y,d,A.callable,A.delegationSelector)}}}else{if(!Object.keys(v).length)return;removeHandler(t,y,d,u,l?a:null)}}},trigger:function trigger(t,o,a){if("string"!==typeof o||!t)return null;var $=k(),i=null,c=!0,l=!0,u=!1;o!==getTypeEvent(o)&&$&&(i=$.Event(o,a),$(t).trigger(i),c=!i.isPropagationStopped(),l=!i.isImmediatePropagationStopped(),u=i.isDefaultPrevented());var d=new Event(o,{bubbles:c,cancelable:!0});return d=hydrateObj(d,a),u&&d.preventDefault(),l&&t.dispatchEvent(d),d.defaultPrevented&&i&&i.preventDefault(),d}};function hydrateObj(t,o){for(var a=function _loop(){var o=_slicedToArray(c[i],2),a=o[0],l=o[1];try{t[a]=l}catch(u){Object.defineProperty(t,a,{configurable:!0,get:function get(){return l}})}},i=0,c=Object.entries(o||{});i<c.length;i++)a();return t}var W=B;function selector_engine_toConsumableArray(t){return function selector_engine_arrayWithoutHoles(t){if(Array.isArray(t))return selector_engine_arrayLikeToArray(t)}(t)||function selector_engine_iterableToArray(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function selector_engine_unsupportedIterableToArray(t,o){if(!t)return;if("string"===typeof t)return selector_engine_arrayLikeToArray(t,o);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return selector_engine_arrayLikeToArray(t,o)}(t)||function selector_engine_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function selector_engine_arrayLikeToArray(t,o){(null==o||o>t.length)&&(o=t.length);for(var a=0,i=new Array(o);a<o;a++)i[a]=t[a];return i}var Y={find:function find(t){var o,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement;return(o=[]).concat.apply(o,selector_engine_toConsumableArray(Element.prototype.querySelectorAll.call(a,t)))},findOne:function findOne(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement;return Element.prototype.querySelector.call(o,t)},children:function children(t,o){var a;return(a=[]).concat.apply(a,selector_engine_toConsumableArray(t.children)).filter((function(t){return t.matches(o)}))},parents:function parents(t,o){for(var parents=[],a=t.parentNode.closest(o);a;)parents.push(a),a=a.parentNode.closest(o);return parents},prev:function prev(t,o){for(var a=t.previousElementSibling;a;){if(a.matches(o))return[a];a=a.previousElementSibling}return[]},next:function next(t,o){for(var next=t.nextElementSibling;next;){if(next.matches(o))return[next];next=next.nextElementSibling}return[]},focusableChildren:function focusableChildren(t){var o=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((function(t){return"".concat(t,':not([tabindex^="-"])')})).join(",");return this.find(o,t).filter((function(t){return!function isDisabled(t){return!t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains("disabled")||("undefined"!==typeof t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled"))}(t)&&S(t)}))}},X=Y,K=new Map,V=function set(t,o,a){K.has(t)||K.set(t,new Map);var i=K.get(t);i.has(o)||0===i.size?i.set(o,a):console.error("Bootstrap doesn't allow more than one instance per element. Bound instance: ".concat(Array.from(i.keys())[0],"."))},J=function get(t,o){return K.has(t)&&K.get(t).get(o)||null},G=function remove(t,o){if(K.has(t)){var a=K.get(t);a.delete(o),0===a.size&&K.delete(t)}};function manipulator_createForOfIteratorHelper(t,o){var a="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!a){if(Array.isArray(t)||(a=function manipulator_unsupportedIterableToArray(t,o){if(!t)return;if("string"===typeof t)return manipulator_arrayLikeToArray(t,o);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return manipulator_arrayLikeToArray(t,o)}(t))||o&&t&&"number"===typeof t.length){a&&(t=a);var i=0,c=function F(){};return{s:c,n:function n(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function e(t){throw t},f:c}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,u=!0,d=!1;return{s:function s(){a=a.call(t)},n:function n(){var t=a.next();return u=t.done,t},e:function e(t){d=!0,l=t},f:function f(){try{u||null==a.return||a.return()}finally{if(d)throw l}}}}function manipulator_arrayLikeToArray(t,o){(null==o||o>t.length)&&(o=t.length);for(var a=0,i=new Array(o);a<o;a++)i[a]=t[a];return i}function normalizeData(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(o){return t}}function normalizeDataKey(t){return t.replace(/[A-Z]/g,(function(t){return"-".concat(t.toLowerCase())}))}var Q={setDataAttribute:function setDataAttribute(t,o,a){t.setAttribute("data-bs-".concat(normalizeDataKey(o)),a)},removeDataAttribute:function removeDataAttribute(t,o){t.removeAttribute("data-bs-".concat(normalizeDataKey(o)))},getDataAttributes:function getDataAttributes(t){if(!t)return{};var o,a={},i=Object.keys(t.dataset).filter((function(t){return t.startsWith("bs")&&!t.startsWith("bsConfig")})),c=manipulator_createForOfIteratorHelper(i);try{for(c.s();!(o=c.n()).done;){var l=o.value,u=l.replace(/^bs/,"");a[u=u.charAt(0).toLowerCase()+u.slice(1,u.length)]=normalizeData(t.dataset[l])}}catch(d){c.e(d)}finally{c.f()}return a},getDataAttribute:function getDataAttribute(t,o){return normalizeData(t.getAttribute("data-bs-".concat(normalizeDataKey(o))))}};function config_typeof(t){return config_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},config_typeof(t)}function ownKeys(t,o){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);o&&(i=i.filter((function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable}))),a.push.apply(a,i)}return a}function _objectSpread(t){for(var o=1;o<arguments.length;o++){var a=null!=arguments[o]?arguments[o]:{};o%2?ownKeys(Object(a),!0).forEach((function(o){config_defineProperty(t,o,a[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):ownKeys(Object(a)).forEach((function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(a,o))}))}return t}function config_defineProperty(t,o,a){return o in t?Object.defineProperty(t,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[o]=a,t}function config_defineProperties(t,o){for(var a=0;a<o.length;a++){var i=o[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var Z=function(){function Config(){!function config_classCallCheck(t,o){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}(this,Config)}return function config_createClass(t,o,a){return o&&config_defineProperties(t.prototype,o),a&&config_defineProperties(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t}(Config,[{key:"_getConfig",value:function _getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}},{key:"_configAfterMerge",value:function _configAfterMerge(t){return t}},{key:"_mergeConfigObj",value:function _mergeConfigObj(t,o){var a=O(o)?Q.getDataAttribute(o,"config"):{};return _objectSpread(_objectSpread(_objectSpread(_objectSpread({},this.constructor.Default),"object"===config_typeof(a)?a:{}),O(o)?Q.getDataAttributes(o):{}),"object"===config_typeof(t)?t:{})}},{key:"_typeCheckConfig",value:function _typeCheckConfig(t){for(var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.constructor.DefaultType,a=0,i=Object.keys(o);a<i.length;a++){var c=i[a],l=o[c],u=t[c],d=O(u)?"element":h(u);if(!new RegExp(l).test(d))throw new TypeError("".concat(this.constructor.NAME.toUpperCase(),': Option "').concat(c,'" provided type "').concat(d,'" but expected type "').concat(l,'".'))}}}],[{key:"Default",get:function get(){return{}}},{key:"DefaultType",get:function get(){return{}}},{key:"NAME",get:function get(){throw new Error('You have to implement the static method "NAME", for each component!')}}]),Config}(),ee=Z;function base_component_typeof(t){return base_component_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},base_component_typeof(t)}function base_component_createForOfIteratorHelper(t,o){var a="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!a){if(Array.isArray(t)||(a=function base_component_unsupportedIterableToArray(t,o){if(!t)return;if("string"===typeof t)return base_component_arrayLikeToArray(t,o);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return base_component_arrayLikeToArray(t,o)}(t))||o&&t&&"number"===typeof t.length){a&&(t=a);var i=0,c=function F(){};return{s:c,n:function n(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function e(t){throw t},f:c}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,u=!0,d=!1;return{s:function s(){a=a.call(t)},n:function n(){var t=a.next();return u=t.done,t},e:function e(t){d=!0,l=t},f:function f(){try{u||null==a.return||a.return()}finally{if(d)throw l}}}}function base_component_arrayLikeToArray(t,o){(null==o||o>t.length)&&(o=t.length);for(var a=0,i=new Array(o);a<o;a++)i[a]=t[a];return i}function base_component_defineProperties(t,o){for(var a=0;a<o.length;a++){var i=o[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function _setPrototypeOf(t,o){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(t,o){return t.__proto__=o,t},_setPrototypeOf(t,o)}function _createSuper(t){var o=function _isNativeReflectConstruct(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function _createSuperInternal(){var a,i=_getPrototypeOf(t);if(o){var c=_getPrototypeOf(this).constructor;a=Reflect.construct(i,arguments,c)}else a=i.apply(this,arguments);return _possibleConstructorReturn(this,a)}}function _possibleConstructorReturn(t,o){if(o&&("object"===base_component_typeof(o)||"function"===typeof o))return o;if(void 0!==o)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t)}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)},_getPrototypeOf(t)}var te=function(t){!function _inherits(t,o){if("function"!==typeof o&&null!==o)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(o&&o.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),o&&_setPrototypeOf(t,o)}(BaseComponent,t);var o=_createSuper(BaseComponent);function BaseComponent(t,a){var i;return function base_component_classCallCheck(t,o){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}(this,BaseComponent),i=o.call(this),(t=L(t))?(i._element=t,i._config=i._getConfig(a),V(i._element,i.constructor.DATA_KEY,_assertThisInitialized(i)),i):_possibleConstructorReturn(i)}return function base_component_createClass(t,o,a){return o&&base_component_defineProperties(t.prototype,o),a&&base_component_defineProperties(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t}(BaseComponent,[{key:"dispose",value:function dispose(){G(this._element,this.constructor.DATA_KEY),W.off(this._element,this.constructor.EVENT_KEY);var t,o=base_component_createForOfIteratorHelper(Object.getOwnPropertyNames(this));try{for(o.s();!(t=o.n()).done;){this[t.value]=null}}catch(a){o.e(a)}finally{o.f()}}},{key:"_queueCallback",value:function _queueCallback(t,o){var a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];x(t,o,a)}},{key:"_getConfig",value:function _getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}}],[{key:"getInstance",value:function getInstance(t){return J(L(t),this.DATA_KEY)}},{key:"getOrCreateInstance",value:function getOrCreateInstance(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.getInstance(t)||new this(t,"object"===base_component_typeof(o)?o:null)}},{key:"VERSION",get:function get(){return"5.2.1"}},{key:"DATA_KEY",get:function get(){return"bs.".concat(this.NAME)}},{key:"EVENT_KEY",get:function get(){return".".concat(this.DATA_KEY)}},{key:"eventName",value:function eventName(t){return"".concat(t).concat(this.EVENT_KEY)}}]),BaseComponent}(ee),ne=te;function collapse_typeof(t){return collapse_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},collapse_typeof(t)}function collapse_createForOfIteratorHelper(t,o){var a="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!a){if(Array.isArray(t)||(a=function collapse_unsupportedIterableToArray(t,o){if(!t)return;if("string"===typeof t)return collapse_arrayLikeToArray(t,o);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return collapse_arrayLikeToArray(t,o)}(t))||o&&t&&"number"===typeof t.length){a&&(t=a);var i=0,c=function F(){};return{s:c,n:function n(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function e(t){throw t},f:c}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,u=!0,d=!1;return{s:function s(){a=a.call(t)},n:function n(){var t=a.next();return u=t.done,t},e:function e(t){d=!0,l=t},f:function f(){try{u||null==a.return||a.return()}finally{if(d)throw l}}}}function collapse_arrayLikeToArray(t,o){(null==o||o>t.length)&&(o=t.length);for(var a=0,i=new Array(o);a<o;a++)i[a]=t[a];return i}function collapse_defineProperties(t,o){for(var a=0;a<o.length;a++){var i=o[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function collapse_setPrototypeOf(t,o){return collapse_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(t,o){return t.__proto__=o,t},collapse_setPrototypeOf(t,o)}function collapse_createSuper(t){var o=function collapse_isNativeReflectConstruct(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function _createSuperInternal(){var a,i=collapse_getPrototypeOf(t);if(o){var c=collapse_getPrototypeOf(this).constructor;a=Reflect.construct(i,arguments,c)}else a=i.apply(this,arguments);return collapse_possibleConstructorReturn(this,a)}}function collapse_possibleConstructorReturn(t,o){if(o&&("object"===collapse_typeof(o)||"function"===typeof o))return o;if(void 0!==o)throw new TypeError("Derived constructors may only return object or undefined");return function collapse_assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function collapse_getPrototypeOf(t){return collapse_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)},collapse_getPrototypeOf(t)}var re=".".concat("bs.collapse"),oe="show".concat(re),ae="shown".concat(re),ie="hide".concat(re),ce="hidden".concat(re),se="click".concat(re).concat(".data-api"),le="show",ue="collapse",fe="collapsing",de=":scope .".concat(ue," .").concat(ue),pe='[data-bs-toggle="collapse"]',ye={parent:null,toggle:!0},ve={parent:"(null|element)",toggle:"boolean"},ge=function(t){!function collapse_inherits(t,o){if("function"!==typeof o&&null!==o)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(o&&o.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),o&&collapse_setPrototypeOf(t,o)}(Collapse,t);var o=collapse_createSuper(Collapse);function Collapse(t,a){var i;!function collapse_classCallCheck(t,o){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}(this,Collapse),(i=o.call(this,t,a))._isTransitioning=!1,i._triggerArray=[];var c,l=collapse_createForOfIteratorHelper(X.find(pe));try{for(l.s();!(c=l.n()).done;){var u=c.value,d=_(u),p=X.find(d).filter((function(t){return t===i._element}));null!==d&&p.length&&i._triggerArray.push(u)}}catch(y){l.e(y)}finally{l.f()}return i._initializeChildren(),i._config.parent||i._addAriaAndCollapsedClass(i._triggerArray,i._isShown()),i._config.toggle&&i.toggle(),i}return function collapse_createClass(t,o,a){return o&&collapse_defineProperties(t.prototype,o),a&&collapse_defineProperties(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t}(Collapse,[{key:"toggle",value:function toggle(){this._isShown()?this.hide():this.show()}},{key:"show",value:function show(){var t=this;if(!this._isTransitioning&&!this._isShown()){var o=[];if(this._config.parent&&(o=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((function(o){return o!==t._element})).map((function(t){return Collapse.getOrCreateInstance(t,{toggle:!1})}))),!o.length||!o[0]._isTransitioning)if(!W.trigger(this._element,oe).defaultPrevented){var a,i=collapse_createForOfIteratorHelper(o);try{for(i.s();!(a=i.n()).done;){a.value.hide()}}catch(d){i.e(d)}finally{i.f()}var c=this._getDimension();this._element.classList.remove(ue),this._element.classList.add(fe),this._element.style[c]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;var l=c[0].toUpperCase()+c.slice(1),u="scroll".concat(l);this._queueCallback((function complete(){t._isTransitioning=!1,t._element.classList.remove(fe),t._element.classList.add(ue,le),t._element.style[c]="",W.trigger(t._element,ae)}),this._element,!0),this._element.style[c]="".concat(this._element[u],"px")}}}},{key:"hide",value:function hide(){var t=this;if(!this._isTransitioning&&this._isShown()&&!W.trigger(this._element,ie).defaultPrevented){var o=this._getDimension();this._element.style[o]="".concat(this._element.getBoundingClientRect()[o],"px"),C(this._element),this._element.classList.add(fe),this._element.classList.remove(ue,le);var a,i=collapse_createForOfIteratorHelper(this._triggerArray);try{for(i.s();!(a=i.n()).done;){var c=a.value,l=w(c);l&&!this._isShown(l)&&this._addAriaAndCollapsedClass([c],!1)}}catch(u){i.e(u)}finally{i.f()}this._isTransitioning=!0;this._element.style[o]="",this._queueCallback((function complete(){t._isTransitioning=!1,t._element.classList.remove(fe),t._element.classList.add(ue),W.trigger(t._element,ce)}),this._element,!0)}}},{key:"_isShown",value:function _isShown(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._element;return t.classList.contains(le)}},{key:"_configAfterMerge",value:function _configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=L(t.parent),t}},{key:"_getDimension",value:function _getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}},{key:"_initializeChildren",value:function _initializeChildren(){if(this._config.parent){var t,o=collapse_createForOfIteratorHelper(this._getFirstLevelChildren(pe));try{for(o.s();!(t=o.n()).done;){var a=t.value,i=w(a);i&&this._addAriaAndCollapsedClass([a],this._isShown(i))}}catch(c){o.e(c)}finally{o.f()}}}},{key:"_getFirstLevelChildren",value:function _getFirstLevelChildren(t){var o=X.find(de,this._config.parent);return X.find(t,this._config.parent).filter((function(t){return!o.includes(t)}))}},{key:"_addAriaAndCollapsedClass",value:function _addAriaAndCollapsedClass(t,o){if(t.length){var a,i=collapse_createForOfIteratorHelper(t);try{for(i.s();!(a=i.n()).done;){var c=a.value;c.classList.toggle("collapsed",!o),c.setAttribute("aria-expanded",o)}}catch(l){i.e(l)}finally{i.f()}}}}],[{key:"Default",get:function get(){return ye}},{key:"DefaultType",get:function get(){return ve}},{key:"NAME",get:function get(){return"collapse"}},{key:"jQueryInterface",value:function jQueryInterface(t){var o={};return"string"===typeof t&&/show|hide/.test(t)&&(o.toggle=!1),this.each((function(){var a=Collapse.getOrCreateInstance(this,o);if("string"===typeof t){if("undefined"===typeof a[t])throw new TypeError('No method named "'.concat(t,'"'));a[t]()}}))}}]),Collapse}(ne);W.on(document,se,pe,(function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();var o,a=_(this),i=collapse_createForOfIteratorHelper(X.find(a));try{for(i.s();!(o=i.n()).done;){var c=o.value;ge.getOrCreateInstance(c,{toggle:!1}).toggle()}}catch(l){i.e(l)}finally{i.f()}})),I(ge);!function(o){var a="js-dropdown",i=["active","active-dropdown"],c=function HideAll(){document.querySelectorAll(".dropdown-menu").forEach((function(t,o){var a;(a=t.closest(".dropdown").classList).remove.apply(a,i),t.classList.remove("show")}))},l=function Show(t){var o;t.stopPropagation();var a=t.currentTarget;(o=a.classList).add.apply(o,i),a.querySelector(".dropdown-menu").classList.add("show")},u=function Hide(t){var o;t.stopPropagation();var a=t.currentTarget;(o=a.classList).remove.apply(o,i),a.querySelector(".dropdown-menu").classList.remove("show")},d=function init(){console.log("".concat(a,": init"));var t=document.querySelectorAll(".".concat(a,',[data-bs-toggle="dropdown"]')),o=document.querySelectorAll('[data-bs-toggle="hover"]'),i=function attachClickEvents(t){t.addEventListener("click",(function(t){t.preventDefault(),function Toggle(t){c(),t.querySelector(".dropdown-menu").classList.toggle("show")}(t.currentTarget.closest(".dropdown"))})),t.classList.add("".concat(a,"-active"))};document.addEventListener("click",(function(t){var o=!1,a=t.path||t.composedPath&&t.composedPath();a||console.warn("Browser does not provide event path to hide dropdowns on outside click"),a.forEach((function(t,a){o||(t===document&&c(),t.classList&&t.classList.contains("dropdown-toggle")&&(o=!0))}))})),o.forEach((function(t,o){!function attachHoverEvents(t){t.addEventListener("mouseover",l,!1),t.addEventListener("mouseleave",u,!1),t.classList.add("".concat(a,"-active"))}(t.closest(".dropdown"))})),t.forEach((function(t,o){i(t)}))};o.addEventListener("".concat(t.LODEDANDREADY),d),o.addEventListener("".concat(t.AJAX),d)}(window);function swipe_typeof(t){return swipe_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},swipe_typeof(t)}function swipe_defineProperties(t,o){for(var a=0;a<o.length;a++){var i=o[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function swipe_setPrototypeOf(t,o){return swipe_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(t,o){return t.__proto__=o,t},swipe_setPrototypeOf(t,o)}function swipe_createSuper(t){var o=function swipe_isNativeReflectConstruct(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function _createSuperInternal(){var a,i=swipe_getPrototypeOf(t);if(o){var c=swipe_getPrototypeOf(this).constructor;a=Reflect.construct(i,arguments,c)}else a=i.apply(this,arguments);return swipe_possibleConstructorReturn(this,a)}}function swipe_possibleConstructorReturn(t,o){if(o&&("object"===swipe_typeof(o)||"function"===typeof o))return o;if(void 0!==o)throw new TypeError("Derived constructors may only return object or undefined");return function swipe_assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function swipe_getPrototypeOf(t){return swipe_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)},swipe_getPrototypeOf(t)}var me,he=".bs.swipe",be="touchstart".concat(he),_e="touchmove".concat(he),we="touchend".concat(he),Ee="pointerdown".concat(he),Ae="pointerup".concat(he),Oe={endCallback:null,leftCallback:null,rightCallback:null},Le={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"},Se=function(t){!function swipe_inherits(t,o){if("function"!==typeof o&&null!==o)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(o&&o.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),o&&swipe_setPrototypeOf(t,o)}(Swipe,t);var o=swipe_createSuper(Swipe);function Swipe(t,a){var i;return function swipe_classCallCheck(t,o){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}(this,Swipe),(i=o.call(this))._element=t,t&&Swipe.isSupported()?(i._config=i._getConfig(a),i._deltaX=0,i._supportPointerEvents=Boolean(window.PointerEvent),i._initEvents(),i):swipe_possibleConstructorReturn(i)}return function swipe_createClass(t,o,a){return o&&swipe_defineProperties(t.prototype,o),a&&swipe_defineProperties(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t}(Swipe,[{key:"dispose",value:function dispose(){W.off(this._element,he)}},{key:"_start",value:function _start(t){this._supportPointerEvents?this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX):this._deltaX=t.touches[0].clientX}},{key:"_end",value:function _end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),j(this._config.endCallback)}},{key:"_move",value:function _move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}},{key:"_handleSwipe",value:function _handleSwipe(){var t=Math.abs(this._deltaX);if(!(t<=40)){var o=t/this._deltaX;this._deltaX=0,o&&j(o>0?this._config.rightCallback:this._config.leftCallback)}}},{key:"_initEvents",value:function _initEvents(){var t=this;this._supportPointerEvents?(W.on(this._element,Ee,(function(o){return t._start(o)})),W.on(this._element,Ae,(function(o){return t._end(o)})),this._element.classList.add("pointer-event")):(W.on(this._element,be,(function(o){return t._start(o)})),W.on(this._element,_e,(function(o){return t._move(o)})),W.on(this._element,we,(function(o){return t._end(o)})))}},{key:"_eventIsPointerPenTouch",value:function _eventIsPointerPenTouch(t){return this._supportPointerEvents&&("pen"===t.pointerType||"touch"===t.pointerType)}}],[{key:"Default",get:function get(){return Oe}},{key:"DefaultType",get:function get(){return Le}},{key:"NAME",get:function get(){return"swipe"}},{key:"isSupported",value:function isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}]),Swipe}(ee),Ce=Se;function carousel_typeof(t){return carousel_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},carousel_typeof(t)}function carousel_createForOfIteratorHelper(t,o){var a="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!a){if(Array.isArray(t)||(a=function carousel_unsupportedIterableToArray(t,o){if(!t)return;if("string"===typeof t)return carousel_arrayLikeToArray(t,o);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return carousel_arrayLikeToArray(t,o)}(t))||o&&t&&"number"===typeof t.length){a&&(t=a);var i=0,c=function F(){};return{s:c,n:function n(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function e(t){throw t},f:c}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,u=!0,d=!1;return{s:function s(){a=a.call(t)},n:function n(){var t=a.next();return u=t.done,t},e:function e(t){d=!0,l=t},f:function f(){try{u||null==a.return||a.return()}finally{if(d)throw l}}}}function carousel_arrayLikeToArray(t,o){(null==o||o>t.length)&&(o=t.length);for(var a=0,i=new Array(o);a<o;a++)i[a]=t[a];return i}function carousel_defineProperties(t,o){for(var a=0;a<o.length;a++){var i=o[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function _get(){return _get="undefined"!==typeof Reflect&&Reflect.get?Reflect.get.bind():function _get(t,o,a){var i=_superPropBase(t,o);if(i){var c=Object.getOwnPropertyDescriptor(i,o);return c.get?c.get.call(arguments.length<3?t:a):c.value}},_get.apply(this,arguments)}function _superPropBase(t,o){for(;!Object.prototype.hasOwnProperty.call(t,o)&&null!==(t=carousel_getPrototypeOf(t)););return t}function carousel_setPrototypeOf(t,o){return carousel_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(t,o){return t.__proto__=o,t},carousel_setPrototypeOf(t,o)}function carousel_createSuper(t){var o=function carousel_isNativeReflectConstruct(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function _createSuperInternal(){var a,i=carousel_getPrototypeOf(t);if(o){var c=carousel_getPrototypeOf(this).constructor;a=Reflect.construct(i,arguments,c)}else a=i.apply(this,arguments);return carousel_possibleConstructorReturn(this,a)}}function carousel_possibleConstructorReturn(t,o){if(o&&("object"===carousel_typeof(o)||"function"===typeof o))return o;if(void 0!==o)throw new TypeError("Derived constructors may only return object or undefined");return function carousel_assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function carousel_getPrototypeOf(t){return carousel_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)},carousel_getPrototypeOf(t)}function carousel_defineProperty(t,o,a){return o in t?Object.defineProperty(t,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[o]=a,t}var ke=".".concat("bs.carousel"),Te=".data-api",Pe="next",Ie="prev",je="left",xe="right",De="slide".concat(ke),Ne="slid".concat(ke),Re="keydown".concat(ke),Me="mouseenter".concat(ke),Fe="mouseleave".concat(ke),He="dragstart".concat(ke),Ue="load".concat(ke).concat(Te),qe="click".concat(ke).concat(Te),ze="carousel",Be="active",We="carousel-item-end",Ye="carousel-item-start",Xe="carousel-item-next",Ke="carousel-item-prev",Ve=".active",Je=".carousel-item",Ge=(carousel_defineProperty(me={},"ArrowLeft",xe),carousel_defineProperty(me,"ArrowRight",je),me),Qe={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},$e={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"},Ze=function(t){!function carousel_inherits(t,o){if("function"!==typeof o&&null!==o)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(o&&o.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),o&&carousel_setPrototypeOf(t,o)}(Carousel,t);var o=carousel_createSuper(Carousel);function Carousel(t,a){var i;return function carousel_classCallCheck(t,o){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}(this,Carousel),(i=o.call(this,t,a))._interval=null,i._activeElement=null,i._isSliding=!1,i.touchTimeout=null,i._swipeHelper=null,i._indicatorsElement=X.findOne(".carousel-indicators",i._element),i._addEventListeners(),i._config.ride===ze&&i.cycle(),i}return function carousel_createClass(t,o,a){return o&&carousel_defineProperties(t.prototype,o),a&&carousel_defineProperties(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t}(Carousel,[{key:"next",value:function next(){this._slide(Pe)}},{key:"nextWhenVisible",value:function nextWhenVisible(){!document.hidden&&S(this._element)&&this.next()}},{key:"prev",value:function prev(){this._slide(Ie)}},{key:"pause",value:function pause(){this._isSliding&&A(this._element),this._clearInterval()}},{key:"cycle",value:function cycle(){var t=this;this._clearInterval(),this._updateInterval(),this._interval=setInterval((function(){return t.nextWhenVisible()}),this._config.interval)}},{key:"_maybeEnableCycle",value:function _maybeEnableCycle(){var t=this;this._config.ride&&(this._isSliding?W.one(this._element,Ne,(function(){return t.cycle()})):this.cycle())}},{key:"to",value:function to(t){var o=this,a=this._getItems();if(!(t>a.length-1||t<0))if(this._isSliding)W.one(this._element,Ne,(function(){return o.to(t)}));else{var i=this._getItemIndex(this._getActive());if(i!==t){var c=t>i?Pe:Ie;this._slide(c,a[t])}}}},{key:"dispose",value:function dispose(){this._swipeHelper&&this._swipeHelper.dispose(),_get(carousel_getPrototypeOf(Carousel.prototype),"dispose",this).call(this)}},{key:"_configAfterMerge",value:function _configAfterMerge(t){return t.defaultInterval=t.interval,t}},{key:"_addEventListeners",value:function _addEventListeners(){var t=this;this._config.keyboard&&W.on(this._element,Re,(function(o){return t._keydown(o)})),"hover"===this._config.pause&&(W.on(this._element,Me,(function(){return t.pause()})),W.on(this._element,Fe,(function(){return t._maybeEnableCycle()}))),this._config.touch&&Ce.isSupported()&&this._addTouchEventListeners()}},{key:"_addTouchEventListeners",value:function _addTouchEventListeners(){var t,o=this,a=carousel_createForOfIteratorHelper(X.find(".carousel-item img",this._element));try{for(a.s();!(t=a.n()).done;){var i=t.value;W.on(i,He,(function(t){return t.preventDefault()}))}}catch(l){a.e(l)}finally{a.f()}var c={leftCallback:function leftCallback(){return o._slide(o._directionToOrder(je))},rightCallback:function rightCallback(){return o._slide(o._directionToOrder(xe))},endCallback:function endCallBack(){"hover"===o._config.pause&&(o.pause(),o.touchTimeout&&clearTimeout(o.touchTimeout),o.touchTimeout=setTimeout((function(){return o._maybeEnableCycle()}),500+o._config.interval))}};this._swipeHelper=new Ce(this._element,c)}},{key:"_keydown",value:function _keydown(t){if(!/input|textarea/i.test(t.target.tagName)){var o=Ge[t.key];o&&(t.preventDefault(),this._slide(this._directionToOrder(o)))}}},{key:"_getItemIndex",value:function _getItemIndex(t){return this._getItems().indexOf(t)}},{key:"_setActiveIndicatorElement",value:function _setActiveIndicatorElement(t){if(this._indicatorsElement){var o=X.findOne(Ve,this._indicatorsElement);o.classList.remove(Be),o.removeAttribute("aria-current");var a=X.findOne('[data-bs-slide-to="'.concat(t,'"]'),this._indicatorsElement);a&&(a.classList.add(Be),a.setAttribute("aria-current","true"))}}},{key:"_updateInterval",value:function _updateInterval(){var t=this._activeElement||this._getActive();if(t){var o=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=o||this._config.defaultInterval}}},{key:"_slide",value:function _slide(t){var o=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!this._isSliding){var i=this._getActive(),c=t===Pe,l=a||D(this._getItems(),i,c,this._config.wrap);if(l!==i){var u=this._getItemIndex(l),d=function triggerEvent(a){return W.trigger(o._element,a,{relatedTarget:l,direction:o._orderToDirection(t),from:o._getItemIndex(i),to:u})},p=d(De);if(!p.defaultPrevented&&i&&l){var y=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(u),this._activeElement=l;var v=c?Ye:We,g=c?Xe:Ke;l.classList.add(g),C(l),i.classList.add(v),l.classList.add(v);var m=function completeCallBack(){l.classList.remove(v,g),l.classList.add(Be),i.classList.remove(Be,g,v),o._isSliding=!1,d(Ne)};this._queueCallback(m,i,this._isAnimated()),y&&this.cycle()}}}}},{key:"_isAnimated",value:function _isAnimated(){return this._element.classList.contains("slide")}},{key:"_getActive",value:function _getActive(){return X.findOne(".active.carousel-item",this._element)}},{key:"_getItems",value:function _getItems(){return X.find(Je,this._element)}},{key:"_clearInterval",value:function _clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}},{key:"_directionToOrder",value:function _directionToOrder(t){return P()?t===je?Ie:Pe:t===je?Pe:Ie}},{key:"_orderToDirection",value:function _orderToDirection(t){return P()?t===Ie?je:xe:t===Ie?xe:je}}],[{key:"Default",get:function get(){return Qe}},{key:"DefaultType",get:function get(){return $e}},{key:"NAME",get:function get(){return"carousel"}},{key:"jQueryInterface",value:function jQueryInterface(t){return this.each((function(){var o=Carousel.getOrCreateInstance(this,t);if("number"!==typeof t){if("string"===typeof t){if(void 0===o[t]||t.startsWith("_")||"constructor"===t)throw new TypeError('No method named "'.concat(t,'"'));o[t]()}}else o.to(t)}))}}]),Carousel}(ne);W.on(document,qe,"[data-bs-slide], [data-bs-slide-to]",(function(t){var o=w(this);if(o&&o.classList.contains(ze)){t.preventDefault();var a=Ze.getOrCreateInstance(o),i=this.getAttribute("data-bs-slide-to");if(i)return a.to(i),void a._maybeEnableCycle();if("next"===Q.getDataAttribute(this,"slide"))return a.next(),void a._maybeEnableCycle();a.prev(),a._maybeEnableCycle()}})),W.on(window,Ue,(function(){var t,o=carousel_createForOfIteratorHelper(X.find('[data-bs-ride="carousel"]'));try{for(o.s();!(t=o.n()).done;){var a=t.value;Ze.getOrCreateInstance(a)}}catch(i){o.e(i)}finally{o.f()}})),I(Ze);var et=Ze;(function(o){var a="js-carousel",i=function init(){console.log("".concat(a,": init")),document.querySelectorAll(".".concat(a)).forEach((function(t,i){var c=!!t.dataset.bsInterval&&parseInt(t.dataset.bsInterval),l=new et(t,{interval:c});t.ui=l;var u=t.querySelectorAll(".carousel-item"),d=parseInt(u.length);if(t.dataset.bsArrows){var p=document.createElement("button");p.classList.add("carousel-control-next"),p.setAttribute("type","button"),p.setAttribute("aria-label","Next Slide"),p.setAttribute("data-bs-target",t.getAttribute("id")),p.setAttribute("data-bs-slide","next"),p.addEventListener("click",(function(t){l.next()})),p.innerHTML='<span class="carousel-control-next-icon" aria-hidden="true"></span><span class="visually-hidden">Next</span>',t.appendChild(p);var y=document.createElement("button");y.setAttribute("type","button"),y.setAttribute("aria-label","Previous Slide"),y.classList.add("carousel-control-prev"),y.setAttribute("data-bs-target",t.getAttribute("id")),y.setAttribute("data-bs-slide","prev"),y.addEventListener("click",(function(t){l.prev()})),y.innerHTML='<span class="carousel-control-prev-icon" aria-hidden="true"></span><span class="visually-hidden">Previous</span>',t.appendChild(y)}if(t.dataset.bsIndicators&&function(){var o=document.createElement("div");o.classList.add("carousel-indicators");for(var a=0;a<d;){var i=document.createElement("button");i.setAttribute("type","button"),i.setAttribute("aria-label","Slide to #".concat(a+1)),0===a&&i.classList.add("active"),i.setAttribute("data-bs-target",t.getAttribute("id")),i.setAttribute("data-bs-slide-to",a),i.addEventListener("click",(function(t){var a=t.target;l.to(a.getAttribute("data-bs-slide-to")),o.querySelectorAll(".active").forEach((function(t){t.classList.remove("active")})),a.classList.add("active")})),o.appendChild(i),a++}t.appendChild(o),t.addEventListener("slide.bs.carousel",(function(o){t.querySelectorAll(".carousel-indicators .active").forEach((function(t){t.classList.remove("active")})),t.querySelectorAll('.carousel-indicators [data-bs-slide-to="'.concat(o.to,'"]')).forEach((function(t){t.classList.add("active")}))}))}(),t.classList.contains("carousel-multislide")){var v=t.querySelector(".carousel-inner");u.forEach((function(t,o){var a=t.cloneNode(!0);a.classList.remove("active"),v.appendChild(a)})),u=t.querySelectorAll(".carousel-item"),d=parseInt(u.length),v.style.left="0px";var g=new o.ResizeObserver((function calculate(t){var o=t[0],a=o.target,i=o.contentRect.width,c=Math.min(parseInt(a.dataset.length),d),p=i/c;a.dataset.itemWidth=p,a.dataset.numToDisplay=c,v.style.width="".concat(d*p,"px"),u.forEach((function(t,o){t.style.width="".concat(p,"px")})),d===c&&(a.classList.add("js-carousel-no-slide"),l.pause())}));g.observe(t);var m=function resetPosition(){v.style.transition="none",v.classList.add("no-transition"),v.style.left="0px",setTimeout((function(){v.style.transition="",v.classList.remove("no-transition"),v.querySelectorAll(".carousel-item").forEach((function(t){t.classList.remove("active")})),v.querySelector(".carousel-item:first-child").classList.add("active")}),1e3)};t.addEventListener("slide.bs.carousel",(function(o){var i=Math.min(parseInt(t.dataset.length),d);if(console.log(".".concat(a,": ").concat(o.to," ").concat(d/2)),d-i<o.to)return o.preventDefault(),void m();switch(o.direction){case"left":case"right":v.style.left="".concat(-o.to*t.dataset.itemWidth,"px")}d/2===o.to&&m()})),t.classList.add("".concat(a,"-multislide-active"))}else 1===u.length&&t.classList.add("js-carousel-no-slide");c&&t.ui.cycle(),t.dataset.ui=t.ui,t.classList.add("".concat(a,"-active")),t.dispatchEvent(new Event("".concat(a,"-ready")))}))};o.addEventListener("".concat(t.LODEDANDREADY),i),o.addEventListener("".concat(t.AJAX),i)})(window),function(o){var a="js-captcha",i=function init(){console.log("".concat(a,": init"));var t=function submitListener(t){console.log("".concat(a,": Validating Captcha ..."));t.currentTarget.querySelectorAll(".".concat(a,", .g-recaptcha")).forEach((function(t){grecaptcha.execute(t.dataset.widgetid)}))},i=function attachCaptcha(){console.log("".concat(a,": Rendering Captcha ..."));var i=document.querySelectorAll(".".concat(a,", .g-recaptcha")),c=o.grecaptcha;i.forEach((function(o,i){if(!o.dataset.widgetid&&""===o.innerHTML){var l=o.closest(l),u=c.render(o,o.dataset);o.dataset.widgetid=u,"invisible"!==o.dataset.size||o.dataset.callback||(c.execute(u),l.addEventListener("submit",t)),o.classList.add("".concat(a,"-active")),o.dispatchEvent(new Event("".concat(a,"-ready")))}}))};document.querySelectorAll(".g-recaptcha").length?function loadScript(t){"undefined"!==typeof o.grecaptcha&&t(),console.log("".concat(a,": Loading Captcha API ..."));var i=document.createElement("script");i.id="captchaAPI",i.src="https://www.google.com/recaptcha/api.js?render=explicit&hl=".concat(document.querySelector("html").getAttribute("lang").substr(0,2)),i.async=!0,i.onload=function(){console.log("".concat(a,": Captcha API is loaded.")),t()},document.body.append(i)}(i):console.log("".concat(a,": No Captcha fields.")),o.noCaptchaFieldRender=i};o.addEventListener("".concat(t.LODEDANDREADY),i),o.addEventListener("".concat(t.AJAX),i)}(window),function(o){var a="js-password",i=function init(){var t;console.log("".concat(a,": init"));var o=function show(o){o.setAttribute("type","text"),t=setTimeout((function(){i(o)}),3e3)},i=function hide(o){o.setAttribute("type","password"),t&&clearTimeout(t)};document.querySelectorAll("".concat(a,"-show, .show-password")).forEach((function(t){t.classList.contains("".concat(a,"-active"))||(t.addEventListener("click",(function(t){var a=t.currentTarget.closest(".field").querySelector("input");a&&function toggle(t){"password"===t.getAttribute("type")?o(t):i(t)}(a)})),t.classList.add("".concat(a,"-active")))}))};o.addEventListener("".concat(t.LODEDANDREADY),i),o.addEventListener("".concat(t.AJAX),i)}(window);function redaxios_module_typeof(t){return redaxios_module_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},redaxios_module_typeof(t)}var tt=function e(t){function n(t,o,a){var i,c={};if(Array.isArray(t))return t.concat(o);for(i in t)c[a?i.toLowerCase():i]=t[i];for(i in o){var l=a?i.toLowerCase():i,u=o[i];c[l]=l in c&&"object"==redaxios_module_typeof(u)?n(c[l],u,"headers"==l):u}return c}function r(o,a,i,c,l){var u="string"!=typeof o?(a=o).url:o,d={config:a},p=n(t,a),y={};c=c||p.data,(p.transformRequest||[]).map((function(t){c=t(c,p.headers)||c})),p.auth&&(y.authorization=p.auth),c&&"object"==redaxios_module_typeof(c)&&"function"!=typeof c.append&&"function"!=typeof c.text&&(c=JSON.stringify(c),y["content-type"]="application/json");try{y[p.xsrfHeaderName]=decodeURIComponent(document.cookie.match(RegExp("(^|; )"+p.xsrfCookieName+"=([^;]*)"))[2])}catch(o){}return p.baseURL&&(u=u.replace(/^(?!.*\/\/)\/?/,p.baseURL+"/")),p.params&&(u+=(~u.indexOf("?")?"&":"?")+(p.paramsSerializer?p.paramsSerializer(p.params):new URLSearchParams(p.params))),(p.fetch||fetch)(u,{method:(i||p.method||"get").toUpperCase(),body:c,headers:n(p.headers,y,!0),credentials:p.withCredentials?"include":l}).then((function(t){for(var o in t)"function"!=typeof t[o]&&(d[o]=t[o]);return"stream"==p.responseType?(d.data=t.body,d):t[p.responseType||"text"]().then((function(t){d.data=t,d.data=JSON.parse(t)})).catch(Object).then((function(){return(p.validateStatus?p.validateStatus(t.status):t.ok)?d:Promise.reject(d)}))}))}return t=t||{},r.request=r,r.get=function(t,o){return r(t,o,"get")},r.delete=function(t,o){return r(t,o,"delete")},r.head=function(t,o){return r(t,o,"head")},r.options=function(t,o){return r(t,o,"options")},r.post=function(t,o,a){return r(t,a,"post",o)},r.put=function(t,o,a){return r(t,a,"put",o)},r.patch=function(t,o,a){return r(t,a,"patch",o)},r.all=Promise.all.bind(Promise),r.spread=function(t){return t.apply.bind(t,t)},r.CancelToken="function"==typeof AbortController?AbortController:Object,r.defaults=t,r.create=e,r}();!function(o){var a,i="main.online",c=document,l=c.body,u=c.querySelector('meta[name="ping"]'),d=!1,p=function UPDATE_ONLINE_STATUS(c){d||(d=!0,c?(l.classList.contains("is-offline")?(console.log("".concat(i,": back Online")),o.dispatchEvent(new Event(t.BACKONLINE))):(console.log("".concat(i,": Online")),o.dispatchEvent(new Event(t.ONLINE))),l.classList.add("is-online"),l.classList.remove("is-offline"),u&&!a&&(console.log("".concat(i,": SESSION_PING is active")),a=setInterval(v,3e5))):(console.log("".concat(i,": Offline")),l.classList.add("is-offline"),l.classList.remove("is-online"),clearInterval(a),a=null,o.dispatchEvent(new Event(t.OFFLINE))),d=!1)},y=!1,v=function SESSION_PING(){if(!y&&!l.classList.contains("is-offline")){var t=u.getAttribute("content");console.log("".concat(i,": session ping")),y=!0,tt.post(t,{}).then((function(t){y=!1,p(!0)})).catch((function(t){console.error(t),console.warn("".concat(i,": SESSION_PING failed")),y=!1,p(!1)}))}},g=function navigatorStateUpdate(){"undefined"!==typeof navigator.onLine&&(navigator.onLine?p(!0):p(!1))};o.addEventListener("".concat(t.OFFLINE),(function(){p(!1)})),o.addEventListener("".concat(t.ONLINE),(function(){p(!0)})),o.addEventListener("".concat(t.LOADED),g),o.addEventListener("".concat(t.AJAX),g)}(window);function image_defineProperties(t,o){for(var a=0;a<o.length;a++){var i=o[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var nt="ajax.models.image",rt=document.querySelector('meta[name="api_static_domain"]'),ot=rt?rt.getAttribute("content"):"".concat(window.location.protocol,"//").concat(window.location.host);console.log("".concat(nt," [static url]: ").concat(ot));var at=function(){function ImageObject(){!function image_classCallCheck(t,o){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}(this,ImageObject)}return function image_createClass(t,o,a){return o&&image_defineProperties(t.prototype,o),a&&image_defineProperties(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t}(ImageObject,[{key:"load",value:function load(t,o){var a=t.startsWith("http")?t:ot+t;return o&&(o.classList.add("loading"),o.classList.remove("loading__network-error")),new Promise((function(t,i){tt.get(a,{responseType:"blob"}).then((function(a){var i=new window.FileReader;i.readAsDataURL(a.data),i.onload=function(){var a=i.result;o&&(o.classList.remove("loading"),o.classList.add("loading__success")),t(a)}})).catch((function(t){console.warn(t);var c="";if(t.response){switch(t.response.status){case 404:c="Not Found.";break;case 500:c="Server issue, please try again latter.";break;default:c="Something went wrong."}console.error("".concat(nt," [").concat(a,"]: ").concat(c))}else t.request?(c="No response received",console.error("".concat(nt," [").concat(a,"]: ").concat(c))):console.error("".concat(nt," [").concat(a,"]: ").concat(t.message));o&&(o.classList.remove("loading"),o.classList.add("loading__network-error"),o.classList.add("empty")),i(t)}))}))}}]),ImageObject}();(function(o){var a=document,i=function loadLazyImages(){console.log("".concat("main.lazy-images",": Load lazy images")),a.querySelectorAll("[data-lazy-src]").forEach((function(t){t.classList.remove("empty"),(new at).load(t.getAttribute("data-lazy-src"),t).then((function(o){t.setAttribute("src",o)})).catch((function(){t.classList.add("empty")}))})),a.querySelectorAll("[data-lazy-bg]").forEach((function(t){t.classList.remove("empty"),(new at).load(t.getAttribute("data-lazy-bg"),t).then((function(o){t.style.backgroundImage="url(".concat(o,")")})).catch((function(o){t.classList.add("empty")}))}))};o.addEventListener("".concat(t.LODEDANDREADY),i),o.addEventListener("".concat(t.AJAX),i)})(window),function(o){var a="_layout",i=document;o.addEventListener("".concat(t.LODEDANDREADY),(function(){!function initFonts(){console.log("".concat(a,": initFonts"));var t=i.createElement("link");t.rel="stylesheet",t.type="text/css",t.media="all",t.href="https://fonts.googleapis.com/css?family=Roboto:ital,wght@0,400;0,700;1,400&display=swap",i.getElementsByTagName("head")[0].appendChild(t)}(),function initAnalytics(){console.log("".concat(a,": initAnalytics"))}()}))}(window);function importAll(t){return t.keys().map(t)}if(importAll(__webpack_require__(103)),importAll(__webpack_require__(499)),"serviceWorker"in navigator){var it=(document.getElementsByTagName("base")[0]||{}).href,ct=(document.querySelector('meta[name="swversion"]')||{}).content;it&&navigator.serviceWorker.register("".concat(it,"sw.js?v=").concat(ct)).then((function(){console.log("Service Worker Registered")}))}}()}();