/*!
 * Quasar Framework v2.0.1
 * (c) 2015-present Razvan Stoenescu
 * Released under the MIT License.
 */
(function(e,t){"object"===typeof exports&&"undefined"!==typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define(["vue"],t):(e="undefined"!==typeof globalThis?globalThis:e||self,e.Quasar=t(e.Vue))})(this,function(e){"use strict";const t=e.ref(!1);let o;function n(e,t){const o=/(edge|edga|edgios)\/([\w.]+)/.exec(e)||/(opr)[\/]([\w.]+)/.exec(e)||/(vivaldi)[\/]([\w.]+)/.exec(e)||/(chrome|crios)[\/]([\w.]+)/.exec(e)||/(iemobile)[\/]([\w.]+)/.exec(e)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(firefox|fxios)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:o[5]||o[3]||o[1]||"",version:o[2]||o[4]||"0",versionNumber:o[4]||o[2]||"0",platform:t[0]||""}}function a(e){return/(ipad)/.exec(e)||/(ipod)/.exec(e)||/(windows phone)/.exec(e)||/(iphone)/.exec(e)||/(kindle)/.exec(e)||/(silk)/.exec(e)||/(android)/.exec(e)||/(win)/.exec(e)||/(mac)/.exec(e)||/(linux)/.exec(e)||/(cros)/.exec(e)||/(playbook)/.exec(e)||/(bb)/.exec(e)||/(blackberry)/.exec(e)||[]}const l="ontouchstart"in window||window.navigator.maxTouchPoints>0;function i(e){o={is:{...e}},delete e.mac,delete e.desktop;const t=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(e,{mobile:!0,ios:!0,platform:t,[t]:!0})}function r(e){const t=e.toLowerCase(),o=a(t),r=n(t,o),s={};r.browser&&(s[r.browser]=!0,s.version=r.version,s.versionNumber=parseInt(r.versionNumber,10)),r.platform&&(s[r.platform]=!0);const u=s.android||s.ios||s.bb||s.blackberry||s.ipad||s.iphone||s.ipod||s.kindle||s.playbook||s.silk||s["windows phone"];return!0===u||t.indexOf("mobile")>-1?(s.mobile=!0,s.edga||s.edgios?(s.edge=!0,r.browser="edge"):s.crios?(s.chrome=!0,r.browser="chrome"):s.fxios&&(s.firefox=!0,r.browser="firefox")):s.desktop=!0,(s.ipod||s.ipad||s.iphone)&&(s.ios=!0),s["windows phone"]&&(s.winphone=!0,delete s["windows phone"]),(s.chrome||s.opr||s.safari||s.vivaldi||!0===s.mobile&&!0!==s.ios&&!0!==u)&&(s.webkit=!0),(s.safari&&s.blackberry||s.bb)&&(r.browser="blackberry",s.blackberry=!0),s.safari&&s.playbook&&(r.browser="playbook",s.playbook=!0),s.opr&&(r.browser="opera",s.opera=!0),s.safari&&s.android&&(r.browser="android",s.android=!0),s.safari&&s.kindle&&(r.browser="kindle",s.kindle=!0),s.safari&&s.silk&&(r.browser="silk",s.silk=!0),s.vivaldi&&(r.browser="vivaldi",s.vivaldi=!0),s.name=r.browser,s.platform=r.platform,t.indexOf("electron")>-1?s.electron=!0:document.location.href.indexOf("-extension://")>-1?s.bex=!0:(void 0!==window.Capacitor?(s.capacitor=!0,s.nativeMobile=!0,s.nativeMobileWrapper="capacitor"):void 0===window._cordovaNative&&void 0===window.cordova||(s.cordova=!0,s.nativeMobile=!0,s.nativeMobileWrapper="cordova"),!0===l&&!0===s.mac&&(!0===s.desktop&&!0===s.safari||!0===s.nativeMobile&&!0!==s.android&&!0!==s.ios&&!0!==s.ipad)&&i(s)),s}const s=navigator.userAgent||navigator.vendor||window.opera,u={has:{touch:!1,webStorage:!1},within:{iframe:!1}},c={userAgent:s,is:r(s),has:{touch:l},within:{iframe:window.self!==window.top}},d={install(n){const{$q:a}=n;!0===t.value?(n.onSSRHydrated.push(()=>{t.value=!1,Object.assign(a.platform,c),o=void 0}),a.platform=e.reactive(this)):a.platform=this}};{let e;Object.defineProperty(c.has,"webStorage",{get:()=>{if(void 0!==e)return e;try{if(window.localStorage)return e=!0,!0}catch(e){}return e=!1,!1}}),!0===c.is.ios&&window.navigator.vendor.toLowerCase().indexOf("apple"),!0===t.value?Object.assign(d,c,o,u):Object.assign(d,c)}var v=(t,o)=>{const n={},a=e.reactive(t);return Object.keys(t).forEach(e=>{n[e]={get:()=>a[e],set:t=>{a[e]=t}}}),Object.defineProperties(o,n),o};const p={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(p,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,e),window.removeEventListener("qtest",null,e)}catch(e){}function m(){}function f(e){return 0===e.button}function h(e){return 1===e.button}function g(e){return 2===e.button}function b(e){return e.touches&&e.touches[0]?e=e.touches[0]:e.changedTouches&&e.changedTouches[0]?e=e.changedTouches[0]:e.targetTouches&&e.targetTouches[0]&&(e=e.targetTouches[0]),{top:e.clientY,left:e.clientX}}function y(e){if(e.path)return e.path;if(e.composedPath)return e.composedPath();const t=[];let o=e.target;while(o){if(t.push(o),"HTML"===o.tagName)return t.push(document),t.push(window),t;o=o.parentElement}}const w=40,x=800;function _(e){let t=e.deltaX,o=e.deltaY;if((t||o)&&e.deltaMode){const n=1===e.deltaMode?w:x;t*=n,o*=n}return e.shiftKey&&!t&&([o,t]=[t,o]),{x:t,y:o}}function C(e){e.stopPropagation()}function S(e){!1!==e.cancelable&&e.preventDefault()}function q(e){!1!==e.cancelable&&e.preventDefault(),e.stopPropagation()}function k(e,t){if(void 0===e||!0===t&&!0===e.__dragPrevented)return;const o=!0===t?e=>{e.__dragPrevented=!0,e.addEventListener("dragstart",S,p.notPassiveCapture)}:e=>{delete e.__dragPrevented,e.removeEventListener("dragstart",S,p.notPassiveCapture)};e.querySelectorAll("a, img").forEach(o)}function $(e,t,o){const n=`__q_${t}_evt`;e[n]=void 0!==e[n]?e[n].concat(o):o,o.forEach(t=>{t[0].addEventListener(t[1],e[t[2]],p[t[3]])})}function M(e,t){const o=`__q_${t}_evt`;void 0!==e[o]&&(e[o].forEach(t=>{t[0].removeEventListener(t[1],e[t[2]],p[t[3]])}),e[o]=void 0)}var T={listenOpts:p,leftClick:f,middleClick:h,rightClick:g,position:b,getEventPath:y,getMouseWheelDistance:_,stop:C,prevent:S,stopAndPrevent:q,preventDraggable:k};function B(e,t=250,o){let n;function a(){const a=arguments,l=()=>{n=void 0,!0!==o&&e.apply(this,a)};clearTimeout(n),!0===o&&void 0===n&&e.apply(this,a),n=setTimeout(l,t)}return a.cancel=(()=>{clearTimeout(n)}),a}const O=["sm","md","lg","xl"],{passive:V}=p;var z=v({width:0,height:0,name:"xs",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:m,setDebounce:m,install({$q:e,onSSRHydrated:o}){if(e.screen=this,!0===this.__installed)return void(void 0!==e.config.screen&&(!1===e.config.screen.bodyClasses?document.body.classList.remove(`screen--${this.name}`):this.__update(!0)));const n=void 0!==e.config.screen&&!0===e.config.screen.bodyClasses;this.__update=(e=>{const t=window.innerWidth,o=window.innerHeight;if(o!==this.height&&(this.height=o),t!==this.width)this.width=t;else if(!0!==e)return;let a=this.sizes;this.gt.xs=t>=a.sm,this.gt.sm=t>=a.md,this.gt.md=t>=a.lg,this.gt.lg=t>=a.xl,this.lt.sm=t<a.sm,this.lt.md=t<a.md,this.lt.lg=t<a.lg,this.lt.xl=t<a.xl,this.xs=this.lt.sm,this.sm=!0===this.gt.xs&&!0===this.lt.md,this.md=!0===this.gt.sm&&!0===this.lt.lg,this.lg=!0===this.gt.md&&!0===this.lt.xl,this.xl=this.gt.lg,a=(!0===this.xs?"xs":!0===this.sm&&"sm")||!0===this.md&&"md"||!0===this.lg&&"lg"||"xl",a!==this.name&&(!0===n&&(document.body.classList.remove(`screen--${this.name}`),document.body.classList.add(`screen--${a}`)),this.name=a)});let a,l={},i=16;this.setSizes=(e=>{O.forEach(t=>{void 0!==e[t]&&(l[t]=e[t])})}),this.setDebounce=(e=>{i=e});const r=()=>{const e=getComputedStyle(document.body),t=void 0!==window.visualViewport?window.visualViewport:window;e.getPropertyValue("--q-size-sm")&&O.forEach(t=>{this.sizes[t]=parseInt(e.getPropertyValue(`--q-size-${t}`),10)}),this.setSizes=(e=>{O.forEach(t=>{e[t]&&(this.sizes[t]=e[t])}),this.__update(!0)}),this.setDebounce=(e=>{void 0!==a&&t.removeEventListener("resize",a,V),a=e>0?B(this.__update,e):this.__update,t.addEventListener("resize",a,V)}),this.setDebounce(i),Object.keys(l).length>0?(this.setSizes(l),l=void 0):this.__update(),!0===n&&"xs"===this.name&&document.body.classList.add("screen--xs")};!0===t.value?o.push(r):r()}});const L=v({isActive:!1,mode:!1},{__media:void 0,set(e){L.mode=e,"auto"===e?(void 0===L.__media&&(L.__media=window.matchMedia("(prefers-color-scheme: dark)"),L.__updateMedia=(()=>{L.set("auto")}),L.__media.addListener(L.__updateMedia)),e=L.__media.matches):void 0!==L.__media&&(L.__media.removeListener(L.__updateMedia),L.__media=void 0),L.isActive=!0===e,document.body.classList.remove(`body--${!0===e?"light":"dark"}`),document.body.classList.add(`body--${!0===e?"dark":"light"}`)},toggle(){L.set(!1===L.isActive)},install({$q:e,onSSRHydrated:o,ssrContext:n}){const{dark:a}=e.config;if(e.dark=this,!0===this.__installed&&void 0===a)return;this.isActive=!0===a;const l=void 0!==a&&a;if(!0===t.value){const e=e=>{this.__fromSSR=e},t=this.set;this.set=e,e(l),o.push(()=>{this.set=t,this.set(this.__fromSSR)})}else this.set(l)}}),E=()=>!0;function P(e){return"string"===typeof e&&""!==e&&"/"!==e&&"#/"!==e}function A(e){return!0===e.startsWith("#")&&(e=e.substr(1)),!1===e.startsWith("/")&&(e="/"+e),!0===e.endsWith("/")&&(e=e.substr(0,e.length-1)),"#"+e}function F(e){if(!1===e.backButtonExit)return()=>!1;if("*"===e.backButtonExit)return E;const t=["#/"];return!0===Array.isArray(e.backButtonExit)&&t.push(...e.backButtonExit.filter(P).map(A)),()=>t.includes(window.location.hash)}var I={__history:[],add:m,remove:m,install({$q:e}){if(!0===this.__installed)return;const{cordova:t,capacitor:o}=c.is;if(!0!==t&&!0!==o)return;const n=e.config[!0===t?"cordova":"capacitor"];if(void 0!==n&&!1===n.backButton)return;if(!0===o&&(void 0===window.Capacitor||void 0===window.Capacitor.Plugins.App))return;this.add=(e=>{void 0===e.condition&&(e.condition=E),this.__history.push(e)}),this.remove=(e=>{const t=this.__history.indexOf(e);t>=0&&this.__history.splice(t,1)});const a=F(Object.assign({backButtonExit:!0},n)),l=()=>{if(this.__history.length){const e=this.__history[this.__history.length-1];!0===e.condition()&&(this.__history.pop(),e.handler())}else!0===a()?navigator.app.exitApp():window.history.back()};!0===t?document.addEventListener("deviceready",()=>{document.addEventListener("backbutton",l,!1)}):window.Capacitor.Plugins.App.addListener("backButton",l)}},R={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,pluralDay:"days"},table:{noData:"No data available",noResults:"No matching records found",loading:"Loading...",selectedRecords:e=>1===e?"1 record selected.":(0===e?"No":e)+" records selected.",recordsPerPage:"Records per page:",allRows:"All",pagination:(e,t,o)=>e+"-"+t+" of "+o,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"}};function N(){const e=!0===Array.isArray(navigator.languages)&&navigator.languages.length>0?navigator.languages[0]:navigator.language;if("string"===typeof e)return e.split(/[-_]/).map((e,t)=>0===t?e.toLowerCase():t>1||e.length<4?e.toUpperCase():e[0].toUpperCase()+e.slice(1).toLowerCase()).join("-")}const j=v({__langPack:{}},{getLocale:N,set(e=R,t){const o={...e,rtl:!0===e.rtl,getLocale:N};{const e=document.documentElement;e.setAttribute("dir",!0===o.rtl?"rtl":"ltr"),e.setAttribute("lang",o.isoName),o.set=j.set,Object.assign(j.__langPack,o),j.props=o,j.isoName=o.isoName,j.nativeName=o.nativeName}},install({$q:e,lang:t,ssrContext:o}){e.lang=j.__langPack,!0===this.__installed?void 0!==t&&this.set(t):this.set(t||R)}});function D(e,t,o=document.body){if("string"!==typeof e)throw new TypeError("Expected a string as propName");if("string"!==typeof t)throw new TypeError("Expected a string as value");if(!(o instanceof Element))throw new TypeError("Expected a DOM element");o.style.setProperty(`--q-${e}`,t)}let H=!1;function Q(e){H=!0===e.isComposing}function U(e){return!0===H||e!==Object(e)||!0===e.isComposing||!0===e.qKeyEvent}function W(e,t){return!0!==U(e)&&[].concat(t).includes(e.keyCode)}function Y(e){return!0===e.ios?"ios":!0===e.android?"android":void 0}function K({is:e,has:t,within:o},n){const a=[!0===e.desktop?"desktop":"mobile",`${!1===t.touch?"no-":""}touch`];if(!0===e.mobile){const t=Y(e);void 0!==t&&a.push("platform-"+t)}if(!0===e.nativeMobile){const t=e.nativeMobileWrapper;a.push(t),a.push("native-mobile"),!0!==e.ios||void 0!==n[t]&&!1===n[t].iosStatusBarPadding||a.push("q-ios-padding")}else!0===e.electron?a.push("electron"):!0===e.bex&&a.push("bex");return!0===o.iframe&&a.push("within-iframe"),a}function X(){const e=document.body.className;let t=e;void 0!==o&&(t=t.replace("desktop","platform-ios mobile")),!0===c.has.touch&&(t=t.replace("no-touch","touch")),!0===c.within.iframe&&(t+=" within-iframe"),e!==t&&(document.body.className=t)}function Z(e){for(const t in e)D(t,e[t])}var G={install(e){const{$q:o}=e;if(void 0!==o.config.brand&&Z(o.config.brand),!0!==this.__installed){if(!0===t.value)X();else{const e=K(c,o.config);document.body.classList.add.apply(document.body.classList,e)}!0===c.is.ios&&document.body.addEventListener("touchstart",m),window.addEventListener("keydown",Q,!0)}}},J={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",up:"keyboard_arrow_up",down:"keyboard_arrow_down",navigationIcon:"lens"},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",firstPage:"first_page",prevPage:"chevron_left",nextPage:"chevron_right",lastPage:"last_page"},tree:{icon:"play_arrow"},uploader:{done:"done",clear:"clear",add:"add_box",upload:"cloud_upload",removeQueue:"clear_all",removeUploaded:"done_all"}};const ee=v({iconMapFn:null,__icons:{}},{set(e,t){const o={...e,rtl:!0===e.rtl};o.set=ee.set,Object.assign(ee.__icons,o)},install({$q:e,iconSet:t,ssrContext:o}){void 0!==e.config.iconMapFn&&(this.iconMapFn=e.config.iconMapFn),e.iconSet=this.__icons,Object.defineProperty(e,"iconMapFn",{get:()=>this.iconMapFn,set:e=>{this.iconMapFn=e}}),!0===this.__installed?void 0!==t&&this.set(t):this.set(t||J)}}),te="_q_",oe="_q_t_",ne="_q_s_",ae="_q_l_",le="_q_pc_",ie="_q_f_",re="_q_fo_",se="_q_tabs_",ue="_q_u_",ce={};let de=!1;function ve(){de=!0}const pe=[d,G,L,z,I,j,ee];function me(t,o){const n=e.createApp(t);n.config.globalProperties=o.config.globalProperties;const{reload:a,...l}=o._context;return Object.assign(n._context,l),n}function fe(e,t){t.forEach(t=>{t.install(e),t.__installed=!0})}function he(e,o,n){e.config.globalProperties.$q=n.$q,e.provide(te,n.$q),fe(n,pe),void 0!==o.components&&Object.values(o.components).forEach(t=>{Object(t)===t&&void 0!==t.name&&e.component(t.name,t)}),void 0!==o.directives&&Object.values(o.directives).forEach(t=>{Object(t)===t&&void 0!==t.name&&e.directive(t.name,t)}),void 0!==o.plugins&&fe(n,Object.values(o.plugins).filter(e=>"function"===typeof e.install&&!1===pe.includes(e))),!0===t.value&&(n.$q.onSSRHydrated=(()=>{n.onSSRHydrated.forEach(e=>{e()}),n.$q.onSSRHydrated=(()=>{})}))}var ge=function(e,t={}){const o={version:"2.0.1"};!1===de?(void 0!==t.config&&Object.assign(ce,t.config),o.config={...ce},ve()):o.config=t.config||{},he(e,t,{parentApp:e,$q:o,lang:t.lang,iconSet:t.iconSet,onSSRHydrated:[]})};const be=["B","KB","MB","GB","TB","PB"];function ye(e){let t=0;while(parseInt(e,10)>=1024&&t<be.length-1)e/=1024,++t;return`${e.toFixed(1)}${be[t]}`}function we(e){return e.charAt(0).toUpperCase()+e.slice(1)}function xe(e,t,o){return o<=t?t:Math.min(o,Math.max(t,e))}function _e(e,t,o){if(o<=t)return t;const n=o-t+1;let a=t+(e-t)%n;return a<t&&(a=n+a),0===a?0:a}function Ce(e,t=2,o="0"){if(void 0===e||null===e)return e;const n=""+e;return n.length>=t?n:new Array(t-n.length+1).join(o)+n}var Se={humanStorageSize:ye,capitalize:we,between:xe,normalizeToInterval:_e,pad:Ce};const qe=XMLHttpRequest,ke=qe.prototype.send,$e=[],Me=[];let Te=0;function Be({p:e,pos:t,active:o,horiz:n,reverse:a,dir:l}){let i=1,r=1;return n?(a&&(i=-1),"bottom"===t&&(r=-1),{transform:`translate3d(${i*(e-100)}%,${o?0:-200*r}%,0)`}):(a&&(r=-1),"right"===t&&(i=-1),{transform:`translate3d(${o?0:l*i*-200}%,${r*(e-100)}%,0)`})}function Oe(e,t){return"number"!==typeof t&&(t=e<25?3*Math.random()+3:e<65?3*Math.random():e<85?2*Math.random():e<99?.6:0),xe(e+t,0,100)}function Ve(e,t){function o(){Me.forEach(e=>{e()})}$e.push(e),Me.push(t),Te++,Te>1||(qe.prototype.send=function(){$e.forEach(e=>{e()}),this.addEventListener("loadend",o,!1),ke.apply(this,arguments)})}function ze(e,t){$e.splice($e.indexOf(e),1),Me.splice(Me.indexOf(t),1),Te=Math.max(0,Te-1),0===Te&&(qe.prototype.send=ke)}var Le=e.defineComponent({name:"QAjaxBar",props:{position:{type:String,default:"top",validator:e=>["top","right","bottom","left"].includes(e)},size:{type:String,default:"2px"},color:String,skipHijack:Boolean,reverse:Boolean},emits:["start","stop"],setup(t,{emit:o}){const{proxy:n}=e.getCurrentInstance(),a=e.ref(0),l=e.ref(!1),i=e.ref(!0);let r,s,u=0;const c=e.computed(()=>`q-loading-bar q-loading-bar--${t.position}`+(void 0!==t.color?` bg-${t.color}`:"")+(!0===i.value?"":" no-transition")),d=e.computed(()=>"top"===t.position||"bottom"===t.position),v=e.computed(()=>!0===d.value?"height":"width"),p=e.computed(()=>{const e=l.value,o=Be({p:a.value,pos:t.position,active:e,horiz:d.value,reverse:!0===n.$q.lang.rtl&&["top","bottom"].includes(t.position)?!t.reverse:t.reverse,dir:!0===n.$q.lang.rtl?-1:1});return o[v.value]=t.size,o.opacity=e?1:0,o}),m=e.computed(()=>!0===l.value?{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":a.value}:{"aria-hidden":"true"});function f(e=300){const t=s;s=Math.max(0,e)||0,u++,u>1?0===t&&e>0?b():t>0&&e<=0&&clearTimeout(r):(clearTimeout(r),o("start"),a.value=0,!0!==l.value&&(l.value=!0,i.value=!1,r=setTimeout(()=>{i.value=!0,e>0&&b()},100)))}function h(e){u>0&&(a.value=Oe(a.value,e))}function g(){if(u=Math.max(0,u-1),u>0)return;clearTimeout(r),o("stop");const e=()=>{i.value=!0,a.value=100,r=setTimeout(()=>{l.value=!1},1e3)};0===a.value?r=setTimeout(e,1):e()}function b(){a.value<100&&(r=setTimeout(()=>{h(),b()},s))}let y;return e.onMounted(()=>{!0!==t.skipHijack&&(y=!0,Ve(f,g))}),e.onBeforeUnmount(()=>{clearTimeout(r),!0===y&&ze(f,g)}),Object.assign(n,{start:f,stop:g,increment:h}),()=>e.h("div",{class:c.value,style:p.value,...m.value})}});const Ee={xs:18,sm:24,md:32,lg:38,xl:46},Pe={size:String};function Ae(t,o=Ee){return e.computed(()=>void 0!==t.size?{fontSize:t.size in o?`${o[t.size]}px`:t.size}:null)}function Fe(e,t){return void 0!==e?e():t}function Ie(e,t){return void 0!==e?e().slice():t}function Re(e,t){return void 0!==e?t.concat(e()):t}function Ne(e,t){return void 0===e?t:void 0!==t?t.concat(e()):e()}function je(t,o,n,a,l,i){o.key=a+l;const r=e.h(t,o,n);return!0===l?e.withDirectives(r,i()):r}const De=e=>e,He=e=>`ionicons ${e}`,Qe={"icon-":De,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":He,"ion-ios":He,"ion-logo":He,"mdi-":e=>`mdi ${e}`,"iconfont ":De,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`},Ue={o_:"-outlined",r_:"-round",s_:"-sharp"},We=new RegExp("^("+Object.keys(Qe).join("|")+")"),Ye=new RegExp("^("+Object.keys(Ue).join("|")+")"),Ke=/^M/,Xe=/^img:/,Ze=/^svguse:/,Ge=/^ion-/,Je=/^[l|f]a[s|r|l|b|d]? /;var et=e.defineComponent({name:"QIcon",props:{...Pe,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(t,{slots:o}){const{proxy:{$q:n}}=e.getCurrentInstance(),a=Ae(t),l=e.computed(()=>"q-icon"+(!0===t.left?" on-left":"")+(!0===t.right?" on-right":"")+(void 0!==t.color?` text-${t.color}`:"")),i=e.computed(()=>{let o,a=t.name;if(!a)return{none:!0,cls:l.value};if(null!==n.iconMapFn){const e=n.iconMapFn(a);if(void 0!==e){if(void 0===e.icon)return{cls:e.cls+" "+l.value,content:void 0!==e.content?e.content:" "};a=e.icon}}if(!0===Ke.test(a)){const[t,o]=a.split("|");return{svg:!0,cls:l.value,nodes:t.split("&&").map(t=>{const[o,n,a]=t.split("@@");return e.h("path",{style:n,d:o,transform:a})}),viewBox:void 0!==o?o:"0 0 24 24"}}if(!0===Xe.test(a))return{img:!0,cls:l.value,src:a.substring(4)};if(!0===Ze.test(a)){const[e,t]=a.split("|");return{svguse:!0,cls:l.value,src:e.substring(7),viewBox:void 0!==t?t:"0 0 24 24"}}let i=" ";const r=a.match(We);if(null!==r)o=Qe[r[1]](a);else if(!0===Je.test(a))o=a;else if(!0===Ge.test(a))o=`ionicons ion-${!0===n.platform.is.ios?"ios":"md"}${a.substr(3)}`;else{o="notranslate material-icons";const e=a.match(Ye);null!==e&&(a=a.substring(2),o+=Ue[e[1]]),i=a}return{cls:o+" "+l.value,content:i}});return()=>{const n={class:i.value.cls,style:a.value,"aria-hidden":"true",role:"presentation"};return!0===i.value.none?e.h(t.tag,n,Fe(o.default)):!0===i.value.img?(n.src=i.value.src,e.h("img",n)):!0===i.value.svg?(n.viewBox=i.value.viewBox,e.h("svg",n,Re(o.default,i.value.nodes))):!0===i.value.svguse?(n.viewBox=i.value.viewBox,e.h("svg",n,Re(o.default,[e.h("use",{"xlink:href":i.value.src})]))):e.h(t.tag,n,Re(o.default,[i.value.content]))}}}),tt=e.defineComponent({name:"QAvatar",props:{...Pe,fontSize:String,color:String,textColor:String,icon:String,square:Boolean,rounded:Boolean},setup(t,{slots:o}){const n=Ae(t),a=e.computed(()=>"q-avatar"+(t.color?` bg-${t.color}`:"")+(t.textColor?` text-${t.textColor} q-chip--colored`:"")+(!0===t.square?" q-avatar--square":!0===t.rounded?" rounded-borders":"")),l=e.computed(()=>t.fontSize?{fontSize:t.fontSize}:null);return()=>{const i=void 0!==t.icon?[e.h(et,{name:t.icon})]:void 0;return e.h("div",{class:a.value,style:n.value},[e.h("div",{class:"q-avatar__content row flex-center overflow-hidden",style:l.value},Ne(o.default,i))])}}});const ot=["top","middle","bottom"];var nt=e.defineComponent({name:"QBadge",props:{color:String,textColor:String,floating:Boolean,transparent:Boolean,multiLine:Boolean,outline:Boolean,rounded:Boolean,label:[Number,String],align:{type:String,validator:e=>ot.includes(e)}},setup(t,{slots:o}){const n=e.computed(()=>{return void 0!==t.align?{verticalAlign:t.align}:null}),a=e.computed(()=>{const e=!0===t.outline&&t.color||t.textColor;return"q-badge flex inline items-center no-wrap"+` q-badge--${!0===t.multiLine?"multi":"single"}-line`+(!0===t.outline?" q-badge--outline":void 0!==t.color?` bg-${t.color}`:"")+(void 0!==e?` text-${e}`:"")+(!0===t.floating?" q-badge--floating":"")+(!0===t.rounded?" q-badge--rounded":"")+(!0===t.transparent?" q-badge--transparent":"")});return()=>e.h("div",{class:a.value,style:n.value,role:"alert","aria-label":t.label},void 0!==t.label?t.label:Fe(o.default))}});const at={dark:{type:Boolean,default:null}};function lt(t,o){return e.computed(()=>null===t.dark?o.dark.isActive:t.dark)}var it=e.defineComponent({name:"QBanner",props:{...at,inlineActions:Boolean,dense:Boolean,rounded:Boolean},setup(t,{slots:o}){const n=e.getCurrentInstance(),a=lt(t,n.proxy.$q),l=e.computed(()=>"q-banner row items-center"+(!0===t.dense?" q-banner--dense":"")+(!0===a.value?" q-banner--dark q-dark":"")+(!0===t.rounded?" rounded-borders":"")),i=e.computed(()=>"q-banner__actions row items-center justify-end"+` col-${!0===t.inlineActions?"auto":"all"}`);return()=>{const n=[e.h("div",{class:"q-banner__avatar col-auto row items-center self-start"},Fe(o.avatar)),e.h("div",{class:"q-banner__content col text-body2"},Fe(o.default))],a=Fe(o.action);return void 0!==a&&n.push(e.h("div",{class:i.value},a)),e.h("div",{class:l.value+(!1===t.inlineActions&&void 0!==a?" q-banner--top-padding":""),role:"alert"},n)}}}),rt=e.defineComponent({name:"QBar",props:{...at,dense:Boolean},setup(t,{slots:o}){const n=e.getCurrentInstance(),a=lt(t,n.proxy.$q),l=e.computed(()=>"q-bar row no-wrap items-center"+` q-bar--${!0===t.dense?"dense":"standard"} `+` q-bar--${!0===a.value?"dark":"light"}`);return()=>e.h("div",{class:l.value,role:"toolbar"},Fe(o.default))}});const st={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},ut=Object.keys(st),ct={align:{type:String,validator:e=>ut.includes(e)}};function dt(t){return e.computed(()=>{const e=void 0===t.align?!0===t.vertical?"stretch":"left":t.align;return`${!0===t.vertical?"items":"justify"}-${st[e]}`})}function vt(e){if(void 0!==e.$parent&&null!==e.$parent)return e.$parent;e=e.$.parent;while(void 0!==e&&null!==e){if(void 0!==e.proxy&&null!==e.proxy)return e.proxy;e=e.parent}}function pt(e){const t=new Set;return e.forEach(e=>{"symbol"===typeof e.type&&!0===Array.isArray(e.children)?e.children.forEach(e=>{t.add(e)}):t.add(e)}),Array.from(t)}function mt(e){return void 0!==e.appContext.config.globalProperties.$router}var ft=e.defineComponent({name:"QBreadcrumbs",props:{...ct,separator:{type:String,default:"/"},separatorColor:String,activeColor:{type:String,default:"primary"},gutter:{type:String,validator:e=>["none","xs","sm","md","lg","xl"].includes(e),default:"sm"}},setup(t,{slots:o}){const n=dt(t),a=e.computed(()=>`flex items-center ${n.value}${"none"===t.gutter?"":` q-gutter-${t.gutter}`}`),l=e.computed(()=>t.separatorColor?` text-${t.separatorColor}`:""),i=e.computed(()=>`text-${t.activeColor}`);return()=>{const n=pt(Fe(o.default));if(void 0===n)return;let r=1;const s=[],u=n.filter(e=>void 0!==e.type&&"QBreadcrumbsEl"===e.type.name).length,c=void 0!==o.separator?o.separator:()=>t.separator;return n.forEach(t=>{if(void 0!==t.type&&"QBreadcrumbsEl"===t.type.name){const o=r<u;r++,s.push(e.h("div",{class:"flex items-center "+(!0===o?i.value:"q-breadcrumbs--last")},[t])),!0===o&&s.push(e.h("div",{class:"q-breadcrumbs__separator"+l.value},c()))}else s.push(t)}),e.h("div",{class:"q-breadcrumbs"},[e.h("div",{class:a.value},s)])}}});function ht(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function gt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function bt(e,t){for(const o in t){const n=t[o],a=e[o];if("string"===typeof n){if(n!==a)return!1}else if(!1===Array.isArray(a)||a.length!==n.length||n.some((e,t)=>e!==a[t]))return!1}return!0}const yt={to:[String,Object],replace:Boolean,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"},disable:Boolean};function wt(){const t=e.getCurrentInstance(),{props:o,attrs:n,proxy:a}=t,l=mt(t),i=e.computed(()=>!0===l&&!0!==o.disable&&void 0!==o.to&&null!==o.to&&""!==o.to),r=e.computed(()=>!0===i.value?"a":o.tag||"div"),s=e.computed(()=>!0===i.value?a.$router.resolve(o.to):null),u=e.computed(()=>{if(!1===i.value)return null;const{matched:e}=s.value,{length:t}=e,o=e[t-1];if(void 0===o)return-1;const n=a.$route.matched;if(0===n.length)return-1;const l=n.findIndex(gt.bind(null,o));if(l>-1)return l;const r=ht(e[t-2]);return t>1&&ht(o)===r&&n[n.length-1].path!==r?n.findIndex(gt.bind(null,e[t-2])):l}),c=e.computed(()=>!0===i.value&&u.value>-1&&bt(a.$route.params,s.value.params)),d=e.computed(()=>!0===c.value&&u.value===a.$route.matched.length-1),v=e.computed(()=>!0===i.value?!0===d.value?` ${o.exactActiveClass} ${o.activeClass}`:!0===o.exact?"":!0===c.value?` ${o.activeClass}`:"":""),p=e.computed(()=>!0===i.value?{href:s.value.href,target:n.target,role:"link"}:{});function m(e){return!(!0===o.disable||e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||!0!==e.__qNavigate&&!0===e.defaultPrevented||void 0!==e.button&&0!==e.button||"_blank"===n.target)&&(S(e),a.$router[!0===o.replace?"replace":"push"](o.to).catch(()=>{}),!0)}return{hasLink:i,linkTag:r,linkRoute:s,linkIsActive:c,linkIsExactActive:d,linkClass:v,linkProps:p,navigateToLink:m}}var xt=e.defineComponent({name:"QBreadcrumbsEl",props:{...yt,label:String,icon:String,tag:{type:String,default:"span"}},setup(t,{slots:o}){const{linkTag:n,linkProps:a,hasLink:l,navigateToLink:i}=wt(),r=e.computed(()=>{const e={...a.value};return!0===l.value&&(e.onClick=i),e}),s=e.computed(()=>"q-breadcrumbs__el-icon"+(void 0!==t.label?" q-breadcrumbs__el-icon--with-label":""));return()=>{const a=[];return void 0!==t.icon&&a.push(e.h(et,{class:s.value,name:t.icon})),void 0!==t.label&&a.push(t.label),e.h(n.value,{class:"q-breadcrumbs__el q-link flex inline items-center relative-position",...r.value},Re(o.default,a))}}});const _t={size:{type:[Number,String],default:"1em"},color:String};function Ct(t){return{cSize:e.computed(()=>t.size in Ee?`${Ee[t.size]}px`:t.size),classes:e.computed(()=>"q-spinner"+(t.color?` text-${t.color}`:""))}}var St=e.defineComponent({name:"QSpinner",props:{..._t,thickness:{type:Number,default:5}},setup(t){const{cSize:o,classes:n}=Ct(t);return()=>e.h("svg",{class:n.value+" q-spinner-mat",width:o.value,height:o.value,viewBox:"25 25 50 50"},[e.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":t.thickness,"stroke-miterlimit":"10"})])}});function qt(e){if(e===window)return{top:0,left:0};const{top:t,left:o}=e.getBoundingClientRect();return{top:t,left:o}}function kt(e,t){return window.getComputedStyle(e).getPropertyValue(t)}function $t(e){return e===window?window.innerHeight:e.getBoundingClientRect().height}function Mt(e){return e===window?window.innerWidth:e.getBoundingClientRect().width}function Tt(e,t){const o=e.style;Object.keys(t).forEach(e=>{o[e]=t[e]})}function Bt(e,t){e.forEach(e=>Tt(e,t))}function Ot(e){if("function"===typeof e)return"loading"!==document.readyState?e():void document.addEventListener("DOMContentLoaded",e,!1)}function Vt(t){if(void 0===t||null===t)return;if("string"===typeof t)try{return document.querySelector(t)||void 0}catch(e){return}const o=!0===e.isRef(t)?t.value:t;return o?o.$el||o:void 0}function zt(e,t){if(void 0===e||!0===e.contains(t))return!0;for(let o=e.nextElementSibling;null!==o;o=o.nextElementSibling)if(o.contains(t))return!0;return!1}var Lt={offset:qt,style:kt,height:$t,width:Mt,css:Tt,cssBatch:Bt,ready:Ot};function Et(e,t=250){let o,n=!1;return function(){return!1===n&&(n=!0,setTimeout(()=>{n=!1},t),o=e.apply(this,arguments)),o}}function Pt(e,t,o,n){!0===o.modifiers.stop&&C(e);const a=o.modifiers.color;let l=o.modifiers.center;l=!0===l||!0===n;const i=document.createElement("span"),r=document.createElement("span"),s=b(e),{left:u,top:c,width:d,height:v}=t.getBoundingClientRect(),p=Math.sqrt(d*d+v*v),m=p/2,f=`${(d-p)/2}px`,h=l?f:`${s.left-u-m}px`,g=`${(v-p)/2}px`,y=l?g:`${s.top-c-m}px`;r.className="q-ripple__inner",Tt(r,{height:`${p}px`,width:`${p}px`,transform:`translate3d(${h},${y},0) scale3d(.2,.2,1)`,opacity:0}),i.className=`q-ripple${a?" text-"+a:""}`,i.setAttribute("dir","ltr"),i.appendChild(r),t.appendChild(i);const w=()=>{i.remove(),clearTimeout(x)};o.abort.push(w);let x=setTimeout(()=>{r.classList.add("q-ripple__inner--enter"),r.style.transform=`translate3d(${f},${g},0) scale3d(1,1,1)`,r.style.opacity=.2,x=setTimeout(()=>{r.classList.remove("q-ripple__inner--enter"),r.classList.add("q-ripple__inner--leave"),r.style.opacity=0,x=setTimeout(()=>{i.remove(),o.abort.splice(o.abort.indexOf(w),1)},275)},250)},50)}function At(e,{modifiers:t,value:o,arg:n,instance:a}){const l=Object.assign({},a.$q.config.ripple,t,o);e.modifiers={early:!0===l.early,stop:!0===l.stop,center:!0===l.center,color:l.color||n,keyCodes:[].concat(l.keyCodes||13)}}var Ft={name:"ripple",beforeMount(e,t){const o={enabled:!1!==t.value,modifiers:{},abort:[],start(t){!0===o.enabled&&!0!==t.qSkipRipple&&(!0===o.modifiers.early?!0===["mousedown","touchstart"].includes(t.type):"click"===t.type)&&Pt(t,e,o,!0===t.qKeyEvent)},keystart:Et(t=>{!0===o.enabled&&!0!==t.qSkipRipple&&!0===W(t,o.modifiers.keyCodes)&&t.type===`key${!0===o.modifiers.early?"down":"up"}`&&Pt(t,e,o,!0)},300)};At(o,t),e.__qripple=o,$(o,"main",[[e,"mousedown","start","passive"],[e,"touchstart","start","passive"],[e,"click","start","passive"],[e,"keydown","keystart","passive"],[e,"keyup","keystart","passive"]])},updated(e,t){if(t.oldValue!==t.value){const o=e.__qripple;o.enabled=!1!==t.value,!0===o.enabled&&Object(t.value)===t.value&&At(o,t)}},beforeUnmount(e){const t=e.__qripple;t.abort.forEach(e=>{e()}),M(t,"main"),delete e._qripple}};const It={none:0,xs:4,sm:8,md:16,lg:24,xl:32},Rt={xs:8,sm:10,md:14,lg:20,xl:24},Nt={...Pe,...yt,type:{type:String,default:"button"},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,padding:String,color:String,textColor:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,tabindex:[Number,String],ripple:{type:[Boolean,Object],default:!0},align:{...ct.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean};function jt(t){const o=Ae(t,Rt),n=dt(t),{hasLink:a,linkProps:l,navigateToLink:i}=wt(),r=e.computed(()=>{const e=!1===t.fab&&!1===t.fabMini?o.value:{};return void 0!==t.padding?Object.assign({},e,{padding:t.padding.split(/\s+/).map(e=>e in It?It[e]+"px":e).join(" "),minWidth:"0",minHeight:"0"}):e}),s=e.computed(()=>!0===t.rounded||!0===t.fab||!0===t.fabMini),u=e.computed(()=>!0!==t.disable&&!0!==t.loading),c=e.computed(()=>!0===u.value?t.tabindex||0:-1),d=e.computed(()=>"a"===t.type||!0===a.value),v=e.computed(()=>{return!0===t.flat?"flat":!0===t.outline?"outline":!0===t.push?"push":!0===t.unelevated?"unelevated":"standard"}),p=e.computed(()=>{const e={tabindex:c.value};return"a"!==t.type&&(e.type=t.type),!0===a.value?Object.assign(e,l.value):e.role="a"===t.type?"link":"button",!0===t.loading&&void 0!==t.percentage&&Object.assign(e,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":t.percentage}),!0===t.disable&&(e.disabled="",e["aria-disabled"]="true"),e}),m=e.computed(()=>{let e;return void 0!==t.color?e=!0===t.flat||!0===t.outline?`text-${t.textColor||t.color}`:`bg-${t.color} text-${t.textColor||"white"}`:t.textColor&&(e=`text-${t.textColor}`),`q-btn--${v.value} `+`q-btn--${!0===t.round?"round":`rectangle${!0===s.value?" q-btn--rounded":""}`}`+(void 0!==e?" "+e:"")+(!0===u.value?" q-btn--actionable q-focusable q-hoverable":!0===t.disable?" disabled":"")+(!0===t.fab?" q-btn--fab":!0===t.fabMini?" q-btn--fab-mini":"")+(!0===t.noCaps?" q-btn--no-uppercase":"")+(!0===t.dense?" q-btn--dense":"")+(!0===t.stretch?" no-border-radius self-stretch":"")+(!0===t.glossy?" glossy":"")}),f=e.computed(()=>n.value+(!0===t.stack?" column":" row")+(!0===t.noWrap?" no-wrap text-no-wrap":"")+(!0===t.loading?" q-btn__content--hidden":""));return{classes:m,style:r,innerClasses:f,attributes:p,hasLink:a,isLink:d,navigateToLink:i,isActionable:u}}const{passiveCapture:Dt}=p;let Ht=null,Qt=null,Ut=null;var Wt=e.defineComponent({name:"QBtn",props:{...Nt,percentage:Number,darkPercentage:Boolean},emits:["click","keydown","touchstart","mousedown","keyup"],setup(t,{slots:o,emit:n}){const{proxy:a}=e.getCurrentInstance(),{classes:l,style:i,innerClasses:r,attributes:s,hasLink:u,isLink:c,navigateToLink:d,isActionable:v}=jt(t),p=e.ref(null),m=e.ref(null);let f,h,g=null;const b=e.computed(()=>void 0!==t.label&&null!==t.label&&""!==t.label),y=e.computed(()=>!1!==t.ripple&&{keyCodes:!0===c.value?[13,32]:[13],...!0===t.ripple?{}:t.ripple}),w=e.computed(()=>{const e=Math.max(0,Math.min(100,t.percentage));return e>0?{transition:"transform 0.6s",transform:`translateX(${e-100}%)`}:{}}),x=e.computed(()=>{return!0===t.loading?{onMousedown:z,onTouchstartPassive:z,onClick:z,onKeydown:z,onKeyup:z}:!0===v.value?{onClick:$,onKeydown:M,onMousedown:B,onTouchstartPassive:T}:{onClick:q}}),_=e.computed(()=>{return[[Ft,y.value,void 0,{center:t.round}]]}),k=e.computed(()=>({ref:p,class:"q-btn q-btn-item non-selectable no-outline "+l.value,style:i.value,...s.value,...x.value}));function $(e){if(void 0!==e){if(!0===e.defaultPrevented)return;const o=document.activeElement;if("submit"===t.type&&o!==document.body&&!1===p.value.contains(o)&&!1===o.contains(p.value)){p.value.focus();const e=()=>{document.removeEventListener("keydown",q,!0),document.removeEventListener("keyup",e,Dt),null!==p.value&&p.value.removeEventListener("blur",e,Dt)};document.addEventListener("keydown",q,!0),document.addEventListener("keyup",e,Dt),p.value.addEventListener("blur",e,Dt)}}if(!0===u.value){const t=()=>{e.__qNavigate=!0,d(e)};n("click",e,t),!0!==e.defaultPrevented&&t()}else n("click",e)}function M(e){!0===W(e,[13,32])&&(q(e),Qt!==p.value&&(null!==Qt&&V(),p.value.focus(),Qt=p.value,p.value.classList.add("q-btn--active"),document.addEventListener("keyup",O,!0),p.value.addEventListener("blur",O,Dt))),n("keydown",e)}function T(e){Ht!==p.value&&(null!==Ht&&V(),Ht=p.value,g=e.target,g.addEventListener("touchcancel",O,Dt),g.addEventListener("touchend",O,Dt)),f=!0,clearTimeout(h),h=setTimeout(()=>{f=!1},200),n("touchstart",e)}function B(e){Ut!==p.value&&(null!==Ut&&V(),Ut=p.value,p.value.classList.add("q-btn--active"),document.addEventListener("mouseup",O,Dt)),e.qSkipRipple=!0===f,n("mousedown",e)}function O(e){if(void 0===e||"blur"!==e.type||document.activeElement!==p.value){if(void 0!==e&&"keyup"===e.type){if(Qt===p.value&&!0===W(e,[13,32])){const t=new MouseEvent("click",e);t.qKeyEvent=!0,!0===e.defaultPrevented&&S(t),!0===e.cancelBubble&&C(t),p.value.dispatchEvent(t),q(e),e.qKeyEvent=!0}n("keyup",e)}V()}}function V(e){const t=m.value;!0===e||Ht!==p.value&&Ut!==p.value||null===t||t===document.activeElement||(t.setAttribute("tabindex",-1),t.focus()),Ht===p.value&&(null!==g&&(g.removeEventListener("touchcancel",O,Dt),g.removeEventListener("touchend",O,Dt)),Ht=g=null),Ut===p.value&&(document.removeEventListener("mouseup",O,Dt),Ut=null),Qt===p.value&&(document.removeEventListener("keyup",O,!0),null!==p.value&&p.value.removeEventListener("blur",O,Dt),Qt=null),null!==p.value&&p.value.classList.remove("q-btn--active")}function z(e){e.qSkipRipple=!0}return e.onBeforeUnmount(()=>{V(!0)}),Object.assign(a,{click:$}),()=>{let n=[];void 0!==t.icon&&n.push(e.h(et,{name:t.icon,left:!1===t.stack&&!0===b.value,role:"img","aria-hidden":"true"})),!0===b.value&&n.push(e.h("span",{class:"block"},[t.label])),n=Re(o.default,n),void 0!==t.iconRight&&!1===t.round&&n.push(e.h(et,{name:t.iconRight,right:!1===t.stack&&!0===b.value,role:"img","aria-hidden":"true"}));const a=[e.h("span",{class:"q-focus-helper",ref:m})];return!0===t.loading&&void 0!==t.percentage&&a.push(e.h("span",{class:"q-btn__progress absolute-full overflow-hidden"},[e.h("span",{class:"q-btn__progress-indicator fit block"+(!0===t.darkPercentage?" q-btn__progress--dark":""),style:w.value})])),a.push(e.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+r.value},n)),null!==t.loading&&a.push(e.h(e.Transition,{name:"q-transition--fade"},()=>!0===t.loading?[e.h("span",{key:"loading",class:"absolute-full flex flex-center"},void 0!==o.loading?o.loading():[e.h(St)])]:null)),je(!0===c.value?"a":"button",k.value,a,"ripple",!0!==t.disable&&!1!==t.ripple,()=>_.value)}}}),Yt=e.defineComponent({name:"QBtnGroup",props:{unelevated:Boolean,outline:Boolean,flat:Boolean,rounded:Boolean,push:Boolean,stretch:Boolean,glossy:Boolean,spread:Boolean},setup(t,{slots:o}){const n=e.computed(()=>{const e=["unelevated","outline","flat","rounded","push","stretch","glossy"].filter(e=>!0===t[e]).map(e=>`q-btn-group--${e}`).join(" ");return`q-btn-group row no-wrap${e.length>0?" "+e:""}`+(!0===t.spread?" q-btn-group--spread":" inline")});return()=>e.h("div",{class:n.value},Fe(o.default))}});function Kt(){if(void 0!==window.getSelection){const e=window.getSelection();void 0!==e.empty?e.empty():void 0!==e.removeAllRanges&&(e.removeAllRanges(),!0!==d.is.mobile&&e.addRange(document.createRange()))}else void 0!==document.selection&&document.selection.empty()}const Xt={target:{default:!0},noParentEvent:Boolean,contextMenu:Boolean};function Zt({showing:t,avoidEmit:o,configureAnchorEl:n}){const{props:a,proxy:l,emit:i}=e.getCurrentInstance(),r=e.ref(null);let s;function u(e){return null!==r.value&&(void 0===e||void 0===e.touches||e.touches.length<=1)}const c={};function d(){M(c,"anchor")}function v(e){r.value=e;while(r.value.classList.contains("q-anchor--skip"))r.value=r.value.parentNode;n()}function p(){if(!1===a.target||""===a.target)r.value=null;else if(!0===a.target)v(l.$el.parentNode);else{let e=a.target;if("string"===typeof a.target)try{e=document.querySelector(a.target)}catch(t){e=void 0}void 0!==e&&null!==e?(r.value=e.$el||e,n()):(r.value=null,console.error(`Anchor: target "${a.target}" not found`))}}return void 0===n&&(Object.assign(c,{hide(e){l.hide(e)},toggle(e){l.toggle(e)},toggleKey(e){!0===W(e,13)&&l.toggle(e)},contextClick(t){l.hide(t),e.nextTick(()=>{l.show(t)}),S(t)},mobilePrevent:S,mobileTouch(e){if(c.mobileCleanup(e),!0!==u(e))return;l.hide(e),r.value.classList.add("non-selectable");const t=e.target;$(c,"anchor",[[t,"touchmove","mobileCleanup","passive"],[t,"touchend","mobileCleanup","passive"],[t,"touchcancel","mobileCleanup","passive"],[r.value,"contextmenu","mobilePrevent","notPassive"]]),s=setTimeout(()=>{l.show(e)},300)},mobileCleanup(e){r.value.classList.remove("non-selectable"),clearTimeout(s),!0===t.value&&void 0!==e&&Kt()}}),n=function(e=a.contextMenu){if(!0===a.noParentEvent||null===r.value)return;let t;t=!0===e?!0===l.$q.platform.is.mobile?[[r.value,"touchstart","mobileTouch","passive"]]:[[r.value,"click","hide","passive"],[r.value,"contextmenu","contextClick","notPassive"]]:[[r.value,"click","toggle","passive"],[r.value,"keyup","toggleKey","passive"]],$(c,"anchor",t)}),e.watch(()=>a.contextMenu,e=>{null!==r.value&&(d(),n(e))}),e.watch(()=>a.target,()=>{null!==r.value&&d(),p()}),e.watch(()=>a.noParentEvent,e=>{null!==r.value&&(!0===e?d():n())}),e.onMounted(()=>{p(),!0!==o&&!0===a.modelValue&&null===r.value&&i("update:modelValue",!1)}),e.onBeforeUnmount(()=>{clearTimeout(s),d()}),{anchorEl:r,canShow:u,anchorEvents:c}}function Gt(t,o){const n=e.ref(null);let a;function l(e,t){const o=`${void 0!==t?"add":"remove"}EventListener`,n=void 0!==t?t:a;e!==window&&e[o]("scroll",n,p.passive),window[o]("scroll",n,p.passive),a=t}function i(){null!==n.value&&(l(n.value),n.value=null)}const r=e.watch(()=>t.noParentEvent,()=>{null!==n.value&&(i(),o())});return e.onBeforeUnmount(r),{localScrollTarget:n,unconfigureScrollTarget:i,changeScrollEvent:l}}const Jt={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":Function},eo=["before-show","show","before-hide","hide"];function to({showing:t,canShow:o,hideOnRouteChange:n,handleShow:a,handleHide:l,processOnMount:i}){const r=e.getCurrentInstance(),{props:s,emit:u,proxy:c}=r;let d;function v(e){!0===t.value?f(e):p(e)}function p(t){if(!0===s.disable||void 0!==o&&!0!==o(t))return;const n=void 0!==s["onUpdate:modelValue"];!0===n&&(u("update:modelValue",!0),d=t,e.nextTick(()=>{d===t&&(d=void 0)})),null!==s.modelValue&&!1!==n||m(t)}function m(e){!0!==t.value&&(t.value=!0,u("before-show",e),void 0!==a?a(e):u("show",e))}function f(t){if(!0===s.disable)return;const o=void 0!==s["onUpdate:modelValue"];!0===o&&(u("update:modelValue",!1),d=t,e.nextTick(()=>{d===t&&(d=void 0)})),null!==s.modelValue&&!1!==o||h(t)}function h(e){!1!==t.value&&(t.value=!1,u("before-hide",e),void 0!==l?l(e):u("hide",e))}function g(e){if(!0===s.disable&&!0===e)void 0!==s["onUpdate:modelValue"]&&u("update:modelValue",!1);else if(!0===e!==t.value){const t=!0===e?m:h;t(d)}}e.watch(()=>s.modelValue,g),void 0!==n&&!0===mt(r)&&e.watch(()=>c.$route,()=>{!0===n.value&&!0===t.value&&f()}),!0===i&&e.onMounted(()=>{g(s.modelValue)});const b={show:p,hide:f,toggle:v};return Object.assign(c,b),b}let oo=[];const no=[];function ao(e){no.push(e)}function lo(e){const t=no.indexOf(e);-1!==t&&no.splice(t,1),0===no.length&&oo.length>0&&(oo[oo.length-1](),oo=[])}function io(e){if(0!==no.length)return oo.push(e),e;e()}function ro(e){const t=oo.indexOf(e);-1!==t&&oo.splice(t,1)}const so=[];let uo=document.body;function co(e){const t=document.createElement("div");if(void 0!==e&&(t.id=e),void 0!==ce.globalNodes){const e=ce.globalNodes.class;void 0!==e&&(t.className=e)}return uo.appendChild(t),so.push(t),t}function vo(e){so.splice(so.indexOf(e),1),e.remove()}function po(e){e!==uo&&(uo=e,so.forEach(e=>{!1===e.contains(uo)&&uo.appendChild(e)}))}const mo=[];function fo(e){return mo.find(t=>null!==t.__qPortalInnerRef.value&&t.__qPortalInnerRef.value.contains(e))}function ho(e,t){do{if("QMenu"===e.$options.name){if(e.hide(t),!0===e.$props.separateClosePopup)return vt(e)}else if(void 0!==e.__qPortalInnerRef){const o=vt(e);return void 0!==o&&"QPopupProxy"===o.$options.name?(e.hide(t),o):e}e=vt(e)}while(void 0!==e&&null!==e)}function go(e,t,o){while(0!==o&&void 0!==e&&null!==e){if(void 0!==e.__qPortalInnerRef){if(o--,"QMenu"===e.$options.name){e=ho(e,t);continue}e.hide(t)}e=vt(e)}}function bo(e){e=e.parent;while(void 0!==e&&null!==e){if("QGlobalDialog"===e.type.name)return!0;if("QDialog"===e.type.name||"QMenu"===e.type.name)return!1;e=e.parent}return!1}function yo(t,o,n,a){const l=e.ref(!1);let i=null;const r={},s=!0===a&&bo(t);function u(e){!0!==e?(!1===s&&null===i&&(i=co()),l.value=!0,mo.push(t.proxy),ao(r)):lo(r)}function c(){lo(r),l.value=!1;const e=mo.indexOf(t.proxy);e>-1&&mo.splice(e,1),null!==i&&(vo(i),i=null)}return e.onUnmounted(c),Object.assign(t.proxy,{__qPortalInnerRef:o}),{showPortal:u,hidePortal:c,portalIsActive:l,renderPortal:()=>!0===s?n():!0===l.value?[e.h(e.Teleport,{to:i},n())]:void 0}}const wo={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function xo(t,o){const n=e.ref(o.value);return e.watch(o,t=>{e.nextTick(()=>{n.value=t})}),{transition:e.computed(()=>"q-transition--"+(!0===n.value?t.transitionHide:t.transitionShow)),transitionStyle:e.computed(()=>`--q-transition-duration: ${t.transitionDuration}ms`)}}function _o(){let t;return e.onBeforeUnmount(()=>{t=void 0}),{registerTick(e){t=e},removeTick(){t=void 0},prepareTick(){if(void 0!==t){const o=t;e.nextTick(()=>{t===o&&(t(),t=void 0)})}}}}function Co(){let t;return e.onBeforeUnmount(()=>{clearTimeout(t)}),{registerTimeout(e,o){clearTimeout(t),t=setTimeout(e,o)},removeTimeout(){clearTimeout(t)}}}const So=[null,document,document.body,document.scrollingElement,document.documentElement];function qo(e,t){let o=Vt(t);if(void 0===o){if(void 0===e||null===e)return window;o=e.closest(".scroll,.scroll-y,.overflow-auto")}return So.includes(o)?window:o}function ko(e){return(e===window?document.body:e).scrollHeight}function $o(e){return(e===window?document.body:e).scrollWidth}function Mo(e){return e===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:e.scrollTop}function To(e){return e===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:e.scrollLeft}function Bo(e,t,o=0){const n=void 0===arguments[3]?performance.now():arguments[3],a=Mo(e);o<=0?a!==t&&Vo(e,t):requestAnimationFrame(l=>{const i=l-n,r=a+(t-a)/Math.max(i,o)*i;Vo(e,r),r!==t&&Bo(e,t,o-i,l)})}function Oo(e,t,o=0){const n=void 0===arguments[3]?performance.now():arguments[3],a=To(e);o<=0?a!==t&&zo(e,t):requestAnimationFrame(l=>{const i=l-n,r=a+(t-a)/Math.max(i,o)*i;zo(e,r),r!==t&&Oo(e,t,o-i,l)})}function Vo(e,t){e!==window?e.scrollTop=t:window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,t)}function zo(e,t){e!==window?e.scrollLeft=t:window.scrollTo(t,window.pageYOffset||window.scrollY||document.body.scrollTop||0)}function Lo(e,t,o){o?Bo(e,t,o):Vo(e,t)}function Eo(e,t,o){o?Oo(e,t,o):zo(e,t)}let Po;function Ao(){if(void 0!==Po)return Po;const e=document.createElement("p"),t=document.createElement("div");Tt(e,{width:"100%",height:"200px"}),Tt(t,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.appendChild(e),document.body.appendChild(t);const o=e.offsetWidth;t.style.overflow="scroll";let n=e.offsetWidth;return o===n&&(n=t.clientWidth),t.remove(),Po=o-n,Po}function Fo(e,t=!0){return!(!e||e.nodeType!==Node.ELEMENT_NODE)&&(t?e.scrollHeight>e.clientHeight&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-y"])):e.scrollWidth>e.clientWidth&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-x"])))}var Io={getScrollTarget:qo,getScrollHeight:ko,getScrollWidth:$o,getVerticalScrollPosition:Mo,getHorizontalScrollPosition:To,animVerticalScrollTo:Bo,animHorizontalScrollTo:Oo,setVerticalScrollPosition:Lo,setHorizontalScrollPosition:Eo,getScrollbarWidth:Ao,hasScrollbar:Fo};const Ro=[];let No;function jo(e){No=27===e.keyCode}function Do(){!0===No&&(No=!1)}function Ho(e){!0===No&&(No=!1,!0===W(e,27)&&Ro[Ro.length-1](e))}function Qo(e){window[e]("keydown",jo),window[e]("blur",Do),window[e]("keyup",Ho),No=!1}function Uo(e){!0===c.is.desktop&&(Ro.push(e),1===Ro.length&&Qo("addEventListener"))}function Wo(e){const t=Ro.indexOf(e);t>-1&&(Ro.splice(t,1),0===Ro.length&&Qo("removeEventListener"))}const Yo=[];function Ko(e){Yo[Yo.length-1](e)}function Xo(e){!0===c.is.desktop&&(Yo.push(e),1===Yo.length&&document.body.addEventListener("focusin",Ko))}function Zo(e){const t=Yo.indexOf(e);t>-1&&(Yo.splice(t,1),0===Yo.length&&document.body.removeEventListener("focusin",Ko))}let Go;const{notPassiveCapture:Jo}=p,en=[];function tn(e){while(null!==(e=e.nextElementSibling))if(e.classList.contains("q-dialog--modal"))return!0;return!1}function on(e){clearTimeout(Go);const t=e.target;if(void 0!==t&&8!==t.nodeType&&!0!==t.classList.contains("no-pointer-events"))for(let o=en.length-1;o>=0;o--){const n=en[o];if(null!==n.anchorEl.value&&!1!==n.anchorEl.value.contains(t)||t!==document.body&&(null===n.innerRef.value||!1!==n.innerRef.value.contains(t))||void 0!==n.getEl&&!0===tn(n.getEl()))return;e.qClickOutside=!0,n.onClickOutside(e)}}function nn(e){en.push(e),1===en.length&&(document.addEventListener("mousedown",on,Jo),document.addEventListener("touchstart",on,Jo))}function an(e){const t=en.findIndex(t=>t===e);t>-1&&(en.splice(t,1),0===en.length&&(clearTimeout(Go),document.removeEventListener("mousedown",on,Jo),document.removeEventListener("touchstart",on,Jo)))}let ln,rn;function sn(e){const t=e.split(" ");return 2===t.length&&(!0!==["top","center","bottom"].includes(t[0])?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):!0===["left","middle","right","start","end"].includes(t[1])||(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1))}function un(e){return!e||2===e.length&&("number"===typeof e[0]&&"number"===typeof e[1])}const cn={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};function dn(e,t){const o=e.split(" ");return{vertical:o[0],horizontal:cn[`${o[1]}#${!0===t?"rtl":"ltr"}`]}}function vn(e,t){let{top:o,left:n,right:a,bottom:l,width:i,height:r}=e.getBoundingClientRect();return void 0!==t&&(o-=t[1],n-=t[0],l+=t[1],a+=t[0],i+=t[0],r+=t[1]),{top:o,left:n,right:a,bottom:l,width:i,height:r,middle:n+(a-n)/2,center:o+(l-o)/2}}function pn(e){return{top:0,center:e.offsetHeight/2,bottom:e.offsetHeight,left:0,middle:e.offsetWidth/2,right:e.offsetWidth}}function mn(e){if(!0===c.is.ios&&void 0!==window.visualViewport){const e=document.body.style,{offsetLeft:t,offsetTop:o}=window.visualViewport;t!==ln&&(e.setProperty("--q-pe-left",t+"px"),ln=t),o!==rn&&(e.setProperty("--q-pe-top",o+"px"),rn=o)}let t;const{scrollLeft:o,scrollTop:n}=e.el;if(void 0===e.absoluteOffset)t=vn(e.anchorEl,!0===e.cover?[0,0]:e.offset);else{const{top:o,left:n}=e.anchorEl.getBoundingClientRect(),a=o+e.absoluteOffset.top,l=n+e.absoluteOffset.left;t={top:a,left:l,width:1,height:1,right:l+1,center:a,middle:l,bottom:a+1}}let a={maxHeight:e.maxHeight,maxWidth:e.maxWidth,visibility:"visible"};!0!==e.fit&&!0!==e.cover||(a.minWidth=t.width+"px",!0===e.cover&&(a.minHeight=t.height+"px")),Object.assign(e.el.style,a);const l=pn(e.el),i={top:t[e.anchorOrigin.vertical]-l[e.selfOrigin.vertical],left:t[e.anchorOrigin.horizontal]-l[e.selfOrigin.horizontal]};fn(i,t,l,e.anchorOrigin,e.selfOrigin),a={top:i.top+"px",left:i.left+"px"},void 0!==i.maxHeight&&(a.maxHeight=i.maxHeight+"px",t.height>i.maxHeight&&(a.minHeight=a.maxHeight)),void 0!==i.maxWidth&&(a.maxWidth=i.maxWidth+"px",t.width>i.maxWidth&&(a.minWidth=a.maxWidth)),Object.assign(e.el.style,a),e.el.scrollTop!==n&&(e.el.scrollTop=n),e.el.scrollLeft!==o&&(e.el.scrollLeft=o)}function fn(e,t,o,n,a){const l=o.bottom,i=o.right,r=Ao(),s=window.innerHeight-r,u=document.body.clientWidth;if(e.top<0||e.top+l>s)if("center"===a.vertical)e.top=t[n.vertical]>s/2?Math.max(0,s-l):0,e.maxHeight=Math.min(l,s);else if(t[n.vertical]>s/2){const o=Math.min(s,"center"===n.vertical?t.center:n.vertical===a.vertical?t.bottom:t.top);e.maxHeight=Math.min(l,o),e.top=Math.max(0,o-l)}else e.top=Math.max(0,"center"===n.vertical?t.center:n.vertical===a.vertical?t.top:t.bottom),e.maxHeight=Math.min(l,s-e.top);if(e.left<0||e.left+i>u)if(e.maxWidth=Math.min(i,u),"middle"===a.horizontal)e.left=t[n.horizontal]>u/2?Math.max(0,u-i):0;else if(t[n.horizontal]>u/2){const o=Math.min(u,"middle"===n.horizontal?t.middle:n.horizontal===a.horizontal?t.right:t.left);e.maxWidth=Math.min(i,o),e.left=Math.max(0,o-e.maxWidth)}else e.left=Math.max(0,"middle"===n.horizontal?t.middle:n.horizontal===a.horizontal?t.left:t.right),e.maxWidth=Math.min(i,u-e.left)}["left","middle","right"].forEach(e=>{cn[`${e}#ltr`]=e,cn[`${e}#rtl`]=e});var hn=e.defineComponent({name:"QMenu",inheritAttrs:!1,props:{...Xt,...Jt,...at,...wo,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:sn},self:{type:String,validator:sn},offset:{type:Array,validator:un},scrollTarget:{default:void 0},touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...eo,"click","escape-key"],setup(t,{slots:o,emit:n,attrs:a}){let l,i,r,s=null;const u=e.getCurrentInstance(),{proxy:c}=u,{$q:d}=c,v=e.ref(null),p=e.ref(!1),m=e.computed(()=>!0!==t.persistent&&!0!==t.noRouteDismiss),f=lt(t,d),{registerTick:h,removeTick:g,prepareTick:y}=_o(),{registerTimeout:w,removeTimeout:x}=Co(),{transition:_,transitionStyle:C}=xo(t,p),{localScrollTarget:S,changeScrollEvent:k,unconfigureScrollTarget:$}=Gt(t,H),{anchorEl:M,canShow:T}=Zt({showing:p}),{hide:B}=to({showing:p,canShow:T,handleShow:N,handleHide:j,hideOnRouteChange:m,processOnMount:!0}),{showPortal:O,hidePortal:V,renderPortal:z}=yo(u,v,K),L={anchorEl:M,innerRef:v,getEl:()=>c.$el,onClickOutside(e){if(!0!==t.persistent&&!0===p.value)return B(e),("touchstart"===e.type||e.target.classList.contains("q-dialog__backdrop"))&&q(e),!0}},E=e.computed(()=>dn(t.anchor||(!0===t.cover?"center middle":"bottom start"),d.lang.rtl)),P=e.computed(()=>!0===t.cover?E.value:dn(t.self||"top start",d.lang.rtl)),A=e.computed(()=>(!0===t.square?" q-menu--square":"")+(!0===f.value?" q-menu--dark q-dark":"")),F=e.computed(()=>!0===t.autoClose?{onClick:Q}:{}),I=e.computed(()=>!0===p.value&&!0!==t.persistent);function R(){io(()=>{let e=v.value;e&&!0!==e.contains(document.activeElement)&&(e=e.querySelector("[autofocus], [data-autofocus]")||e,e.focus())})}function N(o){if(g(),x(),s=!1===t.noRefocus?document.activeElement:null,Xo(U),O(),H(),l=void 0,void 0!==o&&(t.touchPosition||t.contextMenu)){const e=b(o);if(void 0!==e.left){const{top:t,left:o}=M.value.getBoundingClientRect();l={left:e.left-o,top:e.top-t}}}void 0===i&&(i=e.watch(()=>d.screen.width+"|"+d.screen.height+"|"+t.self+"|"+t.anchor+"|"+d.lang.rtl,Y)),!0!==t.noFocus&&document.activeElement.blur(),h(()=>{Y(),!0!==t.noFocus&&R()}),y(),w(()=>{!0===d.platform.is.ios&&(r=t.autoClose,v.value.click()),Y(),O(!0),n("show",o)},t.transitionDuration)}function j(e){g(),x(),D(!0),null===s||void 0!==e&&!0===e.qClickOutside||s.focus(),w(()=>{V(),n("hide",e)},t.transitionDuration)}function D(e){l=void 0,void 0!==i&&(i(),i=void 0),!0!==e&&!0!==p.value||(Zo(U),$(),an(L),Wo(W))}function H(){null===M.value&&void 0===t.scrollTarget||(S.value=qo(M.value,t.scrollTarget),k(S.value,Y))}function Q(e){!0!==r?(ho(c,e),n("click",e)):r=!1}function U(e){!0===I.value&&!0!==zt(v.value,e.target)&&R()}function W(e){n("escape-key"),B(e)}function Y(){const e=v.value;null!==e&&null!==M.value&&mn({el:e,offset:t.offset,anchorEl:M.value,anchorOrigin:E.value,selfOrigin:P.value,absoluteOffset:l,fit:t.fit,cover:t.cover,maxHeight:t.maxHeight,maxWidth:t.maxWidth})}function K(){return e.h(e.Transition,{name:_.value,appear:!0},()=>!0===p.value?e.h("div",{...a,ref:v,tabindex:-1,class:["q-menu q-position-engine scroll"+A.value,a.class],style:[a.style,C.value],...F.value},Fe(o.default)):null)}return e.watch(I,e=>{!0===e?(Uo(W),nn(L)):(Wo(W),an(L))}),e.onBeforeUnmount(D),Object.assign(c,{focus:R,updatePosition:Y}),z}}),gn=e.defineComponent({name:"QBtnDropdown",props:{...Nt,modelValue:Boolean,split:Boolean,dropdownIcon:String,contentClass:[Array,String,Object],contentStyle:[Array,String,Object],cover:Boolean,persistent:Boolean,noRouteDismiss:Boolean,autoClose:Boolean,menuAnchor:{type:String,default:"bottom end"},menuSelf:{type:String,default:"top end"},menuOffset:Array,disableMainBtn:Boolean,disableDropdown:Boolean,noIconAnimation:Boolean},emits:["update:modelValue","click","before-show","show","before-hide","hide"],setup(t,{slots:o,emit:n}){const{proxy:a}=e.getCurrentInstance(),l=e.ref(t.modelValue),i=e.ref(null),r=e.computed(()=>{const e={"aria-expanded":!0===l.value?"true":"false","aria-haspopup":"true"};return(!0===t.disable||!1===t.split&&!0===t.disableMainBtn||!0===t.disableDropdown)&&(e["aria-disabled"]="true"),e}),s=e.computed(()=>"q-btn-dropdown__arrow"+(!0===l.value&&!1===t.noIconAnimation?" rotate-180":"")+(!1===t.split?" q-btn-dropdown__arrow-container":""));function u(e){l.value=!0,n("before-show",e)}function c(e){n("show",e),n("update:modelValue",!0)}function d(e){l.value=!1,n("before-hide",e)}function v(e){n("hide",e),n("update:modelValue",!1)}function p(e){n("click",e)}function m(e){C(e),g(),n("click",e)}function f(e){null!==i.value&&i.value.toggle(e)}function h(e){null!==i.value&&i.value.show(e)}function g(e){null!==i.value&&i.value.hide(e)}return e.watch(()=>t.modelValue,e=>{null!==i.value&&i.value[e?"show":"hide"]()}),e.watch(()=>t.split,g),Object.assign(a,{show:h,hide:g,toggle:f}),e.onMounted(()=>{!0===t.modelValue&&h()}),()=>{const n=[e.h(et,{class:s.value,name:t.dropdownIcon||a.$q.iconSet.arrow.dropdown})];return!0!==t.disableDropdown&&n.push(e.h(hn,{ref:i,class:t.contentClass,style:t.contentStyle,cover:t.cover,fit:!0,persistent:t.persistent,noRouteDismiss:t.noRouteDismiss,autoClose:t.autoClose,anchor:t.menuAnchor,self:t.menuSelf,offset:t.menuOffset,separateClosePopup:!0,onBeforeShow:u,onShow:c,onBeforeHide:d,onHide:v},o.default)),!1===t.split?e.h(Wt,{class:"q-btn-dropdown q-btn-dropdown--simple",...t,disable:!0===t.disable||!0===t.disableMainBtn,noWrap:!0,round:!1,...r.value,onClick:p},()=>Fe(o.label,[]).concat(n)):e.h(Yt,{class:"q-btn-dropdown q-btn-dropdown--split no-wrap q-btn-item",outline:t.outline,flat:t.flat,rounded:t.rounded,push:t.push,unelevated:t.glossy,stretch:t.stretch},()=>[e.h(Wt,{class:"q-btn-dropdown--current",...t,disable:!0===t.disable||!0===t.disableMainBtn,noWrap:!0,iconRight:t.iconRight,round:!1,onClick:m},o.label),e.h(Wt,{class:"q-btn-dropdown__arrow-container q-anchor--skip",...r.value,disable:!0===t.disable||!0===t.disableDropdown,outline:t.outline,flat:t.flat,rounded:t.rounded,push:t.push,size:t.size,color:t.color,textColor:t.textColor,dense:t.dense,ripple:t.ripple},()=>n)])}}});const bn={name:String};function yn(t){return e.computed(()=>({type:"hidden",name:t.name,value:t.modelValue}))}function wn(t={},o={}){return(n,a,l)=>{n[a](e.h("input",{class:"hidden"+(l||""),...t.value,...o.value}))}}function xn(t){return e.computed(()=>t.name||t.for)}var _n=e.defineComponent({name:"QBtnToggle",props:{...bn,modelValue:{required:!0},options:{type:Array,required:!0,validator:e=>e.every(e=>("label"in e||"icon"in e||"slot"in e)&&"value"in e)},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,padding:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,readonly:Boolean,disable:Boolean,stack:Boolean,stretch:Boolean,spread:Boolean,clearable:Boolean,ripple:{type:[Boolean,Object],default:!0}},emits:["update:modelValue","clear","click"],setup(t,{slots:o,emit:n}){const a=e.computed(()=>void 0!==t.options.find(e=>e.value===t.modelValue)),l=e.computed(()=>({type:"hidden",name:t.name,value:t.modelValue})),i=wn(l),r=e.computed(()=>t.options.map((e,o)=>{const{attrs:n,value:a,slot:l,...i}=e;return{slot:l,props:{key:o,onClick(t){s(a,e,t)},...n,...i,outline:t.outline,flat:t.flat,rounded:t.rounded,push:t.push,unelevated:t.unelevated,dense:t.dense,disable:!0===t.disable||!0===i.disable,color:a===t.modelValue?u(i,"toggleColor"):u(i,"color"),textColor:a===t.modelValue?u(i,"toggleTextColor"):u(i,"textColor"),noCaps:!0===u(i,"noCaps"),noWrap:!0===u(i,"noWrap"),size:u(i,"size"),padding:u(i,"padding"),ripple:u(i,"ripple"),stack:!0===u(i,"stack"),stretch:!0===u(i,"stretch")}}}));function s(e,o,a){!0!==t.readonly&&(t.modelValue===e?!0===t.clearable&&(n("update:modelValue",null,null),n("clear")):n("update:modelValue",e,o),n("click",a))}function u(e,o){return void 0===e[o]?t[o]:e[o]}function c(){const n=r.value.map(t=>{return e.h(Wt,t.props,void 0!==t.slot?o[t.slot]:void 0)});return void 0!==t.name&&!0!==t.disable&&!0===a.value&&i(n,"push"),Re(o.default,n)}return()=>e.h(Yt,{class:"q-btn-toggle",outline:t.outline,flat:t.flat,rounded:t.rounded,push:t.push,stretch:t.stretch,unelevated:t.unelevated,glossy:t.glossy,spread:t.spread},c)}}),Cn=e.defineComponent({name:"QCard",props:{...at,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(t,{slots:o}){const n=e.getCurrentInstance(),a=lt(t,n.proxy.$q),l=e.computed(()=>"q-card"+(!0===a.value?" q-card--dark q-dark":"")+(!0===t.bordered?" q-card--bordered":"")+(!0===t.square?" q-card--square no-border-radius":"")+(!0===t.flat?" q-card--flat no-shadow":""));return()=>e.h(t.tag,{class:l.value},Fe(o.default))}}),Sn=e.defineComponent({name:"QCardSection",props:{tag:{type:String,default:"div"},horizontal:Boolean},setup(t,{slots:o}){const n=e.computed(()=>"q-card__section"+` q-card__section--${!0===t.horizontal?"horiz row no-wrap":"vert"}`);return()=>e.h(t.tag,{class:n.value},Fe(o.default))}}),qn=e.defineComponent({name:"QCardActions",props:{...ct,vertical:Boolean},setup(t,{slots:o}){const n=dt(t),a=e.computed(()=>`q-card__actions ${n.value}`+` q-card__actions--${!0===t.vertical?"vert column":"horiz row"}`);return()=>e.h("div",{class:a.value},Fe(o.default))}});const kn={left:!0,right:!0,up:!0,down:!0,horizontal:!0,vertical:!0},$n=Object.keys(kn);function Mn(e){const t={};for(const o of $n)!0===e[o]&&(t[o]=!0);return 0===Object.keys(t).length?kn:(!0===t.horizontal?t.left=t.right=!0:!0===t.left&&!0===t.right&&(t.horizontal=!0),!0===t.vertical?t.up=t.down=!0:!0===t.up&&!0===t.down&&(t.vertical=!0),!0===t.horizontal&&!0===t.vertical&&(t.all=!0),t)}function Tn(e,t){return void 0===t.event&&void 0!==e.target&&!0!==e.target.draggable&&"function"===typeof t.handler&&"INPUT"!==e.target.nodeName.toUpperCase()&&(void 0===e.qClonedBy||-1===e.qClonedBy.indexOf(t.uid))}function Bn(e){const t=[.06,6,50];return"string"===typeof e&&e.length&&e.split(":").forEach((e,o)=>{const n=parseFloat(e);n&&(t[o]=n)}),t}kn.all=!0;var On={name:"touch-swipe",beforeMount(e,{value:t,arg:o,modifiers:n}){if(!0!==n.mouse&&!0!==c.has.touch)return;const a=!0===n.mouseCapture?"Capture":"",l={handler:t,sensitivity:Bn(o),direction:Mn(n),noop:m,mouseStart(e){Tn(e,l)&&f(e)&&($(l,"temp",[[document,"mousemove","move",`notPassive${a}`],[document,"mouseup","end","notPassiveCapture"]]),l.start(e,!0))},touchStart(e){if(Tn(e,l)){const t=e.target;$(l,"temp",[[t,"touchmove","move","notPassiveCapture"],[t,"touchcancel","end","notPassiveCapture"],[t,"touchend","end","notPassiveCapture"]]),l.start(e)}},start(t,o){!0===c.is.firefox&&k(e,!0);const n=b(t);l.event={x:n.left,y:n.top,time:Date.now(),mouse:!0===o,dir:!1}},move(e){if(void 0===l.event)return;if(!1!==l.event.dir)return void q(e);const t=Date.now()-l.event.time;if(0===t)return;const o=b(e),n=o.left-l.event.x,a=Math.abs(n),i=o.top-l.event.y,r=Math.abs(i);if(!0!==l.event.mouse){if(a<l.sensitivity[1]&&r<l.sensitivity[1])return void l.end(e)}else if(a<l.sensitivity[2]&&r<l.sensitivity[2])return;const s=a/t,u=r/t;!0===l.direction.vertical&&a<r&&a<100&&u>l.sensitivity[0]&&(l.event.dir=i<0?"up":"down"),!0===l.direction.horizontal&&a>r&&r<100&&s>l.sensitivity[0]&&(l.event.dir=n<0?"left":"right"),!0===l.direction.up&&a<r&&i<0&&a<100&&u>l.sensitivity[0]&&(l.event.dir="up"),!0===l.direction.down&&a<r&&i>0&&a<100&&u>l.sensitivity[0]&&(l.event.dir="down"),!0===l.direction.left&&a>r&&n<0&&r<100&&s>l.sensitivity[0]&&(l.event.dir="left"),!0===l.direction.right&&a>r&&n>0&&r<100&&s>l.sensitivity[0]&&(l.event.dir="right"),!1!==l.event.dir?(q(e),!0===l.event.mouse&&(document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),Kt(),l.styleCleanup=(e=>{l.styleCleanup=void 0,document.body.classList.remove("non-selectable");const t=()=>{document.body.classList.remove("no-pointer-events--children")};!0===e?setTimeout(t,50):t()})),l.handler({evt:e,touch:!0!==l.event.mouse,mouse:l.event.mouse,direction:l.event.dir,duration:t,distance:{x:a,y:r}})):l.end(e)},end(t){void 0!==l.event&&(M(l,"temp"),!0===c.is.firefox&&k(e,!1),void 0!==l.styleCleanup&&l.styleCleanup(!0),void 0!==t&&!1!==l.event.dir&&q(t),l.event=void 0)}};e.__qtouchswipe=l,!0===n.mouse&&$(l,"main",[[e,"mousedown","mouseStart",`passive${a}`]]),!0===c.has.touch&&$(l,"main",[[e,"touchstart","touchStart",`passive${!0===n.capture?"Capture":""}`],[e,"touchmove","noop","notPassiveCapture"]])},updated(e,t){const o=e.__qtouchswipe;void 0!==o&&(t.oldValue!==t.value&&("function"!==typeof t.value&&o.end(),o.handler=t.value),o.direction=Mn(t.modifiers))},beforeUnmount(e){const t=e.__qtouchswipe;void 0!==t&&(M(t,"main"),M(t,"temp"),!0===c.is.firefox&&k(e,!1),void 0!==t.styleCleanup&&t.styleCleanup(),delete e.__qtouchswipe)}};function Vn(){const e=new Map;return{getCache:function(t,o){return void 0===e[t]?e[t]=o:e[t]},getCacheWithFn:function(t,o){return void 0===e[t]?e[t]=o():e[t]}}}const zn={name:{required:!0},disable:Boolean},Ln={setup(t,{slots:o}){return()=>e.h("div",{class:"q-panel scroll",role:"tabpanel"},Fe(o.default))}},En={modelValue:{required:!0},animated:Boolean,infinite:Boolean,swipeable:Boolean,vertical:Boolean,transitionPrev:String,transitionNext:String,keepAlive:Boolean,keepAliveInclude:[String,Array,RegExp],keepAliveExclude:[String,Array,RegExp],keepAliveMax:Number},Pn=["update:modelValue","before-transition","transition"];function An(){const{props:t,emit:o,proxy:n}=e.getCurrentInstance(),{getCacheWithFn:a}=Vn();let l,i;const r=e.ref(null),s=e.ref(null);function u(e){const o=!0===t.vertical?"up":"left";C((!0===n.$q.lang.rtl?-1:1)*(e.direction===o?1:-1))}const c=e.computed(()=>{return[[On,u,void 0,{horizontal:!0!==t.vertical,vertical:t.vertical,mouse:!0}]]}),d=e.computed(()=>t.transitionPrev||`slide-${!0===t.vertical?"down":"right"}`),v=e.computed(()=>t.transitionNext||`slide-${!0===t.vertical?"up":"left"}`),p=e.computed(()=>"string"===typeof t.modelValue||"number"===typeof t.modelValue?t.modelValue:String(t.modelValue)),m=e.computed(()=>({include:t.keepAliveInclude,exclude:t.keepAliveExclude,max:t.keepAliveMax})),f=e.computed(()=>void 0!==t.keepAliveInclude||void 0!==t.keepAliveExclude);function h(){C(1)}function g(){C(-1)}function b(e){o("update:modelValue",e)}function y(e){return void 0!==e&&null!==e&&""!==e}function w(e){return l.findIndex(t=>{return t.props.name===e&&""!==t.props.disable&&!0!==t.props.disable})}function x(){return l.filter(e=>{return""!==e.props.disable&&!0!==e.props.disable})}function _(e){const o=0!==e&&!0===t.animated&&-1!==r.value?"q-transition--"+(-1===e?d.value:v.value):null;s.value!==o&&(s.value=o)}function C(e,n=r.value){let a=n+e;while(a>-1&&a<l.length){const t=l[a];if(void 0!==t&&""!==t.props.disable&&!0!==t.props.disable)return _(e),i=!0,o("update:modelValue",t.props.name),void setTimeout(()=>{i=!1});a+=e}!0===t.infinite&&l.length>0&&-1!==n&&n!==l.length&&C(e,-1===e?l.length:-1)}function S(){const e=w(t.modelValue);return r.value!==e&&(r.value=e),!0}function q(){const o=y(t.modelValue)&&S()&&l[r.value];return!0===t.keepAlive?[e.h(e.KeepAlive,m.value,[e.h(!0===f.value?a(p.value,()=>({...Ln,name:p.value})):Ln,{key:p.value},()=>o)])]:[e.h("div",{class:"q-panel scroll",key:p.value,role:"tabpanel"},[o])]}function k(){if(0!==l.length)return!0===t.animated?[e.h(e.Transition,{name:s.value},q)]:q()}function $(e){return l=pt(Fe(e.default,[])).filter(e=>null!==e.props&&void 0===e.props.slot&&y(e.props.name)),l.length}function M(){return l}return e.watch(()=>t.modelValue,(t,n)=>{const a=!0===y(t)?w(t):-1;!0!==i&&_(-1===a?0:a<w(n)?-1:1),r.value!==a&&(r.value=a,o("before-transition",t,n),e.nextTick(()=>{o("transition",t,n)}))}),Object.assign(n,{next:h,previous:g,goTo:b}),{panelIndex:r,panelDirectives:c,updatePanelsList:$,updatePanelIndex:S,getPanelContent:k,getEnabledPanels:x,getPanels:M,isValidPanelName:y,keepAliveProps:m,needsUniqueKeepAliveWrapper:f,goToPanelByOffset:C,goToPanel:b,nextPanel:h,previousPanel:g}}const Fn={fullscreen:Boolean,noRouteFullscreenExit:Boolean},In=["update:fullscreen","fullscreen"];function Rn(){const t=e.getCurrentInstance(),{props:o,emit:n,proxy:a}=t;let l,i,r;const s=e.ref(!1);function u(){!0===s.value?d():c()}function c(){!0!==s.value&&(s.value=!0,r=a.$el.parentNode,r.replaceChild(i,a.$el),document.body.appendChild(a.$el),document.body.classList.add("q-body--fullscreen-mixin"),l={handler:d},I.add(l))}function d(){!0===s.value&&(void 0!==l&&(I.remove(l),l=void 0),r.replaceChild(a.$el,i),document.body.classList.remove("q-body--fullscreen-mixin"),s.value=!1,void 0!==a.$el.scrollIntoView&&setTimeout(()=>{a.$el.scrollIntoView()}))}return!0===mt(t)&&e.watch(()=>a.$route,()=>{!0!==o.noRouteFullscreenExit&&d()}),e.watch(()=>o.fullscreen,e=>{s.value!==e&&u()}),e.watch(s,e=>{n("update:fullscreen",e),n("fullscreen",e)}),e.onBeforeMount(()=>{i=document.createElement("span")}),e.onMounted(()=>{!0===o.fullscreen&&c()}),e.onBeforeUnmount(d),Object.assign(a,{toggleFullscreen:u,setFullscreen:c,exitFullscreen:d}),{inFullscreen:s,toggleFullscreen:u}}const Nn="function"===typeof Map,jn="function"===typeof Set,Dn="function"===typeof ArrayBuffer;function Hn(e,t){if(e===t)return!0;if(null!==e&&null!==t&&"object"===typeof e&&"object"===typeof t){if(e.constructor!==t.constructor)return!1;let o,n;if(e.constructor===Array){if(o=e.length,o!==t.length)return!1;for(n=o;0!==n--;)if(!0!==Hn(e[n],t[n]))return!1;return!0}if(!0===Nn&&e.constructor===Map){if(e.size!==t.size)return!1;n=e.entries().next();while(!0!==n.done){if(!0!==t.has(n.value[0]))return!1;n=n.next()}n=e.entries().next();while(!0!==n.done){if(!0!==Hn(n.value[1],t.get(n.value[0])))return!1;n=n.next()}return!0}if(!0===jn&&e.constructor===Set){if(e.size!==t.size)return!1;n=e.entries().next();while(!0!==n.done){if(!0!==t.has(n.value[0]))return!1;n=n.next()}return!0}if(!0===Dn&&null!=e.buffer&&e.buffer.constructor===ArrayBuffer){if(o=e.length,o!==t.length)return!1;for(n=o;0!==n--;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const a=Object.keys(e);if(o=a.length,o!==Object.keys(t).length)return!1;for(n=o;0!==n--;){const o=a[n];if(!0!==Hn(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function Qn(e){return"[object Date]"===Object.prototype.toString.call(e)}function Un(e){return"number"===typeof e&&isFinite(e)}const Wn=["top","right","bottom","left"],Yn=["regular","flat","outline","push","unelevated"];var Kn=e.defineComponent({name:"QCarousel",props:{...at,...En,...Fn,transitionPrev:{type:String,default:"fade"},transitionNext:{type:String,default:"fade"},height:String,padding:Boolean,controlColor:String,controlTextColor:String,controlType:{type:String,validator:e=>Yn.includes(e),default:"flat"},autoplay:[Number,Boolean],arrows:Boolean,prevIcon:String,nextIcon:String,navigation:Boolean,navigationPosition:{type:String,validator:e=>Wn.includes(e)},navigationIcon:String,navigationActiveIcon:String,thumbnails:Boolean},emits:[...In,...Pn],setup(t,{slots:o}){const{proxy:{$q:n}}=e.getCurrentInstance(),a=lt(t,n);let l,i;const{updatePanelsList:r,getPanelContent:s,panelDirectives:u,goToPanel:c,previousPanel:d,nextPanel:v,getEnabledPanels:p,panelIndex:m}=An(),{inFullscreen:f}=Rn(),h=e.computed(()=>!0!==f.value&&void 0!==t.height?{height:t.height}:{}),g=e.computed(()=>!0===t.vertical?"vertical":"horizontal"),b=e.computed(()=>`q-carousel q-panel-parent q-carousel--with${!0===t.padding?"":"out"}-padding`+(!0===f.value?" fullscreen":"")+(!0===a.value?" q-carousel--dark q-dark":"")+(!0===t.arrows?` q-carousel--arrows-${g.value}`:"")+(!0===t.navigation?` q-carousel--navigation-${_.value}`:"")),y=e.computed(()=>{const e=[t.prevIcon||n.iconSet.carousel[!0===t.vertical?"up":"left"],t.nextIcon||n.iconSet.carousel[!0===t.vertical?"down":"right"]];return!1===t.vertical&&!0===n.lang.rtl?e.reverse():e}),w=e.computed(()=>t.navigationIcon||n.iconSet.carousel.navigationIcon),x=e.computed(()=>t.navigationActiveIcon||w.value),_=e.computed(()=>t.navigationPosition||(!0===t.vertical?"right":"bottom")),C=e.computed(()=>({color:t.controlColor,textColor:t.controlTextColor,round:!0,[t.controlType]:!0,dense:!0}));function S(){l=setTimeout(v,Un(t.autoplay)?t.autoplay:5e3)}function q(o,n){return e.h("div",{class:"q-carousel__control q-carousel__navigation no-wrap absolute flex"+` q-carousel__navigation--${o} q-carousel__navigation--${_.value}`+(void 0!==t.controlColor?` text-${t.controlColor}`:"")},[e.h("div",{class:"q-carousel__navigation-inner flex flex-center no-wrap"},p().map(n))])}function k(){const n=[];if(!0===t.navigation){const t=void 0!==o["navigation-icon"]?o["navigation-icon"]:t=>e.h(Wt,{key:"nav"+t.name,class:`q-carousel__navigation-icon q-carousel__navigation-icon--${!0===t.active?"":"in"}active`,...t.btnProps,onClick:t.onClick}),a=i-1;n.push(q("buttons",(e,o)=>{const n=e.props.name,l=m.value===o;return t({index:o,maxIndex:a,name:n,active:l,btnProps:{icon:!0===l?x.value:w.value,size:"sm",...C.value},onClick:()=>{c(n)}})}))}else if(!0===t.thumbnails){const o=void 0!==t.controlColor?` text-${t.controlColor}`:"";n.push(q("thumbnails",n=>{const a=n.props;return e.h("img",{key:"tmb#"+a.name,class:`q-carousel__thumbnail q-carousel__thumbnail--${a.name===t.modelValue?"":"in"}active`+o,src:a.imgSrc||a["img-src"],onClick:()=>{c(a.name)}})}))}return!0===t.arrows&&m.value>=0&&((!0===t.infinite||m.value>0)&&n.push(e.h("div",{key:"prev",class:`q-carousel__control q-carousel__arrow q-carousel__prev-arrow q-carousel__prev-arrow--${g.value} absolute flex flex-center`},[e.h(Wt,{icon:y.value[0],...C.value,onClick:d})])),(!0===t.infinite||m.value<i-1)&&n.push(e.h("div",{key:"next",class:"q-carousel__control q-carousel__arrow q-carousel__next-arrow"+` q-carousel__next-arrow--${g.value} absolute flex flex-center`},[e.h(Wt,{icon:y.value[1],...C.value,onClick:v})]))),Re(o.control,n)}return e.watch(()=>t.modelValue,()=>{t.autoplay&&(clearInterval(l),S())}),e.watch(()=>t.autoplay,e=>{e?S():clearInterval(l)}),e.onMounted(()=>{t.autoplay&&S()}),e.onBeforeUnmount(()=>{clearInterval(l)}),()=>{return i=r(o),e.h("div",{class:b.value,style:h.value},[je("div",{class:"q-carousel__slides-container"},s(),"sl-cont",t.swipeable,()=>u.value)].concat(k()))}}}),Xn=e.defineComponent({name:"QCarouselSlide",props:{...zn,imgSrc:String},setup(t,{slots:o}){const n=e.computed(()=>t.imgSrc?{backgroundImage:`url("${t.imgSrc}")`}:{});return()=>e.h("div",{class:"q-carousel__slide",style:n.value},Fe(o.default))}}),Zn=e.defineComponent({name:"QCarouselControl",props:{position:{type:String,default:"bottom-right",validator:e=>["top-right","top-left","bottom-right","bottom-left","top","right","bottom","left"].includes(e)},offset:{type:Array,default:()=>[18,18],validator:e=>2===e.length}},setup(t,{slots:o}){const n=e.computed(()=>`q-carousel__control absolute absolute-${t.position}`),a=e.computed(()=>({margin:`${t.offset[1]}px ${t.offset[0]}px`}));return()=>e.h("div",{class:n.value,style:a.value},Fe(o.default))}}),Gn=e.defineComponent({name:"QChatMessage",props:{sent:Boolean,label:String,bgColor:String,textColor:String,name:String,avatar:String,text:Array,stamp:String,size:String,labelHtml:Boolean,nameHtml:Boolean,textHtml:Boolean,stampHtml:Boolean},setup(t,{slots:o}){const n=e.computed(()=>!0===t.sent?"sent":"received"),a=e.computed(()=>`q-message-text-content q-message-text-content--${n.value}`+(void 0!==t.textColor?` text-${t.textColor}`:"")),l=e.computed(()=>`q-message-text q-message-text--${n.value}`+(void 0!==t.bgColor?` text-${t.bgColor}`:"")),i=e.computed(()=>"q-message-container row items-end no-wrap"+(!0===t.sent?" reverse":"")),r=e.computed(()=>void 0!==t.size?`col-${t.size}`:""),s=e.computed(()=>({msg:!0===t.textHtml?"innerHTML":"textContent",stamp:!0===t.stampHtml?"innerHTML":"textContent",name:!0===t.nameHtml?"innerHTML":"textContent",label:!0===t.labelHtml?"innerHTML":"textContent"}));function u(n){return void 0!==o.stamp?[n,e.h("div",{class:"q-message-stamp"},o.stamp())]:t.stamp?[n,e.h("div",{class:"q-message-stamp",[s.value.stamp]:t.stamp})]:[n]}function c(t,o){const n=!0===o?t.length>1?e=>e:t=>e.h("div",[t]):t=>e.h("div",{[s.value.msg]:t});return t.map((t,o)=>e.h("div",{key:o,class:l.value},[e.h("div",{class:a.value},u(n(t)))]))}return()=>{const a=[];void 0!==o.avatar?a.push(o.avatar()):void 0!==t.avatar&&a.push(e.h("img",{class:`q-message-avatar q-message-avatar--${n.value}`,src:t.avatar,"aria-hidden":"true"}));const l=[];void 0!==o.name?l.push(e.h("div",{class:`q-message-name q-message-name--${n.value}`},o.name())):void 0!==t.name&&l.push(e.h("div",{class:`q-message-name q-message-name--${n.value}`,[s.value.name]:t.name})),void 0!==o.default?l.push(c(pt(o.default()),!0)):void 0!==t.text&&l.push(c(t.text)),a.push(e.h("div",{class:r.value},l));const u=[];return void 0!==o.label?u.push(e.h("div",{class:"q-message-label"},o.label())):void 0!==t.label&&u.push(e.h("div",{class:"q-message-label",[s.value.label]:t.label})),u.push(e.h("div",{class:i.value},a)),e.h("div",{class:`q-message q-message-${n.value}`},u)}}});function Jn(t,o){const n=e.ref(null),a=e.computed(()=>{return!0!==t.disable?null:e.h("span",{ref:n,class:"no-outline",tabindex:-1})});function l(e){void 0!==e&&0===e.type.indexOf("key")?document.activeElement!==o.value&&!0===o.value.contains(document.activeElement)&&o.value.focus():void 0!==e&&!0!==o.value.contains(e.target)||null===n.value||n.value.focus()}return{refocusTargetEl:a,refocusTarget:l}}var ea={xs:30,sm:35,md:40,lg:50,xl:60};const ta={...at,...Pe,...bn,modelValue:{required:!0,default:null},val:{},trueValue:{default:!0},falseValue:{default:!1},indeterminateValue:{default:null},toggleOrder:{type:String,validator:e=>"tf"===e||"ft"===e},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},oa=["update:modelValue"];function na(t,o){const{props:n,slots:a,emit:l,proxy:i}=e.getCurrentInstance(),{$q:r}=i,s=lt(n,r),u=e.ref(null),{refocusTargetEl:c,refocusTarget:d}=Jn(n,u),v=Ae(n,ea),p=e.computed(()=>void 0!==n.val&&Array.isArray(n.modelValue)),m=e.computed(()=>!0===p.value?n.modelValue.indexOf(n.val):-1),f=e.computed(()=>!0===p.value?m.value>-1:n.modelValue===n.trueValue),h=e.computed(()=>!0===p.value?-1===m.value:n.modelValue===n.falseValue),g=e.computed(()=>!1===f.value&&!1===h.value),b=e.computed(()=>!0===n.disable?-1:n.tabindex||0),y=e.computed(()=>`q-${t} cursor-pointer no-outline row inline no-wrap items-center`+(!0===n.disable?" disabled":"")+(!0===s.value?` q-${t}--dark`:"")+(!0===n.dense?` q-${t}--dense`:"")+(!0===n.leftLabel?" reverse":"")),w=e.computed(()=>{const e=!0===f.value?"truthy":!0===h.value?"falsy":"indet",o=void 0===n.color||!0!==n.keepColor&&("toggle"===t?!0!==f.value:!0===h.value)?"":` text-${n.color}`;return`q-${t}__inner relative-position non-selectable q-${t}__inner--${e}${o}`}),x=e.computed(()=>{const e={type:"checkbox"};return void 0!==n.name&&Object.assign(e,{checked:f.value,name:n.name,value:!0===p.value?n.val:n.trueValue}),e}),_=wn(x),C=e.computed(()=>{const e={tabindex:b.value,role:"checkbox","aria-label":n.label,"aria-checked":!0===g.value?"mixed":!0===f.value?"true":"false"};return!0===n.disable&&(e["aria-disabled"]="true"),e});function S(e){void 0!==e&&(q(e),d(e)),!0!==n.disable&&l("update:modelValue",k(),e)}function k(){if(!0===p.value){if(!0===f.value){const e=n.modelValue.slice();return e.splice(m.value,1),e}return n.modelValue.concat([n.val])}if(!0===f.value){if("ft"!==n.toggleOrder||!1===n.toggleIndeterminate)return n.falseValue}else{if(!0!==h.value)return"ft"!==n.toggleOrder?n.trueValue:n.falseValue;if("ft"===n.toggleOrder||!1===n.toggleIndeterminate)return n.trueValue}return n.indeterminateValue}function $(e){13!==e.keyCode&&32!==e.keyCode||q(e)}function M(e){13!==e.keyCode&&32!==e.keyCode||S(e)}const T=o(f,g);return Object.assign(i,{toggle:S}),()=>{const o=T();!0!==n.disable&&_(o,"unshift",` q-${t}__native absolute q-ma-none q-pa-none`);const l=[e.h("div",{class:w.value,style:v.value},o)];null!==c.value&&l.push(c.value);const i=void 0!==n.label?Re(a.default,[n.label]):Fe(a.default);return void 0!==i&&l.push(e.h("div",{class:`q-${t}__label q-anchor--skip`},i)),e.h("div",{ref:u,class:y.value,...C.value,onClick:S,onKeydown:$,onKeyup:M},l)}}const aa=e.h("div",{class:"q-checkbox__bg absolute"},[e.h("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24","aria-hidden":"true"},[e.h("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),e.h("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]);var la=e.defineComponent({name:"QCheckbox",props:ta,emits:oa,setup(){return na("checkbox",()=>()=>[aa])}});const ia={xs:8,sm:10,md:14,lg:20,xl:24};var ra=e.defineComponent({name:"QChip",props:{...at,...Pe,dense:Boolean,icon:String,iconRight:String,iconRemove:String,iconSelected:String,label:[String,Number],color:String,textColor:String,modelValue:{type:Boolean,default:!0},selected:{type:Boolean,default:null},square:Boolean,outline:Boolean,clickable:Boolean,removable:Boolean,tabindex:[String,Number],disable:Boolean,ripple:{type:[Boolean,Object],default:!0}},emits:["update:modelValue","update:selected","remove","click"],setup(t,{slots:o,emit:n}){const{proxy:{$q:a}}=e.getCurrentInstance(),l=lt(t,a),i=Ae(t,ia),r=e.computed(()=>!0===t.selected||void 0!==t.icon),s=e.computed(()=>!0===t.selected?t.iconSelected||a.iconSet.chip.selected:t.icon),u=e.computed(()=>t.iconRemove||a.iconSet.chip.remove),c=e.computed(()=>!1===t.disable&&(!0===t.clickable||null!==t.selected)),d=e.computed(()=>{const e=!0===t.outline&&t.color||t.textColor;return"q-chip row inline no-wrap items-center"+(!1===t.outline&&void 0!==t.color?` bg-${t.color}`:"")+(e?` text-${e} q-chip--colored`:"")+(!0===t.disable?" disabled":"")+(!0===t.dense?" q-chip--dense":"")+(!0===t.outline?" q-chip--outline":"")+(!0===t.selected?" q-chip--selected":"")+(!0===c.value?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(!0===t.square?" q-chip--square":"")+(!0===l.value?" q-chip--dark q-dark":"")}),v=e.computed(()=>!0===t.disable?{tabindex:-1,"aria-disabled":"true"}:{tabindex:t.tabindex||0});function p(e){13===e.keyCode&&m(e)}function m(e){t.disable||(n("update:selected",!t.selected),n("click",e))}function f(e){void 0!==e.keyCode&&13!==e.keyCode||(q(e),!1===t.disable&&(n("update:modelValue",!1),n("remove")))}function h(){const n=[];!0===c.value&&n.push(e.h("div",{class:"q-focus-helper"})),!0===r.value&&n.push(e.h(et,{class:"q-chip__icon q-chip__icon--left",name:s.value}));const a=void 0!==t.label?[e.h("div",{class:"ellipsis"},[t.label])]:void 0;return n.push(e.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},Ne(o.default,a))),t.iconRight&&n.push(e.h(et,{class:"q-chip__icon q-chip__icon--right",name:t.iconRight})),!0===t.removable&&n.push(e.h(et,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:u.value,...v.value,onClick:f,onKeyup:f})),n}return()=>{if(!1===t.modelValue)return;const e={class:d.value,style:i.value};return!0===c.value&&Object.assign(e,v.value,{onClick:m,onKeyup:p}),je("div",e,h(),"ripple",!1!==t.ripple&&!0!==t.disable,()=>[[Ft,t.ripple]])}}});const sa={...Pe,min:{type:Number,default:0},max:{type:Number,default:100},color:String,centerColor:String,trackColor:String,fontSize:String,thickness:{type:Number,default:.2,validator:e=>e>=0&&e<=1},angle:{type:Number,default:0},showValue:Boolean,reverse:Boolean,instantFeedback:Boolean},ua=50,ca=2*ua,da=ca*Math.PI,va=Math.round(1e3*da)/1e3;var pa=e.defineComponent({name:"QCircularProgress",props:{...sa,value:{type:Number,default:0},indeterminate:Boolean},setup(t,{slots:o}){const{proxy:{$q:n}}=e.getCurrentInstance(),a=Ae(t),l=e.computed(()=>{const e=(!0===n.lang.rtl?-1:1)*t.angle;return{transform:t.reverse!==(!0===n.lang.rtl)?`scale3d(-1, 1, 1) rotate3d(0, 0, 1, ${-90-e}deg)`:`rotate3d(0, 0, 1, ${e-90}deg)`}}),i=e.computed(()=>!0!==t.instantFeedback&&!0!==t.indeterminate?{transition:"stroke-dashoffset 0.6s ease 0s, stroke 0.6s ease"}:""),r=e.computed(()=>ca/(1-t.thickness/2)),s=e.computed(()=>`${r.value/2} ${r.value/2} ${r.value} ${r.value}`),u=e.computed(()=>xe(t.value,t.min,t.max)),c=e.computed(()=>da*(1-(u.value-t.min)/(t.max-t.min))),d=e.computed(()=>t.thickness/2*r.value);function v({thickness:t,offset:o,color:n,cls:a}){return e.h("circle",{class:"q-circular-progress__"+a+(void 0!==n?` text-${n}`:""),style:i.value,fill:"transparent",stroke:"currentColor","stroke-width":t,"stroke-dasharray":va,"stroke-dashoffset":o,cx:r.value,cy:r.value,r:ua})}return()=>{const n=[];void 0!==t.centerColor&&"transparent"!==t.centerColor&&n.push(e.h("circle",{class:`q-circular-progress__center text-${t.centerColor}`,fill:"currentColor",r:ua-d.value/2,cx:r.value,cy:r.value})),void 0!==t.trackColor&&"transparent"!==t.trackColor&&n.push(v({cls:"track",thickness:d.value,offset:0,color:t.trackColor})),n.push(v({cls:"circle",thickness:d.value,offset:c.value,color:t.color}));const i=[e.h("svg",{class:"q-circular-progress__svg",style:l.value,viewBox:s.value,"aria-hidden":"true"},n)];return!0===t.showValue&&i.push(e.h("div",{class:"q-circular-progress__text absolute-full row flex-center content-center",style:{fontSize:t.fontSize}},void 0!==o.default?o.default():[e.h("div",u.value)])),e.h("div",{class:`q-circular-progress q-circular-progress--${!0===t.indeterminate?"in":""}determinate`,style:a.value,role:"progressbar","aria-valuemin":t.min,"aria-valuemax":t.max,"aria-valuenow":!0===t.indeterminate?void 0:u.value},Ne(o.internal,i))}}});function ma(e,t,o){const n=b(e);let a,l=n.left-t.event.x,i=n.top-t.event.y,r=Math.abs(l),s=Math.abs(i);const u=t.direction;!0===u.horizontal&&!0!==u.vertical?a=l<0?"left":"right":!0!==u.horizontal&&!0===u.vertical?a=i<0?"up":"down":!0===u.up&&i<0?(a="up",r>s&&(!0===u.left&&l<0?a="left":!0===u.right&&l>0&&(a="right"))):!0===u.down&&i>0?(a="down",r>s&&(!0===u.left&&l<0?a="left":!0===u.right&&l>0&&(a="right"))):!0===u.left&&l<0?(a="left",r<s&&(!0===u.up&&i<0?a="up":!0===u.down&&i>0&&(a="down"))):!0===u.right&&l>0&&(a="right",r<s&&(!0===u.up&&i<0?a="up":!0===u.down&&i>0&&(a="down")));let c=!1;if(void 0===a&&!1===o){if(!0===t.event.isFirst||void 0===t.event.lastDir)return{};a=t.event.lastDir,c=!0,"left"===a||"right"===a?(n.left-=l,r=0,l=0):(n.top-=i,s=0,i=0)}return{synthetic:c,payload:{evt:e,touch:!0!==t.event.mouse,mouse:!0===t.event.mouse,position:n,direction:a,isFirst:t.event.isFirst,isFinal:!0===o,duration:Date.now()-t.event.time,distance:{x:r,y:s},offset:{x:l,y:i},delta:{x:n.left-t.event.lastX,y:n.top-t.event.lastY}}}}let fa=0;var ha={name:"touch-pan",beforeMount(e,{value:t,modifiers:o}){if(!0!==o.mouse&&!0!==c.has.touch)return;function n(e,t){!0===o.mouse&&!0===t?q(e):(!0===o.stop&&C(e),!0===o.prevent&&S(e))}const a={uid:"qvtp_"+fa++,handler:t,modifiers:o,direction:Mn(o),noop:m,mouseStart(e){Tn(e,a)&&f(e)&&($(a,"temp",[[document,"mousemove","move","notPassiveCapture"],[document,"mouseup","end","passiveCapture"]]),a.start(e,!0))},touchStart(e){if(console.log("touchStart"),Tn(e,a)){const t=e.target;$(a,"temp",[[t,"touchmove","move","notPassiveCapture"],[t,"touchcancel","end","passiveCapture"],[t,"touchend","end","passiveCapture"]]),a.start(e)}},start(t,n){!0===c.is.firefox&&k(e,!0),a.lastEvt=t;const l=b(t);if(!0===n||!0===o.stop){if(!0!==a.direction.all&&(!0!==n||!0!==a.direction.mouseAllDir)){const e=t.type.indexOf("mouse")>-1?new MouseEvent(t.type,t):new TouchEvent(t.type,t);!0===t.defaultPrevented&&S(e),!0===t.cancelBubble&&C(e),e.qClonedBy=void 0===t.qClonedBy?[a.uid]:t.qClonedBy.concat(a.uid),e.qKeyEvent=t.qKeyEvent,e.qClickOutside=t.qClickOutside,a.initialEvent={target:t.target,event:e}}C(t)}a.event={x:l.left,y:l.top,time:Date.now(),mouse:!0===n,detected:!1,isFirst:!0,isFinal:!1,lastX:l.left,lastY:l.top}},move(e){if(void 0===a.event)return;a.lastEvt=e;const t=!0===a.event.mouse,l=()=>{n(e,t),!0!==o.preserveCursor&&(document.documentElement.style.cursor="grabbing"),!0===t&&document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),Kt(),a.styleCleanup=(e=>{if(a.styleCleanup=void 0,!0!==o.preserveCursor&&(document.documentElement.style.cursor=""),document.body.classList.remove("non-selectable"),!0===t){const t=()=>{document.body.classList.remove("no-pointer-events--children")};void 0!==e?setTimeout(()=>{t(),e()},50):t()}else void 0!==e&&e()})};if(!0===a.event.detected){!0!==a.event.isFirst&&n(e,a.event.mouse);const{payload:t,synthetic:o}=ma(e,a,!1);return void(void 0!==t&&(!1===a.handler(t)?a.end(e):(void 0===a.styleCleanup&&!0===a.event.isFirst&&l(),a.event.lastX=t.position.left,a.event.lastY=t.position.top,a.event.lastDir=!0===o?void 0:t.direction,a.event.isFirst=!1)))}if(!0===a.direction.all||!0===t&&!0===a.modifiers.mouseAllDir)return l(),a.event.detected=!0,void a.move(e);const i=b(e),r=i.left-a.event.x,s=i.top-a.event.y,u=Math.abs(r),c=Math.abs(s);u!==c&&(!0===a.direction.horizontal&&u>c||!0===a.direction.vertical&&u<c||!0===a.direction.up&&u<c&&s<0||!0===a.direction.down&&u<c&&s>0||!0===a.direction.left&&u>c&&r<0||!0===a.direction.right&&u>c&&r>0?(a.event.detected=!0,a.move(e)):a.end(e,!0))},end(t,o){if(void 0!==a.event){if(M(a,"temp"),!0===c.is.firefox&&k(e,!1),!0===o)void 0!==a.styleCleanup&&a.styleCleanup(),!0!==a.event.detected&&void 0!==a.initialEvent&&a.initialEvent.target.dispatchEvent(a.initialEvent.event);else if(!0===a.event.detected){!0===a.event.isFirst&&a.handler(ma(void 0===t?a.lastEvt:t,a).payload);const{payload:e}=ma(void 0===t?a.lastEvt:t,a,!0),o=()=>{a.handler(e)};void 0!==a.styleCleanup?a.styleCleanup(o):o()}a.event=void 0,a.initialEvent=void 0,a.lastEvt=void 0}}};e.__qtouchpan=a,!0===o.mouse&&$(a,"main",[[e,"mousedown","mouseStart",`passive${!0===o.mouseCapture?"Capture":""}`]]),!0===c.has.touch&&$(a,"main",[[e,"touchstart","touchStart",`passive${!0===o.capture?"Capture":""}`],[e,"touchmove","noop","notPassiveCapture"]])},updated(e,t){const o=e.__qtouchpan;void 0!==o&&(t.oldValue!==t.value&&("function"!==typeof value&&o.end(),o.handler=t.value),o.direction=Mn(t.modifiers))},beforeUnmount(e){const t=e.__qtouchpan;void 0!==t&&(void 0!==t.event&&t.end(),M(t,"main"),M(t,"temp"),!0===c.is.firefox&&k(e,!1),void 0!==t.styleCleanup&&t.styleCleanup(),delete e.__qtouchpan)}};const ga=[34,37,40,33,39,38];function ba(e,t,o,n){const a=b(e),l=xe(!0===n?(a.top-t.top)/t.height:(a.left-t.left)/t.width,0,1);return!0===o?1-l:l}function ya(e,t,o,n,a){let l=t+e*(o-t);if(n>0){const e=(l-t)%n;l+=(Math.abs(e)>=n/2?(e<0?-1:1)*n:0)-e}return a>0&&(l=parseFloat(l.toFixed(a))),xe(l,t,o)}const wa={...at,min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1,validator:e=>e>=0},color:String,labelColor:String,labelTextColor:String,dense:Boolean,label:Boolean,labelAlways:Boolean,markers:Boolean,snap:Boolean,vertical:Boolean,reverse:Boolean,disable:Boolean,readonly:Boolean,tabindex:[String,Number],thumbPath:{type:String,default:"M 4, 10 a 6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"}},xa=["pan","update:modelValue","change"];function _a({updateValue:t,updatePosition:o,getDragging:n}){const{props:a,emit:l,proxy:{$q:i}}=e.getCurrentInstance(),r=lt(a,i),s=e.ref(!1),u=e.ref(!1),c=e.ref(!1),d=e.ref(!1),v=e.computed(()=>!0===a.vertical?"--v":"--h"),p=e.computed(()=>!0===a.vertical?!0===a.reverse:a.reverse!==(!0===i.lang.rtl)),m=e.computed(()=>!0!==a.disable&&!0!==a.readonly&&a.min<a.max),f=e.computed(()=>`q-slider q-slider${v.value} q-slider--${!0===s.value?"":"in"}active`+(!0===p.value?" q-slider--reversed":"")+(void 0!==a.color?` text-${a.color}`:"")+(!0===a.disable?" disabled":" q-slider--enabled"+(!0===m.value?" q-slider--editable":""))+("both"===c.value?" q-slider--focus":"")+(a.label||!0===a.labelAlways?" q-slider--label":"")+(!0===a.labelAlways?" q-slider--label-always":"")+(!0===r.value?" q-slider--dark":"")+(!0===a.dense?" q-slider--dense q-slider--dense"+v.value:"")),h=e.computed(()=>(String(a.step).trim("0").split(".")[1]||"").length),g=e.computed(()=>0===a.step?1:a.step),b=e.computed(()=>a.max-a.min),y=e.computed(()=>{if(0!==b.value){const e=100*g.value/b.value;return{backgroundSize:!0===a.vertical?`2px ${e}%`:`${e}% 2px`}}return null}),w=e.computed(()=>!0===m.value?a.tabindex||0:-1),x=e.computed(()=>!0===a.vertical?!0===p.value?"bottom":"top":!0===p.value?"right":"left"),_=e.computed(()=>!0===a.vertical?"height":"width"),C=e.computed(()=>!0===a.vertical?"vertical":"horizontal"),S=e.computed(()=>{const e={role:"slider","aria-valuemin":a.min,"aria-valuemax":a.max,"aria-orientation":C.value,"data-step":a.step};return!0===a.disable?e["aria-disabled"]="true":!0===a.readonly&&(e["aria-readonly"]="true"),e}),q=e.computed(()=>{return[[ha,M,void 0,{[C.value]:!0,prevent:!0,stop:!0,mouse:!0,mouseAllDir:!0}]]});function k(){return e.h("svg",{class:"q-slider__thumb absolute",viewBox:"0 0 20 20",width:"20",height:"20","aria-hidden":"true"},[e.h("path",{d:a.thumbPath})])}function $(e,t){if(!0===a.vertical)return{};const o=`${Math.ceil(20*Math.abs(.5-t))}px`;return{pin:{transformOrigin:`${!0===i.lang.rtl?o:`calc(100% - ${o})`} 50%`},pinTextContainer:{[!0===i.lang.rtl?"left":"right"]:`${100*e}%`,transform:`translateX(${Math.ceil(20*(!0===i.lang.rtl?-1:1)*e)}px)`}}}function M(e){e.isFinal?(void 0!==d.value&&(o(e.evt),!0===e.touch&&t(!0),d.value=void 0,l("pan","end")),s.value=!1):e.isFirst?(d.value=n(e.evt),o(e.evt),t(),s.value=!0,l("pan","start")):(o(e.evt),t())}function T(){c.value=!1}function B(e){o(e,n(e)),t(),u.value=!0,s.value=!0,document.addEventListener("mouseup",O,!0)}function O(){u.value=!1,void 0===d.value&&(s.value=!1),t(!0),T(),document.removeEventListener("mouseup",O,!0)}function V(e){o(e,n(e)),t(!0)}function z(e){ga.includes(e.keyCode)&&t(!0)}return e.onBeforeUnmount(()=>{document.removeEventListener("mouseup",O,!0)}),{state:{active:s,focus:c,preventFocus:u,dragging:d,axis:v,isReversed:p,editable:m,classes:f,decimals:h,step:g,minMaxDiff:b,markerStyle:y,tabindex:w,positionProp:x,sizeProp:_,attributes:S,panDirective:q},methods:{onActivate:B,onMobileClick:V,onBlur:T,onKeyup:z,getThumbSvg:k,getPinStyle:$}}}var Ca=e.defineComponent({name:"QSlider",props:{...wa,...bn,modelValue:{required:!0,default:null,validator:e=>"number"===typeof e||null===e},labelValue:[String,Number]},emits:xa,setup(t,{emit:o}){const{proxy:{$q:n}}=e.getCurrentInstance(),a=yn(t),l=wn(a),i=e.ref(null),r=e.ref(null===t.modelValue?t.min:t.modelValue),s=e.ref(0),{state:u,methods:c}=_a({updateValue:x,updatePosition:C,getDragging:_}),d=e.computed(()=>0===u.minMaxDiff.value?0:(r.value-t.min)/u.minMaxDiff.value),v=e.computed(()=>!0===u.active.value?s.value:d.value),p=e.computed(()=>({[u.positionProp.value]:0,[u.sizeProp.value]:`${100*v.value}%`})),m=e.computed(()=>({[u.positionProp.value]:`${100*v.value}%`})),f=e.computed(()=>!1===u.preventFocus.value&&!0===u.focus.value?" q-slider--focus":""),h=e.computed(()=>void 0!==t.labelColor?`text-${t.labelColor}`:""),g=e.computed(()=>"q-slider__pin-value-marker-text"+(void 0!==t.labelTextColor?` text-${t.labelTextColor}`:"")),b=e.computed(()=>{return!0!==u.editable.value?{}:!0===n.platform.is.mobile?{onClick:c.onMobileClick}:{onMousedown:c.onActivate,onFocus:S,onBlur:c.onBlur,onKeydown:k,onKeyup:c.onKeyup}}),y=e.computed(()=>void 0!==t.labelValue?t.labelValue:r.value),w=e.computed(()=>{const e=!0===t.reverse?-v.value:v.value-1;return c.getPinStyle(e,v.value)});function x(e){r.value!==t.modelValue&&o("update:modelValue",r.value),!0===e&&o("change",r.value)}function _(){return i.value.getBoundingClientRect()}function C(e,o=u.dragging.value){const n=ba(e,o,u.isReversed.value,t.vertical);r.value=ya(n,t.min,t.max,t.step,u.decimals.value),s.value=!0!==t.snap||0===t.step?n:0===u.minMaxDiff.value?0:(r.value-t.min)/u.minMaxDiff.value}function S(){u.focus.value=!0}function k(e){if(!ga.includes(e.keyCode))return;q(e);const o=([34,33].includes(e.keyCode)?10:1)*u.step.value,n=[34,37,40].includes(e.keyCode)?-o:o;r.value=xe(parseFloat((r.value+n).toFixed(u.decimals.value)),t.min,t.max),x()}return e.watch(()=>t.modelValue,e=>{r.value=null===e?0:xe(e,t.min,t.max)}),e.watch(()=>t.min+t.max,()=>{r.value=xe(r.value,t.min,t.max)}),()=>{const o=[c.getThumbSvg(),e.h("div",{class:"q-slider__focus-ring"})];!0!==t.label&&!0!==t.labelAlways||o.push(e.h("div",{class:`q-slider__pin q-slider__pin${u.axis.value} absolute `+h.value,style:w.value.pin},[e.h("div",{class:`q-slider__pin-text-container q-slider__pin-text-container${u.axis.value}`,style:w.value.pinTextContainer},[e.h("span",{class:"q-slider__pin-text "+g.value},[y.value])])]),e.h("div",{class:`q-slider__arrow q-slider__arrow${u.axis.value} ${h.value}`})),void 0!==t.name&&!0!==t.disable&&l(o,"push");const n=[e.h("div",{class:`q-slider__track q-slider__track${u.axis.value} absolute`,style:p.value})];!0===t.markers&&n.push(e.h("div",{class:`q-slider__track-markers q-slider__track-markers${u.axis.value} absolute-full fit`,style:u.markerStyle.value}));const a=[e.h("div",{class:`q-slider__track-container q-slider__track-container${u.axis.value} absolute`},n),e.h("div",{class:`q-slider__thumb-container q-slider__thumb-container${u.axis.value} absolute non-selectable`+f.value,style:m.value},o)],r={ref:i,class:u.classes.value+(null===t.modelValue?" q-slider--no-value":""),...u.attributes.value,"aria-valuenow":t.modelValue,tabindex:u.tabindex.value,...b.value};return je("div",r,a,"slide",u.editable.value,()=>u.panDirective.value)}}});function Sa(){const o=e.ref(!t.value);return!1===o.value&&e.onMounted(()=>{o.value=!0}),o}const qa="undefined"!==typeof ResizeObserver,ka=!0===qa?{}:{style:"display:block;position:absolute;top:0;left:0;right:0;bottom:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1;",url:"about:blank"};var $a=e.defineComponent({name:"QResizeObserver",props:{debounce:{type:[String,Number],default:100}},emits:["resize"],setup(t,{emit:o}){let n,a,l={width:-1,height:-1};function i(e){!0===e||0===t.debounce||"0"===t.debounce?r():n||(n=setTimeout(r,t.debounce))}function r(){if(n=void 0,a){const{offsetWidth:e,offsetHeight:t}=a;e===l.width&&t===l.height||(l={width:e,height:t},o("resize",l))}}const s=e.getCurrentInstance();if(Object.assign(s.proxy,{trigger:i}),!0===qa){let t;return e.onMounted(()=>{e.nextTick(()=>{a=s.proxy.$el.parentNode,a&&(t=new ResizeObserver(i),t.observe(a),r())})}),e.onBeforeUnmount(()=>{clearTimeout(n),void 0!==t&&(void 0!==t.disconnect?t.disconnect():a&&t.unobserve(a))}),m}{const t=Sa();let o;function u(){clearTimeout(n),void 0!==o&&(void 0!==o.removeEventListener&&o.removeEventListener("resize",i,p.passive),o=void 0)}function c(){u(),a&&a.contentDocument&&(o=a.contentDocument.defaultView,o.addEventListener("resize",i,p.passive),r())}return e.onMounted(()=>{e.nextTick(()=>{a=s.proxy.$el,a&&c()})}),e.onBeforeUnmount(u),()=>{if(!0===t.value)return e.h("object",{style:ka.style,tabindex:-1,type:"text/html",data:ka.url,"aria-hidden":"true",onLoad:c})}}}});function Ma(e,t,o){const n=!0===o?["left","right"]:["top","bottom"];return`absolute-${!0===t?n[0]:n[1]}${e?` text-${e}`:""}`}const Ta=["left","center","right","justify"];var Ba=e.defineComponent({name:"QTabs",props:{modelValue:[Number,String],align:{type:String,default:"center",validator:e=>Ta.includes(e)},breakpoint:{type:[String,Number],default:600},vertical:Boolean,shrink:Boolean,stretch:Boolean,activeColor:String,activeBgColor:String,indicatorColor:String,leftIcon:String,rightIcon:String,outsideArrows:Boolean,mobileArrows:Boolean,switchIndicator:Boolean,narrowIndicator:Boolean,inlineLabel:Boolean,noCaps:Boolean,dense:Boolean,contentClass:String,"onUpdate:modelValue":Function},setup(t,{slots:o,emit:n}){const a=e.getCurrentInstance(),{proxy:{$q:l}}=a,{registerTick:i,prepareTick:r}=_o(),{registerTimeout:s}=Co(),u=e.ref(null),c=e.ref(null),d=e.ref(t.modelValue),v=e.ref(!1),p=e.ref(!0),f=e.ref(!1),h=e.ref(!1),g=e.computed(()=>!0===l.platform.is.desktop||!0===t.mobileArrows),b=[];let y,w,x,_=!1,C=!0===g.value?z:m;const S=e.computed(()=>({activeColor:t.activeColor,activeBgColor:t.activeBgColor,indicatorClass:Ma(t.indicatorColor,t.switchIndicator,t.vertical),narrowIndicator:t.narrowIndicator,inlineLabel:t.inlineLabel,noCaps:t.noCaps})),q=e.computed(()=>{const e=!0===v.value?"left":!0===h.value?"justify":t.align;return`q-tabs__content--align-${e}`}),k=e.computed(()=>"q-tabs row no-wrap items-center"+` q-tabs--${!0===v.value?"":"not-"}scrollable`+` q-tabs--${!0===t.vertical?"vertical":"horizontal"}`+` q-tabs__arrows--${!0===g.value&&!0===t.outsideArrows?"outside":"inside"}`+(!0===t.dense?" q-tabs--dense":"")+(!0===t.shrink?" col-shrink":"")+(!0===t.stretch?" self-stretch":"")),$=e.computed(()=>"q-tabs__content row no-wrap items-center self-stretch hide-scrollbar "+q.value+(void 0!==t.contentClass?` ${t.contentClass}`:"")+(!0===l.platform.is.mobile?" scroll":"")),M=e.computed(()=>!0===t.vertical?{container:"height",content:"offsetHeight",scroll:"scrollHeight"}:{container:"width",content:"offsetWidth",scroll:"scrollWidth"});function T({name:e,setCurrent:o,skipEmit:a,fromRoute:l}){d.value!==e&&(!0!==a&&n("update:modelValue",e),!0!==o&&void 0!==t["onUpdate:modelValue"]||(V(d.value,e),d.value=e)),void 0!==l&&(_=l)}function B(){i(()=>{!0!==a.isDeactivated&&!0!==a.isUnmounted&&O({width:u.value.offsetWidth,height:u.value.offsetHeight})}),r()}function O(o){if(void 0===M.value||null===c.value)return;const n=o[M.value.container],a=Math.min(c.value[M.value.scroll],Array.prototype.reduce.call(c.value.children,(e,t)=>e+t[M.value.content],0)),l=n>0&&a>n;v.value!==l&&(v.value=l),!0===l&&e.nextTick(C);const i=n<parseInt(t.breakpoint,10);h.value!==i&&(h.value=i)}function V(o,n){const a=void 0!==o&&null!==o&&""!==o?b.find(e=>e.name.value===o):null,l=void 0!==n&&null!==n&&""!==n?b.find(e=>e.name.value===n):null;if(a&&l){const o=a.tabIndicatorRef.value,n=l.tabIndicatorRef.value;clearTimeout(y),o.style.transition="none",o.style.transform="none",n.style.transition="none",n.style.transform="none";const i=o.getBoundingClientRect(),r=n.getBoundingClientRect();n.style.transform=!0===t.vertical?`translate3d(0,${i.top-r.top}px,0) scale3d(1,${r.height?i.height/r.height:1},1)`:`translate3d(${i.left-r.left}px,0,0) scale3d(${r.width?i.width/r.width:1},1,1)`,e.nextTick(()=>{y=setTimeout(()=>{n.style.transition="transform .25s cubic-bezier(.4, 0, .2, 1)",n.style.transform="none"},70)})}if(l&&!0===v.value){const{left:e,width:o,top:n,height:a}=c.value.getBoundingClientRect(),i=l.rootRef.value.getBoundingClientRect();let r=!0===t.vertical?i.top-n:i.left-e;if(r<0)return c.value[!0===t.vertical?"scrollTop":"scrollLeft"]+=Math.floor(r),void C();r+=!0===t.vertical?i.height-a:i.width-o,r>0&&(c.value[!0===t.vertical?"scrollTop":"scrollLeft"]+=Math.ceil(r),C())}}function z(){const e=c.value;if(null!==e){const o=e.getBoundingClientRect(),n=!0===t.vertical?e.scrollTop:e.scrollLeft;p.value=n>0,f.value=!0===t.vertical?Math.ceil(n+o.height)<e.scrollHeight:Math.ceil(n+o.width)<e.scrollWidth}}function L(e){A(),F(e),w=setInterval(()=>{F(e)&&A()},5)}function E(){L(0)}function P(){L(9999)}function A(){clearInterval(w)}function F(e){const o=c.value;let n=!0===t.vertical?o.scrollTop:o.scrollLeft,a=!1;const l=e<n?-1:1;return n+=5*l,n<0?(a=!0,n=0):(-1===l&&n<=e||1===l&&n>=e)&&(a=!0,n=e),o[!0===t.vertical?"scrollTop":"scrollLeft"]=n,C(),a}function I(){return b.filter(e=>void 0!==e.routerProps&&!0===e.routerProps.hasLink.value)}function R(){let e="",t=null,o=_;I().forEach(n=>{void 0!==n.routerProps&&!0===n.routerProps[!0===n.routerProps.exact.value?"linkIsExactActive":"linkIsActive"].value&&n.routerProps.linkRoute.value.href.length>e.length?(e=n.routerProps.linkRoute.value.href,t=n.name.value):d.value===n.name.value&&(o=!0)}),!0!==o&&null===t||T({name:t,setCurrent:!0,fromRoute:!0})}function N(){s(R)}function j(t){b.push(t);const o=I();o.length>0&&(void 0===x&&(x=e.watch(()=>a.proxy.$route,N)),N())}function D(e){if(b.splice(b.indexOf(e),1),void 0!==x){const e=I();0===e.length&&(x(),x=void 0),N()}}return e.watch(()=>t.modelValue,e=>{T({name:e,setCurrent:!0,skipEmit:!0})}),e.watch(()=>t.outsideArrows,()=>{e.nextTick(B())}),e.watch(g,t=>{C=!0===t?z:m,e.nextTick(B())}),e.provide(se,{currentModel:d,tabProps:S,registerTab:j,unregisterTab:D,verifyRouteModel:N,updateModel:T,recalculateScroll:B}),e.onBeforeUnmount(()=>{clearTimeout(y),void 0!==x&&x()}),e.onActivated(B),()=>{const n=[e.h($a,{onResize:O}),e.h("div",{ref:c,class:$.value,onScroll:C},Fe(o.default))];return!0===g.value&&n.push(e.h(et,{class:"q-tabs__arrow q-tabs__arrow--left absolute q-tab__icon"+(!0===p.value?"":" q-tabs__arrow--faded"),name:t.leftIcon||l.iconSet.tabs[!0===t.vertical?"up":"left"],onMousedown:E,onTouchstartPassive:E,onMouseup:A,onMouseleave:A,onTouchend:A}),e.h(et,{class:"q-tabs__arrow q-tabs__arrow--right absolute q-tab__icon"+(!0===f.value?"":" q-tabs__arrow--faded"),name:t.rightIcon||l.iconSet.tabs[!0===t.vertical?"down":"right"],onMousedown:P,onTouchstartPassive:P,onMouseup:A,onMouseleave:A,onTouchend:A})),e.h("div",{ref:u,class:k.value,role:"tablist"},n)}}});let Oa=0;const Va=["click","keyup"],za={icon:String,label:[Number,String],alert:[Boolean,String],alertIcon:String,name:{type:[Number,String],default:()=>`t_${Oa++}`},noCaps:Boolean,tabindex:[String,Number],disable:Boolean,contentClass:String,ripple:{type:[Boolean,Object],default:!0}};function La(t,o,n,a){const l=e.inject(se,()=>{console.error("QTab/QRouteTab component needs to be child of QTabs")}),i=e.ref(null),r=e.ref(null),s=e.ref(null),u=e.computed(()=>l.currentModel.value===t.name),c=e.computed(()=>"q-tab relative-position self-stretch flex flex-center text-center"+` q-tab--${!0===u.value?"":"in"}active`+(!0===u.value?(l.tabProps.value.activeColor?` text-${l.tabProps.value.activeColor}`:"")+(l.tabProps.value.activeBgColor?` bg-${l.tabProps.value.activeBgColor}`:""):"")+(t.icon&&t.label&&!1===l.tabProps.value.inlineLabel?" q-tab--full":"")+(!0===t.noCaps||!0===l.tabProps.value.noCaps?" q-tab--no-caps":"")+(!0===t.disable?" disabled":" q-focusable q-hoverable cursor-pointer")+(void 0!==a&&""!==a.linkClass.value?` ${a.linkClass.value}`:"")),d=e.computed(()=>"q-tab__content self-stretch flex-center relative-position q-anchor--skip non-selectable "+(!0===l.tabProps.value.inlineLabel?"row no-wrap q-tab__content--inline":"column")+(void 0!==t.contentClass?` ${t.contentClass}`:"")),v=e.computed(()=>!0===t.disable||!0===u.value?-1:t.tabindex||0);function p(e,o){if(!0!==o&&null!==i.value&&i.value.focus(),!0!==t.disable)if(void 0!==a)if(!0===a.hasLink.value){const t=()=>{e.__qNavigate=!0,a.navigateToLink(e)};n("click",e,t),!0!==e.defaultPrevented&&t()}else n("click",e);else n("click",e),l.updateModel({name:t.name,fromRoute:!1})}function m(e){!0===W(e,13)&&p(e,!0),n("keyup",e)}function f(){const n=l.tabProps.value.narrowIndicator,a=[],r=e.h("div",{ref:s,class:["q-tab__indicator",l.tabProps.value.indicatorClass]});void 0!==t.icon&&a.push(e.h(et,{class:"q-tab__icon",name:t.icon})),void 0!==t.label&&a.push(e.h("div",{class:"q-tab__label"},t.label)),!1!==t.alert&&a.push(void 0!==t.alertIcon?e.h(et,{class:"q-tab__alert-icon",color:!0!==t.alert?t.alert:void 0,name:t.alertIcon}):e.h("div",{class:"q-tab__alert"+(!0!==t.alert?` text-${t.alert}`:"")})),!0===n&&a.push(r);const u=[e.h("div",{class:"q-focus-helper",tabindex:-1,ref:i}),e.h("div",{class:d.value},Re(o.default,a))];return!1===n&&u.push(r),u}const h={name:e.computed(()=>t.name),rootRef:r,tabIndicatorRef:s,routerProps:a};function g(e,o){const n={ref:r,class:c.value,tabindex:v.value,role:"tab","aria-selected":u.value,"aria-disabled":!0===t.disable?"true":void 0,onClick:p,onKeyup:m,...o};return je(e,n,f(),"main",!1!==t.ripple&&!1===t.disable,()=>[[Ft,t.ripple]])}return e.onBeforeUnmount(()=>{l.unregisterTab(h),l.recalculateScroll()}),e.onMounted(()=>{l.registerTab(h),l.recalculateScroll()}),{renderTab:g,$tabs:l}}var Ea=e.defineComponent({name:"QTab",props:za,emits:Va,setup(e,{slots:t,emit:o}){const{renderTab:n}=La(e,t,o);return()=>n("div")}}),Pa=e.defineComponent({name:"QTabPanels",props:{...En,...at},emits:Pn,setup(t,{slots:o}){const n=e.getCurrentInstance(),a=lt(t,n.proxy.$q),{updatePanelsList:l,getPanelContent:i,panelDirectives:r}=An(),s=e.computed(()=>"q-tab-panels q-panel-parent"+(!0===a.value?" q-tab-panels--dark q-dark":""));return()=>{return l(o),je("div",{class:s.value},i(),"pan",t.swipeable,()=>r.value)}}}),Aa=e.defineComponent({name:"QTabPanel",props:zn,setup(t,{slots:o}){return()=>e.h("div",{class:"q-tab-panel"},Fe(o.default))}});const Fa=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,Ia=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,Ra=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,Na=/^rgb\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5])\)$/,ja=/^rgba\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/,Da={date:e=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(e),time:e=>/^([0-1]?\d|2[0-3]):[0-5]\d$/.test(e),fulltime:e=>/^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(e),timeOrFulltime:e=>/^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/.test(e),hexColor:e=>Fa.test(e),hexaColor:e=>Ia.test(e),hexOrHexaColor:e=>Ra.test(e),rgbColor:e=>Na.test(e),rgbaColor:e=>ja.test(e),rgbOrRgbaColor:e=>Na.test(e)||ja.test(e),hexOrRgbColor:e=>Fa.test(e)||Na.test(e),hexaOrRgbaColor:e=>Ia.test(e)||ja.test(e),anyColor:e=>Ra.test(e)||Na.test(e)||ja.test(e)};var Ha={testPattern:Da};const Qa=/^rgb(a)?\((\d{1,3}),(\d{1,3}),(\d{1,3}),?([01]?\.?\d*?)?\)$/;function Ua({r:e,g:t,b:o,a:n}){const a=void 0!==n;if(e=Math.round(e),t=Math.round(t),o=Math.round(o),e>255||t>255||o>255||a&&n>100)throw new TypeError("Expected 3 numbers below 256 (and optionally one below 100)");return n=a?(256|Math.round(255*n/100)).toString(16).slice(1):"","#"+(o|t<<8|e<<16|1<<24).toString(16).slice(1)+n}function Wa({r:e,g:t,b:o,a:n}){return`rgb${void 0!==n?"a":""}(${e},${t},${o}${void 0!==n?","+n/100:""})`}function Ya(e){if("string"!==typeof e)throw new TypeError("Expected a string");e=e.replace(/^#/,""),3===e.length?e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]:4===e.length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);const t=parseInt(e,16);return e.length>6?{r:t>>24&255,g:t>>16&255,b:t>>8&255,a:Math.round((255&t)/2.55)}:{r:t>>16,g:t>>8&255,b:255&t}}function Ka({h:e,s:t,v:o,a:n}){let a,l,i;t/=100,o/=100,e/=360;const r=Math.floor(6*e),s=6*e-r,u=o*(1-t),c=o*(1-s*t),d=o*(1-(1-s)*t);switch(r%6){case 0:a=o,l=d,i=u;break;case 1:a=c,l=o,i=u;break;case 2:a=u,l=o,i=d;break;case 3:a=u,l=c,i=o;break;case 4:a=d,l=u,i=o;break;case 5:a=o,l=u,i=c;break}return{r:Math.round(255*a),g:Math.round(255*l),b:Math.round(255*i),a:n}}function Xa({r:e,g:t,b:o,a:n}){const a=Math.max(e,t,o),l=Math.min(e,t,o),i=a-l,r=0===a?0:i/a,s=a/255;let u;switch(a){case l:u=0;break;case e:u=t-o+i*(t<o?6:0),u/=6*i;break;case t:u=o-e+2*i,u/=6*i;break;case o:u=e-t+4*i,u/=6*i;break}return{h:Math.round(360*u),s:Math.round(100*r),v:Math.round(100*s),a:n}}function Za(e){if("string"!==typeof e)throw new TypeError("Expected a string");const t=e.replace(/ /g,""),o=Qa.exec(t);if(null===o)return Ya(t);const n={r:Math.min(255,parseInt(o[2],10)),g:Math.min(255,parseInt(o[3],10)),b:Math.min(255,parseInt(o[4],10))};if(o[1]){const e=parseFloat(o[5]);n.a=100*Math.min(1,!0===isNaN(e)?1:e)}return n}function Ga(e,t){if("string"!==typeof e)throw new TypeError("Expected a string as color");if("number"!==typeof t)throw new TypeError("Expected a numeric percent");const o=Za(e),n=t<0?0:255,a=Math.abs(t)/100,l=o.r,i=o.g,r=o.b;return"#"+(16777216+65536*(Math.round((n-l)*a)+l)+256*(Math.round((n-i)*a)+i)+(Math.round((n-r)*a)+r)).toString(16).slice(1)}function Ja(e){if("string"!==typeof e&&(!e||void 0===e.r))throw new TypeError("Expected a string or a {r, g, b} object as color");const t="string"===typeof e?Za(e):e,o=t.r/255,n=t.g/255,a=t.b/255,l=o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4),i=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4),r=a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4);return.2126*l+.7152*i+.0722*r}function el(e){if("string"!==typeof e&&(!e||void 0===e.r))throw new TypeError("Expected a string or a {r, g, b} object as color");const t="string"===typeof e?Za(e):e;return(299*t.r+587*t.g+114*t.b)/1e3}function tl(e,t){if("string"!==typeof e&&(!e||void 0===e.r))throw new TypeError("Expected a string or a {r, g, b[, a]} object as fgColor");if("string"!==typeof t&&(!t||void 0===t.r))throw new TypeError("Expected a string or a {r, g, b[, a]} object as bgColor");const o="string"===typeof e?Za(e):e,n=o.r/255,a=o.g/255,l=o.b/255,i=void 0!==o.a?o.a/100:1,r="string"===typeof t?Za(t):t,s=r.r/255,u=r.g/255,c=r.b/255,d=void 0!==r.a?r.a/100:1,v=i+d*(1-i),p=Math.round((n*i+s*d*(1-i))/v*255),m=Math.round((a*i+u*d*(1-i))/v*255),f=Math.round((l*i+c*d*(1-i))/v*255),h={r:p,g:m,b:f,a:Math.round(100*v)};return"string"===typeof e?Ua(h):h}function ol(e,t){if("string"!==typeof e)throw new TypeError("Expected a string as color");if(void 0===t||t<-1||t>1)throw new TypeError("Expected offset to be between -1 and 1");const{r:o,g:n,b:a,a:l}=Za(e),i=void 0!==l?l/100:0;return Ua({r:o,g:n,b:a,a:Math.round(100*Math.min(1,Math.max(0,i+t)))})}function nl(e){if("string"!==typeof e)throw new TypeError("Expected a string as color");const t=document.createElement("div");t.className=`text-${e} invisible fixed no-pointer-events`,document.body.appendChild(t);const o=getComputedStyle(t).getPropertyValue("color");return t.remove(),Ua(Za(o))}var al={rgbToHex:Ua,hexToRgb:Ya,hsvToRgb:Ka,rgbToHsv:Xa,textToRgb:Za,lighten:Ga,luminosity:Ja,brightness:el,blend:tl,changeAlpha:ol,getPaletteColor:nl};const ll=["rgb(255,204,204)","rgb(255,230,204)","rgb(255,255,204)","rgb(204,255,204)","rgb(204,255,230)","rgb(204,255,255)","rgb(204,230,255)","rgb(204,204,255)","rgb(230,204,255)","rgb(255,204,255)","rgb(255,153,153)","rgb(255,204,153)","rgb(255,255,153)","rgb(153,255,153)","rgb(153,255,204)","rgb(153,255,255)","rgb(153,204,255)","rgb(153,153,255)","rgb(204,153,255)","rgb(255,153,255)","rgb(255,102,102)","rgb(255,179,102)","rgb(255,255,102)","rgb(102,255,102)","rgb(102,255,179)","rgb(102,255,255)","rgb(102,179,255)","rgb(102,102,255)","rgb(179,102,255)","rgb(255,102,255)","rgb(255,51,51)","rgb(255,153,51)","rgb(255,255,51)","rgb(51,255,51)","rgb(51,255,153)","rgb(51,255,255)","rgb(51,153,255)","rgb(51,51,255)","rgb(153,51,255)","rgb(255,51,255)","rgb(255,0,0)","rgb(255,128,0)","rgb(255,255,0)","rgb(0,255,0)","rgb(0,255,128)","rgb(0,255,255)","rgb(0,128,255)","rgb(0,0,255)","rgb(128,0,255)","rgb(255,0,255)","rgb(245,0,0)","rgb(245,123,0)","rgb(245,245,0)","rgb(0,245,0)","rgb(0,245,123)","rgb(0,245,245)","rgb(0,123,245)","rgb(0,0,245)","rgb(123,0,245)","rgb(245,0,245)","rgb(214,0,0)","rgb(214,108,0)","rgb(214,214,0)","rgb(0,214,0)","rgb(0,214,108)","rgb(0,214,214)","rgb(0,108,214)","rgb(0,0,214)","rgb(108,0,214)","rgb(214,0,214)","rgb(163,0,0)","rgb(163,82,0)","rgb(163,163,0)","rgb(0,163,0)","rgb(0,163,82)","rgb(0,163,163)","rgb(0,82,163)","rgb(0,0,163)","rgb(82,0,163)","rgb(163,0,163)","rgb(92,0,0)","rgb(92,46,0)","rgb(92,92,0)","rgb(0,92,0)","rgb(0,92,46)","rgb(0,92,92)","rgb(0,46,92)","rgb(0,0,92)","rgb(46,0,92)","rgb(92,0,92)","rgb(255,255,255)","rgb(205,205,205)","rgb(178,178,178)","rgb(153,153,153)","rgb(127,127,127)","rgb(102,102,102)","rgb(76,76,76)","rgb(51,51,51)","rgb(25,25,25)","rgb(0,0,0)"],il="M5 5 h10 v10 h-10 v-10 z";var rl=e.defineComponent({name:"QColor",props:{...at,...bn,modelValue:String,defaultValue:String,defaultView:{type:String,default:"spectrum",validator:e=>["spectrum","tune","palette"].includes(e)},formatModel:{type:String,default:"auto",validator:e=>["auto","hex","rgb","hexa","rgba"].includes(e)},palette:Array,noHeader:Boolean,noFooter:Boolean,square:Boolean,flat:Boolean,bordered:Boolean,disable:Boolean,readonly:Boolean},emits:["update:modelValue","change"],setup(t,{emit:o}){const{proxy:n}=e.getCurrentInstance(),{$q:a}=n,l=lt(t,a),{getCache:i}=Vn(),r=e.ref(null),s=e.ref(null),u=e.computed(()=>"auto"===t.formatModel?null:t.formatModel.indexOf("hex")>-1),c=e.computed(()=>"auto"===t.formatModel?null:t.formatModel.indexOf("a")>-1),d=e.ref("auto"===t.formatModel?void 0===t.modelValue||null===t.modelValue||""===t.modelValue||t.modelValue.startsWith("#")?"hex":"rgb":t.formatModel.startsWith("hex")?"hex":"rgb"),v=e.ref(t.defaultView),p=e.ref(B(t.modelValue||t.defaultValue)),m=e.computed(()=>!0!==t.disable&&!0!==t.readonly),f=e.computed(()=>void 0===t.modelValue||null===t.modelValue||""===t.modelValue||t.modelValue.startsWith("#")),h=e.computed(()=>null!==u.value?u.value:f.value),g=e.computed(()=>({type:"hidden",name:t.name,value:p.value[!0===h.value?"hex":"rgb"]})),b=wn(g),y=e.computed(()=>null!==c.value?c.value:void 0!==p.value.a),w=e.computed(()=>({backgroundColor:p.value.rgb||"#000"})),x=e.computed(()=>{const e=void 0!==p.value.a&&p.value.a<65||Ja(p.value)>.4;return"q-color-picker__header-content absolute-full"+` q-color-picker__header-content--${e?"light":"dark"}`}),_=e.computed(()=>({background:`hsl(${p.value.h},100%,50%)`})),S=e.computed(()=>({top:`${100-p.value.v}%`,[!0===a.lang.rtl?"right":"left"]:`${p.value.s}%`})),q=e.computed(()=>void 0!==t.palette&&t.palette.length>0?t.palette:ll),k=e.computed(()=>"q-color-picker"+(!0===t.bordered?" q-color-picker--bordered":"")+(!0===t.square?" q-color-picker--square no-border-radius":"")+(!0===t.flat?" q-color-picker--flat no-shadow":"")+(!0===t.disable?" disabled":"")+(!0===l.value?" q-color-picker--dark q-dark":"")),$=e.computed(()=>{return!0===t.disable?{"aria-disabled":"true"}:!0===t.readonly?{"aria-readonly":"true"}:{}}),M=e.computed(()=>{return[[ha,P,void 0,{prevent:!0,stop:!0,mouse:!0}]]});function T(e,t){p.value.hex=Ua(e),p.value.rgb=Wa(e),p.value.r=e.r,p.value.g=e.g,p.value.b=e.b,p.value.a=e.a;const n=p.value[!0===h.value?"hex":"rgb"];o("update:modelValue",n),!0===t&&o("change",n)}function B(e){const o=void 0!==c.value?c.value:"auto"===t.formatModel?null:t.formatModel.indexOf("a")>-1;if("string"!==typeof e||0===e.length||!0!==Da.anyColor(e.replace(/ /g,"")))return{h:0,s:0,v:0,r:0,g:0,b:0,a:!0===o?100:void 0,hex:void 0,rgb:void 0};const n=Za(e);return!0===o&&void 0===n.a&&(n.a=100),n.hex=Ua(n),n.rgb=Wa(n),Object.assign(n,Xa(n))}function O(e,t,o){const n=r.value;if(void 0===n)return;const l=n.clientWidth,i=n.clientHeight,s=n.getBoundingClientRect();let u=Math.min(l,Math.max(0,e-s.left));!0===a.lang.rtl&&(u=l-u);const c=Math.min(i,Math.max(0,t-s.top)),d=Math.round(100*u/l),v=Math.round(100*Math.max(0,Math.min(1,-c/i+1))),m=Ka({h:p.value.h,s:d,v:v,a:!0===y.value?p.value.a:void 0});p.value.s=d,p.value.v=v,T(m,o)}function V(e,t){const o=Math.round(e),n=Ka({h:o,s:p.value.s,v:p.value.v,a:!0===y.value?p.value.a:void 0});p.value.h=o,T(n,t)}function z(t,o,a,l,i){if(void 0!==l&&C(l),!/^[0-9]+$/.test(t))return void(!0===i&&n.$forceUpdate());const r=Math.floor(Number(t));if(r<0||r>a)return void(!0===i&&n.$forceUpdate());const s={r:"r"===o?r:p.value.r,g:"g"===o?r:p.value.g,b:"b"===o?r:p.value.b,a:!0===y.value?"a"===o?r:p.value.a:void 0};if("a"!==o){const e=Xa(s);p.value.h=e.h,p.value.s=e.s,p.value.v=e.v}if(T(s,i),void 0!==l&&!0!==i&&void 0!==l.target.selectionEnd){const t=l.target.selectionEnd;e.nextTick(()=>{l.target.setSelectionRange(t,t)})}}function L(t,o){let n;const a=t.target.value;if(C(t),"hex"===d.value){if(a.length!==(!0===y.value?9:7)||!/^#[0-9A-Fa-f]+$/.test(a))return!0;n=Ya(a)}else{let e;if(!a.endsWith(")"))return!0;if(!0!==y.value&&a.startsWith("rgb(")){if(e=a.substring(4,a.length-1).split(",").map(e=>parseInt(e,10)),3!==e.length||!/^rgb\([0-9]{1,3},[0-9]{1,3},[0-9]{1,3}\)$/.test(a))return!0}else{if(!0!==y.value||!a.startsWith("rgba("))return!0;{if(e=a.substring(5,a.length-1).split(","),4!==e.length||!/^rgba\([0-9]{1,3},[0-9]{1,3},[0-9]{1,3},(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/.test(a))return!0;for(let o=0;o<3;o++){const t=parseInt(e[o],10);if(t<0||t>255)return!0;e[o]=t}const t=parseFloat(e[3]);if(t<0||t>1)return!0;e[3]=t}}if(e[0]<0||e[0]>255||e[1]<0||e[1]>255||e[2]<0||e[2]>255||!0===y.value&&(e[3]<0||e[3]>1))return!0;n={r:e[0],g:e[1],b:e[2],a:!0===y.value?100*e[3]:void 0}}const l=Xa(n);if(p.value.h=l.h,p.value.s=l.s,p.value.v=l.v,T(n,o),!0!==o){const o=t.target.selectionEnd;e.nextTick(()=>{t.target.setSelectionRange(o,o)})}}function E(e){const t=B(e),o={r:t.r,g:t.g,b:t.b,a:t.a};void 0===o.a&&(o.a=p.value.a),p.value.h=t.h,p.value.s=t.s,p.value.v=t.v,T(o,!0)}function P(e){e.isFinal?O(e.position.left,e.position.top,!0):A(e)}e.watch(()=>t.modelValue,e=>{const o=B(e||t.defaultValue);o.hex!==p.value.hex&&(p.value=o)}),e.watch(()=>t.defaultValue,e=>{if(!t.modelValue&&e){const t=B(e);t.hex!==p.value.hex&&(p.value=t)}});const A=Et(e=>{O(e.position.left,e.position.top)},20);function F(e){O(e.pageX-window.pageXOffset,e.pageY-window.pageYOffset,!0)}function I(e){O(e.pageX-window.pageXOffset,e.pageY-window.pageYOffset)}function R(e){null!==s.value&&(s.value.$el.style.opacity=e?1:0)}function N(){return e.h("div",{class:"q-color-picker__header relative-position overflow-hidden"},[e.h("div",{class:"q-color-picker__header-bg absolute-full"}),e.h("div",{class:x.value,style:w.value},[e.h(Ba,{modelValue:d.value,dense:!0,align:"justify",...i("topVTab",{"onUpdate:modelValue":e=>{d.value=e}})},()=>[e.h(Ea,{label:"HEX"+(!0===y.value?"A":""),name:"hex",ripple:!1}),e.h(Ea,{label:"RGB"+(!0===y.value?"A":""),name:"rgb",ripple:!1})]),e.h("div",{class:"q-color-picker__header-banner row flex-center no-wrap"},[e.h("input",{class:"fit",value:p.value[d.value],...!0!==m.value?{readonly:!0}:{},...i("topIn",{onInput:e=>{R(!0===L(e))},onChange:C,onBlur:e=>{!0===L(e,!0)&&n.$forceUpdate(),R(!1)}})}),e.h(et,{ref:s,class:"q-color-picker__error-icon absolute no-pointer-events",name:a.iconSet.type.negative})])])])}function j(){return e.h(Pa,{modelValue:v.value,animated:!0},()=>[e.h(Aa,{class:"q-color-picker__spectrum-tab overflow-hidden",name:"spectrum"},H),e.h(Aa,{class:"q-pa-md q-color-picker__tune-tab",name:"tune"},Q),e.h(Aa,{class:"q-color-picker__palette-tab",name:"palette"},U)])}function D(){return e.h("div",{class:"q-color-picker__footer relative-position overflow-hidden"},[e.h(Ba,{class:"absolute-full",modelValue:v.value,dense:!0,align:"justify",...i("ftIn",{"onUpdate:modelValue":e=>{v.value=e}})},()=>[e.h(Ea,{icon:a.iconSet.colorPicker.spectrum,name:"spectrum",ripple:!1}),e.h(Ea,{icon:a.iconSet.colorPicker.tune,name:"tune",ripple:!1}),e.h(Ea,{icon:a.iconSet.colorPicker.palette,name:"palette",ripple:!1})])])}function H(){const t={ref:r,class:"q-color-picker__spectrum non-selectable relative-position cursor-pointer"+(!0!==m.value?" readonly":""),style:_.value,...!0===m.value?{onClick:F,onMousedown:I}:{}},o=[e.h("div",{style:{paddingBottom:"100%"}}),e.h("div",{class:"q-color-picker__spectrum-white absolute-full"}),e.h("div",{class:"q-color-picker__spectrum-black absolute-full"}),e.h("div",{class:"absolute",style:S.value},[void 0!==p.value.hex?e.h("div",{class:"q-color-picker__spectrum-circle"}):null])],n=[e.h("div",{class:"q-color-picker__hue non-selectable"},[e.h(Ca,{modelValue:p.value.h,min:0,max:360,fillHandleAlways:!0,readonly:!0!==m.value,thumbPath:il,"onUpdate:modelValue":V,...i("lazyhue",{onChange:e=>V(e,!0)})})])];return!0===y.value&&n.push(e.h("div",{class:"q-color-picker__alpha non-selectable"},[e.h(Ca,{modelValue:p.value.a,min:0,max:100,fillHandleAlways:!0,readonly:!0!==m.value,thumbPath:il,...i("alphaSlide",{"onUpdate:modelValue":e=>z(e,"a",100),onChange:e=>z(e,"a",100,void 0,!0)})})])),[je("div",t,o,"spec",m.value,()=>M.value),e.h("div",{class:"q-color-picker__sliders"},n)]}function Q(){return[e.h("div",{class:"row items-center no-wrap"},[e.h("div","R"),e.h(Ca,{modelValue:p.value.r,min:0,max:255,color:"red",dark:l.value,readonly:!0!==m.value,...i("rSlide",{"onUpdate:modelValue":e=>z(e,"r",255),onChange:e=>z(e,"r",255,void 0,!0)})}),e.h("input",{value:p.value.r,maxlength:3,readonly:!0!==m.value,onChange:C,...i("rIn",{onInput:e=>z(e.target.value,"r",255,e),onBlur:e=>z(e.target.value,"r",255,e,!0)})})]),e.h("div",{class:"row items-center no-wrap"},[e.h("div","G"),e.h(Ca,{modelValue:p.value.g,min:0,max:255,color:"green",dark:l.value,readonly:!0!==m.value,...i("gSlide",{"onUpdate:modelValue":e=>z(e,"g",255),onChange:e=>z(e,"g",255,void 0,!0)})}),e.h("input",{value:p.value.g,maxlength:3,readonly:!0!==m.value,onChange:C,...i("gIn",{onInput:e=>z(e.target.value,"g",255,e),onBlur:e=>z(e.target.value,"g",255,e,!0)})})]),e.h("div",{class:"row items-center no-wrap"},[e.h("div","B"),e.h(Ca,{modelValue:p.value.b,min:0,max:255,color:"blue",readonly:!0!==m.value,dark:l.value,...i("bSlide",{"onUpdate:modelValue":e=>z(e,"b",255),onChange:e=>z(e,"b",255,void 0,!0)})}),e.h("input",{value:p.value.b,maxlength:3,readonly:!0!==m.value,onChange:C,...i("bIn",{onInput:e=>z(e.target.value,"b",255,e),onBlur:e=>z(e.target.value,"b",255,e,!0)})})]),!0===y.value?e.h("div",{class:"row items-center no-wrap"},[e.h("div","A"),e.h(Ca,{modelValue:p.value.a,color:"grey",readonly:!0!==m.value,dark:l.value,...i("aSlide",{"onUpdate:modelValue":e=>z(e,"a",100),onChange:e=>z(e,"a",100,void 0,!0)})}),e.h("input",{value:p.value.a,maxlength:3,readonly:!0!==m.value,onChange:C,...i("aIn",{onInput:e=>z(e.target.value,"a",100,e),onBlur:e=>z(e.target.value,"a",100,e,!0)})})]):null]}function U(){return[e.h("div",{class:"row items-center q-color-picker__palette-rows"+(!0===m.value?" q-color-picker__palette-rows--editable":"")},q.value.map(t=>e.h("div",{class:"q-color-picker__cube col-auto",style:{backgroundColor:t},...!0===m.value?i("palette#"+t,{onClick:()=>{E(t)}}):{}})))]}return()=>{const o=[j()];return void 0!==t.name&&!0!==t.disable&&b(o,"push"),!0!==t.noHeader&&o.unshift(N()),!0!==t.noFooter&&o.push(D()),e.h("div",{class:k.value,...$.value},o)}}});const sl=[-61,9,38,199,426,686,756,818,1111,1181,1210,1635,2060,2097,2192,2262,2324,2394,2456,3178];function ul(e,t,o){return"[object Date]"===Object.prototype.toString.call(e)&&(o=e.getDate(),t=e.getMonth()+1,e=e.getFullYear()),hl(gl(e,t,o))}function cl(e,t,o){return bl(fl(e,t,o))}function dl(e){return 0===pl(e)}function vl(e,t){return t<=6?31:t<=11?30:dl(e)?30:29}function pl(e){const t=sl.length;let o,n,a,l,i,r=sl[0];if(e<r||e>=sl[t-1])throw new Error("Invalid Jalaali year "+e);for(i=1;i<t;i+=1){if(o=sl[i],n=o-r,e<o)break;r=o}return l=e-r,n-l<6&&(l=l-n+33*yl(n+4,33)),a=wl(wl(l+1,33)-1,4),-1===a&&(a=4),a}function ml(e,t){const o=sl.length,n=e+621;let a,l,i,r,s,u=-14,c=sl[0];if(e<c||e>=sl[o-1])throw new Error("Invalid Jalaali year "+e);for(s=1;s<o;s+=1){if(a=sl[s],l=a-c,e<a)break;u=u+8*yl(l,33)+yl(wl(l,33),4),c=a}r=e-c,u=u+8*yl(r,33)+yl(wl(r,33)+3,4),4===wl(l,33)&&l-r===4&&(u+=1);const d=yl(n,4)-yl(3*(yl(n,100)+1),4)-150,v=20+u-d;return t||(l-r<6&&(r=r-l+33*yl(l+4,33)),i=wl(wl(r+1,33)-1,4),-1===i&&(i=4)),{leap:i,gy:n,march:v}}function fl(e,t,o){const n=ml(e,!0);return gl(n.gy,3,n.march)+31*(t-1)-yl(t,7)*(t-7)+o-1}function hl(e){const t=bl(e).gy;let o,n,a,l=t-621;const i=ml(l,!1),r=gl(t,3,i.march);if(a=e-r,a>=0){if(a<=185)return n=1+yl(a,31),o=wl(a,31)+1,{jy:l,jm:n,jd:o};a-=186}else l-=1,a+=179,1===i.leap&&(a+=1);return n=7+yl(a,30),o=wl(a,30)+1,{jy:l,jm:n,jd:o}}function gl(e,t,o){let n=yl(1461*(e+yl(t-8,6)+100100),4)+yl(153*wl(t+9,12)+2,5)+o-34840408;return n=n-yl(3*yl(e+100100+yl(t-8,6),100),4)+752,n}function bl(e){let t=4*e+139361631;t=t+4*yl(3*yl(4*e+183187720,146097),4)-3908;const o=5*yl(wl(t,1461),4)+308,n=yl(wl(o,153),5)+1,a=wl(yl(o,153),12)+1,l=yl(t,1461)-100100+yl(8-a,6);return{gy:l,gm:a,gd:n}}function yl(e,t){return~~(e/t)}function wl(e,t){return e-~~(e/t)*t}const xl=["gregorian","persian"],_l={modelValue:{required:!0},mask:{type:String},locale:Object,calendar:{type:String,validator:e=>xl.includes(e),default:"gregorian"},landscape:Boolean,color:String,textColor:String,square:Boolean,flat:Boolean,bordered:Boolean,readonly:Boolean,disable:Boolean},Cl=["update:modelValue"];function Sl(e){return e.year+"/"+Ce(e.month)+"/"+Ce(e.day)}function ql(t,o){const n=e.computed(()=>{return!0!==t.disable&&!0!==t.readonly}),a=e.computed(()=>{return!0===t.editable?0:-1}),l=e.computed(()=>{const e=[];return void 0!==t.color&&e.push(`bg-${t.color}`),void 0!==t.textColor&&e.push(`text-${t.textColor}`),e.join(" ")});function i(){return t.locale||o.lang.date}function r(e){const o=new Date,n=!0===e?null:0;if("persian"===t.calendar){const e=ul(o);return{year:e.jy,month:e.jm,day:e.jd}}return{year:o.getFullYear(),month:o.getMonth()+1,day:o.getDate(),hour:n,minute:n,second:n,millisecond:n}}return{editable:n,tabindex:a,headerClass:l,getLocale:i,getCurrentDate:r}}const kl=864e5,$l=36e5,Ml=6e4,Tl="YYYY-MM-DDTHH:mm:ss.SSSZ",Bl=/\[((?:[^\]\\]|\\]|\\)*)\]|d{1,4}|M{1,4}|m{1,2}|w{1,2}|Qo|Do|D{1,4}|YY(?:YY)?|H{1,2}|h{1,2}|s{1,2}|S{1,3}|Z{1,2}|a{1,2}|[AQExX]/g,Ol=/(\[[^\]]*\])|d{1,4}|M{1,4}|m{1,2}|w{1,2}|Qo|Do|D{1,4}|YY(?:YY)?|H{1,2}|h{1,2}|s{1,2}|S{1,3}|Z{1,2}|a{1,2}|[AQExX]|([.*+:?^,\s${}()|\\]+)/g,Vl={};function zl(e,t){const o="("+t.days.join("|")+")",n=e+o;if(void 0!==Vl[n])return Vl[n];const a="("+t.daysShort.join("|")+")",l="("+t.months.join("|")+")",i="("+t.monthsShort.join("|")+")",r={};let s=0;const u=e.replace(Ol,e=>{switch(s++,e){case"YY":return r.YY=s,"(-?\\d{1,2})";case"YYYY":return r.YYYY=s,"(-?\\d{1,4})";case"M":return r.M=s,"(\\d{1,2})";case"MM":return r.M=s,"(\\d{2})";case"MMM":return r.MMM=s,i;case"MMMM":return r.MMMM=s,l;case"D":return r.D=s,"(\\d{1,2})";case"Do":return r.D=s++,"(\\d{1,2}(st|nd|rd|th))";case"DD":return r.D=s,"(\\d{2})";case"H":return r.H=s,"(\\d{1,2})";case"HH":return r.H=s,"(\\d{2})";case"h":return r.h=s,"(\\d{1,2})";case"hh":return r.h=s,"(\\d{2})";case"m":return r.m=s,"(\\d{1,2})";case"mm":return r.m=s,"(\\d{2})";case"s":return r.s=s,"(\\d{1,2})";case"ss":return r.s=s,"(\\d{2})";case"S":return r.S=s,"(\\d{1})";case"SS":return r.S=s,"(\\d{2})";case"SSS":return r.S=s,"(\\d{3})";case"A":return r.A=s,"(AM|PM)";case"a":return r.a=s,"(am|pm)";case"aa":return r.aa=s,"(a\\.m\\.|p\\.m\\.)";case"ddd":return a;case"dddd":return o;case"Q":case"d":case"E":return"(\\d{1})";case"Qo":return"(1st|2nd|3rd|4th)";case"DDD":case"DDDD":return"(\\d{1,3})";case"w":return"(\\d{1,2})";case"ww":return"(\\d{2})";case"Z":return r.Z=s,"(Z|[+-]\\d{2}:\\d{2})";case"ZZ":return r.ZZ=s,"(Z|[+-]\\d{2}\\d{2})";case"X":return r.X=s,"(-?\\d+)";case"x":return r.x=s,"(-?\\d{4,})";default:return s--,"["===e[0]&&(e=e.substring(1,e.length-1)),e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}}),c={map:r,regex:new RegExp("^"+u)};return Vl[n]=c,c}function Ll(e,t,o){const n=El(e,t,o),a=new Date(n.year,null===n.month?null:n.month-1,n.day,n.hour,n.minute,n.second,n.millisecond),l=a.getTimezoneOffset();return null===n.timezoneOffset||n.timezoneOffset===l?a:Fl(a,{minutes:n.timezoneOffset-l},!0)}function El(e,t,o,n,a){const l={year:null,month:null,day:null,hour:null,minute:null,second:null,millisecond:null,timezoneOffset:null,dateHash:null,timeHash:null};if(void 0!==a&&Object.assign(l,a),void 0===e||null===e||""===e||"string"!==typeof e)return l;void 0===t&&(t=Tl);const i=void 0!==o?o:j.props.date,r=i.months,s=i.monthsShort,{regex:u,map:c}=zl(t,i),d=e.match(u);if(null===d)return l;let v="";if(void 0!==c.X||void 0!==c.x){const e=parseInt(d[void 0!==c.X?c.X:c.x],10);if(!0===isNaN(e)||e<0)return l;const t=new Date(e*(void 0!==c.X?1e3:1));l.year=t.getFullYear(),l.month=t.getMonth()+1,l.day=t.getDate(),l.hour=t.getHours(),l.minute=t.getMinutes(),l.second=t.getSeconds(),l.millisecond=t.getMilliseconds()}else{if(void 0!==c.YYYY)l.year=parseInt(d[c.YYYY],10);else if(void 0!==c.YY){const e=parseInt(d[c.YY],10);l.year=e<0?e:2e3+e}if(void 0!==c.M){if(l.month=parseInt(d[c.M],10),l.month<1||l.month>12)return l}else void 0!==c.MMM?l.month=s.indexOf(d[c.MMM])+1:void 0!==c.MMMM&&(l.month=r.indexOf(d[c.MMMM])+1);if(void 0!==c.D){if(l.day=parseInt(d[c.D],10),null===l.year||null===l.month||l.day<1)return l;const e="persian"!==n?new Date(l.year,l.month,0).getDate():vl(l.year,l.month);if(l.day>e)return l}void 0!==c.H?l.hour=parseInt(d[c.H],10)%24:void 0!==c.h&&(l.hour=parseInt(d[c.h],10)%12,(c.A&&"PM"===d[c.A]||c.a&&"pm"===d[c.a]||c.aa&&"p.m."===d[c.aa])&&(l.hour+=12),l.hour=l.hour%24),void 0!==c.m&&(l.minute=parseInt(d[c.m],10)%60),void 0!==c.s&&(l.second=parseInt(d[c.s],10)%60),void 0!==c.S&&(l.millisecond=parseInt(d[c.S],10)*10**(3-d[c.S].length)),void 0===c.Z&&void 0===c.ZZ||(v=void 0!==c.Z?d[c.Z].replace(":",""):d[c.ZZ],l.timezoneOffset=("+"===v[0]?-1:1)*(60*v.slice(1,3)+1*v.slice(3,5)))}return l.dateHash=l.year+"/"+Ce(l.month)+"/"+Ce(l.day),l.timeHash=Ce(l.hour)+":"+Ce(l.minute)+":"+Ce(l.second)+v,l}function Pl(e,t=""){const o=e>0?"-":"+",n=Math.abs(e),a=Math.floor(n/60),l=n%60;return o+Ce(a)+t+Ce(l)}function Al(e,t){const o=new Date(e.getFullYear(),t,0,0,0,0,0),n=o.getDate();e.setMonth(t-1,Math.min(n,e.getDate()))}function Fl(e,t,o){const n=new Date(e),a=o?1:-1;return Object.keys(t).forEach(e=>{if("months"===e)return void Al(n,n.getMonth()+1+a*t.months);const o="years"===e?"FullYear":we("days"===e?"date":e);n[`set${o}`](n[`get${o}`]()+a*t[e])}),n}function Il(e){return"number"===typeof e||!1===isNaN(Date.parse(e))}function Rl(e,t){return Yl(new Date,e,t)}function Nl(e){const t=new Date(e).getDay();return 0===t?7:t}function jl(e){const t=new Date(e.getFullYear(),e.getMonth(),e.getDate());t.setDate(t.getDate()-(t.getDay()+6)%7+3);const o=new Date(t.getFullYear(),0,4);o.setDate(o.getDate()-(o.getDay()+6)%7+3);const n=t.getTimezoneOffset()-o.getTimezoneOffset();t.setHours(t.getHours()-n);const a=(t-o)/(7*kl);return 1+Math.floor(a)}function Dl(e){return 1e4*e.getFullYear()+100*e.getMonth()+e.getDate()}function Hl(e,t){const o=new Date(e);return!0===t?Dl(o):o.getTime()}function Ql(e,t,o,n={}){const a=Hl(t,n.onlyDate),l=Hl(o,n.onlyDate),i=Hl(e,n.onlyDate);return(i>a||!0===n.inclusiveFrom&&i===a)&&(i<l||!0===n.inclusiveTo&&i===l)}function Ul(e,t){return Fl(e,t,!0)}function Wl(e,t){return Fl(e,t,!1)}function Yl(e,t,o){const n=new Date(e),a=`set${!0===o?"UTC":""}`;return Object.keys(t).forEach(e=>{if("month"===e)return void Al(n,t.month);const o="year"===e?"FullYear":e.charAt(0).toUpperCase()+e.slice(1);n[`${a}${o}`](t[e])}),n}function Kl(e,t,o){const n=new Date(e),a=`set${!0===o?"UTC":""}`;switch(t){case"year":n[`${a}Month`](0);case"month":n[`${a}Date`](1);case"day":n[`${a}Hours`](0);case"hour":n[`${a}Minutes`](0);case"minute":n[`${a}Seconds`](0);case"second":n[`${a}Milliseconds`](0)}return n}function Xl(e,t,o){const n=new Date(e),a=`set${!0===o?"UTC":""}`;switch(t){case"year":n[`${a}Month`](11);case"month":n[`${a}Date`](li(n));case"day":n[`${a}Hours`](23);case"hour":n[`${a}Minutes`](59);case"minute":n[`${a}Seconds`](59);case"second":n[`${a}Milliseconds`](999)}return n}function Zl(e){let t=new Date(e);return Array.prototype.slice.call(arguments,1).forEach(e=>{t=Math.max(t,new Date(e))}),t}function Gl(e){let t=new Date(e);return Array.prototype.slice.call(arguments,1).forEach(e=>{t=Math.min(t,new Date(e))}),t}function Jl(e,t,o){return(e.getTime()-e.getTimezoneOffset()*Ml-(t.getTime()-t.getTimezoneOffset()*Ml))/o}function ei(e,t,o="days"){const n=new Date(e),a=new Date(t);switch(o){case"years":return n.getFullYear()-a.getFullYear();case"months":return 12*(n.getFullYear()-a.getFullYear())+n.getMonth()-a.getMonth();case"days":return Jl(Kl(n,"day"),Kl(a,"day"),kl);case"hours":return Jl(Kl(n,"hour"),Kl(a,"hour"),$l);case"minutes":return Jl(Kl(n,"minute"),Kl(a,"minute"),Ml);case"seconds":return Jl(Kl(n,"second"),Kl(a,"second"),1e3)}}function ti(e){return ei(e,Kl(e,"year"),"days")+1}function oi(e){return!0===Qn(e)?"date":"number"===typeof e?"number":"string"}function ni(e,t,o){const n=new Date(e);if(t){const e=new Date(t);if(n<e)return e}if(o){const e=new Date(o);if(n>e)return e}return n}function ai(e,t,o){const n=new Date(e),a=new Date(t);if(void 0===o)return n.getTime()===a.getTime();switch(o){case"second":if(n.getSeconds()!==a.getSeconds())return!1;case"minute":if(n.getMinutes()!==a.getMinutes())return!1;case"hour":if(n.getHours()!==a.getHours())return!1;case"day":if(n.getDate()!==a.getDate())return!1;case"month":if(n.getMonth()!==a.getMonth())return!1;case"year":if(n.getFullYear()!==a.getFullYear())return!1;break;default:throw new Error(`date isSameDate unknown unit ${o}`)}return!0}function li(e){return new Date(e.getFullYear(),e.getMonth()+1,0).getDate()}function ii(e){if(e>=11&&e<=13)return`${e}th`;switch(e%10){case 1:return`${e}st`;case 2:return`${e}nd`;case 3:return`${e}rd`}return`${e}th`}const ri={YY(e,t,o){const n=this.YYYY(e,t,o)%100;return n>0?Ce(n):"-"+Ce(Math.abs(n))},YYYY(e,t,o){return void 0!==o&&null!==o?o:e.getFullYear()},M(e){return e.getMonth()+1},MM(e){return Ce(e.getMonth()+1)},MMM(e,t){return t.monthsShort[e.getMonth()]},MMMM(e,t){return t.months[e.getMonth()]},Q(e){return Math.ceil((e.getMonth()+1)/3)},Qo(e){return ii(this.Q(e))},D(e){return e.getDate()},Do(e){return ii(e.getDate())},DD(e){return Ce(e.getDate())},DDD(e){return ti(e)},DDDD(e){return Ce(ti(e),3)},d(e){return e.getDay()},dd(e,t){return this.dddd(e,t).slice(0,2)},ddd(e,t){return t.daysShort[e.getDay()]},dddd(e,t){return t.days[e.getDay()]},E(e){return e.getDay()||7},w(e){return jl(e)},ww(e){return Ce(jl(e))},H(e){return e.getHours()},HH(e){return Ce(e.getHours())},h(e){const t=e.getHours();return 0===t?12:t>12?t%12:t},hh(e){return Ce(this.h(e))},m(e){return e.getMinutes()},mm(e){return Ce(e.getMinutes())},s(e){return e.getSeconds()},ss(e){return Ce(e.getSeconds())},S(e){return Math.floor(e.getMilliseconds()/100)},SS(e){return Ce(Math.floor(e.getMilliseconds()/10))},SSS(e){return Ce(e.getMilliseconds(),3)},A(e){return this.H(e)<12?"AM":"PM"},a(e){return this.H(e)<12?"am":"pm"},aa(e){return this.H(e)<12?"a.m.":"p.m."},Z(e,t,o,n){const a=void 0===n||null===n?e.getTimezoneOffset():n;return Pl(a,":")},ZZ(e,t,o,n){const a=void 0===n||null===n?e.getTimezoneOffset():n;return Pl(a)},X(e){return Math.floor(e.getTime()/1e3)},x(e){return e.getTime()}};function si(e,t,o,n,a){if(0!==e&&!e||e===1/0||e===-1/0)return;const l=new Date(e);if(isNaN(l))return;void 0===t&&(t=Tl);const i=void 0!==o?o:j.props.date;return t.replace(Bl,(e,t)=>e in ri?ri[e](l,i,n,a):void 0===t?e:t.split("\\]").join("]"))}function ui(e){return!0===Qn(e)?new Date(e.getTime()):e}var ci={isValid:Il,extractDate:Ll,buildDate:Rl,getDayOfWeek:Nl,getWeekOfYear:jl,isBetweenDates:Ql,addToDate:Ul,subtractFromDate:Wl,adjustDate:Yl,startOfDate:Kl,endOfDate:Xl,getMaxDate:Zl,getMinDate:Gl,getDateDiff:ei,getDayOfYear:ti,inferDateFormat:oi,getDateBetween:ni,isSameDate:ai,daysInMonth:li,formatDate:si,clone:ui};const di=20,vi=["Calendar","Years","Months"],pi=e=>vi.includes(e),mi=e=>/^-?[\d]+\/[0-1]\d$/.test(e),fi=" — ";function hi(e){return e.year+"/"+Ce(e.month)}var gi=e.defineComponent({name:"QDate",props:{..._l,...bn,...at,multiple:Boolean,range:Boolean,title:String,subtitle:String,mask:{default:"YYYY/MM/DD"},defaultYearMonth:{type:String,validator:mi},yearsInMonthView:Boolean,events:[Array,Function],eventColor:[String,Function],emitImmediately:Boolean,options:[Array,Function],navigationMinYearMonth:{type:String,validator:mi},navigationMaxYearMonth:{type:String,validator:mi},noUnset:Boolean,firstDayOfWeek:[String,Number],todayBtn:Boolean,minimal:Boolean,defaultView:{type:String,default:"Calendar",validator:pi}},emits:[...Cl,"range-start","range-end","navigation"],setup(t,{slots:o,emit:n}){const{proxy:a}=e.getCurrentInstance(),{$q:l}=a,i=lt(t,l),{getCache:r}=Vn(),{tabindex:s,headerClass:u,getLocale:c,getCurrentDate:d}=ql(t,l);let v;const p=yn(t),m=wn(p),f=e.ref(null),h=e.ref(de()),g=e.ref(c()),b=e.computed(()=>de()),y=e.computed(()=>c()),w=e.computed(()=>d()),x=e.ref(pe(h.value,g.value)),_=e.ref(t.defaultView),C=!0===l.lang.rtl?"right":"left",S=e.ref(C.value),q=e.ref(C.value),k=x.value.year,$=e.ref(k-k%di-(k<0?di:0)),M=e.ref(null),T=e.computed(()=>{const e=!0===t.landscape?"landscape":"portrait";return`q-date q-date--${e} q-date--${e}-${!0===t.minimal?"minimal":"standard"}`+(!0===i.value?" q-date--dark q-dark":"")+(!0===t.bordered?" q-date--bordered":"")+(!0===t.square?" q-date--square no-border-radius":"")+(!0===t.flat?" q-date--flat no-shadow":"")+(!0===t.disable?" disabled":!0===t.readonly?" q-date--readonly":"")}),B=e.computed(()=>{return t.color||"primary"}),O=e.computed(()=>{return t.textColor||"white"}),V=e.computed(()=>!0===t.emitImmediately&&!0!==t.multiple&&!0!==t.range),z=e.computed(()=>!0===Array.isArray(t.modelValue)?t.modelValue:null!==t.modelValue&&void 0!==t.modelValue?[t.modelValue]:[]),L=e.computed(()=>z.value.filter(e=>"string"===typeof e).map(e=>ve(e,h.value,g.value)).filter(e=>null!==e.dateHash)),E=e.computed(()=>{const e=e=>ve(e,h.value,g.value);return z.value.filter(e=>Object(e)===e&&void 0!==e.from&&void 0!==e.to).map(t=>({from:e(t.from),to:e(t.to)})).filter(e=>null!==e.from.dateHash&&null!==e.to.dateHash&&e.from.dateHash<e.to.dateHash)}),P=e.computed(()=>"persian"!==t.calendar?e=>new Date(e.year,e.month-1,e.day):e=>{const t=cl(e.year,e.month,e.day);return new Date(t.gy,t.gm-1,t.gd)}),A=e.computed(()=>"persian"===t.calendar?Sl:(e,t,o)=>si(new Date(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond),void 0===t?h.value:t,void 0===o?g.value:o,e.year,e.timezoneOffset)),F=e.computed(()=>L.value.length+E.value.reduce((e,t)=>e+1+ei(P.value(t.to),P.value(t.from)),0)),I=e.computed(()=>{if(void 0!==t.title&&null!==t.title&&t.title.length>0)return t.title;if(null!==M.value){const e=M.value.init,t=P.value(e);return g.value.daysShort[t.getDay()]+", "+g.value.monthsShort[e.month-1]+" "+e.day+fi+"?"}if(0===F.value)return fi;if(F.value>1)return`${F.value} ${g.value.pluralDay}`;const e=L.value[0],o=P.value(e);return!0===isNaN(o.valueOf())?fi:void 0!==g.value.headerTitle?g.value.headerTitle(o,e):g.value.daysShort[o.getDay()]+", "+g.value.monthsShort[e.month-1]+" "+e.day}),R=e.computed(()=>{const e=L.value.concat(E.value.map(e=>e.from)).sort((e,t)=>e.year-t.year||e.month-t.month);return e[0]}),N=e.computed(()=>{const e=L.value.concat(E.value.map(e=>e.to)).sort((e,t)=>t.year-e.year||t.month-e.month);return e[0]}),j=e.computed(()=>{if(void 0!==t.subtitle&&null!==t.subtitle&&t.subtitle.length>0)return t.subtitle;if(0===F.value)return fi;if(F.value>1){const e=R.value,t=N.value,o=g.value.monthsShort;return o[e.month-1]+(e.year!==t.year?" "+e.year+fi+o[t.month-1]+" ":e.month!==t.month?fi+o[t.month-1]:"")+" "+t.year}return L.value[0].year}),D=e.computed(()=>{const e=[l.iconSet.datetime.arrowLeft,l.iconSet.datetime.arrowRight];return!0===l.lang.rtl?e.reverse():e}),H=e.computed(()=>void 0!==t.firstDayOfWeek?Number(t.firstDayOfWeek):g.value.firstDayOfWeek),Q=e.computed(()=>{const e=g.value.daysShort,t=H.value;return t>0?e.slice(t,7).concat(e.slice(0,t)):e}),U=e.computed(()=>{const e=x.value;return"persian"!==t.calendar?new Date(e.year,e.month,0).getDate():vl(e.year,e.month)}),W=e.computed(()=>"function"===typeof t.eventColor?t.eventColor:()=>t.eventColor),Y=e.computed(()=>{if(void 0===t.navigationMinYearMonth)return null;const e=t.navigationMinYearMonth.split("/");return{year:parseInt(e[0],10),month:parseInt(e[1],10)}}),K=e.computed(()=>{if(void 0===t.navigationMaxYearMonth)return null;const e=t.navigationMaxYearMonth.split("/");return{year:parseInt(e[0],10),month:parseInt(e[1],10)}}),X=e.computed(()=>{const e={month:{prev:!0,next:!0},year:{prev:!0,next:!0}};return null!==Y.value&&Y.value.year>=x.value.year&&(e.year.prev=!1,Y.value.year===x.value.year&&Y.value.month>=x.value.month&&(e.month.prev=!1)),null!==K.value&&K.value.year<=x.value.year&&(e.year.next=!1,K.value.year===x.value.year&&K.value.month<=x.value.month&&(e.month.next=!1)),e}),Z=e.computed(()=>{const e={};return L.value.forEach(t=>{const o=hi(t);void 0===e[o]&&(e[o]=[]),e[o].push(t.day)}),e}),G=e.computed(()=>{const e={};return E.value.forEach(t=>{const o=hi(t.from),n=hi(t.to);if(void 0===e[o]&&(e[o]=[]),e[o].push({from:t.from.day,to:o===n?t.to.day:void 0,range:t}),o<n){let o;const{year:a,month:l}=t.from,i=l<12?{year:a,month:l+1}:{year:a+1,month:1};while((o=hi(i))<=n)void 0===e[o]&&(e[o]=[]),e[o].push({from:void 0,to:o===n?t.to.day:void 0,range:t}),i.month++,i.month>12&&(i.year++,i.month=1)}}),e}),J=e.computed(()=>{if(null===M.value)return;const{init:e,initHash:t,final:o,finalHash:n}=M.value,[a,l]=t<=n?[e,o]:[o,e],i=hi(a),r=hi(l);if(i!==ee.value&&r!==ee.value)return;const s={};return i===ee.value?(s.from=a.day,s.includeFrom=!0):s.from=1,r===ee.value?(s.to=l.day,s.includeTo=!0):s.to=U.value,s}),ee=e.computed(()=>hi(x.value)),te=e.computed(()=>{const e={};if(void 0===t.options){for(let t=1;t<=U.value;t++)e[t]=!0;return e}const o="function"===typeof t.options?t.options:e=>t.options.includes(e);for(let t=1;t<=U.value;t++){const n=ee.value+"/"+Ce(t);e[t]=o(n)}return e}),oe=e.computed(()=>{const e={};if(void 0===t.events)for(let t=1;t<=U.value;t++)e[t]=!1;else{const o="function"===typeof t.events?t.events:e=>t.events.includes(e);for(let t=1;t<=U.value;t++){const n=ee.value+"/"+Ce(t);e[t]=!0===o(n)&&W.value(n)}}return e}),ne=e.computed(()=>{let e,o;const{year:n,month:a}=x.value;if("persian"!==t.calendar)e=new Date(n,a-1,1),o=new Date(n,a-1,0).getDate();else{const t=cl(n,a,1);e=new Date(t.gy,t.gm-1,t.gd);let l=a-1,i=n;0===l&&(l=12,i--),o=vl(i,l)}return{days:e.getDay()-H.value-1,endDay:o}}),ae=e.computed(()=>{const e=[],{days:t,endDay:o}=ne.value,n=t<0?t+7:t;if(n<6)for(let i=o-n;i<=o;i++)e.push({i:i,fill:!0});const a=e.length;for(let i=1;i<=U.value;i++){const t={i:i,event:oe.value[i],classes:[]};!0===te.value[i]&&(t.in=!0,t.flat=!0),e.push(t)}if(void 0!==Z.value[ee.value]&&Z.value[ee.value].forEach(t=>{const o=a+t-1;Object.assign(e[o],{selected:!0,unelevated:!0,flat:!1,color:B.value,textColor:O.value})}),void 0!==G.value[ee.value]&&G.value[ee.value].forEach(t=>{if(void 0!==t.from){const o=a+t.from-1,n=a+(t.to||U.value)-1;for(let a=o;a<=n;a++)Object.assign(e[a],{range:t.range,unelevated:!0,color:B.value,textColor:O.value});Object.assign(e[o],{rangeFrom:!0,flat:!1}),void 0!==t.to&&Object.assign(e[n],{rangeTo:!0,flat:!1})}else if(void 0!==t.to){const o=a+t.to-1;for(let n=a;n<=o;n++)Object.assign(e[n],{range:t.range,unelevated:!0,color:B.value,textColor:O.value});Object.assign(e[o],{flat:!1,rangeTo:!0})}else{const o=a+U.value-1;for(let n=a;n<=o;n++)Object.assign(e[n],{range:t.range,unelevated:!0,color:B.value,textColor:O.value})}}),void 0!==J.value){const t=a+J.value.from-1,o=a+J.value.to-1;for(let n=t;n<=o;n++)e[n].color=B.value,e[n].editRange=!0;!0===J.value.includeFrom&&(e[t].editRangeFrom=!0),!0===J.value.includeTo&&(e[o].editRangeTo=!0)}x.value.year===w.value.year&&x.value.month===w.value.month&&(e[a+w.value.day-1].today=!0);const l=e.length%7;if(l>0){const t=7-l;for(let o=1;o<=t;o++)e.push({i:o,fill:!0})}return e.forEach(e=>{let t="q-date__calendar-item ";!0===e.fill?t+="q-date__calendar-item--fill":(t+=`q-date__calendar-item--${!0===e.in?"in":"out"}`,void 0!==e.range&&(t+=` q-date__range${!0===e.rangeTo?"-to":!0===e.rangeFrom?"-from":""}`),!0===e.editRange&&(t+=` q-date__edit-range${!0===e.editRangeFrom?"-from":""}${!0===e.editRangeTo?"-to":""}`),void 0===e.range&&!0!==e.editRange||(t+=` text-${e.color}`)),e.classes=t}),e}),le=e.computed(()=>!0===t.disable?{"aria-disabled":"true"}:!0===t.readonly?{"aria-readonly":"true"}:{});function ie(){ye(w.value,hi(w.value)),ue(w.value.year,w.value.month)}function re(e){!0===pi(e)&&(_.value=e)}function se(e,t){if(["month","year"].includes(e)){const o="month"===e?fe:he;o(!0===t?-1:1)}}function ue(e,t){_.value="Calendar",xe(e,t)}function ce(e,o){if(!1===t.range||!e)return void(M.value=null);const n=Object.assign({...x.value},e),a=void 0!==o?Object.assign({...x.value},o):n;M.value={init:n,initHash:Sl(n),final:a,finalHash:Sl(a)},ue(n.year,n.month)}function de(){return"persian"===t.calendar?"YYYY/MM/DD":t.mask}function ve(e,o,n){return El(e,o,n,t.calendar,{hour:0,minute:0,second:0,millisecond:0})}function pe(e,o){const n=!0===Array.isArray(t.modelValue)?t.modelValue:t.modelValue?[t.modelValue]:[];if(0===n.length)return me();const a=ve(void 0!==n[0].from?n[0].from:n[0],e,o);return null===a.dateHash?me():a}function me(){let e,o;if(void 0!==t.defaultYearMonth){const n=t.defaultYearMonth.split("/");e=parseInt(n[0],10),o=parseInt(n[1],10)}else{const t=void 0!==w.value?w.value:d();e=t.year,o=t.month}return{year:e,month:o,day:1,hour:0,minute:0,second:0,millisecond:0,dateHash:e+"/"+Ce(o)+"/01"}}function fe(e){let t=x.value.year,o=Number(x.value.month)+e;13===o?(o=1,t++):0===o&&(o=12,t--),xe(t,o),!0===V.value&&Se("month")}function he(e){const t=Number(x.value.year)+e;xe(t,x.value.month),!0===V.value&&Se("year")}function ge(e){xe(e,x.value.month),_.value="Years"===t.defaultView?"Months":"Calendar",!0===V.value&&Se("year")}function be(e){xe(x.value.year,e),_.value="Calendar",!0===V.value&&Se("month")}function ye(e,t){const o=Z.value[t],n=void 0!==o&&!0===o.includes(e.day)?Me:$e;n(e)}function we(e){return{year:e.year,month:e.month,day:e.day}}function xe(t,o){null!==Y.value&&t<=Y.value.year&&(t=Y.value.year,o<Y.value.month&&(o=Y.value.month)),null!==K.value&&t>=K.value.year&&(t=K.value.year,o>K.value.month&&(o=K.value.month));const n=t+"/"+Ce(o)+"/01";n!==x.value.dateHash&&(S.value=x.value.dateHash<n===(!0!==l.lang.rtl)?"left":"right",t!==x.value.year&&(q.value=S.value),e.nextTick(()=>{$.value=t-t%di-(t<0?di:0),Object.assign(x.value,{year:t,month:o,day:1,dateHash:n})}))}function _e(e,o,a){const l=null!==e&&1===e.length&&!1===t.multiple?e[0]:e;v=l;const{reason:i,details:r}=qe(o,a);n("update:modelValue",l,i,r)}function Se(o){const a=void 0!==L.value[0]&&null!==L.value[0].dateHash?{...L.value[0]}:{...x.value};e.nextTick(()=>{a.year=x.value.year,a.month=x.value.month;const e="persian"!==t.calendar?new Date(a.year,a.month,0).getDate():vl(a.year,a.month);a.day=Math.min(Math.max(1,a.day),e);const l=ke(a);v=l;const{details:i}=qe("",a);n("update:modelValue",l,o,i)})}function qe(e,t){return void 0!==t.from?{reason:`${e}-range`,details:{...we(t.target),from:we(t.from),to:we(t.to)}}:{reason:`${e}-day`,details:we(t)}}function ke(e,t,o){return void 0!==e.from?{from:A.value(e.from,t,o),to:A.value(e.to,t,o)}:A.value(e,t,o)}function $e(e){let o;if(!0===t.multiple)if(void 0!==e.from){const t=Sl(e.from),n=Sl(e.to),a=L.value.filter(e=>e.dateHash<t||e.dateHash>n),l=E.value.filter(({from:e,to:o})=>o.dateHash<t||e.dateHash>n);o=a.concat(l).concat(e).map(e=>ke(e))}else{const t=z.value.slice();t.push(ke(e)),o=t}else o=ke(e);_e(o,"add",e)}function Me(e){if(!0===t.noUnset)return;let o=null;if(!0===t.multiple&&!0===Array.isArray(t.modelValue)){const n=ke(e);o=void 0!==e.from?t.modelValue.filter(e=>void 0===e.from||e.from!==n.from&&e.to!==n.to):t.modelValue.filter(e=>e!==n),0===o.length&&(o=null)}_e(o,"remove",e)}function Te(e,o,a){const l=L.value.concat(E.value).map(t=>ke(t,e,o)).filter(e=>{return void 0!==e.from?null!==e.from.dateHash&&null!==e.to.dateHash:null!==e.dateHash});n("update:modelValue",(!0===t.multiple?l:l[0])||null,a)}function Be(){if(!0!==t.minimal)return e.h("div",{class:"q-date__header "+u.value},[e.h("div",{class:"relative-position"},[e.h(e.Transition,{name:"q-transition--fade"},()=>e.h("div",{key:"h-yr-"+j.value,class:"q-date__header-subtitle q-date__header-link "+("Years"===_.value?"q-date__header-link--active":"cursor-pointer"),tabindex:s.value,...r("vY",{onClick(){_.value="Years"},onKeyup(e){13===e.keyCode&&(_.value="Years")}})},[j.value]))]),e.h("div",{class:"q-date__header-title relative-position flex no-wrap"},[e.h("div",{class:"relative-position col"},[e.h(e.Transition,{name:"q-transition--fade"},()=>e.h("div",{key:"h-sub"+I.value,class:"q-date__header-title-label q-date__header-link "+("Calendar"===_.value?"q-date__header-link--active":"cursor-pointer"),tabindex:s.value,...r("vC",{onClick(){_.value="Calendar"},onKeyup(e){13===e.keyCode&&(_.value="Calendar")}})},[I.value]))]),!0===t.todayBtn?e.h(Wt,{class:"q-date__header-today self-start",icon:l.iconSet.datetime.today,flat:!0,size:"sm",round:!0,tabindex:s.value,onClick:ie}):null])])}function Oe({label:t,type:o,key:n,dir:a,goTo:l,boundaries:i,cls:u}){return[e.h("div",{class:"row items-center q-date__arrow"},[e.h(Wt,{round:!0,dense:!0,size:"sm",flat:!0,icon:D.value[0],tabindex:s.value,disable:!1===i.prev,...r("go-#"+o,{onClick(){l(-1)}})})]),e.h("div",{class:"relative-position overflow-hidden flex flex-center"+u},[e.h(e.Transition,{name:"q-transition--jump-"+a},()=>e.h("div",{key:n},[e.h(Wt,{flat:!0,dense:!0,noCaps:!0,label:t,tabindex:s.value,...r("view#"+o,{onClick:()=>{_.value=o}})})]))]),e.h("div",{class:"row items-center q-date__arrow"},[e.h(Wt,{round:!0,dense:!0,size:"sm",flat:!0,icon:D.value[1],tabindex:s.value,disable:!1===i.next,...r("go+#"+o,{onClick(){l(1)}})})])]}e.watch(()=>t.modelValue,e=>{if(v===e)v=0;else{const{year:e,month:t}=pe(h.value,g.value);xe(e,t)}}),e.watch(_,()=>{null!==f.value&&f.value.focus()}),e.watch(()=>x.value.year,e=>{n("navigation",{year:e,month:x.value.month})}),e.watch(()=>x.value.month,e=>{n("navigation",{year:x.value.year,month:e})}),e.watch(b,e=>{Te(e,g.value,"mask"),h.value=e}),e.watch(y,e=>{Te(h.value,e,"locale"),g.value=e}),Object.assign(a,{setToday:ie,setView:re,offsetCalendar:se,setCalendarTo:ue,setEditingRange:ce});const Ve={Calendar:()=>[e.h("div",{key:"calendar-view",class:"q-date__view q-date__calendar"},[e.h("div",{class:"q-date__navigation row items-center no-wrap"},Oe({label:g.value.months[x.value.month-1],type:"Months",key:x.value.month,dir:S.value,goTo:fe,boundaries:X.value.month,cls:" col"}).concat(Oe({label:x.value.year,type:"Years",key:x.value.year,dir:q.value,goTo:he,boundaries:X.value.year,cls:""}))),e.h("div",{class:"q-date__calendar-weekdays row items-center no-wrap"},Q.value.map(t=>e.h("div",{class:"q-date__calendar-item"},[e.h("div",t)]))),e.h("div",{class:"q-date__calendar-days-container relative-position overflow-hidden"},[e.h(e.Transition,{name:"q-transition--slide-"+S.value},()=>e.h("div",{key:ee.value,class:"q-date__calendar-days fit"},ae.value.map(t=>e.h("div",{class:t.classes},[!0===t.in?e.h(Wt,{class:!0===t.today?"q-date__today":"",dense:!0,flat:t.flat,unelevated:t.unelevated,color:t.color,textColor:t.textColor,label:t.i,tabindex:s.value,...r("day#"+t.i,{onClick:()=>{ze(t.i)},onMouseover:()=>{Le(t.i)}})},!1!==t.event?()=>e.h("div",{class:"q-date__event bg-"+t.event}):null):e.h("div",""+t.i)]))))])])],Months(){const o=x.value.year===w.value.year,n=e=>{return null!==Y.value&&x.value.year===Y.value.year&&Y.value.month>e||null!==K.value&&x.value.year===K.value.year&&K.value.month<e},a=g.value.monthsShort.map((t,a)=>{const l=x.value.month===a+1;return e.h("div",{class:"q-date__months-item flex flex-center"},[e.h(Wt,{class:!0===o&&w.value.month===a+1?"q-date__today":null,flat:!0!==l,label:t,unelevated:l,color:!0===l?B.value:null,textColor:!0===l?O.value:null,tabindex:s.value,disable:n(a+1),...r("month#"+a,{onClick:()=>{be(a+1)}})})])});return!0===t.yearsInMonthView&&a.unshift(e.h("div",{class:"row no-wrap full-width"},[Oe({label:x.value.year,type:"Years",key:x.value.year,dir:q.value,goTo:he,boundaries:X.value.year,cls:" col"})])),e.h("div",{key:"months-view",class:"q-date__view q-date__months flex flex-center"},a)},Years(){const t=$.value,o=t+di,n=[],a=e=>{return null!==Y.value&&Y.value.year>e||null!==K.value&&K.value.year<e};for(let l=t;l<=o;l++){const t=x.value.year===l;n.push(e.h("div",{class:"q-date__years-item flex flex-center"},[e.h(Wt,{key:"yr"+l,class:w.value.year===l?"q-date__today":null,flat:!t,label:l,dense:!0,unelevated:t,color:!0===t?B.value:null,textColor:!0===t?O.value:null,tabindex:s.value,disable:a(l),...r("yr#"+l,{onClick:()=>{ge(l)}})})]))}return e.h("div",{class:"q-date__view q-date__years flex flex-center"},[e.h("div",{class:"col-auto"},[e.h(Wt,{round:!0,dense:!0,flat:!0,icon:D.value[0],tabindex:s.value,disable:a(t),...r("y-",{onClick:()=>{$.value-=di}})})]),e.h("div",{class:"q-date__years-content col self-stretch row items-center"},n),e.h("div",{class:"col-auto"},[e.h(Wt,{round:!0,dense:!0,flat:!0,icon:D.value[1],tabindex:s.value,disable:a(o),...r("y+",{onClick:()=>{$.value+=di}})})])])}};function ze(e){const o={...x.value,day:e};if(!1!==t.range)if(null===M.value){const t=ae.value.find(t=>!0!==t.fill&&t.i===e);if(void 0!==t.range)return void Me({target:o,from:t.range.from,to:t.range.to});if(!0===t.selected)return void Me(o);const a=Sl(o);M.value={init:o,initHash:a,final:o,finalHash:a},n("range-start",we(o))}else{const e=M.value.initHash,t=Sl(o),a=e<=t?{from:M.value.init,to:o}:{from:o,to:M.value.init};M.value=null,$e(e===t?o:{target:o,...a}),n("range-end",{from:we(a.from),to:we(a.to)})}else ye(o,ee.value)}function Le(e){if(null!==M.value){const t={...x.value,day:e};Object.assign(M.value,{final:t,finalHash:Sl(t)})}}return()=>{const n=[e.h("div",{class:"q-date__content col relative-position"},[e.h(e.Transition,{name:"q-transition--fade"},Ve[_.value])])],a=Fe(o.default);return void 0!==a&&n.push(e.h("div",{class:"q-date__actions"},a)),void 0!==t.name&&!0!==t.disable&&m(n,"push"),e.h("div",{class:T.value,...le.value},[Be(),e.h("div",{ref:f,class:"q-date__main col column",tabindex:-1},n)])}}});function bi(t,o,n){let a;function l(){void 0!==a&&(I.remove(a),a=void 0)}return e.onBeforeUnmount(()=>{!0===t.value&&l()}),{removeFromHistory:l,addToHistory(){a={condition:()=>!0===n.value,handler:o},I.add(a)}}}let yi,wi,xi,_i,Ci,Si,qi=0,ki=!1;function $i(e){Mi(e)&&q(e)}function Mi(e){if(e.target===document.body||e.target.classList.contains("q-layout__backdrop"))return!0;const t=y(e),o=e.shiftKey&&!e.deltaX,n=!o&&Math.abs(e.deltaX)<=Math.abs(e.deltaY),a=o||n?e.deltaY:e.deltaX;for(let l=0;l<t.length;l++){const e=t[l];if(Fo(e,n))return n?a<0&&0===e.scrollTop||a>0&&e.scrollTop+e.clientHeight===e.scrollHeight:a<0&&0===e.scrollLeft||a>0&&e.scrollLeft+e.clientWidth===e.scrollWidth}return!0}function Ti(e){e.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function Bi(e){!0!==ki&&(ki=!0,requestAnimationFrame(()=>{ki=!1;const{height:t}=e.target,{clientHeight:o,scrollTop:n}=document.scrollingElement;void 0!==xi&&t===window.innerHeight||(xi=o-t,document.scrollingElement.scrollTop=n),n>xi&&(document.scrollingElement.scrollTop-=Math.ceil((n-xi)/8))}))}function Oi(e){const t=document.body,o=void 0!==window.visualViewport;if("add"===e){const{overflowY:e,overflowX:n}=window.getComputedStyle(t);yi=To(window),wi=Mo(window),_i=t.style.left,Ci=t.style.top,t.style.left=`-${yi}px`,t.style.top=`-${wi}px`,"hidden"!==n&&("scroll"===n||t.scrollWidth>window.innerWidth)&&t.classList.add("q-body--force-scrollbar-x"),"hidden"!==e&&("scroll"===e||t.scrollHeight>window.innerHeight)&&t.classList.add("q-body--force-scrollbar-y"),t.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,!0===c.is.ios&&(!0===o?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",Bi,p.passiveCapture),window.visualViewport.addEventListener("scroll",Bi,p.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",Ti,p.passiveCapture))}!0===c.is.desktop&&!0===c.is.mac&&window[`${e}EventListener`]("wheel",$i,p.notPassive),"remove"===e&&(!0===c.is.ios&&(!0===o?(window.visualViewport.removeEventListener("resize",Bi,p.passiveCapture),window.visualViewport.removeEventListener("scroll",Bi,p.passiveCapture)):window.removeEventListener("scroll",Ti,p.passiveCapture)),t.classList.remove("q-body--prevent-scroll"),t.classList.remove("q-body--force-scrollbar-x"),t.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,t.style.left=_i,t.style.top=Ci,window.scrollTo(yi,wi),xi=void 0)}function Vi(e){let t="add";if(!0===e){if(qi++,void 0!==Si)return clearTimeout(Si),void(Si=void 0);if(qi>1)return}else{if(0===qi)return;if(qi--,qi>0)return;if(t="remove",!0===c.is.ios&&!0===c.is.nativeMobile)return clearTimeout(Si),void(Si=setTimeout(()=>{Oi(t),Si=void 0},100))}Oi(t)}function zi(){let e;return{preventBodyScroll(t){t===e||void 0===e&&!0!==t||(e=t,Vi(t))}}}let Li=0;const Ei={standard:"fixed-full flex-center",top:"fixed-top justify-center",bottom:"fixed-bottom justify-center",right:"fixed-right items-center",left:"fixed-left items-center"},Pi={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]};var Ai=e.defineComponent({name:"QDialog",inheritAttrs:!1,props:{...Jt,...wo,transitionShow:String,transitionHide:String,persistent:Boolean,autoClose:Boolean,noEscDismiss:Boolean,noBackdropDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,seamless:Boolean,maximized:Boolean,fullWidth:Boolean,fullHeight:Boolean,square:Boolean,position:{type:String,default:"standard",validator:e=>"standard"===e||["top","bottom","left","right"].includes(e)}},emits:[...eo,"shake","click","escape-key"],setup(t,{slots:o,emit:n,attrs:a}){const l=e.getCurrentInstance(),i=e.ref(null),r=e.ref(!1),s=e.ref(!1),u=e.ref(!1);let c,d,v,p=null;const m=e.computed(()=>!0!==t.persistent&&!0!==t.noRouteDismiss&&!0!==t.seamless),{preventBodyScroll:f}=zi(),{registerTimeout:h,removeTimeout:g}=Co(),{registerTick:b,removeTick:y,prepareTick:w}=_o(),{showPortal:x,hidePortal:_,portalIsActive:C,renderPortal:S}=yo(l,i,Q,!0),{hide:q}=to({showing:r,hideOnRouteChange:m,handleShow:E,handleHide:P,processOnMount:!0}),{addToHistory:k,removeFromHistory:$}=bi(r,q,m),M=e.computed(()=>"q-dialog__inner flex no-pointer-events"+` q-dialog__inner--${!0===t.maximized?"maximized":"minimized"}`+` q-dialog__inner--${t.position} ${Ei[t.position]}`+(!0===u.value?" q-dialog__inner--animating":"")+(!0===t.fullWidth?" q-dialog__inner--fullwidth":"")+(!0===t.fullHeight?" q-dialog__inner--fullheight":"")+(!0===t.square?" q-dialog__inner--square":"")),T=e.computed(()=>"q-transition--"+(void 0===t.transitionShow?Pi[t.position][0]:t.transitionShow)),B=e.computed(()=>"q-transition--"+(void 0===t.transitionHide?Pi[t.position][1]:t.transitionHide)),O=e.computed(()=>!0===s.value?B.value:T.value),V=e.computed(()=>!0===r.value&&!0!==t.seamless),z=e.computed(()=>!0===t.autoClose?{onClick:j}:{}),L=e.computed(()=>["q-dialog fullscreen no-pointer-events "+`q-dialog--${!0===V.value?"modal":"seamless"}`,a.class]);function E(e){g(),y(),k(),p=!1===t.noRefocus&&null!==document.activeElement?document.activeElement:null,N(t.maximized),x(),u.value=!0,!0!==t.noFocus&&(null!==document.activeElement&&document.activeElement.blur(),b(A),w()),h(()=>{if(!0===l.proxy.$q.platform.is.ios){if(!0!==t.seamless&&document.activeElement){const{top:e,bottom:t}=document.activeElement.getBoundingClientRect(),{innerHeight:o}=window,n=void 0!==window.visualViewport?window.visualViewport.height:o;e>0&&t>n/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-n,t>=o?1/0:Math.ceil(document.scrollingElement.scrollTop+t-n/2))),document.activeElement.scrollIntoView()}v=!0,i.value.click(),v=!1}x(!0),u.value=!1,n("show",e)},t.transitionDuration)}function P(e){g(),y(),$(),R(!0),u.value=!0,null!==p&&p.focus(),h(()=>{_(),u.value=!1,n("hide",e)},t.transitionDuration)}function A(){io(()=>{let e=i.value;null!==e&&!0!==e.contains(document.activeElement)&&(e=e.querySelector("[autofocus], [data-autofocus]")||e,e.focus())})}function F(){A(),n("shake");const e=i.value;null!==e&&(e.classList.remove("q-animate--scale"),e.classList.add("q-animate--scale"),clearTimeout(c),c=setTimeout(()=>{null!==i.value&&(e.classList.remove("q-animate--scale"),A())},170))}function I(){!0!==t.seamless&&(!0===t.persistent||!0===t.noEscDismiss?!0!==t.maximized&&F():(n("escape-key"),q()))}function R(e){clearTimeout(c),!0!==e&&!0!==r.value||(N(!1),!0!==t.seamless&&(f(!1),Zo(H),Wo(I)))}function N(e){!0===e?!0!==d&&(Li<1&&document.body.classList.add("q-body--dialog"),Li++,d=!0):!0===d&&(Li<2&&document.body.classList.remove("q-body--dialog"),Li--,d=!1)}function j(e){!0!==v&&(q(e),n("click",e))}function D(e){!0!==t.persistent&&!0!==t.noBackdropDismiss?q(e):F()}function H(e){!0===r.value&&!0===C.value&&!0!==zt(i.value,e.target)&&A()}function Q(){return e.h("div",{...a,class:L.value},[e.h(e.Transition,{name:"q-transition--fade",appear:!0},()=>!0===V.value?e.h("div",{class:"q-dialog__backdrop fixed-full","aria-hidden":"true",onMousedown:D}):null),e.h(e.Transition,{name:O.value,appear:!0},()=>!0===r.value?e.h("div",{ref:i,class:M.value,tabindex:-1,...z.value},Fe(o.default)):null)])}return e.watch(r,t=>{e.nextTick(()=>{s.value=t})}),e.watch(()=>t.maximized,e=>{!0===r.value&&N(e)}),e.watch(V,e=>{f(e),!0===e?(Xo(H),Uo(I)):(Zo(H),Wo(I))}),Object.assign(l.proxy,{focus:A,shake:F,__updateRefocusTarget(e){p=e||null}}),e.onBeforeUnmount(()=>{R()}),S}});const Fi=150;var Ii=e.defineComponent({name:"QDrawer",inheritAttrs:!1,props:{...Jt,...at,side:{type:String,default:"left",validator:e=>["left","right"].includes(e)},width:{type:Number,default:300},mini:Boolean,miniToOverlay:Boolean,miniWidth:{type:Number,default:57},breakpoint:{type:Number,default:1023},showIfAbove:Boolean,behavior:{type:String,validator:e=>["default","desktop","mobile"].includes(e),default:"default"},bordered:Boolean,elevated:Boolean,overlay:Boolean,persistent:Boolean,noSwipeOpen:Boolean,noSwipeClose:Boolean,noSwipeBackdrop:Boolean},emits:[...eo,"on-layout","mini-state"],setup(t,{slots:o,emit:n,attrs:a}){const l=e.getCurrentInstance(),{proxy:{$q:i}}=l,r=lt(t,i),{preventBodyScroll:s}=zi(),{registerTimeout:u}=Co(),c=e.inject(ae,()=>{console.error("QDrawer needs to be child of QLayout")});let d,v,p;const m=e.ref("mobile"===t.behavior||"desktop"!==t.behavior&&c.totalWidth.value<=t.breakpoint),f=e.computed(()=>!0===t.mini&&!0!==m.value),h=e.computed(()=>!0===f.value?t.miniWidth:t.width),g=e.ref(!0===t.showIfAbove&&!1===m.value||!0===t.modelValue),b=e.computed(()=>!0!==t.persistent&&(!0===m.value||!0===P.value));function y(e,t){if(C(),!1!==e&&c.animate(),Y(0),!0===m.value){const e=c.instances[V.value];void 0!==e&&!0===e.belowBreakpoint&&e.hide(!1),X(1),!0!==c.isContainer.value&&s(!0)}else X(0),!1!==e&&Z(!1);u(()=>{!1!==e&&Z(!0),!0!==t&&n("show",e)},Fi)}function w(e,t){S(),!1!==e&&c.animate(),X(0),Y($.value*h.value),te(),!0!==t&&u(()=>{n("hide",e)},Fi)}const{show:x,hide:_}=to({showing:g,hideOnRouteChange:b,handleShow:y,handleHide:w}),{addToHistory:C,removeFromHistory:S}=bi(g,_,b),q={belowBreakpoint:m,hide:_},k=e.computed(()=>"right"===t.side),$=e.computed(()=>(!0===i.lang.rtl?-1:1)*(!0===k.value?1:-1)),M=e.ref(0),T=e.ref(!1),B=e.ref(!1),O=e.ref(h.value*$.value),V=e.computed(()=>!0===k.value?"left":"right"),z=e.computed(()=>!0===g.value&&!1===m.value&&!1===t.overlay?!0===t.miniToOverlay?t.miniWidth:h.value:0),L=e.computed(()=>!0===t.overlay||!0===t.miniToOverlay||c.view.value.indexOf(k.value?"R":"L")>-1||!0===i.platform.is.ios&&!0===c.isContainer.value),E=e.computed(()=>!1===t.overlay&&!0===g.value&&!1===m.value),P=e.computed(()=>!0===t.overlay&&!0===g.value&&!1===m.value),A=e.computed(()=>"fullscreen q-drawer__backdrop"+(!1===g.value&&!1===T.value?" hidden":"")),F=e.computed(()=>({backgroundColor:`rgba(0,0,0,${.4*M.value})`})),I=e.computed(()=>!0===k.value?"r"===c.rows.value.top[2]:"l"===c.rows.value.top[0]),R=e.computed(()=>!0===k.value?"r"===c.rows.value.bottom[2]:"l"===c.rows.value.bottom[0]),N=e.computed(()=>{const e={};return!0===c.header.space&&!1===I.value&&(!0===L.value?e.top=`${c.header.offset}px`:!0===c.header.space&&(e.top=`${c.header.size}px`)),!0===c.footer.space&&!1===R.value&&(!0===L.value?e.bottom=`${c.footer.offset}px`:!0===c.footer.space&&(e.bottom=`${c.footer.size}px`)),e}),j=e.computed(()=>{const e={width:`${h.value}px`,transform:`translateX(${O.value}px)`};return!0===m.value?e:Object.assign(e,N.value)}),D=e.computed(()=>"q-drawer__content fit "+(!0!==c.isContainer.value?"scroll":"overflow-auto")),H=e.computed(()=>`q-drawer q-drawer--${t.side}`+(!0===B.value?" q-drawer--mini-animate":"")+(!0===t.bordered?" q-drawer--bordered":"")+(!0===r.value?" q-drawer--dark q-dark":"")+(!0===T.value?" no-transition":!0===g.value?"":" q-layout--prevent-focus")+(!0===m.value?" fixed q-drawer--on-top q-drawer--mobile q-drawer--top-padding":` q-drawer--${!0===f.value?"mini":"standard"}`+(!0===L.value||!0!==E.value?" fixed":"")+(!0===t.overlay||!0===t.miniToOverlay?" q-drawer--on-top":"")+(!0===I.value?" q-drawer--top-padding":""))),Q=e.computed(()=>{const e=!0===i.lang.rtl?t.side:V.value;return[[ha,J,void 0,{[e]:!0,mouse:!0}]]}),U=e.computed(()=>{const e=!0===i.lang.rtl?V.value:t.side;return[[ha,ee,void 0,{[e]:!0,mouse:!0}]]}),W=e.computed(()=>{const e=!0===i.lang.rtl?V.value:t.side;return[[ha,ee,void 0,{[e]:!0,mouse:!0,mouseAllDir:!0}]]});function Y(t){void 0===t?e.nextTick(()=>{t=!0===g.value?0:h.value,Y($.value*t)}):(!0!==c.isContainer.value||!0!==k.value||!0!==m.value&&Math.abs(t)!==h.value||(t+=$.value*c.scrollbarWidth.value),O.value=t)}function K(){ne(m,"mobile"===t.behavior||"desktop"!==t.behavior&&c.totalWidth.value<=t.breakpoint)}function X(e){M.value=e}function Z(e){const t=!0===e?"remove":!0!==c.isContainer.value?"add":"";""!==t&&document.body.classList[t]("q-body--drawer-toggle")}function G(){clearTimeout(v),l.proxy&&l.proxy.$el&&l.proxy.$el.classList.add("q-drawer--mini-animate"),B.value=!0,v=setTimeout(()=>{B.value=!1},150)}function J(e){if(!1!==g.value)return;const t=h.value,o=xe(e.distance.x,0,t);if(!0===e.isFinal){const e=o>=Math.min(75,t);return!0===e?x():(c.animate(),X(0),Y($.value*t)),void(T.value=!1)}Y((!0===i.lang.rtl?!0!==k.value:k.value)?Math.max(t-o,0):Math.min(0,o-t)),X(xe(o/t,0,1)),!0===e.isFirst&&(T.value=!0)}function ee(e){if(!0!==g.value)return;const o=h.value,n=e.direction===t.side,a=(!0===i.lang.rtl?!0!==n:n)?xe(e.distance.x,0,o):0;if(!0===e.isFinal){const e=Math.abs(a)<Math.min(75,o);return!0===e?(c.animate(),X(1),Y(0)):_(),void(T.value=!1)}Y($.value*a),X(xe(1-a/o,0,1)),!0===e.isFirst&&(T.value=!0)}function te(){s(!1),Z(!0)}function oe(e,o){c.update(t.side,e,o)}function ne(e,t){e.value!==t&&(e.value=t)}function le(e,o){oe("size",!0===e?t.miniWidth:o)}return e.watch(m,e=>{!0===e?(d=g.value,!0===g.value&&_(!1)):!1===t.overlay&&"mobile"!==t.behavior&&!1!==d&&(!0===g.value?(Y(0),X(0),te()):x(!1))}),e.watch(c.totalWidth,e=>{ne(m,"mobile"===t.behavior||"desktop"!==t.behavior&&e<=t.breakpoint)}),e.watch(()=>t.side,(e,t)=>{c.instances[t]===q&&(c.instances[t]=void 0,c[t].space=!1,c[t].offset=0),c.instances[e]=q,c[e].size=h.value,c[e].space=E.value,c[e].offset=z.value}),e.watch(()=>t.behavior+t.breakpoint,K),e.watch(c.isContainer,e=>{!0===g.value&&s(!0!==e)}),e.watch(c.scrollbarWidth,()=>{Y(!0===g.value?0:void 0)}),e.watch(z,e=>{oe("offset",e)}),e.watch(E,e=>{n("on-layout",e),oe("space",e)}),e.watch(k,()=>{Y()}),e.watch(h,e=>{Y(),le(t.miniToOverlay,e)}),e.watch(()=>t.miniToOverlay,e=>{le(e,h.value)}),e.watch(()=>i.lang.rtl,()=>{Y()}),e.watch(()=>t.mini,()=>{!0===t.modelValue&&(G(),c.animate())}),e.watch(f,e=>{n("mini-state",e)}),c.instances[t.side]=q,le(t.miniToOverlay,h.value),oe("space",E.value),oe("offset",z.value),!0===t.showIfAbove&&!0!==t.modelValue&&!0===g.value&&void 0!==t["onUpdate:modelValue"]&&n("update:modelValue",!0),e.onMounted(()=>{n("on-layout",E.value),n("mini-state",f.value),d=!0===t.showIfAbove;const o=()=>{const e=!0===g.value?y:w;e(!1,!0)};0===c.totalWidth.value?p=e.watch(c.totalWidth,()=>{p(),p=void 0,!1===g.value&&!0===t.showIfAbove&&!1===m.value?x(!1):o()}):e.nextTick(o)}),e.onBeforeUnmount(()=>{void 0!==p&&p(),clearTimeout(v),!0===g.value&&te(),c.instances[t.side]===q&&(c.instances[t.side]=void 0,oe("size",0),oe("offset",0),oe("space",!1))}),()=>{const n=[];!0===m.value&&(!1===t.noSwipeOpen&&n.push(e.withDirectives(e.h("div",{key:"open",class:`q-drawer__opener fixed-${t.side}`,"aria-hidden":"true"}),Q.value)),n.push(je("div",{ref:"backdrop",class:A.value,style:F.value,"aria-hidden":"true",onClick:_},void 0,"backdrop",!0!==t.noSwipeBackdrop&&!0===g.value,()=>W.value)));const l=!0===f.value&&void 0!==o.mini,i=[e.h("div",{...a,key:""+l,class:[D.value,a.class]},!0===l?o.mini():Fe(o.default))];return!0===t.elevated&&!0===g.value&&i.push(e.h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),n.push(je("aside",{ref:"content",class:H.value,style:j.value},i,"contentclose",!0!==t.noSwipeClose&&!0===m.value,()=>U.value)),e.h("div",{class:"q-drawer-container"},n)}}});function Ri(e,t){if(t&&e===t)return null;const o=e.nodeName.toLowerCase();if(!0===["div","li","ul","ol","blockquote"].includes(o))return e;const n=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,a=n.display;return"block"===a||"table"===a?e:Ri(e.parentNode)}function Ni(e,t,o){return!(!e||e===document.body)&&(!0===o&&e===t||(t===document?document.body:t).contains(e.parentNode))}function ji(e,t,o){if(o||(o=document.createRange(),o.selectNode(e),o.setStart(e,0)),0===t.count)o.setEnd(e,t.count);else if(t.count>0)if(e.nodeType===Node.TEXT_NODE)e.textContent.length<t.count?t.count-=e.textContent.length:(o.setEnd(e,t.count),t.count=0);else for(let n=0;0!==t.count&&n<e.childNodes.length;n++)o=ji(e.childNodes[n],t,o);return o}const Di=/^https?:\/\//;class Hi{constructor(e,t){this.el=e,this.eVm=t,this._range=null}get selection(){if(this.el){const e=document.getSelection();if(Ni(e.anchorNode,this.el,!0)&&Ni(e.focusNode,this.el,!0))return e}return null}get hasSelection(){return null!==this.selection&&this.selection.toString().length>0}get range(){const e=this.selection;return null!==e&&e.rangeCount?e.getRangeAt(0):this._range}get parent(){const e=this.range;if(null!==e){const t=e.startContainer;return t.nodeType===document.ELEMENT_NODE?t:t.parentNode}return null}get blockParent(){const e=this.parent;return null!==e?Ri(e,this.el):null}save(e=this.range){null!==e&&(this._range=e)}restore(e=this._range){const t=document.createRange(),o=document.getSelection();null!==e?(t.setStart(e.startContainer,e.startOffset),t.setEnd(e.endContainer,e.endOffset),o.removeAllRanges(),o.addRange(t)):(o.selectAllChildren(this.el),o.collapseToEnd())}savePosition(){let e,t=-1;const o=document.getSelection(),n=this.el.parentNode;if(o.focusNode&&Ni(o.focusNode,n)){e=o.focusNode,t=o.focusOffset;while(e&&e!==n)e!==this.el&&e.previousSibling?(e=e.previousSibling,t+=e.textContent.length):e=e.parentNode}this.savedPos=t}restorePosition(e=0){if(this.savedPos>0&&this.savedPos<e){const e=window.getSelection(),t=ji(this.el,{count:this.savedPos});t&&(t.collapse(!1),e.removeAllRanges(),e.addRange(t))}}hasParent(e,t){const o=t?this.parent:this.blockParent;return null!==o&&o.nodeName.toLowerCase()===e.toLowerCase()}hasParents(e,t,o=this.parent){return null!==o&&(null!==o&&!0===e.includes(o.nodeName.toLowerCase())||!0===t&&this.hasParents(e,t,o.parentNode))}is(e,t){if(null===this.selection)return!1;switch(e){case"formatBlock":return"DIV"===t&&this.parent===this.el||this.hasParent(t,"PRE"===t);case"link":return this.hasParent("A",!0);case"fontSize":return document.queryCommandValue(e)===t;case"fontName":const o=document.queryCommandValue(e);return o===`"${t}"`||o===t;case"fullscreen":return this.eVm.inFullscreen.value;case"viewsource":return this.eVm.isViewingSource.value;case void 0:return!1;default:const n=document.queryCommandState(e);return void 0!==t?n===t:n}}getParentAttribute(e){return null!==this.parent?this.parent.getAttribute(e):null}can(e){return"outdent"===e?this.hasParents(["blockquote","li"],!0):"indent"===e?this.hasParents(["li"],!0):"link"===e?null!==this.selection||this.is("link"):void 0}apply(e,t,o=m){if("formatBlock"===e)["BLOCKQUOTE","H1","H2","H3","H4","H5","H6"].includes(t)&&this.is(e,t)&&(e="outdent",t=null),"PRE"===t&&this.is(e,"PRE")&&(t="P");else{if("print"===e){o();const e=window.open();return e.document.write(`\n        <!doctype html>\n        <html>\n          <head>\n            <title>Print - ${document.title}</title>\n          </head>\n          <body>\n            <div>${this.el.innerHTML}</div>\n          </body>\n        </html>\n      `),e.print(),void e.close()}if("link"===e){const e=this.getParentAttribute("href");if(null===e){const e=this.selectWord(this.selection),t=e?e.toString():"";if(!t.length&&(!this.range||!this.range.cloneContents().querySelector("img")))return;this.eVm.editLinkUrl.value=Di.test(t)?t:"https://",document.execCommand("createLink",!1,this.eVm.editLinkUrl.value),this.save(e.getRangeAt(0))}else this.eVm.editLinkUrl.value=e,this.range.selectNodeContents(this.parent),this.save();return}if("fullscreen"===e)return this.eVm.toggleFullscreen(),void o();if("viewsource"===e)return this.eVm.isViewingSource.value=!1===this.eVm.isViewingSource.value,this.eVm.setContent(this.eVm.props.modelValue),void o()}document.execCommand(e,!1,t),o()}selectWord(e){if(null===e||!0!==e.isCollapsed||void 0===e.modify)return e;const t=document.createRange();t.setStart(e.anchorNode,e.anchorOffset),t.setEnd(e.focusNode,e.focusOffset);const o=t.collapsed?["backward","forward"]:["forward","backward"];t.detach();const n=e.focusNode,a=e.focusOffset;return e.collapse(e.anchorNode,e.anchorOffset),e.modify("move",o[0],"character"),e.modify("move",o[1],"word"),e.extend(n,a),e.modify("extend",o[1],"character"),e.modify("extend",o[0],"word"),e}}var Qi=e.defineComponent({name:"QTooltip",inheritAttrs:!1,props:{...Xt,...Jt,...wo,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null},transitionShow:{default:"jump-down"},transitionHide:{default:"jump-up"},anchor:{type:String,default:"bottom middle",validator:sn},self:{type:String,default:"top middle",validator:sn},offset:{type:Array,default:()=>[14,14],validator:un},scrollTarget:{default:void 0},delay:{type:Number,default:0},hideDelay:{type:Number,default:0}},emits:[...eo],setup(t,{slots:o,emit:n,attrs:a}){let l,i;const r=e.getCurrentInstance(),{proxy:{$q:s}}=r,u=e.ref(null),c=e.ref(!1),d=e.computed(()=>dn(t.anchor,s.lang.rtl)),v=e.computed(()=>dn(t.self,s.lang.rtl)),p=e.computed(()=>!0!==t.persistent),{registerTick:m,removeTick:f,prepareTick:h}=_o(),{registerTimeout:g,removeTimeout:b}=Co(),{transition:y,transitionStyle:w}=xo(t,c),{localScrollTarget:x,changeScrollEvent:_,unconfigureScrollTarget:C}=Gt(t,j),{anchorEl:S,canShow:k,anchorEvents:T}=Zt({showing:c,configureAnchorEl:N}),{show:B,hide:O}=to({showing:c,canShow:k,handleShow:E,handleHide:P,hideOnRouteChange:p,processOnMount:!0});Object.assign(T,{delayShow:I,delayHide:R});const{showPortal:V,hidePortal:z,renderPortal:L}=yo(r,u,H);if(!0===s.platform.is.mobile){const o={anchorEl:S,innerRef:u,onClickOutside(e){return O(e),e.target.classList.contains("q-dialog__backdrop")&&q(e),!0}},n=e.computed(()=>null===t.modelValue&&!0!==t.persistent&&!0===c.value);e.watch(n,e=>{const t=!0===e?nn:an;t(o)}),e.onBeforeUnmount(()=>{an(o)})}function E(o){f(),b(),V(),m(()=>{i=new MutationObserver(()=>F()),i.observe(u.value,{attributes:!1,childList:!0,characterData:!0,subtree:!0}),F(),j()}),h(),void 0===l&&(l=e.watch(()=>s.screen.width+"|"+s.screen.height+"|"+t.self+"|"+t.anchor+"|"+s.lang.rtl,F)),g(()=>{V(!0),n("show",o)},t.transitionDuration)}function P(e){f(),b(),A(),g(()=>{z(),n("hide",e)},t.transitionDuration)}function A(){void 0!==i&&(i.disconnect(),i=void 0),void 0!==l&&(l(),l=void 0),C(),M(T,"tooltipTemp")}function F(){const e=u.value;void 0!==S.value&&e&&mn({el:e,offset:t.offset,anchorEl:S.value,anchorOrigin:d.value,selfOrigin:v.value,maxHeight:t.maxHeight,maxWidth:t.maxWidth})}function I(e){if(!0===s.platform.is.mobile){Kt(),document.body.classList.add("non-selectable");const e=S.value,t=["touchmove","touchcancel","touchend","click"].map(t=>[e,t,"__delayHide","passiveCapture"]);$(T,"tooltipTemp",t)}g(()=>{B(e)},t.delay)}function R(e){b(),!0===s.platform.is.mobile&&(M(T,"tooltipTemp"),Kt(),setTimeout(()=>{document.body.classList.remove("non-selectable")},10)),g(()=>{O(e)},t.hideDelay)}function N(){if(!0===t.noParentEvent||void 0===S.value)return;const e=!0===s.platform.is.mobile?[[S.value,"touchstart","delayShow","passive"]]:[[S.value,"mouseenter","delayShow","passive"],[S.value,"mouseleave","delayHide","passive"]];$(T,"anchor",e)}function j(){if(void 0!==S.value||void 0!==t.scrollTarget){x.value=qo(S.value,t.scrollTarget);const e=!0===t.noParentEvent?F:O;_(x.value,e)}}function D(){return!0===c.value?e.h("div",{...a,ref:u,class:["q-tooltip q-tooltip--style q-position-engine no-pointer-events",a.class],style:w.value,role:"complementary"},Fe(o.default)):null}function H(){return e.h(e.Transition,{name:y.value,appear:!0},D)}return e.onBeforeUnmount(A),Object.assign(r.proxy,{updatePosition:F}),L}}),Ui=e.defineComponent({name:"QItem",props:{...at,...yt,tag:{type:String,default:"div"},active:Boolean,clickable:Boolean,dense:Boolean,insetLevel:Number,tabindex:[String,Number],focused:Boolean,manualFocus:Boolean},emits:["click","keyup"],setup(t,{slots:o,emit:n}){const{proxy:{$q:a}}=e.getCurrentInstance(),l=lt(t,a),{hasLink:i,linkProps:r,linkClass:s,linkTag:u,navigateToLink:c}=wt(),d=e.ref(null),v=e.ref(null),p=e.computed(()=>!0===t.clickable||!0===i.value||"a"===t.tag||"label"===t.tag),m=e.computed(()=>!0!==t.disable&&!0===p.value),f=e.computed(()=>"q-item q-item-type row no-wrap"+(!0===t.dense?" q-item--dense":"")+(!0===l.value?" q-item--dark":"")+(!0===i.value?s.value:!0===t.active?`${void 0!==t.activeClass?` ${t.activeClass}`:""} q-item--active`:"")+(!0===t.disable?" disabled":"")+(!0===m.value?" q-item--clickable q-link cursor-pointer "+(!0===t.manualFocus?"q-manual-focusable":"q-focusable q-hoverable")+(!0===t.focused?" q-manual-focusable--focused":""):"")),h=e.computed(()=>{if(void 0===t.insetLevel)return null;const e=!0===a.lang.rtl?"Right":"Left";return{["padding"+e]:16+56*t.insetLevel+"px"}});function g(e){!0===m.value&&(null!==v.value&&(!0!==e.qKeyEvent&&document.activeElement===d.value?v.value.focus():document.activeElement===v.value&&d.value.focus()),!0===i.value&&c(e),n("click",e))}function b(e){if(!0===m.value&&!0===W(e,13)){q(e),e.qKeyEvent=!0;const t=new MouseEvent("click",e);t.qKeyEvent=!0,d.value.dispatchEvent(t)}n("keyup",e)}function y(){const t=Ie(o.default,[]);return!0===m.value&&t.unshift(e.h("div",{class:"q-focus-helper",tabindex:-1,ref:v})),t}return()=>{const o={ref:d,class:f.value,style:h.value,onClick:g,onKeyup:b};return!0===m.value?(o.tabindex=t.tabindex||"0",Object.assign(o,r.value)):!0===p.value&&(o["aria-disabled"]="true"),e.h(u.value,o,y())}}}),Wi=e.defineComponent({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(t,{slots:o}){const n=e.computed(()=>"q-item__section column"+` q-item__section--${!0===t.avatar||!0===t.side||!0===t.thumbnail?"side":"main"}`+(!0===t.top?" q-item__section--top justify-start":" justify-center")+(!0===t.avatar?" q-item__section--avatar":"")+(!0===t.thumbnail?" q-item__section--thumbnail":"")+(!0===t.noWrap?" q-item__section--nowrap":""));return()=>e.h("div",{class:n.value},Fe(o.default))}});function Yi(e,t,o){t.handler?t.handler(e,o,o.caret):o.runCmd(t.cmd,t.param)}function Ki(t){return e.h("div",{class:"q-editor__toolbar-group"},t)}function Xi(t,o,n,a=!1){const l=a||"toggle"===o.type&&(o.toggled?o.toggled(t):o.cmd&&t.caret.is(o.cmd,o.param)),i=[];if(o.tip&&t.$q.platform.is.desktop){const t=o.key?e.h("div",[e.h("small",`(CTRL + ${String.fromCharCode(o.key)})`)]):null;i.push(e.h(Qi,{delay:1e3},()=>[e.h("div",{innerHTML:o.tip}),t]))}return e.h(Wt,{...t.buttonProps.value,icon:null!==o.icon?o.icon:void 0,color:l?o.toggleColor||t.props.toolbarToggleColor:o.color||t.props.toolbarColor,textColor:l&&!t.props.toolbarPush?null:o.textColor||t.props.toolbarTextColor,label:o.label,disable:!!o.disable&&("function"!==typeof o.disable||o.disable(t)),size:"sm",onClick(e){n&&n(),Yi(e,o,t)}},()=>i)}function Zi(t,o){const n="only-icons"===o.list;let a,l,i=o.label,r=null!==o.icon?o.icon:void 0;function s(){c.component.proxy.hide()}if(n)l=o.options.map(e=>{const o=void 0===e.type&&t.caret.is(e.cmd,e.param);return o&&(i=e.tip,r=null!==e.icon?e.icon:void 0),Xi(t,e,s,o)}),a=t.toolbarBackgroundClass.value,l=[Ki(l)];else{const n=void 0!==t.props.toolbarToggleColor?`text-${t.props.toolbarToggleColor}`:null,u=void 0!==t.props.toolbarTextColor?`text-${t.props.toolbarTextColor}`:null,c="no-icons"===o.list;l=o.options.map(o=>{const a=!!o.disable&&o.disable(t),l=void 0===o.type&&t.caret.is(o.cmd,o.param);l&&(i=o.tip,r=null!==o.icon?o.icon:void 0);const d=o.htmlTip;return e.h(Ui,{active:l,activeClass:n,clickable:!0,disable:a,dense:!0,onClick(e){s(),null!==t.contentRef.value&&t.contentRef.value.focus(),t.caret.restore(),Yi(e,o,t)}},()=>[!0===c?null:e.h(Wi,{class:l?n:u,side:!0},()=>e.h(et,{name:null!==o.icon?o.icon:void 0})),e.h(Wi,d?()=>e.h("div",{class:"text-no-wrap",innerHTML:o.htmlTip}):o.tip?()=>e.h("div",{class:"text-no-wrap"},o.tip):void 0)])}),a=[t.toolbarBackgroundClass.value,u]}const u=o.highlight&&i!==o.label,c=e.h(gn,{...t.buttonProps.value,noCaps:!0,noWrap:!0,color:u?t.props.toolbarToggleColor:t.props.toolbarColor,textColor:u&&!t.props.toolbarPush?null:t.props.toolbarTextColor,label:o.fixedLabel?o.label:i,icon:o.fixedIcon?null!==o.icon?o.icon:void 0:r,contentClass:a},()=>l);return c}function Gi(e){if(e.caret)return e.buttons.value.filter(t=>{return!e.isViewingSource.value||t.find(e=>"viewsource"===e.cmd)}).map(t=>Ki(t.map(t=>{return(!e.isViewingSource.value||"viewsource"===t.cmd)&&("slot"===t.type?Fe(e.slots[t.slot]):"dropdown"===t.type?Zi(e,t):Xi(e,t))})))}function Ji(e,t,o,n={}){const a=Object.keys(n);if(0===a.length)return{};const l={default_font:{cmd:"fontName",param:e,icon:o,tip:t}};return a.forEach(e=>{const t=n[e];l[e]={cmd:"fontName",param:t,icon:o,tip:t,htmlTip:`<font face="${t}">${t}</font>`}}),l}function er(t){if(t.caret){const o=t.props.toolbarColor||t.props.toolbarTextColor;let n=t.editLinkUrl.value;const a=()=>{t.caret.restore(),n!==t.editLinkUrl.value&&document.execCommand("createLink",!1,""===n?" ":n),t.editLinkUrl.value=null};return[e.h("div",{class:`q-mx-xs text-${o}`},`${t.$q.lang.editor.url}: `),e.h("input",{key:"qedt_btm_input",class:"col q-editor__link-input",value:n,onInput:e=>{C(e),n=e.target.value},onKeydown:e=>{if(!0!==U(e))switch(e.keyCode){case 13:return S(e),a();case 27:S(e),t.caret.restore(),t.editLinkUrl.value&&"https://"!==t.editLinkUrl.value||document.execCommand("unlink"),t.editLinkUrl.value=null;break}}}),Ki([e.h(Wt,{key:"qedt_btm_rem",tabindex:-1,...t.buttonProps.value,label:t.$q.lang.label.remove,noCaps:!0,onClick:()=>{t.caret.restore(),document.execCommand("unlink"),t.editLinkUrl.value=null}}),e.h(Wt,{key:"qedt_btm_upd",...t.buttonProps.value,label:t.$q.lang.label.update,noCaps:!0,onClick:a})])]}}const tr=/^on[A-Z]/;function or(t){const o={listeners:e.ref({}),attributes:e.ref({})};function n(){const e={},n={};Object.keys(t).forEach(o=>{!0===tr.test(o)?e[o]=t[o]:"class"!==o&&"style"!==o&&(n[o]=t[o])}),o.listeners.value=e,o.attributes.value=n}return e.onBeforeUpdate(n),n(),o}const nr=Object.prototype.toString,ar=Object.prototype.hasOwnProperty,lr={};function ir(e){return null===e?String(e):lr[nr.call(e)]||"object"}function rr(e){if(!e||"object"!==ir(e))return!1;if(e.constructor&&!ar.call(e,"constructor")&&!ar.call(e.constructor.prototype,"isPrototypeOf"))return!1;let t;for(t in e);return void 0===t||ar.call(e,t)}function sr(){let e,t,o,n,a,l,i=arguments[0]||{},r=1,s=!1;const u=arguments.length;for("boolean"===typeof i&&(s=i,i=arguments[1]||{},r=2),Object(i)!==i&&"function"!==ir(i)&&(i={}),u===r&&(i=this,r--);r<u;r++)if(null!==(e=arguments[r]))for(t in e)o=i[t],n=e[t],i!==n&&(s&&n&&(rr(n)||(a="array"===ir(n)))?(a?(a=!1,l=o&&"array"===ir(o)?o:[]):l=o&&rr(o)?o:{},i[t]=sr(s,l,n)):void 0!==n&&(i[t]=n));return i}"Boolean Number String Function Array Date RegExp Object".split(" ").forEach(e=>{lr["[object "+e+"]"]=e.toLowerCase()});var ur=e.defineComponent({name:"QEditor",props:{...at,...Fn,modelValue:{type:String,required:!0},readonly:Boolean,disable:Boolean,minHeight:{type:String,default:"10rem"},maxHeight:String,height:String,definitions:Object,fonts:Object,placeholder:String,toolbar:{type:Array,validator:e=>0===e.length||e.every(e=>e.length),default(){return[["left","center","right","justify"],["bold","italic","underline","strike"],["undo","redo"]]}},toolbarColor:String,toolbarBg:String,toolbarTextColor:String,toolbarToggleColor:{type:String,default:"primary"},toolbarOutline:Boolean,toolbarPush:Boolean,toolbarRounded:Boolean,paragraphTag:{type:String,validator:e=>["div","p"].includes(e),default:"div"},contentStyle:Object,contentClass:[Object,Array,String],square:Boolean,flat:Boolean,dense:Boolean},emits:[...In,"update:modelValue","keydown","click","mouseup","keyup","touchend","focus","blur"],setup(t,{slots:o,emit:n,attrs:a}){const{proxy:l}=e.getCurrentInstance(),{$q:i}=l,r=lt(t,i),{inFullscreen:s,toggleFullscreen:u}=Rn(),c=or(a),d=e.ref(null),v=e.ref(null),p=e.ref(null),m=e.ref(!1),f=e.computed(()=>!t.readonly&&!t.disable);let h,g,b=t.modelValue;document.execCommand("defaultParagraphSeparator",!1,t.paragraphTag),h=window.getComputedStyle(document.body).fontFamily;const y=e.computed(()=>t.toolbarBg?` bg-${t.toolbarBg}`:""),w=e.computed(()=>{const e=!0!==t.toolbarOutline&&!0!==t.toolbarPush;return{type:"a",flat:e,noWrap:!0,outline:t.toolbarOutline,push:t.toolbarPush,rounded:t.toolbarRounded,dense:!0,color:t.toolbarColor,disable:!f.value,size:"sm"}}),x=e.computed(()=>{const e=i.lang.editor,o=i.iconSet.editor;return{bold:{cmd:"bold",icon:o.bold,tip:e.bold,key:66},italic:{cmd:"italic",icon:o.italic,tip:e.italic,key:73},strike:{cmd:"strikeThrough",icon:o.strikethrough,tip:e.strikethrough,key:83},underline:{cmd:"underline",icon:o.underline,tip:e.underline,key:85},unordered:{cmd:"insertUnorderedList",icon:o.unorderedList,tip:e.unorderedList},ordered:{cmd:"insertOrderedList",icon:o.orderedList,tip:e.orderedList},subscript:{cmd:"subscript",icon:o.subscript,tip:e.subscript,htmlTip:"x<subscript>2</subscript>"},superscript:{cmd:"superscript",icon:o.superscript,tip:e.superscript,htmlTip:"x<superscript>2</superscript>"},link:{cmd:"link",disable:e=>e.caret&&!e.caret.can("link"),icon:o.hyperlink,tip:e.hyperlink,key:76},fullscreen:{cmd:"fullscreen",icon:o.toggleFullscreen,tip:e.toggleFullscreen,key:70},viewsource:{cmd:"viewsource",icon:o.viewSource,tip:e.viewSource},quote:{cmd:"formatBlock",param:"BLOCKQUOTE",icon:o.quote,tip:e.quote,key:81},left:{cmd:"justifyLeft",icon:o.left,tip:e.left},center:{cmd:"justifyCenter",icon:o.center,tip:e.center},right:{cmd:"justifyRight",icon:o.right,tip:e.right},justify:{cmd:"justifyFull",icon:o.justify,tip:e.justify},print:{type:"no-state",cmd:"print",icon:o.print,tip:e.print,key:80},outdent:{type:"no-state",disable:e=>e.caret&&!e.caret.can("outdent"),cmd:"outdent",icon:o.outdent,tip:e.outdent},indent:{type:"no-state",disable:e=>e.caret&&!e.caret.can("indent"),cmd:"indent",icon:o.indent,tip:e.indent},removeFormat:{type:"no-state",cmd:"removeFormat",icon:o.removeFormat,tip:e.removeFormat},hr:{type:"no-state",cmd:"insertHorizontalRule",icon:o.hr,tip:e.hr},undo:{type:"no-state",cmd:"undo",icon:o.undo,tip:e.undo,key:90},redo:{type:"no-state",cmd:"redo",icon:o.redo,tip:e.redo,key:89},h1:{cmd:"formatBlock",param:"H1",icon:o.heading1||o.heading,tip:e.heading1,htmlTip:`<h1 class="q-ma-none">${e.heading1}</h1>`},h2:{cmd:"formatBlock",param:"H2",icon:o.heading2||o.heading,tip:e.heading2,htmlTip:`<h2 class="q-ma-none">${e.heading2}</h2>`},h3:{cmd:"formatBlock",param:"H3",icon:o.heading3||o.heading,tip:e.heading3,htmlTip:`<h3 class="q-ma-none">${e.heading3}</h3>`},h4:{cmd:"formatBlock",param:"H4",icon:o.heading4||o.heading,tip:e.heading4,htmlTip:`<h4 class="q-ma-none">${e.heading4}</h4>`},h5:{cmd:"formatBlock",param:"H5",icon:o.heading5||o.heading,tip:e.heading5,htmlTip:`<h5 class="q-ma-none">${e.heading5}</h5>`},h6:{cmd:"formatBlock",param:"H6",icon:o.heading6||o.heading,tip:e.heading6,htmlTip:`<h6 class="q-ma-none">${e.heading6}</h6>`},p:{cmd:"formatBlock",param:t.paragraphTag,icon:o.heading,tip:e.paragraph},code:{cmd:"formatBlock",param:"PRE",icon:o.code,htmlTip:`<code>${e.code}</code>`},"size-1":{cmd:"fontSize",param:"1",icon:o.size1||o.size,tip:e.size1,htmlTip:`<font size="1">${e.size1}</font>`},"size-2":{cmd:"fontSize",param:"2",icon:o.size2||o.size,tip:e.size2,htmlTip:`<font size="2">${e.size2}</font>`},"size-3":{cmd:"fontSize",param:"3",icon:o.size3||o.size,tip:e.size3,htmlTip:`<font size="3">${e.size3}</font>`},"size-4":{cmd:"fontSize",param:"4",icon:o.size4||o.size,tip:e.size4,htmlTip:`<font size="4">${e.size4}</font>`},"size-5":{cmd:"fontSize",param:"5",icon:o.size5||o.size,tip:e.size5,htmlTip:`<font size="5">${e.size5}</font>`},"size-6":{cmd:"fontSize",param:"6",icon:o.size6||o.size,tip:e.size6,htmlTip:`<font size="6">${e.size6}</font>`},"size-7":{cmd:"fontSize",param:"7",icon:o.size7||o.size,tip:e.size7,htmlTip:`<font size="7">${e.size7}</font>`}}}),_=e.computed(()=>{const e=t.definitions||{},o=t.definitions||t.fonts?sr(!0,{},x.value,e,Ji(h,i.lang.editor.defaultFont,i.iconSet.editor.font,t.fonts)):x.value;return t.toolbar.map(t=>t.map(t=>{if(t.options)return{type:"dropdown",icon:t.icon,label:t.label,size:"sm",dense:!0,fixedLabel:t.fixedLabel,fixedIcon:t.fixedIcon,highlight:t.highlight,list:t.list,options:t.options.map(e=>o[e])};const n=o[t];return n?"no-state"===n.type||e[t]&&(void 0===n.cmd||x.value[n.cmd]&&"no-state"===x.value[n.cmd].type)?n:Object.assign({type:"toggle"},n):{type:"slot",slot:t}}))}),C={$q:i,props:t,slots:o,inFullscreen:s,toggleFullscreen:u,runCmd:H,isViewingSource:m,editLinkUrl:p,toolbarBackgroundClass:y,buttonProps:w,contentRef:v,buttons:_,setContent:D};e.watch(()=>t.modelValue,e=>{b!==e&&(b=e,D(e,!0))});const S=e.computed(()=>t.toolbar&&t.toolbar.length>0),k=e.computed(()=>{const e={},t=t=>{t.key&&(e[t.key]={cmd:t.cmd,param:t.param})};return _.value.forEach(e=>{e.forEach(e=>{e.options?e.options.forEach(t):t(e)})}),e}),$=e.computed(()=>s.value?t.contentStyle:[{minHeight:t.minHeight,height:t.height,maxHeight:t.maxHeight},t.contentStyle]),M=e.computed(()=>`q-editor q-editor--${!0===m.value?"source":"default"}`+(!0===t.disable?" disabled":"")+(!0===s.value?" fullscreen column":"")+(!0===t.square?" q-editor--square no-border-radius":"")+(!0===t.flat?" q-editor--flat":"")+(!0===t.dense?" q-editor--dense":"")+(!0===r.value?" q-editor--dark q-dark":"")),T=e.computed(()=>[t.contentClass,"q-editor__content",{col:s.value,"overflow-auto":s.value||t.maxHeight}]),B=e.computed(()=>!0===t.disable?{"aria-disabled":"true"}:!0===t.readonly?{"aria-readonly":"true"}:{});function O(){if(null!==v.value){const e=`inner${!0===m.value?"Text":"HTML"}`,o=v.value[e];o!==t.modelValue&&(b=o,n("update:modelValue",o))}}function V(e){if(n("keydown",e),!0!==e.ctrlKey||!0===U(e))return void Q();const t=e.keyCode,o=k.value[t];if(void 0!==o){const{cmd:t,param:n}=o;q(e),H(t,n,!1)}}function z(e){Q(),n("click",e)}function L(e){if(null!==v.value){const{scrollTop:e,scrollHeight:t}=v.value;g=t-e}C.caret.save(),n("blur",e)}function E(t){e.nextTick(()=>{null!==v.value&&void 0!==g&&(v.value.scrollTop=v.value.scrollHeight-g)}),n("focus",t)}function P(e){if(!0===d.value.contains(e.target)&&(null===e.relatedTarget||!0!==d.value.contains(e.relatedTarget))){const e=`inner${!0===m.value?"Text":"HTML"}`;C.caret.restorePosition(v.value[e].length),Q()}}function A(e){!0!==d.value.contains(e.target)||null!==e.relatedTarget&&!0===d.value.contains(e.relatedTarget)||(C.caret.savePosition(),Q())}function F(){g=void 0}function I(e){C.caret.save(),n("mouseup",e)}function R(){g=void 0}function N(e){C.caret.save(),n("keyup",e)}function j(e){C.caret.save(),n("touchend",e)}function D(e,t){if(null!==v.value){!0===t&&C.caret.savePosition();const o=`inner${!0===m.value?"Text":"HTML"}`;v.value[o]=e,!0===t&&(C.caret.restorePosition(v.value[o].length),Q())}}function H(e,t,o=!0){W(),C.caret.restore(),C.caret.apply(e,t,()=>{W(),C.caret.save(),o&&Q()})}function Q(){setTimeout(()=>{p.value=null,l.$forceUpdate()},1)}function W(){io(()=>{null!==v.value&&v.value.focus()})}function Y(){return v.value}return Object.assign(l,{runCmd:H,refreshToolbar:Q,focus:W,getContentEl:Y}),e.onMounted(()=>{C.caret=new Hi(v.value,C),D(t.modelValue),Q()}),()=>{let o;if(S.value){const t=[e.h("div",{key:"qedt_top",class:"q-editor__toolbar row no-wrap scroll-x"+y.value},Gi(C))];null!==p.value&&t.push(e.h("div",{key:"qedt_btm",class:"q-editor__toolbar row no-wrap items-center scroll-x"+y.value},er(C))),o=e.h("div",{key:"toolbar_ctainer",class:"q-editor__toolbars-container"},t)}return e.h("div",{ref:d,class:M.value,style:{height:!0===s.value?"100vh":null},...B.value,onFocusin:P,onFocusout:A},[o,e.h("div",{ref:v,style:$.value,class:T.value,contenteditable:f.value,placeholder:t.placeholder,...{},...c.listeners.value,onInput:O,onKeydown:V,onClick:z,onBlur:L,onFocus:E,onMousedown:F,onTouchstartPassive:R,onMouseup:I,onKeyup:N,onTouchend:j})])}}}),cr=e.defineComponent({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(t,{slots:o}){const n=e.computed(()=>parseInt(t.lines,10)),a=e.computed(()=>"q-item__label"+(!0===t.overline?" q-item__label--overline text-overline":"")+(!0===t.caption?" q-item__label--caption text-caption":"")+(!0===t.header?" q-item__label--header":"")+(1===n.value?" ellipsis":"")),l=e.computed(()=>{return void 0!==t.lines&&n.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":n.value}:null});return()=>e.h("div",{style:l.value,class:a.value},Fe(o.default))}}),dr=e.defineComponent({name:"QSlideTransition",props:{appear:Boolean,duration:{type:Number,default:300}},emits:["show","hide"],setup(t,{slots:o,emit:n}){let a,l,i,r,s,u,c=!1;function d(){a&&a(),a=null,c=!1,clearTimeout(i),clearTimeout(r),void 0!==l&&l.removeEventListener("transitionend",s),s=null}function v(e,o,n){e.style.overflowY="hidden",void 0!==o&&(e.style.height=`${o}px`),e.style.transition=`height ${t.duration}ms cubic-bezier(.25, .8, .50, 1)`,c=!0,a=n}function p(e,t){e.style.overflowY=null,e.style.height=null,e.style.transition=null,d(),t!==u&&n(t)}function m(e,o){let n=0;l=e,!0===c?(d(),n=e.offsetHeight===e.scrollHeight?0:void 0):u="hide",v(e,n,o),i=setTimeout(()=>{e.style.height=`${e.scrollHeight}px`,s=(t=>{Object(t)===t&&t.target!==e||p(e,"show")}),e.addEventListener("transitionend",s),r=setTimeout(s,1.1*t.duration)},100)}function f(e,o){let n;l=e,!0===c?d():(u="show",n=e.scrollHeight),v(e,n,o),i=setTimeout(()=>{e.style.height=0,s=(t=>{Object(t)===t&&t.target!==e||p(e,"hide")}),e.addEventListener("transitionend",s),r=setTimeout(s,1.1*t.duration)},100)}return e.onBeforeUnmount(()=>{!0===c&&d()}),()=>e.h(e.Transition,{css:!1,appear:t.appear,onEnter:m,onLeave:f},o.default)}});const vr={true:"inset",item:"item-inset","item-thumbnail":"item-thumbnail-inset"},pr={xs:2,sm:4,md:8,lg:16,xl:24};var mr=e.defineComponent({name:"QSeparator",props:{...at,spaced:[Boolean,String],inset:[Boolean,String],vertical:Boolean,color:String,size:String},setup(t){const o=e.getCurrentInstance(),n=lt(t,o.proxy.$q),a=e.computed(()=>!0===t.vertical?"vertical":"horizontal"),l=e.computed(()=>` q-separator--${a.value}`),i=e.computed(()=>!1!==t.inset?`${l.value}-${vr[t.inset]}`:""),r=e.computed(()=>`q-separator${l.value}${i.value}`+(void 0!==t.color?` bg-${t.color}`:"")+(!0===n.value?" q-separator--dark":"")),s=e.computed(()=>{const e={};if(void 0!==t.size&&(e[!0===t.vertical?"width":"height"]=t.size),!1!==t.spaced){const o=!0===t.spaced?`${pr.md}px`:t.spaced in pr?`${pr[t.spaced]}px`:t.spaced,n=!0===t.vertical?["Left","Right"]:["Top","Bottom"];e[`margin${n[0]}`]=e[`margin${n[1]}`]=o}return e});return()=>e.h("hr",{class:r.value,style:s.value,role:"separator","aria-orientation":a.value})}});let fr,hr=0;const gr=new Array(256);for(let rm=0;rm<256;rm++)gr[rm]=(rm+256).toString(16).substr(1);const br=(()=>{const e="undefined"!==typeof crypto?crypto:"undefined"!==typeof window?window.crypto||window.msCrypto:void 0;if(void 0!==e){if(void 0!==e.randomBytes)return e.randomBytes;if(void 0!==e.getRandomValues)return t=>{const o=new Uint8Array(t);return e.getRandomValues(o),o}}return e=>{const t=[];for(let o=e;o>0;o--)t.push(Math.floor(256*Math.random()));return t}})(),yr=4096;function wr(){(void 0===fr||hr+16>yr)&&(hr=0,fr=br(yr));const e=Array.prototype.slice.call(fr,hr,hr+=16);return e[6]=15&e[6]|64,e[8]=63&e[8]|128,gr[e[0]]+gr[e[1]]+gr[e[2]]+gr[e[3]]+"-"+gr[e[4]]+gr[e[5]]+"-"+gr[e[6]]+gr[e[7]]+"-"+gr[e[8]]+gr[e[9]]+"-"+gr[e[10]]+gr[e[11]]+gr[e[12]]+gr[e[13]]+gr[e[14]]+gr[e[15]]}const xr=e.shallowReactive({}),_r=Object.keys(yt);var Cr=e.defineComponent({name:"QExpansionItem",props:{...yt,...Jt,...at,icon:String,label:String,labelLines:[Number,String],caption:String,captionLines:[Number,String],dense:Boolean,expandIcon:String,expandedIcon:String,expandIconClass:[Array,String,Object],duration:Number,headerInsetLevel:Number,contentInsetLevel:Number,expandSeparator:Boolean,defaultOpened:Boolean,expandIconToggle:Boolean,switchToggleSide:Boolean,denseToggle:Boolean,group:String,popup:Boolean,headerStyle:[Array,String,Object],headerClass:[Array,String,Object]},emits:[...eo,"click","after-show","after-hide"],setup(t,{slots:o,emit:n}){const{proxy:{$q:a}}=e.getCurrentInstance(),l=lt(t,a),i=e.ref(null!==t.modelValue?t.modelValue:t.defaultOpened),r=e.ref(null),{hide:s,toggle:u}=to({showing:i});let c,d;const v=e.computed(()=>"q-expansion-item q-item-type"+` q-expansion-item--${!0===i.value?"expanded":"collapsed"}`+` q-expansion-item--${!0===t.popup?"popup":"standard"}`),p=e.computed(()=>{if(void 0===t.contentInsetLevel)return null;const e=!0===a.lang.rtl?"Right":"Left";return{["padding"+e]:56*t.contentInsetLevel+"px"}}),m=e.computed(()=>!0!==t.disable&&void 0!==t.to&&null!==t.to&&""!==t.to),f=e.computed(()=>{const e={};return _r.forEach(o=>{e[o]=t[o]}),e}),h=e.computed(()=>!0===m.value||!0!==t.expandIconToggle),g=e.computed(()=>void 0!==t.expandedIcon&&!0===i.value?t.expandedIcon:t.expandIcon||a.iconSet.expansionItem[!0===t.denseToggle?"denseIcon":"icon"]),b=e.computed(()=>!0!==t.disable&&(!0===m.value||!0===t.expandIconToggle));function y(e){!0!==m.value&&u(e),n("click",e)}function w(e){13===e.keyCode&&x(e,!0)}function x(e,t){!0!==t&&null!==r.value&&r.value.focus(),u(e),q(e)}function _(){n("after-show")}function C(){n("after-hide")}function S(){void 0===c&&(c=wr()),!0===i.value&&(xr[t.group]=c);const o=e.watch(i,e=>{!0===e?xr[t.group]=c:xr[t.group]===c&&delete xr[t.group]}),n=e.watch(()=>xr[t.group],(e,t)=>{t===c&&void 0!==e&&e!==c&&s()});d=(()=>{o(),n(),xr[t.group]===c&&delete xr[t.group],d=void 0})}function k(){const o={class:["q-focusable relative-position cursor-pointer"+`${!0===t.denseToggle&&!0===t.switchToggleSide?" items-end":""}`,t.expandIconClass],side:!0!==t.switchToggleSide,avatar:t.switchToggleSide},n=[e.h(et,{class:"q-expansion-item__toggle-icon"+(void 0===t.expandedIcon&&!0===i.value?" q-expansion-item__toggle-icon--rotated":""),name:g.value})];return!0===b.value&&(Object.assign(o,{tabindex:0,onClick:x,onKeyup:w}),n.unshift(e.h("div",{ref:r,class:"q-expansion-item__toggle-focus q-icon q-focus-helper q-focus-helper--rounded",tabindex:-1}))),e.h(Wi,o,()=>n)}function $(){let n;return void 0!==o.header?n=o.header().slice():(n=[e.h(Wi,()=>[e.h(cr,{lines:t.labelLines},()=>t.label||""),t.caption?e.h(cr,{lines:t.captionLines,caption:!0},()=>t.caption):null])],t.icon&&n[!0===t.switchToggleSide?"push":"unshift"](e.h(Wi,{side:!0===t.switchToggleSide,avatar:!0!==t.switchToggleSide},()=>e.h(et,{name:t.icon})))),!0!==t.disable&&n[!0===t.switchToggleSide?"unshift":"push"](k()),n}function M(){const o={ref:"item",style:t.headerStyle,class:t.headerClass,dark:l.value,disable:t.disable,dense:t.dense,insetLevel:t.headerInsetLevel};return!0===h.value&&(o.clickable=!0,o.onClick=y,!0===m.value&&Object.assign(o,f.value)),e.h(Ui,o,$)}function T(){return e.withDirectives(e.h("div",{key:"e-content",class:"q-expansion-item__content relative-position",style:p.value},Fe(o.default)),[[e.vShow,i.value]])}function B(){const o=[M(),e.h(dr,{duration:t.duration,onShow:_,onHide:C},T)];return!0===t.expandSeparator&&o.push(e.h(mr,{class:"q-expansion-item__border q-expansion-item__border--top absolute-top",dark:l.value}),e.h(mr,{class:"q-expansion-item__border q-expansion-item__border--bottom absolute-bottom",dark:l.value})),o}return e.watch(()=>t.group,e=>{void 0!==d&&d(),void 0!==e&&S()}),void 0!==t.group&&S(),e.onBeforeUnmount(()=>{void 0!==d&&d()}),()=>e.h("div",{class:v.value},[e.h("div",{class:"q-expansion-item__container relative-position"},B())])}});const Sr=["top","right","bottom","left"],qr={type:{type:String,default:"a"},outline:Boolean,push:Boolean,flat:Boolean,unelevated:Boolean,color:String,textColor:String,glossy:Boolean,square:Boolean,padding:String,label:{type:[String,Number],default:""},labelPosition:{type:String,default:"right",validator:e=>Sr.includes(e)},externalLabel:Boolean,hideLabel:{type:Boolean},labelClass:[Array,String,Object],labelStyle:[Array,String,Object],disable:Boolean,tabindex:[Number,String]};function kr(t,o){return{formClass:e.computed(()=>`q-fab--form-${!0===t.square?"square":"rounded"}`),stacked:e.computed(()=>!1===t.externalLabel&&["top","bottom"].includes(t.labelPosition)),labelProps:e.computed(()=>{if(!0===t.externalLabel){const e=null===t.hideLabel?!1===o.value:t.hideLabel;return{action:"push",data:{class:[t.labelClass,"q-fab__label q-tooltip--style q-fab__label--external"+` q-fab__label--external-${t.labelPosition}`+(!0===e?" q-fab__label--external-hidden":"")],style:t.labelStyle}}}return{action:["left","top"].includes(t.labelPosition)?"unshift":"push",data:{class:[t.labelClass,`q-fab__label q-fab__label--internal q-fab__label--internal-${t.labelPosition}`+(!0===t.hideLabel?" q-fab__label--internal-hidden":"")],style:t.labelStyle}}})}}const $r=["up","right","down","left"],Mr=["left","center","right"];var Tr=e.defineComponent({name:"QFab",props:{...qr,...Jt,icon:String,activeIcon:String,hideIcon:Boolean,hideLabel:{default:null},direction:{type:String,default:"right",validator:e=>$r.includes(e)},persistent:Boolean,verticalActionsAlign:{type:String,default:"center",validator:e=>Mr.includes(e)}},emits:eo,setup(t,{slots:o}){const n=e.ref(null),a=e.ref(!0===t.modelValue),{proxy:{$q:l}}=e.getCurrentInstance(),{formClass:i,labelProps:r}=kr(t,a),s=e.computed(()=>!0!==t.persistent),{hide:u,toggle:c}=to({showing:a,hideOnRouteChange:s}),d=e.computed(()=>"q-fab z-fab row inline justify-center"+` q-fab--align-${t.verticalActionsAlign} ${i.value}`+(!0===a.value?" q-fab--opened":"")),v=e.computed(()=>"q-fab__actions flex no-wrap inline"+` q-fab__actions--${t.direction}`);function p(){const n=[];return!0!==t.hideIcon&&n.push(e.h("div",{class:"q-fab__icon-holder"},[e.h(et,{class:"q-fab__icon absolute-full",name:t.icon||l.iconSet.fab.icon}),e.h(et,{class:"q-fab__active-icon absolute-full",name:t.activeIcon||l.iconSet.fab.activeIcon})])),""!==t.label&&n[r.value.action](e.h("div",r.value.data,[t.label])),Re(o.tooltip,n)}return e.provide(ie,{showing:a,onChildClick(e){u(e),null!==n.value&&n.value.$el.focus()}}),()=>e.h("div",{class:d.value},[e.h(Wt,{ref:n,class:i.value,...t,noWrap:!0,stack:t.stacked,align:void 0,icon:void 0,label:void 0,noCaps:!0,fab:!0,"aria-expanded":!0===a.value?"true":"false","aria-haspopup":"true",onClick:c},p),e.h("div",{class:v.value},Fe(o.default))])}});const Br={start:"self-end",center:"self-center",end:"self-start"},Or=Object.keys(Br);var Vr=e.defineComponent({name:"QFabAction",props:{...qr,icon:{type:String,default:""},anchor:{type:String,validator:e=>Or.includes(e)},to:[String,Object],replace:Boolean},emits:["click"],setup(t,{slots:o,emit:n}){const a=e.inject(ie,()=>({showing:{value:!0},onChildClick:m})),{formClass:l,labelProps:i}=kr(t,a.showing),r=e.computed(()=>{const e=Br[t.anchor];return l.value+(void 0!==e?` ${e}`:"")}),s=e.computed(()=>!0===t.disable||!0!==a.showing.value);function u(e){a.onChildClick(e),n("click",e)}function c(){const n=[];return""!==t.icon&&n.push(e.h(et,{name:t.icon})),""!==t.label&&n[i.value.action](e.h("div",i.value.data,[t.label])),Re(o.default,n)}const d=e.getCurrentInstance();return Object.assign(d.proxy,{click:u}),()=>e.h(Wt,{class:r.value,...t,noWrap:!0,stack:t.stacked,icon:void 0,label:void 0,noCaps:!0,fabMini:!0,disable:s.value,onClick:u},c)}});function zr({validate:t,resetValidation:o,requiresQForm:n}){const a=e.inject(re,!1);if(!1!==a){const{props:n,proxy:l}=e.getCurrentInstance();Object.assign(l,{validate:t}),e.watch(()=>n.disable,e=>{!0===e?("function"===typeof o&&o(),a.unbindComponent(l)):a.bindComponent(l)}),!0!==n.disable&&a.bindComponent(l),e.onBeforeUnmount(()=>{!0!==n.disable&&a.unbindComponent(l)})}else!0!==n&&console.error("Parent QForm not found on useFormChild()!")}const Lr=[!0,!1,"ondemand"],Er={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],validator:e=>Lr.includes(e)}};function Pr(t,o){const{props:n,proxy:a}=e.getCurrentInstance(),l=e.ref(!1),i=e.ref(null),r=e.ref(null);zr({validate:m,resetValidation:p,requiresQForm:!0});let s,u=0;const c=e.computed(()=>void 0!==n.rules&&null!==n.rules&&n.rules.length>0),d=e.computed(()=>!0===n.error||!0===l.value),v=e.computed(()=>"string"===typeof n.errorMessage&&n.errorMessage.length>0?n.errorMessage:i.value);function p(){u++,o.value=!1,r.value=null,l.value=!1,i.value=null}function m(e=n.modelValue){if(!0!==c.value)return!0;u++,!0!==o.value&&!0!==n.lazyRules&&(r.value=!0);const t=(e,t)=>{l.value!==e&&(l.value=e);const n=t||void 0;i.value!==n&&(i.value=n),!1!==o.value&&(o.value=!1)},a=[];for(let o=0;o<n.rules.length;o++){const l=n.rules[o];let i;if("function"===typeof l?i=l(e):"string"===typeof l&&void 0!==Da[l]&&(i=Da[l](e)),!1===i||"string"===typeof i)return t(!0,i),!1;!0!==i&&void 0!==i&&a.push(i)}if(0===a.length)return t(!1),!0;!0!==o.value&&(o.value=!0);const s=u;return Promise.all(a).then(e=>{if(s!==u)return!0;if(void 0===e||!1===Array.isArray(e)||0===e.length)return t(!1),!0;const o=e.find(e=>!1===e||"string"===typeof e);return t(void 0!==o,o),void 0===o},e=>{return s!==u||(console.error(e),t(!0),!1)})}function f(e){!0===c.value&&"ondemand"!==n.lazyRules&&(!0===r.value||!0!==n.lazyRules&&!0!==e)&&m()}return e.watch(()=>n.modelValue,()=>{f()}),e.watch(()=>n.reactiveRules,t=>{!0===t?void 0===s&&(s=e.watch(()=>n.rules,()=>{f(!0)})):void 0!==s&&(s(),s=void 0)},{immediate:!0}),e.watch(t,e=>{"ondemand"!==n.lazyRules&&(!0===e?null===r.value&&(r.value=!1):!1===r.value&&!0===c.value&&(r.value=!0,m()))}),e.onBeforeUnmount(()=>{void 0!==s&&s()}),Object.assign(a,{resetValidation:p,validate:m}),Object.defineProperty(a,"hasError",{get:()=>d.value}),{isDirtyModel:r,hasRules:c,hasError:d,computedErrorMessage:v,validate:m,resetValidation:p}}function Ar(e){return void 0===e?`f_${wr()}`:e}function Fr(e){return void 0!==e&&null!==e&&(""+e).length>0}const Ir={...at,...Er,label:String,stackLabel:Boolean,hint:String,hideHint:Boolean,prefix:String,suffix:String,labelColor:String,color:String,bgColor:String,filled:Boolean,outlined:Boolean,borderless:Boolean,standout:[Boolean,String],square:Boolean,loading:Boolean,labelSlot:Boolean,bottomSlots:Boolean,hideBottomSpace:Boolean,rounded:Boolean,dense:Boolean,itemAligned:Boolean,counter:Boolean,clearable:Boolean,clearIcon:String,disable:Boolean,readonly:Boolean,autofocus:Boolean,for:String,maxlength:[Number,String]},Rr=["update:modelValue","clear","focus","blur","popup-show","popup-hide"];function Nr(){const{props:t,attrs:o,proxy:n}=e.getCurrentInstance(),a=lt(t,n.$q);return{isDark:a,editable:e.computed(()=>!0!==t.disable&&!0!==t.readonly),innerLoading:e.ref(!1),focused:e.ref(!1),hasPopupOpen:e.ref(!1),splitAttrs:or(o),targetUid:e.ref(Ar(t.for)),rootRef:e.ref(null),targetRef:e.ref(null),controlRef:e.ref(null)}}function jr(o){const{props:n,emit:a,slots:l,attrs:i,proxy:r}=e.getCurrentInstance(),{$q:s}=r;let u;void 0===o.hasValue&&(o.hasValue=e.computed(()=>Fr(n.modelValue))),void 0===o.emitValue&&(o.emitValue=(e=>{a("update:modelValue",e)})),void 0===o.controlEvents&&(o.controlEvents={onFocusin:T,onFocusout:B}),Object.assign(o,{clearValue:O,onControlFocusin:T,onControlFocusout:B,focus:$}),void 0===o.computedCounter&&(o.computedCounter=e.computed(()=>{if(!1!==n.counter){const e="string"===typeof n.modelValue||"number"===typeof n.modelValue?(""+n.modelValue).length:!0===Array.isArray(n.modelValue)?n.modelValue.length:0,t=void 0!==n.maxlength?n.maxlength:n.maxValues;return e+(void 0!==t?" / "+t:"")}}));const{isDirtyModel:c,hasRules:d,hasError:v,computedErrorMessage:p,resetValidation:m}=Pr(o.focused,o.innerLoading),f=void 0!==o.floatingLabel?e.computed(()=>!0===n.stackLabel||!0===o.focused.value||!0===o.floatingLabel.value):e.computed(()=>!0===n.stackLabel||!0===o.focused.value||!0===o.hasValue.value),h=e.computed(()=>!0===n.bottomSlots||void 0!==n.hint||!0===d.value||!0===n.counter||null!==n.error),g=e.computed(()=>{return!0===n.filled?"filled":!0===n.outlined?"outlined":!0===n.borderless?"borderless":n.standout?"standout":"standard"}),b=e.computed(()=>`q-field row no-wrap items-start q-field--${g.value}`+(void 0!==o.fieldClass?` ${o.fieldClass.value}`:"")+(!0===n.rounded?" q-field--rounded":"")+(!0===n.square?" q-field--square":"")+(!0===f.value?" q-field--float":"")+(!0===w.value?" q-field--labeled":"")+(!0===n.dense?" q-field--dense":"")+(!0===n.itemAligned?" q-field--item-aligned q-item-type":"")+(!0===o.isDark.value?" q-field--dark":"")+(void 0===o.getControl?" q-field--auto-height":"")+(!0===o.focused.value?" q-field--focused":"")+(!0===v.value?" q-field--error":"")+(!0===v.value||!0===o.focused.value?" q-field--highlighted":"")+(!0!==n.hideBottomSpace&&!0===h.value?" q-field--with-bottom":"")+(!0===n.disable?" q-field--disabled":!0===n.readonly?" q-field--readonly":"")),y=e.computed(()=>"q-field__control relative-position row no-wrap"+(void 0!==n.bgColor?` bg-${n.bgColor}`:"")+(!0===v.value?" text-negative":"string"===typeof n.standout&&n.standout.length>0&&!0===o.focused.value?` ${n.standout}`:void 0!==n.color?` text-${n.color}`:"")),w=e.computed(()=>!0===n.labelSlot||void 0!==n.label),x=e.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(void 0!==n.labelColor&&!0!==v.value?` text-${n.labelColor}`:"")),_=e.computed(()=>({id:o.targetUid.value,editable:o.editable.value,focused:o.focused.value,floatingLabel:f.value,modelValue:n.modelValue,emitValue:o.emitValue})),C=e.computed(()=>{const e={for:o.targetUid.value};return!0===n.disable?e["aria-disabled"]="true":!0===n.readonly&&(e["aria-readonly"]="true"),e});let k;function $(){void 0!==k&&ro(k),k=io(()=>{k=void 0;const e=document.activeElement;let t=void 0!==o.targetRef&&o.targetRef.value;!t||null!==e&&e.id===o.targetUid.value||(!0===t.hasAttribute("tabindex")||(t=t.querySelector("[tabindex]")),t&&t!==e&&t.focus())})}function M(){void 0!==k&&ro(k);const e=document.activeElement;null!==e&&o.rootRef.value.contains(e)&&e.blur()}function T(e){!0===o.editable.value&&!1===o.focused.value&&(o.focused.value=!0,a("focus",e))}function B(e,t){clearTimeout(u),u=setTimeout(()=>{(!0!==document.hasFocus()||!0!==o.hasPopupOpen.value&&(void 0===o.controlRef||null!==o.controlRef.value&&!1===o.controlRef.value.contains(document.activeElement)))&&(!0===o.focused.value&&(o.focused.value=!1,a("blur",e)),void 0!==t&&t())})}function O(t){if(q(t),!0!==s.platform.is.mobile){const e=void 0!==o.targetRef&&o.targetRef.value||o.rootRef.value;e.focus()}else!0===o.rootRef.value.contains(document.activeElement)&&document.activeElement.blur();"file"===n.type&&(o.inputRef.value.value=null),a("update:modelValue",null),a("clear",n.modelValue),e.nextTick(()=>{m(),"ondemand"!==n.lazyRules&&!0!==s.platform.is.mobile&&(c.value=!1)})}function V(){const t=[];return void 0!==l.prepend&&t.push(e.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:S},l.prepend())),t.push(e.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},z())),void 0!==l.append&&t.push(e.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:S},l.append())),!0===v.value&&!1===n.noErrorIcon&&t.push(E("error",[e.h(et,{name:s.iconSet.field.error,color:"negative"})])),!0===n.loading||!0===o.innerLoading.value?t.push(E("inner-loading-append",void 0!==l.loading?l.loading():[e.h(St,{color:n.color})])):!0===n.clearable&&!0===o.hasValue.value&&!0===o.editable.value&&t.push(E("inner-clearable-append",[e.h(et,{class:"q-field__focusable-action",tag:"button",name:n.clearIcon||s.iconSet.field.clear,tabindex:0,type:"button",onClick:O})])),void 0!==o.getInnerAppend&&t.push(E("inner-append",o.getInnerAppend())),void 0!==o.getControlChild&&t.push(o.getControlChild()),t}function z(){const t=[];return void 0!==n.prefix&&null!==n.prefix&&t.push(e.h("div",{class:"q-field__prefix no-pointer-events row items-center"},n.prefix)),void 0!==o.getShadowControl&&!0===o.hasShadow.value&&t.push(o.getShadowControl()),void 0!==o.getControl?t.push(o.getControl()):void 0!==l.rawControl?t.push(l.rawControl()):void 0!==l.control&&t.push(e.h("div",{ref:o.targetRef,class:"q-field__native row",...o.splitAttrs.attributes.value,"data-autofocus":!0===n.autofocus||void 0},l.control(_.value))),!0===w.value&&t.push(e.h("div",{class:x.value},Fe(l.label,n.label))),void 0!==n.suffix&&null!==n.suffix&&t.push(e.h("div",{class:"q-field__suffix no-pointer-events row items-center"},n.suffix)),t.concat(Fe(l.default))}function L(){let t,a;!0===v.value?null!==p.value?(t=[e.h("div",p.value)],a=`q--slot-error-${p.value}`):(t=Fe(l.error),a="q--slot-error"):!0===n.hideHint&&!0!==o.focused.value||(void 0!==n.hint?(t=[e.h("div",n.hint)],a=`q--slot-hint-${n.hint}`):(t=Fe(l.hint),a="q--slot-hint"));const i=!0===n.counter||void 0!==l.counter;if(!0===n.hideBottomSpace&&!1===i&&void 0===t)return;const r=e.h("div",{key:a,class:"q-field__messages col"},t);return e.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(!0!==n.hideBottomSpace?"animated":"stale")},[!0===n.hideBottomSpace?r:e.h(e.Transition,{name:"q-transition--field-message"},()=>r),!0===i?e.h("div",{class:"q-field__counter"},void 0!==l.counter?l.counter():o.computedCounter.value):null])}function E(t,o){return null===o?null:e.h("div",{key:t,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},o)}return e.watch(()=>n.for,e=>{o.targetUid.value=Ar(e)}),Object.assign(r,{focus:$,blur:M}),e.onMounted(()=>{!0===t.value&&void 0===n.for&&(o.targetUid.value=Ar()),!0===n.autofocus&&r.focus()}),e.onBeforeUnmount(()=>{clearTimeout(u)}),function(){return e.h("label",{ref:o.rootRef,class:!0!==o.inheritAttrs?[b.value,i.class]:b.value,style:i.style,...C.value},[void 0!==l.before?e.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:S},l.before()):null,e.h("div",{class:"q-field__inner relative-position col self-stretch"},[e.h("div",{ref:o.controlRef,class:y.value,tabindex:-1,...o.controlEvents},V()),!0===h.value?L():null]),void 0!==l.after?e.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:S},l.after()):null])}}var Dr=e.defineComponent({name:"QField",inheritAttrs:!1,props:Ir,emits:Rr,setup(){return jr(Nr())}});function Hr(e,t,o,n){const a=[];return e.forEach(e=>{!0===n(e)?a.push(e):t.push({failedPropValidation:o,file:e})}),a}function Qr(e){e&&e.dataTransfer&&(e.dataTransfer.dropEffect="copy"),q(e)}const Ur={multiple:Boolean,accept:String,capture:String,maxFileSize:[Number,String],maxTotalSize:[Number,String],maxFiles:[Number,String],filter:Function},Wr=["rejected"];function Yr({editable:t,dnd:o,getFileInput:n,addFilesToQueue:a}){const{props:l,emit:i,proxy:r}=e.getCurrentInstance(),s=e.computed(()=>void 0!==l.accept?l.accept.split(",").map(e=>{return e=e.trim(),"*"===e?"*/":(e.endsWith("/*")&&(e=e.slice(0,e.length-1)),e.toUpperCase())}):null),u=e.computed(()=>parseInt(l.maxFiles,10)),c=e.computed(()=>parseInt(l.maxTotalSize,10));function d(e){if(t.value){const t=n();t&&t.click(e)}}function v(e){t.value&&e&&a(null,e)}function p(e,t,o,n){let a=Array.from(t||e.target.files);const r=[],d=()=>{r.length>0&&i("rejected",r)};if(void 0!==l.accept&&-1===s.value.indexOf("*/")&&(a=Hr(a,r,"accept",e=>{return s.value.some(t=>e.type.toUpperCase().startsWith(t)||e.name.toUpperCase().endsWith(t))}),0===a.length))return d();if(void 0!==l.maxFileSize){const e=parseInt(l.maxFileSize,10);if(a=Hr(a,r,"max-file-size",t=>{return t.size<=e}),0===a.length)return d()}if(!0!==l.multiple&&(a=[a[0]]),void 0!==l.maxTotalSize){let e=!0===n?o.reduce((e,t)=>e+t.size,0):0;if(a=Hr(a,r,"max-total-size",t=>{return e+=t.size,e<=c.value}),0===a.length)return d()}if("function"===typeof l.filter){const e=l.filter(a);a=Hr(a,r,"filter",t=>{return e.includes(t)})}if(void 0!==l.maxFiles){let e=!0===n?o.length:0;if(a=Hr(a,r,"max-files",()=>{return e++,e<=u.value}),0===a.length)return d()}return d(),a.length>0?a:void 0}function m(e){Qr(e),!0!==o.value&&(o.value=!0)}function f(e){q(e),o.value=!1}function h(e){Qr(e);const t=e.dataTransfer.files;t.length>0&&a(null,t),o.value=!1}function g(t){if(!0===o.value)return e.h("div",{class:`q-${t}__dnd absolute-full`,onDragenter:Qr,onDragover:Qr,onDragleave:f,onDrop:h})}return Object.assign(r,{pickFiles:d,addFiles:v}),{pickFiles:d,addFiles:v,onDragover:m,processFiles:p,getDndNode:g,maxFilesNumber:u,maxTotalSizeNumber:c}}function Kr(t,o){function n(){const e=t.modelValue;try{const t="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(e)===e&&("length"in e?Array.from(e):[e]).forEach(e=>{t.items.add(e)}),{files:t.files}}catch(e){return{files:void 0}}}return!0===o?e.computed(()=>{if("file"===t.type)return n()}):e.computed(n)}var Xr=e.defineComponent({name:"QFile",props:{...Ir,...bn,...Ur,modelValue:[File,FileList,Array],append:Boolean,useChips:Boolean,displayValue:[String,Number],tabindex:{type:[String,Number],default:0},counterLabel:Function,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...Rr,...Wr],setup(t,{slots:o,emit:n,attrs:a}){const{proxy:l}=e.getCurrentInstance(),i=Nr(),r=e.ref(null),s=e.ref(!1),u=xn(t),{pickFiles:c,onDragover:d,processFiles:v,getDndNode:p}=Yr({editable:i.editable,dnd:s,getFileInput:k,addFilesToQueue:$}),m=Kr(t),f=e.computed(()=>Object(t.modelValue)===t.modelValue?"length"in t.modelValue?Array.from(t.modelValue):[t.modelValue]:[]),h=e.computed(()=>Fr(f.value)),g=e.computed(()=>f.value.map(e=>e.name).join(", ")),b=e.computed(()=>ye(f.value.reduce((e,t)=>e+t.size,0))),y=e.computed(()=>({totalSize:b.value,filesNumber:f.value.length,maxFiles:t.maxFiles})),w=e.computed(()=>({tabindex:-1,type:"file",title:"",accept:t.accept,capture:t.capture,name:u.value,...a,id:i.targetUid.value,disabled:!0!==i.editable.value})),x=e.computed(()=>!0===t.multiple&&!0===t.append);function _(e){const t=f.value.slice();t.splice(e,1),S(t)}function C(e){const t=f.value.findIndex(e);t>-1&&_(t)}function S(e){n("update:modelValue",!0===t.multiple?e:e[0])}function q(e){13===e.keyCode&&c(e)}function k(){return r.value}function $(e,o){const n=v(e,o,f.value,x.value);void 0!==n&&((!0===t.multiple?t.modelValue&&n.every(e=>f.value.includes(e)):t.modelValue===n[0])||S(!0===x.value?f.value.concat(n):n))}function M(){return[e.h("input",{class:[t.inputClass,"q-file__filler"],style:t.inputStyle,tabindex:-1})]}function T(){if(void 0!==o.file)return 0===f.value.length?M():f.value.map((e,t)=>o.file({index:t,file:e,ref:this}));if(void 0!==o.selected)return 0===f.value.length?M():o.selected({files:f.value,ref:this});if(!0===t.useChips)return 0===f.value.length?M():f.value.map((o,n)=>e.h(ra,{key:"file-"+n,removable:i.editable.value,dense:!0,textColor:t.color,tabindex:t.tabindex,onRemove:()=>{_(n)}},()=>e.h("span",{class:"ellipsis",textContent:o.name})));const n=void 0!==t.displayValue?t.displayValue:g.value;return n.length>0?[e.h("div",{class:t.inputClass,style:t.inputStyle,textContent:n})]:M()}function B(){const o={ref:r,...w.value,...m.value,class:"q-field__input fit absolute-full cursor-pointer",onChange:$};return!0===t.multiple&&(o.multiple=!0),e.h("input",o)}return Object.assign(i,{inheritAttrs:!0,fieldClass:{value:"q-file q-field--auto-height"},emitValue:S,hasValue:h,inputRef:r,innerValue:f,floatingLabel:e.computed(()=>!0===h.value||Fr(t.displayValue)),computedCounter:e.computed(()=>{if(void 0!==t.counterLabel)return t.counterLabel(y.value);const e=t.maxFiles;return`${f.value.length}${void 0!==e?" / "+e:""} (${b.value})`}),getControlChild:()=>p("file"),getControl:()=>{const o={ref:i.targetRef,class:"q-field__native row items-center cursor-pointer",tabindex:t.tabindex};return!0===i.editable.value&&Object.assign(o,{onDragover:d,onKeyup:q}),e.h("div",o,[B()].concat(T()))}}),Object.assign(l,{removeAtIndex:_,removeFile:C,getNativeElement:()=>r.value}),jr(i)}}),Zr=e.defineComponent({name:"QFooter",props:{modelValue:{type:Boolean,default:!0},reveal:Boolean,bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},emits:["reveal","focusin"],setup(o,{slots:n,emit:a}){const{proxy:{$q:l}}=e.getCurrentInstance(),i=e.inject(ae,()=>{console.error("QFooter needs to be child of QLayout")}),r=e.ref(parseInt(o.heightHint,10)),s=e.ref(!0),u=e.ref(!0===t.value||!0===i.isContainer.value?0:window.innerHeight),c=e.computed(()=>!0===o.reveal||i.view.value.indexOf("F")>-1||!0===i.isContainer.value),d=e.computed(()=>!0===i.isContainer.value?i.containerHeight.value:u.value),v=e.computed(()=>{if(!0!==o.modelValue)return 0;if(!0===c.value)return!0===s.value?r.value:0;const e=i.scroll.value.position+d.value+r.value-i.height.value;return e>0?e:0}),p=e.computed(()=>!0!==o.modelValue||!0===c.value&&!0!==s.value),m=e.computed(()=>!0===o.modelValue&&!0===p.value&&!0===o.reveal),f=e.computed(()=>"q-footer q-layout__section--marginal "+(!0===c.value?"fixed":"absolute")+"-bottom"+(!0===o.bordered?" q-footer--bordered":"")+(!0===p.value?" q-footer--hidden":"")+(!0!==o.modelValue?" q-layout--prevent-focus"+(!0!==c.value?" hidden":""):"")),h=e.computed(()=>{const e=i.rows.value.bottom,t={};return"l"===e[0]&&!0===i.left.space&&(t[!0===l.lang.rtl?"right":"left"]=`${i.left.size}px`),"r"===e[2]&&!0===i.right.space&&(t[!0===l.lang.rtl?"left":"right"]=`${i.right.size}px`),t});function g(e,t){i.update("footer",e,t)}function b(e,t){e.value!==t&&(e.value=t)}function y({height:e}){b(r,e),g("size",e)}function w(){if(!0!==o.reveal)return;const{direction:e,position:t,inflectionPoint:n}=i.scroll.value;b(s,"up"===e||t-n<100||i.height.value-d.value-t-r.value<300)}function x(e){!0===m.value&&b(s,!0),a("focusin",e)}e.watch(()=>o.modelValue,e=>{g("space",e),b(s,!0),i.animate()}),e.watch(v,e=>{g("offset",e)}),e.watch(()=>o.reveal,e=>{!1===e&&b(s,o.modelValue)}),e.watch(s,e=>{i.animate(),a("reveal",e)}),e.watch([r,i.scroll,i.height],w),e.watch(()=>l.screen.height,e=>{!0!==i.isContainer.value&&b(u,e)});const _={};return i.instances.footer=_,!0===o.modelValue&&g("size",r.value),g("space",o.modelValue),g("offset",v.value),e.onBeforeUnmount(()=>{i.instances.footer===_&&(i.instances.footer=void 0,g("size",0),g("offset",0),g("space",!1))}),()=>{const t=Re(n.default,[e.h($a,{debounce:0,onResize:y})]);return!0===o.elevated&&t.push(e.h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),e.h("footer",{class:f.value,style:h.value,onFocusin:x},t)}}}),Gr=e.defineComponent({name:"QForm",props:{autofocus:Boolean,noErrorFocus:Boolean,noResetFocus:Boolean,greedy:Boolean,onSubmit:Function},emits:["reset","validation-success","validation-error"],setup(t,{slots:o,emit:n}){const a=e.getCurrentInstance(),l=e.ref(null);let i=0;const r=[];function s(e){const o=[],a="boolean"===typeof e?e:!0!==t.noErrorFocus;i++;const l=(e,t)=>{n("validation-"+(!0===e?"success":"error"),t)};for(let n=0;n<r.length;n++){const e=r[n],i=e.validate();if("function"===typeof i.then)o.push(i.then(t=>({valid:t,comp:e}),t=>({valid:!1,comp:e,error:t})));else if(!0!==i){if(!1===t.greedy)return l(!1,e),!0===a&&"function"===typeof e.focus&&e.focus(),Promise.resolve(!1);o.push({valid:!1,comp:e})}}if(0===o.length)return l(!0),Promise.resolve(!0);const s=i;return Promise.all(o).then(e=>{if(s===i){const t=e.filter(e=>!0!==e.valid);if(0===t.length)return l(!0),!0;const{valid:o,comp:n}=t[0];return l(!1,n),!0===a&&!0!==o&&"function"===typeof n.focus&&n.focus(),!1}})}function u(){i++,r.forEach(e=>{"function"===typeof e.resetValidation&&e.resetValidation()})}function c(e){void 0!==e&&q(e),s().then(o=>{!0===o&&(void 0!==t.onSubmit?n("submit",e):void 0!==e&&void 0!==e.target&&"function"===typeof e.target.submit&&e.target.submit())})}function d(o){void 0!==o&&q(o),n("reset"),e.nextTick(()=>{u(),!0===t.autofocus&&!0!==t.noResetFocus&&v()})}function v(){io(()=>{if(null===l.value)return;const e=l.value.querySelector("[autofocus], [data-autofocus]")||Array.prototype.find.call(l.value.querySelectorAll("[tabindex]"),e=>e.tabIndex>-1);null!==e&&void 0!==e&&e.focus()})}return e.provide(re,{bindComponent(e){r.push(e)},unbindComponent(e){const t=r.indexOf(e);t>-1&&r.splice(t,1)}}),e.onMounted(()=>{!0===t.autofocus&&v()}),Object.assign(a.proxy,{validate:s,resetValidation:u,submit:c,reset:d,focus:v,getValidationComponents:()=>r}),()=>e.h("form",{class:"q-form",ref:l,onSubmit:c,onReset:d},Fe(o.default))}}),Jr={inject:{[re]:{default:m}},watch:{disable(e){const t=this.$.provides[re];void 0!==t&&(!0===e?(this.resetValidation(),t.unbindComponent(this)):t.bindComponent(this))}},methods:{validate(){},resetValidation(){}},created(){const e=this.$.provides[re];void 0!==e&&!0!==this.disable&&e.bindComponent(this)},beforeUnmount(){const e=this.$.provides[re];void 0!==e&&!0!==this.disable&&e.unbindComponent(this)}},es=e.defineComponent({name:"QHeader",props:{modelValue:{type:Boolean,default:!0},reveal:Boolean,revealOffset:{type:Number,default:250},bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},emits:["reveal","focusin"],setup(t,{slots:o,emit:n}){const{proxy:{$q:a}}=e.getCurrentInstance(),l=e.inject(ae,()=>{console.error("QHeader needs to be child of QLayout")}),i=e.ref(parseInt(t.heightHint,10)),r=e.ref(!0),s=e.computed(()=>!0===t.reveal||l.view.value.indexOf("H")>-1||!0===l.isContainer.value),u=e.computed(()=>{if(!0!==t.modelValue)return 0;if(!0===s.value)return!0===r.value?i.value:0;const e=i.value-l.scroll.value.position;return e>0?e:0}),c=e.computed(()=>!0!==t.modelValue||!0===s.value&&!0!==r.value),d=e.computed(()=>!0===t.modelValue&&!0===c.value&&!0===t.reveal),v=e.computed(()=>"q-header q-layout__section--marginal "+(!0===s.value?"fixed":"absolute")+"-top"+(!0===t.bordered?" q-header--bordered":"")+(!0===c.value?" q-header--hidden":"")+(!0!==t.modelValue?" q-layout--prevent-focus":"")),p=e.computed(()=>{const e=l.rows.value.top,t={};return"l"===e[0]&&!0===l.left.space&&(t[!0===a.lang.rtl?"right":"left"]=`${l.left.size}px`),"r"===e[2]&&!0===l.right.space&&(t[!0===a.lang.rtl?"left":"right"]=`${l.right.size}px`),t});function m(e,t){l.update("header",e,t)}function f(e,t){e.value!==t&&(e.value=t)}function h({height:e}){f(i,e),m("size",e)}function g(e){!0===d.value&&f(r,!0),n("focusin",e)}e.watch(()=>t.modelValue,e=>{m("space",e),f(r,!0),l.animate()}),e.watch(u,e=>{m("offset",e)}),e.watch(()=>t.reveal,e=>{!1===e&&f(r,t.modelValue)}),e.watch(r,e=>{l.animate(),n("reveal",e)}),e.watch(l.scroll,e=>{!0===t.reveal&&f(r,"up"===e.direction||e.position<=t.revealOffset||e.position-e.inflectionPoint<100)});const b={};return l.instances.header=b,!0===t.modelValue&&m("size",i.value),m("space",t.modelValue),m("offset",u.value),e.onBeforeUnmount(()=>{l.instances.header===b&&(l.instances.header=void 0,m("size",0),m("offset",0),m("space",!1))}),()=>{const n=Ie(o.default,[]);return!0===t.elevated&&n.push(e.h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),n.push(e.h($a,{debounce:0,onResize:h})),e.h("header",{class:v.value,style:p.value,onFocusin:g},n)}}});const ts={ratio:[String,Number]};function os(t,o){return e.computed(()=>{const e=Number(t.ratio||(void 0!==o?o.value:void 0));return!0!==isNaN(e)&&e>0?{paddingBottom:`${100/e}%`}:null})}const ns=["anonymous","use-credentials"],as=["eager","lazy"],ls=["cover","fill","contain","none","scale-down"],is=16/9;var rs=e.defineComponent({name:"QImg",props:{...ts,src:String,srcset:String,sizes:String,alt:String,crossorigin:{type:String,validator:e=>ns.includes(e)},draggable:Boolean,loading:{type:String,default:"lazy",validator:e=>as.includes(e)},width:String,height:String,initialRatio:{type:[Number,String],default:is},placeholderSrc:String,fit:{type:String,default:"cover",validator:e=>ls.includes(e)},position:{type:String,default:"50% 50%"},imgClass:String,imgStyle:Object,noSpinner:Boolean,noNativeMenu:Boolean,noTransition:Boolean,spinnerColor:String,spinnerSize:String},emits:["load","error"],setup(t,{slots:o,attrs:n,emit:a}){const l=e.ref(t.initialRatio),i=os(t,l);let r;const s=[e.ref(null),e.ref(void 0!==t.placeholderSrc?{src:t.placeholderSrc}:null)],u=e.ref(0),c=e.ref(!1),d=e.ref(!1),v=e.computed(()=>`q-img q-img--${!0===t.noNativeMenu?"no-":""}menu`),p=e.computed(()=>({width:t.width,height:t.height})),m=e.computed(()=>`q-img__image ${void 0!==t.imgClass?t.imgClass+" ":""}`+`q-img__image--with${!0===t.noTransition?"out":""}-transition`),f=e.computed(()=>({...t.imgStyle,objectFit:t.fit,objectPosition:t.position}));function h(){return t.src||t.srcset||t.sizes?{src:t.src,srcset:t.srcset,sizes:t.sizes}:null}function g(e){if(clearTimeout(r),d.value=!1,null===e)return c.value=!1,s[0].value=null,void(s[1].value=null);c.value=!0,s[u.value].value=e}function b({target:e}){null!==r&&(clearTimeout(r),l.value=0===e.naturalHeight?.5:e.naturalWidth/e.naturalHeight,y(e,1))}function y(e,t){null!==r&&1e3!==t&&(!0===e.complete?w(e):r=setTimeout(()=>{y(e,t+1)},50))}function w(e){null!==r&&(u.value=1===u.value?0:1,s[u.value].value=null,c.value=!1,d.value=!1,a("load",e.currentSrc||e.src))}function x(e){clearTimeout(r),c.value=!1,d.value=!0,s[0].value=null,s[1].value=null,a("error",e)}function _(t,o){return e.h("div",{class:"q-img__container absolute-full",key:t},o)}function C(o){const a=s[o].value,l={key:"img_"+o,...n,class:m.value,style:f.value,crossorigin:t.crossorigin,height:t.height,width:t.width,loading:t.loading,"aria-hidden":"true",draggable:t.draggable,...a};return u.value===o?(l.class+=" q-img__image--waiting",Object.assign(l,{onLoad:b,onError:x})):l.class+=" q-img__image--loaded",_("img"+o,e.h("img",l))}function S(){return!0!==c.value?e.h("div",{key:"content",class:"q-img__content absolute-full q-anchor--skip"},Fe(o[!0===d.value?"error":"default"])):e.h("div",{key:"loading",class:"q-img__loading absolute-full flex flex-center"},void 0!==o.loading?o.loading():!0===t.noSpinner?void 0:[e.h(St,{color:t.spinnerColor,size:t.spinnerSize})])}return e.watch(()=>h(),g),g(h()),e.onBeforeUnmount(()=>{clearTimeout(r),r=null}),()=>{const o=[];return null!==i.value&&o.push(e.h("div",{key:"filler",style:i.value})),!0!==d.value&&(null!==s[0].value&&o.push(C(0)),null!==s[1].value&&o.push(C(1))),o.push(e.h(e.Transition,{name:"q-transition--fade"},S)),e.h("div",{class:v.value,style:p.value,role:"img","aria-label":t.alt},o)}}}),ss=e.defineComponent({name:"QInfiniteScroll",props:{offset:{type:Number,default:500},debounce:{type:[String,Number],default:100},scrollTarget:{default:void 0},initialIndex:Number,disable:Boolean,reverse:Boolean},emits:["load"],setup(t,{slots:o,emit:n}){const a=e.ref(!1),l=e.ref(null);let i,r,s=t.initialIndex||0,u=!0;const c=e.computed(()=>"q-infinite-scroll__loading"+(!0===a.value?"":" invisible"));function d(){if(!0===t.disable||!0===a.value||!1===u)return;const e=ko(i),o=Mo(i),n=$t(i);!1===t.reverse?o+n+t.offset>=e&&v():o<t.offset&&v()}function v(){if(!0===t.disable||!0===a.value||!1===u)return;s++,a.value=!0;const o=ko(i);n("load",s,n=>{!0===u&&(a.value=!1,e.nextTick(()=>{if(!0===t.reverse){const e=ko(i),t=Mo(i),n=e-o;Lo(i,t+n)}!0===n?h():l.value&&l.value.closest("body")&&r()}))})}function m(){s=0}function f(){!1===u&&(u=!0,i.addEventListener("scroll",r,p.passive)),d()}function h(){!0===u&&(u=!1,a.value=!1,i.removeEventListener("scroll",r,p.passive))}function g(){i&&!0===u&&i.removeEventListener("scroll",r,p.passive),i=qo(l.value,t.scrollTarget),!0===u&&i.addEventListener("scroll",r,p.passive)}function b(e){s=e}const y=e.getCurrentInstance();function w(e){e=parseInt(e,10);const t=r;r=e<=0?d:B(d,!0===isNaN(e)?100:e),i&&!0===u&&(void 0!==t&&i.removeEventListener("scroll",t,p.passive),i.addEventListener("scroll",r,p.passive))}return Object.assign(y.proxy,{poll:()=>r.apply(null,arguments),trigger:v,stop:h,reset:m,resume:f,setIndex:b}),e.watch(()=>t.disable,e=>{!0===e?h():f()}),e.watch(()=>t.scrollTarget,g),e.watch(()=>t.debounce,w),e.onBeforeUnmount(()=>{!0===u&&i.removeEventListener("scroll",r,p.passive)}),e.onMounted(()=>{if(w(t.debounce),g(),!0===t.reverse){const e=ko(i),t=$t(i);Lo(i,e-t)}d()}),()=>{const n=Ie(o.default,[]);return!0!==t.disable&&!0===u&&n[!1===t.reverse?"push":"unshift"](e.h("div",{class:c.value},Fe(o.loading))),e.h("div",{class:"q-infinite-scroll",ref:l},n)}}}),us=e.defineComponent({name:"QInnerLoading",props:{...at,...wo,showing:Boolean,color:String,size:{type:[String,Number],default:42}},setup(t,{slots:o}){const n=e.getCurrentInstance(),a=lt(t,n.proxy.$q),{transition:l,transitionStyle:i}=xo(t,e.computed(()=>t.showing)),r=e.computed(()=>"q-inner-loading absolute-full column flex-center"+(!0===a.value?" q-inner-loading--dark":""));function s(){return!0===t.showing?e.h("div",{class:r.value,style:i.value},void 0!==o.default?o.default():[e.h(St,{size:t.size,color:t.color})]):null}return()=>e.h(e.Transition,{name:l.value,appear:!0},s)}});const cs={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},ds={"#":{pattern:"[\\d]",negate:"[^\\d]"},S:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]"},N:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]"},A:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:e=>e.toLocaleUpperCase()},a:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:e=>e.toLocaleLowerCase()},X:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:e=>e.toLocaleUpperCase()},x:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:e=>e.toLocaleLowerCase()}},vs=Object.keys(ds);vs.forEach(e=>{ds[e].regex=new RegExp(ds[e].pattern)});const ps=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+vs.join("")+"])|(.)","g"),ms=/[.*+?^${}()|[\]\\]/g,fs=String.fromCharCode(1),hs={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function gs(t,o,n,a){let l,i,r,s;const u=e.ref(null),c=e.ref(d());function d(){if(p(),!0===u.value){const e=b(w(t.modelValue));return!1!==t.fillMask?x(e):e}return t.modelValue}function v(e){if(e<l.length)return l.slice(-e);let t="",o=l;const n=o.indexOf(fs);if(n>-1){for(let n=e-o.length;n>0;n--)t+=fs;o=o.slice(0,n)+t+o.slice(n)}return o}function p(){if(u.value=void 0!==t.mask&&t.mask.length>0&&["text","search","url","tel","password"].includes(t.type),!1===u.value)return s=void 0,l="",void(i="");const e=void 0===cs[t.mask]?t.mask:cs[t.mask],o="string"===typeof t.fillMask&&t.fillMask.length>0?t.fillMask.slice(0,1):"_",n=o.replace(ms,"\\$&"),a=[],c=[],d=[];let v=!0===t.reverseFillMask,p="",m="";e.replace(ps,(e,t,o,n,l)=>{if(void 0!==n){const e=ds[n];d.push(e),m=e.negate,!0===v&&(c.push("(?:"+m+"+)?("+e.pattern+"+)?(?:"+m+"+)?("+e.pattern+"+)?"),v=!1),c.push("(?:"+m+"+)?("+e.pattern+")?")}else if(void 0!==o)p="\\"+("\\"===o?"":o),d.push(o),a.push("([^"+p+"]+)?"+p+"?");else{const e=void 0!==t?t:l;p="\\"===e?"\\\\\\\\":e.replace(ms,"\\\\$&"),d.push(e),a.push("([^"+p+"]+)?"+p+"?")}});const f=new RegExp("^"+a.join("")+"("+(""===p?".":"[^"+p+"]")+"+)?$"),h=c.length-1,g=c.map((e,o)=>{return 0===o&&!0===t.reverseFillMask?new RegExp("^"+n+"*"+e):o===h?new RegExp("^"+e+"("+(""===m?".":m)+"+)?"+(!0===t.reverseFillMask?"$":n+"*")):new RegExp("^"+e)});r=d,s=(e=>{const t=f.exec(e);null!==t&&(e=t.slice(1).join(""));const o=[],n=g.length;for(let a=0,l=e;a<n;a++){const e=g[a].exec(l);if(null===e)break;l=l.slice(e.shift().length),o.push(...e)}return o.length>0?o.join(""):e}),l=d.map(e=>"string"===typeof e?e:fs).join(""),i=l.split(fs).join(o)}function m(o,r,s){const u=a.value,d=u.selectionEnd,v=u.value.length-d,m=w(o);!0===r&&p();const f=b(m),g=!1!==t.fillMask?x(f):f,y=c.value!==g;u.value!==g&&(u.value=g),!0===y&&(c.value=g),document.activeElement===u&&e.nextTick(()=>{if(g!==i)if("insertFromPaste"!==s||!0===t.reverseFillMask)if(["deleteContentBackward","deleteContentForward"].indexOf(s)>-1){const e=!0===t.reverseFillMask?0===d?g.length>f.length?1:0:Math.max(0,g.length-(g===i?0:Math.min(f.length,v)+1))+1:d;u.setSelectionRange(e,e,"forward")}else if(!0===t.reverseFillMask)if(!0===y){const e=Math.max(0,g.length-(g===i?0:Math.min(f.length,v+1)));1===e&&1===d?u.setSelectionRange(e,e,"forward"):h.rightReverse(u,e,e)}else{const e=g.length-v;u.setSelectionRange(e,e,"backward")}else if(!0===y){const e=Math.max(0,l.indexOf(fs),Math.min(f.length,d)-1);h.right(u,e,e)}else{const e=d-1;h.right(u,e,e)}else{const e=d-1;h.right(u,e,e)}else{const e=!0===t.reverseFillMask?i.length:0;u.setSelectionRange(e,e,"forward")}});const _=!0===t.unmaskedValue?w(g):g;t.modelValue!==_&&n(_,!0)}function f(e,t,o){const n=b(w(e.value));t=Math.max(0,l.indexOf(fs),Math.min(n.length,t)),e.setSelectionRange(t,o,"forward")}e.watch(()=>t.type,p),e.watch(()=>t.mask,e=>{if(void 0!==e)m(c.value,!0);else{const e=w(c.value);p(),t.modelValue!==e&&o("update:modelValue",e)}}),e.watch(()=>t.fillMask+t.reverseFillMask,()=>{!0===u.value&&m(c.value,!0)}),e.watch(()=>t.unmaskedValue,()=>{!0===u.value&&m(c.value)});const h={left(e,t,o,n){const a=-1===l.slice(t-1).indexOf(fs);let i=Math.max(0,t-1);for(;i>=0;i--)if(l[i]===fs){t=i,!0===a&&t++;break}if(i<0&&void 0!==l[t]&&l[t]!==fs)return h.right(e,0,0);t>=0&&e.setSelectionRange(t,!0===n?o:t,"backward")},right(e,t,o,n){const a=e.value.length;let i=Math.min(a,o+1);for(;i<=a;i++){if(l[i]===fs){o=i;break}l[i-1]===fs&&(o=i)}if(i>a&&void 0!==l[o-1]&&l[o-1]!==fs)return h.left(e,a,a);e.setSelectionRange(n?t:o,o,"forward")},leftReverse(e,t,o,n){const a=v(e.value.length);let l=Math.max(0,t-1);for(;l>=0;l--){if(a[l-1]===fs){t=l;break}if(a[l]===fs&&(t=l,0===l))break}if(l<0&&void 0!==a[t]&&a[t]!==fs)return h.rightReverse(e,0,0);t>=0&&e.setSelectionRange(t,!0===n?o:t,"backward")},rightReverse(e,t,o,n){const a=e.value.length,l=v(a),i=-1===l.slice(0,o+1).indexOf(fs);let r=Math.min(a,o+1);for(;r<=a;r++)if(l[r-1]===fs){o=r,o>0&&!0===i&&o--;break}if(r>a&&void 0!==l[o-1]&&l[o-1]!==fs)return h.leftReverse(e,a,a);e.setSelectionRange(!0===n?t:o,o,"forward")}};function g(e){if(!0===U(e))return;const o=a.value,n=o.selectionStart,l=o.selectionEnd;if(37===e.keyCode||39===e.keyCode){const a=h[(39===e.keyCode?"right":"left")+(!0===t.reverseFillMask?"Reverse":"")];e.preventDefault(),a(o,n,l,e.shiftKey)}else 8===e.keyCode&&!0!==t.reverseFillMask&&n===l?h.left(o,n,l,!0):46===e.keyCode&&!0===t.reverseFillMask&&n===l&&h.rightReverse(o,n,l,!0)}function b(e){if(void 0===e||null===e||""===e)return"";if(!0===t.reverseFillMask)return y(e);const o=r;let n=0,a="";for(let t=0;t<o.length;t++){const l=e[n],i=o[t];if("string"===typeof i)a+=i,l===i&&n++;else{if(void 0===l||!i.regex.test(l))return a;a+=void 0!==i.transform?i.transform(l):l,n++}}return a}function y(e){const t=r,o=l.indexOf(fs);let n=e.length-1,a="";for(let l=t.length-1;l>=0&&n>-1;l--){const i=t[l];let r=e[n];if("string"===typeof i)a=i+a,r===i&&n--;else{if(void 0===r||!i.regex.test(r))return a;do{a=(void 0!==i.transform?i.transform(r):r)+a,n--,r=e[n]}while(o===l&&void 0!==r&&i.regex.test(r))}}return a}function w(e){return"string"!==typeof e||void 0===s?"number"===typeof e?s(""+e):e:s(e)}function x(e){return i.length-e.length<=0?e:!0===t.reverseFillMask&&e.length>0?i.slice(0,-e.length)+e:e+i.slice(e.length)}return{innerValue:c,hasMask:u,moveCursorForPaste:f,updateMaskValue:m,onMaskedKeydown:g}}const bs=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,ys=/[\u4e00-\u9fff\u3400-\u4dbf\u{20000}-\u{2a6df}\u{2a700}-\u{2b73f}\u{2b740}-\u{2b81f}\u{2b820}-\u{2ceaf}\uf900-\ufaff\u3300-\u33ff\ufe30-\ufe4f\uf900-\ufaff\u{2f800}-\u{2fa1f}]/u,ws=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/;function xs(e){return function(t){if("compositionend"===t.type||"change"===t.type){if(!0!==t.target.composing)return;t.target.composing=!1,e(t)}else"compositionupdate"===t.type?"string"===typeof t.data&&!1===bs.test(t.data)&&!1===ys.test(t.data)&&!1===ws.test(t.data)&&(t.target.composing=!1):t.target.composing=!0}}var _s=e.defineComponent({name:"QInput",inheritAttrs:!1,props:{...Ir,...hs,...bn,modelValue:{required:!1},shadowText:String,type:{type:String,default:"text"},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...Rr,"paste","change"],setup(t,{emit:o,attrs:n}){const a={};let l,i,r,s,u=NaN;const c=e.ref(null),d=xn(t),{innerValue:v,hasMask:p,moveCursorForPaste:m,updateMaskValue:f,onMaskedKeydown:h}=gs(t,o,T,c),g=Kr(t,!0),b=e.computed(()=>Fr(v.value)),y=xs(M),w=Nr(),x=e.computed(()=>"textarea"===t.type||!0===t.autogrow),_=e.computed(()=>{const e={...w.splitAttrs.listeners.value,onInput:M,onPaste:$,onChange:O,onBlur:V,onFocus:C};return e.onCompositionstart=e.onCompositionupdate=e.onCompositionend=y,!0===p.value&&(e.onKeydown=h),!0===t.autogrow&&(e.onAnimationend=B),e}),S=e.computed(()=>{const e={tabindex:0,"data-autofocus":!0===t.autofocus||void 0,rows:"textarea"===t.type?6:void 0,"aria-label":t.label,name:d.value,...w.splitAttrs.attributes.value,id:w.targetUid.value,maxlength:t.maxlength,disabled:!0===t.disable,readonly:!0===t.readonly};return!1===x.value&&(e.type=t.type),!0===t.autogrow&&(e.rows=1),e});function q(){io(()=>{const e=document.activeElement;null===c.value||c.value===e||null!==e&&e.id===w.targetUid.value||c.value.focus()})}function k(){null!==c.value&&c.value.select()}function $(e){if(!0===p.value&&!0!==t.reverseFillMask){const t=e.target;m(t,t.selectionStart,t.selectionEnd)}o("paste",e)}function M(n){if(!n||!n.target||!0===n.target.composing)return;if("file"===t.type)return void o("update:modelValue",n.target.files);const a=n.target.value;if(!0===p.value)f(a,!1,n.inputType);else if(T(a),["text","search","url","tel","password"].includes(t.type)&&n.target===document.activeElement){const{selectionStart:t,selectionEnd:o}=n.target;void 0!==t&&void 0!==o&&e.nextTick(()=>{n.target===document.activeElement&&0===a.indexOf(n.target.value)&&n.target.setSelectionRange(t,o)})}!0===t.autogrow&&B()}function T(n,c){s=(()=>{"number"!==t.type&&!0===a.hasOwnProperty("value")&&delete a.value,t.modelValue!==n&&u!==n&&(!0===c&&(i=!0),o("update:modelValue",n),e.nextTick(()=>{u===n&&(u=NaN)})),s=void 0}),"number"===t.type&&(l=!0,a.value=n),void 0!==t.debounce?(clearTimeout(r),a.value=n,r=setTimeout(s,t.debounce)):s()}function B(){const e=c.value;if(null!==e){const t=e.parentNode.style;t.marginBottom=e.scrollHeight-1+"px",e.style.height="1px",e.style.height=e.scrollHeight+"px",t.marginBottom=""}}function O(e){y(e),clearTimeout(r),void 0!==s&&s(),o("change",e.target.value)}function V(e){void 0!==e&&C(e),clearTimeout(r),void 0!==s&&s(),l=!1,i=!1,delete a.value,"file"!==t.type&&setTimeout(()=>{null!==c.value&&(c.value.value=void 0!==v.value?v.value:"")})}function z(){return!0===a.hasOwnProperty("value")?a.value:void 0!==v.value?v.value:""}e.watch(()=>t.modelValue,o=>{if(!0===p.value){if(!0===i)return void(i=!1);f(o)}else v.value!==o&&(v.value=o,"number"===t.type&&!0===a.hasOwnProperty("value")&&(!0===l?l=!1:delete a.value));!0===t.autogrow&&e.nextTick(B)}),e.watch(()=>t.autogrow,t=>{!0===t?e.nextTick(B):null!==c.value&&n.rows>0&&(c.value.style.height="auto")}),e.watch(()=>t.dense,()=>{!0===t.autogrow&&e.nextTick(B)}),e.onBeforeUnmount(()=>{V()}),e.onMounted(()=>{!0===t.autogrow&&B()}),Object.assign(w,{innerValue:v,fieldClass:e.computed(()=>`q-${!0===x.value?"textarea":"input"}`+(!0===t.autogrow?" q-textarea--autogrow":"")),hasShadow:e.computed(()=>"file"!==t.type&&"string"===typeof t.shadowText&&t.shadowText.length>0),inputRef:c,emitValue:T,hasValue:b,floatingLabel:e.computed(()=>!0===b.value||Fr(t.displayValue)),getControl:()=>{return e.h(!0===x.value?"textarea":"input",{ref:c,class:["q-field__native q-placeholder",t.inputClass],style:t.inputStyle,...S.value,..._.value,..."file"!==t.type?{value:z()}:g.value})},getShadowControl:()=>{return e.h("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(!0===x.value?"":" text-no-wrap")},[e.h("span",{class:"invisible"},z()),e.h("span",t.shadowText)])}});const L=jr(w),E=e.getCurrentInstance();return Object.assign(E.proxy,{focus:q,select:k,getNativeElement:()=>c.value}),L}});const Cs={threshold:0,root:null,rootMargin:"0px"};function Ss(e,t,o){let n,a,l;"function"===typeof o?(n=o,a=Cs,l=void 0===t.cfg):(n=o.handler,a=Object.assign({},Cs,o.cfg),l=void 0===t.cfg||!1===Hn(t.cfg,a)),t.handler!==n&&(t.handler=n),!0===l&&(t.cfg=a,void 0!==t.observer&&t.observer.unobserve(e),t.observer=new IntersectionObserver(([o])=>{if("function"===typeof t.handler){if(null===o.rootBounds&&!0===document.body.contains(e))return t.observer.unobserve(e),void t.observer.observe(e);const n=t.handler(o,t.observer);(!1===n||!0===t.once&&!0===o.isIntersecting)&&qs(e)}},a),t.observer.observe(e))}function qs(e){const t=e.__qvisible;void 0!==t&&(void 0!==t.observer&&t.observer.unobserve(e),delete e.__qvisible)}var ks={name:"intersection",mounted(e,{modifiers:t,value:o}){const n={once:!0===t.once};Ss(e,n,o),e.__qvisible=n},updated(e,t){const o=e.__qvisible;void 0!==o&&Ss(e,o,t.value)},beforeUnmount:qs},$s=e.defineComponent({name:"QIntersection",props:{tag:{type:String,default:"div"},once:Boolean,transition:String,ssrPrerender:Boolean,margin:String,threshold:[Number,Array],root:{default:null},disable:Boolean,onVisibility:Function},setup(o,{slots:n,emit:a}){const l=e.ref(!0===t.value&&o.ssrPrerender),i=e.computed(()=>void 0!==o.root||void 0!==o.margin||void 0!==o.threshold?{handler:u,cfg:{root:o.root,rootMargin:o.margin,threshold:o.threshold}}:u),r=e.computed(()=>!0!==o.disable&&(!0!==t.value||!0!==o.once||!0!==o.ssrPrerender)),s=e.computed(()=>{return[[ks,i.value,void 0,{once:o.once}]]});function u(e){l.value!==e.isIntersecting&&(l.value=e.isIntersecting,void 0!==o.onVisibility&&a("visibility",l.value))}function c(){return!0===l.value?[e.h("div",{key:"content"},Fe(n.default))]:void 0}return()=>{const t=o.transition?[e.h(e.Transition,{name:"q-transition--"+o.transition},c)]:c();return je(o.tag,{class:"q-intersection"},t,"main",r.value,()=>s.value)}}}),Ms=e.defineComponent({name:"QList",props:{...at,bordered:Boolean,dense:Boolean,separator:Boolean,padding:Boolean},setup(t,{slots:o}){const n=e.getCurrentInstance(),a=lt(t,n.proxy.$q),l=e.computed(()=>"q-list"+(!0===t.bordered?" q-list--bordered":"")+(!0===t.dense?" q-list--dense":"")+(!0===t.separator?" q-list--separator":"")+(!0===a.value?" q-list--dark":"")+(!0===t.padding?" q-list--padding":""));return()=>e.h("div",{class:l.value},Fe(o.default))}});const Ts=[34,37,40,33,39,38],Bs=Object.keys(sa);var Os=e.defineComponent({name:"QKnob",props:{...bn,...sa,modelValue:{type:Number,required:!0},step:{type:Number,default:1,validator:e=>e>=0},tabindex:{type:[Number,String],default:0},disable:Boolean,readonly:Boolean},emits:["update:modelValue","change","drag-value"],setup(t,{slots:o,emit:n}){const{proxy:a}=e.getCurrentInstance(),{$q:l}=a,i=e.ref(t.modelValue),r=e.ref(!1);let s,u;e.watch(()=>t.modelValue,e=>{if(e<t.min)i.value=t.min;else{if(!(e>t.max))return void(e!==i.value&&(i.value=e));i.value=t.max}i.value!==t.modelValue&&(n("update:modelValue",i.value),n("change",i.value))});const c=e.computed(()=>!1===t.disable&&!1===t.readonly),d=e.computed(()=>"q-knob non-selectable"+(!0===c.value?" q-knob--editable":!0===t.disable?" disabled":"")),v=e.computed(()=>(String(t.step).trim("0").split(".")[1]||"").length),p=e.computed(()=>0===t.step?1:t.step),m=e.computed(()=>!0===t.instantFeedback||!0===r.value),f=!0===l.platform.is.mobile?e.computed(()=>!0===c.value?{onClick:C}:{}):e.computed(()=>!0===c.value?{onMousedown:_,onClick:C,onKeydown:S,onKeyup:$}:{}),h=e.computed(()=>!0===c.value?{tabindex:t.tabindex}:{[`aria-${!0===t.disable?"disabled":"readonly"}`]:"true"}),g=e.computed(()=>{const e={};return Bs.forEach(o=>{e[o]=t[o]}),e});function y(e){e.isFinal?(k(e.evt,!0),r.value=!1):e.isFirst?(x(),r.value=!0,k(e.evt)):k(e.evt)}const w=e.computed(()=>{return[[ha,y,void 0,{prevent:!0,stop:!0,mouse:!0}]]});function x(){const{top:e,left:t,width:o,height:n}=u.getBoundingClientRect();s={top:e+n/2,left:t+o/2}}function _(e){x(),k(e)}function C(e){x(),k(e,!0)}function S(e){if(!Ts.includes(e.keyCode))return;q(e);const o=([34,33].includes(e.keyCode)?10:1)*p.value,n=[34,37,40].includes(e.keyCode)?-o:o;i.value=xe(parseFloat((i.value+n).toFixed(v.value)),t.min,t.max),M()}function k(e,o){const a=b(e),r=Math.abs(a.top-s.top),u=Math.sqrt(r**2+Math.abs(a.left-s.left)**2);let c=Math.asin(r/u)*(180/Math.PI);c=a.top<s.top?s.left<a.left?90-c:270+c:s.left<a.left?c+90:270-c,t.angle&&(c=_e(c-t.angle,0,360)),!0===l.lang.rtl&&(c=360-c);let d=t.min+c/360*(t.max-t.min);if(0!==p.value){const e=d%p.value;d=d-e+(Math.abs(e)>=p.value/2?(e<0?-1:1)*p.value:0),d=parseFloat(d.toFixed(v.value))}d=xe(d,t.min,t.max),n("drag-value",d),i.value!==d&&(i.value=d),M(o)}function $(e){Ts.includes(e.keyCode)&&M(!0)}function M(e){t.modelValue!==i.value&&n("update:modelValue",i.value),!0===e&&n("change",i.value)}const T=yn(t);function B(){return e.h("input",T.value)}return e.onMounted(()=>{u=a.$el}),()=>{const n={class:d.value,role:"slider","aria-valuemin":t.min,"aria-valuemax":t.max,"aria-valuenow":t.modelValue,...h.value,...g.value,value:i.value,instantFeedback:m.value,...f.value},a={default:o.default};return!0===c.value?(void 0!==t.name&&(a.internal=B),e.withDirectives(e.h(pa,n,a),w.value)):e.h(pa,n,a)}}});const{passive:Vs}=p,zs=["both","horizontal","vertical"];var Ls=e.defineComponent({name:"QScrollObserver",props:{axis:{type:String,validator:e=>zs.includes(e),default:"vertical"},debounce:[String,Number],scrollTarget:{default:void 0}},emits:["scroll"],setup(t,{emit:o}){const n={position:{top:0,left:0},direction:"down",directionChanged:!1,delta:{top:0,left:0},inflectionPoint:{top:0,left:0}};let a,l,i=null;function r(){i=null;const e=Math.max(0,Mo(a)),l=To(a),r={top:e-n.position.top,left:l-n.position.left};if("vertical"===t.axis&&0===r.top||"horizontal"===t.axis&&0===r.left)return;const s=Math.abs(r.top)>=Math.abs(r.left)?r.top<0?"up":"down":r.left<0?"left":"right";n.position={top:e,left:l},n.directionChanged=n.direction!==s,n.delta=r,!0===n.directionChanged&&(n.direction=s,n.inflectionPoint=n.position),o("scroll",{...n})}function s(){a=qo(l,t.scrollTarget),a.addEventListener("scroll",c,Vs),c(!0)}function u(){void 0!==a&&(a.removeEventListener("scroll",c,Vs),a=void 0)}function c(e){!0===e||0===t.debounce||"0"===t.debounce?r():null===i&&(i=t.debounce?setTimeout(r,t.debounce):requestAnimationFrame(r))}e.watch(()=>t.scrollTarget,()=>{u(),s()});const d=e.getCurrentInstance();return e.onMounted(()=>{l=d.proxy.$el.parentNode,s()}),e.onBeforeUnmount(()=>{clearTimeout(i),cancelAnimationFrame(i),u()}),Object.assign(d.proxy,{trigger:c,getPosition:()=>n}),m}}),Es=e.defineComponent({name:"QLayout",props:{container:Boolean,view:{type:String,default:"hhh lpr fff",validator:e=>/^(h|l)h(h|r) lpr (f|l)f(f|r)$/.test(e.toLowerCase())},onScroll:Function,onScrollHeight:Function,onResize:Function},setup(o,{slots:n,emit:a}){const{proxy:{$q:l}}=e.getCurrentInstance(),i=e.ref(null),r=e.ref(l.screen.height),s=e.ref(!0===o.container?0:l.screen.width),u=e.ref({position:0,direction:"down",inflectionPoint:0}),c=e.ref(0),d=e.ref(!0===t.value?0:Ao()),v=e.computed(()=>"q-layout q-layout--"+(!0===o.container?"containerized":"standard")),p=e.computed(()=>!1===o.container?{minHeight:l.screen.height+"px"}:null),m=e.computed(()=>0!==d.value?{[!0===l.lang.rtl?"left":"right"]:`${d.value}px`}:null),f=e.computed(()=>0!==d.value?{[!0===l.lang.rtl?"right":"left"]:0,[!0===l.lang.rtl?"left":"right"]:`-${d.value}px`,width:`calc(100% + ${d.value}px)`}:null);function h(e){if(!0===o.container||!0!==document.qScrollPrevented){const t={position:e.position.top,direction:e.direction,directionChanged:e.directionChanged,inflectionPoint:e.inflectionPoint.top,delta:e.delta.top};u.value=t,void 0!==o.onScroll&&a("scroll",t)}}function g(e){const{height:t,width:n}=e;let l=!1;r.value!==t&&(l=!0,r.value=t,void 0!==o.onScrollHeight&&a("scroll-height",t),y()),s.value!==n&&(l=!0,s.value=n),!0===l&&void 0!==o.onResize&&a("resize",e)}function b({height:e}){c.value!==e&&(c.value=e,y())}function y(){if(!0===o.container){const e=r.value>c.value?Ao():0;d.value!==e&&(d.value=e)}}let w;const x={instances:{},view:e.computed(()=>o.view),isContainer:e.computed(()=>o.container),rootRef:i,height:r,containerHeight:c,scrollbarWidth:d,totalWidth:e.computed(()=>s.value+d.value),rows:e.computed(()=>{const e=o.view.toLowerCase().split(" ");return{top:e[0].split(""),middle:e[1].split(""),bottom:e[2].split("")}}),header:e.reactive({size:0,offset:0,space:!1}),right:e.reactive({size:300,offset:0,space:!1}),footer:e.reactive({size:0,offset:0,space:!1}),left:e.reactive({size:300,offset:0,space:!1}),scroll:u,animate(){void 0!==w?clearTimeout(w):document.body.classList.add("q-body--layout-animate"),w=setTimeout(()=>{document.body.classList.remove("q-body--layout-animate"),w=void 0},155)},update(e,t,o){x[e][t]=o}};return e.provide(ae,x),()=>{const t=Re(n.default,[e.h(Ls,{onScroll:h}),e.h($a,{onResize:g})]),a=e.h("div",{class:v.value,style:p.value,ref:!0===o.container?void 0:i},t);return!0===o.container?e.h("div",{class:"q-layout-container overflow-hidden",ref:i},[e.h($a,{onResize:b}),e.h("div",{class:"absolute-full",style:m.value},[e.h("div",{class:"scroll",style:f.value},[a])])]):a}}});const Ps=["horizontal","vertical","cell","none"];var As=e.defineComponent({name:"QMarkupTable",props:{...at,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,wrapCells:Boolean,separator:{type:String,default:"horizontal",validator:e=>Ps.includes(e)}},setup(t,{slots:o}){const n=e.getCurrentInstance(),a=lt(t,n.proxy.$q),l=e.computed(()=>"q-markup-table q-table__container q-table__card"+` q-table--${t.separator}-separator`+(!0===a.value?" q-table--dark q-table__card--dark q-dark":"")+(!0===t.dense?" q-table--dense":"")+(!0===t.flat?" q-table--flat":"")+(!0===t.bordered?" q-table--bordered":"")+(!0===t.square?" q-table--square":"")+(!1===t.wrapCells?" q-table--no-wrap":""));return()=>e.h("div",{class:l.value},[e.h("table",{class:"q-table"},Fe(o.default))])}}),Fs=e.defineComponent({name:"QNoSsr",props:{tag:{type:String,default:"div"},placeholder:String},setup(t,{slots:o}){const n=Sa();return()=>{const a={};if(!0===n.value){const n=Fe(o.default);return void 0===n?n:n.length>1?e.h(t.tag,a,n):n[0]}a.class="q-no-ssr-placeholder";const l=Fe(o.placeholder);return void 0!==l?l.length>1?e.h(t.tag,a,l):l[0]:void 0!==t.placeholder?e.h(t.tag,a,t.placeholder):void 0}}});const Is=e.h("svg",{class:"q-radio__bg absolute non-selectable",viewBox:"0 0 24 24","aria-hidden":"true"},[e.h("path",{d:"M12,22a10,10 0 0 1 -10,-10a10,10 0 0 1 10,-10a10,10 0 0 1 10,10a10,10 0 0 1 -10,10m0,-22a12,12 0 0 0 -12,12a12,12 0 0 0 12,12a12,12 0 0 0 12,-12a12,12 0 0 0 -12,-12"}),e.h("path",{class:"q-radio__check",d:"M12,6a6,6 0 0 0 -6,6a6,6 0 0 0 6,6a6,6 0 0 0 6,-6a6,6 0 0 0 -6,-6"})]);var Rs=e.defineComponent({name:"QRadio",props:{...at,...Pe,...bn,modelValue:{required:!0},val:{required:!0},label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},emits:["update:modelValue"],setup(t,{slots:o,emit:n}){const{proxy:a}=e.getCurrentInstance(),l=lt(t,a.$q),i=Ae(t,ea),r=e.ref(null),{refocusTargetEl:s,refocusTarget:u}=Jn(t,r),c=e.computed(()=>t.modelValue===t.val),d=e.computed(()=>"q-radio cursor-pointer no-outline row inline no-wrap items-center"+(!0===t.disable?" disabled":"")+(!0===l.value?" q-radio--dark":"")+(!0===t.dense?" q-radio--dense":"")+(!0===t.leftLabel?" reverse":"")),v=e.computed(()=>{const e=void 0===t.color||!0!==t.keepColor&&!0!==c.value?"":` text-${t.color}`;return"q-radio__inner relative-position "+`q-radio__inner--${!0===c.value?"truthy":"falsy"}${e}`}),p=e.computed(()=>!0===t.disable?-1:t.tabindex||0),m=e.computed(()=>{const e={type:"radio"};return void 0!==t.name&&Object.assign(e,{name:t.name,value:t.val}),e}),f=e.computed(()=>void 0!==t.name&&!0===c.value?{checked:!0}:{}),h=wn(m,f);function g(e){void 0!==e&&(q(e),u(e)),!0!==t.disable&&!0!==c.value&&n("update:modelValue",t.val,e)}function b(e){13!==e.keyCode&&32!==e.keyCode||q(e)}function y(e){13!==e.keyCode&&32!==e.keyCode||g(e)}return Object.assign(a,{set:g}),()=>{const n=[Is];!0!==t.disable&&h(n,"unshift"," q-radio__native q-ma-none q-pa-none");const a=[e.h("div",{class:v.value,style:i.value},n)];null!==s.value&&a.push(s.value);const l=void 0!==t.label?Re(o.default,[t.label]):Fe(o.default);return void 0!==l&&a.push(e.h("div",{class:"q-radio__label q-anchor--skip"},l)),e.h("div",{ref:r,class:d.value,tabindex:p.value,role:"radio","aria-label":t.label,"aria-checked":!0===c.value?"true":"false","aria-disabled":!0===t.disable?"true":void 0,onClick:g,onKeydown:b,onKeyup:y},a)}}}),Ns=e.defineComponent({name:"QToggle",props:{...ta,icon:String,checkedIcon:String,uncheckedIcon:String,indeterminateIcon:String,iconColor:String},emits:oa,setup(t){function o(o,n){const a=e.computed(()=>(!0===o.value?t.checkedIcon:!0===n.value?t.indeterminateIcon:t.uncheckedIcon)||t.icon),l=e.computed(()=>{if(!0===o.value)return t.iconColor});return()=>[e.h("div",{class:"q-toggle__track"}),e.h("div",{class:"q-toggle__thumb absolute flex flex-center no-wrap"},void 0!==a.value?[e.h(et,{name:a.value,color:l.value})]:void 0)]}return na("toggle",o)}});const js={radio:Rs,checkbox:la,toggle:Ns},Ds=Object.keys(js);var Hs=e.defineComponent({name:"QOptionGroup",props:{...at,modelValue:{required:!0},options:{type:Array,validator:e=>e.every(e=>"value"in e&&"label"in e)},name:String,type:{default:"radio",validator:e=>Ds.includes(e)},color:String,keepColor:Boolean,dense:Boolean,size:String,leftLabel:Boolean,inline:Boolean,disable:Boolean},emits:["update:modelValue"],setup(t,{emit:o}){const{proxy:{$q:n}}=e.getCurrentInstance(),a=Array.isArray(t.modelValue);"radio"===t.type?!0===a&&console.error("q-option-group: model should not be array"):!1===a&&console.error("q-option-group: model should be array in your case");const l=lt(t,n),i=e.computed(()=>js[t.type]),r=e.computed(()=>"q-option-group q-gutter-x-sm"+(!0===t.inline?" q-option-group--inline":"")),s=e.computed(()=>{const e={};return"radio"===t.type&&(e.role="radiogroup",!0===t.disable&&(e["aria-disabled"]="true")),e});function u(e){o("update:modelValue",e)}return()=>e.h("div",{class:r.value,...s.value},t.options.map(o=>e.h("div",[e.h(i.value,{modelValue:t.modelValue,val:o.value,name:void 0===o.name?t.name:o.name,disable:t.disable||o.disable,label:o.label,leftLabel:void 0===o.leftLabel?t.leftLabel:o.leftLabel,color:void 0===o.color?t.color:o.color,checkedIcon:o.checkedIcon,uncheckedIcon:o.uncheckedIcon,dark:o.dark||l.value,size:void 0===o.size?t.size:o.size,dense:t.dense,keepColor:void 0===o.keepColor?t.keepColor:o.keepColor,"onUpdate:modelValue":u})])))}}),Qs=e.defineComponent({name:"QPage",props:{padding:Boolean,styleFn:Function},setup(t,{slots:o}){const{proxy:{$q:n}}=e.getCurrentInstance(),a=e.inject(ae);e.inject(le,()=>{console.error("QPage needs to be child of QPageContainer")});const l=e.computed(()=>{const e=(!0===a.header.space?a.header.size:0)+(!0===a.footer.space?a.footer.size:0);if("function"===typeof t.styleFn){const o=!0===a.isContainer.value?a.containerHeight.value:n.screen.height;return t.styleFn(e,o)}return{minHeight:!0===a.isContainer.value?a.containerHeight.value-e+"px":0===n.screen.height?0!==e?`calc(100vh - ${e}px)`:"100vh":n.screen.height-e+"px"}}),i=e.computed(()=>`q-page ${!0===t.padding?" q-layout-padding":""}`);return()=>e.h("main",{class:i.value,style:l.value},Fe(o.default))}}),Us=e.defineComponent({name:"QPageContainer",setup(t,{slots:o}){const{proxy:{$q:n}}=e.getCurrentInstance(),a=e.inject(ae,()=>{console.error("QPageContainer needs to be child of QLayout")});e.provide(le,!0);const l=e.computed(()=>{const e={};return!0===a.header.space&&(e.paddingTop=`${a.header.size}px`),!0===a.right.space&&(e[`padding${!0===n.lang.rtl?"Left":"Right"}`]=`${a.right.size}px`),!0===a.footer.space&&(e.paddingBottom=`${a.footer.size}px`),!0===a.left.space&&(e[`padding${!0===n.lang.rtl?"Right":"Left"}`]=`${a.left.size}px`),e});return()=>e.h("div",{class:"q-page-container",style:l.value},Fe(o.default))}});const Ws={position:{type:String,default:"bottom-right",validator:e=>["top-right","top-left","bottom-right","bottom-left","top","right","bottom","left"].includes(e)},offset:{type:Array,validator:e=>2===e.length},expand:Boolean};function Ys(){const{props:t,proxy:o}=e.getCurrentInstance(),{$q:n}=o,a=e.inject(ae,()=>{console.error("QPageSticky needs to be child of QLayout")}),l=e.computed(()=>{const e=t.position;return{top:e.indexOf("top")>-1,right:e.indexOf("right")>-1,bottom:e.indexOf("bottom")>-1,left:e.indexOf("left")>-1,vertical:"top"===e||"bottom"===e,horizontal:"left"===e||"right"===e}}),i=e.computed(()=>a.header.offset),r=e.computed(()=>a.right.offset),s=e.computed(()=>a.footer.offset),u=e.computed(()=>a.left.offset),c=e.computed(()=>{let e=0,o=0;const a=l.value,c=!0===n.lang.rtl?-1:1;!0===a.top&&0!==i.value?o=`${i.value}px`:!0===a.bottom&&0!==s.value&&(o=`${-s.value}px`),!0===a.left&&0!==u.value?e=`${c*u.value}px`:!0===a.right&&0!==r.value&&(e=`${-c*r.value}px`);const d={transform:`translate(${e}, ${o})`};return t.offset&&(d.margin=`${t.offset[1]}px ${t.offset[0]}px`),!0===a.vertical?(0!==u.value&&(d[!0===n.lang.rtl?"right":"left"]=`${u.value}px`),0!==r.value&&(d[!0===n.lang.rtl?"left":"right"]=`${r.value}px`)):!0===a.horizontal&&(0!==i.value&&(d.top=`${i.value}px`),0!==s.value&&(d.bottom=`${s.value}px`)),d}),d=e.computed(()=>`q-page-sticky row flex-center fixed-${t.position}`+` q-page-sticky--${!0===t.expand?"expand":"shrink"}`);function v(o){const n=Fe(o.default);return e.h("div",{class:d.value,style:c.value},!0===t.expand?n:[e.h("div",n)])}return{$layout:a,getStickyContent:v}}var Ks=e.defineComponent({name:"QPageScroller",props:{...Ws,scrollOffset:{type:Number,default:1e3},reverse:Boolean,duration:{type:Number,default:300},offset:{default:()=>[18,18]}},emits:["click"],setup(t,{slots:o,emit:n}){const{proxy:{$q:a}}=e.getCurrentInstance(),{$layout:l,getStickyContent:i}=Ys(),r=e.ref(null);let s;const u=e.computed(()=>l.height.value-(!0===l.isContainer.value?l.containerHeight.value:a.screen.height));function c(){return!0===t.reverse?u.value-l.scroll.value.position>t.scrollOffset:l.scroll.value.position>t.scrollOffset}const d=e.ref(c());function v(){const e=c();d.value!==e&&(d.value=e)}function p(){!0===t.reverse?void 0===s&&(s=e.watch(u,v)):m()}function m(){void 0!==s&&(s(),s=void 0)}function f(e){const o=qo(!0===l.isContainer.value?r.value:l.rootRef.value);Lo(o,!0===t.reverse?l.height.value:0,t.duration),n("click",e)}function h(){return!0===d.value?e.h("div",{ref:r,class:"q-page-scroller",onClick:f},i(o)):null}return e.watch(l.scroll,v),e.watch(()=>t.reverse,p),p(),e.onBeforeUnmount(m),()=>e.h(e.Transition,{name:"q-transition--fade"},h)}}),Xs=e.defineComponent({name:"QPageSticky",props:Ws,setup(e,{slots:t}){const{getStickyContent:o}=Ys();return()=>o(t)}}),Zs=e.defineComponent({name:"QPagination",props:{...at,modelValue:{type:Number,required:!0},min:{type:Number,default:1},max:{type:Number,required:!0},color:{type:String,default:"primary"},textColor:String,activeColor:String,activeTextColor:String,inputStyle:[Array,String,Object],inputClass:[Array,String,Object],size:String,disable:Boolean,input:Boolean,iconPrev:String,iconNext:String,iconFirst:String,iconLast:String,toFn:Function,boundaryLinks:{type:Boolean,default:null},boundaryNumbers:{type:Boolean,default:null},directionLinks:{type:Boolean,default:null},ellipses:{type:Boolean,default:null},maxPages:{type:Number,default:0,validator:e=>e>=0},ripple:{type:[Boolean,Object],default:null},round:Boolean,rounded:Boolean,flat:Boolean,outline:Boolean,unelevated:Boolean,push:Boolean,glossy:Boolean,dense:Boolean,padding:{type:String,default:"3px 2px"}},emits:["update:modelValue"],setup(t,{emit:o}){const{proxy:n}=e.getCurrentInstance(),{$q:a}=n,l=lt(t,a),i=e.ref(null),r=e.computed({get:()=>t.modelValue,set:e=>{if(e=parseInt(e,10),t.disable||isNaN(e))return;const n=xe(e,t.min,t.max);t.modelValue!==n&&o("update:modelValue",n)}});function s(e,t){return[!0,!1].includes(e)?e:t}e.watch(()=>t.min+t.max,()=>{r.value=t.modelValue});const u=e.computed(()=>"q-pagination row no-wrap items-center"+(!0===t.disable?" disabled":"")),c=e.computed(()=>r.value+" / "+t.max),d=e.computed(()=>s(t.boundaryLinks,t.input)),v=e.computed(()=>s(t.boundaryNumbers,!t.input)),p=e.computed(()=>s(t.directionLinks,t.input)),m=e.computed(()=>s(t.ellipses,!t.input)),f=e.computed(()=>{const e=[t.iconFirst||a.iconSet.pagination.first,t.iconPrev||a.iconSet.pagination.prev,t.iconNext||a.iconSet.pagination.next,t.iconLast||a.iconSet.pagination.last];return!0===a.lang.rtl?e.reverse():e}),h=e.computed(()=>!0===t.disable?{"aria-disabled":"true"}:{}),g=e.computed(()=>({round:t.round,rounded:t.rounded,outline:t.outline,unelevated:t.unelevated,push:t.push,glossy:t.glossy,dense:t.dense,padding:t.padding,color:t.color,flat:!0,size:t.size,ripple:null===t.ripple||t.ripple})),b=e.computed(()=>({flat:t.flat,color:t.activeColor||t.color,textColor:t.activeTextColor||t.textColor}));function y(e){r.value=e}function w(e){r.value=r.value+e}function x(){r.value=i.value,i.value=null}function _(t,o){const n={...g.value,...t};return void 0!==o&&(void 0!==n.toFn?n.to=n.toFn(o):n.onClick=(()=>y(o))),e.h(Wt,n)}return Object.assign(n,{set:y,setByOffset:w}),()=>{const o=[],n=[],a=[];if(d.value&&(o.push(_({key:"bls",disable:t.disable||t.modelValue<=t.min,icon:f.value[0]},t.min)),n.unshift(_({key:"ble",disable:t.disable||t.modelValue>=t.max,icon:f.value[3]},t.max))),p.value&&(o.push(_({key:"bdp",disable:t.disable||t.modelValue<=t.min,icon:f.value[1]},t.modelValue-1)),n.unshift(_({key:"bdn",disable:t.disable||t.modelValue>=t.max,icon:f.value[2]},t.modelValue+1))),!0===t.input)a.push(e.h(_s,{class:"inline",style:{width:`${c.value.length/1.5}em`},type:"number",dense:!0,value:i.value,disable:t.disable,dark:l.value,borderless:!0,inputClass:t.inputClass,inputStyle:t.inputStyle,placeholder:c.value,min:t.min,max:t.max,"onUpdate:modelValue"(e){i.value=e},onKeyup(e){!0===W(e,13)&&x()},onBlur:x}));else{let e=Math.max(t.maxPages,1+(m.value?2:0)+(v.value?2:0)),l=t.min,i=t.max,r=!1,s=!1,u=!1,c=!1;t.maxPages&&e<t.max-t.min+1&&(e=1+2*Math.floor(e/2),l=Math.max(t.min,Math.min(t.max-e+1,t.modelValue-Math.floor(e/2))),i=Math.min(t.max,l+e-1),v.value&&(u=!0,l+=1),m.value&&l>t.min+(v.value?1:0)&&(r=!0,l+=1),v.value&&(c=!0,i-=1),m.value&&i<t.max-(v.value?1:0)&&(s=!0,i-=1));const d={minWidth:`${Math.max(2,String(t.max).length)}em`};if(u){const e=t.min===t.modelValue;o.push(_({key:"bns",style:d,disable:t.disable,flat:!e,textColor:e?t.textColor:void 0,label:t.min},t.min))}if(c){const e=t.max===t.modelValue;n.unshift(_({key:"bne",style:d,disable:t.disable,flat:!e,textColor:e?t.textColor:void 0,label:t.max},t.max))}r&&o.push(_({key:"bes",style:d,disable:t.disable,label:"…",ripple:!1},l-1)),s&&n.unshift(_({key:"bee",style:d,disable:t.disable,label:"…",ripple:!1},i+1));for(let o=l;o<=i;o++){const e={key:`bpg${o}`,style:d,disable:t.disable,label:o};o===t.modelValue&&Object.assign(e,b.value),a.push(_(e,o))}}return e.h("div",{class:u.value,...h.value},[o,e.h("div",{class:"row justify-center"},[a]),n])}}});function Gs(e){let t,o,n=!1;function a(){o=arguments,!0!==n&&(n=!0,t=requestAnimationFrame(()=>{e.apply(this,o),o=void 0,n=!1}))}return a.cancel=(()=>{window.cancelAnimationFrame(t),n=!1}),a}const{passive:Js}=p;var eu=e.defineComponent({name:"QParallax",props:{src:String,height:{type:Number,default:500},speed:{type:Number,default:1,validator:e=>e>=0&&e<=1},scrollTarget:{default:void 0},onScroll:Function},setup(t,{slots:o,emit:n}){const a=e.ref(0),l=e.ref(null),i=e.ref(null),r=e.ref(null);let s,u,c,d,v,p;e.watch(()=>t.height,()=>{!0===s&&f()}),e.watch(()=>t.scrollTarget,()=>{!0===s&&(y(),b())});let m=e=>{a.value=e,void 0!==t.onScroll&&n("scroll",e)};function f(){let e,o,n;p===window?(e=0,o=window.innerHeight,n=o):(e=qt(p).top,o=$t(p),n=e+o);const a=qt(l.value).top,i=a+t.height;if(void 0!==v||i>e&&a<n){const e=(n-a)/(t.height+o);h((c-t.height)*e*t.speed),m(e)}}let h=e=>{u.style.transform=`translate3d(-50%,${Math.round(e)}px,0)`};function g(){c=u.naturalHeight||u.videoHeight||$t(u),!0===s&&f()}function b(){s=!0,p=qo(l.value,t.scrollTarget),p.addEventListener("scroll",f,Js),window.addEventListener("resize",d,Js),f()}function y(){!0===s&&(s=!1,p.removeEventListener("scroll",f,Js),window.removeEventListener("resize",d,Js),p=void 0)}return e.onMounted(()=>{h=Gs(h),m=Gs(m),d=Gs(g),u=void 0!==o.media?i.value.children[0]:r.value,u.onload=u.onloadstart=u.loadedmetadata=g,g(),u.style.display="initial",void 0!==window.IntersectionObserver?(v=new IntersectionObserver(e=>{const t=!0===e[0].isIntersecting?b:y;t()}),v.observe(l.value)):b()}),e.onBeforeUnmount(()=>{y(),void 0!==v&&v.disconnect(),u.onload=u.onloadstart=u.loadedmetadata=null}),()=>{return e.h("div",{ref:l,class:"q-parallax",style:{height:`${t.height}px`}},[e.h("div",{ref:i,class:"q-parallax__media absolute-full"},void 0!==o.media?o.media():[e.h("img",{ref:r,src:t.src})]),e.h("div",{class:"q-parallax__content absolute-full column flex-center"},void 0!==o.content?o.content({percentScrolled:a.value}):Fe(o.default))])}}});function tu(e){const t=JSON.stringify(e);if(t)return JSON.parse(t)}var ou=e.defineComponent({name:"QPopupEdit",props:{modelValue:{required:!0},title:String,buttons:Boolean,labelSet:String,labelCancel:String,color:{type:String,default:"primary"},validate:{type:Function,default:()=>!0},autoSave:Boolean,cover:{type:Boolean,default:!0},disable:Boolean},emits:["update:modelValue","save","cancel","before-show","show","before-hide","hide"],setup(t,{slots:o,emit:n}){const{proxy:a}=e.getCurrentInstance(),{$q:l}=a,i=e.ref(null),r=e.ref(""),s=e.ref("");let u=!1;const c=e.computed(()=>{const e={initialValue:r.value,validate:t.validate,set:d,cancel:v,updatePosition:p};return Object.defineProperty(e,"value",{get:()=>s.value,set:e=>{s.value=e}}),e});function d(){!1!==t.validate(s.value)&&(!0===m()&&(n("save",s.value,r.value),n("update:modelValue",s.value)),f())}function v(){!0===m()&&n("cancel",s.value,r.value),f()}function p(){e.nextTick(()=>{i.value.updatePosition()})}function m(){return!1===Hn(s.value,r.value)}function f(){u=!0,i.value.hide()}function h(){u=!1,r.value=tu(t.modelValue),s.value=tu(t.modelValue),n("before-show")}function g(){n("show")}function b(){!1===u&&!0===m()&&(!0===t.autoSave&&!0===t.validate(s.value)?(n("save",s.value,r.value),n("update:modelValue",s.value)):n("cancel",s.value,r.value)),n("before-hide")}function y(){n("hide")}function w(){const n=void 0!==o.default?o.default(c.value).slice():[];return t.title&&n.unshift(e.h("div",{class:"q-dialog__title q-mt-sm q-mb-sm"},t.title)),!0===t.buttons&&n.push(e.h("div",{class:"q-popup-edit__buttons row justify-center no-wrap"},[e.h(Wt,{flat:!0,color:t.color,label:t.labelCancel||l.lang.label.cancel,onClick:v}),e.h(Wt,{flat:!0,color:t.color,label:t.labelSet||l.lang.label.set,onClick:d})])),n}return Object.assign(a,{set:d,cancel:v,show(e){null!==i.value&&i.value.show(e)},hide(e){null!==i.value&&i.value.hide(e)},updatePosition:p}),()=>{if(!0!==t.disable)return e.h(hn,{ref:i,class:"q-popup-edit",cover:t.cover,onBeforeShow:h,onShow:g,onBeforeHide:b,onHide:y,onEscapeKey:v},w)}}}),nu=e.defineComponent({name:"QPopupProxy",props:{...Xt,breakpoint:{type:[String,Number],default:450}},emits:["show","hide"],setup(t,{slots:o,emit:n,attrs:a}){const{proxy:l}=e.getCurrentInstance(),{$q:i}=l,r=e.ref(!1),s=e.ref(null),u=e.computed(()=>parseInt(t.breakpoint,10)),{canShow:c}=Zt({showing:r});function d(){return i.screen.width<u.value||i.screen.height<u.value?"dialog":"menu"}const v=e.ref(d());function p(e){r.value=!0,n("show",e)}function m(e){r.value=!1,v.value=d(),n("hide",e)}return e.watch(()=>d(),e=>{!0!==r.value&&(v.value=e)}),Object.assign(l,{show(e){!0===c(e)&&s.value.show(e)},hide(e){s.value.hide(e)},toggle(e){s.value.toggle(e)}}),()=>{const n=Fe(o.default),l="menu"===v.value&&void 0!==n&&void 0!==n[0]&&void 0!==n[0].type&&["QDate","QTime","QCarousel","QColor"].includes(n[0].type.name)?{cover:!0,maxHeight:"99vh"}:{},i={ref:s,...l,...a,onShow:p,onHide:m};let r;return"dialog"===v.value?r=Ai:(r=hn,Object.assign(i,{target:t.target,contextMenu:t.contextMenu,noParentEvent:!0,separateClosePopup:!0})),e.h(r,i,()=>n)}}});const au={xs:2,sm:4,md:6,lg:10,xl:14};function lu(e,t,o){return{transform:!0===t?`translateX(${!0===o.lang.rtl?"-":""}100%) scale3d(${-e},1,1)`:`scale3d(${e},1,1)`}}var iu=e.defineComponent({name:"QLinearProgress",props:{...at,...Pe,value:{type:Number,default:0},buffer:Number,color:String,trackColor:String,reverse:Boolean,stripe:Boolean,indeterminate:Boolean,query:Boolean,rounded:Boolean,instantFeedback:Boolean},setup(t,{slots:o}){const{proxy:n}=e.getCurrentInstance(),a=lt(t,n.$q),l=Ae(t,au),i=e.computed(()=>!0===t.indeterminate||!0===t.query),r=e.computed(()=>"q-linear-progress"+(void 0!==t.color?` text-${t.color}`:"")+(!0===t.reverse||!0===t.query?" q-linear-progress--reverse":"")+(!0===t.rounded?" rounded-borders":"")),s=e.computed(()=>lu(void 0!==t.buffer?t.buffer:1,t.reverse,n.$q)),u=e.computed(()=>"q-linear-progress__track absolute-full"+` q-linear-progress__track--with${!0===t.instantFeedback?"out":""}-transition`+` q-linear-progress__track--${!0===a.value?"dark":"light"}`+(void 0!==t.trackColor?` bg-${t.trackColor}`:"")),c=e.computed(()=>lu(!0===i.value?1:t.value,t.reverse,n.$q)),d=e.computed(()=>"q-linear-progress__model absolute-full"+` q-linear-progress__model--with${!0===t.instantFeedback?"out":""}-transition`+` q-linear-progress__model--${!0===i.value?"in":""}determinate`),v=e.computed(()=>({width:`${100*t.value}%`})),p=e.computed(()=>`q-linear-progress__stripe absolute-${!0===t.reverse?"right":"left"}`);return()=>{const n=[e.h("div",{class:u.value,style:s.value}),e.h("div",{class:d.value,style:c.value})];return!0===t.stripe&&!1===i.value&&n.push(e.h("div",{class:p.value,style:v.value})),e.h("div",{class:r.value,style:l.value,role:"progressbar","aria-valuemin":0,"aria-valuemax":1,"aria-valuenow":!0===t.indeterminate?void 0:t.value},Re(o.default,n))}}});const ru=40,su=20;var uu=e.defineComponent({name:"QPullToRefresh",props:{color:String,bgColor:String,icon:String,noMouse:Boolean,disable:Boolean,scrollTarget:{default:void 0}},emits:["refresh"],setup(t,{slots:o,emit:n}){const{proxy:a}=e.getCurrentInstance(),{$q:l}=a,i=e.ref("pull"),r=e.ref(0),s=e.ref(!1),u=e.ref(-ru),c=e.ref(!1),d=e.ref({}),v=e.computed(()=>({opacity:r.value,transform:`translateY(${u.value}px) rotate(${360*r.value}deg)`})),p=e.computed(()=>"q-pull-to-refresh__puller row flex-center"+(!0===c.value?" q-pull-to-refresh__puller--animating":"")+(void 0!==t.bgColor?` bg-${t.bgColor}`:""));function m(e){if(!0===e.isFinal)return void(!0===s.value&&(s.value=!1,"pulled"===i.value?(i.value="refreshing",b({pos:su}),g()):"pull"===i.value&&b({pos:-ru,ratio:0})));if(!0===c.value||"refreshing"===i.value)return!1;if(!0===e.isFirst){if(0!==Mo(w)||"down"!==e.direction)return!0===s.value&&(s.value=!1,i.value="pull",b({pos:-ru,ratio:0})),!1;s.value=!0;const{top:t,left:o}=y.getBoundingClientRect();d.value={top:t+"px",left:o+"px",width:window.getComputedStyle(y).getPropertyValue("width")}}S(e.evt);const t=Math.min(140,Math.max(0,e.distance.y));u.value=t-ru,r.value=xe(t/(su+ru),0,1);const o=u.value>su?"pulled":"pull";i.value!==o&&(i.value=o)}const f=e.computed(()=>{const e={down:!0,mightPrevent:!0};return!0!==t.noMouse&&(e.mouse=!0),[[ha,m,void 0,e]]}),h=e.computed(()=>`q-pull-to-refresh__content${!0===s.value?" no-pointer-events":""}`);function g(){n("refresh",()=>{b({pos:-ru,ratio:0},()=>{i.value="pull"})})}function b({pos:e,ratio:t},o){c.value=!0,u.value=e,void 0!==t&&(r.value=t),clearTimeout(x),x=setTimeout(()=>{c.value=!1,o&&o()},300)}let y,w,x;function _(){w=qo(y,t.scrollTarget)}return Object.assign(a,{trigger:g,updateScrollTarget:_}),e.watch(()=>t.scrollTarget,_),e.onMounted(()=>{y=a.$el,_()}),e.onBeforeUnmount(()=>{clearTimeout(x)}),()=>{const n=[e.h("div",{class:h.value},Fe(o.default)),e.h("div",{class:"q-pull-to-refresh__puller-container fixed row flex-center no-pointer-events z-top",style:d.value},[e.h("div",{class:p.value,style:v.value},["refreshing"!==i.value?e.h(et,{name:t.icon||l.iconSet.pullToRefresh.icon,color:t.color,size:"32px"}):e.h(St,{size:"24px",color:t.color})])])];return je("div",{class:"q-pull-to-refresh"},n,"main",!1===t.disable,()=>f.value)}}});const cu={MIN:0,RANGE:1,MAX:2};var du=e.defineComponent({name:"QRange",props:{...bn,...wa,modelValue:{type:Object,default:()=>({min:null,max:null}),validator(e){return"min"in e&&"max"in e}},name:String,dragRange:Boolean,dragOnlyRange:Boolean,leftLabelColor:String,leftLabelTextColor:String,rightLabelColor:String,rightLabelTextColor:String,leftLabelValue:[String,Number],rightLabelValue:[String,Number]},emits:xa,setup(t,{emit:o}){const{proxy:{$q:n}}=e.getCurrentInstance(),a=e.computed(()=>{return{type:"hidden",name:t.name,value:`${t.modelValue.min}|${t.modelValue.max}`}}),l=wn(a),i=e.ref(null),r=e.ref({min:null===t.modelValue.min?t.min:t.modelValue.min,max:null===t.modelValue.max?t.max:t.modelValue.max}),s=e.ref(null),u=e.ref(0),c=e.ref(0),{state:d,methods:v}=_a({updateValue:x,updatePosition:C,getDragging:_}),p=e.computed(()=>0===d.minMaxDiff.value?0:(r.value.min-t.min)/d.minMaxDiff.value),m=e.computed(()=>!0===d.active.value?u.value:p.value),f=e.computed(()=>0===d.minMaxDiff.value?0:(r.value.max-t.min)/d.minMaxDiff.value),h=e.computed(()=>!0===d.active.value?c.value:f.value),g=e.computed(()=>({[d.positionProp.value]:`${100*m.value}%`,[d.sizeProp.value]:`${100*(h.value-m.value)}%`})),b=e.computed(()=>{if(!0!==d.editable.value)return{};if(!0===n.platform.is.mobile)return{onClick:v.onMobileClick};const e={onMousedown:v.onActivate};return!0===t.dragOnlyRange&&Object.assign(e,{onFocus:()=>{S("both")},onBlur:v.onBlur,onKeydown:k,onKeyup:v.onKeyup}),e}),y={domRef:e.ref(null),events:e.computed(()=>!0===d.editable.value&&!0!==n.platform.is.mobile&&!0!==t.dragOnlyRange?{onFocus:()=>{S("min")},onBlur:v.onBlur,onKeydown:k,onKeyup:v.onKeyup}:{}),thumbStyle:e.computed(()=>({[d.positionProp.value]:`${100*m.value}%`,"z-index":"min"===s.value?2:void 0})),thumbClass:e.computed(()=>!1===d.preventFocus.value&&"min"===d.focus.value?" q-slider--focus":""),pinClass:e.computed(()=>{const e=t.leftLabelColor||t.labelColor;return e?` text-${e}`:""}),pinTextClass:e.computed(()=>{const e=t.leftLabelTextColor||t.labelTextColor;return e?` text-${e}`:""}),pinStyle:e.computed(()=>{const e=!0===t.reverse?-m.value:m.value-1;return v.getPinStyle(e,m.value)}),label:e.computed(()=>void 0!==t.leftLabelValue?t.leftLabelValue:r.value.min)},w={domRef:e.ref(null),events:e.computed(()=>!0===d.editable.value&&!0!==n.platform.is.mobile&&!0!==t.dragOnlyRange?{onFocus:()=>{S("max")},onBlur:v.onBlur,onKeydown:k,onKeyup:v.onKeyup}:{}),thumbStyle:e.computed(()=>({[d.positionProp.value]:`${100*h.value}%`})),thumbClass:e.computed(()=>!1===d.preventFocus.value&&"max"===d.focus.value?" q-slider--focus":""),pinClass:e.computed(()=>{const e=t.rightLabelColor||t.labelColor;return e?` text-${e}`:""}),pinTextClass:e.computed(()=>{const e=t.rightLabelTextColor||t.labelTextColor;return e?` text-${e}`:""}),pinStyle:e.computed(()=>{const e=!0===t.reverse?-h.value:h.value-1;return v.getPinStyle(e,h.value)}),label:e.computed(()=>void 0!==t.rightLabelValue?t.rightLabelValue:r.value.max)};function x(e){r.value.min===t.modelValue.min&&r.value.max===t.modelValue.max||o("update:modelValue",{...r.value}),!0===e&&o("change",{...r.value})}function _(e){const{left:o,top:n,width:a,height:l}=i.value.getBoundingClientRect(),u=!0===t.dragOnlyRange?0:!0===t.vertical?y.domRef.value.offsetHeight/(2*l):y.domRef.value.offsetWidth/(2*a),c={left:o,top:n,width:a,height:l,valueMin:r.value.min,valueMax:r.value.max,ratioMin:p.value,ratioMax:f.value},v=ba(e,c,d.isReversed.value,t.vertical);let m;return!0!==t.dragOnlyRange&&v<c.ratioMin+u?m=cu.MIN:!0===t.dragOnlyRange||v<c.ratioMax-u?!0===t.dragRange||!0===t.dragOnlyRange?(m=cu.RANGE,Object.assign(c,{offsetRatio:v,offsetModel:ya(v,t.min,t.max,t.step,d.decimals.value),rangeValue:c.valueMax-c.valueMin,rangeRatio:c.ratioMax-c.ratioMin})):m=c.ratioMax-v<v-c.ratioMin?cu.MAX:cu.MIN:m=cu.MAX,c.type=m,s.value=null,c}function C(e,o=d.dragging.value){const n=ba(e,o,d.isReversed.value,t.vertical),a=ya(n,t.min,t.max,t.step,d.decimals.value);let l;switch(o.type){case cu.MIN:n<=o.ratioMax?(l={minR:n,maxR:o.ratioMax,min:a,max:o.valueMax},s.value="min"):(l={minR:o.ratioMax,maxR:n,min:o.valueMax,max:a},s.value="max");break;case cu.MAX:n>=o.ratioMin?(l={minR:o.ratioMin,maxR:n,min:o.valueMin,max:a},s.value="max"):(l={minR:n,maxR:o.ratioMin,min:a,max:o.valueMin},s.value="min");break;case cu.RANGE:const e=n-o.offsetRatio,i=xe(o.ratioMin+e,0,1-o.rangeRatio),r=a-o.offsetModel,u=xe(o.valueMin+r,t.min,t.max-o.rangeValue);l={minR:i,maxR:i+o.rangeRatio,min:parseFloat(u.toFixed(d.decimals.value)),max:parseFloat((u+o.rangeValue).toFixed(d.decimals.value))};break}r.value={min:l.min,max:l.max},null!==r.value.min&&null!==r.value.max||(r.value.min=l.min||t.min,r.value.max=l.max||t.max),!0!==t.snap||0===t.step?(u.value=l.minR,c.value=l.maxR):(u.value=0===d.minMaxDiff.value?0:(r.value.min-t.min)/d.minMaxDiff.value,c.value=0===d.minMaxDiff.value?0:(r.value.max-t.min)/d.minMaxDiff.value)}function S(e){d.focus.value=e}function k(e){if(!ga.includes(e.keyCode))return;q(e);const o=([34,33].includes(e.keyCode)?10:1)*t.step,n=[34,37,40].includes(e.keyCode)?-o:o;if(t.dragOnlyRange){const e=t.dragOnlyRange?r.value.max-r.value.min:0,o=xe(parseFloat((r.value.min+n).toFixed(d.decimals.value)),t.min,t.max-e);r.value={min:o,max:parseFloat((o+e).toFixed(d.decimals.value))}}else{if(!1===d.focus.value)return;{const e=d.focus.value;r.value={...r.value,[e]:xe(parseFloat((r.value[e]+n).toFixed(d.decimals.value)),"min"===e?t.min:r.value.min,"max"===e?t.max:r.value.max)}}}x()}function $(o){const n=[v.getThumbSvg(),e.h("div",{class:"q-slider__focus-ring"})];return!0!==t.label&&!0!==t.labelAlways||n.push(e.h("div",{class:`q-slider__pin q-slider__pin${d.axis.value} absolute`+o.pinClass.value,style:o.pinStyle.value.pin},[e.h("div",{class:`q-slider__pin-text-container q-slider__pin-text-container${d.axis.value}`,style:o.pinStyle.value.pinTextContainer},[e.h("span",{class:"q-slider__pin-text"+o.pinTextClass.value},o.label.value)])]),e.h("div",{class:`q-slider__arrow q-slider__arrow${d.axis.value}`+o.pinClass.value})),e.h("div",{ref:o.domRef,class:`q-slider__thumb-container q-slider__thumb-container${d.axis.value} absolute non-selectable`+o.thumbClass.value,style:o.thumbStyle.value,...o.events.value,tabindex:!0!==t.dragOnlyRange?d.tabindex.value:null},n)}return e.watch(()=>t.modelValue.min,e=>{r.value.min=null===e?t.min:e}),e.watch(()=>t.modelValue.max,e=>{r.value.max=null===e?t.max:e}),e.watch(()=>t.min,e=>{r.value.min<e&&(r.value.min=e),r.value.max<e&&(r.value.max=e)}),e.watch(()=>t.max,e=>{r.value.min>e&&(r.value.min=e),r.value.max>e&&(r.value.max=e)}),()=>{const o=[e.h("div",{class:`q-slider__track q-slider__track${d.axis.value} absolute`,style:g.value})];!0===t.markers&&o.push(e.h("div",{class:`q-slider__track-markers q-slider__track-markers${d.axis.value} absolute-full fit`,style:d.markerStyle.value}));const a=[e.h("div",{class:`q-slider__track-container q-slider__track-container${d.axis.value} absolute`},o),$(y),$(w)];void 0!==t.name&&!0!==t.disable&&l(a,"push");const r={ref:i,class:"q-range "+d.classes.value+(null===t.modelValue.min||null===t.modelValue.max?" q-slider--no-value":""),...d.attributes.value,"aria-valuenow":t.modelValue.min+"|"+t.modelValue.max,tabindex:!0===t.dragOnlyRange&&!0!==n.platform.is.mobile?d.tabindex.value:null,...b.value};return je("div",r,a,"slide",d.editable.value,()=>d.panDirective.value)}}}),vu=e.defineComponent({name:"QRating",props:{...Pe,...bn,modelValue:{type:Number,required:!0},max:{type:[String,Number],default:5},icon:[String,Array],iconHalf:[String,Array],iconSelected:[String,Array],color:[String,Array],colorHalf:[String,Array],colorSelected:[String,Array],noReset:Boolean,noDimming:Boolean,readonly:Boolean,disable:Boolean},emits:["update:modelValue"],setup(t,{slots:o,emit:n}){const{proxy:{$q:a}}=e.getCurrentInstance(),l=Ae(t),i=yn(t),r=wn(i),s=e.ref(0);let u={};const c=e.computed(()=>!0!==t.readonly&&!0!==t.disable),d=e.computed(()=>"q-rating row inline items-center"+` q-rating--${!0===c.value?"":"non-"}editable`+(!0===t.noDimming?" q-rating--no-dimming":"")+(!0===t.disable?" disabled":"")+(void 0!==t.color&&!1===Array.isArray(t.color)?` text-${t.color}`:"")),v=e.computed(()=>{const e=!0===Array.isArray(t.icon)?t.icon.length:0,o=!0===Array.isArray(t.iconSelected)?t.iconSelected.length:0,n=!0===Array.isArray(t.iconHalf)?t.iconHalf.length:0,a=!0===Array.isArray(t.color)?t.color.length:0,l=!0===Array.isArray(t.colorSelected)?t.colorSelected.length:0,i=!0===Array.isArray(t.colorHalf)?t.colorHalf.length:0;return{iconLen:e,icon:e>0?t.icon[e-1]:t.icon,selIconLen:o,selIcon:o>0?t.iconSelected[o-1]:t.iconSelected,halfIconLen:n,halfIcon:n>0?t.iconHalf[o-1]:t.iconHalf,colorLen:a,color:a>0?t.color[a-1]:t.color,selColorLen:l,selColor:l>0?t.colorSelected[l-1]:t.colorSelected,halfColorLen:i,halfColor:i>0?t.colorHalf[i-1]:t.colorHalf}}),p=e.computed(()=>{return!0===t.disable?{"aria-disabled":"true"}:!0===t.readonly?{"aria-readonly":"true"}:void 0});function m(e){if(!0===c.value){const o=xe(parseInt(e,10),1,parseInt(t.max,10)),a=!0!==t.noReset&&t.modelValue===o?0:o;a!==t.modelValue&&n("update:modelValue",a),s.value=0}}function f(e){!0===c.value&&(s.value=e)}function h(e,t){switch(e.keyCode){case 13:case 32:return m(t),q(e);case 37:case 40:return u[`rt${t-1}`]&&u[`rt${t-1}`].$el.focus(),q(e);case 39:case 38:return u[`rt${t+1}`]&&u[`rt${t+1}`].$el.focus(),q(e)}}function g(){s.value=0}return e.onBeforeUpdate(()=>{u={}}),()=>{const n=[],i=!0===c.value?0:null,b=v.value,y=Math.ceil(t.modelValue),w=void 0===t.iconHalf||y===t.modelValue?-1:y;for(let l=1;l<=t.max;l++){const r=0===s.value&&t.modelValue>=l||s.value>0&&s.value>=l,c=w===l&&s.value<l,d=s.value>0&&(!0===c?y:t.modelValue)>=l&&s.value<l,v=!0===c?l<=b.halfIconLen?t.iconHalf[l-1]:b.halfIcon:void 0===b.selIcon||!0!==r&&!0!==d?l<=b.iconLen?t.icon[l-1]:b.icon:l<=b.selIconLen?t.iconSelected[l-1]:b.selIcon,p=!0===c?l<=b.halfColorLen?t.colorHalf[l-1]:b.halfColor:void 0!==b.selColor&&!0===r?l<=b.selColorLen?t.colorSelected[l-1]:b.selColor:l<=b.colorLen?t.color[l-1]:b.color,x="q-rating__icon"+(!0===r||!0===c?" q-rating__icon--active":"")+(!0===d?" q-rating__icon--exselected":"")+(s.value===l?" q-rating__icon--hovered":"")+(void 0!==p?` text-${p}`:"");n.push(e.h(et,{key:l,ref:e=>{u[`rt${l}`]=e},class:x,name:v||a.iconSet.rating.icon,tabindex:i,onClick(){m(l)},onMouseover(){f(l)},onMouseout:g,onFocus(){f(l)},onBlur:g,onKeyup(e){h(e,l)}},o[`tip-${l}`]))}return void 0!==t.name&&!0!==t.disable&&r(n,"push"),e.h("div",{class:d.value,style:l.value,...p.value},n)}}}),pu=e.defineComponent({name:"QResponsive",props:ts,setup(t,{slots:o}){const n=os(t);return()=>e.h("div",{class:"q-responsive"},[e.h("div",{class:"q-responsive__filler overflow-hidden"},[e.h("div",{style:n.value})]),e.h("div",{class:"q-responsive__content absolute-full fit"},Fe(o.default))])}});const mu=["vertical","horizontal"],fu={vertical:{offset:"offsetY",scroll:"scrollTop",dir:"down",dist:"y"},horizontal:{offset:"offsetX",scroll:"scrollLeft",dir:"right",dist:"x"}};var hu=e.defineComponent({name:"QScrollArea",props:{...at,thumbStyle:Object,verticalThumbStyle:Object,horizontalThumbStyle:Object,barStyle:[Array,String,Object],verticalBarStyle:[Array,String,Object],horizontalBarStyle:[Array,String,Object],contentStyle:[Array,String,Object],contentActiveStyle:[Array,String,Object],delay:{type:[String,Number],default:1e3},visible:{type:Boolean,default:null},tabindex:[String,Number],onScroll:Function},setup(t,{slots:o,emit:n}){const a=e.ref(!1),l=e.ref(!1),i=e.ref(!1),r={vertical:e.ref(0),horizontal:e.ref(0)},s={vertical:{ref:e.ref(null),position:e.ref(0),size:e.ref(0)},horizontal:{ref:e.ref(null),position:e.ref(0),size:e.ref(0)}},u=e.getCurrentInstance(),c=lt(t,u.proxy.$q);let d,v;const p=e.ref(null),m=e.computed(()=>"q-scrollarea"+(!0===c.value?" q-scrollarea--dark":""));s.vertical.percentage=e.computed(()=>{const e=s.vertical.size.value-r.vertical.value;if(e<=0)return 0;const t=xe(s.vertical.position.value/e,0,1);return Math.round(1e4*t)/1e4}),s.vertical.thumbHidden=e.computed(()=>!0!==(null===t.visible?i.value:t.visible)&&!1===a.value&&!1===l.value||s.vertical.size.value<=r.vertical.value+1),s.vertical.thumbSize=e.computed(()=>Math.round(xe(r.vertical.value*r.vertical.value/s.vertical.size.value,50,r.vertical.value))),s.vertical.style=e.computed(()=>{const e=s.vertical.thumbSize.value,o=s.vertical.percentage.value*(r.vertical.value-e);return{...t.thumbStyle,...t.verticalThumbStyle,top:`${o}px`,height:`${e}px`}}),s.vertical.thumbClass=e.computed(()=>"q-scrollarea__thumb q-scrollarea__thumb--v absolute-right"+(!0===s.vertical.thumbHidden.value?" q-scrollarea__thumb--invisible":"")),s.vertical.barClass=e.computed(()=>"q-scrollarea__bar q-scrollarea__bar--v absolute-right"+(!0===s.vertical.thumbHidden.value?" q-scrollarea__bar--invisible":"")),s.horizontal.percentage=e.computed(()=>{const e=s.horizontal.size.value-r.horizontal.value;if(e<=0)return 0;const t=xe(s.horizontal.position.value/e,0,1);return Math.round(1e4*t)/1e4}),s.horizontal.thumbHidden=e.computed(()=>!0!==(null===t.visible?i.value:t.visible)&&!1===a.value&&!1===l.value||s.horizontal.size.value<=r.horizontal.value+1),s.horizontal.thumbSize=e.computed(()=>Math.round(xe(r.horizontal.value*r.horizontal.value/s.horizontal.size.value,50,r.horizontal.value))),s.horizontal.style=e.computed(()=>{const e=s.horizontal.thumbSize.value,o=s.horizontal.percentage.value*(r.horizontal.value-e);return{...t.thumbStyle,...t.horizontalThumbStyle,left:`${o}px`,width:`${e}px`}}),s.horizontal.thumbClass=e.computed(()=>"q-scrollarea__thumb q-scrollarea__thumb--h absolute-bottom"+(!0===s.horizontal.thumbHidden.value?" q-scrollarea__thumb--invisible":"")),s.horizontal.barClass=e.computed(()=>"q-scrollarea__bar q-scrollarea__bar--h absolute-bottom"+(!0===s.horizontal.thumbHidden.value?" q-scrollarea__bar--invisible":""));const f=e.computed(()=>!0===s.vertical.thumbHidden.value||!0===s.horizontal.thumbHidden.value?t.contentStyle:t.contentActiveStyle),h=[[ha,e=>{S(e,"vertical")},void 0,{vertical:!0,prevent:!0,mouse:!0,mouseAllDir:!0}]],g=[[ha,e=>{S(e,"horizontal")},void 0,{horizontal:!0,prevent:!0,mouse:!0,mouseAllDir:!0}]];function b(){const e={};return mu.forEach(t=>{const o=s[t];e[t+"Position"]=o.position.value,e[t+"Percentage"]=o.percentage.value,e[t+"Size"]=o.size.value,e[t+"ContainerSize"]=r[t].value}),e}const y=B(()=>{const e=b();e.ref=u.proxy,n("scroll",e)},0);function w(e,t,o){if(!1===mu.includes(e))return void console.error("[QScrollArea]: wrong first param of setScrollPosition (vertical/horizontal)");const n="vertical"===e?Lo:Eo;n(p.value,t,o)}function x({height:e,width:t}){let o=!1;r.vertical.value!==e&&(r.vertical.value=e,o=!0),r.horizontal.value!==t&&(r.horizontal.value=t,o=!0),!0===o&&M()}function _({position:e}){let t=!1;s.vertical.position.value!==e.top&&(s.vertical.position.value=e.top,t=!0),s.horizontal.position.value!==e.left&&(s.horizontal.position.value=e.left,t=!0),!0===t&&M()}function C({height:e,width:t}){s.horizontal.size.value!==t&&(s.horizontal.size.value=t,M()),s.vertical.size.value!==e&&(s.vertical.size.value=e,M())}function S(e,t){const o=s[t];if(!0===e.isFirst){if(!0===o.thumbHidden.value)return;v=o.position.value,l.value=!0}else if(!0!==l.value)return;!0===e.isFinal&&(l.value=!1);const n=fu[t],a=r[t].value,i=(o.size.value-a)/(a-o.thumbSize.value),u=e.distance[n.dist],c=v+(e.direction===n.dir?1:-1)*u*i;T(c,t)}function q(e,t){const o=s[t];if(!0!==o.thumbHidden.value){const n=e[fu[t].offset]-o.thumbSize.value/2;T(n/r[t].value*o.size.value,t),null!==o.ref.value&&o.ref.value.dispatchEvent(new MouseEvent(e.type,e))}}function k(e){q(e,"vertical")}function $(e){q(e,"horizontal")}function M(){!0===a.value?clearTimeout(d):a.value=!0,d=setTimeout(()=>{a.value=!1},t.delay),void 0!==t.onScroll&&y()}function T(e,t){p.value[fu[t].scroll]=e}function O(){i.value=!0}function V(){i.value=!1}return Object.assign(u.proxy,{getScrollTarget:()=>p.value,getScroll:b,getScrollPosition:()=>({top:s.vertical.position.value,left:s.horizontal.position.value}),getScrollPercentage:()=>({top:s.vertical.percentage.value,left:s.horizontal.percentage.value}),setScrollPosition:w,setScrollPercentage(e,t,o){w(e,t*(s[e].size.value-r[e].value),o)}}),()=>{return e.h("div",{class:m.value,onMouseenter:O,onMouseleave:V},[e.h("div",{ref:p,class:"q-scrollarea__container scroll relative-position fit hide-scrollbar",tabindex:void 0!==t.tabindex?t.tabindex:void 0},[e.h("div",{class:"q-scrollarea__content absolute",style:f.value},Re(o.default,[e.h($a,{onResize:C})])),e.h(Ls,{axis:"both",onScroll:_})]),e.h($a,{onResize:x}),e.h("div",{class:s.vertical.barClass.value,style:[t.barStyle,t.verticalBarStyle],"aria-hidden":"true",onMousedown:k}),e.h("div",{class:s.horizontal.barClass.value,style:[t.barStyle,t.horizontalBarStyle],"aria-hidden":"true",onMousedown:$}),e.withDirectives(e.h("div",{ref:s.vertical.ref,class:s.vertical.thumbClass.value,style:s.vertical.style.value,"aria-hidden":"true"}),h),e.withDirectives(e.h("div",{ref:s.horizontal.ref,class:s.horizontal.thumbClass.value,style:s.horizontal.style.value,"aria-hidden":"true"}),g)])}}});const gu=1e3,bu=["start","center","end","start-force","center-force","end-force"],yu=Array.prototype.slice;let wu=void 0;{const e=document.createElement("div"),t=document.createElement("div");e.setAttribute("dir","rtl"),e.style.width="1px",e.style.height="1px",e.style.overflow="auto",t.style.width="1000px",t.style.height="1px",document.body.appendChild(e),e.appendChild(t),e.scrollLeft=-1e3,wu=e.scrollLeft>=0,e.remove()}let xu=1;const _u=void 0===window.getComputedStyle(document.body).overflowAnchor?m:function(e,t){const o=e+"_ss";let n=document.getElementById(o);null===n&&(n=document.createElement("style"),n.type="text/css",n.id=o,document.head.appendChild(n)),n.qChildIndex!==t&&(n.qChildIndex=t,n.innerHTML=`#${e} > *:nth-child(${t}) { overflow-anchor: auto }`)};function Cu(e,t){return e+t}function Su(e,t,o,n,a,l,i,r){const s=e===window?document.scrollingElement||document.documentElement:e,u=!0===a?"offsetWidth":"offsetHeight",c={scrollStart:0,scrollViewSize:-i-r,scrollMaxSize:0,offsetStart:-i,offsetEnd:-r};if(!0===a?(e===window?(c.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,c.scrollViewSize+=window.innerWidth):(c.scrollStart=s.scrollLeft,c.scrollViewSize+=s.clientWidth),c.scrollMaxSize=s.scrollWidth,!0===l&&(c.scrollStart=(!0===wu?c.scrollMaxSize-c.scrollViewSize:0)-c.scrollStart)):(e===window?(c.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,c.scrollViewSize+=window.innerHeight):(c.scrollStart=s.scrollTop,c.scrollViewSize+=s.clientHeight),c.scrollMaxSize=s.scrollHeight),null!==o)for(let d=o.previousElementSibling;null!==d;d=d.previousElementSibling)!1===d.classList.contains("q-virtual-scroll--skip")&&(c.offsetStart+=d[u]);if(null!==n)for(let d=n.nextElementSibling;null!==d;d=d.nextElementSibling)!1===d.classList.contains("q-virtual-scroll--skip")&&(c.offsetEnd+=d[u]);if(t!==e){const o=s.getBoundingClientRect(),n=t.getBoundingClientRect();!0===a?(c.offsetStart+=n.left-o.left,c.offsetEnd-=n.width):(c.offsetStart+=n.top-o.top,c.offsetEnd-=n.height),e!==window&&(c.offsetStart+=c.scrollStart),c.offsetEnd+=c.scrollMaxSize-c.offsetStart}return c}function qu(e,t,o,n){e===window?!0===o?(!0===n&&(t=(!0===wu?document.body.scrollWidth-window.innerWidth:0)-t),window.scrollTo(t,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,t):!0===o?(!0===n&&(t=(!0===wu?e.scrollWidth-e.offsetWidth:0)-t),e.scrollLeft=t):e.scrollTop=t}function ku(e,t,o,n){if(o>=n)return 0;const a=t.length,l=Math.floor(o/gu),i=Math.floor((n-1)/gu)+1;let r=e.slice(l,i).reduce(Cu,0);return o%gu!==0&&(r-=t.slice(l*gu,o).reduce(Cu,0)),n%gu!==0&&n!==a&&(r-=t.slice(n,i*gu).reduce(Cu,0)),r}const $u={virtualScrollSliceSize:{type:[Number,String],default:null},virtualScrollSliceRatioBefore:{type:[Number,String],default:1},virtualScrollSliceRatioAfter:{type:[Number,String],default:1},virtualScrollItemSize:{type:[Number,String],default:24},virtualScrollStickySizeStart:{type:[Number,String],default:0},virtualScrollStickySizeEnd:{type:[Number,String],default:0},tableColspan:[Number,String]},Mu=Object.keys($u),Tu={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...$u};function Bu({virtualScrollLength:t,getVirtualScrollTarget:o,getVirtualScrollEl:n,virtualScrollItemSizeComputed:a}){const l=e.getCurrentInstance(),{props:i,emit:r,proxy:s}=l,{$q:u}=s;let c,d,v,p,f=[];const h="qvs_"+xu++,g=e.ref(0),b=e.ref(0),y=e.ref({}),w=e.ref(null),x=e.ref(null),_=e.ref(null),C=e.ref({from:0,to:0}),S=e.computed(()=>void 0!==i.tableColspan?i.tableColspan:100);void 0===a&&(a=e.computed(()=>i.virtualScrollItemSize));const q=e.computed(()=>a.value+";"+i.virtualScrollHorizontal),k=e.computed(()=>q.value+";"+i.virtualScrollSliceRatioBefore+";"+i.virtualScrollSliceRatioAfter);function $(){L(d,!0)}function M(e){L(void 0===e?d:e)}function T(e,a){const l=o();if(void 0===l||null===l||8===l.nodeType)return;const r=Su(l,n(),w.value,x.value,i.virtualScrollHorizontal,u.lang.rtl,i.virtualScrollStickySizeStart,i.virtualScrollStickySizeEnd);v!==r.scrollViewSize&&E(r.scrollViewSize),V(l,r,Math.min(t.value-1,Math.max(0,parseInt(e,10)||0)),0,bu.indexOf(a)>-1?a:d>-1&&e>d?"end":"start")}function O(){const e=o();if(void 0===e||null===e||8===e.nodeType)return;const a=Su(e,n(),w.value,x.value,i.virtualScrollHorizontal,u.lang.rtl,i.virtualScrollStickySizeStart,i.virtualScrollStickySizeEnd),l=t.value-1,r=a.scrollMaxSize-a.offsetStart-a.offsetEnd-b.value;if(c===a.scrollStart)return;if(a.scrollMaxSize<=0)return void V(e,a,0,0);v!==a.scrollViewSize&&E(a.scrollViewSize),z(C.value.from);const s=Math.floor(a.scrollMaxSize-Math.max(a.scrollViewSize,a.offsetEnd)-Math.min(p[l],a.scrollViewSize/2));if(s>0&&Math.ceil(a.scrollStart)>=s)return void V(e,a,l,a.scrollMaxSize-a.offsetEnd-f.reduce(Cu,0));let d=0,m=a.scrollStart-a.offsetStart,h=m;if(m<=r&&m+a.scrollViewSize>=g.value)m-=g.value,d=C.value.from,h=m;else for(let t=0;m>=f[t]&&d<l;t++)m-=f[t],d+=gu;while(m>0&&d<l)m-=p[d],m>-a.scrollViewSize?(d++,h=m):h=p[d]+m;V(e,a,d,h)}function V(e,o,n,a,l){const r="string"===typeof l&&l.indexOf("-force")>-1,s=!0===r?l.replace("-force",""):l,d=void 0!==s?s:"start";let v=Math.max(0,n-y.value[d]),m=v+y.value.total;m>t.value&&(m=t.value,v=Math.max(0,m-y.value.total)),c=o.scrollStart;const w=v!==C.value.from||m!==C.value.to;if(!1===w&&void 0===s)return void A(n);const{activeElement:x}=document;if(!0===w&&null!==_.value&&_.value!==x&&!0===_.value.contains(x)){const e=()=>{_.value.focus()};x.addEventListener("blur",e,!0),requestAnimationFrame(()=>{x.removeEventListener("blur",e,!0)})}_u(h,n-v+1);const S=void 0!==s?p.slice(v,n).reduce(Cu,0):0;if(!0===w){const e=m>=C.value.from&&v<=C.value.to?C.value.to:m;C.value={from:v,to:e},g.value=ku(f,p,0,v),b.value=ku(f,p,m,t.value),requestAnimationFrame(()=>{C.value.to!==m&&c===o.scrollStart&&(C.value={from:C.value.from,to:m},b.value=ku(f,p,m,t.value))})}requestAnimationFrame(()=>{if(c!==o.scrollStart)return;!0===w&&z(v);const t=p.slice(v,n).reduce(Cu,0),l=t+o.offsetStart+g.value,d=l+p[n];let m=l+a;if(void 0!==s){const e=t-S,a=o.scrollStart+e;m=!0!==r&&a<l&&d<a+o.scrollViewSize?a:"end"===s?d-o.scrollViewSize:l-("start"===s?0:Math.round((o.scrollViewSize-p[n])/2))}c=m,qu(e,m,i.virtualScrollHorizontal,u.lang.rtl),A(n)})}function z(e){const t=_.value;if(t){const o=yu.call(t.children).filter(e=>!1===e.classList.contains("q-virtual-scroll--skip")),n=o.length,a=!0===i.virtualScrollHorizontal?e=>e.getBoundingClientRect().width:e=>e.offsetHeight;let l,r,s=e;for(let e=0;e<n;){l=a(o[e]),e++;while(e<n&&!0===o[e].classList.contains("q-virtual-scroll--with-prev"))l+=a(o[e]),e++;r=l-p[s],0!==r&&(p[s]+=r,f[Math.floor(s/gu)]+=r),s++}}}function L(o,n){const l=1*a.value;!0!==n&&!1!==Array.isArray(p)||(p=[]);const i=p.length;p.length=t.value;for(let e=t.value-1;e>=i;e--)p[e]=l;const r=Math.floor((t.value-1)/gu);f=[];for(let e=0;e<=r;e++){let o=0;const n=Math.min((e+1)*gu,t.value);for(let t=e*gu;t<n;t++)o+=p[t];f.push(o)}d=-1,c=void 0,o>=0?(z(C.value.from),e.nextTick(()=>{T(o)})):(g.value=ku(f,p,0,C.value.from),b.value=ku(f,p,C.value.to,t.value),F())}function E(e){if(void 0===e&&"undefined"!==typeof window){const t=o();void 0!==t&&null!==t&&8!==t.nodeType&&(e=Su(t,n(),w.value,x.value,i.virtualScrollHorizontal,u.lang.rtl,i.virtualScrollStickySizeStart,i.virtualScrollStickySizeEnd).scrollViewSize)}v=e;const t=1+i.virtualScrollSliceRatioBefore+i.virtualScrollSliceRatioAfter,l=void 0===e||e<=0?1:Math.ceil(e/a.value),r=Math.max(10,l,Math.ceil(i.virtualScrollSliceSize/t));y.value={total:Math.ceil(r*t),start:Math.ceil(r*i.virtualScrollSliceRatioBefore),center:Math.ceil(r*(.5+i.virtualScrollSliceRatioBefore)),end:Math.ceil(r*(1+i.virtualScrollSliceRatioBefore)),view:l}}function P(t,o){const n=!0===i.virtualScrollHorizontal?"width":"height",l={["--q-virtual-scroll-item-"+n]:a.value+"px"};return["tbody"===t?e.h(t,{class:"q-virtual-scroll__padding",key:"before",ref:w},[e.h("tr",[e.h("td",{style:{[n]:`${g.value}px`,...l},colspan:S.value})])]):e.h(t,{class:"q-virtual-scroll__padding",key:"before",ref:w,style:{[n]:`${g.value}px`,...l}}),e.h(t,{class:"q-virtual-scroll__content",key:"content",ref:_,id:h,tabindex:-1},o.flat()),"tbody"===t?e.h(t,{class:"q-virtual-scroll__padding",key:"after",ref:x},[e.h("tr",[e.h("td",{style:{[n]:`${b.value}px`,...l},colspan:S.value})])]):e.h(t,{class:"q-virtual-scroll__padding",key:"after",ref:x,style:{[n]:`${b.value}px`,...l}})]}function A(e){d!==e&&(void 0!==i.onVirtualScroll&&r("virtual-scroll",{index:e,from:C.value.from,to:C.value.to-1,direction:e<d?"decrease":"increase",ref:s}),d=e)}e.watch(k,()=>{E()}),e.watch(q,$),E();const F=B(O,!0===u.platform.is.ios?120:35);return e.onBeforeMount(()=>{E()}),_u!==m&&e.onBeforeUnmount(()=>{const e=document.getElementById(h+"_ss");null!==e&&e.remove()}),Object.assign(s,{scrollTo:T,reset:$,refresh:M}),{virtualScrollSliceRange:C,virtualScrollSliceSizeComputed:y,setVirtualScrollSize:E,onVirtualScrollEvt:F,localResetVirtualScroll:L,padVirtualScroll:P,scrollTo:T,reset:$,refresh:M}}const Ou=e=>["add","add-unique","toggle"].includes(e),Vu=".*+?^${}()|[]\\",zu=Object.keys(Ir);var Lu=e.defineComponent({name:"QSelect",inheritAttrs:!1,props:{...Tu,...bn,...Ir,modelValue:{required:!0},multiple:Boolean,displayValue:[String,Number],displayValueHtml:Boolean,dropdownIcon:String,options:{type:Array,default:()=>[]},optionValue:[Function,String],optionLabel:[Function,String],optionDisable:[Function,String],hideSelected:Boolean,hideDropdownIcon:Boolean,fillInput:Boolean,maxValues:[Number,String],optionsDense:Boolean,optionsDark:{type:Boolean,default:null},optionsSelectedClass:String,optionsHtml:Boolean,optionsCover:Boolean,menuShrink:Boolean,menuAnchor:String,menuSelf:String,menuOffset:Array,popupContentClass:String,popupContentStyle:[String,Array,Object],useInput:Boolean,useChips:Boolean,newValueMode:{type:String,validator:Ou},mapOptions:Boolean,emitValue:Boolean,inputDebounce:{type:[Number,String],default:500},inputClass:[Array,String,Object],inputStyle:[Array,String,Object],tabindex:{type:[String,Number],default:0},autocomplete:String,transitionShow:String,transitionHide:String,transitionDuration:[String,Number],behavior:{type:String,validator:e=>["default","menu","dialog"].includes(e),default:"default"},virtualScrollItemSize:{type:[Number,String],default:void 0},onNewValue:Function,onFilter:Function},emits:[...Rr,"add","remove","input-value","keyup","keypress","keydown","filter-abort"],setup(t,{slots:o,emit:n}){const{proxy:a}=e.getCurrentInstance(),{$q:l}=a,i=e.ref(!1),r=e.ref(!1),s=e.ref(-1),u=e.ref(""),c=e.ref(!1),d=e.ref(!1);let v,p,m,f,h,g,b,y,w,x;const _=e.ref(null),k=e.ref(null),$=e.ref(null),M=e.ref(null),T=e.ref(null),B=xn(t),O=xs(Ve),V=e.computed(()=>Array.isArray(t.options)?t.options.length:0),z=e.computed(()=>void 0===t.virtualScrollItemSize?!0===t.dense?24:48:t.virtualScrollItemSize),{virtualScrollSliceRange:L,virtualScrollSliceSizeComputed:E,localResetVirtualScroll:P,padVirtualScroll:A,onVirtualScrollEvt:F,scrollTo:I,setVirtualScrollSize:R}=Bu({virtualScrollLength:V,getVirtualScrollTarget:Me,getVirtualScrollEl:$e,virtualScrollItemSizeComputed:z}),N=Nr(),j=e.computed(()=>{const e=!0===t.mapOptions&&!0!==t.multiple,o=void 0===t.modelValue||null===t.modelValue&&!0!==e?[]:!0===t.multiple&&Array.isArray(t.modelValue)?t.modelValue:[t.modelValue];if(!0===t.mapOptions&&!0===Array.isArray(t.options)){const n=!0===t.mapOptions&&void 0!==p?p:[],a=o.map(e=>be(e,n));return null===t.modelValue&&!0===e?a.filter(e=>null!==e):a}return o}),D=e.computed(()=>{const e={};return zu.forEach(e=>t[e]),e}),H=e.computed(()=>null===t.optionsDark?N.isDark.value:t.optionsDark),Q=e.computed(()=>Fr(j.value)),Y=e.computed(()=>{let e="q-field__input q-placeholder col";return!0===t.hideSelected||0===j.value.length?[e,t.inputClass]:(e+=" q-field__input--padding",void 0===t.inputClass?e:[e,t.inputClass])}),K=e.computed(()=>(!0===t.virtualScrollHorizontal?"q-virtual-scroll--horizontal":"")+(t.popupContentClass?" "+t.popupContentClass:"")),X=e.computed(()=>0===V.value),Z=e.computed(()=>j.value.map(e=>re.value(e)).join(", ")),G=e.computed(()=>!0===t.optionsHtml?()=>!0:e=>void 0!==e&&null!==e&&!0===e.html),J=e.computed(()=>!0===t.displayValueHtml||void 0===t.displayValue&&(!0===t.optionsHtml||j.value.some(G.value))),ee=e.computed(()=>!0===N.focused.value?t.tabindex:-1),te=e.computed(()=>{return j.value.map((e,t)=>({index:t,opt:e,html:G.value(e),selected:!0,removeAtIndex:pe,toggleOption:fe,tabindex:ee.value}))}),oe=e.computed(()=>{if(0===V.value)return[];const{from:e,to:o}=L.value,{options:n,optionEls:a}=m;return t.options.slice(e,o).map((o,i)=>{const r=!0===se.value(o),u=e+i,c={clickable:!0,active:!1,activeClass:le.value,manualFocus:!0,focused:!1,disable:r,tabindex:-1,dense:t.optionsDense,dark:H.value,onClick:()=>{fe(o)}};!0!==r&&(!0===we(o)&&(c.active=!0),s.value===u&&(c.focused=!0),!0===l.platform.is.desktop&&(c.onMousemove=(()=>{he(u)})));const d={index:u,opt:o,html:G.value(o),label:re.value(o),selected:c.active,focused:c.focused,toggleOption:fe,setOptionIndex:he,itemProps:c},v={...d,itemProps:{...c,onClick:void 0,onMousemove:void 0}};return void 0!==n[i]&&!0===Hn(v,n[i])||(n[i]=v,a[i]=void 0),d})}),ne=e.computed(()=>void 0!==t.dropdownIcon?t.dropdownIcon:l.iconSet.arrow.dropdown),ae=e.computed(()=>!1===t.optionsCover&&!0!==t.outlined&&!0!==t.standout&&!0!==t.borderless&&!0!==t.rounded),le=e.computed(()=>void 0!==t.optionsSelectedClass?t.optionsSelectedClass:void 0!==t.color?`text-${t.color}`:""),ie=e.computed(()=>ye(t.optionValue,"value")),re=e.computed(()=>ye(t.optionLabel,"label")),se=e.computed(()=>ye(t.optionDisable,"disable")),ue=e.computed(()=>j.value.map(e=>ie.value(e))),ce=e.computed(()=>{const e={onInput:Ve,onChange:O,onKeydown:ke,onKeyup:Se,onKeypress:qe,onFocus:xe,onClick(e){!0===f&&C(e)}};return e.onCompositionstart=e.onCompositionupdate=e.onCompositionend=O,e});function de(e){return!0===t.emitValue?ie.value(e):e}function ve(e){if(e>-1&&e<j.value.length)if(!0===t.multiple){const o=t.modelValue.slice();n("remove",{index:e,value:o.splice(e,1)[0]}),n("update:modelValue",o)}else n("update:modelValue",null)}function pe(e){ve(e),N.focus()}function me(e,o){const a=de(e);if(!0!==t.multiple)return!0===t.fillInput&&Le(re.value(e),!0,!0),void n("update:modelValue",a);if(0===j.value.length)return n("add",{index:0,value:a}),void n("update:modelValue",!0===t.multiple?[a]:a);if(!0===o&&!0===we(e))return;if(void 0!==t.maxValues&&t.modelValue.length>=t.maxValues)return;const l=t.modelValue.slice();n("add",{index:l.length,value:a}),l.push(a),n("update:modelValue",l)}function fe(e,o){if(!0!==N.editable.value||void 0===e||!0===se.value(e))return;const a=ie.value(e);if(!0!==t.multiple)return!0!==o&&(Le(!0===t.fillInput?re.value(e):"",!0,!0),Ye()),null!==k.value&&k.value.focus(),void(!0!==Hn(ie.value(j.value[0]),a)&&n("update:modelValue",!0===t.emitValue?a:e));if((!0!==f||!0===c.value)&&N.focus(),xe(),0===j.value.length){const o=!0===t.emitValue?a:e;return n("add",{index:0,value:o}),void n("update:modelValue",!0===t.multiple?[o]:o)}const l=t.modelValue.slice(),i=ue.value.findIndex(e=>Hn(e,a));if(i>-1)n("remove",{index:i,value:l.splice(i,1)[0]});else{if(void 0!==t.maxValues&&l.length>=t.maxValues)return;const o=!0===t.emitValue?a:e;n("add",{index:l.length,value:o}),l.push(o)}n("update:modelValue",l)}function he(e){if(!0!==l.platform.is.desktop)return;const t=e>-1&&e<V.value?e:-1;s.value!==t&&(s.value=t)}function ge(e=1,o){if(!0===i.value){let n=s.value;do{n=_e(n+e,-1,V.value-1)}while(-1!==n&&n!==s.value&&!0===se.value(t.options[n]));s.value!==n&&(he(n),I(n),!0!==o&&!0===t.useInput&&!0===t.fillInput&&ze(n>=0?re.value(t.options[n]):b))}}function be(e,o){const n=t=>Hn(ie.value(t),e);return t.options.find(n)||o.find(n)||e}function ye(e,t){const o=void 0!==e?e:t;return"function"===typeof o?o:e=>Object(e)===e&&o in e?e[o]:e}function we(e){const t=ie.value(e);return void 0!==ue.value.find(e=>Hn(e,t))}function xe(){!0===t.useInput&&null!==k.value&&k.value.select()}function Ce(e){!0===W(e,27)&&!0===i.value&&(C(e),Ye(),Ke()),n("keyup",e)}function Se(e){const{value:o}=e.target;if(void 0===e.keyCode)if(e.target.value="",clearTimeout(v),Ke(),"string"===typeof o&&o.length>0){const e=o.toLocaleLowerCase();let n=t=>ie.value(t).toLocaleLowerCase()===e,a=t.options.find(n);void 0!==a?-1===j.value.indexOf(a)?fe(a):Ye():(n=(t=>re.value(t).toLocaleLowerCase()===e),a=t.options.find(n),void 0!==a?-1===j.value.indexOf(a)?fe(a):Ye():Ee(o,!0))}else N.clearValue(e);else Ce(e)}function qe(e){n("keypress",e)}function ke(o){if(n("keydown",o),!0===U(o))return;const a=u.value.length>0&&(void 0!==t.newValueMode||void 0!==t.onNewValue),l=!0!==o.shiftKey&&!0!==t.multiple&&(s.value>-1||!0===a);if(27===o.keyCode)return void S(o);if(9===o.keyCode&&!1===l)return void Ue();if(void 0===o.target||o.target.id!==N.targetUid.value)return;if(40===o.keyCode&&!0!==N.innerLoading.value&&!1===i.value)return q(o),void We();if(8===o.keyCode&&!0!==t.hideSelected&&0===u.value.length)return void(!0===t.multiple&&!0===Array.isArray(t.modelValue)?ve(t.modelValue.length-1):!0!==t.multiple&&null!==t.modelValue&&n("update:modelValue",null));35!==o.keyCode&&36!==o.keyCode||"string"===typeof u.value&&0!==u.value.length||(q(o),s.value=-1,ge(36===o.keyCode?1:-1,t.multiple)),33!==o.keyCode&&34!==o.keyCode||void 0===E.value||(q(o),s.value=Math.max(-1,Math.min(V.value,s.value+(33===o.keyCode?-1:1)*E.value.view)),ge(33===o.keyCode?1:-1,t.multiple)),38!==o.keyCode&&40!==o.keyCode||(q(o),ge(38===o.keyCode?-1:1,t.multiple));const r=V.value;if((void 0===w||x<Date.now())&&(w=""),r>0&&!0!==t.useInput&&void 0!==o.key&&1===o.key.length&&o.altKey===o.ctrlKey&&(32!==o.keyCode||w.length>0)){!0!==i.value&&We(o);const n=o.key.toLocaleLowerCase(),a=1===w.length&&w[0]===n;x=Date.now()+1500,!1===a&&(q(o),w+=n);const l=new RegExp("^"+w.split("").map(e=>Vu.indexOf(e)>-1?"\\"+e:e).join(".*"),"i");let u=s.value;if(!0===a||u<0||!0!==l.test(re.value(t.options[u])))do{u=_e(u+1,-1,r-1)}while(u!==s.value&&(!0===se.value(t.options[u])||!0!==l.test(re.value(t.options[u]))));s.value!==u&&e.nextTick(()=>{he(u),I(u),u>=0&&!0===t.useInput&&!0===t.fillInput&&ze(re.value(t.options[u]))})}else if(13===o.keyCode||32===o.keyCode&&!0!==t.useInput&&""===w||9===o.keyCode&&!1!==l)if(9!==o.keyCode&&q(o),s.value>-1&&s.value<r)fe(t.options[s.value]);else{if(!0===a){const e=(e,o)=>{if(o){if(!0!==Ou(o))return}else o=t.newValueMode;if(void 0===e||null===e)return;Le("",!0!==t.multiple,!0);const n="toggle"===o?fe:me;n(e,"add-unique"===o),!0!==t.multiple&&(null!==k.value&&k.value.focus(),Ye())};if(void 0!==t.onNewValue?n("new-value",u.value,e):e(u.value),!0!==t.multiple)return}!0===i.value?Ue():!0!==N.innerLoading.value&&We()}}function $e(){return!0===f?T.value:null!==$.value&&null!==$.value.__qPortalInnerRef.value?$.value.__qPortalInnerRef.value:void 0}function Me(){return $e()}function Te(){return!0===t.hideSelected?[]:void 0!==o["selected-item"]?te.value.map(e=>o["selected-item"](e)).slice():void 0!==o.selected?o.selected().slice():!0===t.useChips?te.value.map((o,n)=>e.h(ra,{key:"option-"+n,removable:!0===N.editable.value&&!0!==se.value(o.opt),dense:!0,textColor:t.color,tabindex:ee.value,onRemove(){o.removeAtIndex(n)}},()=>e.h("span",{class:"ellipsis",[!0===o.html?"innerHTML":"textContent"]:re.value(o.opt)}))):[e.h("span",{[!0===J.value?"innerHTML":"textContent"]:void 0!==t.displayValue?t.displayValue:Z.value})]}function Be(){void 0!==o.option&&m.optionSlot!==o.option&&(m.optionSlot=o.option,m.optionEls=[]);const t=void 0!==o.option?o.option:t=>{return e.h(Ui,{key:t.index,...t.itemProps},()=>{return e.h(Wi,()=>e.h(cr,()=>e.h("span",{[!0===t.html?"innerHTML":"textContent"]:t.label})))})},{optionEls:n}=m;let a=A("div",oe.value.map((e,o)=>{return void 0===n[o]&&(n[o]=t(e)),n[o]}));return void 0!==o["before-options"]&&(a=o["before-options"]().concat(a)),Re(o["after-options"],a)}function Oe(o,n){const a={ref:!0===n?k:void 0,key:"i_t",class:Y.value,style:t.inputStyle,value:void 0!==u.value?u.value:"",type:"search",...N.splitAttrs.attributes.value,id:N.targetUid.value,maxlength:t.maxlength,tabindex:t.tabindex,autocomplete:t.autocomplete,"data-autofocus":!0!==o&&!0===t.autofocus||void 0,disabled:!0===t.disable,readonly:!0===t.readonly,...ce.value};return!0!==o&&!0===f&&(!0===Array.isArray(a.class)?a.class[0]+=" no-pointer-events":a.class+=" no-pointer-events"),e.h("input",a)}function Ve(e){clearTimeout(v),e&&e.target&&!0===e.target.composing||(ze(e.target.value||""),h=!0,b=u.value,!0===N.focused.value||!0===f&&!0!==c.value||N.focus(),void 0!==t.onFilter&&(v=setTimeout(()=>{Ee(u.value)},t.inputDebounce)))}function ze(e){u.value!==e&&(u.value=e,n("input-value",e))}function Le(e,o,n){h=!0!==n,!0===t.useInput&&(ze(e),!0!==o&&!0===n||(b=e),!0!==o&&Ee(e))}function Ee(o,l){if(void 0===t.onFilter||!0!==l&&!0!==N.focused.value)return;!0===N.innerLoading.value?n("filter-abort"):(N.innerLoading.value=!0,d.value=!0),""!==o&&!0!==t.multiple&&j.value.length>0&&!0!==h&&o===re.value(j.value[0])&&(o="");const r=setTimeout(()=>{!0===i.value&&(i.value=!1)},10);clearTimeout(g),g=r,n("filter",o,(t,o)=>{!0!==l&&!0!==N.focused.value||g!==r||(clearTimeout(g),"function"===typeof t&&t(),d.value=!1,e.nextTick(()=>{N.innerLoading.value=!1,!0===N.editable.value&&(!0===l?!0===i.value&&Ye():!0===i.value?Xe(!0):i.value=!0),"function"===typeof o&&e.nextTick(()=>{o(a)})}))},()=>{!0===N.focused.value&&g===r&&(clearTimeout(g),N.innerLoading.value=!1,d.value=!1),!0===i.value&&(i.value=!1)})}function Pe(){const n=!0===X.value?void 0!==o["no-option"]?()=>o["no-option"]({inputValue:u.value}):void 0:Be;return e.h(hn,{ref:$,class:K.value,style:t.popupContentStyle,modelValue:i.value,fit:!0!==t.menuShrink,cover:!0===t.optionsCover&&!0!==X.value&&!0!==t.useInput,anchor:t.menuAnchor,self:t.menuSelf,offset:t.menuOffset,dark:H.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,square:ae.value,transitionShow:t.transitionShow,transitionHide:t.transitionHide,transitionDuration:t.transitionDuration,separateClosePopup:!0,onScrollPassive:F,onBeforeShow:Ge,onBeforeHide:Ae,onShow:Fe},n)}function Ae(e){Je(e),Ue()}function Fe(){R()}function Ie(e){C(e),null!==k.value&&k.value.focus(),c.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function Ne(t){C(t),e.nextTick(()=>{c.value=!1})}function je(){const n=[e.h(Dr,{class:`col-auto ${N.fieldClass}`,...D.value,for:N.targetUid.value,dark:H.value,square:!0,loading:d.value,itemAligned:!1,filled:!0,stackLabel:u.value.length>0,...N.splitAttrs.listeners.value,onFocus:Ie,onBlur:Ne},{...o,rawControl:()=>N.getControl(!0),before:void 0,after:void 0})];return!0===i.value&&n.push(e.h("div",{ref:T,class:K.value+" scroll",style:t.popupContentStyle,onClick:S,onScrollPassive:F},!0===X.value?void 0!==o["no-option"]?o["no-option"]({inputValue:u.value}):null:Be())),e.h(Ai,{ref:M,modelValue:r.value,position:!0===t.useInput?"top":void 0,transitionShow:y,transitionHide:t.transitionHide,transitionDuration:t.transitionDuration,onBeforeShow:Ge,onBeforeHide:De,onHide:He,onShow:Qe},()=>e.h("div",{class:"q-select__dialog"+(!0===H.value?" q-select__dialog--dark q-dark":"")+(!0===c.value?" q-select__dialog--focused":"")},n))}function De(e){Je(e),null!==M.value&&M.value.__updateRefocusTarget(N.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),N.focused.value=!1}function He(e){Ye(),!1===N.focused.value&&n("blur",e),Ke()}function Qe(){const e=document.activeElement;null!==e&&e.id===N.targetUid.value||null===k.value||k.value===e||k.value.focus(),R()}function Ue(){void 0!==m&&(m.optionEls=[]),!0!==r.value&&(s.value=-1,!0===i.value&&(i.value=!1),!1===N.focused.value&&(clearTimeout(g),g=void 0,!0===N.innerLoading.value&&(n("filter-abort"),N.innerLoading.value=!1,d.value=!1)))}function We(n){!0===N.editable.value&&(!0===f?(N.onControlFocusin(n),r.value=!0,e.nextTick(()=>{N.focus()})):N.focus(),void 0!==t.onFilter?Ee(u.value):!0===X.value&&void 0===o["no-option"]||(i.value=!0))}function Ye(){r.value=!1,Ue()}function Ke(){!0===t.useInput&&Le(!0!==t.multiple&&!0===t.fillInput&&j.value.length>0&&re.value(j.value[0])||"",!0,!0)}function Xe(e){let o=-1;if(!0===e){if(j.value.length>0){const e=ie.value(j.value[0]);o=t.options.findIndex(t=>Hn(ie.value(t),e))}P(o)}he(o)}function Ze(){!1===r.value&&null!==$.value&&$.value.updatePosition()}function Ge(e){void 0!==e&&C(e),n("popup-show",e),N.hasPopupOpen.value=!0,N.onControlFocusin(e)}function Je(e){void 0!==e&&C(e),n("popup-hide",e),N.hasPopupOpen.value=!1,N.onControlFocusout(e)}function tt(){f=(!0===l.platform.is.mobile||"dialog"===t.behavior)&&("menu"!==t.behavior&&(!0!==t.useInput||(void 0!==o["no-option"]||void 0!==t.onFilter||!1===X.value))),y=!0===l.platform.is.ios&&!0===f&&!0===t.useInput?"fade":t.transitionShow}return e.watch(j,e=>{p=e,!0===t.useInput&&!0===t.fillInput&&!0!==t.multiple&&!0!==N.innerLoading.value&&(!0!==r.value&&!0!==i.value||!0!==Q.value)&&(!0!==h&&Ke(),!0!==r.value&&!0!==i.value||Ee(""))},{immediate:!0}),e.watch(()=>t.fillInput,Ke),e.watch(i,Xe),e.onBeforeUpdate(tt),e.onUpdated(Ze),tt(),e.onBeforeMount(()=>{m={optionSlot:o.option,options:[],optionEls:[]}}),e.onBeforeUnmount(()=>{m=void 0,clearTimeout(v)}),Object.assign(a,{showPopup:We,hidePopup:Ye,removeAtIndex:ve,add:me,toggleOption:fe,setOptionIndex:he,moveOptionSelection:ge,filter:Ee,updateMenuPosition:Ze,updateInputValue:Le,isOptionSelected:we,getEmittingOptionValue:de,isOptionDisabled:()=>se.value.apply(null,arguments),getOptionValue:()=>ie.value.apply(null,arguments),getOptionLabel:()=>re.value.apply(null,arguments)}),Object.assign(N,{innerValue:j,fieldClass:e.computed(()=>`q-select q-field--auto-height q-select--with${!0!==t.useInput?"out":""}-input`+` q-select--with${!0!==t.useChips?"out":""}-chips`+` q-select--${!0===t.multiple?"multiple":"single"}`),inputRef:_,targetRef:k,hasValue:Q,showPopup:We,floatingLabel:e.computed(()=>(!0===t.hideSelected?u.value.length>0:!0===Q.value)||Fr(t.displayValue)),getControlChild:()=>{if(!1!==N.editable.value&&(!0===r.value||!0!==X.value||void 0!==o["no-option"]))return!0===f?je():Pe()},controlEvents:{onFocusin(e){N.onControlFocusin(e)},onFocusout(e){N.onControlFocusout(e,()=>{Ke(),Ue()})},onClick(e){if(!0!==f&&(S(e),!0===i.value))return Ue(),void(null!==k.value&&k.value.focus());We(e)}},getControl:o=>{const n=Te(),a=!0===o||!0!==r.value||!0!==f;if(!0===t.useInput?n.push(Oe(o,a)):!0===N.editable.value&&!0===a&&(n.push(e.h("div",{ref:k,key:"d_t",class:"no-outline",id:N.targetUid.value,tabindex:t.tabindex,onKeydown:ke,onKeyup:Ce,onKeypress:qe})),"string"===typeof t.autocomplete&&t.autocomplete.length>0&&n.push(e.h("input",{class:"q-select__autocomplete-input no-outline",autocomplete:t.autocomplete,onKeyup:Se}))),void 0!==B.value&&!0!==t.disable&&ue.value.length>0){const o=ue.value.map(t=>e.h("option",{value:t,selected:!0}));n.push(e.h("select",{class:"hidden",name:B.value,multiple:t.multiple},o))}return e.h("div",{class:"q-field__native row items-center",...N.splitAttrs.attributes.value},n)},getInnerAppend:()=>!0!==t.loading&&!0!==d.value&&!0!==t.hideDropdownIcon?[e.h(et,{class:"q-select__dropdown-icon"+(!0===i.value?" rotate-180":""),name:ne.value})]:null}),jr(N)}});const Eu=["text","rect","circle","QBtn","QBadge","QChip","QToolbar","QCheckbox","QRadio","QToggle","QSlider","QRange","QInput","QAvatar"],Pu=["wave","pulse","pulse-x","pulse-y","fade","blink","none"];var Au=e.defineComponent({name:"QSkeleton",props:{...at,tag:{type:String,default:"div"},type:{type:String,validator:e=>Eu.includes(e),default:"rect"},animation:{type:String,validator:e=>Pu.includes(e),default:"wave"},square:Boolean,bordered:Boolean,size:String,width:String,height:String},setup(t,{slots:o}){const n=e.getCurrentInstance(),a=lt(t,n.proxy.$q),l=e.computed(()=>void 0!==t.size?{width:t.size,height:t.size}:{width:t.width,height:t.height}),i=e.computed(()=>`q-skeleton q-skeleton--${!0===a.value?"dark":"light"} q-skeleton--type-${t.type}`+("none"!==t.animation?` q-skeleton--anim q-skeleton--anim-${t.animation}`:"")+(!0===t.square?" q-skeleton--square":"")+(!0===t.bordered?" q-skeleton--bordered":""));return()=>e.h(t.tag,{class:i.value,style:l.value},Fe(o.default))}});const Fu=[["left","center","start","width"],["right","center","end","width"],["top","start","center","height"],["bottom","end","center","height"]];var Iu=e.defineComponent({name:"QSlideItem",props:{...at,leftColor:String,rightColor:String,topColor:String,bottomColor:String,onSlide:Function},emits:["action","top","right","bottom","left"],setup(t,{slots:o,emit:n}){const{proxy:a}=e.getCurrentInstance(),{$q:l}=a,i=lt(t,l),{getCacheWithFn:r}=Vn(),s=e.ref(null);let u,c={},d={},v={};const p=e.computed(()=>!0===l.lang.rtl?{left:"right",right:"left"}:{left:"left",right:"right"}),m=e.computed(()=>"q-slide-item q-item-type overflow-hidden"+(!0===i.value?" q-slide-item--dark q-dark":""));function f(){s.value.style.transform="translate(0,0)"}function h(e,o,a){void 0!==t.onSlide&&n("slide",{side:e,ratio:o,isReset:a})}function g(e){const t=s.value;if(e.isFirst)c={dir:null,size:{left:0,right:0,top:0,bottom:0},scale:0},t.classList.add("no-transition"),Fu.forEach(e=>{if(void 0!==o[e[0]]){const t=v[e[0]];t.style.transform="scale(1)",c.size[e[0]]=t.getBoundingClientRect()[e[3]]}}),c.axis="up"===e.direction||"down"===e.direction?"Y":"X";else{if(e.isFinal)return t.classList.remove("no-transition"),void(1===c.scale?(t.style.transform=`translate${c.axis}(${100*c.dir}%)`,u=setTimeout(()=>{n(c.showing,{reset:f}),n("action",{side:c.showing,reset:f})},230)):(t.style.transform="translate(0,0)",h(c.showing,0,!0)));e.direction="X"===c.axis?e.offset.x<0?"left":"right":e.offset.y<0?"up":"down"}if(void 0===o.left&&e.direction===p.value.right||void 0===o.right&&e.direction===p.value.left||void 0===o.top&&"down"===e.direction||void 0===o.bottom&&"up"===e.direction)return void(t.style.transform="translate(0,0)");let a,l,i;"X"===c.axis?(l="left"===e.direction?-1:1,a=1===l?p.value.left:p.value.right,i=e.distance.x):(l="up"===e.direction?-2:2,a=2===l?"top":"bottom",i=e.distance.y),null!==c.dir&&Math.abs(l)!==Math.abs(c.dir)||(c.dir!==l&&(["left","right","top","bottom"].forEach(e=>{d[e]&&(d[e].style.visibility=a===e?"visible":"hidden")}),c.showing=a,c.dir=l),c.scale=Math.max(0,Math.min(1,(i-40)/c.size[a])),t.style.transform=`translate${c.axis}(${i*l/Math.abs(l)}px)`,v[a].style.transform=`scale(${c.scale})`,h(a,c.scale,!1))}return e.onBeforeUpdate(()=>{d={},v={}}),e.onBeforeUnmount(()=>{clearTimeout(u)}),Object.assign(a,{reset:f}),()=>{const n=[],a={left:void 0!==o[p.value.right],right:void 0!==o[p.value.left],up:void 0!==o.bottom,down:void 0!==o.top},l=Object.keys(a).filter(e=>!0===a[e]);Fu.forEach(a=>{const l=a[0];void 0!==o[l]&&n.push(e.h("div",{ref:e=>{d[l]=e},class:`q-slide-item__${l} absolute-full row no-wrap items-${a[1]} justify-${a[2]}`+(void 0!==t[l+"Color"]?` bg-${t[l+"Color"]}`:"")},[e.h("div",{ref:e=>{v[l]=e}},o[l]())]))});const i=e.h("div",{key:"content",ref:s,class:"q-slide-item__content"},Fe(o.default));return n.push(e.withDirectives(i,r("dir#"+l.join(""),()=>{const e={prevent:!0,stop:!0,mouse:!0};return l.forEach(t=>{e[t]=!0}),[[ha,g,void 0,e]]}))),e.h("div",{class:m.value},n)}}});const Ru=e.h("div",{class:"q-space"});var Nu=e.defineComponent({name:"QSpace",setup(){return()=>Ru}});const ju=[e.h("g",{transform:"matrix(1 0 0 -1 0 80)"},[e.h("rect",{width:"10",height:"20",rx:"3"},[e.h("animate",{attributeName:"height",begin:"0s",dur:"4.3s",values:"20;45;57;80;64;32;66;45;64;23;66;13;64;56;34;34;2;23;76;79;20",calcMode:"linear",repeatCount:"indefinite"})]),e.h("rect",{x:"15",width:"10",height:"80",rx:"3"},[e.h("animate",{attributeName:"height",begin:"0s",dur:"2s",values:"80;55;33;5;75;23;73;33;12;14;60;80",calcMode:"linear",repeatCount:"indefinite"})]),e.h("rect",{x:"30",width:"10",height:"50",rx:"3"},[e.h("animate",{attributeName:"height",begin:"0s",dur:"1.4s",values:"50;34;78;23;56;23;34;76;80;54;21;50",calcMode:"linear",repeatCount:"indefinite"})]),e.h("rect",{x:"45",width:"10",height:"30",rx:"3"},[e.h("animate",{attributeName:"height",begin:"0s",dur:"2s",values:"30;45;13;80;56;72;45;76;34;23;67;30",calcMode:"linear",repeatCount:"indefinite"})])])];var Du=e.defineComponent({name:"QSpinnerAudio",props:_t,setup(t){const{cSize:o,classes:n}=Ct(t);return()=>e.h("svg",{class:n.value,fill:"currentColor",width:o.value,height:o.value,viewBox:"0 0 55 80",xmlns:"http://www.w3.org/2000/svg"},ju)}});const Hu=[e.h("g",{transform:"translate(1 1)","stroke-width":"2",fill:"none","fill-rule":"evenodd"},[e.h("circle",{cx:"5",cy:"50",r:"5"},[e.h("animate",{attributeName:"cy",begin:"0s",dur:"2.2s",values:"50;5;50;50",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"cx",begin:"0s",dur:"2.2s",values:"5;27;49;5",calcMode:"linear",repeatCount:"indefinite"})]),e.h("circle",{cx:"27",cy:"5",r:"5"},[e.h("animate",{attributeName:"cy",begin:"0s",dur:"2.2s",from:"5",to:"5",values:"5;50;50;5",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"cx",begin:"0s",dur:"2.2s",from:"27",to:"27",values:"27;49;5;27",calcMode:"linear",repeatCount:"indefinite"})]),e.h("circle",{cx:"49",cy:"50",r:"5"},[e.h("animate",{attributeName:"cy",begin:"0s",dur:"2.2s",values:"50;50;5;50",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"cx",from:"49",to:"49",begin:"0s",dur:"2.2s",values:"49;5;27;49",calcMode:"linear",repeatCount:"indefinite"})])])];var Qu=e.defineComponent({name:"QSpinnerBall",props:_t,setup(t){const{cSize:o,classes:n}=Ct(t);return()=>e.h("svg",{class:n.value,stroke:"currentColor",width:o.value,height:o.value,viewBox:"0 0 57 57",xmlns:"http://www.w3.org/2000/svg"},Hu)}});const Uu=[e.h("rect",{y:"10",width:"15",height:"120",rx:"6"},[e.h("animate",{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})]),e.h("rect",{x:"30",y:"10",width:"15",height:"120",rx:"6"},[e.h("animate",{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})]),e.h("rect",{x:"60",width:"15",height:"140",rx:"6"},[e.h("animate",{attributeName:"height",begin:"0s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"y",begin:"0s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})]),e.h("rect",{x:"90",y:"10",width:"15",height:"120",rx:"6"},[e.h("animate",{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})]),e.h("rect",{x:"120",y:"10",width:"15",height:"120",rx:"6"},[e.h("animate",{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})])];var Wu=e.defineComponent({name:"QSpinnerBars",props:_t,setup(t){const{cSize:o,classes:n}=Ct(t);return()=>e.h("svg",{class:n.value,fill:"currentColor",width:o.value,height:o.value,viewBox:"0 0 135 140",xmlns:"http://www.w3.org/2000/svg"},Uu)}});const Yu=[e.h("rect",{x:"25",y:"25",width:"50",height:"50",fill:"none","stroke-width":"4",stroke:"currentColor"},[e.h("animateTransform",{id:"spinnerBox",attributeName:"transform",type:"rotate",from:"0 50 50",to:"180 50 50",dur:"0.5s",begin:"rectBox.end"})]),e.h("rect",{x:"27",y:"27",width:"46",height:"50",fill:"currentColor"},[e.h("animate",{id:"rectBox",attributeName:"height",begin:"0s;spinnerBox.end",dur:"1.3s",from:"50",to:"0",fill:"freeze"})])];var Ku=e.defineComponent({name:"QSpinnerBox",props:_t,setup(t){const{cSize:o,classes:n}=Ct(t);return()=>e.h("svg",{class:n.value,width:o.value,height:o.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg"},Yu)}});const Xu=[e.h("circle",{cx:"50",cy:"50",r:"48",fill:"none","stroke-width":"4","stroke-miterlimit":"10",stroke:"currentColor"}),e.h("line",{"stroke-linecap":"round","stroke-width":"4","stroke-miterlimit":"10",stroke:"currentColor",x1:"50",y1:"50",x2:"85",y2:"50.5"},[e.h("animateTransform",{attributeName:"transform",type:"rotate",from:"0 50 50",to:"360 50 50",dur:"2s",repeatCount:"indefinite"})]),e.h("line",{"stroke-linecap":"round","stroke-width":"4","stroke-miterlimit":"10",stroke:"currentColor",x1:"50",y1:"50",x2:"49.5",y2:"74"},[e.h("animateTransform",{attributeName:"transform",type:"rotate",from:"0 50 50",to:"360 50 50",dur:"15s",repeatCount:"indefinite"})])];var Zu=e.defineComponent({name:"QSpinnerClock",props:_t,setup(t){const{cSize:o,classes:n}=Ct(t);return()=>e.h("svg",{class:n.value,width:o.value,height:o.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg"},Xu)}});const Gu=[e.h("rect",{x:"0",y:"0",width:" 100",height:"100",fill:"none"}),e.h("path",{d:"M78,19H22c-6.6,0-12,5.4-12,12v31c0,6.6,5.4,12,12,12h37.2c0.4,3,1.8,5.6,3.7,7.6c2.4,2.5,5.1,4.1,9.1,4 c-1.4-2.1-2-7.2-2-10.3c0-0.4,0-0.8,0-1.3h8c6.6,0,12-5.4,12-12V31C90,24.4,84.6,19,78,19z",fill:"currentColor"}),e.h("circle",{cx:"30",cy:"47",r:"5",fill:"#fff"},[e.h("animate",{attributeName:"opacity",from:"0",to:"1",values:"0;1;1",keyTimes:"0;0.2;1",dur:"1s",repeatCount:"indefinite"})]),e.h("circle",{cx:"50",cy:"47",r:"5",fill:"#fff"},[e.h("animate",{attributeName:"opacity",from:"0",to:"1",values:"0;0;1;1",keyTimes:"0;0.2;0.4;1",dur:"1s",repeatCount:"indefinite"})]),e.h("circle",{cx:"70",cy:"47",r:"5",fill:"#fff"},[e.h("animate",{attributeName:"opacity",from:"0",to:"1",values:"0;0;1;1",keyTimes:"0;0.4;0.6;1",dur:"1s",repeatCount:"indefinite"})])];var Ju=e.defineComponent({name:"QSpinnerComment",props:_t,setup(t){const{cSize:o,classes:n}=Ct(t);return()=>e.h("svg",{class:n.value,width:o.value,height:o.value,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},Gu)}});const ec=[e.h("rect",{x:"0",y:"0",width:" 100",height:"100",fill:"none"}),e.h("g",{transform:"translate(25 25)"},[e.h("rect",{x:"-20",y:"-20",width:" 40",height:"40",fill:"currentColor",opacity:"0.9"},[e.h("animateTransform",{attributeName:"transform",type:"scale",from:"1.5",to:"1",repeatCount:"indefinite",begin:"0s",dur:"1s",calcMode:"spline",keySplines:"0.2 0.8 0.2 0.8",keyTimes:"0;1"})])]),e.h("g",{transform:"translate(75 25)"},[e.h("rect",{x:"-20",y:"-20",width:" 40",height:"40",fill:"currentColor",opacity:"0.8"},[e.h("animateTransform",{attributeName:"transform",type:"scale",from:"1.5",to:"1",repeatCount:"indefinite",begin:"0.1s",dur:"1s",calcMode:"spline",keySplines:"0.2 0.8 0.2 0.8",keyTimes:"0;1"})])]),e.h("g",{transform:"translate(25 75)"},[e.h("rect",{x:"-20",y:"-20",width:" 40",height:"40",fill:"currentColor",opacity:"0.7"},[e.h("animateTransform",{attributeName:"transform",type:"scale",from:"1.5",to:"1",repeatCount:"indefinite",begin:"0.3s",dur:"1s",calcMode:"spline",keySplines:"0.2 0.8 0.2 0.8",keyTimes:"0;1"})])]),e.h("g",{transform:"translate(75 75)"},[e.h("rect",{x:"-20",y:"-20",width:" 40",height:"40",fill:"currentColor",opacity:"0.6"},[e.h("animateTransform",{attributeName:"transform",type:"scale",from:"1.5",to:"1",repeatCount:"indefinite",begin:"0.2s",dur:"1s",calcMode:"spline",keySplines:"0.2 0.8 0.2 0.8",keyTimes:"0;1"})])])];var tc=e.defineComponent({name:"QSpinnerCube",props:_t,setup(t){const{cSize:o,classes:n}=Ct(t);return()=>e.h("svg",{class:n.value,width:o.value,height:o.value,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},ec)}});const oc=[e.h("circle",{cx:"15",cy:"15",r:"15"},[e.h("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})]),e.h("circle",{cx:"60",cy:"15",r:"9","fill-opacity":".3"},[e.h("animate",{attributeName:"r",from:"9",to:"9",begin:"0s",dur:"0.8s",values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"fill-opacity",from:".5",to:".5",begin:"0s",dur:"0.8s",values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"})]),e.h("circle",{cx:"105",cy:"15",r:"15"},[e.h("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})])];var nc=e.defineComponent({name:"QSpinnerDots",props:_t,setup(t){const{cSize:o,classes:n}=Ct(t);return()=>e.h("svg",{class:n.value,fill:"currentColor",width:o.value,height:o.value,viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg"},oc)}});const ac=[e.h("g",{transform:"translate(20 50)"},[e.h("rect",{x:"-10",y:"-30",width:" 20",height:"60",fill:"currentColor",opacity:"0.6"},[e.h("animateTransform",{attributeName:"transform",type:"scale",from:"2",to:"1",begin:"0s",repeatCount:"indefinite",dur:"1s",calcMode:"spline",keySplines:"0.1 0.9 0.4 1",keyTimes:"0;1",values:"2;1"})])]),e.h("g",{transform:"translate(50 50)"},[e.h("rect",{x:"-10",y:"-30",width:" 20",height:"60",fill:"currentColor",opacity:"0.8"},[e.h("animateTransform",{attributeName:"transform",type:"scale",from:"2",to:"1",begin:"0.1s",repeatCount:"indefinite",dur:"1s",calcMode:"spline",keySplines:"0.1 0.9 0.4 1",keyTimes:"0;1",values:"2;1"})])]),e.h("g",{transform:"translate(80 50)"},[e.h("rect",{x:"-10",y:"-30",width:" 20",height:"60",fill:"currentColor",opacity:"0.9"},[e.h("animateTransform",{attributeName:"transform",type:"scale",from:"2",to:"1",begin:"0.2s",repeatCount:"indefinite",dur:"1s",calcMode:"spline",keySplines:"0.1 0.9 0.4 1",keyTimes:"0;1",values:"2;1"})])])];var lc=e.defineComponent({name:"QSpinnerFacebook",props:_t,setup(t){const{cSize:o,classes:n}=Ct(t);return()=>e.h("svg",{class:n.value,width:o.value,height:o.value,viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},ac)}});const ic=[e.h("g",{transform:"translate(-20,-20)"},[e.h("path",{d:"M79.9,52.6C80,51.8,80,50.9,80,50s0-1.8-0.1-2.6l-5.1-0.4c-0.3-2.4-0.9-4.6-1.8-6.7l4.2-2.9c-0.7-1.6-1.6-3.1-2.6-4.5 L70,35c-1.4-1.9-3.1-3.5-4.9-4.9l2.2-4.6c-1.4-1-2.9-1.9-4.5-2.6L59.8,27c-2.1-0.9-4.4-1.5-6.7-1.8l-0.4-5.1C51.8,20,50.9,20,50,20 s-1.8,0-2.6,0.1l-0.4,5.1c-2.4,0.3-4.6,0.9-6.7,1.8l-2.9-4.1c-1.6,0.7-3.1,1.6-4.5,2.6l2.1,4.6c-1.9,1.4-3.5,3.1-5,4.9l-4.5-2.1 c-1,1.4-1.9,2.9-2.6,4.5l4.1,2.9c-0.9,2.1-1.5,4.4-1.8,6.8l-5,0.4C20,48.2,20,49.1,20,50s0,1.8,0.1,2.6l5,0.4 c0.3,2.4,0.9,4.7,1.8,6.8l-4.1,2.9c0.7,1.6,1.6,3.1,2.6,4.5l4.5-2.1c1.4,1.9,3.1,3.5,5,4.9l-2.1,4.6c1.4,1,2.9,1.9,4.5,2.6l2.9-4.1 c2.1,0.9,4.4,1.5,6.7,1.8l0.4,5.1C48.2,80,49.1,80,50,80s1.8,0,2.6-0.1l0.4-5.1c2.3-0.3,4.6-0.9,6.7-1.8l2.9,4.2 c1.6-0.7,3.1-1.6,4.5-2.6L65,69.9c1.9-1.4,3.5-3,4.9-4.9l4.6,2.2c1-1.4,1.9-2.9,2.6-4.5L73,59.8c0.9-2.1,1.5-4.4,1.8-6.7L79.9,52.6 z M50,65c-8.3,0-15-6.7-15-15c0-8.3,6.7-15,15-15s15,6.7,15,15C65,58.3,58.3,65,50,65z",fill:"currentColor"},[e.h("animateTransform",{attributeName:"transform",type:"rotate",from:"90 50 50",to:"0 50 50",dur:"1s",repeatCount:"indefinite"})])]),e.h("g",{transform:"translate(20,20) rotate(15 50 50)"},[e.h("path",{d:"M79.9,52.6C80,51.8,80,50.9,80,50s0-1.8-0.1-2.6l-5.1-0.4c-0.3-2.4-0.9-4.6-1.8-6.7l4.2-2.9c-0.7-1.6-1.6-3.1-2.6-4.5 L70,35c-1.4-1.9-3.1-3.5-4.9-4.9l2.2-4.6c-1.4-1-2.9-1.9-4.5-2.6L59.8,27c-2.1-0.9-4.4-1.5-6.7-1.8l-0.4-5.1C51.8,20,50.9,20,50,20 s-1.8,0-2.6,0.1l-0.4,5.1c-2.4,0.3-4.6,0.9-6.7,1.8l-2.9-4.1c-1.6,0.7-3.1,1.6-4.5,2.6l2.1,4.6c-1.9,1.4-3.5,3.1-5,4.9l-4.5-2.1 c-1,1.4-1.9,2.9-2.6,4.5l4.1,2.9c-0.9,2.1-1.5,4.4-1.8,6.8l-5,0.4C20,48.2,20,49.1,20,50s0,1.8,0.1,2.6l5,0.4 c0.3,2.4,0.9,4.7,1.8,6.8l-4.1,2.9c0.7,1.6,1.6,3.1,2.6,4.5l4.5-2.1c1.4,1.9,3.1,3.5,5,4.9l-2.1,4.6c1.4,1,2.9,1.9,4.5,2.6l2.9-4.1 c2.1,0.9,4.4,1.5,6.7,1.8l0.4,5.1C48.2,80,49.1,80,50,80s1.8,0,2.6-0.1l0.4-5.1c2.3-0.3,4.6-0.9,6.7-1.8l2.9,4.2 c1.6-0.7,3.1-1.6,4.5-2.6L65,69.9c1.9-1.4,3.5-3,4.9-4.9l4.6,2.2c1-1.4,1.9-2.9,2.6-4.5L73,59.8c0.9-2.1,1.5-4.4,1.8-6.7L79.9,52.6 z M50,65c-8.3,0-15-6.7-15-15c0-8.3,6.7-15,15-15s15,6.7,15,15C65,58.3,58.3,65,50,65z",fill:"currentColor"},[e.h("animateTransform",{attributeName:"transform",type:"rotate",from:"0 50 50",to:"90 50 50",dur:"1s",repeatCount:"indefinite"})])])];var rc=e.defineComponent({name:"QSpinnerGears",props:_t,setup(t){const{cSize:o,classes:n}=Ct(t);return()=>e.h("svg",{class:n.value,width:o.value,height:o.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg"},ic)}});const sc=[e.h("circle",{cx:"12.5",cy:"12.5",r:"12.5"},[e.h("animate",{attributeName:"fill-opacity",begin:"0s",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})]),e.h("circle",{cx:"12.5",cy:"52.5",r:"12.5","fill-opacity":".5"},[e.h("animate",{attributeName:"fill-opacity",begin:"100ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})]),e.h("circle",{cx:"52.5",cy:"12.5",r:"12.5"},[e.h("animate",{attributeName:"fill-opacity",begin:"300ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})]),e.h("circle",{cx:"52.5",cy:"52.5",r:"12.5"},[e.h("animate",{attributeName:"fill-opacity",begin:"600ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})]),e.h("circle",{cx:"92.5",cy:"12.5",r:"12.5"},[e.h("animate",{attributeName:"fill-opacity",begin:"800ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})]),e.h("circle",{cx:"92.5",cy:"52.5",r:"12.5"},[e.h("animate",{attributeName:"fill-opacity",begin:"400ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})]),e.h("circle",{cx:"12.5",cy:"92.5",r:"12.5"},[e.h("animate",{attributeName:"fill-opacity",begin:"700ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})]),e.h("circle",{cx:"52.5",cy:"92.5",r:"12.5"},[e.h("animate",{attributeName:"fill-opacity",begin:"500ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})]),e.h("circle",{cx:"92.5",cy:"92.5",r:"12.5"},[e.h("animate",{attributeName:"fill-opacity",begin:"200ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})])];var uc=e.defineComponent({name:"QSpinnerGrid",props:_t,setup(t){const{cSize:o,classes:n}=Ct(t);return()=>e.h("svg",{class:n.value,fill:"currentColor",width:o.value,height:o.value,viewBox:"0 0 105 105",xmlns:"http://www.w3.org/2000/svg"},sc)}});const cc=[e.h("path",{d:"M30.262 57.02L7.195 40.723c-5.84-3.976-7.56-12.06-3.842-18.063 3.715-6 11.467-7.65 17.306-3.68l4.52 3.76 2.6-5.274c3.716-6.002 11.47-7.65 17.304-3.68 5.84 3.97 7.56 12.054 3.842 18.062L34.49 56.118c-.897 1.512-2.793 1.915-4.228.9z","fill-opacity":".5"},[e.h("animate",{attributeName:"fill-opacity",begin:"0s",dur:"1.4s",values:"0.5;1;0.5",calcMode:"linear",repeatCount:"indefinite"})]),e.h("path",{d:"M105.512 56.12l-14.44-24.272c-3.716-6.008-1.996-14.093 3.843-18.062 5.835-3.97 13.588-2.322 17.306 3.68l2.6 5.274 4.52-3.76c5.84-3.97 13.593-2.32 17.308 3.68 3.718 6.003 1.998 14.088-3.842 18.064L109.74 57.02c-1.434 1.014-3.33.61-4.228-.9z","fill-opacity":".5"},[e.h("animate",{attributeName:"fill-opacity",begin:"0.7s",dur:"1.4s",values:"0.5;1;0.5",calcMode:"linear",repeatCount:"indefinite"})]),e.h("path",{d:"M67.408 57.834l-23.01-24.98c-5.864-6.15-5.864-16.108 0-22.248 5.86-6.14 15.37-6.14 21.234 0L70 16.168l4.368-5.562c5.863-6.14 15.375-6.14 21.235 0 5.863 6.14 5.863 16.098 0 22.247l-23.007 24.98c-1.43 1.556-3.757 1.556-5.188 0z"})];var dc=e.defineComponent({name:"QSpinnerHearts",props:_t,setup(t){const{cSize:o,classes:n}=Ct(t);return()=>e.h("svg",{class:n.value,fill:"currentColor",width:o.value,height:o.value,viewBox:"0 0 140 64",xmlns:"http://www.w3.org/2000/svg"},cc)}});const vc=[e.h("g",[e.h("path",{fill:"none",stroke:"currentColor","stroke-width":"5","stroke-miterlimit":"10",d:"M58.4,51.7c-0.9-0.9-1.4-2-1.4-2.3s0.5-0.4,1.4-1.4 C70.8,43.8,79.8,30.5,80,15.5H70H30H20c0.2,15,9.2,28.1,21.6,32.3c0.9,0.9,1.4,1.2,1.4,1.5s-0.5,1.6-1.4,2.5 C29.2,56.1,20.2,69.5,20,85.5h10h40h10C79.8,69.5,70.8,55.9,58.4,51.7z"}),e.h("clipPath",{id:"uil-hourglass-clip1"},[e.h("rect",{x:"15",y:"20",width:" 70",height:"25"},[e.h("animate",{attributeName:"height",from:"25",to:"0",dur:"1s",repeatCount:"indefinite",values:"25;0;0",keyTimes:"0;0.5;1"}),e.h("animate",{attributeName:"y",from:"20",to:"45",dur:"1s",repeatCount:"indefinite",values:"20;45;45",keyTimes:"0;0.5;1"})])]),e.h("clipPath",{id:"uil-hourglass-clip2"},[e.h("rect",{x:"15",y:"55",width:" 70",height:"25"},[e.h("animate",{attributeName:"height",from:"0",to:"25",dur:"1s",repeatCount:"indefinite",values:"0;25;25",keyTimes:"0;0.5;1"}),e.h("animate",{attributeName:"y",from:"80",to:"55",dur:"1s",repeatCount:"indefinite",values:"80;55;55",keyTimes:"0;0.5;1"})])]),e.h("path",{d:"M29,23c3.1,11.4,11.3,19.5,21,19.5S67.9,34.4,71,23H29z","clip-path":"url(#uil-hourglass-clip1)",fill:"currentColor"}),e.h("path",{d:"M71.6,78c-3-11.6-11.5-20-21.5-20s-18.5,8.4-21.5,20H71.6z","clip-path":"url(#uil-hourglass-clip2)",fill:"currentColor"}),e.h("animateTransform",{attributeName:"transform",type:"rotate",from:"0 50 50",to:"180 50 50",repeatCount:"indefinite",dur:"1s",values:"0 50 50;0 50 50;180 50 50",keyTimes:"0;0.7;1"})])];var pc=e.defineComponent({name:"QSpinnerHourglass",props:_t,setup(t){const{cSize:o,classes:n}=Ct(t);return()=>e.h("svg",{class:n.value,width:o.value,height:o.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg"},vc)}});const mc=[e.h("path",{d:"M24.3,30C11.4,30,5,43.3,5,50s6.4,20,19.3,20c19.3,0,32.1-40,51.4-40C88.6,30,95,43.3,95,50s-6.4,20-19.3,20C56.4,70,43.6,30,24.3,30z",fill:"none",stroke:"currentColor","stroke-width":"8","stroke-dasharray":"10.691205342610678 10.691205342610678","stroke-dashoffset":"0"},[e.h("animate",{attributeName:"stroke-dashoffset",from:"0",to:"21.382410685221355",begin:"0",dur:"2s",repeatCount:"indefinite",fill:"freeze"})])];var fc=e.defineComponent({name:"QSpinnerInfinity",props:_t,setup(t){const{cSize:o,classes:n}=Ct(t);return()=>e.h("svg",{class:n.value,width:o.value,height:o.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},mc)}});const hc=[e.h("g",{"stroke-width":"4","stroke-linecap":"round"},[e.h("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(180)"},[e.h("animate",{attributeName:"stroke-opacity",dur:"750ms",values:"1;.85;.7;.65;.55;.45;.35;.25;.15;.1;0;1",repeatCount:"indefinite"})]),e.h("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(210)"},[e.h("animate",{attributeName:"stroke-opacity",dur:"750ms",values:"0;1;.85;.7;.65;.55;.45;.35;.25;.15;.1;0",repeatCount:"indefinite"})]),e.h("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(240)"},[e.h("animate",{attributeName:"stroke-opacity",dur:"750ms",values:".1;0;1;.85;.7;.65;.55;.45;.35;.25;.15;.1",repeatCount:"indefinite"})]),e.h("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(270)"},[e.h("animate",{attributeName:"stroke-opacity",dur:"750ms",values:".15;.1;0;1;.85;.7;.65;.55;.45;.35;.25;.15",repeatCount:"indefinite"})]),e.h("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(300)"},[e.h("animate",{attributeName:"stroke-opacity",dur:"750ms",values:".25;.15;.1;0;1;.85;.7;.65;.55;.45;.35;.25",repeatCount:"indefinite"})]),e.h("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(330)"},[e.h("animate",{attributeName:"stroke-opacity",dur:"750ms",values:".35;.25;.15;.1;0;1;.85;.7;.65;.55;.45;.35",repeatCount:"indefinite"})]),e.h("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(0)"},[e.h("animate",{attributeName:"stroke-opacity",dur:"750ms",values:".45;.35;.25;.15;.1;0;1;.85;.7;.65;.55;.45",repeatCount:"indefinite"})]),e.h("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(30)"},[e.h("animate",{attributeName:"stroke-opacity",dur:"750ms",values:".55;.45;.35;.25;.15;.1;0;1;.85;.7;.65;.55",repeatCount:"indefinite"})]),e.h("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(60)"},[e.h("animate",{attributeName:"stroke-opacity",dur:"750ms",values:".65;.55;.45;.35;.25;.15;.1;0;1;.85;.7;.65",repeatCount:"indefinite"})]),e.h("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(90)"},[e.h("animate",{attributeName:"stroke-opacity",dur:"750ms",values:".7;.65;.55;.45;.35;.25;.15;.1;0;1;.85;.7",repeatCount:"indefinite"})]),e.h("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(120)"},[e.h("animate",{attributeName:"stroke-opacity",dur:"750ms",values:".85;.7;.65;.55;.45;.35;.25;.15;.1;0;1;.85",repeatCount:"indefinite"})]),e.h("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(150)"},[e.h("animate",{attributeName:"stroke-opacity",dur:"750ms",values:"1;.85;.7;.65;.55;.45;.35;.25;.15;.1;0;1",repeatCount:"indefinite"})])])];var gc=e.defineComponent({name:"QSpinnerIos",props:_t,setup(t){const{cSize:o,classes:n}=Ct(t);return()=>e.h("svg",{class:n.value,width:o.value,height:o.value,stroke:"currentColor",fill:"currentColor",viewBox:"0 0 64 64"},hc)}});const bc=[e.h("circle",{cx:"50",cy:"50",r:"44",fill:"none","stroke-width":"4","stroke-opacity":".5",stroke:"currentColor"}),e.h("circle",{cx:"8",cy:"54",r:"6",fill:"currentColor","stroke-width":"3",stroke:"currentColor"},[e.h("animateTransform",{attributeName:"transform",type:"rotate",from:"0 50 48",to:"360 50 52",dur:"2s",repeatCount:"indefinite"})])];var yc=e.defineComponent({name:"QSpinnerOrbit",props:_t,setup(t){const{cSize:o,classes:n}=Ct(t);return()=>e.h("svg",{class:n.value,width:o.value,height:o.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg"},bc)}});const wc=[e.h("g",{transform:"translate(1 1)","stroke-width":"2",fill:"none","fill-rule":"evenodd"},[e.h("circle",{"stroke-opacity":".5",cx:"18",cy:"18",r:"18"}),e.h("path",{d:"M36 18c0-9.94-8.06-18-18-18"},[e.h("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"})])])];var xc=e.defineComponent({name:"QSpinnerOval",props:_t,setup(t){const{cSize:o,classes:n}=Ct(t);return()=>e.h("svg",{class:n.value,stroke:"currentColor",width:o.value,height:o.value,viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg"},wc)}});const _c=[e.h("path",{d:"M0 50A50 50 0 0 1 50 0L50 50L0 50",fill:"currentColor",opacity:"0.5"},[e.h("animateTransform",{attributeName:"transform",type:"rotate",from:"0 50 50",to:"360 50 50",dur:"0.8s",repeatCount:"indefinite"})]),e.h("path",{d:"M50 0A50 50 0 0 1 100 50L50 50L50 0",fill:"currentColor",opacity:"0.5"},[e.h("animateTransform",{attributeName:"transform",type:"rotate",from:"0 50 50",to:"360 50 50",dur:"1.6s",repeatCount:"indefinite"})]),e.h("path",{d:"M100 50A50 50 0 0 1 50 100L50 50L100 50",fill:"currentColor",opacity:"0.5"},[e.h("animateTransform",{attributeName:"transform",type:"rotate",from:"0 50 50",to:"360 50 50",dur:"2.4s",repeatCount:"indefinite"})]),e.h("path",{d:"M50 100A50 50 0 0 1 0 50L50 50L50 100",fill:"currentColor",opacity:"0.5"},[e.h("animateTransform",{attributeName:"transform",type:"rotate",from:"0 50 50",to:"360 50 50",dur:"3.2s",repeatCount:"indefinite"})])];var Cc=e.defineComponent({name:"QSpinnerPie",props:_t,setup(t){const{cSize:o,classes:n}=Ct(t);return()=>e.h("svg",{class:n.value,width:o.value,height:o.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg"},_c)}});const Sc=[e.h("g",{fill:"none","fill-rule":"evenodd","stroke-width":"2"},[e.h("circle",{cx:"22",cy:"22",r:"1"},[e.h("animate",{attributeName:"r",begin:"0s",dur:"1.8s",values:"1; 20",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.165, 0.84, 0.44, 1",repeatCount:"indefinite"}),e.h("animate",{attributeName:"stroke-opacity",begin:"0s",dur:"1.8s",values:"1; 0",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.3, 0.61, 0.355, 1",repeatCount:"indefinite"})]),e.h("circle",{cx:"22",cy:"22",r:"1"},[e.h("animate",{attributeName:"r",begin:"-0.9s",dur:"1.8s",values:"1; 20",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.165, 0.84, 0.44, 1",repeatCount:"indefinite"}),e.h("animate",{attributeName:"stroke-opacity",begin:"-0.9s",dur:"1.8s",values:"1; 0",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.3, 0.61, 0.355, 1",repeatCount:"indefinite"})])])];var qc=e.defineComponent({name:"QSpinnerPuff",props:_t,setup(t){const{cSize:o,classes:n}=Ct(t);return()=>e.h("svg",{class:n.value,stroke:"currentColor",width:o.value,height:o.value,viewBox:"0 0 44 44",xmlns:"http://www.w3.org/2000/svg"},Sc)}});const kc=[e.h("g",{transform:"scale(0.55)"},[e.h("circle",{cx:"30",cy:"150",r:"30",fill:"currentColor"},[e.h("animate",{attributeName:"opacity",from:"0",to:"1",dur:"1s",begin:"0",repeatCount:"indefinite",keyTimes:"0;0.5;1",values:"0;1;1"})]),e.h("path",{d:"M90,150h30c0-49.7-40.3-90-90-90v30C63.1,90,90,116.9,90,150z",fill:"currentColor"},[e.h("animate",{attributeName:"opacity",from:"0",to:"1",dur:"1s",begin:"0.1",repeatCount:"indefinite",keyTimes:"0;0.5;1",values:"0;1;1"})]),e.h("path",{d:"M150,150h30C180,67.2,112.8,0,30,0v30C96.3,30,150,83.7,150,150z",fill:"currentColor"},[e.h("animate",{attributeName:"opacity",from:"0",to:"1",dur:"1s",begin:"0.2",repeatCount:"indefinite",keyTimes:"0;0.5;1",values:"0;1;1"})])])];var $c=e.defineComponent({name:"QSpinnerRadio",props:_t,setup(t){const{cSize:o,classes:n}=Ct(t);return()=>e.h("svg",{class:n.value,width:o.value,height:o.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg"},kc)}});const Mc=[e.h("g",{fill:"none","fill-rule":"evenodd",transform:"translate(1 1)","stroke-width":"2"},[e.h("circle",{cx:"22",cy:"22",r:"6"},[e.h("animate",{attributeName:"r",begin:"1.5s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"stroke-opacity",begin:"1.5s",dur:"3s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"stroke-width",begin:"1.5s",dur:"3s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"})]),e.h("circle",{cx:"22",cy:"22",r:"6"},[e.h("animate",{attributeName:"r",begin:"3s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"stroke-opacity",begin:"3s",dur:"3s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"stroke-width",begin:"3s",dur:"3s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"})]),e.h("circle",{cx:"22",cy:"22",r:"8"},[e.h("animate",{attributeName:"r",begin:"0s",dur:"1.5s",values:"6;1;2;3;4;5;6",calcMode:"linear",repeatCount:"indefinite"})])])];var Tc=e.defineComponent({name:"QSpinnerRings",props:_t,setup(t){const{cSize:o,classes:n}=Ct(t);return()=>e.h("svg",{class:n.value,stroke:"currentColor",width:o.value,height:o.value,viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg"},Mc)}});const Bc=[e.h("defs",[e.h("linearGradient",{x1:"8.042%",y1:"0%",x2:"65.682%",y2:"23.865%",id:"a"},[e.h("stop",{"stop-color":"currentColor","stop-opacity":"0",offset:"0%"}),e.h("stop",{"stop-color":"currentColor","stop-opacity":".631",offset:"63.146%"}),e.h("stop",{"stop-color":"currentColor",offset:"100%"})])]),e.h("g",{transform:"translate(1 1)",fill:"none","fill-rule":"evenodd"},[e.h("path",{d:"M36 18c0-9.94-8.06-18-18-18",stroke:"url(#a)","stroke-width":"2"},[e.h("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"})]),e.h("circle",{fill:"currentColor",cx:"36",cy:"18",r:"1"},[e.h("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"})])])];var Oc=e.defineComponent({name:"QSpinnerTail",props:_t,setup(t){const{cSize:o,classes:n}=Ct(t);return()=>e.h("svg",{class:n.value,width:o.value,height:o.value,viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg"},Bc)}}),Vc=e.defineComponent({name:"QSplitter",props:{...at,modelValue:{type:Number,required:!0},reverse:Boolean,unit:{type:String,default:"%",validator:e=>["%","px"].includes(e)},limits:{type:Array,validator:e=>{return 2===e.length&&("number"===typeof e[0]&&"number"===typeof e[1]&&(e[0]>=0&&e[0]<=e[1]))}},emitImmediately:Boolean,horizontal:Boolean,disable:Boolean,beforeClass:[Array,String,Object],afterClass:[Array,String,Object],separatorClass:[Array,String,Object],separatorStyle:[Array,String,Object]},emits:["update:modelValue"],setup(t,{slots:o,emit:n}){const{proxy:{$q:a}}=e.getCurrentInstance(),l=lt(t,a),i=e.ref(null),r={before:e.ref(null),after:e.ref(null)},s=e.computed(()=>"q-splitter no-wrap "+`${!0===t.horizontal?"q-splitter--horizontal column":"q-splitter--vertical row"}`+` q-splitter--${!0===t.disable?"disabled":"workable"}`+(!0===l.value?" q-splitter--dark":"")),u=e.computed(()=>!0===t.horizontal?"height":"width"),c=e.computed(()=>!0!==t.reverse?"before":"after"),d=e.computed(()=>void 0!==t.limits?t.limits:"%"===t.unit?[10,90]:[50,1/0]);function v(e){return("%"===t.unit?e:Math.round(e))+t.unit}const p=e.computed(()=>({[c.value]:{[u.value]:v(t.modelValue)}}));let m,f,h,g,b;function y(e){if(!0===e.isFirst){const e=i.value.getBoundingClientRect()[u.value];return m=!0===t.horizontal?"up":"left",f="%"===t.unit?100:e,h=Math.min(f,d.value[1],Math.max(d.value[0],t.modelValue)),g=(!0!==t.reverse?1:-1)*(!0===t.horizontal?1:!0===a.lang.rtl?-1:1)*("%"===t.unit?0===e?0:100/e:1),void i.value.classList.add("q-splitter--active")}if(!0===e.isFinal)return b!==t.modelValue&&n("update:modelValue",b),void i.value.classList.remove("q-splitter--active");const o=h+g*(e.direction===m?-1:1)*e.distance[!0===t.horizontal?"y":"x"];b=Math.min(f,d.value[1],Math.max(d.value[0],o)),r[c.value].value.style[u.value]=v(b),!0===t.emitImmediately&&t.modelValue!==b&&n("update:modelValue",b)}const w=e.computed(()=>{return[[ha,y,void 0,{[!0===t.horizontal?"vertical":"horizontal"]:!0,prevent:!0,stop:!0,mouse:!0,mouseAllDir:!0}]]});function x(e,t){e<t[0]?n("update:modelValue",t[0]):e>t[1]&&n("update:modelValue",t[1])}return e.watch(()=>t.modelValue,e=>{x(e,d.value)}),e.watch(()=>t.limits,()=>{e.nextTick(()=>{x(t.modelValue,d.value)})}),()=>{const n=[e.h("div",{ref:r.before,class:["q-splitter__panel q-splitter__before"+(!0===t.reverse?" col":""),t.beforeClass],style:p.value.before},Fe(o.before)),e.h("div",{class:["q-splitter__separator",t.separatorClass],style:t.separatorStyle,"aria-disabled":!0===t.disable?"true":void 0},[je("div",{class:"q-splitter__separator-area absolute-full"},Fe(o.separator),"sep",!0!==t.disable,()=>w.value)]),e.h("div",{ref:r.after,class:["q-splitter__panel q-splitter__after"+(!0===t.reverse?"":" col"),t.afterClass],style:p.value.after},Fe(o.after))];return e.h("div",{class:s.value,ref:i},Re(o.default,n))}}}),zc=e.defineComponent({name:"StepHeader",props:{stepper:{},step:{},goToPanel:Function},setup(t,{attrs:o}){const{proxy:{$q:n}}=e.getCurrentInstance(),a=e.ref(null),l=e.computed(()=>t.stepper.modelValue===t.step.name),i=e.computed(()=>{const e=t.step.disable;return!0===e||""===e}),r=e.computed(()=>{const e=t.step.error;return!0===e||""===e}),s=e.computed(()=>{const e=t.step.done;return!1===i.value&&(!0===e||""===e)}),u=e.computed(()=>{const e=t.step.headerNav,o=!0===e||""===e||void 0===e;return!1===i.value&&t.stepper.headerNav&&o}),c=e.computed(()=>{return t.step.prefix&&!1===l.value&&!1===r.value&&!1===s.value}),d=e.computed(()=>{return!0===l.value?t.step.activeIcon||t.stepper.activeIcon||n.iconSet.stepper.active:!0===r.value?t.step.errorIcon||t.stepper.errorIcon||n.iconSet.stepper.error:!1===i.value&&!0===s.value?t.step.doneIcon||t.stepper.doneIcon||n.iconSet.stepper.done:t.step.icon||t.stepper.inactiveIcon}),v=e.computed(()=>{const e=!0===r.value?t.step.errorColor||t.stepper.errorColor:void 0;if(!0===l.value){const o=t.step.activeColor||t.stepper.activeColor||t.step.color;return void 0!==o?o:e}return void 0!==e?e:!1===i.value&&!0===s.value?t.step.doneColor||t.stepper.doneColor||t.step.color||t.stepper.inactiveColor:t.step.color||t.stepper.inactiveColor}),p=e.computed(()=>{return"q-stepper__tab col-grow flex items-center no-wrap relative-position"+(void 0!==v.value?` text-${v.value}`:"")+(!0===r.value?" q-stepper__tab--error":"")+(!0===l.value?" q-stepper__tab--active":"")+(!0===s.value?" q-stepper__tab--done":"")+(!0===u.value?" q-stepper__tab--navigation q-focusable q-hoverable":"")+(!0===i.value?" q-stepper__tab--disabled":"")});function m(){null!==a.value&&a.value.focus(),!1===l.value&&t.goToPanel(t.step.name)}function f(e){13===e.keyCode&&!1===l.value&&t.goToPanel(t.step.name)}return()=>{const n={class:p.value};!0===u.value&&(n.onClick=m,n.onKeyup=f,Object.assign(n,!0===i.value?{tabindex:-1,"aria-disabled":"true"}:{tabindex:o.tabindex||0}));const l=[e.h("div",{class:"q-focus-helper",tabindex:-1,ref:a}),e.h("div",{class:"q-stepper__dot row flex-center q-stepper__line relative-position"},[e.h("span",{class:"row flex-center"},[!0===c.value?t.step.prefix:e.h(et,{name:d.value})])])];if(void 0!==t.step.title&&null!==t.step.title){const o=[e.h("div",{class:"q-stepper__title"},t.step.title)];void 0!==t.step.caption&&null!==t.step.caption&&o.push(e.h("div",{class:"q-stepper__caption"},t.step.caption)),l.push(e.h("div",{class:"q-stepper__label q-stepper__line relative-position"},o))}return je("div",n,l,"head",!0===t.stepper.headerNav&&!1!==u.value,()=>[[Ft,u.value]])}}});function Lc(t){return e.h("div",{class:"q-stepper__step-content"},[e.h("div",{class:"q-stepper__step-inner"},Fe(t.default))])}const Ec={setup(e,{slots:t}){return()=>Lc(t)}};var Pc=e.defineComponent({name:"QStep",props:{...zn,icon:String,color:String,title:{type:String,required:!0},caption:String,prefix:[String,Number],doneIcon:String,doneColor:String,activeIcon:String,activeColor:String,errorIcon:String,errorColor:String,headerNav:{type:Boolean,default:!0},done:Boolean,error:Boolean},setup(t,{slots:o}){const n=e.inject(ne,()=>{console.error("QStep needs to be child of QStepper")}),{getCacheWithFn:a}=Vn(),l=e.ref(null),i=e.computed(()=>n.value.modelValue===t.name);e.watch(i,t=>{!0===t&&!0===n.value.vertical&&e.nextTick(()=>{null!==l.value&&(l.value.scrollTop=0)})});const r=e.computed(()=>"string"===typeof t.name||"number"===typeof t.name?t.name:String(t.name));function s(){const t=n.value.vertical;return!0===t&&!0===n.value.keepAlive?e.h(e.KeepAlive,n.value.keepAliveProps.value,!0===i.value?[e.h(!0===n.value.needsUniqueKeepAliveWrapper.value?a(r.value,()=>({...Ec,name:r.value})):Ec,{key:r.value},o.default)]:void 0):!0!==t||!0===i.value?Lc(o):void 0}return()=>e.h("div",{ref:l,class:"q-stepper__step"},!0===n.value.vertical?[e.h(zc,{stepper:n.value,step:t,goToPanel:n.value.goToPanel}),!0===n.value.animated?e.h(dr,s):s()]:[s()])}});const Ac=/(-\w)/g;function Fc(e){const t={};return Object.keys(e).forEach(o=>{const n=o.replace(Ac,e=>e[1].toUpperCase());t[n]=e[o]}),t}var Ic=e.defineComponent({name:"QStepper",props:{...at,...En,flat:Boolean,bordered:Boolean,alternativeLabels:Boolean,headerNav:Boolean,contracted:Boolean,headerClass:String,inactiveColor:String,inactiveIcon:String,doneIcon:String,doneColor:String,activeIcon:String,activeColor:String,errorIcon:String,errorColor:String},emits:Pn,setup(t,{slots:o}){const n=e.getCurrentInstance(),a=lt(t,n.proxy.$q),{updatePanelsList:l,isValidPanelName:i,updatePanelIndex:r,getPanelContent:s,getPanels:u,panelDirectives:c,goToPanel:d,keepAliveProps:v,needsUniqueKeepAliveWrapper:p}=An();e.provide(ne,e.computed(()=>({goToPanel:d,keepAliveProps:v,needsUniqueKeepAliveWrapper:p,...t})));const m=e.computed(()=>`q-stepper q-stepper--${!0===t.vertical?"vertical":"horizontal"}`+(!0===t.flat||!0===a.value?" q-stepper--flat no-shadow":"")+(!0===t.bordered||!0===a.value&&!1===t.flat?" q-stepper--bordered":"")+(!0===t.contracted?" q-stepper--contracted":"")+(!0===a.value?" q-stepper--dark q-dark":"")),f=e.computed(()=>"q-stepper__header row items-stretch justify-between"+` q-stepper__header--${!0===t.alternativeLabels?"alternative":"standard"}-labels`+(!1===t.flat||!0===t.bordered?" q-stepper__header--border":"")+(void 0!==t.headerClass?` ${t.headerClass}`:""));function h(){const n=Fe(o.message,[]);if(!0===t.vertical){i(t.modelValue)&&r();const a=e.h("div",{class:"q-stepper__content"},Fe(o.default));return void 0===n?[a]:n.concat(a)}return[e.h("div",{class:f.value},u().map(o=>{const n=Fc(o.props);return e.h(zc,{key:n.name,stepper:t,step:n,goToPanel:d})})),n,je("div",{class:"q-stepper__content q-panel-parent"},s(),"cont",t.swipeable,()=>c.value)]}return()=>{return l(o),e.h("div",{class:m.value},Re(o.navigation,h()))}}}),Rc=e.defineComponent({name:"QStepperNavigation",setup(t,{slots:o}){return()=>e.h("div",{class:"q-stepper__nav"},Fe(o.default))}}),Nc=e.defineComponent({name:"QTh",props:{props:Object,autoWidth:Boolean},emits:["click"],setup(t,{slots:o,emit:n}){const a=e.getCurrentInstance(),{proxy:{$q:l}}=a;return()=>{if(void 0===t.props)return e.h("th",{class:!0===t.autoWidth?"q-table--col-auto-width":""},Fe(o.default));let i,r;const s=a.vnode.key;if(s){if(i=t.props.colsMap[s],void 0===i)return}else i=t.props.col;if(!0===i.sortable){const t="right"===i.align?"unshift":"push";r=Ie(o.default,[]),r[t](e.h(et,{class:i.__iconClass,name:l.iconSet.table.arrowUp}))}else r=Fe(o.default);const u={class:i.__thClass+(!0===t.autoWidth?" q-table--col-auto-width":""),style:i.headerStyle};return!0===i.sortable&&(u.onClick=(e=>{t.props.sort(i),n("click",e)})),e.h("th",u,r)}}});function jc(t,o){return e.h("div",t,[e.h("table",{class:"q-table"},o)])}const Dc={list:Ms,table:As},Hc=["list","table","__qtable"];var Qc=e.defineComponent({name:"QVirtualScroll",props:{...Tu,type:{type:String,default:"list",validator:e=>Hc.includes(e)},items:{type:Array,default:()=>[]},itemsFn:Function,itemsSize:Number,scrollTarget:{default:void 0}},setup(t,{slots:o,attrs:n}){let a;const l=e.ref(null),i=e.computed(()=>t.itemsSize>=0&&void 0!==t.itemsFn?parseInt(t.itemsSize,10):Array.isArray(t.items)?t.items.length:0),{virtualScrollSliceRange:r,localResetVirtualScroll:s,padVirtualScroll:u,onVirtualScrollEvt:c}=Bu({virtualScrollLength:i,getVirtualScrollTarget:h,getVirtualScrollEl:f}),d=e.computed(()=>{if(0===i.value)return[];const e=(e,t)=>({index:r.value.from+t,item:e});return void 0===t.itemsFn?t.items.slice(r.value.from,r.value.to).map(e):t.itemsFn(r.value.from,r.value.to-r.value.from).map(e)}),v=e.computed(()=>"q-virtual-scroll q-virtual-scroll"+(!0===t.virtualScrollHorizontal?"--horizontal":"--vertical")+(void 0!==t.scrollTarget?"":" scroll")),m=e.computed(()=>void 0!==t.scrollTarget?{}:{tabindex:0});function f(){return l.value.$el||l.value}function h(){return a}function g(){a=qo(f(),t.scrollTarget),a.addEventListener("scroll",c,p.passive)}function b(){void 0!==a&&(a.removeEventListener("scroll",c,p.passive),a=void 0)}function y(){let e=u("list"===t.type?"div":"tbody",d.value.map(o.default));return void 0!==o.before&&(e=o.before().concat(e)),Re(o.after,e)}return e.watch(i,()=>{s()}),e.watch(()=>t.scrollTarget,()=>{b(),g()}),e.onBeforeMount(()=>{s()}),e.onMounted(()=>{g()}),e.onBeforeUnmount(()=>{b()}),()=>{if(void 0!==o.default)return"__qtable"===t.type?jc({ref:l,class:"q-table__middle "+v.value},y()):e.h(Dc[t.type],{...n,ref:l,class:[n.class,v.value],...m.value},y);console.error("QVirtualScroll: default scoped slot is required for rendering")}}});function Uc(e,t){return new Date(e)-new Date(t)}const Wc={sortMethod:Function,binaryStateSort:Boolean,columnSortOrder:{type:String,validator:e=>"ad"===e||"da"===e,default:"ad"}};function Yc(t,o,n,a){const l=e.computed(()=>{const{sortBy:e}=o.value;return e&&n.value.find(t=>t.name===e)||null}),i=e.computed(()=>void 0!==t.sortMethod?t.sortMethod:(e,t,o)=>{const a=n.value.find(e=>e.name===t);if(void 0===a||void 0===a.field)return e;const l=!0===o?-1:1,i="function"===typeof a.field?e=>a.field(e):e=>e[a.field];return e.sort((e,t)=>{let o=i(e),n=i(t);return null===o||void 0===o?-1*l:null===n||void 0===n?1*l:void 0!==a.sort?a.sort(o,n,e,t)*l:!0===Un(o)&&!0===Un(n)?(o-n)*l:!0===Qn(o)&&!0===Qn(n)?Uc(o,n)*l:"boolean"===typeof o&&"boolean"===typeof n?(o-n)*l:([o,n]=[o,n].map(e=>(e+"").toLocaleString().toLowerCase()),o<n?-1*l:o===n?0:l)})});function r(e){let l=t.columnSortOrder;if(e===Object(e))e.sortOrder&&(l=e.sortOrder),e=e.name;else{const t=n.value.find(t=>t.name===e);void 0!==t&&t.sortOrder&&(l=t.sortOrder)}let{sortBy:i,descending:r}=o.value;i!==e?(i=e,r="da"===l):!0===t.binaryStateSort?r=!r:!0===r?"ad"===l?i=null:r=!1:"ad"===l?r=!0:i=null,a({sortBy:i,descending:r,page:1})}return{columnToSort:l,computedSortMethod:i,sort:r}}const Kc={filter:[String,Object],filterMethod:Function};function Xc(t,o){const n=e.computed(()=>void 0!==t.filterMethod?t.filterMethod:(e,t,o,n)=>{const a=t?t.toLowerCase():"";return e.filter(e=>o.some(t=>{const o=n(t,e)+"",l="undefined"===o||"null"===o?"":o.toLowerCase();return-1!==l.indexOf(a)}))});return e.watch(()=>t.filter,()=>{e.nextTick(()=>{o({page:1},!0)})},{deep:!0}),{computedFilterMethod:n}}function Zc(e,t){for(const o in t)if(t[o]!==e[o])return!1;return!0}function Gc(e){return e.page<1&&(e.page=1),void 0!==e.rowsPerPage&&e.rowsPerPage<1&&(e.rowsPerPage=0),e}const Jc={pagination:Object,rowsPerPageOptions:{type:Array,default:()=>[5,7,10,15,20,25,50,0]},"onUpdate:pagination":Function};function ed(t,o){const{props:n,emit:a}=t,l=e.ref(Object.assign({sortBy:null,descending:!1,page:1,rowsPerPage:n.rowsPerPageOptions.length>0?n.rowsPerPageOptions[0]:5},n.pagination)),i=e.computed(()=>{const e=void 0!==n["onUpdate:pagination"]?{...l.value,...n.pagination}:l.value;return Gc(e)}),r=e.computed(()=>void 0!==i.value.rowsNumber);function s(e){u({pagination:e,filter:n.filter})}function u(t={}){e.nextTick(()=>{a("request",{pagination:t.pagination||i.value,filter:t.filter||n.filter,getCellValue:o})})}function c(e,t){const o=Gc({...i.value,...e});Zc(i.value,o)?!0===r.value&&!0===t&&s(o):!0!==r.value?void 0!==n.pagination&&void 0!==n["onUpdate:pagination"]?a("update:pagination",o):l.value=o:s(o)}return{innerPagination:l,computedPagination:i,isServerSide:r,requestServerInteraction:u,setPagination:c}}function td(t,o,n,a,l,i){const{props:r,emit:s,proxy:{$q:u}}=t,c=e.computed(()=>!0===a.value?n.value.rowsNumber||0:i.value),d=e.computed(()=>{const{page:e,rowsPerPage:t}=n.value;return(e-1)*t}),v=e.computed(()=>{const{page:e,rowsPerPage:t}=n.value;return e*t}),p=e.computed(()=>1===n.value.page),m=e.computed(()=>0===n.value.rowsPerPage?1:Math.max(1,Math.ceil(c.value/n.value.rowsPerPage))),f=e.computed(()=>0===v.value||n.value.page>=m.value),h=e.computed(()=>{const e=r.rowsPerPageOptions.includes(o.value.rowsPerPage)?r.rowsPerPageOptions:[o.value.rowsPerPage].concat(r.rowsPerPageOptions);return e.map(e=>({label:0===e?u.lang.table.allRows:""+e,value:e}))});function g(){l({page:1})}function b(){const{page:e}=n.value;e>1&&l({page:e-1})}function y(){const{page:e,rowsPerPage:t}=n.value;v.value>0&&e*t<c.value&&l({page:e+1})}function w(){l({page:m.value})}return e.watch(m,(e,t)=>{if(e===t)return;const o=n.value.page;e&&!o?l({page:1}):e<o&&l({page:e})}),void 0!==r["onUpdate:pagination"]&&s("update:pagination",{...n.value}),{firstRowIndex:d,lastRowIndex:v,isFirstPage:p,isLastPage:f,pagesNumber:m,computedRowsPerPageOptions:h,computedRowsNumber:c,firstPage:g,prevPage:b,nextPage:y,lastPage:w}}const od={selection:{type:String,default:"none",validator:e=>["single","multiple","none"].includes(e)},selected:{type:Array,default:()=>[]}},nd=["update:selected","selection"];function ad(t,o,n,a){const l=e.computed(()=>{const e={};return t.selected.map(a.value).forEach(t=>{e[t]=!0}),e}),i=e.computed(()=>{return"none"!==t.selection}),r=e.computed(()=>{return"single"===t.selection}),s=e.computed(()=>{return"multiple"===t.selection}),u=e.computed(()=>n.value.length>0&&n.value.every(e=>!0===l.value[a.value(e)])),c=e.computed(()=>!0!==u.value&&n.value.some(e=>!0===l.value[a.value(e)])),d=e.computed(()=>t.selected.length);function v(e){return!0===l.value[e]}function p(){o("update:selected",[])}function m(e,n,l,i){o("selection",{rows:n,added:l,keys:e,evt:i});const s=!0===r.value?!0===l?n:[]:!0===l?t.selected.concat(n):t.selected.filter(t=>!1===e.includes(a.value(t)));o("update:selected",s)}return{hasSelectionMode:i,singleSelection:r,multipleSelection:s,allRowsSelected:u,someRowsSelected:c,rowsSelectedNumber:d,isRowSelected:v,clearSelection:p,updateSelection:m}}function ld(e){return Array.isArray(e)?e.slice():[]}const id={expanded:Array},rd=["update:expanded"];function sd(t,o){const n=e.ref(ld(t.expanded));function a(e){return n.value.includes(e)}function l(e){void 0!==t.expanded?o("update:expanded",e):n.value=e}function i(e,t){const o=n.value.slice(),a=o.indexOf(e);!0===t?-1===a&&(o.push(e),l(o)):-1!==a&&(o.splice(a,1),l(o))}return e.watch(()=>t.expanded,e=>{n.value=ld(e)}),{isRowExpanded:a,setExpanded:l,updateExpanded:i}}const ud={visibleColumns:Array};function cd(t,o,n){const a=e.computed(()=>{if(void 0!==t.columns)return t.columns;const e=t.rows[0];return void 0!==e?Object.keys(e).map(t=>({name:t,label:t.toUpperCase(),field:t,align:Un(e[t])?"right":"left",sortable:!0})):[]}),l=e.computed(()=>{const{sortBy:e,descending:n}=o.value,l=void 0!==t.visibleColumns?a.value.filter(e=>!0===e.required||!0===t.visibleColumns.includes(e.name)):a.value;return l.map(t=>{const o=t.align||"right",a=`text-${o}`;return{...t,align:o,__iconClass:`q-table__sort-icon q-table__sort-icon--${o}`,__thClass:a+(void 0!==t.headerClasses?" "+t.headerClasses:"")+(!0===t.sortable?" sortable":"")+(t.name===e?` sorted ${!0===n?"sort-desc":""}`:""),__tdStyle:void 0!==t.style?"function"!==typeof t.style?()=>t.style:t.style:()=>null,__tdClass:void 0!==t.classes?"function"!==typeof t.classes?()=>a+" "+t.classes:e=>a+" "+t.classes(e):()=>a}})}),i=e.computed(()=>{const e={};return l.value.forEach(t=>{e[t.name]=t}),e}),r=e.computed(()=>{return void 0!==t.tableColspan?t.tableColspan:l.value.length+(!0===n.value?1:0)});return{colList:a,computedCols:l,computedColsMap:i,computedColspan:r}}const dd="q-table__bottom row items-center",vd={};Mu.forEach(e=>{vd[e]={}});var pd=e.defineComponent({name:"QTable",props:{rows:{type:Array,default:()=>[]},rowKey:{type:[String,Function],default:"id"},columns:Array,loading:Boolean,iconFirstPage:String,iconPrevPage:String,iconNextPage:String,iconLastPage:String,title:String,hideHeader:Boolean,grid:Boolean,gridHeader:Boolean,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,separator:{type:String,default:"horizontal",validator:e=>["horizontal","vertical","cell","none"].includes(e)},wrapCells:Boolean,virtualScroll:Boolean,...vd,noDataLabel:String,noResultsLabel:String,loadingLabel:String,selectedRowsLabel:Function,rowsPerPageLabel:String,paginationLabel:Function,color:{type:String,default:"grey-8"},titleClass:[String,Array,Object],tableStyle:[String,Array,Object],tableClass:[String,Array,Object],tableHeaderStyle:[String,Array,Object],tableHeaderClass:[String,Array,Object],cardContainerClass:[String,Array,Object],cardContainerStyle:[String,Array,Object],cardStyle:[String,Array,Object],cardClass:[String,Array,Object],hideBottom:Boolean,hideSelectedBanner:Boolean,hideNoData:Boolean,hidePagination:Boolean,onRowClick:Function,onRowDblclick:Function,onRowContextmenu:Function,...at,...Fn,...ud,...Kc,...Jc,...id,...od,...Wc},emits:["request","virtual-scroll",...In,...rd,...nd],setup(t,{slots:o,emit:n}){const a=e.getCurrentInstance(),{proxy:{$q:l}}=a,i=lt(t,l),{inFullscreen:r,toggleFullscreen:s}=Rn(),u=e.computed(()=>"function"===typeof t.rowKey?t.rowKey:e=>e[t.rowKey]),c=e.ref(null),d=e.ref(null),v=e.computed(()=>!0!==t.grid&&!0===t.virtualScroll),p=e.computed(()=>" q-table__card"+(!0===i.value?" q-table__card--dark q-dark":"")+(!0===t.square?" q-table--square":"")+(!0===t.flat?" q-table--flat":"")+(!0===t.bordered?" q-table--bordered":"")),m=e.computed(()=>`q-table__container q-table--${t.separator}-separator column no-wrap`+(!0===t.loading?" q-table--loading":"")+(!0===t.grid?" q-table--grid":p.value)+(!0===i.value?" q-table--dark":"")+(!0===t.dense?" q-table--dense":"")+(!1===t.wrapCells?" q-table--no-wrap":"")+(!0===r.value?" fullscreen scroll":"")),f=e.computed(()=>m.value+(!0===t.loading?" q-table--loading":""));e.watch(()=>t.tableStyle+t.tableClass+t.tableHeaderStyle+t.tableHeaderClass+m.value,()=>{!0===v.value&&null!==d.value&&d.value.reset()});const{innerPagination:h,computedPagination:g,isServerSide:b,requestServerInteraction:y,setPagination:w}=ed(a,me),{computedFilterMethod:x}=Xc(t,w),{isRowExpanded:_,setExpanded:C,updateExpanded:S}=sd(t,n),q=e.computed(()=>{let e=t.rows;if(!0===b.value||0===e.length)return e;const{sortBy:o,descending:n}=g.value;return t.filter&&(e=x.value(e,t.filter,F.value,me)),null!==N.value&&(e=j.value(t.rows===e?e.slice():e,o,n)),e}),k=e.computed(()=>q.value.length),$=e.computed(()=>{let e=q.value;if(!0===b.value)return e;const{rowsPerPage:o}=g.value;return 0!==o&&(0===H.value&&t.rows!==e?e.length>Q.value&&(e=e.slice(0,Q.value)):e=e.slice(H.value,Q.value)),e}),{hasSelectionMode:M,singleSelection:T,multipleSelection:B,allRowsSelected:O,someRowsSelected:V,rowsSelectedNumber:z,isRowSelected:L,clearSelection:E,updateSelection:P}=ad(t,n,$,u),{colList:A,computedCols:F,computedColsMap:I,computedColspan:R}=cd(t,g,M),{columnToSort:N,computedSortMethod:j,sort:D}=Yc(t,g,A,w),{firstRowIndex:H,lastRowIndex:Q,isFirstPage:U,isLastPage:W,pagesNumber:Y,computedRowsPerPageOptions:K,computedRowsNumber:X,firstPage:Z,prevPage:G,nextPage:J,lastPage:ee}=td(a,h,g,b,w,k),te=e.computed(()=>0===$.value.length),oe=e.computed(()=>{const e={};return Mu.forEach(o=>{e[o]=t[o]}),void 0===e.virtualScrollItemSize&&(e.virtualScrollItemSize=!0===t.dense?28:48),e});function ne(){!0===v.value&&d.value.reset()}function ae(){if(!0===t.grid)return $e();const n=!0!==t.hideHeader?be:null;if(!0===v.value){const a=o["top-row"],l=o["bottom-row"],i={default:e=>se(e.item,o.body,e.index)};if(void 0!==a){const t=e.h("tbody",a({cols:F.value}));i.before=null===n?()=>t:()=>[n()].concat(t)}else null!==n&&(i.before=n);return void 0!==l&&(i.after=(()=>e.h("tbody",l({cols:F.value})))),e.h(Qc,{ref:d,class:t.tableClass,style:t.tableStyle,...oe.value,items:$.value,type:"__qtable",tableColspan:R.value,onVirtualScroll:ie},i)}const a=[ue()];return null!==n&&a.unshift(n()),jc({class:["q-table__middle scroll",t.tableClass],style:t.tableStyle},a)}function le(e,t){if(null!==d.value)return void d.value.scrollTo(e,t);e=parseInt(e,10);const o=c.value.querySelector(`tbody tr:nth-of-type(${e+1})`);if(null!==o){const t=c.value.querySelector(".q-table__middle.scroll"),{offsetTop:a}=o,l=a<t.scrollTop?"decrease":"increase";t.scrollTop=a,n("virtual-scroll",{index:e,from:0,to:h.value.rowsPerPage-1,direction:l})}}function ie(e){n("virtual-scroll",e)}function re(){return[e.h(iu,{class:"q-table__linear-progress",color:t.color,dark:i.value,indeterminate:!0,trackColor:"transparent"})]}function se(a,l,r){const s=u.value(a),c=L(s);if(void 0!==l)return l(ce({key:s,row:a,pageIndex:r,__trClass:c?"selected":""}));const d=o["body-cell"],v=F.value.map(t=>{const n=o[`body-cell-${t.name}`],l=void 0!==n?n:d;return void 0!==l?l(de({key:s,row:a,pageIndex:r,col:t})):e.h("td",{class:t.__tdClass(a),style:t.__tdStyle(a)},me(t,a))});if(!0===M.value){const n=o["body-selection"],l=void 0!==n?n(ve({key:s,row:a,pageIndex:r})):[e.h(la,{modelValue:c,color:t.color,dark:i.value,dense:t.dense,"onUpdate:modelValue":(e,t)=>{P([s],[a],e,t)}})];v.unshift(e.h("td",{class:"q-table--col-auto-width"},l))}const p={key:s,class:{selected:c}};return void 0!==t.onRowClick&&(p.class["cursor-pointer"]=!0,p.onClick=(e=>{n("RowClick",e,a,r)})),void 0!==t.onRowDblclick&&(p.class["cursor-pointer"]=!0,p.onDblclick=(e=>{n("RowDblclick",e,a,r)})),void 0!==t.onRowContextmenu&&(p.class["cursor-pointer"]=!0,p.onContextmenu=(e=>{n("RowContextmenu",e,a,r)})),e.h("tr",p,v)}function ue(){const t=o.body,n=o["top-row"],a=o["bottom-row"];let l=$.value.map((e,o)=>se(e,t,o));return void 0!==n&&(l=n({cols:F.value}).concat(l)),void 0!==a&&(l=l.concat(a({cols:F.value}))),e.h("tbody",l)}function ce(e){return pe(e),e.cols=e.cols.map(t=>{const o={...t};return Object.defineProperty(o,"value",{get:()=>me(t,e.row),configurable:!0,enumerable:!0}),o}),e}function de(e){return pe(e),Object.defineProperty(e,"value",{get:()=>me(e.col,e.row),configurable:!0,enumerable:!0}),e}function ve(e){return pe(e),e}function pe(e){Object.assign(e,{cols:F.value,colsMap:I.value,sort:D,rowIndex:H.value+e.pageIndex,color:t.color,dark:i.value,dense:t.dense}),!0===M.value&&Object.defineProperty(e,"selected",{get:()=>L(e.key),set:(t,o)=>{P([e.key],[e.row],t,o)},configurable:!0,enumerable:!0}),Object.defineProperty(e,"expand",{get:()=>_(e.key),set:t=>{S(e.key,t)},configurable:!0,enumerable:!0})}function me(e,t){const o="function"===typeof e.field?e.field(t):t[e.field];return void 0!==e.format?e.format(o,t):o}const fe=e.computed(()=>({pagination:g.value,pagesNumber:Y.value,isFirstPage:U.value,isLastPage:W.value,firstPage:Z,prevPage:G,nextPage:J,lastPage:ee,inFullscreen:r.value,toggleFullscreen:s}));function he(){const n=o.top,a=o["top-left"],l=o["top-right"],i=o["top-selection"],r=!0===M.value&&void 0!==i&&z.vaue>0,s="q-table__top relative-position row items-center";if(void 0!==n)return e.h("div",{class:s},[n(fe.value)]);let u;return!0===r?u=i(fe.value).slice():(u=[],void 0!==a?u.push(e.h("div",{class:"q-table-control"},[a(fe.value)])):t.title&&u.push(e.h("div",{class:"q-table__control"},[e.h("div",{class:["q-table__title",t.titleClass]},t.title)]))),void 0!==l&&(u.push(e.h("div",{class:"q-table__separator col"})),u.push(e.h("div",{class:"q-table__control"},[l(fe.value)]))),0!==u.length?e.h("div",{class:s},u):void 0}const ge=e.computed(()=>!0===V.value?null:O.value);function be(){const n=ye();return!0===t.loading&&void 0===o.loading&&n.push(e.h("tr",{class:"q-table__progress"},[e.h("th",{class:"relative-position",colspan:R.value},re())])),e.h("thead",n)}function ye(){const n=o.header,a=o["header-cell"];if(void 0!==n)return n(we({header:!0})).slice();const l=F.value.map(t=>{const n=o[`header-cell-${t.name}`],l=void 0!==n?n:a,i=we({col:t});return void 0!==l?l(i):e.h(Nc,{key:t.name,props:i},()=>t.label)});if(!0===T.value&&!0!==t.grid)l.unshift(e.h("th",{class:"q-table--col-auto-width"}," "));else if(!0===B.value){const n=o["header-selection"],a=void 0!==n?n(we({})):[e.h(la,{color:t.color,modelValue:ge.value,dark:i.value,dense:t.dense,"onUpdate:modelValue":xe})];l.unshift(e.h("th",{class:"q-table--col-auto-width"},a))}return[e.h("tr",{class:t.tableHeaderClass,style:t.tableHeaderStyle},l)]}function we(e){return Object.assign(e,{cols:F.value,sort:D,colsMap:I.value,color:t.color,dark:i.value,dense:t.dense}),!0===B.value&&Object.defineProperty(e,"selected",{get:()=>ge.value,set:xe,configurable:!0,enumerable:!0}),e}function xe(e){!0===V.value&&(e=!1),P($.value.map(u.value),$.value,e)}const _e=e.computed(()=>{const e=[t.iconFirstPage||l.iconSet.table.firstPage,t.iconPrevPage||l.iconSet.table.prevPage,t.iconNextPage||l.iconSet.table.nextPage,t.iconLastPage||l.iconSet.table.lastPage];return!0===l.lang.rtl?e.reverse():e});function Ce(){if(!0===t.hideBottom)return;if(!0===te.value){if(!0===t.hideNoData)return;const n=!0===t.loading?t.loadingLabel||l.lang.table.loading:t.filter?t.noResultsLabel||l.lang.table.noResults:t.noDataLabel||l.lang.table.noData,a=o["no-data"],i=void 0!==a?[a({message:n,icon:l.iconSet.table.warning,filter:t.filter})]:[e.h(et,{class:"q-table__bottom-nodata-icon",name:l.iconSet.table.warning}),n];return e.h("div",{class:dd+" q-table__bottom--nodata"},i)}const n=o.bottom;if(void 0!==n)return e.h("div",{class:dd},[n(fe.value)]);const a=!0!==t.hideSelectedBanner&&!0===M.value&&z.value>0?[e.h("div",{class:"q-table__control"},[e.h("div",[(t.selectedRowsLabel||l.lang.table.selectedRecords)(z.value)])])]:[];return!0!==t.hidePagination?e.h("div",{class:dd+" justify-end"},qe(a)):a.length>0?e.h("div",{class:dd},a):void 0}function Se(e){w({page:1,rowsPerPage:e.value})}function qe(n){let a;const{rowsPerPage:r}=g.value,s=t.paginationLabel||l.lang.table.pagination,u=o.pagination,c=t.rowsPerPageOptions.length>1;if(n.push(e.h("div",{class:"q-table__separator col"})),!0===c&&n.push(e.h("div",{class:"q-table__control"},[e.h("span",{class:"q-table__bottom-item"},[t.rowsPerPageLabel||l.lang.table.recordsPerPage]),e.h(Lu,{class:"q-table__select inline q-table__bottom-item",color:t.color,modelValue:r,options:K.value,displayValue:0===r?l.lang.table.allRows:r,dark:i.value,borderless:!0,dense:!0,optionsDense:!0,optionsCover:!0,"onUpdate:modelValue":Se})])),void 0!==u)a=u(fe.value);else if(a=[e.h("span",0!==r?{class:"q-table__bottom-item"}:{},[r?s(H.value+1,Math.min(Q.value,X.value),X.value):s(1,k.value,X.value)])],0!==r&&Y.value>1){const o={color:t.color,round:!0,dense:!0,flat:!0};!0===t.dense&&(o.size="sm"),Y.value>2&&a.push(e.h(Wt,{key:"pgFirst",...o,icon:_e.value[0],disable:U.value,onClick:Z})),a.push(e.h(Wt,{key:"pgPrev",...o,icon:_e.value[1],disable:U.value,onClick:G}),e.h(Wt,{key:"pgNext",...o,icon:_e.value[2],disable:W.value,onClick:J})),Y.value>2&&a.push(e.h(Wt,{key:"pgLast",...o,icon:_e.value[3],disable:W.value,onClick:ee}))}return n.push(e.h("div",{class:"q-table__control"},a)),n}function ke(){const n=!0===t.gridHeader?[e.h("table",{class:"q-table"},[be()])]:!0===t.loading&&void 0===o.loading?re():void 0;return e.h("div",{class:"q-table__middle"},n)}function $e(){const a=void 0!==o.item?o.item:a=>{const l=a.cols.map(t=>e.h("div",{class:"q-table__grid-item-row"},[e.h("div",{class:"q-table__grid-item-title"},[t.label]),e.h("div",{class:"q-table__grid-item-value"},[t.value])]));if(!0===M.value){const n=o["body-selection"],r=void 0!==n?n(a):[e.h(la,{modelValue:a.selected,color:t.color,dark:i.value,dense:t.dense,"onUpdate:modelValue":(e,t)=>{P([a.key],[a.row],e,t)}})];l.unshift(e.h("div",{class:"q-table__grid-item-row"},r),e.h(mr,{dark:i.value}))}const r={class:["q-table__grid-item-card"+p.value,t.cardClass],style:t.cardStyle};return void 0===t.onRowClick&&void 0===t.onRowDblclick||(r.class[0]+=" cursor-pointer",void 0!==t.onRowClick&&(r.onClick=(e=>{n("RowClick",e,a.row,a.pageIndex)})),void 0!==t.onRowDblclick&&(r.onDblclick=(e=>{n("RowDblclick",e,a.row,a.pageIndex)}))),e.h("div",{class:"q-table__grid-item col-xs-12 col-sm-6 col-md-4 col-lg-3"+(!0===a.selected?"q-table__grid-item--selected":"")},[e.h("div",r,l)])};return e.h("div",{class:["q-table__grid-content row",t.cardContainerClass],style:t.cardContainerStyle},$.value.map((e,t)=>{return a(ce({key:u.value(e),row:e,pageIndex:t}))}))}return Object.assign(a.proxy,{requestServerInteraction:y,setPagination:w,firstPage:Z,prevPage:G,nextPage:J,lastPage:ee,isRowSelected:L,clearSelection:E,isRowExpanded:_,setExpanded:C,sort:D,resetVirtualScroll:ne,scrollTo:le,getCellValue:me}),Object.defineProperty(a.proxy,"filteredSortedRows",{get:()=>q.value,enumerable:!0}),Object.defineProperty(a.proxy,"computedRows",{get:()=>$.value,enumerable:!0}),Object.defineProperty(a.proxy,"computedRowsNumber",{get:()=>X.value,enumerable:!0}),()=>{const n=[he()],a={ref:c,class:f.value};return!0===t.grid?n.push(ke()):Object.assign(a,{class:[a.class,t.cardClass],style:t.cardStyle}),n.push(ae(),Ce()),!0===t.loading&&void 0!==o.loading&&n.push(o.loading()),e.h("div",a,n)}}}),md=e.defineComponent({name:"QTr",props:{props:Object,noHover:Boolean},setup(t,{slots:o}){const n=e.computed(()=>"q-tr"+(void 0===t.props||!0===t.props.header?"":" "+t.props.__trClass)+(!0===t.noHover?" q-tr--no-hover":""));return()=>e.h("tr",{class:n.value},Fe(o.default))}}),fd=e.defineComponent({name:"QTd",props:{props:Object,autoWidth:Boolean,noHover:Boolean},setup(t,{slots:o}){const n=e.getCurrentInstance(),a=e.computed(()=>"q-td"+(!0===t.autoWidth?" q-table--col-auto-width":"")+(!0===t.noHover?" q-td--no-hover":"")+" ");return()=>{if(void 0===t.props)return e.h("td",{class:a.value},Fe(o.default));const l=n.vnode.key,i=(void 0!==t.props.colsMap?t.props.colsMap[l]:null)||t.props.col;if(void 0===i)return;const{row:r}=t.props;return e.h("td",{class:a.value+i.__tdClass(r),style:i.__tdStyle(r)},Fe(o.default))}}}),hd=e.defineComponent({name:"QRouteTab",props:{...yt,...za,to:{required:!0}},emits:Va,setup(t,{slots:o,emit:n}){const a=wt(),{renderTab:l,$tabs:i}=La(t,o,n,{exact:e.computed(()=>t.exact),...a});return e.watch(()=>t.name+t.exact+(a.linkRoute.value||{}).href,()=>{i.verifyRouteModel()}),()=>l(a.linkTag.value,a.linkProps.value)}});function gd(e,t){if(null!==e.hour){if(null===e.minute)return"minute";if(!0===t&&null===e.second)return"second"}return"hour"}function bd(){const e=new Date;return{hour:e.getHours(),minute:e.getMinutes(),second:e.getSeconds(),millisecond:e.getMilliseconds()}}var yd=e.defineComponent({name:"QTime",props:{...at,...bn,..._l,mask:{default:null},format24h:{type:Boolean,default:null},defaultDate:{type:String,validator:e=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(e)},options:Function,hourOptions:Array,minuteOptions:Array,secondOptions:Array,withSeconds:Boolean,nowBtn:Boolean},emits:Cl,setup(t,{slots:o,emit:n}){const{proxy:{$q:a}}=e.getCurrentInstance(),l=lt(t,a),{tabindex:i,headerClass:r,getLocale:s,getCurrentDate:u}=ql(t,a),c=yn(t),d=wn(c);let v,p;const m=e.ref(null),f=e.computed(()=>j()),h=e.computed(()=>s()),g=El(t.modelValue,j(),s(),t.calendar,D()),y=e.ref(gd(g)),w=e.ref(g),x=e.ref(null===g.hour||g.hour<12),_=e.computed(()=>`q-time q-time--${!0===t.landscape?"landscape":"portrait"}`+(!0===l.value?" q-time--dark q-dark":"")+(!0===t.disable?" disabled":!0===t.readonly?" q-time--readonly":"")+(!0===t.bordered?" q-time--bordered":"")+(!0===t.square?" q-time--square no-border-radius":"")+(!0===t.flat?" q-time--flat no-shadow":"")),C=e.computed(()=>{const e=w.value;return{hour:null===e.hour?"--":!0===q.value?Ce(e.hour):String(!0===x.value?0===e.hour?12:e.hour:e.hour>12?e.hour-12:e.hour),minute:null===e.minute?"--":Ce(e.minute),second:null===e.second?"--":Ce(e.second)}}),S=e.computed(()=>D()),q=e.computed(()=>null!==t.format24h?t.format24h:a.lang.date.format24h),k=e.computed(()=>{const e="hour"===y.value,t=!0===e?12:60,o=w.value[y.value],n=Math.round(o*(360/t))-180;let a=`rotate(${n}deg) translateX(-50%)`;return!0===e&&!0===q.value&&w.value.hour>=12&&(a+=" scale(.7)"),{transform:a}}),$=e.computed(()=>null!==w.value.hour),M=e.computed(()=>!0===$.value&&null!==w.value.minute),T=e.computed(()=>void 0!==t.hourOptions?e=>t.hourOptions.includes(e):void 0!==t.options?e=>t.options(e,null,null):null),B=e.computed(()=>void 0!==t.minuteOptions?e=>t.minuteOptions.includes(e):void 0!==t.options?e=>t.options(w.value.hour,e,null):null),O=e.computed(()=>void 0!==t.secondOptions?e=>t.secondOptions.includes(e):void 0!==t.options?e=>t.options(w.value.hour,w.value.minute,e):null),V=e.computed(()=>{if(null===T.value)return null;const e=I(0,11,T.value),t=I(12,11,T.value);return{am:e,pm:t,values:e.values.concat(t.values)}}),z=e.computed(()=>null!==B.value?I(0,59,B.value):null),L=e.computed(()=>null!==O.value?I(0,59,O.value):null),E=e.computed(()=>{switch(y.value){case"hour":return V.value;case"minute":return z.value;case"second":return L.value}}),P=e.computed(()=>{let e,t,o=0,n=1;const a=null!==E.value?E.value.values:void 0;"hour"===y.value?!0===q.value?(e=0,t=23):(e=0,t=11,!1===x.value&&(o=12)):(e=0,t=55,n=5);const l=[];for(let i=e,r=e;i<=t;i+=n,r++){const e=i+o,t=void 0!==a&&!1===a.includes(e),n="hour"===y.value&&0===i?!0===q.value?"00":"12":i;l.push({val:e,index:r,disable:t,label:n})}return l}),A=e.computed(()=>{return[[ha,U,void 0,{stop:!0,prevent:!0,mouse:!0}]]});function F(){ce({...u(),...bd()}),y.value="hour"}function I(e,t,o){const n=Array.apply(null,{length:t+1}).map((t,n)=>{const a=n+e;return{index:a,val:!0===o(a)}}).filter(e=>!0===e.val).map(e=>e.index);return{min:n[0],max:n[n.length-1],values:n,threshold:t+1}}function R(e,t,o){const n=Math.abs(e-t);return Math.min(n,o-n)}function N(e,{min:t,max:o,values:n,threshold:a}){if(e===t)return t;if(e<t||e>o)return R(e,t,a)<=R(e,o,a)?t:o;const l=n.findIndex(t=>e<=t),i=n[l-1],r=n[l];return e-i<=r-e?i:r}function j(){return"persian"!==t.calendar&&null!==t.mask?t.mask:`HH:mm${!0===t.withSeconds?":ss":""}`}function D(){if("string"!==typeof t.defaultDate){const e=u(!0);return e.dateHash=Sl(e),e}return El(t.defaultDate,"YYYY/MM/DD",void 0,t.calendar)}function H(){return!0===de.isDeactivated||!0===de.isUnmounted||null!==E.value&&(0===E.value.values.length||"hour"===y.value&&!0!==q.value&&0===V.value[!0===x.value?"am":"pm"].values.length)}function Q(){const e=m.value,{top:t,left:o,width:n}=e.getBoundingClientRect(),a=n/2;return{top:t+a,left:o+a,dist:.7*a}}function U(e){if(!0!==H()){if(!0===e.isFirst)return v=Q(),void(p=Y(e.evt,v));p=Y(e.evt,v,p),!0===e.isFinal&&(v=!1,p=null,W())}}function W(){"hour"===y.value?y.value="minute":t.withSeconds&&"minute"===y.value&&(y.value="second")}function Y(e,t,o){const n=b(e),a=Math.abs(n.top-t.top),l=Math.sqrt(Math.pow(Math.abs(n.top-t.top),2)+Math.pow(Math.abs(n.left-t.left),2));let i,r=Math.asin(a/l)*(180/Math.PI);if(r=n.top<t.top?t.left<n.left?90-r:270+r:t.left<n.left?r+90:270-r,"hour"===y.value){if(i=r/30,null!==V.value){const e=!0!==q.value?!0===x.value:V.value.am.values.length>0&&V.value.pm.values.length>0?l>=t.dist:V.value.am.values.length>0;i=N(i+(!0===e?0:12),V.value[!0===e?"am":"pm"])}else i=Math.round(i),!0===q.value?l<t.dist?i<12&&(i+=12):12===i&&(i=0):!0===x.value&&12===i?i=0:!1===x.value&&12!==i&&(i+=12);!0===q.value&&(x.value=i<12)}else i=Math.round(r/6)%60,"minute"===y.value&&null!==z.value?i=N(i,z.value):"second"===y.value&&null!==L.value&&(i=N(i,L.value));return o!==i&&ie[y.value](i),i}e.watch(()=>t.modelValue,e=>{const o=El(e,f.value,h.value,t.calendar,S.value);o.dateHash===w.value.dateHash&&o.timeHash===w.value.timeHash||(w.value=o,null===o.hour?y.value="hour":x.value=o.hour<12)}),e.watch([f,h],()=>{e.nextTick(()=>{ce()})});const K={hour(){y.value="hour"},minute(){y.value="minute"},second(){y.value="second"}};function X(e){13===e.keyCode&&re()}function Z(e){13===e.keyCode&&se()}function G(e){!0!==H()&&(!0!==a.platform.is.desktop&&Y(e,Q()),W())}function J(e){!0!==H()&&Y(e,Q())}function ee(e){if(13===e.keyCode)y.value="hour";else if([37,39].includes(e.keyCode)){const t=37===e.keyCode?-1:1;if(null!==V.value){const e=!0===q.value?V.value.values:V.value[!0===x.value?"am":"pm"].values;if(0===e.length)return;if(null===w.value.hour)ne(e[0]);else{const o=(e.length+e.indexOf(w.value.hour)+t)%e.length;ne(e[o])}}else{const e=!0===q.value?24:12,o=!0!==q.value&&!1===x.value?12:0,n=null===w.value.hour?-t:w.value.hour;ne(o+(24+n+t)%e)}}}function te(e){if(13===e.keyCode)y.value="minute";else if([37,39].includes(e.keyCode)){const t=37===e.keyCode?-1:1;if(null!==z.value){const e=z.value.values;if(0===e.length)return;if(null===w.value.minute)ae(e[0]);else{const o=(e.length+e.indexOf(w.value.minute)+t)%e.length;ae(e[o])}}else{const e=null===w.value.minute?-t:w.value.minute;ae((60+e+t)%60)}}}function oe(e){if(13===e.keyCode)y.value="second";else if([37,39].includes(e.keyCode)){const t=37===e.keyCode?-1:1;if(null!==L.value){const e=L.value.values;if(0===e.length)return;if(null===w.value.seconds)le(e[0]);else{const o=(e.length+e.indexOf(w.value.second)+t)%e.length;le(e[o])}}else{const e=null===w.value.second?-t:w.value.second;le((60+e+t)%60)}}}function ne(e){w.value.hour!==e&&(w.value.hour=e,w.value.minute=null,w.value.second=null)}function ae(e){w.value.minute!==e&&(w.value.minute=e,w.value.second=null,!0!==t.withSeconds&&ce({minute:e}))}function le(e){w.value.second!==e&&ce({second:e})}const ie={hour:ne,minute:ae,second:le};function re(){!1===x.value&&(x.value=!0,null!==w.value.hour&&(w.value.hour-=12,ue()))}function se(){!0===x.value&&(x.value=!1,null!==w.value.hour&&(w.value.hour+=12,ue()))}function ue(){return null!==T.value&&!0!==T.value(w.value.hour)?(w.value=El(),void(y.value="hour")):null!==B.value&&!0!==B.value(w.value.minute)?(w.value.minute=null,w.value.second=null,void(y.value="minute")):!0===t.withSeconds&&null!==O.value&&!0!==O.value(w.value.second)?(w.value.second=null,void(y.value="second")):void(null===w.value.hour||null===w.value.minute||!0===t.withSeconds&&null===w.value.second||ce())}function ce(e){const o=Object.assign({...w.value},e),a="persian"===t.calendar?Ce(o.hour)+":"+Ce(o.minute)+(!0===t.withSeconds?":"+Ce(o.second):""):si(new Date(o.year,null===o.month?null:o.month-1,o.day,o.hour,o.minute,o.second,o.millisecond),f.value,h.value,o.year,o.timezoneOffset);o.changed=a!==t.modelValue,n("update:modelValue",a,o)}const de=e.getCurrentInstance();function ve(){const o=[e.h("div",{class:"q-time__link "+("hour"===y.value?"q-time__link--active":"cursor-pointer"),tabindex:i.value,onClick:K.hour,onKeyup:ee},C.value.hour),e.h("div",":"),e.h("div",!0===$.value?{class:"q-time__link "+("minute"===y.value?"q-time__link--active":"cursor-pointer"),tabindex:i.value,onKeyup:te,onClick:K.minute}:{class:"q-time__link"},C.value.minute)];!0===t.withSeconds&&o.push(e.h("div",":"),e.h("div",!0===M.value?{class:"q-time__link "+("second"===y.value?"q-time__link--active":"cursor-pointer"),tabindex:i.value,onKeyup:oe,onClick:K.second}:{class:"q-time__link"},C.value.second));const n=[e.h("div",{class:"q-time__header-label row items-center no-wrap",dir:"ltr"},o)];return!1===q.value&&n.push(e.h("div",{class:"q-time__header-ampm column items-between no-wrap"},[e.h("div",{class:"q-time__link "+(!0===x.value?"q-time__link--active":"cursor-pointer"),tabindex:i.value,onClick:re,onKeyup:X},"AM"),e.h("div",{class:"q-time__link "+(!0!==x.value?"q-time__link--active":"cursor-pointer"),tabindex:i.value,onClick:se,onKeyup:Z},"PM")])),e.h("div",{class:"q-time__header flex flex-center no-wrap "+r.value},n)}function pe(){const o=w.value[y.value];return e.h("div",{class:"q-time__content col relative-position"},[e.h(e.Transition,{name:"q-transition--scale"},()=>e.h("div",{key:"clock"+y.value,class:"q-time__container-parent absolute-full"},[e.h("div",{ref:m,class:"q-time__container-child fit overflow-hidden"},[e.withDirectives(e.h("div",{class:"q-time__clock cursor-pointer non-selectable",onClick:G,onMousedown:J},[e.h("div",{class:"q-time__clock-circle fit"},[e.h("div",{class:"q-time__clock-pointer"+(null===w.value[y.value]?" hidden":void 0!==t.color?` text-${t.color}`:""),style:k.value}),P.value.map(t=>e.h("div",{class:`q-time__clock-position row flex-center q-time__clock-pos-${t.index}`+(t.val===o?" q-time__clock-position--active "+r.value:!0===t.disable?" q-time__clock-position--disable":"")},[e.h("span",t.label)]))])]),A.value)])])),!0===t.nowBtn?e.h(Wt,{class:"q-time__now-button absolute",icon:a.iconSet.datetime.now,unelevated:!0,size:"sm",round:!0,color:t.color,textColor:t.textColor,tabindex:i.value,onClick:F}):null])}return Object.assign(de.proxy,{setNow:F}),()=>{const n=[pe()],a=Fe(o.default);return void 0!==a&&n.push(e.h("div",{class:"q-time__actions"},a)),void 0!==t.name&&!0!==t.disable&&d(n,"push"),e.h("div",{class:_.value,tabindex:-1},[ve(),e.h("div",{class:"q-time__main col overflow-auto"},n)])}}}),wd=e.defineComponent({name:"QTimeline",props:{...at,color:{type:String,default:"primary"},side:{type:String,default:"right",validator:e=>["left","right"].includes(e)},layout:{type:String,default:"dense",validator:e=>["dense","comfortable","loose"].includes(e)}},setup(t,{slots:o}){const n=e.getCurrentInstance(),a=lt(t,n.proxy.$q);e.provide(oe,t);const l=e.computed(()=>`q-timeline q-timeline--${t.layout} q-timeline--${t.layout}--${t.side}`+(!0===a.value?" q-timeline--dark":""));return()=>e.h("ul",{class:l.value},Fe(o.default))}}),xd=e.defineComponent({name:"QTimelineEntry",props:{heading:Boolean,tag:{type:String,default:"h3"},side:{type:String,default:"right",validator:e=>["left","right"].includes(e)},icon:String,avatar:String,color:String,title:String,subtitle:String,body:String},setup(t,{slots:o}){const n=e.inject(oe,()=>{console.error("QTimelineEntry needs to be child of QTimeline")}),a=e.computed(()=>`q-timeline__entry q-timeline__entry--${t.side}`+(void 0!==t.icon||void 0!==t.avatar?" q-timeline__entry--icon":"")),l=e.computed(()=>`q-timeline__dot text-${t.color||n.color}`),i=e.computed(()=>"comfortable"===n.layout&&"left"===n.side);return()=>{const n=Ie(o.default,[]);if(void 0!==t.body&&n.unshift(t.body),!0===t.heading){const o=[e.h("div"),e.h("div"),e.h(t.tag,{class:"q-timeline__heading-title"},n)];return e.h("div",{class:"q-timeline__heading"},!0===i.value?o.reverse():o)}let r;void 0!==t.icon?r=[e.h(et,{class:"row items-center justify-center",name:t.icon})]:void 0!==t.avatar&&(r=[e.h("img",{class:"q-timeline__dot-img",src:t.avatar})]);const s=[e.h("div",{class:"q-timeline__subtitle"},[e.h("span",{},Fe(o.subtitle,[t.subtitle]))]),e.h("div",{class:l.value},r),e.h("div",{class:"q-timeline__content"},[e.h("h6",{class:"q-timeline__title"},Fe(o.title,[t.title]))].concat(n))];return e.h("li",{class:a.value},!0===i.value?s.reverse():s)}}}),_d=e.defineComponent({name:"QToolbar",props:{inset:Boolean},setup(t,{slots:o}){const n=e.computed(()=>"q-toolbar row no-wrap items-center"+(!0===t.inset?" q-toolbar--inset":""));return()=>e.h("div",{class:n.value},Fe(o.default))}}),Cd=e.defineComponent({name:"QToolbarTitle",props:{shrink:Boolean},setup(t,{slots:o}){const n=e.computed(()=>"q-toolbar__title ellipsis"+(!0===t.shrink?" col-shrink":""));return()=>e.h("div",{class:n.value},Fe(o.default))}}),Sd=e.defineComponent({name:"QTree",props:{...at,nodes:{type:Array,required:!0},nodeKey:{type:String,required:!0},labelKey:{type:String,default:"label"},childrenKey:{type:String,default:"children"},color:String,controlColor:String,textColor:String,selectedColor:String,icon:String,tickStrategy:{type:String,default:"none",validator:e=>["none","strict","leaf","leaf-filtered"].includes(e)},ticked:Array,expanded:Array,selected:{},defaultExpandAll:Boolean,accordion:Boolean,filter:String,filterMethod:Function,duration:Number,noConnectors:Boolean,noNodesLabel:String,noResultsLabel:String},emits:["update:expanded","update:ticked","update:selected","lazy-load","after-show","after-hide"],setup(t,{slots:o,emit:n}){const{proxy:a}=e.getCurrentInstance(),{$q:l}=a,i=lt(t,l),r=e.ref({}),s=e.ref(t.ticked||[]),u=e.ref(t.expanded||[]);let c={};e.onBeforeUpdate(()=>{c={}});const d=e.computed(()=>"q-tree"+(!0===t.noConnectors?" q-tree--no-connectors":"")+(!0===i.value?" q-tree--dark":"")+(void 0!==t.color?` text-${t.color}`:"")),v=e.computed(()=>void 0!==t.selected),p=e.computed(()=>t.icon||l.iconSet.tree.icon),m=e.computed(()=>t.controlColor||t.color),f=e.computed(()=>void 0!==t.textColor?` text-${t.textColor}`:""),h=e.computed(()=>{const e=t.selectedColor||t.color;return e?` text-${e}`:""}),g=e.computed(()=>void 0!==t.filterMethod?t.filterMethod:(e,o)=>{const n=o.toLowerCase();return e[t.labelKey]&&e[t.labelKey].toLowerCase().indexOf(n)>-1}),b=e.computed(()=>{const e={},o=(n,a)=>{const l=n.tickStrategy||(a?a.tickStrategy:t.tickStrategy),i=n[t.nodeKey],c=n[t.childrenKey]&&n[t.childrenKey].length>0,d=!0!==c,p=!0!==n.disabled&&!0===v.value&&!1!==n.selectable,m=!0!==n.disabled&&!1!==n.expandable,f="none"!==l,h="strict"===l,b="leaf-filtered"===l,y="leaf"===l||"leaf-filtered"===l;let w=!0!==n.disabled&&!1!==n.tickable;!0===y&&!0===w&&a&&!0!==a.tickable&&(w=!1);let x=n.lazy;!0===x&&void 0!==r.value[i]&&!0===Array.isArray(n[t.childrenKey])&&(x=r.value[i]);const _={key:i,parent:a,isParent:c,isLeaf:d,lazy:x,disabled:n.disabled,link:!0!==n.disabled&&(!0===p||!0===m&&(!0===c||!0===x)),children:[],matchesFilter:!t.filter||g.value(n,t.filter),selected:i===t.selected&&!0===p,selectable:p,expanded:!0===c&&u.value.includes(i),expandable:m,noTick:!0===n.noTick||!0!==h&&x&&"loaded"!==x,tickable:w,tickStrategy:l,hasTicking:f,strictTicking:h,leafFilteredTicking:b,leafTicking:y,ticked:!0===h?s.value.includes(i):!0===d&&s.value.includes(i)};if(e[i]=_,!0===c&&(_.children=n[t.childrenKey].map(e=>o(e,_)),t.filter&&(!0!==_.matchesFilter?_.matchesFilter=_.children.some(e=>e.matchesFilter):!0!==_.noTick&&!0!==_.disabled&&!0===_.tickable&&!0===b&&!0===_.children.every(e=>!0!==e.matchesFilter||!0===e.noTick||!0!==e.tickable)&&(_.tickable=!1)),!0===_.matchesFilter&&(!0!==_.noTick&&!0!==h&&!0===_.children.every(e=>e.noTick)&&(_.noTick=!0),y))){if(_.ticked=!1,_.indeterminate=_.children.some(e=>!0===e.indeterminate),_.tickable=!0===_.tickable&&_.children.some(e=>e.tickable),!0!==_.indeterminate){const e=_.children.reduce((e,t)=>!0===t.ticked?e+1:e,0);e===_.children.length?_.ticked=!0:e>0&&(_.indeterminate=!0)}!0===_.indeterminate&&(_.indeterminateNextState=_.children.every(e=>!0!==e.tickable||!0!==e.ticked))}return _};return t.nodes.forEach(e=>o(e,null)),e});function y(e){const o=[].reduce,n=(a,l)=>{return a||!l?a:!0===Array.isArray(l)?o.call(Object(l),n,a):l[t.nodeKey]===e?l:l[t.childrenKey]?n(null,l[t.childrenKey]):void 0};return n(null,t.nodes)}function w(){return s.value.map(e=>y(e))}function x(){return u.value.map(e=>y(e))}function _(e){return!(!e||!b.value[e])&&b.value[e].expanded}function C(){void 0!==t.expanded?n("update:expanded",[]):u.value=[]}function S(){const e=u.value,o=n=>{n[t.childrenKey]&&n[t.childrenKey].length>0&&!1!==n.expandable&&!0!==n.disabled&&(e.push(n[t.nodeKey]),n[t.childrenKey].forEach(o))};t.nodes.forEach(o),void 0!==t.expanded?n("update:expanded",e):u.value=e}function k(o,a,l=y(o),i=b.value[o]){if(i.lazy&&"loaded"!==i.lazy){if("loading"===i.lazy)return;r.value[o]="loading",!0!==Array.isArray(l[t.childrenKey])&&(l[t.childrenKey]=[]),n("lazy-load",{node:l,key:o,done:n=>{r.value[o]="loaded",l[t.childrenKey]=!0===Array.isArray(n)?n:[],e.nextTick(()=>{const e=b.value[o];e&&!0===e.isParent&&$(o,!0)})},fail:()=>{delete r.value[o],0===l[t.childrenKey].length&&delete l[t.childrenKey]}})}else!0===i.isParent&&!0===i.expandable&&$(o,a)}function $(e,o){let a=u.value;const l=void 0!==t.expanded;if(!0===l&&(a=a.slice()),o){if(t.accordion&&b.value[e]){const o=[];b.value[e].parent?b.value[e].parent.children.forEach(t=>{t.key!==e&&!0===t.expandable&&o.push(t.key)}):t.nodes.forEach(n=>{const a=n[t.nodeKey];a!==e&&o.push(a)}),o.length>0&&(a=a.filter(e=>!1===o.includes(e)))}a=a.concat([e]).filter((e,t,o)=>o.indexOf(e)===t)}else a=a.filter(t=>t!==e);!0===l?n("update:expanded",a):u.value=a}function M(e){return!(!e||!b.value[e])&&b.value[e].ticked}function T(e,o){let a=s.value;const l=void 0!==t.ticked;!0===l&&(a=a.slice()),a=o?a.concat(e).filter((e,t,o)=>o.indexOf(e)===t):a.filter(t=>!1===e.includes(t)),!0===l&&n("update:ticked",a)}function B(e,o,n){const l={tree:a,node:e,key:n,color:t.color,dark:i.value};return Object.defineProperty(l,"expanded",{get:()=>{return o.expanded},set:e=>{e!==o.expanded&&k(n,e)},configurable:!0,enumerable:!0}),Object.defineProperty(l,"ticked",{get:()=>{return o.ticked},set:e=>{e!==o.ticked&&T([n],e)},configurable:!0,enumerable:!0}),l}function O(e){return(t.filter?e.filter(e=>b.value[e[t.nodeKey]].matchesFilter):e).map(e=>E(e))}function V(t){if(void 0!==t.icon)return e.h(et,{class:"q-tree__icon q-mr-sm",name:t.icon,color:t.iconColor});const o=t.img||t.avatar;return o?e.h("img",{class:`q-tree__${t.img?"img":"avatar"} q-mr-sm`,src:o}):void 0}function z(){n("after-show")}function L(){n("after-hide")}function E(n){const a=n[t.nodeKey],l=b.value[a],r=n.header&&o[`header-${n.header}`]||o["default-header"],s=!0===l.isParent?O(n[t.childrenKey]):[],u=s.length>0||l.lazy&&"loaded"!==l.lazy;let d=n.body&&o[`body-${n.body}`]||o["default-body"];const v=void 0!==r||void 0!==d?B(n,l,a):null;return void 0!==d&&(d=e.h("div",{class:"q-tree__node-body relative-position"},[e.h("div",{class:f.value},[d(v)])])),e.h("div",{key:a,class:"q-tree__node relative-position"+` q-tree__node--${!0===u?"parent":"child"}`},[e.h("div",{class:"q-tree__node-header relative-position row no-wrap items-center"+(!0===l.link?" q-tree__node--link q-hoverable q-focusable":"")+(!0===l.selected?" q-tree__node--selected":"")+(!0===l.disabled?" q-tree__node--disabled":""),tabindex:!0===l.link?0:-1,onClick:e=>{A(n,l,e)},onKeypress(e){!0!==U(e)&&(13===e.keyCode?A(n,l,e,!0):32===e.keyCode&&F(n,l,e,!0))}},[e.h("div",{class:"q-focus-helper",tabindex:-1,ref:e=>{c[l.key]=e}}),"loading"===l.lazy?e.h(St,{class:"q-tree__spinner q-mr-xs",color:m.value}):!0===u?e.h(et,{class:"q-tree__arrow q-mr-xs"+(!0===l.expanded?" q-tree__arrow--rotate":""),name:p.value,onClick(e){F(n,l,e)}}):null,!0===l.hasTicking&&!0!==l.noTick?e.h(la,{class:"q-mr-xs",modelValue:!0===l.indeterminate?null:l.ticked,color:m.value,dark:i.value,dense:!0,keepColor:!0,disable:!0!==l.tickable,onKeydown:q,"onUpdate:modelValue":e=>{I(l,e)}}):null,e.h("div",{class:"q-tree__node-header-content col row no-wrap items-center"+(!0===l.selected?h.value:f.value)},[r?r(v):[V(n),e.h("div",n[t.labelKey])]])]),!0===u?e.h(dr,{duration:t.duration,onShow:z,onHide:L},()=>e.withDirectives(e.h("div",{class:"q-tree__node-collapsible"+f.value,key:`${a}__q`},[d,e.h("div",{class:"q-tree__children"+(!0===l.disabled?" q-tree__node--disabled":"")},s)]),[[e.vShow,l.expanded]])):d])}function P(e){const t=c[e];t&&t.focus()}function A(e,o,a,l){!0!==l&&P(o.key),v.value?o.selectable&&n("update:selected",o.key!==t.selected?o.key:null):F(e,o,a,l),"function"===typeof e.handler&&e.handler(e)}function F(e,t,o,n){void 0!==o&&q(o),!0!==n&&P(t.key),k(t.key,!t.expanded,e,t)}function I(e,t){if(!0===e.indeterminate&&(t=e.indeterminateNextState),e.strictTicking)T([e.key],t);else if(e.leafTicking){const o=[],n=e=>{e.isParent?(!0!==t&&!0!==e.noTick&&!0===e.tickable&&o.push(e.key),!0===e.leafTicking&&e.children.forEach(n)):!0===e.noTick||!0!==e.tickable||!0===e.leafFilteredTicking&&!0!==e.matchesFilter||o.push(e.key)};n(e),T(o,t)}}return e.watch(()=>t.ticked,e=>{s.value=e}),e.watch(()=>t.expanded,e=>{u.value=e}),Object.assign(a,{getNodeByKey:y,getTickedNodes:w,getExpandedNodes:x,isExpanded:_,collapseAll:C,expandAll:S,setExpanded:k,isTicked:M,setTicked:T}),!0===t.defaultExpandAll&&S(),()=>{const o=O(t.nodes);return e.h("div",{class:d.value},0===o.length?t.filter?t.noResultsLabel||l.lang.tree.noResults:t.noNodesLabel||l.lang.tree.noNodes:o)}}});function qd(e){return(100*e).toFixed(2)+"%"}const kd={...at,...Ur,label:String,color:String,textColor:String,square:Boolean,flat:Boolean,bordered:Boolean,noThumbnails:Boolean,autoUpload:Boolean,hideUploadBtn:Boolean,disable:Boolean,readonly:Boolean},$d=[...Wr,"start","finish","added","removed"];function Md(t){const o=e.getCurrentInstance(),{props:n,slots:a,emit:l,proxy:i}=o,{$q:r}=i,s=lt(n,r);function u(e,t,o){if(e.__status=t,"idle"===t)return e.__uploaded=0,e.__progress=0,e.__sizeLabel=ye(e.size),void(e.__progressLabel="0.00%");"failed"!==t?(e.__uploaded="uploaded"===t?e.size:o,e.__progress="uploaded"===t?1:Math.min(.9999,e.__uploaded/e.size),e.__progressLabel=qd(e.__progress),i.$forceUpdate()):i.$forceUpdate()}const c={files:e.ref([]),queuedFiles:e.ref([]),uploadedFiles:e.ref([]),uploadedSize:e.ref(0),updateFileStatus:u,isAlive(){return!0!==o.isDeactivated&&!0!==o.isUnmounted}};Object.assign(c,t({props:n,slots:a,emit:l,helpers:c}));const d=e.ref(0),v=e.computed(()=>!0!==n.disable&&!0!==n.readonly);void 0===c.isBusy&&(c.isBusy=e.ref(!1));const p=e.ref(!1),m=e.ref(null),f=e.ref(null);e.provide(ue,N);const{pickFiles:h,addFiles:g,onDragover:b,processFiles:y,getDndNode:w,maxFilesNumber:x,maxTotalSizeNumber:_}=Yr({editable:v,dnd:p,getFileInput:A,addFilesToQueue:F}),S=e.computed(()=>!0===v.value&&!0!==c.isUploading.value&&(!0===n.multiple||0===c.queuedFiles.value.length)&&(void 0===n.maxFiles||c.files.value.length<x.value)&&(void 0===n.maxTotalSize||d.value<_.value)),q=e.computed(()=>!0===v.value&&!0!==c.isBusy.value&&!0!==c.isUploading.value&&c.queuedFiles.value.length>0),k=e.computed(()=>0===d.value?0:c.uploadedSize.value/d.value),$=e.computed(()=>qd(k.value)),M=e.computed(()=>ye(d.value)),T=e.computed(()=>"q-uploader column no-wrap"+(!0===s.value?" q-uploader--dark q-dark":"")+(!0===n.bordered?" q-uploader--bordered":"")+(!0===n.square?" q-uploader--square no-border-radius":"")+(!0===n.flat?" q-uploader--flat no-shadow":"")+(!0===n.disable?" disabled q-uploader--disable":"")),B=e.computed(()=>"q-uploader__header"+(void 0!==n.color?` bg-${n.color}`:"")+(void 0!==n.textColor?` text-${n.textColor}`:""));function O(){!1===n.disable&&(c.abort(),c.uploadedSize.value=0,d.value=0,P(),c.files.value=[],c.queuedFiles.value=[],c.uploadedFiles.value=[])}function V(){!1===n.disable&&L(["uploaded"],()=>{c.uploadedFiles.value=[]})}function z(){L(["idle","failed"],({size:e})=>{d.value-=e,c.queuedFiles.value=[]})}function L(e,t){if(!0===n.disable)return;const o={files:[],size:0},a=c.files.value.filter(t=>{return-1===e.indexOf(t.__status)||(o.size+=t.size,o.files.push(t),void 0!==t._img&&window.URL.revokeObjectURL(t._img.src),!1)});o.files.length>0&&(c.files.value=a,t(o),l("removed",o.files))}function E(e){n.disable||("uploaded"===e.__status?c.uploadedFiles.value=c.uploadedFiles.value.filter(t=>t.name!==e.name):"uploading"===e.__status?e.__abort():d.value-=e.size,c.files.value=c.files.value.filter(t=>{return t.name!==e.name||(void 0!==t._img&&window.URL.revokeObjectURL(t._img.src),!1)}),c.queuedFiles.value=c.queuedFiles.value.filter(t=>t.name!==e.name),l("removed",[e]))}function P(){c.files.value.forEach(e=>{void 0!==e._img&&window.URL.revokeObjectURL(e._img.src)})}function A(){return f.value||m.value.getElementsByClassName("q-uploader__input")[0]}function F(e,t){const o=y(e,t,c.files.value,!0);if(void 0===o)return;const a=o.filter(e=>-1===c.files.value.findIndex(t=>e.name===t.name)),i=A();void 0!==i&&null!==i&&(i.value=""),void 0!==a&&(a.forEach(e=>{if(c.updateFileStatus(e,"idle"),d.value+=e.size,!0!==n.noThumbnails&&e.type.toUpperCase().startsWith("IMAGE")){const t=new Image;t.src=window.URL.createObjectURL(e),e.__img=t}}),c.files.value=c.files.value.concat(a),c.queuedFiles.value=c.queuedFiles.value.concat(a),l("added",a),!0===n.autoUpload&&c.upload())}function I(){!0===q.value&&c.upload()}function R(t,o,n){if(!0===t){const t={type:"a",key:o,icon:r.iconSet.uploader[o],flat:!0,dense:!0};let a=void 0;return"add"===o?a=N:t.onClick=n,e.h(Wt,t,a)}}function N(){return e.h("input",{ref:f,class:"q-uploader__input overflow-hidden absolute-full",tabindex:-1,type:"file",title:"",accept:n.accept,multiple:!0===n.multiple?"multiple":void 0,capture:n.capture,onMousedown:C,onChange:F})}function j(){return void 0!==a.header?a.header(Q.value):[e.h("div",{class:"q-uploader__header-content flex flex-center no-wrap q-gutter-xs"},[R(c.queuedFiles.value.length>0,"removeQueue",z),R(c.uploadedFiles.value.length>0,"removeUploaded",V),!0===c.isUploading.value?e.h(St,{class:"q-uploader__spinner"}):null,e.h("div",{class:"col column justify-center"},[void 0!==n.label?e.h("div",{class:"q-uploader__title"},[n.label]):null,e.h("div",{class:"q-uploader__subtitle"},[M.value+" / "+$.value])]),R(S.value,"add"),R(!1===n.hideUploadBtn&&!0===q.value,"upload",c.upload),R(c.isUploading.value,"clear",c.abort)])]}function D(){return void 0!==a.list?a.list(Q.value):c.files.value.map(t=>e.h("div",{key:t.name,class:"q-uploader__file relative-position"+(!0!==n.noThumbnails&&void 0!==t.__img?" q-uploader__file--img":"")+("failed"===t.__status?" q-uploader__file--failed":"uploaded"===t.__status?" q-uploader__file--uploaded":""),style:!0!==n.noThumbnails&&void 0!==t.__img?{backgroundImage:'url("'+t.__img.src+'")'}:null},[e.h("div",{class:"q-uploader__file-header row flex-center no-wrap"},["failed"===t.__status?e.h(et,{class:"q-uploader__file-status",name:r.iconSet.type.negative,color:"negative"}):null,e.h("div",{class:"q-uploader__file-header-content col"},[e.h("div",{class:"q-uploader__title"},[t.name]),e.h("div",{class:"q-uploader__subtitle row items-center no-wrap"},[t.__sizeLabel+" / "+t.__progressLabel])]),"uploading"===t.__status?e.h(pa,{value:t.__progress,min:0,max:1,indeterminate:0===t.__progress}):e.h(Wt,{round:!0,dense:!0,flat:!0,icon:r.iconSet.uploader["uploaded"===t.__status?"done":"clear"],onClick:()=>{E(t)}})])]))}e.watch(c.isUploading,(e,t)=>{!1===t&&!0===e?l("start"):!0===t&&!1===e&&l("finish")}),e.onBeforeUnmount(()=>{!0===c.isUploading.value&&c.abort(),c.files.value.length>0&&P()});const H={pickFiles:h,addFiles:g,reset:O,removeUploadedFiles:V,removeQueuedFiles:z,removeFile:E,upload:I,abort:c.abort},Q=e.computed(()=>{const t={canAddFiles:S.value,canUpload:q.value,uploadSizeLabel:M.value,uploadProgressLabel:$.value};return Object.keys(c).forEach(o=>{t[o]=!0===e.isRef(c[o])?c[o].value:c[o]}),{...t,...H}});return Object.assign(i,H),()=>{const t=[e.h("div",{class:B.value},j()),e.h("div",{class:"q-uploader__list scroll"},D()),w("uploader")];!0===c.isBusy.value&&t.push(e.h("div",{class:"q-uploader__overlay absolute-full flex flex-center"},[e.h(St)]));const o={ref:m,class:T.value};return!0===S.value&&(o.onDragover=b),e.h("div",o,t)}}var Td=({name:t,props:o,emits:n,injectPlugin:a})=>e.defineComponent({name:t,props:{...kd,...o},emits:[...$d,...n],setup(){return Md(a)}});function Bd(e){return"function"===typeof e?e:()=>e}const Od={url:[Function,String],method:{type:[Function,String],default:"POST"},fieldName:{type:[Function,String],default:e=>e.name},headers:[Function,Array],formFields:[Function,Array],withCredentials:[Function,Boolean],sendRaw:[Function,Boolean],batch:[Function,Boolean],factory:Function},Vd=["factory-failed","uploaded","failed","uploading"];function zd({props:t,emit:o,helpers:n}){const a=e.ref([]),l=e.ref([]),i=e.ref(0),r=e.computed(()=>({url:Bd(t.url),method:Bd(t.method),headers:Bd(t.headers),formFields:Bd(t.formFields),fieldName:Bd(t.fieldName),withCredentials:Bd(t.withCredentials),sendRaw:Bd(t.sendRaw),batch:Bd(t.batch)})),s=e.computed(()=>i.value>0),u=e.computed(()=>l.value.length>0);let c;function d(){a.value.forEach(e=>{e.abort()}),l.value.length>0&&(c=!0)}function v(){const e=n.queuedFiles.value.slice(0);n.queuedFiles.value=[],r.value.batch(e)?p(e):e.forEach(e=>{p([e])})}function p(e){if(i.value++,"function"!==typeof t.factory)return void m(e,{});const a=t.factory(e);if(a)if("function"===typeof a.catch&&"function"===typeof a.then){l.value.push(a);const t=t=>{!0===n.isAlive()&&(l.value=l.value.filter(e=>e!==a),0===l.value.length&&(c=!1),n.queuedFiles.value=n.queuedFiles.value.concat(e),e.forEach(e=>{n.updateFileStatus(e,"failed")}),o("factory-failed",t,e),i.value--)};a.then(o=>{!0===c?t(new Error("Aborted")):!0===n.isAlive()&&(l.value=l.value.filter(e=>e!==a),m(e,o))}).catch(t)}else m(e,a||{});else o("factory-failed",new Error("QUploader: factory() does not return properly"),e),i.value--}function m(e,t){const l=new FormData,s=new XMLHttpRequest,u=(e,o)=>{return void 0!==t[e]?Bd(t[e])(o):r.value[e](o)},c=u("url",e);if(!c)return console.error("q-uploader: invalid or no URL specified"),void i.value--;const d=u("formFields",e);void 0!==d&&d.forEach(e=>{l.append(e.name,e.value)});let v,p=0,m=0,f=0,h=0;s.upload.addEventListener("progress",t=>{if(!0===v)return;const o=Math.min(h,t.loaded);n.uploadedSize.value+=o-f,f=o;let a=f-m;for(let l=p;a>0&&l<e.length;l++){const t=e[l],o=a>t.size;if(!o)return void n.updateFileStatus(t,"uploading",a);a-=t.size,p++,m+=t.size,n.updateFileStatus(t,"uploading",t.size)}},!1),s.onreadystatechange=(()=>{s.readyState<4||(s.status&&s.status<400?(n.uploadedFiles.value=n.uploadedFiles.value.concat(e),e.forEach(e=>{n.updateFileStatus(e,"uploaded")}),o("uploaded",{files:e,xhr:s})):(v=!0,n.uploadedSize.value-=f,n.queuedFiles.value=n.queuedFiles.value.concat(e),e.forEach(e=>{n.updateFileStatus(e,"failed")}),o("failed",{files:e,xhr:s})),i.value--,a.value=a.value.filter(e=>e!==s))}),s.open(u("method",e),c),!0===u("withCredentials",e)&&(s.withCredentials=!0);const g=u("headers",e);void 0!==g&&g.forEach(e=>{s.setRequestHeader(e.name,e.value)});const b=u("sendRaw",e);e.forEach(e=>{n.updateFileStatus(e,"uploading",0),!0!==b&&l.append(u("fieldName",e),e,e.name),e.xhr=s,e.__abort=(()=>{s.abort()}),h+=e.size}),o("uploading",{files:e,xhr:s}),a.value.push(s),!0===b?s.send(new Blob(e)):s.send(l)}return{isUploading:s,isBusy:u,abort:d,upload:v}}var Ld={name:"QUploader",props:Od,emits:Vd,injectPlugin:zd},Ed=Td(Ld),Pd=e.defineComponent({name:"QUploaderAddTrigger",setup(){return e.inject(ue,()=>{console.error("QUploaderAddTrigger needs to be child of QUploader")})}}),Ad=e.defineComponent({name:"QVideo",props:{...ts,src:{type:String,required:!0}},setup(t){const o=os(t),n=e.computed(()=>"q-video"+(void 0!==t.ratio?" q-video--responsive":""));return()=>e.h("div",{class:n.value,style:o.value},[e.h("iframe",{src:t.src,frameborder:"0",allowfullscreen:!0})])}}),Fd=Object.freeze({__proto__:null,QAjaxBar:Le,QAvatar:tt,QBadge:nt,QBanner:it,QBar:rt,QBreadcrumbs:ft,QBreadcrumbsEl:xt,QBtn:Wt,QBtnDropdown:gn,QBtnGroup:Yt,QBtnToggle:_n,QCard:Cn,QCardSection:Sn,QCardActions:qn,QCarousel:Kn,QCarouselSlide:Xn,QCarouselControl:Zn,QChatMessage:Gn,QCheckbox:la,QChip:ra,QCircularProgress:pa,QColor:rl,QDate:gi,QDialog:Ai,QDrawer:Ii,QEditor:ur,QExpansionItem:Cr,QFab:Tr,QFabAction:Vr,QField:Dr,QFile:Xr,QFooter:Zr,QForm:Gr,QFormChildMixin:Jr,QHeader:es,QIcon:et,QImg:rs,QInfiniteScroll:ss,QInnerLoading:us,QInput:_s,QIntersection:$s,QList:Ms,QItem:Ui,QItemSection:Wi,QItemLabel:cr,QKnob:Os,QLayout:Es,QMarkupTable:As,QMenu:hn,QNoSsr:Fs,QOptionGroup:Hs,QPage:Qs,QPageContainer:Us,QPageScroller:Ks,QPageSticky:Xs,QPagination:Zs,QParallax:eu,QPopupEdit:ou,QPopupProxy:nu,QLinearProgress:iu,QPullToRefresh:uu,QRadio:Rs,QRange:du,QRating:vu,QResizeObserver:$a,QResponsive:pu,QScrollArea:hu,QScrollObserver:Ls,QSelect:Lu,QSeparator:mr,QSkeleton:Au,QSlideItem:Iu,QSlideTransition:dr,QSlider:Ca,QSpace:Nu,QSpinner:St,QSpinnerAudio:Du,QSpinnerBall:Qu,QSpinnerBars:Wu,QSpinnerBox:Ku,QSpinnerClock:Zu,QSpinnerComment:Ju,QSpinnerCube:tc,QSpinnerDots:nc,QSpinnerFacebook:lc,QSpinnerGears:rc,QSpinnerGrid:uc,QSpinnerHearts:dc,QSpinnerHourglass:pc,QSpinnerInfinity:fc,QSpinnerIos:gc,QSpinnerOrbit:yc,QSpinnerOval:xc,QSpinnerPie:Cc,QSpinnerPuff:qc,QSpinnerRadio:$c,QSpinnerRings:Tc,QSpinnerTail:Oc,QSplitter:Vc,QStep:Pc,QStepper:Ic,QStepperNavigation:Rc,QTabPanels:Pa,QTabPanel:Aa,QTable:pd,QTh:Nc,QTr:md,QTd:fd,QTabs:Ba,QTab:Ea,QRouteTab:hd,QTime:yd,QTimeline:wd,QTimelineEntry:xd,QToggle:Ns,QToolbar:_d,QToolbarTitle:Cd,QTooltip:Qi,QTree:Sd,QUploader:Ed,QUploaderAddTrigger:Pd,QVideo:Ad,QVirtualScroll:Qc});function Id(e){if(!1===e)return 0;if(!0===e||void 0===e)return 1;const t=parseInt(e,10);return isNaN(t)?0:t}var Rd={name:"close-popup",beforeMount(e,{value:t}){const o={depth:Id(t),handler(t){0!==o.depth&&setTimeout(()=>{const n=fo(e);void 0!==n&&go(n,t,o.depth)})},handlerKey(e){!0===W(e,13)&&o.handler(e)}};e.__qclosepopup=o,e.addEventListener("click",o.handler),e.addEventListener("keyup",o.handlerKey)},updated(e,{value:t,oldValue:o}){t!==o&&(e.__qclosepopup.depth=Id(t))},beforeUnmount(e){const t=e.__qclosepopup;e.removeEventListener("click",t.handler),e.removeEventListener("keyup",t.handlerKey),delete e.__qclosepopup}};let Nd=0,jd=void 0;function Dd(e,t){void 0===jd&&(jd=document.createElement("div"),jd.style.cssText="position: absolute; left: 0; top: 0",document.body.appendChild(jd));const o=e.getBoundingClientRect(),n=jd.getBoundingClientRect(),{marginLeft:a,marginRight:l,marginTop:i,marginBottom:r}=window.getComputedStyle(e),s=parseInt(a,10)+parseInt(l,10),u=parseInt(i,10)+parseInt(r,10);return{left:o.left-n.left,top:o.top-n.top,width:o.right-o.left,height:o.bottom-o.top,widthM:o.right-o.left+(!0===t?0:s),heightM:o.bottom-o.top+(!0===t?0:u),marginH:!0===t?s:0,marginV:!0===t?u:0}}function Hd(e){return{width:e.scrollWidth,height:e.scrollHeight}}const Qd=["Top","Right","Bottom","Left"],Ud=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],Wd=/-block|-inline|block-|inline-/,Yd=/(-block|-inline|block-|inline-).*:/;function Kd(e,t){const o=window.getComputedStyle(e),n={};for(let a=0;a<t.length;a++){const e=t[a];if(""===o[e])if("cssText"===e){const t=o.length;let a="";for(let e=0;e<t;e++)!0!==Wd.test(o[e])&&(a+=o[e]+": "+o[o[e]]+"; ");n[e]=a}else if(["borderWidth","borderStyle","borderColor"].indexOf(e)>-1){const t=e.replace("border","");let a="";for(let e=0;e<Qd.length;e++){const n="border"+Qd[e]+t;a+=o[n]+" "}n[e]=a}else if("borderRadius"===e){let t="",a="";for(let e=0;e<Ud.length;e++){const n=o[Ud[e]].split(" ");t+=n[0]+" ",a+=(void 0===n[1]?n[0]:n[1])+" "}n[e]=t+"/ "+a}else n[e]=o[e];else n[e]="cssText"===e?o[e].split(";").filter(e=>!0!==Yd.test(e)).join(";"):o[e]}return n}const Xd=["absolute","fixed","relative","sticky"];function Zd(e){let t=e,o=0;while(null!==t&&t!==document){const{position:n,zIndex:a}=window.getComputedStyle(t),l=Number(a);l>o&&(t===e||!0===Xd.includes(n))&&(o=l),t=t.parentNode}return o}function Gd(e){return{from:e.from,to:void 0!==e.to?e.to:e.from}}function Jd(e){return"number"===typeof e?e={duration:e}:"function"===typeof e&&(e={onEnd:e}),{...e,waitFor:void 0===e.waitFor?0:e.waitFor,duration:!0===isNaN(e.duration)?300:parseInt(e.duration,10),easing:"string"===typeof e.easing&&e.easing.length>0?e.easing:"ease-in-out",delay:!0===isNaN(e.delay)?0:parseInt(e.delay,10),fill:"string"===typeof e.fill&&e.fill.length>0?e.fill:"none",resize:!0===e.resize,useCSS:!0===e.useCSS,hideFromClone:!0===e.hideFromClone,keepToClone:!0===e.keepToClone,tween:!0===e.tween,tweenFromOpacity:!0===isNaN(e.tweenFromOpacity)?.6:parseFloat(e.tweenFromOpacity),tweenToOpacity:!0===isNaN(e.tweenToOpacity)?.5:parseFloat(e.tweenToOpacity)}}function ev(e){const t=typeof e;return"function"===t?e():"string"===t?document.querySelector(e):e}function tv(e){return e&&e.ownerDocument===document&&null!==e.parentNode}function ov(e){let t=()=>!1,o=!1,n=!0;const a=Gd(e),l=Jd(e),i=ev(a.from);if(!0!==tv(i))return t;"function"===typeof i.qMorphCancel&&i.qMorphCancel();let r=void 0,s=void 0,u=void 0,c=void 0;const d=i.parentNode,v=i.nextElementSibling,p=Dd(i,l.resize),{width:m,height:f}=Hd(d),{borderWidth:h,borderStyle:g,borderColor:b,borderRadius:y,backgroundColor:w,transform:x,position:_,cssText:C}=Kd(i,["borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","transform","position","cssText"]),S=i.classList.toString(),q=i.style.cssText,k=i.cloneNode(!0),$=!0===l.tween?i.cloneNode(!0):void 0;void 0!==$&&($.className=$.classList.toString().split(" ").filter(e=>!1===/^bg-/.test(e)).join(" ")),!0===l.hideFromClone&&k.classList.add("q-morph--internal"),k.setAttribute("aria-hidden","true"),k.style.transition="none",k.style.animation="none",k.style.pointerEvents="none",d.insertBefore(k,v),i.qMorphCancel=(()=>{o=!0,k.remove(),void 0!==$&&$.remove(),!0===l.hideFromClone&&k.classList.remove("q-morph--internal"),i.qMorphCancel=void 0});const M=()=>{const e=ev(a.to);if(!0===o||!0!==tv(e))return void("function"===typeof i.qMorphCancel&&i.qMorphCancel());i!==e&&"function"===typeof e.qMorphCancel&&e.qMorphCancel(),!0!==l.keepToClone&&e.classList.add("q-morph--internal"),k.classList.add("q-morph--internal");const{width:v,height:M}=Hd(d),{width:T,height:B}=Hd(e.parentNode);!0!==l.hideFromClone&&k.classList.remove("q-morph--internal"),e.qMorphCancel=(()=>{o=!0,k.remove(),void 0!==$&&$.remove(),!0===l.hideFromClone&&k.classList.remove("q-morph--internal"),!0!==l.keepToClone&&e.classList.remove("q-morph--internal"),i.qMorphCancel=void 0,e.qMorphCancel=void 0});const O=()=>{if(!0===o)return void("function"===typeof e.qMorphCancel&&e.qMorphCancel());!0!==l.hideFromClone&&(k.classList.add("q-morph--internal"),k.innerHTML="",k.style.left=0,k.style.right="unset",k.style.top=0,k.style.bottom="unset",k.style.transform="none"),!0!==l.keepToClone&&e.classList.remove("q-morph--internal");const a=e.parentNode,{width:O,height:V}=Hd(a),z=e.cloneNode(l.keepToClone);z.setAttribute("aria-hidden","true"),!0!==l.keepToClone&&(z.style.left=0,z.style.right="unset",z.style.top=0,z.style.bottom="unset",z.style.transform="none",z.style.pointerEvents="none"),z.classList.add("q-morph--internal");const L=e===i&&d===a?k:e.nextElementSibling;a.insertBefore(z,L);const{borderWidth:E,borderStyle:P,borderColor:A,borderRadius:F,backgroundColor:I,transform:R,position:N,cssText:j}=Kd(e,["borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","transform","position","cssText"]),D=e.classList.toString(),H=e.style.cssText;e.style.cssText=j,e.style.transform="none",e.style.animation="none",e.style.transition="none",e.className=D.split(" ").filter(e=>!1===/^bg-/.test(e)).join(" ");const Q=Dd(e,l.resize),U=p.left-Q.left,W=p.top-Q.top,Y=p.width/(Q.width>0?Q.width:10),K=p.height/(Q.height>0?Q.height:100),X=m-v,Z=f-M,G=O-T,J=V-B,ee=Math.max(p.widthM,X),te=Math.max(p.heightM,Z),oe=Math.max(Q.widthM,G),ne=Math.max(Q.heightM,J),ae=i===e&&!1===["absolute","fixed"].includes(N)&&!1===["absolute","fixed"].includes(_);let le="fixed"===N,ie=a;while(!0!==le&&ie!==document)le="fixed"===window.getComputedStyle(ie).position,ie=ie.parentNode;if(!0!==l.hideFromClone&&(k.style.display="block",k.style.flex="0 0 auto",k.style.opacity=0,k.style.minWidth="unset",k.style.maxWidth="unset",k.style.minHeight="unset",k.style.maxHeight="unset",k.classList.remove("q-morph--internal")),!0!==l.keepToClone&&(z.style.display="block",z.style.flex="0 0 auto",z.style.opacity=0,z.style.minWidth="unset",z.style.maxWidth="unset",z.style.minHeight="unset",z.style.maxHeight="unset"),z.classList.remove("q-morph--internal"),"string"===typeof l.classes&&(e.className+=" "+l.classes),"string"===typeof l.style)e.style.cssText+=" "+l.style;else if(l.style===Object(l.style))for(const t in l.style)e.style[t]=l.style[t];const re=Zd(k),se=Zd(e),ue=!0===le?document.documentElement:{scrollLeft:0,scrollTop:0};e.style.position=!0===le?"fixed":"absolute",e.style.left=`${Q.left-ue.scrollLeft}px`,e.style.right="unset",e.style.top=`${Q.top-ue.scrollTop}px`,e.style.margin=0,!0===l.resize&&(e.style.minWidth="unset",e.style.maxWidth="unset",e.style.minHeight="unset",e.style.maxHeight="unset",e.style.overflow="hidden",e.style.overflowX="hidden",e.style.overflowY="hidden"),document.body.appendChild(e),void 0!==$&&($.style.cssText=C,$.style.transform="none",$.style.animation="none",$.style.transition="none",$.style.position=e.style.position,$.style.left=`${p.left-ue.scrollLeft}px`,$.style.right="unset",$.style.top=`${p.top-ue.scrollTop}px`,$.style.margin=0,$.style.pointerEvents="none",!0===l.resize&&($.style.minWidth="unset",$.style.maxWidth="unset",$.style.minHeight="unset",$.style.maxHeight="unset",$.style.overflow="hidden",$.style.overflowX="hidden",$.style.overflowY="hidden"),document.body.appendChild($));const ce=o=>{i===e&&!0!==n?(e.style.cssText=q,e.className=S):(e.style.cssText=H,e.className=D),z.parentNode===a&&a.insertBefore(e,z),k.remove(),z.remove(),void 0!==$&&$.remove(),t=(()=>!1),i.qMorphCancel=void 0,e.qMorphCancel=void 0,"function"===typeof l.onEnd&&l.onEnd(!0===n?"to":"from",!0===o)};if(!0!==l.useCSS&&"function"===typeof e.animate){const a=!0===l.resize?{transform:`translate(${U}px, ${W}px)`,width:`${ee}px`,height:`${te}px`}:{transform:`translate(${U}px, ${W}px) scale(${Y}, ${K})`},d=!0===l.resize?{width:`${oe}px`,height:`${ne}px`}:{},v=!0===l.resize?{width:`${ee}px`,height:`${te}px`}:{},m=!0===l.resize?{transform:`translate(${-1*U}px, ${-1*W}px)`,width:`${oe}px`,height:`${ne}px`}:{transform:`translate(${-1*U}px, ${-1*W}px) scale(${1/Y}, ${1/K})`},f=void 0!==$?{opacity:l.tweenToOpacity}:{backgroundColor:w},_=void 0!==$?{opacity:1}:{backgroundColor:I};c=e.animate([{margin:0,borderWidth:h,borderStyle:g,borderColor:b,borderRadius:y,zIndex:re,transformOrigin:"0 0",...a,...f},{margin:0,borderWidth:E,borderStyle:P,borderColor:A,borderRadius:F,zIndex:se,transformOrigin:"0 0",transform:R,...d,..._}],{duration:l.duration,easing:l.easing,fill:l.fill,delay:l.delay}),s=void 0===$?void 0:$.animate([{opacity:l.tweenFromOpacity,margin:0,borderWidth:h,borderStyle:g,borderColor:b,borderRadius:y,zIndex:re,transformOrigin:"0 0",transform:x,...v},{opacity:0,margin:0,borderWidth:E,borderStyle:P,borderColor:A,borderRadius:F,zIndex:se,transformOrigin:"0 0",...m}],{duration:l.duration,easing:l.easing,fill:l.fill,delay:l.delay}),r=!0===l.hideFromClone||!0===ae?void 0:k.animate([{margin:`${Z<0?Z/2:0}px ${X<0?X/2:0}px`,width:`${ee+p.marginH}px`,height:`${te+p.marginV}px`},{margin:0,width:0,height:0}],{duration:l.duration,easing:l.easing,fill:l.fill,delay:l.delay}),u=!0===l.keepToClone?void 0:z.animate([!0===ae?{margin:`${Z<0?Z/2:0}px ${X<0?X/2:0}px`,width:`${ee+p.marginH}px`,height:`${te+p.marginV}px`}:{margin:0,width:0,height:0},{margin:`${J<0?J/2:0}px ${G<0?G/2:0}px`,width:`${oe+Q.marginH}px`,height:`${ne+Q.marginV}px`}],{duration:l.duration,easing:l.easing,fill:l.fill,delay:l.delay});const C=e=>{void 0!==r&&r.cancel(),void 0!==s&&s.cancel(),void 0!==u&&u.cancel(),c.cancel(),c.removeEventListener("finish",C),c.removeEventListener("cancel",C),ce(e),r=void 0,s=void 0,u=void 0,c=void 0};i.qMorphCancel=(()=>{i.qMorphCancel=void 0,o=!0,C()}),e.qMorphCancel=(()=>{e.qMorphCancel=void 0,o=!0,C()}),c.addEventListener("finish",C),c.addEventListener("cancel",C),t=(e=>{return!0!==o&&void 0!==c&&(!0===e?(C(!0),!0):(n=!0!==n,void 0!==r&&r.reverse(),void 0!==s&&s.reverse(),void 0!==u&&u.reverse(),c.reverse(),!0))})}else{const a=`q-morph-anim-${++Nd}`,r=document.createElement("style"),s=!0===l.resize?`\n            transform: translate(${U}px, ${W}px);\n            width: ${ee}px;\n            height: ${te}px;\n          `:`transform: translate(${U}px, ${W}px) scale(${Y}, ${K});`,u=!0===l.resize?`\n            width: ${oe}px;\n            height: ${ne}px;\n          `:"",c=!0===l.resize?`\n            width: ${ee}px;\n            height: ${te}px;\n          `:"",d=!0===l.resize?`\n            transform: translate(${-1*U}px, ${-1*W}px);\n            width: ${oe}px;\n            height: ${ne}px;\n          `:`transform: translate(${-1*U}px, ${-1*W}px) scale(${1/Y}, ${1/K});`,v=void 0!==$?`opacity: ${l.tweenToOpacity};`:`background-color: ${w};`,m=void 0!==$?"opacity: 1;":`background-color: ${I};`,f=void 0===$?"":`\n            @keyframes ${a}-from-tween {\n              0% {\n                opacity: ${l.tweenFromOpacity};\n                margin: 0;\n                border-width: ${h};\n                border-style: ${g};\n                border-color: ${b};\n                border-radius: ${y};\n                z-index: ${re};\n                transform-origin: 0 0;\n                transform: ${x};\n                ${c}\n              }\n\n              100% {\n                opacity: 0;\n                margin: 0;\n                border-width: ${E};\n                border-style: ${P};\n                border-color: ${A};\n                border-radius: ${F};\n                z-index: ${se};\n                transform-origin: 0 0;\n                ${d}\n              }\n            }\n          `,_=!0===l.hideFromClone||!0===ae?"":`\n            @keyframes ${a}-from {\n              0% {\n                margin: ${Z<0?Z/2:0}px ${X<0?X/2:0}px;\n                width: ${ee+p.marginH}px;\n                height: ${te+p.marginV}px;\n              }\n\n              100% {\n                margin: 0;\n                width: 0;\n                height: 0;\n              }\n            }\n          `,C=!0===ae?`\n            margin: ${Z<0?Z/2:0}px ${X<0?X/2:0}px;\n            width: ${ee+p.marginH}px;\n            height: ${te+p.marginV}px;\n          `:"\n            margin: 0;\n            width: 0;\n            height: 0;\n          ",S=!0===l.keepToClone?"":`\n            @keyframes ${a}-to {\n              0% {\n                ${C}\n              }\n\n              100% {\n                margin: ${J<0?J/2:0}px ${G<0?G/2:0}px;\n                width: ${oe+Q.marginH}px;\n                height: ${ne+Q.marginV}px;\n              }\n            }\n          `;r.innerHTML=`\n          @keyframes ${a} {\n            0% {\n              margin: 0;\n              border-width: ${h};\n              border-style: ${g};\n              border-color: ${b};\n              border-radius: ${y};\n              background-color: ${w};\n              z-index: ${re};\n              transform-origin: 0 0;\n              ${s}\n              ${v}\n            }\n\n            100% {\n              margin: 0;\n              border-width: ${E};\n              border-style: ${P};\n              border-color: ${A};\n              border-radius: ${F};\n              background-color: ${I};\n              z-index: ${se};\n              transform-origin: 0 0;\n              transform: ${R};\n              ${u}\n              ${m}\n            }\n          }\n\n          ${_}\n\n          ${f}\n\n          ${S}\n        `,document.head.appendChild(r);let q="normal";k.style.animation=`${l.duration}ms ${l.easing} ${l.delay}ms ${q} ${l.fill} ${a}-from`,void 0!==$&&($.style.animation=`${l.duration}ms ${l.easing} ${l.delay}ms ${q} ${l.fill} ${a}-from-tween`),z.style.animation=`${l.duration}ms ${l.easing} ${l.delay}ms ${q} ${l.fill} ${a}-to`,e.style.animation=`${l.duration}ms ${l.easing} ${l.delay}ms ${q} ${l.fill} ${a}`;const M=t=>{t===Object(t)&&t.animationName!==a||(e.removeEventListener("animationend",M),e.removeEventListener("animationcancel",M),ce(),r.remove())};i.qMorphCancel=(()=>{i.qMorphCancel=void 0,o=!0,M()}),e.qMorphCancel=(()=>{e.qMorphCancel=void 0,o=!0,M()}),e.addEventListener("animationend",M),e.addEventListener("animationcancel",M),t=(t=>{return!!(!0!==o&&e&&k&&z)&&(!0===t?(M(),!0):(n=!0!==n,q="normal"===q?"reverse":"normal",k.style.animationDirection=q,$.style.animationDirection=q,z.style.animationDirection=q,e.style.animationDirection=q,!0))})}};if(l.waitFor>0||"transitionend"===l.waitFor||l.waitFor===Object(l.waitFor)&&"function"===typeof l.waitFor.then){const t=l.waitFor>0?new Promise(e=>setTimeout(e,l.waitFor)):"transitionend"===l.waitFor?new Promise(t=>{const o=setTimeout(()=>{n()},400),n=a=>{clearTimeout(o),e&&(e.removeEventListener("transitionend",n),e.removeEventListener("transitioncancel",n)),t()};e.addEventListener("transitionend",n),e.addEventListener("transitioncancel",n)}):l.waitFor;t.then(O).catch(()=>{"function"===typeof e.qMorphCancel&&e.qMorphCancel()})}else O()};return"function"===typeof e.onToggle&&e.onToggle(),requestAnimationFrame(M),e=>t(e)}const nv={},av=["duration","delay","easing","fill","classes","style","duration","resize","useCSS","hideFromClone","keepToClone","tween","tweenFromOpacity","tweenToOpacity","waitFor","onEnd"],lv=["resize","useCSS","hideFromClone","keepToClone","tween"];function iv(e,t){e.clsAction!==t&&(e.clsAction=t,e.el.classList[t]("q-morph--invisible"))}function rv(e){if(!0===e.animating||e.queue.length<2)return;const[t,o]=e.queue;e.animating=!0,t.animating=!0,o.animating=!0,iv(t,"remove"),iv(o,"remove");const n=ov({from:t.el,to:o.el,onToggle(){iv(t,"add"),iv(o,"remove")},...o.opts,onEnd(n,a){void 0!==o.opts.onEnd&&o.opts.onEnd(n,a),!0!==a&&(t.animating=!1,o.animating=!1,e.animating=!1,e.cancel=void 0,e.queue.shift(),rv(e))}});e.cancel=(()=>{n(!0),e.cancel=void 0})}function sv(e,t){const o=t.opts;lv.forEach(t=>{o[t]=!0===e[t]})}function uv(e,t){const o="string"===typeof e&&e.length>0?e.split(":"):[];t.name=o[0],t.group=o[1],Object.assign(t.opts,{duration:!0===isNaN(o[2])?300:parseFloat(o[2]),waitFor:o[3]})}function cv(e,t){void 0!==e.group&&(t.group=e.group),void 0!==e.name&&(t.name=e.name);const o=t.opts;av.forEach(t=>{void 0!==e[t]&&(o[t]=e[t])})}function dv(e,t){if(t.name!==e)!1===t.animating&&iv(t,"add");else{const o=nv[t.group];void 0===o?(nv[t.group]={name:t.group,model:e,queue:[t],animating:!1},iv(t,"remove")):o.model!==e&&(o.model=e,o.queue.push(t),!1===o.animating&&2===o.queue.length&&rv(o))}}function vv(e,t){let o;Object(t)===t?(o=""+t.model,cv(t,e),sv(t,e)):o=""+t,o!==e.model?(e.model=o,dv(o,e)):!1===e.animating&&void 0!==e.clsAction&&e.el.classList[e.clsAction]("q-morph--invisible")}var pv={name:"morph",mounted(e,t){const o={el:e,animating:!1,opts:{}};sv(t.modifiers,o),uv(t.arg,o),vv(o,t.value),e.__qmorph=o},updated(e,t){vv(e.__qmorph,t.value)},beforeUnmount(e){const t=e.__qmorph,o=nv[t.group];if(void 0!==o){const e=o.queue.indexOf(t);-1!==e&&(o.queue=o.queue.filter(e=>e!==t),0===o.queue.length&&(void 0!==o.cancel&&o.cancel(),delete nv[t.group]))}"add"===t.clsAction&&e.classList.remove("q-morph--invisible"),delete e.__qmorph}};const mv={childList:!0,subtree:!0,attributes:!0,characterData:!0,attributeOldValue:!0,characterDataOldValue:!0};function fv(e,t,o){t.handler=o,void 0!==t.observer&&t.observer.disconnect(),t.observer=new MutationObserver(o=>{if("function"===typeof t.handler){const n=t.handler(o);!1!==n&&!0!==t.once||hv(e)}}),t.observer.observe(e,t.opts)}function hv(e){const t=e.__qmutation;void 0!==t&&(void 0!==t.observer&&t.observer.disconnect(),delete e.__qmutation)}var gv={name:"mutation",mounted(e,{modifiers:{once:t,...o},value:n}){const a={once:t,opts:0===Object.keys(o).length?mv:o};fv(e,a,n),e.__qmutation=a},updated(e,{oldValue:t,value:o}){const n=e.__qmutation;void 0!==n&&t!==o&&fv(e,n,o)},beforeUnmount:hv};const{passive:bv}=p;function yv(e,{value:t,oldValue:o}){"function"===typeof t?(e.handler=t,"function"!==typeof o&&(e.scrollTarget.addEventListener("scroll",e.scroll,bv),e.scroll())):e.scrollTarget.removeEventListener("scroll",e.scroll,bv)}var wv={name:"scroll-fire",mounted(e,t){const o={scrollTarget:qo(e),scroll:B(()=>{let t,n;o.scrollTarget===window?(n=e.getBoundingClientRect().bottom,t=window.innerHeight):(n=qt(e).top+$t(e),t=qt(o.scrollTarget).top+$t(o.scrollTarget)),n>0&&n<t&&(o.scrollTarget.removeEventListener("scroll",o.scroll,bv),o.handler(e))},25)};yv(o,t),e.__qscrollfire=o},updated(e,t){t.value!==t.oldValue&&yv(e.__qscrollfire,t)},beforeUnmount(e){const t=e.__qscrollfire;t.scrollTarget.removeEventListener("scroll",t.scroll,bv),delete e.__qscrollfire}};function xv(e,{value:t,oldValue:o}){"function"===typeof t?(e.handler=t,"function"!==typeof o&&e.scrollTarget.addEventListener("scroll",e.scroll,p.passive)):e.scrollTarget.removeEventListener("scroll",e.scroll,p.passive)}var _v={name:"scroll",mounted(e,t){const o={scrollTarget:qo(e),scroll(){o.handler(Mo(o.scrollTarget),To(o.scrollTarget))}};xv(o,t),e.__qscroll=o},updated(e,t){void 0!==e.__qscroll&&t.oldValue!==t.value&&xv(e.__qscroll,t)},beforeUnmount(e){const t=e.__qscroll;t.scrollTarget.removeEventListener("scroll",t.scroll,p.passive),delete e.__qscroll}},Cv={name:"touch-hold",beforeMount(e,t){const{modifiers:o}=t;if(!0!==o.mouse&&!0!==c.has.touch)return;const n={handler:t.value,noop:m,mouseStart(e){"function"===typeof n.handler&&!0===f(e)&&($(n,"temp",[[document,"mousemove","move","passiveCapture"],[document,"click","end","notPassiveCapture"]]),n.start(e,!0))},touchStart(e){if(void 0!==e.target&&"function"===typeof n.handler){const t=e.target;$(n,"temp",[[t,"touchmove","move","passiveCapture"],[t,"touchcancel","end","notPassiveCapture"],[t,"touchend","end","notPassiveCapture"]]),n.start(e)}},start(e,t){n.origin=b(e);const o=Date.now();!0===c.is.mobile&&(document.body.classList.add("non-selectable"),Kt(),n.styleCleanup=(e=>{n.styleCleanup=void 0;const t=()=>{document.body.classList.remove("non-selectable")};!0===e?(Kt(),setTimeout(t,10)):t()})),n.triggered=!1,n.sensitivity=!0===t?n.mouseSensitivity:n.touchSensitivity,n.timer=setTimeout(()=>{Kt(),n.triggered=!0,n.handler({evt:e,touch:!0!==t,mouse:!0===t,position:n.origin,duration:Date.now()-o})},n.duration)},move(e){const{top:t,left:o}=b(e);(Math.abs(o-n.origin.left)>=n.sensitivity||Math.abs(t-n.origin.top)>=n.sensitivity)&&clearTimeout(n.timer)},end(e){M(n,"temp"),void 0!==n.styleCleanup&&n.styleCleanup(n.triggered),!0===n.triggered?void 0!==e&&q(e):clearTimeout(n.timer)}},a=[600,5,7];"string"===typeof t.arg&&t.arg.length>0&&t.arg.split(":").forEach((e,t)=>{const o=parseInt(e,10);o&&(a[t]=o)}),[n.duration,n.touchSensitivity,n.mouseSensitivity]=a,e.__qtouchhold=n,!0===o.mouse&&$(n,"main",[[e,"mousedown","mouseStart",`passive${!0===o.mouseCapture?"Capture":""}`]]),!0===c.has.touch&&$(n,"main",[[e,"touchstart","touchStart",`passive${!0===o.capture?"Capture":""}`],[e,"touchend","noop","notPassiveCapture"]])},updated(e,t){const o=e.__qtouchhold;void 0!==o&&t.oldValue!==t.value&&("function"!==typeof t.value&&o.end(),o.handler=t.value)},beforeUnmount(e){const t=e.__qtouchhold;void 0!==t&&(M(t,"main"),M(t,"temp"),clearTimeout(t.timer),void 0!==t.styleCleanup&&t.styleCleanup(),delete e.__qtouchhold)}};const Sv={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},qv=new RegExp(`^([\\d+]+|${Object.keys(Sv).join("|")})$`,"i");function kv(e,t){const{top:o,left:n}=b(e);return Math.abs(n-t.left)>=7||Math.abs(o-t.top)>=7}var $v={name:"touch-repeat",beforeMount(e,{modifiers:t,value:o,arg:n}){const a=Object.keys(t).reduce((e,t)=>{if(!0===qv.test(t)){const o=isNaN(parseInt(t,10))?Sv[t.toLowerCase()]:parseInt(t,10);o>=0&&e.push(o)}return e},[]);if(!0!==t.mouse&&!0!==c.has.touch&&0===a.length)return;const l="string"===typeof n&&n.length>0?n.split(":").map(e=>parseInt(e,10)):[0,600,300],i=l.length-1,r={keyboard:a,handler:o,noop:m,mouseStart(e){void 0===r.event&&"function"===typeof r.handler&&!0===f(e)&&($(r,"temp",[[document,"mousemove","move","passiveCapture"],[document,"click","end","notPassiveCapture"]]),r.start(e,!0))},keyboardStart(t){if("function"===typeof r.handler&&!0===W(t,a)){if((0===l[0]||void 0!==r.event)&&(q(t),e.focus(),void 0!==r.event))return;$(r,"temp",[[document,"keyup","end","notPassiveCapture"],[document,"click","end","notPassiveCapture"]]),r.start(t,!1,!0)}},touchStart(e){if(void 0!==e.target&&"function"===typeof r.handler){const t=e.target;$(r,"temp",[[t,"touchmove","move","passiveCapture"],[t,"touchcancel","end","notPassiveCapture"],[t,"touchend","end","notPassiveCapture"]]),r.start(e)}},start(e,t,o){function n(e){r.styleCleanup=void 0,document.documentElement.style.cursor="";const t=()=>{document.body.classList.remove("non-selectable")};!0===e?(Kt(),setTimeout(t,10)):t()}!0!==o&&(r.origin=b(e)),!0===c.is.mobile&&(document.body.classList.add("non-selectable"),Kt(),r.styleCleanup=n),r.event={touch:!0!==t&&!0!==o,mouse:!0===t,keyboard:!0===o,startTime:Date.now(),repeatCount:0};const a=()=>{if(void 0===r.event)return;0===r.event.repeatCount&&(r.event.evt=e,!0===o?r.event.keyCode=e.keyCode:r.event.position=b(e),!0!==c.is.mobile&&(document.documentElement.style.cursor="pointer",document.body.classList.add("non-selectable"),Kt(),r.styleCleanup=n)),r.event.duration=Date.now()-r.event.startTime,r.event.repeatCount+=1,r.handler(r.event);const t=i<r.event.repeatCount?i:r.event.repeatCount;r.timer=setTimeout(a,l[t])};0===l[0]?a():r.timer=setTimeout(a,l[0])},move(e){void 0!==r.event&&!0===kv(e,r.origin)&&clearTimeout(r.timer)},end(e){void 0!==r.event&&(void 0!==r.styleCleanup&&r.styleCleanup(!0),void 0!==e&&r.event.repeatCount>0&&q(e),M(r,"temp"),clearTimeout(r.timer),r.event=void 0)}};e.__qtouchrepeat=r,!0===t.mouse&&$(r,"main",[[e,"mousedown","mouseStart",`passive${!0===t.mouseCapture?"Capture":""}`]]),!0===c.has.touch&&$(r,"main",[[e,"touchstart","touchStart",`passive${!0===t.capture?"Capture":""}`],[e,"touchend","noop","notPassiveCapture"]]),a.length>0&&$(r,"main",[[e,"keydown","keyboardStart",`notPassive${!0===t.keyCapture?"Capture":""}`]])},updated(e,{oldValue:t,value:o}){const n=e.__qtouchrepeat;void 0!==n&&t!==o&&("function"!==typeof o&&n.end(),n.handler=o)},beforeUnmount(e){const t=e.__qtouchrepeat;void 0!==t&&(clearTimeout(t.timer),M(t,"main"),M(t,"temp"),void 0!==t.styleCleanup&&t.styleCleanup(),delete e.__qtouchrepeat)}},Mv=Object.freeze({__proto__:null,ClosePopup:Rd,Intersection:ks,Morph:pv,Mutation:gv,Ripple:Ft,ScrollFire:wv,Scroll:_v,TouchHold:Cv,TouchPan:ha,TouchRepeat:$v,TouchSwipe:On});function Tv(e,t=document.body){if("string"!==typeof e)throw new TypeError("Expected a string as propName");if(!(t instanceof Element))throw new TypeError("Expected a DOM element");return getComputedStyle(t).getPropertyValue(`--q-${e}`).trim()||null}let Bv;function Ov(){return c.is.winphone?"msapplication-navbutton-color":c.is.safari?"apple-mobile-web-app-status-bar-style":"theme-color"}function Vv(e){const t=document.getElementsByTagName("META");for(const o in t)if(t[o].name===e)return t[o]}function zv(e){void 0===Bv&&(Bv=Ov());let t=Vv(Bv);const o=void 0===t;o&&(t=document.createElement("meta"),t.setAttribute("name",Bv)),t.setAttribute("content",e),o&&document.head.appendChild(t)}var Lv={set:!0!==c.is.mobile||!0!==c.is.nativeMobile&&!0!==c.is.winphone&&!0!==c.is.safari&&!0!==c.is.webkit&&!0!==c.is.vivaldi?m:e=>{const t=e||Tv("primary");!0===c.is.nativeMobile&&window.StatusBar?window.StatusBar.backgroundColorByHexString(t):zv(t)},install({$q:e}){e.addressbarColor=this,e.config.addressbarColor&&this.set(e.config.addressbarColor)}};const Ev={};function Pv(){return document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement}function Av(e,t){try{const o=e[t]();return void 0===o?Promise.resolve():o}catch(e){return Promise.reject(e)}}const Fv=v({isActive:!1,activeEl:null},{isCapable:!1,request(e){if(!0===Fv.isCapable&&!1===Fv.isActive){const t=e||document.documentElement;return Av(t,Ev.request)}return Fv.__getErr()},exit(){return!0===Fv.isCapable&&!0===Fv.isActive?Av(document,Ev.exit):Fv.__getErr()},toggle(e){return!0===Fv.isActive?Fv.exit():Fv.request(e)},install({$q:e}){e.fullscreen=this}});{function Iv(){Ev.request=["requestFullscreen","msRequestFullscreen","mozRequestFullScreen","webkitRequestFullscreen"].find(e=>void 0!==document.documentElement[e]),Fv.isCapable=void 0!==Ev.request,!1!==Fv.isCapable?(Fv.__getErr=(()=>Promise.resolve()),Ev.exit=["exitFullscreen","msExitFullscreen","mozCancelFullScreen","webkitExitFullscreen"].find(e=>document[e]),Fv.isActive=!!Pv(),["onfullscreenchange","onmsfullscreenchange","onwebkitfullscreenchange"].forEach(e=>{document[e]=(()=>{Fv.isActive=!1===Fv.isActive,!1===Fv.isActive?(Fv.activeEl=null,po(document.body)):(Fv.activeEl=Pv(),po(Fv.activeEl===document.documentElement?document.body:Fv.activeEl))})})):Fv.__getErr=(()=>Promise.reject("Not capable"))}Iv()}const Rv=v({appVisible:!0},{install({$q:e}){Object.defineProperty(e,"appVisible",{get:()=>this.appVisible})}});{let e,t;if("undefined"!==typeof document.hidden?(e="hidden",t="visibilitychange"):"undefined"!==typeof document.msHidden?(e="msHidden",t="msvisibilitychange"):"undefined"!==typeof document.webkitHidden&&(e="webkitHidden",t="webkitvisibilitychange"),t&&"undefined"!==typeof document[e]){const o=()=>{Rv.appVisible=!document[e]};document.addEventListener(t,o,!1)}}var Nv=e.defineComponent({name:"BottomSheetPlugin",props:{...at,title:String,message:String,actions:Array,grid:Boolean,cardClass:[String,Array,Object],cardStyle:[String,Array,Object]},emits:["ok","hide"],setup(t,{emit:o}){const{proxy:n}=e.getCurrentInstance(),a=lt(t,n.$q),l=e.ref(null);function i(){l.value.show()}function r(){l.value.hide()}function s(e){o("ok",e),r()}function u(){o("hide")}function c(){return t.actions.map(t=>{const o=t.avatar||t.img;return void 0===t.label?e.h(mr,{class:"col-all",dark:a.value}):e.h("div",{class:["q-bottom-sheet__item q-hoverable q-focusable cursor-pointer relative-position",t.class],tabindex:0,onClick(){s(t)},onKeyup(e){13===e.keyCode&&s(t)}},[e.h("div",{class:"q-focus-helper"}),t.icon?e.h(et,{name:t.icon,color:t.color}):o?e.h("img",{class:t.avatar?"q-bottom-sheet__avatar":"",src:o}):e.h("div",{class:"q-bottom-sheet__empty-icon"}),e.h("div",t.label)])})}function d(){return t.actions.map(t=>{const o=t.avatar||t.img;return void 0===t.label?e.h(mr,{spaced:!0,dark:a.value}):e.h(Ui,{class:["q-bottom-sheet__item",t.classes],tabindex:0,clickable:!0,dark:a.value,onClick(){s(t)},onKeyup(e){13===e.keyCode&&s(t)}},()=>[e.h(Wi,{avatar:!0},()=>t.icon?e.h(et,{name:t.icon,color:t.color}):o?e.h("img",{class:t.avatar?"q-bottom-sheet__avatar":"",src:o}):null),e.h(Wi,()=>t.label)])})}function v(){const o=[];return t.title&&o.push(e.h(Sn,{class:"q-dialog__title"},()=>t.title)),t.message&&o.push(e.h(Sn,{class:"q-dialog__message"},()=>t.message)),o.push(!0===t.grid?e.h("div",{class:"row items-stretch justify-start"},c()):e.h("div",d())),o}function p(){return[e.h(Cn,{class:[`q-bottom-sheet q-bottom-sheet--${!0===t.grid?"grid":"list"}`+(!0===a.value?" q-bottom-sheet--dark q-dark":""),t.cardClass],style:t.cardStyle},v)]}return Object.assign(n,{show:i,hide:r}),()=>e.h(Ai,{ref:l,position:"bottom",onHide:u},p)}});function jv(e,t){for(const o in t)"spinner"!==o&&Object(t[o])===t[o]?(e[o]=Object(e[o])!==e[o]?{}:{...e[o]},jv(e[o],t[o])):e[o]=t[o]}function Dv(t,o,n){return a=>{let l,i;const r=!0===o&&void 0!==a.component;if(!0===r){const{component:e,componentProps:t}=a;l="string"===typeof e?n.component(e):e,i=t}else{const{class:e,style:o,...n}=a;l=t,i=n,void 0!==e&&(n.cardClass=e),void 0!==o&&(n.cardStyle=o)}const s=[],u=[],c={onOk(e){return s.push(e),c},onCancel(e){return u.push(e),c},onDismiss(e){return s.push(e),u.push(e),c},hide(){return null!==f.value&&f.value.hide(),c},update(e){if(null!==g){if(!0===r)Object.assign(i,e);else{const{class:t,style:o,...n}=e;void 0!==t&&(n.cardClass=t),void 0!==o&&(n.cardStyle=o),jv(i,n)}g.$forceUpdate()}return c}},d=co();let v=!1;const p=e=>{v=!0,s.forEach(t=>{t(e)})},m=()=>{h.unmount(d),vo(d),h=null,g=null,!0!==v&&u.forEach(e=>{e()})},f=e.ref(null);let h=me({name:"QGlobalDialog",setup(){return()=>e.h(l,{ref:f,...i,onOk:p,onHide:m})}},n),g=h.mount(d);function b(){void 0!==f.value.show?f.value.show():g.$.subTree&&g.$.subTree.component&&g.$.subTree.component.proxy&&g.$.subTree.component.proxy.show?g.$.subTree.component.proxy.show():console.error("[Quasar] Incorrectly defined Dialog component")}return null!==f.value?b():"function"===typeof l.__asyncLoader&&l.__asyncLoader().then(()=>{e.nextTick(b)}),c}}var Hv={install({$q:e,parentApp:t}){!0===this.__installed?e.bottomSheet=Dv(Nv,!1,t):this.create=e.bottomSheet=Dv(Nv,!1,t)}};function Qv(e){return encodeURIComponent(e)}function Uv(e){return decodeURIComponent(e)}function Wv(e){return Qv(e===Object(e)?JSON.stringify(e):""+e)}function Yv(e){if(""===e)return e;0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\")),e=Uv(e.replace(/\+/g," "));try{e=JSON.parse(e)}catch(e){}return e}function Kv(e){const t=new Date;return t.setMilliseconds(t.getMilliseconds()+e),t.toUTCString()}function Xv(e){let t=0;const o=e.match(/(\d+)d/),n=e.match(/(\d+)h/),a=e.match(/(\d+)m/),l=e.match(/(\d+)s/);return o&&(t+=864e5*o[1]),n&&(t+=36e5*n[1]),a&&(t+=6e4*a[1]),l&&(t+=1e3*l[1]),0===t?e:Kv(t)}function Zv(e,t,o={},n){let a,l;void 0!==o.expires&&("[object Date]"===Object.prototype.toString.call(o.expires)?a=o.expires.toUTCString():"string"===typeof o.expires?a=Xv(o.expires):(l=parseFloat(o.expires),a=!1===isNaN(l)?Kv(864e5*l):o.expires));const i=`${Qv(e)}=${Wv(t)}`,r=[i,void 0!==a?"; Expires="+a:"",o.path?"; Path="+o.path:"",o.domain?"; Domain="+o.domain:"",o.sameSite?"; SameSite="+o.sameSite:"",o.httpOnly?"; HttpOnly":"",o.secure?"; Secure":"",o.other?"; "+o.other:""].join("");if(n){n.req.qCookies?n.req.qCookies.push(r):n.req.qCookies=[r],n.res.setHeader("Set-Cookie",n.req.qCookies);let t=n.req.headers.cookie||"";if(void 0!==a&&l<0){const o=Gv(e,n);void 0!==o&&(t=t.replace(`${e}=${o}; `,"").replace(`; ${e}=${o}`,"").replace(`${e}=${o}`,""))}else t=t?`${i}; ${t}`:r;n.req.headers.cookie=t}else document.cookie=r}function Gv(e,t){const o=t?t.req.headers:document,n=o.cookie?o.cookie.split("; "):[],a=n.length;let l,i,r,s=e?null:{},u=0;for(;u<a;u++)if(l=n[u].split("="),i=Uv(l.shift()),r=l.join("="),e){if(e===i){s=Yv(r);break}}else s[i]=r;return s}function Jv(e,t,o){Zv(e,"",{expires:-1,...t},o)}function ep(e,t){return null!==Gv(e,t)}function tp(e){return{get:t=>Gv(t,e),set:(t,o,n)=>Zv(t,o,n,e),has:t=>ep(t,e),remove:(t,o)=>Jv(t,o,e),getAll:()=>Gv(null,e)}}const op={install({$q:e,ssrContext:t}){e.cookies=this}};Object.assign(op,tp());var np=e.defineComponent({name:"DialogPlugin",props:{...at,title:String,message:String,prompt:Object,options:Object,progress:[Boolean,Object],html:Boolean,ok:{type:[String,Object,Boolean],default:!0},cancel:[String,Object,Boolean],focus:{type:String,default:"ok",validator:e=>["ok","cancel","none"].includes(e)},stackButtons:Boolean,color:String,cardClass:[String,Array,Object],cardStyle:[String,Array,Object]},emits:["ok","hide"],setup(t,{emit:o}){const{proxy:n}=e.getCurrentInstance(),{$q:a}=n,l=lt(t,a),i=e.ref(null),r=e.ref(void 0!==t.prompt?t.prompt.model:void 0!==t.options?t.options.model:void 0),s=e.computed(()=>"q-dialog-plugin"+(!0===l.value?" q-dialog-plugin--dark q-dark":"")+(!1!==t.progress?" q-dialog-plugin--progress":"")),u=e.computed(()=>t.color||(!0===l.value?"amber":"primary")),c=e.computed(()=>!1===t.progress?null:Object(t.progress)===t.progress?{component:t.progress.spinner||St,props:{color:t.progress.color||u.value}}:{component:St,props:{color:u.value}}),d=e.computed(()=>void 0!==t.prompt||void 0!==t.options),v=e.computed(()=>{if(!0!==d.value)return{};const{model:e,isValid:o,items:n,...a}=void 0!==t.prompt?t.prompt:t.options;return a}),p=e.computed(()=>Object(t.ok)===t.ok?a.lang.label.ok:!0===t.ok?a.lang.label.ok:t.ok),m=e.computed(()=>Object(t.cancel)===t.cancel?a.lang.label.cancel:!0===t.cancel?a.lang.label.cancel:t.cancel),f=e.computed(()=>{return void 0!==t.prompt?void 0!==t.prompt.isValid&&!0!==t.prompt.isValid(r.value):void 0!==t.options&&(void 0!==t.options.isValid&&!0!==t.options.isValid(r.value))}),h=e.computed(()=>({color:u.value,label:p.value,ripple:!1,...Object(t.ok)===t.ok?t.ok:{flat:!0},disable:f.value,"data-autofocus":"ok"===t.focus&&!0!==d.value||void 0,onClick:w})),g=e.computed(()=>({color:u.value,label:m.value,ripple:!1,...Object(t.cancel)===t.cancel?t.cancel:{flat:!0},"data-autofocus":"cancel"===t.focus&&!0!==d.value||void 0,onClick:x}));function b(){i.value.show()}function y(){i.value.hide()}function w(){o("ok",e.toRaw(r.value)),y()}function x(){y()}function _(){o("hide")}function C(e){r.value=e}function S(e){!0!==f.value&&"textarea"!==t.prompt.type&&!0===W(e,13)&&w()}function q(o,n){return!0===t.html?e.h(Sn,{class:o,innerHTML:n}):e.h(Sn,{class:o},()=>n)}function k(){return[e.h(_s,{modelValue:r.value,...v.value,color:u.value,dense:!0,autofocus:!0,dark:l.value,"onUpdate:modelValue":C,onKeyup:S})]}function $(){return[e.h(Hs,{modelValue:r.value,...v.value,color:u.value,options:t.options.items,dark:l.value,"onUpdate:modelValue":C})]}function M(){const o=[];return t.cancel&&o.push(e.h(Wt,g.value)),t.ok&&o.push(e.h(Wt,h.value)),e.h(qn,{class:!0===t.stackButtons?"items-end":"",vertical:t.stackButtons,align:"right"},()=>o)}function T(){const o=[];return t.title&&o.push(q("q-dialog__title",t.title)),!1!==t.progress&&o.push(e.h(Sn,{class:"q-dialog__progress"},()=>e.h(c.value.component,c.value.props))),t.message&&o.push(q("q-dialog__message",t.message)),void 0!==t.prompt?o.push(e.h(Sn,{class:"scroll q-dialog-plugin__form"},k)):void 0!==t.options&&o.push(e.h(mr,{dark:l.value}),e.h(Sn,{class:"scroll q-dialog-plugin__form"},$),e.h(mr,{dark:l.value})),(t.ok||t.cancel)&&o.push(M()),o}function B(){return[e.h(Cn,{class:[s.value,t.cardClass],style:t.cardStyle,dark:l.value},T)]}return e.watch(()=>t.prompt&&t.prompt.model,C),e.watch(()=>t.options&&t.options.model,C),Object.assign(n,{show:b,hide:y}),()=>e.h(Ai,{ref:i,onHide:_},B)}}),ap={install({$q:e,parentApp:t}){!0===this.__installed?e.dialog=Dv(np,!0,t):this.create=e.dialog=Dv(np,!0,t)}};const lp={ref:"bar"};var ip=v({isActive:!1},{start:m,stop:m,increment:m,setDefaults:m,install({$q:t,parentApp:o}){if(t.loadingBar=this,!0===this.__installed)return void(void 0!==t.config.loadingBar&&this.setDefaults(t.config.loadingBar));const n=e.ref(void 0!==t.config.loadingBar?{...t.config.loadingBar,...lp}:{...lp}),a=co("q-loading-bar"),l=me({name:"LoadingBar",setup:()=>()=>e.h(Le,n.value)},o).mount(a);Object.assign(this,{start:e=>{const t=l.$refs.bar;t.start(e),this.isActive=t.calls>0},stop:()=>{const e=l.$refs.bar;e.stop(),this.isActive=e.calls>0},increment(){const e=l.$refs.bar;e.increment.apply(null,arguments)},setDefaults:e=>{e===Object(e)&&(n.value={...n.value,...e,...lp})}})}});let rp,sp,up,cp=0,dp={};const vp={delay:0,message:!1,html:!1,spinnerSize:80,spinnerColor:"",messageColor:"",backgroundColor:"",boxClass:"",spinner:St,customClass:""},pp={...vp},mp=v({isActive:!1},{show(t){if(dp=t===Object(t)&&!0===t.ignoreDefaults?{...vp,...t}:{...pp,...t},mp.isActive=!0,void 0!==rp)return dp.uid=cp,void sp.$forceUpdate();dp.uid=++cp,clearTimeout(up),up=setTimeout(()=>{up=void 0;const t=co("q-loading");rp=e.createApp({name:"QLoading",setup(){function o(){!0!==mp.isActive&&void 0!==rp&&(Vi(!1),rp.unmount(t),vo(t),rp=void 0,sp=void 0)}function n(){if(!0!==mp.isActive)return null;const t=[e.h(dp.spinner,{class:"q-loading__spinner",color:dp.spinnerColor,size:dp.spinnerSize})];return dp.message&&t.push(e.h("div",{class:"q-loading__message"+(dp.messageColor?` text-${dp.messageColor}`:""),[!0===dp.html?"innerHTML":"textContent"]:dp.message})),e.h("div",{class:"q-loading fullscreen flex flex-center z-max "+dp.customClass.trim(),key:dp.uid},[e.h("div",{class:"q-loading__backdrop"+(dp.backgroundColor?` bg-${dp.backgroundColor}`:"")}),e.h("div",{class:"q-loading__box column items-center "+dp.boxClass},t)])}return e.onMounted(()=>{Vi(!0)}),()=>e.h(e.Transition,{name:"q-transition--fade",appear:!0,onAfterLeave:o},n)}}),sp=rp.mount(t)},dp.delay)},hide(){!0===mp.isActive&&(void 0!==up&&(clearTimeout(up),up=void 0),mp.isActive=!1)},setDefaults(e){e===Object(e)&&Object.assign(pp,e)},install({$q:e}){e.loading=this,void 0!==e.config.loading&&this.setDefaults(e.config.loading)}});let fp,hp;const gp=[];function bp(e){e.title&&(e.title=e.titleTemplate?e.titleTemplate(e.title):e.title,delete e.titleTemplate),[["meta","content"],["link","href"]].forEach(t=>{const o=e[t[0]],n=t[1];for(const e in o){const t=o[e];t.template&&(1===Object.keys(t).length?delete o[e]:(t[n]=t.template(t[n]||""),delete t.template))}})}function yp(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!0;for(const o in e)if(e[o]!==t[o])return!0}function wp(e){return!1===["class","style"].includes(e)}function xp(e){return!1===["lang","dir"].includes(e)}function _p(e,t){const o={},n={};return void 0===e?{add:t,remove:n}:(e.title!==t.title&&(o.title=t.title),["meta","link","script","htmlAttr","bodyAttr"].forEach(a=>{const l=e[a],i=t[a];if(n[a]=[],void 0!==l&&null!==l){o[a]={};for(const e in l)!1===i.hasOwnProperty(e)&&n[a].push(e);for(const e in i)!1===l.hasOwnProperty(e)?o[a][e]=i[e]:!0===yp(l[e],i[e])&&(n[a].push(e),o[a][e]=i[e])}else o[a]=i}),{add:o,remove:n})}function Cp({add:e,remove:t}){e.title&&(document.title=e.title),Object.keys(t).length>0&&(["meta","link","script"].forEach(e=>{t[e].forEach(t=>{document.head.querySelector(`${e}[data-qmeta="${t}"]`).remove()})}),t.htmlAttr.filter(xp).forEach(e=>{document.documentElement.removeAttribute(e)}),t.bodyAttr.filter(wp).forEach(e=>{document.body.removeAttribute(e)})),["meta","link","script"].forEach(t=>{const o=e[t];for(const e in o){const n=document.createElement(t);for(const t in o[e])"innerHTML"!==t&&n.setAttribute(t,o[e][t]);n.setAttribute("data-qmeta",e),"script"===t&&(n.innerHTML=o[e].innerHTML||""),document.head.appendChild(n)}}),Object.keys(e.htmlAttr).filter(xp).forEach(t=>{document.documentElement.setAttribute(t,e.htmlAttr[t]||"")}),Object.keys(e.bodyAttr).filter(wp).forEach(t=>{document.body.setAttribute(t,e.bodyAttr[t]||"")})}function Sp(){const e={title:"",titleTemplate:null,meta:{},link:{},script:{},htmlAttr:{},bodyAttr:{}};for(let t=0;t<gp.length;t++){const{active:o,val:n}=gp[t];!0===o&&sr(!0,e,n)}bp(e),Cp(_p(hp,e)),hp=e}function qp(){clearTimeout(fp),fp=setTimeout(Sp,50)}var kp={install(e){!0!==this.__installed&&!0===t.value&&(hp=window.__Q_META__,document.getElementById("qmeta-init").remove())}};let $p,Mp=0;const Tp={},Bp=["top-left","top-right","bottom-left","bottom-right","top","bottom","left","right","center"],Op=["top-left","top-right","bottom-left","bottom-right"],Vp={positive:{icon:e=>e.iconSet.type.positive,color:"positive"},negative:{icon:e=>e.iconSet.type.negative,color:"negative"},warning:{icon:e=>e.iconSet.type.warning,color:"warning",textColor:"dark"},info:{icon:e=>e.iconSet.type.info,color:"info"},ongoing:{group:!1,timeout:0,spinner:!0,color:"grey-8"}},zp={},Lp={};function Ep(e,t){return console.error(`Notify: ${e}`,t),!1}function Pp(t){return e.defineComponent({name:"QNotifications",setup(){const o={},n=[];function a(e){clearTimeout(e.meta.timer);const t=o[e.position].value.indexOf(e);if(-1!==t){void 0!==e.group&&delete zp[e.meta.group];const a=n[""+e.meta.uid];if(a){const{width:e,height:t}=getComputedStyle(a);a.style.left=`${a.offsetLeft}px`,a.style.width=e,a.style.height=t}o[e.position].value.splice(t,1),"function"===typeof e.onDismiss&&e.onDismiss()}}return Bp.forEach(t=>{o[t]=e.ref([]);const n=!0===["left","center","right"].includes(t)?"center":t.indexOf("top")>-1?"top":"bottom",a=t.indexOf("left")>-1?"start":t.indexOf("right")>-1?"end":"center",l=["left","right"].includes(t)?`items-${"left"===t?"start":"end"} justify-center`:"center"===t?"flex-center":`items-${a}`;Lp[t]=`q-notifications__list q-notifications__list--${n} fixed column no-wrap ${l}`}),$p=((n,l)=>{if(!n)return Ep("parameter required");let i;const r={textColor:"white"};if(!0!==n.ignoreDefaults&&Object.assign(r,Tp),Object(n)!==n&&(r.type&&Object.assign(r,Vp[r.type]),n={message:n}),Object.assign(r,Vp[n.type||r.type],n),"function"===typeof r.icon&&(r.icon=r.icon(t)),r.spinner?(!0===r.spinner&&(r.spinner=St),r.spinner=e.markRaw(r.spinner)):r.spinner=!1,r.meta={hasMedia:Boolean(!1!==r.spinner||r.icon||r.avatar)},r.position){if(!1===Bp.includes(r.position))return Ep("wrong position",n)}else r.position="bottom";if(void 0===r.timeout)r.timeout=5e3;else{const e=parseInt(r.timeout,10);if(isNaN(e)||e<0)return Ep("wrong timeout",n);r.timeout=e}0===r.timeout?r.progress=!1:!0===r.progress&&(r.meta.progressClass="q-notification__progress"+(r.progressClass?` ${r.progressClass}`:""),r.meta.progressStyle={animationDuration:`${r.timeout+1e3}ms`});const s=(!0===Array.isArray(n.actions)?n.actions:[]).concat(!0!==n.ignoreDefaults&&!0===Array.isArray(Tp.actions)?Tp.actions:[]).concat(void 0!==Vp[n.type]&&!0===Array.isArray(Vp[n.type].actions)?Vp[n.type].actions:[]);if(r.closeBtn&&s.push({label:"string"===typeof r.closeBtn?r.closeBtn:t.lang.label.close}),r.actions=s.map(({handler:e,noDismiss:t,...o})=>({flat:!0,...o,onClick:"function"===typeof e?()=>{e(),!0!==t&&u()}:()=>{u()}})),void 0===r.multiLine&&(r.multiLine=r.actions.length>1),Object.assign(r.meta,{class:"q-notification row items-stretch"+` q-notification--${!0===r.multiLine?"multi-line":"standard"}`+(void 0!==r.color?` bg-${r.color}`:"")+(void 0!==r.textColor?` text-${r.textColor}`:"")+(void 0!==r.classes?` ${r.classes}`:""),wrapperClass:"q-notification__wrapper col relative-position border-radius-inherit "+(!0===r.multiLine?"column no-wrap justify-center":"row items-center"),contentClass:"q-notification__content row items-center"+(!0===r.multiLine?"":" col"),attrs:{role:"alert",...r.attrs}}),!1===r.group?(r.group=void 0,r.meta.group=void 0):(void 0!==r.group&&!0!==r.group||(r.group=[r.message,r.caption,r.multiline].concat(r.actions.map(e=>`${e.label}*${e.icon}`)).join("|")),r.meta.group=r.group+"|"+r.position),0===r.actions.length?r.actions=void 0:r.meta.actionsClass="q-notification__actions row items-center "+(!0===r.multiLine?"justify-end":"col-auto")+(!0===r.meta.hasMedia?" q-notification__actions--with-media":""),void 0!==l){clearTimeout(l.notif.meta.timer),r.meta.uid=l.notif.meta.uid;const e=o[r.position].value.indexOf(l.notif);o[r.position].value[e]=r}else{const e=zp[r.meta.group];if(void 0===e){if(r.meta.uid=Mp++,r.meta.badge=1,-1!==["left","right","center"].indexOf(r.position))o[r.position].value.splice(Math.floor(o[r.position].value.length/2),0,r);else{const e=r.position.indexOf("top")>-1?"unshift":"push";o[r.position].value[e](r)}void 0!==r.group&&(zp[r.meta.group]=r)}else{if(clearTimeout(e.meta.timer),void 0!==r.badgePosition){if(!1===Op.includes(r.badgePosition))return Ep("wrong badgePosition",n)}else r.badgePosition=`top-${r.position.indexOf("left")>-1?"right":"left"}`;r.meta.uid=e.meta.uid,r.meta.badge=e.meta.badge+1,r.meta.badgeClass=`q-notification__badge q-notification__badge--${r.badgePosition}`+(void 0!==r.badgeColor?` bg-${r.badgeColor}`:"")+(void 0!==r.badgeTextColor?` text-${r.badgeTextColor}`:"")+(r.badgeClass?` ${r.badgeClass}`:"");const t=o[r.position].value.indexOf(e);o[r.position].value[t]=zp[r.meta.group]=r}}const u=()=>{a(r),i=void 0};return r.timeout>0&&(r.meta.timer=setTimeout(()=>{u()},r.timeout+1e3)),void 0!==r.group?e=>{void 0!==e?Ep("trying to update a grouped one which is forbidden",n):u()}:(i={dismiss:u,config:n,notif:r},void 0===l?e=>{if(void 0!==i)if(void 0===e)i.dismiss();else{const t=Object.assign({},i.config,e,{group:!1,position:r.position});$p(t,i)}}:void Object.assign(l,i))}),()=>e.h("div",{class:"q-notifications"},Bp.map(t=>{return e.h(e.TransitionGroup,{key:t,class:Lp[t],tag:"div",name:`q-notification--${t}`},()=>o[t].value.map(t=>{let o;const a=t.meta,l={class:"q-notification__message col"};if(!0===t.html)l.innerHTML=t.caption?`<div>${t.message}</div><div class="q-notification__caption">${t.caption}</div>`:t.message;else{const n=[t.message];o=t.caption?[e.h("div",n),e.h("div",{class:"q-notification__caption"},[t.caption])]:n}const i=[];!0===a.hasMedia&&(!1!==t.spinner?i.push(e.h(t.spinner,{class:"q-notification__spinner"})):t.icon?i.push(e.h(et,{class:"q-notification__icon",name:t.icon,role:"img"})):t.avatar&&i.push(e.h(tt,{class:"q-notification__avatar"},()=>e.h("img",{src:t.avatar,"aria-hidden":"true"})))),i.push(e.h("div",l,o));const r=[e.h("div",{class:a.contentClass},i)];return!0===t.progress&&r.push(e.h("div",{key:`${a.uid}|p|${a.badge}`,class:a.progressClass,style:a.progressStyle})),void 0!==t.actions&&r.push(e.h("div",{class:a.actionsClass},t.actions.map(t=>e.h(Wt,t)))),a.badge>1&&r.push(e.h("div",{key:`${a.uid}|${a.badge}`,class:t.meta.badgeClass,style:t.badgeStyle},[a.badge])),e.h("div",{ref:e=>{n[""+a.uid]=e},key:a.uid,class:a.class,...a.attrs},[e.h("div",{class:a.wrapperClass},r)])}))}))}})}var Ap={create(e){return $p(e)},setDefaults(e){e===Object(e)&&Object.assign(Tp,e)},registerType(e,t){t===Object(t)&&(Vp[e]=t)},install({$q:e,parentApp:t}){if(e.notify=this.create,e.notify.setDefaults=this.setDefaults,e.notify.registerType=this.registerType,void 0!==e.config.notify&&this.setDefaults(e.config.notify),!0!==this.__installed){const o=co("q-notify");me(Pp(e),t).mount(o)}}};function Fp(e){return"[object Date]"===Object.prototype.toString.call(e)?"__q_date|"+e.toUTCString():"[object RegExp]"===Object.prototype.toString.call(e)?"__q_expr|"+e.source:"number"===typeof e?"__q_numb|"+e:"boolean"===typeof e?"__q_bool|"+(e?"1":"0"):"string"===typeof e?"__q_strn|"+e:"function"===typeof e?"__q_strn|"+e.toString():e===Object(e)?"__q_objt|"+JSON.stringify(e):e}function Ip(e){const t=e.length;if(t<9)return e;const o=e.substr(0,8),n=e.substring(9);switch(o){case"__q_date":return new Date(n);case"__q_expr":return new RegExp(n);case"__q_numb":return Number(n);case"__q_bool":return Boolean("1"===n);case"__q_strn":return""+n;case"__q_objt":return JSON.parse(n);default:return e}}function Rp(){const e=()=>null;return{has:()=>!1,getLength:()=>0,getItem:e,getIndex:e,getKey:e,getAll:()=>{},getAllKeys:()=>[],set:m,remove:m,clear:m,isEmpty:()=>!0}}function Np(e){const t=window[e+"Storage"],o=e=>{const o=t.getItem(e);return o?Ip(o):null};return{has:e=>null!==t.getItem(e),getLength:()=>t.length,getItem:o,getIndex:e=>{return e<t.length?o(t.key(e)):null},getKey:e=>{return e<t.length?t.key(e):null},getAll:()=>{let e;const n={},a=t.length;for(let l=0;l<a;l++)e=t.key(l),n[e]=o(e);return n},getAllKeys:()=>{const e=[],o=t.length;for(let n=0;n<o;n++)e.push(t.key(n));return e},set:(e,o)=>{t.setItem(e,Fp(o))},remove:e=>{t.removeItem(e)},clear:()=>{t.clear()},isEmpty:()=>0===t.length}}const jp=!1===c.has.webStorage?Rp():Np("local"),Dp={install({$q:e}){e.localStorage=jp}};Object.assign(Dp,jp);const Hp=!1===c.has.webStorage?Rp():Np("session"),Qp={install({$q:e}){e.sessionStorage=Hp}};Object.assign(Qp,Hp);var Up=Object.freeze({__proto__:null,AddressbarColor:Lv,AppFullscreen:Fv,AppVisibility:Rv,BottomSheet:Hv,Cookies:op,Dark:L,Dialog:ap,LoadingBar:ip,Loading:mp,Meta:kp,Notify:Ap,Platform:d,Screen:z,LocalStorage:Dp,SessionStorage:Qp});function Wp(e){const t=document.createElement("textarea");t.value=e,t.contentEditable=!0,t.style.position="fixed",document.body.appendChild(t),t.focus(),t.select();const o=document.execCommand("copy");return t.remove(),o}function Yp(e){return void 0!==navigator.clipboard?navigator.clipboard.writeText(e):new Promise((t,o)=>{const n=Wp(e);n?t(!0):o(n)})}var Kp=e=>{const t={activated(){this.__qMeta.active=!0,qp()},deactivated(){this.__qMeta.active=!1,qp()},unmounted(){gp.splice(gp.indexOf(this.__qMeta),1),qp(),this.__qMeta=void 0}};return"function"===typeof e?Object.assign(t,{computed:{__qMetaOptions(){return e.call(this)||{}}},watch:{__qMetaOptions(e){this.__qMeta.val=e,!0===this.__qMeta.active&&qp()}},created(){this.__qMeta={active:!0,val:this.__qMetaOptions},gp.push(this.__qMeta),qp()}}):t.created=function(){this.__qMeta={active:!0,val:e},gp.push(this.__qMeta),qp()},t};function Xp(e){setTimeout(()=>{window.URL.revokeObjectURL(e.href)},1e4),e.remove()}function Zp(e,t,o={}){const{mimeType:n,byteOrderMark:a,encoding:l}="string"===typeof o?{mimeType:o}:o,i=void 0!==l?new TextEncoder(l).encode([t]):t,r=void 0!==a?[a,i]:[i],s=new Blob(r,{type:n||"application/octet-stream"}),u=document.createElement("a");u.href=window.URL.createObjectURL(s),u.setAttribute("download",e),"undefined"===typeof u.download&&u.setAttribute("target","_blank"),u.classList.add("hidden"),u.style.position="fixed",document.body.appendChild(u);try{return u.click(),Xp(u),!0}catch(e){return Xp(u),e}}function Gp(e){const t=Object.assign({noopener:!0},e),o=[];return Object.keys(t).forEach(e=>{!0===t[e]&&o.push(e)}),o.join(",")}function Jp(e,t,o){let n=window.open;if(!0===d.is.cordova)if(void 0!==cordova&&void 0!==cordova.InAppBrowser&&void 0!==cordova.InAppBrowser.open)n=cordova.InAppBrowser.open;else if(void 0!==navigator&&void 0!==navigator.app)return navigator.app.loadUrl(e,{openExternal:!0});const a=n(e,"_blank",Gp(o));if(a)return d.is.desktop&&a.focus(),a;t&&t()}var em=(e,t,o)=>{if(!0!==d.is.ios||void 0===window.SafariViewController)return Jp(e,t,o);window.SafariViewController.isAvailable(n=>{n?window.SafariViewController.show({url:e},m,t):Jp(e,t,o)})},tm=Object.freeze({__proto__:null,clone:tu,colors:al,copyToClipboard:Yp,createMetaMixin:Kp,createUploaderComponent:Td,date:ci,debounce:B,dom:Lt,event:T,exportFile:Zp,extend:sr,format:Se,frameDebounce:Gs,getCssVar:Tv,noop:m,morph:ov,openURL:em,patterns:Ha,scroll:Io,setCssVar:D,throttle:Et,uid:wr});function om(){const{emit:t,proxy:o}=e.getCurrentInstance(),n=e.ref(null);function a(){n.value.show()}function l(){n.value.hide()}function i(e){t("ok",e),l()}function r(){t("hide")}return Object.assign(o,{show:a,hide:l}),{dialogRef:n,onDialogHide:r,onDialogOK:i,onDialogCancel:l}}function nm(t){{const o={active:!0};if("function"===typeof t){const n=e.computed(t);o.val=n.value,e.watch(n,e=>{o.val=e,!0===o.active&&qp()})}else o.val=t;gp.push(o),qp(),e.onActivated(()=>{o.active=!0,qp()}),e.onDeactivated(()=>{o.active=!1,qp()}),e.onUnmounted(()=>{gp.splice(gp.indexOf(o),1),qp()})}}function am(){return e.inject(te)}om.emits=["ok","hide"];var lm=Object.freeze({__proto__:null,useDialogPluginComponent:om,useFormChild:zr,useMeta:nm,useQuasar:am}),im={version:"2.0.1",install(e,t){ge(e,{components:Fd,directives:Mv,plugins:Up,...t})},lang:j,iconSet:ee,...Fd,...Mv,...Up,...lm,...tm};return im});