@win2win/shared-ui 0.0.19 → 0.0.20
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.
- package/dist/index.d.ts.map +1 -1
- package/dist/stores/useFormStore.d.ts.map +1 -1
- package/dist/w2w-shared-ui.js +1386 -1384
- package/dist/w2w-shared-ui.umd.cjs +7 -7
- package/package.json +1 -1
|
@@ -5,10 +5,10 @@
|
|
|
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
|
-
*/li.exports,function(t,l){(function(){var o,u="4.17.21",s=200,f="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",m="Expected a function",g="Invalid `variable` option passed into `_.template`",C="__lodash_hash_undefined__",A=500,v="__lodash_placeholder__",k=1,y=2,w=4,R=1,W=2,O=1,G=2,U=4,D=8,Q=16,j=32,Y=64,I=128,le=256,P=512,T=30,V="...",S=800,Z=16,F=1,ae=2,se=3,ce=1/0,H=9007199254740991,ie=17976931348623157e292,ge=NaN,q=4294967295,B=q-1,oe=q>>>1,ve=[["ary",I],["bind",O],["bindKey",G],["curry",D],["curryRight",Q],["flip",P],["partial",j],["partialRight",Y],["rearg",le]],_e="[object Arguments]",K="[object Array]",ne="[object AsyncFunction]",Ee="[object Boolean]",X="[object Date]",Ne="[object DOMException]",ot="[object Error]",Nt="[object Function]",_t="[object GeneratorFunction]",nt="[object Map]",bt="[object Number]",en="[object Null]",ct="[object Object]",pn="[object Promise]",$r="[object Proxy]",$t="[object RegExp]",Fe="[object Set]",Ge="[object String]",Ft="[object Symbol]",cr="[object Undefined]",Fn="[object WeakMap]",Ti="[object WeakSet]",tn="[object ArrayBuffer]",vn="[object DataView]",fr="[object Float32Array]",Dt="[object Float64Array]",Gt="[object Int8Array]",_n="[object Int16Array]",Fr="[object Int32Array]",Dn="[object Uint8Array]",zn="[object Uint8ClampedArray]",dr="[object Uint16Array]",hr="[object Uint32Array]",Bi=/\b__p \+= '';/g,Ri=/\b(__p \+=) '' \+/g,Oi=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Dr=/&(?:amp|lt|gt|quot|#39);/g,qi=/[&<>"']/g,rl=RegExp(Dr.source),Mi=RegExp(qi.source),il=/<%-([\s\S]+?)%>/g,Vi=/<%([\s\S]+?)%>/g,Un=/<%=([\s\S]+?)%>/g,Wn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,bn=/^\w*$/,ol=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,zr=/[\\^$.*+?()[\]{}|]/g,ll=RegExp(zr.source),Ur=/^\s+/,al=/\s/,ul=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,sl=/\{\n\/\* \[wrapped with (.+)\] \*/,cl=/,? & /,fl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,yn=/[()=,{}\[\]\/\s]/,wn=/\\(\\)?/g,nn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,rn=/\w*$/,Wr=/^[-+]0x[0-9a-f]+$/i,dl=/^0b[01]+$/i,Li=/^\[object .+?Constructor\]$/,Ii=/^0o[0-7]+$/i,Pi=/^(?:0|[1-9]\d*)$/,Ni=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_=/($^)/,te=/['\n\r\u2028\u2029\\]/g,J="\\ud800-\\udfff",me="\\u0300-\\u036f",Oe="\\ufe20-\\ufe2f",Be="\\u20d0-\\u20ff",He=me+Oe+Be,Le="\\u2700-\\u27bf",mr="a-z\\xdf-\\xf6\\xf8-\\xff",rg="\\xac\\xb1\\xd7\\xf7",ig="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",og="\\u2000-\\u206f",lg=" \\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",ps="A-Z\\xc0-\\xd6\\xd8-\\xde",vs="\\ufe0e\\ufe0f",_s=rg+ig+og+lg,hl="['’]",ag="["+J+"]",bs="["+_s+"]",$i="["+He+"]",ys="\\d+",ug="["+Le+"]",ws="["+mr+"]",Ss="[^"+J+_s+ys+Le+mr+ps+"]",ml="\\ud83c[\\udffb-\\udfff]",sg="(?:"+$i+"|"+ml+")",xs="[^"+J+"]",gl="(?:\\ud83c[\\udde6-\\uddff]){2}",pl="[\\ud800-\\udbff][\\udc00-\\udfff]",gr="["+ps+"]",Cs="\\u200d",ks="(?:"+ws+"|"+Ss+")",cg="(?:"+gr+"|"+Ss+")",Es="(?:"+hl+"(?:d|ll|m|re|s|t|ve))?",As="(?:"+hl+"(?:D|LL|M|RE|S|T|VE))?",Ts=sg+"?",Bs="["+vs+"]?",fg="(?:"+Cs+"(?:"+[xs,gl,pl].join("|")+")"+Bs+Ts+")*",dg="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",hg="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Rs=Bs+Ts+fg,mg="(?:"+[ug,gl,pl].join("|")+")"+Rs,gg="(?:"+[xs+$i+"?",$i,gl,pl,ag].join("|")+")",pg=RegExp(hl,"g"),vg=RegExp($i,"g"),vl=RegExp(ml+"(?="+ml+")|"+gg+Rs,"g"),_g=RegExp([gr+"?"+ws+"+"+Es+"(?="+[bs,gr,"$"].join("|")+")",cg+"+"+As+"(?="+[bs,gr+ks,"$"].join("|")+")",gr+"?"+ks+"+"+Es,gr+"+"+As,hg,dg,ys,mg].join("|"),"g"),bg=RegExp("["+Cs+J+He+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 ]/,wg=["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"],Sg=-1,Ve={};Ve[fr]=Ve[Dt]=Ve[Gt]=Ve[_n]=Ve[Fr]=Ve[Dn]=Ve[zn]=Ve[dr]=Ve[hr]=!0,Ve[_e]=Ve[K]=Ve[tn]=Ve[Ee]=Ve[vn]=Ve[X]=Ve[ot]=Ve[Nt]=Ve[nt]=Ve[bt]=Ve[ct]=Ve[$t]=Ve[Fe]=Ve[Ge]=Ve[Fn]=!1;var Me={};Me[_e]=Me[K]=Me[tn]=Me[vn]=Me[Ee]=Me[X]=Me[fr]=Me[Dt]=Me[Gt]=Me[_n]=Me[Fr]=Me[nt]=Me[bt]=Me[ct]=Me[$t]=Me[Fe]=Me[Ge]=Me[Ft]=Me[Dn]=Me[zn]=Me[dr]=Me[hr]=!0,Me[ot]=Me[Nt]=Me[Fn]=!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"},Cg={"&":"&","<":"<",">":">",'"':""","'":"'"},kg={"&":"&","<":"<",">":">",""":'"',"'":"'"},Eg={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ag=parseFloat,Tg=parseInt,Os=typeof Xe=="object"&&Xe&&Xe.Object===Object&&Xe,Bg=typeof self=="object"&&self&&self.Object===Object&&self,et=Os||Bg||Function("return this")(),_l=l&&!l.nodeType&&l,Hn=_l&&!0&&t&&!t.nodeType&&t,qs=Hn&&Hn.exports===_l,bl=qs&&Os.process,Tt=function(){try{var x=Hn&&Hn.require&&Hn.require("util").types;return x||bl&&bl.binding&&bl.binding("util")}catch{}}(),Ms=Tt&&Tt.isArrayBuffer,Vs=Tt&&Tt.isDate,Ls=Tt&&Tt.isMap,Is=Tt&&Tt.isRegExp,Ps=Tt&&Tt.isSet,Ns=Tt&&Tt.isTypedArray;function yt(x,L,M){switch(M.length){case 0:return x.call(L);case 1:return x.call(L,M[0]);case 2:return x.call(L,M[0],M[1]);case 3:return x.call(L,M[0],M[1],M[2])}return x.apply(L,M)}function Rg(x,L,M,re){for(var pe=-1,Ae=x==null?0:x.length;++pe<Ae;){var je=x[pe];L(re,je,M(je),x)}return re}function Bt(x,L){for(var M=-1,re=x==null?0:x.length;++M<re&&L(x[M],M,x)!==!1;);return x}function Og(x,L){for(var M=x==null?0:x.length;M--&&L(x[M],M,x)!==!1;);return x}function $s(x,L){for(var M=-1,re=x==null?0:x.length;++M<re;)if(!L(x[M],M,x))return!1;return!0}function Sn(x,L){for(var M=-1,re=x==null?0:x.length,pe=0,Ae=[];++M<re;){var je=x[M];L(je,M,x)&&(Ae[pe++]=je)}return Ae}function Fi(x,L){var M=x==null?0:x.length;return!!M&&pr(x,L,0)>-1}function yl(x,L,M){for(var re=-1,pe=x==null?0:x.length;++re<pe;)if(M(L,x[re]))return!0;return!1}function Ie(x,L){for(var M=-1,re=x==null?0:x.length,pe=Array(re);++M<re;)pe[M]=L(x[M],M,x);return pe}function xn(x,L){for(var M=-1,re=L.length,pe=x.length;++M<re;)x[pe+M]=L[M];return x}function wl(x,L,M,re){var pe=-1,Ae=x==null?0:x.length;for(re&&Ae&&(M=x[++pe]);++pe<Ae;)M=L(M,x[pe],pe,x);return M}function qg(x,L,M,re){var pe=x==null?0:x.length;for(re&&pe&&(M=x[--pe]);pe--;)M=L(M,x[pe],pe,x);return M}function Sl(x,L){for(var M=-1,re=x==null?0:x.length;++M<re;)if(L(x[M],M,x))return!0;return!1}var Mg=xl("length");function Vg(x){return x.split("")}function Lg(x){return x.match(fl)||[]}function Fs(x,L,M){var re;return M(x,function(pe,Ae,je){if(L(pe,Ae,je))return re=Ae,!1}),re}function Di(x,L,M,re){for(var pe=x.length,Ae=M+(re?1:-1);re?Ae--:++Ae<pe;)if(L(x[Ae],Ae,x))return Ae;return-1}function pr(x,L,M){return L===L?Gg(x,L,M):Di(x,Ds,M)}function Ig(x,L,M,re){for(var pe=M-1,Ae=x.length;++pe<Ae;)if(re(x[pe],L))return pe;return-1}function Ds(x){return x!==x}function zs(x,L){var M=x==null?0:x.length;return M?kl(x,L)/M:ge}function xl(x){return function(L){return L==null?o:L[x]}}function Cl(x){return function(L){return x==null?o:x[L]}}function Us(x,L,M,re,pe){return pe(x,function(Ae,je,qe){M=re?(re=!1,Ae):L(M,Ae,je,qe)}),M}function Pg(x,L){var M=x.length;for(x.sort(L);M--;)x[M]=x[M].value;return x}function kl(x,L){for(var M,re=-1,pe=x.length;++re<pe;){var Ae=L(x[re]);Ae!==o&&(M=M===o?Ae:M+Ae)}return M}function El(x,L){for(var M=-1,re=Array(x);++M<x;)re[M]=L(M);return re}function Ng(x,L){return Ie(L,function(M){return[M,x[M]]})}function Ws(x){return x&&x.slice(0,js(x)+1).replace(Ur,"")}function wt(x){return function(L){return x(L)}}function Al(x,L){return Ie(L,function(M){return x[M]})}function Hr(x,L){return x.has(L)}function Hs(x,L){for(var M=-1,re=x.length;++M<re&&pr(L,x[M],0)>-1;);return M}function Ks(x,L){for(var M=x.length;M--&&pr(L,x[M],0)>-1;);return M}function $g(x,L){for(var M=x.length,re=0;M--;)x[M]===L&&++re;return re}var Fg=Cl(xg),Dg=Cl(Cg);function zg(x){return"\\"+Eg[x]}function Ug(x,L){return x==null?o:x[L]}function vr(x){return bg.test(x)}function Wg(x){return yg.test(x)}function Hg(x){for(var L,M=[];!(L=x.next()).done;)M.push(L.value);return M}function Tl(x){var L=-1,M=Array(x.size);return x.forEach(function(re,pe){M[++L]=[pe,re]}),M}function Gs(x,L){return function(M){return x(L(M))}}function Cn(x,L){for(var M=-1,re=x.length,pe=0,Ae=[];++M<re;){var je=x[M];(je===L||je===v)&&(x[M]=v,Ae[pe++]=M)}return Ae}function zi(x){var L=-1,M=Array(x.size);return x.forEach(function(re){M[++L]=re}),M}function Kg(x){var L=-1,M=Array(x.size);return x.forEach(function(re){M[++L]=[re,re]}),M}function Gg(x,L,M){for(var re=M-1,pe=x.length;++re<pe;)if(x[re]===L)return re;return-1}function jg(x,L,M){for(var re=M+1;re--;)if(x[re]===L)return re;return re}function _r(x){return vr(x)?Yg(x):Mg(x)}function zt(x){return vr(x)?Zg(x):Vg(x)}function js(x){for(var L=x.length;L--&&al.test(x.charAt(L)););return L}var Qg=Cl(kg);function Yg(x){for(var L=vl.lastIndex=0;vl.test(x);)++L;return L}function Zg(x){return x.match(vl)||[]}function Xg(x){return x.match(_g)||[]}var Jg=function x(L){L=L==null?et:br.defaults(et.Object(),L,br.pick(et,wg));var M=L.Array,re=L.Date,pe=L.Error,Ae=L.Function,je=L.Math,qe=L.Object,Bl=L.RegExp,ep=L.String,Rt=L.TypeError,Ui=M.prototype,tp=Ae.prototype,yr=qe.prototype,Wi=L["__core-js_shared__"],Hi=tp.toString,Re=yr.hasOwnProperty,np=0,Qs=function(){var e=/[^.]+$/.exec(Wi&&Wi.keys&&Wi.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Ki=yr.toString,rp=Hi.call(qe),ip=et._,op=Bl("^"+Hi.call(Re).replace(zr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Gi=qs?L.Buffer:o,kn=L.Symbol,ji=L.Uint8Array,Ys=Gi?Gi.allocUnsafe:o,Qi=Gs(qe.getPrototypeOf,qe),Zs=qe.create,Xs=yr.propertyIsEnumerable,Yi=Ui.splice,Js=kn?kn.isConcatSpreadable:o,Kr=kn?kn.iterator:o,Kn=kn?kn.toStringTag:o,Zi=function(){try{var e=Zn(qe,"defineProperty");return e({},"",{}),e}catch{}}(),lp=L.clearTimeout!==et.clearTimeout&&L.clearTimeout,ap=re&&re.now!==et.Date.now&&re.now,up=L.setTimeout!==et.setTimeout&&L.setTimeout,Xi=je.ceil,Ji=je.floor,Rl=qe.getOwnPropertySymbols,sp=Gi?Gi.isBuffer:o,ec=L.isFinite,cp=Ui.join,fp=Gs(qe.keys,qe),Qe=je.max,rt=je.min,dp=re.now,hp=L.parseInt,tc=je.random,mp=Ui.reverse,Ol=Zn(L,"DataView"),Gr=Zn(L,"Map"),ql=Zn(L,"Promise"),wr=Zn(L,"Set"),jr=Zn(L,"WeakMap"),Qr=Zn(qe,"create"),eo=jr&&new jr,Sr={},gp=Xn(Ol),pp=Xn(Gr),vp=Xn(ql),_p=Xn(wr),bp=Xn(jr),to=kn?kn.prototype:o,Yr=to?to.valueOf:o,nc=to?to.toString:o;function d(e){if(De(e)&&!be(e)&&!(e instanceof Ce)){if(e instanceof Ot)return e;if(Re.call(e,"__wrapped__"))return rf(e)}return new Ot(e)}var xr=function(){function e(){}return function(n){if(!$e(n))return{};if(Zs)return Zs(n);e.prototype=n;var r=new e;return e.prototype=o,r}}();function no(){}function Ot(e,n){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=o}d.templateSettings={escape:il,evaluate:Vi,interpolate:Un,variable:"",imports:{_:d}},d.prototype=no.prototype,d.prototype.constructor=d,Ot.prototype=xr(no.prototype),Ot.prototype.constructor=Ot;function Ce(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=q,this.__views__=[]}function yp(){var e=new Ce(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 wp(){if(this.__filtered__){var e=new Ce(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Sp(){var e=this.__wrapped__.value(),n=this.__dir__,r=be(e),a=n<0,c=r?e.length:0,h=Vv(0,c,this.__views__),p=h.start,b=h.end,E=b-p,N=a?b:p-1,$=this.__iteratees__,z=$.length,ee=0,ue=rt(E,this.__takeCount__);if(!r||!a&&c==E&&ue==E)return Ec(e,this.__actions__);var de=[];e:for(;E--&&ee<ue;){N+=n;for(var we=-1,he=e[N];++we<z;){var xe=$[we],ke=xe.iteratee,Ct=xe.type,ut=ke(he);if(Ct==ae)he=ut;else if(!ut){if(Ct==F)continue e;break e}}de[ee++]=he}return de}Ce.prototype=xr(no.prototype),Ce.prototype.constructor=Ce;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__=Qr?Qr(null):{},this.size=0}function Cp(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}function kp(e){var n=this.__data__;if(Qr){var r=n[e];return r===C?o:r}return Re.call(n,e)?n[e]:o}function Ep(e){var n=this.__data__;return Qr?n[e]!==o:Re.call(n,e)}function Ap(e,n){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Qr&&n===o?C:n,this}Gn.prototype.clear=xp,Gn.prototype.delete=Cp,Gn.prototype.get=kp,Gn.prototype.has=Ep,Gn.prototype.set=Ap;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 Tp(){this.__data__=[],this.size=0}function Bp(e){var n=this.__data__,r=ro(n,e);if(r<0)return!1;var a=n.length-1;return r==a?n.pop():Yi.call(n,r,1),--this.size,!0}function Rp(e){var n=this.__data__,r=ro(n,e);return r<0?o:n[r][1]}function Op(e){return ro(this.__data__,e)>-1}function qp(e,n){var r=this.__data__,a=ro(r,e);return a<0?(++this.size,r.push([e,n])):r[a][1]=n,this}on.prototype.clear=Tp,on.prototype.delete=Bp,on.prototype.get=Rp,on.prototype.has=Op,on.prototype.set=qp;function ln(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 Mp(){this.size=0,this.__data__={hash:new Gn,map:new(Gr||on),string:new Gn}}function Vp(e){var n=po(this,e).delete(e);return this.size-=n?1:0,n}function Lp(e){return po(this,e).get(e)}function Ip(e){return po(this,e).has(e)}function Pp(e,n){var r=po(this,e),a=r.size;return r.set(e,n),this.size+=r.size==a?0:1,this}ln.prototype.clear=Mp,ln.prototype.delete=Vp,ln.prototype.get=Lp,ln.prototype.has=Ip,ln.prototype.set=Pp;function jn(e){var n=-1,r=e==null?0:e.length;for(this.__data__=new ln;++n<r;)this.add(e[n])}function Np(e){return this.__data__.set(e,C),this}function $p(e){return this.__data__.has(e)}jn.prototype.add=jn.prototype.push=Np,jn.prototype.has=$p;function Ut(e){var n=this.__data__=new on(e);this.size=n.size}function Fp(){this.__data__=new on,this.size=0}function Dp(e){var n=this.__data__,r=n.delete(e);return this.size=n.size,r}function zp(e){return this.__data__.get(e)}function Up(e){return this.__data__.has(e)}function Wp(e,n){var r=this.__data__;if(r instanceof on){var a=r.__data__;if(!Gr||a.length<s-1)return a.push([e,n]),this.size=++r.size,this;r=this.__data__=new ln(a)}return r.set(e,n),this.size=r.size,this}Ut.prototype.clear=Fp,Ut.prototype.delete=Dp,Ut.prototype.get=zp,Ut.prototype.has=Up,Ut.prototype.set=Wp;function rc(e,n){var r=be(e),a=!r&&Jn(e),c=!r&&!a&&Rn(e),h=!r&&!a&&!c&&Ar(e),p=r||a||c||h,b=p?El(e.length,ep):[],E=b.length;for(var N in e)(n||Re.call(e,N))&&!(p&&(N=="length"||c&&(N=="offset"||N=="parent")||h&&(N=="buffer"||N=="byteLength"||N=="byteOffset")||cn(N,E)))&&b.push(N);return b}function ic(e){var n=e.length;return n?e[Ul(0,n-1)]:o}function Hp(e,n){return vo(ft(e),Qn(n,0,e.length))}function Kp(e){return vo(ft(e))}function Ml(e,n,r){(r!==o&&!Wt(e[n],r)||r===o&&!(n in e))&&an(e,n,r)}function Zr(e,n,r){var a=e[n];(!(Re.call(e,n)&&Wt(a,r))||r===o&&!(n in e))&&an(e,n,r)}function ro(e,n){for(var r=e.length;r--;)if(Wt(e[r][0],n))return r;return-1}function Gp(e,n,r,a){return En(e,function(c,h,p){n(a,c,r(c),p)}),a}function oc(e,n){return e&&Qt(n,Ze(n),e)}function jp(e,n){return e&&Qt(n,ht(n),e)}function an(e,n,r){n=="__proto__"&&Zi?Zi(e,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[n]=r}function Vl(e,n){for(var r=-1,a=n.length,c=M(a),h=e==null;++r<a;)c[r]=h?o:ma(e,n[r]);return c}function Qn(e,n,r){return e===e&&(r!==o&&(e=e<=r?e:r),n!==o&&(e=e>=n?e:n)),e}function qt(e,n,r,a,c,h){var p,b=n&k,E=n&y,N=n&w;if(r&&(p=c?r(e,a,c,h):r(e)),p!==o)return p;if(!$e(e))return e;var $=be(e);if($){if(p=Iv(e),!b)return ft(e,p)}else{var z=it(e),ee=z==Nt||z==_t;if(Rn(e))return Bc(e,b);if(z==ct||z==_e||ee&&!c){if(p=E||ee?{}:jc(e),!b)return E?kv(e,jp(p,e)):Cv(e,oc(p,e))}else{if(!Me[z])return c?e:{};p=Pv(e,z,b)}}h||(h=new Ut);var ue=h.get(e);if(ue)return ue;h.set(e,p),Cf(e)?e.forEach(function(he){p.add(qt(he,n,r,he,e,h))}):Sf(e)&&e.forEach(function(he,xe){p.set(xe,qt(he,n,r,xe,e,h))});var de=N?E?ea:Jl:E?ht:Ze,we=$?o:de(e);return Bt(we||e,function(he,xe){we&&(xe=he,he=e[xe]),Zr(p,xe,qt(he,n,r,xe,e,h))}),p}function Qp(e){var n=Ze(e);return function(r){return lc(r,e,n)}}function lc(e,n,r){var a=r.length;if(e==null)return!a;for(e=qe(e);a--;){var c=r[a],h=n[c],p=e[c];if(p===o&&!(c in e)||!h(p))return!1}return!0}function ac(e,n,r){if(typeof e!="function")throw new Rt(m);return ii(function(){e.apply(o,r)},n)}function Xr(e,n,r,a){var c=-1,h=Fi,p=!0,b=e.length,E=[],N=n.length;if(!b)return E;r&&(n=Ie(n,wt(r))),a?(h=yl,p=!1):n.length>=s&&(h=Hr,p=!1,n=new jn(n));e:for(;++c<b;){var $=e[c],z=r==null?$:r($);if($=a||$!==0?$:0,p&&z===z){for(var ee=N;ee--;)if(n[ee]===z)continue e;E.push($)}else h(n,z,a)||E.push($)}return E}var En=Vc(jt),uc=Vc(Il,!0);function Yp(e,n){var r=!0;return En(e,function(a,c,h){return r=!!n(a,c,h),r}),r}function io(e,n,r){for(var a=-1,c=e.length;++a<c;){var h=e[a],p=n(h);if(p!=null&&(b===o?p===p&&!xt(p):r(p,b)))var b=p,E=h}return E}function Zp(e,n,r,a){var c=e.length;for(r=ye(r),r<0&&(r=-r>c?0:c+r),a=a===o||a>c?c:ye(a),a<0&&(a+=c),a=r>a?0:Ef(a);r<a;)e[r++]=n;return e}function sc(e,n){var r=[];return En(e,function(a,c,h){n(a,c,h)&&r.push(a)}),r}function tt(e,n,r,a,c){var h=-1,p=e.length;for(r||(r=$v),c||(c=[]);++h<p;){var b=e[h];n>0&&r(b)?n>1?tt(b,n-1,r,a,c):xn(c,b):a||(c[c.length]=b)}return c}var Ll=Lc(),cc=Lc(!0);function jt(e,n){return e&&Ll(e,n,Ze)}function Il(e,n){return e&&cc(e,n,Ze)}function oo(e,n){return Sn(n,function(r){return fn(e[r])})}function Yn(e,n){n=Tn(n,e);for(var r=0,a=n.length;e!=null&&r<a;)e=e[Yt(n[r++])];return r&&r==a?e:o}function fc(e,n,r){var a=n(e);return be(e)?a:xn(a,r(e))}function lt(e){return e==null?e===o?cr:en:Kn&&Kn in qe(e)?Mv(e):Kv(e)}function Pl(e,n){return e>n}function Xp(e,n){return e!=null&&Re.call(e,n)}function Jp(e,n){return e!=null&&n in qe(e)}function ev(e,n,r){return e>=rt(n,r)&&e<Qe(n,r)}function Nl(e,n,r){for(var a=r?yl:Fi,c=e[0].length,h=e.length,p=h,b=M(h),E=1/0,N=[];p--;){var $=e[p];p&&n&&($=Ie($,wt(n))),E=rt($.length,E),b[p]=!r&&(n||c>=120&&$.length>=120)?new jn(p&&$):o}$=e[0];var z=-1,ee=b[0];e:for(;++z<c&&N.length<E;){var ue=$[z],de=n?n(ue):ue;if(ue=r||ue!==0?ue:0,!(ee?Hr(ee,de):a(N,de,r))){for(p=h;--p;){var we=b[p];if(!(we?Hr(we,de):a(e[p],de,r)))continue e}ee&&ee.push(de),N.push(ue)}}return N}function tv(e,n,r,a){return jt(e,function(c,h,p){n(a,r(c),h,p)}),a}function Jr(e,n,r){n=Tn(n,e),e=Xc(e,n);var a=e==null?e:e[Yt(Vt(n))];return a==null?o:yt(a,e,r)}function dc(e){return De(e)&<(e)==_e}function nv(e){return De(e)&<(e)==tn}function rv(e){return De(e)&<(e)==X}function ei(e,n,r,a,c){return e===n?!0:e==null||n==null||!De(e)&&!De(n)?e!==e&&n!==n:iv(e,n,r,a,ei,c)}function iv(e,n,r,a,c,h){var p=be(e),b=be(n),E=p?K:it(e),N=b?K:it(n);E=E==_e?ct:E,N=N==_e?ct:N;var $=E==ct,z=N==ct,ee=E==N;if(ee&&Rn(e)){if(!Rn(n))return!1;p=!0,$=!1}if(ee&&!$)return h||(h=new Ut),p||Ar(e)?Hc(e,n,r,a,c,h):Ov(e,n,E,r,a,c,h);if(!(r&R)){var ue=$&&Re.call(e,"__wrapped__"),de=z&&Re.call(n,"__wrapped__");if(ue||de){var we=ue?e.value():e,he=de?n.value():n;return h||(h=new Ut),c(we,he,r,a,h)}}return ee?(h||(h=new Ut),qv(e,n,r,a,c,h)):!1}function ov(e){return De(e)&&it(e)==nt}function $l(e,n,r,a){var c=r.length,h=c,p=!a;if(e==null)return!h;for(e=qe(e);c--;){var b=r[c];if(p&&b[2]?b[1]!==e[b[0]]:!(b[0]in e))return!1}for(;++c<h;){b=r[c];var E=b[0],N=e[E],$=b[1];if(p&&b[2]){if(N===o&&!(E in e))return!1}else{var z=new Ut;if(a)var ee=a(N,$,E,e,n,z);if(!(ee===o?ei($,N,R|W,a,z):ee))return!1}}return!0}function hc(e){if(!$e(e)||Dv(e))return!1;var n=fn(e)?op:Li;return n.test(Xn(e))}function lv(e){return De(e)&<(e)==$t}function av(e){return De(e)&&it(e)==Fe}function uv(e){return De(e)&&xo(e.length)&&!!Ve[lt(e)]}function mc(e){return typeof e=="function"?e:e==null?mt:typeof e=="object"?be(e)?vc(e[0],e[1]):pc(e):Pf(e)}function Fl(e){if(!ri(e))return fp(e);var n=[];for(var r in qe(e))Re.call(e,r)&&r!="constructor"&&n.push(r);return n}function sv(e){if(!$e(e))return Hv(e);var n=ri(e),r=[];for(var a in e)a=="constructor"&&(n||!Re.call(e,a))||r.push(a);return r}function Dl(e,n){return e<n}function gc(e,n){var r=-1,a=dt(e)?M(e.length):[];return En(e,function(c,h,p){a[++r]=n(c,h,p)}),a}function pc(e){var n=na(e);return n.length==1&&n[0][2]?Yc(n[0][0],n[0][1]):function(r){return r===e||$l(r,e,n)}}function vc(e,n){return ia(e)&&Qc(n)?Yc(Yt(e),n):function(r){var a=ma(r,e);return a===o&&a===n?ga(r,e):ei(n,a,R|W)}}function lo(e,n,r,a,c){e!==n&&Ll(n,function(h,p){if(c||(c=new Ut),$e(h))cv(e,n,p,r,lo,a,c);else{var b=a?a(la(e,p),h,p+"",e,n,c):o;b===o&&(b=h),Ml(e,p,b)}},ht)}function cv(e,n,r,a,c,h,p){var b=la(e,r),E=la(n,r),N=p.get(E);if(N){Ml(e,r,N);return}var $=h?h(b,E,r+"",e,n,p):o,z=$===o;if(z){var ee=be(E),ue=!ee&&Rn(E),de=!ee&&!ue&&Ar(E);$=E,ee||ue||de?be(b)?$=b:ze(b)?$=ft(b):ue?(z=!1,$=Bc(E,!0)):de?(z=!1,$=Rc(E,!0)):$=[]:oi(E)||Jn(E)?($=b,Jn(b)?$=Af(b):(!$e(b)||fn(b))&&($=jc(E))):z=!1}z&&(p.set(E,$),c($,E,a,h,p),p.delete(E)),Ml(e,r,$)}function _c(e,n){var r=e.length;if(r)return n+=n<0?r:0,cn(n,r)?e[n]:o}function bc(e,n,r){n.length?n=Ie(n,function(h){return be(h)?function(p){return Yn(p,h.length===1?h[0]:h)}:h}):n=[mt];var a=-1;n=Ie(n,wt(fe()));var c=gc(e,function(h,p,b){var E=Ie(n,function(N){return N(h)});return{criteria:E,index:++a,value:h}});return Pg(c,function(h,p){return xv(h,p,r)})}function fv(e,n){return yc(e,n,function(r,a){return ga(e,a)})}function yc(e,n,r){for(var a=-1,c=n.length,h={};++a<c;){var p=n[a],b=Yn(e,p);r(b,p)&&ti(h,Tn(p,e),b)}return h}function dv(e){return function(n){return Yn(n,e)}}function zl(e,n,r,a){var c=a?Ig:pr,h=-1,p=n.length,b=e;for(e===n&&(n=ft(n)),r&&(b=Ie(e,wt(r)));++h<p;)for(var E=0,N=n[h],$=r?r(N):N;(E=c(b,$,E,a))>-1;)b!==e&&Yi.call(b,E,1),Yi.call(e,E,1);return e}function wc(e,n){for(var r=e?n.length:0,a=r-1;r--;){var c=n[r];if(r==a||c!==h){var h=c;cn(c)?Yi.call(e,c,1):Kl(e,c)}}return e}function Ul(e,n){return e+Ji(tc()*(n-e+1))}function hv(e,n,r,a){for(var c=-1,h=Qe(Xi((n-e)/(r||1)),0),p=M(h);h--;)p[a?h:++c]=e,e+=r;return p}function Wl(e,n){var r="";if(!e||n<1||n>H)return r;do n%2&&(r+=e),n=Ji(n/2),n&&(e+=e);while(n);return r}function Se(e,n){return aa(Zc(e,n,mt),e+"")}function mv(e){return ic(Tr(e))}function gv(e,n){var r=Tr(e);return vo(r,Qn(n,0,r.length))}function ti(e,n,r,a){if(!$e(e))return e;n=Tn(n,e);for(var c=-1,h=n.length,p=h-1,b=e;b!=null&&++c<h;){var E=Yt(n[c]),N=r;if(E==="__proto__"||E==="constructor"||E==="prototype")return e;if(c!=p){var $=b[E];N=a?a($,E,b):o,N===o&&(N=$e($)?$:cn(n[c+1])?[]:{})}Zr(b,E,N),b=b[E]}return e}var Sc=eo?function(e,n){return eo.set(e,n),e}:mt,pv=Zi?function(e,n){return Zi(e,"toString",{configurable:!0,enumerable:!1,value:va(n),writable:!0})}:mt;function vv(e){return vo(Tr(e))}function Mt(e,n,r){var a=-1,c=e.length;n<0&&(n=-n>c?0:c+n),r=r>c?c:r,r<0&&(r+=c),c=n>r?0:r-n>>>0,n>>>=0;for(var h=M(c);++a<c;)h[a]=e[a+n];return h}function _v(e,n){var r;return En(e,function(a,c,h){return r=n(a,c,h),!r}),!!r}function ao(e,n,r){var a=0,c=e==null?a:e.length;if(typeof n=="number"&&n===n&&c<=oe){for(;a<c;){var h=a+c>>>1,p=e[h];p!==null&&!xt(p)&&(r?p<=n:p<n)?a=h+1:c=h}return c}return Hl(e,n,mt,r)}function Hl(e,n,r,a){var c=0,h=e==null?0:e.length;if(h===0)return 0;n=r(n);for(var p=n!==n,b=n===null,E=xt(n),N=n===o;c<h;){var $=Ji((c+h)/2),z=r(e[$]),ee=z!==o,ue=z===null,de=z===z,we=xt(z);if(p)var he=a||de;else N?he=de&&(a||ee):b?he=de&&ee&&(a||!ue):E?he=de&&ee&&!ue&&(a||!we):ue||we?he=!1:he=a?z<=n:z<n;he?c=$+1:h=$}return rt(h,B)}function xc(e,n){for(var r=-1,a=e.length,c=0,h=[];++r<a;){var p=e[r],b=n?n(p):p;if(!r||!Wt(b,E)){var E=b;h[c++]=p===0?0:p}}return h}function Cc(e){return typeof e=="number"?e:xt(e)?ge:+e}function St(e){if(typeof e=="string")return e;if(be(e))return Ie(e,St)+"";if(xt(e))return nc?nc.call(e):"";var n=e+"";return n=="0"&&1/e==-ce?"-0":n}function An(e,n,r){var a=-1,c=Fi,h=e.length,p=!0,b=[],E=b;if(r)p=!1,c=yl;else if(h>=s){var N=n?null:Bv(e);if(N)return zi(N);p=!1,c=Hr,E=new jn}else E=n?[]:b;e:for(;++a<h;){var $=e[a],z=n?n($):$;if($=r||$!==0?$:0,p&&z===z){for(var ee=E.length;ee--;)if(E[ee]===z)continue e;n&&E.push(z),b.push($)}else c(E,z,r)||(E!==b&&E.push(z),b.push($))}return b}function Kl(e,n){return n=Tn(n,e),e=Xc(e,n),e==null||delete e[Yt(Vt(n))]}function kc(e,n,r,a){return ti(e,n,r(Yn(e,n)),a)}function uo(e,n,r,a){for(var c=e.length,h=a?c:-1;(a?h--:++h<c)&&n(e[h],h,e););return r?Mt(e,a?0:h,a?h+1:c):Mt(e,a?h+1:0,a?c:h)}function Ec(e,n){var r=e;return r instanceof Ce&&(r=r.value()),wl(n,function(a,c){return c.func.apply(c.thisArg,xn([a],c.args))},r)}function Gl(e,n,r){var a=e.length;if(a<2)return a?An(e[0]):[];for(var c=-1,h=M(a);++c<a;)for(var p=e[c],b=-1;++b<a;)b!=c&&(h[c]=Xr(h[c]||p,e[b],n,r));return An(tt(h,1),n,r)}function Ac(e,n,r){for(var a=-1,c=e.length,h=n.length,p={};++a<c;){var b=a<h?n[a]:o;r(p,e[a],b)}return p}function jl(e){return ze(e)?e:[]}function Ql(e){return typeof e=="function"?e:mt}function Tn(e,n){return be(e)?e:ia(e,n)?[e]:nf(Te(e))}var bv=Se;function Bn(e,n,r){var a=e.length;return r=r===o?a:r,!n&&r>=a?e:Mt(e,n,r)}var Tc=lp||function(e){return et.clearTimeout(e)};function Bc(e,n){if(n)return e.slice();var r=e.length,a=Ys?Ys(r):new e.constructor(r);return e.copy(a),a}function Yl(e){var n=new e.constructor(e.byteLength);return new ji(n).set(new ji(e)),n}function yv(e,n){var r=n?Yl(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function wv(e){var n=new e.constructor(e.source,rn.exec(e));return n.lastIndex=e.lastIndex,n}function Sv(e){return Yr?qe(Yr.call(e)):{}}function Rc(e,n){var r=n?Yl(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Oc(e,n){if(e!==n){var r=e!==o,a=e===null,c=e===e,h=xt(e),p=n!==o,b=n===null,E=n===n,N=xt(n);if(!b&&!N&&!h&&e>n||h&&p&&E&&!b&&!N||a&&p&&E||!r&&E||!c)return 1;if(!a&&!h&&!N&&e<n||N&&r&&c&&!a&&!h||b&&r&&c||!p&&c||!E)return-1}return 0}function xv(e,n,r){for(var a=-1,c=e.criteria,h=n.criteria,p=c.length,b=r.length;++a<p;){var E=Oc(c[a],h[a]);if(E){if(a>=b)return E;var N=r[a];return E*(N=="desc"?-1:1)}}return e.index-n.index}function qc(e,n,r,a){for(var c=-1,h=e.length,p=r.length,b=-1,E=n.length,N=Qe(h-p,0),$=M(E+N),z=!a;++b<E;)$[b]=n[b];for(;++c<p;)(z||c<h)&&($[r[c]]=e[c]);for(;N--;)$[b++]=e[c++];return $}function Mc(e,n,r,a){for(var c=-1,h=e.length,p=-1,b=r.length,E=-1,N=n.length,$=Qe(h-b,0),z=M($+N),ee=!a;++c<$;)z[c]=e[c];for(var ue=c;++E<N;)z[ue+E]=n[E];for(;++p<b;)(ee||c<h)&&(z[ue+r[p]]=e[c++]);return z}function ft(e,n){var r=-1,a=e.length;for(n||(n=M(a));++r<a;)n[r]=e[r];return n}function Qt(e,n,r,a){var c=!r;r||(r={});for(var h=-1,p=n.length;++h<p;){var b=n[h],E=a?a(r[b],e[b],b,r,e):o;E===o&&(E=e[b]),c?an(r,b,E):Zr(r,b,E)}return r}function Cv(e,n){return Qt(e,ra(e),n)}function kv(e,n){return Qt(e,Kc(e),n)}function so(e,n){return function(r,a){var c=be(r)?Rg:Gp,h=n?n():{};return c(r,e,fe(a,2),h)}}function Cr(e){return Se(function(n,r){var a=-1,c=r.length,h=c>1?r[c-1]:o,p=c>2?r[2]:o;for(h=e.length>3&&typeof h=="function"?(c--,h):o,p&&at(r[0],r[1],p)&&(h=c<3?o:h,c=1),n=qe(n);++a<c;){var b=r[a];b&&e(n,b,a,h)}return n})}function Vc(e,n){return function(r,a){if(r==null)return r;if(!dt(r))return e(r,a);for(var c=r.length,h=n?c:-1,p=qe(r);(n?h--:++h<c)&&a(p[h],h,p)!==!1;);return r}}function Lc(e){return function(n,r,a){for(var c=-1,h=qe(n),p=a(n),b=p.length;b--;){var E=p[e?b:++c];if(r(h[E],E,h)===!1)break}return n}}function Ev(e,n,r){var a=n&O,c=ni(e);function h(){var p=this&&this!==et&&this instanceof h?c:e;return p.apply(a?r:this,arguments)}return h}function Ic(e){return function(n){n=Te(n);var r=vr(n)?zt(n):o,a=r?r[0]:n.charAt(0),c=r?Bn(r,1).join(""):n.slice(1);return a[e]()+c}}function kr(e){return function(n){return wl(Lf(Vf(n).replace(pg,"")),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=xr(e.prototype),a=e.apply(r,n);return $e(a)?a:r}}function Av(e,n,r){var a=ni(e);function c(){for(var h=arguments.length,p=M(h),b=h,E=Er(c);b--;)p[b]=arguments[b];var N=h<3&&p[0]!==E&&p[h-1]!==E?[]:Cn(p,E);if(h-=N.length,h<r)return Dc(e,n,co,c.placeholder,o,p,N,o,o,r-h);var $=this&&this!==et&&this instanceof c?a:e;return yt($,this,p)}return c}function Pc(e){return function(n,r,a){var c=qe(n);if(!dt(n)){var h=fe(r,3);n=Ze(n),r=function(b){return h(c[b],b,c)}}var p=e(n,r,a);return p>-1?c[h?n[p]:p]:o}}function Nc(e){return sn(function(n){var r=n.length,a=r,c=Ot.prototype.thru;for(e&&n.reverse();a--;){var h=n[a];if(typeof h!="function")throw new Rt(m);if(c&&!p&&go(h)=="wrapper")var p=new Ot([],!0)}for(a=p?a:r;++a<r;){h=n[a];var b=go(h),E=b=="wrapper"?ta(h):o;E&&oa(E[0])&&E[1]==(I|D|j|le)&&!E[4].length&&E[9]==1?p=p[go(E[0])].apply(p,E[3]):p=h.length==1&&oa(h)?p[b]():p.thru(h)}return function(){var N=arguments,$=N[0];if(p&&N.length==1&&be($))return p.plant($).value();for(var z=0,ee=r?n[z].apply(this,N):$;++z<r;)ee=n[z].call(this,ee);return ee}})}function co(e,n,r,a,c,h,p,b,E,N){var $=n&I,z=n&O,ee=n&G,ue=n&(D|Q),de=n&P,we=ee?o:ni(e);function he(){for(var xe=arguments.length,ke=M(xe),Ct=xe;Ct--;)ke[Ct]=arguments[Ct];if(ue)var ut=Er(he),kt=$g(ke,ut);if(a&&(ke=qc(ke,a,c,ue)),h&&(ke=Mc(ke,h,p,ue)),xe-=kt,ue&&xe<N){var Ue=Cn(ke,ut);return Dc(e,n,co,he.placeholder,r,ke,Ue,b,E,N-xe)}var Ht=z?r:this,hn=ee?Ht[e]:e;return xe=ke.length,b?ke=Gv(ke,b):de&&xe>1&&ke.reverse(),$&&E<xe&&(ke.length=E),this&&this!==et&&this instanceof he&&(hn=we||ni(hn)),hn.apply(Ht,ke)}return he}function $c(e,n){return function(r,a){return tv(r,e,n(a),{})}}function fo(e,n){return function(r,a){var c;if(r===o&&a===o)return n;if(r!==o&&(c=r),a!==o){if(c===o)return a;typeof r=="string"||typeof a=="string"?(r=St(r),a=St(a)):(r=Cc(r),a=Cc(a)),c=e(r,a)}return c}}function Zl(e){return sn(function(n){return n=Ie(n,wt(fe())),Se(function(r){var a=this;return e(n,function(c){return yt(c,a,r)})})})}function ho(e,n){n=n===o?" ":St(n);var r=n.length;if(r<2)return r?Wl(n,e):n;var a=Wl(n,Xi(e/_r(n)));return vr(n)?Bn(zt(a),0,e).join(""):a.slice(0,e)}function Tv(e,n,r,a){var c=n&O,h=ni(e);function p(){for(var b=-1,E=arguments.length,N=-1,$=a.length,z=M($+E),ee=this&&this!==et&&this instanceof p?h:e;++N<$;)z[N]=a[N];for(;E--;)z[N++]=arguments[++b];return yt(ee,c?r:this,z)}return p}function Fc(e){return function(n,r,a){return a&&typeof a!="number"&&at(n,r,a)&&(r=a=o),n=dn(n),r===o?(r=n,n=0):r=dn(r),a=a===o?n<r?1:-1:dn(a),hv(n,r,a,e)}}function mo(e){return function(n,r){return typeof n=="string"&&typeof r=="string"||(n=Lt(n),r=Lt(r)),e(n,r)}}function Dc(e,n,r,a,c,h,p,b,E,N){var $=n&D,z=$?p:o,ee=$?o:p,ue=$?h:o,de=$?o:h;n|=$?j:Y,n&=~($?Y:j),n&U||(n&=~(O|G));var we=[e,n,c,ue,z,de,ee,b,E,N],he=r.apply(o,we);return oa(e)&&Jc(he,we),he.placeholder=a,ef(he,e,n)}function Xl(e){var n=je[e];return function(r,a){if(r=Lt(r),a=a==null?0:rt(ye(a),292),a&&ec(r)){var c=(Te(r)+"e").split("e"),h=n(c[0]+"e"+(+c[1]+a));return c=(Te(h)+"e").split("e"),+(c[0]+"e"+(+c[1]-a))}return n(r)}}var Bv=wr&&1/zi(new wr([,-0]))[1]==ce?function(e){return new wr(e)}:ya;function zc(e){return function(n){var r=it(n);return r==nt?Tl(n):r==Fe?Kg(n):Ng(n,e(n))}}function un(e,n,r,a,c,h,p,b){var E=n&G;if(!E&&typeof e!="function")throw new Rt(m);var N=a?a.length:0;if(N||(n&=~(j|Y),a=c=o),p=p===o?p:Qe(ye(p),0),b=b===o?b:ye(b),N-=c?c.length:0,n&Y){var $=a,z=c;a=c=o}var ee=E?o:ta(e),ue=[e,n,r,a,c,$,z,h,p,b];if(ee&&Wv(ue,ee),e=ue[0],n=ue[1],r=ue[2],a=ue[3],c=ue[4],b=ue[9]=ue[9]===o?E?0:e.length:Qe(ue[9]-N,0),!b&&n&(D|Q)&&(n&=~(D|Q)),!n||n==O)var de=Ev(e,n,r);else n==D||n==Q?de=Av(e,n,b):(n==j||n==(O|j))&&!c.length?de=Tv(e,n,r,a):de=co.apply(o,ue);var we=ee?Sc:Jc;return ef(we(de,ue),e,n)}function Uc(e,n,r,a){return e===o||Wt(e,yr[r])&&!Re.call(a,r)?n:e}function Wc(e,n,r,a,c,h){return $e(e)&&$e(n)&&(h.set(n,e),lo(e,n,o,Wc,h),h.delete(n)),e}function Rv(e){return oi(e)?o:e}function Hc(e,n,r,a,c,h){var p=r&R,b=e.length,E=n.length;if(b!=E&&!(p&&E>b))return!1;var N=h.get(e),$=h.get(n);if(N&&$)return N==n&&$==e;var z=-1,ee=!0,ue=r&W?new jn:o;for(h.set(e,n),h.set(n,e);++z<b;){var de=e[z],we=n[z];if(a)var he=p?a(we,de,z,n,e,h):a(de,we,z,e,n,h);if(he!==o){if(he)continue;ee=!1;break}if(ue){if(!Sl(n,function(xe,ke){if(!Hr(ue,ke)&&(de===xe||c(de,xe,r,a,h)))return ue.push(ke)})){ee=!1;break}}else if(!(de===we||c(de,we,r,a,h))){ee=!1;break}}return h.delete(e),h.delete(n),ee}function Ov(e,n,r,a,c,h,p){switch(r){case vn:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case tn:return!(e.byteLength!=n.byteLength||!h(new ji(e),new ji(n)));case Ee:case X:case bt:return Wt(+e,+n);case ot:return e.name==n.name&&e.message==n.message;case $t:case Ge:return e==n+"";case nt:var b=Tl;case Fe:var E=a&R;if(b||(b=zi),e.size!=n.size&&!E)return!1;var N=p.get(e);if(N)return N==n;a|=W,p.set(e,n);var $=Hc(b(e),b(n),a,c,h,p);return p.delete(e),$;case Ft:if(Yr)return Yr.call(e)==Yr.call(n)}return!1}function qv(e,n,r,a,c,h){var p=r&R,b=Jl(e),E=b.length,N=Jl(n),$=N.length;if(E!=$&&!p)return!1;for(var z=E;z--;){var ee=b[z];if(!(p?ee in n:Re.call(n,ee)))return!1}var ue=h.get(e),de=h.get(n);if(ue&&de)return ue==n&&de==e;var we=!0;h.set(e,n),h.set(n,e);for(var he=p;++z<E;){ee=b[z];var xe=e[ee],ke=n[ee];if(a)var Ct=p?a(ke,xe,ee,n,e,h):a(xe,ke,ee,e,n,h);if(!(Ct===o?xe===ke||c(xe,ke,r,a,h):Ct)){we=!1;break}he||(he=ee=="constructor")}if(we&&!he){var ut=e.constructor,kt=n.constructor;ut!=kt&&"constructor"in e&&"constructor"in n&&!(typeof ut=="function"&&ut instanceof ut&&typeof kt=="function"&&kt instanceof kt)&&(we=!1)}return h.delete(e),h.delete(n),we}function sn(e){return aa(Zc(e,o,af),e+"")}function Jl(e){return fc(e,Ze,ra)}function ea(e){return fc(e,ht,Kc)}var ta=eo?function(e){return eo.get(e)}:ya;function go(e){for(var n=e.name+"",r=Sr[n],a=Re.call(Sr,n)?r.length:0;a--;){var c=r[a],h=c.func;if(h==null||h==e)return c.name}return n}function Er(e){var n=Re.call(d,"placeholder")?d:e;return n.placeholder}function fe(){var e=d.iteratee||_a;return e=e===_a?mc:e,arguments.length?e(arguments[0],arguments[1]):e}function po(e,n){var r=e.__data__;return Fv(n)?r[typeof n=="string"?"string":"hash"]:r.map}function na(e){for(var n=Ze(e),r=n.length;r--;){var a=n[r],c=e[a];n[r]=[a,c,Qc(c)]}return n}function Zn(e,n){var r=Ug(e,n);return hc(r)?r:o}function Mv(e){var n=Re.call(e,Kn),r=e[Kn];try{e[Kn]=o;var a=!0}catch{}var c=Ki.call(e);return a&&(n?e[Kn]=r:delete e[Kn]),c}var ra=Rl?function(e){return e==null?[]:(e=qe(e),Sn(Rl(e),function(n){return Xs.call(e,n)}))}:wa,Kc=Rl?function(e){for(var n=[];e;)xn(n,ra(e)),e=Qi(e);return n}:wa,it=lt;(Ol&&it(new Ol(new ArrayBuffer(1)))!=vn||Gr&&it(new Gr)!=nt||ql&&it(ql.resolve())!=pn||wr&&it(new wr)!=Fe||jr&&it(new jr)!=Fn)&&(it=function(e){var n=lt(e),r=n==ct?e.constructor:o,a=r?Xn(r):"";if(a)switch(a){case gp:return vn;case pp:return nt;case vp:return pn;case _p:return Fe;case bp:return Fn}return n});function Vv(e,n,r){for(var a=-1,c=r.length;++a<c;){var h=r[a],p=h.size;switch(h.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 Lv(e){var n=e.match(sl);return n?n[1].split(cl):[]}function Gc(e,n,r){n=Tn(n,e);for(var a=-1,c=n.length,h=!1;++a<c;){var p=Yt(n[a]);if(!(h=e!=null&&r(e,p)))break;e=e[p]}return h||++a!=c?h:(c=e==null?0:e.length,!!c&&xo(c)&&cn(p,c)&&(be(e)||Jn(e)))}function Iv(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 jc(e){return typeof e.constructor=="function"&&!ri(e)?xr(Qi(e)):{}}function Pv(e,n,r){var a=e.constructor;switch(n){case tn:return Yl(e);case Ee:case X:return new a(+e);case vn:return yv(e,r);case fr:case Dt:case Gt:case _n:case Fr:case Dn:case zn:case dr:case hr:return Rc(e,r);case nt:return new a;case bt:case Ge:return new a(e);case $t:return wv(e);case Fe:return new a;case Ft:return Sv(e)}}function Nv(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(ul,`{
|
|
8
|
+
*/li.exports,function(t,l){(function(){var o,u="4.17.21",s=200,f="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",m="Expected a function",g="Invalid `variable` option passed into `_.template`",C="__lodash_hash_undefined__",A=500,v="__lodash_placeholder__",k=1,y=2,w=4,R=1,W=2,O=1,G=2,U=4,D=8,Q=16,j=32,Y=64,I=128,le=256,P=512,T=30,V="...",S=800,Z=16,F=1,ae=2,se=3,ce=1/0,H=9007199254740991,ie=17976931348623157e292,ge=NaN,q=4294967295,B=q-1,oe=q>>>1,ve=[["ary",I],["bind",O],["bindKey",G],["curry",D],["curryRight",Q],["flip",P],["partial",j],["partialRight",Y],["rearg",le]],_e="[object Arguments]",K="[object Array]",ne="[object AsyncFunction]",Ee="[object Boolean]",X="[object Date]",Ne="[object DOMException]",ot="[object Error]",Nt="[object Function]",_t="[object GeneratorFunction]",nt="[object Map]",bt="[object Number]",en="[object Null]",ct="[object Object]",pn="[object Promise]",$r="[object Proxy]",$t="[object RegExp]",Fe="[object Set]",Ge="[object String]",Ft="[object Symbol]",fr="[object Undefined]",$n="[object WeakMap]",Ti="[object WeakSet]",tn="[object ArrayBuffer]",vn="[object DataView]",dr="[object Float32Array]",Dt="[object Float64Array]",Gt="[object Int8Array]",_n="[object Int16Array]",Fr="[object Int32Array]",Fn="[object Uint8Array]",Dn="[object Uint8ClampedArray]",hr="[object Uint16Array]",mr="[object Uint32Array]",Bi=/\b__p \+= '';/g,Ri=/\b(__p \+=) '' \+/g,Oi=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Dr=/&(?:amp|lt|gt|quot|#39);/g,qi=/[&<>"']/g,rl=RegExp(Dr.source),Mi=RegExp(qi.source),il=/<%-([\s\S]+?)%>/g,Vi=/<%([\s\S]+?)%>/g,zn=/<%=([\s\S]+?)%>/g,Un=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,bn=/^\w*$/,ol=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,zr=/[\\^$.*+?()[\]{}|]/g,ll=RegExp(zr.source),Ur=/^\s+/,al=/\s/,ul=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,sl=/\{\n\/\* \[wrapped with (.+)\] \*/,cl=/,? & /,fl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,yn=/[()=,{}\[\]\/\s]/,wn=/\\(\\)?/g,nn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,rn=/\w*$/,Wr=/^[-+]0x[0-9a-f]+$/i,dl=/^0b[01]+$/i,Li=/^\[object .+?Constructor\]$/,Ii=/^0o[0-7]+$/i,Pi=/^(?:0|[1-9]\d*)$/,Ni=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_=/($^)/,te=/['\n\r\u2028\u2029\\]/g,J="\\ud800-\\udfff",me="\\u0300-\\u036f",Oe="\\ufe20-\\ufe2f",Be="\\u20d0-\\u20ff",He=me+Oe+Be,Le="\\u2700-\\u27bf",gr="a-z\\xdf-\\xf6\\xf8-\\xff",og="\\xac\\xb1\\xd7\\xf7",lg="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ag="\\u2000-\\u206f",ug=" \\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",vs="A-Z\\xc0-\\xd6\\xd8-\\xde",_s="\\ufe0e\\ufe0f",bs=og+lg+ag+ug,hl="['’]",sg="["+J+"]",ys="["+bs+"]",$i="["+He+"]",ws="\\d+",cg="["+Le+"]",Ss="["+gr+"]",xs="[^"+J+bs+ws+Le+gr+vs+"]",ml="\\ud83c[\\udffb-\\udfff]",fg="(?:"+$i+"|"+ml+")",Cs="[^"+J+"]",gl="(?:\\ud83c[\\udde6-\\uddff]){2}",pl="[\\ud800-\\udbff][\\udc00-\\udfff]",pr="["+vs+"]",ks="\\u200d",Es="(?:"+Ss+"|"+xs+")",dg="(?:"+pr+"|"+xs+")",As="(?:"+hl+"(?:d|ll|m|re|s|t|ve))?",Ts="(?:"+hl+"(?:D|LL|M|RE|S|T|VE))?",Bs=fg+"?",Rs="["+_s+"]?",hg="(?:"+ks+"(?:"+[Cs,gl,pl].join("|")+")"+Rs+Bs+")*",mg="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",gg="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Os=Rs+Bs+hg,pg="(?:"+[cg,gl,pl].join("|")+")"+Os,vg="(?:"+[Cs+$i+"?",$i,gl,pl,sg].join("|")+")",_g=RegExp(hl,"g"),bg=RegExp($i,"g"),vl=RegExp(ml+"(?="+ml+")|"+vg+Os,"g"),yg=RegExp([pr+"?"+Ss+"+"+As+"(?="+[ys,pr,"$"].join("|")+")",dg+"+"+Ts+"(?="+[ys,pr+Es,"$"].join("|")+")",pr+"?"+Es+"+"+As,pr+"+"+Ts,gg,mg,ws,pg].join("|"),"g"),wg=RegExp("["+ks+J+He+_s+"]"),Sg=/[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"],Cg=-1,Ve={};Ve[dr]=Ve[Dt]=Ve[Gt]=Ve[_n]=Ve[Fr]=Ve[Fn]=Ve[Dn]=Ve[hr]=Ve[mr]=!0,Ve[_e]=Ve[K]=Ve[tn]=Ve[Ee]=Ve[vn]=Ve[X]=Ve[ot]=Ve[Nt]=Ve[nt]=Ve[bt]=Ve[ct]=Ve[$t]=Ve[Fe]=Ve[Ge]=Ve[$n]=!1;var Me={};Me[_e]=Me[K]=Me[tn]=Me[vn]=Me[Ee]=Me[X]=Me[dr]=Me[Dt]=Me[Gt]=Me[_n]=Me[Fr]=Me[nt]=Me[bt]=Me[ct]=Me[$t]=Me[Fe]=Me[Ge]=Me[Ft]=Me[Fn]=Me[Dn]=Me[hr]=Me[mr]=!0,Me[ot]=Me[Nt]=Me[$n]=!1;var kg={À:"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"},Eg={"&":"&","<":"<",">":">",'"':""","'":"'"},Ag={"&":"&","<":"<",">":">",""":'"',"'":"'"},Tg={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Bg=parseFloat,Rg=parseInt,qs=typeof Xe=="object"&&Xe&&Xe.Object===Object&&Xe,Og=typeof self=="object"&&self&&self.Object===Object&&self,et=qs||Og||Function("return this")(),_l=l&&!l.nodeType&&l,Wn=_l&&!0&&t&&!t.nodeType&&t,Ms=Wn&&Wn.exports===_l,bl=Ms&&qs.process,Tt=function(){try{var x=Wn&&Wn.require&&Wn.require("util").types;return x||bl&&bl.binding&&bl.binding("util")}catch{}}(),Vs=Tt&&Tt.isArrayBuffer,Ls=Tt&&Tt.isDate,Is=Tt&&Tt.isMap,Ps=Tt&&Tt.isRegExp,Ns=Tt&&Tt.isSet,$s=Tt&&Tt.isTypedArray;function yt(x,L,M){switch(M.length){case 0:return x.call(L);case 1:return x.call(L,M[0]);case 2:return x.call(L,M[0],M[1]);case 3:return x.call(L,M[0],M[1],M[2])}return x.apply(L,M)}function qg(x,L,M,re){for(var pe=-1,Ae=x==null?0:x.length;++pe<Ae;){var je=x[pe];L(re,je,M(je),x)}return re}function Bt(x,L){for(var M=-1,re=x==null?0:x.length;++M<re&&L(x[M],M,x)!==!1;);return x}function Mg(x,L){for(var M=x==null?0:x.length;M--&&L(x[M],M,x)!==!1;);return x}function Fs(x,L){for(var M=-1,re=x==null?0:x.length;++M<re;)if(!L(x[M],M,x))return!1;return!0}function Sn(x,L){for(var M=-1,re=x==null?0:x.length,pe=0,Ae=[];++M<re;){var je=x[M];L(je,M,x)&&(Ae[pe++]=je)}return Ae}function Fi(x,L){var M=x==null?0:x.length;return!!M&&vr(x,L,0)>-1}function yl(x,L,M){for(var re=-1,pe=x==null?0:x.length;++re<pe;)if(M(L,x[re]))return!0;return!1}function Ie(x,L){for(var M=-1,re=x==null?0:x.length,pe=Array(re);++M<re;)pe[M]=L(x[M],M,x);return pe}function xn(x,L){for(var M=-1,re=L.length,pe=x.length;++M<re;)x[pe+M]=L[M];return x}function wl(x,L,M,re){var pe=-1,Ae=x==null?0:x.length;for(re&&Ae&&(M=x[++pe]);++pe<Ae;)M=L(M,x[pe],pe,x);return M}function Vg(x,L,M,re){var pe=x==null?0:x.length;for(re&&pe&&(M=x[--pe]);pe--;)M=L(M,x[pe],pe,x);return M}function Sl(x,L){for(var M=-1,re=x==null?0:x.length;++M<re;)if(L(x[M],M,x))return!0;return!1}var Lg=xl("length");function Ig(x){return x.split("")}function Pg(x){return x.match(fl)||[]}function Ds(x,L,M){var re;return M(x,function(pe,Ae,je){if(L(pe,Ae,je))return re=Ae,!1}),re}function Di(x,L,M,re){for(var pe=x.length,Ae=M+(re?1:-1);re?Ae--:++Ae<pe;)if(L(x[Ae],Ae,x))return Ae;return-1}function vr(x,L,M){return L===L?Qg(x,L,M):Di(x,zs,M)}function Ng(x,L,M,re){for(var pe=M-1,Ae=x.length;++pe<Ae;)if(re(x[pe],L))return pe;return-1}function zs(x){return x!==x}function Us(x,L){var M=x==null?0:x.length;return M?kl(x,L)/M:ge}function xl(x){return function(L){return L==null?o:L[x]}}function Cl(x){return function(L){return x==null?o:x[L]}}function Ws(x,L,M,re,pe){return pe(x,function(Ae,je,qe){M=re?(re=!1,Ae):L(M,Ae,je,qe)}),M}function $g(x,L){var M=x.length;for(x.sort(L);M--;)x[M]=x[M].value;return x}function kl(x,L){for(var M,re=-1,pe=x.length;++re<pe;){var Ae=L(x[re]);Ae!==o&&(M=M===o?Ae:M+Ae)}return M}function El(x,L){for(var M=-1,re=Array(x);++M<x;)re[M]=L(M);return re}function Fg(x,L){return Ie(L,function(M){return[M,x[M]]})}function Hs(x){return x&&x.slice(0,Qs(x)+1).replace(Ur,"")}function wt(x){return function(L){return x(L)}}function Al(x,L){return Ie(L,function(M){return x[M]})}function Hr(x,L){return x.has(L)}function Ks(x,L){for(var M=-1,re=x.length;++M<re&&vr(L,x[M],0)>-1;);return M}function Gs(x,L){for(var M=x.length;M--&&vr(L,x[M],0)>-1;);return M}function Dg(x,L){for(var M=x.length,re=0;M--;)x[M]===L&&++re;return re}var zg=Cl(kg),Ug=Cl(Eg);function Wg(x){return"\\"+Tg[x]}function Hg(x,L){return x==null?o:x[L]}function _r(x){return wg.test(x)}function Kg(x){return Sg.test(x)}function Gg(x){for(var L,M=[];!(L=x.next()).done;)M.push(L.value);return M}function Tl(x){var L=-1,M=Array(x.size);return x.forEach(function(re,pe){M[++L]=[pe,re]}),M}function js(x,L){return function(M){return x(L(M))}}function Cn(x,L){for(var M=-1,re=x.length,pe=0,Ae=[];++M<re;){var je=x[M];(je===L||je===v)&&(x[M]=v,Ae[pe++]=M)}return Ae}function zi(x){var L=-1,M=Array(x.size);return x.forEach(function(re){M[++L]=re}),M}function jg(x){var L=-1,M=Array(x.size);return x.forEach(function(re){M[++L]=[re,re]}),M}function Qg(x,L,M){for(var re=M-1,pe=x.length;++re<pe;)if(x[re]===L)return re;return-1}function Yg(x,L,M){for(var re=M+1;re--;)if(x[re]===L)return re;return re}function br(x){return _r(x)?Xg(x):Lg(x)}function zt(x){return _r(x)?Jg(x):Ig(x)}function Qs(x){for(var L=x.length;L--&&al.test(x.charAt(L)););return L}var Zg=Cl(Ag);function Xg(x){for(var L=vl.lastIndex=0;vl.test(x);)++L;return L}function Jg(x){return x.match(vl)||[]}function ep(x){return x.match(yg)||[]}var tp=function x(L){L=L==null?et:yr.defaults(et.Object(),L,yr.pick(et,xg));var M=L.Array,re=L.Date,pe=L.Error,Ae=L.Function,je=L.Math,qe=L.Object,Bl=L.RegExp,np=L.String,Rt=L.TypeError,Ui=M.prototype,rp=Ae.prototype,wr=qe.prototype,Wi=L["__core-js_shared__"],Hi=rp.toString,Re=wr.hasOwnProperty,ip=0,Ys=function(){var e=/[^.]+$/.exec(Wi&&Wi.keys&&Wi.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Ki=wr.toString,op=Hi.call(qe),lp=et._,ap=Bl("^"+Hi.call(Re).replace(zr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Gi=Ms?L.Buffer:o,kn=L.Symbol,ji=L.Uint8Array,Zs=Gi?Gi.allocUnsafe:o,Qi=js(qe.getPrototypeOf,qe),Xs=qe.create,Js=wr.propertyIsEnumerable,Yi=Ui.splice,ec=kn?kn.isConcatSpreadable:o,Kr=kn?kn.iterator:o,Hn=kn?kn.toStringTag:o,Zi=function(){try{var e=Yn(qe,"defineProperty");return e({},"",{}),e}catch{}}(),up=L.clearTimeout!==et.clearTimeout&&L.clearTimeout,sp=re&&re.now!==et.Date.now&&re.now,cp=L.setTimeout!==et.setTimeout&&L.setTimeout,Xi=je.ceil,Ji=je.floor,Rl=qe.getOwnPropertySymbols,fp=Gi?Gi.isBuffer:o,tc=L.isFinite,dp=Ui.join,hp=js(qe.keys,qe),Qe=je.max,rt=je.min,mp=re.now,gp=L.parseInt,nc=je.random,pp=Ui.reverse,Ol=Yn(L,"DataView"),Gr=Yn(L,"Map"),ql=Yn(L,"Promise"),Sr=Yn(L,"Set"),jr=Yn(L,"WeakMap"),Qr=Yn(qe,"create"),eo=jr&&new jr,xr={},vp=Zn(Ol),_p=Zn(Gr),bp=Zn(ql),yp=Zn(Sr),wp=Zn(jr),to=kn?kn.prototype:o,Yr=to?to.valueOf:o,rc=to?to.toString:o;function d(e){if(De(e)&&!be(e)&&!(e instanceof Ce)){if(e instanceof Ot)return e;if(Re.call(e,"__wrapped__"))return of(e)}return new Ot(e)}var Cr=function(){function e(){}return function(n){if(!$e(n))return{};if(Xs)return Xs(n);e.prototype=n;var r=new e;return e.prototype=o,r}}();function no(){}function Ot(e,n){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=o}d.templateSettings={escape:il,evaluate:Vi,interpolate:zn,variable:"",imports:{_:d}},d.prototype=no.prototype,d.prototype.constructor=d,Ot.prototype=Cr(no.prototype),Ot.prototype.constructor=Ot;function Ce(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=q,this.__views__=[]}function Sp(){var e=new Ce(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 xp(){if(this.__filtered__){var e=new Ce(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Cp(){var e=this.__wrapped__.value(),n=this.__dir__,r=be(e),a=n<0,c=r?e.length:0,h=Iv(0,c,this.__views__),p=h.start,b=h.end,E=b-p,N=a?b:p-1,$=this.__iteratees__,z=$.length,ee=0,ue=rt(E,this.__takeCount__);if(!r||!a&&c==E&&ue==E)return Ac(e,this.__actions__);var de=[];e:for(;E--&&ee<ue;){N+=n;for(var we=-1,he=e[N];++we<z;){var xe=$[we],ke=xe.iteratee,Ct=xe.type,ut=ke(he);if(Ct==ae)he=ut;else if(!ut){if(Ct==F)continue e;break e}}de[ee++]=he}return de}Ce.prototype=Cr(no.prototype),Ce.prototype.constructor=Ce;function Kn(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 kp(){this.__data__=Qr?Qr(null):{},this.size=0}function Ep(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}function Ap(e){var n=this.__data__;if(Qr){var r=n[e];return r===C?o:r}return Re.call(n,e)?n[e]:o}function Tp(e){var n=this.__data__;return Qr?n[e]!==o:Re.call(n,e)}function Bp(e,n){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Qr&&n===o?C:n,this}Kn.prototype.clear=kp,Kn.prototype.delete=Ep,Kn.prototype.get=Ap,Kn.prototype.has=Tp,Kn.prototype.set=Bp;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 Rp(){this.__data__=[],this.size=0}function Op(e){var n=this.__data__,r=ro(n,e);if(r<0)return!1;var a=n.length-1;return r==a?n.pop():Yi.call(n,r,1),--this.size,!0}function qp(e){var n=this.__data__,r=ro(n,e);return r<0?o:n[r][1]}function Mp(e){return ro(this.__data__,e)>-1}function Vp(e,n){var r=this.__data__,a=ro(r,e);return a<0?(++this.size,r.push([e,n])):r[a][1]=n,this}on.prototype.clear=Rp,on.prototype.delete=Op,on.prototype.get=qp,on.prototype.has=Mp,on.prototype.set=Vp;function ln(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 Lp(){this.size=0,this.__data__={hash:new Kn,map:new(Gr||on),string:new Kn}}function Ip(e){var n=po(this,e).delete(e);return this.size-=n?1:0,n}function Pp(e){return po(this,e).get(e)}function Np(e){return po(this,e).has(e)}function $p(e,n){var r=po(this,e),a=r.size;return r.set(e,n),this.size+=r.size==a?0:1,this}ln.prototype.clear=Lp,ln.prototype.delete=Ip,ln.prototype.get=Pp,ln.prototype.has=Np,ln.prototype.set=$p;function Gn(e){var n=-1,r=e==null?0:e.length;for(this.__data__=new ln;++n<r;)this.add(e[n])}function Fp(e){return this.__data__.set(e,C),this}function Dp(e){return this.__data__.has(e)}Gn.prototype.add=Gn.prototype.push=Fp,Gn.prototype.has=Dp;function Ut(e){var n=this.__data__=new on(e);this.size=n.size}function zp(){this.__data__=new on,this.size=0}function Up(e){var n=this.__data__,r=n.delete(e);return this.size=n.size,r}function Wp(e){return this.__data__.get(e)}function Hp(e){return this.__data__.has(e)}function Kp(e,n){var r=this.__data__;if(r instanceof on){var a=r.__data__;if(!Gr||a.length<s-1)return a.push([e,n]),this.size=++r.size,this;r=this.__data__=new ln(a)}return r.set(e,n),this.size=r.size,this}Ut.prototype.clear=zp,Ut.prototype.delete=Up,Ut.prototype.get=Wp,Ut.prototype.has=Hp,Ut.prototype.set=Kp;function ic(e,n){var r=be(e),a=!r&&Xn(e),c=!r&&!a&&Rn(e),h=!r&&!a&&!c&&Tr(e),p=r||a||c||h,b=p?El(e.length,np):[],E=b.length;for(var N in e)(n||Re.call(e,N))&&!(p&&(N=="length"||c&&(N=="offset"||N=="parent")||h&&(N=="buffer"||N=="byteLength"||N=="byteOffset")||cn(N,E)))&&b.push(N);return b}function oc(e){var n=e.length;return n?e[Ul(0,n-1)]:o}function Gp(e,n){return vo(ft(e),jn(n,0,e.length))}function jp(e){return vo(ft(e))}function Ml(e,n,r){(r!==o&&!Wt(e[n],r)||r===o&&!(n in e))&&an(e,n,r)}function Zr(e,n,r){var a=e[n];(!(Re.call(e,n)&&Wt(a,r))||r===o&&!(n in e))&&an(e,n,r)}function ro(e,n){for(var r=e.length;r--;)if(Wt(e[r][0],n))return r;return-1}function Qp(e,n,r,a){return En(e,function(c,h,p){n(a,c,r(c),p)}),a}function lc(e,n){return e&&Qt(n,Ze(n),e)}function Yp(e,n){return e&&Qt(n,ht(n),e)}function an(e,n,r){n=="__proto__"&&Zi?Zi(e,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[n]=r}function Vl(e,n){for(var r=-1,a=n.length,c=M(a),h=e==null;++r<a;)c[r]=h?o:ma(e,n[r]);return c}function jn(e,n,r){return e===e&&(r!==o&&(e=e<=r?e:r),n!==o&&(e=e>=n?e:n)),e}function qt(e,n,r,a,c,h){var p,b=n&k,E=n&y,N=n&w;if(r&&(p=c?r(e,a,c,h):r(e)),p!==o)return p;if(!$e(e))return e;var $=be(e);if($){if(p=Nv(e),!b)return ft(e,p)}else{var z=it(e),ee=z==Nt||z==_t;if(Rn(e))return Rc(e,b);if(z==ct||z==_e||ee&&!c){if(p=E||ee?{}:Qc(e),!b)return E?Av(e,Yp(p,e)):Ev(e,lc(p,e))}else{if(!Me[z])return c?e:{};p=$v(e,z,b)}}h||(h=new Ut);var ue=h.get(e);if(ue)return ue;h.set(e,p),kf(e)?e.forEach(function(he){p.add(qt(he,n,r,he,e,h))}):xf(e)&&e.forEach(function(he,xe){p.set(xe,qt(he,n,r,xe,e,h))});var de=N?E?ea:Jl:E?ht:Ze,we=$?o:de(e);return Bt(we||e,function(he,xe){we&&(xe=he,he=e[xe]),Zr(p,xe,qt(he,n,r,xe,e,h))}),p}function Zp(e){var n=Ze(e);return function(r){return ac(r,e,n)}}function ac(e,n,r){var a=r.length;if(e==null)return!a;for(e=qe(e);a--;){var c=r[a],h=n[c],p=e[c];if(p===o&&!(c in e)||!h(p))return!1}return!0}function uc(e,n,r){if(typeof e!="function")throw new Rt(m);return ii(function(){e.apply(o,r)},n)}function Xr(e,n,r,a){var c=-1,h=Fi,p=!0,b=e.length,E=[],N=n.length;if(!b)return E;r&&(n=Ie(n,wt(r))),a?(h=yl,p=!1):n.length>=s&&(h=Hr,p=!1,n=new Gn(n));e:for(;++c<b;){var $=e[c],z=r==null?$:r($);if($=a||$!==0?$:0,p&&z===z){for(var ee=N;ee--;)if(n[ee]===z)continue e;E.push($)}else h(n,z,a)||E.push($)}return E}var En=Lc(jt),sc=Lc(Il,!0);function Xp(e,n){var r=!0;return En(e,function(a,c,h){return r=!!n(a,c,h),r}),r}function io(e,n,r){for(var a=-1,c=e.length;++a<c;){var h=e[a],p=n(h);if(p!=null&&(b===o?p===p&&!xt(p):r(p,b)))var b=p,E=h}return E}function Jp(e,n,r,a){var c=e.length;for(r=ye(r),r<0&&(r=-r>c?0:c+r),a=a===o||a>c?c:ye(a),a<0&&(a+=c),a=r>a?0:Af(a);r<a;)e[r++]=n;return e}function cc(e,n){var r=[];return En(e,function(a,c,h){n(a,c,h)&&r.push(a)}),r}function tt(e,n,r,a,c){var h=-1,p=e.length;for(r||(r=Dv),c||(c=[]);++h<p;){var b=e[h];n>0&&r(b)?n>1?tt(b,n-1,r,a,c):xn(c,b):a||(c[c.length]=b)}return c}var Ll=Ic(),fc=Ic(!0);function jt(e,n){return e&&Ll(e,n,Ze)}function Il(e,n){return e&&fc(e,n,Ze)}function oo(e,n){return Sn(n,function(r){return fn(e[r])})}function Qn(e,n){n=Tn(n,e);for(var r=0,a=n.length;e!=null&&r<a;)e=e[Yt(n[r++])];return r&&r==a?e:o}function dc(e,n,r){var a=n(e);return be(e)?a:xn(a,r(e))}function lt(e){return e==null?e===o?fr:en:Hn&&Hn in qe(e)?Lv(e):jv(e)}function Pl(e,n){return e>n}function ev(e,n){return e!=null&&Re.call(e,n)}function tv(e,n){return e!=null&&n in qe(e)}function nv(e,n,r){return e>=rt(n,r)&&e<Qe(n,r)}function Nl(e,n,r){for(var a=r?yl:Fi,c=e[0].length,h=e.length,p=h,b=M(h),E=1/0,N=[];p--;){var $=e[p];p&&n&&($=Ie($,wt(n))),E=rt($.length,E),b[p]=!r&&(n||c>=120&&$.length>=120)?new Gn(p&&$):o}$=e[0];var z=-1,ee=b[0];e:for(;++z<c&&N.length<E;){var ue=$[z],de=n?n(ue):ue;if(ue=r||ue!==0?ue:0,!(ee?Hr(ee,de):a(N,de,r))){for(p=h;--p;){var we=b[p];if(!(we?Hr(we,de):a(e[p],de,r)))continue e}ee&&ee.push(de),N.push(ue)}}return N}function rv(e,n,r,a){return jt(e,function(c,h,p){n(a,r(c),h,p)}),a}function Jr(e,n,r){n=Tn(n,e),e=Jc(e,n);var a=e==null?e:e[Yt(Vt(n))];return a==null?o:yt(a,e,r)}function hc(e){return De(e)&<(e)==_e}function iv(e){return De(e)&<(e)==tn}function ov(e){return De(e)&<(e)==X}function ei(e,n,r,a,c){return e===n?!0:e==null||n==null||!De(e)&&!De(n)?e!==e&&n!==n:lv(e,n,r,a,ei,c)}function lv(e,n,r,a,c,h){var p=be(e),b=be(n),E=p?K:it(e),N=b?K:it(n);E=E==_e?ct:E,N=N==_e?ct:N;var $=E==ct,z=N==ct,ee=E==N;if(ee&&Rn(e)){if(!Rn(n))return!1;p=!0,$=!1}if(ee&&!$)return h||(h=new Ut),p||Tr(e)?Kc(e,n,r,a,c,h):Mv(e,n,E,r,a,c,h);if(!(r&R)){var ue=$&&Re.call(e,"__wrapped__"),de=z&&Re.call(n,"__wrapped__");if(ue||de){var we=ue?e.value():e,he=de?n.value():n;return h||(h=new Ut),c(we,he,r,a,h)}}return ee?(h||(h=new Ut),Vv(e,n,r,a,c,h)):!1}function av(e){return De(e)&&it(e)==nt}function $l(e,n,r,a){var c=r.length,h=c,p=!a;if(e==null)return!h;for(e=qe(e);c--;){var b=r[c];if(p&&b[2]?b[1]!==e[b[0]]:!(b[0]in e))return!1}for(;++c<h;){b=r[c];var E=b[0],N=e[E],$=b[1];if(p&&b[2]){if(N===o&&!(E in e))return!1}else{var z=new Ut;if(a)var ee=a(N,$,E,e,n,z);if(!(ee===o?ei($,N,R|W,a,z):ee))return!1}}return!0}function mc(e){if(!$e(e)||Uv(e))return!1;var n=fn(e)?ap:Li;return n.test(Zn(e))}function uv(e){return De(e)&<(e)==$t}function sv(e){return De(e)&&it(e)==Fe}function cv(e){return De(e)&&xo(e.length)&&!!Ve[lt(e)]}function gc(e){return typeof e=="function"?e:e==null?mt:typeof e=="object"?be(e)?_c(e[0],e[1]):vc(e):Nf(e)}function Fl(e){if(!ri(e))return hp(e);var n=[];for(var r in qe(e))Re.call(e,r)&&r!="constructor"&&n.push(r);return n}function fv(e){if(!$e(e))return Gv(e);var n=ri(e),r=[];for(var a in e)a=="constructor"&&(n||!Re.call(e,a))||r.push(a);return r}function Dl(e,n){return e<n}function pc(e,n){var r=-1,a=dt(e)?M(e.length):[];return En(e,function(c,h,p){a[++r]=n(c,h,p)}),a}function vc(e){var n=na(e);return n.length==1&&n[0][2]?Zc(n[0][0],n[0][1]):function(r){return r===e||$l(r,e,n)}}function _c(e,n){return ia(e)&&Yc(n)?Zc(Yt(e),n):function(r){var a=ma(r,e);return a===o&&a===n?ga(r,e):ei(n,a,R|W)}}function lo(e,n,r,a,c){e!==n&&Ll(n,function(h,p){if(c||(c=new Ut),$e(h))dv(e,n,p,r,lo,a,c);else{var b=a?a(la(e,p),h,p+"",e,n,c):o;b===o&&(b=h),Ml(e,p,b)}},ht)}function dv(e,n,r,a,c,h,p){var b=la(e,r),E=la(n,r),N=p.get(E);if(N){Ml(e,r,N);return}var $=h?h(b,E,r+"",e,n,p):o,z=$===o;if(z){var ee=be(E),ue=!ee&&Rn(E),de=!ee&&!ue&&Tr(E);$=E,ee||ue||de?be(b)?$=b:ze(b)?$=ft(b):ue?(z=!1,$=Rc(E,!0)):de?(z=!1,$=Oc(E,!0)):$=[]:oi(E)||Xn(E)?($=b,Xn(b)?$=Tf(b):(!$e(b)||fn(b))&&($=Qc(E))):z=!1}z&&(p.set(E,$),c($,E,a,h,p),p.delete(E)),Ml(e,r,$)}function bc(e,n){var r=e.length;if(r)return n+=n<0?r:0,cn(n,r)?e[n]:o}function yc(e,n,r){n.length?n=Ie(n,function(h){return be(h)?function(p){return Qn(p,h.length===1?h[0]:h)}:h}):n=[mt];var a=-1;n=Ie(n,wt(fe()));var c=pc(e,function(h,p,b){var E=Ie(n,function(N){return N(h)});return{criteria:E,index:++a,value:h}});return $g(c,function(h,p){return kv(h,p,r)})}function hv(e,n){return wc(e,n,function(r,a){return ga(e,a)})}function wc(e,n,r){for(var a=-1,c=n.length,h={};++a<c;){var p=n[a],b=Qn(e,p);r(b,p)&&ti(h,Tn(p,e),b)}return h}function mv(e){return function(n){return Qn(n,e)}}function zl(e,n,r,a){var c=a?Ng:vr,h=-1,p=n.length,b=e;for(e===n&&(n=ft(n)),r&&(b=Ie(e,wt(r)));++h<p;)for(var E=0,N=n[h],$=r?r(N):N;(E=c(b,$,E,a))>-1;)b!==e&&Yi.call(b,E,1),Yi.call(e,E,1);return e}function Sc(e,n){for(var r=e?n.length:0,a=r-1;r--;){var c=n[r];if(r==a||c!==h){var h=c;cn(c)?Yi.call(e,c,1):Kl(e,c)}}return e}function Ul(e,n){return e+Ji(nc()*(n-e+1))}function gv(e,n,r,a){for(var c=-1,h=Qe(Xi((n-e)/(r||1)),0),p=M(h);h--;)p[a?h:++c]=e,e+=r;return p}function Wl(e,n){var r="";if(!e||n<1||n>H)return r;do n%2&&(r+=e),n=Ji(n/2),n&&(e+=e);while(n);return r}function Se(e,n){return aa(Xc(e,n,mt),e+"")}function pv(e){return oc(Br(e))}function vv(e,n){var r=Br(e);return vo(r,jn(n,0,r.length))}function ti(e,n,r,a){if(!$e(e))return e;n=Tn(n,e);for(var c=-1,h=n.length,p=h-1,b=e;b!=null&&++c<h;){var E=Yt(n[c]),N=r;if(E==="__proto__"||E==="constructor"||E==="prototype")return e;if(c!=p){var $=b[E];N=a?a($,E,b):o,N===o&&(N=$e($)?$:cn(n[c+1])?[]:{})}Zr(b,E,N),b=b[E]}return e}var xc=eo?function(e,n){return eo.set(e,n),e}:mt,_v=Zi?function(e,n){return Zi(e,"toString",{configurable:!0,enumerable:!1,value:va(n),writable:!0})}:mt;function bv(e){return vo(Br(e))}function Mt(e,n,r){var a=-1,c=e.length;n<0&&(n=-n>c?0:c+n),r=r>c?c:r,r<0&&(r+=c),c=n>r?0:r-n>>>0,n>>>=0;for(var h=M(c);++a<c;)h[a]=e[a+n];return h}function yv(e,n){var r;return En(e,function(a,c,h){return r=n(a,c,h),!r}),!!r}function ao(e,n,r){var a=0,c=e==null?a:e.length;if(typeof n=="number"&&n===n&&c<=oe){for(;a<c;){var h=a+c>>>1,p=e[h];p!==null&&!xt(p)&&(r?p<=n:p<n)?a=h+1:c=h}return c}return Hl(e,n,mt,r)}function Hl(e,n,r,a){var c=0,h=e==null?0:e.length;if(h===0)return 0;n=r(n);for(var p=n!==n,b=n===null,E=xt(n),N=n===o;c<h;){var $=Ji((c+h)/2),z=r(e[$]),ee=z!==o,ue=z===null,de=z===z,we=xt(z);if(p)var he=a||de;else N?he=de&&(a||ee):b?he=de&&ee&&(a||!ue):E?he=de&&ee&&!ue&&(a||!we):ue||we?he=!1:he=a?z<=n:z<n;he?c=$+1:h=$}return rt(h,B)}function Cc(e,n){for(var r=-1,a=e.length,c=0,h=[];++r<a;){var p=e[r],b=n?n(p):p;if(!r||!Wt(b,E)){var E=b;h[c++]=p===0?0:p}}return h}function kc(e){return typeof e=="number"?e:xt(e)?ge:+e}function St(e){if(typeof e=="string")return e;if(be(e))return Ie(e,St)+"";if(xt(e))return rc?rc.call(e):"";var n=e+"";return n=="0"&&1/e==-ce?"-0":n}function An(e,n,r){var a=-1,c=Fi,h=e.length,p=!0,b=[],E=b;if(r)p=!1,c=yl;else if(h>=s){var N=n?null:Ov(e);if(N)return zi(N);p=!1,c=Hr,E=new Gn}else E=n?[]:b;e:for(;++a<h;){var $=e[a],z=n?n($):$;if($=r||$!==0?$:0,p&&z===z){for(var ee=E.length;ee--;)if(E[ee]===z)continue e;n&&E.push(z),b.push($)}else c(E,z,r)||(E!==b&&E.push(z),b.push($))}return b}function Kl(e,n){return n=Tn(n,e),e=Jc(e,n),e==null||delete e[Yt(Vt(n))]}function Ec(e,n,r,a){return ti(e,n,r(Qn(e,n)),a)}function uo(e,n,r,a){for(var c=e.length,h=a?c:-1;(a?h--:++h<c)&&n(e[h],h,e););return r?Mt(e,a?0:h,a?h+1:c):Mt(e,a?h+1:0,a?c:h)}function Ac(e,n){var r=e;return r instanceof Ce&&(r=r.value()),wl(n,function(a,c){return c.func.apply(c.thisArg,xn([a],c.args))},r)}function Gl(e,n,r){var a=e.length;if(a<2)return a?An(e[0]):[];for(var c=-1,h=M(a);++c<a;)for(var p=e[c],b=-1;++b<a;)b!=c&&(h[c]=Xr(h[c]||p,e[b],n,r));return An(tt(h,1),n,r)}function Tc(e,n,r){for(var a=-1,c=e.length,h=n.length,p={};++a<c;){var b=a<h?n[a]:o;r(p,e[a],b)}return p}function jl(e){return ze(e)?e:[]}function Ql(e){return typeof e=="function"?e:mt}function Tn(e,n){return be(e)?e:ia(e,n)?[e]:rf(Te(e))}var wv=Se;function Bn(e,n,r){var a=e.length;return r=r===o?a:r,!n&&r>=a?e:Mt(e,n,r)}var Bc=up||function(e){return et.clearTimeout(e)};function Rc(e,n){if(n)return e.slice();var r=e.length,a=Zs?Zs(r):new e.constructor(r);return e.copy(a),a}function Yl(e){var n=new e.constructor(e.byteLength);return new ji(n).set(new ji(e)),n}function Sv(e,n){var r=n?Yl(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function xv(e){var n=new e.constructor(e.source,rn.exec(e));return n.lastIndex=e.lastIndex,n}function Cv(e){return Yr?qe(Yr.call(e)):{}}function Oc(e,n){var r=n?Yl(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function qc(e,n){if(e!==n){var r=e!==o,a=e===null,c=e===e,h=xt(e),p=n!==o,b=n===null,E=n===n,N=xt(n);if(!b&&!N&&!h&&e>n||h&&p&&E&&!b&&!N||a&&p&&E||!r&&E||!c)return 1;if(!a&&!h&&!N&&e<n||N&&r&&c&&!a&&!h||b&&r&&c||!p&&c||!E)return-1}return 0}function kv(e,n,r){for(var a=-1,c=e.criteria,h=n.criteria,p=c.length,b=r.length;++a<p;){var E=qc(c[a],h[a]);if(E){if(a>=b)return E;var N=r[a];return E*(N=="desc"?-1:1)}}return e.index-n.index}function Mc(e,n,r,a){for(var c=-1,h=e.length,p=r.length,b=-1,E=n.length,N=Qe(h-p,0),$=M(E+N),z=!a;++b<E;)$[b]=n[b];for(;++c<p;)(z||c<h)&&($[r[c]]=e[c]);for(;N--;)$[b++]=e[c++];return $}function Vc(e,n,r,a){for(var c=-1,h=e.length,p=-1,b=r.length,E=-1,N=n.length,$=Qe(h-b,0),z=M($+N),ee=!a;++c<$;)z[c]=e[c];for(var ue=c;++E<N;)z[ue+E]=n[E];for(;++p<b;)(ee||c<h)&&(z[ue+r[p]]=e[c++]);return z}function ft(e,n){var r=-1,a=e.length;for(n||(n=M(a));++r<a;)n[r]=e[r];return n}function Qt(e,n,r,a){var c=!r;r||(r={});for(var h=-1,p=n.length;++h<p;){var b=n[h],E=a?a(r[b],e[b],b,r,e):o;E===o&&(E=e[b]),c?an(r,b,E):Zr(r,b,E)}return r}function Ev(e,n){return Qt(e,ra(e),n)}function Av(e,n){return Qt(e,Gc(e),n)}function so(e,n){return function(r,a){var c=be(r)?qg:Qp,h=n?n():{};return c(r,e,fe(a,2),h)}}function kr(e){return Se(function(n,r){var a=-1,c=r.length,h=c>1?r[c-1]:o,p=c>2?r[2]:o;for(h=e.length>3&&typeof h=="function"?(c--,h):o,p&&at(r[0],r[1],p)&&(h=c<3?o:h,c=1),n=qe(n);++a<c;){var b=r[a];b&&e(n,b,a,h)}return n})}function Lc(e,n){return function(r,a){if(r==null)return r;if(!dt(r))return e(r,a);for(var c=r.length,h=n?c:-1,p=qe(r);(n?h--:++h<c)&&a(p[h],h,p)!==!1;);return r}}function Ic(e){return function(n,r,a){for(var c=-1,h=qe(n),p=a(n),b=p.length;b--;){var E=p[e?b:++c];if(r(h[E],E,h)===!1)break}return n}}function Tv(e,n,r){var a=n&O,c=ni(e);function h(){var p=this&&this!==et&&this instanceof h?c:e;return p.apply(a?r:this,arguments)}return h}function Pc(e){return function(n){n=Te(n);var r=_r(n)?zt(n):o,a=r?r[0]:n.charAt(0),c=r?Bn(r,1).join(""):n.slice(1);return a[e]()+c}}function Er(e){return function(n){return wl(If(Lf(n).replace(_g,"")),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=Cr(e.prototype),a=e.apply(r,n);return $e(a)?a:r}}function Bv(e,n,r){var a=ni(e);function c(){for(var h=arguments.length,p=M(h),b=h,E=Ar(c);b--;)p[b]=arguments[b];var N=h<3&&p[0]!==E&&p[h-1]!==E?[]:Cn(p,E);if(h-=N.length,h<r)return zc(e,n,co,c.placeholder,o,p,N,o,o,r-h);var $=this&&this!==et&&this instanceof c?a:e;return yt($,this,p)}return c}function Nc(e){return function(n,r,a){var c=qe(n);if(!dt(n)){var h=fe(r,3);n=Ze(n),r=function(b){return h(c[b],b,c)}}var p=e(n,r,a);return p>-1?c[h?n[p]:p]:o}}function $c(e){return sn(function(n){var r=n.length,a=r,c=Ot.prototype.thru;for(e&&n.reverse();a--;){var h=n[a];if(typeof h!="function")throw new Rt(m);if(c&&!p&&go(h)=="wrapper")var p=new Ot([],!0)}for(a=p?a:r;++a<r;){h=n[a];var b=go(h),E=b=="wrapper"?ta(h):o;E&&oa(E[0])&&E[1]==(I|D|j|le)&&!E[4].length&&E[9]==1?p=p[go(E[0])].apply(p,E[3]):p=h.length==1&&oa(h)?p[b]():p.thru(h)}return function(){var N=arguments,$=N[0];if(p&&N.length==1&&be($))return p.plant($).value();for(var z=0,ee=r?n[z].apply(this,N):$;++z<r;)ee=n[z].call(this,ee);return ee}})}function co(e,n,r,a,c,h,p,b,E,N){var $=n&I,z=n&O,ee=n&G,ue=n&(D|Q),de=n&P,we=ee?o:ni(e);function he(){for(var xe=arguments.length,ke=M(xe),Ct=xe;Ct--;)ke[Ct]=arguments[Ct];if(ue)var ut=Ar(he),kt=Dg(ke,ut);if(a&&(ke=Mc(ke,a,c,ue)),h&&(ke=Vc(ke,h,p,ue)),xe-=kt,ue&&xe<N){var Ue=Cn(ke,ut);return zc(e,n,co,he.placeholder,r,ke,Ue,b,E,N-xe)}var Ht=z?r:this,hn=ee?Ht[e]:e;return xe=ke.length,b?ke=Qv(ke,b):de&&xe>1&&ke.reverse(),$&&E<xe&&(ke.length=E),this&&this!==et&&this instanceof he&&(hn=we||ni(hn)),hn.apply(Ht,ke)}return he}function Fc(e,n){return function(r,a){return rv(r,e,n(a),{})}}function fo(e,n){return function(r,a){var c;if(r===o&&a===o)return n;if(r!==o&&(c=r),a!==o){if(c===o)return a;typeof r=="string"||typeof a=="string"?(r=St(r),a=St(a)):(r=kc(r),a=kc(a)),c=e(r,a)}return c}}function Zl(e){return sn(function(n){return n=Ie(n,wt(fe())),Se(function(r){var a=this;return e(n,function(c){return yt(c,a,r)})})})}function ho(e,n){n=n===o?" ":St(n);var r=n.length;if(r<2)return r?Wl(n,e):n;var a=Wl(n,Xi(e/br(n)));return _r(n)?Bn(zt(a),0,e).join(""):a.slice(0,e)}function Rv(e,n,r,a){var c=n&O,h=ni(e);function p(){for(var b=-1,E=arguments.length,N=-1,$=a.length,z=M($+E),ee=this&&this!==et&&this instanceof p?h:e;++N<$;)z[N]=a[N];for(;E--;)z[N++]=arguments[++b];return yt(ee,c?r:this,z)}return p}function Dc(e){return function(n,r,a){return a&&typeof a!="number"&&at(n,r,a)&&(r=a=o),n=dn(n),r===o?(r=n,n=0):r=dn(r),a=a===o?n<r?1:-1:dn(a),gv(n,r,a,e)}}function mo(e){return function(n,r){return typeof n=="string"&&typeof r=="string"||(n=Lt(n),r=Lt(r)),e(n,r)}}function zc(e,n,r,a,c,h,p,b,E,N){var $=n&D,z=$?p:o,ee=$?o:p,ue=$?h:o,de=$?o:h;n|=$?j:Y,n&=~($?Y:j),n&U||(n&=~(O|G));var we=[e,n,c,ue,z,de,ee,b,E,N],he=r.apply(o,we);return oa(e)&&ef(he,we),he.placeholder=a,tf(he,e,n)}function Xl(e){var n=je[e];return function(r,a){if(r=Lt(r),a=a==null?0:rt(ye(a),292),a&&tc(r)){var c=(Te(r)+"e").split("e"),h=n(c[0]+"e"+(+c[1]+a));return c=(Te(h)+"e").split("e"),+(c[0]+"e"+(+c[1]-a))}return n(r)}}var Ov=Sr&&1/zi(new Sr([,-0]))[1]==ce?function(e){return new Sr(e)}:ya;function Uc(e){return function(n){var r=it(n);return r==nt?Tl(n):r==Fe?jg(n):Fg(n,e(n))}}function un(e,n,r,a,c,h,p,b){var E=n&G;if(!E&&typeof e!="function")throw new Rt(m);var N=a?a.length:0;if(N||(n&=~(j|Y),a=c=o),p=p===o?p:Qe(ye(p),0),b=b===o?b:ye(b),N-=c?c.length:0,n&Y){var $=a,z=c;a=c=o}var ee=E?o:ta(e),ue=[e,n,r,a,c,$,z,h,p,b];if(ee&&Kv(ue,ee),e=ue[0],n=ue[1],r=ue[2],a=ue[3],c=ue[4],b=ue[9]=ue[9]===o?E?0:e.length:Qe(ue[9]-N,0),!b&&n&(D|Q)&&(n&=~(D|Q)),!n||n==O)var de=Tv(e,n,r);else n==D||n==Q?de=Bv(e,n,b):(n==j||n==(O|j))&&!c.length?de=Rv(e,n,r,a):de=co.apply(o,ue);var we=ee?xc:ef;return tf(we(de,ue),e,n)}function Wc(e,n,r,a){return e===o||Wt(e,wr[r])&&!Re.call(a,r)?n:e}function Hc(e,n,r,a,c,h){return $e(e)&&$e(n)&&(h.set(n,e),lo(e,n,o,Hc,h),h.delete(n)),e}function qv(e){return oi(e)?o:e}function Kc(e,n,r,a,c,h){var p=r&R,b=e.length,E=n.length;if(b!=E&&!(p&&E>b))return!1;var N=h.get(e),$=h.get(n);if(N&&$)return N==n&&$==e;var z=-1,ee=!0,ue=r&W?new Gn:o;for(h.set(e,n),h.set(n,e);++z<b;){var de=e[z],we=n[z];if(a)var he=p?a(we,de,z,n,e,h):a(de,we,z,e,n,h);if(he!==o){if(he)continue;ee=!1;break}if(ue){if(!Sl(n,function(xe,ke){if(!Hr(ue,ke)&&(de===xe||c(de,xe,r,a,h)))return ue.push(ke)})){ee=!1;break}}else if(!(de===we||c(de,we,r,a,h))){ee=!1;break}}return h.delete(e),h.delete(n),ee}function Mv(e,n,r,a,c,h,p){switch(r){case vn:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case tn:return!(e.byteLength!=n.byteLength||!h(new ji(e),new ji(n)));case Ee:case X:case bt:return Wt(+e,+n);case ot:return e.name==n.name&&e.message==n.message;case $t:case Ge:return e==n+"";case nt:var b=Tl;case Fe:var E=a&R;if(b||(b=zi),e.size!=n.size&&!E)return!1;var N=p.get(e);if(N)return N==n;a|=W,p.set(e,n);var $=Kc(b(e),b(n),a,c,h,p);return p.delete(e),$;case Ft:if(Yr)return Yr.call(e)==Yr.call(n)}return!1}function Vv(e,n,r,a,c,h){var p=r&R,b=Jl(e),E=b.length,N=Jl(n),$=N.length;if(E!=$&&!p)return!1;for(var z=E;z--;){var ee=b[z];if(!(p?ee in n:Re.call(n,ee)))return!1}var ue=h.get(e),de=h.get(n);if(ue&&de)return ue==n&&de==e;var we=!0;h.set(e,n),h.set(n,e);for(var he=p;++z<E;){ee=b[z];var xe=e[ee],ke=n[ee];if(a)var Ct=p?a(ke,xe,ee,n,e,h):a(xe,ke,ee,e,n,h);if(!(Ct===o?xe===ke||c(xe,ke,r,a,h):Ct)){we=!1;break}he||(he=ee=="constructor")}if(we&&!he){var ut=e.constructor,kt=n.constructor;ut!=kt&&"constructor"in e&&"constructor"in n&&!(typeof ut=="function"&&ut instanceof ut&&typeof kt=="function"&&kt instanceof kt)&&(we=!1)}return h.delete(e),h.delete(n),we}function sn(e){return aa(Xc(e,o,uf),e+"")}function Jl(e){return dc(e,Ze,ra)}function ea(e){return dc(e,ht,Gc)}var ta=eo?function(e){return eo.get(e)}:ya;function go(e){for(var n=e.name+"",r=xr[n],a=Re.call(xr,n)?r.length:0;a--;){var c=r[a],h=c.func;if(h==null||h==e)return c.name}return n}function Ar(e){var n=Re.call(d,"placeholder")?d:e;return n.placeholder}function fe(){var e=d.iteratee||_a;return e=e===_a?gc:e,arguments.length?e(arguments[0],arguments[1]):e}function po(e,n){var r=e.__data__;return zv(n)?r[typeof n=="string"?"string":"hash"]:r.map}function na(e){for(var n=Ze(e),r=n.length;r--;){var a=n[r],c=e[a];n[r]=[a,c,Yc(c)]}return n}function Yn(e,n){var r=Hg(e,n);return mc(r)?r:o}function Lv(e){var n=Re.call(e,Hn),r=e[Hn];try{e[Hn]=o;var a=!0}catch{}var c=Ki.call(e);return a&&(n?e[Hn]=r:delete e[Hn]),c}var ra=Rl?function(e){return e==null?[]:(e=qe(e),Sn(Rl(e),function(n){return Js.call(e,n)}))}:wa,Gc=Rl?function(e){for(var n=[];e;)xn(n,ra(e)),e=Qi(e);return n}:wa,it=lt;(Ol&&it(new Ol(new ArrayBuffer(1)))!=vn||Gr&&it(new Gr)!=nt||ql&&it(ql.resolve())!=pn||Sr&&it(new Sr)!=Fe||jr&&it(new jr)!=$n)&&(it=function(e){var n=lt(e),r=n==ct?e.constructor:o,a=r?Zn(r):"";if(a)switch(a){case vp:return vn;case _p:return nt;case bp:return pn;case yp:return Fe;case wp:return $n}return n});function Iv(e,n,r){for(var a=-1,c=r.length;++a<c;){var h=r[a],p=h.size;switch(h.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 Pv(e){var n=e.match(sl);return n?n[1].split(cl):[]}function jc(e,n,r){n=Tn(n,e);for(var a=-1,c=n.length,h=!1;++a<c;){var p=Yt(n[a]);if(!(h=e!=null&&r(e,p)))break;e=e[p]}return h||++a!=c?h:(c=e==null?0:e.length,!!c&&xo(c)&&cn(p,c)&&(be(e)||Xn(e)))}function Nv(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 Qc(e){return typeof e.constructor=="function"&&!ri(e)?Cr(Qi(e)):{}}function $v(e,n,r){var a=e.constructor;switch(n){case tn:return Yl(e);case Ee:case X:return new a(+e);case vn:return Sv(e,r);case dr:case Dt:case Gt:case _n:case Fr:case Fn:case Dn:case hr:case mr:return Oc(e,r);case nt:return new a;case bt:case Ge:return new a(e);case $t:return xv(e);case Fe:return new a;case Ft:return Cv(e)}}function Fv(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(ul,`{
|
|
9
9
|
/* [wrapped with `+n+`] */
|
|
10
|
-
`)}function $v(e){return be(e)||Jn(e)||!!(Js&&e&&e[Js])}function cn(e,n){var r=typeof e;return n=n??H,!!n&&(r=="number"||r!="symbol"&&Pi.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)&&cn(n,r.length):a=="string"&&n in r)?Wt(r[n],e):!1}function ia(e,n){if(be(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||xt(e)?!0:bn.test(e)||!Wn.test(e)||n!=null&&e in qe(n)}function Fv(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}function oa(e){var n=go(e),r=d[n];if(typeof r!="function"||!(n in Ce.prototype))return!1;if(e===r)return!0;var a=ta(r);return!!a&&e===a[0]}function Dv(e){return!!Qs&&Qs in e}var zv=Wi?fn:Sa;function ri(e){var n=e&&e.constructor,r=typeof n=="function"&&n.prototype||yr;return e===r}function Qc(e){return e===e&&!$e(e)}function Yc(e,n){return function(r){return r==null?!1:r[e]===n&&(n!==o||e in qe(r))}}function Uv(e){var n=wo(e,function(a){return r.size===A&&r.clear(),a}),r=n.cache;return n}function Wv(e,n){var r=e[1],a=n[1],c=r|a,h=c<(O|G|I),p=a==I&&r==D||a==I&&r==le&&e[7].length<=n[8]||a==(I|le)&&n[7].length<=n[8]&&r==D;if(!(h||p))return e;a&O&&(e[2]=n[2],c|=r&O?0:U);var b=n[3];if(b){var E=e[3];e[3]=E?qc(E,b,n[4]):b,e[4]=E?Cn(e[3],v):n[4]}return b=n[5],b&&(E=e[5],e[5]=E?Mc(E,b,n[6]):b,e[6]=E?Cn(e[5],v):n[6]),b=n[7],b&&(e[7]=b),a&I&&(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]=c,e}function Hv(e){var n=[];if(e!=null)for(var r in qe(e))n.push(r);return n}function Kv(e){return Ki.call(e)}function Zc(e,n,r){return n=Qe(n===o?e.length-1:n,0),function(){for(var a=arguments,c=-1,h=Qe(a.length-n,0),p=M(h);++c<h;)p[c]=a[n+c];c=-1;for(var b=M(n+1);++c<n;)b[c]=a[c];return b[n]=r(p),yt(e,this,b)}}function Xc(e,n){return n.length<2?e:Yn(e,Mt(n,0,-1))}function Gv(e,n){for(var r=e.length,a=rt(n.length,r),c=ft(e);a--;){var h=n[a];e[a]=cn(h,r)?c[h]:o}return e}function la(e,n){if(!(n==="constructor"&&typeof e[n]=="function")&&n!="__proto__")return e[n]}var Jc=tf(Sc),ii=up||function(e,n){return et.setTimeout(e,n)},aa=tf(pv);function ef(e,n,r){var a=n+"";return aa(e,Nv(a,jv(Lv(a),r)))}function tf(e){var n=0,r=0;return function(){var a=dp(),c=Z-(a-r);if(r=a,c>0){if(++n>=S)return arguments[0]}else n=0;return e.apply(o,arguments)}}function vo(e,n){var r=-1,a=e.length,c=a-1;for(n=n===o?a:n;++r<n;){var h=Ul(r,c),p=e[h];e[h]=e[r],e[r]=p}return e.length=n,e}var nf=Uv(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(ol,function(r,a,c,h){n.push(c?h.replace(wn,"$1"):a||r)}),n});function Yt(e){if(typeof e=="string"||xt(e))return e;var n=e+"";return n=="0"&&1/e==-ce?"-0":n}function Xn(e){if(e!=null){try{return Hi.call(e)}catch{}try{return e+""}catch{}}return""}function jv(e,n){return Bt(ve,function(r){var a="_."+r[0];n&r[1]&&!Fi(e,a)&&e.push(a)}),e.sort()}function rf(e){if(e instanceof Ce)return e.clone();var n=new Ot(e.__wrapped__,e.__chain__);return n.__actions__=ft(e.__actions__),n.__index__=e.__index__,n.__values__=e.__values__,n}function Qv(e,n,r){(r?at(e,n,r):n===o)?n=1:n=Qe(ye(n),0);var a=e==null?0:e.length;if(!a||n<1)return[];for(var c=0,h=0,p=M(Xi(a/n));c<a;)p[h++]=Mt(e,c,c+=n);return p}function Yv(e){for(var n=-1,r=e==null?0:e.length,a=0,c=[];++n<r;){var h=e[n];h&&(c[a++]=h)}return c}function Zv(){var e=arguments.length;if(!e)return[];for(var n=M(e-1),r=arguments[0],a=e;a--;)n[a-1]=arguments[a];return xn(be(r)?ft(r):[r],tt(n,1))}var Xv=Se(function(e,n){return ze(e)?Xr(e,tt(n,1,ze,!0)):[]}),Jv=Se(function(e,n){var r=Vt(n);return ze(r)&&(r=o),ze(e)?Xr(e,tt(n,1,ze,!0),fe(r,2)):[]}),e0=Se(function(e,n){var r=Vt(n);return ze(r)&&(r=o),ze(e)?Xr(e,tt(n,1,ze,!0),o,r):[]});function t0(e,n,r){var a=e==null?0:e.length;return a?(n=r||n===o?1:ye(n),Mt(e,n<0?0:n,a)):[]}function n0(e,n,r){var a=e==null?0:e.length;return a?(n=r||n===o?1:ye(n),n=a-n,Mt(e,0,n<0?0:n)):[]}function r0(e,n){return e&&e.length?uo(e,fe(n,3),!0,!0):[]}function i0(e,n){return e&&e.length?uo(e,fe(n,3),!0):[]}function o0(e,n,r,a){var c=e==null?0:e.length;return c?(r&&typeof r!="number"&&at(e,n,r)&&(r=0,a=c),Zp(e,n,r,a)):[]}function of(e,n,r){var a=e==null?0:e.length;if(!a)return-1;var c=r==null?0:ye(r);return c<0&&(c=Qe(a+c,0)),Di(e,fe(n,3),c)}function lf(e,n,r){var a=e==null?0:e.length;if(!a)return-1;var c=a-1;return r!==o&&(c=ye(r),c=r<0?Qe(a+c,0):rt(c,a-1)),Di(e,fe(n,3),c,!0)}function af(e){var n=e==null?0:e.length;return n?tt(e,1):[]}function l0(e){var n=e==null?0:e.length;return n?tt(e,ce):[]}function a0(e,n){var r=e==null?0:e.length;return r?(n=n===o?1:ye(n),tt(e,n)):[]}function u0(e){for(var n=-1,r=e==null?0:e.length,a={};++n<r;){var c=e[n];a[c[0]]=c[1]}return a}function uf(e){return e&&e.length?e[0]:o}function s0(e,n,r){var a=e==null?0:e.length;if(!a)return-1;var c=r==null?0:ye(r);return c<0&&(c=Qe(a+c,0)),pr(e,n,c)}function c0(e){var n=e==null?0:e.length;return n?Mt(e,0,-1):[]}var f0=Se(function(e){var n=Ie(e,jl);return n.length&&n[0]===e[0]?Nl(n):[]}),d0=Se(function(e){var n=Vt(e),r=Ie(e,jl);return n===Vt(r)?n=o:r.pop(),r.length&&r[0]===e[0]?Nl(r,fe(n,2)):[]}),h0=Se(function(e){var n=Vt(e),r=Ie(e,jl);return n=typeof n=="function"?n:o,n&&r.pop(),r.length&&r[0]===e[0]?Nl(r,o,n):[]});function m0(e,n){return e==null?"":cp.call(e,n)}function Vt(e){var n=e==null?0:e.length;return n?e[n-1]:o}function g0(e,n,r){var a=e==null?0:e.length;if(!a)return-1;var c=a;return r!==o&&(c=ye(r),c=c<0?Qe(a+c,0):rt(c,a-1)),n===n?jg(e,n,c):Di(e,Ds,c,!0)}function p0(e,n){return e&&e.length?_c(e,ye(n)):o}var v0=Se(sf);function sf(e,n){return e&&e.length&&n&&n.length?zl(e,n):e}function _0(e,n,r){return e&&e.length&&n&&n.length?zl(e,n,fe(r,2)):e}function b0(e,n,r){return e&&e.length&&n&&n.length?zl(e,n,o,r):e}var y0=sn(function(e,n){var r=e==null?0:e.length,a=Vl(e,n);return wc(e,Ie(n,function(c){return cn(c,r)?+c:c}).sort(Oc)),a});function w0(e,n){var r=[];if(!(e&&e.length))return r;var a=-1,c=[],h=e.length;for(n=fe(n,3);++a<h;){var p=e[a];n(p,a,e)&&(r.push(p),c.push(a))}return wc(e,c),r}function ua(e){return e==null?e:mp.call(e)}function S0(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===o?a:ye(r)),Mt(e,n,r)):[]}function x0(e,n){return ao(e,n)}function C0(e,n,r){return Hl(e,n,fe(r,2))}function k0(e,n){var r=e==null?0:e.length;if(r){var a=ao(e,n);if(a<r&&Wt(e[a],n))return a}return-1}function E0(e,n){return ao(e,n,!0)}function A0(e,n,r){return Hl(e,n,fe(r,2),!0)}function T0(e,n){var r=e==null?0:e.length;if(r){var a=ao(e,n,!0)-1;if(Wt(e[a],n))return a}return-1}function B0(e){return e&&e.length?xc(e):[]}function R0(e,n){return e&&e.length?xc(e,fe(n,2)):[]}function O0(e){var n=e==null?0:e.length;return n?Mt(e,1,n):[]}function q0(e,n,r){return e&&e.length?(n=r||n===o?1:ye(n),Mt(e,0,n<0?0:n)):[]}function M0(e,n,r){var a=e==null?0:e.length;return a?(n=r||n===o?1:ye(n),n=a-n,Mt(e,n<0?0:n,a)):[]}function V0(e,n){return e&&e.length?uo(e,fe(n,3),!1,!0):[]}function L0(e,n){return e&&e.length?uo(e,fe(n,3)):[]}var I0=Se(function(e){return An(tt(e,1,ze,!0))}),P0=Se(function(e){var n=Vt(e);return ze(n)&&(n=o),An(tt(e,1,ze,!0),fe(n,2))}),N0=Se(function(e){var n=Vt(e);return n=typeof n=="function"?n:o,An(tt(e,1,ze,!0),o,n)});function $0(e){return e&&e.length?An(e):[]}function F0(e,n){return e&&e.length?An(e,fe(n,2)):[]}function D0(e,n){return n=typeof n=="function"?n:o,e&&e.length?An(e,o,n):[]}function sa(e){if(!(e&&e.length))return[];var n=0;return e=Sn(e,function(r){if(ze(r))return n=Qe(r.length,n),!0}),El(n,function(r){return Ie(e,xl(r))})}function cf(e,n){if(!(e&&e.length))return[];var r=sa(e);return n==null?r:Ie(r,function(a){return yt(n,o,a)})}var z0=Se(function(e,n){return ze(e)?Xr(e,n):[]}),U0=Se(function(e){return Gl(Sn(e,ze))}),W0=Se(function(e){var n=Vt(e);return ze(n)&&(n=o),Gl(Sn(e,ze),fe(n,2))}),H0=Se(function(e){var n=Vt(e);return n=typeof n=="function"?n:o,Gl(Sn(e,ze),o,n)}),K0=Se(sa);function G0(e,n){return Ac(e||[],n||[],Zr)}function j0(e,n){return Ac(e||[],n||[],ti)}var Q0=Se(function(e){var n=e.length,r=n>1?e[n-1]:o;return r=typeof r=="function"?(e.pop(),r):o,cf(e,r)});function ff(e){var n=d(e);return n.__chain__=!0,n}function Y0(e,n){return n(e),e}function _o(e,n){return n(e)}var Z0=sn(function(e){var n=e.length,r=n?e[0]:0,a=this.__wrapped__,c=function(h){return Vl(h,e)};return n>1||this.__actions__.length||!(a instanceof Ce)||!cn(r)?this.thru(c):(a=a.slice(r,+r+(n?1:0)),a.__actions__.push({func:_o,args:[c],thisArg:o}),new Ot(a,this.__chain__).thru(function(h){return n&&!h.length&&h.push(o),h}))});function X0(){return ff(this)}function J0(){return new Ot(this.value(),this.__chain__)}function e_(){this.__values__===o&&(this.__values__=kf(this.value()));var e=this.__index__>=this.__values__.length,n=e?o:this.__values__[this.__index__++];return{done:e,value:n}}function t_(){return this}function n_(e){for(var n,r=this;r instanceof no;){var a=rf(r);a.__index__=0,a.__values__=o,n?c.__wrapped__=a:n=a;var c=a;r=r.__wrapped__}return c.__wrapped__=e,n}function r_(){var e=this.__wrapped__;if(e instanceof Ce){var n=e;return this.__actions__.length&&(n=new Ce(this)),n=n.reverse(),n.__actions__.push({func:_o,args:[ua],thisArg:o}),new Ot(n,this.__chain__)}return this.thru(ua)}function i_(){return Ec(this.__wrapped__,this.__actions__)}var o_=so(function(e,n,r){Re.call(e,r)?++e[r]:an(e,r,1)});function l_(e,n,r){var a=be(e)?$s:Yp;return r&&at(e,n,r)&&(n=o),a(e,fe(n,3))}function a_(e,n){var r=be(e)?Sn:sc;return r(e,fe(n,3))}var u_=Pc(of),s_=Pc(lf);function c_(e,n){return tt(bo(e,n),1)}function f_(e,n){return tt(bo(e,n),ce)}function d_(e,n,r){return r=r===o?1:ye(r),tt(bo(e,n),r)}function df(e,n){var r=be(e)?Bt:En;return r(e,fe(n,3))}function hf(e,n){var r=be(e)?Og:uc;return r(e,fe(n,3))}var h_=so(function(e,n,r){Re.call(e,r)?e[r].push(n):an(e,r,[n])});function m_(e,n,r,a){e=dt(e)?e:Tr(e),r=r&&!a?ye(r):0;var c=e.length;return r<0&&(r=Qe(c+r,0)),Co(e)?r<=c&&e.indexOf(n,r)>-1:!!c&&pr(e,n,r)>-1}var g_=Se(function(e,n,r){var a=-1,c=typeof n=="function",h=dt(e)?M(e.length):[];return En(e,function(p){h[++a]=c?yt(n,p,r):Jr(p,n,r)}),h}),p_=so(function(e,n,r){an(e,r,n)});function bo(e,n){var r=be(e)?Ie:gc;return r(e,fe(n,3))}function v_(e,n,r,a){return e==null?[]:(be(n)||(n=n==null?[]:[n]),r=a?o:r,be(r)||(r=r==null?[]:[r]),bc(e,n,r))}var __=so(function(e,n,r){e[r?0:1].push(n)},function(){return[[],[]]});function b_(e,n,r){var a=be(e)?wl:Us,c=arguments.length<3;return a(e,fe(n,4),r,c,En)}function y_(e,n,r){var a=be(e)?qg:Us,c=arguments.length<3;return a(e,fe(n,4),r,c,uc)}function w_(e,n){var r=be(e)?Sn:sc;return r(e,So(fe(n,3)))}function S_(e){var n=be(e)?ic:mv;return n(e)}function x_(e,n,r){(r?at(e,n,r):n===o)?n=1:n=ye(n);var a=be(e)?Hp:gv;return a(e,n)}function C_(e){var n=be(e)?Kp:vv;return n(e)}function k_(e){if(e==null)return 0;if(dt(e))return Co(e)?_r(e):e.length;var n=it(e);return n==nt||n==Fe?e.size:Fl(e).length}function E_(e,n,r){var a=be(e)?Sl:_v;return r&&at(e,n,r)&&(n=o),a(e,fe(n,3))}var A_=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]]),bc(e,tt(n,1),[])}),yo=ap||function(){return et.Date.now()};function T_(e,n){if(typeof n!="function")throw new Rt(m);return e=ye(e),function(){if(--e<1)return n.apply(this,arguments)}}function mf(e,n,r){return n=r?o:n,n=e&&n==null?e.length:n,un(e,I,o,o,o,o,n)}function gf(e,n){var r;if(typeof n!="function")throw new Rt(m);return e=ye(e),function(){return--e>0&&(r=n.apply(this,arguments)),e<=1&&(n=o),r}}var ca=Se(function(e,n,r){var a=O;if(r.length){var c=Cn(r,Er(ca));a|=j}return un(e,a,n,r,c)}),pf=Se(function(e,n,r){var a=O|G;if(r.length){var c=Cn(r,Er(pf));a|=j}return un(n,a,e,r,c)});function vf(e,n,r){n=r?o:n;var a=un(e,D,o,o,o,o,o,n);return a.placeholder=vf.placeholder,a}function _f(e,n,r){n=r?o:n;var a=un(e,Q,o,o,o,o,o,n);return a.placeholder=_f.placeholder,a}function bf(e,n,r){var a,c,h,p,b,E,N=0,$=!1,z=!1,ee=!0;if(typeof e!="function")throw new Rt(m);n=Lt(n)||0,$e(r)&&($=!!r.leading,z="maxWait"in r,h=z?Qe(Lt(r.maxWait)||0,n):h,ee="trailing"in r?!!r.trailing:ee);function ue(Ue){var Ht=a,hn=c;return a=c=o,N=Ue,p=e.apply(hn,Ht),p}function de(Ue){return N=Ue,b=ii(xe,n),$?ue(Ue):p}function we(Ue){var Ht=Ue-E,hn=Ue-N,Nf=n-Ht;return z?rt(Nf,h-hn):Nf}function he(Ue){var Ht=Ue-E,hn=Ue-N;return E===o||Ht>=n||Ht<0||z&&hn>=h}function xe(){var Ue=yo();if(he(Ue))return ke(Ue);b=ii(xe,we(Ue))}function ke(Ue){return b=o,ee&&a?ue(Ue):(a=c=o,p)}function Ct(){b!==o&&Tc(b),N=0,a=E=c=b=o}function ut(){return b===o?p:ke(yo())}function kt(){var Ue=yo(),Ht=he(Ue);if(a=arguments,c=this,E=Ue,Ht){if(b===o)return de(E);if(z)return Tc(b),b=ii(xe,n),ue(E)}return b===o&&(b=ii(xe,n)),p}return kt.cancel=Ct,kt.flush=ut,kt}var B_=Se(function(e,n){return ac(e,1,n)}),R_=Se(function(e,n,r){return ac(e,Lt(n)||0,r)});function O_(e){return un(e,P)}function wo(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new Rt(m);var r=function(){var a=arguments,c=n?n.apply(this,a):a[0],h=r.cache;if(h.has(c))return h.get(c);var p=e.apply(this,a);return r.cache=h.set(c,p)||h,p};return r.cache=new(wo.Cache||ln),r}wo.Cache=ln;function So(e){if(typeof e!="function")throw new Rt(m);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 q_(e){return gf(2,e)}var M_=bv(function(e,n){n=n.length==1&&be(n[0])?Ie(n[0],wt(fe())):Ie(tt(n,1),wt(fe()));var r=n.length;return Se(function(a){for(var c=-1,h=rt(a.length,r);++c<h;)a[c]=n[c].call(this,a[c]);return yt(e,this,a)})}),fa=Se(function(e,n){var r=Cn(n,Er(fa));return un(e,j,o,n,r)}),yf=Se(function(e,n){var r=Cn(n,Er(yf));return un(e,Y,o,n,r)}),V_=sn(function(e,n){return un(e,le,o,o,o,n)});function L_(e,n){if(typeof e!="function")throw new Rt(m);return n=n===o?n:ye(n),Se(e,n)}function I_(e,n){if(typeof e!="function")throw new Rt(m);return n=n==null?0:Qe(ye(n),0),Se(function(r){var a=r[n],c=Bn(r,0,n);return a&&xn(c,a),yt(e,this,c)})}function P_(e,n,r){var a=!0,c=!0;if(typeof e!="function")throw new Rt(m);return $e(r)&&(a="leading"in r?!!r.leading:a,c="trailing"in r?!!r.trailing:c),bf(e,n,{leading:a,maxWait:n,trailing:c})}function N_(e){return mf(e,1)}function $_(e,n){return fa(Ql(n),e)}function F_(){if(!arguments.length)return[];var e=arguments[0];return be(e)?e:[e]}function D_(e){return qt(e,w)}function z_(e,n){return n=typeof n=="function"?n:o,qt(e,w,n)}function U_(e){return qt(e,k|w)}function W_(e,n){return n=typeof n=="function"?n:o,qt(e,k|w,n)}function H_(e,n){return n==null||lc(e,n,Ze(n))}function Wt(e,n){return e===n||e!==e&&n!==n}var K_=mo(Pl),G_=mo(function(e,n){return e>=n}),Jn=dc(function(){return arguments}())?dc:function(e){return De(e)&&Re.call(e,"callee")&&!Xs.call(e,"callee")},be=M.isArray,j_=Ms?wt(Ms):nv;function dt(e){return e!=null&&xo(e.length)&&!fn(e)}function ze(e){return De(e)&&dt(e)}function Q_(e){return e===!0||e===!1||De(e)&<(e)==Ee}var Rn=sp||Sa,Y_=Vs?wt(Vs):rv;function Z_(e){return De(e)&&e.nodeType===1&&!oi(e)}function X_(e){if(e==null)return!0;if(dt(e)&&(be(e)||typeof e=="string"||typeof e.splice=="function"||Rn(e)||Ar(e)||Jn(e)))return!e.length;var n=it(e);if(n==nt||n==Fe)return!e.size;if(ri(e))return!Fl(e).length;for(var r in e)if(Re.call(e,r))return!1;return!0}function J_(e,n){return ei(e,n)}function eb(e,n,r){r=typeof r=="function"?r:o;var a=r?r(e,n):o;return a===o?ei(e,n,o,r):!!a}function da(e){if(!De(e))return!1;var n=lt(e);return n==ot||n==Ne||typeof e.message=="string"&&typeof e.name=="string"&&!oi(e)}function tb(e){return typeof e=="number"&&ec(e)}function fn(e){if(!$e(e))return!1;var n=lt(e);return n==Nt||n==_t||n==ne||n==$r}function wf(e){return typeof e=="number"&&e==ye(e)}function xo(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=H}function $e(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}function De(e){return e!=null&&typeof e=="object"}var Sf=Ls?wt(Ls):ov;function nb(e,n){return e===n||$l(e,n,na(n))}function rb(e,n,r){return r=typeof r=="function"?r:o,$l(e,n,na(n),r)}function ib(e){return xf(e)&&e!=+e}function ob(e){if(zv(e))throw new pe(f);return hc(e)}function lb(e){return e===null}function ab(e){return e==null}function xf(e){return typeof e=="number"||De(e)&<(e)==bt}function oi(e){if(!De(e)||lt(e)!=ct)return!1;var n=Qi(e);if(n===null)return!0;var r=Re.call(n,"constructor")&&n.constructor;return typeof r=="function"&&r instanceof r&&Hi.call(r)==rp}var ha=Is?wt(Is):lv;function ub(e){return wf(e)&&e>=-H&&e<=H}var Cf=Ps?wt(Ps):av;function Co(e){return typeof e=="string"||!be(e)&&De(e)&<(e)==Ge}function xt(e){return typeof e=="symbol"||De(e)&<(e)==Ft}var Ar=Ns?wt(Ns):uv;function sb(e){return e===o}function cb(e){return De(e)&&it(e)==Fn}function fb(e){return De(e)&<(e)==Ti}var db=mo(Dl),hb=mo(function(e,n){return e<=n});function kf(e){if(!e)return[];if(dt(e))return Co(e)?zt(e):ft(e);if(Kr&&e[Kr])return Hg(e[Kr]());var n=it(e),r=n==nt?Tl:n==Fe?zi:Tr;return r(e)}function dn(e){if(!e)return e===0?e:0;if(e=Lt(e),e===ce||e===-ce){var n=e<0?-1:1;return n*ie}return e===e?e:0}function ye(e){var n=dn(e),r=n%1;return n===n?r?n-r:n:0}function Ef(e){return e?Qn(ye(e),0,q):0}function Lt(e){if(typeof e=="number")return e;if(xt(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=Ws(e);var r=dl.test(e);return r||Ii.test(e)?Tg(e.slice(2),r?2:8):Wr.test(e)?ge:+e}function Af(e){return Qt(e,ht(e))}function mb(e){return e?Qn(ye(e),-H,H):e===0?e:0}function Te(e){return e==null?"":St(e)}var gb=Cr(function(e,n){if(ri(n)||dt(n)){Qt(n,Ze(n),e);return}for(var r in n)Re.call(n,r)&&Zr(e,r,n[r])}),Tf=Cr(function(e,n){Qt(n,ht(n),e)}),ko=Cr(function(e,n,r,a){Qt(n,ht(n),e,a)}),pb=Cr(function(e,n,r,a){Qt(n,Ze(n),e,a)}),vb=sn(Vl);function _b(e,n){var r=xr(e);return n==null?r:oc(r,n)}var bb=Se(function(e,n){e=qe(e);var r=-1,a=n.length,c=a>2?n[2]:o;for(c&&at(n[0],n[1],c)&&(a=1);++r<a;)for(var h=n[r],p=ht(h),b=-1,E=p.length;++b<E;){var N=p[b],$=e[N];($===o||Wt($,yr[N])&&!Re.call(e,N))&&(e[N]=h[N])}return e}),yb=Se(function(e){return e.push(o,Wc),yt(Bf,o,e)});function wb(e,n){return Fs(e,fe(n,3),jt)}function Sb(e,n){return Fs(e,fe(n,3),Il)}function xb(e,n){return e==null?e:Ll(e,fe(n,3),ht)}function Cb(e,n){return e==null?e:cc(e,fe(n,3),ht)}function kb(e,n){return e&&jt(e,fe(n,3))}function Eb(e,n){return e&&Il(e,fe(n,3))}function Ab(e){return e==null?[]:oo(e,Ze(e))}function Tb(e){return e==null?[]:oo(e,ht(e))}function ma(e,n,r){var a=e==null?o:Yn(e,n);return a===o?r:a}function Bb(e,n){return e!=null&&Gc(e,n,Xp)}function ga(e,n){return e!=null&&Gc(e,n,Jp)}var Rb=$c(function(e,n,r){n!=null&&typeof n.toString!="function"&&(n=Ki.call(n)),e[n]=r},va(mt)),Ob=$c(function(e,n,r){n!=null&&typeof n.toString!="function"&&(n=Ki.call(n)),Re.call(e,n)?e[n].push(r):e[n]=[r]},fe),qb=Se(Jr);function Ze(e){return dt(e)?rc(e):Fl(e)}function ht(e){return dt(e)?rc(e,!0):sv(e)}function Mb(e,n){var r={};return n=fe(n,3),jt(e,function(a,c,h){an(r,n(a,c,h),a)}),r}function Vb(e,n){var r={};return n=fe(n,3),jt(e,function(a,c,h){an(r,c,n(a,c,h))}),r}var Lb=Cr(function(e,n,r){lo(e,n,r)}),Bf=Cr(function(e,n,r,a){lo(e,n,r,a)}),Ib=sn(function(e,n){var r={};if(e==null)return r;var a=!1;n=Ie(n,function(h){return h=Tn(h,e),a||(a=h.length>1),h}),Qt(e,ea(e),r),a&&(r=qt(r,k|y|w,Rv));for(var c=n.length;c--;)Kl(r,n[c]);return r});function Pb(e,n){return Rf(e,So(fe(n)))}var Nb=sn(function(e,n){return e==null?{}:fv(e,n)});function Rf(e,n){if(e==null)return{};var r=Ie(ea(e),function(a){return[a]});return n=fe(n),yc(e,r,function(a,c){return n(a,c[0])})}function $b(e,n,r){n=Tn(n,e);var a=-1,c=n.length;for(c||(c=1,e=o);++a<c;){var h=e==null?o:e[Yt(n[a])];h===o&&(a=c,h=r),e=fn(h)?h.call(e):h}return e}function Fb(e,n,r){return e==null?e:ti(e,n,r)}function Db(e,n,r,a){return a=typeof a=="function"?a:o,e==null?e:ti(e,n,r,a)}var Of=zc(Ze),qf=zc(ht);function zb(e,n,r){var a=be(e),c=a||Rn(e)||Ar(e);if(n=fe(n,4),r==null){var h=e&&e.constructor;c?r=a?new h:[]:$e(e)?r=fn(h)?xr(Qi(e)):{}:r={}}return(c?Bt:jt)(e,function(p,b,E){return n(r,p,b,E)}),r}function Ub(e,n){return e==null?!0:Kl(e,n)}function Wb(e,n,r){return e==null?e:kc(e,n,Ql(r))}function Hb(e,n,r,a){return a=typeof a=="function"?a:o,e==null?e:kc(e,n,Ql(r),a)}function Tr(e){return e==null?[]:Al(e,Ze(e))}function Kb(e){return e==null?[]:Al(e,ht(e))}function Gb(e,n,r){return r===o&&(r=n,n=o),r!==o&&(r=Lt(r),r=r===r?r:0),n!==o&&(n=Lt(n),n=n===n?n:0),Qn(Lt(e),n,r)}function jb(e,n,r){return n=dn(n),r===o?(r=n,n=0):r=dn(r),e=Lt(e),ev(e,n,r)}function Qb(e,n,r){if(r&&typeof r!="boolean"&&at(e,n,r)&&(n=r=o),r===o&&(typeof n=="boolean"?(r=n,n=o):typeof e=="boolean"&&(r=e,e=o)),e===o&&n===o?(e=0,n=1):(e=dn(e),n===o?(n=e,e=0):n=dn(n)),e>n){var a=e;e=n,n=a}if(r||e%1||n%1){var c=tc();return rt(e+c*(n-e+Ag("1e-"+((c+"").length-1))),n)}return Ul(e,n)}var Yb=kr(function(e,n,r){return n=n.toLowerCase(),e+(r?Mf(n):n)});function Mf(e){return pa(Te(e).toLowerCase())}function Vf(e){return e=Te(e),e&&e.replace(Ni,Fg).replace(vg,"")}function Zb(e,n,r){e=Te(e),n=St(n);var a=e.length;r=r===o?a:Qn(ye(r),0,a);var c=r;return r-=n.length,r>=0&&e.slice(r,c)==n}function Xb(e){return e=Te(e),e&&Mi.test(e)?e.replace(qi,Dg):e}function Jb(e){return e=Te(e),e&&ll.test(e)?e.replace(zr,"\\$&"):e}var ey=kr(function(e,n,r){return e+(r?"-":"")+n.toLowerCase()}),ty=kr(function(e,n,r){return e+(r?" ":"")+n.toLowerCase()}),ny=Ic("toLowerCase");function ry(e,n,r){e=Te(e),n=ye(n);var a=n?_r(e):0;if(!n||a>=n)return e;var c=(n-a)/2;return ho(Ji(c),r)+e+ho(Xi(c),r)}function iy(e,n,r){e=Te(e),n=ye(n);var a=n?_r(e):0;return n&&a<n?e+ho(n-a,r):e}function oy(e,n,r){e=Te(e),n=ye(n);var a=n?_r(e):0;return n&&a<n?ho(n-a,r)+e:e}function ly(e,n,r){return r||n==null?n=0:n&&(n=+n),hp(Te(e).replace(Ur,""),n||0)}function ay(e,n,r){return(r?at(e,n,r):n===o)?n=1:n=ye(n),Wl(Te(e),n)}function uy(){var e=arguments,n=Te(e[0]);return e.length<3?n:n.replace(e[1],e[2])}var sy=kr(function(e,n,r){return e+(r?"_":"")+n.toLowerCase()});function cy(e,n,r){return r&&typeof r!="number"&&at(e,n,r)&&(n=r=o),r=r===o?q:r>>>0,r?(e=Te(e),e&&(typeof n=="string"||n!=null&&!ha(n))&&(n=St(n),!n&&vr(e))?Bn(zt(e),0,r):e.split(n,r)):[]}var fy=kr(function(e,n,r){return e+(r?" ":"")+pa(n)});function dy(e,n,r){return e=Te(e),r=r==null?0:Qn(ye(r),0,e.length),n=St(n),e.slice(r,r+n.length)==n}function hy(e,n,r){var a=d.templateSettings;r&&at(e,n,r)&&(n=o),e=Te(e),n=ko({},n,a,Uc);var c=ko({},n.imports,a.imports,Uc),h=Ze(c),p=Al(c,h),b,E,N=0,$=n.interpolate||_,z="__p += '",ee=Bl((n.escape||_).source+"|"+$.source+"|"+($===Un?nn:_).source+"|"+(n.evaluate||_).source+"|$","g"),ue="//# sourceURL="+(Re.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Sg+"]")+`
|
|
11
|
-
`;e.replace(ee,function(he,xe,ke,Ct,ut,kt){return ke||(ke=Ct),z+=e.slice(N,kt).replace(te,
|
|
10
|
+
`)}function Dv(e){return be(e)||Xn(e)||!!(ec&&e&&e[ec])}function cn(e,n){var r=typeof e;return n=n??H,!!n&&(r=="number"||r!="symbol"&&Pi.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)&&cn(n,r.length):a=="string"&&n in r)?Wt(r[n],e):!1}function ia(e,n){if(be(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||xt(e)?!0:bn.test(e)||!Un.test(e)||n!=null&&e in qe(n)}function zv(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}function oa(e){var n=go(e),r=d[n];if(typeof r!="function"||!(n in Ce.prototype))return!1;if(e===r)return!0;var a=ta(r);return!!a&&e===a[0]}function Uv(e){return!!Ys&&Ys in e}var Wv=Wi?fn:Sa;function ri(e){var n=e&&e.constructor,r=typeof n=="function"&&n.prototype||wr;return e===r}function Yc(e){return e===e&&!$e(e)}function Zc(e,n){return function(r){return r==null?!1:r[e]===n&&(n!==o||e in qe(r))}}function Hv(e){var n=wo(e,function(a){return r.size===A&&r.clear(),a}),r=n.cache;return n}function Kv(e,n){var r=e[1],a=n[1],c=r|a,h=c<(O|G|I),p=a==I&&r==D||a==I&&r==le&&e[7].length<=n[8]||a==(I|le)&&n[7].length<=n[8]&&r==D;if(!(h||p))return e;a&O&&(e[2]=n[2],c|=r&O?0:U);var b=n[3];if(b){var E=e[3];e[3]=E?Mc(E,b,n[4]):b,e[4]=E?Cn(e[3],v):n[4]}return b=n[5],b&&(E=e[5],e[5]=E?Vc(E,b,n[6]):b,e[6]=E?Cn(e[5],v):n[6]),b=n[7],b&&(e[7]=b),a&I&&(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]=c,e}function Gv(e){var n=[];if(e!=null)for(var r in qe(e))n.push(r);return n}function jv(e){return Ki.call(e)}function Xc(e,n,r){return n=Qe(n===o?e.length-1:n,0),function(){for(var a=arguments,c=-1,h=Qe(a.length-n,0),p=M(h);++c<h;)p[c]=a[n+c];c=-1;for(var b=M(n+1);++c<n;)b[c]=a[c];return b[n]=r(p),yt(e,this,b)}}function Jc(e,n){return n.length<2?e:Qn(e,Mt(n,0,-1))}function Qv(e,n){for(var r=e.length,a=rt(n.length,r),c=ft(e);a--;){var h=n[a];e[a]=cn(h,r)?c[h]:o}return e}function la(e,n){if(!(n==="constructor"&&typeof e[n]=="function")&&n!="__proto__")return e[n]}var ef=nf(xc),ii=cp||function(e,n){return et.setTimeout(e,n)},aa=nf(_v);function tf(e,n,r){var a=n+"";return aa(e,Fv(a,Yv(Pv(a),r)))}function nf(e){var n=0,r=0;return function(){var a=mp(),c=Z-(a-r);if(r=a,c>0){if(++n>=S)return arguments[0]}else n=0;return e.apply(o,arguments)}}function vo(e,n){var r=-1,a=e.length,c=a-1;for(n=n===o?a:n;++r<n;){var h=Ul(r,c),p=e[h];e[h]=e[r],e[r]=p}return e.length=n,e}var rf=Hv(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(ol,function(r,a,c,h){n.push(c?h.replace(wn,"$1"):a||r)}),n});function Yt(e){if(typeof e=="string"||xt(e))return e;var n=e+"";return n=="0"&&1/e==-ce?"-0":n}function Zn(e){if(e!=null){try{return Hi.call(e)}catch{}try{return e+""}catch{}}return""}function Yv(e,n){return Bt(ve,function(r){var a="_."+r[0];n&r[1]&&!Fi(e,a)&&e.push(a)}),e.sort()}function of(e){if(e instanceof Ce)return e.clone();var n=new Ot(e.__wrapped__,e.__chain__);return n.__actions__=ft(e.__actions__),n.__index__=e.__index__,n.__values__=e.__values__,n}function Zv(e,n,r){(r?at(e,n,r):n===o)?n=1:n=Qe(ye(n),0);var a=e==null?0:e.length;if(!a||n<1)return[];for(var c=0,h=0,p=M(Xi(a/n));c<a;)p[h++]=Mt(e,c,c+=n);return p}function Xv(e){for(var n=-1,r=e==null?0:e.length,a=0,c=[];++n<r;){var h=e[n];h&&(c[a++]=h)}return c}function Jv(){var e=arguments.length;if(!e)return[];for(var n=M(e-1),r=arguments[0],a=e;a--;)n[a-1]=arguments[a];return xn(be(r)?ft(r):[r],tt(n,1))}var e0=Se(function(e,n){return ze(e)?Xr(e,tt(n,1,ze,!0)):[]}),t0=Se(function(e,n){var r=Vt(n);return ze(r)&&(r=o),ze(e)?Xr(e,tt(n,1,ze,!0),fe(r,2)):[]}),n0=Se(function(e,n){var r=Vt(n);return ze(r)&&(r=o),ze(e)?Xr(e,tt(n,1,ze,!0),o,r):[]});function r0(e,n,r){var a=e==null?0:e.length;return a?(n=r||n===o?1:ye(n),Mt(e,n<0?0:n,a)):[]}function i0(e,n,r){var a=e==null?0:e.length;return a?(n=r||n===o?1:ye(n),n=a-n,Mt(e,0,n<0?0:n)):[]}function o0(e,n){return e&&e.length?uo(e,fe(n,3),!0,!0):[]}function l0(e,n){return e&&e.length?uo(e,fe(n,3),!0):[]}function a0(e,n,r,a){var c=e==null?0:e.length;return c?(r&&typeof r!="number"&&at(e,n,r)&&(r=0,a=c),Jp(e,n,r,a)):[]}function lf(e,n,r){var a=e==null?0:e.length;if(!a)return-1;var c=r==null?0:ye(r);return c<0&&(c=Qe(a+c,0)),Di(e,fe(n,3),c)}function af(e,n,r){var a=e==null?0:e.length;if(!a)return-1;var c=a-1;return r!==o&&(c=ye(r),c=r<0?Qe(a+c,0):rt(c,a-1)),Di(e,fe(n,3),c,!0)}function uf(e){var n=e==null?0:e.length;return n?tt(e,1):[]}function u0(e){var n=e==null?0:e.length;return n?tt(e,ce):[]}function s0(e,n){var r=e==null?0:e.length;return r?(n=n===o?1:ye(n),tt(e,n)):[]}function c0(e){for(var n=-1,r=e==null?0:e.length,a={};++n<r;){var c=e[n];a[c[0]]=c[1]}return a}function sf(e){return e&&e.length?e[0]:o}function f0(e,n,r){var a=e==null?0:e.length;if(!a)return-1;var c=r==null?0:ye(r);return c<0&&(c=Qe(a+c,0)),vr(e,n,c)}function d0(e){var n=e==null?0:e.length;return n?Mt(e,0,-1):[]}var h0=Se(function(e){var n=Ie(e,jl);return n.length&&n[0]===e[0]?Nl(n):[]}),m0=Se(function(e){var n=Vt(e),r=Ie(e,jl);return n===Vt(r)?n=o:r.pop(),r.length&&r[0]===e[0]?Nl(r,fe(n,2)):[]}),g0=Se(function(e){var n=Vt(e),r=Ie(e,jl);return n=typeof n=="function"?n:o,n&&r.pop(),r.length&&r[0]===e[0]?Nl(r,o,n):[]});function p0(e,n){return e==null?"":dp.call(e,n)}function Vt(e){var n=e==null?0:e.length;return n?e[n-1]:o}function v0(e,n,r){var a=e==null?0:e.length;if(!a)return-1;var c=a;return r!==o&&(c=ye(r),c=c<0?Qe(a+c,0):rt(c,a-1)),n===n?Yg(e,n,c):Di(e,zs,c,!0)}function _0(e,n){return e&&e.length?bc(e,ye(n)):o}var b0=Se(cf);function cf(e,n){return e&&e.length&&n&&n.length?zl(e,n):e}function y0(e,n,r){return e&&e.length&&n&&n.length?zl(e,n,fe(r,2)):e}function w0(e,n,r){return e&&e.length&&n&&n.length?zl(e,n,o,r):e}var S0=sn(function(e,n){var r=e==null?0:e.length,a=Vl(e,n);return Sc(e,Ie(n,function(c){return cn(c,r)?+c:c}).sort(qc)),a});function x0(e,n){var r=[];if(!(e&&e.length))return r;var a=-1,c=[],h=e.length;for(n=fe(n,3);++a<h;){var p=e[a];n(p,a,e)&&(r.push(p),c.push(a))}return Sc(e,c),r}function ua(e){return e==null?e:pp.call(e)}function C0(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===o?a:ye(r)),Mt(e,n,r)):[]}function k0(e,n){return ao(e,n)}function E0(e,n,r){return Hl(e,n,fe(r,2))}function A0(e,n){var r=e==null?0:e.length;if(r){var a=ao(e,n);if(a<r&&Wt(e[a],n))return a}return-1}function T0(e,n){return ao(e,n,!0)}function B0(e,n,r){return Hl(e,n,fe(r,2),!0)}function R0(e,n){var r=e==null?0:e.length;if(r){var a=ao(e,n,!0)-1;if(Wt(e[a],n))return a}return-1}function O0(e){return e&&e.length?Cc(e):[]}function q0(e,n){return e&&e.length?Cc(e,fe(n,2)):[]}function M0(e){var n=e==null?0:e.length;return n?Mt(e,1,n):[]}function V0(e,n,r){return e&&e.length?(n=r||n===o?1:ye(n),Mt(e,0,n<0?0:n)):[]}function L0(e,n,r){var a=e==null?0:e.length;return a?(n=r||n===o?1:ye(n),n=a-n,Mt(e,n<0?0:n,a)):[]}function I0(e,n){return e&&e.length?uo(e,fe(n,3),!1,!0):[]}function P0(e,n){return e&&e.length?uo(e,fe(n,3)):[]}var N0=Se(function(e){return An(tt(e,1,ze,!0))}),$0=Se(function(e){var n=Vt(e);return ze(n)&&(n=o),An(tt(e,1,ze,!0),fe(n,2))}),F0=Se(function(e){var n=Vt(e);return n=typeof n=="function"?n:o,An(tt(e,1,ze,!0),o,n)});function D0(e){return e&&e.length?An(e):[]}function z0(e,n){return e&&e.length?An(e,fe(n,2)):[]}function U0(e,n){return n=typeof n=="function"?n:o,e&&e.length?An(e,o,n):[]}function sa(e){if(!(e&&e.length))return[];var n=0;return e=Sn(e,function(r){if(ze(r))return n=Qe(r.length,n),!0}),El(n,function(r){return Ie(e,xl(r))})}function ff(e,n){if(!(e&&e.length))return[];var r=sa(e);return n==null?r:Ie(r,function(a){return yt(n,o,a)})}var W0=Se(function(e,n){return ze(e)?Xr(e,n):[]}),H0=Se(function(e){return Gl(Sn(e,ze))}),K0=Se(function(e){var n=Vt(e);return ze(n)&&(n=o),Gl(Sn(e,ze),fe(n,2))}),G0=Se(function(e){var n=Vt(e);return n=typeof n=="function"?n:o,Gl(Sn(e,ze),o,n)}),j0=Se(sa);function Q0(e,n){return Tc(e||[],n||[],Zr)}function Y0(e,n){return Tc(e||[],n||[],ti)}var Z0=Se(function(e){var n=e.length,r=n>1?e[n-1]:o;return r=typeof r=="function"?(e.pop(),r):o,ff(e,r)});function df(e){var n=d(e);return n.__chain__=!0,n}function X0(e,n){return n(e),e}function _o(e,n){return n(e)}var J0=sn(function(e){var n=e.length,r=n?e[0]:0,a=this.__wrapped__,c=function(h){return Vl(h,e)};return n>1||this.__actions__.length||!(a instanceof Ce)||!cn(r)?this.thru(c):(a=a.slice(r,+r+(n?1:0)),a.__actions__.push({func:_o,args:[c],thisArg:o}),new Ot(a,this.__chain__).thru(function(h){return n&&!h.length&&h.push(o),h}))});function e_(){return df(this)}function t_(){return new Ot(this.value(),this.__chain__)}function n_(){this.__values__===o&&(this.__values__=Ef(this.value()));var e=this.__index__>=this.__values__.length,n=e?o:this.__values__[this.__index__++];return{done:e,value:n}}function r_(){return this}function i_(e){for(var n,r=this;r instanceof no;){var a=of(r);a.__index__=0,a.__values__=o,n?c.__wrapped__=a:n=a;var c=a;r=r.__wrapped__}return c.__wrapped__=e,n}function o_(){var e=this.__wrapped__;if(e instanceof Ce){var n=e;return this.__actions__.length&&(n=new Ce(this)),n=n.reverse(),n.__actions__.push({func:_o,args:[ua],thisArg:o}),new Ot(n,this.__chain__)}return this.thru(ua)}function l_(){return Ac(this.__wrapped__,this.__actions__)}var a_=so(function(e,n,r){Re.call(e,r)?++e[r]:an(e,r,1)});function u_(e,n,r){var a=be(e)?Fs:Xp;return r&&at(e,n,r)&&(n=o),a(e,fe(n,3))}function s_(e,n){var r=be(e)?Sn:cc;return r(e,fe(n,3))}var c_=Nc(lf),f_=Nc(af);function d_(e,n){return tt(bo(e,n),1)}function h_(e,n){return tt(bo(e,n),ce)}function m_(e,n,r){return r=r===o?1:ye(r),tt(bo(e,n),r)}function hf(e,n){var r=be(e)?Bt:En;return r(e,fe(n,3))}function mf(e,n){var r=be(e)?Mg:sc;return r(e,fe(n,3))}var g_=so(function(e,n,r){Re.call(e,r)?e[r].push(n):an(e,r,[n])});function p_(e,n,r,a){e=dt(e)?e:Br(e),r=r&&!a?ye(r):0;var c=e.length;return r<0&&(r=Qe(c+r,0)),Co(e)?r<=c&&e.indexOf(n,r)>-1:!!c&&vr(e,n,r)>-1}var v_=Se(function(e,n,r){var a=-1,c=typeof n=="function",h=dt(e)?M(e.length):[];return En(e,function(p){h[++a]=c?yt(n,p,r):Jr(p,n,r)}),h}),__=so(function(e,n,r){an(e,r,n)});function bo(e,n){var r=be(e)?Ie:pc;return r(e,fe(n,3))}function b_(e,n,r,a){return e==null?[]:(be(n)||(n=n==null?[]:[n]),r=a?o:r,be(r)||(r=r==null?[]:[r]),yc(e,n,r))}var y_=so(function(e,n,r){e[r?0:1].push(n)},function(){return[[],[]]});function w_(e,n,r){var a=be(e)?wl:Ws,c=arguments.length<3;return a(e,fe(n,4),r,c,En)}function S_(e,n,r){var a=be(e)?Vg:Ws,c=arguments.length<3;return a(e,fe(n,4),r,c,sc)}function x_(e,n){var r=be(e)?Sn:cc;return r(e,So(fe(n,3)))}function C_(e){var n=be(e)?oc:pv;return n(e)}function k_(e,n,r){(r?at(e,n,r):n===o)?n=1:n=ye(n);var a=be(e)?Gp:vv;return a(e,n)}function E_(e){var n=be(e)?jp:bv;return n(e)}function A_(e){if(e==null)return 0;if(dt(e))return Co(e)?br(e):e.length;var n=it(e);return n==nt||n==Fe?e.size:Fl(e).length}function T_(e,n,r){var a=be(e)?Sl:yv;return r&&at(e,n,r)&&(n=o),a(e,fe(n,3))}var B_=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]]),yc(e,tt(n,1),[])}),yo=sp||function(){return et.Date.now()};function R_(e,n){if(typeof n!="function")throw new Rt(m);return e=ye(e),function(){if(--e<1)return n.apply(this,arguments)}}function gf(e,n,r){return n=r?o:n,n=e&&n==null?e.length:n,un(e,I,o,o,o,o,n)}function pf(e,n){var r;if(typeof n!="function")throw new Rt(m);return e=ye(e),function(){return--e>0&&(r=n.apply(this,arguments)),e<=1&&(n=o),r}}var ca=Se(function(e,n,r){var a=O;if(r.length){var c=Cn(r,Ar(ca));a|=j}return un(e,a,n,r,c)}),vf=Se(function(e,n,r){var a=O|G;if(r.length){var c=Cn(r,Ar(vf));a|=j}return un(n,a,e,r,c)});function _f(e,n,r){n=r?o:n;var a=un(e,D,o,o,o,o,o,n);return a.placeholder=_f.placeholder,a}function bf(e,n,r){n=r?o:n;var a=un(e,Q,o,o,o,o,o,n);return a.placeholder=bf.placeholder,a}function yf(e,n,r){var a,c,h,p,b,E,N=0,$=!1,z=!1,ee=!0;if(typeof e!="function")throw new Rt(m);n=Lt(n)||0,$e(r)&&($=!!r.leading,z="maxWait"in r,h=z?Qe(Lt(r.maxWait)||0,n):h,ee="trailing"in r?!!r.trailing:ee);function ue(Ue){var Ht=a,hn=c;return a=c=o,N=Ue,p=e.apply(hn,Ht),p}function de(Ue){return N=Ue,b=ii(xe,n),$?ue(Ue):p}function we(Ue){var Ht=Ue-E,hn=Ue-N,$f=n-Ht;return z?rt($f,h-hn):$f}function he(Ue){var Ht=Ue-E,hn=Ue-N;return E===o||Ht>=n||Ht<0||z&&hn>=h}function xe(){var Ue=yo();if(he(Ue))return ke(Ue);b=ii(xe,we(Ue))}function ke(Ue){return b=o,ee&&a?ue(Ue):(a=c=o,p)}function Ct(){b!==o&&Bc(b),N=0,a=E=c=b=o}function ut(){return b===o?p:ke(yo())}function kt(){var Ue=yo(),Ht=he(Ue);if(a=arguments,c=this,E=Ue,Ht){if(b===o)return de(E);if(z)return Bc(b),b=ii(xe,n),ue(E)}return b===o&&(b=ii(xe,n)),p}return kt.cancel=Ct,kt.flush=ut,kt}var O_=Se(function(e,n){return uc(e,1,n)}),q_=Se(function(e,n,r){return uc(e,Lt(n)||0,r)});function M_(e){return un(e,P)}function wo(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new Rt(m);var r=function(){var a=arguments,c=n?n.apply(this,a):a[0],h=r.cache;if(h.has(c))return h.get(c);var p=e.apply(this,a);return r.cache=h.set(c,p)||h,p};return r.cache=new(wo.Cache||ln),r}wo.Cache=ln;function So(e){if(typeof e!="function")throw new Rt(m);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 V_(e){return pf(2,e)}var L_=wv(function(e,n){n=n.length==1&&be(n[0])?Ie(n[0],wt(fe())):Ie(tt(n,1),wt(fe()));var r=n.length;return Se(function(a){for(var c=-1,h=rt(a.length,r);++c<h;)a[c]=n[c].call(this,a[c]);return yt(e,this,a)})}),fa=Se(function(e,n){var r=Cn(n,Ar(fa));return un(e,j,o,n,r)}),wf=Se(function(e,n){var r=Cn(n,Ar(wf));return un(e,Y,o,n,r)}),I_=sn(function(e,n){return un(e,le,o,o,o,n)});function P_(e,n){if(typeof e!="function")throw new Rt(m);return n=n===o?n:ye(n),Se(e,n)}function N_(e,n){if(typeof e!="function")throw new Rt(m);return n=n==null?0:Qe(ye(n),0),Se(function(r){var a=r[n],c=Bn(r,0,n);return a&&xn(c,a),yt(e,this,c)})}function $_(e,n,r){var a=!0,c=!0;if(typeof e!="function")throw new Rt(m);return $e(r)&&(a="leading"in r?!!r.leading:a,c="trailing"in r?!!r.trailing:c),yf(e,n,{leading:a,maxWait:n,trailing:c})}function F_(e){return gf(e,1)}function D_(e,n){return fa(Ql(n),e)}function z_(){if(!arguments.length)return[];var e=arguments[0];return be(e)?e:[e]}function U_(e){return qt(e,w)}function W_(e,n){return n=typeof n=="function"?n:o,qt(e,w,n)}function H_(e){return qt(e,k|w)}function K_(e,n){return n=typeof n=="function"?n:o,qt(e,k|w,n)}function G_(e,n){return n==null||ac(e,n,Ze(n))}function Wt(e,n){return e===n||e!==e&&n!==n}var j_=mo(Pl),Q_=mo(function(e,n){return e>=n}),Xn=hc(function(){return arguments}())?hc:function(e){return De(e)&&Re.call(e,"callee")&&!Js.call(e,"callee")},be=M.isArray,Y_=Vs?wt(Vs):iv;function dt(e){return e!=null&&xo(e.length)&&!fn(e)}function ze(e){return De(e)&&dt(e)}function Z_(e){return e===!0||e===!1||De(e)&<(e)==Ee}var Rn=fp||Sa,X_=Ls?wt(Ls):ov;function J_(e){return De(e)&&e.nodeType===1&&!oi(e)}function eb(e){if(e==null)return!0;if(dt(e)&&(be(e)||typeof e=="string"||typeof e.splice=="function"||Rn(e)||Tr(e)||Xn(e)))return!e.length;var n=it(e);if(n==nt||n==Fe)return!e.size;if(ri(e))return!Fl(e).length;for(var r in e)if(Re.call(e,r))return!1;return!0}function tb(e,n){return ei(e,n)}function nb(e,n,r){r=typeof r=="function"?r:o;var a=r?r(e,n):o;return a===o?ei(e,n,o,r):!!a}function da(e){if(!De(e))return!1;var n=lt(e);return n==ot||n==Ne||typeof e.message=="string"&&typeof e.name=="string"&&!oi(e)}function rb(e){return typeof e=="number"&&tc(e)}function fn(e){if(!$e(e))return!1;var n=lt(e);return n==Nt||n==_t||n==ne||n==$r}function Sf(e){return typeof e=="number"&&e==ye(e)}function xo(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=H}function $e(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}function De(e){return e!=null&&typeof e=="object"}var xf=Is?wt(Is):av;function ib(e,n){return e===n||$l(e,n,na(n))}function ob(e,n,r){return r=typeof r=="function"?r:o,$l(e,n,na(n),r)}function lb(e){return Cf(e)&&e!=+e}function ab(e){if(Wv(e))throw new pe(f);return mc(e)}function ub(e){return e===null}function sb(e){return e==null}function Cf(e){return typeof e=="number"||De(e)&<(e)==bt}function oi(e){if(!De(e)||lt(e)!=ct)return!1;var n=Qi(e);if(n===null)return!0;var r=Re.call(n,"constructor")&&n.constructor;return typeof r=="function"&&r instanceof r&&Hi.call(r)==op}var ha=Ps?wt(Ps):uv;function cb(e){return Sf(e)&&e>=-H&&e<=H}var kf=Ns?wt(Ns):sv;function Co(e){return typeof e=="string"||!be(e)&&De(e)&<(e)==Ge}function xt(e){return typeof e=="symbol"||De(e)&<(e)==Ft}var Tr=$s?wt($s):cv;function fb(e){return e===o}function db(e){return De(e)&&it(e)==$n}function hb(e){return De(e)&<(e)==Ti}var mb=mo(Dl),gb=mo(function(e,n){return e<=n});function Ef(e){if(!e)return[];if(dt(e))return Co(e)?zt(e):ft(e);if(Kr&&e[Kr])return Gg(e[Kr]());var n=it(e),r=n==nt?Tl:n==Fe?zi:Br;return r(e)}function dn(e){if(!e)return e===0?e:0;if(e=Lt(e),e===ce||e===-ce){var n=e<0?-1:1;return n*ie}return e===e?e:0}function ye(e){var n=dn(e),r=n%1;return n===n?r?n-r:n:0}function Af(e){return e?jn(ye(e),0,q):0}function Lt(e){if(typeof e=="number")return e;if(xt(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=Hs(e);var r=dl.test(e);return r||Ii.test(e)?Rg(e.slice(2),r?2:8):Wr.test(e)?ge:+e}function Tf(e){return Qt(e,ht(e))}function pb(e){return e?jn(ye(e),-H,H):e===0?e:0}function Te(e){return e==null?"":St(e)}var vb=kr(function(e,n){if(ri(n)||dt(n)){Qt(n,Ze(n),e);return}for(var r in n)Re.call(n,r)&&Zr(e,r,n[r])}),Bf=kr(function(e,n){Qt(n,ht(n),e)}),ko=kr(function(e,n,r,a){Qt(n,ht(n),e,a)}),_b=kr(function(e,n,r,a){Qt(n,Ze(n),e,a)}),bb=sn(Vl);function yb(e,n){var r=Cr(e);return n==null?r:lc(r,n)}var wb=Se(function(e,n){e=qe(e);var r=-1,a=n.length,c=a>2?n[2]:o;for(c&&at(n[0],n[1],c)&&(a=1);++r<a;)for(var h=n[r],p=ht(h),b=-1,E=p.length;++b<E;){var N=p[b],$=e[N];($===o||Wt($,wr[N])&&!Re.call(e,N))&&(e[N]=h[N])}return e}),Sb=Se(function(e){return e.push(o,Hc),yt(Rf,o,e)});function xb(e,n){return Ds(e,fe(n,3),jt)}function Cb(e,n){return Ds(e,fe(n,3),Il)}function kb(e,n){return e==null?e:Ll(e,fe(n,3),ht)}function Eb(e,n){return e==null?e:fc(e,fe(n,3),ht)}function Ab(e,n){return e&&jt(e,fe(n,3))}function Tb(e,n){return e&&Il(e,fe(n,3))}function Bb(e){return e==null?[]:oo(e,Ze(e))}function Rb(e){return e==null?[]:oo(e,ht(e))}function ma(e,n,r){var a=e==null?o:Qn(e,n);return a===o?r:a}function Ob(e,n){return e!=null&&jc(e,n,ev)}function ga(e,n){return e!=null&&jc(e,n,tv)}var qb=Fc(function(e,n,r){n!=null&&typeof n.toString!="function"&&(n=Ki.call(n)),e[n]=r},va(mt)),Mb=Fc(function(e,n,r){n!=null&&typeof n.toString!="function"&&(n=Ki.call(n)),Re.call(e,n)?e[n].push(r):e[n]=[r]},fe),Vb=Se(Jr);function Ze(e){return dt(e)?ic(e):Fl(e)}function ht(e){return dt(e)?ic(e,!0):fv(e)}function Lb(e,n){var r={};return n=fe(n,3),jt(e,function(a,c,h){an(r,n(a,c,h),a)}),r}function Ib(e,n){var r={};return n=fe(n,3),jt(e,function(a,c,h){an(r,c,n(a,c,h))}),r}var Pb=kr(function(e,n,r){lo(e,n,r)}),Rf=kr(function(e,n,r,a){lo(e,n,r,a)}),Nb=sn(function(e,n){var r={};if(e==null)return r;var a=!1;n=Ie(n,function(h){return h=Tn(h,e),a||(a=h.length>1),h}),Qt(e,ea(e),r),a&&(r=qt(r,k|y|w,qv));for(var c=n.length;c--;)Kl(r,n[c]);return r});function $b(e,n){return Of(e,So(fe(n)))}var Fb=sn(function(e,n){return e==null?{}:hv(e,n)});function Of(e,n){if(e==null)return{};var r=Ie(ea(e),function(a){return[a]});return n=fe(n),wc(e,r,function(a,c){return n(a,c[0])})}function Db(e,n,r){n=Tn(n,e);var a=-1,c=n.length;for(c||(c=1,e=o);++a<c;){var h=e==null?o:e[Yt(n[a])];h===o&&(a=c,h=r),e=fn(h)?h.call(e):h}return e}function zb(e,n,r){return e==null?e:ti(e,n,r)}function Ub(e,n,r,a){return a=typeof a=="function"?a:o,e==null?e:ti(e,n,r,a)}var qf=Uc(Ze),Mf=Uc(ht);function Wb(e,n,r){var a=be(e),c=a||Rn(e)||Tr(e);if(n=fe(n,4),r==null){var h=e&&e.constructor;c?r=a?new h:[]:$e(e)?r=fn(h)?Cr(Qi(e)):{}:r={}}return(c?Bt:jt)(e,function(p,b,E){return n(r,p,b,E)}),r}function Hb(e,n){return e==null?!0:Kl(e,n)}function Kb(e,n,r){return e==null?e:Ec(e,n,Ql(r))}function Gb(e,n,r,a){return a=typeof a=="function"?a:o,e==null?e:Ec(e,n,Ql(r),a)}function Br(e){return e==null?[]:Al(e,Ze(e))}function jb(e){return e==null?[]:Al(e,ht(e))}function Qb(e,n,r){return r===o&&(r=n,n=o),r!==o&&(r=Lt(r),r=r===r?r:0),n!==o&&(n=Lt(n),n=n===n?n:0),jn(Lt(e),n,r)}function Yb(e,n,r){return n=dn(n),r===o?(r=n,n=0):r=dn(r),e=Lt(e),nv(e,n,r)}function Zb(e,n,r){if(r&&typeof r!="boolean"&&at(e,n,r)&&(n=r=o),r===o&&(typeof n=="boolean"?(r=n,n=o):typeof e=="boolean"&&(r=e,e=o)),e===o&&n===o?(e=0,n=1):(e=dn(e),n===o?(n=e,e=0):n=dn(n)),e>n){var a=e;e=n,n=a}if(r||e%1||n%1){var c=nc();return rt(e+c*(n-e+Bg("1e-"+((c+"").length-1))),n)}return Ul(e,n)}var Xb=Er(function(e,n,r){return n=n.toLowerCase(),e+(r?Vf(n):n)});function Vf(e){return pa(Te(e).toLowerCase())}function Lf(e){return e=Te(e),e&&e.replace(Ni,zg).replace(bg,"")}function Jb(e,n,r){e=Te(e),n=St(n);var a=e.length;r=r===o?a:jn(ye(r),0,a);var c=r;return r-=n.length,r>=0&&e.slice(r,c)==n}function ey(e){return e=Te(e),e&&Mi.test(e)?e.replace(qi,Ug):e}function ty(e){return e=Te(e),e&&ll.test(e)?e.replace(zr,"\\$&"):e}var ny=Er(function(e,n,r){return e+(r?"-":"")+n.toLowerCase()}),ry=Er(function(e,n,r){return e+(r?" ":"")+n.toLowerCase()}),iy=Pc("toLowerCase");function oy(e,n,r){e=Te(e),n=ye(n);var a=n?br(e):0;if(!n||a>=n)return e;var c=(n-a)/2;return ho(Ji(c),r)+e+ho(Xi(c),r)}function ly(e,n,r){e=Te(e),n=ye(n);var a=n?br(e):0;return n&&a<n?e+ho(n-a,r):e}function ay(e,n,r){e=Te(e),n=ye(n);var a=n?br(e):0;return n&&a<n?ho(n-a,r)+e:e}function uy(e,n,r){return r||n==null?n=0:n&&(n=+n),gp(Te(e).replace(Ur,""),n||0)}function sy(e,n,r){return(r?at(e,n,r):n===o)?n=1:n=ye(n),Wl(Te(e),n)}function cy(){var e=arguments,n=Te(e[0]);return e.length<3?n:n.replace(e[1],e[2])}var fy=Er(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=o),r=r===o?q:r>>>0,r?(e=Te(e),e&&(typeof n=="string"||n!=null&&!ha(n))&&(n=St(n),!n&&_r(e))?Bn(zt(e),0,r):e.split(n,r)):[]}var hy=Er(function(e,n,r){return e+(r?" ":"")+pa(n)});function my(e,n,r){return e=Te(e),r=r==null?0:jn(ye(r),0,e.length),n=St(n),e.slice(r,r+n.length)==n}function gy(e,n,r){var a=d.templateSettings;r&&at(e,n,r)&&(n=o),e=Te(e),n=ko({},n,a,Wc);var c=ko({},n.imports,a.imports,Wc),h=Ze(c),p=Al(c,h),b,E,N=0,$=n.interpolate||_,z="__p += '",ee=Bl((n.escape||_).source+"|"+$.source+"|"+($===zn?nn:_).source+"|"+(n.evaluate||_).source+"|$","g"),ue="//# sourceURL="+(Re.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Cg+"]")+`
|
|
11
|
+
`;e.replace(ee,function(he,xe,ke,Ct,ut,kt){return ke||(ke=Ct),z+=e.slice(N,kt).replace(te,Wg),xe&&(b=!0,z+=`' +
|
|
12
12
|
__e(`+xe+`) +
|
|
13
13
|
'`),ut&&(E=!0,z+=`';
|
|
14
14
|
`+ut+`;
|
|
@@ -24,12 +24,12 @@ __p += '`),ke&&(z+=`' +
|
|
|
24
24
|
function print() { __p += __j.call(arguments, '') }
|
|
25
25
|
`:`;
|
|
26
26
|
`)+z+`return __p
|
|
27
|
-
}`;var we=If(function(){return Ae(h,ue+"return "+z).apply(o,p)});if(we.source=z,da(we))throw we;return we}function my(e){return Te(e).toLowerCase()}function gy(e){return Te(e).toUpperCase()}function py(e,n,r){if(e=Te(e),e&&(r||n===o))return Ws(e);if(!e||!(n=St(n)))return e;var a=zt(e),c=zt(n),h=Hs(a,c),p=Ks(a,c)+1;return Bn(a,h,p).join("")}function vy(e,n,r){if(e=Te(e),e&&(r||n===o))return e.slice(0,js(e)+1);if(!e||!(n=St(n)))return e;var a=zt(e),c=Ks(a,zt(n))+1;return Bn(a,0,c).join("")}function _y(e,n,r){if(e=Te(e),e&&(r||n===o))return e.replace(Ur,"");if(!e||!(n=St(n)))return e;var a=zt(e),c=Hs(a,zt(n));return Bn(a,c).join("")}function by(e,n){var r=T,a=V;if($e(n)){var c="separator"in n?n.separator:c;r="length"in n?ye(n.length):r,a="omission"in n?St(n.omission):a}e=Te(e);var h=e.length;if(vr(e)){var p=zt(e);h=p.length}if(r>=h)return e;var b=r-_r(a);if(b<1)return a;var E=p?Bn(p,0,b).join(""):e.slice(0,b);if(c===o)return E+a;if(p&&(b+=E.length-b),ha(c)){if(e.slice(b).search(c)){var N,$=E;for(c.global||(c=Bl(c.source,Te(rn.exec(c))+"g")),c.lastIndex=0;N=c.exec($);)var z=N.index;E=E.slice(0,z===o?b:z)}}else if(e.indexOf(St(c),b)!=b){var ee=E.lastIndexOf(c);ee>-1&&(E=E.slice(0,ee))}return E+a}function yy(e){return e=Te(e),e&&rl.test(e)?e.replace(Dr,Qg):e}var wy=kr(function(e,n,r){return e+(r?" ":"")+n.toUpperCase()}),pa=Ic("toUpperCase");function Lf(e,n,r){return e=Te(e),n=r?o:n,n===o?Wg(e)?Xg(e):Lg(e):e.match(n)||[]}var If=Se(function(e,n){try{return yt(e,o,n)}catch(r){return da(r)?r:new pe(r)}}),Sy=sn(function(e,n){return Bt(n,function(r){r=Yt(r),an(e,r,ca(e[r],e))}),e});function xy(e){var n=e==null?0:e.length,r=fe();return e=n?Ie(e,function(a){if(typeof a[1]!="function")throw new Rt(m);return[r(a[0]),a[1]]}):[],Se(function(a){for(var c=-1;++c<n;){var h=e[c];if(yt(h[0],this,a))return yt(h[1],this,a)}})}function Cy(e){return Qp(qt(e,k))}function va(e){return function(){return e}}function ky(e,n){return e==null||e!==e?n:e}var Ey=Nc(),Ay=Nc(!0);function mt(e){return e}function _a(e){return mc(typeof e=="function"?e:qt(e,k))}function Ty(e){return pc(qt(e,k))}function By(e,n){return vc(e,qt(n,k))}var Ry=Se(function(e,n){return function(r){return Jr(r,e,n)}}),Oy=Se(function(e,n){return function(r){return Jr(e,r,n)}});function ba(e,n,r){var a=Ze(n),c=oo(n,a);r==null&&!($e(n)&&(c.length||!a.length))&&(r=n,n=e,e=this,c=oo(n,Ze(n)));var h=!($e(r)&&"chain"in r)||!!r.chain,p=fn(e);return Bt(c,function(b){var E=n[b];e[b]=E,p&&(e.prototype[b]=function(){var N=this.__chain__;if(h||N){var $=e(this.__wrapped__),z=$.__actions__=ft(this.__actions__);return z.push({func:E,args:arguments,thisArg:e}),$.__chain__=N,$}return E.apply(e,xn([this.value()],arguments))})}),e}function qy(){return et._===this&&(et._=ip),this}function ya(){}function My(e){return e=ye(e),Se(function(n){return _c(n,e)})}var Vy=Zl(Ie),Ly=Zl($s),Iy=Zl(Sl);function Pf(e){return ia(e)?xl(Yt(e)):dv(e)}function Py(e){return function(n){return e==null?o:Yn(e,n)}}var Ny=Fc(),$y=Fc(!0);function wa(){return[]}function Sa(){return!1}function Fy(){return{}}function Dy(){return""}function zy(){return!0}function Uy(e,n){if(e=ye(e),e<1||e>H)return[];var r=q,a=rt(e,q);n=fe(n),e-=q;for(var c=El(a,n);++r<e;)n(r);return c}function Wy(e){return be(e)?Ie(e,Yt):xt(e)?[e]:ft(nf(Te(e)))}function Hy(e){var n=++np;return Te(e)+n}var Ky=fo(function(e,n){return e+n},0),Gy=Xl("ceil"),jy=fo(function(e,n){return e/n},1),Qy=Xl("floor");function Yy(e){return e&&e.length?io(e,mt,Pl):o}function Zy(e,n){return e&&e.length?io(e,fe(n,2),Pl):o}function Xy(e){return zs(e,mt)}function Jy(e,n){return zs(e,fe(n,2))}function ew(e){return e&&e.length?io(e,mt,Dl):o}function tw(e,n){return e&&e.length?io(e,fe(n,2),Dl):o}var nw=fo(function(e,n){return e*n},1),rw=Xl("round"),iw=fo(function(e,n){return e-n},0);function ow(e){return e&&e.length?kl(e,mt):0}function lw(e,n){return e&&e.length?kl(e,fe(n,2)):0}return d.after=T_,d.ary=mf,d.assign=gb,d.assignIn=Tf,d.assignInWith=ko,d.assignWith=pb,d.at=vb,d.before=gf,d.bind=ca,d.bindAll=Sy,d.bindKey=pf,d.castArray=F_,d.chain=ff,d.chunk=Qv,d.compact=Yv,d.concat=Zv,d.cond=xy,d.conforms=Cy,d.constant=va,d.countBy=o_,d.create=_b,d.curry=vf,d.curryRight=_f,d.debounce=bf,d.defaults=bb,d.defaultsDeep=yb,d.defer=B_,d.delay=R_,d.difference=Xv,d.differenceBy=Jv,d.differenceWith=e0,d.drop=t0,d.dropRight=n0,d.dropRightWhile=r0,d.dropWhile=i0,d.fill=o0,d.filter=a_,d.flatMap=c_,d.flatMapDeep=f_,d.flatMapDepth=d_,d.flatten=af,d.flattenDeep=l0,d.flattenDepth=a0,d.flip=O_,d.flow=Ey,d.flowRight=Ay,d.fromPairs=u0,d.functions=Ab,d.functionsIn=Tb,d.groupBy=h_,d.initial=c0,d.intersection=f0,d.intersectionBy=d0,d.intersectionWith=h0,d.invert=Rb,d.invertBy=Ob,d.invokeMap=g_,d.iteratee=_a,d.keyBy=p_,d.keys=Ze,d.keysIn=ht,d.map=bo,d.mapKeys=Mb,d.mapValues=Vb,d.matches=Ty,d.matchesProperty=By,d.memoize=wo,d.merge=Lb,d.mergeWith=Bf,d.method=Ry,d.methodOf=Oy,d.mixin=ba,d.negate=So,d.nthArg=My,d.omit=Ib,d.omitBy=Pb,d.once=q_,d.orderBy=v_,d.over=Vy,d.overArgs=M_,d.overEvery=Ly,d.overSome=Iy,d.partial=fa,d.partialRight=yf,d.partition=__,d.pick=Nb,d.pickBy=Rf,d.property=Pf,d.propertyOf=Py,d.pull=v0,d.pullAll=sf,d.pullAllBy=_0,d.pullAllWith=b0,d.pullAt=y0,d.range=Ny,d.rangeRight=$y,d.rearg=V_,d.reject=w_,d.remove=w0,d.rest=L_,d.reverse=ua,d.sampleSize=x_,d.set=Fb,d.setWith=Db,d.shuffle=C_,d.slice=S0,d.sortBy=A_,d.sortedUniq=B0,d.sortedUniqBy=R0,d.split=cy,d.spread=I_,d.tail=O0,d.take=q0,d.takeRight=M0,d.takeRightWhile=V0,d.takeWhile=L0,d.tap=Y0,d.throttle=P_,d.thru=_o,d.toArray=kf,d.toPairs=Of,d.toPairsIn=qf,d.toPath=Wy,d.toPlainObject=Af,d.transform=zb,d.unary=N_,d.union=I0,d.unionBy=P0,d.unionWith=N0,d.uniq=$0,d.uniqBy=F0,d.uniqWith=D0,d.unset=Ub,d.unzip=sa,d.unzipWith=cf,d.update=Wb,d.updateWith=Hb,d.values=Tr,d.valuesIn=Kb,d.without=z0,d.words=Lf,d.wrap=$_,d.xor=U0,d.xorBy=W0,d.xorWith=H0,d.zip=K0,d.zipObject=G0,d.zipObjectDeep=j0,d.zipWith=Q0,d.entries=Of,d.entriesIn=qf,d.extend=Tf,d.extendWith=ko,ba(d,d),d.add=Ky,d.attempt=If,d.camelCase=Yb,d.capitalize=Mf,d.ceil=Gy,d.clamp=Gb,d.clone=D_,d.cloneDeep=U_,d.cloneDeepWith=W_,d.cloneWith=z_,d.conformsTo=H_,d.deburr=Vf,d.defaultTo=ky,d.divide=jy,d.endsWith=Zb,d.eq=Wt,d.escape=Xb,d.escapeRegExp=Jb,d.every=l_,d.find=u_,d.findIndex=of,d.findKey=wb,d.findLast=s_,d.findLastIndex=lf,d.findLastKey=Sb,d.floor=Qy,d.forEach=df,d.forEachRight=hf,d.forIn=xb,d.forInRight=Cb,d.forOwn=kb,d.forOwnRight=Eb,d.get=ma,d.gt=K_,d.gte=G_,d.has=Bb,d.hasIn=ga,d.head=uf,d.identity=mt,d.includes=m_,d.indexOf=s0,d.inRange=jb,d.invoke=qb,d.isArguments=Jn,d.isArray=be,d.isArrayBuffer=j_,d.isArrayLike=dt,d.isArrayLikeObject=ze,d.isBoolean=Q_,d.isBuffer=Rn,d.isDate=Y_,d.isElement=Z_,d.isEmpty=X_,d.isEqual=J_,d.isEqualWith=eb,d.isError=da,d.isFinite=tb,d.isFunction=fn,d.isInteger=wf,d.isLength=xo,d.isMap=Sf,d.isMatch=nb,d.isMatchWith=rb,d.isNaN=ib,d.isNative=ob,d.isNil=ab,d.isNull=lb,d.isNumber=xf,d.isObject=$e,d.isObjectLike=De,d.isPlainObject=oi,d.isRegExp=ha,d.isSafeInteger=ub,d.isSet=Cf,d.isString=Co,d.isSymbol=xt,d.isTypedArray=Ar,d.isUndefined=sb,d.isWeakMap=cb,d.isWeakSet=fb,d.join=m0,d.kebabCase=ey,d.last=Vt,d.lastIndexOf=g0,d.lowerCase=ty,d.lowerFirst=ny,d.lt=db,d.lte=hb,d.max=Yy,d.maxBy=Zy,d.mean=Xy,d.meanBy=Jy,d.min=ew,d.minBy=tw,d.stubArray=wa,d.stubFalse=Sa,d.stubObject=Fy,d.stubString=Dy,d.stubTrue=zy,d.multiply=nw,d.nth=p0,d.noConflict=qy,d.noop=ya,d.now=yo,d.pad=ry,d.padEnd=iy,d.padStart=oy,d.parseInt=ly,d.random=Qb,d.reduce=b_,d.reduceRight=y_,d.repeat=ay,d.replace=uy,d.result=$b,d.round=rw,d.runInContext=x,d.sample=S_,d.size=k_,d.snakeCase=sy,d.some=E_,d.sortedIndex=x0,d.sortedIndexBy=C0,d.sortedIndexOf=k0,d.sortedLastIndex=E0,d.sortedLastIndexBy=A0,d.sortedLastIndexOf=T0,d.startCase=fy,d.startsWith=dy,d.subtract=iw,d.sum=ow,d.sumBy=lw,d.template=hy,d.times=Uy,d.toFinite=dn,d.toInteger=ye,d.toLength=Ef,d.toLower=my,d.toNumber=Lt,d.toSafeInteger=mb,d.toString=Te,d.toUpper=gy,d.trim=py,d.trimEnd=vy,d.trimStart=_y,d.truncate=by,d.unescape=yy,d.uniqueId=Hy,d.upperCase=wy,d.upperFirst=pa,d.each=df,d.eachRight=hf,d.first=uf,ba(d,function(){var e={};return jt(d,function(n,r){Re.call(d.prototype,r)||(e[r]=n)}),e}(),{chain:!1}),d.VERSION=u,Bt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){d[e].placeholder=d}),Bt(["drop","take"],function(e,n){Ce.prototype[e]=function(r){r=r===o?1:Qe(ye(r),0);var a=this.__filtered__&&!n?new Ce(this):this.clone();return a.__filtered__?a.__takeCount__=rt(r,a.__takeCount__):a.__views__.push({size:rt(r,q),type:e+(a.__dir__<0?"Right":"")}),a},Ce.prototype[e+"Right"]=function(r){return this.reverse()[e](r).reverse()}}),Bt(["filter","map","takeWhile"],function(e,n){var r=n+1,a=r==F||r==se;Ce.prototype[e]=function(c){var h=this.clone();return h.__iteratees__.push({iteratee:fe(c,3),type:r}),h.__filtered__=h.__filtered__||a,h}}),Bt(["head","last"],function(e,n){var r="take"+(n?"Right":"");Ce.prototype[e]=function(){return this[r](1).value()[0]}}),Bt(["initial","tail"],function(e,n){var r="drop"+(n?"":"Right");Ce.prototype[e]=function(){return this.__filtered__?new Ce(this):this[r](1)}}),Ce.prototype.compact=function(){return this.filter(mt)},Ce.prototype.find=function(e){return this.filter(e).head()},Ce.prototype.findLast=function(e){return this.reverse().find(e)},Ce.prototype.invokeMap=Se(function(e,n){return typeof e=="function"?new Ce(this):this.map(function(r){return Jr(r,e,n)})}),Ce.prototype.reject=function(e){return this.filter(So(fe(e)))},Ce.prototype.slice=function(e,n){e=ye(e);var r=this;return r.__filtered__&&(e>0||n<0)?new Ce(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),n!==o&&(n=ye(n),r=n<0?r.dropRight(-n):r.take(n-e)),r)},Ce.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Ce.prototype.toArray=function(){return this.take(q)},jt(Ce.prototype,function(e,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),a=/^(?:head|last)$/.test(n),c=d[a?"take"+(n=="last"?"Right":""):n],h=a||/^find/.test(n);c&&(d.prototype[n]=function(){var p=this.__wrapped__,b=a?[1]:arguments,E=p instanceof Ce,N=b[0],$=E||be(p),z=function(xe){var ke=c.apply(d,xn([xe],b));return a&&ee?ke[0]:ke};$&&r&&typeof N=="function"&&N.length!=1&&(E=$=!1);var ee=this.__chain__,ue=!!this.__actions__.length,de=h&&!ee,we=E&&!ue;if(!h&&$){p=we?p:new Ce(this);var he=e.apply(p,b);return he.__actions__.push({func:_o,args:[z],thisArg:o}),new Ot(he,ee)}return de&&we?e.apply(this,b):(he=this.thru(z),de?a?he.value()[0]:he.value():he)})}),Bt(["pop","push","shift","sort","splice","unshift"],function(e){var n=Ui[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",a=/^(?:pop|shift)$/.test(e);d.prototype[e]=function(){var c=arguments;if(a&&!this.__chain__){var h=this.value();return n.apply(be(h)?h:[],c)}return this[r](function(p){return n.apply(be(p)?p:[],c)})}}),jt(Ce.prototype,function(e,n){var r=d[n];if(r){var a=r.name+"";Re.call(Sr,a)||(Sr[a]=[]),Sr[a].push({name:n,func:r})}}),Sr[co(o,G).name]=[{name:"wrapper",func:o}],Ce.prototype.clone=yp,Ce.prototype.reverse=wp,Ce.prototype.value=Sp,d.prototype.at=Z0,d.prototype.chain=X0,d.prototype.commit=J0,d.prototype.next=e_,d.prototype.plant=n_,d.prototype.reverse=r_,d.prototype.toJSON=d.prototype.valueOf=d.prototype.value=i_,d.prototype.first=d.prototype.head,Kr&&(d.prototype[Kr]=t_),d},br=Jg();Hn?((Hn.exports=br)._=br,_l._=br):et._=br}).call(Xe)}(li,li.exports);var Pe=li.exports,Xt={},xa={},Ca={},ai={};Object.defineProperty(ai,"__esModule",{value:!0}),ai.OPERATORS=void 0,ai.OPERATORS=["==","!=",">","<",">=","<=","contains","not_contains","in","not_in"];var er={};Object.defineProperty(er,"__esModule",{value:!0}),er.ControlType=er.GAMA_PROP_CONTROL_TYPES=void 0,er.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 ka;(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"})(ka||(er.ControlType=ka={}));var Ea={};Object.defineProperty(Ea,"__esModule",{value:!0});var Aa={};Object.defineProperty(Aa,"__esModule",{value:!0});var Ta={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.VALIDATORS=t.PropValidatorKeys=t.GamaPropValidatorsMap=void 0,t.GamaPropValidatorsMap={required:{fn:()=>o=>o.value!==null&&o.value!==void 0&&o.value!=="",message:"Este campo es requerido",label:"Requerido"},min:{fn:o=>u=>{if(typeof u.value=="number")return(u.value||0)>=o;if(typeof u.value=="string"){const s=u.value||"";return u.multiple?s.split(",").length>=o:s.length>=o}return!1},message:"El valor es menor al mínimo permitido",label:"Mínimo"},max:{fn:o=>u=>{if(typeof u.value=="number")return(u.value||0)<=o;if(typeof u.value=="string"){const s=u.value||"";return u.multiple?s.split(",").length<=o:(s||"").length<=o}return!1},message:"El valor es mayor al máximo permitido",label:"Máximo"},onlyNumbers:{fn:()=>o=>/^[0-9]*$/.test(String(o.value)||""),message:"Este campo solo acepta números",label:"Solo números"},email:{fn:()=>o=>o.value?/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(String(o.value)||""):!0,message:"El correo electrónico no es válido",label:"Correo electrónico"},url:{fn:()=>o=>o.value?/^(ftp|http|https):\/\/[^ "]+$/.test(String(o.value)||"")||/^www\.[^ "]+$/.test(String(o.value)||""):!0,message:"La URL no es válida",label:"URL"}};var l;(function(o){o.REQUERIDO="required",o.MINIMO="min",o.MAXIMO="max",o.SOLO_NUMEROS="onlyNumbers",o.EMAIL="email",o.URL="url"})(l||(t.PropValidatorKeys=l={})),t.VALIDATORS=Object.entries(t.GamaPropValidatorsMap).map(([o,u])=>({value:o,...u}))})(Ta);var Ba={};Object.defineProperty(Ba,"__esModule",{value:!0}),function(t){var l=Xe&&Xe.__createBinding||(Object.create?function(u,s,f,m){m===void 0&&(m=f);var g=Object.getOwnPropertyDescriptor(s,f);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[f]}}),Object.defineProperty(u,m,g)}:function(u,s,f,m){m===void 0&&(m=f),u[m]=s[f]}),o=Xe&&Xe.__exportStar||function(u,s){for(var f in u)f!=="default"&&!Object.prototype.hasOwnProperty.call(s,f)&&l(s,u,f)};Object.defineProperty(t,"__esModule",{value:!0}),o(ai,t),o(er,t),o(Ea,t),o(Aa,t),o(Ta,t),o(Ba,t)}(Ca),function(t){var l=Xe&&Xe.__createBinding||(Object.create?function(u,s,f,m){m===void 0&&(m=f);var g=Object.getOwnPropertyDescriptor(s,f);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[f]}}),Object.defineProperty(u,m,g)}:function(u,s,f,m){m===void 0&&(m=f),u[m]=s[f]}),o=Xe&&Xe.__exportStar||function(u,s){for(var f in u)f!=="default"&&!Object.prototype.hasOwnProperty.call(s,f)&&l(s,u,f)};Object.defineProperty(t,"__esModule",{value:!0}),o(Ca,t)}(xa),function(t){var l=Xe&&Xe.__createBinding||(Object.create?function(u,s,f,m){m===void 0&&(m=f);var g=Object.getOwnPropertyDescriptor(s,f);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[f]}}),Object.defineProperty(u,m,g)}:function(u,s,f,m){m===void 0&&(m=f),u[m]=s[f]}),o=Xe&&Xe.__exportStar||function(u,s){for(var f in u)f!=="default"&&!Object.prototype.hasOwnProperty.call(s,f)&&l(s,u,f)};Object.defineProperty(t,"__esModule",{value:!0}),o(xa,t)}(Xt);const Eo=[Xt.ControlType.DYNAMIC_ARRAY,Xt.ControlType.OBJECT],$f={maxControlsPerGroup:1,notifyValidations:!0},Ra={required:{fn:()=>t=>{var l;if(t.controlType===Xt.ControlType.LOCATION){const{value:o}=t.value;return Pe.values(Pe.omit(o,"catastro")).every(u=>!Pe.isNil(u)&&u!=="")&&(o!=null&&o.catastro?Ff(o==null?void 0:o.catastro):!0)}return t.controlType===Xt.ControlType.DYNAMIC_ARRAY||t.multiple?(((l=t.value)==null?void 0:l.length)||0)>0:!Pe.isNil(t.value)&&t.value!==""},message:"Este campo es requerido"},min:{fn:t=>l=>Oa(l,">=",t),message:"El valor es menor al mínimo permitido"},max:{fn:t=>l=>Oa(l,"<=",t),message:"El valor es mayor al máximo permitido"},onlyNumbers:{fn:()=>t=>/^[0-9]*$/.test(String(t.value)||""),message:"Este campo solo acepta números"},email:{fn:()=>t=>t.value?/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(String(t.value)||""):!0,message:"El correo electrónico no es válido"},url:{fn:()=>t=>t.value?/^(ftp|http|https):\/\/[^ "]+$/.test(String(t.value)||"")||/^www\.[^ "]+$/.test(String(t.value)||""):!0,message:"La URL no es válida"}};function Oa(t,l,o){const u={">":(s,f)=>s>f,"<":(s,f)=>s<f,">=":(s,f)=>s>=f,"<=":(s,f)=>s<=f}[l];if(t.controlType===Xt.ControlType.NUMBER){const s=Number(t.value);return u(s,o)}if(t.controlType===Xt.ControlType.TEXT){const s=(t.value||"").length;return u(s,o)}if([Xt.ControlType.CARDS_SELECT,Xt.ControlType.SELECT].includes(t.controlType)&&t.multiple){const s=(t.value||[]).length;return u(s,o)}return!1}function Ff(t){return/^[A-Za-z0-9]{20}$/.test(t)}function Df(t){const l=[];t.controls.forEach((u,s)=>{const f=zf(u);l.push(...f);const m=!f.length;t.controls[s].valid=m});const o=!l.length;return t.valid=o,l}function zf(t){const l=[];return t.validators&&t.validators.forEach(o=>{const{validator:u,param:s}=o,f=Ra[u]||null;f&&(f.fn(Number(s))(t)||l.push(f.message))}),l}function Uf(t,l,o){return l.controlType==="dynamic_array"?Wf(t,l,o):l.controlType==="object"?qa(t,l,o):[]}function Wf(t,l,o){var f,m;const u=[],s=((f=l.itemsLength)==null?void 0:f.value)||0;for(let g=0;g<s;g++){const C=qa({...t,title:`${t.title} ${g+1}`},{...l,value:(m=l.value)==null?void 0:m[g]},o);C.forEach(A=>{A.controls.forEach(v=>{v.code=`${g}.${v.code}`})}),u.push(...C)}return u}function qa(t,l,o){const u=l.structure;return Pe.chunk(u,o).map(f=>({...t,controls:Ma(f).map(m=>{var g;return{...m,id:l.id,value:((g=l.value)==null?void 0:g[m.code])||m.value}})}))}function Hf(t){return Pe.chain(t).groupBy("group").toPairs().orderBy(([o,u])=>o).map(([o,u])=>{var m;const s=((m=u.find(g=>{var C;return!!((C=g.title)!=null&&C.trim())}))==null?void 0:m.title)||"",f=u[0].group;return{title:s,controls:u,order:f,visible:!0,valid:u.every(g=>g.valid),id:""}}).value()}function Kf(t){return t.map(l=>({...l,valid:!1,controls:Ma(l.controls)}))}function Ma(t){return t.map(l=>{var o,u,s;return{...l,valid:!((o=l.validators)!=null&&o.length),visible:!((u=l.conditions)!=null&&u.length),value:Gf(l),itemsLength:l.controlType==="dynamic_array"?{...l.itemsLength,value:((s=l.itemsLength)==null?void 0:s.default)||1}:null}})}function Gf(t){if(!Pe.isNil(t.defaultValue))return t.defaultValue;switch(t.controlType){case"input_text":return"";case"input_number":return null;case"select":return t.multiple?[]:"";case"cards_select":return t.multiple?[]:"";case"checkbox":return null;case"switch":return null;case"location":return{};case"dynamic_array":return[];case"object":return{};default:return""}}var jf=!1;function ui(t,l,o){return Array.isArray(t)?(t.length=Math.max(t.length,l),t.splice(l,1,o),o):(t[l]=o,o)}function Ao(t,l){if(Array.isArray(t)){t.splice(l,1);return}delete t[l]}/*!
|
|
27
|
+
}`;var we=Pf(function(){return Ae(h,ue+"return "+z).apply(o,p)});if(we.source=z,da(we))throw we;return we}function py(e){return Te(e).toLowerCase()}function vy(e){return Te(e).toUpperCase()}function _y(e,n,r){if(e=Te(e),e&&(r||n===o))return Hs(e);if(!e||!(n=St(n)))return e;var a=zt(e),c=zt(n),h=Ks(a,c),p=Gs(a,c)+1;return Bn(a,h,p).join("")}function by(e,n,r){if(e=Te(e),e&&(r||n===o))return e.slice(0,Qs(e)+1);if(!e||!(n=St(n)))return e;var a=zt(e),c=Gs(a,zt(n))+1;return Bn(a,0,c).join("")}function yy(e,n,r){if(e=Te(e),e&&(r||n===o))return e.replace(Ur,"");if(!e||!(n=St(n)))return e;var a=zt(e),c=Ks(a,zt(n));return Bn(a,c).join("")}function wy(e,n){var r=T,a=V;if($e(n)){var c="separator"in n?n.separator:c;r="length"in n?ye(n.length):r,a="omission"in n?St(n.omission):a}e=Te(e);var h=e.length;if(_r(e)){var p=zt(e);h=p.length}if(r>=h)return e;var b=r-br(a);if(b<1)return a;var E=p?Bn(p,0,b).join(""):e.slice(0,b);if(c===o)return E+a;if(p&&(b+=E.length-b),ha(c)){if(e.slice(b).search(c)){var N,$=E;for(c.global||(c=Bl(c.source,Te(rn.exec(c))+"g")),c.lastIndex=0;N=c.exec($);)var z=N.index;E=E.slice(0,z===o?b:z)}}else if(e.indexOf(St(c),b)!=b){var ee=E.lastIndexOf(c);ee>-1&&(E=E.slice(0,ee))}return E+a}function Sy(e){return e=Te(e),e&&rl.test(e)?e.replace(Dr,Zg):e}var xy=Er(function(e,n,r){return e+(r?" ":"")+n.toUpperCase()}),pa=Pc("toUpperCase");function If(e,n,r){return e=Te(e),n=r?o:n,n===o?Kg(e)?ep(e):Pg(e):e.match(n)||[]}var Pf=Se(function(e,n){try{return yt(e,o,n)}catch(r){return da(r)?r:new pe(r)}}),Cy=sn(function(e,n){return Bt(n,function(r){r=Yt(r),an(e,r,ca(e[r],e))}),e});function ky(e){var n=e==null?0:e.length,r=fe();return e=n?Ie(e,function(a){if(typeof a[1]!="function")throw new Rt(m);return[r(a[0]),a[1]]}):[],Se(function(a){for(var c=-1;++c<n;){var h=e[c];if(yt(h[0],this,a))return yt(h[1],this,a)}})}function Ey(e){return Zp(qt(e,k))}function va(e){return function(){return e}}function Ay(e,n){return e==null||e!==e?n:e}var Ty=$c(),By=$c(!0);function mt(e){return e}function _a(e){return gc(typeof e=="function"?e:qt(e,k))}function Ry(e){return vc(qt(e,k))}function Oy(e,n){return _c(e,qt(n,k))}var qy=Se(function(e,n){return function(r){return Jr(r,e,n)}}),My=Se(function(e,n){return function(r){return Jr(e,r,n)}});function ba(e,n,r){var a=Ze(n),c=oo(n,a);r==null&&!($e(n)&&(c.length||!a.length))&&(r=n,n=e,e=this,c=oo(n,Ze(n)));var h=!($e(r)&&"chain"in r)||!!r.chain,p=fn(e);return Bt(c,function(b){var E=n[b];e[b]=E,p&&(e.prototype[b]=function(){var N=this.__chain__;if(h||N){var $=e(this.__wrapped__),z=$.__actions__=ft(this.__actions__);return z.push({func:E,args:arguments,thisArg:e}),$.__chain__=N,$}return E.apply(e,xn([this.value()],arguments))})}),e}function Vy(){return et._===this&&(et._=lp),this}function ya(){}function Ly(e){return e=ye(e),Se(function(n){return bc(n,e)})}var Iy=Zl(Ie),Py=Zl(Fs),Ny=Zl(Sl);function Nf(e){return ia(e)?xl(Yt(e)):mv(e)}function $y(e){return function(n){return e==null?o:Qn(e,n)}}var Fy=Dc(),Dy=Dc(!0);function wa(){return[]}function Sa(){return!1}function zy(){return{}}function Uy(){return""}function Wy(){return!0}function Hy(e,n){if(e=ye(e),e<1||e>H)return[];var r=q,a=rt(e,q);n=fe(n),e-=q;for(var c=El(a,n);++r<e;)n(r);return c}function Ky(e){return be(e)?Ie(e,Yt):xt(e)?[e]:ft(rf(Te(e)))}function Gy(e){var n=++ip;return Te(e)+n}var jy=fo(function(e,n){return e+n},0),Qy=Xl("ceil"),Yy=fo(function(e,n){return e/n},1),Zy=Xl("floor");function Xy(e){return e&&e.length?io(e,mt,Pl):o}function Jy(e,n){return e&&e.length?io(e,fe(n,2),Pl):o}function ew(e){return Us(e,mt)}function tw(e,n){return Us(e,fe(n,2))}function nw(e){return e&&e.length?io(e,mt,Dl):o}function rw(e,n){return e&&e.length?io(e,fe(n,2),Dl):o}var iw=fo(function(e,n){return e*n},1),ow=Xl("round"),lw=fo(function(e,n){return e-n},0);function aw(e){return e&&e.length?kl(e,mt):0}function uw(e,n){return e&&e.length?kl(e,fe(n,2)):0}return d.after=R_,d.ary=gf,d.assign=vb,d.assignIn=Bf,d.assignInWith=ko,d.assignWith=_b,d.at=bb,d.before=pf,d.bind=ca,d.bindAll=Cy,d.bindKey=vf,d.castArray=z_,d.chain=df,d.chunk=Zv,d.compact=Xv,d.concat=Jv,d.cond=ky,d.conforms=Ey,d.constant=va,d.countBy=a_,d.create=yb,d.curry=_f,d.curryRight=bf,d.debounce=yf,d.defaults=wb,d.defaultsDeep=Sb,d.defer=O_,d.delay=q_,d.difference=e0,d.differenceBy=t0,d.differenceWith=n0,d.drop=r0,d.dropRight=i0,d.dropRightWhile=o0,d.dropWhile=l0,d.fill=a0,d.filter=s_,d.flatMap=d_,d.flatMapDeep=h_,d.flatMapDepth=m_,d.flatten=uf,d.flattenDeep=u0,d.flattenDepth=s0,d.flip=M_,d.flow=Ty,d.flowRight=By,d.fromPairs=c0,d.functions=Bb,d.functionsIn=Rb,d.groupBy=g_,d.initial=d0,d.intersection=h0,d.intersectionBy=m0,d.intersectionWith=g0,d.invert=qb,d.invertBy=Mb,d.invokeMap=v_,d.iteratee=_a,d.keyBy=__,d.keys=Ze,d.keysIn=ht,d.map=bo,d.mapKeys=Lb,d.mapValues=Ib,d.matches=Ry,d.matchesProperty=Oy,d.memoize=wo,d.merge=Pb,d.mergeWith=Rf,d.method=qy,d.methodOf=My,d.mixin=ba,d.negate=So,d.nthArg=Ly,d.omit=Nb,d.omitBy=$b,d.once=V_,d.orderBy=b_,d.over=Iy,d.overArgs=L_,d.overEvery=Py,d.overSome=Ny,d.partial=fa,d.partialRight=wf,d.partition=y_,d.pick=Fb,d.pickBy=Of,d.property=Nf,d.propertyOf=$y,d.pull=b0,d.pullAll=cf,d.pullAllBy=y0,d.pullAllWith=w0,d.pullAt=S0,d.range=Fy,d.rangeRight=Dy,d.rearg=I_,d.reject=x_,d.remove=x0,d.rest=P_,d.reverse=ua,d.sampleSize=k_,d.set=zb,d.setWith=Ub,d.shuffle=E_,d.slice=C0,d.sortBy=B_,d.sortedUniq=O0,d.sortedUniqBy=q0,d.split=dy,d.spread=N_,d.tail=M0,d.take=V0,d.takeRight=L0,d.takeRightWhile=I0,d.takeWhile=P0,d.tap=X0,d.throttle=$_,d.thru=_o,d.toArray=Ef,d.toPairs=qf,d.toPairsIn=Mf,d.toPath=Ky,d.toPlainObject=Tf,d.transform=Wb,d.unary=F_,d.union=N0,d.unionBy=$0,d.unionWith=F0,d.uniq=D0,d.uniqBy=z0,d.uniqWith=U0,d.unset=Hb,d.unzip=sa,d.unzipWith=ff,d.update=Kb,d.updateWith=Gb,d.values=Br,d.valuesIn=jb,d.without=W0,d.words=If,d.wrap=D_,d.xor=H0,d.xorBy=K0,d.xorWith=G0,d.zip=j0,d.zipObject=Q0,d.zipObjectDeep=Y0,d.zipWith=Z0,d.entries=qf,d.entriesIn=Mf,d.extend=Bf,d.extendWith=ko,ba(d,d),d.add=jy,d.attempt=Pf,d.camelCase=Xb,d.capitalize=Vf,d.ceil=Qy,d.clamp=Qb,d.clone=U_,d.cloneDeep=H_,d.cloneDeepWith=K_,d.cloneWith=W_,d.conformsTo=G_,d.deburr=Lf,d.defaultTo=Ay,d.divide=Yy,d.endsWith=Jb,d.eq=Wt,d.escape=ey,d.escapeRegExp=ty,d.every=u_,d.find=c_,d.findIndex=lf,d.findKey=xb,d.findLast=f_,d.findLastIndex=af,d.findLastKey=Cb,d.floor=Zy,d.forEach=hf,d.forEachRight=mf,d.forIn=kb,d.forInRight=Eb,d.forOwn=Ab,d.forOwnRight=Tb,d.get=ma,d.gt=j_,d.gte=Q_,d.has=Ob,d.hasIn=ga,d.head=sf,d.identity=mt,d.includes=p_,d.indexOf=f0,d.inRange=Yb,d.invoke=Vb,d.isArguments=Xn,d.isArray=be,d.isArrayBuffer=Y_,d.isArrayLike=dt,d.isArrayLikeObject=ze,d.isBoolean=Z_,d.isBuffer=Rn,d.isDate=X_,d.isElement=J_,d.isEmpty=eb,d.isEqual=tb,d.isEqualWith=nb,d.isError=da,d.isFinite=rb,d.isFunction=fn,d.isInteger=Sf,d.isLength=xo,d.isMap=xf,d.isMatch=ib,d.isMatchWith=ob,d.isNaN=lb,d.isNative=ab,d.isNil=sb,d.isNull=ub,d.isNumber=Cf,d.isObject=$e,d.isObjectLike=De,d.isPlainObject=oi,d.isRegExp=ha,d.isSafeInteger=cb,d.isSet=kf,d.isString=Co,d.isSymbol=xt,d.isTypedArray=Tr,d.isUndefined=fb,d.isWeakMap=db,d.isWeakSet=hb,d.join=p0,d.kebabCase=ny,d.last=Vt,d.lastIndexOf=v0,d.lowerCase=ry,d.lowerFirst=iy,d.lt=mb,d.lte=gb,d.max=Xy,d.maxBy=Jy,d.mean=ew,d.meanBy=tw,d.min=nw,d.minBy=rw,d.stubArray=wa,d.stubFalse=Sa,d.stubObject=zy,d.stubString=Uy,d.stubTrue=Wy,d.multiply=iw,d.nth=_0,d.noConflict=Vy,d.noop=ya,d.now=yo,d.pad=oy,d.padEnd=ly,d.padStart=ay,d.parseInt=uy,d.random=Zb,d.reduce=w_,d.reduceRight=S_,d.repeat=sy,d.replace=cy,d.result=Db,d.round=ow,d.runInContext=x,d.sample=C_,d.size=A_,d.snakeCase=fy,d.some=T_,d.sortedIndex=k0,d.sortedIndexBy=E0,d.sortedIndexOf=A0,d.sortedLastIndex=T0,d.sortedLastIndexBy=B0,d.sortedLastIndexOf=R0,d.startCase=hy,d.startsWith=my,d.subtract=lw,d.sum=aw,d.sumBy=uw,d.template=gy,d.times=Hy,d.toFinite=dn,d.toInteger=ye,d.toLength=Af,d.toLower=py,d.toNumber=Lt,d.toSafeInteger=pb,d.toString=Te,d.toUpper=vy,d.trim=_y,d.trimEnd=by,d.trimStart=yy,d.truncate=wy,d.unescape=Sy,d.uniqueId=Gy,d.upperCase=xy,d.upperFirst=pa,d.each=hf,d.eachRight=mf,d.first=sf,ba(d,function(){var e={};return jt(d,function(n,r){Re.call(d.prototype,r)||(e[r]=n)}),e}(),{chain:!1}),d.VERSION=u,Bt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){d[e].placeholder=d}),Bt(["drop","take"],function(e,n){Ce.prototype[e]=function(r){r=r===o?1:Qe(ye(r),0);var a=this.__filtered__&&!n?new Ce(this):this.clone();return a.__filtered__?a.__takeCount__=rt(r,a.__takeCount__):a.__views__.push({size:rt(r,q),type:e+(a.__dir__<0?"Right":"")}),a},Ce.prototype[e+"Right"]=function(r){return this.reverse()[e](r).reverse()}}),Bt(["filter","map","takeWhile"],function(e,n){var r=n+1,a=r==F||r==se;Ce.prototype[e]=function(c){var h=this.clone();return h.__iteratees__.push({iteratee:fe(c,3),type:r}),h.__filtered__=h.__filtered__||a,h}}),Bt(["head","last"],function(e,n){var r="take"+(n?"Right":"");Ce.prototype[e]=function(){return this[r](1).value()[0]}}),Bt(["initial","tail"],function(e,n){var r="drop"+(n?"":"Right");Ce.prototype[e]=function(){return this.__filtered__?new Ce(this):this[r](1)}}),Ce.prototype.compact=function(){return this.filter(mt)},Ce.prototype.find=function(e){return this.filter(e).head()},Ce.prototype.findLast=function(e){return this.reverse().find(e)},Ce.prototype.invokeMap=Se(function(e,n){return typeof e=="function"?new Ce(this):this.map(function(r){return Jr(r,e,n)})}),Ce.prototype.reject=function(e){return this.filter(So(fe(e)))},Ce.prototype.slice=function(e,n){e=ye(e);var r=this;return r.__filtered__&&(e>0||n<0)?new Ce(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),n!==o&&(n=ye(n),r=n<0?r.dropRight(-n):r.take(n-e)),r)},Ce.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Ce.prototype.toArray=function(){return this.take(q)},jt(Ce.prototype,function(e,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),a=/^(?:head|last)$/.test(n),c=d[a?"take"+(n=="last"?"Right":""):n],h=a||/^find/.test(n);c&&(d.prototype[n]=function(){var p=this.__wrapped__,b=a?[1]:arguments,E=p instanceof Ce,N=b[0],$=E||be(p),z=function(xe){var ke=c.apply(d,xn([xe],b));return a&&ee?ke[0]:ke};$&&r&&typeof N=="function"&&N.length!=1&&(E=$=!1);var ee=this.__chain__,ue=!!this.__actions__.length,de=h&&!ee,we=E&&!ue;if(!h&&$){p=we?p:new Ce(this);var he=e.apply(p,b);return he.__actions__.push({func:_o,args:[z],thisArg:o}),new Ot(he,ee)}return de&&we?e.apply(this,b):(he=this.thru(z),de?a?he.value()[0]:he.value():he)})}),Bt(["pop","push","shift","sort","splice","unshift"],function(e){var n=Ui[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",a=/^(?:pop|shift)$/.test(e);d.prototype[e]=function(){var c=arguments;if(a&&!this.__chain__){var h=this.value();return n.apply(be(h)?h:[],c)}return this[r](function(p){return n.apply(be(p)?p:[],c)})}}),jt(Ce.prototype,function(e,n){var r=d[n];if(r){var a=r.name+"";Re.call(xr,a)||(xr[a]=[]),xr[a].push({name:n,func:r})}}),xr[co(o,G).name]=[{name:"wrapper",func:o}],Ce.prototype.clone=Sp,Ce.prototype.reverse=xp,Ce.prototype.value=Cp,d.prototype.at=J0,d.prototype.chain=e_,d.prototype.commit=t_,d.prototype.next=n_,d.prototype.plant=i_,d.prototype.reverse=o_,d.prototype.toJSON=d.prototype.valueOf=d.prototype.value=l_,d.prototype.first=d.prototype.head,Kr&&(d.prototype[Kr]=r_),d},yr=tp();Wn?((Wn.exports=yr)._=yr,_l._=yr):et._=yr}).call(Xe)}(li,li.exports);var Pe=li.exports,Xt={},xa={},Ca={},ai={};Object.defineProperty(ai,"__esModule",{value:!0}),ai.OPERATORS=void 0,ai.OPERATORS=["==","!=",">","<",">=","<=","contains","not_contains","in","not_in"];var Jn={};Object.defineProperty(Jn,"__esModule",{value:!0}),Jn.ControlType=Jn.GAMA_PROP_CONTROL_TYPES=void 0,Jn.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 ka;(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"})(ka||(Jn.ControlType=ka={}));var Ea={};Object.defineProperty(Ea,"__esModule",{value:!0});var Aa={};Object.defineProperty(Aa,"__esModule",{value:!0});var Ta={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.VALIDATORS=t.PropValidatorKeys=t.GamaPropValidatorsMap=void 0,t.GamaPropValidatorsMap={required:{fn:()=>o=>o.value!==null&&o.value!==void 0&&o.value!=="",message:"Este campo es requerido",label:"Requerido"},min:{fn:o=>u=>{if(typeof u.value=="number")return(u.value||0)>=o;if(typeof u.value=="string"){const s=u.value||"";return u.multiple?s.split(",").length>=o:s.length>=o}return!1},message:"El valor es menor al mínimo permitido",label:"Mínimo"},max:{fn:o=>u=>{if(typeof u.value=="number")return(u.value||0)<=o;if(typeof u.value=="string"){const s=u.value||"";return u.multiple?s.split(",").length<=o:(s||"").length<=o}return!1},message:"El valor es mayor al máximo permitido",label:"Máximo"},onlyNumbers:{fn:()=>o=>/^[0-9]*$/.test(String(o.value)||""),message:"Este campo solo acepta números",label:"Solo números"},email:{fn:()=>o=>o.value?/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(String(o.value)||""):!0,message:"El correo electrónico no es válido",label:"Correo electrónico"},url:{fn:()=>o=>o.value?/^(ftp|http|https):\/\/[^ "]+$/.test(String(o.value)||"")||/^www\.[^ "]+$/.test(String(o.value)||""):!0,message:"La URL no es válida",label:"URL"}};var l;(function(o){o.REQUERIDO="required",o.MINIMO="min",o.MAXIMO="max",o.SOLO_NUMEROS="onlyNumbers",o.EMAIL="email",o.URL="url"})(l||(t.PropValidatorKeys=l={})),t.VALIDATORS=Object.entries(t.GamaPropValidatorsMap).map(([o,u])=>({value:o,...u}))})(Ta);var Ba={};Object.defineProperty(Ba,"__esModule",{value:!0}),function(t){var l=Xe&&Xe.__createBinding||(Object.create?function(u,s,f,m){m===void 0&&(m=f);var g=Object.getOwnPropertyDescriptor(s,f);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[f]}}),Object.defineProperty(u,m,g)}:function(u,s,f,m){m===void 0&&(m=f),u[m]=s[f]}),o=Xe&&Xe.__exportStar||function(u,s){for(var f in u)f!=="default"&&!Object.prototype.hasOwnProperty.call(s,f)&&l(s,u,f)};Object.defineProperty(t,"__esModule",{value:!0}),o(ai,t),o(Jn,t),o(Ea,t),o(Aa,t),o(Ta,t),o(Ba,t)}(Ca),function(t){var l=Xe&&Xe.__createBinding||(Object.create?function(u,s,f,m){m===void 0&&(m=f);var g=Object.getOwnPropertyDescriptor(s,f);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[f]}}),Object.defineProperty(u,m,g)}:function(u,s,f,m){m===void 0&&(m=f),u[m]=s[f]}),o=Xe&&Xe.__exportStar||function(u,s){for(var f in u)f!=="default"&&!Object.prototype.hasOwnProperty.call(s,f)&&l(s,u,f)};Object.defineProperty(t,"__esModule",{value:!0}),o(Ca,t)}(xa),function(t){var l=Xe&&Xe.__createBinding||(Object.create?function(u,s,f,m){m===void 0&&(m=f);var g=Object.getOwnPropertyDescriptor(s,f);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[f]}}),Object.defineProperty(u,m,g)}:function(u,s,f,m){m===void 0&&(m=f),u[m]=s[f]}),o=Xe&&Xe.__exportStar||function(u,s){for(var f in u)f!=="default"&&!Object.prototype.hasOwnProperty.call(s,f)&&l(s,u,f)};Object.defineProperty(t,"__esModule",{value:!0}),o(xa,t)}(Xt);const Eo=[Xt.ControlType.DYNAMIC_ARRAY,Xt.ControlType.OBJECT],Ff={maxControlsPerGroup:1,notifyValidations:!0},Ra={required:{fn:()=>t=>{var l;if(t.controlType===Xt.ControlType.LOCATION){const{value:o}=t.value;return Pe.values(Pe.omit(o,"catastro")).every(u=>!Pe.isNil(u)&&u!=="")&&(o!=null&&o.catastro?Df(o==null?void 0:o.catastro):!0)}return t.controlType===Xt.ControlType.DYNAMIC_ARRAY||t.multiple?(((l=t.value)==null?void 0:l.length)||0)>0:!Pe.isNil(t.value)&&t.value!==""},message:"Este campo es requerido"},min:{fn:t=>l=>Oa(l,">=",t),message:"El valor es menor al mínimo permitido"},max:{fn:t=>l=>Oa(l,"<=",t),message:"El valor es mayor al máximo permitido"},onlyNumbers:{fn:()=>t=>/^[0-9]*$/.test(String(t.value)||""),message:"Este campo solo acepta números"},email:{fn:()=>t=>t.value?/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(String(t.value)||""):!0,message:"El correo electrónico no es válido"},url:{fn:()=>t=>t.value?/^(ftp|http|https):\/\/[^ "]+$/.test(String(t.value)||"")||/^www\.[^ "]+$/.test(String(t.value)||""):!0,message:"La URL no es válida"}};function Oa(t,l,o){const u={">":(s,f)=>s>f,"<":(s,f)=>s<f,">=":(s,f)=>s>=f,"<=":(s,f)=>s<=f}[l];if(t.controlType===Xt.ControlType.NUMBER){const s=Number(t.value);return u(s,o)}if(t.controlType===Xt.ControlType.TEXT){const s=(t.value||"").length;return u(s,o)}if([Xt.ControlType.CARDS_SELECT,Xt.ControlType.SELECT].includes(t.controlType)&&t.multiple){const s=(t.value||[]).length;return u(s,o)}return!1}function Df(t){return/^[A-Za-z0-9]{20}$/.test(t)}function zf(t){const l=[];t.controls.forEach((u,s)=>{const f=Uf(u);l.push(...f);const m=!f.length;t.controls[s].valid=m});const o=!l.length;return t.valid=o,l}function Uf(t){const l=[];return t.validators&&t.validators.forEach(o=>{const{validator:u,param:s}=o,f=Ra[u]||null;f&&(f.fn(Number(s))(t)||l.push(f.message))}),l}function Wf(t,l,o){return l.controlType==="dynamic_array"?Hf(t,l,o):l.controlType==="object"?qa(t,l,o):[]}function Hf(t,l,o){var f,m;const u=[],s=((f=l.itemsLength)==null?void 0:f.value)||0;for(let g=0;g<s;g++){const C=qa({...t,title:`${t.title} ${g+1}`},{...l,value:(m=l.value)==null?void 0:m[g]},o);C.forEach(A=>{A.controls.forEach(v=>{v.code=`${g}.${v.code}`})}),u.push(...C)}return u}function qa(t,l,o){const u=l.structure;return Pe.chunk(u,o).map(f=>({...t,controls:Ma(f).map(m=>{var g;return{...m,id:l.id,value:((g=l.value)==null?void 0:g[m.code])||m.value}})}))}function Kf(t){return Pe.chain(t).groupBy("group").toPairs().orderBy(([o,u])=>o).map(([o,u])=>{var m;const s=((m=u.find(g=>{var C;return!!((C=g.title)!=null&&C.trim())}))==null?void 0:m.title)||"",f=u[0].group;return{title:s,controls:u,order:f,visible:!0,valid:u.every(g=>g.valid),id:""}}).value()}function Gf(t){return t.map(l=>({...l,valid:!1,controls:Ma(l.controls)}))}function Ma(t){return t.map(l=>{var o,u,s;return{...l,valid:!((o=l.validators)!=null&&o.length),visible:!((u=l.conditions)!=null&&u.length),value:jf(l),itemsLength:l.controlType==="dynamic_array"?{...l.itemsLength,value:((s=l.itemsLength)==null?void 0:s.default)||1}:null}})}function jf(t){if(!Pe.isNil(t.defaultValue))return t.defaultValue;switch(t.controlType){case"input_text":return"";case"input_number":return null;case"select":return t.multiple?[]:"";case"cards_select":return t.multiple?[]:"";case"checkbox":return null;case"switch":return null;case"location":return{};case"dynamic_array":return[];case"object":return{};default:return""}}var Qf=!1;function ui(t,l,o){return Array.isArray(t)?(t.length=Math.max(t.length,l),t.splice(l,1,o),o):(t[l]=o,o)}function Ao(t,l){if(Array.isArray(t)){t.splice(l,1);return}delete t[l]}/*!
|
|
28
28
|
* pinia v2.2.1
|
|
29
29
|
* (c) 2024 Eduardo San Martin Morote
|
|
30
30
|
* @license MIT
|
|
31
|
-
*/let
|
|
31
|
+
*/let er;const si=t=>er=t,Yf=()=>i.hasInjectionContext()&&i.inject(Va)||er,Va=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function On(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var Rr;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(Rr||(Rr={}));const Or=typeof window<"u";function La(t,l){for(const o in l){const u=l[o];if(!(o in t))continue;const s=t[o];On(s)&&On(u)&&!i.isRef(u)&&!i.isReactive(u)?t[o]=La(s,u):t[o]=u}return t}const Ia=()=>{};function Pa(t,l,o,u=Ia){t.push(l);const s=()=>{const f=t.indexOf(l);f>-1&&(t.splice(f,1),u())};return!o&&i.getCurrentScope()&&i.onScopeDispose(s),s}function tr(t,...l){t.slice().forEach(o=>{o(...l)})}const Zf=t=>t(),Na=Symbol(),To=Symbol();function Bo(t,l){t instanceof Map&&l instanceof Map?l.forEach((o,u)=>t.set(u,o)):t instanceof Set&&l instanceof Set&&l.forEach(t.add,t);for(const o in l){if(!l.hasOwnProperty(o))continue;const u=l[o],s=t[o];On(s)&&On(u)&&t.hasOwnProperty(o)&&!i.isRef(u)&&!i.isReactive(u)?t[o]=Bo(s,u):t[o]=u}return t}const Xf=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function Jf(t){return!On(t)||!t.hasOwnProperty(Xf)}const{assign:Et}=Object;function $a(t){return!!(i.isRef(t)&&t.effect)}function Fa(t,l,o,u){const{state:s,actions:f,getters:m}=l,g=o.state.value[t];let C;function A(){!g&&(process.env.NODE_ENV==="production"||!u)&&(o.state.value[t]=s?s():{});const v=process.env.NODE_ENV!=="production"&&u?i.toRefs(i.ref(s?s():{}).value):i.toRefs(o.state.value[t]);return Et(v,f,Object.keys(m||{}).reduce((k,y)=>(process.env.NODE_ENV!=="production"&&y in v&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${y}" in store "${t}".`),k[y]=i.markRaw(i.computed(()=>{si(o);const w=o._s.get(t);return m[y].call(w,w)})),k),{}))}return C=Ro(t,A,l,o,u,!0),C}function Ro(t,l,o={},u,s,f){let m;const g=Et({actions:{}},o);if(process.env.NODE_ENV!=="production"&&!u._e.active)throw new Error("Pinia destroyed");const C={deep:!0};process.env.NODE_ENV!=="production"&&!Qf&&(C.onTrigger=T=>{A?w=T:A==!1&&!I._hotUpdating&&(Array.isArray(w)?w.push(T):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let A,v,k=[],y=[],w;const R=u.state.value[t];!f&&!R&&(process.env.NODE_ENV==="production"||!s)&&(u.state.value[t]={});const W=i.ref({});let O;function G(T){let V;A=v=!1,process.env.NODE_ENV!=="production"&&(w=[]),typeof T=="function"?(T(u.state.value[t]),V={type:Rr.patchFunction,storeId:t,events:w}):(Bo(u.state.value[t],T),V={type:Rr.patchObject,payload:T,storeId:t,events:w});const S=O=Symbol();i.nextTick().then(()=>{O===S&&(A=!0)}),v=!0,tr(k,V,u.state.value[t])}const U=f?function(){const{state:V}=o,S=V?V():{};this.$patch(Z=>{Et(Z,S)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${t}" is built using the setup syntax and does not implement $reset().`)}:Ia;function D(){m.stop(),k=[],y=[],u._s.delete(t)}const Q=(T,V="")=>{if(Na in T)return T[To]=V,T;const S=function(){si(u);const Z=Array.from(arguments),F=[],ae=[];function se(ie){F.push(ie)}function ce(ie){ae.push(ie)}tr(y,{args:Z,name:S[To],store:I,after:se,onError:ce});let H;try{H=T.apply(this&&this.$id===t?this:I,Z)}catch(ie){throw tr(ae,ie),ie}return H instanceof Promise?H.then(ie=>(tr(F,ie),ie)).catch(ie=>(tr(ae,ie),Promise.reject(ie))):(tr(F,H),H)};return S[Na]=!0,S[To]=V,S},j=i.markRaw({actions:{},getters:{},state:[],hotState:W}),Y={_p:u,$id:t,$onAction:Pa.bind(null,y),$patch:G,$reset:U,$subscribe(T,V={}){const S=Pa(k,T,V.detached,()=>Z()),Z=m.run(()=>i.watch(()=>u.state.value[t],F=>{(V.flush==="sync"?v:A)&&T({storeId:t,type:Rr.direct,events:w},F)},Et({},C,V)));return S},$dispose:D},I=i.reactive(process.env.NODE_ENV!=="production"||process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Or?Et({_hmrPayload:j,_customProperties:i.markRaw(new Set)},Y):Y);u._s.set(t,I);const P=(u._a&&u._a.runWithContext||Zf)(()=>u._e.run(()=>(m=i.effectScope()).run(()=>l({action:Q}))));for(const T in P){const V=P[T];if(i.isRef(V)&&!$a(V)||i.isReactive(V))process.env.NODE_ENV!=="production"&&s?ui(W.value,T,i.toRef(P,T)):f||(R&&Jf(V)&&(i.isRef(V)?V.value=R[T]:Bo(V,R[T])),u.state.value[t][T]=V),process.env.NODE_ENV!=="production"&&j.state.push(T);else if(typeof V=="function"){const S=process.env.NODE_ENV!=="production"&&s?V:Q(V,T);P[T]=S,process.env.NODE_ENV!=="production"&&(j.actions[T]=V),g.actions[T]=V}else process.env.NODE_ENV!=="production"&&$a(V)&&(j.getters[T]=f?o.getters[T]:V,Or&&(P._getters||(P._getters=i.markRaw([]))).push(T))}if(Et(I,P),Et(i.toRaw(I),P),Object.defineProperty(I,"$state",{get:()=>process.env.NODE_ENV!=="production"&&s?W.value:u.state.value[t],set:T=>{if(process.env.NODE_ENV!=="production"&&s)throw new Error("cannot set hotState");G(V=>{Et(V,T)})}}),process.env.NODE_ENV!=="production"&&(I._hotUpdate=i.markRaw(T=>{I._hotUpdating=!0,T._hmrPayload.state.forEach(V=>{if(V in I.$state){const S=T.$state[V],Z=I.$state[V];typeof S=="object"&&On(S)&&On(Z)?La(S,Z):T.$state[V]=Z}ui(I,V,i.toRef(T.$state,V))}),Object.keys(I.$state).forEach(V=>{V in T.$state||Ao(I,V)}),A=!1,v=!1,u.state.value[t]=i.toRef(T._hmrPayload,"hotState"),v=!0,i.nextTick().then(()=>{A=!0});for(const V in T._hmrPayload.actions){const S=T[V];ui(I,V,Q(S,V))}for(const V in T._hmrPayload.getters){const S=T._hmrPayload.getters[V],Z=f?i.computed(()=>(si(u),S.call(I,I))):S;ui(I,V,Z)}Object.keys(I._hmrPayload.getters).forEach(V=>{V in T._hmrPayload.getters||Ao(I,V)}),Object.keys(I._hmrPayload.actions).forEach(V=>{V in T._hmrPayload.actions||Ao(I,V)}),I._hmrPayload=T._hmrPayload,I._getters=T._getters,I._hotUpdating=!1})),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Or){const T={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(V=>{Object.defineProperty(I,V,Et({value:I[V]},T))})}return u._p.forEach(T=>{if(process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Or){const V=m.run(()=>T({store:I,app:u._a,pinia:u,options:g}));Object.keys(V||{}).forEach(S=>I._customProperties.add(S)),Et(I,V)}else Et(I,m.run(()=>T({store:I,app:u._a,pinia:u,options:g})))}),process.env.NODE_ENV!=="production"&&I.$state&&typeof I.$state=="object"&&typeof I.$state.constructor=="function"&&!I.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
|
|
32
32
|
state: () => new MyClass()
|
|
33
|
-
Found in store "${I.$id}".`),R&&f&&o.hydrate&&o.hydrate(I.$state,R),A=!0,v=!0,I}function
|
|
33
|
+
Found in store "${I.$id}".`),R&&f&&o.hydrate&&o.hydrate(I.$state,R),A=!0,v=!0,I}function ed(t,l,o){let u,s;const f=typeof l=="function";u=t,s=f?o:l;function m(g,C){const A=i.hasInjectionContext();if(g=(process.env.NODE_ENV==="test"&&er&&er._testing?null:g)||(A?i.inject(Va,null):null),g&&si(g),process.env.NODE_ENV!=="production"&&!er)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
|
|
34
34
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
35
|
-
This will fail in production.`);g=Br,g._s.has(u)||(f?Ro(u,l,s,g):$a(u,s,g),process.env.NODE_ENV!=="production"&&(m._pinia=g));const v=g._s.get(u);if(process.env.NODE_ENV!=="production"&&C){const k="__hot:"+u,y=f?Ro(k,l,s,g,!0):$a(k,Et({},s),g,!0);C._hotUpdate(y),delete g.state.value[k],g._s.delete(k)}if(process.env.NODE_ENV!=="production"&&Or){const k=i.getCurrentInstance();if(k&&k.proxy&&!C){const y=k.proxy,w="_pStores"in y?y._pStores:y._pStores={};w[u]=v}}return v}return m.$id=u,m}const qn=Jf("form",{state:()=>({formSteps:[],currentStep:1,onLastSubstep:!1,collections:{}}),actions:{setFormSteps(t){this.formSteps=Kf(t)},nextStep(){this.currentStep!==this.formSteps.length&&this.currentStep++},previousStep(){this.currentStep!==1&&this.currentStep--},setControlValue(t,l){const{id:o,value:u,code:s}=l,f=this.formSteps[t].controls.find(m=>m.id===o);f&&(Eo.includes(f.controlType)?Pe.set(f.value,s,u):f.value=u)},setControlVisibility(t,l,o){const u=this.formSteps[t].controls.find(s=>s.id===l);u&&(u.visible=o)},setControlItemsLength(t,l,o){const u=this.formSteps[t].controls.find(s=>s.id===l);!u||u.controlType!=="dynamic_array"||(u.itemsLength.value=o)},setOnLastSubstep(t){this.onLastSubstep=t},resetSteps(){this.currentStep=1},setCollection(t,l){this.collections[t]=l}},getters:{currentFormStep(t){return t.formSteps[t.currentStep-1]||null},stepsCount(t){return t.formSteps.length},nextDisabled(){return this.currentFormStep.controls.filter(t=>t.visible).some(t=>!t.valid)},getCollection(t){return l=>t.collections[l]||null}}});class Fa{toRaw(l){return l.flatMap(s=>s.controls).filter(s=>s.visible).map(s=>({ID_CUESTIONARIO_PREGUNTA:s.id,RESPUESTA:this.formatValue(s)}))}fromRaw(l){return Pe.orderBy(l,"ORDEN").filter(u=>u.PREGUNTAS.length&&u.ESTADO===1).map(u=>{const s=u.NOMBRE,f=u.ORDEN,m=u.DESCRIPCION,g=u.CLAVE,C=u.ID_CUESTIONARIO,A=u.PREGUNTAS.filter(v=>v.ESTADO===1).map(v=>this.parseControl(v));return{title:s,order:f,text:m,controls:A,name:g,id:C}})}parseControl(l){return{controlType:l.TIPO,label:l.NOMBRE,name:l.CLAVE,options:l.RESPUESTAS,multiple:l.MULTIPLE||!1,validators:l.VALIDACIONES,conditions:l.CONDITIONS,itemsLength:l.LENGTH,id:l.ID_CUESTIONARIO_PREGUNTA,row:l.FILA,col:l.COLUMNA,prefix:l.PREFIJO,suffix:l.SUFIJO,structure:l.STRUCTURE,group:l.GRUPO,title:l.TITULO_GRUPO,customParams:l.PARAMS}}formatValue(l){const{controlType:o,value:u,structure:s}=l,f=(m,g)=>g.controlType==="input_number"&&m!==null&&m!==void 0&&m!==""&&typeof m=="string";return f(u,l)?parseFloat(u.replaceAll(".","")):(o==="object"&&s.forEach(m=>{const g=u[m.code];f(g,m)&&(u[m.code]=parseFloat(g==null?void 0:g.replaceAll(".","")))}),u)}}function ci(t,l,o,u){return Object.defineProperty(t,l,{get:o,set:u,enumerable:!0}),t}const mn=i.ref(!1);let Oo;function ed(t,l){const o=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(t)||/(opr)[\/]([\w.]+)/.exec(t)||/(vivaldi)[\/]([\w.]+)/.exec(t)||/(chrome|crios)[\/]([\w.]+)/.exec(t)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(t)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(t)||/(firefox|fxios)[\/]([\w.]+)/.exec(t)||/(webkit)[\/]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(t)||[];return{browser:o[5]||o[3]||o[1]||"",version:o[4]||o[2]||"0",platform:l[0]||""}}function td(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 Da="ontouchstart"in window||window.navigator.maxTouchPoints>0;function nd(t){const l=t.toLowerCase(),o=td(l),u=ed(l,o),s={};u.browser&&(s[u.browser]=!0,s.version=u.version,s.versionNumber=parseInt(u.version,10)),u.platform&&(s[u.platform]=!0);const f=s.android||s.ios||s.bb||s.blackberry||s.ipad||s.iphone||s.ipod||s.kindle||s.playbook||s.silk||s["windows phone"];if(f===!0||l.indexOf("mobile")!==-1?s.mobile=!0:s.desktop=!0,s["windows phone"]&&(s.winphone=!0,delete s["windows phone"]),s.edga||s.edgios||s.edg?(s.edge=!0,u.browser="edge"):s.crios?(s.chrome=!0,u.browser="chrome"):s.fxios&&(s.firefox=!0,u.browser="firefox"),(s.ipod||s.ipad||s.iphone)&&(s.ios=!0),s.vivaldi&&(u.browser="vivaldi",s.vivaldi=!0),(s.chrome||s.opr||s.safari||s.vivaldi||s.mobile===!0&&s.ios!==!0&&f!==!0)&&(s.webkit=!0),s.opr&&(u.browser="opera",s.opera=!0),s.safari&&(s.blackberry||s.bb?(u.browser="blackberry",s.blackberry=!0):s.playbook?(u.browser="playbook",s.playbook=!0):s.android?(u.browser="android",s.android=!0):s.kindle?(u.browser="kindle",s.kindle=!0):s.silk&&(u.browser="silk",s.silk=!0)),s.name=u.browser,s.platform=u.platform,l.indexOf("electron")!==-1)s.electron=!0;else if(document.location.href.indexOf("-extension://")!==-1)s.bex=!0;else{if(window.Capacitor!==void 0?(s.capacitor=!0,s.nativeMobile=!0,s.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(s.cordova=!0,s.nativeMobile=!0,s.nativeMobileWrapper="cordova"),mn.value===!0&&(Oo={is:{...s}}),Da===!0&&s.mac===!0&&(s.desktop===!0&&s.safari===!0||s.nativeMobile===!0&&s.android!==!0&&s.ios!==!0&&s.ipad!==!0)){delete s.mac,delete s.desktop;const m=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(s,{mobile:!0,ios:!0,platform:m,[m]:!0})}s.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete s.desktop,s.mobile=!0)}return s}const za=navigator.userAgent||navigator.vendor||window.opera,rd={has:{touch:!1,webStorage:!1},within:{iframe:!1}},gt={userAgent:za,is:nd(za),has:{touch:Da},within:{iframe:window.self!==window.top}},qo={install(t){const{$q:l}=t;mn.value===!0?(t.onSSRHydrated.push(()=>{Object.assign(l.platform,gt),mn.value=!1}),l.platform=i.reactive(this)):l.platform=this}};{let t;ci(gt.has,"webStorage",()=>{if(t!==void 0)return t;try{if(window.localStorage)return t=!0,!0}catch{}return t=!1,!1}),Object.assign(qo,gt),mn.value===!0&&(Object.assign(qo,Oo,rd),Oo=null)}function Ye(t){return i.markRaw(i.defineComponent(t))}function Ua(t){return i.markRaw(t)}function Jt(t,l){if(t===l)return!0;if(t!==null&&l!==null&&typeof t=="object"&&typeof l=="object"){if(t.constructor!==l.constructor)return!1;let o,u;if(t.constructor===Array){if(o=t.length,o!==l.length)return!1;for(u=o;u--!==0;)if(Jt(t[u],l[u])!==!0)return!1;return!0}if(t.constructor===Map){if(t.size!==l.size)return!1;let f=t.entries();for(u=f.next();u.done!==!0;){if(l.has(u.value[0])!==!0)return!1;u=f.next()}for(f=t.entries(),u=f.next();u.done!==!0;){if(Jt(u.value[1],l.get(u.value[0]))!==!0)return!1;u=f.next()}return!0}if(t.constructor===Set){if(t.size!==l.size)return!1;const f=t.entries();for(u=f.next();u.done!==!0;){if(l.has(u.value[0])!==!0)return!1;u=f.next()}return!0}if(t.buffer!=null&&t.buffer.constructor===ArrayBuffer){if(o=t.length,o!==l.length)return!1;for(u=o;u--!==0;)if(t[u]!==l[u])return!1;return!0}if(t.constructor===RegExp)return t.source===l.source&&t.flags===l.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===l.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===l.toString();const s=Object.keys(t).filter(f=>t[f]!==void 0);if(o=s.length,o!==Object.keys(l).filter(f=>l[f]!==void 0).length)return!1;for(u=o;u--!==0;){const f=s[u];if(Jt(t[f],l[f])!==!0)return!1}return!0}return t!==t&&l!==l}const Wa={threshold:0,root:null,rootMargin:"0px"};function Ha(t,l,o){let u,s,f;typeof o=="function"?(u=o,s=Wa,f=l.cfg===void 0):(u=o.handler,s=Object.assign({},Wa,o.cfg),f=l.cfg===void 0||Jt(l.cfg,s)===!1),l.handler!==u&&(l.handler=u),f===!0&&(l.cfg=s,l.observer!==void 0&&l.observer.unobserve(t),l.observer=new IntersectionObserver(([m])=>{if(typeof l.handler=="function"){if(m.rootBounds===null&&document.body.contains(t)===!0){l.observer.unobserve(t),l.observer.observe(t);return}(l.handler(m,l.observer)===!1||l.once===!0&&m.isIntersecting===!0)&&Ka(t)}},s),l.observer.observe(t))}function Ka(t){const l=t.__qvisible;l!==void 0&&(l.observer!==void 0&&l.observer.unobserve(t),delete t.__qvisible)}const id=Ua({name:"intersection",mounted(t,{modifiers:l,value:o}){const u={once:l.once===!0};Ha(t,u,o),t.__qvisible=u},updated(t,l){const o=t.__qvisible;o!==void 0&&Ha(t,o,l.value)},beforeUnmount:Ka});function pt(t,l){return t!==void 0&&t()||l}function od(t,l){if(t!==void 0){const o=t();if(o!=null)return o.slice()}return l}function Mn(t,l){return t!==void 0?l.concat(t()):l}function ld(t,l){return t===void 0?l:l!==void 0?l.concat(t()):t()}function Ga(t,l,o,u,s,f){l.key=u+s;const m=i.h(t,l,o);return s===!0?i.withDirectives(m,f()):m}const ad=Ye({name:"QIntersection",props:{tag:{type:String,default:"div"},once:Boolean,transition:String,transitionDuration:{type:[String,Number],default:300},ssrPrerender:Boolean,margin:String,threshold:[Number,Array],root:{default:null},disable:Boolean,onVisibility:Function},setup(t,{slots:l,emit:o}){const u=i.ref(mn.value===!0?t.ssrPrerender:!1),s=i.computed(()=>t.root!==void 0||t.margin!==void 0||t.threshold!==void 0?{handler:C,cfg:{root:t.root,rootMargin:t.margin,threshold:t.threshold}}:C),f=i.computed(()=>t.disable!==!0&&(mn.value!==!0||t.once!==!0||t.ssrPrerender!==!0)),m=i.computed(()=>[[id,s.value,void 0,{once:t.once}]]),g=i.computed(()=>`--q-transition-duration: ${t.transitionDuration}ms`);function C(v){u.value!==v.isIntersecting&&(u.value=v.isIntersecting,t.onVisibility!==void 0&&o("visibility",u.value))}function A(){if(u.value===!0)return[i.h("div",{key:"content",style:g.value},pt(l.default))];if(l.hidden!==void 0)return[i.h("div",{key:"hidden",style:g.value},l.hidden())]}return()=>{const v=t.transition?[i.h(i.Transition,{name:"q-transition--"+t.transition},A)]:A();return Ga(t.tag,{class:"q-intersection"},v,"main",f.value,()=>m.value)}}}),Mo={xs:18,sm:24,md:32,lg:38,xl:46},fi={size:String};function di(t,l=Mo){return i.computed(()=>t.size!==void 0?{fontSize:t.size in l?`${l[t.size]}px`:t.size}:null)}const ud={size:{type:[String,Number],default:"1em"},color:String};function sd(t){return{cSize:i.computed(()=>t.size in Mo?`${Mo[t.size]}px`:t.size),classes:i.computed(()=>"q-spinner"+(t.color?` text-${t.color}`:""))}}const Vo=Ye({name:"QSpinner",props:{...ud,thickness:{type:Number,default:5}},setup(t){const{cSize:l,classes:o}=sd(t);return()=>i.h("svg",{class:o.value+" q-spinner-mat",width:l.value,height:l.value,viewBox:"25 25 50 50"},[i.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":t.thickness,"stroke-miterlimit":"10"})])}}),cd={ratio:[String,Number]};function fd(t,l){return i.computed(()=>{const o=Number(t.ratio||(l!==void 0?l.value:void 0));return isNaN(o)!==!0&&o>0?{paddingBottom:`${100/o}%`}:null})}function Lo(t){if(Object(t.$parent)===t.$parent)return t.$parent;let{parent:l}=t.$;for(;Object(l)===l;){if(Object(l.proxy)===l.proxy)return l.proxy;l=l.parent}}function ja(t){return t.appContext.config.globalProperties.$router!==void 0}function qr(t){return t.isUnmounted===!0||t.isDeactivated===!0}function hi(){let t=null;const l=i.getCurrentInstance();function o(){t!==null&&(clearTimeout(t),t=null)}return i.onDeactivated(o),i.onBeforeUnmount(o),{removeTimeout:o,registerTimeout(u,s){o(),qr(l)===!1&&(t=setTimeout(()=>{t=null,u()},s))}}}const dd=Ye({name:"QImg",props:{...cd,src:String,srcset:String,sizes:String,alt:String,crossorigin:String,decoding:String,referrerpolicy:String,draggable:Boolean,loading:{type:String,default:"lazy"},loadingShowDelay:{type:[Number,String],default:0},fetchpriority:{type:String,default:"auto"},width:String,height:String,initialRatio:{type:[Number,String],default:1.7778},placeholderSrc:String,errorSrc:String,fit:{type:String,default:"cover"},position:{type:String,default:"50% 50%"},imgClass:String,imgStyle:Object,noSpinner:Boolean,noNativeMenu:Boolean,noTransition:Boolean,spinnerColor:String,spinnerSize:String},emits:["load","error"],setup(t,{slots:l,emit:o}){const u=i.ref(t.initialRatio),s=fd(t,u),f=i.getCurrentInstance(),{registerTimeout:m,removeTimeout:g}=hi(),{registerTimeout:C,removeTimeout:A}=hi(),v=i.computed(()=>t.placeholderSrc!==void 0?{src:t.placeholderSrc}:null),k=i.computed(()=>t.errorSrc!==void 0?{src:t.errorSrc,__qerror:!0}:null),y=[i.ref(null),i.ref(v.value)],w=i.ref(0),R=i.ref(!1),W=i.ref(!1),O=i.computed(()=>`q-img q-img--${t.noNativeMenu===!0?"no-":""}menu`),G=i.computed(()=>({width:t.width,height:t.height})),U=i.computed(()=>`q-img__image ${t.imgClass!==void 0?t.imgClass+" ":""}q-img__image--with${t.noTransition===!0?"out":""}-transition q-img__image--`),D=i.computed(()=>({...t.imgStyle,objectFit:t.fit,objectPosition:t.position}));function Q(){if(A(),t.loadingShowDelay===0){R.value=!0;return}C(()=>{R.value=!0},t.loadingShowDelay)}function j(){A(),R.value=!1}function Y({target:S}){qr(f)===!1&&(g(),u.value=S.naturalHeight===0?.5:S.naturalWidth/S.naturalHeight,I(S,1))}function I(S,Z){Z===1e3||qr(f)===!0||(S.complete===!0?le(S):m(()=>{I(S,Z+1)},50))}function le(S){qr(f)!==!0&&(w.value=w.value^1,y[w.value].value=null,j(),S.getAttribute("__qerror")!=="true"&&(W.value=!1),o("load",S.currentSrc||S.src))}function P(S){g(),j(),W.value=!0,y[w.value].value=k.value,y[w.value^1].value=v.value,o("error",S)}function T(S){const Z=y[S].value,F={key:"img_"+S,class:U.value,style:D.value,alt:t.alt,crossorigin:t.crossorigin,decoding:t.decoding,referrerpolicy:t.referrerpolicy,height:t.height,width:t.width,loading:t.loading,fetchpriority:t.fetchpriority,"aria-hidden":"true",draggable:t.draggable,...Z};return w.value===S?Object.assign(F,{class:F.class+"current",onLoad:Y,onError:P}):F.class+="loaded",i.h("div",{class:"q-img__container absolute-full",key:"img"+S},i.h("img",F))}function V(){return R.value===!1?i.h("div",{key:"content",class:"q-img__content absolute-full q-anchor--skip"},pt(l[W.value===!0?"error":"default"])):i.h("div",{key:"loading",class:"q-img__loading absolute-full flex flex-center"},l.loading!==void 0?l.loading():t.noSpinner===!0?void 0:[i.h(Vo,{color:t.spinnerColor,size:t.spinnerSize})])}{let S=function(){i.watch(()=>t.src||t.srcset||t.sizes?{src:t.src,srcset:t.srcset,sizes:t.sizes}:null,Z=>{g(),W.value=!1,Z===null?(j(),y[w.value^1].value=v.value):Q(),y[w.value].value=Z},{immediate:!0})};mn.value===!0?i.onMounted(S):S()}return()=>{const S=[];return s.value!==null&&S.push(i.h("div",{key:"filler",style:s.value})),y[0].value!==null&&S.push(T(0)),y[1].value!==null&&S.push(T(1)),S.push(i.h(i.Transition,{name:"q-transition--fade"},V)),i.h("div",{key:"main",class:O.value,style:G.value,role:"img","aria-label":t.alt},S)}}}),Qa="0 0 24 24",Ya=t=>t,Io=t=>`ionicons ${t}`,Za={"mdi-":t=>`mdi ${t}`,"icon-":Ya,"bt-":t=>`bt ${t}`,"eva-":t=>`eva ${t}`,"ion-md":Io,"ion-ios":Io,"ion-logo":Io,"iconfont ":Ya,"ti-":t=>`themify-icon ${t}`,"bi-":t=>`bootstrap-icons ${t}`},Xa={o_:"-outlined",r_:"-round",s_:"-sharp"},Ja={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},hd=new RegExp("^("+Object.keys(Za).join("|")+")"),md=new RegExp("^("+Object.keys(Xa).join("|")+")"),eu=new RegExp("^("+Object.keys(Ja).join("|")+")"),gd=/^[Mm]\s?[-+]?\.?\d/,pd=/^img:/,vd=/^svguse:/,_d=/^ion-/,bd=/^(fa-(sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,vt=Ye({name:"QIcon",props:{...fi,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(t,{slots:l}){const{proxy:{$q:o}}=i.getCurrentInstance(),u=di(t),s=i.computed(()=>"q-icon"+(t.left===!0?" on-left":"")+(t.right===!0?" on-right":"")+(t.color!==void 0?` text-${t.color}`:"")),f=i.computed(()=>{let m,g=t.name;if(g==="none"||!g)return{none:!0};if(o.iconMapFn!==null){const v=o.iconMapFn(g);if(v!==void 0)if(v.icon!==void 0){if(g=v.icon,g==="none"||!g)return{none:!0}}else return{cls:v.cls,content:v.content!==void 0?v.content:" "}}if(gd.test(g)===!0){const[v,k=Qa]=g.split("|");return{svg:!0,viewBox:k,nodes:v.split("&&").map(y=>{const[w,R,W]=y.split("@@");return i.h("path",{style:R,d:w,transform:W})})}}if(pd.test(g)===!0)return{img:!0,src:g.substring(4)};if(vd.test(g)===!0){const[v,k=Qa]=g.split("|");return{svguse:!0,src:v.substring(7),viewBox:k}}let C=" ";const A=g.match(hd);if(A!==null)m=Za[A[1]](g);else if(bd.test(g)===!0)m=g;else if(_d.test(g)===!0)m=`ionicons ion-${o.platform.is.ios===!0?"ios":"md"}${g.substring(3)}`;else if(eu.test(g)===!0){m="notranslate material-symbols";const v=g.match(eu);v!==null&&(g=g.substring(6),m+=Ja[v[1]]),C=g}else{m="notranslate material-icons";const v=g.match(md);v!==null&&(g=g.substring(2),m+=Xa[v[1]]),C=g}return{cls:m,content:C}});return()=>{const m={class:s.value,style:u.value,"aria-hidden":"true",role:"presentation"};return f.value.none===!0?i.h(t.tag,m,pt(l.default)):f.value.img===!0?i.h(t.tag,m,Mn(l.default,[i.h("img",{src:f.value.src})])):f.value.svg===!0?i.h(t.tag,m,Mn(l.default,[i.h("svg",{viewBox:f.value.viewBox||"0 0 24 24"},f.value.nodes)])):f.value.svguse===!0?i.h(t.tag,m,Mn(l.default,[i.h("svg",{viewBox:f.value.viewBox},[i.h("use",{"xlink:href":f.value.src})])])):(f.value.cls!==void 0&&(m.class+=" "+f.value.cls),i.h(t.tag,m,Mn(l.default,[f.value.content])))}}}),yd={class:"card-select-container"},wd=["onClick"],Sd={class:"check"},xd={class:"row justify-center items-center",style:{height:"100%"}},Cd=["onClick"],kd=i.defineComponent({__name:"CardsSelectControl",props:i.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=i.useModel(t,"modelValue"),o=t,{control:u}=i.toRefs(o);function s(g){if(u.value.multiple){let C=Pe.cloneDeep(l.value);g.exclusive?C=[g.value]:(C=C.filter(A=>{var v,k;return!((k=(v=u.value.options)==null?void 0:v.find(y=>y.value===A))!=null&&k.exclusive)}),C.includes(g.value)?C=C.filter(A=>A!==g.value):C.push(g.value)),l.value=C}else l.value=g.value}function f(g){return m(g)?"active":""}function m(g){let C;return u.value.multiple?C=(l.value||[]).includes(String(g.value)):C=l.value===g.value,C}return(g,C)=>{const A=i.resolveComponent("ControlLabel");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.unref(u).label?(i.openBlock(),i.createBlock(A,{key:0,label:i.unref(u).label},null,8,["label"])):i.createCommentVNode("",!0),i.createElementVNode("div",yd,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(u).options,(v,k)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:k},[v.image?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(`image-card ${f(v)}`),onClick:()=>s(v)},[i.createVNode(dd,{src:v.image,height:"200px",width:"200px",fit:"fill",class:"image"},null,8,["src"]),i.createElementVNode("div",Sd,[i.createElementVNode("div",xd,[m(v)?(i.openBlock(),i.createBlock(vt,{key:0,name:"check",size:"25px"})):i.createCommentVNode("",!0)])])],10,wd)):(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(`card-option ${f(v)}`),onClick:()=>s(v)},[i.createElementVNode("span",null,i.toDisplayString(v.label),1)],10,Cd))],64))),128))])],64)}}}),gn=(t,l)=>{const o=t.__vccOpts||t;for(const[u,s]of l)o[u]=s;return o},Ed=gn(kd,[["__scopeId","data-v-148468d6"]]),nr={dark:{type:Boolean,default:null}};function rr(t,l){return i.computed(()=>t.dark===null?l.dark.isActive:t.dark)}function Ad(t,l){const o=i.ref(null),u=i.computed(()=>t.disable===!0?null:i.h("span",{ref:o,class:"no-outline",tabindex:-1}));function s(f){const m=l.value;f!==void 0&&f.type.indexOf("key")===0?m!==null&&document.activeElement!==m&&m.contains(document.activeElement)===!0&&m.focus():o.value!==null&&(f===void 0||m!==null&&m.contains(f.target)===!0)&&o.value.focus()}return{refocusTargetEl:u,refocusTarget:s}}const Po={name:String};function Td(t={}){return(l,o,u)=>{l[o](i.h("input",{class:"hidden"+(u||""),...t.value}))}}function tu(t){return i.computed(()=>t.name||t.for)}const Bd={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 Rd(){}function nu(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 Od(t){if(t.path)return t.path;if(t.composedPath)return t.composedPath();const l=[];let o=t.target;for(;o;){if(l.push(o),o.tagName==="HTML")return l.push(document),l.push(window),l;o=o.parentElement}}function Kt(t){t.stopPropagation()}function It(t){t.cancelable!==!1&&t.preventDefault()}function Ke(t){t.cancelable!==!1&&t.preventDefault(),t.stopPropagation()}function No(t,l,o){const u=`__q_${l}_evt`;t[u]=t[u]!==void 0?t[u].concat(o):o,o.forEach(s=>{s[0].addEventListener(s[1],t[s[2]],st[s[3]])})}function ru(t,l){const o=`__q_${l}_evt`;t[o]!==void 0&&(t[o].forEach(u=>{u[0].removeEventListener(u[1],t[u[2]],st[u[3]])}),t[o]=void 0)}const iu={...nr,...fi,...Po,modelValue:{required:!0,default:null},val:{},trueValue:{default:!0},falseValue:{default:!1},indeterminateValue:{default:null},checkedIcon:String,uncheckedIcon:String,indeterminateIcon:String,toggleOrder:{type:String,validator:t=>t==="tf"||t==="ft"},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},ou=["update:modelValue"];function lu(t,l){const{props:o,slots:u,emit:s,proxy:f}=i.getCurrentInstance(),{$q:m}=f,g=rr(o,m),C=i.ref(null),{refocusTargetEl:A,refocusTarget:v}=Ad(o,C),k=di(o,Bd),y=i.computed(()=>o.val!==void 0&&Array.isArray(o.modelValue)),w=i.computed(()=>{const S=i.toRaw(o.val);return y.value===!0?o.modelValue.findIndex(Z=>i.toRaw(Z)===S):-1}),R=i.computed(()=>y.value===!0?w.value!==-1:i.toRaw(o.modelValue)===i.toRaw(o.trueValue)),W=i.computed(()=>y.value===!0?w.value===-1:i.toRaw(o.modelValue)===i.toRaw(o.falseValue)),O=i.computed(()=>R.value===!1&&W.value===!1),G=i.computed(()=>o.disable===!0?-1:o.tabindex||0),U=i.computed(()=>`q-${t} cursor-pointer no-outline row inline no-wrap items-center`+(o.disable===!0?" disabled":"")+(g.value===!0?` q-${t}--dark`:"")+(o.dense===!0?` q-${t}--dense`:"")+(o.leftLabel===!0?" reverse":"")),D=i.computed(()=>{const S=R.value===!0?"truthy":W.value===!0?"falsy":"indet",Z=o.color!==void 0&&(o.keepColor===!0||(t==="toggle"?R.value===!0:W.value!==!0))?` text-${o.color}`:"";return`q-${t}__inner relative-position non-selectable q-${t}__inner--${S}${Z}`}),Q=i.computed(()=>{const S={type:"checkbox"};return o.name!==void 0&&Object.assign(S,{".checked":R.value,"^checked":R.value===!0?"checked":void 0,name:o.name,value:y.value===!0?o.val:o.trueValue}),S}),j=Td(Q),Y=i.computed(()=>{const S={tabindex:G.value,role:t==="toggle"?"switch":"checkbox","aria-label":o.label,"aria-checked":O.value===!0?"mixed":R.value===!0?"true":"false"};return o.disable===!0&&(S["aria-disabled"]="true"),S});function I(S){S!==void 0&&(Ke(S),v(S)),o.disable!==!0&&s("update:modelValue",le(),S)}function le(){if(y.value===!0){if(R.value===!0){const S=o.modelValue.slice();return S.splice(w.value,1),S}return o.modelValue.concat([o.val])}if(R.value===!0){if(o.toggleOrder!=="ft"||o.toggleIndeterminate===!1)return o.falseValue}else if(W.value===!0){if(o.toggleOrder==="ft"||o.toggleIndeterminate===!1)return o.trueValue}else return o.toggleOrder!=="ft"?o.trueValue:o.falseValue;return o.indeterminateValue}function P(S){(S.keyCode===13||S.keyCode===32)&&Ke(S)}function T(S){(S.keyCode===13||S.keyCode===32)&&I(S)}const V=l(R,O);return Object.assign(f,{toggle:I}),()=>{const S=V();o.disable!==!0&&j(S,"unshift",` q-${t}__native absolute q-ma-none q-pa-none`);const Z=[i.h("div",{class:D.value,style:k.value,"aria-hidden":"true"},S)];A.value!==null&&Z.push(A.value);const F=o.label!==void 0?Mn(u.default,[o.label]):pt(u.default);return F!==void 0&&Z.push(i.h("div",{class:`q-${t}__label q-anchor--skip`},F)),i.h("div",{ref:C,class:U.value,...Y.value,onClick:I,onKeydown:P,onKeyup:T},Z)}}const qd=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"})])]),au=Ye({name:"QCheckbox",props:iu,emits:ou,setup(t){function l(o,u){const s=i.computed(()=>(o.value===!0?t.checkedIcon:u.value===!0?t.indeterminateIcon:t.uncheckedIcon)||null);return()=>s.value!==null?[i.h("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[i.h(vt,{class:"q-checkbox__icon",name:s.value})])]:[qd]}return lu("checkbox",l)}}),uu=i.defineComponent({__name:"SimpleCheckbox",props:i.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=i.useModel(t,"modelValue");return(o,u)=>(i.openBlock(),i.createBlock(au,{outlined:"",label:o.control.label,color:"green-10","model-value":!!l.value,"onUpdate:modelValue":u[0]||(u[0]=s=>l.value=!l.value),style:{height:"66.2px"}},null,8,["label","model-value"]))}}),Md=Ye({name:"QToggle",props:{...iu,icon:String,iconColor:String},emits:ou,setup(t){function l(o,u){const s=i.computed(()=>(o.value===!0?t.checkedIcon:u.value===!0?t.indeterminateIcon:t.uncheckedIcon)||t.icon),f=i.computed(()=>o.value===!0?t.iconColor:null);return()=>[i.h("div",{class:"q-toggle__track"}),i.h("div",{class:"q-toggle__thumb absolute flex flex-center no-wrap"},s.value!==void 0?[i.h(vt,{name:s.value,color:f.value})]:void 0)]}return lu("toggle",l)}}),Vd=i.defineComponent({__name:"SimpleSwitch",props:i.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=i.useModel(t,"modelValue");return(o,u)=>(i.openBlock(),i.createBlock(Md,{falseValue:0,trueValue:1,outlined:"",label:o.control.label,modelValue:l.value,"onUpdate:modelValue":u[0]||(u[0]=s=>l.value=s),leftLabel:"",color:"green-10",style:{height:"66.2px"}},null,8,["label","modelValue"]))}});let $o,mi=0;const Je=new Array(256);for(let t=0;t<256;t++)Je[t]=(t+256).toString(16).substring(1);const Ld=(()=>{const t=typeof crypto<"u"?crypto:typeof window<"u"?window.crypto||window.msCrypto:void 0;if(t!==void 0){if(t.randomBytes!==void 0)return t.randomBytes;if(t.getRandomValues!==void 0)return l=>{const o=new Uint8Array(l);return t.getRandomValues(o),o}}return l=>{const o=[];for(let u=l;u>0;u--)o.push(Math.floor(Math.random()*256));return o}})(),su=4096;function Fo(){($o===void 0||mi+16>su)&&(mi=0,$o=Ld(su));const t=Array.prototype.slice.call($o,mi,mi+=16);return t[6]=t[6]&15|64,t[8]=t[8]&63|128,Je[t[0]]+Je[t[1]]+Je[t[2]]+Je[t[3]]+"-"+Je[t[4]]+Je[t[5]]+"-"+Je[t[6]]+Je[t[7]]+"-"+Je[t[8]]+Je[t[9]]+"-"+Je[t[10]]+Je[t[11]]+Je[t[12]]+Je[t[13]]+Je[t[14]]+Je[t[15]]}function Id(t){return t??null}function cu(t,l){return t??(l===!0?`f_${Fo()}`:null)}function Pd({getValue:t,required:l=!0}={}){if(mn.value===!0){const o=t!==void 0?i.ref(Id(t())):i.ref(null);return l===!0&&o.value===null&&i.onMounted(()=>{o.value=`f_${Fo()}`}),t!==void 0&&i.watch(t,u=>{o.value=cu(u,l)}),o}return t!==void 0?i.computed(()=>cu(t(),l)):i.ref(`f_${Fo()}`)}const fu=/^on[A-Z]/;function Nd(){const{attrs:t,vnode:l}=i.getCurrentInstance(),o={listeners:i.ref({}),attributes:i.ref({})};function u(){const s={},f={};for(const m in t)m!=="class"&&m!=="style"&&fu.test(m)===!1&&(s[m]=t[m]);for(const m in l.props)fu.test(m)===!0&&(f[m]=l.props[m]);o.attributes.value=s,o.listeners.value=f}return i.onBeforeUpdate(u),u(),o}const $d="_q_",Fd="_q_fo_";function Dd({validate:t,resetValidation:l,requiresQForm:o}){const u=i.inject(Fd,!1);if(u!==!1){const{props:s,proxy:f}=i.getCurrentInstance();Object.assign(f,{validate:t,resetValidation:l}),i.watch(()=>s.disable,m=>{m===!0?(typeof l=="function"&&l(),u.unbindComponent(f)):u.bindComponent(f)}),i.onMounted(()=>{s.disable!==!0&&u.bindComponent(f)}),i.onBeforeUnmount(()=>{s.disable!==!0&&u.unbindComponent(f)})}else o===!0&&console.error("Parent QForm not found on useFormChild()!")}const du=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,hu=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,mu=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,gi=/^rgb\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5])\)$/,pi=/^rgba\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/,Do={date:t=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(t),time:t=>/^([0-1]?\d|2[0-3]):[0-5]\d$/.test(t),fulltime:t=>/^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(t),timeOrFulltime:t=>/^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/.test(t),email:t=>/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t),hexColor:t=>du.test(t),hexaColor:t=>hu.test(t),hexOrHexaColor:t=>mu.test(t),rgbColor:t=>gi.test(t),rgbaColor:t=>pi.test(t),rgbOrRgbaColor:t=>gi.test(t)||pi.test(t),hexOrRgbColor:t=>du.test(t)||gi.test(t),hexaOrRgbaColor:t=>hu.test(t)||pi.test(t),anyColor:t=>mu.test(t)||gi.test(t)||pi.test(t)};function gu(t,l=250,o){let u=null;function s(){const f=arguments,m=()=>{u=null,t.apply(this,f)};u!==null&&clearTimeout(u),u=setTimeout(m,l)}return s.cancel=()=>{u!==null&&clearTimeout(u)},s}const zd=[!0,!1,"ondemand"],Ud={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:t=>zd.includes(t)}};function Wd(t,l){const{props:o,proxy:u}=i.getCurrentInstance(),s=i.ref(!1),f=i.ref(null),m=i.ref(!1);Dd({validate:W,resetValidation:R});let g=0,C;const A=i.computed(()=>o.rules!==void 0&&o.rules!==null&&o.rules.length!==0),v=i.computed(()=>o.disable!==!0&&A.value===!0&&l.value===!1),k=i.computed(()=>o.error===!0||s.value===!0),y=i.computed(()=>typeof o.errorMessage=="string"&&o.errorMessage.length!==0?o.errorMessage:f.value);i.watch(()=>o.modelValue,()=>{m.value=!0,v.value===!0&&o.lazyRules===!1&&O()});function w(){o.lazyRules!=="ondemand"&&v.value===!0&&m.value===!0&&O()}i.watch(()=>o.reactiveRules,G=>{G===!0?C===void 0&&(C=i.watch(()=>o.rules,w,{immediate:!0,deep:!0})):C!==void 0&&(C(),C=void 0)},{immediate:!0}),i.watch(()=>o.lazyRules,w),i.watch(t,G=>{G===!0?m.value=!0:v.value===!0&&o.lazyRules!=="ondemand"&&O()});function R(){g++,l.value=!1,m.value=!1,s.value=!1,f.value=null,O.cancel()}function W(G=o.modelValue){if(o.disable===!0||A.value===!1)return!0;const U=++g,D=l.value!==!0?()=>{m.value=!0}:()=>{},Q=(Y,I)=>{Y===!0&&D(),s.value=Y,f.value=I||null,l.value=!1},j=[];for(let Y=0;Y<o.rules.length;Y++){const I=o.rules[Y];let le;if(typeof I=="function"?le=I(G,Do):typeof I=="string"&&Do[I]!==void 0&&(le=Do[I](G)),le===!1||typeof le=="string")return Q(!0,le),!1;le!==!0&&le!==void 0&&j.push(le)}return j.length===0?(Q(!1),!0):(l.value=!0,Promise.all(j).then(Y=>{if(Y===void 0||Array.isArray(Y)===!1||Y.length===0)return U===g&&Q(!1),!0;const I=Y.find(le=>le===!1||typeof le=="string");return U===g&&Q(I!==void 0,I),I===void 0},Y=>(U===g&&(console.error(Y),Q(!0)),!1)))}const O=gu(W,0);return i.onBeforeUnmount(()=>{C!==void 0&&C(),O.cancel()}),Object.assign(u,{resetValidation:R,validate:W}),ci(u,"hasError",()=>k.value),{isDirtyModel:m,hasRules:A,hasError:k,errorMessage:y,validate:W,resetValidation:R}}let Vn=[],Mr=[];function pu(t){Mr=Mr.filter(l=>l!==t)}function Hd(t){pu(t),Mr.push(t)}function vu(t){pu(t),Mr.length===0&&Vn.length!==0&&(Vn[Vn.length-1](),Vn=[])}function vi(t){Mr.length===0?t():Vn.push(t)}function Kd(t){Vn=Vn.filter(l=>l!==t)}function Vr(t){return t!=null&&(""+t).length!==0}const _i={...{...nr,...Ud,label:String,stackLabel:Boolean,hint:String,hideHint:Boolean,prefix:String,suffix:String,labelColor:String,color:String,bgColor:String,filled:Boolean,outlined:Boolean,borderless:Boolean,standout:[Boolean,String],square:Boolean,loading:Boolean,labelSlot:Boolean,bottomSlots:Boolean,hideBottomSpace:Boolean,rounded:Boolean,dense:Boolean,itemAligned:Boolean,counter:Boolean,clearable:Boolean,clearIcon:String,disable:Boolean,readonly:Boolean,autofocus:Boolean,for:String},maxlength:[Number,String]},zo=["update:modelValue","clear","focus","blur"];function Uo({requiredForAttr:t=!0,tagProp:l,changeEvent:o=!1}={}){const{props:u,proxy:s}=i.getCurrentInstance(),f=rr(u,s.$q),m=Pd({required:t,getValue:()=>u.for});return{requiredForAttr:t,changeEvent:o,tag:l===!0?i.computed(()=>u.tag):{value:"label"},isDark:f,editable:i.computed(()=>u.disable!==!0&&u.readonly!==!0),innerLoading:i.ref(!1),focused:i.ref(!1),hasPopupOpen:!1,splitAttrs:Nd(),targetUid:m,rootRef:i.ref(null),targetRef:i.ref(null),controlRef:i.ref(null)}}function Wo(t){const{props:l,emit:o,slots:u,attrs:s,proxy:f}=i.getCurrentInstance(),{$q:m}=f;let g=null;t.hasValue===void 0&&(t.hasValue=i.computed(()=>Vr(l.modelValue))),t.emitValue===void 0&&(t.emitValue=H=>{o("update:modelValue",H)}),t.controlEvents===void 0&&(t.controlEvents={onFocusin:P,onFocusout:T}),Object.assign(t,{clearValue:V,onControlFocusin:P,onControlFocusout:T,focus:I}),t.computedCounter===void 0&&(t.computedCounter=i.computed(()=>{if(l.counter!==!1){const H=typeof l.modelValue=="string"||typeof l.modelValue=="number"?(""+l.modelValue).length:Array.isArray(l.modelValue)===!0?l.modelValue.length:0,ie=l.maxlength!==void 0?l.maxlength:l.maxValues;return H+(ie!==void 0?" / "+ie:"")}}));const{isDirtyModel:C,hasRules:A,hasError:v,errorMessage:k,resetValidation:y}=Wd(t.focused,t.innerLoading),w=t.floatingLabel!==void 0?i.computed(()=>l.stackLabel===!0||t.focused.value===!0||t.floatingLabel.value===!0):i.computed(()=>l.stackLabel===!0||t.focused.value===!0||t.hasValue.value===!0),R=i.computed(()=>l.bottomSlots===!0||l.hint!==void 0||A.value===!0||l.counter===!0||l.error!==null),W=i.computed(()=>l.filled===!0?"filled":l.outlined===!0?"outlined":l.borderless===!0?"borderless":l.standout?"standout":"standard"),O=i.computed(()=>`q-field row no-wrap items-start q-field--${W.value}`+(t.fieldClass!==void 0?` ${t.fieldClass.value}`:"")+(l.rounded===!0?" q-field--rounded":"")+(l.square===!0?" q-field--square":"")+(w.value===!0?" q-field--float":"")+(U.value===!0?" q-field--labeled":"")+(l.dense===!0?" q-field--dense":"")+(l.itemAligned===!0?" q-field--item-aligned q-item-type":"")+(t.isDark.value===!0?" q-field--dark":"")+(t.getControl===void 0?" q-field--auto-height":"")+(t.focused.value===!0?" q-field--focused":"")+(v.value===!0?" q-field--error":"")+(v.value===!0||t.focused.value===!0?" q-field--highlighted":"")+(l.hideBottomSpace!==!0&&R.value===!0?" q-field--with-bottom":"")+(l.disable===!0?" q-field--disabled":l.readonly===!0?" q-field--readonly":"")),G=i.computed(()=>"q-field__control relative-position row no-wrap"+(l.bgColor!==void 0?` bg-${l.bgColor}`:"")+(v.value===!0?" text-negative":typeof l.standout=="string"&&l.standout.length!==0&&t.focused.value===!0?` ${l.standout}`:l.color!==void 0?` text-${l.color}`:"")),U=i.computed(()=>l.labelSlot===!0||l.label!==void 0),D=i.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(l.labelColor!==void 0&&v.value!==!0?` text-${l.labelColor}`:"")),Q=i.computed(()=>({id:t.targetUid.value,editable:t.editable.value,focused:t.focused.value,floatingLabel:w.value,modelValue:l.modelValue,emitValue:t.emitValue})),j=i.computed(()=>{const H={};return t.targetUid.value&&(H.for=t.targetUid.value),l.disable===!0&&(H["aria-disabled"]="true"),H});function Y(){const H=document.activeElement;let ie=t.targetRef!==void 0&&t.targetRef.value;ie&&(H===null||H.id!==t.targetUid.value)&&(ie.hasAttribute("tabindex")===!0||(ie=ie.querySelector("[tabindex]")),ie&&ie!==H&&ie.focus({preventScroll:!0}))}function I(){vi(Y)}function le(){Kd(Y);const H=document.activeElement;H!==null&&t.rootRef.value.contains(H)&&H.blur()}function P(H){g!==null&&(clearTimeout(g),g=null),t.editable.value===!0&&t.focused.value===!1&&(t.focused.value=!0,o("focus",H))}function T(H,ie){g!==null&&clearTimeout(g),g=setTimeout(()=>{g=null,!(document.hasFocus()===!0&&(t.hasPopupOpen===!0||t.controlRef===void 0||t.controlRef.value===null||t.controlRef.value.contains(document.activeElement)!==!1))&&(t.focused.value===!0&&(t.focused.value=!1,o("blur",H)),ie!==void 0&&ie())})}function V(H){Ke(H),m.platform.is.mobile!==!0?(t.targetRef!==void 0&&t.targetRef.value||t.rootRef.value).focus():t.rootRef.value.contains(document.activeElement)===!0&&document.activeElement.blur(),l.type==="file"&&(t.inputRef.value.value=null),o("update:modelValue",null),t.changeEvent===!0&&o("change",null),o("clear",l.modelValue),i.nextTick(()=>{const ie=C.value;y(),C.value=ie})}function S(H){[13,32].includes(H.keyCode)&&V(H)}function Z(){const H=[];return u.prepend!==void 0&&H.push(i.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:It},u.prepend())),H.push(i.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},F())),v.value===!0&&l.noErrorIcon===!1&&H.push(se("error",[i.h(vt,{name:m.iconSet.field.error,color:"negative"})])),l.loading===!0||t.innerLoading.value===!0?H.push(se("inner-loading-append",u.loading!==void 0?u.loading():[i.h(Vo,{color:l.color})])):l.clearable===!0&&t.hasValue.value===!0&&t.editable.value===!0&&H.push(se("inner-clearable-append",[i.h(vt,{class:"q-field__focusable-action",name:l.clearIcon||m.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":m.lang.label.clear,onKeyup:S,onClick:V})])),u.append!==void 0&&H.push(i.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:It},u.append())),t.getInnerAppend!==void 0&&H.push(se("inner-append",t.getInnerAppend())),t.getControlChild!==void 0&&H.push(t.getControlChild()),H}function F(){const H=[];return l.prefix!==void 0&&l.prefix!==null&&H.push(i.h("div",{class:"q-field__prefix no-pointer-events row items-center"},l.prefix)),t.getShadowControl!==void 0&&t.hasShadow.value===!0&&H.push(t.getShadowControl()),t.getControl!==void 0?H.push(t.getControl()):u.rawControl!==void 0?H.push(u.rawControl()):u.control!==void 0&&H.push(i.h("div",{ref:t.targetRef,class:"q-field__native row",tabindex:-1,...t.splitAttrs.attributes.value,"data-autofocus":l.autofocus===!0||void 0},u.control(Q.value))),U.value===!0&&H.push(i.h("div",{class:D.value},pt(u.label,l.label))),l.suffix!==void 0&&l.suffix!==null&&H.push(i.h("div",{class:"q-field__suffix no-pointer-events row items-center"},l.suffix)),H.concat(pt(u.default))}function ae(){let H,ie;v.value===!0?k.value!==null?(H=[i.h("div",{role:"alert"},k.value)],ie=`q--slot-error-${k.value}`):(H=pt(u.error),ie="q--slot-error"):(l.hideHint!==!0||t.focused.value===!0)&&(l.hint!==void 0?(H=[i.h("div",l.hint)],ie=`q--slot-hint-${l.hint}`):(H=pt(u.hint),ie="q--slot-hint"));const ge=l.counter===!0||u.counter!==void 0;if(l.hideBottomSpace===!0&&ge===!1&&H===void 0)return;const q=i.h("div",{key:ie,class:"q-field__messages col"},H);return i.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(l.hideBottomSpace!==!0?"animated":"stale"),onClick:It},[l.hideBottomSpace===!0?q:i.h(i.Transition,{name:"q-transition--field-message"},()=>q),ge===!0?i.h("div",{class:"q-field__counter"},u.counter!==void 0?u.counter():t.computedCounter.value):null])}function se(H,ie){return ie===null?null:i.h("div",{key:H,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},ie)}let ce=!1;return i.onDeactivated(()=>{ce=!0}),i.onActivated(()=>{ce===!0&&l.autofocus===!0&&f.focus()}),l.autofocus===!0&&i.onMounted(()=>{f.focus()}),i.onBeforeUnmount(()=>{g!==null&&clearTimeout(g)}),Object.assign(f,{focus:I,blur:le}),function(){const ie=t.getControl===void 0&&u.control===void 0?{...t.splitAttrs.attributes.value,"data-autofocus":l.autofocus===!0||void 0,...j.value}:j.value;return i.h(t.tag.value,{ref:t.rootRef,class:[O.value,s.class],style:s.style,...ie},[u.before!==void 0?i.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:It},u.before()):null,i.h("div",{class:"q-field__inner relative-position col self-stretch"},[i.h("div",{ref:t.controlRef,class:G.value,tabindex:-1,...t.controlEvents},Z()),R.value===!0?ae():null]),u.after!==void 0?i.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:It},u.after()):null])}}function Ho(t){return t!==Object(t)||t.isComposing===!0||t.qKeyEvent===!0}function Ln(t,l){return Ho(t)===!0?!1:[].concat(l).includes(t.keyCode)}const _u={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},bi={"#":{pattern:"[\\d]",negate:"[^\\d]"},S:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]"},N:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]"},A:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:t=>t.toLocaleUpperCase()},a:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:t=>t.toLocaleLowerCase()},X:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:t=>t.toLocaleUpperCase()},x:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:t=>t.toLocaleLowerCase()}},bu=Object.keys(bi);bu.forEach(t=>{bi[t].regex=new RegExp(bi[t].pattern)});const Gd=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+bu.join("")+"])|(.)","g"),yu=/[.*+?^${}()|[\]\\]/g,We="",jd={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function Qd(t,l,o,u){let s,f,m,g,C,A;const v=i.ref(null),k=i.ref(w());function y(){return t.autogrow===!0||["textarea","text","search","url","tel","password"].includes(t.type)}i.watch(()=>t.type+t.autogrow,W),i.watch(()=>t.mask,P=>{if(P!==void 0)O(k.value,!0);else{const T=I(k.value);W(),t.modelValue!==T&&l("update:modelValue",T)}}),i.watch(()=>t.fillMask+t.reverseFillMask,()=>{v.value===!0&&O(k.value,!0)}),i.watch(()=>t.unmaskedValue,()=>{v.value===!0&&O(k.value)});function w(){if(W(),v.value===!0){const P=j(I(t.modelValue));return t.fillMask!==!1?le(P):P}return t.modelValue}function R(P){if(P<s.length)return s.slice(-P);let T="",V=s;const S=V.indexOf(We);if(S!==-1){for(let Z=P-V.length;Z>0;Z--)T+=We;V=V.slice(0,S)+T+V.slice(S)}return V}function W(){if(v.value=t.mask!==void 0&&t.mask.length!==0&&y(),v.value===!1){g=void 0,s="",f="";return}const P=_u[t.mask]===void 0?t.mask:_u[t.mask],T=typeof t.fillMask=="string"&&t.fillMask.length!==0?t.fillMask.slice(0,1):"_",V=T.replace(yu,"\\$&"),S=[],Z=[],F=[];let ae=t.reverseFillMask===!0,se="",ce="";P.replace(Gd,(q,B,oe,ve,_e)=>{if(ve!==void 0){const K=bi[ve];F.push(K),ce=K.negate,ae===!0&&(Z.push("(?:"+ce+"+)?("+K.pattern+"+)?(?:"+ce+"+)?("+K.pattern+"+)?"),ae=!1),Z.push("(?:"+ce+"+)?("+K.pattern+")?")}else if(oe!==void 0)se="\\"+(oe==="\\"?"":oe),F.push(oe),S.push("([^"+se+"]+)?"+se+"?");else{const K=B!==void 0?B:_e;se=K==="\\"?"\\\\\\\\":K.replace(yu,"\\\\$&"),F.push(K),S.push("([^"+se+"]+)?"+se+"?")}});const H=new RegExp("^"+S.join("")+"("+(se===""?".":"[^"+se+"]")+"+)?"+(se===""?"":"["+se+"]*")+"$"),ie=Z.length-1,ge=Z.map((q,B)=>B===0&&t.reverseFillMask===!0?new RegExp("^"+V+"*"+q):B===ie?new RegExp("^"+q+"("+(ce===""?".":ce)+"+)?"+(t.reverseFillMask===!0?"$":V+"*")):new RegExp("^"+q));m=F,g=q=>{const B=H.exec(t.reverseFillMask===!0?q:q.slice(0,F.length+1));B!==null&&(q=B.slice(1).join(""));const oe=[],ve=ge.length;for(let _e=0,K=q;_e<ve;_e++){const ne=ge[_e].exec(K);if(ne===null)break;K=K.slice(ne.shift().length),oe.push(...ne)}return oe.length!==0?oe.join(""):q},s=F.map(q=>typeof q=="string"?q:We).join(""),f=s.split(We).join(T)}function O(P,T,V){const S=u.value,Z=S.selectionEnd,F=S.value.length-Z,ae=I(P);T===!0&&W();const se=j(ae),ce=t.fillMask!==!1?le(se):se,H=k.value!==ce;S.value!==ce&&(S.value=ce),H===!0&&(k.value=ce),document.activeElement===S&&i.nextTick(()=>{if(ce===f){const ge=t.reverseFillMask===!0?f.length:0;S.setSelectionRange(ge,ge,"forward");return}if(V==="insertFromPaste"&&t.reverseFillMask!==!0){const ge=S.selectionEnd;let q=Z-1;for(let B=C;B<=q&&B<ge;B++)s[B]!==We&&q++;U.right(S,q);return}if(["deleteContentBackward","deleteContentForward"].indexOf(V)!==-1){const ge=t.reverseFillMask===!0?Z===0?ce.length>se.length?1:0:Math.max(0,ce.length-(ce===f?0:Math.min(se.length,F)+1))+1:Z;S.setSelectionRange(ge,ge,"forward");return}if(t.reverseFillMask===!0)if(H===!0){const ge=Math.max(0,ce.length-(ce===f?0:Math.min(se.length,F+1)));ge===1&&Z===1?S.setSelectionRange(ge,ge,"forward"):U.rightReverse(S,ge)}else{const ge=ce.length-F;S.setSelectionRange(ge,ge,"backward")}else if(H===!0){const ge=Math.max(0,s.indexOf(We),Math.min(se.length,Z)-1);U.right(S,ge)}else{const ge=Z-1;U.right(S,ge)}});const ie=t.unmaskedValue===!0?I(ce):ce;String(t.modelValue)!==ie&&(t.modelValue!==null||ie!=="")&&o(ie,!0)}function G(P,T,V){const S=j(I(P.value));T=Math.max(0,s.indexOf(We),Math.min(S.length,T)),C=T,P.setSelectionRange(T,V,"forward")}const U={left(P,T){const V=s.slice(T-1).indexOf(We)===-1;let S=Math.max(0,T-1);for(;S>=0;S--)if(s[S]===We){T=S,V===!0&&T++;break}if(S<0&&s[T]!==void 0&&s[T]!==We)return U.right(P,0);T>=0&&P.setSelectionRange(T,T,"backward")},right(P,T){const V=P.value.length;let S=Math.min(V,T+1);for(;S<=V;S++)if(s[S]===We){T=S;break}else s[S-1]===We&&(T=S);if(S>V&&s[T-1]!==void 0&&s[T-1]!==We)return U.left(P,V);P.setSelectionRange(T,T,"forward")},leftReverse(P,T){const V=R(P.value.length);let S=Math.max(0,T-1);for(;S>=0;S--)if(V[S-1]===We){T=S;break}else if(V[S]===We&&(T=S,S===0))break;if(S<0&&V[T]!==void 0&&V[T]!==We)return U.rightReverse(P,0);T>=0&&P.setSelectionRange(T,T,"backward")},rightReverse(P,T){const V=P.value.length,S=R(V),Z=S.slice(0,T+1).indexOf(We)===-1;let F=Math.min(V,T+1);for(;F<=V;F++)if(S[F-1]===We){T=F,T>0&&Z===!0&&T--;break}if(F>V&&S[T-1]!==void 0&&S[T-1]!==We)return U.leftReverse(P,V);P.setSelectionRange(T,T,"forward")}};function D(P){l("click",P),A=void 0}function Q(P){if(l("keydown",P),Ho(P)===!0||P.altKey===!0)return;const T=u.value,V=T.selectionStart,S=T.selectionEnd;if(P.shiftKey||(A=void 0),P.keyCode===37||P.keyCode===39){P.shiftKey&&A===void 0&&(A=T.selectionDirection==="forward"?V:S);const Z=U[(P.keyCode===39?"right":"left")+(t.reverseFillMask===!0?"Reverse":"")];if(P.preventDefault(),Z(T,A===V?S:V),P.shiftKey){const F=T.selectionStart;T.setSelectionRange(Math.min(A,F),Math.max(A,F),"forward")}}else P.keyCode===8&&t.reverseFillMask!==!0&&V===S?(U.left(T,V),T.setSelectionRange(T.selectionStart,S,"backward")):P.keyCode===46&&t.reverseFillMask===!0&&V===S&&(U.rightReverse(T,S),T.setSelectionRange(V,T.selectionEnd,"forward"))}function j(P){if(P==null||P==="")return"";if(t.reverseFillMask===!0)return Y(P);const T=m;let V=0,S="";for(let Z=0;Z<T.length;Z++){const F=P[V],ae=T[Z];if(typeof ae=="string")S+=ae,F===ae&&V++;else if(F!==void 0&&ae.regex.test(F))S+=ae.transform!==void 0?ae.transform(F):F,V++;else return S}return S}function Y(P){const T=m,V=s.indexOf(We);let S=P.length-1,Z="";for(let F=T.length-1;F>=0&&S!==-1;F--){const ae=T[F];let se=P[S];if(typeof ae=="string")Z=ae+Z,se===ae&&S--;else if(se!==void 0&&ae.regex.test(se))do Z=(ae.transform!==void 0?ae.transform(se):se)+Z,S--,se=P[S];while(V===F&&se!==void 0&&ae.regex.test(se));else return Z}return Z}function I(P){return typeof P!="string"||g===void 0?typeof P=="number"?g(""+P):P:g(P)}function le(P){return f.length-P.length<=0?P:t.reverseFillMask===!0&&P.length!==0?f.slice(0,-P.length)+P:P+f.slice(P.length)}return{innerValue:k,hasMask:v,moveCursorForPaste:G,updateMaskValue:O,onMaskedKeydown:Q,onMaskedClick:D}}function Yd(t,l){function o(){const u=t.modelValue;try{const s="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(u)===u&&("length"in u?Array.from(u):[u]).forEach(f=>{s.items.add(f)}),{files:s.files}}catch{return{files:void 0}}}return i.computed(()=>{if(t.type==="file")return o()})}const Zd=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,Xd=/[\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,Jd=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,eh=/[a-z0-9_ -]$/i;function wu(t){return function(o){if(o.type==="compositionend"||o.type==="change"){if(o.target.qComposing!==!0)return;o.target.qComposing=!1,t(o)}else o.type==="compositionupdate"&&o.target.qComposing!==!0&&typeof o.data=="string"&&(gt.is.firefox===!0?eh.test(o.data)===!1:Zd.test(o.data)===!0||Xd.test(o.data)===!0||Jd.test(o.data)===!0)===!0&&(o.target.qComposing=!0)}}const Su=Ye({name:"QInput",inheritAttrs:!1,props:{..._i,...jd,...Po,modelValue:[String,Number,FileList],shadowText:String,type:{type:String,default:"text"},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...zo,"paste","change","keydown","click","animationend"],setup(t,{emit:l,attrs:o}){const{proxy:u}=i.getCurrentInstance(),{$q:s}=u,f={};let m=NaN,g,C,A=null,v;const k=i.ref(null),y=tu(t),{innerValue:w,hasMask:R,moveCursorForPaste:W,updateMaskValue:O,onMaskedKeydown:G,onMaskedClick:U}=Qd(t,l,se,k),D=Yd(t),Q=i.computed(()=>Vr(w.value)),j=wu(F),Y=Uo({changeEvent:!0}),I=i.computed(()=>t.type==="textarea"||t.autogrow===!0),le=i.computed(()=>I.value===!0||["text","search","url","tel","password"].includes(t.type)),P=i.computed(()=>{const B={...Y.splitAttrs.listeners.value,onInput:F,onPaste:Z,onChange:H,onBlur:ie,onFocus:Kt};return B.onCompositionstart=B.onCompositionupdate=B.onCompositionend=j,R.value===!0&&(B.onKeydown=G,B.onClick=U),t.autogrow===!0&&(B.onAnimationend=ae),B}),T=i.computed(()=>{const B={tabindex:0,"data-autofocus":t.autofocus===!0||void 0,rows:t.type==="textarea"?6:void 0,"aria-label":t.label,name:y.value,...Y.splitAttrs.attributes.value,id:Y.targetUid.value,maxlength:t.maxlength,disabled:t.disable===!0,readonly:t.readonly===!0};return I.value===!1&&(B.type=t.type),t.autogrow===!0&&(B.rows=1),B});i.watch(()=>t.type,()=>{k.value&&(k.value.value=t.modelValue)}),i.watch(()=>t.modelValue,B=>{if(R.value===!0){if(C===!0&&(C=!1,String(B)===m))return;O(B)}else w.value!==B&&(w.value=B,t.type==="number"&&f.hasOwnProperty("value")===!0&&(g===!0?g=!1:delete f.value));t.autogrow===!0&&i.nextTick(ce)}),i.watch(()=>t.autogrow,B=>{B===!0?i.nextTick(ce):k.value!==null&&o.rows>0&&(k.value.style.height="auto")}),i.watch(()=>t.dense,()=>{t.autogrow===!0&&i.nextTick(ce)});function V(){vi(()=>{const B=document.activeElement;k.value!==null&&k.value!==B&&(B===null||B.id!==Y.targetUid.value)&&k.value.focus({preventScroll:!0})})}function S(){k.value!==null&&k.value.select()}function Z(B){if(R.value===!0&&t.reverseFillMask!==!0){const oe=B.target;W(oe,oe.selectionStart,oe.selectionEnd)}l("paste",B)}function F(B){if(!B||!B.target)return;if(t.type==="file"){l("update:modelValue",B.target.files);return}const oe=B.target.value;if(B.target.qComposing===!0){f.value=oe;return}if(R.value===!0)O(oe,!1,B.inputType);else if(se(oe),le.value===!0&&B.target===document.activeElement){const{selectionStart:ve,selectionEnd:_e}=B.target;ve!==void 0&&_e!==void 0&&i.nextTick(()=>{B.target===document.activeElement&&oe.indexOf(B.target.value)===0&&B.target.setSelectionRange(ve,_e)})}t.autogrow===!0&&ce()}function ae(B){l("animationend",B),ce()}function se(B,oe){v=()=>{A=null,t.type!=="number"&&f.hasOwnProperty("value")===!0&&delete f.value,t.modelValue!==B&&m!==B&&(m=B,oe===!0&&(C=!0),l("update:modelValue",B),i.nextTick(()=>{m===B&&(m=NaN)})),v=void 0},t.type==="number"&&(g=!0,f.value=B),t.debounce!==void 0?(A!==null&&clearTimeout(A),f.value=B,A=setTimeout(v,t.debounce)):v()}function ce(){requestAnimationFrame(()=>{const B=k.value;if(B!==null){const oe=B.parentNode.style,{scrollTop:ve}=B,{overflowY:_e,maxHeight:K}=s.platform.is.firefox===!0?{}:window.getComputedStyle(B),ne=_e!==void 0&&_e!=="scroll";ne===!0&&(B.style.overflowY="hidden"),oe.marginBottom=B.scrollHeight-1+"px",B.style.height="1px",B.style.height=B.scrollHeight+"px",ne===!0&&(B.style.overflowY=parseInt(K,10)<B.scrollHeight?"auto":"hidden"),oe.marginBottom="",B.scrollTop=ve}})}function H(B){j(B),A!==null&&(clearTimeout(A),A=null),v!==void 0&&v(),l("change",B.target.value)}function ie(B){B!==void 0&&Kt(B),A!==null&&(clearTimeout(A),A=null),v!==void 0&&v(),g=!1,C=!1,delete f.value,t.type!=="file"&&setTimeout(()=>{k.value!==null&&(k.value.value=w.value!==void 0?w.value:"")})}function ge(){return f.hasOwnProperty("value")===!0?f.value:w.value!==void 0?w.value:""}i.onBeforeUnmount(()=>{ie()}),i.onMounted(()=>{t.autogrow===!0&&ce()}),Object.assign(Y,{innerValue:w,fieldClass:i.computed(()=>`q-${I.value===!0?"textarea":"input"}`+(t.autogrow===!0?" q-textarea--autogrow":"")),hasShadow:i.computed(()=>t.type!=="file"&&typeof t.shadowText=="string"&&t.shadowText.length!==0),inputRef:k,emitValue:se,hasValue:Q,floatingLabel:i.computed(()=>Q.value===!0&&(t.type!=="number"||isNaN(w.value)===!1)||Vr(t.displayValue)),getControl:()=>i.h(I.value===!0?"textarea":"input",{ref:k,class:["q-field__native q-placeholder",t.inputClass],style:t.inputStyle,...T.value,...P.value,...t.type!=="file"?{value:ge()}:D.value}),getShadowControl:()=>i.h("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(I.value===!0?"":" text-no-wrap")},[i.h("span",{class:"invisible"},ge()),i.h("span",t.shadowText)])});const q=Wo(Y);return Object.assign(u,{focus:V,select:S,getNativeElement:()=>k.value}),ci(u,"nativeEl",()=>k.value),q}}),yi=Ye({name:"QCard",props:{...nr,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(t,{slots:l}){const{proxy:{$q:o}}=i.getCurrentInstance(),u=rr(t,o),s=i.computed(()=>"q-card"+(u.value===!0?" q-card--dark q-dark":"")+(t.bordered===!0?" q-card--bordered":"")+(t.square===!0?" q-card--square no-border-radius":"")+(t.flat===!0?" q-card--flat no-shadow":""));return()=>i.h(t.tag,{class:s.value},pt(l.default))}}),th=i.defineComponent({__name:"WinInput",props:i.mergeModels({modelValue:{},rules:{},label:{},placeholder:{},mask:{},prefix:{},suffix:{},hint:{},maxlength:{},type:{default:"text"},transparent:{type:Boolean,default:!0},width:{default:"100%"},height:{default:"70px"},inputHeight:{},readonly:{type:Boolean},fillMask:{type:Boolean,default:!1},minWidth:{default:"200px"},inputStyle:{default:"resize: none"},labelStyle:{default:"padding-left: 5px"},hintOptions:{default:{color:"grey-7",position:"right"}},counter:{type:Boolean,default:!1},dense:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=i.useModel(t,"modelValue"),o=t,u=i.ref(!1),s=i.computed(()=>o.transparent?"glass-card":"win-card"),f=i.computed(()=>o.label===""?void 0:o.label),m=i.computed(()=>{let y="width: 100%; padding-left: 10px; padding-right: 10px;";return o.inputHeight&&(y+="height: "+o.inputHeight),y}),g=i.computed(()=>l.value||u.value?"17.5px":"15px"),C=i.ref(null);function A(){C.value.focus()}function v(){u.value=!0}function k(){u.value=!1}return(y,w)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(yi,{onClick:A,class:i.normalizeClass(`${s.value} row items-center ${l.value&&y.label||u.value&&y.label?"q-pt-md":""} `),style:i.normalizeStyle({minHeight:y.height,width:y.width,maxWidth:"calc(100vw - 32px)",minWidth:y.minWidth,margin:"auto"})},{default:i.withCtx(()=>[i.renderSlot(y.$slots,"fixed-label",{class:"self-start"}),i.createVNode(Su,{modelValue:l.value,"onUpdate:modelValue":w[0]||(w[0]=R=>l.value=R),ref_key:"inputRef",ref:C,"label-color":"black","input-class":`text-black ${f.value?"":"text-center ww-title"}`,"input-style":y.inputStyle,style:i.normalizeStyle(m.value),readonly:y.readonly,mask:y.mask,prefix:y.prefix,label:f.value,type:y.type,suffix:y.suffix,counter:y.counter,maxlength:y.maxlength,rules:y.rules,borderless:"",dense:"","unmasked-value":"","reverse-fill-mask":"",placeholder:y.placeholder,onFocus:v,onBlur:k},{label:i.withCtx(()=>[!y.label||y.label!=""?(i.openBlock(),i.createElementBlock("div",{key:0,style:i.normalizeStyle(`padding-bottom: 30px; transition: 0.5s ease; font-size: ${g.value};`+y.labelStyle)},i.toDisplayString(y.label)+" "+i.toDisplayString(y.required&&!y.readonly?"*":""),5)):i.createCommentVNode("",!0)]),append:i.withCtx(()=>[i.renderSlot(y.$slots,"append")]),_:3},8,["modelValue","input-class","input-style","style","readonly","mask","prefix","label","type","suffix","counter","maxlength","rules","placeholder"]),i.renderSlot(y.$slots,"bottom")]),_:3},8,["class","style"]),y.hint?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(`text-${y.hintOptions.position} text-${y.hintOptions.color} text-caption q-mt-xl q-pt-xl q-pl-sm`)},i.toDisplayString(y.hint),3)):i.createCommentVNode("",!0)],64))}}),nh={class:"ww-subtitle text-center q-mb-md text-grey-9",style:{"font-weight":"600"}},rh=i.defineComponent({__name:"ControlLabel",props:{label:{}},setup(t){return(l,o)=>(i.openBlock(),i.createElementBlock("div",nh,i.toDisplayString(l.label),1))}}),ih={style:{"max-width":"400px"},class:"text-center"},oh={style:{"font-size":"16px"}},lh={style:{"font-size":"16px"}},Ko=gn(i.defineComponent({__name:"InputControl",props:i.mergeModels({control:{},innerLabel:{type:Boolean,default:!1}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=t,o=i.ref(null),u=i.computed(()=>{var f;return(f=l.control.controlType)==null?void 0:f.split("_")[1]}),s=i.useModel(t,"modelValue");return i.onMounted(()=>{var f;(f=o.value)==null||f.focus()}),(f,m)=>(i.openBlock(),i.createElementBlock("div",ih,[!f.innerLabel&&f.control.label?(i.openBlock(),i.createBlock(rh,{key:0,label:f.control.label},null,8,["label"])):i.createCommentVNode("",!0),i.createVNode(th,{modelValue:s.value,"onUpdate:modelValue":m[0]||(m[0]=g=>s.value=g),width:"250px",mask:u.value==="number"?"###.###.###.###.###":void 0,label:f.innerLabel?f.control.label:void 0,inputStyle:{textAlign:(u.value==="number","center")},ref_key:"inputRef",ref:o},i.createSlots({_:2},[f.control.prefix?{name:"prepend",fn:i.withCtx(()=>[i.createElementVNode("span",oh,i.toDisplayString(f.control.prefix),1)]),key:"0"}:void 0,f.control.suffix?{name:"append",fn:i.withCtx(()=>[i.createElementVNode("span",lh,i.toDisplayString(f.control.suffix),1)]),key:"1"}:void 0]),1032,["modelValue","mask","label","inputStyle"])]))}}),[["__scopeId","data-v-8f5284d3"]]);function Go(t,l){const o=t.style;for(const u in l)o[u]=l[u]}function ah(t){if(t==null)return;if(typeof t=="string")try{return document.querySelector(t)||void 0}catch{return}const l=i.unref(t);if(l)return l.$el||l}function xu(t,l){if(t==null||t.contains(l)===!0)return!0;for(let o=t.nextElementSibling;o!==null;o=o.nextElementSibling)if(o.contains(l))return!0;return!1}function uh(t,l=250){let o=!1,u;return function(){return o===!1&&(o=!0,setTimeout(()=>{o=!1},l),u=t.apply(this,arguments)),u}}function Cu(t,l,o,u){o.modifiers.stop===!0&&Kt(t);const s=o.modifiers.color;let f=o.modifiers.center;f=f===!0||u===!0;const m=document.createElement("span"),g=document.createElement("span"),C=nu(t),{left:A,top:v,width:k,height:y}=l.getBoundingClientRect(),w=Math.sqrt(k*k+y*y),R=w/2,W=`${(k-w)/2}px`,O=f?W:`${C.left-A-R}px`,G=`${(y-w)/2}px`,U=f?G:`${C.top-v-R}px`;g.className="q-ripple__inner",Go(g,{height:`${w}px`,width:`${w}px`,transform:`translate3d(${O},${U},0) scale3d(.2,.2,1)`,opacity:0}),m.className=`q-ripple${s?" text-"+s:""}`,m.setAttribute("dir","ltr"),m.appendChild(g),l.appendChild(m);const D=()=>{m.remove(),clearTimeout(Q)};o.abort.push(D);let Q=setTimeout(()=>{g.classList.add("q-ripple__inner--enter"),g.style.transform=`translate3d(${W},${G},0) scale3d(1,1,1)`,g.style.opacity=.2,Q=setTimeout(()=>{g.classList.remove("q-ripple__inner--enter"),g.classList.add("q-ripple__inner--leave"),g.style.opacity=0,Q=setTimeout(()=>{m.remove(),o.abort.splice(o.abort.indexOf(D),1)},275)},250)},50)}function ku(t,{modifiers:l,value:o,arg:u}){const s=Object.assign({},t.cfg.ripple,l,o);t.modifiers={early:s.early===!0,stop:s.stop===!0,center:s.center===!0,color:s.color||u,keyCodes:[].concat(s.keyCodes||13)}}const Eu=Ua({name:"ripple",beforeMount(t,l){const o=l.instance.$.appContext.config.globalProperties.$q.config||{};if(o.ripple===!1)return;const u={cfg:o,enabled:l.value!==!1,modifiers:{},abort:[],start(s){u.enabled===!0&&s.qSkipRipple!==!0&&s.type===(u.modifiers.early===!0?"pointerdown":"click")&&Cu(s,t,u,s.qKeyEvent===!0)},keystart:uh(s=>{u.enabled===!0&&s.qSkipRipple!==!0&&Ln(s,u.modifiers.keyCodes)===!0&&s.type===`key${u.modifiers.early===!0?"down":"up"}`&&Cu(s,t,u,!0)},300)};ku(u,l),t.__qripple=u,No(u,"main",[[t,"pointerdown","start","passive"],[t,"click","start","passive"],[t,"keydown","keystart","passive"],[t,"keyup","keystart","passive"]])},updated(t,l){if(l.oldValue!==l.value){const o=t.__qripple;o!==void 0&&(o.enabled=l.value!==!1,o.enabled===!0&&Object(l.value)===l.value&&ku(o,l))}},beforeUnmount(t){const l=t.__qripple;l!==void 0&&(l.abort.forEach(o=>{o()}),ru(l,"main"),delete t._qripple)}}),Au={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},sh=Object.keys(Au),ch={align:{type:String,validator:t=>sh.includes(t)}};function fh(t){return i.computed(()=>{const l=t.align===void 0?t.vertical===!0?"stretch":"left":t.align;return`${t.vertical===!0?"items":"justify"}-${Au[l]}`})}function Tu(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}function Bu(t,l){return(t.aliasOf||t)===(l.aliasOf||l)}function dh(t,l){for(const o in l){const u=l[o],s=t[o];if(typeof u=="string"){if(u!==s)return!1}else if(Array.isArray(s)===!1||s.length!==u.length||u.some((f,m)=>f!==s[m]))return!1}return!0}function Ru(t,l){return Array.isArray(l)===!0?t.length===l.length&&t.every((o,u)=>o===l[u]):t.length===1&&t[0]===l}function hh(t,l){return Array.isArray(t)===!0?Ru(t,l):Array.isArray(l)===!0?Ru(l,t):t===l}function mh(t,l){if(Object.keys(t).length!==Object.keys(l).length)return!1;for(const o in t)if(hh(t[o],l[o])===!1)return!1;return!0}const Ou={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},gh={...Ou,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function qu({fallbackTag:t,useDisableForRouterLinkProps:l=!0}={}){const o=i.getCurrentInstance(),{props:u,proxy:s,emit:f}=o,m=ja(o),g=i.computed(()=>u.disable!==!0&&u.href!==void 0),C=l===!0?i.computed(()=>m===!0&&u.disable!==!0&&g.value!==!0&&u.to!==void 0&&u.to!==null&&u.to!==""):i.computed(()=>m===!0&&g.value!==!0&&u.to!==void 0&&u.to!==null&&u.to!==""),A=i.computed(()=>C.value===!0?U(u.to):null),v=i.computed(()=>A.value!==null),k=i.computed(()=>g.value===!0||v.value===!0),y=i.computed(()=>u.type==="a"||k.value===!0?"a":u.tag||t||"div"),w=i.computed(()=>g.value===!0?{href:u.href,target:u.target}:v.value===!0?{href:A.value.href,target:u.target}:{}),R=i.computed(()=>{if(v.value===!1)return-1;const{matched:j}=A.value,{length:Y}=j,I=j[Y-1];if(I===void 0)return-1;const le=s.$route.matched;if(le.length===0)return-1;const P=le.findIndex(Bu.bind(null,I));if(P!==-1)return P;const T=Tu(j[Y-2]);return Y>1&&Tu(I)===T&&le[le.length-1].path!==T?le.findIndex(Bu.bind(null,j[Y-2])):P}),W=i.computed(()=>v.value===!0&&R.value!==-1&&dh(s.$route.params,A.value.params)),O=i.computed(()=>W.value===!0&&R.value===s.$route.matched.length-1&&mh(s.$route.params,A.value.params)),G=i.computed(()=>v.value===!0?O.value===!0?` ${u.exactActiveClass} ${u.activeClass}`:u.exact===!0?"":W.value===!0?` ${u.activeClass}`:"":"");function U(j){try{return s.$router.resolve(j)}catch{}return null}function D(j,{returnRouterError:Y,to:I=u.to,replace:le=u.replace}={}){if(u.disable===!0)return j.preventDefault(),Promise.resolve(!1);if(j.metaKey||j.altKey||j.ctrlKey||j.shiftKey||j.button!==void 0&&j.button!==0||u.target==="_blank")return Promise.resolve(!1);j.preventDefault();const P=s.$router[le===!0?"replace":"push"](I);return Y===!0?P:P.then(()=>{}).catch(()=>{})}function Q(j){if(v.value===!0){const Y=I=>D(j,I);f("click",j,Y),j.defaultPrevented!==!0&&Y()}else f("click",j)}return{hasRouterLink:v,hasHrefLink:g,hasLink:k,linkTag:y,resolvedLink:A,linkIsActive:W,linkIsExactActive:O,linkClass:G,linkAttrs:w,getLink:U,navigateToRouterLink:D,navigateOnClick:Q}}const Mu={none:0,xs:4,sm:8,md:16,lg:24,xl:32},ph={xs:8,sm:10,md:14,lg:20,xl:24},vh=["button","submit","reset"],_h=/[^\s]\/[^\s]/,bh=["flat","outline","push","unelevated"];function yh(t,l){return t.flat===!0?"flat":t.outline===!0?"outline":t.push===!0?"push":t.unelevated===!0?"unelevated":l}const wh={...{...fi,...Ou,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...bh.reduce((t,l)=>(t[l]=Boolean)&&t,{}),square:Boolean,rounded:Boolean,glossy:Boolean,size:String,fab:Boolean,fabMini:Boolean,padding:String,color:String,textColor:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,tabindex:[Number,String],ripple:{type:[Boolean,Object],default:!0},align:{...ch.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},round:Boolean};function Sh(t){const l=di(t,ph),o=fh(t),{hasRouterLink:u,hasLink:s,linkTag:f,linkAttrs:m,navigateOnClick:g}=qu({fallbackTag:"button"}),C=i.computed(()=>{const O=t.fab===!1&&t.fabMini===!1?l.value:{};return t.padding!==void 0?Object.assign({},O,{padding:t.padding.split(/\s+/).map(G=>G in Mu?Mu[G]+"px":G).join(" "),minWidth:"0",minHeight:"0"}):O}),A=i.computed(()=>t.rounded===!0||t.fab===!0||t.fabMini===!0),v=i.computed(()=>t.disable!==!0&&t.loading!==!0),k=i.computed(()=>v.value===!0?t.tabindex||0:-1),y=i.computed(()=>yh(t,"standard")),w=i.computed(()=>{const O={tabindex:k.value};return s.value===!0?Object.assign(O,m.value):vh.includes(t.type)===!0&&(O.type=t.type),f.value==="a"?(t.disable===!0?O["aria-disabled"]="true":O.href===void 0&&(O.role="button"),u.value!==!0&&_h.test(t.type)===!0&&(O.type=t.type)):t.disable===!0&&(O.disabled="",O["aria-disabled"]="true"),t.loading===!0&&t.percentage!==void 0&&Object.assign(O,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":t.percentage}),O}),R=i.computed(()=>{let O;t.color!==void 0?t.flat===!0||t.outline===!0?O=`text-${t.textColor||t.color}`:O=`bg-${t.color} text-${t.textColor||"white"}`:t.textColor&&(O=`text-${t.textColor}`);const G=t.round===!0?"round":`rectangle${A.value===!0?" q-btn--rounded":t.square===!0?" q-btn--square":""}`;return`q-btn--${y.value} q-btn--${G}`+(O!==void 0?" "+O:"")+(v.value===!0?" q-btn--actionable q-focusable q-hoverable":t.disable===!0?" disabled":"")+(t.fab===!0?" q-btn--fab":t.fabMini===!0?" q-btn--fab-mini":"")+(t.noCaps===!0?" q-btn--no-uppercase":"")+(t.dense===!0?" q-btn--dense":"")+(t.stretch===!0?" no-border-radius self-stretch":"")+(t.glossy===!0?" glossy":"")+(t.square?" q-btn--square":"")}),W=i.computed(()=>o.value+(t.stack===!0?" column":" row")+(t.noWrap===!0?" no-wrap text-no-wrap":"")+(t.loading===!0?" q-btn__content--hidden":""));return{classes:R,style:C,innerClasses:W,attributes:w,hasLink:s,linkTag:f,navigateOnClick:g,isActionable:v}}const{passiveCapture:At}=st;let ir=null,or=null,lr=null;const ar=Ye({name:"QBtn",props:{...wh,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(t,{slots:l,emit:o}){const{proxy:u}=i.getCurrentInstance(),{classes:s,style:f,innerClasses:m,attributes:g,hasLink:C,linkTag:A,navigateOnClick:v,isActionable:k}=Sh(t),y=i.ref(null),w=i.ref(null);let R=null,W,O=null;const G=i.computed(()=>t.label!==void 0&&t.label!==null&&t.label!==""),U=i.computed(()=>t.disable===!0||t.ripple===!1?!1:{keyCodes:C.value===!0?[13,32]:[13],...t.ripple===!0?{}:t.ripple}),D=i.computed(()=>({center:t.round})),Q=i.computed(()=>{const F=Math.max(0,Math.min(100,t.percentage));return F>0?{transition:"transform 0.6s",transform:`translateX(${F-100}%)`}:{}}),j=i.computed(()=>{if(t.loading===!0)return{onMousedown:Z,onTouchstart:Z,onClick:Z,onKeydown:Z,onKeyup:Z};if(k.value===!0){const F={onClick:I,onKeydown:le,onMousedown:T};if(u.$q.platform.has.touch===!0){const ae=t.onTouchstart!==void 0?"":"Passive";F[`onTouchstart${ae}`]=P}return F}return{onClick:Ke}}),Y=i.computed(()=>({ref:y,class:"q-btn q-btn-item non-selectable no-outline "+s.value,style:f.value,...g.value,...j.value}));function I(F){if(y.value!==null){if(F!==void 0){if(F.defaultPrevented===!0)return;const ae=document.activeElement;if(t.type==="submit"&&ae!==document.body&&y.value.contains(ae)===!1&&ae.contains(y.value)===!1){y.value.focus();const se=()=>{document.removeEventListener("keydown",Ke,!0),document.removeEventListener("keyup",se,At),y.value!==null&&y.value.removeEventListener("blur",se,At)};document.addEventListener("keydown",Ke,!0),document.addEventListener("keyup",se,At),y.value.addEventListener("blur",se,At)}}v(F)}}function le(F){y.value!==null&&(o("keydown",F),Ln(F,[13,32])===!0&&or!==y.value&&(or!==null&&S(),F.defaultPrevented!==!0&&(y.value.focus(),or=y.value,y.value.classList.add("q-btn--active"),document.addEventListener("keyup",V,!0),y.value.addEventListener("blur",V,At)),Ke(F)))}function P(F){y.value!==null&&(o("touchstart",F),F.defaultPrevented!==!0&&(ir!==y.value&&(ir!==null&&S(),ir=y.value,R=F.target,R.addEventListener("touchcancel",V,At),R.addEventListener("touchend",V,At)),W=!0,O!==null&&clearTimeout(O),O=setTimeout(()=>{O=null,W=!1},200)))}function T(F){y.value!==null&&(F.qSkipRipple=W===!0,o("mousedown",F),F.defaultPrevented!==!0&&lr!==y.value&&(lr!==null&&S(),lr=y.value,y.value.classList.add("q-btn--active"),document.addEventListener("mouseup",V,At)))}function V(F){if(y.value!==null&&!(F!==void 0&&F.type==="blur"&&document.activeElement===y.value)){if(F!==void 0&&F.type==="keyup"){if(or===y.value&&Ln(F,[13,32])===!0){const ae=new MouseEvent("click",F);ae.qKeyEvent=!0,F.defaultPrevented===!0&&It(ae),F.cancelBubble===!0&&Kt(ae),y.value.dispatchEvent(ae),Ke(F),F.qKeyEvent=!0}o("keyup",F)}S()}}function S(F){const ae=w.value;F!==!0&&(ir===y.value||lr===y.value)&&ae!==null&&ae!==document.activeElement&&(ae.setAttribute("tabindex",-1),ae.focus()),ir===y.value&&(R!==null&&(R.removeEventListener("touchcancel",V,At),R.removeEventListener("touchend",V,At)),ir=R=null),lr===y.value&&(document.removeEventListener("mouseup",V,At),lr=null),or===y.value&&(document.removeEventListener("keyup",V,!0),y.value!==null&&y.value.removeEventListener("blur",V,At),or=null),y.value!==null&&y.value.classList.remove("q-btn--active")}function Z(F){Ke(F),F.qSkipRipple=!0}return i.onBeforeUnmount(()=>{S(!0)}),Object.assign(u,{click:F=>{k.value===!0&&I(F)}}),()=>{let F=[];t.icon!==void 0&&F.push(i.h(vt,{name:t.icon,left:t.stack!==!0&&G.value===!0,role:"img"})),G.value===!0&&F.push(i.h("span",{class:"block"},[t.label])),F=Mn(l.default,F),t.iconRight!==void 0&&t.round===!1&&F.push(i.h(vt,{name:t.iconRight,right:t.stack!==!0&&G.value===!0,role:"img"}));const ae=[i.h("span",{class:"q-focus-helper",ref:w})];return t.loading===!0&&t.percentage!==void 0&&ae.push(i.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(t.darkPercentage===!0?" q-btn__progress--dark":"")},[i.h("span",{class:"q-btn__progress-indicator fit block",style:Q.value})])),ae.push(i.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+m.value},F)),t.loading!==null&&ae.push(i.h(i.Transition,{name:"q-transition--fade"},()=>t.loading===!0?[i.h("span",{key:"loading",class:"absolute-full flex flex-center"},l.loading!==void 0?l.loading():[i.h(Vo)])]:null)),i.withDirectives(i.h(A.value,Y.value,ae),[[Eu,U.value,void 0,D.value]])}}}),Vu=t=>(i.pushScopeId("data-v-3bcb795a"),t=t(),i.popScopeId(),t),xh={class:"buttons-container"},Ch={class:"lt-md"},kh={class:"row justify-between q-my-md q-px-md"},Eh=Vu(()=>i.createElementVNode("span",{class:"text-black"},"Atrás",-1)),Ah={key:1},Th=Vu(()=>i.createElementVNode("span",{class:"text-black"},"Siguiente",-1)),Bh=gn(i.defineComponent({__name:"NavigationButtons",props:{currentStep:{},stepsCount:{},nextDisabled:{type:Boolean}},emits:["prev","next"],setup(t){const l=t,o=i.computed(()=>l.currentStep+1);return(u,s)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",xh,[o.value>1?(i.openBlock(),i.createBlock(ar,{key:0,style:{position:"absolute",left:"25px",cursor:"pointer"},size:"26px",color:"white","text-color":"white",class:"gt-sm",onClick:s[0]||(s[0]=f=>u.$emit("prev")),flat:""},{default:i.withCtx(()=>[i.createVNode(vt,{name:"arrow_back_ios",color:"info"})]),_:1})):i.createCommentVNode("",!0),o.value!==u.stepsCount?(i.openBlock(),i.createBlock(ar,{key:1,style:{position:"absolute",right:"25px",cursor:"pointer"},size:"26px",color:"white","text-color":"white",class:"gt-sm",onClick:s[1]||(s[1]=f=>u.$emit("next")),disable:u.nextDisabled,flat:""},{default:i.withCtx(()=>[i.createVNode(vt,{name:"arrow_forward_ios",color:"info"})]),_:1},8,["disable"])):i.createCommentVNode("",!0)]),i.createElementVNode("div",Ch,[i.createElementVNode("div",kh,[o.value>1&&o.value<u.stepsCount?(i.openBlock(),i.createBlock(ar,{key:0,color:"info",class:"q-px-md-xl q-py-sm q-mr-sm win-btn win-btn-primary",onClick:s[2]||(s[2]=f=>u.$emit("prev")),flat:"","no-caps":""},{default:i.withCtx(()=>[Eh]),_:1})):(i.openBlock(),i.createElementBlock("div",Ah)),o.value<u.stepsCount?(i.openBlock(),i.createBlock(ar,{key:2,color:"info",class:"q-px-xl q-py-sm q-ml-sm win-btn win-btn-primary",onClick:s[3]||(s[3]=f=>u.$emit("next")),disable:u.nextDisabled,flat:"","no-caps":""},{default:i.withCtx(()=>[Th]),_:1},8,["disable"])):i.createCommentVNode("",!0)])])],64))}}),[["__scopeId","data-v-3bcb795a"]]),Rh=Ye({name:"QField",inheritAttrs:!1,props:{..._i,tag:{type:String,default:"label"}},emits:zo,setup(){return Wo(Uo({tagProp:!0}))}}),Oh={xs:8,sm:10,md:14,lg:20,xl:24},qh=Ye({name:"QChip",props:{...nr,...fi,dense:Boolean,icon:String,iconRight:String,iconRemove:String,iconSelected:String,label:[String,Number],color:String,textColor:String,modelValue:{type:Boolean,default:!0},selected:{type:Boolean,default:null},square:Boolean,outline:Boolean,clickable:Boolean,removable:Boolean,removeAriaLabel:String,tabindex:[String,Number],disable:Boolean,ripple:{type:[Boolean,Object],default:!0}},emits:["update:modelValue","update:selected","remove","click"],setup(t,{slots:l,emit:o}){const{proxy:{$q:u}}=i.getCurrentInstance(),s=rr(t,u),f=di(t,Oh),m=i.computed(()=>t.selected===!0||t.icon!==void 0),g=i.computed(()=>t.selected===!0?t.iconSelected||u.iconSet.chip.selected:t.icon),C=i.computed(()=>t.iconRemove||u.iconSet.chip.remove),A=i.computed(()=>t.disable===!1&&(t.clickable===!0||t.selected!==null)),v=i.computed(()=>{const O=t.outline===!0&&t.color||t.textColor;return"q-chip row inline no-wrap items-center"+(t.outline===!1&&t.color!==void 0?` bg-${t.color}`:"")+(O?` text-${O} q-chip--colored`:"")+(t.disable===!0?" disabled":"")+(t.dense===!0?" q-chip--dense":"")+(t.outline===!0?" q-chip--outline":"")+(t.selected===!0?" q-chip--selected":"")+(A.value===!0?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(t.square===!0?" q-chip--square":"")+(s.value===!0?" q-chip--dark q-dark":"")}),k=i.computed(()=>{const O=t.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:t.tabindex||0},G={...O,role:"button","aria-hidden":"false","aria-label":t.removeAriaLabel||u.lang.label.remove};return{chip:O,remove:G}});function y(O){O.keyCode===13&&w(O)}function w(O){t.disable||(o("update:selected",!t.selected),o("click",O))}function R(O){(O.keyCode===void 0||O.keyCode===13)&&(Ke(O),t.disable===!1&&(o("update:modelValue",!1),o("remove")))}function W(){const O=[];A.value===!0&&O.push(i.h("div",{class:"q-focus-helper"})),m.value===!0&&O.push(i.h(vt,{class:"q-chip__icon q-chip__icon--left",name:g.value}));const G=t.label!==void 0?[i.h("div",{class:"ellipsis"},[t.label])]:void 0;return O.push(i.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},ld(l.default,G))),t.iconRight&&O.push(i.h(vt,{class:"q-chip__icon q-chip__icon--right",name:t.iconRight})),t.removable===!0&&O.push(i.h(vt,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:C.value,...k.value.remove,onClick:R,onKeyup:R})),O}return()=>{if(t.modelValue===!1)return;const O={class:v.value,style:f.value};return A.value===!0&&Object.assign(O,k.value.chip,{onClick:w,onKeyup:y}),Ga("div",O,W(),"ripple",t.ripple!==!1&&t.disable!==!0,()=>[[Eu,t.ripple]])}}}),Mh=Ye({name:"QItem",props:{...nr,...gh,tag:{type:String,default:"div"},active:{type:Boolean,default:null},clickable:Boolean,dense:Boolean,insetLevel:Number,tabindex:[String,Number],focused:Boolean,manualFocus:Boolean},emits:["click","keyup"],setup(t,{slots:l,emit:o}){const{proxy:{$q:u}}=i.getCurrentInstance(),s=rr(t,u),{hasLink:f,linkAttrs:m,linkClass:g,linkTag:C,navigateOnClick:A}=qu(),v=i.ref(null),k=i.ref(null),y=i.computed(()=>t.clickable===!0||f.value===!0||t.tag==="label"),w=i.computed(()=>t.disable!==!0&&y.value===!0),R=i.computed(()=>"q-item q-item-type row no-wrap"+(t.dense===!0?" q-item--dense":"")+(s.value===!0?" q-item--dark":"")+(f.value===!0&&t.active===null?g.value:t.active===!0?` q-item--active${t.activeClass!==void 0?` ${t.activeClass}`:""}`:"")+(t.disable===!0?" disabled":"")+(w.value===!0?" q-item--clickable q-link cursor-pointer "+(t.manualFocus===!0?"q-manual-focusable":"q-focusable q-hoverable")+(t.focused===!0?" q-manual-focusable--focused":""):"")),W=i.computed(()=>t.insetLevel===void 0?null:{["padding"+(u.lang.rtl===!0?"Right":"Left")]:16+t.insetLevel*56+"px"});function O(D){w.value===!0&&(k.value!==null&&(D.qKeyEvent!==!0&&document.activeElement===v.value?k.value.focus():document.activeElement===k.value&&v.value.focus()),A(D))}function G(D){if(w.value===!0&&Ln(D,[13,32])===!0){Ke(D),D.qKeyEvent=!0;const Q=new MouseEvent("click",D);Q.qKeyEvent=!0,v.value.dispatchEvent(Q)}o("keyup",D)}function U(){const D=od(l.default,[]);return w.value===!0&&D.unshift(i.h("div",{class:"q-focus-helper",tabindex:-1,ref:k})),D}return()=>{const D={ref:v,class:R.value,style:W.value,role:"listitem",onClick:O,onKeyup:G};return w.value===!0?(D.tabindex=t.tabindex||"0",Object.assign(D,m.value)):y.value===!0&&(D["aria-disabled"]="true"),i.h(C.value,D,U())}}}),Vh=Ye({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(t,{slots:l}){const o=i.computed(()=>`q-item__section column q-item__section--${t.avatar===!0||t.side===!0||t.thumbnail===!0?"side":"main"}`+(t.top===!0?" q-item__section--top justify-start":" justify-center")+(t.avatar===!0?" q-item__section--avatar":"")+(t.thumbnail===!0?" q-item__section--thumbnail":"")+(t.noWrap===!0?" q-item__section--nowrap":""));return()=>i.h("div",{class:o.value},pt(l.default))}}),Lh=Ye({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(t,{slots:l}){const o=i.computed(()=>parseInt(t.lines,10)),u=i.computed(()=>"q-item__label"+(t.overline===!0?" q-item__label--overline text-overline":"")+(t.caption===!0?" q-item__label--caption text-caption":"")+(t.header===!0?" q-item__label--header":"")+(o.value===1?" ellipsis":"")),s=i.computed(()=>t.lines!==void 0&&o.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":o.value}:null);return()=>i.h("div",{style:s.value,class:u.value},pt(l.default))}});function Ih(){if(window.getSelection!==void 0){const t=window.getSelection();t.empty!==void 0?t.empty():t.removeAllRanges!==void 0&&(t.removeAllRanges(),qo.is.mobile!==!0&&t.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}const Ph={...{target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},contextMenu:Boolean};function Nh({showing:t,avoidEmit:l,configureAnchorEl:o}){const{props:u,proxy:s,emit:f}=i.getCurrentInstance(),m=i.ref(null);let g=null;function C(w){return m.value===null?!1:w===void 0||w.touches===void 0||w.touches.length<=1}const A={};o===void 0&&(Object.assign(A,{hide(w){s.hide(w)},toggle(w){s.toggle(w),w.qAnchorHandled=!0},toggleKey(w){Ln(w,13)===!0&&A.toggle(w)},contextClick(w){s.hide(w),It(w),i.nextTick(()=>{s.show(w),w.qAnchorHandled=!0})},prevent:It,mobileTouch(w){if(A.mobileCleanup(w),C(w)!==!0)return;s.hide(w),m.value.classList.add("non-selectable");const R=w.target;No(A,"anchor",[[R,"touchmove","mobileCleanup","passive"],[R,"touchend","mobileCleanup","passive"],[R,"touchcancel","mobileCleanup","passive"],[m.value,"contextmenu","prevent","notPassive"]]),g=setTimeout(()=>{g=null,s.show(w),w.qAnchorHandled=!0},300)},mobileCleanup(w){m.value.classList.remove("non-selectable"),g!==null&&(clearTimeout(g),g=null),t.value===!0&&w!==void 0&&Ih()}}),o=function(w=u.contextMenu){if(u.noParentEvent===!0||m.value===null)return;let R;w===!0?s.$q.platform.is.mobile===!0?R=[[m.value,"touchstart","mobileTouch","passive"]]:R=[[m.value,"mousedown","hide","passive"],[m.value,"contextmenu","contextClick","notPassive"]]:R=[[m.value,"click","toggle","passive"],[m.value,"keyup","toggleKey","passive"]],No(A,"anchor",R)});function v(){ru(A,"anchor")}function k(w){for(m.value=w;m.value.classList.contains("q-anchor--skip");)m.value=m.value.parentNode;o()}function y(){if(u.target===!1||u.target===""||s.$el.parentNode===null)m.value=null;else if(u.target===!0)k(s.$el.parentNode);else{let w=u.target;if(typeof u.target=="string")try{w=document.querySelector(u.target)}catch{w=void 0}w!=null?(m.value=w.$el||w,o()):(m.value=null,console.error(`Anchor: target "${u.target}" not found`))}}return i.watch(()=>u.contextMenu,w=>{m.value!==null&&(v(),o(w))}),i.watch(()=>u.target,()=>{m.value!==null&&v(),y()}),i.watch(()=>u.noParentEvent,w=>{m.value!==null&&(w===!0?v():o())}),i.onMounted(()=>{y(),l!==!0&&u.modelValue===!0&&m.value===null&&f("update:modelValue",!1)}),i.onBeforeUnmount(()=>{g!==null&&clearTimeout(g),v()}),{anchorEl:m,canShow:C,anchorEvents:A}}function $h(t,l){const o=i.ref(null);let u;function s(g,C){const A=`${C!==void 0?"add":"remove"}EventListener`,v=C!==void 0?C:u;g!==window&&g[A]("scroll",v,st.passive),window[A]("scroll",v,st.passive),u=C}function f(){o.value!==null&&(s(o.value),o.value=null)}const m=i.watch(()=>t.noParentEvent,()=>{o.value!==null&&(f(),l())});return i.onBeforeUnmount(m),{localScrollTarget:o,unconfigureScrollTarget:f,changeScrollEvent:s}}const Lu={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},Iu=["beforeShow","show","beforeHide","hide"];function Pu({showing:t,canShow:l,hideOnRouteChange:o,handleShow:u,handleHide:s,processOnMount:f}){const m=i.getCurrentInstance(),{props:g,emit:C,proxy:A}=m;let v;function k(U){t.value===!0?R(U):y(U)}function y(U){if(g.disable===!0||U!==void 0&&U.qAnchorHandled===!0||l!==void 0&&l(U)!==!0)return;const D=g["onUpdate:modelValue"]!==void 0;D===!0&&(C("update:modelValue",!0),v=U,i.nextTick(()=>{v===U&&(v=void 0)})),(g.modelValue===null||D===!1)&&w(U)}function w(U){t.value!==!0&&(t.value=!0,C("beforeShow",U),u!==void 0?u(U):C("show",U))}function R(U){if(g.disable===!0)return;const D=g["onUpdate:modelValue"]!==void 0;D===!0&&(C("update:modelValue",!1),v=U,i.nextTick(()=>{v===U&&(v=void 0)})),(g.modelValue===null||D===!1)&&W(U)}function W(U){t.value!==!1&&(t.value=!1,C("beforeHide",U),s!==void 0?s(U):C("hide",U))}function O(U){g.disable===!0&&U===!0?g["onUpdate:modelValue"]!==void 0&&C("update:modelValue",!1):U===!0!==t.value&&(U===!0?w:W)(v)}i.watch(()=>g.modelValue,O),o!==void 0&&ja(m)===!0&&i.watch(()=>A.$route.fullPath,()=>{o.value===!0&&t.value===!0&&R()}),f===!0&&i.onMounted(()=>{O(g.modelValue)});const G={show:y,hide:R,toggle:k};return Object.assign(A,G),G}const Nu={};let Fh=1,Dh=document.body;function zh(t,l){const o=document.createElement("div");if(o.id=l!==void 0?`q-portal--${l}--${Fh++}`:t,Nu.globalNodes!==void 0){const u=Nu.globalNodes.class;u!==void 0&&(o.className=u)}return Dh.appendChild(o),o}function Uh(t){t.remove()}const Lr=[];function Wh(t,l){do{if(t.$options.name==="QMenu"){if(t.hide(l),t.$props.separateClosePopup===!0)return Lo(t)}else if(t.__qPortal===!0){const o=Lo(t);return o!==void 0&&o.$options.name==="QPopupProxy"?(t.hide(l),o):t}t=Lo(t)}while(t!=null)}const Hh=Ye({name:"QPortal",setup(t,{slots:l}){return()=>l.default()}});function Kh(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 $u(t,l,o,u){const s=i.ref(!1),f=i.ref(!1);let m=null;const g={},C=u==="dialog"&&Kh(t);function A(k){if(k===!0){vu(g),f.value=!0;return}f.value=!1,s.value===!1&&(C===!1&&m===null&&(m=zh(!1,u)),s.value=!0,Lr.push(t.proxy),Hd(g))}function v(k){if(f.value=!1,k!==!0)return;vu(g),s.value=!1;const y=Lr.indexOf(t.proxy);y!==-1&&Lr.splice(y,1),m!==null&&(Uh(m),m=null)}return i.onUnmounted(()=>{v(!0)}),t.proxy.__qPortal=!0,ci(t.proxy,"contentEl",()=>l.value),{showPortal:A,hidePortal:v,portalIsActive:s,portalIsAccessible:f,renderPortal:()=>C===!0?o():s.value===!0?[i.h(i.Teleport,{to:m},i.h(Hh,o))]:void 0}}const Fu={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function Du(t,l=()=>{},o=()=>{}){return{transitionProps:i.computed(()=>{const u=`q-transition--${t.transitionShow||l()}`,s=`q-transition--${t.transitionHide||o()}`;return{appear:!0,enterFromClass:`${u}-enter-from`,enterActiveClass:`${u}-enter-active`,enterToClass:`${u}-enter-to`,leaveFromClass:`${s}-leave-from`,leaveActiveClass:`${s}-leave-active`,leaveToClass:`${s}-leave-to`}}),transitionStyle:i.computed(()=>`--q-transition-duration: ${t.transitionDuration}ms`)}}function zu(){let t;const l=i.getCurrentInstance();function o(){t=void 0}return i.onDeactivated(o),i.onBeforeUnmount(o),{removeTick:o,registerTick(u){t=u,i.nextTick(()=>{t===u&&(qr(l)===!1&&t(),t=void 0)})}}}const Gh=[Element,String],jh=[null,document,document.body,document.scrollingElement,document.documentElement];function Qh(t,l){let o=ah(l);if(o===void 0){if(t==null)return window;o=t.closest(".scroll,.scroll-y,.overflow-auto")}return jh.includes(o)?window:o}function Yh(t){return t===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:t.scrollTop}function Zh(t){return t===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:t.scrollLeft}let wi;function Xh(){if(wi!==void 0)return wi;const t=document.createElement("p"),l=document.createElement("div");Go(t,{width:"100%",height:"200px"}),Go(l,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),l.appendChild(t),document.body.appendChild(l);const o=t.offsetWidth;l.style.overflow="scroll";let u=t.offsetWidth;return o===u&&(u=l.clientWidth),l.remove(),wi=o-u,wi}function Jh(t,l=!0){return!t||t.nodeType!==Node.ELEMENT_NODE?!1:l?t.scrollHeight>t.clientHeight&&(t.classList.contains("scroll")||t.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(t)["overflow-y"])):t.scrollWidth>t.clientWidth&&(t.classList.contains("scroll")||t.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(t)["overflow-x"]))}const In=[];let ur;function em(t){ur=t.keyCode===27}function tm(){ur===!0&&(ur=!1)}function nm(t){ur===!0&&(ur=!1,Ln(t,27)===!0&&In[In.length-1](t))}function Uu(t){window[t]("keydown",em),window[t]("blur",tm),window[t]("keyup",nm),ur=!1}function Wu(t){gt.is.desktop===!0&&(In.push(t),In.length===1&&Uu("addEventListener"))}function Si(t){const l=In.indexOf(t);l!==-1&&(In.splice(l,1),In.length===0&&Uu("removeEventListener"))}const Pn=[];function Hu(t){Pn[Pn.length-1](t)}function Ku(t){gt.is.desktop===!0&&(Pn.push(t),Pn.length===1&&document.body.addEventListener("focusin",Hu))}function jo(t){const l=Pn.indexOf(t);l!==-1&&(Pn.splice(l,1),Pn.length===0&&document.body.removeEventListener("focusin",Hu))}const{notPassiveCapture:xi}=st,Nn=[];function Ci(t){const l=t.target;if(l===void 0||l.nodeType===8||l.classList.contains("no-pointer-events")===!0)return;let o=Lr.length-1;for(;o>=0;){const u=Lr[o].$;if(u.type.name==="QTooltip"){o--;continue}if(u.type.name!=="QDialog")break;if(u.props.seamless!==!0)return;o--}for(let u=Nn.length-1;u>=0;u--){const s=Nn[u];if((s.anchorEl.value===null||s.anchorEl.value.contains(l)===!1)&&(l===document.body||s.innerRef.value!==null&&s.innerRef.value.contains(l)===!1))t.qClickOutside=!0,s.onClickOutside(t);else return}}function rm(t){Nn.push(t),Nn.length===1&&(document.addEventListener("mousedown",Ci,xi),document.addEventListener("touchstart",Ci,xi))}function Gu(t){const l=Nn.findIndex(o=>o===t);l!==-1&&(Nn.splice(l,1),Nn.length===0&&(document.removeEventListener("mousedown",Ci,xi),document.removeEventListener("touchstart",Ci,xi)))}let ju,Qu;function Yu(t){const l=t.split(" ");return l.length!==2?!1:["top","center","bottom"].includes(l[0])!==!0?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):["left","middle","right","start","end"].includes(l[1])!==!0?(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1):!0}function im(t){return t?!(t.length!==2||typeof t[0]!="number"||typeof t[1]!="number"):!0}const Qo={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(t=>{Qo[`${t}#ltr`]=t,Qo[`${t}#rtl`]=t});function Zu(t,l){const o=t.split(" ");return{vertical:o[0],horizontal:Qo[`${o[1]}#${l===!0?"rtl":"ltr"}`]}}function om(t,l){let{top:o,left:u,right:s,bottom:f,width:m,height:g}=t.getBoundingClientRect();return l!==void 0&&(o-=l[1],u-=l[0],f+=l[1],s+=l[0],m+=l[0],g+=l[1]),{top:o,bottom:f,height:g,left:u,right:s,width:m,middle:u+(s-u)/2,center:o+(f-o)/2}}function lm(t,l,o){let{top:u,left:s}=t.getBoundingClientRect();return u+=l.top,s+=l.left,o!==void 0&&(u+=o[1],s+=o[0]),{top:u,bottom:u+1,height:1,left:s,right:s+1,width:1,middle:s,center:u}}function am(t,l){return{top:0,center:l/2,bottom:l,left:0,middle:t/2,right:t}}function Xu(t,l,o,u){return{top:t[o.vertical]-l[u.vertical],left:t[o.horizontal]-l[u.horizontal]}}function Ju(t,l=0){if(t.targetEl===null||t.anchorEl===null||l>5)return;if(t.targetEl.offsetHeight===0||t.targetEl.offsetWidth===0){setTimeout(()=>{Ju(t,l+1)},10);return}const{targetEl:o,offset:u,anchorEl:s,anchorOrigin:f,selfOrigin:m,absoluteOffset:g,fit:C,cover:A,maxHeight:v,maxWidth:k}=t;if(gt.is.ios===!0&&window.visualViewport!==void 0){const Y=document.body.style,{offsetLeft:I,offsetTop:le}=window.visualViewport;I!==ju&&(Y.setProperty("--q-pe-left",I+"px"),ju=I),le!==Qu&&(Y.setProperty("--q-pe-top",le+"px"),Qu=le)}const{scrollLeft:y,scrollTop:w}=o,R=g===void 0?om(s,A===!0?[0,0]:u):lm(s,g,u);Object.assign(o.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:k||"100vw",maxHeight:v||"100vh",visibility:"visible"});const{offsetWidth:W,offsetHeight:O}=o,{elWidth:G,elHeight:U}=C===!0||A===!0?{elWidth:Math.max(R.width,W),elHeight:A===!0?Math.max(R.height,O):O}:{elWidth:W,elHeight:O};let D={maxWidth:k,maxHeight:v};(C===!0||A===!0)&&(D.minWidth=R.width+"px",A===!0&&(D.minHeight=R.height+"px")),Object.assign(o.style,D);const Q=am(G,U);let j=Xu(R,Q,f,m);if(g===void 0||u===void 0)Yo(j,R,Q,f,m);else{const{top:Y,left:I}=j;Yo(j,R,Q,f,m);let le=!1;if(j.top!==Y){le=!0;const P=2*u[1];R.center=R.top-=P,R.bottom-=P+2}if(j.left!==I){le=!0;const P=2*u[0];R.middle=R.left-=P,R.right-=P+2}le===!0&&(j=Xu(R,Q,f,m),Yo(j,R,Q,f,m))}D={top:j.top+"px",left:j.left+"px"},j.maxHeight!==void 0&&(D.maxHeight=j.maxHeight+"px",R.height>j.maxHeight&&(D.minHeight=D.maxHeight)),j.maxWidth!==void 0&&(D.maxWidth=j.maxWidth+"px",R.width>j.maxWidth&&(D.minWidth=D.maxWidth)),Object.assign(o.style,D),o.scrollTop!==w&&(o.scrollTop=w),o.scrollLeft!==y&&(o.scrollLeft=y)}function Yo(t,l,o,u,s){const f=o.bottom,m=o.right,g=Xh(),C=window.innerHeight-g,A=document.body.clientWidth;if(t.top<0||t.top+f>C)if(s.vertical==="center")t.top=l[u.vertical]>C/2?Math.max(0,C-f):0,t.maxHeight=Math.min(f,C);else if(l[u.vertical]>C/2){const v=Math.min(C,u.vertical==="center"?l.center:u.vertical===s.vertical?l.bottom:l.top);t.maxHeight=Math.min(f,v),t.top=Math.max(0,v-f)}else t.top=Math.max(0,u.vertical==="center"?l.center:u.vertical===s.vertical?l.top:l.bottom),t.maxHeight=Math.min(f,C-t.top);if(t.left<0||t.left+m>A)if(t.maxWidth=Math.min(m,A),s.horizontal==="middle")t.left=l[u.horizontal]>A/2?Math.max(0,A-m):0;else if(l[u.horizontal]>A/2){const v=Math.min(A,u.horizontal==="middle"?l.middle:u.horizontal===s.horizontal?l.right:l.left);t.maxWidth=Math.min(m,v),t.left=Math.max(0,v-t.maxWidth)}else t.left=Math.max(0,u.horizontal==="middle"?l.middle:u.horizontal===s.horizontal?l.left:l.right),t.maxWidth=Math.min(m,A-t.left)}const um=Ye({name:"QMenu",inheritAttrs:!1,props:{...Ph,...Lu,...nr,...Fu,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:Yu},self:{type:String,validator:Yu},offset:{type:Array,validator:im},scrollTarget:Gh,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...Iu,"click","escapeKey"],setup(t,{slots:l,emit:o,attrs:u}){let s=null,f,m,g;const C=i.getCurrentInstance(),{proxy:A}=C,{$q:v}=A,k=i.ref(null),y=i.ref(!1),w=i.computed(()=>t.persistent!==!0&&t.noRouteDismiss!==!0),R=rr(t,v),{registerTick:W,removeTick:O}=zu(),{registerTimeout:G}=hi(),{transitionProps:U,transitionStyle:D}=Du(t),{localScrollTarget:Q,changeScrollEvent:j,unconfigureScrollTarget:Y}=$h(t,oe),{anchorEl:I,canShow:le}=Nh({showing:y}),{hide:P}=Pu({showing:y,canShow:le,handleShow:ge,handleHide:q,hideOnRouteChange:w,processOnMount:!0}),{showPortal:T,hidePortal:V,renderPortal:S}=$u(C,k,Ee,"menu"),Z={anchorEl:I,innerRef:k,onClickOutside(X){if(t.persistent!==!0&&y.value===!0)return P(X),(X.type==="touchstart"||X.target.classList.contains("q-dialog__backdrop"))&&Ke(X),!0}},F=i.computed(()=>Zu(t.anchor||(t.cover===!0?"center middle":"bottom start"),v.lang.rtl)),ae=i.computed(()=>t.cover===!0?F.value:Zu(t.self||"top start",v.lang.rtl)),se=i.computed(()=>(t.square===!0?" q-menu--square":"")+(R.value===!0?" q-menu--dark q-dark":"")),ce=i.computed(()=>t.autoClose===!0?{onClick:ve}:{}),H=i.computed(()=>y.value===!0&&t.persistent!==!0);i.watch(H,X=>{X===!0?(Wu(K),rm(Z)):(Si(K),Gu(Z))});function ie(){vi(()=>{let X=k.value;X&&X.contains(document.activeElement)!==!0&&(X=X.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||X.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||X.querySelector("[autofocus], [data-autofocus]")||X,X.focus({preventScroll:!0}))})}function ge(X){if(s=t.noRefocus===!1?document.activeElement:null,Ku(_e),T(),oe(),f=void 0,X!==void 0&&(t.touchPosition||t.contextMenu)){const Ne=nu(X);if(Ne.left!==void 0){const{top:ot,left:Nt}=I.value.getBoundingClientRect();f={left:Ne.left-Nt,top:Ne.top-ot}}}m===void 0&&(m=i.watch(()=>v.screen.width+"|"+v.screen.height+"|"+t.self+"|"+t.anchor+"|"+v.lang.rtl,ne)),t.noFocus!==!0&&document.activeElement.blur(),W(()=>{ne(),t.noFocus!==!0&&ie()}),G(()=>{v.platform.is.ios===!0&&(g=t.autoClose,k.value.click()),ne(),T(!0),o("show",X)},t.transitionDuration)}function q(X){O(),V(),B(!0),s!==null&&(X===void 0||X.qClickOutside!==!0)&&(((X&&X.type.indexOf("key")===0?s.closest('[tabindex]:not([tabindex^="-"])'):void 0)||s).focus(),s=null),G(()=>{V(!0),o("hide",X)},t.transitionDuration)}function B(X){f=void 0,m!==void 0&&(m(),m=void 0),(X===!0||y.value===!0)&&(jo(_e),Y(),Gu(Z),Si(K)),X!==!0&&(s=null)}function oe(){(I.value!==null||t.scrollTarget!==void 0)&&(Q.value=Qh(I.value,t.scrollTarget),j(Q.value,ne))}function ve(X){g!==!0?(Wh(A,X),o("click",X)):g=!1}function _e(X){H.value===!0&&t.noFocus!==!0&&xu(k.value,X.target)!==!0&&ie()}function K(X){o("escapeKey"),P(X)}function ne(){Ju({targetEl:k.value,offset:t.offset,anchorEl:I.value,anchorOrigin:F.value,selfOrigin:ae.value,absoluteOffset:f,fit:t.fit,cover:t.cover,maxHeight:t.maxHeight,maxWidth:t.maxWidth})}function Ee(){return i.h(i.Transition,U.value,()=>y.value===!0?i.h("div",{role:"menu",...u,ref:k,tabindex:-1,class:["q-menu q-position-engine scroll"+se.value,u.class],style:[u.style,D.value],...ce.value},pt(l.default)):null)}return i.onBeforeUnmount(B),Object.assign(A,{focus:ie,updatePosition:ne}),S}});function sm(t,l,o){function u(){}return i.onBeforeUnmount(()=>{t.value===!0&&void 0}),{removeFromHistory:u,addToHistory(){}}}let Ir=0,Zo,Xo,Pr,Jo=!1,es,ts,ns,$n=null;function cm(t){fm(t)&&Ke(t)}function fm(t){if(t.target===document.body||t.target.classList.contains("q-layout__backdrop"))return!0;const l=Od(t),o=t.shiftKey&&!t.deltaX,u=!o&&Math.abs(t.deltaX)<=Math.abs(t.deltaY),s=o||u?t.deltaY:t.deltaX;for(let f=0;f<l.length;f++){const m=l[f];if(Jh(m,u))return u?s<0&&m.scrollTop===0?!0:s>0&&m.scrollTop+m.clientHeight===m.scrollHeight:s<0&&m.scrollLeft===0?!0:s>0&&m.scrollLeft+m.clientWidth===m.scrollWidth}return!0}function rs(t){t.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function ki(t){Jo!==!0&&(Jo=!0,requestAnimationFrame(()=>{Jo=!1;const{height:l}=t.target,{clientHeight:o,scrollTop:u}=document.scrollingElement;(Pr===void 0||l!==window.innerHeight)&&(Pr=o-l,document.scrollingElement.scrollTop=u),u>Pr&&(document.scrollingElement.scrollTop-=Math.ceil((u-Pr)/8))}))}function is(t){const l=document.body,o=window.visualViewport!==void 0;if(t==="add"){const{overflowY:u,overflowX:s}=window.getComputedStyle(l);Zo=Zh(window),Xo=Yh(window),es=l.style.left,ts=l.style.top,ns=window.location.href,l.style.left=`-${Zo}px`,l.style.top=`-${Xo}px`,s!=="hidden"&&(s==="scroll"||l.scrollWidth>window.innerWidth)&&l.classList.add("q-body--force-scrollbar-x"),u!=="hidden"&&(u==="scroll"||l.scrollHeight>window.innerHeight)&&l.classList.add("q-body--force-scrollbar-y"),l.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,gt.is.ios===!0&&(o===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",ki,st.passiveCapture),window.visualViewport.addEventListener("scroll",ki,st.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",rs,st.passiveCapture))}gt.is.desktop===!0&>.is.mac===!0&&window[`${t}EventListener`]("wheel",cm,st.notPassive),t==="remove"&&(gt.is.ios===!0&&(o===!0?(window.visualViewport.removeEventListener("resize",ki,st.passiveCapture),window.visualViewport.removeEventListener("scroll",ki,st.passiveCapture)):window.removeEventListener("scroll",rs,st.passiveCapture)),l.classList.remove("q-body--prevent-scroll"),l.classList.remove("q-body--force-scrollbar-x"),l.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,l.style.left=es,l.style.top=ts,window.location.href===ns&&window.scrollTo(Zo,Xo),Pr=void 0)}function dm(t){let l="add";if(t===!0){if(Ir++,$n!==null){clearTimeout($n),$n=null;return}if(Ir>1)return}else{if(Ir===0||(Ir--,Ir>0))return;if(l="remove",gt.is.ios===!0&>.is.nativeMobile===!0){$n!==null&&clearTimeout($n),$n=setTimeout(()=>{is(l),$n=null},100);return}}is(l)}function hm(){let t;return{preventBodyScroll(l){l!==t&&(t!==void 0||l===!0)&&(t=l,dm(l))}}}let Ei=0;const mm={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"},os={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},gm=Ye({name:"QDialog",inheritAttrs:!1,props:{...Lu,...Fu,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:[...Iu,"shake","click","escapeKey"],setup(t,{slots:l,emit:o,attrs:u}){const s=i.getCurrentInstance(),f=i.ref(null),m=i.ref(!1),g=i.ref(!1);let C=null,A=null,v,k;const y=i.computed(()=>t.persistent!==!0&&t.noRouteDismiss!==!0&&t.seamless!==!0),{preventBodyScroll:w}=hm(),{registerTimeout:R}=hi(),{registerTick:W,removeTick:O}=zu(),{transitionProps:G,transitionStyle:U}=Du(t,()=>os[t.position][0],()=>os[t.position][1]),D=i.computed(()=>U.value+(t.backdropFilter!==void 0?`;backdrop-filter:${t.backdropFilter};-webkit-backdrop-filter:${t.backdropFilter}`:"")),{showPortal:Q,hidePortal:j,portalIsAccessible:Y,renderPortal:I}=$u(s,f,_e,"dialog"),{hide:le}=Pu({showing:m,hideOnRouteChange:y,handleShow:ae,handleHide:se,processOnMount:!0}),{addToHistory:P,removeFromHistory:T}=sm(m),V=i.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${t.maximized===!0?"maximized":"minimized"} q-dialog__inner--${t.position} ${mm[t.position]}`+(g.value===!0?" q-dialog__inner--animating":"")+(t.fullWidth===!0?" q-dialog__inner--fullwidth":"")+(t.fullHeight===!0?" q-dialog__inner--fullheight":"")+(t.square===!0?" q-dialog__inner--square":"")),S=i.computed(()=>m.value===!0&&t.seamless!==!0),Z=i.computed(()=>t.autoClose===!0?{onClick:B}:{}),F=i.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${S.value===!0?"modal":"seamless"}`,u.class]);i.watch(()=>t.maximized,K=>{m.value===!0&&q(K)}),i.watch(S,K=>{w(K),K===!0?(Ku(ve),Wu(ie)):(jo(ve),Si(ie))});function ae(K){P(),A=t.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,q(t.maximized),Q(),g.value=!0,t.noFocus!==!0?(document.activeElement!==null&&document.activeElement.blur(),W(ce)):O(),R(()=>{if(s.proxy.$q.platform.is.ios===!0){if(t.seamless!==!0&&document.activeElement){const{top:ne,bottom:Ee}=document.activeElement.getBoundingClientRect(),{innerHeight:X}=window,Ne=window.visualViewport!==void 0?window.visualViewport.height:X;ne>0&&Ee>Ne/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-Ne,Ee>=X?1/0:Math.ceil(document.scrollingElement.scrollTop+Ee-Ne/2))),document.activeElement.scrollIntoView()}k=!0,f.value.click(),k=!1}Q(!0),g.value=!1,o("show",K)},t.transitionDuration)}function se(K){O(),T(),ge(!0),g.value=!0,j(),A!==null&&(((K&&K.type.indexOf("key")===0?A.closest('[tabindex]:not([tabindex^="-"])'):void 0)||A).focus(),A=null),R(()=>{j(!0),g.value=!1,o("hide",K)},t.transitionDuration)}function ce(K){vi(()=>{let ne=f.value;if(ne!==null){if(K!==void 0){const Ee=ne.querySelector(K);if(Ee!==null){Ee.focus({preventScroll:!0});return}}ne.contains(document.activeElement)!==!0&&(ne=ne.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||ne.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||ne.querySelector("[autofocus], [data-autofocus]")||ne,ne.focus({preventScroll:!0}))}})}function H(K){K&&typeof K.focus=="function"?K.focus({preventScroll:!0}):ce(),o("shake");const ne=f.value;ne!==null&&(ne.classList.remove("q-animate--scale"),ne.classList.add("q-animate--scale"),C!==null&&clearTimeout(C),C=setTimeout(()=>{C=null,f.value!==null&&(ne.classList.remove("q-animate--scale"),ce())},170))}function ie(){t.seamless!==!0&&(t.persistent===!0||t.noEscDismiss===!0?t.maximized!==!0&&t.noShake!==!0&&H():(o("escapeKey"),le()))}function ge(K){C!==null&&(clearTimeout(C),C=null),(K===!0||m.value===!0)&&(q(!1),t.seamless!==!0&&(w(!1),jo(ve),Si(ie))),K!==!0&&(A=null)}function q(K){K===!0?v!==!0&&(Ei<1&&document.body.classList.add("q-body--dialog"),Ei++,v=!0):v===!0&&(Ei<2&&document.body.classList.remove("q-body--dialog"),Ei--,v=!1)}function B(K){k!==!0&&(le(K),o("click",K))}function oe(K){t.persistent!==!0&&t.noBackdropDismiss!==!0?le(K):t.noShake!==!0&&H()}function ve(K){t.allowFocusOutside!==!0&&Y.value===!0&&xu(f.value,K.target)!==!0&&ce('[tabindex]:not([tabindex="-1"])')}Object.assign(s.proxy,{focus:ce,shake:H,__updateRefocusTarget(K){A=K||null}}),i.onBeforeUnmount(ge);function _e(){return i.h("div",{role:"dialog","aria-modal":S.value===!0?"true":"false",...u,class:F.value},[i.h(i.Transition,{name:"q-transition--fade",appear:!0},()=>S.value===!0?i.h("div",{class:"q-dialog__backdrop fixed-full",style:D.value,"aria-hidden":"true",tabindex:-1,onClick:oe}):null),i.h(i.Transition,G.value,()=>m.value===!0?i.h("div",{ref:f,class:V.value,style:U.value,tabindex:-1,...Z.value},pt(l.default)):null)])}return I}});let Ai=!1;{const t=document.createElement("div");t.setAttribute("dir","rtl"),Object.assign(t.style,{width:"1px",height:"1px",overflow:"auto"});const l=document.createElement("div");Object.assign(l.style,{width:"1000px",height:"1px"}),document.body.appendChild(t),t.appendChild(l),t.scrollLeft=-1e3,Ai=t.scrollLeft>=0,t.remove()}const Pt=1e3,pm=["start","center","end","start-force","center-force","end-force"],ls=Array.prototype.filter,vm=window.getComputedStyle(document.body).overflowAnchor===void 0?Rd:function(t,l){t!==null&&(t._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(t._qOverflowAnimationFrame),t._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(t===null)return;t._qOverflowAnimationFrame=void 0;const o=t.children||[];ls.call(o,s=>s.dataset&&s.dataset.qVsAnchor!==void 0).forEach(s=>{delete s.dataset.qVsAnchor});const u=o[l];u&&u.dataset&&(u.dataset.qVsAnchor="")}))};function sr(t,l){return t+l}function el(t,l,o,u,s,f,m,g){const C=t===window?document.scrollingElement||document.documentElement:t,A=s===!0?"offsetWidth":"offsetHeight",v={scrollStart:0,scrollViewSize:-m-g,scrollMaxSize:0,offsetStart:-m,offsetEnd:-g};if(s===!0?(t===window?(v.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,v.scrollViewSize+=document.documentElement.clientWidth):(v.scrollStart=C.scrollLeft,v.scrollViewSize+=C.clientWidth),v.scrollMaxSize=C.scrollWidth,f===!0&&(v.scrollStart=(Ai===!0?v.scrollMaxSize-v.scrollViewSize:0)-v.scrollStart)):(t===window?(v.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,v.scrollViewSize+=document.documentElement.clientHeight):(v.scrollStart=C.scrollTop,v.scrollViewSize+=C.clientHeight),v.scrollMaxSize=C.scrollHeight),o!==null)for(let k=o.previousElementSibling;k!==null;k=k.previousElementSibling)k.classList.contains("q-virtual-scroll--skip")===!1&&(v.offsetStart+=k[A]);if(u!==null)for(let k=u.nextElementSibling;k!==null;k=k.nextElementSibling)k.classList.contains("q-virtual-scroll--skip")===!1&&(v.offsetEnd+=k[A]);if(l!==t){const k=C.getBoundingClientRect(),y=l.getBoundingClientRect();s===!0?(v.offsetStart+=y.left-k.left,v.offsetEnd-=y.width):(v.offsetStart+=y.top-k.top,v.offsetEnd-=y.height),t!==window&&(v.offsetStart+=v.scrollStart),v.offsetEnd+=v.scrollMaxSize-v.offsetStart}return v}function as(t,l,o,u){l==="end"&&(l=(t===window?document.body:t)[o===!0?"scrollWidth":"scrollHeight"]),t===window?o===!0?(u===!0&&(l=(Ai===!0?document.body.scrollWidth-document.documentElement.clientWidth:0)-l),window.scrollTo(l,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,l):o===!0?(u===!0&&(l=(Ai===!0?t.scrollWidth-t.offsetWidth:0)-l),t.scrollLeft=l):t.scrollTop=l}function Nr(t,l,o,u){if(o>=u)return 0;const s=l.length,f=Math.floor(o/Pt),m=Math.floor((u-1)/Pt)+1;let g=t.slice(f,m).reduce(sr,0);return o%Pt!==0&&(g-=l.slice(f*Pt,o).reduce(sr,0)),u%Pt!==0&&u!==s&&(g-=l.slice(u,m*Pt).reduce(sr,0)),g}const us={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 _m({virtualScrollLength:t,getVirtualScrollTarget:l,getVirtualScrollEl:o,virtualScrollItemSizeComputed:u}){const s=i.getCurrentInstance(),{props:f,emit:m,proxy:g}=s,{$q:C}=g;let A,v,k,y=[],w;const R=i.ref(0),W=i.ref(0),O=i.ref({}),G=i.ref(null),U=i.ref(null),D=i.ref(null),Q=i.ref({from:0,to:0}),j=i.computed(()=>f.tableColspan!==void 0?f.tableColspan:100);u===void 0&&(u=i.computed(()=>f.virtualScrollItemSize));const Y=i.computed(()=>u.value+";"+f.virtualScrollHorizontal),I=i.computed(()=>Y.value+";"+f.virtualScrollSliceRatioBefore+";"+f.virtualScrollSliceRatioAfter);i.watch(I,()=>{se()}),i.watch(Y,le);function le(){ae(v,!0)}function P(q){ae(q===void 0?v:q)}function T(q,B){const oe=l();if(oe==null||oe.nodeType===8)return;const ve=el(oe,o(),G.value,U.value,f.virtualScrollHorizontal,C.lang.rtl,f.virtualScrollStickySizeStart,f.virtualScrollStickySizeEnd);k!==ve.scrollViewSize&&se(ve.scrollViewSize),S(oe,ve,Math.min(t.value-1,Math.max(0,parseInt(q,10)||0)),0,pm.indexOf(B)!==-1?B:v!==-1&&q>v?"end":"start")}function V(){const q=l();if(q==null||q.nodeType===8)return;const B=el(q,o(),G.value,U.value,f.virtualScrollHorizontal,C.lang.rtl,f.virtualScrollStickySizeStart,f.virtualScrollStickySizeEnd),oe=t.value-1,ve=B.scrollMaxSize-B.offsetStart-B.offsetEnd-W.value;if(A===B.scrollStart)return;if(B.scrollMaxSize<=0){S(q,B,0,0);return}k!==B.scrollViewSize&&se(B.scrollViewSize),Z(Q.value.from);const _e=Math.floor(B.scrollMaxSize-Math.max(B.scrollViewSize,B.offsetEnd)-Math.min(w[oe],B.scrollViewSize/2));if(_e>0&&Math.ceil(B.scrollStart)>=_e){S(q,B,oe,B.scrollMaxSize-B.offsetEnd-y.reduce(sr,0));return}let K=0,ne=B.scrollStart-B.offsetStart,Ee=ne;if(ne<=ve&&ne+B.scrollViewSize>=R.value)ne-=R.value,K=Q.value.from,Ee=ne;else for(let X=0;ne>=y[X]&&K<oe;X++)ne-=y[X],K+=Pt;for(;ne>0&&K<oe;)ne-=w[K],ne>-B.scrollViewSize?(K++,Ee=ne):Ee=w[K]+ne;S(q,B,K,Ee)}function S(q,B,oe,ve,_e){const K=typeof _e=="string"&&_e.indexOf("-force")!==-1,ne=K===!0?_e.replace("-force",""):_e,Ee=ne!==void 0?ne:"start";let X=Math.max(0,oe-O.value[Ee]),Ne=X+O.value.total;Ne>t.value&&(Ne=t.value,X=Math.max(0,Ne-O.value.total)),A=B.scrollStart;const ot=X!==Q.value.from||Ne!==Q.value.to;if(ot===!1&&ne===void 0){H(oe);return}const{activeElement:Nt}=document,_t=D.value;ot===!0&&_t!==null&&_t!==Nt&&_t.contains(Nt)===!0&&(_t.addEventListener("focusout",F),setTimeout(()=>{_t!==null&&_t.removeEventListener("focusout",F)})),vm(_t,oe-X);const nt=ne!==void 0?w.slice(X,oe).reduce(sr,0):0;if(ot===!0){const bt=Ne>=Q.value.from&&X<=Q.value.to?Q.value.to:Ne;Q.value={from:X,to:bt},R.value=Nr(y,w,0,X),W.value=Nr(y,w,Ne,t.value),requestAnimationFrame(()=>{Q.value.to!==Ne&&A===B.scrollStart&&(Q.value={from:Q.value.from,to:Ne},W.value=Nr(y,w,Ne,t.value))})}requestAnimationFrame(()=>{if(A!==B.scrollStart)return;ot===!0&&Z(X);const bt=w.slice(X,oe).reduce(sr,0),en=bt+B.offsetStart+R.value,ct=en+w[oe];let pn=en+ve;if(ne!==void 0){const $r=bt-nt,$t=B.scrollStart+$r;pn=K!==!0&&$t<en&&ct<$t+B.scrollViewSize?$t:ne==="end"?ct-B.scrollViewSize:en-(ne==="start"?0:Math.round((B.scrollViewSize-w[oe])/2))}A=pn,as(q,pn,f.virtualScrollHorizontal,C.lang.rtl),H(oe)})}function Z(q){const B=D.value;if(B){const oe=ls.call(B.children,X=>X.classList&&X.classList.contains("q-virtual-scroll--skip")===!1),ve=oe.length,_e=f.virtualScrollHorizontal===!0?X=>X.getBoundingClientRect().width:X=>X.offsetHeight;let K=q,ne,Ee;for(let X=0;X<ve;){for(ne=_e(oe[X]),X++;X<ve&&oe[X].classList.contains("q-virtual-scroll--with-prev")===!0;)ne+=_e(oe[X]),X++;Ee=ne-w[K],Ee!==0&&(w[K]+=Ee,y[Math.floor(K/Pt)]+=Ee),K++}}}function F(){D.value!==null&&D.value!==void 0&&D.value.focus()}function ae(q,B){const oe=1*u.value;(B===!0||Array.isArray(w)===!1)&&(w=[]);const ve=w.length;w.length=t.value;for(let K=t.value-1;K>=ve;K--)w[K]=oe;const _e=Math.floor((t.value-1)/Pt);y=[];for(let K=0;K<=_e;K++){let ne=0;const Ee=Math.min((K+1)*Pt,t.value);for(let X=K*Pt;X<Ee;X++)ne+=w[X];y.push(ne)}v=-1,A=void 0,R.value=Nr(y,w,0,Q.value.from),W.value=Nr(y,w,Q.value.to,t.value),q>=0?(Z(Q.value.from),i.nextTick(()=>{T(q)})):ie()}function se(q){if(q===void 0&&typeof window<"u"){const ne=l();ne!=null&&ne.nodeType!==8&&(q=el(ne,o(),G.value,U.value,f.virtualScrollHorizontal,C.lang.rtl,f.virtualScrollStickySizeStart,f.virtualScrollStickySizeEnd).scrollViewSize)}k=q;const B=parseFloat(f.virtualScrollSliceRatioBefore)||0,oe=parseFloat(f.virtualScrollSliceRatioAfter)||0,ve=1+B+oe,_e=q===void 0||q<=0?1:Math.ceil(q/u.value),K=Math.max(1,_e,Math.ceil((f.virtualScrollSliceSize>0?f.virtualScrollSliceSize:10)/ve));O.value={total:Math.ceil(K*ve),start:Math.ceil(K*B),center:Math.ceil(K*(.5+B)),end:Math.ceil(K*(1+B)),view:_e}}function ce(q,B){const oe=f.virtualScrollHorizontal===!0?"width":"height",ve={["--q-virtual-scroll-item-"+oe]:u.value+"px"};return[q==="tbody"?i.h(q,{class:"q-virtual-scroll__padding",key:"before",ref:G},[i.h("tr",[i.h("td",{style:{[oe]:`${R.value}px`,...ve},colspan:j.value})])]):i.h(q,{class:"q-virtual-scroll__padding",key:"before",ref:G,style:{[oe]:`${R.value}px`,...ve}}),i.h(q,{class:"q-virtual-scroll__content",key:"content",ref:D,tabindex:-1},B.flat()),q==="tbody"?i.h(q,{class:"q-virtual-scroll__padding",key:"after",ref:U},[i.h("tr",[i.h("td",{style:{[oe]:`${W.value}px`,...ve},colspan:j.value})])]):i.h(q,{class:"q-virtual-scroll__padding",key:"after",ref:U,style:{[oe]:`${W.value}px`,...ve}})]}function H(q){v!==q&&(f.onVirtualScroll!==void 0&&m("virtualScroll",{index:q,from:Q.value.from,to:Q.value.to-1,direction:q<v?"decrease":"increase",ref:g}),v=q)}se();const ie=gu(V,C.platform.is.ios===!0?120:35);i.onBeforeMount(()=>{se()});let ge=!1;return i.onDeactivated(()=>{ge=!0}),i.onActivated(()=>{if(ge!==!0)return;const q=l();A!==void 0&&q!==void 0&&q!==null&&q.nodeType!==8?as(q,A,f.virtualScrollHorizontal,C.lang.rtl):T(v)}),i.onBeforeUnmount(()=>{ie.cancel()}),Object.assign(g,{scrollTo:T,reset:le,refresh:P}),{virtualScrollSliceRange:Q,virtualScrollSliceSizeComputed:O,setVirtualScrollSize:se,onVirtualScrollEvt:ie,localResetVirtualScroll:ae,padVirtualScroll:ce,scrollTo:T,reset:le,refresh:P}}function ss(t,l,o){if(o<=l)return l;const u=o-l+1;let s=l+(t-l)%u;return s<l&&(s=u+s),s===0?0:s}const cs=t=>["add","add-unique","toggle"].includes(t),bm=".*+?^${}()|[]\\",ym=Object.keys(_i),fs=Ye({name:"QSelect",inheritAttrs:!1,props:{...us,...Po,..._i,modelValue:{required:!0},multiple:Boolean,displayValue:[String,Number],displayValueHtml:Boolean,dropdownIcon:String,options:{type:Array,default:()=>[]},optionValue:[Function,String],optionLabel:[Function,String],optionDisable:[Function,String],hideSelected:Boolean,hideDropdownIcon:Boolean,fillInput:Boolean,maxValues:[Number,String],optionsDense:Boolean,optionsDark:{type:Boolean,default:null},optionsSelectedClass:String,optionsHtml:Boolean,optionsCover:Boolean,menuShrink:Boolean,menuAnchor:String,menuSelf:String,menuOffset:Array,popupContentClass:String,popupContentStyle:[String,Array,Object],popupNoRouteDismiss:Boolean,useInput:Boolean,useChips:Boolean,newValueMode:{type:String,validator:cs},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:us.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...zo,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(t,{slots:l,emit:o}){const{proxy:u}=i.getCurrentInstance(),{$q:s}=u,f=i.ref(!1),m=i.ref(!1),g=i.ref(-1),C=i.ref(""),A=i.ref(!1),v=i.ref(!1);let k=null,y=null,w,R,W,O=null,G,U,D,Q;const j=i.ref(null),Y=i.ref(null),I=i.ref(null),le=i.ref(null),P=i.ref(null),T=tu(t),V=wu(Vi),S=i.computed(()=>Array.isArray(t.options)?t.options.length:0),Z=i.computed(()=>t.virtualScrollItemSize===void 0?t.optionsDense===!0?24:48:t.virtualScrollItemSize),{virtualScrollSliceRange:F,virtualScrollSliceSizeComputed:ae,localResetVirtualScroll:se,padVirtualScroll:ce,onVirtualScrollEvt:H,scrollTo:ie,setVirtualScrollSize:ge}=_m({virtualScrollLength:S,getVirtualScrollTarget:qi,getVirtualScrollEl:Dr,virtualScrollItemSizeComputed:Z}),q=Uo(),B=i.computed(()=>{const _=t.mapOptions===!0&&t.multiple!==!0,te=t.modelValue!==void 0&&(t.modelValue!==null||_===!0)?t.multiple===!0&&Array.isArray(t.modelValue)?t.modelValue:[t.modelValue]:[];if(t.mapOptions===!0&&Array.isArray(t.options)===!0){const J=t.mapOptions===!0&&w!==void 0?w:[],me=te.map(Oe=>Fr(Oe,J));return t.modelValue===null&&_===!0?me.filter(Oe=>Oe!==null):me}return te}),oe=i.computed(()=>{const _={};return ym.forEach(te=>{const J=t[te];J!==void 0&&(_[te]=J)}),_}),ve=i.computed(()=>t.optionsDark===null?q.isDark.value:t.optionsDark),_e=i.computed(()=>Vr(B.value)),K=i.computed(()=>{let _="q-field__input q-placeholder col";return t.hideSelected===!0||B.value.length===0?[_,t.inputClass]:(_+=" q-field__input--padding",t.inputClass===void 0?_:[_,t.inputClass])}),ne=i.computed(()=>(t.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(t.popupContentClass?" "+t.popupContentClass:"")),Ee=i.computed(()=>S.value===0),X=i.computed(()=>B.value.map(_=>Ge.value(_)).join(", ")),Ne=i.computed(()=>t.displayValue!==void 0?t.displayValue:X.value),ot=i.computed(()=>t.optionsHtml===!0?()=>!0:_=>_!=null&&_.html===!0),Nt=i.computed(()=>t.displayValueHtml===!0||t.displayValue===void 0&&(t.optionsHtml===!0||B.value.some(ot.value))),_t=i.computed(()=>q.focused.value===!0?t.tabindex:-1),nt=i.computed(()=>{const _={tabindex:t.tabindex,role:"combobox","aria-label":t.label,"aria-readonly":t.readonly===!0?"true":"false","aria-autocomplete":t.useInput===!0?"list":"none","aria-expanded":f.value===!0?"true":"false","aria-controls":`${q.targetUid.value}_lb`};return g.value>=0&&(_["aria-activedescendant"]=`${q.targetUid.value}_${g.value}`),_}),bt=i.computed(()=>({id:`${q.targetUid.value}_lb`,role:"listbox","aria-multiselectable":t.multiple===!0?"true":"false"})),en=i.computed(()=>B.value.map((_,te)=>({index:te,opt:_,html:ot.value(_),selected:!0,removeAtIndex:vn,toggleOption:Dt,tabindex:_t.value}))),ct=i.computed(()=>{if(S.value===0)return[];const{from:_,to:te}=F.value;return t.options.slice(_,te).map((J,me)=>{const Oe=Ft.value(J)===!0,Be=zn(J)===!0,He=_+me,Le={clickable:!0,active:Be,activeClass:$t.value,manualFocus:!0,focused:!1,disable:Oe,tabindex:-1,dense:t.optionsDense,dark:ve.value,role:"option","aria-selected":Be===!0?"true":"false",id:`${q.targetUid.value}_${He}`,onClick:()=>{Dt(J)}};return Oe!==!0&&(g.value===He&&(Le.focused=!0),s.platform.is.desktop===!0&&(Le.onMousemove=()=>{f.value===!0&&Gt(He)})),{index:He,opt:J,html:ot.value(J),label:Ge.value(J),selected:Le.active,focused:Le.focused,toggleOption:Dt,setOptionIndex:Gt,itemProps:Le}})}),pn=i.computed(()=>t.dropdownIcon!==void 0?t.dropdownIcon:s.iconSet.arrow.dropdown),$r=i.computed(()=>t.optionsCover===!1&&t.outlined!==!0&&t.standout!==!0&&t.borderless!==!0&&t.rounded!==!0),$t=i.computed(()=>t.optionsSelectedClass!==void 0?t.optionsSelectedClass:t.color!==void 0?`text-${t.color}`:""),Fe=i.computed(()=>Dn(t.optionValue,"value")),Ge=i.computed(()=>Dn(t.optionLabel,"label")),Ft=i.computed(()=>Dn(t.optionDisable,"disable")),cr=i.computed(()=>B.value.map(_=>Fe.value(_))),Fn=i.computed(()=>{const _={onInput:Vi,onChange:V,onKeydown:Oi,onKeyup:Bi,onKeypress:Ri,onFocus:dr,onClick(te){R===!0&&Kt(te)}};return _.onCompositionstart=_.onCompositionupdate=_.onCompositionend=V,_});i.watch(B,_=>{w=_,t.useInput===!0&&t.fillInput===!0&&t.multiple!==!0&&q.innerLoading.value!==!0&&(m.value!==!0&&f.value!==!0||_e.value!==!0)&&(W!==!0&&rn(),(m.value===!0||f.value===!0)&&bn(""))},{immediate:!0}),i.watch(()=>t.fillInput,rn),i.watch(f,Wr),i.watch(S,dl);function Ti(_){return t.emitValue===!0?Fe.value(_):_}function tn(_){if(_!==-1&&_<B.value.length)if(t.multiple===!0){const te=t.modelValue.slice();o("remove",{index:_,value:te.splice(_,1)[0]}),o("update:modelValue",te)}else o("update:modelValue",null)}function vn(_){tn(_),q.focus()}function fr(_,te){const J=Ti(_);if(t.multiple!==!0){t.fillInput===!0&&Wn(Ge.value(_),!0,!0),o("update:modelValue",J);return}if(B.value.length===0){o("add",{index:0,value:J}),o("update:modelValue",t.multiple===!0?[J]:J);return}if(te===!0&&zn(_)===!0||t.maxValues!==void 0&&t.modelValue.length>=t.maxValues)return;const me=t.modelValue.slice();o("add",{index:me.length,value:J}),me.push(J),o("update:modelValue",me)}function Dt(_,te){if(q.editable.value!==!0||_===void 0||Ft.value(_)===!0)return;const J=Fe.value(_);if(t.multiple!==!0){te!==!0&&(Wn(t.fillInput===!0?Ge.value(_):"",!0,!0),nn()),Y.value!==null&&Y.value.focus(),(B.value.length===0||Jt(Fe.value(B.value[0]),J)!==!0)&&o("update:modelValue",t.emitValue===!0?J:_);return}if((R!==!0||A.value===!0)&&q.focus(),dr(),B.value.length===0){const Be=t.emitValue===!0?J:_;o("add",{index:0,value:Be}),o("update:modelValue",t.multiple===!0?[Be]:Be);return}const me=t.modelValue.slice(),Oe=cr.value.findIndex(Be=>Jt(Be,J));if(Oe!==-1)o("remove",{index:Oe,value:me.splice(Oe,1)[0]});else{if(t.maxValues!==void 0&&me.length>=t.maxValues)return;const Be=t.emitValue===!0?J:_;o("add",{index:me.length,value:Be}),me.push(Be)}o("update:modelValue",me)}function Gt(_){if(s.platform.is.desktop!==!0)return;const te=_!==-1&&_<S.value?_:-1;g.value!==te&&(g.value=te)}function _n(_=1,te){if(f.value===!0){let J=g.value;do J=ss(J+_,-1,S.value-1);while(J!==-1&&J!==g.value&&Ft.value(t.options[J])===!0);g.value!==J&&(Gt(J),ie(J),te!==!0&&t.useInput===!0&&t.fillInput===!0&&Un(J>=0?Ge.value(t.options[J]):G,!0))}}function Fr(_,te){const J=me=>Jt(Fe.value(me),_);return t.options.find(J)||te.find(J)||_}function Dn(_,te){const J=_!==void 0?_:te;return typeof J=="function"?J:me=>me!==null&&typeof me=="object"&&J in me?me[J]:me}function zn(_){const te=Fe.value(_);return cr.value.find(J=>Jt(J,te))!==void 0}function dr(_){t.useInput===!0&&Y.value!==null&&(_===void 0||Y.value===_.target&&_.target.value===X.value)&&Y.value.select()}function hr(_){Ln(_,27)===!0&&f.value===!0&&(Kt(_),nn(),rn()),o("keyup",_)}function Bi(_){const{value:te}=_.target;if(_.keyCode!==void 0){hr(_);return}if(_.target.value="",k!==null&&(clearTimeout(k),k=null),y!==null&&(clearTimeout(y),y=null),rn(),typeof te=="string"&&te.length!==0){const J=te.toLocaleLowerCase(),me=Be=>{const He=t.options.find(Le=>Be.value(Le).toLocaleLowerCase()===J);return He===void 0?!1:(B.value.indexOf(He)===-1?Dt(He):nn(),!0)},Oe=Be=>{me(Fe)!==!0&&(me(Ge)===!0||Be===!0||bn(te,!0,()=>Oe(!0)))};Oe()}else q.clearValue(_)}function Ri(_){o("keypress",_)}function Oi(_){if(o("keydown",_),Ho(_)===!0)return;const te=C.value.length!==0&&(t.newValueMode!==void 0||t.onNewValue!==void 0),J=_.shiftKey!==!0&&t.multiple!==!0&&(g.value!==-1||te===!0);if(_.keyCode===27){It(_);return}if(_.keyCode===9&&J===!1){yn();return}if(_.target===void 0||_.target.id!==q.targetUid.value||q.editable.value!==!0)return;if(_.keyCode===40&&q.innerLoading.value!==!0&&f.value===!1){Ke(_),wn();return}if(_.keyCode===8&&(t.useChips===!0||t.clearable===!0)&&t.hideSelected!==!0&&C.value.length===0){t.multiple===!0&&Array.isArray(t.modelValue)===!0?tn(t.modelValue.length-1):t.multiple!==!0&&t.modelValue!==null&&o("update:modelValue",null);return}(_.keyCode===35||_.keyCode===36)&&(typeof C.value!="string"||C.value.length===0)&&(Ke(_),g.value=-1,_n(_.keyCode===36?1:-1,t.multiple)),(_.keyCode===33||_.keyCode===34)&&ae.value!==void 0&&(Ke(_),g.value=Math.max(-1,Math.min(S.value,g.value+(_.keyCode===33?-1:1)*ae.value.view)),_n(_.keyCode===33?1:-1,t.multiple)),(_.keyCode===38||_.keyCode===40)&&(Ke(_),_n(_.keyCode===38?-1:1,t.multiple));const me=S.value;if((D===void 0||Q<Date.now())&&(D=""),me>0&&t.useInput!==!0&&_.key!==void 0&&_.key.length===1&&_.altKey===!1&&_.ctrlKey===!1&&_.metaKey===!1&&(_.keyCode!==32||D.length!==0)){f.value!==!0&&wn(_);const Oe=_.key.toLocaleLowerCase(),Be=D.length===1&&D[0]===Oe;Q=Date.now()+1500,Be===!1&&(Ke(_),D+=Oe);const He=new RegExp("^"+D.split("").map(mr=>bm.indexOf(mr)!==-1?"\\"+mr:mr).join(".*"),"i");let Le=g.value;if(Be===!0||Le<0||He.test(Ge.value(t.options[Le]))!==!0)do Le=ss(Le+1,-1,me-1);while(Le!==g.value&&(Ft.value(t.options[Le])===!0||He.test(Ge.value(t.options[Le]))!==!0));g.value!==Le&&i.nextTick(()=>{Gt(Le),ie(Le),Le>=0&&t.useInput===!0&&t.fillInput===!0&&Un(Ge.value(t.options[Le]),!0)});return}if(!(_.keyCode!==13&&(_.keyCode!==32||t.useInput===!0||D!=="")&&(_.keyCode!==9||J===!1))){if(_.keyCode!==9&&Ke(_),g.value!==-1&&g.value<me){Dt(t.options[g.value]);return}if(te===!0){const Oe=(Be,He)=>{if(He){if(cs(He)!==!0)return}else He=t.newValueMode;if(Wn("",t.multiple!==!0,!0),Be==null)return;(He==="toggle"?Dt:fr)(Be,He==="add-unique"),t.multiple!==!0&&(Y.value!==null&&Y.value.focus(),nn())};if(t.onNewValue!==void 0?o("newValue",C.value,Oe):Oe(C.value),t.multiple!==!0)return}f.value===!0?yn():q.innerLoading.value!==!0&&wn()}}function Dr(){return R===!0?P.value:I.value!==null&&I.value.contentEl!==null?I.value.contentEl:void 0}function qi(){return Dr()}function rl(){return t.hideSelected===!0?[]:l["selected-item"]!==void 0?en.value.map(_=>l["selected-item"](_)).slice():l.selected!==void 0?[].concat(l.selected()):t.useChips===!0?en.value.map((_,te)=>i.h(qh,{key:"option-"+te,removable:q.editable.value===!0&&Ft.value(_.opt)!==!0,dense:!0,textColor:t.color,tabindex:_t.value,onRemove(){_.removeAtIndex(te)}},()=>i.h("span",{class:"ellipsis",[_.html===!0?"innerHTML":"textContent"]:Ge.value(_.opt)}))):[i.h("span",{[Nt.value===!0?"innerHTML":"textContent"]:Ne.value})]}function Mi(){if(Ee.value===!0)return l["no-option"]!==void 0?l["no-option"]({inputValue:C.value}):void 0;const _=l.option!==void 0?l.option:J=>i.h(Mh,{key:J.index,...J.itemProps},()=>i.h(Vh,()=>i.h(Lh,()=>i.h("span",{[J.html===!0?"innerHTML":"textContent"]:J.label}))));let te=ce("div",ct.value.map(_));return l["before-options"]!==void 0&&(te=l["before-options"]().concat(te)),Mn(l["after-options"],te)}function il(_,te){const J=te===!0?{...nt.value,...q.splitAttrs.attributes.value}:void 0,me={ref:te===!0?Y:void 0,key:"i_t",class:K.value,style:t.inputStyle,value:C.value!==void 0?C.value:"",type:"search",...J,id:te===!0?q.targetUid.value:void 0,maxlength:t.maxlength,autocomplete:t.autocomplete,"data-autofocus":_===!0||t.autofocus===!0||void 0,disabled:t.disable===!0,readonly:t.readonly===!0,...Fn.value};return _!==!0&&R===!0&&(Array.isArray(me.class)===!0?me.class=[...me.class,"no-pointer-events"]:me.class+=" no-pointer-events"),i.h("input",me)}function Vi(_){k!==null&&(clearTimeout(k),k=null),y!==null&&(clearTimeout(y),y=null),!(_&&_.target&&_.target.qComposing===!0)&&(Un(_.target.value||""),W=!0,G=C.value,q.focused.value!==!0&&(R!==!0||A.value===!0)&&q.focus(),t.onFilter!==void 0&&(k=setTimeout(()=>{k=null,bn(C.value)},t.inputDebounce)))}function Un(_,te){C.value!==_&&(C.value=_,te===!0||t.inputDebounce===0||t.inputDebounce==="0"?o("inputValue",_):y=setTimeout(()=>{y=null,o("inputValue",_)},t.inputDebounce))}function Wn(_,te,J){W=J!==!0,t.useInput===!0&&(Un(_,!0),(te===!0||J!==!0)&&(G=_),te!==!0&&bn(_))}function bn(_,te,J){if(t.onFilter===void 0||te!==!0&&q.focused.value!==!0)return;q.innerLoading.value===!0?o("filterAbort"):(q.innerLoading.value=!0,v.value=!0),_!==""&&t.multiple!==!0&&B.value.length!==0&&W!==!0&&_===Ge.value(B.value[0])&&(_="");const me=setTimeout(()=>{f.value===!0&&(f.value=!1)},10);O!==null&&clearTimeout(O),O=me,o("filter",_,(Oe,Be)=>{(te===!0||q.focused.value===!0)&&O===me&&(clearTimeout(O),typeof Oe=="function"&&Oe(),v.value=!1,i.nextTick(()=>{q.innerLoading.value=!1,q.editable.value===!0&&(te===!0?f.value===!0&&nn():f.value===!0?Wr(!0):f.value=!0),typeof Be=="function"&&i.nextTick(()=>{Be(u)}),typeof J=="function"&&i.nextTick(()=>{J(u)})}))},()=>{q.focused.value===!0&&O===me&&(clearTimeout(O),q.innerLoading.value=!1,v.value=!1),f.value===!0&&(f.value=!1)})}function ol(){return i.h(um,{ref:I,class:ne.value,style:t.popupContentStyle,modelValue:f.value,fit:t.menuShrink!==!0,cover:t.optionsCover===!0&&Ee.value!==!0&&t.useInput!==!0,anchor:t.menuAnchor,self:t.menuSelf,offset:t.menuOffset,dark:ve.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:t.popupNoRouteDismiss,square:$r.value,transitionShow:t.transitionShow,transitionHide:t.transitionHide,transitionDuration:t.transitionDuration,separateClosePopup:!0,...bt.value,onScrollPassive:H,onBeforeShow:Ii,onBeforeHide:zr,onShow:ll},Mi)}function zr(_){Pi(_),yn()}function ll(){ge()}function Ur(_){Kt(_),Y.value!==null&&Y.value.focus(),A.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function al(_){Kt(_),i.nextTick(()=>{A.value=!1})}function ul(){const _=[i.h(Rh,{class:`col-auto ${q.fieldClass.value}`,...oe.value,for:q.targetUid.value,dark:ve.value,square:!0,loading:v.value,itemAligned:!1,filled:!0,stackLabel:C.value.length!==0,...q.splitAttrs.listeners.value,onFocus:Ur,onBlur:al},{...l,rawControl:()=>q.getControl(!0),before:void 0,after:void 0})];return f.value===!0&&_.push(i.h("div",{ref:P,class:ne.value+" scroll",style:t.popupContentStyle,...bt.value,onClick:It,onScrollPassive:H},Mi())),i.h(gm,{ref:le,modelValue:m.value,position:t.useInput===!0?"top":void 0,transitionShow:U,transitionHide:t.transitionHide,transitionDuration:t.transitionDuration,noRouteDismiss:t.popupNoRouteDismiss,onBeforeShow:Ii,onBeforeHide:sl,onHide:cl,onShow:fl},()=>i.h("div",{class:"q-select__dialog"+(ve.value===!0?" q-select__dialog--dark q-dark":"")+(A.value===!0?" q-select__dialog--focused":"")},_))}function sl(_){Pi(_),le.value!==null&&le.value.__updateRefocusTarget(q.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),q.focused.value=!1}function cl(_){nn(),q.focused.value===!1&&o("blur",_),rn()}function fl(){const _=document.activeElement;(_===null||_.id!==q.targetUid.value)&&Y.value!==null&&Y.value!==_&&Y.value.focus(),ge()}function yn(){m.value!==!0&&(g.value=-1,f.value===!0&&(f.value=!1),q.focused.value===!1&&(O!==null&&(clearTimeout(O),O=null),q.innerLoading.value===!0&&(o("filterAbort"),q.innerLoading.value=!1,v.value=!1)))}function wn(_){q.editable.value===!0&&(R===!0?(q.onControlFocusin(_),m.value=!0,i.nextTick(()=>{q.focus()})):q.focus(),t.onFilter!==void 0?bn(C.value):(Ee.value!==!0||l["no-option"]!==void 0)&&(f.value=!0))}function nn(){m.value=!1,yn()}function rn(){t.useInput===!0&&Wn(t.multiple!==!0&&t.fillInput===!0&&B.value.length!==0&&Ge.value(B.value[0])||"",!0,!0)}function Wr(_){let te=-1;if(_===!0){if(B.value.length!==0){const J=Fe.value(B.value[0]);te=t.options.findIndex(me=>Jt(Fe.value(me),J))}se(te)}Gt(te)}function dl(_,te){f.value===!0&&q.innerLoading.value===!1&&(se(-1,!0),i.nextTick(()=>{f.value===!0&&q.innerLoading.value===!1&&(_>te?se():Wr(!0))}))}function Li(){m.value===!1&&I.value!==null&&I.value.updatePosition()}function Ii(_){_!==void 0&&Kt(_),o("popupShow",_),q.hasPopupOpen=!0,q.onControlFocusin(_)}function Pi(_){_!==void 0&&Kt(_),o("popupHide",_),q.hasPopupOpen=!1,q.onControlFocusout(_)}function Ni(){R=s.platform.is.mobile!==!0&&t.behavior!=="dialog"?!1:t.behavior!=="menu"&&(t.useInput===!0?l["no-option"]!==void 0||t.onFilter!==void 0||Ee.value===!1:!0),U=s.platform.is.ios===!0&&R===!0&&t.useInput===!0?"fade":t.transitionShow}return i.onBeforeUpdate(Ni),i.onUpdated(Li),Ni(),i.onBeforeUnmount(()=>{k!==null&&clearTimeout(k),y!==null&&clearTimeout(y)}),Object.assign(u,{showPopup:wn,hidePopup:nn,removeAtIndex:tn,add:fr,toggleOption:Dt,getOptionIndex:()=>g.value,setOptionIndex:Gt,moveOptionSelection:_n,filter:bn,updateMenuPosition:Li,updateInputValue:Wn,isOptionSelected:zn,getEmittingOptionValue:Ti,isOptionDisabled:(..._)=>Ft.value.apply(null,_)===!0,getOptionValue:(..._)=>Fe.value.apply(null,_),getOptionLabel:(..._)=>Ge.value.apply(null,_)}),Object.assign(q,{innerValue:B,fieldClass:i.computed(()=>`q-select q-field--auto-height q-select--with${t.useInput!==!0?"out":""}-input q-select--with${t.useChips!==!0?"out":""}-chips q-select--${t.multiple===!0?"multiple":"single"}`),inputRef:j,targetRef:Y,hasValue:_e,showPopup:wn,floatingLabel:i.computed(()=>t.hideSelected!==!0&&_e.value===!0||typeof C.value=="number"||C.value.length!==0||Vr(t.displayValue)),getControlChild:()=>{if(q.editable.value!==!1&&(m.value===!0||Ee.value!==!0||l["no-option"]!==void 0))return R===!0?ul():ol();q.hasPopupOpen===!0&&(q.hasPopupOpen=!1)},controlEvents:{onFocusin(_){q.onControlFocusin(_)},onFocusout(_){q.onControlFocusout(_,()=>{rn(),yn()})},onClick(_){if(It(_),R!==!0&&f.value===!0){yn(),Y.value!==null&&Y.value.focus();return}wn(_)}},getControl:_=>{const te=rl(),J=_===!0||m.value!==!0||R!==!0;if(t.useInput===!0)te.push(il(_,J));else if(q.editable.value===!0){const Oe=J===!0?nt.value:void 0;te.push(i.h("input",{ref:J===!0?Y:void 0,key:"d_t",class:"q-select__focus-target",id:J===!0?q.targetUid.value:void 0,value:Ne.value,readonly:!0,"data-autofocus":_===!0||t.autofocus===!0||void 0,...Oe,onKeydown:Oi,onKeyup:hr,onKeypress:Ri})),J===!0&&typeof t.autocomplete=="string"&&t.autocomplete.length!==0&&te.push(i.h("input",{class:"q-select__autocomplete-input",autocomplete:t.autocomplete,tabindex:-1,onKeyup:Bi}))}if(T.value!==void 0&&t.disable!==!0&&cr.value.length!==0){const Oe=cr.value.map(Be=>i.h("option",{value:Be,selected:!0}));te.push(i.h("select",{class:"hidden",name:T.value,multiple:t.multiple},Oe))}const me=t.useInput===!0||J!==!0?void 0:q.splitAttrs.attributes.value;return i.h("div",{class:"q-field__native row items-center",...me,...q.splitAttrs.listeners.value},te)},getInnerAppend:()=>t.loading!==!0&&v.value!==!0&&t.hideDropdownIcon!==!0?[i.h(vt,{class:"q-select__dropdown-icon"+(f.value===!0?" rotate-180":""),name:pn.value})]:null}),Wo(q)}}),wm=gn(i.defineComponent({__name:"SelectControl",props:i.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=i.ref([]),o=i.useModel(t,"modelValue"),u=t,s=i.ref(!1),f=i.computed(()=>u.control.customParams),m=i.ref([]),g=i.computed(()=>{var k;return((k=f.value)==null?void 0:k.collection)||null}),C=i.computed(()=>g.value?m.value:u.control.options),A=qn();i.watch(g,k=>{if(!k)return;const y=A.getCollection(g.value);if(y){m.value=y;return}s.value=!0},{immediate:!0});function v(k,y){if(k===""){y(()=>{l.value=Pe.cloneDeep(C.value)});return}y(()=>{const w=k.toLowerCase();l.value=(C.value||[]).filter(R=>R.toLowerCase().includes(w))})}return(k,y)=>{const w=i.resolveComponent("ControlLabel");return i.openBlock(),i.createElementBlock(i.Fragment,null,[k.control.label?(i.openBlock(),i.createBlock(w,{key:0,label:k.control.label},null,8,["label"])):i.createCommentVNode("",!0),i.createVNode(yi,{class:"q-card win-card row items-center q-px-md"},{default:i.withCtx(()=>[i.createVNode(fs,{borderless:"",label:k.control.label,modelValue:o.value,"onUpdate:modelValue":y[0]||(y[0]=R=>o.value=R),"emit-value":"","option-label":"label","map-options":"","use-input":"",clearable:"",onFilter:v,options:l.value,style:{minHeight:"70px",width:"300px",margin:"auto"}},null,8,["label","modelValue","options"])]),_:1})],64)}}}),[["__scopeId","data-v-6268ce2c"]]),Sm={class:"text-center",style:{width:"100%"}},xm={class:"text-center text-weight-medium"},Cm={class:"question-title"},km=i.defineComponent({__name:"StepHeader",props:{formGroup:{},stepsCount:{}},setup(t){return(l,o)=>(i.openBlock(),i.createElementBlock("div",Sm,[i.createElementVNode("div",xm,i.toDisplayString(l.formGroup.order+1)+"/"+i.toDisplayString(l.stepsCount),1),i.createElementVNode("div",Cm,i.toDisplayString(l.formGroup.title||""),1)]))}});function Em(){return i.inject($d)}function ds(t,l){const{maxControlsPerGroup:o,notifyValidations:u}={...$f,...l||{}},s=qn(),f=i.computed(()=>s.formSteps[t]),m=i.ref([]),g=i.ref([]),C=(w,R)=>{s.setControlValue(t,w);const W=m.value.find(U=>U.id===R);W&&(g.value=Df(W));const O=v(w),G=k(w);(O||G)&&A()};function A(){const w=f.value.controls,R=[];Hf(w).forEach(O=>{const G=O.controls;if(G.every(D=>!Eo.includes(D.controlType))){R.push(O);return}let U={...O,controls:[]};for(const D of G)if(Eo.includes(D.controlType)){R.push(U),U={...U,controls:[]};const Q=Uf(O,D,o);R.push(...Q)}else U.controls.push(D)}),m.value=Pe.orderBy(R,"order").map(O=>({...O,id:O.controls.map(G=>G.id).join("-")})).filter(O=>O.controls.some(G=>G.visible)).map((O,G)=>({...O,order:G,controls:O.controls.filter(U=>U.visible)}))}function v({id:w,value:R}){let W=!1;const G=f.value.controls.filter(U=>{var D;return((D=U.conditions)==null?void 0:D.some(Q=>Q.id===w))||!1});if(G!=null&&G.length)return G.forEach(({id:U,conditions:D,visible:Q})=>{const j=D.every(Y=>{const{value:I,operator:le}=Y;return{"==":R===I,"!=":R!==I,">":R>I,"<":R<I}[le]||!1});Q!==j&&(s.setControlVisibility(t,U,j),W=!0)}),W}function k({id:w,value:R}){const W=Number(R||0);let O=!1;const U=f.value.controls.filter(D=>{var Q;return D.controlType==="dynamic_array"&&((Q=D.itemsLength)==null?void 0:Q.controlId)===w});if(U!=null&&U.length)return U.forEach(({id:D,itemsLength:Q})=>{(Q==null?void 0:Q.value)!==W&&(s.setControlItemsLength(t,D,W),O=!0)}),O}const{notify:y}=Em();return i.watch(g,w=>{w.length&&(u&&y({message:w[0],color:"negative",position:"bottom",timeout:5e3,actions:[{label:"✕",color:"white"}]}),g.value=[])},{deep:!0}),i.watch(f,()=>{A()},{immediate:!0}),{model:m,errorMessages:g,rebuildModel:A,onControlValueUpdate:C}}const Am={key:0,style:{height:"100%"}},Tm={class:"q-py-sm"},Bm={class:"form-steps-container"},Rm={class:"row justify-center items-center",style:{height:"100%",width:"100vw"}},Om={class:"controls-container",style:{height:"100%"}},qm={class:"form-container flex column items-center q-px-md",style:{width:"100vw"}},Mm=gn(i.defineComponent({__name:"MultipleFormGroups",props:{index:{}},setup(t){const l=t,o=qn(),{model:u,onControlValueUpdate:s}=ds(l.index),f=i.computed(()=>u.value.length),m=i.ref(0),g=i.computed(()=>u.value[m.value]),C=v=>{const k=Pe.toPairs(Pe.groupBy(v,"row"));return Pe.orderBy(k,([y,w])=>Number(y),"asc").map(([y,w])=>({controls:Pe.orderBy(w,"col","asc")}))};i.watch(m,v=>{const k=v+1===f.value;o.setOnLastSubstep(k)},{immediate:!0});function A(v){return{input_text:Ko,input_number:Ko,checkbox:uu,switch:Vd,select:wm,cards_select:Ed}[v]||Ko}return(v,k)=>g.value?(i.openBlock(),i.createElementBlock("div",Am,[i.createElementVNode("div",Tm,[i.createVNode(km,{formGroup:g.value,stepsCount:f.value},null,8,["formGroup","stepsCount"])]),i.createElementVNode("div",Bm,[i.createElementVNode("div",Rm,[i.createElementVNode("div",Om,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(u),y=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:y.id},[m.value===y.order?(i.openBlock(),i.createBlock(ad,{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",qm,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(C(y.controls),(w,R)=>(i.openBlock(),i.createElementBlock("div",{class:"q-mb-xl",key:R},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(w.controls,(W,O)=>(i.openBlock(),i.createElementBlock("div",{key:O},[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(A(W.controlType)),{control:W,modelValue:w.controls[O].value,"onUpdate:modelValue":[G=>w.controls[O].value=G,G=>i.unref(s)(W,y.id)]},null,8,["control","modelValue","onUpdate:modelValue"]))]))),128))]))),128))])]),_:2},1024)):i.createCommentVNode("",!0)],64))),128)),i.createVNode(Bh,{currentStep:m.value,stepsCount:f.value,nextDisabled:!g.value.valid,onPrev:k[0]||(k[0]=y=>m.value--),onNext:k[1]||(k[1]=y=>g.value.valid&&m.value++)},null,8,["currentStep","stepsCount","nextDisabled"])])])])])):i.createCommentVNode("",!0)}}),[["__scopeId","data-v-2d9dca33"]]),Vm={style:{"font-size":"16px","padding-top":"1rem"}},Lm={style:{"font-size":"16px","padding-top":"1rem"}},tl=gn(i.defineComponent({__name:"SimpleInput",props:i.mergeModels({control:{},rules:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=i.useModel(t,"modelValue"),o=t,u=i.computed(()=>{var s;return(s=o.control.controlType)==null?void 0:s.split("_")[1]});return(s,f)=>(i.openBlock(),i.createBlock(yi,{class:"q-px-md win-card"},{default:i.withCtx(()=>[i.createVNode(Su,{borderless:"","reverse-fill-mask":"",modelValue:l.value,"onUpdate:modelValue":f[0]||(f[0]=m=>l.value=m),label:s.control.label,mask:u.value==="number"?"###.###.###.###.###":void 0,"input-class":{"text-right":u.value==="number"},"input-style":{fontSize:"16px"},rules:s.rules},i.createSlots({_:2},[s.control.prefix?{name:"prepend",fn:i.withCtx(()=>[i.createElementVNode("span",Vm,i.toDisplayString(s.control.prefix),1)]),key:"0"}:void 0,s.control.suffix?{name:"append",fn:i.withCtx(()=>[i.createElementVNode("span",Lm,i.toDisplayString(s.control.suffix),1)]),key:"1"}:void 0]),1032,["modelValue","label","mask","input-class","rules"])]),_:1}))}}),[["__scopeId","data-v-2efb4029"]]),hs=i.defineComponent({__name:"SimpleSelect",props:i.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=i.useModel(t,"modelValue");return(o,u)=>(i.openBlock(),i.createBlock(yi,{class:"q-px-md win-card"},{default:i.withCtx(()=>[i.createVNode(fs,{borderless:"",label:o.control.label,options:o.control.options,modelValue:l.value,"onUpdate:modelValue":u[0]||(u[0]=s=>l.value=s),"emit-value":"","option-label":"label","map-options":""},null,8,["label","options","modelValue"])]),_:1}))}}),Im={key:0,style:{height:"100%"}},Pm={class:"question-title text-center q-py-sm"},Nm={class:"form-steps-container bg-grey-1"},$m={class:"form-container",style:{height:"100%"}},Fm={class:"row items-center"},Dm={class:"col-12 row"},zm=gn(i.defineComponent({__name:"SingleFormGroup",props:{index:{}},setup(t){const l=t,{model:o,onControlValueUpdate:u}=ds(l.index,{notifyValidations:!1});function s(C){return{input_text:tl,input_number:tl,select:hs,cards_select:hs,checkbox:uu}[C]||tl}const f=C=>Pe.orderBy(Pe.toPairs(Pe.groupBy(C,"row")),"row").map(([A,v])=>({controls:Pe.orderBy(v,"col")}));function m(C){return[A=>{var k;let v="";return(k=C.validators)==null||k.some(y=>{const{param:w,validator:R}=y,W=Ra[R];return W.fn(Number(w))({...C,value:A})?!1:(v=W.message,!0)}),!v.length||v}]}const g=qn();return i.onMounted(()=>g.setOnLastSubstep(!0)),(C,A)=>i.unref(o)?(i.openBlock(),i.createElementBlock("div",Im,[i.createElementVNode("div",Pm,i.toDisplayString(i.unref(o)[0].title),1),i.createElementVNode("div",Nm,[i.createElementVNode("div",$m,[i.createElementVNode("div",Fm,[i.createElementVNode("div",Dm,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(f(i.unref(o)[0].controls),(v,k)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(f(i.unref(o)[0].controls).length>1?"col-md-6 col-12":"col-12"),key:k},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(v.controls,(y,w)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(`col-xs-12 col-sm q-pa-xs ${f(i.unref(o)[0].controls).length>1?"col-md-6 col-12":"col-12"}`),key:w},[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(s(y.controlType)),{control:y,modelValue:y.value,"onUpdate:modelValue":[R=>y.value=R,R=>i.unref(u)(y,i.unref(o)[0].id)],rules:m(y)},null,8,["control","modelValue","onUpdate:modelValue","rules"]))],2))),128))],2))),128))])])])])])):i.createCommentVNode("",!0)}}),[["__scopeId","data-v-a8cd1002"]]),nl=t=>(i.pushScopeId("data-v-88496229"),t=t(),i.popScopeId(),t),Um={class:"buttons-container"},Wm={class:"max-container"},Hm={key:0,class:"row checkbox justify-end q-my-sm"},Km={style:{"max-width":"650px"}},Gm=nl(()=>i.createElementVNode("br",{class:"gt-sm"},null,-1)),jm={class:"row justify-between q-my-md q-px-md q-pb-xl"},Qm=nl(()=>i.createElementVNode("span",{class:"text-black"},"Atrás",-1)),Ym={key:1},Zm={key:0,class:"text-black"},Xm=nl(()=>i.createElementVNode("span",{class:"gt-sm"},"formulario",-1)),Jm={key:1,class:"text-black"},eg=gn(i.defineComponent({__name:"StepsNavigationButtons",emits:["submit"],setup(t,{emit:l}){const{nextStep:o,previousStep:u,currentStep:s,stepsCount:f,nextDisabled:m,onLastSubstep:g}=i.toRefs(qn()),C=l,A=i.ref(!1),v=y=>{},k=()=>{s.value===f.value?C("submit"):o.value()};return(y,w)=>(i.openBlock(),i.createElementBlock("div",Um,[i.createElementVNode("div",Wm,[i.unref(s)===i.unref(f)?(i.openBlock(),i.createElementBlock("div",Hm,[i.createElementVNode("div",Km,[i.createVNode(au,{color:"info",class:"checkbox",modelValue:A.value,"onUpdate:modelValue":w[1]||(w[1]=R=>A.value=R)},{default:i.withCtx(()=>[i.createElementVNode("div",null,[i.createTextVNode(" He leído, comprendo y acepto los términos de tratamiento de datos "),Gm,i.createTextVNode(" personales para esta solicitud. Más info. sobre la protección de datos "),i.createElementVNode("span",{style:{"text-decoration":"underline"},onClick:w[0]||(w[0]=R=>v())},"aquí"),i.createTextVNode(". ")])]),_:1},8,["modelValue"])])])):i.createCommentVNode("",!0),i.createElementVNode("div",jm,[i.unref(s)>1?(i.openBlock(),i.createBlock(ar,{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(()=>[Qm]),_:1},8,["onClick"])):(i.openBlock(),i.createElementBlock("div",Ym)),i.createElementVNode("div",null,[!i.unref(m)&&i.unref(g)?(i.openBlock(),i.createBlock(ar,{key:0,color:"green",class:"q-px-xl q-py-sm q-ml-sm win-btn win-btn-primary bg-white",onClick:k,disable:i.unref(s)===i.unref(f)&&!A.value,flat:"","no-caps":""},{default:i.withCtx(()=>[i.unref(s)===i.unref(f)?(i.openBlock(),i.createElementBlock("span",Zm,[i.createTextVNode(" Enviar "),Xm])):(i.openBlock(),i.createElementBlock("span",Jm," Siguiente "))]),_:1},8,["disable"])):i.createCommentVNode("",!0)])])])]))}}),[["__scopeId","data-v-88496229"]]),ms=i.defineComponent({__name:"DynamicForm",props:{forms:{}},emits:["onSubmit"],setup(t,{emit:l}){const o=t,u=l,s=i.ref(!1),f=qn(),m=C=>Pe.keys(Pe.groupBy(C.controls,"group")).length===1;i.watch(()=>o.forms,C=>{const v=new Fa().fromRaw(C);f.setFormSteps(v)},{immediate:!0});function g(){const C=Pe.cloneDeep(f.formSteps),v=new Fa().toRaw(C);u("onSubmit",v)}return(C,A)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",null,[i.renderSlot(C.$slots,"header"),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(f).formSteps,(v,k)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:k},[m(v)?i.withDirectives((i.openBlock(),i.createBlock(zm,{key:0,index:k},null,8,["index"])),[[i.vShow,i.unref(f).currentStep===k+1]]):i.withDirectives((i.openBlock(),i.createBlock(Mm,{key:1,index:k,onOnLastStep:A[0]||(A[0]=y=>s.value=y)},null,8,["index"])),[[i.vShow,i.unref(f).currentStep===k+1]])],64))),128))]),i.createVNode(eg,{onSubmit:g})],64))}}),tg=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),gs=i.defineComponent({__name:"TestUi",setup(t){const l=i.ref("Test W2W UI!");return(o,u)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[tg,i.createElementVNode("h1",null,i.toDisplayString(l.value),1)],64))}}),ng={install(t,l){l!=null&&l.pinia?(console.log("existe una instancia de pinia!"),t.use(l.pinia),qn()):console.error("Pinia instance is required to use this library."),console.log("inicializando componentes..."),t.component("DynamicForm",ms),t.component("TestUi",gs)}};Zt.DynamicForm=ms,Zt.TestUi=gs,Zt.default=ng,Object.defineProperties(Zt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
35
|
+
This will fail in production.`);g=er,g._s.has(u)||(f?Ro(u,l,s,g):Fa(u,s,g),process.env.NODE_ENV!=="production"&&(m._pinia=g));const v=g._s.get(u);if(process.env.NODE_ENV!=="production"&&C){const k="__hot:"+u,y=f?Ro(k,l,s,g,!0):Fa(k,Et({},s),g,!0);C._hotUpdate(y),delete g.state.value[k],g._s.delete(k)}if(process.env.NODE_ENV!=="production"&&Or){const k=i.getCurrentInstance();if(k&&k.proxy&&!C){const y=k.proxy,w="_pStores"in y?y._pStores:y._pStores={};w[u]=v}}return v}return m.$id=u,m}const td=Yf();console.log("activePinia",td);const nr=ed("form",{state:()=>({formSteps:[],currentStep:1,onLastSubstep:!1,collections:{}}),actions:{setFormSteps(t){this.formSteps=Gf(t)},nextStep(){this.currentStep!==this.formSteps.length&&this.currentStep++},previousStep(){this.currentStep!==1&&this.currentStep--},setControlValue(t,l){const{id:o,value:u,code:s}=l,f=this.formSteps[t].controls.find(m=>m.id===o);f&&(Eo.includes(f.controlType)?Pe.set(f.value,s,u):f.value=u)},setControlVisibility(t,l,o){const u=this.formSteps[t].controls.find(s=>s.id===l);u&&(u.visible=o)},setControlItemsLength(t,l,o){const u=this.formSteps[t].controls.find(s=>s.id===l);!u||u.controlType!=="dynamic_array"||(u.itemsLength.value=o)},setOnLastSubstep(t){this.onLastSubstep=t},resetSteps(){this.currentStep=1},setCollection(t,l){this.collections[t]=l}},getters:{currentFormStep(t){return t.formSteps[t.currentStep-1]||null},stepsCount(t){return t.formSteps.length},nextDisabled(){return this.currentFormStep.controls.filter(t=>t.visible).some(t=>!t.valid)},getCollection(t){return l=>t.collections[l]||null}}});class Da{toRaw(l){return l.flatMap(s=>s.controls).filter(s=>s.visible).map(s=>({ID_CUESTIONARIO_PREGUNTA:s.id,RESPUESTA:this.formatValue(s)}))}fromRaw(l){return Pe.orderBy(l,"ORDEN").filter(u=>u.PREGUNTAS.length&&u.ESTADO===1).map(u=>{const s=u.NOMBRE,f=u.ORDEN,m=u.DESCRIPCION,g=u.CLAVE,C=u.ID_CUESTIONARIO,A=u.PREGUNTAS.filter(v=>v.ESTADO===1).map(v=>this.parseControl(v));return{title:s,order:f,text:m,controls:A,name:g,id:C}})}parseControl(l){return{controlType:l.TIPO,label:l.NOMBRE,name:l.CLAVE,options:l.RESPUESTAS,multiple:l.MULTIPLE||!1,validators:l.VALIDACIONES,conditions:l.CONDITIONS,itemsLength:l.LENGTH,id:l.ID_CUESTIONARIO_PREGUNTA,row:l.FILA,col:l.COLUMNA,prefix:l.PREFIJO,suffix:l.SUFIJO,structure:l.STRUCTURE,group:l.GRUPO,title:l.TITULO_GRUPO,customParams:l.PARAMS}}formatValue(l){const{controlType:o,value:u,structure:s}=l,f=(m,g)=>g.controlType==="input_number"&&m!==null&&m!==void 0&&m!==""&&typeof m=="string";return f(u,l)?parseFloat(u.replaceAll(".","")):(o==="object"&&s.forEach(m=>{const g=u[m.code];f(g,m)&&(u[m.code]=parseFloat(g==null?void 0:g.replaceAll(".","")))}),u)}}function ci(t,l,o,u){return Object.defineProperty(t,l,{get:o,set:u,enumerable:!0}),t}const mn=i.ref(!1);let Oo;function nd(t,l){const o=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(t)||/(opr)[\/]([\w.]+)/.exec(t)||/(vivaldi)[\/]([\w.]+)/.exec(t)||/(chrome|crios)[\/]([\w.]+)/.exec(t)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(t)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(t)||/(firefox|fxios)[\/]([\w.]+)/.exec(t)||/(webkit)[\/]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(t)||[];return{browser:o[5]||o[3]||o[1]||"",version:o[4]||o[2]||"0",platform:l[0]||""}}function rd(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 za="ontouchstart"in window||window.navigator.maxTouchPoints>0;function id(t){const l=t.toLowerCase(),o=rd(l),u=nd(l,o),s={};u.browser&&(s[u.browser]=!0,s.version=u.version,s.versionNumber=parseInt(u.version,10)),u.platform&&(s[u.platform]=!0);const f=s.android||s.ios||s.bb||s.blackberry||s.ipad||s.iphone||s.ipod||s.kindle||s.playbook||s.silk||s["windows phone"];if(f===!0||l.indexOf("mobile")!==-1?s.mobile=!0:s.desktop=!0,s["windows phone"]&&(s.winphone=!0,delete s["windows phone"]),s.edga||s.edgios||s.edg?(s.edge=!0,u.browser="edge"):s.crios?(s.chrome=!0,u.browser="chrome"):s.fxios&&(s.firefox=!0,u.browser="firefox"),(s.ipod||s.ipad||s.iphone)&&(s.ios=!0),s.vivaldi&&(u.browser="vivaldi",s.vivaldi=!0),(s.chrome||s.opr||s.safari||s.vivaldi||s.mobile===!0&&s.ios!==!0&&f!==!0)&&(s.webkit=!0),s.opr&&(u.browser="opera",s.opera=!0),s.safari&&(s.blackberry||s.bb?(u.browser="blackberry",s.blackberry=!0):s.playbook?(u.browser="playbook",s.playbook=!0):s.android?(u.browser="android",s.android=!0):s.kindle?(u.browser="kindle",s.kindle=!0):s.silk&&(u.browser="silk",s.silk=!0)),s.name=u.browser,s.platform=u.platform,l.indexOf("electron")!==-1)s.electron=!0;else if(document.location.href.indexOf("-extension://")!==-1)s.bex=!0;else{if(window.Capacitor!==void 0?(s.capacitor=!0,s.nativeMobile=!0,s.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(s.cordova=!0,s.nativeMobile=!0,s.nativeMobileWrapper="cordova"),mn.value===!0&&(Oo={is:{...s}}),za===!0&&s.mac===!0&&(s.desktop===!0&&s.safari===!0||s.nativeMobile===!0&&s.android!==!0&&s.ios!==!0&&s.ipad!==!0)){delete s.mac,delete s.desktop;const m=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(s,{mobile:!0,ios:!0,platform:m,[m]:!0})}s.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete s.desktop,s.mobile=!0)}return s}const Ua=navigator.userAgent||navigator.vendor||window.opera,od={has:{touch:!1,webStorage:!1},within:{iframe:!1}},gt={userAgent:Ua,is:id(Ua),has:{touch:za},within:{iframe:window.self!==window.top}},qo={install(t){const{$q:l}=t;mn.value===!0?(t.onSSRHydrated.push(()=>{Object.assign(l.platform,gt),mn.value=!1}),l.platform=i.reactive(this)):l.platform=this}};{let t;ci(gt.has,"webStorage",()=>{if(t!==void 0)return t;try{if(window.localStorage)return t=!0,!0}catch{}return t=!1,!1}),Object.assign(qo,gt),mn.value===!0&&(Object.assign(qo,Oo,od),Oo=null)}function Ye(t){return i.markRaw(i.defineComponent(t))}function Wa(t){return i.markRaw(t)}function Jt(t,l){if(t===l)return!0;if(t!==null&&l!==null&&typeof t=="object"&&typeof l=="object"){if(t.constructor!==l.constructor)return!1;let o,u;if(t.constructor===Array){if(o=t.length,o!==l.length)return!1;for(u=o;u--!==0;)if(Jt(t[u],l[u])!==!0)return!1;return!0}if(t.constructor===Map){if(t.size!==l.size)return!1;let f=t.entries();for(u=f.next();u.done!==!0;){if(l.has(u.value[0])!==!0)return!1;u=f.next()}for(f=t.entries(),u=f.next();u.done!==!0;){if(Jt(u.value[1],l.get(u.value[0]))!==!0)return!1;u=f.next()}return!0}if(t.constructor===Set){if(t.size!==l.size)return!1;const f=t.entries();for(u=f.next();u.done!==!0;){if(l.has(u.value[0])!==!0)return!1;u=f.next()}return!0}if(t.buffer!=null&&t.buffer.constructor===ArrayBuffer){if(o=t.length,o!==l.length)return!1;for(u=o;u--!==0;)if(t[u]!==l[u])return!1;return!0}if(t.constructor===RegExp)return t.source===l.source&&t.flags===l.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===l.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===l.toString();const s=Object.keys(t).filter(f=>t[f]!==void 0);if(o=s.length,o!==Object.keys(l).filter(f=>l[f]!==void 0).length)return!1;for(u=o;u--!==0;){const f=s[u];if(Jt(t[f],l[f])!==!0)return!1}return!0}return t!==t&&l!==l}const Ha={threshold:0,root:null,rootMargin:"0px"};function Ka(t,l,o){let u,s,f;typeof o=="function"?(u=o,s=Ha,f=l.cfg===void 0):(u=o.handler,s=Object.assign({},Ha,o.cfg),f=l.cfg===void 0||Jt(l.cfg,s)===!1),l.handler!==u&&(l.handler=u),f===!0&&(l.cfg=s,l.observer!==void 0&&l.observer.unobserve(t),l.observer=new IntersectionObserver(([m])=>{if(typeof l.handler=="function"){if(m.rootBounds===null&&document.body.contains(t)===!0){l.observer.unobserve(t),l.observer.observe(t);return}(l.handler(m,l.observer)===!1||l.once===!0&&m.isIntersecting===!0)&&Ga(t)}},s),l.observer.observe(t))}function Ga(t){const l=t.__qvisible;l!==void 0&&(l.observer!==void 0&&l.observer.unobserve(t),delete t.__qvisible)}const ld=Wa({name:"intersection",mounted(t,{modifiers:l,value:o}){const u={once:l.once===!0};Ka(t,u,o),t.__qvisible=u},updated(t,l){const o=t.__qvisible;o!==void 0&&Ka(t,o,l.value)},beforeUnmount:Ga});function pt(t,l){return t!==void 0&&t()||l}function ad(t,l){if(t!==void 0){const o=t();if(o!=null)return o.slice()}return l}function qn(t,l){return t!==void 0?l.concat(t()):l}function ud(t,l){return t===void 0?l:l!==void 0?l.concat(t()):t()}function ja(t,l,o,u,s,f){l.key=u+s;const m=i.h(t,l,o);return s===!0?i.withDirectives(m,f()):m}const sd=Ye({name:"QIntersection",props:{tag:{type:String,default:"div"},once:Boolean,transition:String,transitionDuration:{type:[String,Number],default:300},ssrPrerender:Boolean,margin:String,threshold:[Number,Array],root:{default:null},disable:Boolean,onVisibility:Function},setup(t,{slots:l,emit:o}){const u=i.ref(mn.value===!0?t.ssrPrerender:!1),s=i.computed(()=>t.root!==void 0||t.margin!==void 0||t.threshold!==void 0?{handler:C,cfg:{root:t.root,rootMargin:t.margin,threshold:t.threshold}}:C),f=i.computed(()=>t.disable!==!0&&(mn.value!==!0||t.once!==!0||t.ssrPrerender!==!0)),m=i.computed(()=>[[ld,s.value,void 0,{once:t.once}]]),g=i.computed(()=>`--q-transition-duration: ${t.transitionDuration}ms`);function C(v){u.value!==v.isIntersecting&&(u.value=v.isIntersecting,t.onVisibility!==void 0&&o("visibility",u.value))}function A(){if(u.value===!0)return[i.h("div",{key:"content",style:g.value},pt(l.default))];if(l.hidden!==void 0)return[i.h("div",{key:"hidden",style:g.value},l.hidden())]}return()=>{const v=t.transition?[i.h(i.Transition,{name:"q-transition--"+t.transition},A)]:A();return ja(t.tag,{class:"q-intersection"},v,"main",f.value,()=>m.value)}}}),Mo={xs:18,sm:24,md:32,lg:38,xl:46},fi={size:String};function di(t,l=Mo){return i.computed(()=>t.size!==void 0?{fontSize:t.size in l?`${l[t.size]}px`:t.size}:null)}const cd={size:{type:[String,Number],default:"1em"},color:String};function fd(t){return{cSize:i.computed(()=>t.size in Mo?`${Mo[t.size]}px`:t.size),classes:i.computed(()=>"q-spinner"+(t.color?` text-${t.color}`:""))}}const Vo=Ye({name:"QSpinner",props:{...cd,thickness:{type:Number,default:5}},setup(t){const{cSize:l,classes:o}=fd(t);return()=>i.h("svg",{class:o.value+" q-spinner-mat",width:l.value,height:l.value,viewBox:"25 25 50 50"},[i.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":t.thickness,"stroke-miterlimit":"10"})])}}),dd={ratio:[String,Number]};function hd(t,l){return i.computed(()=>{const o=Number(t.ratio||(l!==void 0?l.value:void 0));return isNaN(o)!==!0&&o>0?{paddingBottom:`${100/o}%`}:null})}function Lo(t){if(Object(t.$parent)===t.$parent)return t.$parent;let{parent:l}=t.$;for(;Object(l)===l;){if(Object(l.proxy)===l.proxy)return l.proxy;l=l.parent}}function Qa(t){return t.appContext.config.globalProperties.$router!==void 0}function qr(t){return t.isUnmounted===!0||t.isDeactivated===!0}function hi(){let t=null;const l=i.getCurrentInstance();function o(){t!==null&&(clearTimeout(t),t=null)}return i.onDeactivated(o),i.onBeforeUnmount(o),{removeTimeout:o,registerTimeout(u,s){o(),qr(l)===!1&&(t=setTimeout(()=>{t=null,u()},s))}}}const md=Ye({name:"QImg",props:{...dd,src:String,srcset:String,sizes:String,alt:String,crossorigin:String,decoding:String,referrerpolicy:String,draggable:Boolean,loading:{type:String,default:"lazy"},loadingShowDelay:{type:[Number,String],default:0},fetchpriority:{type:String,default:"auto"},width:String,height:String,initialRatio:{type:[Number,String],default:1.7778},placeholderSrc:String,errorSrc:String,fit:{type:String,default:"cover"},position:{type:String,default:"50% 50%"},imgClass:String,imgStyle:Object,noSpinner:Boolean,noNativeMenu:Boolean,noTransition:Boolean,spinnerColor:String,spinnerSize:String},emits:["load","error"],setup(t,{slots:l,emit:o}){const u=i.ref(t.initialRatio),s=hd(t,u),f=i.getCurrentInstance(),{registerTimeout:m,removeTimeout:g}=hi(),{registerTimeout:C,removeTimeout:A}=hi(),v=i.computed(()=>t.placeholderSrc!==void 0?{src:t.placeholderSrc}:null),k=i.computed(()=>t.errorSrc!==void 0?{src:t.errorSrc,__qerror:!0}:null),y=[i.ref(null),i.ref(v.value)],w=i.ref(0),R=i.ref(!1),W=i.ref(!1),O=i.computed(()=>`q-img q-img--${t.noNativeMenu===!0?"no-":""}menu`),G=i.computed(()=>({width:t.width,height:t.height})),U=i.computed(()=>`q-img__image ${t.imgClass!==void 0?t.imgClass+" ":""}q-img__image--with${t.noTransition===!0?"out":""}-transition q-img__image--`),D=i.computed(()=>({...t.imgStyle,objectFit:t.fit,objectPosition:t.position}));function Q(){if(A(),t.loadingShowDelay===0){R.value=!0;return}C(()=>{R.value=!0},t.loadingShowDelay)}function j(){A(),R.value=!1}function Y({target:S}){qr(f)===!1&&(g(),u.value=S.naturalHeight===0?.5:S.naturalWidth/S.naturalHeight,I(S,1))}function I(S,Z){Z===1e3||qr(f)===!0||(S.complete===!0?le(S):m(()=>{I(S,Z+1)},50))}function le(S){qr(f)!==!0&&(w.value=w.value^1,y[w.value].value=null,j(),S.getAttribute("__qerror")!=="true"&&(W.value=!1),o("load",S.currentSrc||S.src))}function P(S){g(),j(),W.value=!0,y[w.value].value=k.value,y[w.value^1].value=v.value,o("error",S)}function T(S){const Z=y[S].value,F={key:"img_"+S,class:U.value,style:D.value,alt:t.alt,crossorigin:t.crossorigin,decoding:t.decoding,referrerpolicy:t.referrerpolicy,height:t.height,width:t.width,loading:t.loading,fetchpriority:t.fetchpriority,"aria-hidden":"true",draggable:t.draggable,...Z};return w.value===S?Object.assign(F,{class:F.class+"current",onLoad:Y,onError:P}):F.class+="loaded",i.h("div",{class:"q-img__container absolute-full",key:"img"+S},i.h("img",F))}function V(){return R.value===!1?i.h("div",{key:"content",class:"q-img__content absolute-full q-anchor--skip"},pt(l[W.value===!0?"error":"default"])):i.h("div",{key:"loading",class:"q-img__loading absolute-full flex flex-center"},l.loading!==void 0?l.loading():t.noSpinner===!0?void 0:[i.h(Vo,{color:t.spinnerColor,size:t.spinnerSize})])}{let S=function(){i.watch(()=>t.src||t.srcset||t.sizes?{src:t.src,srcset:t.srcset,sizes:t.sizes}:null,Z=>{g(),W.value=!1,Z===null?(j(),y[w.value^1].value=v.value):Q(),y[w.value].value=Z},{immediate:!0})};mn.value===!0?i.onMounted(S):S()}return()=>{const S=[];return s.value!==null&&S.push(i.h("div",{key:"filler",style:s.value})),y[0].value!==null&&S.push(T(0)),y[1].value!==null&&S.push(T(1)),S.push(i.h(i.Transition,{name:"q-transition--fade"},V)),i.h("div",{key:"main",class:O.value,style:G.value,role:"img","aria-label":t.alt},S)}}}),Ya="0 0 24 24",Za=t=>t,Io=t=>`ionicons ${t}`,Xa={"mdi-":t=>`mdi ${t}`,"icon-":Za,"bt-":t=>`bt ${t}`,"eva-":t=>`eva ${t}`,"ion-md":Io,"ion-ios":Io,"ion-logo":Io,"iconfont ":Za,"ti-":t=>`themify-icon ${t}`,"bi-":t=>`bootstrap-icons ${t}`},Ja={o_:"-outlined",r_:"-round",s_:"-sharp"},eu={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},gd=new RegExp("^("+Object.keys(Xa).join("|")+")"),pd=new RegExp("^("+Object.keys(Ja).join("|")+")"),tu=new RegExp("^("+Object.keys(eu).join("|")+")"),vd=/^[Mm]\s?[-+]?\.?\d/,_d=/^img:/,bd=/^svguse:/,yd=/^ion-/,wd=/^(fa-(sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,vt=Ye({name:"QIcon",props:{...fi,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(t,{slots:l}){const{proxy:{$q:o}}=i.getCurrentInstance(),u=di(t),s=i.computed(()=>"q-icon"+(t.left===!0?" on-left":"")+(t.right===!0?" on-right":"")+(t.color!==void 0?` text-${t.color}`:"")),f=i.computed(()=>{let m,g=t.name;if(g==="none"||!g)return{none:!0};if(o.iconMapFn!==null){const v=o.iconMapFn(g);if(v!==void 0)if(v.icon!==void 0){if(g=v.icon,g==="none"||!g)return{none:!0}}else return{cls:v.cls,content:v.content!==void 0?v.content:" "}}if(vd.test(g)===!0){const[v,k=Ya]=g.split("|");return{svg:!0,viewBox:k,nodes:v.split("&&").map(y=>{const[w,R,W]=y.split("@@");return i.h("path",{style:R,d:w,transform:W})})}}if(_d.test(g)===!0)return{img:!0,src:g.substring(4)};if(bd.test(g)===!0){const[v,k=Ya]=g.split("|");return{svguse:!0,src:v.substring(7),viewBox:k}}let C=" ";const A=g.match(gd);if(A!==null)m=Xa[A[1]](g);else if(wd.test(g)===!0)m=g;else if(yd.test(g)===!0)m=`ionicons ion-${o.platform.is.ios===!0?"ios":"md"}${g.substring(3)}`;else if(tu.test(g)===!0){m="notranslate material-symbols";const v=g.match(tu);v!==null&&(g=g.substring(6),m+=eu[v[1]]),C=g}else{m="notranslate material-icons";const v=g.match(pd);v!==null&&(g=g.substring(2),m+=Ja[v[1]]),C=g}return{cls:m,content:C}});return()=>{const m={class:s.value,style:u.value,"aria-hidden":"true",role:"presentation"};return f.value.none===!0?i.h(t.tag,m,pt(l.default)):f.value.img===!0?i.h(t.tag,m,qn(l.default,[i.h("img",{src:f.value.src})])):f.value.svg===!0?i.h(t.tag,m,qn(l.default,[i.h("svg",{viewBox:f.value.viewBox||"0 0 24 24"},f.value.nodes)])):f.value.svguse===!0?i.h(t.tag,m,qn(l.default,[i.h("svg",{viewBox:f.value.viewBox},[i.h("use",{"xlink:href":f.value.src})])])):(f.value.cls!==void 0&&(m.class+=" "+f.value.cls),i.h(t.tag,m,qn(l.default,[f.value.content])))}}}),Sd={class:"card-select-container"},xd=["onClick"],Cd={class:"check"},kd={class:"row justify-center items-center",style:{height:"100%"}},Ed=["onClick"],Ad=i.defineComponent({__name:"CardsSelectControl",props:i.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=i.useModel(t,"modelValue"),o=t,{control:u}=i.toRefs(o);function s(g){if(u.value.multiple){let C=Pe.cloneDeep(l.value);g.exclusive?C=[g.value]:(C=C.filter(A=>{var v,k;return!((k=(v=u.value.options)==null?void 0:v.find(y=>y.value===A))!=null&&k.exclusive)}),C.includes(g.value)?C=C.filter(A=>A!==g.value):C.push(g.value)),l.value=C}else l.value=g.value}function f(g){return m(g)?"active":""}function m(g){let C;return u.value.multiple?C=(l.value||[]).includes(String(g.value)):C=l.value===g.value,C}return(g,C)=>{const A=i.resolveComponent("ControlLabel");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.unref(u).label?(i.openBlock(),i.createBlock(A,{key:0,label:i.unref(u).label},null,8,["label"])):i.createCommentVNode("",!0),i.createElementVNode("div",Sd,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(u).options,(v,k)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:k},[v.image?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(`image-card ${f(v)}`),onClick:()=>s(v)},[i.createVNode(md,{src:v.image,height:"200px",width:"200px",fit:"fill",class:"image"},null,8,["src"]),i.createElementVNode("div",Cd,[i.createElementVNode("div",kd,[m(v)?(i.openBlock(),i.createBlock(vt,{key:0,name:"check",size:"25px"})):i.createCommentVNode("",!0)])])],10,xd)):(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(`card-option ${f(v)}`),onClick:()=>s(v)},[i.createElementVNode("span",null,i.toDisplayString(v.label),1)],10,Ed))],64))),128))])],64)}}}),gn=(t,l)=>{const o=t.__vccOpts||t;for(const[u,s]of l)o[u]=s;return o},Td=gn(Ad,[["__scopeId","data-v-148468d6"]]),rr={dark:{type:Boolean,default:null}};function ir(t,l){return i.computed(()=>t.dark===null?l.dark.isActive:t.dark)}function Bd(t,l){const o=i.ref(null),u=i.computed(()=>t.disable===!0?null:i.h("span",{ref:o,class:"no-outline",tabindex:-1}));function s(f){const m=l.value;f!==void 0&&f.type.indexOf("key")===0?m!==null&&document.activeElement!==m&&m.contains(document.activeElement)===!0&&m.focus():o.value!==null&&(f===void 0||m!==null&&m.contains(f.target)===!0)&&o.value.focus()}return{refocusTargetEl:u,refocusTarget:s}}const Po={name:String};function Rd(t={}){return(l,o,u)=>{l[o](i.h("input",{class:"hidden"+(u||""),...t.value}))}}function nu(t){return i.computed(()=>t.name||t.for)}const Od={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 qd(){}function ru(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 Md(t){if(t.path)return t.path;if(t.composedPath)return t.composedPath();const l=[];let o=t.target;for(;o;){if(l.push(o),o.tagName==="HTML")return l.push(document),l.push(window),l;o=o.parentElement}}function Kt(t){t.stopPropagation()}function It(t){t.cancelable!==!1&&t.preventDefault()}function Ke(t){t.cancelable!==!1&&t.preventDefault(),t.stopPropagation()}function No(t,l,o){const u=`__q_${l}_evt`;t[u]=t[u]!==void 0?t[u].concat(o):o,o.forEach(s=>{s[0].addEventListener(s[1],t[s[2]],st[s[3]])})}function iu(t,l){const o=`__q_${l}_evt`;t[o]!==void 0&&(t[o].forEach(u=>{u[0].removeEventListener(u[1],t[u[2]],st[u[3]])}),t[o]=void 0)}const ou={...rr,...fi,...Po,modelValue:{required:!0,default:null},val:{},trueValue:{default:!0},falseValue:{default:!1},indeterminateValue:{default:null},checkedIcon:String,uncheckedIcon:String,indeterminateIcon:String,toggleOrder:{type:String,validator:t=>t==="tf"||t==="ft"},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},lu=["update:modelValue"];function au(t,l){const{props:o,slots:u,emit:s,proxy:f}=i.getCurrentInstance(),{$q:m}=f,g=ir(o,m),C=i.ref(null),{refocusTargetEl:A,refocusTarget:v}=Bd(o,C),k=di(o,Od),y=i.computed(()=>o.val!==void 0&&Array.isArray(o.modelValue)),w=i.computed(()=>{const S=i.toRaw(o.val);return y.value===!0?o.modelValue.findIndex(Z=>i.toRaw(Z)===S):-1}),R=i.computed(()=>y.value===!0?w.value!==-1:i.toRaw(o.modelValue)===i.toRaw(o.trueValue)),W=i.computed(()=>y.value===!0?w.value===-1:i.toRaw(o.modelValue)===i.toRaw(o.falseValue)),O=i.computed(()=>R.value===!1&&W.value===!1),G=i.computed(()=>o.disable===!0?-1:o.tabindex||0),U=i.computed(()=>`q-${t} cursor-pointer no-outline row inline no-wrap items-center`+(o.disable===!0?" disabled":"")+(g.value===!0?` q-${t}--dark`:"")+(o.dense===!0?` q-${t}--dense`:"")+(o.leftLabel===!0?" reverse":"")),D=i.computed(()=>{const S=R.value===!0?"truthy":W.value===!0?"falsy":"indet",Z=o.color!==void 0&&(o.keepColor===!0||(t==="toggle"?R.value===!0:W.value!==!0))?` text-${o.color}`:"";return`q-${t}__inner relative-position non-selectable q-${t}__inner--${S}${Z}`}),Q=i.computed(()=>{const S={type:"checkbox"};return o.name!==void 0&&Object.assign(S,{".checked":R.value,"^checked":R.value===!0?"checked":void 0,name:o.name,value:y.value===!0?o.val:o.trueValue}),S}),j=Rd(Q),Y=i.computed(()=>{const S={tabindex:G.value,role:t==="toggle"?"switch":"checkbox","aria-label":o.label,"aria-checked":O.value===!0?"mixed":R.value===!0?"true":"false"};return o.disable===!0&&(S["aria-disabled"]="true"),S});function I(S){S!==void 0&&(Ke(S),v(S)),o.disable!==!0&&s("update:modelValue",le(),S)}function le(){if(y.value===!0){if(R.value===!0){const S=o.modelValue.slice();return S.splice(w.value,1),S}return o.modelValue.concat([o.val])}if(R.value===!0){if(o.toggleOrder!=="ft"||o.toggleIndeterminate===!1)return o.falseValue}else if(W.value===!0){if(o.toggleOrder==="ft"||o.toggleIndeterminate===!1)return o.trueValue}else return o.toggleOrder!=="ft"?o.trueValue:o.falseValue;return o.indeterminateValue}function P(S){(S.keyCode===13||S.keyCode===32)&&Ke(S)}function T(S){(S.keyCode===13||S.keyCode===32)&&I(S)}const V=l(R,O);return Object.assign(f,{toggle:I}),()=>{const S=V();o.disable!==!0&&j(S,"unshift",` q-${t}__native absolute q-ma-none q-pa-none`);const Z=[i.h("div",{class:D.value,style:k.value,"aria-hidden":"true"},S)];A.value!==null&&Z.push(A.value);const F=o.label!==void 0?qn(u.default,[o.label]):pt(u.default);return F!==void 0&&Z.push(i.h("div",{class:`q-${t}__label q-anchor--skip`},F)),i.h("div",{ref:C,class:U.value,...Y.value,onClick:I,onKeydown:P,onKeyup:T},Z)}}const Vd=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"})])]),uu=Ye({name:"QCheckbox",props:ou,emits:lu,setup(t){function l(o,u){const s=i.computed(()=>(o.value===!0?t.checkedIcon:u.value===!0?t.indeterminateIcon:t.uncheckedIcon)||null);return()=>s.value!==null?[i.h("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[i.h(vt,{class:"q-checkbox__icon",name:s.value})])]:[Vd]}return au("checkbox",l)}}),su=i.defineComponent({__name:"SimpleCheckbox",props:i.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=i.useModel(t,"modelValue");return(o,u)=>(i.openBlock(),i.createBlock(uu,{outlined:"",label:o.control.label,color:"green-10","model-value":!!l.value,"onUpdate:modelValue":u[0]||(u[0]=s=>l.value=!l.value),style:{height:"66.2px"}},null,8,["label","model-value"]))}}),Ld=Ye({name:"QToggle",props:{...ou,icon:String,iconColor:String},emits:lu,setup(t){function l(o,u){const s=i.computed(()=>(o.value===!0?t.checkedIcon:u.value===!0?t.indeterminateIcon:t.uncheckedIcon)||t.icon),f=i.computed(()=>o.value===!0?t.iconColor:null);return()=>[i.h("div",{class:"q-toggle__track"}),i.h("div",{class:"q-toggle__thumb absolute flex flex-center no-wrap"},s.value!==void 0?[i.h(vt,{name:s.value,color:f.value})]:void 0)]}return au("toggle",l)}}),Id=i.defineComponent({__name:"SimpleSwitch",props:i.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=i.useModel(t,"modelValue");return(o,u)=>(i.openBlock(),i.createBlock(Ld,{falseValue:0,trueValue:1,outlined:"",label:o.control.label,modelValue:l.value,"onUpdate:modelValue":u[0]||(u[0]=s=>l.value=s),leftLabel:"",color:"green-10",style:{height:"66.2px"}},null,8,["label","modelValue"]))}});let $o,mi=0;const Je=new Array(256);for(let t=0;t<256;t++)Je[t]=(t+256).toString(16).substring(1);const Pd=(()=>{const t=typeof crypto<"u"?crypto:typeof window<"u"?window.crypto||window.msCrypto:void 0;if(t!==void 0){if(t.randomBytes!==void 0)return t.randomBytes;if(t.getRandomValues!==void 0)return l=>{const o=new Uint8Array(l);return t.getRandomValues(o),o}}return l=>{const o=[];for(let u=l;u>0;u--)o.push(Math.floor(Math.random()*256));return o}})(),cu=4096;function Fo(){($o===void 0||mi+16>cu)&&(mi=0,$o=Pd(cu));const t=Array.prototype.slice.call($o,mi,mi+=16);return t[6]=t[6]&15|64,t[8]=t[8]&63|128,Je[t[0]]+Je[t[1]]+Je[t[2]]+Je[t[3]]+"-"+Je[t[4]]+Je[t[5]]+"-"+Je[t[6]]+Je[t[7]]+"-"+Je[t[8]]+Je[t[9]]+"-"+Je[t[10]]+Je[t[11]]+Je[t[12]]+Je[t[13]]+Je[t[14]]+Je[t[15]]}function Nd(t){return t??null}function fu(t,l){return t??(l===!0?`f_${Fo()}`:null)}function $d({getValue:t,required:l=!0}={}){if(mn.value===!0){const o=t!==void 0?i.ref(Nd(t())):i.ref(null);return l===!0&&o.value===null&&i.onMounted(()=>{o.value=`f_${Fo()}`}),t!==void 0&&i.watch(t,u=>{o.value=fu(u,l)}),o}return t!==void 0?i.computed(()=>fu(t(),l)):i.ref(`f_${Fo()}`)}const du=/^on[A-Z]/;function Fd(){const{attrs:t,vnode:l}=i.getCurrentInstance(),o={listeners:i.ref({}),attributes:i.ref({})};function u(){const s={},f={};for(const m in t)m!=="class"&&m!=="style"&&du.test(m)===!1&&(s[m]=t[m]);for(const m in l.props)du.test(m)===!0&&(f[m]=l.props[m]);o.attributes.value=s,o.listeners.value=f}return i.onBeforeUpdate(u),u(),o}const Dd="_q_",zd="_q_fo_";function Ud({validate:t,resetValidation:l,requiresQForm:o}){const u=i.inject(zd,!1);if(u!==!1){const{props:s,proxy:f}=i.getCurrentInstance();Object.assign(f,{validate:t,resetValidation:l}),i.watch(()=>s.disable,m=>{m===!0?(typeof l=="function"&&l(),u.unbindComponent(f)):u.bindComponent(f)}),i.onMounted(()=>{s.disable!==!0&&u.bindComponent(f)}),i.onBeforeUnmount(()=>{s.disable!==!0&&u.unbindComponent(f)})}else o===!0&&console.error("Parent QForm not found on useFormChild()!")}const hu=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,mu=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,gu=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,gi=/^rgb\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5])\)$/,pi=/^rgba\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/,Do={date:t=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(t),time:t=>/^([0-1]?\d|2[0-3]):[0-5]\d$/.test(t),fulltime:t=>/^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(t),timeOrFulltime:t=>/^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/.test(t),email:t=>/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t),hexColor:t=>hu.test(t),hexaColor:t=>mu.test(t),hexOrHexaColor:t=>gu.test(t),rgbColor:t=>gi.test(t),rgbaColor:t=>pi.test(t),rgbOrRgbaColor:t=>gi.test(t)||pi.test(t),hexOrRgbColor:t=>hu.test(t)||gi.test(t),hexaOrRgbaColor:t=>mu.test(t)||pi.test(t),anyColor:t=>gu.test(t)||gi.test(t)||pi.test(t)};function pu(t,l=250,o){let u=null;function s(){const f=arguments,m=()=>{u=null,t.apply(this,f)};u!==null&&clearTimeout(u),u=setTimeout(m,l)}return s.cancel=()=>{u!==null&&clearTimeout(u)},s}const Wd=[!0,!1,"ondemand"],Hd={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:t=>Wd.includes(t)}};function Kd(t,l){const{props:o,proxy:u}=i.getCurrentInstance(),s=i.ref(!1),f=i.ref(null),m=i.ref(!1);Ud({validate:W,resetValidation:R});let g=0,C;const A=i.computed(()=>o.rules!==void 0&&o.rules!==null&&o.rules.length!==0),v=i.computed(()=>o.disable!==!0&&A.value===!0&&l.value===!1),k=i.computed(()=>o.error===!0||s.value===!0),y=i.computed(()=>typeof o.errorMessage=="string"&&o.errorMessage.length!==0?o.errorMessage:f.value);i.watch(()=>o.modelValue,()=>{m.value=!0,v.value===!0&&o.lazyRules===!1&&O()});function w(){o.lazyRules!=="ondemand"&&v.value===!0&&m.value===!0&&O()}i.watch(()=>o.reactiveRules,G=>{G===!0?C===void 0&&(C=i.watch(()=>o.rules,w,{immediate:!0,deep:!0})):C!==void 0&&(C(),C=void 0)},{immediate:!0}),i.watch(()=>o.lazyRules,w),i.watch(t,G=>{G===!0?m.value=!0:v.value===!0&&o.lazyRules!=="ondemand"&&O()});function R(){g++,l.value=!1,m.value=!1,s.value=!1,f.value=null,O.cancel()}function W(G=o.modelValue){if(o.disable===!0||A.value===!1)return!0;const U=++g,D=l.value!==!0?()=>{m.value=!0}:()=>{},Q=(Y,I)=>{Y===!0&&D(),s.value=Y,f.value=I||null,l.value=!1},j=[];for(let Y=0;Y<o.rules.length;Y++){const I=o.rules[Y];let le;if(typeof I=="function"?le=I(G,Do):typeof I=="string"&&Do[I]!==void 0&&(le=Do[I](G)),le===!1||typeof le=="string")return Q(!0,le),!1;le!==!0&&le!==void 0&&j.push(le)}return j.length===0?(Q(!1),!0):(l.value=!0,Promise.all(j).then(Y=>{if(Y===void 0||Array.isArray(Y)===!1||Y.length===0)return U===g&&Q(!1),!0;const I=Y.find(le=>le===!1||typeof le=="string");return U===g&&Q(I!==void 0,I),I===void 0},Y=>(U===g&&(console.error(Y),Q(!0)),!1)))}const O=pu(W,0);return i.onBeforeUnmount(()=>{C!==void 0&&C(),O.cancel()}),Object.assign(u,{resetValidation:R,validate:W}),ci(u,"hasError",()=>k.value),{isDirtyModel:m,hasRules:A,hasError:k,errorMessage:y,validate:W,resetValidation:R}}let Mn=[],Mr=[];function vu(t){Mr=Mr.filter(l=>l!==t)}function Gd(t){vu(t),Mr.push(t)}function _u(t){vu(t),Mr.length===0&&Mn.length!==0&&(Mn[Mn.length-1](),Mn=[])}function vi(t){Mr.length===0?t():Mn.push(t)}function jd(t){Mn=Mn.filter(l=>l!==t)}function Vr(t){return t!=null&&(""+t).length!==0}const _i={...{...rr,...Hd,label:String,stackLabel:Boolean,hint:String,hideHint:Boolean,prefix:String,suffix:String,labelColor:String,color:String,bgColor:String,filled:Boolean,outlined:Boolean,borderless:Boolean,standout:[Boolean,String],square:Boolean,loading:Boolean,labelSlot:Boolean,bottomSlots:Boolean,hideBottomSpace:Boolean,rounded:Boolean,dense:Boolean,itemAligned:Boolean,counter:Boolean,clearable:Boolean,clearIcon:String,disable:Boolean,readonly:Boolean,autofocus:Boolean,for:String},maxlength:[Number,String]},zo=["update:modelValue","clear","focus","blur"];function Uo({requiredForAttr:t=!0,tagProp:l,changeEvent:o=!1}={}){const{props:u,proxy:s}=i.getCurrentInstance(),f=ir(u,s.$q),m=$d({required:t,getValue:()=>u.for});return{requiredForAttr:t,changeEvent:o,tag:l===!0?i.computed(()=>u.tag):{value:"label"},isDark:f,editable:i.computed(()=>u.disable!==!0&&u.readonly!==!0),innerLoading:i.ref(!1),focused:i.ref(!1),hasPopupOpen:!1,splitAttrs:Fd(),targetUid:m,rootRef:i.ref(null),targetRef:i.ref(null),controlRef:i.ref(null)}}function Wo(t){const{props:l,emit:o,slots:u,attrs:s,proxy:f}=i.getCurrentInstance(),{$q:m}=f;let g=null;t.hasValue===void 0&&(t.hasValue=i.computed(()=>Vr(l.modelValue))),t.emitValue===void 0&&(t.emitValue=H=>{o("update:modelValue",H)}),t.controlEvents===void 0&&(t.controlEvents={onFocusin:P,onFocusout:T}),Object.assign(t,{clearValue:V,onControlFocusin:P,onControlFocusout:T,focus:I}),t.computedCounter===void 0&&(t.computedCounter=i.computed(()=>{if(l.counter!==!1){const H=typeof l.modelValue=="string"||typeof l.modelValue=="number"?(""+l.modelValue).length:Array.isArray(l.modelValue)===!0?l.modelValue.length:0,ie=l.maxlength!==void 0?l.maxlength:l.maxValues;return H+(ie!==void 0?" / "+ie:"")}}));const{isDirtyModel:C,hasRules:A,hasError:v,errorMessage:k,resetValidation:y}=Kd(t.focused,t.innerLoading),w=t.floatingLabel!==void 0?i.computed(()=>l.stackLabel===!0||t.focused.value===!0||t.floatingLabel.value===!0):i.computed(()=>l.stackLabel===!0||t.focused.value===!0||t.hasValue.value===!0),R=i.computed(()=>l.bottomSlots===!0||l.hint!==void 0||A.value===!0||l.counter===!0||l.error!==null),W=i.computed(()=>l.filled===!0?"filled":l.outlined===!0?"outlined":l.borderless===!0?"borderless":l.standout?"standout":"standard"),O=i.computed(()=>`q-field row no-wrap items-start q-field--${W.value}`+(t.fieldClass!==void 0?` ${t.fieldClass.value}`:"")+(l.rounded===!0?" q-field--rounded":"")+(l.square===!0?" q-field--square":"")+(w.value===!0?" q-field--float":"")+(U.value===!0?" q-field--labeled":"")+(l.dense===!0?" q-field--dense":"")+(l.itemAligned===!0?" q-field--item-aligned q-item-type":"")+(t.isDark.value===!0?" q-field--dark":"")+(t.getControl===void 0?" q-field--auto-height":"")+(t.focused.value===!0?" q-field--focused":"")+(v.value===!0?" q-field--error":"")+(v.value===!0||t.focused.value===!0?" q-field--highlighted":"")+(l.hideBottomSpace!==!0&&R.value===!0?" q-field--with-bottom":"")+(l.disable===!0?" q-field--disabled":l.readonly===!0?" q-field--readonly":"")),G=i.computed(()=>"q-field__control relative-position row no-wrap"+(l.bgColor!==void 0?` bg-${l.bgColor}`:"")+(v.value===!0?" text-negative":typeof l.standout=="string"&&l.standout.length!==0&&t.focused.value===!0?` ${l.standout}`:l.color!==void 0?` text-${l.color}`:"")),U=i.computed(()=>l.labelSlot===!0||l.label!==void 0),D=i.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(l.labelColor!==void 0&&v.value!==!0?` text-${l.labelColor}`:"")),Q=i.computed(()=>({id:t.targetUid.value,editable:t.editable.value,focused:t.focused.value,floatingLabel:w.value,modelValue:l.modelValue,emitValue:t.emitValue})),j=i.computed(()=>{const H={};return t.targetUid.value&&(H.for=t.targetUid.value),l.disable===!0&&(H["aria-disabled"]="true"),H});function Y(){const H=document.activeElement;let ie=t.targetRef!==void 0&&t.targetRef.value;ie&&(H===null||H.id!==t.targetUid.value)&&(ie.hasAttribute("tabindex")===!0||(ie=ie.querySelector("[tabindex]")),ie&&ie!==H&&ie.focus({preventScroll:!0}))}function I(){vi(Y)}function le(){jd(Y);const H=document.activeElement;H!==null&&t.rootRef.value.contains(H)&&H.blur()}function P(H){g!==null&&(clearTimeout(g),g=null),t.editable.value===!0&&t.focused.value===!1&&(t.focused.value=!0,o("focus",H))}function T(H,ie){g!==null&&clearTimeout(g),g=setTimeout(()=>{g=null,!(document.hasFocus()===!0&&(t.hasPopupOpen===!0||t.controlRef===void 0||t.controlRef.value===null||t.controlRef.value.contains(document.activeElement)!==!1))&&(t.focused.value===!0&&(t.focused.value=!1,o("blur",H)),ie!==void 0&&ie())})}function V(H){Ke(H),m.platform.is.mobile!==!0?(t.targetRef!==void 0&&t.targetRef.value||t.rootRef.value).focus():t.rootRef.value.contains(document.activeElement)===!0&&document.activeElement.blur(),l.type==="file"&&(t.inputRef.value.value=null),o("update:modelValue",null),t.changeEvent===!0&&o("change",null),o("clear",l.modelValue),i.nextTick(()=>{const ie=C.value;y(),C.value=ie})}function S(H){[13,32].includes(H.keyCode)&&V(H)}function Z(){const H=[];return u.prepend!==void 0&&H.push(i.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:It},u.prepend())),H.push(i.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},F())),v.value===!0&&l.noErrorIcon===!1&&H.push(se("error",[i.h(vt,{name:m.iconSet.field.error,color:"negative"})])),l.loading===!0||t.innerLoading.value===!0?H.push(se("inner-loading-append",u.loading!==void 0?u.loading():[i.h(Vo,{color:l.color})])):l.clearable===!0&&t.hasValue.value===!0&&t.editable.value===!0&&H.push(se("inner-clearable-append",[i.h(vt,{class:"q-field__focusable-action",name:l.clearIcon||m.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":m.lang.label.clear,onKeyup:S,onClick:V})])),u.append!==void 0&&H.push(i.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:It},u.append())),t.getInnerAppend!==void 0&&H.push(se("inner-append",t.getInnerAppend())),t.getControlChild!==void 0&&H.push(t.getControlChild()),H}function F(){const H=[];return l.prefix!==void 0&&l.prefix!==null&&H.push(i.h("div",{class:"q-field__prefix no-pointer-events row items-center"},l.prefix)),t.getShadowControl!==void 0&&t.hasShadow.value===!0&&H.push(t.getShadowControl()),t.getControl!==void 0?H.push(t.getControl()):u.rawControl!==void 0?H.push(u.rawControl()):u.control!==void 0&&H.push(i.h("div",{ref:t.targetRef,class:"q-field__native row",tabindex:-1,...t.splitAttrs.attributes.value,"data-autofocus":l.autofocus===!0||void 0},u.control(Q.value))),U.value===!0&&H.push(i.h("div",{class:D.value},pt(u.label,l.label))),l.suffix!==void 0&&l.suffix!==null&&H.push(i.h("div",{class:"q-field__suffix no-pointer-events row items-center"},l.suffix)),H.concat(pt(u.default))}function ae(){let H,ie;v.value===!0?k.value!==null?(H=[i.h("div",{role:"alert"},k.value)],ie=`q--slot-error-${k.value}`):(H=pt(u.error),ie="q--slot-error"):(l.hideHint!==!0||t.focused.value===!0)&&(l.hint!==void 0?(H=[i.h("div",l.hint)],ie=`q--slot-hint-${l.hint}`):(H=pt(u.hint),ie="q--slot-hint"));const ge=l.counter===!0||u.counter!==void 0;if(l.hideBottomSpace===!0&&ge===!1&&H===void 0)return;const q=i.h("div",{key:ie,class:"q-field__messages col"},H);return i.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(l.hideBottomSpace!==!0?"animated":"stale"),onClick:It},[l.hideBottomSpace===!0?q:i.h(i.Transition,{name:"q-transition--field-message"},()=>q),ge===!0?i.h("div",{class:"q-field__counter"},u.counter!==void 0?u.counter():t.computedCounter.value):null])}function se(H,ie){return ie===null?null:i.h("div",{key:H,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},ie)}let ce=!1;return i.onDeactivated(()=>{ce=!0}),i.onActivated(()=>{ce===!0&&l.autofocus===!0&&f.focus()}),l.autofocus===!0&&i.onMounted(()=>{f.focus()}),i.onBeforeUnmount(()=>{g!==null&&clearTimeout(g)}),Object.assign(f,{focus:I,blur:le}),function(){const ie=t.getControl===void 0&&u.control===void 0?{...t.splitAttrs.attributes.value,"data-autofocus":l.autofocus===!0||void 0,...j.value}:j.value;return i.h(t.tag.value,{ref:t.rootRef,class:[O.value,s.class],style:s.style,...ie},[u.before!==void 0?i.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:It},u.before()):null,i.h("div",{class:"q-field__inner relative-position col self-stretch"},[i.h("div",{ref:t.controlRef,class:G.value,tabindex:-1,...t.controlEvents},Z()),R.value===!0?ae():null]),u.after!==void 0?i.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:It},u.after()):null])}}function Ho(t){return t!==Object(t)||t.isComposing===!0||t.qKeyEvent===!0}function Vn(t,l){return Ho(t)===!0?!1:[].concat(l).includes(t.keyCode)}const bu={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},bi={"#":{pattern:"[\\d]",negate:"[^\\d]"},S:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]"},N:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]"},A:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:t=>t.toLocaleUpperCase()},a:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:t=>t.toLocaleLowerCase()},X:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:t=>t.toLocaleUpperCase()},x:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:t=>t.toLocaleLowerCase()}},yu=Object.keys(bi);yu.forEach(t=>{bi[t].regex=new RegExp(bi[t].pattern)});const Qd=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+yu.join("")+"])|(.)","g"),wu=/[.*+?^${}()|[\]\\]/g,We="",Yd={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function Zd(t,l,o,u){let s,f,m,g,C,A;const v=i.ref(null),k=i.ref(w());function y(){return t.autogrow===!0||["textarea","text","search","url","tel","password"].includes(t.type)}i.watch(()=>t.type+t.autogrow,W),i.watch(()=>t.mask,P=>{if(P!==void 0)O(k.value,!0);else{const T=I(k.value);W(),t.modelValue!==T&&l("update:modelValue",T)}}),i.watch(()=>t.fillMask+t.reverseFillMask,()=>{v.value===!0&&O(k.value,!0)}),i.watch(()=>t.unmaskedValue,()=>{v.value===!0&&O(k.value)});function w(){if(W(),v.value===!0){const P=j(I(t.modelValue));return t.fillMask!==!1?le(P):P}return t.modelValue}function R(P){if(P<s.length)return s.slice(-P);let T="",V=s;const S=V.indexOf(We);if(S!==-1){for(let Z=P-V.length;Z>0;Z--)T+=We;V=V.slice(0,S)+T+V.slice(S)}return V}function W(){if(v.value=t.mask!==void 0&&t.mask.length!==0&&y(),v.value===!1){g=void 0,s="",f="";return}const P=bu[t.mask]===void 0?t.mask:bu[t.mask],T=typeof t.fillMask=="string"&&t.fillMask.length!==0?t.fillMask.slice(0,1):"_",V=T.replace(wu,"\\$&"),S=[],Z=[],F=[];let ae=t.reverseFillMask===!0,se="",ce="";P.replace(Qd,(q,B,oe,ve,_e)=>{if(ve!==void 0){const K=bi[ve];F.push(K),ce=K.negate,ae===!0&&(Z.push("(?:"+ce+"+)?("+K.pattern+"+)?(?:"+ce+"+)?("+K.pattern+"+)?"),ae=!1),Z.push("(?:"+ce+"+)?("+K.pattern+")?")}else if(oe!==void 0)se="\\"+(oe==="\\"?"":oe),F.push(oe),S.push("([^"+se+"]+)?"+se+"?");else{const K=B!==void 0?B:_e;se=K==="\\"?"\\\\\\\\":K.replace(wu,"\\\\$&"),F.push(K),S.push("([^"+se+"]+)?"+se+"?")}});const H=new RegExp("^"+S.join("")+"("+(se===""?".":"[^"+se+"]")+"+)?"+(se===""?"":"["+se+"]*")+"$"),ie=Z.length-1,ge=Z.map((q,B)=>B===0&&t.reverseFillMask===!0?new RegExp("^"+V+"*"+q):B===ie?new RegExp("^"+q+"("+(ce===""?".":ce)+"+)?"+(t.reverseFillMask===!0?"$":V+"*")):new RegExp("^"+q));m=F,g=q=>{const B=H.exec(t.reverseFillMask===!0?q:q.slice(0,F.length+1));B!==null&&(q=B.slice(1).join(""));const oe=[],ve=ge.length;for(let _e=0,K=q;_e<ve;_e++){const ne=ge[_e].exec(K);if(ne===null)break;K=K.slice(ne.shift().length),oe.push(...ne)}return oe.length!==0?oe.join(""):q},s=F.map(q=>typeof q=="string"?q:We).join(""),f=s.split(We).join(T)}function O(P,T,V){const S=u.value,Z=S.selectionEnd,F=S.value.length-Z,ae=I(P);T===!0&&W();const se=j(ae),ce=t.fillMask!==!1?le(se):se,H=k.value!==ce;S.value!==ce&&(S.value=ce),H===!0&&(k.value=ce),document.activeElement===S&&i.nextTick(()=>{if(ce===f){const ge=t.reverseFillMask===!0?f.length:0;S.setSelectionRange(ge,ge,"forward");return}if(V==="insertFromPaste"&&t.reverseFillMask!==!0){const ge=S.selectionEnd;let q=Z-1;for(let B=C;B<=q&&B<ge;B++)s[B]!==We&&q++;U.right(S,q);return}if(["deleteContentBackward","deleteContentForward"].indexOf(V)!==-1){const ge=t.reverseFillMask===!0?Z===0?ce.length>se.length?1:0:Math.max(0,ce.length-(ce===f?0:Math.min(se.length,F)+1))+1:Z;S.setSelectionRange(ge,ge,"forward");return}if(t.reverseFillMask===!0)if(H===!0){const ge=Math.max(0,ce.length-(ce===f?0:Math.min(se.length,F+1)));ge===1&&Z===1?S.setSelectionRange(ge,ge,"forward"):U.rightReverse(S,ge)}else{const ge=ce.length-F;S.setSelectionRange(ge,ge,"backward")}else if(H===!0){const ge=Math.max(0,s.indexOf(We),Math.min(se.length,Z)-1);U.right(S,ge)}else{const ge=Z-1;U.right(S,ge)}});const ie=t.unmaskedValue===!0?I(ce):ce;String(t.modelValue)!==ie&&(t.modelValue!==null||ie!=="")&&o(ie,!0)}function G(P,T,V){const S=j(I(P.value));T=Math.max(0,s.indexOf(We),Math.min(S.length,T)),C=T,P.setSelectionRange(T,V,"forward")}const U={left(P,T){const V=s.slice(T-1).indexOf(We)===-1;let S=Math.max(0,T-1);for(;S>=0;S--)if(s[S]===We){T=S,V===!0&&T++;break}if(S<0&&s[T]!==void 0&&s[T]!==We)return U.right(P,0);T>=0&&P.setSelectionRange(T,T,"backward")},right(P,T){const V=P.value.length;let S=Math.min(V,T+1);for(;S<=V;S++)if(s[S]===We){T=S;break}else s[S-1]===We&&(T=S);if(S>V&&s[T-1]!==void 0&&s[T-1]!==We)return U.left(P,V);P.setSelectionRange(T,T,"forward")},leftReverse(P,T){const V=R(P.value.length);let S=Math.max(0,T-1);for(;S>=0;S--)if(V[S-1]===We){T=S;break}else if(V[S]===We&&(T=S,S===0))break;if(S<0&&V[T]!==void 0&&V[T]!==We)return U.rightReverse(P,0);T>=0&&P.setSelectionRange(T,T,"backward")},rightReverse(P,T){const V=P.value.length,S=R(V),Z=S.slice(0,T+1).indexOf(We)===-1;let F=Math.min(V,T+1);for(;F<=V;F++)if(S[F-1]===We){T=F,T>0&&Z===!0&&T--;break}if(F>V&&S[T-1]!==void 0&&S[T-1]!==We)return U.leftReverse(P,V);P.setSelectionRange(T,T,"forward")}};function D(P){l("click",P),A=void 0}function Q(P){if(l("keydown",P),Ho(P)===!0||P.altKey===!0)return;const T=u.value,V=T.selectionStart,S=T.selectionEnd;if(P.shiftKey||(A=void 0),P.keyCode===37||P.keyCode===39){P.shiftKey&&A===void 0&&(A=T.selectionDirection==="forward"?V:S);const Z=U[(P.keyCode===39?"right":"left")+(t.reverseFillMask===!0?"Reverse":"")];if(P.preventDefault(),Z(T,A===V?S:V),P.shiftKey){const F=T.selectionStart;T.setSelectionRange(Math.min(A,F),Math.max(A,F),"forward")}}else P.keyCode===8&&t.reverseFillMask!==!0&&V===S?(U.left(T,V),T.setSelectionRange(T.selectionStart,S,"backward")):P.keyCode===46&&t.reverseFillMask===!0&&V===S&&(U.rightReverse(T,S),T.setSelectionRange(V,T.selectionEnd,"forward"))}function j(P){if(P==null||P==="")return"";if(t.reverseFillMask===!0)return Y(P);const T=m;let V=0,S="";for(let Z=0;Z<T.length;Z++){const F=P[V],ae=T[Z];if(typeof ae=="string")S+=ae,F===ae&&V++;else if(F!==void 0&&ae.regex.test(F))S+=ae.transform!==void 0?ae.transform(F):F,V++;else return S}return S}function Y(P){const T=m,V=s.indexOf(We);let S=P.length-1,Z="";for(let F=T.length-1;F>=0&&S!==-1;F--){const ae=T[F];let se=P[S];if(typeof ae=="string")Z=ae+Z,se===ae&&S--;else if(se!==void 0&&ae.regex.test(se))do Z=(ae.transform!==void 0?ae.transform(se):se)+Z,S--,se=P[S];while(V===F&&se!==void 0&&ae.regex.test(se));else return Z}return Z}function I(P){return typeof P!="string"||g===void 0?typeof P=="number"?g(""+P):P:g(P)}function le(P){return f.length-P.length<=0?P:t.reverseFillMask===!0&&P.length!==0?f.slice(0,-P.length)+P:P+f.slice(P.length)}return{innerValue:k,hasMask:v,moveCursorForPaste:G,updateMaskValue:O,onMaskedKeydown:Q,onMaskedClick:D}}function Xd(t,l){function o(){const u=t.modelValue;try{const s="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(u)===u&&("length"in u?Array.from(u):[u]).forEach(f=>{s.items.add(f)}),{files:s.files}}catch{return{files:void 0}}}return i.computed(()=>{if(t.type==="file")return o()})}const Jd=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,eh=/[\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,th=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,nh=/[a-z0-9_ -]$/i;function Su(t){return function(o){if(o.type==="compositionend"||o.type==="change"){if(o.target.qComposing!==!0)return;o.target.qComposing=!1,t(o)}else o.type==="compositionupdate"&&o.target.qComposing!==!0&&typeof o.data=="string"&&(gt.is.firefox===!0?nh.test(o.data)===!1:Jd.test(o.data)===!0||eh.test(o.data)===!0||th.test(o.data)===!0)===!0&&(o.target.qComposing=!0)}}const xu=Ye({name:"QInput",inheritAttrs:!1,props:{..._i,...Yd,...Po,modelValue:[String,Number,FileList],shadowText:String,type:{type:String,default:"text"},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...zo,"paste","change","keydown","click","animationend"],setup(t,{emit:l,attrs:o}){const{proxy:u}=i.getCurrentInstance(),{$q:s}=u,f={};let m=NaN,g,C,A=null,v;const k=i.ref(null),y=nu(t),{innerValue:w,hasMask:R,moveCursorForPaste:W,updateMaskValue:O,onMaskedKeydown:G,onMaskedClick:U}=Zd(t,l,se,k),D=Xd(t),Q=i.computed(()=>Vr(w.value)),j=Su(F),Y=Uo({changeEvent:!0}),I=i.computed(()=>t.type==="textarea"||t.autogrow===!0),le=i.computed(()=>I.value===!0||["text","search","url","tel","password"].includes(t.type)),P=i.computed(()=>{const B={...Y.splitAttrs.listeners.value,onInput:F,onPaste:Z,onChange:H,onBlur:ie,onFocus:Kt};return B.onCompositionstart=B.onCompositionupdate=B.onCompositionend=j,R.value===!0&&(B.onKeydown=G,B.onClick=U),t.autogrow===!0&&(B.onAnimationend=ae),B}),T=i.computed(()=>{const B={tabindex:0,"data-autofocus":t.autofocus===!0||void 0,rows:t.type==="textarea"?6:void 0,"aria-label":t.label,name:y.value,...Y.splitAttrs.attributes.value,id:Y.targetUid.value,maxlength:t.maxlength,disabled:t.disable===!0,readonly:t.readonly===!0};return I.value===!1&&(B.type=t.type),t.autogrow===!0&&(B.rows=1),B});i.watch(()=>t.type,()=>{k.value&&(k.value.value=t.modelValue)}),i.watch(()=>t.modelValue,B=>{if(R.value===!0){if(C===!0&&(C=!1,String(B)===m))return;O(B)}else w.value!==B&&(w.value=B,t.type==="number"&&f.hasOwnProperty("value")===!0&&(g===!0?g=!1:delete f.value));t.autogrow===!0&&i.nextTick(ce)}),i.watch(()=>t.autogrow,B=>{B===!0?i.nextTick(ce):k.value!==null&&o.rows>0&&(k.value.style.height="auto")}),i.watch(()=>t.dense,()=>{t.autogrow===!0&&i.nextTick(ce)});function V(){vi(()=>{const B=document.activeElement;k.value!==null&&k.value!==B&&(B===null||B.id!==Y.targetUid.value)&&k.value.focus({preventScroll:!0})})}function S(){k.value!==null&&k.value.select()}function Z(B){if(R.value===!0&&t.reverseFillMask!==!0){const oe=B.target;W(oe,oe.selectionStart,oe.selectionEnd)}l("paste",B)}function F(B){if(!B||!B.target)return;if(t.type==="file"){l("update:modelValue",B.target.files);return}const oe=B.target.value;if(B.target.qComposing===!0){f.value=oe;return}if(R.value===!0)O(oe,!1,B.inputType);else if(se(oe),le.value===!0&&B.target===document.activeElement){const{selectionStart:ve,selectionEnd:_e}=B.target;ve!==void 0&&_e!==void 0&&i.nextTick(()=>{B.target===document.activeElement&&oe.indexOf(B.target.value)===0&&B.target.setSelectionRange(ve,_e)})}t.autogrow===!0&&ce()}function ae(B){l("animationend",B),ce()}function se(B,oe){v=()=>{A=null,t.type!=="number"&&f.hasOwnProperty("value")===!0&&delete f.value,t.modelValue!==B&&m!==B&&(m=B,oe===!0&&(C=!0),l("update:modelValue",B),i.nextTick(()=>{m===B&&(m=NaN)})),v=void 0},t.type==="number"&&(g=!0,f.value=B),t.debounce!==void 0?(A!==null&&clearTimeout(A),f.value=B,A=setTimeout(v,t.debounce)):v()}function ce(){requestAnimationFrame(()=>{const B=k.value;if(B!==null){const oe=B.parentNode.style,{scrollTop:ve}=B,{overflowY:_e,maxHeight:K}=s.platform.is.firefox===!0?{}:window.getComputedStyle(B),ne=_e!==void 0&&_e!=="scroll";ne===!0&&(B.style.overflowY="hidden"),oe.marginBottom=B.scrollHeight-1+"px",B.style.height="1px",B.style.height=B.scrollHeight+"px",ne===!0&&(B.style.overflowY=parseInt(K,10)<B.scrollHeight?"auto":"hidden"),oe.marginBottom="",B.scrollTop=ve}})}function H(B){j(B),A!==null&&(clearTimeout(A),A=null),v!==void 0&&v(),l("change",B.target.value)}function ie(B){B!==void 0&&Kt(B),A!==null&&(clearTimeout(A),A=null),v!==void 0&&v(),g=!1,C=!1,delete f.value,t.type!=="file"&&setTimeout(()=>{k.value!==null&&(k.value.value=w.value!==void 0?w.value:"")})}function ge(){return f.hasOwnProperty("value")===!0?f.value:w.value!==void 0?w.value:""}i.onBeforeUnmount(()=>{ie()}),i.onMounted(()=>{t.autogrow===!0&&ce()}),Object.assign(Y,{innerValue:w,fieldClass:i.computed(()=>`q-${I.value===!0?"textarea":"input"}`+(t.autogrow===!0?" q-textarea--autogrow":"")),hasShadow:i.computed(()=>t.type!=="file"&&typeof t.shadowText=="string"&&t.shadowText.length!==0),inputRef:k,emitValue:se,hasValue:Q,floatingLabel:i.computed(()=>Q.value===!0&&(t.type!=="number"||isNaN(w.value)===!1)||Vr(t.displayValue)),getControl:()=>i.h(I.value===!0?"textarea":"input",{ref:k,class:["q-field__native q-placeholder",t.inputClass],style:t.inputStyle,...T.value,...P.value,...t.type!=="file"?{value:ge()}:D.value}),getShadowControl:()=>i.h("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(I.value===!0?"":" text-no-wrap")},[i.h("span",{class:"invisible"},ge()),i.h("span",t.shadowText)])});const q=Wo(Y);return Object.assign(u,{focus:V,select:S,getNativeElement:()=>k.value}),ci(u,"nativeEl",()=>k.value),q}}),yi=Ye({name:"QCard",props:{...rr,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(t,{slots:l}){const{proxy:{$q:o}}=i.getCurrentInstance(),u=ir(t,o),s=i.computed(()=>"q-card"+(u.value===!0?" q-card--dark q-dark":"")+(t.bordered===!0?" q-card--bordered":"")+(t.square===!0?" q-card--square no-border-radius":"")+(t.flat===!0?" q-card--flat no-shadow":""));return()=>i.h(t.tag,{class:s.value},pt(l.default))}}),rh=i.defineComponent({__name:"WinInput",props:i.mergeModels({modelValue:{},rules:{},label:{},placeholder:{},mask:{},prefix:{},suffix:{},hint:{},maxlength:{},type:{default:"text"},transparent:{type:Boolean,default:!0},width:{default:"100%"},height:{default:"70px"},inputHeight:{},readonly:{type:Boolean},fillMask:{type:Boolean,default:!1},minWidth:{default:"200px"},inputStyle:{default:"resize: none"},labelStyle:{default:"padding-left: 5px"},hintOptions:{default:{color:"grey-7",position:"right"}},counter:{type:Boolean,default:!1},dense:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=i.useModel(t,"modelValue"),o=t,u=i.ref(!1),s=i.computed(()=>o.transparent?"glass-card":"win-card"),f=i.computed(()=>o.label===""?void 0:o.label),m=i.computed(()=>{let y="width: 100%; padding-left: 10px; padding-right: 10px;";return o.inputHeight&&(y+="height: "+o.inputHeight),y}),g=i.computed(()=>l.value||u.value?"17.5px":"15px"),C=i.ref(null);function A(){C.value.focus()}function v(){u.value=!0}function k(){u.value=!1}return(y,w)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(yi,{onClick:A,class:i.normalizeClass(`${s.value} row items-center ${l.value&&y.label||u.value&&y.label?"q-pt-md":""} `),style:i.normalizeStyle({minHeight:y.height,width:y.width,maxWidth:"calc(100vw - 32px)",minWidth:y.minWidth,margin:"auto"})},{default:i.withCtx(()=>[i.renderSlot(y.$slots,"fixed-label",{class:"self-start"}),i.createVNode(xu,{modelValue:l.value,"onUpdate:modelValue":w[0]||(w[0]=R=>l.value=R),ref_key:"inputRef",ref:C,"label-color":"black","input-class":`text-black ${f.value?"":"text-center ww-title"}`,"input-style":y.inputStyle,style:i.normalizeStyle(m.value),readonly:y.readonly,mask:y.mask,prefix:y.prefix,label:f.value,type:y.type,suffix:y.suffix,counter:y.counter,maxlength:y.maxlength,rules:y.rules,borderless:"",dense:"","unmasked-value":"","reverse-fill-mask":"",placeholder:y.placeholder,onFocus:v,onBlur:k},{label:i.withCtx(()=>[!y.label||y.label!=""?(i.openBlock(),i.createElementBlock("div",{key:0,style:i.normalizeStyle(`padding-bottom: 30px; transition: 0.5s ease; font-size: ${g.value};`+y.labelStyle)},i.toDisplayString(y.label)+" "+i.toDisplayString(y.required&&!y.readonly?"*":""),5)):i.createCommentVNode("",!0)]),append:i.withCtx(()=>[i.renderSlot(y.$slots,"append")]),_:3},8,["modelValue","input-class","input-style","style","readonly","mask","prefix","label","type","suffix","counter","maxlength","rules","placeholder"]),i.renderSlot(y.$slots,"bottom")]),_:3},8,["class","style"]),y.hint?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(`text-${y.hintOptions.position} text-${y.hintOptions.color} text-caption q-mt-xl q-pt-xl q-pl-sm`)},i.toDisplayString(y.hint),3)):i.createCommentVNode("",!0)],64))}}),ih={class:"ww-subtitle text-center q-mb-md text-grey-9",style:{"font-weight":"600"}},oh=i.defineComponent({__name:"ControlLabel",props:{label:{}},setup(t){return(l,o)=>(i.openBlock(),i.createElementBlock("div",ih,i.toDisplayString(l.label),1))}}),lh={style:{"max-width":"400px"},class:"text-center"},ah={style:{"font-size":"16px"}},uh={style:{"font-size":"16px"}},Ko=gn(i.defineComponent({__name:"InputControl",props:i.mergeModels({control:{},innerLabel:{type:Boolean,default:!1}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=t,o=i.ref(null),u=i.computed(()=>{var f;return(f=l.control.controlType)==null?void 0:f.split("_")[1]}),s=i.useModel(t,"modelValue");return i.onMounted(()=>{var f;(f=o.value)==null||f.focus()}),(f,m)=>(i.openBlock(),i.createElementBlock("div",lh,[!f.innerLabel&&f.control.label?(i.openBlock(),i.createBlock(oh,{key:0,label:f.control.label},null,8,["label"])):i.createCommentVNode("",!0),i.createVNode(rh,{modelValue:s.value,"onUpdate:modelValue":m[0]||(m[0]=g=>s.value=g),width:"250px",mask:u.value==="number"?"###.###.###.###.###":void 0,label:f.innerLabel?f.control.label:void 0,inputStyle:{textAlign:(u.value==="number","center")},ref_key:"inputRef",ref:o},i.createSlots({_:2},[f.control.prefix?{name:"prepend",fn:i.withCtx(()=>[i.createElementVNode("span",ah,i.toDisplayString(f.control.prefix),1)]),key:"0"}:void 0,f.control.suffix?{name:"append",fn:i.withCtx(()=>[i.createElementVNode("span",uh,i.toDisplayString(f.control.suffix),1)]),key:"1"}:void 0]),1032,["modelValue","mask","label","inputStyle"])]))}}),[["__scopeId","data-v-8f5284d3"]]);function Go(t,l){const o=t.style;for(const u in l)o[u]=l[u]}function sh(t){if(t==null)return;if(typeof t=="string")try{return document.querySelector(t)||void 0}catch{return}const l=i.unref(t);if(l)return l.$el||l}function Cu(t,l){if(t==null||t.contains(l)===!0)return!0;for(let o=t.nextElementSibling;o!==null;o=o.nextElementSibling)if(o.contains(l))return!0;return!1}function ch(t,l=250){let o=!1,u;return function(){return o===!1&&(o=!0,setTimeout(()=>{o=!1},l),u=t.apply(this,arguments)),u}}function ku(t,l,o,u){o.modifiers.stop===!0&&Kt(t);const s=o.modifiers.color;let f=o.modifiers.center;f=f===!0||u===!0;const m=document.createElement("span"),g=document.createElement("span"),C=ru(t),{left:A,top:v,width:k,height:y}=l.getBoundingClientRect(),w=Math.sqrt(k*k+y*y),R=w/2,W=`${(k-w)/2}px`,O=f?W:`${C.left-A-R}px`,G=`${(y-w)/2}px`,U=f?G:`${C.top-v-R}px`;g.className="q-ripple__inner",Go(g,{height:`${w}px`,width:`${w}px`,transform:`translate3d(${O},${U},0) scale3d(.2,.2,1)`,opacity:0}),m.className=`q-ripple${s?" text-"+s:""}`,m.setAttribute("dir","ltr"),m.appendChild(g),l.appendChild(m);const D=()=>{m.remove(),clearTimeout(Q)};o.abort.push(D);let Q=setTimeout(()=>{g.classList.add("q-ripple__inner--enter"),g.style.transform=`translate3d(${W},${G},0) scale3d(1,1,1)`,g.style.opacity=.2,Q=setTimeout(()=>{g.classList.remove("q-ripple__inner--enter"),g.classList.add("q-ripple__inner--leave"),g.style.opacity=0,Q=setTimeout(()=>{m.remove(),o.abort.splice(o.abort.indexOf(D),1)},275)},250)},50)}function Eu(t,{modifiers:l,value:o,arg:u}){const s=Object.assign({},t.cfg.ripple,l,o);t.modifiers={early:s.early===!0,stop:s.stop===!0,center:s.center===!0,color:s.color||u,keyCodes:[].concat(s.keyCodes||13)}}const Au=Wa({name:"ripple",beforeMount(t,l){const o=l.instance.$.appContext.config.globalProperties.$q.config||{};if(o.ripple===!1)return;const u={cfg:o,enabled:l.value!==!1,modifiers:{},abort:[],start(s){u.enabled===!0&&s.qSkipRipple!==!0&&s.type===(u.modifiers.early===!0?"pointerdown":"click")&&ku(s,t,u,s.qKeyEvent===!0)},keystart:ch(s=>{u.enabled===!0&&s.qSkipRipple!==!0&&Vn(s,u.modifiers.keyCodes)===!0&&s.type===`key${u.modifiers.early===!0?"down":"up"}`&&ku(s,t,u,!0)},300)};Eu(u,l),t.__qripple=u,No(u,"main",[[t,"pointerdown","start","passive"],[t,"click","start","passive"],[t,"keydown","keystart","passive"],[t,"keyup","keystart","passive"]])},updated(t,l){if(l.oldValue!==l.value){const o=t.__qripple;o!==void 0&&(o.enabled=l.value!==!1,o.enabled===!0&&Object(l.value)===l.value&&Eu(o,l))}},beforeUnmount(t){const l=t.__qripple;l!==void 0&&(l.abort.forEach(o=>{o()}),iu(l,"main"),delete t._qripple)}}),Tu={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},fh=Object.keys(Tu),dh={align:{type:String,validator:t=>fh.includes(t)}};function hh(t){return i.computed(()=>{const l=t.align===void 0?t.vertical===!0?"stretch":"left":t.align;return`${t.vertical===!0?"items":"justify"}-${Tu[l]}`})}function Bu(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}function Ru(t,l){return(t.aliasOf||t)===(l.aliasOf||l)}function mh(t,l){for(const o in l){const u=l[o],s=t[o];if(typeof u=="string"){if(u!==s)return!1}else if(Array.isArray(s)===!1||s.length!==u.length||u.some((f,m)=>f!==s[m]))return!1}return!0}function Ou(t,l){return Array.isArray(l)===!0?t.length===l.length&&t.every((o,u)=>o===l[u]):t.length===1&&t[0]===l}function gh(t,l){return Array.isArray(t)===!0?Ou(t,l):Array.isArray(l)===!0?Ou(l,t):t===l}function ph(t,l){if(Object.keys(t).length!==Object.keys(l).length)return!1;for(const o in t)if(gh(t[o],l[o])===!1)return!1;return!0}const qu={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},vh={...qu,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function Mu({fallbackTag:t,useDisableForRouterLinkProps:l=!0}={}){const o=i.getCurrentInstance(),{props:u,proxy:s,emit:f}=o,m=Qa(o),g=i.computed(()=>u.disable!==!0&&u.href!==void 0),C=l===!0?i.computed(()=>m===!0&&u.disable!==!0&&g.value!==!0&&u.to!==void 0&&u.to!==null&&u.to!==""):i.computed(()=>m===!0&&g.value!==!0&&u.to!==void 0&&u.to!==null&&u.to!==""),A=i.computed(()=>C.value===!0?U(u.to):null),v=i.computed(()=>A.value!==null),k=i.computed(()=>g.value===!0||v.value===!0),y=i.computed(()=>u.type==="a"||k.value===!0?"a":u.tag||t||"div"),w=i.computed(()=>g.value===!0?{href:u.href,target:u.target}:v.value===!0?{href:A.value.href,target:u.target}:{}),R=i.computed(()=>{if(v.value===!1)return-1;const{matched:j}=A.value,{length:Y}=j,I=j[Y-1];if(I===void 0)return-1;const le=s.$route.matched;if(le.length===0)return-1;const P=le.findIndex(Ru.bind(null,I));if(P!==-1)return P;const T=Bu(j[Y-2]);return Y>1&&Bu(I)===T&&le[le.length-1].path!==T?le.findIndex(Ru.bind(null,j[Y-2])):P}),W=i.computed(()=>v.value===!0&&R.value!==-1&&mh(s.$route.params,A.value.params)),O=i.computed(()=>W.value===!0&&R.value===s.$route.matched.length-1&&ph(s.$route.params,A.value.params)),G=i.computed(()=>v.value===!0?O.value===!0?` ${u.exactActiveClass} ${u.activeClass}`:u.exact===!0?"":W.value===!0?` ${u.activeClass}`:"":"");function U(j){try{return s.$router.resolve(j)}catch{}return null}function D(j,{returnRouterError:Y,to:I=u.to,replace:le=u.replace}={}){if(u.disable===!0)return j.preventDefault(),Promise.resolve(!1);if(j.metaKey||j.altKey||j.ctrlKey||j.shiftKey||j.button!==void 0&&j.button!==0||u.target==="_blank")return Promise.resolve(!1);j.preventDefault();const P=s.$router[le===!0?"replace":"push"](I);return Y===!0?P:P.then(()=>{}).catch(()=>{})}function Q(j){if(v.value===!0){const Y=I=>D(j,I);f("click",j,Y),j.defaultPrevented!==!0&&Y()}else f("click",j)}return{hasRouterLink:v,hasHrefLink:g,hasLink:k,linkTag:y,resolvedLink:A,linkIsActive:W,linkIsExactActive:O,linkClass:G,linkAttrs:w,getLink:U,navigateToRouterLink:D,navigateOnClick:Q}}const Vu={none:0,xs:4,sm:8,md:16,lg:24,xl:32},_h={xs:8,sm:10,md:14,lg:20,xl:24},bh=["button","submit","reset"],yh=/[^\s]\/[^\s]/,wh=["flat","outline","push","unelevated"];function Sh(t,l){return t.flat===!0?"flat":t.outline===!0?"outline":t.push===!0?"push":t.unelevated===!0?"unelevated":l}const xh={...{...fi,...qu,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...wh.reduce((t,l)=>(t[l]=Boolean)&&t,{}),square:Boolean,rounded:Boolean,glossy:Boolean,size:String,fab:Boolean,fabMini:Boolean,padding:String,color:String,textColor:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,tabindex:[Number,String],ripple:{type:[Boolean,Object],default:!0},align:{...dh.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},round:Boolean};function Ch(t){const l=di(t,_h),o=hh(t),{hasRouterLink:u,hasLink:s,linkTag:f,linkAttrs:m,navigateOnClick:g}=Mu({fallbackTag:"button"}),C=i.computed(()=>{const O=t.fab===!1&&t.fabMini===!1?l.value:{};return t.padding!==void 0?Object.assign({},O,{padding:t.padding.split(/\s+/).map(G=>G in Vu?Vu[G]+"px":G).join(" "),minWidth:"0",minHeight:"0"}):O}),A=i.computed(()=>t.rounded===!0||t.fab===!0||t.fabMini===!0),v=i.computed(()=>t.disable!==!0&&t.loading!==!0),k=i.computed(()=>v.value===!0?t.tabindex||0:-1),y=i.computed(()=>Sh(t,"standard")),w=i.computed(()=>{const O={tabindex:k.value};return s.value===!0?Object.assign(O,m.value):bh.includes(t.type)===!0&&(O.type=t.type),f.value==="a"?(t.disable===!0?O["aria-disabled"]="true":O.href===void 0&&(O.role="button"),u.value!==!0&&yh.test(t.type)===!0&&(O.type=t.type)):t.disable===!0&&(O.disabled="",O["aria-disabled"]="true"),t.loading===!0&&t.percentage!==void 0&&Object.assign(O,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":t.percentage}),O}),R=i.computed(()=>{let O;t.color!==void 0?t.flat===!0||t.outline===!0?O=`text-${t.textColor||t.color}`:O=`bg-${t.color} text-${t.textColor||"white"}`:t.textColor&&(O=`text-${t.textColor}`);const G=t.round===!0?"round":`rectangle${A.value===!0?" q-btn--rounded":t.square===!0?" q-btn--square":""}`;return`q-btn--${y.value} q-btn--${G}`+(O!==void 0?" "+O:"")+(v.value===!0?" q-btn--actionable q-focusable q-hoverable":t.disable===!0?" disabled":"")+(t.fab===!0?" q-btn--fab":t.fabMini===!0?" q-btn--fab-mini":"")+(t.noCaps===!0?" q-btn--no-uppercase":"")+(t.dense===!0?" q-btn--dense":"")+(t.stretch===!0?" no-border-radius self-stretch":"")+(t.glossy===!0?" glossy":"")+(t.square?" q-btn--square":"")}),W=i.computed(()=>o.value+(t.stack===!0?" column":" row")+(t.noWrap===!0?" no-wrap text-no-wrap":"")+(t.loading===!0?" q-btn__content--hidden":""));return{classes:R,style:C,innerClasses:W,attributes:w,hasLink:s,linkTag:f,navigateOnClick:g,isActionable:v}}const{passiveCapture:At}=st;let or=null,lr=null,ar=null;const ur=Ye({name:"QBtn",props:{...xh,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(t,{slots:l,emit:o}){const{proxy:u}=i.getCurrentInstance(),{classes:s,style:f,innerClasses:m,attributes:g,hasLink:C,linkTag:A,navigateOnClick:v,isActionable:k}=Ch(t),y=i.ref(null),w=i.ref(null);let R=null,W,O=null;const G=i.computed(()=>t.label!==void 0&&t.label!==null&&t.label!==""),U=i.computed(()=>t.disable===!0||t.ripple===!1?!1:{keyCodes:C.value===!0?[13,32]:[13],...t.ripple===!0?{}:t.ripple}),D=i.computed(()=>({center:t.round})),Q=i.computed(()=>{const F=Math.max(0,Math.min(100,t.percentage));return F>0?{transition:"transform 0.6s",transform:`translateX(${F-100}%)`}:{}}),j=i.computed(()=>{if(t.loading===!0)return{onMousedown:Z,onTouchstart:Z,onClick:Z,onKeydown:Z,onKeyup:Z};if(k.value===!0){const F={onClick:I,onKeydown:le,onMousedown:T};if(u.$q.platform.has.touch===!0){const ae=t.onTouchstart!==void 0?"":"Passive";F[`onTouchstart${ae}`]=P}return F}return{onClick:Ke}}),Y=i.computed(()=>({ref:y,class:"q-btn q-btn-item non-selectable no-outline "+s.value,style:f.value,...g.value,...j.value}));function I(F){if(y.value!==null){if(F!==void 0){if(F.defaultPrevented===!0)return;const ae=document.activeElement;if(t.type==="submit"&&ae!==document.body&&y.value.contains(ae)===!1&&ae.contains(y.value)===!1){y.value.focus();const se=()=>{document.removeEventListener("keydown",Ke,!0),document.removeEventListener("keyup",se,At),y.value!==null&&y.value.removeEventListener("blur",se,At)};document.addEventListener("keydown",Ke,!0),document.addEventListener("keyup",se,At),y.value.addEventListener("blur",se,At)}}v(F)}}function le(F){y.value!==null&&(o("keydown",F),Vn(F,[13,32])===!0&&lr!==y.value&&(lr!==null&&S(),F.defaultPrevented!==!0&&(y.value.focus(),lr=y.value,y.value.classList.add("q-btn--active"),document.addEventListener("keyup",V,!0),y.value.addEventListener("blur",V,At)),Ke(F)))}function P(F){y.value!==null&&(o("touchstart",F),F.defaultPrevented!==!0&&(or!==y.value&&(or!==null&&S(),or=y.value,R=F.target,R.addEventListener("touchcancel",V,At),R.addEventListener("touchend",V,At)),W=!0,O!==null&&clearTimeout(O),O=setTimeout(()=>{O=null,W=!1},200)))}function T(F){y.value!==null&&(F.qSkipRipple=W===!0,o("mousedown",F),F.defaultPrevented!==!0&&ar!==y.value&&(ar!==null&&S(),ar=y.value,y.value.classList.add("q-btn--active"),document.addEventListener("mouseup",V,At)))}function V(F){if(y.value!==null&&!(F!==void 0&&F.type==="blur"&&document.activeElement===y.value)){if(F!==void 0&&F.type==="keyup"){if(lr===y.value&&Vn(F,[13,32])===!0){const ae=new MouseEvent("click",F);ae.qKeyEvent=!0,F.defaultPrevented===!0&&It(ae),F.cancelBubble===!0&&Kt(ae),y.value.dispatchEvent(ae),Ke(F),F.qKeyEvent=!0}o("keyup",F)}S()}}function S(F){const ae=w.value;F!==!0&&(or===y.value||ar===y.value)&&ae!==null&&ae!==document.activeElement&&(ae.setAttribute("tabindex",-1),ae.focus()),or===y.value&&(R!==null&&(R.removeEventListener("touchcancel",V,At),R.removeEventListener("touchend",V,At)),or=R=null),ar===y.value&&(document.removeEventListener("mouseup",V,At),ar=null),lr===y.value&&(document.removeEventListener("keyup",V,!0),y.value!==null&&y.value.removeEventListener("blur",V,At),lr=null),y.value!==null&&y.value.classList.remove("q-btn--active")}function Z(F){Ke(F),F.qSkipRipple=!0}return i.onBeforeUnmount(()=>{S(!0)}),Object.assign(u,{click:F=>{k.value===!0&&I(F)}}),()=>{let F=[];t.icon!==void 0&&F.push(i.h(vt,{name:t.icon,left:t.stack!==!0&&G.value===!0,role:"img"})),G.value===!0&&F.push(i.h("span",{class:"block"},[t.label])),F=qn(l.default,F),t.iconRight!==void 0&&t.round===!1&&F.push(i.h(vt,{name:t.iconRight,right:t.stack!==!0&&G.value===!0,role:"img"}));const ae=[i.h("span",{class:"q-focus-helper",ref:w})];return t.loading===!0&&t.percentage!==void 0&&ae.push(i.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(t.darkPercentage===!0?" q-btn__progress--dark":"")},[i.h("span",{class:"q-btn__progress-indicator fit block",style:Q.value})])),ae.push(i.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+m.value},F)),t.loading!==null&&ae.push(i.h(i.Transition,{name:"q-transition--fade"},()=>t.loading===!0?[i.h("span",{key:"loading",class:"absolute-full flex flex-center"},l.loading!==void 0?l.loading():[i.h(Vo)])]:null)),i.withDirectives(i.h(A.value,Y.value,ae),[[Au,U.value,void 0,D.value]])}}}),Lu=t=>(i.pushScopeId("data-v-3bcb795a"),t=t(),i.popScopeId(),t),kh={class:"buttons-container"},Eh={class:"lt-md"},Ah={class:"row justify-between q-my-md q-px-md"},Th=Lu(()=>i.createElementVNode("span",{class:"text-black"},"Atrás",-1)),Bh={key:1},Rh=Lu(()=>i.createElementVNode("span",{class:"text-black"},"Siguiente",-1)),Oh=gn(i.defineComponent({__name:"NavigationButtons",props:{currentStep:{},stepsCount:{},nextDisabled:{type:Boolean}},emits:["prev","next"],setup(t){const l=t,o=i.computed(()=>l.currentStep+1);return(u,s)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",kh,[o.value>1?(i.openBlock(),i.createBlock(ur,{key:0,style:{position:"absolute",left:"25px",cursor:"pointer"},size:"26px",color:"white","text-color":"white",class:"gt-sm",onClick:s[0]||(s[0]=f=>u.$emit("prev")),flat:""},{default:i.withCtx(()=>[i.createVNode(vt,{name:"arrow_back_ios",color:"info"})]),_:1})):i.createCommentVNode("",!0),o.value!==u.stepsCount?(i.openBlock(),i.createBlock(ur,{key:1,style:{position:"absolute",right:"25px",cursor:"pointer"},size:"26px",color:"white","text-color":"white",class:"gt-sm",onClick:s[1]||(s[1]=f=>u.$emit("next")),disable:u.nextDisabled,flat:""},{default:i.withCtx(()=>[i.createVNode(vt,{name:"arrow_forward_ios",color:"info"})]),_:1},8,["disable"])):i.createCommentVNode("",!0)]),i.createElementVNode("div",Eh,[i.createElementVNode("div",Ah,[o.value>1&&o.value<u.stepsCount?(i.openBlock(),i.createBlock(ur,{key:0,color:"info",class:"q-px-md-xl q-py-sm q-mr-sm win-btn win-btn-primary",onClick:s[2]||(s[2]=f=>u.$emit("prev")),flat:"","no-caps":""},{default:i.withCtx(()=>[Th]),_:1})):(i.openBlock(),i.createElementBlock("div",Bh)),o.value<u.stepsCount?(i.openBlock(),i.createBlock(ur,{key:2,color:"info",class:"q-px-xl q-py-sm q-ml-sm win-btn win-btn-primary",onClick:s[3]||(s[3]=f=>u.$emit("next")),disable:u.nextDisabled,flat:"","no-caps":""},{default:i.withCtx(()=>[Rh]),_:1},8,["disable"])):i.createCommentVNode("",!0)])])],64))}}),[["__scopeId","data-v-3bcb795a"]]),qh=Ye({name:"QField",inheritAttrs:!1,props:{..._i,tag:{type:String,default:"label"}},emits:zo,setup(){return Wo(Uo({tagProp:!0}))}}),Mh={xs:8,sm:10,md:14,lg:20,xl:24},Vh=Ye({name:"QChip",props:{...rr,...fi,dense:Boolean,icon:String,iconRight:String,iconRemove:String,iconSelected:String,label:[String,Number],color:String,textColor:String,modelValue:{type:Boolean,default:!0},selected:{type:Boolean,default:null},square:Boolean,outline:Boolean,clickable:Boolean,removable:Boolean,removeAriaLabel:String,tabindex:[String,Number],disable:Boolean,ripple:{type:[Boolean,Object],default:!0}},emits:["update:modelValue","update:selected","remove","click"],setup(t,{slots:l,emit:o}){const{proxy:{$q:u}}=i.getCurrentInstance(),s=ir(t,u),f=di(t,Mh),m=i.computed(()=>t.selected===!0||t.icon!==void 0),g=i.computed(()=>t.selected===!0?t.iconSelected||u.iconSet.chip.selected:t.icon),C=i.computed(()=>t.iconRemove||u.iconSet.chip.remove),A=i.computed(()=>t.disable===!1&&(t.clickable===!0||t.selected!==null)),v=i.computed(()=>{const O=t.outline===!0&&t.color||t.textColor;return"q-chip row inline no-wrap items-center"+(t.outline===!1&&t.color!==void 0?` bg-${t.color}`:"")+(O?` text-${O} q-chip--colored`:"")+(t.disable===!0?" disabled":"")+(t.dense===!0?" q-chip--dense":"")+(t.outline===!0?" q-chip--outline":"")+(t.selected===!0?" q-chip--selected":"")+(A.value===!0?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(t.square===!0?" q-chip--square":"")+(s.value===!0?" q-chip--dark q-dark":"")}),k=i.computed(()=>{const O=t.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:t.tabindex||0},G={...O,role:"button","aria-hidden":"false","aria-label":t.removeAriaLabel||u.lang.label.remove};return{chip:O,remove:G}});function y(O){O.keyCode===13&&w(O)}function w(O){t.disable||(o("update:selected",!t.selected),o("click",O))}function R(O){(O.keyCode===void 0||O.keyCode===13)&&(Ke(O),t.disable===!1&&(o("update:modelValue",!1),o("remove")))}function W(){const O=[];A.value===!0&&O.push(i.h("div",{class:"q-focus-helper"})),m.value===!0&&O.push(i.h(vt,{class:"q-chip__icon q-chip__icon--left",name:g.value}));const G=t.label!==void 0?[i.h("div",{class:"ellipsis"},[t.label])]:void 0;return O.push(i.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},ud(l.default,G))),t.iconRight&&O.push(i.h(vt,{class:"q-chip__icon q-chip__icon--right",name:t.iconRight})),t.removable===!0&&O.push(i.h(vt,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:C.value,...k.value.remove,onClick:R,onKeyup:R})),O}return()=>{if(t.modelValue===!1)return;const O={class:v.value,style:f.value};return A.value===!0&&Object.assign(O,k.value.chip,{onClick:w,onKeyup:y}),ja("div",O,W(),"ripple",t.ripple!==!1&&t.disable!==!0,()=>[[Au,t.ripple]])}}}),Lh=Ye({name:"QItem",props:{...rr,...vh,tag:{type:String,default:"div"},active:{type:Boolean,default:null},clickable:Boolean,dense:Boolean,insetLevel:Number,tabindex:[String,Number],focused:Boolean,manualFocus:Boolean},emits:["click","keyup"],setup(t,{slots:l,emit:o}){const{proxy:{$q:u}}=i.getCurrentInstance(),s=ir(t,u),{hasLink:f,linkAttrs:m,linkClass:g,linkTag:C,navigateOnClick:A}=Mu(),v=i.ref(null),k=i.ref(null),y=i.computed(()=>t.clickable===!0||f.value===!0||t.tag==="label"),w=i.computed(()=>t.disable!==!0&&y.value===!0),R=i.computed(()=>"q-item q-item-type row no-wrap"+(t.dense===!0?" q-item--dense":"")+(s.value===!0?" q-item--dark":"")+(f.value===!0&&t.active===null?g.value:t.active===!0?` q-item--active${t.activeClass!==void 0?` ${t.activeClass}`:""}`:"")+(t.disable===!0?" disabled":"")+(w.value===!0?" q-item--clickable q-link cursor-pointer "+(t.manualFocus===!0?"q-manual-focusable":"q-focusable q-hoverable")+(t.focused===!0?" q-manual-focusable--focused":""):"")),W=i.computed(()=>t.insetLevel===void 0?null:{["padding"+(u.lang.rtl===!0?"Right":"Left")]:16+t.insetLevel*56+"px"});function O(D){w.value===!0&&(k.value!==null&&(D.qKeyEvent!==!0&&document.activeElement===v.value?k.value.focus():document.activeElement===k.value&&v.value.focus()),A(D))}function G(D){if(w.value===!0&&Vn(D,[13,32])===!0){Ke(D),D.qKeyEvent=!0;const Q=new MouseEvent("click",D);Q.qKeyEvent=!0,v.value.dispatchEvent(Q)}o("keyup",D)}function U(){const D=ad(l.default,[]);return w.value===!0&&D.unshift(i.h("div",{class:"q-focus-helper",tabindex:-1,ref:k})),D}return()=>{const D={ref:v,class:R.value,style:W.value,role:"listitem",onClick:O,onKeyup:G};return w.value===!0?(D.tabindex=t.tabindex||"0",Object.assign(D,m.value)):y.value===!0&&(D["aria-disabled"]="true"),i.h(C.value,D,U())}}}),Ih=Ye({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(t,{slots:l}){const o=i.computed(()=>`q-item__section column q-item__section--${t.avatar===!0||t.side===!0||t.thumbnail===!0?"side":"main"}`+(t.top===!0?" q-item__section--top justify-start":" justify-center")+(t.avatar===!0?" q-item__section--avatar":"")+(t.thumbnail===!0?" q-item__section--thumbnail":"")+(t.noWrap===!0?" q-item__section--nowrap":""));return()=>i.h("div",{class:o.value},pt(l.default))}}),Ph=Ye({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(t,{slots:l}){const o=i.computed(()=>parseInt(t.lines,10)),u=i.computed(()=>"q-item__label"+(t.overline===!0?" q-item__label--overline text-overline":"")+(t.caption===!0?" q-item__label--caption text-caption":"")+(t.header===!0?" q-item__label--header":"")+(o.value===1?" ellipsis":"")),s=i.computed(()=>t.lines!==void 0&&o.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":o.value}:null);return()=>i.h("div",{style:s.value,class:u.value},pt(l.default))}});function Nh(){if(window.getSelection!==void 0){const t=window.getSelection();t.empty!==void 0?t.empty():t.removeAllRanges!==void 0&&(t.removeAllRanges(),qo.is.mobile!==!0&&t.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}const $h={...{target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},contextMenu:Boolean};function Fh({showing:t,avoidEmit:l,configureAnchorEl:o}){const{props:u,proxy:s,emit:f}=i.getCurrentInstance(),m=i.ref(null);let g=null;function C(w){return m.value===null?!1:w===void 0||w.touches===void 0||w.touches.length<=1}const A={};o===void 0&&(Object.assign(A,{hide(w){s.hide(w)},toggle(w){s.toggle(w),w.qAnchorHandled=!0},toggleKey(w){Vn(w,13)===!0&&A.toggle(w)},contextClick(w){s.hide(w),It(w),i.nextTick(()=>{s.show(w),w.qAnchorHandled=!0})},prevent:It,mobileTouch(w){if(A.mobileCleanup(w),C(w)!==!0)return;s.hide(w),m.value.classList.add("non-selectable");const R=w.target;No(A,"anchor",[[R,"touchmove","mobileCleanup","passive"],[R,"touchend","mobileCleanup","passive"],[R,"touchcancel","mobileCleanup","passive"],[m.value,"contextmenu","prevent","notPassive"]]),g=setTimeout(()=>{g=null,s.show(w),w.qAnchorHandled=!0},300)},mobileCleanup(w){m.value.classList.remove("non-selectable"),g!==null&&(clearTimeout(g),g=null),t.value===!0&&w!==void 0&&Nh()}}),o=function(w=u.contextMenu){if(u.noParentEvent===!0||m.value===null)return;let R;w===!0?s.$q.platform.is.mobile===!0?R=[[m.value,"touchstart","mobileTouch","passive"]]:R=[[m.value,"mousedown","hide","passive"],[m.value,"contextmenu","contextClick","notPassive"]]:R=[[m.value,"click","toggle","passive"],[m.value,"keyup","toggleKey","passive"]],No(A,"anchor",R)});function v(){iu(A,"anchor")}function k(w){for(m.value=w;m.value.classList.contains("q-anchor--skip");)m.value=m.value.parentNode;o()}function y(){if(u.target===!1||u.target===""||s.$el.parentNode===null)m.value=null;else if(u.target===!0)k(s.$el.parentNode);else{let w=u.target;if(typeof u.target=="string")try{w=document.querySelector(u.target)}catch{w=void 0}w!=null?(m.value=w.$el||w,o()):(m.value=null,console.error(`Anchor: target "${u.target}" not found`))}}return i.watch(()=>u.contextMenu,w=>{m.value!==null&&(v(),o(w))}),i.watch(()=>u.target,()=>{m.value!==null&&v(),y()}),i.watch(()=>u.noParentEvent,w=>{m.value!==null&&(w===!0?v():o())}),i.onMounted(()=>{y(),l!==!0&&u.modelValue===!0&&m.value===null&&f("update:modelValue",!1)}),i.onBeforeUnmount(()=>{g!==null&&clearTimeout(g),v()}),{anchorEl:m,canShow:C,anchorEvents:A}}function Dh(t,l){const o=i.ref(null);let u;function s(g,C){const A=`${C!==void 0?"add":"remove"}EventListener`,v=C!==void 0?C:u;g!==window&&g[A]("scroll",v,st.passive),window[A]("scroll",v,st.passive),u=C}function f(){o.value!==null&&(s(o.value),o.value=null)}const m=i.watch(()=>t.noParentEvent,()=>{o.value!==null&&(f(),l())});return i.onBeforeUnmount(m),{localScrollTarget:o,unconfigureScrollTarget:f,changeScrollEvent:s}}const Iu={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},Pu=["beforeShow","show","beforeHide","hide"];function Nu({showing:t,canShow:l,hideOnRouteChange:o,handleShow:u,handleHide:s,processOnMount:f}){const m=i.getCurrentInstance(),{props:g,emit:C,proxy:A}=m;let v;function k(U){t.value===!0?R(U):y(U)}function y(U){if(g.disable===!0||U!==void 0&&U.qAnchorHandled===!0||l!==void 0&&l(U)!==!0)return;const D=g["onUpdate:modelValue"]!==void 0;D===!0&&(C("update:modelValue",!0),v=U,i.nextTick(()=>{v===U&&(v=void 0)})),(g.modelValue===null||D===!1)&&w(U)}function w(U){t.value!==!0&&(t.value=!0,C("beforeShow",U),u!==void 0?u(U):C("show",U))}function R(U){if(g.disable===!0)return;const D=g["onUpdate:modelValue"]!==void 0;D===!0&&(C("update:modelValue",!1),v=U,i.nextTick(()=>{v===U&&(v=void 0)})),(g.modelValue===null||D===!1)&&W(U)}function W(U){t.value!==!1&&(t.value=!1,C("beforeHide",U),s!==void 0?s(U):C("hide",U))}function O(U){g.disable===!0&&U===!0?g["onUpdate:modelValue"]!==void 0&&C("update:modelValue",!1):U===!0!==t.value&&(U===!0?w:W)(v)}i.watch(()=>g.modelValue,O),o!==void 0&&Qa(m)===!0&&i.watch(()=>A.$route.fullPath,()=>{o.value===!0&&t.value===!0&&R()}),f===!0&&i.onMounted(()=>{O(g.modelValue)});const G={show:y,hide:R,toggle:k};return Object.assign(A,G),G}const $u={};let zh=1,Uh=document.body;function Wh(t,l){const o=document.createElement("div");if(o.id=l!==void 0?`q-portal--${l}--${zh++}`:t,$u.globalNodes!==void 0){const u=$u.globalNodes.class;u!==void 0&&(o.className=u)}return Uh.appendChild(o),o}function Hh(t){t.remove()}const Lr=[];function Kh(t,l){do{if(t.$options.name==="QMenu"){if(t.hide(l),t.$props.separateClosePopup===!0)return Lo(t)}else if(t.__qPortal===!0){const o=Lo(t);return o!==void 0&&o.$options.name==="QPopupProxy"?(t.hide(l),o):t}t=Lo(t)}while(t!=null)}const Gh=Ye({name:"QPortal",setup(t,{slots:l}){return()=>l.default()}});function jh(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 Fu(t,l,o,u){const s=i.ref(!1),f=i.ref(!1);let m=null;const g={},C=u==="dialog"&&jh(t);function A(k){if(k===!0){_u(g),f.value=!0;return}f.value=!1,s.value===!1&&(C===!1&&m===null&&(m=Wh(!1,u)),s.value=!0,Lr.push(t.proxy),Gd(g))}function v(k){if(f.value=!1,k!==!0)return;_u(g),s.value=!1;const y=Lr.indexOf(t.proxy);y!==-1&&Lr.splice(y,1),m!==null&&(Hh(m),m=null)}return i.onUnmounted(()=>{v(!0)}),t.proxy.__qPortal=!0,ci(t.proxy,"contentEl",()=>l.value),{showPortal:A,hidePortal:v,portalIsActive:s,portalIsAccessible:f,renderPortal:()=>C===!0?o():s.value===!0?[i.h(i.Teleport,{to:m},i.h(Gh,o))]:void 0}}const Du={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function zu(t,l=()=>{},o=()=>{}){return{transitionProps:i.computed(()=>{const u=`q-transition--${t.transitionShow||l()}`,s=`q-transition--${t.transitionHide||o()}`;return{appear:!0,enterFromClass:`${u}-enter-from`,enterActiveClass:`${u}-enter-active`,enterToClass:`${u}-enter-to`,leaveFromClass:`${s}-leave-from`,leaveActiveClass:`${s}-leave-active`,leaveToClass:`${s}-leave-to`}}),transitionStyle:i.computed(()=>`--q-transition-duration: ${t.transitionDuration}ms`)}}function Uu(){let t;const l=i.getCurrentInstance();function o(){t=void 0}return i.onDeactivated(o),i.onBeforeUnmount(o),{removeTick:o,registerTick(u){t=u,i.nextTick(()=>{t===u&&(qr(l)===!1&&t(),t=void 0)})}}}const Qh=[Element,String],Yh=[null,document,document.body,document.scrollingElement,document.documentElement];function Zh(t,l){let o=sh(l);if(o===void 0){if(t==null)return window;o=t.closest(".scroll,.scroll-y,.overflow-auto")}return Yh.includes(o)?window:o}function Xh(t){return t===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:t.scrollTop}function Jh(t){return t===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:t.scrollLeft}let wi;function em(){if(wi!==void 0)return wi;const t=document.createElement("p"),l=document.createElement("div");Go(t,{width:"100%",height:"200px"}),Go(l,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),l.appendChild(t),document.body.appendChild(l);const o=t.offsetWidth;l.style.overflow="scroll";let u=t.offsetWidth;return o===u&&(u=l.clientWidth),l.remove(),wi=o-u,wi}function tm(t,l=!0){return!t||t.nodeType!==Node.ELEMENT_NODE?!1:l?t.scrollHeight>t.clientHeight&&(t.classList.contains("scroll")||t.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(t)["overflow-y"])):t.scrollWidth>t.clientWidth&&(t.classList.contains("scroll")||t.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(t)["overflow-x"]))}const Ln=[];let sr;function nm(t){sr=t.keyCode===27}function rm(){sr===!0&&(sr=!1)}function im(t){sr===!0&&(sr=!1,Vn(t,27)===!0&&Ln[Ln.length-1](t))}function Wu(t){window[t]("keydown",nm),window[t]("blur",rm),window[t]("keyup",im),sr=!1}function Hu(t){gt.is.desktop===!0&&(Ln.push(t),Ln.length===1&&Wu("addEventListener"))}function Si(t){const l=Ln.indexOf(t);l!==-1&&(Ln.splice(l,1),Ln.length===0&&Wu("removeEventListener"))}const In=[];function Ku(t){In[In.length-1](t)}function Gu(t){gt.is.desktop===!0&&(In.push(t),In.length===1&&document.body.addEventListener("focusin",Ku))}function jo(t){const l=In.indexOf(t);l!==-1&&(In.splice(l,1),In.length===0&&document.body.removeEventListener("focusin",Ku))}const{notPassiveCapture:xi}=st,Pn=[];function Ci(t){const l=t.target;if(l===void 0||l.nodeType===8||l.classList.contains("no-pointer-events")===!0)return;let o=Lr.length-1;for(;o>=0;){const u=Lr[o].$;if(u.type.name==="QTooltip"){o--;continue}if(u.type.name!=="QDialog")break;if(u.props.seamless!==!0)return;o--}for(let u=Pn.length-1;u>=0;u--){const s=Pn[u];if((s.anchorEl.value===null||s.anchorEl.value.contains(l)===!1)&&(l===document.body||s.innerRef.value!==null&&s.innerRef.value.contains(l)===!1))t.qClickOutside=!0,s.onClickOutside(t);else return}}function om(t){Pn.push(t),Pn.length===1&&(document.addEventListener("mousedown",Ci,xi),document.addEventListener("touchstart",Ci,xi))}function ju(t){const l=Pn.findIndex(o=>o===t);l!==-1&&(Pn.splice(l,1),Pn.length===0&&(document.removeEventListener("mousedown",Ci,xi),document.removeEventListener("touchstart",Ci,xi)))}let Qu,Yu;function Zu(t){const l=t.split(" ");return l.length!==2?!1:["top","center","bottom"].includes(l[0])!==!0?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):["left","middle","right","start","end"].includes(l[1])!==!0?(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1):!0}function lm(t){return t?!(t.length!==2||typeof t[0]!="number"||typeof t[1]!="number"):!0}const Qo={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(t=>{Qo[`${t}#ltr`]=t,Qo[`${t}#rtl`]=t});function Xu(t,l){const o=t.split(" ");return{vertical:o[0],horizontal:Qo[`${o[1]}#${l===!0?"rtl":"ltr"}`]}}function am(t,l){let{top:o,left:u,right:s,bottom:f,width:m,height:g}=t.getBoundingClientRect();return l!==void 0&&(o-=l[1],u-=l[0],f+=l[1],s+=l[0],m+=l[0],g+=l[1]),{top:o,bottom:f,height:g,left:u,right:s,width:m,middle:u+(s-u)/2,center:o+(f-o)/2}}function um(t,l,o){let{top:u,left:s}=t.getBoundingClientRect();return u+=l.top,s+=l.left,o!==void 0&&(u+=o[1],s+=o[0]),{top:u,bottom:u+1,height:1,left:s,right:s+1,width:1,middle:s,center:u}}function sm(t,l){return{top:0,center:l/2,bottom:l,left:0,middle:t/2,right:t}}function Ju(t,l,o,u){return{top:t[o.vertical]-l[u.vertical],left:t[o.horizontal]-l[u.horizontal]}}function es(t,l=0){if(t.targetEl===null||t.anchorEl===null||l>5)return;if(t.targetEl.offsetHeight===0||t.targetEl.offsetWidth===0){setTimeout(()=>{es(t,l+1)},10);return}const{targetEl:o,offset:u,anchorEl:s,anchorOrigin:f,selfOrigin:m,absoluteOffset:g,fit:C,cover:A,maxHeight:v,maxWidth:k}=t;if(gt.is.ios===!0&&window.visualViewport!==void 0){const Y=document.body.style,{offsetLeft:I,offsetTop:le}=window.visualViewport;I!==Qu&&(Y.setProperty("--q-pe-left",I+"px"),Qu=I),le!==Yu&&(Y.setProperty("--q-pe-top",le+"px"),Yu=le)}const{scrollLeft:y,scrollTop:w}=o,R=g===void 0?am(s,A===!0?[0,0]:u):um(s,g,u);Object.assign(o.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:k||"100vw",maxHeight:v||"100vh",visibility:"visible"});const{offsetWidth:W,offsetHeight:O}=o,{elWidth:G,elHeight:U}=C===!0||A===!0?{elWidth:Math.max(R.width,W),elHeight:A===!0?Math.max(R.height,O):O}:{elWidth:W,elHeight:O};let D={maxWidth:k,maxHeight:v};(C===!0||A===!0)&&(D.minWidth=R.width+"px",A===!0&&(D.minHeight=R.height+"px")),Object.assign(o.style,D);const Q=sm(G,U);let j=Ju(R,Q,f,m);if(g===void 0||u===void 0)Yo(j,R,Q,f,m);else{const{top:Y,left:I}=j;Yo(j,R,Q,f,m);let le=!1;if(j.top!==Y){le=!0;const P=2*u[1];R.center=R.top-=P,R.bottom-=P+2}if(j.left!==I){le=!0;const P=2*u[0];R.middle=R.left-=P,R.right-=P+2}le===!0&&(j=Ju(R,Q,f,m),Yo(j,R,Q,f,m))}D={top:j.top+"px",left:j.left+"px"},j.maxHeight!==void 0&&(D.maxHeight=j.maxHeight+"px",R.height>j.maxHeight&&(D.minHeight=D.maxHeight)),j.maxWidth!==void 0&&(D.maxWidth=j.maxWidth+"px",R.width>j.maxWidth&&(D.minWidth=D.maxWidth)),Object.assign(o.style,D),o.scrollTop!==w&&(o.scrollTop=w),o.scrollLeft!==y&&(o.scrollLeft=y)}function Yo(t,l,o,u,s){const f=o.bottom,m=o.right,g=em(),C=window.innerHeight-g,A=document.body.clientWidth;if(t.top<0||t.top+f>C)if(s.vertical==="center")t.top=l[u.vertical]>C/2?Math.max(0,C-f):0,t.maxHeight=Math.min(f,C);else if(l[u.vertical]>C/2){const v=Math.min(C,u.vertical==="center"?l.center:u.vertical===s.vertical?l.bottom:l.top);t.maxHeight=Math.min(f,v),t.top=Math.max(0,v-f)}else t.top=Math.max(0,u.vertical==="center"?l.center:u.vertical===s.vertical?l.top:l.bottom),t.maxHeight=Math.min(f,C-t.top);if(t.left<0||t.left+m>A)if(t.maxWidth=Math.min(m,A),s.horizontal==="middle")t.left=l[u.horizontal]>A/2?Math.max(0,A-m):0;else if(l[u.horizontal]>A/2){const v=Math.min(A,u.horizontal==="middle"?l.middle:u.horizontal===s.horizontal?l.right:l.left);t.maxWidth=Math.min(m,v),t.left=Math.max(0,v-t.maxWidth)}else t.left=Math.max(0,u.horizontal==="middle"?l.middle:u.horizontal===s.horizontal?l.left:l.right),t.maxWidth=Math.min(m,A-t.left)}const cm=Ye({name:"QMenu",inheritAttrs:!1,props:{...$h,...Iu,...rr,...Du,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:Zu},self:{type:String,validator:Zu},offset:{type:Array,validator:lm},scrollTarget:Qh,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...Pu,"click","escapeKey"],setup(t,{slots:l,emit:o,attrs:u}){let s=null,f,m,g;const C=i.getCurrentInstance(),{proxy:A}=C,{$q:v}=A,k=i.ref(null),y=i.ref(!1),w=i.computed(()=>t.persistent!==!0&&t.noRouteDismiss!==!0),R=ir(t,v),{registerTick:W,removeTick:O}=Uu(),{registerTimeout:G}=hi(),{transitionProps:U,transitionStyle:D}=zu(t),{localScrollTarget:Q,changeScrollEvent:j,unconfigureScrollTarget:Y}=Dh(t,oe),{anchorEl:I,canShow:le}=Fh({showing:y}),{hide:P}=Nu({showing:y,canShow:le,handleShow:ge,handleHide:q,hideOnRouteChange:w,processOnMount:!0}),{showPortal:T,hidePortal:V,renderPortal:S}=Fu(C,k,Ee,"menu"),Z={anchorEl:I,innerRef:k,onClickOutside(X){if(t.persistent!==!0&&y.value===!0)return P(X),(X.type==="touchstart"||X.target.classList.contains("q-dialog__backdrop"))&&Ke(X),!0}},F=i.computed(()=>Xu(t.anchor||(t.cover===!0?"center middle":"bottom start"),v.lang.rtl)),ae=i.computed(()=>t.cover===!0?F.value:Xu(t.self||"top start",v.lang.rtl)),se=i.computed(()=>(t.square===!0?" q-menu--square":"")+(R.value===!0?" q-menu--dark q-dark":"")),ce=i.computed(()=>t.autoClose===!0?{onClick:ve}:{}),H=i.computed(()=>y.value===!0&&t.persistent!==!0);i.watch(H,X=>{X===!0?(Hu(K),om(Z)):(Si(K),ju(Z))});function ie(){vi(()=>{let X=k.value;X&&X.contains(document.activeElement)!==!0&&(X=X.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||X.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||X.querySelector("[autofocus], [data-autofocus]")||X,X.focus({preventScroll:!0}))})}function ge(X){if(s=t.noRefocus===!1?document.activeElement:null,Gu(_e),T(),oe(),f=void 0,X!==void 0&&(t.touchPosition||t.contextMenu)){const Ne=ru(X);if(Ne.left!==void 0){const{top:ot,left:Nt}=I.value.getBoundingClientRect();f={left:Ne.left-Nt,top:Ne.top-ot}}}m===void 0&&(m=i.watch(()=>v.screen.width+"|"+v.screen.height+"|"+t.self+"|"+t.anchor+"|"+v.lang.rtl,ne)),t.noFocus!==!0&&document.activeElement.blur(),W(()=>{ne(),t.noFocus!==!0&&ie()}),G(()=>{v.platform.is.ios===!0&&(g=t.autoClose,k.value.click()),ne(),T(!0),o("show",X)},t.transitionDuration)}function q(X){O(),V(),B(!0),s!==null&&(X===void 0||X.qClickOutside!==!0)&&(((X&&X.type.indexOf("key")===0?s.closest('[tabindex]:not([tabindex^="-"])'):void 0)||s).focus(),s=null),G(()=>{V(!0),o("hide",X)},t.transitionDuration)}function B(X){f=void 0,m!==void 0&&(m(),m=void 0),(X===!0||y.value===!0)&&(jo(_e),Y(),ju(Z),Si(K)),X!==!0&&(s=null)}function oe(){(I.value!==null||t.scrollTarget!==void 0)&&(Q.value=Zh(I.value,t.scrollTarget),j(Q.value,ne))}function ve(X){g!==!0?(Kh(A,X),o("click",X)):g=!1}function _e(X){H.value===!0&&t.noFocus!==!0&&Cu(k.value,X.target)!==!0&&ie()}function K(X){o("escapeKey"),P(X)}function ne(){es({targetEl:k.value,offset:t.offset,anchorEl:I.value,anchorOrigin:F.value,selfOrigin:ae.value,absoluteOffset:f,fit:t.fit,cover:t.cover,maxHeight:t.maxHeight,maxWidth:t.maxWidth})}function Ee(){return i.h(i.Transition,U.value,()=>y.value===!0?i.h("div",{role:"menu",...u,ref:k,tabindex:-1,class:["q-menu q-position-engine scroll"+se.value,u.class],style:[u.style,D.value],...ce.value},pt(l.default)):null)}return i.onBeforeUnmount(B),Object.assign(A,{focus:ie,updatePosition:ne}),S}});function fm(t,l,o){function u(){}return i.onBeforeUnmount(()=>{t.value===!0&&void 0}),{removeFromHistory:u,addToHistory(){}}}let Ir=0,Zo,Xo,Pr,Jo=!1,ts,ns,rs,Nn=null;function dm(t){hm(t)&&Ke(t)}function hm(t){if(t.target===document.body||t.target.classList.contains("q-layout__backdrop"))return!0;const l=Md(t),o=t.shiftKey&&!t.deltaX,u=!o&&Math.abs(t.deltaX)<=Math.abs(t.deltaY),s=o||u?t.deltaY:t.deltaX;for(let f=0;f<l.length;f++){const m=l[f];if(tm(m,u))return u?s<0&&m.scrollTop===0?!0:s>0&&m.scrollTop+m.clientHeight===m.scrollHeight:s<0&&m.scrollLeft===0?!0:s>0&&m.scrollLeft+m.clientWidth===m.scrollWidth}return!0}function is(t){t.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function ki(t){Jo!==!0&&(Jo=!0,requestAnimationFrame(()=>{Jo=!1;const{height:l}=t.target,{clientHeight:o,scrollTop:u}=document.scrollingElement;(Pr===void 0||l!==window.innerHeight)&&(Pr=o-l,document.scrollingElement.scrollTop=u),u>Pr&&(document.scrollingElement.scrollTop-=Math.ceil((u-Pr)/8))}))}function os(t){const l=document.body,o=window.visualViewport!==void 0;if(t==="add"){const{overflowY:u,overflowX:s}=window.getComputedStyle(l);Zo=Jh(window),Xo=Xh(window),ts=l.style.left,ns=l.style.top,rs=window.location.href,l.style.left=`-${Zo}px`,l.style.top=`-${Xo}px`,s!=="hidden"&&(s==="scroll"||l.scrollWidth>window.innerWidth)&&l.classList.add("q-body--force-scrollbar-x"),u!=="hidden"&&(u==="scroll"||l.scrollHeight>window.innerHeight)&&l.classList.add("q-body--force-scrollbar-y"),l.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,gt.is.ios===!0&&(o===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",ki,st.passiveCapture),window.visualViewport.addEventListener("scroll",ki,st.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",is,st.passiveCapture))}gt.is.desktop===!0&>.is.mac===!0&&window[`${t}EventListener`]("wheel",dm,st.notPassive),t==="remove"&&(gt.is.ios===!0&&(o===!0?(window.visualViewport.removeEventListener("resize",ki,st.passiveCapture),window.visualViewport.removeEventListener("scroll",ki,st.passiveCapture)):window.removeEventListener("scroll",is,st.passiveCapture)),l.classList.remove("q-body--prevent-scroll"),l.classList.remove("q-body--force-scrollbar-x"),l.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,l.style.left=ts,l.style.top=ns,window.location.href===rs&&window.scrollTo(Zo,Xo),Pr=void 0)}function mm(t){let l="add";if(t===!0){if(Ir++,Nn!==null){clearTimeout(Nn),Nn=null;return}if(Ir>1)return}else{if(Ir===0||(Ir--,Ir>0))return;if(l="remove",gt.is.ios===!0&>.is.nativeMobile===!0){Nn!==null&&clearTimeout(Nn),Nn=setTimeout(()=>{os(l),Nn=null},100);return}}os(l)}function gm(){let t;return{preventBodyScroll(l){l!==t&&(t!==void 0||l===!0)&&(t=l,mm(l))}}}let Ei=0;const pm={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"},ls={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},vm=Ye({name:"QDialog",inheritAttrs:!1,props:{...Iu,...Du,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:[...Pu,"shake","click","escapeKey"],setup(t,{slots:l,emit:o,attrs:u}){const s=i.getCurrentInstance(),f=i.ref(null),m=i.ref(!1),g=i.ref(!1);let C=null,A=null,v,k;const y=i.computed(()=>t.persistent!==!0&&t.noRouteDismiss!==!0&&t.seamless!==!0),{preventBodyScroll:w}=gm(),{registerTimeout:R}=hi(),{registerTick:W,removeTick:O}=Uu(),{transitionProps:G,transitionStyle:U}=zu(t,()=>ls[t.position][0],()=>ls[t.position][1]),D=i.computed(()=>U.value+(t.backdropFilter!==void 0?`;backdrop-filter:${t.backdropFilter};-webkit-backdrop-filter:${t.backdropFilter}`:"")),{showPortal:Q,hidePortal:j,portalIsAccessible:Y,renderPortal:I}=Fu(s,f,_e,"dialog"),{hide:le}=Nu({showing:m,hideOnRouteChange:y,handleShow:ae,handleHide:se,processOnMount:!0}),{addToHistory:P,removeFromHistory:T}=fm(m),V=i.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${t.maximized===!0?"maximized":"minimized"} q-dialog__inner--${t.position} ${pm[t.position]}`+(g.value===!0?" q-dialog__inner--animating":"")+(t.fullWidth===!0?" q-dialog__inner--fullwidth":"")+(t.fullHeight===!0?" q-dialog__inner--fullheight":"")+(t.square===!0?" q-dialog__inner--square":"")),S=i.computed(()=>m.value===!0&&t.seamless!==!0),Z=i.computed(()=>t.autoClose===!0?{onClick:B}:{}),F=i.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${S.value===!0?"modal":"seamless"}`,u.class]);i.watch(()=>t.maximized,K=>{m.value===!0&&q(K)}),i.watch(S,K=>{w(K),K===!0?(Gu(ve),Hu(ie)):(jo(ve),Si(ie))});function ae(K){P(),A=t.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,q(t.maximized),Q(),g.value=!0,t.noFocus!==!0?(document.activeElement!==null&&document.activeElement.blur(),W(ce)):O(),R(()=>{if(s.proxy.$q.platform.is.ios===!0){if(t.seamless!==!0&&document.activeElement){const{top:ne,bottom:Ee}=document.activeElement.getBoundingClientRect(),{innerHeight:X}=window,Ne=window.visualViewport!==void 0?window.visualViewport.height:X;ne>0&&Ee>Ne/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-Ne,Ee>=X?1/0:Math.ceil(document.scrollingElement.scrollTop+Ee-Ne/2))),document.activeElement.scrollIntoView()}k=!0,f.value.click(),k=!1}Q(!0),g.value=!1,o("show",K)},t.transitionDuration)}function se(K){O(),T(),ge(!0),g.value=!0,j(),A!==null&&(((K&&K.type.indexOf("key")===0?A.closest('[tabindex]:not([tabindex^="-"])'):void 0)||A).focus(),A=null),R(()=>{j(!0),g.value=!1,o("hide",K)},t.transitionDuration)}function ce(K){vi(()=>{let ne=f.value;if(ne!==null){if(K!==void 0){const Ee=ne.querySelector(K);if(Ee!==null){Ee.focus({preventScroll:!0});return}}ne.contains(document.activeElement)!==!0&&(ne=ne.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||ne.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||ne.querySelector("[autofocus], [data-autofocus]")||ne,ne.focus({preventScroll:!0}))}})}function H(K){K&&typeof K.focus=="function"?K.focus({preventScroll:!0}):ce(),o("shake");const ne=f.value;ne!==null&&(ne.classList.remove("q-animate--scale"),ne.classList.add("q-animate--scale"),C!==null&&clearTimeout(C),C=setTimeout(()=>{C=null,f.value!==null&&(ne.classList.remove("q-animate--scale"),ce())},170))}function ie(){t.seamless!==!0&&(t.persistent===!0||t.noEscDismiss===!0?t.maximized!==!0&&t.noShake!==!0&&H():(o("escapeKey"),le()))}function ge(K){C!==null&&(clearTimeout(C),C=null),(K===!0||m.value===!0)&&(q(!1),t.seamless!==!0&&(w(!1),jo(ve),Si(ie))),K!==!0&&(A=null)}function q(K){K===!0?v!==!0&&(Ei<1&&document.body.classList.add("q-body--dialog"),Ei++,v=!0):v===!0&&(Ei<2&&document.body.classList.remove("q-body--dialog"),Ei--,v=!1)}function B(K){k!==!0&&(le(K),o("click",K))}function oe(K){t.persistent!==!0&&t.noBackdropDismiss!==!0?le(K):t.noShake!==!0&&H()}function ve(K){t.allowFocusOutside!==!0&&Y.value===!0&&Cu(f.value,K.target)!==!0&&ce('[tabindex]:not([tabindex="-1"])')}Object.assign(s.proxy,{focus:ce,shake:H,__updateRefocusTarget(K){A=K||null}}),i.onBeforeUnmount(ge);function _e(){return i.h("div",{role:"dialog","aria-modal":S.value===!0?"true":"false",...u,class:F.value},[i.h(i.Transition,{name:"q-transition--fade",appear:!0},()=>S.value===!0?i.h("div",{class:"q-dialog__backdrop fixed-full",style:D.value,"aria-hidden":"true",tabindex:-1,onClick:oe}):null),i.h(i.Transition,G.value,()=>m.value===!0?i.h("div",{ref:f,class:V.value,style:U.value,tabindex:-1,...Z.value},pt(l.default)):null)])}return I}});let Ai=!1;{const t=document.createElement("div");t.setAttribute("dir","rtl"),Object.assign(t.style,{width:"1px",height:"1px",overflow:"auto"});const l=document.createElement("div");Object.assign(l.style,{width:"1000px",height:"1px"}),document.body.appendChild(t),t.appendChild(l),t.scrollLeft=-1e3,Ai=t.scrollLeft>=0,t.remove()}const Pt=1e3,_m=["start","center","end","start-force","center-force","end-force"],as=Array.prototype.filter,bm=window.getComputedStyle(document.body).overflowAnchor===void 0?qd:function(t,l){t!==null&&(t._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(t._qOverflowAnimationFrame),t._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(t===null)return;t._qOverflowAnimationFrame=void 0;const o=t.children||[];as.call(o,s=>s.dataset&&s.dataset.qVsAnchor!==void 0).forEach(s=>{delete s.dataset.qVsAnchor});const u=o[l];u&&u.dataset&&(u.dataset.qVsAnchor="")}))};function cr(t,l){return t+l}function el(t,l,o,u,s,f,m,g){const C=t===window?document.scrollingElement||document.documentElement:t,A=s===!0?"offsetWidth":"offsetHeight",v={scrollStart:0,scrollViewSize:-m-g,scrollMaxSize:0,offsetStart:-m,offsetEnd:-g};if(s===!0?(t===window?(v.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,v.scrollViewSize+=document.documentElement.clientWidth):(v.scrollStart=C.scrollLeft,v.scrollViewSize+=C.clientWidth),v.scrollMaxSize=C.scrollWidth,f===!0&&(v.scrollStart=(Ai===!0?v.scrollMaxSize-v.scrollViewSize:0)-v.scrollStart)):(t===window?(v.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,v.scrollViewSize+=document.documentElement.clientHeight):(v.scrollStart=C.scrollTop,v.scrollViewSize+=C.clientHeight),v.scrollMaxSize=C.scrollHeight),o!==null)for(let k=o.previousElementSibling;k!==null;k=k.previousElementSibling)k.classList.contains("q-virtual-scroll--skip")===!1&&(v.offsetStart+=k[A]);if(u!==null)for(let k=u.nextElementSibling;k!==null;k=k.nextElementSibling)k.classList.contains("q-virtual-scroll--skip")===!1&&(v.offsetEnd+=k[A]);if(l!==t){const k=C.getBoundingClientRect(),y=l.getBoundingClientRect();s===!0?(v.offsetStart+=y.left-k.left,v.offsetEnd-=y.width):(v.offsetStart+=y.top-k.top,v.offsetEnd-=y.height),t!==window&&(v.offsetStart+=v.scrollStart),v.offsetEnd+=v.scrollMaxSize-v.offsetStart}return v}function us(t,l,o,u){l==="end"&&(l=(t===window?document.body:t)[o===!0?"scrollWidth":"scrollHeight"]),t===window?o===!0?(u===!0&&(l=(Ai===!0?document.body.scrollWidth-document.documentElement.clientWidth:0)-l),window.scrollTo(l,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,l):o===!0?(u===!0&&(l=(Ai===!0?t.scrollWidth-t.offsetWidth:0)-l),t.scrollLeft=l):t.scrollTop=l}function Nr(t,l,o,u){if(o>=u)return 0;const s=l.length,f=Math.floor(o/Pt),m=Math.floor((u-1)/Pt)+1;let g=t.slice(f,m).reduce(cr,0);return o%Pt!==0&&(g-=l.slice(f*Pt,o).reduce(cr,0)),u%Pt!==0&&u!==s&&(g-=l.slice(u,m*Pt).reduce(cr,0)),g}const ss={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 ym({virtualScrollLength:t,getVirtualScrollTarget:l,getVirtualScrollEl:o,virtualScrollItemSizeComputed:u}){const s=i.getCurrentInstance(),{props:f,emit:m,proxy:g}=s,{$q:C}=g;let A,v,k,y=[],w;const R=i.ref(0),W=i.ref(0),O=i.ref({}),G=i.ref(null),U=i.ref(null),D=i.ref(null),Q=i.ref({from:0,to:0}),j=i.computed(()=>f.tableColspan!==void 0?f.tableColspan:100);u===void 0&&(u=i.computed(()=>f.virtualScrollItemSize));const Y=i.computed(()=>u.value+";"+f.virtualScrollHorizontal),I=i.computed(()=>Y.value+";"+f.virtualScrollSliceRatioBefore+";"+f.virtualScrollSliceRatioAfter);i.watch(I,()=>{se()}),i.watch(Y,le);function le(){ae(v,!0)}function P(q){ae(q===void 0?v:q)}function T(q,B){const oe=l();if(oe==null||oe.nodeType===8)return;const ve=el(oe,o(),G.value,U.value,f.virtualScrollHorizontal,C.lang.rtl,f.virtualScrollStickySizeStart,f.virtualScrollStickySizeEnd);k!==ve.scrollViewSize&&se(ve.scrollViewSize),S(oe,ve,Math.min(t.value-1,Math.max(0,parseInt(q,10)||0)),0,_m.indexOf(B)!==-1?B:v!==-1&&q>v?"end":"start")}function V(){const q=l();if(q==null||q.nodeType===8)return;const B=el(q,o(),G.value,U.value,f.virtualScrollHorizontal,C.lang.rtl,f.virtualScrollStickySizeStart,f.virtualScrollStickySizeEnd),oe=t.value-1,ve=B.scrollMaxSize-B.offsetStart-B.offsetEnd-W.value;if(A===B.scrollStart)return;if(B.scrollMaxSize<=0){S(q,B,0,0);return}k!==B.scrollViewSize&&se(B.scrollViewSize),Z(Q.value.from);const _e=Math.floor(B.scrollMaxSize-Math.max(B.scrollViewSize,B.offsetEnd)-Math.min(w[oe],B.scrollViewSize/2));if(_e>0&&Math.ceil(B.scrollStart)>=_e){S(q,B,oe,B.scrollMaxSize-B.offsetEnd-y.reduce(cr,0));return}let K=0,ne=B.scrollStart-B.offsetStart,Ee=ne;if(ne<=ve&&ne+B.scrollViewSize>=R.value)ne-=R.value,K=Q.value.from,Ee=ne;else for(let X=0;ne>=y[X]&&K<oe;X++)ne-=y[X],K+=Pt;for(;ne>0&&K<oe;)ne-=w[K],ne>-B.scrollViewSize?(K++,Ee=ne):Ee=w[K]+ne;S(q,B,K,Ee)}function S(q,B,oe,ve,_e){const K=typeof _e=="string"&&_e.indexOf("-force")!==-1,ne=K===!0?_e.replace("-force",""):_e,Ee=ne!==void 0?ne:"start";let X=Math.max(0,oe-O.value[Ee]),Ne=X+O.value.total;Ne>t.value&&(Ne=t.value,X=Math.max(0,Ne-O.value.total)),A=B.scrollStart;const ot=X!==Q.value.from||Ne!==Q.value.to;if(ot===!1&&ne===void 0){H(oe);return}const{activeElement:Nt}=document,_t=D.value;ot===!0&&_t!==null&&_t!==Nt&&_t.contains(Nt)===!0&&(_t.addEventListener("focusout",F),setTimeout(()=>{_t!==null&&_t.removeEventListener("focusout",F)})),bm(_t,oe-X);const nt=ne!==void 0?w.slice(X,oe).reduce(cr,0):0;if(ot===!0){const bt=Ne>=Q.value.from&&X<=Q.value.to?Q.value.to:Ne;Q.value={from:X,to:bt},R.value=Nr(y,w,0,X),W.value=Nr(y,w,Ne,t.value),requestAnimationFrame(()=>{Q.value.to!==Ne&&A===B.scrollStart&&(Q.value={from:Q.value.from,to:Ne},W.value=Nr(y,w,Ne,t.value))})}requestAnimationFrame(()=>{if(A!==B.scrollStart)return;ot===!0&&Z(X);const bt=w.slice(X,oe).reduce(cr,0),en=bt+B.offsetStart+R.value,ct=en+w[oe];let pn=en+ve;if(ne!==void 0){const $r=bt-nt,$t=B.scrollStart+$r;pn=K!==!0&&$t<en&&ct<$t+B.scrollViewSize?$t:ne==="end"?ct-B.scrollViewSize:en-(ne==="start"?0:Math.round((B.scrollViewSize-w[oe])/2))}A=pn,us(q,pn,f.virtualScrollHorizontal,C.lang.rtl),H(oe)})}function Z(q){const B=D.value;if(B){const oe=as.call(B.children,X=>X.classList&&X.classList.contains("q-virtual-scroll--skip")===!1),ve=oe.length,_e=f.virtualScrollHorizontal===!0?X=>X.getBoundingClientRect().width:X=>X.offsetHeight;let K=q,ne,Ee;for(let X=0;X<ve;){for(ne=_e(oe[X]),X++;X<ve&&oe[X].classList.contains("q-virtual-scroll--with-prev")===!0;)ne+=_e(oe[X]),X++;Ee=ne-w[K],Ee!==0&&(w[K]+=Ee,y[Math.floor(K/Pt)]+=Ee),K++}}}function F(){D.value!==null&&D.value!==void 0&&D.value.focus()}function ae(q,B){const oe=1*u.value;(B===!0||Array.isArray(w)===!1)&&(w=[]);const ve=w.length;w.length=t.value;for(let K=t.value-1;K>=ve;K--)w[K]=oe;const _e=Math.floor((t.value-1)/Pt);y=[];for(let K=0;K<=_e;K++){let ne=0;const Ee=Math.min((K+1)*Pt,t.value);for(let X=K*Pt;X<Ee;X++)ne+=w[X];y.push(ne)}v=-1,A=void 0,R.value=Nr(y,w,0,Q.value.from),W.value=Nr(y,w,Q.value.to,t.value),q>=0?(Z(Q.value.from),i.nextTick(()=>{T(q)})):ie()}function se(q){if(q===void 0&&typeof window<"u"){const ne=l();ne!=null&&ne.nodeType!==8&&(q=el(ne,o(),G.value,U.value,f.virtualScrollHorizontal,C.lang.rtl,f.virtualScrollStickySizeStart,f.virtualScrollStickySizeEnd).scrollViewSize)}k=q;const B=parseFloat(f.virtualScrollSliceRatioBefore)||0,oe=parseFloat(f.virtualScrollSliceRatioAfter)||0,ve=1+B+oe,_e=q===void 0||q<=0?1:Math.ceil(q/u.value),K=Math.max(1,_e,Math.ceil((f.virtualScrollSliceSize>0?f.virtualScrollSliceSize:10)/ve));O.value={total:Math.ceil(K*ve),start:Math.ceil(K*B),center:Math.ceil(K*(.5+B)),end:Math.ceil(K*(1+B)),view:_e}}function ce(q,B){const oe=f.virtualScrollHorizontal===!0?"width":"height",ve={["--q-virtual-scroll-item-"+oe]:u.value+"px"};return[q==="tbody"?i.h(q,{class:"q-virtual-scroll__padding",key:"before",ref:G},[i.h("tr",[i.h("td",{style:{[oe]:`${R.value}px`,...ve},colspan:j.value})])]):i.h(q,{class:"q-virtual-scroll__padding",key:"before",ref:G,style:{[oe]:`${R.value}px`,...ve}}),i.h(q,{class:"q-virtual-scroll__content",key:"content",ref:D,tabindex:-1},B.flat()),q==="tbody"?i.h(q,{class:"q-virtual-scroll__padding",key:"after",ref:U},[i.h("tr",[i.h("td",{style:{[oe]:`${W.value}px`,...ve},colspan:j.value})])]):i.h(q,{class:"q-virtual-scroll__padding",key:"after",ref:U,style:{[oe]:`${W.value}px`,...ve}})]}function H(q){v!==q&&(f.onVirtualScroll!==void 0&&m("virtualScroll",{index:q,from:Q.value.from,to:Q.value.to-1,direction:q<v?"decrease":"increase",ref:g}),v=q)}se();const ie=pu(V,C.platform.is.ios===!0?120:35);i.onBeforeMount(()=>{se()});let ge=!1;return i.onDeactivated(()=>{ge=!0}),i.onActivated(()=>{if(ge!==!0)return;const q=l();A!==void 0&&q!==void 0&&q!==null&&q.nodeType!==8?us(q,A,f.virtualScrollHorizontal,C.lang.rtl):T(v)}),i.onBeforeUnmount(()=>{ie.cancel()}),Object.assign(g,{scrollTo:T,reset:le,refresh:P}),{virtualScrollSliceRange:Q,virtualScrollSliceSizeComputed:O,setVirtualScrollSize:se,onVirtualScrollEvt:ie,localResetVirtualScroll:ae,padVirtualScroll:ce,scrollTo:T,reset:le,refresh:P}}function cs(t,l,o){if(o<=l)return l;const u=o-l+1;let s=l+(t-l)%u;return s<l&&(s=u+s),s===0?0:s}const fs=t=>["add","add-unique","toggle"].includes(t),wm=".*+?^${}()|[]\\",Sm=Object.keys(_i),ds=Ye({name:"QSelect",inheritAttrs:!1,props:{...ss,...Po,..._i,modelValue:{required:!0},multiple:Boolean,displayValue:[String,Number],displayValueHtml:Boolean,dropdownIcon:String,options:{type:Array,default:()=>[]},optionValue:[Function,String],optionLabel:[Function,String],optionDisable:[Function,String],hideSelected:Boolean,hideDropdownIcon:Boolean,fillInput:Boolean,maxValues:[Number,String],optionsDense:Boolean,optionsDark:{type:Boolean,default:null},optionsSelectedClass:String,optionsHtml:Boolean,optionsCover:Boolean,menuShrink:Boolean,menuAnchor:String,menuSelf:String,menuOffset:Array,popupContentClass:String,popupContentStyle:[String,Array,Object],popupNoRouteDismiss:Boolean,useInput:Boolean,useChips:Boolean,newValueMode:{type:String,validator:fs},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:ss.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...zo,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(t,{slots:l,emit:o}){const{proxy:u}=i.getCurrentInstance(),{$q:s}=u,f=i.ref(!1),m=i.ref(!1),g=i.ref(-1),C=i.ref(""),A=i.ref(!1),v=i.ref(!1);let k=null,y=null,w,R,W,O=null,G,U,D,Q;const j=i.ref(null),Y=i.ref(null),I=i.ref(null),le=i.ref(null),P=i.ref(null),T=nu(t),V=Su(Vi),S=i.computed(()=>Array.isArray(t.options)?t.options.length:0),Z=i.computed(()=>t.virtualScrollItemSize===void 0?t.optionsDense===!0?24:48:t.virtualScrollItemSize),{virtualScrollSliceRange:F,virtualScrollSliceSizeComputed:ae,localResetVirtualScroll:se,padVirtualScroll:ce,onVirtualScrollEvt:H,scrollTo:ie,setVirtualScrollSize:ge}=ym({virtualScrollLength:S,getVirtualScrollTarget:qi,getVirtualScrollEl:Dr,virtualScrollItemSizeComputed:Z}),q=Uo(),B=i.computed(()=>{const _=t.mapOptions===!0&&t.multiple!==!0,te=t.modelValue!==void 0&&(t.modelValue!==null||_===!0)?t.multiple===!0&&Array.isArray(t.modelValue)?t.modelValue:[t.modelValue]:[];if(t.mapOptions===!0&&Array.isArray(t.options)===!0){const J=t.mapOptions===!0&&w!==void 0?w:[],me=te.map(Oe=>Fr(Oe,J));return t.modelValue===null&&_===!0?me.filter(Oe=>Oe!==null):me}return te}),oe=i.computed(()=>{const _={};return Sm.forEach(te=>{const J=t[te];J!==void 0&&(_[te]=J)}),_}),ve=i.computed(()=>t.optionsDark===null?q.isDark.value:t.optionsDark),_e=i.computed(()=>Vr(B.value)),K=i.computed(()=>{let _="q-field__input q-placeholder col";return t.hideSelected===!0||B.value.length===0?[_,t.inputClass]:(_+=" q-field__input--padding",t.inputClass===void 0?_:[_,t.inputClass])}),ne=i.computed(()=>(t.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(t.popupContentClass?" "+t.popupContentClass:"")),Ee=i.computed(()=>S.value===0),X=i.computed(()=>B.value.map(_=>Ge.value(_)).join(", ")),Ne=i.computed(()=>t.displayValue!==void 0?t.displayValue:X.value),ot=i.computed(()=>t.optionsHtml===!0?()=>!0:_=>_!=null&&_.html===!0),Nt=i.computed(()=>t.displayValueHtml===!0||t.displayValue===void 0&&(t.optionsHtml===!0||B.value.some(ot.value))),_t=i.computed(()=>q.focused.value===!0?t.tabindex:-1),nt=i.computed(()=>{const _={tabindex:t.tabindex,role:"combobox","aria-label":t.label,"aria-readonly":t.readonly===!0?"true":"false","aria-autocomplete":t.useInput===!0?"list":"none","aria-expanded":f.value===!0?"true":"false","aria-controls":`${q.targetUid.value}_lb`};return g.value>=0&&(_["aria-activedescendant"]=`${q.targetUid.value}_${g.value}`),_}),bt=i.computed(()=>({id:`${q.targetUid.value}_lb`,role:"listbox","aria-multiselectable":t.multiple===!0?"true":"false"})),en=i.computed(()=>B.value.map((_,te)=>({index:te,opt:_,html:ot.value(_),selected:!0,removeAtIndex:vn,toggleOption:Dt,tabindex:_t.value}))),ct=i.computed(()=>{if(S.value===0)return[];const{from:_,to:te}=F.value;return t.options.slice(_,te).map((J,me)=>{const Oe=Ft.value(J)===!0,Be=Dn(J)===!0,He=_+me,Le={clickable:!0,active:Be,activeClass:$t.value,manualFocus:!0,focused:!1,disable:Oe,tabindex:-1,dense:t.optionsDense,dark:ve.value,role:"option","aria-selected":Be===!0?"true":"false",id:`${q.targetUid.value}_${He}`,onClick:()=>{Dt(J)}};return Oe!==!0&&(g.value===He&&(Le.focused=!0),s.platform.is.desktop===!0&&(Le.onMousemove=()=>{f.value===!0&&Gt(He)})),{index:He,opt:J,html:ot.value(J),label:Ge.value(J),selected:Le.active,focused:Le.focused,toggleOption:Dt,setOptionIndex:Gt,itemProps:Le}})}),pn=i.computed(()=>t.dropdownIcon!==void 0?t.dropdownIcon:s.iconSet.arrow.dropdown),$r=i.computed(()=>t.optionsCover===!1&&t.outlined!==!0&&t.standout!==!0&&t.borderless!==!0&&t.rounded!==!0),$t=i.computed(()=>t.optionsSelectedClass!==void 0?t.optionsSelectedClass:t.color!==void 0?`text-${t.color}`:""),Fe=i.computed(()=>Fn(t.optionValue,"value")),Ge=i.computed(()=>Fn(t.optionLabel,"label")),Ft=i.computed(()=>Fn(t.optionDisable,"disable")),fr=i.computed(()=>B.value.map(_=>Fe.value(_))),$n=i.computed(()=>{const _={onInput:Vi,onChange:V,onKeydown:Oi,onKeyup:Bi,onKeypress:Ri,onFocus:hr,onClick(te){R===!0&&Kt(te)}};return _.onCompositionstart=_.onCompositionupdate=_.onCompositionend=V,_});i.watch(B,_=>{w=_,t.useInput===!0&&t.fillInput===!0&&t.multiple!==!0&&q.innerLoading.value!==!0&&(m.value!==!0&&f.value!==!0||_e.value!==!0)&&(W!==!0&&rn(),(m.value===!0||f.value===!0)&&bn(""))},{immediate:!0}),i.watch(()=>t.fillInput,rn),i.watch(f,Wr),i.watch(S,dl);function Ti(_){return t.emitValue===!0?Fe.value(_):_}function tn(_){if(_!==-1&&_<B.value.length)if(t.multiple===!0){const te=t.modelValue.slice();o("remove",{index:_,value:te.splice(_,1)[0]}),o("update:modelValue",te)}else o("update:modelValue",null)}function vn(_){tn(_),q.focus()}function dr(_,te){const J=Ti(_);if(t.multiple!==!0){t.fillInput===!0&&Un(Ge.value(_),!0,!0),o("update:modelValue",J);return}if(B.value.length===0){o("add",{index:0,value:J}),o("update:modelValue",t.multiple===!0?[J]:J);return}if(te===!0&&Dn(_)===!0||t.maxValues!==void 0&&t.modelValue.length>=t.maxValues)return;const me=t.modelValue.slice();o("add",{index:me.length,value:J}),me.push(J),o("update:modelValue",me)}function Dt(_,te){if(q.editable.value!==!0||_===void 0||Ft.value(_)===!0)return;const J=Fe.value(_);if(t.multiple!==!0){te!==!0&&(Un(t.fillInput===!0?Ge.value(_):"",!0,!0),nn()),Y.value!==null&&Y.value.focus(),(B.value.length===0||Jt(Fe.value(B.value[0]),J)!==!0)&&o("update:modelValue",t.emitValue===!0?J:_);return}if((R!==!0||A.value===!0)&&q.focus(),hr(),B.value.length===0){const Be=t.emitValue===!0?J:_;o("add",{index:0,value:Be}),o("update:modelValue",t.multiple===!0?[Be]:Be);return}const me=t.modelValue.slice(),Oe=fr.value.findIndex(Be=>Jt(Be,J));if(Oe!==-1)o("remove",{index:Oe,value:me.splice(Oe,1)[0]});else{if(t.maxValues!==void 0&&me.length>=t.maxValues)return;const Be=t.emitValue===!0?J:_;o("add",{index:me.length,value:Be}),me.push(Be)}o("update:modelValue",me)}function Gt(_){if(s.platform.is.desktop!==!0)return;const te=_!==-1&&_<S.value?_:-1;g.value!==te&&(g.value=te)}function _n(_=1,te){if(f.value===!0){let J=g.value;do J=cs(J+_,-1,S.value-1);while(J!==-1&&J!==g.value&&Ft.value(t.options[J])===!0);g.value!==J&&(Gt(J),ie(J),te!==!0&&t.useInput===!0&&t.fillInput===!0&&zn(J>=0?Ge.value(t.options[J]):G,!0))}}function Fr(_,te){const J=me=>Jt(Fe.value(me),_);return t.options.find(J)||te.find(J)||_}function Fn(_,te){const J=_!==void 0?_:te;return typeof J=="function"?J:me=>me!==null&&typeof me=="object"&&J in me?me[J]:me}function Dn(_){const te=Fe.value(_);return fr.value.find(J=>Jt(J,te))!==void 0}function hr(_){t.useInput===!0&&Y.value!==null&&(_===void 0||Y.value===_.target&&_.target.value===X.value)&&Y.value.select()}function mr(_){Vn(_,27)===!0&&f.value===!0&&(Kt(_),nn(),rn()),o("keyup",_)}function Bi(_){const{value:te}=_.target;if(_.keyCode!==void 0){mr(_);return}if(_.target.value="",k!==null&&(clearTimeout(k),k=null),y!==null&&(clearTimeout(y),y=null),rn(),typeof te=="string"&&te.length!==0){const J=te.toLocaleLowerCase(),me=Be=>{const He=t.options.find(Le=>Be.value(Le).toLocaleLowerCase()===J);return He===void 0?!1:(B.value.indexOf(He)===-1?Dt(He):nn(),!0)},Oe=Be=>{me(Fe)!==!0&&(me(Ge)===!0||Be===!0||bn(te,!0,()=>Oe(!0)))};Oe()}else q.clearValue(_)}function Ri(_){o("keypress",_)}function Oi(_){if(o("keydown",_),Ho(_)===!0)return;const te=C.value.length!==0&&(t.newValueMode!==void 0||t.onNewValue!==void 0),J=_.shiftKey!==!0&&t.multiple!==!0&&(g.value!==-1||te===!0);if(_.keyCode===27){It(_);return}if(_.keyCode===9&&J===!1){yn();return}if(_.target===void 0||_.target.id!==q.targetUid.value||q.editable.value!==!0)return;if(_.keyCode===40&&q.innerLoading.value!==!0&&f.value===!1){Ke(_),wn();return}if(_.keyCode===8&&(t.useChips===!0||t.clearable===!0)&&t.hideSelected!==!0&&C.value.length===0){t.multiple===!0&&Array.isArray(t.modelValue)===!0?tn(t.modelValue.length-1):t.multiple!==!0&&t.modelValue!==null&&o("update:modelValue",null);return}(_.keyCode===35||_.keyCode===36)&&(typeof C.value!="string"||C.value.length===0)&&(Ke(_),g.value=-1,_n(_.keyCode===36?1:-1,t.multiple)),(_.keyCode===33||_.keyCode===34)&&ae.value!==void 0&&(Ke(_),g.value=Math.max(-1,Math.min(S.value,g.value+(_.keyCode===33?-1:1)*ae.value.view)),_n(_.keyCode===33?1:-1,t.multiple)),(_.keyCode===38||_.keyCode===40)&&(Ke(_),_n(_.keyCode===38?-1:1,t.multiple));const me=S.value;if((D===void 0||Q<Date.now())&&(D=""),me>0&&t.useInput!==!0&&_.key!==void 0&&_.key.length===1&&_.altKey===!1&&_.ctrlKey===!1&&_.metaKey===!1&&(_.keyCode!==32||D.length!==0)){f.value!==!0&&wn(_);const Oe=_.key.toLocaleLowerCase(),Be=D.length===1&&D[0]===Oe;Q=Date.now()+1500,Be===!1&&(Ke(_),D+=Oe);const He=new RegExp("^"+D.split("").map(gr=>wm.indexOf(gr)!==-1?"\\"+gr:gr).join(".*"),"i");let Le=g.value;if(Be===!0||Le<0||He.test(Ge.value(t.options[Le]))!==!0)do Le=cs(Le+1,-1,me-1);while(Le!==g.value&&(Ft.value(t.options[Le])===!0||He.test(Ge.value(t.options[Le]))!==!0));g.value!==Le&&i.nextTick(()=>{Gt(Le),ie(Le),Le>=0&&t.useInput===!0&&t.fillInput===!0&&zn(Ge.value(t.options[Le]),!0)});return}if(!(_.keyCode!==13&&(_.keyCode!==32||t.useInput===!0||D!=="")&&(_.keyCode!==9||J===!1))){if(_.keyCode!==9&&Ke(_),g.value!==-1&&g.value<me){Dt(t.options[g.value]);return}if(te===!0){const Oe=(Be,He)=>{if(He){if(fs(He)!==!0)return}else He=t.newValueMode;if(Un("",t.multiple!==!0,!0),Be==null)return;(He==="toggle"?Dt:dr)(Be,He==="add-unique"),t.multiple!==!0&&(Y.value!==null&&Y.value.focus(),nn())};if(t.onNewValue!==void 0?o("newValue",C.value,Oe):Oe(C.value),t.multiple!==!0)return}f.value===!0?yn():q.innerLoading.value!==!0&&wn()}}function Dr(){return R===!0?P.value:I.value!==null&&I.value.contentEl!==null?I.value.contentEl:void 0}function qi(){return Dr()}function rl(){return t.hideSelected===!0?[]:l["selected-item"]!==void 0?en.value.map(_=>l["selected-item"](_)).slice():l.selected!==void 0?[].concat(l.selected()):t.useChips===!0?en.value.map((_,te)=>i.h(Vh,{key:"option-"+te,removable:q.editable.value===!0&&Ft.value(_.opt)!==!0,dense:!0,textColor:t.color,tabindex:_t.value,onRemove(){_.removeAtIndex(te)}},()=>i.h("span",{class:"ellipsis",[_.html===!0?"innerHTML":"textContent"]:Ge.value(_.opt)}))):[i.h("span",{[Nt.value===!0?"innerHTML":"textContent"]:Ne.value})]}function Mi(){if(Ee.value===!0)return l["no-option"]!==void 0?l["no-option"]({inputValue:C.value}):void 0;const _=l.option!==void 0?l.option:J=>i.h(Lh,{key:J.index,...J.itemProps},()=>i.h(Ih,()=>i.h(Ph,()=>i.h("span",{[J.html===!0?"innerHTML":"textContent"]:J.label}))));let te=ce("div",ct.value.map(_));return l["before-options"]!==void 0&&(te=l["before-options"]().concat(te)),qn(l["after-options"],te)}function il(_,te){const J=te===!0?{...nt.value,...q.splitAttrs.attributes.value}:void 0,me={ref:te===!0?Y:void 0,key:"i_t",class:K.value,style:t.inputStyle,value:C.value!==void 0?C.value:"",type:"search",...J,id:te===!0?q.targetUid.value:void 0,maxlength:t.maxlength,autocomplete:t.autocomplete,"data-autofocus":_===!0||t.autofocus===!0||void 0,disabled:t.disable===!0,readonly:t.readonly===!0,...$n.value};return _!==!0&&R===!0&&(Array.isArray(me.class)===!0?me.class=[...me.class,"no-pointer-events"]:me.class+=" no-pointer-events"),i.h("input",me)}function Vi(_){k!==null&&(clearTimeout(k),k=null),y!==null&&(clearTimeout(y),y=null),!(_&&_.target&&_.target.qComposing===!0)&&(zn(_.target.value||""),W=!0,G=C.value,q.focused.value!==!0&&(R!==!0||A.value===!0)&&q.focus(),t.onFilter!==void 0&&(k=setTimeout(()=>{k=null,bn(C.value)},t.inputDebounce)))}function zn(_,te){C.value!==_&&(C.value=_,te===!0||t.inputDebounce===0||t.inputDebounce==="0"?o("inputValue",_):y=setTimeout(()=>{y=null,o("inputValue",_)},t.inputDebounce))}function Un(_,te,J){W=J!==!0,t.useInput===!0&&(zn(_,!0),(te===!0||J!==!0)&&(G=_),te!==!0&&bn(_))}function bn(_,te,J){if(t.onFilter===void 0||te!==!0&&q.focused.value!==!0)return;q.innerLoading.value===!0?o("filterAbort"):(q.innerLoading.value=!0,v.value=!0),_!==""&&t.multiple!==!0&&B.value.length!==0&&W!==!0&&_===Ge.value(B.value[0])&&(_="");const me=setTimeout(()=>{f.value===!0&&(f.value=!1)},10);O!==null&&clearTimeout(O),O=me,o("filter",_,(Oe,Be)=>{(te===!0||q.focused.value===!0)&&O===me&&(clearTimeout(O),typeof Oe=="function"&&Oe(),v.value=!1,i.nextTick(()=>{q.innerLoading.value=!1,q.editable.value===!0&&(te===!0?f.value===!0&&nn():f.value===!0?Wr(!0):f.value=!0),typeof Be=="function"&&i.nextTick(()=>{Be(u)}),typeof J=="function"&&i.nextTick(()=>{J(u)})}))},()=>{q.focused.value===!0&&O===me&&(clearTimeout(O),q.innerLoading.value=!1,v.value=!1),f.value===!0&&(f.value=!1)})}function ol(){return i.h(cm,{ref:I,class:ne.value,style:t.popupContentStyle,modelValue:f.value,fit:t.menuShrink!==!0,cover:t.optionsCover===!0&&Ee.value!==!0&&t.useInput!==!0,anchor:t.menuAnchor,self:t.menuSelf,offset:t.menuOffset,dark:ve.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:t.popupNoRouteDismiss,square:$r.value,transitionShow:t.transitionShow,transitionHide:t.transitionHide,transitionDuration:t.transitionDuration,separateClosePopup:!0,...bt.value,onScrollPassive:H,onBeforeShow:Ii,onBeforeHide:zr,onShow:ll},Mi)}function zr(_){Pi(_),yn()}function ll(){ge()}function Ur(_){Kt(_),Y.value!==null&&Y.value.focus(),A.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function al(_){Kt(_),i.nextTick(()=>{A.value=!1})}function ul(){const _=[i.h(qh,{class:`col-auto ${q.fieldClass.value}`,...oe.value,for:q.targetUid.value,dark:ve.value,square:!0,loading:v.value,itemAligned:!1,filled:!0,stackLabel:C.value.length!==0,...q.splitAttrs.listeners.value,onFocus:Ur,onBlur:al},{...l,rawControl:()=>q.getControl(!0),before:void 0,after:void 0})];return f.value===!0&&_.push(i.h("div",{ref:P,class:ne.value+" scroll",style:t.popupContentStyle,...bt.value,onClick:It,onScrollPassive:H},Mi())),i.h(vm,{ref:le,modelValue:m.value,position:t.useInput===!0?"top":void 0,transitionShow:U,transitionHide:t.transitionHide,transitionDuration:t.transitionDuration,noRouteDismiss:t.popupNoRouteDismiss,onBeforeShow:Ii,onBeforeHide:sl,onHide:cl,onShow:fl},()=>i.h("div",{class:"q-select__dialog"+(ve.value===!0?" q-select__dialog--dark q-dark":"")+(A.value===!0?" q-select__dialog--focused":"")},_))}function sl(_){Pi(_),le.value!==null&&le.value.__updateRefocusTarget(q.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),q.focused.value=!1}function cl(_){nn(),q.focused.value===!1&&o("blur",_),rn()}function fl(){const _=document.activeElement;(_===null||_.id!==q.targetUid.value)&&Y.value!==null&&Y.value!==_&&Y.value.focus(),ge()}function yn(){m.value!==!0&&(g.value=-1,f.value===!0&&(f.value=!1),q.focused.value===!1&&(O!==null&&(clearTimeout(O),O=null),q.innerLoading.value===!0&&(o("filterAbort"),q.innerLoading.value=!1,v.value=!1)))}function wn(_){q.editable.value===!0&&(R===!0?(q.onControlFocusin(_),m.value=!0,i.nextTick(()=>{q.focus()})):q.focus(),t.onFilter!==void 0?bn(C.value):(Ee.value!==!0||l["no-option"]!==void 0)&&(f.value=!0))}function nn(){m.value=!1,yn()}function rn(){t.useInput===!0&&Un(t.multiple!==!0&&t.fillInput===!0&&B.value.length!==0&&Ge.value(B.value[0])||"",!0,!0)}function Wr(_){let te=-1;if(_===!0){if(B.value.length!==0){const J=Fe.value(B.value[0]);te=t.options.findIndex(me=>Jt(Fe.value(me),J))}se(te)}Gt(te)}function dl(_,te){f.value===!0&&q.innerLoading.value===!1&&(se(-1,!0),i.nextTick(()=>{f.value===!0&&q.innerLoading.value===!1&&(_>te?se():Wr(!0))}))}function Li(){m.value===!1&&I.value!==null&&I.value.updatePosition()}function Ii(_){_!==void 0&&Kt(_),o("popupShow",_),q.hasPopupOpen=!0,q.onControlFocusin(_)}function Pi(_){_!==void 0&&Kt(_),o("popupHide",_),q.hasPopupOpen=!1,q.onControlFocusout(_)}function Ni(){R=s.platform.is.mobile!==!0&&t.behavior!=="dialog"?!1:t.behavior!=="menu"&&(t.useInput===!0?l["no-option"]!==void 0||t.onFilter!==void 0||Ee.value===!1:!0),U=s.platform.is.ios===!0&&R===!0&&t.useInput===!0?"fade":t.transitionShow}return i.onBeforeUpdate(Ni),i.onUpdated(Li),Ni(),i.onBeforeUnmount(()=>{k!==null&&clearTimeout(k),y!==null&&clearTimeout(y)}),Object.assign(u,{showPopup:wn,hidePopup:nn,removeAtIndex:tn,add:dr,toggleOption:Dt,getOptionIndex:()=>g.value,setOptionIndex:Gt,moveOptionSelection:_n,filter:bn,updateMenuPosition:Li,updateInputValue:Un,isOptionSelected:Dn,getEmittingOptionValue:Ti,isOptionDisabled:(..._)=>Ft.value.apply(null,_)===!0,getOptionValue:(..._)=>Fe.value.apply(null,_),getOptionLabel:(..._)=>Ge.value.apply(null,_)}),Object.assign(q,{innerValue:B,fieldClass:i.computed(()=>`q-select q-field--auto-height q-select--with${t.useInput!==!0?"out":""}-input q-select--with${t.useChips!==!0?"out":""}-chips q-select--${t.multiple===!0?"multiple":"single"}`),inputRef:j,targetRef:Y,hasValue:_e,showPopup:wn,floatingLabel:i.computed(()=>t.hideSelected!==!0&&_e.value===!0||typeof C.value=="number"||C.value.length!==0||Vr(t.displayValue)),getControlChild:()=>{if(q.editable.value!==!1&&(m.value===!0||Ee.value!==!0||l["no-option"]!==void 0))return R===!0?ul():ol();q.hasPopupOpen===!0&&(q.hasPopupOpen=!1)},controlEvents:{onFocusin(_){q.onControlFocusin(_)},onFocusout(_){q.onControlFocusout(_,()=>{rn(),yn()})},onClick(_){if(It(_),R!==!0&&f.value===!0){yn(),Y.value!==null&&Y.value.focus();return}wn(_)}},getControl:_=>{const te=rl(),J=_===!0||m.value!==!0||R!==!0;if(t.useInput===!0)te.push(il(_,J));else if(q.editable.value===!0){const Oe=J===!0?nt.value:void 0;te.push(i.h("input",{ref:J===!0?Y:void 0,key:"d_t",class:"q-select__focus-target",id:J===!0?q.targetUid.value:void 0,value:Ne.value,readonly:!0,"data-autofocus":_===!0||t.autofocus===!0||void 0,...Oe,onKeydown:Oi,onKeyup:mr,onKeypress:Ri})),J===!0&&typeof t.autocomplete=="string"&&t.autocomplete.length!==0&&te.push(i.h("input",{class:"q-select__autocomplete-input",autocomplete:t.autocomplete,tabindex:-1,onKeyup:Bi}))}if(T.value!==void 0&&t.disable!==!0&&fr.value.length!==0){const Oe=fr.value.map(Be=>i.h("option",{value:Be,selected:!0}));te.push(i.h("select",{class:"hidden",name:T.value,multiple:t.multiple},Oe))}const me=t.useInput===!0||J!==!0?void 0:q.splitAttrs.attributes.value;return i.h("div",{class:"q-field__native row items-center",...me,...q.splitAttrs.listeners.value},te)},getInnerAppend:()=>t.loading!==!0&&v.value!==!0&&t.hideDropdownIcon!==!0?[i.h(vt,{class:"q-select__dropdown-icon"+(f.value===!0?" rotate-180":""),name:pn.value})]:null}),Wo(q)}}),xm=gn(i.defineComponent({__name:"SelectControl",props:i.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=i.ref([]),o=i.useModel(t,"modelValue"),u=t,s=i.ref(!1),f=i.computed(()=>u.control.customParams),m=i.ref([]),g=i.computed(()=>{var k;return((k=f.value)==null?void 0:k.collection)||null}),C=i.computed(()=>g.value?m.value:u.control.options),A=nr();i.watch(g,k=>{if(!k)return;const y=A.getCollection(g.value);if(y){m.value=y;return}s.value=!0},{immediate:!0});function v(k,y){if(k===""){y(()=>{l.value=Pe.cloneDeep(C.value)});return}y(()=>{const w=k.toLowerCase();l.value=(C.value||[]).filter(R=>R.toLowerCase().includes(w))})}return(k,y)=>{const w=i.resolveComponent("ControlLabel");return i.openBlock(),i.createElementBlock(i.Fragment,null,[k.control.label?(i.openBlock(),i.createBlock(w,{key:0,label:k.control.label},null,8,["label"])):i.createCommentVNode("",!0),i.createVNode(yi,{class:"q-card win-card row items-center q-px-md"},{default:i.withCtx(()=>[i.createVNode(ds,{borderless:"",label:k.control.label,modelValue:o.value,"onUpdate:modelValue":y[0]||(y[0]=R=>o.value=R),"emit-value":"","option-label":"label","map-options":"","use-input":"",clearable:"",onFilter:v,options:l.value,style:{minHeight:"70px",width:"300px",margin:"auto"}},null,8,["label","modelValue","options"])]),_:1})],64)}}}),[["__scopeId","data-v-6268ce2c"]]),Cm={class:"text-center",style:{width:"100%"}},km={class:"text-center text-weight-medium"},Em={class:"question-title"},Am=i.defineComponent({__name:"StepHeader",props:{formGroup:{},stepsCount:{}},setup(t){return(l,o)=>(i.openBlock(),i.createElementBlock("div",Cm,[i.createElementVNode("div",km,i.toDisplayString(l.formGroup.order+1)+"/"+i.toDisplayString(l.stepsCount),1),i.createElementVNode("div",Em,i.toDisplayString(l.formGroup.title||""),1)]))}});function Tm(){return i.inject(Dd)}function hs(t,l){const{maxControlsPerGroup:o,notifyValidations:u}={...Ff,...l||{}},s=nr(),f=i.computed(()=>s.formSteps[t]),m=i.ref([]),g=i.ref([]),C=(w,R)=>{s.setControlValue(t,w);const W=m.value.find(U=>U.id===R);W&&(g.value=zf(W));const O=v(w),G=k(w);(O||G)&&A()};function A(){const w=f.value.controls,R=[];Kf(w).forEach(O=>{const G=O.controls;if(G.every(D=>!Eo.includes(D.controlType))){R.push(O);return}let U={...O,controls:[]};for(const D of G)if(Eo.includes(D.controlType)){R.push(U),U={...U,controls:[]};const Q=Wf(O,D,o);R.push(...Q)}else U.controls.push(D)}),m.value=Pe.orderBy(R,"order").map(O=>({...O,id:O.controls.map(G=>G.id).join("-")})).filter(O=>O.controls.some(G=>G.visible)).map((O,G)=>({...O,order:G,controls:O.controls.filter(U=>U.visible)}))}function v({id:w,value:R}){let W=!1;const G=f.value.controls.filter(U=>{var D;return((D=U.conditions)==null?void 0:D.some(Q=>Q.id===w))||!1});if(G!=null&&G.length)return G.forEach(({id:U,conditions:D,visible:Q})=>{const j=D.every(Y=>{const{value:I,operator:le}=Y;return{"==":R===I,"!=":R!==I,">":R>I,"<":R<I}[le]||!1});Q!==j&&(s.setControlVisibility(t,U,j),W=!0)}),W}function k({id:w,value:R}){const W=Number(R||0);let O=!1;const U=f.value.controls.filter(D=>{var Q;return D.controlType==="dynamic_array"&&((Q=D.itemsLength)==null?void 0:Q.controlId)===w});if(U!=null&&U.length)return U.forEach(({id:D,itemsLength:Q})=>{(Q==null?void 0:Q.value)!==W&&(s.setControlItemsLength(t,D,W),O=!0)}),O}const{notify:y}=Tm();return i.watch(g,w=>{w.length&&(u&&y({message:w[0],color:"negative",position:"bottom",timeout:5e3,actions:[{label:"✕",color:"white"}]}),g.value=[])},{deep:!0}),i.watch(f,()=>{A()},{immediate:!0}),{model:m,errorMessages:g,rebuildModel:A,onControlValueUpdate:C}}const Bm={key:0,style:{height:"100%"}},Rm={class:"q-py-sm"},Om={class:"form-steps-container"},qm={class:"row justify-center items-center",style:{height:"100%",width:"100vw"}},Mm={class:"controls-container",style:{height:"100%"}},Vm={class:"form-container flex column items-center q-px-md",style:{width:"100vw"}},Lm=gn(i.defineComponent({__name:"MultipleFormGroups",props:{index:{}},setup(t){const l=t,o=nr(),{model:u,onControlValueUpdate:s}=hs(l.index),f=i.computed(()=>u.value.length),m=i.ref(0),g=i.computed(()=>u.value[m.value]),C=v=>{const k=Pe.toPairs(Pe.groupBy(v,"row"));return Pe.orderBy(k,([y,w])=>Number(y),"asc").map(([y,w])=>({controls:Pe.orderBy(w,"col","asc")}))};i.watch(m,v=>{const k=v+1===f.value;o.setOnLastSubstep(k)},{immediate:!0});function A(v){return{input_text:Ko,input_number:Ko,checkbox:su,switch:Id,select:xm,cards_select:Td}[v]||Ko}return(v,k)=>g.value?(i.openBlock(),i.createElementBlock("div",Bm,[i.createElementVNode("div",Rm,[i.createVNode(Am,{formGroup:g.value,stepsCount:f.value},null,8,["formGroup","stepsCount"])]),i.createElementVNode("div",Om,[i.createElementVNode("div",qm,[i.createElementVNode("div",Mm,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(u),y=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:y.id},[m.value===y.order?(i.openBlock(),i.createBlock(sd,{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",Vm,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(C(y.controls),(w,R)=>(i.openBlock(),i.createElementBlock("div",{class:"q-mb-xl",key:R},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(w.controls,(W,O)=>(i.openBlock(),i.createElementBlock("div",{key:O},[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(A(W.controlType)),{control:W,modelValue:w.controls[O].value,"onUpdate:modelValue":[G=>w.controls[O].value=G,G=>i.unref(s)(W,y.id)]},null,8,["control","modelValue","onUpdate:modelValue"]))]))),128))]))),128))])]),_:2},1024)):i.createCommentVNode("",!0)],64))),128)),i.createVNode(Oh,{currentStep:m.value,stepsCount:f.value,nextDisabled:!g.value.valid,onPrev:k[0]||(k[0]=y=>m.value--),onNext:k[1]||(k[1]=y=>g.value.valid&&m.value++)},null,8,["currentStep","stepsCount","nextDisabled"])])])])])):i.createCommentVNode("",!0)}}),[["__scopeId","data-v-2d9dca33"]]),Im={style:{"font-size":"16px","padding-top":"1rem"}},Pm={style:{"font-size":"16px","padding-top":"1rem"}},tl=gn(i.defineComponent({__name:"SimpleInput",props:i.mergeModels({control:{},rules:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=i.useModel(t,"modelValue"),o=t,u=i.computed(()=>{var s;return(s=o.control.controlType)==null?void 0:s.split("_")[1]});return(s,f)=>(i.openBlock(),i.createBlock(yi,{class:"q-px-md win-card"},{default:i.withCtx(()=>[i.createVNode(xu,{borderless:"","reverse-fill-mask":"",modelValue:l.value,"onUpdate:modelValue":f[0]||(f[0]=m=>l.value=m),label:s.control.label,mask:u.value==="number"?"###.###.###.###.###":void 0,"input-class":{"text-right":u.value==="number"},"input-style":{fontSize:"16px"},rules:s.rules},i.createSlots({_:2},[s.control.prefix?{name:"prepend",fn:i.withCtx(()=>[i.createElementVNode("span",Im,i.toDisplayString(s.control.prefix),1)]),key:"0"}:void 0,s.control.suffix?{name:"append",fn:i.withCtx(()=>[i.createElementVNode("span",Pm,i.toDisplayString(s.control.suffix),1)]),key:"1"}:void 0]),1032,["modelValue","label","mask","input-class","rules"])]),_:1}))}}),[["__scopeId","data-v-2efb4029"]]),ms=i.defineComponent({__name:"SimpleSelect",props:i.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=i.useModel(t,"modelValue");return(o,u)=>(i.openBlock(),i.createBlock(yi,{class:"q-px-md win-card"},{default:i.withCtx(()=>[i.createVNode(ds,{borderless:"",label:o.control.label,options:o.control.options,modelValue:l.value,"onUpdate:modelValue":u[0]||(u[0]=s=>l.value=s),"emit-value":"","option-label":"label","map-options":""},null,8,["label","options","modelValue"])]),_:1}))}}),Nm={key:0,style:{height:"100%"}},$m={class:"question-title text-center q-py-sm"},Fm={class:"form-steps-container bg-grey-1"},Dm={class:"form-container",style:{height:"100%"}},zm={class:"row items-center"},Um={class:"col-12 row"},Wm=gn(i.defineComponent({__name:"SingleFormGroup",props:{index:{}},setup(t){const l=t,{model:o,onControlValueUpdate:u}=hs(l.index,{notifyValidations:!1});function s(C){return{input_text:tl,input_number:tl,select:ms,cards_select:ms,checkbox:su}[C]||tl}const f=C=>Pe.orderBy(Pe.toPairs(Pe.groupBy(C,"row")),"row").map(([A,v])=>({controls:Pe.orderBy(v,"col")}));function m(C){return[A=>{var k;let v="";return(k=C.validators)==null||k.some(y=>{const{param:w,validator:R}=y,W=Ra[R];return W.fn(Number(w))({...C,value:A})?!1:(v=W.message,!0)}),!v.length||v}]}const g=nr();return i.onMounted(()=>g.setOnLastSubstep(!0)),(C,A)=>i.unref(o)?(i.openBlock(),i.createElementBlock("div",Nm,[i.createElementVNode("div",$m,i.toDisplayString(i.unref(o)[0].title),1),i.createElementVNode("div",Fm,[i.createElementVNode("div",Dm,[i.createElementVNode("div",zm,[i.createElementVNode("div",Um,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(f(i.unref(o)[0].controls),(v,k)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(f(i.unref(o)[0].controls).length>1?"col-md-6 col-12":"col-12"),key:k},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(v.controls,(y,w)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(`col-xs-12 col-sm q-pa-xs ${f(i.unref(o)[0].controls).length>1?"col-md-6 col-12":"col-12"}`),key:w},[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(s(y.controlType)),{control:y,modelValue:y.value,"onUpdate:modelValue":[R=>y.value=R,R=>i.unref(u)(y,i.unref(o)[0].id)],rules:m(y)},null,8,["control","modelValue","onUpdate:modelValue","rules"]))],2))),128))],2))),128))])])])])])):i.createCommentVNode("",!0)}}),[["__scopeId","data-v-a8cd1002"]]),nl=t=>(i.pushScopeId("data-v-88496229"),t=t(),i.popScopeId(),t),Hm={class:"buttons-container"},Km={class:"max-container"},Gm={key:0,class:"row checkbox justify-end q-my-sm"},jm={style:{"max-width":"650px"}},Qm=nl(()=>i.createElementVNode("br",{class:"gt-sm"},null,-1)),Ym={class:"row justify-between q-my-md q-px-md q-pb-xl"},Zm=nl(()=>i.createElementVNode("span",{class:"text-black"},"Atrás",-1)),Xm={key:1},Jm={key:0,class:"text-black"},eg=nl(()=>i.createElementVNode("span",{class:"gt-sm"},"formulario",-1)),tg={key:1,class:"text-black"},ng=gn(i.defineComponent({__name:"StepsNavigationButtons",emits:["submit"],setup(t,{emit:l}){const{nextStep:o,previousStep:u,currentStep:s,stepsCount:f,nextDisabled:m,onLastSubstep:g}=i.toRefs(nr()),C=l,A=i.ref(!1),v=y=>{},k=()=>{s.value===f.value?C("submit"):o.value()};return(y,w)=>(i.openBlock(),i.createElementBlock("div",Hm,[i.createElementVNode("div",Km,[i.unref(s)===i.unref(f)?(i.openBlock(),i.createElementBlock("div",Gm,[i.createElementVNode("div",jm,[i.createVNode(uu,{color:"info",class:"checkbox",modelValue:A.value,"onUpdate:modelValue":w[1]||(w[1]=R=>A.value=R)},{default:i.withCtx(()=>[i.createElementVNode("div",null,[i.createTextVNode(" He leído, comprendo y acepto los términos de tratamiento de datos "),Qm,i.createTextVNode(" personales para esta solicitud. Más info. sobre la protección de datos "),i.createElementVNode("span",{style:{"text-decoration":"underline"},onClick:w[0]||(w[0]=R=>v())},"aquí"),i.createTextVNode(". ")])]),_:1},8,["modelValue"])])])):i.createCommentVNode("",!0),i.createElementVNode("div",Ym,[i.unref(s)>1?(i.openBlock(),i.createBlock(ur,{key:0,color:"info",class:"q-px-xl q-py-sm q-mr-sm win-btn win-btn-primary bg-white",onClick:i.unref(u),flat:"","no-caps":""},{default:i.withCtx(()=>[Zm]),_:1},8,["onClick"])):(i.openBlock(),i.createElementBlock("div",Xm)),i.createElementVNode("div",null,[!i.unref(m)&&i.unref(g)?(i.openBlock(),i.createBlock(ur,{key:0,color:"green",class:"q-px-xl q-py-sm q-ml-sm win-btn win-btn-primary bg-white",onClick:k,disable:i.unref(s)===i.unref(f)&&!A.value,flat:"","no-caps":""},{default:i.withCtx(()=>[i.unref(s)===i.unref(f)?(i.openBlock(),i.createElementBlock("span",Jm,[i.createTextVNode(" Enviar "),eg])):(i.openBlock(),i.createElementBlock("span",tg," Siguiente "))]),_:1},8,["disable"])):i.createCommentVNode("",!0)])])])]))}}),[["__scopeId","data-v-88496229"]]),gs=i.defineComponent({__name:"DynamicForm",props:{forms:{}},emits:["onSubmit"],setup(t,{emit:l}){const o=t,u=l,s=i.ref(!1),f=nr(),m=C=>Pe.keys(Pe.groupBy(C.controls,"group")).length===1;i.watch(()=>o.forms,C=>{const v=new Da().fromRaw(C);f.setFormSteps(v)},{immediate:!0});function g(){const C=Pe.cloneDeep(f.formSteps),v=new Da().toRaw(C);u("onSubmit",v)}return(C,A)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",null,[i.renderSlot(C.$slots,"header"),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(f).formSteps,(v,k)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:k},[m(v)?i.withDirectives((i.openBlock(),i.createBlock(Wm,{key:0,index:k},null,8,["index"])),[[i.vShow,i.unref(f).currentStep===k+1]]):i.withDirectives((i.openBlock(),i.createBlock(Lm,{key:1,index:k,onOnLastStep:A[0]||(A[0]=y=>s.value=y)},null,8,["index"])),[[i.vShow,i.unref(f).currentStep===k+1]])],64))),128))]),i.createVNode(ng,{onSubmit:g})],64))}}),rg=i.createElementVNode("img",{src:"https://upload.wikimedia.org/wikipedia/commons/thumb/9/95/Vue.js_Logo_2.svg/640px-Vue.js_Logo_2.svg.png",alt:""},null,-1),ps=i.defineComponent({__name:"TestUi",setup(t){const l=i.ref("Test W2W UI!");return(o,u)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[rg,i.createElementVNode("h1",null,i.toDisplayString(l.value),1)],64))}}),ig={install(t,l){l!=null&&l.pinia?(console.log("existe una instancia de pinia!"),t.use(l.pinia)):console.error("Pinia instance is required to use this library."),console.log("inicializando componentes..."),t.component("DynamicForm",gs),t.component("TestUi",ps)}};Zt.DynamicForm=gs,Zt.TestUi=ps,Zt.default=ig,Object.defineProperties(Zt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|