@win2win/shared-ui 0.1.45 → 0.1.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(qt,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue"),require("pinia")):typeof define=="function"&&define.amd?define(["exports","vue","pinia"],r):(qt=typeof globalThis<"u"?globalThis:qt||self,r(qt.W2WSharedUi={},qt.Vue,qt.Pinia))})(this,function(qt,r,Ud){"use strict";var ce=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},fo={exports:{}};/**
|
|
2
2
|
* @license
|
|
3
3
|
* Lodash <https://lodash.com/>
|
|
4
4
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
5
5
|
* Released under MIT license <https://lodash.com/license>
|
|
6
6
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
7
7
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
8
|
-
*/ho.exports,function(t,l){(function(){var i,s="4.17.21",a=200,c="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",d="Expected a function",h="Invalid `variable` option passed into `_.template`",v="__lodash_hash_undefined__",y=500,m="__lodash_placeholder__",b=1,x=2,A=4,w=1,F=2,k=1,q=2,D=4,L=8,K=16,W=32,Q=64,j=128,ie=256,N=512,U=30,Z="...",O=800,te=16,$=1,le=2,ae=3,H=1/0,se=9007199254740991,Be=17976931348623157e292,ge=NaN,R=4294967295,T=R-1,Y=R>>>1,pe=[["ary",j],["bind",k],["bindKey",q],["curry",L],["curryRight",K],["flip",N],["partial",W],["partialRight",Q],["rearg",ie]],fe="[object Arguments]",G="[object Array]",re="[object AsyncFunction]",Ee="[object Boolean]",X="[object Date]",qe="[object DOMException]",ut="[object Error]",Dt="[object Function]",bt="[object GeneratorFunction]",rt="[object Map]",wt="[object Number]",tn="[object Null]",ht="[object Object]",yn="[object Promise]",Wr="[object Proxy]",Ut="[object RegExp]",De="[object Set]",Qe="[object String]",zt="[object Symbol]",gr="[object Undefined]",Hn="[object WeakMap]",Wo="[object WeakSet]",nn="[object ArrayBuffer]",bn="[object DataView]",pr="[object Float32Array]",Ht="[object Float64Array]",Zt="[object Int8Array]",wn="[object Int16Array]",Gr="[object Int32Array]",Wn="[object Uint8Array]",Gn="[object Uint8ClampedArray]",vr="[object Uint16Array]",_r="[object Uint32Array]",Go=/\b__p \+= '';/g,jo=/\b(__p \+=) '' \+/g,Ko=/(__e\(.*?\)|\b__t\)) \+\n'';/g,jr=/&(?:amp|lt|gt|quot|#39);/g,Qo=/[&<>"']/g,Cl=RegExp(jr.source),Zo=RegExp(Qo.source),xl=/<%-([\s\S]+?)%>/g,Yo=/<%([\s\S]+?)%>/g,jn=/<%=([\s\S]+?)%>/g,Kn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Sn=/^\w*$/,Al=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Kr=/[\\^$.*+?()[\]{}|]/g,El=RegExp(Kr.source),Qr=/^\s+/,kl=/\s/,Bl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ol=/\{\n\/\* \[wrapped with (.+)\] \*/,Tl=/,? & /,Rl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Cn=/[()=,{}\[\]\/\s]/,xn=/\\(\\)?/g,rn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,on=/\w*$/,Zr=/^[-+]0x[0-9a-f]+$/i,Il=/^0b[01]+$/i,Xo=/^\[object .+?Constructor\]$/,Jo=/^0o[0-7]+$/i,ei=/^(?:0|[1-9]\d*)$/,ti=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,S=/($^)/,ne=/['\n\r\u2028\u2029\\]/g,J="\\ud800-\\udfff",ve="\\u0300-\\u036f",Ie="\\ufe20-\\ufe2f",Te="\\u20d0-\\u20ff",Ke=ve+Ie+Te,Ve="\\u2700-\\u27bf",yr="a-z\\xdf-\\xf6\\xf8-\\xff",Ig="\\xac\\xb1\\xd7\\xf7",Fg="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Mg="\\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",_c="A-Z\\xc0-\\xd6\\xd8-\\xde",yc="\\ufe0e\\ufe0f",bc=Ig+Fg+Mg+Lg,Fl="['’]",Pg="["+J+"]",wc="["+bc+"]",ni="["+Ke+"]",Sc="\\d+",Vg="["+Ve+"]",Cc="["+yr+"]",xc="[^"+J+bc+Sc+Ve+yr+_c+"]",Ml="\\ud83c[\\udffb-\\udfff]",Ng="(?:"+ni+"|"+Ml+")",Ac="[^"+J+"]",Ll="(?:\\ud83c[\\udde6-\\uddff]){2}",Pl="[\\ud800-\\udbff][\\udc00-\\udfff]",br="["+_c+"]",Ec="\\u200d",kc="(?:"+Cc+"|"+xc+")",qg="(?:"+br+"|"+xc+")",Bc="(?:"+Fl+"(?:d|ll|m|re|s|t|ve))?",Oc="(?:"+Fl+"(?:D|LL|M|RE|S|T|VE))?",Tc=Ng+"?",Rc="["+yc+"]?",$g="(?:"+Ec+"(?:"+[Ac,Ll,Pl].join("|")+")"+Rc+Tc+")*",Dg="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ug="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ic=Rc+Tc+$g,zg="(?:"+[Vg,Ll,Pl].join("|")+")"+Ic,Hg="(?:"+[Ac+ni+"?",ni,Ll,Pl,Pg].join("|")+")",Wg=RegExp(Fl,"g"),Gg=RegExp(ni,"g"),Vl=RegExp(Ml+"(?="+Ml+")|"+Hg+Ic,"g"),jg=RegExp([br+"?"+Cc+"+"+Bc+"(?="+[wc,br,"$"].join("|")+")",qg+"+"+Oc+"(?="+[wc,br+kc,"$"].join("|")+")",br+"?"+kc+"+"+Bc,br+"+"+Oc,Ug,Dg,Sc,zg].join("|"),"g"),Kg=RegExp("["+Ec+J+Ke+yc+"]"),Qg=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Zg=["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"],Yg=-1,Le={};Le[pr]=Le[Ht]=Le[Zt]=Le[wn]=Le[Gr]=Le[Wn]=Le[Gn]=Le[vr]=Le[_r]=!0,Le[fe]=Le[G]=Le[nn]=Le[Ee]=Le[bn]=Le[X]=Le[ut]=Le[Dt]=Le[rt]=Le[wt]=Le[ht]=Le[Ut]=Le[De]=Le[Qe]=Le[Hn]=!1;var Me={};Me[fe]=Me[G]=Me[nn]=Me[bn]=Me[Ee]=Me[X]=Me[pr]=Me[Ht]=Me[Zt]=Me[wn]=Me[Gr]=Me[rt]=Me[wt]=Me[ht]=Me[Ut]=Me[De]=Me[Qe]=Me[zt]=Me[Wn]=Me[Gn]=Me[vr]=Me[_r]=!0,Me[ut]=Me[Dt]=Me[Hn]=!1;var Xg={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Jg={"&":"&","<":"<",">":">",'"':""","'":"'"},ep={"&":"&","<":"<",">":">",""":'"',"'":"'"},tp={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},np=parseFloat,rp=parseInt,Fc=typeof ce=="object"&&ce&&ce.Object===Object&&ce,op=typeof self=="object"&&self&&self.Object===Object&&self,tt=Fc||op||Function("return this")(),Nl=l&&!l.nodeType&&l,Qn=Nl&&!0&&t&&!t.nodeType&&t,Mc=Qn&&Qn.exports===Nl,ql=Mc&&Fc.process,Tt=function(){try{var E=Qn&&Qn.require&&Qn.require("util").types;return E||ql&&ql.binding&&ql.binding("util")}catch{}}(),Lc=Tt&&Tt.isArrayBuffer,Pc=Tt&&Tt.isDate,Vc=Tt&&Tt.isMap,Nc=Tt&&Tt.isRegExp,qc=Tt&&Tt.isSet,$c=Tt&&Tt.isTypedArray;function St(E,M,I){switch(I.length){case 0:return E.call(M);case 1:return E.call(M,I[0]);case 2:return E.call(M,I[0],I[1]);case 3:return E.call(M,I[0],I[1],I[2])}return E.apply(M,I)}function ip(E,M,I,oe){for(var _e=-1,ke=E==null?0:E.length;++_e<ke;){var Ze=E[_e];M(oe,Ze,I(Ze),E)}return oe}function Rt(E,M){for(var I=-1,oe=E==null?0:E.length;++I<oe&&M(E[I],I,E)!==!1;);return E}function lp(E,M){for(var I=E==null?0:E.length;I--&&M(E[I],I,E)!==!1;);return E}function Dc(E,M){for(var I=-1,oe=E==null?0:E.length;++I<oe;)if(!M(E[I],I,E))return!1;return!0}function An(E,M){for(var I=-1,oe=E==null?0:E.length,_e=0,ke=[];++I<oe;){var Ze=E[I];M(Ze,I,E)&&(ke[_e++]=Ze)}return ke}function ri(E,M){var I=E==null?0:E.length;return!!I&&wr(E,M,0)>-1}function $l(E,M,I){for(var oe=-1,_e=E==null?0:E.length;++oe<_e;)if(I(M,E[oe]))return!0;return!1}function Ne(E,M){for(var I=-1,oe=E==null?0:E.length,_e=Array(oe);++I<oe;)_e[I]=M(E[I],I,E);return _e}function En(E,M){for(var I=-1,oe=M.length,_e=E.length;++I<oe;)E[_e+I]=M[I];return E}function Dl(E,M,I,oe){var _e=-1,ke=E==null?0:E.length;for(oe&&ke&&(I=E[++_e]);++_e<ke;)I=M(I,E[_e],_e,E);return I}function ap(E,M,I,oe){var _e=E==null?0:E.length;for(oe&&_e&&(I=E[--_e]);_e--;)I=M(I,E[_e],_e,E);return I}function Ul(E,M){for(var I=-1,oe=E==null?0:E.length;++I<oe;)if(M(E[I],I,E))return!0;return!1}var up=zl("length");function sp(E){return E.split("")}function cp(E){return E.match(Rl)||[]}function Uc(E,M,I){var oe;return I(E,function(_e,ke,Ze){if(M(_e,ke,Ze))return oe=ke,!1}),oe}function oi(E,M,I,oe){for(var _e=E.length,ke=I+(oe?1:-1);oe?ke--:++ke<_e;)if(M(E[ke],ke,E))return ke;return-1}function wr(E,M,I){return M===M?Sp(E,M,I):oi(E,zc,I)}function fp(E,M,I,oe){for(var _e=I-1,ke=E.length;++_e<ke;)if(oe(E[_e],M))return _e;return-1}function zc(E){return E!==E}function Hc(E,M){var I=E==null?0:E.length;return I?Wl(E,M)/I:ge}function zl(E){return function(M){return M==null?i:M[E]}}function Hl(E){return function(M){return E==null?i:E[M]}}function Wc(E,M,I,oe,_e){return _e(E,function(ke,Ze,Fe){I=oe?(oe=!1,ke):M(I,ke,Ze,Fe)}),I}function dp(E,M){var I=E.length;for(E.sort(M);I--;)E[I]=E[I].value;return E}function Wl(E,M){for(var I,oe=-1,_e=E.length;++oe<_e;){var ke=M(E[oe]);ke!==i&&(I=I===i?ke:I+ke)}return I}function Gl(E,M){for(var I=-1,oe=Array(E);++I<E;)oe[I]=M(I);return oe}function hp(E,M){return Ne(M,function(I){return[I,E[I]]})}function Gc(E){return E&&E.slice(0,Zc(E)+1).replace(Qr,"")}function Ct(E){return function(M){return E(M)}}function jl(E,M){return Ne(M,function(I){return E[I]})}function Yr(E,M){return E.has(M)}function jc(E,M){for(var I=-1,oe=E.length;++I<oe&&wr(M,E[I],0)>-1;);return I}function Kc(E,M){for(var I=E.length;I--&&wr(M,E[I],0)>-1;);return I}function mp(E,M){for(var I=E.length,oe=0;I--;)E[I]===M&&++oe;return oe}var gp=Hl(Xg),pp=Hl(Jg);function vp(E){return"\\"+tp[E]}function _p(E,M){return E==null?i:E[M]}function Sr(E){return Kg.test(E)}function yp(E){return Qg.test(E)}function bp(E){for(var M,I=[];!(M=E.next()).done;)I.push(M.value);return I}function Kl(E){var M=-1,I=Array(E.size);return E.forEach(function(oe,_e){I[++M]=[_e,oe]}),I}function Qc(E,M){return function(I){return E(M(I))}}function kn(E,M){for(var I=-1,oe=E.length,_e=0,ke=[];++I<oe;){var Ze=E[I];(Ze===M||Ze===m)&&(E[I]=m,ke[_e++]=I)}return ke}function ii(E){var M=-1,I=Array(E.size);return E.forEach(function(oe){I[++M]=oe}),I}function wp(E){var M=-1,I=Array(E.size);return E.forEach(function(oe){I[++M]=[oe,oe]}),I}function Sp(E,M,I){for(var oe=I-1,_e=E.length;++oe<_e;)if(E[oe]===M)return oe;return-1}function Cp(E,M,I){for(var oe=I+1;oe--;)if(E[oe]===M)return oe;return oe}function Cr(E){return Sr(E)?Ap(E):up(E)}function Wt(E){return Sr(E)?Ep(E):sp(E)}function Zc(E){for(var M=E.length;M--&&kl.test(E.charAt(M)););return M}var xp=Hl(ep);function Ap(E){for(var M=Vl.lastIndex=0;Vl.test(E);)++M;return M}function Ep(E){return E.match(Vl)||[]}function kp(E){return E.match(jg)||[]}var Bp=function E(M){M=M==null?tt:xr.defaults(tt.Object(),M,xr.pick(tt,Zg));var I=M.Array,oe=M.Date,_e=M.Error,ke=M.Function,Ze=M.Math,Fe=M.Object,Ql=M.RegExp,Op=M.String,It=M.TypeError,li=I.prototype,Tp=ke.prototype,Ar=Fe.prototype,ai=M["__core-js_shared__"],ui=Tp.toString,Re=Ar.hasOwnProperty,Rp=0,Yc=function(){var e=/[^.]+$/.exec(ai&&ai.keys&&ai.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),si=Ar.toString,Ip=ui.call(Fe),Fp=tt._,Mp=Ql("^"+ui.call(Re).replace(Kr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ci=Mc?M.Buffer:i,Bn=M.Symbol,fi=M.Uint8Array,Xc=ci?ci.allocUnsafe:i,di=Qc(Fe.getPrototypeOf,Fe),Jc=Fe.create,ef=Ar.propertyIsEnumerable,hi=li.splice,tf=Bn?Bn.isConcatSpreadable:i,Xr=Bn?Bn.iterator:i,Zn=Bn?Bn.toStringTag:i,mi=function(){try{var e=tr(Fe,"defineProperty");return e({},"",{}),e}catch{}}(),Lp=M.clearTimeout!==tt.clearTimeout&&M.clearTimeout,Pp=oe&&oe.now!==tt.Date.now&&oe.now,Vp=M.setTimeout!==tt.setTimeout&&M.setTimeout,gi=Ze.ceil,pi=Ze.floor,Zl=Fe.getOwnPropertySymbols,Np=ci?ci.isBuffer:i,nf=M.isFinite,qp=li.join,$p=Qc(Fe.keys,Fe),Ye=Ze.max,ot=Ze.min,Dp=oe.now,Up=M.parseInt,rf=Ze.random,zp=li.reverse,Yl=tr(M,"DataView"),Jr=tr(M,"Map"),Xl=tr(M,"Promise"),Er=tr(M,"Set"),eo=tr(M,"WeakMap"),to=tr(Fe,"create"),vi=eo&&new eo,kr={},Hp=nr(Yl),Wp=nr(Jr),Gp=nr(Xl),jp=nr(Er),Kp=nr(eo),_i=Bn?Bn.prototype:i,no=_i?_i.valueOf:i,of=_i?_i.toString:i;function g(e){if(Ue(e)&&!ye(e)&&!(e instanceof xe)){if(e instanceof Ft)return e;if(Re.call(e,"__wrapped__"))return ld(e)}return new Ft(e)}var Br=function(){function e(){}return function(n){if(!$e(n))return{};if(Jc)return Jc(n);e.prototype=n;var o=new e;return e.prototype=i,o}}();function yi(){}function Ft(e,n){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=i}g.templateSettings={escape:xl,evaluate:Yo,interpolate:jn,variable:"",imports:{_:g}},g.prototype=yi.prototype,g.prototype.constructor=g,Ft.prototype=Br(yi.prototype),Ft.prototype.constructor=Ft;function xe(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=R,this.__views__=[]}function Qp(){var e=new xe(this.__wrapped__);return e.__actions__=mt(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=mt(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=mt(this.__views__),e}function Zp(){if(this.__filtered__){var e=new xe(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Yp(){var e=this.__wrapped__.value(),n=this.__dir__,o=ye(e),u=n<0,f=o?e.length:0,p=s_(0,f,this.__views__),_=p.start,C=p.end,B=C-_,P=u?C:_-1,V=this.__iteratees__,z=V.length,ee=0,ue=ot(B,this.__takeCount__);if(!o||!u&&f==B&&ue==B)return Of(e,this.__actions__);var he=[];e:for(;B--&&ee<ue;){P+=n;for(var we=-1,me=e[P];++we<z;){var Ce=V[we],Ae=Ce.iteratee,Et=Ce.type,ft=Ae(me);if(Et==le)me=ft;else if(!ft){if(Et==$)continue e;break e}}he[ee++]=me}return he}xe.prototype=Br(yi.prototype),xe.prototype.constructor=xe;function Yn(e){var n=-1,o=e==null?0:e.length;for(this.clear();++n<o;){var u=e[n];this.set(u[0],u[1])}}function Xp(){this.__data__=to?to(null):{},this.size=0}function Jp(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}function ev(e){var n=this.__data__;if(to){var o=n[e];return o===v?i:o}return Re.call(n,e)?n[e]:i}function tv(e){var n=this.__data__;return to?n[e]!==i:Re.call(n,e)}function nv(e,n){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=to&&n===i?v:n,this}Yn.prototype.clear=Xp,Yn.prototype.delete=Jp,Yn.prototype.get=ev,Yn.prototype.has=tv,Yn.prototype.set=nv;function ln(e){var n=-1,o=e==null?0:e.length;for(this.clear();++n<o;){var u=e[n];this.set(u[0],u[1])}}function rv(){this.__data__=[],this.size=0}function ov(e){var n=this.__data__,o=bi(n,e);if(o<0)return!1;var u=n.length-1;return o==u?n.pop():hi.call(n,o,1),--this.size,!0}function iv(e){var n=this.__data__,o=bi(n,e);return o<0?i:n[o][1]}function lv(e){return bi(this.__data__,e)>-1}function av(e,n){var o=this.__data__,u=bi(o,e);return u<0?(++this.size,o.push([e,n])):o[u][1]=n,this}ln.prototype.clear=rv,ln.prototype.delete=ov,ln.prototype.get=iv,ln.prototype.has=lv,ln.prototype.set=av;function an(e){var n=-1,o=e==null?0:e.length;for(this.clear();++n<o;){var u=e[n];this.set(u[0],u[1])}}function uv(){this.size=0,this.__data__={hash:new Yn,map:new(Jr||ln),string:new Yn}}function sv(e){var n=Ii(this,e).delete(e);return this.size-=n?1:0,n}function cv(e){return Ii(this,e).get(e)}function fv(e){return Ii(this,e).has(e)}function dv(e,n){var o=Ii(this,e),u=o.size;return o.set(e,n),this.size+=o.size==u?0:1,this}an.prototype.clear=uv,an.prototype.delete=sv,an.prototype.get=cv,an.prototype.has=fv,an.prototype.set=dv;function Xn(e){var n=-1,o=e==null?0:e.length;for(this.__data__=new an;++n<o;)this.add(e[n])}function hv(e){return this.__data__.set(e,v),this}function mv(e){return this.__data__.has(e)}Xn.prototype.add=Xn.prototype.push=hv,Xn.prototype.has=mv;function Gt(e){var n=this.__data__=new ln(e);this.size=n.size}function gv(){this.__data__=new ln,this.size=0}function pv(e){var n=this.__data__,o=n.delete(e);return this.size=n.size,o}function vv(e){return this.__data__.get(e)}function _v(e){return this.__data__.has(e)}function yv(e,n){var o=this.__data__;if(o instanceof ln){var u=o.__data__;if(!Jr||u.length<a-1)return u.push([e,n]),this.size=++o.size,this;o=this.__data__=new an(u)}return o.set(e,n),this.size=o.size,this}Gt.prototype.clear=gv,Gt.prototype.delete=pv,Gt.prototype.get=vv,Gt.prototype.has=_v,Gt.prototype.set=yv;function lf(e,n){var o=ye(e),u=!o&&rr(e),f=!o&&!u&&Fn(e),p=!o&&!u&&!f&&Ir(e),_=o||u||f||p,C=_?Gl(e.length,Op):[],B=C.length;for(var P in e)(n||Re.call(e,P))&&!(_&&(P=="length"||f&&(P=="offset"||P=="parent")||p&&(P=="buffer"||P=="byteLength"||P=="byteOffset")||fn(P,B)))&&C.push(P);return C}function af(e){var n=e.length;return n?e[sa(0,n-1)]:i}function bv(e,n){return Fi(mt(e),Jn(n,0,e.length))}function wv(e){return Fi(mt(e))}function Jl(e,n,o){(o!==i&&!jt(e[n],o)||o===i&&!(n in e))&&un(e,n,o)}function ro(e,n,o){var u=e[n];(!(Re.call(e,n)&&jt(u,o))||o===i&&!(n in e))&&un(e,n,o)}function bi(e,n){for(var o=e.length;o--;)if(jt(e[o][0],n))return o;return-1}function Sv(e,n,o,u){return On(e,function(f,p,_){n(u,f,o(f),_)}),u}function uf(e,n){return e&&Xt(n,Je(n),e)}function Cv(e,n){return e&&Xt(n,pt(n),e)}function un(e,n,o){n=="__proto__"&&mi?mi(e,n,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[n]=o}function ea(e,n){for(var o=-1,u=n.length,f=I(u),p=e==null;++o<u;)f[o]=p?i:Ma(e,n[o]);return f}function Jn(e,n,o){return e===e&&(o!==i&&(e=e<=o?e:o),n!==i&&(e=e>=n?e:n)),e}function Mt(e,n,o,u,f,p){var _,C=n&b,B=n&x,P=n&A;if(o&&(_=f?o(e,u,f,p):o(e)),_!==i)return _;if(!$e(e))return e;var V=ye(e);if(V){if(_=f_(e),!C)return mt(e,_)}else{var z=it(e),ee=z==Dt||z==bt;if(Fn(e))return If(e,C);if(z==ht||z==fe||ee&&!f){if(_=B||ee?{}:Yf(e),!C)return B?e_(e,Cv(_,e)):Jv(e,uf(_,e))}else{if(!Me[z])return f?e:{};_=d_(e,z,C)}}p||(p=new Gt);var ue=p.get(e);if(ue)return ue;p.set(e,_),Ed(e)?e.forEach(function(me){_.add(Mt(me,n,o,me,e,p))}):xd(e)&&e.forEach(function(me,Ce){_.set(Ce,Mt(me,n,o,Ce,e,p))});var he=P?B?ba:ya:B?pt:Je,we=V?i:he(e);return Rt(we||e,function(me,Ce){we&&(Ce=me,me=e[Ce]),ro(_,Ce,Mt(me,n,o,Ce,e,p))}),_}function xv(e){var n=Je(e);return function(o){return sf(o,e,n)}}function sf(e,n,o){var u=o.length;if(e==null)return!u;for(e=Fe(e);u--;){var f=o[u],p=n[f],_=e[f];if(_===i&&!(f in e)||!p(_))return!1}return!0}function cf(e,n,o){if(typeof e!="function")throw new It(d);return co(function(){e.apply(i,o)},n)}function oo(e,n,o,u){var f=-1,p=ri,_=!0,C=e.length,B=[],P=n.length;if(!C)return B;o&&(n=Ne(n,Ct(o))),u?(p=$l,_=!1):n.length>=a&&(p=Yr,_=!1,n=new Xn(n));e:for(;++f<C;){var V=e[f],z=o==null?V:o(V);if(V=u||V!==0?V:0,_&&z===z){for(var ee=P;ee--;)if(n[ee]===z)continue e;B.push(V)}else p(n,z,u)||B.push(V)}return B}var On=Vf(Yt),ff=Vf(na,!0);function Av(e,n){var o=!0;return On(e,function(u,f,p){return o=!!n(u,f,p),o}),o}function wi(e,n,o){for(var u=-1,f=e.length;++u<f;){var p=e[u],_=n(p);if(_!=null&&(C===i?_===_&&!At(_):o(_,C)))var C=_,B=p}return B}function Ev(e,n,o,u){var f=e.length;for(o=be(o),o<0&&(o=-o>f?0:f+o),u=u===i||u>f?f:be(u),u<0&&(u+=f),u=o>u?0:Bd(u);o<u;)e[o++]=n;return e}function df(e,n){var o=[];return On(e,function(u,f,p){n(u,f,p)&&o.push(u)}),o}function nt(e,n,o,u,f){var p=-1,_=e.length;for(o||(o=m_),f||(f=[]);++p<_;){var C=e[p];n>0&&o(C)?n>1?nt(C,n-1,o,u,f):En(f,C):u||(f[f.length]=C)}return f}var ta=Nf(),hf=Nf(!0);function Yt(e,n){return e&&ta(e,n,Je)}function na(e,n){return e&&hf(e,n,Je)}function Si(e,n){return An(n,function(o){return dn(e[o])})}function er(e,n){n=Rn(n,e);for(var o=0,u=n.length;e!=null&&o<u;)e=e[Jt(n[o++])];return o&&o==u?e:i}function mf(e,n,o){var u=n(e);return ye(e)?u:En(u,o(e))}function st(e){return e==null?e===i?gr:tn:Zn&&Zn in Fe(e)?u_(e):w_(e)}function ra(e,n){return e>n}function kv(e,n){return e!=null&&Re.call(e,n)}function Bv(e,n){return e!=null&&n in Fe(e)}function Ov(e,n,o){return e>=ot(n,o)&&e<Ye(n,o)}function oa(e,n,o){for(var u=o?$l:ri,f=e[0].length,p=e.length,_=p,C=I(p),B=1/0,P=[];_--;){var V=e[_];_&&n&&(V=Ne(V,Ct(n))),B=ot(V.length,B),C[_]=!o&&(n||f>=120&&V.length>=120)?new Xn(_&&V):i}V=e[0];var z=-1,ee=C[0];e:for(;++z<f&&P.length<B;){var ue=V[z],he=n?n(ue):ue;if(ue=o||ue!==0?ue:0,!(ee?Yr(ee,he):u(P,he,o))){for(_=p;--_;){var we=C[_];if(!(we?Yr(we,he):u(e[_],he,o)))continue e}ee&&ee.push(he),P.push(ue)}}return P}function Tv(e,n,o,u){return Yt(e,function(f,p,_){n(u,o(f),p,_)}),u}function io(e,n,o){n=Rn(n,e),e=td(e,n);var u=e==null?e:e[Jt(Pt(n))];return u==null?i:St(u,e,o)}function gf(e){return Ue(e)&&st(e)==fe}function Rv(e){return Ue(e)&&st(e)==nn}function Iv(e){return Ue(e)&&st(e)==X}function lo(e,n,o,u,f){return e===n?!0:e==null||n==null||!Ue(e)&&!Ue(n)?e!==e&&n!==n:Fv(e,n,o,u,lo,f)}function Fv(e,n,o,u,f,p){var _=ye(e),C=ye(n),B=_?G:it(e),P=C?G:it(n);B=B==fe?ht:B,P=P==fe?ht:P;var V=B==ht,z=P==ht,ee=B==P;if(ee&&Fn(e)){if(!Fn(n))return!1;_=!0,V=!1}if(ee&&!V)return p||(p=new Gt),_||Ir(e)?Kf(e,n,o,u,f,p):l_(e,n,B,o,u,f,p);if(!(o&w)){var ue=V&&Re.call(e,"__wrapped__"),he=z&&Re.call(n,"__wrapped__");if(ue||he){var we=ue?e.value():e,me=he?n.value():n;return p||(p=new Gt),f(we,me,o,u,p)}}return ee?(p||(p=new Gt),a_(e,n,o,u,f,p)):!1}function Mv(e){return Ue(e)&&it(e)==rt}function ia(e,n,o,u){var f=o.length,p=f,_=!u;if(e==null)return!p;for(e=Fe(e);f--;){var C=o[f];if(_&&C[2]?C[1]!==e[C[0]]:!(C[0]in e))return!1}for(;++f<p;){C=o[f];var B=C[0],P=e[B],V=C[1];if(_&&C[2]){if(P===i&&!(B in e))return!1}else{var z=new Gt;if(u)var ee=u(P,V,B,e,n,z);if(!(ee===i?lo(V,P,w|F,u,z):ee))return!1}}return!0}function pf(e){if(!$e(e)||p_(e))return!1;var n=dn(e)?Mp:Xo;return n.test(nr(e))}function Lv(e){return Ue(e)&&st(e)==Ut}function Pv(e){return Ue(e)&&it(e)==De}function Vv(e){return Ue(e)&&qi(e.length)&&!!Le[st(e)]}function vf(e){return typeof e=="function"?e:e==null?vt:typeof e=="object"?ye(e)?bf(e[0],e[1]):yf(e):qd(e)}function la(e){if(!so(e))return $p(e);var n=[];for(var o in Fe(e))Re.call(e,o)&&o!="constructor"&&n.push(o);return n}function Nv(e){if(!$e(e))return b_(e);var n=so(e),o=[];for(var u in e)u=="constructor"&&(n||!Re.call(e,u))||o.push(u);return o}function aa(e,n){return e<n}function _f(e,n){var o=-1,u=gt(e)?I(e.length):[];return On(e,function(f,p,_){u[++o]=n(f,p,_)}),u}function yf(e){var n=Sa(e);return n.length==1&&n[0][2]?Jf(n[0][0],n[0][1]):function(o){return o===e||ia(o,e,n)}}function bf(e,n){return xa(e)&&Xf(n)?Jf(Jt(e),n):function(o){var u=Ma(o,e);return u===i&&u===n?La(o,e):lo(n,u,w|F)}}function Ci(e,n,o,u,f){e!==n&&ta(n,function(p,_){if(f||(f=new Gt),$e(p))qv(e,n,_,o,Ci,u,f);else{var C=u?u(Ea(e,_),p,_+"",e,n,f):i;C===i&&(C=p),Jl(e,_,C)}},pt)}function qv(e,n,o,u,f,p,_){var C=Ea(e,o),B=Ea(n,o),P=_.get(B);if(P){Jl(e,o,P);return}var V=p?p(C,B,o+"",e,n,_):i,z=V===i;if(z){var ee=ye(B),ue=!ee&&Fn(B),he=!ee&&!ue&&Ir(B);V=B,ee||ue||he?ye(C)?V=C:ze(C)?V=mt(C):ue?(z=!1,V=If(B,!0)):he?(z=!1,V=Ff(B,!0)):V=[]:fo(B)||rr(B)?(V=C,rr(C)?V=Od(C):(!$e(C)||dn(C))&&(V=Yf(B))):z=!1}z&&(_.set(B,V),f(V,B,u,p,_),_.delete(B)),Jl(e,o,V)}function wf(e,n){var o=e.length;if(o)return n+=n<0?o:0,fn(n,o)?e[n]:i}function Sf(e,n,o){n.length?n=Ne(n,function(p){return ye(p)?function(_){return er(_,p.length===1?p[0]:p)}:p}):n=[vt];var u=-1;n=Ne(n,Ct(de()));var f=_f(e,function(p,_,C){var B=Ne(n,function(P){return P(p)});return{criteria:B,index:++u,value:p}});return dp(f,function(p,_){return Xv(p,_,o)})}function $v(e,n){return Cf(e,n,function(o,u){return La(e,u)})}function Cf(e,n,o){for(var u=-1,f=n.length,p={};++u<f;){var _=n[u],C=er(e,_);o(C,_)&&ao(p,Rn(_,e),C)}return p}function Dv(e){return function(n){return er(n,e)}}function ua(e,n,o,u){var f=u?fp:wr,p=-1,_=n.length,C=e;for(e===n&&(n=mt(n)),o&&(C=Ne(e,Ct(o)));++p<_;)for(var B=0,P=n[p],V=o?o(P):P;(B=f(C,V,B,u))>-1;)C!==e&&hi.call(C,B,1),hi.call(e,B,1);return e}function xf(e,n){for(var o=e?n.length:0,u=o-1;o--;){var f=n[o];if(o==u||f!==p){var p=f;fn(f)?hi.call(e,f,1):da(e,f)}}return e}function sa(e,n){return e+pi(rf()*(n-e+1))}function Uv(e,n,o,u){for(var f=-1,p=Ye(gi((n-e)/(o||1)),0),_=I(p);p--;)_[u?p:++f]=e,e+=o;return _}function ca(e,n){var o="";if(!e||n<1||n>se)return o;do n%2&&(o+=e),n=pi(n/2),n&&(e+=e);while(n);return o}function Se(e,n){return ka(ed(e,n,vt),e+"")}function zv(e){return af(Fr(e))}function Hv(e,n){var o=Fr(e);return Fi(o,Jn(n,0,o.length))}function ao(e,n,o,u){if(!$e(e))return e;n=Rn(n,e);for(var f=-1,p=n.length,_=p-1,C=e;C!=null&&++f<p;){var B=Jt(n[f]),P=o;if(B==="__proto__"||B==="constructor"||B==="prototype")return e;if(f!=_){var V=C[B];P=u?u(V,B,C):i,P===i&&(P=$e(V)?V:fn(n[f+1])?[]:{})}ro(C,B,P),C=C[B]}return e}var Af=vi?function(e,n){return vi.set(e,n),e}:vt,Wv=mi?function(e,n){return mi(e,"toString",{configurable:!0,enumerable:!1,value:Va(n),writable:!0})}:vt;function Gv(e){return Fi(Fr(e))}function Lt(e,n,o){var u=-1,f=e.length;n<0&&(n=-n>f?0:f+n),o=o>f?f:o,o<0&&(o+=f),f=n>o?0:o-n>>>0,n>>>=0;for(var p=I(f);++u<f;)p[u]=e[u+n];return p}function jv(e,n){var o;return On(e,function(u,f,p){return o=n(u,f,p),!o}),!!o}function xi(e,n,o){var u=0,f=e==null?u:e.length;if(typeof n=="number"&&n===n&&f<=Y){for(;u<f;){var p=u+f>>>1,_=e[p];_!==null&&!At(_)&&(o?_<=n:_<n)?u=p+1:f=p}return f}return fa(e,n,vt,o)}function fa(e,n,o,u){var f=0,p=e==null?0:e.length;if(p===0)return 0;n=o(n);for(var _=n!==n,C=n===null,B=At(n),P=n===i;f<p;){var V=pi((f+p)/2),z=o(e[V]),ee=z!==i,ue=z===null,he=z===z,we=At(z);if(_)var me=u||he;else P?me=he&&(u||ee):C?me=he&&ee&&(u||!ue):B?me=he&&ee&&!ue&&(u||!we):ue||we?me=!1:me=u?z<=n:z<n;me?f=V+1:p=V}return ot(p,T)}function Ef(e,n){for(var o=-1,u=e.length,f=0,p=[];++o<u;){var _=e[o],C=n?n(_):_;if(!o||!jt(C,B)){var B=C;p[f++]=_===0?0:_}}return p}function kf(e){return typeof e=="number"?e:At(e)?ge:+e}function xt(e){if(typeof e=="string")return e;if(ye(e))return Ne(e,xt)+"";if(At(e))return of?of.call(e):"";var n=e+"";return n=="0"&&1/e==-H?"-0":n}function Tn(e,n,o){var u=-1,f=ri,p=e.length,_=!0,C=[],B=C;if(o)_=!1,f=$l;else if(p>=a){var P=n?null:o_(e);if(P)return ii(P);_=!1,f=Yr,B=new Xn}else B=n?[]:C;e:for(;++u<p;){var V=e[u],z=n?n(V):V;if(V=o||V!==0?V:0,_&&z===z){for(var ee=B.length;ee--;)if(B[ee]===z)continue e;n&&B.push(z),C.push(V)}else f(B,z,o)||(B!==C&&B.push(z),C.push(V))}return C}function da(e,n){return n=Rn(n,e),e=td(e,n),e==null||delete e[Jt(Pt(n))]}function Bf(e,n,o,u){return ao(e,n,o(er(e,n)),u)}function Ai(e,n,o,u){for(var f=e.length,p=u?f:-1;(u?p--:++p<f)&&n(e[p],p,e););return o?Lt(e,u?0:p,u?p+1:f):Lt(e,u?p+1:0,u?f:p)}function Of(e,n){var o=e;return o instanceof xe&&(o=o.value()),Dl(n,function(u,f){return f.func.apply(f.thisArg,En([u],f.args))},o)}function ha(e,n,o){var u=e.length;if(u<2)return u?Tn(e[0]):[];for(var f=-1,p=I(u);++f<u;)for(var _=e[f],C=-1;++C<u;)C!=f&&(p[f]=oo(p[f]||_,e[C],n,o));return Tn(nt(p,1),n,o)}function Tf(e,n,o){for(var u=-1,f=e.length,p=n.length,_={};++u<f;){var C=u<p?n[u]:i;o(_,e[u],C)}return _}function ma(e){return ze(e)?e:[]}function ga(e){return typeof e=="function"?e:vt}function Rn(e,n){return ye(e)?e:xa(e,n)?[e]:id(Oe(e))}var Kv=Se;function In(e,n,o){var u=e.length;return o=o===i?u:o,!n&&o>=u?e:Lt(e,n,o)}var Rf=Lp||function(e){return tt.clearTimeout(e)};function If(e,n){if(n)return e.slice();var o=e.length,u=Xc?Xc(o):new e.constructor(o);return e.copy(u),u}function pa(e){var n=new e.constructor(e.byteLength);return new fi(n).set(new fi(e)),n}function Qv(e,n){var o=n?pa(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.byteLength)}function Zv(e){var n=new e.constructor(e.source,on.exec(e));return n.lastIndex=e.lastIndex,n}function Yv(e){return no?Fe(no.call(e)):{}}function Ff(e,n){var o=n?pa(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.length)}function Mf(e,n){if(e!==n){var o=e!==i,u=e===null,f=e===e,p=At(e),_=n!==i,C=n===null,B=n===n,P=At(n);if(!C&&!P&&!p&&e>n||p&&_&&B&&!C&&!P||u&&_&&B||!o&&B||!f)return 1;if(!u&&!p&&!P&&e<n||P&&o&&f&&!u&&!p||C&&o&&f||!_&&f||!B)return-1}return 0}function Xv(e,n,o){for(var u=-1,f=e.criteria,p=n.criteria,_=f.length,C=o.length;++u<_;){var B=Mf(f[u],p[u]);if(B){if(u>=C)return B;var P=o[u];return B*(P=="desc"?-1:1)}}return e.index-n.index}function Lf(e,n,o,u){for(var f=-1,p=e.length,_=o.length,C=-1,B=n.length,P=Ye(p-_,0),V=I(B+P),z=!u;++C<B;)V[C]=n[C];for(;++f<_;)(z||f<p)&&(V[o[f]]=e[f]);for(;P--;)V[C++]=e[f++];return V}function Pf(e,n,o,u){for(var f=-1,p=e.length,_=-1,C=o.length,B=-1,P=n.length,V=Ye(p-C,0),z=I(V+P),ee=!u;++f<V;)z[f]=e[f];for(var ue=f;++B<P;)z[ue+B]=n[B];for(;++_<C;)(ee||f<p)&&(z[ue+o[_]]=e[f++]);return z}function mt(e,n){var o=-1,u=e.length;for(n||(n=I(u));++o<u;)n[o]=e[o];return n}function Xt(e,n,o,u){var f=!o;o||(o={});for(var p=-1,_=n.length;++p<_;){var C=n[p],B=u?u(o[C],e[C],C,o,e):i;B===i&&(B=e[C]),f?un(o,C,B):ro(o,C,B)}return o}function Jv(e,n){return Xt(e,Ca(e),n)}function e_(e,n){return Xt(e,Qf(e),n)}function Ei(e,n){return function(o,u){var f=ye(o)?ip:Sv,p=n?n():{};return f(o,e,de(u,2),p)}}function Or(e){return Se(function(n,o){var u=-1,f=o.length,p=f>1?o[f-1]:i,_=f>2?o[2]:i;for(p=e.length>3&&typeof p=="function"?(f--,p):i,_&&ct(o[0],o[1],_)&&(p=f<3?i:p,f=1),n=Fe(n);++u<f;){var C=o[u];C&&e(n,C,u,p)}return n})}function Vf(e,n){return function(o,u){if(o==null)return o;if(!gt(o))return e(o,u);for(var f=o.length,p=n?f:-1,_=Fe(o);(n?p--:++p<f)&&u(_[p],p,_)!==!1;);return o}}function Nf(e){return function(n,o,u){for(var f=-1,p=Fe(n),_=u(n),C=_.length;C--;){var B=_[e?C:++f];if(o(p[B],B,p)===!1)break}return n}}function t_(e,n,o){var u=n&k,f=uo(e);function p(){var _=this&&this!==tt&&this instanceof p?f:e;return _.apply(u?o:this,arguments)}return p}function qf(e){return function(n){n=Oe(n);var o=Sr(n)?Wt(n):i,u=o?o[0]:n.charAt(0),f=o?In(o,1).join(""):n.slice(1);return u[e]()+f}}function Tr(e){return function(n){return Dl(Vd(Pd(n).replace(Wg,"")),e,"")}}function uo(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 o=Br(e.prototype),u=e.apply(o,n);return $e(u)?u:o}}function n_(e,n,o){var u=uo(e);function f(){for(var p=arguments.length,_=I(p),C=p,B=Rr(f);C--;)_[C]=arguments[C];var P=p<3&&_[0]!==B&&_[p-1]!==B?[]:kn(_,B);if(p-=P.length,p<o)return Hf(e,n,ki,f.placeholder,i,_,P,i,i,o-p);var V=this&&this!==tt&&this instanceof f?u:e;return St(V,this,_)}return f}function $f(e){return function(n,o,u){var f=Fe(n);if(!gt(n)){var p=de(o,3);n=Je(n),o=function(C){return p(f[C],C,f)}}var _=e(n,o,u);return _>-1?f[p?n[_]:_]:i}}function Df(e){return cn(function(n){var o=n.length,u=o,f=Ft.prototype.thru;for(e&&n.reverse();u--;){var p=n[u];if(typeof p!="function")throw new It(d);if(f&&!_&&Ri(p)=="wrapper")var _=new Ft([],!0)}for(u=_?u:o;++u<o;){p=n[u];var C=Ri(p),B=C=="wrapper"?wa(p):i;B&&Aa(B[0])&&B[1]==(j|L|W|ie)&&!B[4].length&&B[9]==1?_=_[Ri(B[0])].apply(_,B[3]):_=p.length==1&&Aa(p)?_[C]():_.thru(p)}return function(){var P=arguments,V=P[0];if(_&&P.length==1&&ye(V))return _.plant(V).value();for(var z=0,ee=o?n[z].apply(this,P):V;++z<o;)ee=n[z].call(this,ee);return ee}})}function ki(e,n,o,u,f,p,_,C,B,P){var V=n&j,z=n&k,ee=n&q,ue=n&(L|K),he=n&N,we=ee?i:uo(e);function me(){for(var Ce=arguments.length,Ae=I(Ce),Et=Ce;Et--;)Ae[Et]=arguments[Et];if(ue)var ft=Rr(me),kt=mp(Ae,ft);if(u&&(Ae=Lf(Ae,u,f,ue)),p&&(Ae=Pf(Ae,p,_,ue)),Ce-=kt,ue&&Ce<P){var He=kn(Ae,ft);return Hf(e,n,ki,me.placeholder,o,Ae,He,C,B,P-Ce)}var Kt=z?o:this,mn=ee?Kt[e]:e;return Ce=Ae.length,C?Ae=S_(Ae,C):he&&Ce>1&&Ae.reverse(),V&&B<Ce&&(Ae.length=B),this&&this!==tt&&this instanceof me&&(mn=we||uo(mn)),mn.apply(Kt,Ae)}return me}function Uf(e,n){return function(o,u){return Tv(o,e,n(u),{})}}function Bi(e,n){return function(o,u){var f;if(o===i&&u===i)return n;if(o!==i&&(f=o),u!==i){if(f===i)return u;typeof o=="string"||typeof u=="string"?(o=xt(o),u=xt(u)):(o=kf(o),u=kf(u)),f=e(o,u)}return f}}function va(e){return cn(function(n){return n=Ne(n,Ct(de())),Se(function(o){var u=this;return e(n,function(f){return St(f,u,o)})})})}function Oi(e,n){n=n===i?" ":xt(n);var o=n.length;if(o<2)return o?ca(n,e):n;var u=ca(n,gi(e/Cr(n)));return Sr(n)?In(Wt(u),0,e).join(""):u.slice(0,e)}function r_(e,n,o,u){var f=n&k,p=uo(e);function _(){for(var C=-1,B=arguments.length,P=-1,V=u.length,z=I(V+B),ee=this&&this!==tt&&this instanceof _?p:e;++P<V;)z[P]=u[P];for(;B--;)z[P++]=arguments[++C];return St(ee,f?o:this,z)}return _}function zf(e){return function(n,o,u){return u&&typeof u!="number"&&ct(n,o,u)&&(o=u=i),n=hn(n),o===i?(o=n,n=0):o=hn(o),u=u===i?n<o?1:-1:hn(u),Uv(n,o,u,e)}}function Ti(e){return function(n,o){return typeof n=="string"&&typeof o=="string"||(n=Vt(n),o=Vt(o)),e(n,o)}}function Hf(e,n,o,u,f,p,_,C,B,P){var V=n&L,z=V?_:i,ee=V?i:_,ue=V?p:i,he=V?i:p;n|=V?W:Q,n&=~(V?Q:W),n&D||(n&=~(k|q));var we=[e,n,f,ue,z,he,ee,C,B,P],me=o.apply(i,we);return Aa(e)&&nd(me,we),me.placeholder=u,rd(me,e,n)}function _a(e){var n=Ze[e];return function(o,u){if(o=Vt(o),u=u==null?0:ot(be(u),292),u&&nf(o)){var f=(Oe(o)+"e").split("e"),p=n(f[0]+"e"+(+f[1]+u));return f=(Oe(p)+"e").split("e"),+(f[0]+"e"+(+f[1]-u))}return n(o)}}var o_=Er&&1/ii(new Er([,-0]))[1]==H?function(e){return new Er(e)}:$a;function Wf(e){return function(n){var o=it(n);return o==rt?Kl(n):o==De?wp(n):hp(n,e(n))}}function sn(e,n,o,u,f,p,_,C){var B=n&q;if(!B&&typeof e!="function")throw new It(d);var P=u?u.length:0;if(P||(n&=~(W|Q),u=f=i),_=_===i?_:Ye(be(_),0),C=C===i?C:be(C),P-=f?f.length:0,n&Q){var V=u,z=f;u=f=i}var ee=B?i:wa(e),ue=[e,n,o,u,f,V,z,p,_,C];if(ee&&y_(ue,ee),e=ue[0],n=ue[1],o=ue[2],u=ue[3],f=ue[4],C=ue[9]=ue[9]===i?B?0:e.length:Ye(ue[9]-P,0),!C&&n&(L|K)&&(n&=~(L|K)),!n||n==k)var he=t_(e,n,o);else n==L||n==K?he=n_(e,n,C):(n==W||n==(k|W))&&!f.length?he=r_(e,n,o,u):he=ki.apply(i,ue);var we=ee?Af:nd;return rd(we(he,ue),e,n)}function Gf(e,n,o,u){return e===i||jt(e,Ar[o])&&!Re.call(u,o)?n:e}function jf(e,n,o,u,f,p){return $e(e)&&$e(n)&&(p.set(n,e),Ci(e,n,i,jf,p),p.delete(n)),e}function i_(e){return fo(e)?i:e}function Kf(e,n,o,u,f,p){var _=o&w,C=e.length,B=n.length;if(C!=B&&!(_&&B>C))return!1;var P=p.get(e),V=p.get(n);if(P&&V)return P==n&&V==e;var z=-1,ee=!0,ue=o&F?new Xn:i;for(p.set(e,n),p.set(n,e);++z<C;){var he=e[z],we=n[z];if(u)var me=_?u(we,he,z,n,e,p):u(he,we,z,e,n,p);if(me!==i){if(me)continue;ee=!1;break}if(ue){if(!Ul(n,function(Ce,Ae){if(!Yr(ue,Ae)&&(he===Ce||f(he,Ce,o,u,p)))return ue.push(Ae)})){ee=!1;break}}else if(!(he===we||f(he,we,o,u,p))){ee=!1;break}}return p.delete(e),p.delete(n),ee}function l_(e,n,o,u,f,p,_){switch(o){case bn:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case nn:return!(e.byteLength!=n.byteLength||!p(new fi(e),new fi(n)));case Ee:case X:case wt:return jt(+e,+n);case ut:return e.name==n.name&&e.message==n.message;case Ut:case Qe:return e==n+"";case rt:var C=Kl;case De:var B=u&w;if(C||(C=ii),e.size!=n.size&&!B)return!1;var P=_.get(e);if(P)return P==n;u|=F,_.set(e,n);var V=Kf(C(e),C(n),u,f,p,_);return _.delete(e),V;case zt:if(no)return no.call(e)==no.call(n)}return!1}function a_(e,n,o,u,f,p){var _=o&w,C=ya(e),B=C.length,P=ya(n),V=P.length;if(B!=V&&!_)return!1;for(var z=B;z--;){var ee=C[z];if(!(_?ee in n:Re.call(n,ee)))return!1}var ue=p.get(e),he=p.get(n);if(ue&&he)return ue==n&&he==e;var we=!0;p.set(e,n),p.set(n,e);for(var me=_;++z<B;){ee=C[z];var Ce=e[ee],Ae=n[ee];if(u)var Et=_?u(Ae,Ce,ee,n,e,p):u(Ce,Ae,ee,e,n,p);if(!(Et===i?Ce===Ae||f(Ce,Ae,o,u,p):Et)){we=!1;break}me||(me=ee=="constructor")}if(we&&!me){var ft=e.constructor,kt=n.constructor;ft!=kt&&"constructor"in e&&"constructor"in n&&!(typeof ft=="function"&&ft instanceof ft&&typeof kt=="function"&&kt instanceof kt)&&(we=!1)}return p.delete(e),p.delete(n),we}function cn(e){return ka(ed(e,i,sd),e+"")}function ya(e){return mf(e,Je,Ca)}function ba(e){return mf(e,pt,Qf)}var wa=vi?function(e){return vi.get(e)}:$a;function Ri(e){for(var n=e.name+"",o=kr[n],u=Re.call(kr,n)?o.length:0;u--;){var f=o[u],p=f.func;if(p==null||p==e)return f.name}return n}function Rr(e){var n=Re.call(g,"placeholder")?g:e;return n.placeholder}function de(){var e=g.iteratee||Na;return e=e===Na?vf:e,arguments.length?e(arguments[0],arguments[1]):e}function Ii(e,n){var o=e.__data__;return g_(n)?o[typeof n=="string"?"string":"hash"]:o.map}function Sa(e){for(var n=Je(e),o=n.length;o--;){var u=n[o],f=e[u];n[o]=[u,f,Xf(f)]}return n}function tr(e,n){var o=_p(e,n);return pf(o)?o:i}function u_(e){var n=Re.call(e,Zn),o=e[Zn];try{e[Zn]=i;var u=!0}catch{}var f=si.call(e);return u&&(n?e[Zn]=o:delete e[Zn]),f}var Ca=Zl?function(e){return e==null?[]:(e=Fe(e),An(Zl(e),function(n){return ef.call(e,n)}))}:Da,Qf=Zl?function(e){for(var n=[];e;)En(n,Ca(e)),e=di(e);return n}:Da,it=st;(Yl&&it(new Yl(new ArrayBuffer(1)))!=bn||Jr&&it(new Jr)!=rt||Xl&&it(Xl.resolve())!=yn||Er&&it(new Er)!=De||eo&&it(new eo)!=Hn)&&(it=function(e){var n=st(e),o=n==ht?e.constructor:i,u=o?nr(o):"";if(u)switch(u){case Hp:return bn;case Wp:return rt;case Gp:return yn;case jp:return De;case Kp:return Hn}return n});function s_(e,n,o){for(var u=-1,f=o.length;++u<f;){var p=o[u],_=p.size;switch(p.type){case"drop":e+=_;break;case"dropRight":n-=_;break;case"take":n=ot(n,e+_);break;case"takeRight":e=Ye(e,n-_);break}}return{start:e,end:n}}function c_(e){var n=e.match(Ol);return n?n[1].split(Tl):[]}function Zf(e,n,o){n=Rn(n,e);for(var u=-1,f=n.length,p=!1;++u<f;){var _=Jt(n[u]);if(!(p=e!=null&&o(e,_)))break;e=e[_]}return p||++u!=f?p:(f=e==null?0:e.length,!!f&&qi(f)&&fn(_,f)&&(ye(e)||rr(e)))}function f_(e){var n=e.length,o=new e.constructor(n);return n&&typeof e[0]=="string"&&Re.call(e,"index")&&(o.index=e.index,o.input=e.input),o}function Yf(e){return typeof e.constructor=="function"&&!so(e)?Br(di(e)):{}}function d_(e,n,o){var u=e.constructor;switch(n){case nn:return pa(e);case Ee:case X:return new u(+e);case bn:return Qv(e,o);case pr:case Ht:case Zt:case wn:case Gr:case Wn:case Gn:case vr:case _r:return Ff(e,o);case rt:return new u;case wt:case Qe:return new u(e);case Ut:return Zv(e);case De:return new u;case zt:return Yv(e)}}function h_(e,n){var o=n.length;if(!o)return e;var u=o-1;return n[u]=(o>1?"& ":"")+n[u],n=n.join(o>2?", ":" "),e.replace(Bl,`{
|
|
8
|
+
*/fo.exports,function(t,l){(function(){var i,s="4.17.21",a=200,c="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",d="Expected a function",h="Invalid `variable` option passed into `_.template`",v="__lodash_hash_undefined__",b=500,m="__lodash_placeholder__",y=1,A=2,x=4,w=1,F=2,k=1,q=2,D=4,L=8,K=16,W=32,Q=64,j=128,ie=256,N=512,U=30,Z="...",O=800,te=16,$=1,le=2,ae=3,H=1/0,se=9007199254740991,Be=17976931348623157e292,ge=NaN,R=4294967295,T=R-1,Y=R>>>1,pe=[["ary",j],["bind",k],["bindKey",q],["curry",L],["curryRight",K],["flip",N],["partial",W],["partialRight",Q],["rearg",ie]],fe="[object Arguments]",G="[object Array]",re="[object AsyncFunction]",Ee="[object Boolean]",X="[object Date]",qe="[object DOMException]",ut="[object Error]",Ut="[object Function]",bt="[object GeneratorFunction]",rt="[object Map]",wt="[object Number]",nn="[object Null]",ht="[object Object]",yn="[object Promise]",Hr="[object Proxy]",zt="[object RegExp]",De="[object Set]",Qe="[object String]",Ht="[object Symbol]",gr="[object Undefined]",Hn="[object WeakMap]",Wo="[object WeakSet]",rn="[object ArrayBuffer]",bn="[object DataView]",pr="[object Float32Array]",Wt="[object Float64Array]",Yt="[object Int8Array]",wn="[object Int16Array]",Wr="[object Int32Array]",Wn="[object Uint8Array]",Gn="[object Uint8ClampedArray]",vr="[object Uint16Array]",_r="[object Uint32Array]",Go=/\b__p \+= '';/g,jo=/\b(__p \+=) '' \+/g,Ko=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Gr=/&(?:amp|lt|gt|quot|#39);/g,Qo=/[&<>"']/g,Cl=RegExp(Gr.source),Zo=RegExp(Qo.source),xl=/<%-([\s\S]+?)%>/g,Yo=/<%([\s\S]+?)%>/g,jn=/<%=([\s\S]+?)%>/g,Kn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Sn=/^\w*$/,Al=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,jr=/[\\^$.*+?()[\]{}|]/g,El=RegExp(jr.source),Kr=/^\s+/,kl=/\s/,Bl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ol=/\{\n\/\* \[wrapped with (.+)\] \*/,Tl=/,? & /,Rl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Cn=/[()=,{}\[\]\/\s]/,xn=/\\(\\)?/g,on=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ln=/\w*$/,Qr=/^[-+]0x[0-9a-f]+$/i,Il=/^0b[01]+$/i,Xo=/^\[object .+?Constructor\]$/,Jo=/^0o[0-7]+$/i,ei=/^(?:0|[1-9]\d*)$/,ti=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,S=/($^)/,ne=/['\n\r\u2028\u2029\\]/g,J="\\ud800-\\udfff",ve="\\u0300-\\u036f",Ie="\\ufe20-\\ufe2f",Te="\\u20d0-\\u20ff",Ke=ve+Ie+Te,Ve="\\u2700-\\u27bf",yr="a-z\\xdf-\\xf6\\xf8-\\xff",Ng="\\xac\\xb1\\xd7\\xf7",qg="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",$g="\\u2000-\\u206f",Dg=" \\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",yc="A-Z\\xc0-\\xd6\\xd8-\\xde",bc="\\ufe0e\\ufe0f",wc=Ng+qg+$g+Dg,Fl="['’]",Ug="["+J+"]",Sc="["+wc+"]",ni="["+Ke+"]",Cc="\\d+",zg="["+Ve+"]",xc="["+yr+"]",Ac="[^"+J+wc+Cc+Ve+yr+yc+"]",Ml="\\ud83c[\\udffb-\\udfff]",Hg="(?:"+ni+"|"+Ml+")",Ec="[^"+J+"]",Ll="(?:\\ud83c[\\udde6-\\uddff]){2}",Pl="[\\ud800-\\udbff][\\udc00-\\udfff]",br="["+yc+"]",kc="\\u200d",Bc="(?:"+xc+"|"+Ac+")",Wg="(?:"+br+"|"+Ac+")",Oc="(?:"+Fl+"(?:d|ll|m|re|s|t|ve))?",Tc="(?:"+Fl+"(?:D|LL|M|RE|S|T|VE))?",Rc=Hg+"?",Ic="["+bc+"]?",Gg="(?:"+kc+"(?:"+[Ec,Ll,Pl].join("|")+")"+Ic+Rc+")*",jg="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Kg="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Fc=Ic+Rc+Gg,Qg="(?:"+[zg,Ll,Pl].join("|")+")"+Fc,Zg="(?:"+[Ec+ni+"?",ni,Ll,Pl,Ug].join("|")+")",Yg=RegExp(Fl,"g"),Xg=RegExp(ni,"g"),Vl=RegExp(Ml+"(?="+Ml+")|"+Zg+Fc,"g"),Jg=RegExp([br+"?"+xc+"+"+Oc+"(?="+[Sc,br,"$"].join("|")+")",Wg+"+"+Tc+"(?="+[Sc,br+Bc,"$"].join("|")+")",br+"?"+Bc+"+"+Oc,br+"+"+Tc,Kg,jg,Cc,Qg].join("|"),"g"),ep=RegExp("["+kc+J+Ke+bc+"]"),tp=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,np=["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"],rp=-1,Le={};Le[pr]=Le[Wt]=Le[Yt]=Le[wn]=Le[Wr]=Le[Wn]=Le[Gn]=Le[vr]=Le[_r]=!0,Le[fe]=Le[G]=Le[rn]=Le[Ee]=Le[bn]=Le[X]=Le[ut]=Le[Ut]=Le[rt]=Le[wt]=Le[ht]=Le[zt]=Le[De]=Le[Qe]=Le[Hn]=!1;var Me={};Me[fe]=Me[G]=Me[rn]=Me[bn]=Me[Ee]=Me[X]=Me[pr]=Me[Wt]=Me[Yt]=Me[wn]=Me[Wr]=Me[rt]=Me[wt]=Me[ht]=Me[zt]=Me[De]=Me[Qe]=Me[Ht]=Me[Wn]=Me[Gn]=Me[vr]=Me[_r]=!0,Me[ut]=Me[Ut]=Me[Hn]=!1;var op={À:"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"},ip={"&":"&","<":"<",">":">",'"':""","'":"'"},lp={"&":"&","<":"<",">":">",""":'"',"'":"'"},ap={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},up=parseFloat,sp=parseInt,Mc=typeof ce=="object"&&ce&&ce.Object===Object&&ce,cp=typeof self=="object"&&self&&self.Object===Object&&self,tt=Mc||cp||Function("return this")(),Nl=l&&!l.nodeType&&l,Qn=Nl&&!0&&t&&!t.nodeType&&t,Lc=Qn&&Qn.exports===Nl,ql=Lc&&Mc.process,Rt=function(){try{var E=Qn&&Qn.require&&Qn.require("util").types;return E||ql&&ql.binding&&ql.binding("util")}catch{}}(),Pc=Rt&&Rt.isArrayBuffer,Vc=Rt&&Rt.isDate,Nc=Rt&&Rt.isMap,qc=Rt&&Rt.isRegExp,$c=Rt&&Rt.isSet,Dc=Rt&&Rt.isTypedArray;function St(E,M,I){switch(I.length){case 0:return E.call(M);case 1:return E.call(M,I[0]);case 2:return E.call(M,I[0],I[1]);case 3:return E.call(M,I[0],I[1],I[2])}return E.apply(M,I)}function fp(E,M,I,oe){for(var _e=-1,ke=E==null?0:E.length;++_e<ke;){var Ze=E[_e];M(oe,Ze,I(Ze),E)}return oe}function It(E,M){for(var I=-1,oe=E==null?0:E.length;++I<oe&&M(E[I],I,E)!==!1;);return E}function dp(E,M){for(var I=E==null?0:E.length;I--&&M(E[I],I,E)!==!1;);return E}function Uc(E,M){for(var I=-1,oe=E==null?0:E.length;++I<oe;)if(!M(E[I],I,E))return!1;return!0}function An(E,M){for(var I=-1,oe=E==null?0:E.length,_e=0,ke=[];++I<oe;){var Ze=E[I];M(Ze,I,E)&&(ke[_e++]=Ze)}return ke}function ri(E,M){var I=E==null?0:E.length;return!!I&&wr(E,M,0)>-1}function $l(E,M,I){for(var oe=-1,_e=E==null?0:E.length;++oe<_e;)if(I(M,E[oe]))return!0;return!1}function Ne(E,M){for(var I=-1,oe=E==null?0:E.length,_e=Array(oe);++I<oe;)_e[I]=M(E[I],I,E);return _e}function En(E,M){for(var I=-1,oe=M.length,_e=E.length;++I<oe;)E[_e+I]=M[I];return E}function Dl(E,M,I,oe){var _e=-1,ke=E==null?0:E.length;for(oe&&ke&&(I=E[++_e]);++_e<ke;)I=M(I,E[_e],_e,E);return I}function hp(E,M,I,oe){var _e=E==null?0:E.length;for(oe&&_e&&(I=E[--_e]);_e--;)I=M(I,E[_e],_e,E);return I}function Ul(E,M){for(var I=-1,oe=E==null?0:E.length;++I<oe;)if(M(E[I],I,E))return!0;return!1}var mp=zl("length");function gp(E){return E.split("")}function pp(E){return E.match(Rl)||[]}function zc(E,M,I){var oe;return I(E,function(_e,ke,Ze){if(M(_e,ke,Ze))return oe=ke,!1}),oe}function oi(E,M,I,oe){for(var _e=E.length,ke=I+(oe?1:-1);oe?ke--:++ke<_e;)if(M(E[ke],ke,E))return ke;return-1}function wr(E,M,I){return M===M?Bp(E,M,I):oi(E,Hc,I)}function vp(E,M,I,oe){for(var _e=I-1,ke=E.length;++_e<ke;)if(oe(E[_e],M))return _e;return-1}function Hc(E){return E!==E}function Wc(E,M){var I=E==null?0:E.length;return I?Wl(E,M)/I:ge}function zl(E){return function(M){return M==null?i:M[E]}}function Hl(E){return function(M){return E==null?i:E[M]}}function Gc(E,M,I,oe,_e){return _e(E,function(ke,Ze,Fe){I=oe?(oe=!1,ke):M(I,ke,Ze,Fe)}),I}function _p(E,M){var I=E.length;for(E.sort(M);I--;)E[I]=E[I].value;return E}function Wl(E,M){for(var I,oe=-1,_e=E.length;++oe<_e;){var ke=M(E[oe]);ke!==i&&(I=I===i?ke:I+ke)}return I}function Gl(E,M){for(var I=-1,oe=Array(E);++I<E;)oe[I]=M(I);return oe}function yp(E,M){return Ne(M,function(I){return[I,E[I]]})}function jc(E){return E&&E.slice(0,Yc(E)+1).replace(Kr,"")}function Ct(E){return function(M){return E(M)}}function jl(E,M){return Ne(M,function(I){return E[I]})}function Zr(E,M){return E.has(M)}function Kc(E,M){for(var I=-1,oe=E.length;++I<oe&&wr(M,E[I],0)>-1;);return I}function Qc(E,M){for(var I=E.length;I--&&wr(M,E[I],0)>-1;);return I}function bp(E,M){for(var I=E.length,oe=0;I--;)E[I]===M&&++oe;return oe}var wp=Hl(op),Sp=Hl(ip);function Cp(E){return"\\"+ap[E]}function xp(E,M){return E==null?i:E[M]}function Sr(E){return ep.test(E)}function Ap(E){return tp.test(E)}function Ep(E){for(var M,I=[];!(M=E.next()).done;)I.push(M.value);return I}function Kl(E){var M=-1,I=Array(E.size);return E.forEach(function(oe,_e){I[++M]=[_e,oe]}),I}function Zc(E,M){return function(I){return E(M(I))}}function kn(E,M){for(var I=-1,oe=E.length,_e=0,ke=[];++I<oe;){var Ze=E[I];(Ze===M||Ze===m)&&(E[I]=m,ke[_e++]=I)}return ke}function ii(E){var M=-1,I=Array(E.size);return E.forEach(function(oe){I[++M]=oe}),I}function kp(E){var M=-1,I=Array(E.size);return E.forEach(function(oe){I[++M]=[oe,oe]}),I}function Bp(E,M,I){for(var oe=I-1,_e=E.length;++oe<_e;)if(E[oe]===M)return oe;return-1}function Op(E,M,I){for(var oe=I+1;oe--;)if(E[oe]===M)return oe;return oe}function Cr(E){return Sr(E)?Rp(E):mp(E)}function Gt(E){return Sr(E)?Ip(E):gp(E)}function Yc(E){for(var M=E.length;M--&&kl.test(E.charAt(M)););return M}var Tp=Hl(lp);function Rp(E){for(var M=Vl.lastIndex=0;Vl.test(E);)++M;return M}function Ip(E){return E.match(Vl)||[]}function Fp(E){return E.match(Jg)||[]}var Mp=function E(M){M=M==null?tt:xr.defaults(tt.Object(),M,xr.pick(tt,np));var I=M.Array,oe=M.Date,_e=M.Error,ke=M.Function,Ze=M.Math,Fe=M.Object,Ql=M.RegExp,Lp=M.String,Ft=M.TypeError,li=I.prototype,Pp=ke.prototype,Ar=Fe.prototype,ai=M["__core-js_shared__"],ui=Pp.toString,Re=Ar.hasOwnProperty,Vp=0,Xc=function(){var e=/[^.]+$/.exec(ai&&ai.keys&&ai.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),si=Ar.toString,Np=ui.call(Fe),qp=tt._,$p=Ql("^"+ui.call(Re).replace(jr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ci=Lc?M.Buffer:i,Bn=M.Symbol,fi=M.Uint8Array,Jc=ci?ci.allocUnsafe:i,di=Zc(Fe.getPrototypeOf,Fe),ef=Fe.create,tf=Ar.propertyIsEnumerable,hi=li.splice,nf=Bn?Bn.isConcatSpreadable:i,Yr=Bn?Bn.iterator:i,Zn=Bn?Bn.toStringTag:i,mi=function(){try{var e=tr(Fe,"defineProperty");return e({},"",{}),e}catch{}}(),Dp=M.clearTimeout!==tt.clearTimeout&&M.clearTimeout,Up=oe&&oe.now!==tt.Date.now&&oe.now,zp=M.setTimeout!==tt.setTimeout&&M.setTimeout,gi=Ze.ceil,pi=Ze.floor,Zl=Fe.getOwnPropertySymbols,Hp=ci?ci.isBuffer:i,rf=M.isFinite,Wp=li.join,Gp=Zc(Fe.keys,Fe),Ye=Ze.max,ot=Ze.min,jp=oe.now,Kp=M.parseInt,of=Ze.random,Qp=li.reverse,Yl=tr(M,"DataView"),Xr=tr(M,"Map"),Xl=tr(M,"Promise"),Er=tr(M,"Set"),Jr=tr(M,"WeakMap"),eo=tr(Fe,"create"),vi=Jr&&new Jr,kr={},Zp=nr(Yl),Yp=nr(Xr),Xp=nr(Xl),Jp=nr(Er),ev=nr(Jr),_i=Bn?Bn.prototype:i,to=_i?_i.valueOf:i,lf=_i?_i.toString:i;function g(e){if(Ue(e)&&!ye(e)&&!(e instanceof xe)){if(e instanceof Mt)return e;if(Re.call(e,"__wrapped__"))return ad(e)}return new Mt(e)}var Br=function(){function e(){}return function(n){if(!$e(n))return{};if(ef)return ef(n);e.prototype=n;var o=new e;return e.prototype=i,o}}();function yi(){}function Mt(e,n){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=i}g.templateSettings={escape:xl,evaluate:Yo,interpolate:jn,variable:"",imports:{_:g}},g.prototype=yi.prototype,g.prototype.constructor=g,Mt.prototype=Br(yi.prototype),Mt.prototype.constructor=Mt;function xe(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=R,this.__views__=[]}function tv(){var e=new xe(this.__wrapped__);return e.__actions__=mt(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=mt(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=mt(this.__views__),e}function nv(){if(this.__filtered__){var e=new xe(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function rv(){var e=this.__wrapped__.value(),n=this.__dir__,o=ye(e),u=n<0,f=o?e.length:0,p=g_(0,f,this.__views__),_=p.start,C=p.end,B=C-_,P=u?C:_-1,V=this.__iteratees__,z=V.length,ee=0,ue=ot(B,this.__takeCount__);if(!o||!u&&f==B&&ue==B)return Tf(e,this.__actions__);var he=[];e:for(;B--&&ee<ue;){P+=n;for(var we=-1,me=e[P];++we<z;){var Ce=V[we],Ae=Ce.iteratee,Et=Ce.type,ft=Ae(me);if(Et==le)me=ft;else if(!ft){if(Et==$)continue e;break e}}he[ee++]=me}return he}xe.prototype=Br(yi.prototype),xe.prototype.constructor=xe;function Yn(e){var n=-1,o=e==null?0:e.length;for(this.clear();++n<o;){var u=e[n];this.set(u[0],u[1])}}function ov(){this.__data__=eo?eo(null):{},this.size=0}function iv(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}function lv(e){var n=this.__data__;if(eo){var o=n[e];return o===v?i:o}return Re.call(n,e)?n[e]:i}function av(e){var n=this.__data__;return eo?n[e]!==i:Re.call(n,e)}function uv(e,n){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=eo&&n===i?v:n,this}Yn.prototype.clear=ov,Yn.prototype.delete=iv,Yn.prototype.get=lv,Yn.prototype.has=av,Yn.prototype.set=uv;function an(e){var n=-1,o=e==null?0:e.length;for(this.clear();++n<o;){var u=e[n];this.set(u[0],u[1])}}function sv(){this.__data__=[],this.size=0}function cv(e){var n=this.__data__,o=bi(n,e);if(o<0)return!1;var u=n.length-1;return o==u?n.pop():hi.call(n,o,1),--this.size,!0}function fv(e){var n=this.__data__,o=bi(n,e);return o<0?i:n[o][1]}function dv(e){return bi(this.__data__,e)>-1}function hv(e,n){var o=this.__data__,u=bi(o,e);return u<0?(++this.size,o.push([e,n])):o[u][1]=n,this}an.prototype.clear=sv,an.prototype.delete=cv,an.prototype.get=fv,an.prototype.has=dv,an.prototype.set=hv;function un(e){var n=-1,o=e==null?0:e.length;for(this.clear();++n<o;){var u=e[n];this.set(u[0],u[1])}}function mv(){this.size=0,this.__data__={hash:new Yn,map:new(Xr||an),string:new Yn}}function gv(e){var n=Ii(this,e).delete(e);return this.size-=n?1:0,n}function pv(e){return Ii(this,e).get(e)}function vv(e){return Ii(this,e).has(e)}function _v(e,n){var o=Ii(this,e),u=o.size;return o.set(e,n),this.size+=o.size==u?0:1,this}un.prototype.clear=mv,un.prototype.delete=gv,un.prototype.get=pv,un.prototype.has=vv,un.prototype.set=_v;function Xn(e){var n=-1,o=e==null?0:e.length;for(this.__data__=new un;++n<o;)this.add(e[n])}function yv(e){return this.__data__.set(e,v),this}function bv(e){return this.__data__.has(e)}Xn.prototype.add=Xn.prototype.push=yv,Xn.prototype.has=bv;function jt(e){var n=this.__data__=new an(e);this.size=n.size}function wv(){this.__data__=new an,this.size=0}function Sv(e){var n=this.__data__,o=n.delete(e);return this.size=n.size,o}function Cv(e){return this.__data__.get(e)}function xv(e){return this.__data__.has(e)}function Av(e,n){var o=this.__data__;if(o instanceof an){var u=o.__data__;if(!Xr||u.length<a-1)return u.push([e,n]),this.size=++o.size,this;o=this.__data__=new un(u)}return o.set(e,n),this.size=o.size,this}jt.prototype.clear=wv,jt.prototype.delete=Sv,jt.prototype.get=Cv,jt.prototype.has=xv,jt.prototype.set=Av;function af(e,n){var o=ye(e),u=!o&&rr(e),f=!o&&!u&&Fn(e),p=!o&&!u&&!f&&Ir(e),_=o||u||f||p,C=_?Gl(e.length,Lp):[],B=C.length;for(var P in e)(n||Re.call(e,P))&&!(_&&(P=="length"||f&&(P=="offset"||P=="parent")||p&&(P=="buffer"||P=="byteLength"||P=="byteOffset")||dn(P,B)))&&C.push(P);return C}function uf(e){var n=e.length;return n?e[sa(0,n-1)]:i}function Ev(e,n){return Fi(mt(e),Jn(n,0,e.length))}function kv(e){return Fi(mt(e))}function Jl(e,n,o){(o!==i&&!Kt(e[n],o)||o===i&&!(n in e))&&sn(e,n,o)}function no(e,n,o){var u=e[n];(!(Re.call(e,n)&&Kt(u,o))||o===i&&!(n in e))&&sn(e,n,o)}function bi(e,n){for(var o=e.length;o--;)if(Kt(e[o][0],n))return o;return-1}function Bv(e,n,o,u){return On(e,function(f,p,_){n(u,f,o(f),_)}),u}function sf(e,n){return e&&Jt(n,Je(n),e)}function Ov(e,n){return e&&Jt(n,pt(n),e)}function sn(e,n,o){n=="__proto__"&&mi?mi(e,n,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[n]=o}function ea(e,n){for(var o=-1,u=n.length,f=I(u),p=e==null;++o<u;)f[o]=p?i:Ma(e,n[o]);return f}function Jn(e,n,o){return e===e&&(o!==i&&(e=e<=o?e:o),n!==i&&(e=e>=n?e:n)),e}function Lt(e,n,o,u,f,p){var _,C=n&y,B=n&A,P=n&x;if(o&&(_=f?o(e,u,f,p):o(e)),_!==i)return _;if(!$e(e))return e;var V=ye(e);if(V){if(_=v_(e),!C)return mt(e,_)}else{var z=it(e),ee=z==Ut||z==bt;if(Fn(e))return Ff(e,C);if(z==ht||z==fe||ee&&!f){if(_=B||ee?{}:Xf(e),!C)return B?l_(e,Ov(_,e)):i_(e,sf(_,e))}else{if(!Me[z])return f?e:{};_=__(e,z,C)}}p||(p=new jt);var ue=p.get(e);if(ue)return ue;p.set(e,_),kd(e)?e.forEach(function(me){_.add(Lt(me,n,o,me,e,p))}):Ad(e)&&e.forEach(function(me,Ce){_.set(Ce,Lt(me,n,o,Ce,e,p))});var he=P?B?ba:ya:B?pt:Je,we=V?i:he(e);return It(we||e,function(me,Ce){we&&(Ce=me,me=e[Ce]),no(_,Ce,Lt(me,n,o,Ce,e,p))}),_}function Tv(e){var n=Je(e);return function(o){return cf(o,e,n)}}function cf(e,n,o){var u=o.length;if(e==null)return!u;for(e=Fe(e);u--;){var f=o[u],p=n[f],_=e[f];if(_===i&&!(f in e)||!p(_))return!1}return!0}function ff(e,n,o){if(typeof e!="function")throw new Ft(d);return so(function(){e.apply(i,o)},n)}function ro(e,n,o,u){var f=-1,p=ri,_=!0,C=e.length,B=[],P=n.length;if(!C)return B;o&&(n=Ne(n,Ct(o))),u?(p=$l,_=!1):n.length>=a&&(p=Zr,_=!1,n=new Xn(n));e:for(;++f<C;){var V=e[f],z=o==null?V:o(V);if(V=u||V!==0?V:0,_&&z===z){for(var ee=P;ee--;)if(n[ee]===z)continue e;B.push(V)}else p(n,z,u)||B.push(V)}return B}var On=Nf(Xt),df=Nf(na,!0);function Rv(e,n){var o=!0;return On(e,function(u,f,p){return o=!!n(u,f,p),o}),o}function wi(e,n,o){for(var u=-1,f=e.length;++u<f;){var p=e[u],_=n(p);if(_!=null&&(C===i?_===_&&!At(_):o(_,C)))var C=_,B=p}return B}function Iv(e,n,o,u){var f=e.length;for(o=be(o),o<0&&(o=-o>f?0:f+o),u=u===i||u>f?f:be(u),u<0&&(u+=f),u=o>u?0:Od(u);o<u;)e[o++]=n;return e}function hf(e,n){var o=[];return On(e,function(u,f,p){n(u,f,p)&&o.push(u)}),o}function nt(e,n,o,u,f){var p=-1,_=e.length;for(o||(o=b_),f||(f=[]);++p<_;){var C=e[p];n>0&&o(C)?n>1?nt(C,n-1,o,u,f):En(f,C):u||(f[f.length]=C)}return f}var ta=qf(),mf=qf(!0);function Xt(e,n){return e&&ta(e,n,Je)}function na(e,n){return e&&mf(e,n,Je)}function Si(e,n){return An(n,function(o){return hn(e[o])})}function er(e,n){n=Rn(n,e);for(var o=0,u=n.length;e!=null&&o<u;)e=e[en(n[o++])];return o&&o==u?e:i}function gf(e,n,o){var u=n(e);return ye(e)?u:En(u,o(e))}function st(e){return e==null?e===i?gr:nn:Zn&&Zn in Fe(e)?m_(e):k_(e)}function ra(e,n){return e>n}function Fv(e,n){return e!=null&&Re.call(e,n)}function Mv(e,n){return e!=null&&n in Fe(e)}function Lv(e,n,o){return e>=ot(n,o)&&e<Ye(n,o)}function oa(e,n,o){for(var u=o?$l:ri,f=e[0].length,p=e.length,_=p,C=I(p),B=1/0,P=[];_--;){var V=e[_];_&&n&&(V=Ne(V,Ct(n))),B=ot(V.length,B),C[_]=!o&&(n||f>=120&&V.length>=120)?new Xn(_&&V):i}V=e[0];var z=-1,ee=C[0];e:for(;++z<f&&P.length<B;){var ue=V[z],he=n?n(ue):ue;if(ue=o||ue!==0?ue:0,!(ee?Zr(ee,he):u(P,he,o))){for(_=p;--_;){var we=C[_];if(!(we?Zr(we,he):u(e[_],he,o)))continue e}ee&&ee.push(he),P.push(ue)}}return P}function Pv(e,n,o,u){return Xt(e,function(f,p,_){n(u,o(f),p,_)}),u}function oo(e,n,o){n=Rn(n,e),e=nd(e,n);var u=e==null?e:e[en(Vt(n))];return u==null?i:St(u,e,o)}function pf(e){return Ue(e)&&st(e)==fe}function Vv(e){return Ue(e)&&st(e)==rn}function Nv(e){return Ue(e)&&st(e)==X}function io(e,n,o,u,f){return e===n?!0:e==null||n==null||!Ue(e)&&!Ue(n)?e!==e&&n!==n:qv(e,n,o,u,io,f)}function qv(e,n,o,u,f,p){var _=ye(e),C=ye(n),B=_?G:it(e),P=C?G:it(n);B=B==fe?ht:B,P=P==fe?ht:P;var V=B==ht,z=P==ht,ee=B==P;if(ee&&Fn(e)){if(!Fn(n))return!1;_=!0,V=!1}if(ee&&!V)return p||(p=new jt),_||Ir(e)?Qf(e,n,o,u,f,p):d_(e,n,B,o,u,f,p);if(!(o&w)){var ue=V&&Re.call(e,"__wrapped__"),he=z&&Re.call(n,"__wrapped__");if(ue||he){var we=ue?e.value():e,me=he?n.value():n;return p||(p=new jt),f(we,me,o,u,p)}}return ee?(p||(p=new jt),h_(e,n,o,u,f,p)):!1}function $v(e){return Ue(e)&&it(e)==rt}function ia(e,n,o,u){var f=o.length,p=f,_=!u;if(e==null)return!p;for(e=Fe(e);f--;){var C=o[f];if(_&&C[2]?C[1]!==e[C[0]]:!(C[0]in e))return!1}for(;++f<p;){C=o[f];var B=C[0],P=e[B],V=C[1];if(_&&C[2]){if(P===i&&!(B in e))return!1}else{var z=new jt;if(u)var ee=u(P,V,B,e,n,z);if(!(ee===i?io(V,P,w|F,u,z):ee))return!1}}return!0}function vf(e){if(!$e(e)||S_(e))return!1;var n=hn(e)?$p:Xo;return n.test(nr(e))}function Dv(e){return Ue(e)&&st(e)==zt}function Uv(e){return Ue(e)&&it(e)==De}function zv(e){return Ue(e)&&qi(e.length)&&!!Le[st(e)]}function _f(e){return typeof e=="function"?e:e==null?vt:typeof e=="object"?ye(e)?wf(e[0],e[1]):bf(e):$d(e)}function la(e){if(!uo(e))return Gp(e);var n=[];for(var o in Fe(e))Re.call(e,o)&&o!="constructor"&&n.push(o);return n}function Hv(e){if(!$e(e))return E_(e);var n=uo(e),o=[];for(var u in e)u=="constructor"&&(n||!Re.call(e,u))||o.push(u);return o}function aa(e,n){return e<n}function yf(e,n){var o=-1,u=gt(e)?I(e.length):[];return On(e,function(f,p,_){u[++o]=n(f,p,_)}),u}function bf(e){var n=Sa(e);return n.length==1&&n[0][2]?ed(n[0][0],n[0][1]):function(o){return o===e||ia(o,e,n)}}function wf(e,n){return xa(e)&&Jf(n)?ed(en(e),n):function(o){var u=Ma(o,e);return u===i&&u===n?La(o,e):io(n,u,w|F)}}function Ci(e,n,o,u,f){e!==n&&ta(n,function(p,_){if(f||(f=new jt),$e(p))Wv(e,n,_,o,Ci,u,f);else{var C=u?u(Ea(e,_),p,_+"",e,n,f):i;C===i&&(C=p),Jl(e,_,C)}},pt)}function Wv(e,n,o,u,f,p,_){var C=Ea(e,o),B=Ea(n,o),P=_.get(B);if(P){Jl(e,o,P);return}var V=p?p(C,B,o+"",e,n,_):i,z=V===i;if(z){var ee=ye(B),ue=!ee&&Fn(B),he=!ee&&!ue&&Ir(B);V=B,ee||ue||he?ye(C)?V=C:ze(C)?V=mt(C):ue?(z=!1,V=Ff(B,!0)):he?(z=!1,V=Mf(B,!0)):V=[]:co(B)||rr(B)?(V=C,rr(C)?V=Td(C):(!$e(C)||hn(C))&&(V=Xf(B))):z=!1}z&&(_.set(B,V),f(V,B,u,p,_),_.delete(B)),Jl(e,o,V)}function Sf(e,n){var o=e.length;if(o)return n+=n<0?o:0,dn(n,o)?e[n]:i}function Cf(e,n,o){n.length?n=Ne(n,function(p){return ye(p)?function(_){return er(_,p.length===1?p[0]:p)}:p}):n=[vt];var u=-1;n=Ne(n,Ct(de()));var f=yf(e,function(p,_,C){var B=Ne(n,function(P){return P(p)});return{criteria:B,index:++u,value:p}});return _p(f,function(p,_){return o_(p,_,o)})}function Gv(e,n){return xf(e,n,function(o,u){return La(e,u)})}function xf(e,n,o){for(var u=-1,f=n.length,p={};++u<f;){var _=n[u],C=er(e,_);o(C,_)&&lo(p,Rn(_,e),C)}return p}function jv(e){return function(n){return er(n,e)}}function ua(e,n,o,u){var f=u?vp:wr,p=-1,_=n.length,C=e;for(e===n&&(n=mt(n)),o&&(C=Ne(e,Ct(o)));++p<_;)for(var B=0,P=n[p],V=o?o(P):P;(B=f(C,V,B,u))>-1;)C!==e&&hi.call(C,B,1),hi.call(e,B,1);return e}function Af(e,n){for(var o=e?n.length:0,u=o-1;o--;){var f=n[o];if(o==u||f!==p){var p=f;dn(f)?hi.call(e,f,1):da(e,f)}}return e}function sa(e,n){return e+pi(of()*(n-e+1))}function Kv(e,n,o,u){for(var f=-1,p=Ye(gi((n-e)/(o||1)),0),_=I(p);p--;)_[u?p:++f]=e,e+=o;return _}function ca(e,n){var o="";if(!e||n<1||n>se)return o;do n%2&&(o+=e),n=pi(n/2),n&&(e+=e);while(n);return o}function Se(e,n){return ka(td(e,n,vt),e+"")}function Qv(e){return uf(Fr(e))}function Zv(e,n){var o=Fr(e);return Fi(o,Jn(n,0,o.length))}function lo(e,n,o,u){if(!$e(e))return e;n=Rn(n,e);for(var f=-1,p=n.length,_=p-1,C=e;C!=null&&++f<p;){var B=en(n[f]),P=o;if(B==="__proto__"||B==="constructor"||B==="prototype")return e;if(f!=_){var V=C[B];P=u?u(V,B,C):i,P===i&&(P=$e(V)?V:dn(n[f+1])?[]:{})}no(C,B,P),C=C[B]}return e}var Ef=vi?function(e,n){return vi.set(e,n),e}:vt,Yv=mi?function(e,n){return mi(e,"toString",{configurable:!0,enumerable:!1,value:Va(n),writable:!0})}:vt;function Xv(e){return Fi(Fr(e))}function Pt(e,n,o){var u=-1,f=e.length;n<0&&(n=-n>f?0:f+n),o=o>f?f:o,o<0&&(o+=f),f=n>o?0:o-n>>>0,n>>>=0;for(var p=I(f);++u<f;)p[u]=e[u+n];return p}function Jv(e,n){var o;return On(e,function(u,f,p){return o=n(u,f,p),!o}),!!o}function xi(e,n,o){var u=0,f=e==null?u:e.length;if(typeof n=="number"&&n===n&&f<=Y){for(;u<f;){var p=u+f>>>1,_=e[p];_!==null&&!At(_)&&(o?_<=n:_<n)?u=p+1:f=p}return f}return fa(e,n,vt,o)}function fa(e,n,o,u){var f=0,p=e==null?0:e.length;if(p===0)return 0;n=o(n);for(var _=n!==n,C=n===null,B=At(n),P=n===i;f<p;){var V=pi((f+p)/2),z=o(e[V]),ee=z!==i,ue=z===null,he=z===z,we=At(z);if(_)var me=u||he;else P?me=he&&(u||ee):C?me=he&&ee&&(u||!ue):B?me=he&&ee&&!ue&&(u||!we):ue||we?me=!1:me=u?z<=n:z<n;me?f=V+1:p=V}return ot(p,T)}function kf(e,n){for(var o=-1,u=e.length,f=0,p=[];++o<u;){var _=e[o],C=n?n(_):_;if(!o||!Kt(C,B)){var B=C;p[f++]=_===0?0:_}}return p}function Bf(e){return typeof e=="number"?e:At(e)?ge:+e}function xt(e){if(typeof e=="string")return e;if(ye(e))return Ne(e,xt)+"";if(At(e))return lf?lf.call(e):"";var n=e+"";return n=="0"&&1/e==-H?"-0":n}function Tn(e,n,o){var u=-1,f=ri,p=e.length,_=!0,C=[],B=C;if(o)_=!1,f=$l;else if(p>=a){var P=n?null:c_(e);if(P)return ii(P);_=!1,f=Zr,B=new Xn}else B=n?[]:C;e:for(;++u<p;){var V=e[u],z=n?n(V):V;if(V=o||V!==0?V:0,_&&z===z){for(var ee=B.length;ee--;)if(B[ee]===z)continue e;n&&B.push(z),C.push(V)}else f(B,z,o)||(B!==C&&B.push(z),C.push(V))}return C}function da(e,n){return n=Rn(n,e),e=nd(e,n),e==null||delete e[en(Vt(n))]}function Of(e,n,o,u){return lo(e,n,o(er(e,n)),u)}function Ai(e,n,o,u){for(var f=e.length,p=u?f:-1;(u?p--:++p<f)&&n(e[p],p,e););return o?Pt(e,u?0:p,u?p+1:f):Pt(e,u?p+1:0,u?f:p)}function Tf(e,n){var o=e;return o instanceof xe&&(o=o.value()),Dl(n,function(u,f){return f.func.apply(f.thisArg,En([u],f.args))},o)}function ha(e,n,o){var u=e.length;if(u<2)return u?Tn(e[0]):[];for(var f=-1,p=I(u);++f<u;)for(var _=e[f],C=-1;++C<u;)C!=f&&(p[f]=ro(p[f]||_,e[C],n,o));return Tn(nt(p,1),n,o)}function Rf(e,n,o){for(var u=-1,f=e.length,p=n.length,_={};++u<f;){var C=u<p?n[u]:i;o(_,e[u],C)}return _}function ma(e){return ze(e)?e:[]}function ga(e){return typeof e=="function"?e:vt}function Rn(e,n){return ye(e)?e:xa(e,n)?[e]:ld(Oe(e))}var e_=Se;function In(e,n,o){var u=e.length;return o=o===i?u:o,!n&&o>=u?e:Pt(e,n,o)}var If=Dp||function(e){return tt.clearTimeout(e)};function Ff(e,n){if(n)return e.slice();var o=e.length,u=Jc?Jc(o):new e.constructor(o);return e.copy(u),u}function pa(e){var n=new e.constructor(e.byteLength);return new fi(n).set(new fi(e)),n}function t_(e,n){var o=n?pa(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.byteLength)}function n_(e){var n=new e.constructor(e.source,ln.exec(e));return n.lastIndex=e.lastIndex,n}function r_(e){return to?Fe(to.call(e)):{}}function Mf(e,n){var o=n?pa(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.length)}function Lf(e,n){if(e!==n){var o=e!==i,u=e===null,f=e===e,p=At(e),_=n!==i,C=n===null,B=n===n,P=At(n);if(!C&&!P&&!p&&e>n||p&&_&&B&&!C&&!P||u&&_&&B||!o&&B||!f)return 1;if(!u&&!p&&!P&&e<n||P&&o&&f&&!u&&!p||C&&o&&f||!_&&f||!B)return-1}return 0}function o_(e,n,o){for(var u=-1,f=e.criteria,p=n.criteria,_=f.length,C=o.length;++u<_;){var B=Lf(f[u],p[u]);if(B){if(u>=C)return B;var P=o[u];return B*(P=="desc"?-1:1)}}return e.index-n.index}function Pf(e,n,o,u){for(var f=-1,p=e.length,_=o.length,C=-1,B=n.length,P=Ye(p-_,0),V=I(B+P),z=!u;++C<B;)V[C]=n[C];for(;++f<_;)(z||f<p)&&(V[o[f]]=e[f]);for(;P--;)V[C++]=e[f++];return V}function Vf(e,n,o,u){for(var f=-1,p=e.length,_=-1,C=o.length,B=-1,P=n.length,V=Ye(p-C,0),z=I(V+P),ee=!u;++f<V;)z[f]=e[f];for(var ue=f;++B<P;)z[ue+B]=n[B];for(;++_<C;)(ee||f<p)&&(z[ue+o[_]]=e[f++]);return z}function mt(e,n){var o=-1,u=e.length;for(n||(n=I(u));++o<u;)n[o]=e[o];return n}function Jt(e,n,o,u){var f=!o;o||(o={});for(var p=-1,_=n.length;++p<_;){var C=n[p],B=u?u(o[C],e[C],C,o,e):i;B===i&&(B=e[C]),f?sn(o,C,B):no(o,C,B)}return o}function i_(e,n){return Jt(e,Ca(e),n)}function l_(e,n){return Jt(e,Zf(e),n)}function Ei(e,n){return function(o,u){var f=ye(o)?fp:Bv,p=n?n():{};return f(o,e,de(u,2),p)}}function Or(e){return Se(function(n,o){var u=-1,f=o.length,p=f>1?o[f-1]:i,_=f>2?o[2]:i;for(p=e.length>3&&typeof p=="function"?(f--,p):i,_&&ct(o[0],o[1],_)&&(p=f<3?i:p,f=1),n=Fe(n);++u<f;){var C=o[u];C&&e(n,C,u,p)}return n})}function Nf(e,n){return function(o,u){if(o==null)return o;if(!gt(o))return e(o,u);for(var f=o.length,p=n?f:-1,_=Fe(o);(n?p--:++p<f)&&u(_[p],p,_)!==!1;);return o}}function qf(e){return function(n,o,u){for(var f=-1,p=Fe(n),_=u(n),C=_.length;C--;){var B=_[e?C:++f];if(o(p[B],B,p)===!1)break}return n}}function a_(e,n,o){var u=n&k,f=ao(e);function p(){var _=this&&this!==tt&&this instanceof p?f:e;return _.apply(u?o:this,arguments)}return p}function $f(e){return function(n){n=Oe(n);var o=Sr(n)?Gt(n):i,u=o?o[0]:n.charAt(0),f=o?In(o,1).join(""):n.slice(1);return u[e]()+f}}function Tr(e){return function(n){return Dl(Nd(Vd(n).replace(Yg,"")),e,"")}}function ao(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 o=Br(e.prototype),u=e.apply(o,n);return $e(u)?u:o}}function u_(e,n,o){var u=ao(e);function f(){for(var p=arguments.length,_=I(p),C=p,B=Rr(f);C--;)_[C]=arguments[C];var P=p<3&&_[0]!==B&&_[p-1]!==B?[]:kn(_,B);if(p-=P.length,p<o)return Wf(e,n,ki,f.placeholder,i,_,P,i,i,o-p);var V=this&&this!==tt&&this instanceof f?u:e;return St(V,this,_)}return f}function Df(e){return function(n,o,u){var f=Fe(n);if(!gt(n)){var p=de(o,3);n=Je(n),o=function(C){return p(f[C],C,f)}}var _=e(n,o,u);return _>-1?f[p?n[_]:_]:i}}function Uf(e){return fn(function(n){var o=n.length,u=o,f=Mt.prototype.thru;for(e&&n.reverse();u--;){var p=n[u];if(typeof p!="function")throw new Ft(d);if(f&&!_&&Ri(p)=="wrapper")var _=new Mt([],!0)}for(u=_?u:o;++u<o;){p=n[u];var C=Ri(p),B=C=="wrapper"?wa(p):i;B&&Aa(B[0])&&B[1]==(j|L|W|ie)&&!B[4].length&&B[9]==1?_=_[Ri(B[0])].apply(_,B[3]):_=p.length==1&&Aa(p)?_[C]():_.thru(p)}return function(){var P=arguments,V=P[0];if(_&&P.length==1&&ye(V))return _.plant(V).value();for(var z=0,ee=o?n[z].apply(this,P):V;++z<o;)ee=n[z].call(this,ee);return ee}})}function ki(e,n,o,u,f,p,_,C,B,P){var V=n&j,z=n&k,ee=n&q,ue=n&(L|K),he=n&N,we=ee?i:ao(e);function me(){for(var Ce=arguments.length,Ae=I(Ce),Et=Ce;Et--;)Ae[Et]=arguments[Et];if(ue)var ft=Rr(me),kt=bp(Ae,ft);if(u&&(Ae=Pf(Ae,u,f,ue)),p&&(Ae=Vf(Ae,p,_,ue)),Ce-=kt,ue&&Ce<P){var He=kn(Ae,ft);return Wf(e,n,ki,me.placeholder,o,Ae,He,C,B,P-Ce)}var Qt=z?o:this,gn=ee?Qt[e]:e;return Ce=Ae.length,C?Ae=B_(Ae,C):he&&Ce>1&&Ae.reverse(),V&&B<Ce&&(Ae.length=B),this&&this!==tt&&this instanceof me&&(gn=we||ao(gn)),gn.apply(Qt,Ae)}return me}function zf(e,n){return function(o,u){return Pv(o,e,n(u),{})}}function Bi(e,n){return function(o,u){var f;if(o===i&&u===i)return n;if(o!==i&&(f=o),u!==i){if(f===i)return u;typeof o=="string"||typeof u=="string"?(o=xt(o),u=xt(u)):(o=Bf(o),u=Bf(u)),f=e(o,u)}return f}}function va(e){return fn(function(n){return n=Ne(n,Ct(de())),Se(function(o){var u=this;return e(n,function(f){return St(f,u,o)})})})}function Oi(e,n){n=n===i?" ":xt(n);var o=n.length;if(o<2)return o?ca(n,e):n;var u=ca(n,gi(e/Cr(n)));return Sr(n)?In(Gt(u),0,e).join(""):u.slice(0,e)}function s_(e,n,o,u){var f=n&k,p=ao(e);function _(){for(var C=-1,B=arguments.length,P=-1,V=u.length,z=I(V+B),ee=this&&this!==tt&&this instanceof _?p:e;++P<V;)z[P]=u[P];for(;B--;)z[P++]=arguments[++C];return St(ee,f?o:this,z)}return _}function Hf(e){return function(n,o,u){return u&&typeof u!="number"&&ct(n,o,u)&&(o=u=i),n=mn(n),o===i?(o=n,n=0):o=mn(o),u=u===i?n<o?1:-1:mn(u),Kv(n,o,u,e)}}function Ti(e){return function(n,o){return typeof n=="string"&&typeof o=="string"||(n=Nt(n),o=Nt(o)),e(n,o)}}function Wf(e,n,o,u,f,p,_,C,B,P){var V=n&L,z=V?_:i,ee=V?i:_,ue=V?p:i,he=V?i:p;n|=V?W:Q,n&=~(V?Q:W),n&D||(n&=~(k|q));var we=[e,n,f,ue,z,he,ee,C,B,P],me=o.apply(i,we);return Aa(e)&&rd(me,we),me.placeholder=u,od(me,e,n)}function _a(e){var n=Ze[e];return function(o,u){if(o=Nt(o),u=u==null?0:ot(be(u),292),u&&rf(o)){var f=(Oe(o)+"e").split("e"),p=n(f[0]+"e"+(+f[1]+u));return f=(Oe(p)+"e").split("e"),+(f[0]+"e"+(+f[1]-u))}return n(o)}}var c_=Er&&1/ii(new Er([,-0]))[1]==H?function(e){return new Er(e)}:$a;function Gf(e){return function(n){var o=it(n);return o==rt?Kl(n):o==De?kp(n):yp(n,e(n))}}function cn(e,n,o,u,f,p,_,C){var B=n&q;if(!B&&typeof e!="function")throw new Ft(d);var P=u?u.length:0;if(P||(n&=~(W|Q),u=f=i),_=_===i?_:Ye(be(_),0),C=C===i?C:be(C),P-=f?f.length:0,n&Q){var V=u,z=f;u=f=i}var ee=B?i:wa(e),ue=[e,n,o,u,f,V,z,p,_,C];if(ee&&A_(ue,ee),e=ue[0],n=ue[1],o=ue[2],u=ue[3],f=ue[4],C=ue[9]=ue[9]===i?B?0:e.length:Ye(ue[9]-P,0),!C&&n&(L|K)&&(n&=~(L|K)),!n||n==k)var he=a_(e,n,o);else n==L||n==K?he=u_(e,n,C):(n==W||n==(k|W))&&!f.length?he=s_(e,n,o,u):he=ki.apply(i,ue);var we=ee?Ef:rd;return od(we(he,ue),e,n)}function jf(e,n,o,u){return e===i||Kt(e,Ar[o])&&!Re.call(u,o)?n:e}function Kf(e,n,o,u,f,p){return $e(e)&&$e(n)&&(p.set(n,e),Ci(e,n,i,Kf,p),p.delete(n)),e}function f_(e){return co(e)?i:e}function Qf(e,n,o,u,f,p){var _=o&w,C=e.length,B=n.length;if(C!=B&&!(_&&B>C))return!1;var P=p.get(e),V=p.get(n);if(P&&V)return P==n&&V==e;var z=-1,ee=!0,ue=o&F?new Xn:i;for(p.set(e,n),p.set(n,e);++z<C;){var he=e[z],we=n[z];if(u)var me=_?u(we,he,z,n,e,p):u(he,we,z,e,n,p);if(me!==i){if(me)continue;ee=!1;break}if(ue){if(!Ul(n,function(Ce,Ae){if(!Zr(ue,Ae)&&(he===Ce||f(he,Ce,o,u,p)))return ue.push(Ae)})){ee=!1;break}}else if(!(he===we||f(he,we,o,u,p))){ee=!1;break}}return p.delete(e),p.delete(n),ee}function d_(e,n,o,u,f,p,_){switch(o){case bn:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case rn:return!(e.byteLength!=n.byteLength||!p(new fi(e),new fi(n)));case Ee:case X:case wt:return Kt(+e,+n);case ut:return e.name==n.name&&e.message==n.message;case zt:case Qe:return e==n+"";case rt:var C=Kl;case De:var B=u&w;if(C||(C=ii),e.size!=n.size&&!B)return!1;var P=_.get(e);if(P)return P==n;u|=F,_.set(e,n);var V=Qf(C(e),C(n),u,f,p,_);return _.delete(e),V;case Ht:if(to)return to.call(e)==to.call(n)}return!1}function h_(e,n,o,u,f,p){var _=o&w,C=ya(e),B=C.length,P=ya(n),V=P.length;if(B!=V&&!_)return!1;for(var z=B;z--;){var ee=C[z];if(!(_?ee in n:Re.call(n,ee)))return!1}var ue=p.get(e),he=p.get(n);if(ue&&he)return ue==n&&he==e;var we=!0;p.set(e,n),p.set(n,e);for(var me=_;++z<B;){ee=C[z];var Ce=e[ee],Ae=n[ee];if(u)var Et=_?u(Ae,Ce,ee,n,e,p):u(Ce,Ae,ee,e,n,p);if(!(Et===i?Ce===Ae||f(Ce,Ae,o,u,p):Et)){we=!1;break}me||(me=ee=="constructor")}if(we&&!me){var ft=e.constructor,kt=n.constructor;ft!=kt&&"constructor"in e&&"constructor"in n&&!(typeof ft=="function"&&ft instanceof ft&&typeof kt=="function"&&kt instanceof kt)&&(we=!1)}return p.delete(e),p.delete(n),we}function fn(e){return ka(td(e,i,cd),e+"")}function ya(e){return gf(e,Je,Ca)}function ba(e){return gf(e,pt,Zf)}var wa=vi?function(e){return vi.get(e)}:$a;function Ri(e){for(var n=e.name+"",o=kr[n],u=Re.call(kr,n)?o.length:0;u--;){var f=o[u],p=f.func;if(p==null||p==e)return f.name}return n}function Rr(e){var n=Re.call(g,"placeholder")?g:e;return n.placeholder}function de(){var e=g.iteratee||Na;return e=e===Na?_f:e,arguments.length?e(arguments[0],arguments[1]):e}function Ii(e,n){var o=e.__data__;return w_(n)?o[typeof n=="string"?"string":"hash"]:o.map}function Sa(e){for(var n=Je(e),o=n.length;o--;){var u=n[o],f=e[u];n[o]=[u,f,Jf(f)]}return n}function tr(e,n){var o=xp(e,n);return vf(o)?o:i}function m_(e){var n=Re.call(e,Zn),o=e[Zn];try{e[Zn]=i;var u=!0}catch{}var f=si.call(e);return u&&(n?e[Zn]=o:delete e[Zn]),f}var Ca=Zl?function(e){return e==null?[]:(e=Fe(e),An(Zl(e),function(n){return tf.call(e,n)}))}:Da,Zf=Zl?function(e){for(var n=[];e;)En(n,Ca(e)),e=di(e);return n}:Da,it=st;(Yl&&it(new Yl(new ArrayBuffer(1)))!=bn||Xr&&it(new Xr)!=rt||Xl&&it(Xl.resolve())!=yn||Er&&it(new Er)!=De||Jr&&it(new Jr)!=Hn)&&(it=function(e){var n=st(e),o=n==ht?e.constructor:i,u=o?nr(o):"";if(u)switch(u){case Zp:return bn;case Yp:return rt;case Xp:return yn;case Jp:return De;case ev:return Hn}return n});function g_(e,n,o){for(var u=-1,f=o.length;++u<f;){var p=o[u],_=p.size;switch(p.type){case"drop":e+=_;break;case"dropRight":n-=_;break;case"take":n=ot(n,e+_);break;case"takeRight":e=Ye(e,n-_);break}}return{start:e,end:n}}function p_(e){var n=e.match(Ol);return n?n[1].split(Tl):[]}function Yf(e,n,o){n=Rn(n,e);for(var u=-1,f=n.length,p=!1;++u<f;){var _=en(n[u]);if(!(p=e!=null&&o(e,_)))break;e=e[_]}return p||++u!=f?p:(f=e==null?0:e.length,!!f&&qi(f)&&dn(_,f)&&(ye(e)||rr(e)))}function v_(e){var n=e.length,o=new e.constructor(n);return n&&typeof e[0]=="string"&&Re.call(e,"index")&&(o.index=e.index,o.input=e.input),o}function Xf(e){return typeof e.constructor=="function"&&!uo(e)?Br(di(e)):{}}function __(e,n,o){var u=e.constructor;switch(n){case rn:return pa(e);case Ee:case X:return new u(+e);case bn:return t_(e,o);case pr:case Wt:case Yt:case wn:case Wr:case Wn:case Gn:case vr:case _r:return Mf(e,o);case rt:return new u;case wt:case Qe:return new u(e);case zt:return n_(e);case De:return new u;case Ht:return r_(e)}}function y_(e,n){var o=n.length;if(!o)return e;var u=o-1;return n[u]=(o>1?"& ":"")+n[u],n=n.join(o>2?", ":" "),e.replace(Bl,`{
|
|
9
9
|
/* [wrapped with `+n+`] */
|
|
10
|
-
`)}function m_(e){return ye(e)||rr(e)||!!(tf&&e&&e[tf])}function fn(e,n){var o=typeof e;return n=n??se,!!n&&(o=="number"||o!="symbol"&&ei.test(e))&&e>-1&&e%1==0&&e<n}function ct(e,n,o){if(!$e(o))return!1;var u=typeof n;return(u=="number"?gt(o)&&fn(n,o.length):u=="string"&&n in o)?jt(o[n],e):!1}function xa(e,n){if(ye(e))return!1;var o=typeof e;return o=="number"||o=="symbol"||o=="boolean"||e==null||At(e)?!0:Sn.test(e)||!Kn.test(e)||n!=null&&e in Fe(n)}function g_(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}function Aa(e){var n=Ri(e),o=g[n];if(typeof o!="function"||!(n in xe.prototype))return!1;if(e===o)return!0;var u=wa(o);return!!u&&e===u[0]}function p_(e){return!!Yc&&Yc in e}var v_=ai?dn:Ua;function so(e){var n=e&&e.constructor,o=typeof n=="function"&&n.prototype||Ar;return e===o}function Xf(e){return e===e&&!$e(e)}function Jf(e,n){return function(o){return o==null?!1:o[e]===n&&(n!==i||e in Fe(o))}}function __(e){var n=Vi(e,function(u){return o.size===y&&o.clear(),u}),o=n.cache;return n}function y_(e,n){var o=e[1],u=n[1],f=o|u,p=f<(k|q|j),_=u==j&&o==L||u==j&&o==ie&&e[7].length<=n[8]||u==(j|ie)&&n[7].length<=n[8]&&o==L;if(!(p||_))return e;u&k&&(e[2]=n[2],f|=o&k?0:D);var C=n[3];if(C){var B=e[3];e[3]=B?Lf(B,C,n[4]):C,e[4]=B?kn(e[3],m):n[4]}return C=n[5],C&&(B=e[5],e[5]=B?Pf(B,C,n[6]):C,e[6]=B?kn(e[5],m):n[6]),C=n[7],C&&(e[7]=C),u&j&&(e[8]=e[8]==null?n[8]:ot(e[8],n[8])),e[9]==null&&(e[9]=n[9]),e[0]=n[0],e[1]=f,e}function b_(e){var n=[];if(e!=null)for(var o in Fe(e))n.push(o);return n}function w_(e){return si.call(e)}function ed(e,n,o){return n=Ye(n===i?e.length-1:n,0),function(){for(var u=arguments,f=-1,p=Ye(u.length-n,0),_=I(p);++f<p;)_[f]=u[n+f];f=-1;for(var C=I(n+1);++f<n;)C[f]=u[f];return C[n]=o(_),St(e,this,C)}}function td(e,n){return n.length<2?e:er(e,Lt(n,0,-1))}function S_(e,n){for(var o=e.length,u=ot(n.length,o),f=mt(e);u--;){var p=n[u];e[u]=fn(p,o)?f[p]:i}return e}function Ea(e,n){if(!(n==="constructor"&&typeof e[n]=="function")&&n!="__proto__")return e[n]}var nd=od(Af),co=Vp||function(e,n){return tt.setTimeout(e,n)},ka=od(Wv);function rd(e,n,o){var u=n+"";return ka(e,h_(u,C_(c_(u),o)))}function od(e){var n=0,o=0;return function(){var u=Dp(),f=te-(u-o);if(o=u,f>0){if(++n>=O)return arguments[0]}else n=0;return e.apply(i,arguments)}}function Fi(e,n){var o=-1,u=e.length,f=u-1;for(n=n===i?u:n;++o<n;){var p=sa(o,f),_=e[p];e[p]=e[o],e[o]=_}return e.length=n,e}var id=__(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(Al,function(o,u,f,p){n.push(f?p.replace(xn,"$1"):u||o)}),n});function Jt(e){if(typeof e=="string"||At(e))return e;var n=e+"";return n=="0"&&1/e==-H?"-0":n}function nr(e){if(e!=null){try{return ui.call(e)}catch{}try{return e+""}catch{}}return""}function C_(e,n){return Rt(pe,function(o){var u="_."+o[0];n&o[1]&&!ri(e,u)&&e.push(u)}),e.sort()}function ld(e){if(e instanceof xe)return e.clone();var n=new Ft(e.__wrapped__,e.__chain__);return n.__actions__=mt(e.__actions__),n.__index__=e.__index__,n.__values__=e.__values__,n}function x_(e,n,o){(o?ct(e,n,o):n===i)?n=1:n=Ye(be(n),0);var u=e==null?0:e.length;if(!u||n<1)return[];for(var f=0,p=0,_=I(gi(u/n));f<u;)_[p++]=Lt(e,f,f+=n);return _}function A_(e){for(var n=-1,o=e==null?0:e.length,u=0,f=[];++n<o;){var p=e[n];p&&(f[u++]=p)}return f}function E_(){var e=arguments.length;if(!e)return[];for(var n=I(e-1),o=arguments[0],u=e;u--;)n[u-1]=arguments[u];return En(ye(o)?mt(o):[o],nt(n,1))}var k_=Se(function(e,n){return ze(e)?oo(e,nt(n,1,ze,!0)):[]}),B_=Se(function(e,n){var o=Pt(n);return ze(o)&&(o=i),ze(e)?oo(e,nt(n,1,ze,!0),de(o,2)):[]}),O_=Se(function(e,n){var o=Pt(n);return ze(o)&&(o=i),ze(e)?oo(e,nt(n,1,ze,!0),i,o):[]});function T_(e,n,o){var u=e==null?0:e.length;return u?(n=o||n===i?1:be(n),Lt(e,n<0?0:n,u)):[]}function R_(e,n,o){var u=e==null?0:e.length;return u?(n=o||n===i?1:be(n),n=u-n,Lt(e,0,n<0?0:n)):[]}function I_(e,n){return e&&e.length?Ai(e,de(n,3),!0,!0):[]}function F_(e,n){return e&&e.length?Ai(e,de(n,3),!0):[]}function M_(e,n,o,u){var f=e==null?0:e.length;return f?(o&&typeof o!="number"&&ct(e,n,o)&&(o=0,u=f),Ev(e,n,o,u)):[]}function ad(e,n,o){var u=e==null?0:e.length;if(!u)return-1;var f=o==null?0:be(o);return f<0&&(f=Ye(u+f,0)),oi(e,de(n,3),f)}function ud(e,n,o){var u=e==null?0:e.length;if(!u)return-1;var f=u-1;return o!==i&&(f=be(o),f=o<0?Ye(u+f,0):ot(f,u-1)),oi(e,de(n,3),f,!0)}function sd(e){var n=e==null?0:e.length;return n?nt(e,1):[]}function L_(e){var n=e==null?0:e.length;return n?nt(e,H):[]}function P_(e,n){var o=e==null?0:e.length;return o?(n=n===i?1:be(n),nt(e,n)):[]}function V_(e){for(var n=-1,o=e==null?0:e.length,u={};++n<o;){var f=e[n];u[f[0]]=f[1]}return u}function cd(e){return e&&e.length?e[0]:i}function N_(e,n,o){var u=e==null?0:e.length;if(!u)return-1;var f=o==null?0:be(o);return f<0&&(f=Ye(u+f,0)),wr(e,n,f)}function q_(e){var n=e==null?0:e.length;return n?Lt(e,0,-1):[]}var $_=Se(function(e){var n=Ne(e,ma);return n.length&&n[0]===e[0]?oa(n):[]}),D_=Se(function(e){var n=Pt(e),o=Ne(e,ma);return n===Pt(o)?n=i:o.pop(),o.length&&o[0]===e[0]?oa(o,de(n,2)):[]}),U_=Se(function(e){var n=Pt(e),o=Ne(e,ma);return n=typeof n=="function"?n:i,n&&o.pop(),o.length&&o[0]===e[0]?oa(o,i,n):[]});function z_(e,n){return e==null?"":qp.call(e,n)}function Pt(e){var n=e==null?0:e.length;return n?e[n-1]:i}function H_(e,n,o){var u=e==null?0:e.length;if(!u)return-1;var f=u;return o!==i&&(f=be(o),f=f<0?Ye(u+f,0):ot(f,u-1)),n===n?Cp(e,n,f):oi(e,zc,f,!0)}function W_(e,n){return e&&e.length?wf(e,be(n)):i}var G_=Se(fd);function fd(e,n){return e&&e.length&&n&&n.length?ua(e,n):e}function j_(e,n,o){return e&&e.length&&n&&n.length?ua(e,n,de(o,2)):e}function K_(e,n,o){return e&&e.length&&n&&n.length?ua(e,n,i,o):e}var Q_=cn(function(e,n){var o=e==null?0:e.length,u=ea(e,n);return xf(e,Ne(n,function(f){return fn(f,o)?+f:f}).sort(Mf)),u});function Z_(e,n){var o=[];if(!(e&&e.length))return o;var u=-1,f=[],p=e.length;for(n=de(n,3);++u<p;){var _=e[u];n(_,u,e)&&(o.push(_),f.push(u))}return xf(e,f),o}function Ba(e){return e==null?e:zp.call(e)}function Y_(e,n,o){var u=e==null?0:e.length;return u?(o&&typeof o!="number"&&ct(e,n,o)?(n=0,o=u):(n=n==null?0:be(n),o=o===i?u:be(o)),Lt(e,n,o)):[]}function X_(e,n){return xi(e,n)}function J_(e,n,o){return fa(e,n,de(o,2))}function e1(e,n){var o=e==null?0:e.length;if(o){var u=xi(e,n);if(u<o&&jt(e[u],n))return u}return-1}function t1(e,n){return xi(e,n,!0)}function n1(e,n,o){return fa(e,n,de(o,2),!0)}function r1(e,n){var o=e==null?0:e.length;if(o){var u=xi(e,n,!0)-1;if(jt(e[u],n))return u}return-1}function o1(e){return e&&e.length?Ef(e):[]}function i1(e,n){return e&&e.length?Ef(e,de(n,2)):[]}function l1(e){var n=e==null?0:e.length;return n?Lt(e,1,n):[]}function a1(e,n,o){return e&&e.length?(n=o||n===i?1:be(n),Lt(e,0,n<0?0:n)):[]}function u1(e,n,o){var u=e==null?0:e.length;return u?(n=o||n===i?1:be(n),n=u-n,Lt(e,n<0?0:n,u)):[]}function s1(e,n){return e&&e.length?Ai(e,de(n,3),!1,!0):[]}function c1(e,n){return e&&e.length?Ai(e,de(n,3)):[]}var f1=Se(function(e){return Tn(nt(e,1,ze,!0))}),d1=Se(function(e){var n=Pt(e);return ze(n)&&(n=i),Tn(nt(e,1,ze,!0),de(n,2))}),h1=Se(function(e){var n=Pt(e);return n=typeof n=="function"?n:i,Tn(nt(e,1,ze,!0),i,n)});function m1(e){return e&&e.length?Tn(e):[]}function g1(e,n){return e&&e.length?Tn(e,de(n,2)):[]}function p1(e,n){return n=typeof n=="function"?n:i,e&&e.length?Tn(e,i,n):[]}function Oa(e){if(!(e&&e.length))return[];var n=0;return e=An(e,function(o){if(ze(o))return n=Ye(o.length,n),!0}),Gl(n,function(o){return Ne(e,zl(o))})}function dd(e,n){if(!(e&&e.length))return[];var o=Oa(e);return n==null?o:Ne(o,function(u){return St(n,i,u)})}var v1=Se(function(e,n){return ze(e)?oo(e,n):[]}),_1=Se(function(e){return ha(An(e,ze))}),y1=Se(function(e){var n=Pt(e);return ze(n)&&(n=i),ha(An(e,ze),de(n,2))}),b1=Se(function(e){var n=Pt(e);return n=typeof n=="function"?n:i,ha(An(e,ze),i,n)}),w1=Se(Oa);function S1(e,n){return Tf(e||[],n||[],ro)}function C1(e,n){return Tf(e||[],n||[],ao)}var x1=Se(function(e){var n=e.length,o=n>1?e[n-1]:i;return o=typeof o=="function"?(e.pop(),o):i,dd(e,o)});function hd(e){var n=g(e);return n.__chain__=!0,n}function A1(e,n){return n(e),e}function Mi(e,n){return n(e)}var E1=cn(function(e){var n=e.length,o=n?e[0]:0,u=this.__wrapped__,f=function(p){return ea(p,e)};return n>1||this.__actions__.length||!(u instanceof xe)||!fn(o)?this.thru(f):(u=u.slice(o,+o+(n?1:0)),u.__actions__.push({func:Mi,args:[f],thisArg:i}),new Ft(u,this.__chain__).thru(function(p){return n&&!p.length&&p.push(i),p}))});function k1(){return hd(this)}function B1(){return new Ft(this.value(),this.__chain__)}function O1(){this.__values__===i&&(this.__values__=kd(this.value()));var e=this.__index__>=this.__values__.length,n=e?i:this.__values__[this.__index__++];return{done:e,value:n}}function T1(){return this}function R1(e){for(var n,o=this;o instanceof yi;){var u=ld(o);u.__index__=0,u.__values__=i,n?f.__wrapped__=u:n=u;var f=u;o=o.__wrapped__}return f.__wrapped__=e,n}function I1(){var e=this.__wrapped__;if(e instanceof xe){var n=e;return this.__actions__.length&&(n=new xe(this)),n=n.reverse(),n.__actions__.push({func:Mi,args:[Ba],thisArg:i}),new Ft(n,this.__chain__)}return this.thru(Ba)}function F1(){return Of(this.__wrapped__,this.__actions__)}var M1=Ei(function(e,n,o){Re.call(e,o)?++e[o]:un(e,o,1)});function L1(e,n,o){var u=ye(e)?Dc:Av;return o&&ct(e,n,o)&&(n=i),u(e,de(n,3))}function P1(e,n){var o=ye(e)?An:df;return o(e,de(n,3))}var V1=$f(ad),N1=$f(ud);function q1(e,n){return nt(Li(e,n),1)}function $1(e,n){return nt(Li(e,n),H)}function D1(e,n,o){return o=o===i?1:be(o),nt(Li(e,n),o)}function md(e,n){var o=ye(e)?Rt:On;return o(e,de(n,3))}function gd(e,n){var o=ye(e)?lp:ff;return o(e,de(n,3))}var U1=Ei(function(e,n,o){Re.call(e,o)?e[o].push(n):un(e,o,[n])});function z1(e,n,o,u){e=gt(e)?e:Fr(e),o=o&&!u?be(o):0;var f=e.length;return o<0&&(o=Ye(f+o,0)),$i(e)?o<=f&&e.indexOf(n,o)>-1:!!f&&wr(e,n,o)>-1}var H1=Se(function(e,n,o){var u=-1,f=typeof n=="function",p=gt(e)?I(e.length):[];return On(e,function(_){p[++u]=f?St(n,_,o):io(_,n,o)}),p}),W1=Ei(function(e,n,o){un(e,o,n)});function Li(e,n){var o=ye(e)?Ne:_f;return o(e,de(n,3))}function G1(e,n,o,u){return e==null?[]:(ye(n)||(n=n==null?[]:[n]),o=u?i:o,ye(o)||(o=o==null?[]:[o]),Sf(e,n,o))}var j1=Ei(function(e,n,o){e[o?0:1].push(n)},function(){return[[],[]]});function K1(e,n,o){var u=ye(e)?Dl:Wc,f=arguments.length<3;return u(e,de(n,4),o,f,On)}function Q1(e,n,o){var u=ye(e)?ap:Wc,f=arguments.length<3;return u(e,de(n,4),o,f,ff)}function Z1(e,n){var o=ye(e)?An:df;return o(e,Ni(de(n,3)))}function Y1(e){var n=ye(e)?af:zv;return n(e)}function X1(e,n,o){(o?ct(e,n,o):n===i)?n=1:n=be(n);var u=ye(e)?bv:Hv;return u(e,n)}function J1(e){var n=ye(e)?wv:Gv;return n(e)}function ey(e){if(e==null)return 0;if(gt(e))return $i(e)?Cr(e):e.length;var n=it(e);return n==rt||n==De?e.size:la(e).length}function ty(e,n,o){var u=ye(e)?Ul:jv;return o&&ct(e,n,o)&&(n=i),u(e,de(n,3))}var ny=Se(function(e,n){if(e==null)return[];var o=n.length;return o>1&&ct(e,n[0],n[1])?n=[]:o>2&&ct(n[0],n[1],n[2])&&(n=[n[0]]),Sf(e,nt(n,1),[])}),Pi=Pp||function(){return tt.Date.now()};function ry(e,n){if(typeof n!="function")throw new It(d);return e=be(e),function(){if(--e<1)return n.apply(this,arguments)}}function pd(e,n,o){return n=o?i:n,n=e&&n==null?e.length:n,sn(e,j,i,i,i,i,n)}function vd(e,n){var o;if(typeof n!="function")throw new It(d);return e=be(e),function(){return--e>0&&(o=n.apply(this,arguments)),e<=1&&(n=i),o}}var Ta=Se(function(e,n,o){var u=k;if(o.length){var f=kn(o,Rr(Ta));u|=W}return sn(e,u,n,o,f)}),_d=Se(function(e,n,o){var u=k|q;if(o.length){var f=kn(o,Rr(_d));u|=W}return sn(n,u,e,o,f)});function yd(e,n,o){n=o?i:n;var u=sn(e,L,i,i,i,i,i,n);return u.placeholder=yd.placeholder,u}function bd(e,n,o){n=o?i:n;var u=sn(e,K,i,i,i,i,i,n);return u.placeholder=bd.placeholder,u}function wd(e,n,o){var u,f,p,_,C,B,P=0,V=!1,z=!1,ee=!0;if(typeof e!="function")throw new It(d);n=Vt(n)||0,$e(o)&&(V=!!o.leading,z="maxWait"in o,p=z?Ye(Vt(o.maxWait)||0,n):p,ee="trailing"in o?!!o.trailing:ee);function ue(He){var Kt=u,mn=f;return u=f=i,P=He,_=e.apply(mn,Kt),_}function he(He){return P=He,C=co(Ce,n),V?ue(He):_}function we(He){var Kt=He-B,mn=He-P,$d=n-Kt;return z?ot($d,p-mn):$d}function me(He){var Kt=He-B,mn=He-P;return B===i||Kt>=n||Kt<0||z&&mn>=p}function Ce(){var He=Pi();if(me(He))return Ae(He);C=co(Ce,we(He))}function Ae(He){return C=i,ee&&u?ue(He):(u=f=i,_)}function Et(){C!==i&&Rf(C),P=0,u=B=f=C=i}function ft(){return C===i?_:Ae(Pi())}function kt(){var He=Pi(),Kt=me(He);if(u=arguments,f=this,B=He,Kt){if(C===i)return he(B);if(z)return Rf(C),C=co(Ce,n),ue(B)}return C===i&&(C=co(Ce,n)),_}return kt.cancel=Et,kt.flush=ft,kt}var oy=Se(function(e,n){return cf(e,1,n)}),iy=Se(function(e,n,o){return cf(e,Vt(n)||0,o)});function ly(e){return sn(e,N)}function Vi(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new It(d);var o=function(){var u=arguments,f=n?n.apply(this,u):u[0],p=o.cache;if(p.has(f))return p.get(f);var _=e.apply(this,u);return o.cache=p.set(f,_)||p,_};return o.cache=new(Vi.Cache||an),o}Vi.Cache=an;function Ni(e){if(typeof e!="function")throw new It(d);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 ay(e){return vd(2,e)}var uy=Kv(function(e,n){n=n.length==1&&ye(n[0])?Ne(n[0],Ct(de())):Ne(nt(n,1),Ct(de()));var o=n.length;return Se(function(u){for(var f=-1,p=ot(u.length,o);++f<p;)u[f]=n[f].call(this,u[f]);return St(e,this,u)})}),Ra=Se(function(e,n){var o=kn(n,Rr(Ra));return sn(e,W,i,n,o)}),Sd=Se(function(e,n){var o=kn(n,Rr(Sd));return sn(e,Q,i,n,o)}),sy=cn(function(e,n){return sn(e,ie,i,i,i,n)});function cy(e,n){if(typeof e!="function")throw new It(d);return n=n===i?n:be(n),Se(e,n)}function fy(e,n){if(typeof e!="function")throw new It(d);return n=n==null?0:Ye(be(n),0),Se(function(o){var u=o[n],f=In(o,0,n);return u&&En(f,u),St(e,this,f)})}function dy(e,n,o){var u=!0,f=!0;if(typeof e!="function")throw new It(d);return $e(o)&&(u="leading"in o?!!o.leading:u,f="trailing"in o?!!o.trailing:f),wd(e,n,{leading:u,maxWait:n,trailing:f})}function hy(e){return pd(e,1)}function my(e,n){return Ra(ga(n),e)}function gy(){if(!arguments.length)return[];var e=arguments[0];return ye(e)?e:[e]}function py(e){return Mt(e,A)}function vy(e,n){return n=typeof n=="function"?n:i,Mt(e,A,n)}function _y(e){return Mt(e,b|A)}function yy(e,n){return n=typeof n=="function"?n:i,Mt(e,b|A,n)}function by(e,n){return n==null||sf(e,n,Je(n))}function jt(e,n){return e===n||e!==e&&n!==n}var wy=Ti(ra),Sy=Ti(function(e,n){return e>=n}),rr=gf(function(){return arguments}())?gf:function(e){return Ue(e)&&Re.call(e,"callee")&&!ef.call(e,"callee")},ye=I.isArray,Cy=Lc?Ct(Lc):Rv;function gt(e){return e!=null&&qi(e.length)&&!dn(e)}function ze(e){return Ue(e)&>(e)}function xy(e){return e===!0||e===!1||Ue(e)&&st(e)==Ee}var Fn=Np||Ua,Ay=Pc?Ct(Pc):Iv;function Ey(e){return Ue(e)&&e.nodeType===1&&!fo(e)}function ky(e){if(e==null)return!0;if(gt(e)&&(ye(e)||typeof e=="string"||typeof e.splice=="function"||Fn(e)||Ir(e)||rr(e)))return!e.length;var n=it(e);if(n==rt||n==De)return!e.size;if(so(e))return!la(e).length;for(var o in e)if(Re.call(e,o))return!1;return!0}function By(e,n){return lo(e,n)}function Oy(e,n,o){o=typeof o=="function"?o:i;var u=o?o(e,n):i;return u===i?lo(e,n,i,o):!!u}function Ia(e){if(!Ue(e))return!1;var n=st(e);return n==ut||n==qe||typeof e.message=="string"&&typeof e.name=="string"&&!fo(e)}function Ty(e){return typeof e=="number"&&nf(e)}function dn(e){if(!$e(e))return!1;var n=st(e);return n==Dt||n==bt||n==re||n==Wr}function Cd(e){return typeof e=="number"&&e==be(e)}function qi(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=se}function $e(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}function Ue(e){return e!=null&&typeof e=="object"}var xd=Vc?Ct(Vc):Mv;function Ry(e,n){return e===n||ia(e,n,Sa(n))}function Iy(e,n,o){return o=typeof o=="function"?o:i,ia(e,n,Sa(n),o)}function Fy(e){return Ad(e)&&e!=+e}function My(e){if(v_(e))throw new _e(c);return pf(e)}function Ly(e){return e===null}function Py(e){return e==null}function Ad(e){return typeof e=="number"||Ue(e)&&st(e)==wt}function fo(e){if(!Ue(e)||st(e)!=ht)return!1;var n=di(e);if(n===null)return!0;var o=Re.call(n,"constructor")&&n.constructor;return typeof o=="function"&&o instanceof o&&ui.call(o)==Ip}var Fa=Nc?Ct(Nc):Lv;function Vy(e){return Cd(e)&&e>=-se&&e<=se}var Ed=qc?Ct(qc):Pv;function $i(e){return typeof e=="string"||!ye(e)&&Ue(e)&&st(e)==Qe}function At(e){return typeof e=="symbol"||Ue(e)&&st(e)==zt}var Ir=$c?Ct($c):Vv;function Ny(e){return e===i}function qy(e){return Ue(e)&&it(e)==Hn}function $y(e){return Ue(e)&&st(e)==Wo}var Dy=Ti(aa),Uy=Ti(function(e,n){return e<=n});function kd(e){if(!e)return[];if(gt(e))return $i(e)?Wt(e):mt(e);if(Xr&&e[Xr])return bp(e[Xr]());var n=it(e),o=n==rt?Kl:n==De?ii:Fr;return o(e)}function hn(e){if(!e)return e===0?e:0;if(e=Vt(e),e===H||e===-H){var n=e<0?-1:1;return n*Be}return e===e?e:0}function be(e){var n=hn(e),o=n%1;return n===n?o?n-o:n:0}function Bd(e){return e?Jn(be(e),0,R):0}function Vt(e){if(typeof e=="number")return e;if(At(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=Gc(e);var o=Il.test(e);return o||Jo.test(e)?rp(e.slice(2),o?2:8):Zr.test(e)?ge:+e}function Od(e){return Xt(e,pt(e))}function zy(e){return e?Jn(be(e),-se,se):e===0?e:0}function Oe(e){return e==null?"":xt(e)}var Hy=Or(function(e,n){if(so(n)||gt(n)){Xt(n,Je(n),e);return}for(var o in n)Re.call(n,o)&&ro(e,o,n[o])}),Td=Or(function(e,n){Xt(n,pt(n),e)}),Di=Or(function(e,n,o,u){Xt(n,pt(n),e,u)}),Wy=Or(function(e,n,o,u){Xt(n,Je(n),e,u)}),Gy=cn(ea);function jy(e,n){var o=Br(e);return n==null?o:uf(o,n)}var Ky=Se(function(e,n){e=Fe(e);var o=-1,u=n.length,f=u>2?n[2]:i;for(f&&ct(n[0],n[1],f)&&(u=1);++o<u;)for(var p=n[o],_=pt(p),C=-1,B=_.length;++C<B;){var P=_[C],V=e[P];(V===i||jt(V,Ar[P])&&!Re.call(e,P))&&(e[P]=p[P])}return e}),Qy=Se(function(e){return e.push(i,jf),St(Rd,i,e)});function Zy(e,n){return Uc(e,de(n,3),Yt)}function Yy(e,n){return Uc(e,de(n,3),na)}function Xy(e,n){return e==null?e:ta(e,de(n,3),pt)}function Jy(e,n){return e==null?e:hf(e,de(n,3),pt)}function eb(e,n){return e&&Yt(e,de(n,3))}function tb(e,n){return e&&na(e,de(n,3))}function nb(e){return e==null?[]:Si(e,Je(e))}function rb(e){return e==null?[]:Si(e,pt(e))}function Ma(e,n,o){var u=e==null?i:er(e,n);return u===i?o:u}function ob(e,n){return e!=null&&Zf(e,n,kv)}function La(e,n){return e!=null&&Zf(e,n,Bv)}var ib=Uf(function(e,n,o){n!=null&&typeof n.toString!="function"&&(n=si.call(n)),e[n]=o},Va(vt)),lb=Uf(function(e,n,o){n!=null&&typeof n.toString!="function"&&(n=si.call(n)),Re.call(e,n)?e[n].push(o):e[n]=[o]},de),ab=Se(io);function Je(e){return gt(e)?lf(e):la(e)}function pt(e){return gt(e)?lf(e,!0):Nv(e)}function ub(e,n){var o={};return n=de(n,3),Yt(e,function(u,f,p){un(o,n(u,f,p),u)}),o}function sb(e,n){var o={};return n=de(n,3),Yt(e,function(u,f,p){un(o,f,n(u,f,p))}),o}var cb=Or(function(e,n,o){Ci(e,n,o)}),Rd=Or(function(e,n,o,u){Ci(e,n,o,u)}),fb=cn(function(e,n){var o={};if(e==null)return o;var u=!1;n=Ne(n,function(p){return p=Rn(p,e),u||(u=p.length>1),p}),Xt(e,ba(e),o),u&&(o=Mt(o,b|x|A,i_));for(var f=n.length;f--;)da(o,n[f]);return o});function db(e,n){return Id(e,Ni(de(n)))}var hb=cn(function(e,n){return e==null?{}:$v(e,n)});function Id(e,n){if(e==null)return{};var o=Ne(ba(e),function(u){return[u]});return n=de(n),Cf(e,o,function(u,f){return n(u,f[0])})}function mb(e,n,o){n=Rn(n,e);var u=-1,f=n.length;for(f||(f=1,e=i);++u<f;){var p=e==null?i:e[Jt(n[u])];p===i&&(u=f,p=o),e=dn(p)?p.call(e):p}return e}function gb(e,n,o){return e==null?e:ao(e,n,o)}function pb(e,n,o,u){return u=typeof u=="function"?u:i,e==null?e:ao(e,n,o,u)}var Fd=Wf(Je),Md=Wf(pt);function vb(e,n,o){var u=ye(e),f=u||Fn(e)||Ir(e);if(n=de(n,4),o==null){var p=e&&e.constructor;f?o=u?new p:[]:$e(e)?o=dn(p)?Br(di(e)):{}:o={}}return(f?Rt:Yt)(e,function(_,C,B){return n(o,_,C,B)}),o}function _b(e,n){return e==null?!0:da(e,n)}function yb(e,n,o){return e==null?e:Bf(e,n,ga(o))}function bb(e,n,o,u){return u=typeof u=="function"?u:i,e==null?e:Bf(e,n,ga(o),u)}function Fr(e){return e==null?[]:jl(e,Je(e))}function wb(e){return e==null?[]:jl(e,pt(e))}function Sb(e,n,o){return o===i&&(o=n,n=i),o!==i&&(o=Vt(o),o=o===o?o:0),n!==i&&(n=Vt(n),n=n===n?n:0),Jn(Vt(e),n,o)}function Cb(e,n,o){return n=hn(n),o===i?(o=n,n=0):o=hn(o),e=Vt(e),Ov(e,n,o)}function xb(e,n,o){if(o&&typeof o!="boolean"&&ct(e,n,o)&&(n=o=i),o===i&&(typeof n=="boolean"?(o=n,n=i):typeof e=="boolean"&&(o=e,e=i)),e===i&&n===i?(e=0,n=1):(e=hn(e),n===i?(n=e,e=0):n=hn(n)),e>n){var u=e;e=n,n=u}if(o||e%1||n%1){var f=rf();return ot(e+f*(n-e+np("1e-"+((f+"").length-1))),n)}return sa(e,n)}var Ab=Tr(function(e,n,o){return n=n.toLowerCase(),e+(o?Ld(n):n)});function Ld(e){return Pa(Oe(e).toLowerCase())}function Pd(e){return e=Oe(e),e&&e.replace(ti,gp).replace(Gg,"")}function Eb(e,n,o){e=Oe(e),n=xt(n);var u=e.length;o=o===i?u:Jn(be(o),0,u);var f=o;return o-=n.length,o>=0&&e.slice(o,f)==n}function kb(e){return e=Oe(e),e&&Zo.test(e)?e.replace(Qo,pp):e}function Bb(e){return e=Oe(e),e&&El.test(e)?e.replace(Kr,"\\$&"):e}var Ob=Tr(function(e,n,o){return e+(o?"-":"")+n.toLowerCase()}),Tb=Tr(function(e,n,o){return e+(o?" ":"")+n.toLowerCase()}),Rb=qf("toLowerCase");function Ib(e,n,o){e=Oe(e),n=be(n);var u=n?Cr(e):0;if(!n||u>=n)return e;var f=(n-u)/2;return Oi(pi(f),o)+e+Oi(gi(f),o)}function Fb(e,n,o){e=Oe(e),n=be(n);var u=n?Cr(e):0;return n&&u<n?e+Oi(n-u,o):e}function Mb(e,n,o){e=Oe(e),n=be(n);var u=n?Cr(e):0;return n&&u<n?Oi(n-u,o)+e:e}function Lb(e,n,o){return o||n==null?n=0:n&&(n=+n),Up(Oe(e).replace(Qr,""),n||0)}function Pb(e,n,o){return(o?ct(e,n,o):n===i)?n=1:n=be(n),ca(Oe(e),n)}function Vb(){var e=arguments,n=Oe(e[0]);return e.length<3?n:n.replace(e[1],e[2])}var Nb=Tr(function(e,n,o){return e+(o?"_":"")+n.toLowerCase()});function qb(e,n,o){return o&&typeof o!="number"&&ct(e,n,o)&&(n=o=i),o=o===i?R:o>>>0,o?(e=Oe(e),e&&(typeof n=="string"||n!=null&&!Fa(n))&&(n=xt(n),!n&&Sr(e))?In(Wt(e),0,o):e.split(n,o)):[]}var $b=Tr(function(e,n,o){return e+(o?" ":"")+Pa(n)});function Db(e,n,o){return e=Oe(e),o=o==null?0:Jn(be(o),0,e.length),n=xt(n),e.slice(o,o+n.length)==n}function Ub(e,n,o){var u=g.templateSettings;o&&ct(e,n,o)&&(n=i),e=Oe(e),n=Di({},n,u,Gf);var f=Di({},n.imports,u.imports,Gf),p=Je(f),_=jl(f,p),C,B,P=0,V=n.interpolate||S,z="__p += '",ee=Ql((n.escape||S).source+"|"+V.source+"|"+(V===jn?rn:S).source+"|"+(n.evaluate||S).source+"|$","g"),ue="//# sourceURL="+(Re.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Yg+"]")+`
|
|
11
|
-
`;e.replace(ee,function(me,Ce,Ae,Et,ft,kt){return Ae||(Ae=Et),z+=e.slice(P,kt).replace(ne,
|
|
10
|
+
`)}function b_(e){return ye(e)||rr(e)||!!(nf&&e&&e[nf])}function dn(e,n){var o=typeof e;return n=n??se,!!n&&(o=="number"||o!="symbol"&&ei.test(e))&&e>-1&&e%1==0&&e<n}function ct(e,n,o){if(!$e(o))return!1;var u=typeof n;return(u=="number"?gt(o)&&dn(n,o.length):u=="string"&&n in o)?Kt(o[n],e):!1}function xa(e,n){if(ye(e))return!1;var o=typeof e;return o=="number"||o=="symbol"||o=="boolean"||e==null||At(e)?!0:Sn.test(e)||!Kn.test(e)||n!=null&&e in Fe(n)}function w_(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}function Aa(e){var n=Ri(e),o=g[n];if(typeof o!="function"||!(n in xe.prototype))return!1;if(e===o)return!0;var u=wa(o);return!!u&&e===u[0]}function S_(e){return!!Xc&&Xc in e}var C_=ai?hn:Ua;function uo(e){var n=e&&e.constructor,o=typeof n=="function"&&n.prototype||Ar;return e===o}function Jf(e){return e===e&&!$e(e)}function ed(e,n){return function(o){return o==null?!1:o[e]===n&&(n!==i||e in Fe(o))}}function x_(e){var n=Vi(e,function(u){return o.size===b&&o.clear(),u}),o=n.cache;return n}function A_(e,n){var o=e[1],u=n[1],f=o|u,p=f<(k|q|j),_=u==j&&o==L||u==j&&o==ie&&e[7].length<=n[8]||u==(j|ie)&&n[7].length<=n[8]&&o==L;if(!(p||_))return e;u&k&&(e[2]=n[2],f|=o&k?0:D);var C=n[3];if(C){var B=e[3];e[3]=B?Pf(B,C,n[4]):C,e[4]=B?kn(e[3],m):n[4]}return C=n[5],C&&(B=e[5],e[5]=B?Vf(B,C,n[6]):C,e[6]=B?kn(e[5],m):n[6]),C=n[7],C&&(e[7]=C),u&j&&(e[8]=e[8]==null?n[8]:ot(e[8],n[8])),e[9]==null&&(e[9]=n[9]),e[0]=n[0],e[1]=f,e}function E_(e){var n=[];if(e!=null)for(var o in Fe(e))n.push(o);return n}function k_(e){return si.call(e)}function td(e,n,o){return n=Ye(n===i?e.length-1:n,0),function(){for(var u=arguments,f=-1,p=Ye(u.length-n,0),_=I(p);++f<p;)_[f]=u[n+f];f=-1;for(var C=I(n+1);++f<n;)C[f]=u[f];return C[n]=o(_),St(e,this,C)}}function nd(e,n){return n.length<2?e:er(e,Pt(n,0,-1))}function B_(e,n){for(var o=e.length,u=ot(n.length,o),f=mt(e);u--;){var p=n[u];e[u]=dn(p,o)?f[p]:i}return e}function Ea(e,n){if(!(n==="constructor"&&typeof e[n]=="function")&&n!="__proto__")return e[n]}var rd=id(Ef),so=zp||function(e,n){return tt.setTimeout(e,n)},ka=id(Yv);function od(e,n,o){var u=n+"";return ka(e,y_(u,O_(p_(u),o)))}function id(e){var n=0,o=0;return function(){var u=jp(),f=te-(u-o);if(o=u,f>0){if(++n>=O)return arguments[0]}else n=0;return e.apply(i,arguments)}}function Fi(e,n){var o=-1,u=e.length,f=u-1;for(n=n===i?u:n;++o<n;){var p=sa(o,f),_=e[p];e[p]=e[o],e[o]=_}return e.length=n,e}var ld=x_(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(Al,function(o,u,f,p){n.push(f?p.replace(xn,"$1"):u||o)}),n});function en(e){if(typeof e=="string"||At(e))return e;var n=e+"";return n=="0"&&1/e==-H?"-0":n}function nr(e){if(e!=null){try{return ui.call(e)}catch{}try{return e+""}catch{}}return""}function O_(e,n){return It(pe,function(o){var u="_."+o[0];n&o[1]&&!ri(e,u)&&e.push(u)}),e.sort()}function ad(e){if(e instanceof xe)return e.clone();var n=new Mt(e.__wrapped__,e.__chain__);return n.__actions__=mt(e.__actions__),n.__index__=e.__index__,n.__values__=e.__values__,n}function T_(e,n,o){(o?ct(e,n,o):n===i)?n=1:n=Ye(be(n),0);var u=e==null?0:e.length;if(!u||n<1)return[];for(var f=0,p=0,_=I(gi(u/n));f<u;)_[p++]=Pt(e,f,f+=n);return _}function R_(e){for(var n=-1,o=e==null?0:e.length,u=0,f=[];++n<o;){var p=e[n];p&&(f[u++]=p)}return f}function I_(){var e=arguments.length;if(!e)return[];for(var n=I(e-1),o=arguments[0],u=e;u--;)n[u-1]=arguments[u];return En(ye(o)?mt(o):[o],nt(n,1))}var F_=Se(function(e,n){return ze(e)?ro(e,nt(n,1,ze,!0)):[]}),M_=Se(function(e,n){var o=Vt(n);return ze(o)&&(o=i),ze(e)?ro(e,nt(n,1,ze,!0),de(o,2)):[]}),L_=Se(function(e,n){var o=Vt(n);return ze(o)&&(o=i),ze(e)?ro(e,nt(n,1,ze,!0),i,o):[]});function P_(e,n,o){var u=e==null?0:e.length;return u?(n=o||n===i?1:be(n),Pt(e,n<0?0:n,u)):[]}function V_(e,n,o){var u=e==null?0:e.length;return u?(n=o||n===i?1:be(n),n=u-n,Pt(e,0,n<0?0:n)):[]}function N_(e,n){return e&&e.length?Ai(e,de(n,3),!0,!0):[]}function q_(e,n){return e&&e.length?Ai(e,de(n,3),!0):[]}function $_(e,n,o,u){var f=e==null?0:e.length;return f?(o&&typeof o!="number"&&ct(e,n,o)&&(o=0,u=f),Iv(e,n,o,u)):[]}function ud(e,n,o){var u=e==null?0:e.length;if(!u)return-1;var f=o==null?0:be(o);return f<0&&(f=Ye(u+f,0)),oi(e,de(n,3),f)}function sd(e,n,o){var u=e==null?0:e.length;if(!u)return-1;var f=u-1;return o!==i&&(f=be(o),f=o<0?Ye(u+f,0):ot(f,u-1)),oi(e,de(n,3),f,!0)}function cd(e){var n=e==null?0:e.length;return n?nt(e,1):[]}function D_(e){var n=e==null?0:e.length;return n?nt(e,H):[]}function U_(e,n){var o=e==null?0:e.length;return o?(n=n===i?1:be(n),nt(e,n)):[]}function z_(e){for(var n=-1,o=e==null?0:e.length,u={};++n<o;){var f=e[n];u[f[0]]=f[1]}return u}function fd(e){return e&&e.length?e[0]:i}function H_(e,n,o){var u=e==null?0:e.length;if(!u)return-1;var f=o==null?0:be(o);return f<0&&(f=Ye(u+f,0)),wr(e,n,f)}function W_(e){var n=e==null?0:e.length;return n?Pt(e,0,-1):[]}var G_=Se(function(e){var n=Ne(e,ma);return n.length&&n[0]===e[0]?oa(n):[]}),j_=Se(function(e){var n=Vt(e),o=Ne(e,ma);return n===Vt(o)?n=i:o.pop(),o.length&&o[0]===e[0]?oa(o,de(n,2)):[]}),K_=Se(function(e){var n=Vt(e),o=Ne(e,ma);return n=typeof n=="function"?n:i,n&&o.pop(),o.length&&o[0]===e[0]?oa(o,i,n):[]});function Q_(e,n){return e==null?"":Wp.call(e,n)}function Vt(e){var n=e==null?0:e.length;return n?e[n-1]:i}function Z_(e,n,o){var u=e==null?0:e.length;if(!u)return-1;var f=u;return o!==i&&(f=be(o),f=f<0?Ye(u+f,0):ot(f,u-1)),n===n?Op(e,n,f):oi(e,Hc,f,!0)}function Y_(e,n){return e&&e.length?Sf(e,be(n)):i}var X_=Se(dd);function dd(e,n){return e&&e.length&&n&&n.length?ua(e,n):e}function J_(e,n,o){return e&&e.length&&n&&n.length?ua(e,n,de(o,2)):e}function e1(e,n,o){return e&&e.length&&n&&n.length?ua(e,n,i,o):e}var t1=fn(function(e,n){var o=e==null?0:e.length,u=ea(e,n);return Af(e,Ne(n,function(f){return dn(f,o)?+f:f}).sort(Lf)),u});function n1(e,n){var o=[];if(!(e&&e.length))return o;var u=-1,f=[],p=e.length;for(n=de(n,3);++u<p;){var _=e[u];n(_,u,e)&&(o.push(_),f.push(u))}return Af(e,f),o}function Ba(e){return e==null?e:Qp.call(e)}function r1(e,n,o){var u=e==null?0:e.length;return u?(o&&typeof o!="number"&&ct(e,n,o)?(n=0,o=u):(n=n==null?0:be(n),o=o===i?u:be(o)),Pt(e,n,o)):[]}function o1(e,n){return xi(e,n)}function i1(e,n,o){return fa(e,n,de(o,2))}function l1(e,n){var o=e==null?0:e.length;if(o){var u=xi(e,n);if(u<o&&Kt(e[u],n))return u}return-1}function a1(e,n){return xi(e,n,!0)}function u1(e,n,o){return fa(e,n,de(o,2),!0)}function s1(e,n){var o=e==null?0:e.length;if(o){var u=xi(e,n,!0)-1;if(Kt(e[u],n))return u}return-1}function c1(e){return e&&e.length?kf(e):[]}function f1(e,n){return e&&e.length?kf(e,de(n,2)):[]}function d1(e){var n=e==null?0:e.length;return n?Pt(e,1,n):[]}function h1(e,n,o){return e&&e.length?(n=o||n===i?1:be(n),Pt(e,0,n<0?0:n)):[]}function m1(e,n,o){var u=e==null?0:e.length;return u?(n=o||n===i?1:be(n),n=u-n,Pt(e,n<0?0:n,u)):[]}function g1(e,n){return e&&e.length?Ai(e,de(n,3),!1,!0):[]}function p1(e,n){return e&&e.length?Ai(e,de(n,3)):[]}var v1=Se(function(e){return Tn(nt(e,1,ze,!0))}),_1=Se(function(e){var n=Vt(e);return ze(n)&&(n=i),Tn(nt(e,1,ze,!0),de(n,2))}),y1=Se(function(e){var n=Vt(e);return n=typeof n=="function"?n:i,Tn(nt(e,1,ze,!0),i,n)});function b1(e){return e&&e.length?Tn(e):[]}function w1(e,n){return e&&e.length?Tn(e,de(n,2)):[]}function S1(e,n){return n=typeof n=="function"?n:i,e&&e.length?Tn(e,i,n):[]}function Oa(e){if(!(e&&e.length))return[];var n=0;return e=An(e,function(o){if(ze(o))return n=Ye(o.length,n),!0}),Gl(n,function(o){return Ne(e,zl(o))})}function hd(e,n){if(!(e&&e.length))return[];var o=Oa(e);return n==null?o:Ne(o,function(u){return St(n,i,u)})}var C1=Se(function(e,n){return ze(e)?ro(e,n):[]}),x1=Se(function(e){return ha(An(e,ze))}),A1=Se(function(e){var n=Vt(e);return ze(n)&&(n=i),ha(An(e,ze),de(n,2))}),E1=Se(function(e){var n=Vt(e);return n=typeof n=="function"?n:i,ha(An(e,ze),i,n)}),k1=Se(Oa);function B1(e,n){return Rf(e||[],n||[],no)}function O1(e,n){return Rf(e||[],n||[],lo)}var T1=Se(function(e){var n=e.length,o=n>1?e[n-1]:i;return o=typeof o=="function"?(e.pop(),o):i,hd(e,o)});function md(e){var n=g(e);return n.__chain__=!0,n}function R1(e,n){return n(e),e}function Mi(e,n){return n(e)}var I1=fn(function(e){var n=e.length,o=n?e[0]:0,u=this.__wrapped__,f=function(p){return ea(p,e)};return n>1||this.__actions__.length||!(u instanceof xe)||!dn(o)?this.thru(f):(u=u.slice(o,+o+(n?1:0)),u.__actions__.push({func:Mi,args:[f],thisArg:i}),new Mt(u,this.__chain__).thru(function(p){return n&&!p.length&&p.push(i),p}))});function F1(){return md(this)}function M1(){return new Mt(this.value(),this.__chain__)}function L1(){this.__values__===i&&(this.__values__=Bd(this.value()));var e=this.__index__>=this.__values__.length,n=e?i:this.__values__[this.__index__++];return{done:e,value:n}}function P1(){return this}function V1(e){for(var n,o=this;o instanceof yi;){var u=ad(o);u.__index__=0,u.__values__=i,n?f.__wrapped__=u:n=u;var f=u;o=o.__wrapped__}return f.__wrapped__=e,n}function N1(){var e=this.__wrapped__;if(e instanceof xe){var n=e;return this.__actions__.length&&(n=new xe(this)),n=n.reverse(),n.__actions__.push({func:Mi,args:[Ba],thisArg:i}),new Mt(n,this.__chain__)}return this.thru(Ba)}function q1(){return Tf(this.__wrapped__,this.__actions__)}var $1=Ei(function(e,n,o){Re.call(e,o)?++e[o]:sn(e,o,1)});function D1(e,n,o){var u=ye(e)?Uc:Rv;return o&&ct(e,n,o)&&(n=i),u(e,de(n,3))}function U1(e,n){var o=ye(e)?An:hf;return o(e,de(n,3))}var z1=Df(ud),H1=Df(sd);function W1(e,n){return nt(Li(e,n),1)}function G1(e,n){return nt(Li(e,n),H)}function j1(e,n,o){return o=o===i?1:be(o),nt(Li(e,n),o)}function gd(e,n){var o=ye(e)?It:On;return o(e,de(n,3))}function pd(e,n){var o=ye(e)?dp:df;return o(e,de(n,3))}var K1=Ei(function(e,n,o){Re.call(e,o)?e[o].push(n):sn(e,o,[n])});function Q1(e,n,o,u){e=gt(e)?e:Fr(e),o=o&&!u?be(o):0;var f=e.length;return o<0&&(o=Ye(f+o,0)),$i(e)?o<=f&&e.indexOf(n,o)>-1:!!f&&wr(e,n,o)>-1}var Z1=Se(function(e,n,o){var u=-1,f=typeof n=="function",p=gt(e)?I(e.length):[];return On(e,function(_){p[++u]=f?St(n,_,o):oo(_,n,o)}),p}),Y1=Ei(function(e,n,o){sn(e,o,n)});function Li(e,n){var o=ye(e)?Ne:yf;return o(e,de(n,3))}function X1(e,n,o,u){return e==null?[]:(ye(n)||(n=n==null?[]:[n]),o=u?i:o,ye(o)||(o=o==null?[]:[o]),Cf(e,n,o))}var J1=Ei(function(e,n,o){e[o?0:1].push(n)},function(){return[[],[]]});function ey(e,n,o){var u=ye(e)?Dl:Gc,f=arguments.length<3;return u(e,de(n,4),o,f,On)}function ty(e,n,o){var u=ye(e)?hp:Gc,f=arguments.length<3;return u(e,de(n,4),o,f,df)}function ny(e,n){var o=ye(e)?An:hf;return o(e,Ni(de(n,3)))}function ry(e){var n=ye(e)?uf:Qv;return n(e)}function oy(e,n,o){(o?ct(e,n,o):n===i)?n=1:n=be(n);var u=ye(e)?Ev:Zv;return u(e,n)}function iy(e){var n=ye(e)?kv:Xv;return n(e)}function ly(e){if(e==null)return 0;if(gt(e))return $i(e)?Cr(e):e.length;var n=it(e);return n==rt||n==De?e.size:la(e).length}function ay(e,n,o){var u=ye(e)?Ul:Jv;return o&&ct(e,n,o)&&(n=i),u(e,de(n,3))}var uy=Se(function(e,n){if(e==null)return[];var o=n.length;return o>1&&ct(e,n[0],n[1])?n=[]:o>2&&ct(n[0],n[1],n[2])&&(n=[n[0]]),Cf(e,nt(n,1),[])}),Pi=Up||function(){return tt.Date.now()};function sy(e,n){if(typeof n!="function")throw new Ft(d);return e=be(e),function(){if(--e<1)return n.apply(this,arguments)}}function vd(e,n,o){return n=o?i:n,n=e&&n==null?e.length:n,cn(e,j,i,i,i,i,n)}function _d(e,n){var o;if(typeof n!="function")throw new Ft(d);return e=be(e),function(){return--e>0&&(o=n.apply(this,arguments)),e<=1&&(n=i),o}}var Ta=Se(function(e,n,o){var u=k;if(o.length){var f=kn(o,Rr(Ta));u|=W}return cn(e,u,n,o,f)}),yd=Se(function(e,n,o){var u=k|q;if(o.length){var f=kn(o,Rr(yd));u|=W}return cn(n,u,e,o,f)});function bd(e,n,o){n=o?i:n;var u=cn(e,L,i,i,i,i,i,n);return u.placeholder=bd.placeholder,u}function wd(e,n,o){n=o?i:n;var u=cn(e,K,i,i,i,i,i,n);return u.placeholder=wd.placeholder,u}function Sd(e,n,o){var u,f,p,_,C,B,P=0,V=!1,z=!1,ee=!0;if(typeof e!="function")throw new Ft(d);n=Nt(n)||0,$e(o)&&(V=!!o.leading,z="maxWait"in o,p=z?Ye(Nt(o.maxWait)||0,n):p,ee="trailing"in o?!!o.trailing:ee);function ue(He){var Qt=u,gn=f;return u=f=i,P=He,_=e.apply(gn,Qt),_}function he(He){return P=He,C=so(Ce,n),V?ue(He):_}function we(He){var Qt=He-B,gn=He-P,Dd=n-Qt;return z?ot(Dd,p-gn):Dd}function me(He){var Qt=He-B,gn=He-P;return B===i||Qt>=n||Qt<0||z&&gn>=p}function Ce(){var He=Pi();if(me(He))return Ae(He);C=so(Ce,we(He))}function Ae(He){return C=i,ee&&u?ue(He):(u=f=i,_)}function Et(){C!==i&&If(C),P=0,u=B=f=C=i}function ft(){return C===i?_:Ae(Pi())}function kt(){var He=Pi(),Qt=me(He);if(u=arguments,f=this,B=He,Qt){if(C===i)return he(B);if(z)return If(C),C=so(Ce,n),ue(B)}return C===i&&(C=so(Ce,n)),_}return kt.cancel=Et,kt.flush=ft,kt}var cy=Se(function(e,n){return ff(e,1,n)}),fy=Se(function(e,n,o){return ff(e,Nt(n)||0,o)});function dy(e){return cn(e,N)}function Vi(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new Ft(d);var o=function(){var u=arguments,f=n?n.apply(this,u):u[0],p=o.cache;if(p.has(f))return p.get(f);var _=e.apply(this,u);return o.cache=p.set(f,_)||p,_};return o.cache=new(Vi.Cache||un),o}Vi.Cache=un;function Ni(e){if(typeof e!="function")throw new Ft(d);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 hy(e){return _d(2,e)}var my=e_(function(e,n){n=n.length==1&&ye(n[0])?Ne(n[0],Ct(de())):Ne(nt(n,1),Ct(de()));var o=n.length;return Se(function(u){for(var f=-1,p=ot(u.length,o);++f<p;)u[f]=n[f].call(this,u[f]);return St(e,this,u)})}),Ra=Se(function(e,n){var o=kn(n,Rr(Ra));return cn(e,W,i,n,o)}),Cd=Se(function(e,n){var o=kn(n,Rr(Cd));return cn(e,Q,i,n,o)}),gy=fn(function(e,n){return cn(e,ie,i,i,i,n)});function py(e,n){if(typeof e!="function")throw new Ft(d);return n=n===i?n:be(n),Se(e,n)}function vy(e,n){if(typeof e!="function")throw new Ft(d);return n=n==null?0:Ye(be(n),0),Se(function(o){var u=o[n],f=In(o,0,n);return u&&En(f,u),St(e,this,f)})}function _y(e,n,o){var u=!0,f=!0;if(typeof e!="function")throw new Ft(d);return $e(o)&&(u="leading"in o?!!o.leading:u,f="trailing"in o?!!o.trailing:f),Sd(e,n,{leading:u,maxWait:n,trailing:f})}function yy(e){return vd(e,1)}function by(e,n){return Ra(ga(n),e)}function wy(){if(!arguments.length)return[];var e=arguments[0];return ye(e)?e:[e]}function Sy(e){return Lt(e,x)}function Cy(e,n){return n=typeof n=="function"?n:i,Lt(e,x,n)}function xy(e){return Lt(e,y|x)}function Ay(e,n){return n=typeof n=="function"?n:i,Lt(e,y|x,n)}function Ey(e,n){return n==null||cf(e,n,Je(n))}function Kt(e,n){return e===n||e!==e&&n!==n}var ky=Ti(ra),By=Ti(function(e,n){return e>=n}),rr=pf(function(){return arguments}())?pf:function(e){return Ue(e)&&Re.call(e,"callee")&&!tf.call(e,"callee")},ye=I.isArray,Oy=Pc?Ct(Pc):Vv;function gt(e){return e!=null&&qi(e.length)&&!hn(e)}function ze(e){return Ue(e)&>(e)}function Ty(e){return e===!0||e===!1||Ue(e)&&st(e)==Ee}var Fn=Hp||Ua,Ry=Vc?Ct(Vc):Nv;function Iy(e){return Ue(e)&&e.nodeType===1&&!co(e)}function Fy(e){if(e==null)return!0;if(gt(e)&&(ye(e)||typeof e=="string"||typeof e.splice=="function"||Fn(e)||Ir(e)||rr(e)))return!e.length;var n=it(e);if(n==rt||n==De)return!e.size;if(uo(e))return!la(e).length;for(var o in e)if(Re.call(e,o))return!1;return!0}function My(e,n){return io(e,n)}function Ly(e,n,o){o=typeof o=="function"?o:i;var u=o?o(e,n):i;return u===i?io(e,n,i,o):!!u}function Ia(e){if(!Ue(e))return!1;var n=st(e);return n==ut||n==qe||typeof e.message=="string"&&typeof e.name=="string"&&!co(e)}function Py(e){return typeof e=="number"&&rf(e)}function hn(e){if(!$e(e))return!1;var n=st(e);return n==Ut||n==bt||n==re||n==Hr}function xd(e){return typeof e=="number"&&e==be(e)}function qi(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=se}function $e(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}function Ue(e){return e!=null&&typeof e=="object"}var Ad=Nc?Ct(Nc):$v;function Vy(e,n){return e===n||ia(e,n,Sa(n))}function Ny(e,n,o){return o=typeof o=="function"?o:i,ia(e,n,Sa(n),o)}function qy(e){return Ed(e)&&e!=+e}function $y(e){if(C_(e))throw new _e(c);return vf(e)}function Dy(e){return e===null}function Uy(e){return e==null}function Ed(e){return typeof e=="number"||Ue(e)&&st(e)==wt}function co(e){if(!Ue(e)||st(e)!=ht)return!1;var n=di(e);if(n===null)return!0;var o=Re.call(n,"constructor")&&n.constructor;return typeof o=="function"&&o instanceof o&&ui.call(o)==Np}var Fa=qc?Ct(qc):Dv;function zy(e){return xd(e)&&e>=-se&&e<=se}var kd=$c?Ct($c):Uv;function $i(e){return typeof e=="string"||!ye(e)&&Ue(e)&&st(e)==Qe}function At(e){return typeof e=="symbol"||Ue(e)&&st(e)==Ht}var Ir=Dc?Ct(Dc):zv;function Hy(e){return e===i}function Wy(e){return Ue(e)&&it(e)==Hn}function Gy(e){return Ue(e)&&st(e)==Wo}var jy=Ti(aa),Ky=Ti(function(e,n){return e<=n});function Bd(e){if(!e)return[];if(gt(e))return $i(e)?Gt(e):mt(e);if(Yr&&e[Yr])return Ep(e[Yr]());var n=it(e),o=n==rt?Kl:n==De?ii:Fr;return o(e)}function mn(e){if(!e)return e===0?e:0;if(e=Nt(e),e===H||e===-H){var n=e<0?-1:1;return n*Be}return e===e?e:0}function be(e){var n=mn(e),o=n%1;return n===n?o?n-o:n:0}function Od(e){return e?Jn(be(e),0,R):0}function Nt(e){if(typeof e=="number")return e;if(At(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=jc(e);var o=Il.test(e);return o||Jo.test(e)?sp(e.slice(2),o?2:8):Qr.test(e)?ge:+e}function Td(e){return Jt(e,pt(e))}function Qy(e){return e?Jn(be(e),-se,se):e===0?e:0}function Oe(e){return e==null?"":xt(e)}var Zy=Or(function(e,n){if(uo(n)||gt(n)){Jt(n,Je(n),e);return}for(var o in n)Re.call(n,o)&&no(e,o,n[o])}),Rd=Or(function(e,n){Jt(n,pt(n),e)}),Di=Or(function(e,n,o,u){Jt(n,pt(n),e,u)}),Yy=Or(function(e,n,o,u){Jt(n,Je(n),e,u)}),Xy=fn(ea);function Jy(e,n){var o=Br(e);return n==null?o:sf(o,n)}var eb=Se(function(e,n){e=Fe(e);var o=-1,u=n.length,f=u>2?n[2]:i;for(f&&ct(n[0],n[1],f)&&(u=1);++o<u;)for(var p=n[o],_=pt(p),C=-1,B=_.length;++C<B;){var P=_[C],V=e[P];(V===i||Kt(V,Ar[P])&&!Re.call(e,P))&&(e[P]=p[P])}return e}),tb=Se(function(e){return e.push(i,Kf),St(Id,i,e)});function nb(e,n){return zc(e,de(n,3),Xt)}function rb(e,n){return zc(e,de(n,3),na)}function ob(e,n){return e==null?e:ta(e,de(n,3),pt)}function ib(e,n){return e==null?e:mf(e,de(n,3),pt)}function lb(e,n){return e&&Xt(e,de(n,3))}function ab(e,n){return e&&na(e,de(n,3))}function ub(e){return e==null?[]:Si(e,Je(e))}function sb(e){return e==null?[]:Si(e,pt(e))}function Ma(e,n,o){var u=e==null?i:er(e,n);return u===i?o:u}function cb(e,n){return e!=null&&Yf(e,n,Fv)}function La(e,n){return e!=null&&Yf(e,n,Mv)}var fb=zf(function(e,n,o){n!=null&&typeof n.toString!="function"&&(n=si.call(n)),e[n]=o},Va(vt)),db=zf(function(e,n,o){n!=null&&typeof n.toString!="function"&&(n=si.call(n)),Re.call(e,n)?e[n].push(o):e[n]=[o]},de),hb=Se(oo);function Je(e){return gt(e)?af(e):la(e)}function pt(e){return gt(e)?af(e,!0):Hv(e)}function mb(e,n){var o={};return n=de(n,3),Xt(e,function(u,f,p){sn(o,n(u,f,p),u)}),o}function gb(e,n){var o={};return n=de(n,3),Xt(e,function(u,f,p){sn(o,f,n(u,f,p))}),o}var pb=Or(function(e,n,o){Ci(e,n,o)}),Id=Or(function(e,n,o,u){Ci(e,n,o,u)}),vb=fn(function(e,n){var o={};if(e==null)return o;var u=!1;n=Ne(n,function(p){return p=Rn(p,e),u||(u=p.length>1),p}),Jt(e,ba(e),o),u&&(o=Lt(o,y|A|x,f_));for(var f=n.length;f--;)da(o,n[f]);return o});function _b(e,n){return Fd(e,Ni(de(n)))}var yb=fn(function(e,n){return e==null?{}:Gv(e,n)});function Fd(e,n){if(e==null)return{};var o=Ne(ba(e),function(u){return[u]});return n=de(n),xf(e,o,function(u,f){return n(u,f[0])})}function bb(e,n,o){n=Rn(n,e);var u=-1,f=n.length;for(f||(f=1,e=i);++u<f;){var p=e==null?i:e[en(n[u])];p===i&&(u=f,p=o),e=hn(p)?p.call(e):p}return e}function wb(e,n,o){return e==null?e:lo(e,n,o)}function Sb(e,n,o,u){return u=typeof u=="function"?u:i,e==null?e:lo(e,n,o,u)}var Md=Gf(Je),Ld=Gf(pt);function Cb(e,n,o){var u=ye(e),f=u||Fn(e)||Ir(e);if(n=de(n,4),o==null){var p=e&&e.constructor;f?o=u?new p:[]:$e(e)?o=hn(p)?Br(di(e)):{}:o={}}return(f?It:Xt)(e,function(_,C,B){return n(o,_,C,B)}),o}function xb(e,n){return e==null?!0:da(e,n)}function Ab(e,n,o){return e==null?e:Of(e,n,ga(o))}function Eb(e,n,o,u){return u=typeof u=="function"?u:i,e==null?e:Of(e,n,ga(o),u)}function Fr(e){return e==null?[]:jl(e,Je(e))}function kb(e){return e==null?[]:jl(e,pt(e))}function Bb(e,n,o){return o===i&&(o=n,n=i),o!==i&&(o=Nt(o),o=o===o?o:0),n!==i&&(n=Nt(n),n=n===n?n:0),Jn(Nt(e),n,o)}function Ob(e,n,o){return n=mn(n),o===i?(o=n,n=0):o=mn(o),e=Nt(e),Lv(e,n,o)}function Tb(e,n,o){if(o&&typeof o!="boolean"&&ct(e,n,o)&&(n=o=i),o===i&&(typeof n=="boolean"?(o=n,n=i):typeof e=="boolean"&&(o=e,e=i)),e===i&&n===i?(e=0,n=1):(e=mn(e),n===i?(n=e,e=0):n=mn(n)),e>n){var u=e;e=n,n=u}if(o||e%1||n%1){var f=of();return ot(e+f*(n-e+up("1e-"+((f+"").length-1))),n)}return sa(e,n)}var Rb=Tr(function(e,n,o){return n=n.toLowerCase(),e+(o?Pd(n):n)});function Pd(e){return Pa(Oe(e).toLowerCase())}function Vd(e){return e=Oe(e),e&&e.replace(ti,wp).replace(Xg,"")}function Ib(e,n,o){e=Oe(e),n=xt(n);var u=e.length;o=o===i?u:Jn(be(o),0,u);var f=o;return o-=n.length,o>=0&&e.slice(o,f)==n}function Fb(e){return e=Oe(e),e&&Zo.test(e)?e.replace(Qo,Sp):e}function Mb(e){return e=Oe(e),e&&El.test(e)?e.replace(jr,"\\$&"):e}var Lb=Tr(function(e,n,o){return e+(o?"-":"")+n.toLowerCase()}),Pb=Tr(function(e,n,o){return e+(o?" ":"")+n.toLowerCase()}),Vb=$f("toLowerCase");function Nb(e,n,o){e=Oe(e),n=be(n);var u=n?Cr(e):0;if(!n||u>=n)return e;var f=(n-u)/2;return Oi(pi(f),o)+e+Oi(gi(f),o)}function qb(e,n,o){e=Oe(e),n=be(n);var u=n?Cr(e):0;return n&&u<n?e+Oi(n-u,o):e}function $b(e,n,o){e=Oe(e),n=be(n);var u=n?Cr(e):0;return n&&u<n?Oi(n-u,o)+e:e}function Db(e,n,o){return o||n==null?n=0:n&&(n=+n),Kp(Oe(e).replace(Kr,""),n||0)}function Ub(e,n,o){return(o?ct(e,n,o):n===i)?n=1:n=be(n),ca(Oe(e),n)}function zb(){var e=arguments,n=Oe(e[0]);return e.length<3?n:n.replace(e[1],e[2])}var Hb=Tr(function(e,n,o){return e+(o?"_":"")+n.toLowerCase()});function Wb(e,n,o){return o&&typeof o!="number"&&ct(e,n,o)&&(n=o=i),o=o===i?R:o>>>0,o?(e=Oe(e),e&&(typeof n=="string"||n!=null&&!Fa(n))&&(n=xt(n),!n&&Sr(e))?In(Gt(e),0,o):e.split(n,o)):[]}var Gb=Tr(function(e,n,o){return e+(o?" ":"")+Pa(n)});function jb(e,n,o){return e=Oe(e),o=o==null?0:Jn(be(o),0,e.length),n=xt(n),e.slice(o,o+n.length)==n}function Kb(e,n,o){var u=g.templateSettings;o&&ct(e,n,o)&&(n=i),e=Oe(e),n=Di({},n,u,jf);var f=Di({},n.imports,u.imports,jf),p=Je(f),_=jl(f,p),C,B,P=0,V=n.interpolate||S,z="__p += '",ee=Ql((n.escape||S).source+"|"+V.source+"|"+(V===jn?on:S).source+"|"+(n.evaluate||S).source+"|$","g"),ue="//# sourceURL="+(Re.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rp+"]")+`
|
|
11
|
+
`;e.replace(ee,function(me,Ce,Ae,Et,ft,kt){return Ae||(Ae=Et),z+=e.slice(P,kt).replace(ne,Cp),Ce&&(C=!0,z+=`' +
|
|
12
12
|
__e(`+Ce+`) +
|
|
13
13
|
'`),ft&&(B=!0,z+=`';
|
|
14
14
|
`+ft+`;
|
|
@@ -24,5 +24,5 @@ __p += '`),Ae&&(z+=`' +
|
|
|
24
24
|
function print() { __p += __j.call(arguments, '') }
|
|
25
25
|
`:`;
|
|
26
26
|
`)+z+`return __p
|
|
27
|
-
}`;var we=Nd(function(){return ke(p,ue+"return "+z).apply(i,_)});if(we.source=z,Ia(we))throw we;return we}function zb(e){return Oe(e).toLowerCase()}function Hb(e){return Oe(e).toUpperCase()}function Wb(e,n,o){if(e=Oe(e),e&&(o||n===i))return Gc(e);if(!e||!(n=xt(n)))return e;var u=Wt(e),f=Wt(n),p=jc(u,f),_=Kc(u,f)+1;return In(u,p,_).join("")}function Gb(e,n,o){if(e=Oe(e),e&&(o||n===i))return e.slice(0,Zc(e)+1);if(!e||!(n=xt(n)))return e;var u=Wt(e),f=Kc(u,Wt(n))+1;return In(u,0,f).join("")}function jb(e,n,o){if(e=Oe(e),e&&(o||n===i))return e.replace(Qr,"");if(!e||!(n=xt(n)))return e;var u=Wt(e),f=jc(u,Wt(n));return In(u,f).join("")}function Kb(e,n){var o=U,u=Z;if($e(n)){var f="separator"in n?n.separator:f;o="length"in n?be(n.length):o,u="omission"in n?xt(n.omission):u}e=Oe(e);var p=e.length;if(Sr(e)){var _=Wt(e);p=_.length}if(o>=p)return e;var C=o-Cr(u);if(C<1)return u;var B=_?In(_,0,C).join(""):e.slice(0,C);if(f===i)return B+u;if(_&&(C+=B.length-C),Fa(f)){if(e.slice(C).search(f)){var P,V=B;for(f.global||(f=Ql(f.source,Oe(on.exec(f))+"g")),f.lastIndex=0;P=f.exec(V);)var z=P.index;B=B.slice(0,z===i?C:z)}}else if(e.indexOf(xt(f),C)!=C){var ee=B.lastIndexOf(f);ee>-1&&(B=B.slice(0,ee))}return B+u}function Qb(e){return e=Oe(e),e&&Cl.test(e)?e.replace(jr,xp):e}var Zb=Tr(function(e,n,o){return e+(o?" ":"")+n.toUpperCase()}),Pa=qf("toUpperCase");function Vd(e,n,o){return e=Oe(e),n=o?i:n,n===i?yp(e)?kp(e):cp(e):e.match(n)||[]}var Nd=Se(function(e,n){try{return St(e,i,n)}catch(o){return Ia(o)?o:new _e(o)}}),Yb=cn(function(e,n){return Rt(n,function(o){o=Jt(o),un(e,o,Ta(e[o],e))}),e});function Xb(e){var n=e==null?0:e.length,o=de();return e=n?Ne(e,function(u){if(typeof u[1]!="function")throw new It(d);return[o(u[0]),u[1]]}):[],Se(function(u){for(var f=-1;++f<n;){var p=e[f];if(St(p[0],this,u))return St(p[1],this,u)}})}function Jb(e){return xv(Mt(e,b))}function Va(e){return function(){return e}}function ew(e,n){return e==null||e!==e?n:e}var tw=Df(),nw=Df(!0);function vt(e){return e}function Na(e){return vf(typeof e=="function"?e:Mt(e,b))}function rw(e){return yf(Mt(e,b))}function ow(e,n){return bf(e,Mt(n,b))}var iw=Se(function(e,n){return function(o){return io(o,e,n)}}),lw=Se(function(e,n){return function(o){return io(e,o,n)}});function qa(e,n,o){var u=Je(n),f=Si(n,u);o==null&&!($e(n)&&(f.length||!u.length))&&(o=n,n=e,e=this,f=Si(n,Je(n)));var p=!($e(o)&&"chain"in o)||!!o.chain,_=dn(e);return Rt(f,function(C){var B=n[C];e[C]=B,_&&(e.prototype[C]=function(){var P=this.__chain__;if(p||P){var V=e(this.__wrapped__),z=V.__actions__=mt(this.__actions__);return z.push({func:B,args:arguments,thisArg:e}),V.__chain__=P,V}return B.apply(e,En([this.value()],arguments))})}),e}function aw(){return tt._===this&&(tt._=Fp),this}function $a(){}function uw(e){return e=be(e),Se(function(n){return wf(n,e)})}var sw=va(Ne),cw=va(Dc),fw=va(Ul);function qd(e){return xa(e)?zl(Jt(e)):Dv(e)}function dw(e){return function(n){return e==null?i:er(e,n)}}var hw=zf(),mw=zf(!0);function Da(){return[]}function Ua(){return!1}function gw(){return{}}function pw(){return""}function vw(){return!0}function _w(e,n){if(e=be(e),e<1||e>se)return[];var o=R,u=ot(e,R);n=de(n),e-=R;for(var f=Gl(u,n);++o<e;)n(o);return f}function yw(e){return ye(e)?Ne(e,Jt):At(e)?[e]:mt(id(Oe(e)))}function bw(e){var n=++Rp;return Oe(e)+n}var ww=Bi(function(e,n){return e+n},0),Sw=_a("ceil"),Cw=Bi(function(e,n){return e/n},1),xw=_a("floor");function Aw(e){return e&&e.length?wi(e,vt,ra):i}function Ew(e,n){return e&&e.length?wi(e,de(n,2),ra):i}function kw(e){return Hc(e,vt)}function Bw(e,n){return Hc(e,de(n,2))}function Ow(e){return e&&e.length?wi(e,vt,aa):i}function Tw(e,n){return e&&e.length?wi(e,de(n,2),aa):i}var Rw=Bi(function(e,n){return e*n},1),Iw=_a("round"),Fw=Bi(function(e,n){return e-n},0);function Mw(e){return e&&e.length?Wl(e,vt):0}function Lw(e,n){return e&&e.length?Wl(e,de(n,2)):0}return g.after=ry,g.ary=pd,g.assign=Hy,g.assignIn=Td,g.assignInWith=Di,g.assignWith=Wy,g.at=Gy,g.before=vd,g.bind=Ta,g.bindAll=Yb,g.bindKey=_d,g.castArray=gy,g.chain=hd,g.chunk=x_,g.compact=A_,g.concat=E_,g.cond=Xb,g.conforms=Jb,g.constant=Va,g.countBy=M1,g.create=jy,g.curry=yd,g.curryRight=bd,g.debounce=wd,g.defaults=Ky,g.defaultsDeep=Qy,g.defer=oy,g.delay=iy,g.difference=k_,g.differenceBy=B_,g.differenceWith=O_,g.drop=T_,g.dropRight=R_,g.dropRightWhile=I_,g.dropWhile=F_,g.fill=M_,g.filter=P1,g.flatMap=q1,g.flatMapDeep=$1,g.flatMapDepth=D1,g.flatten=sd,g.flattenDeep=L_,g.flattenDepth=P_,g.flip=ly,g.flow=tw,g.flowRight=nw,g.fromPairs=V_,g.functions=nb,g.functionsIn=rb,g.groupBy=U1,g.initial=q_,g.intersection=$_,g.intersectionBy=D_,g.intersectionWith=U_,g.invert=ib,g.invertBy=lb,g.invokeMap=H1,g.iteratee=Na,g.keyBy=W1,g.keys=Je,g.keysIn=pt,g.map=Li,g.mapKeys=ub,g.mapValues=sb,g.matches=rw,g.matchesProperty=ow,g.memoize=Vi,g.merge=cb,g.mergeWith=Rd,g.method=iw,g.methodOf=lw,g.mixin=qa,g.negate=Ni,g.nthArg=uw,g.omit=fb,g.omitBy=db,g.once=ay,g.orderBy=G1,g.over=sw,g.overArgs=uy,g.overEvery=cw,g.overSome=fw,g.partial=Ra,g.partialRight=Sd,g.partition=j1,g.pick=hb,g.pickBy=Id,g.property=qd,g.propertyOf=dw,g.pull=G_,g.pullAll=fd,g.pullAllBy=j_,g.pullAllWith=K_,g.pullAt=Q_,g.range=hw,g.rangeRight=mw,g.rearg=sy,g.reject=Z1,g.remove=Z_,g.rest=cy,g.reverse=Ba,g.sampleSize=X1,g.set=gb,g.setWith=pb,g.shuffle=J1,g.slice=Y_,g.sortBy=ny,g.sortedUniq=o1,g.sortedUniqBy=i1,g.split=qb,g.spread=fy,g.tail=l1,g.take=a1,g.takeRight=u1,g.takeRightWhile=s1,g.takeWhile=c1,g.tap=A1,g.throttle=dy,g.thru=Mi,g.toArray=kd,g.toPairs=Fd,g.toPairsIn=Md,g.toPath=yw,g.toPlainObject=Od,g.transform=vb,g.unary=hy,g.union=f1,g.unionBy=d1,g.unionWith=h1,g.uniq=m1,g.uniqBy=g1,g.uniqWith=p1,g.unset=_b,g.unzip=Oa,g.unzipWith=dd,g.update=yb,g.updateWith=bb,g.values=Fr,g.valuesIn=wb,g.without=v1,g.words=Vd,g.wrap=my,g.xor=_1,g.xorBy=y1,g.xorWith=b1,g.zip=w1,g.zipObject=S1,g.zipObjectDeep=C1,g.zipWith=x1,g.entries=Fd,g.entriesIn=Md,g.extend=Td,g.extendWith=Di,qa(g,g),g.add=ww,g.attempt=Nd,g.camelCase=Ab,g.capitalize=Ld,g.ceil=Sw,g.clamp=Sb,g.clone=py,g.cloneDeep=_y,g.cloneDeepWith=yy,g.cloneWith=vy,g.conformsTo=by,g.deburr=Pd,g.defaultTo=ew,g.divide=Cw,g.endsWith=Eb,g.eq=jt,g.escape=kb,g.escapeRegExp=Bb,g.every=L1,g.find=V1,g.findIndex=ad,g.findKey=Zy,g.findLast=N1,g.findLastIndex=ud,g.findLastKey=Yy,g.floor=xw,g.forEach=md,g.forEachRight=gd,g.forIn=Xy,g.forInRight=Jy,g.forOwn=eb,g.forOwnRight=tb,g.get=Ma,g.gt=wy,g.gte=Sy,g.has=ob,g.hasIn=La,g.head=cd,g.identity=vt,g.includes=z1,g.indexOf=N_,g.inRange=Cb,g.invoke=ab,g.isArguments=rr,g.isArray=ye,g.isArrayBuffer=Cy,g.isArrayLike=gt,g.isArrayLikeObject=ze,g.isBoolean=xy,g.isBuffer=Fn,g.isDate=Ay,g.isElement=Ey,g.isEmpty=ky,g.isEqual=By,g.isEqualWith=Oy,g.isError=Ia,g.isFinite=Ty,g.isFunction=dn,g.isInteger=Cd,g.isLength=qi,g.isMap=xd,g.isMatch=Ry,g.isMatchWith=Iy,g.isNaN=Fy,g.isNative=My,g.isNil=Py,g.isNull=Ly,g.isNumber=Ad,g.isObject=$e,g.isObjectLike=Ue,g.isPlainObject=fo,g.isRegExp=Fa,g.isSafeInteger=Vy,g.isSet=Ed,g.isString=$i,g.isSymbol=At,g.isTypedArray=Ir,g.isUndefined=Ny,g.isWeakMap=qy,g.isWeakSet=$y,g.join=z_,g.kebabCase=Ob,g.last=Pt,g.lastIndexOf=H_,g.lowerCase=Tb,g.lowerFirst=Rb,g.lt=Dy,g.lte=Uy,g.max=Aw,g.maxBy=Ew,g.mean=kw,g.meanBy=Bw,g.min=Ow,g.minBy=Tw,g.stubArray=Da,g.stubFalse=Ua,g.stubObject=gw,g.stubString=pw,g.stubTrue=vw,g.multiply=Rw,g.nth=W_,g.noConflict=aw,g.noop=$a,g.now=Pi,g.pad=Ib,g.padEnd=Fb,g.padStart=Mb,g.parseInt=Lb,g.random=xb,g.reduce=K1,g.reduceRight=Q1,g.repeat=Pb,g.replace=Vb,g.result=mb,g.round=Iw,g.runInContext=E,g.sample=Y1,g.size=ey,g.snakeCase=Nb,g.some=ty,g.sortedIndex=X_,g.sortedIndexBy=J_,g.sortedIndexOf=e1,g.sortedLastIndex=t1,g.sortedLastIndexBy=n1,g.sortedLastIndexOf=r1,g.startCase=$b,g.startsWith=Db,g.subtract=Fw,g.sum=Mw,g.sumBy=Lw,g.template=Ub,g.times=_w,g.toFinite=hn,g.toInteger=be,g.toLength=Bd,g.toLower=zb,g.toNumber=Vt,g.toSafeInteger=zy,g.toString=Oe,g.toUpper=Hb,g.trim=Wb,g.trimEnd=Gb,g.trimStart=jb,g.truncate=Kb,g.unescape=Qb,g.uniqueId=bw,g.upperCase=Zb,g.upperFirst=Pa,g.each=md,g.eachRight=gd,g.first=cd,qa(g,function(){var e={};return Yt(g,function(n,o){Re.call(g.prototype,o)||(e[o]=n)}),e}(),{chain:!1}),g.VERSION=s,Rt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){g[e].placeholder=g}),Rt(["drop","take"],function(e,n){xe.prototype[e]=function(o){o=o===i?1:Ye(be(o),0);var u=this.__filtered__&&!n?new xe(this):this.clone();return u.__filtered__?u.__takeCount__=ot(o,u.__takeCount__):u.__views__.push({size:ot(o,R),type:e+(u.__dir__<0?"Right":"")}),u},xe.prototype[e+"Right"]=function(o){return this.reverse()[e](o).reverse()}}),Rt(["filter","map","takeWhile"],function(e,n){var o=n+1,u=o==$||o==ae;xe.prototype[e]=function(f){var p=this.clone();return p.__iteratees__.push({iteratee:de(f,3),type:o}),p.__filtered__=p.__filtered__||u,p}}),Rt(["head","last"],function(e,n){var o="take"+(n?"Right":"");xe.prototype[e]=function(){return this[o](1).value()[0]}}),Rt(["initial","tail"],function(e,n){var o="drop"+(n?"":"Right");xe.prototype[e]=function(){return this.__filtered__?new xe(this):this[o](1)}}),xe.prototype.compact=function(){return this.filter(vt)},xe.prototype.find=function(e){return this.filter(e).head()},xe.prototype.findLast=function(e){return this.reverse().find(e)},xe.prototype.invokeMap=Se(function(e,n){return typeof e=="function"?new xe(this):this.map(function(o){return io(o,e,n)})}),xe.prototype.reject=function(e){return this.filter(Ni(de(e)))},xe.prototype.slice=function(e,n){e=be(e);var o=this;return o.__filtered__&&(e>0||n<0)?new xe(o):(e<0?o=o.takeRight(-e):e&&(o=o.drop(e)),n!==i&&(n=be(n),o=n<0?o.dropRight(-n):o.take(n-e)),o)},xe.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},xe.prototype.toArray=function(){return this.take(R)},Yt(xe.prototype,function(e,n){var o=/^(?:filter|find|map|reject)|While$/.test(n),u=/^(?:head|last)$/.test(n),f=g[u?"take"+(n=="last"?"Right":""):n],p=u||/^find/.test(n);f&&(g.prototype[n]=function(){var _=this.__wrapped__,C=u?[1]:arguments,B=_ instanceof xe,P=C[0],V=B||ye(_),z=function(Ce){var Ae=f.apply(g,En([Ce],C));return u&&ee?Ae[0]:Ae};V&&o&&typeof P=="function"&&P.length!=1&&(B=V=!1);var ee=this.__chain__,ue=!!this.__actions__.length,he=p&&!ee,we=B&&!ue;if(!p&&V){_=we?_:new xe(this);var me=e.apply(_,C);return me.__actions__.push({func:Mi,args:[z],thisArg:i}),new Ft(me,ee)}return he&&we?e.apply(this,C):(me=this.thru(z),he?u?me.value()[0]:me.value():me)})}),Rt(["pop","push","shift","sort","splice","unshift"],function(e){var n=li[e],o=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",u=/^(?:pop|shift)$/.test(e);g.prototype[e]=function(){var f=arguments;if(u&&!this.__chain__){var p=this.value();return n.apply(ye(p)?p:[],f)}return this[o](function(_){return n.apply(ye(_)?_:[],f)})}}),Yt(xe.prototype,function(e,n){var o=g[n];if(o){var u=o.name+"";Re.call(kr,u)||(kr[u]=[]),kr[u].push({name:n,func:o})}}),kr[ki(i,q).name]=[{name:"wrapper",func:i}],xe.prototype.clone=Qp,xe.prototype.reverse=Zp,xe.prototype.value=Yp,g.prototype.at=E1,g.prototype.chain=k1,g.prototype.commit=B1,g.prototype.next=O1,g.prototype.plant=R1,g.prototype.reverse=I1,g.prototype.toJSON=g.prototype.valueOf=g.prototype.value=F1,g.prototype.first=g.prototype.head,Xr&&(g.prototype[Xr]=T1),g},xr=Bp();Qn?((Qn.exports=xr)._=xr,Nl._=xr):tt._=xr}).call(ce)}(ho,ho.exports);var Pe=ho.exports,lt={},za={},or={};Object.defineProperty(or,"__esModule",{value:!0}),or.EstadoCaptacion=or.TipoCaptacion=void 0;var Ha;(function(t){t.CLIENTES="1",t.PROVEEDORES="2",t.USUARIOS="3",t.PRODUCTOS="4",t.PEDIDOS="5",t.SOLICITUDES="6"})(Ha||(or.TipoCaptacion=Ha={}));var Wa;(function(t){t.EN_ESTUDIO="1",t.PRE_APROBADA="2",t.APROBADA="3",t.EN_NEGOCIACION="4",t.NEGOCIACION_FINALIZADA="5",t.CONFIRMADA="6",t.FINALIZADA="7",t.CANCELADA="0"})(Wa||(or.EstadoCaptacion=Wa={}));var mo={};Object.defineProperty(mo,"__esModule",{value:!0}),mo.TipoGarantia=void 0;var Ga;(function(t){t.INMUEBLE="Propiedad inmobiliaria",t.VEHICULO="Vehículo",t.AVAL_PERSONAL="Aval personal",t.OTROS="Otros"})(Ga||(mo.TipoGarantia=Ga={}));var go={};Object.defineProperty(go,"__esModule",{value:!0}),go.TipoImportacion=void 0;var ja;(function(t){t.CAPTACION="captacion",t.PEDIDO="pedido",t.PRODUCTO="producto",t.CLIENTE="cliente"})(ja||(go.TipoImportacion=ja={}));var gn={};Object.defineProperty(gn,"__esModule",{value:!0}),gn.TipoLiquidacionReclamo=gn.EstadoLiquidacionReclamo=gn.EstadoLiquidacion=void 0;var Ka;(function(t){t[t.EN_PREVISION=1]="EN_PREVISION",t[t.CONFIRMACION_PENDIENTE=2]="CONFIRMACION_PENDIENTE",t[t.CONFIRMADA=3]="CONFIRMADA",t[t.PAGADA=4]="PAGADA",t[t.CON_RECLAMOS=5]="CON_RECLAMOS"})(Ka||(gn.EstadoLiquidacion=Ka={}));var Qa;(function(t){t[t.ACTIVO=1]="ACTIVO",t[t.APROBADO=2]="APROBADO",t[t.NEGADO=3]="NEGADO"})(Qa||(gn.EstadoLiquidacionReclamo=Qa={}));var Za;(function(t){t[t.ITEM=1]="ITEM",t[t.COBRO=2]="COBRO"})(Za||(gn.TipoLiquidacionReclamo=Za={}));var po={};Object.defineProperty(po,"__esModule",{value:!0}),po.TipoNotificacion=void 0;var Ya;(function(t){t.NUEVO="1",t.DOCUMENTOS="2",t.REALIZADO="3",t.INCIDENTES="4",t.CANCELACION="5"})(Ya||(po.TipoNotificacion=Ya={}));var vo={};Object.defineProperty(vo,"__esModule",{value:!0}),vo.EstadoPedido=void 0;var Xa;(function(t){t[t.PENDIENTE=1]="PENDIENTE",t[t.REVISAR_DOC=2]="REVISAR_DOC",t[t.LLAMAR=3]="LLAMAR",t[t.FINALIZADO=4]="FINALIZADO",t[t.CANCELADO=5]="CANCELADO",t[t.LIQUIDADO=6]="LIQUIDADO",t[t.INCIDENCIA=7]="INCIDENCIA",t[t.TRAMITADO=8]="TRAMITADO",t[t.PENDIENTE_ASIGNAR=9]="PENDIENTE_ASIGNAR"})(Xa||(vo.EstadoPedido=Xa={}));var ir={};Object.defineProperty(ir,"__esModule",{value:!0}),ir.TipoProducto=ir.EstadoProducto=void 0;var Ja;(function(t){t.DESHABILITADO="0",t.INACTIVO="1",t.ACTIVADO="2",t.PUBLICO="3"})(Ja||(ir.EstadoProducto=Ja={}));var eu;(function(t){t.ARTICULO="1",t.SERVICIO_CONTRATO="2",t.MEMBRESIA="3",t.OFERTA_EMPLEO="4"})(eu||(ir.TipoProducto=eu={}));var _o={};Object.defineProperty(_o,"__esModule",{value:!0}),_o.EstadoBase=void 0;var tu;(function(t){t[t.INACTIVO=0]="INACTIVO",t[t.ACTIVO=1]="ACTIVO"})(tu||(_o.EstadoBase=tu={})),function(t){var l=ce&&ce.__createBinding||(Object.create?function(s,a,c,d){d===void 0&&(d=c);var h=Object.getOwnPropertyDescriptor(a,c);(!h||("get"in h?!a.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return a[c]}}),Object.defineProperty(s,d,h)}:function(s,a,c,d){d===void 0&&(d=c),s[d]=a[c]}),i=ce&&ce.__exportStar||function(s,a){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(a,c)&&l(a,s,c)};Object.defineProperty(t,"__esModule",{value:!0}),i(or,t),i(mo,t),i(go,t),i(gn,t),i(po,t),i(vo,t),i(ir,t),i(_o,t)}(za);var nu={},ru={},ou={};Object.defineProperty(ou,"__esModule",{value:!0}),function(t){var l=ce&&ce.__createBinding||(Object.create?function(s,a,c,d){d===void 0&&(d=c);var h=Object.getOwnPropertyDescriptor(a,c);(!h||("get"in h?!a.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return a[c]}}),Object.defineProperty(s,d,h)}:function(s,a,c,d){d===void 0&&(d=c),s[d]=a[c]}),i=ce&&ce.__exportStar||function(s,a){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(a,c)&&l(a,s,c)};Object.defineProperty(t,"__esModule",{value:!0}),i(ou,t)}(ru);var iu={},lu={};Object.defineProperty(lu,"__esModule",{value:!0});var lr={};Object.defineProperty(lr,"__esModule",{value:!0}),lr.RuleValueType=lr.ESTADO_RULE_OPERATORS=void 0,lr.ESTADO_RULE_OPERATORS=[">","<","=","!=",">=","<=","in","not in","contains","not empty","like"];var au;(function(t){t.CONST="const",t.FLAG="flag"})(au||(lr.RuleValueType=au={}));var yo={};Object.defineProperty(yo,"__esModule",{value:!0}),yo.FlagType=void 0;var uu;(function(t){t.FIELD="field",t.QUERY="query"})(uu||(yo.FlagType=uu={})),function(t){var l=ce&&ce.__createBinding||(Object.create?function(s,a,c,d){d===void 0&&(d=c);var h=Object.getOwnPropertyDescriptor(a,c);(!h||("get"in h?!a.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return a[c]}}),Object.defineProperty(s,d,h)}:function(s,a,c,d){d===void 0&&(d=c),s[d]=a[c]}),i=ce&&ce.__exportStar||function(s,a){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(a,c)&&l(a,s,c)};Object.defineProperty(t,"__esModule",{value:!0}),i(lu,t),i(lr,t),i(yo,t)}(iu);var su={},bo={};Object.defineProperty(bo,"__esModule",{value:!0}),bo.LAYOUT_COLUMNA_TYPES=void 0,bo.LAYOUT_COLUMNA_TYPES=["texto","numero","fecha"],function(t){var l=ce&&ce.__createBinding||(Object.create?function(s,a,c,d){d===void 0&&(d=c);var h=Object.getOwnPropertyDescriptor(a,c);(!h||("get"in h?!a.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return a[c]}}),Object.defineProperty(s,d,h)}:function(s,a,c,d){d===void 0&&(d=c),s[d]=a[c]}),i=ce&&ce.__exportStar||function(s,a){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(a,c)&&l(a,s,c)};Object.defineProperty(t,"__esModule",{value:!0}),i(bo,t)}(su);var cu={},pn={};Object.defineProperty(pn,"__esModule",{value:!0}),pn.LAYOUT_SECTION_TYPES=pn.LayoutSectionType=pn.TextLineType=void 0;var fu;(function(t){t.TITLE="title",t.SUBTITLE="subtitle",t.PARAGRAPH="paragraph"})(fu||(pn.TextLineType=fu={}));var Mn;(function(t){t.TEXT="text",t.TABLE="table",t.CARDS_GRID="cards-grid",t.IMAGE="image",t.SIGNATURE="signature"})(Mn||(pn.LayoutSectionType=Mn={})),pn.LAYOUT_SECTION_TYPES=[Mn.TEXT,Mn.CARDS_GRID,Mn.TABLE,Mn.IMAGE,Mn.SIGNATURE],function(t){var l=ce&&ce.__createBinding||(Object.create?function(s,a,c,d){d===void 0&&(d=c);var h=Object.getOwnPropertyDescriptor(a,c);(!h||("get"in h?!a.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return a[c]}}),Object.defineProperty(s,d,h)}:function(s,a,c,d){d===void 0&&(d=c),s[d]=a[c]}),i=ce&&ce.__exportStar||function(s,a){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(a,c)&&l(a,s,c)};Object.defineProperty(t,"__esModule",{value:!0}),i(pn,t)}(cu);var du={},ar={};Object.defineProperty(ar,"__esModule",{value:!0}),ar.COMISION_SOURCE_ENTITIES=ar.TipoComision=void 0;var hu;(function(t){t.PORCENTAJE="porcentaje",t.MONTO_FIJO="monto_fijo"})(hu||(ar.TipoComision=hu={})),ar.COMISION_SOURCE_ENTITIES=["captacion","pedido","producto","propuesta","importacion"];var mu={};Object.defineProperty(mu,"__esModule",{value:!0});var wo={};Object.defineProperty(wo,"__esModule",{value:!0}),wo.TipoLiquidacion=void 0;var gu;(function(t){t.SOLICITUD_CLIENTE="solicitud_cliente",t.RED_COMERCIAL="red_comercial"})(gu||(wo.TipoLiquidacion=gu={}));var Bt={};Object.defineProperty(Bt,"__esModule",{value:!0}),Bt.TABLES=Bt.TABLES_FIELDS=Bt.SOURCES=Bt.LOGIC_OPERATORS=Bt.RULE_OPERATORS=void 0,Bt.RULE_OPERATORS=["==","!=","<",">","IN"],Bt.LOGIC_OPERATORS=["AND","OR"],Bt.SOURCES=["IMPORTACION","TABLA","CONTENEDOR"],Bt.TABLES_FIELDS={PRODUCTOS:["TIPO","NOMBRE","DESCRIPCION","ID_GAMA","ESTADO","TAGS","ID_PRODUCTO","PROPS","CODIGO_EXTERNO"],CAPTACION:["ESTADO","TIPO","CAPTADO","ID_CAPTACION","FECHA_CAPTADO","COD_CLIENTE","COD_PROVEEDOR"]},Bt.TABLES=[{label:"PRODUCTOS",value:"PRODUCTOS"},{label:"CAPTACIONES",value:"CAPTACION"}],function(t){var l=ce&&ce.__createBinding||(Object.create?function(s,a,c,d){d===void 0&&(d=c);var h=Object.getOwnPropertyDescriptor(a,c);(!h||("get"in h?!a.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return a[c]}}),Object.defineProperty(s,d,h)}:function(s,a,c,d){d===void 0&&(d=c),s[d]=a[c]}),i=ce&&ce.__exportStar||function(s,a){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(a,c)&&l(a,s,c)};Object.defineProperty(t,"__esModule",{value:!0}),i(ar,t),i(mu,t),i(wo,t),i(Bt,t)}(du);var pu={},So={};Object.defineProperty(So,"__esModule",{value:!0}),So.OPERATORS=void 0,So.OPERATORS=["==","!=",">","<",">=","<=","contains","not_contains","in","not_in"];var ur={};Object.defineProperty(ur,"__esModule",{value:!0}),ur.ControlType=ur.GAMA_PROP_CONTROL_TYPES=void 0,ur.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:"o_location_on",label:"Ubicación"},{code:"dynamic_array",icon:"data_array",label:"Colección dinámica"},{code:"object",icon:"data_object",label:"Objeto"},{code:"keys_counter",icon:"plus_one",label:"Contador de entradas"},{code:"collection",icon:"o_description",label:"Colección"}];var vu;(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",t.KEYS_COUNTER="keys_counter",t.COLLECTION="collection"})(vu||(ur.ControlType=vu={}));var _u={};Object.defineProperty(_u,"__esModule",{value:!0});var yu={};Object.defineProperty(yu,"__esModule",{value:!0});var bu={},Ui={exports:{}};(function(t,l){(function(i,s){s(l)})(ce,function(i){var s=function(y){return"trwagmyfpdxbnjzsqvhlcke"[+y%23]},a=function(y){return(""+Math.random()).slice(-y)},c=function(y){return(function(m){var b=m%2147483647;return b<=0&&(b+=2147483646),{next:function(){return b=16807*b%2147483647}}}(y).next()-1)/2147483646},d=function(y){var m="xyzXYZ".indexOf(y[0])%3,b=m.toString();m===-1&&(b=y[0]);var x=""+b+y.slice(1,8);return s(x).toUpperCase()},h=function(y){return/^[XYZ]{1}[0-9]{7}[TRWAGMYFPDXBNJZSQVHLCKE]{1}$/i.test(y)},v=function(y){return/^[0-9]{8}[TRWAGMYFPDXBNJZSQVHLCKE]{1}$/i.test(y)};i.ctrlChar=d,i.isNIE=function(y){return!!y&&y.length===9&&h(y)&&d(y)===y[8].toUpperCase()},i.isNIF=function(y){return!!y&&y.length===9&&v(y)&&d(y)===y[8].toUpperCase()},i.isValid=function(y){var m=y||"";if(m.length!==9&&!h(m)&&!v(m))return!1;var b="xyzXYZ".indexOf(m[0])%3,x=b.toString();b===-1&&(x=m[0]);var A=+(x+m.slice(1,8))%23;return"trwagmyfpdxbnjzsqvhlcket".indexOf(m[8].toLowerCase())===A},i.normalize=function(y){return y.replace(/[-_\s]/gi,"").toUpperCase()},i.randomNIE=function(){var y=Math.floor(3*Math.random()),m=a(7),b=s(""+y+m).toUpperCase();return""+"XYZ"[y]+m+b},i.randomNIEWith=function(y,m,b){b===void 0&&(b=1e8*Math.random());var x="xyzXYZ".indexOf(y)%3;if(x===-1)return null;var A="trwagmyfpdxbnjzsqvhlckeTRWAGMYFPDXBNJZSQVHLCKE".indexOf(m)%23;if(A===-1)return null;var w=x+1,F=+(""+x+Math.floor(1e6*w+(9999999-1e6*w-23)*c(b)));return(""+y+("0"+(F-F%23+A)+m).slice(-8)).toUpperCase()},i.randomNIF=function(){var y=a(8);return y+s(y).toUpperCase()},i.randomNIFWith=function(y,m){m===void 0&&(m=1e8*Math.random());var b="trwagmyfpdxbnjzsqvhlckeTRWAGMYFPDXBNJZSQVHLCKE".indexOf(y)%23;if(b===-1)return null;var x=99999998-4347826*(Math.floor(22*c(m))+1);return(""+("0"+(x+(b-Math.max(0,x)%23))).slice(-8)+y).toUpperCase()},Object.defineProperty(i,"__esModule",{value:!0})})})(Ui,Ui.exports);var Ud=Ui.exports,wu={};(function(t){(function(l,i){typeof t.nodeName!="string"?i(t):i(l.IBAN={})})(ce,function(l){Array.prototype.map||(Array.prototype.map=function(w){if(this===void 0||this===null)throw new TypeError;var F=Object(this),k=F.length>>>0;if(typeof w!="function")throw new TypeError;for(var q=new Array(k),D=arguments.length>=2?arguments[1]:void 0,L=0;L<k;L++)L in F&&(q[L]=w.call(D,F[L],L,F));return q});var i=65,s=90;function a(w){return w=w.toUpperCase(),w=w.substr(4)+w.substr(0,4),w.split("").map(function(F){var k=F.charCodeAt(0);return k>=i&&k<=s?k-i+10:F}).join("")}function c(w){for(var F=w,k;F.length>2;)k=F.slice(0,9),F=parseInt(k,10)%97+F.slice(k.length);return parseInt(F,10)%97}function d(w){var F=w.match(/(.{3})/g).map(function(k){var q,D=k.slice(0,1),L=parseInt(k.slice(1),10);switch(D){case"A":q="0-9A-Za-z";break;case"B":q="0-9A-Z";break;case"C":q="A-Za-z";break;case"F":q="0-9";break;case"L":q="a-z";break;case"U":q="A-Z";break;case"W":q="0-9a-z";break}return"(["+q+"]{"+L+"})"});return new RegExp("^"+F.join("")+"$")}function h(w){return w.replace(b,"").toUpperCase()}function v(w,F,k,q){this.countryCode=w,this.length=F,this.structure=k,this.example=q}v.prototype._regex=function(){return this._cachedRegex||(this._cachedRegex=d(this.structure))},v.prototype.isValid=function(w){return this.length==w.length&&this.countryCode===w.slice(0,2)&&this._regex().test(w.slice(4))&&c(a(w))==1},v.prototype.toBBAN=function(w,F){return this._regex().exec(w.slice(4)).slice(1).join(F)},v.prototype.fromBBAN=function(w){if(!this.isValidBBAN(w))throw new Error("Invalid BBAN");var F=c(a(this.countryCode+"00"+w)),k=("0"+(98-F)).slice(-2);return this.countryCode+k+w},v.prototype.isValidBBAN=function(w){return this.length-4==w.length&&this._regex().test(w)};var y={};function m(w){y[w.countryCode]=w}m(new v("AD",24,"F04F04A12","AD1200012030200359100100")),m(new v("AE",23,"F03F16","AE070331234567890123456")),m(new v("AL",28,"F08A16","AL47212110090000000235698741")),m(new v("AT",20,"F05F11","AT611904300234573201")),m(new v("AZ",28,"U04A20","AZ21NABZ00000000137010001944")),m(new v("BA",20,"F03F03F08F02","BA391290079401028494")),m(new v("BE",16,"F03F07F02","BE68539007547034")),m(new v("BG",22,"U04F04F02A08","BG80BNBG96611020345678")),m(new v("BH",22,"U04A14","BH67BMAG00001299123456")),m(new v("BR",29,"F08F05F10U01A01","BR9700360305000010009795493P1")),m(new v("BY",28,"A04F04A16","BY13NBRB3600900000002Z00AB00")),m(new v("CH",21,"F05A12","CH9300762011623852957")),m(new v("CR",22,"F04F14","CR72012300000171549015")),m(new v("CY",28,"F03F05A16","CY17002001280000001200527600")),m(new v("CZ",24,"F04F06F10","CZ6508000000192000145399")),m(new v("DE",22,"F08F10","DE89370400440532013000")),m(new v("DK",18,"F04F09F01","DK5000400440116243")),m(new v("DO",28,"U04F20","DO28BAGR00000001212453611324")),m(new v("EE",20,"F02F02F11F01","EE382200221020145685")),m(new v("EG",29,"F04F04F17","EG800002000156789012345180002")),m(new v("ES",24,"F04F04F01F01F10","ES9121000418450200051332")),m(new v("FI",18,"F06F07F01","FI2112345600000785")),m(new v("FO",18,"F04F09F01","FO6264600001631634")),m(new v("FR",27,"F05F05A11F02","FR1420041010050500013M02606")),m(new v("GB",22,"U04F06F08","GB29NWBK60161331926819")),m(new v("GE",22,"U02F16","GE29NB0000000101904917")),m(new v("GI",23,"U04A15","GI75NWBK000000007099453")),m(new v("GL",18,"F04F09F01","GL8964710001000206")),m(new v("GR",27,"F03F04A16","GR1601101250000000012300695")),m(new v("GT",28,"A04A20","GT82TRAJ01020000001210029690")),m(new v("HR",21,"F07F10","HR1210010051863000160")),m(new v("HU",28,"F03F04F01F15F01","HU42117730161111101800000000")),m(new v("IE",22,"U04F06F08","IE29AIBK93115212345678")),m(new v("IL",23,"F03F03F13","IL620108000000099999999")),m(new v("IS",26,"F04F02F06F10","IS140159260076545510730339")),m(new v("IT",27,"U01F05F05A12","IT60X0542811101000000123456")),m(new v("IQ",23,"U04F03A12","IQ98NBIQ850123456789012")),m(new v("JO",30,"A04F22","JO15AAAA1234567890123456789012")),m(new v("KW",30,"U04A22","KW81CBKU0000000000001234560101")),m(new v("KZ",20,"F03A13","KZ86125KZT5004100100")),m(new v("LB",28,"F04A20","LB62099900000001001901229114")),m(new v("LC",32,"U04F24","LC07HEMM000100010012001200013015")),m(new v("LI",21,"F05A12","LI21088100002324013AA")),m(new v("LT",20,"F05F11","LT121000011101001000")),m(new v("LU",20,"F03A13","LU280019400644750000")),m(new v("LV",21,"U04A13","LV80BANK0000435195001")),m(new v("MC",27,"F05F05A11F02","MC5811222000010123456789030")),m(new v("MD",24,"U02A18","MD24AG000225100013104168")),m(new v("ME",22,"F03F13F02","ME25505000012345678951")),m(new v("MK",19,"F03A10F02","MK07250120000058984")),m(new v("MR",27,"F05F05F11F02","MR1300020001010000123456753")),m(new v("MT",31,"U04F05A18","MT84MALT011000012345MTLCAST001S")),m(new v("MU",30,"U04F02F02F12F03U03","MU17BOMM0101101030300200000MUR")),m(new v("NL",18,"U04F10","NL91ABNA0417164300")),m(new v("NO",15,"F04F06F01","NO9386011117947")),m(new v("PK",24,"U04A16","PK36SCBL0000001123456702")),m(new v("PL",28,"F08F16","PL61109010140000071219812874")),m(new v("PS",29,"U04A21","PS92PALS000000000400123456702")),m(new v("PT",25,"F04F04F11F02","PT50000201231234567890154")),m(new v("QA",29,"U04A21","QA30AAAA123456789012345678901")),m(new v("RO",24,"U04A16","RO49AAAA1B31007593840000")),m(new v("RS",22,"F03F13F02","RS35260005601001611379")),m(new v("SA",24,"F02A18","SA0380000000608010167519")),m(new v("SC",31,"U04F04F16U03","SC18SSCB11010000000000001497USD")),m(new v("SE",24,"F03F16F01","SE4550000000058398257466")),m(new v("SI",19,"F05F08F02","SI56263300012039086")),m(new v("SK",24,"F04F06F10","SK3112000000198742637541")),m(new v("SM",27,"U01F05F05A12","SM86U0322509800000000270100")),m(new v("ST",25,"F08F11F02","ST68000100010051845310112")),m(new v("SV",28,"U04F20","SV62CENR00000000000000700025")),m(new v("TL",23,"F03F14F02","TL380080012345678910157")),m(new v("TN",24,"F02F03F13F02","TN5910006035183598478831")),m(new v("TR",26,"F05F01A16","TR330006100519786457841326")),m(new v("UA",29,"F25","UA511234567890123456789012345")),m(new v("VA",22,"F18","VA59001123000012345678")),m(new v("VG",24,"U04F16","VG96VPVG0000012345678901")),m(new v("XK",20,"F04F10F02","XK051212012345678906")),m(new v("AO",25,"F21","AO69123456789012345678901")),m(new v("BF",27,"F23","BF2312345678901234567890123")),m(new v("BI",16,"F12","BI41123456789012")),m(new v("BJ",28,"F24","BJ39123456789012345678901234")),m(new v("CI",28,"U02F22","CI70CI1234567890123456789012")),m(new v("CM",27,"F23","CM9012345678901234567890123")),m(new v("CV",25,"F21","CV30123456789012345678901")),m(new v("DZ",24,"F20","DZ8612345678901234567890")),m(new v("IR",26,"F22","IR861234568790123456789012")),m(new v("MG",27,"F23","MG1812345678901234567890123")),m(new v("ML",28,"U01F23","ML15A12345678901234567890123")),m(new v("MZ",25,"F21","MZ25123456789012345678901")),m(new v("SN",28,"U01F23","SN52A12345678901234567890123")),m(new v("GF",27,"F05F05A11F02","GF121234512345123456789AB13")),m(new v("GP",27,"F05F05A11F02","GP791234512345123456789AB13")),m(new v("MQ",27,"F05F05A11F02","MQ221234512345123456789AB13")),m(new v("RE",27,"F05F05A11F02","RE131234512345123456789AB13")),m(new v("PF",27,"F05F05A11F02","PF281234512345123456789AB13")),m(new v("TF",27,"F05F05A11F02","TF891234512345123456789AB13")),m(new v("YT",27,"F05F05A11F02","YT021234512345123456789AB13")),m(new v("NC",27,"F05F05A11F02","NC551234512345123456789AB13")),m(new v("BL",27,"F05F05A11F02","BL391234512345123456789AB13")),m(new v("MF",27,"F05F05A11F02","MF551234512345123456789AB13")),m(new v("PM",27,"F05F05A11F02","PM071234512345123456789AB13")),m(new v("WF",27,"F05F05A11F02","WF621234512345123456789AB13"));var b=/[^a-zA-Z0-9]/g,x=/(.{4})(?!$)/g;function A(w){return typeof w=="string"||w instanceof String}l.isValid=function(w){if(!A(w))return!1;w=h(w);var F=y[w.slice(0,2)];return!!F&&F.isValid(w)},l.toBBAN=function(w,F){typeof F>"u"&&(F=" "),w=h(w);var k=y[w.slice(0,2)];if(!k)throw new Error("No country with code "+w.slice(0,2));return k.toBBAN(w,F)},l.fromBBAN=function(w,F){var k=y[w];if(!k)throw new Error("No country with code "+w);return k.fromBBAN(h(F))},l.isValidBBAN=function(w,F){if(!A(F))return!1;var k=y[w];return k&&k.isValidBBAN(h(F))},l.printFormat=function(w,F){return typeof F>"u"&&(F=" "),h(w).replace(x,"$1"+F)},l.electronicFormat=h,l.countries=y})})(wu),function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.VALIDATORS=t.PropValidatorKeys=t.GamaPropValidatorsMap=void 0;const l=Ud,i=wu;t.GamaPropValidatorsMap={required:{fn:()=>a=>a.value!==null&&a.value!==void 0&&a.value!=="",message:"Este campo es requerido",label:"Requerido"},min:{fn:a=>c=>{if(typeof c.value=="number")return(c.value||0)>=a;if(typeof c.value=="string"){const d=c.value||"";return c.multiple?d.split(",").length>=a:d.length>=a}return!1},message:"El valor es menor al mínimo permitido",label:"Mínimo"},max:{fn:a=>c=>{if(typeof c.value=="number")return(c.value||0)<=a;if(typeof c.value=="string"){const d=c.value||"";return c.multiple?d.split(",").length<=a:(d||"").length<=a}return!1},message:"El valor es mayor al máximo permitido",label:"Máximo"},onlyNumbers:{fn:()=>a=>/^[0-9]*$/.test(String(a.value)||""),message:"Este campo solo acepta números",label:"Solo números"},email:{fn:()=>a=>a.value?/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(String(a.value)||""):!0,message:"El correo electrónico no es válido",label:"Correo electrónico"},url:{fn:()=>a=>a.value?/^(ftp|http|https):\/\/[^ "]+$/.test(String(a.value)||"")||/^www\.[^ "]+$/.test(String(a.value)||""):!0,message:"La URL no es válida",label:"URL"},dni:{fn:()=>a=>a.value?(0,l.isValid)(String(a.value)||""):!0,message:"El dni no es válido",label:"Identificación (DNI, NIF, NIE)"},iban:{fn:()=>a=>a.value?i.isValid(String(a.value)||""):!0,message:"El IBAN no es válido",label:"Cuenta Bancaria (IBAN)"}};var s;(function(a){a.REQUERIDO="required",a.MINIMO="min",a.MAXIMO="max",a.SOLO_NUMEROS="onlyNumbers",a.EMAIL="email",a.URL="url",a.DNI="dni",a.IBAN="iban"})(s||(t.PropValidatorKeys=s={})),t.VALIDATORS=Object.entries(t.GamaPropValidatorsMap).map(([a,c])=>({value:a,...c}))}(bu);var Su={};Object.defineProperty(Su,"__esModule",{value:!0}),function(t){var l=ce&&ce.__createBinding||(Object.create?function(s,a,c,d){d===void 0&&(d=c);var h=Object.getOwnPropertyDescriptor(a,c);(!h||("get"in h?!a.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return a[c]}}),Object.defineProperty(s,d,h)}:function(s,a,c,d){d===void 0&&(d=c),s[d]=a[c]}),i=ce&&ce.__exportStar||function(s,a){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(a,c)&&l(a,s,c)};Object.defineProperty(t,"__esModule",{value:!0}),i(So,t),i(ur,t),i(_u,t),i(yu,t),i(bu,t),i(Su,t)}(pu);var Cu={},xu={};Object.defineProperty(xu,"__esModule",{value:!0});var Au={};Object.defineProperty(Au,"__esModule",{value:!0});var Eu={};Object.defineProperty(Eu,"__esModule",{value:!0});var ku={};Object.defineProperty(ku,"__esModule",{value:!0});var Bu={};Object.defineProperty(Bu,"__esModule",{value:!0});var Ou={};Object.defineProperty(Ou,"__esModule",{value:!0});var Tu={};Object.defineProperty(Tu,"__esModule",{value:!0});var Ru={};Object.defineProperty(Ru,"__esModule",{value:!0});var Iu={};Object.defineProperty(Iu,"__esModule",{value:!0});var Fu={};Object.defineProperty(Fu,"__esModule",{value:!0});var Mu={};Object.defineProperty(Mu,"__esModule",{value:!0});var Lu={};Object.defineProperty(Lu,"__esModule",{value:!0});var Pu={};Object.defineProperty(Pu,"__esModule",{value:!0}),function(t){var l=ce&&ce.__createBinding||(Object.create?function(s,a,c,d){d===void 0&&(d=c);var h=Object.getOwnPropertyDescriptor(a,c);(!h||("get"in h?!a.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return a[c]}}),Object.defineProperty(s,d,h)}:function(s,a,c,d){d===void 0&&(d=c),s[d]=a[c]}),i=ce&&ce.__exportStar||function(s,a){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(a,c)&&l(a,s,c)};Object.defineProperty(t,"__esModule",{value:!0}),i(xu,t),i(Au,t),i(Eu,t),i(ku,t),i(Bu,t),i(Ou,t),i(Tu,t),i(Ru,t),i(Iu,t),i(Fu,t),i(Mu,t),i(Lu,t),i(Pu,t)}(Cu);var Vu={},Nu={};Object.defineProperty(Nu,"__esModule",{value:!0});var Co={};Object.defineProperty(Co,"__esModule",{value:!0}),Co.TimestampsAction=void 0;var qu;(function(t){t.CHECKIN="checkin",t.CHECKOUT="checkout"})(qu||(Co.TimestampsAction=qu={})),function(t){var l=ce&&ce.__createBinding||(Object.create?function(s,a,c,d){d===void 0&&(d=c);var h=Object.getOwnPropertyDescriptor(a,c);(!h||("get"in h?!a.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return a[c]}}),Object.defineProperty(s,d,h)}:function(s,a,c,d){d===void 0&&(d=c),s[d]=a[c]}),i=ce&&ce.__exportStar||function(s,a){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(a,c)&&l(a,s,c)};Object.defineProperty(t,"__esModule",{value:!0}),i(Nu,t),i(Co,t)}(Vu),function(t){var l=ce&&ce.__createBinding||(Object.create?function(s,a,c,d){d===void 0&&(d=c);var h=Object.getOwnPropertyDescriptor(a,c);(!h||("get"in h?!a.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return a[c]}}),Object.defineProperty(s,d,h)}:function(s,a,c,d){d===void 0&&(d=c),s[d]=a[c]}),i=ce&&ce.__exportStar||function(s,a){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(a,c)&&l(a,s,c)};Object.defineProperty(t,"__esModule",{value:!0}),i(ru,t),i(iu,t),i(su,t),i(cu,t),i(du,t),i(pu,t),i(Cu,t),i(Vu,t)}(nu),function(t){var l=ce&&ce.__createBinding||(Object.create?function(s,a,c,d){d===void 0&&(d=c);var h=Object.getOwnPropertyDescriptor(a,c);(!h||("get"in h?!a.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return a[c]}}),Object.defineProperty(s,d,h)}:function(s,a,c,d){d===void 0&&(d=c),s[d]=a[c]}),i=ce&&ce.__exportStar||function(s,a){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(a,c)&&l(a,s,c)};Object.defineProperty(t,"__esModule",{value:!0}),i(za,t),i(nu,t)}(lt);const zi=[lt.ControlType.DYNAMIC_ARRAY,lt.ControlType.OBJECT],zd={maxControlsPerGroup:1,notifyValidations:!0},$u={required:{fn:()=>t=>{var l;if(t.controlType===lt.ControlType.LOCATION){const{value:i}=t.value;return Pe.values(Pe.omit(i,"catastro")).every(s=>!Pe.isNil(s)&&s!=="")&&(i!=null&&i.catastro?Hd(i==null?void 0:i.catastro):!0)}return t.controlType===lt.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=>Du(l,">=",t),message:"El valor es menor al mínimo permitido"},max:{fn:t=>l=>Du(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 Du(t,l,i){const s={">":(a,c)=>a>c,"<":(a,c)=>a<c,">=":(a,c)=>a>=c,"<=":(a,c)=>a<=c}[l];if(t.controlType===lt.ControlType.NUMBER){const a=Number(t.value);return s(a,i)}if(t.controlType===lt.ControlType.TEXT){const a=(t.value||"").length;return s(a,i)}if([lt.ControlType.CARDS_SELECT,lt.ControlType.SELECT].includes(t.controlType)&&t.multiple){const a=(t.value||[]).length;return s(a,i)}return!1}function Hd(t){return/^[A-Za-z0-9]{20}$/.test(t)}function Wd(t){const l=[];t.controls.forEach((s,a)=>{const c=Gd(s);l.push(...c);const d=!c.length;t.controls[a].valid=d});const i=!l.length;return t.valid=i,l}function Gd(t){const l=[];return t.validators&&t.validators.forEach(i=>{const{validator:s,param:a}=i,c=$u[s]||null;c&&(c.fn(Number(a))(t)||l.push(c.message))}),l}function jd(t,l,i){return l.controlType==="dynamic_array"?Kd(t,l,i):l.controlType==="object"?Uu(t,l,i):[]}function Kd(t,l,i){var c,d;const s=[],a=((c=l.itemsLength)==null?void 0:c.value)||0;for(let h=0;h<a;h++){const v=Uu({...t,title:`${t.title} ${h+1}`},{...l,value:(d=l.value)==null?void 0:d[h]},i);v.forEach(y=>{y.controls.forEach(m=>{m.code=`${h}.${m.code}`})}),s.push(...v)}return s}function Uu(t,l,i){const s=l.structure;return Pe.chunk(s,i).map(c=>({...t,controls:zu(c).map(d=>{var h;return{...d,id:l.id,value:((h=l.value)==null?void 0:h[d.code])||d.value}})}))}function Qd(t){return Pe.chain(t).groupBy("group").toPairs().orderBy(([i,s])=>i).map(([i,s])=>{var d;const a=((d=s.find(h=>{var v;return!!((v=h.title)!=null&&v.trim())}))==null?void 0:d.title)||"",c=s[0].group;return{title:a,controls:s,order:c,visible:!0,valid:s.every(h=>h.valid),id:""}}).value()}function Zd(t){return t.map(l=>({...l,valid:!1,controls:zu(l.controls)}))}function zu(t){return t.map(l=>{var i,s,a;return{...l,valid:!((i=l.validators)!=null&&i.length),visible:!((s=l.conditions)!=null&&s.length),value:Yd(l),itemsLength:l.controlType==="dynamic_array"?{...l.itemsLength,value:((a=l.itemsLength)==null?void 0:a.default)||1}:null}})}function Yd(t){if(!Pe.isNil(t.defaultValue))return t.defaultValue;switch(t.controlType){case"input_text":return"";case"input_number":return null;case"select":return t.multiple?[]:"";case"cards_select":return t.multiple?[]:"";case"checkbox":return null;case"switch":return null;case"location":return{};case"dynamic_array":return[];case"object":return{};default:return""}}const sr=Dd.defineStore("form",{state:()=>({formSteps:[],currentStep:1,onLastSubstep:!1,collections:{}}),actions:{setFormSteps(t){this.formSteps=Zd(t)},nextStep(){this.currentStep!==this.formSteps.length&&this.currentStep++},previousStep(){this.currentStep!==1&&this.currentStep--},setControlValue(t,l){const{id:i,value:s,code:a}=l,c=this.formSteps[t].controls.find(d=>d.id===i);c&&(zi.includes(c.controlType)?Pe.set(c.value,a,s):c.value=s)},setControlVisibility(t,l,i){const s=this.formSteps[t].controls.find(a=>a.id===l);s&&(s.visible=i)},setControlItemsLength(t,l,i){const s=this.formSteps[t].controls.find(a=>a.id===l);!s||s.controlType!=="dynamic_array"||(s.itemsLength.value=i)},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 Hu{toRaw(l){return l.flatMap(a=>a.controls).filter(a=>a.visible).map(a=>({ID_CUESTIONARIO_PREGUNTA:a.id,RESPUESTA:this.formatValue(a)}))}fromRaw(l){return Pe.orderBy(l,"ORDEN").filter(s=>s.PREGUNTAS.length&&s.ESTADO===1).map(s=>{const a=s.NOMBRE,c=s.ORDEN,d=s.DESCRIPCION,h=s.CLAVE,v=s.ID_CUESTIONARIO,y=s.PREGUNTAS.filter(m=>m.ESTADO===1).map(m=>this.parseControl(m));return{title:a,order:c,text:d,controls:y,name:h,id:v}})}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:i,value:s,structure:a}=l,c=(d,h)=>h.controlType==="input_number"&&d!==null&&d!==void 0&&d!==""&&typeof d=="string";return c(s,l)?parseFloat(s.replaceAll(".","")):(i==="object"&&a.forEach(d=>{const h=s[d.code];c(h,d)&&(s[d.code]=parseFloat(h==null?void 0:h.replaceAll(".","")))}),s)}}function xo(t,l,i,s){return Object.defineProperty(t,l,{get:i,set:s,enumerable:!0}),t}const vn=r.ref(!1);let Hi;function Xd(t,l){const i=/(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:i[5]||i[3]||i[1]||"",version:i[4]||i[2]||"0",platform:l[0]||""}}function Jd(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 Wu="ontouchstart"in window||window.navigator.maxTouchPoints>0;function eh(t){const l=t.toLowerCase(),i=Jd(l),s=Xd(l,i),a={};s.browser&&(a[s.browser]=!0,a.version=s.version,a.versionNumber=parseInt(s.version,10)),s.platform&&(a[s.platform]=!0);const c=a.android||a.ios||a.bb||a.blackberry||a.ipad||a.iphone||a.ipod||a.kindle||a.playbook||a.silk||a["windows phone"];if(c===!0||l.indexOf("mobile")!==-1?a.mobile=!0:a.desktop=!0,a["windows phone"]&&(a.winphone=!0,delete a["windows phone"]),a.edga||a.edgios||a.edg?(a.edge=!0,s.browser="edge"):a.crios?(a.chrome=!0,s.browser="chrome"):a.fxios&&(a.firefox=!0,s.browser="firefox"),(a.ipod||a.ipad||a.iphone)&&(a.ios=!0),a.vivaldi&&(s.browser="vivaldi",a.vivaldi=!0),(a.chrome||a.opr||a.safari||a.vivaldi||a.mobile===!0&&a.ios!==!0&&c!==!0)&&(a.webkit=!0),a.opr&&(s.browser="opera",a.opera=!0),a.safari&&(a.blackberry||a.bb?(s.browser="blackberry",a.blackberry=!0):a.playbook?(s.browser="playbook",a.playbook=!0):a.android?(s.browser="android",a.android=!0):a.kindle?(s.browser="kindle",a.kindle=!0):a.silk&&(s.browser="silk",a.silk=!0)),a.name=s.browser,a.platform=s.platform,l.indexOf("electron")!==-1)a.electron=!0;else if(document.location.href.indexOf("-extension://")!==-1)a.bex=!0;else{if(window.Capacitor!==void 0?(a.capacitor=!0,a.nativeMobile=!0,a.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(a.cordova=!0,a.nativeMobile=!0,a.nativeMobileWrapper="cordova"),vn.value===!0&&(Hi={is:{...a}}),Wu===!0&&a.mac===!0&&(a.desktop===!0&&a.safari===!0||a.nativeMobile===!0&&a.android!==!0&&a.ios!==!0&&a.ipad!==!0)){delete a.mac,delete a.desktop;const d=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(a,{mobile:!0,ios:!0,platform:d,[d]:!0})}a.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete a.desktop,a.mobile=!0)}return a}const Gu=navigator.userAgent||navigator.vendor||window.opera,th={has:{touch:!1,webStorage:!1},within:{iframe:!1}},_t={userAgent:Gu,is:eh(Gu),has:{touch:Wu},within:{iframe:window.self!==window.top}},Wi={install(t){const{$q:l}=t;vn.value===!0?(t.onSSRHydrated.push(()=>{Object.assign(l.platform,_t),vn.value=!1}),l.platform=r.reactive(this)):l.platform=this}};{let t;xo(_t.has,"webStorage",()=>{if(t!==void 0)return t;try{if(window.localStorage)return t=!0,!0}catch{}return t=!1,!1}),Object.assign(Wi,_t),vn.value===!0&&(Object.assign(Wi,Hi,th),Hi=null)}function We(t){return r.markRaw(r.defineComponent(t))}function ju(t){return r.markRaw(t)}function en(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 i,s;if(t.constructor===Array){if(i=t.length,i!==l.length)return!1;for(s=i;s--!==0;)if(en(t[s],l[s])!==!0)return!1;return!0}if(t.constructor===Map){if(t.size!==l.size)return!1;let c=t.entries();for(s=c.next();s.done!==!0;){if(l.has(s.value[0])!==!0)return!1;s=c.next()}for(c=t.entries(),s=c.next();s.done!==!0;){if(en(s.value[1],l.get(s.value[0]))!==!0)return!1;s=c.next()}return!0}if(t.constructor===Set){if(t.size!==l.size)return!1;const c=t.entries();for(s=c.next();s.done!==!0;){if(l.has(s.value[0])!==!0)return!1;s=c.next()}return!0}if(t.buffer!=null&&t.buffer.constructor===ArrayBuffer){if(i=t.length,i!==l.length)return!1;for(s=i;s--!==0;)if(t[s]!==l[s])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 a=Object.keys(t).filter(c=>t[c]!==void 0);if(i=a.length,i!==Object.keys(l).filter(c=>l[c]!==void 0).length)return!1;for(s=i;s--!==0;){const c=a[s];if(en(t[c],l[c])!==!0)return!1}return!0}return t!==t&&l!==l}const Ku={threshold:0,root:null,rootMargin:"0px"};function Qu(t,l,i){let s,a,c;typeof i=="function"?(s=i,a=Ku,c=l.cfg===void 0):(s=i.handler,a=Object.assign({},Ku,i.cfg),c=l.cfg===void 0||en(l.cfg,a)===!1),l.handler!==s&&(l.handler=s),c===!0&&(l.cfg=a,l.observer!==void 0&&l.observer.unobserve(t),l.observer=new IntersectionObserver(([d])=>{if(typeof l.handler=="function"){if(d.rootBounds===null&&document.body.contains(t)===!0){l.observer.unobserve(t),l.observer.observe(t);return}(l.handler(d,l.observer)===!1||l.once===!0&&d.isIntersecting===!0)&&Zu(t)}},a),l.observer.observe(t))}function Zu(t){const l=t.__qvisible;l!==void 0&&(l.observer!==void 0&&l.observer.unobserve(t),delete t.__qvisible)}const nh=ju({name:"intersection",mounted(t,{modifiers:l,value:i}){const s={once:l.once===!0};Qu(t,s,i),t.__qvisible=s},updated(t,l){const i=t.__qvisible;i!==void 0&&Qu(t,i,l.value)},beforeUnmount:Zu});function at(t,l){return t!==void 0&&t()||l}function rh(t,l){if(t!==void 0){const i=t();if(i!=null)return i.slice()}return l}function Ln(t,l){return t!==void 0?l.concat(t()):l}function oh(t,l){return t===void 0?l:l!==void 0?l.concat(t()):t()}function Yu(t,l,i,s,a,c){l.key=s+a;const d=r.h(t,l,i);return a===!0?r.withDirectives(d,c()):d}const ih=We({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:i}){const s=r.ref(vn.value===!0?t.ssrPrerender:!1),a=r.computed(()=>t.root!==void 0||t.margin!==void 0||t.threshold!==void 0?{handler:v,cfg:{root:t.root,rootMargin:t.margin,threshold:t.threshold}}:v),c=r.computed(()=>t.disable!==!0&&(vn.value!==!0||t.once!==!0||t.ssrPrerender!==!0)),d=r.computed(()=>[[nh,a.value,void 0,{once:t.once}]]),h=r.computed(()=>`--q-transition-duration: ${t.transitionDuration}ms`);function v(m){s.value!==m.isIntersecting&&(s.value=m.isIntersecting,t.onVisibility!==void 0&&i("visibility",s.value))}function y(){if(s.value===!0)return[r.h("div",{key:"content",style:h.value},at(l.default))];if(l.hidden!==void 0)return[r.h("div",{key:"hidden",style:h.value},l.hidden())]}return()=>{const m=t.transition?[r.h(r.Transition,{name:"q-transition--"+t.transition},y)]:y();return Yu(t.tag,{class:"q-intersection"},m,"main",c.value,()=>d.value)}}}),Gi={xs:18,sm:24,md:32,lg:38,xl:46},Ao={size:String};function Eo(t,l=Gi){return r.computed(()=>t.size!==void 0?{fontSize:t.size in l?`${l[t.size]}px`:t.size}:null)}const lh={size:{type:[String,Number],default:"1em"},color:String};function ah(t){return{cSize:r.computed(()=>t.size in Gi?`${Gi[t.size]}px`:t.size),classes:r.computed(()=>"q-spinner"+(t.color?` text-${t.color}`:""))}}const ji=We({name:"QSpinner",props:{...lh,thickness:{type:Number,default:5}},setup(t){const{cSize:l,classes:i}=ah(t);return()=>r.h("svg",{class:i.value+" q-spinner-mat",width:l.value,height:l.value,viewBox:"25 25 50 50"},[r.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":t.thickness,"stroke-miterlimit":"10"})])}}),uh={ratio:[String,Number]};function sh(t,l){return r.computed(()=>{const i=Number(t.ratio||(l!==void 0?l.value:void 0));return isNaN(i)!==!0&&i>0?{paddingBottom:`${100/i}%`}:null})}function Ki(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 Xu(t){return t.appContext.config.globalProperties.$router!==void 0}function Mr(t){return t.isUnmounted===!0||t.isDeactivated===!0}function Lr(){let t=null;const l=r.getCurrentInstance();function i(){t!==null&&(clearTimeout(t),t=null)}return r.onDeactivated(i),r.onBeforeUnmount(i),{removeTimeout:i,registerTimeout(s,a){i(),Mr(l)===!1&&(t=setTimeout(()=>{t=null,s()},a))}}}const ch=We({name:"QImg",props:{...uh,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:i}){const s=r.ref(t.initialRatio),a=sh(t,s),c=r.getCurrentInstance(),{registerTimeout:d,removeTimeout:h}=Lr(),{registerTimeout:v,removeTimeout:y}=Lr(),m=r.computed(()=>t.placeholderSrc!==void 0?{src:t.placeholderSrc}:null),b=r.computed(()=>t.errorSrc!==void 0?{src:t.errorSrc,__qerror:!0}:null),x=[r.ref(null),r.ref(m.value)],A=r.ref(0),w=r.ref(!1),F=r.ref(!1),k=r.computed(()=>`q-img q-img--${t.noNativeMenu===!0?"no-":""}menu`),q=r.computed(()=>({width:t.width,height:t.height})),D=r.computed(()=>`q-img__image ${t.imgClass!==void 0?t.imgClass+" ":""}q-img__image--with${t.noTransition===!0?"out":""}-transition q-img__image--`),L=r.computed(()=>({...t.imgStyle,objectFit:t.fit,objectPosition:t.position}));function K(){if(y(),t.loadingShowDelay===0){w.value=!0;return}v(()=>{w.value=!0},t.loadingShowDelay)}function W(){y(),w.value=!1}function Q({target:O}){Mr(c)===!1&&(h(),s.value=O.naturalHeight===0?.5:O.naturalWidth/O.naturalHeight,j(O,1))}function j(O,te){te===1e3||Mr(c)===!0||(O.complete===!0?ie(O):d(()=>{j(O,te+1)},50))}function ie(O){Mr(c)!==!0&&(A.value=A.value^1,x[A.value].value=null,W(),O.getAttribute("__qerror")!=="true"&&(F.value=!1),i("load",O.currentSrc||O.src))}function N(O){h(),W(),F.value=!0,x[A.value].value=b.value,x[A.value^1].value=m.value,i("error",O)}function U(O){const te=x[O].value,$={key:"img_"+O,class:D.value,style:L.value,alt:t.alt,crossorigin:t.crossorigin,decoding:t.decoding,referrerpolicy:t.referrerpolicy,height:t.height,width:t.width,loading:t.loading,fetchpriority:t.fetchpriority,"aria-hidden":"true",draggable:t.draggable,...te};return A.value===O?Object.assign($,{class:$.class+"current",onLoad:Q,onError:N}):$.class+="loaded",r.h("div",{class:"q-img__container absolute-full",key:"img"+O},r.h("img",$))}function Z(){return w.value===!1?r.h("div",{key:"content",class:"q-img__content absolute-full q-anchor--skip"},at(l[F.value===!0?"error":"default"])):r.h("div",{key:"loading",class:"q-img__loading absolute-full flex flex-center"},l.loading!==void 0?l.loading():t.noSpinner===!0?void 0:[r.h(ji,{color:t.spinnerColor,size:t.spinnerSize})])}{let O=function(){r.watch(()=>t.src||t.srcset||t.sizes?{src:t.src,srcset:t.srcset,sizes:t.sizes}:null,te=>{h(),F.value=!1,te===null?(W(),x[A.value^1].value=m.value):K(),x[A.value].value=te},{immediate:!0})};vn.value===!0?r.onMounted(O):O()}return()=>{const O=[];return a.value!==null&&O.push(r.h("div",{key:"filler",style:a.value})),x[0].value!==null&&O.push(U(0)),x[1].value!==null&&O.push(U(1)),O.push(r.h(r.Transition,{name:"q-transition--fade"},Z)),r.h("div",{key:"main",class:k.value,style:q.value,role:"img","aria-label":t.alt},O)}}}),Ju="0 0 24 24",es=t=>t,Qi=t=>`ionicons ${t}`,ts={"mdi-":t=>`mdi ${t}`,"icon-":es,"bt-":t=>`bt ${t}`,"eva-":t=>`eva ${t}`,"ion-md":Qi,"ion-ios":Qi,"ion-logo":Qi,"iconfont ":es,"ti-":t=>`themify-icon ${t}`,"bi-":t=>`bootstrap-icons ${t}`},ns={o_:"-outlined",r_:"-round",s_:"-sharp"},rs={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},fh=new RegExp("^("+Object.keys(ts).join("|")+")"),dh=new RegExp("^("+Object.keys(ns).join("|")+")"),os=new RegExp("^("+Object.keys(rs).join("|")+")"),hh=/^[Mm]\s?[-+]?\.?\d/,mh=/^img:/,gh=/^svguse:/,ph=/^ion-/,vh=/^(fa-(sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,yt=We({name:"QIcon",props:{...Ao,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(t,{slots:l}){const{proxy:{$q:i}}=r.getCurrentInstance(),s=Eo(t),a=r.computed(()=>"q-icon"+(t.left===!0?" on-left":"")+(t.right===!0?" on-right":"")+(t.color!==void 0?` text-${t.color}`:"")),c=r.computed(()=>{let d,h=t.name;if(h==="none"||!h)return{none:!0};if(i.iconMapFn!==null){const m=i.iconMapFn(h);if(m!==void 0)if(m.icon!==void 0){if(h=m.icon,h==="none"||!h)return{none:!0}}else return{cls:m.cls,content:m.content!==void 0?m.content:" "}}if(hh.test(h)===!0){const[m,b=Ju]=h.split("|");return{svg:!0,viewBox:b,nodes:m.split("&&").map(x=>{const[A,w,F]=x.split("@@");return r.h("path",{style:w,d:A,transform:F})})}}if(mh.test(h)===!0)return{img:!0,src:h.substring(4)};if(gh.test(h)===!0){const[m,b=Ju]=h.split("|");return{svguse:!0,src:m.substring(7),viewBox:b}}let v=" ";const y=h.match(fh);if(y!==null)d=ts[y[1]](h);else if(vh.test(h)===!0)d=h;else if(ph.test(h)===!0)d=`ionicons ion-${i.platform.is.ios===!0?"ios":"md"}${h.substring(3)}`;else if(os.test(h)===!0){d="notranslate material-symbols";const m=h.match(os);m!==null&&(h=h.substring(6),d+=rs[m[1]]),v=h}else{d="notranslate material-icons";const m=h.match(dh);m!==null&&(h=h.substring(2),d+=ns[m[1]]),v=h}return{cls:d,content:v}});return()=>{const d={class:a.value,style:s.value,"aria-hidden":"true",role:"presentation"};return c.value.none===!0?r.h(t.tag,d,at(l.default)):c.value.img===!0?r.h(t.tag,d,Ln(l.default,[r.h("img",{src:c.value.src})])):c.value.svg===!0?r.h(t.tag,d,Ln(l.default,[r.h("svg",{viewBox:c.value.viewBox||"0 0 24 24"},c.value.nodes)])):c.value.svguse===!0?r.h(t.tag,d,Ln(l.default,[r.h("svg",{viewBox:c.value.viewBox},[r.h("use",{"xlink:href":c.value.src})])])):(c.value.cls!==void 0&&(d.class+=" "+c.value.cls),r.h(t.tag,d,Ln(l.default,[c.value.content])))}}}),_h={class:"card-select-container"},yh=["onClick"],bh={class:"check"},wh={class:"row justify-center items-center",style:{height:"100%"}},Sh=["onClick"],Ch=r.defineComponent({__name:"CardsSelectControl",props:r.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=r.useModel(t,"modelValue"),i=t,{control:s}=r.toRefs(i);function a(h){if(s.value.multiple){let v=Pe.cloneDeep(l.value);h.exclusive?v=[h.value]:(v=v.filter(y=>{var m,b;return!((b=(m=s.value.options)==null?void 0:m.find(x=>x.value===y))!=null&&b.exclusive)}),v.includes(h.value)?v=v.filter(y=>y!==h.value):v.push(h.value)),l.value=v}else l.value=h.value}function c(h){return d(h)?"active":""}function d(h){let v;return s.value.multiple?v=(l.value||[]).includes(String(h.value)):v=l.value===h.value,v}return(h,v)=>{const y=r.resolveComponent("ControlLabel");return r.openBlock(),r.createElementBlock(r.Fragment,null,[r.unref(s).label?(r.openBlock(),r.createBlock(y,{key:0,label:r.unref(s).label},null,8,["label"])):r.createCommentVNode("",!0),r.createElementVNode("div",_h,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(s).options,(m,b)=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:b},[m.image?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(`image-card ${c(m)}`),onClick:()=>a(m)},[r.createVNode(ch,{src:m.image,height:"200px",width:"200px",fit:"fill",class:"image"},null,8,["src"]),r.createElementVNode("div",bh,[r.createElementVNode("div",wh,[d(m)?(r.openBlock(),r.createBlock(yt,{key:0,name:"check",size:"25px"})):r.createCommentVNode("",!0)])])],10,yh)):(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass(`card-option ${c(m)}`),onClick:()=>a(m)},[r.createElementVNode("span",null,r.toDisplayString(m.label),1)],10,Sh))],64))),128))])],64)}}}),Xe=(t,l)=>{const i=t.__vccOpts||t;for(const[s,a]of l)i[s]=a;return i},xh=Xe(Ch,[["__scopeId","data-v-148468d6"]]),Pn={dark:{type:Boolean,default:null}};function Vn(t,l){return r.computed(()=>t.dark===null?l.dark.isActive:t.dark)}function Ah(t,l){const i=r.ref(null),s=r.computed(()=>t.disable===!0?null:r.h("span",{ref:i,class:"no-outline",tabindex:-1}));function a(c){const d=l.value;c!==void 0&&c.type.indexOf("key")===0?d!==null&&document.activeElement!==d&&d.contains(document.activeElement)===!0&&d.focus():i.value!==null&&(c===void 0||d!==null&&d.contains(c.target)===!0)&&i.value.focus()}return{refocusTargetEl:s,refocusTarget:a}}const Zi={name:String};function Eh(t={}){return(l,i,s)=>{l[i](r.h("input",{class:"hidden"+(s||""),...t.value}))}}function is(t){return r.computed(()=>t.name||t.for)}const kh={xs:30,sm:35,md:40,lg:50,xl:60},dt={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const t=Object.defineProperty({},"passive",{get(){Object.assign(dt,{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 Bh(){}function ls(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 Oh(t){if(t.path)return t.path;if(t.composedPath)return t.composedPath();const l=[];let i=t.target;for(;i;){if(l.push(i),i.tagName==="HTML")return l.push(document),l.push(window),l;i=i.parentElement}}function Qt(t){t.stopPropagation()}function qt(t){t.cancelable!==!1&&t.preventDefault()}function Ge(t){t.cancelable!==!1&&t.preventDefault(),t.stopPropagation()}function Pr(t,l,i){const s=`__q_${l}_evt`;t[s]=t[s]!==void 0?t[s].concat(i):i,i.forEach(a=>{a[0].addEventListener(a[1],t[a[2]],dt[a[3]])})}function ko(t,l){const i=`__q_${l}_evt`;t[i]!==void 0&&(t[i].forEach(s=>{s[0].removeEventListener(s[1],t[s[2]],dt[s[3]])}),t[i]=void 0)}const as={...Pn,...Ao,...Zi,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]},us=["update:modelValue"];function ss(t,l){const{props:i,slots:s,emit:a,proxy:c}=r.getCurrentInstance(),{$q:d}=c,h=Vn(i,d),v=r.ref(null),{refocusTargetEl:y,refocusTarget:m}=Ah(i,v),b=Eo(i,kh),x=r.computed(()=>i.val!==void 0&&Array.isArray(i.modelValue)),A=r.computed(()=>{const O=r.toRaw(i.val);return x.value===!0?i.modelValue.findIndex(te=>r.toRaw(te)===O):-1}),w=r.computed(()=>x.value===!0?A.value!==-1:r.toRaw(i.modelValue)===r.toRaw(i.trueValue)),F=r.computed(()=>x.value===!0?A.value===-1:r.toRaw(i.modelValue)===r.toRaw(i.falseValue)),k=r.computed(()=>w.value===!1&&F.value===!1),q=r.computed(()=>i.disable===!0?-1:i.tabindex||0),D=r.computed(()=>`q-${t} cursor-pointer no-outline row inline no-wrap items-center`+(i.disable===!0?" disabled":"")+(h.value===!0?` q-${t}--dark`:"")+(i.dense===!0?` q-${t}--dense`:"")+(i.leftLabel===!0?" reverse":"")),L=r.computed(()=>{const O=w.value===!0?"truthy":F.value===!0?"falsy":"indet",te=i.color!==void 0&&(i.keepColor===!0||(t==="toggle"?w.value===!0:F.value!==!0))?` text-${i.color}`:"";return`q-${t}__inner relative-position non-selectable q-${t}__inner--${O}${te}`}),K=r.computed(()=>{const O={type:"checkbox"};return i.name!==void 0&&Object.assign(O,{".checked":w.value,"^checked":w.value===!0?"checked":void 0,name:i.name,value:x.value===!0?i.val:i.trueValue}),O}),W=Eh(K),Q=r.computed(()=>{const O={tabindex:q.value,role:t==="toggle"?"switch":"checkbox","aria-label":i.label,"aria-checked":k.value===!0?"mixed":w.value===!0?"true":"false"};return i.disable===!0&&(O["aria-disabled"]="true"),O});function j(O){O!==void 0&&(Ge(O),m(O)),i.disable!==!0&&a("update:modelValue",ie(),O)}function ie(){if(x.value===!0){if(w.value===!0){const O=i.modelValue.slice();return O.splice(A.value,1),O}return i.modelValue.concat([i.val])}if(w.value===!0){if(i.toggleOrder!=="ft"||i.toggleIndeterminate===!1)return i.falseValue}else if(F.value===!0){if(i.toggleOrder==="ft"||i.toggleIndeterminate===!1)return i.trueValue}else return i.toggleOrder!=="ft"?i.trueValue:i.falseValue;return i.indeterminateValue}function N(O){(O.keyCode===13||O.keyCode===32)&&Ge(O)}function U(O){(O.keyCode===13||O.keyCode===32)&&j(O)}const Z=l(w,k);return Object.assign(c,{toggle:j}),()=>{const O=Z();i.disable!==!0&&W(O,"unshift",` q-${t}__native absolute q-ma-none q-pa-none`);const te=[r.h("div",{class:L.value,style:b.value,"aria-hidden":"true"},O)];y.value!==null&&te.push(y.value);const $=i.label!==void 0?Ln(s.default,[i.label]):at(s.default);return $!==void 0&&te.push(r.h("div",{class:`q-${t}__label q-anchor--skip`},$)),r.h("div",{ref:v,class:D.value,...Q.value,onClick:j,onKeydown:N,onKeyup:U},te)}}const Th=r.h("div",{key:"svg",class:"q-checkbox__bg absolute"},[r.h("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[r.h("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),r.h("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),cs=We({name:"QCheckbox",props:as,emits:us,setup(t){function l(i,s){const a=r.computed(()=>(i.value===!0?t.checkedIcon:s.value===!0?t.indeterminateIcon:t.uncheckedIcon)||null);return()=>a.value!==null?[r.h("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[r.h(yt,{class:"q-checkbox__icon",name:a.value})])]:[Th]}return ss("checkbox",l)}}),fs=r.defineComponent({__name:"SimpleCheckbox",props:r.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=r.useModel(t,"modelValue");return(i,s)=>(r.openBlock(),r.createBlock(cs,{outlined:"",label:i.control.label,color:"green-10","model-value":!!l.value,"onUpdate:modelValue":s[0]||(s[0]=a=>l.value=!l.value),style:{height:"66.2px"}},null,8,["label","model-value"]))}}),Rh=We({name:"QToggle",props:{...as,icon:String,iconColor:String},emits:us,setup(t){function l(i,s){const a=r.computed(()=>(i.value===!0?t.checkedIcon:s.value===!0?t.indeterminateIcon:t.uncheckedIcon)||t.icon),c=r.computed(()=>i.value===!0?t.iconColor:null);return()=>[r.h("div",{class:"q-toggle__track"}),r.h("div",{class:"q-toggle__thumb absolute flex flex-center no-wrap"},a.value!==void 0?[r.h(yt,{name:a.value,color:c.value})]:void 0)]}return ss("toggle",l)}}),Ih=r.defineComponent({__name:"SimpleSwitch",props:r.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=r.useModel(t,"modelValue");return(i,s)=>(r.openBlock(),r.createBlock(Rh,{falseValue:0,trueValue:1,outlined:"",label:i.control.label,modelValue:l.value,"onUpdate:modelValue":s[0]||(s[0]=a=>l.value=a),leftLabel:"",color:"green-10",style:{height:"66.2px"}},null,8,["label","modelValue"]))}}),Bo=We({name:"QCard",props:{...Pn,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(t,{slots:l}){const{proxy:{$q:i}}=r.getCurrentInstance(),s=Vn(t,i),a=r.computed(()=>"q-card"+(s.value===!0?" q-card--dark q-dark":"")+(t.bordered===!0?" q-card--bordered":"")+(t.square===!0?" q-card--square no-border-radius":"")+(t.flat===!0?" q-card--flat no-shadow":""));return()=>r.h(t.tag,{class:a.value},at(l.default))}});let Yi,Oo=0;const et=new Array(256);for(let t=0;t<256;t++)et[t]=(t+256).toString(16).substring(1);const Fh=(()=>{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 i=new Uint8Array(l);return t.getRandomValues(i),i}}return l=>{const i=[];for(let s=l;s>0;s--)i.push(Math.floor(Math.random()*256));return i}})(),ds=4096;function Xi(){(Yi===void 0||Oo+16>ds)&&(Oo=0,Yi=Fh(ds));const t=Array.prototype.slice.call(Yi,Oo,Oo+=16);return t[6]=t[6]&15|64,t[8]=t[8]&63|128,et[t[0]]+et[t[1]]+et[t[2]]+et[t[3]]+"-"+et[t[4]]+et[t[5]]+"-"+et[t[6]]+et[t[7]]+"-"+et[t[8]]+et[t[9]]+"-"+et[t[10]]+et[t[11]]+et[t[12]]+et[t[13]]+et[t[14]]+et[t[15]]}function Mh(t){return t??null}function hs(t,l){return t??(l===!0?`f_${Xi()}`:null)}function Lh({getValue:t,required:l=!0}={}){if(vn.value===!0){const i=t!==void 0?r.ref(Mh(t())):r.ref(null);return l===!0&&i.value===null&&r.onMounted(()=>{i.value=`f_${Xi()}`}),t!==void 0&&r.watch(t,s=>{i.value=hs(s,l)}),i}return t!==void 0?r.computed(()=>hs(t(),l)):r.ref(`f_${Xi()}`)}const ms=/^on[A-Z]/;function Ph(){const{attrs:t,vnode:l}=r.getCurrentInstance(),i={listeners:r.ref({}),attributes:r.ref({})};function s(){const a={},c={};for(const d in t)d!=="class"&&d!=="style"&&ms.test(d)===!1&&(a[d]=t[d]);for(const d in l.props)ms.test(d)===!0&&(c[d]=l.props[d]);i.attributes.value=a,i.listeners.value=c}return r.onBeforeUpdate(s),s(),i}const Vh="_q_",Nh="_q_fo_";function qh({validate:t,resetValidation:l,requiresQForm:i}){const s=r.inject(Nh,!1);if(s!==!1){const{props:a,proxy:c}=r.getCurrentInstance();Object.assign(c,{validate:t,resetValidation:l}),r.watch(()=>a.disable,d=>{d===!0?(typeof l=="function"&&l(),s.unbindComponent(c)):s.bindComponent(c)}),r.onMounted(()=>{a.disable!==!0&&s.bindComponent(c)}),r.onBeforeUnmount(()=>{a.disable!==!0&&s.unbindComponent(c)})}else i===!0&&console.error("Parent QForm not found on useFormChild()!")}const gs=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,ps=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,vs=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,To=/^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])\)$/,Ro=/^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)\)$/,Ji={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=>gs.test(t),hexaColor:t=>ps.test(t),hexOrHexaColor:t=>vs.test(t),rgbColor:t=>To.test(t),rgbaColor:t=>Ro.test(t),rgbOrRgbaColor:t=>To.test(t)||Ro.test(t),hexOrRgbColor:t=>gs.test(t)||To.test(t),hexaOrRgbaColor:t=>ps.test(t)||Ro.test(t),anyColor:t=>vs.test(t)||To.test(t)||Ro.test(t)};function _s(t,l=250,i){let s=null;function a(){const c=arguments,d=()=>{s=null,t.apply(this,c)};s!==null&&clearTimeout(s),s=setTimeout(d,l)}return a.cancel=()=>{s!==null&&clearTimeout(s)},a}const $h=[!0,!1,"ondemand"],Dh={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:t=>$h.includes(t)}};function Uh(t,l){const{props:i,proxy:s}=r.getCurrentInstance(),a=r.ref(!1),c=r.ref(null),d=r.ref(!1);qh({validate:F,resetValidation:w});let h=0,v;const y=r.computed(()=>i.rules!==void 0&&i.rules!==null&&i.rules.length!==0),m=r.computed(()=>i.disable!==!0&&y.value===!0&&l.value===!1),b=r.computed(()=>i.error===!0||a.value===!0),x=r.computed(()=>typeof i.errorMessage=="string"&&i.errorMessage.length!==0?i.errorMessage:c.value);r.watch(()=>i.modelValue,()=>{d.value=!0,m.value===!0&&i.lazyRules===!1&&k()});function A(){i.lazyRules!=="ondemand"&&m.value===!0&&d.value===!0&&k()}r.watch(()=>i.reactiveRules,q=>{q===!0?v===void 0&&(v=r.watch(()=>i.rules,A,{immediate:!0,deep:!0})):v!==void 0&&(v(),v=void 0)},{immediate:!0}),r.watch(()=>i.lazyRules,A),r.watch(t,q=>{q===!0?d.value=!0:m.value===!0&&i.lazyRules!=="ondemand"&&k()});function w(){h++,l.value=!1,d.value=!1,a.value=!1,c.value=null,k.cancel()}function F(q=i.modelValue){if(i.disable===!0||y.value===!1)return!0;const D=++h,L=l.value!==!0?()=>{d.value=!0}:()=>{},K=(Q,j)=>{Q===!0&&L(),a.value=Q,c.value=j||null,l.value=!1},W=[];for(let Q=0;Q<i.rules.length;Q++){const j=i.rules[Q];let ie;if(typeof j=="function"?ie=j(q,Ji):typeof j=="string"&&Ji[j]!==void 0&&(ie=Ji[j](q)),ie===!1||typeof ie=="string")return K(!0,ie),!1;ie!==!0&&ie!==void 0&&W.push(ie)}return W.length===0?(K(!1),!0):(l.value=!0,Promise.all(W).then(Q=>{if(Q===void 0||Array.isArray(Q)===!1||Q.length===0)return D===h&&K(!1),!0;const j=Q.find(ie=>ie===!1||typeof ie=="string");return D===h&&K(j!==void 0,j),j===void 0},Q=>(D===h&&(console.error(Q),K(!0)),!1)))}const k=_s(F,0);return r.onBeforeUnmount(()=>{v!==void 0&&v(),k.cancel()}),Object.assign(s,{resetValidation:w,validate:F}),xo(s,"hasError",()=>b.value),{isDirtyModel:d,hasRules:y,hasError:b,errorMessage:x,validate:F,resetValidation:w}}let Nn=[],Vr=[];function ys(t){Vr=Vr.filter(l=>l!==t)}function zh(t){ys(t),Vr.push(t)}function bs(t){ys(t),Vr.length===0&&Nn.length!==0&&(Nn[Nn.length-1](),Nn=[])}function Io(t){Vr.length===0?t():Nn.push(t)}function Hh(t){Nn=Nn.filter(l=>l!==t)}function Nr(t){return t!=null&&(""+t).length!==0}const Fo={...{...Pn,...Dh,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]},el=["update:modelValue","clear","focus","blur"];function tl({requiredForAttr:t=!0,tagProp:l}={}){const{props:i,proxy:s}=r.getCurrentInstance(),a=Vn(i,s.$q),c=Lh({required:t,getValue:()=>i.for});return{requiredForAttr:t,tag:l===!0?r.computed(()=>i.tag):{value:"label"},isDark:a,editable:r.computed(()=>i.disable!==!0&&i.readonly!==!0),innerLoading:r.ref(!1),focused:r.ref(!1),hasPopupOpen:!1,splitAttrs:Ph(),targetUid:c,rootRef:r.ref(null),targetRef:r.ref(null),controlRef:r.ref(null)}}function nl(t){const{props:l,emit:i,slots:s,attrs:a,proxy:c}=r.getCurrentInstance(),{$q:d}=c;let h=null;t.hasValue===void 0&&(t.hasValue=r.computed(()=>Nr(l.modelValue))),t.emitValue===void 0&&(t.emitValue=H=>{i("update:modelValue",H)}),t.controlEvents===void 0&&(t.controlEvents={onFocusin:N,onFocusout:U}),Object.assign(t,{clearValue:Z,onControlFocusin:N,onControlFocusout:U,focus:j}),t.computedCounter===void 0&&(t.computedCounter=r.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,se=l.maxlength!==void 0?l.maxlength:l.maxValues;return H+(se!==void 0?" / "+se:"")}}));const{isDirtyModel:v,hasRules:y,hasError:m,errorMessage:b,resetValidation:x}=Uh(t.focused,t.innerLoading),A=t.floatingLabel!==void 0?r.computed(()=>l.stackLabel===!0||t.focused.value===!0||t.floatingLabel.value===!0):r.computed(()=>l.stackLabel===!0||t.focused.value===!0||t.hasValue.value===!0),w=r.computed(()=>l.bottomSlots===!0||l.hint!==void 0||y.value===!0||l.counter===!0||l.error!==null),F=r.computed(()=>l.filled===!0?"filled":l.outlined===!0?"outlined":l.borderless===!0?"borderless":l.standout?"standout":"standard"),k=r.computed(()=>`q-field row no-wrap items-start q-field--${F.value}`+(t.fieldClass!==void 0?` ${t.fieldClass.value}`:"")+(l.rounded===!0?" q-field--rounded":"")+(l.square===!0?" q-field--square":"")+(A.value===!0?" q-field--float":"")+(D.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":"")+(m.value===!0?" q-field--error":"")+(m.value===!0||t.focused.value===!0?" q-field--highlighted":"")+(l.hideBottomSpace!==!0&&w.value===!0?" q-field--with-bottom":"")+(l.disable===!0?" q-field--disabled":l.readonly===!0?" q-field--readonly":"")),q=r.computed(()=>"q-field__control relative-position row no-wrap"+(l.bgColor!==void 0?` bg-${l.bgColor}`:"")+(m.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}`:"")),D=r.computed(()=>l.labelSlot===!0||l.label!==void 0),L=r.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(l.labelColor!==void 0&&m.value!==!0?` text-${l.labelColor}`:"")),K=r.computed(()=>({id:t.targetUid.value,editable:t.editable.value,focused:t.focused.value,floatingLabel:A.value,modelValue:l.modelValue,emitValue:t.emitValue})),W=r.computed(()=>{const H={};return t.targetUid.value&&(H.for=t.targetUid.value),l.disable===!0&&(H["aria-disabled"]="true"),H});function Q(){const H=document.activeElement;let se=t.targetRef!==void 0&&t.targetRef.value;se&&(H===null||H.id!==t.targetUid.value)&&(se.hasAttribute("tabindex")===!0||(se=se.querySelector("[tabindex]")),se&&se!==H&&se.focus({preventScroll:!0}))}function j(){Io(Q)}function ie(){Hh(Q);const H=document.activeElement;H!==null&&t.rootRef.value.contains(H)&&H.blur()}function N(H){h!==null&&(clearTimeout(h),h=null),t.editable.value===!0&&t.focused.value===!1&&(t.focused.value=!0,i("focus",H))}function U(H,se){h!==null&&clearTimeout(h),h=setTimeout(()=>{h=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,i("blur",H)),se!==void 0&&se())})}function Z(H){Ge(H),d.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),i("update:modelValue",null),i("clear",l.modelValue),r.nextTick(()=>{const se=v.value;x(),v.value=se})}function O(){const H=[];return s.prepend!==void 0&&H.push(r.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:qt},s.prepend())),H.push(r.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},te())),m.value===!0&&l.noErrorIcon===!1&&H.push(le("error",[r.h(yt,{name:d.iconSet.field.error,color:"negative"})])),l.loading===!0||t.innerLoading.value===!0?H.push(le("inner-loading-append",s.loading!==void 0?s.loading():[r.h(ji,{color:l.color})])):l.clearable===!0&&t.hasValue.value===!0&&t.editable.value===!0&&H.push(le("inner-clearable-append",[r.h(yt,{class:"q-field__focusable-action",tag:"button",name:l.clearIcon||d.iconSet.field.clear,tabindex:0,type:"button","aria-hidden":null,role:null,onClick:Z})])),s.append!==void 0&&H.push(r.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:qt},s.append())),t.getInnerAppend!==void 0&&H.push(le("inner-append",t.getInnerAppend())),t.getControlChild!==void 0&&H.push(t.getControlChild()),H}function te(){const H=[];return l.prefix!==void 0&&l.prefix!==null&&H.push(r.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()):s.rawControl!==void 0?H.push(s.rawControl()):s.control!==void 0&&H.push(r.h("div",{ref:t.targetRef,class:"q-field__native row",tabindex:-1,...t.splitAttrs.attributes.value,"data-autofocus":l.autofocus===!0||void 0},s.control(K.value))),D.value===!0&&H.push(r.h("div",{class:L.value},at(s.label,l.label))),l.suffix!==void 0&&l.suffix!==null&&H.push(r.h("div",{class:"q-field__suffix no-pointer-events row items-center"},l.suffix)),H.concat(at(s.default))}function $(){let H,se;m.value===!0?b.value!==null?(H=[r.h("div",{role:"alert"},b.value)],se=`q--slot-error-${b.value}`):(H=at(s.error),se="q--slot-error"):(l.hideHint!==!0||t.focused.value===!0)&&(l.hint!==void 0?(H=[r.h("div",l.hint)],se=`q--slot-hint-${l.hint}`):(H=at(s.hint),se="q--slot-hint"));const Be=l.counter===!0||s.counter!==void 0;if(l.hideBottomSpace===!0&&Be===!1&&H===void 0)return;const ge=r.h("div",{key:se,class:"q-field__messages col"},H);return r.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(l.hideBottomSpace!==!0?"animated":"stale"),onClick:qt},[l.hideBottomSpace===!0?ge:r.h(r.Transition,{name:"q-transition--field-message"},()=>ge),Be===!0?r.h("div",{class:"q-field__counter"},s.counter!==void 0?s.counter():t.computedCounter.value):null])}function le(H,se){return se===null?null:r.h("div",{key:H,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},se)}let ae=!1;return r.onDeactivated(()=>{ae=!0}),r.onActivated(()=>{ae===!0&&l.autofocus===!0&&c.focus()}),l.autofocus===!0&&r.onMounted(()=>{c.focus()}),r.onBeforeUnmount(()=>{h!==null&&clearTimeout(h)}),Object.assign(c,{focus:j,blur:ie}),function(){const se=t.getControl===void 0&&s.control===void 0?{...t.splitAttrs.attributes.value,"data-autofocus":l.autofocus===!0||void 0,...W.value}:W.value;return r.h(t.tag.value,{ref:t.rootRef,class:[k.value,a.class],style:a.style,...se},[s.before!==void 0?r.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:qt},s.before()):null,r.h("div",{class:"q-field__inner relative-position col self-stretch"},[r.h("div",{ref:t.controlRef,class:q.value,tabindex:-1,...t.controlEvents},O()),w.value===!0?$():null]),s.after!==void 0?r.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:qt},s.after()):null])}}function rl(t){return t!==Object(t)||t.isComposing===!0||t.qKeyEvent===!0}function qn(t,l){return rl(t)===!0?!1:[].concat(l).includes(t.keyCode)}const ws={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},Mo={"#":{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()}},Ss=Object.keys(Mo);Ss.forEach(t=>{Mo[t].regex=new RegExp(Mo[t].pattern)});const Wh=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+Ss.join("")+"])|(.)","g"),Cs=/[.*+?^${}()|[\]\\]/g,je="",Gh={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function jh(t,l,i,s){let a,c,d,h,v,y;const m=r.ref(null),b=r.ref(A());function x(){return t.autogrow===!0||["textarea","text","search","url","tel","password"].includes(t.type)}r.watch(()=>t.type+t.autogrow,F),r.watch(()=>t.mask,N=>{if(N!==void 0)k(b.value,!0);else{const U=j(b.value);F(),t.modelValue!==U&&l("update:modelValue",U)}}),r.watch(()=>t.fillMask+t.reverseFillMask,()=>{m.value===!0&&k(b.value,!0)}),r.watch(()=>t.unmaskedValue,()=>{m.value===!0&&k(b.value)});function A(){if(F(),m.value===!0){const N=W(j(t.modelValue));return t.fillMask!==!1?ie(N):N}return t.modelValue}function w(N){if(N<a.length)return a.slice(-N);let U="",Z=a;const O=Z.indexOf(je);if(O!==-1){for(let te=N-Z.length;te>0;te--)U+=je;Z=Z.slice(0,O)+U+Z.slice(O)}return Z}function F(){if(m.value=t.mask!==void 0&&t.mask.length!==0&&x(),m.value===!1){h=void 0,a="",c="";return}const N=ws[t.mask]===void 0?t.mask:ws[t.mask],U=typeof t.fillMask=="string"&&t.fillMask.length!==0?t.fillMask.slice(0,1):"_",Z=U.replace(Cs,"\\$&"),O=[],te=[],$=[];let le=t.reverseFillMask===!0,ae="",H="";N.replace(Wh,(R,T,Y,pe,fe)=>{if(pe!==void 0){const G=Mo[pe];$.push(G),H=G.negate,le===!0&&(te.push("(?:"+H+"+)?("+G.pattern+"+)?(?:"+H+"+)?("+G.pattern+"+)?"),le=!1),te.push("(?:"+H+"+)?("+G.pattern+")?")}else if(Y!==void 0)ae="\\"+(Y==="\\"?"":Y),$.push(Y),O.push("([^"+ae+"]+)?"+ae+"?");else{const G=T!==void 0?T:fe;ae=G==="\\"?"\\\\\\\\":G.replace(Cs,"\\\\$&"),$.push(G),O.push("([^"+ae+"]+)?"+ae+"?")}});const se=new RegExp("^"+O.join("")+"("+(ae===""?".":"[^"+ae+"]")+"+)?"+(ae===""?"":"["+ae+"]*")+"$"),Be=te.length-1,ge=te.map((R,T)=>T===0&&t.reverseFillMask===!0?new RegExp("^"+Z+"*"+R):T===Be?new RegExp("^"+R+"("+(H===""?".":H)+"+)?"+(t.reverseFillMask===!0?"$":Z+"*")):new RegExp("^"+R));d=$,h=R=>{const T=se.exec(t.reverseFillMask===!0?R:R.slice(0,$.length+1));T!==null&&(R=T.slice(1).join(""));const Y=[],pe=ge.length;for(let fe=0,G=R;fe<pe;fe++){const re=ge[fe].exec(G);if(re===null)break;G=G.slice(re.shift().length),Y.push(...re)}return Y.length!==0?Y.join(""):R},a=$.map(R=>typeof R=="string"?R:je).join(""),c=a.split(je).join(U)}function k(N,U,Z){const O=s.value,te=O.selectionEnd,$=O.value.length-te,le=j(N);U===!0&&F();const ae=W(le),H=t.fillMask!==!1?ie(ae):ae,se=b.value!==H;O.value!==H&&(O.value=H),se===!0&&(b.value=H),document.activeElement===O&&r.nextTick(()=>{if(H===c){const ge=t.reverseFillMask===!0?c.length:0;O.setSelectionRange(ge,ge,"forward");return}if(Z==="insertFromPaste"&&t.reverseFillMask!==!0){const ge=O.selectionEnd;let R=te-1;for(let T=v;T<=R&&T<ge;T++)a[T]!==je&&R++;D.right(O,R);return}if(["deleteContentBackward","deleteContentForward"].indexOf(Z)!==-1){const ge=t.reverseFillMask===!0?te===0?H.length>ae.length?1:0:Math.max(0,H.length-(H===c?0:Math.min(ae.length,$)+1))+1:te;O.setSelectionRange(ge,ge,"forward");return}if(t.reverseFillMask===!0)if(se===!0){const ge=Math.max(0,H.length-(H===c?0:Math.min(ae.length,$+1)));ge===1&&te===1?O.setSelectionRange(ge,ge,"forward"):D.rightReverse(O,ge)}else{const ge=H.length-$;O.setSelectionRange(ge,ge,"backward")}else if(se===!0){const ge=Math.max(0,a.indexOf(je),Math.min(ae.length,te)-1);D.right(O,ge)}else{const ge=te-1;D.right(O,ge)}});const Be=t.unmaskedValue===!0?j(H):H;String(t.modelValue)!==Be&&(t.modelValue!==null||Be!=="")&&i(Be,!0)}function q(N,U,Z){const O=W(j(N.value));U=Math.max(0,a.indexOf(je),Math.min(O.length,U)),v=U,N.setSelectionRange(U,Z,"forward")}const D={left(N,U){const Z=a.slice(U-1).indexOf(je)===-1;let O=Math.max(0,U-1);for(;O>=0;O--)if(a[O]===je){U=O,Z===!0&&U++;break}if(O<0&&a[U]!==void 0&&a[U]!==je)return D.right(N,0);U>=0&&N.setSelectionRange(U,U,"backward")},right(N,U){const Z=N.value.length;let O=Math.min(Z,U+1);for(;O<=Z;O++)if(a[O]===je){U=O;break}else a[O-1]===je&&(U=O);if(O>Z&&a[U-1]!==void 0&&a[U-1]!==je)return D.left(N,Z);N.setSelectionRange(U,U,"forward")},leftReverse(N,U){const Z=w(N.value.length);let O=Math.max(0,U-1);for(;O>=0;O--)if(Z[O-1]===je){U=O;break}else if(Z[O]===je&&(U=O,O===0))break;if(O<0&&Z[U]!==void 0&&Z[U]!==je)return D.rightReverse(N,0);U>=0&&N.setSelectionRange(U,U,"backward")},rightReverse(N,U){const Z=N.value.length,O=w(Z),te=O.slice(0,U+1).indexOf(je)===-1;let $=Math.min(Z,U+1);for(;$<=Z;$++)if(O[$-1]===je){U=$,U>0&&te===!0&&U--;break}if($>Z&&O[U-1]!==void 0&&O[U-1]!==je)return D.leftReverse(N,Z);N.setSelectionRange(U,U,"forward")}};function L(N){l("click",N),y=void 0}function K(N){if(l("keydown",N),rl(N)===!0||N.altKey===!0)return;const U=s.value,Z=U.selectionStart,O=U.selectionEnd;if(N.shiftKey||(y=void 0),N.keyCode===37||N.keyCode===39){N.shiftKey&&y===void 0&&(y=U.selectionDirection==="forward"?Z:O);const te=D[(N.keyCode===39?"right":"left")+(t.reverseFillMask===!0?"Reverse":"")];if(N.preventDefault(),te(U,y===Z?O:Z),N.shiftKey){const $=U.selectionStart;U.setSelectionRange(Math.min(y,$),Math.max(y,$),"forward")}}else N.keyCode===8&&t.reverseFillMask!==!0&&Z===O?(D.left(U,Z),U.setSelectionRange(U.selectionStart,O,"backward")):N.keyCode===46&&t.reverseFillMask===!0&&Z===O&&(D.rightReverse(U,O),U.setSelectionRange(Z,U.selectionEnd,"forward"))}function W(N){if(N==null||N==="")return"";if(t.reverseFillMask===!0)return Q(N);const U=d;let Z=0,O="";for(let te=0;te<U.length;te++){const $=N[Z],le=U[te];if(typeof le=="string")O+=le,$===le&&Z++;else if($!==void 0&&le.regex.test($))O+=le.transform!==void 0?le.transform($):$,Z++;else return O}return O}function Q(N){const U=d,Z=a.indexOf(je);let O=N.length-1,te="";for(let $=U.length-1;$>=0&&O!==-1;$--){const le=U[$];let ae=N[O];if(typeof le=="string")te=le+te,ae===le&&O--;else if(ae!==void 0&&le.regex.test(ae))do te=(le.transform!==void 0?le.transform(ae):ae)+te,O--,ae=N[O];while(Z===$&&ae!==void 0&&le.regex.test(ae));else return te}return te}function j(N){return typeof N!="string"||h===void 0?typeof N=="number"?h(""+N):N:h(N)}function ie(N){return c.length-N.length<=0?N:t.reverseFillMask===!0&&N.length!==0?c.slice(0,-N.length)+N:N+c.slice(N.length)}return{innerValue:b,hasMask:m,moveCursorForPaste:q,updateMaskValue:k,onMaskedKeydown:K,onMaskedClick:L}}function Kh(t,l){function i(){const s=t.modelValue;try{const a="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(s)===s&&("length"in s?Array.from(s):[s]).forEach(c=>{a.items.add(c)}),{files:a.files}}catch{return{files:void 0}}}return r.computed(()=>{if(t.type==="file")return i()})}const Qh=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,Zh=/[\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,Yh=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,Xh=/[a-z0-9_ -]$/i;function xs(t){return function(i){if(i.type==="compositionend"||i.type==="change"){if(i.target.qComposing!==!0)return;i.target.qComposing=!1,t(i)}else i.type==="compositionupdate"&&i.target.qComposing!==!0&&typeof i.data=="string"&&(_t.is.firefox===!0?Xh.test(i.data)===!1:Qh.test(i.data)===!0||Zh.test(i.data)===!0||Yh.test(i.data)===!0)===!0&&(i.target.qComposing=!0)}}const As=We({name:"QInput",inheritAttrs:!1,props:{...Fo,...Gh,...Zi,modelValue:[String,Number],shadowText:String,type:{type:String,default:"text"},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...el,"paste","change","keydown","click","animationend"],setup(t,{emit:l,attrs:i}){const{proxy:s}=r.getCurrentInstance(),{$q:a}=s,c={};let d=NaN,h,v,y=null,m;const b=r.ref(null),x=is(t),{innerValue:A,hasMask:w,moveCursorForPaste:F,updateMaskValue:k,onMaskedKeydown:q,onMaskedClick:D}=jh(t,l,ae,b),L=Kh(t),K=r.computed(()=>Nr(A.value)),W=xs($),Q=tl(),j=r.computed(()=>t.type==="textarea"||t.autogrow===!0),ie=r.computed(()=>j.value===!0||["text","search","url","tel","password"].includes(t.type)),N=r.computed(()=>{const T={...Q.splitAttrs.listeners.value,onInput:$,onPaste:te,onChange:se,onBlur:Be,onFocus:Qt};return T.onCompositionstart=T.onCompositionupdate=T.onCompositionend=W,w.value===!0&&(T.onKeydown=q,T.onClick=D),t.autogrow===!0&&(T.onAnimationend=le),T}),U=r.computed(()=>{const T={tabindex:0,"data-autofocus":t.autofocus===!0||void 0,rows:t.type==="textarea"?6:void 0,"aria-label":t.label,name:x.value,...Q.splitAttrs.attributes.value,id:Q.targetUid.value,maxlength:t.maxlength,disabled:t.disable===!0,readonly:t.readonly===!0};return j.value===!1&&(T.type=t.type),t.autogrow===!0&&(T.rows=1),T});r.watch(()=>t.type,()=>{b.value&&(b.value.value=t.modelValue)}),r.watch(()=>t.modelValue,T=>{if(w.value===!0){if(v===!0&&(v=!1,String(T)===d))return;k(T)}else A.value!==T&&(A.value=T,t.type==="number"&&c.hasOwnProperty("value")===!0&&(h===!0?h=!1:delete c.value));t.autogrow===!0&&r.nextTick(H)}),r.watch(()=>t.autogrow,T=>{T===!0?r.nextTick(H):b.value!==null&&i.rows>0&&(b.value.style.height="auto")}),r.watch(()=>t.dense,()=>{t.autogrow===!0&&r.nextTick(H)});function Z(){Io(()=>{const T=document.activeElement;b.value!==null&&b.value!==T&&(T===null||T.id!==Q.targetUid.value)&&b.value.focus({preventScroll:!0})})}function O(){b.value!==null&&b.value.select()}function te(T){if(w.value===!0&&t.reverseFillMask!==!0){const Y=T.target;F(Y,Y.selectionStart,Y.selectionEnd)}l("paste",T)}function $(T){if(!T||!T.target)return;if(t.type==="file"){l("update:modelValue",T.target.files);return}const Y=T.target.value;if(T.target.qComposing===!0){c.value=Y;return}if(w.value===!0)k(Y,!1,T.inputType);else if(ae(Y),ie.value===!0&&T.target===document.activeElement){const{selectionStart:pe,selectionEnd:fe}=T.target;pe!==void 0&&fe!==void 0&&r.nextTick(()=>{T.target===document.activeElement&&Y.indexOf(T.target.value)===0&&T.target.setSelectionRange(pe,fe)})}t.autogrow===!0&&H()}function le(T){l("animationend",T),H()}function ae(T,Y){m=()=>{y=null,t.type!=="number"&&c.hasOwnProperty("value")===!0&&delete c.value,t.modelValue!==T&&d!==T&&(d=T,Y===!0&&(v=!0),l("update:modelValue",T),r.nextTick(()=>{d===T&&(d=NaN)})),m=void 0},t.type==="number"&&(h=!0,c.value=T),t.debounce!==void 0?(y!==null&&clearTimeout(y),c.value=T,y=setTimeout(m,t.debounce)):m()}function H(){requestAnimationFrame(()=>{const T=b.value;if(T!==null){const Y=T.parentNode.style,{scrollTop:pe}=T,{overflowY:fe,maxHeight:G}=a.platform.is.firefox===!0?{}:window.getComputedStyle(T),re=fe!==void 0&&fe!=="scroll";re===!0&&(T.style.overflowY="hidden"),Y.marginBottom=T.scrollHeight-1+"px",T.style.height="1px",T.style.height=T.scrollHeight+"px",re===!0&&(T.style.overflowY=parseInt(G,10)<T.scrollHeight?"auto":"hidden"),Y.marginBottom="",T.scrollTop=pe}})}function se(T){W(T),y!==null&&(clearTimeout(y),y=null),m!==void 0&&m(),l("change",T.target.value)}function Be(T){T!==void 0&&Qt(T),y!==null&&(clearTimeout(y),y=null),m!==void 0&&m(),h=!1,v=!1,delete c.value,t.type!=="file"&&setTimeout(()=>{b.value!==null&&(b.value.value=A.value!==void 0?A.value:"")})}function ge(){return c.hasOwnProperty("value")===!0?c.value:A.value!==void 0?A.value:""}r.onBeforeUnmount(()=>{Be()}),r.onMounted(()=>{t.autogrow===!0&&H()}),Object.assign(Q,{innerValue:A,fieldClass:r.computed(()=>`q-${j.value===!0?"textarea":"input"}`+(t.autogrow===!0?" q-textarea--autogrow":"")),hasShadow:r.computed(()=>t.type!=="file"&&typeof t.shadowText=="string"&&t.shadowText.length!==0),inputRef:b,emitValue:ae,hasValue:K,floatingLabel:r.computed(()=>K.value===!0&&(t.type!=="number"||isNaN(A.value)===!1)||Nr(t.displayValue)),getControl:()=>r.h(j.value===!0?"textarea":"input",{ref:b,class:["q-field__native q-placeholder",t.inputClass],style:t.inputStyle,...U.value,...N.value,...t.type!=="file"?{value:ge()}:L.value}),getShadowControl:()=>r.h("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(j.value===!0?"":" text-no-wrap")},[r.h("span",{class:"invisible"},ge()),r.h("span",t.shadowText)])});const R=nl(Q);return Object.assign(s,{focus:Z,select:O,getNativeElement:()=>b.value}),xo(s,"nativeEl",()=>b.value),R}}),Jh=["text","rect","circle","QBtn","QBadge","QChip","QToolbar","QCheckbox","QRadio","QToggle","QSlider","QRange","QInput","QAvatar"],em=["wave","pulse","pulse-x","pulse-y","fade","blink","none"],tm=We({name:"QSkeleton",props:{...Pn,tag:{type:String,default:"div"},type:{type:String,validator:t=>Jh.includes(t),default:"rect"},animation:{type:String,validator:t=>em.includes(t),default:"wave"},animationSpeed:{type:[String,Number],default:1500},square:Boolean,bordered:Boolean,size:String,width:String,height:String},setup(t,{slots:l}){const i=r.getCurrentInstance(),s=Vn(t,i.proxy.$q),a=r.computed(()=>{const d=t.size!==void 0?[t.size,t.size]:[t.width,t.height];return{"--q-skeleton-speed":`${t.animationSpeed}ms`,width:d[0],height:d[1]}}),c=r.computed(()=>`q-skeleton q-skeleton--${s.value===!0?"dark":"light"} q-skeleton--type-${t.type}`+(t.animation!=="none"?` q-skeleton--anim q-skeleton--anim-${t.animation}`:"")+(t.square===!0?" q-skeleton--square":"")+(t.bordered===!0?" q-skeleton--bordered":""));return()=>r.h(t.tag,{class:c.value,style:a.value},at(l.default))}}),nm=Xe(r.defineComponent({__name:"IndicatorColor",props:{color:{}},setup(t){const l=t,i=r.computed(()=>{var s;return(s=l.color)!=null&&s.startsWith("#")?{background:l.color}:{}});return(s,a)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([s.color,"indicator-icon"]),style:r.normalizeStyle(i.value)},null,6))}}),[["__scopeId","data-v-86ec13f1"]]),rm=Xe(r.defineComponent({__name:"Field",props:{sm:{type:Boolean},label:{},value:{},row:{type:Boolean,default:!1},loading:{type:Boolean},hoverable:{type:Boolean,default:!1},bordered:{type:Boolean},colouredLabel:{type:Boolean,default:!0},dense:{type:Boolean,default:!1},indicatorColor:{},format:{},badge:{}},setup(t){const l=t,i=r.computed(()=>l.format?l.format(l.value):l.value),s=r.computed(()=>l.badge?"badge-"+l.badge(l.value):"");return(a,c)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass({"row justify-between items-center no-wrap":a.row,hoverable:a.hoverable,bordered:a.bordered})},[r.createElementVNode("div",{class:r.normalizeClass([a.dense?"dense-text":"text"]),style:r.normalizeStyle({fontSize:a.sm?"11px":""})},r.toDisplayString(a.label),7),a.loading?(r.openBlock(),r.createBlock(tm,{key:0,type:"rect",width:"100px",animation:"wave"})):(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass([`font-bold text-accent-1 row items-center ${a.dense?"dense-text":"text"} `,{text:a.colouredLabel,badgeClass:s.value}])},[a.indicatorColor?(r.openBlock(),r.createBlock(nm,{key:0,color:a.indicatorColor,class:"q-mr-xs"},null,8,["color"])):r.createCommentVNode("",!0),r.createElementVNode("div",{style:r.normalizeStyle({fontSize:a.sm?"11px":""})},r.toDisplayString(i.value),5)],2))],2))}}),[["__scopeId","data-v-a10936e1"]]),om={key:0},im={key:0,class:"text-weight-bold text-deep-orange"},lm={style:{"font-size":"16px","padding-top":"1.5rem"}},am=Xe(r.defineComponent({__name:"WinInput",props:r.mergeModels({name:{},mask:{},fillMask:{type:[Boolean,String]},reverseFillMask:{type:Boolean},unmaskedValue:{type:Boolean},modelValue:{},error:{type:[Boolean,null]},errorMessage:{},noErrorIcon:{type:Boolean},rules:{},reactiveRules:{type:Boolean},lazyRules:{type:[Boolean,String]},label:{},stackLabel:{type:Boolean},hint:{},hideHint:{type:Boolean},prefix:{},suffix:{},labelColor:{},color:{},bgColor:{},dark:{type:[Boolean,null]},loading:{type:Boolean,default:!1},clearable:{type:Boolean},clearIcon:{},filled:{type:Boolean},outlined:{type:Boolean},borderless:{type:Boolean},standout:{type:[Boolean,String]},labelSlot:{type:Boolean},bottomSlots:{type:Boolean},hideBottomSpace:{type:Boolean},counter:{type:Boolean},rounded:{type:Boolean},square:{type:Boolean},dense:{type:Boolean},itemAligned:{type:Boolean},disable:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},autofocus:{type:Boolean},for:{},shadowText:{},type:{default:"text"},debounce:{},maxlength:{},autogrow:{type:Boolean},inputClass:{},inputStyle:{},"onUpdate:modelValue":{},onFocus:{},onBlur:{},onClear:{},required:{type:Boolean,default:!1},height:{default:"70px"},step:{default:1},currency:{type:Boolean},decimals:{default:0},useFieldOnReadonly:{type:Boolean,default:!1},fieldFormat:{},percentage:{type:Boolean},currencySymbol:{default:"€"},rows:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t,{expose:l}){const i=r.useModel(t,"modelValue"),s=r.ref(null),a=t;l({validate:()=>{var h;return(h=s.value)==null?void 0:h.validate()}});const d=r.computed(()=>{if(a.fieldFormat)return a.fieldFormat});return(h,v)=>h.useFieldOnReadonly&&h.readonly?(r.openBlock(),r.createBlock(rm,{key:0,label:h.label||"",value:i.value??"~",format:d.value,bordered:!0},null,8,["label","value","format"])):(r.openBlock(),r.createBlock(Bo,{key:1,class:"glass-card q-py-sm q-px-md",style:r.normalizeStyle({height:h.dense?"auto":h.height})},{default:r.withCtx(()=>[r.createVNode(r.unref(As),r.mergeProps({ref_key:"inputRef",ref:s},{...a},{borderless:"","hide-bottom-space":"",modelValue:i.value,"onUpdate:modelValue":v[0]||(v[0]=y=>i.value=y)}),r.createSlots({label:r.withCtx(()=>[h.label?(r.openBlock(),r.createElementBlock("div",om,[r.createTextVNode(r.toDisplayString(h.label)+" ",1),h.required&&!h.readonly?(r.openBlock(),r.createElementBlock("span",im,"*")):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0)]),_:2},[h.$slots.prepend?{name:"prepend",fn:r.withCtx(()=>[r.renderSlot(h.$slots,"prepend",{},void 0,!0)]),key:"0"}:void 0,h.$slots.append||h.percentage?{name:"append",fn:r.withCtx(()=>[r.renderSlot(h.$slots,"append",{},()=>[r.createElementVNode("span",lm,r.toDisplayString(h.percentage?"%":""),1)],!0)]),key:"1"}:void 0]),1040,["modelValue"])]),_:3},8,["style"]))}}),[["__scopeId","data-v-5593318f"]]),um={class:"ww-subtitle text-center q-mb-md text-grey-9",style:{"font-weight":"600"}},sm=r.defineComponent({__name:"ControlLabel",props:{label:{}},setup(t){return(l,i)=>(r.openBlock(),r.createElementBlock("div",um,r.toDisplayString(l.label),1))}}),cm={style:{"max-width":"400px"},class:"text-center"},fm={style:{"font-size":"16px"}},dm={style:{"font-size":"16px"}},ol=Xe(r.defineComponent({__name:"InputControl",props:r.mergeModels({control:{},innerLabel:{type:Boolean,default:!1}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=t,i=r.ref(null),s=r.computed(()=>{var c;return(c=l.control.controlType)==null?void 0:c.split("_")[1]}),a=r.useModel(t,"modelValue");return r.onMounted(()=>{var c;(c=i.value)==null||c.focus()}),(c,d)=>(r.openBlock(),r.createElementBlock("div",cm,[!c.innerLabel&&c.control.label?(r.openBlock(),r.createBlock(sm,{key:0,label:c.control.label},null,8,["label"])):r.createCommentVNode("",!0),r.createVNode(am,{modelValue:a.value,"onUpdate:modelValue":d[0]||(d[0]=h=>a.value=h),width:"250px",mask:s.value==="number"?"###.###.###.###.###":void 0,label:c.innerLabel?c.control.label:void 0,inputStyle:{textAlign:(s.value==="number","center")},ref_key:"inputRef",ref:i},r.createSlots({_:2},[c.control.prefix?{name:"prepend",fn:r.withCtx(()=>[r.createElementVNode("span",fm,r.toDisplayString(c.control.prefix),1)]),key:"0"}:void 0,c.control.suffix?{name:"append",fn:r.withCtx(()=>[r.createElementVNode("span",dm,r.toDisplayString(c.control.suffix),1)]),key:"1"}:void 0]),1032,["modelValue","mask","label","inputStyle"])]))}}),[["__scopeId","data-v-8f5284d3"]]);function il(t,l){const i=t.style;for(const s in l)i[s]=l[s]}function hm(t){if(t==null)return;if(typeof t=="string")try{return document.querySelector(t)||void 0}catch{return}const l=r.unref(t);if(l)return l.$el||l}function Es(t,l){if(t==null||t.contains(l)===!0)return!0;for(let i=t.nextElementSibling;i!==null;i=i.nextElementSibling)if(i.contains(l))return!0;return!1}function mm(t,l=250){let i=!1,s;return function(){return i===!1&&(i=!0,setTimeout(()=>{i=!1},l),s=t.apply(this,arguments)),s}}function ks(t,l,i,s){i.modifiers.stop===!0&&Qt(t);const a=i.modifiers.color;let c=i.modifiers.center;c=c===!0||s===!0;const d=document.createElement("span"),h=document.createElement("span"),v=ls(t),{left:y,top:m,width:b,height:x}=l.getBoundingClientRect(),A=Math.sqrt(b*b+x*x),w=A/2,F=`${(b-A)/2}px`,k=c?F:`${v.left-y-w}px`,q=`${(x-A)/2}px`,D=c?q:`${v.top-m-w}px`;h.className="q-ripple__inner",il(h,{height:`${A}px`,width:`${A}px`,transform:`translate3d(${k},${D},0) scale3d(.2,.2,1)`,opacity:0}),d.className=`q-ripple${a?" text-"+a:""}`,d.setAttribute("dir","ltr"),d.appendChild(h),l.appendChild(d);const L=()=>{d.remove(),clearTimeout(K)};i.abort.push(L);let K=setTimeout(()=>{h.classList.add("q-ripple__inner--enter"),h.style.transform=`translate3d(${F},${q},0) scale3d(1,1,1)`,h.style.opacity=.2,K=setTimeout(()=>{h.classList.remove("q-ripple__inner--enter"),h.classList.add("q-ripple__inner--leave"),h.style.opacity=0,K=setTimeout(()=>{d.remove(),i.abort.splice(i.abort.indexOf(L),1)},275)},250)},50)}function Bs(t,{modifiers:l,value:i,arg:s}){const a=Object.assign({},t.cfg.ripple,l,i);t.modifiers={early:a.early===!0,stop:a.stop===!0,center:a.center===!0,color:a.color||s,keyCodes:[].concat(a.keyCodes||13)}}const Os=ju({name:"ripple",beforeMount(t,l){const i=l.instance.$.appContext.config.globalProperties.$q.config||{};if(i.ripple===!1)return;const s={cfg:i,enabled:l.value!==!1,modifiers:{},abort:[],start(a){s.enabled===!0&&a.qSkipRipple!==!0&&a.type===(s.modifiers.early===!0?"pointerdown":"click")&&ks(a,t,s,a.qKeyEvent===!0)},keystart:mm(a=>{s.enabled===!0&&a.qSkipRipple!==!0&&qn(a,s.modifiers.keyCodes)===!0&&a.type===`key${s.modifiers.early===!0?"down":"up"}`&&ks(a,t,s,!0)},300)};Bs(s,l),t.__qripple=s,Pr(s,"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 i=t.__qripple;i!==void 0&&(i.enabled=l.value!==!1,i.enabled===!0&&Object(l.value)===l.value&&Bs(i,l))}},beforeUnmount(t){const l=t.__qripple;l!==void 0&&(l.abort.forEach(i=>{i()}),ko(l,"main"),delete t._qripple)}}),Ts={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},gm=Object.keys(Ts),pm={align:{type:String,validator:t=>gm.includes(t)}};function vm(t){return r.computed(()=>{const l=t.align===void 0?t.vertical===!0?"stretch":"left":t.align;return`${t.vertical===!0?"items":"justify"}-${Ts[l]}`})}function Rs(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}function Is(t,l){return(t.aliasOf||t)===(l.aliasOf||l)}function _m(t,l){for(const i in l){const s=l[i],a=t[i];if(typeof s=="string"){if(s!==a)return!1}else if(Array.isArray(a)===!1||a.length!==s.length||s.some((c,d)=>c!==a[d]))return!1}return!0}function Fs(t,l){return Array.isArray(l)===!0?t.length===l.length&&t.every((i,s)=>i===l[s]):t.length===1&&t[0]===l}function ym(t,l){return Array.isArray(t)===!0?Fs(t,l):Array.isArray(l)===!0?Fs(l,t):t===l}function bm(t,l){if(Object.keys(t).length!==Object.keys(l).length)return!1;for(const i in t)if(ym(t[i],l[i])===!1)return!1;return!0}const Ms={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},wm={...Ms,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function Ls({fallbackTag:t,useDisableForRouterLinkProps:l=!0}={}){const i=r.getCurrentInstance(),{props:s,proxy:a,emit:c}=i,d=Xu(i),h=r.computed(()=>s.disable!==!0&&s.href!==void 0),v=l===!0?r.computed(()=>d===!0&&s.disable!==!0&&h.value!==!0&&s.to!==void 0&&s.to!==null&&s.to!==""):r.computed(()=>d===!0&&h.value!==!0&&s.to!==void 0&&s.to!==null&&s.to!==""),y=r.computed(()=>v.value===!0?D(s.to):null),m=r.computed(()=>y.value!==null),b=r.computed(()=>h.value===!0||m.value===!0),x=r.computed(()=>s.type==="a"||b.value===!0?"a":s.tag||t||"div"),A=r.computed(()=>h.value===!0?{href:s.href,target:s.target}:m.value===!0?{href:y.value.href,target:s.target}:{}),w=r.computed(()=>{if(m.value===!1)return-1;const{matched:W}=y.value,{length:Q}=W,j=W[Q-1];if(j===void 0)return-1;const ie=a.$route.matched;if(ie.length===0)return-1;const N=ie.findIndex(Is.bind(null,j));if(N!==-1)return N;const U=Rs(W[Q-2]);return Q>1&&Rs(j)===U&&ie[ie.length-1].path!==U?ie.findIndex(Is.bind(null,W[Q-2])):N}),F=r.computed(()=>m.value===!0&&w.value!==-1&&_m(a.$route.params,y.value.params)),k=r.computed(()=>F.value===!0&&w.value===a.$route.matched.length-1&&bm(a.$route.params,y.value.params)),q=r.computed(()=>m.value===!0?k.value===!0?` ${s.exactActiveClass} ${s.activeClass}`:s.exact===!0?"":F.value===!0?` ${s.activeClass}`:"":"");function D(W){try{return a.$router.resolve(W)}catch{}return null}function L(W,{returnRouterError:Q,to:j=s.to,replace:ie=s.replace}={}){if(s.disable===!0)return W.preventDefault(),Promise.resolve(!1);if(W.metaKey||W.altKey||W.ctrlKey||W.shiftKey||W.button!==void 0&&W.button!==0||s.target==="_blank")return Promise.resolve(!1);W.preventDefault();const N=a.$router[ie===!0?"replace":"push"](j);return Q===!0?N:N.then(()=>{}).catch(()=>{})}function K(W){if(m.value===!0){const Q=j=>L(W,j);c("click",W,Q),W.defaultPrevented!==!0&&Q()}else c("click",W)}return{hasRouterLink:m,hasHrefLink:h,hasLink:b,linkTag:x,resolvedLink:y,linkIsActive:F,linkIsExactActive:k,linkClass:q,linkAttrs:A,getLink:D,navigateToRouterLink:L,navigateOnClick:K}}const Ps={none:0,xs:4,sm:8,md:16,lg:24,xl:32},Sm={xs:8,sm:10,md:14,lg:20,xl:24},Cm=["button","submit","reset"],xm=/[^\s]\/[^\s]/,Am=["flat","outline","push","unelevated"];function Em(t,l){return t.flat===!0?"flat":t.outline===!0?"outline":t.push===!0?"push":t.unelevated===!0?"unelevated":l}const km={...{...Ao,...Ms,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...Am.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:{...pm.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},round:Boolean};function Bm(t){const l=Eo(t,Sm),i=vm(t),{hasRouterLink:s,hasLink:a,linkTag:c,linkAttrs:d,navigateOnClick:h}=Ls({fallbackTag:"button"}),v=r.computed(()=>{const k=t.fab===!1&&t.fabMini===!1?l.value:{};return t.padding!==void 0?Object.assign({},k,{padding:t.padding.split(/\s+/).map(q=>q in Ps?Ps[q]+"px":q).join(" "),minWidth:"0",minHeight:"0"}):k}),y=r.computed(()=>t.rounded===!0||t.fab===!0||t.fabMini===!0),m=r.computed(()=>t.disable!==!0&&t.loading!==!0),b=r.computed(()=>m.value===!0?t.tabindex||0:-1),x=r.computed(()=>Em(t,"standard")),A=r.computed(()=>{const k={tabindex:b.value};return a.value===!0?Object.assign(k,d.value):Cm.includes(t.type)===!0&&(k.type=t.type),c.value==="a"?(t.disable===!0?k["aria-disabled"]="true":k.href===void 0&&(k.role="button"),s.value!==!0&&xm.test(t.type)===!0&&(k.type=t.type)):t.disable===!0&&(k.disabled="",k["aria-disabled"]="true"),t.loading===!0&&t.percentage!==void 0&&Object.assign(k,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":t.percentage}),k}),w=r.computed(()=>{let k;t.color!==void 0?t.flat===!0||t.outline===!0?k=`text-${t.textColor||t.color}`:k=`bg-${t.color} text-${t.textColor||"white"}`:t.textColor&&(k=`text-${t.textColor}`);const q=t.round===!0?"round":`rectangle${y.value===!0?" q-btn--rounded":t.square===!0?" q-btn--square":""}`;return`q-btn--${x.value} q-btn--${q}`+(k!==void 0?" "+k:"")+(m.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":"")}),F=r.computed(()=>i.value+(t.stack===!0?" column":" row")+(t.noWrap===!0?" no-wrap text-no-wrap":"")+(t.loading===!0?" q-btn__content--hidden":""));return{classes:w,style:v,innerClasses:F,attributes:A,hasLink:a,linkTag:c,navigateOnClick:h,isActionable:m}}const{passiveCapture:Ot}=dt;let cr=null,fr=null,dr=null;const _n=We({name:"QBtn",props:{...km,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(t,{slots:l,emit:i}){const{proxy:s}=r.getCurrentInstance(),{classes:a,style:c,innerClasses:d,attributes:h,hasLink:v,linkTag:y,navigateOnClick:m,isActionable:b}=Bm(t),x=r.ref(null),A=r.ref(null);let w=null,F,k=null;const q=r.computed(()=>t.label!==void 0&&t.label!==null&&t.label!==""),D=r.computed(()=>t.disable===!0||t.ripple===!1?!1:{keyCodes:v.value===!0?[13,32]:[13],...t.ripple===!0?{}:t.ripple}),L=r.computed(()=>({center:t.round})),K=r.computed(()=>{const $=Math.max(0,Math.min(100,t.percentage));return $>0?{transition:"transform 0.6s",transform:`translateX(${$-100}%)`}:{}}),W=r.computed(()=>{if(t.loading===!0)return{onMousedown:te,onTouchstart:te,onClick:te,onKeydown:te,onKeyup:te};if(b.value===!0){const $={onClick:j,onKeydown:ie,onMousedown:U};if(s.$q.platform.has.touch===!0){const le=t.onTouchstart!==void 0?"":"Passive";$[`onTouchstart${le}`]=N}return $}return{onClick:Ge}}),Q=r.computed(()=>({ref:x,class:"q-btn q-btn-item non-selectable no-outline "+a.value,style:c.value,...h.value,...W.value}));function j($){if(x.value!==null){if($!==void 0){if($.defaultPrevented===!0)return;const le=document.activeElement;if(t.type==="submit"&&le!==document.body&&x.value.contains(le)===!1&&le.contains(x.value)===!1){x.value.focus();const ae=()=>{document.removeEventListener("keydown",Ge,!0),document.removeEventListener("keyup",ae,Ot),x.value!==null&&x.value.removeEventListener("blur",ae,Ot)};document.addEventListener("keydown",Ge,!0),document.addEventListener("keyup",ae,Ot),x.value.addEventListener("blur",ae,Ot)}}m($)}}function ie($){x.value!==null&&(i("keydown",$),qn($,[13,32])===!0&&fr!==x.value&&(fr!==null&&O(),$.defaultPrevented!==!0&&(x.value.focus(),fr=x.value,x.value.classList.add("q-btn--active"),document.addEventListener("keyup",Z,!0),x.value.addEventListener("blur",Z,Ot)),Ge($)))}function N($){x.value!==null&&(i("touchstart",$),$.defaultPrevented!==!0&&(cr!==x.value&&(cr!==null&&O(),cr=x.value,w=$.target,w.addEventListener("touchcancel",Z,Ot),w.addEventListener("touchend",Z,Ot)),F=!0,k!==null&&clearTimeout(k),k=setTimeout(()=>{k=null,F=!1},200)))}function U($){x.value!==null&&($.qSkipRipple=F===!0,i("mousedown",$),$.defaultPrevented!==!0&&dr!==x.value&&(dr!==null&&O(),dr=x.value,x.value.classList.add("q-btn--active"),document.addEventListener("mouseup",Z,Ot)))}function Z($){if(x.value!==null&&!($!==void 0&&$.type==="blur"&&document.activeElement===x.value)){if($!==void 0&&$.type==="keyup"){if(fr===x.value&&qn($,[13,32])===!0){const le=new MouseEvent("click",$);le.qKeyEvent=!0,$.defaultPrevented===!0&&qt(le),$.cancelBubble===!0&&Qt(le),x.value.dispatchEvent(le),Ge($),$.qKeyEvent=!0}i("keyup",$)}O()}}function O($){const le=A.value;$!==!0&&(cr===x.value||dr===x.value)&&le!==null&&le!==document.activeElement&&(le.setAttribute("tabindex",-1),le.focus()),cr===x.value&&(w!==null&&(w.removeEventListener("touchcancel",Z,Ot),w.removeEventListener("touchend",Z,Ot)),cr=w=null),dr===x.value&&(document.removeEventListener("mouseup",Z,Ot),dr=null),fr===x.value&&(document.removeEventListener("keyup",Z,!0),x.value!==null&&x.value.removeEventListener("blur",Z,Ot),fr=null),x.value!==null&&x.value.classList.remove("q-btn--active")}function te($){Ge($),$.qSkipRipple=!0}return r.onBeforeUnmount(()=>{O(!0)}),Object.assign(s,{click:$=>{b.value===!0&&j($)}}),()=>{let $=[];t.icon!==void 0&&$.push(r.h(yt,{name:t.icon,left:t.stack!==!0&&q.value===!0,role:"img","aria-hidden":"true"})),q.value===!0&&$.push(r.h("span",{class:"block"},[t.label])),$=Ln(l.default,$),t.iconRight!==void 0&&t.round===!1&&$.push(r.h(yt,{name:t.iconRight,right:t.stack!==!0&&q.value===!0,role:"img","aria-hidden":"true"}));const le=[r.h("span",{class:"q-focus-helper",ref:A})];return t.loading===!0&&t.percentage!==void 0&&le.push(r.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(t.darkPercentage===!0?" q-btn__progress--dark":"")},[r.h("span",{class:"q-btn__progress-indicator fit block",style:K.value})])),le.push(r.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+d.value},$)),t.loading!==null&&le.push(r.h(r.Transition,{name:"q-transition--fade"},()=>t.loading===!0?[r.h("span",{key:"loading",class:"absolute-full flex flex-center"},l.loading!==void 0?l.loading():[r.h(ji)])]:null)),r.withDirectives(r.h(y.value,Q.value,le),[[Os,D.value,void 0,L.value]])}}}),Vs=t=>(r.pushScopeId("data-v-3bcb795a"),t=t(),r.popScopeId(),t),Om={class:"buttons-container"},Tm={class:"lt-md"},Rm={class:"row justify-between q-my-md q-px-md"},Im=Vs(()=>r.createElementVNode("span",{class:"text-black"},"Atrás",-1)),Fm={key:1},Mm=Vs(()=>r.createElementVNode("span",{class:"text-black"},"Siguiente",-1)),Lm=Xe(r.defineComponent({__name:"NavigationButtons",props:{currentStep:{},stepsCount:{},nextDisabled:{type:Boolean}},emits:["prev","next"],setup(t){const l=t,i=r.computed(()=>l.currentStep+1);return(s,a)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("div",Om,[i.value>1?(r.openBlock(),r.createBlock(_n,{key:0,style:{position:"absolute",left:"25px",cursor:"pointer"},size:"26px",color:"white","text-color":"white",class:"gt-sm",onClick:a[0]||(a[0]=c=>s.$emit("prev")),flat:""},{default:r.withCtx(()=>[r.createVNode(yt,{name:"arrow_back_ios",color:"info"})]),_:1})):r.createCommentVNode("",!0),i.value!==s.stepsCount?(r.openBlock(),r.createBlock(_n,{key:1,style:{position:"absolute",right:"25px",cursor:"pointer"},size:"26px",color:"white","text-color":"white",class:"gt-sm",onClick:a[1]||(a[1]=c=>s.$emit("next")),disable:s.nextDisabled,flat:""},{default:r.withCtx(()=>[r.createVNode(yt,{name:"arrow_forward_ios",color:"info"})]),_:1},8,["disable"])):r.createCommentVNode("",!0)]),r.createElementVNode("div",Tm,[r.createElementVNode("div",Rm,[i.value>1&&i.value<s.stepsCount?(r.openBlock(),r.createBlock(_n,{key:0,color:"info",class:"q-px-md-xl q-py-sm q-mr-sm win-btn win-btn-primary",onClick:a[2]||(a[2]=c=>s.$emit("prev")),flat:"","no-caps":""},{default:r.withCtx(()=>[Im]),_:1})):(r.openBlock(),r.createElementBlock("div",Fm)),i.value<s.stepsCount?(r.openBlock(),r.createBlock(_n,{key:2,color:"info",class:"q-px-xl q-py-sm q-ml-sm win-btn win-btn-primary",onClick:a[3]||(a[3]=c=>s.$emit("next")),disable:s.nextDisabled,flat:"","no-caps":""},{default:r.withCtx(()=>[Mm]),_:1},8,["disable"])):r.createCommentVNode("",!0)])])],64))}}),[["__scopeId","data-v-3bcb795a"]]),Pm=We({name:"QField",inheritAttrs:!1,props:{...Fo,tag:{type:String,default:"label"}},emits:el,setup(){return nl(tl({requiredForAttr:!1,tagProp:!0}))}}),Vm={xs:8,sm:10,md:14,lg:20,xl:24},Nm=We({name:"QChip",props:{...Pn,...Ao,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:i}){const{proxy:{$q:s}}=r.getCurrentInstance(),a=Vn(t,s),c=Eo(t,Vm),d=r.computed(()=>t.selected===!0||t.icon!==void 0),h=r.computed(()=>t.selected===!0?t.iconSelected||s.iconSet.chip.selected:t.icon),v=r.computed(()=>t.iconRemove||s.iconSet.chip.remove),y=r.computed(()=>t.disable===!1&&(t.clickable===!0||t.selected!==null)),m=r.computed(()=>{const k=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}`:"")+(k?` text-${k} 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":"")+(y.value===!0?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(t.square===!0?" q-chip--square":"")+(a.value===!0?" q-chip--dark q-dark":"")}),b=r.computed(()=>{const k=t.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:t.tabindex||0},q={...k,role:"button","aria-hidden":"false","aria-label":t.removeAriaLabel||s.lang.label.remove};return{chip:k,remove:q}});function x(k){k.keyCode===13&&A(k)}function A(k){t.disable||(i("update:selected",!t.selected),i("click",k))}function w(k){(k.keyCode===void 0||k.keyCode===13)&&(Ge(k),t.disable===!1&&(i("update:modelValue",!1),i("remove")))}function F(){const k=[];y.value===!0&&k.push(r.h("div",{class:"q-focus-helper"})),d.value===!0&&k.push(r.h(yt,{class:"q-chip__icon q-chip__icon--left",name:h.value}));const q=t.label!==void 0?[r.h("div",{class:"ellipsis"},[t.label])]:void 0;return k.push(r.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},oh(l.default,q))),t.iconRight&&k.push(r.h(yt,{class:"q-chip__icon q-chip__icon--right",name:t.iconRight})),t.removable===!0&&k.push(r.h(yt,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:v.value,...b.value.remove,onClick:w,onKeyup:w})),k}return()=>{if(t.modelValue===!1)return;const k={class:m.value,style:c.value};return y.value===!0&&Object.assign(k,b.value.chip,{onClick:A,onKeyup:x}),Yu("div",k,F(),"ripple",t.ripple!==!1&&t.disable!==!0,()=>[[Os,t.ripple]])}}}),qm=We({name:"QItem",props:{...Pn,...wm,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:i}){const{proxy:{$q:s}}=r.getCurrentInstance(),a=Vn(t,s),{hasLink:c,linkAttrs:d,linkClass:h,linkTag:v,navigateOnClick:y}=Ls(),m=r.ref(null),b=r.ref(null),x=r.computed(()=>t.clickable===!0||c.value===!0||t.tag==="label"),A=r.computed(()=>t.disable!==!0&&x.value===!0),w=r.computed(()=>"q-item q-item-type row no-wrap"+(t.dense===!0?" q-item--dense":"")+(a.value===!0?" q-item--dark":"")+(c.value===!0&&t.active===null?h.value:t.active===!0?` q-item--active${t.activeClass!==void 0?` ${t.activeClass}`:""}`:"")+(t.disable===!0?" disabled":"")+(A.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":""):"")),F=r.computed(()=>t.insetLevel===void 0?null:{["padding"+(s.lang.rtl===!0?"Right":"Left")]:16+t.insetLevel*56+"px"});function k(L){A.value===!0&&(b.value!==null&&(L.qKeyEvent!==!0&&document.activeElement===m.value?b.value.focus():document.activeElement===b.value&&m.value.focus()),y(L))}function q(L){if(A.value===!0&&qn(L,[13,32])===!0){Ge(L),L.qKeyEvent=!0;const K=new MouseEvent("click",L);K.qKeyEvent=!0,m.value.dispatchEvent(K)}i("keyup",L)}function D(){const L=rh(l.default,[]);return A.value===!0&&L.unshift(r.h("div",{class:"q-focus-helper",tabindex:-1,ref:b})),L}return()=>{const L={ref:m,class:w.value,style:F.value,role:"listitem",onClick:k,onKeyup:q};return A.value===!0?(L.tabindex=t.tabindex||"0",Object.assign(L,d.value)):x.value===!0&&(L["aria-disabled"]="true"),r.h(v.value,L,D())}}}),$m=We({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(t,{slots:l}){const i=r.computed(()=>`q-item__section column q-item__section--${t.avatar===!0||t.side===!0||t.thumbnail===!0?"side":"main"}`+(t.top===!0?" q-item__section--top justify-start":" justify-center")+(t.avatar===!0?" q-item__section--avatar":"")+(t.thumbnail===!0?" q-item__section--thumbnail":"")+(t.noWrap===!0?" q-item__section--nowrap":""));return()=>r.h("div",{class:i.value},at(l.default))}}),Dm=We({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(t,{slots:l}){const i=r.computed(()=>parseInt(t.lines,10)),s=r.computed(()=>"q-item__label"+(t.overline===!0?" q-item__label--overline text-overline":"")+(t.caption===!0?" q-item__label--caption text-caption":"")+(t.header===!0?" q-item__label--header":"")+(i.value===1?" ellipsis":"")),a=r.computed(()=>t.lines!==void 0&&i.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":i.value}:null);return()=>r.h("div",{style:a.value,class:s.value},at(l.default))}});function ll(){if(window.getSelection!==void 0){const t=window.getSelection();t.empty!==void 0?t.empty():t.removeAllRanges!==void 0&&(t.removeAllRanges(),Wi.is.mobile!==!0&&t.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}const Ns={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},Um={...Ns,contextMenu:Boolean};function qs({showing:t,avoidEmit:l,configureAnchorEl:i}){const{props:s,proxy:a,emit:c}=r.getCurrentInstance(),d=r.ref(null);let h=null;function v(A){return d.value===null?!1:A===void 0||A.touches===void 0||A.touches.length<=1}const y={};i===void 0&&(Object.assign(y,{hide(A){a.hide(A)},toggle(A){a.toggle(A),A.qAnchorHandled=!0},toggleKey(A){qn(A,13)===!0&&y.toggle(A)},contextClick(A){a.hide(A),qt(A),r.nextTick(()=>{a.show(A),A.qAnchorHandled=!0})},prevent:qt,mobileTouch(A){if(y.mobileCleanup(A),v(A)!==!0)return;a.hide(A),d.value.classList.add("non-selectable");const w=A.target;Pr(y,"anchor",[[w,"touchmove","mobileCleanup","passive"],[w,"touchend","mobileCleanup","passive"],[w,"touchcancel","mobileCleanup","passive"],[d.value,"contextmenu","prevent","notPassive"]]),h=setTimeout(()=>{h=null,a.show(A),A.qAnchorHandled=!0},300)},mobileCleanup(A){d.value.classList.remove("non-selectable"),h!==null&&(clearTimeout(h),h=null),t.value===!0&&A!==void 0&&ll()}}),i=function(A=s.contextMenu){if(s.noParentEvent===!0||d.value===null)return;let w;A===!0?a.$q.platform.is.mobile===!0?w=[[d.value,"touchstart","mobileTouch","passive"]]:w=[[d.value,"mousedown","hide","passive"],[d.value,"contextmenu","contextClick","notPassive"]]:w=[[d.value,"click","toggle","passive"],[d.value,"keyup","toggleKey","passive"]],Pr(y,"anchor",w)});function m(){ko(y,"anchor")}function b(A){for(d.value=A;d.value.classList.contains("q-anchor--skip");)d.value=d.value.parentNode;i()}function x(){if(s.target===!1||s.target===""||a.$el.parentNode===null)d.value=null;else if(s.target===!0)b(a.$el.parentNode);else{let A=s.target;if(typeof s.target=="string")try{A=document.querySelector(s.target)}catch{A=void 0}A!=null?(d.value=A.$el||A,i()):(d.value=null,console.error(`Anchor: target "${s.target}" not found`))}}return r.watch(()=>s.contextMenu,A=>{d.value!==null&&(m(),i(A))}),r.watch(()=>s.target,()=>{d.value!==null&&m(),x()}),r.watch(()=>s.noParentEvent,A=>{d.value!==null&&(A===!0?m():i())}),r.onMounted(()=>{x(),l!==!0&&s.modelValue===!0&&d.value===null&&c("update:modelValue",!1)}),r.onBeforeUnmount(()=>{h!==null&&clearTimeout(h),m()}),{anchorEl:d,canShow:v,anchorEvents:y}}function $s(t,l){const i=r.ref(null);let s;function a(h,v){const y=`${v!==void 0?"add":"remove"}EventListener`,m=v!==void 0?v:s;h!==window&&h[y]("scroll",m,dt.passive),window[y]("scroll",m,dt.passive),s=v}function c(){i.value!==null&&(a(i.value),i.value=null)}const d=r.watch(()=>t.noParentEvent,()=>{i.value!==null&&(c(),l())});return r.onBeforeUnmount(d),{localScrollTarget:i,unconfigureScrollTarget:c,changeScrollEvent:a}}const al={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},ul=["beforeShow","show","beforeHide","hide"];function sl({showing:t,canShow:l,hideOnRouteChange:i,handleShow:s,handleHide:a,processOnMount:c}){const d=r.getCurrentInstance(),{props:h,emit:v,proxy:y}=d;let m;function b(D){t.value===!0?w(D):x(D)}function x(D){if(h.disable===!0||D!==void 0&&D.qAnchorHandled===!0||l!==void 0&&l(D)!==!0)return;const L=h["onUpdate:modelValue"]!==void 0;L===!0&&(v("update:modelValue",!0),m=D,r.nextTick(()=>{m===D&&(m=void 0)})),(h.modelValue===null||L===!1)&&A(D)}function A(D){t.value!==!0&&(t.value=!0,v("beforeShow",D),s!==void 0?s(D):v("show",D))}function w(D){if(h.disable===!0)return;const L=h["onUpdate:modelValue"]!==void 0;L===!0&&(v("update:modelValue",!1),m=D,r.nextTick(()=>{m===D&&(m=void 0)})),(h.modelValue===null||L===!1)&&F(D)}function F(D){t.value!==!1&&(t.value=!1,v("beforeHide",D),a!==void 0?a(D):v("hide",D))}function k(D){h.disable===!0&&D===!0?h["onUpdate:modelValue"]!==void 0&&v("update:modelValue",!1):D===!0!==t.value&&(D===!0?A:F)(m)}r.watch(()=>h.modelValue,k),i!==void 0&&Xu(d)===!0&&r.watch(()=>y.$route.fullPath,()=>{i.value===!0&&t.value===!0&&w()}),c===!0&&r.onMounted(()=>{k(h.modelValue)});const q={show:x,hide:w,toggle:b};return Object.assign(y,q),q}const Ds={};let zm=1,Hm=document.body;function Wm(t,l){const i=document.createElement("div");if(i.id=l!==void 0?`q-portal--${l}--${zm++}`:t,Ds.globalNodes!==void 0){const s=Ds.globalNodes.class;s!==void 0&&(i.className=s)}return Hm.appendChild(i),i}function Gm(t){t.remove()}const qr=[];function jm(t,l){do{if(t.$options.name==="QMenu"){if(t.hide(l),t.$props.separateClosePopup===!0)return Ki(t)}else if(t.__qPortal===!0){const i=Ki(t);return i!==void 0&&i.$options.name==="QPopupProxy"?(t.hide(l),i):t}t=Ki(t)}while(t!=null)}const Km=We({name:"QPortal",setup(t,{slots:l}){return()=>l.default()}});function Qm(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 cl(t,l,i,s){const a=r.ref(!1),c=r.ref(!1);let d=null;const h={},v=s==="dialog"&&Qm(t);function y(b){if(b===!0){bs(h),c.value=!0;return}c.value=!1,a.value===!1&&(v===!1&&d===null&&(d=Wm(!1,s)),a.value=!0,qr.push(t.proxy),zh(h))}function m(b){if(c.value=!1,b!==!0)return;bs(h),a.value=!1;const x=qr.indexOf(t.proxy);x!==-1&&qr.splice(x,1),d!==null&&(Gm(d),d=null)}return r.onUnmounted(()=>{m(!0)}),t.proxy.__qPortal=!0,xo(t.proxy,"contentEl",()=>l.value),{showPortal:y,hidePortal:m,portalIsActive:a,portalIsAccessible:c,renderPortal:()=>v===!0?i():a.value===!0?[r.h(r.Teleport,{to:d},r.h(Km,i))]:void 0}}const $r={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function fl(t,l=()=>{},i=()=>{}){return{transitionProps:r.computed(()=>{const s=`q-transition--${t.transitionShow||l()}`,a=`q-transition--${t.transitionHide||i()}`;return{appear:!0,enterFromClass:`${s}-enter-from`,enterActiveClass:`${s}-enter-active`,enterToClass:`${s}-enter-to`,leaveFromClass:`${a}-leave-from`,leaveActiveClass:`${a}-leave-active`,leaveToClass:`${a}-leave-to`}}),transitionStyle:r.computed(()=>`--q-transition-duration: ${t.transitionDuration}ms`)}}function dl(){let t;const l=r.getCurrentInstance();function i(){t=void 0}return r.onDeactivated(i),r.onBeforeUnmount(i),{removeTick:i,registerTick(s){t=s,r.nextTick(()=>{t===s&&(Mr(l)===!1&&t(),t=void 0)})}}}const Us=[Element,String],Zm=[null,document,document.body,document.scrollingElement,document.documentElement];function zs(t,l){let i=hm(l);if(i===void 0){if(t==null)return window;i=t.closest(".scroll,.scroll-y,.overflow-auto")}return Zm.includes(i)?window:i}function Ym(t){return t===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:t.scrollTop}function Xm(t){return t===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:t.scrollLeft}let Lo;function Jm(){if(Lo!==void 0)return Lo;const t=document.createElement("p"),l=document.createElement("div");il(t,{width:"100%",height:"200px"}),il(l,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),l.appendChild(t),document.body.appendChild(l);const i=t.offsetWidth;l.style.overflow="scroll";let s=t.offsetWidth;return i===s&&(s=l.clientWidth),l.remove(),Lo=i-s,Lo}function e0(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 $n=[];let hr;function t0(t){hr=t.keyCode===27}function n0(){hr===!0&&(hr=!1)}function r0(t){hr===!0&&(hr=!1,qn(t,27)===!0&&$n[$n.length-1](t))}function Hs(t){window[t]("keydown",t0),window[t]("blur",n0),window[t]("keyup",r0),hr=!1}function Ws(t){_t.is.desktop===!0&&($n.push(t),$n.length===1&&Hs("addEventListener"))}function Po(t){const l=$n.indexOf(t);l!==-1&&($n.splice(l,1),$n.length===0&&Hs("removeEventListener"))}const Dn=[];function Gs(t){Dn[Dn.length-1](t)}function js(t){_t.is.desktop===!0&&(Dn.push(t),Dn.length===1&&document.body.addEventListener("focusin",Gs))}function hl(t){const l=Dn.indexOf(t);l!==-1&&(Dn.splice(l,1),Dn.length===0&&document.body.removeEventListener("focusin",Gs))}const{notPassiveCapture:Vo}=dt,Un=[];function No(t){const l=t.target;if(l===void 0||l.nodeType===8||l.classList.contains("no-pointer-events")===!0)return;let i=qr.length-1;for(;i>=0;){const s=qr[i].$;if(s.type.name==="QTooltip"){i--;continue}if(s.type.name!=="QDialog")break;if(s.props.seamless!==!0)return;i--}for(let s=Un.length-1;s>=0;s--){const a=Un[s];if((a.anchorEl.value===null||a.anchorEl.value.contains(l)===!1)&&(l===document.body||a.innerRef.value!==null&&a.innerRef.value.contains(l)===!1))t.qClickOutside=!0,a.onClickOutside(t);else return}}function Ks(t){Un.push(t),Un.length===1&&(document.addEventListener("mousedown",No,Vo),document.addEventListener("touchstart",No,Vo))}function qo(t){const l=Un.findIndex(i=>i===t);l!==-1&&(Un.splice(l,1),Un.length===0&&(document.removeEventListener("mousedown",No,Vo),document.removeEventListener("touchstart",No,Vo)))}let Qs,Zs;function $o(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 Ys(t){return t?!(t.length!==2||typeof t[0]!="number"||typeof t[1]!="number"):!0}const ml={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(t=>{ml[`${t}#ltr`]=t,ml[`${t}#rtl`]=t});function Do(t,l){const i=t.split(" ");return{vertical:i[0],horizontal:ml[`${i[1]}#${l===!0?"rtl":"ltr"}`]}}function o0(t,l){let{top:i,left:s,right:a,bottom:c,width:d,height:h}=t.getBoundingClientRect();return l!==void 0&&(i-=l[1],s-=l[0],c+=l[1],a+=l[0],d+=l[0],h+=l[1]),{top:i,bottom:c,height:h,left:s,right:a,width:d,middle:s+(a-s)/2,center:i+(c-i)/2}}function i0(t,l,i){let{top:s,left:a}=t.getBoundingClientRect();return s+=l.top,a+=l.left,i!==void 0&&(s+=i[1],a+=i[0]),{top:s,bottom:s+1,height:1,left:a,right:a+1,width:1,middle:a,center:s}}function l0(t,l){return{top:0,center:l/2,bottom:l,left:0,middle:t/2,right:t}}function Xs(t,l,i,s){return{top:t[i.vertical]-l[s.vertical],left:t[i.horizontal]-l[s.horizontal]}}function gl(t,l=0){if(t.targetEl===null||t.anchorEl===null||l>5)return;if(t.targetEl.offsetHeight===0||t.targetEl.offsetWidth===0){setTimeout(()=>{gl(t,l+1)},10);return}const{targetEl:i,offset:s,anchorEl:a,anchorOrigin:c,selfOrigin:d,absoluteOffset:h,fit:v,cover:y,maxHeight:m,maxWidth:b}=t;if(_t.is.ios===!0&&window.visualViewport!==void 0){const Q=document.body.style,{offsetLeft:j,offsetTop:ie}=window.visualViewport;j!==Qs&&(Q.setProperty("--q-pe-left",j+"px"),Qs=j),ie!==Zs&&(Q.setProperty("--q-pe-top",ie+"px"),Zs=ie)}const{scrollLeft:x,scrollTop:A}=i,w=h===void 0?o0(a,y===!0?[0,0]:s):i0(a,h,s);Object.assign(i.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:b||"100vw",maxHeight:m||"100vh",visibility:"visible"});const{offsetWidth:F,offsetHeight:k}=i,{elWidth:q,elHeight:D}=v===!0||y===!0?{elWidth:Math.max(w.width,F),elHeight:y===!0?Math.max(w.height,k):k}:{elWidth:F,elHeight:k};let L={maxWidth:b,maxHeight:m};(v===!0||y===!0)&&(L.minWidth=w.width+"px",y===!0&&(L.minHeight=w.height+"px")),Object.assign(i.style,L);const K=l0(q,D);let W=Xs(w,K,c,d);if(h===void 0||s===void 0)pl(W,w,K,c,d);else{const{top:Q,left:j}=W;pl(W,w,K,c,d);let ie=!1;if(W.top!==Q){ie=!0;const N=2*s[1];w.center=w.top-=N,w.bottom-=N+2}if(W.left!==j){ie=!0;const N=2*s[0];w.middle=w.left-=N,w.right-=N+2}ie===!0&&(W=Xs(w,K,c,d),pl(W,w,K,c,d))}L={top:W.top+"px",left:W.left+"px"},W.maxHeight!==void 0&&(L.maxHeight=W.maxHeight+"px",w.height>W.maxHeight&&(L.minHeight=L.maxHeight)),W.maxWidth!==void 0&&(L.maxWidth=W.maxWidth+"px",w.width>W.maxWidth&&(L.minWidth=L.maxWidth)),Object.assign(i.style,L),i.scrollTop!==A&&(i.scrollTop=A),i.scrollLeft!==x&&(i.scrollLeft=x)}function pl(t,l,i,s,a){const c=i.bottom,d=i.right,h=Jm(),v=window.innerHeight-h,y=document.body.clientWidth;if(t.top<0||t.top+c>v)if(a.vertical==="center")t.top=l[s.vertical]>v/2?Math.max(0,v-c):0,t.maxHeight=Math.min(c,v);else if(l[s.vertical]>v/2){const m=Math.min(v,s.vertical==="center"?l.center:s.vertical===a.vertical?l.bottom:l.top);t.maxHeight=Math.min(c,m),t.top=Math.max(0,m-c)}else t.top=Math.max(0,s.vertical==="center"?l.center:s.vertical===a.vertical?l.top:l.bottom),t.maxHeight=Math.min(c,v-t.top);if(t.left<0||t.left+d>y)if(t.maxWidth=Math.min(d,y),a.horizontal==="middle")t.left=l[s.horizontal]>y/2?Math.max(0,y-d):0;else if(l[s.horizontal]>y/2){const m=Math.min(y,s.horizontal==="middle"?l.middle:s.horizontal===a.horizontal?l.right:l.left);t.maxWidth=Math.min(d,m),t.left=Math.max(0,m-t.maxWidth)}else t.left=Math.max(0,s.horizontal==="middle"?l.middle:s.horizontal===a.horizontal?l.left:l.right),t.maxWidth=Math.min(d,y-t.left)}const a0=We({name:"QMenu",inheritAttrs:!1,props:{...Um,...al,...Pn,...$r,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:$o},self:{type:String,validator:$o},offset:{type:Array,validator:Ys},scrollTarget:Us,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...ul,"click","escapeKey"],setup(t,{slots:l,emit:i,attrs:s}){let a=null,c,d,h;const v=r.getCurrentInstance(),{proxy:y}=v,{$q:m}=y,b=r.ref(null),x=r.ref(!1),A=r.computed(()=>t.persistent!==!0&&t.noRouteDismiss!==!0),w=Vn(t,m),{registerTick:F,removeTick:k}=dl(),{registerTimeout:q}=Lr(),{transitionProps:D,transitionStyle:L}=fl(t),{localScrollTarget:K,changeScrollEvent:W,unconfigureScrollTarget:Q}=$s(t,Y),{anchorEl:j,canShow:ie}=qs({showing:x}),{hide:N}=sl({showing:x,canShow:ie,handleShow:ge,handleHide:R,hideOnRouteChange:A,processOnMount:!0}),{showPortal:U,hidePortal:Z,renderPortal:O}=cl(v,b,Ee,"menu"),te={anchorEl:j,innerRef:b,onClickOutside(X){if(t.persistent!==!0&&x.value===!0)return N(X),(X.type==="touchstart"||X.target.classList.contains("q-dialog__backdrop"))&&Ge(X),!0}},$=r.computed(()=>Do(t.anchor||(t.cover===!0?"center middle":"bottom start"),m.lang.rtl)),le=r.computed(()=>t.cover===!0?$.value:Do(t.self||"top start",m.lang.rtl)),ae=r.computed(()=>(t.square===!0?" q-menu--square":"")+(w.value===!0?" q-menu--dark q-dark":"")),H=r.computed(()=>t.autoClose===!0?{onClick:pe}:{}),se=r.computed(()=>x.value===!0&&t.persistent!==!0);r.watch(se,X=>{X===!0?(Ws(G),Ks(te)):(Po(G),qo(te))});function Be(){Io(()=>{let X=b.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(a=t.noRefocus===!1?document.activeElement:null,js(fe),U(),Y(),c=void 0,X!==void 0&&(t.touchPosition||t.contextMenu)){const qe=ls(X);if(qe.left!==void 0){const{top:ut,left:Dt}=j.value.getBoundingClientRect();c={left:qe.left-Dt,top:qe.top-ut}}}d===void 0&&(d=r.watch(()=>m.screen.width+"|"+m.screen.height+"|"+t.self+"|"+t.anchor+"|"+m.lang.rtl,re)),t.noFocus!==!0&&document.activeElement.blur(),F(()=>{re(),t.noFocus!==!0&&Be()}),q(()=>{m.platform.is.ios===!0&&(h=t.autoClose,b.value.click()),re(),U(!0),i("show",X)},t.transitionDuration)}function R(X){k(),Z(),T(!0),a!==null&&(X===void 0||X.qClickOutside!==!0)&&(((X&&X.type.indexOf("key")===0?a.closest('[tabindex]:not([tabindex^="-"])'):void 0)||a).focus(),a=null),q(()=>{Z(!0),i("hide",X)},t.transitionDuration)}function T(X){c=void 0,d!==void 0&&(d(),d=void 0),(X===!0||x.value===!0)&&(hl(fe),Q(),qo(te),Po(G)),X!==!0&&(a=null)}function Y(){(j.value!==null||t.scrollTarget!==void 0)&&(K.value=zs(j.value,t.scrollTarget),W(K.value,re))}function pe(X){h!==!0?(jm(y,X),i("click",X)):h=!1}function fe(X){se.value===!0&&t.noFocus!==!0&&Es(b.value,X.target)!==!0&&Be()}function G(X){i("escapeKey"),N(X)}function re(){gl({targetEl:b.value,offset:t.offset,anchorEl:j.value,anchorOrigin:$.value,selfOrigin:le.value,absoluteOffset:c,fit:t.fit,cover:t.cover,maxHeight:t.maxHeight,maxWidth:t.maxWidth})}function Ee(){return r.h(r.Transition,D.value,()=>x.value===!0?r.h("div",{role:"menu",...s,ref:b,tabindex:-1,class:["q-menu q-position-engine scroll"+ae.value,s.class],style:[s.style,L.value],...H.value},at(l.default)):null)}return r.onBeforeUnmount(T),Object.assign(y,{focus:Be,updatePosition:re}),O}});function u0(t,l,i){function s(){}return r.onBeforeUnmount(()=>{t.value===!0&&void 0}),{removeFromHistory:s,addToHistory(){}}}let Dr=0,vl,_l,Ur,yl=!1,Js,ec,tc,zn=null;function s0(t){c0(t)&&Ge(t)}function c0(t){if(t.target===document.body||t.target.classList.contains("q-layout__backdrop"))return!0;const l=Oh(t),i=t.shiftKey&&!t.deltaX,s=!i&&Math.abs(t.deltaX)<=Math.abs(t.deltaY),a=i||s?t.deltaY:t.deltaX;for(let c=0;c<l.length;c++){const d=l[c];if(e0(d,s))return s?a<0&&d.scrollTop===0?!0:a>0&&d.scrollTop+d.clientHeight===d.scrollHeight:a<0&&d.scrollLeft===0?!0:a>0&&d.scrollLeft+d.clientWidth===d.scrollWidth}return!0}function nc(t){t.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function Uo(t){yl!==!0&&(yl=!0,requestAnimationFrame(()=>{yl=!1;const{height:l}=t.target,{clientHeight:i,scrollTop:s}=document.scrollingElement;(Ur===void 0||l!==window.innerHeight)&&(Ur=i-l,document.scrollingElement.scrollTop=s),s>Ur&&(document.scrollingElement.scrollTop-=Math.ceil((s-Ur)/8))}))}function rc(t){const l=document.body,i=window.visualViewport!==void 0;if(t==="add"){const{overflowY:s,overflowX:a}=window.getComputedStyle(l);vl=Xm(window),_l=Ym(window),Js=l.style.left,ec=l.style.top,tc=window.location.href,l.style.left=`-${vl}px`,l.style.top=`-${_l}px`,a!=="hidden"&&(a==="scroll"||l.scrollWidth>window.innerWidth)&&l.classList.add("q-body--force-scrollbar-x"),s!=="hidden"&&(s==="scroll"||l.scrollHeight>window.innerHeight)&&l.classList.add("q-body--force-scrollbar-y"),l.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,_t.is.ios===!0&&(i===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",Uo,dt.passiveCapture),window.visualViewport.addEventListener("scroll",Uo,dt.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",nc,dt.passiveCapture))}_t.is.desktop===!0&&_t.is.mac===!0&&window[`${t}EventListener`]("wheel",s0,dt.notPassive),t==="remove"&&(_t.is.ios===!0&&(i===!0?(window.visualViewport.removeEventListener("resize",Uo,dt.passiveCapture),window.visualViewport.removeEventListener("scroll",Uo,dt.passiveCapture)):window.removeEventListener("scroll",nc,dt.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=Js,l.style.top=ec,window.location.href===tc&&window.scrollTo(vl,_l),Ur=void 0)}function f0(t){let l="add";if(t===!0){if(Dr++,zn!==null){clearTimeout(zn),zn=null;return}if(Dr>1)return}else{if(Dr===0||(Dr--,Dr>0))return;if(l="remove",_t.is.ios===!0&&_t.is.nativeMobile===!0){zn!==null&&clearTimeout(zn),zn=setTimeout(()=>{rc(l),zn=null},100);return}}rc(l)}function d0(){let t;return{preventBodyScroll(l){l!==t&&(t!==void 0||l===!0)&&(t=l,f0(l))}}}let zo=0;const h0={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"},oc={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},m0=We({name:"QDialog",inheritAttrs:!1,props:{...al,...$r,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:[...ul,"shake","click","escapeKey"],setup(t,{slots:l,emit:i,attrs:s}){const a=r.getCurrentInstance(),c=r.ref(null),d=r.ref(!1),h=r.ref(!1);let v=null,y=null,m,b;const x=r.computed(()=>t.persistent!==!0&&t.noRouteDismiss!==!0&&t.seamless!==!0),{preventBodyScroll:A}=d0(),{registerTimeout:w}=Lr(),{registerTick:F,removeTick:k}=dl(),{transitionProps:q,transitionStyle:D}=fl(t,()=>oc[t.position][0],()=>oc[t.position][1]),L=r.computed(()=>D.value+(t.backdropFilter!==void 0?`;backdrop-filter:${t.backdropFilter};-webkit-backdrop-filter:${t.backdropFilter}`:"")),{showPortal:K,hidePortal:W,portalIsAccessible:Q,renderPortal:j}=cl(a,c,fe,"dialog"),{hide:ie}=sl({showing:d,hideOnRouteChange:x,handleShow:le,handleHide:ae,processOnMount:!0}),{addToHistory:N,removeFromHistory:U}=u0(d),Z=r.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${t.maximized===!0?"maximized":"minimized"} q-dialog__inner--${t.position} ${h0[t.position]}`+(h.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":"")),O=r.computed(()=>d.value===!0&&t.seamless!==!0),te=r.computed(()=>t.autoClose===!0?{onClick:T}:{}),$=r.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${O.value===!0?"modal":"seamless"}`,s.class]);r.watch(()=>t.maximized,G=>{d.value===!0&&R(G)}),r.watch(O,G=>{A(G),G===!0?(js(pe),Ws(Be)):(hl(pe),Po(Be))});function le(G){N(),y=t.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,R(t.maximized),K(),h.value=!0,t.noFocus!==!0?(document.activeElement!==null&&document.activeElement.blur(),F(H)):k(),w(()=>{if(a.proxy.$q.platform.is.ios===!0){if(t.seamless!==!0&&document.activeElement){const{top:re,bottom:Ee}=document.activeElement.getBoundingClientRect(),{innerHeight:X}=window,qe=window.visualViewport!==void 0?window.visualViewport.height:X;re>0&&Ee>qe/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-qe,Ee>=X?1/0:Math.ceil(document.scrollingElement.scrollTop+Ee-qe/2))),document.activeElement.scrollIntoView()}b=!0,c.value.click(),b=!1}K(!0),h.value=!1,i("show",G)},t.transitionDuration)}function ae(G){k(),U(),ge(!0),h.value=!0,W(),y!==null&&(((G&&G.type.indexOf("key")===0?y.closest('[tabindex]:not([tabindex^="-"])'):void 0)||y).focus(),y=null),w(()=>{W(!0),h.value=!1,i("hide",G)},t.transitionDuration)}function H(G){Io(()=>{let re=c.value;if(re!==null){if(G!==void 0){const Ee=re.querySelector(G);if(Ee!==null){Ee.focus({preventScroll:!0});return}}re.contains(document.activeElement)!==!0&&(re=re.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||re.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||re.querySelector("[autofocus], [data-autofocus]")||re,re.focus({preventScroll:!0}))}})}function se(G){G&&typeof G.focus=="function"?G.focus({preventScroll:!0}):H(),i("shake");const re=c.value;re!==null&&(re.classList.remove("q-animate--scale"),re.classList.add("q-animate--scale"),v!==null&&clearTimeout(v),v=setTimeout(()=>{v=null,c.value!==null&&(re.classList.remove("q-animate--scale"),H())},170))}function Be(){t.seamless!==!0&&(t.persistent===!0||t.noEscDismiss===!0?t.maximized!==!0&&t.noShake!==!0&&se():(i("escapeKey"),ie()))}function ge(G){v!==null&&(clearTimeout(v),v=null),(G===!0||d.value===!0)&&(R(!1),t.seamless!==!0&&(A(!1),hl(pe),Po(Be))),G!==!0&&(y=null)}function R(G){G===!0?m!==!0&&(zo<1&&document.body.classList.add("q-body--dialog"),zo++,m=!0):m===!0&&(zo<2&&document.body.classList.remove("q-body--dialog"),zo--,m=!1)}function T(G){b!==!0&&(ie(G),i("click",G))}function Y(G){t.persistent!==!0&&t.noBackdropDismiss!==!0?ie(G):t.noShake!==!0&&se()}function pe(G){t.allowFocusOutside!==!0&&Q.value===!0&&Es(c.value,G.target)!==!0&&H('[tabindex]:not([tabindex="-1"])')}Object.assign(a.proxy,{focus:H,shake:se,__updateRefocusTarget(G){y=G||null}}),r.onBeforeUnmount(ge);function fe(){return r.h("div",{role:"dialog","aria-modal":O.value===!0?"true":"false",...s,class:$.value},[r.h(r.Transition,{name:"q-transition--fade",appear:!0},()=>O.value===!0?r.h("div",{class:"q-dialog__backdrop fixed-full",style:L.value,"aria-hidden":"true",tabindex:-1,onClick:Y}):null),r.h(r.Transition,q.value,()=>d.value===!0?r.h("div",{ref:c,class:Z.value,style:D.value,tabindex:-1,...te.value},at(l.default)):null)])}return j}});let Ho=!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,Ho=t.scrollLeft>=0,t.remove()}const $t=1e3,g0=["start","center","end","start-force","center-force","end-force"],ic=Array.prototype.filter,p0=window.getComputedStyle(document.body).overflowAnchor===void 0?Bh:function(t,l){t!==null&&(t._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(t._qOverflowAnimationFrame),t._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(t===null)return;t._qOverflowAnimationFrame=void 0;const i=t.children||[];ic.call(i,a=>a.dataset&&a.dataset.qVsAnchor!==void 0).forEach(a=>{delete a.dataset.qVsAnchor});const s=i[l];s&&s.dataset&&(s.dataset.qVsAnchor="")}))};function mr(t,l){return t+l}function bl(t,l,i,s,a,c,d,h){const v=t===window?document.scrollingElement||document.documentElement:t,y=a===!0?"offsetWidth":"offsetHeight",m={scrollStart:0,scrollViewSize:-d-h,scrollMaxSize:0,offsetStart:-d,offsetEnd:-h};if(a===!0?(t===window?(m.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,m.scrollViewSize+=document.documentElement.clientWidth):(m.scrollStart=v.scrollLeft,m.scrollViewSize+=v.clientWidth),m.scrollMaxSize=v.scrollWidth,c===!0&&(m.scrollStart=(Ho===!0?m.scrollMaxSize-m.scrollViewSize:0)-m.scrollStart)):(t===window?(m.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,m.scrollViewSize+=document.documentElement.clientHeight):(m.scrollStart=v.scrollTop,m.scrollViewSize+=v.clientHeight),m.scrollMaxSize=v.scrollHeight),i!==null)for(let b=i.previousElementSibling;b!==null;b=b.previousElementSibling)b.classList.contains("q-virtual-scroll--skip")===!1&&(m.offsetStart+=b[y]);if(s!==null)for(let b=s.nextElementSibling;b!==null;b=b.nextElementSibling)b.classList.contains("q-virtual-scroll--skip")===!1&&(m.offsetEnd+=b[y]);if(l!==t){const b=v.getBoundingClientRect(),x=l.getBoundingClientRect();a===!0?(m.offsetStart+=x.left-b.left,m.offsetEnd-=x.width):(m.offsetStart+=x.top-b.top,m.offsetEnd-=x.height),t!==window&&(m.offsetStart+=m.scrollStart),m.offsetEnd+=m.scrollMaxSize-m.offsetStart}return m}function lc(t,l,i,s){l==="end"&&(l=(t===window?document.body:t)[i===!0?"scrollWidth":"scrollHeight"]),t===window?i===!0?(s===!0&&(l=(Ho===!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):i===!0?(s===!0&&(l=(Ho===!0?t.scrollWidth-t.offsetWidth:0)-l),t.scrollLeft=l):t.scrollTop=l}function zr(t,l,i,s){if(i>=s)return 0;const a=l.length,c=Math.floor(i/$t),d=Math.floor((s-1)/$t)+1;let h=t.slice(c,d).reduce(mr,0);return i%$t!==0&&(h-=l.slice(c*$t,i).reduce(mr,0)),s%$t!==0&&s!==a&&(h-=l.slice(s,d*$t).reduce(mr,0)),h}const ac={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 v0({virtualScrollLength:t,getVirtualScrollTarget:l,getVirtualScrollEl:i,virtualScrollItemSizeComputed:s}){const a=r.getCurrentInstance(),{props:c,emit:d,proxy:h}=a,{$q:v}=h;let y,m,b,x=[],A;const w=r.ref(0),F=r.ref(0),k=r.ref({}),q=r.ref(null),D=r.ref(null),L=r.ref(null),K=r.ref({from:0,to:0}),W=r.computed(()=>c.tableColspan!==void 0?c.tableColspan:100);s===void 0&&(s=r.computed(()=>c.virtualScrollItemSize));const Q=r.computed(()=>s.value+";"+c.virtualScrollHorizontal),j=r.computed(()=>Q.value+";"+c.virtualScrollSliceRatioBefore+";"+c.virtualScrollSliceRatioAfter);r.watch(j,()=>{ae()}),r.watch(Q,ie);function ie(){le(m,!0)}function N(R){le(R===void 0?m:R)}function U(R,T){const Y=l();if(Y==null||Y.nodeType===8)return;const pe=bl(Y,i(),q.value,D.value,c.virtualScrollHorizontal,v.lang.rtl,c.virtualScrollStickySizeStart,c.virtualScrollStickySizeEnd);b!==pe.scrollViewSize&&ae(pe.scrollViewSize),O(Y,pe,Math.min(t.value-1,Math.max(0,parseInt(R,10)||0)),0,g0.indexOf(T)!==-1?T:m!==-1&&R>m?"end":"start")}function Z(){const R=l();if(R==null||R.nodeType===8)return;const T=bl(R,i(),q.value,D.value,c.virtualScrollHorizontal,v.lang.rtl,c.virtualScrollStickySizeStart,c.virtualScrollStickySizeEnd),Y=t.value-1,pe=T.scrollMaxSize-T.offsetStart-T.offsetEnd-F.value;if(y===T.scrollStart)return;if(T.scrollMaxSize<=0){O(R,T,0,0);return}b!==T.scrollViewSize&&ae(T.scrollViewSize),te(K.value.from);const fe=Math.floor(T.scrollMaxSize-Math.max(T.scrollViewSize,T.offsetEnd)-Math.min(A[Y],T.scrollViewSize/2));if(fe>0&&Math.ceil(T.scrollStart)>=fe){O(R,T,Y,T.scrollMaxSize-T.offsetEnd-x.reduce(mr,0));return}let G=0,re=T.scrollStart-T.offsetStart,Ee=re;if(re<=pe&&re+T.scrollViewSize>=w.value)re-=w.value,G=K.value.from,Ee=re;else for(let X=0;re>=x[X]&&G<Y;X++)re-=x[X],G+=$t;for(;re>0&&G<Y;)re-=A[G],re>-T.scrollViewSize?(G++,Ee=re):Ee=A[G]+re;O(R,T,G,Ee)}function O(R,T,Y,pe,fe){const G=typeof fe=="string"&&fe.indexOf("-force")!==-1,re=G===!0?fe.replace("-force",""):fe,Ee=re!==void 0?re:"start";let X=Math.max(0,Y-k.value[Ee]),qe=X+k.value.total;qe>t.value&&(qe=t.value,X=Math.max(0,qe-k.value.total)),y=T.scrollStart;const ut=X!==K.value.from||qe!==K.value.to;if(ut===!1&&re===void 0){se(Y);return}const{activeElement:Dt}=document,bt=L.value;ut===!0&&bt!==null&&bt!==Dt&&bt.contains(Dt)===!0&&(bt.addEventListener("focusout",$),setTimeout(()=>{bt!==null&&bt.removeEventListener("focusout",$)})),p0(bt,Y-X);const rt=re!==void 0?A.slice(X,Y).reduce(mr,0):0;if(ut===!0){const wt=qe>=K.value.from&&X<=K.value.to?K.value.to:qe;K.value={from:X,to:wt},w.value=zr(x,A,0,X),F.value=zr(x,A,qe,t.value),requestAnimationFrame(()=>{K.value.to!==qe&&y===T.scrollStart&&(K.value={from:K.value.from,to:qe},F.value=zr(x,A,qe,t.value))})}requestAnimationFrame(()=>{if(y!==T.scrollStart)return;ut===!0&&te(X);const wt=A.slice(X,Y).reduce(mr,0),tn=wt+T.offsetStart+w.value,ht=tn+A[Y];let yn=tn+pe;if(re!==void 0){const Wr=wt-rt,Ut=T.scrollStart+Wr;yn=G!==!0&&Ut<tn&&ht<Ut+T.scrollViewSize?Ut:re==="end"?ht-T.scrollViewSize:tn-(re==="start"?0:Math.round((T.scrollViewSize-A[Y])/2))}y=yn,lc(R,yn,c.virtualScrollHorizontal,v.lang.rtl),se(Y)})}function te(R){const T=L.value;if(T){const Y=ic.call(T.children,X=>X.classList&&X.classList.contains("q-virtual-scroll--skip")===!1),pe=Y.length,fe=c.virtualScrollHorizontal===!0?X=>X.getBoundingClientRect().width:X=>X.offsetHeight;let G=R,re,Ee;for(let X=0;X<pe;){for(re=fe(Y[X]),X++;X<pe&&Y[X].classList.contains("q-virtual-scroll--with-prev")===!0;)re+=fe(Y[X]),X++;Ee=re-A[G],Ee!==0&&(A[G]+=Ee,x[Math.floor(G/$t)]+=Ee),G++}}}function $(){L.value!==null&&L.value!==void 0&&L.value.focus()}function le(R,T){const Y=1*s.value;(T===!0||Array.isArray(A)===!1)&&(A=[]);const pe=A.length;A.length=t.value;for(let G=t.value-1;G>=pe;G--)A[G]=Y;const fe=Math.floor((t.value-1)/$t);x=[];for(let G=0;G<=fe;G++){let re=0;const Ee=Math.min((G+1)*$t,t.value);for(let X=G*$t;X<Ee;X++)re+=A[X];x.push(re)}m=-1,y=void 0,w.value=zr(x,A,0,K.value.from),F.value=zr(x,A,K.value.to,t.value),R>=0?(te(K.value.from),r.nextTick(()=>{U(R)})):Be()}function ae(R){if(R===void 0&&typeof window<"u"){const re=l();re!=null&&re.nodeType!==8&&(R=bl(re,i(),q.value,D.value,c.virtualScrollHorizontal,v.lang.rtl,c.virtualScrollStickySizeStart,c.virtualScrollStickySizeEnd).scrollViewSize)}b=R;const T=parseFloat(c.virtualScrollSliceRatioBefore)||0,Y=parseFloat(c.virtualScrollSliceRatioAfter)||0,pe=1+T+Y,fe=R===void 0||R<=0?1:Math.ceil(R/s.value),G=Math.max(1,fe,Math.ceil((c.virtualScrollSliceSize>0?c.virtualScrollSliceSize:10)/pe));k.value={total:Math.ceil(G*pe),start:Math.ceil(G*T),center:Math.ceil(G*(.5+T)),end:Math.ceil(G*(1+T)),view:fe}}function H(R,T){const Y=c.virtualScrollHorizontal===!0?"width":"height",pe={["--q-virtual-scroll-item-"+Y]:s.value+"px"};return[R==="tbody"?r.h(R,{class:"q-virtual-scroll__padding",key:"before",ref:q},[r.h("tr",[r.h("td",{style:{[Y]:`${w.value}px`,...pe},colspan:W.value})])]):r.h(R,{class:"q-virtual-scroll__padding",key:"before",ref:q,style:{[Y]:`${w.value}px`,...pe}}),r.h(R,{class:"q-virtual-scroll__content",key:"content",ref:L,tabindex:-1},T.flat()),R==="tbody"?r.h(R,{class:"q-virtual-scroll__padding",key:"after",ref:D},[r.h("tr",[r.h("td",{style:{[Y]:`${F.value}px`,...pe},colspan:W.value})])]):r.h(R,{class:"q-virtual-scroll__padding",key:"after",ref:D,style:{[Y]:`${F.value}px`,...pe}})]}function se(R){m!==R&&(c.onVirtualScroll!==void 0&&d("virtualScroll",{index:R,from:K.value.from,to:K.value.to-1,direction:R<m?"decrease":"increase",ref:h}),m=R)}ae();const Be=_s(Z,v.platform.is.ios===!0?120:35);r.onBeforeMount(()=>{ae()});let ge=!1;return r.onDeactivated(()=>{ge=!0}),r.onActivated(()=>{if(ge!==!0)return;const R=l();y!==void 0&&R!==void 0&&R!==null&&R.nodeType!==8?lc(R,y,c.virtualScrollHorizontal,v.lang.rtl):U(m)}),r.onBeforeUnmount(()=>{Be.cancel()}),Object.assign(h,{scrollTo:U,reset:ie,refresh:N}),{virtualScrollSliceRange:K,virtualScrollSliceSizeComputed:k,setVirtualScrollSize:ae,onVirtualScrollEvt:Be,localResetVirtualScroll:le,padVirtualScroll:H,scrollTo:U,reset:ie,refresh:N}}function uc(t,l,i){if(i<=l)return l;const s=i-l+1;let a=l+(t-l)%s;return a<l&&(a=s+a),a===0?0:a}const sc=t=>["add","add-unique","toggle"].includes(t),_0=".*+?^${}()|[]\\",y0=Object.keys(Fo),cc=We({name:"QSelect",inheritAttrs:!1,props:{...ac,...Zi,...Fo,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:sc},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:ac.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...el,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(t,{slots:l,emit:i}){const{proxy:s}=r.getCurrentInstance(),{$q:a}=s,c=r.ref(!1),d=r.ref(!1),h=r.ref(-1),v=r.ref(""),y=r.ref(!1),m=r.ref(!1);let b=null,x=null,A,w,F,k=null,q,D,L,K;const W=r.ref(null),Q=r.ref(null),j=r.ref(null),ie=r.ref(null),N=r.ref(null),U=is(t),Z=xs(Yo),O=r.computed(()=>Array.isArray(t.options)?t.options.length:0),te=r.computed(()=>t.virtualScrollItemSize===void 0?t.optionsDense===!0?24:48:t.virtualScrollItemSize),{virtualScrollSliceRange:$,virtualScrollSliceSizeComputed:le,localResetVirtualScroll:ae,padVirtualScroll:H,onVirtualScrollEvt:se,scrollTo:Be,setVirtualScrollSize:ge}=v0({virtualScrollLength:O,getVirtualScrollTarget:Qo,getVirtualScrollEl:jr,virtualScrollItemSizeComputed:te}),R=tl(),T=r.computed(()=>{const S=t.mapOptions===!0&&t.multiple!==!0,ne=t.modelValue!==void 0&&(t.modelValue!==null||S===!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&&A!==void 0?A:[],ve=ne.map(Ie=>Gr(Ie,J));return t.modelValue===null&&S===!0?ve.filter(Ie=>Ie!==null):ve}return ne}),Y=r.computed(()=>{const S={};return y0.forEach(ne=>{const J=t[ne];J!==void 0&&(S[ne]=J)}),S}),pe=r.computed(()=>t.optionsDark===null?R.isDark.value:t.optionsDark),fe=r.computed(()=>Nr(T.value)),G=r.computed(()=>{let S="q-field__input q-placeholder col";return t.hideSelected===!0||T.value.length===0?[S,t.inputClass]:(S+=" q-field__input--padding",t.inputClass===void 0?S:[S,t.inputClass])}),re=r.computed(()=>(t.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(t.popupContentClass?" "+t.popupContentClass:"")),Ee=r.computed(()=>O.value===0),X=r.computed(()=>T.value.map(S=>Qe.value(S)).join(", ")),qe=r.computed(()=>t.displayValue!==void 0?t.displayValue:X.value),ut=r.computed(()=>t.optionsHtml===!0?()=>!0:S=>S!=null&&S.html===!0),Dt=r.computed(()=>t.displayValueHtml===!0||t.displayValue===void 0&&(t.optionsHtml===!0||T.value.some(ut.value))),bt=r.computed(()=>R.focused.value===!0?t.tabindex:-1),rt=r.computed(()=>{const S={tabindex:t.tabindex,role:"combobox","aria-label":t.label,"aria-readonly":t.readonly===!0?"true":"false","aria-autocomplete":t.useInput===!0?"list":"none","aria-expanded":c.value===!0?"true":"false","aria-controls":`${R.targetUid.value}_lb`};return h.value>=0&&(S["aria-activedescendant"]=`${R.targetUid.value}_${h.value}`),S}),wt=r.computed(()=>({id:`${R.targetUid.value}_lb`,role:"listbox","aria-multiselectable":t.multiple===!0?"true":"false"})),tn=r.computed(()=>T.value.map((S,ne)=>({index:ne,opt:S,html:ut.value(S),selected:!0,removeAtIndex:bn,toggleOption:Ht,tabindex:bt.value}))),ht=r.computed(()=>{if(O.value===0)return[];const{from:S,to:ne}=$.value;return t.options.slice(S,ne).map((J,ve)=>{const Ie=zt.value(J)===!0,Te=Gn(J)===!0,Ke=S+ve,Ve={clickable:!0,active:Te,activeClass:Ut.value,manualFocus:!0,focused:!1,disable:Ie,tabindex:-1,dense:t.optionsDense,dark:pe.value,role:"option","aria-selected":Te===!0?"true":"false",id:`${R.targetUid.value}_${Ke}`,onClick:()=>{Ht(J)}};return Ie!==!0&&(h.value===Ke&&(Ve.focused=!0),a.platform.is.desktop===!0&&(Ve.onMousemove=()=>{c.value===!0&&Zt(Ke)})),{index:Ke,opt:J,html:ut.value(J),label:Qe.value(J),selected:Ve.active,focused:Ve.focused,toggleOption:Ht,setOptionIndex:Zt,itemProps:Ve}})}),yn=r.computed(()=>t.dropdownIcon!==void 0?t.dropdownIcon:a.iconSet.arrow.dropdown),Wr=r.computed(()=>t.optionsCover===!1&&t.outlined!==!0&&t.standout!==!0&&t.borderless!==!0&&t.rounded!==!0),Ut=r.computed(()=>t.optionsSelectedClass!==void 0?t.optionsSelectedClass:t.color!==void 0?`text-${t.color}`:""),De=r.computed(()=>Wn(t.optionValue,"value")),Qe=r.computed(()=>Wn(t.optionLabel,"label")),zt=r.computed(()=>Wn(t.optionDisable,"disable")),gr=r.computed(()=>T.value.map(S=>De.value(S))),Hn=r.computed(()=>{const S={onInput:Yo,onChange:Z,onKeydown:Ko,onKeyup:Go,onKeypress:jo,onFocus:vr,onClick(ne){w===!0&&Qt(ne)}};return S.onCompositionstart=S.onCompositionupdate=S.onCompositionend=Z,S});r.watch(T,S=>{A=S,t.useInput===!0&&t.fillInput===!0&&t.multiple!==!0&&R.innerLoading.value!==!0&&(d.value!==!0&&c.value!==!0||fe.value!==!0)&&(F!==!0&&on(),(d.value===!0||c.value===!0)&&Sn(""))},{immediate:!0}),r.watch(()=>t.fillInput,on),r.watch(c,Zr),r.watch(O,Il);function Wo(S){return t.emitValue===!0?De.value(S):S}function nn(S){if(S!==-1&&S<T.value.length)if(t.multiple===!0){const ne=t.modelValue.slice();i("remove",{index:S,value:ne.splice(S,1)[0]}),i("update:modelValue",ne)}else i("update:modelValue",null)}function bn(S){nn(S),R.focus()}function pr(S,ne){const J=Wo(S);if(t.multiple!==!0){t.fillInput===!0&&Kn(Qe.value(S),!0,!0),i("update:modelValue",J);return}if(T.value.length===0){i("add",{index:0,value:J}),i("update:modelValue",t.multiple===!0?[J]:J);return}if(ne===!0&&Gn(S)===!0||t.maxValues!==void 0&&t.modelValue.length>=t.maxValues)return;const ve=t.modelValue.slice();i("add",{index:ve.length,value:J}),ve.push(J),i("update:modelValue",ve)}function Ht(S,ne){if(R.editable.value!==!0||S===void 0||zt.value(S)===!0)return;const J=De.value(S);if(t.multiple!==!0){ne!==!0&&(Kn(t.fillInput===!0?Qe.value(S):"",!0,!0),rn()),Q.value!==null&&Q.value.focus(),(T.value.length===0||en(De.value(T.value[0]),J)!==!0)&&i("update:modelValue",t.emitValue===!0?J:S);return}if((w!==!0||y.value===!0)&&R.focus(),vr(),T.value.length===0){const Te=t.emitValue===!0?J:S;i("add",{index:0,value:Te}),i("update:modelValue",t.multiple===!0?[Te]:Te);return}const ve=t.modelValue.slice(),Ie=gr.value.findIndex(Te=>en(Te,J));if(Ie!==-1)i("remove",{index:Ie,value:ve.splice(Ie,1)[0]});else{if(t.maxValues!==void 0&&ve.length>=t.maxValues)return;const Te=t.emitValue===!0?J:S;i("add",{index:ve.length,value:Te}),ve.push(Te)}i("update:modelValue",ve)}function Zt(S){if(a.platform.is.desktop!==!0)return;const ne=S!==-1&&S<O.value?S:-1;h.value!==ne&&(h.value=ne)}function wn(S=1,ne){if(c.value===!0){let J=h.value;do J=uc(J+S,-1,O.value-1);while(J!==-1&&J!==h.value&&zt.value(t.options[J])===!0);h.value!==J&&(Zt(J),Be(J),ne!==!0&&t.useInput===!0&&t.fillInput===!0&&jn(J>=0?Qe.value(t.options[J]):q,!0))}}function Gr(S,ne){const J=ve=>en(De.value(ve),S);return t.options.find(J)||ne.find(J)||S}function Wn(S,ne){const J=S!==void 0?S:ne;return typeof J=="function"?J:ve=>ve!==null&&typeof ve=="object"&&J in ve?ve[J]:ve}function Gn(S){const ne=De.value(S);return gr.value.find(J=>en(J,ne))!==void 0}function vr(S){t.useInput===!0&&Q.value!==null&&(S===void 0||Q.value===S.target&&S.target.value===X.value)&&Q.value.select()}function _r(S){qn(S,27)===!0&&c.value===!0&&(Qt(S),rn(),on()),i("keyup",S)}function Go(S){const{value:ne}=S.target;if(S.keyCode!==void 0){_r(S);return}if(S.target.value="",b!==null&&(clearTimeout(b),b=null),x!==null&&(clearTimeout(x),x=null),on(),typeof ne=="string"&&ne.length!==0){const J=ne.toLocaleLowerCase(),ve=Te=>{const Ke=t.options.find(Ve=>Te.value(Ve).toLocaleLowerCase()===J);return Ke===void 0?!1:(T.value.indexOf(Ke)===-1?Ht(Ke):rn(),!0)},Ie=Te=>{ve(De)!==!0&&(ve(Qe)===!0||Te===!0||Sn(ne,!0,()=>Ie(!0)))};Ie()}else R.clearValue(S)}function jo(S){i("keypress",S)}function Ko(S){if(i("keydown",S),rl(S)===!0)return;const ne=v.value.length!==0&&(t.newValueMode!==void 0||t.onNewValue!==void 0),J=S.shiftKey!==!0&&t.multiple!==!0&&(h.value!==-1||ne===!0);if(S.keyCode===27){qt(S);return}if(S.keyCode===9&&J===!1){Cn();return}if(S.target===void 0||S.target.id!==R.targetUid.value||R.editable.value!==!0)return;if(S.keyCode===40&&R.innerLoading.value!==!0&&c.value===!1){Ge(S),xn();return}if(S.keyCode===8&&(t.useChips===!0||t.clearable===!0)&&t.hideSelected!==!0&&v.value.length===0){t.multiple===!0&&Array.isArray(t.modelValue)===!0?nn(t.modelValue.length-1):t.multiple!==!0&&t.modelValue!==null&&i("update:modelValue",null);return}(S.keyCode===35||S.keyCode===36)&&(typeof v.value!="string"||v.value.length===0)&&(Ge(S),h.value=-1,wn(S.keyCode===36?1:-1,t.multiple)),(S.keyCode===33||S.keyCode===34)&&le.value!==void 0&&(Ge(S),h.value=Math.max(-1,Math.min(O.value,h.value+(S.keyCode===33?-1:1)*le.value.view)),wn(S.keyCode===33?1:-1,t.multiple)),(S.keyCode===38||S.keyCode===40)&&(Ge(S),wn(S.keyCode===38?-1:1,t.multiple));const ve=O.value;if((L===void 0||K<Date.now())&&(L=""),ve>0&&t.useInput!==!0&&S.key!==void 0&&S.key.length===1&&S.altKey===!1&&S.ctrlKey===!1&&S.metaKey===!1&&(S.keyCode!==32||L.length!==0)){c.value!==!0&&xn(S);const Ie=S.key.toLocaleLowerCase(),Te=L.length===1&&L[0]===Ie;K=Date.now()+1500,Te===!1&&(Ge(S),L+=Ie);const Ke=new RegExp("^"+L.split("").map(yr=>_0.indexOf(yr)!==-1?"\\"+yr:yr).join(".*"),"i");let Ve=h.value;if(Te===!0||Ve<0||Ke.test(Qe.value(t.options[Ve]))!==!0)do Ve=uc(Ve+1,-1,ve-1);while(Ve!==h.value&&(zt.value(t.options[Ve])===!0||Ke.test(Qe.value(t.options[Ve]))!==!0));h.value!==Ve&&r.nextTick(()=>{Zt(Ve),Be(Ve),Ve>=0&&t.useInput===!0&&t.fillInput===!0&&jn(Qe.value(t.options[Ve]),!0)});return}if(!(S.keyCode!==13&&(S.keyCode!==32||t.useInput===!0||L!=="")&&(S.keyCode!==9||J===!1))){if(S.keyCode!==9&&Ge(S),h.value!==-1&&h.value<ve){Ht(t.options[h.value]);return}if(ne===!0){const Ie=(Te,Ke)=>{if(Ke){if(sc(Ke)!==!0)return}else Ke=t.newValueMode;if(Kn("",t.multiple!==!0,!0),Te==null)return;(Ke==="toggle"?Ht:pr)(Te,Ke==="add-unique"),t.multiple!==!0&&(Q.value!==null&&Q.value.focus(),rn())};if(t.onNewValue!==void 0?i("newValue",v.value,Ie):Ie(v.value),t.multiple!==!0)return}c.value===!0?Cn():R.innerLoading.value!==!0&&xn()}}function jr(){return w===!0?N.value:j.value!==null&&j.value.contentEl!==null?j.value.contentEl:void 0}function Qo(){return jr()}function Cl(){return t.hideSelected===!0?[]:l["selected-item"]!==void 0?tn.value.map(S=>l["selected-item"](S)).slice():l.selected!==void 0?[].concat(l.selected()):t.useChips===!0?tn.value.map((S,ne)=>r.h(Nm,{key:"option-"+ne,removable:R.editable.value===!0&&zt.value(S.opt)!==!0,dense:!0,textColor:t.color,tabindex:bt.value,onRemove(){S.removeAtIndex(ne)}},()=>r.h("span",{class:"ellipsis",[S.html===!0?"innerHTML":"textContent"]:Qe.value(S.opt)}))):[r.h("span",{[Dt.value===!0?"innerHTML":"textContent"]:qe.value})]}function Zo(){if(Ee.value===!0)return l["no-option"]!==void 0?l["no-option"]({inputValue:v.value}):void 0;const S=l.option!==void 0?l.option:J=>r.h(qm,{key:J.index,...J.itemProps},()=>r.h($m,()=>r.h(Dm,()=>r.h("span",{[J.html===!0?"innerHTML":"textContent"]:J.label}))));let ne=H("div",ht.value.map(S));return l["before-options"]!==void 0&&(ne=l["before-options"]().concat(ne)),Ln(l["after-options"],ne)}function xl(S,ne){const J=ne===!0?{...rt.value,...R.splitAttrs.attributes.value}:void 0,ve={ref:ne===!0?Q:void 0,key:"i_t",class:G.value,style:t.inputStyle,value:v.value!==void 0?v.value:"",type:"search",...J,id:ne===!0?R.targetUid.value:void 0,maxlength:t.maxlength,autocomplete:t.autocomplete,"data-autofocus":S===!0||t.autofocus===!0||void 0,disabled:t.disable===!0,readonly:t.readonly===!0,...Hn.value};return S!==!0&&w===!0&&(Array.isArray(ve.class)===!0?ve.class=[...ve.class,"no-pointer-events"]:ve.class+=" no-pointer-events"),r.h("input",ve)}function Yo(S){b!==null&&(clearTimeout(b),b=null),x!==null&&(clearTimeout(x),x=null),!(S&&S.target&&S.target.qComposing===!0)&&(jn(S.target.value||""),F=!0,q=v.value,R.focused.value!==!0&&(w!==!0||y.value===!0)&&R.focus(),t.onFilter!==void 0&&(b=setTimeout(()=>{b=null,Sn(v.value)},t.inputDebounce)))}function jn(S,ne){v.value!==S&&(v.value=S,ne===!0||t.inputDebounce===0||t.inputDebounce==="0"?i("inputValue",S):x=setTimeout(()=>{x=null,i("inputValue",S)},t.inputDebounce))}function Kn(S,ne,J){F=J!==!0,t.useInput===!0&&(jn(S,!0),(ne===!0||J!==!0)&&(q=S),ne!==!0&&Sn(S))}function Sn(S,ne,J){if(t.onFilter===void 0||ne!==!0&&R.focused.value!==!0)return;R.innerLoading.value===!0?i("filterAbort"):(R.innerLoading.value=!0,m.value=!0),S!==""&&t.multiple!==!0&&T.value.length!==0&&F!==!0&&S===Qe.value(T.value[0])&&(S="");const ve=setTimeout(()=>{c.value===!0&&(c.value=!1)},10);k!==null&&clearTimeout(k),k=ve,i("filter",S,(Ie,Te)=>{(ne===!0||R.focused.value===!0)&&k===ve&&(clearTimeout(k),typeof Ie=="function"&&Ie(),m.value=!1,r.nextTick(()=>{R.innerLoading.value=!1,R.editable.value===!0&&(ne===!0?c.value===!0&&rn():c.value===!0?Zr(!0):c.value=!0),typeof Te=="function"&&r.nextTick(()=>{Te(s)}),typeof J=="function"&&r.nextTick(()=>{J(s)})}))},()=>{R.focused.value===!0&&k===ve&&(clearTimeout(k),R.innerLoading.value=!1,m.value=!1),c.value===!0&&(c.value=!1)})}function Al(){return r.h(a0,{ref:j,class:re.value,style:t.popupContentStyle,modelValue:c.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:pe.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:t.popupNoRouteDismiss,square:Wr.value,transitionShow:t.transitionShow,transitionHide:t.transitionHide,transitionDuration:t.transitionDuration,separateClosePopup:!0,...wt.value,onScrollPassive:se,onBeforeShow:Jo,onBeforeHide:Kr,onShow:El},Zo)}function Kr(S){ei(S),Cn()}function El(){ge()}function Qr(S){Qt(S),Q.value!==null&&Q.value.focus(),y.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function kl(S){Qt(S),r.nextTick(()=>{y.value=!1})}function Bl(){const S=[r.h(Pm,{class:`col-auto ${R.fieldClass.value}`,...Y.value,for:R.targetUid.value,dark:pe.value,square:!0,loading:m.value,itemAligned:!1,filled:!0,stackLabel:v.value.length!==0,...R.splitAttrs.listeners.value,onFocus:Qr,onBlur:kl},{...l,rawControl:()=>R.getControl(!0),before:void 0,after:void 0})];return c.value===!0&&S.push(r.h("div",{ref:N,class:re.value+" scroll",style:t.popupContentStyle,...wt.value,onClick:qt,onScrollPassive:se},Zo())),r.h(m0,{ref:ie,modelValue:d.value,position:t.useInput===!0?"top":void 0,transitionShow:D,transitionHide:t.transitionHide,transitionDuration:t.transitionDuration,noRouteDismiss:t.popupNoRouteDismiss,onBeforeShow:Jo,onBeforeHide:Ol,onHide:Tl,onShow:Rl},()=>r.h("div",{class:"q-select__dialog"+(pe.value===!0?" q-select__dialog--dark q-dark":"")+(y.value===!0?" q-select__dialog--focused":"")},S))}function Ol(S){ei(S),ie.value!==null&&ie.value.__updateRefocusTarget(R.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),R.focused.value=!1}function Tl(S){rn(),R.focused.value===!1&&i("blur",S),on()}function Rl(){const S=document.activeElement;(S===null||S.id!==R.targetUid.value)&&Q.value!==null&&Q.value!==S&&Q.value.focus(),ge()}function Cn(){d.value!==!0&&(h.value=-1,c.value===!0&&(c.value=!1),R.focused.value===!1&&(k!==null&&(clearTimeout(k),k=null),R.innerLoading.value===!0&&(i("filterAbort"),R.innerLoading.value=!1,m.value=!1)))}function xn(S){R.editable.value===!0&&(w===!0?(R.onControlFocusin(S),d.value=!0,r.nextTick(()=>{R.focus()})):R.focus(),t.onFilter!==void 0?Sn(v.value):(Ee.value!==!0||l["no-option"]!==void 0)&&(c.value=!0))}function rn(){d.value=!1,Cn()}function on(){t.useInput===!0&&Kn(t.multiple!==!0&&t.fillInput===!0&&T.value.length!==0&&Qe.value(T.value[0])||"",!0,!0)}function Zr(S){let ne=-1;if(S===!0){if(T.value.length!==0){const J=De.value(T.value[0]);ne=t.options.findIndex(ve=>en(De.value(ve),J))}ae(ne)}Zt(ne)}function Il(S,ne){c.value===!0&&R.innerLoading.value===!1&&(ae(-1,!0),r.nextTick(()=>{c.value===!0&&R.innerLoading.value===!1&&(S>ne?ae():Zr(!0))}))}function Xo(){d.value===!1&&j.value!==null&&j.value.updatePosition()}function Jo(S){S!==void 0&&Qt(S),i("popupShow",S),R.hasPopupOpen=!0,R.onControlFocusin(S)}function ei(S){S!==void 0&&Qt(S),i("popupHide",S),R.hasPopupOpen=!1,R.onControlFocusout(S)}function ti(){w=a.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),D=a.platform.is.ios===!0&&w===!0&&t.useInput===!0?"fade":t.transitionShow}return r.onBeforeUpdate(ti),r.onUpdated(Xo),ti(),r.onBeforeUnmount(()=>{b!==null&&clearTimeout(b),x!==null&&clearTimeout(x)}),Object.assign(s,{showPopup:xn,hidePopup:rn,removeAtIndex:nn,add:pr,toggleOption:Ht,getOptionIndex:()=>h.value,setOptionIndex:Zt,moveOptionSelection:wn,filter:Sn,updateMenuPosition:Xo,updateInputValue:Kn,isOptionSelected:Gn,getEmittingOptionValue:Wo,isOptionDisabled:(...S)=>zt.value.apply(null,S)===!0,getOptionValue:(...S)=>De.value.apply(null,S),getOptionLabel:(...S)=>Qe.value.apply(null,S)}),Object.assign(R,{innerValue:T,fieldClass:r.computed(()=>`q-select q-field--auto-height q-select--with${t.useInput!==!0?"out":""}-input q-select--with${t.useChips!==!0?"out":""}-chips q-select--${t.multiple===!0?"multiple":"single"}`),inputRef:W,targetRef:Q,hasValue:fe,showPopup:xn,floatingLabel:r.computed(()=>t.hideSelected!==!0&&fe.value===!0||typeof v.value=="number"||v.value.length!==0||Nr(t.displayValue)),getControlChild:()=>{if(R.editable.value!==!1&&(d.value===!0||Ee.value!==!0||l["no-option"]!==void 0))return w===!0?Bl():Al();R.hasPopupOpen===!0&&(R.hasPopupOpen=!1)},controlEvents:{onFocusin(S){R.onControlFocusin(S)},onFocusout(S){R.onControlFocusout(S,()=>{on(),Cn()})},onClick(S){if(qt(S),w!==!0&&c.value===!0){Cn(),Q.value!==null&&Q.value.focus();return}xn(S)}},getControl:S=>{const ne=Cl(),J=S===!0||d.value!==!0||w!==!0;if(t.useInput===!0)ne.push(xl(S,J));else if(R.editable.value===!0){const Ie=J===!0?rt.value:void 0;ne.push(r.h("input",{ref:J===!0?Q:void 0,key:"d_t",class:"q-select__focus-target",id:J===!0?R.targetUid.value:void 0,value:qe.value,readonly:!0,"data-autofocus":S===!0||t.autofocus===!0||void 0,...Ie,onKeydown:Ko,onKeyup:_r,onKeypress:jo})),J===!0&&typeof t.autocomplete=="string"&&t.autocomplete.length!==0&&ne.push(r.h("input",{class:"q-select__autocomplete-input",autocomplete:t.autocomplete,tabindex:-1,onKeyup:Go}))}if(U.value!==void 0&&t.disable!==!0&&gr.value.length!==0){const Ie=gr.value.map(Te=>r.h("option",{value:Te,selected:!0}));ne.push(r.h("select",{class:"hidden",name:U.value,multiple:t.multiple},Ie))}const ve=t.useInput===!0||J!==!0?void 0:R.splitAttrs.attributes.value;return r.h("div",{class:"q-field__native row items-center",...ve,...R.splitAttrs.listeners.value},ne)},getInnerAppend:()=>t.loading!==!0&&m.value!==!0&&t.hideDropdownIcon!==!0?[r.h(yt,{class:"q-select__dropdown-icon"+(c.value===!0?" rotate-180":""),name:yn.value})]:null}),nl(R)}}),b0=Xe(r.defineComponent({__name:"SelectControl",props:r.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=r.ref([]),i=r.useModel(t,"modelValue"),s=t,a=r.ref(!1),c=r.computed(()=>s.control.customParams),d=r.ref([]),h=r.computed(()=>{var b;return((b=c.value)==null?void 0:b.collection)||null}),v=r.computed(()=>h.value?d.value:s.control.options),y=sr();r.watch(h,b=>{if(!b)return;const x=y.getCollection(h.value);if(x){d.value=x;return}a.value=!0},{immediate:!0});function m(b,x){if(b===""){x(()=>{l.value=Pe.cloneDeep(v.value)});return}x(()=>{const A=b.toLowerCase();l.value=(v.value||[]).filter(w=>w.toLowerCase().includes(A))})}return(b,x)=>{const A=r.resolveComponent("ControlLabel");return r.openBlock(),r.createElementBlock(r.Fragment,null,[b.control.label?(r.openBlock(),r.createBlock(A,{key:0,label:b.control.label},null,8,["label"])):r.createCommentVNode("",!0),r.createVNode(Bo,{class:"q-card win-card row items-center q-px-md"},{default:r.withCtx(()=>[r.createVNode(cc,{borderless:"",label:b.control.label,modelValue:i.value,"onUpdate:modelValue":x[0]||(x[0]=w=>i.value=w),"emit-value":"","option-label":"label","map-options":"","use-input":"",clearable:"",onFilter:m,options:l.value,style:{minHeight:"70px",width:"300px",margin:"auto"}},null,8,["label","modelValue","options"])]),_:1})],64)}}}),[["__scopeId","data-v-fa1749f7"]]),w0={class:"text-center",style:{width:"100%"}},S0={class:"text-center text-weight-medium"},C0={class:"question-title"},x0=r.defineComponent({__name:"StepHeader",props:{formGroup:{},stepsCount:{}},setup(t){return(l,i)=>(r.openBlock(),r.createElementBlock("div",w0,[r.createElementVNode("div",S0,r.toDisplayString(l.formGroup.order+1)+"/"+r.toDisplayString(l.stepsCount),1),r.createElementVNode("div",C0,r.toDisplayString(l.formGroup.title||""),1)]))}});function A0(){return r.inject(Vh)}function fc(t,l){const{maxControlsPerGroup:i,notifyValidations:s}={...zd,...l||{}},a=sr(),c=r.computed(()=>a.formSteps[t]),d=r.ref([]),h=r.ref([]),v=(A,w)=>{a.setControlValue(t,A);const F=d.value.find(D=>D.id===w);F&&(h.value=Wd(F));const k=m(A),q=b(A);(k||q)&&y()};function y(){const A=c.value.controls,w=[];Qd(A).forEach(k=>{const q=k.controls;if(q.every(L=>!zi.includes(L.controlType))){w.push(k);return}let D={...k,controls:[]};for(const L of q)if(zi.includes(L.controlType)){w.push(D),D={...D,controls:[]};const K=jd(k,L,i);w.push(...K)}else D.controls.push(L)}),d.value=Pe.orderBy(w,"order").map(k=>({...k,id:k.controls.map(q=>q.id).join("-")})).filter(k=>k.controls.some(q=>q.visible)).map((k,q)=>({...k,order:q,controls:k.controls.filter(D=>D.visible)}))}function m({id:A,value:w}){let F=!1;const q=c.value.controls.filter(D=>{var L;return((L=D.conditions)==null?void 0:L.some(K=>K.id===A))||!1});if(q!=null&&q.length)return q.forEach(({id:D,conditions:L,visible:K})=>{const W=L.every(Q=>{const{value:j,operator:ie}=Q;return{"==":w===j,"!=":w!==j,">":w>j,"<":w<j}[ie]||!1});K!==W&&(a.setControlVisibility(t,D,W),F=!0)}),F}function b({id:A,value:w}){const F=Number(w||0);let k=!1;const D=c.value.controls.filter(L=>{var K;return L.controlType==="dynamic_array"&&((K=L.itemsLength)==null?void 0:K.controlId)===A});if(D!=null&&D.length)return D.forEach(({id:L,itemsLength:K})=>{(K==null?void 0:K.value)!==F&&(a.setControlItemsLength(t,L,F),k=!0)}),k}const{notify:x}=A0();return r.watch(h,A=>{A.length&&(s&&x({message:A[0],color:"negative",position:"bottom",timeout:5e3,actions:[{label:"✕",color:"white"}]}),h.value=[])},{deep:!0}),r.watch(c,()=>{y()},{immediate:!0}),{model:d,errorMessages:h,rebuildModel:y,onControlValueUpdate:v}}const E0={key:0,style:{height:"100%"}},k0={class:"q-py-sm"},B0={class:"form-steps-container"},O0={class:"row justify-center items-center",style:{height:"100%",width:"100vw"}},T0={class:"controls-container",style:{height:"100%"}},R0={class:"form-container flex column items-center q-px-md",style:{width:"100vw"}},I0=Xe(r.defineComponent({__name:"MultipleFormGroups",props:{index:{}},setup(t){const l=t,i=sr(),{model:s,onControlValueUpdate:a}=fc(l.index),c=r.computed(()=>s.value.length),d=r.ref(0),h=r.computed(()=>s.value[d.value]),v=m=>{const b=Pe.toPairs(Pe.groupBy(m,"row"));return Pe.orderBy(b,([x,A])=>Number(x),"asc").map(([x,A])=>({controls:Pe.orderBy(A,"col","asc")}))};r.watch(d,m=>{const b=m+1===c.value;i.setOnLastSubstep(b)},{immediate:!0});function y(m){return{input_text:ol,input_number:ol,checkbox:fs,switch:Ih,select:b0,cards_select:xh}[m]||ol}return(m,b)=>h.value?(r.openBlock(),r.createElementBlock("div",E0,[r.createElementVNode("div",k0,[r.createVNode(x0,{formGroup:h.value,stepsCount:c.value},null,8,["formGroup","stepsCount"])]),r.createElementVNode("div",B0,[r.createElementVNode("div",O0,[r.createElementVNode("div",T0,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(s),x=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:x.id},[d.value===x.order?(r.openBlock(),r.createBlock(ih,{key:0,transition:"slide-left",style:{height:"75%",width:"100vw"},class:"row q-py-xs justify-center items-center bg-grey-1"},{default:r.withCtx(()=>[r.createElementVNode("div",R0,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(v(x.controls),(A,w)=>(r.openBlock(),r.createElementBlock("div",{class:"q-mb-xl",key:w},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(A.controls,(F,k)=>(r.openBlock(),r.createElementBlock("div",{key:k},[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(y(F.controlType)),{control:F,modelValue:A.controls[k].value,"onUpdate:modelValue":[q=>A.controls[k].value=q,q=>r.unref(a)(F,x.id)]},null,8,["control","modelValue","onUpdate:modelValue"]))]))),128))]))),128))])]),_:2},1024)):r.createCommentVNode("",!0)],64))),128)),r.createVNode(Lm,{currentStep:d.value,stepsCount:c.value,nextDisabled:!h.value.valid,onPrev:b[0]||(b[0]=x=>d.value--),onNext:b[1]||(b[1]=x=>h.value.valid&&d.value++)},null,8,["currentStep","stepsCount","nextDisabled"])])])])])):r.createCommentVNode("",!0)}}),[["__scopeId","data-v-2d9dca33"]]),F0={style:{"font-size":"16px","padding-top":"1rem"}},M0={style:{"font-size":"16px","padding-top":"1rem"}},wl=Xe(r.defineComponent({__name:"SimpleInput",props:r.mergeModels({control:{},rules:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=r.useModel(t,"modelValue"),i=t,s=r.computed(()=>{var a;return(a=i.control.controlType)==null?void 0:a.split("_")[1]});return(a,c)=>(r.openBlock(),r.createBlock(Bo,{class:"q-px-md win-card"},{default:r.withCtx(()=>[r.createVNode(As,{borderless:"","reverse-fill-mask":"",modelValue:l.value,"onUpdate:modelValue":c[0]||(c[0]=d=>l.value=d),label:a.control.label,mask:s.value==="number"?"###.###.###.###.###":void 0,"input-class":{"text-right":s.value==="number"},"input-style":{fontSize:"16px"},rules:a.rules},r.createSlots({_:2},[a.control.prefix?{name:"prepend",fn:r.withCtx(()=>[r.createElementVNode("span",F0,r.toDisplayString(a.control.prefix),1)]),key:"0"}:void 0,a.control.suffix?{name:"append",fn:r.withCtx(()=>[r.createElementVNode("span",M0,r.toDisplayString(a.control.suffix),1)]),key:"1"}:void 0]),1032,["modelValue","label","mask","input-class","rules"])]),_:1}))}}),[["__scopeId","data-v-bd5dfdca"]]),dc=r.defineComponent({__name:"SimpleSelect",props:r.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=r.useModel(t,"modelValue");return(i,s)=>(r.openBlock(),r.createBlock(Bo,{class:"q-px-md win-card"},{default:r.withCtx(()=>[r.createVNode(cc,{borderless:"",label:i.control.label,options:i.control.options,modelValue:l.value,"onUpdate:modelValue":s[0]||(s[0]=a=>l.value=a),"emit-value":"","option-label":"label","map-options":""},null,8,["label","options","modelValue"])]),_:1}))}}),L0={key:0,style:{height:"100%"}},P0={class:"question-title text-center q-py-sm"},V0={class:"form-steps-container bg-grey-1"},N0={class:"form-container",style:{height:"100%"}},q0={class:"row items-center"},$0={class:"col-12 row"},D0=Xe(r.defineComponent({__name:"SingleFormGroup",props:{index:{}},setup(t){const l=t,{model:i,onControlValueUpdate:s}=fc(l.index,{notifyValidations:!1});function a(v){return{input_text:wl,input_number:wl,select:dc,cards_select:dc,checkbox:fs}[v]||wl}const c=v=>Pe.orderBy(Pe.toPairs(Pe.groupBy(v,"row")),"row").map(([y,m])=>({controls:Pe.orderBy(m,"col")}));function d(v){return[y=>{var b;let m="";return(b=v.validators)==null||b.some(x=>{const{param:A,validator:w}=x,F=$u[w];return F.fn(Number(A))({...v,value:y})?!1:(m=F.message,!0)}),!m.length||m}]}const h=sr();return r.onMounted(()=>h.setOnLastSubstep(!0)),(v,y)=>r.unref(i)?(r.openBlock(),r.createElementBlock("div",L0,[r.createElementVNode("div",P0,r.toDisplayString(r.unref(i)[0].title),1),r.createElementVNode("div",V0,[r.createElementVNode("div",N0,[r.createElementVNode("div",q0,[r.createElementVNode("div",$0,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c(r.unref(i)[0].controls),(m,b)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(c(r.unref(i)[0].controls).length>1?"col-md-6 col-12":"col-12"),key:b},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(m.controls,(x,A)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(`col-xs-12 col-sm q-pa-xs ${c(r.unref(i)[0].controls).length>1?"col-md-6 col-12":"col-12"}`),key:A},[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(a(x.controlType)),{control:x,modelValue:x.value,"onUpdate:modelValue":[w=>x.value=w,w=>r.unref(s)(x,r.unref(i)[0].id)],rules:d(x)},null,8,["control","modelValue","onUpdate:modelValue","rules"]))],2))),128))],2))),128))])])])])])):r.createCommentVNode("",!0)}}),[["__scopeId","data-v-a8cd1002"]]),Sl=t=>(r.pushScopeId("data-v-ea1ef607"),t=t(),r.popScopeId(),t),U0={class:"buttons-container"},z0={class:"max-container"},H0={key:0,class:"row checkbox justify-end q-my-sm"},W0={style:{"max-width":"650px"}},G0=Sl(()=>r.createElementVNode("br",{class:"gt-sm"},null,-1)),j0={class:"row justify-between q-my-md q-px-md q-pb-xl"},K0=Sl(()=>r.createElementVNode("span",{class:"text-black"},"Atrás",-1)),Q0={key:1},Z0={key:0,class:"text-black"},Y0=Sl(()=>r.createElementVNode("span",{class:"gt-sm"},"formulario",-1)),X0={key:1,class:"text-black"},J0=Xe(r.defineComponent({__name:"StepsNavigationButtons",emits:["submit"],setup(t,{emit:l}){const{nextStep:i,previousStep:s,currentStep:a,stepsCount:c,nextDisabled:d,onLastSubstep:h}=r.toRefs(sr()),v=l,y=r.ref(!1),m=x=>{},b=()=>{a.value===c.value?v("submit"):i.value()};return(x,A)=>(r.openBlock(),r.createElementBlock("div",U0,[r.createElementVNode("div",z0,[r.unref(a)===r.unref(c)?(r.openBlock(),r.createElementBlock("div",H0,[r.createElementVNode("div",W0,[r.createVNode(cs,{color:"info",class:"checkbox",modelValue:y.value,"onUpdate:modelValue":A[1]||(A[1]=w=>y.value=w)},{default:r.withCtx(()=>[r.createElementVNode("div",null,[r.createTextVNode(" He leído, comprendo y acepto los términos de tratamiento de datos "),G0,r.createTextVNode(" personales para esta solicitud. Más info. sobre la protección de datos "),r.createElementVNode("span",{style:{"text-decoration":"underline"},onClick:A[0]||(A[0]=w=>m())},"aquí"),r.createTextVNode(". ")])]),_:1},8,["modelValue"])])])):r.createCommentVNode("",!0),r.createElementVNode("div",j0,[r.unref(a)>1?(r.openBlock(),r.createBlock(_n,{key:0,color:"info",class:"q-px-xl q-py-sm q-mr-sm win-btn win-btn-primary bg-white",onClick:r.unref(s),flat:"","no-caps":""},{default:r.withCtx(()=>[K0]),_:1},8,["onClick"])):(r.openBlock(),r.createElementBlock("div",Q0)),r.createElementVNode("div",null,[!r.unref(d)&&r.unref(h)?(r.openBlock(),r.createBlock(_n,{key:0,color:"green",class:"q-px-xl q-py-sm q-ml-sm win-btn win-btn-primary bg-white",onClick:b,disable:r.unref(a)===r.unref(c)&&!y.value,flat:"","no-caps":""},{default:r.withCtx(()=>[r.unref(a)===r.unref(c)?(r.openBlock(),r.createElementBlock("span",Z0,[r.createTextVNode(" Enviar "),Y0])):(r.openBlock(),r.createElementBlock("span",X0," Siguiente "))]),_:1},8,["disable"])):r.createCommentVNode("",!0)])])])]))}}),[["__scopeId","data-v-ea1ef607"]]),hc=r.defineComponent({__name:"DynamicForm",props:{forms:{}},emits:["onSubmit"],setup(t,{emit:l}){const i=t,s=l,a=r.ref(!1),c=sr(),d=v=>Pe.keys(Pe.groupBy(v.controls,"group")).length===1;r.watch(()=>i.forms,v=>{const m=new Hu().fromRaw(v);c.setFormSteps(m)},{immediate:!0});function h(){const v=Pe.cloneDeep(c.formSteps),m=new Hu().toRaw(v);s("onSubmit",m)}return(v,y)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("div",null,[r.renderSlot(v.$slots,"header"),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(c).formSteps,(m,b)=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:b},[d(m)?r.withDirectives((r.openBlock(),r.createBlock(D0,{key:0,index:b},null,8,["index"])),[[r.vShow,r.unref(c).currentStep===b+1]]):r.withDirectives((r.openBlock(),r.createBlock(I0,{key:1,index:b,onOnLastStep:y[0]||(y[0]=x=>a.value=x)},null,8,["index"])),[[r.vShow,r.unref(c).currentStep===b+1]])],64))),128))]),r.createVNode(J0,{onSubmit:h})],64))}}),eg=r.createElementVNode("img",{src:"https://upload.wikimedia.org/wikipedia/commons/thumb/9/95/Vue.js_Logo_2.svg/640px-Vue.js_Logo_2.svg.png",alt:""},null,-1),mc=r.defineComponent({__name:"TestUi",setup(t){const l=r.ref("Test W2W UI!");return(i,s)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[eg,r.createElementVNode("h1",null,r.toDisplayString(l.value),1)],64))}}),tg=r.defineComponent({__name:"DomSection",props:{section:{}},setup(t){const l=r.ref(null),i=t;return r.watch([()=>i.section,l],([s,a])=>{s&&a&&a.appendChild(s)}),(s,a)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"container",ref:l},null,512))}});function gc(t,l){const i=`{{${l}}}`;try{const s=l.split(".").flatMap(a=>{var h;const c=/(\w+)\[(\d+)\]/g,d=(h=Array.from(a.matchAll(c)))==null?void 0:h[0];return d!=null&&d.length?d.slice(1):a});return(s==null?void 0:s.reduce((a,c)=>(a==null?void 0:a[c])||"",t))||i}catch(s){return console.error(s),i}}function ng(t,l,i){const s=l.split(".");if(!s.length)return t;const a=s.pop(),c=s.reduce((d,h)=>(d[h]||(d[h]={}),d[h]),t);return c[a]=i,t}const rg={class:"card"},og={key:0,class:"card-header"},ig=["contenteditable"],lg={class:"card-content"},ag=["contenteditable"],ug=["contenteditable"],sg=Xe(r.defineComponent({__name:"Card",props:{card:{},data:{}},setup(t){const l=t;function i(c){const d=c.value||gc(l.data,c.key||"");return s(d,c.format)}function s(c,d){return d?d==="currency"?new Intl.NumberFormat("es-ES",{style:"currency",currency:"EUR"}).format(c):d==="percentage"?`${c} %`:c:c}const a=r.inject("editable");return(c,d)=>(r.openBlock(),r.createElementBlock("div",rg,[c.card.title||c.card.subtitle?(r.openBlock(),r.createElementBlock("div",og,[c.card.title?(r.openBlock(),r.createElementBlock("h3",{key:0,contenteditable:r.unref(a)},r.toDisplayString(c.card.title),9,ig)):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),r.createElementVNode("div",lg,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c.card.fields,(h,v)=>(r.openBlock(),r.createElementBlock("div",{key:v,class:"card-field"},[r.createElementVNode("span",{contenteditable:r.unref(a),class:"field-label"},r.toDisplayString(h.label),9,ag),r.createElementVNode("span",{contenteditable:r.unref(a),class:"field-value"},r.toDisplayString(i(h)),9,ug)]))),128))])]))}}),[["__cssModules",{$style:{card:"_card_12eql_1","card-header":"_card-header_12eql_8","card-content":"_card-content_12eql_22","card-field":"_card-field_12eql_22","field-label":"_field-label_12eql_27","field-value":"_field-value_12eql_30"}}]]);function Hr(t,l={}){const i=r.inject("data"),s=r.computed(()=>i.value[t]||l),a=r.computed(()=>i.value.global||{}),c=r.computed(()=>({...a.value,...s.value}));return{sectionData:s,globalData:a,data:c}}const cg=Xe(r.defineComponent({__name:"CardGridSection",props:{styles:{},id:{},content:{}},setup(t){const l=t,{data:i}=Hr(l.id,{});return(s,a)=>{var c;return r.openBlock(),r.createElementBlock("div",{class:"card-section",style:r.normalizeStyle(((c=s.styles)==null?void 0:c.cssRaw)||"")},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.content.cards,(d,h)=>(r.openBlock(),r.createBlock(sg,{key:h,card:d,data:r.unref(i)},null,8,["card","data"]))),128))],4)}}}),[["__cssModules",{$style:{"card-section":"_card-section_1xfbl_2"}}]]),fg=["src","alt"],dg=Xe(r.defineComponent({__name:"ImageSection",props:{styles:{},id:{},content:{}},setup(t){const l=t,{content:i,styles:s}=r.toRefs(l);return Hr(l.id,{}),(a,c)=>(r.openBlock(),r.createElementBlock("div",{style:r.normalizeStyle({justifyContent:r.unref(i).align}),class:"img-container"},[r.createElementVNode("img",{src:r.unref(i).src,alt:r.unref(i).alt,style:r.normalizeStyle({width:r.unref(i).width,height:r.unref(i).height})},null,12,fg)],4))}}),[["__cssModules",{$style:{"img-container":"_img-container_17yzt_2"}}]]),hg=t=>(r.pushScopeId("data-v-cde4d333"),t=t(),r.popScopeId(),t),mg={class:"section"},gg=[hg(()=>r.createElementVNode("div",{class:"signature"},null,-1))],pg=Xe(r.defineComponent({__name:"SignatureSection",props:{styles:{},id:{},content:{}},setup(t){return Hr(t.id,{}),r.ref([]),r.inject("editable"),(i,s)=>(r.openBlock(),r.createElementBlock("div",mg,gg))}}),[["__scopeId","data-v-cde4d333"]]),vg=["contenteditable"],_g=["contenteditable"],yg="#f5f5f5",bg=Xe(r.defineComponent({__name:"TableSection",props:{styles:{},id:{},content:{}},setup(t){const l=t,{columns:i}=r.toRefs(l.content),{data:s}=Hr(l.id,[]),a=r.computed(()=>[...s.value[l.content.rowsKey]||[]]),c=r.inject("editable");return(d,h)=>{var v;return r.openBlock(),r.createElementBlock("table",{style:r.normalizeStyle("width: 100%;"+((v=d.styles)==null?void 0:v.cssRaw)||""),class:"table-section"},[r.createElementVNode("thead",null,[r.createElementVNode("tr",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(i),y=>(r.openBlock(),r.createElementBlock("th",{key:y.key,style:r.normalizeStyle({textAlign:y.align||"left"}),contenteditable:r.unref(c)},r.toDisplayString(y.header),13,vg))),128))])]),r.createElementVNode("tbody",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(a.value,(y,m)=>(r.openBlock(),r.createElementBlock("tr",{key:m,style:r.normalizeStyle({backgroundColor:m%2===0?yg:"transparent"})},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(i),b=>(r.openBlock(),r.createElementBlock("td",{key:b.key,style:r.normalizeStyle({textAlign:b.align||"left"}),contenteditable:r.unref(c)},r.toDisplayString(y[b.key]),13,_g))),128))],4))),128))])],4)}}}),[["__cssModules",{$style:{"table-section":"_table-section_aicx8_1"}}]]),pc=We({name:"QTooltip",inheritAttrs:!1,props:{...Ns,...al,...$r,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null},transitionShow:{...$r.transitionShow,default:"jump-down"},transitionHide:{...$r.transitionHide,default:"jump-up"},anchor:{type:String,default:"bottom middle",validator:$o},self:{type:String,default:"top middle",validator:$o},offset:{type:Array,default:()=>[14,14],validator:Ys},scrollTarget:Us,delay:{type:Number,default:0},hideDelay:{type:Number,default:0},persistent:Boolean},emits:[...ul],setup(t,{slots:l,emit:i,attrs:s}){let a,c;const d=r.getCurrentInstance(),{proxy:{$q:h}}=d,v=r.ref(null),y=r.ref(!1),m=r.computed(()=>Do(t.anchor,h.lang.rtl)),b=r.computed(()=>Do(t.self,h.lang.rtl)),x=r.computed(()=>t.persistent!==!0),{registerTick:A,removeTick:w}=dl(),{registerTimeout:F}=Lr(),{transitionProps:k,transitionStyle:q}=fl(t),{localScrollTarget:D,changeScrollEvent:L,unconfigureScrollTarget:K}=$s(t,ge),{anchorEl:W,canShow:Q,anchorEvents:j}=qs({showing:y,configureAnchorEl:Be}),{show:ie,hide:N}=sl({showing:y,canShow:Q,handleShow:te,handleHide:$,hideOnRouteChange:x,processOnMount:!0});Object.assign(j,{delayShow:H,delayHide:se});const{showPortal:U,hidePortal:Z,renderPortal:O}=cl(d,v,T,"tooltip");if(h.platform.is.mobile===!0){const Y={anchorEl:W,innerRef:v,onClickOutside(fe){return N(fe),fe.target.classList.contains("q-dialog__backdrop")&&Ge(fe),!0}},pe=r.computed(()=>t.modelValue===null&&t.persistent!==!0&&y.value===!0);r.watch(pe,fe=>{(fe===!0?Ks:qo)(Y)}),r.onBeforeUnmount(()=>{qo(Y)})}function te(Y){U(),A(()=>{c=new MutationObserver(()=>ae()),c.observe(v.value,{attributes:!1,childList:!0,characterData:!0,subtree:!0}),ae(),ge()}),a===void 0&&(a=r.watch(()=>h.screen.width+"|"+h.screen.height+"|"+t.self+"|"+t.anchor+"|"+h.lang.rtl,ae)),F(()=>{U(!0),i("show",Y)},t.transitionDuration)}function $(Y){w(),Z(),le(),F(()=>{Z(!0),i("hide",Y)},t.transitionDuration)}function le(){c!==void 0&&(c.disconnect(),c=void 0),a!==void 0&&(a(),a=void 0),K(),ko(j,"tooltipTemp")}function ae(){gl({targetEl:v.value,offset:t.offset,anchorEl:W.value,anchorOrigin:m.value,selfOrigin:b.value,maxHeight:t.maxHeight,maxWidth:t.maxWidth})}function H(Y){if(h.platform.is.mobile===!0){ll(),document.body.classList.add("non-selectable");const pe=W.value,fe=["touchmove","touchcancel","touchend","click"].map(G=>[pe,G,"delayHide","passiveCapture"]);Pr(j,"tooltipTemp",fe)}F(()=>{ie(Y)},t.delay)}function se(Y){h.platform.is.mobile===!0&&(ko(j,"tooltipTemp"),ll(),setTimeout(()=>{document.body.classList.remove("non-selectable")},10)),F(()=>{N(Y)},t.hideDelay)}function Be(){if(t.noParentEvent===!0||W.value===null)return;const Y=h.platform.is.mobile===!0?[[W.value,"touchstart","delayShow","passive"]]:[[W.value,"mouseenter","delayShow","passive"],[W.value,"mouseleave","delayHide","passive"]];Pr(j,"anchor",Y)}function ge(){if(W.value!==null||t.scrollTarget!==void 0){D.value=zs(W.value,t.scrollTarget);const Y=t.noParentEvent===!0?ae:N;L(D.value,Y)}}function R(){return y.value===!0?r.h("div",{...s,ref:v,class:["q-tooltip q-tooltip--style q-position-engine no-pointer-events",s.class],style:[s.style,q.value],role:"tooltip"},at(l.default)):null}function T(){return r.h(r.Transition,k.value,R)}return r.onBeforeUnmount(le),Object.assign(d.proxy,{updatePosition:ae}),O}}),wg={class:"section"},Sg={key:0,class:"no-print"},Cg={class:"add-btn"},xg=["contenteditable"],Ag=["contenteditable"],Eg={class:"p-container"},kg=["contenteditable"],Bg={key:0,class:"remove-btn no-print"},Og=Xe(r.defineComponent({__name:"TextSection",props:{styles:{},id:{},content:{}},setup(t){const l=t,{data:i}=Hr(l.id,{}),s=r.computed(()=>{var b;return((b=l.content)==null?void 0:b.lines)||[]}),a=r.ref([]),c=r.inject("editable"),d=(b,x,A)=>{if(!x)return h(i.value,b);const w={};return Object.keys(x).forEach(k=>{const q=`${A}.${k}`;ng(w,q,x[k])}),h(w,b)};r.watch(s,b=>{a.value=Pe.cloneDeep(b)},{deep:!0,immediate:!0});function h(b,x){const A=x.match(/{{(.*?)}}/g);return A?A.reduce((w,F)=>{const k=F.replace(/{{|}}/g,"").trim(),q=gc(b,k);return w.replace(F,q??k)},x):x}const v=()=>{if(!(c!=null&&c.value))return;const b=a.value.length,x={type:lt.TextLineType.PARAGRAPH,text:"Párrafo "+b};a.value.push(x)},y=b=>{c!=null&&c.value&&a.value.splice(b,1)},m=b=>b.split(`
|
|
28
|
-
`);return(
|
|
27
|
+
}`;var we=qd(function(){return ke(p,ue+"return "+z).apply(i,_)});if(we.source=z,Ia(we))throw we;return we}function Qb(e){return Oe(e).toLowerCase()}function Zb(e){return Oe(e).toUpperCase()}function Yb(e,n,o){if(e=Oe(e),e&&(o||n===i))return jc(e);if(!e||!(n=xt(n)))return e;var u=Gt(e),f=Gt(n),p=Kc(u,f),_=Qc(u,f)+1;return In(u,p,_).join("")}function Xb(e,n,o){if(e=Oe(e),e&&(o||n===i))return e.slice(0,Yc(e)+1);if(!e||!(n=xt(n)))return e;var u=Gt(e),f=Qc(u,Gt(n))+1;return In(u,0,f).join("")}function Jb(e,n,o){if(e=Oe(e),e&&(o||n===i))return e.replace(Kr,"");if(!e||!(n=xt(n)))return e;var u=Gt(e),f=Kc(u,Gt(n));return In(u,f).join("")}function ew(e,n){var o=U,u=Z;if($e(n)){var f="separator"in n?n.separator:f;o="length"in n?be(n.length):o,u="omission"in n?xt(n.omission):u}e=Oe(e);var p=e.length;if(Sr(e)){var _=Gt(e);p=_.length}if(o>=p)return e;var C=o-Cr(u);if(C<1)return u;var B=_?In(_,0,C).join(""):e.slice(0,C);if(f===i)return B+u;if(_&&(C+=B.length-C),Fa(f)){if(e.slice(C).search(f)){var P,V=B;for(f.global||(f=Ql(f.source,Oe(ln.exec(f))+"g")),f.lastIndex=0;P=f.exec(V);)var z=P.index;B=B.slice(0,z===i?C:z)}}else if(e.indexOf(xt(f),C)!=C){var ee=B.lastIndexOf(f);ee>-1&&(B=B.slice(0,ee))}return B+u}function tw(e){return e=Oe(e),e&&Cl.test(e)?e.replace(Gr,Tp):e}var nw=Tr(function(e,n,o){return e+(o?" ":"")+n.toUpperCase()}),Pa=$f("toUpperCase");function Nd(e,n,o){return e=Oe(e),n=o?i:n,n===i?Ap(e)?Fp(e):pp(e):e.match(n)||[]}var qd=Se(function(e,n){try{return St(e,i,n)}catch(o){return Ia(o)?o:new _e(o)}}),rw=fn(function(e,n){return It(n,function(o){o=en(o),sn(e,o,Ta(e[o],e))}),e});function ow(e){var n=e==null?0:e.length,o=de();return e=n?Ne(e,function(u){if(typeof u[1]!="function")throw new Ft(d);return[o(u[0]),u[1]]}):[],Se(function(u){for(var f=-1;++f<n;){var p=e[f];if(St(p[0],this,u))return St(p[1],this,u)}})}function iw(e){return Tv(Lt(e,y))}function Va(e){return function(){return e}}function lw(e,n){return e==null||e!==e?n:e}var aw=Uf(),uw=Uf(!0);function vt(e){return e}function Na(e){return _f(typeof e=="function"?e:Lt(e,y))}function sw(e){return bf(Lt(e,y))}function cw(e,n){return wf(e,Lt(n,y))}var fw=Se(function(e,n){return function(o){return oo(o,e,n)}}),dw=Se(function(e,n){return function(o){return oo(e,o,n)}});function qa(e,n,o){var u=Je(n),f=Si(n,u);o==null&&!($e(n)&&(f.length||!u.length))&&(o=n,n=e,e=this,f=Si(n,Je(n)));var p=!($e(o)&&"chain"in o)||!!o.chain,_=hn(e);return It(f,function(C){var B=n[C];e[C]=B,_&&(e.prototype[C]=function(){var P=this.__chain__;if(p||P){var V=e(this.__wrapped__),z=V.__actions__=mt(this.__actions__);return z.push({func:B,args:arguments,thisArg:e}),V.__chain__=P,V}return B.apply(e,En([this.value()],arguments))})}),e}function hw(){return tt._===this&&(tt._=qp),this}function $a(){}function mw(e){return e=be(e),Se(function(n){return Sf(n,e)})}var gw=va(Ne),pw=va(Uc),vw=va(Ul);function $d(e){return xa(e)?zl(en(e)):jv(e)}function _w(e){return function(n){return e==null?i:er(e,n)}}var yw=Hf(),bw=Hf(!0);function Da(){return[]}function Ua(){return!1}function ww(){return{}}function Sw(){return""}function Cw(){return!0}function xw(e,n){if(e=be(e),e<1||e>se)return[];var o=R,u=ot(e,R);n=de(n),e-=R;for(var f=Gl(u,n);++o<e;)n(o);return f}function Aw(e){return ye(e)?Ne(e,en):At(e)?[e]:mt(ld(Oe(e)))}function Ew(e){var n=++Vp;return Oe(e)+n}var kw=Bi(function(e,n){return e+n},0),Bw=_a("ceil"),Ow=Bi(function(e,n){return e/n},1),Tw=_a("floor");function Rw(e){return e&&e.length?wi(e,vt,ra):i}function Iw(e,n){return e&&e.length?wi(e,de(n,2),ra):i}function Fw(e){return Wc(e,vt)}function Mw(e,n){return Wc(e,de(n,2))}function Lw(e){return e&&e.length?wi(e,vt,aa):i}function Pw(e,n){return e&&e.length?wi(e,de(n,2),aa):i}var Vw=Bi(function(e,n){return e*n},1),Nw=_a("round"),qw=Bi(function(e,n){return e-n},0);function $w(e){return e&&e.length?Wl(e,vt):0}function Dw(e,n){return e&&e.length?Wl(e,de(n,2)):0}return g.after=sy,g.ary=vd,g.assign=Zy,g.assignIn=Rd,g.assignInWith=Di,g.assignWith=Yy,g.at=Xy,g.before=_d,g.bind=Ta,g.bindAll=rw,g.bindKey=yd,g.castArray=wy,g.chain=md,g.chunk=T_,g.compact=R_,g.concat=I_,g.cond=ow,g.conforms=iw,g.constant=Va,g.countBy=$1,g.create=Jy,g.curry=bd,g.curryRight=wd,g.debounce=Sd,g.defaults=eb,g.defaultsDeep=tb,g.defer=cy,g.delay=fy,g.difference=F_,g.differenceBy=M_,g.differenceWith=L_,g.drop=P_,g.dropRight=V_,g.dropRightWhile=N_,g.dropWhile=q_,g.fill=$_,g.filter=U1,g.flatMap=W1,g.flatMapDeep=G1,g.flatMapDepth=j1,g.flatten=cd,g.flattenDeep=D_,g.flattenDepth=U_,g.flip=dy,g.flow=aw,g.flowRight=uw,g.fromPairs=z_,g.functions=ub,g.functionsIn=sb,g.groupBy=K1,g.initial=W_,g.intersection=G_,g.intersectionBy=j_,g.intersectionWith=K_,g.invert=fb,g.invertBy=db,g.invokeMap=Z1,g.iteratee=Na,g.keyBy=Y1,g.keys=Je,g.keysIn=pt,g.map=Li,g.mapKeys=mb,g.mapValues=gb,g.matches=sw,g.matchesProperty=cw,g.memoize=Vi,g.merge=pb,g.mergeWith=Id,g.method=fw,g.methodOf=dw,g.mixin=qa,g.negate=Ni,g.nthArg=mw,g.omit=vb,g.omitBy=_b,g.once=hy,g.orderBy=X1,g.over=gw,g.overArgs=my,g.overEvery=pw,g.overSome=vw,g.partial=Ra,g.partialRight=Cd,g.partition=J1,g.pick=yb,g.pickBy=Fd,g.property=$d,g.propertyOf=_w,g.pull=X_,g.pullAll=dd,g.pullAllBy=J_,g.pullAllWith=e1,g.pullAt=t1,g.range=yw,g.rangeRight=bw,g.rearg=gy,g.reject=ny,g.remove=n1,g.rest=py,g.reverse=Ba,g.sampleSize=oy,g.set=wb,g.setWith=Sb,g.shuffle=iy,g.slice=r1,g.sortBy=uy,g.sortedUniq=c1,g.sortedUniqBy=f1,g.split=Wb,g.spread=vy,g.tail=d1,g.take=h1,g.takeRight=m1,g.takeRightWhile=g1,g.takeWhile=p1,g.tap=R1,g.throttle=_y,g.thru=Mi,g.toArray=Bd,g.toPairs=Md,g.toPairsIn=Ld,g.toPath=Aw,g.toPlainObject=Td,g.transform=Cb,g.unary=yy,g.union=v1,g.unionBy=_1,g.unionWith=y1,g.uniq=b1,g.uniqBy=w1,g.uniqWith=S1,g.unset=xb,g.unzip=Oa,g.unzipWith=hd,g.update=Ab,g.updateWith=Eb,g.values=Fr,g.valuesIn=kb,g.without=C1,g.words=Nd,g.wrap=by,g.xor=x1,g.xorBy=A1,g.xorWith=E1,g.zip=k1,g.zipObject=B1,g.zipObjectDeep=O1,g.zipWith=T1,g.entries=Md,g.entriesIn=Ld,g.extend=Rd,g.extendWith=Di,qa(g,g),g.add=kw,g.attempt=qd,g.camelCase=Rb,g.capitalize=Pd,g.ceil=Bw,g.clamp=Bb,g.clone=Sy,g.cloneDeep=xy,g.cloneDeepWith=Ay,g.cloneWith=Cy,g.conformsTo=Ey,g.deburr=Vd,g.defaultTo=lw,g.divide=Ow,g.endsWith=Ib,g.eq=Kt,g.escape=Fb,g.escapeRegExp=Mb,g.every=D1,g.find=z1,g.findIndex=ud,g.findKey=nb,g.findLast=H1,g.findLastIndex=sd,g.findLastKey=rb,g.floor=Tw,g.forEach=gd,g.forEachRight=pd,g.forIn=ob,g.forInRight=ib,g.forOwn=lb,g.forOwnRight=ab,g.get=Ma,g.gt=ky,g.gte=By,g.has=cb,g.hasIn=La,g.head=fd,g.identity=vt,g.includes=Q1,g.indexOf=H_,g.inRange=Ob,g.invoke=hb,g.isArguments=rr,g.isArray=ye,g.isArrayBuffer=Oy,g.isArrayLike=gt,g.isArrayLikeObject=ze,g.isBoolean=Ty,g.isBuffer=Fn,g.isDate=Ry,g.isElement=Iy,g.isEmpty=Fy,g.isEqual=My,g.isEqualWith=Ly,g.isError=Ia,g.isFinite=Py,g.isFunction=hn,g.isInteger=xd,g.isLength=qi,g.isMap=Ad,g.isMatch=Vy,g.isMatchWith=Ny,g.isNaN=qy,g.isNative=$y,g.isNil=Uy,g.isNull=Dy,g.isNumber=Ed,g.isObject=$e,g.isObjectLike=Ue,g.isPlainObject=co,g.isRegExp=Fa,g.isSafeInteger=zy,g.isSet=kd,g.isString=$i,g.isSymbol=At,g.isTypedArray=Ir,g.isUndefined=Hy,g.isWeakMap=Wy,g.isWeakSet=Gy,g.join=Q_,g.kebabCase=Lb,g.last=Vt,g.lastIndexOf=Z_,g.lowerCase=Pb,g.lowerFirst=Vb,g.lt=jy,g.lte=Ky,g.max=Rw,g.maxBy=Iw,g.mean=Fw,g.meanBy=Mw,g.min=Lw,g.minBy=Pw,g.stubArray=Da,g.stubFalse=Ua,g.stubObject=ww,g.stubString=Sw,g.stubTrue=Cw,g.multiply=Vw,g.nth=Y_,g.noConflict=hw,g.noop=$a,g.now=Pi,g.pad=Nb,g.padEnd=qb,g.padStart=$b,g.parseInt=Db,g.random=Tb,g.reduce=ey,g.reduceRight=ty,g.repeat=Ub,g.replace=zb,g.result=bb,g.round=Nw,g.runInContext=E,g.sample=ry,g.size=ly,g.snakeCase=Hb,g.some=ay,g.sortedIndex=o1,g.sortedIndexBy=i1,g.sortedIndexOf=l1,g.sortedLastIndex=a1,g.sortedLastIndexBy=u1,g.sortedLastIndexOf=s1,g.startCase=Gb,g.startsWith=jb,g.subtract=qw,g.sum=$w,g.sumBy=Dw,g.template=Kb,g.times=xw,g.toFinite=mn,g.toInteger=be,g.toLength=Od,g.toLower=Qb,g.toNumber=Nt,g.toSafeInteger=Qy,g.toString=Oe,g.toUpper=Zb,g.trim=Yb,g.trimEnd=Xb,g.trimStart=Jb,g.truncate=ew,g.unescape=tw,g.uniqueId=Ew,g.upperCase=nw,g.upperFirst=Pa,g.each=gd,g.eachRight=pd,g.first=fd,qa(g,function(){var e={};return Xt(g,function(n,o){Re.call(g.prototype,o)||(e[o]=n)}),e}(),{chain:!1}),g.VERSION=s,It(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){g[e].placeholder=g}),It(["drop","take"],function(e,n){xe.prototype[e]=function(o){o=o===i?1:Ye(be(o),0);var u=this.__filtered__&&!n?new xe(this):this.clone();return u.__filtered__?u.__takeCount__=ot(o,u.__takeCount__):u.__views__.push({size:ot(o,R),type:e+(u.__dir__<0?"Right":"")}),u},xe.prototype[e+"Right"]=function(o){return this.reverse()[e](o).reverse()}}),It(["filter","map","takeWhile"],function(e,n){var o=n+1,u=o==$||o==ae;xe.prototype[e]=function(f){var p=this.clone();return p.__iteratees__.push({iteratee:de(f,3),type:o}),p.__filtered__=p.__filtered__||u,p}}),It(["head","last"],function(e,n){var o="take"+(n?"Right":"");xe.prototype[e]=function(){return this[o](1).value()[0]}}),It(["initial","tail"],function(e,n){var o="drop"+(n?"":"Right");xe.prototype[e]=function(){return this.__filtered__?new xe(this):this[o](1)}}),xe.prototype.compact=function(){return this.filter(vt)},xe.prototype.find=function(e){return this.filter(e).head()},xe.prototype.findLast=function(e){return this.reverse().find(e)},xe.prototype.invokeMap=Se(function(e,n){return typeof e=="function"?new xe(this):this.map(function(o){return oo(o,e,n)})}),xe.prototype.reject=function(e){return this.filter(Ni(de(e)))},xe.prototype.slice=function(e,n){e=be(e);var o=this;return o.__filtered__&&(e>0||n<0)?new xe(o):(e<0?o=o.takeRight(-e):e&&(o=o.drop(e)),n!==i&&(n=be(n),o=n<0?o.dropRight(-n):o.take(n-e)),o)},xe.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},xe.prototype.toArray=function(){return this.take(R)},Xt(xe.prototype,function(e,n){var o=/^(?:filter|find|map|reject)|While$/.test(n),u=/^(?:head|last)$/.test(n),f=g[u?"take"+(n=="last"?"Right":""):n],p=u||/^find/.test(n);f&&(g.prototype[n]=function(){var _=this.__wrapped__,C=u?[1]:arguments,B=_ instanceof xe,P=C[0],V=B||ye(_),z=function(Ce){var Ae=f.apply(g,En([Ce],C));return u&&ee?Ae[0]:Ae};V&&o&&typeof P=="function"&&P.length!=1&&(B=V=!1);var ee=this.__chain__,ue=!!this.__actions__.length,he=p&&!ee,we=B&&!ue;if(!p&&V){_=we?_:new xe(this);var me=e.apply(_,C);return me.__actions__.push({func:Mi,args:[z],thisArg:i}),new Mt(me,ee)}return he&&we?e.apply(this,C):(me=this.thru(z),he?u?me.value()[0]:me.value():me)})}),It(["pop","push","shift","sort","splice","unshift"],function(e){var n=li[e],o=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",u=/^(?:pop|shift)$/.test(e);g.prototype[e]=function(){var f=arguments;if(u&&!this.__chain__){var p=this.value();return n.apply(ye(p)?p:[],f)}return this[o](function(_){return n.apply(ye(_)?_:[],f)})}}),Xt(xe.prototype,function(e,n){var o=g[n];if(o){var u=o.name+"";Re.call(kr,u)||(kr[u]=[]),kr[u].push({name:n,func:o})}}),kr[ki(i,q).name]=[{name:"wrapper",func:i}],xe.prototype.clone=tv,xe.prototype.reverse=nv,xe.prototype.value=rv,g.prototype.at=I1,g.prototype.chain=F1,g.prototype.commit=M1,g.prototype.next=L1,g.prototype.plant=V1,g.prototype.reverse=N1,g.prototype.toJSON=g.prototype.valueOf=g.prototype.value=q1,g.prototype.first=g.prototype.head,Yr&&(g.prototype[Yr]=P1),g},xr=Mp();Qn?((Qn.exports=xr)._=xr,Nl._=xr):tt._=xr}).call(ce)}(fo,fo.exports);var Pe=fo.exports,lt={},za={},or={};Object.defineProperty(or,"__esModule",{value:!0}),or.EstadoCaptacion=or.TipoCaptacion=void 0;var Ha;(function(t){t.CLIENTES="1",t.PROVEEDORES="2",t.USUARIOS="3",t.PRODUCTOS="4",t.PEDIDOS="5",t.SOLICITUDES="6"})(Ha||(or.TipoCaptacion=Ha={}));var Wa;(function(t){t.EN_ESTUDIO="1",t.PRE_APROBADA="2",t.APROBADA="3",t.EN_NEGOCIACION="4",t.NEGOCIACION_FINALIZADA="5",t.CONFIRMADA="6",t.FINALIZADA="7",t.CANCELADA="0"})(Wa||(or.EstadoCaptacion=Wa={}));var ho={};Object.defineProperty(ho,"__esModule",{value:!0}),ho.TipoGarantia=void 0;var Ga;(function(t){t.INMUEBLE="Propiedad inmobiliaria",t.VEHICULO="Vehículo",t.AVAL_PERSONAL="Aval personal",t.OTROS="Otros"})(Ga||(ho.TipoGarantia=Ga={}));var mo={};Object.defineProperty(mo,"__esModule",{value:!0}),mo.TipoImportacion=void 0;var ja;(function(t){t.CAPTACION="captacion",t.PEDIDO="pedido",t.PRODUCTO="producto",t.CLIENTE="cliente"})(ja||(mo.TipoImportacion=ja={}));var pn={};Object.defineProperty(pn,"__esModule",{value:!0}),pn.TipoLiquidacionReclamo=pn.EstadoLiquidacionReclamo=pn.EstadoLiquidacion=void 0;var Ka;(function(t){t[t.EN_PREVISION=1]="EN_PREVISION",t[t.CONFIRMACION_PENDIENTE=2]="CONFIRMACION_PENDIENTE",t[t.CONFIRMADA=3]="CONFIRMADA",t[t.PAGADA=4]="PAGADA",t[t.CON_RECLAMOS=5]="CON_RECLAMOS"})(Ka||(pn.EstadoLiquidacion=Ka={}));var Qa;(function(t){t[t.ACTIVO=1]="ACTIVO",t[t.APROBADO=2]="APROBADO",t[t.NEGADO=3]="NEGADO"})(Qa||(pn.EstadoLiquidacionReclamo=Qa={}));var Za;(function(t){t[t.ITEM=1]="ITEM",t[t.COBRO=2]="COBRO"})(Za||(pn.TipoLiquidacionReclamo=Za={}));var go={};Object.defineProperty(go,"__esModule",{value:!0}),go.TipoNotificacion=void 0;var Ya;(function(t){t.NUEVO="1",t.DOCUMENTOS="2",t.REALIZADO="3",t.INCIDENTES="4",t.CANCELACION="5"})(Ya||(go.TipoNotificacion=Ya={}));var po={};Object.defineProperty(po,"__esModule",{value:!0}),po.EstadoPedido=void 0;var Xa;(function(t){t[t.PENDIENTE=1]="PENDIENTE",t[t.REVISAR_DOC=2]="REVISAR_DOC",t[t.LLAMAR=3]="LLAMAR",t[t.FINALIZADO=4]="FINALIZADO",t[t.CANCELADO=5]="CANCELADO",t[t.LIQUIDADO=6]="LIQUIDADO",t[t.INCIDENCIA=7]="INCIDENCIA",t[t.TRAMITADO=8]="TRAMITADO",t[t.PENDIENTE_ASIGNAR=9]="PENDIENTE_ASIGNAR"})(Xa||(po.EstadoPedido=Xa={}));var ir={};Object.defineProperty(ir,"__esModule",{value:!0}),ir.TipoProducto=ir.EstadoProducto=void 0;var Ja;(function(t){t.DESHABILITADO="0",t.INACTIVO="1",t.ACTIVADO="2",t.PUBLICO="3"})(Ja||(ir.EstadoProducto=Ja={}));var eu;(function(t){t.ARTICULO="1",t.SERVICIO_CONTRATO="2",t.MEMBRESIA="3",t.OFERTA_EMPLEO="4"})(eu||(ir.TipoProducto=eu={}));var vo={};Object.defineProperty(vo,"__esModule",{value:!0}),vo.EstadoBase=void 0;var tu;(function(t){t[t.INACTIVO=0]="INACTIVO",t[t.ACTIVO=1]="ACTIVO"})(tu||(vo.EstadoBase=tu={})),function(t){var l=ce&&ce.__createBinding||(Object.create?function(s,a,c,d){d===void 0&&(d=c);var h=Object.getOwnPropertyDescriptor(a,c);(!h||("get"in h?!a.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return a[c]}}),Object.defineProperty(s,d,h)}:function(s,a,c,d){d===void 0&&(d=c),s[d]=a[c]}),i=ce&&ce.__exportStar||function(s,a){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(a,c)&&l(a,s,c)};Object.defineProperty(t,"__esModule",{value:!0}),i(or,t),i(ho,t),i(mo,t),i(pn,t),i(go,t),i(po,t),i(ir,t),i(vo,t)}(za);var nu={},ru={},ou={};Object.defineProperty(ou,"__esModule",{value:!0}),function(t){var l=ce&&ce.__createBinding||(Object.create?function(s,a,c,d){d===void 0&&(d=c);var h=Object.getOwnPropertyDescriptor(a,c);(!h||("get"in h?!a.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return a[c]}}),Object.defineProperty(s,d,h)}:function(s,a,c,d){d===void 0&&(d=c),s[d]=a[c]}),i=ce&&ce.__exportStar||function(s,a){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(a,c)&&l(a,s,c)};Object.defineProperty(t,"__esModule",{value:!0}),i(ou,t)}(ru);var iu={},lu={};Object.defineProperty(lu,"__esModule",{value:!0});var lr={};Object.defineProperty(lr,"__esModule",{value:!0}),lr.RuleValueType=lr.ESTADO_RULE_OPERATORS=void 0,lr.ESTADO_RULE_OPERATORS=[">","<","=","!=",">=","<=","in","not in","contains","not empty","like"];var au;(function(t){t.CONST="const",t.FLAG="flag"})(au||(lr.RuleValueType=au={}));var _o={};Object.defineProperty(_o,"__esModule",{value:!0}),_o.FlagType=void 0;var uu;(function(t){t.FIELD="field",t.QUERY="query"})(uu||(_o.FlagType=uu={})),function(t){var l=ce&&ce.__createBinding||(Object.create?function(s,a,c,d){d===void 0&&(d=c);var h=Object.getOwnPropertyDescriptor(a,c);(!h||("get"in h?!a.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return a[c]}}),Object.defineProperty(s,d,h)}:function(s,a,c,d){d===void 0&&(d=c),s[d]=a[c]}),i=ce&&ce.__exportStar||function(s,a){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(a,c)&&l(a,s,c)};Object.defineProperty(t,"__esModule",{value:!0}),i(lu,t),i(lr,t),i(_o,t)}(iu);var su={},yo={};Object.defineProperty(yo,"__esModule",{value:!0}),yo.LAYOUT_COLUMNA_TYPES=void 0,yo.LAYOUT_COLUMNA_TYPES=["texto","numero","fecha"],function(t){var l=ce&&ce.__createBinding||(Object.create?function(s,a,c,d){d===void 0&&(d=c);var h=Object.getOwnPropertyDescriptor(a,c);(!h||("get"in h?!a.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return a[c]}}),Object.defineProperty(s,d,h)}:function(s,a,c,d){d===void 0&&(d=c),s[d]=a[c]}),i=ce&&ce.__exportStar||function(s,a){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(a,c)&&l(a,s,c)};Object.defineProperty(t,"__esModule",{value:!0}),i(yo,t)}(su);var cu={},vn={};Object.defineProperty(vn,"__esModule",{value:!0}),vn.LAYOUT_SECTION_TYPES=vn.LayoutSectionType=vn.TextLineType=void 0;var fu;(function(t){t.TITLE="title",t.SUBTITLE="subtitle",t.PARAGRAPH="paragraph"})(fu||(vn.TextLineType=fu={}));var Mn;(function(t){t.TEXT="text",t.TABLE="table",t.CARDS_GRID="cards-grid",t.IMAGE="image",t.SIGNATURE="signature"})(Mn||(vn.LayoutSectionType=Mn={})),vn.LAYOUT_SECTION_TYPES=[Mn.TEXT,Mn.CARDS_GRID,Mn.TABLE,Mn.IMAGE,Mn.SIGNATURE],function(t){var l=ce&&ce.__createBinding||(Object.create?function(s,a,c,d){d===void 0&&(d=c);var h=Object.getOwnPropertyDescriptor(a,c);(!h||("get"in h?!a.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return a[c]}}),Object.defineProperty(s,d,h)}:function(s,a,c,d){d===void 0&&(d=c),s[d]=a[c]}),i=ce&&ce.__exportStar||function(s,a){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(a,c)&&l(a,s,c)};Object.defineProperty(t,"__esModule",{value:!0}),i(vn,t)}(cu);var du={},ar={};Object.defineProperty(ar,"__esModule",{value:!0}),ar.COMISION_SOURCE_ENTITIES=ar.TipoComision=void 0;var hu;(function(t){t.PORCENTAJE="porcentaje",t.MONTO_FIJO="monto_fijo"})(hu||(ar.TipoComision=hu={})),ar.COMISION_SOURCE_ENTITIES=["captacion","pedido","producto","propuesta","importacion"];var mu={};Object.defineProperty(mu,"__esModule",{value:!0});var bo={};Object.defineProperty(bo,"__esModule",{value:!0}),bo.TipoLiquidacion=void 0;var gu;(function(t){t.SOLICITUD_CLIENTE="solicitud_cliente",t.RED_COMERCIAL="red_comercial"})(gu||(bo.TipoLiquidacion=gu={}));var Bt={};Object.defineProperty(Bt,"__esModule",{value:!0}),Bt.TABLES=Bt.TABLES_FIELDS=Bt.SOURCES=Bt.LOGIC_OPERATORS=Bt.RULE_OPERATORS=void 0,Bt.RULE_OPERATORS=["==","!=","<",">","IN"],Bt.LOGIC_OPERATORS=["AND","OR"],Bt.SOURCES=["IMPORTACION","TABLA","CONTENEDOR"],Bt.TABLES_FIELDS={PRODUCTOS:["TIPO","NOMBRE","DESCRIPCION","ID_GAMA","ESTADO","TAGS","ID_PRODUCTO","PROPS","CODIGO_EXTERNO"],CAPTACION:["ESTADO","TIPO","CAPTADO","ID_CAPTACION","FECHA_CAPTADO","COD_CLIENTE","COD_PROVEEDOR"]},Bt.TABLES=[{label:"PRODUCTOS",value:"PRODUCTOS"},{label:"CAPTACIONES",value:"CAPTACION"}],function(t){var l=ce&&ce.__createBinding||(Object.create?function(s,a,c,d){d===void 0&&(d=c);var h=Object.getOwnPropertyDescriptor(a,c);(!h||("get"in h?!a.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return a[c]}}),Object.defineProperty(s,d,h)}:function(s,a,c,d){d===void 0&&(d=c),s[d]=a[c]}),i=ce&&ce.__exportStar||function(s,a){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(a,c)&&l(a,s,c)};Object.defineProperty(t,"__esModule",{value:!0}),i(ar,t),i(mu,t),i(bo,t),i(Bt,t)}(du);var pu={},wo={};Object.defineProperty(wo,"__esModule",{value:!0}),wo.OPERATORS=void 0,wo.OPERATORS=["==","!=",">","<",">=","<=","contains","not_contains","in","not_in"];var ur={};Object.defineProperty(ur,"__esModule",{value:!0}),ur.ControlType=ur.GAMA_PROP_CONTROL_TYPES=void 0,ur.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:"o_location_on",label:"Ubicación"},{code:"dynamic_array",icon:"data_array",label:"Colección dinámica"},{code:"object",icon:"data_object",label:"Objeto"},{code:"keys_counter",icon:"plus_one",label:"Contador de entradas"},{code:"collection",icon:"o_description",label:"Colección"}];var vu;(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",t.KEYS_COUNTER="keys_counter",t.COLLECTION="collection"})(vu||(ur.ControlType=vu={}));var _u={};Object.defineProperty(_u,"__esModule",{value:!0});var yu={};Object.defineProperty(yu,"__esModule",{value:!0});var bu={},Ui={exports:{}};(function(t,l){(function(i,s){s(l)})(ce,function(i){var s=function(b){return"trwagmyfpdxbnjzsqvhlcke"[+b%23]},a=function(b){return(""+Math.random()).slice(-b)},c=function(b){return(function(m){var y=m%2147483647;return y<=0&&(y+=2147483646),{next:function(){return y=16807*y%2147483647}}}(b).next()-1)/2147483646},d=function(b){var m="xyzXYZ".indexOf(b[0])%3,y=m.toString();m===-1&&(y=b[0]);var A=""+y+b.slice(1,8);return s(A).toUpperCase()},h=function(b){return/^[XYZ]{1}[0-9]{7}[TRWAGMYFPDXBNJZSQVHLCKE]{1}$/i.test(b)},v=function(b){return/^[0-9]{8}[TRWAGMYFPDXBNJZSQVHLCKE]{1}$/i.test(b)};i.ctrlChar=d,i.isNIE=function(b){return!!b&&b.length===9&&h(b)&&d(b)===b[8].toUpperCase()},i.isNIF=function(b){return!!b&&b.length===9&&v(b)&&d(b)===b[8].toUpperCase()},i.isValid=function(b){var m=b||"";if(m.length!==9&&!h(m)&&!v(m))return!1;var y="xyzXYZ".indexOf(m[0])%3,A=y.toString();y===-1&&(A=m[0]);var x=+(A+m.slice(1,8))%23;return"trwagmyfpdxbnjzsqvhlcket".indexOf(m[8].toLowerCase())===x},i.normalize=function(b){return b.replace(/[-_\s]/gi,"").toUpperCase()},i.randomNIE=function(){var b=Math.floor(3*Math.random()),m=a(7),y=s(""+b+m).toUpperCase();return""+"XYZ"[b]+m+y},i.randomNIEWith=function(b,m,y){y===void 0&&(y=1e8*Math.random());var A="xyzXYZ".indexOf(b)%3;if(A===-1)return null;var x="trwagmyfpdxbnjzsqvhlckeTRWAGMYFPDXBNJZSQVHLCKE".indexOf(m)%23;if(x===-1)return null;var w=A+1,F=+(""+A+Math.floor(1e6*w+(9999999-1e6*w-23)*c(y)));return(""+b+("0"+(F-F%23+x)+m).slice(-8)).toUpperCase()},i.randomNIF=function(){var b=a(8);return b+s(b).toUpperCase()},i.randomNIFWith=function(b,m){m===void 0&&(m=1e8*Math.random());var y="trwagmyfpdxbnjzsqvhlckeTRWAGMYFPDXBNJZSQVHLCKE".indexOf(b)%23;if(y===-1)return null;var A=99999998-4347826*(Math.floor(22*c(m))+1);return(""+("0"+(A+(y-Math.max(0,A)%23))).slice(-8)+b).toUpperCase()},Object.defineProperty(i,"__esModule",{value:!0})})})(Ui,Ui.exports);var zd=Ui.exports,wu={};(function(t){(function(l,i){typeof t.nodeName!="string"?i(t):i(l.IBAN={})})(ce,function(l){Array.prototype.map||(Array.prototype.map=function(w){if(this===void 0||this===null)throw new TypeError;var F=Object(this),k=F.length>>>0;if(typeof w!="function")throw new TypeError;for(var q=new Array(k),D=arguments.length>=2?arguments[1]:void 0,L=0;L<k;L++)L in F&&(q[L]=w.call(D,F[L],L,F));return q});var i=65,s=90;function a(w){return w=w.toUpperCase(),w=w.substr(4)+w.substr(0,4),w.split("").map(function(F){var k=F.charCodeAt(0);return k>=i&&k<=s?k-i+10:F}).join("")}function c(w){for(var F=w,k;F.length>2;)k=F.slice(0,9),F=parseInt(k,10)%97+F.slice(k.length);return parseInt(F,10)%97}function d(w){var F=w.match(/(.{3})/g).map(function(k){var q,D=k.slice(0,1),L=parseInt(k.slice(1),10);switch(D){case"A":q="0-9A-Za-z";break;case"B":q="0-9A-Z";break;case"C":q="A-Za-z";break;case"F":q="0-9";break;case"L":q="a-z";break;case"U":q="A-Z";break;case"W":q="0-9a-z";break}return"(["+q+"]{"+L+"})"});return new RegExp("^"+F.join("")+"$")}function h(w){return w.replace(y,"").toUpperCase()}function v(w,F,k,q){this.countryCode=w,this.length=F,this.structure=k,this.example=q}v.prototype._regex=function(){return this._cachedRegex||(this._cachedRegex=d(this.structure))},v.prototype.isValid=function(w){return this.length==w.length&&this.countryCode===w.slice(0,2)&&this._regex().test(w.slice(4))&&c(a(w))==1},v.prototype.toBBAN=function(w,F){return this._regex().exec(w.slice(4)).slice(1).join(F)},v.prototype.fromBBAN=function(w){if(!this.isValidBBAN(w))throw new Error("Invalid BBAN");var F=c(a(this.countryCode+"00"+w)),k=("0"+(98-F)).slice(-2);return this.countryCode+k+w},v.prototype.isValidBBAN=function(w){return this.length-4==w.length&&this._regex().test(w)};var b={};function m(w){b[w.countryCode]=w}m(new v("AD",24,"F04F04A12","AD1200012030200359100100")),m(new v("AE",23,"F03F16","AE070331234567890123456")),m(new v("AL",28,"F08A16","AL47212110090000000235698741")),m(new v("AT",20,"F05F11","AT611904300234573201")),m(new v("AZ",28,"U04A20","AZ21NABZ00000000137010001944")),m(new v("BA",20,"F03F03F08F02","BA391290079401028494")),m(new v("BE",16,"F03F07F02","BE68539007547034")),m(new v("BG",22,"U04F04F02A08","BG80BNBG96611020345678")),m(new v("BH",22,"U04A14","BH67BMAG00001299123456")),m(new v("BR",29,"F08F05F10U01A01","BR9700360305000010009795493P1")),m(new v("BY",28,"A04F04A16","BY13NBRB3600900000002Z00AB00")),m(new v("CH",21,"F05A12","CH9300762011623852957")),m(new v("CR",22,"F04F14","CR72012300000171549015")),m(new v("CY",28,"F03F05A16","CY17002001280000001200527600")),m(new v("CZ",24,"F04F06F10","CZ6508000000192000145399")),m(new v("DE",22,"F08F10","DE89370400440532013000")),m(new v("DK",18,"F04F09F01","DK5000400440116243")),m(new v("DO",28,"U04F20","DO28BAGR00000001212453611324")),m(new v("EE",20,"F02F02F11F01","EE382200221020145685")),m(new v("EG",29,"F04F04F17","EG800002000156789012345180002")),m(new v("ES",24,"F04F04F01F01F10","ES9121000418450200051332")),m(new v("FI",18,"F06F07F01","FI2112345600000785")),m(new v("FO",18,"F04F09F01","FO6264600001631634")),m(new v("FR",27,"F05F05A11F02","FR1420041010050500013M02606")),m(new v("GB",22,"U04F06F08","GB29NWBK60161331926819")),m(new v("GE",22,"U02F16","GE29NB0000000101904917")),m(new v("GI",23,"U04A15","GI75NWBK000000007099453")),m(new v("GL",18,"F04F09F01","GL8964710001000206")),m(new v("GR",27,"F03F04A16","GR1601101250000000012300695")),m(new v("GT",28,"A04A20","GT82TRAJ01020000001210029690")),m(new v("HR",21,"F07F10","HR1210010051863000160")),m(new v("HU",28,"F03F04F01F15F01","HU42117730161111101800000000")),m(new v("IE",22,"U04F06F08","IE29AIBK93115212345678")),m(new v("IL",23,"F03F03F13","IL620108000000099999999")),m(new v("IS",26,"F04F02F06F10","IS140159260076545510730339")),m(new v("IT",27,"U01F05F05A12","IT60X0542811101000000123456")),m(new v("IQ",23,"U04F03A12","IQ98NBIQ850123456789012")),m(new v("JO",30,"A04F22","JO15AAAA1234567890123456789012")),m(new v("KW",30,"U04A22","KW81CBKU0000000000001234560101")),m(new v("KZ",20,"F03A13","KZ86125KZT5004100100")),m(new v("LB",28,"F04A20","LB62099900000001001901229114")),m(new v("LC",32,"U04F24","LC07HEMM000100010012001200013015")),m(new v("LI",21,"F05A12","LI21088100002324013AA")),m(new v("LT",20,"F05F11","LT121000011101001000")),m(new v("LU",20,"F03A13","LU280019400644750000")),m(new v("LV",21,"U04A13","LV80BANK0000435195001")),m(new v("MC",27,"F05F05A11F02","MC5811222000010123456789030")),m(new v("MD",24,"U02A18","MD24AG000225100013104168")),m(new v("ME",22,"F03F13F02","ME25505000012345678951")),m(new v("MK",19,"F03A10F02","MK07250120000058984")),m(new v("MR",27,"F05F05F11F02","MR1300020001010000123456753")),m(new v("MT",31,"U04F05A18","MT84MALT011000012345MTLCAST001S")),m(new v("MU",30,"U04F02F02F12F03U03","MU17BOMM0101101030300200000MUR")),m(new v("NL",18,"U04F10","NL91ABNA0417164300")),m(new v("NO",15,"F04F06F01","NO9386011117947")),m(new v("PK",24,"U04A16","PK36SCBL0000001123456702")),m(new v("PL",28,"F08F16","PL61109010140000071219812874")),m(new v("PS",29,"U04A21","PS92PALS000000000400123456702")),m(new v("PT",25,"F04F04F11F02","PT50000201231234567890154")),m(new v("QA",29,"U04A21","QA30AAAA123456789012345678901")),m(new v("RO",24,"U04A16","RO49AAAA1B31007593840000")),m(new v("RS",22,"F03F13F02","RS35260005601001611379")),m(new v("SA",24,"F02A18","SA0380000000608010167519")),m(new v("SC",31,"U04F04F16U03","SC18SSCB11010000000000001497USD")),m(new v("SE",24,"F03F16F01","SE4550000000058398257466")),m(new v("SI",19,"F05F08F02","SI56263300012039086")),m(new v("SK",24,"F04F06F10","SK3112000000198742637541")),m(new v("SM",27,"U01F05F05A12","SM86U0322509800000000270100")),m(new v("ST",25,"F08F11F02","ST68000100010051845310112")),m(new v("SV",28,"U04F20","SV62CENR00000000000000700025")),m(new v("TL",23,"F03F14F02","TL380080012345678910157")),m(new v("TN",24,"F02F03F13F02","TN5910006035183598478831")),m(new v("TR",26,"F05F01A16","TR330006100519786457841326")),m(new v("UA",29,"F25","UA511234567890123456789012345")),m(new v("VA",22,"F18","VA59001123000012345678")),m(new v("VG",24,"U04F16","VG96VPVG0000012345678901")),m(new v("XK",20,"F04F10F02","XK051212012345678906")),m(new v("AO",25,"F21","AO69123456789012345678901")),m(new v("BF",27,"F23","BF2312345678901234567890123")),m(new v("BI",16,"F12","BI41123456789012")),m(new v("BJ",28,"F24","BJ39123456789012345678901234")),m(new v("CI",28,"U02F22","CI70CI1234567890123456789012")),m(new v("CM",27,"F23","CM9012345678901234567890123")),m(new v("CV",25,"F21","CV30123456789012345678901")),m(new v("DZ",24,"F20","DZ8612345678901234567890")),m(new v("IR",26,"F22","IR861234568790123456789012")),m(new v("MG",27,"F23","MG1812345678901234567890123")),m(new v("ML",28,"U01F23","ML15A12345678901234567890123")),m(new v("MZ",25,"F21","MZ25123456789012345678901")),m(new v("SN",28,"U01F23","SN52A12345678901234567890123")),m(new v("GF",27,"F05F05A11F02","GF121234512345123456789AB13")),m(new v("GP",27,"F05F05A11F02","GP791234512345123456789AB13")),m(new v("MQ",27,"F05F05A11F02","MQ221234512345123456789AB13")),m(new v("RE",27,"F05F05A11F02","RE131234512345123456789AB13")),m(new v("PF",27,"F05F05A11F02","PF281234512345123456789AB13")),m(new v("TF",27,"F05F05A11F02","TF891234512345123456789AB13")),m(new v("YT",27,"F05F05A11F02","YT021234512345123456789AB13")),m(new v("NC",27,"F05F05A11F02","NC551234512345123456789AB13")),m(new v("BL",27,"F05F05A11F02","BL391234512345123456789AB13")),m(new v("MF",27,"F05F05A11F02","MF551234512345123456789AB13")),m(new v("PM",27,"F05F05A11F02","PM071234512345123456789AB13")),m(new v("WF",27,"F05F05A11F02","WF621234512345123456789AB13"));var y=/[^a-zA-Z0-9]/g,A=/(.{4})(?!$)/g;function x(w){return typeof w=="string"||w instanceof String}l.isValid=function(w){if(!x(w))return!1;w=h(w);var F=b[w.slice(0,2)];return!!F&&F.isValid(w)},l.toBBAN=function(w,F){typeof F>"u"&&(F=" "),w=h(w);var k=b[w.slice(0,2)];if(!k)throw new Error("No country with code "+w.slice(0,2));return k.toBBAN(w,F)},l.fromBBAN=function(w,F){var k=b[w];if(!k)throw new Error("No country with code "+w);return k.fromBBAN(h(F))},l.isValidBBAN=function(w,F){if(!x(F))return!1;var k=b[w];return k&&k.isValidBBAN(h(F))},l.printFormat=function(w,F){return typeof F>"u"&&(F=" "),h(w).replace(A,"$1"+F)},l.electronicFormat=h,l.countries=b})})(wu),function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.VALIDATORS=t.PropValidatorKeys=t.GamaPropValidatorsMap=void 0;const l=zd,i=wu;t.GamaPropValidatorsMap={required:{fn:()=>a=>a.value!==null&&a.value!==void 0&&a.value!=="",message:"Este campo es requerido",label:"Requerido"},min:{fn:a=>c=>{if(typeof c.value=="number")return(c.value||0)>=a;if(typeof c.value=="string"){const d=c.value||"";return c.multiple?d.split(",").length>=a:d.length>=a}return!1},message:"El valor es menor al mínimo permitido",label:"Mínimo"},max:{fn:a=>c=>{if(typeof c.value=="number")return(c.value||0)<=a;if(typeof c.value=="string"){const d=c.value||"";return c.multiple?d.split(",").length<=a:(d||"").length<=a}return!1},message:"El valor es mayor al máximo permitido",label:"Máximo"},onlyNumbers:{fn:()=>a=>/^[0-9]*$/.test(String(a.value)||""),message:"Este campo solo acepta números",label:"Solo números"},email:{fn:()=>a=>a.value?/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(String(a.value)||""):!0,message:"El correo electrónico no es válido",label:"Correo electrónico"},url:{fn:()=>a=>a.value?/^(ftp|http|https):\/\/[^ "]+$/.test(String(a.value)||"")||/^www\.[^ "]+$/.test(String(a.value)||""):!0,message:"La URL no es válida",label:"URL"},dni:{fn:()=>a=>a.value?(0,l.isValid)(String(a.value)||""):!0,message:"El dni no es válido",label:"Identificación (DNI, NIF, NIE)"},iban:{fn:()=>a=>a.value?i.isValid(String(a.value)||""):!0,message:"El IBAN no es válido",label:"Cuenta Bancaria (IBAN)"}};var s;(function(a){a.REQUERIDO="required",a.MINIMO="min",a.MAXIMO="max",a.SOLO_NUMEROS="onlyNumbers",a.EMAIL="email",a.URL="url",a.DNI="dni",a.IBAN="iban"})(s||(t.PropValidatorKeys=s={})),t.VALIDATORS=Object.entries(t.GamaPropValidatorsMap).map(([a,c])=>({value:a,...c}))}(bu);var Su={};Object.defineProperty(Su,"__esModule",{value:!0}),function(t){var l=ce&&ce.__createBinding||(Object.create?function(s,a,c,d){d===void 0&&(d=c);var h=Object.getOwnPropertyDescriptor(a,c);(!h||("get"in h?!a.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return a[c]}}),Object.defineProperty(s,d,h)}:function(s,a,c,d){d===void 0&&(d=c),s[d]=a[c]}),i=ce&&ce.__exportStar||function(s,a){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(a,c)&&l(a,s,c)};Object.defineProperty(t,"__esModule",{value:!0}),i(wo,t),i(ur,t),i(_u,t),i(yu,t),i(bu,t),i(Su,t)}(pu);var Cu={},xu={};Object.defineProperty(xu,"__esModule",{value:!0});var Au={};Object.defineProperty(Au,"__esModule",{value:!0});var Eu={};Object.defineProperty(Eu,"__esModule",{value:!0});var ku={};Object.defineProperty(ku,"__esModule",{value:!0});var Bu={};Object.defineProperty(Bu,"__esModule",{value:!0});var Ou={};Object.defineProperty(Ou,"__esModule",{value:!0});var Tu={};Object.defineProperty(Tu,"__esModule",{value:!0});var Ru={};Object.defineProperty(Ru,"__esModule",{value:!0});var Iu={};Object.defineProperty(Iu,"__esModule",{value:!0});var Fu={};Object.defineProperty(Fu,"__esModule",{value:!0});var Mu={};Object.defineProperty(Mu,"__esModule",{value:!0});var Lu={};Object.defineProperty(Lu,"__esModule",{value:!0});var Pu={};Object.defineProperty(Pu,"__esModule",{value:!0}),function(t){var l=ce&&ce.__createBinding||(Object.create?function(s,a,c,d){d===void 0&&(d=c);var h=Object.getOwnPropertyDescriptor(a,c);(!h||("get"in h?!a.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return a[c]}}),Object.defineProperty(s,d,h)}:function(s,a,c,d){d===void 0&&(d=c),s[d]=a[c]}),i=ce&&ce.__exportStar||function(s,a){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(a,c)&&l(a,s,c)};Object.defineProperty(t,"__esModule",{value:!0}),i(xu,t),i(Au,t),i(Eu,t),i(ku,t),i(Bu,t),i(Ou,t),i(Tu,t),i(Ru,t),i(Iu,t),i(Fu,t),i(Mu,t),i(Lu,t),i(Pu,t)}(Cu);var Vu={},Nu={};Object.defineProperty(Nu,"__esModule",{value:!0});var So={};Object.defineProperty(So,"__esModule",{value:!0}),So.TimestampsAction=void 0;var qu;(function(t){t.CHECKIN="checkin",t.CHECKOUT="checkout"})(qu||(So.TimestampsAction=qu={})),function(t){var l=ce&&ce.__createBinding||(Object.create?function(s,a,c,d){d===void 0&&(d=c);var h=Object.getOwnPropertyDescriptor(a,c);(!h||("get"in h?!a.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return a[c]}}),Object.defineProperty(s,d,h)}:function(s,a,c,d){d===void 0&&(d=c),s[d]=a[c]}),i=ce&&ce.__exportStar||function(s,a){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(a,c)&&l(a,s,c)};Object.defineProperty(t,"__esModule",{value:!0}),i(Nu,t),i(So,t)}(Vu),function(t){var l=ce&&ce.__createBinding||(Object.create?function(s,a,c,d){d===void 0&&(d=c);var h=Object.getOwnPropertyDescriptor(a,c);(!h||("get"in h?!a.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return a[c]}}),Object.defineProperty(s,d,h)}:function(s,a,c,d){d===void 0&&(d=c),s[d]=a[c]}),i=ce&&ce.__exportStar||function(s,a){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(a,c)&&l(a,s,c)};Object.defineProperty(t,"__esModule",{value:!0}),i(ru,t),i(iu,t),i(su,t),i(cu,t),i(du,t),i(pu,t),i(Cu,t),i(Vu,t)}(nu),function(t){var l=ce&&ce.__createBinding||(Object.create?function(s,a,c,d){d===void 0&&(d=c);var h=Object.getOwnPropertyDescriptor(a,c);(!h||("get"in h?!a.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return a[c]}}),Object.defineProperty(s,d,h)}:function(s,a,c,d){d===void 0&&(d=c),s[d]=a[c]}),i=ce&&ce.__exportStar||function(s,a){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(a,c)&&l(a,s,c)};Object.defineProperty(t,"__esModule",{value:!0}),i(za,t),i(nu,t)}(lt);const zi=[lt.ControlType.DYNAMIC_ARRAY,lt.ControlType.OBJECT],Hd={maxControlsPerGroup:1,notifyValidations:!0},$u={required:{fn:()=>t=>{var l;if(t.controlType===lt.ControlType.LOCATION){const{value:i}=t.value;return Pe.values(Pe.omit(i,"catastro")).every(s=>!Pe.isNil(s)&&s!=="")&&(i!=null&&i.catastro?Wd(i==null?void 0:i.catastro):!0)}return t.controlType===lt.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=>Du(l,">=",t),message:"El valor es menor al mínimo permitido"},max:{fn:t=>l=>Du(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 Du(t,l,i){const s={">":(a,c)=>a>c,"<":(a,c)=>a<c,">=":(a,c)=>a>=c,"<=":(a,c)=>a<=c}[l];if(t.controlType===lt.ControlType.NUMBER){const a=Number(t.value);return s(a,i)}if(t.controlType===lt.ControlType.TEXT){const a=(t.value||"").length;return s(a,i)}if([lt.ControlType.CARDS_SELECT,lt.ControlType.SELECT].includes(t.controlType)&&t.multiple){const a=(t.value||[]).length;return s(a,i)}return!1}function Wd(t){return/^[A-Za-z0-9]{20}$/.test(t)}function Gd(t){const l=[];t.controls.forEach((s,a)=>{const c=jd(s);l.push(...c);const d=!c.length;t.controls[a].valid=d});const i=!l.length;return t.valid=i,l}function jd(t){const l=[];return t.validators&&t.validators.forEach(i=>{const{validator:s,param:a}=i,c=$u[s]||null;c&&(c.fn(Number(a))(t)||l.push(c.message))}),l}function Kd(t,l,i){return l.controlType==="dynamic_array"?Qd(t,l,i):l.controlType==="object"?Uu(t,l,i):[]}function Qd(t,l,i){var c,d;const s=[],a=((c=l.itemsLength)==null?void 0:c.value)||0;for(let h=0;h<a;h++){const v=Uu({...t,title:`${t.title} ${h+1}`},{...l,value:(d=l.value)==null?void 0:d[h]},i);v.forEach(b=>{b.controls.forEach(m=>{m.code=`${h}.${m.code}`})}),s.push(...v)}return s}function Uu(t,l,i){const s=l.structure;return Pe.chunk(s,i).map(c=>({...t,controls:zu(c).map(d=>{var h;return{...d,id:l.id,value:((h=l.value)==null?void 0:h[d.code])||d.value}})}))}function Zd(t){return Pe.chain(t).groupBy("group").toPairs().orderBy(([i,s])=>i).map(([i,s])=>{var d;const a=((d=s.find(h=>{var v;return!!((v=h.title)!=null&&v.trim())}))==null?void 0:d.title)||"",c=s[0].group;return{title:a,controls:s,order:c,visible:!0,valid:s.every(h=>h.valid),id:""}}).value()}function Yd(t){return t.map(l=>({...l,valid:!1,controls:zu(l.controls)}))}function zu(t){return t.map(l=>{var i,s,a;return{...l,valid:!((i=l.validators)!=null&&i.length),visible:!((s=l.conditions)!=null&&s.length),value:Xd(l),itemsLength:l.controlType==="dynamic_array"?{...l.itemsLength,value:((a=l.itemsLength)==null?void 0:a.default)||1}:null}})}function Xd(t){if(!Pe.isNil(t.defaultValue))return t.defaultValue;switch(t.controlType){case"input_text":return"";case"input_number":return null;case"select":return t.multiple?[]:"";case"cards_select":return t.multiple?[]:"";case"checkbox":return null;case"switch":return null;case"location":return{};case"dynamic_array":return[];case"object":return{};default:return""}}const sr=Ud.defineStore("form",{state:()=>({formSteps:[],currentStep:1,onLastSubstep:!1,collections:{}}),actions:{setFormSteps(t){this.formSteps=Yd(t)},nextStep(){this.currentStep!==this.formSteps.length&&this.currentStep++},previousStep(){this.currentStep!==1&&this.currentStep--},setControlValue(t,l){const{id:i,value:s,code:a}=l,c=this.formSteps[t].controls.find(d=>d.id===i);c&&(zi.includes(c.controlType)?Pe.set(c.value,a,s):c.value=s)},setControlVisibility(t,l,i){const s=this.formSteps[t].controls.find(a=>a.id===l);s&&(s.visible=i)},setControlItemsLength(t,l,i){const s=this.formSteps[t].controls.find(a=>a.id===l);!s||s.controlType!=="dynamic_array"||(s.itemsLength.value=i)},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 Hu{toRaw(l){return l.flatMap(a=>a.controls).filter(a=>a.visible).map(a=>({ID_CUESTIONARIO_PREGUNTA:a.id,RESPUESTA:this.formatValue(a)}))}fromRaw(l){return Pe.orderBy(l,"ORDEN").filter(s=>s.PREGUNTAS.length&&s.ESTADO===1).map(s=>{const a=s.NOMBRE,c=s.ORDEN,d=s.DESCRIPCION,h=s.CLAVE,v=s.ID_CUESTIONARIO,b=s.PREGUNTAS.filter(m=>m.ESTADO===1).map(m=>this.parseControl(m));return{title:a,order:c,text:d,controls:b,name:h,id:v}})}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:i,value:s,structure:a}=l,c=(d,h)=>h.controlType==="input_number"&&d!==null&&d!==void 0&&d!==""&&typeof d=="string";return c(s,l)?parseFloat(s.replaceAll(".","")):(i==="object"&&a.forEach(d=>{const h=s[d.code];c(h,d)&&(s[d.code]=parseFloat(h==null?void 0:h.replaceAll(".","")))}),s)}}function Co(t,l,i,s){return Object.defineProperty(t,l,{get:i,set:s,enumerable:!0}),t}const _n=r.ref(!1);let Hi;function Jd(t,l){const i=/(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:i[5]||i[3]||i[1]||"",version:i[4]||i[2]||"0",platform:l[0]||""}}function eh(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 Wu="ontouchstart"in window||window.navigator.maxTouchPoints>0;function th(t){const l=t.toLowerCase(),i=eh(l),s=Jd(l,i),a={};s.browser&&(a[s.browser]=!0,a.version=s.version,a.versionNumber=parseInt(s.version,10)),s.platform&&(a[s.platform]=!0);const c=a.android||a.ios||a.bb||a.blackberry||a.ipad||a.iphone||a.ipod||a.kindle||a.playbook||a.silk||a["windows phone"];if(c===!0||l.indexOf("mobile")!==-1?a.mobile=!0:a.desktop=!0,a["windows phone"]&&(a.winphone=!0,delete a["windows phone"]),a.edga||a.edgios||a.edg?(a.edge=!0,s.browser="edge"):a.crios?(a.chrome=!0,s.browser="chrome"):a.fxios&&(a.firefox=!0,s.browser="firefox"),(a.ipod||a.ipad||a.iphone)&&(a.ios=!0),a.vivaldi&&(s.browser="vivaldi",a.vivaldi=!0),(a.chrome||a.opr||a.safari||a.vivaldi||a.mobile===!0&&a.ios!==!0&&c!==!0)&&(a.webkit=!0),a.opr&&(s.browser="opera",a.opera=!0),a.safari&&(a.blackberry||a.bb?(s.browser="blackberry",a.blackberry=!0):a.playbook?(s.browser="playbook",a.playbook=!0):a.android?(s.browser="android",a.android=!0):a.kindle?(s.browser="kindle",a.kindle=!0):a.silk&&(s.browser="silk",a.silk=!0)),a.name=s.browser,a.platform=s.platform,l.indexOf("electron")!==-1)a.electron=!0;else if(document.location.href.indexOf("-extension://")!==-1)a.bex=!0;else{if(window.Capacitor!==void 0?(a.capacitor=!0,a.nativeMobile=!0,a.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(a.cordova=!0,a.nativeMobile=!0,a.nativeMobileWrapper="cordova"),_n.value===!0&&(Hi={is:{...a}}),Wu===!0&&a.mac===!0&&(a.desktop===!0&&a.safari===!0||a.nativeMobile===!0&&a.android!==!0&&a.ios!==!0&&a.ipad!==!0)){delete a.mac,delete a.desktop;const d=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(a,{mobile:!0,ios:!0,platform:d,[d]:!0})}a.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete a.desktop,a.mobile=!0)}return a}const Gu=navigator.userAgent||navigator.vendor||window.opera,nh={has:{touch:!1,webStorage:!1},within:{iframe:!1}},_t={userAgent:Gu,is:th(Gu),has:{touch:Wu},within:{iframe:window.self!==window.top}},Wi={install(t){const{$q:l}=t;_n.value===!0?(t.onSSRHydrated.push(()=>{Object.assign(l.platform,_t),_n.value=!1}),l.platform=r.reactive(this)):l.platform=this}};{let t;Co(_t.has,"webStorage",()=>{if(t!==void 0)return t;try{if(window.localStorage)return t=!0,!0}catch{}return t=!1,!1}),Object.assign(Wi,_t),_n.value===!0&&(Object.assign(Wi,Hi,nh),Hi=null)}function We(t){return r.markRaw(r.defineComponent(t))}function ju(t){return r.markRaw(t)}function tn(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 i,s;if(t.constructor===Array){if(i=t.length,i!==l.length)return!1;for(s=i;s--!==0;)if(tn(t[s],l[s])!==!0)return!1;return!0}if(t.constructor===Map){if(t.size!==l.size)return!1;let c=t.entries();for(s=c.next();s.done!==!0;){if(l.has(s.value[0])!==!0)return!1;s=c.next()}for(c=t.entries(),s=c.next();s.done!==!0;){if(tn(s.value[1],l.get(s.value[0]))!==!0)return!1;s=c.next()}return!0}if(t.constructor===Set){if(t.size!==l.size)return!1;const c=t.entries();for(s=c.next();s.done!==!0;){if(l.has(s.value[0])!==!0)return!1;s=c.next()}return!0}if(t.buffer!=null&&t.buffer.constructor===ArrayBuffer){if(i=t.length,i!==l.length)return!1;for(s=i;s--!==0;)if(t[s]!==l[s])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 a=Object.keys(t).filter(c=>t[c]!==void 0);if(i=a.length,i!==Object.keys(l).filter(c=>l[c]!==void 0).length)return!1;for(s=i;s--!==0;){const c=a[s];if(tn(t[c],l[c])!==!0)return!1}return!0}return t!==t&&l!==l}const Ku={threshold:0,root:null,rootMargin:"0px"};function Qu(t,l,i){let s,a,c;typeof i=="function"?(s=i,a=Ku,c=l.cfg===void 0):(s=i.handler,a=Object.assign({},Ku,i.cfg),c=l.cfg===void 0||tn(l.cfg,a)===!1),l.handler!==s&&(l.handler=s),c===!0&&(l.cfg=a,l.observer!==void 0&&l.observer.unobserve(t),l.observer=new IntersectionObserver(([d])=>{if(typeof l.handler=="function"){if(d.rootBounds===null&&document.body.contains(t)===!0){l.observer.unobserve(t),l.observer.observe(t);return}(l.handler(d,l.observer)===!1||l.once===!0&&d.isIntersecting===!0)&&Zu(t)}},a),l.observer.observe(t))}function Zu(t){const l=t.__qvisible;l!==void 0&&(l.observer!==void 0&&l.observer.unobserve(t),delete t.__qvisible)}const rh=ju({name:"intersection",mounted(t,{modifiers:l,value:i}){const s={once:l.once===!0};Qu(t,s,i),t.__qvisible=s},updated(t,l){const i=t.__qvisible;i!==void 0&&Qu(t,i,l.value)},beforeUnmount:Zu});function at(t,l){return t!==void 0&&t()||l}function oh(t,l){if(t!==void 0){const i=t();if(i!=null)return i.slice()}return l}function Ln(t,l){return t!==void 0?l.concat(t()):l}function ih(t,l){return t===void 0?l:l!==void 0?l.concat(t()):t()}function Yu(t,l,i,s,a,c){l.key=s+a;const d=r.h(t,l,i);return a===!0?r.withDirectives(d,c()):d}const lh=We({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:i}){const s=r.ref(_n.value===!0?t.ssrPrerender:!1),a=r.computed(()=>t.root!==void 0||t.margin!==void 0||t.threshold!==void 0?{handler:v,cfg:{root:t.root,rootMargin:t.margin,threshold:t.threshold}}:v),c=r.computed(()=>t.disable!==!0&&(_n.value!==!0||t.once!==!0||t.ssrPrerender!==!0)),d=r.computed(()=>[[rh,a.value,void 0,{once:t.once}]]),h=r.computed(()=>`--q-transition-duration: ${t.transitionDuration}ms`);function v(m){s.value!==m.isIntersecting&&(s.value=m.isIntersecting,t.onVisibility!==void 0&&i("visibility",s.value))}function b(){if(s.value===!0)return[r.h("div",{key:"content",style:h.value},at(l.default))];if(l.hidden!==void 0)return[r.h("div",{key:"hidden",style:h.value},l.hidden())]}return()=>{const m=t.transition?[r.h(r.Transition,{name:"q-transition--"+t.transition},b)]:b();return Yu(t.tag,{class:"q-intersection"},m,"main",c.value,()=>d.value)}}}),Gi={xs:18,sm:24,md:32,lg:38,xl:46},xo={size:String};function Ao(t,l=Gi){return r.computed(()=>t.size!==void 0?{fontSize:t.size in l?`${l[t.size]}px`:t.size}:null)}const ah={size:{type:[String,Number],default:"1em"},color:String};function uh(t){return{cSize:r.computed(()=>t.size in Gi?`${Gi[t.size]}px`:t.size),classes:r.computed(()=>"q-spinner"+(t.color?` text-${t.color}`:""))}}const ji=We({name:"QSpinner",props:{...ah,thickness:{type:Number,default:5}},setup(t){const{cSize:l,classes:i}=uh(t);return()=>r.h("svg",{class:i.value+" q-spinner-mat",width:l.value,height:l.value,viewBox:"25 25 50 50"},[r.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":t.thickness,"stroke-miterlimit":"10"})])}}),sh={ratio:[String,Number]};function ch(t,l){return r.computed(()=>{const i=Number(t.ratio||(l!==void 0?l.value:void 0));return isNaN(i)!==!0&&i>0?{paddingBottom:`${100/i}%`}:null})}function Ki(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 Xu(t){return t.appContext.config.globalProperties.$router!==void 0}function Mr(t){return t.isUnmounted===!0||t.isDeactivated===!0}function Lr(){let t=null;const l=r.getCurrentInstance();function i(){t!==null&&(clearTimeout(t),t=null)}return r.onDeactivated(i),r.onBeforeUnmount(i),{removeTimeout:i,registerTimeout(s,a){i(),Mr(l)===!1&&(t=setTimeout(()=>{t=null,s()},a))}}}const fh=We({name:"QImg",props:{...sh,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:i}){const s=r.ref(t.initialRatio),a=ch(t,s),c=r.getCurrentInstance(),{registerTimeout:d,removeTimeout:h}=Lr(),{registerTimeout:v,removeTimeout:b}=Lr(),m=r.computed(()=>t.placeholderSrc!==void 0?{src:t.placeholderSrc}:null),y=r.computed(()=>t.errorSrc!==void 0?{src:t.errorSrc,__qerror:!0}:null),A=[r.ref(null),r.ref(m.value)],x=r.ref(0),w=r.ref(!1),F=r.ref(!1),k=r.computed(()=>`q-img q-img--${t.noNativeMenu===!0?"no-":""}menu`),q=r.computed(()=>({width:t.width,height:t.height})),D=r.computed(()=>`q-img__image ${t.imgClass!==void 0?t.imgClass+" ":""}q-img__image--with${t.noTransition===!0?"out":""}-transition q-img__image--`),L=r.computed(()=>({...t.imgStyle,objectFit:t.fit,objectPosition:t.position}));function K(){if(b(),t.loadingShowDelay===0){w.value=!0;return}v(()=>{w.value=!0},t.loadingShowDelay)}function W(){b(),w.value=!1}function Q({target:O}){Mr(c)===!1&&(h(),s.value=O.naturalHeight===0?.5:O.naturalWidth/O.naturalHeight,j(O,1))}function j(O,te){te===1e3||Mr(c)===!0||(O.complete===!0?ie(O):d(()=>{j(O,te+1)},50))}function ie(O){Mr(c)!==!0&&(x.value=x.value^1,A[x.value].value=null,W(),O.getAttribute("__qerror")!=="true"&&(F.value=!1),i("load",O.currentSrc||O.src))}function N(O){h(),W(),F.value=!0,A[x.value].value=y.value,A[x.value^1].value=m.value,i("error",O)}function U(O){const te=A[O].value,$={key:"img_"+O,class:D.value,style:L.value,alt:t.alt,crossorigin:t.crossorigin,decoding:t.decoding,referrerpolicy:t.referrerpolicy,height:t.height,width:t.width,loading:t.loading,fetchpriority:t.fetchpriority,"aria-hidden":"true",draggable:t.draggable,...te};return x.value===O?Object.assign($,{class:$.class+"current",onLoad:Q,onError:N}):$.class+="loaded",r.h("div",{class:"q-img__container absolute-full",key:"img"+O},r.h("img",$))}function Z(){return w.value===!1?r.h("div",{key:"content",class:"q-img__content absolute-full q-anchor--skip"},at(l[F.value===!0?"error":"default"])):r.h("div",{key:"loading",class:"q-img__loading absolute-full flex flex-center"},l.loading!==void 0?l.loading():t.noSpinner===!0?void 0:[r.h(ji,{color:t.spinnerColor,size:t.spinnerSize})])}{let O=function(){r.watch(()=>t.src||t.srcset||t.sizes?{src:t.src,srcset:t.srcset,sizes:t.sizes}:null,te=>{h(),F.value=!1,te===null?(W(),A[x.value^1].value=m.value):K(),A[x.value].value=te},{immediate:!0})};_n.value===!0?r.onMounted(O):O()}return()=>{const O=[];return a.value!==null&&O.push(r.h("div",{key:"filler",style:a.value})),A[0].value!==null&&O.push(U(0)),A[1].value!==null&&O.push(U(1)),O.push(r.h(r.Transition,{name:"q-transition--fade"},Z)),r.h("div",{key:"main",class:k.value,style:q.value,role:"img","aria-label":t.alt},O)}}}),Ju="0 0 24 24",es=t=>t,Qi=t=>`ionicons ${t}`,ts={"mdi-":t=>`mdi ${t}`,"icon-":es,"bt-":t=>`bt ${t}`,"eva-":t=>`eva ${t}`,"ion-md":Qi,"ion-ios":Qi,"ion-logo":Qi,"iconfont ":es,"ti-":t=>`themify-icon ${t}`,"bi-":t=>`bootstrap-icons ${t}`},ns={o_:"-outlined",r_:"-round",s_:"-sharp"},rs={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},dh=new RegExp("^("+Object.keys(ts).join("|")+")"),hh=new RegExp("^("+Object.keys(ns).join("|")+")"),os=new RegExp("^("+Object.keys(rs).join("|")+")"),mh=/^[Mm]\s?[-+]?\.?\d/,gh=/^img:/,ph=/^svguse:/,vh=/^ion-/,_h=/^(fa-(sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,yt=We({name:"QIcon",props:{...xo,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(t,{slots:l}){const{proxy:{$q:i}}=r.getCurrentInstance(),s=Ao(t),a=r.computed(()=>"q-icon"+(t.left===!0?" on-left":"")+(t.right===!0?" on-right":"")+(t.color!==void 0?` text-${t.color}`:"")),c=r.computed(()=>{let d,h=t.name;if(h==="none"||!h)return{none:!0};if(i.iconMapFn!==null){const m=i.iconMapFn(h);if(m!==void 0)if(m.icon!==void 0){if(h=m.icon,h==="none"||!h)return{none:!0}}else return{cls:m.cls,content:m.content!==void 0?m.content:" "}}if(mh.test(h)===!0){const[m,y=Ju]=h.split("|");return{svg:!0,viewBox:y,nodes:m.split("&&").map(A=>{const[x,w,F]=A.split("@@");return r.h("path",{style:w,d:x,transform:F})})}}if(gh.test(h)===!0)return{img:!0,src:h.substring(4)};if(ph.test(h)===!0){const[m,y=Ju]=h.split("|");return{svguse:!0,src:m.substring(7),viewBox:y}}let v=" ";const b=h.match(dh);if(b!==null)d=ts[b[1]](h);else if(_h.test(h)===!0)d=h;else if(vh.test(h)===!0)d=`ionicons ion-${i.platform.is.ios===!0?"ios":"md"}${h.substring(3)}`;else if(os.test(h)===!0){d="notranslate material-symbols";const m=h.match(os);m!==null&&(h=h.substring(6),d+=rs[m[1]]),v=h}else{d="notranslate material-icons";const m=h.match(hh);m!==null&&(h=h.substring(2),d+=ns[m[1]]),v=h}return{cls:d,content:v}});return()=>{const d={class:a.value,style:s.value,"aria-hidden":"true",role:"presentation"};return c.value.none===!0?r.h(t.tag,d,at(l.default)):c.value.img===!0?r.h(t.tag,d,Ln(l.default,[r.h("img",{src:c.value.src})])):c.value.svg===!0?r.h(t.tag,d,Ln(l.default,[r.h("svg",{viewBox:c.value.viewBox||"0 0 24 24"},c.value.nodes)])):c.value.svguse===!0?r.h(t.tag,d,Ln(l.default,[r.h("svg",{viewBox:c.value.viewBox},[r.h("use",{"xlink:href":c.value.src})])])):(c.value.cls!==void 0&&(d.class+=" "+c.value.cls),r.h(t.tag,d,Ln(l.default,[c.value.content])))}}}),yh={class:"card-select-container"},bh=["onClick"],wh={class:"check"},Sh={class:"row justify-center items-center",style:{height:"100%"}},Ch=["onClick"],xh=r.defineComponent({__name:"CardsSelectControl",props:r.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=r.useModel(t,"modelValue"),i=t,{control:s}=r.toRefs(i);function a(h){if(s.value.multiple){let v=Pe.cloneDeep(l.value);h.exclusive?v=[h.value]:(v=v.filter(b=>{var m,y;return!((y=(m=s.value.options)==null?void 0:m.find(A=>A.value===b))!=null&&y.exclusive)}),v.includes(h.value)?v=v.filter(b=>b!==h.value):v.push(h.value)),l.value=v}else l.value=h.value}function c(h){return d(h)?"active":""}function d(h){let v;return s.value.multiple?v=(l.value||[]).includes(String(h.value)):v=l.value===h.value,v}return(h,v)=>{const b=r.resolveComponent("ControlLabel");return r.openBlock(),r.createElementBlock(r.Fragment,null,[r.unref(s).label?(r.openBlock(),r.createBlock(b,{key:0,label:r.unref(s).label},null,8,["label"])):r.createCommentVNode("",!0),r.createElementVNode("div",yh,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(s).options,(m,y)=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:y},[m.image?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(`image-card ${c(m)}`),onClick:()=>a(m)},[r.createVNode(fh,{src:m.image,height:"200px",width:"200px",fit:"fill",class:"image"},null,8,["src"]),r.createElementVNode("div",wh,[r.createElementVNode("div",Sh,[d(m)?(r.openBlock(),r.createBlock(yt,{key:0,name:"check",size:"25px"})):r.createCommentVNode("",!0)])])],10,bh)):(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass(`card-option ${c(m)}`),onClick:()=>a(m)},[r.createElementVNode("span",null,r.toDisplayString(m.label),1)],10,Ch))],64))),128))])],64)}}}),Xe=(t,l)=>{const i=t.__vccOpts||t;for(const[s,a]of l)i[s]=a;return i},Ah=Xe(xh,[["__scopeId","data-v-148468d6"]]),Pn={dark:{type:Boolean,default:null}};function Vn(t,l){return r.computed(()=>t.dark===null?l.dark.isActive:t.dark)}function Eh(t,l){const i=r.ref(null),s=r.computed(()=>t.disable===!0?null:r.h("span",{ref:i,class:"no-outline",tabindex:-1}));function a(c){const d=l.value;c!==void 0&&c.type.indexOf("key")===0?d!==null&&document.activeElement!==d&&d.contains(document.activeElement)===!0&&d.focus():i.value!==null&&(c===void 0||d!==null&&d.contains(c.target)===!0)&&i.value.focus()}return{refocusTargetEl:s,refocusTarget:a}}const Zi={name:String};function kh(t={}){return(l,i,s)=>{l[i](r.h("input",{class:"hidden"+(s||""),...t.value}))}}function is(t){return r.computed(()=>t.name||t.for)}const Bh={xs:30,sm:35,md:40,lg:50,xl:60},dt={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const t=Object.defineProperty({},"passive",{get(){Object.assign(dt,{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 Oh(){}function ls(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 Th(t){if(t.path)return t.path;if(t.composedPath)return t.composedPath();const l=[];let i=t.target;for(;i;){if(l.push(i),i.tagName==="HTML")return l.push(document),l.push(window),l;i=i.parentElement}}function Zt(t){t.stopPropagation()}function $t(t){t.cancelable!==!1&&t.preventDefault()}function Ge(t){t.cancelable!==!1&&t.preventDefault(),t.stopPropagation()}function Pr(t,l,i){const s=`__q_${l}_evt`;t[s]=t[s]!==void 0?t[s].concat(i):i,i.forEach(a=>{a[0].addEventListener(a[1],t[a[2]],dt[a[3]])})}function Eo(t,l){const i=`__q_${l}_evt`;t[i]!==void 0&&(t[i].forEach(s=>{s[0].removeEventListener(s[1],t[s[2]],dt[s[3]])}),t[i]=void 0)}const as={...Pn,...xo,...Zi,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]},us=["update:modelValue"];function ss(t,l){const{props:i,slots:s,emit:a,proxy:c}=r.getCurrentInstance(),{$q:d}=c,h=Vn(i,d),v=r.ref(null),{refocusTargetEl:b,refocusTarget:m}=Eh(i,v),y=Ao(i,Bh),A=r.computed(()=>i.val!==void 0&&Array.isArray(i.modelValue)),x=r.computed(()=>{const O=r.toRaw(i.val);return A.value===!0?i.modelValue.findIndex(te=>r.toRaw(te)===O):-1}),w=r.computed(()=>A.value===!0?x.value!==-1:r.toRaw(i.modelValue)===r.toRaw(i.trueValue)),F=r.computed(()=>A.value===!0?x.value===-1:r.toRaw(i.modelValue)===r.toRaw(i.falseValue)),k=r.computed(()=>w.value===!1&&F.value===!1),q=r.computed(()=>i.disable===!0?-1:i.tabindex||0),D=r.computed(()=>`q-${t} cursor-pointer no-outline row inline no-wrap items-center`+(i.disable===!0?" disabled":"")+(h.value===!0?` q-${t}--dark`:"")+(i.dense===!0?` q-${t}--dense`:"")+(i.leftLabel===!0?" reverse":"")),L=r.computed(()=>{const O=w.value===!0?"truthy":F.value===!0?"falsy":"indet",te=i.color!==void 0&&(i.keepColor===!0||(t==="toggle"?w.value===!0:F.value!==!0))?` text-${i.color}`:"";return`q-${t}__inner relative-position non-selectable q-${t}__inner--${O}${te}`}),K=r.computed(()=>{const O={type:"checkbox"};return i.name!==void 0&&Object.assign(O,{".checked":w.value,"^checked":w.value===!0?"checked":void 0,name:i.name,value:A.value===!0?i.val:i.trueValue}),O}),W=kh(K),Q=r.computed(()=>{const O={tabindex:q.value,role:t==="toggle"?"switch":"checkbox","aria-label":i.label,"aria-checked":k.value===!0?"mixed":w.value===!0?"true":"false"};return i.disable===!0&&(O["aria-disabled"]="true"),O});function j(O){O!==void 0&&(Ge(O),m(O)),i.disable!==!0&&a("update:modelValue",ie(),O)}function ie(){if(A.value===!0){if(w.value===!0){const O=i.modelValue.slice();return O.splice(x.value,1),O}return i.modelValue.concat([i.val])}if(w.value===!0){if(i.toggleOrder!=="ft"||i.toggleIndeterminate===!1)return i.falseValue}else if(F.value===!0){if(i.toggleOrder==="ft"||i.toggleIndeterminate===!1)return i.trueValue}else return i.toggleOrder!=="ft"?i.trueValue:i.falseValue;return i.indeterminateValue}function N(O){(O.keyCode===13||O.keyCode===32)&&Ge(O)}function U(O){(O.keyCode===13||O.keyCode===32)&&j(O)}const Z=l(w,k);return Object.assign(c,{toggle:j}),()=>{const O=Z();i.disable!==!0&&W(O,"unshift",` q-${t}__native absolute q-ma-none q-pa-none`);const te=[r.h("div",{class:L.value,style:y.value,"aria-hidden":"true"},O)];b.value!==null&&te.push(b.value);const $=i.label!==void 0?Ln(s.default,[i.label]):at(s.default);return $!==void 0&&te.push(r.h("div",{class:`q-${t}__label q-anchor--skip`},$)),r.h("div",{ref:v,class:D.value,...Q.value,onClick:j,onKeydown:N,onKeyup:U},te)}}const Rh=r.h("div",{key:"svg",class:"q-checkbox__bg absolute"},[r.h("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[r.h("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),r.h("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),cs=We({name:"QCheckbox",props:as,emits:us,setup(t){function l(i,s){const a=r.computed(()=>(i.value===!0?t.checkedIcon:s.value===!0?t.indeterminateIcon:t.uncheckedIcon)||null);return()=>a.value!==null?[r.h("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[r.h(yt,{class:"q-checkbox__icon",name:a.value})])]:[Rh]}return ss("checkbox",l)}}),fs=r.defineComponent({__name:"SimpleCheckbox",props:r.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=r.useModel(t,"modelValue");return(i,s)=>(r.openBlock(),r.createBlock(cs,{outlined:"",label:i.control.label,color:"green-10","model-value":!!l.value,"onUpdate:modelValue":s[0]||(s[0]=a=>l.value=!l.value),style:{height:"66.2px"}},null,8,["label","model-value"]))}}),Ih=We({name:"QToggle",props:{...as,icon:String,iconColor:String},emits:us,setup(t){function l(i,s){const a=r.computed(()=>(i.value===!0?t.checkedIcon:s.value===!0?t.indeterminateIcon:t.uncheckedIcon)||t.icon),c=r.computed(()=>i.value===!0?t.iconColor:null);return()=>[r.h("div",{class:"q-toggle__track"}),r.h("div",{class:"q-toggle__thumb absolute flex flex-center no-wrap"},a.value!==void 0?[r.h(yt,{name:a.value,color:c.value})]:void 0)]}return ss("toggle",l)}}),Fh=r.defineComponent({__name:"SimpleSwitch",props:r.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=r.useModel(t,"modelValue");return(i,s)=>(r.openBlock(),r.createBlock(Ih,{falseValue:0,trueValue:1,outlined:"",label:i.control.label,modelValue:l.value,"onUpdate:modelValue":s[0]||(s[0]=a=>l.value=a),leftLabel:"",color:"green-10",style:{height:"66.2px"}},null,8,["label","modelValue"]))}}),ko=We({name:"QCard",props:{...Pn,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(t,{slots:l}){const{proxy:{$q:i}}=r.getCurrentInstance(),s=Vn(t,i),a=r.computed(()=>"q-card"+(s.value===!0?" q-card--dark q-dark":"")+(t.bordered===!0?" q-card--bordered":"")+(t.square===!0?" q-card--square no-border-radius":"")+(t.flat===!0?" q-card--flat no-shadow":""));return()=>r.h(t.tag,{class:a.value},at(l.default))}});let Yi,Bo=0;const et=new Array(256);for(let t=0;t<256;t++)et[t]=(t+256).toString(16).substring(1);const Mh=(()=>{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 i=new Uint8Array(l);return t.getRandomValues(i),i}}return l=>{const i=[];for(let s=l;s>0;s--)i.push(Math.floor(Math.random()*256));return i}})(),ds=4096;function Xi(){(Yi===void 0||Bo+16>ds)&&(Bo=0,Yi=Mh(ds));const t=Array.prototype.slice.call(Yi,Bo,Bo+=16);return t[6]=t[6]&15|64,t[8]=t[8]&63|128,et[t[0]]+et[t[1]]+et[t[2]]+et[t[3]]+"-"+et[t[4]]+et[t[5]]+"-"+et[t[6]]+et[t[7]]+"-"+et[t[8]]+et[t[9]]+"-"+et[t[10]]+et[t[11]]+et[t[12]]+et[t[13]]+et[t[14]]+et[t[15]]}function Lh(t){return t??null}function hs(t,l){return t??(l===!0?`f_${Xi()}`:null)}function Ph({getValue:t,required:l=!0}={}){if(_n.value===!0){const i=t!==void 0?r.ref(Lh(t())):r.ref(null);return l===!0&&i.value===null&&r.onMounted(()=>{i.value=`f_${Xi()}`}),t!==void 0&&r.watch(t,s=>{i.value=hs(s,l)}),i}return t!==void 0?r.computed(()=>hs(t(),l)):r.ref(`f_${Xi()}`)}const ms=/^on[A-Z]/;function Vh(){const{attrs:t,vnode:l}=r.getCurrentInstance(),i={listeners:r.ref({}),attributes:r.ref({})};function s(){const a={},c={};for(const d in t)d!=="class"&&d!=="style"&&ms.test(d)===!1&&(a[d]=t[d]);for(const d in l.props)ms.test(d)===!0&&(c[d]=l.props[d]);i.attributes.value=a,i.listeners.value=c}return r.onBeforeUpdate(s),s(),i}const Nh="_q_",qh="_q_fo_";function $h({validate:t,resetValidation:l,requiresQForm:i}){const s=r.inject(qh,!1);if(s!==!1){const{props:a,proxy:c}=r.getCurrentInstance();Object.assign(c,{validate:t,resetValidation:l}),r.watch(()=>a.disable,d=>{d===!0?(typeof l=="function"&&l(),s.unbindComponent(c)):s.bindComponent(c)}),r.onMounted(()=>{a.disable!==!0&&s.bindComponent(c)}),r.onBeforeUnmount(()=>{a.disable!==!0&&s.unbindComponent(c)})}else i===!0&&console.error("Parent QForm not found on useFormChild()!")}const gs=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,ps=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,vs=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,Oo=/^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])\)$/,To=/^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)\)$/,Ji={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=>gs.test(t),hexaColor:t=>ps.test(t),hexOrHexaColor:t=>vs.test(t),rgbColor:t=>Oo.test(t),rgbaColor:t=>To.test(t),rgbOrRgbaColor:t=>Oo.test(t)||To.test(t),hexOrRgbColor:t=>gs.test(t)||Oo.test(t),hexaOrRgbaColor:t=>ps.test(t)||To.test(t),anyColor:t=>vs.test(t)||Oo.test(t)||To.test(t)};function _s(t,l=250,i){let s=null;function a(){const c=arguments,d=()=>{s=null,t.apply(this,c)};s!==null&&clearTimeout(s),s=setTimeout(d,l)}return a.cancel=()=>{s!==null&&clearTimeout(s)},a}const Dh=[!0,!1,"ondemand"],Uh={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:t=>Dh.includes(t)}};function zh(t,l){const{props:i,proxy:s}=r.getCurrentInstance(),a=r.ref(!1),c=r.ref(null),d=r.ref(!1);$h({validate:F,resetValidation:w});let h=0,v;const b=r.computed(()=>i.rules!==void 0&&i.rules!==null&&i.rules.length!==0),m=r.computed(()=>i.disable!==!0&&b.value===!0&&l.value===!1),y=r.computed(()=>i.error===!0||a.value===!0),A=r.computed(()=>typeof i.errorMessage=="string"&&i.errorMessage.length!==0?i.errorMessage:c.value);r.watch(()=>i.modelValue,()=>{d.value=!0,m.value===!0&&i.lazyRules===!1&&k()});function x(){i.lazyRules!=="ondemand"&&m.value===!0&&d.value===!0&&k()}r.watch(()=>i.reactiveRules,q=>{q===!0?v===void 0&&(v=r.watch(()=>i.rules,x,{immediate:!0,deep:!0})):v!==void 0&&(v(),v=void 0)},{immediate:!0}),r.watch(()=>i.lazyRules,x),r.watch(t,q=>{q===!0?d.value=!0:m.value===!0&&i.lazyRules!=="ondemand"&&k()});function w(){h++,l.value=!1,d.value=!1,a.value=!1,c.value=null,k.cancel()}function F(q=i.modelValue){if(i.disable===!0||b.value===!1)return!0;const D=++h,L=l.value!==!0?()=>{d.value=!0}:()=>{},K=(Q,j)=>{Q===!0&&L(),a.value=Q,c.value=j||null,l.value=!1},W=[];for(let Q=0;Q<i.rules.length;Q++){const j=i.rules[Q];let ie;if(typeof j=="function"?ie=j(q,Ji):typeof j=="string"&&Ji[j]!==void 0&&(ie=Ji[j](q)),ie===!1||typeof ie=="string")return K(!0,ie),!1;ie!==!0&&ie!==void 0&&W.push(ie)}return W.length===0?(K(!1),!0):(l.value=!0,Promise.all(W).then(Q=>{if(Q===void 0||Array.isArray(Q)===!1||Q.length===0)return D===h&&K(!1),!0;const j=Q.find(ie=>ie===!1||typeof ie=="string");return D===h&&K(j!==void 0,j),j===void 0},Q=>(D===h&&(console.error(Q),K(!0)),!1)))}const k=_s(F,0);return r.onBeforeUnmount(()=>{v!==void 0&&v(),k.cancel()}),Object.assign(s,{resetValidation:w,validate:F}),Co(s,"hasError",()=>y.value),{isDirtyModel:d,hasRules:b,hasError:y,errorMessage:A,validate:F,resetValidation:w}}let Nn=[],Vr=[];function ys(t){Vr=Vr.filter(l=>l!==t)}function Hh(t){ys(t),Vr.push(t)}function bs(t){ys(t),Vr.length===0&&Nn.length!==0&&(Nn[Nn.length-1](),Nn=[])}function Ro(t){Vr.length===0?t():Nn.push(t)}function Wh(t){Nn=Nn.filter(l=>l!==t)}function Nr(t){return t!=null&&(""+t).length!==0}const Io={...{...Pn,...Uh,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]},el=["update:modelValue","clear","focus","blur"];function tl({requiredForAttr:t=!0,tagProp:l}={}){const{props:i,proxy:s}=r.getCurrentInstance(),a=Vn(i,s.$q),c=Ph({required:t,getValue:()=>i.for});return{requiredForAttr:t,tag:l===!0?r.computed(()=>i.tag):{value:"label"},isDark:a,editable:r.computed(()=>i.disable!==!0&&i.readonly!==!0),innerLoading:r.ref(!1),focused:r.ref(!1),hasPopupOpen:!1,splitAttrs:Vh(),targetUid:c,rootRef:r.ref(null),targetRef:r.ref(null),controlRef:r.ref(null)}}function nl(t){const{props:l,emit:i,slots:s,attrs:a,proxy:c}=r.getCurrentInstance(),{$q:d}=c;let h=null;t.hasValue===void 0&&(t.hasValue=r.computed(()=>Nr(l.modelValue))),t.emitValue===void 0&&(t.emitValue=H=>{i("update:modelValue",H)}),t.controlEvents===void 0&&(t.controlEvents={onFocusin:N,onFocusout:U}),Object.assign(t,{clearValue:Z,onControlFocusin:N,onControlFocusout:U,focus:j}),t.computedCounter===void 0&&(t.computedCounter=r.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,se=l.maxlength!==void 0?l.maxlength:l.maxValues;return H+(se!==void 0?" / "+se:"")}}));const{isDirtyModel:v,hasRules:b,hasError:m,errorMessage:y,resetValidation:A}=zh(t.focused,t.innerLoading),x=t.floatingLabel!==void 0?r.computed(()=>l.stackLabel===!0||t.focused.value===!0||t.floatingLabel.value===!0):r.computed(()=>l.stackLabel===!0||t.focused.value===!0||t.hasValue.value===!0),w=r.computed(()=>l.bottomSlots===!0||l.hint!==void 0||b.value===!0||l.counter===!0||l.error!==null),F=r.computed(()=>l.filled===!0?"filled":l.outlined===!0?"outlined":l.borderless===!0?"borderless":l.standout?"standout":"standard"),k=r.computed(()=>`q-field row no-wrap items-start q-field--${F.value}`+(t.fieldClass!==void 0?` ${t.fieldClass.value}`:"")+(l.rounded===!0?" q-field--rounded":"")+(l.square===!0?" q-field--square":"")+(x.value===!0?" q-field--float":"")+(D.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":"")+(m.value===!0?" q-field--error":"")+(m.value===!0||t.focused.value===!0?" q-field--highlighted":"")+(l.hideBottomSpace!==!0&&w.value===!0?" q-field--with-bottom":"")+(l.disable===!0?" q-field--disabled":l.readonly===!0?" q-field--readonly":"")),q=r.computed(()=>"q-field__control relative-position row no-wrap"+(l.bgColor!==void 0?` bg-${l.bgColor}`:"")+(m.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}`:"")),D=r.computed(()=>l.labelSlot===!0||l.label!==void 0),L=r.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(l.labelColor!==void 0&&m.value!==!0?` text-${l.labelColor}`:"")),K=r.computed(()=>({id:t.targetUid.value,editable:t.editable.value,focused:t.focused.value,floatingLabel:x.value,modelValue:l.modelValue,emitValue:t.emitValue})),W=r.computed(()=>{const H={};return t.targetUid.value&&(H.for=t.targetUid.value),l.disable===!0&&(H["aria-disabled"]="true"),H});function Q(){const H=document.activeElement;let se=t.targetRef!==void 0&&t.targetRef.value;se&&(H===null||H.id!==t.targetUid.value)&&(se.hasAttribute("tabindex")===!0||(se=se.querySelector("[tabindex]")),se&&se!==H&&se.focus({preventScroll:!0}))}function j(){Ro(Q)}function ie(){Wh(Q);const H=document.activeElement;H!==null&&t.rootRef.value.contains(H)&&H.blur()}function N(H){h!==null&&(clearTimeout(h),h=null),t.editable.value===!0&&t.focused.value===!1&&(t.focused.value=!0,i("focus",H))}function U(H,se){h!==null&&clearTimeout(h),h=setTimeout(()=>{h=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,i("blur",H)),se!==void 0&&se())})}function Z(H){Ge(H),d.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),i("update:modelValue",null),i("clear",l.modelValue),r.nextTick(()=>{const se=v.value;A(),v.value=se})}function O(){const H=[];return s.prepend!==void 0&&H.push(r.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:$t},s.prepend())),H.push(r.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},te())),m.value===!0&&l.noErrorIcon===!1&&H.push(le("error",[r.h(yt,{name:d.iconSet.field.error,color:"negative"})])),l.loading===!0||t.innerLoading.value===!0?H.push(le("inner-loading-append",s.loading!==void 0?s.loading():[r.h(ji,{color:l.color})])):l.clearable===!0&&t.hasValue.value===!0&&t.editable.value===!0&&H.push(le("inner-clearable-append",[r.h(yt,{class:"q-field__focusable-action",tag:"button",name:l.clearIcon||d.iconSet.field.clear,tabindex:0,type:"button","aria-hidden":null,role:null,onClick:Z})])),s.append!==void 0&&H.push(r.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:$t},s.append())),t.getInnerAppend!==void 0&&H.push(le("inner-append",t.getInnerAppend())),t.getControlChild!==void 0&&H.push(t.getControlChild()),H}function te(){const H=[];return l.prefix!==void 0&&l.prefix!==null&&H.push(r.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()):s.rawControl!==void 0?H.push(s.rawControl()):s.control!==void 0&&H.push(r.h("div",{ref:t.targetRef,class:"q-field__native row",tabindex:-1,...t.splitAttrs.attributes.value,"data-autofocus":l.autofocus===!0||void 0},s.control(K.value))),D.value===!0&&H.push(r.h("div",{class:L.value},at(s.label,l.label))),l.suffix!==void 0&&l.suffix!==null&&H.push(r.h("div",{class:"q-field__suffix no-pointer-events row items-center"},l.suffix)),H.concat(at(s.default))}function $(){let H,se;m.value===!0?y.value!==null?(H=[r.h("div",{role:"alert"},y.value)],se=`q--slot-error-${y.value}`):(H=at(s.error),se="q--slot-error"):(l.hideHint!==!0||t.focused.value===!0)&&(l.hint!==void 0?(H=[r.h("div",l.hint)],se=`q--slot-hint-${l.hint}`):(H=at(s.hint),se="q--slot-hint"));const Be=l.counter===!0||s.counter!==void 0;if(l.hideBottomSpace===!0&&Be===!1&&H===void 0)return;const ge=r.h("div",{key:se,class:"q-field__messages col"},H);return r.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(l.hideBottomSpace!==!0?"animated":"stale"),onClick:$t},[l.hideBottomSpace===!0?ge:r.h(r.Transition,{name:"q-transition--field-message"},()=>ge),Be===!0?r.h("div",{class:"q-field__counter"},s.counter!==void 0?s.counter():t.computedCounter.value):null])}function le(H,se){return se===null?null:r.h("div",{key:H,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},se)}let ae=!1;return r.onDeactivated(()=>{ae=!0}),r.onActivated(()=>{ae===!0&&l.autofocus===!0&&c.focus()}),l.autofocus===!0&&r.onMounted(()=>{c.focus()}),r.onBeforeUnmount(()=>{h!==null&&clearTimeout(h)}),Object.assign(c,{focus:j,blur:ie}),function(){const se=t.getControl===void 0&&s.control===void 0?{...t.splitAttrs.attributes.value,"data-autofocus":l.autofocus===!0||void 0,...W.value}:W.value;return r.h(t.tag.value,{ref:t.rootRef,class:[k.value,a.class],style:a.style,...se},[s.before!==void 0?r.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:$t},s.before()):null,r.h("div",{class:"q-field__inner relative-position col self-stretch"},[r.h("div",{ref:t.controlRef,class:q.value,tabindex:-1,...t.controlEvents},O()),w.value===!0?$():null]),s.after!==void 0?r.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:$t},s.after()):null])}}function rl(t){return t!==Object(t)||t.isComposing===!0||t.qKeyEvent===!0}function qn(t,l){return rl(t)===!0?!1:[].concat(l).includes(t.keyCode)}const ws={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},Fo={"#":{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()}},Ss=Object.keys(Fo);Ss.forEach(t=>{Fo[t].regex=new RegExp(Fo[t].pattern)});const Gh=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+Ss.join("")+"])|(.)","g"),Cs=/[.*+?^${}()|[\]\\]/g,je="",jh={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function Kh(t,l,i,s){let a,c,d,h,v,b;const m=r.ref(null),y=r.ref(x());function A(){return t.autogrow===!0||["textarea","text","search","url","tel","password"].includes(t.type)}r.watch(()=>t.type+t.autogrow,F),r.watch(()=>t.mask,N=>{if(N!==void 0)k(y.value,!0);else{const U=j(y.value);F(),t.modelValue!==U&&l("update:modelValue",U)}}),r.watch(()=>t.fillMask+t.reverseFillMask,()=>{m.value===!0&&k(y.value,!0)}),r.watch(()=>t.unmaskedValue,()=>{m.value===!0&&k(y.value)});function x(){if(F(),m.value===!0){const N=W(j(t.modelValue));return t.fillMask!==!1?ie(N):N}return t.modelValue}function w(N){if(N<a.length)return a.slice(-N);let U="",Z=a;const O=Z.indexOf(je);if(O!==-1){for(let te=N-Z.length;te>0;te--)U+=je;Z=Z.slice(0,O)+U+Z.slice(O)}return Z}function F(){if(m.value=t.mask!==void 0&&t.mask.length!==0&&A(),m.value===!1){h=void 0,a="",c="";return}const N=ws[t.mask]===void 0?t.mask:ws[t.mask],U=typeof t.fillMask=="string"&&t.fillMask.length!==0?t.fillMask.slice(0,1):"_",Z=U.replace(Cs,"\\$&"),O=[],te=[],$=[];let le=t.reverseFillMask===!0,ae="",H="";N.replace(Gh,(R,T,Y,pe,fe)=>{if(pe!==void 0){const G=Fo[pe];$.push(G),H=G.negate,le===!0&&(te.push("(?:"+H+"+)?("+G.pattern+"+)?(?:"+H+"+)?("+G.pattern+"+)?"),le=!1),te.push("(?:"+H+"+)?("+G.pattern+")?")}else if(Y!==void 0)ae="\\"+(Y==="\\"?"":Y),$.push(Y),O.push("([^"+ae+"]+)?"+ae+"?");else{const G=T!==void 0?T:fe;ae=G==="\\"?"\\\\\\\\":G.replace(Cs,"\\\\$&"),$.push(G),O.push("([^"+ae+"]+)?"+ae+"?")}});const se=new RegExp("^"+O.join("")+"("+(ae===""?".":"[^"+ae+"]")+"+)?"+(ae===""?"":"["+ae+"]*")+"$"),Be=te.length-1,ge=te.map((R,T)=>T===0&&t.reverseFillMask===!0?new RegExp("^"+Z+"*"+R):T===Be?new RegExp("^"+R+"("+(H===""?".":H)+"+)?"+(t.reverseFillMask===!0?"$":Z+"*")):new RegExp("^"+R));d=$,h=R=>{const T=se.exec(t.reverseFillMask===!0?R:R.slice(0,$.length+1));T!==null&&(R=T.slice(1).join(""));const Y=[],pe=ge.length;for(let fe=0,G=R;fe<pe;fe++){const re=ge[fe].exec(G);if(re===null)break;G=G.slice(re.shift().length),Y.push(...re)}return Y.length!==0?Y.join(""):R},a=$.map(R=>typeof R=="string"?R:je).join(""),c=a.split(je).join(U)}function k(N,U,Z){const O=s.value,te=O.selectionEnd,$=O.value.length-te,le=j(N);U===!0&&F();const ae=W(le),H=t.fillMask!==!1?ie(ae):ae,se=y.value!==H;O.value!==H&&(O.value=H),se===!0&&(y.value=H),document.activeElement===O&&r.nextTick(()=>{if(H===c){const ge=t.reverseFillMask===!0?c.length:0;O.setSelectionRange(ge,ge,"forward");return}if(Z==="insertFromPaste"&&t.reverseFillMask!==!0){const ge=O.selectionEnd;let R=te-1;for(let T=v;T<=R&&T<ge;T++)a[T]!==je&&R++;D.right(O,R);return}if(["deleteContentBackward","deleteContentForward"].indexOf(Z)!==-1){const ge=t.reverseFillMask===!0?te===0?H.length>ae.length?1:0:Math.max(0,H.length-(H===c?0:Math.min(ae.length,$)+1))+1:te;O.setSelectionRange(ge,ge,"forward");return}if(t.reverseFillMask===!0)if(se===!0){const ge=Math.max(0,H.length-(H===c?0:Math.min(ae.length,$+1)));ge===1&&te===1?O.setSelectionRange(ge,ge,"forward"):D.rightReverse(O,ge)}else{const ge=H.length-$;O.setSelectionRange(ge,ge,"backward")}else if(se===!0){const ge=Math.max(0,a.indexOf(je),Math.min(ae.length,te)-1);D.right(O,ge)}else{const ge=te-1;D.right(O,ge)}});const Be=t.unmaskedValue===!0?j(H):H;String(t.modelValue)!==Be&&(t.modelValue!==null||Be!=="")&&i(Be,!0)}function q(N,U,Z){const O=W(j(N.value));U=Math.max(0,a.indexOf(je),Math.min(O.length,U)),v=U,N.setSelectionRange(U,Z,"forward")}const D={left(N,U){const Z=a.slice(U-1).indexOf(je)===-1;let O=Math.max(0,U-1);for(;O>=0;O--)if(a[O]===je){U=O,Z===!0&&U++;break}if(O<0&&a[U]!==void 0&&a[U]!==je)return D.right(N,0);U>=0&&N.setSelectionRange(U,U,"backward")},right(N,U){const Z=N.value.length;let O=Math.min(Z,U+1);for(;O<=Z;O++)if(a[O]===je){U=O;break}else a[O-1]===je&&(U=O);if(O>Z&&a[U-1]!==void 0&&a[U-1]!==je)return D.left(N,Z);N.setSelectionRange(U,U,"forward")},leftReverse(N,U){const Z=w(N.value.length);let O=Math.max(0,U-1);for(;O>=0;O--)if(Z[O-1]===je){U=O;break}else if(Z[O]===je&&(U=O,O===0))break;if(O<0&&Z[U]!==void 0&&Z[U]!==je)return D.rightReverse(N,0);U>=0&&N.setSelectionRange(U,U,"backward")},rightReverse(N,U){const Z=N.value.length,O=w(Z),te=O.slice(0,U+1).indexOf(je)===-1;let $=Math.min(Z,U+1);for(;$<=Z;$++)if(O[$-1]===je){U=$,U>0&&te===!0&&U--;break}if($>Z&&O[U-1]!==void 0&&O[U-1]!==je)return D.leftReverse(N,Z);N.setSelectionRange(U,U,"forward")}};function L(N){l("click",N),b=void 0}function K(N){if(l("keydown",N),rl(N)===!0||N.altKey===!0)return;const U=s.value,Z=U.selectionStart,O=U.selectionEnd;if(N.shiftKey||(b=void 0),N.keyCode===37||N.keyCode===39){N.shiftKey&&b===void 0&&(b=U.selectionDirection==="forward"?Z:O);const te=D[(N.keyCode===39?"right":"left")+(t.reverseFillMask===!0?"Reverse":"")];if(N.preventDefault(),te(U,b===Z?O:Z),N.shiftKey){const $=U.selectionStart;U.setSelectionRange(Math.min(b,$),Math.max(b,$),"forward")}}else N.keyCode===8&&t.reverseFillMask!==!0&&Z===O?(D.left(U,Z),U.setSelectionRange(U.selectionStart,O,"backward")):N.keyCode===46&&t.reverseFillMask===!0&&Z===O&&(D.rightReverse(U,O),U.setSelectionRange(Z,U.selectionEnd,"forward"))}function W(N){if(N==null||N==="")return"";if(t.reverseFillMask===!0)return Q(N);const U=d;let Z=0,O="";for(let te=0;te<U.length;te++){const $=N[Z],le=U[te];if(typeof le=="string")O+=le,$===le&&Z++;else if($!==void 0&&le.regex.test($))O+=le.transform!==void 0?le.transform($):$,Z++;else return O}return O}function Q(N){const U=d,Z=a.indexOf(je);let O=N.length-1,te="";for(let $=U.length-1;$>=0&&O!==-1;$--){const le=U[$];let ae=N[O];if(typeof le=="string")te=le+te,ae===le&&O--;else if(ae!==void 0&&le.regex.test(ae))do te=(le.transform!==void 0?le.transform(ae):ae)+te,O--,ae=N[O];while(Z===$&&ae!==void 0&&le.regex.test(ae));else return te}return te}function j(N){return typeof N!="string"||h===void 0?typeof N=="number"?h(""+N):N:h(N)}function ie(N){return c.length-N.length<=0?N:t.reverseFillMask===!0&&N.length!==0?c.slice(0,-N.length)+N:N+c.slice(N.length)}return{innerValue:y,hasMask:m,moveCursorForPaste:q,updateMaskValue:k,onMaskedKeydown:K,onMaskedClick:L}}function Qh(t,l){function i(){const s=t.modelValue;try{const a="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(s)===s&&("length"in s?Array.from(s):[s]).forEach(c=>{a.items.add(c)}),{files:a.files}}catch{return{files:void 0}}}return r.computed(()=>{if(t.type==="file")return i()})}const Zh=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,Yh=/[\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,Xh=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,Jh=/[a-z0-9_ -]$/i;function xs(t){return function(i){if(i.type==="compositionend"||i.type==="change"){if(i.target.qComposing!==!0)return;i.target.qComposing=!1,t(i)}else i.type==="compositionupdate"&&i.target.qComposing!==!0&&typeof i.data=="string"&&(_t.is.firefox===!0?Jh.test(i.data)===!1:Zh.test(i.data)===!0||Yh.test(i.data)===!0||Xh.test(i.data)===!0)===!0&&(i.target.qComposing=!0)}}const As=We({name:"QInput",inheritAttrs:!1,props:{...Io,...jh,...Zi,modelValue:[String,Number],shadowText:String,type:{type:String,default:"text"},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...el,"paste","change","keydown","click","animationend"],setup(t,{emit:l,attrs:i}){const{proxy:s}=r.getCurrentInstance(),{$q:a}=s,c={};let d=NaN,h,v,b=null,m;const y=r.ref(null),A=is(t),{innerValue:x,hasMask:w,moveCursorForPaste:F,updateMaskValue:k,onMaskedKeydown:q,onMaskedClick:D}=Kh(t,l,ae,y),L=Qh(t),K=r.computed(()=>Nr(x.value)),W=xs($),Q=tl(),j=r.computed(()=>t.type==="textarea"||t.autogrow===!0),ie=r.computed(()=>j.value===!0||["text","search","url","tel","password"].includes(t.type)),N=r.computed(()=>{const T={...Q.splitAttrs.listeners.value,onInput:$,onPaste:te,onChange:se,onBlur:Be,onFocus:Zt};return T.onCompositionstart=T.onCompositionupdate=T.onCompositionend=W,w.value===!0&&(T.onKeydown=q,T.onClick=D),t.autogrow===!0&&(T.onAnimationend=le),T}),U=r.computed(()=>{const T={tabindex:0,"data-autofocus":t.autofocus===!0||void 0,rows:t.type==="textarea"?6:void 0,"aria-label":t.label,name:A.value,...Q.splitAttrs.attributes.value,id:Q.targetUid.value,maxlength:t.maxlength,disabled:t.disable===!0,readonly:t.readonly===!0};return j.value===!1&&(T.type=t.type),t.autogrow===!0&&(T.rows=1),T});r.watch(()=>t.type,()=>{y.value&&(y.value.value=t.modelValue)}),r.watch(()=>t.modelValue,T=>{if(w.value===!0){if(v===!0&&(v=!1,String(T)===d))return;k(T)}else x.value!==T&&(x.value=T,t.type==="number"&&c.hasOwnProperty("value")===!0&&(h===!0?h=!1:delete c.value));t.autogrow===!0&&r.nextTick(H)}),r.watch(()=>t.autogrow,T=>{T===!0?r.nextTick(H):y.value!==null&&i.rows>0&&(y.value.style.height="auto")}),r.watch(()=>t.dense,()=>{t.autogrow===!0&&r.nextTick(H)});function Z(){Ro(()=>{const T=document.activeElement;y.value!==null&&y.value!==T&&(T===null||T.id!==Q.targetUid.value)&&y.value.focus({preventScroll:!0})})}function O(){y.value!==null&&y.value.select()}function te(T){if(w.value===!0&&t.reverseFillMask!==!0){const Y=T.target;F(Y,Y.selectionStart,Y.selectionEnd)}l("paste",T)}function $(T){if(!T||!T.target)return;if(t.type==="file"){l("update:modelValue",T.target.files);return}const Y=T.target.value;if(T.target.qComposing===!0){c.value=Y;return}if(w.value===!0)k(Y,!1,T.inputType);else if(ae(Y),ie.value===!0&&T.target===document.activeElement){const{selectionStart:pe,selectionEnd:fe}=T.target;pe!==void 0&&fe!==void 0&&r.nextTick(()=>{T.target===document.activeElement&&Y.indexOf(T.target.value)===0&&T.target.setSelectionRange(pe,fe)})}t.autogrow===!0&&H()}function le(T){l("animationend",T),H()}function ae(T,Y){m=()=>{b=null,t.type!=="number"&&c.hasOwnProperty("value")===!0&&delete c.value,t.modelValue!==T&&d!==T&&(d=T,Y===!0&&(v=!0),l("update:modelValue",T),r.nextTick(()=>{d===T&&(d=NaN)})),m=void 0},t.type==="number"&&(h=!0,c.value=T),t.debounce!==void 0?(b!==null&&clearTimeout(b),c.value=T,b=setTimeout(m,t.debounce)):m()}function H(){requestAnimationFrame(()=>{const T=y.value;if(T!==null){const Y=T.parentNode.style,{scrollTop:pe}=T,{overflowY:fe,maxHeight:G}=a.platform.is.firefox===!0?{}:window.getComputedStyle(T),re=fe!==void 0&&fe!=="scroll";re===!0&&(T.style.overflowY="hidden"),Y.marginBottom=T.scrollHeight-1+"px",T.style.height="1px",T.style.height=T.scrollHeight+"px",re===!0&&(T.style.overflowY=parseInt(G,10)<T.scrollHeight?"auto":"hidden"),Y.marginBottom="",T.scrollTop=pe}})}function se(T){W(T),b!==null&&(clearTimeout(b),b=null),m!==void 0&&m(),l("change",T.target.value)}function Be(T){T!==void 0&&Zt(T),b!==null&&(clearTimeout(b),b=null),m!==void 0&&m(),h=!1,v=!1,delete c.value,t.type!=="file"&&setTimeout(()=>{y.value!==null&&(y.value.value=x.value!==void 0?x.value:"")})}function ge(){return c.hasOwnProperty("value")===!0?c.value:x.value!==void 0?x.value:""}r.onBeforeUnmount(()=>{Be()}),r.onMounted(()=>{t.autogrow===!0&&H()}),Object.assign(Q,{innerValue:x,fieldClass:r.computed(()=>`q-${j.value===!0?"textarea":"input"}`+(t.autogrow===!0?" q-textarea--autogrow":"")),hasShadow:r.computed(()=>t.type!=="file"&&typeof t.shadowText=="string"&&t.shadowText.length!==0),inputRef:y,emitValue:ae,hasValue:K,floatingLabel:r.computed(()=>K.value===!0&&(t.type!=="number"||isNaN(x.value)===!1)||Nr(t.displayValue)),getControl:()=>r.h(j.value===!0?"textarea":"input",{ref:y,class:["q-field__native q-placeholder",t.inputClass],style:t.inputStyle,...U.value,...N.value,...t.type!=="file"?{value:ge()}:L.value}),getShadowControl:()=>r.h("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(j.value===!0?"":" text-no-wrap")},[r.h("span",{class:"invisible"},ge()),r.h("span",t.shadowText)])});const R=nl(Q);return Object.assign(s,{focus:Z,select:O,getNativeElement:()=>y.value}),Co(s,"nativeEl",()=>y.value),R}}),em=["text","rect","circle","QBtn","QBadge","QChip","QToolbar","QCheckbox","QRadio","QToggle","QSlider","QRange","QInput","QAvatar"],tm=["wave","pulse","pulse-x","pulse-y","fade","blink","none"],nm=We({name:"QSkeleton",props:{...Pn,tag:{type:String,default:"div"},type:{type:String,validator:t=>em.includes(t),default:"rect"},animation:{type:String,validator:t=>tm.includes(t),default:"wave"},animationSpeed:{type:[String,Number],default:1500},square:Boolean,bordered:Boolean,size:String,width:String,height:String},setup(t,{slots:l}){const i=r.getCurrentInstance(),s=Vn(t,i.proxy.$q),a=r.computed(()=>{const d=t.size!==void 0?[t.size,t.size]:[t.width,t.height];return{"--q-skeleton-speed":`${t.animationSpeed}ms`,width:d[0],height:d[1]}}),c=r.computed(()=>`q-skeleton q-skeleton--${s.value===!0?"dark":"light"} q-skeleton--type-${t.type}`+(t.animation!=="none"?` q-skeleton--anim q-skeleton--anim-${t.animation}`:"")+(t.square===!0?" q-skeleton--square":"")+(t.bordered===!0?" q-skeleton--bordered":""));return()=>r.h(t.tag,{class:c.value,style:a.value},at(l.default))}}),rm=Xe(r.defineComponent({__name:"IndicatorColor",props:{color:{}},setup(t){const l=t,i=r.computed(()=>{var s;return(s=l.color)!=null&&s.startsWith("#")?{background:l.color}:{}});return(s,a)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([s.color,"indicator-icon"]),style:r.normalizeStyle(i.value)},null,6))}}),[["__scopeId","data-v-86ec13f1"]]),om=Xe(r.defineComponent({__name:"Field",props:{sm:{type:Boolean},label:{},value:{},row:{type:Boolean,default:!1},loading:{type:Boolean},hoverable:{type:Boolean,default:!1},bordered:{type:Boolean},colouredLabel:{type:Boolean,default:!0},dense:{type:Boolean,default:!1},indicatorColor:{},format:{},badge:{}},setup(t){const l=t,i=r.computed(()=>l.format?l.format(l.value):l.value),s=r.computed(()=>l.badge?"badge-"+l.badge(l.value):"");return(a,c)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass({"row justify-between items-center no-wrap":a.row,hoverable:a.hoverable,bordered:a.bordered})},[r.createElementVNode("div",{class:r.normalizeClass([a.dense?"dense-text":"text"]),style:r.normalizeStyle({fontSize:a.sm?"11px":""})},r.toDisplayString(a.label),7),a.loading?(r.openBlock(),r.createBlock(nm,{key:0,type:"rect",width:"100px",animation:"wave"})):(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass([`font-bold text-accent-1 row items-center ${a.dense?"dense-text":"text"} `,{text:a.colouredLabel,badgeClass:s.value}])},[a.indicatorColor?(r.openBlock(),r.createBlock(rm,{key:0,color:a.indicatorColor,class:"q-mr-xs"},null,8,["color"])):r.createCommentVNode("",!0),r.createElementVNode("div",{style:r.normalizeStyle({fontSize:a.sm?"11px":""})},r.toDisplayString(i.value),5)],2))],2))}}),[["__scopeId","data-v-a10936e1"]]),im={key:0},lm={key:0,class:"text-weight-bold text-deep-orange"},am={style:{"font-size":"16px","padding-top":"1.5rem"}},um=Xe(r.defineComponent({__name:"WinInput",props:r.mergeModels({name:{},mask:{},fillMask:{type:[Boolean,String]},reverseFillMask:{type:Boolean},unmaskedValue:{type:Boolean},modelValue:{},error:{type:[Boolean,null]},errorMessage:{},noErrorIcon:{type:Boolean},rules:{},reactiveRules:{type:Boolean},lazyRules:{type:[Boolean,String]},label:{},stackLabel:{type:Boolean},hint:{},hideHint:{type:Boolean},prefix:{},suffix:{},labelColor:{},color:{},bgColor:{},dark:{type:[Boolean,null]},loading:{type:Boolean,default:!1},clearable:{type:Boolean},clearIcon:{},filled:{type:Boolean},outlined:{type:Boolean},borderless:{type:Boolean},standout:{type:[Boolean,String]},labelSlot:{type:Boolean},bottomSlots:{type:Boolean},hideBottomSpace:{type:Boolean},counter:{type:Boolean},rounded:{type:Boolean},square:{type:Boolean},dense:{type:Boolean},itemAligned:{type:Boolean},disable:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},autofocus:{type:Boolean},for:{},shadowText:{},type:{default:"text"},debounce:{},maxlength:{},autogrow:{type:Boolean},inputClass:{},inputStyle:{},"onUpdate:modelValue":{},onFocus:{},onBlur:{},onClear:{},required:{type:Boolean,default:!1},height:{default:"70px"},step:{default:1},currency:{type:Boolean},decimals:{default:0},useFieldOnReadonly:{type:Boolean,default:!1},fieldFormat:{},percentage:{type:Boolean},currencySymbol:{default:"€"},rows:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t,{expose:l}){const i=r.useModel(t,"modelValue"),s=r.ref(null),a=t;l({validate:()=>{var h;return(h=s.value)==null?void 0:h.validate()}});const d=r.computed(()=>{if(a.fieldFormat)return a.fieldFormat});return(h,v)=>h.useFieldOnReadonly&&h.readonly?(r.openBlock(),r.createBlock(om,{key:0,label:h.label||"",value:i.value??"~",format:d.value,bordered:!0},null,8,["label","value","format"])):(r.openBlock(),r.createBlock(ko,{key:1,class:"glass-card q-py-sm q-px-md",style:r.normalizeStyle({height:h.dense?"auto":h.height})},{default:r.withCtx(()=>[r.createVNode(r.unref(As),r.mergeProps({ref_key:"inputRef",ref:s},{...a},{borderless:"","hide-bottom-space":"",modelValue:i.value,"onUpdate:modelValue":v[0]||(v[0]=b=>i.value=b)}),r.createSlots({label:r.withCtx(()=>[h.label?(r.openBlock(),r.createElementBlock("div",im,[r.createTextVNode(r.toDisplayString(h.label)+" ",1),h.required&&!h.readonly?(r.openBlock(),r.createElementBlock("span",lm,"*")):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0)]),_:2},[h.$slots.prepend?{name:"prepend",fn:r.withCtx(()=>[r.renderSlot(h.$slots,"prepend",{},void 0,!0)]),key:"0"}:void 0,h.$slots.append||h.percentage?{name:"append",fn:r.withCtx(()=>[r.renderSlot(h.$slots,"append",{},()=>[r.createElementVNode("span",am,r.toDisplayString(h.percentage?"%":""),1)],!0)]),key:"1"}:void 0]),1040,["modelValue"])]),_:3},8,["style"]))}}),[["__scopeId","data-v-5593318f"]]),sm={class:"ww-subtitle text-center q-mb-md text-grey-9",style:{"font-weight":"600"}},cm=r.defineComponent({__name:"ControlLabel",props:{label:{}},setup(t){return(l,i)=>(r.openBlock(),r.createElementBlock("div",sm,r.toDisplayString(l.label),1))}}),fm={style:{"max-width":"400px"},class:"text-center"},dm={style:{"font-size":"16px"}},hm={style:{"font-size":"16px"}},ol=Xe(r.defineComponent({__name:"InputControl",props:r.mergeModels({control:{},innerLabel:{type:Boolean,default:!1}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=t,i=r.ref(null),s=r.computed(()=>{var c;return(c=l.control.controlType)==null?void 0:c.split("_")[1]}),a=r.useModel(t,"modelValue");return r.onMounted(()=>{var c;(c=i.value)==null||c.focus()}),(c,d)=>(r.openBlock(),r.createElementBlock("div",fm,[!c.innerLabel&&c.control.label?(r.openBlock(),r.createBlock(cm,{key:0,label:c.control.label},null,8,["label"])):r.createCommentVNode("",!0),r.createVNode(um,{modelValue:a.value,"onUpdate:modelValue":d[0]||(d[0]=h=>a.value=h),width:"250px",mask:s.value==="number"?"###.###.###.###.###":void 0,label:c.innerLabel?c.control.label:void 0,inputStyle:{textAlign:(s.value==="number","center")},ref_key:"inputRef",ref:i},r.createSlots({_:2},[c.control.prefix?{name:"prepend",fn:r.withCtx(()=>[r.createElementVNode("span",dm,r.toDisplayString(c.control.prefix),1)]),key:"0"}:void 0,c.control.suffix?{name:"append",fn:r.withCtx(()=>[r.createElementVNode("span",hm,r.toDisplayString(c.control.suffix),1)]),key:"1"}:void 0]),1032,["modelValue","mask","label","inputStyle"])]))}}),[["__scopeId","data-v-8f5284d3"]]);function il(t,l){const i=t.style;for(const s in l)i[s]=l[s]}function mm(t){if(t==null)return;if(typeof t=="string")try{return document.querySelector(t)||void 0}catch{return}const l=r.unref(t);if(l)return l.$el||l}function Es(t,l){if(t==null||t.contains(l)===!0)return!0;for(let i=t.nextElementSibling;i!==null;i=i.nextElementSibling)if(i.contains(l))return!0;return!1}function gm(t,l=250){let i=!1,s;return function(){return i===!1&&(i=!0,setTimeout(()=>{i=!1},l),s=t.apply(this,arguments)),s}}function ks(t,l,i,s){i.modifiers.stop===!0&&Zt(t);const a=i.modifiers.color;let c=i.modifiers.center;c=c===!0||s===!0;const d=document.createElement("span"),h=document.createElement("span"),v=ls(t),{left:b,top:m,width:y,height:A}=l.getBoundingClientRect(),x=Math.sqrt(y*y+A*A),w=x/2,F=`${(y-x)/2}px`,k=c?F:`${v.left-b-w}px`,q=`${(A-x)/2}px`,D=c?q:`${v.top-m-w}px`;h.className="q-ripple__inner",il(h,{height:`${x}px`,width:`${x}px`,transform:`translate3d(${k},${D},0) scale3d(.2,.2,1)`,opacity:0}),d.className=`q-ripple${a?" text-"+a:""}`,d.setAttribute("dir","ltr"),d.appendChild(h),l.appendChild(d);const L=()=>{d.remove(),clearTimeout(K)};i.abort.push(L);let K=setTimeout(()=>{h.classList.add("q-ripple__inner--enter"),h.style.transform=`translate3d(${F},${q},0) scale3d(1,1,1)`,h.style.opacity=.2,K=setTimeout(()=>{h.classList.remove("q-ripple__inner--enter"),h.classList.add("q-ripple__inner--leave"),h.style.opacity=0,K=setTimeout(()=>{d.remove(),i.abort.splice(i.abort.indexOf(L),1)},275)},250)},50)}function Bs(t,{modifiers:l,value:i,arg:s}){const a=Object.assign({},t.cfg.ripple,l,i);t.modifiers={early:a.early===!0,stop:a.stop===!0,center:a.center===!0,color:a.color||s,keyCodes:[].concat(a.keyCodes||13)}}const Os=ju({name:"ripple",beforeMount(t,l){const i=l.instance.$.appContext.config.globalProperties.$q.config||{};if(i.ripple===!1)return;const s={cfg:i,enabled:l.value!==!1,modifiers:{},abort:[],start(a){s.enabled===!0&&a.qSkipRipple!==!0&&a.type===(s.modifiers.early===!0?"pointerdown":"click")&&ks(a,t,s,a.qKeyEvent===!0)},keystart:gm(a=>{s.enabled===!0&&a.qSkipRipple!==!0&&qn(a,s.modifiers.keyCodes)===!0&&a.type===`key${s.modifiers.early===!0?"down":"up"}`&&ks(a,t,s,!0)},300)};Bs(s,l),t.__qripple=s,Pr(s,"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 i=t.__qripple;i!==void 0&&(i.enabled=l.value!==!1,i.enabled===!0&&Object(l.value)===l.value&&Bs(i,l))}},beforeUnmount(t){const l=t.__qripple;l!==void 0&&(l.abort.forEach(i=>{i()}),Eo(l,"main"),delete t._qripple)}}),Ts={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},pm=Object.keys(Ts),vm={align:{type:String,validator:t=>pm.includes(t)}};function _m(t){return r.computed(()=>{const l=t.align===void 0?t.vertical===!0?"stretch":"left":t.align;return`${t.vertical===!0?"items":"justify"}-${Ts[l]}`})}function Rs(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}function Is(t,l){return(t.aliasOf||t)===(l.aliasOf||l)}function ym(t,l){for(const i in l){const s=l[i],a=t[i];if(typeof s=="string"){if(s!==a)return!1}else if(Array.isArray(a)===!1||a.length!==s.length||s.some((c,d)=>c!==a[d]))return!1}return!0}function Fs(t,l){return Array.isArray(l)===!0?t.length===l.length&&t.every((i,s)=>i===l[s]):t.length===1&&t[0]===l}function bm(t,l){return Array.isArray(t)===!0?Fs(t,l):Array.isArray(l)===!0?Fs(l,t):t===l}function wm(t,l){if(Object.keys(t).length!==Object.keys(l).length)return!1;for(const i in t)if(bm(t[i],l[i])===!1)return!1;return!0}const Ms={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},Sm={...Ms,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function Ls({fallbackTag:t,useDisableForRouterLinkProps:l=!0}={}){const i=r.getCurrentInstance(),{props:s,proxy:a,emit:c}=i,d=Xu(i),h=r.computed(()=>s.disable!==!0&&s.href!==void 0),v=l===!0?r.computed(()=>d===!0&&s.disable!==!0&&h.value!==!0&&s.to!==void 0&&s.to!==null&&s.to!==""):r.computed(()=>d===!0&&h.value!==!0&&s.to!==void 0&&s.to!==null&&s.to!==""),b=r.computed(()=>v.value===!0?D(s.to):null),m=r.computed(()=>b.value!==null),y=r.computed(()=>h.value===!0||m.value===!0),A=r.computed(()=>s.type==="a"||y.value===!0?"a":s.tag||t||"div"),x=r.computed(()=>h.value===!0?{href:s.href,target:s.target}:m.value===!0?{href:b.value.href,target:s.target}:{}),w=r.computed(()=>{if(m.value===!1)return-1;const{matched:W}=b.value,{length:Q}=W,j=W[Q-1];if(j===void 0)return-1;const ie=a.$route.matched;if(ie.length===0)return-1;const N=ie.findIndex(Is.bind(null,j));if(N!==-1)return N;const U=Rs(W[Q-2]);return Q>1&&Rs(j)===U&&ie[ie.length-1].path!==U?ie.findIndex(Is.bind(null,W[Q-2])):N}),F=r.computed(()=>m.value===!0&&w.value!==-1&&ym(a.$route.params,b.value.params)),k=r.computed(()=>F.value===!0&&w.value===a.$route.matched.length-1&&wm(a.$route.params,b.value.params)),q=r.computed(()=>m.value===!0?k.value===!0?` ${s.exactActiveClass} ${s.activeClass}`:s.exact===!0?"":F.value===!0?` ${s.activeClass}`:"":"");function D(W){try{return a.$router.resolve(W)}catch{}return null}function L(W,{returnRouterError:Q,to:j=s.to,replace:ie=s.replace}={}){if(s.disable===!0)return W.preventDefault(),Promise.resolve(!1);if(W.metaKey||W.altKey||W.ctrlKey||W.shiftKey||W.button!==void 0&&W.button!==0||s.target==="_blank")return Promise.resolve(!1);W.preventDefault();const N=a.$router[ie===!0?"replace":"push"](j);return Q===!0?N:N.then(()=>{}).catch(()=>{})}function K(W){if(m.value===!0){const Q=j=>L(W,j);c("click",W,Q),W.defaultPrevented!==!0&&Q()}else c("click",W)}return{hasRouterLink:m,hasHrefLink:h,hasLink:y,linkTag:A,resolvedLink:b,linkIsActive:F,linkIsExactActive:k,linkClass:q,linkAttrs:x,getLink:D,navigateToRouterLink:L,navigateOnClick:K}}const Ps={none:0,xs:4,sm:8,md:16,lg:24,xl:32},Cm={xs:8,sm:10,md:14,lg:20,xl:24},xm=["button","submit","reset"],Am=/[^\s]\/[^\s]/,Em=["flat","outline","push","unelevated"];function km(t,l){return t.flat===!0?"flat":t.outline===!0?"outline":t.push===!0?"push":t.unelevated===!0?"unelevated":l}const Bm={...{...xo,...Ms,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...Em.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:{...vm.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},round:Boolean};function Om(t){const l=Ao(t,Cm),i=_m(t),{hasRouterLink:s,hasLink:a,linkTag:c,linkAttrs:d,navigateOnClick:h}=Ls({fallbackTag:"button"}),v=r.computed(()=>{const k=t.fab===!1&&t.fabMini===!1?l.value:{};return t.padding!==void 0?Object.assign({},k,{padding:t.padding.split(/\s+/).map(q=>q in Ps?Ps[q]+"px":q).join(" "),minWidth:"0",minHeight:"0"}):k}),b=r.computed(()=>t.rounded===!0||t.fab===!0||t.fabMini===!0),m=r.computed(()=>t.disable!==!0&&t.loading!==!0),y=r.computed(()=>m.value===!0?t.tabindex||0:-1),A=r.computed(()=>km(t,"standard")),x=r.computed(()=>{const k={tabindex:y.value};return a.value===!0?Object.assign(k,d.value):xm.includes(t.type)===!0&&(k.type=t.type),c.value==="a"?(t.disable===!0?k["aria-disabled"]="true":k.href===void 0&&(k.role="button"),s.value!==!0&&Am.test(t.type)===!0&&(k.type=t.type)):t.disable===!0&&(k.disabled="",k["aria-disabled"]="true"),t.loading===!0&&t.percentage!==void 0&&Object.assign(k,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":t.percentage}),k}),w=r.computed(()=>{let k;t.color!==void 0?t.flat===!0||t.outline===!0?k=`text-${t.textColor||t.color}`:k=`bg-${t.color} text-${t.textColor||"white"}`:t.textColor&&(k=`text-${t.textColor}`);const q=t.round===!0?"round":`rectangle${b.value===!0?" q-btn--rounded":t.square===!0?" q-btn--square":""}`;return`q-btn--${A.value} q-btn--${q}`+(k!==void 0?" "+k:"")+(m.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":"")}),F=r.computed(()=>i.value+(t.stack===!0?" column":" row")+(t.noWrap===!0?" no-wrap text-no-wrap":"")+(t.loading===!0?" q-btn__content--hidden":""));return{classes:w,style:v,innerClasses:F,attributes:x,hasLink:a,linkTag:c,navigateOnClick:h,isActionable:m}}const{passiveCapture:Ot}=dt;let cr=null,fr=null,dr=null;const Tt=We({name:"QBtn",props:{...Bm,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(t,{slots:l,emit:i}){const{proxy:s}=r.getCurrentInstance(),{classes:a,style:c,innerClasses:d,attributes:h,hasLink:v,linkTag:b,navigateOnClick:m,isActionable:y}=Om(t),A=r.ref(null),x=r.ref(null);let w=null,F,k=null;const q=r.computed(()=>t.label!==void 0&&t.label!==null&&t.label!==""),D=r.computed(()=>t.disable===!0||t.ripple===!1?!1:{keyCodes:v.value===!0?[13,32]:[13],...t.ripple===!0?{}:t.ripple}),L=r.computed(()=>({center:t.round})),K=r.computed(()=>{const $=Math.max(0,Math.min(100,t.percentage));return $>0?{transition:"transform 0.6s",transform:`translateX(${$-100}%)`}:{}}),W=r.computed(()=>{if(t.loading===!0)return{onMousedown:te,onTouchstart:te,onClick:te,onKeydown:te,onKeyup:te};if(y.value===!0){const $={onClick:j,onKeydown:ie,onMousedown:U};if(s.$q.platform.has.touch===!0){const le=t.onTouchstart!==void 0?"":"Passive";$[`onTouchstart${le}`]=N}return $}return{onClick:Ge}}),Q=r.computed(()=>({ref:A,class:"q-btn q-btn-item non-selectable no-outline "+a.value,style:c.value,...h.value,...W.value}));function j($){if(A.value!==null){if($!==void 0){if($.defaultPrevented===!0)return;const le=document.activeElement;if(t.type==="submit"&&le!==document.body&&A.value.contains(le)===!1&&le.contains(A.value)===!1){A.value.focus();const ae=()=>{document.removeEventListener("keydown",Ge,!0),document.removeEventListener("keyup",ae,Ot),A.value!==null&&A.value.removeEventListener("blur",ae,Ot)};document.addEventListener("keydown",Ge,!0),document.addEventListener("keyup",ae,Ot),A.value.addEventListener("blur",ae,Ot)}}m($)}}function ie($){A.value!==null&&(i("keydown",$),qn($,[13,32])===!0&&fr!==A.value&&(fr!==null&&O(),$.defaultPrevented!==!0&&(A.value.focus(),fr=A.value,A.value.classList.add("q-btn--active"),document.addEventListener("keyup",Z,!0),A.value.addEventListener("blur",Z,Ot)),Ge($)))}function N($){A.value!==null&&(i("touchstart",$),$.defaultPrevented!==!0&&(cr!==A.value&&(cr!==null&&O(),cr=A.value,w=$.target,w.addEventListener("touchcancel",Z,Ot),w.addEventListener("touchend",Z,Ot)),F=!0,k!==null&&clearTimeout(k),k=setTimeout(()=>{k=null,F=!1},200)))}function U($){A.value!==null&&($.qSkipRipple=F===!0,i("mousedown",$),$.defaultPrevented!==!0&&dr!==A.value&&(dr!==null&&O(),dr=A.value,A.value.classList.add("q-btn--active"),document.addEventListener("mouseup",Z,Ot)))}function Z($){if(A.value!==null&&!($!==void 0&&$.type==="blur"&&document.activeElement===A.value)){if($!==void 0&&$.type==="keyup"){if(fr===A.value&&qn($,[13,32])===!0){const le=new MouseEvent("click",$);le.qKeyEvent=!0,$.defaultPrevented===!0&&$t(le),$.cancelBubble===!0&&Zt(le),A.value.dispatchEvent(le),Ge($),$.qKeyEvent=!0}i("keyup",$)}O()}}function O($){const le=x.value;$!==!0&&(cr===A.value||dr===A.value)&&le!==null&&le!==document.activeElement&&(le.setAttribute("tabindex",-1),le.focus()),cr===A.value&&(w!==null&&(w.removeEventListener("touchcancel",Z,Ot),w.removeEventListener("touchend",Z,Ot)),cr=w=null),dr===A.value&&(document.removeEventListener("mouseup",Z,Ot),dr=null),fr===A.value&&(document.removeEventListener("keyup",Z,!0),A.value!==null&&A.value.removeEventListener("blur",Z,Ot),fr=null),A.value!==null&&A.value.classList.remove("q-btn--active")}function te($){Ge($),$.qSkipRipple=!0}return r.onBeforeUnmount(()=>{O(!0)}),Object.assign(s,{click:$=>{y.value===!0&&j($)}}),()=>{let $=[];t.icon!==void 0&&$.push(r.h(yt,{name:t.icon,left:t.stack!==!0&&q.value===!0,role:"img","aria-hidden":"true"})),q.value===!0&&$.push(r.h("span",{class:"block"},[t.label])),$=Ln(l.default,$),t.iconRight!==void 0&&t.round===!1&&$.push(r.h(yt,{name:t.iconRight,right:t.stack!==!0&&q.value===!0,role:"img","aria-hidden":"true"}));const le=[r.h("span",{class:"q-focus-helper",ref:x})];return t.loading===!0&&t.percentage!==void 0&&le.push(r.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(t.darkPercentage===!0?" q-btn__progress--dark":"")},[r.h("span",{class:"q-btn__progress-indicator fit block",style:K.value})])),le.push(r.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+d.value},$)),t.loading!==null&&le.push(r.h(r.Transition,{name:"q-transition--fade"},()=>t.loading===!0?[r.h("span",{key:"loading",class:"absolute-full flex flex-center"},l.loading!==void 0?l.loading():[r.h(ji)])]:null)),r.withDirectives(r.h(b.value,Q.value,le),[[Os,D.value,void 0,L.value]])}}}),Vs=t=>(r.pushScopeId("data-v-3bcb795a"),t=t(),r.popScopeId(),t),Tm={class:"buttons-container"},Rm={class:"lt-md"},Im={class:"row justify-between q-my-md q-px-md"},Fm=Vs(()=>r.createElementVNode("span",{class:"text-black"},"Atrás",-1)),Mm={key:1},Lm=Vs(()=>r.createElementVNode("span",{class:"text-black"},"Siguiente",-1)),Pm=Xe(r.defineComponent({__name:"NavigationButtons",props:{currentStep:{},stepsCount:{},nextDisabled:{type:Boolean}},emits:["prev","next"],setup(t){const l=t,i=r.computed(()=>l.currentStep+1);return(s,a)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("div",Tm,[i.value>1?(r.openBlock(),r.createBlock(Tt,{key:0,style:{position:"absolute",left:"25px",cursor:"pointer"},size:"26px",color:"white","text-color":"white",class:"gt-sm",onClick:a[0]||(a[0]=c=>s.$emit("prev")),flat:""},{default:r.withCtx(()=>[r.createVNode(yt,{name:"arrow_back_ios",color:"info"})]),_:1})):r.createCommentVNode("",!0),i.value!==s.stepsCount?(r.openBlock(),r.createBlock(Tt,{key:1,style:{position:"absolute",right:"25px",cursor:"pointer"},size:"26px",color:"white","text-color":"white",class:"gt-sm",onClick:a[1]||(a[1]=c=>s.$emit("next")),disable:s.nextDisabled,flat:""},{default:r.withCtx(()=>[r.createVNode(yt,{name:"arrow_forward_ios",color:"info"})]),_:1},8,["disable"])):r.createCommentVNode("",!0)]),r.createElementVNode("div",Rm,[r.createElementVNode("div",Im,[i.value>1&&i.value<s.stepsCount?(r.openBlock(),r.createBlock(Tt,{key:0,color:"info",class:"q-px-md-xl q-py-sm q-mr-sm win-btn win-btn-primary",onClick:a[2]||(a[2]=c=>s.$emit("prev")),flat:"","no-caps":""},{default:r.withCtx(()=>[Fm]),_:1})):(r.openBlock(),r.createElementBlock("div",Mm)),i.value<s.stepsCount?(r.openBlock(),r.createBlock(Tt,{key:2,color:"info",class:"q-px-xl q-py-sm q-ml-sm win-btn win-btn-primary",onClick:a[3]||(a[3]=c=>s.$emit("next")),disable:s.nextDisabled,flat:"","no-caps":""},{default:r.withCtx(()=>[Lm]),_:1},8,["disable"])):r.createCommentVNode("",!0)])])],64))}}),[["__scopeId","data-v-3bcb795a"]]),Vm=We({name:"QField",inheritAttrs:!1,props:{...Io,tag:{type:String,default:"label"}},emits:el,setup(){return nl(tl({requiredForAttr:!1,tagProp:!0}))}}),Nm={xs:8,sm:10,md:14,lg:20,xl:24},qm=We({name:"QChip",props:{...Pn,...xo,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:i}){const{proxy:{$q:s}}=r.getCurrentInstance(),a=Vn(t,s),c=Ao(t,Nm),d=r.computed(()=>t.selected===!0||t.icon!==void 0),h=r.computed(()=>t.selected===!0?t.iconSelected||s.iconSet.chip.selected:t.icon),v=r.computed(()=>t.iconRemove||s.iconSet.chip.remove),b=r.computed(()=>t.disable===!1&&(t.clickable===!0||t.selected!==null)),m=r.computed(()=>{const k=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}`:"")+(k?` text-${k} 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":"")+(b.value===!0?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(t.square===!0?" q-chip--square":"")+(a.value===!0?" q-chip--dark q-dark":"")}),y=r.computed(()=>{const k=t.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:t.tabindex||0},q={...k,role:"button","aria-hidden":"false","aria-label":t.removeAriaLabel||s.lang.label.remove};return{chip:k,remove:q}});function A(k){k.keyCode===13&&x(k)}function x(k){t.disable||(i("update:selected",!t.selected),i("click",k))}function w(k){(k.keyCode===void 0||k.keyCode===13)&&(Ge(k),t.disable===!1&&(i("update:modelValue",!1),i("remove")))}function F(){const k=[];b.value===!0&&k.push(r.h("div",{class:"q-focus-helper"})),d.value===!0&&k.push(r.h(yt,{class:"q-chip__icon q-chip__icon--left",name:h.value}));const q=t.label!==void 0?[r.h("div",{class:"ellipsis"},[t.label])]:void 0;return k.push(r.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},ih(l.default,q))),t.iconRight&&k.push(r.h(yt,{class:"q-chip__icon q-chip__icon--right",name:t.iconRight})),t.removable===!0&&k.push(r.h(yt,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:v.value,...y.value.remove,onClick:w,onKeyup:w})),k}return()=>{if(t.modelValue===!1)return;const k={class:m.value,style:c.value};return b.value===!0&&Object.assign(k,y.value.chip,{onClick:x,onKeyup:A}),Yu("div",k,F(),"ripple",t.ripple!==!1&&t.disable!==!0,()=>[[Os,t.ripple]])}}}),$m=We({name:"QItem",props:{...Pn,...Sm,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:i}){const{proxy:{$q:s}}=r.getCurrentInstance(),a=Vn(t,s),{hasLink:c,linkAttrs:d,linkClass:h,linkTag:v,navigateOnClick:b}=Ls(),m=r.ref(null),y=r.ref(null),A=r.computed(()=>t.clickable===!0||c.value===!0||t.tag==="label"),x=r.computed(()=>t.disable!==!0&&A.value===!0),w=r.computed(()=>"q-item q-item-type row no-wrap"+(t.dense===!0?" q-item--dense":"")+(a.value===!0?" q-item--dark":"")+(c.value===!0&&t.active===null?h.value:t.active===!0?` q-item--active${t.activeClass!==void 0?` ${t.activeClass}`:""}`:"")+(t.disable===!0?" disabled":"")+(x.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":""):"")),F=r.computed(()=>t.insetLevel===void 0?null:{["padding"+(s.lang.rtl===!0?"Right":"Left")]:16+t.insetLevel*56+"px"});function k(L){x.value===!0&&(y.value!==null&&(L.qKeyEvent!==!0&&document.activeElement===m.value?y.value.focus():document.activeElement===y.value&&m.value.focus()),b(L))}function q(L){if(x.value===!0&&qn(L,[13,32])===!0){Ge(L),L.qKeyEvent=!0;const K=new MouseEvent("click",L);K.qKeyEvent=!0,m.value.dispatchEvent(K)}i("keyup",L)}function D(){const L=oh(l.default,[]);return x.value===!0&&L.unshift(r.h("div",{class:"q-focus-helper",tabindex:-1,ref:y})),L}return()=>{const L={ref:m,class:w.value,style:F.value,role:"listitem",onClick:k,onKeyup:q};return x.value===!0?(L.tabindex=t.tabindex||"0",Object.assign(L,d.value)):A.value===!0&&(L["aria-disabled"]="true"),r.h(v.value,L,D())}}}),Dm=We({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(t,{slots:l}){const i=r.computed(()=>`q-item__section column q-item__section--${t.avatar===!0||t.side===!0||t.thumbnail===!0?"side":"main"}`+(t.top===!0?" q-item__section--top justify-start":" justify-center")+(t.avatar===!0?" q-item__section--avatar":"")+(t.thumbnail===!0?" q-item__section--thumbnail":"")+(t.noWrap===!0?" q-item__section--nowrap":""));return()=>r.h("div",{class:i.value},at(l.default))}}),Um=We({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(t,{slots:l}){const i=r.computed(()=>parseInt(t.lines,10)),s=r.computed(()=>"q-item__label"+(t.overline===!0?" q-item__label--overline text-overline":"")+(t.caption===!0?" q-item__label--caption text-caption":"")+(t.header===!0?" q-item__label--header":"")+(i.value===1?" ellipsis":"")),a=r.computed(()=>t.lines!==void 0&&i.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":i.value}:null);return()=>r.h("div",{style:a.value,class:s.value},at(l.default))}});function ll(){if(window.getSelection!==void 0){const t=window.getSelection();t.empty!==void 0?t.empty():t.removeAllRanges!==void 0&&(t.removeAllRanges(),Wi.is.mobile!==!0&&t.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}const Ns={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},zm={...Ns,contextMenu:Boolean};function qs({showing:t,avoidEmit:l,configureAnchorEl:i}){const{props:s,proxy:a,emit:c}=r.getCurrentInstance(),d=r.ref(null);let h=null;function v(x){return d.value===null?!1:x===void 0||x.touches===void 0||x.touches.length<=1}const b={};i===void 0&&(Object.assign(b,{hide(x){a.hide(x)},toggle(x){a.toggle(x),x.qAnchorHandled=!0},toggleKey(x){qn(x,13)===!0&&b.toggle(x)},contextClick(x){a.hide(x),$t(x),r.nextTick(()=>{a.show(x),x.qAnchorHandled=!0})},prevent:$t,mobileTouch(x){if(b.mobileCleanup(x),v(x)!==!0)return;a.hide(x),d.value.classList.add("non-selectable");const w=x.target;Pr(b,"anchor",[[w,"touchmove","mobileCleanup","passive"],[w,"touchend","mobileCleanup","passive"],[w,"touchcancel","mobileCleanup","passive"],[d.value,"contextmenu","prevent","notPassive"]]),h=setTimeout(()=>{h=null,a.show(x),x.qAnchorHandled=!0},300)},mobileCleanup(x){d.value.classList.remove("non-selectable"),h!==null&&(clearTimeout(h),h=null),t.value===!0&&x!==void 0&&ll()}}),i=function(x=s.contextMenu){if(s.noParentEvent===!0||d.value===null)return;let w;x===!0?a.$q.platform.is.mobile===!0?w=[[d.value,"touchstart","mobileTouch","passive"]]:w=[[d.value,"mousedown","hide","passive"],[d.value,"contextmenu","contextClick","notPassive"]]:w=[[d.value,"click","toggle","passive"],[d.value,"keyup","toggleKey","passive"]],Pr(b,"anchor",w)});function m(){Eo(b,"anchor")}function y(x){for(d.value=x;d.value.classList.contains("q-anchor--skip");)d.value=d.value.parentNode;i()}function A(){if(s.target===!1||s.target===""||a.$el.parentNode===null)d.value=null;else if(s.target===!0)y(a.$el.parentNode);else{let x=s.target;if(typeof s.target=="string")try{x=document.querySelector(s.target)}catch{x=void 0}x!=null?(d.value=x.$el||x,i()):(d.value=null,console.error(`Anchor: target "${s.target}" not found`))}}return r.watch(()=>s.contextMenu,x=>{d.value!==null&&(m(),i(x))}),r.watch(()=>s.target,()=>{d.value!==null&&m(),A()}),r.watch(()=>s.noParentEvent,x=>{d.value!==null&&(x===!0?m():i())}),r.onMounted(()=>{A(),l!==!0&&s.modelValue===!0&&d.value===null&&c("update:modelValue",!1)}),r.onBeforeUnmount(()=>{h!==null&&clearTimeout(h),m()}),{anchorEl:d,canShow:v,anchorEvents:b}}function $s(t,l){const i=r.ref(null);let s;function a(h,v){const b=`${v!==void 0?"add":"remove"}EventListener`,m=v!==void 0?v:s;h!==window&&h[b]("scroll",m,dt.passive),window[b]("scroll",m,dt.passive),s=v}function c(){i.value!==null&&(a(i.value),i.value=null)}const d=r.watch(()=>t.noParentEvent,()=>{i.value!==null&&(c(),l())});return r.onBeforeUnmount(d),{localScrollTarget:i,unconfigureScrollTarget:c,changeScrollEvent:a}}const al={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},ul=["beforeShow","show","beforeHide","hide"];function sl({showing:t,canShow:l,hideOnRouteChange:i,handleShow:s,handleHide:a,processOnMount:c}){const d=r.getCurrentInstance(),{props:h,emit:v,proxy:b}=d;let m;function y(D){t.value===!0?w(D):A(D)}function A(D){if(h.disable===!0||D!==void 0&&D.qAnchorHandled===!0||l!==void 0&&l(D)!==!0)return;const L=h["onUpdate:modelValue"]!==void 0;L===!0&&(v("update:modelValue",!0),m=D,r.nextTick(()=>{m===D&&(m=void 0)})),(h.modelValue===null||L===!1)&&x(D)}function x(D){t.value!==!0&&(t.value=!0,v("beforeShow",D),s!==void 0?s(D):v("show",D))}function w(D){if(h.disable===!0)return;const L=h["onUpdate:modelValue"]!==void 0;L===!0&&(v("update:modelValue",!1),m=D,r.nextTick(()=>{m===D&&(m=void 0)})),(h.modelValue===null||L===!1)&&F(D)}function F(D){t.value!==!1&&(t.value=!1,v("beforeHide",D),a!==void 0?a(D):v("hide",D))}function k(D){h.disable===!0&&D===!0?h["onUpdate:modelValue"]!==void 0&&v("update:modelValue",!1):D===!0!==t.value&&(D===!0?x:F)(m)}r.watch(()=>h.modelValue,k),i!==void 0&&Xu(d)===!0&&r.watch(()=>b.$route.fullPath,()=>{i.value===!0&&t.value===!0&&w()}),c===!0&&r.onMounted(()=>{k(h.modelValue)});const q={show:A,hide:w,toggle:y};return Object.assign(b,q),q}const Ds={};let Hm=1,Wm=document.body;function Gm(t,l){const i=document.createElement("div");if(i.id=l!==void 0?`q-portal--${l}--${Hm++}`:t,Ds.globalNodes!==void 0){const s=Ds.globalNodes.class;s!==void 0&&(i.className=s)}return Wm.appendChild(i),i}function jm(t){t.remove()}const qr=[];function Km(t,l){do{if(t.$options.name==="QMenu"){if(t.hide(l),t.$props.separateClosePopup===!0)return Ki(t)}else if(t.__qPortal===!0){const i=Ki(t);return i!==void 0&&i.$options.name==="QPopupProxy"?(t.hide(l),i):t}t=Ki(t)}while(t!=null)}const Qm=We({name:"QPortal",setup(t,{slots:l}){return()=>l.default()}});function Zm(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 cl(t,l,i,s){const a=r.ref(!1),c=r.ref(!1);let d=null;const h={},v=s==="dialog"&&Zm(t);function b(y){if(y===!0){bs(h),c.value=!0;return}c.value=!1,a.value===!1&&(v===!1&&d===null&&(d=Gm(!1,s)),a.value=!0,qr.push(t.proxy),Hh(h))}function m(y){if(c.value=!1,y!==!0)return;bs(h),a.value=!1;const A=qr.indexOf(t.proxy);A!==-1&&qr.splice(A,1),d!==null&&(jm(d),d=null)}return r.onUnmounted(()=>{m(!0)}),t.proxy.__qPortal=!0,Co(t.proxy,"contentEl",()=>l.value),{showPortal:b,hidePortal:m,portalIsActive:a,portalIsAccessible:c,renderPortal:()=>v===!0?i():a.value===!0?[r.h(r.Teleport,{to:d},r.h(Qm,i))]:void 0}}const $r={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function fl(t,l=()=>{},i=()=>{}){return{transitionProps:r.computed(()=>{const s=`q-transition--${t.transitionShow||l()}`,a=`q-transition--${t.transitionHide||i()}`;return{appear:!0,enterFromClass:`${s}-enter-from`,enterActiveClass:`${s}-enter-active`,enterToClass:`${s}-enter-to`,leaveFromClass:`${a}-leave-from`,leaveActiveClass:`${a}-leave-active`,leaveToClass:`${a}-leave-to`}}),transitionStyle:r.computed(()=>`--q-transition-duration: ${t.transitionDuration}ms`)}}function dl(){let t;const l=r.getCurrentInstance();function i(){t=void 0}return r.onDeactivated(i),r.onBeforeUnmount(i),{removeTick:i,registerTick(s){t=s,r.nextTick(()=>{t===s&&(Mr(l)===!1&&t(),t=void 0)})}}}const Us=[Element,String],Ym=[null,document,document.body,document.scrollingElement,document.documentElement];function zs(t,l){let i=mm(l);if(i===void 0){if(t==null)return window;i=t.closest(".scroll,.scroll-y,.overflow-auto")}return Ym.includes(i)?window:i}function Xm(t){return t===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:t.scrollTop}function Jm(t){return t===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:t.scrollLeft}let Mo;function e0(){if(Mo!==void 0)return Mo;const t=document.createElement("p"),l=document.createElement("div");il(t,{width:"100%",height:"200px"}),il(l,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),l.appendChild(t),document.body.appendChild(l);const i=t.offsetWidth;l.style.overflow="scroll";let s=t.offsetWidth;return i===s&&(s=l.clientWidth),l.remove(),Mo=i-s,Mo}function t0(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 $n=[];let hr;function n0(t){hr=t.keyCode===27}function r0(){hr===!0&&(hr=!1)}function o0(t){hr===!0&&(hr=!1,qn(t,27)===!0&&$n[$n.length-1](t))}function Hs(t){window[t]("keydown",n0),window[t]("blur",r0),window[t]("keyup",o0),hr=!1}function Ws(t){_t.is.desktop===!0&&($n.push(t),$n.length===1&&Hs("addEventListener"))}function Lo(t){const l=$n.indexOf(t);l!==-1&&($n.splice(l,1),$n.length===0&&Hs("removeEventListener"))}const Dn=[];function Gs(t){Dn[Dn.length-1](t)}function js(t){_t.is.desktop===!0&&(Dn.push(t),Dn.length===1&&document.body.addEventListener("focusin",Gs))}function hl(t){const l=Dn.indexOf(t);l!==-1&&(Dn.splice(l,1),Dn.length===0&&document.body.removeEventListener("focusin",Gs))}const{notPassiveCapture:Po}=dt,Un=[];function Vo(t){const l=t.target;if(l===void 0||l.nodeType===8||l.classList.contains("no-pointer-events")===!0)return;let i=qr.length-1;for(;i>=0;){const s=qr[i].$;if(s.type.name==="QTooltip"){i--;continue}if(s.type.name!=="QDialog")break;if(s.props.seamless!==!0)return;i--}for(let s=Un.length-1;s>=0;s--){const a=Un[s];if((a.anchorEl.value===null||a.anchorEl.value.contains(l)===!1)&&(l===document.body||a.innerRef.value!==null&&a.innerRef.value.contains(l)===!1))t.qClickOutside=!0,a.onClickOutside(t);else return}}function Ks(t){Un.push(t),Un.length===1&&(document.addEventListener("mousedown",Vo,Po),document.addEventListener("touchstart",Vo,Po))}function No(t){const l=Un.findIndex(i=>i===t);l!==-1&&(Un.splice(l,1),Un.length===0&&(document.removeEventListener("mousedown",Vo,Po),document.removeEventListener("touchstart",Vo,Po)))}let Qs,Zs;function qo(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 Ys(t){return t?!(t.length!==2||typeof t[0]!="number"||typeof t[1]!="number"):!0}const ml={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(t=>{ml[`${t}#ltr`]=t,ml[`${t}#rtl`]=t});function $o(t,l){const i=t.split(" ");return{vertical:i[0],horizontal:ml[`${i[1]}#${l===!0?"rtl":"ltr"}`]}}function i0(t,l){let{top:i,left:s,right:a,bottom:c,width:d,height:h}=t.getBoundingClientRect();return l!==void 0&&(i-=l[1],s-=l[0],c+=l[1],a+=l[0],d+=l[0],h+=l[1]),{top:i,bottom:c,height:h,left:s,right:a,width:d,middle:s+(a-s)/2,center:i+(c-i)/2}}function l0(t,l,i){let{top:s,left:a}=t.getBoundingClientRect();return s+=l.top,a+=l.left,i!==void 0&&(s+=i[1],a+=i[0]),{top:s,bottom:s+1,height:1,left:a,right:a+1,width:1,middle:a,center:s}}function a0(t,l){return{top:0,center:l/2,bottom:l,left:0,middle:t/2,right:t}}function Xs(t,l,i,s){return{top:t[i.vertical]-l[s.vertical],left:t[i.horizontal]-l[s.horizontal]}}function gl(t,l=0){if(t.targetEl===null||t.anchorEl===null||l>5)return;if(t.targetEl.offsetHeight===0||t.targetEl.offsetWidth===0){setTimeout(()=>{gl(t,l+1)},10);return}const{targetEl:i,offset:s,anchorEl:a,anchorOrigin:c,selfOrigin:d,absoluteOffset:h,fit:v,cover:b,maxHeight:m,maxWidth:y}=t;if(_t.is.ios===!0&&window.visualViewport!==void 0){const Q=document.body.style,{offsetLeft:j,offsetTop:ie}=window.visualViewport;j!==Qs&&(Q.setProperty("--q-pe-left",j+"px"),Qs=j),ie!==Zs&&(Q.setProperty("--q-pe-top",ie+"px"),Zs=ie)}const{scrollLeft:A,scrollTop:x}=i,w=h===void 0?i0(a,b===!0?[0,0]:s):l0(a,h,s);Object.assign(i.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:y||"100vw",maxHeight:m||"100vh",visibility:"visible"});const{offsetWidth:F,offsetHeight:k}=i,{elWidth:q,elHeight:D}=v===!0||b===!0?{elWidth:Math.max(w.width,F),elHeight:b===!0?Math.max(w.height,k):k}:{elWidth:F,elHeight:k};let L={maxWidth:y,maxHeight:m};(v===!0||b===!0)&&(L.minWidth=w.width+"px",b===!0&&(L.minHeight=w.height+"px")),Object.assign(i.style,L);const K=a0(q,D);let W=Xs(w,K,c,d);if(h===void 0||s===void 0)pl(W,w,K,c,d);else{const{top:Q,left:j}=W;pl(W,w,K,c,d);let ie=!1;if(W.top!==Q){ie=!0;const N=2*s[1];w.center=w.top-=N,w.bottom-=N+2}if(W.left!==j){ie=!0;const N=2*s[0];w.middle=w.left-=N,w.right-=N+2}ie===!0&&(W=Xs(w,K,c,d),pl(W,w,K,c,d))}L={top:W.top+"px",left:W.left+"px"},W.maxHeight!==void 0&&(L.maxHeight=W.maxHeight+"px",w.height>W.maxHeight&&(L.minHeight=L.maxHeight)),W.maxWidth!==void 0&&(L.maxWidth=W.maxWidth+"px",w.width>W.maxWidth&&(L.minWidth=L.maxWidth)),Object.assign(i.style,L),i.scrollTop!==x&&(i.scrollTop=x),i.scrollLeft!==A&&(i.scrollLeft=A)}function pl(t,l,i,s,a){const c=i.bottom,d=i.right,h=e0(),v=window.innerHeight-h,b=document.body.clientWidth;if(t.top<0||t.top+c>v)if(a.vertical==="center")t.top=l[s.vertical]>v/2?Math.max(0,v-c):0,t.maxHeight=Math.min(c,v);else if(l[s.vertical]>v/2){const m=Math.min(v,s.vertical==="center"?l.center:s.vertical===a.vertical?l.bottom:l.top);t.maxHeight=Math.min(c,m),t.top=Math.max(0,m-c)}else t.top=Math.max(0,s.vertical==="center"?l.center:s.vertical===a.vertical?l.top:l.bottom),t.maxHeight=Math.min(c,v-t.top);if(t.left<0||t.left+d>b)if(t.maxWidth=Math.min(d,b),a.horizontal==="middle")t.left=l[s.horizontal]>b/2?Math.max(0,b-d):0;else if(l[s.horizontal]>b/2){const m=Math.min(b,s.horizontal==="middle"?l.middle:s.horizontal===a.horizontal?l.right:l.left);t.maxWidth=Math.min(d,m),t.left=Math.max(0,m-t.maxWidth)}else t.left=Math.max(0,s.horizontal==="middle"?l.middle:s.horizontal===a.horizontal?l.left:l.right),t.maxWidth=Math.min(d,b-t.left)}const u0=We({name:"QMenu",inheritAttrs:!1,props:{...zm,...al,...Pn,...$r,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:qo},self:{type:String,validator:qo},offset:{type:Array,validator:Ys},scrollTarget:Us,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...ul,"click","escapeKey"],setup(t,{slots:l,emit:i,attrs:s}){let a=null,c,d,h;const v=r.getCurrentInstance(),{proxy:b}=v,{$q:m}=b,y=r.ref(null),A=r.ref(!1),x=r.computed(()=>t.persistent!==!0&&t.noRouteDismiss!==!0),w=Vn(t,m),{registerTick:F,removeTick:k}=dl(),{registerTimeout:q}=Lr(),{transitionProps:D,transitionStyle:L}=fl(t),{localScrollTarget:K,changeScrollEvent:W,unconfigureScrollTarget:Q}=$s(t,Y),{anchorEl:j,canShow:ie}=qs({showing:A}),{hide:N}=sl({showing:A,canShow:ie,handleShow:ge,handleHide:R,hideOnRouteChange:x,processOnMount:!0}),{showPortal:U,hidePortal:Z,renderPortal:O}=cl(v,y,Ee,"menu"),te={anchorEl:j,innerRef:y,onClickOutside(X){if(t.persistent!==!0&&A.value===!0)return N(X),(X.type==="touchstart"||X.target.classList.contains("q-dialog__backdrop"))&&Ge(X),!0}},$=r.computed(()=>$o(t.anchor||(t.cover===!0?"center middle":"bottom start"),m.lang.rtl)),le=r.computed(()=>t.cover===!0?$.value:$o(t.self||"top start",m.lang.rtl)),ae=r.computed(()=>(t.square===!0?" q-menu--square":"")+(w.value===!0?" q-menu--dark q-dark":"")),H=r.computed(()=>t.autoClose===!0?{onClick:pe}:{}),se=r.computed(()=>A.value===!0&&t.persistent!==!0);r.watch(se,X=>{X===!0?(Ws(G),Ks(te)):(Lo(G),No(te))});function Be(){Ro(()=>{let X=y.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(a=t.noRefocus===!1?document.activeElement:null,js(fe),U(),Y(),c=void 0,X!==void 0&&(t.touchPosition||t.contextMenu)){const qe=ls(X);if(qe.left!==void 0){const{top:ut,left:Ut}=j.value.getBoundingClientRect();c={left:qe.left-Ut,top:qe.top-ut}}}d===void 0&&(d=r.watch(()=>m.screen.width+"|"+m.screen.height+"|"+t.self+"|"+t.anchor+"|"+m.lang.rtl,re)),t.noFocus!==!0&&document.activeElement.blur(),F(()=>{re(),t.noFocus!==!0&&Be()}),q(()=>{m.platform.is.ios===!0&&(h=t.autoClose,y.value.click()),re(),U(!0),i("show",X)},t.transitionDuration)}function R(X){k(),Z(),T(!0),a!==null&&(X===void 0||X.qClickOutside!==!0)&&(((X&&X.type.indexOf("key")===0?a.closest('[tabindex]:not([tabindex^="-"])'):void 0)||a).focus(),a=null),q(()=>{Z(!0),i("hide",X)},t.transitionDuration)}function T(X){c=void 0,d!==void 0&&(d(),d=void 0),(X===!0||A.value===!0)&&(hl(fe),Q(),No(te),Lo(G)),X!==!0&&(a=null)}function Y(){(j.value!==null||t.scrollTarget!==void 0)&&(K.value=zs(j.value,t.scrollTarget),W(K.value,re))}function pe(X){h!==!0?(Km(b,X),i("click",X)):h=!1}function fe(X){se.value===!0&&t.noFocus!==!0&&Es(y.value,X.target)!==!0&&Be()}function G(X){i("escapeKey"),N(X)}function re(){gl({targetEl:y.value,offset:t.offset,anchorEl:j.value,anchorOrigin:$.value,selfOrigin:le.value,absoluteOffset:c,fit:t.fit,cover:t.cover,maxHeight:t.maxHeight,maxWidth:t.maxWidth})}function Ee(){return r.h(r.Transition,D.value,()=>A.value===!0?r.h("div",{role:"menu",...s,ref:y,tabindex:-1,class:["q-menu q-position-engine scroll"+ae.value,s.class],style:[s.style,L.value],...H.value},at(l.default)):null)}return r.onBeforeUnmount(T),Object.assign(b,{focus:Be,updatePosition:re}),O}});function s0(t,l,i){function s(){}return r.onBeforeUnmount(()=>{t.value===!0&&void 0}),{removeFromHistory:s,addToHistory(){}}}let Dr=0,vl,_l,Ur,yl=!1,Js,ec,tc,zn=null;function c0(t){f0(t)&&Ge(t)}function f0(t){if(t.target===document.body||t.target.classList.contains("q-layout__backdrop"))return!0;const l=Th(t),i=t.shiftKey&&!t.deltaX,s=!i&&Math.abs(t.deltaX)<=Math.abs(t.deltaY),a=i||s?t.deltaY:t.deltaX;for(let c=0;c<l.length;c++){const d=l[c];if(t0(d,s))return s?a<0&&d.scrollTop===0?!0:a>0&&d.scrollTop+d.clientHeight===d.scrollHeight:a<0&&d.scrollLeft===0?!0:a>0&&d.scrollLeft+d.clientWidth===d.scrollWidth}return!0}function nc(t){t.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function Do(t){yl!==!0&&(yl=!0,requestAnimationFrame(()=>{yl=!1;const{height:l}=t.target,{clientHeight:i,scrollTop:s}=document.scrollingElement;(Ur===void 0||l!==window.innerHeight)&&(Ur=i-l,document.scrollingElement.scrollTop=s),s>Ur&&(document.scrollingElement.scrollTop-=Math.ceil((s-Ur)/8))}))}function rc(t){const l=document.body,i=window.visualViewport!==void 0;if(t==="add"){const{overflowY:s,overflowX:a}=window.getComputedStyle(l);vl=Jm(window),_l=Xm(window),Js=l.style.left,ec=l.style.top,tc=window.location.href,l.style.left=`-${vl}px`,l.style.top=`-${_l}px`,a!=="hidden"&&(a==="scroll"||l.scrollWidth>window.innerWidth)&&l.classList.add("q-body--force-scrollbar-x"),s!=="hidden"&&(s==="scroll"||l.scrollHeight>window.innerHeight)&&l.classList.add("q-body--force-scrollbar-y"),l.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,_t.is.ios===!0&&(i===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",Do,dt.passiveCapture),window.visualViewport.addEventListener("scroll",Do,dt.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",nc,dt.passiveCapture))}_t.is.desktop===!0&&_t.is.mac===!0&&window[`${t}EventListener`]("wheel",c0,dt.notPassive),t==="remove"&&(_t.is.ios===!0&&(i===!0?(window.visualViewport.removeEventListener("resize",Do,dt.passiveCapture),window.visualViewport.removeEventListener("scroll",Do,dt.passiveCapture)):window.removeEventListener("scroll",nc,dt.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=Js,l.style.top=ec,window.location.href===tc&&window.scrollTo(vl,_l),Ur=void 0)}function d0(t){let l="add";if(t===!0){if(Dr++,zn!==null){clearTimeout(zn),zn=null;return}if(Dr>1)return}else{if(Dr===0||(Dr--,Dr>0))return;if(l="remove",_t.is.ios===!0&&_t.is.nativeMobile===!0){zn!==null&&clearTimeout(zn),zn=setTimeout(()=>{rc(l),zn=null},100);return}}rc(l)}function h0(){let t;return{preventBodyScroll(l){l!==t&&(t!==void 0||l===!0)&&(t=l,d0(l))}}}let Uo=0;const m0={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"},oc={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},g0=We({name:"QDialog",inheritAttrs:!1,props:{...al,...$r,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:[...ul,"shake","click","escapeKey"],setup(t,{slots:l,emit:i,attrs:s}){const a=r.getCurrentInstance(),c=r.ref(null),d=r.ref(!1),h=r.ref(!1);let v=null,b=null,m,y;const A=r.computed(()=>t.persistent!==!0&&t.noRouteDismiss!==!0&&t.seamless!==!0),{preventBodyScroll:x}=h0(),{registerTimeout:w}=Lr(),{registerTick:F,removeTick:k}=dl(),{transitionProps:q,transitionStyle:D}=fl(t,()=>oc[t.position][0],()=>oc[t.position][1]),L=r.computed(()=>D.value+(t.backdropFilter!==void 0?`;backdrop-filter:${t.backdropFilter};-webkit-backdrop-filter:${t.backdropFilter}`:"")),{showPortal:K,hidePortal:W,portalIsAccessible:Q,renderPortal:j}=cl(a,c,fe,"dialog"),{hide:ie}=sl({showing:d,hideOnRouteChange:A,handleShow:le,handleHide:ae,processOnMount:!0}),{addToHistory:N,removeFromHistory:U}=s0(d),Z=r.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${t.maximized===!0?"maximized":"minimized"} q-dialog__inner--${t.position} ${m0[t.position]}`+(h.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":"")),O=r.computed(()=>d.value===!0&&t.seamless!==!0),te=r.computed(()=>t.autoClose===!0?{onClick:T}:{}),$=r.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${O.value===!0?"modal":"seamless"}`,s.class]);r.watch(()=>t.maximized,G=>{d.value===!0&&R(G)}),r.watch(O,G=>{x(G),G===!0?(js(pe),Ws(Be)):(hl(pe),Lo(Be))});function le(G){N(),b=t.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,R(t.maximized),K(),h.value=!0,t.noFocus!==!0?(document.activeElement!==null&&document.activeElement.blur(),F(H)):k(),w(()=>{if(a.proxy.$q.platform.is.ios===!0){if(t.seamless!==!0&&document.activeElement){const{top:re,bottom:Ee}=document.activeElement.getBoundingClientRect(),{innerHeight:X}=window,qe=window.visualViewport!==void 0?window.visualViewport.height:X;re>0&&Ee>qe/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-qe,Ee>=X?1/0:Math.ceil(document.scrollingElement.scrollTop+Ee-qe/2))),document.activeElement.scrollIntoView()}y=!0,c.value.click(),y=!1}K(!0),h.value=!1,i("show",G)},t.transitionDuration)}function ae(G){k(),U(),ge(!0),h.value=!0,W(),b!==null&&(((G&&G.type.indexOf("key")===0?b.closest('[tabindex]:not([tabindex^="-"])'):void 0)||b).focus(),b=null),w(()=>{W(!0),h.value=!1,i("hide",G)},t.transitionDuration)}function H(G){Ro(()=>{let re=c.value;if(re!==null){if(G!==void 0){const Ee=re.querySelector(G);if(Ee!==null){Ee.focus({preventScroll:!0});return}}re.contains(document.activeElement)!==!0&&(re=re.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||re.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||re.querySelector("[autofocus], [data-autofocus]")||re,re.focus({preventScroll:!0}))}})}function se(G){G&&typeof G.focus=="function"?G.focus({preventScroll:!0}):H(),i("shake");const re=c.value;re!==null&&(re.classList.remove("q-animate--scale"),re.classList.add("q-animate--scale"),v!==null&&clearTimeout(v),v=setTimeout(()=>{v=null,c.value!==null&&(re.classList.remove("q-animate--scale"),H())},170))}function Be(){t.seamless!==!0&&(t.persistent===!0||t.noEscDismiss===!0?t.maximized!==!0&&t.noShake!==!0&&se():(i("escapeKey"),ie()))}function ge(G){v!==null&&(clearTimeout(v),v=null),(G===!0||d.value===!0)&&(R(!1),t.seamless!==!0&&(x(!1),hl(pe),Lo(Be))),G!==!0&&(b=null)}function R(G){G===!0?m!==!0&&(Uo<1&&document.body.classList.add("q-body--dialog"),Uo++,m=!0):m===!0&&(Uo<2&&document.body.classList.remove("q-body--dialog"),Uo--,m=!1)}function T(G){y!==!0&&(ie(G),i("click",G))}function Y(G){t.persistent!==!0&&t.noBackdropDismiss!==!0?ie(G):t.noShake!==!0&&se()}function pe(G){t.allowFocusOutside!==!0&&Q.value===!0&&Es(c.value,G.target)!==!0&&H('[tabindex]:not([tabindex="-1"])')}Object.assign(a.proxy,{focus:H,shake:se,__updateRefocusTarget(G){b=G||null}}),r.onBeforeUnmount(ge);function fe(){return r.h("div",{role:"dialog","aria-modal":O.value===!0?"true":"false",...s,class:$.value},[r.h(r.Transition,{name:"q-transition--fade",appear:!0},()=>O.value===!0?r.h("div",{class:"q-dialog__backdrop fixed-full",style:L.value,"aria-hidden":"true",tabindex:-1,onClick:Y}):null),r.h(r.Transition,q.value,()=>d.value===!0?r.h("div",{ref:c,class:Z.value,style:D.value,tabindex:-1,...te.value},at(l.default)):null)])}return j}});let zo=!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,zo=t.scrollLeft>=0,t.remove()}const Dt=1e3,p0=["start","center","end","start-force","center-force","end-force"],ic=Array.prototype.filter,v0=window.getComputedStyle(document.body).overflowAnchor===void 0?Oh:function(t,l){t!==null&&(t._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(t._qOverflowAnimationFrame),t._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(t===null)return;t._qOverflowAnimationFrame=void 0;const i=t.children||[];ic.call(i,a=>a.dataset&&a.dataset.qVsAnchor!==void 0).forEach(a=>{delete a.dataset.qVsAnchor});const s=i[l];s&&s.dataset&&(s.dataset.qVsAnchor="")}))};function mr(t,l){return t+l}function bl(t,l,i,s,a,c,d,h){const v=t===window?document.scrollingElement||document.documentElement:t,b=a===!0?"offsetWidth":"offsetHeight",m={scrollStart:0,scrollViewSize:-d-h,scrollMaxSize:0,offsetStart:-d,offsetEnd:-h};if(a===!0?(t===window?(m.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,m.scrollViewSize+=document.documentElement.clientWidth):(m.scrollStart=v.scrollLeft,m.scrollViewSize+=v.clientWidth),m.scrollMaxSize=v.scrollWidth,c===!0&&(m.scrollStart=(zo===!0?m.scrollMaxSize-m.scrollViewSize:0)-m.scrollStart)):(t===window?(m.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,m.scrollViewSize+=document.documentElement.clientHeight):(m.scrollStart=v.scrollTop,m.scrollViewSize+=v.clientHeight),m.scrollMaxSize=v.scrollHeight),i!==null)for(let y=i.previousElementSibling;y!==null;y=y.previousElementSibling)y.classList.contains("q-virtual-scroll--skip")===!1&&(m.offsetStart+=y[b]);if(s!==null)for(let y=s.nextElementSibling;y!==null;y=y.nextElementSibling)y.classList.contains("q-virtual-scroll--skip")===!1&&(m.offsetEnd+=y[b]);if(l!==t){const y=v.getBoundingClientRect(),A=l.getBoundingClientRect();a===!0?(m.offsetStart+=A.left-y.left,m.offsetEnd-=A.width):(m.offsetStart+=A.top-y.top,m.offsetEnd-=A.height),t!==window&&(m.offsetStart+=m.scrollStart),m.offsetEnd+=m.scrollMaxSize-m.offsetStart}return m}function lc(t,l,i,s){l==="end"&&(l=(t===window?document.body:t)[i===!0?"scrollWidth":"scrollHeight"]),t===window?i===!0?(s===!0&&(l=(zo===!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):i===!0?(s===!0&&(l=(zo===!0?t.scrollWidth-t.offsetWidth:0)-l),t.scrollLeft=l):t.scrollTop=l}function zr(t,l,i,s){if(i>=s)return 0;const a=l.length,c=Math.floor(i/Dt),d=Math.floor((s-1)/Dt)+1;let h=t.slice(c,d).reduce(mr,0);return i%Dt!==0&&(h-=l.slice(c*Dt,i).reduce(mr,0)),s%Dt!==0&&s!==a&&(h-=l.slice(s,d*Dt).reduce(mr,0)),h}const ac={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 _0({virtualScrollLength:t,getVirtualScrollTarget:l,getVirtualScrollEl:i,virtualScrollItemSizeComputed:s}){const a=r.getCurrentInstance(),{props:c,emit:d,proxy:h}=a,{$q:v}=h;let b,m,y,A=[],x;const w=r.ref(0),F=r.ref(0),k=r.ref({}),q=r.ref(null),D=r.ref(null),L=r.ref(null),K=r.ref({from:0,to:0}),W=r.computed(()=>c.tableColspan!==void 0?c.tableColspan:100);s===void 0&&(s=r.computed(()=>c.virtualScrollItemSize));const Q=r.computed(()=>s.value+";"+c.virtualScrollHorizontal),j=r.computed(()=>Q.value+";"+c.virtualScrollSliceRatioBefore+";"+c.virtualScrollSliceRatioAfter);r.watch(j,()=>{ae()}),r.watch(Q,ie);function ie(){le(m,!0)}function N(R){le(R===void 0?m:R)}function U(R,T){const Y=l();if(Y==null||Y.nodeType===8)return;const pe=bl(Y,i(),q.value,D.value,c.virtualScrollHorizontal,v.lang.rtl,c.virtualScrollStickySizeStart,c.virtualScrollStickySizeEnd);y!==pe.scrollViewSize&&ae(pe.scrollViewSize),O(Y,pe,Math.min(t.value-1,Math.max(0,parseInt(R,10)||0)),0,p0.indexOf(T)!==-1?T:m!==-1&&R>m?"end":"start")}function Z(){const R=l();if(R==null||R.nodeType===8)return;const T=bl(R,i(),q.value,D.value,c.virtualScrollHorizontal,v.lang.rtl,c.virtualScrollStickySizeStart,c.virtualScrollStickySizeEnd),Y=t.value-1,pe=T.scrollMaxSize-T.offsetStart-T.offsetEnd-F.value;if(b===T.scrollStart)return;if(T.scrollMaxSize<=0){O(R,T,0,0);return}y!==T.scrollViewSize&&ae(T.scrollViewSize),te(K.value.from);const fe=Math.floor(T.scrollMaxSize-Math.max(T.scrollViewSize,T.offsetEnd)-Math.min(x[Y],T.scrollViewSize/2));if(fe>0&&Math.ceil(T.scrollStart)>=fe){O(R,T,Y,T.scrollMaxSize-T.offsetEnd-A.reduce(mr,0));return}let G=0,re=T.scrollStart-T.offsetStart,Ee=re;if(re<=pe&&re+T.scrollViewSize>=w.value)re-=w.value,G=K.value.from,Ee=re;else for(let X=0;re>=A[X]&&G<Y;X++)re-=A[X],G+=Dt;for(;re>0&&G<Y;)re-=x[G],re>-T.scrollViewSize?(G++,Ee=re):Ee=x[G]+re;O(R,T,G,Ee)}function O(R,T,Y,pe,fe){const G=typeof fe=="string"&&fe.indexOf("-force")!==-1,re=G===!0?fe.replace("-force",""):fe,Ee=re!==void 0?re:"start";let X=Math.max(0,Y-k.value[Ee]),qe=X+k.value.total;qe>t.value&&(qe=t.value,X=Math.max(0,qe-k.value.total)),b=T.scrollStart;const ut=X!==K.value.from||qe!==K.value.to;if(ut===!1&&re===void 0){se(Y);return}const{activeElement:Ut}=document,bt=L.value;ut===!0&&bt!==null&&bt!==Ut&&bt.contains(Ut)===!0&&(bt.addEventListener("focusout",$),setTimeout(()=>{bt!==null&&bt.removeEventListener("focusout",$)})),v0(bt,Y-X);const rt=re!==void 0?x.slice(X,Y).reduce(mr,0):0;if(ut===!0){const wt=qe>=K.value.from&&X<=K.value.to?K.value.to:qe;K.value={from:X,to:wt},w.value=zr(A,x,0,X),F.value=zr(A,x,qe,t.value),requestAnimationFrame(()=>{K.value.to!==qe&&b===T.scrollStart&&(K.value={from:K.value.from,to:qe},F.value=zr(A,x,qe,t.value))})}requestAnimationFrame(()=>{if(b!==T.scrollStart)return;ut===!0&&te(X);const wt=x.slice(X,Y).reduce(mr,0),nn=wt+T.offsetStart+w.value,ht=nn+x[Y];let yn=nn+pe;if(re!==void 0){const Hr=wt-rt,zt=T.scrollStart+Hr;yn=G!==!0&&zt<nn&&ht<zt+T.scrollViewSize?zt:re==="end"?ht-T.scrollViewSize:nn-(re==="start"?0:Math.round((T.scrollViewSize-x[Y])/2))}b=yn,lc(R,yn,c.virtualScrollHorizontal,v.lang.rtl),se(Y)})}function te(R){const T=L.value;if(T){const Y=ic.call(T.children,X=>X.classList&&X.classList.contains("q-virtual-scroll--skip")===!1),pe=Y.length,fe=c.virtualScrollHorizontal===!0?X=>X.getBoundingClientRect().width:X=>X.offsetHeight;let G=R,re,Ee;for(let X=0;X<pe;){for(re=fe(Y[X]),X++;X<pe&&Y[X].classList.contains("q-virtual-scroll--with-prev")===!0;)re+=fe(Y[X]),X++;Ee=re-x[G],Ee!==0&&(x[G]+=Ee,A[Math.floor(G/Dt)]+=Ee),G++}}}function $(){L.value!==null&&L.value!==void 0&&L.value.focus()}function le(R,T){const Y=1*s.value;(T===!0||Array.isArray(x)===!1)&&(x=[]);const pe=x.length;x.length=t.value;for(let G=t.value-1;G>=pe;G--)x[G]=Y;const fe=Math.floor((t.value-1)/Dt);A=[];for(let G=0;G<=fe;G++){let re=0;const Ee=Math.min((G+1)*Dt,t.value);for(let X=G*Dt;X<Ee;X++)re+=x[X];A.push(re)}m=-1,b=void 0,w.value=zr(A,x,0,K.value.from),F.value=zr(A,x,K.value.to,t.value),R>=0?(te(K.value.from),r.nextTick(()=>{U(R)})):Be()}function ae(R){if(R===void 0&&typeof window<"u"){const re=l();re!=null&&re.nodeType!==8&&(R=bl(re,i(),q.value,D.value,c.virtualScrollHorizontal,v.lang.rtl,c.virtualScrollStickySizeStart,c.virtualScrollStickySizeEnd).scrollViewSize)}y=R;const T=parseFloat(c.virtualScrollSliceRatioBefore)||0,Y=parseFloat(c.virtualScrollSliceRatioAfter)||0,pe=1+T+Y,fe=R===void 0||R<=0?1:Math.ceil(R/s.value),G=Math.max(1,fe,Math.ceil((c.virtualScrollSliceSize>0?c.virtualScrollSliceSize:10)/pe));k.value={total:Math.ceil(G*pe),start:Math.ceil(G*T),center:Math.ceil(G*(.5+T)),end:Math.ceil(G*(1+T)),view:fe}}function H(R,T){const Y=c.virtualScrollHorizontal===!0?"width":"height",pe={["--q-virtual-scroll-item-"+Y]:s.value+"px"};return[R==="tbody"?r.h(R,{class:"q-virtual-scroll__padding",key:"before",ref:q},[r.h("tr",[r.h("td",{style:{[Y]:`${w.value}px`,...pe},colspan:W.value})])]):r.h(R,{class:"q-virtual-scroll__padding",key:"before",ref:q,style:{[Y]:`${w.value}px`,...pe}}),r.h(R,{class:"q-virtual-scroll__content",key:"content",ref:L,tabindex:-1},T.flat()),R==="tbody"?r.h(R,{class:"q-virtual-scroll__padding",key:"after",ref:D},[r.h("tr",[r.h("td",{style:{[Y]:`${F.value}px`,...pe},colspan:W.value})])]):r.h(R,{class:"q-virtual-scroll__padding",key:"after",ref:D,style:{[Y]:`${F.value}px`,...pe}})]}function se(R){m!==R&&(c.onVirtualScroll!==void 0&&d("virtualScroll",{index:R,from:K.value.from,to:K.value.to-1,direction:R<m?"decrease":"increase",ref:h}),m=R)}ae();const Be=_s(Z,v.platform.is.ios===!0?120:35);r.onBeforeMount(()=>{ae()});let ge=!1;return r.onDeactivated(()=>{ge=!0}),r.onActivated(()=>{if(ge!==!0)return;const R=l();b!==void 0&&R!==void 0&&R!==null&&R.nodeType!==8?lc(R,b,c.virtualScrollHorizontal,v.lang.rtl):U(m)}),r.onBeforeUnmount(()=>{Be.cancel()}),Object.assign(h,{scrollTo:U,reset:ie,refresh:N}),{virtualScrollSliceRange:K,virtualScrollSliceSizeComputed:k,setVirtualScrollSize:ae,onVirtualScrollEvt:Be,localResetVirtualScroll:le,padVirtualScroll:H,scrollTo:U,reset:ie,refresh:N}}function uc(t,l,i){if(i<=l)return l;const s=i-l+1;let a=l+(t-l)%s;return a<l&&(a=s+a),a===0?0:a}const sc=t=>["add","add-unique","toggle"].includes(t),y0=".*+?^${}()|[]\\",b0=Object.keys(Io),cc=We({name:"QSelect",inheritAttrs:!1,props:{...ac,...Zi,...Io,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:sc},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:ac.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...el,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(t,{slots:l,emit:i}){const{proxy:s}=r.getCurrentInstance(),{$q:a}=s,c=r.ref(!1),d=r.ref(!1),h=r.ref(-1),v=r.ref(""),b=r.ref(!1),m=r.ref(!1);let y=null,A=null,x,w,F,k=null,q,D,L,K;const W=r.ref(null),Q=r.ref(null),j=r.ref(null),ie=r.ref(null),N=r.ref(null),U=is(t),Z=xs(Yo),O=r.computed(()=>Array.isArray(t.options)?t.options.length:0),te=r.computed(()=>t.virtualScrollItemSize===void 0?t.optionsDense===!0?24:48:t.virtualScrollItemSize),{virtualScrollSliceRange:$,virtualScrollSliceSizeComputed:le,localResetVirtualScroll:ae,padVirtualScroll:H,onVirtualScrollEvt:se,scrollTo:Be,setVirtualScrollSize:ge}=_0({virtualScrollLength:O,getVirtualScrollTarget:Qo,getVirtualScrollEl:Gr,virtualScrollItemSizeComputed:te}),R=tl(),T=r.computed(()=>{const S=t.mapOptions===!0&&t.multiple!==!0,ne=t.modelValue!==void 0&&(t.modelValue!==null||S===!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&&x!==void 0?x:[],ve=ne.map(Ie=>Wr(Ie,J));return t.modelValue===null&&S===!0?ve.filter(Ie=>Ie!==null):ve}return ne}),Y=r.computed(()=>{const S={};return b0.forEach(ne=>{const J=t[ne];J!==void 0&&(S[ne]=J)}),S}),pe=r.computed(()=>t.optionsDark===null?R.isDark.value:t.optionsDark),fe=r.computed(()=>Nr(T.value)),G=r.computed(()=>{let S="q-field__input q-placeholder col";return t.hideSelected===!0||T.value.length===0?[S,t.inputClass]:(S+=" q-field__input--padding",t.inputClass===void 0?S:[S,t.inputClass])}),re=r.computed(()=>(t.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(t.popupContentClass?" "+t.popupContentClass:"")),Ee=r.computed(()=>O.value===0),X=r.computed(()=>T.value.map(S=>Qe.value(S)).join(", ")),qe=r.computed(()=>t.displayValue!==void 0?t.displayValue:X.value),ut=r.computed(()=>t.optionsHtml===!0?()=>!0:S=>S!=null&&S.html===!0),Ut=r.computed(()=>t.displayValueHtml===!0||t.displayValue===void 0&&(t.optionsHtml===!0||T.value.some(ut.value))),bt=r.computed(()=>R.focused.value===!0?t.tabindex:-1),rt=r.computed(()=>{const S={tabindex:t.tabindex,role:"combobox","aria-label":t.label,"aria-readonly":t.readonly===!0?"true":"false","aria-autocomplete":t.useInput===!0?"list":"none","aria-expanded":c.value===!0?"true":"false","aria-controls":`${R.targetUid.value}_lb`};return h.value>=0&&(S["aria-activedescendant"]=`${R.targetUid.value}_${h.value}`),S}),wt=r.computed(()=>({id:`${R.targetUid.value}_lb`,role:"listbox","aria-multiselectable":t.multiple===!0?"true":"false"})),nn=r.computed(()=>T.value.map((S,ne)=>({index:ne,opt:S,html:ut.value(S),selected:!0,removeAtIndex:bn,toggleOption:Wt,tabindex:bt.value}))),ht=r.computed(()=>{if(O.value===0)return[];const{from:S,to:ne}=$.value;return t.options.slice(S,ne).map((J,ve)=>{const Ie=Ht.value(J)===!0,Te=Gn(J)===!0,Ke=S+ve,Ve={clickable:!0,active:Te,activeClass:zt.value,manualFocus:!0,focused:!1,disable:Ie,tabindex:-1,dense:t.optionsDense,dark:pe.value,role:"option","aria-selected":Te===!0?"true":"false",id:`${R.targetUid.value}_${Ke}`,onClick:()=>{Wt(J)}};return Ie!==!0&&(h.value===Ke&&(Ve.focused=!0),a.platform.is.desktop===!0&&(Ve.onMousemove=()=>{c.value===!0&&Yt(Ke)})),{index:Ke,opt:J,html:ut.value(J),label:Qe.value(J),selected:Ve.active,focused:Ve.focused,toggleOption:Wt,setOptionIndex:Yt,itemProps:Ve}})}),yn=r.computed(()=>t.dropdownIcon!==void 0?t.dropdownIcon:a.iconSet.arrow.dropdown),Hr=r.computed(()=>t.optionsCover===!1&&t.outlined!==!0&&t.standout!==!0&&t.borderless!==!0&&t.rounded!==!0),zt=r.computed(()=>t.optionsSelectedClass!==void 0?t.optionsSelectedClass:t.color!==void 0?`text-${t.color}`:""),De=r.computed(()=>Wn(t.optionValue,"value")),Qe=r.computed(()=>Wn(t.optionLabel,"label")),Ht=r.computed(()=>Wn(t.optionDisable,"disable")),gr=r.computed(()=>T.value.map(S=>De.value(S))),Hn=r.computed(()=>{const S={onInput:Yo,onChange:Z,onKeydown:Ko,onKeyup:Go,onKeypress:jo,onFocus:vr,onClick(ne){w===!0&&Zt(ne)}};return S.onCompositionstart=S.onCompositionupdate=S.onCompositionend=Z,S});r.watch(T,S=>{x=S,t.useInput===!0&&t.fillInput===!0&&t.multiple!==!0&&R.innerLoading.value!==!0&&(d.value!==!0&&c.value!==!0||fe.value!==!0)&&(F!==!0&&ln(),(d.value===!0||c.value===!0)&&Sn(""))},{immediate:!0}),r.watch(()=>t.fillInput,ln),r.watch(c,Qr),r.watch(O,Il);function Wo(S){return t.emitValue===!0?De.value(S):S}function rn(S){if(S!==-1&&S<T.value.length)if(t.multiple===!0){const ne=t.modelValue.slice();i("remove",{index:S,value:ne.splice(S,1)[0]}),i("update:modelValue",ne)}else i("update:modelValue",null)}function bn(S){rn(S),R.focus()}function pr(S,ne){const J=Wo(S);if(t.multiple!==!0){t.fillInput===!0&&Kn(Qe.value(S),!0,!0),i("update:modelValue",J);return}if(T.value.length===0){i("add",{index:0,value:J}),i("update:modelValue",t.multiple===!0?[J]:J);return}if(ne===!0&&Gn(S)===!0||t.maxValues!==void 0&&t.modelValue.length>=t.maxValues)return;const ve=t.modelValue.slice();i("add",{index:ve.length,value:J}),ve.push(J),i("update:modelValue",ve)}function Wt(S,ne){if(R.editable.value!==!0||S===void 0||Ht.value(S)===!0)return;const J=De.value(S);if(t.multiple!==!0){ne!==!0&&(Kn(t.fillInput===!0?Qe.value(S):"",!0,!0),on()),Q.value!==null&&Q.value.focus(),(T.value.length===0||tn(De.value(T.value[0]),J)!==!0)&&i("update:modelValue",t.emitValue===!0?J:S);return}if((w!==!0||b.value===!0)&&R.focus(),vr(),T.value.length===0){const Te=t.emitValue===!0?J:S;i("add",{index:0,value:Te}),i("update:modelValue",t.multiple===!0?[Te]:Te);return}const ve=t.modelValue.slice(),Ie=gr.value.findIndex(Te=>tn(Te,J));if(Ie!==-1)i("remove",{index:Ie,value:ve.splice(Ie,1)[0]});else{if(t.maxValues!==void 0&&ve.length>=t.maxValues)return;const Te=t.emitValue===!0?J:S;i("add",{index:ve.length,value:Te}),ve.push(Te)}i("update:modelValue",ve)}function Yt(S){if(a.platform.is.desktop!==!0)return;const ne=S!==-1&&S<O.value?S:-1;h.value!==ne&&(h.value=ne)}function wn(S=1,ne){if(c.value===!0){let J=h.value;do J=uc(J+S,-1,O.value-1);while(J!==-1&&J!==h.value&&Ht.value(t.options[J])===!0);h.value!==J&&(Yt(J),Be(J),ne!==!0&&t.useInput===!0&&t.fillInput===!0&&jn(J>=0?Qe.value(t.options[J]):q,!0))}}function Wr(S,ne){const J=ve=>tn(De.value(ve),S);return t.options.find(J)||ne.find(J)||S}function Wn(S,ne){const J=S!==void 0?S:ne;return typeof J=="function"?J:ve=>ve!==null&&typeof ve=="object"&&J in ve?ve[J]:ve}function Gn(S){const ne=De.value(S);return gr.value.find(J=>tn(J,ne))!==void 0}function vr(S){t.useInput===!0&&Q.value!==null&&(S===void 0||Q.value===S.target&&S.target.value===X.value)&&Q.value.select()}function _r(S){qn(S,27)===!0&&c.value===!0&&(Zt(S),on(),ln()),i("keyup",S)}function Go(S){const{value:ne}=S.target;if(S.keyCode!==void 0){_r(S);return}if(S.target.value="",y!==null&&(clearTimeout(y),y=null),A!==null&&(clearTimeout(A),A=null),ln(),typeof ne=="string"&&ne.length!==0){const J=ne.toLocaleLowerCase(),ve=Te=>{const Ke=t.options.find(Ve=>Te.value(Ve).toLocaleLowerCase()===J);return Ke===void 0?!1:(T.value.indexOf(Ke)===-1?Wt(Ke):on(),!0)},Ie=Te=>{ve(De)!==!0&&(ve(Qe)===!0||Te===!0||Sn(ne,!0,()=>Ie(!0)))};Ie()}else R.clearValue(S)}function jo(S){i("keypress",S)}function Ko(S){if(i("keydown",S),rl(S)===!0)return;const ne=v.value.length!==0&&(t.newValueMode!==void 0||t.onNewValue!==void 0),J=S.shiftKey!==!0&&t.multiple!==!0&&(h.value!==-1||ne===!0);if(S.keyCode===27){$t(S);return}if(S.keyCode===9&&J===!1){Cn();return}if(S.target===void 0||S.target.id!==R.targetUid.value||R.editable.value!==!0)return;if(S.keyCode===40&&R.innerLoading.value!==!0&&c.value===!1){Ge(S),xn();return}if(S.keyCode===8&&(t.useChips===!0||t.clearable===!0)&&t.hideSelected!==!0&&v.value.length===0){t.multiple===!0&&Array.isArray(t.modelValue)===!0?rn(t.modelValue.length-1):t.multiple!==!0&&t.modelValue!==null&&i("update:modelValue",null);return}(S.keyCode===35||S.keyCode===36)&&(typeof v.value!="string"||v.value.length===0)&&(Ge(S),h.value=-1,wn(S.keyCode===36?1:-1,t.multiple)),(S.keyCode===33||S.keyCode===34)&&le.value!==void 0&&(Ge(S),h.value=Math.max(-1,Math.min(O.value,h.value+(S.keyCode===33?-1:1)*le.value.view)),wn(S.keyCode===33?1:-1,t.multiple)),(S.keyCode===38||S.keyCode===40)&&(Ge(S),wn(S.keyCode===38?-1:1,t.multiple));const ve=O.value;if((L===void 0||K<Date.now())&&(L=""),ve>0&&t.useInput!==!0&&S.key!==void 0&&S.key.length===1&&S.altKey===!1&&S.ctrlKey===!1&&S.metaKey===!1&&(S.keyCode!==32||L.length!==0)){c.value!==!0&&xn(S);const Ie=S.key.toLocaleLowerCase(),Te=L.length===1&&L[0]===Ie;K=Date.now()+1500,Te===!1&&(Ge(S),L+=Ie);const Ke=new RegExp("^"+L.split("").map(yr=>y0.indexOf(yr)!==-1?"\\"+yr:yr).join(".*"),"i");let Ve=h.value;if(Te===!0||Ve<0||Ke.test(Qe.value(t.options[Ve]))!==!0)do Ve=uc(Ve+1,-1,ve-1);while(Ve!==h.value&&(Ht.value(t.options[Ve])===!0||Ke.test(Qe.value(t.options[Ve]))!==!0));h.value!==Ve&&r.nextTick(()=>{Yt(Ve),Be(Ve),Ve>=0&&t.useInput===!0&&t.fillInput===!0&&jn(Qe.value(t.options[Ve]),!0)});return}if(!(S.keyCode!==13&&(S.keyCode!==32||t.useInput===!0||L!=="")&&(S.keyCode!==9||J===!1))){if(S.keyCode!==9&&Ge(S),h.value!==-1&&h.value<ve){Wt(t.options[h.value]);return}if(ne===!0){const Ie=(Te,Ke)=>{if(Ke){if(sc(Ke)!==!0)return}else Ke=t.newValueMode;if(Kn("",t.multiple!==!0,!0),Te==null)return;(Ke==="toggle"?Wt:pr)(Te,Ke==="add-unique"),t.multiple!==!0&&(Q.value!==null&&Q.value.focus(),on())};if(t.onNewValue!==void 0?i("newValue",v.value,Ie):Ie(v.value),t.multiple!==!0)return}c.value===!0?Cn():R.innerLoading.value!==!0&&xn()}}function Gr(){return w===!0?N.value:j.value!==null&&j.value.contentEl!==null?j.value.contentEl:void 0}function Qo(){return Gr()}function Cl(){return t.hideSelected===!0?[]:l["selected-item"]!==void 0?nn.value.map(S=>l["selected-item"](S)).slice():l.selected!==void 0?[].concat(l.selected()):t.useChips===!0?nn.value.map((S,ne)=>r.h(qm,{key:"option-"+ne,removable:R.editable.value===!0&&Ht.value(S.opt)!==!0,dense:!0,textColor:t.color,tabindex:bt.value,onRemove(){S.removeAtIndex(ne)}},()=>r.h("span",{class:"ellipsis",[S.html===!0?"innerHTML":"textContent"]:Qe.value(S.opt)}))):[r.h("span",{[Ut.value===!0?"innerHTML":"textContent"]:qe.value})]}function Zo(){if(Ee.value===!0)return l["no-option"]!==void 0?l["no-option"]({inputValue:v.value}):void 0;const S=l.option!==void 0?l.option:J=>r.h($m,{key:J.index,...J.itemProps},()=>r.h(Dm,()=>r.h(Um,()=>r.h("span",{[J.html===!0?"innerHTML":"textContent"]:J.label}))));let ne=H("div",ht.value.map(S));return l["before-options"]!==void 0&&(ne=l["before-options"]().concat(ne)),Ln(l["after-options"],ne)}function xl(S,ne){const J=ne===!0?{...rt.value,...R.splitAttrs.attributes.value}:void 0,ve={ref:ne===!0?Q:void 0,key:"i_t",class:G.value,style:t.inputStyle,value:v.value!==void 0?v.value:"",type:"search",...J,id:ne===!0?R.targetUid.value:void 0,maxlength:t.maxlength,autocomplete:t.autocomplete,"data-autofocus":S===!0||t.autofocus===!0||void 0,disabled:t.disable===!0,readonly:t.readonly===!0,...Hn.value};return S!==!0&&w===!0&&(Array.isArray(ve.class)===!0?ve.class=[...ve.class,"no-pointer-events"]:ve.class+=" no-pointer-events"),r.h("input",ve)}function Yo(S){y!==null&&(clearTimeout(y),y=null),A!==null&&(clearTimeout(A),A=null),!(S&&S.target&&S.target.qComposing===!0)&&(jn(S.target.value||""),F=!0,q=v.value,R.focused.value!==!0&&(w!==!0||b.value===!0)&&R.focus(),t.onFilter!==void 0&&(y=setTimeout(()=>{y=null,Sn(v.value)},t.inputDebounce)))}function jn(S,ne){v.value!==S&&(v.value=S,ne===!0||t.inputDebounce===0||t.inputDebounce==="0"?i("inputValue",S):A=setTimeout(()=>{A=null,i("inputValue",S)},t.inputDebounce))}function Kn(S,ne,J){F=J!==!0,t.useInput===!0&&(jn(S,!0),(ne===!0||J!==!0)&&(q=S),ne!==!0&&Sn(S))}function Sn(S,ne,J){if(t.onFilter===void 0||ne!==!0&&R.focused.value!==!0)return;R.innerLoading.value===!0?i("filterAbort"):(R.innerLoading.value=!0,m.value=!0),S!==""&&t.multiple!==!0&&T.value.length!==0&&F!==!0&&S===Qe.value(T.value[0])&&(S="");const ve=setTimeout(()=>{c.value===!0&&(c.value=!1)},10);k!==null&&clearTimeout(k),k=ve,i("filter",S,(Ie,Te)=>{(ne===!0||R.focused.value===!0)&&k===ve&&(clearTimeout(k),typeof Ie=="function"&&Ie(),m.value=!1,r.nextTick(()=>{R.innerLoading.value=!1,R.editable.value===!0&&(ne===!0?c.value===!0&&on():c.value===!0?Qr(!0):c.value=!0),typeof Te=="function"&&r.nextTick(()=>{Te(s)}),typeof J=="function"&&r.nextTick(()=>{J(s)})}))},()=>{R.focused.value===!0&&k===ve&&(clearTimeout(k),R.innerLoading.value=!1,m.value=!1),c.value===!0&&(c.value=!1)})}function Al(){return r.h(u0,{ref:j,class:re.value,style:t.popupContentStyle,modelValue:c.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:pe.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:t.popupNoRouteDismiss,square:Hr.value,transitionShow:t.transitionShow,transitionHide:t.transitionHide,transitionDuration:t.transitionDuration,separateClosePopup:!0,...wt.value,onScrollPassive:se,onBeforeShow:Jo,onBeforeHide:jr,onShow:El},Zo)}function jr(S){ei(S),Cn()}function El(){ge()}function Kr(S){Zt(S),Q.value!==null&&Q.value.focus(),b.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function kl(S){Zt(S),r.nextTick(()=>{b.value=!1})}function Bl(){const S=[r.h(Vm,{class:`col-auto ${R.fieldClass.value}`,...Y.value,for:R.targetUid.value,dark:pe.value,square:!0,loading:m.value,itemAligned:!1,filled:!0,stackLabel:v.value.length!==0,...R.splitAttrs.listeners.value,onFocus:Kr,onBlur:kl},{...l,rawControl:()=>R.getControl(!0),before:void 0,after:void 0})];return c.value===!0&&S.push(r.h("div",{ref:N,class:re.value+" scroll",style:t.popupContentStyle,...wt.value,onClick:$t,onScrollPassive:se},Zo())),r.h(g0,{ref:ie,modelValue:d.value,position:t.useInput===!0?"top":void 0,transitionShow:D,transitionHide:t.transitionHide,transitionDuration:t.transitionDuration,noRouteDismiss:t.popupNoRouteDismiss,onBeforeShow:Jo,onBeforeHide:Ol,onHide:Tl,onShow:Rl},()=>r.h("div",{class:"q-select__dialog"+(pe.value===!0?" q-select__dialog--dark q-dark":"")+(b.value===!0?" q-select__dialog--focused":"")},S))}function Ol(S){ei(S),ie.value!==null&&ie.value.__updateRefocusTarget(R.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),R.focused.value=!1}function Tl(S){on(),R.focused.value===!1&&i("blur",S),ln()}function Rl(){const S=document.activeElement;(S===null||S.id!==R.targetUid.value)&&Q.value!==null&&Q.value!==S&&Q.value.focus(),ge()}function Cn(){d.value!==!0&&(h.value=-1,c.value===!0&&(c.value=!1),R.focused.value===!1&&(k!==null&&(clearTimeout(k),k=null),R.innerLoading.value===!0&&(i("filterAbort"),R.innerLoading.value=!1,m.value=!1)))}function xn(S){R.editable.value===!0&&(w===!0?(R.onControlFocusin(S),d.value=!0,r.nextTick(()=>{R.focus()})):R.focus(),t.onFilter!==void 0?Sn(v.value):(Ee.value!==!0||l["no-option"]!==void 0)&&(c.value=!0))}function on(){d.value=!1,Cn()}function ln(){t.useInput===!0&&Kn(t.multiple!==!0&&t.fillInput===!0&&T.value.length!==0&&Qe.value(T.value[0])||"",!0,!0)}function Qr(S){let ne=-1;if(S===!0){if(T.value.length!==0){const J=De.value(T.value[0]);ne=t.options.findIndex(ve=>tn(De.value(ve),J))}ae(ne)}Yt(ne)}function Il(S,ne){c.value===!0&&R.innerLoading.value===!1&&(ae(-1,!0),r.nextTick(()=>{c.value===!0&&R.innerLoading.value===!1&&(S>ne?ae():Qr(!0))}))}function Xo(){d.value===!1&&j.value!==null&&j.value.updatePosition()}function Jo(S){S!==void 0&&Zt(S),i("popupShow",S),R.hasPopupOpen=!0,R.onControlFocusin(S)}function ei(S){S!==void 0&&Zt(S),i("popupHide",S),R.hasPopupOpen=!1,R.onControlFocusout(S)}function ti(){w=a.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),D=a.platform.is.ios===!0&&w===!0&&t.useInput===!0?"fade":t.transitionShow}return r.onBeforeUpdate(ti),r.onUpdated(Xo),ti(),r.onBeforeUnmount(()=>{y!==null&&clearTimeout(y),A!==null&&clearTimeout(A)}),Object.assign(s,{showPopup:xn,hidePopup:on,removeAtIndex:rn,add:pr,toggleOption:Wt,getOptionIndex:()=>h.value,setOptionIndex:Yt,moveOptionSelection:wn,filter:Sn,updateMenuPosition:Xo,updateInputValue:Kn,isOptionSelected:Gn,getEmittingOptionValue:Wo,isOptionDisabled:(...S)=>Ht.value.apply(null,S)===!0,getOptionValue:(...S)=>De.value.apply(null,S),getOptionLabel:(...S)=>Qe.value.apply(null,S)}),Object.assign(R,{innerValue:T,fieldClass:r.computed(()=>`q-select q-field--auto-height q-select--with${t.useInput!==!0?"out":""}-input q-select--with${t.useChips!==!0?"out":""}-chips q-select--${t.multiple===!0?"multiple":"single"}`),inputRef:W,targetRef:Q,hasValue:fe,showPopup:xn,floatingLabel:r.computed(()=>t.hideSelected!==!0&&fe.value===!0||typeof v.value=="number"||v.value.length!==0||Nr(t.displayValue)),getControlChild:()=>{if(R.editable.value!==!1&&(d.value===!0||Ee.value!==!0||l["no-option"]!==void 0))return w===!0?Bl():Al();R.hasPopupOpen===!0&&(R.hasPopupOpen=!1)},controlEvents:{onFocusin(S){R.onControlFocusin(S)},onFocusout(S){R.onControlFocusout(S,()=>{ln(),Cn()})},onClick(S){if($t(S),w!==!0&&c.value===!0){Cn(),Q.value!==null&&Q.value.focus();return}xn(S)}},getControl:S=>{const ne=Cl(),J=S===!0||d.value!==!0||w!==!0;if(t.useInput===!0)ne.push(xl(S,J));else if(R.editable.value===!0){const Ie=J===!0?rt.value:void 0;ne.push(r.h("input",{ref:J===!0?Q:void 0,key:"d_t",class:"q-select__focus-target",id:J===!0?R.targetUid.value:void 0,value:qe.value,readonly:!0,"data-autofocus":S===!0||t.autofocus===!0||void 0,...Ie,onKeydown:Ko,onKeyup:_r,onKeypress:jo})),J===!0&&typeof t.autocomplete=="string"&&t.autocomplete.length!==0&&ne.push(r.h("input",{class:"q-select__autocomplete-input",autocomplete:t.autocomplete,tabindex:-1,onKeyup:Go}))}if(U.value!==void 0&&t.disable!==!0&&gr.value.length!==0){const Ie=gr.value.map(Te=>r.h("option",{value:Te,selected:!0}));ne.push(r.h("select",{class:"hidden",name:U.value,multiple:t.multiple},Ie))}const ve=t.useInput===!0||J!==!0?void 0:R.splitAttrs.attributes.value;return r.h("div",{class:"q-field__native row items-center",...ve,...R.splitAttrs.listeners.value},ne)},getInnerAppend:()=>t.loading!==!0&&m.value!==!0&&t.hideDropdownIcon!==!0?[r.h(yt,{class:"q-select__dropdown-icon"+(c.value===!0?" rotate-180":""),name:yn.value})]:null}),nl(R)}}),w0=Xe(r.defineComponent({__name:"SelectControl",props:r.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=r.ref([]),i=r.useModel(t,"modelValue"),s=t,a=r.ref(!1),c=r.computed(()=>s.control.customParams),d=r.ref([]),h=r.computed(()=>{var y;return((y=c.value)==null?void 0:y.collection)||null}),v=r.computed(()=>h.value?d.value:s.control.options),b=sr();r.watch(h,y=>{if(!y)return;const A=b.getCollection(h.value);if(A){d.value=A;return}a.value=!0},{immediate:!0});function m(y,A){if(y===""){A(()=>{l.value=Pe.cloneDeep(v.value)});return}A(()=>{const x=y.toLowerCase();l.value=(v.value||[]).filter(w=>w.toLowerCase().includes(x))})}return(y,A)=>{const x=r.resolveComponent("ControlLabel");return r.openBlock(),r.createElementBlock(r.Fragment,null,[y.control.label?(r.openBlock(),r.createBlock(x,{key:0,label:y.control.label},null,8,["label"])):r.createCommentVNode("",!0),r.createVNode(ko,{class:"q-card win-card row items-center q-px-md"},{default:r.withCtx(()=>[r.createVNode(cc,{borderless:"",label:y.control.label,modelValue:i.value,"onUpdate:modelValue":A[0]||(A[0]=w=>i.value=w),"emit-value":"","option-label":"label","map-options":"","use-input":"",clearable:"",onFilter:m,options:l.value,style:{minHeight:"70px",width:"300px",margin:"auto"}},null,8,["label","modelValue","options"])]),_:1})],64)}}}),[["__scopeId","data-v-fa1749f7"]]),S0={class:"text-center",style:{width:"100%"}},C0={class:"text-center text-weight-medium"},x0={class:"question-title"},A0=r.defineComponent({__name:"StepHeader",props:{formGroup:{},stepsCount:{}},setup(t){return(l,i)=>(r.openBlock(),r.createElementBlock("div",S0,[r.createElementVNode("div",C0,r.toDisplayString(l.formGroup.order+1)+"/"+r.toDisplayString(l.stepsCount),1),r.createElementVNode("div",x0,r.toDisplayString(l.formGroup.title||""),1)]))}});function fc(){return r.inject(Nh)}function dc(t,l){const{maxControlsPerGroup:i,notifyValidations:s}={...Hd,...l||{}},a=sr(),c=r.computed(()=>a.formSteps[t]),d=r.ref([]),h=r.ref([]),v=(x,w)=>{a.setControlValue(t,x);const F=d.value.find(D=>D.id===w);F&&(h.value=Gd(F));const k=m(x),q=y(x);(k||q)&&b()};function b(){const x=c.value.controls,w=[];Zd(x).forEach(k=>{const q=k.controls;if(q.every(L=>!zi.includes(L.controlType))){w.push(k);return}let D={...k,controls:[]};for(const L of q)if(zi.includes(L.controlType)){w.push(D),D={...D,controls:[]};const K=Kd(k,L,i);w.push(...K)}else D.controls.push(L)}),d.value=Pe.orderBy(w,"order").map(k=>({...k,id:k.controls.map(q=>q.id).join("-")})).filter(k=>k.controls.some(q=>q.visible)).map((k,q)=>({...k,order:q,controls:k.controls.filter(D=>D.visible)}))}function m({id:x,value:w}){let F=!1;const q=c.value.controls.filter(D=>{var L;return((L=D.conditions)==null?void 0:L.some(K=>K.id===x))||!1});if(q!=null&&q.length)return q.forEach(({id:D,conditions:L,visible:K})=>{const W=L.every(Q=>{const{value:j,operator:ie}=Q;return{"==":w===j,"!=":w!==j,">":w>j,"<":w<j}[ie]||!1});K!==W&&(a.setControlVisibility(t,D,W),F=!0)}),F}function y({id:x,value:w}){const F=Number(w||0);let k=!1;const D=c.value.controls.filter(L=>{var K;return L.controlType==="dynamic_array"&&((K=L.itemsLength)==null?void 0:K.controlId)===x});if(D!=null&&D.length)return D.forEach(({id:L,itemsLength:K})=>{(K==null?void 0:K.value)!==F&&(a.setControlItemsLength(t,L,F),k=!0)}),k}const{notify:A}=fc();return r.watch(h,x=>{x.length&&(s&&A({message:x[0],color:"negative",position:"bottom",timeout:5e3,actions:[{label:"✕",color:"white"}]}),h.value=[])},{deep:!0}),r.watch(c,()=>{b()},{immediate:!0}),{model:d,errorMessages:h,rebuildModel:b,onControlValueUpdate:v}}const E0={key:0,style:{height:"100%"}},k0={class:"q-py-sm"},B0={class:"form-steps-container"},O0={class:"row justify-center items-center",style:{height:"100%",width:"100vw"}},T0={class:"controls-container",style:{height:"100%"}},R0={class:"form-container flex column items-center q-px-md",style:{width:"100vw"}},I0=Xe(r.defineComponent({__name:"MultipleFormGroups",props:{index:{}},setup(t){const l=t,i=sr(),{model:s,onControlValueUpdate:a}=dc(l.index),c=r.computed(()=>s.value.length),d=r.ref(0),h=r.computed(()=>s.value[d.value]),v=m=>{const y=Pe.toPairs(Pe.groupBy(m,"row"));return Pe.orderBy(y,([A,x])=>Number(A),"asc").map(([A,x])=>({controls:Pe.orderBy(x,"col","asc")}))};r.watch(d,m=>{const y=m+1===c.value;i.setOnLastSubstep(y)},{immediate:!0});function b(m){return{input_text:ol,input_number:ol,checkbox:fs,switch:Fh,select:w0,cards_select:Ah}[m]||ol}return(m,y)=>h.value?(r.openBlock(),r.createElementBlock("div",E0,[r.createElementVNode("div",k0,[r.createVNode(A0,{formGroup:h.value,stepsCount:c.value},null,8,["formGroup","stepsCount"])]),r.createElementVNode("div",B0,[r.createElementVNode("div",O0,[r.createElementVNode("div",T0,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(s),A=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:A.id},[d.value===A.order?(r.openBlock(),r.createBlock(lh,{key:0,transition:"slide-left",style:{height:"75%",width:"100vw"},class:"row q-py-xs justify-center items-center bg-grey-1"},{default:r.withCtx(()=>[r.createElementVNode("div",R0,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(v(A.controls),(x,w)=>(r.openBlock(),r.createElementBlock("div",{class:"q-mb-xl",key:w},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(x.controls,(F,k)=>(r.openBlock(),r.createElementBlock("div",{key:k},[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(b(F.controlType)),{control:F,modelValue:x.controls[k].value,"onUpdate:modelValue":[q=>x.controls[k].value=q,q=>r.unref(a)(F,A.id)]},null,8,["control","modelValue","onUpdate:modelValue"]))]))),128))]))),128))])]),_:2},1024)):r.createCommentVNode("",!0)],64))),128)),r.createVNode(Pm,{currentStep:d.value,stepsCount:c.value,nextDisabled:!h.value.valid,onPrev:y[0]||(y[0]=A=>d.value--),onNext:y[1]||(y[1]=A=>h.value.valid&&d.value++)},null,8,["currentStep","stepsCount","nextDisabled"])])])])])):r.createCommentVNode("",!0)}}),[["__scopeId","data-v-2d9dca33"]]),F0={style:{"font-size":"16px","padding-top":"1rem"}},M0={style:{"font-size":"16px","padding-top":"1rem"}},wl=Xe(r.defineComponent({__name:"SimpleInput",props:r.mergeModels({control:{},rules:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=r.useModel(t,"modelValue"),i=t,s=r.computed(()=>{var a;return(a=i.control.controlType)==null?void 0:a.split("_")[1]});return(a,c)=>(r.openBlock(),r.createBlock(ko,{class:"q-px-md win-card"},{default:r.withCtx(()=>[r.createVNode(As,{borderless:"","reverse-fill-mask":"",modelValue:l.value,"onUpdate:modelValue":c[0]||(c[0]=d=>l.value=d),label:a.control.label,mask:s.value==="number"?"###.###.###.###.###":void 0,"input-class":{"text-right":s.value==="number"},"input-style":{fontSize:"16px"},rules:a.rules},r.createSlots({_:2},[a.control.prefix?{name:"prepend",fn:r.withCtx(()=>[r.createElementVNode("span",F0,r.toDisplayString(a.control.prefix),1)]),key:"0"}:void 0,a.control.suffix?{name:"append",fn:r.withCtx(()=>[r.createElementVNode("span",M0,r.toDisplayString(a.control.suffix),1)]),key:"1"}:void 0]),1032,["modelValue","label","mask","input-class","rules"])]),_:1}))}}),[["__scopeId","data-v-bd5dfdca"]]),hc=r.defineComponent({__name:"SimpleSelect",props:r.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=r.useModel(t,"modelValue");return(i,s)=>(r.openBlock(),r.createBlock(ko,{class:"q-px-md win-card"},{default:r.withCtx(()=>[r.createVNode(cc,{borderless:"",label:i.control.label,options:i.control.options,modelValue:l.value,"onUpdate:modelValue":s[0]||(s[0]=a=>l.value=a),"emit-value":"","option-label":"label","map-options":""},null,8,["label","options","modelValue"])]),_:1}))}}),L0={key:0,style:{height:"100%"}},P0={class:"question-title text-center q-py-sm"},V0={class:"form-steps-container bg-grey-1"},N0={class:"form-container",style:{height:"100%"}},q0={class:"row items-center"},$0={class:"col-12 row"},D0=Xe(r.defineComponent({__name:"SingleFormGroup",props:{index:{}},setup(t){const l=t,{model:i,onControlValueUpdate:s}=dc(l.index,{notifyValidations:!1});function a(v){return{input_text:wl,input_number:wl,select:hc,cards_select:hc,checkbox:fs}[v]||wl}const c=v=>Pe.orderBy(Pe.toPairs(Pe.groupBy(v,"row")),"row").map(([b,m])=>({controls:Pe.orderBy(m,"col")}));function d(v){return[b=>{var y;let m="";return(y=v.validators)==null||y.some(A=>{const{param:x,validator:w}=A,F=$u[w];return F.fn(Number(x))({...v,value:b})?!1:(m=F.message,!0)}),!m.length||m}]}const h=sr();return r.onMounted(()=>h.setOnLastSubstep(!0)),(v,b)=>r.unref(i)?(r.openBlock(),r.createElementBlock("div",L0,[r.createElementVNode("div",P0,r.toDisplayString(r.unref(i)[0].title),1),r.createElementVNode("div",V0,[r.createElementVNode("div",N0,[r.createElementVNode("div",q0,[r.createElementVNode("div",$0,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c(r.unref(i)[0].controls),(m,y)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(c(r.unref(i)[0].controls).length>1?"col-md-6 col-12":"col-12"),key:y},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(m.controls,(A,x)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(`col-xs-12 col-sm q-pa-xs ${c(r.unref(i)[0].controls).length>1?"col-md-6 col-12":"col-12"}`),key:x},[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(a(A.controlType)),{control:A,modelValue:A.value,"onUpdate:modelValue":[w=>A.value=w,w=>r.unref(s)(A,r.unref(i)[0].id)],rules:d(A)},null,8,["control","modelValue","onUpdate:modelValue","rules"]))],2))),128))],2))),128))])])])])])):r.createCommentVNode("",!0)}}),[["__scopeId","data-v-a8cd1002"]]),Sl=t=>(r.pushScopeId("data-v-ea1ef607"),t=t(),r.popScopeId(),t),U0={class:"buttons-container"},z0={class:"max-container"},H0={key:0,class:"row checkbox justify-end q-my-sm"},W0={style:{"max-width":"650px"}},G0=Sl(()=>r.createElementVNode("br",{class:"gt-sm"},null,-1)),j0={class:"row justify-between q-my-md q-px-md q-pb-xl"},K0=Sl(()=>r.createElementVNode("span",{class:"text-black"},"Atrás",-1)),Q0={key:1},Z0={key:0,class:"text-black"},Y0=Sl(()=>r.createElementVNode("span",{class:"gt-sm"},"formulario",-1)),X0={key:1,class:"text-black"},J0=Xe(r.defineComponent({__name:"StepsNavigationButtons",emits:["submit"],setup(t,{emit:l}){const{nextStep:i,previousStep:s,currentStep:a,stepsCount:c,nextDisabled:d,onLastSubstep:h}=r.toRefs(sr()),v=l,b=r.ref(!1),m=A=>{},y=()=>{a.value===c.value?v("submit"):i.value()};return(A,x)=>(r.openBlock(),r.createElementBlock("div",U0,[r.createElementVNode("div",z0,[r.unref(a)===r.unref(c)?(r.openBlock(),r.createElementBlock("div",H0,[r.createElementVNode("div",W0,[r.createVNode(cs,{color:"info",class:"checkbox",modelValue:b.value,"onUpdate:modelValue":x[1]||(x[1]=w=>b.value=w)},{default:r.withCtx(()=>[r.createElementVNode("div",null,[r.createTextVNode(" He leído, comprendo y acepto los términos de tratamiento de datos "),G0,r.createTextVNode(" personales para esta solicitud. Más info. sobre la protección de datos "),r.createElementVNode("span",{style:{"text-decoration":"underline"},onClick:x[0]||(x[0]=w=>m())},"aquí"),r.createTextVNode(". ")])]),_:1},8,["modelValue"])])])):r.createCommentVNode("",!0),r.createElementVNode("div",j0,[r.unref(a)>1?(r.openBlock(),r.createBlock(Tt,{key:0,color:"info",class:"q-px-xl q-py-sm q-mr-sm win-btn win-btn-primary bg-white",onClick:r.unref(s),flat:"","no-caps":""},{default:r.withCtx(()=>[K0]),_:1},8,["onClick"])):(r.openBlock(),r.createElementBlock("div",Q0)),r.createElementVNode("div",null,[!r.unref(d)&&r.unref(h)?(r.openBlock(),r.createBlock(Tt,{key:0,color:"green",class:"q-px-xl q-py-sm q-ml-sm win-btn win-btn-primary bg-white",onClick:y,disable:r.unref(a)===r.unref(c)&&!b.value,flat:"","no-caps":""},{default:r.withCtx(()=>[r.unref(a)===r.unref(c)?(r.openBlock(),r.createElementBlock("span",Z0,[r.createTextVNode(" Enviar "),Y0])):(r.openBlock(),r.createElementBlock("span",X0," Siguiente "))]),_:1},8,["disable"])):r.createCommentVNode("",!0)])])])]))}}),[["__scopeId","data-v-ea1ef607"]]),mc=r.defineComponent({__name:"DynamicForm",props:{forms:{}},emits:["onSubmit"],setup(t,{emit:l}){const i=t,s=l,a=r.ref(!1),c=sr(),d=v=>Pe.keys(Pe.groupBy(v.controls,"group")).length===1;r.watch(()=>i.forms,v=>{const m=new Hu().fromRaw(v);c.setFormSteps(m)},{immediate:!0});function h(){const v=Pe.cloneDeep(c.formSteps),m=new Hu().toRaw(v);s("onSubmit",m)}return(v,b)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("div",null,[r.renderSlot(v.$slots,"header"),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(c).formSteps,(m,y)=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:y},[d(m)?r.withDirectives((r.openBlock(),r.createBlock(D0,{key:0,index:y},null,8,["index"])),[[r.vShow,r.unref(c).currentStep===y+1]]):r.withDirectives((r.openBlock(),r.createBlock(I0,{key:1,index:y,onOnLastStep:b[0]||(b[0]=A=>a.value=A)},null,8,["index"])),[[r.vShow,r.unref(c).currentStep===y+1]])],64))),128))]),r.createVNode(J0,{onSubmit:h})],64))}}),eg=r.createElementVNode("img",{src:"https://upload.wikimedia.org/wikipedia/commons/thumb/9/95/Vue.js_Logo_2.svg/640px-Vue.js_Logo_2.svg.png",alt:""},null,-1),gc=r.defineComponent({__name:"TestUi",setup(t){const l=r.ref("Test W2W UI!");return(i,s)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[eg,r.createElementVNode("h1",null,r.toDisplayString(l.value),1)],64))}}),tg=r.defineComponent({__name:"DomSection",props:{section:{}},setup(t){const l=r.ref(null),i=t;return r.watch([()=>i.section,l],([s,a])=>{s&&a&&a.appendChild(s)}),(s,a)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"container",ref:l},null,512))}});function pc(t,l){const i=`{{${l}}}`;try{const s=l.split(".").flatMap(a=>{var h;const c=/(\w+)\[(\d+)\]/g,d=(h=Array.from(a.matchAll(c)))==null?void 0:h[0];return d!=null&&d.length?d.slice(1):a});return(s==null?void 0:s.reduce((a,c)=>(a==null?void 0:a[c])||"",t))||i}catch(s){return console.error(s),i}}function ng(t,l,i){const s=l.split(".");if(!s.length)return t;const a=s.pop(),c=s.reduce((d,h)=>(d[h]||(d[h]={}),d[h]),t);return c[a]=i,t}const rg={class:"card"},og={key:0,class:"card-header"},ig=["contenteditable"],lg={class:"card-content"},ag=["contenteditable"],ug=["contenteditable"],sg=Xe(r.defineComponent({__name:"Card",props:{card:{},data:{}},setup(t){const l=t;function i(c){const d=c.value||pc(l.data,c.key||"");return s(d,c.format)}function s(c,d){return d?d==="currency"?new Intl.NumberFormat("es-ES",{style:"currency",currency:"EUR"}).format(c):d==="percentage"?`${c} %`:c:c}const a=r.inject("editable");return(c,d)=>(r.openBlock(),r.createElementBlock("div",rg,[c.card.title||c.card.subtitle?(r.openBlock(),r.createElementBlock("div",og,[c.card.title?(r.openBlock(),r.createElementBlock("h3",{key:0,contenteditable:r.unref(a)},r.toDisplayString(c.card.title),9,ig)):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),r.createElementVNode("div",lg,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c.card.fields,(h,v)=>(r.openBlock(),r.createElementBlock("div",{key:v,class:"card-field"},[r.createElementVNode("span",{contenteditable:r.unref(a),class:"field-label"},r.toDisplayString(h.label),9,ag),r.createElementVNode("span",{contenteditable:r.unref(a),class:"field-value"},r.toDisplayString(i(h)),9,ug)]))),128))])]))}}),[["__cssModules",{$style:{card:"_card_12eql_1","card-header":"_card-header_12eql_8","card-content":"_card-content_12eql_22","card-field":"_card-field_12eql_22","field-label":"_field-label_12eql_27","field-value":"_field-value_12eql_30"}}]]);function Ho(t,l={}){const i=r.inject("data"),s=r.computed(()=>i.value[t]||l),a=r.computed(()=>i.value.global||{}),c=r.computed(()=>({...a.value,...s.value}));return{sectionData:s,globalData:a,data:c}}const cg=Xe(r.defineComponent({__name:"CardGridSection",props:{styles:{},id:{},content:{}},setup(t){const l=t,{data:i}=Ho(l.id,{});return(s,a)=>{var c;return r.openBlock(),r.createElementBlock("div",{class:"card-section",style:r.normalizeStyle(((c=s.styles)==null?void 0:c.cssRaw)||"")},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.content.cards,(d,h)=>(r.openBlock(),r.createBlock(sg,{key:h,card:d,data:r.unref(i)},null,8,["card","data"]))),128))],4)}}}),[["__cssModules",{$style:{"card-section":"_card-section_1xfbl_2"}}]]),fg=["src","alt"],dg=Xe(r.defineComponent({__name:"ImageSection",props:{styles:{},id:{},content:{}},setup(t){const l=t,{content:i,styles:s}=r.toRefs(l);return Ho(l.id,{}),(a,c)=>(r.openBlock(),r.createElementBlock("div",{style:r.normalizeStyle({justifyContent:r.unref(i).align}),class:"img-container"},[r.createElementVNode("img",{src:r.unref(i).src,alt:r.unref(i).alt,style:r.normalizeStyle({width:r.unref(i).width,height:r.unref(i).height})},null,12,fg)],4))}}),[["__cssModules",{$style:{"img-container":"_img-container_17yzt_2"}}]]),hg={class:"section"},mg={key:0},gg={key:0,class:"no-print"},pg={class:"signature"},vg={class:"flex justify-end q-gutter-sm q-pa-sm"},_g={key:1,class:"column",style:{"max-width":"100vw"}},yg=["src"],bg={class:"flex justify-end q-mt-sm no-print"},wg={key:1,class:"flex justify-center q-pa-lg"},Sg=Xe(r.defineComponent({__name:"SignatureSection",props:{styles:{},id:{},content:{}},setup(t){const l=t,i=r.computed(()=>l.content.signable),s=r.ref(null),a=r.ref(""),c=r.ref(!1),{screen:d}=fc(),h=()=>{var y;(y=s.value)==null||y.clearSignature()},v=()=>{var x;const{isEmpty:y,data:A}=(x=s.value)==null?void 0:x.saveSignature();console.log(y),console.log(A),y||(a.value=A,c.value=!1)},b=()=>{c.value=!0},m=()=>{c.value=!1};return(y,A)=>{const x=r.resolveComponent("VueSignaturePad");return r.openBlock(),r.createElementBlock("div",hg,[i.value?(r.openBlock(),r.createElementBlock("div",mg,[c.value?(r.openBlock(),r.createElementBlock("div",gg,[r.createElementVNode("div",pg,[r.createVNode(x,{width:r.unref(d).lt.md?"100vw":"auto",height:"300px",ref_key:"signaturePad",ref:s},null,8,["width"])]),r.createElementVNode("div",vg,[r.createVNode(Tt,{unelevated:"",outline:"",onClick:m},{default:r.withCtx(()=>[r.createTextVNode("Cancelar")]),_:1}),r.createVNode(Tt,{unelevated:"",outline:"",onClick:h},{default:r.withCtx(()=>[r.createTextVNode("Limpiar")]),_:1}),r.createVNode(Tt,{unelevated:"",outline:"",onClick:v},{default:r.withCtx(()=>[r.createTextVNode("Confirmar")]),_:1})])])):(r.openBlock(),r.createElementBlock("div",_g,[r.createElementVNode("img",{src:a.value,height:"300"},null,8,yg),r.createElementVNode("div",bg,[r.createVNode(Tt,{unelevated:"",outline:"",onClick:b},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(a.value?"Volver a firmar":"Firmar"),1)]),_:1})])]))])):(r.openBlock(),r.createElementBlock("div",wg,"[FIRMA]"))])}}}),[["__scopeId","data-v-77062e22"]]),Cg=["contenteditable"],xg=["contenteditable"],Ag="#f5f5f5",Eg=Xe(r.defineComponent({__name:"TableSection",props:{styles:{},id:{},content:{}},setup(t){const l=t,{columns:i}=r.toRefs(l.content),{data:s}=Ho(l.id,[]),a=r.computed(()=>[...s.value[l.content.rowsKey]||[]]),c=r.inject("editable");return(d,h)=>{var v;return r.openBlock(),r.createElementBlock("table",{style:r.normalizeStyle("width: 100%;"+((v=d.styles)==null?void 0:v.cssRaw)||""),class:"table-section"},[r.createElementVNode("thead",null,[r.createElementVNode("tr",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(i),b=>(r.openBlock(),r.createElementBlock("th",{key:b.key,style:r.normalizeStyle({textAlign:b.align||"left"}),contenteditable:r.unref(c)},r.toDisplayString(b.header),13,Cg))),128))])]),r.createElementVNode("tbody",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(a.value,(b,m)=>(r.openBlock(),r.createElementBlock("tr",{key:m,style:r.normalizeStyle({backgroundColor:m%2===0?Ag:"transparent"})},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(i),y=>(r.openBlock(),r.createElementBlock("td",{key:y.key,style:r.normalizeStyle({textAlign:y.align||"left"}),contenteditable:r.unref(c)},r.toDisplayString(b[y.key]),13,xg))),128))],4))),128))])],4)}}}),[["__cssModules",{$style:{"table-section":"_table-section_aicx8_1"}}]]),vc=We({name:"QTooltip",inheritAttrs:!1,props:{...Ns,...al,...$r,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null},transitionShow:{...$r.transitionShow,default:"jump-down"},transitionHide:{...$r.transitionHide,default:"jump-up"},anchor:{type:String,default:"bottom middle",validator:qo},self:{type:String,default:"top middle",validator:qo},offset:{type:Array,default:()=>[14,14],validator:Ys},scrollTarget:Us,delay:{type:Number,default:0},hideDelay:{type:Number,default:0},persistent:Boolean},emits:[...ul],setup(t,{slots:l,emit:i,attrs:s}){let a,c;const d=r.getCurrentInstance(),{proxy:{$q:h}}=d,v=r.ref(null),b=r.ref(!1),m=r.computed(()=>$o(t.anchor,h.lang.rtl)),y=r.computed(()=>$o(t.self,h.lang.rtl)),A=r.computed(()=>t.persistent!==!0),{registerTick:x,removeTick:w}=dl(),{registerTimeout:F}=Lr(),{transitionProps:k,transitionStyle:q}=fl(t),{localScrollTarget:D,changeScrollEvent:L,unconfigureScrollTarget:K}=$s(t,ge),{anchorEl:W,canShow:Q,anchorEvents:j}=qs({showing:b,configureAnchorEl:Be}),{show:ie,hide:N}=sl({showing:b,canShow:Q,handleShow:te,handleHide:$,hideOnRouteChange:A,processOnMount:!0});Object.assign(j,{delayShow:H,delayHide:se});const{showPortal:U,hidePortal:Z,renderPortal:O}=cl(d,v,T,"tooltip");if(h.platform.is.mobile===!0){const Y={anchorEl:W,innerRef:v,onClickOutside(fe){return N(fe),fe.target.classList.contains("q-dialog__backdrop")&&Ge(fe),!0}},pe=r.computed(()=>t.modelValue===null&&t.persistent!==!0&&b.value===!0);r.watch(pe,fe=>{(fe===!0?Ks:No)(Y)}),r.onBeforeUnmount(()=>{No(Y)})}function te(Y){U(),x(()=>{c=new MutationObserver(()=>ae()),c.observe(v.value,{attributes:!1,childList:!0,characterData:!0,subtree:!0}),ae(),ge()}),a===void 0&&(a=r.watch(()=>h.screen.width+"|"+h.screen.height+"|"+t.self+"|"+t.anchor+"|"+h.lang.rtl,ae)),F(()=>{U(!0),i("show",Y)},t.transitionDuration)}function $(Y){w(),Z(),le(),F(()=>{Z(!0),i("hide",Y)},t.transitionDuration)}function le(){c!==void 0&&(c.disconnect(),c=void 0),a!==void 0&&(a(),a=void 0),K(),Eo(j,"tooltipTemp")}function ae(){gl({targetEl:v.value,offset:t.offset,anchorEl:W.value,anchorOrigin:m.value,selfOrigin:y.value,maxHeight:t.maxHeight,maxWidth:t.maxWidth})}function H(Y){if(h.platform.is.mobile===!0){ll(),document.body.classList.add("non-selectable");const pe=W.value,fe=["touchmove","touchcancel","touchend","click"].map(G=>[pe,G,"delayHide","passiveCapture"]);Pr(j,"tooltipTemp",fe)}F(()=>{ie(Y)},t.delay)}function se(Y){h.platform.is.mobile===!0&&(Eo(j,"tooltipTemp"),ll(),setTimeout(()=>{document.body.classList.remove("non-selectable")},10)),F(()=>{N(Y)},t.hideDelay)}function Be(){if(t.noParentEvent===!0||W.value===null)return;const Y=h.platform.is.mobile===!0?[[W.value,"touchstart","delayShow","passive"]]:[[W.value,"mouseenter","delayShow","passive"],[W.value,"mouseleave","delayHide","passive"]];Pr(j,"anchor",Y)}function ge(){if(W.value!==null||t.scrollTarget!==void 0){D.value=zs(W.value,t.scrollTarget);const Y=t.noParentEvent===!0?ae:N;L(D.value,Y)}}function R(){return b.value===!0?r.h("div",{...s,ref:v,class:["q-tooltip q-tooltip--style q-position-engine no-pointer-events",s.class],style:[s.style,q.value],role:"tooltip"},at(l.default)):null}function T(){return r.h(r.Transition,k.value,R)}return r.onBeforeUnmount(le),Object.assign(d.proxy,{updatePosition:ae}),O}}),kg={class:"section"},Bg={key:0,class:"no-print"},Og={class:"add-btn"},Tg=["contenteditable"],Rg=["contenteditable"],Ig={class:"p-container"},Fg=["contenteditable"],Mg={key:0,class:"remove-btn no-print"},Lg=Xe(r.defineComponent({__name:"TextSection",props:{styles:{},id:{},content:{}},setup(t){const l=t,{data:i}=Ho(l.id,{}),s=r.computed(()=>{var y;return((y=l.content)==null?void 0:y.lines)||[]}),a=r.ref([]),c=r.inject("editable"),d=(y,A,x)=>{if(!A)return h(i.value,y);const w={};return Object.keys(A).forEach(k=>{const q=`${x}.${k}`;ng(w,q,A[k])}),h(w,y)};r.watch(s,y=>{a.value=Pe.cloneDeep(y)},{deep:!0,immediate:!0});function h(y,A){const x=A.match(/{{(.*?)}}/g);return x?x.reduce((w,F)=>{const k=F.replace(/{{|}}/g,"").trim(),q=pc(y,k);return w.replace(F,q??k)},A):A}const v=()=>{if(!(c!=null&&c.value))return;const y=a.value.length,A={type:lt.TextLineType.PARAGRAPH,text:"Párrafo "+y};a.value.push(A)},b=y=>{c!=null&&c.value&&a.value.splice(y,1)},m=y=>y.split(`
|
|
28
|
+
`);return(y,A)=>{var x;return r.openBlock(),r.createElementBlock("div",kg,[r.unref(c)?(r.openBlock(),r.createElementBlock("div",Bg,[r.createElementVNode("div",Og,[r.createVNode(Tt,{size:"sm",round:"",color:"black",onClick:v,icon:"add"},{default:r.withCtx(()=>[r.createVNode(vc,null,{default:r.withCtx(()=>[r.createTextVNode("Agregar párrafo")]),_:1})]),_:1})])])):r.createCommentVNode("",!0),r.createElementVNode("div",{style:r.normalizeStyle(((x=y.styles)==null?void 0:x.cssRaw)||"")},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(a.value,({type:w,text:F,align:k,sourceCollection:q},D)=>(r.openBlock(),r.createElementBlock("div",{style:r.normalizeStyle({textAlign:k||"left"})},[w==="title"?(r.openBlock(),r.createElementBlock("h1",{key:0,contenteditable:r.unref(c)},r.toDisplayString(d(F,null)),9,Tg)):r.createCommentVNode("",!0),w==="subtitle"?(r.openBlock(),r.createElementBlock("h2",{key:1,contenteditable:r.unref(c)},r.toDisplayString(d(F,null)),9,Rg)):r.createCommentVNode("",!0),w==="paragraph"?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:2},r.renderList(q?r.unref(i)[q]:[null],L=>(r.openBlock(),r.createElementBlock("div",Ig,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(m(d(F,L,q)),K=>(r.openBlock(),r.createElementBlock("p",{contenteditable:r.unref(c)},r.toDisplayString(K),9,Fg))),256)),r.unref(c)?(r.openBlock(),r.createElementBlock("div",Mg,[r.createVNode(Tt,{size:"sm",r:"",round:"",color:"black",onClick:K=>b(D),icon:"delete"},{default:r.withCtx(()=>[r.createVNode(vc,null,{default:r.withCtx(()=>[r.createTextVNode("Eliminar párrafo")]),_:1})]),_:2},1032,["onClick"])])):r.createCommentVNode("",!0)]))),256)):r.createCommentVNode("",!0)],4))),256))],4)])}}}),[["__cssModules",{$style:{section:"_section_12p9p_1","p-container":"_p-container_12p9p_2","add-btn":"_add-btn_12p9p_6","remove-btn":"_remove-btn_12p9p_13","no-print":"_no-print_12p9p_40"}}]]),Pg=r.defineComponent({__name:"SectionWrapper",props:{section:{}},setup(t){const l=t,i={[lt.LayoutSectionType.TEXT]:Lg,[lt.LayoutSectionType.IMAGE]:dg,[lt.LayoutSectionType.TABLE]:Eg,[lt.LayoutSectionType.CARDS_GRID]:cg,[lt.LayoutSectionType.SIGNATURE]:Sg},s=r.computed(()=>l.section.type),a=r.computed(()=>({content:l.section.content,styles:l.section.styles,id:l.section.idDocLaySection}));return(c,d)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(i[s.value]),r.normalizeProps(r.guardReactiveProps(a.value)),null,16))}}),_c=Xe(r.defineComponent({__name:"SectionsContainer",props:{layout:{},data:{},htmlNodes:{},editable:{type:Boolean}},setup(t){var h;const l=t,{layout:i,data:s,editable:a}=r.toRefs(l);r.provide("data",s),r.provide("editable",a||r.ref(!1));const c=r.computed(()=>{var b;const v=i.value.sections.map(m=>({type:"default",section:m}));return(b=l.htmlNodes)==null||b.forEach(({index:m,element:y})=>{const A=m>v.length?v.length:m;v.splice(A,0,{type:"html",section:y})}),v}),d=((h=i.value.styles)==null?void 0:h.cssRaw)||"";return(v,b)=>(r.openBlock(),r.createElementBlock("div",{class:"sections-container",style:r.normalizeStyle(r.unref(d))},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c.value,({type:m,section:y})=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[m==="default"?(r.openBlock(),r.createBlock(Pg,{key:0,section:y},null,8,["section"])):(r.openBlock(),r.createBlock(tg,{key:1,section:y},null,8,["section"]))],64))),256))],4))}}),[["__cssModules",{$style:{"sections-container":"_sections-container_1wrbi_3"}}]]),Vg={install(t,l){if(l!=null&&l.pinia)t.use(l.pinia);else throw new Error("No se ha encontrado una instancia de pinia");t.component("DynamicForm",mc),t.component("TestUi",gc),t.component("SectionsContainer",_c)}};qt.DynamicForm=mc,qt.SectionsContainer=_c,qt.TestUi=gc,qt.default=Vg,Object.defineProperties(qt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|