1
0
Fork 0
mirror of https://github.com/Luzifer/wiki.git synced 2024-11-08 23:00:12 +00:00
wiki/frontend/app.js

56 lines
2.3 MiB
JavaScript
Raw Normal View History

!function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=86)}([function(t,e,r){"use strict";(function(t){r.d(e,"i",(function(){return n})),r.d(e,"b",(function(){return o})),r.d(e,"g",(function(){return i})),r.d(e,"d",(function(){return l})),r.d(e,"j",(function(){return s})),r.d(e,"k",(function(){return d})),r.d(e,"e",(function(){return u})),r.d(e,"h",(function(){return p})),r.d(e,"f",(function(){return h})),r.d(e,"c",(function(){return f})),r.d(e,"a",(function(){return m}));var n="undefined"!=typeof window,o="undefined"!=typeof document,a="undefined"!=typeof navigator,i="undefined"!=typeof Promise,l="undefined"!=typeof MutationObserver||"undefined"!=typeof WebKitMutationObserver||"undefined"!=typeof MozMutationObserver,s=n&&o&&a,c=s?window.navigator.userAgent.toLowerCase():"",d=c.indexOf("jsdom")>0,u=(/msie|trident/.test(c),function(){var t=!1;if(s)try{var e={get passive(){t=!0}};window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(e){t=!1}return t}()),p=s&&("ontouchstart"in document.documentElement||navigator.maxTouchPoints>0),h=s&&Boolean(window.PointerEvent||window.MSPointerEvent),f=s&&"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype,m=function(){return function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=void 0!==t&&t?Object({NODE_ENV:"production"})||!1:{};return e?n[e]||r:n}("BOOTSTRAP_VUE_NO_WARN")}}).call(this,r(36))},function(t,e,r){"use strict";var n=Object.prototype.hasOwnProperty;function o(t,e){return n.call(t,e)}function a(t){return!(t>=55296&&t<=57343)&&(!(t>=64976&&t<=65007)&&(65535!=(65535&t)&&65534!=(65535&t)&&(!(t>=0&&t<=8)&&(11!==t&&(!(t>=14&&t<=31)&&(!(t>=127&&t<=159)&&!(t>1114111)))))))}function i(t){if(t>65535){var e=55296+((t-=65536)>>10),r=56320+(1023&t);return String.fromCharCode(e,r)}return String.fromCharCode(t)}var l=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,s=new RegExp(l.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),c=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,d=r(72);var u=/[&<>"]/,p=/[&<>"]/g,h={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function f(t){return h[t]}var m=/[.?*+^$[\]\\(){}|-]/g;var b=r(45);e.lib={},e.lib.mdurl=r(73),e.lib.ucmicro=r(153),e.assign=function(t){var e=Array.prototype.slice.call(arguments,1);return e.forEach((function(e){if(e){if("object"!=typeof e)throw new TypeError(e+"must be object");Object.keys(e).forEach((function(r){t[r]=e[r]}))}})),t},e.isString=function(t){return"[object String]"===function(t){return Object.prototype.toString.call(t)}(t)},e.has=o,e.unescapeMd=function(t){return t.indexOf("\\")<0?t:t.replace(l,"$1")},e.unescapeAll=function(t){return t.indexOf("\\")<0&&t.indexOf("&")<0?t:t.replace(s,(function(t,e,r){return e||function(t,e){var r=0;return o(d,e)?d[e]:35===e.charCodeAt(0)&&c.test(e)&&a(r="x"===e[1].toLowerCase()?parseInt(e.slice(2),16):parseInt(e.slice(1),10))?i(r):t}(t,r)}))},e.isValidEntityCode=a,e.fromCodePoint=i,e.escapeHtml=function(t){return u.test(t)?t.replace(p,f):t},e.arrayReplaceAt=function(t,e,r){return[].concat(t.slice(0,e),r,t.slice(e+1))},e.isSpace=function(t){switch(t){case 9:case 32:return!0}return!1},e.isWhiteSpace=function(t){if(t>=8192&&t<=8
/*!
* portal-vue © Thorsten Lünborg, 2019
*
* Version: 2.1.7
*
* LICENCE: MIT
*
* https://github.com/linusborg/portal-vue
*
*/Object.defineProperty(e,"__esModule",{value:!0});var n,o=(n=r(27))&&"object"==typeof n&&"default"in n?n.default:n;function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var l="undefined"!=typeof window;function s(t,e){return e.reduce((function(e,r){return t.hasOwnProperty(r)&&(e[r]=t[r]),e}),{})}var c={},d={},u={},p=new(o.extend({data:function(){return{transports:c,targets:d,sources:u,trackInstances:l}},methods:{open:function(t){if(l){var e=t.to,r=t.from,n=t.passengers,i=t.order,s=void 0===i?1/0:i;if(e&&r&&n){var c,d={to:e,from:r,passengers:(c=n,Array.isArray(c)||"object"===a(c)?Object.freeze(c):c),order:s};-1===Object.keys(this.transports).indexOf(e)&&o.set(this.transports,e,[]);var u,p=this.$_getTransportIndex(d),h=this.transports[e].slice(0);-1===p?h.push(d):h[p]=d,this.transports[e]=(u=function(t,e){return t.order-e.order},h.map((function(t,e){return[e,t]})).sort((function(t,e){return u(t[1],e[1])||t[0]-e[0]})).map((function(t){return t[1]})))}}},close:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=t.to,n=t.from;if(r&&(n||!1!==e)&&this.transports[r])if(e)this.transports[r]=[];else{var o=this.$_getTransportIndex(t);if(o>=0){var a=this.transports[r].slice(0);a.splice(o,1),this.transports[r]=a}}},registerTarget:function(t,e,r){l&&(this.trackInstances&&!r&&this.targets[t]&&console.warn("[portal-vue]: Target ".concat(t," already exists")),this.$set(this.targets,t,Object.freeze([e])))},unregisterTarget:function(t){this.$delete(this.targets,t)},registerSource:function(t,e,r){l&&(this.trackInstances&&!r&&this.sources[t]&&console.warn("[portal-vue]: source ".concat(t," already exists")),this.$set(this.sources,t,Object.freeze([e])))},unregisterSource:function(t){this.$delete(this.sources,t)},hasTarget:function(t){return!(!this.targets[t]||!this.targets[t][0])},hasSource:function(t){return!(!this.sources[t]||!this.sources[t][0])},hasContentFor:function(t){return!!this.transports[t]&&!!this.transports[t].length},$_getTransportIndex:function(t){var e=t.to,r=t.from;for(var n in this.transports[e])if(this.transports[e][n].from===r)return+n;return-1}}}))(c),h=1,f=o.extend({name:"portal",props:{disabled:{type:Boolean},name:{type:String,default:function(){return String(h++)}},order:{type:Number,default:0},slim:{type:Boolean},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"DIV"},to:{type:String,default:function(){return String(Math.round(1e7*Math.random()))}}},created:function(){var t=this;this.$nextTick((function(){p.registerSource(t.name,t)}))},mounted:function(){this.disabled||this.sendUpdate()},updated:function(){this.disabled?this.clear():this.sendUpdate()},beforeDestroy:function(){p.unregisterSource(this.name),this.clear()},watch:{to:function(t,e){e&&e!==t&&this.clear(e),this.sendUpdate()}},methods:{clear:function(t){var e={from:this.name,to:t||this.to};p.close(e)},normalizeSlots:function(){return this.$scopedSlots.default?[this.$scopedSlots.default]:this.$slots.default},normalizeOwnChildren:function(t){return"function"==typeof t?t(this.slotProps):t},sendUpdate:function(){var t=this.normalizeSlots();if(t){var e={from:this.name,to:this.to,passengers:i(t),order:this.order};p.open(e)}else this.clear()}},render:function(t){var e=this.$slots.default||this.$scopedSlots.default||[],r=this.tag;return e&&this.disabled?e.length<=1&&this.slim?this.normalizeOwnChildren(e)[0]:t(r,[this.normalizeOwnChildren(e)]):this.slim?t():t(r,{class:{"v-portal":!0},style:{display:"none"},key:"v-portal-placeholder"})}}),m=o.extend({name:"portalTarget",props:{multiple:{type:Boolean,default:
2019-08-04 22:42:37 +00:00
/**!
* @fileOverview Kickass library to create and place poppers near their reference elements.
* @version 1.16.1
2019-08-04 22:42:37 +00:00
* @license
* Copyright (c) 2016 Federico Zivolo and contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
var r="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,n=function(){for(var t=["Edge","Trident","Firefox"],e=0;e<t.length;e+=1)if(r&&navigator.userAgent.indexOf(t[e])>=0)return 1;return 0}();var o=r&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then((function(){e=!1,t()})))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout((function(){e=!1,t()}),n))}};function a(t){return t&&"[object Function]"==={}.toString.call(t)}function i(t,e){if(1!==t.nodeType)return[];var r=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?r[e]:r}function l(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function s(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=i(t),r=e.overflow,n=e.overflowX,o=e.overflowY;return/(auto|scroll|overlay)/.test(r+o+n)?t:s(l(t))}function c(t){return t&&t.referenceNode?t.referenceNode:t}var d=r&&!(!window.MSInputMethodContext||!document.documentMode),u=r&&/MSIE 10/.test(navigator.userAgent);function p(t){return 11===t?d:10===t?u:d||u}function h(t){if(!t)return document.documentElement;for(var e=p(10)?document.body:null,r=t.offsetParent||null;r===e&&t.nextElementSibling;)r=(t=t.nextElementSibling).offsetParent;var n=r&&r.nodeName;return n&&"BODY"!==n&&"HTML"!==n?-1!==["TH","TD","TABLE"].indexOf(r.nodeName)&&"static"===i(r,"position")?h(r):r:t?t.ownerDocument.documentElement:document.documentElement}function f(t){return null!==t.parentNode?f(t.parentNode):t}function m(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var r=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,n=r?t:e,o=r?e:t,a=document.createRange();a.setStart(n,0),a.setEnd(o,0);var i,l,s=a.commonAncestorContainer;if(t!==s&&e!==s||n.contains(o))return"BODY"===(l=(i=s).nodeName)||"HTML"!==l&&h(i.firstElementChild)!==i?h(s):s;var c=f(t);return c.host?m(c.host,e):m(t,f(e).host)}function b(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",r="top"===e?"scrollTop":"scrollLeft",n=t.nodeName;if("BODY"===n||"HTML"===n){var o=t.ownerDocument.documentElement,a=t.ownerDocument.scrollingElement||o;return a[r]}return t[r]}function g(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=b(e,"top"),o=b(e,"left"),a=r?-1:1;return t.top+=n*a,t.bottom+=n*a,t.left+=o*a,t.right+=o*a,t}function v(t,e){var r="x"===e?"Left":"Top",n="Left"===r?"Right":"Bottom";return parseFloat(t["border"+r+"Width"])+parseFloat(t["border"+n+"Width"])}function y(t,e,r,n){return Math.max(e["offset"+t],e["scroll"+t],r["client"+t],r["offset"+t],r["scroll"+t],p(10)?parseInt(r["offset"+t])+parseInt(n["margin"+("Height"===t?"Top":"Left")])+parseInt(n["margin"+("Height"===t?"Bottom":"Right")]):0)}function x(t){var e=t.body,r=t.documentElement,n=p(10)&&getComputedStyle(r);return{height:y("Height",e,r,n),width:y("Width",e,r,n)}}var w=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},k=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),z=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},B=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};function C(t){return B({},t,{right:t.left+t.width,bottom:t.top+t.height})}function M(t){var e={};try{if(p(10)){e=t.getBoundingClientRect();var r=b(t,"top"),n=b(t,"left");e.top+=r,e.left+=n,e.bottom+=r,e.right+=n}else e=t.getBoundingClientRect()}catch(t){}var o={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},a="HTML"===t.nodeName?x(t.ownerDocument):{},l=a.width||t.clientWidth||o.width,s=a.height||t.clientHeight||o.height,c=t.offsetWidth-l,d=t.offsetHeight-s;if(c||d){var u=i(t);c-=v(u,"x"),d-
2019-08-04 22:42:37 +00:00
/*!
* Vue.js v2.6.11
2019-08-04 22:42:37 +00:00
* (c) 2014-2019 Evan You
* Released under the MIT License.
*/
var n=Object.freeze({});function o(t){return null==t}function a(t){return null!=t}function i(t){return!0===t}function l(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t||"boolean"==typeof t}function s(t){return null!==t&&"object"==typeof t}var c=Object.prototype.toString;function d(t){return"[object Object]"===c.call(t)}function u(t){return"[object RegExp]"===c.call(t)}function p(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function h(t){return a(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function f(t){return null==t?"":Array.isArray(t)||d(t)&&t.toString===c?JSON.stringify(t,null,2):String(t)}function m(t){var e=parseFloat(t);return isNaN(e)?t:e}function b(t,e){for(var r=Object.create(null),n=t.split(","),o=0;o<n.length;o++)r[n[o]]=!0;return e?function(t){return r[t.toLowerCase()]}:function(t){return r[t]}}b("slot,component",!0);var g=b("key,ref,slot,slot-scope,is");function v(t,e){if(t.length){var r=t.indexOf(e);if(r>-1)return t.splice(r,1)}}var y=Object.prototype.hasOwnProperty;function x(t,e){return y.call(t,e)}function w(t){var e=Object.create(null);return function(r){return e[r]||(e[r]=t(r))}}var k=/-(\w)/g,z=w((function(t){return t.replace(k,(function(t,e){return e?e.toUpperCase():""}))})),B=w((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),C=/\B([A-Z])/g,M=w((function(t){return t.replace(C,"-$1").toLowerCase()}));var S=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function r(r){var n=arguments.length;return n?n>1?t.apply(e,arguments):t.call(e,r):t.call(e)}return r._length=t.length,r};function A(t,e){e=e||0;for(var r=t.length-e,n=new Array(r);r--;)n[r]=t[r+e];return n}function I(t,e){for(var r in e)t[r]=e[r];return t}function _(t){for(var e={},r=0;r<t.length;r++)t[r]&&I(e,t[r]);return e}function H(t,e,r){}var T=function(t,e,r){return!1},O=function(t){return t};function L(t,e){if(t===e)return!0;var r=s(t),n=s(e);if(!r||!n)return!r&&!n&&String(t)===String(e);try{var o=Array.isArray(t),a=Array.isArray(e);if(o&&a)return t.length===e.length&&t.every((function(t,r){return L(t,e[r])}));if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(o||a)return!1;var i=Object.keys(t),l=Object.keys(e);return i.length===l.length&&i.every((function(r){return L(t[r],e[r])}))}catch(t){return!1}}function V(t,e){for(var r=0;r<t.length;r++)if(L(t[r],e))return r;return-1}function F(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}var D=["component","directive","filter"],P=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],E={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:T,isReservedAttr:T,isUnknownElement:T,getTagNamespace:H,parsePlatformTagName:O,mustUseProp:T,async:!0,_lifecycleHooks:P},j=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function R(t,e,r,n){Object.defineProperty(t,e,{value:r,enumerable:!!n,writable:!0,configurable:!0})}var N=new RegExp("[^"+j.source+".$_\\d]");var $,q="__proto__"in{},U="undefined"!=typeof window,W="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,G=W&&WXEnvironment.platform.toLowerCase(),Y=U&&window.navigator.userAgent.toLowerCase(),X=Y&&/msie|trident/.test(Y),K=Y&&Y.indexOf("msie 9.0")>0,Z=Y&&Y.indexOf("edge/")>0,J=(Y&&Y.indexOf("android"),Y&&/iphone|ipad|ipod|ios/.test(Y)||"ios"===G),Q=(Y&&/chrome\/\d+/.test(Y),Y&&/phantomjs/.test(Y),Y&&Y.match(/firefox\/(\d+)/)),tt={}.watch,et=!1;if(U)try{var rt={};Object.defineProperty(rt,"passive",{get:function(){et=!0}}),window.addEventListener("test-passive",null,rt)}catch(t){}var nt=function(){return void 0===$&&($=!U&&!W&&void 0!==t&&(t.process&&"server"===t.process.env.VUE_ENV)),$},ot=U&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function at(t){return"function"==t
2019-08-04 22:42:37 +00:00
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
2019-08-04 22:42:37 +00:00
* @license MIT
*/
var n=r(215),o=r(216),a=r(217);function i(){return s.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(t,e){if(i()<e)throw new RangeError("Invalid typed array length");return s.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=s.prototype:(null===t&&(t=new s(e)),t.length=e),t}function s(t,e,r){if(!(s.TYPED_ARRAY_SUPPORT||this instanceof s))return new s(t,e,r);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return u(this,t)}return c(this,t,e,r)}function c(t,e,r,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n);s.TYPED_ARRAY_SUPPORT?(t=e).__proto__=s.prototype:t=p(t,e);return t}(t,e,r,n):"string"==typeof e?function(t,e,r){"string"==typeof r&&""!==r||(r="utf8");if(!s.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|f(e,r),o=(t=l(t,n)).write(e,r);o!==n&&(t=t.slice(0,o));return t}(t,e,r):function(t,e){if(s.isBuffer(e)){var r=0|h(e.length);return 0===(t=l(t,r)).length||e.copy(t,0,0,r),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(n=e.length)!=n?l(t,0):p(t,e);if("Buffer"===e.type&&a(e.data))return p(t,e.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function d(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function u(t,e){if(d(e),t=l(t,e<0?0:0|h(e)),!s.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function p(t,e){var r=e.length<0?0:0|h(e.length);t=l(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function h(t){if(t>=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|t}function f(t,e){if(s.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return j(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return R(t).length;default:if(n)return j(t).length;e=(""+e).toLowerCase(),n=!0}}function m(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return I(this,e,r);case"utf8":case"utf-8":return M(this,e,r);case"ascii":return S(this,e,r);case"latin1":case"binary":return A(this,e,r);case"base64":return C(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function b(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function g(t,e,r,n,o){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof e&&(e=s.from(e,n)),s.isBuffer(e))return 0===e.length?-1:v(t,e,r,n,o);if("number"==typeof e)return e&=255,s.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):v(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function v(t,e,r,n,o){var a,i=1,l=t.length,s=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"
2019-08-04 22:42:37 +00:00
/*!
* BootstrapVue Icons, generated from Bootstrap Icons 1.0.0-alpha5
2019-08-04 22:42:37 +00:00
*
* @link https://icons.getbootstrap.com/
2019-08-04 22:42:37 +00:00
* @license MIT
* https://github.com/twbs/icons/blob/master/LICENSE.md
*/function Hk(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Tk(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Hk(Object(r),!0).forEach((function(e){Ok(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Hk(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ok(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Lk=/^BIcon/,Vk=n.extend({name:"BIcon",functional:!0,props:Tk(Tk({icon:{type:String,default:null}},bn),{},{stacked:{type:Boolean,default:!1}}),render:function(t,e){var r=e.data,n=e.props,o=e.parent,a=Xt(Qt(n.icon||"")).replace(Lk,""),i="BIcon".concat(a),l=((o||{}).$options||{}).components;return t(a&&l?l[i]||Bn:a?i:Bn,$e(r,{props:Tk(Tk({},n),{},{icon:null})}))}});function Fk(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Dk(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Fk(Object(r),!0).forEach((function(e){Pk(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Fk(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Pk(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Ek=/^[0-9]*\.?[0-9]+$/,jk={sm:"1.5em",md:"2.5em",lg:"3.5em"},Rk=B(Zr,["active","event","routerTag"]),Nk=Dk(Dk({src:{type:String},text:{type:String},icon:{type:String},alt:{type:String,default:"avatar"},variant:{type:String,default:function(){return Ft("BAvatar","variant")}},size:{type:[Number,String],default:null},square:{type:Boolean,default:!1},rounded:{type:[Boolean,String],default:!1},button:{type:Boolean,default:!1},buttonType:{type:String,default:"button"},badge:{type:[Boolean,String],default:!1},badgeVariant:{type:String,default:function(){return Ft("BAvatar","badgeVariant")}},badgeTop:{type:Boolean,default:!1},badgeLeft:{type:Boolean,default:!1},badgeOffset:{type:String,default:"0px"}},Rk),{},{ariaLabel:{type:String}}),$k=function(t){return t=Q(t)||""===t?"md":rt(t)&&Ek.test(t)?Nt(t,0):t,nt(t)?"".concat(t,"px"):jk[t]||t},qk=n.extend({name:"BAvatar",mixins:[Qe],inject:{bvAvatarGroup:{default:null}},props:Nk,data:function(){return{localSrc:this.src||null}},computed:{computedSize:function(){return $k(this.bvAvatarGroup?this.bvAvatarGroup.size:this.size)},computedVariant:function(){var t=this.bvAvatarGroup;return t&&t.variant?t.variant:this.variant},computedRounded:function(){var t=this.bvAvatarGroup,e=!(!t||!t.square)||this.square,r=t&&t.rounded?t.rounded:this.rounded;return e?"0":""===r||(r||"circle")},fontStyle:function(){var t=this.computedSize;return(t=t?"calc(".concat(t," * ").concat(.4,")"):null)?{fontSize:t}:{}},marginStyle:function(){var t=this.bvAvatarGroup,e=t?t.overlapScale:0,r=this.computedSize,n=r&&e?"calc(".concat(r," * -").concat(e,")"):null;return n?{marginLeft:n,marginRight:n}:{}},badgeStyle:function(){var t=this.computedSize,e=this.badgeTop,r=this.badgeLeft,n=this.badgeOffset||"0px";return{fontSize:t?"calc(".concat(t," * ").concat(.4*.7," )"):null,top:e?n:null,bottom:e?null:n,left:r?n:null,right:r?null:n}}},watch:{src:function(t,e){t!==e&&(this.localSrc=t||null)}},methods:{onImgError:function(t){this.localSrc=null,this.$emit("img-error",t)},onClick:function(t){this.$emit("click",t)}},render:function(t){var e,r=this.computedVariant,n=this.disabled,o=this.computedRounded,a=this.icon,i=this.localSrc,l=this.text,s=this.fontStyle,c=this.marginStyle,d=this.computedSize,u=this.button,p=this.buttonType,h=this.badge,f=this.badgeVariant,m=this.badgeStyle,b=!u&&Lr(