UNPKG

quasar

Version:

Build high-performance VueJS user interfaces (SPA, PWA, SSR, Mobile and Desktop) in record time

6 lines 437 kB
/*! * Quasar Framework v1.2.5 * (c) 2015-present Razvan Stoenescu * Released under the MIT License. */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("vue")):"function"==typeof define&&define.amd?define(["vue"],e):(t=t||self).Quasar=e(t.Vue)}(this,function(t){"use strict";if(void 0!==t){t=t&&t.hasOwnProperty("default")?t.default:t;var e="undefined"==typeof window,i=!1,n=e,s=!1===e?(navigator.userAgent||navigator.vendor||window.opera).toLowerCase():"",o={has:{touch:!1,webStorage:!1},within:{iframe:!1}},r=!1===e?{userAgent:s,is:Us(s),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}}:o,a={install:function(s,a){var l=this;!0===e?a.server.push(function(t,e){t.platform=l.parseSSR(e.ssr)}):!0===i?(Object.assign(this,r,o),a.takeover.push(function(t){n=i=!1,Object.assign(t.platform,r)}),t.util.defineReactive(s,"platform",this)):(Object.assign(this,r),s.platform=this)}};!0===e&&(a.parseSSR=function(t){var e=(t.req.headers["user-agent"]||t.req.headers["User-Agent"]||"").toLowerCase();return Object.assign({},r,{userAgent:e,is:Us(e)})}),Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(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}}),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===e&&("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 l={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{var c=Object.defineProperty({},"passive",{get:function(){Object.assign(l,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,c),window.removeEventListener("qtest",null,c)}catch(t){}var u,h,d,p,f,m,v,g=40,_=800,b={listenOpts:l,leftClick:Ks,middleClick:function(t){return 1===t.button},rightClick:function(t){return 2===t.button},position:Xs,getEventPath:Gs,getMouseWheelDistance:Zs,stop:Js,prevent:to,stopAndPrevent:eo,preventDraggable:io,create:no},y=["sm","md","lg","xl"],w={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(n,s){var o=this;if(!0!==e){var r,a=function(t){window.innerHeight!==o.height&&(o.height=window.innerHeight);var e=window.innerWidth;if(e!==o.width)o.width=e;else if(!0!==t)return;var i=o.sizes;o.gt.xs=e>=i.sm,o.gt.sm=e>=i.md,o.gt.md=e>=i.lg,o.gt.lg=e>=i.xl,o.lt.sm=e<i.sm,o.lt.md=e<i.md,o.lt.lg=e<i.lg,o.lt.xl=e<i.xl,o.xs=o.lt.sm,o.sm=o.gt.xs&&o.lt.md,o.md=o.gt.sm&&o.lt.lg,o.lg=o.gt.md&&o.lt.xl,o.xl=o.gt.lg},c={},u=16;this.setSizes=function(t){y.forEach(function(e){void 0!==t[e]&&(c[e]=t[e])})},this.setDebounce=function(t){u=t};var h=function(){var t=getComputedStyle(document.body);t.getPropertyValue("--q-size-sm")&&y.forEach(function(e){o.sizes[e]=parseInt(t.getPropertyValue("--q-size-"+e),10)}),o.setSizes=function(t){y.forEach(function(e){t[e]&&(o.sizes[e]=t[e])}),a(!0)},o.setDebounce=function(t){var e=function(){a()};r&&window.removeEventListener("resize",r,l.passive),r=t>0?so(e,t):e,window.addEventListener("resize",r,l.passive)},o.setDebounce(u),Object.keys(c).length>0?(o.setSizes(c),c=void 0):a()};!0===i?s.takeover.push(h):h(),t.util.defineReactive(n,"screen",this)}else n.screen=this}},C=function(){return!0},S={__history:[],add:function(){},remove:function(){},install:function(t,i){var n=this;if(!0!==e&&!0===t.platform.is.cordova){this.add=function(t){void 0===t.condition&&(t.condition=C),n.__history.push(t)},this.remove=function(t){var e=n.__history.indexOf(t);e>=0&&n.__history.splice(e,1)};var s=void 0===i.cordova||!1!==i.cordova.backButtonExit;document.addEventListener("deviceready",function(){document.addEventListener("backbutton",function(){if(n.__history.length){var t=n.__history[n.__history.length-1];!0===t.condition()&&(n.__history.pop(),t.handler())}else s&&"#/"===window.location.hash?navigator.app.exitApp():window.history.back()},!1)})}}},x={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"}},k={install:function(i,n,s){var o=this;!0===e&&n.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(n){if(void 0===n&&(n=x),n.set=o.set,n.getLocale=o.getLocale,n.rtl=n.rtl||!1,!1===e){var s=document.documentElement;s.setAttribute("dir",n.rtl?"rtl":"ltr"),s.setAttribute("lang",n.isoName)}!0===e||void 0!==i.lang?i.lang=n:t.util.defineReactive(i,"lang",n),o.isoName=n.isoName,o.nativeName=n.nativeName,o.props=n},this.set(s)},getLocale:function(){if(!0!==e){var t=navigator.language||navigator.languages[0]||navigator.browserLanguage||navigator.userLanguage||navigator.systemLanguage;return t?t.toLowerCase():void 0}}},q=/^\s*rgb(a)?\s*\((\s*(\d+)\s*,\s*?){2}(\d+)\s*,?\s*([01]?\.?\d*?)?\s*\)\s*$/,$={rgbToHex:oo,hexToRgb:ao,hsvToRgb:lo,rgbToHsv:co,textToRgb:uo,lighten:ho,luminosity:po,setBrand:fo,getBrand:mo},T={install:function(t,n){var s;!0===e?t.server.push(function(t,e){var i=vo(t.platform,n),s=e.ssr.setBodyClasses;"function"==typeof s?s(i):e.ssr.Q_BODY_CLASSES=i.join(" ")}):(!0===i?(s=[],!0===r.has.touch&&(document.body.classList.remove("no-touch"),s.push("touch")),!0===r.within.iframe&&s.push("within-iframe"),s.length>0&&go(s)):go(vo(r,n)),void 0!==n.brand&&function(t){for(var e in t)fo(e,t[e])}(n.brand),!0===r.is.ios&&document.body.addEventListener("touchstart",function(){}))}},M={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"}},B={__installed:!1,install:function(i,n){var s=this;this.set=function(n){void 0===n&&(n=M),n.set=s.set,!0===e||void 0!==i.iconSet?i.iconSet=n:t.util.defineReactive(i,"iconSet",n),s.name=n.name,s.def=n},this.set(n)}},z={server:[],takeover:[]},L={version:"1.2.5"},E=["B","KB","MB","GB","TB","PB"],P={humanStorageSize:_o,capitalize:bo,between:yo,normalizeToInterval:wo,pad:Co},O=e?null:XMLHttpRequest,A=e?null:O.prototype.send,D=[],F=[],R=0,I=t.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=function(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)"})}({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=function(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),yo(t+e,0,100)}(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,function(t,e){function i(){F.forEach(function(t){t()})}D.push(t),F.push(e),++R>1||(O.prototype.send=function(){D.forEach(function(t){t()}),this.addEventListener("loadend",i,!1),A.apply(this,arguments)})}(this.start,this.stop))},beforeDestroy:function(){var t,e;clearTimeout(this.timer),this.hijacked&&(t=this.start,e=this.stop,D.splice(D.indexOf(t),1),F.splice(F.indexOf(e),1),(R=Math.max(0,R-1))||(O.prototype.send=A))},render:function(t){return t("div",{class:this.classes,style:this.style})}}),N={xs:18,sm:24,md:32,lg:38,xl:46},V={props:{size:String},computed:{sizeStyle:function(){if(void 0!==this.size)return{fontSize:this.size in N?N[this.size]+"px":this.size}}}},H=t.extend({name:"QIcon",mixins:[V],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,So(this,"default")])}}),j=t.extend({name:"QAvatar",mixins:[V],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(H,{props:{name:this.icon}})].concat(So(this,"default")):So(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)])])}}),Q=t.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]:So(this,"default"))}}),W=t.extend({name:"QBanner",props:{inlineActions:Boolean,dense:Boolean,rounded:Boolean},render:function(t){var e=So(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"},So(this,"avatar")),t("div",{staticClass:"q-banner__content col text-body2"},So(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])}}),Y=t.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},So(this,"default"))}}),U={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},K=Object.keys(U),X={props:{align:{type:String,validator:function(t){return K.includes(t)}}},computed:{alignClass:function(){var t=void 0===this.align?!0===this.vertical?"stretch":"left":this.align;return(!0===this.vertical?"items":"justify")+"-"+U[t]}}},G=t.extend({name:"QBreadcrumbs",mixins:[X],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=So(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)])}}}),Z={props:{to:[String,Object],exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,disable:Boolean},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}}}},J=t.extend({name:"QBreadcrumbsEl",mixins:[Z],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(H,{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(So(this,"default")))}}),tt={props:{color:String,size:{type:[Number,String],default:"1em"}},computed:{cSize:function(){return this.size in N?N[this.size]+"px":this.size},classes:function(){if(this.color)return"text-"+this.color}}},et=t.extend({name:"QSpinner",mixins:[tt],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"}})])}}),it={offset:xo,style:function(t,e){return window.getComputedStyle(t).getPropertyValue(e)},height:ko,width:function(t){return t===window?window.innerWidth:t.getBoundingClientRect().width},css:qo,cssBatch:function(t,e){t.forEach(function(t){return qo(t,e)})},ready:function(t){if("function"==typeof t)return"loading"!==document.readyState?t():void document.addEventListener("DOMContentLoaded",t,!1)}},nt={name:"ripple",inserted:function(t,e){var i={modifiers:{},abort:[],click:function(e){!0===i.enabled&&(!0!==r.is.ie||e.clientX>=0)&&$o(e,t,i,!0===e.qKeyEvent)},keyup:function(e){!0===i.enabled&&i.modifiers.keyCodes.indexOf(e.keyCode)>-1&&!0!==e.qKeyEvent&&$o(e,t,i,!0)}};To(i,e),t.__qripple&&(t.__qripple_old=t.__qripple),t.__qripple=i,t.addEventListener("click",i.click,l.passive),t.addEventListener("keyup",i.keyup,l.passive)},update:function(t,e){void 0!==t.__qripple&&To(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,l.passive),t.removeEventListener("keyup",e.keyup,l.passive),delete t[t.__qripple_old?"__qripple_old":"__qripple"])}},st={directives:{Ripple:nt},props:{ripple:{type:[Boolean,Object],default:!0}}},ot={xs:8,sm:10,md:14,lg:20,xl:24},rt={mixins:[st,X],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 ot?ot[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":"")}}},at=l.passiveCapture,lt=void 0,ct=void 0,ut=void 0,ht=t.extend({name:"QBtn",mixins:[rt],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",eo,!0),document.removeEventListener("keyup",n,at),void 0!==e.$el&&e.$el.removeEventListener("blur",n,at)};document.addEventListener("keydown",eo,!0),document.addEventListener("keyup",n,at),this.$el.addEventListener("blur",n,at)}!0===this.hasRouterLink&&eo(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)&&(eo(t),ct!==this.$el&&(void 0!==ct&&this.__cleanup(),this.$el.focus(),ct=this.$el,this.$el.classList.add("q-btn--active"),document.addEventListener("keyup",this.__onPressEnd,!0),this.$el.addEventListener("blur",this.__onPressEnd,at))),this.$emit("keydown",t)},__onTouchstart:function(t){lt!==this.$el&&(void 0!==lt&&this.__cleanup(),(lt=t.target).addEventListener("touchcancel",this.__onPressEnd,at),lt.addEventListener("touchend",this.__onPressEnd,at)),this.$emit("touchstart",t)},__onMousedown:function(t){ut!==this.$el&&(void 0!==ut&&this.__cleanup(),ut=this.$el,document.addEventListener("mouseup",this.__onPressEnd,at)),this.$emit("mousedown",t)},__onPressEnd:function(t){if(void 0!==t&&"keyup"===t.type){if(ct===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),eo(t),t.qKeyEvent=!0}this.$emit("keyup",t)}this.__cleanup()},__cleanup:function(){lt!==this.$el&&ut!==this.$el||void 0===this.$refs.blurTarget||this.$refs.blurTarget===document.activeElement||this.$refs.blurTarget.focus(),void 0!==lt&&lt===this.$el&&(lt.removeEventListener("touchcancel",this.__onPressEnd,at),lt.removeEventListener("touchend",this.__onPressEnd,at),lt=void 0),ut===this.$el&&(document.removeEventListener("mouseup",this.__onPressEnd,at),ut=void 0),ct===this.$el&&(document.removeEventListener("keyup",this.__onPressEnd,!0),void 0!==this.$el&&this.$el.removeEventListener("blur",this.__onPressEnd,at),ct=void 0),void 0!==this.$el&&this.$el.classList.remove("q-btn--active")}},beforeDestroy:function(){this.__cleanup()},render:function(t){var e=[].concat(So(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(H,{props:{name:this.icon,left:!1===this.stack&&!0===this.hasLabel}})),void 0!==this.iconRight&&!1===this.isRound&&e.push(t(H,{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(et)])]:void 0):null])}}),dt=t.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},So(this,"default"))}}),pt=l.passive,ft=l.notPassive,mt={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)}),to(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&&Mo()},__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,pt),["touchcancel","touchmove","touchend"].forEach(function(t){e.anchorEl.removeEventListener(t,e.__mobileCleanup,pt)})):(this.anchorEl.removeEventListener("click",this.hide,pt),this.anchorEl.removeEventListener("contextmenu",this.__contextClick,ft)):(this.anchorEl.removeEventListener("click",this.toggle,pt),this.anchorEl.removeEventListener("keyup",this.__toggleKey,pt)))},__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,pt),["touchcancel","touchmove","touchend"].forEach(function(t){e.anchorEl.addEventListener(t,e.__mobileCleanup,pt)})):(this.anchorEl.addEventListener("click",this.hide,pt),this.anchorEl.addEventListener("contextmenu",this.__contextClick,ft)):(this.anchorEl.addEventListener("click",this.toggle,pt),this.anchorEl.addEventListener("keyup",this.__toggleKey,pt)))},__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()}},vt={mixins:[{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)}}],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 i=this;!0===this.disable||void 0!==this.__showCondition&&!0!==this.__showCondition(t)||(void 0!==this.$listeners.input&&!1===e&&(this.$emit("input",!0),this.payload=t,this.$nextTick(function(){i.payload===t&&(i.payload=void 0)})),void 0!==this.value&&void 0!==this.$listeners.input&&!0!==e||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 i=this;!0!==this.disable&&(void 0!==this.$listeners.input&&!1===e&&(this.$emit("input",!1),this.payload=t,this.$nextTick(function(){i.payload===t&&(i.payload=void 0)})),void 0!==this.value&&void 0!==this.$listeners.input&&!0!==e||this.__processHide(t))},__processHide:function(t){!1!==this.showing&&(this.showing=!1,this.$emit("before-hide",t),void 0!==this.__hide?(this.__clearTick(),this.__hide(t),this.__prepareTick()):this.$emit("hide",t))},__processModelChange:function(t){!0===this.disable&&!0===t?void 0!==this.$listeners.input&&this.$emit("input",!1):!0===t!==this.showing&&this["__process"+(!0===t?"Show":"Hide")](this.payload)}}},gt={inheritAttrs:!1,props:{contentClass:[Array,String,Object],contentStyle:[Array,String,Object]},methods:{__showPortal:function(){void 0!==this.__portal&&document.body.appendChild(this.__portal.$el)},__hidePortal:function(){void 0!==this.__portal&&(this.__portal.$destroy(),this.__portal.$el.remove(),this.__portal=void 0)},__preparePortal:function(){var e=this;void 0===this.__portal&&(this.__portal=new t({name:"QPortal",parent:this,inheritAttrs:!1,render:function(t){return e.__renderPortal(t)},components:this.$options.components,directives:this.$options.directives}).$mount())}},render:function(){void 0!==this.__portal&&this.__portal.$forceUpdate()},beforeDestroy:function(){this.__hidePortal()}},_t={props:{transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"}},data:function(){return{transitionState:this.showing}},watch:{showing:function(t){var e=this;this.transitionShow!==this.transitionHide&&this.$nextTick(function(){e.transitionState=t})}},computed:{transition:function(){return"q-transition--"+(!0===this.transitionState?this.transitionHide:this.transitionShow)}}},bt=l.notPassiveCapture,yt=l.passiveCapture,wt={click:[],focus:[]},Ct={name:"click-outside",bind:function(t,e,i){var n=e.value,s=e.arg,o=i.componentInstance||i.context,r={trigger:n,toggleEl:s,handler:function(t){var e=t.target;if(!(void 0===e||8===e.nodeType||e===document.documentElement||void 0!==r.toggleEl&&!1!==r.toggleEl.contains(e)||e!==document.body&&!1!==function(t,e){for(var i=t;void 0!==i;i=i.$parent)if(i===e)return!0;return!1}(function(t){for(var e=t;null!==e;e=e.parentNode){if(null===e.__vue__)return;if(void 0!==e.__vue__)return e.__vue__}}(e),o)))return t.qClickOutside=!0,r.trigger(t)}};t.__qclickoutside&&(t.__qclickoutside_old=t.__qclickoutside),t.__qclickoutside=r,0===wt.click.length&&(document.addEventListener("click",Eo,bt),document.addEventListener("touchstart",Eo,bt),document.addEventListener("focusin",Eo,yt)),wt.click.push(r.handler),r.timerFocusin=setTimeout(function(){wt.focus.push(r.handler)},500)},update:function(t,e){var i=e.value,n=e.oldValue,s=e.arg,o=t.__qclickoutside;i!==n&&(o.trigger=i),s!==o.arg&&(o.toggleEl=s)},unbind:function(t){var e=t.__qclickoutside_old||t.__qclickoutside;if(void 0!==e){clearTimeout(e.timerFocusin);var i=wt.click.findIndex(function(t){return t===e.handler}),n=wt.focus.findIndex(function(t){return t===e.handler});i>-1&&wt.click.splice(i,1),n>-1&&wt.focus.splice(n,1),0===wt.click.length&&(clearTimeout(u),document.removeEventListener("click",Eo,bt),document.removeEventListener("touchstart",Eo,bt),document.removeEventListener("focusin",Eo,yt)),delete t[t.__qclickoutside_old?"__qclickoutside_old":"__qclickoutside"]}}},St={getScrollTarget:Po,getScrollHeight:Oo,getScrollWidth:function(t){return(t===window?document.body:t).scrollWidth},getScrollPosition:Ao,getHorizontalScrollPosition:Do,animScrollTo:Fo,animHorizontalScrollTo:Ro,setScrollPosition:Vo,setHorizontalScrollPosition:Ho,getScrollbarWidth:jo,hasScrollbar:Qo},xt=[],kt={__install:function(){this.__installed=!0,window.addEventListener("keyup",function(t){0===xt.length||27!==t.which&&27!==t.keyCode||xt[xt.length-1].fn(t)})},register:function(t,e){!0===a.is.desktop&&(!0!==this.__installed&&this.__install(),xt.push({comp:t,fn:e}))},pop:function(t){if(!0===a.is.desktop){var e=xt.findIndex(function(e){return e.comp===t});e>-1&&xt.splice(e,1)}}},qt=t.extend({name:"QMenu",mixins:[mt,vt,gt,_t],directives:{ClickOutside:Ct},props:{persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:Wo},self:{type:String,validator:Wo},offset:{type:Array,validator:Yo},touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},computed:{horizSide:function(){return this.$q.lang.rtl?"right":"left"},anchorOrigin:function(){return Uo(this.anchor||(!0===this.cover?"center middle":"bottom "+this.horizSide))},selfOrigin:function(){return!0===this.cover?this.anchorOrigin:Uo(this.self||"top "+this.horizSide)},menuClass:function(){return!0===this.square?" q-menu--square":""},hideOnRouteChange:function(){return!0!==this.persistent}},methods:{focus:function(){var t=void 0!==this.__portal&&void 0!==this.__portal.$refs?this.__portal.$refs.inner:void 0;void 0!==t&&!0!==t.contains(document.activeElement)&&(t=t.querySelector("[autofocus]")||t).focus()},__show:function(t){var e=this;if(this.__refocusTarget=!1===this.noRefocus&&null!==document.activeElement?document.activeElement:void 0,kt.register(this,function(){!0!==e.persistent&&(e.$emit("escape-key"),e.hide())}),this.__showPortal(),this.__configureScrollTarget(),this.absoluteOffset=void 0,void 0!==t&&(this.touchPosition||this.contextMenu)){var i=Xs(t);if(void 0!==i.left){var n=this.anchorEl.getBoundingClientRect(),s=n.top,o=n.left;this.absoluteOffset={left:i.left-o,top:i.top-s}}}void 0===this.unwatch&&(this.unwatch=this.$watch("$q.screen.width",this.updatePosition)),this.$el.dispatchEvent(no("popup-show",{bubbles:!0})),!0!==this.noFocus&&null!==document.activeElement&&document.activeElement.blur(),this.__nextTick(function(){e.updatePosition(),!0!==e.noFocus&&e.focus()}),this.__setTimeout(function(){e.$emit("show",t)},300)},__hide:function(t){var e=this;this.__anchorCleanup(!0),void 0===this.__refocusTarget||null===this.__refocusTarget||void 0!==t&&!0===t.qClickOutside||this.__refocusTarget.focus(),this.$el.dispatchEvent(no("popup-hide",{bubbles:!0})),this.__setTimeout(function(){e.__hidePortal(),e.$emit("hide",t)},300)},__anchorCleanup:function(t){this.absoluteOffset=void 0,void 0!==this.unwatch&&(this.unwatch(),this.unwatch=void 0),!0!==t&&!0!==this.showing||(kt.pop(this),this.__unconfigureScrollTarget())},__unconfigureScrollTarget:function(){void 0!==this.scrollTarget&&this.scrollTarget.removeEventListener("scroll",this.updatePosition,l.passive),window.removeEventListener("scroll",this.updatePosition,l.passive)},__configureScrollTarget:function(){void 0!==this.anchorEl&&(this.scrollTarget=Po(this.anchorEl),this.scrollTarget.addEventListener("scroll",this.updatePosition,l.passive),this.scrollTarget!==window&&window.addEventListener("scroll",this.updatePosition,l.passive))},__onAutoClose:function(t){Bo(this,t),void 0!==this.$listeners.click&&this.$emit("click",t)},updatePosition:function(){if(void 0!==this.__portal){var t=this.__portal.$el;8!==t.nodeType?Ko({el:t,offset:this.offset,anchorEl:this.anchorEl,anchorOrigin:this.anchorOrigin,selfOrigin:this.selfOrigin,absoluteOffset:this.absoluteOffset,fit:this.fit,cover:this.cover,maxHeight:this.maxHeight,maxWidth:this.maxWidth}):setTimeout(this.updatePosition,25)}},__onClickOutside:function(t){if(!0!==this.persistent&&!0===this.showing){var e=t.target.classList;return this.hide(t),("touchstart"===t.type||e.contains("q-dialog__backdrop"))&&eo(t),!0}},__renderPortal:function(t){var e=Object.assign({},this.$listeners,{input:Js,"popup-show":Js,"popup-hide":Js});return!0===this.autoClose&&(e.click=this.__onAutoClose),t("transition",{props:{name:this.transition}},[!0===this.showing?t("div",{ref:"inner",staticClass:"q-menu scroll"+this.menuClass,class:this.contentClass,style:this.contentStyle,attrs:Object.assign({},{tabindex:-1},this.$attrs),on:e,directives:[{name:"click-outside",value:this.__onClickOutside,arg:this.anchorEl}]},So(this,"default")):null])}},mounted:function(){this.__processModelChange(this.value)},beforeDestroy:function(){!0===this.showing&&void 0!==this.anchorEl&&this.anchorEl.dispatchEvent(no("popup-hide",{bubbles:!0}))}}),$t=t.extend({name:"QBtnDropdown",mixins:[rt],props:{value:Boolean,split:Boolean,dropdownIcon:String,contentClass:[Array,String,Object],contentStyle:[Array,String,Object],cover:Boolean,persistent:Boolean,autoClose:Boolean,menuAnchor:{type:String,default:"bottom right"},menuSelf:{type:String,default:"top right"},disableMainBtn:Boolean,disableDropdown:Boolean},data:function(){return{showing:this.value}},watch:{value:function(t){void 0!==this.$refs.menu&&this.$refs.menu[t?"show":"hide"]()}},render:function(t){var e=this,i=void 0!==this.$scopedSlots.label?this.$scopedSlots.label():[],n=[t(H,{props:{name:this.dropdownIcon||this.$q.iconSet.arrow.dropdown},staticClass:"q-btn-dropdown__arrow",class:{"rotate-180":this.showing,"q-btn-dropdown__arrow-container":!1===this.split}})];if(!0!==this.disableDropdown&&n.push(t(qt,{ref:"menu",props:{cover:this.cover,fit:!0,persistent:this.persistent,autoClose:this.autoClose,anchor:this.menuAnchor,self:this.menuSelf,contentClass:this.contentClass,contentStyle:this.contentStyle,separateClosePopup:!0},on:{"before-show":function(t){e.showing=!0,e.$emit("before-show",t)},show:function(t){e.$emit("show",t),e.$emit("input",!0)},"before-hide":function(t){e.showing=!1,e.$emit("before-hide",t)},hide:function(t){e.$emit("hide",t),e.$emit("input",!1)}}},So(this,"default"))),!1===this.split)return t(ht,{class:"q-btn-dropdown q-btn-dropdown--simple",props:Object.assign({},this.$props,{disable:!0===this.disable||!0===this.disableMainBtn,noWrap:!0,round:!1}),on:{click:function(t){e.$emit("click",t)}}},i.concat(n));var s=t(ht,{class:"q-btn-dropdown--current",props:Object.assign({},this.$props,{disable:!0===this.disable||!0===this.disableMainBtn,noWrap:!0,iconRight:this.iconRight,round:!1}),on:{click:function(t){e.hide(),e.$emit("click",t)}}},i);return t(dt,{props:{outline:this.outline,flat:this.flat,rounded:this.rounded,push:this.push,unelevated:this.unelevated,glossy:this.glossy,stretch:this.stretch},staticClass:"q-btn-dropdown q-btn-dropdown--split no-wrap q-btn-item"},[s,t(ht,{staticClass:"q-btn-dropdown__arrow-container",props:{disable:!0===this.disable||!0===this.disableDropdown,outline:this.outline,flat:this.flat,rounded:this.rounded,push:this.push,size:this.size,color:this.color,stretch:this.stretch,textColor:this.textColor,dense:this.dense,ripple:this.ripple}},n)])},methods:{toggle:function(t){this.$refs.menu&&this.$refs.menu.toggle(t)},show:function(t){this.$refs.menu&&this.$refs.menu.show(t)},hide:function(t){this.$refs.menu&&this.$refs.menu.hide(t)}},mounted:function(){!0===this.value&&this.show()}}),Tt=t.extend({name:"QBtnToggle",mixins:[st],props:{value:{required:!0},options:{type:Array,required:!0,validator:function(t){return t.every(function(t){return("label"in t||"icon"in t||"slot"in t)&&"value"in t})}},color:String,textColor:String,toggleColor:{type:String,default:"primary"},toggleTextColor:String,outline:Boolean,flat:Boolean,unelevated:Boolean,rounded:Boolean,push:Boolean,glossy:Boolean,size:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,readonly:Boolean,disable:Boolean,stack:Boolean,stretch:Boolean,spread:Boolean},computed:{val:function(){var t=this;return this.options.map(function(e){return e.value===t.value})}},methods:{__set:function(t,e){!0!==this.readonly&&t!==this.value&&this.$emit("input",t,e)}},render:function(t){var e=this;return t(dt,{staticClass:"q-btn-toggle",props:{outline:this.outline,flat:this.flat,rounded:this.rounded,push:this.push,stretch:this.stretch,unelevated:this.unelevated,glossy:this.glossy,spread:this.spread},on:this.$listeners},this.options.map(function(i,n){return t(ht,{key:n,on:{click:function(){return e.__set(i.value,i)}},props:{disable:e.disable||i.disable,label:i.label,color:!0===e.val[n]?i.toggleColor||e.toggleColor:i.color||e.color,textColor:!0===e.val[n]?i.toggleTextColor||e.toggleTextColor:i.textColor||e.textColor,icon:i.icon,iconRight:i.iconRight,noCaps:!0===e.noCaps||!0===i.noCaps,noWrap:!0===e.noWrap||!0===i.noWrap,outline:e.outline,flat:e.flat,rounded:e.rounded,push:e.push,unelevated:e.unelevated,size:e.size,dense:e.dense,ripple:void 0!==e.ripple?e.ripple:i.ripple,stack:!0===e.stack||!0===i.stack,tabindex:i.tabindex,stretch:e.stretch}},void 0!==i.slot?So(e,i.slot):void 0)}))}}),Mt=t.extend({name:"QCard",props:{dark:Boolean,square:Boolean,flat:Boolean,bordered:Boolean},render:function(t){return t("div",{staticClass:"q-card",class:{"q-card--dark":this.dark,"q-card--bordered":this.bordered,"q-card--square no-border-radius":this.square,"q-card--flat no-shadow":this.flat},on:this.$listeners},So(this,"default"))}}),Bt=t.extend({name:"QCardSection",render:function(t){return t("div",{staticClass:"q-card__section",on:this.$listeners},So(this,"default"))}}),zt=t.extend({name:"QCardActions",mixins:[X],props:{vertical:Boolean},computed:{classes:function(){return"q-card__actions--"+(!0===this.vertical?"vert column":"horiz row")+" "+this.alignClass}},render:function(t){return t("div",{staticClass:"q-card__actions",class:this.classes,on:this.$listeners},So(this,"default"))}}),Lt=["left","right","up","down","horizontal","vertical"],Et={left:!0,right:!0,up:!0,down:!0,horizontal:!0,vertical:!0,all:!0},Pt=l.notPassiveCapture,Ot={name:"touch-swipe",bind:function(t,e){var i=e.value,n=e.arg,s=e.modifiers;if(!0===s.mouse||!0===r.has.touch){var o=!0===s.mouseCapture?"Capture":"",a={handler:i,sensitivity:function(t){var e=[.06,6,50];return"string"==typeof t&&t.length&&t.split(":").forEach(function(t,i){var n=parseFloat(t);n&&(e[i]=n)}),e}(n),modifiers:s,direction:Xo(s),mouseStart:function(t){void 0===a.event&&Ks(t)&&(Zo(a,"temp",[[document,"mousemove","move","notPassive"+o],[document,"mouseup","end","notPassiveCapture"]]),a.start(t,!0))},touchStart:function(t){void 0===a.event&&void 0!==t.target&&(Zo(a,"temp",[[t.target,"touchcancel","end","notPassiveCapture"],[t.target,"touchend","end","notPassiveCapture"]]),a.start(t))},start:function(e,i){!0===r.is.firefox&&io(t,!0);var n=Xs(e);a.event={x:n.left,y:n.top,time:(new Date).getTime(),mouse:!0===i,dir:!1}},move:function(t){if(void 0!==a.event)if(!1===a.event.dir){var e=(new Date).getTime()-a.event.time;if(0!==e){var i=Xs(t),n=i.left-a.event.x,s=Math.abs(n),o=i.top-a.event.y,r=Math.abs(o);if(!0!==a.event.mouse){if(s<a.sensitivity[1]&&r<a.sensitivity[1])return void a.end(t)}else if(s<a.sensitivity[2]&&r<a.sensitivity[2])return;var l=s/e,c=r/e;!0===a.direction.vertical&&s<r&&s<100&&c>a.sensitivity[0]&&(a.event.dir=o<0?"up":"down"),!0===a.direction.horizontal&&s>r&&r<100&&l>a.sensitivity[0]&&(a.event.dir=n<0?"left":"right"),!0===a.direction.up&&s<r&&o<0&&s<100&&c>a.sensitivity[0]&&(a.event.dir="up"),!0===a.direction.down&&s<r&&o>0&&s<100&&c>a.sensitivity[0]&&(a.event.dir="down"),!0===a.direction.left&&s>r&&n<0&&r<100&&l>a.sensitivi