UNPKG

buefy

Version:

Lightweight UI components for Vue.js (v3) based on Bulma

2 lines 358 kB
/*! Buefy v3.0.2 | MIT License | github.com/buefy/buefy */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Buefy={},e.Vue)}(this,(function(e,t){"use strict";var i=Object.defineProperty,o=Math.pow,a=(e,t,o)=>((e,t,o)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o)(e,t+"",o);const s=["red","green","blue","alpha"],n={transparent:"#00000000",black:"#000000",silver:"#c0c0c0",gray:"#808080",white:"#ffffff",maroon:"#800000",red:"#ff0000",purple:"#800080",fuchsia:"#ff00ff",green:"#008000",lime:"#00ff00",olive:"#808000",yellow:"#ffff00",navy:"#000080",blue:"#0000ff",teal:"#008080",aqua:"#00ffff",orange:"#ffa500",aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",blanchedalmond:"#ffebcd",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",oldlace:"#fdf5e6",olivedrab:"#6b8e23",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",whitesmoke:"#f5f5f5",yellowgreen:"#9acd32",rebeccapurple:"#663399"};class l extends Error{constructor(){super("ColorTypeError: type must be hex(a), rgb(a) or hsl(a)")}}class r{constructor(...e){if(a(this,"$channels"),e.length>0)return r.parse(...e);this.$channels=new Uint8Array(s.length)}get red(){return this.$channels[0]}set red(e){Number.isNaN(e/1)||(this.$channels[0]=Math.min(255,Math.max(0,e)))}get green(){return this.$channels[1]}set green(e){Number.isNaN(e/1)||(this.$channels[1]=Math.min(255,Math.max(0,e)))}get blue(){return this.$channels[2]}set blue(e){Number.isNaN(e/1)||(this.$channels[2]=Math.min(255,Math.max(0,e)))}get alpha(){return this.$channels[3]}set alpha(e){Number.isNaN(e/1)||(this.$channels[3]=Math.min(255,Math.max(0,e)))}get hue(){return this.getHue()}set hue(e){Number.isNaN(e/1)||this.setHue(e)}get saturation(){return this.getSaturation()}set saturation(e){Number.isNaN(e/1)||this.setSaturation(e)}get lightness(){return this.getLightness()}set lightness(e){Number.isNaN(e/1)||this.setLightness(e)}getHue(){const[e,t,i]=Array.from(this.$channels).map((e=>e/255)),[o,a]=[Math.min(e,t,i),Math.max(e,t,i)],s=a-o;let n=0;if(0===s)return n;for(n=e===a?(t-i)/s%6:t===a?(i-e)/s+2:(e-t)/s+4,n*=60;n!==-1/0&&n<0;)n+=360;return Math.round(n%360)}setHue(e){const t=r.fromHSL(e,this.saturation,this.lightness,this.alpha/255);for(let e=0;e<this.$channels.length;e++)this.$channels[e]=Number(t.$channels[e])}getSaturation(){const[e,t,i]=Array.from(this.$channels).map((e=>e/255)),[o,a]=[Math.min(e,t,i),Math.max(e,t,i)],s=a-o;return 0!==s?Math.round(s/(1-Math.abs(2*this.lightness-1))*100)/100:0}setSaturation(e){const t=r.fromHSL(this.hue,e,this.lightness,this.alpha/255);s.forEach(((e,i)=>this.$channels[i]=t.$channels[i]))}getLightness(){const[e,t,i]=Array.from(this.$channels).map((e=>e/255)),[o,a]=[Math.min(e,t,i),Math.max(e,t,i)];return Math.round((a+o)/2*100)/100}setLightness(e){const t=r.fromHSL(this.hue,this.lightness,e,this.alpha/255);s.forEach(((e,i)=>this.$channels[i]=t.$channels[i]))}clone(){const e=new r;return s.forEach(((t,i)=>e.$channels[i]=this.$channels[i])),e}toString(e="hex"){switch(String(e).toLowerCase()){case"hex":return"#"+s.slice(0,3).map((e=>this[e].toString(16).padStart(2,"0"))).join("");case"hexa":return"#"+s.map((e=>this[e].toString(16).padStart(2,"0"))).join("");case"rgb":return`rgb(${this.red}, ${this.green}, ${this.blue})`;case"rgba":return`rgba(${this.red}, ${this.green}, ${this.blue}, ${Math.round(this.alpha/2.55)/100})`;case"hsl":return`hsl(${Math.round(this.hue)}deg, ${Math.round(100*this.saturation)}%, ${Math.round(100*this.lightness)}%)`;case"hsla":return`hsla(${Math.round(this.hue)}deg, ${Math.round(100*this.saturation)}%, ${Math.round(100*this.lightness)}%, ${Math.round(this.alpha/2.55)/100})`;default:throw new l}}get[Symbol.toStringTag](){return this.toString("hex")}static parse(...e){if("object"==typeof e[0])return r.parseObject(e[0]);if(e.every((e=>!Number.isNaN(e/1)))){const t=new r;if(e.length>3)t.red=e[0],t.green=e[1],t.blue=e[2],e[3]&&(t.alpha=e[3]);else if(1===e.length){const t=Number(e[0]);return r.parseIndex(t,t>o(2,24)?3:4)}}else if("string"==typeof e[0]){let t=null;if("string"==typeof n[e[0].toLowerCase()])return r.parseHex(n[e[0].toLowerCase()]);if(null!==(t=e[0].match(/^(#|&h|0x)?(([a-f0-9]{3,4}){1,2})$/i)))return r.parseHex(t[2]);if(null!==(t=e[0].match(/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)(\s*,\s*(\d*\.?\d+))?\s*\)$/i))){const e=[t[1],t[2],t[3],void 0!==t[5]?t[5]:1];return r.fromRGB(...e.map((e=>Number(e))))}if(e[0].match(/^(h(sl|wb)a?|lab|color|cmyk)\(/i))throw new Error("Color expression not implemented yet")}throw new Error("Invalid color expression")}static parseObject(e){const t=new r;return null===e||"object"!=typeof e?t:r.isColor(e)?e.clone():(s.forEach((i=>{Number.isNaN(e[i])||(t[i]=e[i])})),t)}static parseHex(e){if("string"!=typeof e)throw new Error("Hex expression must be a string");if(3!==(e=e.trim().replace(/^(0x|&h|#)/i,"")).length&&4!==e.length||(e=e.split("").map((e=>e.repeat(2))).join("")),6!==e.length&&8!==e.length)throw new Error("Incorrect Hex expression length");const t=e.split(/(..)/).filter((e=>e)).map((e=>Number.parseInt(e,16)));return"number"==typeof t[3]&&(t[3]/=255),r.fromRGB(...t)}static parseIndex(e,t=3){const i=new r;for(let o=0;o<4;o++)i[s[o]]=e>>8*(t-o)&&255;return i}static fromRGB(e,t,i,o=1){if([e,t,i,o].some((e=>Number.isNaN(e/1))))throw new Error("Invalid arguments");o*=255;const a=new r;return[e,t,i,o].forEach(((e,t)=>{a[s[t]]=e})),a}static fromHSL(e,t,i,o=1){if([e,t,i,o].some((e=>Number.isNaN(e))))throw new Error("Invalid arguments");for(;e<0&&e!==-1/0;)e+=360;e%=360,t=Math.max(0,Math.min(1,t)),i=Math.max(0,Math.min(1,i)),o=Math.max(0,Math.min(1,o));const a=(1-Math.abs(2*i-1))*t,s=a*(1-Math.abs(e/60%2-1)),n=i-a/2,[l,c,d]=e<60?[a,s,0]:e<120?[s,a,0]:e<180?[0,a,s]:e<240?[0,s,a]:e<300?[s,0,a]:[a,0,s];return r.fromRGB(255*(l+n),255*(c+n),255*(d+n),o)}static isColor(e){return e instanceof r}}const c=["is-top-right","is-top","is-top-left","is-bottom-right","is-bottom","is-bottom-left"];let d={defaultContainerElement:null,defaultIconPack:"mdi",defaultIconComponent:null,defaultIconPrev:"chevron-left",defaultIconNext:"chevron-right",defaultLocale:void 0,defaultDialogConfirmText:null,defaultDialogCancelText:null,defaultSnackbarDuration:3500,defaultSnackbarPosition:null,defaultToastDuration:2e3,defaultToastPosition:null,defaultNotificationDuration:2e3,defaultNotificationPosition:null,defaultTooltipType:"is-primary",defaultTooltipDelay:null,defaultTooltipCloseDelay:null,defaultSidebarDelay:null,defaultInputAutocomplete:"on",defaultDateFormatter:null,defaultDateParser:null,defaultDateCreator:null,defaultTimeCreator:null,defaultDayNames:null,defaultMonthNames:null,defaultFirstDayOfWeek:null,defaultUnselectableDaysOfWeek:null,defaultTimeFormatter:null,defaultTimeParser:null,defaultDatetimeFormatter:null,defaultDatetimeParser:null,defaultDatetimeCreator:null,defaultClockpickerHoursLabel:null,defaultClockpickerMinutesLabel:null,defaultColorFormatter:null,defaultColorParser:null,defaultModalCanCancel:["escape","x","outside","button"],defaultModalScroll:null,defaultDatepickerMobileNative:!0,defaultTimepickerMobileNative:!0,defaultTimepickerMobileModal:!0,defaultNoticeQueue:!0,defaultInputHasCounter:!0,defaultCompatFallthrough:!0,defaultTaginputHasCounter:!0,defaultUseHtml5Validation:!0,defaultDropdownMobileModal:!0,defaultFieldLabelPosition:null,defaultDatepickerYearsRange:[-100,10],defaultDatepickerNearbyMonthDays:!0,defaultDatepickerNearbySelectableMonthDays:!1,defaultDatepickerShowWeekNumber:!1,defaultDatepickerWeekNumberClickable:!1,defaultDatepickerMobileModal:!0,defaultTrapFocus:!0,defaultAutoFocus:!0,defaultButtonRounded:!1,defaultSwitchRounded:!0,defaultCarouselInterval:3500,defaultTabsExpanded:!1,defaultTabsAnimated:!0,defaultTabsType:null,defaultStatusIcon:!0,defaultProgrammaticPromise:!1,defaultLinkTags:["a","button","input","router-link","nuxt-link","n-link","RouterLink","NuxtLink","NLink"],defaultImageWebpFallback:null,defaultImageLazy:!0,defaultImageResponsive:!0,defaultImageRatio:null,defaultImageSrcsetFormatter:null,defaultBreadcrumbTag:"a",defaultBreadcrumbAlign:"is-left",defaultBreadcrumbSeparator:"",defaultBreadcrumbSize:"is-medium",customIconPacks:null};const u=e=>{d=e};var h=Object.defineProperty,p=Object.getOwnPropertySymbols,m=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable,f=(e,t,i)=>t in e?h(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,b=(e,t)=>{for(var i in t||(t={}))m.call(t,i)&&f(e,i,t[i]);if(p)for(var i of p(t))g.call(t,i)&&f(e,i,t[i]);return e};const v=Math.sign||function(e){return e<0?-1:e>0?1:0};function y(e,t){return(e&t)===t}function k(e,t){return(e%t+t)%t}function w(e,t,i){return Math.max(t,Math.min(i,e))}function C(e,t){return t.split(".").reduce(((e,t)=>e?e[t]:null),e)}function B(e,t,i){if(!e)return-1;if(!i||"function"!=typeof i)return e.indexOf(t);for(let o=0;o<e.length;o++)if(i(e[o],t))return o;return-1}const S=e=>"object"==typeof e&&!Array.isArray(e),D=(e,t,i=!1)=>{if(i||!Object.assign){const o=i=>S(t[i])&&null!==e&&Object.prototype.hasOwnProperty.call(e,i)&&S(e[i]),a=Object.getOwnPropertyNames(t).map((a=>({[a]:o(a)?D(e[a],t[a]||{},i):t[a]}))).reduce(((e,t)=>b(b({},e),t)),{});return b(b({},e),a)}return Object.assign(e,t)},V=D,x={Android:function(){return"undefined"!=typeof window&&window.navigator.userAgent.match(/Android/i)},BlackBerry:function(){return"undefined"!=typeof window&&window.navigator.userAgent.match(/BlackBerry/i)},iOS:function(){return"undefined"!=typeof window&&(window.navigator.userAgent.match(/iPhone|iPad|iPod/i)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1)},Opera:function(){return"undefined"!=typeof window&&window.navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return"undefined"!=typeof window&&window.navigator.userAgent.match(/IEMobile/i)},any:function(){return x.Android()||x.BlackBerry()||x.iOS()||x.Opera()||x.Windows()}};function N(e){void 0!==e.remove?e.remove():void 0!==e.parentNode&&null!==e.parentNode&&e.parentNode.removeChild(e)}function M(e){const t=document.createElement("div");t.style.position="absolute",t.style.left="0px",t.style.top="0px",t.style.width="100%";const i=document.createElement("div");return t.appendChild(i),i.appendChild(e),document.body.appendChild(t),t}function E(e){return e?e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):e}function $(e){return e?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function T(e,t){return JSON.parse(JSON.stringify(e)).sort((i=t,(e,t)=>i.map((i=>{const{field:o,order:a,customSort:s}=i;if("function"==typeof s)return s(e,t,"desc"!==a);{const i=C(e,o),s=C(t,o),n=i>s?1:i<s?-1:0;return"desc"===a?-n:n}})).reduce(((e,t)=>e||t),0)));var i}function P(e){return void 0===e?null:isNaN(+e)?`${e}`:e+"px"}function O(e,t="long"){const i=[];for(let e=0;e<12;e++)i.push(new Date(2e3,e,15));const o=new Intl.DateTimeFormat(e,{month:t});return i.map((e=>o.format(e)))}function F(e,t="narrow"){const i=[];for(let e=0;e<7;e++){const t=new Date(2e3,0,e+1);i[t.getDay()]=t}const o=new Intl.DateTimeFormat(e,{weekday:t});return i.map((e=>o.format(e)))}function A(e,t){const i=t.match(e),o=e.toString().match(/<(.+?)>/g);if(null==o)throw new RangeError("pattern must contain at least one group");return o.map((e=>e.match(/<(.+)>/)[1])).reduce(((e,t,o)=>(i&&i.length>o?e[t]=i[o+1]:e[t]=null,e)),{})}function I(){return new Promise((e=>{const t=new Image;t.onerror=()=>e(!1),t.onload=()=>e(1===t.width),t.src="data:image/webp;base64,UklGRiQAAABXRUJQVlA4IBgAAAAwAQCdASoBAAEAAwA0JaQAA3AA/vuUAAA="})).catch((()=>!1))}function z(e){return null!=e.$root&&"shadowRoot"in e.$root.$options}const L=e=>void 0!==e,R=e=>null==e;function H(e){return e.type===t.Fragment}function j(e){return e.type!==t.Comment&&e.type!==t.Text&&e.type!==t.Static}function U(e){if(!e)return;const{component:t}=e;return t?t.exposed&&t.exposeProxy||t.proxy:void 0}function _(e,t){const{_context:i}=e,{_context:o}=t;o.config=i.config,o.mixins=i.mixins,o.components=i.components,o.directives=i.directives,o.provides=i.provides,o.optionsCache=i.optionsCache,o.propsCache=i.propsCache,o.emitsCache=i.emitsCache,"__VUE_I18N_SYMBOL__"in e&&(t.__VUE_I18N_SYMBOL__=e.__VUE_I18N_SYMBOL__)}const K=(e,t)=>{const{type:i,target:o}=t;let a=0,s=0;if(null!=o&&o!==e.target){const t=e.target.getBoundingClientRect(),i=o.getBoundingClientRect();a=i.left-t.left,s=i.top-t.top}const n=e.touches[0]||e.changedTouches[0];return new DragEvent(i,{dataTransfer:new DataTransfer,bubbles:!0,screenX:n.screenX,screenY:n.screenY,clientX:n.clientX+a,clientY:n.clientY+s,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey})};var W={getOptions:()=>d,setOptions(e){u(V(d,e,!0))}},Y=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,X=Object.prototype.propertyIsEnumerable,G=t.defineComponent({inheritAttrs:!1,props:{compatFallthrough:{type:Boolean,default:()=>d.defaultCompatFallthrough}},computed:{rootAttrs(){return this.compatFallthrough?{class:this.$attrs.class,style:this.$attrs.style,id:this.$attrs.id}:{}},fallthroughAttrs(){if(this.compatFallthrough){const e=this.$attrs,{style:t,class:i,id:o}=e;return((e,t)=>{var i={};for(var o in e)q.call(e,o)&&t.indexOf(o)<0&&(i[o]=e[o]);if(null!=e&&Y)for(var o of Y(e))t.indexOf(o)<0&&X.call(e,o)&&(i[o]=e[o]);return i})(e,["style","class","id"])}return this.$attrs}}}),Q=t.defineComponent({name:"BFieldBody",inject:{parent:{from:"BField",default:null}},props:{message:{type:[String,Array]},type:{type:[String,Object]}},render(){let e=!0,i="function"==typeof this.$slots.default?this.$slots.default():this.$slots.default;return null!=i&&1===i.length&&i[0].type===t.Fragment&&(i=i[0].children),t.h("div",{class:"field-body"},{default:()=>null!=i&&i.map((i=>{if(i.type===t.Comment||i.type===t.Text)return i;let o;e&&(o=this.message,e=!1);const a=this.parent;return t.h(a?a.$.type:t.resolveComponent("b-field"),{type:this.type,message:o},(()=>i))}))})}});const J=t.defineComponent({name:"BField",components:{BFieldBody:Q},provide(){return{BField:this}},inject:{parent:{from:"BField",default:!1}},props:{type:{type:[String,Object],default:void 0},label:String,labelFor:String,message:{type:[String,Array,Object],default:void 0},grouped:Boolean,groupMultiline:Boolean,position:String,expanded:Boolean,horizontal:Boolean,addons:{type:Boolean,default:!0},customClass:String,labelPosition:{type:String,default:()=>d.defaultFieldLabelPosition}},data(){return{newType:this.type,newMessage:this.message,fieldLabelSize:null,numberInputClasses:[],_isField:!0}},computed:{rootClasses(){return[{"is-expanded":this.expanded,"is-horizontal":this.horizontal,"is-floating-in-label":this.hasLabel&&!this.horizontal&&"inside"===this.labelPosition,"is-floating-label":this.hasLabel&&!this.horizontal&&"on-border"===this.labelPosition},this.numberInputClasses]},innerFieldClasses(){return[this.fieldType(),this.newPosition,{"is-grouped-multiline":this.groupMultiline}]},hasInnerField(){return this.grouped||this.groupMultiline||this.hasAddons()},newPosition(){if(void 0===this.position)return;const e=this.position.split("-");if(e.length<1)return;const t=this.grouped?"is-grouped-":"has-addons-";return this.position?t+e[1]:void 0},formattedMessage(){const e=this.parent;if(e&&e.hasInnerField)return"";if("string"==typeof this.newMessage)return[this.newMessage];const t=[];if(Array.isArray(this.newMessage))this.newMessage.forEach((e=>{if("string"==typeof e)t.push(e);else for(const i in e)e[i]&&t.push(i)}));else for(const e in this.newMessage)this.newMessage[e]&&t.push(e);return t.filter((e=>!!e))},hasLabel(){return this.label||this.$slots.label},hasMessage(){const e=this.parent;return(!e||!e.hasInnerField)&&this.newMessage||this.$slots.message}},watch:{type(e){this.newType=e},message(e){JSON.stringify(e)!==JSON.stringify(this.newMessage)&&(this.newMessage=e)},newMessage(e){const t=this.parent;t&&t.hasInnerField&&(t.type||(t.newType=this.newType),t.message||(t.newMessage=e))}},methods:{fieldType(){return this.grouped?"is-grouped":this.hasAddons()?"has-addons":void 0},hasAddons(){let e=0;return this.$slots.default&&(e=this.$slots.default().reduce(((e,t)=>j(t)?e+1:e),0)),e>1&&this.addons&&!this.horizontal},wrapNumberinput({controlsPosition:e,size:t}){const i=["has-numberinput"];e&&i.push(`has-numberinput-${e}`),t&&i.push(`has-numberinput-${t}`),this.numberInputClasses=i}},mounted(){if(this.horizontal){this.$el.querySelectorAll(".input, .select, .button, .textarea, .b-slider").length>0&&(this.fieldLabelSize="is-normal")}}});var Z=(e,t)=>{const i=e.__vccOpts||e;for(const[e,o]of t)i[e]=o;return i};const ee=["for"],te=["for"],ie={key:3,class:"field-body"};var oe=Z(J,[["render",function(e,i,o,a,s,n){const l=t.resolveComponent("b-field-body"),r=t.resolveComponent("b-field");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["field",e.rootClasses])},[e.horizontal?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["field-label",[e.customClass,e.fieldLabelSize]])},[e.hasLabel?(t.openBlock(),t.createElementBlock("label",{key:0,for:e.labelFor,class:t.normalizeClass([e.customClass,"label"])},[e.$slots.label?t.renderSlot(e.$slots,"label",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.label),1)],64))],10,ee)):t.createCommentVNode("v-if",!0)],2)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.hasLabel?(t.openBlock(),t.createElementBlock("label",{key:0,for:e.labelFor,class:t.normalizeClass([e.customClass,"label"])},[e.$slots.label?t.renderSlot(e.$slots,"label",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.label),1)],64))],10,te)):t.createCommentVNode("v-if",!0)],64)),e.horizontal?(t.openBlock(),t.createBlock(l,{key:2,message:e.newMessage?e.formattedMessage:"",type:e.newType},{default:t.withCtx((()=>[t.renderSlot(e.$slots,"default")])),_:3},8,["message","type"])):e.hasInnerField?(t.openBlock(),t.createElementBlock("div",ie,[t.createVNode(r,{addons:!1,type:e.type,class:t.normalizeClass(e.innerFieldClasses)},{default:t.withCtx((()=>[t.renderSlot(e.$slots,"default")])),_:3},8,["type","class"])])):t.renderSlot(e.$slots,"default",{key:4}),e.hasMessage&&!e.horizontal?(t.openBlock(),t.createElementBlock("p",{key:5,class:t.normalizeClass(["help",e.newType])},[e.$slots.message?t.renderSlot(e.$slots,"message",{key:0,messages:e.formattedMessage}):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.formattedMessage,((i,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createTextVNode(t.toDisplayString(i)+" ",1),o+1<e.formattedMessage.length?(t.openBlock(),t.createElementBlock("br",{key:o})):t.createCommentVNode("v-if",!0)],64)))),256))],2)):t.createCommentVNode("v-if",!0)],2)}]]);const ae=t.defineComponent({props:{size:String,expanded:Boolean,loading:Boolean,rounded:Boolean,icon:String,iconPack:String,maxlength:[Number,String],useHtml5Validation:{type:Boolean,default:()=>d.defaultUseHtml5Validation},validationMessage:String,locale:{type:[String,Array],default:()=>d.defaultLocale},statusIcon:{type:Boolean,default:()=>d.defaultStatusIcon}},emits:{blur:e=>!0,focus:e=>!0},data(){return{isValid:!0,isFocused:!1,newIconPack:this.iconPack||d.defaultIconPack,_elementRef:""}},computed:{parentField(){let e=this.$parent;for(let t=0;t<3;t++)e&&!e.$data._isField&&(e=e.$parent);return e},statusType(){const{newType:e}=this.parentField||{};if(e){if("string"==typeof e)return e;for(const t in e)if(e[t])return t}},statusMessage(){if(this.parentField)return this.parentField.newMessage||this.parentField.$slots.message},iconSize(){switch(this.size){case"is-small":return this.size;case"is-medium":return;case"is-large":return"mdi"===this.newIconPack?"is-medium":""}}},methods:{focus(){const e=this.getElement();void 0!==e&&this.$nextTick((()=>{e&&e.focus()}))},onBlur(e){this.isFocused=!1,this.$emit("blur",e),this.checkHtml5Validity()},onFocus(e){this.isFocused=!0,this.$emit("focus",e)},getElement(){let e=this.$refs[this.$data._elementRef];for(;null!=e&&"object"==typeof e&&"$refs"in e;){const t=e;e=t.$refs[t.$data._elementRef]}return e},setInvalid(){const e=this.validationMessage||this.getElement().validationMessage;this.setValidity("is-danger",e)},setValidity(e,t){this.$nextTick((()=>{this.parentField&&(this.parentField.type||(this.parentField.newType=e),this.parentField.message||(this.parentField.newMessage=t))}))},checkHtml5Validity(){if(!this.useHtml5Validation)return!1;const e=this.getElement();return null!=e&&(e.checkValidity()?(this.setValidity(null,null),this.isValid=!0):(this.setInvalid(),this.isValid=!1),this.isValid)}}}),se={sizes:{default:"mdi-24px","is-small":null,"is-medium":"mdi-36px","is-large":"mdi-48px"},iconPrefix:"mdi-"},ne=()=>{const e=d&&d.defaultIconComponent?"":"fa-";return{sizes:{default:null,"is-small":null,"is-medium":e+"lg","is-large":e+"2x"},iconPrefix:e,internalIcons:{information:"info-circle",alert:"exclamation-triangle","alert-circle":"exclamation-circle","chevron-right":"angle-right","chevron-left":"angle-left","chevron-down":"angle-down","eye-off":"eye-slash","menu-down":"caret-down","menu-up":"caret-up","close-circle":"times-circle"}}};var le=Z(t.defineComponent({name:"BIcon",props:{type:[String,Object],component:String,pack:String,icon:{type:String,required:!0},size:String,customSize:String,customClass:String,both:Boolean},computed:{iconConfig(){return(()=>{let e={mdi:se,fa:ne(),fas:ne(),far:ne(),fad:ne(),fab:ne(),fal:ne(),"fa-solid":ne(),"fa-regular":ne(),"fa-light":ne(),"fa-thin":ne(),"fa-duotone":ne(),"fa-brands":ne()};return d&&d.customIconPacks&&(e=V(e,d.customIconPacks,!0)),e})()[this.newPack]},iconPrefix(){return this.iconConfig&&this.iconConfig.iconPrefix?this.iconConfig.iconPrefix:""},newIcon(){return`${this.iconPrefix}${this.getEquivalentIconOf(this.icon)}`},newPack(){return this.pack||d.defaultIconPack},newType(){if(!this.type)return;let e=[];if("string"==typeof this.type)e=this.type.split("-");else for(const t in this.type)if(this.type[t]){e=t.split("-");break}if(e.length<=1)return;const[,...t]=e;return`has-text-${t.join("-")}`},newCustomSize(){return this.customSize||this.customSizeByPack},customSizeByPack(){if(this.iconConfig&&this.iconConfig.sizes){if(this.size&&void 0!==this.iconConfig.sizes[this.size])return this.iconConfig.sizes[this.size];if(this.iconConfig.sizes.default)return this.iconConfig.sizes.default}return null},useIconComponent(){return this.component||d.defaultIconComponent}},methods:{getEquivalentIconOf(e){if(!this.both)return e;if(null==this.iconConfig)return e;const t=this.iconConfig;return t&&t.internalIcons&&t.internalIcons[e]?t.internalIcons[e]:e}}}),[["render",function(e,i,o,a,s,n){return t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["icon",[e.newType,e.size]])},[e.useIconComponent?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.useIconComponent),{key:1,icon:[e.newPack,e.newIcon],size:e.newCustomSize,class:t.normalizeClass([e.customClass])},null,8,["icon","size","class"])):(t.openBlock(),t.createElementBlock("i",{key:0,class:t.normalizeClass([e.newPack,e.newIcon,e.newCustomSize,e.customClass])},null,2))],2)}]]),re=t.defineComponent({name:"BInput",components:{BIcon:le},mixins:[G,ae],props:{modelValue:{type:[Number,String]},type:{type:String,default:"text"},lazy:{type:Boolean,default:!1},passwordReveal:Boolean,iconClickable:Boolean,hasCounter:{type:Boolean,default:()=>d.defaultInputHasCounter},customClass:{type:String,default:""},iconRight:String,iconRightClickable:Boolean,iconRightType:String,autocomplete:String},emits:{"icon-click":e=>!0,"icon-right-click":e=>!0,"update:modelValue":e=>!0},data(){return{newValue:this.modelValue,newType:this.type,newAutocomplete:this.autocomplete||d.defaultInputAutocomplete,isPasswordVisible:!1,_elementRef:"textarea"===this.type?"textarea":"input"}},computed:{computedValue:{get(){return this.newValue},set(e){this.newValue=e,this.$emit("update:modelValue",e)}},rootClasses(){return[this.iconPosition,this.size,{"is-expanded":this.expanded,"is-loading":this.loading,"is-clearfix":!this.hasMessage}]},inputClasses(){return[this.statusType,this.size,{"is-rounded":this.rounded}]},hasIconRight(){return this.passwordReveal||this.loading||this.statusIcon&&this.statusTypeIcon||this.iconRight},rightIcon(){return this.passwordReveal?this.passwordVisibleIcon:this.iconRight?this.iconRight:this.statusTypeIcon},rightIconType(){return this.passwordReveal?"is-primary":this.iconRight?this.iconRightType||void 0:this.statusType},iconPosition(){let e="";return this.icon&&(e+="has-icons-left "),this.hasIconRight&&(e+="has-icons-right"),e},statusTypeIcon(){switch(this.statusType){case"is-success":return"check";case"is-danger":return"alert-circle";case"is-info":return"information";case"is-warning":return"alert";default:return}},hasMessage(){return!!this.statusMessage},passwordVisibleIcon(){return this.isPasswordVisible?"eye-off":"eye"},valueLength(){return"string"==typeof this.computedValue?Array.from(this.computedValue).length:"number"==typeof this.computedValue?this.computedValue.toString().length:0}},watch:{modelValue(e){const t=this.computedValue!=e;this.newValue=e,t&&this.$nextTick((()=>{!this.isValid&&this.checkHtml5Validity()}))},type(e){this.newType=e}},methods:{togglePasswordVisibility(){this.isPasswordVisible=!this.isPasswordVisible,this.newType=this.isPasswordVisible?"text":"password",this.$nextTick((()=>{this.focus()}))},iconClick(e,t){this.$emit(e,t),this.$nextTick((()=>{this.focus()}))},rightIconClick(e){this.passwordReveal?this.togglePasswordVisibility():this.iconRightClickable&&this.iconClick("icon-right-click",e)},onInput(){this.lazy||this.revalidate()},onChange(){this.lazy&&this.revalidate()},revalidate(){!this.isValid&&this.checkHtml5Validity()}}});const ce=["type","autocomplete","maxlength"],de=["maxlength"],ue=["type","autocomplete","maxlength"],he=["maxlength"];var pe=Z(re,[["render",function(e,i,o,a,s,n){const l=t.resolveComponent("b-icon");return t.openBlock(),t.createElementBlock("div",t.mergeProps({class:["control",e.rootClasses]},e.rootAttrs),[e.lazy?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},["textarea"!==e.type?t.withDirectives((t.openBlock(),t.createElementBlock("input",t.mergeProps({key:0,ref:"input",class:["input",[e.inputClasses,e.customClass]],type:e.newType,autocomplete:e.newAutocomplete,maxlength:e.maxlength,"onUpdate:modelValue":i[0]||(i[0]=t=>e.computedValue=t)},e.fallthroughAttrs,{onInput:i[1]||(i[1]=(...t)=>e.onInput&&e.onInput(...t)),onChange:i[2]||(i[2]=(...t)=>e.onChange&&e.onChange(...t)),onBlur:i[3]||(i[3]=(...t)=>e.onBlur&&e.onBlur(...t)),onFocus:i[4]||(i[4]=(...t)=>e.onFocus&&e.onFocus(...t))}),null,16,ce)),[[t.vModelDynamic,e.computedValue,void 0,{lazy:!0}]]):t.withDirectives((t.openBlock(),t.createElementBlock("textarea",t.mergeProps({key:1,ref:"textarea",class:["textarea",[e.inputClasses,e.customClass]],maxlength:e.maxlength,"onUpdate:modelValue":i[5]||(i[5]=t=>e.computedValue=t)},e.fallthroughAttrs,{onInput:i[6]||(i[6]=(...t)=>e.onInput&&e.onInput(...t)),onChange:i[7]||(i[7]=(...t)=>e.onChange&&e.onChange(...t)),onBlur:i[8]||(i[8]=(...t)=>e.onBlur&&e.onBlur(...t)),onFocus:i[9]||(i[9]=(...t)=>e.onFocus&&e.onFocus(...t))}),null,16,de)),[[t.vModelText,e.computedValue,void 0,{lazy:!0}]])],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},["textarea"!==e.type?t.withDirectives((t.openBlock(),t.createElementBlock("input",t.mergeProps({key:0,ref:"input",class:["input",[e.inputClasses,e.customClass]],type:e.newType,autocomplete:e.newAutocomplete,maxlength:e.maxlength,"onUpdate:modelValue":i[10]||(i[10]=t=>e.computedValue=t)},e.fallthroughAttrs,{onInput:i[11]||(i[11]=(...t)=>e.onInput&&e.onInput(...t)),onChange:i[12]||(i[12]=(...t)=>e.onChange&&e.onChange(...t)),onBlur:i[13]||(i[13]=(...t)=>e.onBlur&&e.onBlur(...t)),onFocus:i[14]||(i[14]=(...t)=>e.onFocus&&e.onFocus(...t))}),null,16,ue)),[[t.vModelDynamic,e.computedValue]]):t.withDirectives((t.openBlock(),t.createElementBlock("textarea",t.mergeProps({key:1,ref:"textarea",class:["textarea",[e.inputClasses,e.customClass]],maxlength:e.maxlength,"onUpdate:modelValue":i[15]||(i[15]=t=>e.computedValue=t)},e.fallthroughAttrs,{onInput:i[16]||(i[16]=(...t)=>e.onInput&&e.onInput(...t)),onChange:i[17]||(i[17]=(...t)=>e.onChange&&e.onChange(...t)),onBlur:i[18]||(i[18]=(...t)=>e.onBlur&&e.onBlur(...t)),onFocus:i[19]||(i[19]=(...t)=>e.onFocus&&e.onFocus(...t))}),null,16,he)),[[t.vModelText,e.computedValue]])],64)),e.icon?(t.openBlock(),t.createBlock(l,{key:2,class:t.normalizeClass(["is-left",{"is-clickable":e.iconClickable}]),icon:e.icon,pack:e.iconPack,size:e.iconSize,onClick:i[20]||(i[20]=t=>e.iconClick("icon-click",t))},null,8,["class","icon","pack","size"])):t.createCommentVNode("v-if",!0),!e.loading&&e.hasIconRight&&e.rightIcon?(t.openBlock(),t.createBlock(l,{key:3,class:t.normalizeClass(["is-right",{"is-clickable":e.passwordReveal||e.iconRightClickable}]),icon:e.rightIcon,pack:e.iconPack,size:e.iconSize,type:e.rightIconType,both:"",onClick:e.rightIconClick},null,8,["class","icon","pack","size","type","onClick"])):t.createCommentVNode("v-if",!0),e.maxlength&&e.hasCounter&&"number"!==e.type?(t.openBlock(),t.createElementBlock("small",{key:4,class:t.normalizeClass(["help counter",{"is-invisible":!e.isFocused}])},t.toDisplayString(e.valueLength)+" / "+t.toDisplayString(e.maxlength),3)):t.createCommentVNode("v-if",!0)],16)}]]),me=t.defineComponent({name:"BAutocomplete",components:{BInput:pe},mixins:[G,ae],props:{modelValue:[Number,String,null],data:{type:Array,default:()=>[]},field:{type:String,default:"value"},keepFirst:Boolean,clearOnSelect:Boolean,openOnFocus:Boolean,customFormatter:{type:Function},checkInfiniteScroll:Boolean,keepOpen:Boolean,selectOnClickOutside:Boolean,clearable:Boolean,maxHeight:[String,Number],dropdownPosition:{type:String,default:"auto"},groupField:String,groupOptions:String,iconRight:String,iconRightClickable:Boolean,appendToBody:Boolean,type:{type:String,default:"text"},confirmKeys:{type:Array,default:()=>["Tab","Enter"]},selectableHeader:Boolean,selectableFooter:Boolean,autocomplete:String},emits:{active:e=>!0,blur:e=>!0,focus:e=>!0,"icon-click":e=>!0,"icon-right-click":e=>!0,"infinite-scroll":()=>!0,select:(e,t)=>!0,"select-footer":e=>!0,"select-header":e=>!0,typing:e=>!0,"update:modelValue":e=>!0},data(){return{selected:null,hovered:null,headerHovered:null,footerHovered:null,isActive:!1,newValue:this.modelValue,newAutocomplete:this.autocomplete||"off",ariaAutocomplete:this.keepFirst?"both":"list",isListInViewportVertically:!0,hasFocus:!1,style:{},_isAutocomplete:!0,_elementRef:"input",_bodyEl:void 0,timeOutID:void 0}},computed:{computedData(){const{groupField:e,groupOptions:t}=this;if(e){if(t){const i=[];return this.data.forEach((o=>{const a=C(o,e),s=C(o,t);i.push({group:a,items:s})})),i}{const t={};this.data.forEach((i=>{const o=C(i,e);t[o]||(t[o]=[]),t[o].push(i)}));const i=[];return Object.keys(t).forEach((e=>{i.push({group:e,items:t[e]})})),i}}return[{items:this.data}]},isEmpty(){return!this.computedData||!this.computedData.some((e=>e.items&&e.items.length))},whiteList(){var e;this.computedData;const t=[];if(t.push(this.$refs.input.$el.querySelector("input")),t.push(this.$refs.dropdown),null!=this.$refs.dropdown){const e=this.$refs.dropdown.querySelectorAll("*");for(const i of e)t.push(i)}if((null==(e=this.$parent)?void 0:e.$data)._isTaginput){t.push(this.$parent.$el);const e=this.$parent.$el.querySelectorAll("*");for(const i of e)t.push(i)}return t},hasDefaultSlot(){return!!this.$slots.default},hasGroupSlot(){return!!this.$slots.group},hasEmptySlot(){return!!this.$slots.empty},hasHeaderSlot(){return!!this.$slots.header},hasFooterSlot(){return!!this.$slots.footer},isOpenedTop(){return"top"===this.dropdownPosition||"auto"===this.dropdownPosition&&!this.isListInViewportVertically},newIconRight(){return this.clearable&&this.newValue?"close-circle":this.iconRight},newIconRightClickable(){return!!this.clearable||this.iconRightClickable},contentStyle(){return{maxHeight:P(this.maxHeight)||void 0}}},watch:{isActive(e){"auto"===this.dropdownPosition&&(e?this.calcDropdownInViewportVertical():this.timeOutID=setTimeout((()=>{this.calcDropdownInViewportVertical()}),100)),this.$nextTick((()=>{this.$emit("active",e)}))},checkInfiniteScroll(e){if(!this.$refs.dropdown)return;const t=this.$refs.dropdown.querySelector(".dropdown-content");t&&(!0!==e?t.removeEventListener("scroll",this.checkIfReachedTheEndOfScroll):t.addEventListener("scroll",this.checkIfReachedTheEndOfScroll))},newValue(e){this.$emit("update:modelValue",e);const t=this.getValue(this.selected);null!=t&&t!==e&&this.setSelected(null,!1),!this.hasFocus||this.openOnFocus&&""===e||(this.isActive=""!==e&&null!=e)},modelValue(e){this.newValue=e},keepFirst(e){this.ariaAutocomplete=e?"both":"list"},data(){if(this.keepFirst)this.$nextTick((()=>{this.isActive?this.selectFirstOption(this.computedData):this.setHovered(null)}));else if(this.hovered){const e=this.getValue(this.hovered);this.computedData.map((e=>e.items)).reduce(((e,t)=>[...e,...t]),[]).some((t=>this.getValue(t)===e))||this.setHovered(null)}},appendToBody(e,t){e&&!t?this.isActive&&this.$refs.dropdown&&!this.$data._bodyEl&&(this.$data._bodyEl=M(this.$refs.dropdown),this.updateAppendToBody()):!e&&t&&this.$data._bodyEl&&(N(this.$data._bodyEl),this.$data._bodyEl=void 0)}},methods:{setHovered(e){void 0!==e&&(this.hovered=e)},setSelected(e,t=!0,i){void 0!==e&&(this.selected=e,this.$emit("select",this.selected,i),null!==this.selected&&(this.clearOnSelect?this.newValue="":this.newValue=this.getValue(this.selected),this.setHovered(null)),t&&this.$nextTick((()=>{this.isActive=!1})),this.checkValidity())},selectFirstOption(e){this.$nextTick((()=>{const t=e.filter((e=>e.items&&e.items.length));if(t.length){const e=t[0].items[0];this.setHovered(e)}else this.setHovered(null)}))},findHoveredIndex(e){if(null===this.hovered||void 0===this.hovered)return-1;const t=e.indexOf(this.hovered);if(-1!==t)return t;const i=this.getValue(this.hovered);return null==i?-1:e.findIndex((e=>null==e?null==i:this.getValue(e)===i))},keydown(e){const{key:t}=e;if("Enter"===t&&e.preventDefault(),"Escape"!==t&&"Tab"!==t||(this.isActive=!1),this.confirmKeys.indexOf(t)>=0){","===t&&e.preventDefault();const i=!this.keepOpen||"Tab"===t;if(null===this.hovered)return void this.checkIfHeaderOrFooterSelected(e,null,i);this.setSelected(this.hovered,i,e)}},selectHeaderOrFoterByClick(e,t){this.checkIfHeaderOrFooterSelected(e,{origin:t})},checkIfHeaderOrFooterSelected(e,t,i=!0){this.selectableHeader&&(this.headerHovered||t&&"header"===t.origin)&&(this.$emit("select-header",e),this.headerHovered=!1,t&&this.setHovered(null),i&&(this.isActive=!1)),this.selectableFooter&&(this.footerHovered||t&&"footer"===t.origin)&&(this.$emit("select-footer",e),this.footerHovered=!1,t&&this.setHovered(null),i&&(this.isActive=!1))},clickedOutside(e){const t=z(this)?e.composedPath()[0]:e.target;!this.hasFocus&&this.whiteList.indexOf(t)<0&&(this.keepFirst&&this.hovered&&this.selectOnClickOutside?this.setSelected(this.hovered,!0):this.isActive=!1)},getValue(e){if(null!==e)return void 0!==this.customFormatter?this.customFormatter(e):"object"==typeof e?C(e,this.field):e},checkIfReachedTheEndOfScroll(){const e=this.$refs.dropdown.querySelector(".dropdown-content"),t=this.hasFooterSlot?e.querySelectorAll("div.dropdown-footer")[0].clientHeight:0;e.clientHeight!==e.scrollHeight&&e.scrollTop+e.parentElement.clientHeight+t>=e.scrollHeight&&this.$emit("infinite-scroll")},calcDropdownInViewportVertical(){this.$nextTick((()=>{var e;if(null==this.$refs.dropdown)return;const t=this.$refs.dropdown.getBoundingClientRect();this.isListInViewportVertically=t.top>=0&&t.bottom<=((null==window?void 0:window.innerHeight)||(null==(e=null==document?void 0:document.documentElement)?void 0:e.clientHeight)),this.appendToBody&&this.updateAppendToBody()}))},keyArrows(e){const t="down"===e?1:-1;if(this.isActive){const e=this.computedData.map((e=>e.items)).reduce(((e,t)=>[...e,...t]),[]);let i;this.hasHeaderSlot&&this.selectableHeader&&e.unshift(void 0),this.hasFooterSlot&&this.selectableFooter&&e.push(void 0),i=this.headerHovered?0+t:this.footerHovered?e.length-1+t:this.findHoveredIndex(e)+t,i=i>e.length-1?e.length-1:i,i=i<0?0:i,this.footerHovered=!1,this.headerHovered=!1,this.setHovered(void 0!==e[i]?e[i]:null),this.hasFooterSlot&&this.selectableFooter&&i===e.length-1&&(this.footerHovered=!0),this.hasHeaderSlot&&this.selectableHeader&&0===i&&(this.headerHovered=!0);const o=this.$refs.dropdown.querySelector(".dropdown-content");let a="a.dropdown-item:not(.is-disabled)";this.hasHeaderSlot&&this.selectableHeader&&(a+=",div.dropdown-header"),this.hasFooterSlot&&this.selectableFooter&&(a+=",div.dropdown-footer");const s=o.querySelectorAll(a)[i];if(!s)return;const n=o.scrollTop,l=o.scrollTop+o.clientHeight-s.clientHeight;s.offsetTop<n?o.scrollTop=s.offsetTop:s.offsetTop>=l&&(o.scrollTop=s.offsetTop-o.clientHeight+s.clientHeight)}else this.isActive=!0},focused(e){this.getValue(this.selected)===this.newValue&&this.$el.querySelector("input").select(),this.openOnFocus&&(this.isActive=!0,this.keepFirst&&this.selectFirstOption(this.computedData)),this.hasFocus=!0,this.$emit("focus",e)},onBlur(e){this.hasFocus=!1,this.$emit("blur",e)},onInput(){const e=this.getValue(this.selected);null!=e&&e===this.newValue||(this.$emit("typing",this.newValue),this.checkValidity())},rightIconClick(e){this.clearable?(this.newValue="",this.setSelected(null,!1),this.openOnFocus&&this.$refs.input.$el.focus()):this.$emit("icon-right-click",e)},checkValidity(){this.useHtml5Validation&&this.$nextTick((()=>{this.checkHtml5Validity()}))},updateAppendToBody(){const e=this.$refs.dropdown,t=this.$parent.$data._isTaginput?this.$parent.$el:this.$refs.input.$el;if(e&&t){this.$data._bodyEl||(this.$data._bodyEl=M(e));const i=this.$data._bodyEl;i.classList.forEach((e=>i.classList.remove(e))),i.classList.add("autocomplete"),i.classList.add("control"),this.expanded&&i.classList.add("is-expanded");const o=t.getBoundingClientRect();let a=o.top+window.scrollY;const s=o.left+window.scrollX;this.isOpenedTop?a-=e.clientHeight:a+=t.clientHeight,this.style={position:"absolute",top:`${a}px`,left:`${s}px`,width:`${t.clientWidth}px`,maxWidth:`${t.clientWidth}px`,zIndex:"99"}}}},created(){"undefined"!=typeof window&&(document.addEventListener("click",this.clickedOutside),"auto"===this.dropdownPosition&&window.addEventListener("resize",this.calcDropdownInViewportVertical),this.appendToBody&&window.addEventListener("scroll",this.calcDropdownInViewportVertical))},mounted(){if(this.checkInfiniteScroll&&this.$refs.dropdown&&this.$refs.dropdown.querySelector(".dropdown-content")){this.$refs.dropdown.querySelector(".dropdown-content").addEventListener("scroll",this.checkIfReachedTheEndOfScroll)}this.appendToBody&&(this.$data._bodyEl=M(this.$refs.dropdown),this.updateAppendToBody())},beforeUnmount(){if("undefined"!=typeof window&&(document.removeEventListener("click",this.clickedOutside),"auto"===this.dropdownPosition&&window.removeEventListener("resize",this.calcDropdownInViewportVertical),this.appendToBody&&window.removeEventListener("scroll",this.calcDropdownInViewportVertical)),this.checkInfiniteScroll&&this.$refs.dropdown&&this.$refs.dropdown.querySelector(".dropdown-content")){this.$refs.dropdown.querySelector(".dropdown-content").removeEventListener("scroll",this.checkIfReachedTheEndOfScroll)}this.appendToBody&&this.$data._bodyEl&&N(this.$data._bodyEl),clearTimeout(this.timeOutID)}});const ge={key:1,class:"has-text-weight-bold"},fe=["onClick"],be={key:1},ve={key:1,class:"dropdown-item is-disabled"};var ye=Z(me,[["render",function(e,i,o,a,s,n){const l=t.resolveComponent("b-input");return t.openBlock(),t.createElementBlock("div",t.mergeProps({class:["autocomplete control",{"is-expanded":e.expanded}]},e.rootAttrs),[t.createVNode(l,t.mergeProps({modelValue:e.newValue,"onUpdate:modelValue":i[0]||(i[0]=t=>e.newValue=t),ref:"input",type:e.type,size:e.size,loading:e.loading,rounded:e.rounded,icon:e.icon,"icon-right":e.newIconRight,"icon-right-clickable":e.newIconRightClickable,"icon-pack":e.iconPack,maxlength:e.maxlength,autocomplete:e.newAutocomplete,"use-html5-validation":!1,"aria-autocomplete":e.ariaAutocomplete},e.fallthroughAttrs,{"onUpdate:modelValue":e.onInput,onFocus:e.focused,onBlur:e.onBlur,onKeydown:[e.keydown,i[1]||(i[1]=t.withKeys(t.withModifiers((t=>e.keyArrows("up")),["prevent"]),["up"])),i[2]||(i[2]=t.withKeys(t.withModifiers((t=>e.keyArrows("down")),["prevent"]),["down"]))],onIconRightClick:e.rightIconClick,onIconClick:i[3]||(i[3]=t=>e.$emit("icon-click",t))}),null,16,["modelValue","type","size","loading","rounded","icon","icon-right","icon-right-clickable","icon-pack","maxlength","autocomplete","aria-autocomplete","onUpdate:modelValue","onFocus","onBlur","onKeydown","onIconRightClick"]),t.createVNode(t.Transition,{name:"fade",persisted:""},{default:t.withCtx((()=>[t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(["dropdown dropdown-menu",{"is-opened-top":e.isOpenedTop&&!e.appendToBody}]),style:t.normalizeStyle(e.style),ref:"dropdown"},[t.withDirectives(t.createElementVNode("div",{class:"dropdown-content",style:t.normalizeStyle(e.contentStyle)},[e.hasHeaderSlot?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["dropdown-item dropdown-header",{"is-hovered":e.headerHovered}]),role:"button",tabindex:"0",onClick:i[4]||(i[4]=t=>e.selectHeaderOrFoterByClick(t,"header"))},[t.renderSlot(e.$slots,"header")],2)):t.createCommentVNode("v-if",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.computedData,((i,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[i.group?(t.openBlock(),t.createElementBlock("div",{key:o+"group",class:"dropdown-item"},[e.hasGroupSlot?t.renderSlot(e.$slots,"group",{key:0,group:i.group,index:o}):(t.openBlock(),t.createElementBlock("span",ge,t.toDisplayString(i.group),1))])):t.createCommentVNode("v-if",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.items,((i,a)=>(t.openBlock(),t.createElementBlock("a",{key:o+":"+a,class:t.normalizeClass(["dropdown-item",{"is-hovered":i===e.hovered}]),role:"button",tabindex:"0",onClick:t.withModifiers((t=>e.setSelected(i,!e.keepOpen,t)),["stop"])},[e.hasDefaultSlot?t.renderSlot(e.$slots,"default",{key:0,option:i,index:a}):(t.openBlock(),t.createElementBlock("span",be,t.toDisplayString(e.getValue(i)),1))],10,fe)))),128))],64)))),256)),e.isEmpty&&e.hasEmptySlot?(t.openBlock(),t.createElementBlock("div",ve,[t.renderSlot(e.$slots,"empty")])):t.createCommentVNode("v-if",!0),e.hasFooterSlot?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(["dropdown-item dropdown-footer",{"is-hovered":e.footerHovered}]),role:"button",tabindex:"0",onClick:i[5]||(i[5]=t=>e.selectHeaderOrFoterByClick(t,"footer"))},[t.renderSlot(e.$slots,"footer")],2)):t.createCommentVNode("v-if",!0)],4),[[t.vShow,e.isActive]])],6),[[t.vShow,e.isActive&&(!e.isEmpty||e.hasEmptySlot||e.hasHeaderSlot||e.hasFooterSlot)]])])),_:3})],16)}]]);const ke=(e,t,i)=>{const o=i||t.name;if(null==o)throw new Error("Buefy.registerComponent: missing component name");e.component(o,t)},we=(e,t,i)=>{e.config.globalProperties.$buefy||(e.config.globalProperties.$buefy={}),e.config.globalProperties.$buefy[t]=i},Ce={install(e){ke(e,ye)}};var Be=Z(t.defineComponent({name:"BBreadcrumb",props:{align:{type:String,default:()=>d.defaultBreadcrumbAlign},separator:{type:String,default:()=>d.defaultBreadcrumbSeparator},size:{type:String,default:()=>d.defaultBreadcrumbSize}},computed:{breadcrumbClasses(){return["breadcrumb",this.align,this.separator,this.size]}}}),[["render",function(e,i,o,a,s,n){return t.openBlock(),t.createElementBlock("nav",{class:t.normalizeClass(e.breadcrumbClasses)},[t.createElementVNode("ul",null,[t.renderSlot(e.$slots,"default")])],2)}]]);var Se=Z(t.defineComponent({name:"BBreadcrumbItem",mixins:[G],props:{tag:{type:[String,Object],default:()=>d.defaultBreadcrumbTag},active:Boolean}}),[["render",function(e,i,o,a,s,n){return t.openBlock(),t.createElementBlock("li",t.mergeProps({class:{"is-active":e.active}},e.rootAttrs),[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.tag),t.normalizeProps(t.guardReactiveProps(e.fallthroughAttrs)),{default:t.withCtx((()=>[t.renderSlot(e.$slots,"default")])),_:3},16))],16)}]]);const De={install(e){ke(e,Be),ke(e,Se)}},Ve=["button","submit","reset"];var xe=t.defineComponent({name:"BButton",components:{BIcon:le},inheritAttrs:!1,props:{type:[String,Object],size:String,label:String,iconPack:String,iconLeft:String,iconRight:String,rounded:{type:Boolean,default:()=>d.defaultButtonRounded},loading:Boolean,outlined:Boolean,expanded:Boolean,inverted:Boolean,focused:Boolean,active:Boolean,hovered:Boolean,selected:Boolean,nativeType:{type:String,default:"button",validator:e=>Ve.indexOf(e)>=0},tag:{type:[String,Object],default:"button",validator:e=>"object"==typeof e||d.defaultLinkTags.indexOf(e)>=0}},computed:{computedTag(){return void 0!==this.$attrs.disabled&&!1!==this.$attrs.disabled?"button":this.tag},iconSize(){return this.size&&"is-medium"!==this.size?"is-large"===this.size?"is-medium":this.size:"is-small"}}});const Ne={key:1},Me={key:2};var Ee=Z(xe,[["render",function(e,i,o,a,s,n){const l=t.resolveComponent("b-icon");return t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.computedTag),t.mergeProps({class:"button"},e.$attrs,{type:"string"==typeof e.computedTag&&["button","input"].includes(e.computedTag)?e.nativeType:void 0,class:[e.size,e.type,{"is-rounded":e.rounded,"is-loading":e.loading,"is-outlined":e.outlined,"is-fullwidth":e.expanded,"is-inverted":e.inverted,"is-focused":e.focused,"is-active":e.active,"is-hovered":e.hovered,"is-selected":e.selected}]}),{default:t.withCtx((()=>[e.iconLeft?(t.openBlock(),t.createBlock(l,{key:0,pack:e.iconPack,icon:e.iconLeft,size:e.iconSize},null,8,["pack","icon","size"])):t.createCommentVNode("v-if",!0),e.label?(t.openBlock(),t.createElementBlock("span",Ne,t.toDisplayString(e.label),1)):e.$slots.default?(t.openBlock(),t.createElementBlock("span",Me,[t.renderSlot(e.$slots,"default")])):t.createCommentVNode("v-if",!0),e.iconRight?(t.openBlock(),t.createBlock(l,{key:3,pack:e.iconPack,icon:e.iconRight,size:e.iconSize},null,8,["pack","icon","size"])):t.createCommentVNode("v-if",!0)])),_:3},16,["type","class"])}]]);const $e={install(e){ke(e,Ee)}};var Te=Object.defineProperty,Pe=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,Ae=(e,t,i)=>t in e?Te(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var Ie=(e,t)=>{const i={provide(){return{["b"+e]:this}}};return y(t,1)&&(i.data=function(){return((e,t)=>{for(var i in t||(t={}))Oe.call(t,i)&&Ae(e,i,t[i]);if(Pe)for(var i of Pe(t))Fe.call(t,i)&&Ae(e,i,t[i]);return e})({childItems:[]},y(t,3)?{nextIndex:0}:{})},i.methods={_registerItem(e){y(t,3)&&(e.dynamicIndex=this.nextIndex,++this.nextIndex),this.childItems.push(e)},_unregisterItem(e){this.childItems=this.childItems.filter((t=>t.uniqueValue!==e.uniqueValue))}},y(t,3)&&(i.computed={sortedItems(){return this.childItems.slice().sort(((e,t)=>e.index-t.index))}})),i},ze=t.defineComponent({name:"BCarousel",components:{BIcon:le},mixins:[Ie("carousel",3)],props:{modelValue:{type:Number,default:0},animated:{type:String,default:"slide"},interval:Number,hasDrag:{type:Boolean,default:!0},autoplay:{type:Boolean,default:!0},pauseHover:{type:Boolean,default:!0},pauseInfo:{type:Boole