@win2win/shared-ui 0.1.17 → 0.1.18

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.
@@ -1,20 +1,20 @@
1
- (function(Nt,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue"),require("pinia")):typeof define=="function"&&define.amd?define(["exports","vue","pinia"],i):(Nt=typeof globalThis<"u"?globalThis:Nt||self,i(Nt.W2WSharedUi={},Nt.Vue,Nt.Pinia))})(this,function(Nt,i,ka){"use strict";var xe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},oi={exports:{}};/**
1
+ (function(Nt,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue"),require("pinia")):typeof define=="function"&&define.amd?define(["exports","vue","pinia"],r):(Nt=typeof globalThis<"u"?globalThis:Nt||self,r(Nt.W2WSharedUi={},Nt.Vue,Nt.Pinia))})(this,function(Nt,r,ka){"use strict";var xe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},oi={exports:{}};/**
2
2
  * @license
3
3
  * Lodash <https://lodash.com/>
4
4
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
5
5
  * Released under MIT license <https://lodash.com/license>
6
6
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
7
7
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
8
- */oi.exports,function(t,o){(function(){var l,u="4.17.21",s=200,c="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",h="Expected a function",g="Invalid `variable` option passed into `_.template`",w="__lodash_hash_undefined__",k=500,v="__lodash_placeholder__",C=1,E=2,y=4,T=1,z=2,R=1,H=2,F=4,N=8,Q=16,G=32,j=64,K=128,le=256,V=512,$=30,Z="...",A=800,te=16,P=1,ae=2,ue=3,fe=1/0,W=9007199254740991,se=17976931348623157e292,ge=NaN,B=4294967295,O=B-1,ie=B>>>1,ve=[["ary",K],["bind",R],["bindKey",H],["curry",N],["curryRight",Q],["flip",V],["partial",G],["partialRight",j],["rearg",le]],_e="[object Arguments]",U="[object Array]",ne="[object AsyncFunction]",Ae="[object Boolean]",Y="[object Date]",De="[object DOMException]",lt="[object Error]",Ft="[object Function]",bt="[object GeneratorFunction]",nt="[object Map]",yt="[object Number]",tn="[object Null]",ct="[object Object]",vn="[object Promise]",Dr="[object Proxy]",Ut="[object RegExp]",Fe="[object Set]",je="[object String]",zt="[object Symbol]",hr="[object Undefined]",Dn="[object WeakMap]",Li="[object WeakSet]",nn="[object ArrayBuffer]",_n="[object DataView]",mr="[object Float32Array]",Ht="[object Float64Array]",Qt="[object Int8Array]",bn="[object Int16Array]",$r="[object Int32Array]",$n="[object Uint8Array]",Fn="[object Uint8ClampedArray]",gr="[object Uint16Array]",pr="[object Uint32Array]",qi=/\b__p \+= '';/g,Vi=/\b(__p \+=) '' \+/g,Pi=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Fr=/&(?:amp|lt|gt|quot|#39);/g,Ni=/[&<>"']/g,io=RegExp(Fr.source),Di=RegExp(Ni.source),lo=/<%-([\s\S]+?)%>/g,$i=/<%([\s\S]+?)%>/g,Un=/<%=([\s\S]+?)%>/g,zn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,yn=/^\w*$/,oo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ur=/[\\^$.*+?()[\]{}|]/g,ao=RegExp(Ur.source),zr=/^\s+/,uo=/\s/,so=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,co=/\{\n\/\* \[wrapped with (.+)\] \*/,fo=/,? & /,ho=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,wn=/[()=,{}\[\]\/\s]/,Sn=/\\(\\)?/g,rn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ln=/\w*$/,Hr=/^[-+]0x[0-9a-f]+$/i,mo=/^0b[01]+$/i,Fi=/^\[object .+?Constructor\]$/,Ui=/^0o[0-7]+$/i,zi=/^(?:0|[1-9]\d*)$/,Hi=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_=/($^)/,ee=/['\n\r\u2028\u2029\\]/g,X="\\ud800-\\udfff",me="\\u0300-\\u036f",Ie="\\ufe20-\\ufe2f",Be="\\u20d0-\\u20ff",Ge=me+Ie+Be,Ve="\\u2700-\\u27bf",vr="a-z\\xdf-\\xf6\\xf8-\\xff",Ig="\\xac\\xb1\\xd7\\xf7",Mg="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Lg="\\u2000-\\u206f",qg=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",qs="A-Z\\xc0-\\xd6\\xd8-\\xde",Vs="\\ufe0e\\ufe0f",Ps=Ig+Mg+Lg+qg,go="['’]",Vg="["+X+"]",Ns="["+Ps+"]",Wi="["+Ge+"]",Ds="\\d+",Pg="["+Ve+"]",$s="["+vr+"]",Fs="[^"+X+Ps+Ds+Ve+vr+qs+"]",po="\\ud83c[\\udffb-\\udfff]",Ng="(?:"+Wi+"|"+po+")",Us="[^"+X+"]",vo="(?:\\ud83c[\\udde6-\\uddff]){2}",_o="[\\ud800-\\udbff][\\udc00-\\udfff]",_r="["+qs+"]",zs="\\u200d",Hs="(?:"+$s+"|"+Fs+")",Dg="(?:"+_r+"|"+Fs+")",Ws="(?:"+go+"(?:d|ll|m|re|s|t|ve))?",Gs="(?:"+go+"(?:D|LL|M|RE|S|T|VE))?",Ks=Ng+"?",js="["+Vs+"]?",$g="(?:"+zs+"(?:"+[Us,vo,_o].join("|")+")"+js+Ks+")*",Fg="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ug="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ys=js+Ks+$g,zg="(?:"+[Pg,vo,_o].join("|")+")"+Ys,Hg="(?:"+[Us+Wi+"?",Wi,vo,_o,Vg].join("|")+")",Wg=RegExp(go,"g"),Gg=RegExp(Wi,"g"),bo=RegExp(po+"(?="+po+")|"+Hg+Ys,"g"),Kg=RegExp([_r+"?"+$s+"+"+Ws+"(?="+[Ns,_r,"$"].join("|")+")",Dg+"+"+Gs+"(?="+[Ns,_r+Hs,"$"].join("|")+")",_r+"?"+Hs+"+"+Ws,_r+"+"+Gs,Ug,Fg,Ds,zg].join("|"),"g"),jg=RegExp("["+zs+X+Ge+Vs+"]"),Yg=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Qg=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Zg=-1,qe={};qe[mr]=qe[Ht]=qe[Qt]=qe[bn]=qe[$r]=qe[$n]=qe[Fn]=qe[gr]=qe[pr]=!0,qe[_e]=qe[U]=qe[nn]=qe[Ae]=qe[_n]=qe[Y]=qe[lt]=qe[Ft]=qe[nt]=qe[yt]=qe[ct]=qe[Ut]=qe[Fe]=qe[je]=qe[Dn]=!1;var Le={};Le[_e]=Le[U]=Le[nn]=Le[_n]=Le[Ae]=Le[Y]=Le[mr]=Le[Ht]=Le[Qt]=Le[bn]=Le[$r]=Le[nt]=Le[yt]=Le[ct]=Le[Ut]=Le[Fe]=Le[je]=Le[zt]=Le[$n]=Le[Fn]=Le[gr]=Le[pr]=!0,Le[lt]=Le[Ft]=Le[Dn]=!1;var Xg={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Jg={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ep={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},tp={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},np=parseFloat,rp=parseInt,Qs=typeof xe=="object"&&xe&&xe.Object===Object&&xe,ip=typeof self=="object"&&self&&self.Object===Object&&self,et=Qs||ip||Function("return this")(),yo=o&&!o.nodeType&&o,Hn=yo&&!0&&t&&!t.nodeType&&t,Zs=Hn&&Hn.exports===yo,wo=Zs&&Qs.process,Bt=function(){try{var S=Hn&&Hn.require&&Hn.require("util").types;return S||wo&&wo.binding&&wo.binding("util")}catch{}}(),Xs=Bt&&Bt.isArrayBuffer,Js=Bt&&Bt.isDate,ec=Bt&&Bt.isMap,tc=Bt&&Bt.isRegExp,nc=Bt&&Bt.isSet,rc=Bt&&Bt.isTypedArray;function wt(S,M,I){switch(I.length){case 0:return S.call(M);case 1:return S.call(M,I[0]);case 2:return S.call(M,I[0],I[1]);case 3:return S.call(M,I[0],I[1],I[2])}return S.apply(M,I)}function lp(S,M,I,re){for(var pe=-1,Oe=S==null?0:S.length;++pe<Oe;){var Ye=S[pe];M(re,Ye,I(Ye),S)}return re}function Rt(S,M){for(var I=-1,re=S==null?0:S.length;++I<re&&M(S[I],I,S)!==!1;);return S}function op(S,M){for(var I=S==null?0:S.length;I--&&M(S[I],I,S)!==!1;);return S}function ic(S,M){for(var I=-1,re=S==null?0:S.length;++I<re;)if(!M(S[I],I,S))return!1;return!0}function xn(S,M){for(var I=-1,re=S==null?0:S.length,pe=0,Oe=[];++I<re;){var Ye=S[I];M(Ye,I,S)&&(Oe[pe++]=Ye)}return Oe}function Gi(S,M){var I=S==null?0:S.length;return!!I&&br(S,M,0)>-1}function So(S,M,I){for(var re=-1,pe=S==null?0:S.length;++re<pe;)if(I(M,S[re]))return!0;return!1}function Pe(S,M){for(var I=-1,re=S==null?0:S.length,pe=Array(re);++I<re;)pe[I]=M(S[I],I,S);return pe}function Cn(S,M){for(var I=-1,re=M.length,pe=S.length;++I<re;)S[pe+I]=M[I];return S}function xo(S,M,I,re){var pe=-1,Oe=S==null?0:S.length;for(re&&Oe&&(I=S[++pe]);++pe<Oe;)I=M(I,S[pe],pe,S);return I}function ap(S,M,I,re){var pe=S==null?0:S.length;for(re&&pe&&(I=S[--pe]);pe--;)I=M(I,S[pe],pe,S);return I}function Co(S,M){for(var I=-1,re=S==null?0:S.length;++I<re;)if(M(S[I],I,S))return!0;return!1}var up=ko("length");function sp(S){return S.split("")}function cp(S){return S.match(ho)||[]}function lc(S,M,I){var re;return I(S,function(pe,Oe,Ye){if(M(pe,Oe,Ye))return re=Oe,!1}),re}function Ki(S,M,I,re){for(var pe=S.length,Oe=I+(re?1:-1);re?Oe--:++Oe<pe;)if(M(S[Oe],Oe,S))return Oe;return-1}function br(S,M,I){return M===M?Sp(S,M,I):Ki(S,oc,I)}function fp(S,M,I,re){for(var pe=I-1,Oe=S.length;++pe<Oe;)if(re(S[pe],M))return pe;return-1}function oc(S){return S!==S}function ac(S,M){var I=S==null?0:S.length;return I?Ao(S,M)/I:ge}function ko(S){return function(M){return M==null?l:M[S]}}function Eo(S){return function(M){return S==null?l:S[M]}}function uc(S,M,I,re,pe){return pe(S,function(Oe,Ye,Me){I=re?(re=!1,Oe):M(I,Oe,Ye,Me)}),I}function dp(S,M){var I=S.length;for(S.sort(M);I--;)S[I]=S[I].value;return S}function Ao(S,M){for(var I,re=-1,pe=S.length;++re<pe;){var Oe=M(S[re]);Oe!==l&&(I=I===l?Oe:I+Oe)}return I}function Oo(S,M){for(var I=-1,re=Array(S);++I<S;)re[I]=M(I);return re}function hp(S,M){return Pe(M,function(I){return[I,S[I]]})}function sc(S){return S&&S.slice(0,hc(S)+1).replace(zr,"")}function St(S){return function(M){return S(M)}}function To(S,M){return Pe(M,function(I){return S[I]})}function Wr(S,M){return S.has(M)}function cc(S,M){for(var I=-1,re=S.length;++I<re&&br(M,S[I],0)>-1;);return I}function fc(S,M){for(var I=S.length;I--&&br(M,S[I],0)>-1;);return I}function mp(S,M){for(var I=S.length,re=0;I--;)S[I]===M&&++re;return re}var gp=Eo(Xg),pp=Eo(Jg);function vp(S){return"\\"+tp[S]}function _p(S,M){return S==null?l:S[M]}function yr(S){return jg.test(S)}function bp(S){return Yg.test(S)}function yp(S){for(var M,I=[];!(M=S.next()).done;)I.push(M.value);return I}function Bo(S){var M=-1,I=Array(S.size);return S.forEach(function(re,pe){I[++M]=[pe,re]}),I}function dc(S,M){return function(I){return S(M(I))}}function kn(S,M){for(var I=-1,re=S.length,pe=0,Oe=[];++I<re;){var Ye=S[I];(Ye===M||Ye===v)&&(S[I]=v,Oe[pe++]=I)}return Oe}function ji(S){var M=-1,I=Array(S.size);return S.forEach(function(re){I[++M]=re}),I}function wp(S){var M=-1,I=Array(S.size);return S.forEach(function(re){I[++M]=[re,re]}),I}function Sp(S,M,I){for(var re=I-1,pe=S.length;++re<pe;)if(S[re]===M)return re;return-1}function xp(S,M,I){for(var re=I+1;re--;)if(S[re]===M)return re;return re}function wr(S){return yr(S)?kp(S):up(S)}function Wt(S){return yr(S)?Ep(S):sp(S)}function hc(S){for(var M=S.length;M--&&uo.test(S.charAt(M)););return M}var Cp=Eo(ep);function kp(S){for(var M=bo.lastIndex=0;bo.test(S);)++M;return M}function Ep(S){return S.match(bo)||[]}function Ap(S){return S.match(Kg)||[]}var Op=function S(M){M=M==null?et:Sr.defaults(et.Object(),M,Sr.pick(et,Qg));var I=M.Array,re=M.Date,pe=M.Error,Oe=M.Function,Ye=M.Math,Me=M.Object,Ro=M.RegExp,Tp=M.String,It=M.TypeError,Yi=I.prototype,Bp=Oe.prototype,xr=Me.prototype,Qi=M["__core-js_shared__"],Zi=Bp.toString,Re=xr.hasOwnProperty,Rp=0,mc=function(){var e=/[^.]+$/.exec(Qi&&Qi.keys&&Qi.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Xi=xr.toString,Ip=Zi.call(Me),Mp=et._,Lp=Ro("^"+Zi.call(Re).replace(Ur,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ji=Zs?M.Buffer:l,En=M.Symbol,el=M.Uint8Array,gc=Ji?Ji.allocUnsafe:l,tl=dc(Me.getPrototypeOf,Me),pc=Me.create,vc=xr.propertyIsEnumerable,nl=Yi.splice,_c=En?En.isConcatSpreadable:l,Gr=En?En.iterator:l,Wn=En?En.toStringTag:l,rl=function(){try{var e=Qn(Me,"defineProperty");return e({},"",{}),e}catch{}}(),qp=M.clearTimeout!==et.clearTimeout&&M.clearTimeout,Vp=re&&re.now!==et.Date.now&&re.now,Pp=M.setTimeout!==et.setTimeout&&M.setTimeout,il=Ye.ceil,ll=Ye.floor,Io=Me.getOwnPropertySymbols,Np=Ji?Ji.isBuffer:l,bc=M.isFinite,Dp=Yi.join,$p=dc(Me.keys,Me),Qe=Ye.max,rt=Ye.min,Fp=re.now,Up=M.parseInt,yc=Ye.random,zp=Yi.reverse,Mo=Qn(M,"DataView"),Kr=Qn(M,"Map"),Lo=Qn(M,"Promise"),Cr=Qn(M,"Set"),jr=Qn(M,"WeakMap"),Yr=Qn(Me,"create"),ol=jr&&new jr,kr={},Hp=Zn(Mo),Wp=Zn(Kr),Gp=Zn(Lo),Kp=Zn(Cr),jp=Zn(jr),al=En?En.prototype:l,Qr=al?al.valueOf:l,wc=al?al.toString:l;function d(e){if(Ue(e)&&!be(e)&&!(e instanceof ke)){if(e instanceof Mt)return e;if(Re.call(e,"__wrapped__"))return xf(e)}return new Mt(e)}var Er=function(){function e(){}return function(n){if(!$e(n))return{};if(pc)return pc(n);e.prototype=n;var r=new e;return e.prototype=l,r}}();function ul(){}function Mt(e,n){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=l}d.templateSettings={escape:lo,evaluate:$i,interpolate:Un,variable:"",imports:{_:d}},d.prototype=ul.prototype,d.prototype.constructor=d,Mt.prototype=Er(ul.prototype),Mt.prototype.constructor=Mt;function ke(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=B,this.__views__=[]}function Yp(){var e=new ke(this.__wrapped__);return e.__actions__=ft(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ft(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ft(this.__views__),e}function Qp(){if(this.__filtered__){var e=new ke(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Zp(){var e=this.__wrapped__.value(),n=this.__dir__,r=be(e),a=n<0,f=r?e.length:0,m=s0(0,f,this.__views__),p=m.start,b=m.end,x=b-p,L=a?b:p-1,q=this.__iteratees__,D=q.length,J=0,oe=rt(x,this.__takeCount__);if(!r||!a&&f==x&&oe==x)return Wc(e,this.__actions__);var de=[];e:for(;x--&&J<oe;){L+=n;for(var we=-1,he=e[L];++we<D;){var Ce=q[we],Ee=Ce.iteratee,kt=Ce.type,ut=Ee(he);if(kt==ae)he=ut;else if(!ut){if(kt==P)continue e;break e}}de[J++]=he}return de}ke.prototype=Er(ul.prototype),ke.prototype.constructor=ke;function Gn(e){var n=-1,r=e==null?0:e.length;for(this.clear();++n<r;){var a=e[n];this.set(a[0],a[1])}}function Xp(){this.__data__=Yr?Yr(null):{},this.size=0}function Jp(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}function ev(e){var n=this.__data__;if(Yr){var r=n[e];return r===w?l:r}return Re.call(n,e)?n[e]:l}function tv(e){var n=this.__data__;return Yr?n[e]!==l:Re.call(n,e)}function nv(e,n){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Yr&&n===l?w:n,this}Gn.prototype.clear=Xp,Gn.prototype.delete=Jp,Gn.prototype.get=ev,Gn.prototype.has=tv,Gn.prototype.set=nv;function on(e){var n=-1,r=e==null?0:e.length;for(this.clear();++n<r;){var a=e[n];this.set(a[0],a[1])}}function rv(){this.__data__=[],this.size=0}function iv(e){var n=this.__data__,r=sl(n,e);if(r<0)return!1;var a=n.length-1;return r==a?n.pop():nl.call(n,r,1),--this.size,!0}function lv(e){var n=this.__data__,r=sl(n,e);return r<0?l:n[r][1]}function ov(e){return sl(this.__data__,e)>-1}function av(e,n){var r=this.__data__,a=sl(r,e);return a<0?(++this.size,r.push([e,n])):r[a][1]=n,this}on.prototype.clear=rv,on.prototype.delete=iv,on.prototype.get=lv,on.prototype.has=ov,on.prototype.set=av;function an(e){var n=-1,r=e==null?0:e.length;for(this.clear();++n<r;){var a=e[n];this.set(a[0],a[1])}}function uv(){this.size=0,this.__data__={hash:new Gn,map:new(Kr||on),string:new Gn}}function sv(e){var n=wl(this,e).delete(e);return this.size-=n?1:0,n}function cv(e){return wl(this,e).get(e)}function fv(e){return wl(this,e).has(e)}function dv(e,n){var r=wl(this,e),a=r.size;return r.set(e,n),this.size+=r.size==a?0:1,this}an.prototype.clear=uv,an.prototype.delete=sv,an.prototype.get=cv,an.prototype.has=fv,an.prototype.set=dv;function Kn(e){var n=-1,r=e==null?0:e.length;for(this.__data__=new an;++n<r;)this.add(e[n])}function hv(e){return this.__data__.set(e,w),this}function mv(e){return this.__data__.has(e)}Kn.prototype.add=Kn.prototype.push=hv,Kn.prototype.has=mv;function Gt(e){var n=this.__data__=new on(e);this.size=n.size}function gv(){this.__data__=new on,this.size=0}function pv(e){var n=this.__data__,r=n.delete(e);return this.size=n.size,r}function vv(e){return this.__data__.get(e)}function _v(e){return this.__data__.has(e)}function bv(e,n){var r=this.__data__;if(r instanceof on){var a=r.__data__;if(!Kr||a.length<s-1)return a.push([e,n]),this.size=++r.size,this;r=this.__data__=new an(a)}return r.set(e,n),this.size=r.size,this}Gt.prototype.clear=gv,Gt.prototype.delete=pv,Gt.prototype.get=vv,Gt.prototype.has=_v,Gt.prototype.set=bv;function Sc(e,n){var r=be(e),a=!r&&Xn(e),f=!r&&!a&&Rn(e),m=!r&&!a&&!f&&Br(e),p=r||a||f||m,b=p?Oo(e.length,Tp):[],x=b.length;for(var L in e)(n||Re.call(e,L))&&!(p&&(L=="length"||f&&(L=="offset"||L=="parent")||m&&(L=="buffer"||L=="byteLength"||L=="byteOffset")||fn(L,x)))&&b.push(L);return b}function xc(e){var n=e.length;return n?e[Wo(0,n-1)]:l}function yv(e,n){return Sl(ft(e),jn(n,0,e.length))}function wv(e){return Sl(ft(e))}function qo(e,n,r){(r!==l&&!Kt(e[n],r)||r===l&&!(n in e))&&un(e,n,r)}function Zr(e,n,r){var a=e[n];(!(Re.call(e,n)&&Kt(a,r))||r===l&&!(n in e))&&un(e,n,r)}function sl(e,n){for(var r=e.length;r--;)if(Kt(e[r][0],n))return r;return-1}function Sv(e,n,r,a){return An(e,function(f,m,p){n(a,f,r(f),p)}),a}function Cc(e,n){return e&&Xt(n,Xe(n),e)}function xv(e,n){return e&&Xt(n,ht(n),e)}function un(e,n,r){n=="__proto__"&&rl?rl(e,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[n]=r}function Vo(e,n){for(var r=-1,a=n.length,f=I(a),m=e==null;++r<a;)f[r]=m?l:pa(e,n[r]);return f}function jn(e,n,r){return e===e&&(r!==l&&(e=e<=r?e:r),n!==l&&(e=e>=n?e:n)),e}function Lt(e,n,r,a,f,m){var p,b=n&C,x=n&E,L=n&y;if(r&&(p=f?r(e,a,f,m):r(e)),p!==l)return p;if(!$e(e))return e;var q=be(e);if(q){if(p=f0(e),!b)return ft(e,p)}else{var D=it(e),J=D==Ft||D==bt;if(Rn(e))return jc(e,b);if(D==ct||D==_e||J&&!f){if(p=x||J?{}:mf(e),!b)return x?e0(e,xv(p,e)):Jv(e,Cc(p,e))}else{if(!Le[D])return f?e:{};p=d0(e,D,b)}}m||(m=new Gt);var oe=m.get(e);if(oe)return oe;m.set(e,p),zf(e)?e.forEach(function(he){p.add(Lt(he,n,r,he,e,m))}):Ff(e)&&e.forEach(function(he,Ce){p.set(Ce,Lt(he,n,r,Ce,e,m))});var de=L?x?na:ta:x?ht:Xe,we=q?l:de(e);return Rt(we||e,function(he,Ce){we&&(Ce=he,he=e[Ce]),Zr(p,Ce,Lt(he,n,r,Ce,e,m))}),p}function Cv(e){var n=Xe(e);return function(r){return kc(r,e,n)}}function kc(e,n,r){var a=r.length;if(e==null)return!a;for(e=Me(e);a--;){var f=r[a],m=n[f],p=e[f];if(p===l&&!(f in e)||!m(p))return!1}return!0}function Ec(e,n,r){if(typeof e!="function")throw new It(h);return ii(function(){e.apply(l,r)},n)}function Xr(e,n,r,a){var f=-1,m=Gi,p=!0,b=e.length,x=[],L=n.length;if(!b)return x;r&&(n=Pe(n,St(r))),a?(m=So,p=!1):n.length>=s&&(m=Wr,p=!1,n=new Kn(n));e:for(;++f<b;){var q=e[f],D=r==null?q:r(q);if(q=a||q!==0?q:0,p&&D===D){for(var J=L;J--;)if(n[J]===D)continue e;x.push(q)}else m(n,D,a)||x.push(q)}return x}var An=Jc(Zt),Ac=Jc(No,!0);function kv(e,n){var r=!0;return An(e,function(a,f,m){return r=!!n(a,f,m),r}),r}function cl(e,n,r){for(var a=-1,f=e.length;++a<f;){var m=e[a],p=n(m);if(p!=null&&(b===l?p===p&&!Ct(p):r(p,b)))var b=p,x=m}return x}function Ev(e,n,r,a){var f=e.length;for(r=ye(r),r<0&&(r=-r>f?0:f+r),a=a===l||a>f?f:ye(a),a<0&&(a+=f),a=r>a?0:Wf(a);r<a;)e[r++]=n;return e}function Oc(e,n){var r=[];return An(e,function(a,f,m){n(a,f,m)&&r.push(a)}),r}function tt(e,n,r,a,f){var m=-1,p=e.length;for(r||(r=m0),f||(f=[]);++m<p;){var b=e[m];n>0&&r(b)?n>1?tt(b,n-1,r,a,f):Cn(f,b):a||(f[f.length]=b)}return f}var Po=ef(),Tc=ef(!0);function Zt(e,n){return e&&Po(e,n,Xe)}function No(e,n){return e&&Tc(e,n,Xe)}function fl(e,n){return xn(n,function(r){return dn(e[r])})}function Yn(e,n){n=Tn(n,e);for(var r=0,a=n.length;e!=null&&r<a;)e=e[Jt(n[r++])];return r&&r==a?e:l}function Bc(e,n,r){var a=n(e);return be(e)?a:Cn(a,r(e))}function ot(e){return e==null?e===l?hr:tn:Wn&&Wn in Me(e)?u0(e):w0(e)}function Do(e,n){return e>n}function Av(e,n){return e!=null&&Re.call(e,n)}function Ov(e,n){return e!=null&&n in Me(e)}function Tv(e,n,r){return e>=rt(n,r)&&e<Qe(n,r)}function $o(e,n,r){for(var a=r?So:Gi,f=e[0].length,m=e.length,p=m,b=I(m),x=1/0,L=[];p--;){var q=e[p];p&&n&&(q=Pe(q,St(n))),x=rt(q.length,x),b[p]=!r&&(n||f>=120&&q.length>=120)?new Kn(p&&q):l}q=e[0];var D=-1,J=b[0];e:for(;++D<f&&L.length<x;){var oe=q[D],de=n?n(oe):oe;if(oe=r||oe!==0?oe:0,!(J?Wr(J,de):a(L,de,r))){for(p=m;--p;){var we=b[p];if(!(we?Wr(we,de):a(e[p],de,r)))continue e}J&&J.push(de),L.push(oe)}}return L}function Bv(e,n,r,a){return Zt(e,function(f,m,p){n(a,r(f),m,p)}),a}function Jr(e,n,r){n=Tn(n,e),e=_f(e,n);var a=e==null?e:e[Jt(Vt(n))];return a==null?l:wt(a,e,r)}function Rc(e){return Ue(e)&&ot(e)==_e}function Rv(e){return Ue(e)&&ot(e)==nn}function Iv(e){return Ue(e)&&ot(e)==Y}function ei(e,n,r,a,f){return e===n?!0:e==null||n==null||!Ue(e)&&!Ue(n)?e!==e&&n!==n:Mv(e,n,r,a,ei,f)}function Mv(e,n,r,a,f,m){var p=be(e),b=be(n),x=p?U:it(e),L=b?U:it(n);x=x==_e?ct:x,L=L==_e?ct:L;var q=x==ct,D=L==ct,J=x==L;if(J&&Rn(e)){if(!Rn(n))return!1;p=!0,q=!1}if(J&&!q)return m||(m=new Gt),p||Br(e)?ff(e,n,r,a,f,m):o0(e,n,x,r,a,f,m);if(!(r&T)){var oe=q&&Re.call(e,"__wrapped__"),de=D&&Re.call(n,"__wrapped__");if(oe||de){var we=oe?e.value():e,he=de?n.value():n;return m||(m=new Gt),f(we,he,r,a,m)}}return J?(m||(m=new Gt),a0(e,n,r,a,f,m)):!1}function Lv(e){return Ue(e)&&it(e)==nt}function Fo(e,n,r,a){var f=r.length,m=f,p=!a;if(e==null)return!m;for(e=Me(e);f--;){var b=r[f];if(p&&b[2]?b[1]!==e[b[0]]:!(b[0]in e))return!1}for(;++f<m;){b=r[f];var x=b[0],L=e[x],q=b[1];if(p&&b[2]){if(L===l&&!(x in e))return!1}else{var D=new Gt;if(a)var J=a(L,q,x,e,n,D);if(!(J===l?ei(q,L,T|z,a,D):J))return!1}}return!0}function Ic(e){if(!$e(e)||p0(e))return!1;var n=dn(e)?Lp:Fi;return n.test(Zn(e))}function qv(e){return Ue(e)&&ot(e)==Ut}function Vv(e){return Ue(e)&&it(e)==Fe}function Pv(e){return Ue(e)&&Ol(e.length)&&!!qe[ot(e)]}function Mc(e){return typeof e=="function"?e:e==null?mt:typeof e=="object"?be(e)?Vc(e[0],e[1]):qc(e):nd(e)}function Uo(e){if(!ri(e))return $p(e);var n=[];for(var r in Me(e))Re.call(e,r)&&r!="constructor"&&n.push(r);return n}function Nv(e){if(!$e(e))return y0(e);var n=ri(e),r=[];for(var a in e)a=="constructor"&&(n||!Re.call(e,a))||r.push(a);return r}function zo(e,n){return e<n}function Lc(e,n){var r=-1,a=dt(e)?I(e.length):[];return An(e,function(f,m,p){a[++r]=n(f,m,p)}),a}function qc(e){var n=ia(e);return n.length==1&&n[0][2]?pf(n[0][0],n[0][1]):function(r){return r===e||Fo(r,e,n)}}function Vc(e,n){return oa(e)&&gf(n)?pf(Jt(e),n):function(r){var a=pa(r,e);return a===l&&a===n?va(r,e):ei(n,a,T|z)}}function dl(e,n,r,a,f){e!==n&&Po(n,function(m,p){if(f||(f=new Gt),$e(m))Dv(e,n,p,r,dl,a,f);else{var b=a?a(ua(e,p),m,p+"",e,n,f):l;b===l&&(b=m),qo(e,p,b)}},ht)}function Dv(e,n,r,a,f,m,p){var b=ua(e,r),x=ua(n,r),L=p.get(x);if(L){qo(e,r,L);return}var q=m?m(b,x,r+"",e,n,p):l,D=q===l;if(D){var J=be(x),oe=!J&&Rn(x),de=!J&&!oe&&Br(x);q=x,J||oe||de?be(b)?q=b:ze(b)?q=ft(b):oe?(D=!1,q=jc(x,!0)):de?(D=!1,q=Yc(x,!0)):q=[]:li(x)||Xn(x)?(q=b,Xn(b)?q=Gf(b):(!$e(b)||dn(b))&&(q=mf(x))):D=!1}D&&(p.set(x,q),f(q,x,a,m,p),p.delete(x)),qo(e,r,q)}function Pc(e,n){var r=e.length;if(r)return n+=n<0?r:0,fn(n,r)?e[n]:l}function Nc(e,n,r){n.length?n=Pe(n,function(m){return be(m)?function(p){return Yn(p,m.length===1?m[0]:m)}:m}):n=[mt];var a=-1;n=Pe(n,St(ce()));var f=Lc(e,function(m,p,b){var x=Pe(n,function(L){return L(m)});return{criteria:x,index:++a,value:m}});return dp(f,function(m,p){return Xv(m,p,r)})}function $v(e,n){return Dc(e,n,function(r,a){return va(e,a)})}function Dc(e,n,r){for(var a=-1,f=n.length,m={};++a<f;){var p=n[a],b=Yn(e,p);r(b,p)&&ti(m,Tn(p,e),b)}return m}function Fv(e){return function(n){return Yn(n,e)}}function Ho(e,n,r,a){var f=a?fp:br,m=-1,p=n.length,b=e;for(e===n&&(n=ft(n)),r&&(b=Pe(e,St(r)));++m<p;)for(var x=0,L=n[m],q=r?r(L):L;(x=f(b,q,x,a))>-1;)b!==e&&nl.call(b,x,1),nl.call(e,x,1);return e}function $c(e,n){for(var r=e?n.length:0,a=r-1;r--;){var f=n[r];if(r==a||f!==m){var m=f;fn(f)?nl.call(e,f,1):jo(e,f)}}return e}function Wo(e,n){return e+ll(yc()*(n-e+1))}function Uv(e,n,r,a){for(var f=-1,m=Qe(il((n-e)/(r||1)),0),p=I(m);m--;)p[a?m:++f]=e,e+=r;return p}function Go(e,n){var r="";if(!e||n<1||n>W)return r;do n%2&&(r+=e),n=ll(n/2),n&&(e+=e);while(n);return r}function Se(e,n){return sa(vf(e,n,mt),e+"")}function zv(e){return xc(Rr(e))}function Hv(e,n){var r=Rr(e);return Sl(r,jn(n,0,r.length))}function ti(e,n,r,a){if(!$e(e))return e;n=Tn(n,e);for(var f=-1,m=n.length,p=m-1,b=e;b!=null&&++f<m;){var x=Jt(n[f]),L=r;if(x==="__proto__"||x==="constructor"||x==="prototype")return e;if(f!=p){var q=b[x];L=a?a(q,x,b):l,L===l&&(L=$e(q)?q:fn(n[f+1])?[]:{})}Zr(b,x,L),b=b[x]}return e}var Fc=ol?function(e,n){return ol.set(e,n),e}:mt,Wv=rl?function(e,n){return rl(e,"toString",{configurable:!0,enumerable:!1,value:ba(n),writable:!0})}:mt;function Gv(e){return Sl(Rr(e))}function qt(e,n,r){var a=-1,f=e.length;n<0&&(n=-n>f?0:f+n),r=r>f?f:r,r<0&&(r+=f),f=n>r?0:r-n>>>0,n>>>=0;for(var m=I(f);++a<f;)m[a]=e[a+n];return m}function Kv(e,n){var r;return An(e,function(a,f,m){return r=n(a,f,m),!r}),!!r}function hl(e,n,r){var a=0,f=e==null?a:e.length;if(typeof n=="number"&&n===n&&f<=ie){for(;a<f;){var m=a+f>>>1,p=e[m];p!==null&&!Ct(p)&&(r?p<=n:p<n)?a=m+1:f=m}return f}return Ko(e,n,mt,r)}function Ko(e,n,r,a){var f=0,m=e==null?0:e.length;if(m===0)return 0;n=r(n);for(var p=n!==n,b=n===null,x=Ct(n),L=n===l;f<m;){var q=ll((f+m)/2),D=r(e[q]),J=D!==l,oe=D===null,de=D===D,we=Ct(D);if(p)var he=a||de;else L?he=de&&(a||J):b?he=de&&J&&(a||!oe):x?he=de&&J&&!oe&&(a||!we):oe||we?he=!1:he=a?D<=n:D<n;he?f=q+1:m=q}return rt(m,O)}function Uc(e,n){for(var r=-1,a=e.length,f=0,m=[];++r<a;){var p=e[r],b=n?n(p):p;if(!r||!Kt(b,x)){var x=b;m[f++]=p===0?0:p}}return m}function zc(e){return typeof e=="number"?e:Ct(e)?ge:+e}function xt(e){if(typeof e=="string")return e;if(be(e))return Pe(e,xt)+"";if(Ct(e))return wc?wc.call(e):"";var n=e+"";return n=="0"&&1/e==-fe?"-0":n}function On(e,n,r){var a=-1,f=Gi,m=e.length,p=!0,b=[],x=b;if(r)p=!1,f=So;else if(m>=s){var L=n?null:i0(e);if(L)return ji(L);p=!1,f=Wr,x=new Kn}else x=n?[]:b;e:for(;++a<m;){var q=e[a],D=n?n(q):q;if(q=r||q!==0?q:0,p&&D===D){for(var J=x.length;J--;)if(x[J]===D)continue e;n&&x.push(D),b.push(q)}else f(x,D,r)||(x!==b&&x.push(D),b.push(q))}return b}function jo(e,n){return n=Tn(n,e),e=_f(e,n),e==null||delete e[Jt(Vt(n))]}function Hc(e,n,r,a){return ti(e,n,r(Yn(e,n)),a)}function ml(e,n,r,a){for(var f=e.length,m=a?f:-1;(a?m--:++m<f)&&n(e[m],m,e););return r?qt(e,a?0:m,a?m+1:f):qt(e,a?m+1:0,a?f:m)}function Wc(e,n){var r=e;return r instanceof ke&&(r=r.value()),xo(n,function(a,f){return f.func.apply(f.thisArg,Cn([a],f.args))},r)}function Yo(e,n,r){var a=e.length;if(a<2)return a?On(e[0]):[];for(var f=-1,m=I(a);++f<a;)for(var p=e[f],b=-1;++b<a;)b!=f&&(m[f]=Xr(m[f]||p,e[b],n,r));return On(tt(m,1),n,r)}function Gc(e,n,r){for(var a=-1,f=e.length,m=n.length,p={};++a<f;){var b=a<m?n[a]:l;r(p,e[a],b)}return p}function Qo(e){return ze(e)?e:[]}function Zo(e){return typeof e=="function"?e:mt}function Tn(e,n){return be(e)?e:oa(e,n)?[e]:Sf(Te(e))}var jv=Se;function Bn(e,n,r){var a=e.length;return r=r===l?a:r,!n&&r>=a?e:qt(e,n,r)}var Kc=qp||function(e){return et.clearTimeout(e)};function jc(e,n){if(n)return e.slice();var r=e.length,a=gc?gc(r):new e.constructor(r);return e.copy(a),a}function Xo(e){var n=new e.constructor(e.byteLength);return new el(n).set(new el(e)),n}function Yv(e,n){var r=n?Xo(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function Qv(e){var n=new e.constructor(e.source,ln.exec(e));return n.lastIndex=e.lastIndex,n}function Zv(e){return Qr?Me(Qr.call(e)):{}}function Yc(e,n){var r=n?Xo(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Qc(e,n){if(e!==n){var r=e!==l,a=e===null,f=e===e,m=Ct(e),p=n!==l,b=n===null,x=n===n,L=Ct(n);if(!b&&!L&&!m&&e>n||m&&p&&x&&!b&&!L||a&&p&&x||!r&&x||!f)return 1;if(!a&&!m&&!L&&e<n||L&&r&&f&&!a&&!m||b&&r&&f||!p&&f||!x)return-1}return 0}function Xv(e,n,r){for(var a=-1,f=e.criteria,m=n.criteria,p=f.length,b=r.length;++a<p;){var x=Qc(f[a],m[a]);if(x){if(a>=b)return x;var L=r[a];return x*(L=="desc"?-1:1)}}return e.index-n.index}function Zc(e,n,r,a){for(var f=-1,m=e.length,p=r.length,b=-1,x=n.length,L=Qe(m-p,0),q=I(x+L),D=!a;++b<x;)q[b]=n[b];for(;++f<p;)(D||f<m)&&(q[r[f]]=e[f]);for(;L--;)q[b++]=e[f++];return q}function Xc(e,n,r,a){for(var f=-1,m=e.length,p=-1,b=r.length,x=-1,L=n.length,q=Qe(m-b,0),D=I(q+L),J=!a;++f<q;)D[f]=e[f];for(var oe=f;++x<L;)D[oe+x]=n[x];for(;++p<b;)(J||f<m)&&(D[oe+r[p]]=e[f++]);return D}function ft(e,n){var r=-1,a=e.length;for(n||(n=I(a));++r<a;)n[r]=e[r];return n}function Xt(e,n,r,a){var f=!r;r||(r={});for(var m=-1,p=n.length;++m<p;){var b=n[m],x=a?a(r[b],e[b],b,r,e):l;x===l&&(x=e[b]),f?un(r,b,x):Zr(r,b,x)}return r}function Jv(e,n){return Xt(e,la(e),n)}function e0(e,n){return Xt(e,df(e),n)}function gl(e,n){return function(r,a){var f=be(r)?lp:Sv,m=n?n():{};return f(r,e,ce(a,2),m)}}function Ar(e){return Se(function(n,r){var a=-1,f=r.length,m=f>1?r[f-1]:l,p=f>2?r[2]:l;for(m=e.length>3&&typeof m=="function"?(f--,m):l,p&&at(r[0],r[1],p)&&(m=f<3?l:m,f=1),n=Me(n);++a<f;){var b=r[a];b&&e(n,b,a,m)}return n})}function Jc(e,n){return function(r,a){if(r==null)return r;if(!dt(r))return e(r,a);for(var f=r.length,m=n?f:-1,p=Me(r);(n?m--:++m<f)&&a(p[m],m,p)!==!1;);return r}}function ef(e){return function(n,r,a){for(var f=-1,m=Me(n),p=a(n),b=p.length;b--;){var x=p[e?b:++f];if(r(m[x],x,m)===!1)break}return n}}function t0(e,n,r){var a=n&R,f=ni(e);function m(){var p=this&&this!==et&&this instanceof m?f:e;return p.apply(a?r:this,arguments)}return m}function tf(e){return function(n){n=Te(n);var r=yr(n)?Wt(n):l,a=r?r[0]:n.charAt(0),f=r?Bn(r,1).join(""):n.slice(1);return a[e]()+f}}function Or(e){return function(n){return xo(ed(Jf(n).replace(Wg,"")),e,"")}}function ni(e){return function(){var n=arguments;switch(n.length){case 0:return new e;case 1:return new e(n[0]);case 2:return new e(n[0],n[1]);case 3:return new e(n[0],n[1],n[2]);case 4:return new e(n[0],n[1],n[2],n[3]);case 5:return new e(n[0],n[1],n[2],n[3],n[4]);case 6:return new e(n[0],n[1],n[2],n[3],n[4],n[5]);case 7:return new e(n[0],n[1],n[2],n[3],n[4],n[5],n[6])}var r=Er(e.prototype),a=e.apply(r,n);return $e(a)?a:r}}function n0(e,n,r){var a=ni(e);function f(){for(var m=arguments.length,p=I(m),b=m,x=Tr(f);b--;)p[b]=arguments[b];var L=m<3&&p[0]!==x&&p[m-1]!==x?[]:kn(p,x);if(m-=L.length,m<r)return af(e,n,pl,f.placeholder,l,p,L,l,l,r-m);var q=this&&this!==et&&this instanceof f?a:e;return wt(q,this,p)}return f}function nf(e){return function(n,r,a){var f=Me(n);if(!dt(n)){var m=ce(r,3);n=Xe(n),r=function(b){return m(f[b],b,f)}}var p=e(n,r,a);return p>-1?f[m?n[p]:p]:l}}function rf(e){return cn(function(n){var r=n.length,a=r,f=Mt.prototype.thru;for(e&&n.reverse();a--;){var m=n[a];if(typeof m!="function")throw new It(h);if(f&&!p&&yl(m)=="wrapper")var p=new Mt([],!0)}for(a=p?a:r;++a<r;){m=n[a];var b=yl(m),x=b=="wrapper"?ra(m):l;x&&aa(x[0])&&x[1]==(K|N|G|le)&&!x[4].length&&x[9]==1?p=p[yl(x[0])].apply(p,x[3]):p=m.length==1&&aa(m)?p[b]():p.thru(m)}return function(){var L=arguments,q=L[0];if(p&&L.length==1&&be(q))return p.plant(q).value();for(var D=0,J=r?n[D].apply(this,L):q;++D<r;)J=n[D].call(this,J);return J}})}function pl(e,n,r,a,f,m,p,b,x,L){var q=n&K,D=n&R,J=n&H,oe=n&(N|Q),de=n&V,we=J?l:ni(e);function he(){for(var Ce=arguments.length,Ee=I(Ce),kt=Ce;kt--;)Ee[kt]=arguments[kt];if(oe)var ut=Tr(he),Et=mp(Ee,ut);if(a&&(Ee=Zc(Ee,a,f,oe)),m&&(Ee=Xc(Ee,m,p,oe)),Ce-=Et,oe&&Ce<L){var He=kn(Ee,ut);return af(e,n,pl,he.placeholder,r,Ee,He,b,x,L-Ce)}var jt=D?r:this,mn=J?jt[e]:e;return Ce=Ee.length,b?Ee=S0(Ee,b):de&&Ce>1&&Ee.reverse(),q&&x<Ce&&(Ee.length=x),this&&this!==et&&this instanceof he&&(mn=we||ni(mn)),mn.apply(jt,Ee)}return he}function lf(e,n){return function(r,a){return Bv(r,e,n(a),{})}}function vl(e,n){return function(r,a){var f;if(r===l&&a===l)return n;if(r!==l&&(f=r),a!==l){if(f===l)return a;typeof r=="string"||typeof a=="string"?(r=xt(r),a=xt(a)):(r=zc(r),a=zc(a)),f=e(r,a)}return f}}function Jo(e){return cn(function(n){return n=Pe(n,St(ce())),Se(function(r){var a=this;return e(n,function(f){return wt(f,a,r)})})})}function _l(e,n){n=n===l?" ":xt(n);var r=n.length;if(r<2)return r?Go(n,e):n;var a=Go(n,il(e/wr(n)));return yr(n)?Bn(Wt(a),0,e).join(""):a.slice(0,e)}function r0(e,n,r,a){var f=n&R,m=ni(e);function p(){for(var b=-1,x=arguments.length,L=-1,q=a.length,D=I(q+x),J=this&&this!==et&&this instanceof p?m:e;++L<q;)D[L]=a[L];for(;x--;)D[L++]=arguments[++b];return wt(J,f?r:this,D)}return p}function of(e){return function(n,r,a){return a&&typeof a!="number"&&at(n,r,a)&&(r=a=l),n=hn(n),r===l?(r=n,n=0):r=hn(r),a=a===l?n<r?1:-1:hn(a),Uv(n,r,a,e)}}function bl(e){return function(n,r){return typeof n=="string"&&typeof r=="string"||(n=Pt(n),r=Pt(r)),e(n,r)}}function af(e,n,r,a,f,m,p,b,x,L){var q=n&N,D=q?p:l,J=q?l:p,oe=q?m:l,de=q?l:m;n|=q?G:j,n&=~(q?j:G),n&F||(n&=~(R|H));var we=[e,n,f,oe,D,de,J,b,x,L],he=r.apply(l,we);return aa(e)&&bf(he,we),he.placeholder=a,yf(he,e,n)}function ea(e){var n=Ye[e];return function(r,a){if(r=Pt(r),a=a==null?0:rt(ye(a),292),a&&bc(r)){var f=(Te(r)+"e").split("e"),m=n(f[0]+"e"+(+f[1]+a));return f=(Te(m)+"e").split("e"),+(f[0]+"e"+(+f[1]-a))}return n(r)}}var i0=Cr&&1/ji(new Cr([,-0]))[1]==fe?function(e){return new Cr(e)}:Sa;function uf(e){return function(n){var r=it(n);return r==nt?Bo(n):r==Fe?wp(n):hp(n,e(n))}}function sn(e,n,r,a,f,m,p,b){var x=n&H;if(!x&&typeof e!="function")throw new It(h);var L=a?a.length:0;if(L||(n&=~(G|j),a=f=l),p=p===l?p:Qe(ye(p),0),b=b===l?b:ye(b),L-=f?f.length:0,n&j){var q=a,D=f;a=f=l}var J=x?l:ra(e),oe=[e,n,r,a,f,q,D,m,p,b];if(J&&b0(oe,J),e=oe[0],n=oe[1],r=oe[2],a=oe[3],f=oe[4],b=oe[9]=oe[9]===l?x?0:e.length:Qe(oe[9]-L,0),!b&&n&(N|Q)&&(n&=~(N|Q)),!n||n==R)var de=t0(e,n,r);else n==N||n==Q?de=n0(e,n,b):(n==G||n==(R|G))&&!f.length?de=r0(e,n,r,a):de=pl.apply(l,oe);var we=J?Fc:bf;return yf(we(de,oe),e,n)}function sf(e,n,r,a){return e===l||Kt(e,xr[r])&&!Re.call(a,r)?n:e}function cf(e,n,r,a,f,m){return $e(e)&&$e(n)&&(m.set(n,e),dl(e,n,l,cf,m),m.delete(n)),e}function l0(e){return li(e)?l:e}function ff(e,n,r,a,f,m){var p=r&T,b=e.length,x=n.length;if(b!=x&&!(p&&x>b))return!1;var L=m.get(e),q=m.get(n);if(L&&q)return L==n&&q==e;var D=-1,J=!0,oe=r&z?new Kn:l;for(m.set(e,n),m.set(n,e);++D<b;){var de=e[D],we=n[D];if(a)var he=p?a(we,de,D,n,e,m):a(de,we,D,e,n,m);if(he!==l){if(he)continue;J=!1;break}if(oe){if(!Co(n,function(Ce,Ee){if(!Wr(oe,Ee)&&(de===Ce||f(de,Ce,r,a,m)))return oe.push(Ee)})){J=!1;break}}else if(!(de===we||f(de,we,r,a,m))){J=!1;break}}return m.delete(e),m.delete(n),J}function o0(e,n,r,a,f,m,p){switch(r){case _n:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case nn:return!(e.byteLength!=n.byteLength||!m(new el(e),new el(n)));case Ae:case Y:case yt:return Kt(+e,+n);case lt:return e.name==n.name&&e.message==n.message;case Ut:case je:return e==n+"";case nt:var b=Bo;case Fe:var x=a&T;if(b||(b=ji),e.size!=n.size&&!x)return!1;var L=p.get(e);if(L)return L==n;a|=z,p.set(e,n);var q=ff(b(e),b(n),a,f,m,p);return p.delete(e),q;case zt:if(Qr)return Qr.call(e)==Qr.call(n)}return!1}function a0(e,n,r,a,f,m){var p=r&T,b=ta(e),x=b.length,L=ta(n),q=L.length;if(x!=q&&!p)return!1;for(var D=x;D--;){var J=b[D];if(!(p?J in n:Re.call(n,J)))return!1}var oe=m.get(e),de=m.get(n);if(oe&&de)return oe==n&&de==e;var we=!0;m.set(e,n),m.set(n,e);for(var he=p;++D<x;){J=b[D];var Ce=e[J],Ee=n[J];if(a)var kt=p?a(Ee,Ce,J,n,e,m):a(Ce,Ee,J,e,n,m);if(!(kt===l?Ce===Ee||f(Ce,Ee,r,a,m):kt)){we=!1;break}he||(he=J=="constructor")}if(we&&!he){var ut=e.constructor,Et=n.constructor;ut!=Et&&"constructor"in e&&"constructor"in n&&!(typeof ut=="function"&&ut instanceof ut&&typeof Et=="function"&&Et instanceof Et)&&(we=!1)}return m.delete(e),m.delete(n),we}function cn(e){return sa(vf(e,l,Ef),e+"")}function ta(e){return Bc(e,Xe,la)}function na(e){return Bc(e,ht,df)}var ra=ol?function(e){return ol.get(e)}:Sa;function yl(e){for(var n=e.name+"",r=kr[n],a=Re.call(kr,n)?r.length:0;a--;){var f=r[a],m=f.func;if(m==null||m==e)return f.name}return n}function Tr(e){var n=Re.call(d,"placeholder")?d:e;return n.placeholder}function ce(){var e=d.iteratee||ya;return e=e===ya?Mc:e,arguments.length?e(arguments[0],arguments[1]):e}function wl(e,n){var r=e.__data__;return g0(n)?r[typeof n=="string"?"string":"hash"]:r.map}function ia(e){for(var n=Xe(e),r=n.length;r--;){var a=n[r],f=e[a];n[r]=[a,f,gf(f)]}return n}function Qn(e,n){var r=_p(e,n);return Ic(r)?r:l}function u0(e){var n=Re.call(e,Wn),r=e[Wn];try{e[Wn]=l;var a=!0}catch{}var f=Xi.call(e);return a&&(n?e[Wn]=r:delete e[Wn]),f}var la=Io?function(e){return e==null?[]:(e=Me(e),xn(Io(e),function(n){return vc.call(e,n)}))}:xa,df=Io?function(e){for(var n=[];e;)Cn(n,la(e)),e=tl(e);return n}:xa,it=ot;(Mo&&it(new Mo(new ArrayBuffer(1)))!=_n||Kr&&it(new Kr)!=nt||Lo&&it(Lo.resolve())!=vn||Cr&&it(new Cr)!=Fe||jr&&it(new jr)!=Dn)&&(it=function(e){var n=ot(e),r=n==ct?e.constructor:l,a=r?Zn(r):"";if(a)switch(a){case Hp:return _n;case Wp:return nt;case Gp:return vn;case Kp:return Fe;case jp:return Dn}return n});function s0(e,n,r){for(var a=-1,f=r.length;++a<f;){var m=r[a],p=m.size;switch(m.type){case"drop":e+=p;break;case"dropRight":n-=p;break;case"take":n=rt(n,e+p);break;case"takeRight":e=Qe(e,n-p);break}}return{start:e,end:n}}function c0(e){var n=e.match(co);return n?n[1].split(fo):[]}function hf(e,n,r){n=Tn(n,e);for(var a=-1,f=n.length,m=!1;++a<f;){var p=Jt(n[a]);if(!(m=e!=null&&r(e,p)))break;e=e[p]}return m||++a!=f?m:(f=e==null?0:e.length,!!f&&Ol(f)&&fn(p,f)&&(be(e)||Xn(e)))}function f0(e){var n=e.length,r=new e.constructor(n);return n&&typeof e[0]=="string"&&Re.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function mf(e){return typeof e.constructor=="function"&&!ri(e)?Er(tl(e)):{}}function d0(e,n,r){var a=e.constructor;switch(n){case nn:return Xo(e);case Ae:case Y:return new a(+e);case _n:return Yv(e,r);case mr:case Ht:case Qt:case bn:case $r:case $n:case Fn:case gr:case pr:return Yc(e,r);case nt:return new a;case yt:case je:return new a(e);case Ut:return Qv(e);case Fe:return new a;case zt:return Zv(e)}}function h0(e,n){var r=n.length;if(!r)return e;var a=r-1;return n[a]=(r>1?"& ":"")+n[a],n=n.join(r>2?", ":" "),e.replace(so,`{
8
+ */oi.exports,function(t,o){(function(){var l,u="4.17.21",s=200,c="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",h="Expected a function",g="Invalid `variable` option passed into `_.template`",w="__lodash_hash_undefined__",k=500,v="__lodash_placeholder__",C=1,E=2,y=4,T=1,z=2,R=1,H=2,F=4,N=8,Q=16,G=32,j=64,K=128,le=256,V=512,$=30,Z="...",A=800,te=16,P=1,ae=2,ue=3,fe=1/0,W=9007199254740991,se=17976931348623157e292,ge=NaN,B=4294967295,O=B-1,ie=B>>>1,ve=[["ary",K],["bind",R],["bindKey",H],["curry",N],["curryRight",Q],["flip",V],["partial",G],["partialRight",j],["rearg",le]],_e="[object Arguments]",U="[object Array]",ne="[object AsyncFunction]",Ae="[object Boolean]",Y="[object Date]",De="[object DOMException]",lt="[object Error]",Ft="[object Function]",yt="[object GeneratorFunction]",nt="[object Map]",wt="[object Number]",tn="[object Null]",ft="[object Object]",vn="[object Promise]",Dr="[object Proxy]",Ut="[object RegExp]",Fe="[object Set]",je="[object String]",zt="[object Symbol]",hr="[object Undefined]",Dn="[object WeakMap]",Li="[object WeakSet]",nn="[object ArrayBuffer]",_n="[object DataView]",mr="[object Float32Array]",Ht="[object Float64Array]",Qt="[object Int8Array]",bn="[object Int16Array]",$r="[object Int32Array]",$n="[object Uint8Array]",Fn="[object Uint8ClampedArray]",gr="[object Uint16Array]",pr="[object Uint32Array]",qi=/\b__p \+= '';/g,Vi=/\b(__p \+=) '' \+/g,Pi=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Fr=/&(?:amp|lt|gt|quot|#39);/g,Ni=/[&<>"']/g,io=RegExp(Fr.source),Di=RegExp(Ni.source),lo=/<%-([\s\S]+?)%>/g,$i=/<%([\s\S]+?)%>/g,Un=/<%=([\s\S]+?)%>/g,zn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,yn=/^\w*$/,oo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ur=/[\\^$.*+?()[\]{}|]/g,ao=RegExp(Ur.source),zr=/^\s+/,uo=/\s/,so=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,co=/\{\n\/\* \[wrapped with (.+)\] \*/,fo=/,? & /,ho=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,wn=/[()=,{}\[\]\/\s]/,Sn=/\\(\\)?/g,rn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ln=/\w*$/,Hr=/^[-+]0x[0-9a-f]+$/i,mo=/^0b[01]+$/i,Fi=/^\[object .+?Constructor\]$/,Ui=/^0o[0-7]+$/i,zi=/^(?:0|[1-9]\d*)$/,Hi=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_=/($^)/,ee=/['\n\r\u2028\u2029\\]/g,X="\\ud800-\\udfff",me="\\u0300-\\u036f",Ie="\\ufe20-\\ufe2f",Be="\\u20d0-\\u20ff",Ge=me+Ie+Be,Ve="\\u2700-\\u27bf",vr="a-z\\xdf-\\xf6\\xf8-\\xff",Lg="\\xac\\xb1\\xd7\\xf7",qg="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Vg="\\u2000-\\u206f",Pg=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",qs="A-Z\\xc0-\\xd6\\xd8-\\xde",Vs="\\ufe0e\\ufe0f",Ps=Lg+qg+Vg+Pg,go="['’]",Ng="["+X+"]",Ns="["+Ps+"]",Wi="["+Ge+"]",Ds="\\d+",Dg="["+Ve+"]",$s="["+vr+"]",Fs="[^"+X+Ps+Ds+Ve+vr+qs+"]",po="\\ud83c[\\udffb-\\udfff]",$g="(?:"+Wi+"|"+po+")",Us="[^"+X+"]",vo="(?:\\ud83c[\\udde6-\\uddff]){2}",_o="[\\ud800-\\udbff][\\udc00-\\udfff]",_r="["+qs+"]",zs="\\u200d",Hs="(?:"+$s+"|"+Fs+")",Fg="(?:"+_r+"|"+Fs+")",Ws="(?:"+go+"(?:d|ll|m|re|s|t|ve))?",Gs="(?:"+go+"(?:D|LL|M|RE|S|T|VE))?",Ks=$g+"?",js="["+Vs+"]?",Ug="(?:"+zs+"(?:"+[Us,vo,_o].join("|")+")"+js+Ks+")*",zg="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Hg="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ys=js+Ks+Ug,Wg="(?:"+[Dg,vo,_o].join("|")+")"+Ys,Gg="(?:"+[Us+Wi+"?",Wi,vo,_o,Ng].join("|")+")",Kg=RegExp(go,"g"),jg=RegExp(Wi,"g"),bo=RegExp(po+"(?="+po+")|"+Gg+Ys,"g"),Yg=RegExp([_r+"?"+$s+"+"+Ws+"(?="+[Ns,_r,"$"].join("|")+")",Fg+"+"+Gs+"(?="+[Ns,_r+Hs,"$"].join("|")+")",_r+"?"+Hs+"+"+Ws,_r+"+"+Gs,Hg,zg,Ds,Wg].join("|"),"g"),Qg=RegExp("["+zs+X+Ge+Vs+"]"),Zg=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Xg=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Jg=-1,qe={};qe[mr]=qe[Ht]=qe[Qt]=qe[bn]=qe[$r]=qe[$n]=qe[Fn]=qe[gr]=qe[pr]=!0,qe[_e]=qe[U]=qe[nn]=qe[Ae]=qe[_n]=qe[Y]=qe[lt]=qe[Ft]=qe[nt]=qe[wt]=qe[ft]=qe[Ut]=qe[Fe]=qe[je]=qe[Dn]=!1;var Le={};Le[_e]=Le[U]=Le[nn]=Le[_n]=Le[Ae]=Le[Y]=Le[mr]=Le[Ht]=Le[Qt]=Le[bn]=Le[$r]=Le[nt]=Le[wt]=Le[ft]=Le[Ut]=Le[Fe]=Le[je]=Le[zt]=Le[$n]=Le[Fn]=Le[gr]=Le[pr]=!0,Le[lt]=Le[Ft]=Le[Dn]=!1;var ep={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},tp={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},np={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},rp={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ip=parseFloat,lp=parseInt,Qs=typeof xe=="object"&&xe&&xe.Object===Object&&xe,op=typeof self=="object"&&self&&self.Object===Object&&self,et=Qs||op||Function("return this")(),yo=o&&!o.nodeType&&o,Hn=yo&&!0&&t&&!t.nodeType&&t,Zs=Hn&&Hn.exports===yo,wo=Zs&&Qs.process,Bt=function(){try{var S=Hn&&Hn.require&&Hn.require("util").types;return S||wo&&wo.binding&&wo.binding("util")}catch{}}(),Xs=Bt&&Bt.isArrayBuffer,Js=Bt&&Bt.isDate,ec=Bt&&Bt.isMap,tc=Bt&&Bt.isRegExp,nc=Bt&&Bt.isSet,rc=Bt&&Bt.isTypedArray;function St(S,M,I){switch(I.length){case 0:return S.call(M);case 1:return S.call(M,I[0]);case 2:return S.call(M,I[0],I[1]);case 3:return S.call(M,I[0],I[1],I[2])}return S.apply(M,I)}function ap(S,M,I,re){for(var pe=-1,Oe=S==null?0:S.length;++pe<Oe;){var Ye=S[pe];M(re,Ye,I(Ye),S)}return re}function Rt(S,M){for(var I=-1,re=S==null?0:S.length;++I<re&&M(S[I],I,S)!==!1;);return S}function up(S,M){for(var I=S==null?0:S.length;I--&&M(S[I],I,S)!==!1;);return S}function ic(S,M){for(var I=-1,re=S==null?0:S.length;++I<re;)if(!M(S[I],I,S))return!1;return!0}function xn(S,M){for(var I=-1,re=S==null?0:S.length,pe=0,Oe=[];++I<re;){var Ye=S[I];M(Ye,I,S)&&(Oe[pe++]=Ye)}return Oe}function Gi(S,M){var I=S==null?0:S.length;return!!I&&br(S,M,0)>-1}function So(S,M,I){for(var re=-1,pe=S==null?0:S.length;++re<pe;)if(I(M,S[re]))return!0;return!1}function Pe(S,M){for(var I=-1,re=S==null?0:S.length,pe=Array(re);++I<re;)pe[I]=M(S[I],I,S);return pe}function Cn(S,M){for(var I=-1,re=M.length,pe=S.length;++I<re;)S[pe+I]=M[I];return S}function xo(S,M,I,re){var pe=-1,Oe=S==null?0:S.length;for(re&&Oe&&(I=S[++pe]);++pe<Oe;)I=M(I,S[pe],pe,S);return I}function sp(S,M,I,re){var pe=S==null?0:S.length;for(re&&pe&&(I=S[--pe]);pe--;)I=M(I,S[pe],pe,S);return I}function Co(S,M){for(var I=-1,re=S==null?0:S.length;++I<re;)if(M(S[I],I,S))return!0;return!1}var cp=ko("length");function fp(S){return S.split("")}function dp(S){return S.match(ho)||[]}function lc(S,M,I){var re;return I(S,function(pe,Oe,Ye){if(M(pe,Oe,Ye))return re=Oe,!1}),re}function Ki(S,M,I,re){for(var pe=S.length,Oe=I+(re?1:-1);re?Oe--:++Oe<pe;)if(M(S[Oe],Oe,S))return Oe;return-1}function br(S,M,I){return M===M?Cp(S,M,I):Ki(S,oc,I)}function hp(S,M,I,re){for(var pe=I-1,Oe=S.length;++pe<Oe;)if(re(S[pe],M))return pe;return-1}function oc(S){return S!==S}function ac(S,M){var I=S==null?0:S.length;return I?Ao(S,M)/I:ge}function ko(S){return function(M){return M==null?l:M[S]}}function Eo(S){return function(M){return S==null?l:S[M]}}function uc(S,M,I,re,pe){return pe(S,function(Oe,Ye,Me){I=re?(re=!1,Oe):M(I,Oe,Ye,Me)}),I}function mp(S,M){var I=S.length;for(S.sort(M);I--;)S[I]=S[I].value;return S}function Ao(S,M){for(var I,re=-1,pe=S.length;++re<pe;){var Oe=M(S[re]);Oe!==l&&(I=I===l?Oe:I+Oe)}return I}function Oo(S,M){for(var I=-1,re=Array(S);++I<S;)re[I]=M(I);return re}function gp(S,M){return Pe(M,function(I){return[I,S[I]]})}function sc(S){return S&&S.slice(0,hc(S)+1).replace(zr,"")}function xt(S){return function(M){return S(M)}}function To(S,M){return Pe(M,function(I){return S[I]})}function Wr(S,M){return S.has(M)}function cc(S,M){for(var I=-1,re=S.length;++I<re&&br(M,S[I],0)>-1;);return I}function fc(S,M){for(var I=S.length;I--&&br(M,S[I],0)>-1;);return I}function pp(S,M){for(var I=S.length,re=0;I--;)S[I]===M&&++re;return re}var vp=Eo(ep),_p=Eo(tp);function bp(S){return"\\"+rp[S]}function yp(S,M){return S==null?l:S[M]}function yr(S){return Qg.test(S)}function wp(S){return Zg.test(S)}function Sp(S){for(var M,I=[];!(M=S.next()).done;)I.push(M.value);return I}function Bo(S){var M=-1,I=Array(S.size);return S.forEach(function(re,pe){I[++M]=[pe,re]}),I}function dc(S,M){return function(I){return S(M(I))}}function kn(S,M){for(var I=-1,re=S.length,pe=0,Oe=[];++I<re;){var Ye=S[I];(Ye===M||Ye===v)&&(S[I]=v,Oe[pe++]=I)}return Oe}function ji(S){var M=-1,I=Array(S.size);return S.forEach(function(re){I[++M]=re}),I}function xp(S){var M=-1,I=Array(S.size);return S.forEach(function(re){I[++M]=[re,re]}),I}function Cp(S,M,I){for(var re=I-1,pe=S.length;++re<pe;)if(S[re]===M)return re;return-1}function kp(S,M,I){for(var re=I+1;re--;)if(S[re]===M)return re;return re}function wr(S){return yr(S)?Ap(S):cp(S)}function Wt(S){return yr(S)?Op(S):fp(S)}function hc(S){for(var M=S.length;M--&&uo.test(S.charAt(M)););return M}var Ep=Eo(np);function Ap(S){for(var M=bo.lastIndex=0;bo.test(S);)++M;return M}function Op(S){return S.match(bo)||[]}function Tp(S){return S.match(Yg)||[]}var Bp=function S(M){M=M==null?et:Sr.defaults(et.Object(),M,Sr.pick(et,Xg));var I=M.Array,re=M.Date,pe=M.Error,Oe=M.Function,Ye=M.Math,Me=M.Object,Ro=M.RegExp,Rp=M.String,It=M.TypeError,Yi=I.prototype,Ip=Oe.prototype,xr=Me.prototype,Qi=M["__core-js_shared__"],Zi=Ip.toString,Re=xr.hasOwnProperty,Mp=0,mc=function(){var e=/[^.]+$/.exec(Qi&&Qi.keys&&Qi.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Xi=xr.toString,Lp=Zi.call(Me),qp=et._,Vp=Ro("^"+Zi.call(Re).replace(Ur,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ji=Zs?M.Buffer:l,En=M.Symbol,el=M.Uint8Array,gc=Ji?Ji.allocUnsafe:l,tl=dc(Me.getPrototypeOf,Me),pc=Me.create,vc=xr.propertyIsEnumerable,nl=Yi.splice,_c=En?En.isConcatSpreadable:l,Gr=En?En.iterator:l,Wn=En?En.toStringTag:l,rl=function(){try{var e=Qn(Me,"defineProperty");return e({},"",{}),e}catch{}}(),Pp=M.clearTimeout!==et.clearTimeout&&M.clearTimeout,Np=re&&re.now!==et.Date.now&&re.now,Dp=M.setTimeout!==et.setTimeout&&M.setTimeout,il=Ye.ceil,ll=Ye.floor,Io=Me.getOwnPropertySymbols,$p=Ji?Ji.isBuffer:l,bc=M.isFinite,Fp=Yi.join,Up=dc(Me.keys,Me),Qe=Ye.max,rt=Ye.min,zp=re.now,Hp=M.parseInt,yc=Ye.random,Wp=Yi.reverse,Mo=Qn(M,"DataView"),Kr=Qn(M,"Map"),Lo=Qn(M,"Promise"),Cr=Qn(M,"Set"),jr=Qn(M,"WeakMap"),Yr=Qn(Me,"create"),ol=jr&&new jr,kr={},Gp=Zn(Mo),Kp=Zn(Kr),jp=Zn(Lo),Yp=Zn(Cr),Qp=Zn(jr),al=En?En.prototype:l,Qr=al?al.valueOf:l,wc=al?al.toString:l;function d(e){if(Ue(e)&&!be(e)&&!(e instanceof ke)){if(e instanceof Mt)return e;if(Re.call(e,"__wrapped__"))return xf(e)}return new Mt(e)}var Er=function(){function e(){}return function(n){if(!$e(n))return{};if(pc)return pc(n);e.prototype=n;var i=new e;return e.prototype=l,i}}();function ul(){}function Mt(e,n){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=l}d.templateSettings={escape:lo,evaluate:$i,interpolate:Un,variable:"",imports:{_:d}},d.prototype=ul.prototype,d.prototype.constructor=d,Mt.prototype=Er(ul.prototype),Mt.prototype.constructor=Mt;function ke(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=B,this.__views__=[]}function Zp(){var e=new ke(this.__wrapped__);return e.__actions__=dt(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=dt(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=dt(this.__views__),e}function Xp(){if(this.__filtered__){var e=new ke(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Jp(){var e=this.__wrapped__.value(),n=this.__dir__,i=be(e),a=n<0,f=i?e.length:0,m=f0(0,f,this.__views__),p=m.start,b=m.end,x=b-p,L=a?b:p-1,q=this.__iteratees__,D=q.length,J=0,oe=rt(x,this.__takeCount__);if(!i||!a&&f==x&&oe==x)return Wc(e,this.__actions__);var de=[];e:for(;x--&&J<oe;){L+=n;for(var we=-1,he=e[L];++we<D;){var Ce=q[we],Ee=Ce.iteratee,Et=Ce.type,ut=Ee(he);if(Et==ae)he=ut;else if(!ut){if(Et==P)continue e;break e}}de[J++]=he}return de}ke.prototype=Er(ul.prototype),ke.prototype.constructor=ke;function Gn(e){var n=-1,i=e==null?0:e.length;for(this.clear();++n<i;){var a=e[n];this.set(a[0],a[1])}}function ev(){this.__data__=Yr?Yr(null):{},this.size=0}function tv(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}function nv(e){var n=this.__data__;if(Yr){var i=n[e];return i===w?l:i}return Re.call(n,e)?n[e]:l}function rv(e){var n=this.__data__;return Yr?n[e]!==l:Re.call(n,e)}function iv(e,n){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=Yr&&n===l?w:n,this}Gn.prototype.clear=ev,Gn.prototype.delete=tv,Gn.prototype.get=nv,Gn.prototype.has=rv,Gn.prototype.set=iv;function on(e){var n=-1,i=e==null?0:e.length;for(this.clear();++n<i;){var a=e[n];this.set(a[0],a[1])}}function lv(){this.__data__=[],this.size=0}function ov(e){var n=this.__data__,i=sl(n,e);if(i<0)return!1;var a=n.length-1;return i==a?n.pop():nl.call(n,i,1),--this.size,!0}function av(e){var n=this.__data__,i=sl(n,e);return i<0?l:n[i][1]}function uv(e){return sl(this.__data__,e)>-1}function sv(e,n){var i=this.__data__,a=sl(i,e);return a<0?(++this.size,i.push([e,n])):i[a][1]=n,this}on.prototype.clear=lv,on.prototype.delete=ov,on.prototype.get=av,on.prototype.has=uv,on.prototype.set=sv;function an(e){var n=-1,i=e==null?0:e.length;for(this.clear();++n<i;){var a=e[n];this.set(a[0],a[1])}}function cv(){this.size=0,this.__data__={hash:new Gn,map:new(Kr||on),string:new Gn}}function fv(e){var n=wl(this,e).delete(e);return this.size-=n?1:0,n}function dv(e){return wl(this,e).get(e)}function hv(e){return wl(this,e).has(e)}function mv(e,n){var i=wl(this,e),a=i.size;return i.set(e,n),this.size+=i.size==a?0:1,this}an.prototype.clear=cv,an.prototype.delete=fv,an.prototype.get=dv,an.prototype.has=hv,an.prototype.set=mv;function Kn(e){var n=-1,i=e==null?0:e.length;for(this.__data__=new an;++n<i;)this.add(e[n])}function gv(e){return this.__data__.set(e,w),this}function pv(e){return this.__data__.has(e)}Kn.prototype.add=Kn.prototype.push=gv,Kn.prototype.has=pv;function Gt(e){var n=this.__data__=new on(e);this.size=n.size}function vv(){this.__data__=new on,this.size=0}function _v(e){var n=this.__data__,i=n.delete(e);return this.size=n.size,i}function bv(e){return this.__data__.get(e)}function yv(e){return this.__data__.has(e)}function wv(e,n){var i=this.__data__;if(i instanceof on){var a=i.__data__;if(!Kr||a.length<s-1)return a.push([e,n]),this.size=++i.size,this;i=this.__data__=new an(a)}return i.set(e,n),this.size=i.size,this}Gt.prototype.clear=vv,Gt.prototype.delete=_v,Gt.prototype.get=bv,Gt.prototype.has=yv,Gt.prototype.set=wv;function Sc(e,n){var i=be(e),a=!i&&Xn(e),f=!i&&!a&&Rn(e),m=!i&&!a&&!f&&Br(e),p=i||a||f||m,b=p?Oo(e.length,Rp):[],x=b.length;for(var L in e)(n||Re.call(e,L))&&!(p&&(L=="length"||f&&(L=="offset"||L=="parent")||m&&(L=="buffer"||L=="byteLength"||L=="byteOffset")||fn(L,x)))&&b.push(L);return b}function xc(e){var n=e.length;return n?e[Wo(0,n-1)]:l}function Sv(e,n){return Sl(dt(e),jn(n,0,e.length))}function xv(e){return Sl(dt(e))}function qo(e,n,i){(i!==l&&!Kt(e[n],i)||i===l&&!(n in e))&&un(e,n,i)}function Zr(e,n,i){var a=e[n];(!(Re.call(e,n)&&Kt(a,i))||i===l&&!(n in e))&&un(e,n,i)}function sl(e,n){for(var i=e.length;i--;)if(Kt(e[i][0],n))return i;return-1}function Cv(e,n,i,a){return An(e,function(f,m,p){n(a,f,i(f),p)}),a}function Cc(e,n){return e&&Xt(n,Xe(n),e)}function kv(e,n){return e&&Xt(n,mt(n),e)}function un(e,n,i){n=="__proto__"&&rl?rl(e,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[n]=i}function Vo(e,n){for(var i=-1,a=n.length,f=I(a),m=e==null;++i<a;)f[i]=m?l:pa(e,n[i]);return f}function jn(e,n,i){return e===e&&(i!==l&&(e=e<=i?e:i),n!==l&&(e=e>=n?e:n)),e}function Lt(e,n,i,a,f,m){var p,b=n&C,x=n&E,L=n&y;if(i&&(p=f?i(e,a,f,m):i(e)),p!==l)return p;if(!$e(e))return e;var q=be(e);if(q){if(p=h0(e),!b)return dt(e,p)}else{var D=it(e),J=D==Ft||D==yt;if(Rn(e))return jc(e,b);if(D==ft||D==_e||J&&!f){if(p=x||J?{}:mf(e),!b)return x?n0(e,kv(p,e)):t0(e,Cc(p,e))}else{if(!Le[D])return f?e:{};p=m0(e,D,b)}}m||(m=new Gt);var oe=m.get(e);if(oe)return oe;m.set(e,p),zf(e)?e.forEach(function(he){p.add(Lt(he,n,i,he,e,m))}):Ff(e)&&e.forEach(function(he,Ce){p.set(Ce,Lt(he,n,i,Ce,e,m))});var de=L?x?na:ta:x?mt:Xe,we=q?l:de(e);return Rt(we||e,function(he,Ce){we&&(Ce=he,he=e[Ce]),Zr(p,Ce,Lt(he,n,i,Ce,e,m))}),p}function Ev(e){var n=Xe(e);return function(i){return kc(i,e,n)}}function kc(e,n,i){var a=i.length;if(e==null)return!a;for(e=Me(e);a--;){var f=i[a],m=n[f],p=e[f];if(p===l&&!(f in e)||!m(p))return!1}return!0}function Ec(e,n,i){if(typeof e!="function")throw new It(h);return ii(function(){e.apply(l,i)},n)}function Xr(e,n,i,a){var f=-1,m=Gi,p=!0,b=e.length,x=[],L=n.length;if(!b)return x;i&&(n=Pe(n,xt(i))),a?(m=So,p=!1):n.length>=s&&(m=Wr,p=!1,n=new Kn(n));e:for(;++f<b;){var q=e[f],D=i==null?q:i(q);if(q=a||q!==0?q:0,p&&D===D){for(var J=L;J--;)if(n[J]===D)continue e;x.push(q)}else m(n,D,a)||x.push(q)}return x}var An=Jc(Zt),Ac=Jc(No,!0);function Av(e,n){var i=!0;return An(e,function(a,f,m){return i=!!n(a,f,m),i}),i}function cl(e,n,i){for(var a=-1,f=e.length;++a<f;){var m=e[a],p=n(m);if(p!=null&&(b===l?p===p&&!kt(p):i(p,b)))var b=p,x=m}return x}function Ov(e,n,i,a){var f=e.length;for(i=ye(i),i<0&&(i=-i>f?0:f+i),a=a===l||a>f?f:ye(a),a<0&&(a+=f),a=i>a?0:Wf(a);i<a;)e[i++]=n;return e}function Oc(e,n){var i=[];return An(e,function(a,f,m){n(a,f,m)&&i.push(a)}),i}function tt(e,n,i,a,f){var m=-1,p=e.length;for(i||(i=p0),f||(f=[]);++m<p;){var b=e[m];n>0&&i(b)?n>1?tt(b,n-1,i,a,f):Cn(f,b):a||(f[f.length]=b)}return f}var Po=ef(),Tc=ef(!0);function Zt(e,n){return e&&Po(e,n,Xe)}function No(e,n){return e&&Tc(e,n,Xe)}function fl(e,n){return xn(n,function(i){return dn(e[i])})}function Yn(e,n){n=Tn(n,e);for(var i=0,a=n.length;e!=null&&i<a;)e=e[Jt(n[i++])];return i&&i==a?e:l}function Bc(e,n,i){var a=n(e);return be(e)?a:Cn(a,i(e))}function ot(e){return e==null?e===l?hr:tn:Wn&&Wn in Me(e)?c0(e):x0(e)}function Do(e,n){return e>n}function Tv(e,n){return e!=null&&Re.call(e,n)}function Bv(e,n){return e!=null&&n in Me(e)}function Rv(e,n,i){return e>=rt(n,i)&&e<Qe(n,i)}function $o(e,n,i){for(var a=i?So:Gi,f=e[0].length,m=e.length,p=m,b=I(m),x=1/0,L=[];p--;){var q=e[p];p&&n&&(q=Pe(q,xt(n))),x=rt(q.length,x),b[p]=!i&&(n||f>=120&&q.length>=120)?new Kn(p&&q):l}q=e[0];var D=-1,J=b[0];e:for(;++D<f&&L.length<x;){var oe=q[D],de=n?n(oe):oe;if(oe=i||oe!==0?oe:0,!(J?Wr(J,de):a(L,de,i))){for(p=m;--p;){var we=b[p];if(!(we?Wr(we,de):a(e[p],de,i)))continue e}J&&J.push(de),L.push(oe)}}return L}function Iv(e,n,i,a){return Zt(e,function(f,m,p){n(a,i(f),m,p)}),a}function Jr(e,n,i){n=Tn(n,e),e=_f(e,n);var a=e==null?e:e[Jt(Vt(n))];return a==null?l:St(a,e,i)}function Rc(e){return Ue(e)&&ot(e)==_e}function Mv(e){return Ue(e)&&ot(e)==nn}function Lv(e){return Ue(e)&&ot(e)==Y}function ei(e,n,i,a,f){return e===n?!0:e==null||n==null||!Ue(e)&&!Ue(n)?e!==e&&n!==n:qv(e,n,i,a,ei,f)}function qv(e,n,i,a,f,m){var p=be(e),b=be(n),x=p?U:it(e),L=b?U:it(n);x=x==_e?ft:x,L=L==_e?ft:L;var q=x==ft,D=L==ft,J=x==L;if(J&&Rn(e)){if(!Rn(n))return!1;p=!0,q=!1}if(J&&!q)return m||(m=new Gt),p||Br(e)?ff(e,n,i,a,f,m):u0(e,n,x,i,a,f,m);if(!(i&T)){var oe=q&&Re.call(e,"__wrapped__"),de=D&&Re.call(n,"__wrapped__");if(oe||de){var we=oe?e.value():e,he=de?n.value():n;return m||(m=new Gt),f(we,he,i,a,m)}}return J?(m||(m=new Gt),s0(e,n,i,a,f,m)):!1}function Vv(e){return Ue(e)&&it(e)==nt}function Fo(e,n,i,a){var f=i.length,m=f,p=!a;if(e==null)return!m;for(e=Me(e);f--;){var b=i[f];if(p&&b[2]?b[1]!==e[b[0]]:!(b[0]in e))return!1}for(;++f<m;){b=i[f];var x=b[0],L=e[x],q=b[1];if(p&&b[2]){if(L===l&&!(x in e))return!1}else{var D=new Gt;if(a)var J=a(L,q,x,e,n,D);if(!(J===l?ei(q,L,T|z,a,D):J))return!1}}return!0}function Ic(e){if(!$e(e)||_0(e))return!1;var n=dn(e)?Vp:Fi;return n.test(Zn(e))}function Pv(e){return Ue(e)&&ot(e)==Ut}function Nv(e){return Ue(e)&&it(e)==Fe}function Dv(e){return Ue(e)&&Ol(e.length)&&!!qe[ot(e)]}function Mc(e){return typeof e=="function"?e:e==null?gt:typeof e=="object"?be(e)?Vc(e[0],e[1]):qc(e):nd(e)}function Uo(e){if(!ri(e))return Up(e);var n=[];for(var i in Me(e))Re.call(e,i)&&i!="constructor"&&n.push(i);return n}function $v(e){if(!$e(e))return S0(e);var n=ri(e),i=[];for(var a in e)a=="constructor"&&(n||!Re.call(e,a))||i.push(a);return i}function zo(e,n){return e<n}function Lc(e,n){var i=-1,a=ht(e)?I(e.length):[];return An(e,function(f,m,p){a[++i]=n(f,m,p)}),a}function qc(e){var n=ia(e);return n.length==1&&n[0][2]?pf(n[0][0],n[0][1]):function(i){return i===e||Fo(i,e,n)}}function Vc(e,n){return oa(e)&&gf(n)?pf(Jt(e),n):function(i){var a=pa(i,e);return a===l&&a===n?va(i,e):ei(n,a,T|z)}}function dl(e,n,i,a,f){e!==n&&Po(n,function(m,p){if(f||(f=new Gt),$e(m))Fv(e,n,p,i,dl,a,f);else{var b=a?a(ua(e,p),m,p+"",e,n,f):l;b===l&&(b=m),qo(e,p,b)}},mt)}function Fv(e,n,i,a,f,m,p){var b=ua(e,i),x=ua(n,i),L=p.get(x);if(L){qo(e,i,L);return}var q=m?m(b,x,i+"",e,n,p):l,D=q===l;if(D){var J=be(x),oe=!J&&Rn(x),de=!J&&!oe&&Br(x);q=x,J||oe||de?be(b)?q=b:ze(b)?q=dt(b):oe?(D=!1,q=jc(x,!0)):de?(D=!1,q=Yc(x,!0)):q=[]:li(x)||Xn(x)?(q=b,Xn(b)?q=Gf(b):(!$e(b)||dn(b))&&(q=mf(x))):D=!1}D&&(p.set(x,q),f(q,x,a,m,p),p.delete(x)),qo(e,i,q)}function Pc(e,n){var i=e.length;if(i)return n+=n<0?i:0,fn(n,i)?e[n]:l}function Nc(e,n,i){n.length?n=Pe(n,function(m){return be(m)?function(p){return Yn(p,m.length===1?m[0]:m)}:m}):n=[gt];var a=-1;n=Pe(n,xt(ce()));var f=Lc(e,function(m,p,b){var x=Pe(n,function(L){return L(m)});return{criteria:x,index:++a,value:m}});return mp(f,function(m,p){return e0(m,p,i)})}function Uv(e,n){return Dc(e,n,function(i,a){return va(e,a)})}function Dc(e,n,i){for(var a=-1,f=n.length,m={};++a<f;){var p=n[a],b=Yn(e,p);i(b,p)&&ti(m,Tn(p,e),b)}return m}function zv(e){return function(n){return Yn(n,e)}}function Ho(e,n,i,a){var f=a?hp:br,m=-1,p=n.length,b=e;for(e===n&&(n=dt(n)),i&&(b=Pe(e,xt(i)));++m<p;)for(var x=0,L=n[m],q=i?i(L):L;(x=f(b,q,x,a))>-1;)b!==e&&nl.call(b,x,1),nl.call(e,x,1);return e}function $c(e,n){for(var i=e?n.length:0,a=i-1;i--;){var f=n[i];if(i==a||f!==m){var m=f;fn(f)?nl.call(e,f,1):jo(e,f)}}return e}function Wo(e,n){return e+ll(yc()*(n-e+1))}function Hv(e,n,i,a){for(var f=-1,m=Qe(il((n-e)/(i||1)),0),p=I(m);m--;)p[a?m:++f]=e,e+=i;return p}function Go(e,n){var i="";if(!e||n<1||n>W)return i;do n%2&&(i+=e),n=ll(n/2),n&&(e+=e);while(n);return i}function Se(e,n){return sa(vf(e,n,gt),e+"")}function Wv(e){return xc(Rr(e))}function Gv(e,n){var i=Rr(e);return Sl(i,jn(n,0,i.length))}function ti(e,n,i,a){if(!$e(e))return e;n=Tn(n,e);for(var f=-1,m=n.length,p=m-1,b=e;b!=null&&++f<m;){var x=Jt(n[f]),L=i;if(x==="__proto__"||x==="constructor"||x==="prototype")return e;if(f!=p){var q=b[x];L=a?a(q,x,b):l,L===l&&(L=$e(q)?q:fn(n[f+1])?[]:{})}Zr(b,x,L),b=b[x]}return e}var Fc=ol?function(e,n){return ol.set(e,n),e}:gt,Kv=rl?function(e,n){return rl(e,"toString",{configurable:!0,enumerable:!1,value:ba(n),writable:!0})}:gt;function jv(e){return Sl(Rr(e))}function qt(e,n,i){var a=-1,f=e.length;n<0&&(n=-n>f?0:f+n),i=i>f?f:i,i<0&&(i+=f),f=n>i?0:i-n>>>0,n>>>=0;for(var m=I(f);++a<f;)m[a]=e[a+n];return m}function Yv(e,n){var i;return An(e,function(a,f,m){return i=n(a,f,m),!i}),!!i}function hl(e,n,i){var a=0,f=e==null?a:e.length;if(typeof n=="number"&&n===n&&f<=ie){for(;a<f;){var m=a+f>>>1,p=e[m];p!==null&&!kt(p)&&(i?p<=n:p<n)?a=m+1:f=m}return f}return Ko(e,n,gt,i)}function Ko(e,n,i,a){var f=0,m=e==null?0:e.length;if(m===0)return 0;n=i(n);for(var p=n!==n,b=n===null,x=kt(n),L=n===l;f<m;){var q=ll((f+m)/2),D=i(e[q]),J=D!==l,oe=D===null,de=D===D,we=kt(D);if(p)var he=a||de;else L?he=de&&(a||J):b?he=de&&J&&(a||!oe):x?he=de&&J&&!oe&&(a||!we):oe||we?he=!1:he=a?D<=n:D<n;he?f=q+1:m=q}return rt(m,O)}function Uc(e,n){for(var i=-1,a=e.length,f=0,m=[];++i<a;){var p=e[i],b=n?n(p):p;if(!i||!Kt(b,x)){var x=b;m[f++]=p===0?0:p}}return m}function zc(e){return typeof e=="number"?e:kt(e)?ge:+e}function Ct(e){if(typeof e=="string")return e;if(be(e))return Pe(e,Ct)+"";if(kt(e))return wc?wc.call(e):"";var n=e+"";return n=="0"&&1/e==-fe?"-0":n}function On(e,n,i){var a=-1,f=Gi,m=e.length,p=!0,b=[],x=b;if(i)p=!1,f=So;else if(m>=s){var L=n?null:o0(e);if(L)return ji(L);p=!1,f=Wr,x=new Kn}else x=n?[]:b;e:for(;++a<m;){var q=e[a],D=n?n(q):q;if(q=i||q!==0?q:0,p&&D===D){for(var J=x.length;J--;)if(x[J]===D)continue e;n&&x.push(D),b.push(q)}else f(x,D,i)||(x!==b&&x.push(D),b.push(q))}return b}function jo(e,n){return n=Tn(n,e),e=_f(e,n),e==null||delete e[Jt(Vt(n))]}function Hc(e,n,i,a){return ti(e,n,i(Yn(e,n)),a)}function ml(e,n,i,a){for(var f=e.length,m=a?f:-1;(a?m--:++m<f)&&n(e[m],m,e););return i?qt(e,a?0:m,a?m+1:f):qt(e,a?m+1:0,a?f:m)}function Wc(e,n){var i=e;return i instanceof ke&&(i=i.value()),xo(n,function(a,f){return f.func.apply(f.thisArg,Cn([a],f.args))},i)}function Yo(e,n,i){var a=e.length;if(a<2)return a?On(e[0]):[];for(var f=-1,m=I(a);++f<a;)for(var p=e[f],b=-1;++b<a;)b!=f&&(m[f]=Xr(m[f]||p,e[b],n,i));return On(tt(m,1),n,i)}function Gc(e,n,i){for(var a=-1,f=e.length,m=n.length,p={};++a<f;){var b=a<m?n[a]:l;i(p,e[a],b)}return p}function Qo(e){return ze(e)?e:[]}function Zo(e){return typeof e=="function"?e:gt}function Tn(e,n){return be(e)?e:oa(e,n)?[e]:Sf(Te(e))}var Qv=Se;function Bn(e,n,i){var a=e.length;return i=i===l?a:i,!n&&i>=a?e:qt(e,n,i)}var Kc=Pp||function(e){return et.clearTimeout(e)};function jc(e,n){if(n)return e.slice();var i=e.length,a=gc?gc(i):new e.constructor(i);return e.copy(a),a}function Xo(e){var n=new e.constructor(e.byteLength);return new el(n).set(new el(e)),n}function Zv(e,n){var i=n?Xo(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}function Xv(e){var n=new e.constructor(e.source,ln.exec(e));return n.lastIndex=e.lastIndex,n}function Jv(e){return Qr?Me(Qr.call(e)):{}}function Yc(e,n){var i=n?Xo(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}function Qc(e,n){if(e!==n){var i=e!==l,a=e===null,f=e===e,m=kt(e),p=n!==l,b=n===null,x=n===n,L=kt(n);if(!b&&!L&&!m&&e>n||m&&p&&x&&!b&&!L||a&&p&&x||!i&&x||!f)return 1;if(!a&&!m&&!L&&e<n||L&&i&&f&&!a&&!m||b&&i&&f||!p&&f||!x)return-1}return 0}function e0(e,n,i){for(var a=-1,f=e.criteria,m=n.criteria,p=f.length,b=i.length;++a<p;){var x=Qc(f[a],m[a]);if(x){if(a>=b)return x;var L=i[a];return x*(L=="desc"?-1:1)}}return e.index-n.index}function Zc(e,n,i,a){for(var f=-1,m=e.length,p=i.length,b=-1,x=n.length,L=Qe(m-p,0),q=I(x+L),D=!a;++b<x;)q[b]=n[b];for(;++f<p;)(D||f<m)&&(q[i[f]]=e[f]);for(;L--;)q[b++]=e[f++];return q}function Xc(e,n,i,a){for(var f=-1,m=e.length,p=-1,b=i.length,x=-1,L=n.length,q=Qe(m-b,0),D=I(q+L),J=!a;++f<q;)D[f]=e[f];for(var oe=f;++x<L;)D[oe+x]=n[x];for(;++p<b;)(J||f<m)&&(D[oe+i[p]]=e[f++]);return D}function dt(e,n){var i=-1,a=e.length;for(n||(n=I(a));++i<a;)n[i]=e[i];return n}function Xt(e,n,i,a){var f=!i;i||(i={});for(var m=-1,p=n.length;++m<p;){var b=n[m],x=a?a(i[b],e[b],b,i,e):l;x===l&&(x=e[b]),f?un(i,b,x):Zr(i,b,x)}return i}function t0(e,n){return Xt(e,la(e),n)}function n0(e,n){return Xt(e,df(e),n)}function gl(e,n){return function(i,a){var f=be(i)?ap:Cv,m=n?n():{};return f(i,e,ce(a,2),m)}}function Ar(e){return Se(function(n,i){var a=-1,f=i.length,m=f>1?i[f-1]:l,p=f>2?i[2]:l;for(m=e.length>3&&typeof m=="function"?(f--,m):l,p&&at(i[0],i[1],p)&&(m=f<3?l:m,f=1),n=Me(n);++a<f;){var b=i[a];b&&e(n,b,a,m)}return n})}function Jc(e,n){return function(i,a){if(i==null)return i;if(!ht(i))return e(i,a);for(var f=i.length,m=n?f:-1,p=Me(i);(n?m--:++m<f)&&a(p[m],m,p)!==!1;);return i}}function ef(e){return function(n,i,a){for(var f=-1,m=Me(n),p=a(n),b=p.length;b--;){var x=p[e?b:++f];if(i(m[x],x,m)===!1)break}return n}}function r0(e,n,i){var a=n&R,f=ni(e);function m(){var p=this&&this!==et&&this instanceof m?f:e;return p.apply(a?i:this,arguments)}return m}function tf(e){return function(n){n=Te(n);var i=yr(n)?Wt(n):l,a=i?i[0]:n.charAt(0),f=i?Bn(i,1).join(""):n.slice(1);return a[e]()+f}}function Or(e){return function(n){return xo(ed(Jf(n).replace(Kg,"")),e,"")}}function ni(e){return function(){var n=arguments;switch(n.length){case 0:return new e;case 1:return new e(n[0]);case 2:return new e(n[0],n[1]);case 3:return new e(n[0],n[1],n[2]);case 4:return new e(n[0],n[1],n[2],n[3]);case 5:return new e(n[0],n[1],n[2],n[3],n[4]);case 6:return new e(n[0],n[1],n[2],n[3],n[4],n[5]);case 7:return new e(n[0],n[1],n[2],n[3],n[4],n[5],n[6])}var i=Er(e.prototype),a=e.apply(i,n);return $e(a)?a:i}}function i0(e,n,i){var a=ni(e);function f(){for(var m=arguments.length,p=I(m),b=m,x=Tr(f);b--;)p[b]=arguments[b];var L=m<3&&p[0]!==x&&p[m-1]!==x?[]:kn(p,x);if(m-=L.length,m<i)return af(e,n,pl,f.placeholder,l,p,L,l,l,i-m);var q=this&&this!==et&&this instanceof f?a:e;return St(q,this,p)}return f}function nf(e){return function(n,i,a){var f=Me(n);if(!ht(n)){var m=ce(i,3);n=Xe(n),i=function(b){return m(f[b],b,f)}}var p=e(n,i,a);return p>-1?f[m?n[p]:p]:l}}function rf(e){return cn(function(n){var i=n.length,a=i,f=Mt.prototype.thru;for(e&&n.reverse();a--;){var m=n[a];if(typeof m!="function")throw new It(h);if(f&&!p&&yl(m)=="wrapper")var p=new Mt([],!0)}for(a=p?a:i;++a<i;){m=n[a];var b=yl(m),x=b=="wrapper"?ra(m):l;x&&aa(x[0])&&x[1]==(K|N|G|le)&&!x[4].length&&x[9]==1?p=p[yl(x[0])].apply(p,x[3]):p=m.length==1&&aa(m)?p[b]():p.thru(m)}return function(){var L=arguments,q=L[0];if(p&&L.length==1&&be(q))return p.plant(q).value();for(var D=0,J=i?n[D].apply(this,L):q;++D<i;)J=n[D].call(this,J);return J}})}function pl(e,n,i,a,f,m,p,b,x,L){var q=n&K,D=n&R,J=n&H,oe=n&(N|Q),de=n&V,we=J?l:ni(e);function he(){for(var Ce=arguments.length,Ee=I(Ce),Et=Ce;Et--;)Ee[Et]=arguments[Et];if(oe)var ut=Tr(he),At=pp(Ee,ut);if(a&&(Ee=Zc(Ee,a,f,oe)),m&&(Ee=Xc(Ee,m,p,oe)),Ce-=At,oe&&Ce<L){var He=kn(Ee,ut);return af(e,n,pl,he.placeholder,i,Ee,He,b,x,L-Ce)}var jt=D?i:this,mn=J?jt[e]:e;return Ce=Ee.length,b?Ee=C0(Ee,b):de&&Ce>1&&Ee.reverse(),q&&x<Ce&&(Ee.length=x),this&&this!==et&&this instanceof he&&(mn=we||ni(mn)),mn.apply(jt,Ee)}return he}function lf(e,n){return function(i,a){return Iv(i,e,n(a),{})}}function vl(e,n){return function(i,a){var f;if(i===l&&a===l)return n;if(i!==l&&(f=i),a!==l){if(f===l)return a;typeof i=="string"||typeof a=="string"?(i=Ct(i),a=Ct(a)):(i=zc(i),a=zc(a)),f=e(i,a)}return f}}function Jo(e){return cn(function(n){return n=Pe(n,xt(ce())),Se(function(i){var a=this;return e(n,function(f){return St(f,a,i)})})})}function _l(e,n){n=n===l?" ":Ct(n);var i=n.length;if(i<2)return i?Go(n,e):n;var a=Go(n,il(e/wr(n)));return yr(n)?Bn(Wt(a),0,e).join(""):a.slice(0,e)}function l0(e,n,i,a){var f=n&R,m=ni(e);function p(){for(var b=-1,x=arguments.length,L=-1,q=a.length,D=I(q+x),J=this&&this!==et&&this instanceof p?m:e;++L<q;)D[L]=a[L];for(;x--;)D[L++]=arguments[++b];return St(J,f?i:this,D)}return p}function of(e){return function(n,i,a){return a&&typeof a!="number"&&at(n,i,a)&&(i=a=l),n=hn(n),i===l?(i=n,n=0):i=hn(i),a=a===l?n<i?1:-1:hn(a),Hv(n,i,a,e)}}function bl(e){return function(n,i){return typeof n=="string"&&typeof i=="string"||(n=Pt(n),i=Pt(i)),e(n,i)}}function af(e,n,i,a,f,m,p,b,x,L){var q=n&N,D=q?p:l,J=q?l:p,oe=q?m:l,de=q?l:m;n|=q?G:j,n&=~(q?j:G),n&F||(n&=~(R|H));var we=[e,n,f,oe,D,de,J,b,x,L],he=i.apply(l,we);return aa(e)&&bf(he,we),he.placeholder=a,yf(he,e,n)}function ea(e){var n=Ye[e];return function(i,a){if(i=Pt(i),a=a==null?0:rt(ye(a),292),a&&bc(i)){var f=(Te(i)+"e").split("e"),m=n(f[0]+"e"+(+f[1]+a));return f=(Te(m)+"e").split("e"),+(f[0]+"e"+(+f[1]-a))}return n(i)}}var o0=Cr&&1/ji(new Cr([,-0]))[1]==fe?function(e){return new Cr(e)}:Sa;function uf(e){return function(n){var i=it(n);return i==nt?Bo(n):i==Fe?xp(n):gp(n,e(n))}}function sn(e,n,i,a,f,m,p,b){var x=n&H;if(!x&&typeof e!="function")throw new It(h);var L=a?a.length:0;if(L||(n&=~(G|j),a=f=l),p=p===l?p:Qe(ye(p),0),b=b===l?b:ye(b),L-=f?f.length:0,n&j){var q=a,D=f;a=f=l}var J=x?l:ra(e),oe=[e,n,i,a,f,q,D,m,p,b];if(J&&w0(oe,J),e=oe[0],n=oe[1],i=oe[2],a=oe[3],f=oe[4],b=oe[9]=oe[9]===l?x?0:e.length:Qe(oe[9]-L,0),!b&&n&(N|Q)&&(n&=~(N|Q)),!n||n==R)var de=r0(e,n,i);else n==N||n==Q?de=i0(e,n,b):(n==G||n==(R|G))&&!f.length?de=l0(e,n,i,a):de=pl.apply(l,oe);var we=J?Fc:bf;return yf(we(de,oe),e,n)}function sf(e,n,i,a){return e===l||Kt(e,xr[i])&&!Re.call(a,i)?n:e}function cf(e,n,i,a,f,m){return $e(e)&&$e(n)&&(m.set(n,e),dl(e,n,l,cf,m),m.delete(n)),e}function a0(e){return li(e)?l:e}function ff(e,n,i,a,f,m){var p=i&T,b=e.length,x=n.length;if(b!=x&&!(p&&x>b))return!1;var L=m.get(e),q=m.get(n);if(L&&q)return L==n&&q==e;var D=-1,J=!0,oe=i&z?new Kn:l;for(m.set(e,n),m.set(n,e);++D<b;){var de=e[D],we=n[D];if(a)var he=p?a(we,de,D,n,e,m):a(de,we,D,e,n,m);if(he!==l){if(he)continue;J=!1;break}if(oe){if(!Co(n,function(Ce,Ee){if(!Wr(oe,Ee)&&(de===Ce||f(de,Ce,i,a,m)))return oe.push(Ee)})){J=!1;break}}else if(!(de===we||f(de,we,i,a,m))){J=!1;break}}return m.delete(e),m.delete(n),J}function u0(e,n,i,a,f,m,p){switch(i){case _n:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case nn:return!(e.byteLength!=n.byteLength||!m(new el(e),new el(n)));case Ae:case Y:case wt:return Kt(+e,+n);case lt:return e.name==n.name&&e.message==n.message;case Ut:case je:return e==n+"";case nt:var b=Bo;case Fe:var x=a&T;if(b||(b=ji),e.size!=n.size&&!x)return!1;var L=p.get(e);if(L)return L==n;a|=z,p.set(e,n);var q=ff(b(e),b(n),a,f,m,p);return p.delete(e),q;case zt:if(Qr)return Qr.call(e)==Qr.call(n)}return!1}function s0(e,n,i,a,f,m){var p=i&T,b=ta(e),x=b.length,L=ta(n),q=L.length;if(x!=q&&!p)return!1;for(var D=x;D--;){var J=b[D];if(!(p?J in n:Re.call(n,J)))return!1}var oe=m.get(e),de=m.get(n);if(oe&&de)return oe==n&&de==e;var we=!0;m.set(e,n),m.set(n,e);for(var he=p;++D<x;){J=b[D];var Ce=e[J],Ee=n[J];if(a)var Et=p?a(Ee,Ce,J,n,e,m):a(Ce,Ee,J,e,n,m);if(!(Et===l?Ce===Ee||f(Ce,Ee,i,a,m):Et)){we=!1;break}he||(he=J=="constructor")}if(we&&!he){var ut=e.constructor,At=n.constructor;ut!=At&&"constructor"in e&&"constructor"in n&&!(typeof ut=="function"&&ut instanceof ut&&typeof At=="function"&&At instanceof At)&&(we=!1)}return m.delete(e),m.delete(n),we}function cn(e){return sa(vf(e,l,Ef),e+"")}function ta(e){return Bc(e,Xe,la)}function na(e){return Bc(e,mt,df)}var ra=ol?function(e){return ol.get(e)}:Sa;function yl(e){for(var n=e.name+"",i=kr[n],a=Re.call(kr,n)?i.length:0;a--;){var f=i[a],m=f.func;if(m==null||m==e)return f.name}return n}function Tr(e){var n=Re.call(d,"placeholder")?d:e;return n.placeholder}function ce(){var e=d.iteratee||ya;return e=e===ya?Mc:e,arguments.length?e(arguments[0],arguments[1]):e}function wl(e,n){var i=e.__data__;return v0(n)?i[typeof n=="string"?"string":"hash"]:i.map}function ia(e){for(var n=Xe(e),i=n.length;i--;){var a=n[i],f=e[a];n[i]=[a,f,gf(f)]}return n}function Qn(e,n){var i=yp(e,n);return Ic(i)?i:l}function c0(e){var n=Re.call(e,Wn),i=e[Wn];try{e[Wn]=l;var a=!0}catch{}var f=Xi.call(e);return a&&(n?e[Wn]=i:delete e[Wn]),f}var la=Io?function(e){return e==null?[]:(e=Me(e),xn(Io(e),function(n){return vc.call(e,n)}))}:xa,df=Io?function(e){for(var n=[];e;)Cn(n,la(e)),e=tl(e);return n}:xa,it=ot;(Mo&&it(new Mo(new ArrayBuffer(1)))!=_n||Kr&&it(new Kr)!=nt||Lo&&it(Lo.resolve())!=vn||Cr&&it(new Cr)!=Fe||jr&&it(new jr)!=Dn)&&(it=function(e){var n=ot(e),i=n==ft?e.constructor:l,a=i?Zn(i):"";if(a)switch(a){case Gp:return _n;case Kp:return nt;case jp:return vn;case Yp:return Fe;case Qp:return Dn}return n});function f0(e,n,i){for(var a=-1,f=i.length;++a<f;){var m=i[a],p=m.size;switch(m.type){case"drop":e+=p;break;case"dropRight":n-=p;break;case"take":n=rt(n,e+p);break;case"takeRight":e=Qe(e,n-p);break}}return{start:e,end:n}}function d0(e){var n=e.match(co);return n?n[1].split(fo):[]}function hf(e,n,i){n=Tn(n,e);for(var a=-1,f=n.length,m=!1;++a<f;){var p=Jt(n[a]);if(!(m=e!=null&&i(e,p)))break;e=e[p]}return m||++a!=f?m:(f=e==null?0:e.length,!!f&&Ol(f)&&fn(p,f)&&(be(e)||Xn(e)))}function h0(e){var n=e.length,i=new e.constructor(n);return n&&typeof e[0]=="string"&&Re.call(e,"index")&&(i.index=e.index,i.input=e.input),i}function mf(e){return typeof e.constructor=="function"&&!ri(e)?Er(tl(e)):{}}function m0(e,n,i){var a=e.constructor;switch(n){case nn:return Xo(e);case Ae:case Y:return new a(+e);case _n:return Zv(e,i);case mr:case Ht:case Qt:case bn:case $r:case $n:case Fn:case gr:case pr:return Yc(e,i);case nt:return new a;case wt:case je:return new a(e);case Ut:return Xv(e);case Fe:return new a;case zt:return Jv(e)}}function g0(e,n){var i=n.length;if(!i)return e;var a=i-1;return n[a]=(i>1?"& ":"")+n[a],n=n.join(i>2?", ":" "),e.replace(so,`{
9
9
  /* [wrapped with `+n+`] */
10
- `)}function m0(e){return be(e)||Xn(e)||!!(_c&&e&&e[_c])}function fn(e,n){var r=typeof e;return n=n??W,!!n&&(r=="number"||r!="symbol"&&zi.test(e))&&e>-1&&e%1==0&&e<n}function at(e,n,r){if(!$e(r))return!1;var a=typeof n;return(a=="number"?dt(r)&&fn(n,r.length):a=="string"&&n in r)?Kt(r[n],e):!1}function oa(e,n){if(be(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Ct(e)?!0:yn.test(e)||!zn.test(e)||n!=null&&e in Me(n)}function g0(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}function aa(e){var n=yl(e),r=d[n];if(typeof r!="function"||!(n in ke.prototype))return!1;if(e===r)return!0;var a=ra(r);return!!a&&e===a[0]}function p0(e){return!!mc&&mc in e}var v0=Qi?dn:Ca;function ri(e){var n=e&&e.constructor,r=typeof n=="function"&&n.prototype||xr;return e===r}function gf(e){return e===e&&!$e(e)}function pf(e,n){return function(r){return r==null?!1:r[e]===n&&(n!==l||e in Me(r))}}function _0(e){var n=El(e,function(a){return r.size===k&&r.clear(),a}),r=n.cache;return n}function b0(e,n){var r=e[1],a=n[1],f=r|a,m=f<(R|H|K),p=a==K&&r==N||a==K&&r==le&&e[7].length<=n[8]||a==(K|le)&&n[7].length<=n[8]&&r==N;if(!(m||p))return e;a&R&&(e[2]=n[2],f|=r&R?0:F);var b=n[3];if(b){var x=e[3];e[3]=x?Zc(x,b,n[4]):b,e[4]=x?kn(e[3],v):n[4]}return b=n[5],b&&(x=e[5],e[5]=x?Xc(x,b,n[6]):b,e[6]=x?kn(e[5],v):n[6]),b=n[7],b&&(e[7]=b),a&K&&(e[8]=e[8]==null?n[8]:rt(e[8],n[8])),e[9]==null&&(e[9]=n[9]),e[0]=n[0],e[1]=f,e}function y0(e){var n=[];if(e!=null)for(var r in Me(e))n.push(r);return n}function w0(e){return Xi.call(e)}function vf(e,n,r){return n=Qe(n===l?e.length-1:n,0),function(){for(var a=arguments,f=-1,m=Qe(a.length-n,0),p=I(m);++f<m;)p[f]=a[n+f];f=-1;for(var b=I(n+1);++f<n;)b[f]=a[f];return b[n]=r(p),wt(e,this,b)}}function _f(e,n){return n.length<2?e:Yn(e,qt(n,0,-1))}function S0(e,n){for(var r=e.length,a=rt(n.length,r),f=ft(e);a--;){var m=n[a];e[a]=fn(m,r)?f[m]:l}return e}function ua(e,n){if(!(n==="constructor"&&typeof e[n]=="function")&&n!="__proto__")return e[n]}var bf=wf(Fc),ii=Pp||function(e,n){return et.setTimeout(e,n)},sa=wf(Wv);function yf(e,n,r){var a=n+"";return sa(e,h0(a,x0(c0(a),r)))}function wf(e){var n=0,r=0;return function(){var a=Fp(),f=te-(a-r);if(r=a,f>0){if(++n>=A)return arguments[0]}else n=0;return e.apply(l,arguments)}}function Sl(e,n){var r=-1,a=e.length,f=a-1;for(n=n===l?a:n;++r<n;){var m=Wo(r,f),p=e[m];e[m]=e[r],e[r]=p}return e.length=n,e}var Sf=_0(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(oo,function(r,a,f,m){n.push(f?m.replace(Sn,"$1"):a||r)}),n});function Jt(e){if(typeof e=="string"||Ct(e))return e;var n=e+"";return n=="0"&&1/e==-fe?"-0":n}function Zn(e){if(e!=null){try{return Zi.call(e)}catch{}try{return e+""}catch{}}return""}function x0(e,n){return Rt(ve,function(r){var a="_."+r[0];n&r[1]&&!Gi(e,a)&&e.push(a)}),e.sort()}function xf(e){if(e instanceof ke)return e.clone();var n=new Mt(e.__wrapped__,e.__chain__);return n.__actions__=ft(e.__actions__),n.__index__=e.__index__,n.__values__=e.__values__,n}function C0(e,n,r){(r?at(e,n,r):n===l)?n=1:n=Qe(ye(n),0);var a=e==null?0:e.length;if(!a||n<1)return[];for(var f=0,m=0,p=I(il(a/n));f<a;)p[m++]=qt(e,f,f+=n);return p}function k0(e){for(var n=-1,r=e==null?0:e.length,a=0,f=[];++n<r;){var m=e[n];m&&(f[a++]=m)}return f}function E0(){var e=arguments.length;if(!e)return[];for(var n=I(e-1),r=arguments[0],a=e;a--;)n[a-1]=arguments[a];return Cn(be(r)?ft(r):[r],tt(n,1))}var A0=Se(function(e,n){return ze(e)?Xr(e,tt(n,1,ze,!0)):[]}),O0=Se(function(e,n){var r=Vt(n);return ze(r)&&(r=l),ze(e)?Xr(e,tt(n,1,ze,!0),ce(r,2)):[]}),T0=Se(function(e,n){var r=Vt(n);return ze(r)&&(r=l),ze(e)?Xr(e,tt(n,1,ze,!0),l,r):[]});function B0(e,n,r){var a=e==null?0:e.length;return a?(n=r||n===l?1:ye(n),qt(e,n<0?0:n,a)):[]}function R0(e,n,r){var a=e==null?0:e.length;return a?(n=r||n===l?1:ye(n),n=a-n,qt(e,0,n<0?0:n)):[]}function I0(e,n){return e&&e.length?ml(e,ce(n,3),!0,!0):[]}function M0(e,n){return e&&e.length?ml(e,ce(n,3),!0):[]}function L0(e,n,r,a){var f=e==null?0:e.length;return f?(r&&typeof r!="number"&&at(e,n,r)&&(r=0,a=f),Ev(e,n,r,a)):[]}function Cf(e,n,r){var a=e==null?0:e.length;if(!a)return-1;var f=r==null?0:ye(r);return f<0&&(f=Qe(a+f,0)),Ki(e,ce(n,3),f)}function kf(e,n,r){var a=e==null?0:e.length;if(!a)return-1;var f=a-1;return r!==l&&(f=ye(r),f=r<0?Qe(a+f,0):rt(f,a-1)),Ki(e,ce(n,3),f,!0)}function Ef(e){var n=e==null?0:e.length;return n?tt(e,1):[]}function q0(e){var n=e==null?0:e.length;return n?tt(e,fe):[]}function V0(e,n){var r=e==null?0:e.length;return r?(n=n===l?1:ye(n),tt(e,n)):[]}function P0(e){for(var n=-1,r=e==null?0:e.length,a={};++n<r;){var f=e[n];a[f[0]]=f[1]}return a}function Af(e){return e&&e.length?e[0]:l}function N0(e,n,r){var a=e==null?0:e.length;if(!a)return-1;var f=r==null?0:ye(r);return f<0&&(f=Qe(a+f,0)),br(e,n,f)}function D0(e){var n=e==null?0:e.length;return n?qt(e,0,-1):[]}var $0=Se(function(e){var n=Pe(e,Qo);return n.length&&n[0]===e[0]?$o(n):[]}),F0=Se(function(e){var n=Vt(e),r=Pe(e,Qo);return n===Vt(r)?n=l:r.pop(),r.length&&r[0]===e[0]?$o(r,ce(n,2)):[]}),U0=Se(function(e){var n=Vt(e),r=Pe(e,Qo);return n=typeof n=="function"?n:l,n&&r.pop(),r.length&&r[0]===e[0]?$o(r,l,n):[]});function z0(e,n){return e==null?"":Dp.call(e,n)}function Vt(e){var n=e==null?0:e.length;return n?e[n-1]:l}function H0(e,n,r){var a=e==null?0:e.length;if(!a)return-1;var f=a;return r!==l&&(f=ye(r),f=f<0?Qe(a+f,0):rt(f,a-1)),n===n?xp(e,n,f):Ki(e,oc,f,!0)}function W0(e,n){return e&&e.length?Pc(e,ye(n)):l}var G0=Se(Of);function Of(e,n){return e&&e.length&&n&&n.length?Ho(e,n):e}function K0(e,n,r){return e&&e.length&&n&&n.length?Ho(e,n,ce(r,2)):e}function j0(e,n,r){return e&&e.length&&n&&n.length?Ho(e,n,l,r):e}var Y0=cn(function(e,n){var r=e==null?0:e.length,a=Vo(e,n);return $c(e,Pe(n,function(f){return fn(f,r)?+f:f}).sort(Qc)),a});function Q0(e,n){var r=[];if(!(e&&e.length))return r;var a=-1,f=[],m=e.length;for(n=ce(n,3);++a<m;){var p=e[a];n(p,a,e)&&(r.push(p),f.push(a))}return $c(e,f),r}function ca(e){return e==null?e:zp.call(e)}function Z0(e,n,r){var a=e==null?0:e.length;return a?(r&&typeof r!="number"&&at(e,n,r)?(n=0,r=a):(n=n==null?0:ye(n),r=r===l?a:ye(r)),qt(e,n,r)):[]}function X0(e,n){return hl(e,n)}function J0(e,n,r){return Ko(e,n,ce(r,2))}function e_(e,n){var r=e==null?0:e.length;if(r){var a=hl(e,n);if(a<r&&Kt(e[a],n))return a}return-1}function t_(e,n){return hl(e,n,!0)}function n_(e,n,r){return Ko(e,n,ce(r,2),!0)}function r_(e,n){var r=e==null?0:e.length;if(r){var a=hl(e,n,!0)-1;if(Kt(e[a],n))return a}return-1}function i_(e){return e&&e.length?Uc(e):[]}function l_(e,n){return e&&e.length?Uc(e,ce(n,2)):[]}function o_(e){var n=e==null?0:e.length;return n?qt(e,1,n):[]}function a_(e,n,r){return e&&e.length?(n=r||n===l?1:ye(n),qt(e,0,n<0?0:n)):[]}function u_(e,n,r){var a=e==null?0:e.length;return a?(n=r||n===l?1:ye(n),n=a-n,qt(e,n<0?0:n,a)):[]}function s_(e,n){return e&&e.length?ml(e,ce(n,3),!1,!0):[]}function c_(e,n){return e&&e.length?ml(e,ce(n,3)):[]}var f_=Se(function(e){return On(tt(e,1,ze,!0))}),d_=Se(function(e){var n=Vt(e);return ze(n)&&(n=l),On(tt(e,1,ze,!0),ce(n,2))}),h_=Se(function(e){var n=Vt(e);return n=typeof n=="function"?n:l,On(tt(e,1,ze,!0),l,n)});function m_(e){return e&&e.length?On(e):[]}function g_(e,n){return e&&e.length?On(e,ce(n,2)):[]}function p_(e,n){return n=typeof n=="function"?n:l,e&&e.length?On(e,l,n):[]}function fa(e){if(!(e&&e.length))return[];var n=0;return e=xn(e,function(r){if(ze(r))return n=Qe(r.length,n),!0}),Oo(n,function(r){return Pe(e,ko(r))})}function Tf(e,n){if(!(e&&e.length))return[];var r=fa(e);return n==null?r:Pe(r,function(a){return wt(n,l,a)})}var v_=Se(function(e,n){return ze(e)?Xr(e,n):[]}),__=Se(function(e){return Yo(xn(e,ze))}),b_=Se(function(e){var n=Vt(e);return ze(n)&&(n=l),Yo(xn(e,ze),ce(n,2))}),y_=Se(function(e){var n=Vt(e);return n=typeof n=="function"?n:l,Yo(xn(e,ze),l,n)}),w_=Se(fa);function S_(e,n){return Gc(e||[],n||[],Zr)}function x_(e,n){return Gc(e||[],n||[],ti)}var C_=Se(function(e){var n=e.length,r=n>1?e[n-1]:l;return r=typeof r=="function"?(e.pop(),r):l,Tf(e,r)});function Bf(e){var n=d(e);return n.__chain__=!0,n}function k_(e,n){return n(e),e}function xl(e,n){return n(e)}var E_=cn(function(e){var n=e.length,r=n?e[0]:0,a=this.__wrapped__,f=function(m){return Vo(m,e)};return n>1||this.__actions__.length||!(a instanceof ke)||!fn(r)?this.thru(f):(a=a.slice(r,+r+(n?1:0)),a.__actions__.push({func:xl,args:[f],thisArg:l}),new Mt(a,this.__chain__).thru(function(m){return n&&!m.length&&m.push(l),m}))});function A_(){return Bf(this)}function O_(){return new Mt(this.value(),this.__chain__)}function T_(){this.__values__===l&&(this.__values__=Hf(this.value()));var e=this.__index__>=this.__values__.length,n=e?l:this.__values__[this.__index__++];return{done:e,value:n}}function B_(){return this}function R_(e){for(var n,r=this;r instanceof ul;){var a=xf(r);a.__index__=0,a.__values__=l,n?f.__wrapped__=a:n=a;var f=a;r=r.__wrapped__}return f.__wrapped__=e,n}function I_(){var e=this.__wrapped__;if(e instanceof ke){var n=e;return this.__actions__.length&&(n=new ke(this)),n=n.reverse(),n.__actions__.push({func:xl,args:[ca],thisArg:l}),new Mt(n,this.__chain__)}return this.thru(ca)}function M_(){return Wc(this.__wrapped__,this.__actions__)}var L_=gl(function(e,n,r){Re.call(e,r)?++e[r]:un(e,r,1)});function q_(e,n,r){var a=be(e)?ic:kv;return r&&at(e,n,r)&&(n=l),a(e,ce(n,3))}function V_(e,n){var r=be(e)?xn:Oc;return r(e,ce(n,3))}var P_=nf(Cf),N_=nf(kf);function D_(e,n){return tt(Cl(e,n),1)}function $_(e,n){return tt(Cl(e,n),fe)}function F_(e,n,r){return r=r===l?1:ye(r),tt(Cl(e,n),r)}function Rf(e,n){var r=be(e)?Rt:An;return r(e,ce(n,3))}function If(e,n){var r=be(e)?op:Ac;return r(e,ce(n,3))}var U_=gl(function(e,n,r){Re.call(e,r)?e[r].push(n):un(e,r,[n])});function z_(e,n,r,a){e=dt(e)?e:Rr(e),r=r&&!a?ye(r):0;var f=e.length;return r<0&&(r=Qe(f+r,0)),Tl(e)?r<=f&&e.indexOf(n,r)>-1:!!f&&br(e,n,r)>-1}var H_=Se(function(e,n,r){var a=-1,f=typeof n=="function",m=dt(e)?I(e.length):[];return An(e,function(p){m[++a]=f?wt(n,p,r):Jr(p,n,r)}),m}),W_=gl(function(e,n,r){un(e,r,n)});function Cl(e,n){var r=be(e)?Pe:Lc;return r(e,ce(n,3))}function G_(e,n,r,a){return e==null?[]:(be(n)||(n=n==null?[]:[n]),r=a?l:r,be(r)||(r=r==null?[]:[r]),Nc(e,n,r))}var K_=gl(function(e,n,r){e[r?0:1].push(n)},function(){return[[],[]]});function j_(e,n,r){var a=be(e)?xo:uc,f=arguments.length<3;return a(e,ce(n,4),r,f,An)}function Y_(e,n,r){var a=be(e)?ap:uc,f=arguments.length<3;return a(e,ce(n,4),r,f,Ac)}function Q_(e,n){var r=be(e)?xn:Oc;return r(e,Al(ce(n,3)))}function Z_(e){var n=be(e)?xc:zv;return n(e)}function X_(e,n,r){(r?at(e,n,r):n===l)?n=1:n=ye(n);var a=be(e)?yv:Hv;return a(e,n)}function J_(e){var n=be(e)?wv:Gv;return n(e)}function eb(e){if(e==null)return 0;if(dt(e))return Tl(e)?wr(e):e.length;var n=it(e);return n==nt||n==Fe?e.size:Uo(e).length}function tb(e,n,r){var a=be(e)?Co:Kv;return r&&at(e,n,r)&&(n=l),a(e,ce(n,3))}var nb=Se(function(e,n){if(e==null)return[];var r=n.length;return r>1&&at(e,n[0],n[1])?n=[]:r>2&&at(n[0],n[1],n[2])&&(n=[n[0]]),Nc(e,tt(n,1),[])}),kl=Vp||function(){return et.Date.now()};function rb(e,n){if(typeof n!="function")throw new It(h);return e=ye(e),function(){if(--e<1)return n.apply(this,arguments)}}function Mf(e,n,r){return n=r?l:n,n=e&&n==null?e.length:n,sn(e,K,l,l,l,l,n)}function Lf(e,n){var r;if(typeof n!="function")throw new It(h);return e=ye(e),function(){return--e>0&&(r=n.apply(this,arguments)),e<=1&&(n=l),r}}var da=Se(function(e,n,r){var a=R;if(r.length){var f=kn(r,Tr(da));a|=G}return sn(e,a,n,r,f)}),qf=Se(function(e,n,r){var a=R|H;if(r.length){var f=kn(r,Tr(qf));a|=G}return sn(n,a,e,r,f)});function Vf(e,n,r){n=r?l:n;var a=sn(e,N,l,l,l,l,l,n);return a.placeholder=Vf.placeholder,a}function Pf(e,n,r){n=r?l:n;var a=sn(e,Q,l,l,l,l,l,n);return a.placeholder=Pf.placeholder,a}function Nf(e,n,r){var a,f,m,p,b,x,L=0,q=!1,D=!1,J=!0;if(typeof e!="function")throw new It(h);n=Pt(n)||0,$e(r)&&(q=!!r.leading,D="maxWait"in r,m=D?Qe(Pt(r.maxWait)||0,n):m,J="trailing"in r?!!r.trailing:J);function oe(He){var jt=a,mn=f;return a=f=l,L=He,p=e.apply(mn,jt),p}function de(He){return L=He,b=ii(Ce,n),q?oe(He):p}function we(He){var jt=He-x,mn=He-L,rd=n-jt;return D?rt(rd,m-mn):rd}function he(He){var jt=He-x,mn=He-L;return x===l||jt>=n||jt<0||D&&mn>=m}function Ce(){var He=kl();if(he(He))return Ee(He);b=ii(Ce,we(He))}function Ee(He){return b=l,J&&a?oe(He):(a=f=l,p)}function kt(){b!==l&&Kc(b),L=0,a=x=f=b=l}function ut(){return b===l?p:Ee(kl())}function Et(){var He=kl(),jt=he(He);if(a=arguments,f=this,x=He,jt){if(b===l)return de(x);if(D)return Kc(b),b=ii(Ce,n),oe(x)}return b===l&&(b=ii(Ce,n)),p}return Et.cancel=kt,Et.flush=ut,Et}var ib=Se(function(e,n){return Ec(e,1,n)}),lb=Se(function(e,n,r){return Ec(e,Pt(n)||0,r)});function ob(e){return sn(e,V)}function El(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new It(h);var r=function(){var a=arguments,f=n?n.apply(this,a):a[0],m=r.cache;if(m.has(f))return m.get(f);var p=e.apply(this,a);return r.cache=m.set(f,p)||m,p};return r.cache=new(El.Cache||an),r}El.Cache=an;function Al(e){if(typeof e!="function")throw new It(h);return function(){var n=arguments;switch(n.length){case 0:return!e.call(this);case 1:return!e.call(this,n[0]);case 2:return!e.call(this,n[0],n[1]);case 3:return!e.call(this,n[0],n[1],n[2])}return!e.apply(this,n)}}function ab(e){return Lf(2,e)}var ub=jv(function(e,n){n=n.length==1&&be(n[0])?Pe(n[0],St(ce())):Pe(tt(n,1),St(ce()));var r=n.length;return Se(function(a){for(var f=-1,m=rt(a.length,r);++f<m;)a[f]=n[f].call(this,a[f]);return wt(e,this,a)})}),ha=Se(function(e,n){var r=kn(n,Tr(ha));return sn(e,G,l,n,r)}),Df=Se(function(e,n){var r=kn(n,Tr(Df));return sn(e,j,l,n,r)}),sb=cn(function(e,n){return sn(e,le,l,l,l,n)});function cb(e,n){if(typeof e!="function")throw new It(h);return n=n===l?n:ye(n),Se(e,n)}function fb(e,n){if(typeof e!="function")throw new It(h);return n=n==null?0:Qe(ye(n),0),Se(function(r){var a=r[n],f=Bn(r,0,n);return a&&Cn(f,a),wt(e,this,f)})}function db(e,n,r){var a=!0,f=!0;if(typeof e!="function")throw new It(h);return $e(r)&&(a="leading"in r?!!r.leading:a,f="trailing"in r?!!r.trailing:f),Nf(e,n,{leading:a,maxWait:n,trailing:f})}function hb(e){return Mf(e,1)}function mb(e,n){return ha(Zo(n),e)}function gb(){if(!arguments.length)return[];var e=arguments[0];return be(e)?e:[e]}function pb(e){return Lt(e,y)}function vb(e,n){return n=typeof n=="function"?n:l,Lt(e,y,n)}function _b(e){return Lt(e,C|y)}function bb(e,n){return n=typeof n=="function"?n:l,Lt(e,C|y,n)}function yb(e,n){return n==null||kc(e,n,Xe(n))}function Kt(e,n){return e===n||e!==e&&n!==n}var wb=bl(Do),Sb=bl(function(e,n){return e>=n}),Xn=Rc(function(){return arguments}())?Rc:function(e){return Ue(e)&&Re.call(e,"callee")&&!vc.call(e,"callee")},be=I.isArray,xb=Xs?St(Xs):Rv;function dt(e){return e!=null&&Ol(e.length)&&!dn(e)}function ze(e){return Ue(e)&&dt(e)}function Cb(e){return e===!0||e===!1||Ue(e)&&ot(e)==Ae}var Rn=Np||Ca,kb=Js?St(Js):Iv;function Eb(e){return Ue(e)&&e.nodeType===1&&!li(e)}function Ab(e){if(e==null)return!0;if(dt(e)&&(be(e)||typeof e=="string"||typeof e.splice=="function"||Rn(e)||Br(e)||Xn(e)))return!e.length;var n=it(e);if(n==nt||n==Fe)return!e.size;if(ri(e))return!Uo(e).length;for(var r in e)if(Re.call(e,r))return!1;return!0}function Ob(e,n){return ei(e,n)}function Tb(e,n,r){r=typeof r=="function"?r:l;var a=r?r(e,n):l;return a===l?ei(e,n,l,r):!!a}function ma(e){if(!Ue(e))return!1;var n=ot(e);return n==lt||n==De||typeof e.message=="string"&&typeof e.name=="string"&&!li(e)}function Bb(e){return typeof e=="number"&&bc(e)}function dn(e){if(!$e(e))return!1;var n=ot(e);return n==Ft||n==bt||n==ne||n==Dr}function $f(e){return typeof e=="number"&&e==ye(e)}function Ol(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=W}function $e(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}function Ue(e){return e!=null&&typeof e=="object"}var Ff=ec?St(ec):Lv;function Rb(e,n){return e===n||Fo(e,n,ia(n))}function Ib(e,n,r){return r=typeof r=="function"?r:l,Fo(e,n,ia(n),r)}function Mb(e){return Uf(e)&&e!=+e}function Lb(e){if(v0(e))throw new pe(c);return Ic(e)}function qb(e){return e===null}function Vb(e){return e==null}function Uf(e){return typeof e=="number"||Ue(e)&&ot(e)==yt}function li(e){if(!Ue(e)||ot(e)!=ct)return!1;var n=tl(e);if(n===null)return!0;var r=Re.call(n,"constructor")&&n.constructor;return typeof r=="function"&&r instanceof r&&Zi.call(r)==Ip}var ga=tc?St(tc):qv;function Pb(e){return $f(e)&&e>=-W&&e<=W}var zf=nc?St(nc):Vv;function Tl(e){return typeof e=="string"||!be(e)&&Ue(e)&&ot(e)==je}function Ct(e){return typeof e=="symbol"||Ue(e)&&ot(e)==zt}var Br=rc?St(rc):Pv;function Nb(e){return e===l}function Db(e){return Ue(e)&&it(e)==Dn}function $b(e){return Ue(e)&&ot(e)==Li}var Fb=bl(zo),Ub=bl(function(e,n){return e<=n});function Hf(e){if(!e)return[];if(dt(e))return Tl(e)?Wt(e):ft(e);if(Gr&&e[Gr])return yp(e[Gr]());var n=it(e),r=n==nt?Bo:n==Fe?ji:Rr;return r(e)}function hn(e){if(!e)return e===0?e:0;if(e=Pt(e),e===fe||e===-fe){var n=e<0?-1:1;return n*se}return e===e?e:0}function ye(e){var n=hn(e),r=n%1;return n===n?r?n-r:n:0}function Wf(e){return e?jn(ye(e),0,B):0}function Pt(e){if(typeof e=="number")return e;if(Ct(e))return ge;if($e(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=$e(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=sc(e);var r=mo.test(e);return r||Ui.test(e)?rp(e.slice(2),r?2:8):Hr.test(e)?ge:+e}function Gf(e){return Xt(e,ht(e))}function zb(e){return e?jn(ye(e),-W,W):e===0?e:0}function Te(e){return e==null?"":xt(e)}var Hb=Ar(function(e,n){if(ri(n)||dt(n)){Xt(n,Xe(n),e);return}for(var r in n)Re.call(n,r)&&Zr(e,r,n[r])}),Kf=Ar(function(e,n){Xt(n,ht(n),e)}),Bl=Ar(function(e,n,r,a){Xt(n,ht(n),e,a)}),Wb=Ar(function(e,n,r,a){Xt(n,Xe(n),e,a)}),Gb=cn(Vo);function Kb(e,n){var r=Er(e);return n==null?r:Cc(r,n)}var jb=Se(function(e,n){e=Me(e);var r=-1,a=n.length,f=a>2?n[2]:l;for(f&&at(n[0],n[1],f)&&(a=1);++r<a;)for(var m=n[r],p=ht(m),b=-1,x=p.length;++b<x;){var L=p[b],q=e[L];(q===l||Kt(q,xr[L])&&!Re.call(e,L))&&(e[L]=m[L])}return e}),Yb=Se(function(e){return e.push(l,cf),wt(jf,l,e)});function Qb(e,n){return lc(e,ce(n,3),Zt)}function Zb(e,n){return lc(e,ce(n,3),No)}function Xb(e,n){return e==null?e:Po(e,ce(n,3),ht)}function Jb(e,n){return e==null?e:Tc(e,ce(n,3),ht)}function ey(e,n){return e&&Zt(e,ce(n,3))}function ty(e,n){return e&&No(e,ce(n,3))}function ny(e){return e==null?[]:fl(e,Xe(e))}function ry(e){return e==null?[]:fl(e,ht(e))}function pa(e,n,r){var a=e==null?l:Yn(e,n);return a===l?r:a}function iy(e,n){return e!=null&&hf(e,n,Av)}function va(e,n){return e!=null&&hf(e,n,Ov)}var ly=lf(function(e,n,r){n!=null&&typeof n.toString!="function"&&(n=Xi.call(n)),e[n]=r},ba(mt)),oy=lf(function(e,n,r){n!=null&&typeof n.toString!="function"&&(n=Xi.call(n)),Re.call(e,n)?e[n].push(r):e[n]=[r]},ce),ay=Se(Jr);function Xe(e){return dt(e)?Sc(e):Uo(e)}function ht(e){return dt(e)?Sc(e,!0):Nv(e)}function uy(e,n){var r={};return n=ce(n,3),Zt(e,function(a,f,m){un(r,n(a,f,m),a)}),r}function sy(e,n){var r={};return n=ce(n,3),Zt(e,function(a,f,m){un(r,f,n(a,f,m))}),r}var cy=Ar(function(e,n,r){dl(e,n,r)}),jf=Ar(function(e,n,r,a){dl(e,n,r,a)}),fy=cn(function(e,n){var r={};if(e==null)return r;var a=!1;n=Pe(n,function(m){return m=Tn(m,e),a||(a=m.length>1),m}),Xt(e,na(e),r),a&&(r=Lt(r,C|E|y,l0));for(var f=n.length;f--;)jo(r,n[f]);return r});function dy(e,n){return Yf(e,Al(ce(n)))}var hy=cn(function(e,n){return e==null?{}:$v(e,n)});function Yf(e,n){if(e==null)return{};var r=Pe(na(e),function(a){return[a]});return n=ce(n),Dc(e,r,function(a,f){return n(a,f[0])})}function my(e,n,r){n=Tn(n,e);var a=-1,f=n.length;for(f||(f=1,e=l);++a<f;){var m=e==null?l:e[Jt(n[a])];m===l&&(a=f,m=r),e=dn(m)?m.call(e):m}return e}function gy(e,n,r){return e==null?e:ti(e,n,r)}function py(e,n,r,a){return a=typeof a=="function"?a:l,e==null?e:ti(e,n,r,a)}var Qf=uf(Xe),Zf=uf(ht);function vy(e,n,r){var a=be(e),f=a||Rn(e)||Br(e);if(n=ce(n,4),r==null){var m=e&&e.constructor;f?r=a?new m:[]:$e(e)?r=dn(m)?Er(tl(e)):{}:r={}}return(f?Rt:Zt)(e,function(p,b,x){return n(r,p,b,x)}),r}function _y(e,n){return e==null?!0:jo(e,n)}function by(e,n,r){return e==null?e:Hc(e,n,Zo(r))}function yy(e,n,r,a){return a=typeof a=="function"?a:l,e==null?e:Hc(e,n,Zo(r),a)}function Rr(e){return e==null?[]:To(e,Xe(e))}function wy(e){return e==null?[]:To(e,ht(e))}function Sy(e,n,r){return r===l&&(r=n,n=l),r!==l&&(r=Pt(r),r=r===r?r:0),n!==l&&(n=Pt(n),n=n===n?n:0),jn(Pt(e),n,r)}function xy(e,n,r){return n=hn(n),r===l?(r=n,n=0):r=hn(r),e=Pt(e),Tv(e,n,r)}function Cy(e,n,r){if(r&&typeof r!="boolean"&&at(e,n,r)&&(n=r=l),r===l&&(typeof n=="boolean"?(r=n,n=l):typeof e=="boolean"&&(r=e,e=l)),e===l&&n===l?(e=0,n=1):(e=hn(e),n===l?(n=e,e=0):n=hn(n)),e>n){var a=e;e=n,n=a}if(r||e%1||n%1){var f=yc();return rt(e+f*(n-e+np("1e-"+((f+"").length-1))),n)}return Wo(e,n)}var ky=Or(function(e,n,r){return n=n.toLowerCase(),e+(r?Xf(n):n)});function Xf(e){return _a(Te(e).toLowerCase())}function Jf(e){return e=Te(e),e&&e.replace(Hi,gp).replace(Gg,"")}function Ey(e,n,r){e=Te(e),n=xt(n);var a=e.length;r=r===l?a:jn(ye(r),0,a);var f=r;return r-=n.length,r>=0&&e.slice(r,f)==n}function Ay(e){return e=Te(e),e&&Di.test(e)?e.replace(Ni,pp):e}function Oy(e){return e=Te(e),e&&ao.test(e)?e.replace(Ur,"\\$&"):e}var Ty=Or(function(e,n,r){return e+(r?"-":"")+n.toLowerCase()}),By=Or(function(e,n,r){return e+(r?" ":"")+n.toLowerCase()}),Ry=tf("toLowerCase");function Iy(e,n,r){e=Te(e),n=ye(n);var a=n?wr(e):0;if(!n||a>=n)return e;var f=(n-a)/2;return _l(ll(f),r)+e+_l(il(f),r)}function My(e,n,r){e=Te(e),n=ye(n);var a=n?wr(e):0;return n&&a<n?e+_l(n-a,r):e}function Ly(e,n,r){e=Te(e),n=ye(n);var a=n?wr(e):0;return n&&a<n?_l(n-a,r)+e:e}function qy(e,n,r){return r||n==null?n=0:n&&(n=+n),Up(Te(e).replace(zr,""),n||0)}function Vy(e,n,r){return(r?at(e,n,r):n===l)?n=1:n=ye(n),Go(Te(e),n)}function Py(){var e=arguments,n=Te(e[0]);return e.length<3?n:n.replace(e[1],e[2])}var Ny=Or(function(e,n,r){return e+(r?"_":"")+n.toLowerCase()});function Dy(e,n,r){return r&&typeof r!="number"&&at(e,n,r)&&(n=r=l),r=r===l?B:r>>>0,r?(e=Te(e),e&&(typeof n=="string"||n!=null&&!ga(n))&&(n=xt(n),!n&&yr(e))?Bn(Wt(e),0,r):e.split(n,r)):[]}var $y=Or(function(e,n,r){return e+(r?" ":"")+_a(n)});function Fy(e,n,r){return e=Te(e),r=r==null?0:jn(ye(r),0,e.length),n=xt(n),e.slice(r,r+n.length)==n}function Uy(e,n,r){var a=d.templateSettings;r&&at(e,n,r)&&(n=l),e=Te(e),n=Bl({},n,a,sf);var f=Bl({},n.imports,a.imports,sf),m=Xe(f),p=To(f,m),b,x,L=0,q=n.interpolate||_,D="__p += '",J=Ro((n.escape||_).source+"|"+q.source+"|"+(q===Un?rn:_).source+"|"+(n.evaluate||_).source+"|$","g"),oe="//# sourceURL="+(Re.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Zg+"]")+`
11
- `;e.replace(J,function(he,Ce,Ee,kt,ut,Et){return Ee||(Ee=kt),D+=e.slice(L,Et).replace(ee,vp),Ce&&(b=!0,D+=`' +
10
+ `)}function p0(e){return be(e)||Xn(e)||!!(_c&&e&&e[_c])}function fn(e,n){var i=typeof e;return n=n??W,!!n&&(i=="number"||i!="symbol"&&zi.test(e))&&e>-1&&e%1==0&&e<n}function at(e,n,i){if(!$e(i))return!1;var a=typeof n;return(a=="number"?ht(i)&&fn(n,i.length):a=="string"&&n in i)?Kt(i[n],e):!1}function oa(e,n){if(be(e))return!1;var i=typeof e;return i=="number"||i=="symbol"||i=="boolean"||e==null||kt(e)?!0:yn.test(e)||!zn.test(e)||n!=null&&e in Me(n)}function v0(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}function aa(e){var n=yl(e),i=d[n];if(typeof i!="function"||!(n in ke.prototype))return!1;if(e===i)return!0;var a=ra(i);return!!a&&e===a[0]}function _0(e){return!!mc&&mc in e}var b0=Qi?dn:Ca;function ri(e){var n=e&&e.constructor,i=typeof n=="function"&&n.prototype||xr;return e===i}function gf(e){return e===e&&!$e(e)}function pf(e,n){return function(i){return i==null?!1:i[e]===n&&(n!==l||e in Me(i))}}function y0(e){var n=El(e,function(a){return i.size===k&&i.clear(),a}),i=n.cache;return n}function w0(e,n){var i=e[1],a=n[1],f=i|a,m=f<(R|H|K),p=a==K&&i==N||a==K&&i==le&&e[7].length<=n[8]||a==(K|le)&&n[7].length<=n[8]&&i==N;if(!(m||p))return e;a&R&&(e[2]=n[2],f|=i&R?0:F);var b=n[3];if(b){var x=e[3];e[3]=x?Zc(x,b,n[4]):b,e[4]=x?kn(e[3],v):n[4]}return b=n[5],b&&(x=e[5],e[5]=x?Xc(x,b,n[6]):b,e[6]=x?kn(e[5],v):n[6]),b=n[7],b&&(e[7]=b),a&K&&(e[8]=e[8]==null?n[8]:rt(e[8],n[8])),e[9]==null&&(e[9]=n[9]),e[0]=n[0],e[1]=f,e}function S0(e){var n=[];if(e!=null)for(var i in Me(e))n.push(i);return n}function x0(e){return Xi.call(e)}function vf(e,n,i){return n=Qe(n===l?e.length-1:n,0),function(){for(var a=arguments,f=-1,m=Qe(a.length-n,0),p=I(m);++f<m;)p[f]=a[n+f];f=-1;for(var b=I(n+1);++f<n;)b[f]=a[f];return b[n]=i(p),St(e,this,b)}}function _f(e,n){return n.length<2?e:Yn(e,qt(n,0,-1))}function C0(e,n){for(var i=e.length,a=rt(n.length,i),f=dt(e);a--;){var m=n[a];e[a]=fn(m,i)?f[m]:l}return e}function ua(e,n){if(!(n==="constructor"&&typeof e[n]=="function")&&n!="__proto__")return e[n]}var bf=wf(Fc),ii=Dp||function(e,n){return et.setTimeout(e,n)},sa=wf(Kv);function yf(e,n,i){var a=n+"";return sa(e,g0(a,k0(d0(a),i)))}function wf(e){var n=0,i=0;return function(){var a=zp(),f=te-(a-i);if(i=a,f>0){if(++n>=A)return arguments[0]}else n=0;return e.apply(l,arguments)}}function Sl(e,n){var i=-1,a=e.length,f=a-1;for(n=n===l?a:n;++i<n;){var m=Wo(i,f),p=e[m];e[m]=e[i],e[i]=p}return e.length=n,e}var Sf=y0(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(oo,function(i,a,f,m){n.push(f?m.replace(Sn,"$1"):a||i)}),n});function Jt(e){if(typeof e=="string"||kt(e))return e;var n=e+"";return n=="0"&&1/e==-fe?"-0":n}function Zn(e){if(e!=null){try{return Zi.call(e)}catch{}try{return e+""}catch{}}return""}function k0(e,n){return Rt(ve,function(i){var a="_."+i[0];n&i[1]&&!Gi(e,a)&&e.push(a)}),e.sort()}function xf(e){if(e instanceof ke)return e.clone();var n=new Mt(e.__wrapped__,e.__chain__);return n.__actions__=dt(e.__actions__),n.__index__=e.__index__,n.__values__=e.__values__,n}function E0(e,n,i){(i?at(e,n,i):n===l)?n=1:n=Qe(ye(n),0);var a=e==null?0:e.length;if(!a||n<1)return[];for(var f=0,m=0,p=I(il(a/n));f<a;)p[m++]=qt(e,f,f+=n);return p}function A0(e){for(var n=-1,i=e==null?0:e.length,a=0,f=[];++n<i;){var m=e[n];m&&(f[a++]=m)}return f}function O0(){var e=arguments.length;if(!e)return[];for(var n=I(e-1),i=arguments[0],a=e;a--;)n[a-1]=arguments[a];return Cn(be(i)?dt(i):[i],tt(n,1))}var T0=Se(function(e,n){return ze(e)?Xr(e,tt(n,1,ze,!0)):[]}),B0=Se(function(e,n){var i=Vt(n);return ze(i)&&(i=l),ze(e)?Xr(e,tt(n,1,ze,!0),ce(i,2)):[]}),R0=Se(function(e,n){var i=Vt(n);return ze(i)&&(i=l),ze(e)?Xr(e,tt(n,1,ze,!0),l,i):[]});function I0(e,n,i){var a=e==null?0:e.length;return a?(n=i||n===l?1:ye(n),qt(e,n<0?0:n,a)):[]}function M0(e,n,i){var a=e==null?0:e.length;return a?(n=i||n===l?1:ye(n),n=a-n,qt(e,0,n<0?0:n)):[]}function L0(e,n){return e&&e.length?ml(e,ce(n,3),!0,!0):[]}function q0(e,n){return e&&e.length?ml(e,ce(n,3),!0):[]}function V0(e,n,i,a){var f=e==null?0:e.length;return f?(i&&typeof i!="number"&&at(e,n,i)&&(i=0,a=f),Ov(e,n,i,a)):[]}function Cf(e,n,i){var a=e==null?0:e.length;if(!a)return-1;var f=i==null?0:ye(i);return f<0&&(f=Qe(a+f,0)),Ki(e,ce(n,3),f)}function kf(e,n,i){var a=e==null?0:e.length;if(!a)return-1;var f=a-1;return i!==l&&(f=ye(i),f=i<0?Qe(a+f,0):rt(f,a-1)),Ki(e,ce(n,3),f,!0)}function Ef(e){var n=e==null?0:e.length;return n?tt(e,1):[]}function P0(e){var n=e==null?0:e.length;return n?tt(e,fe):[]}function N0(e,n){var i=e==null?0:e.length;return i?(n=n===l?1:ye(n),tt(e,n)):[]}function D0(e){for(var n=-1,i=e==null?0:e.length,a={};++n<i;){var f=e[n];a[f[0]]=f[1]}return a}function Af(e){return e&&e.length?e[0]:l}function $0(e,n,i){var a=e==null?0:e.length;if(!a)return-1;var f=i==null?0:ye(i);return f<0&&(f=Qe(a+f,0)),br(e,n,f)}function F0(e){var n=e==null?0:e.length;return n?qt(e,0,-1):[]}var U0=Se(function(e){var n=Pe(e,Qo);return n.length&&n[0]===e[0]?$o(n):[]}),z0=Se(function(e){var n=Vt(e),i=Pe(e,Qo);return n===Vt(i)?n=l:i.pop(),i.length&&i[0]===e[0]?$o(i,ce(n,2)):[]}),H0=Se(function(e){var n=Vt(e),i=Pe(e,Qo);return n=typeof n=="function"?n:l,n&&i.pop(),i.length&&i[0]===e[0]?$o(i,l,n):[]});function W0(e,n){return e==null?"":Fp.call(e,n)}function Vt(e){var n=e==null?0:e.length;return n?e[n-1]:l}function G0(e,n,i){var a=e==null?0:e.length;if(!a)return-1;var f=a;return i!==l&&(f=ye(i),f=f<0?Qe(a+f,0):rt(f,a-1)),n===n?kp(e,n,f):Ki(e,oc,f,!0)}function K0(e,n){return e&&e.length?Pc(e,ye(n)):l}var j0=Se(Of);function Of(e,n){return e&&e.length&&n&&n.length?Ho(e,n):e}function Y0(e,n,i){return e&&e.length&&n&&n.length?Ho(e,n,ce(i,2)):e}function Q0(e,n,i){return e&&e.length&&n&&n.length?Ho(e,n,l,i):e}var Z0=cn(function(e,n){var i=e==null?0:e.length,a=Vo(e,n);return $c(e,Pe(n,function(f){return fn(f,i)?+f:f}).sort(Qc)),a});function X0(e,n){var i=[];if(!(e&&e.length))return i;var a=-1,f=[],m=e.length;for(n=ce(n,3);++a<m;){var p=e[a];n(p,a,e)&&(i.push(p),f.push(a))}return $c(e,f),i}function ca(e){return e==null?e:Wp.call(e)}function J0(e,n,i){var a=e==null?0:e.length;return a?(i&&typeof i!="number"&&at(e,n,i)?(n=0,i=a):(n=n==null?0:ye(n),i=i===l?a:ye(i)),qt(e,n,i)):[]}function e_(e,n){return hl(e,n)}function t_(e,n,i){return Ko(e,n,ce(i,2))}function n_(e,n){var i=e==null?0:e.length;if(i){var a=hl(e,n);if(a<i&&Kt(e[a],n))return a}return-1}function r_(e,n){return hl(e,n,!0)}function i_(e,n,i){return Ko(e,n,ce(i,2),!0)}function l_(e,n){var i=e==null?0:e.length;if(i){var a=hl(e,n,!0)-1;if(Kt(e[a],n))return a}return-1}function o_(e){return e&&e.length?Uc(e):[]}function a_(e,n){return e&&e.length?Uc(e,ce(n,2)):[]}function u_(e){var n=e==null?0:e.length;return n?qt(e,1,n):[]}function s_(e,n,i){return e&&e.length?(n=i||n===l?1:ye(n),qt(e,0,n<0?0:n)):[]}function c_(e,n,i){var a=e==null?0:e.length;return a?(n=i||n===l?1:ye(n),n=a-n,qt(e,n<0?0:n,a)):[]}function f_(e,n){return e&&e.length?ml(e,ce(n,3),!1,!0):[]}function d_(e,n){return e&&e.length?ml(e,ce(n,3)):[]}var h_=Se(function(e){return On(tt(e,1,ze,!0))}),m_=Se(function(e){var n=Vt(e);return ze(n)&&(n=l),On(tt(e,1,ze,!0),ce(n,2))}),g_=Se(function(e){var n=Vt(e);return n=typeof n=="function"?n:l,On(tt(e,1,ze,!0),l,n)});function p_(e){return e&&e.length?On(e):[]}function v_(e,n){return e&&e.length?On(e,ce(n,2)):[]}function __(e,n){return n=typeof n=="function"?n:l,e&&e.length?On(e,l,n):[]}function fa(e){if(!(e&&e.length))return[];var n=0;return e=xn(e,function(i){if(ze(i))return n=Qe(i.length,n),!0}),Oo(n,function(i){return Pe(e,ko(i))})}function Tf(e,n){if(!(e&&e.length))return[];var i=fa(e);return n==null?i:Pe(i,function(a){return St(n,l,a)})}var b_=Se(function(e,n){return ze(e)?Xr(e,n):[]}),y_=Se(function(e){return Yo(xn(e,ze))}),w_=Se(function(e){var n=Vt(e);return ze(n)&&(n=l),Yo(xn(e,ze),ce(n,2))}),S_=Se(function(e){var n=Vt(e);return n=typeof n=="function"?n:l,Yo(xn(e,ze),l,n)}),x_=Se(fa);function C_(e,n){return Gc(e||[],n||[],Zr)}function k_(e,n){return Gc(e||[],n||[],ti)}var E_=Se(function(e){var n=e.length,i=n>1?e[n-1]:l;return i=typeof i=="function"?(e.pop(),i):l,Tf(e,i)});function Bf(e){var n=d(e);return n.__chain__=!0,n}function A_(e,n){return n(e),e}function xl(e,n){return n(e)}var O_=cn(function(e){var n=e.length,i=n?e[0]:0,a=this.__wrapped__,f=function(m){return Vo(m,e)};return n>1||this.__actions__.length||!(a instanceof ke)||!fn(i)?this.thru(f):(a=a.slice(i,+i+(n?1:0)),a.__actions__.push({func:xl,args:[f],thisArg:l}),new Mt(a,this.__chain__).thru(function(m){return n&&!m.length&&m.push(l),m}))});function T_(){return Bf(this)}function B_(){return new Mt(this.value(),this.__chain__)}function R_(){this.__values__===l&&(this.__values__=Hf(this.value()));var e=this.__index__>=this.__values__.length,n=e?l:this.__values__[this.__index__++];return{done:e,value:n}}function I_(){return this}function M_(e){for(var n,i=this;i instanceof ul;){var a=xf(i);a.__index__=0,a.__values__=l,n?f.__wrapped__=a:n=a;var f=a;i=i.__wrapped__}return f.__wrapped__=e,n}function L_(){var e=this.__wrapped__;if(e instanceof ke){var n=e;return this.__actions__.length&&(n=new ke(this)),n=n.reverse(),n.__actions__.push({func:xl,args:[ca],thisArg:l}),new Mt(n,this.__chain__)}return this.thru(ca)}function q_(){return Wc(this.__wrapped__,this.__actions__)}var V_=gl(function(e,n,i){Re.call(e,i)?++e[i]:un(e,i,1)});function P_(e,n,i){var a=be(e)?ic:Av;return i&&at(e,n,i)&&(n=l),a(e,ce(n,3))}function N_(e,n){var i=be(e)?xn:Oc;return i(e,ce(n,3))}var D_=nf(Cf),$_=nf(kf);function F_(e,n){return tt(Cl(e,n),1)}function U_(e,n){return tt(Cl(e,n),fe)}function z_(e,n,i){return i=i===l?1:ye(i),tt(Cl(e,n),i)}function Rf(e,n){var i=be(e)?Rt:An;return i(e,ce(n,3))}function If(e,n){var i=be(e)?up:Ac;return i(e,ce(n,3))}var H_=gl(function(e,n,i){Re.call(e,i)?e[i].push(n):un(e,i,[n])});function W_(e,n,i,a){e=ht(e)?e:Rr(e),i=i&&!a?ye(i):0;var f=e.length;return i<0&&(i=Qe(f+i,0)),Tl(e)?i<=f&&e.indexOf(n,i)>-1:!!f&&br(e,n,i)>-1}var G_=Se(function(e,n,i){var a=-1,f=typeof n=="function",m=ht(e)?I(e.length):[];return An(e,function(p){m[++a]=f?St(n,p,i):Jr(p,n,i)}),m}),K_=gl(function(e,n,i){un(e,i,n)});function Cl(e,n){var i=be(e)?Pe:Lc;return i(e,ce(n,3))}function j_(e,n,i,a){return e==null?[]:(be(n)||(n=n==null?[]:[n]),i=a?l:i,be(i)||(i=i==null?[]:[i]),Nc(e,n,i))}var Y_=gl(function(e,n,i){e[i?0:1].push(n)},function(){return[[],[]]});function Q_(e,n,i){var a=be(e)?xo:uc,f=arguments.length<3;return a(e,ce(n,4),i,f,An)}function Z_(e,n,i){var a=be(e)?sp:uc,f=arguments.length<3;return a(e,ce(n,4),i,f,Ac)}function X_(e,n){var i=be(e)?xn:Oc;return i(e,Al(ce(n,3)))}function J_(e){var n=be(e)?xc:Wv;return n(e)}function eb(e,n,i){(i?at(e,n,i):n===l)?n=1:n=ye(n);var a=be(e)?Sv:Gv;return a(e,n)}function tb(e){var n=be(e)?xv:jv;return n(e)}function nb(e){if(e==null)return 0;if(ht(e))return Tl(e)?wr(e):e.length;var n=it(e);return n==nt||n==Fe?e.size:Uo(e).length}function rb(e,n,i){var a=be(e)?Co:Yv;return i&&at(e,n,i)&&(n=l),a(e,ce(n,3))}var ib=Se(function(e,n){if(e==null)return[];var i=n.length;return i>1&&at(e,n[0],n[1])?n=[]:i>2&&at(n[0],n[1],n[2])&&(n=[n[0]]),Nc(e,tt(n,1),[])}),kl=Np||function(){return et.Date.now()};function lb(e,n){if(typeof n!="function")throw new It(h);return e=ye(e),function(){if(--e<1)return n.apply(this,arguments)}}function Mf(e,n,i){return n=i?l:n,n=e&&n==null?e.length:n,sn(e,K,l,l,l,l,n)}function Lf(e,n){var i;if(typeof n!="function")throw new It(h);return e=ye(e),function(){return--e>0&&(i=n.apply(this,arguments)),e<=1&&(n=l),i}}var da=Se(function(e,n,i){var a=R;if(i.length){var f=kn(i,Tr(da));a|=G}return sn(e,a,n,i,f)}),qf=Se(function(e,n,i){var a=R|H;if(i.length){var f=kn(i,Tr(qf));a|=G}return sn(n,a,e,i,f)});function Vf(e,n,i){n=i?l:n;var a=sn(e,N,l,l,l,l,l,n);return a.placeholder=Vf.placeholder,a}function Pf(e,n,i){n=i?l:n;var a=sn(e,Q,l,l,l,l,l,n);return a.placeholder=Pf.placeholder,a}function Nf(e,n,i){var a,f,m,p,b,x,L=0,q=!1,D=!1,J=!0;if(typeof e!="function")throw new It(h);n=Pt(n)||0,$e(i)&&(q=!!i.leading,D="maxWait"in i,m=D?Qe(Pt(i.maxWait)||0,n):m,J="trailing"in i?!!i.trailing:J);function oe(He){var jt=a,mn=f;return a=f=l,L=He,p=e.apply(mn,jt),p}function de(He){return L=He,b=ii(Ce,n),q?oe(He):p}function we(He){var jt=He-x,mn=He-L,rd=n-jt;return D?rt(rd,m-mn):rd}function he(He){var jt=He-x,mn=He-L;return x===l||jt>=n||jt<0||D&&mn>=m}function Ce(){var He=kl();if(he(He))return Ee(He);b=ii(Ce,we(He))}function Ee(He){return b=l,J&&a?oe(He):(a=f=l,p)}function Et(){b!==l&&Kc(b),L=0,a=x=f=b=l}function ut(){return b===l?p:Ee(kl())}function At(){var He=kl(),jt=he(He);if(a=arguments,f=this,x=He,jt){if(b===l)return de(x);if(D)return Kc(b),b=ii(Ce,n),oe(x)}return b===l&&(b=ii(Ce,n)),p}return At.cancel=Et,At.flush=ut,At}var ob=Se(function(e,n){return Ec(e,1,n)}),ab=Se(function(e,n,i){return Ec(e,Pt(n)||0,i)});function ub(e){return sn(e,V)}function El(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new It(h);var i=function(){var a=arguments,f=n?n.apply(this,a):a[0],m=i.cache;if(m.has(f))return m.get(f);var p=e.apply(this,a);return i.cache=m.set(f,p)||m,p};return i.cache=new(El.Cache||an),i}El.Cache=an;function Al(e){if(typeof e!="function")throw new It(h);return function(){var n=arguments;switch(n.length){case 0:return!e.call(this);case 1:return!e.call(this,n[0]);case 2:return!e.call(this,n[0],n[1]);case 3:return!e.call(this,n[0],n[1],n[2])}return!e.apply(this,n)}}function sb(e){return Lf(2,e)}var cb=Qv(function(e,n){n=n.length==1&&be(n[0])?Pe(n[0],xt(ce())):Pe(tt(n,1),xt(ce()));var i=n.length;return Se(function(a){for(var f=-1,m=rt(a.length,i);++f<m;)a[f]=n[f].call(this,a[f]);return St(e,this,a)})}),ha=Se(function(e,n){var i=kn(n,Tr(ha));return sn(e,G,l,n,i)}),Df=Se(function(e,n){var i=kn(n,Tr(Df));return sn(e,j,l,n,i)}),fb=cn(function(e,n){return sn(e,le,l,l,l,n)});function db(e,n){if(typeof e!="function")throw new It(h);return n=n===l?n:ye(n),Se(e,n)}function hb(e,n){if(typeof e!="function")throw new It(h);return n=n==null?0:Qe(ye(n),0),Se(function(i){var a=i[n],f=Bn(i,0,n);return a&&Cn(f,a),St(e,this,f)})}function mb(e,n,i){var a=!0,f=!0;if(typeof e!="function")throw new It(h);return $e(i)&&(a="leading"in i?!!i.leading:a,f="trailing"in i?!!i.trailing:f),Nf(e,n,{leading:a,maxWait:n,trailing:f})}function gb(e){return Mf(e,1)}function pb(e,n){return ha(Zo(n),e)}function vb(){if(!arguments.length)return[];var e=arguments[0];return be(e)?e:[e]}function _b(e){return Lt(e,y)}function bb(e,n){return n=typeof n=="function"?n:l,Lt(e,y,n)}function yb(e){return Lt(e,C|y)}function wb(e,n){return n=typeof n=="function"?n:l,Lt(e,C|y,n)}function Sb(e,n){return n==null||kc(e,n,Xe(n))}function Kt(e,n){return e===n||e!==e&&n!==n}var xb=bl(Do),Cb=bl(function(e,n){return e>=n}),Xn=Rc(function(){return arguments}())?Rc:function(e){return Ue(e)&&Re.call(e,"callee")&&!vc.call(e,"callee")},be=I.isArray,kb=Xs?xt(Xs):Mv;function ht(e){return e!=null&&Ol(e.length)&&!dn(e)}function ze(e){return Ue(e)&&ht(e)}function Eb(e){return e===!0||e===!1||Ue(e)&&ot(e)==Ae}var Rn=$p||Ca,Ab=Js?xt(Js):Lv;function Ob(e){return Ue(e)&&e.nodeType===1&&!li(e)}function Tb(e){if(e==null)return!0;if(ht(e)&&(be(e)||typeof e=="string"||typeof e.splice=="function"||Rn(e)||Br(e)||Xn(e)))return!e.length;var n=it(e);if(n==nt||n==Fe)return!e.size;if(ri(e))return!Uo(e).length;for(var i in e)if(Re.call(e,i))return!1;return!0}function Bb(e,n){return ei(e,n)}function Rb(e,n,i){i=typeof i=="function"?i:l;var a=i?i(e,n):l;return a===l?ei(e,n,l,i):!!a}function ma(e){if(!Ue(e))return!1;var n=ot(e);return n==lt||n==De||typeof e.message=="string"&&typeof e.name=="string"&&!li(e)}function Ib(e){return typeof e=="number"&&bc(e)}function dn(e){if(!$e(e))return!1;var n=ot(e);return n==Ft||n==yt||n==ne||n==Dr}function $f(e){return typeof e=="number"&&e==ye(e)}function Ol(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=W}function $e(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}function Ue(e){return e!=null&&typeof e=="object"}var Ff=ec?xt(ec):Vv;function Mb(e,n){return e===n||Fo(e,n,ia(n))}function Lb(e,n,i){return i=typeof i=="function"?i:l,Fo(e,n,ia(n),i)}function qb(e){return Uf(e)&&e!=+e}function Vb(e){if(b0(e))throw new pe(c);return Ic(e)}function Pb(e){return e===null}function Nb(e){return e==null}function Uf(e){return typeof e=="number"||Ue(e)&&ot(e)==wt}function li(e){if(!Ue(e)||ot(e)!=ft)return!1;var n=tl(e);if(n===null)return!0;var i=Re.call(n,"constructor")&&n.constructor;return typeof i=="function"&&i instanceof i&&Zi.call(i)==Lp}var ga=tc?xt(tc):Pv;function Db(e){return $f(e)&&e>=-W&&e<=W}var zf=nc?xt(nc):Nv;function Tl(e){return typeof e=="string"||!be(e)&&Ue(e)&&ot(e)==je}function kt(e){return typeof e=="symbol"||Ue(e)&&ot(e)==zt}var Br=rc?xt(rc):Dv;function $b(e){return e===l}function Fb(e){return Ue(e)&&it(e)==Dn}function Ub(e){return Ue(e)&&ot(e)==Li}var zb=bl(zo),Hb=bl(function(e,n){return e<=n});function Hf(e){if(!e)return[];if(ht(e))return Tl(e)?Wt(e):dt(e);if(Gr&&e[Gr])return Sp(e[Gr]());var n=it(e),i=n==nt?Bo:n==Fe?ji:Rr;return i(e)}function hn(e){if(!e)return e===0?e:0;if(e=Pt(e),e===fe||e===-fe){var n=e<0?-1:1;return n*se}return e===e?e:0}function ye(e){var n=hn(e),i=n%1;return n===n?i?n-i:n:0}function Wf(e){return e?jn(ye(e),0,B):0}function Pt(e){if(typeof e=="number")return e;if(kt(e))return ge;if($e(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=$e(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=sc(e);var i=mo.test(e);return i||Ui.test(e)?lp(e.slice(2),i?2:8):Hr.test(e)?ge:+e}function Gf(e){return Xt(e,mt(e))}function Wb(e){return e?jn(ye(e),-W,W):e===0?e:0}function Te(e){return e==null?"":Ct(e)}var Gb=Ar(function(e,n){if(ri(n)||ht(n)){Xt(n,Xe(n),e);return}for(var i in n)Re.call(n,i)&&Zr(e,i,n[i])}),Kf=Ar(function(e,n){Xt(n,mt(n),e)}),Bl=Ar(function(e,n,i,a){Xt(n,mt(n),e,a)}),Kb=Ar(function(e,n,i,a){Xt(n,Xe(n),e,a)}),jb=cn(Vo);function Yb(e,n){var i=Er(e);return n==null?i:Cc(i,n)}var Qb=Se(function(e,n){e=Me(e);var i=-1,a=n.length,f=a>2?n[2]:l;for(f&&at(n[0],n[1],f)&&(a=1);++i<a;)for(var m=n[i],p=mt(m),b=-1,x=p.length;++b<x;){var L=p[b],q=e[L];(q===l||Kt(q,xr[L])&&!Re.call(e,L))&&(e[L]=m[L])}return e}),Zb=Se(function(e){return e.push(l,cf),St(jf,l,e)});function Xb(e,n){return lc(e,ce(n,3),Zt)}function Jb(e,n){return lc(e,ce(n,3),No)}function ey(e,n){return e==null?e:Po(e,ce(n,3),mt)}function ty(e,n){return e==null?e:Tc(e,ce(n,3),mt)}function ny(e,n){return e&&Zt(e,ce(n,3))}function ry(e,n){return e&&No(e,ce(n,3))}function iy(e){return e==null?[]:fl(e,Xe(e))}function ly(e){return e==null?[]:fl(e,mt(e))}function pa(e,n,i){var a=e==null?l:Yn(e,n);return a===l?i:a}function oy(e,n){return e!=null&&hf(e,n,Tv)}function va(e,n){return e!=null&&hf(e,n,Bv)}var ay=lf(function(e,n,i){n!=null&&typeof n.toString!="function"&&(n=Xi.call(n)),e[n]=i},ba(gt)),uy=lf(function(e,n,i){n!=null&&typeof n.toString!="function"&&(n=Xi.call(n)),Re.call(e,n)?e[n].push(i):e[n]=[i]},ce),sy=Se(Jr);function Xe(e){return ht(e)?Sc(e):Uo(e)}function mt(e){return ht(e)?Sc(e,!0):$v(e)}function cy(e,n){var i={};return n=ce(n,3),Zt(e,function(a,f,m){un(i,n(a,f,m),a)}),i}function fy(e,n){var i={};return n=ce(n,3),Zt(e,function(a,f,m){un(i,f,n(a,f,m))}),i}var dy=Ar(function(e,n,i){dl(e,n,i)}),jf=Ar(function(e,n,i,a){dl(e,n,i,a)}),hy=cn(function(e,n){var i={};if(e==null)return i;var a=!1;n=Pe(n,function(m){return m=Tn(m,e),a||(a=m.length>1),m}),Xt(e,na(e),i),a&&(i=Lt(i,C|E|y,a0));for(var f=n.length;f--;)jo(i,n[f]);return i});function my(e,n){return Yf(e,Al(ce(n)))}var gy=cn(function(e,n){return e==null?{}:Uv(e,n)});function Yf(e,n){if(e==null)return{};var i=Pe(na(e),function(a){return[a]});return n=ce(n),Dc(e,i,function(a,f){return n(a,f[0])})}function py(e,n,i){n=Tn(n,e);var a=-1,f=n.length;for(f||(f=1,e=l);++a<f;){var m=e==null?l:e[Jt(n[a])];m===l&&(a=f,m=i),e=dn(m)?m.call(e):m}return e}function vy(e,n,i){return e==null?e:ti(e,n,i)}function _y(e,n,i,a){return a=typeof a=="function"?a:l,e==null?e:ti(e,n,i,a)}var Qf=uf(Xe),Zf=uf(mt);function by(e,n,i){var a=be(e),f=a||Rn(e)||Br(e);if(n=ce(n,4),i==null){var m=e&&e.constructor;f?i=a?new m:[]:$e(e)?i=dn(m)?Er(tl(e)):{}:i={}}return(f?Rt:Zt)(e,function(p,b,x){return n(i,p,b,x)}),i}function yy(e,n){return e==null?!0:jo(e,n)}function wy(e,n,i){return e==null?e:Hc(e,n,Zo(i))}function Sy(e,n,i,a){return a=typeof a=="function"?a:l,e==null?e:Hc(e,n,Zo(i),a)}function Rr(e){return e==null?[]:To(e,Xe(e))}function xy(e){return e==null?[]:To(e,mt(e))}function Cy(e,n,i){return i===l&&(i=n,n=l),i!==l&&(i=Pt(i),i=i===i?i:0),n!==l&&(n=Pt(n),n=n===n?n:0),jn(Pt(e),n,i)}function ky(e,n,i){return n=hn(n),i===l?(i=n,n=0):i=hn(i),e=Pt(e),Rv(e,n,i)}function Ey(e,n,i){if(i&&typeof i!="boolean"&&at(e,n,i)&&(n=i=l),i===l&&(typeof n=="boolean"?(i=n,n=l):typeof e=="boolean"&&(i=e,e=l)),e===l&&n===l?(e=0,n=1):(e=hn(e),n===l?(n=e,e=0):n=hn(n)),e>n){var a=e;e=n,n=a}if(i||e%1||n%1){var f=yc();return rt(e+f*(n-e+ip("1e-"+((f+"").length-1))),n)}return Wo(e,n)}var Ay=Or(function(e,n,i){return n=n.toLowerCase(),e+(i?Xf(n):n)});function Xf(e){return _a(Te(e).toLowerCase())}function Jf(e){return e=Te(e),e&&e.replace(Hi,vp).replace(jg,"")}function Oy(e,n,i){e=Te(e),n=Ct(n);var a=e.length;i=i===l?a:jn(ye(i),0,a);var f=i;return i-=n.length,i>=0&&e.slice(i,f)==n}function Ty(e){return e=Te(e),e&&Di.test(e)?e.replace(Ni,_p):e}function By(e){return e=Te(e),e&&ao.test(e)?e.replace(Ur,"\\$&"):e}var Ry=Or(function(e,n,i){return e+(i?"-":"")+n.toLowerCase()}),Iy=Or(function(e,n,i){return e+(i?" ":"")+n.toLowerCase()}),My=tf("toLowerCase");function Ly(e,n,i){e=Te(e),n=ye(n);var a=n?wr(e):0;if(!n||a>=n)return e;var f=(n-a)/2;return _l(ll(f),i)+e+_l(il(f),i)}function qy(e,n,i){e=Te(e),n=ye(n);var a=n?wr(e):0;return n&&a<n?e+_l(n-a,i):e}function Vy(e,n,i){e=Te(e),n=ye(n);var a=n?wr(e):0;return n&&a<n?_l(n-a,i)+e:e}function Py(e,n,i){return i||n==null?n=0:n&&(n=+n),Hp(Te(e).replace(zr,""),n||0)}function Ny(e,n,i){return(i?at(e,n,i):n===l)?n=1:n=ye(n),Go(Te(e),n)}function Dy(){var e=arguments,n=Te(e[0]);return e.length<3?n:n.replace(e[1],e[2])}var $y=Or(function(e,n,i){return e+(i?"_":"")+n.toLowerCase()});function Fy(e,n,i){return i&&typeof i!="number"&&at(e,n,i)&&(n=i=l),i=i===l?B:i>>>0,i?(e=Te(e),e&&(typeof n=="string"||n!=null&&!ga(n))&&(n=Ct(n),!n&&yr(e))?Bn(Wt(e),0,i):e.split(n,i)):[]}var Uy=Or(function(e,n,i){return e+(i?" ":"")+_a(n)});function zy(e,n,i){return e=Te(e),i=i==null?0:jn(ye(i),0,e.length),n=Ct(n),e.slice(i,i+n.length)==n}function Hy(e,n,i){var a=d.templateSettings;i&&at(e,n,i)&&(n=l),e=Te(e),n=Bl({},n,a,sf);var f=Bl({},n.imports,a.imports,sf),m=Xe(f),p=To(f,m),b,x,L=0,q=n.interpolate||_,D="__p += '",J=Ro((n.escape||_).source+"|"+q.source+"|"+(q===Un?rn:_).source+"|"+(n.evaluate||_).source+"|$","g"),oe="//# sourceURL="+(Re.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Jg+"]")+`
11
+ `;e.replace(J,function(he,Ce,Ee,Et,ut,At){return Ee||(Ee=Et),D+=e.slice(L,At).replace(ee,bp),Ce&&(b=!0,D+=`' +
12
12
  __e(`+Ce+`) +
13
13
  '`),ut&&(x=!0,D+=`';
14
14
  `+ut+`;
15
15
  __p += '`),Ee&&(D+=`' +
16
16
  ((__t = (`+Ee+`)) == null ? '' : __t) +
17
- '`),L=Et+he.length,he}),D+=`';
17
+ '`),L=At+he.length,he}),D+=`';
18
18
  `;var de=Re.call(n,"variable")&&n.variable;if(!de)D=`with (obj) {
19
19
  `+D+`
20
20
  }
@@ -24,4 +24,4 @@ __p += '`),Ee&&(D+=`' +
24
24
  function print() { __p += __j.call(arguments, '') }
25
25
  `:`;
26
26
  `)+D+`return __p
27
- }`;var we=td(function(){return Oe(m,oe+"return "+D).apply(l,p)});if(we.source=D,ma(we))throw we;return we}function zy(e){return Te(e).toLowerCase()}function Hy(e){return Te(e).toUpperCase()}function Wy(e,n,r){if(e=Te(e),e&&(r||n===l))return sc(e);if(!e||!(n=xt(n)))return e;var a=Wt(e),f=Wt(n),m=cc(a,f),p=fc(a,f)+1;return Bn(a,m,p).join("")}function Gy(e,n,r){if(e=Te(e),e&&(r||n===l))return e.slice(0,hc(e)+1);if(!e||!(n=xt(n)))return e;var a=Wt(e),f=fc(a,Wt(n))+1;return Bn(a,0,f).join("")}function Ky(e,n,r){if(e=Te(e),e&&(r||n===l))return e.replace(zr,"");if(!e||!(n=xt(n)))return e;var a=Wt(e),f=cc(a,Wt(n));return Bn(a,f).join("")}function jy(e,n){var r=$,a=Z;if($e(n)){var f="separator"in n?n.separator:f;r="length"in n?ye(n.length):r,a="omission"in n?xt(n.omission):a}e=Te(e);var m=e.length;if(yr(e)){var p=Wt(e);m=p.length}if(r>=m)return e;var b=r-wr(a);if(b<1)return a;var x=p?Bn(p,0,b).join(""):e.slice(0,b);if(f===l)return x+a;if(p&&(b+=x.length-b),ga(f)){if(e.slice(b).search(f)){var L,q=x;for(f.global||(f=Ro(f.source,Te(ln.exec(f))+"g")),f.lastIndex=0;L=f.exec(q);)var D=L.index;x=x.slice(0,D===l?b:D)}}else if(e.indexOf(xt(f),b)!=b){var J=x.lastIndexOf(f);J>-1&&(x=x.slice(0,J))}return x+a}function Yy(e){return e=Te(e),e&&io.test(e)?e.replace(Fr,Cp):e}var Qy=Or(function(e,n,r){return e+(r?" ":"")+n.toUpperCase()}),_a=tf("toUpperCase");function ed(e,n,r){return e=Te(e),n=r?l:n,n===l?bp(e)?Ap(e):cp(e):e.match(n)||[]}var td=Se(function(e,n){try{return wt(e,l,n)}catch(r){return ma(r)?r:new pe(r)}}),Zy=cn(function(e,n){return Rt(n,function(r){r=Jt(r),un(e,r,da(e[r],e))}),e});function Xy(e){var n=e==null?0:e.length,r=ce();return e=n?Pe(e,function(a){if(typeof a[1]!="function")throw new It(h);return[r(a[0]),a[1]]}):[],Se(function(a){for(var f=-1;++f<n;){var m=e[f];if(wt(m[0],this,a))return wt(m[1],this,a)}})}function Jy(e){return Cv(Lt(e,C))}function ba(e){return function(){return e}}function ew(e,n){return e==null||e!==e?n:e}var tw=rf(),nw=rf(!0);function mt(e){return e}function ya(e){return Mc(typeof e=="function"?e:Lt(e,C))}function rw(e){return qc(Lt(e,C))}function iw(e,n){return Vc(e,Lt(n,C))}var lw=Se(function(e,n){return function(r){return Jr(r,e,n)}}),ow=Se(function(e,n){return function(r){return Jr(e,r,n)}});function wa(e,n,r){var a=Xe(n),f=fl(n,a);r==null&&!($e(n)&&(f.length||!a.length))&&(r=n,n=e,e=this,f=fl(n,Xe(n)));var m=!($e(r)&&"chain"in r)||!!r.chain,p=dn(e);return Rt(f,function(b){var x=n[b];e[b]=x,p&&(e.prototype[b]=function(){var L=this.__chain__;if(m||L){var q=e(this.__wrapped__),D=q.__actions__=ft(this.__actions__);return D.push({func:x,args:arguments,thisArg:e}),q.__chain__=L,q}return x.apply(e,Cn([this.value()],arguments))})}),e}function aw(){return et._===this&&(et._=Mp),this}function Sa(){}function uw(e){return e=ye(e),Se(function(n){return Pc(n,e)})}var sw=Jo(Pe),cw=Jo(ic),fw=Jo(Co);function nd(e){return oa(e)?ko(Jt(e)):Fv(e)}function dw(e){return function(n){return e==null?l:Yn(e,n)}}var hw=of(),mw=of(!0);function xa(){return[]}function Ca(){return!1}function gw(){return{}}function pw(){return""}function vw(){return!0}function _w(e,n){if(e=ye(e),e<1||e>W)return[];var r=B,a=rt(e,B);n=ce(n),e-=B;for(var f=Oo(a,n);++r<e;)n(r);return f}function bw(e){return be(e)?Pe(e,Jt):Ct(e)?[e]:ft(Sf(Te(e)))}function yw(e){var n=++Rp;return Te(e)+n}var ww=vl(function(e,n){return e+n},0),Sw=ea("ceil"),xw=vl(function(e,n){return e/n},1),Cw=ea("floor");function kw(e){return e&&e.length?cl(e,mt,Do):l}function Ew(e,n){return e&&e.length?cl(e,ce(n,2),Do):l}function Aw(e){return ac(e,mt)}function Ow(e,n){return ac(e,ce(n,2))}function Tw(e){return e&&e.length?cl(e,mt,zo):l}function Bw(e,n){return e&&e.length?cl(e,ce(n,2),zo):l}var Rw=vl(function(e,n){return e*n},1),Iw=ea("round"),Mw=vl(function(e,n){return e-n},0);function Lw(e){return e&&e.length?Ao(e,mt):0}function qw(e,n){return e&&e.length?Ao(e,ce(n,2)):0}return d.after=rb,d.ary=Mf,d.assign=Hb,d.assignIn=Kf,d.assignInWith=Bl,d.assignWith=Wb,d.at=Gb,d.before=Lf,d.bind=da,d.bindAll=Zy,d.bindKey=qf,d.castArray=gb,d.chain=Bf,d.chunk=C0,d.compact=k0,d.concat=E0,d.cond=Xy,d.conforms=Jy,d.constant=ba,d.countBy=L_,d.create=Kb,d.curry=Vf,d.curryRight=Pf,d.debounce=Nf,d.defaults=jb,d.defaultsDeep=Yb,d.defer=ib,d.delay=lb,d.difference=A0,d.differenceBy=O0,d.differenceWith=T0,d.drop=B0,d.dropRight=R0,d.dropRightWhile=I0,d.dropWhile=M0,d.fill=L0,d.filter=V_,d.flatMap=D_,d.flatMapDeep=$_,d.flatMapDepth=F_,d.flatten=Ef,d.flattenDeep=q0,d.flattenDepth=V0,d.flip=ob,d.flow=tw,d.flowRight=nw,d.fromPairs=P0,d.functions=ny,d.functionsIn=ry,d.groupBy=U_,d.initial=D0,d.intersection=$0,d.intersectionBy=F0,d.intersectionWith=U0,d.invert=ly,d.invertBy=oy,d.invokeMap=H_,d.iteratee=ya,d.keyBy=W_,d.keys=Xe,d.keysIn=ht,d.map=Cl,d.mapKeys=uy,d.mapValues=sy,d.matches=rw,d.matchesProperty=iw,d.memoize=El,d.merge=cy,d.mergeWith=jf,d.method=lw,d.methodOf=ow,d.mixin=wa,d.negate=Al,d.nthArg=uw,d.omit=fy,d.omitBy=dy,d.once=ab,d.orderBy=G_,d.over=sw,d.overArgs=ub,d.overEvery=cw,d.overSome=fw,d.partial=ha,d.partialRight=Df,d.partition=K_,d.pick=hy,d.pickBy=Yf,d.property=nd,d.propertyOf=dw,d.pull=G0,d.pullAll=Of,d.pullAllBy=K0,d.pullAllWith=j0,d.pullAt=Y0,d.range=hw,d.rangeRight=mw,d.rearg=sb,d.reject=Q_,d.remove=Q0,d.rest=cb,d.reverse=ca,d.sampleSize=X_,d.set=gy,d.setWith=py,d.shuffle=J_,d.slice=Z0,d.sortBy=nb,d.sortedUniq=i_,d.sortedUniqBy=l_,d.split=Dy,d.spread=fb,d.tail=o_,d.take=a_,d.takeRight=u_,d.takeRightWhile=s_,d.takeWhile=c_,d.tap=k_,d.throttle=db,d.thru=xl,d.toArray=Hf,d.toPairs=Qf,d.toPairsIn=Zf,d.toPath=bw,d.toPlainObject=Gf,d.transform=vy,d.unary=hb,d.union=f_,d.unionBy=d_,d.unionWith=h_,d.uniq=m_,d.uniqBy=g_,d.uniqWith=p_,d.unset=_y,d.unzip=fa,d.unzipWith=Tf,d.update=by,d.updateWith=yy,d.values=Rr,d.valuesIn=wy,d.without=v_,d.words=ed,d.wrap=mb,d.xor=__,d.xorBy=b_,d.xorWith=y_,d.zip=w_,d.zipObject=S_,d.zipObjectDeep=x_,d.zipWith=C_,d.entries=Qf,d.entriesIn=Zf,d.extend=Kf,d.extendWith=Bl,wa(d,d),d.add=ww,d.attempt=td,d.camelCase=ky,d.capitalize=Xf,d.ceil=Sw,d.clamp=Sy,d.clone=pb,d.cloneDeep=_b,d.cloneDeepWith=bb,d.cloneWith=vb,d.conformsTo=yb,d.deburr=Jf,d.defaultTo=ew,d.divide=xw,d.endsWith=Ey,d.eq=Kt,d.escape=Ay,d.escapeRegExp=Oy,d.every=q_,d.find=P_,d.findIndex=Cf,d.findKey=Qb,d.findLast=N_,d.findLastIndex=kf,d.findLastKey=Zb,d.floor=Cw,d.forEach=Rf,d.forEachRight=If,d.forIn=Xb,d.forInRight=Jb,d.forOwn=ey,d.forOwnRight=ty,d.get=pa,d.gt=wb,d.gte=Sb,d.has=iy,d.hasIn=va,d.head=Af,d.identity=mt,d.includes=z_,d.indexOf=N0,d.inRange=xy,d.invoke=ay,d.isArguments=Xn,d.isArray=be,d.isArrayBuffer=xb,d.isArrayLike=dt,d.isArrayLikeObject=ze,d.isBoolean=Cb,d.isBuffer=Rn,d.isDate=kb,d.isElement=Eb,d.isEmpty=Ab,d.isEqual=Ob,d.isEqualWith=Tb,d.isError=ma,d.isFinite=Bb,d.isFunction=dn,d.isInteger=$f,d.isLength=Ol,d.isMap=Ff,d.isMatch=Rb,d.isMatchWith=Ib,d.isNaN=Mb,d.isNative=Lb,d.isNil=Vb,d.isNull=qb,d.isNumber=Uf,d.isObject=$e,d.isObjectLike=Ue,d.isPlainObject=li,d.isRegExp=ga,d.isSafeInteger=Pb,d.isSet=zf,d.isString=Tl,d.isSymbol=Ct,d.isTypedArray=Br,d.isUndefined=Nb,d.isWeakMap=Db,d.isWeakSet=$b,d.join=z0,d.kebabCase=Ty,d.last=Vt,d.lastIndexOf=H0,d.lowerCase=By,d.lowerFirst=Ry,d.lt=Fb,d.lte=Ub,d.max=kw,d.maxBy=Ew,d.mean=Aw,d.meanBy=Ow,d.min=Tw,d.minBy=Bw,d.stubArray=xa,d.stubFalse=Ca,d.stubObject=gw,d.stubString=pw,d.stubTrue=vw,d.multiply=Rw,d.nth=W0,d.noConflict=aw,d.noop=Sa,d.now=kl,d.pad=Iy,d.padEnd=My,d.padStart=Ly,d.parseInt=qy,d.random=Cy,d.reduce=j_,d.reduceRight=Y_,d.repeat=Vy,d.replace=Py,d.result=my,d.round=Iw,d.runInContext=S,d.sample=Z_,d.size=eb,d.snakeCase=Ny,d.some=tb,d.sortedIndex=X0,d.sortedIndexBy=J0,d.sortedIndexOf=e_,d.sortedLastIndex=t_,d.sortedLastIndexBy=n_,d.sortedLastIndexOf=r_,d.startCase=$y,d.startsWith=Fy,d.subtract=Mw,d.sum=Lw,d.sumBy=qw,d.template=Uy,d.times=_w,d.toFinite=hn,d.toInteger=ye,d.toLength=Wf,d.toLower=zy,d.toNumber=Pt,d.toSafeInteger=zb,d.toString=Te,d.toUpper=Hy,d.trim=Wy,d.trimEnd=Gy,d.trimStart=Ky,d.truncate=jy,d.unescape=Yy,d.uniqueId=yw,d.upperCase=Qy,d.upperFirst=_a,d.each=Rf,d.eachRight=If,d.first=Af,wa(d,function(){var e={};return Zt(d,function(n,r){Re.call(d.prototype,r)||(e[r]=n)}),e}(),{chain:!1}),d.VERSION=u,Rt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){d[e].placeholder=d}),Rt(["drop","take"],function(e,n){ke.prototype[e]=function(r){r=r===l?1:Qe(ye(r),0);var a=this.__filtered__&&!n?new ke(this):this.clone();return a.__filtered__?a.__takeCount__=rt(r,a.__takeCount__):a.__views__.push({size:rt(r,B),type:e+(a.__dir__<0?"Right":"")}),a},ke.prototype[e+"Right"]=function(r){return this.reverse()[e](r).reverse()}}),Rt(["filter","map","takeWhile"],function(e,n){var r=n+1,a=r==P||r==ue;ke.prototype[e]=function(f){var m=this.clone();return m.__iteratees__.push({iteratee:ce(f,3),type:r}),m.__filtered__=m.__filtered__||a,m}}),Rt(["head","last"],function(e,n){var r="take"+(n?"Right":"");ke.prototype[e]=function(){return this[r](1).value()[0]}}),Rt(["initial","tail"],function(e,n){var r="drop"+(n?"":"Right");ke.prototype[e]=function(){return this.__filtered__?new ke(this):this[r](1)}}),ke.prototype.compact=function(){return this.filter(mt)},ke.prototype.find=function(e){return this.filter(e).head()},ke.prototype.findLast=function(e){return this.reverse().find(e)},ke.prototype.invokeMap=Se(function(e,n){return typeof e=="function"?new ke(this):this.map(function(r){return Jr(r,e,n)})}),ke.prototype.reject=function(e){return this.filter(Al(ce(e)))},ke.prototype.slice=function(e,n){e=ye(e);var r=this;return r.__filtered__&&(e>0||n<0)?new ke(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),n!==l&&(n=ye(n),r=n<0?r.dropRight(-n):r.take(n-e)),r)},ke.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ke.prototype.toArray=function(){return this.take(B)},Zt(ke.prototype,function(e,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),a=/^(?:head|last)$/.test(n),f=d[a?"take"+(n=="last"?"Right":""):n],m=a||/^find/.test(n);f&&(d.prototype[n]=function(){var p=this.__wrapped__,b=a?[1]:arguments,x=p instanceof ke,L=b[0],q=x||be(p),D=function(Ce){var Ee=f.apply(d,Cn([Ce],b));return a&&J?Ee[0]:Ee};q&&r&&typeof L=="function"&&L.length!=1&&(x=q=!1);var J=this.__chain__,oe=!!this.__actions__.length,de=m&&!J,we=x&&!oe;if(!m&&q){p=we?p:new ke(this);var he=e.apply(p,b);return he.__actions__.push({func:xl,args:[D],thisArg:l}),new Mt(he,J)}return de&&we?e.apply(this,b):(he=this.thru(D),de?a?he.value()[0]:he.value():he)})}),Rt(["pop","push","shift","sort","splice","unshift"],function(e){var n=Yi[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",a=/^(?:pop|shift)$/.test(e);d.prototype[e]=function(){var f=arguments;if(a&&!this.__chain__){var m=this.value();return n.apply(be(m)?m:[],f)}return this[r](function(p){return n.apply(be(p)?p:[],f)})}}),Zt(ke.prototype,function(e,n){var r=d[n];if(r){var a=r.name+"";Re.call(kr,a)||(kr[a]=[]),kr[a].push({name:n,func:r})}}),kr[pl(l,H).name]=[{name:"wrapper",func:l}],ke.prototype.clone=Yp,ke.prototype.reverse=Qp,ke.prototype.value=Zp,d.prototype.at=E_,d.prototype.chain=A_,d.prototype.commit=O_,d.prototype.next=T_,d.prototype.plant=R_,d.prototype.reverse=I_,d.prototype.toJSON=d.prototype.valueOf=d.prototype.value=M_,d.prototype.first=d.prototype.head,Gr&&(d.prototype[Gr]=B_),d},Sr=Op();Hn?((Hn.exports=Sr)._=Sr,yo._=Sr):et._=Sr}).call(xe)}(oi,oi.exports);var Ne=oi.exports,gt={},Ea={},Jn={};Object.defineProperty(Jn,"__esModule",{value:!0}),Jn.EstadoCaptacion=Jn.TipoCaptacion=void 0;var Aa;(function(t){t.CLIENTES="1",t.PROVEEDORES="2",t.USUARIOS="3",t.PRODUCTOS="4",t.PEDIDOS="5"})(Aa||(Jn.TipoCaptacion=Aa={}));var Oa;(function(t){t.EN_ESTUDIO="1",t.PRE_APROBADA="2",t.APROBADA="3",t.EN_NEGOCIACION="4",t.NEGOCIACION_FINALIZADA="5",t.CONFIRMADA="6",t.FINALIZADA="7",t.CANCELADA="0"})(Oa||(Jn.EstadoCaptacion=Oa={}));var ai={};Object.defineProperty(ai,"__esModule",{value:!0}),ai.TipoGarantia=void 0;var Ta;(function(t){t.INMUEBLE="Propiedad inmobiliaria",t.VEHICULO="Vehículo",t.AVAL_PERSONAL="Aval personal",t.OTROS="Otros"})(Ta||(ai.TipoGarantia=Ta={}));var ui={};Object.defineProperty(ui,"__esModule",{value:!0}),ui.TipoImportacion=void 0;var Ba;(function(t){t.CAPTACION="captacion",t.PEDIDO="pedido",t.PRODUCTO="producto",t.CLIENTE="cliente"})(Ba||(ui.TipoImportacion=Ba={}));var gn={};Object.defineProperty(gn,"__esModule",{value:!0}),gn.TipoLiquidacionReclamo=gn.EstadoLiquidacionReclamo=gn.EstadoLiquidacion=void 0;var Ra;(function(t){t[t.EN_PREVISION=1]="EN_PREVISION",t[t.CONFIRMACION_PENDIENTE=2]="CONFIRMACION_PENDIENTE",t[t.CONFIRMADA=3]="CONFIRMADA",t[t.PAGADA=4]="PAGADA",t[t.CON_RECLAMOS=5]="CON_RECLAMOS"})(Ra||(gn.EstadoLiquidacion=Ra={}));var Ia;(function(t){t[t.ACTIVO=1]="ACTIVO",t[t.APROBADO=2]="APROBADO",t[t.NEGADO=3]="NEGADO"})(Ia||(gn.EstadoLiquidacionReclamo=Ia={}));var Ma;(function(t){t[t.ITEM=1]="ITEM",t[t.COBRO=2]="COBRO"})(Ma||(gn.TipoLiquidacionReclamo=Ma={}));var si={};Object.defineProperty(si,"__esModule",{value:!0}),si.TipoNotificacion=void 0;var La;(function(t){t.NUEVO="1",t.DOCUMENTOS="2",t.REALIZADO="3",t.INCIDENTES="4",t.CANCELACION="5"})(La||(si.TipoNotificacion=La={}));var ci={};Object.defineProperty(ci,"__esModule",{value:!0}),ci.EstadoPedido=void 0;var qa;(function(t){t[t.PENDIENTE=1]="PENDIENTE",t[t.REVISAR_DOC=2]="REVISAR_DOC",t[t.LLAMAR=3]="LLAMAR",t[t.FINALIZADO=4]="FINALIZADO",t[t.CANCELADO=5]="CANCELADO",t[t.LIQUIDADO=6]="LIQUIDADO",t[t.INCIDENCIA=7]="INCIDENCIA",t[t.TRAMITADO=8]="TRAMITADO",t[t.PENDIENTE_ASIGNAR=9]="PENDIENTE_ASIGNAR"})(qa||(ci.EstadoPedido=qa={}));var er={};Object.defineProperty(er,"__esModule",{value:!0}),er.TipoProducto=er.EstadoProducto=void 0;var Va;(function(t){t.DESHABILITADO="0",t.INACTIVO="1",t.ACTIVADO="2",t.PUBLICO="3"})(Va||(er.EstadoProducto=Va={}));var Pa;(function(t){t.ARTICULO="1",t.SERVICIO_CONTRATO="2",t.MEMBRESIA="3",t.OFERTA_EMPLEO="4"})(Pa||(er.TipoProducto=Pa={}));var fi={};Object.defineProperty(fi,"__esModule",{value:!0}),fi.EstadoBase=void 0;var Na;(function(t){t[t.INACTIVO=0]="INACTIVO",t[t.ACTIVO=1]="ACTIVO"})(Na||(fi.EstadoBase=Na={})),function(t){var o=xe&&xe.__createBinding||(Object.create?function(u,s,c,h){h===void 0&&(h=c);var g=Object.getOwnPropertyDescriptor(s,c);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,h,g)}:function(u,s,c,h){h===void 0&&(h=c),u[h]=s[c]}),l=xe&&xe.__exportStar||function(u,s){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&o(s,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),l(Jn,t),l(ai,t),l(ui,t),l(gn,t),l(si,t),l(ci,t),l(er,t),l(fi,t)}(Ea);var Da={},$a={},di={};Object.defineProperty(di,"__esModule",{value:!0}),di.LAYOUT_COLUMNA_TYPES=void 0,di.LAYOUT_COLUMNA_TYPES=["texto","numero","fecha"],function(t){var o=xe&&xe.__createBinding||(Object.create?function(u,s,c,h){h===void 0&&(h=c);var g=Object.getOwnPropertyDescriptor(s,c);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,h,g)}:function(u,s,c,h){h===void 0&&(h=c),u[h]=s[c]}),l=xe&&xe.__exportStar||function(u,s){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&o(s,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),l(di,t)}($a);var Fa={},tr={};Object.defineProperty(tr,"__esModule",{value:!0}),tr.LAYOUT_SECTION_TYPES=tr.LayoutSectionType=void 0;var nr;(function(t){t.TEXT="text",t.TABLE="table",t.CARDS_GRID="cards-grid",t.IMAGE="image"})(nr||(tr.LayoutSectionType=nr={})),tr.LAYOUT_SECTION_TYPES=[nr.TEXT,nr.CARDS_GRID,nr.TABLE,nr.IMAGE],function(t){var o=xe&&xe.__createBinding||(Object.create?function(u,s,c,h){h===void 0&&(h=c);var g=Object.getOwnPropertyDescriptor(s,c);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,h,g)}:function(u,s,c,h){h===void 0&&(h=c),u[h]=s[c]}),l=xe&&xe.__exportStar||function(u,s){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&o(s,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),l(tr,t)}(Fa);var Ua={},hi={};Object.defineProperty(hi,"__esModule",{value:!0}),hi.TipoComision=void 0;var za;(function(t){t.PORCENTAJE="porcentaje",t.MONTO_FIJO="monto_fijo"})(za||(hi.TipoComision=za={}));var Ha={};Object.defineProperty(Ha,"__esModule",{value:!0});var At={};Object.defineProperty(At,"__esModule",{value:!0}),At.TABLES=At.TABLES_FIELDS=At.SOURCES=At.LOGIC_OPERATORS=At.RULE_OPERATORS=void 0,At.RULE_OPERATORS=["==","!=","<",">","IN"],At.LOGIC_OPERATORS=["AND","OR"],At.SOURCES=["IMPORTACION","TABLA","CONTENEDOR"],At.TABLES_FIELDS={PRODUCTOS:["TIPO","NOMBRE","DESCRIPCION","ID_GAMA","ESTADO","TAGS","ID_PRODUCTO","PROPS","COD_ART_MVX"],CAPTACION:["ESTADO","TIPO","CAPTADO","ID_CAPTACION","FECHA_CAPTADO"]},At.TABLES=[{label:"PRODUCTOS",value:"PRODUCTOS"},{label:"CAPTACIONES",value:"CAPTACION"}],function(t){var o=xe&&xe.__createBinding||(Object.create?function(u,s,c,h){h===void 0&&(h=c);var g=Object.getOwnPropertyDescriptor(s,c);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,h,g)}:function(u,s,c,h){h===void 0&&(h=c),u[h]=s[c]}),l=xe&&xe.__exportStar||function(u,s){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&o(s,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),l(hi,t),l(Ha,t),l(At,t)}(Ua);var Wa={},mi={};Object.defineProperty(mi,"__esModule",{value:!0}),mi.OPERATORS=void 0,mi.OPERATORS=["==","!=",">","<",">=","<=","contains","not_contains","in","not_in"];var rr={};Object.defineProperty(rr,"__esModule",{value:!0}),rr.ControlType=rr.GAMA_PROP_CONTROL_TYPES=void 0,rr.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 Ga;(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"})(Ga||(rr.ControlType=Ga={}));var Ka={};Object.defineProperty(Ka,"__esModule",{value:!0});var ja={};Object.defineProperty(ja,"__esModule",{value:!0});var Ya={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.VALIDATORS=t.PropValidatorKeys=t.GamaPropValidatorsMap=void 0,t.GamaPropValidatorsMap={required:{fn:()=>l=>l.value!==null&&l.value!==void 0&&l.value!=="",message:"Este campo es requerido",label:"Requerido"},min:{fn:l=>u=>{if(typeof u.value=="number")return(u.value||0)>=l;if(typeof u.value=="string"){const s=u.value||"";return u.multiple?s.split(",").length>=l:s.length>=l}return!1},message:"El valor es menor al mínimo permitido",label:"Mínimo"},max:{fn:l=>u=>{if(typeof u.value=="number")return(u.value||0)<=l;if(typeof u.value=="string"){const s=u.value||"";return u.multiple?s.split(",").length<=l:(s||"").length<=l}return!1},message:"El valor es mayor al máximo permitido",label:"Máximo"},onlyNumbers:{fn:()=>l=>/^[0-9]*$/.test(String(l.value)||""),message:"Este campo solo acepta números",label:"Solo números"},email:{fn:()=>l=>l.value?/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(String(l.value)||""):!0,message:"El correo electrónico no es válido",label:"Correo electrónico"},url:{fn:()=>l=>l.value?/^(ftp|http|https):\/\/[^ "]+$/.test(String(l.value)||"")||/^www\.[^ "]+$/.test(String(l.value)||""):!0,message:"La URL no es válida",label:"URL"}};var o;(function(l){l.REQUERIDO="required",l.MINIMO="min",l.MAXIMO="max",l.SOLO_NUMEROS="onlyNumbers",l.EMAIL="email",l.URL="url"})(o||(t.PropValidatorKeys=o={})),t.VALIDATORS=Object.entries(t.GamaPropValidatorsMap).map(([l,u])=>({value:l,...u}))})(Ya);var Qa={};Object.defineProperty(Qa,"__esModule",{value:!0}),function(t){var o=xe&&xe.__createBinding||(Object.create?function(u,s,c,h){h===void 0&&(h=c);var g=Object.getOwnPropertyDescriptor(s,c);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,h,g)}:function(u,s,c,h){h===void 0&&(h=c),u[h]=s[c]}),l=xe&&xe.__exportStar||function(u,s){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&o(s,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),l(mi,t),l(rr,t),l(Ka,t),l(ja,t),l(Ya,t),l(Qa,t)}(Wa);var Za={},Xa={};Object.defineProperty(Xa,"__esModule",{value:!0}),function(t){var o=xe&&xe.__createBinding||(Object.create?function(u,s,c,h){h===void 0&&(h=c);var g=Object.getOwnPropertyDescriptor(s,c);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,h,g)}:function(u,s,c,h){h===void 0&&(h=c),u[h]=s[c]}),l=xe&&xe.__exportStar||function(u,s){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&o(s,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),l(Xa,t)}(Za),function(t){var o=xe&&xe.__createBinding||(Object.create?function(u,s,c,h){h===void 0&&(h=c);var g=Object.getOwnPropertyDescriptor(s,c);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,h,g)}:function(u,s,c,h){h===void 0&&(h=c),u[h]=s[c]}),l=xe&&xe.__exportStar||function(u,s){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&o(s,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),l($a,t),l(Fa,t),l(Ua,t),l(Wa,t),l(Za,t)}(Da),function(t){var o=xe&&xe.__createBinding||(Object.create?function(u,s,c,h){h===void 0&&(h=c);var g=Object.getOwnPropertyDescriptor(s,c);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,h,g)}:function(u,s,c,h){h===void 0&&(h=c),u[h]=s[c]}),l=xe&&xe.__exportStar||function(u,s){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&o(s,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),l(Ea,t),l(Da,t)}(gt);const Rl=[gt.ControlType.DYNAMIC_ARRAY,gt.ControlType.OBJECT],id={maxControlsPerGroup:1,notifyValidations:!0},Ja={required:{fn:()=>t=>{var o;if(t.controlType===gt.ControlType.LOCATION){const{value:l}=t.value;return Ne.values(Ne.omit(l,"catastro")).every(u=>!Ne.isNil(u)&&u!=="")&&(l!=null&&l.catastro?ld(l==null?void 0:l.catastro):!0)}return t.controlType===gt.ControlType.DYNAMIC_ARRAY||t.multiple?(((o=t.value)==null?void 0:o.length)||0)>0:!Ne.isNil(t.value)&&t.value!==""},message:"Este campo es requerido"},min:{fn:t=>o=>eu(o,">=",t),message:"El valor es menor al mínimo permitido"},max:{fn:t=>o=>eu(o,"<=",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 eu(t,o,l){const u={">":(s,c)=>s>c,"<":(s,c)=>s<c,">=":(s,c)=>s>=c,"<=":(s,c)=>s<=c}[o];if(t.controlType===gt.ControlType.NUMBER){const s=Number(t.value);return u(s,l)}if(t.controlType===gt.ControlType.TEXT){const s=(t.value||"").length;return u(s,l)}if([gt.ControlType.CARDS_SELECT,gt.ControlType.SELECT].includes(t.controlType)&&t.multiple){const s=(t.value||[]).length;return u(s,l)}return!1}function ld(t){return/^[A-Za-z0-9]{20}$/.test(t)}function od(t){const o=[];t.controls.forEach((u,s)=>{const c=ad(u);o.push(...c);const h=!c.length;t.controls[s].valid=h});const l=!o.length;return t.valid=l,o}function ad(t){const o=[];return t.validators&&t.validators.forEach(l=>{const{validator:u,param:s}=l,c=Ja[u]||null;c&&(c.fn(Number(s))(t)||o.push(c.message))}),o}function ud(t,o,l){return o.controlType==="dynamic_array"?sd(t,o,l):o.controlType==="object"?tu(t,o,l):[]}function sd(t,o,l){var c,h;const u=[],s=((c=o.itemsLength)==null?void 0:c.value)||0;for(let g=0;g<s;g++){const w=tu({...t,title:`${t.title} ${g+1}`},{...o,value:(h=o.value)==null?void 0:h[g]},l);w.forEach(k=>{k.controls.forEach(v=>{v.code=`${g}.${v.code}`})}),u.push(...w)}return u}function tu(t,o,l){const u=o.structure;return Ne.chunk(u,l).map(c=>({...t,controls:nu(c).map(h=>{var g;return{...h,id:o.id,value:((g=o.value)==null?void 0:g[h.code])||h.value}})}))}function cd(t){return Ne.chain(t).groupBy("group").toPairs().orderBy(([l,u])=>l).map(([l,u])=>{var h;const s=((h=u.find(g=>{var w;return!!((w=g.title)!=null&&w.trim())}))==null?void 0:h.title)||"",c=u[0].group;return{title:s,controls:u,order:c,visible:!0,valid:u.every(g=>g.valid),id:""}}).value()}function fd(t){return t.map(o=>({...o,valid:!1,controls:nu(o.controls)}))}function nu(t){return t.map(o=>{var l,u,s;return{...o,valid:!((l=o.validators)!=null&&l.length),visible:!((u=o.conditions)!=null&&u.length),value:dd(o),itemsLength:o.controlType==="dynamic_array"?{...o.itemsLength,value:((s=o.itemsLength)==null?void 0:s.default)||1}:null}})}function dd(t){if(!Ne.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""}}console.log("active pinia:",ka.getActivePinia());const ir=ka.defineStore("form",{state:()=>({formSteps:[],currentStep:1,onLastSubstep:!1,collections:{}}),actions:{setFormSteps(t){this.formSteps=fd(t)},nextStep(){this.currentStep!==this.formSteps.length&&this.currentStep++},previousStep(){this.currentStep!==1&&this.currentStep--},setControlValue(t,o){const{id:l,value:u,code:s}=o,c=this.formSteps[t].controls.find(h=>h.id===l);c&&(Rl.includes(c.controlType)?Ne.set(c.value,s,u):c.value=u)},setControlVisibility(t,o,l){const u=this.formSteps[t].controls.find(s=>s.id===o);u&&(u.visible=l)},setControlItemsLength(t,o,l){const u=this.formSteps[t].controls.find(s=>s.id===o);!u||u.controlType!=="dynamic_array"||(u.itemsLength.value=l)},setOnLastSubstep(t){this.onLastSubstep=t},resetSteps(){this.currentStep=1},setCollection(t,o){this.collections[t]=o}},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 o=>t.collections[o]||null}}});class ru{toRaw(o){return o.flatMap(s=>s.controls).filter(s=>s.visible).map(s=>({ID_CUESTIONARIO_PREGUNTA:s.id,RESPUESTA:this.formatValue(s)}))}fromRaw(o){return Ne.orderBy(o,"ORDEN").filter(u=>u.PREGUNTAS.length&&u.ESTADO===1).map(u=>{const s=u.NOMBRE,c=u.ORDEN,h=u.DESCRIPCION,g=u.CLAVE,w=u.ID_CUESTIONARIO,k=u.PREGUNTAS.filter(v=>v.ESTADO===1).map(v=>this.parseControl(v));return{title:s,order:c,text:h,controls:k,name:g,id:w}})}parseControl(o){return{controlType:o.TIPO,label:o.NOMBRE,name:o.CLAVE,options:o.RESPUESTAS,multiple:o.MULTIPLE||!1,validators:o.VALIDACIONES,conditions:o.CONDITIONS,itemsLength:o.LENGTH,id:o.ID_CUESTIONARIO_PREGUNTA,row:o.FILA,col:o.COLUMNA,prefix:o.PREFIJO,suffix:o.SUFIJO,structure:o.STRUCTURE,group:o.GRUPO,title:o.TITULO_GRUPO,customParams:o.PARAMS}}formatValue(o){const{controlType:l,value:u,structure:s}=o,c=(h,g)=>g.controlType==="input_number"&&h!==null&&h!==void 0&&h!==""&&typeof h=="string";return c(u,o)?parseFloat(u.replaceAll(".","")):(l==="object"&&s.forEach(h=>{const g=u[h.code];c(g,h)&&(u[h.code]=parseFloat(g==null?void 0:g.replaceAll(".","")))}),u)}}function gi(t,o,l,u){return Object.defineProperty(t,o,{get:l,set:u,enumerable:!0}),t}const pn=i.ref(!1);let Il;function hd(t,o){const l=/(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:l[5]||l[3]||l[1]||"",version:l[4]||l[2]||"0",platform:o[0]||""}}function md(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 iu="ontouchstart"in window||window.navigator.maxTouchPoints>0;function gd(t){const o=t.toLowerCase(),l=md(o),u=hd(o,l),s={};u.browser&&(s[u.browser]=!0,s.version=u.version,s.versionNumber=parseInt(u.version,10)),u.platform&&(s[u.platform]=!0);const c=s.android||s.ios||s.bb||s.blackberry||s.ipad||s.iphone||s.ipod||s.kindle||s.playbook||s.silk||s["windows phone"];if(c===!0||o.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&&c!==!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,o.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"),pn.value===!0&&(Il={is:{...s}}),iu===!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 h=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(s,{mobile:!0,ios:!0,platform:h,[h]:!0})}s.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete s.desktop,s.mobile=!0)}return s}const lu=navigator.userAgent||navigator.vendor||window.opera,pd={has:{touch:!1,webStorage:!1},within:{iframe:!1}},pt={userAgent:lu,is:gd(lu),has:{touch:iu},within:{iframe:window.self!==window.top}},Ml={install(t){const{$q:o}=t;pn.value===!0?(t.onSSRHydrated.push(()=>{Object.assign(o.platform,pt),pn.value=!1}),o.platform=i.reactive(this)):o.platform=this}};{let t;gi(pt.has,"webStorage",()=>{if(t!==void 0)return t;try{if(window.localStorage)return t=!0,!0}catch{}return t=!1,!1}),Object.assign(Ml,pt),pn.value===!0&&(Object.assign(Ml,Il,pd),Il=null)}function Ze(t){return i.markRaw(i.defineComponent(t))}function ou(t){return i.markRaw(t)}function en(t,o){if(t===o)return!0;if(t!==null&&o!==null&&typeof t=="object"&&typeof o=="object"){if(t.constructor!==o.constructor)return!1;let l,u;if(t.constructor===Array){if(l=t.length,l!==o.length)return!1;for(u=l;u--!==0;)if(en(t[u],o[u])!==!0)return!1;return!0}if(t.constructor===Map){if(t.size!==o.size)return!1;let c=t.entries();for(u=c.next();u.done!==!0;){if(o.has(u.value[0])!==!0)return!1;u=c.next()}for(c=t.entries(),u=c.next();u.done!==!0;){if(en(u.value[1],o.get(u.value[0]))!==!0)return!1;u=c.next()}return!0}if(t.constructor===Set){if(t.size!==o.size)return!1;const c=t.entries();for(u=c.next();u.done!==!0;){if(o.has(u.value[0])!==!0)return!1;u=c.next()}return!0}if(t.buffer!=null&&t.buffer.constructor===ArrayBuffer){if(l=t.length,l!==o.length)return!1;for(u=l;u--!==0;)if(t[u]!==o[u])return!1;return!0}if(t.constructor===RegExp)return t.source===o.source&&t.flags===o.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===o.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===o.toString();const s=Object.keys(t).filter(c=>t[c]!==void 0);if(l=s.length,l!==Object.keys(o).filter(c=>o[c]!==void 0).length)return!1;for(u=l;u--!==0;){const c=s[u];if(en(t[c],o[c])!==!0)return!1}return!0}return t!==t&&o!==o}const au={threshold:0,root:null,rootMargin:"0px"};function uu(t,o,l){let u,s,c;typeof l=="function"?(u=l,s=au,c=o.cfg===void 0):(u=l.handler,s=Object.assign({},au,l.cfg),c=o.cfg===void 0||en(o.cfg,s)===!1),o.handler!==u&&(o.handler=u),c===!0&&(o.cfg=s,o.observer!==void 0&&o.observer.unobserve(t),o.observer=new IntersectionObserver(([h])=>{if(typeof o.handler=="function"){if(h.rootBounds===null&&document.body.contains(t)===!0){o.observer.unobserve(t),o.observer.observe(t);return}(o.handler(h,o.observer)===!1||o.once===!0&&h.isIntersecting===!0)&&su(t)}},s),o.observer.observe(t))}function su(t){const o=t.__qvisible;o!==void 0&&(o.observer!==void 0&&o.observer.unobserve(t),delete t.__qvisible)}const vd=ou({name:"intersection",mounted(t,{modifiers:o,value:l}){const u={once:o.once===!0};uu(t,u,l),t.__qvisible=u},updated(t,o){const l=t.__qvisible;l!==void 0&&uu(t,l,o.value)},beforeUnmount:su});function vt(t,o){return t!==void 0&&t()||o}function _d(t,o){if(t!==void 0){const l=t();if(l!=null)return l.slice()}return o}function In(t,o){return t!==void 0?o.concat(t()):o}function bd(t,o){return t===void 0?o:o!==void 0?o.concat(t()):t()}function cu(t,o,l,u,s,c){o.key=u+s;const h=i.h(t,o,l);return s===!0?i.withDirectives(h,c()):h}const yd=Ze({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:o,emit:l}){const u=i.ref(pn.value===!0?t.ssrPrerender:!1),s=i.computed(()=>t.root!==void 0||t.margin!==void 0||t.threshold!==void 0?{handler:w,cfg:{root:t.root,rootMargin:t.margin,threshold:t.threshold}}:w),c=i.computed(()=>t.disable!==!0&&(pn.value!==!0||t.once!==!0||t.ssrPrerender!==!0)),h=i.computed(()=>[[vd,s.value,void 0,{once:t.once}]]),g=i.computed(()=>`--q-transition-duration: ${t.transitionDuration}ms`);function w(v){u.value!==v.isIntersecting&&(u.value=v.isIntersecting,t.onVisibility!==void 0&&l("visibility",u.value))}function k(){if(u.value===!0)return[i.h("div",{key:"content",style:g.value},vt(o.default))];if(o.hidden!==void 0)return[i.h("div",{key:"hidden",style:g.value},o.hidden())]}return()=>{const v=t.transition?[i.h(i.Transition,{name:"q-transition--"+t.transition},k)]:k();return cu(t.tag,{class:"q-intersection"},v,"main",c.value,()=>h.value)}}}),Ll={xs:18,sm:24,md:32,lg:38,xl:46},pi={size:String};function vi(t,o=Ll){return i.computed(()=>t.size!==void 0?{fontSize:t.size in o?`${o[t.size]}px`:t.size}:null)}const wd={size:{type:[String,Number],default:"1em"},color:String};function Sd(t){return{cSize:i.computed(()=>t.size in Ll?`${Ll[t.size]}px`:t.size),classes:i.computed(()=>"q-spinner"+(t.color?` text-${t.color}`:""))}}const ql=Ze({name:"QSpinner",props:{...wd,thickness:{type:Number,default:5}},setup(t){const{cSize:o,classes:l}=Sd(t);return()=>i.h("svg",{class:l.value+" q-spinner-mat",width:o.value,height:o.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"})])}}),xd={ratio:[String,Number]};function Cd(t,o){return i.computed(()=>{const l=Number(t.ratio||(o!==void 0?o.value:void 0));return isNaN(l)!==!0&&l>0?{paddingBottom:`${100/l}%`}:null})}function Vl(t){if(Object(t.$parent)===t.$parent)return t.$parent;let{parent:o}=t.$;for(;Object(o)===o;){if(Object(o.proxy)===o.proxy)return o.proxy;o=o.parent}}function fu(t){return t.appContext.config.globalProperties.$router!==void 0}function Ir(t){return t.isUnmounted===!0||t.isDeactivated===!0}function _i(){let t=null;const o=i.getCurrentInstance();function l(){t!==null&&(clearTimeout(t),t=null)}return i.onDeactivated(l),i.onBeforeUnmount(l),{removeTimeout:l,registerTimeout(u,s){l(),Ir(o)===!1&&(t=setTimeout(()=>{t=null,u()},s))}}}const kd=Ze({name:"QImg",props:{...xd,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:o,emit:l}){const u=i.ref(t.initialRatio),s=Cd(t,u),c=i.getCurrentInstance(),{registerTimeout:h,removeTimeout:g}=_i(),{registerTimeout:w,removeTimeout:k}=_i(),v=i.computed(()=>t.placeholderSrc!==void 0?{src:t.placeholderSrc}:null),C=i.computed(()=>t.errorSrc!==void 0?{src:t.errorSrc,__qerror:!0}:null),E=[i.ref(null),i.ref(v.value)],y=i.ref(0),T=i.ref(!1),z=i.ref(!1),R=i.computed(()=>`q-img q-img--${t.noNativeMenu===!0?"no-":""}menu`),H=i.computed(()=>({width:t.width,height:t.height})),F=i.computed(()=>`q-img__image ${t.imgClass!==void 0?t.imgClass+" ":""}q-img__image--with${t.noTransition===!0?"out":""}-transition q-img__image--`),N=i.computed(()=>({...t.imgStyle,objectFit:t.fit,objectPosition:t.position}));function Q(){if(k(),t.loadingShowDelay===0){T.value=!0;return}w(()=>{T.value=!0},t.loadingShowDelay)}function G(){k(),T.value=!1}function j({target:A}){Ir(c)===!1&&(g(),u.value=A.naturalHeight===0?.5:A.naturalWidth/A.naturalHeight,K(A,1))}function K(A,te){te===1e3||Ir(c)===!0||(A.complete===!0?le(A):h(()=>{K(A,te+1)},50))}function le(A){Ir(c)!==!0&&(y.value=y.value^1,E[y.value].value=null,G(),A.getAttribute("__qerror")!=="true"&&(z.value=!1),l("load",A.currentSrc||A.src))}function V(A){g(),G(),z.value=!0,E[y.value].value=C.value,E[y.value^1].value=v.value,l("error",A)}function $(A){const te=E[A].value,P={key:"img_"+A,class:F.value,style:N.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,...te};return y.value===A?Object.assign(P,{class:P.class+"current",onLoad:j,onError:V}):P.class+="loaded",i.h("div",{class:"q-img__container absolute-full",key:"img"+A},i.h("img",P))}function Z(){return T.value===!1?i.h("div",{key:"content",class:"q-img__content absolute-full q-anchor--skip"},vt(o[z.value===!0?"error":"default"])):i.h("div",{key:"loading",class:"q-img__loading absolute-full flex flex-center"},o.loading!==void 0?o.loading():t.noSpinner===!0?void 0:[i.h(ql,{color:t.spinnerColor,size:t.spinnerSize})])}{let A=function(){i.watch(()=>t.src||t.srcset||t.sizes?{src:t.src,srcset:t.srcset,sizes:t.sizes}:null,te=>{g(),z.value=!1,te===null?(G(),E[y.value^1].value=v.value):Q(),E[y.value].value=te},{immediate:!0})};pn.value===!0?i.onMounted(A):A()}return()=>{const A=[];return s.value!==null&&A.push(i.h("div",{key:"filler",style:s.value})),E[0].value!==null&&A.push($(0)),E[1].value!==null&&A.push($(1)),A.push(i.h(i.Transition,{name:"q-transition--fade"},Z)),i.h("div",{key:"main",class:R.value,style:H.value,role:"img","aria-label":t.alt},A)}}}),du="0 0 24 24",hu=t=>t,Pl=t=>`ionicons ${t}`,mu={"mdi-":t=>`mdi ${t}`,"icon-":hu,"bt-":t=>`bt ${t}`,"eva-":t=>`eva ${t}`,"ion-md":Pl,"ion-ios":Pl,"ion-logo":Pl,"iconfont ":hu,"ti-":t=>`themify-icon ${t}`,"bi-":t=>`bootstrap-icons ${t}`},gu={o_:"-outlined",r_:"-round",s_:"-sharp"},pu={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},Ed=new RegExp("^("+Object.keys(mu).join("|")+")"),Ad=new RegExp("^("+Object.keys(gu).join("|")+")"),vu=new RegExp("^("+Object.keys(pu).join("|")+")"),Od=/^[Mm]\s?[-+]?\.?\d/,Td=/^img:/,Bd=/^svguse:/,Rd=/^ion-/,Id=/^(fa-(sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,_t=Ze({name:"QIcon",props:{...pi,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(t,{slots:o}){const{proxy:{$q:l}}=i.getCurrentInstance(),u=vi(t),s=i.computed(()=>"q-icon"+(t.left===!0?" on-left":"")+(t.right===!0?" on-right":"")+(t.color!==void 0?` text-${t.color}`:"")),c=i.computed(()=>{let h,g=t.name;if(g==="none"||!g)return{none:!0};if(l.iconMapFn!==null){const v=l.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(Od.test(g)===!0){const[v,C=du]=g.split("|");return{svg:!0,viewBox:C,nodes:v.split("&&").map(E=>{const[y,T,z]=E.split("@@");return i.h("path",{style:T,d:y,transform:z})})}}if(Td.test(g)===!0)return{img:!0,src:g.substring(4)};if(Bd.test(g)===!0){const[v,C=du]=g.split("|");return{svguse:!0,src:v.substring(7),viewBox:C}}let w=" ";const k=g.match(Ed);if(k!==null)h=mu[k[1]](g);else if(Id.test(g)===!0)h=g;else if(Rd.test(g)===!0)h=`ionicons ion-${l.platform.is.ios===!0?"ios":"md"}${g.substring(3)}`;else if(vu.test(g)===!0){h="notranslate material-symbols";const v=g.match(vu);v!==null&&(g=g.substring(6),h+=pu[v[1]]),w=g}else{h="notranslate material-icons";const v=g.match(Ad);v!==null&&(g=g.substring(2),h+=gu[v[1]]),w=g}return{cls:h,content:w}});return()=>{const h={class:s.value,style:u.value,"aria-hidden":"true",role:"presentation"};return c.value.none===!0?i.h(t.tag,h,vt(o.default)):c.value.img===!0?i.h(t.tag,h,In(o.default,[i.h("img",{src:c.value.src})])):c.value.svg===!0?i.h(t.tag,h,In(o.default,[i.h("svg",{viewBox:c.value.viewBox||"0 0 24 24"},c.value.nodes)])):c.value.svguse===!0?i.h(t.tag,h,In(o.default,[i.h("svg",{viewBox:c.value.viewBox},[i.h("use",{"xlink:href":c.value.src})])])):(c.value.cls!==void 0&&(h.class+=" "+c.value.cls),i.h(t.tag,h,In(o.default,[c.value.content])))}}}),Md={class:"card-select-container"},Ld=["onClick"],qd={class:"check"},Vd={class:"row justify-center items-center",style:{height:"100%"}},Pd=["onClick"],Nd=i.defineComponent({__name:"CardsSelectControl",props:i.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=i.useModel(t,"modelValue"),l=t,{control:u}=i.toRefs(l);function s(g){if(u.value.multiple){let w=Ne.cloneDeep(o.value);g.exclusive?w=[g.value]:(w=w.filter(k=>{var v,C;return!((C=(v=u.value.options)==null?void 0:v.find(E=>E.value===k))!=null&&C.exclusive)}),w.includes(g.value)?w=w.filter(k=>k!==g.value):w.push(g.value)),o.value=w}else o.value=g.value}function c(g){return h(g)?"active":""}function h(g){let w;return u.value.multiple?w=(o.value||[]).includes(String(g.value)):w=o.value===g.value,w}return(g,w)=>{const k=i.resolveComponent("ControlLabel");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.unref(u).label?(i.openBlock(),i.createBlock(k,{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,C)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:C},[v.image?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(`image-card ${c(v)}`),onClick:()=>s(v)},[i.createVNode(kd,{src:v.image,height:"200px",width:"200px",fit:"fill",class:"image"},null,8,["src"]),i.createElementVNode("div",qd,[i.createElementVNode("div",Vd,[h(v)?(i.openBlock(),i.createBlock(_t,{key:0,name:"check",size:"25px"})):i.createCommentVNode("",!0)])])],10,Ld)):(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(`card-option ${c(v)}`),onClick:()=>s(v)},[i.createElementVNode("span",null,i.toDisplayString(v.label),1)],10,Pd))],64))),128))])],64)}}}),Ot=(t,o)=>{const l=t.__vccOpts||t;for(const[u,s]of o)l[u]=s;return l},Dd=Ot(Nd,[["__scopeId","data-v-148468d6"]]),lr={dark:{type:Boolean,default:null}};function or(t,o){return i.computed(()=>t.dark===null?o.dark.isActive:t.dark)}function $d(t,o){const l=i.ref(null),u=i.computed(()=>t.disable===!0?null:i.h("span",{ref:l,class:"no-outline",tabindex:-1}));function s(c){const h=o.value;c!==void 0&&c.type.indexOf("key")===0?h!==null&&document.activeElement!==h&&h.contains(document.activeElement)===!0&&h.focus():l.value!==null&&(c===void 0||h!==null&&h.contains(c.target)===!0)&&l.value.focus()}return{refocusTargetEl:u,refocusTarget:s}}const Nl={name:String};function Fd(t={}){return(o,l,u)=>{o[l](i.h("input",{class:"hidden"+(u||""),...t.value}))}}function _u(t){return i.computed(()=>t.name||t.for)}const Ud={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 zd(){}function bu(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 Hd(t){if(t.path)return t.path;if(t.composedPath)return t.composedPath();const o=[];let l=t.target;for(;l;){if(o.push(l),l.tagName==="HTML")return o.push(document),o.push(window),o;l=l.parentElement}}function Yt(t){t.stopPropagation()}function Dt(t){t.cancelable!==!1&&t.preventDefault()}function Ke(t){t.cancelable!==!1&&t.preventDefault(),t.stopPropagation()}function Dl(t,o,l){const u=`__q_${o}_evt`;t[u]=t[u]!==void 0?t[u].concat(l):l,l.forEach(s=>{s[0].addEventListener(s[1],t[s[2]],st[s[3]])})}function yu(t,o){const l=`__q_${o}_evt`;t[l]!==void 0&&(t[l].forEach(u=>{u[0].removeEventListener(u[1],t[u[2]],st[u[3]])}),t[l]=void 0)}const wu={...lr,...pi,...Nl,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]},Su=["update:modelValue"];function xu(t,o){const{props:l,slots:u,emit:s,proxy:c}=i.getCurrentInstance(),{$q:h}=c,g=or(l,h),w=i.ref(null),{refocusTargetEl:k,refocusTarget:v}=$d(l,w),C=vi(l,Ud),E=i.computed(()=>l.val!==void 0&&Array.isArray(l.modelValue)),y=i.computed(()=>{const A=i.toRaw(l.val);return E.value===!0?l.modelValue.findIndex(te=>i.toRaw(te)===A):-1}),T=i.computed(()=>E.value===!0?y.value!==-1:i.toRaw(l.modelValue)===i.toRaw(l.trueValue)),z=i.computed(()=>E.value===!0?y.value===-1:i.toRaw(l.modelValue)===i.toRaw(l.falseValue)),R=i.computed(()=>T.value===!1&&z.value===!1),H=i.computed(()=>l.disable===!0?-1:l.tabindex||0),F=i.computed(()=>`q-${t} cursor-pointer no-outline row inline no-wrap items-center`+(l.disable===!0?" disabled":"")+(g.value===!0?` q-${t}--dark`:"")+(l.dense===!0?` q-${t}--dense`:"")+(l.leftLabel===!0?" reverse":"")),N=i.computed(()=>{const A=T.value===!0?"truthy":z.value===!0?"falsy":"indet",te=l.color!==void 0&&(l.keepColor===!0||(t==="toggle"?T.value===!0:z.value!==!0))?` text-${l.color}`:"";return`q-${t}__inner relative-position non-selectable q-${t}__inner--${A}${te}`}),Q=i.computed(()=>{const A={type:"checkbox"};return l.name!==void 0&&Object.assign(A,{".checked":T.value,"^checked":T.value===!0?"checked":void 0,name:l.name,value:E.value===!0?l.val:l.trueValue}),A}),G=Fd(Q),j=i.computed(()=>{const A={tabindex:H.value,role:t==="toggle"?"switch":"checkbox","aria-label":l.label,"aria-checked":R.value===!0?"mixed":T.value===!0?"true":"false"};return l.disable===!0&&(A["aria-disabled"]="true"),A});function K(A){A!==void 0&&(Ke(A),v(A)),l.disable!==!0&&s("update:modelValue",le(),A)}function le(){if(E.value===!0){if(T.value===!0){const A=l.modelValue.slice();return A.splice(y.value,1),A}return l.modelValue.concat([l.val])}if(T.value===!0){if(l.toggleOrder!=="ft"||l.toggleIndeterminate===!1)return l.falseValue}else if(z.value===!0){if(l.toggleOrder==="ft"||l.toggleIndeterminate===!1)return l.trueValue}else return l.toggleOrder!=="ft"?l.trueValue:l.falseValue;return l.indeterminateValue}function V(A){(A.keyCode===13||A.keyCode===32)&&Ke(A)}function $(A){(A.keyCode===13||A.keyCode===32)&&K(A)}const Z=o(T,R);return Object.assign(c,{toggle:K}),()=>{const A=Z();l.disable!==!0&&G(A,"unshift",` q-${t}__native absolute q-ma-none q-pa-none`);const te=[i.h("div",{class:N.value,style:C.value,"aria-hidden":"true"},A)];k.value!==null&&te.push(k.value);const P=l.label!==void 0?In(u.default,[l.label]):vt(u.default);return P!==void 0&&te.push(i.h("div",{class:`q-${t}__label q-anchor--skip`},P)),i.h("div",{ref:w,class:F.value,...j.value,onClick:K,onKeydown:V,onKeyup:$},te)}}const Wd=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"})])]),Cu=Ze({name:"QCheckbox",props:wu,emits:Su,setup(t){function o(l,u){const s=i.computed(()=>(l.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(_t,{class:"q-checkbox__icon",name:s.value})])]:[Wd]}return xu("checkbox",o)}}),ku=i.defineComponent({__name:"SimpleCheckbox",props:i.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=i.useModel(t,"modelValue");return(l,u)=>(i.openBlock(),i.createBlock(Cu,{outlined:"",label:l.control.label,color:"green-10","model-value":!!o.value,"onUpdate:modelValue":u[0]||(u[0]=s=>o.value=!o.value),style:{height:"66.2px"}},null,8,["label","model-value"]))}}),Gd=Ze({name:"QToggle",props:{...wu,icon:String,iconColor:String},emits:Su,setup(t){function o(l,u){const s=i.computed(()=>(l.value===!0?t.checkedIcon:u.value===!0?t.indeterminateIcon:t.uncheckedIcon)||t.icon),c=i.computed(()=>l.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(_t,{name:s.value,color:c.value})]:void 0)]}return xu("toggle",o)}}),Kd=i.defineComponent({__name:"SimpleSwitch",props:i.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=i.useModel(t,"modelValue");return(l,u)=>(i.openBlock(),i.createBlock(Gd,{falseValue:0,trueValue:1,outlined:"",label:l.control.label,modelValue:o.value,"onUpdate:modelValue":u[0]||(u[0]=s=>o.value=s),leftLabel:"",color:"green-10",style:{height:"66.2px"}},null,8,["label","modelValue"]))}});let $l,bi=0;const Je=new Array(256);for(let t=0;t<256;t++)Je[t]=(t+256).toString(16).substring(1);const jd=(()=>{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 o=>{const l=new Uint8Array(o);return t.getRandomValues(l),l}}return o=>{const l=[];for(let u=o;u>0;u--)l.push(Math.floor(Math.random()*256));return l}})(),Eu=4096;function Fl(){($l===void 0||bi+16>Eu)&&(bi=0,$l=jd(Eu));const t=Array.prototype.slice.call($l,bi,bi+=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 Yd(t){return t??null}function Au(t,o){return t??(o===!0?`f_${Fl()}`:null)}function Qd({getValue:t,required:o=!0}={}){if(pn.value===!0){const l=t!==void 0?i.ref(Yd(t())):i.ref(null);return o===!0&&l.value===null&&i.onMounted(()=>{l.value=`f_${Fl()}`}),t!==void 0&&i.watch(t,u=>{l.value=Au(u,o)}),l}return t!==void 0?i.computed(()=>Au(t(),o)):i.ref(`f_${Fl()}`)}const Ou=/^on[A-Z]/;function Zd(){const{attrs:t,vnode:o}=i.getCurrentInstance(),l={listeners:i.ref({}),attributes:i.ref({})};function u(){const s={},c={};for(const h in t)h!=="class"&&h!=="style"&&Ou.test(h)===!1&&(s[h]=t[h]);for(const h in o.props)Ou.test(h)===!0&&(c[h]=o.props[h]);l.attributes.value=s,l.listeners.value=c}return i.onBeforeUpdate(u),u(),l}const Xd="_q_",Jd="_q_fo_";function eh({validate:t,resetValidation:o,requiresQForm:l}){const u=i.inject(Jd,!1);if(u!==!1){const{props:s,proxy:c}=i.getCurrentInstance();Object.assign(c,{validate:t,resetValidation:o}),i.watch(()=>s.disable,h=>{h===!0?(typeof o=="function"&&o(),u.unbindComponent(c)):u.bindComponent(c)}),i.onMounted(()=>{s.disable!==!0&&u.bindComponent(c)}),i.onBeforeUnmount(()=>{s.disable!==!0&&u.unbindComponent(c)})}else l===!0&&console.error("Parent QForm not found on useFormChild()!")}const Tu=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,Bu=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,Ru=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,yi=/^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])\)$/,wi=/^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)\)$/,Ul={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=>Tu.test(t),hexaColor:t=>Bu.test(t),hexOrHexaColor:t=>Ru.test(t),rgbColor:t=>yi.test(t),rgbaColor:t=>wi.test(t),rgbOrRgbaColor:t=>yi.test(t)||wi.test(t),hexOrRgbColor:t=>Tu.test(t)||yi.test(t),hexaOrRgbaColor:t=>Bu.test(t)||wi.test(t),anyColor:t=>Ru.test(t)||yi.test(t)||wi.test(t)};function Iu(t,o=250,l){let u=null;function s(){const c=arguments,h=()=>{u=null,t.apply(this,c)};u!==null&&clearTimeout(u),u=setTimeout(h,o)}return s.cancel=()=>{u!==null&&clearTimeout(u)},s}const th=[!0,!1,"ondemand"],nh={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:t=>th.includes(t)}};function rh(t,o){const{props:l,proxy:u}=i.getCurrentInstance(),s=i.ref(!1),c=i.ref(null),h=i.ref(!1);eh({validate:z,resetValidation:T});let g=0,w;const k=i.computed(()=>l.rules!==void 0&&l.rules!==null&&l.rules.length!==0),v=i.computed(()=>l.disable!==!0&&k.value===!0&&o.value===!1),C=i.computed(()=>l.error===!0||s.value===!0),E=i.computed(()=>typeof l.errorMessage=="string"&&l.errorMessage.length!==0?l.errorMessage:c.value);i.watch(()=>l.modelValue,()=>{h.value=!0,v.value===!0&&l.lazyRules===!1&&R()});function y(){l.lazyRules!=="ondemand"&&v.value===!0&&h.value===!0&&R()}i.watch(()=>l.reactiveRules,H=>{H===!0?w===void 0&&(w=i.watch(()=>l.rules,y,{immediate:!0,deep:!0})):w!==void 0&&(w(),w=void 0)},{immediate:!0}),i.watch(()=>l.lazyRules,y),i.watch(t,H=>{H===!0?h.value=!0:v.value===!0&&l.lazyRules!=="ondemand"&&R()});function T(){g++,o.value=!1,h.value=!1,s.value=!1,c.value=null,R.cancel()}function z(H=l.modelValue){if(l.disable===!0||k.value===!1)return!0;const F=++g,N=o.value!==!0?()=>{h.value=!0}:()=>{},Q=(j,K)=>{j===!0&&N(),s.value=j,c.value=K||null,o.value=!1},G=[];for(let j=0;j<l.rules.length;j++){const K=l.rules[j];let le;if(typeof K=="function"?le=K(H,Ul):typeof K=="string"&&Ul[K]!==void 0&&(le=Ul[K](H)),le===!1||typeof le=="string")return Q(!0,le),!1;le!==!0&&le!==void 0&&G.push(le)}return G.length===0?(Q(!1),!0):(o.value=!0,Promise.all(G).then(j=>{if(j===void 0||Array.isArray(j)===!1||j.length===0)return F===g&&Q(!1),!0;const K=j.find(le=>le===!1||typeof le=="string");return F===g&&Q(K!==void 0,K),K===void 0},j=>(F===g&&(console.error(j),Q(!0)),!1)))}const R=Iu(z,0);return i.onBeforeUnmount(()=>{w!==void 0&&w(),R.cancel()}),Object.assign(u,{resetValidation:T,validate:z}),gi(u,"hasError",()=>C.value),{isDirtyModel:h,hasRules:k,hasError:C,errorMessage:E,validate:z,resetValidation:T}}let Mn=[],Mr=[];function Mu(t){Mr=Mr.filter(o=>o!==t)}function ih(t){Mu(t),Mr.push(t)}function Lu(t){Mu(t),Mr.length===0&&Mn.length!==0&&(Mn[Mn.length-1](),Mn=[])}function Si(t){Mr.length===0?t():Mn.push(t)}function lh(t){Mn=Mn.filter(o=>o!==t)}function Lr(t){return t!=null&&(""+t).length!==0}const xi={...{...lr,...nh,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]},zl=["update:modelValue","clear","focus","blur"];function Hl({requiredForAttr:t=!0,tagProp:o,changeEvent:l=!1}={}){const{props:u,proxy:s}=i.getCurrentInstance(),c=or(u,s.$q),h=Qd({required:t,getValue:()=>u.for});return{requiredForAttr:t,changeEvent:l,tag:o===!0?i.computed(()=>u.tag):{value:"label"},isDark:c,editable:i.computed(()=>u.disable!==!0&&u.readonly!==!0),innerLoading:i.ref(!1),focused:i.ref(!1),hasPopupOpen:!1,splitAttrs:Zd(),targetUid:h,rootRef:i.ref(null),targetRef:i.ref(null),controlRef:i.ref(null)}}function Wl(t){const{props:o,emit:l,slots:u,attrs:s,proxy:c}=i.getCurrentInstance(),{$q:h}=c;let g=null;t.hasValue===void 0&&(t.hasValue=i.computed(()=>Lr(o.modelValue))),t.emitValue===void 0&&(t.emitValue=W=>{l("update:modelValue",W)}),t.controlEvents===void 0&&(t.controlEvents={onFocusin:V,onFocusout:$}),Object.assign(t,{clearValue:Z,onControlFocusin:V,onControlFocusout:$,focus:K}),t.computedCounter===void 0&&(t.computedCounter=i.computed(()=>{if(o.counter!==!1){const W=typeof o.modelValue=="string"||typeof o.modelValue=="number"?(""+o.modelValue).length:Array.isArray(o.modelValue)===!0?o.modelValue.length:0,se=o.maxlength!==void 0?o.maxlength:o.maxValues;return W+(se!==void 0?" / "+se:"")}}));const{isDirtyModel:w,hasRules:k,hasError:v,errorMessage:C,resetValidation:E}=rh(t.focused,t.innerLoading),y=t.floatingLabel!==void 0?i.computed(()=>o.stackLabel===!0||t.focused.value===!0||t.floatingLabel.value===!0):i.computed(()=>o.stackLabel===!0||t.focused.value===!0||t.hasValue.value===!0),T=i.computed(()=>o.bottomSlots===!0||o.hint!==void 0||k.value===!0||o.counter===!0||o.error!==null),z=i.computed(()=>o.filled===!0?"filled":o.outlined===!0?"outlined":o.borderless===!0?"borderless":o.standout?"standout":"standard"),R=i.computed(()=>`q-field row no-wrap items-start q-field--${z.value}`+(t.fieldClass!==void 0?` ${t.fieldClass.value}`:"")+(o.rounded===!0?" q-field--rounded":"")+(o.square===!0?" q-field--square":"")+(y.value===!0?" q-field--float":"")+(F.value===!0?" q-field--labeled":"")+(o.dense===!0?" q-field--dense":"")+(o.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":"")+(o.hideBottomSpace!==!0&&T.value===!0?" q-field--with-bottom":"")+(o.disable===!0?" q-field--disabled":o.readonly===!0?" q-field--readonly":"")),H=i.computed(()=>"q-field__control relative-position row no-wrap"+(o.bgColor!==void 0?` bg-${o.bgColor}`:"")+(v.value===!0?" text-negative":typeof o.standout=="string"&&o.standout.length!==0&&t.focused.value===!0?` ${o.standout}`:o.color!==void 0?` text-${o.color}`:"")),F=i.computed(()=>o.labelSlot===!0||o.label!==void 0),N=i.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(o.labelColor!==void 0&&v.value!==!0?` text-${o.labelColor}`:"")),Q=i.computed(()=>({id:t.targetUid.value,editable:t.editable.value,focused:t.focused.value,floatingLabel:y.value,modelValue:o.modelValue,emitValue:t.emitValue})),G=i.computed(()=>{const W={};return t.targetUid.value&&(W.for=t.targetUid.value),o.disable===!0&&(W["aria-disabled"]="true"),W});function j(){const W=document.activeElement;let se=t.targetRef!==void 0&&t.targetRef.value;se&&(W===null||W.id!==t.targetUid.value)&&(se.hasAttribute("tabindex")===!0||(se=se.querySelector("[tabindex]")),se&&se!==W&&se.focus({preventScroll:!0}))}function K(){Si(j)}function le(){lh(j);const W=document.activeElement;W!==null&&t.rootRef.value.contains(W)&&W.blur()}function V(W){g!==null&&(clearTimeout(g),g=null),t.editable.value===!0&&t.focused.value===!1&&(t.focused.value=!0,l("focus",W))}function $(W,se){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,l("blur",W)),se!==void 0&&se())})}function Z(W){Ke(W),h.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(),o.type==="file"&&(t.inputRef.value.value=null),l("update:modelValue",null),t.changeEvent===!0&&l("change",null),l("clear",o.modelValue),i.nextTick(()=>{const se=w.value;E(),w.value=se})}function A(W){[13,32].includes(W.keyCode)&&Z(W)}function te(){const W=[];return u.prepend!==void 0&&W.push(i.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:Dt},u.prepend())),W.push(i.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},P())),v.value===!0&&o.noErrorIcon===!1&&W.push(ue("error",[i.h(_t,{name:h.iconSet.field.error,color:"negative"})])),o.loading===!0||t.innerLoading.value===!0?W.push(ue("inner-loading-append",u.loading!==void 0?u.loading():[i.h(ql,{color:o.color})])):o.clearable===!0&&t.hasValue.value===!0&&t.editable.value===!0&&W.push(ue("inner-clearable-append",[i.h(_t,{class:"q-field__focusable-action",name:o.clearIcon||h.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":h.lang.label.clear,onKeyup:A,onClick:Z})])),u.append!==void 0&&W.push(i.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:Dt},u.append())),t.getInnerAppend!==void 0&&W.push(ue("inner-append",t.getInnerAppend())),t.getControlChild!==void 0&&W.push(t.getControlChild()),W}function P(){const W=[];return o.prefix!==void 0&&o.prefix!==null&&W.push(i.h("div",{class:"q-field__prefix no-pointer-events row items-center"},o.prefix)),t.getShadowControl!==void 0&&t.hasShadow.value===!0&&W.push(t.getShadowControl()),t.getControl!==void 0?W.push(t.getControl()):u.rawControl!==void 0?W.push(u.rawControl()):u.control!==void 0&&W.push(i.h("div",{ref:t.targetRef,class:"q-field__native row",tabindex:-1,...t.splitAttrs.attributes.value,"data-autofocus":o.autofocus===!0||void 0},u.control(Q.value))),F.value===!0&&W.push(i.h("div",{class:N.value},vt(u.label,o.label))),o.suffix!==void 0&&o.suffix!==null&&W.push(i.h("div",{class:"q-field__suffix no-pointer-events row items-center"},o.suffix)),W.concat(vt(u.default))}function ae(){let W,se;v.value===!0?C.value!==null?(W=[i.h("div",{role:"alert"},C.value)],se=`q--slot-error-${C.value}`):(W=vt(u.error),se="q--slot-error"):(o.hideHint!==!0||t.focused.value===!0)&&(o.hint!==void 0?(W=[i.h("div",o.hint)],se=`q--slot-hint-${o.hint}`):(W=vt(u.hint),se="q--slot-hint"));const ge=o.counter===!0||u.counter!==void 0;if(o.hideBottomSpace===!0&&ge===!1&&W===void 0)return;const B=i.h("div",{key:se,class:"q-field__messages col"},W);return i.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(o.hideBottomSpace!==!0?"animated":"stale"),onClick:Dt},[o.hideBottomSpace===!0?B:i.h(i.Transition,{name:"q-transition--field-message"},()=>B),ge===!0?i.h("div",{class:"q-field__counter"},u.counter!==void 0?u.counter():t.computedCounter.value):null])}function ue(W,se){return se===null?null:i.h("div",{key:W,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},se)}let fe=!1;return i.onDeactivated(()=>{fe=!0}),i.onActivated(()=>{fe===!0&&o.autofocus===!0&&c.focus()}),o.autofocus===!0&&i.onMounted(()=>{c.focus()}),i.onBeforeUnmount(()=>{g!==null&&clearTimeout(g)}),Object.assign(c,{focus:K,blur:le}),function(){const se=t.getControl===void 0&&u.control===void 0?{...t.splitAttrs.attributes.value,"data-autofocus":o.autofocus===!0||void 0,...G.value}:G.value;return i.h(t.tag.value,{ref:t.rootRef,class:[R.value,s.class],style:s.style,...se},[u.before!==void 0?i.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:Dt},u.before()):null,i.h("div",{class:"q-field__inner relative-position col self-stretch"},[i.h("div",{ref:t.controlRef,class:H.value,tabindex:-1,...t.controlEvents},te()),T.value===!0?ae():null]),u.after!==void 0?i.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:Dt},u.after()):null])}}function Gl(t){return t!==Object(t)||t.isComposing===!0||t.qKeyEvent===!0}function Ln(t,o){return Gl(t)===!0?!1:[].concat(o).includes(t.keyCode)}const qu={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},Ci={"#":{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(Ci);Vu.forEach(t=>{Ci[t].regex=new RegExp(Ci[t].pattern)});const oh=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+Vu.join("")+"])|(.)","g"),Pu=/[.*+?^${}()|[\]\\]/g,We="",ah={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function uh(t,o,l,u){let s,c,h,g,w,k;const v=i.ref(null),C=i.ref(y());function E(){return t.autogrow===!0||["textarea","text","search","url","tel","password"].includes(t.type)}i.watch(()=>t.type+t.autogrow,z),i.watch(()=>t.mask,V=>{if(V!==void 0)R(C.value,!0);else{const $=K(C.value);z(),t.modelValue!==$&&o("update:modelValue",$)}}),i.watch(()=>t.fillMask+t.reverseFillMask,()=>{v.value===!0&&R(C.value,!0)}),i.watch(()=>t.unmaskedValue,()=>{v.value===!0&&R(C.value)});function y(){if(z(),v.value===!0){const V=G(K(t.modelValue));return t.fillMask!==!1?le(V):V}return t.modelValue}function T(V){if(V<s.length)return s.slice(-V);let $="",Z=s;const A=Z.indexOf(We);if(A!==-1){for(let te=V-Z.length;te>0;te--)$+=We;Z=Z.slice(0,A)+$+Z.slice(A)}return Z}function z(){if(v.value=t.mask!==void 0&&t.mask.length!==0&&E(),v.value===!1){g=void 0,s="",c="";return}const V=qu[t.mask]===void 0?t.mask:qu[t.mask],$=typeof t.fillMask=="string"&&t.fillMask.length!==0?t.fillMask.slice(0,1):"_",Z=$.replace(Pu,"\\$&"),A=[],te=[],P=[];let ae=t.reverseFillMask===!0,ue="",fe="";V.replace(oh,(B,O,ie,ve,_e)=>{if(ve!==void 0){const U=Ci[ve];P.push(U),fe=U.negate,ae===!0&&(te.push("(?:"+fe+"+)?("+U.pattern+"+)?(?:"+fe+"+)?("+U.pattern+"+)?"),ae=!1),te.push("(?:"+fe+"+)?("+U.pattern+")?")}else if(ie!==void 0)ue="\\"+(ie==="\\"?"":ie),P.push(ie),A.push("([^"+ue+"]+)?"+ue+"?");else{const U=O!==void 0?O:_e;ue=U==="\\"?"\\\\\\\\":U.replace(Pu,"\\\\$&"),P.push(U),A.push("([^"+ue+"]+)?"+ue+"?")}});const W=new RegExp("^"+A.join("")+"("+(ue===""?".":"[^"+ue+"]")+"+)?"+(ue===""?"":"["+ue+"]*")+"$"),se=te.length-1,ge=te.map((B,O)=>O===0&&t.reverseFillMask===!0?new RegExp("^"+Z+"*"+B):O===se?new RegExp("^"+B+"("+(fe===""?".":fe)+"+)?"+(t.reverseFillMask===!0?"$":Z+"*")):new RegExp("^"+B));h=P,g=B=>{const O=W.exec(t.reverseFillMask===!0?B:B.slice(0,P.length+1));O!==null&&(B=O.slice(1).join(""));const ie=[],ve=ge.length;for(let _e=0,U=B;_e<ve;_e++){const ne=ge[_e].exec(U);if(ne===null)break;U=U.slice(ne.shift().length),ie.push(...ne)}return ie.length!==0?ie.join(""):B},s=P.map(B=>typeof B=="string"?B:We).join(""),c=s.split(We).join($)}function R(V,$,Z){const A=u.value,te=A.selectionEnd,P=A.value.length-te,ae=K(V);$===!0&&z();const ue=G(ae),fe=t.fillMask!==!1?le(ue):ue,W=C.value!==fe;A.value!==fe&&(A.value=fe),W===!0&&(C.value=fe),document.activeElement===A&&i.nextTick(()=>{if(fe===c){const ge=t.reverseFillMask===!0?c.length:0;A.setSelectionRange(ge,ge,"forward");return}if(Z==="insertFromPaste"&&t.reverseFillMask!==!0){const ge=A.selectionEnd;let B=te-1;for(let O=w;O<=B&&O<ge;O++)s[O]!==We&&B++;F.right(A,B);return}if(["deleteContentBackward","deleteContentForward"].indexOf(Z)!==-1){const ge=t.reverseFillMask===!0?te===0?fe.length>ue.length?1:0:Math.max(0,fe.length-(fe===c?0:Math.min(ue.length,P)+1))+1:te;A.setSelectionRange(ge,ge,"forward");return}if(t.reverseFillMask===!0)if(W===!0){const ge=Math.max(0,fe.length-(fe===c?0:Math.min(ue.length,P+1)));ge===1&&te===1?A.setSelectionRange(ge,ge,"forward"):F.rightReverse(A,ge)}else{const ge=fe.length-P;A.setSelectionRange(ge,ge,"backward")}else if(W===!0){const ge=Math.max(0,s.indexOf(We),Math.min(ue.length,te)-1);F.right(A,ge)}else{const ge=te-1;F.right(A,ge)}});const se=t.unmaskedValue===!0?K(fe):fe;String(t.modelValue)!==se&&(t.modelValue!==null||se!=="")&&l(se,!0)}function H(V,$,Z){const A=G(K(V.value));$=Math.max(0,s.indexOf(We),Math.min(A.length,$)),w=$,V.setSelectionRange($,Z,"forward")}const F={left(V,$){const Z=s.slice($-1).indexOf(We)===-1;let A=Math.max(0,$-1);for(;A>=0;A--)if(s[A]===We){$=A,Z===!0&&$++;break}if(A<0&&s[$]!==void 0&&s[$]!==We)return F.right(V,0);$>=0&&V.setSelectionRange($,$,"backward")},right(V,$){const Z=V.value.length;let A=Math.min(Z,$+1);for(;A<=Z;A++)if(s[A]===We){$=A;break}else s[A-1]===We&&($=A);if(A>Z&&s[$-1]!==void 0&&s[$-1]!==We)return F.left(V,Z);V.setSelectionRange($,$,"forward")},leftReverse(V,$){const Z=T(V.value.length);let A=Math.max(0,$-1);for(;A>=0;A--)if(Z[A-1]===We){$=A;break}else if(Z[A]===We&&($=A,A===0))break;if(A<0&&Z[$]!==void 0&&Z[$]!==We)return F.rightReverse(V,0);$>=0&&V.setSelectionRange($,$,"backward")},rightReverse(V,$){const Z=V.value.length,A=T(Z),te=A.slice(0,$+1).indexOf(We)===-1;let P=Math.min(Z,$+1);for(;P<=Z;P++)if(A[P-1]===We){$=P,$>0&&te===!0&&$--;break}if(P>Z&&A[$-1]!==void 0&&A[$-1]!==We)return F.leftReverse(V,Z);V.setSelectionRange($,$,"forward")}};function N(V){o("click",V),k=void 0}function Q(V){if(o("keydown",V),Gl(V)===!0||V.altKey===!0)return;const $=u.value,Z=$.selectionStart,A=$.selectionEnd;if(V.shiftKey||(k=void 0),V.keyCode===37||V.keyCode===39){V.shiftKey&&k===void 0&&(k=$.selectionDirection==="forward"?Z:A);const te=F[(V.keyCode===39?"right":"left")+(t.reverseFillMask===!0?"Reverse":"")];if(V.preventDefault(),te($,k===Z?A:Z),V.shiftKey){const P=$.selectionStart;$.setSelectionRange(Math.min(k,P),Math.max(k,P),"forward")}}else V.keyCode===8&&t.reverseFillMask!==!0&&Z===A?(F.left($,Z),$.setSelectionRange($.selectionStart,A,"backward")):V.keyCode===46&&t.reverseFillMask===!0&&Z===A&&(F.rightReverse($,A),$.setSelectionRange(Z,$.selectionEnd,"forward"))}function G(V){if(V==null||V==="")return"";if(t.reverseFillMask===!0)return j(V);const $=h;let Z=0,A="";for(let te=0;te<$.length;te++){const P=V[Z],ae=$[te];if(typeof ae=="string")A+=ae,P===ae&&Z++;else if(P!==void 0&&ae.regex.test(P))A+=ae.transform!==void 0?ae.transform(P):P,Z++;else return A}return A}function j(V){const $=h,Z=s.indexOf(We);let A=V.length-1,te="";for(let P=$.length-1;P>=0&&A!==-1;P--){const ae=$[P];let ue=V[A];if(typeof ae=="string")te=ae+te,ue===ae&&A--;else if(ue!==void 0&&ae.regex.test(ue))do te=(ae.transform!==void 0?ae.transform(ue):ue)+te,A--,ue=V[A];while(Z===P&&ue!==void 0&&ae.regex.test(ue));else return te}return te}function K(V){return typeof V!="string"||g===void 0?typeof V=="number"?g(""+V):V:g(V)}function le(V){return c.length-V.length<=0?V:t.reverseFillMask===!0&&V.length!==0?c.slice(0,-V.length)+V:V+c.slice(V.length)}return{innerValue:C,hasMask:v,moveCursorForPaste:H,updateMaskValue:R,onMaskedKeydown:Q,onMaskedClick:N}}function sh(t,o){function l(){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(c=>{s.items.add(c)}),{files:s.files}}catch{return{files:void 0}}}return i.computed(()=>{if(t.type==="file")return l()})}const ch=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,fh=/[\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,dh=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,hh=/[a-z0-9_ -]$/i;function Nu(t){return function(l){if(l.type==="compositionend"||l.type==="change"){if(l.target.qComposing!==!0)return;l.target.qComposing=!1,t(l)}else l.type==="compositionupdate"&&l.target.qComposing!==!0&&typeof l.data=="string"&&(pt.is.firefox===!0?hh.test(l.data)===!1:ch.test(l.data)===!0||fh.test(l.data)===!0||dh.test(l.data)===!0)===!0&&(l.target.qComposing=!0)}}const Du=Ze({name:"QInput",inheritAttrs:!1,props:{...xi,...ah,...Nl,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:[...zl,"paste","change","keydown","click","animationend"],setup(t,{emit:o,attrs:l}){const{proxy:u}=i.getCurrentInstance(),{$q:s}=u,c={};let h=NaN,g,w,k=null,v;const C=i.ref(null),E=_u(t),{innerValue:y,hasMask:T,moveCursorForPaste:z,updateMaskValue:R,onMaskedKeydown:H,onMaskedClick:F}=uh(t,o,ue,C),N=sh(t),Q=i.computed(()=>Lr(y.value)),G=Nu(P),j=Hl({changeEvent:!0}),K=i.computed(()=>t.type==="textarea"||t.autogrow===!0),le=i.computed(()=>K.value===!0||["text","search","url","tel","password"].includes(t.type)),V=i.computed(()=>{const O={...j.splitAttrs.listeners.value,onInput:P,onPaste:te,onChange:W,onBlur:se,onFocus:Yt};return O.onCompositionstart=O.onCompositionupdate=O.onCompositionend=G,T.value===!0&&(O.onKeydown=H,O.onClick=F),t.autogrow===!0&&(O.onAnimationend=ae),O}),$=i.computed(()=>{const O={tabindex:0,"data-autofocus":t.autofocus===!0||void 0,rows:t.type==="textarea"?6:void 0,"aria-label":t.label,name:E.value,...j.splitAttrs.attributes.value,id:j.targetUid.value,maxlength:t.maxlength,disabled:t.disable===!0,readonly:t.readonly===!0};return K.value===!1&&(O.type=t.type),t.autogrow===!0&&(O.rows=1),O});i.watch(()=>t.type,()=>{C.value&&(C.value.value=t.modelValue)}),i.watch(()=>t.modelValue,O=>{if(T.value===!0){if(w===!0&&(w=!1,String(O)===h))return;R(O)}else y.value!==O&&(y.value=O,t.type==="number"&&c.hasOwnProperty("value")===!0&&(g===!0?g=!1:delete c.value));t.autogrow===!0&&i.nextTick(fe)}),i.watch(()=>t.autogrow,O=>{O===!0?i.nextTick(fe):C.value!==null&&l.rows>0&&(C.value.style.height="auto")}),i.watch(()=>t.dense,()=>{t.autogrow===!0&&i.nextTick(fe)});function Z(){Si(()=>{const O=document.activeElement;C.value!==null&&C.value!==O&&(O===null||O.id!==j.targetUid.value)&&C.value.focus({preventScroll:!0})})}function A(){C.value!==null&&C.value.select()}function te(O){if(T.value===!0&&t.reverseFillMask!==!0){const ie=O.target;z(ie,ie.selectionStart,ie.selectionEnd)}o("paste",O)}function P(O){if(!O||!O.target)return;if(t.type==="file"){o("update:modelValue",O.target.files);return}const ie=O.target.value;if(O.target.qComposing===!0){c.value=ie;return}if(T.value===!0)R(ie,!1,O.inputType);else if(ue(ie),le.value===!0&&O.target===document.activeElement){const{selectionStart:ve,selectionEnd:_e}=O.target;ve!==void 0&&_e!==void 0&&i.nextTick(()=>{O.target===document.activeElement&&ie.indexOf(O.target.value)===0&&O.target.setSelectionRange(ve,_e)})}t.autogrow===!0&&fe()}function ae(O){o("animationend",O),fe()}function ue(O,ie){v=()=>{k=null,t.type!=="number"&&c.hasOwnProperty("value")===!0&&delete c.value,t.modelValue!==O&&h!==O&&(h=O,ie===!0&&(w=!0),o("update:modelValue",O),i.nextTick(()=>{h===O&&(h=NaN)})),v=void 0},t.type==="number"&&(g=!0,c.value=O),t.debounce!==void 0?(k!==null&&clearTimeout(k),c.value=O,k=setTimeout(v,t.debounce)):v()}function fe(){requestAnimationFrame(()=>{const O=C.value;if(O!==null){const ie=O.parentNode.style,{scrollTop:ve}=O,{overflowY:_e,maxHeight:U}=s.platform.is.firefox===!0?{}:window.getComputedStyle(O),ne=_e!==void 0&&_e!=="scroll";ne===!0&&(O.style.overflowY="hidden"),ie.marginBottom=O.scrollHeight-1+"px",O.style.height="1px",O.style.height=O.scrollHeight+"px",ne===!0&&(O.style.overflowY=parseInt(U,10)<O.scrollHeight?"auto":"hidden"),ie.marginBottom="",O.scrollTop=ve}})}function W(O){G(O),k!==null&&(clearTimeout(k),k=null),v!==void 0&&v(),o("change",O.target.value)}function se(O){O!==void 0&&Yt(O),k!==null&&(clearTimeout(k),k=null),v!==void 0&&v(),g=!1,w=!1,delete c.value,t.type!=="file"&&setTimeout(()=>{C.value!==null&&(C.value.value=y.value!==void 0?y.value:"")})}function ge(){return c.hasOwnProperty("value")===!0?c.value:y.value!==void 0?y.value:""}i.onBeforeUnmount(()=>{se()}),i.onMounted(()=>{t.autogrow===!0&&fe()}),Object.assign(j,{innerValue:y,fieldClass:i.computed(()=>`q-${K.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:C,emitValue:ue,hasValue:Q,floatingLabel:i.computed(()=>Q.value===!0&&(t.type!=="number"||isNaN(y.value)===!1)||Lr(t.displayValue)),getControl:()=>i.h(K.value===!0?"textarea":"input",{ref:C,class:["q-field__native q-placeholder",t.inputClass],style:t.inputStyle,...$.value,...V.value,...t.type!=="file"?{value:ge()}:N.value}),getShadowControl:()=>i.h("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(K.value===!0?"":" text-no-wrap")},[i.h("span",{class:"invisible"},ge()),i.h("span",t.shadowText)])});const B=Wl(j);return Object.assign(u,{focus:Z,select:A,getNativeElement:()=>C.value}),gi(u,"nativeEl",()=>C.value),B}}),ki=Ze({name:"QCard",props:{...lr,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(t,{slots:o}){const{proxy:{$q:l}}=i.getCurrentInstance(),u=or(t,l),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},vt(o.default))}}),mh=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,{expose:o}){const l=i.useModel(t,"modelValue"),u=t,s=i.ref(!1),c=i.computed(()=>u.transparent?"glass-card":"win-card"),h=i.computed(()=>u.label===""?void 0:u.label),g=i.computed(()=>{let y="width: 100%; padding-left: 10px; padding-right: 10px;";return u.inputHeight&&(y+="height: "+u.inputHeight),y}),w=i.computed(()=>l.value||s.value?"17.5px":"15px"),k=i.ref(null);function v(){k.value.focus()}function C(){s.value=!0}function E(){s.value=!1}return o({focus:v}),(y,T)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(ki,{onClick:v,class:i.normalizeClass(`${c.value} row items-center ${l.value&&y.label||s.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(Du,{modelValue:l.value,"onUpdate:modelValue":T[0]||(T[0]=z=>l.value=z),ref_key:"inputRef",ref:k,"label-color":"black","input-class":`text-black ${h.value?"":"text-center ww-title"}`,"input-style":y.inputStyle,style:i.normalizeStyle(g.value),readonly:y.readonly,mask:y.mask,prefix:y.prefix,label:h.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:C,onBlur:E},{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: ${w.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))}}),gh={class:"ww-subtitle text-center q-mb-md text-grey-9",style:{"font-weight":"600"}},ph=i.defineComponent({__name:"ControlLabel",props:{label:{}},setup(t){return(o,l)=>(i.openBlock(),i.createElementBlock("div",gh,i.toDisplayString(o.label),1))}}),vh={style:{"max-width":"400px"},class:"text-center"},_h={style:{"font-size":"16px"}},bh={style:{"font-size":"16px"}},Kl=Ot(i.defineComponent({__name:"InputControl",props:i.mergeModels({control:{},innerLabel:{type:Boolean,default:!1}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=t,l=i.ref(null),u=i.computed(()=>{var c;return(c=o.control.controlType)==null?void 0:c.split("_")[1]}),s=i.useModel(t,"modelValue");return i.onMounted(()=>{var c;(c=l.value)==null||c.focus()}),(c,h)=>(i.openBlock(),i.createElementBlock("div",vh,[!c.innerLabel&&c.control.label?(i.openBlock(),i.createBlock(ph,{key:0,label:c.control.label},null,8,["label"])):i.createCommentVNode("",!0),i.createVNode(mh,{modelValue:s.value,"onUpdate:modelValue":h[0]||(h[0]=g=>s.value=g),width:"250px",mask:u.value==="number"?"###.###.###.###.###":void 0,label:c.innerLabel?c.control.label:void 0,inputStyle:{textAlign:(u.value==="number","center")},ref_key:"inputRef",ref:l},i.createSlots({_:2},[c.control.prefix?{name:"prepend",fn:i.withCtx(()=>[i.createElementVNode("span",_h,i.toDisplayString(c.control.prefix),1)]),key:"0"}:void 0,c.control.suffix?{name:"append",fn:i.withCtx(()=>[i.createElementVNode("span",bh,i.toDisplayString(c.control.suffix),1)]),key:"1"}:void 0]),1032,["modelValue","mask","label","inputStyle"])]))}}),[["__scopeId","data-v-8f5284d3"]]);function jl(t,o){const l=t.style;for(const u in o)l[u]=o[u]}function yh(t){if(t==null)return;if(typeof t=="string")try{return document.querySelector(t)||void 0}catch{return}const o=i.unref(t);if(o)return o.$el||o}function $u(t,o){if(t==null||t.contains(o)===!0)return!0;for(let l=t.nextElementSibling;l!==null;l=l.nextElementSibling)if(l.contains(o))return!0;return!1}function wh(t,o=250){let l=!1,u;return function(){return l===!1&&(l=!0,setTimeout(()=>{l=!1},o),u=t.apply(this,arguments)),u}}function Fu(t,o,l,u){l.modifiers.stop===!0&&Yt(t);const s=l.modifiers.color;let c=l.modifiers.center;c=c===!0||u===!0;const h=document.createElement("span"),g=document.createElement("span"),w=bu(t),{left:k,top:v,width:C,height:E}=o.getBoundingClientRect(),y=Math.sqrt(C*C+E*E),T=y/2,z=`${(C-y)/2}px`,R=c?z:`${w.left-k-T}px`,H=`${(E-y)/2}px`,F=c?H:`${w.top-v-T}px`;g.className="q-ripple__inner",jl(g,{height:`${y}px`,width:`${y}px`,transform:`translate3d(${R},${F},0) scale3d(.2,.2,1)`,opacity:0}),h.className=`q-ripple${s?" text-"+s:""}`,h.setAttribute("dir","ltr"),h.appendChild(g),o.appendChild(h);const N=()=>{h.remove(),clearTimeout(Q)};l.abort.push(N);let Q=setTimeout(()=>{g.classList.add("q-ripple__inner--enter"),g.style.transform=`translate3d(${z},${H},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(()=>{h.remove(),l.abort.splice(l.abort.indexOf(N),1)},275)},250)},50)}function Uu(t,{modifiers:o,value:l,arg:u}){const s=Object.assign({},t.cfg.ripple,o,l);t.modifiers={early:s.early===!0,stop:s.stop===!0,center:s.center===!0,color:s.color||u,keyCodes:[].concat(s.keyCodes||13)}}const zu=ou({name:"ripple",beforeMount(t,o){const l=o.instance.$.appContext.config.globalProperties.$q.config||{};if(l.ripple===!1)return;const u={cfg:l,enabled:o.value!==!1,modifiers:{},abort:[],start(s){u.enabled===!0&&s.qSkipRipple!==!0&&s.type===(u.modifiers.early===!0?"pointerdown":"click")&&Fu(s,t,u,s.qKeyEvent===!0)},keystart:wh(s=>{u.enabled===!0&&s.qSkipRipple!==!0&&Ln(s,u.modifiers.keyCodes)===!0&&s.type===`key${u.modifiers.early===!0?"down":"up"}`&&Fu(s,t,u,!0)},300)};Uu(u,o),t.__qripple=u,Dl(u,"main",[[t,"pointerdown","start","passive"],[t,"click","start","passive"],[t,"keydown","keystart","passive"],[t,"keyup","keystart","passive"]])},updated(t,o){if(o.oldValue!==o.value){const l=t.__qripple;l!==void 0&&(l.enabled=o.value!==!1,l.enabled===!0&&Object(o.value)===o.value&&Uu(l,o))}},beforeUnmount(t){const o=t.__qripple;o!==void 0&&(o.abort.forEach(l=>{l()}),yu(o,"main"),delete t._qripple)}}),Hu={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},Sh=Object.keys(Hu),xh={align:{type:String,validator:t=>Sh.includes(t)}};function Ch(t){return i.computed(()=>{const o=t.align===void 0?t.vertical===!0?"stretch":"left":t.align;return`${t.vertical===!0?"items":"justify"}-${Hu[o]}`})}function Wu(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}function Gu(t,o){return(t.aliasOf||t)===(o.aliasOf||o)}function kh(t,o){for(const l in o){const u=o[l],s=t[l];if(typeof u=="string"){if(u!==s)return!1}else if(Array.isArray(s)===!1||s.length!==u.length||u.some((c,h)=>c!==s[h]))return!1}return!0}function Ku(t,o){return Array.isArray(o)===!0?t.length===o.length&&t.every((l,u)=>l===o[u]):t.length===1&&t[0]===o}function Eh(t,o){return Array.isArray(t)===!0?Ku(t,o):Array.isArray(o)===!0?Ku(o,t):t===o}function Ah(t,o){if(Object.keys(t).length!==Object.keys(o).length)return!1;for(const l in t)if(Eh(t[l],o[l])===!1)return!1;return!0}const ju={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},Oh={...ju,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function Yu({fallbackTag:t,useDisableForRouterLinkProps:o=!0}={}){const l=i.getCurrentInstance(),{props:u,proxy:s,emit:c}=l,h=fu(l),g=i.computed(()=>u.disable!==!0&&u.href!==void 0),w=o===!0?i.computed(()=>h===!0&&u.disable!==!0&&g.value!==!0&&u.to!==void 0&&u.to!==null&&u.to!==""):i.computed(()=>h===!0&&g.value!==!0&&u.to!==void 0&&u.to!==null&&u.to!==""),k=i.computed(()=>w.value===!0?F(u.to):null),v=i.computed(()=>k.value!==null),C=i.computed(()=>g.value===!0||v.value===!0),E=i.computed(()=>u.type==="a"||C.value===!0?"a":u.tag||t||"div"),y=i.computed(()=>g.value===!0?{href:u.href,target:u.target}:v.value===!0?{href:k.value.href,target:u.target}:{}),T=i.computed(()=>{if(v.value===!1)return-1;const{matched:G}=k.value,{length:j}=G,K=G[j-1];if(K===void 0)return-1;const le=s.$route.matched;if(le.length===0)return-1;const V=le.findIndex(Gu.bind(null,K));if(V!==-1)return V;const $=Wu(G[j-2]);return j>1&&Wu(K)===$&&le[le.length-1].path!==$?le.findIndex(Gu.bind(null,G[j-2])):V}),z=i.computed(()=>v.value===!0&&T.value!==-1&&kh(s.$route.params,k.value.params)),R=i.computed(()=>z.value===!0&&T.value===s.$route.matched.length-1&&Ah(s.$route.params,k.value.params)),H=i.computed(()=>v.value===!0?R.value===!0?` ${u.exactActiveClass} ${u.activeClass}`:u.exact===!0?"":z.value===!0?` ${u.activeClass}`:"":"");function F(G){try{return s.$router.resolve(G)}catch{}return null}function N(G,{returnRouterError:j,to:K=u.to,replace:le=u.replace}={}){if(u.disable===!0)return G.preventDefault(),Promise.resolve(!1);if(G.metaKey||G.altKey||G.ctrlKey||G.shiftKey||G.button!==void 0&&G.button!==0||u.target==="_blank")return Promise.resolve(!1);G.preventDefault();const V=s.$router[le===!0?"replace":"push"](K);return j===!0?V:V.then(()=>{}).catch(()=>{})}function Q(G){if(v.value===!0){const j=K=>N(G,K);c("click",G,j),G.defaultPrevented!==!0&&j()}else c("click",G)}return{hasRouterLink:v,hasHrefLink:g,hasLink:C,linkTag:E,resolvedLink:k,linkIsActive:z,linkIsExactActive:R,linkClass:H,linkAttrs:y,getLink:F,navigateToRouterLink:N,navigateOnClick:Q}}const Qu={none:0,xs:4,sm:8,md:16,lg:24,xl:32},Th={xs:8,sm:10,md:14,lg:20,xl:24},Bh=["button","submit","reset"],Rh=/[^\s]\/[^\s]/,Ih=["flat","outline","push","unelevated"];function Mh(t,o){return t.flat===!0?"flat":t.outline===!0?"outline":t.push===!0?"push":t.unelevated===!0?"unelevated":o}const Lh={...{...pi,...ju,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...Ih.reduce((t,o)=>(t[o]=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:{...xh.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},round:Boolean};function qh(t){const o=vi(t,Th),l=Ch(t),{hasRouterLink:u,hasLink:s,linkTag:c,linkAttrs:h,navigateOnClick:g}=Yu({fallbackTag:"button"}),w=i.computed(()=>{const R=t.fab===!1&&t.fabMini===!1?o.value:{};return t.padding!==void 0?Object.assign({},R,{padding:t.padding.split(/\s+/).map(H=>H in Qu?Qu[H]+"px":H).join(" "),minWidth:"0",minHeight:"0"}):R}),k=i.computed(()=>t.rounded===!0||t.fab===!0||t.fabMini===!0),v=i.computed(()=>t.disable!==!0&&t.loading!==!0),C=i.computed(()=>v.value===!0?t.tabindex||0:-1),E=i.computed(()=>Mh(t,"standard")),y=i.computed(()=>{const R={tabindex:C.value};return s.value===!0?Object.assign(R,h.value):Bh.includes(t.type)===!0&&(R.type=t.type),c.value==="a"?(t.disable===!0?R["aria-disabled"]="true":R.href===void 0&&(R.role="button"),u.value!==!0&&Rh.test(t.type)===!0&&(R.type=t.type)):t.disable===!0&&(R.disabled="",R["aria-disabled"]="true"),t.loading===!0&&t.percentage!==void 0&&Object.assign(R,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":t.percentage}),R}),T=i.computed(()=>{let R;t.color!==void 0?t.flat===!0||t.outline===!0?R=`text-${t.textColor||t.color}`:R=`bg-${t.color} text-${t.textColor||"white"}`:t.textColor&&(R=`text-${t.textColor}`);const H=t.round===!0?"round":`rectangle${k.value===!0?" q-btn--rounded":t.square===!0?" q-btn--square":""}`;return`q-btn--${E.value} q-btn--${H}`+(R!==void 0?" "+R:"")+(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":"")}),z=i.computed(()=>l.value+(t.stack===!0?" column":" row")+(t.noWrap===!0?" no-wrap text-no-wrap":"")+(t.loading===!0?" q-btn__content--hidden":""));return{classes:T,style:w,innerClasses:z,attributes:y,hasLink:s,linkTag:c,navigateOnClick:g,isActionable:v}}const{passiveCapture:Tt}=st;let ar=null,ur=null,sr=null;const cr=Ze({name:"QBtn",props:{...Lh,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(t,{slots:o,emit:l}){const{proxy:u}=i.getCurrentInstance(),{classes:s,style:c,innerClasses:h,attributes:g,hasLink:w,linkTag:k,navigateOnClick:v,isActionable:C}=qh(t),E=i.ref(null),y=i.ref(null);let T=null,z,R=null;const H=i.computed(()=>t.label!==void 0&&t.label!==null&&t.label!==""),F=i.computed(()=>t.disable===!0||t.ripple===!1?!1:{keyCodes:w.value===!0?[13,32]:[13],...t.ripple===!0?{}:t.ripple}),N=i.computed(()=>({center:t.round})),Q=i.computed(()=>{const P=Math.max(0,Math.min(100,t.percentage));return P>0?{transition:"transform 0.6s",transform:`translateX(${P-100}%)`}:{}}),G=i.computed(()=>{if(t.loading===!0)return{onMousedown:te,onTouchstart:te,onClick:te,onKeydown:te,onKeyup:te};if(C.value===!0){const P={onClick:K,onKeydown:le,onMousedown:$};if(u.$q.platform.has.touch===!0){const ae=t.onTouchstart!==void 0?"":"Passive";P[`onTouchstart${ae}`]=V}return P}return{onClick:Ke}}),j=i.computed(()=>({ref:E,class:"q-btn q-btn-item non-selectable no-outline "+s.value,style:c.value,...g.value,...G.value}));function K(P){if(E.value!==null){if(P!==void 0){if(P.defaultPrevented===!0)return;const ae=document.activeElement;if(t.type==="submit"&&ae!==document.body&&E.value.contains(ae)===!1&&ae.contains(E.value)===!1){E.value.focus();const ue=()=>{document.removeEventListener("keydown",Ke,!0),document.removeEventListener("keyup",ue,Tt),E.value!==null&&E.value.removeEventListener("blur",ue,Tt)};document.addEventListener("keydown",Ke,!0),document.addEventListener("keyup",ue,Tt),E.value.addEventListener("blur",ue,Tt)}}v(P)}}function le(P){E.value!==null&&(l("keydown",P),Ln(P,[13,32])===!0&&ur!==E.value&&(ur!==null&&A(),P.defaultPrevented!==!0&&(E.value.focus(),ur=E.value,E.value.classList.add("q-btn--active"),document.addEventListener("keyup",Z,!0),E.value.addEventListener("blur",Z,Tt)),Ke(P)))}function V(P){E.value!==null&&(l("touchstart",P),P.defaultPrevented!==!0&&(ar!==E.value&&(ar!==null&&A(),ar=E.value,T=P.target,T.addEventListener("touchcancel",Z,Tt),T.addEventListener("touchend",Z,Tt)),z=!0,R!==null&&clearTimeout(R),R=setTimeout(()=>{R=null,z=!1},200)))}function $(P){E.value!==null&&(P.qSkipRipple=z===!0,l("mousedown",P),P.defaultPrevented!==!0&&sr!==E.value&&(sr!==null&&A(),sr=E.value,E.value.classList.add("q-btn--active"),document.addEventListener("mouseup",Z,Tt)))}function Z(P){if(E.value!==null&&!(P!==void 0&&P.type==="blur"&&document.activeElement===E.value)){if(P!==void 0&&P.type==="keyup"){if(ur===E.value&&Ln(P,[13,32])===!0){const ae=new MouseEvent("click",P);ae.qKeyEvent=!0,P.defaultPrevented===!0&&Dt(ae),P.cancelBubble===!0&&Yt(ae),E.value.dispatchEvent(ae),Ke(P),P.qKeyEvent=!0}l("keyup",P)}A()}}function A(P){const ae=y.value;P!==!0&&(ar===E.value||sr===E.value)&&ae!==null&&ae!==document.activeElement&&(ae.setAttribute("tabindex",-1),ae.focus()),ar===E.value&&(T!==null&&(T.removeEventListener("touchcancel",Z,Tt),T.removeEventListener("touchend",Z,Tt)),ar=T=null),sr===E.value&&(document.removeEventListener("mouseup",Z,Tt),sr=null),ur===E.value&&(document.removeEventListener("keyup",Z,!0),E.value!==null&&E.value.removeEventListener("blur",Z,Tt),ur=null),E.value!==null&&E.value.classList.remove("q-btn--active")}function te(P){Ke(P),P.qSkipRipple=!0}return i.onBeforeUnmount(()=>{A(!0)}),Object.assign(u,{click:P=>{C.value===!0&&K(P)}}),()=>{let P=[];t.icon!==void 0&&P.push(i.h(_t,{name:t.icon,left:t.stack!==!0&&H.value===!0,role:"img"})),H.value===!0&&P.push(i.h("span",{class:"block"},[t.label])),P=In(o.default,P),t.iconRight!==void 0&&t.round===!1&&P.push(i.h(_t,{name:t.iconRight,right:t.stack!==!0&&H.value===!0,role:"img"}));const ae=[i.h("span",{class:"q-focus-helper",ref:y})];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 "+h.value},P)),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"},o.loading!==void 0?o.loading():[i.h(ql)])]:null)),i.withDirectives(i.h(k.value,j.value,ae),[[zu,F.value,void 0,N.value]])}}}),Zu=t=>(i.pushScopeId("data-v-3bcb795a"),t=t(),i.popScopeId(),t),Vh={class:"buttons-container"},Ph={class:"lt-md"},Nh={class:"row justify-between q-my-md q-px-md"},Dh=Zu(()=>i.createElementVNode("span",{class:"text-black"},"Atrás",-1)),$h={key:1},Fh=Zu(()=>i.createElementVNode("span",{class:"text-black"},"Siguiente",-1)),Uh=Ot(i.defineComponent({__name:"NavigationButtons",props:{currentStep:{},stepsCount:{},nextDisabled:{type:Boolean}},emits:["prev","next"],setup(t){const o=t,l=i.computed(()=>o.currentStep+1);return(u,s)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",Vh,[l.value>1?(i.openBlock(),i.createBlock(cr,{key:0,style:{position:"absolute",left:"25px",cursor:"pointer"},size:"26px",color:"white","text-color":"white",class:"gt-sm",onClick:s[0]||(s[0]=c=>u.$emit("prev")),flat:""},{default:i.withCtx(()=>[i.createVNode(_t,{name:"arrow_back_ios",color:"info"})]),_:1})):i.createCommentVNode("",!0),l.value!==u.stepsCount?(i.openBlock(),i.createBlock(cr,{key:1,style:{position:"absolute",right:"25px",cursor:"pointer"},size:"26px",color:"white","text-color":"white",class:"gt-sm",onClick:s[1]||(s[1]=c=>u.$emit("next")),disable:u.nextDisabled,flat:""},{default:i.withCtx(()=>[i.createVNode(_t,{name:"arrow_forward_ios",color:"info"})]),_:1},8,["disable"])):i.createCommentVNode("",!0)]),i.createElementVNode("div",Ph,[i.createElementVNode("div",Nh,[l.value>1&&l.value<u.stepsCount?(i.openBlock(),i.createBlock(cr,{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]=c=>u.$emit("prev")),flat:"","no-caps":""},{default:i.withCtx(()=>[Dh]),_:1})):(i.openBlock(),i.createElementBlock("div",$h)),l.value<u.stepsCount?(i.openBlock(),i.createBlock(cr,{key:2,color:"info",class:"q-px-xl q-py-sm q-ml-sm win-btn win-btn-primary",onClick:s[3]||(s[3]=c=>u.$emit("next")),disable:u.nextDisabled,flat:"","no-caps":""},{default:i.withCtx(()=>[Fh]),_:1},8,["disable"])):i.createCommentVNode("",!0)])])],64))}}),[["__scopeId","data-v-3bcb795a"]]),zh=Ze({name:"QField",inheritAttrs:!1,props:{...xi,tag:{type:String,default:"label"}},emits:zl,setup(){return Wl(Hl({tagProp:!0}))}}),Hh={xs:8,sm:10,md:14,lg:20,xl:24},Wh=Ze({name:"QChip",props:{...lr,...pi,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:o,emit:l}){const{proxy:{$q:u}}=i.getCurrentInstance(),s=or(t,u),c=vi(t,Hh),h=i.computed(()=>t.selected===!0||t.icon!==void 0),g=i.computed(()=>t.selected===!0?t.iconSelected||u.iconSet.chip.selected:t.icon),w=i.computed(()=>t.iconRemove||u.iconSet.chip.remove),k=i.computed(()=>t.disable===!1&&(t.clickable===!0||t.selected!==null)),v=i.computed(()=>{const R=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}`:"")+(R?` text-${R} 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":"")+(k.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":"")}),C=i.computed(()=>{const R=t.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:t.tabindex||0},H={...R,role:"button","aria-hidden":"false","aria-label":t.removeAriaLabel||u.lang.label.remove};return{chip:R,remove:H}});function E(R){R.keyCode===13&&y(R)}function y(R){t.disable||(l("update:selected",!t.selected),l("click",R))}function T(R){(R.keyCode===void 0||R.keyCode===13)&&(Ke(R),t.disable===!1&&(l("update:modelValue",!1),l("remove")))}function z(){const R=[];k.value===!0&&R.push(i.h("div",{class:"q-focus-helper"})),h.value===!0&&R.push(i.h(_t,{class:"q-chip__icon q-chip__icon--left",name:g.value}));const H=t.label!==void 0?[i.h("div",{class:"ellipsis"},[t.label])]:void 0;return R.push(i.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},bd(o.default,H))),t.iconRight&&R.push(i.h(_t,{class:"q-chip__icon q-chip__icon--right",name:t.iconRight})),t.removable===!0&&R.push(i.h(_t,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:w.value,...C.value.remove,onClick:T,onKeyup:T})),R}return()=>{if(t.modelValue===!1)return;const R={class:v.value,style:c.value};return k.value===!0&&Object.assign(R,C.value.chip,{onClick:y,onKeyup:E}),cu("div",R,z(),"ripple",t.ripple!==!1&&t.disable!==!0,()=>[[zu,t.ripple]])}}}),Gh=Ze({name:"QItem",props:{...lr,...Oh,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:o,emit:l}){const{proxy:{$q:u}}=i.getCurrentInstance(),s=or(t,u),{hasLink:c,linkAttrs:h,linkClass:g,linkTag:w,navigateOnClick:k}=Yu(),v=i.ref(null),C=i.ref(null),E=i.computed(()=>t.clickable===!0||c.value===!0||t.tag==="label"),y=i.computed(()=>t.disable!==!0&&E.value===!0),T=i.computed(()=>"q-item q-item-type row no-wrap"+(t.dense===!0?" q-item--dense":"")+(s.value===!0?" q-item--dark":"")+(c.value===!0&&t.active===null?g.value:t.active===!0?` q-item--active${t.activeClass!==void 0?` ${t.activeClass}`:""}`:"")+(t.disable===!0?" disabled":"")+(y.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":""):"")),z=i.computed(()=>t.insetLevel===void 0?null:{["padding"+(u.lang.rtl===!0?"Right":"Left")]:16+t.insetLevel*56+"px"});function R(N){y.value===!0&&(C.value!==null&&(N.qKeyEvent!==!0&&document.activeElement===v.value?C.value.focus():document.activeElement===C.value&&v.value.focus()),k(N))}function H(N){if(y.value===!0&&Ln(N,[13,32])===!0){Ke(N),N.qKeyEvent=!0;const Q=new MouseEvent("click",N);Q.qKeyEvent=!0,v.value.dispatchEvent(Q)}l("keyup",N)}function F(){const N=_d(o.default,[]);return y.value===!0&&N.unshift(i.h("div",{class:"q-focus-helper",tabindex:-1,ref:C})),N}return()=>{const N={ref:v,class:T.value,style:z.value,role:"listitem",onClick:R,onKeyup:H};return y.value===!0?(N.tabindex=t.tabindex||"0",Object.assign(N,h.value)):E.value===!0&&(N["aria-disabled"]="true"),i.h(w.value,N,F())}}}),Kh=Ze({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(t,{slots:o}){const l=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:l.value},vt(o.default))}}),jh=Ze({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(t,{slots:o}){const l=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":"")+(l.value===1?" ellipsis":"")),s=i.computed(()=>t.lines!==void 0&&l.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":l.value}:null);return()=>i.h("div",{style:s.value,class:u.value},vt(o.default))}});function Yh(){if(window.getSelection!==void 0){const t=window.getSelection();t.empty!==void 0?t.empty():t.removeAllRanges!==void 0&&(t.removeAllRanges(),Ml.is.mobile!==!0&&t.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}const Qh={...{target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},contextMenu:Boolean};function Zh({showing:t,avoidEmit:o,configureAnchorEl:l}){const{props:u,proxy:s,emit:c}=i.getCurrentInstance(),h=i.ref(null);let g=null;function w(y){return h.value===null?!1:y===void 0||y.touches===void 0||y.touches.length<=1}const k={};l===void 0&&(Object.assign(k,{hide(y){s.hide(y)},toggle(y){s.toggle(y),y.qAnchorHandled=!0},toggleKey(y){Ln(y,13)===!0&&k.toggle(y)},contextClick(y){s.hide(y),Dt(y),i.nextTick(()=>{s.show(y),y.qAnchorHandled=!0})},prevent:Dt,mobileTouch(y){if(k.mobileCleanup(y),w(y)!==!0)return;s.hide(y),h.value.classList.add("non-selectable");const T=y.target;Dl(k,"anchor",[[T,"touchmove","mobileCleanup","passive"],[T,"touchend","mobileCleanup","passive"],[T,"touchcancel","mobileCleanup","passive"],[h.value,"contextmenu","prevent","notPassive"]]),g=setTimeout(()=>{g=null,s.show(y),y.qAnchorHandled=!0},300)},mobileCleanup(y){h.value.classList.remove("non-selectable"),g!==null&&(clearTimeout(g),g=null),t.value===!0&&y!==void 0&&Yh()}}),l=function(y=u.contextMenu){if(u.noParentEvent===!0||h.value===null)return;let T;y===!0?s.$q.platform.is.mobile===!0?T=[[h.value,"touchstart","mobileTouch","passive"]]:T=[[h.value,"mousedown","hide","passive"],[h.value,"contextmenu","contextClick","notPassive"]]:T=[[h.value,"click","toggle","passive"],[h.value,"keyup","toggleKey","passive"]],Dl(k,"anchor",T)});function v(){yu(k,"anchor")}function C(y){for(h.value=y;h.value.classList.contains("q-anchor--skip");)h.value=h.value.parentNode;l()}function E(){if(u.target===!1||u.target===""||s.$el.parentNode===null)h.value=null;else if(u.target===!0)C(s.$el.parentNode);else{let y=u.target;if(typeof u.target=="string")try{y=document.querySelector(u.target)}catch{y=void 0}y!=null?(h.value=y.$el||y,l()):(h.value=null,console.error(`Anchor: target "${u.target}" not found`))}}return i.watch(()=>u.contextMenu,y=>{h.value!==null&&(v(),l(y))}),i.watch(()=>u.target,()=>{h.value!==null&&v(),E()}),i.watch(()=>u.noParentEvent,y=>{h.value!==null&&(y===!0?v():l())}),i.onMounted(()=>{E(),o!==!0&&u.modelValue===!0&&h.value===null&&c("update:modelValue",!1)}),i.onBeforeUnmount(()=>{g!==null&&clearTimeout(g),v()}),{anchorEl:h,canShow:w,anchorEvents:k}}function Xh(t,o){const l=i.ref(null);let u;function s(g,w){const k=`${w!==void 0?"add":"remove"}EventListener`,v=w!==void 0?w:u;g!==window&&g[k]("scroll",v,st.passive),window[k]("scroll",v,st.passive),u=w}function c(){l.value!==null&&(s(l.value),l.value=null)}const h=i.watch(()=>t.noParentEvent,()=>{l.value!==null&&(c(),o())});return i.onBeforeUnmount(h),{localScrollTarget:l,unconfigureScrollTarget:c,changeScrollEvent:s}}const Xu={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},Ju=["beforeShow","show","beforeHide","hide"];function es({showing:t,canShow:o,hideOnRouteChange:l,handleShow:u,handleHide:s,processOnMount:c}){const h=i.getCurrentInstance(),{props:g,emit:w,proxy:k}=h;let v;function C(F){t.value===!0?T(F):E(F)}function E(F){if(g.disable===!0||F!==void 0&&F.qAnchorHandled===!0||o!==void 0&&o(F)!==!0)return;const N=g["onUpdate:modelValue"]!==void 0;N===!0&&(w("update:modelValue",!0),v=F,i.nextTick(()=>{v===F&&(v=void 0)})),(g.modelValue===null||N===!1)&&y(F)}function y(F){t.value!==!0&&(t.value=!0,w("beforeShow",F),u!==void 0?u(F):w("show",F))}function T(F){if(g.disable===!0)return;const N=g["onUpdate:modelValue"]!==void 0;N===!0&&(w("update:modelValue",!1),v=F,i.nextTick(()=>{v===F&&(v=void 0)})),(g.modelValue===null||N===!1)&&z(F)}function z(F){t.value!==!1&&(t.value=!1,w("beforeHide",F),s!==void 0?s(F):w("hide",F))}function R(F){g.disable===!0&&F===!0?g["onUpdate:modelValue"]!==void 0&&w("update:modelValue",!1):F===!0!==t.value&&(F===!0?y:z)(v)}i.watch(()=>g.modelValue,R),l!==void 0&&fu(h)===!0&&i.watch(()=>k.$route.fullPath,()=>{l.value===!0&&t.value===!0&&T()}),c===!0&&i.onMounted(()=>{R(g.modelValue)});const H={show:E,hide:T,toggle:C};return Object.assign(k,H),H}const ts={};let Jh=1,em=document.body;function tm(t,o){const l=document.createElement("div");if(l.id=o!==void 0?`q-portal--${o}--${Jh++}`:t,ts.globalNodes!==void 0){const u=ts.globalNodes.class;u!==void 0&&(l.className=u)}return em.appendChild(l),l}function nm(t){t.remove()}const qr=[];function rm(t,o){do{if(t.$options.name==="QMenu"){if(t.hide(o),t.$props.separateClosePopup===!0)return Vl(t)}else if(t.__qPortal===!0){const l=Vl(t);return l!==void 0&&l.$options.name==="QPopupProxy"?(t.hide(o),l):t}t=Vl(t)}while(t!=null)}const im=Ze({name:"QPortal",setup(t,{slots:o}){return()=>o.default()}});function lm(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 ns(t,o,l,u){const s=i.ref(!1),c=i.ref(!1);let h=null;const g={},w=u==="dialog"&&lm(t);function k(C){if(C===!0){Lu(g),c.value=!0;return}c.value=!1,s.value===!1&&(w===!1&&h===null&&(h=tm(!1,u)),s.value=!0,qr.push(t.proxy),ih(g))}function v(C){if(c.value=!1,C!==!0)return;Lu(g),s.value=!1;const E=qr.indexOf(t.proxy);E!==-1&&qr.splice(E,1),h!==null&&(nm(h),h=null)}return i.onUnmounted(()=>{v(!0)}),t.proxy.__qPortal=!0,gi(t.proxy,"contentEl",()=>o.value),{showPortal:k,hidePortal:v,portalIsActive:s,portalIsAccessible:c,renderPortal:()=>w===!0?l():s.value===!0?[i.h(i.Teleport,{to:h},i.h(im,l))]:void 0}}const rs={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function is(t,o=()=>{},l=()=>{}){return{transitionProps:i.computed(()=>{const u=`q-transition--${t.transitionShow||o()}`,s=`q-transition--${t.transitionHide||l()}`;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 ls(){let t;const o=i.getCurrentInstance();function l(){t=void 0}return i.onDeactivated(l),i.onBeforeUnmount(l),{removeTick:l,registerTick(u){t=u,i.nextTick(()=>{t===u&&(Ir(o)===!1&&t(),t=void 0)})}}}const om=[Element,String],am=[null,document,document.body,document.scrollingElement,document.documentElement];function um(t,o){let l=yh(o);if(l===void 0){if(t==null)return window;l=t.closest(".scroll,.scroll-y,.overflow-auto")}return am.includes(l)?window:l}function sm(t){return t===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:t.scrollTop}function cm(t){return t===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:t.scrollLeft}let Ei;function fm(){if(Ei!==void 0)return Ei;const t=document.createElement("p"),o=document.createElement("div");jl(t,{width:"100%",height:"200px"}),jl(o,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),o.appendChild(t),document.body.appendChild(o);const l=t.offsetWidth;o.style.overflow="scroll";let u=t.offsetWidth;return l===u&&(u=o.clientWidth),o.remove(),Ei=l-u,Ei}function dm(t,o=!0){return!t||t.nodeType!==Node.ELEMENT_NODE?!1:o?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 qn=[];let fr;function hm(t){fr=t.keyCode===27}function mm(){fr===!0&&(fr=!1)}function gm(t){fr===!0&&(fr=!1,Ln(t,27)===!0&&qn[qn.length-1](t))}function os(t){window[t]("keydown",hm),window[t]("blur",mm),window[t]("keyup",gm),fr=!1}function as(t){pt.is.desktop===!0&&(qn.push(t),qn.length===1&&os("addEventListener"))}function Ai(t){const o=qn.indexOf(t);o!==-1&&(qn.splice(o,1),qn.length===0&&os("removeEventListener"))}const Vn=[];function us(t){Vn[Vn.length-1](t)}function ss(t){pt.is.desktop===!0&&(Vn.push(t),Vn.length===1&&document.body.addEventListener("focusin",us))}function Yl(t){const o=Vn.indexOf(t);o!==-1&&(Vn.splice(o,1),Vn.length===0&&document.body.removeEventListener("focusin",us))}const{notPassiveCapture:Oi}=st,Pn=[];function Ti(t){const o=t.target;if(o===void 0||o.nodeType===8||o.classList.contains("no-pointer-events")===!0)return;let l=qr.length-1;for(;l>=0;){const u=qr[l].$;if(u.type.name==="QTooltip"){l--;continue}if(u.type.name!=="QDialog")break;if(u.props.seamless!==!0)return;l--}for(let u=Pn.length-1;u>=0;u--){const s=Pn[u];if((s.anchorEl.value===null||s.anchorEl.value.contains(o)===!1)&&(o===document.body||s.innerRef.value!==null&&s.innerRef.value.contains(o)===!1))t.qClickOutside=!0,s.onClickOutside(t);else return}}function pm(t){Pn.push(t),Pn.length===1&&(document.addEventListener("mousedown",Ti,Oi),document.addEventListener("touchstart",Ti,Oi))}function cs(t){const o=Pn.findIndex(l=>l===t);o!==-1&&(Pn.splice(o,1),Pn.length===0&&(document.removeEventListener("mousedown",Ti,Oi),document.removeEventListener("touchstart",Ti,Oi)))}let fs,ds;function hs(t){const o=t.split(" ");return o.length!==2?!1:["top","center","bottom"].includes(o[0])!==!0?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):["left","middle","right","start","end"].includes(o[1])!==!0?(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1):!0}function vm(t){return t?!(t.length!==2||typeof t[0]!="number"||typeof t[1]!="number"):!0}const Ql={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(t=>{Ql[`${t}#ltr`]=t,Ql[`${t}#rtl`]=t});function ms(t,o){const l=t.split(" ");return{vertical:l[0],horizontal:Ql[`${l[1]}#${o===!0?"rtl":"ltr"}`]}}function _m(t,o){let{top:l,left:u,right:s,bottom:c,width:h,height:g}=t.getBoundingClientRect();return o!==void 0&&(l-=o[1],u-=o[0],c+=o[1],s+=o[0],h+=o[0],g+=o[1]),{top:l,bottom:c,height:g,left:u,right:s,width:h,middle:u+(s-u)/2,center:l+(c-l)/2}}function bm(t,o,l){let{top:u,left:s}=t.getBoundingClientRect();return u+=o.top,s+=o.left,l!==void 0&&(u+=l[1],s+=l[0]),{top:u,bottom:u+1,height:1,left:s,right:s+1,width:1,middle:s,center:u}}function ym(t,o){return{top:0,center:o/2,bottom:o,left:0,middle:t/2,right:t}}function gs(t,o,l,u){return{top:t[l.vertical]-o[u.vertical],left:t[l.horizontal]-o[u.horizontal]}}function ps(t,o=0){if(t.targetEl===null||t.anchorEl===null||o>5)return;if(t.targetEl.offsetHeight===0||t.targetEl.offsetWidth===0){setTimeout(()=>{ps(t,o+1)},10);return}const{targetEl:l,offset:u,anchorEl:s,anchorOrigin:c,selfOrigin:h,absoluteOffset:g,fit:w,cover:k,maxHeight:v,maxWidth:C}=t;if(pt.is.ios===!0&&window.visualViewport!==void 0){const j=document.body.style,{offsetLeft:K,offsetTop:le}=window.visualViewport;K!==fs&&(j.setProperty("--q-pe-left",K+"px"),fs=K),le!==ds&&(j.setProperty("--q-pe-top",le+"px"),ds=le)}const{scrollLeft:E,scrollTop:y}=l,T=g===void 0?_m(s,k===!0?[0,0]:u):bm(s,g,u);Object.assign(l.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:C||"100vw",maxHeight:v||"100vh",visibility:"visible"});const{offsetWidth:z,offsetHeight:R}=l,{elWidth:H,elHeight:F}=w===!0||k===!0?{elWidth:Math.max(T.width,z),elHeight:k===!0?Math.max(T.height,R):R}:{elWidth:z,elHeight:R};let N={maxWidth:C,maxHeight:v};(w===!0||k===!0)&&(N.minWidth=T.width+"px",k===!0&&(N.minHeight=T.height+"px")),Object.assign(l.style,N);const Q=ym(H,F);let G=gs(T,Q,c,h);if(g===void 0||u===void 0)Zl(G,T,Q,c,h);else{const{top:j,left:K}=G;Zl(G,T,Q,c,h);let le=!1;if(G.top!==j){le=!0;const V=2*u[1];T.center=T.top-=V,T.bottom-=V+2}if(G.left!==K){le=!0;const V=2*u[0];T.middle=T.left-=V,T.right-=V+2}le===!0&&(G=gs(T,Q,c,h),Zl(G,T,Q,c,h))}N={top:G.top+"px",left:G.left+"px"},G.maxHeight!==void 0&&(N.maxHeight=G.maxHeight+"px",T.height>G.maxHeight&&(N.minHeight=N.maxHeight)),G.maxWidth!==void 0&&(N.maxWidth=G.maxWidth+"px",T.width>G.maxWidth&&(N.minWidth=N.maxWidth)),Object.assign(l.style,N),l.scrollTop!==y&&(l.scrollTop=y),l.scrollLeft!==E&&(l.scrollLeft=E)}function Zl(t,o,l,u,s){const c=l.bottom,h=l.right,g=fm(),w=window.innerHeight-g,k=document.body.clientWidth;if(t.top<0||t.top+c>w)if(s.vertical==="center")t.top=o[u.vertical]>w/2?Math.max(0,w-c):0,t.maxHeight=Math.min(c,w);else if(o[u.vertical]>w/2){const v=Math.min(w,u.vertical==="center"?o.center:u.vertical===s.vertical?o.bottom:o.top);t.maxHeight=Math.min(c,v),t.top=Math.max(0,v-c)}else t.top=Math.max(0,u.vertical==="center"?o.center:u.vertical===s.vertical?o.top:o.bottom),t.maxHeight=Math.min(c,w-t.top);if(t.left<0||t.left+h>k)if(t.maxWidth=Math.min(h,k),s.horizontal==="middle")t.left=o[u.horizontal]>k/2?Math.max(0,k-h):0;else if(o[u.horizontal]>k/2){const v=Math.min(k,u.horizontal==="middle"?o.middle:u.horizontal===s.horizontal?o.right:o.left);t.maxWidth=Math.min(h,v),t.left=Math.max(0,v-t.maxWidth)}else t.left=Math.max(0,u.horizontal==="middle"?o.middle:u.horizontal===s.horizontal?o.left:o.right),t.maxWidth=Math.min(h,k-t.left)}const wm=Ze({name:"QMenu",inheritAttrs:!1,props:{...Qh,...Xu,...lr,...rs,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:hs},self:{type:String,validator:hs},offset:{type:Array,validator:vm},scrollTarget:om,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...Ju,"click","escapeKey"],setup(t,{slots:o,emit:l,attrs:u}){let s=null,c,h,g;const w=i.getCurrentInstance(),{proxy:k}=w,{$q:v}=k,C=i.ref(null),E=i.ref(!1),y=i.computed(()=>t.persistent!==!0&&t.noRouteDismiss!==!0),T=or(t,v),{registerTick:z,removeTick:R}=ls(),{registerTimeout:H}=_i(),{transitionProps:F,transitionStyle:N}=is(t),{localScrollTarget:Q,changeScrollEvent:G,unconfigureScrollTarget:j}=Xh(t,ie),{anchorEl:K,canShow:le}=Zh({showing:E}),{hide:V}=es({showing:E,canShow:le,handleShow:ge,handleHide:B,hideOnRouteChange:y,processOnMount:!0}),{showPortal:$,hidePortal:Z,renderPortal:A}=ns(w,C,Ae,"menu"),te={anchorEl:K,innerRef:C,onClickOutside(Y){if(t.persistent!==!0&&E.value===!0)return V(Y),(Y.type==="touchstart"||Y.target.classList.contains("q-dialog__backdrop"))&&Ke(Y),!0}},P=i.computed(()=>ms(t.anchor||(t.cover===!0?"center middle":"bottom start"),v.lang.rtl)),ae=i.computed(()=>t.cover===!0?P.value:ms(t.self||"top start",v.lang.rtl)),ue=i.computed(()=>(t.square===!0?" q-menu--square":"")+(T.value===!0?" q-menu--dark q-dark":"")),fe=i.computed(()=>t.autoClose===!0?{onClick:ve}:{}),W=i.computed(()=>E.value===!0&&t.persistent!==!0);i.watch(W,Y=>{Y===!0?(as(U),pm(te)):(Ai(U),cs(te))});function se(){Si(()=>{let Y=C.value;Y&&Y.contains(document.activeElement)!==!0&&(Y=Y.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||Y.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||Y.querySelector("[autofocus], [data-autofocus]")||Y,Y.focus({preventScroll:!0}))})}function ge(Y){if(s=t.noRefocus===!1?document.activeElement:null,ss(_e),$(),ie(),c=void 0,Y!==void 0&&(t.touchPosition||t.contextMenu)){const De=bu(Y);if(De.left!==void 0){const{top:lt,left:Ft}=K.value.getBoundingClientRect();c={left:De.left-Ft,top:De.top-lt}}}h===void 0&&(h=i.watch(()=>v.screen.width+"|"+v.screen.height+"|"+t.self+"|"+t.anchor+"|"+v.lang.rtl,ne)),t.noFocus!==!0&&document.activeElement.blur(),z(()=>{ne(),t.noFocus!==!0&&se()}),H(()=>{v.platform.is.ios===!0&&(g=t.autoClose,C.value.click()),ne(),$(!0),l("show",Y)},t.transitionDuration)}function B(Y){R(),Z(),O(!0),s!==null&&(Y===void 0||Y.qClickOutside!==!0)&&(((Y&&Y.type.indexOf("key")===0?s.closest('[tabindex]:not([tabindex^="-"])'):void 0)||s).focus(),s=null),H(()=>{Z(!0),l("hide",Y)},t.transitionDuration)}function O(Y){c=void 0,h!==void 0&&(h(),h=void 0),(Y===!0||E.value===!0)&&(Yl(_e),j(),cs(te),Ai(U)),Y!==!0&&(s=null)}function ie(){(K.value!==null||t.scrollTarget!==void 0)&&(Q.value=um(K.value,t.scrollTarget),G(Q.value,ne))}function ve(Y){g!==!0?(rm(k,Y),l("click",Y)):g=!1}function _e(Y){W.value===!0&&t.noFocus!==!0&&$u(C.value,Y.target)!==!0&&se()}function U(Y){l("escapeKey"),V(Y)}function ne(){ps({targetEl:C.value,offset:t.offset,anchorEl:K.value,anchorOrigin:P.value,selfOrigin:ae.value,absoluteOffset:c,fit:t.fit,cover:t.cover,maxHeight:t.maxHeight,maxWidth:t.maxWidth})}function Ae(){return i.h(i.Transition,F.value,()=>E.value===!0?i.h("div",{role:"menu",...u,ref:C,tabindex:-1,class:["q-menu q-position-engine scroll"+ue.value,u.class],style:[u.style,N.value],...fe.value},vt(o.default)):null)}return i.onBeforeUnmount(O),Object.assign(k,{focus:se,updatePosition:ne}),A}});function Sm(t,o,l){function u(){}return i.onBeforeUnmount(()=>{t.value===!0&&void 0}),{removeFromHistory:u,addToHistory(){}}}let Vr=0,Xl,Jl,Pr,eo=!1,vs,_s,bs,Nn=null;function xm(t){Cm(t)&&Ke(t)}function Cm(t){if(t.target===document.body||t.target.classList.contains("q-layout__backdrop"))return!0;const o=Hd(t),l=t.shiftKey&&!t.deltaX,u=!l&&Math.abs(t.deltaX)<=Math.abs(t.deltaY),s=l||u?t.deltaY:t.deltaX;for(let c=0;c<o.length;c++){const h=o[c];if(dm(h,u))return u?s<0&&h.scrollTop===0?!0:s>0&&h.scrollTop+h.clientHeight===h.scrollHeight:s<0&&h.scrollLeft===0?!0:s>0&&h.scrollLeft+h.clientWidth===h.scrollWidth}return!0}function ys(t){t.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function Bi(t){eo!==!0&&(eo=!0,requestAnimationFrame(()=>{eo=!1;const{height:o}=t.target,{clientHeight:l,scrollTop:u}=document.scrollingElement;(Pr===void 0||o!==window.innerHeight)&&(Pr=l-o,document.scrollingElement.scrollTop=u),u>Pr&&(document.scrollingElement.scrollTop-=Math.ceil((u-Pr)/8))}))}function ws(t){const o=document.body,l=window.visualViewport!==void 0;if(t==="add"){const{overflowY:u,overflowX:s}=window.getComputedStyle(o);Xl=cm(window),Jl=sm(window),vs=o.style.left,_s=o.style.top,bs=window.location.href,o.style.left=`-${Xl}px`,o.style.top=`-${Jl}px`,s!=="hidden"&&(s==="scroll"||o.scrollWidth>window.innerWidth)&&o.classList.add("q-body--force-scrollbar-x"),u!=="hidden"&&(u==="scroll"||o.scrollHeight>window.innerHeight)&&o.classList.add("q-body--force-scrollbar-y"),o.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,pt.is.ios===!0&&(l===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",Bi,st.passiveCapture),window.visualViewport.addEventListener("scroll",Bi,st.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",ys,st.passiveCapture))}pt.is.desktop===!0&&pt.is.mac===!0&&window[`${t}EventListener`]("wheel",xm,st.notPassive),t==="remove"&&(pt.is.ios===!0&&(l===!0?(window.visualViewport.removeEventListener("resize",Bi,st.passiveCapture),window.visualViewport.removeEventListener("scroll",Bi,st.passiveCapture)):window.removeEventListener("scroll",ys,st.passiveCapture)),o.classList.remove("q-body--prevent-scroll"),o.classList.remove("q-body--force-scrollbar-x"),o.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,o.style.left=vs,o.style.top=_s,window.location.href===bs&&window.scrollTo(Xl,Jl),Pr=void 0)}function km(t){let o="add";if(t===!0){if(Vr++,Nn!==null){clearTimeout(Nn),Nn=null;return}if(Vr>1)return}else{if(Vr===0||(Vr--,Vr>0))return;if(o="remove",pt.is.ios===!0&&pt.is.nativeMobile===!0){Nn!==null&&clearTimeout(Nn),Nn=setTimeout(()=>{ws(o),Nn=null},100);return}}ws(o)}function Em(){let t;return{preventBodyScroll(o){o!==t&&(t!==void 0||o===!0)&&(t=o,km(o))}}}let Ri=0;const Am={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"},Ss={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},Om=Ze({name:"QDialog",inheritAttrs:!1,props:{...Xu,...rs,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:[...Ju,"shake","click","escapeKey"],setup(t,{slots:o,emit:l,attrs:u}){const s=i.getCurrentInstance(),c=i.ref(null),h=i.ref(!1),g=i.ref(!1);let w=null,k=null,v,C;const E=i.computed(()=>t.persistent!==!0&&t.noRouteDismiss!==!0&&t.seamless!==!0),{preventBodyScroll:y}=Em(),{registerTimeout:T}=_i(),{registerTick:z,removeTick:R}=ls(),{transitionProps:H,transitionStyle:F}=is(t,()=>Ss[t.position][0],()=>Ss[t.position][1]),N=i.computed(()=>F.value+(t.backdropFilter!==void 0?`;backdrop-filter:${t.backdropFilter};-webkit-backdrop-filter:${t.backdropFilter}`:"")),{showPortal:Q,hidePortal:G,portalIsAccessible:j,renderPortal:K}=ns(s,c,_e,"dialog"),{hide:le}=es({showing:h,hideOnRouteChange:E,handleShow:ae,handleHide:ue,processOnMount:!0}),{addToHistory:V,removeFromHistory:$}=Sm(h),Z=i.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${t.maximized===!0?"maximized":"minimized"} q-dialog__inner--${t.position} ${Am[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":"")),A=i.computed(()=>h.value===!0&&t.seamless!==!0),te=i.computed(()=>t.autoClose===!0?{onClick:O}:{}),P=i.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${A.value===!0?"modal":"seamless"}`,u.class]);i.watch(()=>t.maximized,U=>{h.value===!0&&B(U)}),i.watch(A,U=>{y(U),U===!0?(ss(ve),as(se)):(Yl(ve),Ai(se))});function ae(U){V(),k=t.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,B(t.maximized),Q(),g.value=!0,t.noFocus!==!0?(document.activeElement!==null&&document.activeElement.blur(),z(fe)):R(),T(()=>{if(s.proxy.$q.platform.is.ios===!0){if(t.seamless!==!0&&document.activeElement){const{top:ne,bottom:Ae}=document.activeElement.getBoundingClientRect(),{innerHeight:Y}=window,De=window.visualViewport!==void 0?window.visualViewport.height:Y;ne>0&&Ae>De/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-De,Ae>=Y?1/0:Math.ceil(document.scrollingElement.scrollTop+Ae-De/2))),document.activeElement.scrollIntoView()}C=!0,c.value.click(),C=!1}Q(!0),g.value=!1,l("show",U)},t.transitionDuration)}function ue(U){R(),$(),ge(!0),g.value=!0,G(),k!==null&&(((U&&U.type.indexOf("key")===0?k.closest('[tabindex]:not([tabindex^="-"])'):void 0)||k).focus(),k=null),T(()=>{G(!0),g.value=!1,l("hide",U)},t.transitionDuration)}function fe(U){Si(()=>{let ne=c.value;if(ne!==null){if(U!==void 0){const Ae=ne.querySelector(U);if(Ae!==null){Ae.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 W(U){U&&typeof U.focus=="function"?U.focus({preventScroll:!0}):fe(),l("shake");const ne=c.value;ne!==null&&(ne.classList.remove("q-animate--scale"),ne.classList.add("q-animate--scale"),w!==null&&clearTimeout(w),w=setTimeout(()=>{w=null,c.value!==null&&(ne.classList.remove("q-animate--scale"),fe())},170))}function se(){t.seamless!==!0&&(t.persistent===!0||t.noEscDismiss===!0?t.maximized!==!0&&t.noShake!==!0&&W():(l("escapeKey"),le()))}function ge(U){w!==null&&(clearTimeout(w),w=null),(U===!0||h.value===!0)&&(B(!1),t.seamless!==!0&&(y(!1),Yl(ve),Ai(se))),U!==!0&&(k=null)}function B(U){U===!0?v!==!0&&(Ri<1&&document.body.classList.add("q-body--dialog"),Ri++,v=!0):v===!0&&(Ri<2&&document.body.classList.remove("q-body--dialog"),Ri--,v=!1)}function O(U){C!==!0&&(le(U),l("click",U))}function ie(U){t.persistent!==!0&&t.noBackdropDismiss!==!0?le(U):t.noShake!==!0&&W()}function ve(U){t.allowFocusOutside!==!0&&j.value===!0&&$u(c.value,U.target)!==!0&&fe('[tabindex]:not([tabindex="-1"])')}Object.assign(s.proxy,{focus:fe,shake:W,__updateRefocusTarget(U){k=U||null}}),i.onBeforeUnmount(ge);function _e(){return i.h("div",{role:"dialog","aria-modal":A.value===!0?"true":"false",...u,class:P.value},[i.h(i.Transition,{name:"q-transition--fade",appear:!0},()=>A.value===!0?i.h("div",{class:"q-dialog__backdrop fixed-full",style:N.value,"aria-hidden":"true",tabindex:-1,onClick:ie}):null),i.h(i.Transition,H.value,()=>h.value===!0?i.h("div",{ref:c,class:Z.value,style:F.value,tabindex:-1,...te.value},vt(o.default)):null)])}return K}});let Ii=!1;{const t=document.createElement("div");t.setAttribute("dir","rtl"),Object.assign(t.style,{width:"1px",height:"1px",overflow:"auto"});const o=document.createElement("div");Object.assign(o.style,{width:"1000px",height:"1px"}),document.body.appendChild(t),t.appendChild(o),t.scrollLeft=-1e3,Ii=t.scrollLeft>=0,t.remove()}const $t=1e3,Tm=["start","center","end","start-force","center-force","end-force"],xs=Array.prototype.filter,Bm=window.getComputedStyle(document.body).overflowAnchor===void 0?zd:function(t,o){t!==null&&(t._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(t._qOverflowAnimationFrame),t._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(t===null)return;t._qOverflowAnimationFrame=void 0;const l=t.children||[];xs.call(l,s=>s.dataset&&s.dataset.qVsAnchor!==void 0).forEach(s=>{delete s.dataset.qVsAnchor});const u=l[o];u&&u.dataset&&(u.dataset.qVsAnchor="")}))};function dr(t,o){return t+o}function to(t,o,l,u,s,c,h,g){const w=t===window?document.scrollingElement||document.documentElement:t,k=s===!0?"offsetWidth":"offsetHeight",v={scrollStart:0,scrollViewSize:-h-g,scrollMaxSize:0,offsetStart:-h,offsetEnd:-g};if(s===!0?(t===window?(v.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,v.scrollViewSize+=document.documentElement.clientWidth):(v.scrollStart=w.scrollLeft,v.scrollViewSize+=w.clientWidth),v.scrollMaxSize=w.scrollWidth,c===!0&&(v.scrollStart=(Ii===!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=w.scrollTop,v.scrollViewSize+=w.clientHeight),v.scrollMaxSize=w.scrollHeight),l!==null)for(let C=l.previousElementSibling;C!==null;C=C.previousElementSibling)C.classList.contains("q-virtual-scroll--skip")===!1&&(v.offsetStart+=C[k]);if(u!==null)for(let C=u.nextElementSibling;C!==null;C=C.nextElementSibling)C.classList.contains("q-virtual-scroll--skip")===!1&&(v.offsetEnd+=C[k]);if(o!==t){const C=w.getBoundingClientRect(),E=o.getBoundingClientRect();s===!0?(v.offsetStart+=E.left-C.left,v.offsetEnd-=E.width):(v.offsetStart+=E.top-C.top,v.offsetEnd-=E.height),t!==window&&(v.offsetStart+=v.scrollStart),v.offsetEnd+=v.scrollMaxSize-v.offsetStart}return v}function Cs(t,o,l,u){o==="end"&&(o=(t===window?document.body:t)[l===!0?"scrollWidth":"scrollHeight"]),t===window?l===!0?(u===!0&&(o=(Ii===!0?document.body.scrollWidth-document.documentElement.clientWidth:0)-o),window.scrollTo(o,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,o):l===!0?(u===!0&&(o=(Ii===!0?t.scrollWidth-t.offsetWidth:0)-o),t.scrollLeft=o):t.scrollTop=o}function Nr(t,o,l,u){if(l>=u)return 0;const s=o.length,c=Math.floor(l/$t),h=Math.floor((u-1)/$t)+1;let g=t.slice(c,h).reduce(dr,0);return l%$t!==0&&(g-=o.slice(c*$t,l).reduce(dr,0)),u%$t!==0&&u!==s&&(g-=o.slice(u,h*$t).reduce(dr,0)),g}const ks={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 Rm({virtualScrollLength:t,getVirtualScrollTarget:o,getVirtualScrollEl:l,virtualScrollItemSizeComputed:u}){const s=i.getCurrentInstance(),{props:c,emit:h,proxy:g}=s,{$q:w}=g;let k,v,C,E=[],y;const T=i.ref(0),z=i.ref(0),R=i.ref({}),H=i.ref(null),F=i.ref(null),N=i.ref(null),Q=i.ref({from:0,to:0}),G=i.computed(()=>c.tableColspan!==void 0?c.tableColspan:100);u===void 0&&(u=i.computed(()=>c.virtualScrollItemSize));const j=i.computed(()=>u.value+";"+c.virtualScrollHorizontal),K=i.computed(()=>j.value+";"+c.virtualScrollSliceRatioBefore+";"+c.virtualScrollSliceRatioAfter);i.watch(K,()=>{ue()}),i.watch(j,le);function le(){ae(v,!0)}function V(B){ae(B===void 0?v:B)}function $(B,O){const ie=o();if(ie==null||ie.nodeType===8)return;const ve=to(ie,l(),H.value,F.value,c.virtualScrollHorizontal,w.lang.rtl,c.virtualScrollStickySizeStart,c.virtualScrollStickySizeEnd);C!==ve.scrollViewSize&&ue(ve.scrollViewSize),A(ie,ve,Math.min(t.value-1,Math.max(0,parseInt(B,10)||0)),0,Tm.indexOf(O)!==-1?O:v!==-1&&B>v?"end":"start")}function Z(){const B=o();if(B==null||B.nodeType===8)return;const O=to(B,l(),H.value,F.value,c.virtualScrollHorizontal,w.lang.rtl,c.virtualScrollStickySizeStart,c.virtualScrollStickySizeEnd),ie=t.value-1,ve=O.scrollMaxSize-O.offsetStart-O.offsetEnd-z.value;if(k===O.scrollStart)return;if(O.scrollMaxSize<=0){A(B,O,0,0);return}C!==O.scrollViewSize&&ue(O.scrollViewSize),te(Q.value.from);const _e=Math.floor(O.scrollMaxSize-Math.max(O.scrollViewSize,O.offsetEnd)-Math.min(y[ie],O.scrollViewSize/2));if(_e>0&&Math.ceil(O.scrollStart)>=_e){A(B,O,ie,O.scrollMaxSize-O.offsetEnd-E.reduce(dr,0));return}let U=0,ne=O.scrollStart-O.offsetStart,Ae=ne;if(ne<=ve&&ne+O.scrollViewSize>=T.value)ne-=T.value,U=Q.value.from,Ae=ne;else for(let Y=0;ne>=E[Y]&&U<ie;Y++)ne-=E[Y],U+=$t;for(;ne>0&&U<ie;)ne-=y[U],ne>-O.scrollViewSize?(U++,Ae=ne):Ae=y[U]+ne;A(B,O,U,Ae)}function A(B,O,ie,ve,_e){const U=typeof _e=="string"&&_e.indexOf("-force")!==-1,ne=U===!0?_e.replace("-force",""):_e,Ae=ne!==void 0?ne:"start";let Y=Math.max(0,ie-R.value[Ae]),De=Y+R.value.total;De>t.value&&(De=t.value,Y=Math.max(0,De-R.value.total)),k=O.scrollStart;const lt=Y!==Q.value.from||De!==Q.value.to;if(lt===!1&&ne===void 0){W(ie);return}const{activeElement:Ft}=document,bt=N.value;lt===!0&&bt!==null&&bt!==Ft&&bt.contains(Ft)===!0&&(bt.addEventListener("focusout",P),setTimeout(()=>{bt!==null&&bt.removeEventListener("focusout",P)})),Bm(bt,ie-Y);const nt=ne!==void 0?y.slice(Y,ie).reduce(dr,0):0;if(lt===!0){const yt=De>=Q.value.from&&Y<=Q.value.to?Q.value.to:De;Q.value={from:Y,to:yt},T.value=Nr(E,y,0,Y),z.value=Nr(E,y,De,t.value),requestAnimationFrame(()=>{Q.value.to!==De&&k===O.scrollStart&&(Q.value={from:Q.value.from,to:De},z.value=Nr(E,y,De,t.value))})}requestAnimationFrame(()=>{if(k!==O.scrollStart)return;lt===!0&&te(Y);const yt=y.slice(Y,ie).reduce(dr,0),tn=yt+O.offsetStart+T.value,ct=tn+y[ie];let vn=tn+ve;if(ne!==void 0){const Dr=yt-nt,Ut=O.scrollStart+Dr;vn=U!==!0&&Ut<tn&&ct<Ut+O.scrollViewSize?Ut:ne==="end"?ct-O.scrollViewSize:tn-(ne==="start"?0:Math.round((O.scrollViewSize-y[ie])/2))}k=vn,Cs(B,vn,c.virtualScrollHorizontal,w.lang.rtl),W(ie)})}function te(B){const O=N.value;if(O){const ie=xs.call(O.children,Y=>Y.classList&&Y.classList.contains("q-virtual-scroll--skip")===!1),ve=ie.length,_e=c.virtualScrollHorizontal===!0?Y=>Y.getBoundingClientRect().width:Y=>Y.offsetHeight;let U=B,ne,Ae;for(let Y=0;Y<ve;){for(ne=_e(ie[Y]),Y++;Y<ve&&ie[Y].classList.contains("q-virtual-scroll--with-prev")===!0;)ne+=_e(ie[Y]),Y++;Ae=ne-y[U],Ae!==0&&(y[U]+=Ae,E[Math.floor(U/$t)]+=Ae),U++}}}function P(){N.value!==null&&N.value!==void 0&&N.value.focus()}function ae(B,O){const ie=1*u.value;(O===!0||Array.isArray(y)===!1)&&(y=[]);const ve=y.length;y.length=t.value;for(let U=t.value-1;U>=ve;U--)y[U]=ie;const _e=Math.floor((t.value-1)/$t);E=[];for(let U=0;U<=_e;U++){let ne=0;const Ae=Math.min((U+1)*$t,t.value);for(let Y=U*$t;Y<Ae;Y++)ne+=y[Y];E.push(ne)}v=-1,k=void 0,T.value=Nr(E,y,0,Q.value.from),z.value=Nr(E,y,Q.value.to,t.value),B>=0?(te(Q.value.from),i.nextTick(()=>{$(B)})):se()}function ue(B){if(B===void 0&&typeof window<"u"){const ne=o();ne!=null&&ne.nodeType!==8&&(B=to(ne,l(),H.value,F.value,c.virtualScrollHorizontal,w.lang.rtl,c.virtualScrollStickySizeStart,c.virtualScrollStickySizeEnd).scrollViewSize)}C=B;const O=parseFloat(c.virtualScrollSliceRatioBefore)||0,ie=parseFloat(c.virtualScrollSliceRatioAfter)||0,ve=1+O+ie,_e=B===void 0||B<=0?1:Math.ceil(B/u.value),U=Math.max(1,_e,Math.ceil((c.virtualScrollSliceSize>0?c.virtualScrollSliceSize:10)/ve));R.value={total:Math.ceil(U*ve),start:Math.ceil(U*O),center:Math.ceil(U*(.5+O)),end:Math.ceil(U*(1+O)),view:_e}}function fe(B,O){const ie=c.virtualScrollHorizontal===!0?"width":"height",ve={["--q-virtual-scroll-item-"+ie]:u.value+"px"};return[B==="tbody"?i.h(B,{class:"q-virtual-scroll__padding",key:"before",ref:H},[i.h("tr",[i.h("td",{style:{[ie]:`${T.value}px`,...ve},colspan:G.value})])]):i.h(B,{class:"q-virtual-scroll__padding",key:"before",ref:H,style:{[ie]:`${T.value}px`,...ve}}),i.h(B,{class:"q-virtual-scroll__content",key:"content",ref:N,tabindex:-1},O.flat()),B==="tbody"?i.h(B,{class:"q-virtual-scroll__padding",key:"after",ref:F},[i.h("tr",[i.h("td",{style:{[ie]:`${z.value}px`,...ve},colspan:G.value})])]):i.h(B,{class:"q-virtual-scroll__padding",key:"after",ref:F,style:{[ie]:`${z.value}px`,...ve}})]}function W(B){v!==B&&(c.onVirtualScroll!==void 0&&h("virtualScroll",{index:B,from:Q.value.from,to:Q.value.to-1,direction:B<v?"decrease":"increase",ref:g}),v=B)}ue();const se=Iu(Z,w.platform.is.ios===!0?120:35);i.onBeforeMount(()=>{ue()});let ge=!1;return i.onDeactivated(()=>{ge=!0}),i.onActivated(()=>{if(ge!==!0)return;const B=o();k!==void 0&&B!==void 0&&B!==null&&B.nodeType!==8?Cs(B,k,c.virtualScrollHorizontal,w.lang.rtl):$(v)}),i.onBeforeUnmount(()=>{se.cancel()}),Object.assign(g,{scrollTo:$,reset:le,refresh:V}),{virtualScrollSliceRange:Q,virtualScrollSliceSizeComputed:R,setVirtualScrollSize:ue,onVirtualScrollEvt:se,localResetVirtualScroll:ae,padVirtualScroll:fe,scrollTo:$,reset:le,refresh:V}}function Es(t,o,l){if(l<=o)return o;const u=l-o+1;let s=o+(t-o)%u;return s<o&&(s=u+s),s===0?0:s}const As=t=>["add","add-unique","toggle"].includes(t),Im=".*+?^${}()|[]\\",Mm=Object.keys(xi),Os=Ze({name:"QSelect",inheritAttrs:!1,props:{...ks,...Nl,...xi,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:As},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:ks.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...zl,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(t,{slots:o,emit:l}){const{proxy:u}=i.getCurrentInstance(),{$q:s}=u,c=i.ref(!1),h=i.ref(!1),g=i.ref(-1),w=i.ref(""),k=i.ref(!1),v=i.ref(!1);let C=null,E=null,y,T,z,R=null,H,F,N,Q;const G=i.ref(null),j=i.ref(null),K=i.ref(null),le=i.ref(null),V=i.ref(null),$=_u(t),Z=Nu($i),A=i.computed(()=>Array.isArray(t.options)?t.options.length:0),te=i.computed(()=>t.virtualScrollItemSize===void 0?t.optionsDense===!0?24:48:t.virtualScrollItemSize),{virtualScrollSliceRange:P,virtualScrollSliceSizeComputed:ae,localResetVirtualScroll:ue,padVirtualScroll:fe,onVirtualScrollEvt:W,scrollTo:se,setVirtualScrollSize:ge}=Rm({virtualScrollLength:A,getVirtualScrollTarget:Ni,getVirtualScrollEl:Fr,virtualScrollItemSizeComputed:te}),B=Hl(),O=i.computed(()=>{const _=t.mapOptions===!0&&t.multiple!==!0,ee=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 X=t.mapOptions===!0&&y!==void 0?y:[],me=ee.map(Ie=>$r(Ie,X));return t.modelValue===null&&_===!0?me.filter(Ie=>Ie!==null):me}return ee}),ie=i.computed(()=>{const _={};return Mm.forEach(ee=>{const X=t[ee];X!==void 0&&(_[ee]=X)}),_}),ve=i.computed(()=>t.optionsDark===null?B.isDark.value:t.optionsDark),_e=i.computed(()=>Lr(O.value)),U=i.computed(()=>{let _="q-field__input q-placeholder col";return t.hideSelected===!0||O.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:"")),Ae=i.computed(()=>A.value===0),Y=i.computed(()=>O.value.map(_=>je.value(_)).join(", ")),De=i.computed(()=>t.displayValue!==void 0?t.displayValue:Y.value),lt=i.computed(()=>t.optionsHtml===!0?()=>!0:_=>_!=null&&_.html===!0),Ft=i.computed(()=>t.displayValueHtml===!0||t.displayValue===void 0&&(t.optionsHtml===!0||O.value.some(lt.value))),bt=i.computed(()=>B.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":c.value===!0?"true":"false","aria-controls":`${B.targetUid.value}_lb`};return g.value>=0&&(_["aria-activedescendant"]=`${B.targetUid.value}_${g.value}`),_}),yt=i.computed(()=>({id:`${B.targetUid.value}_lb`,role:"listbox","aria-multiselectable":t.multiple===!0?"true":"false"})),tn=i.computed(()=>O.value.map((_,ee)=>({index:ee,opt:_,html:lt.value(_),selected:!0,removeAtIndex:_n,toggleOption:Ht,tabindex:bt.value}))),ct=i.computed(()=>{if(A.value===0)return[];const{from:_,to:ee}=P.value;return t.options.slice(_,ee).map((X,me)=>{const Ie=zt.value(X)===!0,Be=Fn(X)===!0,Ge=_+me,Ve={clickable:!0,active:Be,activeClass:Ut.value,manualFocus:!0,focused:!1,disable:Ie,tabindex:-1,dense:t.optionsDense,dark:ve.value,role:"option","aria-selected":Be===!0?"true":"false",id:`${B.targetUid.value}_${Ge}`,onClick:()=>{Ht(X)}};return Ie!==!0&&(g.value===Ge&&(Ve.focused=!0),s.platform.is.desktop===!0&&(Ve.onMousemove=()=>{c.value===!0&&Qt(Ge)})),{index:Ge,opt:X,html:lt.value(X),label:je.value(X),selected:Ve.active,focused:Ve.focused,toggleOption:Ht,setOptionIndex:Qt,itemProps:Ve}})}),vn=i.computed(()=>t.dropdownIcon!==void 0?t.dropdownIcon:s.iconSet.arrow.dropdown),Dr=i.computed(()=>t.optionsCover===!1&&t.outlined!==!0&&t.standout!==!0&&t.borderless!==!0&&t.rounded!==!0),Ut=i.computed(()=>t.optionsSelectedClass!==void 0?t.optionsSelectedClass:t.color!==void 0?`text-${t.color}`:""),Fe=i.computed(()=>$n(t.optionValue,"value")),je=i.computed(()=>$n(t.optionLabel,"label")),zt=i.computed(()=>$n(t.optionDisable,"disable")),hr=i.computed(()=>O.value.map(_=>Fe.value(_))),Dn=i.computed(()=>{const _={onInput:$i,onChange:Z,onKeydown:Pi,onKeyup:qi,onKeypress:Vi,onFocus:gr,onClick(ee){T===!0&&Yt(ee)}};return _.onCompositionstart=_.onCompositionupdate=_.onCompositionend=Z,_});i.watch(O,_=>{y=_,t.useInput===!0&&t.fillInput===!0&&t.multiple!==!0&&B.innerLoading.value!==!0&&(h.value!==!0&&c.value!==!0||_e.value!==!0)&&(z!==!0&&ln(),(h.value===!0||c.value===!0)&&yn(""))},{immediate:!0}),i.watch(()=>t.fillInput,ln),i.watch(c,Hr),i.watch(A,mo);function Li(_){return t.emitValue===!0?Fe.value(_):_}function nn(_){if(_!==-1&&_<O.value.length)if(t.multiple===!0){const ee=t.modelValue.slice();l("remove",{index:_,value:ee.splice(_,1)[0]}),l("update:modelValue",ee)}else l("update:modelValue",null)}function _n(_){nn(_),B.focus()}function mr(_,ee){const X=Li(_);if(t.multiple!==!0){t.fillInput===!0&&zn(je.value(_),!0,!0),l("update:modelValue",X);return}if(O.value.length===0){l("add",{index:0,value:X}),l("update:modelValue",t.multiple===!0?[X]:X);return}if(ee===!0&&Fn(_)===!0||t.maxValues!==void 0&&t.modelValue.length>=t.maxValues)return;const me=t.modelValue.slice();l("add",{index:me.length,value:X}),me.push(X),l("update:modelValue",me)}function Ht(_,ee){if(B.editable.value!==!0||_===void 0||zt.value(_)===!0)return;const X=Fe.value(_);if(t.multiple!==!0){ee!==!0&&(zn(t.fillInput===!0?je.value(_):"",!0,!0),rn()),j.value!==null&&j.value.focus(),(O.value.length===0||en(Fe.value(O.value[0]),X)!==!0)&&l("update:modelValue",t.emitValue===!0?X:_);return}if((T!==!0||k.value===!0)&&B.focus(),gr(),O.value.length===0){const Be=t.emitValue===!0?X:_;l("add",{index:0,value:Be}),l("update:modelValue",t.multiple===!0?[Be]:Be);return}const me=t.modelValue.slice(),Ie=hr.value.findIndex(Be=>en(Be,X));if(Ie!==-1)l("remove",{index:Ie,value:me.splice(Ie,1)[0]});else{if(t.maxValues!==void 0&&me.length>=t.maxValues)return;const Be=t.emitValue===!0?X:_;l("add",{index:me.length,value:Be}),me.push(Be)}l("update:modelValue",me)}function Qt(_){if(s.platform.is.desktop!==!0)return;const ee=_!==-1&&_<A.value?_:-1;g.value!==ee&&(g.value=ee)}function bn(_=1,ee){if(c.value===!0){let X=g.value;do X=Es(X+_,-1,A.value-1);while(X!==-1&&X!==g.value&&zt.value(t.options[X])===!0);g.value!==X&&(Qt(X),se(X),ee!==!0&&t.useInput===!0&&t.fillInput===!0&&Un(X>=0?je.value(t.options[X]):H,!0))}}function $r(_,ee){const X=me=>en(Fe.value(me),_);return t.options.find(X)||ee.find(X)||_}function $n(_,ee){const X=_!==void 0?_:ee;return typeof X=="function"?X:me=>me!==null&&typeof me=="object"&&X in me?me[X]:me}function Fn(_){const ee=Fe.value(_);return hr.value.find(X=>en(X,ee))!==void 0}function gr(_){t.useInput===!0&&j.value!==null&&(_===void 0||j.value===_.target&&_.target.value===Y.value)&&j.value.select()}function pr(_){Ln(_,27)===!0&&c.value===!0&&(Yt(_),rn(),ln()),l("keyup",_)}function qi(_){const{value:ee}=_.target;if(_.keyCode!==void 0){pr(_);return}if(_.target.value="",C!==null&&(clearTimeout(C),C=null),E!==null&&(clearTimeout(E),E=null),ln(),typeof ee=="string"&&ee.length!==0){const X=ee.toLocaleLowerCase(),me=Be=>{const Ge=t.options.find(Ve=>Be.value(Ve).toLocaleLowerCase()===X);return Ge===void 0?!1:(O.value.indexOf(Ge)===-1?Ht(Ge):rn(),!0)},Ie=Be=>{me(Fe)!==!0&&(me(je)===!0||Be===!0||yn(ee,!0,()=>Ie(!0)))};Ie()}else B.clearValue(_)}function Vi(_){l("keypress",_)}function Pi(_){if(l("keydown",_),Gl(_)===!0)return;const ee=w.value.length!==0&&(t.newValueMode!==void 0||t.onNewValue!==void 0),X=_.shiftKey!==!0&&t.multiple!==!0&&(g.value!==-1||ee===!0);if(_.keyCode===27){Dt(_);return}if(_.keyCode===9&&X===!1){wn();return}if(_.target===void 0||_.target.id!==B.targetUid.value||B.editable.value!==!0)return;if(_.keyCode===40&&B.innerLoading.value!==!0&&c.value===!1){Ke(_),Sn();return}if(_.keyCode===8&&(t.useChips===!0||t.clearable===!0)&&t.hideSelected!==!0&&w.value.length===0){t.multiple===!0&&Array.isArray(t.modelValue)===!0?nn(t.modelValue.length-1):t.multiple!==!0&&t.modelValue!==null&&l("update:modelValue",null);return}(_.keyCode===35||_.keyCode===36)&&(typeof w.value!="string"||w.value.length===0)&&(Ke(_),g.value=-1,bn(_.keyCode===36?1:-1,t.multiple)),(_.keyCode===33||_.keyCode===34)&&ae.value!==void 0&&(Ke(_),g.value=Math.max(-1,Math.min(A.value,g.value+(_.keyCode===33?-1:1)*ae.value.view)),bn(_.keyCode===33?1:-1,t.multiple)),(_.keyCode===38||_.keyCode===40)&&(Ke(_),bn(_.keyCode===38?-1:1,t.multiple));const me=A.value;if((N===void 0||Q<Date.now())&&(N=""),me>0&&t.useInput!==!0&&_.key!==void 0&&_.key.length===1&&_.altKey===!1&&_.ctrlKey===!1&&_.metaKey===!1&&(_.keyCode!==32||N.length!==0)){c.value!==!0&&Sn(_);const Ie=_.key.toLocaleLowerCase(),Be=N.length===1&&N[0]===Ie;Q=Date.now()+1500,Be===!1&&(Ke(_),N+=Ie);const Ge=new RegExp("^"+N.split("").map(vr=>Im.indexOf(vr)!==-1?"\\"+vr:vr).join(".*"),"i");let Ve=g.value;if(Be===!0||Ve<0||Ge.test(je.value(t.options[Ve]))!==!0)do Ve=Es(Ve+1,-1,me-1);while(Ve!==g.value&&(zt.value(t.options[Ve])===!0||Ge.test(je.value(t.options[Ve]))!==!0));g.value!==Ve&&i.nextTick(()=>{Qt(Ve),se(Ve),Ve>=0&&t.useInput===!0&&t.fillInput===!0&&Un(je.value(t.options[Ve]),!0)});return}if(!(_.keyCode!==13&&(_.keyCode!==32||t.useInput===!0||N!=="")&&(_.keyCode!==9||X===!1))){if(_.keyCode!==9&&Ke(_),g.value!==-1&&g.value<me){Ht(t.options[g.value]);return}if(ee===!0){const Ie=(Be,Ge)=>{if(Ge){if(As(Ge)!==!0)return}else Ge=t.newValueMode;if(zn("",t.multiple!==!0,!0),Be==null)return;(Ge==="toggle"?Ht:mr)(Be,Ge==="add-unique"),t.multiple!==!0&&(j.value!==null&&j.value.focus(),rn())};if(t.onNewValue!==void 0?l("newValue",w.value,Ie):Ie(w.value),t.multiple!==!0)return}c.value===!0?wn():B.innerLoading.value!==!0&&Sn()}}function Fr(){return T===!0?V.value:K.value!==null&&K.value.contentEl!==null?K.value.contentEl:void 0}function Ni(){return Fr()}function io(){return t.hideSelected===!0?[]:o["selected-item"]!==void 0?tn.value.map(_=>o["selected-item"](_)).slice():o.selected!==void 0?[].concat(o.selected()):t.useChips===!0?tn.value.map((_,ee)=>i.h(Wh,{key:"option-"+ee,removable:B.editable.value===!0&&zt.value(_.opt)!==!0,dense:!0,textColor:t.color,tabindex:bt.value,onRemove(){_.removeAtIndex(ee)}},()=>i.h("span",{class:"ellipsis",[_.html===!0?"innerHTML":"textContent"]:je.value(_.opt)}))):[i.h("span",{[Ft.value===!0?"innerHTML":"textContent"]:De.value})]}function Di(){if(Ae.value===!0)return o["no-option"]!==void 0?o["no-option"]({inputValue:w.value}):void 0;const _=o.option!==void 0?o.option:X=>i.h(Gh,{key:X.index,...X.itemProps},()=>i.h(Kh,()=>i.h(jh,()=>i.h("span",{[X.html===!0?"innerHTML":"textContent"]:X.label}))));let ee=fe("div",ct.value.map(_));return o["before-options"]!==void 0&&(ee=o["before-options"]().concat(ee)),In(o["after-options"],ee)}function lo(_,ee){const X=ee===!0?{...nt.value,...B.splitAttrs.attributes.value}:void 0,me={ref:ee===!0?j:void 0,key:"i_t",class:U.value,style:t.inputStyle,value:w.value!==void 0?w.value:"",type:"search",...X,id:ee===!0?B.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,...Dn.value};return _!==!0&&T===!0&&(Array.isArray(me.class)===!0?me.class=[...me.class,"no-pointer-events"]:me.class+=" no-pointer-events"),i.h("input",me)}function $i(_){C!==null&&(clearTimeout(C),C=null),E!==null&&(clearTimeout(E),E=null),!(_&&_.target&&_.target.qComposing===!0)&&(Un(_.target.value||""),z=!0,H=w.value,B.focused.value!==!0&&(T!==!0||k.value===!0)&&B.focus(),t.onFilter!==void 0&&(C=setTimeout(()=>{C=null,yn(w.value)},t.inputDebounce)))}function Un(_,ee){w.value!==_&&(w.value=_,ee===!0||t.inputDebounce===0||t.inputDebounce==="0"?l("inputValue",_):E=setTimeout(()=>{E=null,l("inputValue",_)},t.inputDebounce))}function zn(_,ee,X){z=X!==!0,t.useInput===!0&&(Un(_,!0),(ee===!0||X!==!0)&&(H=_),ee!==!0&&yn(_))}function yn(_,ee,X){if(t.onFilter===void 0||ee!==!0&&B.focused.value!==!0)return;B.innerLoading.value===!0?l("filterAbort"):(B.innerLoading.value=!0,v.value=!0),_!==""&&t.multiple!==!0&&O.value.length!==0&&z!==!0&&_===je.value(O.value[0])&&(_="");const me=setTimeout(()=>{c.value===!0&&(c.value=!1)},10);R!==null&&clearTimeout(R),R=me,l("filter",_,(Ie,Be)=>{(ee===!0||B.focused.value===!0)&&R===me&&(clearTimeout(R),typeof Ie=="function"&&Ie(),v.value=!1,i.nextTick(()=>{B.innerLoading.value=!1,B.editable.value===!0&&(ee===!0?c.value===!0&&rn():c.value===!0?Hr(!0):c.value=!0),typeof Be=="function"&&i.nextTick(()=>{Be(u)}),typeof X=="function"&&i.nextTick(()=>{X(u)})}))},()=>{B.focused.value===!0&&R===me&&(clearTimeout(R),B.innerLoading.value=!1,v.value=!1),c.value===!0&&(c.value=!1)})}function oo(){return i.h(wm,{ref:K,class:ne.value,style:t.popupContentStyle,modelValue:c.value,fit:t.menuShrink!==!0,cover:t.optionsCover===!0&&Ae.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:Dr.value,transitionShow:t.transitionShow,transitionHide:t.transitionHide,transitionDuration:t.transitionDuration,separateClosePopup:!0,...yt.value,onScrollPassive:W,onBeforeShow:Ui,onBeforeHide:Ur,onShow:ao},Di)}function Ur(_){zi(_),wn()}function ao(){ge()}function zr(_){Yt(_),j.value!==null&&j.value.focus(),k.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function uo(_){Yt(_),i.nextTick(()=>{k.value=!1})}function so(){const _=[i.h(zh,{class:`col-auto ${B.fieldClass.value}`,...ie.value,for:B.targetUid.value,dark:ve.value,square:!0,loading:v.value,itemAligned:!1,filled:!0,stackLabel:w.value.length!==0,...B.splitAttrs.listeners.value,onFocus:zr,onBlur:uo},{...o,rawControl:()=>B.getControl(!0),before:void 0,after:void 0})];return c.value===!0&&_.push(i.h("div",{ref:V,class:ne.value+" scroll",style:t.popupContentStyle,...yt.value,onClick:Dt,onScrollPassive:W},Di())),i.h(Om,{ref:le,modelValue:h.value,position:t.useInput===!0?"top":void 0,transitionShow:F,transitionHide:t.transitionHide,transitionDuration:t.transitionDuration,noRouteDismiss:t.popupNoRouteDismiss,onBeforeShow:Ui,onBeforeHide:co,onHide:fo,onShow:ho},()=>i.h("div",{class:"q-select__dialog"+(ve.value===!0?" q-select__dialog--dark q-dark":"")+(k.value===!0?" q-select__dialog--focused":"")},_))}function co(_){zi(_),le.value!==null&&le.value.__updateRefocusTarget(B.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),B.focused.value=!1}function fo(_){rn(),B.focused.value===!1&&l("blur",_),ln()}function ho(){const _=document.activeElement;(_===null||_.id!==B.targetUid.value)&&j.value!==null&&j.value!==_&&j.value.focus(),ge()}function wn(){h.value!==!0&&(g.value=-1,c.value===!0&&(c.value=!1),B.focused.value===!1&&(R!==null&&(clearTimeout(R),R=null),B.innerLoading.value===!0&&(l("filterAbort"),B.innerLoading.value=!1,v.value=!1)))}function Sn(_){B.editable.value===!0&&(T===!0?(B.onControlFocusin(_),h.value=!0,i.nextTick(()=>{B.focus()})):B.focus(),t.onFilter!==void 0?yn(w.value):(Ae.value!==!0||o["no-option"]!==void 0)&&(c.value=!0))}function rn(){h.value=!1,wn()}function ln(){t.useInput===!0&&zn(t.multiple!==!0&&t.fillInput===!0&&O.value.length!==0&&je.value(O.value[0])||"",!0,!0)}function Hr(_){let ee=-1;if(_===!0){if(O.value.length!==0){const X=Fe.value(O.value[0]);ee=t.options.findIndex(me=>en(Fe.value(me),X))}ue(ee)}Qt(ee)}function mo(_,ee){c.value===!0&&B.innerLoading.value===!1&&(ue(-1,!0),i.nextTick(()=>{c.value===!0&&B.innerLoading.value===!1&&(_>ee?ue():Hr(!0))}))}function Fi(){h.value===!1&&K.value!==null&&K.value.updatePosition()}function Ui(_){_!==void 0&&Yt(_),l("popupShow",_),B.hasPopupOpen=!0,B.onControlFocusin(_)}function zi(_){_!==void 0&&Yt(_),l("popupHide",_),B.hasPopupOpen=!1,B.onControlFocusout(_)}function Hi(){T=s.platform.is.mobile!==!0&&t.behavior!=="dialog"?!1:t.behavior!=="menu"&&(t.useInput===!0?o["no-option"]!==void 0||t.onFilter!==void 0||Ae.value===!1:!0),F=s.platform.is.ios===!0&&T===!0&&t.useInput===!0?"fade":t.transitionShow}return i.onBeforeUpdate(Hi),i.onUpdated(Fi),Hi(),i.onBeforeUnmount(()=>{C!==null&&clearTimeout(C),E!==null&&clearTimeout(E)}),Object.assign(u,{showPopup:Sn,hidePopup:rn,removeAtIndex:nn,add:mr,toggleOption:Ht,getOptionIndex:()=>g.value,setOptionIndex:Qt,moveOptionSelection:bn,filter:yn,updateMenuPosition:Fi,updateInputValue:zn,isOptionSelected:Fn,getEmittingOptionValue:Li,isOptionDisabled:(..._)=>zt.value.apply(null,_)===!0,getOptionValue:(..._)=>Fe.value.apply(null,_),getOptionLabel:(..._)=>je.value.apply(null,_)}),Object.assign(B,{innerValue:O,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:G,targetRef:j,hasValue:_e,showPopup:Sn,floatingLabel:i.computed(()=>t.hideSelected!==!0&&_e.value===!0||typeof w.value=="number"||w.value.length!==0||Lr(t.displayValue)),getControlChild:()=>{if(B.editable.value!==!1&&(h.value===!0||Ae.value!==!0||o["no-option"]!==void 0))return T===!0?so():oo();B.hasPopupOpen===!0&&(B.hasPopupOpen=!1)},controlEvents:{onFocusin(_){B.onControlFocusin(_)},onFocusout(_){B.onControlFocusout(_,()=>{ln(),wn()})},onClick(_){if(Dt(_),T!==!0&&c.value===!0){wn(),j.value!==null&&j.value.focus();return}Sn(_)}},getControl:_=>{const ee=io(),X=_===!0||h.value!==!0||T!==!0;if(t.useInput===!0)ee.push(lo(_,X));else if(B.editable.value===!0){const Ie=X===!0?nt.value:void 0;ee.push(i.h("input",{ref:X===!0?j:void 0,key:"d_t",class:"q-select__focus-target",id:X===!0?B.targetUid.value:void 0,value:De.value,readonly:!0,"data-autofocus":_===!0||t.autofocus===!0||void 0,...Ie,onKeydown:Pi,onKeyup:pr,onKeypress:Vi})),X===!0&&typeof t.autocomplete=="string"&&t.autocomplete.length!==0&&ee.push(i.h("input",{class:"q-select__autocomplete-input",autocomplete:t.autocomplete,tabindex:-1,onKeyup:qi}))}if($.value!==void 0&&t.disable!==!0&&hr.value.length!==0){const Ie=hr.value.map(Be=>i.h("option",{value:Be,selected:!0}));ee.push(i.h("select",{class:"hidden",name:$.value,multiple:t.multiple},Ie))}const me=t.useInput===!0||X!==!0?void 0:B.splitAttrs.attributes.value;return i.h("div",{class:"q-field__native row items-center",...me,...B.splitAttrs.listeners.value},ee)},getInnerAppend:()=>t.loading!==!0&&v.value!==!0&&t.hideDropdownIcon!==!0?[i.h(_t,{class:"q-select__dropdown-icon"+(c.value===!0?" rotate-180":""),name:vn.value})]:null}),Wl(B)}}),Lm=Ot(i.defineComponent({__name:"SelectControl",props:i.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=i.ref([]),l=i.useModel(t,"modelValue"),u=t,s=i.ref(!1),c=i.computed(()=>u.control.customParams),h=i.ref([]),g=i.computed(()=>{var C;return((C=c.value)==null?void 0:C.collection)||null}),w=i.computed(()=>g.value?h.value:u.control.options),k=ir();i.watch(g,C=>{if(!C)return;const E=k.getCollection(g.value);if(E){h.value=E;return}s.value=!0},{immediate:!0});function v(C,E){if(C===""){E(()=>{o.value=Ne.cloneDeep(w.value)});return}E(()=>{const y=C.toLowerCase();o.value=(w.value||[]).filter(T=>T.toLowerCase().includes(y))})}return(C,E)=>{const y=i.resolveComponent("ControlLabel");return i.openBlock(),i.createElementBlock(i.Fragment,null,[C.control.label?(i.openBlock(),i.createBlock(y,{key:0,label:C.control.label},null,8,["label"])):i.createCommentVNode("",!0),i.createVNode(ki,{class:"q-card win-card row items-center q-px-md"},{default:i.withCtx(()=>[i.createVNode(Os,{borderless:"",label:C.control.label,modelValue:l.value,"onUpdate:modelValue":E[0]||(E[0]=T=>l.value=T),"emit-value":"","option-label":"label","map-options":"","use-input":"",clearable:"",onFilter:v,options:o.value,style:{minHeight:"70px",width:"300px",margin:"auto"}},null,8,["label","modelValue","options"])]),_:1})],64)}}}),[["__scopeId","data-v-fa1749f7"]]),qm={class:"text-center",style:{width:"100%"}},Vm={class:"text-center text-weight-medium"},Pm={class:"question-title"},Nm=i.defineComponent({__name:"StepHeader",props:{formGroup:{},stepsCount:{}},setup(t){return(o,l)=>(i.openBlock(),i.createElementBlock("div",qm,[i.createElementVNode("div",Vm,i.toDisplayString(o.formGroup.order+1)+"/"+i.toDisplayString(o.stepsCount),1),i.createElementVNode("div",Pm,i.toDisplayString(o.formGroup.title||""),1)]))}});function Dm(){return i.inject(Xd)}function Ts(t,o){const{maxControlsPerGroup:l,notifyValidations:u}={...id,...o||{}},s=ir(),c=i.computed(()=>s.formSteps[t]),h=i.ref([]),g=i.ref([]),w=(y,T)=>{s.setControlValue(t,y);const z=h.value.find(F=>F.id===T);z&&(g.value=od(z));const R=v(y),H=C(y);(R||H)&&k()};function k(){const y=c.value.controls,T=[];cd(y).forEach(R=>{const H=R.controls;if(H.every(N=>!Rl.includes(N.controlType))){T.push(R);return}let F={...R,controls:[]};for(const N of H)if(Rl.includes(N.controlType)){T.push(F),F={...F,controls:[]};const Q=ud(R,N,l);T.push(...Q)}else F.controls.push(N)}),h.value=Ne.orderBy(T,"order").map(R=>({...R,id:R.controls.map(H=>H.id).join("-")})).filter(R=>R.controls.some(H=>H.visible)).map((R,H)=>({...R,order:H,controls:R.controls.filter(F=>F.visible)}))}function v({id:y,value:T}){let z=!1;const H=c.value.controls.filter(F=>{var N;return((N=F.conditions)==null?void 0:N.some(Q=>Q.id===y))||!1});if(H!=null&&H.length)return H.forEach(({id:F,conditions:N,visible:Q})=>{const G=N.every(j=>{const{value:K,operator:le}=j;return{"==":T===K,"!=":T!==K,">":T>K,"<":T<K}[le]||!1});Q!==G&&(s.setControlVisibility(t,F,G),z=!0)}),z}function C({id:y,value:T}){const z=Number(T||0);let R=!1;const F=c.value.controls.filter(N=>{var Q;return N.controlType==="dynamic_array"&&((Q=N.itemsLength)==null?void 0:Q.controlId)===y});if(F!=null&&F.length)return F.forEach(({id:N,itemsLength:Q})=>{(Q==null?void 0:Q.value)!==z&&(s.setControlItemsLength(t,N,z),R=!0)}),R}const{notify:E}=Dm();return i.watch(g,y=>{y.length&&(u&&E({message:y[0],color:"negative",position:"bottom",timeout:5e3,actions:[{label:"✕",color:"white"}]}),g.value=[])},{deep:!0}),i.watch(c,()=>{k()},{immediate:!0}),{model:h,errorMessages:g,rebuildModel:k,onControlValueUpdate:w}}const $m={key:0,style:{height:"100%"}},Fm={class:"q-py-sm"},Um={class:"form-steps-container"},zm={class:"row justify-center items-center",style:{height:"100%",width:"100vw"}},Hm={class:"controls-container",style:{height:"100%"}},Wm={class:"form-container flex column items-center q-px-md",style:{width:"100vw"}},Gm=Ot(i.defineComponent({__name:"MultipleFormGroups",props:{index:{}},setup(t){const o=t,l=ir(),{model:u,onControlValueUpdate:s}=Ts(o.index),c=i.computed(()=>u.value.length),h=i.ref(0),g=i.computed(()=>u.value[h.value]),w=v=>{const C=Ne.toPairs(Ne.groupBy(v,"row"));return Ne.orderBy(C,([E,y])=>Number(E),"asc").map(([E,y])=>({controls:Ne.orderBy(y,"col","asc")}))};i.watch(h,v=>{const C=v+1===c.value;l.setOnLastSubstep(C)},{immediate:!0});function k(v){return{input_text:Kl,input_number:Kl,checkbox:ku,switch:Kd,select:Lm,cards_select:Dd}[v]||Kl}return(v,C)=>g.value?(i.openBlock(),i.createElementBlock("div",$m,[i.createElementVNode("div",Fm,[i.createVNode(Nm,{formGroup:g.value,stepsCount:c.value},null,8,["formGroup","stepsCount"])]),i.createElementVNode("div",Um,[i.createElementVNode("div",zm,[i.createElementVNode("div",Hm,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(u),E=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:E.id},[h.value===E.order?(i.openBlock(),i.createBlock(yd,{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",Wm,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(w(E.controls),(y,T)=>(i.openBlock(),i.createElementBlock("div",{class:"q-mb-xl",key:T},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(y.controls,(z,R)=>(i.openBlock(),i.createElementBlock("div",{key:R},[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(k(z.controlType)),{control:z,modelValue:y.controls[R].value,"onUpdate:modelValue":[H=>y.controls[R].value=H,H=>i.unref(s)(z,E.id)]},null,8,["control","modelValue","onUpdate:modelValue"]))]))),128))]))),128))])]),_:2},1024)):i.createCommentVNode("",!0)],64))),128)),i.createVNode(Uh,{currentStep:h.value,stepsCount:c.value,nextDisabled:!g.value.valid,onPrev:C[0]||(C[0]=E=>h.value--),onNext:C[1]||(C[1]=E=>g.value.valid&&h.value++)},null,8,["currentStep","stepsCount","nextDisabled"])])])])])):i.createCommentVNode("",!0)}}),[["__scopeId","data-v-2d9dca33"]]),Km={style:{"font-size":"16px","padding-top":"1rem"}},jm={style:{"font-size":"16px","padding-top":"1rem"}},no=Ot(i.defineComponent({__name:"SimpleInput",props:i.mergeModels({control:{},rules:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=i.useModel(t,"modelValue"),l=t,u=i.computed(()=>{var s;return(s=l.control.controlType)==null?void 0:s.split("_")[1]});return(s,c)=>(i.openBlock(),i.createBlock(ki,{class:"q-px-md win-card"},{default:i.withCtx(()=>[i.createVNode(Du,{borderless:"","reverse-fill-mask":"",modelValue:o.value,"onUpdate:modelValue":c[0]||(c[0]=h=>o.value=h),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",Km,i.toDisplayString(s.control.prefix),1)]),key:"0"}:void 0,s.control.suffix?{name:"append",fn:i.withCtx(()=>[i.createElementVNode("span",jm,i.toDisplayString(s.control.suffix),1)]),key:"1"}:void 0]),1032,["modelValue","label","mask","input-class","rules"])]),_:1}))}}),[["__scopeId","data-v-bd5dfdca"]]),Bs=i.defineComponent({__name:"SimpleSelect",props:i.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=i.useModel(t,"modelValue");return(l,u)=>(i.openBlock(),i.createBlock(ki,{class:"q-px-md win-card"},{default:i.withCtx(()=>[i.createVNode(Os,{borderless:"",label:l.control.label,options:l.control.options,modelValue:o.value,"onUpdate:modelValue":u[0]||(u[0]=s=>o.value=s),"emit-value":"","option-label":"label","map-options":""},null,8,["label","options","modelValue"])]),_:1}))}}),Ym={key:0,style:{height:"100%"}},Qm={class:"question-title text-center q-py-sm"},Zm={class:"form-steps-container bg-grey-1"},Xm={class:"form-container",style:{height:"100%"}},Jm={class:"row items-center"},eg={class:"col-12 row"},tg=Ot(i.defineComponent({__name:"SingleFormGroup",props:{index:{}},setup(t){const o=t,{model:l,onControlValueUpdate:u}=Ts(o.index,{notifyValidations:!1});function s(w){return{input_text:no,input_number:no,select:Bs,cards_select:Bs,checkbox:ku}[w]||no}const c=w=>Ne.orderBy(Ne.toPairs(Ne.groupBy(w,"row")),"row").map(([k,v])=>({controls:Ne.orderBy(v,"col")}));function h(w){return[k=>{var C;let v="";return(C=w.validators)==null||C.some(E=>{const{param:y,validator:T}=E,z=Ja[T];return z.fn(Number(y))({...w,value:k})?!1:(v=z.message,!0)}),!v.length||v}]}const g=ir();return i.onMounted(()=>g.setOnLastSubstep(!0)),(w,k)=>i.unref(l)?(i.openBlock(),i.createElementBlock("div",Ym,[i.createElementVNode("div",Qm,i.toDisplayString(i.unref(l)[0].title),1),i.createElementVNode("div",Zm,[i.createElementVNode("div",Xm,[i.createElementVNode("div",Jm,[i.createElementVNode("div",eg,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(c(i.unref(l)[0].controls),(v,C)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(c(i.unref(l)[0].controls).length>1?"col-md-6 col-12":"col-12"),key:C},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(v.controls,(E,y)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(`col-xs-12 col-sm q-pa-xs ${c(i.unref(l)[0].controls).length>1?"col-md-6 col-12":"col-12"}`),key:y},[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(s(E.controlType)),{control:E,modelValue:E.value,"onUpdate:modelValue":[T=>E.value=T,T=>i.unref(u)(E,i.unref(l)[0].id)],rules:h(E)},null,8,["control","modelValue","onUpdate:modelValue","rules"]))],2))),128))],2))),128))])])])])])):i.createCommentVNode("",!0)}}),[["__scopeId","data-v-a8cd1002"]]),ro=t=>(i.pushScopeId("data-v-ea1ef607"),t=t(),i.popScopeId(),t),ng={class:"buttons-container"},rg={class:"max-container"},ig={key:0,class:"row checkbox justify-end q-my-sm"},lg={style:{"max-width":"650px"}},og=ro(()=>i.createElementVNode("br",{class:"gt-sm"},null,-1)),ag={class:"row justify-between q-my-md q-px-md q-pb-xl"},ug=ro(()=>i.createElementVNode("span",{class:"text-black"},"Atrás",-1)),sg={key:1},cg={key:0,class:"text-black"},fg=ro(()=>i.createElementVNode("span",{class:"gt-sm"},"formulario",-1)),dg={key:1,class:"text-black"},hg=Ot(i.defineComponent({__name:"StepsNavigationButtons",emits:["submit"],setup(t,{emit:o}){const{nextStep:l,previousStep:u,currentStep:s,stepsCount:c,nextDisabled:h,onLastSubstep:g}=i.toRefs(ir()),w=o,k=i.ref(!1),v=E=>{},C=()=>{s.value===c.value?w("submit"):l.value()};return(E,y)=>(i.openBlock(),i.createElementBlock("div",ng,[i.createElementVNode("div",rg,[i.unref(s)===i.unref(c)?(i.openBlock(),i.createElementBlock("div",ig,[i.createElementVNode("div",lg,[i.createVNode(Cu,{color:"info",class:"checkbox",modelValue:k.value,"onUpdate:modelValue":y[1]||(y[1]=T=>k.value=T)},{default:i.withCtx(()=>[i.createElementVNode("div",null,[i.createTextVNode(" He leído, comprendo y acepto los términos de tratamiento de datos "),og,i.createTextVNode(" personales para esta solicitud. Más info. sobre la protección de datos "),i.createElementVNode("span",{style:{"text-decoration":"underline"},onClick:y[0]||(y[0]=T=>v())},"aquí"),i.createTextVNode(". ")])]),_:1},8,["modelValue"])])])):i.createCommentVNode("",!0),i.createElementVNode("div",ag,[i.unref(s)>1?(i.openBlock(),i.createBlock(cr,{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(()=>[ug]),_:1},8,["onClick"])):(i.openBlock(),i.createElementBlock("div",sg)),i.createElementVNode("div",null,[!i.unref(h)&&i.unref(g)?(i.openBlock(),i.createBlock(cr,{key:0,color:"green",class:"q-px-xl q-py-sm q-ml-sm win-btn win-btn-primary bg-white",onClick:C,disable:i.unref(s)===i.unref(c)&&!k.value,flat:"","no-caps":""},{default:i.withCtx(()=>[i.unref(s)===i.unref(c)?(i.openBlock(),i.createElementBlock("span",cg,[i.createTextVNode(" Enviar "),fg])):(i.openBlock(),i.createElementBlock("span",dg," Siguiente "))]),_:1},8,["disable"])):i.createCommentVNode("",!0)])])])]))}}),[["__scopeId","data-v-ea1ef607"]]),Rs=i.defineComponent({__name:"DynamicForm",props:{forms:{}},emits:["onSubmit"],setup(t,{emit:o}){const l=t,u=o,s=i.ref(!1),c=ir(),h=w=>Ne.keys(Ne.groupBy(w.controls,"group")).length===1;i.watch(()=>l.forms,w=>{const v=new ru().fromRaw(w);c.setFormSteps(v)},{immediate:!0});function g(){const w=Ne.cloneDeep(c.formSteps),v=new ru().toRaw(w);u("onSubmit",v)}return(w,k)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",null,[i.renderSlot(w.$slots,"header"),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(c).formSteps,(v,C)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:C},[h(v)?i.withDirectives((i.openBlock(),i.createBlock(tg,{key:0,index:C},null,8,["index"])),[[i.vShow,i.unref(c).currentStep===C+1]]):i.withDirectives((i.openBlock(),i.createBlock(Gm,{key:1,index:C,onOnLastStep:k[0]||(k[0]=E=>s.value=E)},null,8,["index"])),[[i.vShow,i.unref(c).currentStep===C+1]])],64))),128))]),i.createVNode(hg,{onSubmit:g})],64))}}),mg=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),Is=i.defineComponent({__name:"TestUi",setup(t){const o=i.ref("Test W2W UI!");return(l,u)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[mg,i.createElementVNode("h1",null,i.toDisplayString(o.value),1)],64))}}),gg=i.defineComponent({__name:"DomSection",props:{section:{}},setup(t){const o=i.ref(null),l=t;return i.watch([()=>l.section,o],([u,s])=>{u&&s&&s.appendChild(u)}),(u,s)=>(i.openBlock(),i.createElementBlock("div",{ref_key:"container",ref:o},null,512))}});function Ms(t,o){try{return o.split(".").reduce((u,s)=>u[s],t)}catch(l){return console.error(l),`{{${o}}}`}}const pg={class:"card"},vg={key:0,class:"card-header"},_g={key:0,contenteditable:""},bg={class:"card-content"},yg={contenteditable:"",class:"field-label"},wg={contenteditable:"",class:"field-value"},Sg=Ot(i.defineComponent({__name:"Card",props:{card:{},data:{}},setup(t){const o=t;function l(s){const c=s.value||Ms(o.data,s.key||"");return u(c,s.format)}function u(s,c){return c?c==="currency"?new Intl.NumberFormat("es-ES",{style:"currency",currency:"EUR"}).format(s):c==="percentage"?`${s} %`:s:s}return(s,c)=>(i.openBlock(),i.createElementBlock("div",pg,[s.card.title||s.card.subtitle?(i.openBlock(),i.createElementBlock("div",vg,[s.card.title?(i.openBlock(),i.createElementBlock("h3",_g,i.toDisplayString(s.card.title),1)):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.createElementVNode("div",bg,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.card.fields,(h,g)=>(i.openBlock(),i.createElementBlock("div",{key:g,class:"card-field"},[i.createElementVNode("span",yg,i.toDisplayString(h.label),1),i.createElementVNode("span",wg,i.toDisplayString(l(h)),1)]))),128))])]))}}),[["__scopeId","data-v-758b9217"]]);function Mi(t,o={}){const l=i.inject("data"),u=i.computed(()=>l.value[t]||o),s=i.computed(()=>l.value.global||{}),c=i.computed(()=>({...s.value,...u.value}));return{sectionData:u,globalData:s,data:c}}const xg=Ot(i.defineComponent({__name:"CardGridSection",props:{styles:{},id:{},content:{}},setup(t){const o=t,{data:l}=Mi(o.id,{});return(u,s)=>(i.openBlock(),i.createElementBlock("div",{class:"card-section",style:i.normalizeStyle({...u.styles||{}})},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(u.content.cards,(c,h)=>(i.openBlock(),i.createBlock(Sg,{key:h,card:c,data:i.unref(l)},null,8,["card","data"]))),128))],4))}}),[["__scopeId","data-v-91deb527"]]),Cg=["src"],kg=i.defineComponent({__name:"ImageSection",props:{styles:{},id:{},content:{}},setup(t){return Mi(t.id,{}),(l,u)=>(i.openBlock(),i.createElementBlock("div",{style:i.normalizeStyle({width:"100%",height:"100%",...l.styles||{}})},[i.createElementVNode("img",{src:l.content.src,alt:"image",style:{width:"100%"}},null,8,Cg)],4))}}),Eg="#f5f5f5",Ag=Ot(i.defineComponent({__name:"TableSection",props:{styles:{},id:{},content:{}},setup(t){const o=t,{columns:l}=i.toRefs(o.content),{data:u}=Mi(o.id,[]),s=i.computed(()=>[...u.value[o.content.rowsKey]||[]]);return(c,h)=>(i.openBlock(),i.createElementBlock("table",{style:i.normalizeStyle({width:"100%",...c.styles||{}}),class:"table-section"},[i.createElementVNode("thead",null,[i.createElementVNode("tr",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(l),g=>(i.openBlock(),i.createElementBlock("th",{key:g.key,style:i.normalizeStyle({textAlign:g.align||"left"}),contenteditable:""},i.toDisplayString(g.header),5))),128))])]),i.createElementVNode("tbody",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,(g,w)=>(i.openBlock(),i.createElementBlock("tr",{key:w,style:i.normalizeStyle({backgroundColor:w%2===0?Eg:"transparent"})},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(l),k=>(i.openBlock(),i.createElementBlock("td",{key:k.key,style:i.normalizeStyle({textAlign:k.align||"left"}),contenteditable:""},i.toDisplayString(g[k.key]),5))),128))],4))),128))])],4))}}),[["__scopeId","data-v-e0c84f86"]]),Og={contenteditable:""},Tg=i.defineComponent({__name:"TextSection",props:{styles:{},id:{},content:{}},setup(t){const o=t,{data:l}=Mi(o.id,{}),u=i.computed(()=>s(l.value,o.content.text));function s(c,h){const g=h.match(/{{(.*?)}}/g);return g?g.reduce((w,k)=>{const v=k.replace(/{{|}}/g,""),C=Ms(c,v);return w.replace(k,C)},h):h}return(c,h)=>(i.openBlock(),i.createElementBlock("div",{style:i.normalizeStyle({...c.styles||{}})},[i.createElementVNode("p",Og,i.toDisplayString(u.value),1)],4))}}),Bg=i.defineComponent({__name:"SectionWrapper",props:{section:{}},setup(t){const o=t,l={[gt.LayoutSectionType.TEXT]:Tg,[gt.LayoutSectionType.IMAGE]:kg,[gt.LayoutSectionType.TABLE]:Ag,[gt.LayoutSectionType.CARDS_GRID]:xg},u=i.computed(()=>o.section.type),s=i.computed(()=>({content:o.section.content,styles:o.section.styles,id:o.section.idDocLaySection}));return(c,h)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(l[u.value]),i.normalizeProps(i.guardReactiveProps(s.value)),null,16))}}),Ls=Ot(i.defineComponent({__name:"SectionsContainer",props:{layout:{},data:{},htmlNodes:{}},setup(t){const o=t,{layout:l,data:u}=i.toRefs(o);i.provide("data",u);const s=i.computed(()=>{var g;const h=l.value.sections.map(w=>({type:"default",section:w}));return(g=o.htmlNodes)==null||g.forEach(({index:w,element:k})=>{const v=w>h.length?h.length:w;h.splice(v,0,{type:"html",section:k})}),h}),c=l.value.styles;return(h,g)=>(i.openBlock(),i.createElementBlock("div",{class:"sections-container",style:i.normalizeStyle({...i.unref(c)||{}})},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,({type:w,section:k})=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[w==="default"?(i.openBlock(),i.createBlock(Bg,{key:0,section:k},null,8,["section"])):(i.openBlock(),i.createBlock(gg,{key:1,section:k},null,8,["section"]))],64))),256))],4))}}),[["__scopeId","data-v-7007f79f"]]),Rg={install(t,o){if(o!=null&&o.pinia)t.use(o.pinia);else throw new Error("No se ha encontrado una instancia de pinia");t.component("DynamicForm",Rs),t.component("TestUi",Is),t.component("SectionsContainer",Ls)}};Nt.DynamicForm=Rs,Nt.SectionsContainer=Ls,Nt.TestUi=Is,Nt.default=Rg,Object.defineProperties(Nt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
27
+ }`;var we=td(function(){return Oe(m,oe+"return "+D).apply(l,p)});if(we.source=D,ma(we))throw we;return we}function Wy(e){return Te(e).toLowerCase()}function Gy(e){return Te(e).toUpperCase()}function Ky(e,n,i){if(e=Te(e),e&&(i||n===l))return sc(e);if(!e||!(n=Ct(n)))return e;var a=Wt(e),f=Wt(n),m=cc(a,f),p=fc(a,f)+1;return Bn(a,m,p).join("")}function jy(e,n,i){if(e=Te(e),e&&(i||n===l))return e.slice(0,hc(e)+1);if(!e||!(n=Ct(n)))return e;var a=Wt(e),f=fc(a,Wt(n))+1;return Bn(a,0,f).join("")}function Yy(e,n,i){if(e=Te(e),e&&(i||n===l))return e.replace(zr,"");if(!e||!(n=Ct(n)))return e;var a=Wt(e),f=cc(a,Wt(n));return Bn(a,f).join("")}function Qy(e,n){var i=$,a=Z;if($e(n)){var f="separator"in n?n.separator:f;i="length"in n?ye(n.length):i,a="omission"in n?Ct(n.omission):a}e=Te(e);var m=e.length;if(yr(e)){var p=Wt(e);m=p.length}if(i>=m)return e;var b=i-wr(a);if(b<1)return a;var x=p?Bn(p,0,b).join(""):e.slice(0,b);if(f===l)return x+a;if(p&&(b+=x.length-b),ga(f)){if(e.slice(b).search(f)){var L,q=x;for(f.global||(f=Ro(f.source,Te(ln.exec(f))+"g")),f.lastIndex=0;L=f.exec(q);)var D=L.index;x=x.slice(0,D===l?b:D)}}else if(e.indexOf(Ct(f),b)!=b){var J=x.lastIndexOf(f);J>-1&&(x=x.slice(0,J))}return x+a}function Zy(e){return e=Te(e),e&&io.test(e)?e.replace(Fr,Ep):e}var Xy=Or(function(e,n,i){return e+(i?" ":"")+n.toUpperCase()}),_a=tf("toUpperCase");function ed(e,n,i){return e=Te(e),n=i?l:n,n===l?wp(e)?Tp(e):dp(e):e.match(n)||[]}var td=Se(function(e,n){try{return St(e,l,n)}catch(i){return ma(i)?i:new pe(i)}}),Jy=cn(function(e,n){return Rt(n,function(i){i=Jt(i),un(e,i,da(e[i],e))}),e});function ew(e){var n=e==null?0:e.length,i=ce();return e=n?Pe(e,function(a){if(typeof a[1]!="function")throw new It(h);return[i(a[0]),a[1]]}):[],Se(function(a){for(var f=-1;++f<n;){var m=e[f];if(St(m[0],this,a))return St(m[1],this,a)}})}function tw(e){return Ev(Lt(e,C))}function ba(e){return function(){return e}}function nw(e,n){return e==null||e!==e?n:e}var rw=rf(),iw=rf(!0);function gt(e){return e}function ya(e){return Mc(typeof e=="function"?e:Lt(e,C))}function lw(e){return qc(Lt(e,C))}function ow(e,n){return Vc(e,Lt(n,C))}var aw=Se(function(e,n){return function(i){return Jr(i,e,n)}}),uw=Se(function(e,n){return function(i){return Jr(e,i,n)}});function wa(e,n,i){var a=Xe(n),f=fl(n,a);i==null&&!($e(n)&&(f.length||!a.length))&&(i=n,n=e,e=this,f=fl(n,Xe(n)));var m=!($e(i)&&"chain"in i)||!!i.chain,p=dn(e);return Rt(f,function(b){var x=n[b];e[b]=x,p&&(e.prototype[b]=function(){var L=this.__chain__;if(m||L){var q=e(this.__wrapped__),D=q.__actions__=dt(this.__actions__);return D.push({func:x,args:arguments,thisArg:e}),q.__chain__=L,q}return x.apply(e,Cn([this.value()],arguments))})}),e}function sw(){return et._===this&&(et._=qp),this}function Sa(){}function cw(e){return e=ye(e),Se(function(n){return Pc(n,e)})}var fw=Jo(Pe),dw=Jo(ic),hw=Jo(Co);function nd(e){return oa(e)?ko(Jt(e)):zv(e)}function mw(e){return function(n){return e==null?l:Yn(e,n)}}var gw=of(),pw=of(!0);function xa(){return[]}function Ca(){return!1}function vw(){return{}}function _w(){return""}function bw(){return!0}function yw(e,n){if(e=ye(e),e<1||e>W)return[];var i=B,a=rt(e,B);n=ce(n),e-=B;for(var f=Oo(a,n);++i<e;)n(i);return f}function ww(e){return be(e)?Pe(e,Jt):kt(e)?[e]:dt(Sf(Te(e)))}function Sw(e){var n=++Mp;return Te(e)+n}var xw=vl(function(e,n){return e+n},0),Cw=ea("ceil"),kw=vl(function(e,n){return e/n},1),Ew=ea("floor");function Aw(e){return e&&e.length?cl(e,gt,Do):l}function Ow(e,n){return e&&e.length?cl(e,ce(n,2),Do):l}function Tw(e){return ac(e,gt)}function Bw(e,n){return ac(e,ce(n,2))}function Rw(e){return e&&e.length?cl(e,gt,zo):l}function Iw(e,n){return e&&e.length?cl(e,ce(n,2),zo):l}var Mw=vl(function(e,n){return e*n},1),Lw=ea("round"),qw=vl(function(e,n){return e-n},0);function Vw(e){return e&&e.length?Ao(e,gt):0}function Pw(e,n){return e&&e.length?Ao(e,ce(n,2)):0}return d.after=lb,d.ary=Mf,d.assign=Gb,d.assignIn=Kf,d.assignInWith=Bl,d.assignWith=Kb,d.at=jb,d.before=Lf,d.bind=da,d.bindAll=Jy,d.bindKey=qf,d.castArray=vb,d.chain=Bf,d.chunk=E0,d.compact=A0,d.concat=O0,d.cond=ew,d.conforms=tw,d.constant=ba,d.countBy=V_,d.create=Yb,d.curry=Vf,d.curryRight=Pf,d.debounce=Nf,d.defaults=Qb,d.defaultsDeep=Zb,d.defer=ob,d.delay=ab,d.difference=T0,d.differenceBy=B0,d.differenceWith=R0,d.drop=I0,d.dropRight=M0,d.dropRightWhile=L0,d.dropWhile=q0,d.fill=V0,d.filter=N_,d.flatMap=F_,d.flatMapDeep=U_,d.flatMapDepth=z_,d.flatten=Ef,d.flattenDeep=P0,d.flattenDepth=N0,d.flip=ub,d.flow=rw,d.flowRight=iw,d.fromPairs=D0,d.functions=iy,d.functionsIn=ly,d.groupBy=H_,d.initial=F0,d.intersection=U0,d.intersectionBy=z0,d.intersectionWith=H0,d.invert=ay,d.invertBy=uy,d.invokeMap=G_,d.iteratee=ya,d.keyBy=K_,d.keys=Xe,d.keysIn=mt,d.map=Cl,d.mapKeys=cy,d.mapValues=fy,d.matches=lw,d.matchesProperty=ow,d.memoize=El,d.merge=dy,d.mergeWith=jf,d.method=aw,d.methodOf=uw,d.mixin=wa,d.negate=Al,d.nthArg=cw,d.omit=hy,d.omitBy=my,d.once=sb,d.orderBy=j_,d.over=fw,d.overArgs=cb,d.overEvery=dw,d.overSome=hw,d.partial=ha,d.partialRight=Df,d.partition=Y_,d.pick=gy,d.pickBy=Yf,d.property=nd,d.propertyOf=mw,d.pull=j0,d.pullAll=Of,d.pullAllBy=Y0,d.pullAllWith=Q0,d.pullAt=Z0,d.range=gw,d.rangeRight=pw,d.rearg=fb,d.reject=X_,d.remove=X0,d.rest=db,d.reverse=ca,d.sampleSize=eb,d.set=vy,d.setWith=_y,d.shuffle=tb,d.slice=J0,d.sortBy=ib,d.sortedUniq=o_,d.sortedUniqBy=a_,d.split=Fy,d.spread=hb,d.tail=u_,d.take=s_,d.takeRight=c_,d.takeRightWhile=f_,d.takeWhile=d_,d.tap=A_,d.throttle=mb,d.thru=xl,d.toArray=Hf,d.toPairs=Qf,d.toPairsIn=Zf,d.toPath=ww,d.toPlainObject=Gf,d.transform=by,d.unary=gb,d.union=h_,d.unionBy=m_,d.unionWith=g_,d.uniq=p_,d.uniqBy=v_,d.uniqWith=__,d.unset=yy,d.unzip=fa,d.unzipWith=Tf,d.update=wy,d.updateWith=Sy,d.values=Rr,d.valuesIn=xy,d.without=b_,d.words=ed,d.wrap=pb,d.xor=y_,d.xorBy=w_,d.xorWith=S_,d.zip=x_,d.zipObject=C_,d.zipObjectDeep=k_,d.zipWith=E_,d.entries=Qf,d.entriesIn=Zf,d.extend=Kf,d.extendWith=Bl,wa(d,d),d.add=xw,d.attempt=td,d.camelCase=Ay,d.capitalize=Xf,d.ceil=Cw,d.clamp=Cy,d.clone=_b,d.cloneDeep=yb,d.cloneDeepWith=wb,d.cloneWith=bb,d.conformsTo=Sb,d.deburr=Jf,d.defaultTo=nw,d.divide=kw,d.endsWith=Oy,d.eq=Kt,d.escape=Ty,d.escapeRegExp=By,d.every=P_,d.find=D_,d.findIndex=Cf,d.findKey=Xb,d.findLast=$_,d.findLastIndex=kf,d.findLastKey=Jb,d.floor=Ew,d.forEach=Rf,d.forEachRight=If,d.forIn=ey,d.forInRight=ty,d.forOwn=ny,d.forOwnRight=ry,d.get=pa,d.gt=xb,d.gte=Cb,d.has=oy,d.hasIn=va,d.head=Af,d.identity=gt,d.includes=W_,d.indexOf=$0,d.inRange=ky,d.invoke=sy,d.isArguments=Xn,d.isArray=be,d.isArrayBuffer=kb,d.isArrayLike=ht,d.isArrayLikeObject=ze,d.isBoolean=Eb,d.isBuffer=Rn,d.isDate=Ab,d.isElement=Ob,d.isEmpty=Tb,d.isEqual=Bb,d.isEqualWith=Rb,d.isError=ma,d.isFinite=Ib,d.isFunction=dn,d.isInteger=$f,d.isLength=Ol,d.isMap=Ff,d.isMatch=Mb,d.isMatchWith=Lb,d.isNaN=qb,d.isNative=Vb,d.isNil=Nb,d.isNull=Pb,d.isNumber=Uf,d.isObject=$e,d.isObjectLike=Ue,d.isPlainObject=li,d.isRegExp=ga,d.isSafeInteger=Db,d.isSet=zf,d.isString=Tl,d.isSymbol=kt,d.isTypedArray=Br,d.isUndefined=$b,d.isWeakMap=Fb,d.isWeakSet=Ub,d.join=W0,d.kebabCase=Ry,d.last=Vt,d.lastIndexOf=G0,d.lowerCase=Iy,d.lowerFirst=My,d.lt=zb,d.lte=Hb,d.max=Aw,d.maxBy=Ow,d.mean=Tw,d.meanBy=Bw,d.min=Rw,d.minBy=Iw,d.stubArray=xa,d.stubFalse=Ca,d.stubObject=vw,d.stubString=_w,d.stubTrue=bw,d.multiply=Mw,d.nth=K0,d.noConflict=sw,d.noop=Sa,d.now=kl,d.pad=Ly,d.padEnd=qy,d.padStart=Vy,d.parseInt=Py,d.random=Ey,d.reduce=Q_,d.reduceRight=Z_,d.repeat=Ny,d.replace=Dy,d.result=py,d.round=Lw,d.runInContext=S,d.sample=J_,d.size=nb,d.snakeCase=$y,d.some=rb,d.sortedIndex=e_,d.sortedIndexBy=t_,d.sortedIndexOf=n_,d.sortedLastIndex=r_,d.sortedLastIndexBy=i_,d.sortedLastIndexOf=l_,d.startCase=Uy,d.startsWith=zy,d.subtract=qw,d.sum=Vw,d.sumBy=Pw,d.template=Hy,d.times=yw,d.toFinite=hn,d.toInteger=ye,d.toLength=Wf,d.toLower=Wy,d.toNumber=Pt,d.toSafeInteger=Wb,d.toString=Te,d.toUpper=Gy,d.trim=Ky,d.trimEnd=jy,d.trimStart=Yy,d.truncate=Qy,d.unescape=Zy,d.uniqueId=Sw,d.upperCase=Xy,d.upperFirst=_a,d.each=Rf,d.eachRight=If,d.first=Af,wa(d,function(){var e={};return Zt(d,function(n,i){Re.call(d.prototype,i)||(e[i]=n)}),e}(),{chain:!1}),d.VERSION=u,Rt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){d[e].placeholder=d}),Rt(["drop","take"],function(e,n){ke.prototype[e]=function(i){i=i===l?1:Qe(ye(i),0);var a=this.__filtered__&&!n?new ke(this):this.clone();return a.__filtered__?a.__takeCount__=rt(i,a.__takeCount__):a.__views__.push({size:rt(i,B),type:e+(a.__dir__<0?"Right":"")}),a},ke.prototype[e+"Right"]=function(i){return this.reverse()[e](i).reverse()}}),Rt(["filter","map","takeWhile"],function(e,n){var i=n+1,a=i==P||i==ue;ke.prototype[e]=function(f){var m=this.clone();return m.__iteratees__.push({iteratee:ce(f,3),type:i}),m.__filtered__=m.__filtered__||a,m}}),Rt(["head","last"],function(e,n){var i="take"+(n?"Right":"");ke.prototype[e]=function(){return this[i](1).value()[0]}}),Rt(["initial","tail"],function(e,n){var i="drop"+(n?"":"Right");ke.prototype[e]=function(){return this.__filtered__?new ke(this):this[i](1)}}),ke.prototype.compact=function(){return this.filter(gt)},ke.prototype.find=function(e){return this.filter(e).head()},ke.prototype.findLast=function(e){return this.reverse().find(e)},ke.prototype.invokeMap=Se(function(e,n){return typeof e=="function"?new ke(this):this.map(function(i){return Jr(i,e,n)})}),ke.prototype.reject=function(e){return this.filter(Al(ce(e)))},ke.prototype.slice=function(e,n){e=ye(e);var i=this;return i.__filtered__&&(e>0||n<0)?new ke(i):(e<0?i=i.takeRight(-e):e&&(i=i.drop(e)),n!==l&&(n=ye(n),i=n<0?i.dropRight(-n):i.take(n-e)),i)},ke.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ke.prototype.toArray=function(){return this.take(B)},Zt(ke.prototype,function(e,n){var i=/^(?:filter|find|map|reject)|While$/.test(n),a=/^(?:head|last)$/.test(n),f=d[a?"take"+(n=="last"?"Right":""):n],m=a||/^find/.test(n);f&&(d.prototype[n]=function(){var p=this.__wrapped__,b=a?[1]:arguments,x=p instanceof ke,L=b[0],q=x||be(p),D=function(Ce){var Ee=f.apply(d,Cn([Ce],b));return a&&J?Ee[0]:Ee};q&&i&&typeof L=="function"&&L.length!=1&&(x=q=!1);var J=this.__chain__,oe=!!this.__actions__.length,de=m&&!J,we=x&&!oe;if(!m&&q){p=we?p:new ke(this);var he=e.apply(p,b);return he.__actions__.push({func:xl,args:[D],thisArg:l}),new Mt(he,J)}return de&&we?e.apply(this,b):(he=this.thru(D),de?a?he.value()[0]:he.value():he)})}),Rt(["pop","push","shift","sort","splice","unshift"],function(e){var n=Yi[e],i=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",a=/^(?:pop|shift)$/.test(e);d.prototype[e]=function(){var f=arguments;if(a&&!this.__chain__){var m=this.value();return n.apply(be(m)?m:[],f)}return this[i](function(p){return n.apply(be(p)?p:[],f)})}}),Zt(ke.prototype,function(e,n){var i=d[n];if(i){var a=i.name+"";Re.call(kr,a)||(kr[a]=[]),kr[a].push({name:n,func:i})}}),kr[pl(l,H).name]=[{name:"wrapper",func:l}],ke.prototype.clone=Zp,ke.prototype.reverse=Xp,ke.prototype.value=Jp,d.prototype.at=O_,d.prototype.chain=T_,d.prototype.commit=B_,d.prototype.next=R_,d.prototype.plant=M_,d.prototype.reverse=L_,d.prototype.toJSON=d.prototype.valueOf=d.prototype.value=q_,d.prototype.first=d.prototype.head,Gr&&(d.prototype[Gr]=I_),d},Sr=Bp();Hn?((Hn.exports=Sr)._=Sr,yo._=Sr):et._=Sr}).call(xe)}(oi,oi.exports);var Ne=oi.exports,pt={},Ea={},Jn={};Object.defineProperty(Jn,"__esModule",{value:!0}),Jn.EstadoCaptacion=Jn.TipoCaptacion=void 0;var Aa;(function(t){t.CLIENTES="1",t.PROVEEDORES="2",t.USUARIOS="3",t.PRODUCTOS="4",t.PEDIDOS="5"})(Aa||(Jn.TipoCaptacion=Aa={}));var Oa;(function(t){t.EN_ESTUDIO="1",t.PRE_APROBADA="2",t.APROBADA="3",t.EN_NEGOCIACION="4",t.NEGOCIACION_FINALIZADA="5",t.CONFIRMADA="6",t.FINALIZADA="7",t.CANCELADA="0"})(Oa||(Jn.EstadoCaptacion=Oa={}));var ai={};Object.defineProperty(ai,"__esModule",{value:!0}),ai.TipoGarantia=void 0;var Ta;(function(t){t.INMUEBLE="Propiedad inmobiliaria",t.VEHICULO="Vehículo",t.AVAL_PERSONAL="Aval personal",t.OTROS="Otros"})(Ta||(ai.TipoGarantia=Ta={}));var ui={};Object.defineProperty(ui,"__esModule",{value:!0}),ui.TipoImportacion=void 0;var Ba;(function(t){t.CAPTACION="captacion",t.PEDIDO="pedido",t.PRODUCTO="producto",t.CLIENTE="cliente"})(Ba||(ui.TipoImportacion=Ba={}));var gn={};Object.defineProperty(gn,"__esModule",{value:!0}),gn.TipoLiquidacionReclamo=gn.EstadoLiquidacionReclamo=gn.EstadoLiquidacion=void 0;var Ra;(function(t){t[t.EN_PREVISION=1]="EN_PREVISION",t[t.CONFIRMACION_PENDIENTE=2]="CONFIRMACION_PENDIENTE",t[t.CONFIRMADA=3]="CONFIRMADA",t[t.PAGADA=4]="PAGADA",t[t.CON_RECLAMOS=5]="CON_RECLAMOS"})(Ra||(gn.EstadoLiquidacion=Ra={}));var Ia;(function(t){t[t.ACTIVO=1]="ACTIVO",t[t.APROBADO=2]="APROBADO",t[t.NEGADO=3]="NEGADO"})(Ia||(gn.EstadoLiquidacionReclamo=Ia={}));var Ma;(function(t){t[t.ITEM=1]="ITEM",t[t.COBRO=2]="COBRO"})(Ma||(gn.TipoLiquidacionReclamo=Ma={}));var si={};Object.defineProperty(si,"__esModule",{value:!0}),si.TipoNotificacion=void 0;var La;(function(t){t.NUEVO="1",t.DOCUMENTOS="2",t.REALIZADO="3",t.INCIDENTES="4",t.CANCELACION="5"})(La||(si.TipoNotificacion=La={}));var ci={};Object.defineProperty(ci,"__esModule",{value:!0}),ci.EstadoPedido=void 0;var qa;(function(t){t[t.PENDIENTE=1]="PENDIENTE",t[t.REVISAR_DOC=2]="REVISAR_DOC",t[t.LLAMAR=3]="LLAMAR",t[t.FINALIZADO=4]="FINALIZADO",t[t.CANCELADO=5]="CANCELADO",t[t.LIQUIDADO=6]="LIQUIDADO",t[t.INCIDENCIA=7]="INCIDENCIA",t[t.TRAMITADO=8]="TRAMITADO",t[t.PENDIENTE_ASIGNAR=9]="PENDIENTE_ASIGNAR"})(qa||(ci.EstadoPedido=qa={}));var er={};Object.defineProperty(er,"__esModule",{value:!0}),er.TipoProducto=er.EstadoProducto=void 0;var Va;(function(t){t.DESHABILITADO="0",t.INACTIVO="1",t.ACTIVADO="2",t.PUBLICO="3"})(Va||(er.EstadoProducto=Va={}));var Pa;(function(t){t.ARTICULO="1",t.SERVICIO_CONTRATO="2",t.MEMBRESIA="3",t.OFERTA_EMPLEO="4"})(Pa||(er.TipoProducto=Pa={}));var fi={};Object.defineProperty(fi,"__esModule",{value:!0}),fi.EstadoBase=void 0;var Na;(function(t){t[t.INACTIVO=0]="INACTIVO",t[t.ACTIVO=1]="ACTIVO"})(Na||(fi.EstadoBase=Na={})),function(t){var o=xe&&xe.__createBinding||(Object.create?function(u,s,c,h){h===void 0&&(h=c);var g=Object.getOwnPropertyDescriptor(s,c);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,h,g)}:function(u,s,c,h){h===void 0&&(h=c),u[h]=s[c]}),l=xe&&xe.__exportStar||function(u,s){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&o(s,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),l(Jn,t),l(ai,t),l(ui,t),l(gn,t),l(si,t),l(ci,t),l(er,t),l(fi,t)}(Ea);var Da={},$a={},di={};Object.defineProperty(di,"__esModule",{value:!0}),di.LAYOUT_COLUMNA_TYPES=void 0,di.LAYOUT_COLUMNA_TYPES=["texto","numero","fecha"],function(t){var o=xe&&xe.__createBinding||(Object.create?function(u,s,c,h){h===void 0&&(h=c);var g=Object.getOwnPropertyDescriptor(s,c);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,h,g)}:function(u,s,c,h){h===void 0&&(h=c),u[h]=s[c]}),l=xe&&xe.__exportStar||function(u,s){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&o(s,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),l(di,t)}($a);var Fa={},tr={};Object.defineProperty(tr,"__esModule",{value:!0}),tr.LAYOUT_SECTION_TYPES=tr.LayoutSectionType=void 0;var nr;(function(t){t.TEXT="text",t.TABLE="table",t.CARDS_GRID="cards-grid",t.IMAGE="image"})(nr||(tr.LayoutSectionType=nr={})),tr.LAYOUT_SECTION_TYPES=[nr.TEXT,nr.CARDS_GRID,nr.TABLE,nr.IMAGE],function(t){var o=xe&&xe.__createBinding||(Object.create?function(u,s,c,h){h===void 0&&(h=c);var g=Object.getOwnPropertyDescriptor(s,c);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,h,g)}:function(u,s,c,h){h===void 0&&(h=c),u[h]=s[c]}),l=xe&&xe.__exportStar||function(u,s){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&o(s,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),l(tr,t)}(Fa);var Ua={},hi={};Object.defineProperty(hi,"__esModule",{value:!0}),hi.TipoComision=void 0;var za;(function(t){t.PORCENTAJE="porcentaje",t.MONTO_FIJO="monto_fijo"})(za||(hi.TipoComision=za={}));var Ha={};Object.defineProperty(Ha,"__esModule",{value:!0});var Ot={};Object.defineProperty(Ot,"__esModule",{value:!0}),Ot.TABLES=Ot.TABLES_FIELDS=Ot.SOURCES=Ot.LOGIC_OPERATORS=Ot.RULE_OPERATORS=void 0,Ot.RULE_OPERATORS=["==","!=","<",">","IN"],Ot.LOGIC_OPERATORS=["AND","OR"],Ot.SOURCES=["IMPORTACION","TABLA","CONTENEDOR"],Ot.TABLES_FIELDS={PRODUCTOS:["TIPO","NOMBRE","DESCRIPCION","ID_GAMA","ESTADO","TAGS","ID_PRODUCTO","PROPS","COD_ART_MVX"],CAPTACION:["ESTADO","TIPO","CAPTADO","ID_CAPTACION","FECHA_CAPTADO"]},Ot.TABLES=[{label:"PRODUCTOS",value:"PRODUCTOS"},{label:"CAPTACIONES",value:"CAPTACION"}],function(t){var o=xe&&xe.__createBinding||(Object.create?function(u,s,c,h){h===void 0&&(h=c);var g=Object.getOwnPropertyDescriptor(s,c);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,h,g)}:function(u,s,c,h){h===void 0&&(h=c),u[h]=s[c]}),l=xe&&xe.__exportStar||function(u,s){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&o(s,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),l(hi,t),l(Ha,t),l(Ot,t)}(Ua);var Wa={},mi={};Object.defineProperty(mi,"__esModule",{value:!0}),mi.OPERATORS=void 0,mi.OPERATORS=["==","!=",">","<",">=","<=","contains","not_contains","in","not_in"];var rr={};Object.defineProperty(rr,"__esModule",{value:!0}),rr.ControlType=rr.GAMA_PROP_CONTROL_TYPES=void 0,rr.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 Ga;(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"})(Ga||(rr.ControlType=Ga={}));var Ka={};Object.defineProperty(Ka,"__esModule",{value:!0});var ja={};Object.defineProperty(ja,"__esModule",{value:!0});var Ya={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.VALIDATORS=t.PropValidatorKeys=t.GamaPropValidatorsMap=void 0,t.GamaPropValidatorsMap={required:{fn:()=>l=>l.value!==null&&l.value!==void 0&&l.value!=="",message:"Este campo es requerido",label:"Requerido"},min:{fn:l=>u=>{if(typeof u.value=="number")return(u.value||0)>=l;if(typeof u.value=="string"){const s=u.value||"";return u.multiple?s.split(",").length>=l:s.length>=l}return!1},message:"El valor es menor al mínimo permitido",label:"Mínimo"},max:{fn:l=>u=>{if(typeof u.value=="number")return(u.value||0)<=l;if(typeof u.value=="string"){const s=u.value||"";return u.multiple?s.split(",").length<=l:(s||"").length<=l}return!1},message:"El valor es mayor al máximo permitido",label:"Máximo"},onlyNumbers:{fn:()=>l=>/^[0-9]*$/.test(String(l.value)||""),message:"Este campo solo acepta números",label:"Solo números"},email:{fn:()=>l=>l.value?/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(String(l.value)||""):!0,message:"El correo electrónico no es válido",label:"Correo electrónico"},url:{fn:()=>l=>l.value?/^(ftp|http|https):\/\/[^ "]+$/.test(String(l.value)||"")||/^www\.[^ "]+$/.test(String(l.value)||""):!0,message:"La URL no es válida",label:"URL"}};var o;(function(l){l.REQUERIDO="required",l.MINIMO="min",l.MAXIMO="max",l.SOLO_NUMEROS="onlyNumbers",l.EMAIL="email",l.URL="url"})(o||(t.PropValidatorKeys=o={})),t.VALIDATORS=Object.entries(t.GamaPropValidatorsMap).map(([l,u])=>({value:l,...u}))})(Ya);var Qa={};Object.defineProperty(Qa,"__esModule",{value:!0}),function(t){var o=xe&&xe.__createBinding||(Object.create?function(u,s,c,h){h===void 0&&(h=c);var g=Object.getOwnPropertyDescriptor(s,c);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,h,g)}:function(u,s,c,h){h===void 0&&(h=c),u[h]=s[c]}),l=xe&&xe.__exportStar||function(u,s){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&o(s,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),l(mi,t),l(rr,t),l(Ka,t),l(ja,t),l(Ya,t),l(Qa,t)}(Wa);var Za={},Xa={};Object.defineProperty(Xa,"__esModule",{value:!0}),function(t){var o=xe&&xe.__createBinding||(Object.create?function(u,s,c,h){h===void 0&&(h=c);var g=Object.getOwnPropertyDescriptor(s,c);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,h,g)}:function(u,s,c,h){h===void 0&&(h=c),u[h]=s[c]}),l=xe&&xe.__exportStar||function(u,s){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&o(s,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),l(Xa,t)}(Za),function(t){var o=xe&&xe.__createBinding||(Object.create?function(u,s,c,h){h===void 0&&(h=c);var g=Object.getOwnPropertyDescriptor(s,c);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,h,g)}:function(u,s,c,h){h===void 0&&(h=c),u[h]=s[c]}),l=xe&&xe.__exportStar||function(u,s){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&o(s,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),l($a,t),l(Fa,t),l(Ua,t),l(Wa,t),l(Za,t)}(Da),function(t){var o=xe&&xe.__createBinding||(Object.create?function(u,s,c,h){h===void 0&&(h=c);var g=Object.getOwnPropertyDescriptor(s,c);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,h,g)}:function(u,s,c,h){h===void 0&&(h=c),u[h]=s[c]}),l=xe&&xe.__exportStar||function(u,s){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&o(s,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),l(Ea,t),l(Da,t)}(pt);const Rl=[pt.ControlType.DYNAMIC_ARRAY,pt.ControlType.OBJECT],id={maxControlsPerGroup:1,notifyValidations:!0},Ja={required:{fn:()=>t=>{var o;if(t.controlType===pt.ControlType.LOCATION){const{value:l}=t.value;return Ne.values(Ne.omit(l,"catastro")).every(u=>!Ne.isNil(u)&&u!=="")&&(l!=null&&l.catastro?ld(l==null?void 0:l.catastro):!0)}return t.controlType===pt.ControlType.DYNAMIC_ARRAY||t.multiple?(((o=t.value)==null?void 0:o.length)||0)>0:!Ne.isNil(t.value)&&t.value!==""},message:"Este campo es requerido"},min:{fn:t=>o=>eu(o,">=",t),message:"El valor es menor al mínimo permitido"},max:{fn:t=>o=>eu(o,"<=",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 eu(t,o,l){const u={">":(s,c)=>s>c,"<":(s,c)=>s<c,">=":(s,c)=>s>=c,"<=":(s,c)=>s<=c}[o];if(t.controlType===pt.ControlType.NUMBER){const s=Number(t.value);return u(s,l)}if(t.controlType===pt.ControlType.TEXT){const s=(t.value||"").length;return u(s,l)}if([pt.ControlType.CARDS_SELECT,pt.ControlType.SELECT].includes(t.controlType)&&t.multiple){const s=(t.value||[]).length;return u(s,l)}return!1}function ld(t){return/^[A-Za-z0-9]{20}$/.test(t)}function od(t){const o=[];t.controls.forEach((u,s)=>{const c=ad(u);o.push(...c);const h=!c.length;t.controls[s].valid=h});const l=!o.length;return t.valid=l,o}function ad(t){const o=[];return t.validators&&t.validators.forEach(l=>{const{validator:u,param:s}=l,c=Ja[u]||null;c&&(c.fn(Number(s))(t)||o.push(c.message))}),o}function ud(t,o,l){return o.controlType==="dynamic_array"?sd(t,o,l):o.controlType==="object"?tu(t,o,l):[]}function sd(t,o,l){var c,h;const u=[],s=((c=o.itemsLength)==null?void 0:c.value)||0;for(let g=0;g<s;g++){const w=tu({...t,title:`${t.title} ${g+1}`},{...o,value:(h=o.value)==null?void 0:h[g]},l);w.forEach(k=>{k.controls.forEach(v=>{v.code=`${g}.${v.code}`})}),u.push(...w)}return u}function tu(t,o,l){const u=o.structure;return Ne.chunk(u,l).map(c=>({...t,controls:nu(c).map(h=>{var g;return{...h,id:o.id,value:((g=o.value)==null?void 0:g[h.code])||h.value}})}))}function cd(t){return Ne.chain(t).groupBy("group").toPairs().orderBy(([l,u])=>l).map(([l,u])=>{var h;const s=((h=u.find(g=>{var w;return!!((w=g.title)!=null&&w.trim())}))==null?void 0:h.title)||"",c=u[0].group;return{title:s,controls:u,order:c,visible:!0,valid:u.every(g=>g.valid),id:""}}).value()}function fd(t){return t.map(o=>({...o,valid:!1,controls:nu(o.controls)}))}function nu(t){return t.map(o=>{var l,u,s;return{...o,valid:!((l=o.validators)!=null&&l.length),visible:!((u=o.conditions)!=null&&u.length),value:dd(o),itemsLength:o.controlType==="dynamic_array"?{...o.itemsLength,value:((s=o.itemsLength)==null?void 0:s.default)||1}:null}})}function dd(t){if(!Ne.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""}}console.log("active pinia:",ka.getActivePinia());const ir=ka.defineStore("form",{state:()=>({formSteps:[],currentStep:1,onLastSubstep:!1,collections:{}}),actions:{setFormSteps(t){this.formSteps=fd(t)},nextStep(){this.currentStep!==this.formSteps.length&&this.currentStep++},previousStep(){this.currentStep!==1&&this.currentStep--},setControlValue(t,o){const{id:l,value:u,code:s}=o,c=this.formSteps[t].controls.find(h=>h.id===l);c&&(Rl.includes(c.controlType)?Ne.set(c.value,s,u):c.value=u)},setControlVisibility(t,o,l){const u=this.formSteps[t].controls.find(s=>s.id===o);u&&(u.visible=l)},setControlItemsLength(t,o,l){const u=this.formSteps[t].controls.find(s=>s.id===o);!u||u.controlType!=="dynamic_array"||(u.itemsLength.value=l)},setOnLastSubstep(t){this.onLastSubstep=t},resetSteps(){this.currentStep=1},setCollection(t,o){this.collections[t]=o}},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 o=>t.collections[o]||null}}});class ru{toRaw(o){return o.flatMap(s=>s.controls).filter(s=>s.visible).map(s=>({ID_CUESTIONARIO_PREGUNTA:s.id,RESPUESTA:this.formatValue(s)}))}fromRaw(o){return Ne.orderBy(o,"ORDEN").filter(u=>u.PREGUNTAS.length&&u.ESTADO===1).map(u=>{const s=u.NOMBRE,c=u.ORDEN,h=u.DESCRIPCION,g=u.CLAVE,w=u.ID_CUESTIONARIO,k=u.PREGUNTAS.filter(v=>v.ESTADO===1).map(v=>this.parseControl(v));return{title:s,order:c,text:h,controls:k,name:g,id:w}})}parseControl(o){return{controlType:o.TIPO,label:o.NOMBRE,name:o.CLAVE,options:o.RESPUESTAS,multiple:o.MULTIPLE||!1,validators:o.VALIDACIONES,conditions:o.CONDITIONS,itemsLength:o.LENGTH,id:o.ID_CUESTIONARIO_PREGUNTA,row:o.FILA,col:o.COLUMNA,prefix:o.PREFIJO,suffix:o.SUFIJO,structure:o.STRUCTURE,group:o.GRUPO,title:o.TITULO_GRUPO,customParams:o.PARAMS}}formatValue(o){const{controlType:l,value:u,structure:s}=o,c=(h,g)=>g.controlType==="input_number"&&h!==null&&h!==void 0&&h!==""&&typeof h=="string";return c(u,o)?parseFloat(u.replaceAll(".","")):(l==="object"&&s.forEach(h=>{const g=u[h.code];c(g,h)&&(u[h.code]=parseFloat(g==null?void 0:g.replaceAll(".","")))}),u)}}function gi(t,o,l,u){return Object.defineProperty(t,o,{get:l,set:u,enumerable:!0}),t}const pn=r.ref(!1);let Il;function hd(t,o){const l=/(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:l[5]||l[3]||l[1]||"",version:l[4]||l[2]||"0",platform:o[0]||""}}function md(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 iu="ontouchstart"in window||window.navigator.maxTouchPoints>0;function gd(t){const o=t.toLowerCase(),l=md(o),u=hd(o,l),s={};u.browser&&(s[u.browser]=!0,s.version=u.version,s.versionNumber=parseInt(u.version,10)),u.platform&&(s[u.platform]=!0);const c=s.android||s.ios||s.bb||s.blackberry||s.ipad||s.iphone||s.ipod||s.kindle||s.playbook||s.silk||s["windows phone"];if(c===!0||o.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&&c!==!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,o.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"),pn.value===!0&&(Il={is:{...s}}),iu===!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 h=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(s,{mobile:!0,ios:!0,platform:h,[h]:!0})}s.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete s.desktop,s.mobile=!0)}return s}const lu=navigator.userAgent||navigator.vendor||window.opera,pd={has:{touch:!1,webStorage:!1},within:{iframe:!1}},vt={userAgent:lu,is:gd(lu),has:{touch:iu},within:{iframe:window.self!==window.top}},Ml={install(t){const{$q:o}=t;pn.value===!0?(t.onSSRHydrated.push(()=>{Object.assign(o.platform,vt),pn.value=!1}),o.platform=r.reactive(this)):o.platform=this}};{let t;gi(vt.has,"webStorage",()=>{if(t!==void 0)return t;try{if(window.localStorage)return t=!0,!0}catch{}return t=!1,!1}),Object.assign(Ml,vt),pn.value===!0&&(Object.assign(Ml,Il,pd),Il=null)}function Ze(t){return r.markRaw(r.defineComponent(t))}function ou(t){return r.markRaw(t)}function en(t,o){if(t===o)return!0;if(t!==null&&o!==null&&typeof t=="object"&&typeof o=="object"){if(t.constructor!==o.constructor)return!1;let l,u;if(t.constructor===Array){if(l=t.length,l!==o.length)return!1;for(u=l;u--!==0;)if(en(t[u],o[u])!==!0)return!1;return!0}if(t.constructor===Map){if(t.size!==o.size)return!1;let c=t.entries();for(u=c.next();u.done!==!0;){if(o.has(u.value[0])!==!0)return!1;u=c.next()}for(c=t.entries(),u=c.next();u.done!==!0;){if(en(u.value[1],o.get(u.value[0]))!==!0)return!1;u=c.next()}return!0}if(t.constructor===Set){if(t.size!==o.size)return!1;const c=t.entries();for(u=c.next();u.done!==!0;){if(o.has(u.value[0])!==!0)return!1;u=c.next()}return!0}if(t.buffer!=null&&t.buffer.constructor===ArrayBuffer){if(l=t.length,l!==o.length)return!1;for(u=l;u--!==0;)if(t[u]!==o[u])return!1;return!0}if(t.constructor===RegExp)return t.source===o.source&&t.flags===o.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===o.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===o.toString();const s=Object.keys(t).filter(c=>t[c]!==void 0);if(l=s.length,l!==Object.keys(o).filter(c=>o[c]!==void 0).length)return!1;for(u=l;u--!==0;){const c=s[u];if(en(t[c],o[c])!==!0)return!1}return!0}return t!==t&&o!==o}const au={threshold:0,root:null,rootMargin:"0px"};function uu(t,o,l){let u,s,c;typeof l=="function"?(u=l,s=au,c=o.cfg===void 0):(u=l.handler,s=Object.assign({},au,l.cfg),c=o.cfg===void 0||en(o.cfg,s)===!1),o.handler!==u&&(o.handler=u),c===!0&&(o.cfg=s,o.observer!==void 0&&o.observer.unobserve(t),o.observer=new IntersectionObserver(([h])=>{if(typeof o.handler=="function"){if(h.rootBounds===null&&document.body.contains(t)===!0){o.observer.unobserve(t),o.observer.observe(t);return}(o.handler(h,o.observer)===!1||o.once===!0&&h.isIntersecting===!0)&&su(t)}},s),o.observer.observe(t))}function su(t){const o=t.__qvisible;o!==void 0&&(o.observer!==void 0&&o.observer.unobserve(t),delete t.__qvisible)}const vd=ou({name:"intersection",mounted(t,{modifiers:o,value:l}){const u={once:o.once===!0};uu(t,u,l),t.__qvisible=u},updated(t,o){const l=t.__qvisible;l!==void 0&&uu(t,l,o.value)},beforeUnmount:su});function _t(t,o){return t!==void 0&&t()||o}function _d(t,o){if(t!==void 0){const l=t();if(l!=null)return l.slice()}return o}function In(t,o){return t!==void 0?o.concat(t()):o}function bd(t,o){return t===void 0?o:o!==void 0?o.concat(t()):t()}function cu(t,o,l,u,s,c){o.key=u+s;const h=r.h(t,o,l);return s===!0?r.withDirectives(h,c()):h}const yd=Ze({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:o,emit:l}){const u=r.ref(pn.value===!0?t.ssrPrerender:!1),s=r.computed(()=>t.root!==void 0||t.margin!==void 0||t.threshold!==void 0?{handler:w,cfg:{root:t.root,rootMargin:t.margin,threshold:t.threshold}}:w),c=r.computed(()=>t.disable!==!0&&(pn.value!==!0||t.once!==!0||t.ssrPrerender!==!0)),h=r.computed(()=>[[vd,s.value,void 0,{once:t.once}]]),g=r.computed(()=>`--q-transition-duration: ${t.transitionDuration}ms`);function w(v){u.value!==v.isIntersecting&&(u.value=v.isIntersecting,t.onVisibility!==void 0&&l("visibility",u.value))}function k(){if(u.value===!0)return[r.h("div",{key:"content",style:g.value},_t(o.default))];if(o.hidden!==void 0)return[r.h("div",{key:"hidden",style:g.value},o.hidden())]}return()=>{const v=t.transition?[r.h(r.Transition,{name:"q-transition--"+t.transition},k)]:k();return cu(t.tag,{class:"q-intersection"},v,"main",c.value,()=>h.value)}}}),Ll={xs:18,sm:24,md:32,lg:38,xl:46},pi={size:String};function vi(t,o=Ll){return r.computed(()=>t.size!==void 0?{fontSize:t.size in o?`${o[t.size]}px`:t.size}:null)}const wd={size:{type:[String,Number],default:"1em"},color:String};function Sd(t){return{cSize:r.computed(()=>t.size in Ll?`${Ll[t.size]}px`:t.size),classes:r.computed(()=>"q-spinner"+(t.color?` text-${t.color}`:""))}}const ql=Ze({name:"QSpinner",props:{...wd,thickness:{type:Number,default:5}},setup(t){const{cSize:o,classes:l}=Sd(t);return()=>r.h("svg",{class:l.value+" q-spinner-mat",width:o.value,height:o.value,viewBox:"25 25 50 50"},[r.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":t.thickness,"stroke-miterlimit":"10"})])}}),xd={ratio:[String,Number]};function Cd(t,o){return r.computed(()=>{const l=Number(t.ratio||(o!==void 0?o.value:void 0));return isNaN(l)!==!0&&l>0?{paddingBottom:`${100/l}%`}:null})}function Vl(t){if(Object(t.$parent)===t.$parent)return t.$parent;let{parent:o}=t.$;for(;Object(o)===o;){if(Object(o.proxy)===o.proxy)return o.proxy;o=o.parent}}function fu(t){return t.appContext.config.globalProperties.$router!==void 0}function Ir(t){return t.isUnmounted===!0||t.isDeactivated===!0}function _i(){let t=null;const o=r.getCurrentInstance();function l(){t!==null&&(clearTimeout(t),t=null)}return r.onDeactivated(l),r.onBeforeUnmount(l),{removeTimeout:l,registerTimeout(u,s){l(),Ir(o)===!1&&(t=setTimeout(()=>{t=null,u()},s))}}}const kd=Ze({name:"QImg",props:{...xd,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:o,emit:l}){const u=r.ref(t.initialRatio),s=Cd(t,u),c=r.getCurrentInstance(),{registerTimeout:h,removeTimeout:g}=_i(),{registerTimeout:w,removeTimeout:k}=_i(),v=r.computed(()=>t.placeholderSrc!==void 0?{src:t.placeholderSrc}:null),C=r.computed(()=>t.errorSrc!==void 0?{src:t.errorSrc,__qerror:!0}:null),E=[r.ref(null),r.ref(v.value)],y=r.ref(0),T=r.ref(!1),z=r.ref(!1),R=r.computed(()=>`q-img q-img--${t.noNativeMenu===!0?"no-":""}menu`),H=r.computed(()=>({width:t.width,height:t.height})),F=r.computed(()=>`q-img__image ${t.imgClass!==void 0?t.imgClass+" ":""}q-img__image--with${t.noTransition===!0?"out":""}-transition q-img__image--`),N=r.computed(()=>({...t.imgStyle,objectFit:t.fit,objectPosition:t.position}));function Q(){if(k(),t.loadingShowDelay===0){T.value=!0;return}w(()=>{T.value=!0},t.loadingShowDelay)}function G(){k(),T.value=!1}function j({target:A}){Ir(c)===!1&&(g(),u.value=A.naturalHeight===0?.5:A.naturalWidth/A.naturalHeight,K(A,1))}function K(A,te){te===1e3||Ir(c)===!0||(A.complete===!0?le(A):h(()=>{K(A,te+1)},50))}function le(A){Ir(c)!==!0&&(y.value=y.value^1,E[y.value].value=null,G(),A.getAttribute("__qerror")!=="true"&&(z.value=!1),l("load",A.currentSrc||A.src))}function V(A){g(),G(),z.value=!0,E[y.value].value=C.value,E[y.value^1].value=v.value,l("error",A)}function $(A){const te=E[A].value,P={key:"img_"+A,class:F.value,style:N.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,...te};return y.value===A?Object.assign(P,{class:P.class+"current",onLoad:j,onError:V}):P.class+="loaded",r.h("div",{class:"q-img__container absolute-full",key:"img"+A},r.h("img",P))}function Z(){return T.value===!1?r.h("div",{key:"content",class:"q-img__content absolute-full q-anchor--skip"},_t(o[z.value===!0?"error":"default"])):r.h("div",{key:"loading",class:"q-img__loading absolute-full flex flex-center"},o.loading!==void 0?o.loading():t.noSpinner===!0?void 0:[r.h(ql,{color:t.spinnerColor,size:t.spinnerSize})])}{let A=function(){r.watch(()=>t.src||t.srcset||t.sizes?{src:t.src,srcset:t.srcset,sizes:t.sizes}:null,te=>{g(),z.value=!1,te===null?(G(),E[y.value^1].value=v.value):Q(),E[y.value].value=te},{immediate:!0})};pn.value===!0?r.onMounted(A):A()}return()=>{const A=[];return s.value!==null&&A.push(r.h("div",{key:"filler",style:s.value})),E[0].value!==null&&A.push($(0)),E[1].value!==null&&A.push($(1)),A.push(r.h(r.Transition,{name:"q-transition--fade"},Z)),r.h("div",{key:"main",class:R.value,style:H.value,role:"img","aria-label":t.alt},A)}}}),du="0 0 24 24",hu=t=>t,Pl=t=>`ionicons ${t}`,mu={"mdi-":t=>`mdi ${t}`,"icon-":hu,"bt-":t=>`bt ${t}`,"eva-":t=>`eva ${t}`,"ion-md":Pl,"ion-ios":Pl,"ion-logo":Pl,"iconfont ":hu,"ti-":t=>`themify-icon ${t}`,"bi-":t=>`bootstrap-icons ${t}`},gu={o_:"-outlined",r_:"-round",s_:"-sharp"},pu={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},Ed=new RegExp("^("+Object.keys(mu).join("|")+")"),Ad=new RegExp("^("+Object.keys(gu).join("|")+")"),vu=new RegExp("^("+Object.keys(pu).join("|")+")"),Od=/^[Mm]\s?[-+]?\.?\d/,Td=/^img:/,Bd=/^svguse:/,Rd=/^ion-/,Id=/^(fa-(sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,bt=Ze({name:"QIcon",props:{...pi,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(t,{slots:o}){const{proxy:{$q:l}}=r.getCurrentInstance(),u=vi(t),s=r.computed(()=>"q-icon"+(t.left===!0?" on-left":"")+(t.right===!0?" on-right":"")+(t.color!==void 0?` text-${t.color}`:"")),c=r.computed(()=>{let h,g=t.name;if(g==="none"||!g)return{none:!0};if(l.iconMapFn!==null){const v=l.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(Od.test(g)===!0){const[v,C=du]=g.split("|");return{svg:!0,viewBox:C,nodes:v.split("&&").map(E=>{const[y,T,z]=E.split("@@");return r.h("path",{style:T,d:y,transform:z})})}}if(Td.test(g)===!0)return{img:!0,src:g.substring(4)};if(Bd.test(g)===!0){const[v,C=du]=g.split("|");return{svguse:!0,src:v.substring(7),viewBox:C}}let w=" ";const k=g.match(Ed);if(k!==null)h=mu[k[1]](g);else if(Id.test(g)===!0)h=g;else if(Rd.test(g)===!0)h=`ionicons ion-${l.platform.is.ios===!0?"ios":"md"}${g.substring(3)}`;else if(vu.test(g)===!0){h="notranslate material-symbols";const v=g.match(vu);v!==null&&(g=g.substring(6),h+=pu[v[1]]),w=g}else{h="notranslate material-icons";const v=g.match(Ad);v!==null&&(g=g.substring(2),h+=gu[v[1]]),w=g}return{cls:h,content:w}});return()=>{const h={class:s.value,style:u.value,"aria-hidden":"true",role:"presentation"};return c.value.none===!0?r.h(t.tag,h,_t(o.default)):c.value.img===!0?r.h(t.tag,h,In(o.default,[r.h("img",{src:c.value.src})])):c.value.svg===!0?r.h(t.tag,h,In(o.default,[r.h("svg",{viewBox:c.value.viewBox||"0 0 24 24"},c.value.nodes)])):c.value.svguse===!0?r.h(t.tag,h,In(o.default,[r.h("svg",{viewBox:c.value.viewBox},[r.h("use",{"xlink:href":c.value.src})])])):(c.value.cls!==void 0&&(h.class+=" "+c.value.cls),r.h(t.tag,h,In(o.default,[c.value.content])))}}}),Md={class:"card-select-container"},Ld=["onClick"],qd={class:"check"},Vd={class:"row justify-center items-center",style:{height:"100%"}},Pd=["onClick"],Nd=r.defineComponent({__name:"CardsSelectControl",props:r.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=r.useModel(t,"modelValue"),l=t,{control:u}=r.toRefs(l);function s(g){if(u.value.multiple){let w=Ne.cloneDeep(o.value);g.exclusive?w=[g.value]:(w=w.filter(k=>{var v,C;return!((C=(v=u.value.options)==null?void 0:v.find(E=>E.value===k))!=null&&C.exclusive)}),w.includes(g.value)?w=w.filter(k=>k!==g.value):w.push(g.value)),o.value=w}else o.value=g.value}function c(g){return h(g)?"active":""}function h(g){let w;return u.value.multiple?w=(o.value||[]).includes(String(g.value)):w=o.value===g.value,w}return(g,w)=>{const k=r.resolveComponent("ControlLabel");return r.openBlock(),r.createElementBlock(r.Fragment,null,[r.unref(u).label?(r.openBlock(),r.createBlock(k,{key:0,label:r.unref(u).label},null,8,["label"])):r.createCommentVNode("",!0),r.createElementVNode("div",Md,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(u).options,(v,C)=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:C},[v.image?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(`image-card ${c(v)}`),onClick:()=>s(v)},[r.createVNode(kd,{src:v.image,height:"200px",width:"200px",fit:"fill",class:"image"},null,8,["src"]),r.createElementVNode("div",qd,[r.createElementVNode("div",Vd,[h(v)?(r.openBlock(),r.createBlock(bt,{key:0,name:"check",size:"25px"})):r.createCommentVNode("",!0)])])],10,Ld)):(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass(`card-option ${c(v)}`),onClick:()=>s(v)},[r.createElementVNode("span",null,r.toDisplayString(v.label),1)],10,Pd))],64))),128))])],64)}}}),st=(t,o)=>{const l=t.__vccOpts||t;for(const[u,s]of o)l[u]=s;return l},Dd=st(Nd,[["__scopeId","data-v-148468d6"]]),lr={dark:{type:Boolean,default:null}};function or(t,o){return r.computed(()=>t.dark===null?o.dark.isActive:t.dark)}function $d(t,o){const l=r.ref(null),u=r.computed(()=>t.disable===!0?null:r.h("span",{ref:l,class:"no-outline",tabindex:-1}));function s(c){const h=o.value;c!==void 0&&c.type.indexOf("key")===0?h!==null&&document.activeElement!==h&&h.contains(document.activeElement)===!0&&h.focus():l.value!==null&&(c===void 0||h!==null&&h.contains(c.target)===!0)&&l.value.focus()}return{refocusTargetEl:u,refocusTarget:s}}const Nl={name:String};function Fd(t={}){return(o,l,u)=>{o[l](r.h("input",{class:"hidden"+(u||""),...t.value}))}}function _u(t){return r.computed(()=>t.name||t.for)}const Ud={xs:30,sm:35,md:40,lg:50,xl:60},ct={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const t=Object.defineProperty({},"passive",{get(){Object.assign(ct,{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 zd(){}function bu(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 Hd(t){if(t.path)return t.path;if(t.composedPath)return t.composedPath();const o=[];let l=t.target;for(;l;){if(o.push(l),l.tagName==="HTML")return o.push(document),o.push(window),o;l=l.parentElement}}function Yt(t){t.stopPropagation()}function Dt(t){t.cancelable!==!1&&t.preventDefault()}function Ke(t){t.cancelable!==!1&&t.preventDefault(),t.stopPropagation()}function Dl(t,o,l){const u=`__q_${o}_evt`;t[u]=t[u]!==void 0?t[u].concat(l):l,l.forEach(s=>{s[0].addEventListener(s[1],t[s[2]],ct[s[3]])})}function yu(t,o){const l=`__q_${o}_evt`;t[l]!==void 0&&(t[l].forEach(u=>{u[0].removeEventListener(u[1],t[u[2]],ct[u[3]])}),t[l]=void 0)}const wu={...lr,...pi,...Nl,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]},Su=["update:modelValue"];function xu(t,o){const{props:l,slots:u,emit:s,proxy:c}=r.getCurrentInstance(),{$q:h}=c,g=or(l,h),w=r.ref(null),{refocusTargetEl:k,refocusTarget:v}=$d(l,w),C=vi(l,Ud),E=r.computed(()=>l.val!==void 0&&Array.isArray(l.modelValue)),y=r.computed(()=>{const A=r.toRaw(l.val);return E.value===!0?l.modelValue.findIndex(te=>r.toRaw(te)===A):-1}),T=r.computed(()=>E.value===!0?y.value!==-1:r.toRaw(l.modelValue)===r.toRaw(l.trueValue)),z=r.computed(()=>E.value===!0?y.value===-1:r.toRaw(l.modelValue)===r.toRaw(l.falseValue)),R=r.computed(()=>T.value===!1&&z.value===!1),H=r.computed(()=>l.disable===!0?-1:l.tabindex||0),F=r.computed(()=>`q-${t} cursor-pointer no-outline row inline no-wrap items-center`+(l.disable===!0?" disabled":"")+(g.value===!0?` q-${t}--dark`:"")+(l.dense===!0?` q-${t}--dense`:"")+(l.leftLabel===!0?" reverse":"")),N=r.computed(()=>{const A=T.value===!0?"truthy":z.value===!0?"falsy":"indet",te=l.color!==void 0&&(l.keepColor===!0||(t==="toggle"?T.value===!0:z.value!==!0))?` text-${l.color}`:"";return`q-${t}__inner relative-position non-selectable q-${t}__inner--${A}${te}`}),Q=r.computed(()=>{const A={type:"checkbox"};return l.name!==void 0&&Object.assign(A,{".checked":T.value,"^checked":T.value===!0?"checked":void 0,name:l.name,value:E.value===!0?l.val:l.trueValue}),A}),G=Fd(Q),j=r.computed(()=>{const A={tabindex:H.value,role:t==="toggle"?"switch":"checkbox","aria-label":l.label,"aria-checked":R.value===!0?"mixed":T.value===!0?"true":"false"};return l.disable===!0&&(A["aria-disabled"]="true"),A});function K(A){A!==void 0&&(Ke(A),v(A)),l.disable!==!0&&s("update:modelValue",le(),A)}function le(){if(E.value===!0){if(T.value===!0){const A=l.modelValue.slice();return A.splice(y.value,1),A}return l.modelValue.concat([l.val])}if(T.value===!0){if(l.toggleOrder!=="ft"||l.toggleIndeterminate===!1)return l.falseValue}else if(z.value===!0){if(l.toggleOrder==="ft"||l.toggleIndeterminate===!1)return l.trueValue}else return l.toggleOrder!=="ft"?l.trueValue:l.falseValue;return l.indeterminateValue}function V(A){(A.keyCode===13||A.keyCode===32)&&Ke(A)}function $(A){(A.keyCode===13||A.keyCode===32)&&K(A)}const Z=o(T,R);return Object.assign(c,{toggle:K}),()=>{const A=Z();l.disable!==!0&&G(A,"unshift",` q-${t}__native absolute q-ma-none q-pa-none`);const te=[r.h("div",{class:N.value,style:C.value,"aria-hidden":"true"},A)];k.value!==null&&te.push(k.value);const P=l.label!==void 0?In(u.default,[l.label]):_t(u.default);return P!==void 0&&te.push(r.h("div",{class:`q-${t}__label q-anchor--skip`},P)),r.h("div",{ref:w,class:F.value,...j.value,onClick:K,onKeydown:V,onKeyup:$},te)}}const Wd=r.h("div",{key:"svg",class:"q-checkbox__bg absolute"},[r.h("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[r.h("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),r.h("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),Cu=Ze({name:"QCheckbox",props:wu,emits:Su,setup(t){function o(l,u){const s=r.computed(()=>(l.value===!0?t.checkedIcon:u.value===!0?t.indeterminateIcon:t.uncheckedIcon)||null);return()=>s.value!==null?[r.h("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[r.h(bt,{class:"q-checkbox__icon",name:s.value})])]:[Wd]}return xu("checkbox",o)}}),ku=r.defineComponent({__name:"SimpleCheckbox",props:r.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=r.useModel(t,"modelValue");return(l,u)=>(r.openBlock(),r.createBlock(Cu,{outlined:"",label:l.control.label,color:"green-10","model-value":!!o.value,"onUpdate:modelValue":u[0]||(u[0]=s=>o.value=!o.value),style:{height:"66.2px"}},null,8,["label","model-value"]))}}),Gd=Ze({name:"QToggle",props:{...wu,icon:String,iconColor:String},emits:Su,setup(t){function o(l,u){const s=r.computed(()=>(l.value===!0?t.checkedIcon:u.value===!0?t.indeterminateIcon:t.uncheckedIcon)||t.icon),c=r.computed(()=>l.value===!0?t.iconColor:null);return()=>[r.h("div",{class:"q-toggle__track"}),r.h("div",{class:"q-toggle__thumb absolute flex flex-center no-wrap"},s.value!==void 0?[r.h(bt,{name:s.value,color:c.value})]:void 0)]}return xu("toggle",o)}}),Kd=r.defineComponent({__name:"SimpleSwitch",props:r.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=r.useModel(t,"modelValue");return(l,u)=>(r.openBlock(),r.createBlock(Gd,{falseValue:0,trueValue:1,outlined:"",label:l.control.label,modelValue:o.value,"onUpdate:modelValue":u[0]||(u[0]=s=>o.value=s),leftLabel:"",color:"green-10",style:{height:"66.2px"}},null,8,["label","modelValue"]))}});let $l,bi=0;const Je=new Array(256);for(let t=0;t<256;t++)Je[t]=(t+256).toString(16).substring(1);const jd=(()=>{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 o=>{const l=new Uint8Array(o);return t.getRandomValues(l),l}}return o=>{const l=[];for(let u=o;u>0;u--)l.push(Math.floor(Math.random()*256));return l}})(),Eu=4096;function Fl(){($l===void 0||bi+16>Eu)&&(bi=0,$l=jd(Eu));const t=Array.prototype.slice.call($l,bi,bi+=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 Yd(t){return t??null}function Au(t,o){return t??(o===!0?`f_${Fl()}`:null)}function Qd({getValue:t,required:o=!0}={}){if(pn.value===!0){const l=t!==void 0?r.ref(Yd(t())):r.ref(null);return o===!0&&l.value===null&&r.onMounted(()=>{l.value=`f_${Fl()}`}),t!==void 0&&r.watch(t,u=>{l.value=Au(u,o)}),l}return t!==void 0?r.computed(()=>Au(t(),o)):r.ref(`f_${Fl()}`)}const Ou=/^on[A-Z]/;function Zd(){const{attrs:t,vnode:o}=r.getCurrentInstance(),l={listeners:r.ref({}),attributes:r.ref({})};function u(){const s={},c={};for(const h in t)h!=="class"&&h!=="style"&&Ou.test(h)===!1&&(s[h]=t[h]);for(const h in o.props)Ou.test(h)===!0&&(c[h]=o.props[h]);l.attributes.value=s,l.listeners.value=c}return r.onBeforeUpdate(u),u(),l}const Xd="_q_",Jd="_q_fo_";function eh({validate:t,resetValidation:o,requiresQForm:l}){const u=r.inject(Jd,!1);if(u!==!1){const{props:s,proxy:c}=r.getCurrentInstance();Object.assign(c,{validate:t,resetValidation:o}),r.watch(()=>s.disable,h=>{h===!0?(typeof o=="function"&&o(),u.unbindComponent(c)):u.bindComponent(c)}),r.onMounted(()=>{s.disable!==!0&&u.bindComponent(c)}),r.onBeforeUnmount(()=>{s.disable!==!0&&u.unbindComponent(c)})}else l===!0&&console.error("Parent QForm not found on useFormChild()!")}const Tu=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,Bu=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,Ru=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,yi=/^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])\)$/,wi=/^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)\)$/,Ul={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=>Tu.test(t),hexaColor:t=>Bu.test(t),hexOrHexaColor:t=>Ru.test(t),rgbColor:t=>yi.test(t),rgbaColor:t=>wi.test(t),rgbOrRgbaColor:t=>yi.test(t)||wi.test(t),hexOrRgbColor:t=>Tu.test(t)||yi.test(t),hexaOrRgbaColor:t=>Bu.test(t)||wi.test(t),anyColor:t=>Ru.test(t)||yi.test(t)||wi.test(t)};function Iu(t,o=250,l){let u=null;function s(){const c=arguments,h=()=>{u=null,t.apply(this,c)};u!==null&&clearTimeout(u),u=setTimeout(h,o)}return s.cancel=()=>{u!==null&&clearTimeout(u)},s}const th=[!0,!1,"ondemand"],nh={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:t=>th.includes(t)}};function rh(t,o){const{props:l,proxy:u}=r.getCurrentInstance(),s=r.ref(!1),c=r.ref(null),h=r.ref(!1);eh({validate:z,resetValidation:T});let g=0,w;const k=r.computed(()=>l.rules!==void 0&&l.rules!==null&&l.rules.length!==0),v=r.computed(()=>l.disable!==!0&&k.value===!0&&o.value===!1),C=r.computed(()=>l.error===!0||s.value===!0),E=r.computed(()=>typeof l.errorMessage=="string"&&l.errorMessage.length!==0?l.errorMessage:c.value);r.watch(()=>l.modelValue,()=>{h.value=!0,v.value===!0&&l.lazyRules===!1&&R()});function y(){l.lazyRules!=="ondemand"&&v.value===!0&&h.value===!0&&R()}r.watch(()=>l.reactiveRules,H=>{H===!0?w===void 0&&(w=r.watch(()=>l.rules,y,{immediate:!0,deep:!0})):w!==void 0&&(w(),w=void 0)},{immediate:!0}),r.watch(()=>l.lazyRules,y),r.watch(t,H=>{H===!0?h.value=!0:v.value===!0&&l.lazyRules!=="ondemand"&&R()});function T(){g++,o.value=!1,h.value=!1,s.value=!1,c.value=null,R.cancel()}function z(H=l.modelValue){if(l.disable===!0||k.value===!1)return!0;const F=++g,N=o.value!==!0?()=>{h.value=!0}:()=>{},Q=(j,K)=>{j===!0&&N(),s.value=j,c.value=K||null,o.value=!1},G=[];for(let j=0;j<l.rules.length;j++){const K=l.rules[j];let le;if(typeof K=="function"?le=K(H,Ul):typeof K=="string"&&Ul[K]!==void 0&&(le=Ul[K](H)),le===!1||typeof le=="string")return Q(!0,le),!1;le!==!0&&le!==void 0&&G.push(le)}return G.length===0?(Q(!1),!0):(o.value=!0,Promise.all(G).then(j=>{if(j===void 0||Array.isArray(j)===!1||j.length===0)return F===g&&Q(!1),!0;const K=j.find(le=>le===!1||typeof le=="string");return F===g&&Q(K!==void 0,K),K===void 0},j=>(F===g&&(console.error(j),Q(!0)),!1)))}const R=Iu(z,0);return r.onBeforeUnmount(()=>{w!==void 0&&w(),R.cancel()}),Object.assign(u,{resetValidation:T,validate:z}),gi(u,"hasError",()=>C.value),{isDirtyModel:h,hasRules:k,hasError:C,errorMessage:E,validate:z,resetValidation:T}}let Mn=[],Mr=[];function Mu(t){Mr=Mr.filter(o=>o!==t)}function ih(t){Mu(t),Mr.push(t)}function Lu(t){Mu(t),Mr.length===0&&Mn.length!==0&&(Mn[Mn.length-1](),Mn=[])}function Si(t){Mr.length===0?t():Mn.push(t)}function lh(t){Mn=Mn.filter(o=>o!==t)}function Lr(t){return t!=null&&(""+t).length!==0}const xi={...{...lr,...nh,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]},zl=["update:modelValue","clear","focus","blur"];function Hl({requiredForAttr:t=!0,tagProp:o,changeEvent:l=!1}={}){const{props:u,proxy:s}=r.getCurrentInstance(),c=or(u,s.$q),h=Qd({required:t,getValue:()=>u.for});return{requiredForAttr:t,changeEvent:l,tag:o===!0?r.computed(()=>u.tag):{value:"label"},isDark:c,editable:r.computed(()=>u.disable!==!0&&u.readonly!==!0),innerLoading:r.ref(!1),focused:r.ref(!1),hasPopupOpen:!1,splitAttrs:Zd(),targetUid:h,rootRef:r.ref(null),targetRef:r.ref(null),controlRef:r.ref(null)}}function Wl(t){const{props:o,emit:l,slots:u,attrs:s,proxy:c}=r.getCurrentInstance(),{$q:h}=c;let g=null;t.hasValue===void 0&&(t.hasValue=r.computed(()=>Lr(o.modelValue))),t.emitValue===void 0&&(t.emitValue=W=>{l("update:modelValue",W)}),t.controlEvents===void 0&&(t.controlEvents={onFocusin:V,onFocusout:$}),Object.assign(t,{clearValue:Z,onControlFocusin:V,onControlFocusout:$,focus:K}),t.computedCounter===void 0&&(t.computedCounter=r.computed(()=>{if(o.counter!==!1){const W=typeof o.modelValue=="string"||typeof o.modelValue=="number"?(""+o.modelValue).length:Array.isArray(o.modelValue)===!0?o.modelValue.length:0,se=o.maxlength!==void 0?o.maxlength:o.maxValues;return W+(se!==void 0?" / "+se:"")}}));const{isDirtyModel:w,hasRules:k,hasError:v,errorMessage:C,resetValidation:E}=rh(t.focused,t.innerLoading),y=t.floatingLabel!==void 0?r.computed(()=>o.stackLabel===!0||t.focused.value===!0||t.floatingLabel.value===!0):r.computed(()=>o.stackLabel===!0||t.focused.value===!0||t.hasValue.value===!0),T=r.computed(()=>o.bottomSlots===!0||o.hint!==void 0||k.value===!0||o.counter===!0||o.error!==null),z=r.computed(()=>o.filled===!0?"filled":o.outlined===!0?"outlined":o.borderless===!0?"borderless":o.standout?"standout":"standard"),R=r.computed(()=>`q-field row no-wrap items-start q-field--${z.value}`+(t.fieldClass!==void 0?` ${t.fieldClass.value}`:"")+(o.rounded===!0?" q-field--rounded":"")+(o.square===!0?" q-field--square":"")+(y.value===!0?" q-field--float":"")+(F.value===!0?" q-field--labeled":"")+(o.dense===!0?" q-field--dense":"")+(o.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":"")+(o.hideBottomSpace!==!0&&T.value===!0?" q-field--with-bottom":"")+(o.disable===!0?" q-field--disabled":o.readonly===!0?" q-field--readonly":"")),H=r.computed(()=>"q-field__control relative-position row no-wrap"+(o.bgColor!==void 0?` bg-${o.bgColor}`:"")+(v.value===!0?" text-negative":typeof o.standout=="string"&&o.standout.length!==0&&t.focused.value===!0?` ${o.standout}`:o.color!==void 0?` text-${o.color}`:"")),F=r.computed(()=>o.labelSlot===!0||o.label!==void 0),N=r.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(o.labelColor!==void 0&&v.value!==!0?` text-${o.labelColor}`:"")),Q=r.computed(()=>({id:t.targetUid.value,editable:t.editable.value,focused:t.focused.value,floatingLabel:y.value,modelValue:o.modelValue,emitValue:t.emitValue})),G=r.computed(()=>{const W={};return t.targetUid.value&&(W.for=t.targetUid.value),o.disable===!0&&(W["aria-disabled"]="true"),W});function j(){const W=document.activeElement;let se=t.targetRef!==void 0&&t.targetRef.value;se&&(W===null||W.id!==t.targetUid.value)&&(se.hasAttribute("tabindex")===!0||(se=se.querySelector("[tabindex]")),se&&se!==W&&se.focus({preventScroll:!0}))}function K(){Si(j)}function le(){lh(j);const W=document.activeElement;W!==null&&t.rootRef.value.contains(W)&&W.blur()}function V(W){g!==null&&(clearTimeout(g),g=null),t.editable.value===!0&&t.focused.value===!1&&(t.focused.value=!0,l("focus",W))}function $(W,se){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,l("blur",W)),se!==void 0&&se())})}function Z(W){Ke(W),h.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(),o.type==="file"&&(t.inputRef.value.value=null),l("update:modelValue",null),t.changeEvent===!0&&l("change",null),l("clear",o.modelValue),r.nextTick(()=>{const se=w.value;E(),w.value=se})}function A(W){[13,32].includes(W.keyCode)&&Z(W)}function te(){const W=[];return u.prepend!==void 0&&W.push(r.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:Dt},u.prepend())),W.push(r.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},P())),v.value===!0&&o.noErrorIcon===!1&&W.push(ue("error",[r.h(bt,{name:h.iconSet.field.error,color:"negative"})])),o.loading===!0||t.innerLoading.value===!0?W.push(ue("inner-loading-append",u.loading!==void 0?u.loading():[r.h(ql,{color:o.color})])):o.clearable===!0&&t.hasValue.value===!0&&t.editable.value===!0&&W.push(ue("inner-clearable-append",[r.h(bt,{class:"q-field__focusable-action",name:o.clearIcon||h.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":h.lang.label.clear,onKeyup:A,onClick:Z})])),u.append!==void 0&&W.push(r.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:Dt},u.append())),t.getInnerAppend!==void 0&&W.push(ue("inner-append",t.getInnerAppend())),t.getControlChild!==void 0&&W.push(t.getControlChild()),W}function P(){const W=[];return o.prefix!==void 0&&o.prefix!==null&&W.push(r.h("div",{class:"q-field__prefix no-pointer-events row items-center"},o.prefix)),t.getShadowControl!==void 0&&t.hasShadow.value===!0&&W.push(t.getShadowControl()),t.getControl!==void 0?W.push(t.getControl()):u.rawControl!==void 0?W.push(u.rawControl()):u.control!==void 0&&W.push(r.h("div",{ref:t.targetRef,class:"q-field__native row",tabindex:-1,...t.splitAttrs.attributes.value,"data-autofocus":o.autofocus===!0||void 0},u.control(Q.value))),F.value===!0&&W.push(r.h("div",{class:N.value},_t(u.label,o.label))),o.suffix!==void 0&&o.suffix!==null&&W.push(r.h("div",{class:"q-field__suffix no-pointer-events row items-center"},o.suffix)),W.concat(_t(u.default))}function ae(){let W,se;v.value===!0?C.value!==null?(W=[r.h("div",{role:"alert"},C.value)],se=`q--slot-error-${C.value}`):(W=_t(u.error),se="q--slot-error"):(o.hideHint!==!0||t.focused.value===!0)&&(o.hint!==void 0?(W=[r.h("div",o.hint)],se=`q--slot-hint-${o.hint}`):(W=_t(u.hint),se="q--slot-hint"));const ge=o.counter===!0||u.counter!==void 0;if(o.hideBottomSpace===!0&&ge===!1&&W===void 0)return;const B=r.h("div",{key:se,class:"q-field__messages col"},W);return r.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(o.hideBottomSpace!==!0?"animated":"stale"),onClick:Dt},[o.hideBottomSpace===!0?B:r.h(r.Transition,{name:"q-transition--field-message"},()=>B),ge===!0?r.h("div",{class:"q-field__counter"},u.counter!==void 0?u.counter():t.computedCounter.value):null])}function ue(W,se){return se===null?null:r.h("div",{key:W,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},se)}let fe=!1;return r.onDeactivated(()=>{fe=!0}),r.onActivated(()=>{fe===!0&&o.autofocus===!0&&c.focus()}),o.autofocus===!0&&r.onMounted(()=>{c.focus()}),r.onBeforeUnmount(()=>{g!==null&&clearTimeout(g)}),Object.assign(c,{focus:K,blur:le}),function(){const se=t.getControl===void 0&&u.control===void 0?{...t.splitAttrs.attributes.value,"data-autofocus":o.autofocus===!0||void 0,...G.value}:G.value;return r.h(t.tag.value,{ref:t.rootRef,class:[R.value,s.class],style:s.style,...se},[u.before!==void 0?r.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:Dt},u.before()):null,r.h("div",{class:"q-field__inner relative-position col self-stretch"},[r.h("div",{ref:t.controlRef,class:H.value,tabindex:-1,...t.controlEvents},te()),T.value===!0?ae():null]),u.after!==void 0?r.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:Dt},u.after()):null])}}function Gl(t){return t!==Object(t)||t.isComposing===!0||t.qKeyEvent===!0}function Ln(t,o){return Gl(t)===!0?!1:[].concat(o).includes(t.keyCode)}const qu={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},Ci={"#":{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(Ci);Vu.forEach(t=>{Ci[t].regex=new RegExp(Ci[t].pattern)});const oh=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+Vu.join("")+"])|(.)","g"),Pu=/[.*+?^${}()|[\]\\]/g,We="",ah={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function uh(t,o,l,u){let s,c,h,g,w,k;const v=r.ref(null),C=r.ref(y());function E(){return t.autogrow===!0||["textarea","text","search","url","tel","password"].includes(t.type)}r.watch(()=>t.type+t.autogrow,z),r.watch(()=>t.mask,V=>{if(V!==void 0)R(C.value,!0);else{const $=K(C.value);z(),t.modelValue!==$&&o("update:modelValue",$)}}),r.watch(()=>t.fillMask+t.reverseFillMask,()=>{v.value===!0&&R(C.value,!0)}),r.watch(()=>t.unmaskedValue,()=>{v.value===!0&&R(C.value)});function y(){if(z(),v.value===!0){const V=G(K(t.modelValue));return t.fillMask!==!1?le(V):V}return t.modelValue}function T(V){if(V<s.length)return s.slice(-V);let $="",Z=s;const A=Z.indexOf(We);if(A!==-1){for(let te=V-Z.length;te>0;te--)$+=We;Z=Z.slice(0,A)+$+Z.slice(A)}return Z}function z(){if(v.value=t.mask!==void 0&&t.mask.length!==0&&E(),v.value===!1){g=void 0,s="",c="";return}const V=qu[t.mask]===void 0?t.mask:qu[t.mask],$=typeof t.fillMask=="string"&&t.fillMask.length!==0?t.fillMask.slice(0,1):"_",Z=$.replace(Pu,"\\$&"),A=[],te=[],P=[];let ae=t.reverseFillMask===!0,ue="",fe="";V.replace(oh,(B,O,ie,ve,_e)=>{if(ve!==void 0){const U=Ci[ve];P.push(U),fe=U.negate,ae===!0&&(te.push("(?:"+fe+"+)?("+U.pattern+"+)?(?:"+fe+"+)?("+U.pattern+"+)?"),ae=!1),te.push("(?:"+fe+"+)?("+U.pattern+")?")}else if(ie!==void 0)ue="\\"+(ie==="\\"?"":ie),P.push(ie),A.push("([^"+ue+"]+)?"+ue+"?");else{const U=O!==void 0?O:_e;ue=U==="\\"?"\\\\\\\\":U.replace(Pu,"\\\\$&"),P.push(U),A.push("([^"+ue+"]+)?"+ue+"?")}});const W=new RegExp("^"+A.join("")+"("+(ue===""?".":"[^"+ue+"]")+"+)?"+(ue===""?"":"["+ue+"]*")+"$"),se=te.length-1,ge=te.map((B,O)=>O===0&&t.reverseFillMask===!0?new RegExp("^"+Z+"*"+B):O===se?new RegExp("^"+B+"("+(fe===""?".":fe)+"+)?"+(t.reverseFillMask===!0?"$":Z+"*")):new RegExp("^"+B));h=P,g=B=>{const O=W.exec(t.reverseFillMask===!0?B:B.slice(0,P.length+1));O!==null&&(B=O.slice(1).join(""));const ie=[],ve=ge.length;for(let _e=0,U=B;_e<ve;_e++){const ne=ge[_e].exec(U);if(ne===null)break;U=U.slice(ne.shift().length),ie.push(...ne)}return ie.length!==0?ie.join(""):B},s=P.map(B=>typeof B=="string"?B:We).join(""),c=s.split(We).join($)}function R(V,$,Z){const A=u.value,te=A.selectionEnd,P=A.value.length-te,ae=K(V);$===!0&&z();const ue=G(ae),fe=t.fillMask!==!1?le(ue):ue,W=C.value!==fe;A.value!==fe&&(A.value=fe),W===!0&&(C.value=fe),document.activeElement===A&&r.nextTick(()=>{if(fe===c){const ge=t.reverseFillMask===!0?c.length:0;A.setSelectionRange(ge,ge,"forward");return}if(Z==="insertFromPaste"&&t.reverseFillMask!==!0){const ge=A.selectionEnd;let B=te-1;for(let O=w;O<=B&&O<ge;O++)s[O]!==We&&B++;F.right(A,B);return}if(["deleteContentBackward","deleteContentForward"].indexOf(Z)!==-1){const ge=t.reverseFillMask===!0?te===0?fe.length>ue.length?1:0:Math.max(0,fe.length-(fe===c?0:Math.min(ue.length,P)+1))+1:te;A.setSelectionRange(ge,ge,"forward");return}if(t.reverseFillMask===!0)if(W===!0){const ge=Math.max(0,fe.length-(fe===c?0:Math.min(ue.length,P+1)));ge===1&&te===1?A.setSelectionRange(ge,ge,"forward"):F.rightReverse(A,ge)}else{const ge=fe.length-P;A.setSelectionRange(ge,ge,"backward")}else if(W===!0){const ge=Math.max(0,s.indexOf(We),Math.min(ue.length,te)-1);F.right(A,ge)}else{const ge=te-1;F.right(A,ge)}});const se=t.unmaskedValue===!0?K(fe):fe;String(t.modelValue)!==se&&(t.modelValue!==null||se!=="")&&l(se,!0)}function H(V,$,Z){const A=G(K(V.value));$=Math.max(0,s.indexOf(We),Math.min(A.length,$)),w=$,V.setSelectionRange($,Z,"forward")}const F={left(V,$){const Z=s.slice($-1).indexOf(We)===-1;let A=Math.max(0,$-1);for(;A>=0;A--)if(s[A]===We){$=A,Z===!0&&$++;break}if(A<0&&s[$]!==void 0&&s[$]!==We)return F.right(V,0);$>=0&&V.setSelectionRange($,$,"backward")},right(V,$){const Z=V.value.length;let A=Math.min(Z,$+1);for(;A<=Z;A++)if(s[A]===We){$=A;break}else s[A-1]===We&&($=A);if(A>Z&&s[$-1]!==void 0&&s[$-1]!==We)return F.left(V,Z);V.setSelectionRange($,$,"forward")},leftReverse(V,$){const Z=T(V.value.length);let A=Math.max(0,$-1);for(;A>=0;A--)if(Z[A-1]===We){$=A;break}else if(Z[A]===We&&($=A,A===0))break;if(A<0&&Z[$]!==void 0&&Z[$]!==We)return F.rightReverse(V,0);$>=0&&V.setSelectionRange($,$,"backward")},rightReverse(V,$){const Z=V.value.length,A=T(Z),te=A.slice(0,$+1).indexOf(We)===-1;let P=Math.min(Z,$+1);for(;P<=Z;P++)if(A[P-1]===We){$=P,$>0&&te===!0&&$--;break}if(P>Z&&A[$-1]!==void 0&&A[$-1]!==We)return F.leftReverse(V,Z);V.setSelectionRange($,$,"forward")}};function N(V){o("click",V),k=void 0}function Q(V){if(o("keydown",V),Gl(V)===!0||V.altKey===!0)return;const $=u.value,Z=$.selectionStart,A=$.selectionEnd;if(V.shiftKey||(k=void 0),V.keyCode===37||V.keyCode===39){V.shiftKey&&k===void 0&&(k=$.selectionDirection==="forward"?Z:A);const te=F[(V.keyCode===39?"right":"left")+(t.reverseFillMask===!0?"Reverse":"")];if(V.preventDefault(),te($,k===Z?A:Z),V.shiftKey){const P=$.selectionStart;$.setSelectionRange(Math.min(k,P),Math.max(k,P),"forward")}}else V.keyCode===8&&t.reverseFillMask!==!0&&Z===A?(F.left($,Z),$.setSelectionRange($.selectionStart,A,"backward")):V.keyCode===46&&t.reverseFillMask===!0&&Z===A&&(F.rightReverse($,A),$.setSelectionRange(Z,$.selectionEnd,"forward"))}function G(V){if(V==null||V==="")return"";if(t.reverseFillMask===!0)return j(V);const $=h;let Z=0,A="";for(let te=0;te<$.length;te++){const P=V[Z],ae=$[te];if(typeof ae=="string")A+=ae,P===ae&&Z++;else if(P!==void 0&&ae.regex.test(P))A+=ae.transform!==void 0?ae.transform(P):P,Z++;else return A}return A}function j(V){const $=h,Z=s.indexOf(We);let A=V.length-1,te="";for(let P=$.length-1;P>=0&&A!==-1;P--){const ae=$[P];let ue=V[A];if(typeof ae=="string")te=ae+te,ue===ae&&A--;else if(ue!==void 0&&ae.regex.test(ue))do te=(ae.transform!==void 0?ae.transform(ue):ue)+te,A--,ue=V[A];while(Z===P&&ue!==void 0&&ae.regex.test(ue));else return te}return te}function K(V){return typeof V!="string"||g===void 0?typeof V=="number"?g(""+V):V:g(V)}function le(V){return c.length-V.length<=0?V:t.reverseFillMask===!0&&V.length!==0?c.slice(0,-V.length)+V:V+c.slice(V.length)}return{innerValue:C,hasMask:v,moveCursorForPaste:H,updateMaskValue:R,onMaskedKeydown:Q,onMaskedClick:N}}function sh(t,o){function l(){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(c=>{s.items.add(c)}),{files:s.files}}catch{return{files:void 0}}}return r.computed(()=>{if(t.type==="file")return l()})}const ch=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,fh=/[\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,dh=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,hh=/[a-z0-9_ -]$/i;function Nu(t){return function(l){if(l.type==="compositionend"||l.type==="change"){if(l.target.qComposing!==!0)return;l.target.qComposing=!1,t(l)}else l.type==="compositionupdate"&&l.target.qComposing!==!0&&typeof l.data=="string"&&(vt.is.firefox===!0?hh.test(l.data)===!1:ch.test(l.data)===!0||fh.test(l.data)===!0||dh.test(l.data)===!0)===!0&&(l.target.qComposing=!0)}}const Du=Ze({name:"QInput",inheritAttrs:!1,props:{...xi,...ah,...Nl,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:[...zl,"paste","change","keydown","click","animationend"],setup(t,{emit:o,attrs:l}){const{proxy:u}=r.getCurrentInstance(),{$q:s}=u,c={};let h=NaN,g,w,k=null,v;const C=r.ref(null),E=_u(t),{innerValue:y,hasMask:T,moveCursorForPaste:z,updateMaskValue:R,onMaskedKeydown:H,onMaskedClick:F}=uh(t,o,ue,C),N=sh(t),Q=r.computed(()=>Lr(y.value)),G=Nu(P),j=Hl({changeEvent:!0}),K=r.computed(()=>t.type==="textarea"||t.autogrow===!0),le=r.computed(()=>K.value===!0||["text","search","url","tel","password"].includes(t.type)),V=r.computed(()=>{const O={...j.splitAttrs.listeners.value,onInput:P,onPaste:te,onChange:W,onBlur:se,onFocus:Yt};return O.onCompositionstart=O.onCompositionupdate=O.onCompositionend=G,T.value===!0&&(O.onKeydown=H,O.onClick=F),t.autogrow===!0&&(O.onAnimationend=ae),O}),$=r.computed(()=>{const O={tabindex:0,"data-autofocus":t.autofocus===!0||void 0,rows:t.type==="textarea"?6:void 0,"aria-label":t.label,name:E.value,...j.splitAttrs.attributes.value,id:j.targetUid.value,maxlength:t.maxlength,disabled:t.disable===!0,readonly:t.readonly===!0};return K.value===!1&&(O.type=t.type),t.autogrow===!0&&(O.rows=1),O});r.watch(()=>t.type,()=>{C.value&&(C.value.value=t.modelValue)}),r.watch(()=>t.modelValue,O=>{if(T.value===!0){if(w===!0&&(w=!1,String(O)===h))return;R(O)}else y.value!==O&&(y.value=O,t.type==="number"&&c.hasOwnProperty("value")===!0&&(g===!0?g=!1:delete c.value));t.autogrow===!0&&r.nextTick(fe)}),r.watch(()=>t.autogrow,O=>{O===!0?r.nextTick(fe):C.value!==null&&l.rows>0&&(C.value.style.height="auto")}),r.watch(()=>t.dense,()=>{t.autogrow===!0&&r.nextTick(fe)});function Z(){Si(()=>{const O=document.activeElement;C.value!==null&&C.value!==O&&(O===null||O.id!==j.targetUid.value)&&C.value.focus({preventScroll:!0})})}function A(){C.value!==null&&C.value.select()}function te(O){if(T.value===!0&&t.reverseFillMask!==!0){const ie=O.target;z(ie,ie.selectionStart,ie.selectionEnd)}o("paste",O)}function P(O){if(!O||!O.target)return;if(t.type==="file"){o("update:modelValue",O.target.files);return}const ie=O.target.value;if(O.target.qComposing===!0){c.value=ie;return}if(T.value===!0)R(ie,!1,O.inputType);else if(ue(ie),le.value===!0&&O.target===document.activeElement){const{selectionStart:ve,selectionEnd:_e}=O.target;ve!==void 0&&_e!==void 0&&r.nextTick(()=>{O.target===document.activeElement&&ie.indexOf(O.target.value)===0&&O.target.setSelectionRange(ve,_e)})}t.autogrow===!0&&fe()}function ae(O){o("animationend",O),fe()}function ue(O,ie){v=()=>{k=null,t.type!=="number"&&c.hasOwnProperty("value")===!0&&delete c.value,t.modelValue!==O&&h!==O&&(h=O,ie===!0&&(w=!0),o("update:modelValue",O),r.nextTick(()=>{h===O&&(h=NaN)})),v=void 0},t.type==="number"&&(g=!0,c.value=O),t.debounce!==void 0?(k!==null&&clearTimeout(k),c.value=O,k=setTimeout(v,t.debounce)):v()}function fe(){requestAnimationFrame(()=>{const O=C.value;if(O!==null){const ie=O.parentNode.style,{scrollTop:ve}=O,{overflowY:_e,maxHeight:U}=s.platform.is.firefox===!0?{}:window.getComputedStyle(O),ne=_e!==void 0&&_e!=="scroll";ne===!0&&(O.style.overflowY="hidden"),ie.marginBottom=O.scrollHeight-1+"px",O.style.height="1px",O.style.height=O.scrollHeight+"px",ne===!0&&(O.style.overflowY=parseInt(U,10)<O.scrollHeight?"auto":"hidden"),ie.marginBottom="",O.scrollTop=ve}})}function W(O){G(O),k!==null&&(clearTimeout(k),k=null),v!==void 0&&v(),o("change",O.target.value)}function se(O){O!==void 0&&Yt(O),k!==null&&(clearTimeout(k),k=null),v!==void 0&&v(),g=!1,w=!1,delete c.value,t.type!=="file"&&setTimeout(()=>{C.value!==null&&(C.value.value=y.value!==void 0?y.value:"")})}function ge(){return c.hasOwnProperty("value")===!0?c.value:y.value!==void 0?y.value:""}r.onBeforeUnmount(()=>{se()}),r.onMounted(()=>{t.autogrow===!0&&fe()}),Object.assign(j,{innerValue:y,fieldClass:r.computed(()=>`q-${K.value===!0?"textarea":"input"}`+(t.autogrow===!0?" q-textarea--autogrow":"")),hasShadow:r.computed(()=>t.type!=="file"&&typeof t.shadowText=="string"&&t.shadowText.length!==0),inputRef:C,emitValue:ue,hasValue:Q,floatingLabel:r.computed(()=>Q.value===!0&&(t.type!=="number"||isNaN(y.value)===!1)||Lr(t.displayValue)),getControl:()=>r.h(K.value===!0?"textarea":"input",{ref:C,class:["q-field__native q-placeholder",t.inputClass],style:t.inputStyle,...$.value,...V.value,...t.type!=="file"?{value:ge()}:N.value}),getShadowControl:()=>r.h("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(K.value===!0?"":" text-no-wrap")},[r.h("span",{class:"invisible"},ge()),r.h("span",t.shadowText)])});const B=Wl(j);return Object.assign(u,{focus:Z,select:A,getNativeElement:()=>C.value}),gi(u,"nativeEl",()=>C.value),B}}),ki=Ze({name:"QCard",props:{...lr,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(t,{slots:o}){const{proxy:{$q:l}}=r.getCurrentInstance(),u=or(t,l),s=r.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()=>r.h(t.tag,{class:s.value},_t(o.default))}}),mh=r.defineComponent({__name:"WinInput",props:r.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,{expose:o}){const l=r.useModel(t,"modelValue"),u=t,s=r.ref(!1),c=r.computed(()=>u.transparent?"glass-card":"win-card"),h=r.computed(()=>u.label===""?void 0:u.label),g=r.computed(()=>{let y="width: 100%; padding-left: 10px; padding-right: 10px;";return u.inputHeight&&(y+="height: "+u.inputHeight),y}),w=r.computed(()=>l.value||s.value?"17.5px":"15px"),k=r.ref(null);function v(){k.value.focus()}function C(){s.value=!0}function E(){s.value=!1}return o({focus:v}),(y,T)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(ki,{onClick:v,class:r.normalizeClass(`${c.value} row items-center ${l.value&&y.label||s.value&&y.label?"q-pt-md":""} `),style:r.normalizeStyle({minHeight:y.height,width:y.width,maxWidth:"calc(100vw - 32px)",minWidth:y.minWidth,margin:"auto"})},{default:r.withCtx(()=>[r.renderSlot(y.$slots,"fixed-label",{class:"self-start"}),r.createVNode(Du,{modelValue:l.value,"onUpdate:modelValue":T[0]||(T[0]=z=>l.value=z),ref_key:"inputRef",ref:k,"label-color":"black","input-class":`text-black ${h.value?"":"text-center ww-title"}`,"input-style":y.inputStyle,style:r.normalizeStyle(g.value),readonly:y.readonly,mask:y.mask,prefix:y.prefix,label:h.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:C,onBlur:E},{label:r.withCtx(()=>[!y.label||y.label!=""?(r.openBlock(),r.createElementBlock("div",{key:0,style:r.normalizeStyle(`padding-bottom: 30px; transition: 0.5s ease; font-size: ${w.value};`+y.labelStyle)},r.toDisplayString(y.label)+" "+r.toDisplayString(y.required&&!y.readonly?"*":""),5)):r.createCommentVNode("",!0)]),append:r.withCtx(()=>[r.renderSlot(y.$slots,"append")]),_:3},8,["modelValue","input-class","input-style","style","readonly","mask","prefix","label","type","suffix","counter","maxlength","rules","placeholder"]),r.renderSlot(y.$slots,"bottom")]),_:3},8,["class","style"]),y.hint?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(`text-${y.hintOptions.position} text-${y.hintOptions.color} text-caption q-mt-xl q-pt-xl q-pl-sm`)},r.toDisplayString(y.hint),3)):r.createCommentVNode("",!0)],64))}}),gh={class:"ww-subtitle text-center q-mb-md text-grey-9",style:{"font-weight":"600"}},ph=r.defineComponent({__name:"ControlLabel",props:{label:{}},setup(t){return(o,l)=>(r.openBlock(),r.createElementBlock("div",gh,r.toDisplayString(o.label),1))}}),vh={style:{"max-width":"400px"},class:"text-center"},_h={style:{"font-size":"16px"}},bh={style:{"font-size":"16px"}},Kl=st(r.defineComponent({__name:"InputControl",props:r.mergeModels({control:{},innerLabel:{type:Boolean,default:!1}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=t,l=r.ref(null),u=r.computed(()=>{var c;return(c=o.control.controlType)==null?void 0:c.split("_")[1]}),s=r.useModel(t,"modelValue");return r.onMounted(()=>{var c;(c=l.value)==null||c.focus()}),(c,h)=>(r.openBlock(),r.createElementBlock("div",vh,[!c.innerLabel&&c.control.label?(r.openBlock(),r.createBlock(ph,{key:0,label:c.control.label},null,8,["label"])):r.createCommentVNode("",!0),r.createVNode(mh,{modelValue:s.value,"onUpdate:modelValue":h[0]||(h[0]=g=>s.value=g),width:"250px",mask:u.value==="number"?"###.###.###.###.###":void 0,label:c.innerLabel?c.control.label:void 0,inputStyle:{textAlign:(u.value==="number","center")},ref_key:"inputRef",ref:l},r.createSlots({_:2},[c.control.prefix?{name:"prepend",fn:r.withCtx(()=>[r.createElementVNode("span",_h,r.toDisplayString(c.control.prefix),1)]),key:"0"}:void 0,c.control.suffix?{name:"append",fn:r.withCtx(()=>[r.createElementVNode("span",bh,r.toDisplayString(c.control.suffix),1)]),key:"1"}:void 0]),1032,["modelValue","mask","label","inputStyle"])]))}}),[["__scopeId","data-v-8f5284d3"]]);function jl(t,o){const l=t.style;for(const u in o)l[u]=o[u]}function yh(t){if(t==null)return;if(typeof t=="string")try{return document.querySelector(t)||void 0}catch{return}const o=r.unref(t);if(o)return o.$el||o}function $u(t,o){if(t==null||t.contains(o)===!0)return!0;for(let l=t.nextElementSibling;l!==null;l=l.nextElementSibling)if(l.contains(o))return!0;return!1}function wh(t,o=250){let l=!1,u;return function(){return l===!1&&(l=!0,setTimeout(()=>{l=!1},o),u=t.apply(this,arguments)),u}}function Fu(t,o,l,u){l.modifiers.stop===!0&&Yt(t);const s=l.modifiers.color;let c=l.modifiers.center;c=c===!0||u===!0;const h=document.createElement("span"),g=document.createElement("span"),w=bu(t),{left:k,top:v,width:C,height:E}=o.getBoundingClientRect(),y=Math.sqrt(C*C+E*E),T=y/2,z=`${(C-y)/2}px`,R=c?z:`${w.left-k-T}px`,H=`${(E-y)/2}px`,F=c?H:`${w.top-v-T}px`;g.className="q-ripple__inner",jl(g,{height:`${y}px`,width:`${y}px`,transform:`translate3d(${R},${F},0) scale3d(.2,.2,1)`,opacity:0}),h.className=`q-ripple${s?" text-"+s:""}`,h.setAttribute("dir","ltr"),h.appendChild(g),o.appendChild(h);const N=()=>{h.remove(),clearTimeout(Q)};l.abort.push(N);let Q=setTimeout(()=>{g.classList.add("q-ripple__inner--enter"),g.style.transform=`translate3d(${z},${H},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(()=>{h.remove(),l.abort.splice(l.abort.indexOf(N),1)},275)},250)},50)}function Uu(t,{modifiers:o,value:l,arg:u}){const s=Object.assign({},t.cfg.ripple,o,l);t.modifiers={early:s.early===!0,stop:s.stop===!0,center:s.center===!0,color:s.color||u,keyCodes:[].concat(s.keyCodes||13)}}const zu=ou({name:"ripple",beforeMount(t,o){const l=o.instance.$.appContext.config.globalProperties.$q.config||{};if(l.ripple===!1)return;const u={cfg:l,enabled:o.value!==!1,modifiers:{},abort:[],start(s){u.enabled===!0&&s.qSkipRipple!==!0&&s.type===(u.modifiers.early===!0?"pointerdown":"click")&&Fu(s,t,u,s.qKeyEvent===!0)},keystart:wh(s=>{u.enabled===!0&&s.qSkipRipple!==!0&&Ln(s,u.modifiers.keyCodes)===!0&&s.type===`key${u.modifiers.early===!0?"down":"up"}`&&Fu(s,t,u,!0)},300)};Uu(u,o),t.__qripple=u,Dl(u,"main",[[t,"pointerdown","start","passive"],[t,"click","start","passive"],[t,"keydown","keystart","passive"],[t,"keyup","keystart","passive"]])},updated(t,o){if(o.oldValue!==o.value){const l=t.__qripple;l!==void 0&&(l.enabled=o.value!==!1,l.enabled===!0&&Object(o.value)===o.value&&Uu(l,o))}},beforeUnmount(t){const o=t.__qripple;o!==void 0&&(o.abort.forEach(l=>{l()}),yu(o,"main"),delete t._qripple)}}),Hu={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},Sh=Object.keys(Hu),xh={align:{type:String,validator:t=>Sh.includes(t)}};function Ch(t){return r.computed(()=>{const o=t.align===void 0?t.vertical===!0?"stretch":"left":t.align;return`${t.vertical===!0?"items":"justify"}-${Hu[o]}`})}function Wu(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}function Gu(t,o){return(t.aliasOf||t)===(o.aliasOf||o)}function kh(t,o){for(const l in o){const u=o[l],s=t[l];if(typeof u=="string"){if(u!==s)return!1}else if(Array.isArray(s)===!1||s.length!==u.length||u.some((c,h)=>c!==s[h]))return!1}return!0}function Ku(t,o){return Array.isArray(o)===!0?t.length===o.length&&t.every((l,u)=>l===o[u]):t.length===1&&t[0]===o}function Eh(t,o){return Array.isArray(t)===!0?Ku(t,o):Array.isArray(o)===!0?Ku(o,t):t===o}function Ah(t,o){if(Object.keys(t).length!==Object.keys(o).length)return!1;for(const l in t)if(Eh(t[l],o[l])===!1)return!1;return!0}const ju={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},Oh={...ju,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function Yu({fallbackTag:t,useDisableForRouterLinkProps:o=!0}={}){const l=r.getCurrentInstance(),{props:u,proxy:s,emit:c}=l,h=fu(l),g=r.computed(()=>u.disable!==!0&&u.href!==void 0),w=o===!0?r.computed(()=>h===!0&&u.disable!==!0&&g.value!==!0&&u.to!==void 0&&u.to!==null&&u.to!==""):r.computed(()=>h===!0&&g.value!==!0&&u.to!==void 0&&u.to!==null&&u.to!==""),k=r.computed(()=>w.value===!0?F(u.to):null),v=r.computed(()=>k.value!==null),C=r.computed(()=>g.value===!0||v.value===!0),E=r.computed(()=>u.type==="a"||C.value===!0?"a":u.tag||t||"div"),y=r.computed(()=>g.value===!0?{href:u.href,target:u.target}:v.value===!0?{href:k.value.href,target:u.target}:{}),T=r.computed(()=>{if(v.value===!1)return-1;const{matched:G}=k.value,{length:j}=G,K=G[j-1];if(K===void 0)return-1;const le=s.$route.matched;if(le.length===0)return-1;const V=le.findIndex(Gu.bind(null,K));if(V!==-1)return V;const $=Wu(G[j-2]);return j>1&&Wu(K)===$&&le[le.length-1].path!==$?le.findIndex(Gu.bind(null,G[j-2])):V}),z=r.computed(()=>v.value===!0&&T.value!==-1&&kh(s.$route.params,k.value.params)),R=r.computed(()=>z.value===!0&&T.value===s.$route.matched.length-1&&Ah(s.$route.params,k.value.params)),H=r.computed(()=>v.value===!0?R.value===!0?` ${u.exactActiveClass} ${u.activeClass}`:u.exact===!0?"":z.value===!0?` ${u.activeClass}`:"":"");function F(G){try{return s.$router.resolve(G)}catch{}return null}function N(G,{returnRouterError:j,to:K=u.to,replace:le=u.replace}={}){if(u.disable===!0)return G.preventDefault(),Promise.resolve(!1);if(G.metaKey||G.altKey||G.ctrlKey||G.shiftKey||G.button!==void 0&&G.button!==0||u.target==="_blank")return Promise.resolve(!1);G.preventDefault();const V=s.$router[le===!0?"replace":"push"](K);return j===!0?V:V.then(()=>{}).catch(()=>{})}function Q(G){if(v.value===!0){const j=K=>N(G,K);c("click",G,j),G.defaultPrevented!==!0&&j()}else c("click",G)}return{hasRouterLink:v,hasHrefLink:g,hasLink:C,linkTag:E,resolvedLink:k,linkIsActive:z,linkIsExactActive:R,linkClass:H,linkAttrs:y,getLink:F,navigateToRouterLink:N,navigateOnClick:Q}}const Qu={none:0,xs:4,sm:8,md:16,lg:24,xl:32},Th={xs:8,sm:10,md:14,lg:20,xl:24},Bh=["button","submit","reset"],Rh=/[^\s]\/[^\s]/,Ih=["flat","outline","push","unelevated"];function Mh(t,o){return t.flat===!0?"flat":t.outline===!0?"outline":t.push===!0?"push":t.unelevated===!0?"unelevated":o}const Lh={...{...pi,...ju,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...Ih.reduce((t,o)=>(t[o]=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:{...xh.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},round:Boolean};function qh(t){const o=vi(t,Th),l=Ch(t),{hasRouterLink:u,hasLink:s,linkTag:c,linkAttrs:h,navigateOnClick:g}=Yu({fallbackTag:"button"}),w=r.computed(()=>{const R=t.fab===!1&&t.fabMini===!1?o.value:{};return t.padding!==void 0?Object.assign({},R,{padding:t.padding.split(/\s+/).map(H=>H in Qu?Qu[H]+"px":H).join(" "),minWidth:"0",minHeight:"0"}):R}),k=r.computed(()=>t.rounded===!0||t.fab===!0||t.fabMini===!0),v=r.computed(()=>t.disable!==!0&&t.loading!==!0),C=r.computed(()=>v.value===!0?t.tabindex||0:-1),E=r.computed(()=>Mh(t,"standard")),y=r.computed(()=>{const R={tabindex:C.value};return s.value===!0?Object.assign(R,h.value):Bh.includes(t.type)===!0&&(R.type=t.type),c.value==="a"?(t.disable===!0?R["aria-disabled"]="true":R.href===void 0&&(R.role="button"),u.value!==!0&&Rh.test(t.type)===!0&&(R.type=t.type)):t.disable===!0&&(R.disabled="",R["aria-disabled"]="true"),t.loading===!0&&t.percentage!==void 0&&Object.assign(R,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":t.percentage}),R}),T=r.computed(()=>{let R;t.color!==void 0?t.flat===!0||t.outline===!0?R=`text-${t.textColor||t.color}`:R=`bg-${t.color} text-${t.textColor||"white"}`:t.textColor&&(R=`text-${t.textColor}`);const H=t.round===!0?"round":`rectangle${k.value===!0?" q-btn--rounded":t.square===!0?" q-btn--square":""}`;return`q-btn--${E.value} q-btn--${H}`+(R!==void 0?" "+R:"")+(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":"")}),z=r.computed(()=>l.value+(t.stack===!0?" column":" row")+(t.noWrap===!0?" no-wrap text-no-wrap":"")+(t.loading===!0?" q-btn__content--hidden":""));return{classes:T,style:w,innerClasses:z,attributes:y,hasLink:s,linkTag:c,navigateOnClick:g,isActionable:v}}const{passiveCapture:Tt}=ct;let ar=null,ur=null,sr=null;const cr=Ze({name:"QBtn",props:{...Lh,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(t,{slots:o,emit:l}){const{proxy:u}=r.getCurrentInstance(),{classes:s,style:c,innerClasses:h,attributes:g,hasLink:w,linkTag:k,navigateOnClick:v,isActionable:C}=qh(t),E=r.ref(null),y=r.ref(null);let T=null,z,R=null;const H=r.computed(()=>t.label!==void 0&&t.label!==null&&t.label!==""),F=r.computed(()=>t.disable===!0||t.ripple===!1?!1:{keyCodes:w.value===!0?[13,32]:[13],...t.ripple===!0?{}:t.ripple}),N=r.computed(()=>({center:t.round})),Q=r.computed(()=>{const P=Math.max(0,Math.min(100,t.percentage));return P>0?{transition:"transform 0.6s",transform:`translateX(${P-100}%)`}:{}}),G=r.computed(()=>{if(t.loading===!0)return{onMousedown:te,onTouchstart:te,onClick:te,onKeydown:te,onKeyup:te};if(C.value===!0){const P={onClick:K,onKeydown:le,onMousedown:$};if(u.$q.platform.has.touch===!0){const ae=t.onTouchstart!==void 0?"":"Passive";P[`onTouchstart${ae}`]=V}return P}return{onClick:Ke}}),j=r.computed(()=>({ref:E,class:"q-btn q-btn-item non-selectable no-outline "+s.value,style:c.value,...g.value,...G.value}));function K(P){if(E.value!==null){if(P!==void 0){if(P.defaultPrevented===!0)return;const ae=document.activeElement;if(t.type==="submit"&&ae!==document.body&&E.value.contains(ae)===!1&&ae.contains(E.value)===!1){E.value.focus();const ue=()=>{document.removeEventListener("keydown",Ke,!0),document.removeEventListener("keyup",ue,Tt),E.value!==null&&E.value.removeEventListener("blur",ue,Tt)};document.addEventListener("keydown",Ke,!0),document.addEventListener("keyup",ue,Tt),E.value.addEventListener("blur",ue,Tt)}}v(P)}}function le(P){E.value!==null&&(l("keydown",P),Ln(P,[13,32])===!0&&ur!==E.value&&(ur!==null&&A(),P.defaultPrevented!==!0&&(E.value.focus(),ur=E.value,E.value.classList.add("q-btn--active"),document.addEventListener("keyup",Z,!0),E.value.addEventListener("blur",Z,Tt)),Ke(P)))}function V(P){E.value!==null&&(l("touchstart",P),P.defaultPrevented!==!0&&(ar!==E.value&&(ar!==null&&A(),ar=E.value,T=P.target,T.addEventListener("touchcancel",Z,Tt),T.addEventListener("touchend",Z,Tt)),z=!0,R!==null&&clearTimeout(R),R=setTimeout(()=>{R=null,z=!1},200)))}function $(P){E.value!==null&&(P.qSkipRipple=z===!0,l("mousedown",P),P.defaultPrevented!==!0&&sr!==E.value&&(sr!==null&&A(),sr=E.value,E.value.classList.add("q-btn--active"),document.addEventListener("mouseup",Z,Tt)))}function Z(P){if(E.value!==null&&!(P!==void 0&&P.type==="blur"&&document.activeElement===E.value)){if(P!==void 0&&P.type==="keyup"){if(ur===E.value&&Ln(P,[13,32])===!0){const ae=new MouseEvent("click",P);ae.qKeyEvent=!0,P.defaultPrevented===!0&&Dt(ae),P.cancelBubble===!0&&Yt(ae),E.value.dispatchEvent(ae),Ke(P),P.qKeyEvent=!0}l("keyup",P)}A()}}function A(P){const ae=y.value;P!==!0&&(ar===E.value||sr===E.value)&&ae!==null&&ae!==document.activeElement&&(ae.setAttribute("tabindex",-1),ae.focus()),ar===E.value&&(T!==null&&(T.removeEventListener("touchcancel",Z,Tt),T.removeEventListener("touchend",Z,Tt)),ar=T=null),sr===E.value&&(document.removeEventListener("mouseup",Z,Tt),sr=null),ur===E.value&&(document.removeEventListener("keyup",Z,!0),E.value!==null&&E.value.removeEventListener("blur",Z,Tt),ur=null),E.value!==null&&E.value.classList.remove("q-btn--active")}function te(P){Ke(P),P.qSkipRipple=!0}return r.onBeforeUnmount(()=>{A(!0)}),Object.assign(u,{click:P=>{C.value===!0&&K(P)}}),()=>{let P=[];t.icon!==void 0&&P.push(r.h(bt,{name:t.icon,left:t.stack!==!0&&H.value===!0,role:"img"})),H.value===!0&&P.push(r.h("span",{class:"block"},[t.label])),P=In(o.default,P),t.iconRight!==void 0&&t.round===!1&&P.push(r.h(bt,{name:t.iconRight,right:t.stack!==!0&&H.value===!0,role:"img"}));const ae=[r.h("span",{class:"q-focus-helper",ref:y})];return t.loading===!0&&t.percentage!==void 0&&ae.push(r.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(t.darkPercentage===!0?" q-btn__progress--dark":"")},[r.h("span",{class:"q-btn__progress-indicator fit block",style:Q.value})])),ae.push(r.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+h.value},P)),t.loading!==null&&ae.push(r.h(r.Transition,{name:"q-transition--fade"},()=>t.loading===!0?[r.h("span",{key:"loading",class:"absolute-full flex flex-center"},o.loading!==void 0?o.loading():[r.h(ql)])]:null)),r.withDirectives(r.h(k.value,j.value,ae),[[zu,F.value,void 0,N.value]])}}}),Zu=t=>(r.pushScopeId("data-v-3bcb795a"),t=t(),r.popScopeId(),t),Vh={class:"buttons-container"},Ph={class:"lt-md"},Nh={class:"row justify-between q-my-md q-px-md"},Dh=Zu(()=>r.createElementVNode("span",{class:"text-black"},"Atrás",-1)),$h={key:1},Fh=Zu(()=>r.createElementVNode("span",{class:"text-black"},"Siguiente",-1)),Uh=st(r.defineComponent({__name:"NavigationButtons",props:{currentStep:{},stepsCount:{},nextDisabled:{type:Boolean}},emits:["prev","next"],setup(t){const o=t,l=r.computed(()=>o.currentStep+1);return(u,s)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("div",Vh,[l.value>1?(r.openBlock(),r.createBlock(cr,{key:0,style:{position:"absolute",left:"25px",cursor:"pointer"},size:"26px",color:"white","text-color":"white",class:"gt-sm",onClick:s[0]||(s[0]=c=>u.$emit("prev")),flat:""},{default:r.withCtx(()=>[r.createVNode(bt,{name:"arrow_back_ios",color:"info"})]),_:1})):r.createCommentVNode("",!0),l.value!==u.stepsCount?(r.openBlock(),r.createBlock(cr,{key:1,style:{position:"absolute",right:"25px",cursor:"pointer"},size:"26px",color:"white","text-color":"white",class:"gt-sm",onClick:s[1]||(s[1]=c=>u.$emit("next")),disable:u.nextDisabled,flat:""},{default:r.withCtx(()=>[r.createVNode(bt,{name:"arrow_forward_ios",color:"info"})]),_:1},8,["disable"])):r.createCommentVNode("",!0)]),r.createElementVNode("div",Ph,[r.createElementVNode("div",Nh,[l.value>1&&l.value<u.stepsCount?(r.openBlock(),r.createBlock(cr,{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]=c=>u.$emit("prev")),flat:"","no-caps":""},{default:r.withCtx(()=>[Dh]),_:1})):(r.openBlock(),r.createElementBlock("div",$h)),l.value<u.stepsCount?(r.openBlock(),r.createBlock(cr,{key:2,color:"info",class:"q-px-xl q-py-sm q-ml-sm win-btn win-btn-primary",onClick:s[3]||(s[3]=c=>u.$emit("next")),disable:u.nextDisabled,flat:"","no-caps":""},{default:r.withCtx(()=>[Fh]),_:1},8,["disable"])):r.createCommentVNode("",!0)])])],64))}}),[["__scopeId","data-v-3bcb795a"]]),zh=Ze({name:"QField",inheritAttrs:!1,props:{...xi,tag:{type:String,default:"label"}},emits:zl,setup(){return Wl(Hl({tagProp:!0}))}}),Hh={xs:8,sm:10,md:14,lg:20,xl:24},Wh=Ze({name:"QChip",props:{...lr,...pi,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:o,emit:l}){const{proxy:{$q:u}}=r.getCurrentInstance(),s=or(t,u),c=vi(t,Hh),h=r.computed(()=>t.selected===!0||t.icon!==void 0),g=r.computed(()=>t.selected===!0?t.iconSelected||u.iconSet.chip.selected:t.icon),w=r.computed(()=>t.iconRemove||u.iconSet.chip.remove),k=r.computed(()=>t.disable===!1&&(t.clickable===!0||t.selected!==null)),v=r.computed(()=>{const R=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}`:"")+(R?` text-${R} 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":"")+(k.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":"")}),C=r.computed(()=>{const R=t.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:t.tabindex||0},H={...R,role:"button","aria-hidden":"false","aria-label":t.removeAriaLabel||u.lang.label.remove};return{chip:R,remove:H}});function E(R){R.keyCode===13&&y(R)}function y(R){t.disable||(l("update:selected",!t.selected),l("click",R))}function T(R){(R.keyCode===void 0||R.keyCode===13)&&(Ke(R),t.disable===!1&&(l("update:modelValue",!1),l("remove")))}function z(){const R=[];k.value===!0&&R.push(r.h("div",{class:"q-focus-helper"})),h.value===!0&&R.push(r.h(bt,{class:"q-chip__icon q-chip__icon--left",name:g.value}));const H=t.label!==void 0?[r.h("div",{class:"ellipsis"},[t.label])]:void 0;return R.push(r.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},bd(o.default,H))),t.iconRight&&R.push(r.h(bt,{class:"q-chip__icon q-chip__icon--right",name:t.iconRight})),t.removable===!0&&R.push(r.h(bt,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:w.value,...C.value.remove,onClick:T,onKeyup:T})),R}return()=>{if(t.modelValue===!1)return;const R={class:v.value,style:c.value};return k.value===!0&&Object.assign(R,C.value.chip,{onClick:y,onKeyup:E}),cu("div",R,z(),"ripple",t.ripple!==!1&&t.disable!==!0,()=>[[zu,t.ripple]])}}}),Gh=Ze({name:"QItem",props:{...lr,...Oh,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:o,emit:l}){const{proxy:{$q:u}}=r.getCurrentInstance(),s=or(t,u),{hasLink:c,linkAttrs:h,linkClass:g,linkTag:w,navigateOnClick:k}=Yu(),v=r.ref(null),C=r.ref(null),E=r.computed(()=>t.clickable===!0||c.value===!0||t.tag==="label"),y=r.computed(()=>t.disable!==!0&&E.value===!0),T=r.computed(()=>"q-item q-item-type row no-wrap"+(t.dense===!0?" q-item--dense":"")+(s.value===!0?" q-item--dark":"")+(c.value===!0&&t.active===null?g.value:t.active===!0?` q-item--active${t.activeClass!==void 0?` ${t.activeClass}`:""}`:"")+(t.disable===!0?" disabled":"")+(y.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":""):"")),z=r.computed(()=>t.insetLevel===void 0?null:{["padding"+(u.lang.rtl===!0?"Right":"Left")]:16+t.insetLevel*56+"px"});function R(N){y.value===!0&&(C.value!==null&&(N.qKeyEvent!==!0&&document.activeElement===v.value?C.value.focus():document.activeElement===C.value&&v.value.focus()),k(N))}function H(N){if(y.value===!0&&Ln(N,[13,32])===!0){Ke(N),N.qKeyEvent=!0;const Q=new MouseEvent("click",N);Q.qKeyEvent=!0,v.value.dispatchEvent(Q)}l("keyup",N)}function F(){const N=_d(o.default,[]);return y.value===!0&&N.unshift(r.h("div",{class:"q-focus-helper",tabindex:-1,ref:C})),N}return()=>{const N={ref:v,class:T.value,style:z.value,role:"listitem",onClick:R,onKeyup:H};return y.value===!0?(N.tabindex=t.tabindex||"0",Object.assign(N,h.value)):E.value===!0&&(N["aria-disabled"]="true"),r.h(w.value,N,F())}}}),Kh=Ze({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(t,{slots:o}){const l=r.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()=>r.h("div",{class:l.value},_t(o.default))}}),jh=Ze({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(t,{slots:o}){const l=r.computed(()=>parseInt(t.lines,10)),u=r.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":"")+(l.value===1?" ellipsis":"")),s=r.computed(()=>t.lines!==void 0&&l.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":l.value}:null);return()=>r.h("div",{style:s.value,class:u.value},_t(o.default))}});function Yh(){if(window.getSelection!==void 0){const t=window.getSelection();t.empty!==void 0?t.empty():t.removeAllRanges!==void 0&&(t.removeAllRanges(),Ml.is.mobile!==!0&&t.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}const Qh={...{target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},contextMenu:Boolean};function Zh({showing:t,avoidEmit:o,configureAnchorEl:l}){const{props:u,proxy:s,emit:c}=r.getCurrentInstance(),h=r.ref(null);let g=null;function w(y){return h.value===null?!1:y===void 0||y.touches===void 0||y.touches.length<=1}const k={};l===void 0&&(Object.assign(k,{hide(y){s.hide(y)},toggle(y){s.toggle(y),y.qAnchorHandled=!0},toggleKey(y){Ln(y,13)===!0&&k.toggle(y)},contextClick(y){s.hide(y),Dt(y),r.nextTick(()=>{s.show(y),y.qAnchorHandled=!0})},prevent:Dt,mobileTouch(y){if(k.mobileCleanup(y),w(y)!==!0)return;s.hide(y),h.value.classList.add("non-selectable");const T=y.target;Dl(k,"anchor",[[T,"touchmove","mobileCleanup","passive"],[T,"touchend","mobileCleanup","passive"],[T,"touchcancel","mobileCleanup","passive"],[h.value,"contextmenu","prevent","notPassive"]]),g=setTimeout(()=>{g=null,s.show(y),y.qAnchorHandled=!0},300)},mobileCleanup(y){h.value.classList.remove("non-selectable"),g!==null&&(clearTimeout(g),g=null),t.value===!0&&y!==void 0&&Yh()}}),l=function(y=u.contextMenu){if(u.noParentEvent===!0||h.value===null)return;let T;y===!0?s.$q.platform.is.mobile===!0?T=[[h.value,"touchstart","mobileTouch","passive"]]:T=[[h.value,"mousedown","hide","passive"],[h.value,"contextmenu","contextClick","notPassive"]]:T=[[h.value,"click","toggle","passive"],[h.value,"keyup","toggleKey","passive"]],Dl(k,"anchor",T)});function v(){yu(k,"anchor")}function C(y){for(h.value=y;h.value.classList.contains("q-anchor--skip");)h.value=h.value.parentNode;l()}function E(){if(u.target===!1||u.target===""||s.$el.parentNode===null)h.value=null;else if(u.target===!0)C(s.$el.parentNode);else{let y=u.target;if(typeof u.target=="string")try{y=document.querySelector(u.target)}catch{y=void 0}y!=null?(h.value=y.$el||y,l()):(h.value=null,console.error(`Anchor: target "${u.target}" not found`))}}return r.watch(()=>u.contextMenu,y=>{h.value!==null&&(v(),l(y))}),r.watch(()=>u.target,()=>{h.value!==null&&v(),E()}),r.watch(()=>u.noParentEvent,y=>{h.value!==null&&(y===!0?v():l())}),r.onMounted(()=>{E(),o!==!0&&u.modelValue===!0&&h.value===null&&c("update:modelValue",!1)}),r.onBeforeUnmount(()=>{g!==null&&clearTimeout(g),v()}),{anchorEl:h,canShow:w,anchorEvents:k}}function Xh(t,o){const l=r.ref(null);let u;function s(g,w){const k=`${w!==void 0?"add":"remove"}EventListener`,v=w!==void 0?w:u;g!==window&&g[k]("scroll",v,ct.passive),window[k]("scroll",v,ct.passive),u=w}function c(){l.value!==null&&(s(l.value),l.value=null)}const h=r.watch(()=>t.noParentEvent,()=>{l.value!==null&&(c(),o())});return r.onBeforeUnmount(h),{localScrollTarget:l,unconfigureScrollTarget:c,changeScrollEvent:s}}const Xu={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},Ju=["beforeShow","show","beforeHide","hide"];function es({showing:t,canShow:o,hideOnRouteChange:l,handleShow:u,handleHide:s,processOnMount:c}){const h=r.getCurrentInstance(),{props:g,emit:w,proxy:k}=h;let v;function C(F){t.value===!0?T(F):E(F)}function E(F){if(g.disable===!0||F!==void 0&&F.qAnchorHandled===!0||o!==void 0&&o(F)!==!0)return;const N=g["onUpdate:modelValue"]!==void 0;N===!0&&(w("update:modelValue",!0),v=F,r.nextTick(()=>{v===F&&(v=void 0)})),(g.modelValue===null||N===!1)&&y(F)}function y(F){t.value!==!0&&(t.value=!0,w("beforeShow",F),u!==void 0?u(F):w("show",F))}function T(F){if(g.disable===!0)return;const N=g["onUpdate:modelValue"]!==void 0;N===!0&&(w("update:modelValue",!1),v=F,r.nextTick(()=>{v===F&&(v=void 0)})),(g.modelValue===null||N===!1)&&z(F)}function z(F){t.value!==!1&&(t.value=!1,w("beforeHide",F),s!==void 0?s(F):w("hide",F))}function R(F){g.disable===!0&&F===!0?g["onUpdate:modelValue"]!==void 0&&w("update:modelValue",!1):F===!0!==t.value&&(F===!0?y:z)(v)}r.watch(()=>g.modelValue,R),l!==void 0&&fu(h)===!0&&r.watch(()=>k.$route.fullPath,()=>{l.value===!0&&t.value===!0&&T()}),c===!0&&r.onMounted(()=>{R(g.modelValue)});const H={show:E,hide:T,toggle:C};return Object.assign(k,H),H}const ts={};let Jh=1,em=document.body;function tm(t,o){const l=document.createElement("div");if(l.id=o!==void 0?`q-portal--${o}--${Jh++}`:t,ts.globalNodes!==void 0){const u=ts.globalNodes.class;u!==void 0&&(l.className=u)}return em.appendChild(l),l}function nm(t){t.remove()}const qr=[];function rm(t,o){do{if(t.$options.name==="QMenu"){if(t.hide(o),t.$props.separateClosePopup===!0)return Vl(t)}else if(t.__qPortal===!0){const l=Vl(t);return l!==void 0&&l.$options.name==="QPopupProxy"?(t.hide(o),l):t}t=Vl(t)}while(t!=null)}const im=Ze({name:"QPortal",setup(t,{slots:o}){return()=>o.default()}});function lm(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 ns(t,o,l,u){const s=r.ref(!1),c=r.ref(!1);let h=null;const g={},w=u==="dialog"&&lm(t);function k(C){if(C===!0){Lu(g),c.value=!0;return}c.value=!1,s.value===!1&&(w===!1&&h===null&&(h=tm(!1,u)),s.value=!0,qr.push(t.proxy),ih(g))}function v(C){if(c.value=!1,C!==!0)return;Lu(g),s.value=!1;const E=qr.indexOf(t.proxy);E!==-1&&qr.splice(E,1),h!==null&&(nm(h),h=null)}return r.onUnmounted(()=>{v(!0)}),t.proxy.__qPortal=!0,gi(t.proxy,"contentEl",()=>o.value),{showPortal:k,hidePortal:v,portalIsActive:s,portalIsAccessible:c,renderPortal:()=>w===!0?l():s.value===!0?[r.h(r.Teleport,{to:h},r.h(im,l))]:void 0}}const rs={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function is(t,o=()=>{},l=()=>{}){return{transitionProps:r.computed(()=>{const u=`q-transition--${t.transitionShow||o()}`,s=`q-transition--${t.transitionHide||l()}`;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:r.computed(()=>`--q-transition-duration: ${t.transitionDuration}ms`)}}function ls(){let t;const o=r.getCurrentInstance();function l(){t=void 0}return r.onDeactivated(l),r.onBeforeUnmount(l),{removeTick:l,registerTick(u){t=u,r.nextTick(()=>{t===u&&(Ir(o)===!1&&t(),t=void 0)})}}}const om=[Element,String],am=[null,document,document.body,document.scrollingElement,document.documentElement];function um(t,o){let l=yh(o);if(l===void 0){if(t==null)return window;l=t.closest(".scroll,.scroll-y,.overflow-auto")}return am.includes(l)?window:l}function sm(t){return t===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:t.scrollTop}function cm(t){return t===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:t.scrollLeft}let Ei;function fm(){if(Ei!==void 0)return Ei;const t=document.createElement("p"),o=document.createElement("div");jl(t,{width:"100%",height:"200px"}),jl(o,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),o.appendChild(t),document.body.appendChild(o);const l=t.offsetWidth;o.style.overflow="scroll";let u=t.offsetWidth;return l===u&&(u=o.clientWidth),o.remove(),Ei=l-u,Ei}function dm(t,o=!0){return!t||t.nodeType!==Node.ELEMENT_NODE?!1:o?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 qn=[];let fr;function hm(t){fr=t.keyCode===27}function mm(){fr===!0&&(fr=!1)}function gm(t){fr===!0&&(fr=!1,Ln(t,27)===!0&&qn[qn.length-1](t))}function os(t){window[t]("keydown",hm),window[t]("blur",mm),window[t]("keyup",gm),fr=!1}function as(t){vt.is.desktop===!0&&(qn.push(t),qn.length===1&&os("addEventListener"))}function Ai(t){const o=qn.indexOf(t);o!==-1&&(qn.splice(o,1),qn.length===0&&os("removeEventListener"))}const Vn=[];function us(t){Vn[Vn.length-1](t)}function ss(t){vt.is.desktop===!0&&(Vn.push(t),Vn.length===1&&document.body.addEventListener("focusin",us))}function Yl(t){const o=Vn.indexOf(t);o!==-1&&(Vn.splice(o,1),Vn.length===0&&document.body.removeEventListener("focusin",us))}const{notPassiveCapture:Oi}=ct,Pn=[];function Ti(t){const o=t.target;if(o===void 0||o.nodeType===8||o.classList.contains("no-pointer-events")===!0)return;let l=qr.length-1;for(;l>=0;){const u=qr[l].$;if(u.type.name==="QTooltip"){l--;continue}if(u.type.name!=="QDialog")break;if(u.props.seamless!==!0)return;l--}for(let u=Pn.length-1;u>=0;u--){const s=Pn[u];if((s.anchorEl.value===null||s.anchorEl.value.contains(o)===!1)&&(o===document.body||s.innerRef.value!==null&&s.innerRef.value.contains(o)===!1))t.qClickOutside=!0,s.onClickOutside(t);else return}}function pm(t){Pn.push(t),Pn.length===1&&(document.addEventListener("mousedown",Ti,Oi),document.addEventListener("touchstart",Ti,Oi))}function cs(t){const o=Pn.findIndex(l=>l===t);o!==-1&&(Pn.splice(o,1),Pn.length===0&&(document.removeEventListener("mousedown",Ti,Oi),document.removeEventListener("touchstart",Ti,Oi)))}let fs,ds;function hs(t){const o=t.split(" ");return o.length!==2?!1:["top","center","bottom"].includes(o[0])!==!0?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):["left","middle","right","start","end"].includes(o[1])!==!0?(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1):!0}function vm(t){return t?!(t.length!==2||typeof t[0]!="number"||typeof t[1]!="number"):!0}const Ql={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(t=>{Ql[`${t}#ltr`]=t,Ql[`${t}#rtl`]=t});function ms(t,o){const l=t.split(" ");return{vertical:l[0],horizontal:Ql[`${l[1]}#${o===!0?"rtl":"ltr"}`]}}function _m(t,o){let{top:l,left:u,right:s,bottom:c,width:h,height:g}=t.getBoundingClientRect();return o!==void 0&&(l-=o[1],u-=o[0],c+=o[1],s+=o[0],h+=o[0],g+=o[1]),{top:l,bottom:c,height:g,left:u,right:s,width:h,middle:u+(s-u)/2,center:l+(c-l)/2}}function bm(t,o,l){let{top:u,left:s}=t.getBoundingClientRect();return u+=o.top,s+=o.left,l!==void 0&&(u+=l[1],s+=l[0]),{top:u,bottom:u+1,height:1,left:s,right:s+1,width:1,middle:s,center:u}}function ym(t,o){return{top:0,center:o/2,bottom:o,left:0,middle:t/2,right:t}}function gs(t,o,l,u){return{top:t[l.vertical]-o[u.vertical],left:t[l.horizontal]-o[u.horizontal]}}function ps(t,o=0){if(t.targetEl===null||t.anchorEl===null||o>5)return;if(t.targetEl.offsetHeight===0||t.targetEl.offsetWidth===0){setTimeout(()=>{ps(t,o+1)},10);return}const{targetEl:l,offset:u,anchorEl:s,anchorOrigin:c,selfOrigin:h,absoluteOffset:g,fit:w,cover:k,maxHeight:v,maxWidth:C}=t;if(vt.is.ios===!0&&window.visualViewport!==void 0){const j=document.body.style,{offsetLeft:K,offsetTop:le}=window.visualViewport;K!==fs&&(j.setProperty("--q-pe-left",K+"px"),fs=K),le!==ds&&(j.setProperty("--q-pe-top",le+"px"),ds=le)}const{scrollLeft:E,scrollTop:y}=l,T=g===void 0?_m(s,k===!0?[0,0]:u):bm(s,g,u);Object.assign(l.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:C||"100vw",maxHeight:v||"100vh",visibility:"visible"});const{offsetWidth:z,offsetHeight:R}=l,{elWidth:H,elHeight:F}=w===!0||k===!0?{elWidth:Math.max(T.width,z),elHeight:k===!0?Math.max(T.height,R):R}:{elWidth:z,elHeight:R};let N={maxWidth:C,maxHeight:v};(w===!0||k===!0)&&(N.minWidth=T.width+"px",k===!0&&(N.minHeight=T.height+"px")),Object.assign(l.style,N);const Q=ym(H,F);let G=gs(T,Q,c,h);if(g===void 0||u===void 0)Zl(G,T,Q,c,h);else{const{top:j,left:K}=G;Zl(G,T,Q,c,h);let le=!1;if(G.top!==j){le=!0;const V=2*u[1];T.center=T.top-=V,T.bottom-=V+2}if(G.left!==K){le=!0;const V=2*u[0];T.middle=T.left-=V,T.right-=V+2}le===!0&&(G=gs(T,Q,c,h),Zl(G,T,Q,c,h))}N={top:G.top+"px",left:G.left+"px"},G.maxHeight!==void 0&&(N.maxHeight=G.maxHeight+"px",T.height>G.maxHeight&&(N.minHeight=N.maxHeight)),G.maxWidth!==void 0&&(N.maxWidth=G.maxWidth+"px",T.width>G.maxWidth&&(N.minWidth=N.maxWidth)),Object.assign(l.style,N),l.scrollTop!==y&&(l.scrollTop=y),l.scrollLeft!==E&&(l.scrollLeft=E)}function Zl(t,o,l,u,s){const c=l.bottom,h=l.right,g=fm(),w=window.innerHeight-g,k=document.body.clientWidth;if(t.top<0||t.top+c>w)if(s.vertical==="center")t.top=o[u.vertical]>w/2?Math.max(0,w-c):0,t.maxHeight=Math.min(c,w);else if(o[u.vertical]>w/2){const v=Math.min(w,u.vertical==="center"?o.center:u.vertical===s.vertical?o.bottom:o.top);t.maxHeight=Math.min(c,v),t.top=Math.max(0,v-c)}else t.top=Math.max(0,u.vertical==="center"?o.center:u.vertical===s.vertical?o.top:o.bottom),t.maxHeight=Math.min(c,w-t.top);if(t.left<0||t.left+h>k)if(t.maxWidth=Math.min(h,k),s.horizontal==="middle")t.left=o[u.horizontal]>k/2?Math.max(0,k-h):0;else if(o[u.horizontal]>k/2){const v=Math.min(k,u.horizontal==="middle"?o.middle:u.horizontal===s.horizontal?o.right:o.left);t.maxWidth=Math.min(h,v),t.left=Math.max(0,v-t.maxWidth)}else t.left=Math.max(0,u.horizontal==="middle"?o.middle:u.horizontal===s.horizontal?o.left:o.right),t.maxWidth=Math.min(h,k-t.left)}const wm=Ze({name:"QMenu",inheritAttrs:!1,props:{...Qh,...Xu,...lr,...rs,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:hs},self:{type:String,validator:hs},offset:{type:Array,validator:vm},scrollTarget:om,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...Ju,"click","escapeKey"],setup(t,{slots:o,emit:l,attrs:u}){let s=null,c,h,g;const w=r.getCurrentInstance(),{proxy:k}=w,{$q:v}=k,C=r.ref(null),E=r.ref(!1),y=r.computed(()=>t.persistent!==!0&&t.noRouteDismiss!==!0),T=or(t,v),{registerTick:z,removeTick:R}=ls(),{registerTimeout:H}=_i(),{transitionProps:F,transitionStyle:N}=is(t),{localScrollTarget:Q,changeScrollEvent:G,unconfigureScrollTarget:j}=Xh(t,ie),{anchorEl:K,canShow:le}=Zh({showing:E}),{hide:V}=es({showing:E,canShow:le,handleShow:ge,handleHide:B,hideOnRouteChange:y,processOnMount:!0}),{showPortal:$,hidePortal:Z,renderPortal:A}=ns(w,C,Ae,"menu"),te={anchorEl:K,innerRef:C,onClickOutside(Y){if(t.persistent!==!0&&E.value===!0)return V(Y),(Y.type==="touchstart"||Y.target.classList.contains("q-dialog__backdrop"))&&Ke(Y),!0}},P=r.computed(()=>ms(t.anchor||(t.cover===!0?"center middle":"bottom start"),v.lang.rtl)),ae=r.computed(()=>t.cover===!0?P.value:ms(t.self||"top start",v.lang.rtl)),ue=r.computed(()=>(t.square===!0?" q-menu--square":"")+(T.value===!0?" q-menu--dark q-dark":"")),fe=r.computed(()=>t.autoClose===!0?{onClick:ve}:{}),W=r.computed(()=>E.value===!0&&t.persistent!==!0);r.watch(W,Y=>{Y===!0?(as(U),pm(te)):(Ai(U),cs(te))});function se(){Si(()=>{let Y=C.value;Y&&Y.contains(document.activeElement)!==!0&&(Y=Y.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||Y.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||Y.querySelector("[autofocus], [data-autofocus]")||Y,Y.focus({preventScroll:!0}))})}function ge(Y){if(s=t.noRefocus===!1?document.activeElement:null,ss(_e),$(),ie(),c=void 0,Y!==void 0&&(t.touchPosition||t.contextMenu)){const De=bu(Y);if(De.left!==void 0){const{top:lt,left:Ft}=K.value.getBoundingClientRect();c={left:De.left-Ft,top:De.top-lt}}}h===void 0&&(h=r.watch(()=>v.screen.width+"|"+v.screen.height+"|"+t.self+"|"+t.anchor+"|"+v.lang.rtl,ne)),t.noFocus!==!0&&document.activeElement.blur(),z(()=>{ne(),t.noFocus!==!0&&se()}),H(()=>{v.platform.is.ios===!0&&(g=t.autoClose,C.value.click()),ne(),$(!0),l("show",Y)},t.transitionDuration)}function B(Y){R(),Z(),O(!0),s!==null&&(Y===void 0||Y.qClickOutside!==!0)&&(((Y&&Y.type.indexOf("key")===0?s.closest('[tabindex]:not([tabindex^="-"])'):void 0)||s).focus(),s=null),H(()=>{Z(!0),l("hide",Y)},t.transitionDuration)}function O(Y){c=void 0,h!==void 0&&(h(),h=void 0),(Y===!0||E.value===!0)&&(Yl(_e),j(),cs(te),Ai(U)),Y!==!0&&(s=null)}function ie(){(K.value!==null||t.scrollTarget!==void 0)&&(Q.value=um(K.value,t.scrollTarget),G(Q.value,ne))}function ve(Y){g!==!0?(rm(k,Y),l("click",Y)):g=!1}function _e(Y){W.value===!0&&t.noFocus!==!0&&$u(C.value,Y.target)!==!0&&se()}function U(Y){l("escapeKey"),V(Y)}function ne(){ps({targetEl:C.value,offset:t.offset,anchorEl:K.value,anchorOrigin:P.value,selfOrigin:ae.value,absoluteOffset:c,fit:t.fit,cover:t.cover,maxHeight:t.maxHeight,maxWidth:t.maxWidth})}function Ae(){return r.h(r.Transition,F.value,()=>E.value===!0?r.h("div",{role:"menu",...u,ref:C,tabindex:-1,class:["q-menu q-position-engine scroll"+ue.value,u.class],style:[u.style,N.value],...fe.value},_t(o.default)):null)}return r.onBeforeUnmount(O),Object.assign(k,{focus:se,updatePosition:ne}),A}});function Sm(t,o,l){function u(){}return r.onBeforeUnmount(()=>{t.value===!0&&void 0}),{removeFromHistory:u,addToHistory(){}}}let Vr=0,Xl,Jl,Pr,eo=!1,vs,_s,bs,Nn=null;function xm(t){Cm(t)&&Ke(t)}function Cm(t){if(t.target===document.body||t.target.classList.contains("q-layout__backdrop"))return!0;const o=Hd(t),l=t.shiftKey&&!t.deltaX,u=!l&&Math.abs(t.deltaX)<=Math.abs(t.deltaY),s=l||u?t.deltaY:t.deltaX;for(let c=0;c<o.length;c++){const h=o[c];if(dm(h,u))return u?s<0&&h.scrollTop===0?!0:s>0&&h.scrollTop+h.clientHeight===h.scrollHeight:s<0&&h.scrollLeft===0?!0:s>0&&h.scrollLeft+h.clientWidth===h.scrollWidth}return!0}function ys(t){t.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function Bi(t){eo!==!0&&(eo=!0,requestAnimationFrame(()=>{eo=!1;const{height:o}=t.target,{clientHeight:l,scrollTop:u}=document.scrollingElement;(Pr===void 0||o!==window.innerHeight)&&(Pr=l-o,document.scrollingElement.scrollTop=u),u>Pr&&(document.scrollingElement.scrollTop-=Math.ceil((u-Pr)/8))}))}function ws(t){const o=document.body,l=window.visualViewport!==void 0;if(t==="add"){const{overflowY:u,overflowX:s}=window.getComputedStyle(o);Xl=cm(window),Jl=sm(window),vs=o.style.left,_s=o.style.top,bs=window.location.href,o.style.left=`-${Xl}px`,o.style.top=`-${Jl}px`,s!=="hidden"&&(s==="scroll"||o.scrollWidth>window.innerWidth)&&o.classList.add("q-body--force-scrollbar-x"),u!=="hidden"&&(u==="scroll"||o.scrollHeight>window.innerHeight)&&o.classList.add("q-body--force-scrollbar-y"),o.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,vt.is.ios===!0&&(l===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",Bi,ct.passiveCapture),window.visualViewport.addEventListener("scroll",Bi,ct.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",ys,ct.passiveCapture))}vt.is.desktop===!0&&vt.is.mac===!0&&window[`${t}EventListener`]("wheel",xm,ct.notPassive),t==="remove"&&(vt.is.ios===!0&&(l===!0?(window.visualViewport.removeEventListener("resize",Bi,ct.passiveCapture),window.visualViewport.removeEventListener("scroll",Bi,ct.passiveCapture)):window.removeEventListener("scroll",ys,ct.passiveCapture)),o.classList.remove("q-body--prevent-scroll"),o.classList.remove("q-body--force-scrollbar-x"),o.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,o.style.left=vs,o.style.top=_s,window.location.href===bs&&window.scrollTo(Xl,Jl),Pr=void 0)}function km(t){let o="add";if(t===!0){if(Vr++,Nn!==null){clearTimeout(Nn),Nn=null;return}if(Vr>1)return}else{if(Vr===0||(Vr--,Vr>0))return;if(o="remove",vt.is.ios===!0&&vt.is.nativeMobile===!0){Nn!==null&&clearTimeout(Nn),Nn=setTimeout(()=>{ws(o),Nn=null},100);return}}ws(o)}function Em(){let t;return{preventBodyScroll(o){o!==t&&(t!==void 0||o===!0)&&(t=o,km(o))}}}let Ri=0;const Am={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"},Ss={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},Om=Ze({name:"QDialog",inheritAttrs:!1,props:{...Xu,...rs,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:[...Ju,"shake","click","escapeKey"],setup(t,{slots:o,emit:l,attrs:u}){const s=r.getCurrentInstance(),c=r.ref(null),h=r.ref(!1),g=r.ref(!1);let w=null,k=null,v,C;const E=r.computed(()=>t.persistent!==!0&&t.noRouteDismiss!==!0&&t.seamless!==!0),{preventBodyScroll:y}=Em(),{registerTimeout:T}=_i(),{registerTick:z,removeTick:R}=ls(),{transitionProps:H,transitionStyle:F}=is(t,()=>Ss[t.position][0],()=>Ss[t.position][1]),N=r.computed(()=>F.value+(t.backdropFilter!==void 0?`;backdrop-filter:${t.backdropFilter};-webkit-backdrop-filter:${t.backdropFilter}`:"")),{showPortal:Q,hidePortal:G,portalIsAccessible:j,renderPortal:K}=ns(s,c,_e,"dialog"),{hide:le}=es({showing:h,hideOnRouteChange:E,handleShow:ae,handleHide:ue,processOnMount:!0}),{addToHistory:V,removeFromHistory:$}=Sm(h),Z=r.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${t.maximized===!0?"maximized":"minimized"} q-dialog__inner--${t.position} ${Am[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":"")),A=r.computed(()=>h.value===!0&&t.seamless!==!0),te=r.computed(()=>t.autoClose===!0?{onClick:O}:{}),P=r.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${A.value===!0?"modal":"seamless"}`,u.class]);r.watch(()=>t.maximized,U=>{h.value===!0&&B(U)}),r.watch(A,U=>{y(U),U===!0?(ss(ve),as(se)):(Yl(ve),Ai(se))});function ae(U){V(),k=t.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,B(t.maximized),Q(),g.value=!0,t.noFocus!==!0?(document.activeElement!==null&&document.activeElement.blur(),z(fe)):R(),T(()=>{if(s.proxy.$q.platform.is.ios===!0){if(t.seamless!==!0&&document.activeElement){const{top:ne,bottom:Ae}=document.activeElement.getBoundingClientRect(),{innerHeight:Y}=window,De=window.visualViewport!==void 0?window.visualViewport.height:Y;ne>0&&Ae>De/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-De,Ae>=Y?1/0:Math.ceil(document.scrollingElement.scrollTop+Ae-De/2))),document.activeElement.scrollIntoView()}C=!0,c.value.click(),C=!1}Q(!0),g.value=!1,l("show",U)},t.transitionDuration)}function ue(U){R(),$(),ge(!0),g.value=!0,G(),k!==null&&(((U&&U.type.indexOf("key")===0?k.closest('[tabindex]:not([tabindex^="-"])'):void 0)||k).focus(),k=null),T(()=>{G(!0),g.value=!1,l("hide",U)},t.transitionDuration)}function fe(U){Si(()=>{let ne=c.value;if(ne!==null){if(U!==void 0){const Ae=ne.querySelector(U);if(Ae!==null){Ae.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 W(U){U&&typeof U.focus=="function"?U.focus({preventScroll:!0}):fe(),l("shake");const ne=c.value;ne!==null&&(ne.classList.remove("q-animate--scale"),ne.classList.add("q-animate--scale"),w!==null&&clearTimeout(w),w=setTimeout(()=>{w=null,c.value!==null&&(ne.classList.remove("q-animate--scale"),fe())},170))}function se(){t.seamless!==!0&&(t.persistent===!0||t.noEscDismiss===!0?t.maximized!==!0&&t.noShake!==!0&&W():(l("escapeKey"),le()))}function ge(U){w!==null&&(clearTimeout(w),w=null),(U===!0||h.value===!0)&&(B(!1),t.seamless!==!0&&(y(!1),Yl(ve),Ai(se))),U!==!0&&(k=null)}function B(U){U===!0?v!==!0&&(Ri<1&&document.body.classList.add("q-body--dialog"),Ri++,v=!0):v===!0&&(Ri<2&&document.body.classList.remove("q-body--dialog"),Ri--,v=!1)}function O(U){C!==!0&&(le(U),l("click",U))}function ie(U){t.persistent!==!0&&t.noBackdropDismiss!==!0?le(U):t.noShake!==!0&&W()}function ve(U){t.allowFocusOutside!==!0&&j.value===!0&&$u(c.value,U.target)!==!0&&fe('[tabindex]:not([tabindex="-1"])')}Object.assign(s.proxy,{focus:fe,shake:W,__updateRefocusTarget(U){k=U||null}}),r.onBeforeUnmount(ge);function _e(){return r.h("div",{role:"dialog","aria-modal":A.value===!0?"true":"false",...u,class:P.value},[r.h(r.Transition,{name:"q-transition--fade",appear:!0},()=>A.value===!0?r.h("div",{class:"q-dialog__backdrop fixed-full",style:N.value,"aria-hidden":"true",tabindex:-1,onClick:ie}):null),r.h(r.Transition,H.value,()=>h.value===!0?r.h("div",{ref:c,class:Z.value,style:F.value,tabindex:-1,...te.value},_t(o.default)):null)])}return K}});let Ii=!1;{const t=document.createElement("div");t.setAttribute("dir","rtl"),Object.assign(t.style,{width:"1px",height:"1px",overflow:"auto"});const o=document.createElement("div");Object.assign(o.style,{width:"1000px",height:"1px"}),document.body.appendChild(t),t.appendChild(o),t.scrollLeft=-1e3,Ii=t.scrollLeft>=0,t.remove()}const $t=1e3,Tm=["start","center","end","start-force","center-force","end-force"],xs=Array.prototype.filter,Bm=window.getComputedStyle(document.body).overflowAnchor===void 0?zd:function(t,o){t!==null&&(t._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(t._qOverflowAnimationFrame),t._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(t===null)return;t._qOverflowAnimationFrame=void 0;const l=t.children||[];xs.call(l,s=>s.dataset&&s.dataset.qVsAnchor!==void 0).forEach(s=>{delete s.dataset.qVsAnchor});const u=l[o];u&&u.dataset&&(u.dataset.qVsAnchor="")}))};function dr(t,o){return t+o}function to(t,o,l,u,s,c,h,g){const w=t===window?document.scrollingElement||document.documentElement:t,k=s===!0?"offsetWidth":"offsetHeight",v={scrollStart:0,scrollViewSize:-h-g,scrollMaxSize:0,offsetStart:-h,offsetEnd:-g};if(s===!0?(t===window?(v.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,v.scrollViewSize+=document.documentElement.clientWidth):(v.scrollStart=w.scrollLeft,v.scrollViewSize+=w.clientWidth),v.scrollMaxSize=w.scrollWidth,c===!0&&(v.scrollStart=(Ii===!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=w.scrollTop,v.scrollViewSize+=w.clientHeight),v.scrollMaxSize=w.scrollHeight),l!==null)for(let C=l.previousElementSibling;C!==null;C=C.previousElementSibling)C.classList.contains("q-virtual-scroll--skip")===!1&&(v.offsetStart+=C[k]);if(u!==null)for(let C=u.nextElementSibling;C!==null;C=C.nextElementSibling)C.classList.contains("q-virtual-scroll--skip")===!1&&(v.offsetEnd+=C[k]);if(o!==t){const C=w.getBoundingClientRect(),E=o.getBoundingClientRect();s===!0?(v.offsetStart+=E.left-C.left,v.offsetEnd-=E.width):(v.offsetStart+=E.top-C.top,v.offsetEnd-=E.height),t!==window&&(v.offsetStart+=v.scrollStart),v.offsetEnd+=v.scrollMaxSize-v.offsetStart}return v}function Cs(t,o,l,u){o==="end"&&(o=(t===window?document.body:t)[l===!0?"scrollWidth":"scrollHeight"]),t===window?l===!0?(u===!0&&(o=(Ii===!0?document.body.scrollWidth-document.documentElement.clientWidth:0)-o),window.scrollTo(o,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,o):l===!0?(u===!0&&(o=(Ii===!0?t.scrollWidth-t.offsetWidth:0)-o),t.scrollLeft=o):t.scrollTop=o}function Nr(t,o,l,u){if(l>=u)return 0;const s=o.length,c=Math.floor(l/$t),h=Math.floor((u-1)/$t)+1;let g=t.slice(c,h).reduce(dr,0);return l%$t!==0&&(g-=o.slice(c*$t,l).reduce(dr,0)),u%$t!==0&&u!==s&&(g-=o.slice(u,h*$t).reduce(dr,0)),g}const ks={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 Rm({virtualScrollLength:t,getVirtualScrollTarget:o,getVirtualScrollEl:l,virtualScrollItemSizeComputed:u}){const s=r.getCurrentInstance(),{props:c,emit:h,proxy:g}=s,{$q:w}=g;let k,v,C,E=[],y;const T=r.ref(0),z=r.ref(0),R=r.ref({}),H=r.ref(null),F=r.ref(null),N=r.ref(null),Q=r.ref({from:0,to:0}),G=r.computed(()=>c.tableColspan!==void 0?c.tableColspan:100);u===void 0&&(u=r.computed(()=>c.virtualScrollItemSize));const j=r.computed(()=>u.value+";"+c.virtualScrollHorizontal),K=r.computed(()=>j.value+";"+c.virtualScrollSliceRatioBefore+";"+c.virtualScrollSliceRatioAfter);r.watch(K,()=>{ue()}),r.watch(j,le);function le(){ae(v,!0)}function V(B){ae(B===void 0?v:B)}function $(B,O){const ie=o();if(ie==null||ie.nodeType===8)return;const ve=to(ie,l(),H.value,F.value,c.virtualScrollHorizontal,w.lang.rtl,c.virtualScrollStickySizeStart,c.virtualScrollStickySizeEnd);C!==ve.scrollViewSize&&ue(ve.scrollViewSize),A(ie,ve,Math.min(t.value-1,Math.max(0,parseInt(B,10)||0)),0,Tm.indexOf(O)!==-1?O:v!==-1&&B>v?"end":"start")}function Z(){const B=o();if(B==null||B.nodeType===8)return;const O=to(B,l(),H.value,F.value,c.virtualScrollHorizontal,w.lang.rtl,c.virtualScrollStickySizeStart,c.virtualScrollStickySizeEnd),ie=t.value-1,ve=O.scrollMaxSize-O.offsetStart-O.offsetEnd-z.value;if(k===O.scrollStart)return;if(O.scrollMaxSize<=0){A(B,O,0,0);return}C!==O.scrollViewSize&&ue(O.scrollViewSize),te(Q.value.from);const _e=Math.floor(O.scrollMaxSize-Math.max(O.scrollViewSize,O.offsetEnd)-Math.min(y[ie],O.scrollViewSize/2));if(_e>0&&Math.ceil(O.scrollStart)>=_e){A(B,O,ie,O.scrollMaxSize-O.offsetEnd-E.reduce(dr,0));return}let U=0,ne=O.scrollStart-O.offsetStart,Ae=ne;if(ne<=ve&&ne+O.scrollViewSize>=T.value)ne-=T.value,U=Q.value.from,Ae=ne;else for(let Y=0;ne>=E[Y]&&U<ie;Y++)ne-=E[Y],U+=$t;for(;ne>0&&U<ie;)ne-=y[U],ne>-O.scrollViewSize?(U++,Ae=ne):Ae=y[U]+ne;A(B,O,U,Ae)}function A(B,O,ie,ve,_e){const U=typeof _e=="string"&&_e.indexOf("-force")!==-1,ne=U===!0?_e.replace("-force",""):_e,Ae=ne!==void 0?ne:"start";let Y=Math.max(0,ie-R.value[Ae]),De=Y+R.value.total;De>t.value&&(De=t.value,Y=Math.max(0,De-R.value.total)),k=O.scrollStart;const lt=Y!==Q.value.from||De!==Q.value.to;if(lt===!1&&ne===void 0){W(ie);return}const{activeElement:Ft}=document,yt=N.value;lt===!0&&yt!==null&&yt!==Ft&&yt.contains(Ft)===!0&&(yt.addEventListener("focusout",P),setTimeout(()=>{yt!==null&&yt.removeEventListener("focusout",P)})),Bm(yt,ie-Y);const nt=ne!==void 0?y.slice(Y,ie).reduce(dr,0):0;if(lt===!0){const wt=De>=Q.value.from&&Y<=Q.value.to?Q.value.to:De;Q.value={from:Y,to:wt},T.value=Nr(E,y,0,Y),z.value=Nr(E,y,De,t.value),requestAnimationFrame(()=>{Q.value.to!==De&&k===O.scrollStart&&(Q.value={from:Q.value.from,to:De},z.value=Nr(E,y,De,t.value))})}requestAnimationFrame(()=>{if(k!==O.scrollStart)return;lt===!0&&te(Y);const wt=y.slice(Y,ie).reduce(dr,0),tn=wt+O.offsetStart+T.value,ft=tn+y[ie];let vn=tn+ve;if(ne!==void 0){const Dr=wt-nt,Ut=O.scrollStart+Dr;vn=U!==!0&&Ut<tn&&ft<Ut+O.scrollViewSize?Ut:ne==="end"?ft-O.scrollViewSize:tn-(ne==="start"?0:Math.round((O.scrollViewSize-y[ie])/2))}k=vn,Cs(B,vn,c.virtualScrollHorizontal,w.lang.rtl),W(ie)})}function te(B){const O=N.value;if(O){const ie=xs.call(O.children,Y=>Y.classList&&Y.classList.contains("q-virtual-scroll--skip")===!1),ve=ie.length,_e=c.virtualScrollHorizontal===!0?Y=>Y.getBoundingClientRect().width:Y=>Y.offsetHeight;let U=B,ne,Ae;for(let Y=0;Y<ve;){for(ne=_e(ie[Y]),Y++;Y<ve&&ie[Y].classList.contains("q-virtual-scroll--with-prev")===!0;)ne+=_e(ie[Y]),Y++;Ae=ne-y[U],Ae!==0&&(y[U]+=Ae,E[Math.floor(U/$t)]+=Ae),U++}}}function P(){N.value!==null&&N.value!==void 0&&N.value.focus()}function ae(B,O){const ie=1*u.value;(O===!0||Array.isArray(y)===!1)&&(y=[]);const ve=y.length;y.length=t.value;for(let U=t.value-1;U>=ve;U--)y[U]=ie;const _e=Math.floor((t.value-1)/$t);E=[];for(let U=0;U<=_e;U++){let ne=0;const Ae=Math.min((U+1)*$t,t.value);for(let Y=U*$t;Y<Ae;Y++)ne+=y[Y];E.push(ne)}v=-1,k=void 0,T.value=Nr(E,y,0,Q.value.from),z.value=Nr(E,y,Q.value.to,t.value),B>=0?(te(Q.value.from),r.nextTick(()=>{$(B)})):se()}function ue(B){if(B===void 0&&typeof window<"u"){const ne=o();ne!=null&&ne.nodeType!==8&&(B=to(ne,l(),H.value,F.value,c.virtualScrollHorizontal,w.lang.rtl,c.virtualScrollStickySizeStart,c.virtualScrollStickySizeEnd).scrollViewSize)}C=B;const O=parseFloat(c.virtualScrollSliceRatioBefore)||0,ie=parseFloat(c.virtualScrollSliceRatioAfter)||0,ve=1+O+ie,_e=B===void 0||B<=0?1:Math.ceil(B/u.value),U=Math.max(1,_e,Math.ceil((c.virtualScrollSliceSize>0?c.virtualScrollSliceSize:10)/ve));R.value={total:Math.ceil(U*ve),start:Math.ceil(U*O),center:Math.ceil(U*(.5+O)),end:Math.ceil(U*(1+O)),view:_e}}function fe(B,O){const ie=c.virtualScrollHorizontal===!0?"width":"height",ve={["--q-virtual-scroll-item-"+ie]:u.value+"px"};return[B==="tbody"?r.h(B,{class:"q-virtual-scroll__padding",key:"before",ref:H},[r.h("tr",[r.h("td",{style:{[ie]:`${T.value}px`,...ve},colspan:G.value})])]):r.h(B,{class:"q-virtual-scroll__padding",key:"before",ref:H,style:{[ie]:`${T.value}px`,...ve}}),r.h(B,{class:"q-virtual-scroll__content",key:"content",ref:N,tabindex:-1},O.flat()),B==="tbody"?r.h(B,{class:"q-virtual-scroll__padding",key:"after",ref:F},[r.h("tr",[r.h("td",{style:{[ie]:`${z.value}px`,...ve},colspan:G.value})])]):r.h(B,{class:"q-virtual-scroll__padding",key:"after",ref:F,style:{[ie]:`${z.value}px`,...ve}})]}function W(B){v!==B&&(c.onVirtualScroll!==void 0&&h("virtualScroll",{index:B,from:Q.value.from,to:Q.value.to-1,direction:B<v?"decrease":"increase",ref:g}),v=B)}ue();const se=Iu(Z,w.platform.is.ios===!0?120:35);r.onBeforeMount(()=>{ue()});let ge=!1;return r.onDeactivated(()=>{ge=!0}),r.onActivated(()=>{if(ge!==!0)return;const B=o();k!==void 0&&B!==void 0&&B!==null&&B.nodeType!==8?Cs(B,k,c.virtualScrollHorizontal,w.lang.rtl):$(v)}),r.onBeforeUnmount(()=>{se.cancel()}),Object.assign(g,{scrollTo:$,reset:le,refresh:V}),{virtualScrollSliceRange:Q,virtualScrollSliceSizeComputed:R,setVirtualScrollSize:ue,onVirtualScrollEvt:se,localResetVirtualScroll:ae,padVirtualScroll:fe,scrollTo:$,reset:le,refresh:V}}function Es(t,o,l){if(l<=o)return o;const u=l-o+1;let s=o+(t-o)%u;return s<o&&(s=u+s),s===0?0:s}const As=t=>["add","add-unique","toggle"].includes(t),Im=".*+?^${}()|[]\\",Mm=Object.keys(xi),Os=Ze({name:"QSelect",inheritAttrs:!1,props:{...ks,...Nl,...xi,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:As},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:ks.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...zl,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(t,{slots:o,emit:l}){const{proxy:u}=r.getCurrentInstance(),{$q:s}=u,c=r.ref(!1),h=r.ref(!1),g=r.ref(-1),w=r.ref(""),k=r.ref(!1),v=r.ref(!1);let C=null,E=null,y,T,z,R=null,H,F,N,Q;const G=r.ref(null),j=r.ref(null),K=r.ref(null),le=r.ref(null),V=r.ref(null),$=_u(t),Z=Nu($i),A=r.computed(()=>Array.isArray(t.options)?t.options.length:0),te=r.computed(()=>t.virtualScrollItemSize===void 0?t.optionsDense===!0?24:48:t.virtualScrollItemSize),{virtualScrollSliceRange:P,virtualScrollSliceSizeComputed:ae,localResetVirtualScroll:ue,padVirtualScroll:fe,onVirtualScrollEvt:W,scrollTo:se,setVirtualScrollSize:ge}=Rm({virtualScrollLength:A,getVirtualScrollTarget:Ni,getVirtualScrollEl:Fr,virtualScrollItemSizeComputed:te}),B=Hl(),O=r.computed(()=>{const _=t.mapOptions===!0&&t.multiple!==!0,ee=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 X=t.mapOptions===!0&&y!==void 0?y:[],me=ee.map(Ie=>$r(Ie,X));return t.modelValue===null&&_===!0?me.filter(Ie=>Ie!==null):me}return ee}),ie=r.computed(()=>{const _={};return Mm.forEach(ee=>{const X=t[ee];X!==void 0&&(_[ee]=X)}),_}),ve=r.computed(()=>t.optionsDark===null?B.isDark.value:t.optionsDark),_e=r.computed(()=>Lr(O.value)),U=r.computed(()=>{let _="q-field__input q-placeholder col";return t.hideSelected===!0||O.value.length===0?[_,t.inputClass]:(_+=" q-field__input--padding",t.inputClass===void 0?_:[_,t.inputClass])}),ne=r.computed(()=>(t.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(t.popupContentClass?" "+t.popupContentClass:"")),Ae=r.computed(()=>A.value===0),Y=r.computed(()=>O.value.map(_=>je.value(_)).join(", ")),De=r.computed(()=>t.displayValue!==void 0?t.displayValue:Y.value),lt=r.computed(()=>t.optionsHtml===!0?()=>!0:_=>_!=null&&_.html===!0),Ft=r.computed(()=>t.displayValueHtml===!0||t.displayValue===void 0&&(t.optionsHtml===!0||O.value.some(lt.value))),yt=r.computed(()=>B.focused.value===!0?t.tabindex:-1),nt=r.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":c.value===!0?"true":"false","aria-controls":`${B.targetUid.value}_lb`};return g.value>=0&&(_["aria-activedescendant"]=`${B.targetUid.value}_${g.value}`),_}),wt=r.computed(()=>({id:`${B.targetUid.value}_lb`,role:"listbox","aria-multiselectable":t.multiple===!0?"true":"false"})),tn=r.computed(()=>O.value.map((_,ee)=>({index:ee,opt:_,html:lt.value(_),selected:!0,removeAtIndex:_n,toggleOption:Ht,tabindex:yt.value}))),ft=r.computed(()=>{if(A.value===0)return[];const{from:_,to:ee}=P.value;return t.options.slice(_,ee).map((X,me)=>{const Ie=zt.value(X)===!0,Be=Fn(X)===!0,Ge=_+me,Ve={clickable:!0,active:Be,activeClass:Ut.value,manualFocus:!0,focused:!1,disable:Ie,tabindex:-1,dense:t.optionsDense,dark:ve.value,role:"option","aria-selected":Be===!0?"true":"false",id:`${B.targetUid.value}_${Ge}`,onClick:()=>{Ht(X)}};return Ie!==!0&&(g.value===Ge&&(Ve.focused=!0),s.platform.is.desktop===!0&&(Ve.onMousemove=()=>{c.value===!0&&Qt(Ge)})),{index:Ge,opt:X,html:lt.value(X),label:je.value(X),selected:Ve.active,focused:Ve.focused,toggleOption:Ht,setOptionIndex:Qt,itemProps:Ve}})}),vn=r.computed(()=>t.dropdownIcon!==void 0?t.dropdownIcon:s.iconSet.arrow.dropdown),Dr=r.computed(()=>t.optionsCover===!1&&t.outlined!==!0&&t.standout!==!0&&t.borderless!==!0&&t.rounded!==!0),Ut=r.computed(()=>t.optionsSelectedClass!==void 0?t.optionsSelectedClass:t.color!==void 0?`text-${t.color}`:""),Fe=r.computed(()=>$n(t.optionValue,"value")),je=r.computed(()=>$n(t.optionLabel,"label")),zt=r.computed(()=>$n(t.optionDisable,"disable")),hr=r.computed(()=>O.value.map(_=>Fe.value(_))),Dn=r.computed(()=>{const _={onInput:$i,onChange:Z,onKeydown:Pi,onKeyup:qi,onKeypress:Vi,onFocus:gr,onClick(ee){T===!0&&Yt(ee)}};return _.onCompositionstart=_.onCompositionupdate=_.onCompositionend=Z,_});r.watch(O,_=>{y=_,t.useInput===!0&&t.fillInput===!0&&t.multiple!==!0&&B.innerLoading.value!==!0&&(h.value!==!0&&c.value!==!0||_e.value!==!0)&&(z!==!0&&ln(),(h.value===!0||c.value===!0)&&yn(""))},{immediate:!0}),r.watch(()=>t.fillInput,ln),r.watch(c,Hr),r.watch(A,mo);function Li(_){return t.emitValue===!0?Fe.value(_):_}function nn(_){if(_!==-1&&_<O.value.length)if(t.multiple===!0){const ee=t.modelValue.slice();l("remove",{index:_,value:ee.splice(_,1)[0]}),l("update:modelValue",ee)}else l("update:modelValue",null)}function _n(_){nn(_),B.focus()}function mr(_,ee){const X=Li(_);if(t.multiple!==!0){t.fillInput===!0&&zn(je.value(_),!0,!0),l("update:modelValue",X);return}if(O.value.length===0){l("add",{index:0,value:X}),l("update:modelValue",t.multiple===!0?[X]:X);return}if(ee===!0&&Fn(_)===!0||t.maxValues!==void 0&&t.modelValue.length>=t.maxValues)return;const me=t.modelValue.slice();l("add",{index:me.length,value:X}),me.push(X),l("update:modelValue",me)}function Ht(_,ee){if(B.editable.value!==!0||_===void 0||zt.value(_)===!0)return;const X=Fe.value(_);if(t.multiple!==!0){ee!==!0&&(zn(t.fillInput===!0?je.value(_):"",!0,!0),rn()),j.value!==null&&j.value.focus(),(O.value.length===0||en(Fe.value(O.value[0]),X)!==!0)&&l("update:modelValue",t.emitValue===!0?X:_);return}if((T!==!0||k.value===!0)&&B.focus(),gr(),O.value.length===0){const Be=t.emitValue===!0?X:_;l("add",{index:0,value:Be}),l("update:modelValue",t.multiple===!0?[Be]:Be);return}const me=t.modelValue.slice(),Ie=hr.value.findIndex(Be=>en(Be,X));if(Ie!==-1)l("remove",{index:Ie,value:me.splice(Ie,1)[0]});else{if(t.maxValues!==void 0&&me.length>=t.maxValues)return;const Be=t.emitValue===!0?X:_;l("add",{index:me.length,value:Be}),me.push(Be)}l("update:modelValue",me)}function Qt(_){if(s.platform.is.desktop!==!0)return;const ee=_!==-1&&_<A.value?_:-1;g.value!==ee&&(g.value=ee)}function bn(_=1,ee){if(c.value===!0){let X=g.value;do X=Es(X+_,-1,A.value-1);while(X!==-1&&X!==g.value&&zt.value(t.options[X])===!0);g.value!==X&&(Qt(X),se(X),ee!==!0&&t.useInput===!0&&t.fillInput===!0&&Un(X>=0?je.value(t.options[X]):H,!0))}}function $r(_,ee){const X=me=>en(Fe.value(me),_);return t.options.find(X)||ee.find(X)||_}function $n(_,ee){const X=_!==void 0?_:ee;return typeof X=="function"?X:me=>me!==null&&typeof me=="object"&&X in me?me[X]:me}function Fn(_){const ee=Fe.value(_);return hr.value.find(X=>en(X,ee))!==void 0}function gr(_){t.useInput===!0&&j.value!==null&&(_===void 0||j.value===_.target&&_.target.value===Y.value)&&j.value.select()}function pr(_){Ln(_,27)===!0&&c.value===!0&&(Yt(_),rn(),ln()),l("keyup",_)}function qi(_){const{value:ee}=_.target;if(_.keyCode!==void 0){pr(_);return}if(_.target.value="",C!==null&&(clearTimeout(C),C=null),E!==null&&(clearTimeout(E),E=null),ln(),typeof ee=="string"&&ee.length!==0){const X=ee.toLocaleLowerCase(),me=Be=>{const Ge=t.options.find(Ve=>Be.value(Ve).toLocaleLowerCase()===X);return Ge===void 0?!1:(O.value.indexOf(Ge)===-1?Ht(Ge):rn(),!0)},Ie=Be=>{me(Fe)!==!0&&(me(je)===!0||Be===!0||yn(ee,!0,()=>Ie(!0)))};Ie()}else B.clearValue(_)}function Vi(_){l("keypress",_)}function Pi(_){if(l("keydown",_),Gl(_)===!0)return;const ee=w.value.length!==0&&(t.newValueMode!==void 0||t.onNewValue!==void 0),X=_.shiftKey!==!0&&t.multiple!==!0&&(g.value!==-1||ee===!0);if(_.keyCode===27){Dt(_);return}if(_.keyCode===9&&X===!1){wn();return}if(_.target===void 0||_.target.id!==B.targetUid.value||B.editable.value!==!0)return;if(_.keyCode===40&&B.innerLoading.value!==!0&&c.value===!1){Ke(_),Sn();return}if(_.keyCode===8&&(t.useChips===!0||t.clearable===!0)&&t.hideSelected!==!0&&w.value.length===0){t.multiple===!0&&Array.isArray(t.modelValue)===!0?nn(t.modelValue.length-1):t.multiple!==!0&&t.modelValue!==null&&l("update:modelValue",null);return}(_.keyCode===35||_.keyCode===36)&&(typeof w.value!="string"||w.value.length===0)&&(Ke(_),g.value=-1,bn(_.keyCode===36?1:-1,t.multiple)),(_.keyCode===33||_.keyCode===34)&&ae.value!==void 0&&(Ke(_),g.value=Math.max(-1,Math.min(A.value,g.value+(_.keyCode===33?-1:1)*ae.value.view)),bn(_.keyCode===33?1:-1,t.multiple)),(_.keyCode===38||_.keyCode===40)&&(Ke(_),bn(_.keyCode===38?-1:1,t.multiple));const me=A.value;if((N===void 0||Q<Date.now())&&(N=""),me>0&&t.useInput!==!0&&_.key!==void 0&&_.key.length===1&&_.altKey===!1&&_.ctrlKey===!1&&_.metaKey===!1&&(_.keyCode!==32||N.length!==0)){c.value!==!0&&Sn(_);const Ie=_.key.toLocaleLowerCase(),Be=N.length===1&&N[0]===Ie;Q=Date.now()+1500,Be===!1&&(Ke(_),N+=Ie);const Ge=new RegExp("^"+N.split("").map(vr=>Im.indexOf(vr)!==-1?"\\"+vr:vr).join(".*"),"i");let Ve=g.value;if(Be===!0||Ve<0||Ge.test(je.value(t.options[Ve]))!==!0)do Ve=Es(Ve+1,-1,me-1);while(Ve!==g.value&&(zt.value(t.options[Ve])===!0||Ge.test(je.value(t.options[Ve]))!==!0));g.value!==Ve&&r.nextTick(()=>{Qt(Ve),se(Ve),Ve>=0&&t.useInput===!0&&t.fillInput===!0&&Un(je.value(t.options[Ve]),!0)});return}if(!(_.keyCode!==13&&(_.keyCode!==32||t.useInput===!0||N!=="")&&(_.keyCode!==9||X===!1))){if(_.keyCode!==9&&Ke(_),g.value!==-1&&g.value<me){Ht(t.options[g.value]);return}if(ee===!0){const Ie=(Be,Ge)=>{if(Ge){if(As(Ge)!==!0)return}else Ge=t.newValueMode;if(zn("",t.multiple!==!0,!0),Be==null)return;(Ge==="toggle"?Ht:mr)(Be,Ge==="add-unique"),t.multiple!==!0&&(j.value!==null&&j.value.focus(),rn())};if(t.onNewValue!==void 0?l("newValue",w.value,Ie):Ie(w.value),t.multiple!==!0)return}c.value===!0?wn():B.innerLoading.value!==!0&&Sn()}}function Fr(){return T===!0?V.value:K.value!==null&&K.value.contentEl!==null?K.value.contentEl:void 0}function Ni(){return Fr()}function io(){return t.hideSelected===!0?[]:o["selected-item"]!==void 0?tn.value.map(_=>o["selected-item"](_)).slice():o.selected!==void 0?[].concat(o.selected()):t.useChips===!0?tn.value.map((_,ee)=>r.h(Wh,{key:"option-"+ee,removable:B.editable.value===!0&&zt.value(_.opt)!==!0,dense:!0,textColor:t.color,tabindex:yt.value,onRemove(){_.removeAtIndex(ee)}},()=>r.h("span",{class:"ellipsis",[_.html===!0?"innerHTML":"textContent"]:je.value(_.opt)}))):[r.h("span",{[Ft.value===!0?"innerHTML":"textContent"]:De.value})]}function Di(){if(Ae.value===!0)return o["no-option"]!==void 0?o["no-option"]({inputValue:w.value}):void 0;const _=o.option!==void 0?o.option:X=>r.h(Gh,{key:X.index,...X.itemProps},()=>r.h(Kh,()=>r.h(jh,()=>r.h("span",{[X.html===!0?"innerHTML":"textContent"]:X.label}))));let ee=fe("div",ft.value.map(_));return o["before-options"]!==void 0&&(ee=o["before-options"]().concat(ee)),In(o["after-options"],ee)}function lo(_,ee){const X=ee===!0?{...nt.value,...B.splitAttrs.attributes.value}:void 0,me={ref:ee===!0?j:void 0,key:"i_t",class:U.value,style:t.inputStyle,value:w.value!==void 0?w.value:"",type:"search",...X,id:ee===!0?B.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,...Dn.value};return _!==!0&&T===!0&&(Array.isArray(me.class)===!0?me.class=[...me.class,"no-pointer-events"]:me.class+=" no-pointer-events"),r.h("input",me)}function $i(_){C!==null&&(clearTimeout(C),C=null),E!==null&&(clearTimeout(E),E=null),!(_&&_.target&&_.target.qComposing===!0)&&(Un(_.target.value||""),z=!0,H=w.value,B.focused.value!==!0&&(T!==!0||k.value===!0)&&B.focus(),t.onFilter!==void 0&&(C=setTimeout(()=>{C=null,yn(w.value)},t.inputDebounce)))}function Un(_,ee){w.value!==_&&(w.value=_,ee===!0||t.inputDebounce===0||t.inputDebounce==="0"?l("inputValue",_):E=setTimeout(()=>{E=null,l("inputValue",_)},t.inputDebounce))}function zn(_,ee,X){z=X!==!0,t.useInput===!0&&(Un(_,!0),(ee===!0||X!==!0)&&(H=_),ee!==!0&&yn(_))}function yn(_,ee,X){if(t.onFilter===void 0||ee!==!0&&B.focused.value!==!0)return;B.innerLoading.value===!0?l("filterAbort"):(B.innerLoading.value=!0,v.value=!0),_!==""&&t.multiple!==!0&&O.value.length!==0&&z!==!0&&_===je.value(O.value[0])&&(_="");const me=setTimeout(()=>{c.value===!0&&(c.value=!1)},10);R!==null&&clearTimeout(R),R=me,l("filter",_,(Ie,Be)=>{(ee===!0||B.focused.value===!0)&&R===me&&(clearTimeout(R),typeof Ie=="function"&&Ie(),v.value=!1,r.nextTick(()=>{B.innerLoading.value=!1,B.editable.value===!0&&(ee===!0?c.value===!0&&rn():c.value===!0?Hr(!0):c.value=!0),typeof Be=="function"&&r.nextTick(()=>{Be(u)}),typeof X=="function"&&r.nextTick(()=>{X(u)})}))},()=>{B.focused.value===!0&&R===me&&(clearTimeout(R),B.innerLoading.value=!1,v.value=!1),c.value===!0&&(c.value=!1)})}function oo(){return r.h(wm,{ref:K,class:ne.value,style:t.popupContentStyle,modelValue:c.value,fit:t.menuShrink!==!0,cover:t.optionsCover===!0&&Ae.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:Dr.value,transitionShow:t.transitionShow,transitionHide:t.transitionHide,transitionDuration:t.transitionDuration,separateClosePopup:!0,...wt.value,onScrollPassive:W,onBeforeShow:Ui,onBeforeHide:Ur,onShow:ao},Di)}function Ur(_){zi(_),wn()}function ao(){ge()}function zr(_){Yt(_),j.value!==null&&j.value.focus(),k.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function uo(_){Yt(_),r.nextTick(()=>{k.value=!1})}function so(){const _=[r.h(zh,{class:`col-auto ${B.fieldClass.value}`,...ie.value,for:B.targetUid.value,dark:ve.value,square:!0,loading:v.value,itemAligned:!1,filled:!0,stackLabel:w.value.length!==0,...B.splitAttrs.listeners.value,onFocus:zr,onBlur:uo},{...o,rawControl:()=>B.getControl(!0),before:void 0,after:void 0})];return c.value===!0&&_.push(r.h("div",{ref:V,class:ne.value+" scroll",style:t.popupContentStyle,...wt.value,onClick:Dt,onScrollPassive:W},Di())),r.h(Om,{ref:le,modelValue:h.value,position:t.useInput===!0?"top":void 0,transitionShow:F,transitionHide:t.transitionHide,transitionDuration:t.transitionDuration,noRouteDismiss:t.popupNoRouteDismiss,onBeforeShow:Ui,onBeforeHide:co,onHide:fo,onShow:ho},()=>r.h("div",{class:"q-select__dialog"+(ve.value===!0?" q-select__dialog--dark q-dark":"")+(k.value===!0?" q-select__dialog--focused":"")},_))}function co(_){zi(_),le.value!==null&&le.value.__updateRefocusTarget(B.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),B.focused.value=!1}function fo(_){rn(),B.focused.value===!1&&l("blur",_),ln()}function ho(){const _=document.activeElement;(_===null||_.id!==B.targetUid.value)&&j.value!==null&&j.value!==_&&j.value.focus(),ge()}function wn(){h.value!==!0&&(g.value=-1,c.value===!0&&(c.value=!1),B.focused.value===!1&&(R!==null&&(clearTimeout(R),R=null),B.innerLoading.value===!0&&(l("filterAbort"),B.innerLoading.value=!1,v.value=!1)))}function Sn(_){B.editable.value===!0&&(T===!0?(B.onControlFocusin(_),h.value=!0,r.nextTick(()=>{B.focus()})):B.focus(),t.onFilter!==void 0?yn(w.value):(Ae.value!==!0||o["no-option"]!==void 0)&&(c.value=!0))}function rn(){h.value=!1,wn()}function ln(){t.useInput===!0&&zn(t.multiple!==!0&&t.fillInput===!0&&O.value.length!==0&&je.value(O.value[0])||"",!0,!0)}function Hr(_){let ee=-1;if(_===!0){if(O.value.length!==0){const X=Fe.value(O.value[0]);ee=t.options.findIndex(me=>en(Fe.value(me),X))}ue(ee)}Qt(ee)}function mo(_,ee){c.value===!0&&B.innerLoading.value===!1&&(ue(-1,!0),r.nextTick(()=>{c.value===!0&&B.innerLoading.value===!1&&(_>ee?ue():Hr(!0))}))}function Fi(){h.value===!1&&K.value!==null&&K.value.updatePosition()}function Ui(_){_!==void 0&&Yt(_),l("popupShow",_),B.hasPopupOpen=!0,B.onControlFocusin(_)}function zi(_){_!==void 0&&Yt(_),l("popupHide",_),B.hasPopupOpen=!1,B.onControlFocusout(_)}function Hi(){T=s.platform.is.mobile!==!0&&t.behavior!=="dialog"?!1:t.behavior!=="menu"&&(t.useInput===!0?o["no-option"]!==void 0||t.onFilter!==void 0||Ae.value===!1:!0),F=s.platform.is.ios===!0&&T===!0&&t.useInput===!0?"fade":t.transitionShow}return r.onBeforeUpdate(Hi),r.onUpdated(Fi),Hi(),r.onBeforeUnmount(()=>{C!==null&&clearTimeout(C),E!==null&&clearTimeout(E)}),Object.assign(u,{showPopup:Sn,hidePopup:rn,removeAtIndex:nn,add:mr,toggleOption:Ht,getOptionIndex:()=>g.value,setOptionIndex:Qt,moveOptionSelection:bn,filter:yn,updateMenuPosition:Fi,updateInputValue:zn,isOptionSelected:Fn,getEmittingOptionValue:Li,isOptionDisabled:(..._)=>zt.value.apply(null,_)===!0,getOptionValue:(..._)=>Fe.value.apply(null,_),getOptionLabel:(..._)=>je.value.apply(null,_)}),Object.assign(B,{innerValue:O,fieldClass:r.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:G,targetRef:j,hasValue:_e,showPopup:Sn,floatingLabel:r.computed(()=>t.hideSelected!==!0&&_e.value===!0||typeof w.value=="number"||w.value.length!==0||Lr(t.displayValue)),getControlChild:()=>{if(B.editable.value!==!1&&(h.value===!0||Ae.value!==!0||o["no-option"]!==void 0))return T===!0?so():oo();B.hasPopupOpen===!0&&(B.hasPopupOpen=!1)},controlEvents:{onFocusin(_){B.onControlFocusin(_)},onFocusout(_){B.onControlFocusout(_,()=>{ln(),wn()})},onClick(_){if(Dt(_),T!==!0&&c.value===!0){wn(),j.value!==null&&j.value.focus();return}Sn(_)}},getControl:_=>{const ee=io(),X=_===!0||h.value!==!0||T!==!0;if(t.useInput===!0)ee.push(lo(_,X));else if(B.editable.value===!0){const Ie=X===!0?nt.value:void 0;ee.push(r.h("input",{ref:X===!0?j:void 0,key:"d_t",class:"q-select__focus-target",id:X===!0?B.targetUid.value:void 0,value:De.value,readonly:!0,"data-autofocus":_===!0||t.autofocus===!0||void 0,...Ie,onKeydown:Pi,onKeyup:pr,onKeypress:Vi})),X===!0&&typeof t.autocomplete=="string"&&t.autocomplete.length!==0&&ee.push(r.h("input",{class:"q-select__autocomplete-input",autocomplete:t.autocomplete,tabindex:-1,onKeyup:qi}))}if($.value!==void 0&&t.disable!==!0&&hr.value.length!==0){const Ie=hr.value.map(Be=>r.h("option",{value:Be,selected:!0}));ee.push(r.h("select",{class:"hidden",name:$.value,multiple:t.multiple},Ie))}const me=t.useInput===!0||X!==!0?void 0:B.splitAttrs.attributes.value;return r.h("div",{class:"q-field__native row items-center",...me,...B.splitAttrs.listeners.value},ee)},getInnerAppend:()=>t.loading!==!0&&v.value!==!0&&t.hideDropdownIcon!==!0?[r.h(bt,{class:"q-select__dropdown-icon"+(c.value===!0?" rotate-180":""),name:vn.value})]:null}),Wl(B)}}),Lm=st(r.defineComponent({__name:"SelectControl",props:r.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=r.ref([]),l=r.useModel(t,"modelValue"),u=t,s=r.ref(!1),c=r.computed(()=>u.control.customParams),h=r.ref([]),g=r.computed(()=>{var C;return((C=c.value)==null?void 0:C.collection)||null}),w=r.computed(()=>g.value?h.value:u.control.options),k=ir();r.watch(g,C=>{if(!C)return;const E=k.getCollection(g.value);if(E){h.value=E;return}s.value=!0},{immediate:!0});function v(C,E){if(C===""){E(()=>{o.value=Ne.cloneDeep(w.value)});return}E(()=>{const y=C.toLowerCase();o.value=(w.value||[]).filter(T=>T.toLowerCase().includes(y))})}return(C,E)=>{const y=r.resolveComponent("ControlLabel");return r.openBlock(),r.createElementBlock(r.Fragment,null,[C.control.label?(r.openBlock(),r.createBlock(y,{key:0,label:C.control.label},null,8,["label"])):r.createCommentVNode("",!0),r.createVNode(ki,{class:"q-card win-card row items-center q-px-md"},{default:r.withCtx(()=>[r.createVNode(Os,{borderless:"",label:C.control.label,modelValue:l.value,"onUpdate:modelValue":E[0]||(E[0]=T=>l.value=T),"emit-value":"","option-label":"label","map-options":"","use-input":"",clearable:"",onFilter:v,options:o.value,style:{minHeight:"70px",width:"300px",margin:"auto"}},null,8,["label","modelValue","options"])]),_:1})],64)}}}),[["__scopeId","data-v-fa1749f7"]]),qm={class:"text-center",style:{width:"100%"}},Vm={class:"text-center text-weight-medium"},Pm={class:"question-title"},Nm=r.defineComponent({__name:"StepHeader",props:{formGroup:{},stepsCount:{}},setup(t){return(o,l)=>(r.openBlock(),r.createElementBlock("div",qm,[r.createElementVNode("div",Vm,r.toDisplayString(o.formGroup.order+1)+"/"+r.toDisplayString(o.stepsCount),1),r.createElementVNode("div",Pm,r.toDisplayString(o.formGroup.title||""),1)]))}});function Dm(){return r.inject(Xd)}function Ts(t,o){const{maxControlsPerGroup:l,notifyValidations:u}={...id,...o||{}},s=ir(),c=r.computed(()=>s.formSteps[t]),h=r.ref([]),g=r.ref([]),w=(y,T)=>{s.setControlValue(t,y);const z=h.value.find(F=>F.id===T);z&&(g.value=od(z));const R=v(y),H=C(y);(R||H)&&k()};function k(){const y=c.value.controls,T=[];cd(y).forEach(R=>{const H=R.controls;if(H.every(N=>!Rl.includes(N.controlType))){T.push(R);return}let F={...R,controls:[]};for(const N of H)if(Rl.includes(N.controlType)){T.push(F),F={...F,controls:[]};const Q=ud(R,N,l);T.push(...Q)}else F.controls.push(N)}),h.value=Ne.orderBy(T,"order").map(R=>({...R,id:R.controls.map(H=>H.id).join("-")})).filter(R=>R.controls.some(H=>H.visible)).map((R,H)=>({...R,order:H,controls:R.controls.filter(F=>F.visible)}))}function v({id:y,value:T}){let z=!1;const H=c.value.controls.filter(F=>{var N;return((N=F.conditions)==null?void 0:N.some(Q=>Q.id===y))||!1});if(H!=null&&H.length)return H.forEach(({id:F,conditions:N,visible:Q})=>{const G=N.every(j=>{const{value:K,operator:le}=j;return{"==":T===K,"!=":T!==K,">":T>K,"<":T<K}[le]||!1});Q!==G&&(s.setControlVisibility(t,F,G),z=!0)}),z}function C({id:y,value:T}){const z=Number(T||0);let R=!1;const F=c.value.controls.filter(N=>{var Q;return N.controlType==="dynamic_array"&&((Q=N.itemsLength)==null?void 0:Q.controlId)===y});if(F!=null&&F.length)return F.forEach(({id:N,itemsLength:Q})=>{(Q==null?void 0:Q.value)!==z&&(s.setControlItemsLength(t,N,z),R=!0)}),R}const{notify:E}=Dm();return r.watch(g,y=>{y.length&&(u&&E({message:y[0],color:"negative",position:"bottom",timeout:5e3,actions:[{label:"✕",color:"white"}]}),g.value=[])},{deep:!0}),r.watch(c,()=>{k()},{immediate:!0}),{model:h,errorMessages:g,rebuildModel:k,onControlValueUpdate:w}}const $m={key:0,style:{height:"100%"}},Fm={class:"q-py-sm"},Um={class:"form-steps-container"},zm={class:"row justify-center items-center",style:{height:"100%",width:"100vw"}},Hm={class:"controls-container",style:{height:"100%"}},Wm={class:"form-container flex column items-center q-px-md",style:{width:"100vw"}},Gm=st(r.defineComponent({__name:"MultipleFormGroups",props:{index:{}},setup(t){const o=t,l=ir(),{model:u,onControlValueUpdate:s}=Ts(o.index),c=r.computed(()=>u.value.length),h=r.ref(0),g=r.computed(()=>u.value[h.value]),w=v=>{const C=Ne.toPairs(Ne.groupBy(v,"row"));return Ne.orderBy(C,([E,y])=>Number(E),"asc").map(([E,y])=>({controls:Ne.orderBy(y,"col","asc")}))};r.watch(h,v=>{const C=v+1===c.value;l.setOnLastSubstep(C)},{immediate:!0});function k(v){return{input_text:Kl,input_number:Kl,checkbox:ku,switch:Kd,select:Lm,cards_select:Dd}[v]||Kl}return(v,C)=>g.value?(r.openBlock(),r.createElementBlock("div",$m,[r.createElementVNode("div",Fm,[r.createVNode(Nm,{formGroup:g.value,stepsCount:c.value},null,8,["formGroup","stepsCount"])]),r.createElementVNode("div",Um,[r.createElementVNode("div",zm,[r.createElementVNode("div",Hm,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(u),E=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:E.id},[h.value===E.order?(r.openBlock(),r.createBlock(yd,{key:0,transition:"slide-left",style:{height:"75%",width:"100vw"},class:"row q-py-xs justify-center items-center bg-grey-1"},{default:r.withCtx(()=>[r.createElementVNode("div",Wm,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(w(E.controls),(y,T)=>(r.openBlock(),r.createElementBlock("div",{class:"q-mb-xl",key:T},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(y.controls,(z,R)=>(r.openBlock(),r.createElementBlock("div",{key:R},[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(k(z.controlType)),{control:z,modelValue:y.controls[R].value,"onUpdate:modelValue":[H=>y.controls[R].value=H,H=>r.unref(s)(z,E.id)]},null,8,["control","modelValue","onUpdate:modelValue"]))]))),128))]))),128))])]),_:2},1024)):r.createCommentVNode("",!0)],64))),128)),r.createVNode(Uh,{currentStep:h.value,stepsCount:c.value,nextDisabled:!g.value.valid,onPrev:C[0]||(C[0]=E=>h.value--),onNext:C[1]||(C[1]=E=>g.value.valid&&h.value++)},null,8,["currentStep","stepsCount","nextDisabled"])])])])])):r.createCommentVNode("",!0)}}),[["__scopeId","data-v-2d9dca33"]]),Km={style:{"font-size":"16px","padding-top":"1rem"}},jm={style:{"font-size":"16px","padding-top":"1rem"}},no=st(r.defineComponent({__name:"SimpleInput",props:r.mergeModels({control:{},rules:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=r.useModel(t,"modelValue"),l=t,u=r.computed(()=>{var s;return(s=l.control.controlType)==null?void 0:s.split("_")[1]});return(s,c)=>(r.openBlock(),r.createBlock(ki,{class:"q-px-md win-card"},{default:r.withCtx(()=>[r.createVNode(Du,{borderless:"","reverse-fill-mask":"",modelValue:o.value,"onUpdate:modelValue":c[0]||(c[0]=h=>o.value=h),label:s.control.label,mask:u.value==="number"?"###.###.###.###.###":void 0,"input-class":{"text-right":u.value==="number"},"input-style":{fontSize:"16px"},rules:s.rules},r.createSlots({_:2},[s.control.prefix?{name:"prepend",fn:r.withCtx(()=>[r.createElementVNode("span",Km,r.toDisplayString(s.control.prefix),1)]),key:"0"}:void 0,s.control.suffix?{name:"append",fn:r.withCtx(()=>[r.createElementVNode("span",jm,r.toDisplayString(s.control.suffix),1)]),key:"1"}:void 0]),1032,["modelValue","label","mask","input-class","rules"])]),_:1}))}}),[["__scopeId","data-v-bd5dfdca"]]),Bs=r.defineComponent({__name:"SimpleSelect",props:r.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=r.useModel(t,"modelValue");return(l,u)=>(r.openBlock(),r.createBlock(ki,{class:"q-px-md win-card"},{default:r.withCtx(()=>[r.createVNode(Os,{borderless:"",label:l.control.label,options:l.control.options,modelValue:o.value,"onUpdate:modelValue":u[0]||(u[0]=s=>o.value=s),"emit-value":"","option-label":"label","map-options":""},null,8,["label","options","modelValue"])]),_:1}))}}),Ym={key:0,style:{height:"100%"}},Qm={class:"question-title text-center q-py-sm"},Zm={class:"form-steps-container bg-grey-1"},Xm={class:"form-container",style:{height:"100%"}},Jm={class:"row items-center"},eg={class:"col-12 row"},tg=st(r.defineComponent({__name:"SingleFormGroup",props:{index:{}},setup(t){const o=t,{model:l,onControlValueUpdate:u}=Ts(o.index,{notifyValidations:!1});function s(w){return{input_text:no,input_number:no,select:Bs,cards_select:Bs,checkbox:ku}[w]||no}const c=w=>Ne.orderBy(Ne.toPairs(Ne.groupBy(w,"row")),"row").map(([k,v])=>({controls:Ne.orderBy(v,"col")}));function h(w){return[k=>{var C;let v="";return(C=w.validators)==null||C.some(E=>{const{param:y,validator:T}=E,z=Ja[T];return z.fn(Number(y))({...w,value:k})?!1:(v=z.message,!0)}),!v.length||v}]}const g=ir();return r.onMounted(()=>g.setOnLastSubstep(!0)),(w,k)=>r.unref(l)?(r.openBlock(),r.createElementBlock("div",Ym,[r.createElementVNode("div",Qm,r.toDisplayString(r.unref(l)[0].title),1),r.createElementVNode("div",Zm,[r.createElementVNode("div",Xm,[r.createElementVNode("div",Jm,[r.createElementVNode("div",eg,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c(r.unref(l)[0].controls),(v,C)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(c(r.unref(l)[0].controls).length>1?"col-md-6 col-12":"col-12"),key:C},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(v.controls,(E,y)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(`col-xs-12 col-sm q-pa-xs ${c(r.unref(l)[0].controls).length>1?"col-md-6 col-12":"col-12"}`),key:y},[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(s(E.controlType)),{control:E,modelValue:E.value,"onUpdate:modelValue":[T=>E.value=T,T=>r.unref(u)(E,r.unref(l)[0].id)],rules:h(E)},null,8,["control","modelValue","onUpdate:modelValue","rules"]))],2))),128))],2))),128))])])])])])):r.createCommentVNode("",!0)}}),[["__scopeId","data-v-a8cd1002"]]),ro=t=>(r.pushScopeId("data-v-ea1ef607"),t=t(),r.popScopeId(),t),ng={class:"buttons-container"},rg={class:"max-container"},ig={key:0,class:"row checkbox justify-end q-my-sm"},lg={style:{"max-width":"650px"}},og=ro(()=>r.createElementVNode("br",{class:"gt-sm"},null,-1)),ag={class:"row justify-between q-my-md q-px-md q-pb-xl"},ug=ro(()=>r.createElementVNode("span",{class:"text-black"},"Atrás",-1)),sg={key:1},cg={key:0,class:"text-black"},fg=ro(()=>r.createElementVNode("span",{class:"gt-sm"},"formulario",-1)),dg={key:1,class:"text-black"},hg=st(r.defineComponent({__name:"StepsNavigationButtons",emits:["submit"],setup(t,{emit:o}){const{nextStep:l,previousStep:u,currentStep:s,stepsCount:c,nextDisabled:h,onLastSubstep:g}=r.toRefs(ir()),w=o,k=r.ref(!1),v=E=>{},C=()=>{s.value===c.value?w("submit"):l.value()};return(E,y)=>(r.openBlock(),r.createElementBlock("div",ng,[r.createElementVNode("div",rg,[r.unref(s)===r.unref(c)?(r.openBlock(),r.createElementBlock("div",ig,[r.createElementVNode("div",lg,[r.createVNode(Cu,{color:"info",class:"checkbox",modelValue:k.value,"onUpdate:modelValue":y[1]||(y[1]=T=>k.value=T)},{default:r.withCtx(()=>[r.createElementVNode("div",null,[r.createTextVNode(" He leído, comprendo y acepto los términos de tratamiento de datos "),og,r.createTextVNode(" personales para esta solicitud. Más info. sobre la protección de datos "),r.createElementVNode("span",{style:{"text-decoration":"underline"},onClick:y[0]||(y[0]=T=>v())},"aquí"),r.createTextVNode(". ")])]),_:1},8,["modelValue"])])])):r.createCommentVNode("",!0),r.createElementVNode("div",ag,[r.unref(s)>1?(r.openBlock(),r.createBlock(cr,{key:0,color:"info",class:"q-px-xl q-py-sm q-mr-sm win-btn win-btn-primary bg-white",onClick:r.unref(u),flat:"","no-caps":""},{default:r.withCtx(()=>[ug]),_:1},8,["onClick"])):(r.openBlock(),r.createElementBlock("div",sg)),r.createElementVNode("div",null,[!r.unref(h)&&r.unref(g)?(r.openBlock(),r.createBlock(cr,{key:0,color:"green",class:"q-px-xl q-py-sm q-ml-sm win-btn win-btn-primary bg-white",onClick:C,disable:r.unref(s)===r.unref(c)&&!k.value,flat:"","no-caps":""},{default:r.withCtx(()=>[r.unref(s)===r.unref(c)?(r.openBlock(),r.createElementBlock("span",cg,[r.createTextVNode(" Enviar "),fg])):(r.openBlock(),r.createElementBlock("span",dg," Siguiente "))]),_:1},8,["disable"])):r.createCommentVNode("",!0)])])])]))}}),[["__scopeId","data-v-ea1ef607"]]),Rs=r.defineComponent({__name:"DynamicForm",props:{forms:{}},emits:["onSubmit"],setup(t,{emit:o}){const l=t,u=o,s=r.ref(!1),c=ir(),h=w=>Ne.keys(Ne.groupBy(w.controls,"group")).length===1;r.watch(()=>l.forms,w=>{const v=new ru().fromRaw(w);c.setFormSteps(v)},{immediate:!0});function g(){const w=Ne.cloneDeep(c.formSteps),v=new ru().toRaw(w);u("onSubmit",v)}return(w,k)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("div",null,[r.renderSlot(w.$slots,"header"),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(c).formSteps,(v,C)=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:C},[h(v)?r.withDirectives((r.openBlock(),r.createBlock(tg,{key:0,index:C},null,8,["index"])),[[r.vShow,r.unref(c).currentStep===C+1]]):r.withDirectives((r.openBlock(),r.createBlock(Gm,{key:1,index:C,onOnLastStep:k[0]||(k[0]=E=>s.value=E)},null,8,["index"])),[[r.vShow,r.unref(c).currentStep===C+1]])],64))),128))]),r.createVNode(hg,{onSubmit:g})],64))}}),mg=r.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),Is=r.defineComponent({__name:"TestUi",setup(t){const o=r.ref("Test W2W UI!");return(l,u)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[mg,r.createElementVNode("h1",null,r.toDisplayString(o.value),1)],64))}}),gg=r.defineComponent({__name:"DomSection",props:{section:{}},setup(t){const o=r.ref(null),l=t;return r.watch([()=>l.section,o],([u,s])=>{u&&s&&s.appendChild(u)}),(u,s)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"container",ref:o},null,512))}});function Ms(t,o){try{return o.split(".").reduce((u,s)=>u[s],t)}catch(l){return console.error(l),`{{${o}}}`}}const pg={class:"card"},vg={key:0,class:"card-header"},_g={key:0,contenteditable:""},bg={class:"card-content"},yg={contenteditable:"",class:"field-label"},wg={contenteditable:"",class:"field-value"},Sg=st(r.defineComponent({__name:"Card",props:{card:{},data:{}},setup(t){const o=t;function l(s){const c=s.value||Ms(o.data,s.key||"");return u(c,s.format)}function u(s,c){return c?c==="currency"?new Intl.NumberFormat("es-ES",{style:"currency",currency:"EUR"}).format(s):c==="percentage"?`${s} %`:s:s}return(s,c)=>(r.openBlock(),r.createElementBlock("div",pg,[s.card.title||s.card.subtitle?(r.openBlock(),r.createElementBlock("div",vg,[s.card.title?(r.openBlock(),r.createElementBlock("h3",_g,r.toDisplayString(s.card.title),1)):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),r.createElementVNode("div",bg,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.card.fields,(h,g)=>(r.openBlock(),r.createElementBlock("div",{key:g,class:"card-field"},[r.createElementVNode("span",yg,r.toDisplayString(h.label),1),r.createElementVNode("span",wg,r.toDisplayString(l(h)),1)]))),128))])]))}}),[["__scopeId","data-v-758b9217"]]);function Mi(t,o={}){const l=r.inject("data"),u=r.computed(()=>l.value[t]||o),s=r.computed(()=>l.value.global||{}),c=r.computed(()=>({...s.value,...u.value}));return{sectionData:u,globalData:s,data:c}}const xg=st(r.defineComponent({__name:"CardGridSection",props:{styles:{},id:{},content:{}},setup(t){const o=t,{data:l}=Mi(o.id,{});return(u,s)=>(r.openBlock(),r.createElementBlock("div",{class:"card-section",style:r.normalizeStyle({...u.styles||{}})},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(u.content.cards,(c,h)=>(r.openBlock(),r.createBlock(Sg,{key:h,card:c,data:r.unref(l)},null,8,["card","data"]))),128))],4))}}),[["__scopeId","data-v-91deb527"]]),Cg=["src","alt"],kg=st(r.defineComponent({__name:"ImageSection",props:{styles:{},id:{},content:{}},setup(t){const o=t,{content:l,styles:u}=r.toRefs(o);return Mi(o.id,{}),(s,c)=>(r.openBlock(),r.createElementBlock("div",{style:r.normalizeStyle({...r.unref(u)||{},justifyContent:r.unref(l).align}),class:"img-container"},[r.createElementVNode("img",{src:r.unref(l).src,alt:r.unref(l).alt,style:r.normalizeStyle({width:r.unref(l).width,height:r.unref(l).height})},null,12,Cg)],4))}}),[["__scopeId","data-v-aa2f79c1"]]),Eg="#f5f5f5",Ag=st(r.defineComponent({__name:"TableSection",props:{styles:{},id:{},content:{}},setup(t){const o=t,{columns:l}=r.toRefs(o.content),{data:u}=Mi(o.id,[]),s=r.computed(()=>[...u.value[o.content.rowsKey]||[]]);return(c,h)=>(r.openBlock(),r.createElementBlock("table",{style:r.normalizeStyle({width:"100%",...c.styles||{}}),class:"table-section"},[r.createElementVNode("thead",null,[r.createElementVNode("tr",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(l),g=>(r.openBlock(),r.createElementBlock("th",{key:g.key,style:r.normalizeStyle({textAlign:g.align||"left"}),contenteditable:""},r.toDisplayString(g.header),5))),128))])]),r.createElementVNode("tbody",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.value,(g,w)=>(r.openBlock(),r.createElementBlock("tr",{key:w,style:r.normalizeStyle({backgroundColor:w%2===0?Eg:"transparent"})},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(l),k=>(r.openBlock(),r.createElementBlock("td",{key:k.key,style:r.normalizeStyle({textAlign:k.align||"left"}),contenteditable:""},r.toDisplayString(g[k.key]),5))),128))],4))),128))])],4))}}),[["__scopeId","data-v-e0c84f86"]]),Og={key:0,contenteditable:""},Tg={key:1,contenteditable:""},Bg={key:2,contenteditable:""},Rg=st(r.defineComponent({__name:"TextSection",props:{styles:{},id:{},content:{}},setup(t){const o=t,{data:l}=Mi(o.id,{}),u=r.computed(()=>o.content.lines.map(({type:c,text:h})=>({type:c,text:s(l.value,h)})));function s(c,h){const g=h.match(/{{(.*?)}}/g);return g?g.reduce((w,k)=>{const v=k.replace(/{{|}}/g,""),C=Ms(c,v);return w.replace(k,C??v)},h):h}return(c,h)=>(r.openBlock(),r.createElementBlock("div",{style:r.normalizeStyle({...c.styles||{}})},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(u.value,({type:g,text:w})=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[g==="title"?(r.openBlock(),r.createElementBlock("h1",Og,r.toDisplayString(w),1)):r.createCommentVNode("",!0),g==="subtitle"?(r.openBlock(),r.createElementBlock("h2",Tg,r.toDisplayString(w),1)):r.createCommentVNode("",!0),g==="paragraph"?(r.openBlock(),r.createElementBlock("p",Bg,r.toDisplayString(w),1)):r.createCommentVNode("",!0)],64))),256))],4))}}),[["__scopeId","data-v-23580bf4"]]),Ig=r.defineComponent({__name:"SectionWrapper",props:{section:{}},setup(t){const o=t,l={[pt.LayoutSectionType.TEXT]:Rg,[pt.LayoutSectionType.IMAGE]:kg,[pt.LayoutSectionType.TABLE]:Ag,[pt.LayoutSectionType.CARDS_GRID]:xg},u=r.computed(()=>o.section.type),s=r.computed(()=>({content:o.section.content,styles:o.section.styles,id:o.section.idDocLaySection}));return(c,h)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(l[u.value]),r.normalizeProps(r.guardReactiveProps(s.value)),null,16))}}),Ls=st(r.defineComponent({__name:"SectionsContainer",props:{layout:{},data:{},htmlNodes:{}},setup(t){const o=t,{layout:l,data:u}=r.toRefs(o);r.provide("data",u);const s=r.computed(()=>{var g;const h=l.value.sections.map(w=>({type:"default",section:w}));return(g=o.htmlNodes)==null||g.forEach(({index:w,element:k})=>{const v=w>h.length?h.length:w;h.splice(v,0,{type:"html",section:k})}),h}),c=l.value.styles;return(h,g)=>(r.openBlock(),r.createElementBlock("div",{class:"sections-container",style:r.normalizeStyle({...r.unref(c)||{}})},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.value,({type:w,section:k})=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[w==="default"?(r.openBlock(),r.createBlock(Ig,{key:0,section:k},null,8,["section"])):(r.openBlock(),r.createBlock(gg,{key:1,section:k},null,8,["section"]))],64))),256))],4))}}),[["__scopeId","data-v-7007f79f"]]),Mg={install(t,o){if(o!=null&&o.pinia)t.use(o.pinia);else throw new Error("No se ha encontrado una instancia de pinia");t.component("DynamicForm",Rs),t.component("TestUi",Is),t.component("SectionsContainer",Ls)}};Nt.DynamicForm=Rs,Nt.SectionsContainer=Ls,Nt.TestUi=Is,Nt.default=Mg,Object.defineProperties(Nt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});