quasar
Version:
Build high-performance VueJS user interfaces (SPA, PWA, SSR, Mobile and Desktop) in record time
6 lines • 455 kB
JavaScript
/*!
* Quasar Framework v1.2.5
* (c) 2015-present Razvan Stoenescu
* Released under the MIT License.
*/
"use strict";function _interopDefault(t){return t&&"object"==typeof t&&"default"in t?t.default:t}var Vue=_interopDefault(require("vue")),isSSR="undefined"==typeof window,fromSSR=!1,onSSR=isSSR;function getMatch(t,e){var i=/(edge|edga|edgios)\/([\w.]+)/.exec(t)||/(opr)[\/]([\w.]+)/.exec(t)||/(vivaldi)[\/]([\w.]+)/.exec(t)||/(chrome|crios)[\/]([\w.]+)/.exec(t)||/(iemobile)[\/]([\w.]+)/.exec(t)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(t)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(t)||/(firefox|fxios)[\/]([\w.]+)/.exec(t)||/(webkit)[\/]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||t.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(t)||t.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t)||[];return{browser:i[5]||i[3]||i[1]||"",version:i[2]||i[4]||"0",versionNumber:i[4]||i[2]||"0",platform:e[0]||""}}function getPlatformMatch(t){return/(ipad)/.exec(t)||/(ipod)/.exec(t)||/(windows phone)/.exec(t)||/(iphone)/.exec(t)||/(kindle)/.exec(t)||/(silk)/.exec(t)||/(android)/.exec(t)||/(win)/.exec(t)||/(mac)/.exec(t)||/(linux)/.exec(t)||/(cros)/.exec(t)||/(playbook)/.exec(t)||/(bb)/.exec(t)||/(blackberry)/.exec(t)||[]}function getPlatform(t){var e=getMatch(t,getPlatformMatch(t)),i={};e.browser&&(i[e.browser]=!0,i.version=e.version,i.versionNumber=parseInt(e.versionNumber,10)),e.platform&&(i[e.platform]=!0);var n=i.android||i.ios||i.bb||i.blackberry||i.ipad||i.iphone||i.ipod||i.kindle||i.playbook||i.silk||i["windows phone"];return!0===n||t.indexOf("mobile")>-1?(i.mobile=!0,i.edga||i.edgios?(i.edge=!0,e.browser="edge"):i.crios?(i.chrome=!0,e.browser="chrome"):i.fxios&&(i.firefox=!0,e.browser="firefox")):i.desktop=!0,(i.ipod||i.ipad||i.iphone)&&(i.ios=!0),i["windows phone"]&&(i.winphone=!0,delete i["windows phone"]),(i.chrome||i.opr||i.safari||i.vivaldi||!0===i.mobile&&!0!==i.ios&&!0!==n)&&(i.webkit=!0),(i.rv||i.iemobile)&&(e.browser="ie",i.ie=!0),(i.safari&&i.blackberry||i.bb)&&(e.browser="blackberry",i.blackberry=!0),i.safari&&i.playbook&&(e.browser="playbook",i.playbook=!0),i.opr&&(e.browser="opera",i.opera=!0),i.safari&&i.android&&(e.browser="android",i.android=!0),i.safari&&i.kindle&&(e.browser="kindle",i.kindle=!0),i.safari&&i.silk&&(e.browser="silk",i.silk=!0),i.vivaldi&&(e.browser="vivaldi",i.vivaldi=!0),i.name=e.browser,i.platform=e.platform,!1===isSSR&&(window.process&&window.process.versions&&window.process.versions.electron?i.electron=!0:document.location.href.indexOf("-extension://")>-1?i.bex=!0:void 0!==window.Capacitor?(i.capacitor=!0,i.nativeMobile=!0,i.nativeMobileWrapper="capacitor"):void 0===window._cordovaNative&&void 0===window.cordova||(i.cordova=!0,i.nativeMobile=!0,i.nativeMobileWrapper="cordova"),!0===(fromSSR=void 0===i.nativeMobile&&void 0===i.electron&&!!document.querySelector("[data-server-rendered]"))&&(onSSR=!0)),i}var userAgent=!1===isSSR?(navigator.userAgent||navigator.vendor||window.opera).toLowerCase():"",ssrClient={has:{touch:!1,webStorage:!1},within:{iframe:!1}},client=!1===isSSR?{userAgent:userAgent,is:getPlatform(userAgent),has:{touch:"ontouchstart"in window||window.navigator.maxTouchPoints>0,webStorage:function(){try{if(window.localStorage)return!0}catch(t){}return!1}()},within:{iframe:window.self!==window.top}}:ssrClient,Platform={install:function(t,e){var i=this;!0===isSSR?e.server.push(function(t,e){t.platform=i.parseSSR(e.ssr)}):!0===fromSSR?(Object.assign(this,client,ssrClient),e.takeover.push(function(t){onSSR=fromSSR=!1,Object.assign(t.platform,client)}),Vue.util.defineReactive(t,"platform",this)):(Object.assign(this,client),t.platform=this)}};function assign(t,e){var i=arguments;if(void 0===t||null===t)throw new TypeError("Cannot convert first argument to object");for(var n=Object(t),s=1;s<arguments.length;s++){var o=i[s];if(void 0!==o&&null!==o)for(var r=Object.keys(Object(o)),a=0,l=r.length;a<l;a++){var c=r[a],u=Object.getOwnPropertyDescriptor(o,c);void 0!==u&&u.enumerable&&(n[c]=o[c])}}return n}!0===isSSR&&(Platform.parseSSR=function(t){var e=(t.req.headers["user-agent"]||t.req.headers["User-Agent"]||"").toLowerCase();return Object.assign({},client,{userAgent:e,is:getPlatform(e)})}),Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:assign}),Number.isInteger||(Number.isInteger=function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}),Array.prototype.includes||(Array.prototype.includes=function(t,e){var i=Object(this),n=parseInt(i.length,10)||0;if(0===n)return!1;var s,o,r=parseInt(e,10)||0;for(r>=0?s=r:(s=n+r)<0&&(s=0);s<n;){if(t===(o=i[s])||t!=t&&o!=o)return!0;s++}return!1}),String.prototype.startsWith||(String.prototype.startsWith=function(t,e){return e=e||0,this.substr(e,t.length)===t}),String.prototype.endsWith||(String.prototype.endsWith=function(t,e){var i=this.toString();("number"!=typeof e||!isFinite(e)||Math.floor(e)!==e||e>i.length)&&(e=i.length),e-=t.length;var n=i.indexOf(t,e);return-1!==n&&n===e}),!1===isSSR&&("function"!=typeof Element.prototype.matches&&(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.webkitMatchesSelector||function(t){for(var e=(this.document||this.ownerDocument).querySelectorAll(t),i=0;e[i]&&e[i]!==this;)++i;return Boolean(e[i])}),"function"!=typeof Element.prototype.closest&&(Element.prototype.closest=function(t){for(var e=this;e&&1===e.nodeType;){if(e.matches(t))return e;e=e.parentNode}return null}),[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach(function(t){t.hasOwnProperty("remove")||Object.defineProperty(t,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){null!==this.parentNode&&this.parentNode.removeChild(this)}})})),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null==this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var e,i=Object(this),n=i.length>>>0,s=arguments[1],o=0;o<n;o++)if(e=i[o],t.call(s,e,o,i))return e}});var version="1.2.5",listenOpts={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{var opts=Object.defineProperty({},"passive",{get:function(){Object.assign(listenOpts,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,opts),window.removeEventListener("qtest",null,opts)}catch(t){}function leftClick(t){return 0===t.button}function middleClick(t){return 1===t.button}function rightClick(t){return 2===t.button}function position(t){return t.touches&&t.touches[0]?t=t.touches[0]:t.changedTouches&&t.changedTouches[0]?t=t.changedTouches[0]:t.targetTouches&&t.targetTouches[0]&&(t=t.targetTouches[0]),{top:t.clientY,left:t.clientX}}function getEventPath(t){if(t.path)return t.path;if(t.composedPath)return t.composedPath();for(var e=[],i=t.target;i;){if(e.push(i),"HTML"===i.tagName)return e.push(document),e.push(window),e;i=i.parentElement}}var LINE_HEIGHT=40,PAGE_HEIGHT=800;function getMouseWheelDistance(t){var e,i=t.deltaX,n=t.deltaY;if((i||n)&&t.deltaMode){var s=1===t.deltaMode?LINE_HEIGHT:PAGE_HEIGHT;i*=s,n*=s}return t.shiftKey&&!i&&(n=(e=[i,n])[0],i=e[1]),{x:i,y:n}}function stop(t){t.stopPropagation()}function prevent(t){!1!==t.cancelable&&t.preventDefault()}function stopAndPrevent(t){!1!==t.cancelable&&t.preventDefault(),t.stopPropagation()}function preventDraggable(t,e){if(void 0!==t&&(!0!==e||!0!==t.__dragPrevented)){var i=!0===e?function(t){t.__dragPrevented=!0,t.addEventListener("dragstart",prevent,listenOpts.notPassiveCapture)}:function(t){delete t.__dragPrevented,t.removeEventListener("dragstart",prevent,listenOpts.notPassiveCapture)};t.querySelectorAll("a, img").forEach(i)}}function create(t,e){void 0===e&&(e={});var i=e.bubbles;void 0===i&&(i=!1);var n=e.cancelable;void 0===n&&(n=!1);try{return new Event(t,{bubbles:i,cancelable:n})}catch(e){var s=document.createEvent("Event");return s.initEvent(t,i,n),s}}var event={listenOpts:listenOpts,leftClick:leftClick,middleClick:middleClick,rightClick:rightClick,position:position,getEventPath:getEventPath,getMouseWheelDistance:getMouseWheelDistance,stop:stop,prevent:prevent,stopAndPrevent:stopAndPrevent,preventDraggable:preventDraggable,create:create};function debounce(t,e,i){var n;function s(){var s=this,o=arguments;clearTimeout(n),i&&!n&&t.apply(this,o),n=setTimeout(function(){n=null,i||t.apply(s,o)},e)}return void 0===e&&(e=250),s.cancel=function(){clearTimeout(n)},s}var SIZE_LIST=["sm","md","lg","xl"],Screen={width:0,height:0,sizes:{sm:600,md:1024,lg:1440,xl:1920},lt:{sm:!0,md:!0,lg:!0,xl:!0},gt:{xs:!1,sm:!1,md:!1,lg:!1},xs:!0,sm:!1,md:!1,lg:!1,xl:!1,setSizes:function(){},setDebounce:function(){},install:function(t,e){var i=this;if(!0!==isSSR){var n,s=function(t){window.innerHeight!==i.height&&(i.height=window.innerHeight);var e=window.innerWidth;if(e!==i.width)i.width=e;else if(!0!==t)return;var n=i.sizes;i.gt.xs=e>=n.sm,i.gt.sm=e>=n.md,i.gt.md=e>=n.lg,i.gt.lg=e>=n.xl,i.lt.sm=e<n.sm,i.lt.md=e<n.md,i.lt.lg=e<n.lg,i.lt.xl=e<n.xl,i.xs=i.lt.sm,i.sm=i.gt.xs&&i.lt.md,i.md=i.gt.sm&&i.lt.lg,i.lg=i.gt.md&&i.lt.xl,i.xl=i.gt.lg},o={},r=16;this.setSizes=function(t){SIZE_LIST.forEach(function(e){void 0!==t[e]&&(o[e]=t[e])})},this.setDebounce=function(t){r=t};var a=function(){var t=getComputedStyle(document.body);t.getPropertyValue("--q-size-sm")&&SIZE_LIST.forEach(function(e){i.sizes[e]=parseInt(t.getPropertyValue("--q-size-"+e),10)}),i.setSizes=function(t){SIZE_LIST.forEach(function(e){t[e]&&(i.sizes[e]=t[e])}),s(!0)},i.setDebounce=function(t){var e=function(){s()};n&&window.removeEventListener("resize",n,listenOpts.passive),n=t>0?debounce(e,t):e,window.addEventListener("resize",n,listenOpts.passive)},i.setDebounce(r),Object.keys(o).length>0?(i.setSizes(o),o=void 0):s()};!0===fromSSR?e.takeover.push(a):a(),Vue.util.defineReactive(t,"screen",this)}else t.screen=this}},getTrue=function(){return!0},History={__history:[],add:function(){},remove:function(){},install:function(t,e){var i=this;if(!0!==isSSR&&!0===t.platform.is.cordova){this.add=function(t){void 0===t.condition&&(t.condition=getTrue),i.__history.push(t)},this.remove=function(t){var e=i.__history.indexOf(t);e>=0&&i.__history.splice(e,1)};var n=void 0===e.cordova||!1!==e.cordova.backButtonExit;document.addEventListener("deviceready",function(){document.addEventListener("backbutton",function(){if(i.__history.length){var t=i.__history[i.__history.length-1];!0===t.condition()&&(i.__history.pop(),t.handler())}else n&&"#/"===window.location.hash?navigator.app.exitApp():window.history.back()},!1)})}}},langEn={isoName:"en-us",nativeName:"English (US)",label:{clear:"Clear",ok:"OK",cancel:"Cancel",close:"Close",set:"Set",select:"Select",reset:"Reset",remove:"Remove",update:"Update",create:"Create",search:"Search",filter:"Filter",refresh:"Refresh"},date:{days:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),daysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),firstDayOfWeek:0,format24h:!1},table:{noData:"No data available",noResults:"No matching records found",loading:"Loading...",selectedRecords:function(t){return 1===t?"1 record selected.":(0===t?"No":t)+" records selected."},recordsPerPage:"Records per page:",allRows:"All",pagination:function(t,e,i){return t+"-"+e+" of "+i},columns:"Columns"},editor:{url:"URL",bold:"Bold",italic:"Italic",strikethrough:"Strikethrough",underline:"Underline",unorderedList:"Unordered List",orderedList:"Ordered List",subscript:"Subscript",superscript:"Superscript",hyperlink:"Hyperlink",toggleFullscreen:"Toggle Fullscreen",quote:"Quote",left:"Left align",center:"Center align",right:"Right align",justify:"Justify align",print:"Print",outdent:"Decrease indentation",indent:"Increase indentation",removeFormat:"Remove formatting",formatting:"Formatting",fontSize:"Font Size",align:"Align",hr:"Insert Horizontal Rule",undo:"Undo",redo:"Redo",header1:"Header 1",header2:"Header 2",header3:"Header 3",header4:"Header 4",header5:"Header 5",header6:"Header 6",paragraph:"Paragraph",code:"Code",size1:"Very small",size2:"A bit small",size3:"Normal",size4:"Medium-large",size5:"Big",size6:"Very big",size7:"Maximum",defaultFont:"Default Font",viewSource:"View Source"},tree:{noNodes:"No nodes available",noResults:"No matching nodes found"}},lang={install:function(t,e,i){var n=this;!0===isSSR&&e.server.push(function(t,e){var i={lang:t.lang.isoName,dir:!0===t.lang.rtl?"rtl":"ltr"},n=e.ssr.setHtmlAttrs;"function"==typeof n?n(i):e.ssr.Q_HTML_ATTRS=Object.keys(i).map(function(t){return t+"="+i[t]}).join(" ")}),this.set=function(e){if(void 0===e&&(e=langEn),e.set=n.set,e.getLocale=n.getLocale,e.rtl=e.rtl||!1,!1===isSSR){var i=document.documentElement;i.setAttribute("dir",e.rtl?"rtl":"ltr"),i.setAttribute("lang",e.isoName)}!0===isSSR||void 0!==t.lang?t.lang=e:Vue.util.defineReactive(t,"lang",e),n.isoName=e.isoName,n.nativeName=e.nativeName,n.props=e},this.set(i)},getLocale:function(){if(!0!==isSSR){var t=navigator.language||navigator.languages[0]||navigator.browserLanguage||navigator.userLanguage||navigator.systemLanguage;return t?t.toLowerCase():void 0}}};function rgbToHex(t){var e=t.r,i=t.g,n=t.b,s=t.a,o=void 0!==s;if(e=Math.round(e),i=Math.round(i),n=Math.round(n),e>255||i>255||n>255||o&&s>100)throw new TypeError("Expected 3 numbers below 256 (and optionally one below 100)");return s=o?(256|Math.round(255*s/100)).toString(16).slice(1):"","#"+(n|i<<8|e<<16|1<<24).toString(16).slice(1)+s}function rgbToString(t){var e=t.r,i=t.g,n=t.b,s=t.a;return"rgb"+(void 0!==s?"a":"")+"("+e+","+i+","+n+(void 0!==s?","+s/100:"")+")"}function stringToRgb(t){if("string"!=typeof t)throw new TypeError("Expected a string");if((t=t.replace(/ /g,"")).startsWith("#"))return hexToRgb(t);var e=t.substring(t.indexOf("(")+1,t.length-1).split(",");return{r:parseInt(e[0],10),g:parseInt(e[1],10),b:parseInt(e[2],10),a:void 0!==e[3]?100*parseFloat(e[3]):void 0}}function hexToRgb(t){if("string"!=typeof t)throw new TypeError("Expected a string");3===(t=t.replace(/^#/,"")).length?t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]:4===t.length&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]);var e=parseInt(t,16);return t.length>6?{r:e>>24&255,g:e>>16&255,b:e>>8&255,a:Math.round((255&e)/2.55)}:{r:e>>16,g:e>>8&255,b:255&e}}function hsvToRgb(t){var e,i,n,s,o,r,a,l,c=t.h,u=t.s,h=t.v,d=t.a;switch(r=(h/=100)*(1-(u/=100)),a=h*(1-(o=6*(c/=360)-(s=Math.floor(6*c)))*u),l=h*(1-(1-o)*u),s%6){case 0:e=h,i=l,n=r;break;case 1:e=a,i=h,n=r;break;case 2:e=r,i=h,n=l;break;case 3:e=r,i=a,n=h;break;case 4:e=l,i=r,n=h;break;case 5:e=h,i=r,n=a}return{r:Math.round(255*e),g:Math.round(255*i),b:Math.round(255*n),a:d}}function rgbToHsv(t){var e,i=t.r,n=t.g,s=t.b,o=t.a,r=Math.max(i,n,s),a=Math.min(i,n,s),l=r-a,c=0===r?0:l/r,u=r/255;switch(r){case a:e=0;break;case i:e=n-s+l*(n<s?6:0),e/=6*l;break;case n:e=s-i+2*l,e/=6*l;break;case s:e=i-n+4*l,e/=6*l}return{h:Math.round(360*e),s:Math.round(100*c),v:Math.round(100*u),a:o}}var reRGBA=/^\s*rgb(a)?\s*\((\s*(\d+)\s*,\s*?){2}(\d+)\s*,?\s*([01]?\.?\d*?)?\s*\)\s*$/;function textToRgb(t){if("string"!=typeof t)throw new TypeError("Expected a string");var e=reRGBA.exec(t);if(e){var i={r:Math.min(255,parseInt(e[2],10)),g:Math.min(255,parseInt(e[3],10)),b:Math.min(255,parseInt(e[4],10))};return e[1]&&(i.a=Math.min(1,parseFloat(e[5]))),i}return hexToRgb(t)}function lighten(t,e){if("string"!=typeof t)throw new TypeError("Expected a string as color");if("number"!=typeof e)throw new TypeError("Expected a numeric percent");var i=textToRgb(t),n=e<0?0:255,s=Math.abs(e)/100,o=i.r,r=i.g,a=i.b;return"#"+(16777216+65536*(Math.round((n-o)*s)+o)+256*(Math.round((n-r)*s)+r)+(Math.round((n-a)*s)+a)).toString(16).slice(1)}function luminosity(t){if("string"!=typeof t&&(!t||void 0===t.r))throw new TypeError("Expected a string or a {r, g, b} object as color");var e="string"==typeof t?textToRgb(t):t,i=e.r/255,n=e.g/255,s=e.b/255;return.2126*(i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4))}function setBrand(t,e,i){if(void 0===i&&(i=document.body),"string"!=typeof t)throw new TypeError("Expected a string as color");if("string"!=typeof e)throw new TypeError("Expected a string as value");if(!(i instanceof Element))throw new TypeError("Expected a DOM element");switch(i.style.setProperty("--q-color-"+t,e),t){case"negative":case"warning":i.style.setProperty("--q-color-"+t+"-l",lighten(e,46));break;case"light":i.style.setProperty("--q-color-"+t+"-d",lighten(e,-10))}}function getBrand(t,e){if(void 0===e&&(e=document.body),"string"!=typeof t)throw new TypeError("Expected a string as color");if(!(e instanceof Element))throw new TypeError("Expected a DOM element");return getComputedStyle(e).getPropertyValue("--q-color-"+t).trim()||null}var colors={rgbToHex:rgbToHex,hexToRgb:hexToRgb,hsvToRgb:hsvToRgb,rgbToHsv:rgbToHsv,textToRgb:textToRgb,lighten:lighten,luminosity:luminosity,setBrand:setBrand,getBrand:getBrand};function getMobilePlatform(t){return!0===t.ios?"ios":!0===t.android?"android":void 0}function getBodyClasses(t,e){var i=t.is,n=t.has,s=t.within,o=[!0===i.desktop?"desktop":"mobile",(!1===n.touch?"no-":"")+"touch"];if(!0===i.mobile){var r=getMobilePlatform(i);void 0!==r&&o.push("platform-"+r)}if(!0===i.nativeMobile){var a=i.nativeMobileWrapper;o.push(a),o.push("native-mobile"),!0!==i.ios||void 0!==e[a]&&!1===e[a].iosStatusBarPadding||o.push("q-ios-padding")}else!0===i.electron?o.push("electron"):!0===i.bex&&o.push("bex");return!0===s.iframe&&o.push("within-iframe"),o}function clientApply(t){!0===client.is.ie&&11===client.is.versionNumber?t.forEach(function(t){return document.body.classList.add(t)}):document.body.classList.add.apply(document.body.classList,t)}function clientUpdate(){var t=[];!0===client.has.touch&&(document.body.classList.remove("no-touch"),t.push("touch")),!0===client.within.iframe&&t.push("within-iframe"),t.length>0&&clientApply(t)}function setColors(t){for(var e in t)setBrand(e,t[e])}var Body={install:function(t,e){!0===isSSR?t.server.push(function(t,i){var n=getBodyClasses(t.platform,e),s=i.ssr.setBodyClasses;"function"==typeof s?s(n):i.ssr.Q_BODY_CLASSES=n.join(" ")}):(!0===fromSSR?clientUpdate():clientApply(getBodyClasses(client,e)),void 0!==e.brand&&setColors(e.brand),!0===client.is.ios&&document.body.addEventListener("touchstart",function(){}))}},materialIcons={name:"material-icons",type:{positive:"check_circle",negative:"warning",info:"info",warning:"priority_high"},arrow:{up:"arrow_upward",right:"arrow_forward",down:"arrow_downward",left:"arrow_back",dropdown:"arrow_drop_down"},chevron:{left:"chevron_left",right:"chevron_right"},colorPicker:{spectrum:"gradient",tune:"tune",palette:"style"},pullToRefresh:{icon:"refresh"},carousel:{left:"chevron_left",right:"chevron_right",navigationIcon:"lens",thumbnails:"view_carousel"},chip:{remove:"cancel",selected:"check"},datetime:{arrowLeft:"chevron_left",arrowRight:"chevron_right",now:"access_time",today:"today"},editor:{bold:"format_bold",italic:"format_italic",strikethrough:"strikethrough_s",underline:"format_underlined",unorderedList:"format_list_bulleted",orderedList:"format_list_numbered",subscript:"vertical_align_bottom",superscript:"vertical_align_top",hyperlink:"link",toggleFullscreen:"fullscreen",quote:"format_quote",left:"format_align_left",center:"format_align_center",right:"format_align_right",justify:"format_align_justify",print:"print",outdent:"format_indent_decrease",indent:"format_indent_increase",removeFormat:"format_clear",formatting:"text_format",fontSize:"format_size",align:"format_align_left",hr:"remove",undo:"undo",redo:"redo",header:"format_size",code:"code",size:"format_size",font:"font_download",viewSource:"code"},expansionItem:{icon:"keyboard_arrow_down",denseIcon:"arrow_drop_down"},fab:{icon:"add",activeIcon:"close"},field:{clear:"cancel",error:"error"},pagination:{first:"first_page",prev:"keyboard_arrow_left",next:"keyboard_arrow_right",last:"last_page"},rating:{icon:"grade"},stepper:{done:"check",active:"edit",error:"warning"},tabs:{left:"chevron_left",right:"chevron_right",up:"keyboard_arrow_up",down:"keyboard_arrow_down"},table:{arrowUp:"arrow_upward",warning:"warning",prevPage:"chevron_left",nextPage:"chevron_right"},tree:{icon:"play_arrow"},uploader:{done:"done",clear:"clear",add:"add_box",upload:"cloud_upload",removeQueue:"clear_all",removeUploaded:"done_all"}},iconSet={__installed:!1,install:function(t,e){var i=this;this.set=function(e){void 0===e&&(e=materialIcons),e.set=i.set,!0===isSSR||void 0!==t.iconSet?t.iconSet=e:Vue.util.defineReactive(t,"iconSet",e),i.name=e.name,i.def=e},this.set(e)}},queues={server:[],takeover:[]},$q={version:version};function install(t,e){if(void 0===e&&(e={}),!this.__installed){this.__installed=!0;var i=e.config||{};if(Platform.install($q,queues),Body.install(queues,i),Screen.install($q,queues),History.install($q,i),lang.install($q,queues,e.lang),iconSet.install($q,e.iconSet),!0===isSSR?t.mixin({beforeCreate:function(){this.$q=this.$root.$options.$q}}):t.prototype.$q=$q,e.components&&Object.keys(e.components).forEach(function(i){var n=e.components[i];"function"==typeof n&&t.component(n.options.name,n)}),e.directives&&Object.keys(e.directives).forEach(function(i){var n=e.directives[i];void 0!==n.name&&void 0!==n.unbind&&t.directive(n.name,n)}),e.plugins){var n={$q:$q,queues:queues,cfg:i};Object.keys(e.plugins).forEach(function(t){var i=e.plugins[t];"function"==typeof i.install&&i!==Platform&&i!==Screen&&i.install(n)})}}}var mixin={mounted:function(){var t=this;queues.takeover.forEach(function(e){e(t.$q)})}};function ssrUpdate(t){if(t.ssr){var e=Object.assign({},$q);Object.assign(t.ssr,{Q_HEAD_TAGS:"",Q_BODY_ATTRS:"",Q_BODY_TAGS:""}),queues.server.forEach(function(i){i(e,t)}),t.app.$q=e}else{var i=t.app.mixins||[];i.includes(mixin)||(t.app.mixins=i.concat(mixin))}}var VuePlugin={version:version,install:install,lang:lang,iconSet:iconSet,ssrUpdate:ssrUpdate},units=["B","KB","MB","GB","TB","PB"];function humanStorageSize(t){for(var e=0;parseInt(t,10)>=1024&&e<units.length-1;)t/=1024,++e;return t.toFixed(1)+" "+units[e]}function capitalize(t){return t.charAt(0).toUpperCase()+t.slice(1)}function between(t,e,i){return i<=e?e:Math.min(i,Math.max(e,t))}function normalizeToInterval(t,e,i){if(i<=e)return e;var n=i-e+1,s=e+(t-e)%n;return s<e&&(s=n+s),0===s?0:s}function pad(t,e,i){if(void 0===e&&(e=2),void 0===i&&(i="0"),void 0===t||null===t)return t;var n=""+t;return n.length>=e?n:new Array(e-n.length+1).join(i)+n}var format={humanStorageSize:humanStorageSize,capitalize:capitalize,between:between,normalizeToInterval:normalizeToInterval,pad:pad},xhr=isSSR?null:XMLHttpRequest,send=isSSR?null:xhr.prototype.send,stackStart=[],stackStop=[],highjackCount=0;function translate(t){var e=t.p,i=t.pos,n=t.active,s=t.horiz,o=t.reverse,r=t.dir,a=1,l=1;return s?(o&&(a=-1),"bottom"===i&&(l=-1),{transform:"translate3d("+a*(e-100)+"%,"+(n?0:-200*l)+"%,0)"}):(o&&(l=-1),"right"===i&&(a=-1),{transform:"translate3d("+(n?0:r*a*-200)+"%,"+l*(e-100)+"%,0)"})}function inc(t,e){return"number"!=typeof e&&(e=t<25?3*Math.random()+3:t<65?3*Math.random():t<85?2*Math.random():t<99?.6:0),between(t+e,0,100)}function highjackAjax(t,e){function i(){stackStop.forEach(function(t){t()})}stackStart.push(t),stackStop.push(e),++highjackCount>1||(xhr.prototype.send=function(){stackStart.forEach(function(t){t()}),this.addEventListener("loadend",i,!1),send.apply(this,arguments)})}function restoreAjax(t,e){stackStart.splice(stackStart.indexOf(t),1),stackStop.splice(stackStop.indexOf(e),1),(highjackCount=Math.max(0,highjackCount-1))||(xhr.prototype.send=send)}var QAjaxBar=Vue.extend({name:"QAjaxBar",props:{position:{type:String,default:"top",validator:function(t){return["top","right","bottom","left"].includes(t)}},size:{type:String,default:"2px"},color:{type:String,default:"red"},skipHijack:Boolean,reverse:Boolean},data:function(){return{calls:0,progress:0,onScreen:!1,animate:!0}},computed:{classes:function(){return"q-loading-bar q-loading-bar--"+this.position+" bg-"+this.color+(!0===this.animate?"":" no-transition")},style:function(){var t=this.onScreen,e=translate({p:this.progress,pos:this.position,active:t,horiz:this.horizontal,reverse:this.$q.lang.rtl&&["top","bottom"].includes(this.position)?!this.reverse:this.reverse,dir:this.$q.lang.rtl?-1:1});return e[this.sizeProp]=this.size,e.opacity=t?1:0,e},horizontal:function(){return"top"===this.position||"bottom"===this.position},sizeProp:function(){return this.horizontal?"height":"width"}},methods:{start:function(t){var e=this;void 0===t&&(t=300);var i=this.speed;this.speed=Math.max(0,t)||0,this.calls++,this.calls>1?0===i&&t>0?this.__work():i>0&&t<=0&&clearTimeout(this.timer):(clearTimeout(this.timer),this.$emit("start"),this.progress=0,!0!==this.onScreen&&(this.onScreen=!0,this.animate=!1,this.timer=setTimeout(function(){e.animate=!0,t>0&&e.__work()},100)))},increment:function(t){this.calls>0&&(this.progress=inc(this.progress,t))},stop:function(){var t=this;if(this.calls=Math.max(0,this.calls-1),!(this.calls>0)){clearTimeout(this.timer),this.$emit("stop");var e=function(){t.animate=!0,t.progress=100,t.timer=setTimeout(function(){t.onScreen=!1},1e3)};0===this.progress?this.timer=setTimeout(e,1):e()}},__work:function(){var t=this;this.progress<100&&(this.timer=setTimeout(function(){t.increment(),t.__work()},this.speed))}},mounted:function(){!0!==this.skipHijack&&(this.hijacked=!0,highjackAjax(this.start,this.stop))},beforeDestroy:function(){clearTimeout(this.timer),this.hijacked&&restoreAjax(this.start,this.stop)},render:function(t){return t("div",{class:this.classes,style:this.style})}}),sizes={xs:18,sm:24,md:32,lg:38,xl:46},SizeMixin={props:{size:String},computed:{sizeStyle:function(){if(void 0!==this.size)return{fontSize:this.size in sizes?sizes[this.size]+"px":this.size}}}};function slot(t,e){return void 0!==t.$scopedSlots[e]?t.$scopedSlots[e]():void 0}var QIcon=Vue.extend({name:"QIcon",mixins:[SizeMixin],props:{name:String,color:String,left:Boolean,right:Boolean},computed:{type:function(){var t,e=this.name;if(!e)return{cls:void 0,content:void 0};var i="q-icon"+(!0===this.left?" on-left":"")+(!0===this.right?" on-right":"");if(!0===e.startsWith("img:"))return{img:!0,cls:i,src:e.substring(4)};var n=" ";return/^fa[s|r|l|b|d]{0,1} /.test(e)||!0===e.startsWith("icon-")?t=e:!0===e.startsWith("bt-")?t="bt "+e:!0===e.startsWith("eva-")?t="eva "+e:!0===/^ion-(md|ios|logo)/.test(e)?t="ionicons "+e:!0===e.startsWith("ion-")?t="ionicons ion-"+(!0===this.$q.platform.is.ios?"ios":"md")+e.substr(3):!0===e.startsWith("mdi-")?t="mdi "+e:!0===e.startsWith("iconfont ")?t=""+e:!0===e.startsWith("ti-")?t="themify-icon "+e:(t="material-icons",!0===e.startsWith("o_")?(e=e.substring(2),t+="-outlined"):!0===e.startsWith("r_")?(e=e.substring(2),t+="-round"):!0===e.startsWith("s_")&&(e=e.substring(2),t+="-sharp"),n=e),{cls:t+" "+i+(void 0!==this.color?" text-"+this.color:""),content:n}}},render:function(t){return!0===this.type.img?t("img",{staticClass:this.type.cls,style:this.sizeStyle,on:this.$listeners,attrs:{src:this.type.src}}):t("i",{staticClass:this.type.cls,style:this.sizeStyle,on:this.$listeners,attrs:{"aria-hidden":!0}},[this.type.content,slot(this,"default")])}}),QAvatar=Vue.extend({name:"QAvatar",mixins:[SizeMixin],props:{fontSize:String,color:String,textColor:String,icon:String,square:Boolean,rounded:Boolean},computed:{contentClass:function(){var t;return(t={})["bg-"+this.color]=this.color,t["text-"+this.textColor+" q-chip--colored"]=this.textColor,t["q-avatar__content--square"]=this.square,t["rounded-borders"]=this.rounded,t},contentStyle:function(){if(this.fontSize)return{fontSize:this.fontSize}}},methods:{__getContent:function(t){return void 0!==this.icon?[t(QIcon,{props:{name:this.icon}})].concat(slot(this,"default")):slot(this,"default")}},render:function(t){return t("div",{staticClass:"q-avatar",style:this.sizeStyle,on:this.$listeners},[t("div",{staticClass:"q-avatar__content row flex-center overflow-hidden",class:this.contentClass,style:this.contentStyle},[this.__getContent(t)])])}}),QBadge=Vue.extend({name:"QBadge",props:{color:String,textColor:String,floating:Boolean,transparent:Boolean,multiLine:Boolean,label:[Number,String],align:{type:String,validator:function(t){return["top","middle","bottom"].includes(t)}}},computed:{style:function(){if(void 0!==this.align)return{verticalAlign:this.align}},classes:function(){return"q-badge flex inline items-center no-wrap q-badge--"+(!0===this.multiLine?"multi":"single")+"-line"+(void 0!==this.color?" bg-"+this.color:"")+(void 0!==this.textColor?" text-"+this.textColor:"")+(!0===this.floating?" q-badge--floating":"")+(!0===this.transparent?" q-badge--transparent":"")}},render:function(t){return t("div",{style:this.style,class:this.classes,on:this.$listeners},void 0!==this.label?[this.label]:slot(this,"default"))}}),QBanner=Vue.extend({name:"QBanner",props:{inlineActions:Boolean,dense:Boolean,rounded:Boolean},render:function(t){var e=slot(this,"action");return t("div",{staticClass:"q-banner row items-center",class:{"q-banner--top-padding":void 0!==e&&!this.inlineActions,"q-banner--dense":this.dense,"rounded-borders":this.rounded},on:this.$listeners},[t("div",{staticClass:"q-banner__avatar col-auto row items-center"},slot(this,"avatar")),t("div",{staticClass:"q-banner__content col text-body2"},slot(this,"default")),void 0!==e?t("div",{staticClass:"q-banner__actions row items-center justify-end",class:this.inlineActions?"col-auto":"col-all"},e):null])}}),QBar=Vue.extend({name:"QBar",props:{dense:Boolean,dark:Boolean},computed:{classes:function(){return"q-bar--"+(this.dense?"dense":"standard")+" q-bar--"+(this.dark?"dark":"light")}},render:function(t){return t("div",{staticClass:"q-bar row no-wrap items-center",class:this.classes,on:this.$listeners},slot(this,"default"))}}),alignMap={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},alignValues=Object.keys(alignMap),AlignMixin={props:{align:{type:String,validator:function(t){return alignValues.includes(t)}}},computed:{alignClass:function(){var t=void 0===this.align?!0===this.vertical?"stretch":"left":this.align;return(!0===this.vertical?"items":"justify")+"-"+alignMap[t]}}},QBreadcrumbs=Vue.extend({name:"QBreadcrumbs",mixins:[AlignMixin],props:{separator:{type:String,default:"/"},separatorColor:String,activeColor:{type:String,default:"primary"},gutter:{type:String,validator:function(t){return["none","xs","sm","md","lg","xl"].includes(t)},default:"sm"}},computed:{classes:function(){return this.alignClass+("none"===this.gutter?"":" q-gutter-"+this.gutter)},sepClass:function(){if(this.separatorColor)return"text-"+this.separatorColor},activeClass:function(){return"text-"+this.activeColor}},render:function(t){var e=this,i=slot(this,"default");if(void 0!==i){var n=1,s=[],o=i.filter(function(t){return void 0!==t.tag&&t.tag.endsWith("-QBreadcrumbsEl")}).length,r=this.$scopedSlots.separator||function(){return e.separator};return i.forEach(function(i){if(void 0!==i.tag&&i.tag.endsWith("-QBreadcrumbsEl")){var a=n<o;n++,s.push(t("div",{staticClass:"flex items-center",class:a?e.activeClass:"q-breadcrumbs--last"},[i])),a&&s.push(t("div",{staticClass:"q-breadcrumbs__separator",class:e.sepClass},r()))}else s.push(i)}),t("div",{staticClass:"q-breadcrumbs",on:this.$listeners},[t("div",{staticClass:"flex items-center",class:this.classes},s)])}}}),routerLinkProps={to:[String,Object],exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,disable:Boolean},RouterLinkMixin={props:routerLinkProps,computed:{hasRouterLink:function(){return!0!==this.disable&&void 0!==this.to&&null!==this.to&&""!==this.to},routerLinkProps:function(){return{to:this.to,exact:this.exact,append:this.append,replace:this.replace,activeClass:this.activeClass||"q-router-link--active",exactActiveClass:this.exactActiveClass||"q-router-link--exact-active",event:!0===this.disable?"":void 0}}}},QBreadcrumbsEl=Vue.extend({name:"QBreadcrumbsEl",mixins:[RouterLinkMixin],props:{label:String,icon:String},render:function(t){var e;return t(!0===this.hasRouterLink?"router-link":"span",((e={staticClass:"q-breadcrumbs__el q-link flex inline items-center relative-position",props:!0===this.hasRouterLink?this.routerLinkProps:null})[!0===this.hasRouterLink?"nativeOn":"on"]=this.$listeners,e),[void 0!==this.icon?t(QIcon,{staticClass:"q-breadcrumbs__el-icon",class:void 0!==this.label?"q-breadcrumbs__el-icon--with-label":null,props:{name:this.icon}}):null,this.label].concat(slot(this,"default")))}}),mixin$1={props:{color:String,size:{type:[Number,String],default:"1em"}},computed:{cSize:function(){return this.size in sizes?sizes[this.size]+"px":this.size},classes:function(){if(this.color)return"text-"+this.color}}},QSpinner=Vue.extend({name:"QSpinner",mixins:[mixin$1],props:{thickness:{type:Number,default:5}},render:function(t){return t("svg",{staticClass:"q-spinner q-spinner-mat",class:this.classes,on:this.$listeners,attrs:{width:this.cSize,height:this.cSize,viewBox:"25 25 50 50"}},[t("circle",{staticClass:"path",attrs:{cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":this.thickness,"stroke-miterlimit":"10"}})])}});function offset(t){if(t===window)return{top:0,left:0};var e=t.getBoundingClientRect();return{top:e.top,left:e.left}}function style(t,e){return window.getComputedStyle(t).getPropertyValue(e)}function height(t){return t===window?window.innerHeight:t.getBoundingClientRect().height}function width(t){return t===window?window.innerWidth:t.getBoundingClientRect().width}function css(t,e){var i=t.style;Object.keys(e).forEach(function(t){i[t]=e[t]})}function cssBatch(t,e){t.forEach(function(t){return css(t,e)})}function ready(t){if("function"==typeof t)return"loading"!==document.readyState?t():void document.addEventListener("DOMContentLoaded",t,!1)}function childHasFocus(t,e){if(void 0===t||!0===t.contains(e))return!0;for(var i=t.nextElementSibling;null!==i;i=i.nextElementSibling)if(i.contains(e))return!0;return!1}var dom={offset:offset,style:style,height:height,width:width,css:css,cssBatch:cssBatch,ready:ready};function showRipple(t,e,i,n){!0===i.modifiers.stop&&stop(t);var s=i.modifiers,o=s.center,r=s.color;o=!0===o||!0===n;var a=document.createElement("span"),l=document.createElement("span"),c=position(t),u=e.getBoundingClientRect(),h=u.left,d=u.top,p=u.width,f=u.height,m=Math.sqrt(p*p+f*f),v=m/2,g=(p-m)/2+"px",_=o?g:c.left-h-v+"px",b=(f-m)/2+"px",y=o?b:c.top-d-v+"px";l.className="q-ripple__inner",css(l,{height:m+"px",width:m+"px",transform:"translate3d("+_+", "+y+", 0) scale3d(0.2, 0.2, 1)",opacity:0}),a.className="q-ripple"+(r?" text-"+r:""),a.setAttribute("dir","ltr"),a.appendChild(l),e.appendChild(a);var S=function(){a.remove(),clearTimeout(C)};i.abort.push(S);var C=setTimeout(function(){l.classList.add("q-ripple__inner--enter"),l.style.transform="translate3d("+g+", "+b+", 0) scale3d(1, 1, 1)",l.style.opacity=.2,C=setTimeout(function(){l.classList.remove("q-ripple__inner--enter"),l.classList.add("q-ripple__inner--leave"),l.style.opacity=0,C=setTimeout(function(){a.remove(),i.abort.splice(i.abort.indexOf(S),1)},275)},250)},50)}function updateCtx(t,e){var i=e.value,n=e.modifiers,s=e.arg;t.enabled=!1!==i,!0===t.enabled&&(t.modifiers=Object(i)===i?{stop:!0===i.stop||!0===n.stop,center:!0===i.center||!0===n.center,color:i.color||s,keyCodes:[].concat(i.keyCodes||13)}:{stop:n.stop,center:n.center,color:s,keyCodes:[13]})}var Ripple={name:"ripple",inserted:function(t,e){var i={modifiers:{},abort:[],click:function(e){!0===i.enabled&&(!0!==client.is.ie||e.clientX>=0)&&showRipple(e,t,i,!0===e.qKeyEvent)},keyup:function(e){!0===i.enabled&&i.modifiers.keyCodes.indexOf(e.keyCode)>-1&&!0!==e.qKeyEvent&&showRipple(e,t,i,!0)}};updateCtx(i,e),t.__qripple&&(t.__qripple_old=t.__qripple),t.__qripple=i,t.addEventListener("click",i.click,listenOpts.passive),t.addEventListener("keyup",i.keyup,listenOpts.passive)},update:function(t,e){void 0!==t.__qripple&&updateCtx(t.__qripple,e)},unbind:function(t){var e=t.__qripple_old||t.__qripple;void 0!==e&&(e.abort.forEach(function(t){t()}),t.removeEventListener("click",e.click,listenOpts.passive),t.removeEventListener("keyup",e.keyup,listenOpts.passive),delete t[t.__qripple_old?"__qripple_old":"__qripple"])}},RippleMixin={directives:{Ripple:Ripple},props:{ripple:{type:[Boolean,Object],default:!0}}},sizes$1={xs:8,sm:10,md:14,lg:20,xl:24},BtnMixin={mixins:[RippleMixin,AlignMixin],props:{type:String,to:[Object,String],replace:Boolean,label:[Number,String],icon:String,iconRight:String,round:Boolean,outline:Boolean,flat:Boolean,unelevated:Boolean,rounded:Boolean,push:Boolean,glossy:Boolean,size:String,fab:Boolean,fabMini:Boolean,color:String,textColor:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,tabindex:[Number,String],align:{default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},computed:{style:function(){if(!1===this.fab&&!1===this.fabMini&&this.size)return{fontSize:this.size in sizes$1?sizes$1[this.size]+"px":this.size}},isRound:function(){return!0===this.round||!0===this.fab||!0===this.fabMini},isDisabled:function(){return!0===this.disable||!0===this.loading},computedTabIndex:function(){return!0===this.isDisabled?-1:this.tabindex||0},hasRouterLink:function(){return!0!==this.disable&&void 0!==this.to&&null!==this.to&&""!==this.to},isLink:function(){return"a"===this.type||!0===this.hasRouterLink},design:function(){return!0===this.flat?"flat":!0===this.outline?"outline":!0===this.push?"push":!0===this.unelevated?"unelevated":"standard"},attrs:function(){var t={tabindex:this.computedTabIndex};return"a"!==this.type&&(t.type=this.type||"button"),!0===this.hasRouterLink&&(t.href=this.$router.resolve(this.to).href),!0===this.isDisabled&&(t.disabled=!0),t},classes:function(){var t;return void 0!==this.color?t=!0===this.flat||!0===this.outline?"text-"+(this.textColor||this.color):"bg-"+this.color+" text-"+(this.textColor||"white"):this.textColor&&(t="text-"+this.textColor),"q-btn--"+this.design+" q-btn--"+(!0===this.isRound?"round":"rectangle")+(void 0!==t?" "+t:"")+(!0!==this.isDisabled?" q-focusable q-hoverable":" disabled")+(!0===this.fab?" q-btn--fab":!0===this.fabMini?" q-btn--fab-mini":"")+(!0===this.noCaps?" q-btn--no-uppercase":"")+(!0===this.rounded?" q-btn--rounded":"")+(!0===this.dense?" q-btn--dense":"")+(!0===this.stretch?" no-border-radius self-stretch":"")+(!0===this.glossy?" glossy":"")},innerClasses:function(){return this.alignClass+(!0===this.stack?" column":" row")+(!0===this.noWrap?" no-wrap text-no-wrap":"")+(!0===this.loading?" q-btn__content--hidden":"")}}},passiveCapture=listenOpts.passiveCapture,touchTarget=void 0,keyboardTarget=void 0,mouseTarget=void 0,QBtn=Vue.extend({name:"QBtn",mixins:[BtnMixin],props:{percentage:{type:Number,validator:function(t){return t>=0&&t<=100}},darkPercentage:Boolean},computed:{hasLabel:function(){return void 0!==this.label&&null!==this.label&&""!==this.label},computedRipple:function(){return!1!==this.ripple&&Object.assign({keyCodes:[]},!0===this.ripple?{}:this.ripple)}},methods:{click:function(t){var e=this;if(!0!==t.defaultPrevented){if(void 0!==t){var i=document.activeElement;if("submit"===this.type&&(!0===this.$q.platform.is.ie&&(t.clientX<0||t.clientY<0)||i!==document.body&&!1===this.$el.contains(i)&&!1===i.contains(this.$el))){this.$el.focus();var n=function(){document.removeEventListener("keydown",stopAndPrevent,!0),document.removeEventListener("keyup",n,passiveCapture),void 0!==e.$el&&e.$el.removeEventListener("blur",n,passiveCapture)};document.addEventListener("keydown",stopAndPrevent,!0),document.addEventListener("keyup",n,passiveCapture),this.$el.addEventListener("blur",n,passiveCapture)}!0===this.hasRouterLink&&stopAndPrevent(t)}var s=function(){var t=e.$router[!0===e.replace?"replace":"push"](e.to);void 0!==t&&"function"==typeof t.catch&&t.catch(function(){})};this.$emit("click",t,s),!0===this.hasRouterLink&&!1!==t.navigate&&s()}},__onKeydown:function(t){!0===[13,32].includes(t.keyCode)&&(stopAndPrevent(t),keyboardTarget!==this.$el&&(void 0!==keyboardTarget&&this.__cleanup(),this.$el.focus(),keyboardTarget=this.$el,this.$el.classList.add("q-btn--active"),document.addEventListener("keyup",this.__onPressEnd,!0),this.$el.addEventListener("blur",this.__onPressEnd,passiveCapture))),this.$emit("keydown",t)},__onTouchstart:function(t){touchTarget!==this.$el&&(void 0!==touchTarget&&this.__cleanup(),(touchTarget=t.target).addEventListener("touchcancel",this.__onPressEnd,passiveCapture),touchTarget.addEventListener("touchend",this.__onPressEnd,passiveCapture)),this.$emit("touchstart",t)},__onMousedown:function(t){mouseTarget!==this.$el&&(void 0!==mouseTarget&&this.__cleanup(),mouseTarget=this.$el,document.addEventListener("mouseup",this.__onPressEnd,passiveCapture)),this.$emit("mousedown",t)},__onPressEnd:function(t){if(void 0!==t&&"keyup"===t.type){if(keyboardTarget===this.$el&&!0===[13,32].includes(t.keyCode)){var e=new MouseEvent("click",t);e.qKeyEvent=!0,!0===t.defaultPrevented&&e.preventDefault(),this.$el.dispatchEvent(e),stopAndPrevent(t),t.qKeyEvent=!0}this.$emit("keyup",t)}this.__cleanup()},__cleanup:function(){touchTarget!==this.$el&&mouseTarget!==this.$el||void 0===this.$refs.blurTarget||this.$refs.blurTarget===document.activeElement||this.$refs.blurTarget.focus(),void 0!==touchTarget&&touchTarget===this.$el&&(touchTarget.removeEventListener("touchcancel",this.__onPressEnd,passiveCapture),touchTarget.removeEventListener("touchend",this.__onPressEnd,passiveCapture),touchTarget=void 0),mouseTarget===this.$el&&(document.removeEventListener("mouseup",this.__onPressEnd,passiveCapture),mouseTarget=void 0),keyboardTarget===this.$el&&(document.removeEventListener("keyup",this.__onPressEnd,!0),void 0!==this.$el&&this.$el.removeEventListener("blur",this.__onPressEnd,passiveCapture),keyboardTarget=void 0),void 0!==this.$el&&this.$el.classList.remove("q-btn--active")}},beforeDestroy:function(){this.__cleanup()},render:function(t){var e=[].concat(slot(this,"default")),i={staticClass:"q-btn inline q-btn-item non-selectable no-outline",class:this.classes,style:this.style,attrs:this.attrs};return!1===this.isDisabled&&(i.on=Object.assign({},this.$listeners,{click:this.click,keydown:this.__onKeydown,mousedown:this.__onMousedown}),!0===this.$q.platform.has.touch&&(i.on.touchstart=this.__onTouchstart),!1!==this.ripple&&(i.directives=[{name:"ripple",value:this.computedRipple,modifiers:{center:this.isRound}}])),!0===this.hasLabel&&e.unshift(t("div",[this.label])),void 0!==this.icon&&e.unshift(t(QIcon,{props:{name:this.icon,left:!1===this.stack&&!0===this.hasLabel}})),void 0!==this.iconRight&&!1===this.isRound&&e.push(t(QIcon,{props:{name:this.iconRight,right:!1===this.stack&&!0===this.hasLabel}})),t(this.isLink?"a":"button",i,[t("div",{staticClass:"q-focus-helper",ref:"blurTarget",attrs:{tabindex:-1}}),!0===this.loading&&void 0!==this.percentage?t("div",{staticClass:"q-btn__progress absolute-full",class:this.darkPercentage?"q-btn__progress--dark":null,style:{transform:"scale3d("+this.percentage/100+",1,1)"}}):null,t("div",{staticClass:"q-btn__content text-center col items-center q-anchor--skip",class:this.innerClasses},e),null!==this.loading?t("transition",{props:{name:"q-transition--fade"}},!0===this.loading?[t("div",{key:"loading",staticClass:"absolute-full flex flex-center"},void 0!==this.$scopedSlots.loading?this.$scopedSlots.loading():[t(QSpinner)])]:void 0):null])}}),QBtnGroup=Vue.extend({name:"QBtnGroup",props:{unelevated:Boolean,outline:Boolean,flat:Boolean,rounded:Boolean,push:Boolean,stretch:Boolean,glossy:Boolean,spread:Boolean},computed:{classes:function(){var t=this;return["unelevated","outline","flat","rounded","push","stretch","glossy"].filter(function(e){return!0===t[e]}).map(function(t){return"q-btn-group--"+t}).join(" ")}},render:function(t){return t("div",{staticClass:"q-btn-group row no-wrap "+(!0===this.spread?"q-btn-group--spread":"inline"),class:this.classes,on:this.$listeners},slot(this,"default"))}});function clearSelection(){if(void 0!==window.getSelection){var t=window.getSelection();void 0!==t.empty?t.empty():void 0!==t.removeAllRanges&&(t.removeAllRanges(),!0!==Platform.is.mobile&&t.addRange(document.createRange()))}else void 0!==document.selection&&document.selection.empty()}var passive=listenOpts.passive,notPassive=listenOpts.notPassive,AnchorMixin={props:{target:{type:[Boolean,String],default:!0},noParentEvent:Boolean,contextMenu:Boolean},watch:{contextMenu:function(t){void 0!==this.anchorEl&&(this.__unconfigureAnchorEl(!t),this.__configureAnchorEl(t))},target:function(){void 0!==this.anchorEl&&this.__unconfigureAnchorEl(),this.__pickAnchorEl()},noParentEvent:function(t){void 0!==this.anchorEl&&(!0===t?this.__unconfigureAnchorEl():this.__configureAnchorEl())}},methods:{__showCondition:function(t){return void 0!==this.anchorEl&&(void 0===t||(void 0===t.touches||t.touches.length<=1))},__contextClick:function(t){var e=this;this.hide(t),this.$nextTick(function(){e.show(t)}),prevent(t)},__toggleKey:function(t){void 0!==t&&13===t.keyCode&&!0!==t.qKeyEvent&&this.toggle(t)},__mobileTouch:function(t){var e=this;this.__mobileCleanup(t),!0===this.__showCondition(t)&&(this.hide(t),this.anchorEl.classList.add("non-selectable"),this.touchTimer=setTimeout(function(){e.show(t)},300))},__mobileCleanup:function(t){this.anchorEl.classList.remove("non-selectable"),clearTimeout(this.touchTimer),!0===this.showing&&void 0!==t&&clearSelection()},__unconfigureAnchorEl:function(t){var e=this;void 0===t&&(t=this.contextMenu),void 0!==this.anchorEl&&(!0===t?!0===this.$q.platform.is.mobile?(this.anchorEl.removeEventListener("touchstart",this.__mobileTouch,passive),["touchcancel","touchmove","touchend"].forEach(function(t){e.anchorEl.removeEventListener(t,e.__mobileCleanup,passive)})):(this.anchorEl.removeEventListener("click",this.hide,passive),this.anchorEl.removeEventListener("contextmenu",this.__contextClick,notPassive)):(this.anchorEl.removeEventListener("click",this.toggle,passive),this.anchorEl.removeEventListener("keyup",this.__toggleKey,passive)))},__configureAnchorEl:function(t){var e=this;void 0===t&&(t=this.contextMenu),!0!==this.noParentEvent&&void 0!==this.anchorEl&&(!0===t?!0===this.$q.platform.is.mobile?(this.anchorEl.addEventListener("touchstart",this.__mobileTouch,passive),["touchcancel","touchmove","touchend"].forEach(function(t){e.anchorEl.addEventListener(t,e.__mobileCleanup,passive)})):(this.anchorEl.addEventListener("click",this.hide,passive),this.anchorEl.addEventListener("contextmenu",this.__contextClick,notPassive)):(this.anchorEl.addEventListener("click",this.toggle,passive),this.anchorEl.addEventListener("keyup",this.__toggleKey,passive)))},__setAnchorEl:function(t){for(this.anchorEl=t;this.anchorEl.classList.contains("q-anchor--skip");)this.anchorEl=this.anchorEl.parentNode;this.__configureAnchorEl()},__pickAnchorEl:function(){if(this.target&&"string"==typeof this.target){var t=document.querySelector(this.target);null!==t?(this.anchorEl=t,this.__configureAnchorEl()):(this.anchorEl=void 0,console.error('Anchor: target "'+this.target+'" not found',this))}else!1!==this.target?this.__setAnchorEl(this.parentEl):this.anchorEl=void 0}},created:function(){var t=this;"function"==typeof this.__configureScrollTarget&&"function"==typeof this.__unconfigureScrollTarget&&(this.noParentEventWatcher=this.$watch("noParentEvent",function(){void 0!==t.scrollTarget&&(t.__unconfigureScrollTarget(),t.__configureScrollTarget())}))},mounted:function(){this.parentEl=this.$el.parentNode,this.__pickAnchorEl(),!0===this.value&&void 0===this.anchorEl&&this.$emit("input",!1)},beforeDestroy:function(){clearTimeout(this.touchTimer),void 0!==this.noParentEventWatcher&&this.noParentEventWatcher(),void 0!==this.__anchorCleanup&&this.__anchorCleanup(),void 0!==this.anchorEl&&this.__unconfigureAnchorEl()}},TimeoutMixin={methods:{__nextTick:function(t){this.__tickFn=t},__prepareTick:function(){var t=this;if(void 0!==this.__tickFn){var e=this.__tickFn;this.$nextTick(function(){t.__tickFn===e&&(t.__tickFn(),t.__tickFn=void 0)})}},__clearTick:function(){this.__tickFn=void 0},__setTimeout:function(t,e){clearTimeout(this.__timer),this.__timer=setTimeout(t,e)},__clearTimeout:function(){clearTimeout(this.__timer)}},beforeDestroy:function(){this.__tickFn=void 0,clearTimeout(this.__timer)}},ModelToggleMixin={mixins:[TimeoutMixin],props:{value:{type:Boolean,default:void 0}},data:function(){return{showing:!1}},watch:{value:function(t){this.__processModelChange(t)},$route:function(){!0===this.hideOnRouteChange&&this.hide()}},methods:{toggle:function(t){this[!0===this.showing?"hide":"show"](t)},show:function(t){var e=this;!0===this.disable||void 0!==this.__showCondition&&!0!==this.__showCondition(t)||(void 0!==this.$listeners.input&&!1===isSSR&&(this.$emit("input",!0),this.payload=t,this.$nextTick(function(){e.payload===t&&(e.payload=void 0)})),void 0!==this.value&&void 0!==this.$listeners.input&&!0!==isSSR||this.__processShow(t))},__processShow:function(t){!0!==this.showing&&(void 0!==this.__preparePortal&&this.__preparePortal(),this.showing=!0,this.$emit("before-show",t),void 0!==this.__show?(this.__clearTick(),this.__show(t),this.__prepareTick()):this.$emit("show",t))},hide:function(t){var e=this;!0!==this.disable&&(void 0!==this.$listeners.input&&!1===isSSR&&(this.$emit("input",!1),this.payload=t,this.$nextTick(function(){e.payload===t&&(e.payload=void 0)})),void 0!==this.value&&void 0!==this.$listeners.input&&!0!==isSSR||this