UNPKG

quasar

Version:

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

6 lines 450 kB
/*! * Quasar Framework v1.5.1 * (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,s=e,n=!1===e?(navigator.userAgent||navigator.vendor||window.opera).toLowerCase():"",o={has:{touch:!1,webStorage:!1},within:{iframe:!1}},r=!1===e?{userAgent:n,is:so(n),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(n,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){s=i=!1,Object.assign(t.platform,r)}),t.util.defineReactive(n,"platform",this)):(Object.assign(this,r),n.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:so(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,_=40,g=800,b={listenOpts:l,leftClick:no,middleClick:function(t){return 1===t.button},rightClick:function(t){return 2===t.button},position:oo,getEventPath:ro,getMouseWheelDistance:ao,stop:lo,prevent:co,stopAndPrevent:uo,preventDraggable:ho,create:po},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(s,n){var o=this;if(!0!==e){var r,a=function(t){var e=window.innerWidth,i=window.innerHeight;if(i!==o.height&&(o.height=i),e!==o.width)o.width=e;else if(!0!==t)return;var s=o.sizes;o.gt.xs=e>=s.sm,o.gt.sm=e>=s.md,o.gt.md=e>=s.lg,o.gt.lg=e>=s.xl,o.lt.sm=e<s.sm,o.lt.md=e<s.md,o.lt.lg=e<s.lg,o.lt.xl=e<s.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),e=void 0!==window.visualViewport&&void 0!==window.visualViewport.onresize?window.visualViewport:window;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 i=function(){a()};void 0!==r&&e.removeEventListener("resize",r,l.passive),r=t>0?fo(i,t):i,e.addEventListener("resize",r,l.passive)},o.setDebounce(u),Object.keys(c).length>0?(o.setSizes(c),c=void 0):a()};!0===i?n.takeover.push(h):h(),t.util.defineReactive(s,"screen",this)}else s.screen=this}},C={isActive:!1,mode:!1,install:function(s,n,o){var r=this,a=o.dark;if(this.isActive=!0===a,!0===e)return n.server.push(function(t,e){t.dark={isActive:!1,mode:!1,set:function(i){e.ssr.Q_BODY_CLASSES=e.ssr.Q_BODY_CLASSES.replace(" body--light","").replace(" body--dark","")+" body--"+(!0===i?"dark":"light"),t.dark.isActive=!0===i,t.dark.mode=i},toggle:function(){t.dark.set(!1===t.dark.isActive)}},t.dark.set(a)}),void(this.set=function(){});if(!0===i){var l=function(t){r.__fromSSR=t},c=this.set;this.set=l,l(a),n.takeover.push(function(){r.set=c,r.set(r.__fromSSR)})}else this.set(a);t.util.defineReactive(this,"isActive",this.isActive),t.util.defineReactive(s,"dark",this)},set:function(t){this.mode=t,"auto"===t?(void 0===this.__media&&(this.__media=window.matchMedia("(prefers-color-scheme: dark)"),this.__media.addListener(this.__updateMedia)),t=this.__media.matches):void 0!==this.__media&&(this.__media.removeListener(this.__updateMedia),this.__media=void 0),this.isActive=!0===t,document.body.classList.remove("body--"+(!0===t?"light":"dark")),document.body.classList.add("body--"+(!0===t?"dark":"light"))},toggle:function(){C.set(!1===C.isActive)},__media:void 0,__updateMedia:function(){this.set(this.__media.matches)}},S=function(){return!0},x={__history:[],add:function(){},remove:function(){},install:function(t,i){var s=this;if(!0!==e&&!0===t.platform.is.cordova){this.add=function(t){void 0===t.condition&&(t.condition=S),s.__history.push(t)},this.remove=function(t){var e=s.__history.indexOf(t);e>=0&&s.__history.splice(e,1)};var n=void 0===i.cordova||!1!==i.cordova.backButtonExit;document.addEventListener("deviceready",function(){document.addEventListener("backbutton",function(){if(s.__history.length){var t=s.__history[s.__history.length-1];!0===t.condition()&&(s.__history.pop(),t.handler())}else n&&"#/"===window.location.hash?navigator.app.exitApp():window.history.back()},!1)})}}},k={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",heading1:"Heading 1",heading2:"Heading 2",heading3:"Heading 3",heading4:"Heading 4",heading5:"Heading 5",heading6:"Heading 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"}},q={install:function(i,s,n){var o=this;!0===e&&s.server.push(function(t,e){var i={lang:t.lang.isoName,dir:!0===t.lang.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(s){if(void 0===s&&(s=k),s.set=o.set,s.getLocale=o.getLocale,s.rtl=!0===s.rtl||!1,!1===e){var n=document.documentElement;n.setAttribute("dir",s.rtl?"rtl":"ltr"),n.setAttribute("lang",s.isoName)}!0===e||void 0!==i.lang?i.lang=s:t.util.defineReactive(i,"lang",s),o.isoName=s.isoName,o.nativeName=s.nativeName,o.props=s},this.set(n)},getLocale:function(){if(!0!==e){var t=navigator.language||navigator.languages[0]||navigator.browserLanguage||navigator.userLanguage||navigator.systemLanguage;return t?t.toLowerCase():void 0}}},$=/^\s*rgb(a)?\s*\((\s*(\d+)\s*,\s*?){2}(\d+)\s*,?\s*([01]?\.?\d*?)?\s*\)\s*$/,T={rgbToHex:mo,hexToRgb:_o,hsvToRgb:go,rgbToHsv:bo,textToRgb:yo,lighten:function(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=yo(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)},luminosity:wo,setBrand:Co,getBrand:So},M=!1,B={install:function(t,s){var n;!0===e?t.server.push(function(t,e){var i=$o(t.platform,s),n=e.ssr.setBodyClasses;"function"==typeof n?n(i):e.ssr.Q_BODY_CLASSES=i.join(" ")}):(!0===i?(n=[],!0===r.has.touch&&(document.body.classList.remove("no-touch"),n.push("touch")),!0===r.within.iframe&&n.push("within-iframe"),n.length>0&&To(n)):To($o(r,s)),void 0!==s.brand&&function(t){for(var e in t)Co(e,t[e])}(s.brand),!0===r.is.ios&&document.body.addEventListener("touchstart",function(){}),window.addEventListener("keydown",xo,!0))}},z={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",heading:"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"}},L={install:function(i,s){var n=this;this.set=function(s){void 0===s&&(s=z),s.set=n.set,!0===e||void 0!==i.iconSet?i.iconSet=s:t.util.defineReactive(i,"iconSet",s),n.name=s.name,n.def=s},this.set(s),!0!==e&&t.util.defineReactive(i,"iconMapFn",void 0)}},P=[a,w,C],E={server:[],takeover:[]},O={version:"1.5.1"},D=["B","KB","MB","GB","TB","PB"],A={humanStorageSize:Mo,capitalize:Bo,between:zo,normalizeToInterval:Lo,pad:Po},R=e?null:XMLHttpRequest,F=e?null:R.prototype.send,I=[],N=[],V=0,H=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,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)"})}({p:this.progress,pos:this.position,active:t,horiz:this.horizontal,reverse:!0===this.$q.lang.rtl&&["top","bottom"].includes(this.position)?!this.reverse:this.reverse,dir:!0===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),zo(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(){N.forEach(function(t){t()})}I.push(t),N.push(e),++V>1||(R.prototype.send=function(){I.forEach(function(t){t()}),this.addEventListener("loadend",i,!1),F.apply(this,arguments)})}(this.start,this.stop))},beforeDestroy:function(){var t,e;clearTimeout(this.timer),this.hijacked&&(t=this.start,e=this.stop,I.splice(I.indexOf(t),1),N.splice(N.indexOf(e),1),(V=Math.max(0,V-1))||(R.prototype.send=F))},render:function(t){return t("div",{class:this.classes,style:this.style})}}),j={xs:18,sm:24,md:32,lg:38,xl:46},Q={props:{size:String},computed:{sizeStyle:function(){if(void 0!==this.size)return{fontSize:this.size in j?j[this.size]+"px":this.size}}}},W=t.extend({name:"QIcon",mixins:[Q],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":"")+(void 0!==this.color?" text-"+this.color:"");if(void 0!==this.$q.iconMapFn){var s=this.$q.iconMapFn(e);if(void 0!==s){if(void 0===s.icon)return{cls:s.cls+" "+i,content:void 0!==s.content?s.content:" "};e=s.icon}}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,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}},Do([this.type.content],this,"default"))}}),Y=t.extend({name:"QAvatar",mixins:[Q],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}}},render:function(t){var e=void 0!==this.icon?[t(W,{props:{name:this.icon}})]:void 0;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},Ao(e,this,"default"))])}}),U=t.extend({name:"QBadge",props:{color:String,textColor:String,floating:Boolean,transparent:Boolean,multiLine:Boolean,outline: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(){var t=!0===this.outline&&this.color||this.textColor;return"q-badge flex inline items-center no-wrap q-badge--"+(!0===this.multiLine?"multi":"single")+"-line"+(!0===this.outline?" q-badge--outline":void 0!==this.color?" bg-"+this.color:"")+(void 0!==t?" text-"+t:"")+(!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]:Eo(this,"default"))}}),K={props:{dark:{type:Boolean,default:null}},computed:{isDark:function(){return null===this.dark?this.$q.dark.isActive:this.dark}}},X=t.extend({name:"QBanner",mixins:[K],props:{inlineActions:Boolean,dense:Boolean,rounded:Boolean},render:function(t){var e=Eo(this,"action"),i=[t("div",{staticClass:"q-banner__avatar col-auto row items-center"},Eo(this,"avatar")),t("div",{staticClass:"q-banner__content col text-body2"},Eo(this,"default"))];return void 0!==e&&i.push(t("div",{staticClass:"q-banner__actions row items-center justify-end",class:"col-"+(!0===this.inlineActions?"auto":"all")},e)),t("div",{staticClass:"q-banner row items-center",class:{"q-banner--top-padding":void 0!==e&&!this.inlineActions,"q-banner--dense":this.dense,"q-banner--dark q-dark":this.isDark,"rounded-borders":this.rounded},on:this.$listeners},i)}}),G=t.extend({name:"QBar",mixins:[K],props:{dense:Boolean},computed:{classes:function(){return"q-bar--"+(!0===this.dense?"dense":"standard")+" q-bar--"+(!0===this.isDark?"dark":"light")}},render:function(t){return t("div",{staticClass:"q-bar row no-wrap items-center",class:this.classes,on:this.$listeners},Eo(this,"default"))}}),Z={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},J=Object.keys(Z),tt={props:{align:{type:String,validator:function(t){return J.includes(t)}}},computed:{alignClass:function(){var t=void 0===this.align?!0===this.vertical?"stretch":"left":this.align;return(!0===this.vertical?"items":"justify")+"-"+Z[t]}}},et=t.extend({name:"QBreadcrumbs",mixins:[tt],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=Eo(this,"default");if(void 0!==i){var s=1,n=[],o=i.filter(function(t){return void 0!==t.tag&&t.tag.endsWith("-QBreadcrumbsEl")}).length,r=void 0!==this.$scopedSlots.separator?this.$scopedSlots.separator:function(){return e.separator};return i.forEach(function(i){if(void 0!==i.tag&&i.tag.endsWith("-QBreadcrumbsEl")){var a=s<o;s++,n.push(t("div",{staticClass:"flex items-center",class:a?e.activeClass:"q-breadcrumbs--last"},[i])),a&&n.push(t("div",{staticClass:"q-breadcrumbs__separator",class:e.sepClass},r()))}else n.push(i)}),t("div",{staticClass:"q-breadcrumbs",on:this.$listeners},[t("div",{staticClass:"flex items-center",class:this.classes},n)])}}}),it={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}}}},st=t.extend({name:"QBreadcrumbsEl",mixins:[it],props:{label:String,icon:String},render:function(t){var e,i=[];return void 0!==this.icon&&i.push(t(W,{staticClass:"q-breadcrumbs__el-icon",class:void 0!==this.label?"q-breadcrumbs__el-icon--with-label":null,props:{name:this.icon}})),this.label&&i.push(this.label),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),Do(i,this,"default"))}}),nt={props:{color:String,size:{type:[Number,String],default:"1em"}},computed:{cSize:function(){return this.size in j?j[this.size]+"px":this.size},classes:function(){if(this.color)return"text-"+this.color}}},ot=t.extend({name:"QSpinner",mixins:[nt],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"}})])}}),rt={offset:Ro,style:function(t,e){return window.getComputedStyle(t).getPropertyValue(e)},height:Fo,width:function(t){return t===window?window.innerWidth:t.getBoundingClientRect().width},css:Io,cssBatch:function(t,e){t.forEach(function(t){return Io(t,e)})},ready:function(t){if("function"==typeof t)return"loading"!==document.readyState?t():void document.addEventListener("DOMContentLoaded",t,!1)}},at={name:"ripple",inserted:function(t,e){var i={modifiers:{},abort:[],click:function(e){!0===i.enabled&&(!0!==r.is.ie||e.clientX>=0)&&No(e,t,i,!0===e.qKeyEvent)},keyup:function(e){!0===i.enabled&&!0===qo(e,i.modifiers.keyCodes)&&No(e,t,i,!0)}};Vo(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&&Vo(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"])}},lt={directives:{Ripple:at},props:{ripple:{type:[Boolean,Object],default:!0}}},ct={xs:8,sm:10,md:14,lg:20,xl:24},ut={mixins:[lt,tt],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 ct?ct[this.size]+"px":this.size}},isRound:function(){return!0===this.round||!0===this.fab||!0===this.fabMini},isActionable:function(){return!0!==this.disable&&!0!==this.loading},computedTabIndex:function(){return!0===this.isActionable?this.tabindex||0:-1},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.disable&&(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.isActionable?" q-btn--actionable q-focusable q-hoverable":!0===this.disable?" disabled":"")+(!0===this.fab?" q-btn--fab":!0===this.fabMini?" q-btn--fab-mini":"")+(!0===this.noCaps?" q-btn--no-uppercase":"")+(!0===this.rounded&&!0!==this.isRound?" 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":"")}}},ht=["left","right","up","down","horizontal","vertical"],dt={left:!0,right:!0,up:!0,down:!0,horizontal:!0,vertical:!0,all:!0},pt=!1===e&&(!0===r.is.ios||!0===r.is.mac&&!0===r.has.touch||window.navigator.vendor.toLowerCase().indexOf("apple")>-1)?function(){return document}:function(t){return t},ft=l.passiveCapture,mt=void 0,vt=void 0,_t=void 0,gt=t.extend({name:"QBtn",mixins:[ut],props:{percentage:Number,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)},computedPercentage:function(){return Math.max(0,Math.min(100,this.percentage))}},methods:{click:function(t){var e=this;if(void 0!==t){if(!0===t.defaultPrevented)return;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 s=function(){document.removeEventListener("keydown",uo,!0),document.removeEventListener("keyup",s,ft),void 0!==e.$el&&e.$el.removeEventListener("blur",s,ft)};document.addEventListener("keydown",uo,!0),document.addEventListener("keyup",s,ft),this.$el.addEventListener("blur",s,ft)}!0===this.hasRouterLink&&uo(t)}var n=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,n),!0===this.hasRouterLink&&!1!==t.navigate&&n()},__onKeydown:function(t){!0===qo(t,[13,32])&&(uo(t),vt!==this.$el&&(void 0!==vt&&this.__cleanup(),this.$el.focus(),vt=this.$el,this.$el.classList.add("q-btn--active"),document.addEventListener("keyup",this.__onPressEnd,!0),this.$el.addEventListener("blur",this.__onPressEnd,ft))),this.$emit("keydown",t)},__onTouchstart:function(t){if(mt!==this.$el){void 0!==mt&&this.__cleanup(),mt=t.target;var e=pt(mt);e.addEventListener("touchcancel",this.__onPressEnd,ft),e.addEventListener("touchend",this.__onPressEnd,ft)}this.$emit("touchstart",t)},__onMousedown:function(t){_t!==this.$el&&(void 0!==_t&&this.__cleanup(),_t=this.$el,document.addEventListener("mouseup",this.__onPressEnd,ft)),this.$emit("mousedown",t)},__onPressEnd:function(t){if(void 0===t||"blur"!==t.type||document.activeElement!==this.$el){if(void 0!==t&&"keyup"===t.type){if(vt===this.$el&&!0===qo(t,[13,32])){var e=new MouseEvent("click",t);e.qKeyEvent=!0,!0===t.defaultPrevented&&co(e),!0===t.cancelBubble&&lo(e),this.$el.dispatchEvent(e),uo(t),t.qKeyEvent=!0}this.$emit("keyup",t)}this.__cleanup()}},__cleanup:function(t){if(!0===t||mt!==this.$el&&_t!==this.$el||void 0===this.$refs.blurTarget||this.$refs.blurTarget===document.activeElement||this.$refs.blurTarget.focus(),mt===this.$el){var e=pt(mt);e.removeEventListener("touchcancel",this.__onPressEnd,ft),e.removeEventListener("touchend",this.__onPressEnd,ft),mt=void 0}_t===this.$el&&(document.removeEventListener("mouseup",this.__onPressEnd,ft),_t=void 0),vt===this.$el&&(document.removeEventListener("keyup",this.__onPressEnd,!0),void 0!==this.$el&&this.$el.removeEventListener("blur",this.__onPressEnd,ft),vt=void 0),void 0!==this.$el&&this.$el.classList.remove("q-btn--active")}},beforeDestroy:function(){this.__cleanup(!0)},render:function(t){var e=[],i={staticClass:"q-btn q-btn-item non-selectable no-outline",class:this.classes,style:this.style,attrs:this.attrs};!0===this.isActionable&&(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)),!0!==this.disable&&!1!==this.ripple&&(i.directives=[{name:"ripple",value:this.computedRipple,modifiers:{center:this.isRound}}]),void 0!==this.icon&&e.push(t(W,{props:{name:this.icon,left:!1===this.stack&&!0===this.hasLabel}})),!0===this.hasLabel&&e.push(t("div",[this.label])),e=Do(e,this,"default"),void 0!==this.iconRight&&!1===this.isRound&&e.push(t(W,{props:{name:this.iconRight,right:!1===this.stack&&!0===this.hasLabel}}));var s=[t("div",{staticClass:"q-focus-helper",ref:"blurTarget",attrs:{tabindex:-1}})];return!0===this.loading&&void 0!==this.percentage&&s.push(t("div",{staticClass:"q-btn__progress absolute-full"},[t("div",{staticClass:"q-btn__progress-indicator absolute-full",class:!0===this.darkPercentage?"q-btn__progress--dark":"",style:{transform:"scale("+this.computedPercentage/100+",1)"}})])),s.push(t("div",{staticClass:"q-btn__wrapper col row no-wrap q-anchor--skip"},[t("div",{staticClass:"q-btn__content text-center col items-center q-anchor--skip",class:this.innerClasses},e)])),null!==this.loading&&s.push(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(ot)])]:void 0)),t(!0===this.isLink?"a":"button",i,s)}}),bt=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},Eo(this,"default"))}}),yt={props:{target:{type:[Boolean,String],default:!0},noParentEvent:Boolean,contextMenu:Boolean},watch:{contextMenu:function(t){void 0!==this.anchorEl&&(this.__unconfigureAnchorEl(),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)}),co(t)},__toggleKey:function(t){!0===qo(t,13)&&this.toggle(t)},__mobileCleanup:function(t){this.anchorEl.classList.remove("non-selectable"),clearTimeout(this.touchTimer),!0===this.showing&&void 0!==t&&Yo()},__mobilePrevent:co,__mobileTouch:function(t){var e=this;if(this.__mobileCleanup(t),!0===this.__showCondition(t)){this.hide(t),this.anchorEl.classList.add("non-selectable");var i=pt(t.target);Qo(this,"anchor",[[i,"touchmove","__mobileCleanup","passive"],[i,"touchend","__mobileCleanup","passive"],[i,"touchcancel","__mobileCleanup","passive"],[this.anchorEl,"contextmenu","__mobilePrevent","notPassive"]]),this.touchTimer=setTimeout(function(){e.show(t)},300)}},__unconfigureAnchorEl:function(){Wo(this,"anchor")},__configureAnchorEl:function(t){(void 0===t&&(t=this.contextMenu),!0!==this.noParentEvent&&void 0!==this.anchorEl)&&Qo(this,"anchor",!0===t?!0===this.$q.platform.is.mobile?[[this.anchorEl,"touchstart","__mobileTouch","passive"]]:[[this.anchorEl,"click","hide","passive"],[this.anchorEl,"contextmenu","__contextClick","notPassive"]]:[[this.anchorEl,"click","toggle","passive"],[this.anchorEl,"keyup","__toggleKey","passive"]])},__setAnchorEl:function(t){for(this.anchorEl=t;this.anchorEl.classList.contains("q-anchor--skip");)this.anchorEl=this.anchorEl.parentNode;this.__configureAnchorEl()},__pickAnchorEl:function(){if(this.target&&"string"==typeof this.target){var t=document.querySelector(this.target);null!==t?(this.anchorEl=t,this.__configureAnchorEl()):(this.anchorEl=void 0,console.error('Anchor: target "'+this.target+'" not found',this))}else!1!==this.target?this.__setAnchorEl(this.parentEl):this.anchorEl=void 0}},created:function(){var t=this;"function"==typeof this.__configureScrollTarget&&"function"==typeof this.__unconfigureScrollTarget&&(this.noParentEventWatcher=this.$watch("noParentEvent",function(){void 0!==t.scrollTarget&&(t.__unconfigureScrollTarget(),t.__configureScrollTarget())}))},mounted:function(){this.parentEl=this.$el.parentNode,this.__pickAnchorEl(),!0===this.value&&void 0===this.anchorEl&&this.$emit("input",!1)},beforeDestroy:function(){clearTimeout(this.touchTimer),void 0!==this.noParentEventWatcher&&this.noParentEventWatcher(),void 0!==this.__anchorCleanup&&this.__anchorCleanup(),this.__unconfigureAnchorEl()}},wt={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)}},Ct={mixins:[wt],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)}}},St={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()}},xt={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)}}},kt=l.notPassiveCapture,qt=l.passiveCapture,$t={click:[],focus:[]},Tt={name:"click-outside",bind:function(t,e,i){var s=e.value,n=e.arg,o=i.componentInstance||i.context,r={trigger:s,toggleEl:n,handler:function(t){var e=t.target;if(!(void 0===e||8===e.nodeType||e===document.documentElement||!1!==e.classList.contains("no-pointer-events")||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===$t.click.length&&(document.addEventListener("click",Zo,kt),document.addEventListener("touchstart",Zo,kt),document.addEventListener("focusin",Zo,qt)),$t.click.push(r.handler),r.timerFocusin=setTimeout(function(){$t.focus.push(r.handler)},500)},update:function(t,e){var i=e.value,s=e.oldValue,n=e.arg,o=t.__qclickoutside;i!==s&&(o.trigger=i),n!==o.arg&&(o.toggleEl=n)},unbind:function(t){var e=t.__qclickoutside_old||t.__qclickoutside;if(void 0!==e){clearTimeout(e.timerFocusin);var i=$t.click.findIndex(function(t){return t===e.handler}),s=$t.focus.findIndex(function(t){return t===e.handler});i>-1&&$t.click.splice(i,1),s>-1&&$t.focus.splice(s,1),0===$t.click.length&&(clearTimeout(u),document.removeEventListener("click",Zo,kt),document.removeEventListener("touchstart",Zo,kt),document.removeEventListener("focusin",Zo,qt)),delete t[t.__qclickoutside_old?"__qclickoutside_old":"__qclickoutside"]}}},Mt={getScrollTarget:Jo,getScrollHeight:tr,getScrollWidth:function(t){return(t===window?document.body:t).scrollWidth},getScrollPosition:er,getHorizontalScrollPosition:ir,animScrollTo:sr,animHorizontalScrollTo:nr,setScrollPosition:ar,setHorizontalScrollPosition:lr,getScrollbarWidth:cr,hasScrollbar:ur},Bt=[],zt={__install:function(){this.__installed=!0,window.addEventListener("keyup",function(t){0!==Bt.length&&!0===qo(t,27)&&Bt[Bt.length-1].fn(t)})},register:function(t,e){!0===t.$q.platform.is.desktop&&(!0!==this.__installed&&this.__install(),Bt.push({comp:t,fn:e}))},pop:function(t){if(!0===t.$q.platform.is.desktop){var e=Bt.findIndex(function(e){return e.comp===t});e>-1&&Bt.splice(e,1)}}},Lt=t.extend({name:"QMenu",mixins:[K,yt,Ct,St,xt],directives:{ClickOutside:Tt},props:{persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:hr},self:{type:String,validator:hr},offset:{type:Array,validator:dr},touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},computed:{horizSide:function(){return!0===this.$q.lang.rtl?"right":"left"},anchorOrigin:function(){return pr(this.anchor||(!0===this.cover?"center middle":"bottom "+this.horizSide))},selfOrigin:function(){return!0===this.cover?this.anchorOrigin:pr(this.self||"top "+this.horizSide)},menuClass:function(){return(!0===this.square?" q-menu--square":"")+(!0===this.isDark?" q-menu--dark q-dark":"")},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,zt.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=oo(t);if(void 0!==i.left){var s=this.anchorEl.getBoundingClientRect(),n=s.top,o=s.left;this.absoluteOffset={left:i.left-o,top:i.top-n}}}void 0===this.unwatch&&(this.unwatch=this.$watch("$q.screen.width",this.updatePosition)),this.$el.dispatchEvent(po("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(po("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||(zt.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=Jo(this.anchorEl),this.scrollTarget.addEventListener("scroll",this.updatePosition,l.passive),this.scrollTarget!==window&&window.addEventListener("scroll",this.updatePosition,l.passive))},__onAutoClose:function(t){Uo(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?fr({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"))&&uo(t),!0}},__renderPortal:function(t){var e=Object.assign({},this.$listeners,{input:lo,"popup-show":lo,"popup-hide":lo});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}]},Eo(this,"default")):null])}},mounted:function(){this.__processModelChange(this.value)},beforeDestroy:function(){!0===this.showing&&void 0!==this.anchorEl&&this.anchorEl.dispatchEvent(po("popup-hide",{bubbles:!0}))}}),Pt=t.extend({name:"QBtnDropdown",mixins:[ut],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=Eo(this,"label",[]),s=[t(W,{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&&s.push(t(Lt,{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:Xo(this,"menu",{"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)}})},Eo(this,"default"))),!1===this.split)return t(gt,{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:Xo(this,"nonSpl",{click:function(t){e.$emit("click",t)}})},i.concat(s));var n=t(gt,{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:Xo(this,"spl",{click:function(t){e.hide(),e.$emit("click",t)}})},i);return t(bt,{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"},[n,t(gt,{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}},s)])},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()}}),Et=t.extend({name:"QBtnToggle",mixins:[lt],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,clearable: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&&(this.value===t?!0===this.clearable&&(this.$emit("input",null,null),this.$emit("clear")):this.$emit("input",t,e))}},render:function(t){var e=this;return t(bt,{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,s){return t(gt,{key:s,on:{click:function(){return e.__set(i.value,i)}},props:{disable:e.disable||i.disable,label:i.label,color:!0===e.val[s]?i.toggleColor||e.toggleColor:i.color||e.color,textColor:!0===e.val[s]?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?Eo(e,i.slot):void 0)}))}}),Ot=t.extend({name:"QCard",mixins:[K],props:{square:Boolean,flat:Boolean,bordered:Boolean},render:function(t){return t("div",{staticClass:"q-card",class:{"q-card--dark q-dark":this.isDark,"q-card--bordered":this.bordered,"q-card--square no-border-radius":this.square,"q-card--flat no-shadow":this.flat},on:this.$listeners},Eo(this,"default"))}}),Dt=t.extend({name:"QCardSection",render:function(t){return t("div",{staticClass:"q-card__section",on:this.$listeners},Eo(this,"default"))}}),At=t.extend({name:"QCardActions",mixins:[tt],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},Eo(this,"default"))}}),Rt={name:"touch-swipe",bind:function(t,e){var i=e.value,s=e.arg,n=e.modifiers;if(!0===n.mouse||!0===r.has.touch){var o=!0===n.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 s=parseFloat(t);s&&(e[i]=s)}),e}(s),modifiers:n,direction:Ho(n),noop:function(){},mouseStart:function(t){void 0===a.event&&void 0!==t.target&&!0!==t.target.draggable&&no(t)&&(Qo(a,"temp",[[document,"mousemove","move","notPassive"+o],[document,"mouseup","end","notPassiveCapture"]]),a.start(t,!0))},touchStart:function(t){if(void 0===a.event&&void 0!==t.target&&!0!==t.target.draggable){var e=pt(t.target);Qo(a,"temp",[[e,"touchmove","move","notPassiveCapture"],[e,"touchcancel","end","notPassiveCapture"],[e,"touchend","end","notPassiveCapture"]]),a.start(t)}},start:function(e,i){!0===r.is.firefox&&ho(t,!0);var s=oo(e);a.event={x:s.left,y:s.top,time:Date.now(),mouse:!0===i,dir:!1}},move:function(t){if(void 0!==a.event)if(!1===a.event.dir){var e=Date.now()-a.event.time;if(0!==e){var i=oo(t),s=i.left-a.event.x,n=Math.abs(s),o=i.top-a.event.y,r=Math.abs(o);if(!0!==a.event.mouse){if(n<a.sensitivity[1]&&r<a.sensitivity[1])return void a.end(t)}else if(n<a.sensitivity[2]&&r<a.sensitivity[2])return;var l=n/e,c=r/e;!0===a.direction.vertical&&n<r&&n<100&&c>a.sensitivity[0]&&(a.event.dir=o<0?"up":"down"),!0===a.direction.horizontal&&n>r&&r<100&&l>a.sensitivity[0]&&(a.event.dir=s<0?"left":"