bootstrap.js 120 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925
  1. /*!
  2. * Bootstrap v4.1.0 (https://getbootstrap.com/)
  3. * Copyright 2011-2018 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
  4. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  5. */
  6. (function (global, factory) {
  7. typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('jquery'), require('popper.js')) :
  8. typeof define === 'function' && define.amd ? define(['exports', 'jquery', 'popper.js'], factory) :
  9. (factory((global.bootstrap = {}),global.jQuery,global.Popper));
  10. }(this, (function (exports,$,Popper) { 'use strict';
  11. $ = $ && $.hasOwnProperty('default') ? $['default'] : $;
  12. Popper = Popper && Popper.hasOwnProperty('default') ? Popper['default'] : Popper;
  13. function _defineProperties(target, props) {
  14. for (var i = 0; i < props.length; i++) {
  15. var descriptor = props[i];
  16. descriptor.enumerable = descriptor.enumerable || false;
  17. descriptor.configurable = true;
  18. if ("value" in descriptor) descriptor.writable = true;
  19. Object.defineProperty(target, descriptor.key, descriptor);
  20. }
  21. }
  22. function _createClass(Constructor, protoProps, staticProps) {
  23. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  24. if (staticProps) _defineProperties(Constructor, staticProps);
  25. return Constructor;
  26. }
  27. function _defineProperty(obj, key, value) {
  28. if (key in obj) {
  29. Object.defineProperty(obj, key, {
  30. value: value,
  31. enumerable: true,
  32. configurable: true,
  33. writable: true
  34. });
  35. } else {
  36. obj[key] = value;
  37. }
  38. return obj;
  39. }
  40. function _objectSpread(target) {
  41. for (var i = 1; i < arguments.length; i++) {
  42. var source = arguments[i] != null ? arguments[i] : {};
  43. var ownKeys = Object.keys(source);
  44. if (typeof Object.getOwnPropertySymbols === 'function') {
  45. ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
  46. return Object.getOwnPropertyDescriptor(source, sym).enumerable;
  47. }));
  48. }
  49. ownKeys.forEach(function (key) {
  50. _defineProperty(target, key, source[key]);
  51. });
  52. }
  53. return target;
  54. }
  55. function _inheritsLoose(subClass, superClass) {
  56. subClass.prototype = Object.create(superClass.prototype);
  57. subClass.prototype.constructor = subClass;
  58. subClass.__proto__ = superClass;
  59. }
  60. /**
  61. * --------------------------------------------------------------------------
  62. * Bootstrap (v4.1.0): util.js
  63. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  64. * --------------------------------------------------------------------------
  65. */
  66. var Util = function ($$$1) {
  67. /**
  68. * ------------------------------------------------------------------------
  69. * Private TransitionEnd Helpers
  70. * ------------------------------------------------------------------------
  71. */
  72. var TRANSITION_END = 'transitionend';
  73. var MAX_UID = 1000000;
  74. var MILLISECONDS_MULTIPLIER = 1000; // Shoutout AngusCroll (https://goo.gl/pxwQGp)
  75. function toType(obj) {
  76. return {}.toString.call(obj).match(/\s([a-z]+)/i)[1].toLowerCase();
  77. }
  78. function getSpecialTransitionEndEvent() {
  79. return {
  80. bindType: TRANSITION_END,
  81. delegateType: TRANSITION_END,
  82. handle: function handle(event) {
  83. if ($$$1(event.target).is(this)) {
  84. return event.handleObj.handler.apply(this, arguments); // eslint-disable-line prefer-rest-params
  85. }
  86. return undefined; // eslint-disable-line no-undefined
  87. }
  88. };
  89. }
  90. function transitionEndEmulator(duration) {
  91. var _this = this;
  92. var called = false;
  93. $$$1(this).one(Util.TRANSITION_END, function () {
  94. called = true;
  95. });
  96. setTimeout(function () {
  97. if (!called) {
  98. Util.triggerTransitionEnd(_this);
  99. }
  100. }, duration);
  101. return this;
  102. }
  103. function setTransitionEndSupport() {
  104. $$$1.fn.emulateTransitionEnd = transitionEndEmulator;
  105. $$$1.event.special[Util.TRANSITION_END] = getSpecialTransitionEndEvent();
  106. }
  107. /**
  108. * --------------------------------------------------------------------------
  109. * Public Util Api
  110. * --------------------------------------------------------------------------
  111. */
  112. var Util = {
  113. TRANSITION_END: 'bsTransitionEnd',
  114. getUID: function getUID(prefix) {
  115. do {
  116. // eslint-disable-next-line no-bitwise
  117. prefix += ~~(Math.random() * MAX_UID); // "~~" acts like a faster Math.floor() here
  118. } while (document.getElementById(prefix));
  119. return prefix;
  120. },
  121. getSelectorFromElement: function getSelectorFromElement(element) {
  122. var selector = element.getAttribute('data-target');
  123. if (!selector || selector === '#') {
  124. selector = element.getAttribute('href') || '';
  125. }
  126. try {
  127. var $selector = $$$1(document).find(selector);
  128. return $selector.length > 0 ? selector : null;
  129. } catch (err) {
  130. return null;
  131. }
  132. },
  133. getTransitionDurationFromElement: function getTransitionDurationFromElement(element) {
  134. if (!element) {
  135. return 0;
  136. } // Get transition-duration of the element
  137. var transitionDuration = $$$1(element).css('transition-duration');
  138. var floatTransitionDuration = parseFloat(transitionDuration); // Return 0 if element or transition duration is not found
  139. if (!floatTransitionDuration) {
  140. return 0;
  141. } // If multiple durations are defined, take the first
  142. transitionDuration = transitionDuration.split(',')[0];
  143. return parseFloat(transitionDuration) * MILLISECONDS_MULTIPLIER;
  144. },
  145. reflow: function reflow(element) {
  146. return element.offsetHeight;
  147. },
  148. triggerTransitionEnd: function triggerTransitionEnd(element) {
  149. $$$1(element).trigger(TRANSITION_END);
  150. },
  151. // TODO: Remove in v5
  152. supportsTransitionEnd: function supportsTransitionEnd() {
  153. return Boolean(TRANSITION_END);
  154. },
  155. isElement: function isElement(obj) {
  156. return (obj[0] || obj).nodeType;
  157. },
  158. typeCheckConfig: function typeCheckConfig(componentName, config, configTypes) {
  159. for (var property in configTypes) {
  160. if (Object.prototype.hasOwnProperty.call(configTypes, property)) {
  161. var expectedTypes = configTypes[property];
  162. var value = config[property];
  163. var valueType = value && Util.isElement(value) ? 'element' : toType(value);
  164. if (!new RegExp(expectedTypes).test(valueType)) {
  165. throw new Error(componentName.toUpperCase() + ": " + ("Option \"" + property + "\" provided type \"" + valueType + "\" ") + ("but expected type \"" + expectedTypes + "\"."));
  166. }
  167. }
  168. }
  169. }
  170. };
  171. setTransitionEndSupport();
  172. return Util;
  173. }($);
  174. /**
  175. * --------------------------------------------------------------------------
  176. * Bootstrap (v4.1.0): alert.js
  177. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  178. * --------------------------------------------------------------------------
  179. */
  180. var Alert = function ($$$1) {
  181. /**
  182. * ------------------------------------------------------------------------
  183. * Constants
  184. * ------------------------------------------------------------------------
  185. */
  186. var NAME = 'alert';
  187. var VERSION = '4.1.0';
  188. var DATA_KEY = 'bs.alert';
  189. var EVENT_KEY = "." + DATA_KEY;
  190. var DATA_API_KEY = '.data-api';
  191. var JQUERY_NO_CONFLICT = $$$1.fn[NAME];
  192. var Selector = {
  193. DISMISS: '[data-dismiss="alert"]'
  194. };
  195. var Event = {
  196. CLOSE: "close" + EVENT_KEY,
  197. CLOSED: "closed" + EVENT_KEY,
  198. CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY
  199. };
  200. var ClassName = {
  201. ALERT: 'alert',
  202. FADE: 'fade',
  203. SHOW: 'show'
  204. /**
  205. * ------------------------------------------------------------------------
  206. * Class Definition
  207. * ------------------------------------------------------------------------
  208. */
  209. };
  210. var Alert =
  211. /*#__PURE__*/
  212. function () {
  213. function Alert(element) {
  214. this._element = element;
  215. } // Getters
  216. var _proto = Alert.prototype;
  217. // Public
  218. _proto.close = function close(element) {
  219. element = element || this._element;
  220. var rootElement = this._getRootElement(element);
  221. var customEvent = this._triggerCloseEvent(rootElement);
  222. if (customEvent.isDefaultPrevented()) {
  223. return;
  224. }
  225. this._removeElement(rootElement);
  226. };
  227. _proto.dispose = function dispose() {
  228. $$$1.removeData(this._element, DATA_KEY);
  229. this._element = null;
  230. }; // Private
  231. _proto._getRootElement = function _getRootElement(element) {
  232. var selector = Util.getSelectorFromElement(element);
  233. var parent = false;
  234. if (selector) {
  235. parent = $$$1(selector)[0];
  236. }
  237. if (!parent) {
  238. parent = $$$1(element).closest("." + ClassName.ALERT)[0];
  239. }
  240. return parent;
  241. };
  242. _proto._triggerCloseEvent = function _triggerCloseEvent(element) {
  243. var closeEvent = $$$1.Event(Event.CLOSE);
  244. $$$1(element).trigger(closeEvent);
  245. return closeEvent;
  246. };
  247. _proto._removeElement = function _removeElement(element) {
  248. var _this = this;
  249. $$$1(element).removeClass(ClassName.SHOW);
  250. if (!$$$1(element).hasClass(ClassName.FADE)) {
  251. this._destroyElement(element);
  252. return;
  253. }
  254. var transitionDuration = Util.getTransitionDurationFromElement(element);
  255. $$$1(element).one(Util.TRANSITION_END, function (event) {
  256. return _this._destroyElement(element, event);
  257. }).emulateTransitionEnd(transitionDuration);
  258. };
  259. _proto._destroyElement = function _destroyElement(element) {
  260. $$$1(element).detach().trigger(Event.CLOSED).remove();
  261. }; // Static
  262. Alert._jQueryInterface = function _jQueryInterface(config) {
  263. return this.each(function () {
  264. var $element = $$$1(this);
  265. var data = $element.data(DATA_KEY);
  266. if (!data) {
  267. data = new Alert(this);
  268. $element.data(DATA_KEY, data);
  269. }
  270. if (config === 'close') {
  271. data[config](this);
  272. }
  273. });
  274. };
  275. Alert._handleDismiss = function _handleDismiss(alertInstance) {
  276. return function (event) {
  277. if (event) {
  278. event.preventDefault();
  279. }
  280. alertInstance.close(this);
  281. };
  282. };
  283. _createClass(Alert, null, [{
  284. key: "VERSION",
  285. get: function get() {
  286. return VERSION;
  287. }
  288. }]);
  289. return Alert;
  290. }();
  291. /**
  292. * ------------------------------------------------------------------------
  293. * Data Api implementation
  294. * ------------------------------------------------------------------------
  295. */
  296. $$$1(document).on(Event.CLICK_DATA_API, Selector.DISMISS, Alert._handleDismiss(new Alert()));
  297. /**
  298. * ------------------------------------------------------------------------
  299. * jQuery
  300. * ------------------------------------------------------------------------
  301. */
  302. $$$1.fn[NAME] = Alert._jQueryInterface;
  303. $$$1.fn[NAME].Constructor = Alert;
  304. $$$1.fn[NAME].noConflict = function () {
  305. $$$1.fn[NAME] = JQUERY_NO_CONFLICT;
  306. return Alert._jQueryInterface;
  307. };
  308. return Alert;
  309. }($);
  310. /**
  311. * --------------------------------------------------------------------------
  312. * Bootstrap (v4.1.0): button.js
  313. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  314. * --------------------------------------------------------------------------
  315. */
  316. var Button = function ($$$1) {
  317. /**
  318. * ------------------------------------------------------------------------
  319. * Constants
  320. * ------------------------------------------------------------------------
  321. */
  322. var NAME = 'button';
  323. var VERSION = '4.1.0';
  324. var DATA_KEY = 'bs.button';
  325. var EVENT_KEY = "." + DATA_KEY;
  326. var DATA_API_KEY = '.data-api';
  327. var JQUERY_NO_CONFLICT = $$$1.fn[NAME];
  328. var ClassName = {
  329. ACTIVE: 'active',
  330. BUTTON: 'btn',
  331. FOCUS: 'focus'
  332. };
  333. var Selector = {
  334. DATA_TOGGLE_CARROT: '[data-toggle^="button"]',
  335. DATA_TOGGLE: '[data-toggle="buttons"]',
  336. INPUT: 'input',
  337. ACTIVE: '.active',
  338. BUTTON: '.btn'
  339. };
  340. var Event = {
  341. CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY,
  342. FOCUS_BLUR_DATA_API: "focus" + EVENT_KEY + DATA_API_KEY + " " + ("blur" + EVENT_KEY + DATA_API_KEY)
  343. /**
  344. * ------------------------------------------------------------------------
  345. * Class Definition
  346. * ------------------------------------------------------------------------
  347. */
  348. };
  349. var Button =
  350. /*#__PURE__*/
  351. function () {
  352. function Button(element) {
  353. this._element = element;
  354. } // Getters
  355. var _proto = Button.prototype;
  356. // Public
  357. _proto.toggle = function toggle() {
  358. var triggerChangeEvent = true;
  359. var addAriaPressed = true;
  360. var rootElement = $$$1(this._element).closest(Selector.DATA_TOGGLE)[0];
  361. if (rootElement) {
  362. var input = $$$1(this._element).find(Selector.INPUT)[0];
  363. if (input) {
  364. if (input.type === 'radio') {
  365. if (input.checked && $$$1(this._element).hasClass(ClassName.ACTIVE)) {
  366. triggerChangeEvent = false;
  367. } else {
  368. var activeElement = $$$1(rootElement).find(Selector.ACTIVE)[0];
  369. if (activeElement) {
  370. $$$1(activeElement).removeClass(ClassName.ACTIVE);
  371. }
  372. }
  373. }
  374. if (triggerChangeEvent) {
  375. if (input.hasAttribute('disabled') || rootElement.hasAttribute('disabled') || input.classList.contains('disabled') || rootElement.classList.contains('disabled')) {
  376. return;
  377. }
  378. input.checked = !$$$1(this._element).hasClass(ClassName.ACTIVE);
  379. $$$1(input).trigger('change');
  380. }
  381. input.focus();
  382. addAriaPressed = false;
  383. }
  384. }
  385. if (addAriaPressed) {
  386. this._element.setAttribute('aria-pressed', !$$$1(this._element).hasClass(ClassName.ACTIVE));
  387. }
  388. if (triggerChangeEvent) {
  389. $$$1(this._element).toggleClass(ClassName.ACTIVE);
  390. }
  391. };
  392. _proto.dispose = function dispose() {
  393. $$$1.removeData(this._element, DATA_KEY);
  394. this._element = null;
  395. }; // Static
  396. Button._jQueryInterface = function _jQueryInterface(config) {
  397. return this.each(function () {
  398. var data = $$$1(this).data(DATA_KEY);
  399. if (!data) {
  400. data = new Button(this);
  401. $$$1(this).data(DATA_KEY, data);
  402. }
  403. if (config === 'toggle') {
  404. data[config]();
  405. }
  406. });
  407. };
  408. _createClass(Button, null, [{
  409. key: "VERSION",
  410. get: function get() {
  411. return VERSION;
  412. }
  413. }]);
  414. return Button;
  415. }();
  416. /**
  417. * ------------------------------------------------------------------------
  418. * Data Api implementation
  419. * ------------------------------------------------------------------------
  420. */
  421. $$$1(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE_CARROT, function (event) {
  422. event.preventDefault();
  423. var button = event.target;
  424. if (!$$$1(button).hasClass(ClassName.BUTTON)) {
  425. button = $$$1(button).closest(Selector.BUTTON);
  426. }
  427. Button._jQueryInterface.call($$$1(button), 'toggle');
  428. }).on(Event.FOCUS_BLUR_DATA_API, Selector.DATA_TOGGLE_CARROT, function (event) {
  429. var button = $$$1(event.target).closest(Selector.BUTTON)[0];
  430. $$$1(button).toggleClass(ClassName.FOCUS, /^focus(in)?$/.test(event.type));
  431. });
  432. /**
  433. * ------------------------------------------------------------------------
  434. * jQuery
  435. * ------------------------------------------------------------------------
  436. */
  437. $$$1.fn[NAME] = Button._jQueryInterface;
  438. $$$1.fn[NAME].Constructor = Button;
  439. $$$1.fn[NAME].noConflict = function () {
  440. $$$1.fn[NAME] = JQUERY_NO_CONFLICT;
  441. return Button._jQueryInterface;
  442. };
  443. return Button;
  444. }($);
  445. /**
  446. * --------------------------------------------------------------------------
  447. * Bootstrap (v4.1.0): carousel.js
  448. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  449. * --------------------------------------------------------------------------
  450. */
  451. var Carousel = function ($$$1) {
  452. /**
  453. * ------------------------------------------------------------------------
  454. * Constants
  455. * ------------------------------------------------------------------------
  456. */
  457. var NAME = 'carousel';
  458. var VERSION = '4.1.0';
  459. var DATA_KEY = 'bs.carousel';
  460. var EVENT_KEY = "." + DATA_KEY;
  461. var DATA_API_KEY = '.data-api';
  462. var JQUERY_NO_CONFLICT = $$$1.fn[NAME];
  463. var ARROW_LEFT_KEYCODE = 37; // KeyboardEvent.which value for left arrow key
  464. var ARROW_RIGHT_KEYCODE = 39; // KeyboardEvent.which value for right arrow key
  465. var TOUCHEVENT_COMPAT_WAIT = 500; // Time for mouse compat events to fire after touch
  466. var Default = {
  467. interval: 5000,
  468. keyboard: true,
  469. slide: false,
  470. pause: 'hover',
  471. wrap: true
  472. };
  473. var DefaultType = {
  474. interval: '(number|boolean)',
  475. keyboard: 'boolean',
  476. slide: '(boolean|string)',
  477. pause: '(string|boolean)',
  478. wrap: 'boolean'
  479. };
  480. var Direction = {
  481. NEXT: 'next',
  482. PREV: 'prev',
  483. LEFT: 'left',
  484. RIGHT: 'right'
  485. };
  486. var Event = {
  487. SLIDE: "slide" + EVENT_KEY,
  488. SLID: "slid" + EVENT_KEY,
  489. KEYDOWN: "keydown" + EVENT_KEY,
  490. MOUSEENTER: "mouseenter" + EVENT_KEY,
  491. MOUSELEAVE: "mouseleave" + EVENT_KEY,
  492. TOUCHEND: "touchend" + EVENT_KEY,
  493. LOAD_DATA_API: "load" + EVENT_KEY + DATA_API_KEY,
  494. CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY
  495. };
  496. var ClassName = {
  497. CAROUSEL: 'carousel',
  498. ACTIVE: 'active',
  499. SLIDE: 'slide',
  500. RIGHT: 'carousel-item-right',
  501. LEFT: 'carousel-item-left',
  502. NEXT: 'carousel-item-next',
  503. PREV: 'carousel-item-prev',
  504. ITEM: 'carousel-item'
  505. };
  506. var Selector = {
  507. ACTIVE: '.active',
  508. ACTIVE_ITEM: '.active.carousel-item',
  509. ITEM: '.carousel-item',
  510. NEXT_PREV: '.carousel-item-next, .carousel-item-prev',
  511. INDICATORS: '.carousel-indicators',
  512. DATA_SLIDE: '[data-slide], [data-slide-to]',
  513. DATA_RIDE: '[data-ride="carousel"]'
  514. /**
  515. * ------------------------------------------------------------------------
  516. * Class Definition
  517. * ------------------------------------------------------------------------
  518. */
  519. };
  520. var Carousel =
  521. /*#__PURE__*/
  522. function () {
  523. function Carousel(element, config) {
  524. this._items = null;
  525. this._interval = null;
  526. this._activeElement = null;
  527. this._isPaused = false;
  528. this._isSliding = false;
  529. this.touchTimeout = null;
  530. this._config = this._getConfig(config);
  531. this._element = $$$1(element)[0];
  532. this._indicatorsElement = $$$1(this._element).find(Selector.INDICATORS)[0];
  533. this._addEventListeners();
  534. } // Getters
  535. var _proto = Carousel.prototype;
  536. // Public
  537. _proto.next = function next() {
  538. if (!this._isSliding) {
  539. this._slide(Direction.NEXT);
  540. }
  541. };
  542. _proto.nextWhenVisible = function nextWhenVisible() {
  543. // Don't call next when the page isn't visible
  544. // or the carousel or its parent isn't visible
  545. if (!document.hidden && $$$1(this._element).is(':visible') && $$$1(this._element).css('visibility') !== 'hidden') {
  546. this.next();
  547. }
  548. };
  549. _proto.prev = function prev() {
  550. if (!this._isSliding) {
  551. this._slide(Direction.PREV);
  552. }
  553. };
  554. _proto.pause = function pause(event) {
  555. if (!event) {
  556. this._isPaused = true;
  557. }
  558. if ($$$1(this._element).find(Selector.NEXT_PREV)[0]) {
  559. Util.triggerTransitionEnd(this._element);
  560. this.cycle(true);
  561. }
  562. clearInterval(this._interval);
  563. this._interval = null;
  564. };
  565. _proto.cycle = function cycle(event) {
  566. if (!event) {
  567. this._isPaused = false;
  568. }
  569. if (this._interval) {
  570. clearInterval(this._interval);
  571. this._interval = null;
  572. }
  573. if (this._config.interval && !this._isPaused) {
  574. this._interval = setInterval((document.visibilityState ? this.nextWhenVisible : this.next).bind(this), this._config.interval);
  575. }
  576. };
  577. _proto.to = function to(index) {
  578. var _this = this;
  579. this._activeElement = $$$1(this._element).find(Selector.ACTIVE_ITEM)[0];
  580. var activeIndex = this._getItemIndex(this._activeElement);
  581. if (index > this._items.length - 1 || index < 0) {
  582. return;
  583. }
  584. if (this._isSliding) {
  585. $$$1(this._element).one(Event.SLID, function () {
  586. return _this.to(index);
  587. });
  588. return;
  589. }
  590. if (activeIndex === index) {
  591. this.pause();
  592. this.cycle();
  593. return;
  594. }
  595. var direction = index > activeIndex ? Direction.NEXT : Direction.PREV;
  596. this._slide(direction, this._items[index]);
  597. };
  598. _proto.dispose = function dispose() {
  599. $$$1(this._element).off(EVENT_KEY);
  600. $$$1.removeData(this._element, DATA_KEY);
  601. this._items = null;
  602. this._config = null;
  603. this._element = null;
  604. this._interval = null;
  605. this._isPaused = null;
  606. this._isSliding = null;
  607. this._activeElement = null;
  608. this._indicatorsElement = null;
  609. }; // Private
  610. _proto._getConfig = function _getConfig(config) {
  611. config = _objectSpread({}, Default, config);
  612. Util.typeCheckConfig(NAME, config, DefaultType);
  613. return config;
  614. };
  615. _proto._addEventListeners = function _addEventListeners() {
  616. var _this2 = this;
  617. if (this._config.keyboard) {
  618. $$$1(this._element).on(Event.KEYDOWN, function (event) {
  619. return _this2._keydown(event);
  620. });
  621. }
  622. if (this._config.pause === 'hover') {
  623. $$$1(this._element).on(Event.MOUSEENTER, function (event) {
  624. return _this2.pause(event);
  625. }).on(Event.MOUSELEAVE, function (event) {
  626. return _this2.cycle(event);
  627. });
  628. if ('ontouchstart' in document.documentElement) {
  629. // If it's a touch-enabled device, mouseenter/leave are fired as
  630. // part of the mouse compatibility events on first tap - the carousel
  631. // would stop cycling until user tapped out of it;
  632. // here, we listen for touchend, explicitly pause the carousel
  633. // (as if it's the second time we tap on it, mouseenter compat event
  634. // is NOT fired) and after a timeout (to allow for mouse compatibility
  635. // events to fire) we explicitly restart cycling
  636. $$$1(this._element).on(Event.TOUCHEND, function () {
  637. _this2.pause();
  638. if (_this2.touchTimeout) {
  639. clearTimeout(_this2.touchTimeout);
  640. }
  641. _this2.touchTimeout = setTimeout(function (event) {
  642. return _this2.cycle(event);
  643. }, TOUCHEVENT_COMPAT_WAIT + _this2._config.interval);
  644. });
  645. }
  646. }
  647. };
  648. _proto._keydown = function _keydown(event) {
  649. if (/input|textarea/i.test(event.target.tagName)) {
  650. return;
  651. }
  652. switch (event.which) {
  653. case ARROW_LEFT_KEYCODE:
  654. event.preventDefault();
  655. this.prev();
  656. break;
  657. case ARROW_RIGHT_KEYCODE:
  658. event.preventDefault();
  659. this.next();
  660. break;
  661. default:
  662. }
  663. };
  664. _proto._getItemIndex = function _getItemIndex(element) {
  665. this._items = $$$1.makeArray($$$1(element).parent().find(Selector.ITEM));
  666. return this._items.indexOf(element);
  667. };
  668. _proto._getItemByDirection = function _getItemByDirection(direction, activeElement) {
  669. var isNextDirection = direction === Direction.NEXT;
  670. var isPrevDirection = direction === Direction.PREV;
  671. var activeIndex = this._getItemIndex(activeElement);
  672. var lastItemIndex = this._items.length - 1;
  673. var isGoingToWrap = isPrevDirection && activeIndex === 0 || isNextDirection && activeIndex === lastItemIndex;
  674. if (isGoingToWrap && !this._config.wrap) {
  675. return activeElement;
  676. }
  677. var delta = direction === Direction.PREV ? -1 : 1;
  678. var itemIndex = (activeIndex + delta) % this._items.length;
  679. return itemIndex === -1 ? this._items[this._items.length - 1] : this._items[itemIndex];
  680. };
  681. _proto._triggerSlideEvent = function _triggerSlideEvent(relatedTarget, eventDirectionName) {
  682. var targetIndex = this._getItemIndex(relatedTarget);
  683. var fromIndex = this._getItemIndex($$$1(this._element).find(Selector.ACTIVE_ITEM)[0]);
  684. var slideEvent = $$$1.Event(Event.SLIDE, {
  685. relatedTarget: relatedTarget,
  686. direction: eventDirectionName,
  687. from: fromIndex,
  688. to: targetIndex
  689. });
  690. $$$1(this._element).trigger(slideEvent);
  691. return slideEvent;
  692. };
  693. _proto._setActiveIndicatorElement = function _setActiveIndicatorElement(element) {
  694. if (this._indicatorsElement) {
  695. $$$1(this._indicatorsElement).find(Selector.ACTIVE).removeClass(ClassName.ACTIVE);
  696. var nextIndicator = this._indicatorsElement.children[this._getItemIndex(element)];
  697. if (nextIndicator) {
  698. $$$1(nextIndicator).addClass(ClassName.ACTIVE);
  699. }
  700. }
  701. };
  702. _proto._slide = function _slide(direction, element) {
  703. var _this3 = this;
  704. var activeElement = $$$1(this._element).find(Selector.ACTIVE_ITEM)[0];
  705. var activeElementIndex = this._getItemIndex(activeElement);
  706. var nextElement = element || activeElement && this._getItemByDirection(direction, activeElement);
  707. var nextElementIndex = this._getItemIndex(nextElement);
  708. var isCycling = Boolean(this._interval);
  709. var directionalClassName;
  710. var orderClassName;
  711. var eventDirectionName;
  712. if (direction === Direction.NEXT) {
  713. directionalClassName = ClassName.LEFT;
  714. orderClassName = ClassName.NEXT;
  715. eventDirectionName = Direction.LEFT;
  716. } else {
  717. directionalClassName = ClassName.RIGHT;
  718. orderClassName = ClassName.PREV;
  719. eventDirectionName = Direction.RIGHT;
  720. }
  721. if (nextElement && $$$1(nextElement).hasClass(ClassName.ACTIVE)) {
  722. this._isSliding = false;
  723. return;
  724. }
  725. var slideEvent = this._triggerSlideEvent(nextElement, eventDirectionName);
  726. if (slideEvent.isDefaultPrevented()) {
  727. return;
  728. }
  729. if (!activeElement || !nextElement) {
  730. // Some weirdness is happening, so we bail
  731. return;
  732. }
  733. this._isSliding = true;
  734. if (isCycling) {
  735. this.pause();
  736. }
  737. this._setActiveIndicatorElement(nextElement);
  738. var slidEvent = $$$1.Event(Event.SLID, {
  739. relatedTarget: nextElement,
  740. direction: eventDirectionName,
  741. from: activeElementIndex,
  742. to: nextElementIndex
  743. });
  744. if ($$$1(this._element).hasClass(ClassName.SLIDE)) {
  745. $$$1(nextElement).addClass(orderClassName);
  746. Util.reflow(nextElement);
  747. $$$1(activeElement).addClass(directionalClassName);
  748. $$$1(nextElement).addClass(directionalClassName);
  749. var transitionDuration = Util.getTransitionDurationFromElement(activeElement);
  750. $$$1(activeElement).one(Util.TRANSITION_END, function () {
  751. $$$1(nextElement).removeClass(directionalClassName + " " + orderClassName).addClass(ClassName.ACTIVE);
  752. $$$1(activeElement).removeClass(ClassName.ACTIVE + " " + orderClassName + " " + directionalClassName);
  753. _this3._isSliding = false;
  754. setTimeout(function () {
  755. return $$$1(_this3._element).trigger(slidEvent);
  756. }, 0);
  757. }).emulateTransitionEnd(transitionDuration);
  758. } else {
  759. $$$1(activeElement).removeClass(ClassName.ACTIVE);
  760. $$$1(nextElement).addClass(ClassName.ACTIVE);
  761. this._isSliding = false;
  762. $$$1(this._element).trigger(slidEvent);
  763. }
  764. if (isCycling) {
  765. this.cycle();
  766. }
  767. }; // Static
  768. Carousel._jQueryInterface = function _jQueryInterface(config) {
  769. return this.each(function () {
  770. var data = $$$1(this).data(DATA_KEY);
  771. var _config = _objectSpread({}, Default, $$$1(this).data());
  772. if (typeof config === 'object') {
  773. _config = _objectSpread({}, _config, config);
  774. }
  775. var action = typeof config === 'string' ? config : _config.slide;
  776. if (!data) {
  777. data = new Carousel(this, _config);
  778. $$$1(this).data(DATA_KEY, data);
  779. }
  780. if (typeof config === 'number') {
  781. data.to(config);
  782. } else if (typeof action === 'string') {
  783. if (typeof data[action] === 'undefined') {
  784. throw new TypeError("No method named \"" + action + "\"");
  785. }
  786. data[action]();
  787. } else if (_config.interval) {
  788. data.pause();
  789. data.cycle();
  790. }
  791. });
  792. };
  793. Carousel._dataApiClickHandler = function _dataApiClickHandler(event) {
  794. var selector = Util.getSelectorFromElement(this);
  795. if (!selector) {
  796. return;
  797. }
  798. var target = $$$1(selector)[0];
  799. if (!target || !$$$1(target).hasClass(ClassName.CAROUSEL)) {
  800. return;
  801. }
  802. var config = _objectSpread({}, $$$1(target).data(), $$$1(this).data());
  803. var slideIndex = this.getAttribute('data-slide-to');
  804. if (slideIndex) {
  805. config.interval = false;
  806. }
  807. Carousel._jQueryInterface.call($$$1(target), config);
  808. if (slideIndex) {
  809. $$$1(target).data(DATA_KEY).to(slideIndex);
  810. }
  811. event.preventDefault();
  812. };
  813. _createClass(Carousel, null, [{
  814. key: "VERSION",
  815. get: function get() {
  816. return VERSION;
  817. }
  818. }, {
  819. key: "Default",
  820. get: function get() {
  821. return Default;
  822. }
  823. }]);
  824. return Carousel;
  825. }();
  826. /**
  827. * ------------------------------------------------------------------------
  828. * Data Api implementation
  829. * ------------------------------------------------------------------------
  830. */
  831. $$$1(document).on(Event.CLICK_DATA_API, Selector.DATA_SLIDE, Carousel._dataApiClickHandler);
  832. $$$1(window).on(Event.LOAD_DATA_API, function () {
  833. $$$1(Selector.DATA_RIDE).each(function () {
  834. var $carousel = $$$1(this);
  835. Carousel._jQueryInterface.call($carousel, $carousel.data());
  836. });
  837. });
  838. /**
  839. * ------------------------------------------------------------------------
  840. * jQuery
  841. * ------------------------------------------------------------------------
  842. */
  843. $$$1.fn[NAME] = Carousel._jQueryInterface;
  844. $$$1.fn[NAME].Constructor = Carousel;
  845. $$$1.fn[NAME].noConflict = function () {
  846. $$$1.fn[NAME] = JQUERY_NO_CONFLICT;
  847. return Carousel._jQueryInterface;
  848. };
  849. return Carousel;
  850. }($);
  851. /**
  852. * --------------------------------------------------------------------------
  853. * Bootstrap (v4.1.0): collapse.js
  854. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  855. * --------------------------------------------------------------------------
  856. */
  857. var Collapse = function ($$$1) {
  858. /**
  859. * ------------------------------------------------------------------------
  860. * Constants
  861. * ------------------------------------------------------------------------
  862. */
  863. var NAME = 'collapse';
  864. var VERSION = '4.1.0';
  865. var DATA_KEY = 'bs.collapse';
  866. var EVENT_KEY = "." + DATA_KEY;
  867. var DATA_API_KEY = '.data-api';
  868. var JQUERY_NO_CONFLICT = $$$1.fn[NAME];
  869. var Default = {
  870. toggle: true,
  871. parent: ''
  872. };
  873. var DefaultType = {
  874. toggle: 'boolean',
  875. parent: '(string|element)'
  876. };
  877. var Event = {
  878. SHOW: "show" + EVENT_KEY,
  879. SHOWN: "shown" + EVENT_KEY,
  880. HIDE: "hide" + EVENT_KEY,
  881. HIDDEN: "hidden" + EVENT_KEY,
  882. CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY
  883. };
  884. var ClassName = {
  885. SHOW: 'show',
  886. COLLAPSE: 'collapse',
  887. COLLAPSING: 'collapsing',
  888. COLLAPSED: 'collapsed'
  889. };
  890. var Dimension = {
  891. WIDTH: 'width',
  892. HEIGHT: 'height'
  893. };
  894. var Selector = {
  895. ACTIVES: '.show, .collapsing',
  896. DATA_TOGGLE: '[data-toggle="collapse"]'
  897. /**
  898. * ------------------------------------------------------------------------
  899. * Class Definition
  900. * ------------------------------------------------------------------------
  901. */
  902. };
  903. var Collapse =
  904. /*#__PURE__*/
  905. function () {
  906. function Collapse(element, config) {
  907. this._isTransitioning = false;
  908. this._element = element;
  909. this._config = this._getConfig(config);
  910. this._triggerArray = $$$1.makeArray($$$1("[data-toggle=\"collapse\"][href=\"#" + element.id + "\"]," + ("[data-toggle=\"collapse\"][data-target=\"#" + element.id + "\"]")));
  911. var tabToggles = $$$1(Selector.DATA_TOGGLE);
  912. for (var i = 0; i < tabToggles.length; i++) {
  913. var elem = tabToggles[i];
  914. var selector = Util.getSelectorFromElement(elem);
  915. if (selector !== null && $$$1(selector).filter(element).length > 0) {
  916. this._selector = selector;
  917. this._triggerArray.push(elem);
  918. }
  919. }
  920. this._parent = this._config.parent ? this._getParent() : null;
  921. if (!this._config.parent) {
  922. this._addAriaAndCollapsedClass(this._element, this._triggerArray);
  923. }
  924. if (this._config.toggle) {
  925. this.toggle();
  926. }
  927. } // Getters
  928. var _proto = Collapse.prototype;
  929. // Public
  930. _proto.toggle = function toggle() {
  931. if ($$$1(this._element).hasClass(ClassName.SHOW)) {
  932. this.hide();
  933. } else {
  934. this.show();
  935. }
  936. };
  937. _proto.show = function show() {
  938. var _this = this;
  939. if (this._isTransitioning || $$$1(this._element).hasClass(ClassName.SHOW)) {
  940. return;
  941. }
  942. var actives;
  943. var activesData;
  944. if (this._parent) {
  945. actives = $$$1.makeArray($$$1(this._parent).find(Selector.ACTIVES).filter("[data-parent=\"" + this._config.parent + "\"]"));
  946. if (actives.length === 0) {
  947. actives = null;
  948. }
  949. }
  950. if (actives) {
  951. activesData = $$$1(actives).not(this._selector).data(DATA_KEY);
  952. if (activesData && activesData._isTransitioning) {
  953. return;
  954. }
  955. }
  956. var startEvent = $$$1.Event(Event.SHOW);
  957. $$$1(this._element).trigger(startEvent);
  958. if (startEvent.isDefaultPrevented()) {
  959. return;
  960. }
  961. if (actives) {
  962. Collapse._jQueryInterface.call($$$1(actives).not(this._selector), 'hide');
  963. if (!activesData) {
  964. $$$1(actives).data(DATA_KEY, null);
  965. }
  966. }
  967. var dimension = this._getDimension();
  968. $$$1(this._element).removeClass(ClassName.COLLAPSE).addClass(ClassName.COLLAPSING);
  969. this._element.style[dimension] = 0;
  970. if (this._triggerArray.length > 0) {
  971. $$$1(this._triggerArray).removeClass(ClassName.COLLAPSED).attr('aria-expanded', true);
  972. }
  973. this.setTransitioning(true);
  974. var complete = function complete() {
  975. $$$1(_this._element).removeClass(ClassName.COLLAPSING).addClass(ClassName.COLLAPSE).addClass(ClassName.SHOW);
  976. _this._element.style[dimension] = '';
  977. _this.setTransitioning(false);
  978. $$$1(_this._element).trigger(Event.SHOWN);
  979. };
  980. var capitalizedDimension = dimension[0].toUpperCase() + dimension.slice(1);
  981. var scrollSize = "scroll" + capitalizedDimension;
  982. var transitionDuration = Util.getTransitionDurationFromElement(this._element);
  983. $$$1(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
  984. this._element.style[dimension] = this._element[scrollSize] + "px";
  985. };
  986. _proto.hide = function hide() {
  987. var _this2 = this;
  988. if (this._isTransitioning || !$$$1(this._element).hasClass(ClassName.SHOW)) {
  989. return;
  990. }
  991. var startEvent = $$$1.Event(Event.HIDE);
  992. $$$1(this._element).trigger(startEvent);
  993. if (startEvent.isDefaultPrevented()) {
  994. return;
  995. }
  996. var dimension = this._getDimension();
  997. this._element.style[dimension] = this._element.getBoundingClientRect()[dimension] + "px";
  998. Util.reflow(this._element);
  999. $$$1(this._element).addClass(ClassName.COLLAPSING).removeClass(ClassName.COLLAPSE).removeClass(ClassName.SHOW);
  1000. if (this._triggerArray.length > 0) {
  1001. for (var i = 0; i < this._triggerArray.length; i++) {
  1002. var trigger = this._triggerArray[i];
  1003. var selector = Util.getSelectorFromElement(trigger);
  1004. if (selector !== null) {
  1005. var $elem = $$$1(selector);
  1006. if (!$elem.hasClass(ClassName.SHOW)) {
  1007. $$$1(trigger).addClass(ClassName.COLLAPSED).attr('aria-expanded', false);
  1008. }
  1009. }
  1010. }
  1011. }
  1012. this.setTransitioning(true);
  1013. var complete = function complete() {
  1014. _this2.setTransitioning(false);
  1015. $$$1(_this2._element).removeClass(ClassName.COLLAPSING).addClass(ClassName.COLLAPSE).trigger(Event.HIDDEN);
  1016. };
  1017. this._element.style[dimension] = '';
  1018. var transitionDuration = Util.getTransitionDurationFromElement(this._element);
  1019. $$$1(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
  1020. };
  1021. _proto.setTransitioning = function setTransitioning(isTransitioning) {
  1022. this._isTransitioning = isTransitioning;
  1023. };
  1024. _proto.dispose = function dispose() {
  1025. $$$1.removeData(this._element, DATA_KEY);
  1026. this._config = null;
  1027. this._parent = null;
  1028. this._element = null;
  1029. this._triggerArray = null;
  1030. this._isTransitioning = null;
  1031. }; // Private
  1032. _proto._getConfig = function _getConfig(config) {
  1033. config = _objectSpread({}, Default, config);
  1034. config.toggle = Boolean(config.toggle); // Coerce string values
  1035. Util.typeCheckConfig(NAME, config, DefaultType);
  1036. return config;
  1037. };
  1038. _proto._getDimension = function _getDimension() {
  1039. var hasWidth = $$$1(this._element).hasClass(Dimension.WIDTH);
  1040. return hasWidth ? Dimension.WIDTH : Dimension.HEIGHT;
  1041. };
  1042. _proto._getParent = function _getParent() {
  1043. var _this3 = this;
  1044. var parent = null;
  1045. if (Util.isElement(this._config.parent)) {
  1046. parent = this._config.parent; // It's a jQuery object
  1047. if (typeof this._config.parent.jquery !== 'undefined') {
  1048. parent = this._config.parent[0];
  1049. }
  1050. } else {
  1051. parent = $$$1(this._config.parent)[0];
  1052. }
  1053. var selector = "[data-toggle=\"collapse\"][data-parent=\"" + this._config.parent + "\"]";
  1054. $$$1(parent).find(selector).each(function (i, element) {
  1055. _this3._addAriaAndCollapsedClass(Collapse._getTargetFromElement(element), [element]);
  1056. });
  1057. return parent;
  1058. };
  1059. _proto._addAriaAndCollapsedClass = function _addAriaAndCollapsedClass(element, triggerArray) {
  1060. if (element) {
  1061. var isOpen = $$$1(element).hasClass(ClassName.SHOW);
  1062. if (triggerArray.length > 0) {
  1063. $$$1(triggerArray).toggleClass(ClassName.COLLAPSED, !isOpen).attr('aria-expanded', isOpen);
  1064. }
  1065. }
  1066. }; // Static
  1067. Collapse._getTargetFromElement = function _getTargetFromElement(element) {
  1068. var selector = Util.getSelectorFromElement(element);
  1069. return selector ? $$$1(selector)[0] : null;
  1070. };
  1071. Collapse._jQueryInterface = function _jQueryInterface(config) {
  1072. return this.each(function () {
  1073. var $this = $$$1(this);
  1074. var data = $this.data(DATA_KEY);
  1075. var _config = _objectSpread({}, Default, $this.data(), typeof config === 'object' && config);
  1076. if (!data && _config.toggle && /show|hide/.test(config)) {
  1077. _config.toggle = false;
  1078. }
  1079. if (!data) {
  1080. data = new Collapse(this, _config);
  1081. $this.data(DATA_KEY, data);
  1082. }
  1083. if (typeof config === 'string') {
  1084. if (typeof data[config] === 'undefined') {
  1085. throw new TypeError("No method named \"" + config + "\"");
  1086. }
  1087. data[config]();
  1088. }
  1089. });
  1090. };
  1091. _createClass(Collapse, null, [{
  1092. key: "VERSION",
  1093. get: function get() {
  1094. return VERSION;
  1095. }
  1096. }, {
  1097. key: "Default",
  1098. get: function get() {
  1099. return Default;
  1100. }
  1101. }]);
  1102. return Collapse;
  1103. }();
  1104. /**
  1105. * ------------------------------------------------------------------------
  1106. * Data Api implementation
  1107. * ------------------------------------------------------------------------
  1108. */
  1109. $$$1(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) {
  1110. // preventDefault only for <a> elements (which change the URL) not inside the collapsible element
  1111. if (event.currentTarget.tagName === 'A') {
  1112. event.preventDefault();
  1113. }
  1114. var $trigger = $$$1(this);
  1115. var selector = Util.getSelectorFromElement(this);
  1116. $$$1(selector).each(function () {
  1117. var $target = $$$1(this);
  1118. var data = $target.data(DATA_KEY);
  1119. var config = data ? 'toggle' : $trigger.data();
  1120. Collapse._jQueryInterface.call($target, config);
  1121. });
  1122. });
  1123. /**
  1124. * ------------------------------------------------------------------------
  1125. * jQuery
  1126. * ------------------------------------------------------------------------
  1127. */
  1128. $$$1.fn[NAME] = Collapse._jQueryInterface;
  1129. $$$1.fn[NAME].Constructor = Collapse;
  1130. $$$1.fn[NAME].noConflict = function () {
  1131. $$$1.fn[NAME] = JQUERY_NO_CONFLICT;
  1132. return Collapse._jQueryInterface;
  1133. };
  1134. return Collapse;
  1135. }($);
  1136. /**
  1137. * --------------------------------------------------------------------------
  1138. * Bootstrap (v4.1.0): dropdown.js
  1139. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  1140. * --------------------------------------------------------------------------
  1141. */
  1142. var Dropdown = function ($$$1) {
  1143. /**
  1144. * ------------------------------------------------------------------------
  1145. * Constants
  1146. * ------------------------------------------------------------------------
  1147. */
  1148. var NAME = 'dropdown';
  1149. var VERSION = '4.1.0';
  1150. var DATA_KEY = 'bs.dropdown';
  1151. var EVENT_KEY = "." + DATA_KEY;
  1152. var DATA_API_KEY = '.data-api';
  1153. var JQUERY_NO_CONFLICT = $$$1.fn[NAME];
  1154. var ESCAPE_KEYCODE = 27; // KeyboardEvent.which value for Escape (Esc) key
  1155. var SPACE_KEYCODE = 32; // KeyboardEvent.which value for space key
  1156. var TAB_KEYCODE = 9; // KeyboardEvent.which value for tab key
  1157. var ARROW_UP_KEYCODE = 38; // KeyboardEvent.which value for up arrow key
  1158. var ARROW_DOWN_KEYCODE = 40; // KeyboardEvent.which value for down arrow key
  1159. var RIGHT_MOUSE_BUTTON_WHICH = 3; // MouseEvent.which value for the right button (assuming a right-handed mouse)
  1160. var REGEXP_KEYDOWN = new RegExp(ARROW_UP_KEYCODE + "|" + ARROW_DOWN_KEYCODE + "|" + ESCAPE_KEYCODE);
  1161. var Event = {
  1162. HIDE: "hide" + EVENT_KEY,
  1163. HIDDEN: "hidden" + EVENT_KEY,
  1164. SHOW: "show" + EVENT_KEY,
  1165. SHOWN: "shown" + EVENT_KEY,
  1166. CLICK: "click" + EVENT_KEY,
  1167. CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY,
  1168. KEYDOWN_DATA_API: "keydown" + EVENT_KEY + DATA_API_KEY,
  1169. KEYUP_DATA_API: "keyup" + EVENT_KEY + DATA_API_KEY
  1170. };
  1171. var ClassName = {
  1172. DISABLED: 'disabled',
  1173. SHOW: 'show',
  1174. DROPUP: 'dropup',
  1175. DROPRIGHT: 'dropright',
  1176. DROPLEFT: 'dropleft',
  1177. MENURIGHT: 'dropdown-menu-right',
  1178. MENULEFT: 'dropdown-menu-left',
  1179. POSITION_STATIC: 'position-static'
  1180. };
  1181. var Selector = {
  1182. DATA_TOGGLE: '[data-toggle="dropdown"]',
  1183. FORM_CHILD: '.dropdown form',
  1184. MENU: '.dropdown-menu',
  1185. NAVBAR_NAV: '.navbar-nav',
  1186. VISIBLE_ITEMS: '.dropdown-menu .dropdown-item:not(.disabled):not(:disabled)'
  1187. };
  1188. var AttachmentMap = {
  1189. TOP: 'top-start',
  1190. TOPEND: 'top-end',
  1191. BOTTOM: 'bottom-start',
  1192. BOTTOMEND: 'bottom-end',
  1193. RIGHT: 'right-start',
  1194. RIGHTEND: 'right-end',
  1195. LEFT: 'left-start',
  1196. LEFTEND: 'left-end'
  1197. };
  1198. var Default = {
  1199. offset: 0,
  1200. flip: true,
  1201. boundary: 'scrollParent',
  1202. reference: 'toggle',
  1203. display: 'dynamic'
  1204. };
  1205. var DefaultType = {
  1206. offset: '(number|string|function)',
  1207. flip: 'boolean',
  1208. boundary: '(string|element)',
  1209. reference: '(string|element)',
  1210. display: 'string'
  1211. /**
  1212. * ------------------------------------------------------------------------
  1213. * Class Definition
  1214. * ------------------------------------------------------------------------
  1215. */
  1216. };
  1217. var Dropdown =
  1218. /*#__PURE__*/
  1219. function () {
  1220. function Dropdown(element, config) {
  1221. this._element = element;
  1222. this._popper = null;
  1223. this._config = this._getConfig(config);
  1224. this._menu = this._getMenuElement();
  1225. this._inNavbar = this._detectNavbar();
  1226. this._addEventListeners();
  1227. } // Getters
  1228. var _proto = Dropdown.prototype;
  1229. // Public
  1230. _proto.toggle = function toggle() {
  1231. if (this._element.disabled || $$$1(this._element).hasClass(ClassName.DISABLED)) {
  1232. return;
  1233. }
  1234. var parent = Dropdown._getParentFromElement(this._element);
  1235. var isActive = $$$1(this._menu).hasClass(ClassName.SHOW);
  1236. Dropdown._clearMenus();
  1237. if (isActive) {
  1238. return;
  1239. }
  1240. var relatedTarget = {
  1241. relatedTarget: this._element
  1242. };
  1243. var showEvent = $$$1.Event(Event.SHOW, relatedTarget);
  1244. $$$1(parent).trigger(showEvent);
  1245. if (showEvent.isDefaultPrevented()) {
  1246. return;
  1247. } // Disable totally Popper.js for Dropdown in Navbar
  1248. if (!this._inNavbar) {
  1249. /**
  1250. * Check for Popper dependency
  1251. * Popper - https://popper.js.org
  1252. */
  1253. if (typeof Popper === 'undefined') {
  1254. throw new TypeError('Bootstrap dropdown require Popper.js (https://popper.js.org)');
  1255. }
  1256. var referenceElement = this._element;
  1257. if (this._config.reference === 'parent') {
  1258. referenceElement = parent;
  1259. } else if (Util.isElement(this._config.reference)) {
  1260. referenceElement = this._config.reference; // Check if it's jQuery element
  1261. if (typeof this._config.reference.jquery !== 'undefined') {
  1262. referenceElement = this._config.reference[0];
  1263. }
  1264. } // If boundary is not `scrollParent`, then set position to `static`
  1265. // to allow the menu to "escape" the scroll parent's boundaries
  1266. // https://github.com/twbs/bootstrap/issues/24251
  1267. if (this._config.boundary !== 'scrollParent') {
  1268. $$$1(parent).addClass(ClassName.POSITION_STATIC);
  1269. }
  1270. this._popper = new Popper(referenceElement, this._menu, this._getPopperConfig());
  1271. } // If this is a touch-enabled device we add extra
  1272. // empty mouseover listeners to the body's immediate children;
  1273. // only needed because of broken event delegation on iOS
  1274. // https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html
  1275. if ('ontouchstart' in document.documentElement && $$$1(parent).closest(Selector.NAVBAR_NAV).length === 0) {
  1276. $$$1(document.body).children().on('mouseover', null, $$$1.noop);
  1277. }
  1278. this._element.focus();
  1279. this._element.setAttribute('aria-expanded', true);
  1280. $$$1(this._menu).toggleClass(ClassName.SHOW);
  1281. $$$1(parent).toggleClass(ClassName.SHOW).trigger($$$1.Event(Event.SHOWN, relatedTarget));
  1282. };
  1283. _proto.dispose = function dispose() {
  1284. $$$1.removeData(this._element, DATA_KEY);
  1285. $$$1(this._element).off(EVENT_KEY);
  1286. this._element = null;
  1287. this._menu = null;
  1288. if (this._popper !== null) {
  1289. this._popper.destroy();
  1290. this._popper = null;
  1291. }
  1292. };
  1293. _proto.update = function update() {
  1294. this._inNavbar = this._detectNavbar();
  1295. if (this._popper !== null) {
  1296. this._popper.scheduleUpdate();
  1297. }
  1298. }; // Private
  1299. _proto._addEventListeners = function _addEventListeners() {
  1300. var _this = this;
  1301. $$$1(this._element).on(Event.CLICK, function (event) {
  1302. event.preventDefault();
  1303. event.stopPropagation();
  1304. _this.toggle();
  1305. });
  1306. };
  1307. _proto._getConfig = function _getConfig(config) {
  1308. config = _objectSpread({}, this.constructor.Default, $$$1(this._element).data(), config);
  1309. Util.typeCheckConfig(NAME, config, this.constructor.DefaultType);
  1310. return config;
  1311. };
  1312. _proto._getMenuElement = function _getMenuElement() {
  1313. if (!this._menu) {
  1314. var parent = Dropdown._getParentFromElement(this._element);
  1315. this._menu = $$$1(parent).find(Selector.MENU)[0];
  1316. }
  1317. return this._menu;
  1318. };
  1319. _proto._getPlacement = function _getPlacement() {
  1320. var $parentDropdown = $$$1(this._element).parent();
  1321. var placement = AttachmentMap.BOTTOM; // Handle dropup
  1322. if ($parentDropdown.hasClass(ClassName.DROPUP)) {
  1323. placement = AttachmentMap.TOP;
  1324. if ($$$1(this._menu).hasClass(ClassName.MENURIGHT)) {
  1325. placement = AttachmentMap.TOPEND;
  1326. }
  1327. } else if ($parentDropdown.hasClass(ClassName.DROPRIGHT)) {
  1328. placement = AttachmentMap.RIGHT;
  1329. } else if ($parentDropdown.hasClass(ClassName.DROPLEFT)) {
  1330. placement = AttachmentMap.LEFT;
  1331. } else if ($$$1(this._menu).hasClass(ClassName.MENURIGHT)) {
  1332. placement = AttachmentMap.BOTTOMEND;
  1333. }
  1334. return placement;
  1335. };
  1336. _proto._detectNavbar = function _detectNavbar() {
  1337. return $$$1(this._element).closest('.navbar').length > 0;
  1338. };
  1339. _proto._getPopperConfig = function _getPopperConfig() {
  1340. var _this2 = this;
  1341. var offsetConf = {};
  1342. if (typeof this._config.offset === 'function') {
  1343. offsetConf.fn = function (data) {
  1344. data.offsets = _objectSpread({}, data.offsets, _this2._config.offset(data.offsets) || {});
  1345. return data;
  1346. };
  1347. } else {
  1348. offsetConf.offset = this._config.offset;
  1349. }
  1350. var popperConfig = {
  1351. placement: this._getPlacement(),
  1352. modifiers: {
  1353. offset: offsetConf,
  1354. flip: {
  1355. enabled: this._config.flip
  1356. },
  1357. preventOverflow: {
  1358. boundariesElement: this._config.boundary
  1359. }
  1360. } // Disable Popper.js if we have a static display
  1361. };
  1362. if (this._config.display === 'static') {
  1363. popperConfig.modifiers.applyStyle = {
  1364. enabled: false
  1365. };
  1366. }
  1367. return popperConfig;
  1368. }; // Static
  1369. Dropdown._jQueryInterface = function _jQueryInterface(config) {
  1370. return this.each(function () {
  1371. var data = $$$1(this).data(DATA_KEY);
  1372. var _config = typeof config === 'object' ? config : null;
  1373. if (!data) {
  1374. data = new Dropdown(this, _config);
  1375. $$$1(this).data(DATA_KEY, data);
  1376. }
  1377. if (typeof config === 'string') {
  1378. if (typeof data[config] === 'undefined') {
  1379. throw new TypeError("No method named \"" + config + "\"");
  1380. }
  1381. data[config]();
  1382. }
  1383. });
  1384. };
  1385. Dropdown._clearMenus = function _clearMenus(event) {
  1386. if (event && (event.which === RIGHT_MOUSE_BUTTON_WHICH || event.type === 'keyup' && event.which !== TAB_KEYCODE)) {
  1387. return;
  1388. }
  1389. var toggles = $$$1.makeArray($$$1(Selector.DATA_TOGGLE));
  1390. for (var i = 0; i < toggles.length; i++) {
  1391. var parent = Dropdown._getParentFromElement(toggles[i]);
  1392. var context = $$$1(toggles[i]).data(DATA_KEY);
  1393. var relatedTarget = {
  1394. relatedTarget: toggles[i]
  1395. };
  1396. if (!context) {
  1397. continue;
  1398. }
  1399. var dropdownMenu = context._menu;
  1400. if (!$$$1(parent).hasClass(ClassName.SHOW)) {
  1401. continue;
  1402. }
  1403. if (event && (event.type === 'click' && /input|textarea/i.test(event.target.tagName) || event.type === 'keyup' && event.which === TAB_KEYCODE) && $$$1.contains(parent, event.target)) {
  1404. continue;
  1405. }
  1406. var hideEvent = $$$1.Event(Event.HIDE, relatedTarget);
  1407. $$$1(parent).trigger(hideEvent);
  1408. if (hideEvent.isDefaultPrevented()) {
  1409. continue;
  1410. } // If this is a touch-enabled device we remove the extra
  1411. // empty mouseover listeners we added for iOS support
  1412. if ('ontouchstart' in document.documentElement) {
  1413. $$$1(document.body).children().off('mouseover', null, $$$1.noop);
  1414. }
  1415. toggles[i].setAttribute('aria-expanded', 'false');
  1416. $$$1(dropdownMenu).removeClass(ClassName.SHOW);
  1417. $$$1(parent).removeClass(ClassName.SHOW).trigger($$$1.Event(Event.HIDDEN, relatedTarget));
  1418. }
  1419. };
  1420. Dropdown._getParentFromElement = function _getParentFromElement(element) {
  1421. var parent;
  1422. var selector = Util.getSelectorFromElement(element);
  1423. if (selector) {
  1424. parent = $$$1(selector)[0];
  1425. }
  1426. return parent || element.parentNode;
  1427. }; // eslint-disable-next-line complexity
  1428. Dropdown._dataApiKeydownHandler = function _dataApiKeydownHandler(event) {
  1429. // If not input/textarea:
  1430. // - And not a key in REGEXP_KEYDOWN => not a dropdown command
  1431. // If input/textarea:
  1432. // - If space key => not a dropdown command
  1433. // - If key is other than escape
  1434. // - If key is not up or down => not a dropdown command
  1435. // - If trigger inside the menu => not a dropdown command
  1436. if (/input|textarea/i.test(event.target.tagName) ? event.which === SPACE_KEYCODE || event.which !== ESCAPE_KEYCODE && (event.which !== ARROW_DOWN_KEYCODE && event.which !== ARROW_UP_KEYCODE || $$$1(event.target).closest(Selector.MENU).length) : !REGEXP_KEYDOWN.test(event.which)) {
  1437. return;
  1438. }
  1439. event.preventDefault();
  1440. event.stopPropagation();
  1441. if (this.disabled || $$$1(this).hasClass(ClassName.DISABLED)) {
  1442. return;
  1443. }
  1444. var parent = Dropdown._getParentFromElement(this);
  1445. var isActive = $$$1(parent).hasClass(ClassName.SHOW);
  1446. if (!isActive && (event.which !== ESCAPE_KEYCODE || event.which !== SPACE_KEYCODE) || isActive && (event.which === ESCAPE_KEYCODE || event.which === SPACE_KEYCODE)) {
  1447. if (event.which === ESCAPE_KEYCODE) {
  1448. var toggle = $$$1(parent).find(Selector.DATA_TOGGLE)[0];
  1449. $$$1(toggle).trigger('focus');
  1450. }
  1451. $$$1(this).trigger('click');
  1452. return;
  1453. }
  1454. var items = $$$1(parent).find(Selector.VISIBLE_ITEMS).get();
  1455. if (items.length === 0) {
  1456. return;
  1457. }
  1458. var index = items.indexOf(event.target);
  1459. if (event.which === ARROW_UP_KEYCODE && index > 0) {
  1460. // Up
  1461. index--;
  1462. }
  1463. if (event.which === ARROW_DOWN_KEYCODE && index < items.length - 1) {
  1464. // Down
  1465. index++;
  1466. }
  1467. if (index < 0) {
  1468. index = 0;
  1469. }
  1470. items[index].focus();
  1471. };
  1472. _createClass(Dropdown, null, [{
  1473. key: "VERSION",
  1474. get: function get() {
  1475. return VERSION;
  1476. }
  1477. }, {
  1478. key: "Default",
  1479. get: function get() {
  1480. return Default;
  1481. }
  1482. }, {
  1483. key: "DefaultType",
  1484. get: function get() {
  1485. return DefaultType;
  1486. }
  1487. }]);
  1488. return Dropdown;
  1489. }();
  1490. /**
  1491. * ------------------------------------------------------------------------
  1492. * Data Api implementation
  1493. * ------------------------------------------------------------------------
  1494. */
  1495. $$$1(document).on(Event.KEYDOWN_DATA_API, Selector.DATA_TOGGLE, Dropdown._dataApiKeydownHandler).on(Event.KEYDOWN_DATA_API, Selector.MENU, Dropdown._dataApiKeydownHandler).on(Event.CLICK_DATA_API + " " + Event.KEYUP_DATA_API, Dropdown._clearMenus).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) {
  1496. event.preventDefault();
  1497. event.stopPropagation();
  1498. Dropdown._jQueryInterface.call($$$1(this), 'toggle');
  1499. }).on(Event.CLICK_DATA_API, Selector.FORM_CHILD, function (e) {
  1500. e.stopPropagation();
  1501. });
  1502. /**
  1503. * ------------------------------------------------------------------------
  1504. * jQuery
  1505. * ------------------------------------------------------------------------
  1506. */
  1507. $$$1.fn[NAME] = Dropdown._jQueryInterface;
  1508. $$$1.fn[NAME].Constructor = Dropdown;
  1509. $$$1.fn[NAME].noConflict = function () {
  1510. $$$1.fn[NAME] = JQUERY_NO_CONFLICT;
  1511. return Dropdown._jQueryInterface;
  1512. };
  1513. return Dropdown;
  1514. }($, Popper);
  1515. /**
  1516. * --------------------------------------------------------------------------
  1517. * Bootstrap (v4.1.0): modal.js
  1518. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  1519. * --------------------------------------------------------------------------
  1520. */
  1521. var Modal = function ($$$1) {
  1522. /**
  1523. * ------------------------------------------------------------------------
  1524. * Constants
  1525. * ------------------------------------------------------------------------
  1526. */
  1527. var NAME = 'modal';
  1528. var VERSION = '4.1.0';
  1529. var DATA_KEY = 'bs.modal';
  1530. var EVENT_KEY = "." + DATA_KEY;
  1531. var DATA_API_KEY = '.data-api';
  1532. var JQUERY_NO_CONFLICT = $$$1.fn[NAME];
  1533. var ESCAPE_KEYCODE = 27; // KeyboardEvent.which value for Escape (Esc) key
  1534. var Default = {
  1535. backdrop: true,
  1536. keyboard: true,
  1537. focus: true,
  1538. show: true
  1539. };
  1540. var DefaultType = {
  1541. backdrop: '(boolean|string)',
  1542. keyboard: 'boolean',
  1543. focus: 'boolean',
  1544. show: 'boolean'
  1545. };
  1546. var Event = {
  1547. HIDE: "hide" + EVENT_KEY,
  1548. HIDDEN: "hidden" + EVENT_KEY,
  1549. SHOW: "show" + EVENT_KEY,
  1550. SHOWN: "shown" + EVENT_KEY,
  1551. FOCUSIN: "focusin" + EVENT_KEY,
  1552. RESIZE: "resize" + EVENT_KEY,
  1553. CLICK_DISMISS: "click.dismiss" + EVENT_KEY,
  1554. KEYDOWN_DISMISS: "keydown.dismiss" + EVENT_KEY,
  1555. MOUSEUP_DISMISS: "mouseup.dismiss" + EVENT_KEY,
  1556. MOUSEDOWN_DISMISS: "mousedown.dismiss" + EVENT_KEY,
  1557. CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY
  1558. };
  1559. var ClassName = {
  1560. SCROLLBAR_MEASURER: 'modal-scrollbar-measure',
  1561. BACKDROP: 'modal-backdrop',
  1562. OPEN: 'modal-open',
  1563. FADE: 'fade',
  1564. SHOW: 'show'
  1565. };
  1566. var Selector = {
  1567. DIALOG: '.modal-dialog',
  1568. DATA_TOGGLE: '[data-toggle="modal"]',
  1569. DATA_DISMISS: '[data-dismiss="modal"]',
  1570. FIXED_CONTENT: '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top',
  1571. STICKY_CONTENT: '.sticky-top',
  1572. NAVBAR_TOGGLER: '.navbar-toggler'
  1573. /**
  1574. * ------------------------------------------------------------------------
  1575. * Class Definition
  1576. * ------------------------------------------------------------------------
  1577. */
  1578. };
  1579. var Modal =
  1580. /*#__PURE__*/
  1581. function () {
  1582. function Modal(element, config) {
  1583. this._config = this._getConfig(config);
  1584. this._element = element;
  1585. this._dialog = $$$1(element).find(Selector.DIALOG)[0];
  1586. this._backdrop = null;
  1587. this._isShown = false;
  1588. this._isBodyOverflowing = false;
  1589. this._ignoreBackdropClick = false;
  1590. this._scrollbarWidth = 0;
  1591. } // Getters
  1592. var _proto = Modal.prototype;
  1593. // Public
  1594. _proto.toggle = function toggle(relatedTarget) {
  1595. return this._isShown ? this.hide() : this.show(relatedTarget);
  1596. };
  1597. _proto.show = function show(relatedTarget) {
  1598. var _this = this;
  1599. if (this._isTransitioning || this._isShown) {
  1600. return;
  1601. }
  1602. if ($$$1(this._element).hasClass(ClassName.FADE)) {
  1603. this._isTransitioning = true;
  1604. }
  1605. var showEvent = $$$1.Event(Event.SHOW, {
  1606. relatedTarget: relatedTarget
  1607. });
  1608. $$$1(this._element).trigger(showEvent);
  1609. if (this._isShown || showEvent.isDefaultPrevented()) {
  1610. return;
  1611. }
  1612. this._isShown = true;
  1613. this._checkScrollbar();
  1614. this._setScrollbar();
  1615. this._adjustDialog();
  1616. $$$1(document.body).addClass(ClassName.OPEN);
  1617. this._setEscapeEvent();
  1618. this._setResizeEvent();
  1619. $$$1(this._element).on(Event.CLICK_DISMISS, Selector.DATA_DISMISS, function (event) {
  1620. return _this.hide(event);
  1621. });
  1622. $$$1(this._dialog).on(Event.MOUSEDOWN_DISMISS, function () {
  1623. $$$1(_this._element).one(Event.MOUSEUP_DISMISS, function (event) {
  1624. if ($$$1(event.target).is(_this._element)) {
  1625. _this._ignoreBackdropClick = true;
  1626. }
  1627. });
  1628. });
  1629. this._showBackdrop(function () {
  1630. return _this._showElement(relatedTarget);
  1631. });
  1632. };
  1633. _proto.hide = function hide(event) {
  1634. var _this2 = this;
  1635. if (event) {
  1636. event.preventDefault();
  1637. }
  1638. if (this._isTransitioning || !this._isShown) {
  1639. return;
  1640. }
  1641. var hideEvent = $$$1.Event(Event.HIDE);
  1642. $$$1(this._element).trigger(hideEvent);
  1643. if (!this._isShown || hideEvent.isDefaultPrevented()) {
  1644. return;
  1645. }
  1646. this._isShown = false;
  1647. var transition = $$$1(this._element).hasClass(ClassName.FADE);
  1648. if (transition) {
  1649. this._isTransitioning = true;
  1650. }
  1651. this._setEscapeEvent();
  1652. this._setResizeEvent();
  1653. $$$1(document).off(Event.FOCUSIN);
  1654. $$$1(this._element).removeClass(ClassName.SHOW);
  1655. $$$1(this._element).off(Event.CLICK_DISMISS);
  1656. $$$1(this._dialog).off(Event.MOUSEDOWN_DISMISS);
  1657. if (transition) {
  1658. var transitionDuration = Util.getTransitionDurationFromElement(this._element);
  1659. $$$1(this._element).one(Util.TRANSITION_END, function (event) {
  1660. return _this2._hideModal(event);
  1661. }).emulateTransitionEnd(transitionDuration);
  1662. } else {
  1663. this._hideModal();
  1664. }
  1665. };
  1666. _proto.dispose = function dispose() {
  1667. $$$1.removeData(this._element, DATA_KEY);
  1668. $$$1(window, document, this._element, this._backdrop).off(EVENT_KEY);
  1669. this._config = null;
  1670. this._element = null;
  1671. this._dialog = null;
  1672. this._backdrop = null;
  1673. this._isShown = null;
  1674. this._isBodyOverflowing = null;
  1675. this._ignoreBackdropClick = null;
  1676. this._scrollbarWidth = null;
  1677. };
  1678. _proto.handleUpdate = function handleUpdate() {
  1679. this._adjustDialog();
  1680. }; // Private
  1681. _proto._getConfig = function _getConfig(config) {
  1682. config = _objectSpread({}, Default, config);
  1683. Util.typeCheckConfig(NAME, config, DefaultType);
  1684. return config;
  1685. };
  1686. _proto._showElement = function _showElement(relatedTarget) {
  1687. var _this3 = this;
  1688. var transition = $$$1(this._element).hasClass(ClassName.FADE);
  1689. if (!this._element.parentNode || this._element.parentNode.nodeType !== Node.ELEMENT_NODE) {
  1690. // Don't move modal's DOM position
  1691. document.body.appendChild(this._element);
  1692. }
  1693. this._element.style.display = 'block';
  1694. this._element.removeAttribute('aria-hidden');
  1695. this._element.scrollTop = 0;
  1696. if (transition) {
  1697. Util.reflow(this._element);
  1698. }
  1699. $$$1(this._element).addClass(ClassName.SHOW);
  1700. if (this._config.focus) {
  1701. this._enforceFocus();
  1702. }
  1703. var shownEvent = $$$1.Event(Event.SHOWN, {
  1704. relatedTarget: relatedTarget
  1705. });
  1706. var transitionComplete = function transitionComplete() {
  1707. if (_this3._config.focus) {
  1708. _this3._element.focus();
  1709. }
  1710. _this3._isTransitioning = false;
  1711. $$$1(_this3._element).trigger(shownEvent);
  1712. };
  1713. if (transition) {
  1714. var transitionDuration = Util.getTransitionDurationFromElement(this._element);
  1715. $$$1(this._dialog).one(Util.TRANSITION_END, transitionComplete).emulateTransitionEnd(transitionDuration);
  1716. } else {
  1717. transitionComplete();
  1718. }
  1719. };
  1720. _proto._enforceFocus = function _enforceFocus() {
  1721. var _this4 = this;
  1722. $$$1(document).off(Event.FOCUSIN) // Guard against infinite focus loop
  1723. .on(Event.FOCUSIN, function (event) {
  1724. if (document !== event.target && _this4._element !== event.target && $$$1(_this4._element).has(event.target).length === 0) {
  1725. _this4._element.focus();
  1726. }
  1727. });
  1728. };
  1729. _proto._setEscapeEvent = function _setEscapeEvent() {
  1730. var _this5 = this;
  1731. if (this._isShown && this._config.keyboard) {
  1732. $$$1(this._element).on(Event.KEYDOWN_DISMISS, function (event) {
  1733. if (event.which === ESCAPE_KEYCODE) {
  1734. event.preventDefault();
  1735. _this5.hide();
  1736. }
  1737. });
  1738. } else if (!this._isShown) {
  1739. $$$1(this._element).off(Event.KEYDOWN_DISMISS);
  1740. }
  1741. };
  1742. _proto._setResizeEvent = function _setResizeEvent() {
  1743. var _this6 = this;
  1744. if (this._isShown) {
  1745. $$$1(window).on(Event.RESIZE, function (event) {
  1746. return _this6.handleUpdate(event);
  1747. });
  1748. } else {
  1749. $$$1(window).off(Event.RESIZE);
  1750. }
  1751. };
  1752. _proto._hideModal = function _hideModal() {
  1753. var _this7 = this;
  1754. this._element.style.display = 'none';
  1755. this._element.setAttribute('aria-hidden', true);
  1756. this._isTransitioning = false;
  1757. this._showBackdrop(function () {
  1758. $$$1(document.body).removeClass(ClassName.OPEN);
  1759. _this7._resetAdjustments();
  1760. _this7._resetScrollbar();
  1761. $$$1(_this7._element).trigger(Event.HIDDEN);
  1762. });
  1763. };
  1764. _proto._removeBackdrop = function _removeBackdrop() {
  1765. if (this._backdrop) {
  1766. $$$1(this._backdrop).remove();
  1767. this._backdrop = null;
  1768. }
  1769. };
  1770. _proto._showBackdrop = function _showBackdrop(callback) {
  1771. var _this8 = this;
  1772. var animate = $$$1(this._element).hasClass(ClassName.FADE) ? ClassName.FADE : '';
  1773. if (this._isShown && this._config.backdrop) {
  1774. this._backdrop = document.createElement('div');
  1775. this._backdrop.className = ClassName.BACKDROP;
  1776. if (animate) {
  1777. $$$1(this._backdrop).addClass(animate);
  1778. }
  1779. $$$1(this._backdrop).appendTo(document.body);
  1780. $$$1(this._element).on(Event.CLICK_DISMISS, function (event) {
  1781. if (_this8._ignoreBackdropClick) {
  1782. _this8._ignoreBackdropClick = false;
  1783. return;
  1784. }
  1785. if (event.target !== event.currentTarget) {
  1786. return;
  1787. }
  1788. if (_this8._config.backdrop === 'static') {
  1789. _this8._element.focus();
  1790. } else {
  1791. _this8.hide();
  1792. }
  1793. });
  1794. if (animate) {
  1795. Util.reflow(this._backdrop);
  1796. }
  1797. $$$1(this._backdrop).addClass(ClassName.SHOW);
  1798. if (!callback) {
  1799. return;
  1800. }
  1801. if (!animate) {
  1802. callback();
  1803. return;
  1804. }
  1805. var backdropTransitionDuration = Util.getTransitionDurationFromElement(this._backdrop);
  1806. $$$1(this._backdrop).one(Util.TRANSITION_END, callback).emulateTransitionEnd(backdropTransitionDuration);
  1807. } else if (!this._isShown && this._backdrop) {
  1808. $$$1(this._backdrop).removeClass(ClassName.SHOW);
  1809. var callbackRemove = function callbackRemove() {
  1810. _this8._removeBackdrop();
  1811. if (callback) {
  1812. callback();
  1813. }
  1814. };
  1815. if ($$$1(this._element).hasClass(ClassName.FADE)) {
  1816. var _backdropTransitionDuration = Util.getTransitionDurationFromElement(this._backdrop);
  1817. $$$1(this._backdrop).one(Util.TRANSITION_END, callbackRemove).emulateTransitionEnd(_backdropTransitionDuration);
  1818. } else {
  1819. callbackRemove();
  1820. }
  1821. } else if (callback) {
  1822. callback();
  1823. }
  1824. }; // ----------------------------------------------------------------------
  1825. // the following methods are used to handle overflowing modals
  1826. // todo (fat): these should probably be refactored out of modal.js
  1827. // ----------------------------------------------------------------------
  1828. _proto._adjustDialog = function _adjustDialog() {
  1829. var isModalOverflowing = this._element.scrollHeight > document.documentElement.clientHeight;
  1830. if (!this._isBodyOverflowing && isModalOverflowing) {
  1831. this._element.style.paddingLeft = this._scrollbarWidth + "px";
  1832. }
  1833. if (this._isBodyOverflowing && !isModalOverflowing) {
  1834. this._element.style.paddingRight = this._scrollbarWidth + "px";
  1835. }
  1836. };
  1837. _proto._resetAdjustments = function _resetAdjustments() {
  1838. this._element.style.paddingLeft = '';
  1839. this._element.style.paddingRight = '';
  1840. };
  1841. _proto._checkScrollbar = function _checkScrollbar() {
  1842. var rect = document.body.getBoundingClientRect();
  1843. this._isBodyOverflowing = rect.left + rect.right < window.innerWidth;
  1844. this._scrollbarWidth = this._getScrollbarWidth();
  1845. };
  1846. _proto._setScrollbar = function _setScrollbar() {
  1847. var _this9 = this;
  1848. if (this._isBodyOverflowing) {
  1849. // Note: DOMNode.style.paddingRight returns the actual value or '' if not set
  1850. // while $(DOMNode).css('padding-right') returns the calculated value or 0 if not set
  1851. // Adjust fixed content padding
  1852. $$$1(Selector.FIXED_CONTENT).each(function (index, element) {
  1853. var actualPadding = $$$1(element)[0].style.paddingRight;
  1854. var calculatedPadding = $$$1(element).css('padding-right');
  1855. $$$1(element).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + _this9._scrollbarWidth + "px");
  1856. }); // Adjust sticky content margin
  1857. $$$1(Selector.STICKY_CONTENT).each(function (index, element) {
  1858. var actualMargin = $$$1(element)[0].style.marginRight;
  1859. var calculatedMargin = $$$1(element).css('margin-right');
  1860. $$$1(element).data('margin-right', actualMargin).css('margin-right', parseFloat(calculatedMargin) - _this9._scrollbarWidth + "px");
  1861. }); // Adjust navbar-toggler margin
  1862. $$$1(Selector.NAVBAR_TOGGLER).each(function (index, element) {
  1863. var actualMargin = $$$1(element)[0].style.marginRight;
  1864. var calculatedMargin = $$$1(element).css('margin-right');
  1865. $$$1(element).data('margin-right', actualMargin).css('margin-right', parseFloat(calculatedMargin) + _this9._scrollbarWidth + "px");
  1866. }); // Adjust body padding
  1867. var actualPadding = document.body.style.paddingRight;
  1868. var calculatedPadding = $$$1(document.body).css('padding-right');
  1869. $$$1(document.body).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + this._scrollbarWidth + "px");
  1870. }
  1871. };
  1872. _proto._resetScrollbar = function _resetScrollbar() {
  1873. // Restore fixed content padding
  1874. $$$1(Selector.FIXED_CONTENT).each(function (index, element) {
  1875. var padding = $$$1(element).data('padding-right');
  1876. if (typeof padding !== 'undefined') {
  1877. $$$1(element).css('padding-right', padding).removeData('padding-right');
  1878. }
  1879. }); // Restore sticky content and navbar-toggler margin
  1880. $$$1(Selector.STICKY_CONTENT + ", " + Selector.NAVBAR_TOGGLER).each(function (index, element) {
  1881. var margin = $$$1(element).data('margin-right');
  1882. if (typeof margin !== 'undefined') {
  1883. $$$1(element).css('margin-right', margin).removeData('margin-right');
  1884. }
  1885. }); // Restore body padding
  1886. var padding = $$$1(document.body).data('padding-right');
  1887. if (typeof padding !== 'undefined') {
  1888. $$$1(document.body).css('padding-right', padding).removeData('padding-right');
  1889. }
  1890. };
  1891. _proto._getScrollbarWidth = function _getScrollbarWidth() {
  1892. // thx d.walsh
  1893. var scrollDiv = document.createElement('div');
  1894. scrollDiv.className = ClassName.SCROLLBAR_MEASURER;
  1895. document.body.appendChild(scrollDiv);
  1896. var scrollbarWidth = scrollDiv.getBoundingClientRect().width - scrollDiv.clientWidth;
  1897. document.body.removeChild(scrollDiv);
  1898. return scrollbarWidth;
  1899. }; // Static
  1900. Modal._jQueryInterface = function _jQueryInterface(config, relatedTarget) {
  1901. return this.each(function () {
  1902. var data = $$$1(this).data(DATA_KEY);
  1903. var _config = _objectSpread({}, Modal.Default, $$$1(this).data(), typeof config === 'object' && config);
  1904. if (!data) {
  1905. data = new Modal(this, _config);
  1906. $$$1(this).data(DATA_KEY, data);
  1907. }
  1908. if (typeof config === 'string') {
  1909. if (typeof data[config] === 'undefined') {
  1910. throw new TypeError("No method named \"" + config + "\"");
  1911. }
  1912. data[config](relatedTarget);
  1913. } else if (_config.show) {
  1914. data.show(relatedTarget);
  1915. }
  1916. });
  1917. };
  1918. _createClass(Modal, null, [{
  1919. key: "VERSION",
  1920. get: function get() {
  1921. return VERSION;
  1922. }
  1923. }, {
  1924. key: "Default",
  1925. get: function get() {
  1926. return Default;
  1927. }
  1928. }]);
  1929. return Modal;
  1930. }();
  1931. /**
  1932. * ------------------------------------------------------------------------
  1933. * Data Api implementation
  1934. * ------------------------------------------------------------------------
  1935. */
  1936. $$$1(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) {
  1937. var _this10 = this;
  1938. var target;
  1939. var selector = Util.getSelectorFromElement(this);
  1940. if (selector) {
  1941. target = $$$1(selector)[0];
  1942. }
  1943. var config = $$$1(target).data(DATA_KEY) ? 'toggle' : _objectSpread({}, $$$1(target).data(), $$$1(this).data());
  1944. if (this.tagName === 'A' || this.tagName === 'AREA') {
  1945. event.preventDefault();
  1946. }
  1947. var $target = $$$1(target).one(Event.SHOW, function (showEvent) {
  1948. if (showEvent.isDefaultPrevented()) {
  1949. // Only register focus restorer if modal will actually get shown
  1950. return;
  1951. }
  1952. $target.one(Event.HIDDEN, function () {
  1953. if ($$$1(_this10).is(':visible')) {
  1954. _this10.focus();
  1955. }
  1956. });
  1957. });
  1958. Modal._jQueryInterface.call($$$1(target), config, this);
  1959. });
  1960. /**
  1961. * ------------------------------------------------------------------------
  1962. * jQuery
  1963. * ------------------------------------------------------------------------
  1964. */
  1965. $$$1.fn[NAME] = Modal._jQueryInterface;
  1966. $$$1.fn[NAME].Constructor = Modal;
  1967. $$$1.fn[NAME].noConflict = function () {
  1968. $$$1.fn[NAME] = JQUERY_NO_CONFLICT;
  1969. return Modal._jQueryInterface;
  1970. };
  1971. return Modal;
  1972. }($);
  1973. /**
  1974. * --------------------------------------------------------------------------
  1975. * Bootstrap (v4.1.0): tooltip.js
  1976. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  1977. * --------------------------------------------------------------------------
  1978. */
  1979. var Tooltip = function ($$$1) {
  1980. /**
  1981. * ------------------------------------------------------------------------
  1982. * Constants
  1983. * ------------------------------------------------------------------------
  1984. */
  1985. var NAME = 'tooltip';
  1986. var VERSION = '4.1.0';
  1987. var DATA_KEY = 'bs.tooltip';
  1988. var EVENT_KEY = "." + DATA_KEY;
  1989. var JQUERY_NO_CONFLICT = $$$1.fn[NAME];
  1990. var CLASS_PREFIX = 'bs-tooltip';
  1991. var BSCLS_PREFIX_REGEX = new RegExp("(^|\\s)" + CLASS_PREFIX + "\\S+", 'g');
  1992. var DefaultType = {
  1993. animation: 'boolean',
  1994. template: 'string',
  1995. title: '(string|element|function)',
  1996. trigger: 'string',
  1997. delay: '(number|object)',
  1998. html: 'boolean',
  1999. selector: '(string|boolean)',
  2000. placement: '(string|function)',
  2001. offset: '(number|string)',
  2002. container: '(string|element|boolean)',
  2003. fallbackPlacement: '(string|array)',
  2004. boundary: '(string|element)'
  2005. };
  2006. var AttachmentMap = {
  2007. AUTO: 'auto',
  2008. TOP: 'top',
  2009. RIGHT: 'right',
  2010. BOTTOM: 'bottom',
  2011. LEFT: 'left'
  2012. };
  2013. var Default = {
  2014. animation: true,
  2015. template: '<div class="tooltip" role="tooltip">' + '<div class="arrow"></div>' + '<div class="tooltip-inner"></div></div>',
  2016. trigger: 'hover focus',
  2017. title: '',
  2018. delay: 0,
  2019. html: false,
  2020. selector: false,
  2021. placement: 'top',
  2022. offset: 0,
  2023. container: false,
  2024. fallbackPlacement: 'flip',
  2025. boundary: 'scrollParent'
  2026. };
  2027. var HoverState = {
  2028. SHOW: 'show',
  2029. OUT: 'out'
  2030. };
  2031. var Event = {
  2032. HIDE: "hide" + EVENT_KEY,
  2033. HIDDEN: "hidden" + EVENT_KEY,
  2034. SHOW: "show" + EVENT_KEY,
  2035. SHOWN: "shown" + EVENT_KEY,
  2036. INSERTED: "inserted" + EVENT_KEY,
  2037. CLICK: "click" + EVENT_KEY,
  2038. FOCUSIN: "focusin" + EVENT_KEY,
  2039. FOCUSOUT: "focusout" + EVENT_KEY,
  2040. MOUSEENTER: "mouseenter" + EVENT_KEY,
  2041. MOUSELEAVE: "mouseleave" + EVENT_KEY
  2042. };
  2043. var ClassName = {
  2044. FADE: 'fade',
  2045. SHOW: 'show'
  2046. };
  2047. var Selector = {
  2048. TOOLTIP: '.tooltip',
  2049. TOOLTIP_INNER: '.tooltip-inner',
  2050. ARROW: '.arrow'
  2051. };
  2052. var Trigger = {
  2053. HOVER: 'hover',
  2054. FOCUS: 'focus',
  2055. CLICK: 'click',
  2056. MANUAL: 'manual'
  2057. /**
  2058. * ------------------------------------------------------------------------
  2059. * Class Definition
  2060. * ------------------------------------------------------------------------
  2061. */
  2062. };
  2063. var Tooltip =
  2064. /*#__PURE__*/
  2065. function () {
  2066. function Tooltip(element, config) {
  2067. /**
  2068. * Check for Popper dependency
  2069. * Popper - https://popper.js.org
  2070. */
  2071. if (typeof Popper === 'undefined') {
  2072. throw new TypeError('Bootstrap tooltips require Popper.js (https://popper.js.org)');
  2073. } // private
  2074. this._isEnabled = true;
  2075. this._timeout = 0;
  2076. this._hoverState = '';
  2077. this._activeTrigger = {};
  2078. this._popper = null; // Protected
  2079. this.element = element;
  2080. this.config = this._getConfig(config);
  2081. this.tip = null;
  2082. this._setListeners();
  2083. } // Getters
  2084. var _proto = Tooltip.prototype;
  2085. // Public
  2086. _proto.enable = function enable() {
  2087. this._isEnabled = true;
  2088. };
  2089. _proto.disable = function disable() {
  2090. this._isEnabled = false;
  2091. };
  2092. _proto.toggleEnabled = function toggleEnabled() {
  2093. this._isEnabled = !this._isEnabled;
  2094. };
  2095. _proto.toggle = function toggle(event) {
  2096. if (!this._isEnabled) {
  2097. return;
  2098. }
  2099. if (event) {
  2100. var dataKey = this.constructor.DATA_KEY;
  2101. var context = $$$1(event.currentTarget).data(dataKey);
  2102. if (!context) {
  2103. context = new this.constructor(event.currentTarget, this._getDelegateConfig());
  2104. $$$1(event.currentTarget).data(dataKey, context);
  2105. }
  2106. context._activeTrigger.click = !context._activeTrigger.click;
  2107. if (context._isWithActiveTrigger()) {
  2108. context._enter(null, context);
  2109. } else {
  2110. context._leave(null, context);
  2111. }
  2112. } else {
  2113. if ($$$1(this.getTipElement()).hasClass(ClassName.SHOW)) {
  2114. this._leave(null, this);
  2115. return;
  2116. }
  2117. this._enter(null, this);
  2118. }
  2119. };
  2120. _proto.dispose = function dispose() {
  2121. clearTimeout(this._timeout);
  2122. $$$1.removeData(this.element, this.constructor.DATA_KEY);
  2123. $$$1(this.element).off(this.constructor.EVENT_KEY);
  2124. $$$1(this.element).closest('.modal').off('hide.bs.modal');
  2125. if (this.tip) {
  2126. $$$1(this.tip).remove();
  2127. }
  2128. this._isEnabled = null;
  2129. this._timeout = null;
  2130. this._hoverState = null;
  2131. this._activeTrigger = null;
  2132. if (this._popper !== null) {
  2133. this._popper.destroy();
  2134. }
  2135. this._popper = null;
  2136. this.element = null;
  2137. this.config = null;
  2138. this.tip = null;
  2139. };
  2140. _proto.show = function show() {
  2141. var _this = this;
  2142. if ($$$1(this.element).css('display') === 'none') {
  2143. throw new Error('Please use show on visible elements');
  2144. }
  2145. var showEvent = $$$1.Event(this.constructor.Event.SHOW);
  2146. if (this.isWithContent() && this._isEnabled) {
  2147. $$$1(this.element).trigger(showEvent);
  2148. var isInTheDom = $$$1.contains(this.element.ownerDocument.documentElement, this.element);
  2149. if (showEvent.isDefaultPrevented() || !isInTheDom) {
  2150. return;
  2151. }
  2152. var tip = this.getTipElement();
  2153. var tipId = Util.getUID(this.constructor.NAME);
  2154. tip.setAttribute('id', tipId);
  2155. this.element.setAttribute('aria-describedby', tipId);
  2156. this.setContent();
  2157. if (this.config.animation) {
  2158. $$$1(tip).addClass(ClassName.FADE);
  2159. }
  2160. var placement = typeof this.config.placement === 'function' ? this.config.placement.call(this, tip, this.element) : this.config.placement;
  2161. var attachment = this._getAttachment(placement);
  2162. this.addAttachmentClass(attachment);
  2163. var container = this.config.container === false ? document.body : $$$1(this.config.container);
  2164. $$$1(tip).data(this.constructor.DATA_KEY, this);
  2165. if (!$$$1.contains(this.element.ownerDocument.documentElement, this.tip)) {
  2166. $$$1(tip).appendTo(container);
  2167. }
  2168. $$$1(this.element).trigger(this.constructor.Event.INSERTED);
  2169. this._popper = new Popper(this.element, tip, {
  2170. placement: attachment,
  2171. modifiers: {
  2172. offset: {
  2173. offset: this.config.offset
  2174. },
  2175. flip: {
  2176. behavior: this.config.fallbackPlacement
  2177. },
  2178. arrow: {
  2179. element: Selector.ARROW
  2180. },
  2181. preventOverflow: {
  2182. boundariesElement: this.config.boundary
  2183. }
  2184. },
  2185. onCreate: function onCreate(data) {
  2186. if (data.originalPlacement !== data.placement) {
  2187. _this._handlePopperPlacementChange(data);
  2188. }
  2189. },
  2190. onUpdate: function onUpdate(data) {
  2191. _this._handlePopperPlacementChange(data);
  2192. }
  2193. });
  2194. $$$1(tip).addClass(ClassName.SHOW); // If this is a touch-enabled device we add extra
  2195. // empty mouseover listeners to the body's immediate children;
  2196. // only needed because of broken event delegation on iOS
  2197. // https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html
  2198. if ('ontouchstart' in document.documentElement) {
  2199. $$$1(document.body).children().on('mouseover', null, $$$1.noop);
  2200. }
  2201. var complete = function complete() {
  2202. if (_this.config.animation) {
  2203. _this._fixTransition();
  2204. }
  2205. var prevHoverState = _this._hoverState;
  2206. _this._hoverState = null;
  2207. $$$1(_this.element).trigger(_this.constructor.Event.SHOWN);
  2208. if (prevHoverState === HoverState.OUT) {
  2209. _this._leave(null, _this);
  2210. }
  2211. };
  2212. if ($$$1(this.tip).hasClass(ClassName.FADE)) {
  2213. var transitionDuration = Util.getTransitionDurationFromElement(this.tip);
  2214. $$$1(this.tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
  2215. } else {
  2216. complete();
  2217. }
  2218. }
  2219. };
  2220. _proto.hide = function hide(callback) {
  2221. var _this2 = this;
  2222. var tip = this.getTipElement();
  2223. var hideEvent = $$$1.Event(this.constructor.Event.HIDE);
  2224. var complete = function complete() {
  2225. if (_this2._hoverState !== HoverState.SHOW && tip.parentNode) {
  2226. tip.parentNode.removeChild(tip);
  2227. }
  2228. _this2._cleanTipClass();
  2229. _this2.element.removeAttribute('aria-describedby');
  2230. $$$1(_this2.element).trigger(_this2.constructor.Event.HIDDEN);
  2231. if (_this2._popper !== null) {
  2232. _this2._popper.destroy();
  2233. }
  2234. if (callback) {
  2235. callback();
  2236. }
  2237. };
  2238. $$$1(this.element).trigger(hideEvent);
  2239. if (hideEvent.isDefaultPrevented()) {
  2240. return;
  2241. }
  2242. $$$1(tip).removeClass(ClassName.SHOW); // If this is a touch-enabled device we remove the extra
  2243. // empty mouseover listeners we added for iOS support
  2244. if ('ontouchstart' in document.documentElement) {
  2245. $$$1(document.body).children().off('mouseover', null, $$$1.noop);
  2246. }
  2247. this._activeTrigger[Trigger.CLICK] = false;
  2248. this._activeTrigger[Trigger.FOCUS] = false;
  2249. this._activeTrigger[Trigger.HOVER] = false;
  2250. if ($$$1(this.tip).hasClass(ClassName.FADE)) {
  2251. var transitionDuration = Util.getTransitionDurationFromElement(tip);
  2252. $$$1(tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
  2253. } else {
  2254. complete();
  2255. }
  2256. this._hoverState = '';
  2257. };
  2258. _proto.update = function update() {
  2259. if (this._popper !== null) {
  2260. this._popper.scheduleUpdate();
  2261. }
  2262. }; // Protected
  2263. _proto.isWithContent = function isWithContent() {
  2264. return Boolean(this.getTitle());
  2265. };
  2266. _proto.addAttachmentClass = function addAttachmentClass(attachment) {
  2267. $$$1(this.getTipElement()).addClass(CLASS_PREFIX + "-" + attachment);
  2268. };
  2269. _proto.getTipElement = function getTipElement() {
  2270. this.tip = this.tip || $$$1(this.config.template)[0];
  2271. return this.tip;
  2272. };
  2273. _proto.setContent = function setContent() {
  2274. var $tip = $$$1(this.getTipElement());
  2275. this.setElementContent($tip.find(Selector.TOOLTIP_INNER), this.getTitle());
  2276. $tip.removeClass(ClassName.FADE + " " + ClassName.SHOW);
  2277. };
  2278. _proto.setElementContent = function setElementContent($element, content) {
  2279. var html = this.config.html;
  2280. if (typeof content === 'object' && (content.nodeType || content.jquery)) {
  2281. // Content is a DOM node or a jQuery
  2282. if (html) {
  2283. if (!$$$1(content).parent().is($element)) {
  2284. $element.empty().append(content);
  2285. }
  2286. } else {
  2287. $element.text($$$1(content).text());
  2288. }
  2289. } else {
  2290. $element[html ? 'html' : 'text'](content);
  2291. }
  2292. };
  2293. _proto.getTitle = function getTitle() {
  2294. var title = this.element.getAttribute('data-original-title');
  2295. if (!title) {
  2296. title = typeof this.config.title === 'function' ? this.config.title.call(this.element) : this.config.title;
  2297. }
  2298. return title;
  2299. }; // Private
  2300. _proto._getAttachment = function _getAttachment(placement) {
  2301. return AttachmentMap[placement.toUpperCase()];
  2302. };
  2303. _proto._setListeners = function _setListeners() {
  2304. var _this3 = this;
  2305. var triggers = this.config.trigger.split(' ');
  2306. triggers.forEach(function (trigger) {
  2307. if (trigger === 'click') {
  2308. $$$1(_this3.element).on(_this3.constructor.Event.CLICK, _this3.config.selector, function (event) {
  2309. return _this3.toggle(event);
  2310. });
  2311. } else if (trigger !== Trigger.MANUAL) {
  2312. var eventIn = trigger === Trigger.HOVER ? _this3.constructor.Event.MOUSEENTER : _this3.constructor.Event.FOCUSIN;
  2313. var eventOut = trigger === Trigger.HOVER ? _this3.constructor.Event.MOUSELEAVE : _this3.constructor.Event.FOCUSOUT;
  2314. $$$1(_this3.element).on(eventIn, _this3.config.selector, function (event) {
  2315. return _this3._enter(event);
  2316. }).on(eventOut, _this3.config.selector, function (event) {
  2317. return _this3._leave(event);
  2318. });
  2319. }
  2320. $$$1(_this3.element).closest('.modal').on('hide.bs.modal', function () {
  2321. return _this3.hide();
  2322. });
  2323. });
  2324. if (this.config.selector) {
  2325. this.config = _objectSpread({}, this.config, {
  2326. trigger: 'manual',
  2327. selector: ''
  2328. });
  2329. } else {
  2330. this._fixTitle();
  2331. }
  2332. };
  2333. _proto._fixTitle = function _fixTitle() {
  2334. var titleType = typeof this.element.getAttribute('data-original-title');
  2335. if (this.element.getAttribute('title') || titleType !== 'string') {
  2336. this.element.setAttribute('data-original-title', this.element.getAttribute('title') || '');
  2337. this.element.setAttribute('title', '');
  2338. }
  2339. };
  2340. _proto._enter = function _enter(event, context) {
  2341. var dataKey = this.constructor.DATA_KEY;
  2342. context = context || $$$1(event.currentTarget).data(dataKey);
  2343. if (!context) {
  2344. context = new this.constructor(event.currentTarget, this._getDelegateConfig());
  2345. $$$1(event.currentTarget).data(dataKey, context);
  2346. }
  2347. if (event) {
  2348. context._activeTrigger[event.type === 'focusin' ? Trigger.FOCUS : Trigger.HOVER] = true;
  2349. }
  2350. if ($$$1(context.getTipElement()).hasClass(ClassName.SHOW) || context._hoverState === HoverState.SHOW) {
  2351. context._hoverState = HoverState.SHOW;
  2352. return;
  2353. }
  2354. clearTimeout(context._timeout);
  2355. context._hoverState = HoverState.SHOW;
  2356. if (!context.config.delay || !context.config.delay.show) {
  2357. context.show();
  2358. return;
  2359. }
  2360. context._timeout = setTimeout(function () {
  2361. if (context._hoverState === HoverState.SHOW) {
  2362. context.show();
  2363. }
  2364. }, context.config.delay.show);
  2365. };
  2366. _proto._leave = function _leave(event, context) {
  2367. var dataKey = this.constructor.DATA_KEY;
  2368. context = context || $$$1(event.currentTarget).data(dataKey);
  2369. if (!context) {
  2370. context = new this.constructor(event.currentTarget, this._getDelegateConfig());
  2371. $$$1(event.currentTarget).data(dataKey, context);
  2372. }
  2373. if (event) {
  2374. context._activeTrigger[event.type === 'focusout' ? Trigger.FOCUS : Trigger.HOVER] = false;
  2375. }
  2376. if (context._isWithActiveTrigger()) {
  2377. return;
  2378. }
  2379. clearTimeout(context._timeout);
  2380. context._hoverState = HoverState.OUT;
  2381. if (!context.config.delay || !context.config.delay.hide) {
  2382. context.hide();
  2383. return;
  2384. }
  2385. context._timeout = setTimeout(function () {
  2386. if (context._hoverState === HoverState.OUT) {
  2387. context.hide();
  2388. }
  2389. }, context.config.delay.hide);
  2390. };
  2391. _proto._isWithActiveTrigger = function _isWithActiveTrigger() {
  2392. for (var trigger in this._activeTrigger) {
  2393. if (this._activeTrigger[trigger]) {
  2394. return true;
  2395. }
  2396. }
  2397. return false;
  2398. };
  2399. _proto._getConfig = function _getConfig(config) {
  2400. config = _objectSpread({}, this.constructor.Default, $$$1(this.element).data(), config);
  2401. if (typeof config.delay === 'number') {
  2402. config.delay = {
  2403. show: config.delay,
  2404. hide: config.delay
  2405. };
  2406. }
  2407. if (typeof config.title === 'number') {
  2408. config.title = config.title.toString();
  2409. }
  2410. if (typeof config.content === 'number') {
  2411. config.content = config.content.toString();
  2412. }
  2413. Util.typeCheckConfig(NAME, config, this.constructor.DefaultType);
  2414. return config;
  2415. };
  2416. _proto._getDelegateConfig = function _getDelegateConfig() {
  2417. var config = {};
  2418. if (this.config) {
  2419. for (var key in this.config) {
  2420. if (this.constructor.Default[key] !== this.config[key]) {
  2421. config[key] = this.config[key];
  2422. }
  2423. }
  2424. }
  2425. return config;
  2426. };
  2427. _proto._cleanTipClass = function _cleanTipClass() {
  2428. var $tip = $$$1(this.getTipElement());
  2429. var tabClass = $tip.attr('class').match(BSCLS_PREFIX_REGEX);
  2430. if (tabClass !== null && tabClass.length > 0) {
  2431. $tip.removeClass(tabClass.join(''));
  2432. }
  2433. };
  2434. _proto._handlePopperPlacementChange = function _handlePopperPlacementChange(data) {
  2435. this._cleanTipClass();
  2436. this.addAttachmentClass(this._getAttachment(data.placement));
  2437. };
  2438. _proto._fixTransition = function _fixTransition() {
  2439. var tip = this.getTipElement();
  2440. var initConfigAnimation = this.config.animation;
  2441. if (tip.getAttribute('x-placement') !== null) {
  2442. return;
  2443. }
  2444. $$$1(tip).removeClass(ClassName.FADE);
  2445. this.config.animation = false;
  2446. this.hide();
  2447. this.show();
  2448. this.config.animation = initConfigAnimation;
  2449. }; // Static
  2450. Tooltip._jQueryInterface = function _jQueryInterface(config) {
  2451. return this.each(function () {
  2452. var data = $$$1(this).data(DATA_KEY);
  2453. var _config = typeof config === 'object' && config;
  2454. if (!data && /dispose|hide/.test(config)) {
  2455. return;
  2456. }
  2457. if (!data) {
  2458. data = new Tooltip(this, _config);
  2459. $$$1(this).data(DATA_KEY, data);
  2460. }
  2461. if (typeof config === 'string') {
  2462. if (typeof data[config] === 'undefined') {
  2463. throw new TypeError("No method named \"" + config + "\"");
  2464. }
  2465. data[config]();
  2466. }
  2467. });
  2468. };
  2469. _createClass(Tooltip, null, [{
  2470. key: "VERSION",
  2471. get: function get() {
  2472. return VERSION;
  2473. }
  2474. }, {
  2475. key: "Default",
  2476. get: function get() {
  2477. return Default;
  2478. }
  2479. }, {
  2480. key: "NAME",
  2481. get: function get() {
  2482. return NAME;
  2483. }
  2484. }, {
  2485. key: "DATA_KEY",
  2486. get: function get() {
  2487. return DATA_KEY;
  2488. }
  2489. }, {
  2490. key: "Event",
  2491. get: function get() {
  2492. return Event;
  2493. }
  2494. }, {
  2495. key: "EVENT_KEY",
  2496. get: function get() {
  2497. return EVENT_KEY;
  2498. }
  2499. }, {
  2500. key: "DefaultType",
  2501. get: function get() {
  2502. return DefaultType;
  2503. }
  2504. }]);
  2505. return Tooltip;
  2506. }();
  2507. /**
  2508. * ------------------------------------------------------------------------
  2509. * jQuery
  2510. * ------------------------------------------------------------------------
  2511. */
  2512. $$$1.fn[NAME] = Tooltip._jQueryInterface;
  2513. $$$1.fn[NAME].Constructor = Tooltip;
  2514. $$$1.fn[NAME].noConflict = function () {
  2515. $$$1.fn[NAME] = JQUERY_NO_CONFLICT;
  2516. return Tooltip._jQueryInterface;
  2517. };
  2518. return Tooltip;
  2519. }($, Popper);
  2520. /**
  2521. * --------------------------------------------------------------------------
  2522. * Bootstrap (v4.1.0): popover.js
  2523. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  2524. * --------------------------------------------------------------------------
  2525. */
  2526. var Popover = function ($$$1) {
  2527. /**
  2528. * ------------------------------------------------------------------------
  2529. * Constants
  2530. * ------------------------------------------------------------------------
  2531. */
  2532. var NAME = 'popover';
  2533. var VERSION = '4.1.0';
  2534. var DATA_KEY = 'bs.popover';
  2535. var EVENT_KEY = "." + DATA_KEY;
  2536. var JQUERY_NO_CONFLICT = $$$1.fn[NAME];
  2537. var CLASS_PREFIX = 'bs-popover';
  2538. var BSCLS_PREFIX_REGEX = new RegExp("(^|\\s)" + CLASS_PREFIX + "\\S+", 'g');
  2539. var Default = _objectSpread({}, Tooltip.Default, {
  2540. placement: 'right',
  2541. trigger: 'click',
  2542. content: '',
  2543. template: '<div class="popover" role="tooltip">' + '<div class="arrow"></div>' + '<h3 class="popover-header"></h3>' + '<div class="popover-body"></div></div>'
  2544. });
  2545. var DefaultType = _objectSpread({}, Tooltip.DefaultType, {
  2546. content: '(string|element|function)'
  2547. });
  2548. var ClassName = {
  2549. FADE: 'fade',
  2550. SHOW: 'show'
  2551. };
  2552. var Selector = {
  2553. TITLE: '.popover-header',
  2554. CONTENT: '.popover-body'
  2555. };
  2556. var Event = {
  2557. HIDE: "hide" + EVENT_KEY,
  2558. HIDDEN: "hidden" + EVENT_KEY,
  2559. SHOW: "show" + EVENT_KEY,
  2560. SHOWN: "shown" + EVENT_KEY,
  2561. INSERTED: "inserted" + EVENT_KEY,
  2562. CLICK: "click" + EVENT_KEY,
  2563. FOCUSIN: "focusin" + EVENT_KEY,
  2564. FOCUSOUT: "focusout" + EVENT_KEY,
  2565. MOUSEENTER: "mouseenter" + EVENT_KEY,
  2566. MOUSELEAVE: "mouseleave" + EVENT_KEY
  2567. /**
  2568. * ------------------------------------------------------------------------
  2569. * Class Definition
  2570. * ------------------------------------------------------------------------
  2571. */
  2572. };
  2573. var Popover =
  2574. /*#__PURE__*/
  2575. function (_Tooltip) {
  2576. _inheritsLoose(Popover, _Tooltip);
  2577. function Popover() {
  2578. return _Tooltip.apply(this, arguments) || this;
  2579. }
  2580. var _proto = Popover.prototype;
  2581. // Overrides
  2582. _proto.isWithContent = function isWithContent() {
  2583. return this.getTitle() || this._getContent();
  2584. };
  2585. _proto.addAttachmentClass = function addAttachmentClass(attachment) {
  2586. $$$1(this.getTipElement()).addClass(CLASS_PREFIX + "-" + attachment);
  2587. };
  2588. _proto.getTipElement = function getTipElement() {
  2589. this.tip = this.tip || $$$1(this.config.template)[0];
  2590. return this.tip;
  2591. };
  2592. _proto.setContent = function setContent() {
  2593. var $tip = $$$1(this.getTipElement()); // We use append for html objects to maintain js events
  2594. this.setElementContent($tip.find(Selector.TITLE), this.getTitle());
  2595. var content = this._getContent();
  2596. if (typeof content === 'function') {
  2597. content = content.call(this.element);
  2598. }
  2599. this.setElementContent($tip.find(Selector.CONTENT), content);
  2600. $tip.removeClass(ClassName.FADE + " " + ClassName.SHOW);
  2601. }; // Private
  2602. _proto._getContent = function _getContent() {
  2603. return this.element.getAttribute('data-content') || this.config.content;
  2604. };
  2605. _proto._cleanTipClass = function _cleanTipClass() {
  2606. var $tip = $$$1(this.getTipElement());
  2607. var tabClass = $tip.attr('class').match(BSCLS_PREFIX_REGEX);
  2608. if (tabClass !== null && tabClass.length > 0) {
  2609. $tip.removeClass(tabClass.join(''));
  2610. }
  2611. }; // Static
  2612. Popover._jQueryInterface = function _jQueryInterface(config) {
  2613. return this.each(function () {
  2614. var data = $$$1(this).data(DATA_KEY);
  2615. var _config = typeof config === 'object' ? config : null;
  2616. if (!data && /destroy|hide/.test(config)) {
  2617. return;
  2618. }
  2619. if (!data) {
  2620. data = new Popover(this, _config);
  2621. $$$1(this).data(DATA_KEY, data);
  2622. }
  2623. if (typeof config === 'string') {
  2624. if (typeof data[config] === 'undefined') {
  2625. throw new TypeError("No method named \"" + config + "\"");
  2626. }
  2627. data[config]();
  2628. }
  2629. });
  2630. };
  2631. _createClass(Popover, null, [{
  2632. key: "VERSION",
  2633. // Getters
  2634. get: function get() {
  2635. return VERSION;
  2636. }
  2637. }, {
  2638. key: "Default",
  2639. get: function get() {
  2640. return Default;
  2641. }
  2642. }, {
  2643. key: "NAME",
  2644. get: function get() {
  2645. return NAME;
  2646. }
  2647. }, {
  2648. key: "DATA_KEY",
  2649. get: function get() {
  2650. return DATA_KEY;
  2651. }
  2652. }, {
  2653. key: "Event",
  2654. get: function get() {
  2655. return Event;
  2656. }
  2657. }, {
  2658. key: "EVENT_KEY",
  2659. get: function get() {
  2660. return EVENT_KEY;
  2661. }
  2662. }, {
  2663. key: "DefaultType",
  2664. get: function get() {
  2665. return DefaultType;
  2666. }
  2667. }]);
  2668. return Popover;
  2669. }(Tooltip);
  2670. /**
  2671. * ------------------------------------------------------------------------
  2672. * jQuery
  2673. * ------------------------------------------------------------------------
  2674. */
  2675. $$$1.fn[NAME] = Popover._jQueryInterface;
  2676. $$$1.fn[NAME].Constructor = Popover;
  2677. $$$1.fn[NAME].noConflict = function () {
  2678. $$$1.fn[NAME] = JQUERY_NO_CONFLICT;
  2679. return Popover._jQueryInterface;
  2680. };
  2681. return Popover;
  2682. }($);
  2683. /**
  2684. * --------------------------------------------------------------------------
  2685. * Bootstrap (v4.1.0): scrollspy.js
  2686. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  2687. * --------------------------------------------------------------------------
  2688. */
  2689. var ScrollSpy = function ($$$1) {
  2690. /**
  2691. * ------------------------------------------------------------------------
  2692. * Constants
  2693. * ------------------------------------------------------------------------
  2694. */
  2695. var NAME = 'scrollspy';
  2696. var VERSION = '4.1.0';
  2697. var DATA_KEY = 'bs.scrollspy';
  2698. var EVENT_KEY = "." + DATA_KEY;
  2699. var DATA_API_KEY = '.data-api';
  2700. var JQUERY_NO_CONFLICT = $$$1.fn[NAME];
  2701. var Default = {
  2702. offset: 10,
  2703. method: 'auto',
  2704. target: ''
  2705. };
  2706. var DefaultType = {
  2707. offset: 'number',
  2708. method: 'string',
  2709. target: '(string|element)'
  2710. };
  2711. var Event = {
  2712. ACTIVATE: "activate" + EVENT_KEY,
  2713. SCROLL: "scroll" + EVENT_KEY,
  2714. LOAD_DATA_API: "load" + EVENT_KEY + DATA_API_KEY
  2715. };
  2716. var ClassName = {
  2717. DROPDOWN_ITEM: 'dropdown-item',
  2718. DROPDOWN_MENU: 'dropdown-menu',
  2719. ACTIVE: 'active'
  2720. };
  2721. var Selector = {
  2722. DATA_SPY: '[data-spy="scroll"]',
  2723. ACTIVE: '.active',
  2724. NAV_LIST_GROUP: '.nav, .list-group',
  2725. NAV_LINKS: '.nav-link',
  2726. NAV_ITEMS: '.nav-item',
  2727. LIST_ITEMS: '.list-group-item',
  2728. DROPDOWN: '.dropdown',
  2729. DROPDOWN_ITEMS: '.dropdown-item',
  2730. DROPDOWN_TOGGLE: '.dropdown-toggle'
  2731. };
  2732. var OffsetMethod = {
  2733. OFFSET: 'offset',
  2734. POSITION: 'position'
  2735. /**
  2736. * ------------------------------------------------------------------------
  2737. * Class Definition
  2738. * ------------------------------------------------------------------------
  2739. */
  2740. };
  2741. var ScrollSpy =
  2742. /*#__PURE__*/
  2743. function () {
  2744. function ScrollSpy(element, config) {
  2745. var _this = this;
  2746. this._element = element;
  2747. this._scrollElement = element.tagName === 'BODY' ? window : element;
  2748. this._config = this._getConfig(config);
  2749. this._selector = this._config.target + " " + Selector.NAV_LINKS + "," + (this._config.target + " " + Selector.LIST_ITEMS + ",") + (this._config.target + " " + Selector.DROPDOWN_ITEMS);
  2750. this._offsets = [];
  2751. this._targets = [];
  2752. this._activeTarget = null;
  2753. this._scrollHeight = 0;
  2754. $$$1(this._scrollElement).on(Event.SCROLL, function (event) {
  2755. return _this._process(event);
  2756. });
  2757. this.refresh();
  2758. this._process();
  2759. } // Getters
  2760. var _proto = ScrollSpy.prototype;
  2761. // Public
  2762. _proto.refresh = function refresh() {
  2763. var _this2 = this;
  2764. var autoMethod = this._scrollElement === this._scrollElement.window ? OffsetMethod.OFFSET : OffsetMethod.POSITION;
  2765. var offsetMethod = this._config.method === 'auto' ? autoMethod : this._config.method;
  2766. var offsetBase = offsetMethod === OffsetMethod.POSITION ? this._getScrollTop() : 0;
  2767. this._offsets = [];
  2768. this._targets = [];
  2769. this._scrollHeight = this._getScrollHeight();
  2770. var targets = $$$1.makeArray($$$1(this._selector));
  2771. targets.map(function (element) {
  2772. var target;
  2773. var targetSelector = Util.getSelectorFromElement(element);
  2774. if (targetSelector) {
  2775. target = $$$1(targetSelector)[0];
  2776. }
  2777. if (target) {
  2778. var targetBCR = target.getBoundingClientRect();
  2779. if (targetBCR.width || targetBCR.height) {
  2780. // TODO (fat): remove sketch reliance on jQuery position/offset
  2781. return [$$$1(target)[offsetMethod]().top + offsetBase, targetSelector];
  2782. }
  2783. }
  2784. return null;
  2785. }).filter(function (item) {
  2786. return item;
  2787. }).sort(function (a, b) {
  2788. return a[0] - b[0];
  2789. }).forEach(function (item) {
  2790. _this2._offsets.push(item[0]);
  2791. _this2._targets.push(item[1]);
  2792. });
  2793. };
  2794. _proto.dispose = function dispose() {
  2795. $$$1.removeData(this._element, DATA_KEY);
  2796. $$$1(this._scrollElement).off(EVENT_KEY);
  2797. this._element = null;
  2798. this._scrollElement = null;
  2799. this._config = null;
  2800. this._selector = null;
  2801. this._offsets = null;
  2802. this._targets = null;
  2803. this._activeTarget = null;
  2804. this._scrollHeight = null;
  2805. }; // Private
  2806. _proto._getConfig = function _getConfig(config) {
  2807. config = _objectSpread({}, Default, config);
  2808. if (typeof config.target !== 'string') {
  2809. var id = $$$1(config.target).attr('id');
  2810. if (!id) {
  2811. id = Util.getUID(NAME);
  2812. $$$1(config.target).attr('id', id);
  2813. }
  2814. config.target = "#" + id;
  2815. }
  2816. Util.typeCheckConfig(NAME, config, DefaultType);
  2817. return config;
  2818. };
  2819. _proto._getScrollTop = function _getScrollTop() {
  2820. return this._scrollElement === window ? this._scrollElement.pageYOffset : this._scrollElement.scrollTop;
  2821. };
  2822. _proto._getScrollHeight = function _getScrollHeight() {
  2823. return this._scrollElement.scrollHeight || Math.max(document.body.scrollHeight, document.documentElement.scrollHeight);
  2824. };
  2825. _proto._getOffsetHeight = function _getOffsetHeight() {
  2826. return this._scrollElement === window ? window.innerHeight : this._scrollElement.getBoundingClientRect().height;
  2827. };
  2828. _proto._process = function _process() {
  2829. var scrollTop = this._getScrollTop() + this._config.offset;
  2830. var scrollHeight = this._getScrollHeight();
  2831. var maxScroll = this._config.offset + scrollHeight - this._getOffsetHeight();
  2832. if (this._scrollHeight !== scrollHeight) {
  2833. this.refresh();
  2834. }
  2835. if (scrollTop >= maxScroll) {
  2836. var target = this._targets[this._targets.length - 1];
  2837. if (this._activeTarget !== target) {
  2838. this._activate(target);
  2839. }
  2840. return;
  2841. }
  2842. if (this._activeTarget && scrollTop < this._offsets[0] && this._offsets[0] > 0) {
  2843. this._activeTarget = null;
  2844. this._clear();
  2845. return;
  2846. }
  2847. for (var i = this._offsets.length; i--;) {
  2848. var isActiveTarget = this._activeTarget !== this._targets[i] && scrollTop >= this._offsets[i] && (typeof this._offsets[i + 1] === 'undefined' || scrollTop < this._offsets[i + 1]);
  2849. if (isActiveTarget) {
  2850. this._activate(this._targets[i]);
  2851. }
  2852. }
  2853. };
  2854. _proto._activate = function _activate(target) {
  2855. this._activeTarget = target;
  2856. this._clear();
  2857. var queries = this._selector.split(','); // eslint-disable-next-line arrow-body-style
  2858. queries = queries.map(function (selector) {
  2859. return selector + "[data-target=\"" + target + "\"]," + (selector + "[href=\"" + target + "\"]");
  2860. });
  2861. var $link = $$$1(queries.join(','));
  2862. if ($link.hasClass(ClassName.DROPDOWN_ITEM)) {
  2863. $link.closest(Selector.DROPDOWN).find(Selector.DROPDOWN_TOGGLE).addClass(ClassName.ACTIVE);
  2864. $link.addClass(ClassName.ACTIVE);
  2865. } else {
  2866. // Set triggered link as active
  2867. $link.addClass(ClassName.ACTIVE); // Set triggered links parents as active
  2868. // With both <ul> and <nav> markup a parent is the previous sibling of any nav ancestor
  2869. $link.parents(Selector.NAV_LIST_GROUP).prev(Selector.NAV_LINKS + ", " + Selector.LIST_ITEMS).addClass(ClassName.ACTIVE); // Handle special case when .nav-link is inside .nav-item
  2870. $link.parents(Selector.NAV_LIST_GROUP).prev(Selector.NAV_ITEMS).children(Selector.NAV_LINKS).addClass(ClassName.ACTIVE);
  2871. }
  2872. $$$1(this._scrollElement).trigger(Event.ACTIVATE, {
  2873. relatedTarget: target
  2874. });
  2875. };
  2876. _proto._clear = function _clear() {
  2877. $$$1(this._selector).filter(Selector.ACTIVE).removeClass(ClassName.ACTIVE);
  2878. }; // Static
  2879. ScrollSpy._jQueryInterface = function _jQueryInterface(config) {
  2880. return this.each(function () {
  2881. var data = $$$1(this).data(DATA_KEY);
  2882. var _config = typeof config === 'object' && config;
  2883. if (!data) {
  2884. data = new ScrollSpy(this, _config);
  2885. $$$1(this).data(DATA_KEY, data);
  2886. }
  2887. if (typeof config === 'string') {
  2888. if (typeof data[config] === 'undefined') {
  2889. throw new TypeError("No method named \"" + config + "\"");
  2890. }
  2891. data[config]();
  2892. }
  2893. });
  2894. };
  2895. _createClass(ScrollSpy, null, [{
  2896. key: "VERSION",
  2897. get: function get() {
  2898. return VERSION;
  2899. }
  2900. }, {
  2901. key: "Default",
  2902. get: function get() {
  2903. return Default;
  2904. }
  2905. }]);
  2906. return ScrollSpy;
  2907. }();
  2908. /**
  2909. * ------------------------------------------------------------------------
  2910. * Data Api implementation
  2911. * ------------------------------------------------------------------------
  2912. */
  2913. $$$1(window).on(Event.LOAD_DATA_API, function () {
  2914. var scrollSpys = $$$1.makeArray($$$1(Selector.DATA_SPY));
  2915. for (var i = scrollSpys.length; i--;) {
  2916. var $spy = $$$1(scrollSpys[i]);
  2917. ScrollSpy._jQueryInterface.call($spy, $spy.data());
  2918. }
  2919. });
  2920. /**
  2921. * ------------------------------------------------------------------------
  2922. * jQuery
  2923. * ------------------------------------------------------------------------
  2924. */
  2925. $$$1.fn[NAME] = ScrollSpy._jQueryInterface;
  2926. $$$1.fn[NAME].Constructor = ScrollSpy;
  2927. $$$1.fn[NAME].noConflict = function () {
  2928. $$$1.fn[NAME] = JQUERY_NO_CONFLICT;
  2929. return ScrollSpy._jQueryInterface;
  2930. };
  2931. return ScrollSpy;
  2932. }($);
  2933. /**
  2934. * --------------------------------------------------------------------------
  2935. * Bootstrap (v4.1.0): tab.js
  2936. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  2937. * --------------------------------------------------------------------------
  2938. */
  2939. var Tab = function ($$$1) {
  2940. /**
  2941. * ------------------------------------------------------------------------
  2942. * Constants
  2943. * ------------------------------------------------------------------------
  2944. */
  2945. var NAME = 'tab';
  2946. var VERSION = '4.1.0';
  2947. var DATA_KEY = 'bs.tab';
  2948. var EVENT_KEY = "." + DATA_KEY;
  2949. var DATA_API_KEY = '.data-api';
  2950. var JQUERY_NO_CONFLICT = $$$1.fn[NAME];
  2951. var Event = {
  2952. HIDE: "hide" + EVENT_KEY,
  2953. HIDDEN: "hidden" + EVENT_KEY,
  2954. SHOW: "show" + EVENT_KEY,
  2955. SHOWN: "shown" + EVENT_KEY,
  2956. CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY
  2957. };
  2958. var ClassName = {
  2959. DROPDOWN_MENU: 'dropdown-menu',
  2960. ACTIVE: 'active',
  2961. DISABLED: 'disabled',
  2962. FADE: 'fade',
  2963. SHOW: 'show'
  2964. };
  2965. var Selector = {
  2966. DROPDOWN: '.dropdown',
  2967. NAV_LIST_GROUP: '.nav, .list-group',
  2968. ACTIVE: '.active',
  2969. ACTIVE_UL: '> li > .active',
  2970. DATA_TOGGLE: '[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',
  2971. DROPDOWN_TOGGLE: '.dropdown-toggle',
  2972. DROPDOWN_ACTIVE_CHILD: '> .dropdown-menu .active'
  2973. /**
  2974. * ------------------------------------------------------------------------
  2975. * Class Definition
  2976. * ------------------------------------------------------------------------
  2977. */
  2978. };
  2979. var Tab =
  2980. /*#__PURE__*/
  2981. function () {
  2982. function Tab(element) {
  2983. this._element = element;
  2984. } // Getters
  2985. var _proto = Tab.prototype;
  2986. // Public
  2987. _proto.show = function show() {
  2988. var _this = this;
  2989. if (this._element.parentNode && this._element.parentNode.nodeType === Node.ELEMENT_NODE && $$$1(this._element).hasClass(ClassName.ACTIVE) || $$$1(this._element).hasClass(ClassName.DISABLED)) {
  2990. return;
  2991. }
  2992. var target;
  2993. var previous;
  2994. var listElement = $$$1(this._element).closest(Selector.NAV_LIST_GROUP)[0];
  2995. var selector = Util.getSelectorFromElement(this._element);
  2996. if (listElement) {
  2997. var itemSelector = listElement.nodeName === 'UL' ? Selector.ACTIVE_UL : Selector.ACTIVE;
  2998. previous = $$$1.makeArray($$$1(listElement).find(itemSelector));
  2999. previous = previous[previous.length - 1];
  3000. }
  3001. var hideEvent = $$$1.Event(Event.HIDE, {
  3002. relatedTarget: this._element
  3003. });
  3004. var showEvent = $$$1.Event(Event.SHOW, {
  3005. relatedTarget: previous
  3006. });
  3007. if (previous) {
  3008. $$$1(previous).trigger(hideEvent);
  3009. }
  3010. $$$1(this._element).trigger(showEvent);
  3011. if (showEvent.isDefaultPrevented() || hideEvent.isDefaultPrevented()) {
  3012. return;
  3013. }
  3014. if (selector) {
  3015. target = $$$1(selector)[0];
  3016. }
  3017. this._activate(this._element, listElement);
  3018. var complete = function complete() {
  3019. var hiddenEvent = $$$1.Event(Event.HIDDEN, {
  3020. relatedTarget: _this._element
  3021. });
  3022. var shownEvent = $$$1.Event(Event.SHOWN, {
  3023. relatedTarget: previous
  3024. });
  3025. $$$1(previous).trigger(hiddenEvent);
  3026. $$$1(_this._element).trigger(shownEvent);
  3027. };
  3028. if (target) {
  3029. this._activate(target, target.parentNode, complete);
  3030. } else {
  3031. complete();
  3032. }
  3033. };
  3034. _proto.dispose = function dispose() {
  3035. $$$1.removeData(this._element, DATA_KEY);
  3036. this._element = null;
  3037. }; // Private
  3038. _proto._activate = function _activate(element, container, callback) {
  3039. var _this2 = this;
  3040. var activeElements;
  3041. if (container.nodeName === 'UL') {
  3042. activeElements = $$$1(container).find(Selector.ACTIVE_UL);
  3043. } else {
  3044. activeElements = $$$1(container).children(Selector.ACTIVE);
  3045. }
  3046. var active = activeElements[0];
  3047. var isTransitioning = callback && active && $$$1(active).hasClass(ClassName.FADE);
  3048. var complete = function complete() {
  3049. return _this2._transitionComplete(element, active, callback);
  3050. };
  3051. if (active && isTransitioning) {
  3052. var transitionDuration = Util.getTransitionDurationFromElement(active);
  3053. $$$1(active).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
  3054. } else {
  3055. complete();
  3056. }
  3057. };
  3058. _proto._transitionComplete = function _transitionComplete(element, active, callback) {
  3059. if (active) {
  3060. $$$1(active).removeClass(ClassName.SHOW + " " + ClassName.ACTIVE);
  3061. var dropdownChild = $$$1(active.parentNode).find(Selector.DROPDOWN_ACTIVE_CHILD)[0];
  3062. if (dropdownChild) {
  3063. $$$1(dropdownChild).removeClass(ClassName.ACTIVE);
  3064. }
  3065. if (active.getAttribute('role') === 'tab') {
  3066. active.setAttribute('aria-selected', false);
  3067. }
  3068. }
  3069. $$$1(element).addClass(ClassName.ACTIVE);
  3070. if (element.getAttribute('role') === 'tab') {
  3071. element.setAttribute('aria-selected', true);
  3072. }
  3073. Util.reflow(element);
  3074. $$$1(element).addClass(ClassName.SHOW);
  3075. if (element.parentNode && $$$1(element.parentNode).hasClass(ClassName.DROPDOWN_MENU)) {
  3076. var dropdownElement = $$$1(element).closest(Selector.DROPDOWN)[0];
  3077. if (dropdownElement) {
  3078. $$$1(dropdownElement).find(Selector.DROPDOWN_TOGGLE).addClass(ClassName.ACTIVE);
  3079. }
  3080. element.setAttribute('aria-expanded', true);
  3081. }
  3082. if (callback) {
  3083. callback();
  3084. }
  3085. }; // Static
  3086. Tab._jQueryInterface = function _jQueryInterface(config) {
  3087. return this.each(function () {
  3088. var $this = $$$1(this);
  3089. var data = $this.data(DATA_KEY);
  3090. if (!data) {
  3091. data = new Tab(this);
  3092. $this.data(DATA_KEY, data);
  3093. }
  3094. if (typeof config === 'string') {
  3095. if (typeof data[config] === 'undefined') {
  3096. throw new TypeError("No method named \"" + config + "\"");
  3097. }
  3098. data[config]();
  3099. }
  3100. });
  3101. };
  3102. _createClass(Tab, null, [{
  3103. key: "VERSION",
  3104. get: function get() {
  3105. return VERSION;
  3106. }
  3107. }]);
  3108. return Tab;
  3109. }();
  3110. /**
  3111. * ------------------------------------------------------------------------
  3112. * Data Api implementation
  3113. * ------------------------------------------------------------------------
  3114. */
  3115. $$$1(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) {
  3116. event.preventDefault();
  3117. Tab._jQueryInterface.call($$$1(this), 'show');
  3118. });
  3119. /**
  3120. * ------------------------------------------------------------------------
  3121. * jQuery
  3122. * ------------------------------------------------------------------------
  3123. */
  3124. $$$1.fn[NAME] = Tab._jQueryInterface;
  3125. $$$1.fn[NAME].Constructor = Tab;
  3126. $$$1.fn[NAME].noConflict = function () {
  3127. $$$1.fn[NAME] = JQUERY_NO_CONFLICT;
  3128. return Tab._jQueryInterface;
  3129. };
  3130. return Tab;
  3131. }($);
  3132. /**
  3133. * --------------------------------------------------------------------------
  3134. * Bootstrap (v4.0.0): index.js
  3135. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  3136. * --------------------------------------------------------------------------
  3137. */
  3138. (function ($$$1) {
  3139. if (typeof $$$1 === 'undefined') {
  3140. throw new TypeError('Bootstrap\'s JavaScript requires jQuery. jQuery must be included before Bootstrap\'s JavaScript.');
  3141. }
  3142. var version = $$$1.fn.jquery.split(' ')[0].split('.');
  3143. var minMajor = 1;
  3144. var ltMajor = 2;
  3145. var minMinor = 9;
  3146. var minPatch = 1;
  3147. var maxMajor = 4;
  3148. if (version[0] < ltMajor && version[1] < minMinor || version[0] === minMajor && version[1] === minMinor && version[2] < minPatch || version[0] >= maxMajor) {
  3149. throw new Error('Bootstrap\'s JavaScript requires at least jQuery v1.9.1 but less than v4.0.0');
  3150. }
  3151. })($);
  3152. exports.Util = Util;
  3153. exports.Alert = Alert;
  3154. exports.Button = Button;
  3155. exports.Carousel = Carousel;
  3156. exports.Collapse = Collapse;
  3157. exports.Dropdown = Dropdown;
  3158. exports.Modal = Modal;
  3159. exports.Popover = Popover;
  3160. exports.Scrollspy = ScrollSpy;
  3161. exports.Tab = Tab;
  3162. exports.Tooltip = Tooltip;
  3163. Object.defineProperty(exports, '__esModule', { value: true });
  3164. })));
  3165. //# sourceMappingURL=bootstrap.js.map