@win2win/shared-ui 0.0.15 → 0.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -32,4 +32,4 @@ __p += '`),ke&&(z+=`' +
32
32
  function print() { __p += __j.call(arguments, '') }
33
33
  `:`;
34
34
  `)+z+`return __p
35
- }`;var we=Pf(function(){return Ae(h,ue+"return "+z).apply(o,p)});if(we.source=z,da(we))throw we;return we}function gy(e){return Te(e).toLowerCase()}function py(e){return Te(e).toUpperCase()}function vy(e,n,r){if(e=Te(e),e&&(r||n===o))return Hs(e);if(!e||!(n=St(n)))return e;var a=zt(e),c=zt(n),h=Ks(a,c),p=Gs(a,c)+1;return Bn(a,h,p).join("")}function _y(e,n,r){if(e=Te(e),e&&(r||n===o))return e.slice(0,Qs(e)+1);if(!e||!(n=St(n)))return e;var a=zt(e),c=Gs(a,zt(n))+1;return Bn(a,0,c).join("")}function by(e,n,r){if(e=Te(e),e&&(r||n===o))return e.replace(Ur,"");if(!e||!(n=St(n)))return e;var a=zt(e),c=Ks(a,zt(n));return Bn(a,c).join("")}function yy(e,n){var r=T,a=V;if($e(n)){var c="separator"in n?n.separator:c;r="length"in n?ye(n.length):r,a="omission"in n?St(n.omission):a}e=Te(e);var h=e.length;if(_r(e)){var p=zt(e);h=p.length}if(r>=h)return e;var b=r-br(a);if(b<1)return a;var E=p?Bn(p,0,b).join(""):e.slice(0,b);if(c===o)return E+a;if(p&&(b+=E.length-b),ha(c)){if(e.slice(b).search(c)){var N,$=E;for(c.global||(c=Bl(c.source,Te(rn.exec(c))+"g")),c.lastIndex=0;N=c.exec($);)var z=N.index;E=E.slice(0,z===o?b:z)}}else if(e.indexOf(St(c),b)!=b){var ee=E.lastIndexOf(c);ee>-1&&(E=E.slice(0,ee))}return E+a}function wy(e){return e=Te(e),e&&rl.test(e)?e.replace(Dr,Yg):e}var Sy=Er(function(e,n,r){return e+(r?" ":"")+n.toUpperCase()}),pa=Pc("toUpperCase");function If(e,n,r){return e=Te(e),n=r?o:n,n===o?Hg(e)?Jg(e):Ig(e):e.match(n)||[]}var Pf=Se(function(e,n){try{return yt(e,o,n)}catch(r){return da(r)?r:new pe(r)}}),xy=sn(function(e,n){return Bt(n,function(r){r=Yt(r),an(e,r,ca(e[r],e))}),e});function Cy(e){var n=e==null?0:e.length,r=fe();return e=n?Ie(e,function(a){if(typeof a[1]!="function")throw new Rt(m);return[r(a[0]),a[1]]}):[],Se(function(a){for(var c=-1;++c<n;){var h=e[c];if(yt(h[0],this,a))return yt(h[1],this,a)}})}function ky(e){return Yp(qt(e,k))}function va(e){return function(){return e}}function Ey(e,n){return e==null||e!==e?n:e}var Ay=$c(),Ty=$c(!0);function mt(e){return e}function _a(e){return gc(typeof e=="function"?e:qt(e,k))}function By(e){return vc(qt(e,k))}function Ry(e,n){return _c(e,qt(n,k))}var Oy=Se(function(e,n){return function(r){return Jr(r,e,n)}}),qy=Se(function(e,n){return function(r){return Jr(e,r,n)}});function ba(e,n,r){var a=Ze(n),c=oo(n,a);r==null&&!($e(n)&&(c.length||!a.length))&&(r=n,n=e,e=this,c=oo(n,Ze(n)));var h=!($e(r)&&"chain"in r)||!!r.chain,p=fn(e);return Bt(c,function(b){var E=n[b];e[b]=E,p&&(e.prototype[b]=function(){var N=this.__chain__;if(h||N){var $=e(this.__wrapped__),z=$.__actions__=ft(this.__actions__);return z.push({func:E,args:arguments,thisArg:e}),$.__chain__=N,$}return E.apply(e,xn([this.value()],arguments))})}),e}function My(){return et._===this&&(et._=op),this}function ya(){}function Vy(e){return e=ye(e),Se(function(n){return bc(n,e)})}var Ly=Zl(Ie),Iy=Zl(Fs),Py=Zl(Sl);function Nf(e){return ia(e)?xl(Yt(e)):hv(e)}function Ny(e){return function(n){return e==null?o:Qn(e,n)}}var $y=Dc(),Fy=Dc(!0);function wa(){return[]}function Sa(){return!1}function Dy(){return{}}function zy(){return""}function Uy(){return!0}function Wy(e,n){if(e=ye(e),e<1||e>H)return[];var r=q,a=rt(e,q);n=fe(n),e-=q;for(var c=El(a,n);++r<e;)n(r);return c}function Hy(e){return be(e)?Ie(e,Yt):xt(e)?[e]:ft(rf(Te(e)))}function Ky(e){var n=++rp;return Te(e)+n}var Gy=fo(function(e,n){return e+n},0),jy=Xl("ceil"),Qy=fo(function(e,n){return e/n},1),Yy=Xl("floor");function Zy(e){return e&&e.length?io(e,mt,Pl):o}function Xy(e,n){return e&&e.length?io(e,fe(n,2),Pl):o}function Jy(e){return Us(e,mt)}function ew(e,n){return Us(e,fe(n,2))}function tw(e){return e&&e.length?io(e,mt,Dl):o}function nw(e,n){return e&&e.length?io(e,fe(n,2),Dl):o}var rw=fo(function(e,n){return e*n},1),iw=Xl("round"),ow=fo(function(e,n){return e-n},0);function lw(e){return e&&e.length?kl(e,mt):0}function aw(e,n){return e&&e.length?kl(e,fe(n,2)):0}return d.after=B_,d.ary=gf,d.assign=pb,d.assignIn=Bf,d.assignInWith=ko,d.assignWith=vb,d.at=_b,d.before=pf,d.bind=ca,d.bindAll=xy,d.bindKey=vf,d.castArray=D_,d.chain=df,d.chunk=Yv,d.compact=Zv,d.concat=Xv,d.cond=Cy,d.conforms=ky,d.constant=va,d.countBy=l_,d.create=bb,d.curry=_f,d.curryRight=bf,d.debounce=yf,d.defaults=yb,d.defaultsDeep=wb,d.defer=R_,d.delay=O_,d.difference=Jv,d.differenceBy=e0,d.differenceWith=t0,d.drop=n0,d.dropRight=r0,d.dropRightWhile=i0,d.dropWhile=o0,d.fill=l0,d.filter=u_,d.flatMap=f_,d.flatMapDeep=d_,d.flatMapDepth=h_,d.flatten=uf,d.flattenDeep=a0,d.flattenDepth=u0,d.flip=q_,d.flow=Ay,d.flowRight=Ty,d.fromPairs=s0,d.functions=Tb,d.functionsIn=Bb,d.groupBy=m_,d.initial=f0,d.intersection=d0,d.intersectionBy=h0,d.intersectionWith=m0,d.invert=Ob,d.invertBy=qb,d.invokeMap=p_,d.iteratee=_a,d.keyBy=v_,d.keys=Ze,d.keysIn=ht,d.map=bo,d.mapKeys=Vb,d.mapValues=Lb,d.matches=By,d.matchesProperty=Ry,d.memoize=wo,d.merge=Ib,d.mergeWith=Rf,d.method=Oy,d.methodOf=qy,d.mixin=ba,d.negate=So,d.nthArg=Vy,d.omit=Pb,d.omitBy=Nb,d.once=M_,d.orderBy=__,d.over=Ly,d.overArgs=V_,d.overEvery=Iy,d.overSome=Py,d.partial=fa,d.partialRight=wf,d.partition=b_,d.pick=$b,d.pickBy=Of,d.property=Nf,d.propertyOf=Ny,d.pull=_0,d.pullAll=cf,d.pullAllBy=b0,d.pullAllWith=y0,d.pullAt=w0,d.range=$y,d.rangeRight=Fy,d.rearg=L_,d.reject=S_,d.remove=S0,d.rest=I_,d.reverse=ua,d.sampleSize=C_,d.set=Db,d.setWith=zb,d.shuffle=k_,d.slice=x0,d.sortBy=T_,d.sortedUniq=R0,d.sortedUniqBy=O0,d.split=fy,d.spread=P_,d.tail=q0,d.take=M0,d.takeRight=V0,d.takeRightWhile=L0,d.takeWhile=I0,d.tap=Z0,d.throttle=N_,d.thru=_o,d.toArray=Ef,d.toPairs=qf,d.toPairsIn=Mf,d.toPath=Hy,d.toPlainObject=Tf,d.transform=Ub,d.unary=$_,d.union=P0,d.unionBy=N0,d.unionWith=$0,d.uniq=F0,d.uniqBy=D0,d.uniqWith=z0,d.unset=Wb,d.unzip=sa,d.unzipWith=ff,d.update=Hb,d.updateWith=Kb,d.values=Br,d.valuesIn=Gb,d.without=U0,d.words=If,d.wrap=F_,d.xor=W0,d.xorBy=H0,d.xorWith=K0,d.zip=G0,d.zipObject=j0,d.zipObjectDeep=Q0,d.zipWith=Y0,d.entries=qf,d.entriesIn=Mf,d.extend=Bf,d.extendWith=ko,ba(d,d),d.add=Gy,d.attempt=Pf,d.camelCase=Zb,d.capitalize=Vf,d.ceil=jy,d.clamp=jb,d.clone=z_,d.cloneDeep=W_,d.cloneDeepWith=H_,d.cloneWith=U_,d.conformsTo=K_,d.deburr=Lf,d.defaultTo=Ey,d.divide=Qy,d.endsWith=Xb,d.eq=Wt,d.escape=Jb,d.escapeRegExp=ey,d.every=a_,d.find=s_,d.findIndex=lf,d.findKey=Sb,d.findLast=c_,d.findLastIndex=af,d.findLastKey=xb,d.floor=Yy,d.forEach=hf,d.forEachRight=mf,d.forIn=Cb,d.forInRight=kb,d.forOwn=Eb,d.forOwnRight=Ab,d.get=ma,d.gt=G_,d.gte=j_,d.has=Rb,d.hasIn=ga,d.head=sf,d.identity=mt,d.includes=g_,d.indexOf=c0,d.inRange=Qb,d.invoke=Mb,d.isArguments=Xn,d.isArray=be,d.isArrayBuffer=Q_,d.isArrayLike=dt,d.isArrayLikeObject=ze,d.isBoolean=Y_,d.isBuffer=Rn,d.isDate=Z_,d.isElement=X_,d.isEmpty=J_,d.isEqual=eb,d.isEqualWith=tb,d.isError=da,d.isFinite=nb,d.isFunction=fn,d.isInteger=Sf,d.isLength=xo,d.isMap=xf,d.isMatch=rb,d.isMatchWith=ib,d.isNaN=ob,d.isNative=lb,d.isNil=ub,d.isNull=ab,d.isNumber=Cf,d.isObject=$e,d.isObjectLike=De,d.isPlainObject=oi,d.isRegExp=ha,d.isSafeInteger=sb,d.isSet=kf,d.isString=Co,d.isSymbol=xt,d.isTypedArray=Tr,d.isUndefined=cb,d.isWeakMap=fb,d.isWeakSet=db,d.join=g0,d.kebabCase=ty,d.last=Vt,d.lastIndexOf=p0,d.lowerCase=ny,d.lowerFirst=ry,d.lt=hb,d.lte=mb,d.max=Zy,d.maxBy=Xy,d.mean=Jy,d.meanBy=ew,d.min=tw,d.minBy=nw,d.stubArray=wa,d.stubFalse=Sa,d.stubObject=Dy,d.stubString=zy,d.stubTrue=Uy,d.multiply=rw,d.nth=v0,d.noConflict=My,d.noop=ya,d.now=yo,d.pad=iy,d.padEnd=oy,d.padStart=ly,d.parseInt=ay,d.random=Yb,d.reduce=y_,d.reduceRight=w_,d.repeat=uy,d.replace=sy,d.result=Fb,d.round=iw,d.runInContext=x,d.sample=x_,d.size=E_,d.snakeCase=cy,d.some=A_,d.sortedIndex=C0,d.sortedIndexBy=k0,d.sortedIndexOf=E0,d.sortedLastIndex=A0,d.sortedLastIndexBy=T0,d.sortedLastIndexOf=B0,d.startCase=dy,d.startsWith=hy,d.subtract=ow,d.sum=lw,d.sumBy=aw,d.template=my,d.times=Wy,d.toFinite=dn,d.toInteger=ye,d.toLength=Af,d.toLower=gy,d.toNumber=Lt,d.toSafeInteger=gb,d.toString=Te,d.toUpper=py,d.trim=vy,d.trimEnd=_y,d.trimStart=by,d.truncate=yy,d.unescape=wy,d.uniqueId=Ky,d.upperCase=Sy,d.upperFirst=pa,d.each=hf,d.eachRight=mf,d.first=sf,ba(d,function(){var e={};return jt(d,function(n,r){Re.call(d.prototype,r)||(e[r]=n)}),e}(),{chain:!1}),d.VERSION=u,Bt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){d[e].placeholder=d}),Bt(["drop","take"],function(e,n){Ce.prototype[e]=function(r){r=r===o?1:Qe(ye(r),0);var a=this.__filtered__&&!n?new Ce(this):this.clone();return a.__filtered__?a.__takeCount__=rt(r,a.__takeCount__):a.__views__.push({size:rt(r,q),type:e+(a.__dir__<0?"Right":"")}),a},Ce.prototype[e+"Right"]=function(r){return this.reverse()[e](r).reverse()}}),Bt(["filter","map","takeWhile"],function(e,n){var r=n+1,a=r==F||r==se;Ce.prototype[e]=function(c){var h=this.clone();return h.__iteratees__.push({iteratee:fe(c,3),type:r}),h.__filtered__=h.__filtered__||a,h}}),Bt(["head","last"],function(e,n){var r="take"+(n?"Right":"");Ce.prototype[e]=function(){return this[r](1).value()[0]}}),Bt(["initial","tail"],function(e,n){var r="drop"+(n?"":"Right");Ce.prototype[e]=function(){return this.__filtered__?new Ce(this):this[r](1)}}),Ce.prototype.compact=function(){return this.filter(mt)},Ce.prototype.find=function(e){return this.filter(e).head()},Ce.prototype.findLast=function(e){return this.reverse().find(e)},Ce.prototype.invokeMap=Se(function(e,n){return typeof e=="function"?new Ce(this):this.map(function(r){return Jr(r,e,n)})}),Ce.prototype.reject=function(e){return this.filter(So(fe(e)))},Ce.prototype.slice=function(e,n){e=ye(e);var r=this;return r.__filtered__&&(e>0||n<0)?new Ce(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),n!==o&&(n=ye(n),r=n<0?r.dropRight(-n):r.take(n-e)),r)},Ce.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Ce.prototype.toArray=function(){return this.take(q)},jt(Ce.prototype,function(e,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),a=/^(?:head|last)$/.test(n),c=d[a?"take"+(n=="last"?"Right":""):n],h=a||/^find/.test(n);c&&(d.prototype[n]=function(){var p=this.__wrapped__,b=a?[1]:arguments,E=p instanceof Ce,N=b[0],$=E||be(p),z=function(xe){var ke=c.apply(d,xn([xe],b));return a&&ee?ke[0]:ke};$&&r&&typeof N=="function"&&N.length!=1&&(E=$=!1);var ee=this.__chain__,ue=!!this.__actions__.length,de=h&&!ee,we=E&&!ue;if(!h&&$){p=we?p:new Ce(this);var he=e.apply(p,b);return he.__actions__.push({func:_o,args:[z],thisArg:o}),new Ot(he,ee)}return de&&we?e.apply(this,b):(he=this.thru(z),de?a?he.value()[0]:he.value():he)})}),Bt(["pop","push","shift","sort","splice","unshift"],function(e){var n=Ui[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",a=/^(?:pop|shift)$/.test(e);d.prototype[e]=function(){var c=arguments;if(a&&!this.__chain__){var h=this.value();return n.apply(be(h)?h:[],c)}return this[r](function(p){return n.apply(be(p)?p:[],c)})}}),jt(Ce.prototype,function(e,n){var r=d[n];if(r){var a=r.name+"";Re.call(xr,a)||(xr[a]=[]),xr[a].push({name:n,func:r})}}),xr[co(o,G).name]=[{name:"wrapper",func:o}],Ce.prototype.clone=wp,Ce.prototype.reverse=Sp,Ce.prototype.value=xp,d.prototype.at=X0,d.prototype.chain=J0,d.prototype.commit=e_,d.prototype.next=t_,d.prototype.plant=r_,d.prototype.reverse=i_,d.prototype.toJSON=d.prototype.valueOf=d.prototype.value=o_,d.prototype.first=d.prototype.head,Kr&&(d.prototype[Kr]=n_),d},yr=ep();Wn?((Wn.exports=yr)._=yr,_l._=yr):et._=yr}).call(Xe)}(ui,ui.exports);var Pe=ui.exports,Xt={},Ra={},Oa={},si={};Object.defineProperty(si,"__esModule",{value:!0}),si.OPERATORS=void 0,si.OPERATORS=["==","!=",">","<",">=","<=","contains","not_contains","in","not_in"];var tr={};Object.defineProperty(tr,"__esModule",{value:!0}),tr.ControlType=tr.GAMA_PROP_CONTROL_TYPES=void 0,tr.GAMA_PROP_CONTROL_TYPES=[{code:"input_text",icon:"title",label:"Texto"},{code:"input_number",icon:"o_looks_one",label:"Número"},{code:"datetime",icon:"event",label:"Fecha y hora"},{code:"date",icon:"calendar_today",label:"Fecha"},{code:"time",icon:"schedule",label:"Hora"},{code:"switch",icon:"toggle_on",label:"Switch"},{code:"checkbox",icon:"o_check_box",label:"Checkbox"},{code:"select",icon:"list",label:"Selector simple"},{code:"cards_select",icon:"grid_view",label:"Selector de tarjetas"},{code:"location",icon:"location_on",label:"Ubicación"},{code:"dynamic_array",icon:"data_array",label:"Colección dinámica"},{code:"object",icon:"data_object",label:"Objeto"}];var qa;(function(t){t.TEXT="input_text",t.NUMBER="input_number",t.DATETIME="datetime",t.DATE="date",t.TIME="time",t.SWITCH="switch",t.CHECKBOX="checkbox",t.SELECT="select",t.CARDS_SELECT="cards_select",t.LOCATION="location",t.DYNAMIC_ARRAY="dynamic_array",t.OBJECT="object"})(qa||(tr.ControlType=qa={}));var Ma={};Object.defineProperty(Ma,"__esModule",{value:!0});var Va={};Object.defineProperty(Va,"__esModule",{value:!0});var La={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.VALIDATORS=t.PropValidatorKeys=t.GamaPropValidatorsMap=void 0,t.GamaPropValidatorsMap={required:{fn:()=>o=>o.value!==null&&o.value!==void 0&&o.value!=="",message:"Este campo es requerido",label:"Requerido"},min:{fn:o=>u=>{if(typeof u.value=="number")return(u.value||0)>=o;if(typeof u.value=="string"){const s=u.value||"";return u.multiple?s.split(",").length>=o:s.length>=o}return!1},message:"El valor es menor al mínimo permitido",label:"Mínimo"},max:{fn:o=>u=>{if(typeof u.value=="number")return(u.value||0)<=o;if(typeof u.value=="string"){const s=u.value||"";return u.multiple?s.split(",").length<=o:(s||"").length<=o}return!1},message:"El valor es mayor al máximo permitido",label:"Máximo"},onlyNumbers:{fn:()=>o=>/^[0-9]*$/.test(String(o.value)||""),message:"Este campo solo acepta números",label:"Solo números"},email:{fn:()=>o=>o.value?/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(String(o.value)||""):!0,message:"El correo electrónico no es válido",label:"Correo electrónico"},url:{fn:()=>o=>o.value?/^(ftp|http|https):\/\/[^ "]+$/.test(String(o.value)||"")||/^www\.[^ "]+$/.test(String(o.value)||""):!0,message:"La URL no es válida",label:"URL"}};var l;(function(o){o.REQUERIDO="required",o.MINIMO="min",o.MAXIMO="max",o.SOLO_NUMEROS="onlyNumbers",o.EMAIL="email",o.URL="url"})(l||(t.PropValidatorKeys=l={})),t.VALIDATORS=Object.entries(t.GamaPropValidatorsMap).map(([o,u])=>({value:o,...u}))})(La);var Ia={};Object.defineProperty(Ia,"__esModule",{value:!0}),function(t){var l=Xe&&Xe.__createBinding||(Object.create?function(u,s,f,m){m===void 0&&(m=f);var g=Object.getOwnPropertyDescriptor(s,f);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[f]}}),Object.defineProperty(u,m,g)}:function(u,s,f,m){m===void 0&&(m=f),u[m]=s[f]}),o=Xe&&Xe.__exportStar||function(u,s){for(var f in u)f!=="default"&&!Object.prototype.hasOwnProperty.call(s,f)&&l(s,u,f)};Object.defineProperty(t,"__esModule",{value:!0}),o(si,t),o(tr,t),o(Ma,t),o(Va,t),o(La,t),o(Ia,t)}(Oa),function(t){var l=Xe&&Xe.__createBinding||(Object.create?function(u,s,f,m){m===void 0&&(m=f);var g=Object.getOwnPropertyDescriptor(s,f);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[f]}}),Object.defineProperty(u,m,g)}:function(u,s,f,m){m===void 0&&(m=f),u[m]=s[f]}),o=Xe&&Xe.__exportStar||function(u,s){for(var f in u)f!=="default"&&!Object.prototype.hasOwnProperty.call(s,f)&&l(s,u,f)};Object.defineProperty(t,"__esModule",{value:!0}),o(Oa,t)}(Ra),function(t){var l=Xe&&Xe.__createBinding||(Object.create?function(u,s,f,m){m===void 0&&(m=f);var g=Object.getOwnPropertyDescriptor(s,f);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[f]}}),Object.defineProperty(u,m,g)}:function(u,s,f,m){m===void 0&&(m=f),u[m]=s[f]}),o=Xe&&Xe.__exportStar||function(u,s){for(var f in u)f!=="default"&&!Object.prototype.hasOwnProperty.call(s,f)&&l(s,u,f)};Object.defineProperty(t,"__esModule",{value:!0}),o(Ra,t)}(Xt);const nr=Hf("form",{state:()=>({formSteps:[],currentStep:1,onLastSubstep:!1,collections:{}}),actions:{setFormSteps(t){this.formSteps=Kf(t)},nextStep(){this.currentStep!==this.formSteps.length&&this.currentStep++},previousStep(){this.currentStep!==1&&this.currentStep--},setControlValue(t,l){const{id:o,value:u,code:s}=l,f=this.formSteps[t].controls.find(m=>m.id===o);f&&(Ro.includes(f.controlType)?Pe.set(f.value,s,u):f.value=u)},setControlVisibility(t,l,o){const u=this.formSteps[t].controls.find(s=>s.id===l);u&&(u.visible=o)},setControlItemsLength(t,l,o){const u=this.formSteps[t].controls.find(s=>s.id===l);!u||u.controlType!=="dynamic_array"||(u.itemsLength.value=o)},setOnLastSubstep(t){this.onLastSubstep=t},resetSteps(){this.currentStep=1},setCollection(t,l){this.collections[t]=l}},getters:{currentFormStep(t){return t.formSteps[t.currentStep-1]||null},stepsCount(t){return t.formSteps.length},nextDisabled(){return this.currentFormStep.controls.filter(t=>t.visible).some(t=>!t.valid)},getCollection(t){return l=>t.collections[l]||null}}});function Kf(t){return t.map(l=>({...l,valid:!1,controls:Pa(l.controls)}))}function Pa(t){return t.map(l=>{var o,u,s;return{...l,valid:!((o=l.validators)!=null&&o.length),visible:!((u=l.conditions)!=null&&u.length),value:Gf(l),itemsLength:l.controlType==="dynamic_array"?{...l.itemsLength,value:((s=l.itemsLength)==null?void 0:s.default)||1}:null}})}function Gf(t){if(!Pe.isNil(t.defaultValue))return t.defaultValue;switch(t.controlType){case"input_text":return"";case"input_number":return null;case"select":return t.multiple?[]:"";case"cards_select":return t.multiple?[]:"";case"checkbox":return null;case"switch":return null;case"location":return{};case"dynamic_array":return[];case"object":return{};default:return""}}const Ro=[Xt.ControlType.DYNAMIC_ARRAY,Xt.ControlType.OBJECT];class Na{toRaw(l){return l.flatMap(s=>s.controls).filter(s=>s.visible).map(s=>({ID_CUESTIONARIO_PREGUNTA:s.id,RESPUESTA:this.formatValue(s)}))}fromRaw(l){return Pe.orderBy(l,"ORDEN").filter(u=>u.PREGUNTAS.length&&u.ESTADO===1).map(u=>{const s=u.NOMBRE,f=u.ORDEN,m=u.DESCRIPCION,g=u.CLAVE,C=u.ID_CUESTIONARIO,A=u.PREGUNTAS.filter(v=>v.ESTADO===1).map(v=>this.parseControl(v));return{title:s,order:f,text:m,controls:A,name:g,id:C}})}parseControl(l){return{controlType:l.TIPO,label:l.NOMBRE,name:l.CLAVE,options:l.RESPUESTAS,multiple:l.MULTIPLE||!1,validators:l.VALIDACIONES,conditions:l.CONDITIONS,itemsLength:l.LENGTH,id:l.ID_CUESTIONARIO_PREGUNTA,row:l.FILA,col:l.COLUMNA,prefix:l.PREFIJO,suffix:l.SUFIJO,structure:l.STRUCTURE,group:l.GRUPO,title:l.TITULO_GRUPO,customParams:l.PARAMS}}formatValue(l){const{controlType:o,value:u,structure:s}=l,f=(m,g)=>g.controlType==="input_number"&&m!==null&&m!==void 0&&m!==""&&typeof m=="string";return f(u,l)?parseFloat(u.replaceAll(".","")):(o==="object"&&s.forEach(m=>{const g=u[m.code];f(g,m)&&(u[m.code]=parseFloat(g==null?void 0:g.replaceAll(".","")))}),u)}}function ci(t,l,o,u){return Object.defineProperty(t,l,{get:o,set:u,enumerable:!0}),t}const mn=i.ref(!1);let Oo;function jf(t,l){const o=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(t)||/(opr)[\/]([\w.]+)/.exec(t)||/(vivaldi)[\/]([\w.]+)/.exec(t)||/(chrome|crios)[\/]([\w.]+)/.exec(t)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(t)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(t)||/(firefox|fxios)[\/]([\w.]+)/.exec(t)||/(webkit)[\/]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(t)||[];return{browser:o[5]||o[3]||o[1]||"",version:o[4]||o[2]||"0",platform:l[0]||""}}function Qf(t){return/(ipad)/.exec(t)||/(ipod)/.exec(t)||/(windows phone)/.exec(t)||/(iphone)/.exec(t)||/(kindle)/.exec(t)||/(silk)/.exec(t)||/(android)/.exec(t)||/(win)/.exec(t)||/(mac)/.exec(t)||/(linux)/.exec(t)||/(cros)/.exec(t)||/(playbook)/.exec(t)||/(bb)/.exec(t)||/(blackberry)/.exec(t)||[]}const $a="ontouchstart"in window||window.navigator.maxTouchPoints>0;function Yf(t){const l=t.toLowerCase(),o=Qf(l),u=jf(l,o),s={};u.browser&&(s[u.browser]=!0,s.version=u.version,s.versionNumber=parseInt(u.version,10)),u.platform&&(s[u.platform]=!0);const f=s.android||s.ios||s.bb||s.blackberry||s.ipad||s.iphone||s.ipod||s.kindle||s.playbook||s.silk||s["windows phone"];if(f===!0||l.indexOf("mobile")!==-1?s.mobile=!0:s.desktop=!0,s["windows phone"]&&(s.winphone=!0,delete s["windows phone"]),s.edga||s.edgios||s.edg?(s.edge=!0,u.browser="edge"):s.crios?(s.chrome=!0,u.browser="chrome"):s.fxios&&(s.firefox=!0,u.browser="firefox"),(s.ipod||s.ipad||s.iphone)&&(s.ios=!0),s.vivaldi&&(u.browser="vivaldi",s.vivaldi=!0),(s.chrome||s.opr||s.safari||s.vivaldi||s.mobile===!0&&s.ios!==!0&&f!==!0)&&(s.webkit=!0),s.opr&&(u.browser="opera",s.opera=!0),s.safari&&(s.blackberry||s.bb?(u.browser="blackberry",s.blackberry=!0):s.playbook?(u.browser="playbook",s.playbook=!0):s.android?(u.browser="android",s.android=!0):s.kindle?(u.browser="kindle",s.kindle=!0):s.silk&&(u.browser="silk",s.silk=!0)),s.name=u.browser,s.platform=u.platform,l.indexOf("electron")!==-1)s.electron=!0;else if(document.location.href.indexOf("-extension://")!==-1)s.bex=!0;else{if(window.Capacitor!==void 0?(s.capacitor=!0,s.nativeMobile=!0,s.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(s.cordova=!0,s.nativeMobile=!0,s.nativeMobileWrapper="cordova"),mn.value===!0&&(Oo={is:{...s}}),$a===!0&&s.mac===!0&&(s.desktop===!0&&s.safari===!0||s.nativeMobile===!0&&s.android!==!0&&s.ios!==!0&&s.ipad!==!0)){delete s.mac,delete s.desktop;const m=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(s,{mobile:!0,ios:!0,platform:m,[m]:!0})}s.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete s.desktop,s.mobile=!0)}return s}const Fa=navigator.userAgent||navigator.vendor||window.opera,Zf={has:{touch:!1,webStorage:!1},within:{iframe:!1}},gt={userAgent:Fa,is:Yf(Fa),has:{touch:$a},within:{iframe:window.self!==window.top}},qo={install(t){const{$q:l}=t;mn.value===!0?(t.onSSRHydrated.push(()=>{Object.assign(l.platform,gt),mn.value=!1}),l.platform=i.reactive(this)):l.platform=this}};{let t;ci(gt.has,"webStorage",()=>{if(t!==void 0)return t;try{if(window.localStorage)return t=!0,!0}catch{}return t=!1,!1}),Object.assign(qo,gt),mn.value===!0&&(Object.assign(qo,Oo,Zf),Oo=null)}function Ye(t){return i.markRaw(i.defineComponent(t))}function Da(t){return i.markRaw(t)}function Jt(t,l){if(t===l)return!0;if(t!==null&&l!==null&&typeof t=="object"&&typeof l=="object"){if(t.constructor!==l.constructor)return!1;let o,u;if(t.constructor===Array){if(o=t.length,o!==l.length)return!1;for(u=o;u--!==0;)if(Jt(t[u],l[u])!==!0)return!1;return!0}if(t.constructor===Map){if(t.size!==l.size)return!1;let f=t.entries();for(u=f.next();u.done!==!0;){if(l.has(u.value[0])!==!0)return!1;u=f.next()}for(f=t.entries(),u=f.next();u.done!==!0;){if(Jt(u.value[1],l.get(u.value[0]))!==!0)return!1;u=f.next()}return!0}if(t.constructor===Set){if(t.size!==l.size)return!1;const f=t.entries();for(u=f.next();u.done!==!0;){if(l.has(u.value[0])!==!0)return!1;u=f.next()}return!0}if(t.buffer!=null&&t.buffer.constructor===ArrayBuffer){if(o=t.length,o!==l.length)return!1;for(u=o;u--!==0;)if(t[u]!==l[u])return!1;return!0}if(t.constructor===RegExp)return t.source===l.source&&t.flags===l.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===l.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===l.toString();const s=Object.keys(t).filter(f=>t[f]!==void 0);if(o=s.length,o!==Object.keys(l).filter(f=>l[f]!==void 0).length)return!1;for(u=o;u--!==0;){const f=s[u];if(Jt(t[f],l[f])!==!0)return!1}return!0}return t!==t&&l!==l}const za={threshold:0,root:null,rootMargin:"0px"};function Ua(t,l,o){let u,s,f;typeof o=="function"?(u=o,s=za,f=l.cfg===void 0):(u=o.handler,s=Object.assign({},za,o.cfg),f=l.cfg===void 0||Jt(l.cfg,s)===!1),l.handler!==u&&(l.handler=u),f===!0&&(l.cfg=s,l.observer!==void 0&&l.observer.unobserve(t),l.observer=new IntersectionObserver(([m])=>{if(typeof l.handler=="function"){if(m.rootBounds===null&&document.body.contains(t)===!0){l.observer.unobserve(t),l.observer.observe(t);return}(l.handler(m,l.observer)===!1||l.once===!0&&m.isIntersecting===!0)&&Wa(t)}},s),l.observer.observe(t))}function Wa(t){const l=t.__qvisible;l!==void 0&&(l.observer!==void 0&&l.observer.unobserve(t),delete t.__qvisible)}const Xf=Da({name:"intersection",mounted(t,{modifiers:l,value:o}){const u={once:l.once===!0};Ua(t,u,o),t.__qvisible=u},updated(t,l){const o=t.__qvisible;o!==void 0&&Ua(t,o,l.value)},beforeUnmount:Wa});function pt(t,l){return t!==void 0&&t()||l}function Jf(t,l){if(t!==void 0){const o=t();if(o!=null)return o.slice()}return l}function qn(t,l){return t!==void 0?l.concat(t()):l}function ed(t,l){return t===void 0?l:l!==void 0?l.concat(t()):t()}function Ha(t,l,o,u,s,f){l.key=u+s;const m=i.h(t,l,o);return s===!0?i.withDirectives(m,f()):m}const td=Ye({name:"QIntersection",props:{tag:{type:String,default:"div"},once:Boolean,transition:String,transitionDuration:{type:[String,Number],default:300},ssrPrerender:Boolean,margin:String,threshold:[Number,Array],root:{default:null},disable:Boolean,onVisibility:Function},setup(t,{slots:l,emit:o}){const u=i.ref(mn.value===!0?t.ssrPrerender:!1),s=i.computed(()=>t.root!==void 0||t.margin!==void 0||t.threshold!==void 0?{handler:C,cfg:{root:t.root,rootMargin:t.margin,threshold:t.threshold}}:C),f=i.computed(()=>t.disable!==!0&&(mn.value!==!0||t.once!==!0||t.ssrPrerender!==!0)),m=i.computed(()=>[[Xf,s.value,void 0,{once:t.once}]]),g=i.computed(()=>`--q-transition-duration: ${t.transitionDuration}ms`);function C(v){u.value!==v.isIntersecting&&(u.value=v.isIntersecting,t.onVisibility!==void 0&&o("visibility",u.value))}function A(){if(u.value===!0)return[i.h("div",{key:"content",style:g.value},pt(l.default))];if(l.hidden!==void 0)return[i.h("div",{key:"hidden",style:g.value},l.hidden())]}return()=>{const v=t.transition?[i.h(i.Transition,{name:"q-transition--"+t.transition},A)]:A();return Ha(t.tag,{class:"q-intersection"},v,"main",f.value,()=>m.value)}}}),Mo={xs:18,sm:24,md:32,lg:38,xl:46},fi={size:String};function di(t,l=Mo){return i.computed(()=>t.size!==void 0?{fontSize:t.size in l?`${l[t.size]}px`:t.size}:null)}const nd={size:{type:[String,Number],default:"1em"},color:String};function rd(t){return{cSize:i.computed(()=>t.size in Mo?`${Mo[t.size]}px`:t.size),classes:i.computed(()=>"q-spinner"+(t.color?` text-${t.color}`:""))}}const Vo=Ye({name:"QSpinner",props:{...nd,thickness:{type:Number,default:5}},setup(t){const{cSize:l,classes:o}=rd(t);return()=>i.h("svg",{class:o.value+" q-spinner-mat",width:l.value,height:l.value,viewBox:"25 25 50 50"},[i.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":t.thickness,"stroke-miterlimit":"10"})])}}),id={ratio:[String,Number]};function od(t,l){return i.computed(()=>{const o=Number(t.ratio||(l!==void 0?l.value:void 0));return isNaN(o)!==!0&&o>0?{paddingBottom:`${100/o}%`}:null})}function Lo(t){if(Object(t.$parent)===t.$parent)return t.$parent;let{parent:l}=t.$;for(;Object(l)===l;){if(Object(l.proxy)===l.proxy)return l.proxy;l=l.parent}}function Ka(t){return t.appContext.config.globalProperties.$router!==void 0}function qr(t){return t.isUnmounted===!0||t.isDeactivated===!0}function hi(){let t=null;const l=i.getCurrentInstance();function o(){t!==null&&(clearTimeout(t),t=null)}return i.onDeactivated(o),i.onBeforeUnmount(o),{removeTimeout:o,registerTimeout(u,s){o(),qr(l)===!1&&(t=setTimeout(()=>{t=null,u()},s))}}}const ld=Ye({name:"QImg",props:{...id,src:String,srcset:String,sizes:String,alt:String,crossorigin:String,decoding:String,referrerpolicy:String,draggable:Boolean,loading:{type:String,default:"lazy"},loadingShowDelay:{type:[Number,String],default:0},fetchpriority:{type:String,default:"auto"},width:String,height:String,initialRatio:{type:[Number,String],default:1.7778},placeholderSrc:String,errorSrc:String,fit:{type:String,default:"cover"},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:l,emit:o}){const u=i.ref(t.initialRatio),s=od(t,u),f=i.getCurrentInstance(),{registerTimeout:m,removeTimeout:g}=hi(),{registerTimeout:C,removeTimeout:A}=hi(),v=i.computed(()=>t.placeholderSrc!==void 0?{src:t.placeholderSrc}:null),k=i.computed(()=>t.errorSrc!==void 0?{src:t.errorSrc,__qerror:!0}:null),y=[i.ref(null),i.ref(v.value)],w=i.ref(0),R=i.ref(!1),W=i.ref(!1),O=i.computed(()=>`q-img q-img--${t.noNativeMenu===!0?"no-":""}menu`),G=i.computed(()=>({width:t.width,height:t.height})),U=i.computed(()=>`q-img__image ${t.imgClass!==void 0?t.imgClass+" ":""}q-img__image--with${t.noTransition===!0?"out":""}-transition q-img__image--`),D=i.computed(()=>({...t.imgStyle,objectFit:t.fit,objectPosition:t.position}));function Q(){if(A(),t.loadingShowDelay===0){R.value=!0;return}C(()=>{R.value=!0},t.loadingShowDelay)}function j(){A(),R.value=!1}function Y({target:S}){qr(f)===!1&&(g(),u.value=S.naturalHeight===0?.5:S.naturalWidth/S.naturalHeight,I(S,1))}function I(S,Z){Z===1e3||qr(f)===!0||(S.complete===!0?le(S):m(()=>{I(S,Z+1)},50))}function le(S){qr(f)!==!0&&(w.value=w.value^1,y[w.value].value=null,j(),S.getAttribute("__qerror")!=="true"&&(W.value=!1),o("load",S.currentSrc||S.src))}function P(S){g(),j(),W.value=!0,y[w.value].value=k.value,y[w.value^1].value=v.value,o("error",S)}function T(S){const Z=y[S].value,F={key:"img_"+S,class:U.value,style:D.value,alt:t.alt,crossorigin:t.crossorigin,decoding:t.decoding,referrerpolicy:t.referrerpolicy,height:t.height,width:t.width,loading:t.loading,fetchpriority:t.fetchpriority,"aria-hidden":"true",draggable:t.draggable,...Z};return w.value===S?Object.assign(F,{class:F.class+"current",onLoad:Y,onError:P}):F.class+="loaded",i.h("div",{class:"q-img__container absolute-full",key:"img"+S},i.h("img",F))}function V(){return R.value===!1?i.h("div",{key:"content",class:"q-img__content absolute-full q-anchor--skip"},pt(l[W.value===!0?"error":"default"])):i.h("div",{key:"loading",class:"q-img__loading absolute-full flex flex-center"},l.loading!==void 0?l.loading():t.noSpinner===!0?void 0:[i.h(Vo,{color:t.spinnerColor,size:t.spinnerSize})])}{let S=function(){i.watch(()=>t.src||t.srcset||t.sizes?{src:t.src,srcset:t.srcset,sizes:t.sizes}:null,Z=>{g(),W.value=!1,Z===null?(j(),y[w.value^1].value=v.value):Q(),y[w.value].value=Z},{immediate:!0})};mn.value===!0?i.onMounted(S):S()}return()=>{const S=[];return s.value!==null&&S.push(i.h("div",{key:"filler",style:s.value})),y[0].value!==null&&S.push(T(0)),y[1].value!==null&&S.push(T(1)),S.push(i.h(i.Transition,{name:"q-transition--fade"},V)),i.h("div",{key:"main",class:O.value,style:G.value,role:"img","aria-label":t.alt},S)}}}),Ga="0 0 24 24",ja=t=>t,Io=t=>`ionicons ${t}`,Qa={"mdi-":t=>`mdi ${t}`,"icon-":ja,"bt-":t=>`bt ${t}`,"eva-":t=>`eva ${t}`,"ion-md":Io,"ion-ios":Io,"ion-logo":Io,"iconfont ":ja,"ti-":t=>`themify-icon ${t}`,"bi-":t=>`bootstrap-icons ${t}`},Ya={o_:"-outlined",r_:"-round",s_:"-sharp"},Za={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},ad=new RegExp("^("+Object.keys(Qa).join("|")+")"),ud=new RegExp("^("+Object.keys(Ya).join("|")+")"),Xa=new RegExp("^("+Object.keys(Za).join("|")+")"),sd=/^[Mm]\s?[-+]?\.?\d/,cd=/^img:/,fd=/^svguse:/,dd=/^ion-/,hd=/^(fa-(sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,vt=Ye({name:"QIcon",props:{...fi,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(t,{slots:l}){const{proxy:{$q:o}}=i.getCurrentInstance(),u=di(t),s=i.computed(()=>"q-icon"+(t.left===!0?" on-left":"")+(t.right===!0?" on-right":"")+(t.color!==void 0?` text-${t.color}`:"")),f=i.computed(()=>{let m,g=t.name;if(g==="none"||!g)return{none:!0};if(o.iconMapFn!==null){const v=o.iconMapFn(g);if(v!==void 0)if(v.icon!==void 0){if(g=v.icon,g==="none"||!g)return{none:!0}}else return{cls:v.cls,content:v.content!==void 0?v.content:" "}}if(sd.test(g)===!0){const[v,k=Ga]=g.split("|");return{svg:!0,viewBox:k,nodes:v.split("&&").map(y=>{const[w,R,W]=y.split("@@");return i.h("path",{style:R,d:w,transform:W})})}}if(cd.test(g)===!0)return{img:!0,src:g.substring(4)};if(fd.test(g)===!0){const[v,k=Ga]=g.split("|");return{svguse:!0,src:v.substring(7),viewBox:k}}let C=" ";const A=g.match(ad);if(A!==null)m=Qa[A[1]](g);else if(hd.test(g)===!0)m=g;else if(dd.test(g)===!0)m=`ionicons ion-${o.platform.is.ios===!0?"ios":"md"}${g.substring(3)}`;else if(Xa.test(g)===!0){m="notranslate material-symbols";const v=g.match(Xa);v!==null&&(g=g.substring(6),m+=Za[v[1]]),C=g}else{m="notranslate material-icons";const v=g.match(ud);v!==null&&(g=g.substring(2),m+=Ya[v[1]]),C=g}return{cls:m,content:C}});return()=>{const m={class:s.value,style:u.value,"aria-hidden":"true",role:"presentation"};return f.value.none===!0?i.h(t.tag,m,pt(l.default)):f.value.img===!0?i.h(t.tag,m,qn(l.default,[i.h("img",{src:f.value.src})])):f.value.svg===!0?i.h(t.tag,m,qn(l.default,[i.h("svg",{viewBox:f.value.viewBox||"0 0 24 24"},f.value.nodes)])):f.value.svguse===!0?i.h(t.tag,m,qn(l.default,[i.h("svg",{viewBox:f.value.viewBox},[i.h("use",{"xlink:href":f.value.src})])])):(f.value.cls!==void 0&&(m.class+=" "+f.value.cls),i.h(t.tag,m,qn(l.default,[f.value.content])))}}}),md={class:"card-select-container"},gd=["onClick"],pd={class:"check"},vd={class:"row justify-center items-center",style:{height:"100%"}},_d=["onClick"],bd=i.defineComponent({__name:"CardsSelectControl",props:i.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=i.useModel(t,"modelValue"),o=t,{control:u}=i.toRefs(o);function s(g){if(u.value.multiple){let C=Pe.cloneDeep(l.value);g.exclusive?C=[g.value]:(C=C.filter(A=>{var v,k;return!((k=(v=u.value.options)==null?void 0:v.find(y=>y.value===A))!=null&&k.exclusive)}),C.includes(g.value)?C=C.filter(A=>A!==g.value):C.push(g.value)),l.value=C}else l.value=g.value}function f(g){return m(g)?"active":""}function m(g){let C;return u.value.multiple?C=(l.value||[]).includes(String(g.value)):C=l.value===g.value,C}return(g,C)=>{const A=i.resolveComponent("ControlLabel");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.unref(u).label?(i.openBlock(),i.createBlock(A,{key:0,label:i.unref(u).label},null,8,["label"])):i.createCommentVNode("",!0),i.createElementVNode("div",md,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(u).options,(v,k)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:k},[v.image?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(`image-card ${f(v)}`),onClick:()=>s(v)},[i.createVNode(ld,{src:v.image,height:"200px",width:"200px",fit:"fill",class:"image"},null,8,["src"]),i.createElementVNode("div",pd,[i.createElementVNode("div",vd,[m(v)?(i.openBlock(),i.createBlock(vt,{key:0,name:"check",size:"25px"})):i.createCommentVNode("",!0)])])],10,gd)):(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(`card-option ${f(v)}`),onClick:()=>s(v)},[i.createElementVNode("span",null,i.toDisplayString(v.label),1)],10,_d))],64))),128))])],64)}}}),gn=(t,l)=>{const o=t.__vccOpts||t;for(const[u,s]of l)o[u]=s;return o},yd=gn(bd,[["__scopeId","data-v-148468d6"]]),rr={dark:{type:Boolean,default:null}};function ir(t,l){return i.computed(()=>t.dark===null?l.dark.isActive:t.dark)}function wd(t,l){const o=i.ref(null),u=i.computed(()=>t.disable===!0?null:i.h("span",{ref:o,class:"no-outline",tabindex:-1}));function s(f){const m=l.value;f!==void 0&&f.type.indexOf("key")===0?m!==null&&document.activeElement!==m&&m.contains(document.activeElement)===!0&&m.focus():o.value!==null&&(f===void 0||m!==null&&m.contains(f.target)===!0)&&o.value.focus()}return{refocusTargetEl:u,refocusTarget:s}}const Po={name:String};function Sd(t={}){return(l,o,u)=>{l[o](i.h("input",{class:"hidden"+(u||""),...t.value}))}}function Ja(t){return i.computed(()=>t.name||t.for)}const xd={xs:30,sm:35,md:40,lg:50,xl:60},st={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const t=Object.defineProperty({},"passive",{get(){Object.assign(st,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,t),window.removeEventListener("qtest",null,t)}catch{}function Cd(){}function eu(t){return t.touches&&t.touches[0]?t=t.touches[0]:t.changedTouches&&t.changedTouches[0]?t=t.changedTouches[0]:t.targetTouches&&t.targetTouches[0]&&(t=t.targetTouches[0]),{top:t.clientY,left:t.clientX}}function kd(t){if(t.path)return t.path;if(t.composedPath)return t.composedPath();const l=[];let o=t.target;for(;o;){if(l.push(o),o.tagName==="HTML")return l.push(document),l.push(window),l;o=o.parentElement}}function Kt(t){t.stopPropagation()}function It(t){t.cancelable!==!1&&t.preventDefault()}function Ke(t){t.cancelable!==!1&&t.preventDefault(),t.stopPropagation()}function No(t,l,o){const u=`__q_${l}_evt`;t[u]=t[u]!==void 0?t[u].concat(o):o,o.forEach(s=>{s[0].addEventListener(s[1],t[s[2]],st[s[3]])})}function tu(t,l){const o=`__q_${l}_evt`;t[o]!==void 0&&(t[o].forEach(u=>{u[0].removeEventListener(u[1],t[u[2]],st[u[3]])}),t[o]=void 0)}const nu={...rr,...fi,...Po,modelValue:{required:!0,default:null},val:{},trueValue:{default:!0},falseValue:{default:!1},indeterminateValue:{default:null},checkedIcon:String,uncheckedIcon:String,indeterminateIcon:String,toggleOrder:{type:String,validator:t=>t==="tf"||t==="ft"},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},ru=["update:modelValue"];function iu(t,l){const{props:o,slots:u,emit:s,proxy:f}=i.getCurrentInstance(),{$q:m}=f,g=ir(o,m),C=i.ref(null),{refocusTargetEl:A,refocusTarget:v}=wd(o,C),k=di(o,xd),y=i.computed(()=>o.val!==void 0&&Array.isArray(o.modelValue)),w=i.computed(()=>{const S=i.toRaw(o.val);return y.value===!0?o.modelValue.findIndex(Z=>i.toRaw(Z)===S):-1}),R=i.computed(()=>y.value===!0?w.value!==-1:i.toRaw(o.modelValue)===i.toRaw(o.trueValue)),W=i.computed(()=>y.value===!0?w.value===-1:i.toRaw(o.modelValue)===i.toRaw(o.falseValue)),O=i.computed(()=>R.value===!1&&W.value===!1),G=i.computed(()=>o.disable===!0?-1:o.tabindex||0),U=i.computed(()=>`q-${t} cursor-pointer no-outline row inline no-wrap items-center`+(o.disable===!0?" disabled":"")+(g.value===!0?` q-${t}--dark`:"")+(o.dense===!0?` q-${t}--dense`:"")+(o.leftLabel===!0?" reverse":"")),D=i.computed(()=>{const S=R.value===!0?"truthy":W.value===!0?"falsy":"indet",Z=o.color!==void 0&&(o.keepColor===!0||(t==="toggle"?R.value===!0:W.value!==!0))?` text-${o.color}`:"";return`q-${t}__inner relative-position non-selectable q-${t}__inner--${S}${Z}`}),Q=i.computed(()=>{const S={type:"checkbox"};return o.name!==void 0&&Object.assign(S,{".checked":R.value,"^checked":R.value===!0?"checked":void 0,name:o.name,value:y.value===!0?o.val:o.trueValue}),S}),j=Sd(Q),Y=i.computed(()=>{const S={tabindex:G.value,role:t==="toggle"?"switch":"checkbox","aria-label":o.label,"aria-checked":O.value===!0?"mixed":R.value===!0?"true":"false"};return o.disable===!0&&(S["aria-disabled"]="true"),S});function I(S){S!==void 0&&(Ke(S),v(S)),o.disable!==!0&&s("update:modelValue",le(),S)}function le(){if(y.value===!0){if(R.value===!0){const S=o.modelValue.slice();return S.splice(w.value,1),S}return o.modelValue.concat([o.val])}if(R.value===!0){if(o.toggleOrder!=="ft"||o.toggleIndeterminate===!1)return o.falseValue}else if(W.value===!0){if(o.toggleOrder==="ft"||o.toggleIndeterminate===!1)return o.trueValue}else return o.toggleOrder!=="ft"?o.trueValue:o.falseValue;return o.indeterminateValue}function P(S){(S.keyCode===13||S.keyCode===32)&&Ke(S)}function T(S){(S.keyCode===13||S.keyCode===32)&&I(S)}const V=l(R,O);return Object.assign(f,{toggle:I}),()=>{const S=V();o.disable!==!0&&j(S,"unshift",` q-${t}__native absolute q-ma-none q-pa-none`);const Z=[i.h("div",{class:D.value,style:k.value,"aria-hidden":"true"},S)];A.value!==null&&Z.push(A.value);const F=o.label!==void 0?qn(u.default,[o.label]):pt(u.default);return F!==void 0&&Z.push(i.h("div",{class:`q-${t}__label q-anchor--skip`},F)),i.h("div",{ref:C,class:U.value,...Y.value,onClick:I,onKeydown:P,onKeyup:T},Z)}}const Ed=i.h("div",{key:"svg",class:"q-checkbox__bg absolute"},[i.h("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[i.h("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),i.h("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),ou=Ye({name:"QCheckbox",props:nu,emits:ru,setup(t){function l(o,u){const s=i.computed(()=>(o.value===!0?t.checkedIcon:u.value===!0?t.indeterminateIcon:t.uncheckedIcon)||null);return()=>s.value!==null?[i.h("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[i.h(vt,{class:"q-checkbox__icon",name:s.value})])]:[Ed]}return iu("checkbox",l)}}),lu=i.defineComponent({__name:"SimpleCheckbox",props:i.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=i.useModel(t,"modelValue");return(o,u)=>(i.openBlock(),i.createBlock(ou,{outlined:"",label:o.control.label,color:"green-10","model-value":!!l.value,"onUpdate:modelValue":u[0]||(u[0]=s=>l.value=!l.value),style:{height:"66.2px"}},null,8,["label","model-value"]))}}),Ad=Ye({name:"QToggle",props:{...nu,icon:String,iconColor:String},emits:ru,setup(t){function l(o,u){const s=i.computed(()=>(o.value===!0?t.checkedIcon:u.value===!0?t.indeterminateIcon:t.uncheckedIcon)||t.icon),f=i.computed(()=>o.value===!0?t.iconColor:null);return()=>[i.h("div",{class:"q-toggle__track"}),i.h("div",{class:"q-toggle__thumb absolute flex flex-center no-wrap"},s.value!==void 0?[i.h(vt,{name:s.value,color:f.value})]:void 0)]}return iu("toggle",l)}}),Td=i.defineComponent({__name:"SimpleSwitch",props:i.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=i.useModel(t,"modelValue");return(o,u)=>(i.openBlock(),i.createBlock(Ad,{falseValue:0,trueValue:1,outlined:"",label:o.control.label,modelValue:l.value,"onUpdate:modelValue":u[0]||(u[0]=s=>l.value=s),leftLabel:"",color:"green-10",style:{height:"66.2px"}},null,8,["label","modelValue"]))}});let $o,mi=0;const Je=new Array(256);for(let t=0;t<256;t++)Je[t]=(t+256).toString(16).substring(1);const Bd=(()=>{const t=typeof crypto<"u"?crypto:typeof window<"u"?window.crypto||window.msCrypto:void 0;if(t!==void 0){if(t.randomBytes!==void 0)return t.randomBytes;if(t.getRandomValues!==void 0)return l=>{const o=new Uint8Array(l);return t.getRandomValues(o),o}}return l=>{const o=[];for(let u=l;u>0;u--)o.push(Math.floor(Math.random()*256));return o}})(),au=4096;function Fo(){($o===void 0||mi+16>au)&&(mi=0,$o=Bd(au));const t=Array.prototype.slice.call($o,mi,mi+=16);return t[6]=t[6]&15|64,t[8]=t[8]&63|128,Je[t[0]]+Je[t[1]]+Je[t[2]]+Je[t[3]]+"-"+Je[t[4]]+Je[t[5]]+"-"+Je[t[6]]+Je[t[7]]+"-"+Je[t[8]]+Je[t[9]]+"-"+Je[t[10]]+Je[t[11]]+Je[t[12]]+Je[t[13]]+Je[t[14]]+Je[t[15]]}function Rd(t){return t??null}function uu(t,l){return t??(l===!0?`f_${Fo()}`:null)}function Od({getValue:t,required:l=!0}={}){if(mn.value===!0){const o=t!==void 0?i.ref(Rd(t())):i.ref(null);return l===!0&&o.value===null&&i.onMounted(()=>{o.value=`f_${Fo()}`}),t!==void 0&&i.watch(t,u=>{o.value=uu(u,l)}),o}return t!==void 0?i.computed(()=>uu(t(),l)):i.ref(`f_${Fo()}`)}const su=/^on[A-Z]/;function qd(){const{attrs:t,vnode:l}=i.getCurrentInstance(),o={listeners:i.ref({}),attributes:i.ref({})};function u(){const s={},f={};for(const m in t)m!=="class"&&m!=="style"&&su.test(m)===!1&&(s[m]=t[m]);for(const m in l.props)su.test(m)===!0&&(f[m]=l.props[m]);o.attributes.value=s,o.listeners.value=f}return i.onBeforeUpdate(u),u(),o}const Md="_q_",Vd="_q_fo_";function Ld({validate:t,resetValidation:l,requiresQForm:o}){const u=i.inject(Vd,!1);if(u!==!1){const{props:s,proxy:f}=i.getCurrentInstance();Object.assign(f,{validate:t,resetValidation:l}),i.watch(()=>s.disable,m=>{m===!0?(typeof l=="function"&&l(),u.unbindComponent(f)):u.bindComponent(f)}),i.onMounted(()=>{s.disable!==!0&&u.bindComponent(f)}),i.onBeforeUnmount(()=>{s.disable!==!0&&u.unbindComponent(f)})}else o===!0&&console.error("Parent QForm not found on useFormChild()!")}const cu=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,fu=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,du=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,gi=/^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])\)$/,pi=/^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)\)$/,Do={date:t=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(t),time:t=>/^([0-1]?\d|2[0-3]):[0-5]\d$/.test(t),fulltime:t=>/^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(t),timeOrFulltime:t=>/^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/.test(t),email:t=>/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t),hexColor:t=>cu.test(t),hexaColor:t=>fu.test(t),hexOrHexaColor:t=>du.test(t),rgbColor:t=>gi.test(t),rgbaColor:t=>pi.test(t),rgbOrRgbaColor:t=>gi.test(t)||pi.test(t),hexOrRgbColor:t=>cu.test(t)||gi.test(t),hexaOrRgbaColor:t=>fu.test(t)||pi.test(t),anyColor:t=>du.test(t)||gi.test(t)||pi.test(t)};function hu(t,l=250,o){let u=null;function s(){const f=arguments,m=()=>{u=null,t.apply(this,f)};u!==null&&clearTimeout(u),u=setTimeout(m,l)}return s.cancel=()=>{u!==null&&clearTimeout(u)},s}const Id=[!0,!1,"ondemand"],Pd={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:t=>Id.includes(t)}};function Nd(t,l){const{props:o,proxy:u}=i.getCurrentInstance(),s=i.ref(!1),f=i.ref(null),m=i.ref(!1);Ld({validate:W,resetValidation:R});let g=0,C;const A=i.computed(()=>o.rules!==void 0&&o.rules!==null&&o.rules.length!==0),v=i.computed(()=>o.disable!==!0&&A.value===!0&&l.value===!1),k=i.computed(()=>o.error===!0||s.value===!0),y=i.computed(()=>typeof o.errorMessage=="string"&&o.errorMessage.length!==0?o.errorMessage:f.value);i.watch(()=>o.modelValue,()=>{m.value=!0,v.value===!0&&o.lazyRules===!1&&O()});function w(){o.lazyRules!=="ondemand"&&v.value===!0&&m.value===!0&&O()}i.watch(()=>o.reactiveRules,G=>{G===!0?C===void 0&&(C=i.watch(()=>o.rules,w,{immediate:!0,deep:!0})):C!==void 0&&(C(),C=void 0)},{immediate:!0}),i.watch(()=>o.lazyRules,w),i.watch(t,G=>{G===!0?m.value=!0:v.value===!0&&o.lazyRules!=="ondemand"&&O()});function R(){g++,l.value=!1,m.value=!1,s.value=!1,f.value=null,O.cancel()}function W(G=o.modelValue){if(o.disable===!0||A.value===!1)return!0;const U=++g,D=l.value!==!0?()=>{m.value=!0}:()=>{},Q=(Y,I)=>{Y===!0&&D(),s.value=Y,f.value=I||null,l.value=!1},j=[];for(let Y=0;Y<o.rules.length;Y++){const I=o.rules[Y];let le;if(typeof I=="function"?le=I(G,Do):typeof I=="string"&&Do[I]!==void 0&&(le=Do[I](G)),le===!1||typeof le=="string")return Q(!0,le),!1;le!==!0&&le!==void 0&&j.push(le)}return j.length===0?(Q(!1),!0):(l.value=!0,Promise.all(j).then(Y=>{if(Y===void 0||Array.isArray(Y)===!1||Y.length===0)return U===g&&Q(!1),!0;const I=Y.find(le=>le===!1||typeof le=="string");return U===g&&Q(I!==void 0,I),I===void 0},Y=>(U===g&&(console.error(Y),Q(!0)),!1)))}const O=hu(W,0);return i.onBeforeUnmount(()=>{C!==void 0&&C(),O.cancel()}),Object.assign(u,{resetValidation:R,validate:W}),ci(u,"hasError",()=>k.value),{isDirtyModel:m,hasRules:A,hasError:k,errorMessage:y,validate:W,resetValidation:R}}let Mn=[],Mr=[];function mu(t){Mr=Mr.filter(l=>l!==t)}function $d(t){mu(t),Mr.push(t)}function gu(t){mu(t),Mr.length===0&&Mn.length!==0&&(Mn[Mn.length-1](),Mn=[])}function vi(t){Mr.length===0?t():Mn.push(t)}function Fd(t){Mn=Mn.filter(l=>l!==t)}function Vr(t){return t!=null&&(""+t).length!==0}const _i={...{...rr,...Pd,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]},zo=["update:modelValue","clear","focus","blur"];function Uo({requiredForAttr:t=!0,tagProp:l,changeEvent:o=!1}={}){const{props:u,proxy:s}=i.getCurrentInstance(),f=ir(u,s.$q),m=Od({required:t,getValue:()=>u.for});return{requiredForAttr:t,changeEvent:o,tag:l===!0?i.computed(()=>u.tag):{value:"label"},isDark:f,editable:i.computed(()=>u.disable!==!0&&u.readonly!==!0),innerLoading:i.ref(!1),focused:i.ref(!1),hasPopupOpen:!1,splitAttrs:qd(),targetUid:m,rootRef:i.ref(null),targetRef:i.ref(null),controlRef:i.ref(null)}}function Wo(t){const{props:l,emit:o,slots:u,attrs:s,proxy:f}=i.getCurrentInstance(),{$q:m}=f;let g=null;t.hasValue===void 0&&(t.hasValue=i.computed(()=>Vr(l.modelValue))),t.emitValue===void 0&&(t.emitValue=H=>{o("update:modelValue",H)}),t.controlEvents===void 0&&(t.controlEvents={onFocusin:P,onFocusout:T}),Object.assign(t,{clearValue:V,onControlFocusin:P,onControlFocusout:T,focus:I}),t.computedCounter===void 0&&(t.computedCounter=i.computed(()=>{if(l.counter!==!1){const H=typeof l.modelValue=="string"||typeof l.modelValue=="number"?(""+l.modelValue).length:Array.isArray(l.modelValue)===!0?l.modelValue.length:0,ie=l.maxlength!==void 0?l.maxlength:l.maxValues;return H+(ie!==void 0?" / "+ie:"")}}));const{isDirtyModel:C,hasRules:A,hasError:v,errorMessage:k,resetValidation:y}=Nd(t.focused,t.innerLoading),w=t.floatingLabel!==void 0?i.computed(()=>l.stackLabel===!0||t.focused.value===!0||t.floatingLabel.value===!0):i.computed(()=>l.stackLabel===!0||t.focused.value===!0||t.hasValue.value===!0),R=i.computed(()=>l.bottomSlots===!0||l.hint!==void 0||A.value===!0||l.counter===!0||l.error!==null),W=i.computed(()=>l.filled===!0?"filled":l.outlined===!0?"outlined":l.borderless===!0?"borderless":l.standout?"standout":"standard"),O=i.computed(()=>`q-field row no-wrap items-start q-field--${W.value}`+(t.fieldClass!==void 0?` ${t.fieldClass.value}`:"")+(l.rounded===!0?" q-field--rounded":"")+(l.square===!0?" q-field--square":"")+(w.value===!0?" q-field--float":"")+(U.value===!0?" q-field--labeled":"")+(l.dense===!0?" q-field--dense":"")+(l.itemAligned===!0?" q-field--item-aligned q-item-type":"")+(t.isDark.value===!0?" q-field--dark":"")+(t.getControl===void 0?" q-field--auto-height":"")+(t.focused.value===!0?" q-field--focused":"")+(v.value===!0?" q-field--error":"")+(v.value===!0||t.focused.value===!0?" q-field--highlighted":"")+(l.hideBottomSpace!==!0&&R.value===!0?" q-field--with-bottom":"")+(l.disable===!0?" q-field--disabled":l.readonly===!0?" q-field--readonly":"")),G=i.computed(()=>"q-field__control relative-position row no-wrap"+(l.bgColor!==void 0?` bg-${l.bgColor}`:"")+(v.value===!0?" text-negative":typeof l.standout=="string"&&l.standout.length!==0&&t.focused.value===!0?` ${l.standout}`:l.color!==void 0?` text-${l.color}`:"")),U=i.computed(()=>l.labelSlot===!0||l.label!==void 0),D=i.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(l.labelColor!==void 0&&v.value!==!0?` text-${l.labelColor}`:"")),Q=i.computed(()=>({id:t.targetUid.value,editable:t.editable.value,focused:t.focused.value,floatingLabel:w.value,modelValue:l.modelValue,emitValue:t.emitValue})),j=i.computed(()=>{const H={};return t.targetUid.value&&(H.for=t.targetUid.value),l.disable===!0&&(H["aria-disabled"]="true"),H});function Y(){const H=document.activeElement;let ie=t.targetRef!==void 0&&t.targetRef.value;ie&&(H===null||H.id!==t.targetUid.value)&&(ie.hasAttribute("tabindex")===!0||(ie=ie.querySelector("[tabindex]")),ie&&ie!==H&&ie.focus({preventScroll:!0}))}function I(){vi(Y)}function le(){Fd(Y);const H=document.activeElement;H!==null&&t.rootRef.value.contains(H)&&H.blur()}function P(H){g!==null&&(clearTimeout(g),g=null),t.editable.value===!0&&t.focused.value===!1&&(t.focused.value=!0,o("focus",H))}function T(H,ie){g!==null&&clearTimeout(g),g=setTimeout(()=>{g=null,!(document.hasFocus()===!0&&(t.hasPopupOpen===!0||t.controlRef===void 0||t.controlRef.value===null||t.controlRef.value.contains(document.activeElement)!==!1))&&(t.focused.value===!0&&(t.focused.value=!1,o("blur",H)),ie!==void 0&&ie())})}function V(H){Ke(H),m.platform.is.mobile!==!0?(t.targetRef!==void 0&&t.targetRef.value||t.rootRef.value).focus():t.rootRef.value.contains(document.activeElement)===!0&&document.activeElement.blur(),l.type==="file"&&(t.inputRef.value.value=null),o("update:modelValue",null),t.changeEvent===!0&&o("change",null),o("clear",l.modelValue),i.nextTick(()=>{const ie=C.value;y(),C.value=ie})}function S(H){[13,32].includes(H.keyCode)&&V(H)}function Z(){const H=[];return u.prepend!==void 0&&H.push(i.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:It},u.prepend())),H.push(i.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},F())),v.value===!0&&l.noErrorIcon===!1&&H.push(se("error",[i.h(vt,{name:m.iconSet.field.error,color:"negative"})])),l.loading===!0||t.innerLoading.value===!0?H.push(se("inner-loading-append",u.loading!==void 0?u.loading():[i.h(Vo,{color:l.color})])):l.clearable===!0&&t.hasValue.value===!0&&t.editable.value===!0&&H.push(se("inner-clearable-append",[i.h(vt,{class:"q-field__focusable-action",name:l.clearIcon||m.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":m.lang.label.clear,onKeyup:S,onClick:V})])),u.append!==void 0&&H.push(i.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:It},u.append())),t.getInnerAppend!==void 0&&H.push(se("inner-append",t.getInnerAppend())),t.getControlChild!==void 0&&H.push(t.getControlChild()),H}function F(){const H=[];return l.prefix!==void 0&&l.prefix!==null&&H.push(i.h("div",{class:"q-field__prefix no-pointer-events row items-center"},l.prefix)),t.getShadowControl!==void 0&&t.hasShadow.value===!0&&H.push(t.getShadowControl()),t.getControl!==void 0?H.push(t.getControl()):u.rawControl!==void 0?H.push(u.rawControl()):u.control!==void 0&&H.push(i.h("div",{ref:t.targetRef,class:"q-field__native row",tabindex:-1,...t.splitAttrs.attributes.value,"data-autofocus":l.autofocus===!0||void 0},u.control(Q.value))),U.value===!0&&H.push(i.h("div",{class:D.value},pt(u.label,l.label))),l.suffix!==void 0&&l.suffix!==null&&H.push(i.h("div",{class:"q-field__suffix no-pointer-events row items-center"},l.suffix)),H.concat(pt(u.default))}function ae(){let H,ie;v.value===!0?k.value!==null?(H=[i.h("div",{role:"alert"},k.value)],ie=`q--slot-error-${k.value}`):(H=pt(u.error),ie="q--slot-error"):(l.hideHint!==!0||t.focused.value===!0)&&(l.hint!==void 0?(H=[i.h("div",l.hint)],ie=`q--slot-hint-${l.hint}`):(H=pt(u.hint),ie="q--slot-hint"));const ge=l.counter===!0||u.counter!==void 0;if(l.hideBottomSpace===!0&&ge===!1&&H===void 0)return;const q=i.h("div",{key:ie,class:"q-field__messages col"},H);return i.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(l.hideBottomSpace!==!0?"animated":"stale"),onClick:It},[l.hideBottomSpace===!0?q:i.h(i.Transition,{name:"q-transition--field-message"},()=>q),ge===!0?i.h("div",{class:"q-field__counter"},u.counter!==void 0?u.counter():t.computedCounter.value):null])}function se(H,ie){return ie===null?null:i.h("div",{key:H,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},ie)}let ce=!1;return i.onDeactivated(()=>{ce=!0}),i.onActivated(()=>{ce===!0&&l.autofocus===!0&&f.focus()}),l.autofocus===!0&&i.onMounted(()=>{f.focus()}),i.onBeforeUnmount(()=>{g!==null&&clearTimeout(g)}),Object.assign(f,{focus:I,blur:le}),function(){const ie=t.getControl===void 0&&u.control===void 0?{...t.splitAttrs.attributes.value,"data-autofocus":l.autofocus===!0||void 0,...j.value}:j.value;return i.h(t.tag.value,{ref:t.rootRef,class:[O.value,s.class],style:s.style,...ie},[u.before!==void 0?i.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:It},u.before()):null,i.h("div",{class:"q-field__inner relative-position col self-stretch"},[i.h("div",{ref:t.controlRef,class:G.value,tabindex:-1,...t.controlEvents},Z()),R.value===!0?ae():null]),u.after!==void 0?i.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:It},u.after()):null])}}function Ho(t){return t!==Object(t)||t.isComposing===!0||t.qKeyEvent===!0}function Vn(t,l){return Ho(t)===!0?!1:[].concat(l).includes(t.keyCode)}const pu={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},bi={"#":{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:t=>t.toLocaleUpperCase()},a:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:t=>t.toLocaleLowerCase()},X:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:t=>t.toLocaleUpperCase()},x:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:t=>t.toLocaleLowerCase()}},vu=Object.keys(bi);vu.forEach(t=>{bi[t].regex=new RegExp(bi[t].pattern)});const Dd=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+vu.join("")+"])|(.)","g"),_u=/[.*+?^${}()|[\]\\]/g,We="",zd={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function Ud(t,l,o,u){let s,f,m,g,C,A;const v=i.ref(null),k=i.ref(w());function y(){return t.autogrow===!0||["textarea","text","search","url","tel","password"].includes(t.type)}i.watch(()=>t.type+t.autogrow,W),i.watch(()=>t.mask,P=>{if(P!==void 0)O(k.value,!0);else{const T=I(k.value);W(),t.modelValue!==T&&l("update:modelValue",T)}}),i.watch(()=>t.fillMask+t.reverseFillMask,()=>{v.value===!0&&O(k.value,!0)}),i.watch(()=>t.unmaskedValue,()=>{v.value===!0&&O(k.value)});function w(){if(W(),v.value===!0){const P=j(I(t.modelValue));return t.fillMask!==!1?le(P):P}return t.modelValue}function R(P){if(P<s.length)return s.slice(-P);let T="",V=s;const S=V.indexOf(We);if(S!==-1){for(let Z=P-V.length;Z>0;Z--)T+=We;V=V.slice(0,S)+T+V.slice(S)}return V}function W(){if(v.value=t.mask!==void 0&&t.mask.length!==0&&y(),v.value===!1){g=void 0,s="",f="";return}const P=pu[t.mask]===void 0?t.mask:pu[t.mask],T=typeof t.fillMask=="string"&&t.fillMask.length!==0?t.fillMask.slice(0,1):"_",V=T.replace(_u,"\\$&"),S=[],Z=[],F=[];let ae=t.reverseFillMask===!0,se="",ce="";P.replace(Dd,(q,B,oe,ve,_e)=>{if(ve!==void 0){const K=bi[ve];F.push(K),ce=K.negate,ae===!0&&(Z.push("(?:"+ce+"+)?("+K.pattern+"+)?(?:"+ce+"+)?("+K.pattern+"+)?"),ae=!1),Z.push("(?:"+ce+"+)?("+K.pattern+")?")}else if(oe!==void 0)se="\\"+(oe==="\\"?"":oe),F.push(oe),S.push("([^"+se+"]+)?"+se+"?");else{const K=B!==void 0?B:_e;se=K==="\\"?"\\\\\\\\":K.replace(_u,"\\\\$&"),F.push(K),S.push("([^"+se+"]+)?"+se+"?")}});const H=new RegExp("^"+S.join("")+"("+(se===""?".":"[^"+se+"]")+"+)?"+(se===""?"":"["+se+"]*")+"$"),ie=Z.length-1,ge=Z.map((q,B)=>B===0&&t.reverseFillMask===!0?new RegExp("^"+V+"*"+q):B===ie?new RegExp("^"+q+"("+(ce===""?".":ce)+"+)?"+(t.reverseFillMask===!0?"$":V+"*")):new RegExp("^"+q));m=F,g=q=>{const B=H.exec(t.reverseFillMask===!0?q:q.slice(0,F.length+1));B!==null&&(q=B.slice(1).join(""));const oe=[],ve=ge.length;for(let _e=0,K=q;_e<ve;_e++){const ne=ge[_e].exec(K);if(ne===null)break;K=K.slice(ne.shift().length),oe.push(...ne)}return oe.length!==0?oe.join(""):q},s=F.map(q=>typeof q=="string"?q:We).join(""),f=s.split(We).join(T)}function O(P,T,V){const S=u.value,Z=S.selectionEnd,F=S.value.length-Z,ae=I(P);T===!0&&W();const se=j(ae),ce=t.fillMask!==!1?le(se):se,H=k.value!==ce;S.value!==ce&&(S.value=ce),H===!0&&(k.value=ce),document.activeElement===S&&i.nextTick(()=>{if(ce===f){const ge=t.reverseFillMask===!0?f.length:0;S.setSelectionRange(ge,ge,"forward");return}if(V==="insertFromPaste"&&t.reverseFillMask!==!0){const ge=S.selectionEnd;let q=Z-1;for(let B=C;B<=q&&B<ge;B++)s[B]!==We&&q++;U.right(S,q);return}if(["deleteContentBackward","deleteContentForward"].indexOf(V)!==-1){const ge=t.reverseFillMask===!0?Z===0?ce.length>se.length?1:0:Math.max(0,ce.length-(ce===f?0:Math.min(se.length,F)+1))+1:Z;S.setSelectionRange(ge,ge,"forward");return}if(t.reverseFillMask===!0)if(H===!0){const ge=Math.max(0,ce.length-(ce===f?0:Math.min(se.length,F+1)));ge===1&&Z===1?S.setSelectionRange(ge,ge,"forward"):U.rightReverse(S,ge)}else{const ge=ce.length-F;S.setSelectionRange(ge,ge,"backward")}else if(H===!0){const ge=Math.max(0,s.indexOf(We),Math.min(se.length,Z)-1);U.right(S,ge)}else{const ge=Z-1;U.right(S,ge)}});const ie=t.unmaskedValue===!0?I(ce):ce;String(t.modelValue)!==ie&&(t.modelValue!==null||ie!=="")&&o(ie,!0)}function G(P,T,V){const S=j(I(P.value));T=Math.max(0,s.indexOf(We),Math.min(S.length,T)),C=T,P.setSelectionRange(T,V,"forward")}const U={left(P,T){const V=s.slice(T-1).indexOf(We)===-1;let S=Math.max(0,T-1);for(;S>=0;S--)if(s[S]===We){T=S,V===!0&&T++;break}if(S<0&&s[T]!==void 0&&s[T]!==We)return U.right(P,0);T>=0&&P.setSelectionRange(T,T,"backward")},right(P,T){const V=P.value.length;let S=Math.min(V,T+1);for(;S<=V;S++)if(s[S]===We){T=S;break}else s[S-1]===We&&(T=S);if(S>V&&s[T-1]!==void 0&&s[T-1]!==We)return U.left(P,V);P.setSelectionRange(T,T,"forward")},leftReverse(P,T){const V=R(P.value.length);let S=Math.max(0,T-1);for(;S>=0;S--)if(V[S-1]===We){T=S;break}else if(V[S]===We&&(T=S,S===0))break;if(S<0&&V[T]!==void 0&&V[T]!==We)return U.rightReverse(P,0);T>=0&&P.setSelectionRange(T,T,"backward")},rightReverse(P,T){const V=P.value.length,S=R(V),Z=S.slice(0,T+1).indexOf(We)===-1;let F=Math.min(V,T+1);for(;F<=V;F++)if(S[F-1]===We){T=F,T>0&&Z===!0&&T--;break}if(F>V&&S[T-1]!==void 0&&S[T-1]!==We)return U.leftReverse(P,V);P.setSelectionRange(T,T,"forward")}};function D(P){l("click",P),A=void 0}function Q(P){if(l("keydown",P),Ho(P)===!0||P.altKey===!0)return;const T=u.value,V=T.selectionStart,S=T.selectionEnd;if(P.shiftKey||(A=void 0),P.keyCode===37||P.keyCode===39){P.shiftKey&&A===void 0&&(A=T.selectionDirection==="forward"?V:S);const Z=U[(P.keyCode===39?"right":"left")+(t.reverseFillMask===!0?"Reverse":"")];if(P.preventDefault(),Z(T,A===V?S:V),P.shiftKey){const F=T.selectionStart;T.setSelectionRange(Math.min(A,F),Math.max(A,F),"forward")}}else P.keyCode===8&&t.reverseFillMask!==!0&&V===S?(U.left(T,V),T.setSelectionRange(T.selectionStart,S,"backward")):P.keyCode===46&&t.reverseFillMask===!0&&V===S&&(U.rightReverse(T,S),T.setSelectionRange(V,T.selectionEnd,"forward"))}function j(P){if(P==null||P==="")return"";if(t.reverseFillMask===!0)return Y(P);const T=m;let V=0,S="";for(let Z=0;Z<T.length;Z++){const F=P[V],ae=T[Z];if(typeof ae=="string")S+=ae,F===ae&&V++;else if(F!==void 0&&ae.regex.test(F))S+=ae.transform!==void 0?ae.transform(F):F,V++;else return S}return S}function Y(P){const T=m,V=s.indexOf(We);let S=P.length-1,Z="";for(let F=T.length-1;F>=0&&S!==-1;F--){const ae=T[F];let se=P[S];if(typeof ae=="string")Z=ae+Z,se===ae&&S--;else if(se!==void 0&&ae.regex.test(se))do Z=(ae.transform!==void 0?ae.transform(se):se)+Z,S--,se=P[S];while(V===F&&se!==void 0&&ae.regex.test(se));else return Z}return Z}function I(P){return typeof P!="string"||g===void 0?typeof P=="number"?g(""+P):P:g(P)}function le(P){return f.length-P.length<=0?P:t.reverseFillMask===!0&&P.length!==0?f.slice(0,-P.length)+P:P+f.slice(P.length)}return{innerValue:k,hasMask:v,moveCursorForPaste:G,updateMaskValue:O,onMaskedKeydown:Q,onMaskedClick:D}}function Wd(t,l){function o(){const u=t.modelValue;try{const s="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(u)===u&&("length"in u?Array.from(u):[u]).forEach(f=>{s.items.add(f)}),{files:s.files}}catch{return{files:void 0}}}return i.computed(()=>{if(t.type==="file")return o()})}const Hd=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,Kd=/[\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,Gd=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,jd=/[a-z0-9_ -]$/i;function bu(t){return function(o){if(o.type==="compositionend"||o.type==="change"){if(o.target.qComposing!==!0)return;o.target.qComposing=!1,t(o)}else o.type==="compositionupdate"&&o.target.qComposing!==!0&&typeof o.data=="string"&&(gt.is.firefox===!0?jd.test(o.data)===!1:Hd.test(o.data)===!0||Kd.test(o.data)===!0||Gd.test(o.data)===!0)===!0&&(o.target.qComposing=!0)}}const yu=Ye({name:"QInput",inheritAttrs:!1,props:{..._i,...zd,...Po,modelValue:[String,Number,FileList],shadowText:String,type:{type:String,default:"text"},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...zo,"paste","change","keydown","click","animationend"],setup(t,{emit:l,attrs:o}){const{proxy:u}=i.getCurrentInstance(),{$q:s}=u,f={};let m=NaN,g,C,A=null,v;const k=i.ref(null),y=Ja(t),{innerValue:w,hasMask:R,moveCursorForPaste:W,updateMaskValue:O,onMaskedKeydown:G,onMaskedClick:U}=Ud(t,l,se,k),D=Wd(t),Q=i.computed(()=>Vr(w.value)),j=bu(F),Y=Uo({changeEvent:!0}),I=i.computed(()=>t.type==="textarea"||t.autogrow===!0),le=i.computed(()=>I.value===!0||["text","search","url","tel","password"].includes(t.type)),P=i.computed(()=>{const B={...Y.splitAttrs.listeners.value,onInput:F,onPaste:Z,onChange:H,onBlur:ie,onFocus:Kt};return B.onCompositionstart=B.onCompositionupdate=B.onCompositionend=j,R.value===!0&&(B.onKeydown=G,B.onClick=U),t.autogrow===!0&&(B.onAnimationend=ae),B}),T=i.computed(()=>{const B={tabindex:0,"data-autofocus":t.autofocus===!0||void 0,rows:t.type==="textarea"?6:void 0,"aria-label":t.label,name:y.value,...Y.splitAttrs.attributes.value,id:Y.targetUid.value,maxlength:t.maxlength,disabled:t.disable===!0,readonly:t.readonly===!0};return I.value===!1&&(B.type=t.type),t.autogrow===!0&&(B.rows=1),B});i.watch(()=>t.type,()=>{k.value&&(k.value.value=t.modelValue)}),i.watch(()=>t.modelValue,B=>{if(R.value===!0){if(C===!0&&(C=!1,String(B)===m))return;O(B)}else w.value!==B&&(w.value=B,t.type==="number"&&f.hasOwnProperty("value")===!0&&(g===!0?g=!1:delete f.value));t.autogrow===!0&&i.nextTick(ce)}),i.watch(()=>t.autogrow,B=>{B===!0?i.nextTick(ce):k.value!==null&&o.rows>0&&(k.value.style.height="auto")}),i.watch(()=>t.dense,()=>{t.autogrow===!0&&i.nextTick(ce)});function V(){vi(()=>{const B=document.activeElement;k.value!==null&&k.value!==B&&(B===null||B.id!==Y.targetUid.value)&&k.value.focus({preventScroll:!0})})}function S(){k.value!==null&&k.value.select()}function Z(B){if(R.value===!0&&t.reverseFillMask!==!0){const oe=B.target;W(oe,oe.selectionStart,oe.selectionEnd)}l("paste",B)}function F(B){if(!B||!B.target)return;if(t.type==="file"){l("update:modelValue",B.target.files);return}const oe=B.target.value;if(B.target.qComposing===!0){f.value=oe;return}if(R.value===!0)O(oe,!1,B.inputType);else if(se(oe),le.value===!0&&B.target===document.activeElement){const{selectionStart:ve,selectionEnd:_e}=B.target;ve!==void 0&&_e!==void 0&&i.nextTick(()=>{B.target===document.activeElement&&oe.indexOf(B.target.value)===0&&B.target.setSelectionRange(ve,_e)})}t.autogrow===!0&&ce()}function ae(B){l("animationend",B),ce()}function se(B,oe){v=()=>{A=null,t.type!=="number"&&f.hasOwnProperty("value")===!0&&delete f.value,t.modelValue!==B&&m!==B&&(m=B,oe===!0&&(C=!0),l("update:modelValue",B),i.nextTick(()=>{m===B&&(m=NaN)})),v=void 0},t.type==="number"&&(g=!0,f.value=B),t.debounce!==void 0?(A!==null&&clearTimeout(A),f.value=B,A=setTimeout(v,t.debounce)):v()}function ce(){requestAnimationFrame(()=>{const B=k.value;if(B!==null){const oe=B.parentNode.style,{scrollTop:ve}=B,{overflowY:_e,maxHeight:K}=s.platform.is.firefox===!0?{}:window.getComputedStyle(B),ne=_e!==void 0&&_e!=="scroll";ne===!0&&(B.style.overflowY="hidden"),oe.marginBottom=B.scrollHeight-1+"px",B.style.height="1px",B.style.height=B.scrollHeight+"px",ne===!0&&(B.style.overflowY=parseInt(K,10)<B.scrollHeight?"auto":"hidden"),oe.marginBottom="",B.scrollTop=ve}})}function H(B){j(B),A!==null&&(clearTimeout(A),A=null),v!==void 0&&v(),l("change",B.target.value)}function ie(B){B!==void 0&&Kt(B),A!==null&&(clearTimeout(A),A=null),v!==void 0&&v(),g=!1,C=!1,delete f.value,t.type!=="file"&&setTimeout(()=>{k.value!==null&&(k.value.value=w.value!==void 0?w.value:"")})}function ge(){return f.hasOwnProperty("value")===!0?f.value:w.value!==void 0?w.value:""}i.onBeforeUnmount(()=>{ie()}),i.onMounted(()=>{t.autogrow===!0&&ce()}),Object.assign(Y,{innerValue:w,fieldClass:i.computed(()=>`q-${I.value===!0?"textarea":"input"}`+(t.autogrow===!0?" q-textarea--autogrow":"")),hasShadow:i.computed(()=>t.type!=="file"&&typeof t.shadowText=="string"&&t.shadowText.length!==0),inputRef:k,emitValue:se,hasValue:Q,floatingLabel:i.computed(()=>Q.value===!0&&(t.type!=="number"||isNaN(w.value)===!1)||Vr(t.displayValue)),getControl:()=>i.h(I.value===!0?"textarea":"input",{ref:k,class:["q-field__native q-placeholder",t.inputClass],style:t.inputStyle,...T.value,...P.value,...t.type!=="file"?{value:ge()}:D.value}),getShadowControl:()=>i.h("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(I.value===!0?"":" text-no-wrap")},[i.h("span",{class:"invisible"},ge()),i.h("span",t.shadowText)])});const q=Wo(Y);return Object.assign(u,{focus:V,select:S,getNativeElement:()=>k.value}),ci(u,"nativeEl",()=>k.value),q}}),yi=Ye({name:"QCard",props:{...rr,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(t,{slots:l}){const{proxy:{$q:o}}=i.getCurrentInstance(),u=ir(t,o),s=i.computed(()=>"q-card"+(u.value===!0?" q-card--dark q-dark":"")+(t.bordered===!0?" q-card--bordered":"")+(t.square===!0?" q-card--square no-border-radius":"")+(t.flat===!0?" q-card--flat no-shadow":""));return()=>i.h(t.tag,{class:s.value},pt(l.default))}}),Qd=i.defineComponent({__name:"WinInput",props:i.mergeModels({modelValue:{},rules:{},label:{},placeholder:{},mask:{},prefix:{},suffix:{},hint:{},maxlength:{},type:{default:"text"},transparent:{type:Boolean,default:!0},width:{default:"100%"},height:{default:"70px"},inputHeight:{},readonly:{type:Boolean},fillMask:{type:Boolean,default:!1},minWidth:{default:"200px"},inputStyle:{default:"resize: none"},labelStyle:{default:"padding-left: 5px"},hintOptions:{default:{color:"grey-7",position:"right"}},counter:{type:Boolean,default:!1},dense:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=i.useModel(t,"modelValue"),o=t,u=i.ref(!1),s=i.computed(()=>o.transparent?"glass-card":"win-card"),f=i.computed(()=>o.label===""?void 0:o.label),m=i.computed(()=>{let y="width: 100%; padding-left: 10px; padding-right: 10px;";return o.inputHeight&&(y+="height: "+o.inputHeight),y}),g=i.computed(()=>l.value||u.value?"17.5px":"15px"),C=i.ref(null);function A(){C.value.focus()}function v(){u.value=!0}function k(){u.value=!1}return(y,w)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(yi,{onClick:A,class:i.normalizeClass(`${s.value} row items-center ${l.value&&y.label||u.value&&y.label?"q-pt-md":""} `),style:i.normalizeStyle({minHeight:y.height,width:y.width,maxWidth:"calc(100vw - 32px)",minWidth:y.minWidth,margin:"auto"})},{default:i.withCtx(()=>[i.renderSlot(y.$slots,"fixed-label",{class:"self-start"}),i.createVNode(yu,{modelValue:l.value,"onUpdate:modelValue":w[0]||(w[0]=R=>l.value=R),ref_key:"inputRef",ref:C,"label-color":"black","input-class":`text-black ${f.value?"":"text-center ww-title"}`,"input-style":y.inputStyle,style:i.normalizeStyle(m.value),readonly:y.readonly,mask:y.mask,prefix:y.prefix,label:f.value,type:y.type,suffix:y.suffix,counter:y.counter,maxlength:y.maxlength,rules:y.rules,borderless:"",dense:"","unmasked-value":"","reverse-fill-mask":"",placeholder:y.placeholder,onFocus:v,onBlur:k},{label:i.withCtx(()=>[!y.label||y.label!=""?(i.openBlock(),i.createElementBlock("div",{key:0,style:i.normalizeStyle(`padding-bottom: 30px; transition: 0.5s ease; font-size: ${g.value};`+y.labelStyle)},i.toDisplayString(y.label)+" "+i.toDisplayString(y.required&&!y.readonly?"*":""),5)):i.createCommentVNode("",!0)]),append:i.withCtx(()=>[i.renderSlot(y.$slots,"append")]),_:3},8,["modelValue","input-class","input-style","style","readonly","mask","prefix","label","type","suffix","counter","maxlength","rules","placeholder"]),i.renderSlot(y.$slots,"bottom")]),_:3},8,["class","style"]),y.hint?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(`text-${y.hintOptions.position} text-${y.hintOptions.color} text-caption q-mt-xl q-pt-xl q-pl-sm`)},i.toDisplayString(y.hint),3)):i.createCommentVNode("",!0)],64))}}),Yd={class:"ww-subtitle text-center q-mb-md text-grey-9",style:{"font-weight":"600"}},Zd=i.defineComponent({__name:"ControlLabel",props:{label:{}},setup(t){return(l,o)=>(i.openBlock(),i.createElementBlock("div",Yd,i.toDisplayString(l.label),1))}}),Xd={style:{"max-width":"400px"},class:"text-center"},Jd={style:{"font-size":"16px"}},eh={style:{"font-size":"16px"}},Ko=gn(i.defineComponent({__name:"InputControl",props:i.mergeModels({control:{},innerLabel:{type:Boolean,default:!1}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=t,o=i.ref(null),u=i.computed(()=>{var f;return(f=l.control.controlType)==null?void 0:f.split("_")[1]}),s=i.useModel(t,"modelValue");return i.onMounted(()=>{var f;(f=o.value)==null||f.focus()}),(f,m)=>(i.openBlock(),i.createElementBlock("div",Xd,[!f.innerLabel&&f.control.label?(i.openBlock(),i.createBlock(Zd,{key:0,label:f.control.label},null,8,["label"])):i.createCommentVNode("",!0),i.createVNode(Qd,{modelValue:s.value,"onUpdate:modelValue":m[0]||(m[0]=g=>s.value=g),width:"250px",mask:u.value==="number"?"###.###.###.###.###":void 0,label:f.innerLabel?f.control.label:void 0,inputStyle:{textAlign:(u.value==="number","center")},ref_key:"inputRef",ref:o},i.createSlots({_:2},[f.control.prefix?{name:"prepend",fn:i.withCtx(()=>[i.createElementVNode("span",Jd,i.toDisplayString(f.control.prefix),1)]),key:"0"}:void 0,f.control.suffix?{name:"append",fn:i.withCtx(()=>[i.createElementVNode("span",eh,i.toDisplayString(f.control.suffix),1)]),key:"1"}:void 0]),1032,["modelValue","mask","label","inputStyle"])]))}}),[["__scopeId","data-v-8f5284d3"]]);function Go(t,l){const o=t.style;for(const u in l)o[u]=l[u]}function th(t){if(t==null)return;if(typeof t=="string")try{return document.querySelector(t)||void 0}catch{return}const l=i.unref(t);if(l)return l.$el||l}function wu(t,l){if(t==null||t.contains(l)===!0)return!0;for(let o=t.nextElementSibling;o!==null;o=o.nextElementSibling)if(o.contains(l))return!0;return!1}function nh(t,l=250){let o=!1,u;return function(){return o===!1&&(o=!0,setTimeout(()=>{o=!1},l),u=t.apply(this,arguments)),u}}function Su(t,l,o,u){o.modifiers.stop===!0&&Kt(t);const s=o.modifiers.color;let f=o.modifiers.center;f=f===!0||u===!0;const m=document.createElement("span"),g=document.createElement("span"),C=eu(t),{left:A,top:v,width:k,height:y}=l.getBoundingClientRect(),w=Math.sqrt(k*k+y*y),R=w/2,W=`${(k-w)/2}px`,O=f?W:`${C.left-A-R}px`,G=`${(y-w)/2}px`,U=f?G:`${C.top-v-R}px`;g.className="q-ripple__inner",Go(g,{height:`${w}px`,width:`${w}px`,transform:`translate3d(${O},${U},0) scale3d(.2,.2,1)`,opacity:0}),m.className=`q-ripple${s?" text-"+s:""}`,m.setAttribute("dir","ltr"),m.appendChild(g),l.appendChild(m);const D=()=>{m.remove(),clearTimeout(Q)};o.abort.push(D);let Q=setTimeout(()=>{g.classList.add("q-ripple__inner--enter"),g.style.transform=`translate3d(${W},${G},0) scale3d(1,1,1)`,g.style.opacity=.2,Q=setTimeout(()=>{g.classList.remove("q-ripple__inner--enter"),g.classList.add("q-ripple__inner--leave"),g.style.opacity=0,Q=setTimeout(()=>{m.remove(),o.abort.splice(o.abort.indexOf(D),1)},275)},250)},50)}function xu(t,{modifiers:l,value:o,arg:u}){const s=Object.assign({},t.cfg.ripple,l,o);t.modifiers={early:s.early===!0,stop:s.stop===!0,center:s.center===!0,color:s.color||u,keyCodes:[].concat(s.keyCodes||13)}}const Cu=Da({name:"ripple",beforeMount(t,l){const o=l.instance.$.appContext.config.globalProperties.$q.config||{};if(o.ripple===!1)return;const u={cfg:o,enabled:l.value!==!1,modifiers:{},abort:[],start(s){u.enabled===!0&&s.qSkipRipple!==!0&&s.type===(u.modifiers.early===!0?"pointerdown":"click")&&Su(s,t,u,s.qKeyEvent===!0)},keystart:nh(s=>{u.enabled===!0&&s.qSkipRipple!==!0&&Vn(s,u.modifiers.keyCodes)===!0&&s.type===`key${u.modifiers.early===!0?"down":"up"}`&&Su(s,t,u,!0)},300)};xu(u,l),t.__qripple=u,No(u,"main",[[t,"pointerdown","start","passive"],[t,"click","start","passive"],[t,"keydown","keystart","passive"],[t,"keyup","keystart","passive"]])},updated(t,l){if(l.oldValue!==l.value){const o=t.__qripple;o!==void 0&&(o.enabled=l.value!==!1,o.enabled===!0&&Object(l.value)===l.value&&xu(o,l))}},beforeUnmount(t){const l=t.__qripple;l!==void 0&&(l.abort.forEach(o=>{o()}),tu(l,"main"),delete t._qripple)}}),ku={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},rh=Object.keys(ku),ih={align:{type:String,validator:t=>rh.includes(t)}};function oh(t){return i.computed(()=>{const l=t.align===void 0?t.vertical===!0?"stretch":"left":t.align;return`${t.vertical===!0?"items":"justify"}-${ku[l]}`})}function Eu(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}function Au(t,l){return(t.aliasOf||t)===(l.aliasOf||l)}function lh(t,l){for(const o in l){const u=l[o],s=t[o];if(typeof u=="string"){if(u!==s)return!1}else if(Array.isArray(s)===!1||s.length!==u.length||u.some((f,m)=>f!==s[m]))return!1}return!0}function Tu(t,l){return Array.isArray(l)===!0?t.length===l.length&&t.every((o,u)=>o===l[u]):t.length===1&&t[0]===l}function ah(t,l){return Array.isArray(t)===!0?Tu(t,l):Array.isArray(l)===!0?Tu(l,t):t===l}function uh(t,l){if(Object.keys(t).length!==Object.keys(l).length)return!1;for(const o in t)if(ah(t[o],l[o])===!1)return!1;return!0}const Bu={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},sh={...Bu,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function Ru({fallbackTag:t,useDisableForRouterLinkProps:l=!0}={}){const o=i.getCurrentInstance(),{props:u,proxy:s,emit:f}=o,m=Ka(o),g=i.computed(()=>u.disable!==!0&&u.href!==void 0),C=l===!0?i.computed(()=>m===!0&&u.disable!==!0&&g.value!==!0&&u.to!==void 0&&u.to!==null&&u.to!==""):i.computed(()=>m===!0&&g.value!==!0&&u.to!==void 0&&u.to!==null&&u.to!==""),A=i.computed(()=>C.value===!0?U(u.to):null),v=i.computed(()=>A.value!==null),k=i.computed(()=>g.value===!0||v.value===!0),y=i.computed(()=>u.type==="a"||k.value===!0?"a":u.tag||t||"div"),w=i.computed(()=>g.value===!0?{href:u.href,target:u.target}:v.value===!0?{href:A.value.href,target:u.target}:{}),R=i.computed(()=>{if(v.value===!1)return-1;const{matched:j}=A.value,{length:Y}=j,I=j[Y-1];if(I===void 0)return-1;const le=s.$route.matched;if(le.length===0)return-1;const P=le.findIndex(Au.bind(null,I));if(P!==-1)return P;const T=Eu(j[Y-2]);return Y>1&&Eu(I)===T&&le[le.length-1].path!==T?le.findIndex(Au.bind(null,j[Y-2])):P}),W=i.computed(()=>v.value===!0&&R.value!==-1&&lh(s.$route.params,A.value.params)),O=i.computed(()=>W.value===!0&&R.value===s.$route.matched.length-1&&uh(s.$route.params,A.value.params)),G=i.computed(()=>v.value===!0?O.value===!0?` ${u.exactActiveClass} ${u.activeClass}`:u.exact===!0?"":W.value===!0?` ${u.activeClass}`:"":"");function U(j){try{return s.$router.resolve(j)}catch{}return null}function D(j,{returnRouterError:Y,to:I=u.to,replace:le=u.replace}={}){if(u.disable===!0)return j.preventDefault(),Promise.resolve(!1);if(j.metaKey||j.altKey||j.ctrlKey||j.shiftKey||j.button!==void 0&&j.button!==0||u.target==="_blank")return Promise.resolve(!1);j.preventDefault();const P=s.$router[le===!0?"replace":"push"](I);return Y===!0?P:P.then(()=>{}).catch(()=>{})}function Q(j){if(v.value===!0){const Y=I=>D(j,I);f("click",j,Y),j.defaultPrevented!==!0&&Y()}else f("click",j)}return{hasRouterLink:v,hasHrefLink:g,hasLink:k,linkTag:y,resolvedLink:A,linkIsActive:W,linkIsExactActive:O,linkClass:G,linkAttrs:w,getLink:U,navigateToRouterLink:D,navigateOnClick:Q}}const Ou={none:0,xs:4,sm:8,md:16,lg:24,xl:32},ch={xs:8,sm:10,md:14,lg:20,xl:24},fh=["button","submit","reset"],dh=/[^\s]\/[^\s]/,hh=["flat","outline","push","unelevated"];function mh(t,l){return t.flat===!0?"flat":t.outline===!0?"outline":t.push===!0?"push":t.unelevated===!0?"unelevated":l}const gh={...{...fi,...Bu,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...hh.reduce((t,l)=>(t[l]=Boolean)&&t,{}),square:Boolean,rounded: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:{...ih.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},round:Boolean};function ph(t){const l=di(t,ch),o=oh(t),{hasRouterLink:u,hasLink:s,linkTag:f,linkAttrs:m,navigateOnClick:g}=Ru({fallbackTag:"button"}),C=i.computed(()=>{const O=t.fab===!1&&t.fabMini===!1?l.value:{};return t.padding!==void 0?Object.assign({},O,{padding:t.padding.split(/\s+/).map(G=>G in Ou?Ou[G]+"px":G).join(" "),minWidth:"0",minHeight:"0"}):O}),A=i.computed(()=>t.rounded===!0||t.fab===!0||t.fabMini===!0),v=i.computed(()=>t.disable!==!0&&t.loading!==!0),k=i.computed(()=>v.value===!0?t.tabindex||0:-1),y=i.computed(()=>mh(t,"standard")),w=i.computed(()=>{const O={tabindex:k.value};return s.value===!0?Object.assign(O,m.value):fh.includes(t.type)===!0&&(O.type=t.type),f.value==="a"?(t.disable===!0?O["aria-disabled"]="true":O.href===void 0&&(O.role="button"),u.value!==!0&&dh.test(t.type)===!0&&(O.type=t.type)):t.disable===!0&&(O.disabled="",O["aria-disabled"]="true"),t.loading===!0&&t.percentage!==void 0&&Object.assign(O,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":t.percentage}),O}),R=i.computed(()=>{let O;t.color!==void 0?t.flat===!0||t.outline===!0?O=`text-${t.textColor||t.color}`:O=`bg-${t.color} text-${t.textColor||"white"}`:t.textColor&&(O=`text-${t.textColor}`);const G=t.round===!0?"round":`rectangle${A.value===!0?" q-btn--rounded":t.square===!0?" q-btn--square":""}`;return`q-btn--${y.value} q-btn--${G}`+(O!==void 0?" "+O:"")+(v.value===!0?" q-btn--actionable q-focusable q-hoverable":t.disable===!0?" disabled":"")+(t.fab===!0?" q-btn--fab":t.fabMini===!0?" q-btn--fab-mini":"")+(t.noCaps===!0?" q-btn--no-uppercase":"")+(t.dense===!0?" q-btn--dense":"")+(t.stretch===!0?" no-border-radius self-stretch":"")+(t.glossy===!0?" glossy":"")+(t.square?" q-btn--square":"")}),W=i.computed(()=>o.value+(t.stack===!0?" column":" row")+(t.noWrap===!0?" no-wrap text-no-wrap":"")+(t.loading===!0?" q-btn__content--hidden":""));return{classes:R,style:C,innerClasses:W,attributes:w,hasLink:s,linkTag:f,navigateOnClick:g,isActionable:v}}const{passiveCapture:At}=st;let or=null,lr=null,ar=null;const ur=Ye({name:"QBtn",props:{...gh,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(t,{slots:l,emit:o}){const{proxy:u}=i.getCurrentInstance(),{classes:s,style:f,innerClasses:m,attributes:g,hasLink:C,linkTag:A,navigateOnClick:v,isActionable:k}=ph(t),y=i.ref(null),w=i.ref(null);let R=null,W,O=null;const G=i.computed(()=>t.label!==void 0&&t.label!==null&&t.label!==""),U=i.computed(()=>t.disable===!0||t.ripple===!1?!1:{keyCodes:C.value===!0?[13,32]:[13],...t.ripple===!0?{}:t.ripple}),D=i.computed(()=>({center:t.round})),Q=i.computed(()=>{const F=Math.max(0,Math.min(100,t.percentage));return F>0?{transition:"transform 0.6s",transform:`translateX(${F-100}%)`}:{}}),j=i.computed(()=>{if(t.loading===!0)return{onMousedown:Z,onTouchstart:Z,onClick:Z,onKeydown:Z,onKeyup:Z};if(k.value===!0){const F={onClick:I,onKeydown:le,onMousedown:T};if(u.$q.platform.has.touch===!0){const ae=t.onTouchstart!==void 0?"":"Passive";F[`onTouchstart${ae}`]=P}return F}return{onClick:Ke}}),Y=i.computed(()=>({ref:y,class:"q-btn q-btn-item non-selectable no-outline "+s.value,style:f.value,...g.value,...j.value}));function I(F){if(y.value!==null){if(F!==void 0){if(F.defaultPrevented===!0)return;const ae=document.activeElement;if(t.type==="submit"&&ae!==document.body&&y.value.contains(ae)===!1&&ae.contains(y.value)===!1){y.value.focus();const se=()=>{document.removeEventListener("keydown",Ke,!0),document.removeEventListener("keyup",se,At),y.value!==null&&y.value.removeEventListener("blur",se,At)};document.addEventListener("keydown",Ke,!0),document.addEventListener("keyup",se,At),y.value.addEventListener("blur",se,At)}}v(F)}}function le(F){y.value!==null&&(o("keydown",F),Vn(F,[13,32])===!0&&lr!==y.value&&(lr!==null&&S(),F.defaultPrevented!==!0&&(y.value.focus(),lr=y.value,y.value.classList.add("q-btn--active"),document.addEventListener("keyup",V,!0),y.value.addEventListener("blur",V,At)),Ke(F)))}function P(F){y.value!==null&&(o("touchstart",F),F.defaultPrevented!==!0&&(or!==y.value&&(or!==null&&S(),or=y.value,R=F.target,R.addEventListener("touchcancel",V,At),R.addEventListener("touchend",V,At)),W=!0,O!==null&&clearTimeout(O),O=setTimeout(()=>{O=null,W=!1},200)))}function T(F){y.value!==null&&(F.qSkipRipple=W===!0,o("mousedown",F),F.defaultPrevented!==!0&&ar!==y.value&&(ar!==null&&S(),ar=y.value,y.value.classList.add("q-btn--active"),document.addEventListener("mouseup",V,At)))}function V(F){if(y.value!==null&&!(F!==void 0&&F.type==="blur"&&document.activeElement===y.value)){if(F!==void 0&&F.type==="keyup"){if(lr===y.value&&Vn(F,[13,32])===!0){const ae=new MouseEvent("click",F);ae.qKeyEvent=!0,F.defaultPrevented===!0&&It(ae),F.cancelBubble===!0&&Kt(ae),y.value.dispatchEvent(ae),Ke(F),F.qKeyEvent=!0}o("keyup",F)}S()}}function S(F){const ae=w.value;F!==!0&&(or===y.value||ar===y.value)&&ae!==null&&ae!==document.activeElement&&(ae.setAttribute("tabindex",-1),ae.focus()),or===y.value&&(R!==null&&(R.removeEventListener("touchcancel",V,At),R.removeEventListener("touchend",V,At)),or=R=null),ar===y.value&&(document.removeEventListener("mouseup",V,At),ar=null),lr===y.value&&(document.removeEventListener("keyup",V,!0),y.value!==null&&y.value.removeEventListener("blur",V,At),lr=null),y.value!==null&&y.value.classList.remove("q-btn--active")}function Z(F){Ke(F),F.qSkipRipple=!0}return i.onBeforeUnmount(()=>{S(!0)}),Object.assign(u,{click:F=>{k.value===!0&&I(F)}}),()=>{let F=[];t.icon!==void 0&&F.push(i.h(vt,{name:t.icon,left:t.stack!==!0&&G.value===!0,role:"img"})),G.value===!0&&F.push(i.h("span",{class:"block"},[t.label])),F=qn(l.default,F),t.iconRight!==void 0&&t.round===!1&&F.push(i.h(vt,{name:t.iconRight,right:t.stack!==!0&&G.value===!0,role:"img"}));const ae=[i.h("span",{class:"q-focus-helper",ref:w})];return t.loading===!0&&t.percentage!==void 0&&ae.push(i.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(t.darkPercentage===!0?" q-btn__progress--dark":"")},[i.h("span",{class:"q-btn__progress-indicator fit block",style:Q.value})])),ae.push(i.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+m.value},F)),t.loading!==null&&ae.push(i.h(i.Transition,{name:"q-transition--fade"},()=>t.loading===!0?[i.h("span",{key:"loading",class:"absolute-full flex flex-center"},l.loading!==void 0?l.loading():[i.h(Vo)])]:null)),i.withDirectives(i.h(A.value,Y.value,ae),[[Cu,U.value,void 0,D.value]])}}}),qu=t=>(i.pushScopeId("data-v-3bcb795a"),t=t(),i.popScopeId(),t),vh={class:"buttons-container"},_h={class:"lt-md"},bh={class:"row justify-between q-my-md q-px-md"},yh=qu(()=>i.createElementVNode("span",{class:"text-black"},"Atrás",-1)),wh={key:1},Sh=qu(()=>i.createElementVNode("span",{class:"text-black"},"Siguiente",-1)),xh=gn(i.defineComponent({__name:"NavigationButtons",props:{currentStep:{},stepsCount:{},nextDisabled:{type:Boolean}},emits:["prev","next"],setup(t){const l=t,o=i.computed(()=>l.currentStep+1);return(u,s)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",vh,[o.value>1?(i.openBlock(),i.createBlock(ur,{key:0,style:{position:"absolute",left:"25px",cursor:"pointer"},size:"26px",color:"white","text-color":"white",class:"gt-sm",onClick:s[0]||(s[0]=f=>u.$emit("prev")),flat:""},{default:i.withCtx(()=>[i.createVNode(vt,{name:"arrow_back_ios",color:"info"})]),_:1})):i.createCommentVNode("",!0),o.value!==u.stepsCount?(i.openBlock(),i.createBlock(ur,{key:1,style:{position:"absolute",right:"25px",cursor:"pointer"},size:"26px",color:"white","text-color":"white",class:"gt-sm",onClick:s[1]||(s[1]=f=>u.$emit("next")),disable:u.nextDisabled,flat:""},{default:i.withCtx(()=>[i.createVNode(vt,{name:"arrow_forward_ios",color:"info"})]),_:1},8,["disable"])):i.createCommentVNode("",!0)]),i.createElementVNode("div",_h,[i.createElementVNode("div",bh,[o.value>1&&o.value<u.stepsCount?(i.openBlock(),i.createBlock(ur,{key:0,color:"info",class:"q-px-md-xl q-py-sm q-mr-sm win-btn win-btn-primary",onClick:s[2]||(s[2]=f=>u.$emit("prev")),flat:"","no-caps":""},{default:i.withCtx(()=>[yh]),_:1})):(i.openBlock(),i.createElementBlock("div",wh)),o.value<u.stepsCount?(i.openBlock(),i.createBlock(ur,{key:2,color:"info",class:"q-px-xl q-py-sm q-ml-sm win-btn win-btn-primary",onClick:s[3]||(s[3]=f=>u.$emit("next")),disable:u.nextDisabled,flat:"","no-caps":""},{default:i.withCtx(()=>[Sh]),_:1},8,["disable"])):i.createCommentVNode("",!0)])])],64))}}),[["__scopeId","data-v-3bcb795a"]]),Ch=Ye({name:"QField",inheritAttrs:!1,props:{..._i,tag:{type:String,default:"label"}},emits:zo,setup(){return Wo(Uo({tagProp:!0}))}}),kh={xs:8,sm:10,md:14,lg:20,xl:24},Eh=Ye({name:"QChip",props:{...rr,...fi,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,removeAriaLabel:String,tabindex:[String,Number],disable:Boolean,ripple:{type:[Boolean,Object],default:!0}},emits:["update:modelValue","update:selected","remove","click"],setup(t,{slots:l,emit:o}){const{proxy:{$q:u}}=i.getCurrentInstance(),s=ir(t,u),f=di(t,kh),m=i.computed(()=>t.selected===!0||t.icon!==void 0),g=i.computed(()=>t.selected===!0?t.iconSelected||u.iconSet.chip.selected:t.icon),C=i.computed(()=>t.iconRemove||u.iconSet.chip.remove),A=i.computed(()=>t.disable===!1&&(t.clickable===!0||t.selected!==null)),v=i.computed(()=>{const O=t.outline===!0&&t.color||t.textColor;return"q-chip row inline no-wrap items-center"+(t.outline===!1&&t.color!==void 0?` bg-${t.color}`:"")+(O?` text-${O} q-chip--colored`:"")+(t.disable===!0?" disabled":"")+(t.dense===!0?" q-chip--dense":"")+(t.outline===!0?" q-chip--outline":"")+(t.selected===!0?" q-chip--selected":"")+(A.value===!0?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(t.square===!0?" q-chip--square":"")+(s.value===!0?" q-chip--dark q-dark":"")}),k=i.computed(()=>{const O=t.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:t.tabindex||0},G={...O,role:"button","aria-hidden":"false","aria-label":t.removeAriaLabel||u.lang.label.remove};return{chip:O,remove:G}});function y(O){O.keyCode===13&&w(O)}function w(O){t.disable||(o("update:selected",!t.selected),o("click",O))}function R(O){(O.keyCode===void 0||O.keyCode===13)&&(Ke(O),t.disable===!1&&(o("update:modelValue",!1),o("remove")))}function W(){const O=[];A.value===!0&&O.push(i.h("div",{class:"q-focus-helper"})),m.value===!0&&O.push(i.h(vt,{class:"q-chip__icon q-chip__icon--left",name:g.value}));const G=t.label!==void 0?[i.h("div",{class:"ellipsis"},[t.label])]:void 0;return O.push(i.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},ed(l.default,G))),t.iconRight&&O.push(i.h(vt,{class:"q-chip__icon q-chip__icon--right",name:t.iconRight})),t.removable===!0&&O.push(i.h(vt,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:C.value,...k.value.remove,onClick:R,onKeyup:R})),O}return()=>{if(t.modelValue===!1)return;const O={class:v.value,style:f.value};return A.value===!0&&Object.assign(O,k.value.chip,{onClick:w,onKeyup:y}),Ha("div",O,W(),"ripple",t.ripple!==!1&&t.disable!==!0,()=>[[Cu,t.ripple]])}}}),Ah=Ye({name:"QItem",props:{...rr,...sh,tag:{type:String,default:"div"},active:{type:Boolean,default:null},clickable:Boolean,dense:Boolean,insetLevel:Number,tabindex:[String,Number],focused:Boolean,manualFocus:Boolean},emits:["click","keyup"],setup(t,{slots:l,emit:o}){const{proxy:{$q:u}}=i.getCurrentInstance(),s=ir(t,u),{hasLink:f,linkAttrs:m,linkClass:g,linkTag:C,navigateOnClick:A}=Ru(),v=i.ref(null),k=i.ref(null),y=i.computed(()=>t.clickable===!0||f.value===!0||t.tag==="label"),w=i.computed(()=>t.disable!==!0&&y.value===!0),R=i.computed(()=>"q-item q-item-type row no-wrap"+(t.dense===!0?" q-item--dense":"")+(s.value===!0?" q-item--dark":"")+(f.value===!0&&t.active===null?g.value:t.active===!0?` q-item--active${t.activeClass!==void 0?` ${t.activeClass}`:""}`:"")+(t.disable===!0?" disabled":"")+(w.value===!0?" q-item--clickable q-link cursor-pointer "+(t.manualFocus===!0?"q-manual-focusable":"q-focusable q-hoverable")+(t.focused===!0?" q-manual-focusable--focused":""):"")),W=i.computed(()=>t.insetLevel===void 0?null:{["padding"+(u.lang.rtl===!0?"Right":"Left")]:16+t.insetLevel*56+"px"});function O(D){w.value===!0&&(k.value!==null&&(D.qKeyEvent!==!0&&document.activeElement===v.value?k.value.focus():document.activeElement===k.value&&v.value.focus()),A(D))}function G(D){if(w.value===!0&&Vn(D,[13,32])===!0){Ke(D),D.qKeyEvent=!0;const Q=new MouseEvent("click",D);Q.qKeyEvent=!0,v.value.dispatchEvent(Q)}o("keyup",D)}function U(){const D=Jf(l.default,[]);return w.value===!0&&D.unshift(i.h("div",{class:"q-focus-helper",tabindex:-1,ref:k})),D}return()=>{const D={ref:v,class:R.value,style:W.value,role:"listitem",onClick:O,onKeyup:G};return w.value===!0?(D.tabindex=t.tabindex||"0",Object.assign(D,m.value)):y.value===!0&&(D["aria-disabled"]="true"),i.h(C.value,D,U())}}}),Th=Ye({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(t,{slots:l}){const o=i.computed(()=>`q-item__section column q-item__section--${t.avatar===!0||t.side===!0||t.thumbnail===!0?"side":"main"}`+(t.top===!0?" q-item__section--top justify-start":" justify-center")+(t.avatar===!0?" q-item__section--avatar":"")+(t.thumbnail===!0?" q-item__section--thumbnail":"")+(t.noWrap===!0?" q-item__section--nowrap":""));return()=>i.h("div",{class:o.value},pt(l.default))}}),Bh=Ye({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(t,{slots:l}){const o=i.computed(()=>parseInt(t.lines,10)),u=i.computed(()=>"q-item__label"+(t.overline===!0?" q-item__label--overline text-overline":"")+(t.caption===!0?" q-item__label--caption text-caption":"")+(t.header===!0?" q-item__label--header":"")+(o.value===1?" ellipsis":"")),s=i.computed(()=>t.lines!==void 0&&o.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":o.value}:null);return()=>i.h("div",{style:s.value,class:u.value},pt(l.default))}});function Rh(){if(window.getSelection!==void 0){const t=window.getSelection();t.empty!==void 0?t.empty():t.removeAllRanges!==void 0&&(t.removeAllRanges(),qo.is.mobile!==!0&&t.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}const Oh={...{target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},contextMenu:Boolean};function qh({showing:t,avoidEmit:l,configureAnchorEl:o}){const{props:u,proxy:s,emit:f}=i.getCurrentInstance(),m=i.ref(null);let g=null;function C(w){return m.value===null?!1:w===void 0||w.touches===void 0||w.touches.length<=1}const A={};o===void 0&&(Object.assign(A,{hide(w){s.hide(w)},toggle(w){s.toggle(w),w.qAnchorHandled=!0},toggleKey(w){Vn(w,13)===!0&&A.toggle(w)},contextClick(w){s.hide(w),It(w),i.nextTick(()=>{s.show(w),w.qAnchorHandled=!0})},prevent:It,mobileTouch(w){if(A.mobileCleanup(w),C(w)!==!0)return;s.hide(w),m.value.classList.add("non-selectable");const R=w.target;No(A,"anchor",[[R,"touchmove","mobileCleanup","passive"],[R,"touchend","mobileCleanup","passive"],[R,"touchcancel","mobileCleanup","passive"],[m.value,"contextmenu","prevent","notPassive"]]),g=setTimeout(()=>{g=null,s.show(w),w.qAnchorHandled=!0},300)},mobileCleanup(w){m.value.classList.remove("non-selectable"),g!==null&&(clearTimeout(g),g=null),t.value===!0&&w!==void 0&&Rh()}}),o=function(w=u.contextMenu){if(u.noParentEvent===!0||m.value===null)return;let R;w===!0?s.$q.platform.is.mobile===!0?R=[[m.value,"touchstart","mobileTouch","passive"]]:R=[[m.value,"mousedown","hide","passive"],[m.value,"contextmenu","contextClick","notPassive"]]:R=[[m.value,"click","toggle","passive"],[m.value,"keyup","toggleKey","passive"]],No(A,"anchor",R)});function v(){tu(A,"anchor")}function k(w){for(m.value=w;m.value.classList.contains("q-anchor--skip");)m.value=m.value.parentNode;o()}function y(){if(u.target===!1||u.target===""||s.$el.parentNode===null)m.value=null;else if(u.target===!0)k(s.$el.parentNode);else{let w=u.target;if(typeof u.target=="string")try{w=document.querySelector(u.target)}catch{w=void 0}w!=null?(m.value=w.$el||w,o()):(m.value=null,console.error(`Anchor: target "${u.target}" not found`))}}return i.watch(()=>u.contextMenu,w=>{m.value!==null&&(v(),o(w))}),i.watch(()=>u.target,()=>{m.value!==null&&v(),y()}),i.watch(()=>u.noParentEvent,w=>{m.value!==null&&(w===!0?v():o())}),i.onMounted(()=>{y(),l!==!0&&u.modelValue===!0&&m.value===null&&f("update:modelValue",!1)}),i.onBeforeUnmount(()=>{g!==null&&clearTimeout(g),v()}),{anchorEl:m,canShow:C,anchorEvents:A}}function Mh(t,l){const o=i.ref(null);let u;function s(g,C){const A=`${C!==void 0?"add":"remove"}EventListener`,v=C!==void 0?C:u;g!==window&&g[A]("scroll",v,st.passive),window[A]("scroll",v,st.passive),u=C}function f(){o.value!==null&&(s(o.value),o.value=null)}const m=i.watch(()=>t.noParentEvent,()=>{o.value!==null&&(f(),l())});return i.onBeforeUnmount(m),{localScrollTarget:o,unconfigureScrollTarget:f,changeScrollEvent:s}}const Mu={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},Vu=["beforeShow","show","beforeHide","hide"];function Lu({showing:t,canShow:l,hideOnRouteChange:o,handleShow:u,handleHide:s,processOnMount:f}){const m=i.getCurrentInstance(),{props:g,emit:C,proxy:A}=m;let v;function k(U){t.value===!0?R(U):y(U)}function y(U){if(g.disable===!0||U!==void 0&&U.qAnchorHandled===!0||l!==void 0&&l(U)!==!0)return;const D=g["onUpdate:modelValue"]!==void 0;D===!0&&(C("update:modelValue",!0),v=U,i.nextTick(()=>{v===U&&(v=void 0)})),(g.modelValue===null||D===!1)&&w(U)}function w(U){t.value!==!0&&(t.value=!0,C("beforeShow",U),u!==void 0?u(U):C("show",U))}function R(U){if(g.disable===!0)return;const D=g["onUpdate:modelValue"]!==void 0;D===!0&&(C("update:modelValue",!1),v=U,i.nextTick(()=>{v===U&&(v=void 0)})),(g.modelValue===null||D===!1)&&W(U)}function W(U){t.value!==!1&&(t.value=!1,C("beforeHide",U),s!==void 0?s(U):C("hide",U))}function O(U){g.disable===!0&&U===!0?g["onUpdate:modelValue"]!==void 0&&C("update:modelValue",!1):U===!0!==t.value&&(U===!0?w:W)(v)}i.watch(()=>g.modelValue,O),o!==void 0&&Ka(m)===!0&&i.watch(()=>A.$route.fullPath,()=>{o.value===!0&&t.value===!0&&R()}),f===!0&&i.onMounted(()=>{O(g.modelValue)});const G={show:y,hide:R,toggle:k};return Object.assign(A,G),G}const Iu={};let Vh=1,Lh=document.body;function Ih(t,l){const o=document.createElement("div");if(o.id=l!==void 0?`q-portal--${l}--${Vh++}`:t,Iu.globalNodes!==void 0){const u=Iu.globalNodes.class;u!==void 0&&(o.className=u)}return Lh.appendChild(o),o}function Ph(t){t.remove()}const Lr=[];function Nh(t,l){do{if(t.$options.name==="QMenu"){if(t.hide(l),t.$props.separateClosePopup===!0)return Lo(t)}else if(t.__qPortal===!0){const o=Lo(t);return o!==void 0&&o.$options.name==="QPopupProxy"?(t.hide(l),o):t}t=Lo(t)}while(t!=null)}const $h=Ye({name:"QPortal",setup(t,{slots:l}){return()=>l.default()}});function Fh(t){for(t=t.parent;t!=null;){if(t.type.name==="QGlobalDialog")return!0;if(t.type.name==="QDialog"||t.type.name==="QMenu")return!1;t=t.parent}return!1}function Pu(t,l,o,u){const s=i.ref(!1),f=i.ref(!1);let m=null;const g={},C=u==="dialog"&&Fh(t);function A(k){if(k===!0){gu(g),f.value=!0;return}f.value=!1,s.value===!1&&(C===!1&&m===null&&(m=Ih(!1,u)),s.value=!0,Lr.push(t.proxy),$d(g))}function v(k){if(f.value=!1,k!==!0)return;gu(g),s.value=!1;const y=Lr.indexOf(t.proxy);y!==-1&&Lr.splice(y,1),m!==null&&(Ph(m),m=null)}return i.onUnmounted(()=>{v(!0)}),t.proxy.__qPortal=!0,ci(t.proxy,"contentEl",()=>l.value),{showPortal:A,hidePortal:v,portalIsActive:s,portalIsAccessible:f,renderPortal:()=>C===!0?o():s.value===!0?[i.h(i.Teleport,{to:m},i.h($h,o))]:void 0}}const Nu={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function $u(t,l=()=>{},o=()=>{}){return{transitionProps:i.computed(()=>{const u=`q-transition--${t.transitionShow||l()}`,s=`q-transition--${t.transitionHide||o()}`;return{appear:!0,enterFromClass:`${u}-enter-from`,enterActiveClass:`${u}-enter-active`,enterToClass:`${u}-enter-to`,leaveFromClass:`${s}-leave-from`,leaveActiveClass:`${s}-leave-active`,leaveToClass:`${s}-leave-to`}}),transitionStyle:i.computed(()=>`--q-transition-duration: ${t.transitionDuration}ms`)}}function Fu(){let t;const l=i.getCurrentInstance();function o(){t=void 0}return i.onDeactivated(o),i.onBeforeUnmount(o),{removeTick:o,registerTick(u){t=u,i.nextTick(()=>{t===u&&(qr(l)===!1&&t(),t=void 0)})}}}const Dh=[Element,String],zh=[null,document,document.body,document.scrollingElement,document.documentElement];function Uh(t,l){let o=th(l);if(o===void 0){if(t==null)return window;o=t.closest(".scroll,.scroll-y,.overflow-auto")}return zh.includes(o)?window:o}function Wh(t){return t===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:t.scrollTop}function Hh(t){return t===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:t.scrollLeft}let wi;function Kh(){if(wi!==void 0)return wi;const t=document.createElement("p"),l=document.createElement("div");Go(t,{width:"100%",height:"200px"}),Go(l,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),l.appendChild(t),document.body.appendChild(l);const o=t.offsetWidth;l.style.overflow="scroll";let u=t.offsetWidth;return o===u&&(u=l.clientWidth),l.remove(),wi=o-u,wi}function Gh(t,l=!0){return!t||t.nodeType!==Node.ELEMENT_NODE?!1:l?t.scrollHeight>t.clientHeight&&(t.classList.contains("scroll")||t.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(t)["overflow-y"])):t.scrollWidth>t.clientWidth&&(t.classList.contains("scroll")||t.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(t)["overflow-x"]))}const Ln=[];let sr;function jh(t){sr=t.keyCode===27}function Qh(){sr===!0&&(sr=!1)}function Yh(t){sr===!0&&(sr=!1,Vn(t,27)===!0&&Ln[Ln.length-1](t))}function Du(t){window[t]("keydown",jh),window[t]("blur",Qh),window[t]("keyup",Yh),sr=!1}function zu(t){gt.is.desktop===!0&&(Ln.push(t),Ln.length===1&&Du("addEventListener"))}function Si(t){const l=Ln.indexOf(t);l!==-1&&(Ln.splice(l,1),Ln.length===0&&Du("removeEventListener"))}const In=[];function Uu(t){In[In.length-1](t)}function Wu(t){gt.is.desktop===!0&&(In.push(t),In.length===1&&document.body.addEventListener("focusin",Uu))}function jo(t){const l=In.indexOf(t);l!==-1&&(In.splice(l,1),In.length===0&&document.body.removeEventListener("focusin",Uu))}const{notPassiveCapture:xi}=st,Pn=[];function Ci(t){const l=t.target;if(l===void 0||l.nodeType===8||l.classList.contains("no-pointer-events")===!0)return;let o=Lr.length-1;for(;o>=0;){const u=Lr[o].$;if(u.type.name==="QTooltip"){o--;continue}if(u.type.name!=="QDialog")break;if(u.props.seamless!==!0)return;o--}for(let u=Pn.length-1;u>=0;u--){const s=Pn[u];if((s.anchorEl.value===null||s.anchorEl.value.contains(l)===!1)&&(l===document.body||s.innerRef.value!==null&&s.innerRef.value.contains(l)===!1))t.qClickOutside=!0,s.onClickOutside(t);else return}}function Zh(t){Pn.push(t),Pn.length===1&&(document.addEventListener("mousedown",Ci,xi),document.addEventListener("touchstart",Ci,xi))}function Hu(t){const l=Pn.findIndex(o=>o===t);l!==-1&&(Pn.splice(l,1),Pn.length===0&&(document.removeEventListener("mousedown",Ci,xi),document.removeEventListener("touchstart",Ci,xi)))}let Ku,Gu;function ju(t){const l=t.split(" ");return l.length!==2?!1:["top","center","bottom"].includes(l[0])!==!0?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):["left","middle","right","start","end"].includes(l[1])!==!0?(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1):!0}function Xh(t){return t?!(t.length!==2||typeof t[0]!="number"||typeof t[1]!="number"):!0}const Qo={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(t=>{Qo[`${t}#ltr`]=t,Qo[`${t}#rtl`]=t});function Qu(t,l){const o=t.split(" ");return{vertical:o[0],horizontal:Qo[`${o[1]}#${l===!0?"rtl":"ltr"}`]}}function Jh(t,l){let{top:o,left:u,right:s,bottom:f,width:m,height:g}=t.getBoundingClientRect();return l!==void 0&&(o-=l[1],u-=l[0],f+=l[1],s+=l[0],m+=l[0],g+=l[1]),{top:o,bottom:f,height:g,left:u,right:s,width:m,middle:u+(s-u)/2,center:o+(f-o)/2}}function em(t,l,o){let{top:u,left:s}=t.getBoundingClientRect();return u+=l.top,s+=l.left,o!==void 0&&(u+=o[1],s+=o[0]),{top:u,bottom:u+1,height:1,left:s,right:s+1,width:1,middle:s,center:u}}function tm(t,l){return{top:0,center:l/2,bottom:l,left:0,middle:t/2,right:t}}function Yu(t,l,o,u){return{top:t[o.vertical]-l[u.vertical],left:t[o.horizontal]-l[u.horizontal]}}function Zu(t,l=0){if(t.targetEl===null||t.anchorEl===null||l>5)return;if(t.targetEl.offsetHeight===0||t.targetEl.offsetWidth===0){setTimeout(()=>{Zu(t,l+1)},10);return}const{targetEl:o,offset:u,anchorEl:s,anchorOrigin:f,selfOrigin:m,absoluteOffset:g,fit:C,cover:A,maxHeight:v,maxWidth:k}=t;if(gt.is.ios===!0&&window.visualViewport!==void 0){const Y=document.body.style,{offsetLeft:I,offsetTop:le}=window.visualViewport;I!==Ku&&(Y.setProperty("--q-pe-left",I+"px"),Ku=I),le!==Gu&&(Y.setProperty("--q-pe-top",le+"px"),Gu=le)}const{scrollLeft:y,scrollTop:w}=o,R=g===void 0?Jh(s,A===!0?[0,0]:u):em(s,g,u);Object.assign(o.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:k||"100vw",maxHeight:v||"100vh",visibility:"visible"});const{offsetWidth:W,offsetHeight:O}=o,{elWidth:G,elHeight:U}=C===!0||A===!0?{elWidth:Math.max(R.width,W),elHeight:A===!0?Math.max(R.height,O):O}:{elWidth:W,elHeight:O};let D={maxWidth:k,maxHeight:v};(C===!0||A===!0)&&(D.minWidth=R.width+"px",A===!0&&(D.minHeight=R.height+"px")),Object.assign(o.style,D);const Q=tm(G,U);let j=Yu(R,Q,f,m);if(g===void 0||u===void 0)Yo(j,R,Q,f,m);else{const{top:Y,left:I}=j;Yo(j,R,Q,f,m);let le=!1;if(j.top!==Y){le=!0;const P=2*u[1];R.center=R.top-=P,R.bottom-=P+2}if(j.left!==I){le=!0;const P=2*u[0];R.middle=R.left-=P,R.right-=P+2}le===!0&&(j=Yu(R,Q,f,m),Yo(j,R,Q,f,m))}D={top:j.top+"px",left:j.left+"px"},j.maxHeight!==void 0&&(D.maxHeight=j.maxHeight+"px",R.height>j.maxHeight&&(D.minHeight=D.maxHeight)),j.maxWidth!==void 0&&(D.maxWidth=j.maxWidth+"px",R.width>j.maxWidth&&(D.minWidth=D.maxWidth)),Object.assign(o.style,D),o.scrollTop!==w&&(o.scrollTop=w),o.scrollLeft!==y&&(o.scrollLeft=y)}function Yo(t,l,o,u,s){const f=o.bottom,m=o.right,g=Kh(),C=window.innerHeight-g,A=document.body.clientWidth;if(t.top<0||t.top+f>C)if(s.vertical==="center")t.top=l[u.vertical]>C/2?Math.max(0,C-f):0,t.maxHeight=Math.min(f,C);else if(l[u.vertical]>C/2){const v=Math.min(C,u.vertical==="center"?l.center:u.vertical===s.vertical?l.bottom:l.top);t.maxHeight=Math.min(f,v),t.top=Math.max(0,v-f)}else t.top=Math.max(0,u.vertical==="center"?l.center:u.vertical===s.vertical?l.top:l.bottom),t.maxHeight=Math.min(f,C-t.top);if(t.left<0||t.left+m>A)if(t.maxWidth=Math.min(m,A),s.horizontal==="middle")t.left=l[u.horizontal]>A/2?Math.max(0,A-m):0;else if(l[u.horizontal]>A/2){const v=Math.min(A,u.horizontal==="middle"?l.middle:u.horizontal===s.horizontal?l.right:l.left);t.maxWidth=Math.min(m,v),t.left=Math.max(0,v-t.maxWidth)}else t.left=Math.max(0,u.horizontal==="middle"?l.middle:u.horizontal===s.horizontal?l.left:l.right),t.maxWidth=Math.min(m,A-t.left)}const nm=Ye({name:"QMenu",inheritAttrs:!1,props:{...Oh,...Mu,...rr,...Nu,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:ju},self:{type:String,validator:ju},offset:{type:Array,validator:Xh},scrollTarget:Dh,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...Vu,"click","escapeKey"],setup(t,{slots:l,emit:o,attrs:u}){let s=null,f,m,g;const C=i.getCurrentInstance(),{proxy:A}=C,{$q:v}=A,k=i.ref(null),y=i.ref(!1),w=i.computed(()=>t.persistent!==!0&&t.noRouteDismiss!==!0),R=ir(t,v),{registerTick:W,removeTick:O}=Fu(),{registerTimeout:G}=hi(),{transitionProps:U,transitionStyle:D}=$u(t),{localScrollTarget:Q,changeScrollEvent:j,unconfigureScrollTarget:Y}=Mh(t,oe),{anchorEl:I,canShow:le}=qh({showing:y}),{hide:P}=Lu({showing:y,canShow:le,handleShow:ge,handleHide:q,hideOnRouteChange:w,processOnMount:!0}),{showPortal:T,hidePortal:V,renderPortal:S}=Pu(C,k,Ee,"menu"),Z={anchorEl:I,innerRef:k,onClickOutside(X){if(t.persistent!==!0&&y.value===!0)return P(X),(X.type==="touchstart"||X.target.classList.contains("q-dialog__backdrop"))&&Ke(X),!0}},F=i.computed(()=>Qu(t.anchor||(t.cover===!0?"center middle":"bottom start"),v.lang.rtl)),ae=i.computed(()=>t.cover===!0?F.value:Qu(t.self||"top start",v.lang.rtl)),se=i.computed(()=>(t.square===!0?" q-menu--square":"")+(R.value===!0?" q-menu--dark q-dark":"")),ce=i.computed(()=>t.autoClose===!0?{onClick:ve}:{}),H=i.computed(()=>y.value===!0&&t.persistent!==!0);i.watch(H,X=>{X===!0?(zu(K),Zh(Z)):(Si(K),Hu(Z))});function ie(){vi(()=>{let X=k.value;X&&X.contains(document.activeElement)!==!0&&(X=X.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||X.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||X.querySelector("[autofocus], [data-autofocus]")||X,X.focus({preventScroll:!0}))})}function ge(X){if(s=t.noRefocus===!1?document.activeElement:null,Wu(_e),T(),oe(),f=void 0,X!==void 0&&(t.touchPosition||t.contextMenu)){const Ne=eu(X);if(Ne.left!==void 0){const{top:ot,left:Nt}=I.value.getBoundingClientRect();f={left:Ne.left-Nt,top:Ne.top-ot}}}m===void 0&&(m=i.watch(()=>v.screen.width+"|"+v.screen.height+"|"+t.self+"|"+t.anchor+"|"+v.lang.rtl,ne)),t.noFocus!==!0&&document.activeElement.blur(),W(()=>{ne(),t.noFocus!==!0&&ie()}),G(()=>{v.platform.is.ios===!0&&(g=t.autoClose,k.value.click()),ne(),T(!0),o("show",X)},t.transitionDuration)}function q(X){O(),V(),B(!0),s!==null&&(X===void 0||X.qClickOutside!==!0)&&(((X&&X.type.indexOf("key")===0?s.closest('[tabindex]:not([tabindex^="-"])'):void 0)||s).focus(),s=null),G(()=>{V(!0),o("hide",X)},t.transitionDuration)}function B(X){f=void 0,m!==void 0&&(m(),m=void 0),(X===!0||y.value===!0)&&(jo(_e),Y(),Hu(Z),Si(K)),X!==!0&&(s=null)}function oe(){(I.value!==null||t.scrollTarget!==void 0)&&(Q.value=Uh(I.value,t.scrollTarget),j(Q.value,ne))}function ve(X){g!==!0?(Nh(A,X),o("click",X)):g=!1}function _e(X){H.value===!0&&t.noFocus!==!0&&wu(k.value,X.target)!==!0&&ie()}function K(X){o("escapeKey"),P(X)}function ne(){Zu({targetEl:k.value,offset:t.offset,anchorEl:I.value,anchorOrigin:F.value,selfOrigin:ae.value,absoluteOffset:f,fit:t.fit,cover:t.cover,maxHeight:t.maxHeight,maxWidth:t.maxWidth})}function Ee(){return i.h(i.Transition,U.value,()=>y.value===!0?i.h("div",{role:"menu",...u,ref:k,tabindex:-1,class:["q-menu q-position-engine scroll"+se.value,u.class],style:[u.style,D.value],...ce.value},pt(l.default)):null)}return i.onBeforeUnmount(B),Object.assign(A,{focus:ie,updatePosition:ne}),S}});function rm(t,l,o){function u(){}return i.onBeforeUnmount(()=>{t.value===!0&&void 0}),{removeFromHistory:u,addToHistory(){}}}let Ir=0,Zo,Xo,Pr,Jo=!1,Xu,Ju,es,Nn=null;function im(t){om(t)&&Ke(t)}function om(t){if(t.target===document.body||t.target.classList.contains("q-layout__backdrop"))return!0;const l=kd(t),o=t.shiftKey&&!t.deltaX,u=!o&&Math.abs(t.deltaX)<=Math.abs(t.deltaY),s=o||u?t.deltaY:t.deltaX;for(let f=0;f<l.length;f++){const m=l[f];if(Gh(m,u))return u?s<0&&m.scrollTop===0?!0:s>0&&m.scrollTop+m.clientHeight===m.scrollHeight:s<0&&m.scrollLeft===0?!0:s>0&&m.scrollLeft+m.clientWidth===m.scrollWidth}return!0}function ts(t){t.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function ki(t){Jo!==!0&&(Jo=!0,requestAnimationFrame(()=>{Jo=!1;const{height:l}=t.target,{clientHeight:o,scrollTop:u}=document.scrollingElement;(Pr===void 0||l!==window.innerHeight)&&(Pr=o-l,document.scrollingElement.scrollTop=u),u>Pr&&(document.scrollingElement.scrollTop-=Math.ceil((u-Pr)/8))}))}function ns(t){const l=document.body,o=window.visualViewport!==void 0;if(t==="add"){const{overflowY:u,overflowX:s}=window.getComputedStyle(l);Zo=Hh(window),Xo=Wh(window),Xu=l.style.left,Ju=l.style.top,es=window.location.href,l.style.left=`-${Zo}px`,l.style.top=`-${Xo}px`,s!=="hidden"&&(s==="scroll"||l.scrollWidth>window.innerWidth)&&l.classList.add("q-body--force-scrollbar-x"),u!=="hidden"&&(u==="scroll"||l.scrollHeight>window.innerHeight)&&l.classList.add("q-body--force-scrollbar-y"),l.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,gt.is.ios===!0&&(o===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",ki,st.passiveCapture),window.visualViewport.addEventListener("scroll",ki,st.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",ts,st.passiveCapture))}gt.is.desktop===!0&&gt.is.mac===!0&&window[`${t}EventListener`]("wheel",im,st.notPassive),t==="remove"&&(gt.is.ios===!0&&(o===!0?(window.visualViewport.removeEventListener("resize",ki,st.passiveCapture),window.visualViewport.removeEventListener("scroll",ki,st.passiveCapture)):window.removeEventListener("scroll",ts,st.passiveCapture)),l.classList.remove("q-body--prevent-scroll"),l.classList.remove("q-body--force-scrollbar-x"),l.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,l.style.left=Xu,l.style.top=Ju,window.location.href===es&&window.scrollTo(Zo,Xo),Pr=void 0)}function lm(t){let l="add";if(t===!0){if(Ir++,Nn!==null){clearTimeout(Nn),Nn=null;return}if(Ir>1)return}else{if(Ir===0||(Ir--,Ir>0))return;if(l="remove",gt.is.ios===!0&&gt.is.nativeMobile===!0){Nn!==null&&clearTimeout(Nn),Nn=setTimeout(()=>{ns(l),Nn=null},100);return}}ns(l)}function am(){let t;return{preventBodyScroll(l){l!==t&&(t!==void 0||l===!0)&&(t=l,lm(l))}}}let Ei=0;const um={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"},rs={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},sm=Ye({name:"QDialog",inheritAttrs:!1,props:{...Mu,...Nu,transitionShow:String,transitionHide:String,persistent:Boolean,autoClose:Boolean,allowFocusOutside:Boolean,noEscDismiss:Boolean,noBackdropDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,noShake:Boolean,seamless:Boolean,maximized:Boolean,fullWidth:Boolean,fullHeight:Boolean,square:Boolean,backdropFilter:String,position:{type:String,default:"standard",validator:t=>["standard","top","bottom","left","right"].includes(t)}},emits:[...Vu,"shake","click","escapeKey"],setup(t,{slots:l,emit:o,attrs:u}){const s=i.getCurrentInstance(),f=i.ref(null),m=i.ref(!1),g=i.ref(!1);let C=null,A=null,v,k;const y=i.computed(()=>t.persistent!==!0&&t.noRouteDismiss!==!0&&t.seamless!==!0),{preventBodyScroll:w}=am(),{registerTimeout:R}=hi(),{registerTick:W,removeTick:O}=Fu(),{transitionProps:G,transitionStyle:U}=$u(t,()=>rs[t.position][0],()=>rs[t.position][1]),D=i.computed(()=>U.value+(t.backdropFilter!==void 0?`;backdrop-filter:${t.backdropFilter};-webkit-backdrop-filter:${t.backdropFilter}`:"")),{showPortal:Q,hidePortal:j,portalIsAccessible:Y,renderPortal:I}=Pu(s,f,_e,"dialog"),{hide:le}=Lu({showing:m,hideOnRouteChange:y,handleShow:ae,handleHide:se,processOnMount:!0}),{addToHistory:P,removeFromHistory:T}=rm(m),V=i.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${t.maximized===!0?"maximized":"minimized"} q-dialog__inner--${t.position} ${um[t.position]}`+(g.value===!0?" q-dialog__inner--animating":"")+(t.fullWidth===!0?" q-dialog__inner--fullwidth":"")+(t.fullHeight===!0?" q-dialog__inner--fullheight":"")+(t.square===!0?" q-dialog__inner--square":"")),S=i.computed(()=>m.value===!0&&t.seamless!==!0),Z=i.computed(()=>t.autoClose===!0?{onClick:B}:{}),F=i.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${S.value===!0?"modal":"seamless"}`,u.class]);i.watch(()=>t.maximized,K=>{m.value===!0&&q(K)}),i.watch(S,K=>{w(K),K===!0?(Wu(ve),zu(ie)):(jo(ve),Si(ie))});function ae(K){P(),A=t.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,q(t.maximized),Q(),g.value=!0,t.noFocus!==!0?(document.activeElement!==null&&document.activeElement.blur(),W(ce)):O(),R(()=>{if(s.proxy.$q.platform.is.ios===!0){if(t.seamless!==!0&&document.activeElement){const{top:ne,bottom:Ee}=document.activeElement.getBoundingClientRect(),{innerHeight:X}=window,Ne=window.visualViewport!==void 0?window.visualViewport.height:X;ne>0&&Ee>Ne/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-Ne,Ee>=X?1/0:Math.ceil(document.scrollingElement.scrollTop+Ee-Ne/2))),document.activeElement.scrollIntoView()}k=!0,f.value.click(),k=!1}Q(!0),g.value=!1,o("show",K)},t.transitionDuration)}function se(K){O(),T(),ge(!0),g.value=!0,j(),A!==null&&(((K&&K.type.indexOf("key")===0?A.closest('[tabindex]:not([tabindex^="-"])'):void 0)||A).focus(),A=null),R(()=>{j(!0),g.value=!1,o("hide",K)},t.transitionDuration)}function ce(K){vi(()=>{let ne=f.value;if(ne!==null){if(K!==void 0){const Ee=ne.querySelector(K);if(Ee!==null){Ee.focus({preventScroll:!0});return}}ne.contains(document.activeElement)!==!0&&(ne=ne.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||ne.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||ne.querySelector("[autofocus], [data-autofocus]")||ne,ne.focus({preventScroll:!0}))}})}function H(K){K&&typeof K.focus=="function"?K.focus({preventScroll:!0}):ce(),o("shake");const ne=f.value;ne!==null&&(ne.classList.remove("q-animate--scale"),ne.classList.add("q-animate--scale"),C!==null&&clearTimeout(C),C=setTimeout(()=>{C=null,f.value!==null&&(ne.classList.remove("q-animate--scale"),ce())},170))}function ie(){t.seamless!==!0&&(t.persistent===!0||t.noEscDismiss===!0?t.maximized!==!0&&t.noShake!==!0&&H():(o("escapeKey"),le()))}function ge(K){C!==null&&(clearTimeout(C),C=null),(K===!0||m.value===!0)&&(q(!1),t.seamless!==!0&&(w(!1),jo(ve),Si(ie))),K!==!0&&(A=null)}function q(K){K===!0?v!==!0&&(Ei<1&&document.body.classList.add("q-body--dialog"),Ei++,v=!0):v===!0&&(Ei<2&&document.body.classList.remove("q-body--dialog"),Ei--,v=!1)}function B(K){k!==!0&&(le(K),o("click",K))}function oe(K){t.persistent!==!0&&t.noBackdropDismiss!==!0?le(K):t.noShake!==!0&&H()}function ve(K){t.allowFocusOutside!==!0&&Y.value===!0&&wu(f.value,K.target)!==!0&&ce('[tabindex]:not([tabindex="-1"])')}Object.assign(s.proxy,{focus:ce,shake:H,__updateRefocusTarget(K){A=K||null}}),i.onBeforeUnmount(ge);function _e(){return i.h("div",{role:"dialog","aria-modal":S.value===!0?"true":"false",...u,class:F.value},[i.h(i.Transition,{name:"q-transition--fade",appear:!0},()=>S.value===!0?i.h("div",{class:"q-dialog__backdrop fixed-full",style:D.value,"aria-hidden":"true",tabindex:-1,onClick:oe}):null),i.h(i.Transition,G.value,()=>m.value===!0?i.h("div",{ref:f,class:V.value,style:U.value,tabindex:-1,...Z.value},pt(l.default)):null)])}return I}});let Ai=!1;{const t=document.createElement("div");t.setAttribute("dir","rtl"),Object.assign(t.style,{width:"1px",height:"1px",overflow:"auto"});const l=document.createElement("div");Object.assign(l.style,{width:"1000px",height:"1px"}),document.body.appendChild(t),t.appendChild(l),t.scrollLeft=-1e3,Ai=t.scrollLeft>=0,t.remove()}const Pt=1e3,cm=["start","center","end","start-force","center-force","end-force"],is=Array.prototype.filter,fm=window.getComputedStyle(document.body).overflowAnchor===void 0?Cd:function(t,l){t!==null&&(t._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(t._qOverflowAnimationFrame),t._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(t===null)return;t._qOverflowAnimationFrame=void 0;const o=t.children||[];is.call(o,s=>s.dataset&&s.dataset.qVsAnchor!==void 0).forEach(s=>{delete s.dataset.qVsAnchor});const u=o[l];u&&u.dataset&&(u.dataset.qVsAnchor="")}))};function cr(t,l){return t+l}function el(t,l,o,u,s,f,m,g){const C=t===window?document.scrollingElement||document.documentElement:t,A=s===!0?"offsetWidth":"offsetHeight",v={scrollStart:0,scrollViewSize:-m-g,scrollMaxSize:0,offsetStart:-m,offsetEnd:-g};if(s===!0?(t===window?(v.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,v.scrollViewSize+=document.documentElement.clientWidth):(v.scrollStart=C.scrollLeft,v.scrollViewSize+=C.clientWidth),v.scrollMaxSize=C.scrollWidth,f===!0&&(v.scrollStart=(Ai===!0?v.scrollMaxSize-v.scrollViewSize:0)-v.scrollStart)):(t===window?(v.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,v.scrollViewSize+=document.documentElement.clientHeight):(v.scrollStart=C.scrollTop,v.scrollViewSize+=C.clientHeight),v.scrollMaxSize=C.scrollHeight),o!==null)for(let k=o.previousElementSibling;k!==null;k=k.previousElementSibling)k.classList.contains("q-virtual-scroll--skip")===!1&&(v.offsetStart+=k[A]);if(u!==null)for(let k=u.nextElementSibling;k!==null;k=k.nextElementSibling)k.classList.contains("q-virtual-scroll--skip")===!1&&(v.offsetEnd+=k[A]);if(l!==t){const k=C.getBoundingClientRect(),y=l.getBoundingClientRect();s===!0?(v.offsetStart+=y.left-k.left,v.offsetEnd-=y.width):(v.offsetStart+=y.top-k.top,v.offsetEnd-=y.height),t!==window&&(v.offsetStart+=v.scrollStart),v.offsetEnd+=v.scrollMaxSize-v.offsetStart}return v}function os(t,l,o,u){l==="end"&&(l=(t===window?document.body:t)[o===!0?"scrollWidth":"scrollHeight"]),t===window?o===!0?(u===!0&&(l=(Ai===!0?document.body.scrollWidth-document.documentElement.clientWidth:0)-l),window.scrollTo(l,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,l):o===!0?(u===!0&&(l=(Ai===!0?t.scrollWidth-t.offsetWidth:0)-l),t.scrollLeft=l):t.scrollTop=l}function Nr(t,l,o,u){if(o>=u)return 0;const s=l.length,f=Math.floor(o/Pt),m=Math.floor((u-1)/Pt)+1;let g=t.slice(f,m).reduce(cr,0);return o%Pt!==0&&(g-=l.slice(f*Pt,o).reduce(cr,0)),u%Pt!==0&&u!==s&&(g-=l.slice(u,m*Pt).reduce(cr,0)),g}const ls={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...{virtualScrollSliceSize:{type:[Number,String],default:10},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]}};function dm({virtualScrollLength:t,getVirtualScrollTarget:l,getVirtualScrollEl:o,virtualScrollItemSizeComputed:u}){const s=i.getCurrentInstance(),{props:f,emit:m,proxy:g}=s,{$q:C}=g;let A,v,k,y=[],w;const R=i.ref(0),W=i.ref(0),O=i.ref({}),G=i.ref(null),U=i.ref(null),D=i.ref(null),Q=i.ref({from:0,to:0}),j=i.computed(()=>f.tableColspan!==void 0?f.tableColspan:100);u===void 0&&(u=i.computed(()=>f.virtualScrollItemSize));const Y=i.computed(()=>u.value+";"+f.virtualScrollHorizontal),I=i.computed(()=>Y.value+";"+f.virtualScrollSliceRatioBefore+";"+f.virtualScrollSliceRatioAfter);i.watch(I,()=>{se()}),i.watch(Y,le);function le(){ae(v,!0)}function P(q){ae(q===void 0?v:q)}function T(q,B){const oe=l();if(oe==null||oe.nodeType===8)return;const ve=el(oe,o(),G.value,U.value,f.virtualScrollHorizontal,C.lang.rtl,f.virtualScrollStickySizeStart,f.virtualScrollStickySizeEnd);k!==ve.scrollViewSize&&se(ve.scrollViewSize),S(oe,ve,Math.min(t.value-1,Math.max(0,parseInt(q,10)||0)),0,cm.indexOf(B)!==-1?B:v!==-1&&q>v?"end":"start")}function V(){const q=l();if(q==null||q.nodeType===8)return;const B=el(q,o(),G.value,U.value,f.virtualScrollHorizontal,C.lang.rtl,f.virtualScrollStickySizeStart,f.virtualScrollStickySizeEnd),oe=t.value-1,ve=B.scrollMaxSize-B.offsetStart-B.offsetEnd-W.value;if(A===B.scrollStart)return;if(B.scrollMaxSize<=0){S(q,B,0,0);return}k!==B.scrollViewSize&&se(B.scrollViewSize),Z(Q.value.from);const _e=Math.floor(B.scrollMaxSize-Math.max(B.scrollViewSize,B.offsetEnd)-Math.min(w[oe],B.scrollViewSize/2));if(_e>0&&Math.ceil(B.scrollStart)>=_e){S(q,B,oe,B.scrollMaxSize-B.offsetEnd-y.reduce(cr,0));return}let K=0,ne=B.scrollStart-B.offsetStart,Ee=ne;if(ne<=ve&&ne+B.scrollViewSize>=R.value)ne-=R.value,K=Q.value.from,Ee=ne;else for(let X=0;ne>=y[X]&&K<oe;X++)ne-=y[X],K+=Pt;for(;ne>0&&K<oe;)ne-=w[K],ne>-B.scrollViewSize?(K++,Ee=ne):Ee=w[K]+ne;S(q,B,K,Ee)}function S(q,B,oe,ve,_e){const K=typeof _e=="string"&&_e.indexOf("-force")!==-1,ne=K===!0?_e.replace("-force",""):_e,Ee=ne!==void 0?ne:"start";let X=Math.max(0,oe-O.value[Ee]),Ne=X+O.value.total;Ne>t.value&&(Ne=t.value,X=Math.max(0,Ne-O.value.total)),A=B.scrollStart;const ot=X!==Q.value.from||Ne!==Q.value.to;if(ot===!1&&ne===void 0){H(oe);return}const{activeElement:Nt}=document,_t=D.value;ot===!0&&_t!==null&&_t!==Nt&&_t.contains(Nt)===!0&&(_t.addEventListener("focusout",F),setTimeout(()=>{_t!==null&&_t.removeEventListener("focusout",F)})),fm(_t,oe-X);const nt=ne!==void 0?w.slice(X,oe).reduce(cr,0):0;if(ot===!0){const bt=Ne>=Q.value.from&&X<=Q.value.to?Q.value.to:Ne;Q.value={from:X,to:bt},R.value=Nr(y,w,0,X),W.value=Nr(y,w,Ne,t.value),requestAnimationFrame(()=>{Q.value.to!==Ne&&A===B.scrollStart&&(Q.value={from:Q.value.from,to:Ne},W.value=Nr(y,w,Ne,t.value))})}requestAnimationFrame(()=>{if(A!==B.scrollStart)return;ot===!0&&Z(X);const bt=w.slice(X,oe).reduce(cr,0),en=bt+B.offsetStart+R.value,ct=en+w[oe];let pn=en+ve;if(ne!==void 0){const $r=bt-nt,$t=B.scrollStart+$r;pn=K!==!0&&$t<en&&ct<$t+B.scrollViewSize?$t:ne==="end"?ct-B.scrollViewSize:en-(ne==="start"?0:Math.round((B.scrollViewSize-w[oe])/2))}A=pn,os(q,pn,f.virtualScrollHorizontal,C.lang.rtl),H(oe)})}function Z(q){const B=D.value;if(B){const oe=is.call(B.children,X=>X.classList&&X.classList.contains("q-virtual-scroll--skip")===!1),ve=oe.length,_e=f.virtualScrollHorizontal===!0?X=>X.getBoundingClientRect().width:X=>X.offsetHeight;let K=q,ne,Ee;for(let X=0;X<ve;){for(ne=_e(oe[X]),X++;X<ve&&oe[X].classList.contains("q-virtual-scroll--with-prev")===!0;)ne+=_e(oe[X]),X++;Ee=ne-w[K],Ee!==0&&(w[K]+=Ee,y[Math.floor(K/Pt)]+=Ee),K++}}}function F(){D.value!==null&&D.value!==void 0&&D.value.focus()}function ae(q,B){const oe=1*u.value;(B===!0||Array.isArray(w)===!1)&&(w=[]);const ve=w.length;w.length=t.value;for(let K=t.value-1;K>=ve;K--)w[K]=oe;const _e=Math.floor((t.value-1)/Pt);y=[];for(let K=0;K<=_e;K++){let ne=0;const Ee=Math.min((K+1)*Pt,t.value);for(let X=K*Pt;X<Ee;X++)ne+=w[X];y.push(ne)}v=-1,A=void 0,R.value=Nr(y,w,0,Q.value.from),W.value=Nr(y,w,Q.value.to,t.value),q>=0?(Z(Q.value.from),i.nextTick(()=>{T(q)})):ie()}function se(q){if(q===void 0&&typeof window<"u"){const ne=l();ne!=null&&ne.nodeType!==8&&(q=el(ne,o(),G.value,U.value,f.virtualScrollHorizontal,C.lang.rtl,f.virtualScrollStickySizeStart,f.virtualScrollStickySizeEnd).scrollViewSize)}k=q;const B=parseFloat(f.virtualScrollSliceRatioBefore)||0,oe=parseFloat(f.virtualScrollSliceRatioAfter)||0,ve=1+B+oe,_e=q===void 0||q<=0?1:Math.ceil(q/u.value),K=Math.max(1,_e,Math.ceil((f.virtualScrollSliceSize>0?f.virtualScrollSliceSize:10)/ve));O.value={total:Math.ceil(K*ve),start:Math.ceil(K*B),center:Math.ceil(K*(.5+B)),end:Math.ceil(K*(1+B)),view:_e}}function ce(q,B){const oe=f.virtualScrollHorizontal===!0?"width":"height",ve={["--q-virtual-scroll-item-"+oe]:u.value+"px"};return[q==="tbody"?i.h(q,{class:"q-virtual-scroll__padding",key:"before",ref:G},[i.h("tr",[i.h("td",{style:{[oe]:`${R.value}px`,...ve},colspan:j.value})])]):i.h(q,{class:"q-virtual-scroll__padding",key:"before",ref:G,style:{[oe]:`${R.value}px`,...ve}}),i.h(q,{class:"q-virtual-scroll__content",key:"content",ref:D,tabindex:-1},B.flat()),q==="tbody"?i.h(q,{class:"q-virtual-scroll__padding",key:"after",ref:U},[i.h("tr",[i.h("td",{style:{[oe]:`${W.value}px`,...ve},colspan:j.value})])]):i.h(q,{class:"q-virtual-scroll__padding",key:"after",ref:U,style:{[oe]:`${W.value}px`,...ve}})]}function H(q){v!==q&&(f.onVirtualScroll!==void 0&&m("virtualScroll",{index:q,from:Q.value.from,to:Q.value.to-1,direction:q<v?"decrease":"increase",ref:g}),v=q)}se();const ie=hu(V,C.platform.is.ios===!0?120:35);i.onBeforeMount(()=>{se()});let ge=!1;return i.onDeactivated(()=>{ge=!0}),i.onActivated(()=>{if(ge!==!0)return;const q=l();A!==void 0&&q!==void 0&&q!==null&&q.nodeType!==8?os(q,A,f.virtualScrollHorizontal,C.lang.rtl):T(v)}),i.onBeforeUnmount(()=>{ie.cancel()}),Object.assign(g,{scrollTo:T,reset:le,refresh:P}),{virtualScrollSliceRange:Q,virtualScrollSliceSizeComputed:O,setVirtualScrollSize:se,onVirtualScrollEvt:ie,localResetVirtualScroll:ae,padVirtualScroll:ce,scrollTo:T,reset:le,refresh:P}}function as(t,l,o){if(o<=l)return l;const u=o-l+1;let s=l+(t-l)%u;return s<l&&(s=u+s),s===0?0:s}const us=t=>["add","add-unique","toggle"].includes(t),hm=".*+?^${}()|[]\\",mm=Object.keys(_i),ss=Ye({name:"QSelect",inheritAttrs:!1,props:{...ls,...Po,..._i,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],popupNoRouteDismiss:Boolean,useInput:Boolean,useChips:Boolean,newValueMode:{type:String,validator:us},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:{},transitionHide:{},transitionDuration:{},behavior:{type:String,validator:t=>["default","menu","dialog"].includes(t),default:"default"},virtualScrollItemSize:ls.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...zo,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(t,{slots:l,emit:o}){const{proxy:u}=i.getCurrentInstance(),{$q:s}=u,f=i.ref(!1),m=i.ref(!1),g=i.ref(-1),C=i.ref(""),A=i.ref(!1),v=i.ref(!1);let k=null,y=null,w,R,W,O=null,G,U,D,Q;const j=i.ref(null),Y=i.ref(null),I=i.ref(null),le=i.ref(null),P=i.ref(null),T=Ja(t),V=bu(Vi),S=i.computed(()=>Array.isArray(t.options)?t.options.length:0),Z=i.computed(()=>t.virtualScrollItemSize===void 0?t.optionsDense===!0?24:48:t.virtualScrollItemSize),{virtualScrollSliceRange:F,virtualScrollSliceSizeComputed:ae,localResetVirtualScroll:se,padVirtualScroll:ce,onVirtualScrollEvt:H,scrollTo:ie,setVirtualScrollSize:ge}=dm({virtualScrollLength:S,getVirtualScrollTarget:qi,getVirtualScrollEl:Dr,virtualScrollItemSizeComputed:Z}),q=Uo(),B=i.computed(()=>{const _=t.mapOptions===!0&&t.multiple!==!0,te=t.modelValue!==void 0&&(t.modelValue!==null||_===!0)?t.multiple===!0&&Array.isArray(t.modelValue)?t.modelValue:[t.modelValue]:[];if(t.mapOptions===!0&&Array.isArray(t.options)===!0){const J=t.mapOptions===!0&&w!==void 0?w:[],me=te.map(Oe=>Fr(Oe,J));return t.modelValue===null&&_===!0?me.filter(Oe=>Oe!==null):me}return te}),oe=i.computed(()=>{const _={};return mm.forEach(te=>{const J=t[te];J!==void 0&&(_[te]=J)}),_}),ve=i.computed(()=>t.optionsDark===null?q.isDark.value:t.optionsDark),_e=i.computed(()=>Vr(B.value)),K=i.computed(()=>{let _="q-field__input q-placeholder col";return t.hideSelected===!0||B.value.length===0?[_,t.inputClass]:(_+=" q-field__input--padding",t.inputClass===void 0?_:[_,t.inputClass])}),ne=i.computed(()=>(t.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(t.popupContentClass?" "+t.popupContentClass:"")),Ee=i.computed(()=>S.value===0),X=i.computed(()=>B.value.map(_=>Ge.value(_)).join(", ")),Ne=i.computed(()=>t.displayValue!==void 0?t.displayValue:X.value),ot=i.computed(()=>t.optionsHtml===!0?()=>!0:_=>_!=null&&_.html===!0),Nt=i.computed(()=>t.displayValueHtml===!0||t.displayValue===void 0&&(t.optionsHtml===!0||B.value.some(ot.value))),_t=i.computed(()=>q.focused.value===!0?t.tabindex:-1),nt=i.computed(()=>{const _={tabindex:t.tabindex,role:"combobox","aria-label":t.label,"aria-readonly":t.readonly===!0?"true":"false","aria-autocomplete":t.useInput===!0?"list":"none","aria-expanded":f.value===!0?"true":"false","aria-controls":`${q.targetUid.value}_lb`};return g.value>=0&&(_["aria-activedescendant"]=`${q.targetUid.value}_${g.value}`),_}),bt=i.computed(()=>({id:`${q.targetUid.value}_lb`,role:"listbox","aria-multiselectable":t.multiple===!0?"true":"false"})),en=i.computed(()=>B.value.map((_,te)=>({index:te,opt:_,html:ot.value(_),selected:!0,removeAtIndex:vn,toggleOption:Dt,tabindex:_t.value}))),ct=i.computed(()=>{if(S.value===0)return[];const{from:_,to:te}=F.value;return t.options.slice(_,te).map((J,me)=>{const Oe=Ft.value(J)===!0,Be=Dn(J)===!0,He=_+me,Le={clickable:!0,active:Be,activeClass:$t.value,manualFocus:!0,focused:!1,disable:Oe,tabindex:-1,dense:t.optionsDense,dark:ve.value,role:"option","aria-selected":Be===!0?"true":"false",id:`${q.targetUid.value}_${He}`,onClick:()=>{Dt(J)}};return Oe!==!0&&(g.value===He&&(Le.focused=!0),s.platform.is.desktop===!0&&(Le.onMousemove=()=>{f.value===!0&&Gt(He)})),{index:He,opt:J,html:ot.value(J),label:Ge.value(J),selected:Le.active,focused:Le.focused,toggleOption:Dt,setOptionIndex:Gt,itemProps:Le}})}),pn=i.computed(()=>t.dropdownIcon!==void 0?t.dropdownIcon:s.iconSet.arrow.dropdown),$r=i.computed(()=>t.optionsCover===!1&&t.outlined!==!0&&t.standout!==!0&&t.borderless!==!0&&t.rounded!==!0),$t=i.computed(()=>t.optionsSelectedClass!==void 0?t.optionsSelectedClass:t.color!==void 0?`text-${t.color}`:""),Fe=i.computed(()=>Fn(t.optionValue,"value")),Ge=i.computed(()=>Fn(t.optionLabel,"label")),Ft=i.computed(()=>Fn(t.optionDisable,"disable")),fr=i.computed(()=>B.value.map(_=>Fe.value(_))),$n=i.computed(()=>{const _={onInput:Vi,onChange:V,onKeydown:Oi,onKeyup:Bi,onKeypress:Ri,onFocus:hr,onClick(te){R===!0&&Kt(te)}};return _.onCompositionstart=_.onCompositionupdate=_.onCompositionend=V,_});i.watch(B,_=>{w=_,t.useInput===!0&&t.fillInput===!0&&t.multiple!==!0&&q.innerLoading.value!==!0&&(m.value!==!0&&f.value!==!0||_e.value!==!0)&&(W!==!0&&rn(),(m.value===!0||f.value===!0)&&bn(""))},{immediate:!0}),i.watch(()=>t.fillInput,rn),i.watch(f,Wr),i.watch(S,dl);function Ti(_){return t.emitValue===!0?Fe.value(_):_}function tn(_){if(_!==-1&&_<B.value.length)if(t.multiple===!0){const te=t.modelValue.slice();o("remove",{index:_,value:te.splice(_,1)[0]}),o("update:modelValue",te)}else o("update:modelValue",null)}function vn(_){tn(_),q.focus()}function dr(_,te){const J=Ti(_);if(t.multiple!==!0){t.fillInput===!0&&Un(Ge.value(_),!0,!0),o("update:modelValue",J);return}if(B.value.length===0){o("add",{index:0,value:J}),o("update:modelValue",t.multiple===!0?[J]:J);return}if(te===!0&&Dn(_)===!0||t.maxValues!==void 0&&t.modelValue.length>=t.maxValues)return;const me=t.modelValue.slice();o("add",{index:me.length,value:J}),me.push(J),o("update:modelValue",me)}function Dt(_,te){if(q.editable.value!==!0||_===void 0||Ft.value(_)===!0)return;const J=Fe.value(_);if(t.multiple!==!0){te!==!0&&(Un(t.fillInput===!0?Ge.value(_):"",!0,!0),nn()),Y.value!==null&&Y.value.focus(),(B.value.length===0||Jt(Fe.value(B.value[0]),J)!==!0)&&o("update:modelValue",t.emitValue===!0?J:_);return}if((R!==!0||A.value===!0)&&q.focus(),hr(),B.value.length===0){const Be=t.emitValue===!0?J:_;o("add",{index:0,value:Be}),o("update:modelValue",t.multiple===!0?[Be]:Be);return}const me=t.modelValue.slice(),Oe=fr.value.findIndex(Be=>Jt(Be,J));if(Oe!==-1)o("remove",{index:Oe,value:me.splice(Oe,1)[0]});else{if(t.maxValues!==void 0&&me.length>=t.maxValues)return;const Be=t.emitValue===!0?J:_;o("add",{index:me.length,value:Be}),me.push(Be)}o("update:modelValue",me)}function Gt(_){if(s.platform.is.desktop!==!0)return;const te=_!==-1&&_<S.value?_:-1;g.value!==te&&(g.value=te)}function _n(_=1,te){if(f.value===!0){let J=g.value;do J=as(J+_,-1,S.value-1);while(J!==-1&&J!==g.value&&Ft.value(t.options[J])===!0);g.value!==J&&(Gt(J),ie(J),te!==!0&&t.useInput===!0&&t.fillInput===!0&&zn(J>=0?Ge.value(t.options[J]):G,!0))}}function Fr(_,te){const J=me=>Jt(Fe.value(me),_);return t.options.find(J)||te.find(J)||_}function Fn(_,te){const J=_!==void 0?_:te;return typeof J=="function"?J:me=>me!==null&&typeof me=="object"&&J in me?me[J]:me}function Dn(_){const te=Fe.value(_);return fr.value.find(J=>Jt(J,te))!==void 0}function hr(_){t.useInput===!0&&Y.value!==null&&(_===void 0||Y.value===_.target&&_.target.value===X.value)&&Y.value.select()}function mr(_){Vn(_,27)===!0&&f.value===!0&&(Kt(_),nn(),rn()),o("keyup",_)}function Bi(_){const{value:te}=_.target;if(_.keyCode!==void 0){mr(_);return}if(_.target.value="",k!==null&&(clearTimeout(k),k=null),y!==null&&(clearTimeout(y),y=null),rn(),typeof te=="string"&&te.length!==0){const J=te.toLocaleLowerCase(),me=Be=>{const He=t.options.find(Le=>Be.value(Le).toLocaleLowerCase()===J);return He===void 0?!1:(B.value.indexOf(He)===-1?Dt(He):nn(),!0)},Oe=Be=>{me(Fe)!==!0&&(me(Ge)===!0||Be===!0||bn(te,!0,()=>Oe(!0)))};Oe()}else q.clearValue(_)}function Ri(_){o("keypress",_)}function Oi(_){if(o("keydown",_),Ho(_)===!0)return;const te=C.value.length!==0&&(t.newValueMode!==void 0||t.onNewValue!==void 0),J=_.shiftKey!==!0&&t.multiple!==!0&&(g.value!==-1||te===!0);if(_.keyCode===27){It(_);return}if(_.keyCode===9&&J===!1){yn();return}if(_.target===void 0||_.target.id!==q.targetUid.value||q.editable.value!==!0)return;if(_.keyCode===40&&q.innerLoading.value!==!0&&f.value===!1){Ke(_),wn();return}if(_.keyCode===8&&(t.useChips===!0||t.clearable===!0)&&t.hideSelected!==!0&&C.value.length===0){t.multiple===!0&&Array.isArray(t.modelValue)===!0?tn(t.modelValue.length-1):t.multiple!==!0&&t.modelValue!==null&&o("update:modelValue",null);return}(_.keyCode===35||_.keyCode===36)&&(typeof C.value!="string"||C.value.length===0)&&(Ke(_),g.value=-1,_n(_.keyCode===36?1:-1,t.multiple)),(_.keyCode===33||_.keyCode===34)&&ae.value!==void 0&&(Ke(_),g.value=Math.max(-1,Math.min(S.value,g.value+(_.keyCode===33?-1:1)*ae.value.view)),_n(_.keyCode===33?1:-1,t.multiple)),(_.keyCode===38||_.keyCode===40)&&(Ke(_),_n(_.keyCode===38?-1:1,t.multiple));const me=S.value;if((D===void 0||Q<Date.now())&&(D=""),me>0&&t.useInput!==!0&&_.key!==void 0&&_.key.length===1&&_.altKey===!1&&_.ctrlKey===!1&&_.metaKey===!1&&(_.keyCode!==32||D.length!==0)){f.value!==!0&&wn(_);const Oe=_.key.toLocaleLowerCase(),Be=D.length===1&&D[0]===Oe;Q=Date.now()+1500,Be===!1&&(Ke(_),D+=Oe);const He=new RegExp("^"+D.split("").map(gr=>hm.indexOf(gr)!==-1?"\\"+gr:gr).join(".*"),"i");let Le=g.value;if(Be===!0||Le<0||He.test(Ge.value(t.options[Le]))!==!0)do Le=as(Le+1,-1,me-1);while(Le!==g.value&&(Ft.value(t.options[Le])===!0||He.test(Ge.value(t.options[Le]))!==!0));g.value!==Le&&i.nextTick(()=>{Gt(Le),ie(Le),Le>=0&&t.useInput===!0&&t.fillInput===!0&&zn(Ge.value(t.options[Le]),!0)});return}if(!(_.keyCode!==13&&(_.keyCode!==32||t.useInput===!0||D!=="")&&(_.keyCode!==9||J===!1))){if(_.keyCode!==9&&Ke(_),g.value!==-1&&g.value<me){Dt(t.options[g.value]);return}if(te===!0){const Oe=(Be,He)=>{if(He){if(us(He)!==!0)return}else He=t.newValueMode;if(Un("",t.multiple!==!0,!0),Be==null)return;(He==="toggle"?Dt:dr)(Be,He==="add-unique"),t.multiple!==!0&&(Y.value!==null&&Y.value.focus(),nn())};if(t.onNewValue!==void 0?o("newValue",C.value,Oe):Oe(C.value),t.multiple!==!0)return}f.value===!0?yn():q.innerLoading.value!==!0&&wn()}}function Dr(){return R===!0?P.value:I.value!==null&&I.value.contentEl!==null?I.value.contentEl:void 0}function qi(){return Dr()}function rl(){return t.hideSelected===!0?[]:l["selected-item"]!==void 0?en.value.map(_=>l["selected-item"](_)).slice():l.selected!==void 0?[].concat(l.selected()):t.useChips===!0?en.value.map((_,te)=>i.h(Eh,{key:"option-"+te,removable:q.editable.value===!0&&Ft.value(_.opt)!==!0,dense:!0,textColor:t.color,tabindex:_t.value,onRemove(){_.removeAtIndex(te)}},()=>i.h("span",{class:"ellipsis",[_.html===!0?"innerHTML":"textContent"]:Ge.value(_.opt)}))):[i.h("span",{[Nt.value===!0?"innerHTML":"textContent"]:Ne.value})]}function Mi(){if(Ee.value===!0)return l["no-option"]!==void 0?l["no-option"]({inputValue:C.value}):void 0;const _=l.option!==void 0?l.option:J=>i.h(Ah,{key:J.index,...J.itemProps},()=>i.h(Th,()=>i.h(Bh,()=>i.h("span",{[J.html===!0?"innerHTML":"textContent"]:J.label}))));let te=ce("div",ct.value.map(_));return l["before-options"]!==void 0&&(te=l["before-options"]().concat(te)),qn(l["after-options"],te)}function il(_,te){const J=te===!0?{...nt.value,...q.splitAttrs.attributes.value}:void 0,me={ref:te===!0?Y:void 0,key:"i_t",class:K.value,style:t.inputStyle,value:C.value!==void 0?C.value:"",type:"search",...J,id:te===!0?q.targetUid.value:void 0,maxlength:t.maxlength,autocomplete:t.autocomplete,"data-autofocus":_===!0||t.autofocus===!0||void 0,disabled:t.disable===!0,readonly:t.readonly===!0,...$n.value};return _!==!0&&R===!0&&(Array.isArray(me.class)===!0?me.class=[...me.class,"no-pointer-events"]:me.class+=" no-pointer-events"),i.h("input",me)}function Vi(_){k!==null&&(clearTimeout(k),k=null),y!==null&&(clearTimeout(y),y=null),!(_&&_.target&&_.target.qComposing===!0)&&(zn(_.target.value||""),W=!0,G=C.value,q.focused.value!==!0&&(R!==!0||A.value===!0)&&q.focus(),t.onFilter!==void 0&&(k=setTimeout(()=>{k=null,bn(C.value)},t.inputDebounce)))}function zn(_,te){C.value!==_&&(C.value=_,te===!0||t.inputDebounce===0||t.inputDebounce==="0"?o("inputValue",_):y=setTimeout(()=>{y=null,o("inputValue",_)},t.inputDebounce))}function Un(_,te,J){W=J!==!0,t.useInput===!0&&(zn(_,!0),(te===!0||J!==!0)&&(G=_),te!==!0&&bn(_))}function bn(_,te,J){if(t.onFilter===void 0||te!==!0&&q.focused.value!==!0)return;q.innerLoading.value===!0?o("filterAbort"):(q.innerLoading.value=!0,v.value=!0),_!==""&&t.multiple!==!0&&B.value.length!==0&&W!==!0&&_===Ge.value(B.value[0])&&(_="");const me=setTimeout(()=>{f.value===!0&&(f.value=!1)},10);O!==null&&clearTimeout(O),O=me,o("filter",_,(Oe,Be)=>{(te===!0||q.focused.value===!0)&&O===me&&(clearTimeout(O),typeof Oe=="function"&&Oe(),v.value=!1,i.nextTick(()=>{q.innerLoading.value=!1,q.editable.value===!0&&(te===!0?f.value===!0&&nn():f.value===!0?Wr(!0):f.value=!0),typeof Be=="function"&&i.nextTick(()=>{Be(u)}),typeof J=="function"&&i.nextTick(()=>{J(u)})}))},()=>{q.focused.value===!0&&O===me&&(clearTimeout(O),q.innerLoading.value=!1,v.value=!1),f.value===!0&&(f.value=!1)})}function ol(){return i.h(nm,{ref:I,class:ne.value,style:t.popupContentStyle,modelValue:f.value,fit:t.menuShrink!==!0,cover:t.optionsCover===!0&&Ee.value!==!0&&t.useInput!==!0,anchor:t.menuAnchor,self:t.menuSelf,offset:t.menuOffset,dark:ve.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:t.popupNoRouteDismiss,square:$r.value,transitionShow:t.transitionShow,transitionHide:t.transitionHide,transitionDuration:t.transitionDuration,separateClosePopup:!0,...bt.value,onScrollPassive:H,onBeforeShow:Ii,onBeforeHide:zr,onShow:ll},Mi)}function zr(_){Pi(_),yn()}function ll(){ge()}function Ur(_){Kt(_),Y.value!==null&&Y.value.focus(),A.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function al(_){Kt(_),i.nextTick(()=>{A.value=!1})}function ul(){const _=[i.h(Ch,{class:`col-auto ${q.fieldClass.value}`,...oe.value,for:q.targetUid.value,dark:ve.value,square:!0,loading:v.value,itemAligned:!1,filled:!0,stackLabel:C.value.length!==0,...q.splitAttrs.listeners.value,onFocus:Ur,onBlur:al},{...l,rawControl:()=>q.getControl(!0),before:void 0,after:void 0})];return f.value===!0&&_.push(i.h("div",{ref:P,class:ne.value+" scroll",style:t.popupContentStyle,...bt.value,onClick:It,onScrollPassive:H},Mi())),i.h(sm,{ref:le,modelValue:m.value,position:t.useInput===!0?"top":void 0,transitionShow:U,transitionHide:t.transitionHide,transitionDuration:t.transitionDuration,noRouteDismiss:t.popupNoRouteDismiss,onBeforeShow:Ii,onBeforeHide:sl,onHide:cl,onShow:fl},()=>i.h("div",{class:"q-select__dialog"+(ve.value===!0?" q-select__dialog--dark q-dark":"")+(A.value===!0?" q-select__dialog--focused":"")},_))}function sl(_){Pi(_),le.value!==null&&le.value.__updateRefocusTarget(q.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),q.focused.value=!1}function cl(_){nn(),q.focused.value===!1&&o("blur",_),rn()}function fl(){const _=document.activeElement;(_===null||_.id!==q.targetUid.value)&&Y.value!==null&&Y.value!==_&&Y.value.focus(),ge()}function yn(){m.value!==!0&&(g.value=-1,f.value===!0&&(f.value=!1),q.focused.value===!1&&(O!==null&&(clearTimeout(O),O=null),q.innerLoading.value===!0&&(o("filterAbort"),q.innerLoading.value=!1,v.value=!1)))}function wn(_){q.editable.value===!0&&(R===!0?(q.onControlFocusin(_),m.value=!0,i.nextTick(()=>{q.focus()})):q.focus(),t.onFilter!==void 0?bn(C.value):(Ee.value!==!0||l["no-option"]!==void 0)&&(f.value=!0))}function nn(){m.value=!1,yn()}function rn(){t.useInput===!0&&Un(t.multiple!==!0&&t.fillInput===!0&&B.value.length!==0&&Ge.value(B.value[0])||"",!0,!0)}function Wr(_){let te=-1;if(_===!0){if(B.value.length!==0){const J=Fe.value(B.value[0]);te=t.options.findIndex(me=>Jt(Fe.value(me),J))}se(te)}Gt(te)}function dl(_,te){f.value===!0&&q.innerLoading.value===!1&&(se(-1,!0),i.nextTick(()=>{f.value===!0&&q.innerLoading.value===!1&&(_>te?se():Wr(!0))}))}function Li(){m.value===!1&&I.value!==null&&I.value.updatePosition()}function Ii(_){_!==void 0&&Kt(_),o("popupShow",_),q.hasPopupOpen=!0,q.onControlFocusin(_)}function Pi(_){_!==void 0&&Kt(_),o("popupHide",_),q.hasPopupOpen=!1,q.onControlFocusout(_)}function Ni(){R=s.platform.is.mobile!==!0&&t.behavior!=="dialog"?!1:t.behavior!=="menu"&&(t.useInput===!0?l["no-option"]!==void 0||t.onFilter!==void 0||Ee.value===!1:!0),U=s.platform.is.ios===!0&&R===!0&&t.useInput===!0?"fade":t.transitionShow}return i.onBeforeUpdate(Ni),i.onUpdated(Li),Ni(),i.onBeforeUnmount(()=>{k!==null&&clearTimeout(k),y!==null&&clearTimeout(y)}),Object.assign(u,{showPopup:wn,hidePopup:nn,removeAtIndex:tn,add:dr,toggleOption:Dt,getOptionIndex:()=>g.value,setOptionIndex:Gt,moveOptionSelection:_n,filter:bn,updateMenuPosition:Li,updateInputValue:Un,isOptionSelected:Dn,getEmittingOptionValue:Ti,isOptionDisabled:(..._)=>Ft.value.apply(null,_)===!0,getOptionValue:(..._)=>Fe.value.apply(null,_),getOptionLabel:(..._)=>Ge.value.apply(null,_)}),Object.assign(q,{innerValue:B,fieldClass:i.computed(()=>`q-select q-field--auto-height q-select--with${t.useInput!==!0?"out":""}-input q-select--with${t.useChips!==!0?"out":""}-chips q-select--${t.multiple===!0?"multiple":"single"}`),inputRef:j,targetRef:Y,hasValue:_e,showPopup:wn,floatingLabel:i.computed(()=>t.hideSelected!==!0&&_e.value===!0||typeof C.value=="number"||C.value.length!==0||Vr(t.displayValue)),getControlChild:()=>{if(q.editable.value!==!1&&(m.value===!0||Ee.value!==!0||l["no-option"]!==void 0))return R===!0?ul():ol();q.hasPopupOpen===!0&&(q.hasPopupOpen=!1)},controlEvents:{onFocusin(_){q.onControlFocusin(_)},onFocusout(_){q.onControlFocusout(_,()=>{rn(),yn()})},onClick(_){if(It(_),R!==!0&&f.value===!0){yn(),Y.value!==null&&Y.value.focus();return}wn(_)}},getControl:_=>{const te=rl(),J=_===!0||m.value!==!0||R!==!0;if(t.useInput===!0)te.push(il(_,J));else if(q.editable.value===!0){const Oe=J===!0?nt.value:void 0;te.push(i.h("input",{ref:J===!0?Y:void 0,key:"d_t",class:"q-select__focus-target",id:J===!0?q.targetUid.value:void 0,value:Ne.value,readonly:!0,"data-autofocus":_===!0||t.autofocus===!0||void 0,...Oe,onKeydown:Oi,onKeyup:mr,onKeypress:Ri})),J===!0&&typeof t.autocomplete=="string"&&t.autocomplete.length!==0&&te.push(i.h("input",{class:"q-select__autocomplete-input",autocomplete:t.autocomplete,tabindex:-1,onKeyup:Bi}))}if(T.value!==void 0&&t.disable!==!0&&fr.value.length!==0){const Oe=fr.value.map(Be=>i.h("option",{value:Be,selected:!0}));te.push(i.h("select",{class:"hidden",name:T.value,multiple:t.multiple},Oe))}const me=t.useInput===!0||J!==!0?void 0:q.splitAttrs.attributes.value;return i.h("div",{class:"q-field__native row items-center",...me,...q.splitAttrs.listeners.value},te)},getInnerAppend:()=>t.loading!==!0&&v.value!==!0&&t.hideDropdownIcon!==!0?[i.h(vt,{class:"q-select__dropdown-icon"+(f.value===!0?" rotate-180":""),name:pn.value})]:null}),Wo(q)}}),gm=gn(i.defineComponent({__name:"SelectControl",props:i.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=i.ref([]),o=i.useModel(t,"modelValue"),u=t,s=i.ref(!1),f=i.computed(()=>u.control.customParams),m=i.ref([]),g=i.computed(()=>{var k;return((k=f.value)==null?void 0:k.collection)||null}),C=i.computed(()=>g.value?m.value:u.control.options),A=nr();i.watch(g,k=>{if(!k)return;const y=A.getCollection(g.value);if(y){m.value=y;return}s.value=!0},{immediate:!0});function v(k,y){if(k===""){y(()=>{l.value=Pe.cloneDeep(C.value)});return}y(()=>{const w=k.toLowerCase();l.value=(C.value||[]).filter(R=>R.toLowerCase().includes(w))})}return(k,y)=>{const w=i.resolveComponent("ControlLabel");return i.openBlock(),i.createElementBlock(i.Fragment,null,[k.control.label?(i.openBlock(),i.createBlock(w,{key:0,label:k.control.label},null,8,["label"])):i.createCommentVNode("",!0),i.createVNode(yi,{class:"q-card win-card row items-center q-px-md"},{default:i.withCtx(()=>[i.createVNode(ss,{borderless:"",label:k.control.label,modelValue:o.value,"onUpdate:modelValue":y[0]||(y[0]=R=>o.value=R),"emit-value":"","option-label":"label","map-options":"","use-input":"",clearable:"",onFilter:v,options:l.value,style:{minHeight:"70px",width:"300px",margin:"auto"}},null,8,["label","modelValue","options"])]),_:1})],64)}}}),[["__scopeId","data-v-6268ce2c"]]),pm={class:"text-center",style:{width:"100%"}},vm={class:"text-center text-weight-medium"},_m={class:"question-title"},bm=i.defineComponent({__name:"StepHeader",props:{formGroup:{},stepsCount:{}},setup(t){return(l,o)=>(i.openBlock(),i.createElementBlock("div",pm,[i.createElementVNode("div",vm,i.toDisplayString(l.formGroup.order+1)+"/"+i.toDisplayString(l.stepsCount),1),i.createElementVNode("div",_m,i.toDisplayString(l.formGroup.title||""),1)]))}});function ym(){return i.inject(Md)}const cs={required:{fn:()=>t=>{var l;if(t.controlType===Xt.ControlType.LOCATION){const{value:o}=t.value;return Pe.values(Pe.omit(o,"catastro")).every(u=>!Pe.isNil(u)&&u!=="")&&(o!=null&&o.catastro?wm(o==null?void 0:o.catastro):!0)}return t.controlType===Xt.ControlType.DYNAMIC_ARRAY||t.multiple?(((l=t.value)==null?void 0:l.length)||0)>0:!Pe.isNil(t.value)&&t.value!==""},message:"Este campo es requerido"},min:{fn:t=>l=>fs(l,">=",t),message:"El valor es menor al mínimo permitido"},max:{fn:t=>l=>fs(l,"<=",t),message:"El valor es mayor al máximo permitido"},onlyNumbers:{fn:()=>t=>/^[0-9]*$/.test(String(t.value)||""),message:"Este campo solo acepta números"},email:{fn:()=>t=>t.value?/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(String(t.value)||""):!0,message:"El correo electrónico no es válido"},url:{fn:()=>t=>t.value?/^(ftp|http|https):\/\/[^ "]+$/.test(String(t.value)||"")||/^www\.[^ "]+$/.test(String(t.value)||""):!0,message:"La URL no es válida"}};function fs(t,l,o){const u={">":(s,f)=>s>f,"<":(s,f)=>s<f,">=":(s,f)=>s>=f,"<=":(s,f)=>s<=f}[l];if(t.controlType===Xt.ControlType.NUMBER){const s=Number(t.value);return u(s,o)}if(t.controlType===Xt.ControlType.TEXT){const s=(t.value||"").length;return u(s,o)}if([Xt.ControlType.CARDS_SELECT,Xt.ControlType.SELECT].includes(t.controlType)&&t.multiple){const s=(t.value||[]).length;return u(s,o)}return!1}function wm(t){return/^[A-Za-z0-9]{20}$/.test(t)}function Sm(t){const l=[];t.controls.forEach((u,s)=>{const f=xm(u);l.push(...f);const m=!f.length;t.controls[s].valid=m});const o=!l.length;return t.valid=o,l}function xm(t){const l=[];return t.validators&&t.validators.forEach(o=>{const{validator:u,param:s}=o,f=cs[u]||null;f&&(f.fn(Number(s))(t)||l.push(f.message))}),l}function Cm(t,l,o){return l.controlType==="dynamic_array"?km(t,l,o):l.controlType==="object"?ds(t,l,o):[]}function km(t,l,o){var f,m;const u=[],s=((f=l.itemsLength)==null?void 0:f.value)||0;for(let g=0;g<s;g++){const C=ds({...t,title:`${t.title} ${g+1}`},{...l,value:(m=l.value)==null?void 0:m[g]},o);C.forEach(A=>{A.controls.forEach(v=>{v.code=`${g}.${v.code}`})}),u.push(...C)}return u}function ds(t,l,o){const u=l.structure;return Pe.chunk(u,o).map(f=>({...t,controls:Pa(f).map(m=>{var g;return{...m,id:l.id,value:((g=l.value)==null?void 0:g[m.code])||m.value}})}))}function Em(t){return Pe.chain(t).groupBy("group").toPairs().orderBy(([o,u])=>o).map(([o,u])=>{var m;const s=((m=u.find(g=>{var C;return!!((C=g.title)!=null&&C.trim())}))==null?void 0:m.title)||"",f=u[0].group;return{title:s,controls:u,order:f,visible:!0,valid:u.every(g=>g.valid),id:""}}).value()}const Am={maxControlsPerGroup:1,notifyValidations:!0};function hs(t,l){const{maxControlsPerGroup:o,notifyValidations:u}={...Am,...l||{}},s=nr(),f=i.computed(()=>s.formSteps[t]),m=i.ref([]),g=i.ref([]),C=(w,R)=>{s.setControlValue(t,w);const W=m.value.find(U=>U.id===R);W&&(g.value=Sm(W));const O=v(w),G=k(w);(O||G)&&A()};function A(){const w=f.value.controls,R=[];Em(w).forEach(O=>{const G=O.controls;if(G.every(D=>!Ro.includes(D.controlType))){R.push(O);return}let U={...O,controls:[]};for(const D of G)if(Ro.includes(D.controlType)){R.push(U),U={...U,controls:[]};const Q=Cm(O,D,o);R.push(...Q)}else U.controls.push(D)}),m.value=Pe.orderBy(R,"order").map(O=>({...O,id:O.controls.map(G=>G.id).join("-")})).filter(O=>O.controls.some(G=>G.visible)).map((O,G)=>({...O,order:G,controls:O.controls.filter(U=>U.visible)}))}function v({id:w,value:R}){let W=!1;const G=f.value.controls.filter(U=>{var D;return((D=U.conditions)==null?void 0:D.some(Q=>Q.id===w))||!1});if(G!=null&&G.length)return G.forEach(({id:U,conditions:D,visible:Q})=>{const j=D.every(Y=>{const{value:I,operator:le}=Y;return{"==":R===I,"!=":R!==I,">":R>I,"<":R<I}[le]||!1});Q!==j&&(s.setControlVisibility(t,U,j),W=!0)}),W}function k({id:w,value:R}){const W=Number(R||0);let O=!1;const U=f.value.controls.filter(D=>{var Q;return D.controlType==="dynamic_array"&&((Q=D.itemsLength)==null?void 0:Q.controlId)===w});if(U!=null&&U.length)return U.forEach(({id:D,itemsLength:Q})=>{(Q==null?void 0:Q.value)!==W&&(s.setControlItemsLength(t,D,W),O=!0)}),O}const{notify:y}=ym();return i.watch(g,w=>{w.length&&(u&&y({message:w[0],color:"negative",position:"bottom",timeout:5e3,actions:[{label:"✕",color:"white"}]}),g.value=[])},{deep:!0}),i.watch(f,()=>{A()},{immediate:!0}),{model:m,errorMessages:g,rebuildModel:A,onControlValueUpdate:C}}const Tm={key:0,style:{height:"100%"}},Bm={class:"q-py-sm"},Rm={class:"form-steps-container"},Om={class:"row justify-center items-center",style:{height:"100%",width:"100vw"}},qm={class:"controls-container",style:{height:"100%"}},Mm={class:"form-container flex column items-center q-px-md",style:{width:"100vw"}},Vm=gn(i.defineComponent({__name:"MultipleFormGroups",props:{index:{}},setup(t){const l=t,o=nr(),{model:u,onControlValueUpdate:s}=hs(l.index),f=i.computed(()=>u.value.length),m=i.ref(0),g=i.computed(()=>u.value[m.value]),C=v=>{const k=Pe.toPairs(Pe.groupBy(v,"row"));return Pe.orderBy(k,([y,w])=>Number(y),"asc").map(([y,w])=>({controls:Pe.orderBy(w,"col","asc")}))};i.watch(m,v=>{const k=v+1===f.value;o.setOnLastSubstep(k)},{immediate:!0});function A(v){return{input_text:Ko,input_number:Ko,checkbox:lu,switch:Td,select:gm,cards_select:yd}[v]||Ko}return(v,k)=>g.value?(i.openBlock(),i.createElementBlock("div",Tm,[i.createElementVNode("div",Bm,[i.createVNode(bm,{formGroup:g.value,stepsCount:f.value},null,8,["formGroup","stepsCount"])]),i.createElementVNode("div",Rm,[i.createElementVNode("div",Om,[i.createElementVNode("div",qm,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(u),y=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:y.id},[m.value===y.order?(i.openBlock(),i.createBlock(td,{key:0,transition:"slide-left",style:{height:"75%",width:"100vw"},class:"row q-py-xs justify-center items-center bg-grey-1"},{default:i.withCtx(()=>[i.createElementVNode("div",Mm,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(C(y.controls),(w,R)=>(i.openBlock(),i.createElementBlock("div",{class:"q-mb-xl",key:R},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(w.controls,(W,O)=>(i.openBlock(),i.createElementBlock("div",{key:O},[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(A(W.controlType)),{control:W,modelValue:w.controls[O].value,"onUpdate:modelValue":[G=>w.controls[O].value=G,G=>i.unref(s)(W,y.id)]},null,8,["control","modelValue","onUpdate:modelValue"]))]))),128))]))),128))])]),_:2},1024)):i.createCommentVNode("",!0)],64))),128)),i.createVNode(xh,{currentStep:m.value,stepsCount:f.value,nextDisabled:!g.value.valid,onPrev:k[0]||(k[0]=y=>m.value--),onNext:k[1]||(k[1]=y=>g.value.valid&&m.value++)},null,8,["currentStep","stepsCount","nextDisabled"])])])])])):i.createCommentVNode("",!0)}}),[["__scopeId","data-v-2d9dca33"]]),Lm={style:{"font-size":"16px","padding-top":"1rem"}},Im={style:{"font-size":"16px","padding-top":"1rem"}},tl=gn(i.defineComponent({__name:"SimpleInput",props:i.mergeModels({control:{},rules:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=i.useModel(t,"modelValue"),o=t,u=i.computed(()=>{var s;return(s=o.control.controlType)==null?void 0:s.split("_")[1]});return(s,f)=>(i.openBlock(),i.createBlock(yi,{class:"q-px-md win-card"},{default:i.withCtx(()=>[i.createVNode(yu,{borderless:"","reverse-fill-mask":"",modelValue:l.value,"onUpdate:modelValue":f[0]||(f[0]=m=>l.value=m),label:s.control.label,mask:u.value==="number"?"###.###.###.###.###":void 0,"input-class":{"text-right":u.value==="number"},"input-style":{fontSize:"16px"},rules:s.rules},i.createSlots({_:2},[s.control.prefix?{name:"prepend",fn:i.withCtx(()=>[i.createElementVNode("span",Lm,i.toDisplayString(s.control.prefix),1)]),key:"0"}:void 0,s.control.suffix?{name:"append",fn:i.withCtx(()=>[i.createElementVNode("span",Im,i.toDisplayString(s.control.suffix),1)]),key:"1"}:void 0]),1032,["modelValue","label","mask","input-class","rules"])]),_:1}))}}),[["__scopeId","data-v-2efb4029"]]),ms=i.defineComponent({__name:"SimpleSelect",props:i.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=i.useModel(t,"modelValue");return(o,u)=>(i.openBlock(),i.createBlock(yi,{class:"q-px-md win-card"},{default:i.withCtx(()=>[i.createVNode(ss,{borderless:"",label:o.control.label,options:o.control.options,modelValue:l.value,"onUpdate:modelValue":u[0]||(u[0]=s=>l.value=s),"emit-value":"","option-label":"label","map-options":""},null,8,["label","options","modelValue"])]),_:1}))}}),Pm={key:0,style:{height:"100%"}},Nm={class:"question-title text-center q-py-sm"},$m={class:"form-steps-container bg-grey-1"},Fm={class:"form-container",style:{height:"100%"}},Dm={class:"row items-center"},zm={class:"col-12 row"},Um=gn(i.defineComponent({__name:"SingleFormGroup",props:{index:{}},setup(t){const l=t,{model:o,onControlValueUpdate:u}=hs(l.index,{notifyValidations:!1});function s(C){return{input_text:tl,input_number:tl,select:ms,cards_select:ms,checkbox:lu}[C]||tl}const f=C=>Pe.orderBy(Pe.toPairs(Pe.groupBy(C,"row")),"row").map(([A,v])=>({controls:Pe.orderBy(v,"col")}));function m(C){return[A=>{var k;let v="";return(k=C.validators)==null||k.some(y=>{const{param:w,validator:R}=y,W=cs[R];return W.fn(Number(w))({...C,value:A})?!1:(v=W.message,!0)}),!v.length||v}]}const g=nr();return i.onMounted(()=>g.setOnLastSubstep(!0)),(C,A)=>i.unref(o)?(i.openBlock(),i.createElementBlock("div",Pm,[i.createElementVNode("div",Nm,i.toDisplayString(i.unref(o)[0].title),1),i.createElementVNode("div",$m,[i.createElementVNode("div",Fm,[i.createElementVNode("div",Dm,[i.createElementVNode("div",zm,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(f(i.unref(o)[0].controls),(v,k)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(f(i.unref(o)[0].controls).length>1?"col-md-6 col-12":"col-12"),key:k},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(v.controls,(y,w)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(`col-xs-12 col-sm q-pa-xs ${f(i.unref(o)[0].controls).length>1?"col-md-6 col-12":"col-12"}`),key:w},[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(s(y.controlType)),{control:y,modelValue:y.value,"onUpdate:modelValue":[R=>y.value=R,R=>i.unref(u)(y,i.unref(o)[0].id)],rules:m(y)},null,8,["control","modelValue","onUpdate:modelValue","rules"]))],2))),128))],2))),128))])])])])])):i.createCommentVNode("",!0)}}),[["__scopeId","data-v-a8cd1002"]]),nl=t=>(i.pushScopeId("data-v-88496229"),t=t(),i.popScopeId(),t),Wm={class:"buttons-container"},Hm={class:"max-container"},Km={key:0,class:"row checkbox justify-end q-my-sm"},Gm={style:{"max-width":"650px"}},jm=nl(()=>i.createElementVNode("br",{class:"gt-sm"},null,-1)),Qm={class:"row justify-between q-my-md q-px-md q-pb-xl"},Ym=nl(()=>i.createElementVNode("span",{class:"text-black"},"Atrás",-1)),Zm={key:1},Xm={key:0,class:"text-black"},Jm=nl(()=>i.createElementVNode("span",{class:"gt-sm"},"formulario",-1)),eg={key:1,class:"text-black"},tg=gn(i.defineComponent({__name:"StepsNavigationButtons",emits:["submit"],setup(t,{emit:l}){const{nextStep:o,previousStep:u,currentStep:s,stepsCount:f,nextDisabled:m,onLastSubstep:g}=i.toRefs(nr()),C=l,A=i.ref(!1),v=y=>{},k=()=>{s.value===f.value?C("submit"):o.value()};return(y,w)=>(i.openBlock(),i.createElementBlock("div",Wm,[i.createElementVNode("div",Hm,[i.unref(s)===i.unref(f)?(i.openBlock(),i.createElementBlock("div",Km,[i.createElementVNode("div",Gm,[i.createVNode(ou,{color:"info",class:"checkbox",modelValue:A.value,"onUpdate:modelValue":w[1]||(w[1]=R=>A.value=R)},{default:i.withCtx(()=>[i.createElementVNode("div",null,[i.createTextVNode(" He leído, comprendo y acepto los términos de tratamiento de datos "),jm,i.createTextVNode(" personales para esta solicitud. Más info. sobre la protección de datos "),i.createElementVNode("span",{style:{"text-decoration":"underline"},onClick:w[0]||(w[0]=R=>v())},"aquí"),i.createTextVNode(". ")])]),_:1},8,["modelValue"])])])):i.createCommentVNode("",!0),i.createElementVNode("div",Qm,[i.unref(s)>1?(i.openBlock(),i.createBlock(ur,{key:0,color:"info",class:"q-px-xl q-py-sm q-mr-sm win-btn win-btn-primary bg-white",onClick:i.unref(u),flat:"","no-caps":""},{default:i.withCtx(()=>[Ym]),_:1},8,["onClick"])):(i.openBlock(),i.createElementBlock("div",Zm)),i.createElementVNode("div",null,[!i.unref(m)&&i.unref(g)?(i.openBlock(),i.createBlock(ur,{key:0,color:"green",class:"q-px-xl q-py-sm q-ml-sm win-btn win-btn-primary bg-white",onClick:k,disable:i.unref(s)===i.unref(f)&&!A.value,flat:"","no-caps":""},{default:i.withCtx(()=>[i.unref(s)===i.unref(f)?(i.openBlock(),i.createElementBlock("span",Xm,[i.createTextVNode(" Enviar "),Jm])):(i.openBlock(),i.createElementBlock("span",eg," Siguiente "))]),_:1},8,["disable"])):i.createCommentVNode("",!0)])])])]))}}),[["__scopeId","data-v-88496229"]]),gs=i.defineComponent({__name:"DynamicForm",props:{forms:{}},emits:["onSubmit"],setup(t,{emit:l}){const o=t,u=l,s=i.ref(!1),f=nr(),m=C=>Pe.keys(Pe.groupBy(C.controls,"group")).length===1;i.watch(()=>o.forms,C=>{const v=new Na().fromRaw(C);f.setFormSteps(v)},{immediate:!0});function g(){const C=Pe.cloneDeep(f.formSteps),v=new Na().toRaw(C);u("onSubmit",v)}return(C,A)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",null,[i.renderSlot(C.$slots,"header"),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(f).formSteps,(v,k)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:k},[m(v)?i.withDirectives((i.openBlock(),i.createBlock(Um,{key:0,index:k},null,8,["index"])),[[i.vShow,i.unref(f).currentStep===k+1]]):i.withDirectives((i.openBlock(),i.createBlock(Vm,{key:1,index:k,onOnLastStep:A[0]||(A[0]=y=>s.value=y)},null,8,["index"])),[[i.vShow,i.unref(f).currentStep===k+1]])],64))),128))]),i.createVNode(tg,{onSubmit:g})],64))}}),ng=i.createElementVNode("img",{src:"https://upload.wikimedia.org/wikipedia/commons/thumb/9/95/Vue.js_Logo_2.svg/640px-Vue.js_Logo_2.svg.png",alt:""},null,-1),ps=i.defineComponent({__name:"TestUi",setup(t){const l=i.ref("Test W2W UI!");return(o,u)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[ng,i.createElementVNode("h1",null,i.toDisplayString(l.value),1)],64))}}),rg={install(t,l){console.log({pinia:l.pinia}),l!=null&&l.pinia?(console.log("existe una instancia de pinia!"),t.use(l.pinia)):console.error("Pinia instance is required to use this library."),Df()||console.error("No active Pinia instance. Make sure to use app.use(pinia) before accessing the store."),t.component("DynamicForm",gs),t.component("TestUi",ps)}};Zt.DynamicForm=gs,Zt.TestUi=ps,Zt.default=rg,Object.defineProperties(Zt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
35
+ }`;var we=Pf(function(){return Ae(h,ue+"return "+z).apply(o,p)});if(we.source=z,da(we))throw we;return we}function gy(e){return Te(e).toLowerCase()}function py(e){return Te(e).toUpperCase()}function vy(e,n,r){if(e=Te(e),e&&(r||n===o))return Hs(e);if(!e||!(n=St(n)))return e;var a=zt(e),c=zt(n),h=Ks(a,c),p=Gs(a,c)+1;return Bn(a,h,p).join("")}function _y(e,n,r){if(e=Te(e),e&&(r||n===o))return e.slice(0,Qs(e)+1);if(!e||!(n=St(n)))return e;var a=zt(e),c=Gs(a,zt(n))+1;return Bn(a,0,c).join("")}function by(e,n,r){if(e=Te(e),e&&(r||n===o))return e.replace(Ur,"");if(!e||!(n=St(n)))return e;var a=zt(e),c=Ks(a,zt(n));return Bn(a,c).join("")}function yy(e,n){var r=T,a=V;if($e(n)){var c="separator"in n?n.separator:c;r="length"in n?ye(n.length):r,a="omission"in n?St(n.omission):a}e=Te(e);var h=e.length;if(_r(e)){var p=zt(e);h=p.length}if(r>=h)return e;var b=r-br(a);if(b<1)return a;var E=p?Bn(p,0,b).join(""):e.slice(0,b);if(c===o)return E+a;if(p&&(b+=E.length-b),ha(c)){if(e.slice(b).search(c)){var N,$=E;for(c.global||(c=Bl(c.source,Te(rn.exec(c))+"g")),c.lastIndex=0;N=c.exec($);)var z=N.index;E=E.slice(0,z===o?b:z)}}else if(e.indexOf(St(c),b)!=b){var ee=E.lastIndexOf(c);ee>-1&&(E=E.slice(0,ee))}return E+a}function wy(e){return e=Te(e),e&&rl.test(e)?e.replace(Dr,Yg):e}var Sy=Er(function(e,n,r){return e+(r?" ":"")+n.toUpperCase()}),pa=Pc("toUpperCase");function If(e,n,r){return e=Te(e),n=r?o:n,n===o?Hg(e)?Jg(e):Ig(e):e.match(n)||[]}var Pf=Se(function(e,n){try{return yt(e,o,n)}catch(r){return da(r)?r:new pe(r)}}),xy=sn(function(e,n){return Bt(n,function(r){r=Yt(r),an(e,r,ca(e[r],e))}),e});function Cy(e){var n=e==null?0:e.length,r=fe();return e=n?Ie(e,function(a){if(typeof a[1]!="function")throw new Rt(m);return[r(a[0]),a[1]]}):[],Se(function(a){for(var c=-1;++c<n;){var h=e[c];if(yt(h[0],this,a))return yt(h[1],this,a)}})}function ky(e){return Yp(qt(e,k))}function va(e){return function(){return e}}function Ey(e,n){return e==null||e!==e?n:e}var Ay=$c(),Ty=$c(!0);function mt(e){return e}function _a(e){return gc(typeof e=="function"?e:qt(e,k))}function By(e){return vc(qt(e,k))}function Ry(e,n){return _c(e,qt(n,k))}var Oy=Se(function(e,n){return function(r){return Jr(r,e,n)}}),qy=Se(function(e,n){return function(r){return Jr(e,r,n)}});function ba(e,n,r){var a=Ze(n),c=oo(n,a);r==null&&!($e(n)&&(c.length||!a.length))&&(r=n,n=e,e=this,c=oo(n,Ze(n)));var h=!($e(r)&&"chain"in r)||!!r.chain,p=fn(e);return Bt(c,function(b){var E=n[b];e[b]=E,p&&(e.prototype[b]=function(){var N=this.__chain__;if(h||N){var $=e(this.__wrapped__),z=$.__actions__=ft(this.__actions__);return z.push({func:E,args:arguments,thisArg:e}),$.__chain__=N,$}return E.apply(e,xn([this.value()],arguments))})}),e}function My(){return et._===this&&(et._=op),this}function ya(){}function Vy(e){return e=ye(e),Se(function(n){return bc(n,e)})}var Ly=Zl(Ie),Iy=Zl(Fs),Py=Zl(Sl);function Nf(e){return ia(e)?xl(Yt(e)):hv(e)}function Ny(e){return function(n){return e==null?o:Qn(e,n)}}var $y=Dc(),Fy=Dc(!0);function wa(){return[]}function Sa(){return!1}function Dy(){return{}}function zy(){return""}function Uy(){return!0}function Wy(e,n){if(e=ye(e),e<1||e>H)return[];var r=q,a=rt(e,q);n=fe(n),e-=q;for(var c=El(a,n);++r<e;)n(r);return c}function Hy(e){return be(e)?Ie(e,Yt):xt(e)?[e]:ft(rf(Te(e)))}function Ky(e){var n=++rp;return Te(e)+n}var Gy=fo(function(e,n){return e+n},0),jy=Xl("ceil"),Qy=fo(function(e,n){return e/n},1),Yy=Xl("floor");function Zy(e){return e&&e.length?io(e,mt,Pl):o}function Xy(e,n){return e&&e.length?io(e,fe(n,2),Pl):o}function Jy(e){return Us(e,mt)}function ew(e,n){return Us(e,fe(n,2))}function tw(e){return e&&e.length?io(e,mt,Dl):o}function nw(e,n){return e&&e.length?io(e,fe(n,2),Dl):o}var rw=fo(function(e,n){return e*n},1),iw=Xl("round"),ow=fo(function(e,n){return e-n},0);function lw(e){return e&&e.length?kl(e,mt):0}function aw(e,n){return e&&e.length?kl(e,fe(n,2)):0}return d.after=B_,d.ary=gf,d.assign=pb,d.assignIn=Bf,d.assignInWith=ko,d.assignWith=vb,d.at=_b,d.before=pf,d.bind=ca,d.bindAll=xy,d.bindKey=vf,d.castArray=D_,d.chain=df,d.chunk=Yv,d.compact=Zv,d.concat=Xv,d.cond=Cy,d.conforms=ky,d.constant=va,d.countBy=l_,d.create=bb,d.curry=_f,d.curryRight=bf,d.debounce=yf,d.defaults=yb,d.defaultsDeep=wb,d.defer=R_,d.delay=O_,d.difference=Jv,d.differenceBy=e0,d.differenceWith=t0,d.drop=n0,d.dropRight=r0,d.dropRightWhile=i0,d.dropWhile=o0,d.fill=l0,d.filter=u_,d.flatMap=f_,d.flatMapDeep=d_,d.flatMapDepth=h_,d.flatten=uf,d.flattenDeep=a0,d.flattenDepth=u0,d.flip=q_,d.flow=Ay,d.flowRight=Ty,d.fromPairs=s0,d.functions=Tb,d.functionsIn=Bb,d.groupBy=m_,d.initial=f0,d.intersection=d0,d.intersectionBy=h0,d.intersectionWith=m0,d.invert=Ob,d.invertBy=qb,d.invokeMap=p_,d.iteratee=_a,d.keyBy=v_,d.keys=Ze,d.keysIn=ht,d.map=bo,d.mapKeys=Vb,d.mapValues=Lb,d.matches=By,d.matchesProperty=Ry,d.memoize=wo,d.merge=Ib,d.mergeWith=Rf,d.method=Oy,d.methodOf=qy,d.mixin=ba,d.negate=So,d.nthArg=Vy,d.omit=Pb,d.omitBy=Nb,d.once=M_,d.orderBy=__,d.over=Ly,d.overArgs=V_,d.overEvery=Iy,d.overSome=Py,d.partial=fa,d.partialRight=wf,d.partition=b_,d.pick=$b,d.pickBy=Of,d.property=Nf,d.propertyOf=Ny,d.pull=_0,d.pullAll=cf,d.pullAllBy=b0,d.pullAllWith=y0,d.pullAt=w0,d.range=$y,d.rangeRight=Fy,d.rearg=L_,d.reject=S_,d.remove=S0,d.rest=I_,d.reverse=ua,d.sampleSize=C_,d.set=Db,d.setWith=zb,d.shuffle=k_,d.slice=x0,d.sortBy=T_,d.sortedUniq=R0,d.sortedUniqBy=O0,d.split=fy,d.spread=P_,d.tail=q0,d.take=M0,d.takeRight=V0,d.takeRightWhile=L0,d.takeWhile=I0,d.tap=Z0,d.throttle=N_,d.thru=_o,d.toArray=Ef,d.toPairs=qf,d.toPairsIn=Mf,d.toPath=Hy,d.toPlainObject=Tf,d.transform=Ub,d.unary=$_,d.union=P0,d.unionBy=N0,d.unionWith=$0,d.uniq=F0,d.uniqBy=D0,d.uniqWith=z0,d.unset=Wb,d.unzip=sa,d.unzipWith=ff,d.update=Hb,d.updateWith=Kb,d.values=Br,d.valuesIn=Gb,d.without=U0,d.words=If,d.wrap=F_,d.xor=W0,d.xorBy=H0,d.xorWith=K0,d.zip=G0,d.zipObject=j0,d.zipObjectDeep=Q0,d.zipWith=Y0,d.entries=qf,d.entriesIn=Mf,d.extend=Bf,d.extendWith=ko,ba(d,d),d.add=Gy,d.attempt=Pf,d.camelCase=Zb,d.capitalize=Vf,d.ceil=jy,d.clamp=jb,d.clone=z_,d.cloneDeep=W_,d.cloneDeepWith=H_,d.cloneWith=U_,d.conformsTo=K_,d.deburr=Lf,d.defaultTo=Ey,d.divide=Qy,d.endsWith=Xb,d.eq=Wt,d.escape=Jb,d.escapeRegExp=ey,d.every=a_,d.find=s_,d.findIndex=lf,d.findKey=Sb,d.findLast=c_,d.findLastIndex=af,d.findLastKey=xb,d.floor=Yy,d.forEach=hf,d.forEachRight=mf,d.forIn=Cb,d.forInRight=kb,d.forOwn=Eb,d.forOwnRight=Ab,d.get=ma,d.gt=G_,d.gte=j_,d.has=Rb,d.hasIn=ga,d.head=sf,d.identity=mt,d.includes=g_,d.indexOf=c0,d.inRange=Qb,d.invoke=Mb,d.isArguments=Xn,d.isArray=be,d.isArrayBuffer=Q_,d.isArrayLike=dt,d.isArrayLikeObject=ze,d.isBoolean=Y_,d.isBuffer=Rn,d.isDate=Z_,d.isElement=X_,d.isEmpty=J_,d.isEqual=eb,d.isEqualWith=tb,d.isError=da,d.isFinite=nb,d.isFunction=fn,d.isInteger=Sf,d.isLength=xo,d.isMap=xf,d.isMatch=rb,d.isMatchWith=ib,d.isNaN=ob,d.isNative=lb,d.isNil=ub,d.isNull=ab,d.isNumber=Cf,d.isObject=$e,d.isObjectLike=De,d.isPlainObject=oi,d.isRegExp=ha,d.isSafeInteger=sb,d.isSet=kf,d.isString=Co,d.isSymbol=xt,d.isTypedArray=Tr,d.isUndefined=cb,d.isWeakMap=fb,d.isWeakSet=db,d.join=g0,d.kebabCase=ty,d.last=Vt,d.lastIndexOf=p0,d.lowerCase=ny,d.lowerFirst=ry,d.lt=hb,d.lte=mb,d.max=Zy,d.maxBy=Xy,d.mean=Jy,d.meanBy=ew,d.min=tw,d.minBy=nw,d.stubArray=wa,d.stubFalse=Sa,d.stubObject=Dy,d.stubString=zy,d.stubTrue=Uy,d.multiply=rw,d.nth=v0,d.noConflict=My,d.noop=ya,d.now=yo,d.pad=iy,d.padEnd=oy,d.padStart=ly,d.parseInt=ay,d.random=Yb,d.reduce=y_,d.reduceRight=w_,d.repeat=uy,d.replace=sy,d.result=Fb,d.round=iw,d.runInContext=x,d.sample=x_,d.size=E_,d.snakeCase=cy,d.some=A_,d.sortedIndex=C0,d.sortedIndexBy=k0,d.sortedIndexOf=E0,d.sortedLastIndex=A0,d.sortedLastIndexBy=T0,d.sortedLastIndexOf=B0,d.startCase=dy,d.startsWith=hy,d.subtract=ow,d.sum=lw,d.sumBy=aw,d.template=my,d.times=Wy,d.toFinite=dn,d.toInteger=ye,d.toLength=Af,d.toLower=gy,d.toNumber=Lt,d.toSafeInteger=gb,d.toString=Te,d.toUpper=py,d.trim=vy,d.trimEnd=_y,d.trimStart=by,d.truncate=yy,d.unescape=wy,d.uniqueId=Ky,d.upperCase=Sy,d.upperFirst=pa,d.each=hf,d.eachRight=mf,d.first=sf,ba(d,function(){var e={};return jt(d,function(n,r){Re.call(d.prototype,r)||(e[r]=n)}),e}(),{chain:!1}),d.VERSION=u,Bt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){d[e].placeholder=d}),Bt(["drop","take"],function(e,n){Ce.prototype[e]=function(r){r=r===o?1:Qe(ye(r),0);var a=this.__filtered__&&!n?new Ce(this):this.clone();return a.__filtered__?a.__takeCount__=rt(r,a.__takeCount__):a.__views__.push({size:rt(r,q),type:e+(a.__dir__<0?"Right":"")}),a},Ce.prototype[e+"Right"]=function(r){return this.reverse()[e](r).reverse()}}),Bt(["filter","map","takeWhile"],function(e,n){var r=n+1,a=r==F||r==se;Ce.prototype[e]=function(c){var h=this.clone();return h.__iteratees__.push({iteratee:fe(c,3),type:r}),h.__filtered__=h.__filtered__||a,h}}),Bt(["head","last"],function(e,n){var r="take"+(n?"Right":"");Ce.prototype[e]=function(){return this[r](1).value()[0]}}),Bt(["initial","tail"],function(e,n){var r="drop"+(n?"":"Right");Ce.prototype[e]=function(){return this.__filtered__?new Ce(this):this[r](1)}}),Ce.prototype.compact=function(){return this.filter(mt)},Ce.prototype.find=function(e){return this.filter(e).head()},Ce.prototype.findLast=function(e){return this.reverse().find(e)},Ce.prototype.invokeMap=Se(function(e,n){return typeof e=="function"?new Ce(this):this.map(function(r){return Jr(r,e,n)})}),Ce.prototype.reject=function(e){return this.filter(So(fe(e)))},Ce.prototype.slice=function(e,n){e=ye(e);var r=this;return r.__filtered__&&(e>0||n<0)?new Ce(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),n!==o&&(n=ye(n),r=n<0?r.dropRight(-n):r.take(n-e)),r)},Ce.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Ce.prototype.toArray=function(){return this.take(q)},jt(Ce.prototype,function(e,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),a=/^(?:head|last)$/.test(n),c=d[a?"take"+(n=="last"?"Right":""):n],h=a||/^find/.test(n);c&&(d.prototype[n]=function(){var p=this.__wrapped__,b=a?[1]:arguments,E=p instanceof Ce,N=b[0],$=E||be(p),z=function(xe){var ke=c.apply(d,xn([xe],b));return a&&ee?ke[0]:ke};$&&r&&typeof N=="function"&&N.length!=1&&(E=$=!1);var ee=this.__chain__,ue=!!this.__actions__.length,de=h&&!ee,we=E&&!ue;if(!h&&$){p=we?p:new Ce(this);var he=e.apply(p,b);return he.__actions__.push({func:_o,args:[z],thisArg:o}),new Ot(he,ee)}return de&&we?e.apply(this,b):(he=this.thru(z),de?a?he.value()[0]:he.value():he)})}),Bt(["pop","push","shift","sort","splice","unshift"],function(e){var n=Ui[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",a=/^(?:pop|shift)$/.test(e);d.prototype[e]=function(){var c=arguments;if(a&&!this.__chain__){var h=this.value();return n.apply(be(h)?h:[],c)}return this[r](function(p){return n.apply(be(p)?p:[],c)})}}),jt(Ce.prototype,function(e,n){var r=d[n];if(r){var a=r.name+"";Re.call(xr,a)||(xr[a]=[]),xr[a].push({name:n,func:r})}}),xr[co(o,G).name]=[{name:"wrapper",func:o}],Ce.prototype.clone=wp,Ce.prototype.reverse=Sp,Ce.prototype.value=xp,d.prototype.at=X0,d.prototype.chain=J0,d.prototype.commit=e_,d.prototype.next=t_,d.prototype.plant=r_,d.prototype.reverse=i_,d.prototype.toJSON=d.prototype.valueOf=d.prototype.value=o_,d.prototype.first=d.prototype.head,Kr&&(d.prototype[Kr]=n_),d},yr=ep();Wn?((Wn.exports=yr)._=yr,_l._=yr):et._=yr}).call(Xe)}(ui,ui.exports);var Pe=ui.exports,Xt={},Ra={},Oa={},si={};Object.defineProperty(si,"__esModule",{value:!0}),si.OPERATORS=void 0,si.OPERATORS=["==","!=",">","<",">=","<=","contains","not_contains","in","not_in"];var tr={};Object.defineProperty(tr,"__esModule",{value:!0}),tr.ControlType=tr.GAMA_PROP_CONTROL_TYPES=void 0,tr.GAMA_PROP_CONTROL_TYPES=[{code:"input_text",icon:"title",label:"Texto"},{code:"input_number",icon:"o_looks_one",label:"Número"},{code:"datetime",icon:"event",label:"Fecha y hora"},{code:"date",icon:"calendar_today",label:"Fecha"},{code:"time",icon:"schedule",label:"Hora"},{code:"switch",icon:"toggle_on",label:"Switch"},{code:"checkbox",icon:"o_check_box",label:"Checkbox"},{code:"select",icon:"list",label:"Selector simple"},{code:"cards_select",icon:"grid_view",label:"Selector de tarjetas"},{code:"location",icon:"location_on",label:"Ubicación"},{code:"dynamic_array",icon:"data_array",label:"Colección dinámica"},{code:"object",icon:"data_object",label:"Objeto"}];var qa;(function(t){t.TEXT="input_text",t.NUMBER="input_number",t.DATETIME="datetime",t.DATE="date",t.TIME="time",t.SWITCH="switch",t.CHECKBOX="checkbox",t.SELECT="select",t.CARDS_SELECT="cards_select",t.LOCATION="location",t.DYNAMIC_ARRAY="dynamic_array",t.OBJECT="object"})(qa||(tr.ControlType=qa={}));var Ma={};Object.defineProperty(Ma,"__esModule",{value:!0});var Va={};Object.defineProperty(Va,"__esModule",{value:!0});var La={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.VALIDATORS=t.PropValidatorKeys=t.GamaPropValidatorsMap=void 0,t.GamaPropValidatorsMap={required:{fn:()=>o=>o.value!==null&&o.value!==void 0&&o.value!=="",message:"Este campo es requerido",label:"Requerido"},min:{fn:o=>u=>{if(typeof u.value=="number")return(u.value||0)>=o;if(typeof u.value=="string"){const s=u.value||"";return u.multiple?s.split(",").length>=o:s.length>=o}return!1},message:"El valor es menor al mínimo permitido",label:"Mínimo"},max:{fn:o=>u=>{if(typeof u.value=="number")return(u.value||0)<=o;if(typeof u.value=="string"){const s=u.value||"";return u.multiple?s.split(",").length<=o:(s||"").length<=o}return!1},message:"El valor es mayor al máximo permitido",label:"Máximo"},onlyNumbers:{fn:()=>o=>/^[0-9]*$/.test(String(o.value)||""),message:"Este campo solo acepta números",label:"Solo números"},email:{fn:()=>o=>o.value?/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(String(o.value)||""):!0,message:"El correo electrónico no es válido",label:"Correo electrónico"},url:{fn:()=>o=>o.value?/^(ftp|http|https):\/\/[^ "]+$/.test(String(o.value)||"")||/^www\.[^ "]+$/.test(String(o.value)||""):!0,message:"La URL no es válida",label:"URL"}};var l;(function(o){o.REQUERIDO="required",o.MINIMO="min",o.MAXIMO="max",o.SOLO_NUMEROS="onlyNumbers",o.EMAIL="email",o.URL="url"})(l||(t.PropValidatorKeys=l={})),t.VALIDATORS=Object.entries(t.GamaPropValidatorsMap).map(([o,u])=>({value:o,...u}))})(La);var Ia={};Object.defineProperty(Ia,"__esModule",{value:!0}),function(t){var l=Xe&&Xe.__createBinding||(Object.create?function(u,s,f,m){m===void 0&&(m=f);var g=Object.getOwnPropertyDescriptor(s,f);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[f]}}),Object.defineProperty(u,m,g)}:function(u,s,f,m){m===void 0&&(m=f),u[m]=s[f]}),o=Xe&&Xe.__exportStar||function(u,s){for(var f in u)f!=="default"&&!Object.prototype.hasOwnProperty.call(s,f)&&l(s,u,f)};Object.defineProperty(t,"__esModule",{value:!0}),o(si,t),o(tr,t),o(Ma,t),o(Va,t),o(La,t),o(Ia,t)}(Oa),function(t){var l=Xe&&Xe.__createBinding||(Object.create?function(u,s,f,m){m===void 0&&(m=f);var g=Object.getOwnPropertyDescriptor(s,f);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[f]}}),Object.defineProperty(u,m,g)}:function(u,s,f,m){m===void 0&&(m=f),u[m]=s[f]}),o=Xe&&Xe.__exportStar||function(u,s){for(var f in u)f!=="default"&&!Object.prototype.hasOwnProperty.call(s,f)&&l(s,u,f)};Object.defineProperty(t,"__esModule",{value:!0}),o(Oa,t)}(Ra),function(t){var l=Xe&&Xe.__createBinding||(Object.create?function(u,s,f,m){m===void 0&&(m=f);var g=Object.getOwnPropertyDescriptor(s,f);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[f]}}),Object.defineProperty(u,m,g)}:function(u,s,f,m){m===void 0&&(m=f),u[m]=s[f]}),o=Xe&&Xe.__exportStar||function(u,s){for(var f in u)f!=="default"&&!Object.prototype.hasOwnProperty.call(s,f)&&l(s,u,f)};Object.defineProperty(t,"__esModule",{value:!0}),o(Ra,t)}(Xt);const nr=Hf("form",{state:()=>({formSteps:[],currentStep:1,onLastSubstep:!1,collections:{}}),actions:{setFormSteps(t){this.formSteps=Kf(t)},nextStep(){this.currentStep!==this.formSteps.length&&this.currentStep++},previousStep(){this.currentStep!==1&&this.currentStep--},setControlValue(t,l){const{id:o,value:u,code:s}=l,f=this.formSteps[t].controls.find(m=>m.id===o);f&&(Ro.includes(f.controlType)?Pe.set(f.value,s,u):f.value=u)},setControlVisibility(t,l,o){const u=this.formSteps[t].controls.find(s=>s.id===l);u&&(u.visible=o)},setControlItemsLength(t,l,o){const u=this.formSteps[t].controls.find(s=>s.id===l);!u||u.controlType!=="dynamic_array"||(u.itemsLength.value=o)},setOnLastSubstep(t){this.onLastSubstep=t},resetSteps(){this.currentStep=1},setCollection(t,l){this.collections[t]=l}},getters:{currentFormStep(t){return t.formSteps[t.currentStep-1]||null},stepsCount(t){return t.formSteps.length},nextDisabled(){return this.currentFormStep.controls.filter(t=>t.visible).some(t=>!t.valid)},getCollection(t){return l=>t.collections[l]||null}}});function Kf(t){return t.map(l=>({...l,valid:!1,controls:Pa(l.controls)}))}function Pa(t){return t.map(l=>{var o,u,s;return{...l,valid:!((o=l.validators)!=null&&o.length),visible:!((u=l.conditions)!=null&&u.length),value:Gf(l),itemsLength:l.controlType==="dynamic_array"?{...l.itemsLength,value:((s=l.itemsLength)==null?void 0:s.default)||1}:null}})}function Gf(t){if(!Pe.isNil(t.defaultValue))return t.defaultValue;switch(t.controlType){case"input_text":return"";case"input_number":return null;case"select":return t.multiple?[]:"";case"cards_select":return t.multiple?[]:"";case"checkbox":return null;case"switch":return null;case"location":return{};case"dynamic_array":return[];case"object":return{};default:return""}}const Ro=[Xt.ControlType.DYNAMIC_ARRAY,Xt.ControlType.OBJECT];class Na{toRaw(l){return l.flatMap(s=>s.controls).filter(s=>s.visible).map(s=>({ID_CUESTIONARIO_PREGUNTA:s.id,RESPUESTA:this.formatValue(s)}))}fromRaw(l){return Pe.orderBy(l,"ORDEN").filter(u=>u.PREGUNTAS.length&&u.ESTADO===1).map(u=>{const s=u.NOMBRE,f=u.ORDEN,m=u.DESCRIPCION,g=u.CLAVE,C=u.ID_CUESTIONARIO,A=u.PREGUNTAS.filter(v=>v.ESTADO===1).map(v=>this.parseControl(v));return{title:s,order:f,text:m,controls:A,name:g,id:C}})}parseControl(l){return{controlType:l.TIPO,label:l.NOMBRE,name:l.CLAVE,options:l.RESPUESTAS,multiple:l.MULTIPLE||!1,validators:l.VALIDACIONES,conditions:l.CONDITIONS,itemsLength:l.LENGTH,id:l.ID_CUESTIONARIO_PREGUNTA,row:l.FILA,col:l.COLUMNA,prefix:l.PREFIJO,suffix:l.SUFIJO,structure:l.STRUCTURE,group:l.GRUPO,title:l.TITULO_GRUPO,customParams:l.PARAMS}}formatValue(l){const{controlType:o,value:u,structure:s}=l,f=(m,g)=>g.controlType==="input_number"&&m!==null&&m!==void 0&&m!==""&&typeof m=="string";return f(u,l)?parseFloat(u.replaceAll(".","")):(o==="object"&&s.forEach(m=>{const g=u[m.code];f(g,m)&&(u[m.code]=parseFloat(g==null?void 0:g.replaceAll(".","")))}),u)}}function ci(t,l,o,u){return Object.defineProperty(t,l,{get:o,set:u,enumerable:!0}),t}const mn=i.ref(!1);let Oo;function jf(t,l){const o=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(t)||/(opr)[\/]([\w.]+)/.exec(t)||/(vivaldi)[\/]([\w.]+)/.exec(t)||/(chrome|crios)[\/]([\w.]+)/.exec(t)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(t)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(t)||/(firefox|fxios)[\/]([\w.]+)/.exec(t)||/(webkit)[\/]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(t)||[];return{browser:o[5]||o[3]||o[1]||"",version:o[4]||o[2]||"0",platform:l[0]||""}}function Qf(t){return/(ipad)/.exec(t)||/(ipod)/.exec(t)||/(windows phone)/.exec(t)||/(iphone)/.exec(t)||/(kindle)/.exec(t)||/(silk)/.exec(t)||/(android)/.exec(t)||/(win)/.exec(t)||/(mac)/.exec(t)||/(linux)/.exec(t)||/(cros)/.exec(t)||/(playbook)/.exec(t)||/(bb)/.exec(t)||/(blackberry)/.exec(t)||[]}const $a="ontouchstart"in window||window.navigator.maxTouchPoints>0;function Yf(t){const l=t.toLowerCase(),o=Qf(l),u=jf(l,o),s={};u.browser&&(s[u.browser]=!0,s.version=u.version,s.versionNumber=parseInt(u.version,10)),u.platform&&(s[u.platform]=!0);const f=s.android||s.ios||s.bb||s.blackberry||s.ipad||s.iphone||s.ipod||s.kindle||s.playbook||s.silk||s["windows phone"];if(f===!0||l.indexOf("mobile")!==-1?s.mobile=!0:s.desktop=!0,s["windows phone"]&&(s.winphone=!0,delete s["windows phone"]),s.edga||s.edgios||s.edg?(s.edge=!0,u.browser="edge"):s.crios?(s.chrome=!0,u.browser="chrome"):s.fxios&&(s.firefox=!0,u.browser="firefox"),(s.ipod||s.ipad||s.iphone)&&(s.ios=!0),s.vivaldi&&(u.browser="vivaldi",s.vivaldi=!0),(s.chrome||s.opr||s.safari||s.vivaldi||s.mobile===!0&&s.ios!==!0&&f!==!0)&&(s.webkit=!0),s.opr&&(u.browser="opera",s.opera=!0),s.safari&&(s.blackberry||s.bb?(u.browser="blackberry",s.blackberry=!0):s.playbook?(u.browser="playbook",s.playbook=!0):s.android?(u.browser="android",s.android=!0):s.kindle?(u.browser="kindle",s.kindle=!0):s.silk&&(u.browser="silk",s.silk=!0)),s.name=u.browser,s.platform=u.platform,l.indexOf("electron")!==-1)s.electron=!0;else if(document.location.href.indexOf("-extension://")!==-1)s.bex=!0;else{if(window.Capacitor!==void 0?(s.capacitor=!0,s.nativeMobile=!0,s.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(s.cordova=!0,s.nativeMobile=!0,s.nativeMobileWrapper="cordova"),mn.value===!0&&(Oo={is:{...s}}),$a===!0&&s.mac===!0&&(s.desktop===!0&&s.safari===!0||s.nativeMobile===!0&&s.android!==!0&&s.ios!==!0&&s.ipad!==!0)){delete s.mac,delete s.desktop;const m=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(s,{mobile:!0,ios:!0,platform:m,[m]:!0})}s.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete s.desktop,s.mobile=!0)}return s}const Fa=navigator.userAgent||navigator.vendor||window.opera,Zf={has:{touch:!1,webStorage:!1},within:{iframe:!1}},gt={userAgent:Fa,is:Yf(Fa),has:{touch:$a},within:{iframe:window.self!==window.top}},qo={install(t){const{$q:l}=t;mn.value===!0?(t.onSSRHydrated.push(()=>{Object.assign(l.platform,gt),mn.value=!1}),l.platform=i.reactive(this)):l.platform=this}};{let t;ci(gt.has,"webStorage",()=>{if(t!==void 0)return t;try{if(window.localStorage)return t=!0,!0}catch{}return t=!1,!1}),Object.assign(qo,gt),mn.value===!0&&(Object.assign(qo,Oo,Zf),Oo=null)}function Ye(t){return i.markRaw(i.defineComponent(t))}function Da(t){return i.markRaw(t)}function Jt(t,l){if(t===l)return!0;if(t!==null&&l!==null&&typeof t=="object"&&typeof l=="object"){if(t.constructor!==l.constructor)return!1;let o,u;if(t.constructor===Array){if(o=t.length,o!==l.length)return!1;for(u=o;u--!==0;)if(Jt(t[u],l[u])!==!0)return!1;return!0}if(t.constructor===Map){if(t.size!==l.size)return!1;let f=t.entries();for(u=f.next();u.done!==!0;){if(l.has(u.value[0])!==!0)return!1;u=f.next()}for(f=t.entries(),u=f.next();u.done!==!0;){if(Jt(u.value[1],l.get(u.value[0]))!==!0)return!1;u=f.next()}return!0}if(t.constructor===Set){if(t.size!==l.size)return!1;const f=t.entries();for(u=f.next();u.done!==!0;){if(l.has(u.value[0])!==!0)return!1;u=f.next()}return!0}if(t.buffer!=null&&t.buffer.constructor===ArrayBuffer){if(o=t.length,o!==l.length)return!1;for(u=o;u--!==0;)if(t[u]!==l[u])return!1;return!0}if(t.constructor===RegExp)return t.source===l.source&&t.flags===l.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===l.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===l.toString();const s=Object.keys(t).filter(f=>t[f]!==void 0);if(o=s.length,o!==Object.keys(l).filter(f=>l[f]!==void 0).length)return!1;for(u=o;u--!==0;){const f=s[u];if(Jt(t[f],l[f])!==!0)return!1}return!0}return t!==t&&l!==l}const za={threshold:0,root:null,rootMargin:"0px"};function Ua(t,l,o){let u,s,f;typeof o=="function"?(u=o,s=za,f=l.cfg===void 0):(u=o.handler,s=Object.assign({},za,o.cfg),f=l.cfg===void 0||Jt(l.cfg,s)===!1),l.handler!==u&&(l.handler=u),f===!0&&(l.cfg=s,l.observer!==void 0&&l.observer.unobserve(t),l.observer=new IntersectionObserver(([m])=>{if(typeof l.handler=="function"){if(m.rootBounds===null&&document.body.contains(t)===!0){l.observer.unobserve(t),l.observer.observe(t);return}(l.handler(m,l.observer)===!1||l.once===!0&&m.isIntersecting===!0)&&Wa(t)}},s),l.observer.observe(t))}function Wa(t){const l=t.__qvisible;l!==void 0&&(l.observer!==void 0&&l.observer.unobserve(t),delete t.__qvisible)}const Xf=Da({name:"intersection",mounted(t,{modifiers:l,value:o}){const u={once:l.once===!0};Ua(t,u,o),t.__qvisible=u},updated(t,l){const o=t.__qvisible;o!==void 0&&Ua(t,o,l.value)},beforeUnmount:Wa});function pt(t,l){return t!==void 0&&t()||l}function Jf(t,l){if(t!==void 0){const o=t();if(o!=null)return o.slice()}return l}function qn(t,l){return t!==void 0?l.concat(t()):l}function ed(t,l){return t===void 0?l:l!==void 0?l.concat(t()):t()}function Ha(t,l,o,u,s,f){l.key=u+s;const m=i.h(t,l,o);return s===!0?i.withDirectives(m,f()):m}const td=Ye({name:"QIntersection",props:{tag:{type:String,default:"div"},once:Boolean,transition:String,transitionDuration:{type:[String,Number],default:300},ssrPrerender:Boolean,margin:String,threshold:[Number,Array],root:{default:null},disable:Boolean,onVisibility:Function},setup(t,{slots:l,emit:o}){const u=i.ref(mn.value===!0?t.ssrPrerender:!1),s=i.computed(()=>t.root!==void 0||t.margin!==void 0||t.threshold!==void 0?{handler:C,cfg:{root:t.root,rootMargin:t.margin,threshold:t.threshold}}:C),f=i.computed(()=>t.disable!==!0&&(mn.value!==!0||t.once!==!0||t.ssrPrerender!==!0)),m=i.computed(()=>[[Xf,s.value,void 0,{once:t.once}]]),g=i.computed(()=>`--q-transition-duration: ${t.transitionDuration}ms`);function C(v){u.value!==v.isIntersecting&&(u.value=v.isIntersecting,t.onVisibility!==void 0&&o("visibility",u.value))}function A(){if(u.value===!0)return[i.h("div",{key:"content",style:g.value},pt(l.default))];if(l.hidden!==void 0)return[i.h("div",{key:"hidden",style:g.value},l.hidden())]}return()=>{const v=t.transition?[i.h(i.Transition,{name:"q-transition--"+t.transition},A)]:A();return Ha(t.tag,{class:"q-intersection"},v,"main",f.value,()=>m.value)}}}),Mo={xs:18,sm:24,md:32,lg:38,xl:46},fi={size:String};function di(t,l=Mo){return i.computed(()=>t.size!==void 0?{fontSize:t.size in l?`${l[t.size]}px`:t.size}:null)}const nd={size:{type:[String,Number],default:"1em"},color:String};function rd(t){return{cSize:i.computed(()=>t.size in Mo?`${Mo[t.size]}px`:t.size),classes:i.computed(()=>"q-spinner"+(t.color?` text-${t.color}`:""))}}const Vo=Ye({name:"QSpinner",props:{...nd,thickness:{type:Number,default:5}},setup(t){const{cSize:l,classes:o}=rd(t);return()=>i.h("svg",{class:o.value+" q-spinner-mat",width:l.value,height:l.value,viewBox:"25 25 50 50"},[i.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":t.thickness,"stroke-miterlimit":"10"})])}}),id={ratio:[String,Number]};function od(t,l){return i.computed(()=>{const o=Number(t.ratio||(l!==void 0?l.value:void 0));return isNaN(o)!==!0&&o>0?{paddingBottom:`${100/o}%`}:null})}function Lo(t){if(Object(t.$parent)===t.$parent)return t.$parent;let{parent:l}=t.$;for(;Object(l)===l;){if(Object(l.proxy)===l.proxy)return l.proxy;l=l.parent}}function Ka(t){return t.appContext.config.globalProperties.$router!==void 0}function qr(t){return t.isUnmounted===!0||t.isDeactivated===!0}function hi(){let t=null;const l=i.getCurrentInstance();function o(){t!==null&&(clearTimeout(t),t=null)}return i.onDeactivated(o),i.onBeforeUnmount(o),{removeTimeout:o,registerTimeout(u,s){o(),qr(l)===!1&&(t=setTimeout(()=>{t=null,u()},s))}}}const ld=Ye({name:"QImg",props:{...id,src:String,srcset:String,sizes:String,alt:String,crossorigin:String,decoding:String,referrerpolicy:String,draggable:Boolean,loading:{type:String,default:"lazy"},loadingShowDelay:{type:[Number,String],default:0},fetchpriority:{type:String,default:"auto"},width:String,height:String,initialRatio:{type:[Number,String],default:1.7778},placeholderSrc:String,errorSrc:String,fit:{type:String,default:"cover"},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:l,emit:o}){const u=i.ref(t.initialRatio),s=od(t,u),f=i.getCurrentInstance(),{registerTimeout:m,removeTimeout:g}=hi(),{registerTimeout:C,removeTimeout:A}=hi(),v=i.computed(()=>t.placeholderSrc!==void 0?{src:t.placeholderSrc}:null),k=i.computed(()=>t.errorSrc!==void 0?{src:t.errorSrc,__qerror:!0}:null),y=[i.ref(null),i.ref(v.value)],w=i.ref(0),R=i.ref(!1),W=i.ref(!1),O=i.computed(()=>`q-img q-img--${t.noNativeMenu===!0?"no-":""}menu`),G=i.computed(()=>({width:t.width,height:t.height})),U=i.computed(()=>`q-img__image ${t.imgClass!==void 0?t.imgClass+" ":""}q-img__image--with${t.noTransition===!0?"out":""}-transition q-img__image--`),D=i.computed(()=>({...t.imgStyle,objectFit:t.fit,objectPosition:t.position}));function Q(){if(A(),t.loadingShowDelay===0){R.value=!0;return}C(()=>{R.value=!0},t.loadingShowDelay)}function j(){A(),R.value=!1}function Y({target:S}){qr(f)===!1&&(g(),u.value=S.naturalHeight===0?.5:S.naturalWidth/S.naturalHeight,I(S,1))}function I(S,Z){Z===1e3||qr(f)===!0||(S.complete===!0?le(S):m(()=>{I(S,Z+1)},50))}function le(S){qr(f)!==!0&&(w.value=w.value^1,y[w.value].value=null,j(),S.getAttribute("__qerror")!=="true"&&(W.value=!1),o("load",S.currentSrc||S.src))}function P(S){g(),j(),W.value=!0,y[w.value].value=k.value,y[w.value^1].value=v.value,o("error",S)}function T(S){const Z=y[S].value,F={key:"img_"+S,class:U.value,style:D.value,alt:t.alt,crossorigin:t.crossorigin,decoding:t.decoding,referrerpolicy:t.referrerpolicy,height:t.height,width:t.width,loading:t.loading,fetchpriority:t.fetchpriority,"aria-hidden":"true",draggable:t.draggable,...Z};return w.value===S?Object.assign(F,{class:F.class+"current",onLoad:Y,onError:P}):F.class+="loaded",i.h("div",{class:"q-img__container absolute-full",key:"img"+S},i.h("img",F))}function V(){return R.value===!1?i.h("div",{key:"content",class:"q-img__content absolute-full q-anchor--skip"},pt(l[W.value===!0?"error":"default"])):i.h("div",{key:"loading",class:"q-img__loading absolute-full flex flex-center"},l.loading!==void 0?l.loading():t.noSpinner===!0?void 0:[i.h(Vo,{color:t.spinnerColor,size:t.spinnerSize})])}{let S=function(){i.watch(()=>t.src||t.srcset||t.sizes?{src:t.src,srcset:t.srcset,sizes:t.sizes}:null,Z=>{g(),W.value=!1,Z===null?(j(),y[w.value^1].value=v.value):Q(),y[w.value].value=Z},{immediate:!0})};mn.value===!0?i.onMounted(S):S()}return()=>{const S=[];return s.value!==null&&S.push(i.h("div",{key:"filler",style:s.value})),y[0].value!==null&&S.push(T(0)),y[1].value!==null&&S.push(T(1)),S.push(i.h(i.Transition,{name:"q-transition--fade"},V)),i.h("div",{key:"main",class:O.value,style:G.value,role:"img","aria-label":t.alt},S)}}}),Ga="0 0 24 24",ja=t=>t,Io=t=>`ionicons ${t}`,Qa={"mdi-":t=>`mdi ${t}`,"icon-":ja,"bt-":t=>`bt ${t}`,"eva-":t=>`eva ${t}`,"ion-md":Io,"ion-ios":Io,"ion-logo":Io,"iconfont ":ja,"ti-":t=>`themify-icon ${t}`,"bi-":t=>`bootstrap-icons ${t}`},Ya={o_:"-outlined",r_:"-round",s_:"-sharp"},Za={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},ad=new RegExp("^("+Object.keys(Qa).join("|")+")"),ud=new RegExp("^("+Object.keys(Ya).join("|")+")"),Xa=new RegExp("^("+Object.keys(Za).join("|")+")"),sd=/^[Mm]\s?[-+]?\.?\d/,cd=/^img:/,fd=/^svguse:/,dd=/^ion-/,hd=/^(fa-(sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,vt=Ye({name:"QIcon",props:{...fi,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(t,{slots:l}){const{proxy:{$q:o}}=i.getCurrentInstance(),u=di(t),s=i.computed(()=>"q-icon"+(t.left===!0?" on-left":"")+(t.right===!0?" on-right":"")+(t.color!==void 0?` text-${t.color}`:"")),f=i.computed(()=>{let m,g=t.name;if(g==="none"||!g)return{none:!0};if(o.iconMapFn!==null){const v=o.iconMapFn(g);if(v!==void 0)if(v.icon!==void 0){if(g=v.icon,g==="none"||!g)return{none:!0}}else return{cls:v.cls,content:v.content!==void 0?v.content:" "}}if(sd.test(g)===!0){const[v,k=Ga]=g.split("|");return{svg:!0,viewBox:k,nodes:v.split("&&").map(y=>{const[w,R,W]=y.split("@@");return i.h("path",{style:R,d:w,transform:W})})}}if(cd.test(g)===!0)return{img:!0,src:g.substring(4)};if(fd.test(g)===!0){const[v,k=Ga]=g.split("|");return{svguse:!0,src:v.substring(7),viewBox:k}}let C=" ";const A=g.match(ad);if(A!==null)m=Qa[A[1]](g);else if(hd.test(g)===!0)m=g;else if(dd.test(g)===!0)m=`ionicons ion-${o.platform.is.ios===!0?"ios":"md"}${g.substring(3)}`;else if(Xa.test(g)===!0){m="notranslate material-symbols";const v=g.match(Xa);v!==null&&(g=g.substring(6),m+=Za[v[1]]),C=g}else{m="notranslate material-icons";const v=g.match(ud);v!==null&&(g=g.substring(2),m+=Ya[v[1]]),C=g}return{cls:m,content:C}});return()=>{const m={class:s.value,style:u.value,"aria-hidden":"true",role:"presentation"};return f.value.none===!0?i.h(t.tag,m,pt(l.default)):f.value.img===!0?i.h(t.tag,m,qn(l.default,[i.h("img",{src:f.value.src})])):f.value.svg===!0?i.h(t.tag,m,qn(l.default,[i.h("svg",{viewBox:f.value.viewBox||"0 0 24 24"},f.value.nodes)])):f.value.svguse===!0?i.h(t.tag,m,qn(l.default,[i.h("svg",{viewBox:f.value.viewBox},[i.h("use",{"xlink:href":f.value.src})])])):(f.value.cls!==void 0&&(m.class+=" "+f.value.cls),i.h(t.tag,m,qn(l.default,[f.value.content])))}}}),md={class:"card-select-container"},gd=["onClick"],pd={class:"check"},vd={class:"row justify-center items-center",style:{height:"100%"}},_d=["onClick"],bd=i.defineComponent({__name:"CardsSelectControl",props:i.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=i.useModel(t,"modelValue"),o=t,{control:u}=i.toRefs(o);function s(g){if(u.value.multiple){let C=Pe.cloneDeep(l.value);g.exclusive?C=[g.value]:(C=C.filter(A=>{var v,k;return!((k=(v=u.value.options)==null?void 0:v.find(y=>y.value===A))!=null&&k.exclusive)}),C.includes(g.value)?C=C.filter(A=>A!==g.value):C.push(g.value)),l.value=C}else l.value=g.value}function f(g){return m(g)?"active":""}function m(g){let C;return u.value.multiple?C=(l.value||[]).includes(String(g.value)):C=l.value===g.value,C}return(g,C)=>{const A=i.resolveComponent("ControlLabel");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.unref(u).label?(i.openBlock(),i.createBlock(A,{key:0,label:i.unref(u).label},null,8,["label"])):i.createCommentVNode("",!0),i.createElementVNode("div",md,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(u).options,(v,k)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:k},[v.image?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(`image-card ${f(v)}`),onClick:()=>s(v)},[i.createVNode(ld,{src:v.image,height:"200px",width:"200px",fit:"fill",class:"image"},null,8,["src"]),i.createElementVNode("div",pd,[i.createElementVNode("div",vd,[m(v)?(i.openBlock(),i.createBlock(vt,{key:0,name:"check",size:"25px"})):i.createCommentVNode("",!0)])])],10,gd)):(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(`card-option ${f(v)}`),onClick:()=>s(v)},[i.createElementVNode("span",null,i.toDisplayString(v.label),1)],10,_d))],64))),128))])],64)}}}),gn=(t,l)=>{const o=t.__vccOpts||t;for(const[u,s]of l)o[u]=s;return o},yd=gn(bd,[["__scopeId","data-v-148468d6"]]),rr={dark:{type:Boolean,default:null}};function ir(t,l){return i.computed(()=>t.dark===null?l.dark.isActive:t.dark)}function wd(t,l){const o=i.ref(null),u=i.computed(()=>t.disable===!0?null:i.h("span",{ref:o,class:"no-outline",tabindex:-1}));function s(f){const m=l.value;f!==void 0&&f.type.indexOf("key")===0?m!==null&&document.activeElement!==m&&m.contains(document.activeElement)===!0&&m.focus():o.value!==null&&(f===void 0||m!==null&&m.contains(f.target)===!0)&&o.value.focus()}return{refocusTargetEl:u,refocusTarget:s}}const Po={name:String};function Sd(t={}){return(l,o,u)=>{l[o](i.h("input",{class:"hidden"+(u||""),...t.value}))}}function Ja(t){return i.computed(()=>t.name||t.for)}const xd={xs:30,sm:35,md:40,lg:50,xl:60},st={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const t=Object.defineProperty({},"passive",{get(){Object.assign(st,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,t),window.removeEventListener("qtest",null,t)}catch{}function Cd(){}function eu(t){return t.touches&&t.touches[0]?t=t.touches[0]:t.changedTouches&&t.changedTouches[0]?t=t.changedTouches[0]:t.targetTouches&&t.targetTouches[0]&&(t=t.targetTouches[0]),{top:t.clientY,left:t.clientX}}function kd(t){if(t.path)return t.path;if(t.composedPath)return t.composedPath();const l=[];let o=t.target;for(;o;){if(l.push(o),o.tagName==="HTML")return l.push(document),l.push(window),l;o=o.parentElement}}function Kt(t){t.stopPropagation()}function It(t){t.cancelable!==!1&&t.preventDefault()}function Ke(t){t.cancelable!==!1&&t.preventDefault(),t.stopPropagation()}function No(t,l,o){const u=`__q_${l}_evt`;t[u]=t[u]!==void 0?t[u].concat(o):o,o.forEach(s=>{s[0].addEventListener(s[1],t[s[2]],st[s[3]])})}function tu(t,l){const o=`__q_${l}_evt`;t[o]!==void 0&&(t[o].forEach(u=>{u[0].removeEventListener(u[1],t[u[2]],st[u[3]])}),t[o]=void 0)}const nu={...rr,...fi,...Po,modelValue:{required:!0,default:null},val:{},trueValue:{default:!0},falseValue:{default:!1},indeterminateValue:{default:null},checkedIcon:String,uncheckedIcon:String,indeterminateIcon:String,toggleOrder:{type:String,validator:t=>t==="tf"||t==="ft"},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},ru=["update:modelValue"];function iu(t,l){const{props:o,slots:u,emit:s,proxy:f}=i.getCurrentInstance(),{$q:m}=f,g=ir(o,m),C=i.ref(null),{refocusTargetEl:A,refocusTarget:v}=wd(o,C),k=di(o,xd),y=i.computed(()=>o.val!==void 0&&Array.isArray(o.modelValue)),w=i.computed(()=>{const S=i.toRaw(o.val);return y.value===!0?o.modelValue.findIndex(Z=>i.toRaw(Z)===S):-1}),R=i.computed(()=>y.value===!0?w.value!==-1:i.toRaw(o.modelValue)===i.toRaw(o.trueValue)),W=i.computed(()=>y.value===!0?w.value===-1:i.toRaw(o.modelValue)===i.toRaw(o.falseValue)),O=i.computed(()=>R.value===!1&&W.value===!1),G=i.computed(()=>o.disable===!0?-1:o.tabindex||0),U=i.computed(()=>`q-${t} cursor-pointer no-outline row inline no-wrap items-center`+(o.disable===!0?" disabled":"")+(g.value===!0?` q-${t}--dark`:"")+(o.dense===!0?` q-${t}--dense`:"")+(o.leftLabel===!0?" reverse":"")),D=i.computed(()=>{const S=R.value===!0?"truthy":W.value===!0?"falsy":"indet",Z=o.color!==void 0&&(o.keepColor===!0||(t==="toggle"?R.value===!0:W.value!==!0))?` text-${o.color}`:"";return`q-${t}__inner relative-position non-selectable q-${t}__inner--${S}${Z}`}),Q=i.computed(()=>{const S={type:"checkbox"};return o.name!==void 0&&Object.assign(S,{".checked":R.value,"^checked":R.value===!0?"checked":void 0,name:o.name,value:y.value===!0?o.val:o.trueValue}),S}),j=Sd(Q),Y=i.computed(()=>{const S={tabindex:G.value,role:t==="toggle"?"switch":"checkbox","aria-label":o.label,"aria-checked":O.value===!0?"mixed":R.value===!0?"true":"false"};return o.disable===!0&&(S["aria-disabled"]="true"),S});function I(S){S!==void 0&&(Ke(S),v(S)),o.disable!==!0&&s("update:modelValue",le(),S)}function le(){if(y.value===!0){if(R.value===!0){const S=o.modelValue.slice();return S.splice(w.value,1),S}return o.modelValue.concat([o.val])}if(R.value===!0){if(o.toggleOrder!=="ft"||o.toggleIndeterminate===!1)return o.falseValue}else if(W.value===!0){if(o.toggleOrder==="ft"||o.toggleIndeterminate===!1)return o.trueValue}else return o.toggleOrder!=="ft"?o.trueValue:o.falseValue;return o.indeterminateValue}function P(S){(S.keyCode===13||S.keyCode===32)&&Ke(S)}function T(S){(S.keyCode===13||S.keyCode===32)&&I(S)}const V=l(R,O);return Object.assign(f,{toggle:I}),()=>{const S=V();o.disable!==!0&&j(S,"unshift",` q-${t}__native absolute q-ma-none q-pa-none`);const Z=[i.h("div",{class:D.value,style:k.value,"aria-hidden":"true"},S)];A.value!==null&&Z.push(A.value);const F=o.label!==void 0?qn(u.default,[o.label]):pt(u.default);return F!==void 0&&Z.push(i.h("div",{class:`q-${t}__label q-anchor--skip`},F)),i.h("div",{ref:C,class:U.value,...Y.value,onClick:I,onKeydown:P,onKeyup:T},Z)}}const Ed=i.h("div",{key:"svg",class:"q-checkbox__bg absolute"},[i.h("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[i.h("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),i.h("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),ou=Ye({name:"QCheckbox",props:nu,emits:ru,setup(t){function l(o,u){const s=i.computed(()=>(o.value===!0?t.checkedIcon:u.value===!0?t.indeterminateIcon:t.uncheckedIcon)||null);return()=>s.value!==null?[i.h("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[i.h(vt,{class:"q-checkbox__icon",name:s.value})])]:[Ed]}return iu("checkbox",l)}}),lu=i.defineComponent({__name:"SimpleCheckbox",props:i.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=i.useModel(t,"modelValue");return(o,u)=>(i.openBlock(),i.createBlock(ou,{outlined:"",label:o.control.label,color:"green-10","model-value":!!l.value,"onUpdate:modelValue":u[0]||(u[0]=s=>l.value=!l.value),style:{height:"66.2px"}},null,8,["label","model-value"]))}}),Ad=Ye({name:"QToggle",props:{...nu,icon:String,iconColor:String},emits:ru,setup(t){function l(o,u){const s=i.computed(()=>(o.value===!0?t.checkedIcon:u.value===!0?t.indeterminateIcon:t.uncheckedIcon)||t.icon),f=i.computed(()=>o.value===!0?t.iconColor:null);return()=>[i.h("div",{class:"q-toggle__track"}),i.h("div",{class:"q-toggle__thumb absolute flex flex-center no-wrap"},s.value!==void 0?[i.h(vt,{name:s.value,color:f.value})]:void 0)]}return iu("toggle",l)}}),Td=i.defineComponent({__name:"SimpleSwitch",props:i.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=i.useModel(t,"modelValue");return(o,u)=>(i.openBlock(),i.createBlock(Ad,{falseValue:0,trueValue:1,outlined:"",label:o.control.label,modelValue:l.value,"onUpdate:modelValue":u[0]||(u[0]=s=>l.value=s),leftLabel:"",color:"green-10",style:{height:"66.2px"}},null,8,["label","modelValue"]))}});let $o,mi=0;const Je=new Array(256);for(let t=0;t<256;t++)Je[t]=(t+256).toString(16).substring(1);const Bd=(()=>{const t=typeof crypto<"u"?crypto:typeof window<"u"?window.crypto||window.msCrypto:void 0;if(t!==void 0){if(t.randomBytes!==void 0)return t.randomBytes;if(t.getRandomValues!==void 0)return l=>{const o=new Uint8Array(l);return t.getRandomValues(o),o}}return l=>{const o=[];for(let u=l;u>0;u--)o.push(Math.floor(Math.random()*256));return o}})(),au=4096;function Fo(){($o===void 0||mi+16>au)&&(mi=0,$o=Bd(au));const t=Array.prototype.slice.call($o,mi,mi+=16);return t[6]=t[6]&15|64,t[8]=t[8]&63|128,Je[t[0]]+Je[t[1]]+Je[t[2]]+Je[t[3]]+"-"+Je[t[4]]+Je[t[5]]+"-"+Je[t[6]]+Je[t[7]]+"-"+Je[t[8]]+Je[t[9]]+"-"+Je[t[10]]+Je[t[11]]+Je[t[12]]+Je[t[13]]+Je[t[14]]+Je[t[15]]}function Rd(t){return t??null}function uu(t,l){return t??(l===!0?`f_${Fo()}`:null)}function Od({getValue:t,required:l=!0}={}){if(mn.value===!0){const o=t!==void 0?i.ref(Rd(t())):i.ref(null);return l===!0&&o.value===null&&i.onMounted(()=>{o.value=`f_${Fo()}`}),t!==void 0&&i.watch(t,u=>{o.value=uu(u,l)}),o}return t!==void 0?i.computed(()=>uu(t(),l)):i.ref(`f_${Fo()}`)}const su=/^on[A-Z]/;function qd(){const{attrs:t,vnode:l}=i.getCurrentInstance(),o={listeners:i.ref({}),attributes:i.ref({})};function u(){const s={},f={};for(const m in t)m!=="class"&&m!=="style"&&su.test(m)===!1&&(s[m]=t[m]);for(const m in l.props)su.test(m)===!0&&(f[m]=l.props[m]);o.attributes.value=s,o.listeners.value=f}return i.onBeforeUpdate(u),u(),o}const Md="_q_",Vd="_q_fo_";function Ld({validate:t,resetValidation:l,requiresQForm:o}){const u=i.inject(Vd,!1);if(u!==!1){const{props:s,proxy:f}=i.getCurrentInstance();Object.assign(f,{validate:t,resetValidation:l}),i.watch(()=>s.disable,m=>{m===!0?(typeof l=="function"&&l(),u.unbindComponent(f)):u.bindComponent(f)}),i.onMounted(()=>{s.disable!==!0&&u.bindComponent(f)}),i.onBeforeUnmount(()=>{s.disable!==!0&&u.unbindComponent(f)})}else o===!0&&console.error("Parent QForm not found on useFormChild()!")}const cu=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,fu=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,du=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,gi=/^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])\)$/,pi=/^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)\)$/,Do={date:t=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(t),time:t=>/^([0-1]?\d|2[0-3]):[0-5]\d$/.test(t),fulltime:t=>/^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(t),timeOrFulltime:t=>/^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/.test(t),email:t=>/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t),hexColor:t=>cu.test(t),hexaColor:t=>fu.test(t),hexOrHexaColor:t=>du.test(t),rgbColor:t=>gi.test(t),rgbaColor:t=>pi.test(t),rgbOrRgbaColor:t=>gi.test(t)||pi.test(t),hexOrRgbColor:t=>cu.test(t)||gi.test(t),hexaOrRgbaColor:t=>fu.test(t)||pi.test(t),anyColor:t=>du.test(t)||gi.test(t)||pi.test(t)};function hu(t,l=250,o){let u=null;function s(){const f=arguments,m=()=>{u=null,t.apply(this,f)};u!==null&&clearTimeout(u),u=setTimeout(m,l)}return s.cancel=()=>{u!==null&&clearTimeout(u)},s}const Id=[!0,!1,"ondemand"],Pd={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:t=>Id.includes(t)}};function Nd(t,l){const{props:o,proxy:u}=i.getCurrentInstance(),s=i.ref(!1),f=i.ref(null),m=i.ref(!1);Ld({validate:W,resetValidation:R});let g=0,C;const A=i.computed(()=>o.rules!==void 0&&o.rules!==null&&o.rules.length!==0),v=i.computed(()=>o.disable!==!0&&A.value===!0&&l.value===!1),k=i.computed(()=>o.error===!0||s.value===!0),y=i.computed(()=>typeof o.errorMessage=="string"&&o.errorMessage.length!==0?o.errorMessage:f.value);i.watch(()=>o.modelValue,()=>{m.value=!0,v.value===!0&&o.lazyRules===!1&&O()});function w(){o.lazyRules!=="ondemand"&&v.value===!0&&m.value===!0&&O()}i.watch(()=>o.reactiveRules,G=>{G===!0?C===void 0&&(C=i.watch(()=>o.rules,w,{immediate:!0,deep:!0})):C!==void 0&&(C(),C=void 0)},{immediate:!0}),i.watch(()=>o.lazyRules,w),i.watch(t,G=>{G===!0?m.value=!0:v.value===!0&&o.lazyRules!=="ondemand"&&O()});function R(){g++,l.value=!1,m.value=!1,s.value=!1,f.value=null,O.cancel()}function W(G=o.modelValue){if(o.disable===!0||A.value===!1)return!0;const U=++g,D=l.value!==!0?()=>{m.value=!0}:()=>{},Q=(Y,I)=>{Y===!0&&D(),s.value=Y,f.value=I||null,l.value=!1},j=[];for(let Y=0;Y<o.rules.length;Y++){const I=o.rules[Y];let le;if(typeof I=="function"?le=I(G,Do):typeof I=="string"&&Do[I]!==void 0&&(le=Do[I](G)),le===!1||typeof le=="string")return Q(!0,le),!1;le!==!0&&le!==void 0&&j.push(le)}return j.length===0?(Q(!1),!0):(l.value=!0,Promise.all(j).then(Y=>{if(Y===void 0||Array.isArray(Y)===!1||Y.length===0)return U===g&&Q(!1),!0;const I=Y.find(le=>le===!1||typeof le=="string");return U===g&&Q(I!==void 0,I),I===void 0},Y=>(U===g&&(console.error(Y),Q(!0)),!1)))}const O=hu(W,0);return i.onBeforeUnmount(()=>{C!==void 0&&C(),O.cancel()}),Object.assign(u,{resetValidation:R,validate:W}),ci(u,"hasError",()=>k.value),{isDirtyModel:m,hasRules:A,hasError:k,errorMessage:y,validate:W,resetValidation:R}}let Mn=[],Mr=[];function mu(t){Mr=Mr.filter(l=>l!==t)}function $d(t){mu(t),Mr.push(t)}function gu(t){mu(t),Mr.length===0&&Mn.length!==0&&(Mn[Mn.length-1](),Mn=[])}function vi(t){Mr.length===0?t():Mn.push(t)}function Fd(t){Mn=Mn.filter(l=>l!==t)}function Vr(t){return t!=null&&(""+t).length!==0}const _i={...{...rr,...Pd,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]},zo=["update:modelValue","clear","focus","blur"];function Uo({requiredForAttr:t=!0,tagProp:l,changeEvent:o=!1}={}){const{props:u,proxy:s}=i.getCurrentInstance(),f=ir(u,s.$q),m=Od({required:t,getValue:()=>u.for});return{requiredForAttr:t,changeEvent:o,tag:l===!0?i.computed(()=>u.tag):{value:"label"},isDark:f,editable:i.computed(()=>u.disable!==!0&&u.readonly!==!0),innerLoading:i.ref(!1),focused:i.ref(!1),hasPopupOpen:!1,splitAttrs:qd(),targetUid:m,rootRef:i.ref(null),targetRef:i.ref(null),controlRef:i.ref(null)}}function Wo(t){const{props:l,emit:o,slots:u,attrs:s,proxy:f}=i.getCurrentInstance(),{$q:m}=f;let g=null;t.hasValue===void 0&&(t.hasValue=i.computed(()=>Vr(l.modelValue))),t.emitValue===void 0&&(t.emitValue=H=>{o("update:modelValue",H)}),t.controlEvents===void 0&&(t.controlEvents={onFocusin:P,onFocusout:T}),Object.assign(t,{clearValue:V,onControlFocusin:P,onControlFocusout:T,focus:I}),t.computedCounter===void 0&&(t.computedCounter=i.computed(()=>{if(l.counter!==!1){const H=typeof l.modelValue=="string"||typeof l.modelValue=="number"?(""+l.modelValue).length:Array.isArray(l.modelValue)===!0?l.modelValue.length:0,ie=l.maxlength!==void 0?l.maxlength:l.maxValues;return H+(ie!==void 0?" / "+ie:"")}}));const{isDirtyModel:C,hasRules:A,hasError:v,errorMessage:k,resetValidation:y}=Nd(t.focused,t.innerLoading),w=t.floatingLabel!==void 0?i.computed(()=>l.stackLabel===!0||t.focused.value===!0||t.floatingLabel.value===!0):i.computed(()=>l.stackLabel===!0||t.focused.value===!0||t.hasValue.value===!0),R=i.computed(()=>l.bottomSlots===!0||l.hint!==void 0||A.value===!0||l.counter===!0||l.error!==null),W=i.computed(()=>l.filled===!0?"filled":l.outlined===!0?"outlined":l.borderless===!0?"borderless":l.standout?"standout":"standard"),O=i.computed(()=>`q-field row no-wrap items-start q-field--${W.value}`+(t.fieldClass!==void 0?` ${t.fieldClass.value}`:"")+(l.rounded===!0?" q-field--rounded":"")+(l.square===!0?" q-field--square":"")+(w.value===!0?" q-field--float":"")+(U.value===!0?" q-field--labeled":"")+(l.dense===!0?" q-field--dense":"")+(l.itemAligned===!0?" q-field--item-aligned q-item-type":"")+(t.isDark.value===!0?" q-field--dark":"")+(t.getControl===void 0?" q-field--auto-height":"")+(t.focused.value===!0?" q-field--focused":"")+(v.value===!0?" q-field--error":"")+(v.value===!0||t.focused.value===!0?" q-field--highlighted":"")+(l.hideBottomSpace!==!0&&R.value===!0?" q-field--with-bottom":"")+(l.disable===!0?" q-field--disabled":l.readonly===!0?" q-field--readonly":"")),G=i.computed(()=>"q-field__control relative-position row no-wrap"+(l.bgColor!==void 0?` bg-${l.bgColor}`:"")+(v.value===!0?" text-negative":typeof l.standout=="string"&&l.standout.length!==0&&t.focused.value===!0?` ${l.standout}`:l.color!==void 0?` text-${l.color}`:"")),U=i.computed(()=>l.labelSlot===!0||l.label!==void 0),D=i.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(l.labelColor!==void 0&&v.value!==!0?` text-${l.labelColor}`:"")),Q=i.computed(()=>({id:t.targetUid.value,editable:t.editable.value,focused:t.focused.value,floatingLabel:w.value,modelValue:l.modelValue,emitValue:t.emitValue})),j=i.computed(()=>{const H={};return t.targetUid.value&&(H.for=t.targetUid.value),l.disable===!0&&(H["aria-disabled"]="true"),H});function Y(){const H=document.activeElement;let ie=t.targetRef!==void 0&&t.targetRef.value;ie&&(H===null||H.id!==t.targetUid.value)&&(ie.hasAttribute("tabindex")===!0||(ie=ie.querySelector("[tabindex]")),ie&&ie!==H&&ie.focus({preventScroll:!0}))}function I(){vi(Y)}function le(){Fd(Y);const H=document.activeElement;H!==null&&t.rootRef.value.contains(H)&&H.blur()}function P(H){g!==null&&(clearTimeout(g),g=null),t.editable.value===!0&&t.focused.value===!1&&(t.focused.value=!0,o("focus",H))}function T(H,ie){g!==null&&clearTimeout(g),g=setTimeout(()=>{g=null,!(document.hasFocus()===!0&&(t.hasPopupOpen===!0||t.controlRef===void 0||t.controlRef.value===null||t.controlRef.value.contains(document.activeElement)!==!1))&&(t.focused.value===!0&&(t.focused.value=!1,o("blur",H)),ie!==void 0&&ie())})}function V(H){Ke(H),m.platform.is.mobile!==!0?(t.targetRef!==void 0&&t.targetRef.value||t.rootRef.value).focus():t.rootRef.value.contains(document.activeElement)===!0&&document.activeElement.blur(),l.type==="file"&&(t.inputRef.value.value=null),o("update:modelValue",null),t.changeEvent===!0&&o("change",null),o("clear",l.modelValue),i.nextTick(()=>{const ie=C.value;y(),C.value=ie})}function S(H){[13,32].includes(H.keyCode)&&V(H)}function Z(){const H=[];return u.prepend!==void 0&&H.push(i.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:It},u.prepend())),H.push(i.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},F())),v.value===!0&&l.noErrorIcon===!1&&H.push(se("error",[i.h(vt,{name:m.iconSet.field.error,color:"negative"})])),l.loading===!0||t.innerLoading.value===!0?H.push(se("inner-loading-append",u.loading!==void 0?u.loading():[i.h(Vo,{color:l.color})])):l.clearable===!0&&t.hasValue.value===!0&&t.editable.value===!0&&H.push(se("inner-clearable-append",[i.h(vt,{class:"q-field__focusable-action",name:l.clearIcon||m.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":m.lang.label.clear,onKeyup:S,onClick:V})])),u.append!==void 0&&H.push(i.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:It},u.append())),t.getInnerAppend!==void 0&&H.push(se("inner-append",t.getInnerAppend())),t.getControlChild!==void 0&&H.push(t.getControlChild()),H}function F(){const H=[];return l.prefix!==void 0&&l.prefix!==null&&H.push(i.h("div",{class:"q-field__prefix no-pointer-events row items-center"},l.prefix)),t.getShadowControl!==void 0&&t.hasShadow.value===!0&&H.push(t.getShadowControl()),t.getControl!==void 0?H.push(t.getControl()):u.rawControl!==void 0?H.push(u.rawControl()):u.control!==void 0&&H.push(i.h("div",{ref:t.targetRef,class:"q-field__native row",tabindex:-1,...t.splitAttrs.attributes.value,"data-autofocus":l.autofocus===!0||void 0},u.control(Q.value))),U.value===!0&&H.push(i.h("div",{class:D.value},pt(u.label,l.label))),l.suffix!==void 0&&l.suffix!==null&&H.push(i.h("div",{class:"q-field__suffix no-pointer-events row items-center"},l.suffix)),H.concat(pt(u.default))}function ae(){let H,ie;v.value===!0?k.value!==null?(H=[i.h("div",{role:"alert"},k.value)],ie=`q--slot-error-${k.value}`):(H=pt(u.error),ie="q--slot-error"):(l.hideHint!==!0||t.focused.value===!0)&&(l.hint!==void 0?(H=[i.h("div",l.hint)],ie=`q--slot-hint-${l.hint}`):(H=pt(u.hint),ie="q--slot-hint"));const ge=l.counter===!0||u.counter!==void 0;if(l.hideBottomSpace===!0&&ge===!1&&H===void 0)return;const q=i.h("div",{key:ie,class:"q-field__messages col"},H);return i.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(l.hideBottomSpace!==!0?"animated":"stale"),onClick:It},[l.hideBottomSpace===!0?q:i.h(i.Transition,{name:"q-transition--field-message"},()=>q),ge===!0?i.h("div",{class:"q-field__counter"},u.counter!==void 0?u.counter():t.computedCounter.value):null])}function se(H,ie){return ie===null?null:i.h("div",{key:H,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},ie)}let ce=!1;return i.onDeactivated(()=>{ce=!0}),i.onActivated(()=>{ce===!0&&l.autofocus===!0&&f.focus()}),l.autofocus===!0&&i.onMounted(()=>{f.focus()}),i.onBeforeUnmount(()=>{g!==null&&clearTimeout(g)}),Object.assign(f,{focus:I,blur:le}),function(){const ie=t.getControl===void 0&&u.control===void 0?{...t.splitAttrs.attributes.value,"data-autofocus":l.autofocus===!0||void 0,...j.value}:j.value;return i.h(t.tag.value,{ref:t.rootRef,class:[O.value,s.class],style:s.style,...ie},[u.before!==void 0?i.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:It},u.before()):null,i.h("div",{class:"q-field__inner relative-position col self-stretch"},[i.h("div",{ref:t.controlRef,class:G.value,tabindex:-1,...t.controlEvents},Z()),R.value===!0?ae():null]),u.after!==void 0?i.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:It},u.after()):null])}}function Ho(t){return t!==Object(t)||t.isComposing===!0||t.qKeyEvent===!0}function Vn(t,l){return Ho(t)===!0?!1:[].concat(l).includes(t.keyCode)}const pu={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},bi={"#":{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:t=>t.toLocaleUpperCase()},a:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:t=>t.toLocaleLowerCase()},X:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:t=>t.toLocaleUpperCase()},x:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:t=>t.toLocaleLowerCase()}},vu=Object.keys(bi);vu.forEach(t=>{bi[t].regex=new RegExp(bi[t].pattern)});const Dd=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+vu.join("")+"])|(.)","g"),_u=/[.*+?^${}()|[\]\\]/g,We="",zd={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function Ud(t,l,o,u){let s,f,m,g,C,A;const v=i.ref(null),k=i.ref(w());function y(){return t.autogrow===!0||["textarea","text","search","url","tel","password"].includes(t.type)}i.watch(()=>t.type+t.autogrow,W),i.watch(()=>t.mask,P=>{if(P!==void 0)O(k.value,!0);else{const T=I(k.value);W(),t.modelValue!==T&&l("update:modelValue",T)}}),i.watch(()=>t.fillMask+t.reverseFillMask,()=>{v.value===!0&&O(k.value,!0)}),i.watch(()=>t.unmaskedValue,()=>{v.value===!0&&O(k.value)});function w(){if(W(),v.value===!0){const P=j(I(t.modelValue));return t.fillMask!==!1?le(P):P}return t.modelValue}function R(P){if(P<s.length)return s.slice(-P);let T="",V=s;const S=V.indexOf(We);if(S!==-1){for(let Z=P-V.length;Z>0;Z--)T+=We;V=V.slice(0,S)+T+V.slice(S)}return V}function W(){if(v.value=t.mask!==void 0&&t.mask.length!==0&&y(),v.value===!1){g=void 0,s="",f="";return}const P=pu[t.mask]===void 0?t.mask:pu[t.mask],T=typeof t.fillMask=="string"&&t.fillMask.length!==0?t.fillMask.slice(0,1):"_",V=T.replace(_u,"\\$&"),S=[],Z=[],F=[];let ae=t.reverseFillMask===!0,se="",ce="";P.replace(Dd,(q,B,oe,ve,_e)=>{if(ve!==void 0){const K=bi[ve];F.push(K),ce=K.negate,ae===!0&&(Z.push("(?:"+ce+"+)?("+K.pattern+"+)?(?:"+ce+"+)?("+K.pattern+"+)?"),ae=!1),Z.push("(?:"+ce+"+)?("+K.pattern+")?")}else if(oe!==void 0)se="\\"+(oe==="\\"?"":oe),F.push(oe),S.push("([^"+se+"]+)?"+se+"?");else{const K=B!==void 0?B:_e;se=K==="\\"?"\\\\\\\\":K.replace(_u,"\\\\$&"),F.push(K),S.push("([^"+se+"]+)?"+se+"?")}});const H=new RegExp("^"+S.join("")+"("+(se===""?".":"[^"+se+"]")+"+)?"+(se===""?"":"["+se+"]*")+"$"),ie=Z.length-1,ge=Z.map((q,B)=>B===0&&t.reverseFillMask===!0?new RegExp("^"+V+"*"+q):B===ie?new RegExp("^"+q+"("+(ce===""?".":ce)+"+)?"+(t.reverseFillMask===!0?"$":V+"*")):new RegExp("^"+q));m=F,g=q=>{const B=H.exec(t.reverseFillMask===!0?q:q.slice(0,F.length+1));B!==null&&(q=B.slice(1).join(""));const oe=[],ve=ge.length;for(let _e=0,K=q;_e<ve;_e++){const ne=ge[_e].exec(K);if(ne===null)break;K=K.slice(ne.shift().length),oe.push(...ne)}return oe.length!==0?oe.join(""):q},s=F.map(q=>typeof q=="string"?q:We).join(""),f=s.split(We).join(T)}function O(P,T,V){const S=u.value,Z=S.selectionEnd,F=S.value.length-Z,ae=I(P);T===!0&&W();const se=j(ae),ce=t.fillMask!==!1?le(se):se,H=k.value!==ce;S.value!==ce&&(S.value=ce),H===!0&&(k.value=ce),document.activeElement===S&&i.nextTick(()=>{if(ce===f){const ge=t.reverseFillMask===!0?f.length:0;S.setSelectionRange(ge,ge,"forward");return}if(V==="insertFromPaste"&&t.reverseFillMask!==!0){const ge=S.selectionEnd;let q=Z-1;for(let B=C;B<=q&&B<ge;B++)s[B]!==We&&q++;U.right(S,q);return}if(["deleteContentBackward","deleteContentForward"].indexOf(V)!==-1){const ge=t.reverseFillMask===!0?Z===0?ce.length>se.length?1:0:Math.max(0,ce.length-(ce===f?0:Math.min(se.length,F)+1))+1:Z;S.setSelectionRange(ge,ge,"forward");return}if(t.reverseFillMask===!0)if(H===!0){const ge=Math.max(0,ce.length-(ce===f?0:Math.min(se.length,F+1)));ge===1&&Z===1?S.setSelectionRange(ge,ge,"forward"):U.rightReverse(S,ge)}else{const ge=ce.length-F;S.setSelectionRange(ge,ge,"backward")}else if(H===!0){const ge=Math.max(0,s.indexOf(We),Math.min(se.length,Z)-1);U.right(S,ge)}else{const ge=Z-1;U.right(S,ge)}});const ie=t.unmaskedValue===!0?I(ce):ce;String(t.modelValue)!==ie&&(t.modelValue!==null||ie!=="")&&o(ie,!0)}function G(P,T,V){const S=j(I(P.value));T=Math.max(0,s.indexOf(We),Math.min(S.length,T)),C=T,P.setSelectionRange(T,V,"forward")}const U={left(P,T){const V=s.slice(T-1).indexOf(We)===-1;let S=Math.max(0,T-1);for(;S>=0;S--)if(s[S]===We){T=S,V===!0&&T++;break}if(S<0&&s[T]!==void 0&&s[T]!==We)return U.right(P,0);T>=0&&P.setSelectionRange(T,T,"backward")},right(P,T){const V=P.value.length;let S=Math.min(V,T+1);for(;S<=V;S++)if(s[S]===We){T=S;break}else s[S-1]===We&&(T=S);if(S>V&&s[T-1]!==void 0&&s[T-1]!==We)return U.left(P,V);P.setSelectionRange(T,T,"forward")},leftReverse(P,T){const V=R(P.value.length);let S=Math.max(0,T-1);for(;S>=0;S--)if(V[S-1]===We){T=S;break}else if(V[S]===We&&(T=S,S===0))break;if(S<0&&V[T]!==void 0&&V[T]!==We)return U.rightReverse(P,0);T>=0&&P.setSelectionRange(T,T,"backward")},rightReverse(P,T){const V=P.value.length,S=R(V),Z=S.slice(0,T+1).indexOf(We)===-1;let F=Math.min(V,T+1);for(;F<=V;F++)if(S[F-1]===We){T=F,T>0&&Z===!0&&T--;break}if(F>V&&S[T-1]!==void 0&&S[T-1]!==We)return U.leftReverse(P,V);P.setSelectionRange(T,T,"forward")}};function D(P){l("click",P),A=void 0}function Q(P){if(l("keydown",P),Ho(P)===!0||P.altKey===!0)return;const T=u.value,V=T.selectionStart,S=T.selectionEnd;if(P.shiftKey||(A=void 0),P.keyCode===37||P.keyCode===39){P.shiftKey&&A===void 0&&(A=T.selectionDirection==="forward"?V:S);const Z=U[(P.keyCode===39?"right":"left")+(t.reverseFillMask===!0?"Reverse":"")];if(P.preventDefault(),Z(T,A===V?S:V),P.shiftKey){const F=T.selectionStart;T.setSelectionRange(Math.min(A,F),Math.max(A,F),"forward")}}else P.keyCode===8&&t.reverseFillMask!==!0&&V===S?(U.left(T,V),T.setSelectionRange(T.selectionStart,S,"backward")):P.keyCode===46&&t.reverseFillMask===!0&&V===S&&(U.rightReverse(T,S),T.setSelectionRange(V,T.selectionEnd,"forward"))}function j(P){if(P==null||P==="")return"";if(t.reverseFillMask===!0)return Y(P);const T=m;let V=0,S="";for(let Z=0;Z<T.length;Z++){const F=P[V],ae=T[Z];if(typeof ae=="string")S+=ae,F===ae&&V++;else if(F!==void 0&&ae.regex.test(F))S+=ae.transform!==void 0?ae.transform(F):F,V++;else return S}return S}function Y(P){const T=m,V=s.indexOf(We);let S=P.length-1,Z="";for(let F=T.length-1;F>=0&&S!==-1;F--){const ae=T[F];let se=P[S];if(typeof ae=="string")Z=ae+Z,se===ae&&S--;else if(se!==void 0&&ae.regex.test(se))do Z=(ae.transform!==void 0?ae.transform(se):se)+Z,S--,se=P[S];while(V===F&&se!==void 0&&ae.regex.test(se));else return Z}return Z}function I(P){return typeof P!="string"||g===void 0?typeof P=="number"?g(""+P):P:g(P)}function le(P){return f.length-P.length<=0?P:t.reverseFillMask===!0&&P.length!==0?f.slice(0,-P.length)+P:P+f.slice(P.length)}return{innerValue:k,hasMask:v,moveCursorForPaste:G,updateMaskValue:O,onMaskedKeydown:Q,onMaskedClick:D}}function Wd(t,l){function o(){const u=t.modelValue;try{const s="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(u)===u&&("length"in u?Array.from(u):[u]).forEach(f=>{s.items.add(f)}),{files:s.files}}catch{return{files:void 0}}}return i.computed(()=>{if(t.type==="file")return o()})}const Hd=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,Kd=/[\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,Gd=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,jd=/[a-z0-9_ -]$/i;function bu(t){return function(o){if(o.type==="compositionend"||o.type==="change"){if(o.target.qComposing!==!0)return;o.target.qComposing=!1,t(o)}else o.type==="compositionupdate"&&o.target.qComposing!==!0&&typeof o.data=="string"&&(gt.is.firefox===!0?jd.test(o.data)===!1:Hd.test(o.data)===!0||Kd.test(o.data)===!0||Gd.test(o.data)===!0)===!0&&(o.target.qComposing=!0)}}const yu=Ye({name:"QInput",inheritAttrs:!1,props:{..._i,...zd,...Po,modelValue:[String,Number,FileList],shadowText:String,type:{type:String,default:"text"},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...zo,"paste","change","keydown","click","animationend"],setup(t,{emit:l,attrs:o}){const{proxy:u}=i.getCurrentInstance(),{$q:s}=u,f={};let m=NaN,g,C,A=null,v;const k=i.ref(null),y=Ja(t),{innerValue:w,hasMask:R,moveCursorForPaste:W,updateMaskValue:O,onMaskedKeydown:G,onMaskedClick:U}=Ud(t,l,se,k),D=Wd(t),Q=i.computed(()=>Vr(w.value)),j=bu(F),Y=Uo({changeEvent:!0}),I=i.computed(()=>t.type==="textarea"||t.autogrow===!0),le=i.computed(()=>I.value===!0||["text","search","url","tel","password"].includes(t.type)),P=i.computed(()=>{const B={...Y.splitAttrs.listeners.value,onInput:F,onPaste:Z,onChange:H,onBlur:ie,onFocus:Kt};return B.onCompositionstart=B.onCompositionupdate=B.onCompositionend=j,R.value===!0&&(B.onKeydown=G,B.onClick=U),t.autogrow===!0&&(B.onAnimationend=ae),B}),T=i.computed(()=>{const B={tabindex:0,"data-autofocus":t.autofocus===!0||void 0,rows:t.type==="textarea"?6:void 0,"aria-label":t.label,name:y.value,...Y.splitAttrs.attributes.value,id:Y.targetUid.value,maxlength:t.maxlength,disabled:t.disable===!0,readonly:t.readonly===!0};return I.value===!1&&(B.type=t.type),t.autogrow===!0&&(B.rows=1),B});i.watch(()=>t.type,()=>{k.value&&(k.value.value=t.modelValue)}),i.watch(()=>t.modelValue,B=>{if(R.value===!0){if(C===!0&&(C=!1,String(B)===m))return;O(B)}else w.value!==B&&(w.value=B,t.type==="number"&&f.hasOwnProperty("value")===!0&&(g===!0?g=!1:delete f.value));t.autogrow===!0&&i.nextTick(ce)}),i.watch(()=>t.autogrow,B=>{B===!0?i.nextTick(ce):k.value!==null&&o.rows>0&&(k.value.style.height="auto")}),i.watch(()=>t.dense,()=>{t.autogrow===!0&&i.nextTick(ce)});function V(){vi(()=>{const B=document.activeElement;k.value!==null&&k.value!==B&&(B===null||B.id!==Y.targetUid.value)&&k.value.focus({preventScroll:!0})})}function S(){k.value!==null&&k.value.select()}function Z(B){if(R.value===!0&&t.reverseFillMask!==!0){const oe=B.target;W(oe,oe.selectionStart,oe.selectionEnd)}l("paste",B)}function F(B){if(!B||!B.target)return;if(t.type==="file"){l("update:modelValue",B.target.files);return}const oe=B.target.value;if(B.target.qComposing===!0){f.value=oe;return}if(R.value===!0)O(oe,!1,B.inputType);else if(se(oe),le.value===!0&&B.target===document.activeElement){const{selectionStart:ve,selectionEnd:_e}=B.target;ve!==void 0&&_e!==void 0&&i.nextTick(()=>{B.target===document.activeElement&&oe.indexOf(B.target.value)===0&&B.target.setSelectionRange(ve,_e)})}t.autogrow===!0&&ce()}function ae(B){l("animationend",B),ce()}function se(B,oe){v=()=>{A=null,t.type!=="number"&&f.hasOwnProperty("value")===!0&&delete f.value,t.modelValue!==B&&m!==B&&(m=B,oe===!0&&(C=!0),l("update:modelValue",B),i.nextTick(()=>{m===B&&(m=NaN)})),v=void 0},t.type==="number"&&(g=!0,f.value=B),t.debounce!==void 0?(A!==null&&clearTimeout(A),f.value=B,A=setTimeout(v,t.debounce)):v()}function ce(){requestAnimationFrame(()=>{const B=k.value;if(B!==null){const oe=B.parentNode.style,{scrollTop:ve}=B,{overflowY:_e,maxHeight:K}=s.platform.is.firefox===!0?{}:window.getComputedStyle(B),ne=_e!==void 0&&_e!=="scroll";ne===!0&&(B.style.overflowY="hidden"),oe.marginBottom=B.scrollHeight-1+"px",B.style.height="1px",B.style.height=B.scrollHeight+"px",ne===!0&&(B.style.overflowY=parseInt(K,10)<B.scrollHeight?"auto":"hidden"),oe.marginBottom="",B.scrollTop=ve}})}function H(B){j(B),A!==null&&(clearTimeout(A),A=null),v!==void 0&&v(),l("change",B.target.value)}function ie(B){B!==void 0&&Kt(B),A!==null&&(clearTimeout(A),A=null),v!==void 0&&v(),g=!1,C=!1,delete f.value,t.type!=="file"&&setTimeout(()=>{k.value!==null&&(k.value.value=w.value!==void 0?w.value:"")})}function ge(){return f.hasOwnProperty("value")===!0?f.value:w.value!==void 0?w.value:""}i.onBeforeUnmount(()=>{ie()}),i.onMounted(()=>{t.autogrow===!0&&ce()}),Object.assign(Y,{innerValue:w,fieldClass:i.computed(()=>`q-${I.value===!0?"textarea":"input"}`+(t.autogrow===!0?" q-textarea--autogrow":"")),hasShadow:i.computed(()=>t.type!=="file"&&typeof t.shadowText=="string"&&t.shadowText.length!==0),inputRef:k,emitValue:se,hasValue:Q,floatingLabel:i.computed(()=>Q.value===!0&&(t.type!=="number"||isNaN(w.value)===!1)||Vr(t.displayValue)),getControl:()=>i.h(I.value===!0?"textarea":"input",{ref:k,class:["q-field__native q-placeholder",t.inputClass],style:t.inputStyle,...T.value,...P.value,...t.type!=="file"?{value:ge()}:D.value}),getShadowControl:()=>i.h("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(I.value===!0?"":" text-no-wrap")},[i.h("span",{class:"invisible"},ge()),i.h("span",t.shadowText)])});const q=Wo(Y);return Object.assign(u,{focus:V,select:S,getNativeElement:()=>k.value}),ci(u,"nativeEl",()=>k.value),q}}),yi=Ye({name:"QCard",props:{...rr,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(t,{slots:l}){const{proxy:{$q:o}}=i.getCurrentInstance(),u=ir(t,o),s=i.computed(()=>"q-card"+(u.value===!0?" q-card--dark q-dark":"")+(t.bordered===!0?" q-card--bordered":"")+(t.square===!0?" q-card--square no-border-radius":"")+(t.flat===!0?" q-card--flat no-shadow":""));return()=>i.h(t.tag,{class:s.value},pt(l.default))}}),Qd=i.defineComponent({__name:"WinInput",props:i.mergeModels({modelValue:{},rules:{},label:{},placeholder:{},mask:{},prefix:{},suffix:{},hint:{},maxlength:{},type:{default:"text"},transparent:{type:Boolean,default:!0},width:{default:"100%"},height:{default:"70px"},inputHeight:{},readonly:{type:Boolean},fillMask:{type:Boolean,default:!1},minWidth:{default:"200px"},inputStyle:{default:"resize: none"},labelStyle:{default:"padding-left: 5px"},hintOptions:{default:{color:"grey-7",position:"right"}},counter:{type:Boolean,default:!1},dense:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=i.useModel(t,"modelValue"),o=t,u=i.ref(!1),s=i.computed(()=>o.transparent?"glass-card":"win-card"),f=i.computed(()=>o.label===""?void 0:o.label),m=i.computed(()=>{let y="width: 100%; padding-left: 10px; padding-right: 10px;";return o.inputHeight&&(y+="height: "+o.inputHeight),y}),g=i.computed(()=>l.value||u.value?"17.5px":"15px"),C=i.ref(null);function A(){C.value.focus()}function v(){u.value=!0}function k(){u.value=!1}return(y,w)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(yi,{onClick:A,class:i.normalizeClass(`${s.value} row items-center ${l.value&&y.label||u.value&&y.label?"q-pt-md":""} `),style:i.normalizeStyle({minHeight:y.height,width:y.width,maxWidth:"calc(100vw - 32px)",minWidth:y.minWidth,margin:"auto"})},{default:i.withCtx(()=>[i.renderSlot(y.$slots,"fixed-label",{class:"self-start"}),i.createVNode(yu,{modelValue:l.value,"onUpdate:modelValue":w[0]||(w[0]=R=>l.value=R),ref_key:"inputRef",ref:C,"label-color":"black","input-class":`text-black ${f.value?"":"text-center ww-title"}`,"input-style":y.inputStyle,style:i.normalizeStyle(m.value),readonly:y.readonly,mask:y.mask,prefix:y.prefix,label:f.value,type:y.type,suffix:y.suffix,counter:y.counter,maxlength:y.maxlength,rules:y.rules,borderless:"",dense:"","unmasked-value":"","reverse-fill-mask":"",placeholder:y.placeholder,onFocus:v,onBlur:k},{label:i.withCtx(()=>[!y.label||y.label!=""?(i.openBlock(),i.createElementBlock("div",{key:0,style:i.normalizeStyle(`padding-bottom: 30px; transition: 0.5s ease; font-size: ${g.value};`+y.labelStyle)},i.toDisplayString(y.label)+" "+i.toDisplayString(y.required&&!y.readonly?"*":""),5)):i.createCommentVNode("",!0)]),append:i.withCtx(()=>[i.renderSlot(y.$slots,"append")]),_:3},8,["modelValue","input-class","input-style","style","readonly","mask","prefix","label","type","suffix","counter","maxlength","rules","placeholder"]),i.renderSlot(y.$slots,"bottom")]),_:3},8,["class","style"]),y.hint?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(`text-${y.hintOptions.position} text-${y.hintOptions.color} text-caption q-mt-xl q-pt-xl q-pl-sm`)},i.toDisplayString(y.hint),3)):i.createCommentVNode("",!0)],64))}}),Yd={class:"ww-subtitle text-center q-mb-md text-grey-9",style:{"font-weight":"600"}},Zd=i.defineComponent({__name:"ControlLabel",props:{label:{}},setup(t){return(l,o)=>(i.openBlock(),i.createElementBlock("div",Yd,i.toDisplayString(l.label),1))}}),Xd={style:{"max-width":"400px"},class:"text-center"},Jd={style:{"font-size":"16px"}},eh={style:{"font-size":"16px"}},Ko=gn(i.defineComponent({__name:"InputControl",props:i.mergeModels({control:{},innerLabel:{type:Boolean,default:!1}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=t,o=i.ref(null),u=i.computed(()=>{var f;return(f=l.control.controlType)==null?void 0:f.split("_")[1]}),s=i.useModel(t,"modelValue");return i.onMounted(()=>{var f;(f=o.value)==null||f.focus()}),(f,m)=>(i.openBlock(),i.createElementBlock("div",Xd,[!f.innerLabel&&f.control.label?(i.openBlock(),i.createBlock(Zd,{key:0,label:f.control.label},null,8,["label"])):i.createCommentVNode("",!0),i.createVNode(Qd,{modelValue:s.value,"onUpdate:modelValue":m[0]||(m[0]=g=>s.value=g),width:"250px",mask:u.value==="number"?"###.###.###.###.###":void 0,label:f.innerLabel?f.control.label:void 0,inputStyle:{textAlign:(u.value==="number","center")},ref_key:"inputRef",ref:o},i.createSlots({_:2},[f.control.prefix?{name:"prepend",fn:i.withCtx(()=>[i.createElementVNode("span",Jd,i.toDisplayString(f.control.prefix),1)]),key:"0"}:void 0,f.control.suffix?{name:"append",fn:i.withCtx(()=>[i.createElementVNode("span",eh,i.toDisplayString(f.control.suffix),1)]),key:"1"}:void 0]),1032,["modelValue","mask","label","inputStyle"])]))}}),[["__scopeId","data-v-8f5284d3"]]);function Go(t,l){const o=t.style;for(const u in l)o[u]=l[u]}function th(t){if(t==null)return;if(typeof t=="string")try{return document.querySelector(t)||void 0}catch{return}const l=i.unref(t);if(l)return l.$el||l}function wu(t,l){if(t==null||t.contains(l)===!0)return!0;for(let o=t.nextElementSibling;o!==null;o=o.nextElementSibling)if(o.contains(l))return!0;return!1}function nh(t,l=250){let o=!1,u;return function(){return o===!1&&(o=!0,setTimeout(()=>{o=!1},l),u=t.apply(this,arguments)),u}}function Su(t,l,o,u){o.modifiers.stop===!0&&Kt(t);const s=o.modifiers.color;let f=o.modifiers.center;f=f===!0||u===!0;const m=document.createElement("span"),g=document.createElement("span"),C=eu(t),{left:A,top:v,width:k,height:y}=l.getBoundingClientRect(),w=Math.sqrt(k*k+y*y),R=w/2,W=`${(k-w)/2}px`,O=f?W:`${C.left-A-R}px`,G=`${(y-w)/2}px`,U=f?G:`${C.top-v-R}px`;g.className="q-ripple__inner",Go(g,{height:`${w}px`,width:`${w}px`,transform:`translate3d(${O},${U},0) scale3d(.2,.2,1)`,opacity:0}),m.className=`q-ripple${s?" text-"+s:""}`,m.setAttribute("dir","ltr"),m.appendChild(g),l.appendChild(m);const D=()=>{m.remove(),clearTimeout(Q)};o.abort.push(D);let Q=setTimeout(()=>{g.classList.add("q-ripple__inner--enter"),g.style.transform=`translate3d(${W},${G},0) scale3d(1,1,1)`,g.style.opacity=.2,Q=setTimeout(()=>{g.classList.remove("q-ripple__inner--enter"),g.classList.add("q-ripple__inner--leave"),g.style.opacity=0,Q=setTimeout(()=>{m.remove(),o.abort.splice(o.abort.indexOf(D),1)},275)},250)},50)}function xu(t,{modifiers:l,value:o,arg:u}){const s=Object.assign({},t.cfg.ripple,l,o);t.modifiers={early:s.early===!0,stop:s.stop===!0,center:s.center===!0,color:s.color||u,keyCodes:[].concat(s.keyCodes||13)}}const Cu=Da({name:"ripple",beforeMount(t,l){const o=l.instance.$.appContext.config.globalProperties.$q.config||{};if(o.ripple===!1)return;const u={cfg:o,enabled:l.value!==!1,modifiers:{},abort:[],start(s){u.enabled===!0&&s.qSkipRipple!==!0&&s.type===(u.modifiers.early===!0?"pointerdown":"click")&&Su(s,t,u,s.qKeyEvent===!0)},keystart:nh(s=>{u.enabled===!0&&s.qSkipRipple!==!0&&Vn(s,u.modifiers.keyCodes)===!0&&s.type===`key${u.modifiers.early===!0?"down":"up"}`&&Su(s,t,u,!0)},300)};xu(u,l),t.__qripple=u,No(u,"main",[[t,"pointerdown","start","passive"],[t,"click","start","passive"],[t,"keydown","keystart","passive"],[t,"keyup","keystart","passive"]])},updated(t,l){if(l.oldValue!==l.value){const o=t.__qripple;o!==void 0&&(o.enabled=l.value!==!1,o.enabled===!0&&Object(l.value)===l.value&&xu(o,l))}},beforeUnmount(t){const l=t.__qripple;l!==void 0&&(l.abort.forEach(o=>{o()}),tu(l,"main"),delete t._qripple)}}),ku={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},rh=Object.keys(ku),ih={align:{type:String,validator:t=>rh.includes(t)}};function oh(t){return i.computed(()=>{const l=t.align===void 0?t.vertical===!0?"stretch":"left":t.align;return`${t.vertical===!0?"items":"justify"}-${ku[l]}`})}function Eu(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}function Au(t,l){return(t.aliasOf||t)===(l.aliasOf||l)}function lh(t,l){for(const o in l){const u=l[o],s=t[o];if(typeof u=="string"){if(u!==s)return!1}else if(Array.isArray(s)===!1||s.length!==u.length||u.some((f,m)=>f!==s[m]))return!1}return!0}function Tu(t,l){return Array.isArray(l)===!0?t.length===l.length&&t.every((o,u)=>o===l[u]):t.length===1&&t[0]===l}function ah(t,l){return Array.isArray(t)===!0?Tu(t,l):Array.isArray(l)===!0?Tu(l,t):t===l}function uh(t,l){if(Object.keys(t).length!==Object.keys(l).length)return!1;for(const o in t)if(ah(t[o],l[o])===!1)return!1;return!0}const Bu={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},sh={...Bu,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function Ru({fallbackTag:t,useDisableForRouterLinkProps:l=!0}={}){const o=i.getCurrentInstance(),{props:u,proxy:s,emit:f}=o,m=Ka(o),g=i.computed(()=>u.disable!==!0&&u.href!==void 0),C=l===!0?i.computed(()=>m===!0&&u.disable!==!0&&g.value!==!0&&u.to!==void 0&&u.to!==null&&u.to!==""):i.computed(()=>m===!0&&g.value!==!0&&u.to!==void 0&&u.to!==null&&u.to!==""),A=i.computed(()=>C.value===!0?U(u.to):null),v=i.computed(()=>A.value!==null),k=i.computed(()=>g.value===!0||v.value===!0),y=i.computed(()=>u.type==="a"||k.value===!0?"a":u.tag||t||"div"),w=i.computed(()=>g.value===!0?{href:u.href,target:u.target}:v.value===!0?{href:A.value.href,target:u.target}:{}),R=i.computed(()=>{if(v.value===!1)return-1;const{matched:j}=A.value,{length:Y}=j,I=j[Y-1];if(I===void 0)return-1;const le=s.$route.matched;if(le.length===0)return-1;const P=le.findIndex(Au.bind(null,I));if(P!==-1)return P;const T=Eu(j[Y-2]);return Y>1&&Eu(I)===T&&le[le.length-1].path!==T?le.findIndex(Au.bind(null,j[Y-2])):P}),W=i.computed(()=>v.value===!0&&R.value!==-1&&lh(s.$route.params,A.value.params)),O=i.computed(()=>W.value===!0&&R.value===s.$route.matched.length-1&&uh(s.$route.params,A.value.params)),G=i.computed(()=>v.value===!0?O.value===!0?` ${u.exactActiveClass} ${u.activeClass}`:u.exact===!0?"":W.value===!0?` ${u.activeClass}`:"":"");function U(j){try{return s.$router.resolve(j)}catch{}return null}function D(j,{returnRouterError:Y,to:I=u.to,replace:le=u.replace}={}){if(u.disable===!0)return j.preventDefault(),Promise.resolve(!1);if(j.metaKey||j.altKey||j.ctrlKey||j.shiftKey||j.button!==void 0&&j.button!==0||u.target==="_blank")return Promise.resolve(!1);j.preventDefault();const P=s.$router[le===!0?"replace":"push"](I);return Y===!0?P:P.then(()=>{}).catch(()=>{})}function Q(j){if(v.value===!0){const Y=I=>D(j,I);f("click",j,Y),j.defaultPrevented!==!0&&Y()}else f("click",j)}return{hasRouterLink:v,hasHrefLink:g,hasLink:k,linkTag:y,resolvedLink:A,linkIsActive:W,linkIsExactActive:O,linkClass:G,linkAttrs:w,getLink:U,navigateToRouterLink:D,navigateOnClick:Q}}const Ou={none:0,xs:4,sm:8,md:16,lg:24,xl:32},ch={xs:8,sm:10,md:14,lg:20,xl:24},fh=["button","submit","reset"],dh=/[^\s]\/[^\s]/,hh=["flat","outline","push","unelevated"];function mh(t,l){return t.flat===!0?"flat":t.outline===!0?"outline":t.push===!0?"push":t.unelevated===!0?"unelevated":l}const gh={...{...fi,...Bu,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...hh.reduce((t,l)=>(t[l]=Boolean)&&t,{}),square:Boolean,rounded: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:{...ih.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},round:Boolean};function ph(t){const l=di(t,ch),o=oh(t),{hasRouterLink:u,hasLink:s,linkTag:f,linkAttrs:m,navigateOnClick:g}=Ru({fallbackTag:"button"}),C=i.computed(()=>{const O=t.fab===!1&&t.fabMini===!1?l.value:{};return t.padding!==void 0?Object.assign({},O,{padding:t.padding.split(/\s+/).map(G=>G in Ou?Ou[G]+"px":G).join(" "),minWidth:"0",minHeight:"0"}):O}),A=i.computed(()=>t.rounded===!0||t.fab===!0||t.fabMini===!0),v=i.computed(()=>t.disable!==!0&&t.loading!==!0),k=i.computed(()=>v.value===!0?t.tabindex||0:-1),y=i.computed(()=>mh(t,"standard")),w=i.computed(()=>{const O={tabindex:k.value};return s.value===!0?Object.assign(O,m.value):fh.includes(t.type)===!0&&(O.type=t.type),f.value==="a"?(t.disable===!0?O["aria-disabled"]="true":O.href===void 0&&(O.role="button"),u.value!==!0&&dh.test(t.type)===!0&&(O.type=t.type)):t.disable===!0&&(O.disabled="",O["aria-disabled"]="true"),t.loading===!0&&t.percentage!==void 0&&Object.assign(O,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":t.percentage}),O}),R=i.computed(()=>{let O;t.color!==void 0?t.flat===!0||t.outline===!0?O=`text-${t.textColor||t.color}`:O=`bg-${t.color} text-${t.textColor||"white"}`:t.textColor&&(O=`text-${t.textColor}`);const G=t.round===!0?"round":`rectangle${A.value===!0?" q-btn--rounded":t.square===!0?" q-btn--square":""}`;return`q-btn--${y.value} q-btn--${G}`+(O!==void 0?" "+O:"")+(v.value===!0?" q-btn--actionable q-focusable q-hoverable":t.disable===!0?" disabled":"")+(t.fab===!0?" q-btn--fab":t.fabMini===!0?" q-btn--fab-mini":"")+(t.noCaps===!0?" q-btn--no-uppercase":"")+(t.dense===!0?" q-btn--dense":"")+(t.stretch===!0?" no-border-radius self-stretch":"")+(t.glossy===!0?" glossy":"")+(t.square?" q-btn--square":"")}),W=i.computed(()=>o.value+(t.stack===!0?" column":" row")+(t.noWrap===!0?" no-wrap text-no-wrap":"")+(t.loading===!0?" q-btn__content--hidden":""));return{classes:R,style:C,innerClasses:W,attributes:w,hasLink:s,linkTag:f,navigateOnClick:g,isActionable:v}}const{passiveCapture:At}=st;let or=null,lr=null,ar=null;const ur=Ye({name:"QBtn",props:{...gh,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(t,{slots:l,emit:o}){const{proxy:u}=i.getCurrentInstance(),{classes:s,style:f,innerClasses:m,attributes:g,hasLink:C,linkTag:A,navigateOnClick:v,isActionable:k}=ph(t),y=i.ref(null),w=i.ref(null);let R=null,W,O=null;const G=i.computed(()=>t.label!==void 0&&t.label!==null&&t.label!==""),U=i.computed(()=>t.disable===!0||t.ripple===!1?!1:{keyCodes:C.value===!0?[13,32]:[13],...t.ripple===!0?{}:t.ripple}),D=i.computed(()=>({center:t.round})),Q=i.computed(()=>{const F=Math.max(0,Math.min(100,t.percentage));return F>0?{transition:"transform 0.6s",transform:`translateX(${F-100}%)`}:{}}),j=i.computed(()=>{if(t.loading===!0)return{onMousedown:Z,onTouchstart:Z,onClick:Z,onKeydown:Z,onKeyup:Z};if(k.value===!0){const F={onClick:I,onKeydown:le,onMousedown:T};if(u.$q.platform.has.touch===!0){const ae=t.onTouchstart!==void 0?"":"Passive";F[`onTouchstart${ae}`]=P}return F}return{onClick:Ke}}),Y=i.computed(()=>({ref:y,class:"q-btn q-btn-item non-selectable no-outline "+s.value,style:f.value,...g.value,...j.value}));function I(F){if(y.value!==null){if(F!==void 0){if(F.defaultPrevented===!0)return;const ae=document.activeElement;if(t.type==="submit"&&ae!==document.body&&y.value.contains(ae)===!1&&ae.contains(y.value)===!1){y.value.focus();const se=()=>{document.removeEventListener("keydown",Ke,!0),document.removeEventListener("keyup",se,At),y.value!==null&&y.value.removeEventListener("blur",se,At)};document.addEventListener("keydown",Ke,!0),document.addEventListener("keyup",se,At),y.value.addEventListener("blur",se,At)}}v(F)}}function le(F){y.value!==null&&(o("keydown",F),Vn(F,[13,32])===!0&&lr!==y.value&&(lr!==null&&S(),F.defaultPrevented!==!0&&(y.value.focus(),lr=y.value,y.value.classList.add("q-btn--active"),document.addEventListener("keyup",V,!0),y.value.addEventListener("blur",V,At)),Ke(F)))}function P(F){y.value!==null&&(o("touchstart",F),F.defaultPrevented!==!0&&(or!==y.value&&(or!==null&&S(),or=y.value,R=F.target,R.addEventListener("touchcancel",V,At),R.addEventListener("touchend",V,At)),W=!0,O!==null&&clearTimeout(O),O=setTimeout(()=>{O=null,W=!1},200)))}function T(F){y.value!==null&&(F.qSkipRipple=W===!0,o("mousedown",F),F.defaultPrevented!==!0&&ar!==y.value&&(ar!==null&&S(),ar=y.value,y.value.classList.add("q-btn--active"),document.addEventListener("mouseup",V,At)))}function V(F){if(y.value!==null&&!(F!==void 0&&F.type==="blur"&&document.activeElement===y.value)){if(F!==void 0&&F.type==="keyup"){if(lr===y.value&&Vn(F,[13,32])===!0){const ae=new MouseEvent("click",F);ae.qKeyEvent=!0,F.defaultPrevented===!0&&It(ae),F.cancelBubble===!0&&Kt(ae),y.value.dispatchEvent(ae),Ke(F),F.qKeyEvent=!0}o("keyup",F)}S()}}function S(F){const ae=w.value;F!==!0&&(or===y.value||ar===y.value)&&ae!==null&&ae!==document.activeElement&&(ae.setAttribute("tabindex",-1),ae.focus()),or===y.value&&(R!==null&&(R.removeEventListener("touchcancel",V,At),R.removeEventListener("touchend",V,At)),or=R=null),ar===y.value&&(document.removeEventListener("mouseup",V,At),ar=null),lr===y.value&&(document.removeEventListener("keyup",V,!0),y.value!==null&&y.value.removeEventListener("blur",V,At),lr=null),y.value!==null&&y.value.classList.remove("q-btn--active")}function Z(F){Ke(F),F.qSkipRipple=!0}return i.onBeforeUnmount(()=>{S(!0)}),Object.assign(u,{click:F=>{k.value===!0&&I(F)}}),()=>{let F=[];t.icon!==void 0&&F.push(i.h(vt,{name:t.icon,left:t.stack!==!0&&G.value===!0,role:"img"})),G.value===!0&&F.push(i.h("span",{class:"block"},[t.label])),F=qn(l.default,F),t.iconRight!==void 0&&t.round===!1&&F.push(i.h(vt,{name:t.iconRight,right:t.stack!==!0&&G.value===!0,role:"img"}));const ae=[i.h("span",{class:"q-focus-helper",ref:w})];return t.loading===!0&&t.percentage!==void 0&&ae.push(i.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(t.darkPercentage===!0?" q-btn__progress--dark":"")},[i.h("span",{class:"q-btn__progress-indicator fit block",style:Q.value})])),ae.push(i.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+m.value},F)),t.loading!==null&&ae.push(i.h(i.Transition,{name:"q-transition--fade"},()=>t.loading===!0?[i.h("span",{key:"loading",class:"absolute-full flex flex-center"},l.loading!==void 0?l.loading():[i.h(Vo)])]:null)),i.withDirectives(i.h(A.value,Y.value,ae),[[Cu,U.value,void 0,D.value]])}}}),qu=t=>(i.pushScopeId("data-v-3bcb795a"),t=t(),i.popScopeId(),t),vh={class:"buttons-container"},_h={class:"lt-md"},bh={class:"row justify-between q-my-md q-px-md"},yh=qu(()=>i.createElementVNode("span",{class:"text-black"},"Atrás",-1)),wh={key:1},Sh=qu(()=>i.createElementVNode("span",{class:"text-black"},"Siguiente",-1)),xh=gn(i.defineComponent({__name:"NavigationButtons",props:{currentStep:{},stepsCount:{},nextDisabled:{type:Boolean}},emits:["prev","next"],setup(t){const l=t,o=i.computed(()=>l.currentStep+1);return(u,s)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",vh,[o.value>1?(i.openBlock(),i.createBlock(ur,{key:0,style:{position:"absolute",left:"25px",cursor:"pointer"},size:"26px",color:"white","text-color":"white",class:"gt-sm",onClick:s[0]||(s[0]=f=>u.$emit("prev")),flat:""},{default:i.withCtx(()=>[i.createVNode(vt,{name:"arrow_back_ios",color:"info"})]),_:1})):i.createCommentVNode("",!0),o.value!==u.stepsCount?(i.openBlock(),i.createBlock(ur,{key:1,style:{position:"absolute",right:"25px",cursor:"pointer"},size:"26px",color:"white","text-color":"white",class:"gt-sm",onClick:s[1]||(s[1]=f=>u.$emit("next")),disable:u.nextDisabled,flat:""},{default:i.withCtx(()=>[i.createVNode(vt,{name:"arrow_forward_ios",color:"info"})]),_:1},8,["disable"])):i.createCommentVNode("",!0)]),i.createElementVNode("div",_h,[i.createElementVNode("div",bh,[o.value>1&&o.value<u.stepsCount?(i.openBlock(),i.createBlock(ur,{key:0,color:"info",class:"q-px-md-xl q-py-sm q-mr-sm win-btn win-btn-primary",onClick:s[2]||(s[2]=f=>u.$emit("prev")),flat:"","no-caps":""},{default:i.withCtx(()=>[yh]),_:1})):(i.openBlock(),i.createElementBlock("div",wh)),o.value<u.stepsCount?(i.openBlock(),i.createBlock(ur,{key:2,color:"info",class:"q-px-xl q-py-sm q-ml-sm win-btn win-btn-primary",onClick:s[3]||(s[3]=f=>u.$emit("next")),disable:u.nextDisabled,flat:"","no-caps":""},{default:i.withCtx(()=>[Sh]),_:1},8,["disable"])):i.createCommentVNode("",!0)])])],64))}}),[["__scopeId","data-v-3bcb795a"]]),Ch=Ye({name:"QField",inheritAttrs:!1,props:{..._i,tag:{type:String,default:"label"}},emits:zo,setup(){return Wo(Uo({tagProp:!0}))}}),kh={xs:8,sm:10,md:14,lg:20,xl:24},Eh=Ye({name:"QChip",props:{...rr,...fi,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,removeAriaLabel:String,tabindex:[String,Number],disable:Boolean,ripple:{type:[Boolean,Object],default:!0}},emits:["update:modelValue","update:selected","remove","click"],setup(t,{slots:l,emit:o}){const{proxy:{$q:u}}=i.getCurrentInstance(),s=ir(t,u),f=di(t,kh),m=i.computed(()=>t.selected===!0||t.icon!==void 0),g=i.computed(()=>t.selected===!0?t.iconSelected||u.iconSet.chip.selected:t.icon),C=i.computed(()=>t.iconRemove||u.iconSet.chip.remove),A=i.computed(()=>t.disable===!1&&(t.clickable===!0||t.selected!==null)),v=i.computed(()=>{const O=t.outline===!0&&t.color||t.textColor;return"q-chip row inline no-wrap items-center"+(t.outline===!1&&t.color!==void 0?` bg-${t.color}`:"")+(O?` text-${O} q-chip--colored`:"")+(t.disable===!0?" disabled":"")+(t.dense===!0?" q-chip--dense":"")+(t.outline===!0?" q-chip--outline":"")+(t.selected===!0?" q-chip--selected":"")+(A.value===!0?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(t.square===!0?" q-chip--square":"")+(s.value===!0?" q-chip--dark q-dark":"")}),k=i.computed(()=>{const O=t.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:t.tabindex||0},G={...O,role:"button","aria-hidden":"false","aria-label":t.removeAriaLabel||u.lang.label.remove};return{chip:O,remove:G}});function y(O){O.keyCode===13&&w(O)}function w(O){t.disable||(o("update:selected",!t.selected),o("click",O))}function R(O){(O.keyCode===void 0||O.keyCode===13)&&(Ke(O),t.disable===!1&&(o("update:modelValue",!1),o("remove")))}function W(){const O=[];A.value===!0&&O.push(i.h("div",{class:"q-focus-helper"})),m.value===!0&&O.push(i.h(vt,{class:"q-chip__icon q-chip__icon--left",name:g.value}));const G=t.label!==void 0?[i.h("div",{class:"ellipsis"},[t.label])]:void 0;return O.push(i.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},ed(l.default,G))),t.iconRight&&O.push(i.h(vt,{class:"q-chip__icon q-chip__icon--right",name:t.iconRight})),t.removable===!0&&O.push(i.h(vt,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:C.value,...k.value.remove,onClick:R,onKeyup:R})),O}return()=>{if(t.modelValue===!1)return;const O={class:v.value,style:f.value};return A.value===!0&&Object.assign(O,k.value.chip,{onClick:w,onKeyup:y}),Ha("div",O,W(),"ripple",t.ripple!==!1&&t.disable!==!0,()=>[[Cu,t.ripple]])}}}),Ah=Ye({name:"QItem",props:{...rr,...sh,tag:{type:String,default:"div"},active:{type:Boolean,default:null},clickable:Boolean,dense:Boolean,insetLevel:Number,tabindex:[String,Number],focused:Boolean,manualFocus:Boolean},emits:["click","keyup"],setup(t,{slots:l,emit:o}){const{proxy:{$q:u}}=i.getCurrentInstance(),s=ir(t,u),{hasLink:f,linkAttrs:m,linkClass:g,linkTag:C,navigateOnClick:A}=Ru(),v=i.ref(null),k=i.ref(null),y=i.computed(()=>t.clickable===!0||f.value===!0||t.tag==="label"),w=i.computed(()=>t.disable!==!0&&y.value===!0),R=i.computed(()=>"q-item q-item-type row no-wrap"+(t.dense===!0?" q-item--dense":"")+(s.value===!0?" q-item--dark":"")+(f.value===!0&&t.active===null?g.value:t.active===!0?` q-item--active${t.activeClass!==void 0?` ${t.activeClass}`:""}`:"")+(t.disable===!0?" disabled":"")+(w.value===!0?" q-item--clickable q-link cursor-pointer "+(t.manualFocus===!0?"q-manual-focusable":"q-focusable q-hoverable")+(t.focused===!0?" q-manual-focusable--focused":""):"")),W=i.computed(()=>t.insetLevel===void 0?null:{["padding"+(u.lang.rtl===!0?"Right":"Left")]:16+t.insetLevel*56+"px"});function O(D){w.value===!0&&(k.value!==null&&(D.qKeyEvent!==!0&&document.activeElement===v.value?k.value.focus():document.activeElement===k.value&&v.value.focus()),A(D))}function G(D){if(w.value===!0&&Vn(D,[13,32])===!0){Ke(D),D.qKeyEvent=!0;const Q=new MouseEvent("click",D);Q.qKeyEvent=!0,v.value.dispatchEvent(Q)}o("keyup",D)}function U(){const D=Jf(l.default,[]);return w.value===!0&&D.unshift(i.h("div",{class:"q-focus-helper",tabindex:-1,ref:k})),D}return()=>{const D={ref:v,class:R.value,style:W.value,role:"listitem",onClick:O,onKeyup:G};return w.value===!0?(D.tabindex=t.tabindex||"0",Object.assign(D,m.value)):y.value===!0&&(D["aria-disabled"]="true"),i.h(C.value,D,U())}}}),Th=Ye({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(t,{slots:l}){const o=i.computed(()=>`q-item__section column q-item__section--${t.avatar===!0||t.side===!0||t.thumbnail===!0?"side":"main"}`+(t.top===!0?" q-item__section--top justify-start":" justify-center")+(t.avatar===!0?" q-item__section--avatar":"")+(t.thumbnail===!0?" q-item__section--thumbnail":"")+(t.noWrap===!0?" q-item__section--nowrap":""));return()=>i.h("div",{class:o.value},pt(l.default))}}),Bh=Ye({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(t,{slots:l}){const o=i.computed(()=>parseInt(t.lines,10)),u=i.computed(()=>"q-item__label"+(t.overline===!0?" q-item__label--overline text-overline":"")+(t.caption===!0?" q-item__label--caption text-caption":"")+(t.header===!0?" q-item__label--header":"")+(o.value===1?" ellipsis":"")),s=i.computed(()=>t.lines!==void 0&&o.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":o.value}:null);return()=>i.h("div",{style:s.value,class:u.value},pt(l.default))}});function Rh(){if(window.getSelection!==void 0){const t=window.getSelection();t.empty!==void 0?t.empty():t.removeAllRanges!==void 0&&(t.removeAllRanges(),qo.is.mobile!==!0&&t.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}const Oh={...{target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},contextMenu:Boolean};function qh({showing:t,avoidEmit:l,configureAnchorEl:o}){const{props:u,proxy:s,emit:f}=i.getCurrentInstance(),m=i.ref(null);let g=null;function C(w){return m.value===null?!1:w===void 0||w.touches===void 0||w.touches.length<=1}const A={};o===void 0&&(Object.assign(A,{hide(w){s.hide(w)},toggle(w){s.toggle(w),w.qAnchorHandled=!0},toggleKey(w){Vn(w,13)===!0&&A.toggle(w)},contextClick(w){s.hide(w),It(w),i.nextTick(()=>{s.show(w),w.qAnchorHandled=!0})},prevent:It,mobileTouch(w){if(A.mobileCleanup(w),C(w)!==!0)return;s.hide(w),m.value.classList.add("non-selectable");const R=w.target;No(A,"anchor",[[R,"touchmove","mobileCleanup","passive"],[R,"touchend","mobileCleanup","passive"],[R,"touchcancel","mobileCleanup","passive"],[m.value,"contextmenu","prevent","notPassive"]]),g=setTimeout(()=>{g=null,s.show(w),w.qAnchorHandled=!0},300)},mobileCleanup(w){m.value.classList.remove("non-selectable"),g!==null&&(clearTimeout(g),g=null),t.value===!0&&w!==void 0&&Rh()}}),o=function(w=u.contextMenu){if(u.noParentEvent===!0||m.value===null)return;let R;w===!0?s.$q.platform.is.mobile===!0?R=[[m.value,"touchstart","mobileTouch","passive"]]:R=[[m.value,"mousedown","hide","passive"],[m.value,"contextmenu","contextClick","notPassive"]]:R=[[m.value,"click","toggle","passive"],[m.value,"keyup","toggleKey","passive"]],No(A,"anchor",R)});function v(){tu(A,"anchor")}function k(w){for(m.value=w;m.value.classList.contains("q-anchor--skip");)m.value=m.value.parentNode;o()}function y(){if(u.target===!1||u.target===""||s.$el.parentNode===null)m.value=null;else if(u.target===!0)k(s.$el.parentNode);else{let w=u.target;if(typeof u.target=="string")try{w=document.querySelector(u.target)}catch{w=void 0}w!=null?(m.value=w.$el||w,o()):(m.value=null,console.error(`Anchor: target "${u.target}" not found`))}}return i.watch(()=>u.contextMenu,w=>{m.value!==null&&(v(),o(w))}),i.watch(()=>u.target,()=>{m.value!==null&&v(),y()}),i.watch(()=>u.noParentEvent,w=>{m.value!==null&&(w===!0?v():o())}),i.onMounted(()=>{y(),l!==!0&&u.modelValue===!0&&m.value===null&&f("update:modelValue",!1)}),i.onBeforeUnmount(()=>{g!==null&&clearTimeout(g),v()}),{anchorEl:m,canShow:C,anchorEvents:A}}function Mh(t,l){const o=i.ref(null);let u;function s(g,C){const A=`${C!==void 0?"add":"remove"}EventListener`,v=C!==void 0?C:u;g!==window&&g[A]("scroll",v,st.passive),window[A]("scroll",v,st.passive),u=C}function f(){o.value!==null&&(s(o.value),o.value=null)}const m=i.watch(()=>t.noParentEvent,()=>{o.value!==null&&(f(),l())});return i.onBeforeUnmount(m),{localScrollTarget:o,unconfigureScrollTarget:f,changeScrollEvent:s}}const Mu={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},Vu=["beforeShow","show","beforeHide","hide"];function Lu({showing:t,canShow:l,hideOnRouteChange:o,handleShow:u,handleHide:s,processOnMount:f}){const m=i.getCurrentInstance(),{props:g,emit:C,proxy:A}=m;let v;function k(U){t.value===!0?R(U):y(U)}function y(U){if(g.disable===!0||U!==void 0&&U.qAnchorHandled===!0||l!==void 0&&l(U)!==!0)return;const D=g["onUpdate:modelValue"]!==void 0;D===!0&&(C("update:modelValue",!0),v=U,i.nextTick(()=>{v===U&&(v=void 0)})),(g.modelValue===null||D===!1)&&w(U)}function w(U){t.value!==!0&&(t.value=!0,C("beforeShow",U),u!==void 0?u(U):C("show",U))}function R(U){if(g.disable===!0)return;const D=g["onUpdate:modelValue"]!==void 0;D===!0&&(C("update:modelValue",!1),v=U,i.nextTick(()=>{v===U&&(v=void 0)})),(g.modelValue===null||D===!1)&&W(U)}function W(U){t.value!==!1&&(t.value=!1,C("beforeHide",U),s!==void 0?s(U):C("hide",U))}function O(U){g.disable===!0&&U===!0?g["onUpdate:modelValue"]!==void 0&&C("update:modelValue",!1):U===!0!==t.value&&(U===!0?w:W)(v)}i.watch(()=>g.modelValue,O),o!==void 0&&Ka(m)===!0&&i.watch(()=>A.$route.fullPath,()=>{o.value===!0&&t.value===!0&&R()}),f===!0&&i.onMounted(()=>{O(g.modelValue)});const G={show:y,hide:R,toggle:k};return Object.assign(A,G),G}const Iu={};let Vh=1,Lh=document.body;function Ih(t,l){const o=document.createElement("div");if(o.id=l!==void 0?`q-portal--${l}--${Vh++}`:t,Iu.globalNodes!==void 0){const u=Iu.globalNodes.class;u!==void 0&&(o.className=u)}return Lh.appendChild(o),o}function Ph(t){t.remove()}const Lr=[];function Nh(t,l){do{if(t.$options.name==="QMenu"){if(t.hide(l),t.$props.separateClosePopup===!0)return Lo(t)}else if(t.__qPortal===!0){const o=Lo(t);return o!==void 0&&o.$options.name==="QPopupProxy"?(t.hide(l),o):t}t=Lo(t)}while(t!=null)}const $h=Ye({name:"QPortal",setup(t,{slots:l}){return()=>l.default()}});function Fh(t){for(t=t.parent;t!=null;){if(t.type.name==="QGlobalDialog")return!0;if(t.type.name==="QDialog"||t.type.name==="QMenu")return!1;t=t.parent}return!1}function Pu(t,l,o,u){const s=i.ref(!1),f=i.ref(!1);let m=null;const g={},C=u==="dialog"&&Fh(t);function A(k){if(k===!0){gu(g),f.value=!0;return}f.value=!1,s.value===!1&&(C===!1&&m===null&&(m=Ih(!1,u)),s.value=!0,Lr.push(t.proxy),$d(g))}function v(k){if(f.value=!1,k!==!0)return;gu(g),s.value=!1;const y=Lr.indexOf(t.proxy);y!==-1&&Lr.splice(y,1),m!==null&&(Ph(m),m=null)}return i.onUnmounted(()=>{v(!0)}),t.proxy.__qPortal=!0,ci(t.proxy,"contentEl",()=>l.value),{showPortal:A,hidePortal:v,portalIsActive:s,portalIsAccessible:f,renderPortal:()=>C===!0?o():s.value===!0?[i.h(i.Teleport,{to:m},i.h($h,o))]:void 0}}const Nu={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function $u(t,l=()=>{},o=()=>{}){return{transitionProps:i.computed(()=>{const u=`q-transition--${t.transitionShow||l()}`,s=`q-transition--${t.transitionHide||o()}`;return{appear:!0,enterFromClass:`${u}-enter-from`,enterActiveClass:`${u}-enter-active`,enterToClass:`${u}-enter-to`,leaveFromClass:`${s}-leave-from`,leaveActiveClass:`${s}-leave-active`,leaveToClass:`${s}-leave-to`}}),transitionStyle:i.computed(()=>`--q-transition-duration: ${t.transitionDuration}ms`)}}function Fu(){let t;const l=i.getCurrentInstance();function o(){t=void 0}return i.onDeactivated(o),i.onBeforeUnmount(o),{removeTick:o,registerTick(u){t=u,i.nextTick(()=>{t===u&&(qr(l)===!1&&t(),t=void 0)})}}}const Dh=[Element,String],zh=[null,document,document.body,document.scrollingElement,document.documentElement];function Uh(t,l){let o=th(l);if(o===void 0){if(t==null)return window;o=t.closest(".scroll,.scroll-y,.overflow-auto")}return zh.includes(o)?window:o}function Wh(t){return t===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:t.scrollTop}function Hh(t){return t===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:t.scrollLeft}let wi;function Kh(){if(wi!==void 0)return wi;const t=document.createElement("p"),l=document.createElement("div");Go(t,{width:"100%",height:"200px"}),Go(l,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),l.appendChild(t),document.body.appendChild(l);const o=t.offsetWidth;l.style.overflow="scroll";let u=t.offsetWidth;return o===u&&(u=l.clientWidth),l.remove(),wi=o-u,wi}function Gh(t,l=!0){return!t||t.nodeType!==Node.ELEMENT_NODE?!1:l?t.scrollHeight>t.clientHeight&&(t.classList.contains("scroll")||t.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(t)["overflow-y"])):t.scrollWidth>t.clientWidth&&(t.classList.contains("scroll")||t.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(t)["overflow-x"]))}const Ln=[];let sr;function jh(t){sr=t.keyCode===27}function Qh(){sr===!0&&(sr=!1)}function Yh(t){sr===!0&&(sr=!1,Vn(t,27)===!0&&Ln[Ln.length-1](t))}function Du(t){window[t]("keydown",jh),window[t]("blur",Qh),window[t]("keyup",Yh),sr=!1}function zu(t){gt.is.desktop===!0&&(Ln.push(t),Ln.length===1&&Du("addEventListener"))}function Si(t){const l=Ln.indexOf(t);l!==-1&&(Ln.splice(l,1),Ln.length===0&&Du("removeEventListener"))}const In=[];function Uu(t){In[In.length-1](t)}function Wu(t){gt.is.desktop===!0&&(In.push(t),In.length===1&&document.body.addEventListener("focusin",Uu))}function jo(t){const l=In.indexOf(t);l!==-1&&(In.splice(l,1),In.length===0&&document.body.removeEventListener("focusin",Uu))}const{notPassiveCapture:xi}=st,Pn=[];function Ci(t){const l=t.target;if(l===void 0||l.nodeType===8||l.classList.contains("no-pointer-events")===!0)return;let o=Lr.length-1;for(;o>=0;){const u=Lr[o].$;if(u.type.name==="QTooltip"){o--;continue}if(u.type.name!=="QDialog")break;if(u.props.seamless!==!0)return;o--}for(let u=Pn.length-1;u>=0;u--){const s=Pn[u];if((s.anchorEl.value===null||s.anchorEl.value.contains(l)===!1)&&(l===document.body||s.innerRef.value!==null&&s.innerRef.value.contains(l)===!1))t.qClickOutside=!0,s.onClickOutside(t);else return}}function Zh(t){Pn.push(t),Pn.length===1&&(document.addEventListener("mousedown",Ci,xi),document.addEventListener("touchstart",Ci,xi))}function Hu(t){const l=Pn.findIndex(o=>o===t);l!==-1&&(Pn.splice(l,1),Pn.length===0&&(document.removeEventListener("mousedown",Ci,xi),document.removeEventListener("touchstart",Ci,xi)))}let Ku,Gu;function ju(t){const l=t.split(" ");return l.length!==2?!1:["top","center","bottom"].includes(l[0])!==!0?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):["left","middle","right","start","end"].includes(l[1])!==!0?(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1):!0}function Xh(t){return t?!(t.length!==2||typeof t[0]!="number"||typeof t[1]!="number"):!0}const Qo={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(t=>{Qo[`${t}#ltr`]=t,Qo[`${t}#rtl`]=t});function Qu(t,l){const o=t.split(" ");return{vertical:o[0],horizontal:Qo[`${o[1]}#${l===!0?"rtl":"ltr"}`]}}function Jh(t,l){let{top:o,left:u,right:s,bottom:f,width:m,height:g}=t.getBoundingClientRect();return l!==void 0&&(o-=l[1],u-=l[0],f+=l[1],s+=l[0],m+=l[0],g+=l[1]),{top:o,bottom:f,height:g,left:u,right:s,width:m,middle:u+(s-u)/2,center:o+(f-o)/2}}function em(t,l,o){let{top:u,left:s}=t.getBoundingClientRect();return u+=l.top,s+=l.left,o!==void 0&&(u+=o[1],s+=o[0]),{top:u,bottom:u+1,height:1,left:s,right:s+1,width:1,middle:s,center:u}}function tm(t,l){return{top:0,center:l/2,bottom:l,left:0,middle:t/2,right:t}}function Yu(t,l,o,u){return{top:t[o.vertical]-l[u.vertical],left:t[o.horizontal]-l[u.horizontal]}}function Zu(t,l=0){if(t.targetEl===null||t.anchorEl===null||l>5)return;if(t.targetEl.offsetHeight===0||t.targetEl.offsetWidth===0){setTimeout(()=>{Zu(t,l+1)},10);return}const{targetEl:o,offset:u,anchorEl:s,anchorOrigin:f,selfOrigin:m,absoluteOffset:g,fit:C,cover:A,maxHeight:v,maxWidth:k}=t;if(gt.is.ios===!0&&window.visualViewport!==void 0){const Y=document.body.style,{offsetLeft:I,offsetTop:le}=window.visualViewport;I!==Ku&&(Y.setProperty("--q-pe-left",I+"px"),Ku=I),le!==Gu&&(Y.setProperty("--q-pe-top",le+"px"),Gu=le)}const{scrollLeft:y,scrollTop:w}=o,R=g===void 0?Jh(s,A===!0?[0,0]:u):em(s,g,u);Object.assign(o.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:k||"100vw",maxHeight:v||"100vh",visibility:"visible"});const{offsetWidth:W,offsetHeight:O}=o,{elWidth:G,elHeight:U}=C===!0||A===!0?{elWidth:Math.max(R.width,W),elHeight:A===!0?Math.max(R.height,O):O}:{elWidth:W,elHeight:O};let D={maxWidth:k,maxHeight:v};(C===!0||A===!0)&&(D.minWidth=R.width+"px",A===!0&&(D.minHeight=R.height+"px")),Object.assign(o.style,D);const Q=tm(G,U);let j=Yu(R,Q,f,m);if(g===void 0||u===void 0)Yo(j,R,Q,f,m);else{const{top:Y,left:I}=j;Yo(j,R,Q,f,m);let le=!1;if(j.top!==Y){le=!0;const P=2*u[1];R.center=R.top-=P,R.bottom-=P+2}if(j.left!==I){le=!0;const P=2*u[0];R.middle=R.left-=P,R.right-=P+2}le===!0&&(j=Yu(R,Q,f,m),Yo(j,R,Q,f,m))}D={top:j.top+"px",left:j.left+"px"},j.maxHeight!==void 0&&(D.maxHeight=j.maxHeight+"px",R.height>j.maxHeight&&(D.minHeight=D.maxHeight)),j.maxWidth!==void 0&&(D.maxWidth=j.maxWidth+"px",R.width>j.maxWidth&&(D.minWidth=D.maxWidth)),Object.assign(o.style,D),o.scrollTop!==w&&(o.scrollTop=w),o.scrollLeft!==y&&(o.scrollLeft=y)}function Yo(t,l,o,u,s){const f=o.bottom,m=o.right,g=Kh(),C=window.innerHeight-g,A=document.body.clientWidth;if(t.top<0||t.top+f>C)if(s.vertical==="center")t.top=l[u.vertical]>C/2?Math.max(0,C-f):0,t.maxHeight=Math.min(f,C);else if(l[u.vertical]>C/2){const v=Math.min(C,u.vertical==="center"?l.center:u.vertical===s.vertical?l.bottom:l.top);t.maxHeight=Math.min(f,v),t.top=Math.max(0,v-f)}else t.top=Math.max(0,u.vertical==="center"?l.center:u.vertical===s.vertical?l.top:l.bottom),t.maxHeight=Math.min(f,C-t.top);if(t.left<0||t.left+m>A)if(t.maxWidth=Math.min(m,A),s.horizontal==="middle")t.left=l[u.horizontal]>A/2?Math.max(0,A-m):0;else if(l[u.horizontal]>A/2){const v=Math.min(A,u.horizontal==="middle"?l.middle:u.horizontal===s.horizontal?l.right:l.left);t.maxWidth=Math.min(m,v),t.left=Math.max(0,v-t.maxWidth)}else t.left=Math.max(0,u.horizontal==="middle"?l.middle:u.horizontal===s.horizontal?l.left:l.right),t.maxWidth=Math.min(m,A-t.left)}const nm=Ye({name:"QMenu",inheritAttrs:!1,props:{...Oh,...Mu,...rr,...Nu,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:ju},self:{type:String,validator:ju},offset:{type:Array,validator:Xh},scrollTarget:Dh,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...Vu,"click","escapeKey"],setup(t,{slots:l,emit:o,attrs:u}){let s=null,f,m,g;const C=i.getCurrentInstance(),{proxy:A}=C,{$q:v}=A,k=i.ref(null),y=i.ref(!1),w=i.computed(()=>t.persistent!==!0&&t.noRouteDismiss!==!0),R=ir(t,v),{registerTick:W,removeTick:O}=Fu(),{registerTimeout:G}=hi(),{transitionProps:U,transitionStyle:D}=$u(t),{localScrollTarget:Q,changeScrollEvent:j,unconfigureScrollTarget:Y}=Mh(t,oe),{anchorEl:I,canShow:le}=qh({showing:y}),{hide:P}=Lu({showing:y,canShow:le,handleShow:ge,handleHide:q,hideOnRouteChange:w,processOnMount:!0}),{showPortal:T,hidePortal:V,renderPortal:S}=Pu(C,k,Ee,"menu"),Z={anchorEl:I,innerRef:k,onClickOutside(X){if(t.persistent!==!0&&y.value===!0)return P(X),(X.type==="touchstart"||X.target.classList.contains("q-dialog__backdrop"))&&Ke(X),!0}},F=i.computed(()=>Qu(t.anchor||(t.cover===!0?"center middle":"bottom start"),v.lang.rtl)),ae=i.computed(()=>t.cover===!0?F.value:Qu(t.self||"top start",v.lang.rtl)),se=i.computed(()=>(t.square===!0?" q-menu--square":"")+(R.value===!0?" q-menu--dark q-dark":"")),ce=i.computed(()=>t.autoClose===!0?{onClick:ve}:{}),H=i.computed(()=>y.value===!0&&t.persistent!==!0);i.watch(H,X=>{X===!0?(zu(K),Zh(Z)):(Si(K),Hu(Z))});function ie(){vi(()=>{let X=k.value;X&&X.contains(document.activeElement)!==!0&&(X=X.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||X.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||X.querySelector("[autofocus], [data-autofocus]")||X,X.focus({preventScroll:!0}))})}function ge(X){if(s=t.noRefocus===!1?document.activeElement:null,Wu(_e),T(),oe(),f=void 0,X!==void 0&&(t.touchPosition||t.contextMenu)){const Ne=eu(X);if(Ne.left!==void 0){const{top:ot,left:Nt}=I.value.getBoundingClientRect();f={left:Ne.left-Nt,top:Ne.top-ot}}}m===void 0&&(m=i.watch(()=>v.screen.width+"|"+v.screen.height+"|"+t.self+"|"+t.anchor+"|"+v.lang.rtl,ne)),t.noFocus!==!0&&document.activeElement.blur(),W(()=>{ne(),t.noFocus!==!0&&ie()}),G(()=>{v.platform.is.ios===!0&&(g=t.autoClose,k.value.click()),ne(),T(!0),o("show",X)},t.transitionDuration)}function q(X){O(),V(),B(!0),s!==null&&(X===void 0||X.qClickOutside!==!0)&&(((X&&X.type.indexOf("key")===0?s.closest('[tabindex]:not([tabindex^="-"])'):void 0)||s).focus(),s=null),G(()=>{V(!0),o("hide",X)},t.transitionDuration)}function B(X){f=void 0,m!==void 0&&(m(),m=void 0),(X===!0||y.value===!0)&&(jo(_e),Y(),Hu(Z),Si(K)),X!==!0&&(s=null)}function oe(){(I.value!==null||t.scrollTarget!==void 0)&&(Q.value=Uh(I.value,t.scrollTarget),j(Q.value,ne))}function ve(X){g!==!0?(Nh(A,X),o("click",X)):g=!1}function _e(X){H.value===!0&&t.noFocus!==!0&&wu(k.value,X.target)!==!0&&ie()}function K(X){o("escapeKey"),P(X)}function ne(){Zu({targetEl:k.value,offset:t.offset,anchorEl:I.value,anchorOrigin:F.value,selfOrigin:ae.value,absoluteOffset:f,fit:t.fit,cover:t.cover,maxHeight:t.maxHeight,maxWidth:t.maxWidth})}function Ee(){return i.h(i.Transition,U.value,()=>y.value===!0?i.h("div",{role:"menu",...u,ref:k,tabindex:-1,class:["q-menu q-position-engine scroll"+se.value,u.class],style:[u.style,D.value],...ce.value},pt(l.default)):null)}return i.onBeforeUnmount(B),Object.assign(A,{focus:ie,updatePosition:ne}),S}});function rm(t,l,o){function u(){}return i.onBeforeUnmount(()=>{t.value===!0&&void 0}),{removeFromHistory:u,addToHistory(){}}}let Ir=0,Zo,Xo,Pr,Jo=!1,Xu,Ju,es,Nn=null;function im(t){om(t)&&Ke(t)}function om(t){if(t.target===document.body||t.target.classList.contains("q-layout__backdrop"))return!0;const l=kd(t),o=t.shiftKey&&!t.deltaX,u=!o&&Math.abs(t.deltaX)<=Math.abs(t.deltaY),s=o||u?t.deltaY:t.deltaX;for(let f=0;f<l.length;f++){const m=l[f];if(Gh(m,u))return u?s<0&&m.scrollTop===0?!0:s>0&&m.scrollTop+m.clientHeight===m.scrollHeight:s<0&&m.scrollLeft===0?!0:s>0&&m.scrollLeft+m.clientWidth===m.scrollWidth}return!0}function ts(t){t.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function ki(t){Jo!==!0&&(Jo=!0,requestAnimationFrame(()=>{Jo=!1;const{height:l}=t.target,{clientHeight:o,scrollTop:u}=document.scrollingElement;(Pr===void 0||l!==window.innerHeight)&&(Pr=o-l,document.scrollingElement.scrollTop=u),u>Pr&&(document.scrollingElement.scrollTop-=Math.ceil((u-Pr)/8))}))}function ns(t){const l=document.body,o=window.visualViewport!==void 0;if(t==="add"){const{overflowY:u,overflowX:s}=window.getComputedStyle(l);Zo=Hh(window),Xo=Wh(window),Xu=l.style.left,Ju=l.style.top,es=window.location.href,l.style.left=`-${Zo}px`,l.style.top=`-${Xo}px`,s!=="hidden"&&(s==="scroll"||l.scrollWidth>window.innerWidth)&&l.classList.add("q-body--force-scrollbar-x"),u!=="hidden"&&(u==="scroll"||l.scrollHeight>window.innerHeight)&&l.classList.add("q-body--force-scrollbar-y"),l.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,gt.is.ios===!0&&(o===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",ki,st.passiveCapture),window.visualViewport.addEventListener("scroll",ki,st.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",ts,st.passiveCapture))}gt.is.desktop===!0&&gt.is.mac===!0&&window[`${t}EventListener`]("wheel",im,st.notPassive),t==="remove"&&(gt.is.ios===!0&&(o===!0?(window.visualViewport.removeEventListener("resize",ki,st.passiveCapture),window.visualViewport.removeEventListener("scroll",ki,st.passiveCapture)):window.removeEventListener("scroll",ts,st.passiveCapture)),l.classList.remove("q-body--prevent-scroll"),l.classList.remove("q-body--force-scrollbar-x"),l.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,l.style.left=Xu,l.style.top=Ju,window.location.href===es&&window.scrollTo(Zo,Xo),Pr=void 0)}function lm(t){let l="add";if(t===!0){if(Ir++,Nn!==null){clearTimeout(Nn),Nn=null;return}if(Ir>1)return}else{if(Ir===0||(Ir--,Ir>0))return;if(l="remove",gt.is.ios===!0&&gt.is.nativeMobile===!0){Nn!==null&&clearTimeout(Nn),Nn=setTimeout(()=>{ns(l),Nn=null},100);return}}ns(l)}function am(){let t;return{preventBodyScroll(l){l!==t&&(t!==void 0||l===!0)&&(t=l,lm(l))}}}let Ei=0;const um={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"},rs={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},sm=Ye({name:"QDialog",inheritAttrs:!1,props:{...Mu,...Nu,transitionShow:String,transitionHide:String,persistent:Boolean,autoClose:Boolean,allowFocusOutside:Boolean,noEscDismiss:Boolean,noBackdropDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,noShake:Boolean,seamless:Boolean,maximized:Boolean,fullWidth:Boolean,fullHeight:Boolean,square:Boolean,backdropFilter:String,position:{type:String,default:"standard",validator:t=>["standard","top","bottom","left","right"].includes(t)}},emits:[...Vu,"shake","click","escapeKey"],setup(t,{slots:l,emit:o,attrs:u}){const s=i.getCurrentInstance(),f=i.ref(null),m=i.ref(!1),g=i.ref(!1);let C=null,A=null,v,k;const y=i.computed(()=>t.persistent!==!0&&t.noRouteDismiss!==!0&&t.seamless!==!0),{preventBodyScroll:w}=am(),{registerTimeout:R}=hi(),{registerTick:W,removeTick:O}=Fu(),{transitionProps:G,transitionStyle:U}=$u(t,()=>rs[t.position][0],()=>rs[t.position][1]),D=i.computed(()=>U.value+(t.backdropFilter!==void 0?`;backdrop-filter:${t.backdropFilter};-webkit-backdrop-filter:${t.backdropFilter}`:"")),{showPortal:Q,hidePortal:j,portalIsAccessible:Y,renderPortal:I}=Pu(s,f,_e,"dialog"),{hide:le}=Lu({showing:m,hideOnRouteChange:y,handleShow:ae,handleHide:se,processOnMount:!0}),{addToHistory:P,removeFromHistory:T}=rm(m),V=i.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${t.maximized===!0?"maximized":"minimized"} q-dialog__inner--${t.position} ${um[t.position]}`+(g.value===!0?" q-dialog__inner--animating":"")+(t.fullWidth===!0?" q-dialog__inner--fullwidth":"")+(t.fullHeight===!0?" q-dialog__inner--fullheight":"")+(t.square===!0?" q-dialog__inner--square":"")),S=i.computed(()=>m.value===!0&&t.seamless!==!0),Z=i.computed(()=>t.autoClose===!0?{onClick:B}:{}),F=i.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${S.value===!0?"modal":"seamless"}`,u.class]);i.watch(()=>t.maximized,K=>{m.value===!0&&q(K)}),i.watch(S,K=>{w(K),K===!0?(Wu(ve),zu(ie)):(jo(ve),Si(ie))});function ae(K){P(),A=t.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,q(t.maximized),Q(),g.value=!0,t.noFocus!==!0?(document.activeElement!==null&&document.activeElement.blur(),W(ce)):O(),R(()=>{if(s.proxy.$q.platform.is.ios===!0){if(t.seamless!==!0&&document.activeElement){const{top:ne,bottom:Ee}=document.activeElement.getBoundingClientRect(),{innerHeight:X}=window,Ne=window.visualViewport!==void 0?window.visualViewport.height:X;ne>0&&Ee>Ne/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-Ne,Ee>=X?1/0:Math.ceil(document.scrollingElement.scrollTop+Ee-Ne/2))),document.activeElement.scrollIntoView()}k=!0,f.value.click(),k=!1}Q(!0),g.value=!1,o("show",K)},t.transitionDuration)}function se(K){O(),T(),ge(!0),g.value=!0,j(),A!==null&&(((K&&K.type.indexOf("key")===0?A.closest('[tabindex]:not([tabindex^="-"])'):void 0)||A).focus(),A=null),R(()=>{j(!0),g.value=!1,o("hide",K)},t.transitionDuration)}function ce(K){vi(()=>{let ne=f.value;if(ne!==null){if(K!==void 0){const Ee=ne.querySelector(K);if(Ee!==null){Ee.focus({preventScroll:!0});return}}ne.contains(document.activeElement)!==!0&&(ne=ne.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||ne.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||ne.querySelector("[autofocus], [data-autofocus]")||ne,ne.focus({preventScroll:!0}))}})}function H(K){K&&typeof K.focus=="function"?K.focus({preventScroll:!0}):ce(),o("shake");const ne=f.value;ne!==null&&(ne.classList.remove("q-animate--scale"),ne.classList.add("q-animate--scale"),C!==null&&clearTimeout(C),C=setTimeout(()=>{C=null,f.value!==null&&(ne.classList.remove("q-animate--scale"),ce())},170))}function ie(){t.seamless!==!0&&(t.persistent===!0||t.noEscDismiss===!0?t.maximized!==!0&&t.noShake!==!0&&H():(o("escapeKey"),le()))}function ge(K){C!==null&&(clearTimeout(C),C=null),(K===!0||m.value===!0)&&(q(!1),t.seamless!==!0&&(w(!1),jo(ve),Si(ie))),K!==!0&&(A=null)}function q(K){K===!0?v!==!0&&(Ei<1&&document.body.classList.add("q-body--dialog"),Ei++,v=!0):v===!0&&(Ei<2&&document.body.classList.remove("q-body--dialog"),Ei--,v=!1)}function B(K){k!==!0&&(le(K),o("click",K))}function oe(K){t.persistent!==!0&&t.noBackdropDismiss!==!0?le(K):t.noShake!==!0&&H()}function ve(K){t.allowFocusOutside!==!0&&Y.value===!0&&wu(f.value,K.target)!==!0&&ce('[tabindex]:not([tabindex="-1"])')}Object.assign(s.proxy,{focus:ce,shake:H,__updateRefocusTarget(K){A=K||null}}),i.onBeforeUnmount(ge);function _e(){return i.h("div",{role:"dialog","aria-modal":S.value===!0?"true":"false",...u,class:F.value},[i.h(i.Transition,{name:"q-transition--fade",appear:!0},()=>S.value===!0?i.h("div",{class:"q-dialog__backdrop fixed-full",style:D.value,"aria-hidden":"true",tabindex:-1,onClick:oe}):null),i.h(i.Transition,G.value,()=>m.value===!0?i.h("div",{ref:f,class:V.value,style:U.value,tabindex:-1,...Z.value},pt(l.default)):null)])}return I}});let Ai=!1;{const t=document.createElement("div");t.setAttribute("dir","rtl"),Object.assign(t.style,{width:"1px",height:"1px",overflow:"auto"});const l=document.createElement("div");Object.assign(l.style,{width:"1000px",height:"1px"}),document.body.appendChild(t),t.appendChild(l),t.scrollLeft=-1e3,Ai=t.scrollLeft>=0,t.remove()}const Pt=1e3,cm=["start","center","end","start-force","center-force","end-force"],is=Array.prototype.filter,fm=window.getComputedStyle(document.body).overflowAnchor===void 0?Cd:function(t,l){t!==null&&(t._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(t._qOverflowAnimationFrame),t._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(t===null)return;t._qOverflowAnimationFrame=void 0;const o=t.children||[];is.call(o,s=>s.dataset&&s.dataset.qVsAnchor!==void 0).forEach(s=>{delete s.dataset.qVsAnchor});const u=o[l];u&&u.dataset&&(u.dataset.qVsAnchor="")}))};function cr(t,l){return t+l}function el(t,l,o,u,s,f,m,g){const C=t===window?document.scrollingElement||document.documentElement:t,A=s===!0?"offsetWidth":"offsetHeight",v={scrollStart:0,scrollViewSize:-m-g,scrollMaxSize:0,offsetStart:-m,offsetEnd:-g};if(s===!0?(t===window?(v.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,v.scrollViewSize+=document.documentElement.clientWidth):(v.scrollStart=C.scrollLeft,v.scrollViewSize+=C.clientWidth),v.scrollMaxSize=C.scrollWidth,f===!0&&(v.scrollStart=(Ai===!0?v.scrollMaxSize-v.scrollViewSize:0)-v.scrollStart)):(t===window?(v.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,v.scrollViewSize+=document.documentElement.clientHeight):(v.scrollStart=C.scrollTop,v.scrollViewSize+=C.clientHeight),v.scrollMaxSize=C.scrollHeight),o!==null)for(let k=o.previousElementSibling;k!==null;k=k.previousElementSibling)k.classList.contains("q-virtual-scroll--skip")===!1&&(v.offsetStart+=k[A]);if(u!==null)for(let k=u.nextElementSibling;k!==null;k=k.nextElementSibling)k.classList.contains("q-virtual-scroll--skip")===!1&&(v.offsetEnd+=k[A]);if(l!==t){const k=C.getBoundingClientRect(),y=l.getBoundingClientRect();s===!0?(v.offsetStart+=y.left-k.left,v.offsetEnd-=y.width):(v.offsetStart+=y.top-k.top,v.offsetEnd-=y.height),t!==window&&(v.offsetStart+=v.scrollStart),v.offsetEnd+=v.scrollMaxSize-v.offsetStart}return v}function os(t,l,o,u){l==="end"&&(l=(t===window?document.body:t)[o===!0?"scrollWidth":"scrollHeight"]),t===window?o===!0?(u===!0&&(l=(Ai===!0?document.body.scrollWidth-document.documentElement.clientWidth:0)-l),window.scrollTo(l,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,l):o===!0?(u===!0&&(l=(Ai===!0?t.scrollWidth-t.offsetWidth:0)-l),t.scrollLeft=l):t.scrollTop=l}function Nr(t,l,o,u){if(o>=u)return 0;const s=l.length,f=Math.floor(o/Pt),m=Math.floor((u-1)/Pt)+1;let g=t.slice(f,m).reduce(cr,0);return o%Pt!==0&&(g-=l.slice(f*Pt,o).reduce(cr,0)),u%Pt!==0&&u!==s&&(g-=l.slice(u,m*Pt).reduce(cr,0)),g}const ls={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...{virtualScrollSliceSize:{type:[Number,String],default:10},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]}};function dm({virtualScrollLength:t,getVirtualScrollTarget:l,getVirtualScrollEl:o,virtualScrollItemSizeComputed:u}){const s=i.getCurrentInstance(),{props:f,emit:m,proxy:g}=s,{$q:C}=g;let A,v,k,y=[],w;const R=i.ref(0),W=i.ref(0),O=i.ref({}),G=i.ref(null),U=i.ref(null),D=i.ref(null),Q=i.ref({from:0,to:0}),j=i.computed(()=>f.tableColspan!==void 0?f.tableColspan:100);u===void 0&&(u=i.computed(()=>f.virtualScrollItemSize));const Y=i.computed(()=>u.value+";"+f.virtualScrollHorizontal),I=i.computed(()=>Y.value+";"+f.virtualScrollSliceRatioBefore+";"+f.virtualScrollSliceRatioAfter);i.watch(I,()=>{se()}),i.watch(Y,le);function le(){ae(v,!0)}function P(q){ae(q===void 0?v:q)}function T(q,B){const oe=l();if(oe==null||oe.nodeType===8)return;const ve=el(oe,o(),G.value,U.value,f.virtualScrollHorizontal,C.lang.rtl,f.virtualScrollStickySizeStart,f.virtualScrollStickySizeEnd);k!==ve.scrollViewSize&&se(ve.scrollViewSize),S(oe,ve,Math.min(t.value-1,Math.max(0,parseInt(q,10)||0)),0,cm.indexOf(B)!==-1?B:v!==-1&&q>v?"end":"start")}function V(){const q=l();if(q==null||q.nodeType===8)return;const B=el(q,o(),G.value,U.value,f.virtualScrollHorizontal,C.lang.rtl,f.virtualScrollStickySizeStart,f.virtualScrollStickySizeEnd),oe=t.value-1,ve=B.scrollMaxSize-B.offsetStart-B.offsetEnd-W.value;if(A===B.scrollStart)return;if(B.scrollMaxSize<=0){S(q,B,0,0);return}k!==B.scrollViewSize&&se(B.scrollViewSize),Z(Q.value.from);const _e=Math.floor(B.scrollMaxSize-Math.max(B.scrollViewSize,B.offsetEnd)-Math.min(w[oe],B.scrollViewSize/2));if(_e>0&&Math.ceil(B.scrollStart)>=_e){S(q,B,oe,B.scrollMaxSize-B.offsetEnd-y.reduce(cr,0));return}let K=0,ne=B.scrollStart-B.offsetStart,Ee=ne;if(ne<=ve&&ne+B.scrollViewSize>=R.value)ne-=R.value,K=Q.value.from,Ee=ne;else for(let X=0;ne>=y[X]&&K<oe;X++)ne-=y[X],K+=Pt;for(;ne>0&&K<oe;)ne-=w[K],ne>-B.scrollViewSize?(K++,Ee=ne):Ee=w[K]+ne;S(q,B,K,Ee)}function S(q,B,oe,ve,_e){const K=typeof _e=="string"&&_e.indexOf("-force")!==-1,ne=K===!0?_e.replace("-force",""):_e,Ee=ne!==void 0?ne:"start";let X=Math.max(0,oe-O.value[Ee]),Ne=X+O.value.total;Ne>t.value&&(Ne=t.value,X=Math.max(0,Ne-O.value.total)),A=B.scrollStart;const ot=X!==Q.value.from||Ne!==Q.value.to;if(ot===!1&&ne===void 0){H(oe);return}const{activeElement:Nt}=document,_t=D.value;ot===!0&&_t!==null&&_t!==Nt&&_t.contains(Nt)===!0&&(_t.addEventListener("focusout",F),setTimeout(()=>{_t!==null&&_t.removeEventListener("focusout",F)})),fm(_t,oe-X);const nt=ne!==void 0?w.slice(X,oe).reduce(cr,0):0;if(ot===!0){const bt=Ne>=Q.value.from&&X<=Q.value.to?Q.value.to:Ne;Q.value={from:X,to:bt},R.value=Nr(y,w,0,X),W.value=Nr(y,w,Ne,t.value),requestAnimationFrame(()=>{Q.value.to!==Ne&&A===B.scrollStart&&(Q.value={from:Q.value.from,to:Ne},W.value=Nr(y,w,Ne,t.value))})}requestAnimationFrame(()=>{if(A!==B.scrollStart)return;ot===!0&&Z(X);const bt=w.slice(X,oe).reduce(cr,0),en=bt+B.offsetStart+R.value,ct=en+w[oe];let pn=en+ve;if(ne!==void 0){const $r=bt-nt,$t=B.scrollStart+$r;pn=K!==!0&&$t<en&&ct<$t+B.scrollViewSize?$t:ne==="end"?ct-B.scrollViewSize:en-(ne==="start"?0:Math.round((B.scrollViewSize-w[oe])/2))}A=pn,os(q,pn,f.virtualScrollHorizontal,C.lang.rtl),H(oe)})}function Z(q){const B=D.value;if(B){const oe=is.call(B.children,X=>X.classList&&X.classList.contains("q-virtual-scroll--skip")===!1),ve=oe.length,_e=f.virtualScrollHorizontal===!0?X=>X.getBoundingClientRect().width:X=>X.offsetHeight;let K=q,ne,Ee;for(let X=0;X<ve;){for(ne=_e(oe[X]),X++;X<ve&&oe[X].classList.contains("q-virtual-scroll--with-prev")===!0;)ne+=_e(oe[X]),X++;Ee=ne-w[K],Ee!==0&&(w[K]+=Ee,y[Math.floor(K/Pt)]+=Ee),K++}}}function F(){D.value!==null&&D.value!==void 0&&D.value.focus()}function ae(q,B){const oe=1*u.value;(B===!0||Array.isArray(w)===!1)&&(w=[]);const ve=w.length;w.length=t.value;for(let K=t.value-1;K>=ve;K--)w[K]=oe;const _e=Math.floor((t.value-1)/Pt);y=[];for(let K=0;K<=_e;K++){let ne=0;const Ee=Math.min((K+1)*Pt,t.value);for(let X=K*Pt;X<Ee;X++)ne+=w[X];y.push(ne)}v=-1,A=void 0,R.value=Nr(y,w,0,Q.value.from),W.value=Nr(y,w,Q.value.to,t.value),q>=0?(Z(Q.value.from),i.nextTick(()=>{T(q)})):ie()}function se(q){if(q===void 0&&typeof window<"u"){const ne=l();ne!=null&&ne.nodeType!==8&&(q=el(ne,o(),G.value,U.value,f.virtualScrollHorizontal,C.lang.rtl,f.virtualScrollStickySizeStart,f.virtualScrollStickySizeEnd).scrollViewSize)}k=q;const B=parseFloat(f.virtualScrollSliceRatioBefore)||0,oe=parseFloat(f.virtualScrollSliceRatioAfter)||0,ve=1+B+oe,_e=q===void 0||q<=0?1:Math.ceil(q/u.value),K=Math.max(1,_e,Math.ceil((f.virtualScrollSliceSize>0?f.virtualScrollSliceSize:10)/ve));O.value={total:Math.ceil(K*ve),start:Math.ceil(K*B),center:Math.ceil(K*(.5+B)),end:Math.ceil(K*(1+B)),view:_e}}function ce(q,B){const oe=f.virtualScrollHorizontal===!0?"width":"height",ve={["--q-virtual-scroll-item-"+oe]:u.value+"px"};return[q==="tbody"?i.h(q,{class:"q-virtual-scroll__padding",key:"before",ref:G},[i.h("tr",[i.h("td",{style:{[oe]:`${R.value}px`,...ve},colspan:j.value})])]):i.h(q,{class:"q-virtual-scroll__padding",key:"before",ref:G,style:{[oe]:`${R.value}px`,...ve}}),i.h(q,{class:"q-virtual-scroll__content",key:"content",ref:D,tabindex:-1},B.flat()),q==="tbody"?i.h(q,{class:"q-virtual-scroll__padding",key:"after",ref:U},[i.h("tr",[i.h("td",{style:{[oe]:`${W.value}px`,...ve},colspan:j.value})])]):i.h(q,{class:"q-virtual-scroll__padding",key:"after",ref:U,style:{[oe]:`${W.value}px`,...ve}})]}function H(q){v!==q&&(f.onVirtualScroll!==void 0&&m("virtualScroll",{index:q,from:Q.value.from,to:Q.value.to-1,direction:q<v?"decrease":"increase",ref:g}),v=q)}se();const ie=hu(V,C.platform.is.ios===!0?120:35);i.onBeforeMount(()=>{se()});let ge=!1;return i.onDeactivated(()=>{ge=!0}),i.onActivated(()=>{if(ge!==!0)return;const q=l();A!==void 0&&q!==void 0&&q!==null&&q.nodeType!==8?os(q,A,f.virtualScrollHorizontal,C.lang.rtl):T(v)}),i.onBeforeUnmount(()=>{ie.cancel()}),Object.assign(g,{scrollTo:T,reset:le,refresh:P}),{virtualScrollSliceRange:Q,virtualScrollSliceSizeComputed:O,setVirtualScrollSize:se,onVirtualScrollEvt:ie,localResetVirtualScroll:ae,padVirtualScroll:ce,scrollTo:T,reset:le,refresh:P}}function as(t,l,o){if(o<=l)return l;const u=o-l+1;let s=l+(t-l)%u;return s<l&&(s=u+s),s===0?0:s}const us=t=>["add","add-unique","toggle"].includes(t),hm=".*+?^${}()|[]\\",mm=Object.keys(_i),ss=Ye({name:"QSelect",inheritAttrs:!1,props:{...ls,...Po,..._i,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],popupNoRouteDismiss:Boolean,useInput:Boolean,useChips:Boolean,newValueMode:{type:String,validator:us},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:{},transitionHide:{},transitionDuration:{},behavior:{type:String,validator:t=>["default","menu","dialog"].includes(t),default:"default"},virtualScrollItemSize:ls.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...zo,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(t,{slots:l,emit:o}){const{proxy:u}=i.getCurrentInstance(),{$q:s}=u,f=i.ref(!1),m=i.ref(!1),g=i.ref(-1),C=i.ref(""),A=i.ref(!1),v=i.ref(!1);let k=null,y=null,w,R,W,O=null,G,U,D,Q;const j=i.ref(null),Y=i.ref(null),I=i.ref(null),le=i.ref(null),P=i.ref(null),T=Ja(t),V=bu(Vi),S=i.computed(()=>Array.isArray(t.options)?t.options.length:0),Z=i.computed(()=>t.virtualScrollItemSize===void 0?t.optionsDense===!0?24:48:t.virtualScrollItemSize),{virtualScrollSliceRange:F,virtualScrollSliceSizeComputed:ae,localResetVirtualScroll:se,padVirtualScroll:ce,onVirtualScrollEvt:H,scrollTo:ie,setVirtualScrollSize:ge}=dm({virtualScrollLength:S,getVirtualScrollTarget:qi,getVirtualScrollEl:Dr,virtualScrollItemSizeComputed:Z}),q=Uo(),B=i.computed(()=>{const _=t.mapOptions===!0&&t.multiple!==!0,te=t.modelValue!==void 0&&(t.modelValue!==null||_===!0)?t.multiple===!0&&Array.isArray(t.modelValue)?t.modelValue:[t.modelValue]:[];if(t.mapOptions===!0&&Array.isArray(t.options)===!0){const J=t.mapOptions===!0&&w!==void 0?w:[],me=te.map(Oe=>Fr(Oe,J));return t.modelValue===null&&_===!0?me.filter(Oe=>Oe!==null):me}return te}),oe=i.computed(()=>{const _={};return mm.forEach(te=>{const J=t[te];J!==void 0&&(_[te]=J)}),_}),ve=i.computed(()=>t.optionsDark===null?q.isDark.value:t.optionsDark),_e=i.computed(()=>Vr(B.value)),K=i.computed(()=>{let _="q-field__input q-placeholder col";return t.hideSelected===!0||B.value.length===0?[_,t.inputClass]:(_+=" q-field__input--padding",t.inputClass===void 0?_:[_,t.inputClass])}),ne=i.computed(()=>(t.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(t.popupContentClass?" "+t.popupContentClass:"")),Ee=i.computed(()=>S.value===0),X=i.computed(()=>B.value.map(_=>Ge.value(_)).join(", ")),Ne=i.computed(()=>t.displayValue!==void 0?t.displayValue:X.value),ot=i.computed(()=>t.optionsHtml===!0?()=>!0:_=>_!=null&&_.html===!0),Nt=i.computed(()=>t.displayValueHtml===!0||t.displayValue===void 0&&(t.optionsHtml===!0||B.value.some(ot.value))),_t=i.computed(()=>q.focused.value===!0?t.tabindex:-1),nt=i.computed(()=>{const _={tabindex:t.tabindex,role:"combobox","aria-label":t.label,"aria-readonly":t.readonly===!0?"true":"false","aria-autocomplete":t.useInput===!0?"list":"none","aria-expanded":f.value===!0?"true":"false","aria-controls":`${q.targetUid.value}_lb`};return g.value>=0&&(_["aria-activedescendant"]=`${q.targetUid.value}_${g.value}`),_}),bt=i.computed(()=>({id:`${q.targetUid.value}_lb`,role:"listbox","aria-multiselectable":t.multiple===!0?"true":"false"})),en=i.computed(()=>B.value.map((_,te)=>({index:te,opt:_,html:ot.value(_),selected:!0,removeAtIndex:vn,toggleOption:Dt,tabindex:_t.value}))),ct=i.computed(()=>{if(S.value===0)return[];const{from:_,to:te}=F.value;return t.options.slice(_,te).map((J,me)=>{const Oe=Ft.value(J)===!0,Be=Dn(J)===!0,He=_+me,Le={clickable:!0,active:Be,activeClass:$t.value,manualFocus:!0,focused:!1,disable:Oe,tabindex:-1,dense:t.optionsDense,dark:ve.value,role:"option","aria-selected":Be===!0?"true":"false",id:`${q.targetUid.value}_${He}`,onClick:()=>{Dt(J)}};return Oe!==!0&&(g.value===He&&(Le.focused=!0),s.platform.is.desktop===!0&&(Le.onMousemove=()=>{f.value===!0&&Gt(He)})),{index:He,opt:J,html:ot.value(J),label:Ge.value(J),selected:Le.active,focused:Le.focused,toggleOption:Dt,setOptionIndex:Gt,itemProps:Le}})}),pn=i.computed(()=>t.dropdownIcon!==void 0?t.dropdownIcon:s.iconSet.arrow.dropdown),$r=i.computed(()=>t.optionsCover===!1&&t.outlined!==!0&&t.standout!==!0&&t.borderless!==!0&&t.rounded!==!0),$t=i.computed(()=>t.optionsSelectedClass!==void 0?t.optionsSelectedClass:t.color!==void 0?`text-${t.color}`:""),Fe=i.computed(()=>Fn(t.optionValue,"value")),Ge=i.computed(()=>Fn(t.optionLabel,"label")),Ft=i.computed(()=>Fn(t.optionDisable,"disable")),fr=i.computed(()=>B.value.map(_=>Fe.value(_))),$n=i.computed(()=>{const _={onInput:Vi,onChange:V,onKeydown:Oi,onKeyup:Bi,onKeypress:Ri,onFocus:hr,onClick(te){R===!0&&Kt(te)}};return _.onCompositionstart=_.onCompositionupdate=_.onCompositionend=V,_});i.watch(B,_=>{w=_,t.useInput===!0&&t.fillInput===!0&&t.multiple!==!0&&q.innerLoading.value!==!0&&(m.value!==!0&&f.value!==!0||_e.value!==!0)&&(W!==!0&&rn(),(m.value===!0||f.value===!0)&&bn(""))},{immediate:!0}),i.watch(()=>t.fillInput,rn),i.watch(f,Wr),i.watch(S,dl);function Ti(_){return t.emitValue===!0?Fe.value(_):_}function tn(_){if(_!==-1&&_<B.value.length)if(t.multiple===!0){const te=t.modelValue.slice();o("remove",{index:_,value:te.splice(_,1)[0]}),o("update:modelValue",te)}else o("update:modelValue",null)}function vn(_){tn(_),q.focus()}function dr(_,te){const J=Ti(_);if(t.multiple!==!0){t.fillInput===!0&&Un(Ge.value(_),!0,!0),o("update:modelValue",J);return}if(B.value.length===0){o("add",{index:0,value:J}),o("update:modelValue",t.multiple===!0?[J]:J);return}if(te===!0&&Dn(_)===!0||t.maxValues!==void 0&&t.modelValue.length>=t.maxValues)return;const me=t.modelValue.slice();o("add",{index:me.length,value:J}),me.push(J),o("update:modelValue",me)}function Dt(_,te){if(q.editable.value!==!0||_===void 0||Ft.value(_)===!0)return;const J=Fe.value(_);if(t.multiple!==!0){te!==!0&&(Un(t.fillInput===!0?Ge.value(_):"",!0,!0),nn()),Y.value!==null&&Y.value.focus(),(B.value.length===0||Jt(Fe.value(B.value[0]),J)!==!0)&&o("update:modelValue",t.emitValue===!0?J:_);return}if((R!==!0||A.value===!0)&&q.focus(),hr(),B.value.length===0){const Be=t.emitValue===!0?J:_;o("add",{index:0,value:Be}),o("update:modelValue",t.multiple===!0?[Be]:Be);return}const me=t.modelValue.slice(),Oe=fr.value.findIndex(Be=>Jt(Be,J));if(Oe!==-1)o("remove",{index:Oe,value:me.splice(Oe,1)[0]});else{if(t.maxValues!==void 0&&me.length>=t.maxValues)return;const Be=t.emitValue===!0?J:_;o("add",{index:me.length,value:Be}),me.push(Be)}o("update:modelValue",me)}function Gt(_){if(s.platform.is.desktop!==!0)return;const te=_!==-1&&_<S.value?_:-1;g.value!==te&&(g.value=te)}function _n(_=1,te){if(f.value===!0){let J=g.value;do J=as(J+_,-1,S.value-1);while(J!==-1&&J!==g.value&&Ft.value(t.options[J])===!0);g.value!==J&&(Gt(J),ie(J),te!==!0&&t.useInput===!0&&t.fillInput===!0&&zn(J>=0?Ge.value(t.options[J]):G,!0))}}function Fr(_,te){const J=me=>Jt(Fe.value(me),_);return t.options.find(J)||te.find(J)||_}function Fn(_,te){const J=_!==void 0?_:te;return typeof J=="function"?J:me=>me!==null&&typeof me=="object"&&J in me?me[J]:me}function Dn(_){const te=Fe.value(_);return fr.value.find(J=>Jt(J,te))!==void 0}function hr(_){t.useInput===!0&&Y.value!==null&&(_===void 0||Y.value===_.target&&_.target.value===X.value)&&Y.value.select()}function mr(_){Vn(_,27)===!0&&f.value===!0&&(Kt(_),nn(),rn()),o("keyup",_)}function Bi(_){const{value:te}=_.target;if(_.keyCode!==void 0){mr(_);return}if(_.target.value="",k!==null&&(clearTimeout(k),k=null),y!==null&&(clearTimeout(y),y=null),rn(),typeof te=="string"&&te.length!==0){const J=te.toLocaleLowerCase(),me=Be=>{const He=t.options.find(Le=>Be.value(Le).toLocaleLowerCase()===J);return He===void 0?!1:(B.value.indexOf(He)===-1?Dt(He):nn(),!0)},Oe=Be=>{me(Fe)!==!0&&(me(Ge)===!0||Be===!0||bn(te,!0,()=>Oe(!0)))};Oe()}else q.clearValue(_)}function Ri(_){o("keypress",_)}function Oi(_){if(o("keydown",_),Ho(_)===!0)return;const te=C.value.length!==0&&(t.newValueMode!==void 0||t.onNewValue!==void 0),J=_.shiftKey!==!0&&t.multiple!==!0&&(g.value!==-1||te===!0);if(_.keyCode===27){It(_);return}if(_.keyCode===9&&J===!1){yn();return}if(_.target===void 0||_.target.id!==q.targetUid.value||q.editable.value!==!0)return;if(_.keyCode===40&&q.innerLoading.value!==!0&&f.value===!1){Ke(_),wn();return}if(_.keyCode===8&&(t.useChips===!0||t.clearable===!0)&&t.hideSelected!==!0&&C.value.length===0){t.multiple===!0&&Array.isArray(t.modelValue)===!0?tn(t.modelValue.length-1):t.multiple!==!0&&t.modelValue!==null&&o("update:modelValue",null);return}(_.keyCode===35||_.keyCode===36)&&(typeof C.value!="string"||C.value.length===0)&&(Ke(_),g.value=-1,_n(_.keyCode===36?1:-1,t.multiple)),(_.keyCode===33||_.keyCode===34)&&ae.value!==void 0&&(Ke(_),g.value=Math.max(-1,Math.min(S.value,g.value+(_.keyCode===33?-1:1)*ae.value.view)),_n(_.keyCode===33?1:-1,t.multiple)),(_.keyCode===38||_.keyCode===40)&&(Ke(_),_n(_.keyCode===38?-1:1,t.multiple));const me=S.value;if((D===void 0||Q<Date.now())&&(D=""),me>0&&t.useInput!==!0&&_.key!==void 0&&_.key.length===1&&_.altKey===!1&&_.ctrlKey===!1&&_.metaKey===!1&&(_.keyCode!==32||D.length!==0)){f.value!==!0&&wn(_);const Oe=_.key.toLocaleLowerCase(),Be=D.length===1&&D[0]===Oe;Q=Date.now()+1500,Be===!1&&(Ke(_),D+=Oe);const He=new RegExp("^"+D.split("").map(gr=>hm.indexOf(gr)!==-1?"\\"+gr:gr).join(".*"),"i");let Le=g.value;if(Be===!0||Le<0||He.test(Ge.value(t.options[Le]))!==!0)do Le=as(Le+1,-1,me-1);while(Le!==g.value&&(Ft.value(t.options[Le])===!0||He.test(Ge.value(t.options[Le]))!==!0));g.value!==Le&&i.nextTick(()=>{Gt(Le),ie(Le),Le>=0&&t.useInput===!0&&t.fillInput===!0&&zn(Ge.value(t.options[Le]),!0)});return}if(!(_.keyCode!==13&&(_.keyCode!==32||t.useInput===!0||D!=="")&&(_.keyCode!==9||J===!1))){if(_.keyCode!==9&&Ke(_),g.value!==-1&&g.value<me){Dt(t.options[g.value]);return}if(te===!0){const Oe=(Be,He)=>{if(He){if(us(He)!==!0)return}else He=t.newValueMode;if(Un("",t.multiple!==!0,!0),Be==null)return;(He==="toggle"?Dt:dr)(Be,He==="add-unique"),t.multiple!==!0&&(Y.value!==null&&Y.value.focus(),nn())};if(t.onNewValue!==void 0?o("newValue",C.value,Oe):Oe(C.value),t.multiple!==!0)return}f.value===!0?yn():q.innerLoading.value!==!0&&wn()}}function Dr(){return R===!0?P.value:I.value!==null&&I.value.contentEl!==null?I.value.contentEl:void 0}function qi(){return Dr()}function rl(){return t.hideSelected===!0?[]:l["selected-item"]!==void 0?en.value.map(_=>l["selected-item"](_)).slice():l.selected!==void 0?[].concat(l.selected()):t.useChips===!0?en.value.map((_,te)=>i.h(Eh,{key:"option-"+te,removable:q.editable.value===!0&&Ft.value(_.opt)!==!0,dense:!0,textColor:t.color,tabindex:_t.value,onRemove(){_.removeAtIndex(te)}},()=>i.h("span",{class:"ellipsis",[_.html===!0?"innerHTML":"textContent"]:Ge.value(_.opt)}))):[i.h("span",{[Nt.value===!0?"innerHTML":"textContent"]:Ne.value})]}function Mi(){if(Ee.value===!0)return l["no-option"]!==void 0?l["no-option"]({inputValue:C.value}):void 0;const _=l.option!==void 0?l.option:J=>i.h(Ah,{key:J.index,...J.itemProps},()=>i.h(Th,()=>i.h(Bh,()=>i.h("span",{[J.html===!0?"innerHTML":"textContent"]:J.label}))));let te=ce("div",ct.value.map(_));return l["before-options"]!==void 0&&(te=l["before-options"]().concat(te)),qn(l["after-options"],te)}function il(_,te){const J=te===!0?{...nt.value,...q.splitAttrs.attributes.value}:void 0,me={ref:te===!0?Y:void 0,key:"i_t",class:K.value,style:t.inputStyle,value:C.value!==void 0?C.value:"",type:"search",...J,id:te===!0?q.targetUid.value:void 0,maxlength:t.maxlength,autocomplete:t.autocomplete,"data-autofocus":_===!0||t.autofocus===!0||void 0,disabled:t.disable===!0,readonly:t.readonly===!0,...$n.value};return _!==!0&&R===!0&&(Array.isArray(me.class)===!0?me.class=[...me.class,"no-pointer-events"]:me.class+=" no-pointer-events"),i.h("input",me)}function Vi(_){k!==null&&(clearTimeout(k),k=null),y!==null&&(clearTimeout(y),y=null),!(_&&_.target&&_.target.qComposing===!0)&&(zn(_.target.value||""),W=!0,G=C.value,q.focused.value!==!0&&(R!==!0||A.value===!0)&&q.focus(),t.onFilter!==void 0&&(k=setTimeout(()=>{k=null,bn(C.value)},t.inputDebounce)))}function zn(_,te){C.value!==_&&(C.value=_,te===!0||t.inputDebounce===0||t.inputDebounce==="0"?o("inputValue",_):y=setTimeout(()=>{y=null,o("inputValue",_)},t.inputDebounce))}function Un(_,te,J){W=J!==!0,t.useInput===!0&&(zn(_,!0),(te===!0||J!==!0)&&(G=_),te!==!0&&bn(_))}function bn(_,te,J){if(t.onFilter===void 0||te!==!0&&q.focused.value!==!0)return;q.innerLoading.value===!0?o("filterAbort"):(q.innerLoading.value=!0,v.value=!0),_!==""&&t.multiple!==!0&&B.value.length!==0&&W!==!0&&_===Ge.value(B.value[0])&&(_="");const me=setTimeout(()=>{f.value===!0&&(f.value=!1)},10);O!==null&&clearTimeout(O),O=me,o("filter",_,(Oe,Be)=>{(te===!0||q.focused.value===!0)&&O===me&&(clearTimeout(O),typeof Oe=="function"&&Oe(),v.value=!1,i.nextTick(()=>{q.innerLoading.value=!1,q.editable.value===!0&&(te===!0?f.value===!0&&nn():f.value===!0?Wr(!0):f.value=!0),typeof Be=="function"&&i.nextTick(()=>{Be(u)}),typeof J=="function"&&i.nextTick(()=>{J(u)})}))},()=>{q.focused.value===!0&&O===me&&(clearTimeout(O),q.innerLoading.value=!1,v.value=!1),f.value===!0&&(f.value=!1)})}function ol(){return i.h(nm,{ref:I,class:ne.value,style:t.popupContentStyle,modelValue:f.value,fit:t.menuShrink!==!0,cover:t.optionsCover===!0&&Ee.value!==!0&&t.useInput!==!0,anchor:t.menuAnchor,self:t.menuSelf,offset:t.menuOffset,dark:ve.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:t.popupNoRouteDismiss,square:$r.value,transitionShow:t.transitionShow,transitionHide:t.transitionHide,transitionDuration:t.transitionDuration,separateClosePopup:!0,...bt.value,onScrollPassive:H,onBeforeShow:Ii,onBeforeHide:zr,onShow:ll},Mi)}function zr(_){Pi(_),yn()}function ll(){ge()}function Ur(_){Kt(_),Y.value!==null&&Y.value.focus(),A.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function al(_){Kt(_),i.nextTick(()=>{A.value=!1})}function ul(){const _=[i.h(Ch,{class:`col-auto ${q.fieldClass.value}`,...oe.value,for:q.targetUid.value,dark:ve.value,square:!0,loading:v.value,itemAligned:!1,filled:!0,stackLabel:C.value.length!==0,...q.splitAttrs.listeners.value,onFocus:Ur,onBlur:al},{...l,rawControl:()=>q.getControl(!0),before:void 0,after:void 0})];return f.value===!0&&_.push(i.h("div",{ref:P,class:ne.value+" scroll",style:t.popupContentStyle,...bt.value,onClick:It,onScrollPassive:H},Mi())),i.h(sm,{ref:le,modelValue:m.value,position:t.useInput===!0?"top":void 0,transitionShow:U,transitionHide:t.transitionHide,transitionDuration:t.transitionDuration,noRouteDismiss:t.popupNoRouteDismiss,onBeforeShow:Ii,onBeforeHide:sl,onHide:cl,onShow:fl},()=>i.h("div",{class:"q-select__dialog"+(ve.value===!0?" q-select__dialog--dark q-dark":"")+(A.value===!0?" q-select__dialog--focused":"")},_))}function sl(_){Pi(_),le.value!==null&&le.value.__updateRefocusTarget(q.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),q.focused.value=!1}function cl(_){nn(),q.focused.value===!1&&o("blur",_),rn()}function fl(){const _=document.activeElement;(_===null||_.id!==q.targetUid.value)&&Y.value!==null&&Y.value!==_&&Y.value.focus(),ge()}function yn(){m.value!==!0&&(g.value=-1,f.value===!0&&(f.value=!1),q.focused.value===!1&&(O!==null&&(clearTimeout(O),O=null),q.innerLoading.value===!0&&(o("filterAbort"),q.innerLoading.value=!1,v.value=!1)))}function wn(_){q.editable.value===!0&&(R===!0?(q.onControlFocusin(_),m.value=!0,i.nextTick(()=>{q.focus()})):q.focus(),t.onFilter!==void 0?bn(C.value):(Ee.value!==!0||l["no-option"]!==void 0)&&(f.value=!0))}function nn(){m.value=!1,yn()}function rn(){t.useInput===!0&&Un(t.multiple!==!0&&t.fillInput===!0&&B.value.length!==0&&Ge.value(B.value[0])||"",!0,!0)}function Wr(_){let te=-1;if(_===!0){if(B.value.length!==0){const J=Fe.value(B.value[0]);te=t.options.findIndex(me=>Jt(Fe.value(me),J))}se(te)}Gt(te)}function dl(_,te){f.value===!0&&q.innerLoading.value===!1&&(se(-1,!0),i.nextTick(()=>{f.value===!0&&q.innerLoading.value===!1&&(_>te?se():Wr(!0))}))}function Li(){m.value===!1&&I.value!==null&&I.value.updatePosition()}function Ii(_){_!==void 0&&Kt(_),o("popupShow",_),q.hasPopupOpen=!0,q.onControlFocusin(_)}function Pi(_){_!==void 0&&Kt(_),o("popupHide",_),q.hasPopupOpen=!1,q.onControlFocusout(_)}function Ni(){R=s.platform.is.mobile!==!0&&t.behavior!=="dialog"?!1:t.behavior!=="menu"&&(t.useInput===!0?l["no-option"]!==void 0||t.onFilter!==void 0||Ee.value===!1:!0),U=s.platform.is.ios===!0&&R===!0&&t.useInput===!0?"fade":t.transitionShow}return i.onBeforeUpdate(Ni),i.onUpdated(Li),Ni(),i.onBeforeUnmount(()=>{k!==null&&clearTimeout(k),y!==null&&clearTimeout(y)}),Object.assign(u,{showPopup:wn,hidePopup:nn,removeAtIndex:tn,add:dr,toggleOption:Dt,getOptionIndex:()=>g.value,setOptionIndex:Gt,moveOptionSelection:_n,filter:bn,updateMenuPosition:Li,updateInputValue:Un,isOptionSelected:Dn,getEmittingOptionValue:Ti,isOptionDisabled:(..._)=>Ft.value.apply(null,_)===!0,getOptionValue:(..._)=>Fe.value.apply(null,_),getOptionLabel:(..._)=>Ge.value.apply(null,_)}),Object.assign(q,{innerValue:B,fieldClass:i.computed(()=>`q-select q-field--auto-height q-select--with${t.useInput!==!0?"out":""}-input q-select--with${t.useChips!==!0?"out":""}-chips q-select--${t.multiple===!0?"multiple":"single"}`),inputRef:j,targetRef:Y,hasValue:_e,showPopup:wn,floatingLabel:i.computed(()=>t.hideSelected!==!0&&_e.value===!0||typeof C.value=="number"||C.value.length!==0||Vr(t.displayValue)),getControlChild:()=>{if(q.editable.value!==!1&&(m.value===!0||Ee.value!==!0||l["no-option"]!==void 0))return R===!0?ul():ol();q.hasPopupOpen===!0&&(q.hasPopupOpen=!1)},controlEvents:{onFocusin(_){q.onControlFocusin(_)},onFocusout(_){q.onControlFocusout(_,()=>{rn(),yn()})},onClick(_){if(It(_),R!==!0&&f.value===!0){yn(),Y.value!==null&&Y.value.focus();return}wn(_)}},getControl:_=>{const te=rl(),J=_===!0||m.value!==!0||R!==!0;if(t.useInput===!0)te.push(il(_,J));else if(q.editable.value===!0){const Oe=J===!0?nt.value:void 0;te.push(i.h("input",{ref:J===!0?Y:void 0,key:"d_t",class:"q-select__focus-target",id:J===!0?q.targetUid.value:void 0,value:Ne.value,readonly:!0,"data-autofocus":_===!0||t.autofocus===!0||void 0,...Oe,onKeydown:Oi,onKeyup:mr,onKeypress:Ri})),J===!0&&typeof t.autocomplete=="string"&&t.autocomplete.length!==0&&te.push(i.h("input",{class:"q-select__autocomplete-input",autocomplete:t.autocomplete,tabindex:-1,onKeyup:Bi}))}if(T.value!==void 0&&t.disable!==!0&&fr.value.length!==0){const Oe=fr.value.map(Be=>i.h("option",{value:Be,selected:!0}));te.push(i.h("select",{class:"hidden",name:T.value,multiple:t.multiple},Oe))}const me=t.useInput===!0||J!==!0?void 0:q.splitAttrs.attributes.value;return i.h("div",{class:"q-field__native row items-center",...me,...q.splitAttrs.listeners.value},te)},getInnerAppend:()=>t.loading!==!0&&v.value!==!0&&t.hideDropdownIcon!==!0?[i.h(vt,{class:"q-select__dropdown-icon"+(f.value===!0?" rotate-180":""),name:pn.value})]:null}),Wo(q)}}),gm=gn(i.defineComponent({__name:"SelectControl",props:i.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=i.ref([]),o=i.useModel(t,"modelValue"),u=t,s=i.ref(!1),f=i.computed(()=>u.control.customParams),m=i.ref([]),g=i.computed(()=>{var k;return((k=f.value)==null?void 0:k.collection)||null}),C=i.computed(()=>g.value?m.value:u.control.options),A=nr();i.watch(g,k=>{if(!k)return;const y=A.getCollection(g.value);if(y){m.value=y;return}s.value=!0},{immediate:!0});function v(k,y){if(k===""){y(()=>{l.value=Pe.cloneDeep(C.value)});return}y(()=>{const w=k.toLowerCase();l.value=(C.value||[]).filter(R=>R.toLowerCase().includes(w))})}return(k,y)=>{const w=i.resolveComponent("ControlLabel");return i.openBlock(),i.createElementBlock(i.Fragment,null,[k.control.label?(i.openBlock(),i.createBlock(w,{key:0,label:k.control.label},null,8,["label"])):i.createCommentVNode("",!0),i.createVNode(yi,{class:"q-card win-card row items-center q-px-md"},{default:i.withCtx(()=>[i.createVNode(ss,{borderless:"",label:k.control.label,modelValue:o.value,"onUpdate:modelValue":y[0]||(y[0]=R=>o.value=R),"emit-value":"","option-label":"label","map-options":"","use-input":"",clearable:"",onFilter:v,options:l.value,style:{minHeight:"70px",width:"300px",margin:"auto"}},null,8,["label","modelValue","options"])]),_:1})],64)}}}),[["__scopeId","data-v-6268ce2c"]]),pm={class:"text-center",style:{width:"100%"}},vm={class:"text-center text-weight-medium"},_m={class:"question-title"},bm=i.defineComponent({__name:"StepHeader",props:{formGroup:{},stepsCount:{}},setup(t){return(l,o)=>(i.openBlock(),i.createElementBlock("div",pm,[i.createElementVNode("div",vm,i.toDisplayString(l.formGroup.order+1)+"/"+i.toDisplayString(l.stepsCount),1),i.createElementVNode("div",_m,i.toDisplayString(l.formGroup.title||""),1)]))}});function ym(){return i.inject(Md)}const cs={required:{fn:()=>t=>{var l;if(t.controlType===Xt.ControlType.LOCATION){const{value:o}=t.value;return Pe.values(Pe.omit(o,"catastro")).every(u=>!Pe.isNil(u)&&u!=="")&&(o!=null&&o.catastro?wm(o==null?void 0:o.catastro):!0)}return t.controlType===Xt.ControlType.DYNAMIC_ARRAY||t.multiple?(((l=t.value)==null?void 0:l.length)||0)>0:!Pe.isNil(t.value)&&t.value!==""},message:"Este campo es requerido"},min:{fn:t=>l=>fs(l,">=",t),message:"El valor es menor al mínimo permitido"},max:{fn:t=>l=>fs(l,"<=",t),message:"El valor es mayor al máximo permitido"},onlyNumbers:{fn:()=>t=>/^[0-9]*$/.test(String(t.value)||""),message:"Este campo solo acepta números"},email:{fn:()=>t=>t.value?/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(String(t.value)||""):!0,message:"El correo electrónico no es válido"},url:{fn:()=>t=>t.value?/^(ftp|http|https):\/\/[^ "]+$/.test(String(t.value)||"")||/^www\.[^ "]+$/.test(String(t.value)||""):!0,message:"La URL no es válida"}};function fs(t,l,o){const u={">":(s,f)=>s>f,"<":(s,f)=>s<f,">=":(s,f)=>s>=f,"<=":(s,f)=>s<=f}[l];if(t.controlType===Xt.ControlType.NUMBER){const s=Number(t.value);return u(s,o)}if(t.controlType===Xt.ControlType.TEXT){const s=(t.value||"").length;return u(s,o)}if([Xt.ControlType.CARDS_SELECT,Xt.ControlType.SELECT].includes(t.controlType)&&t.multiple){const s=(t.value||[]).length;return u(s,o)}return!1}function wm(t){return/^[A-Za-z0-9]{20}$/.test(t)}function Sm(t){const l=[];t.controls.forEach((u,s)=>{const f=xm(u);l.push(...f);const m=!f.length;t.controls[s].valid=m});const o=!l.length;return t.valid=o,l}function xm(t){const l=[];return t.validators&&t.validators.forEach(o=>{const{validator:u,param:s}=o,f=cs[u]||null;f&&(f.fn(Number(s))(t)||l.push(f.message))}),l}function Cm(t,l,o){return l.controlType==="dynamic_array"?km(t,l,o):l.controlType==="object"?ds(t,l,o):[]}function km(t,l,o){var f,m;const u=[],s=((f=l.itemsLength)==null?void 0:f.value)||0;for(let g=0;g<s;g++){const C=ds({...t,title:`${t.title} ${g+1}`},{...l,value:(m=l.value)==null?void 0:m[g]},o);C.forEach(A=>{A.controls.forEach(v=>{v.code=`${g}.${v.code}`})}),u.push(...C)}return u}function ds(t,l,o){const u=l.structure;return Pe.chunk(u,o).map(f=>({...t,controls:Pa(f).map(m=>{var g;return{...m,id:l.id,value:((g=l.value)==null?void 0:g[m.code])||m.value}})}))}function Em(t){return Pe.chain(t).groupBy("group").toPairs().orderBy(([o,u])=>o).map(([o,u])=>{var m;const s=((m=u.find(g=>{var C;return!!((C=g.title)!=null&&C.trim())}))==null?void 0:m.title)||"",f=u[0].group;return{title:s,controls:u,order:f,visible:!0,valid:u.every(g=>g.valid),id:""}}).value()}const Am={maxControlsPerGroup:1,notifyValidations:!0};function hs(t,l){const{maxControlsPerGroup:o,notifyValidations:u}={...Am,...l||{}},s=nr(),f=i.computed(()=>s.formSteps[t]),m=i.ref([]),g=i.ref([]),C=(w,R)=>{s.setControlValue(t,w);const W=m.value.find(U=>U.id===R);W&&(g.value=Sm(W));const O=v(w),G=k(w);(O||G)&&A()};function A(){const w=f.value.controls,R=[];Em(w).forEach(O=>{const G=O.controls;if(G.every(D=>!Ro.includes(D.controlType))){R.push(O);return}let U={...O,controls:[]};for(const D of G)if(Ro.includes(D.controlType)){R.push(U),U={...U,controls:[]};const Q=Cm(O,D,o);R.push(...Q)}else U.controls.push(D)}),m.value=Pe.orderBy(R,"order").map(O=>({...O,id:O.controls.map(G=>G.id).join("-")})).filter(O=>O.controls.some(G=>G.visible)).map((O,G)=>({...O,order:G,controls:O.controls.filter(U=>U.visible)}))}function v({id:w,value:R}){let W=!1;const G=f.value.controls.filter(U=>{var D;return((D=U.conditions)==null?void 0:D.some(Q=>Q.id===w))||!1});if(G!=null&&G.length)return G.forEach(({id:U,conditions:D,visible:Q})=>{const j=D.every(Y=>{const{value:I,operator:le}=Y;return{"==":R===I,"!=":R!==I,">":R>I,"<":R<I}[le]||!1});Q!==j&&(s.setControlVisibility(t,U,j),W=!0)}),W}function k({id:w,value:R}){const W=Number(R||0);let O=!1;const U=f.value.controls.filter(D=>{var Q;return D.controlType==="dynamic_array"&&((Q=D.itemsLength)==null?void 0:Q.controlId)===w});if(U!=null&&U.length)return U.forEach(({id:D,itemsLength:Q})=>{(Q==null?void 0:Q.value)!==W&&(s.setControlItemsLength(t,D,W),O=!0)}),O}const{notify:y}=ym();return i.watch(g,w=>{w.length&&(u&&y({message:w[0],color:"negative",position:"bottom",timeout:5e3,actions:[{label:"✕",color:"white"}]}),g.value=[])},{deep:!0}),i.watch(f,()=>{A()},{immediate:!0}),{model:m,errorMessages:g,rebuildModel:A,onControlValueUpdate:C}}const Tm={key:0,style:{height:"100%"}},Bm={class:"q-py-sm"},Rm={class:"form-steps-container"},Om={class:"row justify-center items-center",style:{height:"100%",width:"100vw"}},qm={class:"controls-container",style:{height:"100%"}},Mm={class:"form-container flex column items-center q-px-md",style:{width:"100vw"}},Vm=gn(i.defineComponent({__name:"MultipleFormGroups",props:{index:{}},setup(t){const l=t,o=nr(),{model:u,onControlValueUpdate:s}=hs(l.index),f=i.computed(()=>u.value.length),m=i.ref(0),g=i.computed(()=>u.value[m.value]),C=v=>{const k=Pe.toPairs(Pe.groupBy(v,"row"));return Pe.orderBy(k,([y,w])=>Number(y),"asc").map(([y,w])=>({controls:Pe.orderBy(w,"col","asc")}))};i.watch(m,v=>{const k=v+1===f.value;o.setOnLastSubstep(k)},{immediate:!0});function A(v){return{input_text:Ko,input_number:Ko,checkbox:lu,switch:Td,select:gm,cards_select:yd}[v]||Ko}return(v,k)=>g.value?(i.openBlock(),i.createElementBlock("div",Tm,[i.createElementVNode("div",Bm,[i.createVNode(bm,{formGroup:g.value,stepsCount:f.value},null,8,["formGroup","stepsCount"])]),i.createElementVNode("div",Rm,[i.createElementVNode("div",Om,[i.createElementVNode("div",qm,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(u),y=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:y.id},[m.value===y.order?(i.openBlock(),i.createBlock(td,{key:0,transition:"slide-left",style:{height:"75%",width:"100vw"},class:"row q-py-xs justify-center items-center bg-grey-1"},{default:i.withCtx(()=>[i.createElementVNode("div",Mm,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(C(y.controls),(w,R)=>(i.openBlock(),i.createElementBlock("div",{class:"q-mb-xl",key:R},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(w.controls,(W,O)=>(i.openBlock(),i.createElementBlock("div",{key:O},[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(A(W.controlType)),{control:W,modelValue:w.controls[O].value,"onUpdate:modelValue":[G=>w.controls[O].value=G,G=>i.unref(s)(W,y.id)]},null,8,["control","modelValue","onUpdate:modelValue"]))]))),128))]))),128))])]),_:2},1024)):i.createCommentVNode("",!0)],64))),128)),i.createVNode(xh,{currentStep:m.value,stepsCount:f.value,nextDisabled:!g.value.valid,onPrev:k[0]||(k[0]=y=>m.value--),onNext:k[1]||(k[1]=y=>g.value.valid&&m.value++)},null,8,["currentStep","stepsCount","nextDisabled"])])])])])):i.createCommentVNode("",!0)}}),[["__scopeId","data-v-2d9dca33"]]),Lm={style:{"font-size":"16px","padding-top":"1rem"}},Im={style:{"font-size":"16px","padding-top":"1rem"}},tl=gn(i.defineComponent({__name:"SimpleInput",props:i.mergeModels({control:{},rules:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=i.useModel(t,"modelValue"),o=t,u=i.computed(()=>{var s;return(s=o.control.controlType)==null?void 0:s.split("_")[1]});return(s,f)=>(i.openBlock(),i.createBlock(yi,{class:"q-px-md win-card"},{default:i.withCtx(()=>[i.createVNode(yu,{borderless:"","reverse-fill-mask":"",modelValue:l.value,"onUpdate:modelValue":f[0]||(f[0]=m=>l.value=m),label:s.control.label,mask:u.value==="number"?"###.###.###.###.###":void 0,"input-class":{"text-right":u.value==="number"},"input-style":{fontSize:"16px"},rules:s.rules},i.createSlots({_:2},[s.control.prefix?{name:"prepend",fn:i.withCtx(()=>[i.createElementVNode("span",Lm,i.toDisplayString(s.control.prefix),1)]),key:"0"}:void 0,s.control.suffix?{name:"append",fn:i.withCtx(()=>[i.createElementVNode("span",Im,i.toDisplayString(s.control.suffix),1)]),key:"1"}:void 0]),1032,["modelValue","label","mask","input-class","rules"])]),_:1}))}}),[["__scopeId","data-v-2efb4029"]]),ms=i.defineComponent({__name:"SimpleSelect",props:i.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=i.useModel(t,"modelValue");return(o,u)=>(i.openBlock(),i.createBlock(yi,{class:"q-px-md win-card"},{default:i.withCtx(()=>[i.createVNode(ss,{borderless:"",label:o.control.label,options:o.control.options,modelValue:l.value,"onUpdate:modelValue":u[0]||(u[0]=s=>l.value=s),"emit-value":"","option-label":"label","map-options":""},null,8,["label","options","modelValue"])]),_:1}))}}),Pm={key:0,style:{height:"100%"}},Nm={class:"question-title text-center q-py-sm"},$m={class:"form-steps-container bg-grey-1"},Fm={class:"form-container",style:{height:"100%"}},Dm={class:"row items-center"},zm={class:"col-12 row"},Um=gn(i.defineComponent({__name:"SingleFormGroup",props:{index:{}},setup(t){const l=t,{model:o,onControlValueUpdate:u}=hs(l.index,{notifyValidations:!1});function s(C){return{input_text:tl,input_number:tl,select:ms,cards_select:ms,checkbox:lu}[C]||tl}const f=C=>Pe.orderBy(Pe.toPairs(Pe.groupBy(C,"row")),"row").map(([A,v])=>({controls:Pe.orderBy(v,"col")}));function m(C){return[A=>{var k;let v="";return(k=C.validators)==null||k.some(y=>{const{param:w,validator:R}=y,W=cs[R];return W.fn(Number(w))({...C,value:A})?!1:(v=W.message,!0)}),!v.length||v}]}const g=nr();return i.onMounted(()=>g.setOnLastSubstep(!0)),(C,A)=>i.unref(o)?(i.openBlock(),i.createElementBlock("div",Pm,[i.createElementVNode("div",Nm,i.toDisplayString(i.unref(o)[0].title),1),i.createElementVNode("div",$m,[i.createElementVNode("div",Fm,[i.createElementVNode("div",Dm,[i.createElementVNode("div",zm,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(f(i.unref(o)[0].controls),(v,k)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(f(i.unref(o)[0].controls).length>1?"col-md-6 col-12":"col-12"),key:k},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(v.controls,(y,w)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(`col-xs-12 col-sm q-pa-xs ${f(i.unref(o)[0].controls).length>1?"col-md-6 col-12":"col-12"}`),key:w},[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(s(y.controlType)),{control:y,modelValue:y.value,"onUpdate:modelValue":[R=>y.value=R,R=>i.unref(u)(y,i.unref(o)[0].id)],rules:m(y)},null,8,["control","modelValue","onUpdate:modelValue","rules"]))],2))),128))],2))),128))])])])])])):i.createCommentVNode("",!0)}}),[["__scopeId","data-v-a8cd1002"]]),nl=t=>(i.pushScopeId("data-v-88496229"),t=t(),i.popScopeId(),t),Wm={class:"buttons-container"},Hm={class:"max-container"},Km={key:0,class:"row checkbox justify-end q-my-sm"},Gm={style:{"max-width":"650px"}},jm=nl(()=>i.createElementVNode("br",{class:"gt-sm"},null,-1)),Qm={class:"row justify-between q-my-md q-px-md q-pb-xl"},Ym=nl(()=>i.createElementVNode("span",{class:"text-black"},"Atrás",-1)),Zm={key:1},Xm={key:0,class:"text-black"},Jm=nl(()=>i.createElementVNode("span",{class:"gt-sm"},"formulario",-1)),eg={key:1,class:"text-black"},tg=gn(i.defineComponent({__name:"StepsNavigationButtons",emits:["submit"],setup(t,{emit:l}){const{nextStep:o,previousStep:u,currentStep:s,stepsCount:f,nextDisabled:m,onLastSubstep:g}=i.toRefs(nr()),C=l,A=i.ref(!1),v=y=>{},k=()=>{s.value===f.value?C("submit"):o.value()};return(y,w)=>(i.openBlock(),i.createElementBlock("div",Wm,[i.createElementVNode("div",Hm,[i.unref(s)===i.unref(f)?(i.openBlock(),i.createElementBlock("div",Km,[i.createElementVNode("div",Gm,[i.createVNode(ou,{color:"info",class:"checkbox",modelValue:A.value,"onUpdate:modelValue":w[1]||(w[1]=R=>A.value=R)},{default:i.withCtx(()=>[i.createElementVNode("div",null,[i.createTextVNode(" He leído, comprendo y acepto los términos de tratamiento de datos "),jm,i.createTextVNode(" personales para esta solicitud. Más info. sobre la protección de datos "),i.createElementVNode("span",{style:{"text-decoration":"underline"},onClick:w[0]||(w[0]=R=>v())},"aquí"),i.createTextVNode(". ")])]),_:1},8,["modelValue"])])])):i.createCommentVNode("",!0),i.createElementVNode("div",Qm,[i.unref(s)>1?(i.openBlock(),i.createBlock(ur,{key:0,color:"info",class:"q-px-xl q-py-sm q-mr-sm win-btn win-btn-primary bg-white",onClick:i.unref(u),flat:"","no-caps":""},{default:i.withCtx(()=>[Ym]),_:1},8,["onClick"])):(i.openBlock(),i.createElementBlock("div",Zm)),i.createElementVNode("div",null,[!i.unref(m)&&i.unref(g)?(i.openBlock(),i.createBlock(ur,{key:0,color:"green",class:"q-px-xl q-py-sm q-ml-sm win-btn win-btn-primary bg-white",onClick:k,disable:i.unref(s)===i.unref(f)&&!A.value,flat:"","no-caps":""},{default:i.withCtx(()=>[i.unref(s)===i.unref(f)?(i.openBlock(),i.createElementBlock("span",Xm,[i.createTextVNode(" Enviar "),Jm])):(i.openBlock(),i.createElementBlock("span",eg," Siguiente "))]),_:1},8,["disable"])):i.createCommentVNode("",!0)])])])]))}}),[["__scopeId","data-v-88496229"]]),gs=i.defineComponent({__name:"DynamicForm",props:{forms:{}},emits:["onSubmit"],setup(t,{emit:l}){const o=t,u=l,s=i.ref(!1),f=nr(),m=C=>Pe.keys(Pe.groupBy(C.controls,"group")).length===1;i.watch(()=>o.forms,C=>{const v=new Na().fromRaw(C);f.setFormSteps(v)},{immediate:!0});function g(){const C=Pe.cloneDeep(f.formSteps),v=new Na().toRaw(C);u("onSubmit",v)}return(C,A)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",null,[i.renderSlot(C.$slots,"header"),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(f).formSteps,(v,k)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:k},[m(v)?i.withDirectives((i.openBlock(),i.createBlock(Um,{key:0,index:k},null,8,["index"])),[[i.vShow,i.unref(f).currentStep===k+1]]):i.withDirectives((i.openBlock(),i.createBlock(Vm,{key:1,index:k,onOnLastStep:A[0]||(A[0]=y=>s.value=y)},null,8,["index"])),[[i.vShow,i.unref(f).currentStep===k+1]])],64))),128))]),i.createVNode(tg,{onSubmit:g})],64))}}),ng=i.createElementVNode("img",{src:"https://upload.wikimedia.org/wikipedia/commons/thumb/9/95/Vue.js_Logo_2.svg/640px-Vue.js_Logo_2.svg.png",alt:""},null,-1),ps=i.defineComponent({__name:"TestUi",setup(t){const l=i.ref("Test W2W UI!");return(o,u)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[ng,i.createElementVNode("h1",null,i.toDisplayString(l.value),1)],64))}}),rg={install(t,l){l!=null&&l.pinia?(console.log("existe una instancia de pinia!"),t.use(l.pinia),i.nextTick(()=>{Df()?console.log("Pinia instance is active and ready."):console.error("No active Pinia instance. Make sure to use app.use(pinia) before accessing the store.")})):console.error("Pinia instance is required to use this library."),console.log("inicializando componentes..."),t.component("DynamicForm",gs),t.component("TestUi",ps)}};Zt.DynamicForm=gs,Zt.TestUi=ps,Zt.default=rg,Object.defineProperties(Zt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});