quasar-framework
Version:
Build responsive SPA, SSR, PWA, Hybrid Mobile Apps and Electron apps, all simultaneously using the same codebase
6 lines • 388 kB
JavaScript
/*!
* Quasar Framework v0.17.20
* (c) 2016-present Razvan Stoenescu
* Released under the MIT License.
*/
var webStorage,isSSR="undefined"==typeof window,fromSSR=!1,onSSR=isSSR;function getMatch(t,e){var i=/(edge)\/([\w.]+)/.exec(t)||/(opr)[\/]([\w.]+)/.exec(t)||/(vivaldi)[\/]([\w.]+)/.exec(t)||/(chrome)[\/]([\w.]+)/.exec(t)||/(iemobile)[\/]([\w.]+)/.exec(t)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(t)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\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=(t||navigator.userAgent||navigator.vendor||window.opera).toLowerCase(),getPlatformMatch(t)),i={};return e.browser&&(i[e.browser]=!0,i.version=e.version,i.versionNumber=parseInt(e.versionNumber,10)),e.platform&&(i[e.platform]=!0),(i.android||i.bb||i.blackberry||i.ipad||i.iphone||i.ipod||i.kindle||i.playbook||i.silk||i["windows phone"])&&(i.mobile=!0),(i.ipod||i.ipad||i.iphone)&&(i.ios=!0),i["windows phone"]&&(i.winphone=!0,delete i["windows phone"]),(i.cros||i.mac||i.linux||i.win)&&(i.desktop=!0),(i.chrome||i.opr||i.safari||i.vivaldi)&&(i.webkit=!0),(i.rv||i.iemobile)&&(e.browser="ie",i.ie=!0),i.edge&&(e.browser="edge",i.edge=!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,isSSR||(window.process&&window.process.versions&&window.process.versions.electron?i.electron=!0:0===document.location.href.indexOf("chrome-extension://")?i.chromeExt=!0:(window._cordovaNative||window.cordova)&&(i.cordova=!0),(fromSSR=void 0===i.cordova&&void 0===i.electron&&!!document.querySelector("[data-server-rendered]"))&&(onSSR=!0)),i}function hasWebStorage(){if(void 0!==webStorage)return webStorage;try{if(window.localStorage)return webStorage=!0,!0}catch(t){}return webStorage=!1,!1}function getClientProperties(){return{has:{touch:!!("ontouchstart"in document.documentElement)||window.navigator.msMaxTouchPoints>0,webStorage:hasWebStorage()},within:{iframe:window.self!==window.top}}}var Platform={has:{touch:!1,webStorage:!1},within:{iframe:!1},parseSSR:function(t){return t?{is:getPlatform(t.req.headers["user-agent"]),has:this.has,within:this.within}:Object.assign({},{is:getPlatform()},getClientProperties())},install:function(t,e,i){var s=this;isSSR?e.server.push(function(t,e){t.platform=s.parseSSR(e.ssr)}):(this.is=getPlatform(),fromSSR?(e.takeover.push(function(t){onSSR=fromSSR=!1,Object.assign(t.platform,getClientProperties())}),i.util.defineReactive(t,"platform",this)):(Object.assign(this,getClientProperties()),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 s=Object(t),n=1;n<arguments.length;n++){var o=i[n];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],h=Object.getOwnPropertyDescriptor(o,c);void 0!==h&&h.enumerable&&(s[c]=o[c])}}return s}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),s=parseInt(i.length,10)||0;if(0===s)return!1;var n,o,r=parseInt(e,10)||0;for(r>=0?n=r:(n=s+r)<0&&(n=0);n<s;){if(t===(o=i[n])||t!=t&&o!=o)return!0;n++}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 s=i.indexOf(t,e);return-1!==s&&s===e}),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),s=i.length>>>0,n=arguments[1],o=0;o<s;o++)if(e=i[o],t.call(n,e,o,i))return e}});var version="0.17.20",History={__history:[],add:function(){},remove:function(){},install:function(t,e){var i=this;if(!isSSR&&t.platform.is.cordova){this.add=function(t){i.__history.push(t)},this.remove=function(t){var e=i.__history.indexOf(t);e>=0&&i.__history.splice(e,1)};var s=void 0===e.cordova||!1!==e.cordova.backButtonExit;document.addEventListener("deviceready",function(){document.addEventListener("backbutton",function(){i.__history.length?i.__history.pop().handler():s&&"#/"===window.location.hash?navigator.app.exitApp():window.history.back()},!1)})}}},langEn={lang:"en-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},pullToRefresh:{pull:"Pull down to refresh",release:"Release to refresh",refresh:"Refreshing..."},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"},tree:{noNodes:"No nodes available",noResults:"No matching nodes found"}},i18n={install:function(t,e,i,s){var n=this;isSSR&&e.server.push(function(t,e){var i={lang:t.i18n.lang,dir:t.i18n.rtl?"rtl":"ltr"},s=e.ssr.setHtmlAttrs;"function"==typeof s?s(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,!isSSR){var s=document.documentElement;s.setAttribute("dir",e.rtl?"rtl":"ltr"),s.setAttribute("lang",e.lang)}isSSR||t.i18n?t.i18n=e:i.util.defineReactive(t,"i18n",e),n.name=e.lang,n.lang=e},this.set(s)},getLocale:function(){if(!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,s=t.b,n=t.a,o=void 0!==n;if(e=Math.round(e),i=Math.round(i),s=Math.round(s),e>255||i>255||s>255||o&&n>100)throw new TypeError("Expected 3 numbers below 256 (and optionally one below 100)");return n=o?(256|Math.round(255*n/100)).toString(16).slice(1):"","#"+(s|i<<8|e<<16|1<<24).toString(16).slice(1)+n}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,s,n,o,r,a,l,c=t.h,h=t.s,u=t.v,d=t.a;switch(r=(u/=100)*(1-(h/=100)),a=u*(1-(o=6*(c/=360)-(n=Math.floor(6*c)))*h),l=u*(1-(1-o)*h),n%6){case 0:e=u,i=l,s=r;break;case 1:e=a,i=u,s=r;break;case 2:e=r,i=u,s=l;break;case 3:e=r,i=a,s=u;break;case 4:e=l,i=r,s=u;break;case 5:e=u,i=r,s=a}return{r:Math.round(255*e),g:Math.round(255*i),b:Math.round(255*s),a:d}}function rgbToHsv(t){var e,i=t.r,s=t.g,n=t.b,o=t.a,r=Math.max(i,s,n),a=Math.min(i,s,n),l=r-a,c=0===r?0:l/r,h=r/255;switch(r){case a:e=0;break;case i:e=s-n+l*(s<n?6:0),e/=6*l;break;case s:e=n-i+2*l,e/=6*l;break;case n:e=i-s+4*l,e/=6*l}return{h:Math.round(360*e),s:Math.round(100*c),v:Math.round(100*h),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.max(255,parseInt(e[2],10)),g:Math.max(255,parseInt(e[3],10)),b:Math.max(255,parseInt(e[4],10))};return e[1]&&(i.a=Math.max(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),s=e<0?0:255,n=Math.abs(e)/100,o=i.r,r=i.g,a=i.b;return"#"+(16777216+65536*(Math.round((s-o)*n)+o)+256*(Math.round((s-r)*n)+r)+(Math.round((s-a)*n)+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,s=e.g/255,n=e.b/255;return.2126*(i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))+.7152*(s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.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 getBodyClasses(t,e){var i=t.is,s=t.has,n=t.within,o=["mat",i.desktop?"desktop":"mobile",s.touch?"touch":"no-touch","platform-"+(i.ios?"ios":"mat")];if(i.cordova&&(o.push("cordova"),i.ios&&(void 0===e.cordova||!1!==e.cordova.iosStatusBarPadding))){var r=window.devicePixelRatio||1,a=window.screen.width*r,l=window.screen.height*r;1125===a&&2436===l&&o.push("q-ios-statusbar-x"),1125===a&&2001===l||o.push("q-ios-statusbar-padding")}return n.iframe&&o.push("within-iframe"),i.electron&&o.push("electron"),o}function bodyInit(t,e){var i=getBodyClasses(t,e);t.is.ie&&11===t.is.versionNumber?i.forEach(function(t){return document.body.classList.add(t)}):document.body.classList.add.apply(document.body.classList,i),t.is.ios&&document.body.addEventListener("touchstart",function(){})}function setColors(t){for(var e in t)setBrand(e,t[e])}var Body={install:function(t,e,i){isSSR?e.server.push(function(t,e){var s=getBodyClasses(t.platform,i),n=e.ssr.setBodyClasses;"function"==typeof n?n(s):e.ssr.Q_BODY_CLASSES=s.join(" ")}):(i.brand&&setColors(i.brand),bodyInit(t.platform,i))}},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"},chevron:{left:"chevron_left",right:"chevron_right"},pullToRefresh:{arrow:"arrow_downward",refresh:"refresh"},search:{icon:"search",clear:"cancel",clearInverted:"clear"},carousel:{left:"chevron_left",right:"chevron_right",quickNav:"lens",thumbnails:"view_carousel"},checkbox:{checked:{ios:"check_circle",mat:"check_box"},unchecked:{ios:"radio_button_unchecked",mat:"check_box_outline_blank"},indeterminate:{ios:"remove_circle_outline",mat:"indeterminate_check_box"}},chip:{close:"cancel"},chipsInput:{add:"send"},collapsible:{icon:"arrow_drop_down"},datetime:{arrowLeft:"chevron_left",arrowRight:"chevron_right"},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"},fab:{icon:"add",activeIcon:"close"},input:{showPass:"visibility",hidePass:"visibility_off",showNumber:"keyboard",hideNumber:"keyboard_hide",clear:"cancel",clearInverted:"clear",dropdown:"arrow_drop_down"},pagination:{first:"first_page",prev:"keyboard_arrow_left",next:"keyboard_arrow_right",last:"last_page"},radio:{checked:{ios:"check",mat:"radio_button_checked"},unchecked:{ios:"",mat:"radio_button_unchecked"}},rating:{icon:"grade"},stepper:{done:"check",active:"edit",error:"warning"},tabs:{left:"chevron_left",right:"chevron_right"},table:{arrowUp:"arrow_upward",warning:"warning",prevPage:"chevron_left",nextPage:"chevron_right"},tree:{icon:"play_arrow"},uploader:{done:"done",clear:"cancel",clearInverted:"clear",add:"add",upload:"cloud_upload",expand:"keyboard_arrow_down",file:"insert_drive_file"}},Icons={__installed:!1,install:function(t,e,i){var s=this;this.set=function(i){void 0===i&&(i=materialIcons),i.set=s.set,isSSR||t.icon?t.icon=i:e.util.defineReactive(t,"icon",i),s.name=i.name,s.def=i},this.set(i)}},queues={server:[],takeover:[]},$q={version:version,theme:"mat"};function install(t,e){if(void 0===e&&(e={}),!this.__installed){this.__installed=!0;var i=e.config||{};if(Platform.install($q,queues,t),Body.install($q,queues,i),History.install($q,i),i18n.install($q,queues,t,e.i18n),Icons.install($q,t,e.iconSet),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 s=e.components[i];void 0===s.name||void 0===s.render&&void 0===s.mixins||t.component(s.name,s)}),e.directives&&Object.keys(e.directives).forEach(function(i){var s=e.directives[i];void 0!==s.name&&void 0!==s.unbind&&t.directive(s.name,s)}),e.plugins){var s={$q:$q,queues:queues,Vue:t,cfg:i};Object.keys(e.plugins).forEach(function(t){var i=e.plugins[t];"function"==typeof i.install&&i!==Platform&&i.install(s)})}}}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 theme="mat",VuePlugin={version:version,install:install,i18n:i18n,icons:Icons,theme:theme,ssrUpdate:ssrUpdate},handlers=[],EscapeKey={__installed:!1,__install:function(){this.__installed=!0,window.addEventListener("keyup",function(t){0!==handlers.length&&(27!==t.which&&27!==t.keyCode||handlers[handlers.length-1]())})},register:function(t){Platform.is.desktop&&(this.__installed||this.__install(),handlers.push(t))},pop:function(){Platform.is.desktop&&handlers.pop()}},ModelToggleMixin={props:{value:Boolean},data:function(){return{showing:!1}},watch:{value:function(t){var e=this;this.disable&&t?this.$emit("input",!1):this.$nextTick(function(){e.value!==e.showing&&e[t?"show":"hide"]()})}},methods:{toggle:function(t){return this[this.showing?"hide":"show"](t)},show:function(t){var e=this;return this.disable||this.showing?this.showPromise||Promise.resolve(t):(this.hidePromise&&this.hidePromiseReject(),this.showing=!0,!1===this.value&&this.$emit("input",!0),(void 0===this.$options.modelToggle||this.$options.modelToggle.history)&&(this.__historyEntry={handler:this.hide},History.add(this.__historyEntry)),this.__show?(this.showPromise=new Promise(function(i,s){e.showPromiseResolve=function(){e.showPromise=null,e.$emit("show",t),i(t)},e.showPromiseReject=function(){e.showPromise.catch(function(){}),e.showPromise=null,s(null)}}),this.__show(t),this.showPromise||Promise.resolve(t)):(this.$emit("show",t),Promise.resolve(t)))},hide:function(t){var e=this;return this.disable||!this.showing?this.hidePromise||Promise.resolve(t):(this.showPromise&&this.showPromiseReject(),this.showing=!1,!0===this.value&&this.$emit("input",!1),this.__removeHistory(),this.__hide?(this.hidePromise=new Promise(function(i,s){e.hidePromiseResolve=function(){e.hidePromise=null,e.$emit("hide",t),i()},e.hidePromiseReject=function(){e.hidePromise.catch(function(){}),e.hidePromise=null,s(null)}}),this.__hide(t),this.hidePromise||Promise.resolve(t)):(this.$emit("hide",t),Promise.resolve()))},__removeHistory:function(){this.__historyEntry&&(History.remove(this.__historyEntry),this.__historyEntry=null)}},beforeDestroy:function(){this.showing&&(this.showPromise&&this.showPromiseReject(),this.hidePromise&&this.hidePromiseReject(),this.__removeHistory())}},listenOpts={};function leftClick(t){return 0===t.button}function middleClick(t){return 1===t.button}function rightClick(t){return 2===t.button}function getEventKey(t){return t.which||t.keyCode}function position(t){var e,i;if(t.touches&&t.touches[0]?t=t.touches[0]:t.changedTouches&&t.changedTouches[0]&&(t=t.changedTouches[0]),t.clientX||t.clientY)e=t.clientX,i=t.clientY;else if(t.pageX||t.pageY)e=t.pageX-document.body.scrollLeft-document.documentElement.scrollLeft,i=t.pageY-document.body.scrollTop-document.documentElement.scrollTop;else{var s=targetElement(t).getBoundingClientRect();e=(s.right-s.left)/2+s.left,i=(s.bottom-s.top)/2+s.top}return{top:i,left:e}}function targetElement(t){var e;return t.target?e=t.target:t.srcElement&&(e=t.srcElement),3===e.nodeType&&(e=e.parentNode),e}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}}Object.defineProperty(listenOpts,"passive",{configurable:!0,get:function(){var t;try{var e=Object.defineProperty({},"passive",{get:function(){t={passive:!0}}});window.addEventListener("qtest",null,e),window.removeEventListener("qtest",null,e)}catch(t){}return listenOpts.passive=t,t},set:function(t){Object.defineProperty(this,"passive",{value:t})}});var LINE_HEIGHT=40,PAGE_HEIGHT=800;function getMouseWheelDistance(t){var e,i=t.deltaX,s=t.deltaY;if((i||s)&&t.deltaMode){var n=1===t.deltaMode?LINE_HEIGHT:PAGE_HEIGHT;i*=n,s*=n}return t.shiftKey&&!i&&(s=(e=[i,s])[0],i=e[1]),{x:i,y:s}}function stopAndPrevent(t){t.preventDefault(),t.stopPropagation()}var event={listenOpts:listenOpts,leftClick:leftClick,middleClick:middleClick,rightClick:rightClick,getEventKey:getEventKey,position:position,targetElement:targetElement,getEventPath:getEventPath,getMouseWheelDistance:getMouseWheelDistance,stopAndPrevent:stopAndPrevent};function offset(t){if(!t||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:parseFloat(style(t,"height"))}function width(t){return t===window?window.innerWidth:parseFloat(style(t,"width"))}function css(t,e){var i=t.style;Object.keys(e).forEach(function(t){i[t]=e[t]})}function ready(t){if("function"==typeof t)return"loading"!==document.readyState?t():void document.addEventListener("DOMContentLoaded",t,!1)}var prefix=["-webkit-","-moz-","-ms-","-o-"];function cssTransform(t){var e={transform:t};return prefix.forEach(function(i){e[i+"transform"]=t}),e}var size,dom={offset:offset,style:style,height:height,width:width,css:css,ready:ready,cssTransform:cssTransform};function getScrollTarget(t){return t.closest(".scroll,.scroll-y,.overflow-auto")||window}function getScrollHeight(t){return(t===window?document.body:t).scrollHeight}function getScrollPosition(t){return t===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:t.scrollTop}function getHorizontalScrollPosition(t){return t===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:t.scrollLeft}function animScrollTo(t,e,i){var s=getScrollPosition(t);i<=0?s!==e&&setScroll(t,e):requestAnimationFrame(function(){var n=s+(e-s)/Math.max(16,i)*16;setScroll(t,n),n!==e&&animScrollTo(t,e,i-16)})}function setScroll(t,e){if(t===window)return document.documentElement.scrollTop=e,void(document.body.scrollTop=e);t.scrollTop=e}function setScrollPosition(t,e,i){i?animScrollTo(t,e,i):setScroll(t,e)}function getScrollbarWidth(){if(void 0!==size)return size;var t=document.createElement("p"),e=document.createElement("div");css(t,{width:"100%",height:"200px"}),css(e,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),e.appendChild(t),document.body.appendChild(e);var i=t.offsetWidth;e.style.overflow="scroll";var s=t.offsetWidth;return i===s&&(s=e.clientWidth),e.remove(),size=i-s}function hasScrollbar(t,e){return void 0===e&&(e=!0),!(!t||t.nodeType!==Node.ELEMENT_NODE)&&(e?t.scrollHeight>t.clientHeight&&(t.classList.contains("scroll")||t.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(t)["overflow-y"])):t.scrollWidth>t.clientWidth&&(t.classList.contains("scroll")||t.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(t)["overflow-x"])))}var scroll={getScrollTarget:getScrollTarget,getScrollHeight:getScrollHeight,getScrollPosition:getScrollPosition,animScrollTo:animScrollTo,setScrollPosition:setScrollPosition,getScrollbarWidth:getScrollbarWidth,hasScrollbar:hasScrollbar},registered=0;function onWheel(t){shouldPreventScroll(t)&&stopAndPrevent(t)}function shouldPreventScroll(t){if(t.target===document.body||t.target.classList.contains("q-layout-backdrop"))return!0;for(var e=getEventPath(t),i=t.shiftKey&&!t.deltaX,s=!i&&Math.abs(t.deltaX)<=Math.abs(t.deltaY),n=i||s?t.deltaY:t.deltaX,o=0;o<e.length;o++){var r=e[o];if(hasScrollbar(r,s))return s?n<0&&0===r.scrollTop||n>0&&r.scrollTop+r.clientHeight===r.scrollHeight:n<0&&0===r.scrollLeft||n>0&&r.scrollLeft+r.clientWidth===r.scrollWidth}return!0}function preventScroll(t){if(!((registered+=t?1:-1)>1)){var e=t?"add":"remove";Platform.is.mobile?document.body.classList[e]("q-body-prevent-scroll"):Platform.is.desktop&&window[e+"EventListener"]("wheel",onWheel)}}var positions={top:"items-start justify-center with-backdrop",bottom:"items-end justify-center with-backdrop",right:"items-center justify-end with-backdrop",left:"items-center justify-start with-backdrop"},positionCSS={maxHeight:"80vh",height:"auto"};function additionalCSS(t){var e={};return["left","right"].includes(t)&&(e.maxWidth="90vw"),["left","top"].includes(t)&&(e.borderTopLeftRadius=0),["right","top"].includes(t)&&(e.borderTopRightRadius=0),["left","bottom"].includes(t)&&(e.borderBottomLeftRadius=0),["right","bottom"].includes(t)&&(e.borderBottomRightRadius=0),e}var modals={responsive:0,maximized:0},QModal={name:"QModal",mixins:[ModelToggleMixin],provide:function(){var t=this;return{__qmodal:{register:function(e){t.layout!==e&&(t.layout=e)},unregister:function(e){t.layout===e&&(t.layout=null)}}}},props:{position:{type:String,default:"",validator:function(t){return""===t||["top","bottom","left","right"].includes(t)}},transition:String,enterClass:String,leaveClass:String,positionClasses:{type:String,default:"flex-center"},contentClasses:[Object,Array,String],contentCss:[Object,Array,String],noBackdropDismiss:{type:Boolean,default:!1},noEscDismiss:{type:Boolean,default:!1},noRouteDismiss:Boolean,noRefocus:Boolean,minimized:Boolean,maximized:Boolean},data:function(){return{layout:null}},watch:{$route:function(){this.noRouteDismiss||this.hide()},maximized:function(t,e){this.__register(!1,e),this.__register(!0,t)},minimized:function(t,e){this.__register(!1,this.maximized,e),this.__register(!0,this.maximized,t)}},computed:{modalClasses:function(){var t=this.position?positions[this.position]:this.positionClasses;return this.maximized?["maximized",t]:this.minimized?["minimized",t]:t},contentClassesCalc:function(){return this.layout?[this.contentClasses,"column no-wrap"]:this.contentClasses},transitionProps:function(){return this.position?{name:"q-modal-"+this.position}:this.enterClass||this.leaveClass?{enterActiveClass:this.enterClass,leaveActiveClass:this.leaveClass}:{name:this.transition||"q-modal"}},modalCss:function(){if(this.position){var t=Array.isArray(this.contentCss)?this.contentCss:[this.contentCss];return t.unshift(Object.assign({},positionCSS,additionalCSS(this.position))),t}return this.contentCss}},methods:{__dismiss:function(){var t=this;this.noBackdropDismiss?this.__shake():this.hide().then(function(){t.$emit("dismiss")})},__show:function(){var t=this;this.noRefocus||(this.__refocusTarget=document.activeElement),document.body.appendChild(this.$el),this.__register(!0),preventScroll(!0),EscapeKey.register(function(){t.noEscDismiss?t.__shake():(t.$emit("escape-key"),t.hide().then(function(){t.$emit("dismiss")}))});var e=this.$refs.content;this.$q.platform.is.ios&&e.click(),e.scrollTop=0,["modal-scroll","layout-view"].forEach(function(t){[].slice.call(e.getElementsByClassName(t)).forEach(function(t){t.scrollTop=0})}),this.$nextTick(function(){return e&&e.focus()})},__hide:function(){this.__cleanup(),!this.noRefocus&&this.__refocusTarget&&(this.__refocusTarget.focus(),!this.__refocusTarget.classList.contains("q-if")&&this.__refocusTarget.blur())},__cleanup:function(){EscapeKey.pop(),preventScroll(!1),this.__register(!1)},__stopPropagation:function(t){t.stopPropagation()},__register:function(t,e,i){void 0===e&&(e=this.maximized),void 0===i&&(i=this.minimized);var s=t?{action:"add",step:1}:{action:"remove",step:-1};if(e){if(modals.maximized+=s.step,!t&&modals.maximized>0)return;document.body.classList[s.action]("q-maximized-modal")}else if(!i){if(modals.responsive+=s.step,!t&&modals.responsive>0)return;document.body.classList[s.action]("q-responsive-modal")}},__shake:function(){var t=this;this.$el.classList.remove("animate-shake"),this.$el.classList.add("animate-shake"),clearTimeout(this.shakeTimeout),this.shakeTimeout=setTimeout(function(){t.$el.classList.remove("animate-shake")},150)}},mounted:function(){this.value&&this.show()},beforeDestroy:function(){clearTimeout(this.shakeTimeout),this.$el.remove(),this.showing&&this.__cleanup()},render:function(t){var e=this;return t("transition",{props:this.transitionProps,on:{afterEnter:function(){e.showPromise&&e.showPromiseResolve()},enterCancelled:function(){e.showPromise&&e.showPromiseReject(),e.$el.remove()},afterLeave:function(){e.hidePromise&&e.hidePromiseResolve(),e.$el.remove()},leaveCancelled:function(){e.hidePromise&&e.hidePromiseReject()}}},[t("div",{staticClass:"modal fullscreen row",class:this.modalClasses,directives:[{name:"show",value:this.showing}]},[t("div",{staticClass:"modal-backdrop absolute-full",on:{click:this.__dismiss}}),t("div",{ref:"content",staticClass:"modal-content",style:this.modalCss,class:this.contentClassesCalc,attrs:{tabindex:-1},on:{click:this.__stopPropagation,touchstart:this.__stopPropagation}},this.$slots.default)])])}},prefix$1="md",QIcon={name:"QIcon",props:{name:String,color:String,size:String},computed:{classes:function(){var t,e=this.name;return e?(t=/^fa[s|r|l|b]{0,1} /.test(e)||e.startsWith("icon-")?e:e.startsWith("bt-")?"bt "+e:e.startsWith("eva-")?"eva "+e:/^ion-(md|ios|logo)/.test(e)?"ionicons "+e:e.startsWith("ion-")?"ionicons ion-"+prefix$1+e.substr(3):e.startsWith("mdi-")?"mdi "+e:"material-icons",this.color?t+" text-"+this.color:t):""},content:function(){return this.classes.startsWith("material-icons")?this.name.replace(/ /g,"_"):" "},style:function(){if(this.size)return{fontSize:this.size}}},render:function(t){return t("i",{staticClass:"q-icon",class:this.classes,style:this.style,attrs:{"aria-hidden":!0}},[this.content,this.$slots.default])}},QList={name:"QList",props:{noBorder:Boolean,dark:Boolean,dense:Boolean,sparse:Boolean,striped:Boolean,stripedOdd:Boolean,separator:Boolean,insetSeparator:Boolean,multiline:Boolean,highlight:Boolean,link:Boolean},computed:{classes:function(){return{"no-border":this.noBorder,"q-list-dark":this.dark,"q-list-dense":this.dense,"q-list-sparse":this.sparse,"q-list-striped":this.striped,"q-list-striped-odd":this.stripedOdd,"q-list-separator":this.separator,"q-list-inset-separator":this.insetSeparator,"q-list-multiline":this.multiline,"q-list-highlight":this.highlight,"q-list-link":this.link}}},render:function(t){return t("div",{staticClass:"q-list",class:this.classes},this.$slots.default)}},routerLinkEventName="qrouterlinkclick",evt=null;if(!isSSR)try{evt=new Event(routerLinkEventName)}catch(t){(evt=document.createEvent("Event")).initEvent(routerLinkEventName,!0,!1)}var routerLinkProps={to:[String,Object],exact:Boolean,append:Boolean,replace:Boolean,event:[String,Array],activeClass:String,exactActiveClass:String},RouterLinkMixin={props:routerLinkProps,data:function(){return{routerLinkEventName:routerLinkEventName}}};function textStyle(t){return void 0===t||t<2?{}:{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":t}}var subItemProps={icon:String,rightIcon:String,image:String,rightImage:String,avatar:String,rightAvatar:String,letter:String,rightLetter:String,label:String,sublabel:String,labelLines:[String,Number],sublabelLines:[String,Number]},ItemMixin={mixins:[{props:routerLinkProps}],props:{dark:Boolean,link:Boolean,dense:Boolean,sparse:Boolean,separator:Boolean,insetSeparator:Boolean,multiline:Boolean,highlight:Boolean,tag:{type:String,default:"div"}},computed:{itemClasses:function(){return{"q-item":!0,"q-item-division":!0,"relative-position":!0,"q-item-dark":this.dark,"q-item-dense":this.dense,"q-item-sparse":this.sparse,"q-item-separator":this.separator,"q-item-inset-separator":this.insetSeparator,"q-item-multiline":this.multiline,"q-item-highlight":this.highlight,"q-item-link":this.to||this.link}}}},QItem={name:"QItem",mixins:[ItemMixin],props:{active:Boolean,link:Boolean},computed:{classes:function(){return[void 0!==this.to?"q-link":{active:this.active},this.itemClasses]}},render:function(t){return void 0!==this.to?t("router-link",{props:Object.assign({},this.$props,{tag:"a"}),class:this.classes},this.$slots.default):t(this.tag,{class:this.classes},this.$slots.default)}},QItemSide={name:"QItemSide",props:{right:Boolean,icon:String,letter:{type:String,validator:function(t){return 1===t.length}},inverted:Boolean,avatar:String,image:String,stamp:String,color:String,textColor:String},computed:{type:function(){var t=this;return["icon","image","avatar","letter","stamp"].find(function(e){return t[e]})},classes:function(){var t=["q-item-side-"+(this.right?"right":"left")];return!this.color||this.icon||this.letter||t.push("text-"+this.color),t},typeClasses:function(){var t=["q-item-"+this.type];return this.color&&(this.inverted&&(this.icon||this.letter)?t.push("bg-"+this.color):this.textColor||t.push("text-"+this.color)),this.textColor&&t.push("text-"+this.textColor),this.inverted&&(this.icon||this.letter)&&(t.push("q-item-inverted"),t.push("flex"),t.push("flex-center")),t},imagePath:function(){return this.image||this.avatar}},render:function(t){var e;return this.type&&(this.icon?(e=t(QIcon,{class:this.inverted?null:this.typeClasses,props:{name:this.icon}}),this.inverted&&(e=t("div",{class:this.typeClasses},[e]))):e=this.imagePath?t("img",{class:this.typeClasses,attrs:{src:this.imagePath}}):t("div",{class:this.typeClasses},[this.stamp||this.letter])),t("div",{staticClass:"q-item-side q-item-section",class:this.classes},[e,this.$slots.default])}};function text(t,e,i,s){return t("div",{staticClass:"q-item-"+e+(1===(s=parseInt(s,10))?" ellipsis":""),style:textStyle(s),domProps:{innerHTML:i}})}var QItemMain={name:"QItemMain",props:{label:String,labelLines:[String,Number],sublabel:String,sublabelLines:[String,Number],inset:Boolean,tag:{type:String,default:"div"}},render:function(t){return t(this.tag,{staticClass:"q-item-main q-item-section",class:{"q-item-main-inset":this.inset}},[this.label?text(t,"label",this.label,this.labelLines):null,this.sublabel?text(t,"sublabel",this.sublabel,this.sublabelLines):null,this.$slots.default])}},QItemSeparator={name:"QItemSeparator",props:{inset:Boolean},render:function(t){return t("div",{staticClass:"q-item-separator-component",class:{"q-item-separator-inset-component":this.inset}},this.$slots.default)}},QActionSheet={name:"QActionSheet",props:{value:Boolean,title:String,grid:Boolean,actions:Array,dismissLabel:String},computed:{contentCss:function(){}},render:function(t){var e=this,i=[],s=this.$slots.title||this.title;return s&&i.push(t("div",{staticClass:"q-actionsheet-title column justify-center"},[s])),i.push(t("div",{staticClass:"q-actionsheet-body scroll"},this.actions?[this.grid?t("div",{staticClass:"q-actionsheet-grid row wrap items-center justify-between"},this.__getActions(t)):t(QList,{staticClass:"no-border",props:{link:!0}},this.__getActions(t))]:this.$slots.default)),t(QModal,{ref:"modal",props:{value:this.value,position:"bottom",contentCss:this.contentCss},on:{input:function(t){e.$emit("input",t)},show:function(){e.$emit("show")},hide:function(){e.$emit("hide")},dismiss:function(){e.$emit("cancel")},"escape-key":function(){e.$emit("escape-key")}}},i)},methods:{show:function(){return this.$refs.modal.show()},hide:function(){return this.$refs.modal?this.$refs.modal.hide():Promise.resolve()},__getActions:function(t){var e=this;return this.actions.map(function(i){var s;return i.label?t(e.grid?"div":QItem,((s={staticClass:e.grid?"q-actionsheet-grid-item cursor-pointer relative-position column inline flex-center":null,class:i.classes,attrs:{tabindex:0}})[e.grid?"on":"nativeOn"]={click:function(){return e.__onOk(i)},keyup:function(t){13===getEventKey(t)&&e.__onOk(i)}},s),e.grid?[i.icon?t(QIcon,{props:{name:i.icon,color:i.color}}):null,i.avatar?t("img",{domProps:{src:i.avatar},staticClass:"avatar"}):null,t("span",[i.label])]:[t(QItemSide,{props:{icon:i.icon,color:i.color,avatar:i.avatar}}),t(QItemMain,{props:{inset:!0,label:i.label}})]):t(QItemSeparator,{staticClass:"col-12"})})},__onOk:function(t){var e=this;this.hide().then(function(){"function"==typeof t.handler&&t.handler(),e.$emit("ok",t)})},__onCancel:function(){var t=this;this.hide().then(function(){t.$emit("cancel")})},__onKeyCancel:function(t){13===getEventKey(t)&&this.__onCancel()}}},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 s=i-e+1,n=e+(t-e)%s;return n<e&&(n=s+n),0===n?0:n}function pad(t,e,i){void 0===e&&(e=2),void 0===i&&(i="0");var s=""+t;return s.length>=e?s:new Array(e-s.length+1).join(i)+s}var format={humanStorageSize:humanStorageSize,capitalize:capitalize,between:between,normalizeToInterval:normalizeToInterval,pad:pad},xhr=isSSR?null:XMLHttpRequest,send=isSSR?null:xhr.prototype.send,stack={start:[],stop:[]},highjackCount=0;function translate(t){var e=t.p,i=t.pos,s=t.active,n=t.horiz,o=t.reverse,r=t.dir,a=1,l=1;return n?(o&&(a=-1),"bottom"===i&&(l=-1),{transform:"translate3d("+a*(e-100)+"%,"+(s?0:-200*l)+"%,0)"}):(o&&(l=-1),"right"===i&&(a=-1),{transform:"translate3d("+(s?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(){stack.stop.map(function(t){t()})}stack.start.push(t),stack.stop.push(e),++highjackCount>1||(xhr.prototype.send=function(){for(var t=this,e=[],s=arguments.length;s--;)e[s]=arguments[s];stack.start.map(function(t){t()}),this.addEventListener("abort",i,!1),this.addEventListener("readystatechange",function(){4===t.readyState&&i()},!1),send.apply(this,e)})}function restoreAjax(t,e){stack.start=stack.start.filter(function(e){return e!==t}),stack.stop=stack.stop.filter(function(t){return t!==e}),(highjackCount=Math.max(0,highjackCount-1))||(xhr.prototype.send=send)}var QAjaxBar={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[this.position,"bg-"+this.color,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.i18n.rtl&&["top","bottom"].includes(this.position)?!this.reverse:this.reverse,dir:this.$q.i18n.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),this.calls++,this.calls>1||(clearTimeout(this.timer),this.$emit("start"),this.onScreen||(this.progress=0,this.onScreen=!0,this.animate=!1,this.timer=setTimeout(function(){e.animate=!0,e.__work(t)},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(t){var e=this;this.progress<100&&(this.timer=setTimeout(function(){e.increment(),e.__work(t)},t))}},mounted:function(){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",{staticClass:"q-loading-bar",class:this.classes,style:this.style})}};function showRipple(t,e,i){var s=i.stop,n=i.center;s&&t.stopPropagation();var o,r,a=document.createElement("span"),l=document.createElement("span"),c=e.clientWidth>e.clientHeight?e.clientWidth:e.clientHeight,h=(n?c:2*c)+"px",u=e.getBoundingClientRect();if(a.appendChild(l),a.className="q-ripple-container",l.className="q-ripple-animation",l.style.width=h,l.style.height=h,e.appendChild(a),n)o=r=0;else{var d=position(t);o=d.left-u.left-c,r=d.top-u.top-c}l.classList.add("q-ripple-animation-enter"),l.classList.add("q-ripple-animation-visible"),l.style.transform="translate("+o+"px, "+r+"px) scale3d(0, 0, 0)",setTimeout(function(){l.classList.remove("q-ripple-animation-enter"),l.style.transform="translate("+o+"px, "+r+"px) scale3d(1, 1, 1)",setTimeout(function(){l.classList.remove("q-ripple-animation-visible"),setTimeout(function(){a.remove()},300)},300)},10)}function shouldAbort(t){t.mat;return t.ios&&!0}var Ripple={name:"ripple",inserted:function(t,e){var i=e.value,s=e.modifiers;if(!shouldAbort(s)){var n={enabled:!1!==i,modifiers:{stop:s.stop,center:s.center},click:function(e){n.enabled&&-1!==e.detail&&showRipple(e,t,n.modifiers)},keyup:function(e){n.enabled&&13===e.keyCode&&showRipple(e,t,n.modifiers)}};t.__qripple=n,t.addEventListener("click",n.click,!1),t.addEventListener("keyup",n.keyup,!1)}},update:function(t,e){var i=e.value,s=e.modifiers,n=s.stop,o=s.center,r=t.__qripple;r&&(r.enabled=!1!==i,r.modifiers={stop:n,center:o})},unbind:function(t,e){var i=e.modifiers,s=t.__qripple;s&&!shouldAbort(i)&&(t.removeEventListener("click",s.click,!1),t.removeEventListener("keyup",s.keyup,!1),delete t.__qripple)}},alignMap={left:"start",center:"center",right:"end",between:"between",around:"around"},alignValues=Object.keys(alignMap),AlignMixin={props:{align:{type:String,default:"center",validator:function(t){return alignValues.includes(t)}}},computed:{alignClass:function(){return"justify-"+alignMap[this.align]}}},sizes={xs:8,sm:10,md:14,lg:20,xl:24,form:14.777,"form-label":21.777,"form-hide-underline":9.333,"form-label-hide-underline":16.333},BtnMixin={mixins:[AlignMixin],directives:{Ripple:Ripple},props:{type:String,loading:{type:Boolean,default:null},disable:Boolean,label:[Number,String],noCaps:Boolean,noWrap:Boolean,icon:String,iconRight:String,round:Boolean,outline:Boolean,flat:Boolean,rounded:Boolean,push:Boolean,size:String,fab:Boolean,fabMini:Boolean,color:String,textColor:String,glossy:Boolean,dense:Boolean,noRipple:Boolean,tabindex:Number,to:[Object,String],replace:Boolean},computed:{style:function(){if(this.size&&!this.fab&&!this.fabMini)return{fontSize:this.size in sizes?sizes[this.size]+"px":this.size}},isRectangle:function(){return!this.isRound},isRound:function(){return this.round||this.fab||this.fabMini},shape:function(){return"q-btn-"+(this.isRound?"round":"rectangle")},isDisabled:function(){return this.disable||this.loading},hasRipple:function(){return!this.noRipple&&!this.isDisabled},computedTabIndex:function(){return this.isDisabled?-1:this.tabindex||0},isLink:function(){return"a"===this.type||void 0!==this.to},attrs:function(){var t={tabindex:this.computedTabIndex};return"a"!==this.type&&(t.type=this.type||"button"),void 0!==this.to&&(t.href=this.$router.resolve(this.to).href),t},classes:function(){var t=[this.shape];return this.fab?t.push("q-btn-fab"):this.fabMini&&t.push("q-btn-fab-mini"),this.flat?t.push("q-btn-flat"):this.outline?t.push("q-btn-outline"):this.push&&t.push("q-btn-push"),this.isDisabled?t.push("disabled"):(t.push("q-focusable q-hoverable"),this.active&&t.push("active")),this.color?this.flat||this.outline?t.push("text-"+(this.textColor||this.color)):(t.push("bg-"+this.color),t.push("text-"+(this.textColor||"white"))):this.textColor&&t.push("text-"+this.textColor),t.push({"q-btn-no-uppercase":this.noCaps,"q-btn-rounded":this.rounded,"q-btn-dense":this.dense,glossy:this.glossy}),t},innerClasses:function(){var t=[this.alignClass];return!0===this.noWrap&&t.push("no-wrap","text-no-wrap"),!0===this.repeating&&t.push("non-selectable"),!0===this.loading&&t.push("q-btn-inner--hidden"),t}}},mixin$1={props:{color:String,size:{type:[Number,String],default:"1em"}},computed:{classes:function(){if(this.color)return"text-"+this.color}}},DefaultSpinner={name:"QSpinnerMat",mixins:[mixin$1],render:function(t){return t("svg",{staticClass:"q-spinner q-spinner-mat",class:this.classes,attrs:{width:this.size,height:this.size,viewBox:"25 25 50 50"}},[t("circle",{staticClass:"path",attrs:{cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":"3","stroke-miterlimit":"10"}})])}},QSpinner={mixins:[DefaultSpinner],name:"QSpinner"},QBtn={name:"QBtn",mixins:[BtnMixin],props:{percentage:Number,darkPercentage:Boolean,waitForRipple:Boolean,repeatTimeout:[Number,Function]},computed:{hasPercentage:function(){return void 0!==this.percentage},width:function(){return between(this.percentage,0,100)+"%"},events:function(){var t=this;return this.isDisabled||!this.repeatTimeout?{click:this.click,keydown:this.__onKeyDown,keyup:this.__onKeyUp}:{mousedown:this.__startRepeat,touchstart:this.__startRepeat,keydown:function(e){t.__onKeyDown(e,!0)},mouseup:this.__endRepeat,touchend:this.__endRepeat,keyup:function(e){t.__onKeyUp(e,!0)},mouseleave:this.__abortRepeat,touchmove:this.__abortRepeat,blur:this.__abortRepeat}}},data:function(){return{repeating:!1,active:!1}},methods:{click:function(t){var e=this;if(this.__cleanup(),void 0===this.to&&!this.isDisabled||(t&&stopAndPrevent(t),!this.isDisabled))if(t&&-1!==t.detail&&"submit"===this.type){stopAndPrevent(t);var i=new MouseEvent("click",Object.assign({},t,{detail:-1}));this.timer=setTimeout(function(){return e.$el&&e.$el.dispatchEvent(i)},200)}else{var s=function(){e.$router[e.replace?"replace":"push"](e.to)},n=function(){e.isDisabled||(e.$emit("click",t,s),void 0!==e.to&&!1!==t.navigate&&s())};this.waitForRipple&&this.hasRipple?this.timer=setTimeout(n,300):n()}},__cleanup:function(){clearTimeout(this.timer)},__onKeyDown:function(t,e){this.isDisabled||13!==t.keyCode||(this.active=!0,e?this.__startRepeat(t):stopAndPrevent(t))},__onKeyUp:function(t,e){this.active&&(this.active=!1,this.isDisabled||13!==t.keyCode||this[e?"__endRepeat":"click"](t))},__startRepeat:function(t){var e=this;if(!this.repeating){var i=function(){e.timer=setTimeout(s,"function"==typeof e.repeatTimeout?e.repeatTimeout(e.repeatCount):e.repeatTimeout)},s=function(){e.isDisabled||(e.repeatCount+=1,t.repeatCount=e.repeatCount,e.$emit("click",t),i())};this.repeatCount=0,this.repeating=!0,i()}},__abortRepeat:function(){this.repeating=!1,this.__cleanup()},__endRepeat:function(t){this.repeating&&(this.repeating=!1,this.repeatCount?this.repeatCount=0:(t.detail||t.keyCode)&&(t.repeatCount=0,this.$emit("click",t)),this.__cleanup())}},beforeDestroy:function(){this.__cleanup()},render:function(t){var e=[].concat(this.$slots.default);return void 0!==this.label&&!0===this.isRectangle&&e.unshift(t("div",[this.label])),void 0!==this.icon&&e.unshift(t(QIcon,{class:{"on-left":void 0!==this.label&&!0===this.isRectangle},props:{name:this.icon}})),void 0!==this.iconRight&&!1===this.isRound&&e.push(t(QIcon,{staticClass:"on-right",props:{name:this.iconRight}})),t(this.isLink?"a":"button",{staticClass:"q-btn inline relative-position q-btn-item non-selectable",class:this.classes,style:this.style,attrs:this.attrs,on:this.events,directives:this.hasRipple?[{name:"ripple",value:!0,modifiers:{center:this.isRound}}]:null},[this.$q.platform.is.desktop?t("div",{staticClass:"q-focus-helper"}):null,this.loading&&this.hasPercentage?t("div",{staticClass:"q-btn-progress absolute-full",class:{"q-btn-dark-progress":this.darkPercentage},style:{width:this.width}}):null,t("div",{staticClass:"q-btn-inner row col items-center q-popup--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.$slots.loading?this.$slots.loading:[t(QSpinner)])]:void 0):null])}},QAlert={name:"QAlert",props:{type:{type:String,validator:function(t){return["positive","negative","warning","info"].includes(t)}},color:{type:String,default:"negative"},textColor:String,message:String,detail:String,icon:String,avatar:String,actions:Array},computed:{computedIcon:function(){return this.icon?this.icon:this.$q.icon.type[this.type||this.color]},classes:function(){return"bg-"+(this.type||this.color)+" text-"+(this.textColor||"white")}},render:function(t){var e=this,i=[],s=this.$slots.detail||this.detail;return this.avatar?i.push(t("img",{staticClass:"avatar",attrs:{src:this.avatar}})):(this.icon||this.type)&&i.push(t(QIcon,{props:{name:this.computedIcon}})),t("div",[t("div",{staticClass:"q-alert row no-wrap shadow-2",class:this.classes},[i.length?t("div",{staticClass:"q-alert-side col-auto row flex-center"},i):null,t("div",{staticClass:"q-alert-content col self-center"},[t("div",this.$slots.default||this.message),s?t("div",{staticClass:"q-alert-detail"},[s]):null]),this.actions&&this.actions.length?t("div",{staticClass:"q-alert-actions col-auto gutter-xs column flex-center"},this.actions.map(function(i){return t("div",{staticClass:"full-width"},[t(QBtn,{staticClass:"full-width",props:{fl