c&&(o.line=c),o.ch=_t(t,o.line)}return{ranges:[{anchor:a,head:o}],primary:0}}if("block"==n){for(var u=Math.min(a.line,o.line),d=Math.min(a.ch,o.ch),f=Math.max(a.line,o.line),h=Math.max(a.ch,o.ch)+1,p=f-u+1,$=o.line==u?0:p-1,m=[],g=0;g0&&o&&B(o);o=i.pop())n.line--,n.ch=0;o?(n.line--,n.ch=_t(t,n.line)):n.ch=0}}function Dt(t,e,n){e.ch=0,n.ch=0,n.line++}function Rt(t){if(!t)return 0;var e=t.search(/\S/);return-1==e?t.length:e}function jt(t,e,n,r,o){var a=Bt(t),s=t.getLine(a.line),l=a.ch,c=o?y[0]:_[0];while(!c(s.charAt(l)))if(l++,l>=s.length)return null;r?c=_[0]:(c=y[0],c(s.charAt(l))||(c=y[1]));var u=l,d=l;while(c(s.charAt(u))&&u=0)d--;if(d++,e){var f=u;while(/\s/.test(s.charAt(u))&&u0)d--;d||(d=h)}}return{start:i(a.line,d),end:i(a.line,u)}}function Mt(e,n,r){var i=n;if(!t.findMatchingTag||!t.findEnclosingTag)return{start:i,end:i};var o=t.findMatchingTag(e,n)||t.findEnclosingTag(e,n);return o&&o.open&&o.close?r?{start:o.open.from,end:o.close.to}:{start:o.open.to,end:o.close.from}:{start:i,end:i}}function Ft(t,e,n){$t(e,n)||F.jumpList.add(t,e,n)}function Nt(t,e){F.lastCharacterSearch.increment=t,F.lastCharacterSearch.forward=e.forward,F.lastCharacterSearch.selectedCharacter=e.selectedCharacter}var zt={"(":"bracket",")":"bracket","{":"bracket","}":"bracket","[":"section","]":"section","*":"comment","/":"comment",m:"method",M:"method","#":"preprocess"},Ht={bracket:{isComplete:function(t){if(t.nextCh===t.symb){if(t.depth++,t.depth>=1)return!0}else t.nextCh===t.reverseSymb&&t.depth--;return!1}},section:{init:function(t){t.curMoveThrough=!0,t.symb=(t.forward?"]":"[")===t.symb?"{":"}"},isComplete:function(t){return 0===t.index&&t.nextCh===t.symb}},comment:{isComplete:function(t){var e="*"===t.lastCh&&"/"===t.nextCh;return t.lastCh=t.nextCh,e}},method:{init:function(t){t.symb="m"===t.symb?"{":"}",t.reverseSymb="{"===t.symb?"}":"{"},isComplete:function(t){return t.nextCh===t.symb}},preprocess:{init:function(t){t.index=0},isComplete:function(t){if("#"===t.nextCh){var e=t.lineText.match(/#(\w+)/)[1];if("endif"===e){if(t.forward&&0===t.depth)return!0;t.depth++}else if("if"===e){if(!t.forward&&0===t.depth)return!0;t.depth--}if("else"===e&&0===t.depth)return!0}return!1}}};function Vt(t,e,n,r){var o=pt(t.getCursor()),a=n?1:-1,s=n?t.lineCount():-1,l=o.ch,c=o.line,u=t.getLine(c),d={lineText:u,nextCh:u.charAt(l),lastCh:null,index:l,symb:r,reverseSymb:(n?{")":"(","}":"{"}:{"(":")","{":"}"})[r],forward:n,depth:0,curMoveThrough:!1},f=zt[r];if(!f)return o;var h=Ht[f].init,p=Ht[f].isComplete;h&&h(d);while(c!==s&&e){if(d.index+=a,d.nextCh=d.lineText.charAt(d.index),!d.nextCh){if(c+=a,d.lineText=t.getLine(c)||"",a>0)d.index=0;else{var $=d.lineText.length;d.index=$>0?$-1:0}d.nextCh=d.lineText.charAt(d.index)}p(d)&&(o.line=c,o.ch=d.index,e--)}return d.nextCh||d.curMoveThrough?i(c,d.index):o}function Ut(t,e,n,r,i){var o=e.line,a=e.ch,s=t.getLine(o),l=n?1:-1,c=r?_:y;if(i&&""==s){if(o+=l,s=t.getLine(o),!C(t,o))return null;a=n?0:s.length}while(1){if(i&&""==s)return{from:0,to:0,line:o};var u=l>0?s.length:-1,d=u,f=u;while(a!=u){for(var h=!1,p=0;p0?0:s.length}}function qt(t,e,n,r,o,a){var s=pt(e),l=[];(r&&!o||!r&&o)&&n++;for(var c=!(r&&o),u=0;u0)h(d,r)&&n--,d+=r;return new i(d,0)}var p=t.state.vim;if(p.visualLine&&h(l,1,!0)){var $=p.sel.anchor;h($.line,-1,!0)&&(o&&$.line==l||(l+=1))}var m=f(l);for(d=l;d<=u&&n;d++)h(d,1,!0)&&(o&&f(d)==m||n--);for(s=new i(d,0),d>u&&!m?m=!0:o=!1,d=l;d>c;d--)if((!o||f(d)==m||d==l)&&h(d,-1,!0))break;return a=new i(d,0),{start:a,end:s}}function Jt(t,e,n,r){function o(t,e){if(e.pos+e.dir<0||e.pos+e.dir>=e.line.length){if(e.ln+=e.dir,!C(t,e.ln))return e.line=null,e.ln=null,void(e.pos=null);e.line=t.getLine(e.ln),e.pos=e.dir>0?0:e.line.length-1}else e.pos+=e.dir}function a(t,e,n,r){var i=t.getLine(e),a=""===i,s={line:i,ln:e,pos:n,dir:r},l={ln:s.ln,pos:s.pos},c=""===s.line;o(t,s);while(null!==s.line){if(l.ln=s.ln,l.pos=s.pos,""===s.line&&!c)return{ln:s.ln,pos:s.pos};if(a&&""!==s.line&&!B(s.line[s.pos]))return{ln:s.ln,pos:s.pos};!L(s.line[s.pos])||a||s.pos!==s.line.length-1&&!B(s.line[s.pos+1])||(a=!0),o(t,s)}i=t.getLine(l.ln);l.pos=0;for(var u=i.length-1;u>=0;--u)if(!B(i[u])){l.pos=u;break}return l}function s(t,e,n,r){var i=t.getLine(e),a={line:i,ln:e,pos:n,dir:r},s={ln:a.ln,pos:null},l=""===a.line;o(t,a);while(null!==a.line){if(""===a.line&&!l)return null!==s.pos?s:{ln:a.ln,pos:a.pos};if(L(a.line[a.pos])&&null!==s.pos&&(a.ln!==s.ln||a.pos+1!==s.pos))return s;""===a.line||B(a.line[a.pos])||(l=!1,s={ln:a.ln,pos:a.pos}),o(t,a)}i=t.getLine(s.ln);s.pos=0;for(var c=0;c0)l=r<0?s(t,l.ln,l.pos,r):a(t,l.ln,l.pos,r),n--;return i(l.ln,l.pos)}function Qt(t,e,n,r){var o,a,s=e,l={"(":/[()]/,")":/[()]/,"[":/[[\]]/,"]":/[[\]]/,"{":/[{}]/,"}":/[{}]/,"<":/[<>]/,">":/[<>]/}[n],c={"(":"(",")":"(","[":"[","]":"[","{":"{","}":"{","<":"<",">":"<"}[n],u=t.getLine(s.line).charAt(s.ch),d=u===c?1:0;if(o=t.scanForBracket(i(s.line,s.ch+d),-1,void 0,{bracketRegex:l}),a=t.scanForBracket(i(s.line,s.ch+d),1,void 0,{bracketRegex:l}),!o||!a)return{start:s,end:s};if(o=o.pos,a=a.pos,o.line==a.line&&o.ch>a.ch||o.line>a.line){var f=o;o=a,a=f}return r?a.ch+=1:o.ch+=1,{start:o,end:a}}function te(t,e,n,r){var o,a,s,l,c=pt(e),u=t.getLine(c.line),d=u.split(""),f=d.indexOf(n);if(c.ch-1&&!o;s--)d[s]==n&&(o=s+1);else o=c.ch+1;if(o&&!a)for(s=o,l=d.length;s'+e+"",{bottom:!0,duration:5e3}):alert(e)}function $e(t,e){var n=''+(t||"")+' ';return e&&(n+=' '+e+" "),n}var me="(Javascript regexp)";function ge(t,e){var n=(e.prefix||"")+" "+(e.desc||""),r=$e(e.prefix,e.desc);re(t,r,n,e.onClose,e)}function ve(t,e){if(t instanceof RegExp&&e instanceof RegExp){for(var n=["global","multiline","ignoreCase","source"],r=0;r=e&&t<=n:t==e}function Ce(t){var e=t.getScrollInfo(),n=6,r=10,i=t.coordsChar({left:0,top:n+e.top},"local"),o=e.clientHeight-r+e.top,a=t.coordsChar({left:0,top:o},"local");return{top:i.line,bottom:a.line}}function Ae(t,e,n){if("'"==n||"`"==n)return F.jumpList.find(t,-1)||i(0,0);if("."==n)return Ee(t);var r=e.marks[n];return r&&r.find()}function Ee(t){for(var e=t.doc.history.done,n=e.length;n--;)if(e[n].changes)return pt(e[n].changes[0].to)}var Te=function(){this.buildCommandMap_()};Te.prototype={processCommand:function(t,e,n){var r=this;t.operation((function(){t.curOp.isVimOp=!0,r._processCommand(t,e,n)}))},_processCommand:function(e,n,r){var i=e.state.vim,o=F.registerController.getRegister(":"),a=o.toString();i.visualMode&&Lt(e);var s=new t.StringStream(n);o.setText(n);var l,c,u=r||{};u.input=n;try{this.parseInput_(e,s,u)}catch(f){throw pe(e,f),f}if(u.commandName){if(l=this.matchCommand_(u.commandName),l){if(c=l.name,l.excludeFromCommandHistory&&o.setText(a),this.parseCommandArgs_(s,u,l),"exToKey"==l.type){for(var d=0;d@~])/);return n.commandName=r?r[1]:e.match(/.*/)[0],n},parseLineSpec_:function(t,e){var n=e.match(/^(\d+)/);if(n)return parseInt(n[1],10)-1;switch(e.next()){case".":return this.parseLineSpecOffset_(e,t.getCursor().line);case"$":return this.parseLineSpecOffset_(e,t.lastLine());case"'":var r=e.next(),i=Ae(t,t.state.vim,r);if(!i)throw new Error("Mark not set");return this.parseLineSpecOffset_(e,i.line);case"-":case"+":return e.backUp(1),this.parseLineSpecOffset_(e,t.getCursor().line);default:return void e.backUp(1)}},parseLineSpecOffset_:function(t,e){var n=t.match(/^([+-])?(\d+)/);if(n){var r=parseInt(n[2],10);"-"==n[1]?e-=r:e+=r}return e},parseCommandArgs_:function(t,e,n){if(!t.eol()){e.argString=t.match(/.*/)[0];var r=n.argDelimiter||/\s+/,i=bt(e.argString).split(r);i.length&&i[0]&&(e.args=i)}},matchCommand_:function(t){for(var e=t.length;e>0;e--){var n=t.substring(0,e);if(this.commandMap_[n]){var r=this.commandMap_[n];if(0===r.name.indexOf(t))return r}}return null},buildCommandMap_:function(){this.commandMap_={};for(var t=0;t ";if(n){n=n.join("");for(var o=0;o"}}else for(var s in r){var l=r[s].toString();l.length&&(i+='"'+s+" "+l+" ")}pe(t,i)},sort:function(e,n){var r,o,a,s,l;function c(){if(n.argString){var e=new t.StringStream(n.argString);if(e.eat("!")&&(r=!0),e.eol())return;if(!e.eatSpace())return"Invalid arguments";var i=e.match(/([dinuox]+)?\s*(\/.+\/)?\s*/);if(!i&&!e.eol())return"Invalid arguments";if(i[1]){o=-1!=i[1].indexOf("i"),a=-1!=i[1].indexOf("u");var c=-1!=i[1].indexOf("d")||-1!=i[1].indexOf("n")&&1,u=-1!=i[1].indexOf("x")&&1,d=-1!=i[1].indexOf("o")&&1;if(c+u+d>1)return"Invalid arguments";s=(c?"decimal":u&&"hex")||d&&"octal"}i[2]&&(l=new RegExp(i[2].substr(1,i[2].length-2),o?"i":""))}}var u=c();if(u)pe(e,u+": "+n.argString);else{var d=n.line||e.firstLine(),f=n.lineEnd||n.line||e.lastLine();if(d!=f){var h=i(d,0),p=i(f,_t(e,f)),$=e.getRange(h,p).split("\n"),m=l||("decimal"==s?/(-?)([\d]+)/:"hex"==s?/(-?)(?:0x)?([0-9a-f]+)/i:"octal"==s?/([0-7]+)/:null),g="decimal"==s?10:"hex"==s?16:"octal"==s?8:null,v=[],y=[];if(s||l)for(var _=0;_<$.length;_++){var b=l?$[_].match(l):null;b&&""!=b[0]?v.push(b):!l&&m.exec($[_])?v.push($[_]):y.push($[_])}else y=$;if(v.sort(l?S:k),l)for(_=0;_")}if(r){var h=0,p=function(){if(h=u)return void pe(e,"Invalid argument: "+n.argString.substring(o));for(var d=0;d<=u-c;d++){var f=String.fromCharCode(c+d);delete r.marks[f]}}else delete r.marks[a]}}else pe(e,"Argument required")}},Be=new Te;function Le(e,n,r,i,o,a,s,l,c){e.state.vim.exMode=!0;var u=!1,d=a.from();function f(){e.operation((function(){while(!u)h(),p();$()}))}function h(){var t=e.getRange(a.from(),a.to()),n=t.replace(s,l);a.replace(n)}function p(){while(a.findNext()&&Oe(a.from(),i,o))if(r||!d||a.from().line!=d.line)return e.scrollIntoView(a.from(),30),e.setSelection(a.from(),a.to()),d=a.from(),void(u=!1);u=!0}function $(t){if(t&&t(),e.focus(),d){e.setCursor(d);var n=e.state.vim;n.exMode=!1,n.lastHPos=n.lastHSPos=d.ch}c&&c()}function m(n,r,i){t.e_stop(n);var o=t.keyName(n);switch(o){case"Y":h(),p();break;case"N":p();break;case"A":var a=c;c=void 0,e.operation(f),c=a;break;case"L":h();case"Q":case"Esc":case"Ctrl-C":case"Ctrl-[":$(i);break}return u&&$(i),!0}if(p(),!u)return n?void ge(e,{prefix:"replace with "+l+" (y/n/a/q/l)",onKeyDown:m}):(f(),void(c&&c()));pe(e,"No matches for "+s.source)}function Ie(e){var n=e.state.vim,r=F.macroModeState,i=F.registerController.getRegister("."),o=r.isPlaying,a=r.lastInsertModeChanges;o||(e.off("change",ze),t.off(e.getInputField(),"keydown",Ge)),!o&&n.insertModeRepeat>1&&(Ye(e,n,n.insertModeRepeat-1,!0),n.lastEditInputState.repeatOverride=n.insertModeRepeat),delete n.insertModeRepeat,n.insertMode=!1,e.setCursor(e.getCursor().line,e.getCursor().ch-1),e.setOption("keyMap","vim"),e.setOption("disableInput",!0),e.toggleOverwrite(!1),i.setText(a.changes.join("")),t.signal(e,"vim-mode-change",{mode:"normal"}),r.isRecording&&Fe(r)}function De(t){e.unshift(t)}function Re(t,e,n,r,i){var o={keys:t,type:e};for(var a in o[e]=n,o[e+"Args"]=r,i)o[a]=i[a];De(o)}function je(e,n,r,i){var o=F.registerController.getRegister(i);if(":"==i)return o.keyBuffer[0]&&Be.processCommand(e,o.keyBuffer[0]),void(r.isPlaying=!1);var a=o.keyBuffer,s=0;r.isPlaying=!0,r.replaySearchQueries=o.searchQueries.slice(0);for(var l=0;l|<\w+>|./.exec(d),u=c[0],d=d.substring(c.index+u.length),t.Vim.handleKey(e,u,"macro"),n.insertMode){var f=o.insertModeChanges[s++].changes;F.macroModeState.lastInsertModeChanges.changes=f,Ke(e,f,1),Ie(e)}}r.isPlaying=!1}function Me(t,e){if(!t.isPlaying){var n=t.latestRegister,r=F.registerController.getRegister(n);r&&r.pushText(e)}}function Fe(t){if(!t.isPlaying){var e=t.latestRegister,n=F.registerController.getRegister(e);n&&n.pushInsertModeChanges&&n.pushInsertModeChanges(t.lastInsertModeChanges)}}function Ne(t,e){if(!t.isPlaying){var n=t.latestRegister,r=F.registerController.getRegister(n);r&&r.pushSearchQuery&&r.pushSearchQuery(e)}}function ze(t,e){var n=F.macroModeState,r=n.lastInsertModeChanges;if(!n.isPlaying)while(e){if(r.expectCursorActivityForChange=!0,r.ignoreCount>1)r.ignoreCount--;else if("+input"==e.origin||"paste"==e.origin||void 0===e.origin){var i=t.listSelections().length;i>1&&(r.ignoreCount=i);var o=e.text.join("\n");r.maybeReset&&(r.changes=[],r.maybeReset=!1),o&&(t.state.overwrite&&!/\n/.test(o)?r.changes.push([o]):r.changes.push(o))}e=e.next}}function He(t){var e=t.state.vim;if(e.insertMode){var n=F.macroModeState;if(n.isPlaying)return;var r=n.lastInsertModeChanges;r.expectCursorActivityForChange?r.expectCursorActivityForChange=!1:r.maybeReset=!0}else t.curOp.isVimOp||qe(t,e);e.visualMode&&Ve(t)}function Ve(t){var e="cm-animate-fat-cursor",n=t.state.vim,r=st(t,pt(n.sel.head)),i=ct(r,0,1);if(Ue(n),r.ch==t.getLine(r.line).length){var o=document.createElement("span");o.textContent=" ",o.className=e,n.fakeCursorBookmark=t.setBookmark(r,{widget:o})}else n.fakeCursor=t.markText(r,i,{className:e})}function Ue(t){t.fakeCursor&&(t.fakeCursor.clear(),t.fakeCursor=null),t.fakeCursorBookmark&&(t.fakeCursorBookmark.clear(),t.fakeCursorBookmark=null)}function qe(e,n){var r=e.getCursor("anchor"),i=e.getCursor("head");if(n.visualMode&&!e.somethingSelected()?Lt(e,!1):n.visualMode||n.insertMode||!e.somethingSelected()||(n.visualMode=!0,n.visualLine=!1,t.signal(e,"vim-mode-change",{mode:"visual"})),n.visualMode){var o=mt(i,r)?0:-1,a=mt(i,r)?-1:0;i=ct(i,0,o),r=ct(r,0,a),n.sel={anchor:r,head:i},Kt(e,n,"<",gt(i,r)),Kt(e,n,">",vt(i,r))}else n.insertMode||(n.lastHPos=e.getCursor().ch)}function We(t){this.keyName=t}function Ge(e){var n=F.macroModeState,r=n.lastInsertModeChanges,i=t.keyName(e);function o(){return r.maybeReset&&(r.changes=[],r.maybeReset=!1),r.changes.push(new We(i)),!0}i&&(-1==i.indexOf("Delete")&&-1==i.indexOf("Backspace")||t.lookupKey(i,"vim-insert",o))}function Ye(t,e,n,r){var i=F.macroModeState;i.isPlaying=!0;var o=!!e.lastEditActionCommand,a=e.inputState;function s(){o?Q.processAction(t,e,e.lastEditActionCommand):Q.evalInput(t,e)}function l(n){if(i.lastInsertModeChanges.changes.length>0){n=e.lastEditActionCommand?n:1;var r=i.lastInsertModeChanges;Ke(t,r.changes,n)}}if(e.inputState=e.lastEditInputState,o&&e.lastEditActionCommand.interlaceInsertRepeat)for(var c=0;c",f="<",h="prototype",p="script",$=u("IE_PROTO"),m=function(){},g=function(t){return f+p+d+t+f+"/"+p+d},v=function(t){t.write(g("")),t.close();var e=t.parentWindow.Object;return t=null,e},y=function(){var t,e=c("iframe"),n="java"+p+":";return e.style.display="none",l.appendChild(e),e.src=String(n),t=e.contentWindow.document,t.open(),t.write(g("document.F=Object")),t.close(),t.F},_=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}_=r?v(r):y();var t=a.length;while(t--)delete _[h][a[t]];return _()};s[$]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(m[h]=i(t),n=new m,m[h]=null,n[$]=t):n=_(),void 0===e?n:o(n,e)}},"7dd0":function(t,e,n){"use strict";var r=n("23e7"),i=n("9ed3"),o=n("e163"),a=n("d2bb"),s=n("d44e"),l=n("9112"),c=n("6eeb"),u=n("b622"),d=n("c430"),f=n("3f8c"),h=n("ae93"),p=h.IteratorPrototype,$=h.BUGGY_SAFARI_ITERATORS,m=u("iterator"),g="keys",v="values",y="entries",_=function(){return this};t.exports=function(t,e,n,u,h,b,w){i(n,e,u);var x,k,S,O=function(t){if(t===h&&P)return P;if(!$&&t in E)return E[t];switch(t){case g:return function(){return new n(this,t)};case v:return function(){return new n(this,t)};case y:return function(){return new n(this,t)}}return function(){return new n(this)}},C=e+" Iterator",A=!1,E=t.prototype,T=E[m]||E["@@iterator"]||h&&E[h],P=!$&&T||O(h),B="Array"==e&&E.entries||T;if(B&&(x=o(B.call(new t)),p!==Object.prototype&&x.next&&(d||o(x)===p||(a?a(x,p):"function"!=typeof x[m]&&l(x,m,_)),s(x,C,!0,!0),d&&(f[C]=_))),h==v&&T&&T.name!==v&&(A=!0,P=function(){return T.call(this)}),d&&!w||E[m]===P||l(E,m,P),f[e]=P,h)if(k={values:O(v),keys:b?P:O(g),entries:O(y)},w)for(S in k)($||A||!(S in E))&&c(E,S,k[S]);else r({target:e,proto:!0,forced:$||A},k);return k}},"7f9a":function(t,e,n){var r=n("da84"),i=n("8925"),o=r.WeakMap;t.exports="function"===typeof o&&/native code/.test(i(o))},"825a":function(t,e,n){var r=n("861d");t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},"83ab":function(t,e,n){var r=n("d039");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"861d":function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},8925:function(t,e,n){var r=n("c6cd"),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return i.call(t)}),t.exports=r.inspectSource},"8c33":function(t,e,n){(function(t){t(n("56b3"))})((function(t){var e=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),n=t.Pos,r={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function i(t){return t&&t.bracketRegex||/[(){}[\]]/}function o(t,e,o){var s=t.getLineHandle(e.line),l=e.ch-1,c=o&&o.afterCursor;null==c&&(c=/(^| )cm-fat-cursor($| )/.test(t.getWrapperElement().className));var u=i(o),d=!c&&l>=0&&u.test(s.text.charAt(l))&&r[s.text.charAt(l)]||u.test(s.text.charAt(l+1))&&r[s.text.charAt(++l)];if(!d)return null;var f=">"==d.charAt(1)?1:-1;if(o&&o.strict&&f>0!=(l==e.ch))return null;var h=t.getTokenTypeAt(n(e.line,l+1)),p=a(t,n(e.line,l+(f>0?1:0)),f,h||null,o);return null==p?null:{from:n(e.line,l),to:p&&p.pos,match:p&&p.ch==d.charAt(0),forward:f>0}}function a(t,e,o,a,s){for(var l=s&&s.maxScanLineLength||1e4,c=s&&s.maxScanLines||1e3,u=[],d=i(s),f=o>0?Math.min(e.line+c,t.lastLine()+1):Math.max(t.firstLine()-1,e.line-c),h=e.line;h!=f;h+=o){var p=t.getLine(h);if(p){var $=o>0?0:p.length-1,m=o>0?p.length:-1;if(!(p.length>l))for(h==e.line&&($=e.ch-(o<0?1:0));$!=m;$+=o){var g=p.charAt($);if(d.test(g)&&(void 0===a||t.getTokenTypeAt(n(h,$+1))==a)){var v=r[g];if(v&&">"==v.charAt(1)==o>0)u.push(g);else{if(!u.length)return{pos:n(h,$),ch:g};u.pop()}}}}}return h-o!=(o>0?t.lastLine():t.firstLine())&&null}function s(t,r,i){for(var a=t.state.matchBrackets.maxHighlightLineLength||1e3,s=[],l=t.listSelections(),c=0;ci))break;o=a}}return o?{from:t.Pos(r.line,n.getLine(r.line).length),to:t.Pos(o,n.getLine(o).length)}:void 0}}))}))},"8f94":function(t,e,n){!function(e,r){t.exports=r(n("56b3"))}(0,(function(t){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s=3)}([function(e,n){e.exports=t},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){return t&&t.__esModule?t:{default:t}}(r),o=window.CodeMirror||i.default;"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),r=1;r>1,u=-7,d=n?i-1:0,f=n?-1:1,h=t[e+d];for(d+=f,o=h&(1<<-u)-1,h>>=-u,u+=s;u>0;o=256*o+t[e+d],d+=f,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+t[e+d],d+=f,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=c}return(h?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,l,c=8*o-i-1,u=(1<>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,p=r?1:-1,$=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=u):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),e+=a+d>=1?f/l:f*Math.pow(2,1-d),e*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(e*l-1)*Math.pow(2,i),a+=d):(s=e*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;t[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<0;t[n+h]=255&a,h+=p,a/=256,c-=8);t[n+h-p]|=128*$}},"938d":function(t,e,n){"use strict";(function(t){n.d(e,"i",(function(){return r})),n.d(e,"b",(function(){return i})),n.d(e,"g",(function(){return a})),n.d(e,"d",(function(){return s})),n.d(e,"j",(function(){return l})),n.d(e,"k",(function(){return u})),n.d(e,"e",(function(){return d})),n.d(e,"h",(function(){return f})),n.d(e,"f",(function(){return h})),n.d(e,"c",(function(){return p})),n.d(e,"a",(function(){return m}));var r="undefined"!==typeof window,i="undefined"!==typeof document,o="undefined"!==typeof navigator,a="undefined"!==typeof Promise,s="undefined"!==typeof MutationObserver||"undefined"!==typeof WebKitMutationObserver||"undefined"!==typeof MozMutationObserver,l=r&&i&&o,c=l?window.navigator.userAgent.toLowerCase():"",u=c.indexOf("jsdom")>0,d=(/msie|trident/.test(c),function(){var t=!1;if(l)try{var e={get passive(){t=!0}};window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(n){t=!1}return t}()),f=l&&("ontouchstart"in document.documentElement||navigator.maxTouchPoints>0),h=l&&Boolean(window.PointerEvent||window.MSPointerEvent),p=l&&"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype,$=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r="undefined"!==typeof t&&t?Object({NODE_ENV:"production",BASE_URL:"/"})||!1:{};return e?r[e]||n:r},m=function(){return $("BOOTSTRAP_VUE_NO_WARN")||"production"===$("NODE_ENV")}}).call(this,n("4362"))},"94ca":function(t,e,n){var r=n("d039"),i=/#|\.prototype\./,o=function(t,e){var n=s[a(t)];return n==c||n!=l&&("function"==typeof e?r(e):!!e)},a=o.normalize=function(t){return String(t).replace(i,".").toLowerCase()},s=o.data={},l=o.NATIVE="N",c=o.POLYFILL="P";t.exports=o},"96cf":function(t,e,n){var r=function(t){"use strict";var e,n=Object.prototype,r=n.hasOwnProperty,i="function"===typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(B){l=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),a=new E(r||[]);return o._invoke=S(t,n,a),o}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(B){return{type:"throw",arg:B}}}t.wrap=c;var d="suspendedStart",f="suspendedYield",h="executing",p="completed",$={};function m(){}function g(){}function v(){}var y={};y[o]=function(){return this};var _=Object.getPrototypeOf,b=_&&_(_(T([])));b&&b!==n&&r.call(b,o)&&(y=b);var w=v.prototype=m.prototype=Object.create(y);function x(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function n(i,o,a,s){var l=u(t[i],t,o);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"===typeof d&&r.call(d,"__await")?e.resolve(d.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(d).then((function(t){c.value=t,a(c)}),(function(t){return n("throw",t,a,s)}))}s(l.arg)}var i;function o(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}this._invoke=o}function S(t,e,n){var r=d;return function(i,o){if(r===h)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return P()}n.method=i,n.arg=o;while(1){var a=n.delegate;if(a){var s=O(a,n);if(s){if(s===$)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var l=u(t,e,n);if("normal"===l.type){if(r=n.done?p:f,l.arg===$)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=p,n.method="throw",n.arg=l.arg)}}}function O(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator["return"]&&(n.method="return",n.arg=e,O(t,n),"throw"===n.method))return $;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return $}var i=u(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,$;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,$):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,$)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function T(t){if(t){var n=t[o];if(n)return n.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){while(++i=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),A(n),$}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;A(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:T(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),$}},t}(t.exports);try{regeneratorRuntime=r}catch(i){Function("r","regeneratorRuntime = r")(r)}},"97a1":function(t,e,n){t.exports=n("2ce7")},"9a48":function(t,e,n){(function(t){t(n("56b3"),n("b933"),n("8c33"))})((function(t){"use strict";var e=t.commands,n=t.Pos;function r(e,r,i){if(i<0&&0==r.ch)return e.clipPos(n(r.line-1));var o=e.getLine(r.line);if(i>0&&r.ch>=o.length)return e.clipPos(n(r.line+1,0));for(var a,s="start",l=r.ch,c=l,u=i<0?0:o.length,d=0;c!=u;c+=i,d++){var f=o.charAt(i<0?c-1:c),h="_"!=f&&t.isWordChar(f)?"w":"o";if("w"==h&&f.toUpperCase()==f&&(h="W"),"start"==s)"o"!=h?(s="in",a=h):l=c+i;else if("in"==s&&a!=h){if("w"==a&&"W"==h&&i<0&&c--,"W"==a&&"w"==h&&i>0){if(c==l+1){a="w";continue}c--}break}}return n(r.line,c)}function i(t,e){t.extendSelectionsBy((function(n){return t.display.shift||t.doc.extend||n.empty()?r(t.doc,n.head,e):e<0?n.from():n.to()}))}function o(e,r){if(e.isReadOnly())return t.Pass;e.operation((function(){for(var t=e.listSelections().length,i=[],o=-1,a=0;a=n&&t.execCommand("goLineUp")}t.scrollTo(null,e.top-t.defaultTextHeight())},e.scrollLineDown=function(t){var e=t.getScrollInfo();if(!t.somethingSelected()){var n=t.lineAtHeight(e.top,"local")+1;t.getCursor().line<=n&&t.execCommand("goLineDown")}t.scrollTo(null,e.top+t.defaultTextHeight())},e.splitSelectionByLine=function(t){for(var e=t.listSelections(),r=[],i=0;io.line&&s==a.line&&0==a.ch||r.push({anchor:s==o.line?o:n(s,0),head:s==a.line?a:n(s)});t.setSelections(r,0)},e.singleSelectionTop=function(t){var e=t.listSelections()[0];t.setSelection(e.anchor,e.head,{scroll:!1})},e.selectLine=function(t){for(var e=t.listSelections(),r=[],i=0;i=0;s--){l=r[i[s]];if(!(c&&t.cmpPos(l.head,c)>0)){var u=a(e,l.head);c=u.from,e.replaceRange(n(u.word),u.from,u.to)}}}))}function p(e){var n=e.getCursor("from"),r=e.getCursor("to");if(0==t.cmpPos(n,r)){var i=a(e,n);if(!i.word)return;n=i.from,r=i.to}return{from:n,to:r,query:e.getRange(n,r),word:i}}function $(t,e){var r=p(t);if(r){var i=r.query,o=t.getSearchCursor(i,e?r.to:r.from);(e?o.findNext():o.findPrevious())?t.setSelection(o.from(),o.to()):(o=t.getSearchCursor(i,e?n(t.firstLine(),0):t.clipPos(n(t.lastLine()))),(e?o.findNext():o.findPrevious())?t.setSelection(o.from(),o.to()):r.word&&t.setSelection(r.from,r.to))}}e.selectScope=function(t){u(t)||t.execCommand("selectAll")},e.selectBetweenBrackets=function(e){if(!u(e))return t.Pass},e.goToBracket=function(e){e.extendSelectionsBy((function(r){var i=e.scanForBracket(r.head,1,d(e.getTokenTypeAt(r.head)));if(i&&0!=t.cmpPos(i.pos,r.head))return i.pos;var o=e.scanForBracket(r.head,-1,d(e.getTokenTypeAt(n(r.head.line,r.head.ch+1))));return o&&n(o.pos.line,o.pos.ch+1)||r.head}))},e.swapLineUp=function(e){if(e.isReadOnly())return t.Pass;for(var r=e.listSelections(),i=[],o=e.firstLine()-1,a=[],s=0;so?i.push(c,u):i.length&&(i[i.length-1]=u),o=u}e.operation((function(){for(var t=0;te.lastLine()?e.replaceRange("\n"+s,n(e.lastLine()),null,"+swapLine"):e.replaceRange(s+"\n",n(o,0),null,"+swapLine")}e.setSelections(a),e.scrollIntoView()}))},e.swapLineDown=function(e){if(e.isReadOnly())return t.Pass;for(var r=e.listSelections(),i=[],o=e.lastLine()+1,a=r.length-1;a>=0;a--){var s=r[a],l=s.to().line+1,c=s.from().line;0!=s.to().ch||s.empty()||l--,l=0;t-=2){var r=i[t],o=i[t+1],a=e.getLine(r);r==e.lastLine()?e.replaceRange("",n(r-1),n(r),"+swapLine"):e.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),e.replaceRange(a+"\n",n(o,0),null,"+swapLine")}e.scrollIntoView()}))},e.toggleCommentIndented=function(t){t.toggleComment({indent:!0})},e.joinLines=function(t){for(var e=t.listSelections(),r=[],i=0;i=0;o--){var a=r[o].head,s=e.getRange({line:a.line,ch:0},a),l=t.countColumn(s,null,e.getOption("tabSize")),c=e.findPosH(a,-1,"char",!1);if(s&&!/\S/.test(s)&&l%i==0){var u=new n(a.line,t.findColumn(s,l-i,i));u.ch!=a.ch&&(c=u)}e.replaceRange("",c,a,"+delete")}}))},e.delLineRight=function(t){t.operation((function(){for(var e=t.listSelections(),r=e.length-1;r>=0;r--)t.replaceRange("",e[r].anchor,n(e[r].to().line),"+delete");t.scrollIntoView()}))},e.upcaseAtCursor=function(t){h(t,(function(t){return t.toUpperCase()}))},e.downcaseAtCursor=function(t){h(t,(function(t){return t.toLowerCase()}))},e.setSublimeMark=function(t){t.state.sublimeMark&&t.state.sublimeMark.clear(),t.state.sublimeMark=t.setBookmark(t.getCursor())},e.selectToSublimeMark=function(t){var e=t.state.sublimeMark&&t.state.sublimeMark.find();e&&t.setSelection(t.getCursor(),e)},e.deleteToSublimeMark=function(e){var n=e.state.sublimeMark&&e.state.sublimeMark.find();if(n){var r=e.getCursor(),i=n;if(t.cmpPos(r,i)>0){var o=i;i=r,r=o}e.state.sublimeKilled=e.getRange(r,i),e.replaceRange("",r,i)}},e.swapWithSublimeMark=function(t){var e=t.state.sublimeMark&&t.state.sublimeMark.find();e&&(t.state.sublimeMark.clear(),t.state.sublimeMark=t.setBookmark(t.getCursor()),t.setCursor(e))},e.sublimeYank=function(t){null!=t.state.sublimeKilled&&t.replaceSelection(t.state.sublimeKilled,null,"paste")},e.showInCenter=function(t){var e=t.cursorCoords(null,"local");t.scrollTo(null,(e.top+e.bottom)/2-t.getScrollInfo().clientHeight/2)},e.findUnder=function(t){$(t,!0)},e.findUnderPrevious=function(t){$(t,!1)},e.findAllUnder=function(t){var e=p(t);if(e){var n=t.getSearchCursor(e.query),r=[],i=-1;while(n.findNext())r.push({anchor:n.from(),head:n.to()}),n.from().line<=e.from.line&&n.from().ch<=e.from.ch&&i++;t.setSelections(r,i)}};var m=t.keyMap;m.macSublime={"Cmd-Left":"goLineStartSmart","Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Ctrl-Alt-Up":"scrollLineUp","Ctrl-Alt-Down":"scrollLineDown","Cmd-L":"selectLine","Shift-Cmd-L":"splitSelectionByLine",Esc:"singleSelectionTop","Cmd-Enter":"insertLineAfter","Shift-Cmd-Enter":"insertLineBefore","Cmd-D":"selectNextOccurrence","Shift-Cmd-Space":"selectScope","Shift-Cmd-M":"selectBetweenBrackets","Cmd-M":"goToBracket","Cmd-Ctrl-Up":"swapLineUp","Cmd-Ctrl-Down":"swapLineDown","Cmd-/":"toggleCommentIndented","Cmd-J":"joinLines","Shift-Cmd-D":"duplicateLine",F5:"sortLines","Cmd-F5":"sortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Cmd-F2":"toggleBookmark","Shift-Cmd-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Cmd-K Cmd-D":"skipAndSelectNextOccurrence","Cmd-K Cmd-K":"delLineRight","Cmd-K Cmd-U":"upcaseAtCursor","Cmd-K Cmd-L":"downcaseAtCursor","Cmd-K Cmd-Space":"setSublimeMark","Cmd-K Cmd-A":"selectToSublimeMark","Cmd-K Cmd-W":"deleteToSublimeMark","Cmd-K Cmd-X":"swapWithSublimeMark","Cmd-K Cmd-Y":"sublimeYank","Cmd-K Cmd-C":"showInCenter","Cmd-K Cmd-G":"clearBookmarks","Cmd-K Cmd-Backspace":"delLineLeft","Cmd-K Cmd-1":"foldAll","Cmd-K Cmd-0":"unfoldAll","Cmd-K Cmd-J":"unfoldAll","Ctrl-Shift-Up":"addCursorToPrevLine","Ctrl-Shift-Down":"addCursorToNextLine","Cmd-F3":"findUnder","Shift-Cmd-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Cmd-[":"fold","Shift-Cmd-]":"unfold","Cmd-I":"findIncremental","Shift-Cmd-I":"findIncrementalReverse","Cmd-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"macDefault"},t.normalizeKeyMap(m.macSublime),m.pcSublime={"Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-T":"transposeChars","Alt-Left":"goSubwordLeft","Alt-Right":"goSubwordRight","Ctrl-Up":"scrollLineUp","Ctrl-Down":"scrollLineDown","Ctrl-L":"selectLine","Shift-Ctrl-L":"splitSelectionByLine",Esc:"singleSelectionTop","Ctrl-Enter":"insertLineAfter","Shift-Ctrl-Enter":"insertLineBefore","Ctrl-D":"selectNextOccurrence","Shift-Ctrl-Space":"selectScope","Shift-Ctrl-M":"selectBetweenBrackets","Ctrl-M":"goToBracket","Shift-Ctrl-Up":"swapLineUp","Shift-Ctrl-Down":"swapLineDown","Ctrl-/":"toggleCommentIndented","Ctrl-J":"joinLines","Shift-Ctrl-D":"duplicateLine",F9:"sortLines","Ctrl-F9":"sortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Ctrl-F2":"toggleBookmark","Shift-Ctrl-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Ctrl-K Ctrl-D":"skipAndSelectNextOccurrence","Ctrl-K Ctrl-K":"delLineRight","Ctrl-K Ctrl-U":"upcaseAtCursor","Ctrl-K Ctrl-L":"downcaseAtCursor","Ctrl-K Ctrl-Space":"setSublimeMark","Ctrl-K Ctrl-A":"selectToSublimeMark","Ctrl-K Ctrl-W":"deleteToSublimeMark","Ctrl-K Ctrl-X":"swapWithSublimeMark","Ctrl-K Ctrl-Y":"sublimeYank","Ctrl-K Ctrl-C":"showInCenter","Ctrl-K Ctrl-G":"clearBookmarks","Ctrl-K Ctrl-Backspace":"delLineLeft","Ctrl-K Ctrl-1":"foldAll","Ctrl-K Ctrl-0":"unfoldAll","Ctrl-K Ctrl-J":"unfoldAll","Ctrl-Alt-Up":"addCursorToPrevLine","Ctrl-Alt-Down":"addCursorToNextLine","Ctrl-F3":"findUnder","Shift-Ctrl-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Ctrl-[":"fold","Shift-Ctrl-]":"unfold","Ctrl-I":"findIncremental","Shift-Ctrl-I":"findIncrementalReverse","Ctrl-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"pcDefault"},t.normalizeKeyMap(m.pcSublime);var g=m.default==m.macDefault;m.sublime=g?m.macSublime:m.pcSublime}))},"9b74":function(t,e,n){(function(t){t(n("56b3"))})((function(t){"use strict";var e="CodeMirror-hint",n="CodeMirror-hint-active";function r(t,e){this.cm=t,this.options=e,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length;var n=this;t.on("cursorActivity",this.activityFunc=function(){n.cursorActivity()})}t.showHint=function(t,e,n){if(!e)return t.showHint(n);n&&n.async&&(e.async=!0);var r={hint:e};if(n)for(var i in n)r[i]=n[i];return t.showHint(r)},t.defineExtension("showHint",(function(e){e=a(this,this.getCursor("start"),e);var n=this.listSelections();if(!(n.length>1)){if(this.somethingSelected()){if(!e.hint.supportsSelection)return;for(var i=0;if.clientHeight+1,D=a.getScrollInfo();if(L>0){var R=B.bottom-B.top,j=_.top-(_.bottom-B.top);if(j-R>0)f.style.top=(w=_.top-R-S)+"px",x=!1;else if(R>P){f.style.height=P-5+"px",f.style.top=(w=_.bottom-B.top-S)+"px";var M=a.getCursor();i.from.ch!=M.ch&&(_=a.cursorCoords(M),f.style.left=(b=_.left-k)+"px",B=f.getBoundingClientRect())}}var F,N=B.right-T;if(N>0&&(B.right-B.left>T&&(f.style.width=T-5+"px",N-=B.right-B.left-T),f.style.left=(b=_.left-N-k)+"px"),I)for(var z=f.firstChild;z;z=z.nextSibling)z.style.paddingRight=a.display.nativeBarWidth+"px";(a.addKeyMap(this.keyMap=l(r,{moveFocus:function(t,e){o.changeActive(o.selectedHint+t,e)},setFocus:function(t){o.changeActive(t)},menuSize:function(){return o.screenAmount()},length:p.length,close:function(){r.close()},pick:function(){o.pick()},data:i})),r.options.closeOnUnfocus)&&(a.on("blur",this.onBlur=function(){F=setTimeout((function(){r.close()}),100)}),a.on("focus",this.onFocus=function(){clearTimeout(F)}));return a.on("scroll",this.onScroll=function(){var t=a.getScrollInfo(),e=a.getWrapperElement().getBoundingClientRect(),n=w+D.top-t.top,i=n-(d.pageYOffset||(u.documentElement||u.body).scrollTop);if(x||(i+=f.offsetHeight),i<=e.top||i>=e.bottom)return r.close();f.style.top=n+"px",f.style.left=b+D.left-t.left+"px"}),t.on(f,"dblclick",(function(t){var e=c(f,t.target||t.srcElement);e&&null!=e.hintId&&(o.changeActive(e.hintId),o.pick())})),t.on(f,"click",(function(t){var e=c(f,t.target||t.srcElement);e&&null!=e.hintId&&(o.changeActive(e.hintId),r.options.completeOnSingleClick&&o.pick())})),t.on(f,"mousedown",(function(){setTimeout((function(){a.focus()}),20)})),this.scrollToActive(),t.signal(i,"select",p[this.selectedHint],f.childNodes[this.selectedHint]),!0}function d(t,e){if(!t.somethingSelected())return e;for(var n=[],r=0;r0?e(t):o(i+1)}))}o(0)};return o.async=!0,o.supportsSelection=!0,o}return(r=e.getHelper(e.getCursor(),"hintWords"))?function(e){return t.hint.fromList(e,{words:r})}:t.hint.anyword?function(e,n){return t.hint.anyword(e,n)}:function(){}}r.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&t.signal(this.data,"close"),this.widget&&this.widget.close(),t.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(e,n){var r=e.list[n],i=this;this.cm.operation((function(){r.hint?r.hint(i.cm,e,r):i.cm.replaceRange(s(r),r.from||e.from,r.to||e.to,"complete"),t.signal(e,"pick",r),i.cm.scrollIntoView()})),this.close()},cursorActivity:function(){this.debounce&&(o(this.debounce),this.debounce=0);var t=this.startPos;this.data&&(t=this.data.from);var e=this.cm.getCursor(),n=this.cm.getLine(e.line);if(e.line!=this.startPos.line||n.length-e.ch!=this.startLen-this.startPos.ch||e.ch=this.data.list.length?e=r?this.data.list.length-1:0:e<0&&(e=r?0:this.data.list.length-1),this.selectedHint!=e){var i=this.hints.childNodes[this.selectedHint];i&&(i.className=i.className.replace(" "+n,"")),i=this.hints.childNodes[this.selectedHint=e],i.className+=" "+n,this.scrollToActive(),t.signal(this.data,"select",this.data.list[this.selectedHint],i)}},scrollToActive:function(){var t=this.completion.options.scrollMargin||0,e=this.hints.childNodes[Math.max(0,this.selectedHint-t)],n=this.hints.childNodes[Math.min(this.data.list.length-1,this.selectedHint+t)],r=this.hints.firstChild;e.offsetTopthis.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=n.offsetTop+n.offsetHeight-this.hints.clientHeight+r.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1}},t.registerHelper("hint","auto",{resolve:h}),t.registerHelper("hint","fromList",(function(e,n){var r,i=e.getCursor(),o=e.getTokenAt(i),a=t.Pos(i.line,o.start),s=i;o.start,]/,closeOnUnfocus:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null};t.defineOption("hintOptions",null)}))},"9bdd":function(t,e,n){var r=n("825a");t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(a){var o=t["return"];throw void 0!==o&&r(o.call(t)),a}}},"9bf2":function(t,e,n){var r=n("83ab"),i=n("0cfb"),o=n("825a"),a=n("c04e"),s=Object.defineProperty;e.f=r?s:function(t,e,n){if(o(t),e=a(e,!0),o(n),i)try{return s(t,e,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},"9c7b":function(t,e,n){(function(t){t(n("56b3"))})((function(t){"use strict";function e(t,e){function n(t){clearTimeout(r.doRedraw),r.doRedraw=setTimeout((function(){r.redraw()}),t)}this.cm=t,this.options=e,this.buttonHeight=e.scrollButtonHeight||t.getOption("scrollButtonHeight"),this.annotations=[],this.doRedraw=this.doUpdate=null,this.div=t.getWrapperElement().appendChild(document.createElement("div")),this.div.style.cssText="position: absolute; right: 0; top: 0; z-index: 7; pointer-events: none",this.computeScale();var r=this;t.on("refresh",this.resizeHandler=function(){clearTimeout(r.doUpdate),r.doUpdate=setTimeout((function(){r.computeScale()&&n(20)}),100)}),t.on("markerAdded",this.resizeHandler),t.on("markerCleared",this.resizeHandler),!1!==e.listenForChanges&&t.on("changes",this.changeHandler=function(){n(250)})}t.defineExtension("annotateScrollbar",(function(t){return"string"==typeof t&&(t={className:t}),new e(this,t)})),t.defineOption("scrollButtonHeight",0),e.prototype.computeScale=function(){var t=this.cm,e=(t.getWrapperElement().clientHeight-t.display.barHeight-2*this.buttonHeight)/t.getScrollerElement().scrollHeight;if(e!=this.hScale)return this.hScale=e,!0},e.prototype.update=function(t){this.annotations=t,this.redraw()},e.prototype.redraw=function(t){!1!==t&&this.computeScale();var e=this.cm,n=this.hScale,r=document.createDocumentFragment(),i=this.annotations,o=e.getOption("lineWrapping"),a=o&&1.5*e.defaultTextHeight(),s=null,l=null;function c(t,n){if(s!=t.line){s=t.line,l=e.getLineHandle(t.line);var r=e.getLineHandleVisualStart(l);r!=l&&(s=e.getLineNumber(r),l=r)}if(l.widgets&&l.widgets.length||o&&l.height>a)return e.charCoords(t,"local")[n?"top":"bottom"];var i=e.heightAtLine(l,"local");return i+(n?0:l.height)}var u=e.lastLine();if(e.display.barWidth)for(var d,f=0;fu)){var p=d||c(h.from,!0)*n,$=c(h.to,!1)*n;while(fu)break;if(d=c(i[f+1].from,!0)*n,d>$+.9)break;h=i[++f],$=c(h.to,!1)*n}if($!=p){var m=Math.max($-p,3),g=r.appendChild(document.createElement("div"));g.style.cssText="position: absolute; right: 0px; width: "+Math.max(e.display.barWidth-1,2)+"px; top: "+(p+this.buttonHeight)+"px; height: "+m+"px",g.className=this.options.className,h.id&&g.setAttribute("annotation-id",h.id)}}}this.div.textContent="",this.div.appendChild(r)},e.prototype.clear=function(){this.cm.off("refresh",this.resizeHandler),this.cm.off("markerAdded",this.resizeHandler),this.cm.off("markerCleared",this.resizeHandler),this.changeHandler&&this.cm.off("changes",this.changeHandler),this.div.parentNode.removeChild(this.div)}}))},"9ed3":function(t,e,n){"use strict";var r=n("ae93").IteratorPrototype,i=n("7c73"),o=n("5c6c"),a=n("d44e"),s=n("3f8c"),l=function(){return this};t.exports=function(t,e,n){var c=e+" Iterator";return t.prototype=i(r,{next:o(1,n)}),a(t,c,!1,!0),s[c]=l,t}},"9f09":function(t,e,n){(function(t){t(n("56b3"))})((function(t){"use strict";t.registerHelper("fold","markdown",(function(e,n){var r=100;function i(n){var r=e.getTokenTypeAt(t.Pos(n,0));return r&&/\bheader\b/.test(r)}function o(t,e,n){var o=e&&e.match(/^#+/);return o&&i(t)?o[0].length:(o=n&&n.match(/^[=\-]+\s*$/),o&&i(t+1)?"="==n[0]?1:2:r)}var a=e.getLine(n.line),s=e.getLine(n.line+1),l=o(n.line,a,s);if(l!==r){var c=e.lastLine(),u=n.line,d=e.getLine(u+2);while(u=t.max))return t.ch=0,t.text=t.cm.getLine(++t.line),!0}function c(t){if(!(t.line<=t.min))return t.text=t.cm.getLine(--t.line),t.ch=t.text.length,!0}function u(t){for(;;){var e=t.text.indexOf(">",t.ch);if(-1==e){if(l(t))continue;return}if(s(t,e+1)){var n=t.text.lastIndexOf("/",e),r=n>-1&&!/\S/.test(t.text.slice(n+1,e));return t.ch=e+1,r?"selfClose":"regular"}t.ch=e+1}}function d(t){for(;;){var e=t.ch?t.text.lastIndexOf("<",t.ch-1):-1;if(-1==e){if(c(t))continue;return}if(s(t,e+1)){o.lastIndex=e,t.ch=e;var n=o.exec(t.text);if(n&&n.index==e)return n}else t.ch=e}}function f(t){for(;;){o.lastIndex=t.ch;var e=o.exec(t.text);if(!e){if(l(t))continue;return}if(s(t,e.index+1))return t.ch=e.index+e[0].length,e;t.ch=e.index+1}}function h(t){for(;;){var e=t.ch?t.text.lastIndexOf(">",t.ch-1):-1;if(-1==e){if(c(t))continue;return}if(s(t,e+1)){var n=t.text.lastIndexOf("/",e),r=n>-1&&!/\S/.test(t.text.slice(n+1,e));return t.ch=e+1,r?"selfClose":"regular"}t.ch=e}}function p(t,n){for(var r=[];;){var i,o=f(t),a=t.line,s=t.ch-(o?o[0].length:0);if(!o||!(i=u(t)))return;if("selfClose"!=i)if(o[1]){for(var l=r.length-1;l>=0;--l)if(r[l]==o[2]){r.length=l;break}if(l<0&&(!n||n==o[2]))return{tag:o[2],from:e(a,s),to:e(t.line,t.ch)}}else r.push(o[2])}}function $(t,n){for(var r=[];;){var i=h(t);if(!i)return;if("selfClose"!=i){var o=t.line,a=t.ch,s=d(t);if(!s)return;if(s[1])r.push(s[2]);else{for(var l=r.length-1;l>=0;--l)if(r[l]==s[2]){r.length=l;break}if(l<0&&(!n||n==s[2]))return{tag:s[2],from:e(t.line,t.ch),to:e(o,a)}}}else d(t)}}t.registerHelper("fold","xml",(function(t,r){for(var i=new a(t,r.line,0);;){var o=f(i);if(!o||i.line!=r.line)return;var s=u(i);if(!s)return;if(!o[1]&&"selfClose"!=s){var l=e(i.line,i.ch),c=p(i,o[2]);return c&&n(c.from,l)>0?{from:l,to:c.from}:null}}})),t.findMatchingTag=function(t,r,i){var o=new a(t,r.line,r.ch,i);if(-1!=o.text.indexOf(">")||-1!=o.text.indexOf("<")){var s=u(o),l=s&&e(o.line,o.ch),c=s&&d(o);if(s&&c&&!(n(o,r)>0)){var f={from:e(o.line,o.ch),to:l,tag:c[2]};return"selfClose"==s?{open:f,close:null,at:"open"}:c[1]?{open:$(o,c[2]),close:f,at:"close"}:(o=new a(t,l.line,l.ch,i),{open:f,close:p(o,c[2]),at:"open"})}}},t.findEnclosingTag=function(t,e,n,r){for(var i=new a(t,e.line,e.ch,n);;){var o=$(i,r);if(!o)break;var s=new a(t,e.line,e.ch,n),l=p(s,o.tag);if(l)return{open:o,close:l}}},t.scanForClosingTag=function(t,e,n,r){var i=new a(t,e.line,e.ch,r?{from:0,to:r}:null);return p(i,n)}}))},a691:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},a79d:function(t,e,n){"use strict";var r=n("23e7"),i=n("c430"),o=n("fea9"),a=n("d039"),s=n("d066"),l=n("4840"),c=n("cdf9"),u=n("6eeb"),d=!!o&&a((function(){o.prototype["finally"].call({then:function(){}},(function(){}))}));r({target:"Promise",proto:!0,real:!0,forced:d},{finally:function(t){var e=l(this,s("Promise")),n="function"==typeof t;return this.then(n?function(n){return c(e,t()).then((function(){return n}))}:t,n?function(n){return c(e,t()).then((function(){throw n}))}:t)}}),i||"function"!=typeof o||o.prototype["finally"]||u(o.prototype,"finally",s("Promise").prototype["finally"])},a7be:function(t,e,n){},ae93:function(t,e,n){"use strict";var r,i,o,a=n("e163"),s=n("9112"),l=n("5135"),c=n("b622"),u=n("c430"),d=c("iterator"),f=!1,h=function(){return this};[].keys&&(o=[].keys(),"next"in o?(i=a(a(o)),i!==Object.prototype&&(r=i)):f=!0),void 0==r&&(r={}),u||l(r,d)||s(r,d,h),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:f}},aedd:function(t,e,n){(function(t){t(n("56b3"))})((function(t){"use strict";t.registerHelper("fold","brace",(function(e,n){var r,i=n.line,o=e.getLine(i);function a(a){for(var s=n.ch,l=0;;){var c=s<=0?-1:o.lastIndexOf(a,s-1);if(-1!=c){if(1==l&&ce.lastLine())return null;var r=e.getTokenAt(t.Pos(n,1));if(/\S/.test(r.string)||(r=e.getTokenAt(t.Pos(n,r.end+1))),"keyword"!=r.type||"import"!=r.string)return null;for(var i=n,o=Math.min(e.lastLine(),n+10);i<=o;++i){var a=e.getLine(i),s=a.indexOf(";");if(-1!=s)return{startCh:r.end,end:t.Pos(i,s)}}}var i,o=n.line,a=r(o);if(!a||r(o-1)||(i=r(o-2))&&i.end.line==o-1)return null;for(var s=a.end;;){var l=r(s.line+1);if(null==l)break;s=l.end}return{from:e.clipPos(t.Pos(o,a.startCh+1)),to:s}})),t.registerHelper("fold","include",(function(e,n){function r(n){if(ne.lastLine())return null;var r=e.getTokenAt(t.Pos(n,1));return/\S/.test(r.string)||(r=e.getTokenAt(t.Pos(n,r.end+1))),"meta"==r.type&&"#include"==r.string.slice(0,8)?r.start+8:void 0}var i=n.line,o=r(i);if(null==o||null!=r(i-1))return null;for(var a=i;;){var s=r(a+1);if(null==s)break;++a}return{from:t.Pos(i,o+1),to:e.clipPos(t.Pos(a))}}))}))},b041:function(t,e,n){"use strict";var r=n("00ee"),i=n("f5df");t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},b575:function(t,e,n){var r,i,o,a,s,l,c,u,d=n("da84"),f=n("06cf").f,h=n("c6b6"),p=n("2cf4").set,$=n("1cdc"),m=d.MutationObserver||d.WebKitMutationObserver,g=d.process,v=d.Promise,y="process"==h(g),_=f(d,"queueMicrotask"),b=_&&_.value;b||(r=function(){var t,e;y&&(t=g.domain)&&t.exit();while(i){e=i.fn,i=i.next;try{e()}catch(n){throw i?a():o=void 0,n}}o=void 0,t&&t.enter()},y?a=function(){g.nextTick(r)}:m&&!$?(s=!0,l=document.createTextNode(""),new m(r).observe(l,{characterData:!0}),a=function(){l.data=s=!s}):v&&v.resolve?(c=v.resolve(void 0),u=c.then,a=function(){u.call(c,r)}):a=function(){p.call(d,r)}),t.exports=b||function(t){var e={fn:t,next:void 0};o&&(o.next=e),i||(i=e,a()),o=e}},b622:function(t,e,n){var r=n("da84"),i=n("5692"),o=n("5135"),a=n("90e3"),s=n("4930"),l=n("fdbf"),c=i("wks"),u=r.Symbol,d=l?u:u&&u.withoutSetter||a;t.exports=function(t){return o(c,t)||(s&&o(u,t)?c[t]=u[t]:c[t]=d("Symbol."+t)),c[t]}},b639:function(t,e,n){"use strict";(function(t){
+ */function Xs(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Zs(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:"";return String(t).replace(Bt,"")},bl=function(t,e){return t?{innerHTML:t}:e?{textContent:e}:{}};function wl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function xl(t){for(var e=1;e-1&&(e=e.slice(0,n).reverse(),oo(e[0]))},focusNext:function(t){var e=this.getItems(),n=e.indexOf(t.target);n>-1&&(e=e.slice(n+1),oo(e[0]))},focusLast:function(){var t=this.getItems().reverse();oo(t[0])},onFocusin:function(t){var e=this.$el;t.target!==e||zi(e,t.relatedTarget)||(Io(t),this.focusFirst(t))},onKeydown:function(t){var e=t.keyCode,n=t.shiftKey;e===ja||e===Ba?(Io(t),n?this.focusFirst(t):this.focusPrev(t)):e!==Ca&&e!==Da||(Io(t),n?this.focusLast(t):this.focusNext(t))}},render:function(t){return t("div",{staticClass:"btn-toolbar",class:{"justify-content-between":this.justify},attrs:{role:"toolbar",tabindex:this.keyNav?"0":null},on:this.keyNav?{focusin:this.onFocusin,keydown:this.onKeydown}:{}},[this.normalizeSlot()])}}),zl=Nr({components:{BButtonToolbar:Nl,BBtnToolbar:Nl}}),Hl="gregory",Vl="long",Ul="narrow",ql="short",Wl="2-digit",Gl="numeric";function Yl(t,e){return Ql(t)||Jl(t,e)||Xl(t,e)||Kl()}function Kl(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Xl(t,e){if(t){if("string"===typeof t)return Zl(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zl(t,e):void 0}}function Zl(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:Hl;t=ii(t).filter(Xt);var n=new Intl.DateTimeFormat(t,{calendar:e});return n.resolvedOptions().locale},sc=function(t,e){var n=new Intl.DateTimeFormat(t,e);return n.format},lc=function(t,e){return oc(t)===oc(e)},cc=function(t){return t=rc(t),t.setDate(1),t},uc=function(t){return t=rc(t),t.setMonth(t.getMonth()+1),t.setDate(0),t},dc=function(t,e){t=rc(t);var n=t.getMonth();return t.setFullYear(t.getFullYear()+e),t.getMonth()!==n&&t.setDate(0),t},fc=function(t){t=rc(t);var e=t.getMonth();return t.setMonth(e-1),t.getMonth()===e&&t.setDate(0),t},hc=function(t){t=rc(t);var e=t.getMonth();return t.setMonth(e+1),t.getMonth()===(e+2)%12&&t.setDate(0),t},pc=function(t){return dc(t,-1)},$c=function(t){return dc(t,1)},mc=function(t){return dc(t,-10)},gc=function(t){return dc(t,10)},vc=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return t=ic(t),e=ic(e)||t,n=ic(n)||t,t?tn?n:t:null},yc=["ar","az","ckb","fa","he","ks","lrc","mzn","ps","sd","te","ug","ur","yi"].map((function(t){return t.toLowerCase()})),_c=function(t){var e=gi(t).toLowerCase().replace(Yt,"").split("-"),n=e.slice(0,2).join("-"),r=e[0];return ri(yc,n)||ri(yc,r)},bc={props:{id:{type:String}},data:function(){return{localId_:null}},computed:{safeId:function(){var t=this.id||this.localId_,e=function(e){return t?(e=String(e||"").replace(/\s+/g,"_"),e?t+"_"+e:t):null};return e}},mounted:function(){var t=this;this.$nextTick((function(){t.localId_="__BVID__".concat(t._uid)}))}};function wc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function xc(t){for(var e=1;ee}},dateDisabled:function(){var t=this.dateOutOfRange,e=I(this.dateDisabledFn)?this.dateDisabledFn:function(){return!1};return function(n){n=ic(n);var r=oc(n);return!(!t(n)&&!e(r,n))}},formatDateString:function(){return sc(this.calendarLocale,xc(xc({year:Gl,month:Wl,day:Wl},this.dateFormatOptions),{},{hour:void 0,minute:void 0,second:void 0,calendar:Hl}))},formatYearMonth:function(){return sc(this.calendarLocale,{year:Gl,month:Vl,calendar:Hl})},formatWeekdayName:function(){return sc(this.calendarLocale,{weekday:Vl,calendar:Hl})},formatWeekdayNameShort:function(){return sc(this.calendarLocale,{weekday:this.weekdayHeaderFormat||ql,calendar:Hl})},formatDay:function(){var t=new Intl.NumberFormat([this.computedLocale],{style:"decimal",minimumIntegerDigits:1,minimumFractionDigits:0,maximumFractionDigits:0,notation:"standard"});return function(e){return t.format(e.getDate())}},prevDecadeDisabled:function(){var t=this.computedMin;return this.disabled||t&&uc(mc(this.activeDate))t},nextYearDisabled:function(){var t=this.computedMax;return this.disabled||t&&cc($c(this.activeDate))>t},nextDecadeDisabled:function(){var t=this.computedMax;return this.disabled||t&&cc(gc(this.activeDate))>t},calendar:function(){for(var t=[],e=this.calendarFirstDay,n=e.getFullYear(),r=e.getMonth(),i=this.calendarDaysInMonth,o=e.getDay(),a=(this.computedWeekStarts>o?7:0)-this.computedWeekStarts,s=I(this.dateInfoFn)?this.dateInfoFn:function(){return{}},l=0-a-o,c=0;c<6&<.length)&&(e=t.length);for(var n=0,r=new Array(e);n0);n!==this.visible&&(this.visible=n,this.callback(n),this.once&&this.visible&&(this.doneOnce=!0,this.stop()))}},{key:"stop",value:function(){this.observer&&this.observer.disconnect(),this.observer=null}}]),t}(),fu=function(t){var e=t[uu];e&&e.stop&&e.stop(),delete t[uu]},hu=function(t,e,n){var r=e.value,i=e.modifiers,o={margin:"0px",once:!1,callback:r};nt(i).forEach((function(t){At.test(t)?o.margin="".concat(t,"px"):"once"===t.toLowerCase()&&(o.once=!0)})),fu(t),t[uu]=new du(t,o,n),t[uu]._prevModifiers=ot(i)},pu=function(t,e,n){var r=e.value,i=e.oldValue,o=e.modifiers;o=ot(o),!t||r===i&&t[uu]&&Na(o,t[uu]._prevModifiers)||hu(t,{value:r,modifiers:o},n)},$u=function(t){fu(t)},mu={bind:hu,componentUpdated:pu,unbind:$u};function gu(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var vu=' ',yu={src:{type:String},srcset:{type:[String,Array]},sizes:{type:[String,Array]},alt:{type:String,default:null},width:{type:[Number,String]},height:{type:[Number,String]},block:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1},fluidGrow:{type:Boolean,default:!1},rounded:{type:[Boolean,String],default:!1},thumbnail:{type:Boolean,default:!1},left:{type:Boolean,default:!1},right:{type:Boolean,default:!1},center:{type:Boolean,default:!1},blank:{type:Boolean,default:!1},blankColor:{type:String,default:function(){return Zr(mn,"blankColor")}}},_u=function(t,e,n){var r=encodeURIComponent(vu.replace("%{w}",gi(t)).replace("%{h}",gi(e)).replace("%{f}",n));return"data:image/svg+xml;charset=UTF-8,".concat(r)},bu=c.extend({name:mn,functional:!0,props:yu,render:function(t,e){var n,r=e.props,i=e.data,o=r.src,a=li(r.width)||null,s=li(r.height)||null,c=null,u=r.block,d=ii(r.srcset).filter(Xt).join(","),f=ii(r.sizes).filter(Xt).join(",");return r.blank&&(!s&&a?s=a:!a&&s&&(a=s),a||s||(a=1,s=1),o=_u(a,s,r.blankColor||"transparent"),d=null,f=null),r.left?c="float-left":r.right?c="float-right":r.center&&(c="mx-auto",u=!0),t("img",l(i,{attrs:{src:o,alt:r.alt,width:a?gi(a):null,height:s?gi(s):null,srcset:d||null,sizes:f||null},class:(n={"img-thumbnail":r.thumbnail,"img-fluid":r.fluid||r.fluidGrow,"w-100":r.fluidGrow,rounded:""===r.rounded||!0===r.rounded},gu(n,"rounded-".concat(r.rounded),R(r.rounded)&&""!==r.rounded),gu(n,c,c),gu(n,"d-block",u),n)}))}});function wu(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var xu={src:{type:String,required:!0},srcset:{type:[String,Array]},sizes:{type:[String,Array]},alt:{type:String},width:{type:[Number,String]},height:{type:[Number,String]},blankSrc:{type:String,default:null},blankColor:{type:String,default:function(){return Zr(gn,"blankColor")}},blankWidth:{type:[Number,String]},blankHeight:{type:[Number,String]},show:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1},fluidGrow:{type:Boolean,default:!1},block:{type:Boolean,default:!1},thumbnail:{type:Boolean,default:!1},rounded:{type:[Boolean,String],default:!1},left:{type:Boolean,default:!1},right:{type:Boolean,default:!1},center:{type:Boolean,default:!1},offset:{type:[Number,String],default:360}},ku=c.extend({name:gn,directives:{bVisible:mu},props:xu,data:function(){return{isShown:this.show}},computed:{computedSrc:function(){return!this.blankSrc||this.isShown?this.src:this.blankSrc},computedBlank:function(){return!(this.isShown||this.blankSrc)},computedWidth:function(){return this.isShown?this.width:this.blankWidth||this.width},computedHeight:function(){return this.isShown?this.height:this.blankHeight||this.height},computedSrcset:function(){var t=ii(this.srcset).filter(Xt).join(",");return!this.blankSrc||this.isShown?t:null},computedSizes:function(){var t=ii(this.sizes).filter(Xt).join(",");return!this.blankSrc||this.isShown?t:null}},watch:{show:function(t,e){if(t!==e){var n=!u["c"]||t;this.isShown=n,n!==t&&this.$nextTick(this.updateShowProp)}},isShown:function(t,e){t!==e&&this.updateShowProp()}},mounted:function(){this.isShown=!u["c"]||this.show},methods:{updateShowProp:function(){this.$emit("update:show",this.isShown)},doShow:function(t){!t&&null!==t||this.isShown||(this.isShown=!0)}},render:function(t){var e,n=[];this.isShown||n.push({name:"b-visible",value:this.doShow,modifiers:(e={},wu(e,"".concat(li(this.offset,0)),!0),wu(e,"once",!0),e)});return t(bu,{directives:n,props:{src:this.computedSrc,blank:this.computedBlank,width:this.computedWidth,height:this.computedHeight,srcset:this.computedSrcset||null,sizes:this.computedSizes||null,alt:this.alt,blankColor:this.blankColor,fluid:this.fluid,fluidGrow:this.fluidGrow,block:this.block,thumbnail:this.thumbnail,rounded:this.rounded,left:this.left,right:this.right,center:this.center}})}});function Su(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ou(t){for(var e=1;e0||i.removedNodes.length>0))&&(n=!0)}n&&e()}));return r.observe(t,zu({childList:!0,subtree:!0},n)),r},Uu=Vu,qu={next:{dirClass:"carousel-item-left",overlayClass:"carousel-item-next"},prev:{dirClass:"carousel-item-right",overlayClass:"carousel-item-prev"}},Wu=650,Gu=500,Yu=40,Ku={TOUCH:"touch",PEN:"pen"},Xu={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend oTransitionEnd",transition:"transitionend"},Zu=function(t){for(var e in Xu)if(!P(t.style[e]))return Xu[e];return null},Ju=c.extend({name:Ce,mixins:[bc,Eo],provide:function(){return{bvCarousel:this}},model:{prop:"value",event:"input"},props:{labelPrev:{type:String,default:function(){return Zr(Ce,"labelPrev")}},labelNext:{type:String,default:function(){return Zr(Ce,"labelNext")}},labelGotoSlide:{type:String,default:function(){return Zr(Ce,"labelGotoSlide")}},labelIndicators:{type:String,default:function(){return Zr(Ce,"labelIndicators")}},interval:{type:Number,default:5e3},indicators:{type:Boolean,default:!1},controls:{type:Boolean,default:!1},noAnimation:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},noWrap:{type:Boolean,default:!1},noTouch:{type:Boolean,default:!1},noHoverPause:{type:Boolean,default:!1},imgWidth:{type:[Number,String]},imgHeight:{type:[Number,String]},background:{type:String},value:{type:Number,default:0}},data:function(){return{index:this.value||0,isSliding:!1,transitionEndEvent:null,slides:[],direction:null,isPaused:!(li(this.interval,0)>0),touchStartX:0,touchDeltaX:0}},computed:{numSlides:function(){return this.slides.length}},watch:{value:function(t,e){t!==e&&this.setSlide(li(t,0))},interval:function(t,e){t!==e&&(t?(this.pause(!0),this.start(!1)):this.pause(!1))},isPaused:function(t,e){t!==e&&this.$emit(t?"paused":"unpaused")},index:function(t,e){t===e||this.isSliding||this.doSlide(t,e)}},created:function(){this.$_interval=null,this.$_animationTimeout=null,this.$_touchTimeout=null,this.$_observer=null,this.isPaused=!(li(this.interval,0)>0)},mounted:function(){this.transitionEndEvent=Zu(this.$el)||null,this.updateSlides(),this.setObserver(!0)},beforeDestroy:function(){this.clearInterval(),this.clearAnimationTimeout(),this.clearTouchTimeout(),this.setObserver(!1)},methods:{clearInterval:function(t){function e(){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(){clearInterval(this.$_interval),this.$_interval=null})),clearAnimationTimeout:function(){clearTimeout(this.$_animationTimeout),this.$_animationTimeout=null},clearTouchTimeout:function(){clearTimeout(this.$_touchTimeout),this.$_touchTimeout=null},setObserver:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$_observer&&this.$_observer.disconnect(),this.$_observer=null,t&&(this.$_observer=Uu(this.$refs.inner,this.updateSlides.bind(this),{subtree:!1,childList:!0,attributes:!0,attributeFilter:["id"]}))},setSlide:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!(u["j"]&&document.visibilityState&&document.hidden)){var r=this.noWrap,i=this.numSlides;t=Go(t),0!==i&&(this.isSliding?this.$once("sliding-end",(function(){return e.setSlide(t,n)})):(this.direction=n,this.index=t>=i?r?i-1:0:t<0?r?0:i-1:t,r&&this.index!==t&&this.index!==this.value&&this.$emit("input",this.index)))}},prev:function(){this.setSlide(this.index-1,"prev")},next:function(){this.setSlide(this.index+1,"next")},pause:function(t){t||(this.isPaused=!0),this.clearInterval()},start:function(t){t||(this.isPaused=!1),this.clearInterval(),this.interval&&this.numSlides>1&&(this.$_interval=setInterval(this.next,Uo(1e3,this.interval)))},restart:function(){this.$el.contains(Pi())||this.start()},doSlide:function(t,e){var n=this,r=Boolean(this.interval),i=this.calcDirection(this.direction,e,t),o=i.overlayClass,a=i.dirClass,s=this.slides[e],l=this.slides[t];if(s&&l){if(this.isSliding=!0,r&&this.pause(!1),this.$emit("sliding-start",t),this.$emit("input",this.index),this.noAnimation)Vi(l,"active"),Ui(s,"active"),this.isSliding=!1,this.$nextTick((function(){return n.$emit("sliding-end",t)}));else{Vi(l,o),Ri(l),Vi(s,a),Vi(l,a);var c=!1,u=function e(){if(!c){if(c=!0,n.transitionEndEvent){var r=n.transitionEndEvent.split(/\s+/);r.forEach((function(t){return Bo(l,t,e,ju)}))}n.clearAnimationTimeout(),Ui(l,a),Ui(l,o),Vi(l,"active"),Ui(s,"active"),Ui(s,a),Ui(s,o),Wi(s,"aria-current","false"),Wi(l,"aria-current","true"),Wi(s,"aria-hidden","true"),Wi(l,"aria-hidden","false"),n.isSliding=!1,n.direction=null,n.$nextTick((function(){return n.$emit("sliding-end",t)}))}};if(this.transitionEndEvent){var d=this.transitionEndEvent.split(/\s+/);d.forEach((function(t){return Po(l,t,u,ju)}))}this.$_animationTimeout=setTimeout(u,Wu)}r&&this.start(!1)}},updateSlides:function(){this.pause(!0),this.slides=ji(".carousel-item",this.$refs.inner);var t=this.slides.length,e=Uo(0,Vo(Go(this.index),t-1));this.slides.forEach((function(n,r){var i=r+1;r===e?(Vi(n,"active"),Wi(n,"aria-current","true")):(Ui(n,"active"),Wi(n,"aria-current","false")),Wi(n,"aria-posinset",String(i)),Wi(n,"aria-setsize",String(t))})),this.setSlide(e),this.start(this.isPaused)},calcDirection:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return t?qu[t]:n>e?qu.next:qu.prev},handleClick:function(t,e){var n=t.keyCode;"click"!==t.type&&n!==Ra&&n!==Ea||(Io(t),e())},handleSwipe:function(){var t=qo(this.touchDeltaX);if(!(t<=Yu)){var e=t/this.touchDeltaX;this.touchDeltaX=0,e>0?this.prev():e<0&&this.next()}},touchStart:function(t){u["f"]&&Ku[t.pointerType.toUpperCase()]?this.touchStartX=t.clientX:u["f"]||(this.touchStartX=t.touches[0].clientX)},touchMove:function(t){t.touches&&t.touches.length>1?this.touchDeltaX=0:this.touchDeltaX=t.touches[0].clientX-this.touchStartX},touchEnd:function(t){u["f"]&&Ku[t.pointerType.toUpperCase()]&&(this.touchDeltaX=t.clientX-this.touchStartX),this.handleSwipe(),this.pause(!1),this.clearTouchTimeout(),this.$_touchTimeout=setTimeout(this.start,Gu+Uo(1e3,this.interval))}},render:function(t){var e=this,n=t("div",{ref:"inner",class:["carousel-inner"],attrs:{id:this.safeId("__BV_inner_"),role:"list"}},[this.normalizeSlot()]),r=t();if(this.controls){var i=function(t){e.isSliding?Io(t,{propagation:!1}):e.handleClick(t,e.prev)},o=function(t){e.isSliding?Io(t,{propagation:!1}):e.handleClick(t,e.next)};r=[t("a",{class:["carousel-control-prev"],attrs:{href:"#",role:"button","aria-controls":this.safeId("__BV_inner_"),"aria-disabled":this.isSliding?"true":null},on:{click:i,keydown:i}},[t("span",{class:["carousel-control-prev-icon"],attrs:{"aria-hidden":"true"}}),t("span",{class:["sr-only"]},[this.labelPrev])]),t("a",{class:["carousel-control-next"],attrs:{href:"#",role:"button","aria-controls":this.safeId("__BV_inner_"),"aria-disabled":this.isSliding?"true":null},on:{click:o,keydown:o}},[t("span",{class:["carousel-control-next-icon"],attrs:{"aria-hidden":"true"}}),t("span",{class:["sr-only"]},[this.labelNext])])]}var a=t("ol",{class:["carousel-indicators"],directives:[{name:"show",rawName:"v-show",value:this.indicators,expression:"indicators"}],attrs:{id:this.safeId("__BV_indicators_"),"aria-hidden":this.indicators?"false":"true","aria-label":this.labelIndicators,"aria-owns":this.safeId("__BV_inner_")}},this.slides.map((function(n,r){return t("li",{key:"slide_".concat(r),class:{active:r===e.index},attrs:{role:"button",id:e.safeId("__BV_indicator_".concat(r+1,"_")),tabindex:e.indicators?"0":"-1","aria-current":r===e.index?"true":"false","aria-label":"".concat(e.labelGotoSlide," ").concat(r+1),"aria-describedby":e.slides[r].id||null,"aria-controls":e.safeId("__BV_inner_")},on:{click:function(t){e.handleClick(t,(function(){e.setSlide(r)}))},keydown:function(t){e.handleClick(t,(function(){e.setSlide(r)}))}}})}))),s={mouseenter:this.noHoverPause?Fu:this.pause,mouseleave:this.noHoverPause?Fu:this.restart,focusin:this.pause,focusout:this.restart,keydown:function(t){if(!/input|textarea/i.test(t.target.tagName)){var n=t.keyCode;n!==Ba&&n!==Da||(Io(t),e[n===Ba?"prev":"next"]())}}};return!this.noTouch&&u["h"]&&(u["f"]?(s["&pointerdown"]=this.touchStart,s["&pointerup"]=this.touchEnd):(s["&touchstart"]=this.touchStart,s["&touchmove"]=this.touchMove,s["&touchend"]=this.touchEnd)),t("div",{staticClass:"carousel",class:{slide:!this.noAnimation,"carousel-fade":!this.noAnimation&&this.fade,"pointer-event":!this.noTouch&&u["h"]&&u["f"]},style:{background:this.background},attrs:{role:"region",id:this.safeId(),"aria-busy":this.isSliding?"true":"false"},on:s},[n,r,a])}});function Qu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function td(t){for(var e=1;e1?n-1:0),i=1;i0?(Wi(t,xd,r.join(" ")),Xi(t,Cd,"none")):(Gi(t,xd),Zi(t,Cd)),Ci((function(){Rd(t,n)})),Na(r,t[_d])||(t[_d]=r,r.forEach((function(t){n.context.$root.$emit(Pd,t)})))}},Hd={bind:function(t,e,n){t[yd]=!1,t[_d]=[],Md(t,n),zd(t,e,n)},componentUpdated:zd,updated:zd,unbind:function(t,e,n){Dd(t),jd(t,n),Nd(t,gd),Nd(t,vd),Nd(t,yd),Nd(t,_d),Ui(t,pd),Ui(t,$d),Gi(t,kd),Gi(t,xd),Gi(t,Sd),Zi(t,Cd)}},Vd="bv::collapse::accordion",Ud=c.extend({name:Te,mixins:[bc,hd,Eo],model:{prop:"visible",event:"input"},props:{isNav:{type:Boolean,default:!1},accordion:{type:String},visible:{type:Boolean,default:!1},tag:{type:String,default:"div"},appear:{type:Boolean,default:!1}},data:function(){return{show:this.visible,transitioning:!1}},computed:{classObject:function(){return{"navbar-collapse":this.isNav,collapse:!this.transitioning,show:this.show&&!this.transitioning}}},watch:{visible:function(t){t!==this.show&&(this.show=t)},show:function(t,e){t!==e&&this.emitState()}},created:function(){this.show=this.visible},mounted:function(){var t=this;this.show=this.visible,this.listenOnRoot(Ad,this.handleToggleEvt),this.listenOnRoot(Vd,this.handleAccordionEvt),this.isNav&&(this.setWindowEvents(!0),this.handleResize()),this.$nextTick((function(){t.emitState()})),this.listenOnRoot(Pd,(function(e){e===t.safeId()&&t.$nextTick(t.emitSync)}))},updated:function(){this.emitSync()},deactivated:function(){this.isNav&&this.setWindowEvents(!1)},activated:function(){this.isNav&&this.setWindowEvents(!0),this.emitSync()},beforeDestroy:function(){this.show=!1,this.isNav&&u["j"]&&this.setWindowEvents(!1)},methods:{setWindowEvents:function(t){Lo(t,window,"resize",this.handleResize,ju),Lo(t,window,"orientationchange",this.handleResize,ju)},toggle:function(){this.show=!this.show},onEnter:function(){this.transitioning=!0,this.$emit("show")},onAfterEnter:function(){this.transitioning=!1,this.$emit("shown")},onLeave:function(){this.transitioning=!0,this.$emit("hide")},onAfterLeave:function(){this.transitioning=!1,this.$emit("hidden")},emitState:function(){this.$emit("input",this.show),this.emitOnRoot(Ed,this.safeId(),this.show),this.accordion&&this.show&&this.emitOnRoot(Vd,this.safeId(),this.accordion)},emitSync:function(){this.emitOnRoot(Td,this.safeId(),this.show)},checkDisplayBlock:function(){var t=qi(this.$el,"show");Ui(this.$el,"show");var e="block"===to(this.$el).display;return t&&Vi(this.$el,"show"),e},clickHandler:function(t){var e=t.target;this.isNav&&e&&"block"===to(this.$el).display&&(Fi(e,".nav-link,.dropdown-item")||Ni(".nav-link,.dropdown-item",e))&&(this.checkDisplayBlock()||(this.show=!1))},handleToggleEvt:function(t){t===this.safeId()&&this.toggle()},handleAccordionEvt:function(t,e){this.accordion&&e===this.accordion&&(t===this.safeId()?this.show||this.toggle():this.show&&this.toggle())},handleResize:function(){this.show="block"===to(this.$el).display}},render:function(t){var e=this,n={visible:this.show,close:function(){return e.show=!1}},r=t(this.tag,{class:this.classObject,directives:[{name:"show",value:this.show}],attrs:{id:this.safeId()},on:{click:this.clickHandler}},[this.normalizeSlot(go,n)]);return t(fd,{props:{appear:this.appear},on:{enter:this.onEnter,afterEnter:this.onAfterEnter,leave:this.onLeave,afterLeave:this.onAfterLeave}},[r])}}),qd=Nr({directives:{VBToggle:Hd}}),Wd=Nr({components:{BCollapse:Ud},plugins:{VBTogglePlugin:qd}}),Gd=n("f0bd"),Yd="top-start",Kd="top-end",Xd="bottom-start",Zd="bottom-end",Jd="right-start",Qd="left-start";function tf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ef(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};if(tf(this,t),!e)throw new TypeError("Failed to construct '".concat(this.constructor.name,"'. 1 argument required, ").concat(arguments.length," given."));X(this,t.Defaults,this.constructor.Defaults,n,{type:e}),J(this,{type:ct(),cancelable:ct(),nativeEvent:ct(),target:ct(),relatedTarget:ct(),vueTarget:ct(),componentId:ct()});var r=!1;this.preventDefault=function(){this.cancelable&&(r=!0)},Q(this,"defaultPrevented",{enumerable:!0,get:function(){return r}})}return nf(t,null,[{key:"Defaults",get:function(){return{type:"",cancelable:!0,nativeEvent:null,target:null,relatedTarget:null,vueTarget:null,componentId:null}}}]),t}(),of={data:function(){return{listenForClickOut:!1}},watch:{listenForClickOut:function(t,e){t!==e&&(Bo(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,ju),t&&Po(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,ju))}},beforeCreate:function(){this.clickOutElement=null,this.clickOutEventName=null},mounted:function(){this.clickOutElement||(this.clickOutElement=document),this.clickOutEventName||(this.clickOutEventName="click"),this.listenForClickOut&&Po(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,ju)},beforeDestroy:function(){Bo(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,ju)},methods:{isClickOut:function(t){return!zi(this.$el,t.target)},_clickOutHandler:function(t){this.clickOutHandler&&this.isClickOut(t)&&this.clickOutHandler(t)}}},af={data:function(){return{listenForFocusIn:!1}},watch:{listenForFocusIn:function(t,e){t!==e&&(Bo(this.focusInElement,"focusin",this._focusInHandler,ju),t&&Po(this.focusInElement,"focusin",this._focusInHandler,ju))}},beforeCreate:function(){this.focusInElement=null},mounted:function(){this.focusInElement||(this.focusInElement=document),this.listenForFocusIn&&Po(this.focusInElement,"focusin",this._focusInHandler,ju)},beforeDestroy:function(){Bo(this.focusInElement,"focusin",this._focusInHandler,ju)},methods:{_focusInHandler:function(t){this.focusInHandler&&this.focusInHandler(t)}}};function sf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function lf(t){for(var e=1;e0&&void 0!==arguments[0]&&arguments[0];this.disabled||(this.visible=!1,t&&this.$once("hidden",this.focusToggler))},toggle:function(t){t=t||{};var e=t,n=e.type,r=e.keyCode;("click"===n||"keydown"===n&&-1!==[Ea,Ra,Ca].indexOf(r))&&(this.disabled?this.visible=!1:(this.$emit("toggle",t),Io(t),this.visible?this.hide(!0):this.show()))},onMousedown:function(t){Io(t,{propagation:!1})},onKeydown:function(t){var e=t.keyCode;e===Ta?this.onEsc(t):e===Ca?this.focusNext(t,!1):e===ja&&this.focusNext(t,!0)},onEsc:function(t){this.visible&&(this.visible=!1,Io(t),this.$once("hidden",this.focusToggler))},onSplitClick:function(t){this.disabled?this.visible=!1:this.$emit("click",t)},hideHandler:function(t){var e=t.target;!this.visible||zi(this.$refs.menu,e)||zi(this.toggler,e)||this.hide()},clickOutHandler:function(t){this.hideHandler(t)},focusInHandler:function(t){this.hideHandler(t)},focusNext:function(t,e){var n=this,r=t.target;!this.visible||t&&Ni(hf,r)||(Io(t),this.$nextTick((function(){var t=n.getItems();if(!(t.length<1)){var i=t.indexOf(r);e&&i>0?i--:!e&&i1&&void 0!==arguments[1]?arguments[1]:null;if(z(t)){var n=Qt(t,this.valueField),r=Qt(t,this.textField);return{value:P(n)?e||r:n,text:_l(String(P(r)?e:r)),html:Qt(t,this.htmlField),disabled:Boolean(Qt(t,this.disabledField))}}return{value:e||t,text:_l(String(t)),disabled:!1}},normalizeOptions:function(t){var e=this;return F(t)?t.map((function(t){return e.normalizeOption(t)})):z(t)?(te(sh,this.$options.name),nt(t).map((function(n){return e.normalizeOption(t[n]||{},n)}))):[]}}},ch=c.extend({name:We,mixins:[lh,Eo],props:{id:{type:String,required:!0}},render:function(t){var e=this.formOptions.map((function(e,n){var r=e.value,i=e.text,o=e.html,a=e.disabled;return t("option",{attrs:{value:r,disabled:a},domProps:bl(o,i),key:"option_".concat(n)})}));return t("datalist",{attrs:{id:this.id}},[e,this.normalizeSlot()])}});function uh(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var dh={id:{type:String},tag:{type:String,default:"small"},textVariant:{type:String,default:function(){return Zr(un,"textVariant")}},inline:{type:Boolean,default:!1}},fh=c.extend({name:un,functional:!0,props:dh,render:function(t,e){var n=e.props,r=e.data,i=e.children;return t(n.tag,l(r,{class:uh({"form-text":!n.inline},"text-".concat(n.textVariant),n.textVariant),attrs:{id:n.id}}),i)}}),hh={id:{type:String},tag:{type:String,default:"div"},tooltip:{type:Boolean,default:!1},forceShow:{type:Boolean,default:!1},state:{type:Boolean,default:null},ariaLive:{type:String},role:{type:String}},ph=c.extend({name:Ze,functional:!0,props:hh,render:function(t,e){var n=e.props,r=e.data,i=e.children,o=!0===n.forceShow||!1===n.state;return t(n.tag,l(r,{class:{"invalid-feedback":!n.tooltip,"invalid-tooltip":n.tooltip,"d-block":o},attrs:{id:n.id||null,role:n.role||null,"aria-live":n.ariaLive||null,"aria-atomic":n.ariaLive?"true":null}}),i)}}),$h={id:{type:String},tag:{type:String,default:"div"},tooltip:{type:Boolean,default:!1},forceShow:{type:Boolean,default:!1},state:{type:Boolean,default:null},ariaLive:{type:String},role:{type:String}},mh=c.extend({name:hn,functional:!0,props:$h,render:function(t,e){var n=e.props,r=e.data,i=e.children,o=!0===n.forceShow||!0===n.state;return t(n.tag,l(r,{class:{"valid-feedback":!n.tooltip,"valid-tooltip":n.tooltip,"d-block":o},attrs:{id:n.id||null,role:n.role||null,"aria-live":n.ariaLive||null,"aria-atomic":n.ariaLive?"true":null}}),i)}}),gh={tag:{type:String,default:"div"}},vh=c.extend({name:nn,functional:!0,props:gh,render:function(t,e){var n=e.props,r=e.data,i=e.children;return t(n.tag,l(r,{staticClass:"form-row"}),i)}}),yh=Nr({components:{BForm:Uf,BFormDatalist:ch,BDatalist:ch,BFormText:fh,BFormInvalidFeedback:ph,BFormFeedback:ph,BFormValidFeedback:mh,BFormRow:vh}}),_h=function(t,e){for(var n=0;n-1:Na(e,t)},isRadio:function(){return!1},isCheck:function(){return!0}},watch:{computedLocalChecked:function(t,e){if(!Na(t,e)){this.$emit("input",t);var n=this.$refs.input;n&&this.$emit("update:indeterminate",n.indeterminate)}},indeterminate:function(t){this.setIndeterminate(t)}},mounted:function(){this.setIndeterminate(this.indeterminate)},methods:{handleChange:function(t){var e=t.target,n=e.checked,r=e.indeterminate,i=this.value,o=this.uncheckedValue,a=this.computedLocalChecked;if(F(a)){var s=bh(a,i);n&&s<0?a=a.concat(i):!n&&s>-1&&(a=a.slice(0,s).concat(a.slice(s+1)))}else a=n?i:o;this.computedLocalChecked=a,this.$emit("change",a),this.isGroup&&this.bvGroup.$emit("change",a),this.$emit("update:indeterminate",r)},setIndeterminate:function(t){F(this.computedLocalChecked)&&(t=!1);var e=this.$refs.input;e&&(e.indeterminate=t,this.$emit("update:indeterminate",t))}}}),Ph=c.extend({name:Je,mixins:[bc,Ch,xh,Ah,Eh],inject:{bvGroup:{from:"bvRadioGroup",default:!1}},props:{checked:{default:null}},computed:{isChecked:function(){return Na(this.value,this.computedLocalChecked)},isRadio:function(){return!0},isCheck:function(){return!1}},watch:{computedLocalChecked:function(){this.$emit("input",this.computedLocalChecked)}},methods:{handleChange:function(t){var e=t.target.checked,n=this.value;this.computedLocalChecked=n,this.$emit("change",e?n:null),this.isGroup&&this.bvGroup.$emit("change",e?n:null)}}}),Bh={mixins:[Eo],model:{prop:"checked",event:"input"},props:{validated:{type:Boolean,default:!1},ariaInvalid:{type:[Boolean,String],default:!1},stacked:{type:Boolean,default:!1},plain:{type:Boolean,default:!1},buttons:{type:Boolean,default:!1},buttonVariant:{type:String,default:"secondary"}},computed:{inline:function(){return!this.stacked},groupName:function(){return this.name||this.safeId()},groupClasses:function(){return this.buttons?["btn-group-toggle",this.inline?"btn-group":"btn-group-vertical",this.size?"btn-group-".concat(this.size):"",this.validated?"was-validated":""]:[this.validated?"was-validated":""]},computedAriaInvalid:function(){var t=this.ariaInvalid;return!0===t||"true"===t||""===t||!1===this.computedState?"true":null}},watch:{checked:function(t){Na(t,this.localChecked)||(this.localChecked=t)},localChecked:function(t,e){Na(t,e)||this.$emit("input",t)}},render:function(t){var e=this,n=this.formOptions.map((function(n,r){var i="BV_option_".concat(r);return t(e.isRadioGroup?Ph:Th,{props:{id:e.safeId(i),value:n.value,disabled:n.disabled||!1},key:i},[t("span",{domProps:bl(n.html,n.text)})])}));return t("div",{class:[this.groupClasses,"bv-no-focus-ring"],attrs:{id:this.safeId(),role:this.isRadioGroup?"radiogroup":"group",tabindex:"-1","aria-required":this.required?"true":null,"aria-invalid":this.computedAriaInvalid}},[this.normalizeSlot(yo),n,this.normalizeSlot()])}},Lh={switches:{type:Boolean,default:!1},checked:{type:Array,default:null}},Ih=c.extend({name:qe,mixins:[bc,xh,Bh,lh,Ah,Eh],provide:function(){return{bvCheckGroup:this}},props:Lh,data:function(){return{localChecked:this.checked||[]}},computed:{isRadioGroup:function(){return!1}}}),Dh=Nr({components:{BFormCheckbox:Th,BCheckbox:Th,BCheck:Th,BFormCheckboxGroup:Ih,BCheckboxGroup:Ih,BCheckGroup:Ih}}),Rh="__BV_hover_handler__",jh="mouseenter",Mh="mouseleave",Fh=function(t){var e=function(e){t(e.type===jh,e)};return e.fn=t,e},Nh=function(t,e,n){Lo(t,e,jh,n,ju),Lo(t,e,Mh,n,ju)},zh=function(t,e){var n=e.value,r=void 0===n?null:n;if(u["j"]){var i=t[Rh],o=I(i),a=!(o&&i.fn===r);o&&a&&(Nh(!1,t,i),delete t[Rh]),I(r)&&a&&(t[Rh]=Fh(r),Nh(!0,t,t[Rh]))}},Hh={bind:zh,componentUpdated:zh,unbind:function(t){zh(t,{value:null})}};function Vh(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Uh=mf,qh=c.extend({name:Ve,directives:{BHover:Hh},mixins:[bc,Eo,gf],props:{value:{type:String,default:""},formattedValue:{type:String},placeholder:{type:String},labelSelected:{type:String},state:{type:Boolean,default:null},size:{type:String},name:{type:String},form:{type:String},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},lang:{type:String},rtl:{type:Boolean,default:null},buttonOnly:{type:Boolean,default:!1},buttonVariant:{type:String,default:"secondary"},menuClass:{type:[String,Array,Object]}},data:function(){return{isHovered:!1,hasFocus:!1}},computed:{idButton:function(){return this.safeId()},idLabel:function(){return this.safeId("_value_")},idMenu:function(){return this.safeId("_dialog_")},idWrapper:function(){return this.safeId("_outer_")},computedDir:function(){return!0===this.rtl?"rtl":!1===this.rtl?"ltr":null}},methods:{focus:function(){this.disabled||oo(this.$refs.toggle)},blur:function(){this.disabled||ao(this.$refs.toggle)},setFocus:function(t){this.hasFocus="focus"===t.type},handleHover:function(t){this.isHovered=t}},render:function(t){var e,n,r,i=this.idButton,o=this.idLabel,a=this.idMenu,s=this.idWrapper,l=this.disabled,c=this.readonly,u=this.required,d=this.isHovered,f=this.hasFocus,h=this.state,p=this.visible,$=this.size,m=gi(this.value)||"",g=this.labelSelected,v=!!this.buttonOnly,y=this.buttonVariant,_={isHovered:d,hasFocus:f,state:h,opened:p},b=t("button",{ref:"toggle",staticClass:"btn",class:(e={},Vh(e,"btn-".concat(y),v),Vh(e,"btn-".concat($),!!$),Vh(e,"h-auto",!v),Vh(e,"dropdown-toggle",v),Vh(e,"dropdown-toggle-no-caret",v),e),attrs:{id:i,type:"button",disabled:l,"aria-haspopup":"dialog","aria-expanded":p?"true":"false","aria-invalid":!1===h||u&&!m?"true":null,"aria-required":u?"true":null},directives:[{name:"b-hover",value:this.handleHover}],on:{mousedown:this.onMousedown,click:this.toggle,keydown:this.toggle,"!focus":this.setFocus,"!blur":this.setFocus}},[this.hasNormalizedSlot(mo)?this.normalizeSlot(mo,_):t(js,{props:{scale:1.25}})]),w=t();this.name&&!l&&(w=t("input",{attrs:{type:"hidden",name:this.name||null,form:this.form||null,value:m}}));var x=t("div",{ref:"menu",staticClass:"dropdown-menu",class:[this.menuClass,{show:p,"dropdown-menu-right":this.right}],attrs:{id:a,role:"dialog",tabindex:"-1","aria-modal":"false","aria-labelledby":o},on:{keydown:this.onKeydown}},[this.normalizeSlot(go,{opened:p})]),k=t("label",{staticClass:"form-control text-break text-wrap bg-transparent h-auto",class:(n={"sr-only":v,"text-muted":!m},Vh(n,"form-control-".concat($),!!$),Vh(n,"is-invalid",!1===h),Vh(n,"is-valid",!0===h),n),attrs:{id:o,for:i,"aria-invalid":!1===h||u&&!m?"true":null,"aria-required":u?"true":null},directives:[{name:"b-hover",value:this.handleHover}],on:{"!click":function(t){Io(t,{preventDefault:!1})}}},[m?this.formattedValue||m:this.placeholder||"",m&&g?t("bdi",{staticClass:"sr-only"},g):""]);return t("div",{staticClass:"b-form-btn-label-control dropdown",class:[this.directionClass,this.boundaryClass,(r={"btn-group":v,"form-control":!v},Vh(r,"form-control-".concat($),!!$&&!v),Vh(r,"d-flex",!v),Vh(r,"h-auto",!v),Vh(r,"align-items-stretch",!v),Vh(r,"focus",f&&!v),Vh(r,"show",p),Vh(r,"is-valid",!0===h),Vh(r,"is-invalid",!1===h),r)],attrs:{id:s,role:v?null:"group",lang:this.lang||null,dir:this.computedDir,"aria-disabled":l,"aria-readonly":c&&!l,"aria-labelledby":o,"aria-invalid":!1===h||u&&!m?"true":null,"aria-required":u?"true":null}},[b,w,x,k])}});function Wh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Gh(t){for(var e=1;e0&&(a=[t("div",{staticClass:"b-form-date-controls d-flex flex-wrap",class:{"justify-content-between":a.length>1,"justify-content-end":a.length<2}},a)]);var u=t(Sc,{key:"calendar",ref:"calendar",staticClass:"b-form-date-calendar w-100",props:this.calendarProps,on:{selected:this.onSelected,input:this.onInput,context:this.onContext},scopedSlots:at(e,["nav-prev-decade","nav-prev-year","nav-prev-month","nav-this-month","nav-next-month","nav-next-year","nav-next-decade"])},a);return t(qh,{ref:"control",staticClass:"b-form-datepicker",props:Gh(Gh({},this.$props),{},{id:this.safeId(),rtl:this.isRTL,lang:this.computedLang,value:n||"",formattedValue:n?this.formattedValue:"",placeholder:o||"",menuClass:[{"bg-dark":!!this.dark,"text-light":!!this.dark},this.menuClass]}),on:{show:this.onShow,shown:this.onShown,hidden:this.onHidden},scopedSlots:{"button-content":e["button-content"]||this.defaultButtonFn}},[u])}}),Jh=Nr({components:{BFormDatepicker:Zh,BDatepicker:Zh}}),Qh={props:{plain:{type:Boolean,default:!1}},computed:{custom:function(){return!this.plain}}};function tp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ep(t){for(var e=1;e1&&void 0!==arguments[1])||arguments[1];return Promise.all(ni(t).filter((function(t){return"file"===t.kind})).map((function(t){var n=op(t);if(n){if(n.isDirectory&&e)return sp(n.createReader(),"".concat(n.name,"/"));if(n.isFile)return new Promise((function(t){n.file((function(e){e.$path="",t(e)}))}))}return null})).filter(Xt))},sp=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return new Promise((function(r){var i=[],o=function o(){e.readEntries((function(e){0===e.length?r(Promise.all(i).then((function(t){return ai(t)}))):(i.push(Promise.all(e.map((function(e){if(e){if(e.isDirectory)return t(e.createReader(),"".concat(n).concat(e.name,"/"));if(e.isFile)return new Promise((function(t){e.file((function(e){e.$path="".concat(n).concat(e.name),t(e)}))}))}return null})).filter(Xt))),o())}))};o()}))},lp=c.extend({name:Ye,mixins:[qa,bc,xh,Eh,Qh,Eo],inheritAttrs:!1,model:{prop:"value",event:"input"},props:{size:{type:String,default:function(){return Zr("BFormControl","size")}},value:{type:[C,Array],default:null,validator:function(t){return""===t?(te(rp,Ye),!0):L(t)||ip(t)}},accept:{type:String,default:""},capture:{type:Boolean,default:!1},placeholder:{type:String,default:function(){return Zr(Ye,"placeholder")}},browseText:{type:String,default:function(){return Zr(Ye,"browseText")}},dropPlaceholder:{type:String,default:function(){return Zr(Ye,"dropPlaceholder")}},noDropPlaceholder:{type:String,default:function(){return Zr(Ye,"noDropPlaceholder")}},multiple:{type:Boolean,default:!1},directory:{type:Boolean,default:!1},noTraverse:{type:Boolean,default:!1},noDrop:{type:Boolean,default:!1},fileNameFormatter:{type:Function,default:null}},data:function(){return{files:[],dragging:!1,dropAllowed:!this.noDrop,hasFocus:!1}},computed:{computedAccept:function(){var t=this.accept;return t=(t||"").trim().split(/[,\s]+/).filter(Boolean),0===t.length?null:t.map((function(t){var e="name",n="^",r="$";Et.test(t)?n="":(e="type",Ft.test(t)&&(r=".+$",t=t.slice(0,-1))),t=mi(t);var i=new RegExp("".concat(n).concat(t).concat(r));return{rx:i,prop:e}}))},computedCapture:function(){var t=this.capture;return!0===t||""===t||(t||null)},computedAttrs:function(){var t=this.name,e=this.disabled,n=this.required,r=this.form,i=this.computedCapture,o=this.accept,a=this.multiple,s=this.directory;return ep(ep({},this.bvAttrs),{},{type:"file",id:this.safeId(),name:t,disabled:e,required:n,form:r||null,capture:i,accept:o||null,multiple:a,directory:s,webkitdirectory:s,"aria-required":n?"true":null})},clonedFiles:function(){return wt(this.files)},flattenedFiles:function(){return si(this.files)},fileNames:function(){return this.flattenedFiles.map((function(t){return t.name}))},labelContent:function(){var t=this.$createElement;return this.dragging&&!this.noDrop?this.normalizeSlot("drop-placeholder",{allowed:this.dropAllowed})||(this.dropAllowed?this.dropPlaceholder:t("span",{staticClass:"text-danger"},this.noDropPlaceholder)):0===this.files.length?this.normalizeSlot("placeholder")||this.placeholder:this.hasNormalizedSlot("file-name")?this.normalizeSlot("file-name",{files:this.flattenedFiles,filesTraversed:this.clonedFiles,names:this.fileNames}):I(this.fileNameFormatter)?String(this.fileNameFormatter(this.flattenedFiles,this.clonedFiles)):this.fileNames.join(", ")}},watch:{value:function(t){(!t||F(t)&&0===t.length)&&this.reset()},files:function(t,e){if(!Na(t,e)){var n=this.multiple,r=this.noTraverse,i=!n||r?si(t):t;this.$emit("input",n?i:i[0]||null)}}},mounted:function(){var t=this,e=Ni("form",this.$el);e&&(Po(e,"reset",this.reset,Ru),this.$on("hook:beforeDestroy",(function(){Bo(e,"reset",t.reset,Ru)})))},methods:{isFileValid:function(t){if(!t)return!1;var e=this.computedAccept;return!e||e.some((function(e){return e.rx.test(t[e.prop])}))},isFilesArrayValid:function(t){var e=this;return F(t)?t.every((function(t){return e.isFileValid(t)})):this.isFileValid(t)},setFiles:function(t){this.dropAllowed=!this.noDrop,this.dragging=!1,this.files=this.multiple?this.directory?t:si(t):si(t).slice(0,1)},setInputFiles:function(t){try{var e=new ClipboardEvent("").clipboardData||new DataTransfer;si(wt(t)).forEach((function(t){delete t.$path,e.items.add(t)})),this.$refs.input.files=e.files}catch(n){}},reset:function(){try{var t=this.$refs.input;t.value="",t.type="",t.type="file"}catch(e){}this.files=[]},handleFiles:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e){var n=t.filter(this.isFilesArrayValid);n.length>0&&(this.setFiles(n),this.setInputFiles(n))}else this.setFiles(t)},focusHandler:function(t){this.plain||"focusout"===t.type?this.hasFocus=!1:this.hasFocus=!0},onChange:function(t){var e=this,n=t.type,r=t.target,i=t.dataTransfer,o=void 0===i?{}:i,a="drop"===n;this.$emit("change",t);var s=ni(o.items||[]);if(u["g"]&&s.length>0&&!B(op(s[0])))ap(s,this.directory).then((function(t){return e.handleFiles(t,a)}));else{var l=ni(r.files||o.files||[]).map((function(t){return t.$path=t.webkitRelativePath||"",t}));this.handleFiles(l,a)}},onDragenter:function(t){Io(t),this.dragging=!0;var e=t.dataTransfer,n=void 0===e?{}:e;if(this.noDrop||this.disabled||!this.dropAllowed)return n.dropEffect="none",void(this.dropAllowed=!1);n.dropEffect="copy"},onDragover:function(t){Io(t),this.dragging=!0;var e=t.dataTransfer,n=void 0===e?{}:e;if(this.noDrop||this.disabled||!this.dropAllowed)return n.dropEffect="none",void(this.dropAllowed=!1);n.dropEffect="copy"},onDragleave:function(t){var e=this;Io(t),this.$nextTick((function(){e.dragging=!1,e.dropAllowed=!e.noDrop}))},onDrop:function(t){var e=this;Io(t),this.dragging=!1,this.noDrop||this.disabled||!this.dropAllowed?this.$nextTick((function(){e.dropAllowed=!e.noDrop})):this.onChange(t)}},render:function(t){var e=this.custom,n=this.plain,r=this.size,i=this.dragging,o=this.stateClass,a=t("input",{ref:"input",class:[{"form-control-file":n,"custom-file-input":e,focus:e&&this.hasFocus},o],style:e?{zIndex:-5}:{},attrs:this.computedAttrs,on:{change:this.onChange,focusin:this.focusHandler,focusout:this.focusHandler,reset:this.reset}});if(n)return a;var s=t("label",{staticClass:"custom-file-label",class:{dragging:i},attrs:{for:this.safeId(),"data-browse":this.browseText||null}},[t("span",{staticClass:"d-block form-file-text",style:{pointerEvents:"none"}},[this.labelContent])]);return t("div",{staticClass:"custom-file b-form-file",class:[np({},"b-custom-control-".concat(r),r),o],attrs:{id:this.safeId("_BV_file_outer_")},on:{dragenter:this.onDragenter,dragover:this.onDragover,dragleave:this.onDragleave,drop:this.onDrop}},[a,s])}}),cp=Nr({components:{BFormFile:lp,BFile:lp}}),up=function(t){return"\\"+t},dp=function(t){t=gi(t);var e=t.length,n=t.charCodeAt(0);return t.split("").reduce((function(r,i,o){var a=t.charCodeAt(o);return 0===a?r+"�":127===a||a>=1&&a<=31||0===o&&a>=48&&a<=57||1===o&&a>=48&&a<=57&&45===n?r+up("".concat(a.toString(16)," ")):0===o&&45===a&&1===e?r+up(i):a>=128||45===a||95===a||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?r+i:r+up(i)}),"")},fp=dp;function hp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function pp(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;return"".concat(e).concat($i(t))})),Bp=function(){var t=ei(),e=t.reduce((function(t,e){return t[Pp(e,"labelCols")]={type:[Number,String,Boolean],default:!e&&null},t}),Z(null)),n=t.reduce((function(t,e){return t[Pp(e,"labelAlign")]={type:String},t}),Z(null));return kp(kp(kp({label:{type:String},labelFor:{type:String},labelSize:{type:String},labelSrOnly:{type:Boolean,default:!1}},e),n),{},{labelClass:{type:[String,Array,Object]},description:{type:String},invalidFeedback:{type:String},validFeedback:{type:String},tooltip:{type:Boolean,default:!1},feedbackAriaLive:{type:String,default:"assertive"},validated:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}})},Lp={name:Ke,mixins:[bc,Eh,Eo],get props(){return delete this.props,this.props=Bp()},computed:{labelColProps:function(){var t=this,e={};return ei().forEach((function(n){var r=t[Pp(n,"labelCols")];if(r=""===r||(r||!1),D(r)||"auto"===r||(r=li(r,0),r=r>0&&r),r){var i=n||(D(r)?"col":"cols");e[i]=r}})),e},labelAlignClasses:function(){var t=this,e=[];return ei().forEach((function(n){var r=t[Pp(n,"labelAlign")]||null;if(r){var i=n?"text-".concat(n,"-").concat(r):"text-".concat(r);e.push(i)}})),e},isHorizontal:function(){return nt(this.labelColProps).length>0},labelId:function(){return this.hasNormalizedSlot(wo)||this.label?this.safeId("_BV_label_"):null},descriptionId:function(){return this.hasNormalizedSlot(vo)||this.description?this.safeId("_BV_description_"):null},hasInvalidFeedback:function(){return!1===this.computedState&&(this.hasNormalizedSlot("invalid-feedback")||this.invalidFeedback)},invalidFeedbackId:function(){return this.hasInvalidFeedback?this.safeId("_BV_feedback_invalid_"):null},hasValidFeedback:function(){return!0===this.computedState&&(this.hasNormalizedSlot("valid-feedback")||this.validFeedback)},validFeedbackId:function(){return this.hasValidFeedback?this.safeId("_BV_feedback_valid_"):null},describedByIds:function(){return[this.descriptionId,this.invalidFeedbackId,this.validFeedbackId].filter(Boolean).join(" ")||null}},watch:{describedByIds:function(t,e){t!==e&&this.setInputDescribedBy(t,e)}},mounted:function(){var t=this;this.$nextTick((function(){t.setInputDescribedBy(t.describedByIds)}))},methods:{legendClick:function(t){if(!this.labelFor){var e=t.target?t.target.tagName:"";if(!/^(input|select|textarea|label|button|a)$/i.test(e)){var n=ji(Op,this.$refs.content).filter(Ii);n&&1===n.length&&oo(n[0])}}},setInputDescribedBy:function(t,e){if(this.labelFor&&u["j"]){var n=Mi("#".concat(fp(this.labelFor)),this.$refs.content);if(n){var r="aria-describedby",i=(Yi(n,r)||"").split(/\s+/);t=(t||"").split(/\s+/),e=(e||"").split(/\s+/),i=i.filter((function(t){return!ri(e,t)})).concat(t).filter(Boolean),i=nt(i.reduce((function(t,e){return kp(kp({},t),{},Sp({},e,!0))}),{})).join(" ").trim(),i?Wi(n,r,i):Gi(n,r)}}}},render:function(t){var e=!this.labelFor,n=this.isHorizontal,r=Tp(t,this),i=t(n?wp:"div",{ref:"content",staticClass:"bv-no-focus-ring",attrs:{tabindex:e?"-1":null,role:e?"group":null}},[this.normalizeSlot()||t(),Cp(t,this),Ap(t,this),Ep(t,this)]),o={staticClass:"form-group",class:[this.validated?"was-validated":null,this.stateClass],attrs:{id:this.safeId(),disabled:e?this.disabled:null,role:e?null:"group","aria-invalid":!1===this.computedState?"true":null,"aria-labelledby":e&&n?this.labelId:null,"aria-describedby":e?this.describedByIds:null}};return t(e?"fieldset":n?vh:"div",o,n&&e?[t(vh,[r,i])]:[r,i])}},Ip=Nr({components:{BFormGroup:Lp,BFormFieldset:Lp}}),Dp={computed:{selectionStart:{cache:!1,get:function(){return this.$refs.input.selectionStart},set:function(t){this.$refs.input.selectionStart=t}},selectionEnd:{cache:!1,get:function(){return this.$refs.input.selectionEnd},set:function(t){this.$refs.input.selectionEnd=t}},selectionDirection:{cache:!1,get:function(){return this.$refs.input.selectionDirection},set:function(t){this.$refs.input.selectionDirection=t}}},methods:{select:function(){var t;(t=this.$refs.input).select.apply(t,arguments)},setSelectionRange:function(){var t;(t=this.$refs.input).setSelectionRange.apply(t,arguments)},setRangeText:function(){var t;(t=this.$refs.input).setRangeText.apply(t,arguments)}}},Rp={model:{prop:"value",event:"update"},props:{value:{type:[String,Number],default:""},ariaInvalid:{type:[Boolean,String],default:!1},readonly:{type:Boolean,default:!1},plaintext:{type:Boolean,default:!1},autocomplete:{type:String},placeholder:{type:String},formatter:{type:Function},lazyFormatter:{type:Boolean,default:!1},trim:{type:Boolean,default:!1},number:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1},debounce:{type:[Number,String],default:0}},data:function(){return{localValue:gi(this.value),vModelValue:this.value}},computed:{computedClass:function(){return[{"custom-range":"range"===this.type,"form-control-plaintext":this.plaintext&&"range"!==this.type&&"color"!==this.type,"form-control":!this.plaintext&&"range"!==this.type||"color"===this.type},this.sizeFormClass,this.stateClass]},computedAriaInvalid:function(){return this.ariaInvalid&&"false"!==this.ariaInvalid?!0===this.ariaInvalid?"true":this.ariaInvalid:!1===this.computedState?"true":null},computedDebounce:function(){return Uo(li(this.debounce,0),0)},hasFormatter:function(){return I(this.formatter)}},watch:{value:function(t){var e=gi(t);e!==this.localValue&&t!==this.vModelValue&&(this.clearDebounce(),this.localValue=e,this.vModelValue=t)}},created:function(){this.$_inputDebounceTimer=null},mounted:function(){this.$on("hook:beforeDestroy",this.clearDebounce);var t=this.value,e=gi(t);e!==this.localValue&&t!==this.vModelValue&&(this.localValue=e,this.vModelValue=t)},methods:{clearDebounce:function(){clearTimeout(this.$_inputDebounceTimer),this.$_inputDebounceTimer=null},formatValue:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t=gi(t),!this.hasFormatter||this.lazyFormatter&&!n||(t=this.formatter(t,e)),t},modifyValue:function(t){return this.trim&&(t=t.trim()),this.number&&(t=ci(t,t)),t},updateValue:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.lazy;if(!r||n){this.clearDebounce();var i=function(){if(t=e.modifyValue(t),t!==e.vModelValue)e.vModelValue=t,e.$emit("update",t);else if(e.hasFormatter){var n=e.$refs.input;n&&t!==n.value&&(n.value=t)}},o=this.computedDebounce;o>0&&!r&&!n?this.$_inputDebounceTimer=setTimeout(i,o):i()}},onInput:function(t){if(!t.target.composing){var e=t.target.value,n=this.formatValue(e,t);!1===n||t.defaultPrevented?Io(t,{propagation:!1}):(this.localValue=n,this.updateValue(n),this.$emit("input",n))}},onChange:function(t){var e=t.target.value,n=this.formatValue(e,t);!1===n||t.defaultPrevented?Io(t,{propagation:!1}):(this.localValue=n,this.updateValue(n,!0),this.$emit("change",n))},onBlur:function(t){var e=t.target.value,n=this.formatValue(e,t,!0);!1!==n&&(this.localValue=gi(this.modifyValue(n)),this.updateValue(n,!0)),this.$emit("blur",t)},focus:function(){this.disabled||oo(this.$el)},blur:function(){this.disabled||ao(this.$el)}}},jp={computed:{validity:{cache:!1,get:function(){return this.$refs.input.validity}},validationMessage:{cache:!1,get:function(){return this.$refs.input.validationMessage}},willValidate:{cache:!1,get:function(){return this.$refs.input.willValidate}}},methods:{setCustomValidity:function(){var t;return(t=this.$refs.input).setCustomValidity.apply(t,arguments)},checkValidity:function(){var t;return(t=this.$refs.input).checkValidity.apply(t,arguments)},reportValidity:function(){var t;return(t=this.$refs.input).reportValidity.apply(t,arguments)}}};function Mp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Fp(t){for(var e=1;e=n?"full":e>=n-.5?"half":"empty",u={variant:o,disabled:a,readonly:s};return t("span",{staticClass:"b-rating-star",class:{focused:r&&e===n||!li(e)&&n===l,"b-rating-star-empty":"empty"===c,"b-rating-star-half":"half"===c,"b-rating-star-full":"full"===c},attrs:{tabindex:a||s?null:"-1"},on:{click:this.onClick}},[t("span",{staticClass:"b-rating-icon"},[this.normalizeSlot(c,u)])])}}),Zp=function(t){return Uo(Yp,li(t,Kp))},Jp=function(t,e,n){return Uo(Vo(t,n),e)},Qp=c.extend({name:tn,components:{BIconStar:Ws,BIconStarHalf:Ys,BIconStarFill:Gs,BIconX:Ks},mixins:[bc],model:{prop:"value",event:"change"},props:{value:{type:[Number,String],default:null},stars:{type:[Number,String],default:Kp,validator:function(t){return li(t)>=Yp}},variant:{type:String,default:function(){return Zr(tn,"variant")}},color:{type:String,default:function(){return Zr(tn,"color")}},showValue:{type:Boolean,default:!1},showValueMax:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},size:{type:String},name:{type:String},form:{type:String},noBorder:{type:Boolean,default:!1},inline:{type:Boolean,default:!1},precision:{type:[Number,String],default:null},iconEmpty:{type:String,default:"star"},iconHalf:{type:String,default:"star-half"},iconFull:{type:String,default:"star-fill"},iconClear:{type:String,default:"x"},locale:{type:[String,Array]},showClear:{type:Boolean,default:!1}},data:function(){var t=ci(this.value,null),e=Zp(this.stars);return{localValue:B(t)?null:Jp(t,0,e),hasFocus:!1}},computed:{computedStars:function(){return Zp(this.stars)},computedRating:function(){var t=ci(this.localValue,0),e=li(this.precision,3);return Jp(ci(t.toFixed(e)),0,this.computedStars)},computedLocale:function(){var t=ii(this.locale).filter(Xt),e=new Intl.NumberFormat(t);return e.resolvedOptions().locale},isInteractive:function(){return!this.disabled&&!this.readonly},isRTL:function(){return _c(this.computedLocale)},formattedRating:function(){var t=li(this.precision),e=this.showValueMax,n=this.computedLocale,r={notation:"standard",minimumFractionDigits:isNaN(t)?0:t,maximumFractionDigits:isNaN(t)?3:t},i=this.computedStars.toLocaleString(n),o=this.localValue;return o=B(o)?e?"-":"":o.toLocaleString(n,r),e?"".concat(o,"/").concat(i):o}},watch:{value:function(t,e){if(t!==e){var n=ci(t,null);this.localValue=B(n)?null:Jp(n,0,this.computedStars)}},localValue:function(t,e){t!==e&&t!==(this.value||0)&&this.$emit("change",t||null)},disabled:function(t){t&&(this.hasFocus=!1,this.blur())}},methods:{focus:function(){this.disabled||oo(this.$el)},blur:function(){this.disabled||ao(this.$el)},onKeydown:function(t){var e=t.keyCode;if(this.isInteractive&&ri([Ba,Ca,Da,ja],e)){Io(t,{propagation:!1});var n=li(this.localValue,0),r=this.showClear?0:1,i=this.computedStars,o=this.isRTL?-1:1;e===Ba?this.localValue=Jp(n-o,r,i)||null:e===Da?this.localValue=Jp(n+o,r,i):e===Ca?this.localValue=Jp(n-1,r,i)||null:e===ja&&(this.localValue=Jp(n+1,r,i))}},onSelected:function(t){this.isInteractive&&(this.localValue=t)},onFocus:function(t){this.hasFocus=!!this.isInteractive&&"focus"===t.type},renderIcon:function(t){return this.$createElement(Qs,{props:{icon:t,variant:this.disabled||this.color?null:this.variant||null}})},iconEmptyFn:function(){return this.renderIcon(this.iconEmpty)},iconHalfFn:function(){return this.renderIcon(this.iconHalf)},iconFullFn:function(){return this.renderIcon(this.iconFull)},iconClearFn:function(){return this.$createElement(Qs,{props:{icon:this.iconClear}})}},render:function(t){var e,n=this,r=this.disabled,i=this.readonly,o=this.size,a=this.name,s=this.form,l=this.inline,c=this.variant,u=this.color,d=this.noBorder,f=this.hasFocus,h=this.computedRating,p=this.computedStars,$=this.formattedRating,m=this.showClear,g=this.isRTL,v=this.isInteractive,y=this.$scopedSlots,_=[];if(m&&!r&&!i){var b=t("span",{staticClass:"b-rating-icon"},[(y["icon-clear"]||this.iconClearFn)()]);_.push(t("span",{staticClass:"b-rating-star b-rating-star-clear flex-grow-1",class:{focused:f&&0===h},attrs:{tabindex:v?"-1":null},on:{click:function(){return n.onSelected(null)}},key:"clear"},[b]))}for(var w=0;w1&&void 0!==arguments[1]?arguments[1]:null;if(z(t)){var n=Qt(t,this.valueField),r=Qt(t,this.textField),i=Qt(t,this.optionsField,null);return B(i)?{value:P(n)?e||r:n,text:String(P(r)?e:r),html:Qt(t,this.htmlField),disabled:Boolean(Qt(t,this.disabledField))}:{label:String(Qt(t,this.labelField)||r),options:this.normalizeOptions(i)}}return{value:e||t,text:String(t),disabled:!1}}}},n$={value:{required:!0},disabled:{type:Boolean,default:!1}},r$=c.extend({name:on,functional:!0,props:n$,render:function(t,e){var n=e.props,r=e.data,i=e.children,o=n.value,a=n.disabled;return t("option",l(r,{attrs:{disabled:a},domProps:{value:o}}),i)}}),i$=c.extend({name:an,mixins:[Eo,lh],props:{label:{type:String,required:!0}},render:function(t){var e=this.formOptions.map((function(e,n){var r=e.value,i=e.text,o=e.html,a=e.disabled;return t(r$,{attrs:{value:r,disabled:a},domProps:bl(o,i),key:"option_".concat(n)})}));return t("optgroup",{attrs:{label:this.label}},[this.normalizeSlot(yo),e,this.normalizeSlot()])}}),o$=c.extend({name:rn,mixins:[bc,Eo,xh,Ah,Eh,Qh,e$],model:{prop:"value",event:"input"},props:{value:{},multiple:{type:Boolean,default:!1},selectSize:{type:Number,default:0},ariaInvalid:{type:[Boolean,String],default:!1}},data:function(){return{localValue:this.value}},computed:{computedSelectSize:function(){return this.plain||0!==this.selectSize?this.selectSize:null},inputClass:function(){return[this.plain?"form-control":"custom-select",this.size&&this.plain?"form-control-".concat(this.size):null,this.size&&!this.plain?"custom-select-".concat(this.size):null,this.stateClass]},computedAriaInvalid:function(){return!0===this.ariaInvalid||"true"===this.ariaInvalid||"is-invalid"===this.stateClass?"true":null}},watch:{value:function(t){this.localValue=t},localValue:function(){this.$emit("input",this.localValue)}},methods:{focus:function(){oo(this.$refs.input)},blur:function(){ao(this.$refs.input)},onChange:function(t){var e=this,n=t.target,r=ni(n.options).filter((function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));this.localValue=n.multiple?r:r[0],this.$nextTick((function(){e.$emit("change",e.localValue)}))}},render:function(t){var e=this.name,n=this.disabled,r=this.required,i=this.computedSelectSize,o=this.localValue,a=this.formOptions.map((function(e,n){var r=e.value,i=e.label,o=e.options,a=e.disabled,s="option_".concat(n);return F(o)?t(i$,{props:{label:i,options:o},key:s}):t(r$,{props:{value:r,disabled:a},domProps:bl(e.html,e.text),key:s})}));return t("select",{class:this.inputClass,attrs:{id:this.safeId(),name:e,form:this.form||null,multiple:this.multiple||null,size:i,disabled:n,required:r,"aria-required":r?"true":null,"aria-invalid":this.computedAriaInvalid},on:{change:this.onChange},directives:[{name:"model",value:o}],ref:"input"},[this.normalizeSlot(yo),a,this.normalizeSlot()])}}),a$=Nr({components:{BFormSelect:o$,BFormSelectOption:r$,BFormSelectOptionGroup:i$,BSelect:o$,BSelectOption:r$,BSelectOptionGroup:i$}});function s$(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l$(t){for(var e=1;e0?t:h$},computedInterval:function(){var t=li(this.repeatInterval,0);return t>0?t:p$},computedThreshold:function(){return Uo(li(this.repeatThreshold,$$),1)},computedStepMultiplier:function(){return Uo(li(this.repeatStepMultiplier,m$),1)},computedPrecision:function(){var t=this.computedStep;return Go(t)===t?0:(t.toString().split(".")[1]||"").length},computedMultiplier:function(){return Yo(10,this.computedPrecision||0)},valueAsFixed:function(){var t=this.localValue;return B(t)?"":t.toFixed(this.computedPrecision)},computedLocale:function(){var t=ii(this.locale).filter(Xt),e=new Intl.NumberFormat(t);return e.resolvedOptions().locale},computedRTL:function(){return _c(this.computedLocale)},defaultFormatter:function(){var t=this.computedPrecision,e=new Intl.NumberFormat(this.computedLocale,{style:"decimal",useGrouping:!1,minimumIntegerDigits:1,minimumFractionDigits:t,maximumFractionDigits:t,notation:"standard"});return e.format},computedFormatter:function(){return I(this.formatterFn)?this.formatterFn:this.defaultFormatter},computedAttrs:function(){return l$(l$({},this.bvAttrs),{},{role:"group",lang:this.computedLocale,tabindex:this.disabled?null:"-1",title:this.ariaLabel})},computedSpinAttrs:function(){var t=this.spinId,e=this.localValue,n=this.computedRequired,r=this.disabled,i=this.state,o=this.computedFormatter,a=!B(e);return l$(l$({dir:this.computedRTL?"rtl":"ltr"},this.bvAttrs),{},{id:t,role:"spinbutton",tabindex:r?null:"0","aria-live":"off","aria-label":this.ariaLabel||null,"aria-controls":this.ariaControls||null,"aria-invalid":!1===i||!a&&n?"true":null,"aria-required":n?"true":null,"aria-valuemin":gi(this.computedMin),"aria-valuemax":gi(this.computedMax),"aria-valuenow":a?e:null,"aria-valuetext":a?o(e):null})}},watch:{value:function(t){this.localValue=ci(t,null)},localValue:function(t){this.$emit("input",t)},disabled:function(t){t&&this.clearRepeat()},readonly:function(t){t&&this.clearRepeat()}},created:function(){this.$_autoDelayTimer=null,this.$_autoRepeatTimer=null,this.$_keyIsDown=!1},beforeDestroy:function(){this.clearRepeat()},deactivated:function(){this.clearRepeat()},methods:{focus:function(){this.disabled||oo(this.$refs.spinner)},blur:function(){this.disabled||ao(this.$refs.spinner)},emitChange:function(){this.$emit("change",this.localValue)},stepValue:function(t){var e=this.localValue;if(!this.disabled&&!B(e)){var n=this.computedStep*t,r=this.computedMin,i=this.computedMax,o=this.computedMultiplier,a=this.wrap;e=Ko((e-r)/n)*n+r+n,e=Ko(e*o)/o,this.localValue=e>i?a?r:i:e0&&void 0!==arguments[0]?arguments[0]:1,e=this.localValue;B(e)?this.localValue=this.computedMin:this.stepValue(1*t)},stepDown:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=this.localValue;B(e)?this.localValue=this.wrap?this.computedMax:this.computedMin:this.stepValue(-1*t)},onKeydown:function(t){var e=t.keyCode,n=t.altKey,r=t.ctrlKey,i=t.metaKey;if(!(this.disabled||this.readonly||n||r||i)&&ri(g$,e)){if(Io(t,{propagation:!1}),this.$_keyIsDown)return;this.resetTimers(),ri([ja,Ca],e)?(this.$_keyIsDown=!0,e===ja?this.handleStepRepeat(t,this.stepUp):e===Ca&&this.handleStepRepeat(t,this.stepDown)):e===Ia?this.stepUp(this.computedStepMultiplier):e===La?this.stepDown(this.computedStepMultiplier):e===Pa?this.localValue=this.computedMin:e===Aa&&(this.localValue=this.computedMax)}},onKeyup:function(t){var e=t.keyCode,n=t.altKey,r=t.ctrlKey,i=t.metaKey;this.disabled||this.readonly||n||r||i||ri(g$,e)&&(Io(t,{propagation:!1}),this.resetTimers(),this.$_keyIsDown=!1,this.emitChange())},handleStepRepeat:function(t,e){var n=this,r=t||{},i=r.type,o=r.button;if(!this.disabled&&!this.readonly){if("mousedown"===i&&o)return;this.resetTimers(),e(1);var a=this.computedThreshold,s=this.computedStepMultiplier,l=this.computedDelay,c=this.computedInterval;this.$_autoDelayTimer=setTimeout((function(){var t=0;n.$_autoRepeatTimer=setInterval((function(){e(tt.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&n.indexOf(t)===e}))},L$=function(t){return R(t)?t:V(t)&&t.target.value||""},I$=function(){return{all:[],valid:[],invalid:[],duplicate:[]}},D$=c.extend({name:cn,mixins:[bc,Eo],model:{prop:"value",event:"input"},props:{inputId:{type:String},placeholder:{type:String,default:function(){return Zr(cn,"placeholder")}},disabled:{type:Boolean,default:!1},name:{type:String},form:{type:String},autofocus:{type:Boolean,default:!1},state:{type:Boolean,default:null},size:{type:String},inputType:{type:String,default:"text",validator:function(t){return ri(T$,t)}},inputClass:{type:[String,Array,Object]},inputAttrs:{type:Object,default:function(){return{}}},addButtonText:{type:String,default:function(){return Zr(cn,"addButtonText")}},addButtonVariant:{type:String,default:function(){return Zr(cn,"addButtonVariant")}},tagVariant:{type:String,default:function(){return Zr(cn,"tagVariant")}},tagClass:{type:[String,Array,Object]},tagPills:{type:Boolean,default:!1},tagRemoveLabel:{type:String,default:function(){return Zr(cn,"tagRemoveLabel")}},tagRemovedLabel:{type:String,default:function(){return Zr(cn,"tagRemovedLabel")}},tagValidator:{type:Function},duplicateTagText:{type:String,default:function(){return Zr(cn,"duplicateTagText")}},invalidTagText:{type:String,default:function(){return Zr(cn,"invalidTagText")}},limitTagsText:{type:String,default:function(){return Zr(cn,"limitTagsText")}},limit:{type:Number},separator:{type:[String,Array]},removeOnDelete:{type:Boolean,default:!1},addOnChange:{type:Boolean,default:!1},noAddOnEnter:{type:Boolean,default:!1},noOuterFocus:{type:Boolean,default:!1},ignoreInputFocusSelector:{type:[Array,String],default:function(){return[".b-form-tag","button","input","select"]}},value:{type:Array,default:function(){return[]}}},data:function(){return{hasFocus:!1,newTag:"",tags:[],removedTags:[],tagsState:I$()}},computed:{computedInputId:function(){return this.inputId||this.safeId("__input__")},computedInputType:function(){return ri(T$,this.inputType)?this.inputType:"text"},computedInputAttrs:function(){return A$(A$({},this.inputAttrs),{},{id:this.computedInputId,value:this.newTag,disabled:this.disabled||null,form:this.form||null})},computedInputHandlers:function(){return{input:this.onInputInput,change:this.onInputChange,keydown:this.onInputKeydown}},computedSeparator:function(){return ii(this.separator).filter(R).filter(Xt).join("")},computedSeparatorRegExp:function(){var t=this.computedSeparator;return t?new RegExp("[".concat(P$(t),"]+")):null},computedJoiner:function(){var t=this.computedSeparator.charAt(0);return" "!==t?"".concat(t," "):t},computeIgnoreInputFocusSelector:function(){return ii(this.ignoreInputFocusSelector).filter(Xt).join(",").trim()},disableAddButton:function(){var t=this,e=yi(this.newTag);return""===e||!this.splitTags(e).some((function(e){return!ri(t.tags,e)&&t.validateTag(e)}))},duplicateTags:function(){return this.tagsState.duplicate},hasDuplicateTags:function(){return this.duplicateTags.length>0},invalidTags:function(){return this.tagsState.invalid},hasInvalidTags:function(){return this.invalidTags.length>0},isLimitReached:function(){var t=this.limit;return j(t)&&t>=0&&this.tags.length>=t}},watch:{value:function(t){this.tags=B$(t)},tags:function(t,e){Na(t,this.value)||this.$emit("input",t),Na(t,e)||(t=ii(t).filter(Xt),e=ii(e).filter(Xt),this.removedTags=e.filter((function(e){return!ri(t,e)})))},tagsState:function(t,e){Na(t,e)||this.$emit("tag-state",t.valid,t.invalid,t.duplicate)}},created:function(){this.tags=B$(this.value)},mounted:function(){this.handleAutofocus()},activated:function(){this.handleAutofocus()},methods:{addTag:function(t){if(t=R(t)?t:this.newTag,!this.disabled&&""!==yi(t)&&!this.isLimitReached){var e=this.parseTags(t);if(e.valid.length>0||0===e.all.length)if(Fi(this.getInput(),"select"))this.newTag="";else{var n=[].concat(b$(e.invalid),b$(e.duplicate));this.newTag=e.all.filter((function(t){return ri(n,t)})).join(this.computedJoiner).concat(n.length>0?this.computedJoiner.charAt(0):"")}e.valid.length>0&&(this.tags=ii(this.tags,e.valid)),this.tagsState=e,this.focus()}},removeTag:function(t){var e=this;this.disabled||(this.tags=this.tags.filter((function(e){return e!==t})),this.$nextTick((function(){e.focus()})))},onInputInput:function(t){if(!(this.disabled||V(t)&&t.target.composing)){var e=L$(t),n=this.computedSeparatorRegExp;this.newTag!==e&&(this.newTag=e),e=vi(e),n&&n.test(e.slice(-1))?this.addTag():this.tagsState=""===e?I$():this.parseTags(e)}},onInputChange:function(t){if(!this.disabled&&this.addOnChange){var e=L$(t);this.newTag!==e&&(this.newTag=e),this.addTag()}},onInputKeydown:function(t){if(!this.disabled&&V(t)){var e=t.keyCode,n=t.target.value||"";this.noAddOnEnter||e!==Ea?!this.removeOnDelete||e!==Sa&&e!==Oa||""!==n||(Io(t,{propagation:!1}),this.tags=this.tags.slice(0,-1)):(Io(t,{propagation:!1}),this.addTag())}},onClick:function(t){var e=this,n=this.computeIgnoreInputFocusSelector,r=t.target;this.disabled||Li(r)||n&&Ni(n,r,!0)||this.$nextTick((function(){e.focus()}))},onFocusin:function(){this.hasFocus=!0},onFocusout:function(){this.hasFocus=!1},handleAutofocus:function(){var t=this;this.$nextTick((function(){Ci((function(){t.autofocus&&!t.disabled&&t.focus()}))}))},focus:function(){this.disabled||oo(this.getInput())},blur:function(){this.disabled||ao(this.getInput())},splitTags:function(t){t=gi(t);var e=this.computedSeparatorRegExp;return(e?t.split(e):[t]).map(yi).filter(Xt)},parseTags:function(t){var e=this,n=this.splitTags(t),r={all:n,valid:[],invalid:[],duplicate:[]};return n.forEach((function(t){ri(e.tags,t)||ri(r.valid,t)?ri(r.duplicate,t)||r.duplicate.push(t):e.validateTag(t)?r.valid.push(t):ri(r.invalid,t)||r.invalid.push(t)})),r},validateTag:function(t){var e=this.tagValidator;return!I(e)||e(t)},getInput:function(){return Mi("#".concat(fp(this.computedInputId)),this.$el)},defaultRender:function(t){var e=t.tags,n=t.inputAttrs,r=t.inputType,i=t.inputHandlers,o=t.removeTag,a=t.addTag,s=t.isInvalid,l=t.isDuplicate,c=t.isLimitReached,u=t.disableAddButton,d=t.disabled,f=t.placeholder,h=t.inputClass,p=t.tagRemoveLabel,$=t.tagVariant,m=t.tagPills,g=t.tagClass,v=t.addButtonText,y=t.addButtonVariant,_=t.invalidTagText,b=t.duplicateTagText,w=t.limitTagsText,x=this.$createElement,k=e.map((function(t){return t=gi(t),x(_$,{class:g,props:{tag:"li",title:t,disabled:d,variant:$,pill:m,removeLabel:p},on:{remove:function(){return o(t)}},key:"tags_".concat(t)},t)})),S=_&&s?this.safeId("__invalid_feedback__"):null,O=b&&l?this.safeId("__duplicate_feedback__"):null,C=w&&c?this.safeId("__limit_feedback__"):null,A=[n["aria-describedby"],S,O,C].filter(Xt).join(" "),E=x("input",{ref:"input",directives:[{name:"model",value:n.value}],staticClass:"b-form-tags-input w-100 flex-grow-1 p-0 m-0 bg-transparent border-0",class:h,style:{outline:0,minWidth:"5rem"},attrs:A$(A$({},n),{},{"aria-describedby":A||null,type:r,placeholder:f||null}),domProps:{value:n.value},on:i}),T=x(_s,{ref:"button",staticClass:"b-form-tags-button py-0",class:{invisible:u},style:{fontSize:"90%"},props:{variant:y,disabled:u||c},on:{click:function(){return a()}}},[this.normalizeSlot("add-button-text")||v]),P=this.safeId("__tag_list__"),B=x("li",{staticClass:"b-from-tags-field flex-grow-1",attrs:{role:"none","aria-live":"off","aria-controls":P},key:"tags_field"},[x("div",{staticClass:"d-flex",attrs:{role:"group"}},[E,T])]),L=x("ul",{staticClass:"b-form-tags-list list-unstyled mb-0 d-flex flex-wrap align-items-center",attrs:{id:P},key:"tags_list"},[k,B]),I=x();if(_||b||w){var D=this.computedJoiner,R=x();S&&(R=x(ph,{props:{id:S,forceShow:!0},key:"tags_invalid_feedback"},[this.invalidTagText,": ",this.invalidTags.join(D)]));var j=x();O&&(j=x(fh,{props:{id:O},key:"tags_duplicate_feedback"},[this.duplicateTagText,": ",this.duplicateTags.join(D)]));var M=x();C&&(M=x(fh,{props:{id:C},key:"tags_limit_feedback"},[w])),I=x("div",{attrs:{"aria-live":"polite","aria-atomic":"true"},key:"tags_feedback"},[R,j,M])}return[L,I]}},render:function(t){var e=this,n={tags:this.tags.slice(),inputAttrs:this.computedInputAttrs,inputType:this.computedInputType,inputHandlers:this.computedInputHandlers,removeTag:this.removeTag,addTag:this.addTag,inputId:this.computedInputId,isInvalid:this.hasInvalidTags,invalidTags:this.invalidTags.slice(),isDuplicate:this.hasDuplicateTags,duplicateTags:this.duplicateTags.slice(),isLimitReached:this.isLimitReached,disableAddButton:this.disableAddButton,disabled:this.disabled,state:this.state,size:this.size,limit:this.limit,separator:this.separator,placeholder:this.placeholder,inputClass:this.inputClass,tagRemoveLabel:this.tagRemoveLabel,tagVariant:this.tagVariant,tagPills:this.tagPills,tagClass:this.tagClass,addButtonText:this.addButtonText,addButtonVariant:this.addButtonVariant,invalidTagText:this.invalidTagText,duplicateTagText:this.duplicateTagText,limitTagsText:this.limitTagsText},r=this.normalizeSlot(go,n)||this.defaultRender(n),i=t("output",{staticClass:"sr-only",attrs:{id:this.safeId("__selected_tags__"),role:"status",for:this.computedInputId,"aria-live":this.hasFocus?"polite":"off","aria-atomic":"true","aria-relevant":"additions text"}},this.tags.join(", ")),o=t("div",{staticClass:"sr-only",attrs:{id:this.safeId("__removed_tags__"),role:"status","aria-live":this.hasFocus?"assertive":"off","aria-atomic":"true"}},this.removedTags.length>0?"(".concat(this.tagRemovedLabel,") ").concat(this.removedTags.join(", ")):""),a=t();return this.name&&!this.disabled&&(a=this.tags.map((function(n){return t("input",{attrs:{type:"hidden",value:n,name:e.name,form:e.form||null},key:"tag_input_".concat(n)})}))),t("div",{staticClass:"b-form-tags form-control h-auto",class:E$({focus:this.hasFocus&&!this.noOuterFocus&&!this.disabled,disabled:this.disabled,"is-valid":!0===this.state,"is-invalid":!1===this.state},"form-control-".concat(this.size),this.size),attrs:{id:this.safeId(),role:"group",tabindex:this.disabled||this.noOuterFocus?null:"-1","aria-describedby":this.safeId("__selected_tags__")},on:{click:this.onClick,focusin:this.onFocusin,focusout:this.onFocusout}},[i,o,r,a])}}),R$=Nr({components:{BFormTags:D$,BTags:D$,BFormTag:_$,BTag:_$}});function j$(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function M$(t){for(var e=1;ed?s:"".concat(d,"px")}},render:function(t){return t("textarea",{ref:"input",class:this.computedClass,style:this.computedStyle,directives:[{name:"b-visible",value:this.visibleCallback,modifiers:{640:!0}}],attrs:this.computedAttrs,domProps:{value:this.localValue},on:this.computedListeners})}}),z$=Nr({components:{BFormTextarea:N$,BTextarea:N$}});function H$(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function V$(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&void 0!==arguments[1]&&arguments[1];if(B(e)||B(n)||i&&B(r))return"";var o=[e,n,i?r:0];return o.map(Q$).join(":")},nm=c.extend({name:$r,mixins:[bc,Eo],model:{prop:"value",event:"input"},props:{value:{type:String,default:""},showSeconds:{type:Boolean,default:!1},hour12:{type:Boolean,default:null},locale:{type:[String,Array]},ariaLabelledby:{type:String},secondsStep:{type:[Number,String],default:1},minutesStep:{type:[Number,String],default:1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},hideHeader:{type:Boolean,default:!1},labelNoTimeSelected:{type:String,default:function(){return Zr($r,"labelNoTimeSelected")}},labelSelected:{type:String,default:function(){return Zr($r,"labelSelected")}},labelHours:{type:String,default:function(){return Zr($r,"labelHours")}},labelMinutes:{type:String,default:function(){return Zr($r,"labelMinutes")}},labelSeconds:{type:String,default:function(){return Zr($r,"labelSeconds")}},labelAmpm:{type:String,default:function(){return Zr($r,"labelAmpm")}},labelAm:{type:String,default:function(){return Zr($r,"labelAm")}},labelPm:{type:String,default:function(){return Zr($r,"labelPm")}},labelIncrement:{type:String,default:function(){return J$("labelIncrement")}},labelDecrement:{type:String,default:function(){return J$("labelDecrement")}},hidden:{type:Boolean,default:!1}},data:function(){var t=tm(this.value||"");return{modelHours:t.hours,modelMinutes:t.minutes,modelSeconds:t.seconds,modelAmpm:t.ampm,isLive:!1}},computed:{computedHMS:function(){var t=this.modelHours,e=this.modelMinutes,n=this.modelSeconds;return em({hours:t,minutes:e,seconds:n},this.showSeconds)},resolvedOptions:function(){var t=ii(this.locale).filter(Xt),e={hour:Z$,minute:Z$,second:Z$};L(this.hour12)||(e.hour12=!!this.hour12);var n=new Intl.DateTimeFormat(t,e),r=n.resolvedOptions(),i=r.hour12||!1,o=r.hourCycle||(i?"h12":"h23");return{locale:r.locale,hour12:i,hourCycle:o}},computedLocale:function(){return this.resolvedOptions.locale},computedLang:function(){return(this.computedLocale||"").replace(/-u-.*$/,"")},computedRTL:function(){return _c(this.computedLang)},computedHourCycle:function(){return this.resolvedOptions.hourCycle},is12Hour:function(){return!!this.resolvedOptions.hour12},context:function(){return{locale:this.computedLocale,isRTL:this.computedRTL,hourCycle:this.computedHourCycle,hour12:this.is12Hour,hours:this.modelHours,minutes:this.modelMinutes,seconds:this.showSeconds?this.modelSeconds:0,value:this.computedHMS,formatted:this.formattedTimeString}},valueId:function(){return this.safeId()||null},computedAriaLabelledby:function(){return[this.ariaLabelledby,this.valueId].filter(Xt).join(" ")||null},timeFormatter:function(){var t={hour12:this.is12Hour,hourCycle:this.computedHourCycle,hour:Z$,minute:Z$,timeZone:"UTC"};return this.showSeconds&&(t.second=Z$),sc(this.computedLocale,t)},numberFormatter:function(){var t=new Intl.NumberFormat(this.computedLocale,{style:"decimal",minimumIntegerDigits:2,minimumFractionDigits:0,maximumFractionDigits:0,notation:"standard"});return t.format},formattedTimeString:function(){var t=this.modelHours,e=this.modelMinutes,n=this.showSeconds&&this.modelSeconds||0;return this.computedHMS?this.timeFormatter(rc(Date.UTC(0,0,1,t,e,n))):this.labelNoTimeSelected||" "},spinScopedSlots:function(){var t=this.$createElement;return{increment:function(e){var n=e.hasFocus;return t(Fs,{props:{scale:n?1.5:1.25},attrs:{"aria-hidden":"true"}})},decrement:function(e){var n=e.hasFocus;return t(Fs,{props:{flipV:!0,scale:n?1.5:1.25},attrs:{"aria-hidden":"true"}})}}}},watch:{value:function(t,e){if(t!==e&&!Na(tm(t),tm(this.computedHMS))){var n=tm(t),r=n.hours,i=n.minutes,o=n.seconds,a=n.ampm;this.modelHours=r,this.modelMinutes=i,this.modelSeconds=o,this.modelAmpm=a}},computedHMS:function(t,e){t!==e&&this.$emit("input",t)},context:function(t,e){Na(t,e)||this.$emit("context",t)},modelAmpm:function(t,e){var n=this;if(t!==e){var r=B(this.modelHours)?0:this.modelHours;this.$nextTick((function(){0===t&&r>11?n.modelHours=r-12:1===t&&r<12&&(n.modelHours=r+12)}))}},modelHours:function(t,e){t!==e&&(this.modelAmpm=t>11?1:0)}},created:function(){var t=this;this.$nextTick((function(){t.$emit("context",t.context)}))},mounted:function(){this.setLive(!0)},activated:function(){this.setLive(!0)},deactivated:function(){this.setLive(!1)},beforeDestroy:function(){this.setLive(!1)},methods:{focus:function(){this.disabled||oo(this.$refs.spinners[0])},blur:function(){if(!this.disabled){var t=Pi();zi(this.$el,t)&&ao(t)}},formatHours:function(t){var e=this.computedHourCycle;return t=this.is12Hour&&t>12?t-12:t,t=0===t&&"h12"===e?12:0===t&&"h24"===e?24:12===t&&"h11"===e?0:t,this.numberFormatter(t)},formatMinutes:function(t){return this.numberFormatter(t)},formatSeconds:function(t){return this.numberFormatter(t)},formatAmpm:function(t){return 0===t?this.labelAm:1===t?this.labelPm:""},setHours:function(t){this.modelHours=t},setMinutes:function(t){this.modelMinutes=t},setSeconds:function(t){this.modelSeconds=t},setAmpm:function(t){this.modelAmpm=t},onSpinLeftRight:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.type,n=t.keyCode;if(!this.disabled&&"keydown"===e&&(n===Ba||n===Da)){Io(t);var r=this.$refs.spinners||[],i=r.map((function(t){return!!t.hasFocus})).indexOf(!0);i+=n===Ba?-1:1,i=i>=r.length?0:i<0?r.length-1:i,oo(r[i])}},setLive:function(t){var e=this;t?this.$nextTick((function(){Ci((function(){e.isLive=!0}))})):this.isLive=!1}},render:function(t){var e=this;if(this.hidden)return t();var n=this.valueId,r=this.computedAriaLabelledby,i=[],o=function(r,o,a){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},l=e.safeId("_spinbutton_".concat(o,"_"))||null;return i.push(l),t(v$,{key:o,ref:"spinners",refInFor:!0,class:a,props:V$({id:l,placeholder:"--",vertical:!0,required:!0,disabled:e.disabled,readonly:e.readonly,locale:e.computedLocale,labelIncrement:e.labelIncrement,labelDecrement:e.labelDecrement,wrap:!0,ariaControls:n,min:0},s),scopedSlots:e.spinScopedSlots,on:{change:r}})},a=function(){return t("div",{staticClass:"d-flex flex-column",class:{"text-muted":e.disabled||e.readonly},attrs:{"aria-hidden":"true"}},[t(Ns,{props:{shiftV:4,scale:.5}}),t(Ns,{props:{shiftV:-4,scale:.5}})])},s=[];s.push(o(this.setHours,"hours","b-time-hours",{value:this.modelHours,max:23,step:1,formatterFn:this.formatHours,ariaLabel:this.labelHours})),s.push(a()),s.push(o(this.setMinutes,"minutes","b-time-minutes",{value:this.modelMinutes,max:59,step:this.minutesStep||1,formatterFn:this.formatMinutes,ariaLabel:this.labelMinutes})),this.showSeconds&&(s.push(a()),s.push(o(this.setSeconds,"seconds","b-time-seconds",{value:this.modelSeconds,max:59,step:this.secondsStep||1,formatterFn:this.formatSeconds,ariaLabel:this.labelSeconds}))),this.is12Hour&&s.push(o(this.setAmpm,"ampm","b-time-ampm",{value:this.modelAmpm,max:1,formatterFn:this.formatAmpm,ariaLabel:this.labelAmpm,required:!1})),s=t("div",{staticClass:"d-flex align-items-center justify-content-center mx-auto",attrs:{role:"group",tabindex:this.disabled||this.readonly?null:"-1","aria-labelledby":r},on:{keydown:this.onSpinLeftRight,click:function(t){t.target===t.currentTarget&&e.focus()}}},s);var l=t("output",{staticClass:"form-control form-control-sm text-center",class:{disabled:this.disabled||this.readonly},attrs:{id:n,role:"status",for:i.filter(Xt).join(" ")||null,tabindex:this.disabled?null:"-1","aria-live":this.isLive?"polite":"off","aria-atomic":"true"},on:{click:this.focus,focus:this.focus}},[t("bdi",this.formattedTimeString),this.computedHMS?t("span",{staticClass:"sr-only"}," (".concat(this.labelSelected,") ")):""]),c=t("header",{staticClass:"b-time-header",class:{"sr-only":this.hideHeader}},[l]),u=this.normalizeSlot();return u=u?t("footer",{staticClass:"b-time-footer"},u):t(),t("div",{staticClass:"b-time d-inline-flex flex-column text-center",attrs:{role:"group",lang:this.computedLang||null,"aria-labelledby":r||null,"aria-disabled":this.disabled?"true":null,"aria-readonly":this.readonly&&!this.disabled?"true":null}},[c,s,u])}});function rm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function im(t){for(var e=1;e0&&o.push(t("span"," "));var s=this.labelResetButton;o.push(t(_s,{key:"reset-btn",props:{size:"sm",disabled:n||r,variant:this.resetButtonVariant},attrs:{"aria-label":s||null},on:{click:this.onResetButton}},s))}if(!this.noCloseButton){o.length>0&&o.push(t("span"," "));var l=this.labelCloseButton;o.push(t(_s,{key:"close-btn",props:{size:"sm",disabled:n,variant:this.closeButtonVariant},attrs:{"aria-label":l||null},on:{click:this.onCloseButton}},l))}o.length>0&&(o=[t("div",{staticClass:"b-form-date-controls d-flex flex-wrap",class:{"justify-content-between":o.length>1,"justify-content-end":o.length<2}},o)]);var c=t(nm,{ref:"time",staticClass:"b-form-time-control",props:this.timeProps,on:{input:this.onInput,context:this.onContext}},o);return t(qh,{ref:"control",staticClass:"b-form-timepicker",props:im(im({},this.$props),{},{id:this.safeId(),rtl:this.isRTL,lang:this.computedLang,value:e||"",formattedValue:e?this.formattedValue:"",placeholder:i||""}),on:{show:this.onShow,shown:this.onShown,hidden:this.onHidden},scopedSlots:{"button-content":this.$scopedSlots["button-content"]||this.defaultButtonFn}},[c])}}),cm=Nr({components:{BFormTimepicker:lm,BTimepicker:lm}}),um=Nr({components:{BImg:bu,BImgLazy:ku}}),dm={tag:{type:String,default:"div"}},fm=c.extend({name:wn,functional:!0,props:dm,render:function(t,e){var n=e.props,r=e.data,i=e.children;return t(n.tag,l(r,{staticClass:"input-group-text"}),i)}});function hm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function pm(t){for(var e=1;e0&&!e[0].text?e[0]:t()}}),$g=c.extend({name:kr,mixins:[Eo],props:{disabled:{type:Boolean,default:!1},container:{type:[String,S],default:"body"},tag:{type:String,default:"div"}},watch:{disabled:{immediate:!0,handler:function(t){t?this.unmountTarget():this.$nextTick(this.mountTarget)}}},created:function(){this.$_defaultFn=null,this.$_target=null},beforeMount:function(){this.mountTarget()},updated:function(){this.updateTarget()},beforeDestroy:function(){this.unmountTarget(),this.$_defaultFn=null},methods:{getContainer:function(){if(u["j"]){var t=this.container;return R(t)?Mi(t):t}return null},mountTarget:function(){if(!this.$_target){var t=this.getContainer();if(t){var e=document.createElement("div");t.appendChild(e),this.$_target=new pg({el:e,parent:this,propsData:{nodes:ii(this.normalizeSlot())}})}}},updateTarget:function(){if(u["j"]&&this.$_target){var t=this.$scopedSlots.default;this.disabled||(t&&this.$_defaultFn!==t?this.$_target.updatedNodes=t:t||(this.$_target.updatedNodes=this.$slots.default)),this.$_defaultFn=t}},unmountTarget:function(){this.$_target&&this.$_target.$destroy(),this.$_target=null}},render:function(t){if(this.disabled){var e=ii(this.normalizeSlot()).filter(Xt);if(e.length>0&&!e[0].text)return e[0]}return t()}}),mg="$_bv_documentHandlers_",gg={created:function(){var t=this;u["j"]&&(this[mg]={},this.$once("hook:beforeDestroy",(function(){var e=t[mg]||{};delete t[mg],nt(e).forEach((function(t){var n=e[t]||[];n.forEach((function(e){return Bo(document,t,e,ju)}))}))})))},methods:{listenDocument:function(t,e,n){t?this.listenOnDocument(e,n):this.listenOffDocument(e,n)},listenOnDocument:function(t,e){this[mg]&&R(t)&&I(e)&&(this[mg][t]=this[mg][t]||[],ri(this[mg][t],e)||(this[mg][t].push(e),Po(document,t,e,ju)))},listenOffDocument:function(t,e){this[mg]&&R(t)&&I(e)&&(Bo(document,t,e,ju),this[mg][t]=(this[mg][t]||[]).filter((function(t){return t!==e})))}}},vg="$_bv_windowHandlers_",yg={beforeCreate:function(){this[vg]={}},beforeDestroy:function(){if(u["j"]){var t=this[vg];delete this[vg],nt(t).forEach((function(e){var n=t[e]||[];n.forEach((function(t){return Bo(window,e,t,ju)}))}))}},methods:{listenWindow:function(t,e,n){t?this.listenOnWindow(e,n):this.listenOffWindow(e,n)},listenOnWindow:function(t,e){u["j"]&&this[vg]&&R(t)&&I(e)&&(this[vg][t]=this[vg][t]||[],ri(this[vg][t],e)||(this[vg][t].push(e),Po(window,t,e,ju)))},listenOffWindow:function(t,e){u["j"]&&this[vg]&&R(t)&&I(e)&&(Bo(window,t,e,ju),this[vg][t]=(this[vg][t]||[]).filter((function(t){return t!==e})))}}},_g=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t&&t.$options._scopeId||e},bg=_g;function wg(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var xg={computed:{scopedStyleAttrs:function(){var t=bg(this.$parent);return t?wg({},t,""):{}}}},kg=1040,Sg={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"},Og=c.extend({data:function(){return{modals:[],baseZIndex:null,scrollbarWidth:null,isBodyOverflowing:!1}},computed:{modalCount:function(){return this.modals.length},modalsAreOpen:function(){return this.modalCount>0}},watch:{modalCount:function(t,e){u["j"]&&(this.getScrollbarWidth(),t>0&&0===e?(this.checkScrollbar(),this.setScrollbar(),Vi(document.body,"modal-open")):0===t&&e>0&&(this.resetScrollbar(),Ui(document.body,"modal-open")),Wi(document.body,"data-modal-open-count",String(t)))},modals:function(t){var e=this;this.checkScrollbar(),Ci((function(){e.updateModals(t||[])}))}},methods:{registerModal:function(t){var e=this;t&&-1===this.modals.indexOf(t)&&(this.modals.push(t),t.$once("hook:beforeDestroy",(function(){e.unregisterModal(t)})))},unregisterModal:function(t){var e=this.modals.indexOf(t);e>-1&&(this.modals.splice(e,1),t._isBeingDestroyed||t._isDestroyed||this.resetModal(t))},getBaseZIndex:function(){if(B(this.baseZIndex)&&u["j"]){var t=document.createElement("div");Vi(t,"modal-backdrop"),Vi(t,"d-none"),Xi(t,"display","none"),document.body.appendChild(t),this.baseZIndex=li(to(t).zIndex,kg),document.body.removeChild(t)}return this.baseZIndex||kg},getScrollbarWidth:function(){if(B(this.scrollbarWidth)&&u["j"]){var t=document.createElement("div");Vi(t,"modal-scrollbar-measure"),document.body.appendChild(t),this.scrollbarWidth=Qi(t).width-t.clientWidth,document.body.removeChild(t)}return this.scrollbarWidth||0},updateModals:function(t){var e=this,n=this.getBaseZIndex(),r=this.getScrollbarWidth();t.forEach((function(t,i){t.zIndex=n+i,t.scrollbarWidth=r,t.isTop=i===e.modals.length-1,t.isBodyOverflowing=e.isBodyOverflowing}))},resetModal:function(t){t&&(t.zIndex=this.getBaseZIndex(),t.isTop=!0,t.isBodyOverflowing=!1)},checkScrollbar:function(){var t=Qi(document.body),e=t.left,n=t.right;this.isBodyOverflowing=e+n1&&void 0!==arguments[1]?arguments[1]:{};return Bg(this,n),r=e.call(this,t,i),J(zg(r),{trigger:ct()}),r}return Ig(n,null,[{key:"Defaults",get:function(){return Tg(Tg({},Dg(Vg(n),"Defaults",this)),{},{trigger:null})}}]),n}(rf);function qg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Wg(t){for(var e=1;e0&&void 0!==arguments[0]&&arguments[0];this.$_observer&&this.$_observer.disconnect(),this.$_observer=null,t&&(this.$_observer=Uu(this.$refs.content,this.checkModalOverflow.bind(this),Yg))},updateModel:function(t){t!==this.visible&&this.$emit("change",t)},buildEvent:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Ug(t,Wg(Wg({cancelable:!1,target:this.$refs.modal||this.$el||null,relatedTarget:null,trigger:null},e),{},{vueTarget:this,componentId:this.modalId}))},show:function(){if(!this.isVisible&&!this.isOpening)if(this.isClosing)this.$once("hidden",this.show);else{this.isOpening=!0,this.return_focus=this.return_focus||this.getActiveElement();var t=this.buildEvent("show",{cancelable:!0});if(this.emitEvent(t),t.defaultPrevented||this.isVisible)return this.isOpening=!1,void this.updateModel(!1);this.doShow()}},hide:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(this.isVisible&&!this.isClosing){this.isClosing=!0;var e=this.buildEvent("hide",{cancelable:"FORCE"!==t,trigger:t||null});if("ok"===t?this.$emit("ok",e):"cancel"===t?this.$emit("cancel",e):"headerclose"===t&&this.$emit("close",e),this.emitEvent(e),e.defaultPrevented||!this.isVisible)return this.isClosing=!1,void this.updateModel(!0);this.setObserver(!1),this.isVisible=!1,this.updateModel(!1)}},toggle:function(t){t&&(this.return_focus=t),this.isVisible?this.hide("toggle"):this.show()},getActiveElement:function(){var t=Pi(u["j"]?[document.body]:[]);return t&&t.focus?t:null},doShow:function(){var t=this;Cg.modalsAreOpen&&this.noStacking?this.listenOnRootOnce("bv::modal::hidden",this.doShow):(Cg.registerModal(this),this.isHidden=!1,this.$nextTick((function(){t.isVisible=!0,t.isOpening=!1,t.updateModel(!0),t.$nextTick((function(){t.setObserver(!0)}))})))},onBeforeEnter:function(){this.isTransitioning=!0,this.setResizeEvent(!0)},onEnter:function(){var t=this;this.isBlock=!0,Ci((function(){Ci((function(){t.isShow=!0}))}))},onAfterEnter:function(){var t=this;this.checkModalOverflow(),this.isTransitioning=!1,Ci((function(){t.emitEvent(t.buildEvent("shown")),t.setEnforceFocus(!0),t.$nextTick((function(){t.focusFirst()}))}))},onBeforeLeave:function(){this.isTransitioning=!0,this.setResizeEvent(!1),this.setEnforceFocus(!1)},onLeave:function(){this.isShow=!1},onAfterLeave:function(){var t=this;this.isBlock=!1,this.isTransitioning=!1,this.isModalOverflowing=!1,this.isHidden=!0,this.$nextTick((function(){t.isClosing=!1,Cg.unregisterModal(t),t.returnFocusTo(),t.emitEvent(t.buildEvent("hidden"))}))},emitEvent:function(t){var e=t.type;this.emitOnRoot("bv::modal::".concat(e),t,t.componentId),this.$emit(e,t)},onDialogMousedown:function(){var t=this,e=this.$refs.modal,n=function n(r){Bo(e,"mouseup",n,ju),r.target===e&&(t.ignoreBackdropClick=!0)};Po(e,"mouseup",n,ju)},onClickOut:function(t){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:this.isVisible&&!this.noCloseOnBackdrop&&zi(document.body,t.target)&&(zi(this.$refs.content,t.target)||this.hide("backdrop"))},onOk:function(){this.hide("ok")},onCancel:function(){this.hide("cancel")},onClose:function(){this.hide("headerclose")},onEsc:function(t){t.keyCode===Ta&&this.isVisible&&!this.noCloseOnEsc&&this.hide("esc")},focusHandler:function(t){var e=this.$refs.content,n=t.target;if(!(this.noEnforceFocus||!this.isTop||!this.isVisible||!e||document===n||zi(e,n)||this.computeIgnoreEnforceFocusSelector&&Ni(this.computeIgnoreEnforceFocusSelector,n,!0))){var r=io(this.$refs.content),i=this.$refs,o=i.bottomTrap,a=i.topTrap;if(o&&n===o){if(oo(r[0]))return}else if(a&&n===a&&oo(r[r.length-1]))return;oo(e,{preventScroll:!0})}},setEnforceFocus:function(t){this.listenDocument(t,"focusin",this.focusHandler)},setResizeEvent:function(t){this.listenWindow(t,"resize",this.checkModalOverflow),this.listenWindow(t,"orientationchange",this.checkModalOverflow)},showHandler:function(t,e){t===this.modalId&&(this.return_focus=e||this.getActiveElement(),this.show())},hideHandler:function(t){t===this.modalId&&this.hide("event")},toggleHandler:function(t,e){t===this.modalId&&this.toggle(e)},modalListener:function(t){this.noStacking&&t.vueTarget!==this&&this.hide()},focusFirst:function(){var t=this;u["j"]&&Ci((function(){var e=t.$refs.modal,n=t.$refs.content,r=t.getActiveElement();if(e&&n&&(!r||!zi(n,r))){var i=t.$refs["ok-button"],o=t.$refs["cancel-button"],a=t.$refs["close-button"],s=t.autoFocusButton,l="ok"===s&&i?i.$el||i:"cancel"===s&&o?o.$el||o:"close"===s&&a?a.$el||a:n;oo(l),l===n&&t.$nextTick((function(){e.scrollTop=0}))}}))},returnFocusTo:function(){var t=this.returnFocus||this.return_focus||null;this.return_focus=null,this.$nextTick((function(){t=R(t)?Mi(t):t,t&&(t=t.$el||t,oo(t))}))},checkModalOverflow:function(){if(this.isVisible){var t=this.$refs.modal;this.isModalOverflowing=t.scrollHeight>document.documentElement.clientHeight}},makeModal:function(t){var e=t();if(!this.hideHeader){var n=this.normalizeSlot("modal-header",this.slotScope);if(!n){var r=t();this.hideHeaderClose||(r=t(jo,{props:{content:this.headerCloseContent,disabled:this.isTransitioning,ariaLabel:this.headerCloseLabel,textVariant:this.headerCloseVariant||this.headerTextVariant},on:{click:this.onClose},ref:"close-button"},[this.normalizeSlot("modal-header-close")])),n=[t(this.titleTag,{staticClass:"modal-title",class:this.titleClasses,attrs:{id:this.modalTitleId},domProps:this.hasNormalizedSlot("modal-title")?{}:bl(this.titleHtml,this.title)},this.normalizeSlot("modal-title",this.slotScope)),r]}e=t("header",{staticClass:"modal-header",class:this.headerClasses,attrs:{id:this.modalHeaderId},ref:"header"},[n])}var i=t("div",{staticClass:"modal-body",class:this.bodyClasses,attrs:{id:this.modalBodyId},ref:"body"},this.normalizeSlot(go,this.slotScope)),o=t();if(!this.hideFooter){var a=this.normalizeSlot("modal-footer",this.slotScope);if(!a){var s=t();this.okOnly||(s=t(_s,{props:{variant:this.cancelVariant,size:this.buttonSize,disabled:this.cancelDisabled||this.busy||this.isTransitioning},domProps:this.hasNormalizedSlot("modal-cancel")?{}:bl(this.cancelTitleHtml,this.cancelTitle),on:{click:this.onCancel},ref:"cancel-button"},this.normalizeSlot("modal-cancel")));var l=t(_s,{props:{variant:this.okVariant,size:this.buttonSize,disabled:this.okDisabled||this.busy||this.isTransitioning},domProps:this.hasNormalizedSlot("modal-ok")?{}:bl(this.okTitleHtml,this.okTitle),on:{click:this.onOk},ref:"ok-button"},this.normalizeSlot("modal-ok"));a=[s,l]}o=t("footer",{staticClass:"modal-footer",class:this.footerClasses,attrs:{id:this.modalFooterId},ref:"footer"},[a])}var c=t("div",{staticClass:"modal-content",class:this.contentClass,attrs:{id:this.modalContentId,tabindex:"-1"},ref:"content"},[e,i,o]),u=t(),d=t();this.isVisible&&!this.noEnforceFocus&&(u=t("span",{ref:"topTrap",attrs:{tabindex:"0"}}),d=t("span",{ref:"bottomTrap",attrs:{tabindex:"0"}}));var f=t("div",{staticClass:"modal-dialog",class:this.dialogClasses,on:{mousedown:this.onDialogMousedown},ref:"dialog"},[u,c,d]),h=t("div",{staticClass:"modal",class:this.modalClasses,style:this.modalStyles,attrs:this.computedModalAttrs,on:{keydown:this.onEsc,click:this.onClickOut},directives:[{name:"show",value:this.isVisible}],ref:"modal"},[f]);h=t("transition",{props:{enterClass:"",enterToClass:"",enterActiveClass:"",leaveClass:"",leaveActiveClass:"",leaveToClass:""},on:{beforeEnter:this.onBeforeEnter,enter:this.onEnter,afterEnter:this.onAfterEnter,beforeLeave:this.onBeforeLeave,leave:this.onLeave,afterLeave:this.onAfterLeave}},[h]);var p=t();return!this.hideBackdrop&&this.isVisible&&(p=t("div",{staticClass:"modal-backdrop",attrs:{id:this.modalBackdropId}},this.normalizeSlot("modal-backdrop"))),p=t(po,{props:{noFade:this.noFade}},[p]),t("div",{style:this.modalOuterStyle,attrs:this.computedAttrs,key:"modal-outer-".concat(this._uid)},[h,p])}},render:function(t){return this.static?this.lazy&&this.isHidden?t():this.makeModal(t):this.isHidden?t():t($g,[this.makeModal(t)])}}),Zg="bv::show::modal",Jg="__bv_modal_directive__",Qg=function(t){var e=t.modifiers,n=void 0===e?{}:e,r=t.arg,i=t.value;return R(i)?i:R(r)?r:nt(n).reverse()[0]},tv=function(t){return t&&Fi(t,".dropdown-menu > li, li.nav-item")&&Mi("a, button",t)||t},ev=function(t){t&&"BUTTON"!==t.tagName&&(Ki(t,"role")||Wi(t,"role","button"),"A"===t.tagName||Ki(t,"tabindex")||Wi(t,"tabindex","0"))},nv=function(t,e,n){var r=Qg(e),i=tv(t);if(r&&i){var o=function(t){var e=t.currentTarget;if(!Di(e)){var i=t.type,o=t.keyCode;"click"!==i&&("keydown"!==i||o!==Ea&&o!==Ra)||n.context.$root.$emit(Zg,r,e)}};t[Jg]={handler:o,target:r,trigger:i},ev(i),Po(i,"click",o,Ru),"BUTTON"!==i.tagName&&"button"===Yi(i,"role")&&Po(i,"keydown",o,Ru)}},rv=function(t){var e=t[Jg]||{},n=e.trigger,r=e.handler;n&&r&&(Bo(n,"click",r,Ru),Bo(n,"keydown",r,Ru),Bo(t,"click",r,Ru),Bo(t,"keydown",r,Ru)),delete t[Jg]},iv=function(t,e,n){var r=t[Jg]||{},i=Qg(e),o=tv(t);i===r.target&&o===r.trigger||(rv(t,e,n),nv(t,e,n)),ev(o)},ov=function(){},av={inserted:iv,updated:ov,componentUpdated:iv,unbind:rv};function sv(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function lv(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n2&&void 0!==arguments[2]?arguments[2]:wv;if(!ee(yv)&&!ne(yv)){var i=new e({parent:t,propsData:dv(dv(dv({},kv(Zr(Tn)||{})),{},{hideHeaderClose:!0,hideHeader:!(n.title||n.titleHtml)},st(n,nt(xv))),{},{lazy:!1,busy:!1,visible:!1,noStacking:!1,noEnforceFocus:!1})});return nt(xv).forEach((function(t){P(n[t])||(i.$slots[xv[t]]=ii(n[t]))})),new Promise((function(t,e){var n=!1;i.$once("hook:destroyed",(function(){n||e(new Error("BootstrapVue MsgBox destroyed before resolve"))})),i.$on("hide",(function(e){if(!e.defaultPrevented){var i=r(e);e.defaultPrevented||(n=!0,t(i))}}));var o=document.createElement("div");document.body.appendChild(o),i.$mount(o)}))}},r=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(e&&!ne(yv)&&!ee(yv)&&I(i))return n(t,dv(dv({},kv(r)),{},{msgBoxContent:e}),i)},i=function(){function t(e){sv(this,t),X(this,{_vm:e,_root:e.$root}),J(this,{_vm:ct(),_root:ct()})}return cv(t,[{key:"show",value:function(t){if(t&&this._root){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i1?n-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:{},n=dv(dv({},e),{},{okOnly:!0,okDisabled:!1,hideFooter:!1,msgBoxContent:t});return r(this._vm,t,n,(function(){return!0}))}},{key:"msgBoxConfirm",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=dv(dv({},e),{},{okOnly:!1,okDisabled:!1,cancelDisabled:!1,hideFooter:!1});return r(this._vm,t,n,(function(t){var e=t.trigger;return"ok"===e||"cancel"!==e&&null}))}}]),t}();t.mixin({beforeCreate:function(){this[_v]=new i(this)}}),rt(t.prototype,yv)||Q(t.prototype,yv,{get:function(){return this&&this[_v]||te('"'.concat(yv,'" must be accessed from a Vue instance "this" context.'),Tn),this[_v]}})},Ov=Nr({plugins:{plugin:Sv}}),Cv=Nr({components:{BModal:Xg},directives:{VBModal:av},plugins:{BVModalPlugin:Ov}});function Av(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ev={tag:{type:String,default:"ul"},fill:{type:Boolean,default:!1},justified:{type:Boolean,default:!1},align:{type:String},tabs:{type:Boolean,default:!1},pills:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1},small:{type:Boolean,default:!1},cardHeader:{type:Boolean,default:!1}},Tv=function(t){return t="left"===t?"start":"right"===t?"end":t,"justify-content-".concat(t)},Pv=c.extend({name:Bn,functional:!0,props:Ev,render:function(t,e){var n,r=e.props,i=e.data,o=e.children;return t(r.tag,l(i,{staticClass:"nav",class:(n={"nav-tabs":r.tabs,"nav-pills":r.pills&&!r.tabs,"card-header-tabs":!r.vertical&&r.cardHeader&&r.tabs,"card-header-pills":!r.vertical&&r.cardHeader&&r.pills&&!r.tabs,"flex-column":r.vertical,"nav-fill":!r.vertical&&r.fill,"nav-justified":!r.vertical&&r.justified},Av(n,Tv(r.align),!r.vertical&&r.align),Av(n,"small",r.small),n)}),o)}});function Bv(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Lv(t){for(var e=1;e=0&&e<=1}},blur:{type:String,default:"2px"},rounded:{type:[Boolean,String],default:!1},noCenter:{type:Boolean,default:!1},noFade:{type:Boolean,default:!1},spinnerType:{type:String,default:"border"},spinnerVariant:{type:String},spinnerSmall:{type:Boolean,default:!1},overlayTag:{type:String,default:"div"},wrapTag:{type:String,default:"div"},noWrap:{type:Boolean,default:!1},fixed:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:10}},computed:{computedRounded:function(){var t=this.rounded;return!0===t||""===t?"rounded":t?"rounded-".concat(t):""},computedVariant:function(){return this.variant&&!this.bgColor?"bg-".concat(this.variant):""},overlayScope:function(){return{spinnerType:this.spinnerType||null,spinnerVariant:this.spinnerVariant||null,spinnerSmall:this.spinnerSmall}}},methods:{defaultOverlayFn:function(t){var e=t.spinnerType,n=t.spinnerVariant,r=t.spinnerSmall;return this.$createElement(uy,{props:{type:e,variant:n,small:r}})}},render:function(t){var e=this,n=t();if(this.show){var r=this.overlayScope,i=t("div",{staticClass:"position-absolute",class:[this.computedVariant,this.computedRounded],style:fy(fy({},py),{},{opacity:this.opacity,backgroundColor:this.bgColor||null,backdropFilter:this.blur?"blur(".concat(this.blur,")"):null})}),o=t("div",{staticClass:"position-absolute",style:this.noCenter?fy({},py):{top:"50%",left:"50%",transform:"translateX(-50%) translateY(-50%)"}},[this.normalizeSlot("overlay",r)||this.defaultOverlayFn(r)]);n=t(this.overlayTag,{key:"overlay",staticClass:"b-overlay",class:{"position-absolute":!this.noWrap||this.noWrap&&!this.fixed,"position-fixed":this.noWrap&&this.fixed},style:fy(fy({},py),{},{zIndex:this.zIndex||10}),on:{click:function(t){return e.$emit("click",t)}}},[i,o])}return n=t(ho,{props:{noFade:this.noFade,appear:!0},on:{"after-enter":function(){return e.$emit("shown")},"after-leave":function(){return e.$emit("hidden")}}},[n]),this.noWrap?n:t(this.wrapTag,{staticClass:"b-overlay-wrap position-relative",attrs:{"aria-busy":this.show?"true":null}},this.noWrap?[n]:[this.normalizeSlot(),n])}}),my=Nr({components:{BOverlay:$y}}),gy=function(t){return Array.apply(null,{length:t})},vy=gy,yy=3,_y=5,by=function(t,e){return vy(e).map((function(e,n){return{number:t+n,classes:null}}))},wy=function(t){var e=li(t)||1;return e<1?_y:e},xy=function(t,e){var n=li(t)||1;return n>e?e:n<1?1:n},ky=function(t){if(t.keyCode===Ra)return Io(t,{immediatePropagation:!0}),t.currentTarget.click(),!1},Sy={disabled:{type:Boolean,default:!1},value:{type:[Number,String],default:null,validator:function(t){return!(!B(t)&&li(t,0)<1)||(te('"v-model" value must be a number greater than "0"',Hn),!1)}},limit:{type:[Number,String],default:_y,validator:function(t){return!(li(t,0)<1)||(te('Prop "limit" must be a number greater than "0"',Hn),!1)}},align:{type:String,default:"left"},pills:{type:Boolean,default:!1},hideGotoEndButtons:{type:Boolean,default:!1},ariaLabel:{type:String,default:"Pagination"},labelFirstPage:{type:String,default:"Go to first page"},firstText:{type:String,default:"«"},firstNumber:{type:Boolean,default:!1},firstClass:{type:[String,Array,Object],default:null},labelPrevPage:{type:String,default:"Go to previous page"},prevText:{type:String,default:"‹"},prevClass:{type:[String,Array,Object],default:null},labelNextPage:{type:String,default:"Go to next page"},nextText:{type:String,default:"›"},nextClass:{type:[String,Array,Object]},labelLastPage:{type:String,default:"Go to last page"},lastText:{type:String,default:"»"},lastNumber:{type:Boolean,default:!1},lastClass:{type:[String,Array,Object]},labelPage:{type:[String,Function],default:"Go to page"},pageClass:{type:[String,Array,Object]},hideEllipsis:{type:Boolean,default:!1},ellipsisText:{type:String,default:"…"},ellipsisClass:{type:[String,Array,Object]}},Oy={mixins:[Eo],model:{prop:"value",event:"input"},props:Sy,data:function(){var t=li(this.value,0);return t=t>0?t:-1,{currentPage:t,localNumberOfPages:1,localLimit:_y}},computed:{btnSize:function(){return this.size?"pagination-".concat(this.size):""},alignment:function(){var t=this.align;return"center"===t?"justify-content-center":"end"===t||"right"===t?"justify-content-end":"fill"===t?"text-center":""},styleClass:function(){return this.pills?"b-pagination-pills":""},computedCurrentPage:function(){return xy(this.currentPage,this.localNumberOfPages)},paginationParams:function(){var t=this.localLimit,e=this.localNumberOfPages,n=this.computedCurrentPage,r=this.hideEllipsis,i=this.firstNumber,o=this.lastNumber,a=!1,s=!1,l=t,c=1;e<=t?l=e:nyy?(r&&!o||(s=!0,l=t-(i?0:1)),l=Vo(l,t)):e-n+2yy?(r&&!i||(a=!0,l=t-(o?0:1)),c=e-l+1):(t>yy&&(l=t-(r?0:2),a=!(r&&!i),s=!(r&&!o)),c=n-Go(l/2)),c<1?(c=1,a=!1):c>e-l&&(c=e-l+1,s=!1),a&&i&&c<4&&(l+=2,c=1,a=!1);var u=c+l-1;return s&&o&&u>e-3&&(l+=u===e-2?2:3,s=!1),t<=yy&&(i&&1===c?l=Vo(l+1,e,t+1):o&&e===c+l-1&&(c=Uo(c-1,1),l=Vo(e-c+1,e,t+1))),l=Vo(l,e-c+1),{showFirstDots:a,showLastDots:s,numberOfLinks:l,startNumber:c}},pageList:function(){var t=this.paginationParams,e=t.numberOfLinks,n=t.startNumber,r=this.computedCurrentPage,i=by(n,e);if(i.length>3){var o=r-n,a="bv-d-xs-down-none";if(0===o)for(var s=3;so+1;u--)i[u].classes=a}}return i}},watch:{value:function(t,e){t!==e&&(this.currentPage=xy(t,this.localNumberOfPages))},currentPage:function(t,e){t!==e&&this.$emit("input",t>0?t:null)},limit:function(t,e){t!==e&&(this.localLimit=wy(t))}},created:function(){var t=this;this.localLimit=wy(this.limit),this.$nextTick((function(){t.currentPage=t.currentPage>t.localNumberOfPages?t.localNumberOfPages:t.currentPage}))},methods:{handleKeyNav:function(t){var e=t.keyCode,n=t.shiftKey;this.isNav||(e===Ba||e===ja?(Io(t,{propagation:!1}),n?this.focusFirst():this.focusPrev()):e!==Da&&e!==Ca||(Io(t,{propagation:!1}),n?this.focusLast():this.focusNext()))},getButtons:function(){return ji("button.page-link, a.page-link",this.$el).filter((function(t){return Ii(t)}))},focusCurrent:function(){var t=this;this.$nextTick((function(){var e=t.getButtons().find((function(e){return li(Yi(e,"aria-posinset"),0)===t.computedCurrentPage}));oo(e)||t.focusFirst()}))},focusFirst:function(){var t=this;this.$nextTick((function(){var e=t.getButtons().find((function(t){return!Di(t)}));oo(e)}))},focusLast:function(){var t=this;this.$nextTick((function(){var e=t.getButtons().reverse().find((function(t){return!Di(t)}));oo(e)}))},focusPrev:function(){var t=this;this.$nextTick((function(){var e=t.getButtons(),n=e.indexOf(Pi());n>0&&!Di(e[n-1])&&oo(e[n-1])}))},focusNext:function(){var t=this;this.$nextTick((function(){var e=t.getButtons(),n=e.indexOf(Pi());nr,m=n<1?1:n>r?r:n,g={disabled:$,page:m,index:m-1},v=e.normalizeSlot(a,g)||gi(s)||t(),y=t($?"span":d?os:"button",{staticClass:"page-link",class:{"flex-grow-1":!d&&!$&&u},props:$||!d?{}:e.linkProps(n),attrs:{role:d?null:"menuitem",type:d||$?null:"button",tabindex:$||d?null:"-1","aria-label":i,"aria-controls":e.ariaControls||null,"aria-disabled":$?"true":null},on:$?{}:{"!click":function(t){e.onClick(t,n)},keydown:ky}},[v]);return t("li",{key:p,staticClass:"page-item",class:[{disabled:$,"flex-fill":u,"d-flex":u&&!d&&!$},l],attrs:{role:d?null:"presentation","aria-hidden":$?"true":null}},[y])},$=function(n){return t("li",{key:"ellipsis-".concat(n?"last":"first"),staticClass:"page-item",class:["disabled","bv-d-xs-down-none",u?"flex-fill":"",e.ellipsisClass],attrs:{role:"separator"}},[t("span",{staticClass:"page-link"},[e.normalizeSlot("ellipsis-text")||gi(e.ellipsisText)||t()])])},m=function(n,i){var a=f(n.number)&&!h,s=o?null:a||h&&0===i?"0":"-1",l={role:d?null:"menuitemradio",type:d||o?null:"button","aria-disabled":o?"true":null,"aria-controls":e.ariaControls||null,"aria-label":I(e.labelPage)?e.labelPage(n.number):"".concat(e.labelPage," ").concat(n.number),"aria-checked":d?null:a?"true":"false","aria-current":d&&a?"page":null,"aria-posinset":d?null:n.number,"aria-setsize":d?null:r,tabindex:d?null:s},c=gi(e.makePage(n.number)),p={page:n.number,index:n.number-1,content:c,active:a,disabled:o},$=t(o?"span":d?os:"button",{props:o||!d?{}:e.linkProps(n.number),staticClass:"page-link",class:{"flex-grow-1":!d&&!o&&u},attrs:l,on:o?{}:{"!click":function(t){e.onClick(t,n.number)},keydown:ky}},[e.normalizeSlot("page",p)||c]);return t("li",{key:"page-".concat(n.number),staticClass:"page-item",class:[{disabled:o,active:a,"flex-fill":u,"d-flex":u&&!d&&!o},n.classes,e.pageClass],attrs:{role:d?null:"presentation"}},[$])},g=t();this.firstNumber||this.hideGotoEndButtons||(g=p(1,this.labelFirstPage,"first-text",this.firstText,this.firstClass,1,"pagination-goto-first")),n.push(g),n.push(p(c-1,this.labelPrevPage,"prev-text",this.prevText,this.prevClass,1,"pagination-goto-prev")),n.push(this.firstNumber&&1!==i[0]?m({number:1},0):t()),n.push(s?$(!1):t()),this.pageList.forEach((function(t,r){var o=s&&e.firstNumber&&1!==i[0]?1:0;n.push(m(t,r+o))})),n.push(l?$(!0):t()),n.push(this.lastNumber&&i[i.length-1]!==r?m({number:r},-1):t()),n.push(p(c+1,this.labelNextPage,"next-text",this.nextText,this.nextClass,r,"pagination-goto-next"));var v=t();this.lastNumber||this.hideGotoEndButtons||(v=p(r,this.labelLastPage,"last-text",this.lastText,this.lastClass,r,"pagination-goto-last")),n.push(v);var y=t("ul",{ref:"ul",staticClass:"pagination",class:["b-pagination",this.btnSize,this.alignment,this.styleClass],attrs:{role:d?null:"menubar","aria-disabled":o?"true":"false","aria-label":d?null:this.ariaLabel||null},on:d?{}:{keydown:this.handleKeyNav}},n);return d?t("nav",{attrs:{"aria-disabled":o?"true":null,"aria-hidden":o?"true":"false","aria-label":d&&this.ariaLabel||null}},[y]):y}},Cy=20,Ay=0,Ey={size:{type:String,default:function(){return Zr(Hn,"size")}},perPage:{type:[Number,String],default:Cy},totalRows:{type:[Number,String],default:Ay},ariaControls:{type:String}},Ty=function(t){return Uo(li(t)||Cy,1)},Py=function(t){return Uo(li(t)||Ay,0)},By=c.extend({name:Hn,mixins:[Oy],props:Ey,computed:{numberOfPages:function(){var t=Wo(Py(this.totalRows)/Ty(this.perPage));return t<1?1:t},pageSizeNumberOfPages:function(){return{perPage:Ty(this.perPage),totalRows:Py(this.totalRows),numberOfPages:this.numberOfPages}}},watch:{pageSizeNumberOfPages:function(t,e){L(e)||(t.perPage!==e.perPage&&t.totalRows===e.totalRows||t.numberOfPages!==e.numberOfPages&&this.currentPage>t.numberOfPages)&&(this.currentPage=1),this.localNumberOfPages=t.numberOfPages}},created:function(){var t=this;this.localNumberOfPages=this.numberOfPages;var e=li(this.value,0);e>0?this.currentPage=e:this.$nextTick((function(){t.currentPage=0}))},mounted:function(){this.localNumberOfPages=this.numberOfPages},methods:{onClick:function(t,e){var n=this;if(e!==this.currentPage){var r=t.target,i=new rf("page-click",{cancelable:!0,vueTarget:this,target:r});this.$emit(i.type,i,e),i.defaultPrevented||(this.currentPage=e,this.$emit("change",this.currentPage),this.$nextTick((function(){Ii(r)&&n.$el.contains(r)?oo(r):n.focusCurrent()})))}},makePage:function(t){return t},linkProps:function(){return{}}}}),Ly=Nr({components:{BPagination:By}});function Iy(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Dy(t){for(var e=1;e0?this.localNumberOfPages=this.pages.length:this.localNumberOfPages=Fy(this.numberOfPages),this.$nextTick((function(){t.guessCurrentPage()}))},onClick:function(t,e){var n=this;if(e!==this.currentPage){var r=t.currentTarget||t.target,i=new rf("page-click",{cancelable:!0,vueTarget:this,target:r});this.$emit(i.type,i,e),i.defaultPrevented||(Ci((function(){n.currentPage=e,n.$emit("change",e)})),this.$nextTick((function(){ao(r)})))}},getPageInfo:function(t){if(!F(this.pages)||0===this.pages.length||P(this.pages[t-1])){var e="".concat(this.baseUrl).concat(t);return{link:this.useRouter?{path:e}:e,text:gi(t)}}var n=this.pages[t-1];if(N(n)){var r=n.link;return{link:N(r)?r:this.useRouter?{path:r}:r,text:gi(n.text||t)}}return{link:gi(n),text:gi(t)}},makePage:function(t){var e=this.getPageInfo(t);return this.pageGen&&I(this.pageGen)?this.pageGen(t,e):e.text},makeLink:function(t){var e=this.getPageInfo(t);return this.linkGen&&I(this.linkGen)?this.linkGen(t,e):e.link},linkProps:function(t){var e=ca(jy,this),n=this.makeLink(t);return this.useRouter||N(n)?e.to=n:e.href=n,e},resolveLink:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";try{t=document.createElement("a"),t.href=ka({to:e},"a","/","/"),document.body.appendChild(t);var n=t,r=n.pathname,i=n.hash,o=n.search;return document.body.removeChild(t),{path:r,hash:i,query:ya(o)}}catch(a){try{t&&t.parentNode&&t.parentNode.removeChild(t)}catch(s){}return{}}},resolveRoute:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";try{var e=this.$router.resolve(t,this.$route).route;return{path:e.path,hash:e.hash,query:e.query}}catch(n){return{}}},guessCurrentPage:function(){var t=this.computedValue,e=this.$router,n=this.$route;if(!this.noPageDetect&&!t&&(u["j"]||!u["j"]&&e))for(var r=e&&n?{path:n.path,hash:n.hash,query:n.query}:{},i=u["j"]?window.location||document.location:null,o=i?{path:i.pathname,hash:i.hash,query:ya(i.search)}:{},a=1;!t&&a<=this.localNumberOfPages;a++){var s=this.makeLink(a);t=e&&(N(s)||this.useRouter)?Na(this.resolveRoute(s),r)?a:null:u["j"]?Na(this.resolveLink(s),o)?a:null:-1}this.currentPage=t>0?t:0}}}),zy=Nr({components:{BPaginationNav:Ny}}),Hy={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left",TOPLEFT:"top",TOPRIGHT:"top",RIGHTTOP:"right",RIGHTBOTTOM:"right",BOTTOMLEFT:"bottom",BOTTOMRIGHT:"bottom",LEFTTOP:"left",LEFTBOTTOM:"left"},Vy={AUTO:0,TOPLEFT:-1,TOP:0,TOPRIGHT:1,RIGHTTOP:-1,RIGHT:0,RIGHTBOTTOM:1,BOTTOMLEFT:-1,BOTTOM:0,BOTTOMRIGHT:1,LEFTTOP:-1,LEFT:0,LEFTBOTTOM:1},Uy=c.extend({name:Gn,props:{target:{type:[S,O]},placement:{type:String,default:"top"},fallbackPlacement:{type:[String,Array],default:"flip"},offset:{type:Number,default:0},boundary:{type:[String,S],default:"scrollParent"},boundaryPadding:{type:Number,default:5},arrowPadding:{type:Number,default:6}},data:function(){return{noFade:!1,localShow:!0,attachment:this.getAttachment(this.placement)}},computed:{templateType:function(){return"unknown"},popperConfig:function(){var t=this,e=this.placement;return{placement:this.getAttachment(e),modifiers:{offset:{offset:this.getOffset(e)},flip:{behavior:this.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{padding:this.boundaryPadding,boundariesElement:this.boundary}},onCreate:function(e){e.originalPlacement!==e.placement&&t.popperPlacementChange(e)},onUpdate:function(e){t.popperPlacementChange(e)}}}},created:function(){var t=this;this.$_popper=null,this.localShow=!0,this.$on("show",(function(e){t.popperCreate(e)}));var e=function(){t.$nextTick((function(){Ci((function(){t.$destroy()}))}))};this.$parent.$once("hook:destroyed",e),this.$once("hidden",e)},beforeMount:function(){this.attachment=this.getAttachment(this.placement)},mounted:function(){},updated:function(){this.updatePopper()},beforeDestroy:function(){this.destroyPopper()},destroyed:function(){var t=this.$el;t&&t.parentNode&&t.parentNode.removeChild(t)},methods:{hide:function(){this.localShow=!1},getAttachment:function(t){return Hy[String(t).toUpperCase()]||"auto"},getOffset:function(t){if(!this.offset){var e=this.$refs.arrow||Mi(".arrow",this.$el),n=ci(to(e).width,0)+ci(this.arrowPadding,0);switch(Vy[String(t).toUpperCase()]||0){case 1:return"+50%p - ".concat(n,"px");case-1:return"-50%p + ".concat(n,"px");default:return 0}}return this.offset},popperCreate:function(t){this.destroyPopper(),this.$_popper=new Gd["a"](this.target,t,this.popperConfig)},destroyPopper:function(){this.$_popper&&this.$_popper.destroy(),this.$_popper=null},updatePopper:function(){this.$_popper&&this.$_popper.scheduleUpdate()},popperPlacementChange:function(t){this.attachment=this.getAttachment(t.placement)},renderTemplate:function(t){return t("div")}},render:function(t){var e=this;return t(ho,{props:{appear:!0,noFade:this.noFade},on:{beforeEnter:function(t){return e.$emit("show",t)},afterEnter:function(t){return e.$emit("shown",t)},beforeLeave:function(t){return e.$emit("hide",t)},afterLeave:function(t){return e.$emit("hidden",t)}}},[this.localShow?this.renderTemplate(t):t()])}});function qy(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Wy(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},n=!1;nt(o_).forEach((function(r){P(e[r])||t[r]===e[r]||(t[r]=e[r],"title"===r&&(n=!0))})),n&&this.localShow&&this.fixTitle()},createTemplateAndShow:function(){var t=this.getContainer(),e=this.getTemplate(),n=this.$_tip=new e({parent:this,propsData:{id:this.computedId,html:this.html,placement:this.placement,fallbackPlacement:this.fallbackPlacement,target:this.getPlacementTarget(),boundary:this.getBoundary(),offset:li(this.offset,0),arrowPadding:li(this.arrowPadding,0),boundaryPadding:li(this.boundaryPadding,0)}});this.handleTemplateUpdate(),n.$once("show",this.onTemplateShow),n.$once("shown",this.onTemplateShown),n.$once("hide",this.onTemplateHide),n.$once("hidden",this.onTemplateHidden),n.$once("hook:destroyed",this.destroyTemplate),n.$on("focusin",this.handleEvent),n.$on("focusout",this.handleEvent),n.$on("mouseenter",this.handleEvent),n.$on("mouseleave",this.handleEvent),n.$mount(t.appendChild(document.createElement("div")))},hideTemplate:function(){this.$_tip&&this.$_tip.hide(),this.clearActiveTriggers(),this.$_hoverState=""},destroyTemplate:function(){this.setWhileOpenListeners(!1),this.clearHoverTimeout(),this.$_hoverState="",this.clearActiveTriggers(),this.localPlacementTarget=null;try{this.$_tip.$destroy()}catch(t){}this.$_tip=null,this.removeAriaDescribedby(),this.restoreTitle(),this.localShow=!1},getTemplateElement:function(){return this.$_tip?this.$_tip.$el:null},handleTemplateUpdate:function(){var t=this,e=this.$_tip;if(e){var n=["title","content","variant","customClass","noFade","interactive"];n.forEach((function(n){e[n]!==t[n]&&(e[n]=t[n])}))}},show:function(){var t=this.getTarget();if(t&&zi(document.body,t)&&Ii(t)&&!this.dropdownOpen()&&(!L(this.title)&&""!==this.title||!L(this.content)&&""!==this.content)&&!this.$_tip&&!this.localShow){this.localShow=!0;var e=this.buildEvent("show",{cancelable:!0});this.emitEvent(e),e.defaultPrevented?this.destroyTemplate():(this.fixTitle(),this.addAriaDescribedby(),this.createTemplateAndShow())}},hide:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.getTemplateElement();if(e&&this.localShow){var n=this.buildEvent("hide",{cancelable:!t});this.emitEvent(n),n.defaultPrevented||this.hideTemplate()}else this.restoreTitle()},forceHide:function(){var t=this.getTemplateElement();t&&this.localShow&&(this.setWhileOpenListeners(!1),this.clearHoverTimeout(),this.$_hoverState="",this.clearActiveTriggers(),this.$_tip&&(this.$_tip.noFade=!0),this.hide(!0))},enable:function(){this.$_enabled=!0,this.emitEvent(this.buildEvent("enabled"))},disable:function(){this.$_enabled=!1,this.emitEvent(this.buildEvent("disabled"))},onTemplateShow:function(){this.setWhileOpenListeners(!0)},onTemplateShown:function(){var t=this.$_hoverState;this.$_hoverState="","out"===t&&this.leave(null),this.emitEvent(this.buildEvent("shown"))},onTemplateHide:function(){this.setWhileOpenListeners(!1)},onTemplateHidden:function(){this.destroyTemplate(),this.emitEvent(this.buildEvent("hidden"))},getTarget:function(){var t=this.target;return R(t)?t=Hi(t.replace(/^#/,"")):I(t)?t=t():t&&(t=t.$el||t),Ti(t)?t:null},getPlacementTarget:function(){return this.getTarget()},getTargetId:function(){var t=this.getTarget();return t&&t.id?t.id:null},getContainer:function(){var t=!!this.container&&(this.container.$el||this.container),e=document.body,n=this.getTarget();return!1===t?Ni(e_,n)||e:R(t)&&Hi(t.replace(/^#/,""))||e},getBoundary:function(){return this.boundary?this.boundary.$el||this.boundary:"scrollParent"},isInModal:function(){var t=this.getTarget();return t&&Ni(Jy,t)},isDropdown:function(){var t=this.getTarget();return t&&qi(t,n_)},dropdownOpen:function(){var t=this.getTarget();return this.isDropdown()&&t&&Mi(r_,t)},clearHoverTimeout:function(){clearTimeout(this.$_hoverTimeout),this.$_hoverTimeout=null},clearVisibilityInterval:function(){clearInterval(this.$_visibleInterval),this.$_visibleInterval=null},clearActiveTriggers:function(){for(var t in this.activeTrigger)this.activeTrigger[t]=!1},addAriaDescribedby:function(){var t=this.getTarget(),e=Yi(t,"aria-describedby")||"";e=e.split(/\s+/).concat(this.computedId).join(" ").trim(),Wi(t,"aria-describedby",e)},removeAriaDescribedby:function(){var t=this,e=this.getTarget(),n=Yi(e,"aria-describedby")||"";n=n.split(/\s+/).filter((function(e){return e!==t.computedId})).join(" ").trim(),n?Wi(e,"aria-describedby",n):Gi(e,"aria-describedby")},fixTitle:function(){var t=this.getTarget();if(Ki(t,"title")){var e=Yi(t,"title");Wi(t,"title",""),e&&Wi(t,i_,e)}},restoreTitle:function(){var t=this.getTarget();if(Ki(t,i_)){var e=Yi(t,i_);Gi(t,i_),e&&Wi(t,"title",e)}},buildEvent:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new rf(t,Xy({cancelable:!1,target:this.getTarget(),relatedTarget:this.getTemplateElement()||null,componentId:this.computedId,vueTarget:this},e))},emitEvent:function(t){var e=t.type,n=this.$root;n&&n.$emit&&n.$emit("bv::".concat(this.templateType,"::").concat(e),t),this.$emit(e,t)},listen:function(){var t=this,e=this.getTarget();e&&(this.setRootListener(!0),this.computedTriggers.forEach((function(n){"click"===n?Po(e,"click",t.handleEvent,ju):"focus"===n?(Po(e,"focusin",t.handleEvent,ju),Po(e,"focusout",t.handleEvent,ju)):"blur"===n?Po(e,"focusout",t.handleEvent,ju):"hover"===n&&(Po(e,"mouseenter",t.handleEvent,ju),Po(e,"mouseleave",t.handleEvent,ju))}),this))},unListen:function(){var t=this,e=["click","focusin","focusout","mouseenter","mouseleave"],n=this.getTarget();this.setRootListener(!1),e.forEach((function(e){n&&Bo(n,e,t.handleEvent,ju)}),this)},setRootListener:function(t){var e=this.$root;if(e){var n=t?"$on":"$off",r=this.templateType;e[n]("bv::hide::".concat(r),this.doHide),e[n]("bv::show::".concat(r),this.doShow),e[n]("bv::disable::".concat(r),this.doDisable),e[n]("bv::enable::".concat(r),this.doEnable)}},setWhileOpenListeners:function(t){this.setModalListener(t),this.setDropdownListener(t),this.visibleCheck(t),this.setOnTouchStartListener(t)},visibleCheck:function(t){var e=this;this.clearVisibilityInterval();var n=this.getTarget(),r=this.getTemplateElement();t&&(this.$_visibleInterval=setInterval((function(){!r||!e.localShow||n.parentNode&&Ii(n)||e.forceHide()}),100))},setModalListener:function(t){this.isInModal()&&this.$root[t?"$on":"$off"](Qy,this.forceHide)},setOnTouchStartListener:function(t){var e=this;"ontouchstart"in document.documentElement&&ni(document.body.children).forEach((function(n){Lo(t,n,"mouseover",e.$_noop)}))},setDropdownListener:function(t){var e=this.getTarget();e&&this.$root&&this.isDropdown&&e.__vue__&&e.__vue__[t?"$on":"$off"]("shown",this.forceHide)},handleEvent:function(t){var e=this.getTarget();if(e&&!Di(e)&&this.$_enabled&&!this.dropdownOpen()){var n=t.type,r=this.computedTriggers;if("click"===n&&ri(r,"click"))this.click(t);else if("mouseenter"===n&&ri(r,"hover"))this.enter(t);else if("focusin"===n&&ri(r,"focus"))this.enter(t);else if("focusout"===n&&(ri(r,"focus")||ri(r,"blur"))||"mouseleave"===n&&ri(r,"hover")){var i=this.getTemplateElement(),o=t.target,a=t.relatedTarget;if(i&&zi(i,o)&&zi(e,a)||i&&zi(e,o)&&zi(i,a)||i&&zi(i,o)&&zi(i,a)||zi(e,o)&&zi(e,a))return;this.leave(t)}}},doHide:function(t){t&&this.getTargetId()!==t&&this.computedId!==t||this.forceHide()},doShow:function(t){t&&this.getTargetId()!==t&&this.computedId!==t||this.show()},doDisable:function(t){t&&this.getTargetId()!==t&&this.computedId!==t||this.disable()},doEnable:function(t){t&&this.getTargetId()!==t&&this.computedId!==t||this.enable()},click:function(t){this.$_enabled&&!this.dropdownOpen()&&(oo(t.currentTarget),this.activeTrigger.click=!this.activeTrigger.click,this.isWithActiveTrigger?this.enter(null):this.leave(null))},toggle:function(){this.$_enabled&&!this.dropdownOpen()&&(this.localShow?this.leave(null):this.enter(null))},enter:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;e&&(this.activeTrigger["focusin"===e.type?"focus":"hover"]=!0),this.localShow||"in"===this.$_hoverState?this.$_hoverState="in":(this.clearHoverTimeout(),this.$_hoverState="in",this.computedDelay.show?(this.fixTitle(),this.$_hoverTimeout=setTimeout((function(){"in"===t.$_hoverState?t.show():t.localShow||t.restoreTitle()}),this.computedDelay.show)):this.show())},leave:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;e&&(this.activeTrigger["focusout"===e.type?"focus":"hover"]=!1,"focusout"===e.type&&ri(this.computedTriggers,"blur")&&(this.activeTrigger.click=!1,this.activeTrigger.hover=!1)),this.isWithActiveTrigger||(this.clearHoverTimeout(),this.$_hoverState="out",this.computedDelay.hide?this.$_hoverTimeout=setTimeout((function(){"out"===t.$_hoverState&&t.hide()}),this.computedDelay.hide):this.hide())}}}),s_=c.extend({name:yr,props:{title:{type:String},target:{type:[String,S,O,Function,Object],required:!0},triggers:{type:[String,Array],default:"hover focus"},placement:{type:String,default:"top"},fallbackPlacement:{type:[String,Array],default:"flip",validator:function(t){return F(t)&&t.every((function(t){return R(t)}))||ri(["flip","clockwise","counterclockwise"],t)}},variant:{type:String,default:function(){return Zr(yr,"variant")}},customClass:{type:String,default:function(){return Zr(yr,"customClass")}},delay:{type:[Number,Object,String],default:function(){return Zr(yr,"delay")}},boundary:{type:[String,S,Object],default:function(){return Zr(yr,"boundary")}},boundaryPadding:{type:[Number,String],default:function(){return Zr(yr,"boundaryPadding")}},offset:{type:[Number,String],default:0},noFade:{type:Boolean,default:!1},container:{type:[String,S,Object]},show:{type:Boolean,default:!1},noninteractive:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},id:{type:String}},data:function(){return{localShow:this.show,localTitle:"",localContent:""}},computed:{templateData:function(){return{title:this.localTitle,content:this.localContent,target:this.target,triggers:this.triggers,placement:this.placement,fallbackPlacement:this.fallbackPlacement,variant:this.variant,customClass:this.customClass,container:this.container,boundary:this.boundary,boundaryPadding:this.boundaryPadding,delay:this.delay,offset:this.offset,noFade:this.noFade,interactive:!this.noninteractive,disabled:this.disabled,id:this.id}},templateTitleContent:function(){return{title:this.title,content:this.content}}},watch:{show:function(t,e){t!==e&&t!==this.localShow&&this.$_toolpop&&(t?this.$_toolpop.show():this.$_toolpop.forceHide())},disabled:function(t){t?this.doDisable():this.doEnable()},localShow:function(t){this.$emit("update:show",t)},templateData:function(){var t=this;this.$nextTick((function(){t.$_toolpop&&t.$_toolpop.updateData(t.templateData)}))},templateTitleContent:function(){this.$nextTick(this.updateContent)}},created:function(){this.$_toolpop=null},updated:function(){this.$nextTick(this.updateContent)},beforeDestroy:function(){this.$off("open",this.doOpen),this.$off("close",this.doClose),this.$off("disable",this.doDisable),this.$off("enable",this.doEnable),this.$_toolpop&&(this.$_toolpop.$destroy(),this.$_toolpop=null)},mounted:function(){var t=this;this.$nextTick((function(){var e=t.getComponent();t.updateContent();var n=bg(t)||bg(t.$parent),r=t.$_toolpop=new e({parent:t,_scopeId:n||void 0});r.updateData(t.templateData),r.$on("show",t.onShow),r.$on("shown",t.onShown),r.$on("hide",t.onHide),r.$on("hidden",t.onHidden),r.$on("disabled",t.onDisabled),r.$on("enabled",t.onEnabled),t.disabled&&t.doDisable(),t.$on("open",t.doOpen),t.$on("close",t.doClose),t.$on("disable",t.doDisable),t.$on("enable",t.doEnable),t.localShow&&r.show()}))},methods:{getComponent:function(){return a_},updateContent:function(){this.setTitle(this.$scopedSlots.default||this.title)},setTitle:function(t){t=L(t)?"":t,this.localTitle!==t&&(this.localTitle=t)},setContent:function(t){t=L(t)?"":t,this.localContent!==t&&(this.localContent=t)},onShow:function(t){this.$emit("show",t),t&&(this.localShow=!t.defaultPrevented)},onShown:function(t){this.localShow=!0,this.$emit("shown",t)},onHide:function(t){this.$emit("hide",t)},onHidden:function(t){this.$emit("hidden",t),this.localShow=!1},onDisabled:function(t){t&&"disabled"===t.type&&(this.$emit("update:disabled",!0),this.$emit("disabled",t))},onEnabled:function(t){t&&"enabled"===t.type&&(this.$emit("update:disabled",!1),this.$emit("enabled",t))},doOpen:function(){!this.localShow&&this.$_toolpop&&this.$_toolpop.show()},doClose:function(){this.localShow&&this.$_toolpop&&this.$_toolpop.hide()},doDisable:function(){this.$_toolpop&&this.$_toolpop.disable()},doEnable:function(){this.$_toolpop&&this.$_toolpop.enable()}},render:function(t){return t()}}),l_=c.extend({name:Wn,extends:Yy,computed:{templateType:function(){return"popover"}},methods:{renderTemplate:function(t){var e=I(this.title)?this.title({}):this.title,n=I(this.content)?this.content({}):this.content,r=this.html&&!I(this.title)?{innerHTML:this.title}:{},i=this.html&&!I(this.content)?{innerHTML:this.content}:{};return t("div",{staticClass:"popover b-popover",class:this.templateClasses,attrs:this.templateAttributes,on:this.templateListeners},[t("div",{ref:"arrow",staticClass:"arrow"}),L(e)||""===e?t():t("h3",{staticClass:"popover-header",domProps:r},[e]),L(n)||""===n?t():t("div",{staticClass:"popover-body",domProps:i},[n])])}}}),c_=c.extend({name:qn,extends:a_,computed:{templateType:function(){return"popover"}},methods:{getTemplate:function(){return l_}}}),u_=c.extend({name:Un,extends:s_,inheritAttrs:!1,props:{title:{type:String},content:{type:String},triggers:{type:[String,Array],default:"click"},placement:{type:String,default:"right"},variant:{type:String,default:function(){return Zr(Un,"variant")}},customClass:{type:String,default:function(){return Zr(Un,"customClass")}},delay:{type:[Number,Object,String],default:function(){return Zr(Un,"delay")}},boundary:{type:[String,S,Object],default:function(){return Zr(Un,"boundary")}},boundaryPadding:{type:[Number,String],default:function(){return Zr(Un,"boundaryPadding")}}},methods:{getComponent:function(){return c_},updateContent:function(){this.setContent(this.$scopedSlots.default||this.content),this.setTitle(this.$scopedSlots.title||this.title)}}});function d_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f_(t){for(var e=1;e0&&t[p_].updateData(e)}))}var o={title:r.title,content:r.content,triggers:r.trigger,placement:r.placement,fallbackPlacement:r.fallbackPlacement,variant:r.variant,customClass:r.customClass,container:r.container,boundary:r.boundary,delay:r.delay,offset:r.offset,noFade:!r.animation,id:r.id,disabled:r.disabled,html:r.html},a=t[p_].__bv_prev_data__;if(t[p_].__bv_prev_data__=o,!Na(o,a)){var s={target:t};nt(o).forEach((function(e){o[e]!==a[e]&&(s[e]="title"!==e&&"content"!==e||!I(o[e])?o[e]:o[e](t))})),t[p_].updateData(s)}}},E_=function(t){t[p_]&&(t[p_].$destroy(),t[p_]=null),delete t[p_]},T_={bind:function(t,e,n){A_(t,e,n)},componentUpdated:function(t,e,n){n.context.$nextTick((function(){A_(t,e,n)}))},unbind:function(t){E_(t)}},P_=Nr({directives:{VBPopover:T_}}),B_=Nr({components:{BPopover:u_},plugins:{VBPopoverPlugin:P_}}),L_=c.extend({name:Kn,mixins:[Eo],inject:{bvProgress:{default:function(){return{}}}},props:{value:{type:[Number,String],default:0},label:{type:String},labelHtml:{type:String},max:{type:[Number,String],default:null},precision:{type:[Number,String],default:null},variant:{type:String,default:function(){return Zr(Kn,"variant")}},striped:{type:Boolean,default:null},animated:{type:Boolean,default:null},showProgress:{type:Boolean,default:null},showValue:{type:Boolean,default:null}},computed:{progressBarClasses:function(){return[this.computedVariant?"bg-".concat(this.computedVariant):"",this.computedStriped||this.computedAnimated?"progress-bar-striped":"",this.computedAnimated?"progress-bar-animated":""]},progressBarStyles:function(){return{width:this.computedValue/this.computedMax*100+"%"}},computedValue:function(){return ci(this.value,0)},computedMax:function(){var t=ci(this.max)||ci(this.bvProgress.max,0);return t>0?t:100},computedPrecision:function(){return Uo(li(this.precision,li(this.bvProgress.precision,0)),0)},computedProgress:function(){var t=this.computedPrecision,e=Yo(10,t);return ui(100*e*this.computedValue/this.computedMax/e,t)},computedVariant:function(){return this.variant||this.bvProgress.variant},computedStriped:function(){return D(this.striped)?this.striped:this.bvProgress.striped||!1},computedAnimated:function(){return D(this.animated)?this.animated:this.bvProgress.animated||!1},computedShowProgress:function(){return D(this.showProgress)?this.showProgress:this.bvProgress.showProgress||!1},computedShowValue:function(){return D(this.showValue)?this.showValue:this.bvProgress.showValue||!1}},render:function(t){var e,n=this.label,r=this.labelHtml,i=this.computedValue,o=this.computedPrecision,a={};return this.hasNormalizedSlot()?e=this.normalizeSlot():n||r?a=bl(r,n):this.computedShowProgress?e=this.computedProgress:this.computedShowValue&&(e=ui(i,o)),t("div",{staticClass:"progress-bar",class:this.progressBarClasses,style:this.progressBarStyles,attrs:{role:"progressbar","aria-valuemin":"0","aria-valuemax":gi(this.computedMax),"aria-valuenow":ui(i,o)},domProps:a},e)}}),I_=c.extend({name:Yn,mixins:[Eo],provide:function(){return{bvProgress:this}},props:{variant:{type:String,default:function(){return Zr(Yn,"variant")}},striped:{type:Boolean,default:!1},animated:{type:Boolean,default:!1},height:{type:String},precision:{type:[Number,String],default:0},showProgress:{type:Boolean,default:!1},showValue:{type:Boolean,default:!1},max:{type:[Number,String],default:100},value:{type:[Number,String],default:0}},computed:{progressHeight:function(){return{height:this.height||null}}},render:function(t){var e=this.normalizeSlot();return e||(e=t(L_,{props:{value:this.value,max:this.max,precision:this.precision,variant:this.variant,animated:this.animated,striped:this.striped,showProgress:this.showProgress,showValue:this.showValue}})),t("div",{class:["progress"],style:this.progressHeight},[e])}}),D_=Nr({components:{BProgress:I_,BProgressBar:L_}});function R_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function j_(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.noCloseOnRouteChange||t.fullPath===e.fullPath||this.hide()}},created:function(){this.$_returnFocusEl=null},mounted:function(){var t=this;this.listenOnRoot(Ad,this.handleToggle),this.listenOnRoot(Pd,this.handleSync),this.$nextTick((function(){t.emitState(t.localShow)}))},activated:function(){this.emitSync()},beforeDestroy:function(){this.localShow=!1,this.$_returnFocusEl=null},methods:{hide:function(){this.localShow=!1},emitState:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.localShow;this.emitOnRoot(Ed,this.safeId(),t)},emitSync:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.localShow;this.emitOnRoot(Td,this.safeId(),t)},handleToggle:function(t){t&&t===this.safeId()&&(this.localShow=!this.localShow)},handleSync:function(t){var e=this;t&&t===this.safeId()&&this.$nextTick((function(){e.emitSync(e.localShow)}))},onKeydown:function(t){var e=t.keyCode;!this.noCloseOnEsc&&e===Ta&&this.localShow&&this.hide()},onBackdropClick:function(){this.localShow&&!this.noCloseOnBackdrop&&this.hide()},onTopTrapFocus:function(){var t=io(this.$refs.content);this.enforceFocus(t.reverse()[0])},onBottomTrapFocus:function(){var t=io(this.$refs.content);this.enforceFocus(t[0])},onBeforeEnter:function(){this.$_returnFocusEl=Pi(u["j"]?[document.body]:[]),this.isOpen=!0},onAfterEnter:function(t){zi(t,Pi())||this.enforceFocus(t),this.$emit("shown")},onAfterLeave:function(){this.enforceFocus(this.$_returnFocusEl),this.$_returnFocusEl=null,this.isOpen=!1,this.$emit("hidden")},enforceFocus:function(t){this.noEnforceFocus||oo(t)}},render:function(t){var e,n=this.localShow,r=""===this.shadow||this.shadow,i=t(this.tag,{ref:"content",directives:[{name:"show",value:n}],staticClass:F_,class:[(e={shadow:!0===r},M_(e,"shadow-".concat(r),r&&!0!==r),M_(e,"".concat(F_,"-right"),this.right),M_(e,"bg-".concat(this.bgVariant),!!this.bgVariant),M_(e,"text-".concat(this.textVariant),!!this.textVariant),e),this.sidebarClass],attrs:this.computedAttrs,style:{width:this.width}},[q_(t,this)]);i=t("transition",{props:this.transitionProps,on:{beforeEnter:this.onBeforeEnter,afterEnter:this.onAfterEnter,afterLeave:this.onAfterLeave}},[i]);var o=t(po,{props:{noFade:this.noSlide}},[W_(t,this)]),a=t(),s=t();return this.backdrop&&this.localShow&&(a=t("div",{attrs:{tabindex:"0"},on:{focus:this.onTopTrapFocus}}),s=t("div",{attrs:{tabindex:"0"},on:{focus:this.onBottomTrapFocus}})),t("div",{staticClass:"b-sidebar-outer",style:{zIndex:this.zIndex},attrs:{tabindex:"-1"},on:{keydown:this.onKeydown}},[a,i,s,o])}}),Y_=Nr({components:{BSidebar:G_},plugins:{VBTogglePlugin:qd}});function K_(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var X_=c.extend({name:Jn,functional:!0,props:{animation:{type:String,default:function(){return Zr(Jn,"animation")}},type:{type:String,default:"text"},width:{type:String},height:{type:String},size:{type:String},variant:{type:String}},render:function(t,e){var n,r=e.data,i=e.props,o=i.size,a=i.animation,s=i.variant;return t("div",l(r,{staticClass:"b-skeleton",style:{width:o||i.width,height:o||i.height},class:(n={},K_(n,"b-skeleton-".concat(i.type),!0),K_(n,"b-skeleton-animate-".concat(a),a),K_(n,"bg-".concat(s),s),n)}))}});function Z_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function J_(t){for(var e=1;e0&&!this.computedBusy;return[this.tableClass,{"table-striped":this.striped,"table-hover":t,"table-dark":this.dark,"table-bordered":this.bordered,"table-borderless":this.borderless,"table-sm":this.small,border:this.outlined,"b-table-fixed":this.fixed,"b-table-caption-top":this.captionTop,"b-table-no-border-collapse":this.noBorderCollapse},this.tableVariant?"".concat(this.dark?"bg":"table","-").concat(this.tableVariant):"",this.stackedTableClasses,this.selectableTableClasses]},tableAttrs:function(){var t=[(this.bvAttrs||{})["aria-describedby"],this.captionId].filter(Xt).join(" ")||null,e=this.computedItems,n=this.filteredItems,r=this.computedFields,i=this.selectableTableAttrs||{},o=this.isTableSimple?{}:{"aria-busy":this.computedBusy?"true":"false","aria-colcount":gi(r.length),"aria-describedby":t},a=e&&n&&n.length>e.length?gi(n.length):null;return ab(ab(ab({"aria-rowcount":a},this.bvAttrs),{},{id:this.safeId(),role:"table"},o),i)}},render:function(t){var e=[];this.isTableSimple?e.push(this.normalizeSlot()):(e.push(this.renderCaption?this.renderCaption():null),e.push(this.renderColgroup?this.renderColgroup():null),e.push(this.renderThead?this.renderThead():null),e.push(this.renderTbody?this.renderTbody():null),e.push(this.renderTfoot?this.renderTfoot():null));var n=t("table",{key:"b-table",staticClass:"table b-table",class:this.tableClasses,attrs:this.tableAttrs},e.filter(Xt));return this.wrapperClasses.length>0?t("div",{key:"wrap",class:this.wrapperClasses,style:this.wrapperStyles},[n]):n}},cb=c.extend({name:lr,mixins:[bc,Eo,lb,ib],computed:{isTableSimple:function(){return!0}}});function ub(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function db(t){for(var e=1;e0}},columns:{type:Number,default:5,validator:function(t){return t>0}},hideHeader:{type:Boolean,default:!1},showFooter:{type:Boolean,default:!1},tableProps:{type:Object,default:function(){}}},render:function(t,e){var n=e.props,r=n.animation,i=n.columns,o=t("th",[t(X_,{props:{animation:r}})]),a=t("tr",oi(i,o)),s=t("td",[t(X_,{props:{width:"75%",animation:r}})]),l=t("tr",oi(i,s)),c=t("tbody",oi(n.rows,l)),u=n.hideHeader?t():t("thead",[a]),d=n.showFooter?t("tfoot",[a]):t();return t(cb,{props:db({},n.tableProps)},[u,c,d])}}),pb=c.extend({name:nr,functional:!0,props:{loading:{type:Boolean,default:!1}},render:function(t,e){var n=e.data,r=e.props,i=e.slots,o=e.scopedSlots,a=i(),s=o||{},c={};return r.loading?t("div",l(n,{attrs:{role:"alert","aria-live":"polite","aria-busy":!0},staticClass:"b-skeleton-wrapper",key:"loading"}),[Ao("loading",c,s,a)||t()]):Ao(go,c,s,a)||t()}}),$b=Nr({components:{BSkeleton:X_,BSkeletonIcon:tb,BSkeletonImg:nb,BSkeletonTable:hb,BSkeletonWrapper:pb}}),mb=Nr({components:{BSpinner:uy}}),gb={methods:{hasListener:function(t){var e=this.$listeners||{},n=this._events||{};return!P(e[t])||F(n[t])&&n[t].length>0}}};function vb(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function yb(t){for(var e=1;e0?t:null},Pb=function(t){return L(t)||Tb(t)>0},Bb={variant:{type:String,default:null},colspan:{type:[Number,String],default:null,validator:Pb},rowspan:{type:[Number,String],default:null,validator:Pb},stackedHeading:{type:String,default:null},stickyColumn:{type:Boolean,default:!1}},Lb=c.extend({name:ar,mixins:[qa,Wa,Eo],inheritAttrs:!1,inject:{bvTableTr:{default:function(){return{}}}},props:Bb,computed:{tag:function(){return"td"},inTbody:function(){return this.bvTableTr.inTbody},inThead:function(){return this.bvTableTr.inThead},inTfoot:function(){return this.bvTableTr.inTfoot},isDark:function(){return this.bvTableTr.isDark},isStacked:function(){return this.bvTableTr.isStacked},isStackedCell:function(){return this.inTbody&&this.isStacked},isResponsive:function(){return this.bvTableTr.isResponsive},isStickyHeader:function(){return this.bvTableTr.isStickyHeader},hasStickyHeader:function(){return this.bvTableTr.hasStickyHeader},isStickyColumn:function(){return!this.isStacked&&(this.isResponsive||this.hasStickyHeader)&&this.stickyColumn},rowVariant:function(){return this.bvTableTr.variant},headVariant:function(){return this.bvTableTr.headVariant},footVariant:function(){return this.bvTableTr.footVariant},tableVariant:function(){return this.bvTableTr.tableVariant},computedColspan:function(){return Tb(this.colspan)},computedRowspan:function(){return Tb(this.rowspan)},cellClasses:function(){var t=this.variant;return(!t&&this.isStickyHeader&&!this.headVariant||!t&&this.isStickyColumn&&this.inTfoot&&!this.footVariant||!t&&this.isStickyColumn&&this.inThead&&!this.headVariant||!t&&this.isStickyColumn&&this.inTbody)&&(t=this.rowVariant||this.tableVariant||"b-table-default"),[t?"".concat(this.isDark?"bg":"table","-").concat(t):null,this.isStickyColumn?"b-table-sticky-column":null]},cellAttrs:function(){var t=this.inThead||this.inTfoot,e=this.computedColspan,n=this.computedRowspan,r="cell",i=null;return t?(r="columnheader",i=e>0?"colspan":"col"):Bi(this.tag,"th")&&(r="rowheader",i=n>0?"rowgroup":"row"),Ab(Ab({colspan:e,rowspan:n,role:r,scope:i},this.bvAttrs),{},{"data-label":this.isStackedCell&&!L(this.stackedHeading)?gi(this.stackedHeading):null})}},render:function(t){var e=[this.normalizeSlot()];return t(this.tag,{class:this.cellClasses,attrs:this.cellAttrs,on:this.bvListeners},[this.isStackedCell?t("div",[e]):e])}}),Ib="table-busy",Db={props:{busy:{type:Boolean,default:!1}},data:function(){return{localBusy:!1}},computed:{computedBusy:function(){return this.busy||this.localBusy}},watch:{localBusy:function(t,e){t!==e&&this.$emit("update:busy",t)}},methods:{stopIfBusy:function(t){return!!this.computedBusy&&(Io(t),!0)},renderBusy:function(){var t=this.$createElement;return this.computedBusy&&this.hasNormalizedSlot(Ib)?t(kb,{key:"table-busy-slot",staticClass:"b-table-busy-slot",class:[I(this.tbodyTrClass)?this.tbodyTrClass(null,Ib):this.tbodyTrClass],attrs:I(this.tbodyTrAttr)?this.tbodyTrAttr(null,Ib):this.tbodyTrAttr},[t(Lb,{props:{colspan:this.computedFields.length||null}},[this.normalizeSlot(Ib)])]):null}}},Rb={props:{caption:{type:String},captionHtml:{type:String}},computed:{captionId:function(){return this.isStacked?this.safeId("_caption_"):null}},methods:{renderCaption:function(){var t=this.caption,e=this.captionHtml,n=this.$createElement,r=n(),i=this.hasNormalizedSlot("table-caption");return(i||t||e)&&(r=n("caption",{key:"caption",attrs:{id:this.captionId},domProps:i?{}:bl(e,t)},this.normalizeSlot("table-caption"))),r}}},jb={methods:{renderColgroup:function(){var t=this.$createElement,e=this.computedFields,n=t();return this.hasNormalizedSlot("table-colgroup")&&(n=t("colgroup",{key:"colgroup"},[this.normalizeSlot("table-colgroup",{columns:e.length,fields:e})])),n}}},Mb={props:{showEmpty:{type:Boolean,default:!1},emptyText:{type:String,default:"There are no records to show"},emptyHtml:{type:String},emptyFilteredText:{type:String,default:"There are no records matching your request"},emptyFilteredHtml:{type:String}},methods:{renderEmpty:function(){var t=this.$createElement,e=this.computedItems,n=t();if(this.showEmpty&&(!e||0===e.length)&&(!this.computedBusy||!this.hasNormalizedSlot("table-busy"))){var r=this.isFiltered,i=this.emptyText,o=this.emptyHtml,a=this.emptyFilteredText,s=this.emptyFilteredHtml,l=this.computedFields,c=this.tbodyTrClass,u=this.tbodyTrAttr;n=this.normalizeSlot(this.isFiltered?"emptyfiltered":"empty",{emptyFilteredHtml:s,emptyFilteredText:a,emptyHtml:o,emptyText:i,fields:l,items:this.computedItems}),n||(n=t("div",{class:["text-center","my-2"],domProps:r?bl(s,a):bl(o,i)})),n=t(Lb,{props:{colspan:l.length||null}},[t("div",{attrs:{role:"alert","aria-live":"polite"}},[n])]),n=t(kb,{staticClass:"b-table-empty-row",class:[I(c)?this.tbodyTrClass(null,"row-empty"):c],attrs:I(u)?this.tbodyTrAttr(null,"row-empty"):u,key:r?"b-empty-filtered-row":"b-empty-row"},[n])}return n}}},Fb={_rowVariant:!0,_cellVariants:!0,_showDetails:!0},Nb=["a","a *","button","button *","input:not(.disabled):not([disabled])","select:not(.disabled):not([disabled])","textarea:not(.disabled):not([disabled])",'[role="link"]','[role="link"] *','[role="button"]','[role="button"] *',"[tabindex]:not(.disabled):not([disabled])"].join(","),zb=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=nt(r).reduce((function(e,n){var i=r[n],o=i.filterByFormatted,a=I(o)?o:o?i.formatter:null;return I(a)&&(e[n]=a(t[n],n,t)),e}),ot(t)),o=nt(i).filter((function(t){return!Fb[t]&&!(F(e)&&e.length>0&&ri(e,t))&&!(F(n)&&n.length>0&&!ri(n,t))}));return at(i,o)},Hb=zb,Vb=function t(e){return L(e)?"":N(e)&&!H(e)?nt(e).sort().filter((function(t){return!L(t)})).map((function(n){return t(e[n])})).join(" "):gi(e)},Ub=Vb,qb=function(t,e,n,r){return N(t)?Ub(Hb(t,e,n,r)):""},Wb=qb,Gb='Prop "filter-debounce" is deprecated. Use the debounce feature of "" instead.',Yb={props:{filter:{type:[String,RegExp,Object,Array],default:null},filterFunction:{type:Function},filterIgnoredFields:{type:Array},filterIncludedFields:{type:Array},filterDebounce:{type:[Number,String],deprecated:Gb,default:0,validator:function(t){return/^\d+/.test(String(t))}}},data:function(){return{isFiltered:!1,localFilter:this.filterSanitize(this.filter)}},computed:{computedFilterIgnored:function(){return ii(this.filterIgnoredFields||[]).filter(Xt)},computedFilterIncluded:function(){return ii(this.filterIncludedFields||[]).filter(Xt)},computedFilterDebounce:function(){var t=li(this.filterDebounce,0);return t>0&&te(Gb,or),t},localFiltering:function(){return!this.hasProvider||!!this.noProviderFiltering},filteredCheck:function(){return{filteredItems:this.filteredItems,localItems:this.localItems,localFilter:this.localFilter}},localFilterFn:function(){return I(this.filterFunction)?this.filterFunction:null},filteredItems:function(){var t=this.localItems||[],e=this.localFilter,n=this.localFiltering?this.filterFnFactory(this.localFilterFn,e)||this.defaultFilterFnFactory(e):null;return n&&t.length>0?t.filter(n):t}},watch:{computedFilterDebounce:function(t){!t&&this.$_filterTimer&&(this.clearFilterTimer(),this.localFilter=this.filterSanitize(this.filter))},filter:{deep:!0,handler:function(t){var e=this,n=this.computedFilterDebounce;this.clearFilterTimer(),n&&n>0?this.$_filterTimer=setTimeout((function(){e.localFilter=e.filterSanitize(t)}),n):this.localFilter=this.filterSanitize(t)}},filteredCheck:function(t){var e=t.filteredItems,n=t.localFilter,r=!1;n?Na(n,[])||Na(n,{})?r=!1:n&&(r=!0):r=!1,r&&this.$emit("filtered",e,e.length),this.isFiltered=r},isFiltered:function(t,e){!1===t&&!0===e&&this.$emit("filtered",this.localItems,this.localItems.length)}},created:function(){var t=this;this.$_filterTimer=null,this.$nextTick((function(){t.isFiltered=Boolean(t.localFilter)}))},beforeDestroy:function(){this.clearFilterTimer()},methods:{clearFilterTimer:function(){clearTimeout(this.$_filterTimer),this.$_filterTimer=null},filterSanitize:function(t){return!this.localFiltering||this.localFilterFn||R(t)||q(t)?wt(t):""},filterFnFactory:function(t,e){if(!t||!I(t)||!e||Na(e,[])||Na(e,{}))return null;var n=function(n){return t(n,e)};return n},defaultFilterFnFactory:function(t){var e=this;if(!t||!R(t)&&!q(t))return null;var n=t;if(R(n)){var r=mi(t).replace(jt,"\\s+");n=new RegExp(".*".concat(r,".*"),"i")}var i=function(t){return n.lastIndex=0,n.test(Wb(t,e.computedFilterIgnored,e.computedFilterIncluded,e.computedFieldsObj))};return i}}},Kb=function(t,e){var n=null;return R(e)?n={key:t,label:e}:I(e)?n={key:t,formatter:e}:N(e)?(n=ot(e),n.key=n.key||t):!1!==e&&(n={key:t}),n},Xb=function(t,e){var n=[];if(F(t)&&t.filter(Xt).forEach((function(t){if(R(t))n.push({key:t,label:hi(t)});else if(N(t)&&t.key&&R(t.key))n.push(ot(t));else if(N(t)&&1===nt(t).length){var e=nt(t)[0],r=Kb(e,t[e]);r&&n.push(r)}})),0===n.length&&F(e)&&e.length>0){var r=e[0];nt(r).forEach((function(t){Fb[t]||n.push({key:t,label:hi(t)})}))}var i={};return n.filter((function(t){return!i[t.key]&&(i[t.key]=!0,t.label=R(t.label)?t.label:hi(t.key),!0)}))},Zb=Xb,Jb={props:{items:{type:Array,default:function(){return[]}},fields:{type:Array,default:null},primaryKey:{type:String},value:{type:Array,default:function(){return[]}}},data:function(){return{localItems:F(this.items)?this.items.slice():[]}},computed:{computedFields:function(){return Zb(this.fields,this.localItems)},computedFieldsObj:function(){var t=this.$parent;return this.computedFields.reduce((function(e,n){if(e[n.key]=ot(n),n.formatter){var r=n.formatter;R(r)&&I(t[r])?r=t[r]:I(r)||(r=void 0),e[n.key].formatter=r}return e}),{})},computedItems:function(){return(this.paginatedItems||this.sortedItems||this.filteredItems||this.localItems||[]).slice()},context:function(){return{filter:this.localFilter,sortBy:this.localSortBy,sortDesc:this.localSortDesc,perPage:Uo(li(this.perPage,0),0),currentPage:Uo(li(this.currentPage,0),1),apiUrl:this.apiUrl}}},watch:{items:function(t){F(t)?this.localItems=t.slice():L(t)&&(this.localItems=[])},computedItems:function(t,e){Na(t,e)||this.$emit("input",t)},context:function(t,e){Na(t,e)||this.$emit("context-changed",t)}},mounted:function(){this.$emit("input",this.computedItems)},methods:{getFieldFormatter:function(t){var e=this.computedFieldsObj[t];return e?e.formatter:void 0}}},Qb={props:{perPage:{type:[Number,String],default:0},currentPage:{type:[Number,String],default:1}},computed:{localPaging:function(){return!this.hasProvider||!!this.noProviderPaging},paginatedItems:function(){var t=this.sortedItems||this.filteredItems||this.localItems||[],e=Uo(li(this.currentPage,1),1),n=Uo(li(this.perPage,0),0);return this.localPaging&&n&&(t=t.slice((e-1)*n,e*n)),t}}},tw={mixins:[hd],props:{items:{type:[Array,Function],default:function(){return[]}},noProviderPaging:{type:Boolean,default:!1},noProviderSorting:{type:Boolean,default:!1},noProviderFiltering:{type:Boolean,default:!1},apiUrl:{type:String,default:""}},computed:{hasProvider:function(){return I(this.items)},providerTriggerContext:function(){var t={apiUrl:this.apiUrl,filter:null,sortBy:null,sortDesc:null,perPage:null,currentPage:null};return this.noProviderFiltering||(t.filter=this.localFilter),this.noProviderSorting||(t.sortBy=this.localSortBy,t.sortDesc=this.localSortDesc),this.noProviderPaging||(t.perPage=this.perPage,t.currentPage=this.currentPage),ot(t)}},watch:{items:function(t){(this.hasProvider||I(t))&&this.$nextTick(this._providerUpdate)},providerTriggerContext:function(t,e){Na(t,e)||this.$nextTick(this._providerUpdate)}},mounted:function(){var t=this;!this.hasProvider||this.localItems&&0!==this.localItems.length||this._providerUpdate(),this.listenOnRoot("bv::refresh::table",(function(e){e!==t.id&&e!==t||t.refresh()}))},methods:{refresh:function(){this.$off("refreshed",this.refresh),this.computedBusy?this.localBusy&&this.hasProvider&&this.$on("refreshed",this.refresh):(this.clearSelected(),this.hasProvider?this.$nextTick(this._providerUpdate):this.localItems=F(this.items)?this.items.slice():[])},_providerSetLocal:function(t){this.localItems=F(t)?t.slice():[],this.localBusy=!1,this.$emit("refreshed"),this.id&&this.emitOnRoot("bv::table::refreshed",this.id)},_providerUpdate:function(){var t=this;this.hasProvider&&(this.computedBusy?this.$nextTick(this.refresh):(this.localBusy=!0,this.$nextTick((function(){try{var e=t.items(t.context,t._providerSetLocal);W(e)?e.then((function(e){t._providerSetLocal(e)})):F(e)?t._providerSetLocal(e):2!==t.items.length&&(te("Provider function didn't request callback and did not return a promise or data.",or),t.localBusy=!1)}catch(n){te("Provider function error [".concat(n.name,"] ").concat(n.message,"."),or),t.localBusy=!1,t.$off("refreshed",t.refresh)}}))))}}};function ew(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var nw={props:{selectable:{type:Boolean,default:!1},selectMode:{type:String,default:"multi",validator:function(t){return ri(["range","multi","single"],t)}},selectedVariant:{type:String,default:function(){return Zr(or,"selectedVariant")}},noSelectOnClick:{type:Boolean,default:!1}},data:function(){return{selectedRows:[],selectedLastRow:-1}},computed:{isSelectable:function(){return this.selectable&&this.selectMode},hasSelectableRowClick:function(){return this.isSelectable&&!this.noSelectOnClick},supportsSelectableRows:function(){return!0},selectableHasSelection:function(){return this.isSelectable&&this.selectedRows&&this.selectedRows.length>0&&this.selectedRows.some(Xt)},selectableIsMultiSelect:function(){return this.isSelectable&&ri(["range","multi"],this.selectMode)},selectableTableClasses:function(){var t;return t={"b-table-selectable":this.isSelectable},ew(t,"b-table-select-".concat(this.selectMode),this.isSelectable),ew(t,"b-table-selecting",this.selectableHasSelection),ew(t,"b-table-selectable-no-click",this.isSelectable&&!this.hasSelectableRowClick),t},selectableTableAttrs:function(){return{"aria-multiselectable":this.isSelectable?this.selectableIsMultiSelect?"true":"false":null}}},watch:{computedItems:function(t,e){var n=!1;if(this.isSelectable&&this.selectedRows.length>0){n=F(t)&&F(e)&&t.length===e.length;for(var r=0;n&&r=0&&t0&&(this.selectedLastClicked=-1,this.selectedRows=this.selectableIsMultiSelect?vy(t).map((function(){return!0})):[!0])},isRowSelected:function(t){return!(!j(t)||!this.selectedRows[t])},clearSelected:function(){this.selectedLastClicked=-1,this.selectedRows=[]},selectableRowClasses:function(t){if(this.isSelectable&&this.isRowSelected(t)){var e=this.selectedVariant;return ew({"b-table-row-selected":!0},"".concat(this.dark?"bg":"table","-").concat(e),e)}return{}},selectableRowAttrs:function(t){return{"aria-selected":this.isSelectable?this.isRowSelected(t)?"true":"false":null}},setSelectionHandlers:function(t){var e=t&&!this.noSelectOnClick?"$on":"$off";this[e]("row-clicked",this.selectionHandler),this[e]("filtered",this.clearSelected),this[e]("context-changed",this.clearSelected)},selectionHandler:function(t,e,n){if(this.isSelectable&&!this.noSelectOnClick){var r=this.selectMode,i=this.selectedRows.slice(),o=!i[e];if("single"===r)i=[];else if("range"===r)if(this.selectedLastRow>-1&&n.shiftKey){for(var a=Vo(this.selectedLastRow,e);a<=Uo(this.selectedLastRow,e);a++)i[a]=!0;o=!0}else n.ctrlKey||n.metaKey||(i=[],o=!0),this.selectedLastRow=o?e:-1;i[e]=o,this.selectedRows=i}else this.clearSelected()}}},rw=function(t,e){return t.map((function(t,e){return[e,t]})).sort(function(t,e){return this(t[1],e[1])||t[0]-e[0]}.bind(e)).map((function(t){return t[1]}))},iw=rw,ow=function(t,e,n,r,i,o,a,s){var l=Qt(t,n,null),c=Qt(e,n,null);return I(i)&&(l=i(l,n,t),c=i(c,n,e)),l=L(l)?"":l,c=L(c)?"":c,H(l)&&H(c)||j(l)&&j(c)?lc?1:0:s&&""===l&&""!==c?1:s&&""!==l&&""===c?-1:Ub(l).localeCompare(Ub(c),a,o)},aw=ow;function sw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function lw(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:document,e=eo();return!!(e&&""!==e.toString().trim()&&e.containsNode&&Ti(t))&&e.containsNode(t,!0)},_w=yw,bw=c.extend({name:hr,extends:Lb,computed:{tag:function(){return"th"}}});function ww(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function xw(t){for(var e=1;e0&&(f=String((this.currentPage-1)*this.perPage+e+1));var h=this.primaryKey,p=gi(Qt(t,h))||null,$=p||gi(e),m=p?this.safeId("_row_".concat(p)):null,g=this.selectableRowClasses?this.selectableRowClasses(e):{},v=this.selectableRowAttrs?this.selectableRowAttrs(e):{},y=I(this.tbodyTrClass)?this.tbodyTrClass(t,"row"):this.tbodyTrClass,_=I(this.tbodyTrAttr)?this.tbodyTrAttr(t,"row"):this.tbodyTrAttr;if(c.push(r(kb,{key:"__b-table-row-".concat($,"__"),ref:"itemRows",refInFor:!0,class:[y,g,s?"b-table-has-details":""],props:{variant:t._rowVariant||null},attrs:xw(xw({id:m},_),{},{tabindex:l?"0":null,"data-pk":p||null,"aria-details":u,"aria-owns":u,"aria-rowindex":f},v),on:{mouseenter:this.rowHovered,mouseleave:this.rowUnhovered}},d)),s){var b={item:t,index:e,fields:i,toggleDetails:this.toggleDetailsFactory(a,t)};this.supportsSelectableRows&&(b.rowSelected=this.isRowSelected(e),b.selectRow=function(){return n.selectRow(e)},b.unselectRow=function(){return n.unselectRow(e)});var w=r(Lb,{props:{colspan:i.length},class:this.detailsTdClass},[this.normalizeSlot(Sw,b)]);o&&c.push(r("tr",{key:"__b-table-details-stripe__".concat($),staticClass:"d-none",attrs:{"aria-hidden":"true",role:"presentation"}}));var x=I(this.tbodyTrClass)?this.tbodyTrClass(t,Sw):this.tbodyTrClass,k=I(this.tbodyTrAttr)?this.tbodyTrAttr(t,Sw):this.tbodyTrAttr;c.push(r(kb,{key:"__b-table-details__".concat($),staticClass:"b-table-details",class:[x],props:{variant:t._rowVariant||null},attrs:xw(xw({},k),{},{id:u,tabindex:"-1"})},[w]))}else a&&(c.push(r()),o&&c.push(r()));return c}}};function Cw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Aw(t){for(var e=1;e0&&n&&n.length>0?ni(e.children).filter((function(t){return ri(n,t)})):[]},getTbodyTrIndex:function(t){if(!Ti(t))return-1;var e="TR"===t.tagName?t:Ni("tr",t,!0);return e?this.getTbodyTrs().indexOf(e):-1},emitTbodyRowEvent:function(t,e){if(t&&this.hasListener(t)&&e&&e.target){var n=this.getTbodyTrIndex(e.target);if(n>-1){var r=this.computedItems[n];this.$emit(t,r,n,e)}}},tbodyRowEvtStopped:function(t){return this.stopIfBusy&&this.stopIfBusy(t)},onTbodyRowKeydown:function(t){var e=t.target;if(!this.tbodyRowEvtStopped(t)&&"TR"===e.tagName&&Li(e)&&0===e.tabIndex){var n=t.keyCode;if(ri([Ea,Ra],n))Io(t),this.onTBodyRowClicked(t);else if(ri([ja,Ca,Pa,Aa],n)){var r=this.getTbodyTrIndex(e);if(r>-1){Io(t);var i=this.getTbodyTrs(),o=t.shiftKey;n===Pa||o&&n===ja?oo(i[0]):n===Aa||o&&n===Ca?oo(i[i.length-1]):n===ja&&r>0?oo(i[r-1]):n===Ca&&rt.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]&&arguments[0],n=this.$createElement,r=this.computedFields||[];if(this.isStackedAlways||0===r.length)return n();var i=this.isSortable,o=this.isSelectable,a=this.headVariant,s=this.footVariant,l=this.headRowVariant,c=this.footRowVariant,u=i||this.hasListener("head-clicked"),d=o?this.selectAllRows:Fu,f=o?this.clearSelected:Fu,h=function(r,o){var a=r.label,s=r.labelHtml,l=r.variant,c=r.stickyColumn,h=r.key,p=null;r.label.trim()||r.headerTitle||(p=hi(r.key));var $={};u&&($.click=function(n){t.headClicked(n,r,e)},$.keydown=function(n){var i=n.keyCode;i!==Ea&&i!==Ra||t.headClicked(n,r,e)});var m=i?t.sortTheadThAttrs(h,r,e):{},g=i?t.sortTheadThClasses(h,r,e):null,v=i?t.sortTheadThLabel(h,r,e):null,y={class:[t.fieldClasses(r),g],props:{variant:l,stickyColumn:c},style:r.thStyle||{},attrs:Xw(Xw({tabindex:u?"0":null,abbr:r.headerAbbr||null,title:r.headerTitle||null,"aria-colindex":o+1,"aria-label":p},t.getThValues(null,h,r.thAttr,e?"foot":"head",{})),m),on:$,key:h},_=["head(".concat(h,")"),"head(".concat(h.toLowerCase(),")"),"head()"];e&&(_=["foot(".concat(h,")"),"foot(".concat(h.toLowerCase(),")"),"foot()"].concat(Vw(_)));var b={label:a,column:h,field:r,isFoot:e,selectAllRows:d,clearSelected:f},w=t.normalizeSlot(_,b)||n("div",{domProps:bl(s,a)}),x=v?n("span",{staticClass:"sr-only"}," (".concat(v,")")):null;return n(bw,y,[w,x].filter(Xt))},p=r.map(h).filter(Xt),$=[];if(e)$.push(n(kb,{class:this.tfootTrClass,props:{variant:L(c)?l:c}},p));else{var m={columns:r.length,fields:r,selectAllRows:d,clearSelected:f};$.push(this.normalizeSlot("thead-top",m)||n()),$.push(n(kb,{class:this.theadTrClass,props:{variant:l}},p))}return n(e?Rw:Hw,{key:e?"bv-tfoot":"bv-thead",class:(e?this.tfootClass:this.theadClass)||null,props:e?{footVariant:s||a||null}:{headVariant:a||null}},$)}}},Qw="top-row",tx={methods:{renderTopRow:function(){var t=this.$createElement;if(!this.hasNormalizedSlot(Qw)||!0===this.stacked||""===this.stacked)return t();var e=this.computedFields;return t(kb,{key:"b-top-row",staticClass:"b-table-top-row",class:[I(this.tbodyTrClass)?this.tbodyTrClass(null,"row-top"):this.tbodyTrClass],attrs:I(this.tbodyTrAttr)?this.tbodyTrAttr(null,"row-top"):this.tbodyTrAttr},[this.normalizeSlot(Qw,{columns:e.length,fields:e})])}}},ex=c.extend({name:or,mixins:[qa,gb,bc,Eo,Jb,lb,ib,Jw,jw,Pw,ib,Yb,uw,Qb,Rb,jb,nw,Mb,tx,Ob,Db,tw]}),nx=c.extend({name:sr,mixins:[gb,bc,Eo,Jb,lb,ib,Jw,jw,Pw,Rb,jb]}),rx=Nr({components:{BTableLite:nx}}),ix=Nr({components:{BTableSimple:cb,BTbody:$w,BThead:Hw,BTfoot:Rw,BTr:kb,BTd:Lb,BTh:bw}}),ox=Nr({components:{BTable:ex},plugins:{TableLitePlugin:rx,TableSimplePlugin:ix}});function ax(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function sx(t){for(var e=1;e0){var n=t.map((function(t){return"#".concat(t.safeId())})).join(", ");e=ji(n,this.$el).map((function(t){return t.id})).filter(Xt)}return iw(t,(function(t,n){return e.indexOf(t.safeId())-e.indexOf(n.safeId())}))},updateTabs:function(){var t=this.getTabs(),e=t.indexOf(t.slice().reverse().find((function(t){return t.localActive&&!t.disabled})));if(e<0){var n=this.currentTab;n>=t.length?e=t.indexOf(t.slice().reverse().find(ux)):t[n]&&!t[n].disabled&&(e=n)}e<0&&(e=t.indexOf(t.find(ux))),t.forEach((function(t){t.localActive=!1})),t[e]&&(t[e].localActive=!0),this.tabs=t,this.currentTab=e},getButtonForTab:function(t){return(this.$refs.buttons||[]).find((function(e){return e.tab===t}))},updateButton:function(t){var e=this.getButtonForTab(t);e&&e.$forceUpdate&&e.$forceUpdate()},activateTab:function(t){var e=!1;if(t){var n=this.tabs.indexOf(t);if(!t.disabled&&n>-1&&n!==this.currentTab){var r=new rf("activate-tab",{cancelable:!0,vueTarget:this,componentId:this.safeId()});this.$emit(r.type,n,this.currentTab,r),r.defaultPrevented||(e=!0,this.currentTab=n)}}return e||this.currentTab===this.value||this.$emit("input",this.currentTab),e},deactivateTab:function(t){return!!t&&this.activateTab(this.tabs.filter((function(e){return e!==t})).find(ux))},focusButton:function(t){var e=this;this.$nextTick((function(){oo(e.getButtonForTab(t))}))},emitTabClick:function(t,e){V(e)&&t&&t.$emit&&!t.disabled&&t.$emit("click",e)},clickTab:function(t,e){this.activateTab(t),this.emitTabClick(t,e)},firstTab:function(t){var e=this.tabs.find(ux);this.activateTab(e)&&t&&(this.focusButton(e),this.emitTabClick(e,t))},previousTab:function(t){var e=Uo(this.currentTab,0),n=this.tabs.slice(0,e).reverse().find(ux);this.activateTab(n)&&t&&(this.focusButton(n),this.emitTabClick(n,t))},nextTab:function(t){var e=Uo(this.currentTab,-1),n=this.tabs.slice(e+1).find(ux);this.activateTab(n)&&t&&(this.focusButton(n),this.emitTabClick(n,t))},lastTab:function(t){var e=this.tabs.slice().reverse().find(ux);this.activateTab(e)&&t&&(this.focusButton(e),this.emitTabClick(e,t))}},render:function(t){var e=this,n=this.tabs,r=this.noKeyNav,i=this.firstTab,o=this.previousTab,a=this.nextTab,s=this.lastTab,l=n.find((function(t){return t.localActive&&!t.disabled})),c=n.find((function(t){return!t.disabled})),u=n.map((function(u,d){var f=null;return r||(f=-1,(l===u||!l&&c===u)&&(f=null)),t(dx,{key:u._uid||d,ref:"buttons",refInFor:!0,props:{tab:u,tabs:n,id:u.controlledBy||(u.safeId?u.safeId("_BV_tab_button_"):null),controls:u.safeId?u.safeId():null,tabIndex:f,setSize:n.length,posInSet:d+1,noKeyNav:r},on:{click:function(t){e.clickTab(u,t)},first:i,prev:o,next:a,last:s}})})),d=t(Pv,{ref:"nav",class:this.localNavClass,attrs:{role:"tablist",id:this.safeId("_BV_tab_controls_")},props:{fill:this.fill,justified:this.justified,align:this.align,tabs:!this.noNavStyle&&!this.pills,pills:!this.noNavStyle&&this.pills,vertical:this.vertical,small:this.small,cardHeader:this.card&&!this.vertical}},[this.normalizeSlot("tabs-start")||t(),u,this.normalizeSlot("tabs-end")||t()]);d=t("div",{key:"bv-tabs-nav",class:[{"card-header":this.card&&!this.vertical&&!this.end,"card-footer":this.card&&!this.vertical&&this.end,"col-auto":this.vertical},this.navWrapperClass]},[d]);var f=t();n&&0!==n.length||(f=t("div",{key:"bv-empty-tab",class:["tab-pane","active",{"card-body":this.card}]},this.normalizeSlot("empty")));var h=t("div",{ref:"tabsContainer",key:"bv-tabs-container",staticClass:"tab-content",class:[{col:this.vertical},this.contentClass],attrs:{id:this.safeId("_BV_tab_container_")}},ii(this.normalizeSlot(),f));return t(this.tag,{staticClass:"tabs",class:{row:this.vertical,"no-gutters":this.vertical&&this.card},attrs:{id:this.safeId()}},[this.end?h:t(),[d],this.end?t():h])}}),hx=c.extend({name:ir,mixins:[bc,Eo],inject:{bvTabs:{default:function(){return{}}}},props:{active:{type:Boolean,default:!1},tag:{type:String,default:"div"},buttonId:{type:String},title:{type:String,default:""},titleItemClass:{type:[String,Array,Object]},titleLinkClass:{type:[String,Array,Object]},titleLinkAttributes:{type:Object},disabled:{type:Boolean,default:!1},noBody:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1}},data:function(){return{localActive:this.active&&!this.disabled,show:!1}},computed:{tabClasses:function(){return[{active:this.localActive,disabled:this.disabled,"card-body":this.bvTabs.card&&!this.noBody},this.localActive?this.bvTabs.activeTabClass:null]},controlledBy:function(){return this.buttonId||this.safeId("__BV_tab_button__")},computedNoFade:function(){return!this.bvTabs.fade},computedLazy:function(){return this.bvTabs.lazy||this.lazy},_isTab:function(){return!0}},watch:{localActive:function(t){this.$emit("update:active",t)},active:function(t,e){t!==e&&(t?this.activate():this.deactivate()||this.$emit("update:active",this.localActive))},disabled:function(t,e){if(t!==e){var n=this.bvTabs.firstTab;t&&this.localActive&&n&&(this.localActive=!1,n())}}},mounted:function(){this.registerTab(),this.show=this.localActive},updated:function(){var t=this.bvTabs.updateButton;t&&this.hasNormalizedSlot(Oo)&&t(this)},destroyed:function(){this.unregisterTab()},methods:{registerTab:function(){var t=this.bvTabs.registerTab;t&&t(this)},unregisterTab:function(){var t=this.bvTabs.unregisterTab;t&&t(this)},activate:function(){var t=this.bvTabs.activateTab;return!(!t||this.disabled)&&t(this)},deactivate:function(){var t=this.bvTabs.deactivateTab;return!(!t||!this.localActive)&&t(this)}},render:function(t){var e=this.localActive,n=t(this.tag,{ref:"panel",staticClass:"tab-pane",class:this.tabClasses,directives:[{name:"show",rawName:"v-show",value:e,expression:"localActive"}],attrs:{role:"tabpanel",id:this.safeId(),"aria-hidden":e?"false":"true","aria-labelledby":this.controlledBy||null}},[e||!this.computedLazy?this.normalizeSlot():t()]);return t(po,{props:{mode:"out-in",noFade:this.computedNoFade}},[n])}}),px=Nr({components:{BTabs:fx,BTab:hx}}),$x=Nr({components:{BTime:nm}}),mx=n("2b88"),gx={name:{type:String,required:!0},ariaLive:{type:String,default:function(){return Zr(gr,"ariaLive")}},ariaAtomic:{type:String,default:function(){return Zr(gr,"ariaAtomic")}},role:{type:String,default:function(){return Zr(gr,"role")}}},vx=c.extend({data:function(){return{name:"b-toaster"}},methods:{onAfterEnter:function(t){var e=this;Ci((function(){Ui(t,"".concat(e.name,"-enter-to"))}))}},render:function(t){return t("transition-group",{props:{tag:"div",name:this.name},on:{afterEnter:this.onAfterEnter}},this.$slots.default)}}),yx=c.extend({name:gr,props:gx,data:function(){return{doRender:!1,dead:!1,staticName:this.name}},beforeMount:function(){var t=this;this.staticName=this.name,mx["Wormhole"].hasTarget(this.staticName)?(te('A "" with name "'.concat(this.name,'" already exists in the document.'),gr),this.dead=!0):(this.doRender=!0,this.$once("hook:beforeDestroy",(function(){t.$root.$emit("bv::toaster::destroyed",t.staticName)})))},destroyed:function(){this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)},render:function(t){var e=t("div",{class:["d-none",{"b-dead-toaster":this.dead}]});if(this.doRender){var n=t(mx["PortalTarget"],{staticClass:"b-toaster-slot",props:{name:this.staticName,multiple:!0,tag:"div",slim:!1,transition:vx}});e=t("div",{staticClass:"b-toaster",class:[this.staticName],attrs:{id:this.staticName,role:this.role||null,"aria-live":this.ariaLive,"aria-atomic":this.ariaAtomic}},[n])}return e}});function _x(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function bx(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return new rf(t,bx(bx({cancelable:!1,target:this.$el||null,relatedTarget:null},e),{},{vueTarget:this,componentId:this.safeId()}))},emitEvent:function(t){var e=t.type;this.emitOnRoot("bv::toast:".concat(e),t),this.$emit(e,t)},ensureToaster:function(){if(!this.static&&!mx["Wormhole"].hasTarget(this.computedToaster)){var t=document.createElement("div");document.body.appendChild(t);var e=new yx({parent:this.$root,propsData:{name:this.computedToaster}});e.$mount(t)}},startDismissTimer:function(){this.clearDismissTimer(),this.noAutoHide||(this.timer=setTimeout(this.hide,this.resumeDismiss||this.computedDuration),this.dismissStarted=Date.now(),this.resumeDismiss=0)},clearDismissTimer:function(){clearTimeout(this.timer),this.timer=null},setHoverHandler:function(t){var e=this.$refs["b-toast"];Lo(t,e,"mouseenter",this.onPause,ju),Lo(t,e,"mouseleave",this.onUnPause,ju)},onPause:function(){if(!this.noAutoHide&&!this.noHoverPause&&this.timer&&!this.resumeDismiss){var t=Date.now()-this.dismissStarted;t>0&&(this.clearDismissTimer(),this.resumeDismiss=Uo(this.computedDuration-t,xx))}},onUnPause:function(){this.noAutoHide||this.noHoverPause||!this.resumeDismiss?this.resumeDismiss=this.dismissStarted=0:this.startDismissTimer()},onLinkClick:function(){var t=this;this.$nextTick((function(){Ci((function(){t.hide()}))}))},onBeforeEnter:function(){this.isTransitioning=!0},onAfterEnter:function(){this.isTransitioning=!1;var t=this.buildEvent("shown");this.emitEvent(t),this.startDismissTimer(),this.setHoverHandler(!0)},onBeforeLeave:function(){this.isTransitioning=!0},onAfterLeave:function(){this.isTransitioning=!1,this.order=0,this.resumeDismiss=this.dismissStarted=0;var t=this.buildEvent("hidden");this.emitEvent(t),this.doRender=!1},makeToast:function(t){var e=this,n=[],r=this.normalizeSlot("toast-title",this.slotScope);r?n.push(r):this.title&&n.push(t("strong",{staticClass:"mr-2"},this.title)),this.noCloseButton||n.push(t(jo,{staticClass:"ml-auto mb-1",on:{click:function(){e.hide()}}}));var i=t();n.length>0&&(i=t("header",{staticClass:"toast-header",class:this.headerClass},n));var o=_a(this),a=t(o?os:"div",{staticClass:"toast-body",class:this.bodyClass,props:o?ca(kx,this):{},on:o?{click:this.onLinkClick}:{}},[this.normalizeSlot(go,this.slotScope)||t()]),s=t("div",{key:"toast-".concat(this._uid),ref:"toast",staticClass:"toast",class:this.toastClass,attrs:this.computedAttrs},[i,a]);return s}},render:function(t){if(!this.doRender||!this.isMounted)return t();var e="b-toast-".concat(this._uid),n=this.static?{}:this.scopedStyleAttrs;return t(mx["Portal"],{props:{name:e,to:this.computedToaster,order:this.order,slim:!0,disabled:this.static}},[t("div",{key:e,ref:"b-toast",staticClass:"b-toast",class:this.bToastClasses,attrs:bx(bx({},n),{},{id:this.safeId("_toast_outer"),role:this.isHiding?null:this.isStatus?"status":"alert","aria-live":this.isHiding?null:this.isStatus?"polite":"assertive","aria-atomic":this.isHiding?null:"true"})},[t(po,{props:{noFade:this.noFade},on:this.transitionHandlers},[this.localShow?this.makeToast(t):t()])])])}});function Cx(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ax(t,e){for(var n=0;n